From ac637465b03b120bc5786093dada7578a4bdae3a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 3 Jun 2014 00:00:01 -0700 Subject: [PATCH 0001/1274] Updated Compute.php --- src/Google/Service/Compute.php | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 7ffc6cfdd..7ea7e6369 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -1437,6 +1437,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setUsageExportBucket' => array( + 'path' => '{project}/setUsageExportBucket', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -3614,6 +3624,21 @@ public function setCommonInstanceMetadata($project, Google_Service_Compute_Metad $params = array_merge($params, $optParams); return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets usage export location (projects.setUsageExportBucket) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_UsageExportLocation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -4865,6 +4890,7 @@ class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model { public $diskName; public $diskSizeGb; + public $diskType; public $sourceImage; public function setDiskName($diskName) @@ -4887,6 +4913,16 @@ public function getDiskSizeGb() return $this->diskSizeGb; } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; @@ -4972,6 +5008,7 @@ class Google_Service_Compute_Disk extends Google_Model public $sourceSnapshot; public $sourceSnapshotId; public $status; + public $type; public $zone; public function setCreationTimestamp($creationTimestamp) @@ -5104,6 +5141,16 @@ public function getStatus() return $this->status; } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + public function setZone($zone) { $this->zone = $zone; From 1f3435189a303ae4f037131294dde0066ae38663 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 3 Jun 2014 00:00:01 -0700 Subject: [PATCH 0002/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 9674a8f13..de571fd95 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -33,7 +33,7 @@ class Google_Service_Bigquery extends Google_Service { /** View and manage your data in Google BigQuery. */ const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; - /** Insert data into Google BigQuery. */ + /** New Service. */ const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; From 407282dd0ee3644c2bef01085650d50dd8ad0cca Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Jun 2014 00:01:18 -0700 Subject: [PATCH 0003/1274] Updated Drive.php --- src/Google/Service/Drive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 28dbdf7f1..211ab72cb 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -2063,7 +2063,8 @@ public function getIdForEmail($email, $optParams = array()) * @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. + * Whether to send notification emails when sharing to users or groups. This parameter is ignored + * and an email is sent if the role is owner. * @return Google_Service_Drive_Permission */ public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) From 5360b34c68a3a0e0d136e8ee7fb363280d82ea15 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Jun 2014 09:22:17 -0700 Subject: [PATCH 0004/1274] Added service Content.php --- src/Google/Service/Content.php | 4799 ++++++++++++++++++++++++++++++++ 1 file changed, 4799 insertions(+) create mode 100644 src/Google/Service/Content.php diff --git a/src/Google/Service/Content.php b/src/Google/Service/Content.php new file mode 100644 index 000000000..9adef951c --- /dev/null +++ b/src/Google/Service/Content.php @@ -0,0 +1,4799 @@ + + * Manage product items, inventory, and Merchant Center accounts. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Content extends Google_Service +{ + /** Manage your product listings and accounts for Google Shopping. */ + const CONTENT = "https://www.googleapis.com/auth/content"; + + public $accounts; + public $accountstatuses; + public $datafeeds; + public $datafeedstatuses; + public $inventory; + public $products; + public $productstatuses; + + + /** + * Constructs the internal representation of the Content service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'content/v2/'; + $this->version = 'v2'; + $this->serviceName = 'content'; + + $this->accounts = new Google_Service_Content_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accounts/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountstatuses = new Google_Service_Content_Accountstatuses_Resource( + $this, + $this->serviceName, + 'accountstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accountstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/accountstatuses/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accountstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->datafeeds = new Google_Service_Content_Datafeeds_Resource( + $this, + $this->serviceName, + 'datafeeds', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'datafeedsNativeBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'custombatch' => array( + 'path' => 'datafeeds/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->datafeedstatuses = new Google_Service_Content_Datafeedstatuses_Resource( + $this, + $this->serviceName, + 'datafeedstatuses', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'datafeedstatusesNativeBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'custombatch' => array( + 'path' => 'datafeedstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/datafeedstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inventory = new Google_Service_Content_Inventory_Resource( + $this, + $this->serviceName, + 'inventory', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'inventory/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'set' => array( + 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'storeCode' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_Content_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'products/batch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'delete' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->productstatuses = new Google_Service_Content_Productstatuses_Resource( + $this, + $this->serviceName, + 'productstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'productstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/productstatuses/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/productstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $accounts = $contentService->accounts; + * + */ +class Google_Service_Content_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Retrieve, insert, update, and delete multiple Merchant Center (sub-)accounts + * in a single request. (accounts.custombatch) + * + * @param Google_AccountsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_AccountsCustomBatchResponse + */ + public function custombatch(Google_Service_Content_AccountsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_AccountsCustomBatchResponse"); + } + /** + * Delete a Merchant Center sub-account. (accounts.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieve a Merchant Center account. (accounts.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Account + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_Account"); + } + /** + * Create a Merchant Center sub-account. (accounts.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Account + */ + public function insert($merchantId, Google_Service_Content_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Content_Account"); + } + /** + * List the sub-accounts in your Merchant Center account. + * (accounts.listAccounts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of accounts to return in the response, used for paging. + * @return Google_Service_Content_AccountsListResponse + */ + public function listAccounts($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_AccountsListResponse"); + } + /** + * Update a Merchant Center account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Account + */ + public function patch($merchantId, $accountId, Google_Service_Content_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Content_Account"); + } + /** + * Update a Merchant Center account. (accounts.update) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Account + */ + public function update($merchantId, $accountId, Google_Service_Content_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Content_Account"); + } +} + +/** + * The "accountstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $accountstatuses = $contentService->accountstatuses; + * + */ +class Google_Service_Content_Accountstatuses_Resource extends Google_Service_Resource +{ + + /** + * (accountstatuses.custombatch) + * + * @param Google_AccountstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_AccountstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_Content_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_AccountstatusesCustomBatchResponse"); + } + /** + * Retrieve the status of a Merchant Center account. (accountstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_Content_AccountStatus + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_AccountStatus"); + } + /** + * List the statuses of the sub-accounts in your Merchant Center account. + * (accountstatuses.listAccountstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of account statuses to return in the response, used for paging. + * @return Google_Service_Content_AccountstatusesListResponse + */ + public function listAccountstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_AccountstatusesListResponse"); + } +} + +/** + * The "datafeeds" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $datafeeds = $contentService->datafeeds; + * + */ +class Google_Service_Content_Datafeeds_Resource extends Google_Service_Resource +{ + + /** + * (datafeeds.batch) + * + * @param Google_DatafeedsBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedsBatchResponse + */ + public function batch(Google_Service_Content_DatafeedsBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_Content_DatafeedsBatchResponse"); + } + /** + * (datafeeds.custombatch) + * + * @param Google_DatafeedsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedsCustomBatchResponse + */ + public function custombatch(Google_Service_Content_DatafeedsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedsCustomBatchResponse"); + } + /** + * Delete a datafeed from your Merchant Center account. (datafeeds.delete) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieve a datafeed from your Merchant Center account. (datafeeds.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Datafeed + */ + public function get($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_Datafeed"); + } + /** + * Register a datafeed against your Merchant Center account. (datafeeds.insert) + * + * @param string $merchantId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Datafeed + */ + public function insert($merchantId, Google_Service_Content_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Content_Datafeed"); + } + /** + * List the datafeeds in your Merchant Center account. (datafeeds.listDatafeeds) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedsListResponse + */ + public function listDatafeeds($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_DatafeedsListResponse"); + } + /** + * Update a datafeed of your Merchant Center account. This method supports patch + * semantics. (datafeeds.patch) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Datafeed + */ + public function patch($merchantId, $datafeedId, Google_Service_Content_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Content_Datafeed"); + } + /** + * Update a datafeed of your Merchant Center account. (datafeeds.update) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Datafeed + */ + public function update($merchantId, $datafeedId, Google_Service_Content_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Content_Datafeed"); + } +} + +/** + * The "datafeedstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $datafeedstatuses = $contentService->datafeedstatuses; + * + */ +class Google_Service_Content_Datafeedstatuses_Resource extends Google_Service_Resource +{ + + /** + * (datafeedstatuses.batch) + * + * @param Google_DatafeedstatusesBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedstatusesBatchResponse + */ + public function batch(Google_Service_Content_DatafeedstatusesBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_Content_DatafeedstatusesBatchResponse"); + } + /** + * (datafeedstatuses.custombatch) + * + * @param Google_DatafeedstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_Content_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedstatusesCustomBatchResponse"); + } + /** + * Retrieve the status of a datafeed from your Merchant Center account. + * (datafeedstatuses.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedStatus + */ + public function get($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_DatafeedStatus"); + } + /** + * List the statuses of the datafeeds in your Merchant Center account. + * (datafeedstatuses.listDatafeedstatuses) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Content_DatafeedstatusesListResponse + */ + public function listDatafeedstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_DatafeedstatusesListResponse"); + } +} + +/** + * The "inventory" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $inventory = $contentService->inventory; + * + */ +class Google_Service_Content_Inventory_Resource extends Google_Service_Resource +{ + + /** + * Update price and availability for multiple products or stores in a single + * request. (inventory.custombatch) + * + * @param Google_InventoryCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_InventoryCustomBatchResponse + */ + public function custombatch(Google_Service_Content_InventoryCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_InventoryCustomBatchResponse"); + } + /** + * Update price and availability of a product in your Merchant Center account. + * (inventory.set) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $storeCode + * The code of the store for which to update price and availability. + * @param string $productId + * The ID of the product for which to update price and availability. + * @param Google_InventorySetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_InventorySetResponse + */ + public function set($merchantId, $storeCode, $productId, Google_Service_Content_InventorySetRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_Content_InventorySetResponse"); + } +} + +/** + * The "products" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $products = $contentService->products; + * + */ +class Google_Service_Content_Products_Resource extends Google_Service_Resource +{ + + /** + * Retrieve, insert, and delete multiple products in a single request. + * (products.custombatch) + * + * @param Google_ProductsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_Content_ProductsCustomBatchResponse + */ + public function custombatch(Google_Service_Content_ProductsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_ProductsCustomBatchResponse"); + } + /** + * Delete a product from your Merchant Center account. (products.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + */ + public function delete($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieve a product from your Merchant Center account. (products.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_Content_Product + */ + public function get($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_Product"); + } + /** + * Upload products to your Merchant Center account. (products.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Product $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_Content_Product + */ + public function insert($merchantId, Google_Service_Content_Product $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Content_Product"); + } + /** + * List the products in your Merchant Center account. (products.listProducts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. + * @return Google_Service_Content_ProductsListResponse + */ + public function listProducts($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_ProductsListResponse"); + } +} + +/** + * The "productstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_Content(...); + * $productstatuses = $contentService->productstatuses; + * + */ +class Google_Service_Content_Productstatuses_Resource extends Google_Service_Resource +{ + + /** + * Get the statuses of multiple products in a single request. + * (productstatuses.custombatch) + * + * @param Google_ProductstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Content_ProductstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_Content_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_Content_ProductstatusesCustomBatchResponse"); + } + /** + * Get the status of a product from your Merchant Center account. + * (productstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_Content_ProductStatus + */ + public function get($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Content_ProductStatus"); + } + /** + * List the statuses of the products in your Merchant Center account. + * (productstatuses.listProductstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of product statuses to return in the response, used for paging. + * @return Google_Service_Content_ProductstatusesListResponse + */ + public function listProductstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Content_ProductstatusesListResponse"); + } +} + + + + +class Google_Service_Content_Account extends Google_Collection +{ + public $adultContent; + protected $adwordsLinksType = 'Google_Service_Content_AccountAdwordsLink'; + protected $adwordsLinksDataType = 'array'; + public $id; + public $kind; + public $name; + public $reviewsUrl; + public $sellerId; + protected $usersType = 'Google_Service_Content_AccountUser'; + protected $usersDataType = 'array'; + public $websiteUrl; + + public function setAdultContent($adultContent) + { + $this->adultContent = $adultContent; + } + + public function getAdultContent() + { + return $this->adultContent; + } + + public function setAdwordsLinks($adwordsLinks) + { + $this->adwordsLinks = $adwordsLinks; + } + + public function getAdwordsLinks() + { + return $this->adwordsLinks; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setReviewsUrl($reviewsUrl) + { + $this->reviewsUrl = $reviewsUrl; + } + + public function getReviewsUrl() + { + return $this->reviewsUrl; + } + + public function setSellerId($sellerId) + { + $this->sellerId = $sellerId; + } + + public function getSellerId() + { + return $this->sellerId; + } + + public function setUsers($users) + { + $this->users = $users; + } + + public function getUsers() + { + return $this->users; + } + + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_Content_AccountAdwordsLink extends Google_Model +{ + public $adwordsId; + public $status; + + public function setAdwordsId($adwordsId) + { + $this->adwordsId = $adwordsId; + } + + public function getAdwordsId() + { + return $this->adwordsId; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Content_AccountStatus extends Google_Collection +{ + public $accountId; + protected $dataQualityIssuesType = 'Google_Service_Content_AccountStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + public $kind; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setDataQualityIssues($dataQualityIssues) + { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() + { + return $this->dataQualityIssues; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_AccountStatusDataQualityIssue extends Google_Collection +{ + public $country; + public $displayedValue; + protected $exampleItemsType = 'Google_Service_Content_AccountStatusExampleItem'; + protected $exampleItemsDataType = 'array'; + public $id; + public $lastChecked; + public $numItems; + public $severity; + public $submittedValue; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setDisplayedValue($displayedValue) + { + $this->displayedValue = $displayedValue; + } + + public function getDisplayedValue() + { + return $this->displayedValue; + } + + public function setExampleItems($exampleItems) + { + $this->exampleItems = $exampleItems; + } + + public function getExampleItems() + { + return $this->exampleItems; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLastChecked($lastChecked) + { + $this->lastChecked = $lastChecked; + } + + public function getLastChecked() + { + return $this->lastChecked; + } + + public function setNumItems($numItems) + { + $this->numItems = $numItems; + } + + public function getNumItems() + { + return $this->numItems; + } + + public function setSeverity($severity) + { + $this->severity = $severity; + } + + public function getSeverity() + { + return $this->severity; + } + + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() + { + return $this->submittedValue; + } +} + +class Google_Service_Content_AccountStatusExampleItem extends Google_Model +{ + public $itemId; + public $link; + public $submittedValue; + public $title; + public $valueOnLandingPage; + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + + public function getItemId() + { + return $this->itemId; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() + { + return $this->submittedValue; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setValueOnLandingPage($valueOnLandingPage) + { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() + { + return $this->valueOnLandingPage; + } +} + +class Google_Service_Content_AccountUser extends Google_Model +{ + public $admin; + public $emailAddress; + + public function setAdmin($admin) + { + $this->admin = $admin; + } + + public function getAdmin() + { + return $this->admin; + } + + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() + { + return $this->emailAddress; + } +} + +class Google_Service_Content_AccountsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_AccountsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_AccountsCustomBatchRequestEntry extends Google_Model +{ + protected $accountType = 'Google_Service_Content_Account'; + protected $accountDataType = ''; + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccount(Google_Service_Content_Account $account) + { + $this->account = $account; + } + + public function getAccount() + { + return $this->account; + } + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_Content_AccountsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_AccountsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_AccountsCustomBatchResponseEntry extends Google_Model +{ + protected $accountType = 'Google_Service_Content_Account'; + protected $accountDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setAccount(Google_Service_Content_Account $account) + { + $this->account = $account; + } + + public function getAccount() + { + return $this->account; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_AccountsListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_Content_Account'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Content_AccountstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_AccountstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_AccountstatusesCustomBatchRequestEntry extends Google_Model +{ + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_Content_AccountstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_AccountstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_AccountstatusesCustomBatchResponseEntry extends Google_Model +{ + protected $accountStatusType = 'Google_Service_Content_AccountStatus'; + protected $accountStatusDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + + public function setAccountStatus(Google_Service_Content_AccountStatus $accountStatus) + { + $this->accountStatus = $accountStatus; + } + + public function getAccountStatus() + { + return $this->accountStatus; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Content_AccountstatusesListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_Content_AccountStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Content_Datafeed extends Google_Collection +{ + public $attributeLanguage; + public $contentLanguage; + public $contentType; + protected $fetchScheduleType = 'Google_Service_Content_DatafeedFetchSchedule'; + protected $fetchScheduleDataType = ''; + public $fileName; + protected $formatType = 'Google_Service_Content_DatafeedFormat'; + protected $formatDataType = ''; + public $id; + public $intendedDestinations; + public $kind; + public $name; + public $targetCountry; + + public function setAttributeLanguage($attributeLanguage) + { + $this->attributeLanguage = $attributeLanguage; + } + + public function getAttributeLanguage() + { + return $this->attributeLanguage; + } + + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() + { + return $this->contentLanguage; + } + + public function setContentType($contentType) + { + $this->contentType = $contentType; + } + + public function getContentType() + { + return $this->contentType; + } + + public function setFetchSchedule(Google_Service_Content_DatafeedFetchSchedule $fetchSchedule) + { + $this->fetchSchedule = $fetchSchedule; + } + + public function getFetchSchedule() + { + return $this->fetchSchedule; + } + + public function setFileName($fileName) + { + $this->fileName = $fileName; + } + + public function getFileName() + { + return $this->fileName; + } + + public function setFormat(Google_Service_Content_DatafeedFormat $format) + { + $this->format = $format; + } + + public function getFormat() + { + return $this->format; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setIntendedDestinations($intendedDestinations) + { + $this->intendedDestinations = $intendedDestinations; + } + + public function getIntendedDestinations() + { + return $this->intendedDestinations; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() + { + return $this->targetCountry; + } +} + +class Google_Service_Content_DatafeedFetchSchedule extends Google_Model +{ + public $dayOfMonth; + public $fetchUrl; + public $hour; + public $password; + public $timeZone; + public $username; + public $weekday; + + public function setDayOfMonth($dayOfMonth) + { + $this->dayOfMonth = $dayOfMonth; + } + + public function getDayOfMonth() + { + return $this->dayOfMonth; + } + + public function setFetchUrl($fetchUrl) + { + $this->fetchUrl = $fetchUrl; + } + + public function getFetchUrl() + { + return $this->fetchUrl; + } + + public function setHour($hour) + { + $this->hour = $hour; + } + + public function getHour() + { + return $this->hour; + } + + public function setPassword($password) + { + $this->password = $password; + } + + public function getPassword() + { + return $this->password; + } + + public function setTimeZone($timeZone) + { + $this->timeZone = $timeZone; + } + + public function getTimeZone() + { + return $this->timeZone; + } + + public function setUsername($username) + { + $this->username = $username; + } + + public function getUsername() + { + return $this->username; + } + + public function setWeekday($weekday) + { + $this->weekday = $weekday; + } + + public function getWeekday() + { + return $this->weekday; + } +} + +class Google_Service_Content_DatafeedFormat extends Google_Model +{ + public $columnDelimiter; + public $fileEncoding; + public $quotingMode; + + public function setColumnDelimiter($columnDelimiter) + { + $this->columnDelimiter = $columnDelimiter; + } + + public function getColumnDelimiter() + { + return $this->columnDelimiter; + } + + public function setFileEncoding($fileEncoding) + { + $this->fileEncoding = $fileEncoding; + } + + public function getFileEncoding() + { + return $this->fileEncoding; + } + + public function setQuotingMode($quotingMode) + { + $this->quotingMode = $quotingMode; + } + + public function getQuotingMode() + { + return $this->quotingMode; + } +} + +class Google_Service_Content_DatafeedStatus extends Google_Collection +{ + public $datafeedId; + protected $errorsType = 'Google_Service_Content_DatafeedStatusError'; + protected $errorsDataType = 'array'; + public $itemsTotal; + public $itemsValid; + public $kind; + public $processingStatus; + protected $warningsType = 'Google_Service_Content_DatafeedStatusError'; + protected $warningsDataType = 'array'; + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setItemsTotal($itemsTotal) + { + $this->itemsTotal = $itemsTotal; + } + + public function getItemsTotal() + { + return $this->itemsTotal; + } + + public function setItemsValid($itemsValid) + { + $this->itemsValid = $itemsValid; + } + + public function getItemsValid() + { + return $this->itemsValid; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_Content_DatafeedStatusError extends Google_Collection +{ + public $code; + public $count; + protected $examplesType = 'Google_Service_Content_DatafeedStatusExample'; + protected $examplesDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setExamples($examples) + { + $this->examples = $examples; + } + + public function getExamples() + { + return $this->examples; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Content_DatafeedStatusExample extends Google_Model +{ + public $itemId; + public $lineNumber; + public $value; + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + + public function getItemId() + { + return $this->itemId; + } + + public function setLineNumber($lineNumber) + { + $this->lineNumber = $lineNumber; + } + + public function getLineNumber() + { + return $this->lineNumber; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Content_DatafeedsBatchRequest extends Google_Collection +{ + protected $entrysType = 'Google_Service_Content_DatafeedsBatchRequestEntry'; + protected $entrysDataType = 'array'; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } +} + +class Google_Service_Content_DatafeedsBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $datafeedsinsertrequestType = 'Google_Service_Content_DatafeedsInsertRequest'; + protected $datafeedsinsertrequestDataType = ''; + protected $datafeedsupdaterequestType = 'Google_Service_Content_DatafeedsUpdateRequest'; + protected $datafeedsupdaterequestDataType = ''; + public $methodName; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedsinsertrequest(Google_Service_Content_DatafeedsInsertRequest $datafeedsinsertrequest) + { + $this->datafeedsinsertrequest = $datafeedsinsertrequest; + } + + public function getDatafeedsinsertrequest() + { + return $this->datafeedsinsertrequest; + } + + public function setDatafeedsupdaterequest(Google_Service_Content_DatafeedsUpdateRequest $datafeedsupdaterequest) + { + $this->datafeedsupdaterequest = $datafeedsupdaterequest; + } + + public function getDatafeedsupdaterequest() + { + return $this->datafeedsupdaterequest; + } + + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + + public function getMethodName() + { + return $this->methodName; + } +} + +class Google_Service_Content_DatafeedsBatchResponse extends Google_Collection +{ + protected $entrysType = 'Google_Service_Content_DatafeedsBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_DatafeedsBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedsgetresponseType = 'Google_Service_Content_DatafeedsGetResponse'; + protected $datafeedsgetresponseDataType = ''; + protected $datafeedsinsertresponseType = 'Google_Service_Content_DatafeedsInsertResponse'; + protected $datafeedsinsertresponseDataType = ''; + protected $datafeedsupdateresponseType = 'Google_Service_Content_DatafeedsUpdateResponse'; + protected $datafeedsupdateresponseDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedsgetresponse(Google_Service_Content_DatafeedsGetResponse $datafeedsgetresponse) + { + $this->datafeedsgetresponse = $datafeedsgetresponse; + } + + public function getDatafeedsgetresponse() + { + return $this->datafeedsgetresponse; + } + + public function setDatafeedsinsertresponse(Google_Service_Content_DatafeedsInsertResponse $datafeedsinsertresponse) + { + $this->datafeedsinsertresponse = $datafeedsinsertresponse; + } + + public function getDatafeedsinsertresponse() + { + return $this->datafeedsinsertresponse; + } + + public function setDatafeedsupdateresponse(Google_Service_Content_DatafeedsUpdateResponse $datafeedsupdateresponse) + { + $this->datafeedsupdateresponse = $datafeedsupdateresponse; + } + + public function getDatafeedsupdateresponse() + { + return $this->datafeedsupdateresponse; + } +} + +class Google_Service_Content_DatafeedsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_DatafeedsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_DatafeedsCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $datafeedType = 'Google_Service_Content_Datafeed'; + protected $datafeedDataType = ''; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeed(Google_Service_Content_Datafeed $datafeed) + { + $this->datafeed = $datafeed; + } + + public function getDatafeed() + { + return $this->datafeed; + } + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_Content_DatafeedsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_DatafeedsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_DatafeedsCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedType = 'Google_Service_Content_Datafeed'; + protected $datafeedDataType = ''; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeed(Google_Service_Content_Datafeed $datafeed) + { + $this->datafeed = $datafeed; + } + + public function getDatafeed() + { + return $this->datafeed; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Content_DatafeedsGetResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_Content_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_Content_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedsInsertRequest extends Google_Model +{ + protected $resourceType = 'Google_Service_Content_Datafeed'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_Content_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedsInsertResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_Content_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_Content_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedsListResponse extends Google_Collection +{ + public $kind; + protected $resourcesType = 'Google_Service_Content_Datafeed'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Content_DatafeedsUpdateRequest extends Google_Model +{ + protected $resourceType = 'Google_Service_Content_Datafeed'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_Content_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedsUpdateResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_Content_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_Content_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedstatusesBatchRequest extends Google_Collection +{ + protected $entrysType = 'Google_Service_Content_DatafeedstatusesBatchRequestEntry'; + protected $entrysDataType = 'array'; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } +} + +class Google_Service_Content_DatafeedstatusesBatchRequestEntry extends Google_Model +{ + public $batchId; + public $methodName; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + + public function getMethodName() + { + return $this->methodName; + } +} + +class Google_Service_Content_DatafeedstatusesBatchResponse extends Google_Collection +{ + protected $entrysType = 'Google_Service_Content_DatafeedstatusesBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_DatafeedstatusesBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedstatusesgetresponseType = 'Google_Service_Content_DatafeedstatusesGetResponse'; + protected $datafeedstatusesgetresponseDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedstatusesgetresponse(Google_Service_Content_DatafeedstatusesGetResponse $datafeedstatusesgetresponse) + { + $this->datafeedstatusesgetresponse = $datafeedstatusesgetresponse; + } + + public function getDatafeedstatusesgetresponse() + { + return $this->datafeedstatusesgetresponse; + } +} + +class Google_Service_Content_DatafeedstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_DatafeedstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_DatafeedstatusesCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_Content_DatafeedstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_DatafeedstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_DatafeedstatusesCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedStatusType = 'Google_Service_Content_DatafeedStatus'; + protected $datafeedStatusDataType = ''; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedStatus(Google_Service_Content_DatafeedStatus $datafeedStatus) + { + $this->datafeedStatus = $datafeedStatus; + } + + public function getDatafeedStatus() + { + return $this->datafeedStatus; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Content_DatafeedstatusesGetResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_Content_DatafeedStatus'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_Content_DatafeedStatus $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Content_DatafeedstatusesListResponse extends Google_Collection +{ + public $kind; + protected $resourcesType = 'Google_Service_Content_DatafeedStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Content_Error extends Google_Model +{ + public $domain; + public $message; + public $reason; + + public function setDomain($domain) + { + $this->domain = $domain; + } + + public function getDomain() + { + return $this->domain; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } + + public function setReason($reason) + { + $this->reason = $reason; + } + + public function getReason() + { + return $this->reason; + } +} + +class Google_Service_Content_Errors extends Google_Collection +{ + public $code; + protected $errorsType = 'Google_Service_Content_Error'; + protected $errorsDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Content_Inventory extends Google_Model +{ + public $availability; + public $kind; + protected $priceType = 'Google_Service_Content_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_Content_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPrice(Google_Service_Content_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function getQuantity() + { + return $this->quantity; + } + + public function setSalePrice(Google_Service_Content_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_Content_InventoryCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_InventoryCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_InventoryCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $inventoryType = 'Google_Service_Content_Inventory'; + protected $inventoryDataType = ''; + public $merchantId; + public $productId; + public $storeCode; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setInventory(Google_Service_Content_Inventory $inventory) + { + $this->inventory = $inventory; + } + + public function getInventory() + { + return $this->inventory; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } + + public function setStoreCode($storeCode) + { + $this->storeCode = $storeCode; + } + + public function getStoreCode() + { + return $this->storeCode; + } +} + +class Google_Service_Content_InventoryCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_InventoryCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_InventoryCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_InventorySetRequest extends Google_Model +{ + public $availability; + protected $priceType = 'Google_Service_Content_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_Content_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setPrice(Google_Service_Content_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function getQuantity() + { + return $this->quantity; + } + + public function setSalePrice(Google_Service_Content_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_Content_InventorySetResponse extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_LoyaltyPoints extends Google_Model +{ + public $name; + public $pointsValue; + public $ratio; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPointsValue($pointsValue) + { + $this->pointsValue = $pointsValue; + } + + public function getPointsValue() + { + return $this->pointsValue; + } + + public function setRatio($ratio) + { + $this->ratio = $ratio; + } + + public function getRatio() + { + return $this->ratio; + } +} + +class Google_Service_Content_Price extends Google_Model +{ + public $currency; + public $value; + + public function setCurrency($currency) + { + $this->currency = $currency; + } + + public function getCurrency() + { + return $this->currency; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Content_Product extends Google_Collection +{ + public $additionalImageLinks; + public $adult; + public $adwordsGrouping; + public $adwordsLabels; + public $adwordsRedirect; + public $ageGroup; + public $availability; + public $brand; + public $channel; + public $color; + public $condition; + public $contentLanguage; + protected $customAttributesType = 'Google_Service_Content_ProductCustomAttribute'; + protected $customAttributesDataType = 'array'; + protected $customGroupsType = 'Google_Service_Content_ProductCustomGroup'; + protected $customGroupsDataType = 'array'; + public $customLabel0; + public $customLabel1; + public $customLabel2; + public $customLabel3; + public $customLabel4; + public $description; + protected $destinationsType = 'Google_Service_Content_ProductDestination'; + protected $destinationsDataType = 'array'; + public $energyEfficiencyClass; + public $expirationDate; + public $gender; + public $googleProductCategory; + public $gtin; + public $id; + public $identifierExists; + public $imageLink; + protected $installmentType = 'Google_Service_Content_ProductInstallment'; + protected $installmentDataType = ''; + public $itemGroupId; + public $kind; + public $link; + protected $loyaltyPointsType = 'Google_Service_Content_LoyaltyPoints'; + protected $loyaltyPointsDataType = ''; + public $material; + public $merchantMultipackQuantity; + public $mpn; + public $offerId; + public $onlineOnly; + public $pattern; + protected $priceType = 'Google_Service_Content_Price'; + protected $priceDataType = ''; + public $productType; + protected $salePriceType = 'Google_Service_Content_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + protected $shippingType = 'Google_Service_Content_ProductShipping'; + protected $shippingDataType = 'array'; + protected $shippingWeightType = 'Google_Service_Content_ProductShippingWeight'; + protected $shippingWeightDataType = ''; + public $sizes; + public $targetCountry; + protected $taxType = 'Google_Service_Content_ProductTax'; + protected $taxDataType = ''; + public $title; + public $unitPricingBaseMeasure; + public $unitPricingMeasure; + public $validatedDestinations; + protected $warningsType = 'Google_Service_Content_Error'; + protected $warningsDataType = 'array'; + + public function setAdditionalImageLinks($additionalImageLinks) + { + $this->additionalImageLinks = $additionalImageLinks; + } + + public function getAdditionalImageLinks() + { + return $this->additionalImageLinks; + } + + public function setAdult($adult) + { + $this->adult = $adult; + } + + public function getAdult() + { + return $this->adult; + } + + public function setAdwordsGrouping($adwordsGrouping) + { + $this->adwordsGrouping = $adwordsGrouping; + } + + public function getAdwordsGrouping() + { + return $this->adwordsGrouping; + } + + public function setAdwordsLabels($adwordsLabels) + { + $this->adwordsLabels = $adwordsLabels; + } + + public function getAdwordsLabels() + { + return $this->adwordsLabels; + } + + public function setAdwordsRedirect($adwordsRedirect) + { + $this->adwordsRedirect = $adwordsRedirect; + } + + public function getAdwordsRedirect() + { + return $this->adwordsRedirect; + } + + public function setAgeGroup($ageGroup) + { + $this->ageGroup = $ageGroup; + } + + public function getAgeGroup() + { + return $this->ageGroup; + } + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setBrand($brand) + { + $this->brand = $brand; + } + + public function getBrand() + { + return $this->brand; + } + + public function setChannel($channel) + { + $this->channel = $channel; + } + + public function getChannel() + { + return $this->channel; + } + + public function setColor($color) + { + $this->color = $color; + } + + public function getColor() + { + return $this->color; + } + + public function setCondition($condition) + { + $this->condition = $condition; + } + + public function getCondition() + { + return $this->condition; + } + + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() + { + return $this->contentLanguage; + } + + public function setCustomAttributes($customAttributes) + { + $this->customAttributes = $customAttributes; + } + + public function getCustomAttributes() + { + return $this->customAttributes; + } + + public function setCustomGroups($customGroups) + { + $this->customGroups = $customGroups; + } + + public function getCustomGroups() + { + return $this->customGroups; + } + + public function setCustomLabel0($customLabel0) + { + $this->customLabel0 = $customLabel0; + } + + public function getCustomLabel0() + { + return $this->customLabel0; + } + + public function setCustomLabel1($customLabel1) + { + $this->customLabel1 = $customLabel1; + } + + public function getCustomLabel1() + { + return $this->customLabel1; + } + + public function setCustomLabel2($customLabel2) + { + $this->customLabel2 = $customLabel2; + } + + public function getCustomLabel2() + { + return $this->customLabel2; + } + + public function setCustomLabel3($customLabel3) + { + $this->customLabel3 = $customLabel3; + } + + public function getCustomLabel3() + { + return $this->customLabel3; + } + + public function setCustomLabel4($customLabel4) + { + $this->customLabel4 = $customLabel4; + } + + public function getCustomLabel4() + { + return $this->customLabel4; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDestinations($destinations) + { + $this->destinations = $destinations; + } + + public function getDestinations() + { + return $this->destinations; + } + + public function setEnergyEfficiencyClass($energyEfficiencyClass) + { + $this->energyEfficiencyClass = $energyEfficiencyClass; + } + + public function getEnergyEfficiencyClass() + { + return $this->energyEfficiencyClass; + } + + public function setExpirationDate($expirationDate) + { + $this->expirationDate = $expirationDate; + } + + public function getExpirationDate() + { + return $this->expirationDate; + } + + public function setGender($gender) + { + $this->gender = $gender; + } + + public function getGender() + { + return $this->gender; + } + + public function setGoogleProductCategory($googleProductCategory) + { + $this->googleProductCategory = $googleProductCategory; + } + + public function getGoogleProductCategory() + { + return $this->googleProductCategory; + } + + public function setGtin($gtin) + { + $this->gtin = $gtin; + } + + public function getGtin() + { + return $this->gtin; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setIdentifierExists($identifierExists) + { + $this->identifierExists = $identifierExists; + } + + public function getIdentifierExists() + { + return $this->identifierExists; + } + + public function setImageLink($imageLink) + { + $this->imageLink = $imageLink; + } + + public function getImageLink() + { + return $this->imageLink; + } + + public function setInstallment(Google_Service_Content_ProductInstallment $installment) + { + $this->installment = $installment; + } + + public function getInstallment() + { + return $this->installment; + } + + public function setItemGroupId($itemGroupId) + { + $this->itemGroupId = $itemGroupId; + } + + public function getItemGroupId() + { + return $this->itemGroupId; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setLoyaltyPoints(Google_Service_Content_LoyaltyPoints $loyaltyPoints) + { + $this->loyaltyPoints = $loyaltyPoints; + } + + public function getLoyaltyPoints() + { + return $this->loyaltyPoints; + } + + public function setMaterial($material) + { + $this->material = $material; + } + + public function getMaterial() + { + return $this->material; + } + + public function setMerchantMultipackQuantity($merchantMultipackQuantity) + { + $this->merchantMultipackQuantity = $merchantMultipackQuantity; + } + + public function getMerchantMultipackQuantity() + { + return $this->merchantMultipackQuantity; + } + + public function setMpn($mpn) + { + $this->mpn = $mpn; + } + + public function getMpn() + { + return $this->mpn; + } + + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + + public function getOfferId() + { + return $this->offerId; + } + + public function setOnlineOnly($onlineOnly) + { + $this->onlineOnly = $onlineOnly; + } + + public function getOnlineOnly() + { + return $this->onlineOnly; + } + + public function setPattern($pattern) + { + $this->pattern = $pattern; + } + + public function getPattern() + { + return $this->pattern; + } + + public function setPrice(Google_Service_Content_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setProductType($productType) + { + $this->productType = $productType; + } + + public function getProductType() + { + return $this->productType; + } + + public function setSalePrice(Google_Service_Content_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } + + public function setShipping($shipping) + { + $this->shipping = $shipping; + } + + public function getShipping() + { + return $this->shipping; + } + + public function setShippingWeight(Google_Service_Content_ProductShippingWeight $shippingWeight) + { + $this->shippingWeight = $shippingWeight; + } + + public function getShippingWeight() + { + return $this->shippingWeight; + } + + public function setSizes($sizes) + { + $this->sizes = $sizes; + } + + public function getSizes() + { + return $this->sizes; + } + + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() + { + return $this->targetCountry; + } + + public function setTax(Google_Service_Content_ProductTax $tax) + { + $this->tax = $tax; + } + + public function getTax() + { + return $this->tax; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) + { + $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; + } + + public function getUnitPricingBaseMeasure() + { + return $this->unitPricingBaseMeasure; + } + + public function setUnitPricingMeasure($unitPricingMeasure) + { + $this->unitPricingMeasure = $unitPricingMeasure; + } + + public function getUnitPricingMeasure() + { + return $this->unitPricingMeasure; + } + + public function setValidatedDestinations($validatedDestinations) + { + $this->validatedDestinations = $validatedDestinations; + } + + public function getValidatedDestinations() + { + return $this->validatedDestinations; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_Content_ProductCustomAttribute extends Google_Model +{ + public $name; + public $type; + public $unit; + public $value; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Content_ProductCustomGroup extends Google_Collection +{ + protected $attributesType = 'Google_Service_Content_ProductCustomAttribute'; + protected $attributesDataType = 'array'; + public $name; + + public function setAttributes($attributes) + { + $this->attributes = $attributes; + } + + public function getAttributes() + { + return $this->attributes; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + +class Google_Service_Content_ProductDestination extends Google_Model +{ + public $destinationName; + public $intention; + + public function setDestinationName($destinationName) + { + $this->destinationName = $destinationName; + } + + public function getDestinationName() + { + return $this->destinationName; + } + + public function setIntention($intention) + { + $this->intention = $intention; + } + + public function getIntention() + { + return $this->intention; + } +} + +class Google_Service_Content_ProductInstallment extends Google_Model +{ + protected $amountType = 'Google_Service_Content_Price'; + protected $amountDataType = ''; + public $months; + + public function setAmount(Google_Service_Content_Price $amount) + { + $this->amount = $amount; + } + + public function getAmount() + { + return $this->amount; + } + + public function setMonths($months) + { + $this->months = $months; + } + + public function getMonths() + { + return $this->months; + } +} + +class Google_Service_Content_ProductShipping extends Google_Model +{ + public $country; + protected $priceType = 'Google_Service_Content_Price'; + protected $priceDataType = ''; + public $region; + public $service; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setPrice(Google_Service_Content_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setService($service) + { + $this->service = $service; + } + + public function getService() + { + return $this->service; + } +} + +class Google_Service_Content_ProductShippingWeight extends Google_Model +{ + public $unit; + public $value; + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Content_ProductStatus extends Google_Collection +{ + protected $dataQualityIssuesType = 'Google_Service_Content_ProductStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + protected $destinationStatusesType = 'Google_Service_Content_ProductStatusDestinationStatus'; + protected $destinationStatusesDataType = 'array'; + public $kind; + public $link; + public $productId; + public $title; + + public function setDataQualityIssues($dataQualityIssues) + { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() + { + return $this->dataQualityIssues; + } + + public function setDestinationStatuses($destinationStatuses) + { + $this->destinationStatuses = $destinationStatuses; + } + + public function getDestinationStatuses() + { + return $this->destinationStatuses; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Content_ProductStatusDataQualityIssue extends Google_Model +{ + public $detail; + public $fetchStatus; + public $id; + public $location; + public $timestamp; + public $valueOnLandingPage; + public $valueProvided; + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function getDetail() + { + return $this->detail; + } + + public function setFetchStatus($fetchStatus) + { + $this->fetchStatus = $fetchStatus; + } + + public function getFetchStatus() + { + return $this->fetchStatus; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLocation($location) + { + $this->location = $location; + } + + public function getLocation() + { + return $this->location; + } + + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + + public function getTimestamp() + { + return $this->timestamp; + } + + public function setValueOnLandingPage($valueOnLandingPage) + { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() + { + return $this->valueOnLandingPage; + } + + public function setValueProvided($valueProvided) + { + $this->valueProvided = $valueProvided; + } + + public function getValueProvided() + { + return $this->valueProvided; + } +} + +class Google_Service_Content_ProductStatusDestinationStatus extends Google_Model +{ + public $approvalStatus; + public $destination; + public $intention; + + public function setApprovalStatus($approvalStatus) + { + $this->approvalStatus = $approvalStatus; + } + + public function getApprovalStatus() + { + return $this->approvalStatus; + } + + public function setDestination($destination) + { + $this->destination = $destination; + } + + public function getDestination() + { + return $this->destination; + } + + public function setIntention($intention) + { + $this->intention = $intention; + } + + public function getIntention() + { + return $this->intention; + } +} + +class Google_Service_Content_ProductTax extends Google_Model +{ + public $country; + public $rate; + public $region; + public $taxShip; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + + public function getRate() + { + return $this->rate; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setTaxShip($taxShip) + { + $this->taxShip = $taxShip; + } + + public function getTaxShip() + { + return $this->taxShip; + } +} + +class Google_Service_Content_ProductsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_ProductsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_ProductsCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $merchantId; + public $method; + protected $productType = 'Google_Service_Content_Product'; + protected $productDataType = ''; + public $productId; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } + + public function setProduct(Google_Service_Content_Product $product) + { + $this->product = $product; + } + + public function getProduct() + { + return $this->product; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_Content_ProductsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_ProductsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_ProductsCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productType = 'Google_Service_Content_Product'; + protected $productDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProduct(Google_Service_Content_Product $product) + { + $this->product = $product; + } + + public function getProduct() + { + return $this->product; + } +} + +class Google_Service_Content_ProductsListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_Content_Product'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Content_ProductstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_ProductstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Content_ProductstatusesCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $merchantId; + public $method; + public $productId; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_Content_ProductstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_Content_ProductstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Content_ProductstatusesCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_Content_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productStatusType = 'Google_Service_Content_ProductStatus'; + protected $productStatusDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_Content_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProductStatus(Google_Service_Content_ProductStatus $productStatus) + { + $this->productStatus = $productStatus; + } + + public function getProductStatus() + { + return $this->productStatus; + } +} + +class Google_Service_Content_ProductstatusesListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_Content_ProductStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} From 83742556c82f2eeb1de4d63d411fa44e254ab80b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 5 Jun 2014 00:02:10 -0700 Subject: [PATCH 0005/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 3d0468137..b71cacdf3 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -186,6 +186,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -609,8 +613,10 @@ public function get($datasetId, $optParams = array()) * @opt_param string pageToken * The continuation token, which is used to page through large result sets. To get the next page of * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of results returned by this request. * @opt_param string projectId - * Only return datasets which belong to this Google Developers Console project. + * The Google Cloud Console project number. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) @@ -1196,6 +1202,7 @@ class Google_Service_Genomics_Dataset extends Google_Model { public $id; public $isPublic; + public $name; public $projectId; public function setId($id) @@ -1218,6 +1225,16 @@ public function getIsPublic() return $this->isPublic; } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) { $this->projectId = $projectId; From 2331b1c69a6e42ed421ef5e7c45bef65774509b3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Jun 2014 00:03:08 -0700 Subject: [PATCH 0006/1274] Updated Content.php --- src/Google/Service/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Content.php b/src/Google/Service/Content.php index 9adef951c..0e42eaf95 100644 --- a/src/Google/Service/Content.php +++ b/src/Google/Service/Content.php @@ -19,7 +19,7 @@ * Service definition for Content (v2). * *

- * Manage product items, inventory, and Merchant Center accounts. + * Manage product items, inventory, and Merchant Center accounts for Google Shopping. *

* *

From acbe372f2ed2a2ac017d8d42e1acb1a524852a28 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Jun 2014 00:03:09 -0700 Subject: [PATCH 0007/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index b71cacdf3..da34fc381 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -616,7 +616,7 @@ public function get($datasetId, $optParams = array()) * @opt_param string maxResults * The maximum number of results returned by this request. * @opt_param string projectId - * The Google Cloud Console project number. + * Only return datasets which belong to this Google Developers Console project. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) @@ -2282,6 +2282,7 @@ public function getUri() class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection { public $datasetIds; + public $maxResults; public $name; public $pageToken; @@ -2295,6 +2296,16 @@ public function getDatasetIds() return $this->datasetIds; } + public function setMaxResults($maxResults) + { + $this->maxResults = $maxResults; + } + + public function getMaxResults() + { + return $this->maxResults; + } + public function setName($name) { $this->name = $name; From 3be2abc07f8fe7564f5c447ac9eb0d314148d944 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Jun 2014 00:03:09 -0700 Subject: [PATCH 0008/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index de571fd95..9674a8f13 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -33,7 +33,7 @@ class Google_Service_Bigquery extends Google_Service { /** View and manage your data in Google BigQuery. */ const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; - /** New Service. */ + /** Insert data into Google BigQuery. */ const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; From 4b0088323ed6ae24e0cbc975401203e8656d7558 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 7 Jun 2014 00:04:03 -0700 Subject: [PATCH 0009/1274] Updated Resourceviews.php --- src/Google/Service/Resourceviews.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index d4597d529..9a1c0d51c 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -19,12 +19,12 @@ * Service definition for Resourceviews (v1beta1). * *

- * The Google Resource Views API provides views of VMs. + * The Resource View API allows users to create and manage logical sets of Google Compute Engine instances. *

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -801,6 +801,7 @@ class Google_Service_Resourceviews_ResourceView extends Google_Collection public $creationTime; public $description; public $id; + public $kind; protected $labelsType = 'Google_Service_Resourceviews_Label'; protected $labelsDataType = 'array'; public $lastModified; @@ -839,6 +840,16 @@ 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; From 551f80043452b737b982bb818a9d9a55f7f77ffc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 7 Jun 2014 00:04:04 -0700 Subject: [PATCH 0010/1274] Updated Directory.php --- src/Google/Service/Directory.php | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index c50ed9487..560908077 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -1958,8 +1958,8 @@ public function get($userKey, $clientId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Directory_Token"); } /** - * Returns the set of current, valid verification codes for the specified user. - * (tokens.listTokens) + * Returns the set of tokens specified user has issued to 3rd party + * applications. (tokens.listTokens) * * @param string $userKey * Identifies the user in the API request. The value can be the user's primary email address, alias @@ -3958,23 +3958,19 @@ public function getKind() class Google_Service_Directory_User extends Google_Collection { - protected $addressesType = 'Google_Service_Directory_UserAddress'; - protected $addressesDataType = 'array'; + public $addresses; public $agreedToTerms; public $aliases; public $changePasswordAtNextLogin; public $creationTime; public $customerId; public $deletionTime; - protected $emailsType = 'Google_Service_Directory_UserEmail'; - protected $emailsDataType = 'array'; + public $emails; public $etag; - protected $externalIdsType = 'Google_Service_Directory_UserExternalId'; - protected $externalIdsDataType = 'array'; + public $externalIds; public $hashFunction; public $id; - protected $imsType = 'Google_Service_Directory_UserIm'; - protected $imsDataType = 'array'; + public $ims; public $includeInGlobalAddressList; public $ipWhitelisted; public $isAdmin; @@ -3986,14 +3982,11 @@ class Google_Service_Directory_User extends Google_Collection protected $nameDataType = ''; public $nonEditableAliases; public $orgUnitPath; - protected $organizationsType = 'Google_Service_Directory_UserOrganization'; - protected $organizationsDataType = 'array'; + public $organizations; public $password; - protected $phonesType = 'Google_Service_Directory_UserPhone'; - protected $phonesDataType = 'array'; + public $phones; public $primaryEmail; - protected $relationsType = 'Google_Service_Directory_UserRelation'; - protected $relationsDataType = 'array'; + public $relations; public $suspended; public $suspensionReason; public $thumbnailPhotoUrl; From 5dafbc46b30acd9d2a7f3475acb85755277abd41 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 10 Jun 2014 00:07:03 -0700 Subject: [PATCH 0011/1274] Updated Compute.php --- src/Google/Service/Compute.php | 5545 ++++++++++++++++++++++---------- 1 file changed, 3775 insertions(+), 1770 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 7ea7e6369..20b53586f 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -43,10 +43,13 @@ class Google_Service_Compute extends Google_Service const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; public $addresses; + public $backendServices; public $diskTypes; public $disks; public $firewalls; public $forwardingRules; + public $globalAddresses; + public $globalForwardingRules; public $globalOperations; public $httpHealthChecks; public $images; @@ -58,8 +61,10 @@ class Google_Service_Compute extends Google_Service public $regions; public $routes; public $snapshots; + public $targetHttpProxies; public $targetInstances; public $targetPools; + public $urlMaps; public $zoneOperations; public $zones; @@ -190,6 +195,123 @@ public function __construct(Google_Client $client) ) ) ); + $this->backendServices = new Google_Service_Compute_BackendServices_Resource( + $this, + $this->serviceName, + 'backendServices', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getHealth' => array( + 'path' => '{project}/global/backendServices/{backendService}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( $this, $this->serviceName, @@ -643,6 +765,165 @@ public function __construct(Google_Client $client) ) ) ); + $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( + $this, + $this->serviceName, + 'globalAddresses', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( + $this, + $this->serviceName, + 'globalForwardingRules', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setTarget' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( $this, $this->serviceName, @@ -1709,15 +1990,102 @@ public function __construct(Google_Client $client) ) ) ); - $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( + $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( $this, $this->serviceName, - 'targetInstances', + 'targetHttpProxies', array( 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetInstances', - 'httpMethod' => 'GET', + 'delete' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setUrlMap' => array( + 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( + $this, + $this->serviceName, + 'targetInstances', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetInstances', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2061,6 +2429,123 @@ public function __construct(Google_Client $client) ) ) ); + $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this, + $this->serviceName, + 'urlMaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'validate' => array( + 'path' => '{project}/global/urlMaps/{urlMap}/validate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( $this, $this->serviceName, @@ -2306,99 +2791,85 @@ public function listAddresses($project, $region, $optParams = array()) } /** - * The "diskTypes" collection of methods. + * The "backendServices" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $diskTypes = $computeService->diskTypes; + * $backendServices = $computeService->backendServices; * */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource +class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource { /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) + * Deletes the specified BackendService resource. (backendServices.delete) * * @param string $project * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to delete. * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskTypeAggregatedList + * @return Google_Service_Compute_Operation */ - public function aggregatedList($project, $optParams = array()) + public function delete($project, $backendService, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'backendService' => $backendService); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified disk type resource. (diskTypes.get) + * Returns the specified BackendService resource. (backendServices.get) * * @param string $project * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $diskType - * Name of the disk type resource to return. + * @param string $backendService + * Name of the BackendService resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType + * @return Google_Service_Compute_BackendService */ - public function get($project, $zone, $diskType, $optParams = array()) + public function get($project, $backendService, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array('project' => $project, 'backendService' => $backendService); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + return $this->call('get', array($params), "Google_Service_Compute_BackendService"); } /** - * Retrieves the list of disk type resources available to the specified project. - * (diskTypes.listDiskTypes) + * Gets the most recent health check results for this BackendService. + * (backendServices.getHealth) * * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * + * @param string $backendService + * Name of the BackendService resource to which the queried instance belongs. + * @param Google_ResourceGroupReference $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendServiceGroupHealth + */ + public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + } + /** + * Creates a BackendService resource in the specified project using the data + * included in the request. (backendServices.insert) * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskTypeList + * @param string $project + * Name of the project scoping this request. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation */ - public function listDiskTypes($project, $zone, $optParams = array()) + public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } -} - -/** - * The "disks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $disks = $computeService->disks; - * - */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource -{ - /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * Retrieves the list of BackendService resources available to the specified + * project. (backendServices.listBackendServices) * * @param string $project * Name of the project scoping this request. @@ -2412,13 +2883,166 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource * @opt_param string maxResults * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is * 500. - * @return Google_Service_Compute_DiskAggregatedList + * @return Google_Service_Compute_BackendServiceList */ - public function aggregatedList($project, $optParams = array()) + public function listBackendServices($project, $optParams = array()) { $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); + return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + } + /** + * Update the entire content of the BackendService resource. This method + * supports patch semantics. (backendServices.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Update the entire content of the BackendService resource. + * (backendServices.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "diskTypes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $diskTypes = $computeService->diskTypes; + * + */ +class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disk type resources grouped by scope. + * (diskTypes.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + } + /** + * Returns the specified disk type resource. (diskTypes.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $diskType + * Name of the disk type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_DiskType + */ + public function get($project, $zone, $diskType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + } + /** + * Retrieves the list of disk type resources available to the specified project. + * (diskTypes.listDiskTypes) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskTypeList + */ + public function listDiskTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + } +} + +/** + * The "disks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $disks = $computeService->disks; + * + */ +class Google_Service_Compute_Disks_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); } /** * (disks.createSnapshot) @@ -2782,74 +3406,67 @@ public function setTarget($project, $region, $forwardingRule, Google_Service_Com } /** - * The "globalOperations" collection of methods. + * The "globalAddresses" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $globalOperations = $computeService->globalOperations; + * $globalAddresses = $computeService->globalAddresses; * */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource { /** - * Retrieves the list of all operations grouped by scope. - * (globalOperations.aggregatedList) + * Deletes the specified address resource. (globalAddresses.delete) * * @param string $project * Name of the project scoping this request. + * @param string $address + * Name of the address resource to delete. * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_OperationAggregatedList + * @return Google_Service_Compute_Operation */ - public function aggregatedList($project, $optParams = array()) + public function delete($project, $address, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'address' => $address); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Deletes the specified operation resource. (globalOperations.delete) + * Returns the specified address resource. (globalAddresses.get) * * @param string $project * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to delete. + * @param string $address + * Name of the address resource to return. * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address */ - public function delete($project, $operation, $optParams = array()) + public function get($project, $address, $optParams = array()) { - $params = array('project' => $project, 'operation' => $operation); + $params = array('project' => $project, 'address' => $address); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Compute_Address"); } /** - * Retrieves the specified operation resource. (globalOperations.get) + * Creates an address resource in the specified project using the data included + * in the request. (globalAddresses.insert) * * @param string $project * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to return. + * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function get($project, $operation, $optParams = array()) + public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) { - $params = array('project' => $project, 'operation' => $operation); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves the list of operation resources contained within the specified - * project. (globalOperations.listGlobalOperations) + * Retrieves the list of global address resources. + * (globalAddresses.listGlobalAddresses) * * @param string $project * Name of the project scoping this request. @@ -2863,78 +3480,78 @@ public function get($project, $operation, $optParams = array()) * @opt_param string maxResults * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is * 500. - * @return Google_Service_Compute_OperationList + * @return Google_Service_Compute_AddressList */ - public function listGlobalOperations($project, $optParams = array()) + public function listGlobalAddresses($project, $optParams = array()) { $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); } } /** - * The "httpHealthChecks" collection of methods. + * The "globalForwardingRules" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $httpHealthChecks = $computeService->httpHealthChecks; + * $globalForwardingRules = $computeService->globalForwardingRules; * */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource { /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) * * @param string $project * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to delete. + * @param string $forwardingRule + * Name of the ForwardingRule resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function delete($project, $httpHealthCheck, $optParams = array()) + public function delete($project, $forwardingRule, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * Returns the specified ForwardingRule resource. (globalForwardingRules.get) * * @param string $project * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to return. + * @param string $forwardingRule + * Name of the ForwardingRule resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck + * @return Google_Service_Compute_ForwardingRule */ - public function get($project, $httpHealthCheck, $optParams = array()) + public function get($project, $forwardingRule, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); } /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (globalForwardingRules.insert) * * @param string $project * Name of the project scoping this request. - * @param Google_HttpHealthCheck $postBody + * @param Google_ForwardingRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) { $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) + * Retrieves the list of ForwardingRule resources available to the specified + * project. (globalForwardingRules.listGlobalForwardingRules) * * @param string $project * Name of the project scoping this request. @@ -2948,55 +3565,249 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod * @opt_param string maxResults * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is * 500. - * @return Google_Service_Compute_HttpHealthCheckList + * @return Google_Service_Compute_ForwardingRuleList */ - public function listHttpHealthChecks($project, $optParams = array()) + public function listGlobalForwardingRules($project, $optParams = array()) { $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); - } - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) - * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); } /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.update) + * Changes target url for forwarding rule. (globalForwardingRules.setTarget) * * @param string $project * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. - * @param Google_HttpHealthCheck $postBody + * @param string $forwardingRule + * Name of the ForwardingRule resource in which target is to be set. + * @param Google_TargetReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); } } /** - * The "images" collection of methods. + * The "globalOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalOperations = $computeService->globalOperations; + * + */ +class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of all operations grouped by scope. + * (globalOperations.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + } + /** + * Deletes the specified operation resource. (globalOperations.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $operation + * Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves the specified operation resource. (globalOperations.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $operation + * Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalOperations.listGlobalOperations) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationList + */ + public function listGlobalOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "httpHealthChecks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $httpHealthChecks = $computeService->httpHealthChecks; + * + */ +class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_HttpHealthCheck + */ + public function get($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + } + /** + * Creates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves the list of HttpHealthCheck resources available to the specified + * project. (httpHealthChecks.listHttpHealthChecks) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_HttpHealthCheckList + */ + public function listHttpHealthChecks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + } + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (httpHealthChecks.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "images" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); @@ -3925,78 +4736,180 @@ public function listSnapshots($project, $optParams = array()) } /** - * The "targetInstances" collection of methods. + * The "targetHttpProxies" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $targetInstances = $computeService->targetInstances; + * $targetHttpProxies = $computeService->targetHttpProxies; * */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource { /** - * Retrieves the list of target instances grouped by scope. - * (targetInstances.aggregatedList) + * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) * * @param string $project * Name of the project scoping this request. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource to delete. * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetInstanceAggregatedList + * @return Google_Service_Compute_Operation */ - public function aggregatedList($project, $optParams = array()) + public function delete($project, $targetHttpProxy, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) + * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) * * @param string $project * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to delete. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * @return Google_Service_Compute_TargetHttpProxy */ - public function delete($project, $zone, $targetInstance, $optParams = array()) + public function get($project, $targetHttpProxy, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); } /** - * Returns the specified TargetInstance resource. (targetInstances.get) + * Creates a TargetHttpProxy resource in the specified project using the data + * included in the request. (targetHttpProxies.insert) * * @param string $project * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to return. + * @param Google_TargetHttpProxy $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance + * @return Google_Service_Compute_Operation */ - public function get($project, $zone, $targetInstance, $optParams = array()) + public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Creates a TargetInstance resource in the specified project and zone using the + * Retrieves the list of TargetHttpProxy resources available to the specified + * project. (targetHttpProxies.listTargetHttpProxies) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetHttpProxyList + */ + public function listTargetHttpProxies($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + } + /** + * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) + * + * @param string $project + * Name of the project scoping this request. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource whose URL map is to be set. + * @param Google_UrlMapReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetInstances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetInstances = $computeService->targetInstances; + * + */ +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target instances grouped by scope. + * (targetInstances.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetInstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + } + /** + * Deletes the specified TargetInstance resource. (targetInstances.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $targetInstance + * Name of the TargetInstance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified TargetInstance resource. (targetInstances.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $targetInstance + * Name of the TargetInstance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetInstance + */ + public function get($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + } + /** + * Creates a TargetInstance resource in the specified project and zone using the * data included in the request. (targetInstances.insert) * * @param string $project @@ -4276,6 +5189,145 @@ public function setBackup($project, $region, $targetPool, Google_Service_Compute } } +/** + * The "urlMaps" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $urlMaps = $computeService->urlMaps; + * + */ +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified UrlMap resource. (urlMaps.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified UrlMap resource. (urlMaps.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMap + */ + public function get($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + } + /** + * Creates a UrlMap resource in the specified project using the data included in + * the request. (urlMaps.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves the list of UrlMap resources available to the specified project. + * (urlMaps.listUrlMaps) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_UrlMapList + */ + public function listUrlMaps($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + } + /** + * Update the entire content of the UrlMap resource. This method supports patch + * semantics. (urlMaps.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Update the entire content of the UrlMap resource. (urlMaps.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } + /** + * Run static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * (urlMaps.validate) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to be validated as. + * @param Google_UrlMapsValidateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMapsValidateResponse + */ + public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + } +} + /** * The "zoneOperations" collection of methods. * Typical usage is: @@ -4934,239 +5986,256 @@ public function getSourceImage() } } -class Google_Service_Compute_DeprecationStatus extends Google_Model +class Google_Service_Compute_Backend extends Google_Model { - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; + public $balancingMode; + public $capacityScaler; + public $description; + public $group; + public $maxRate; + public $maxRatePerInstance; + public $maxUtilization; - public function setDeleted($deleted) + public function setBalancingMode($balancingMode) { - $this->deleted = $deleted; + $this->balancingMode = $balancingMode; } - public function getDeleted() + public function getBalancingMode() { - return $this->deleted; + return $this->balancingMode; } - public function setDeprecated($deprecated) + public function setCapacityScaler($capacityScaler) { - $this->deprecated = $deprecated; + $this->capacityScaler = $capacityScaler; } - public function getDeprecated() + public function getCapacityScaler() { - return $this->deprecated; + return $this->capacityScaler; } - public function setObsolete($obsolete) + public function setDescription($description) { - $this->obsolete = $obsolete; + $this->description = $description; } - public function getObsolete() + public function getDescription() { - return $this->obsolete; + return $this->description; } - public function setReplacement($replacement) + public function setGroup($group) { - $this->replacement = $replacement; + $this->group = $group; } - public function getReplacement() + public function getGroup() { - return $this->replacement; + return $this->group; } - public function setState($state) + public function setMaxRate($maxRate) { - $this->state = $state; + $this->maxRate = $maxRate; } - public function getState() + public function getMaxRate() { - return $this->state; + return $this->maxRate; + } + + public function setMaxRatePerInstance($maxRatePerInstance) + { + $this->maxRatePerInstance = $maxRatePerInstance; + } + + public function getMaxRatePerInstance() + { + return $this->maxRatePerInstance; + } + + public function setMaxUtilization($maxUtilization) + { + $this->maxUtilization = $maxUtilization; + } + + public function getMaxUtilization() + { + return $this->maxUtilization; } } -class Google_Service_Compute_Disk extends Google_Model +class Google_Service_Compute_BackendService extends Google_Collection { + protected $backendsType = 'Google_Service_Compute_Backend'; + protected $backendsDataType = 'array'; public $creationTimestamp; public $description; + public $fingerprint; + public $healthChecks; public $id; public $kind; public $name; - public $options; + public $port; + public $protocol; public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $zone; + public $timeoutSec; - public function setCreationTimestamp($creationTimestamp) + public function setBackends($backends) { - $this->creationTimestamp = $creationTimestamp; + $this->backends = $backends; } - public function getCreationTimestamp() + public function getBackends() { - return $this->creationTimestamp; + return $this->backends; } - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() + public function setCreationTimestamp($creationTimestamp) { - return $this->description; + $this->creationTimestamp = $creationTimestamp; } - public function setId($id) + public function getCreationTimestamp() { - $this->id = $id; + return $this->creationTimestamp; } - public function getId() + public function setDescription($description) { - return $this->id; + $this->description = $description; } - public function setKind($kind) + public function getDescription() { - $this->kind = $kind; + return $this->description; } - public function getKind() + public function setFingerprint($fingerprint) { - return $this->kind; + $this->fingerprint = $fingerprint; } - public function setName($name) + public function getFingerprint() { - $this->name = $name; + return $this->fingerprint; } - public function getName() + public function setHealthChecks($healthChecks) { - return $this->name; + $this->healthChecks = $healthChecks; } - public function setOptions($options) + public function getHealthChecks() { - $this->options = $options; + return $this->healthChecks; } - public function getOptions() + public function setId($id) { - return $this->options; + $this->id = $id; } - public function setSelfLink($selfLink) + public function getId() { - $this->selfLink = $selfLink; + return $this->id; } - public function getSelfLink() + public function setKind($kind) { - return $this->selfLink; + $this->kind = $kind; } - public function setSizeGb($sizeGb) + public function getKind() { - $this->sizeGb = $sizeGb; + return $this->kind; } - public function getSizeGb() + public function setName($name) { - return $this->sizeGb; + $this->name = $name; } - public function setSourceImage($sourceImage) + public function getName() { - $this->sourceImage = $sourceImage; + return $this->name; } - public function getSourceImage() + public function setPort($port) { - return $this->sourceImage; + $this->port = $port; } - public function setSourceImageId($sourceImageId) + public function getPort() { - $this->sourceImageId = $sourceImageId; + return $this->port; } - public function getSourceImageId() + public function setProtocol($protocol) { - return $this->sourceImageId; + $this->protocol = $protocol; } - public function setSourceSnapshot($sourceSnapshot) + public function getProtocol() { - $this->sourceSnapshot = $sourceSnapshot; + return $this->protocol; } - public function getSourceSnapshot() + public function setSelfLink($selfLink) { - return $this->sourceSnapshot; + $this->selfLink = $selfLink; } - public function setSourceSnapshotId($sourceSnapshotId) + public function getSelfLink() { - $this->sourceSnapshotId = $sourceSnapshotId; + return $this->selfLink; } - public function getSourceSnapshotId() + public function setTimeoutSec($timeoutSec) { - return $this->sourceSnapshotId; + $this->timeoutSec = $timeoutSec; } - public function setStatus($status) + public function getTimeoutSec() { - $this->status = $status; + return $this->timeoutSec; } +} - public function getStatus() - { - return $this->status; - } +class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection +{ + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; - public function setType($type) + public function setHealthStatus($healthStatus) { - $this->type = $type; + $this->healthStatus = $healthStatus; } - public function getType() + public function getHealthStatus() { - return $this->type; + return $this->healthStatus; } - public function setZone($zone) + public function setKind($kind) { - $this->zone = $zone; + $this->kind = $kind; } - public function getZone() + public function getKind() { - return $this->zone; + return $this->kind; } } -class Google_Service_Compute_DiskAggregatedList extends Google_Model +class Google_Service_Compute_BackendServiceList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; - protected $itemsDataType = 'map'; + protected $itemsType = 'Google_Service_Compute_BackendService'; + protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; @@ -5222,77 +6291,81 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskList extends Google_Collection +class Google_Service_Compute_DeprecationStatus extends Google_Model { - public $id; - protected $itemsType = 'Google_Service_Compute_Disk'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; + public $deleted; + public $deprecated; + public $obsolete; + public $replacement; + public $state; - public function setId($id) + public function setDeleted($deleted) { - $this->id = $id; + $this->deleted = $deleted; } - public function getId() + public function getDeleted() { - return $this->id; + return $this->deleted; } - public function setItems($items) + public function setDeprecated($deprecated) { - $this->items = $items; + $this->deprecated = $deprecated; } - public function getItems() + public function getDeprecated() { - return $this->items; + return $this->deprecated; } - public function setKind($kind) + public function setObsolete($obsolete) { - $this->kind = $kind; + $this->obsolete = $obsolete; } - public function getKind() + public function getObsolete() { - return $this->kind; + return $this->obsolete; } - public function setNextPageToken($nextPageToken) + public function setReplacement($replacement) { - $this->nextPageToken = $nextPageToken; + $this->replacement = $replacement; } - public function getNextPageToken() + public function getReplacement() { - return $this->nextPageToken; + return $this->replacement; } - public function setSelfLink($selfLink) + public function setState($state) { - $this->selfLink = $selfLink; + $this->state = $state; } - public function getSelfLink() + public function getState() { - return $this->selfLink; + return $this->state; } } -class Google_Service_Compute_DiskType extends Google_Model +class Google_Service_Compute_Disk extends Google_Model { public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; public $id; public $kind; public $name; + public $options; public $selfLink; - public $validDiskSize; + public $sizeGb; + public $sourceImage; + public $sourceImageId; + public $sourceSnapshot; + public $sourceSnapshotId; + public $status; + public $type; public $zone; public function setCreationTimestamp($creationTimestamp) @@ -5305,16 +6378,6 @@ 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; @@ -5355,6 +6418,16 @@ 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; @@ -5365,92 +6438,92 @@ public function getSelfLink() return $this->selfLink; } - public function setValidDiskSize($validDiskSize) + public function setSizeGb($sizeGb) { - $this->validDiskSize = $validDiskSize; + $this->sizeGb = $sizeGb; } - public function getValidDiskSize() + public function getSizeGb() { - return $this->validDiskSize; + return $this->sizeGb; } - public function setZone($zone) + public function setSourceImage($sourceImage) { - $this->zone = $zone; + $this->sourceImage = $sourceImage; } - public function getZone() + public function getSourceImage() { - return $this->zone; + return $this->sourceImage; } -} - -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - public function setId($id) + public function setSourceImageId($sourceImageId) { - $this->id = $id; + $this->sourceImageId = $sourceImageId; } - public function getId() + public function getSourceImageId() { - return $this->id; + return $this->sourceImageId; } - public function setItems($items) + public function setSourceSnapshot($sourceSnapshot) { - $this->items = $items; + $this->sourceSnapshot = $sourceSnapshot; } - public function getItems() + public function getSourceSnapshot() { - return $this->items; + return $this->sourceSnapshot; } - public function setKind($kind) + public function setSourceSnapshotId($sourceSnapshotId) { - $this->kind = $kind; + $this->sourceSnapshotId = $sourceSnapshotId; } - public function getKind() + public function getSourceSnapshotId() { - return $this->kind; + return $this->sourceSnapshotId; } - public function setNextPageToken($nextPageToken) + public function setStatus($status) { - $this->nextPageToken = $nextPageToken; + $this->status = $status; } - public function getNextPageToken() + public function getStatus() { - return $this->nextPageToken; + return $this->status; } - public function setSelfLink($selfLink) + public function setType($type) { - $this->selfLink = $selfLink; + $this->type = $type; } - public function getSelfLink() + public function getType() { - return $this->selfLink; + return $this->type; + } + + public function setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; } } -class Google_Service_Compute_DiskTypeList extends Google_Collection +class Google_Service_Compute_DiskAggregatedList extends Google_Model { public $id; - protected $itemsType = 'Google_Service_Compute_DiskType'; - protected $itemsDataType = 'array'; + protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsDataType = 'map'; public $kind; public $nextPageToken; public $selfLink; @@ -5506,258 +6579,542 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskTypesScopedList extends Google_Collection +class Google_Service_Compute_DiskList extends Google_Collection { - protected $diskTypesType = 'Google_Service_Compute_DiskType'; - protected $diskTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; - protected $warningDataType = ''; + public $id; + protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setDiskTypes($diskTypes) + public function setId($id) { - $this->diskTypes = $diskTypes; + $this->id = $id; } - public function getDiskTypes() + public function getId() { - return $this->diskTypes; + return $this->id; } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) + public function setItems($items) { - $this->warning = $warning; + $this->items = $items; } - public function getWarning() + public function getItems() { - return $this->warning; + return $this->items; } -} - -class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - public function setCode($code) + public function setKind($kind) { - $this->code = $code; + $this->kind = $kind; } - public function getCode() + public function getKind() { - return $this->code; + return $this->kind; } - public function setData($data) + public function setNextPageToken($nextPageToken) { - $this->data = $data; + $this->nextPageToken = $nextPageToken; } - public function getData() + public function getNextPageToken() { - return $this->data; + return $this->nextPageToken; } - public function setMessage($message) + public function setSelfLink($selfLink) { - $this->message = $message; + $this->selfLink = $selfLink; } - public function getMessage() + public function getSelfLink() { - return $this->message; + return $this->selfLink; } } -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model +class Google_Service_Compute_DiskType extends Google_Model { - public $key; - public $value; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $validDiskSize; + public $zone; - public function setKey($key) + public function setCreationTimestamp($creationTimestamp) { - $this->key = $key; + $this->creationTimestamp = $creationTimestamp; } - public function getKey() + public function getCreationTimestamp() { - return $this->key; + return $this->creationTimestamp; } - public function setValue($value) + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { - $this->value = $value; + $this->deprecated = $deprecated; } - public function getValue() + public function getDeprecated() { - return $this->value; + return $this->deprecated; } -} - -class Google_Service_Compute_DisksScopedList extends Google_Collection -{ - protected $disksType = 'Google_Service_Compute_Disk'; - protected $disksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; - protected $warningDataType = ''; - public function setDisks($disks) + public function setDescription($description) { - $this->disks = $disks; + $this->description = $description; } - public function getDisks() + public function getDescription() { - return $this->disks; + return $this->description; } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) + public function setId($id) { - $this->warning = $warning; + $this->id = $id; } - public function getWarning() + public function getId() { - return $this->warning; + return $this->id; } -} - -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - public function setCode($code) + public function setKind($kind) { - $this->code = $code; + $this->kind = $kind; } - public function getCode() + public function getKind() { - return $this->code; + return $this->kind; } - public function setData($data) + public function setName($name) { - $this->data = $data; + $this->name = $name; } - public function getData() + public function getName() { - return $this->data; + return $this->name; } - public function setMessage($message) + public function setSelfLink($selfLink) { - $this->message = $message; + $this->selfLink = $selfLink; } - public function getMessage() + public function getSelfLink() { - return $this->message; + return $this->selfLink; } -} - -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function setValidDiskSize($validDiskSize) { - $this->key = $key; + $this->validDiskSize = $validDiskSize; } - public function getKey() + public function getValidDiskSize() { - return $this->key; + return $this->validDiskSize; } - public function setValue($value) + public function setZone($zone) { - $this->value = $value; + $this->zone = $zone; } - public function getValue() + public function getZone() { - return $this->value; + return $this->zone; } } -class Google_Service_Compute_Firewall extends Google_Collection +class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model { - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; - public $creationTimestamp; - public $description; public $id; + protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; + protected $itemsDataType = 'map'; public $kind; - public $name; - public $network; + public $nextPageToken; public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; - public function setAllowed($allowed) + public function setId($id) { - $this->allowed = $allowed; + $this->id = $id; } - public function getAllowed() + public function getId() { - return $this->allowed; + return $this->id; } - public function setCreationTimestamp($creationTimestamp) + public function setItems($items) { - $this->creationTimestamp = $creationTimestamp; + $this->items = $items; } - public function getCreationTimestamp() + public function getItems() { - return $this->creationTimestamp; + return $this->items; } - public function setDescription($description) + public function setKind($kind) { - $this->description = $description; + $this->kind = $kind; } - public function getDescription() + public function getKind() { - return $this->description; + return $this->kind; } - public function setId($id) + public function setNextPageToken($nextPageToken) { - $this->id = $id; + $this->nextPageToken = $nextPageToken; } - public function getId() + public function getNextPageToken() { - return $this->id; + return $this->nextPageToken; } - public function setKind($kind) + public function setSelfLink($selfLink) { - $this->kind = $kind; + $this->selfLink = $selfLink; } - public function getKind() + public function getSelfLink() { - return $this->kind; + return $this->selfLink; } +} - public function setName($name) - { - $this->name = $name; +class Google_Service_Compute_DiskTypeList extends Google_Collection +{ + public $id; + protected $itemsType = 'Google_Service_Compute_DiskType'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskTypesScopedList extends Google_Collection +{ + protected $diskTypesType = 'Google_Service_Compute_DiskType'; + protected $diskTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; + protected $warningDataType = ''; + + public function setDiskTypes($diskTypes) + { + $this->diskTypes = $diskTypes; + } + + public function getDiskTypes() + { + return $this->diskTypes; + } + + public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) + { + $this->warning = $warning; + } + + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_DisksScopedList extends Google_Collection +{ + protected $disksType = 'Google_Service_Compute_Disk'; + protected $disksDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; + protected $warningDataType = ''; + + public function setDisks($disks) + { + $this->disks = $disks; + } + + public function getDisks() + { + return $this->disks; + } + + public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) + { + $this->warning = $warning; + } + + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_DisksScopedListWarning extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_DisksScopedListWarningData extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_Firewall extends Google_Collection +{ + protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; + protected $allowedDataType = 'array'; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $network; + public $selfLink; + public $sourceRanges; + public $sourceTags; + public $targetTags; + + public function setAllowed($allowed) + { + $this->allowed = $allowed; + } + + public function getAllowed() + { + return $this->allowed; + } + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; } public function getName() @@ -6291,6 +7648,43 @@ public function getIpAddress() } } +class Google_Service_Compute_HostRule extends Google_Collection +{ + public $description; + public $hosts; + public $pathMatcher; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setHosts($hosts) + { + $this->hosts = $hosts; + } + + public function getHosts() + { + return $this->hosts; + } + + public function setPathMatcher($pathMatcher) + { + $this->pathMatcher = $pathMatcher; + } + + public function getPathMatcher() + { + return $this->pathMatcher; + } +} + class Google_Service_Compute_HttpHealthCheck extends Google_Model { public $checkIntervalSec; @@ -6392,19 +7786,217 @@ public function setPort($port) $this->port = $port; } - public function getPort() + public function getPort() + { + return $this->port; + } + + public function setRequestPath($requestPath) + { + $this->requestPath = $requestPath; + } + + public function getRequestPath() + { + return $this->requestPath; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + + public function setTimeoutSec($timeoutSec) + { + $this->timeoutSec = $timeoutSec; + } + + public function getTimeoutSec() + { + return $this->timeoutSec; + } + + public function setUnhealthyThreshold($unhealthyThreshold) + { + $this->unhealthyThreshold = $unhealthyThreshold; + } + + public function getUnhealthyThreshold() + { + return $this->unhealthyThreshold; + } +} + +class Google_Service_Compute_HttpHealthCheckList extends Google_Collection +{ + public $id; + protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_Image extends Google_Model +{ + public $archiveSizeBytes; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $name; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; + public $selfLink; + public $sourceType; + public $status; + + public function setArchiveSizeBytes($archiveSizeBytes) + { + $this->archiveSizeBytes = $archiveSizeBytes; + } + + public function getArchiveSizeBytes() + { + return $this->archiveSizeBytes; + } + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + + public function getDeprecated() + { + return $this->deprecated; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() { - return $this->port; + return $this->name; } - public function setRequestPath($requestPath) + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) { - $this->requestPath = $requestPath; + $this->rawDisk = $rawDisk; } - public function getRequestPath() + public function getRawDisk() { - return $this->requestPath; + return $this->rawDisk; } public function setSelfLink($selfLink) @@ -6417,31 +8009,31 @@ public function getSelfLink() return $this->selfLink; } - public function setTimeoutSec($timeoutSec) + public function setSourceType($sourceType) { - $this->timeoutSec = $timeoutSec; + $this->sourceType = $sourceType; } - public function getTimeoutSec() + public function getSourceType() { - return $this->timeoutSec; + return $this->sourceType; } - public function setUnhealthyThreshold($unhealthyThreshold) + public function setStatus($status) { - $this->unhealthyThreshold = $unhealthyThreshold; + $this->status = $status; } - public function getUnhealthyThreshold() + public function getStatus() { - return $this->unhealthyThreshold; + return $this->status; } } -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection +class Google_Service_Compute_ImageList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsType = 'Google_Service_Compute_Image'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6498,31 +8090,77 @@ public function getSelfLink() } } -class Google_Service_Compute_Image extends Google_Model +class Google_Service_Compute_ImageRawDisk extends Google_Model { - public $archiveSizeBytes; + 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; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; - public $diskSizeGb; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; public $id; public $kind; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; public $selfLink; - public $sourceType; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; public $status; + public $statusMessage; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + public $zone; - public function setArchiveSizeBytes($archiveSizeBytes) + public function setCanIpForward($canIpForward) { - $this->archiveSizeBytes = $archiveSizeBytes; + $this->canIpForward = $canIpForward; } - public function getArchiveSizeBytes() + public function getCanIpForward() { - return $this->archiveSizeBytes; + return $this->canIpForward; } public function setCreationTimestamp($creationTimestamp) @@ -6535,16 +8173,6 @@ 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; @@ -6555,14 +8183,14 @@ public function getDescription() return $this->description; } - public function setDiskSizeGb($diskSizeGb) + public function setDisks($disks) { - $this->diskSizeGb = $diskSizeGb; + $this->disks = $disks; } - public function getDiskSizeGb() + public function getDisks() { - return $this->diskSizeGb; + return $this->disks; } public function setId($id) @@ -6585,6 +8213,26 @@ 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; @@ -6595,14 +8243,24 @@ public function getName() return $this->name; } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + public function setNetworkInterfaces($networkInterfaces) { - $this->rawDisk = $rawDisk; + $this->networkInterfaces = $networkInterfaces; } - public function getRawDisk() + public function getNetworkInterfaces() { - return $this->rawDisk; + return $this->networkInterfaces; + } + + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + { + $this->scheduling = $scheduling; + } + + public function getScheduling() + { + return $this->scheduling; } public function setSelfLink($selfLink) @@ -6615,14 +8273,14 @@ public function getSelfLink() return $this->selfLink; } - public function setSourceType($sourceType) + public function setServiceAccounts($serviceAccounts) { - $this->sourceType = $sourceType; + $this->serviceAccounts = $serviceAccounts; } - public function getSourceType() + public function getServiceAccounts() { - return $this->sourceType; + return $this->serviceAccounts; } public function setStatus($status) @@ -6632,14 +8290,104 @@ public function setStatus($status) public function getStatus() { - return $this->status; + return $this->status; + } + + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + + public function getStatusMessage() + { + return $this->statusMessage; + } + + public function setTags(Google_Service_Compute_Tags $tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } + + public function setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_InstanceAggregatedList extends Google_Model +{ + public $id; + protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; } } -class Google_Service_Compute_ImageList extends Google_Collection +class Google_Service_Compute_InstanceList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsType = 'Google_Service_Compute_Instance'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6696,227 +8444,260 @@ public function getSelfLink() } } -class Google_Service_Compute_ImageRawDisk extends Google_Model +class Google_Service_Compute_InstanceReference extends Google_Model { - public $containerType; - public $sha1Checksum; - public $source; + public $instance; - public function setContainerType($containerType) + public function setInstance($instance) { - $this->containerType = $containerType; + $this->instance = $instance; } - public function getContainerType() + public function getInstance() { - return $this->containerType; + return $this->instance; } +} - public function setSha1Checksum($sha1Checksum) +class Google_Service_Compute_InstancesScopedList extends Google_Collection +{ + protected $instancesType = 'Google_Service_Compute_Instance'; + protected $instancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; + protected $warningDataType = ''; + + public function setInstances($instances) { - $this->sha1Checksum = $sha1Checksum; + $this->instances = $instances; } - public function getSha1Checksum() + public function getInstances() { - return $this->sha1Checksum; + return $this->instances; } - public function setSource($source) + public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) { - $this->source = $source; + $this->warning = $warning; } - public function getSource() + public function getWarning() { - return $this->source; + return $this->warning; } } -class Google_Service_Compute_Instance extends Google_Collection +class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection { - public $canIpForward; - public $creationTimestamp; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $id; - public $kind; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - public $name; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - public $selfLink; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $status; - public $statusMessage; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - public $zone; + public $code; + protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; - public function setCanIpForward($canIpForward) + public function setCode($code) { - $this->canIpForward = $canIpForward; + $this->code = $code; } - public function getCanIpForward() + public function getCode() { - return $this->canIpForward; + return $this->code; } - public function setCreationTimestamp($creationTimestamp) + public function setData($data) { - $this->creationTimestamp = $creationTimestamp; + $this->data = $data; } - public function getCreationTimestamp() + public function getData() { - return $this->creationTimestamp; + return $this->data; } - public function setDescription($description) + public function setMessage($message) { - $this->description = $description; + $this->message = $message; } - public function getDescription() + public function getMessage() { - return $this->description; + return $this->message; } +} - public function setDisks($disks) +class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) { - $this->disks = $disks; + $this->key = $key; } - public function getDisks() + public function getKey() { - return $this->disks; + return $this->key; } - public function setId($id) + public function setValue($value) { - $this->id = $id; + $this->value = $value; } - public function getId() + public function getValue() { - return $this->id; + return $this->value; } +} - public function setKind($kind) +class Google_Service_Compute_MachineType extends Google_Collection +{ + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $guestCpus; + public $id; + public $imageSpaceGb; + public $kind; + public $maximumPersistentDisks; + public $maximumPersistentDisksSizeGb; + public $memoryMb; + public $name; + protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; + protected $scratchDisksDataType = 'array'; + public $selfLink; + public $zone; + + public function setCreationTimestamp($creationTimestamp) { - $this->kind = $kind; + $this->creationTimestamp = $creationTimestamp; } - public function getKind() + public function getCreationTimestamp() { - return $this->kind; + return $this->creationTimestamp; } - public function setMachineType($machineType) + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { - $this->machineType = $machineType; + $this->deprecated = $deprecated; } - public function getMachineType() + public function getDeprecated() { - return $this->machineType; + return $this->deprecated; } - public function setMetadata(Google_Service_Compute_Metadata $metadata) + public function setDescription($description) { - $this->metadata = $metadata; + $this->description = $description; } - public function getMetadata() + public function getDescription() { - return $this->metadata; + return $this->description; } - public function setName($name) + public function setGuestCpus($guestCpus) { - $this->name = $name; + $this->guestCpus = $guestCpus; } - public function getName() + public function getGuestCpus() { - return $this->name; + return $this->guestCpus; } - public function setNetworkInterfaces($networkInterfaces) + public function setId($id) { - $this->networkInterfaces = $networkInterfaces; + $this->id = $id; } - public function getNetworkInterfaces() + public function getId() { - return $this->networkInterfaces; + return $this->id; } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + public function setImageSpaceGb($imageSpaceGb) { - $this->scheduling = $scheduling; + $this->imageSpaceGb = $imageSpaceGb; } - public function getScheduling() + public function getImageSpaceGb() { - return $this->scheduling; + return $this->imageSpaceGb; } - public function setSelfLink($selfLink) + public function setKind($kind) { - $this->selfLink = $selfLink; + $this->kind = $kind; } - public function getSelfLink() + public function getKind() { - return $this->selfLink; + return $this->kind; } - public function setServiceAccounts($serviceAccounts) + public function setMaximumPersistentDisks($maximumPersistentDisks) { - $this->serviceAccounts = $serviceAccounts; + $this->maximumPersistentDisks = $maximumPersistentDisks; } - public function getServiceAccounts() + public function getMaximumPersistentDisks() { - return $this->serviceAccounts; + return $this->maximumPersistentDisks; } - public function setStatus($status) + public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) { - $this->status = $status; + $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; } - public function getStatus() + public function getMaximumPersistentDisksSizeGb() { - return $this->status; + return $this->maximumPersistentDisksSizeGb; } - public function setStatusMessage($statusMessage) + public function setMemoryMb($memoryMb) { - $this->statusMessage = $statusMessage; + $this->memoryMb = $memoryMb; } - public function getStatusMessage() + public function getMemoryMb() { - return $this->statusMessage; + return $this->memoryMb; } - public function setTags(Google_Service_Compute_Tags $tags) + public function setName($name) { - $this->tags = $tags; + $this->name = $name; } - public function getTags() + public function getName() { - return $this->tags; + return $this->name; + } + + public function setScratchDisks($scratchDisks) + { + $this->scratchDisks = $scratchDisks; + } + + public function getScratchDisks() + { + return $this->scratchDisks; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; } public function setZone($zone) @@ -6930,10 +8711,10 @@ public function getZone() } } -class Google_Service_Compute_InstanceAggregatedList extends Google_Model +class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model { public $id; - protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -6990,10 +8771,10 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceList extends Google_Collection +class Google_Service_Compute_MachineTypeList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_Instance'; + protected $itemsType = 'Google_Service_Compute_MachineType'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7050,39 +8831,39 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceReference extends Google_Model +class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model { - public $instance; + public $diskGb; - public function setInstance($instance) + public function setDiskGb($diskGb) { - $this->instance = $instance; + $this->diskGb = $diskGb; } - public function getInstance() + public function getDiskGb() { - return $this->instance; + return $this->diskGb; } } -class Google_Service_Compute_InstancesScopedList extends Google_Collection +class Google_Service_Compute_MachineTypesScopedList extends Google_Collection { - protected $instancesType = 'Google_Service_Compute_Instance'; - protected $instancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; + protected $machineTypesType = 'Google_Service_Compute_MachineType'; + protected $machineTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; protected $warningDataType = ''; - public function setInstances($instances) + public function setMachineTypes($machineTypes) { - $this->instances = $instances; + $this->machineTypes = $machineTypes; } - public function getInstances() + public function getMachineTypes() { - return $this->instances; + return $this->machineTypes; } - public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) + public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) { $this->warning = $warning; } @@ -7093,10 +8874,10 @@ public function getWarning() } } -class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection +class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection { public $code; - protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; + protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; protected $dataDataType = 'array'; public $message; @@ -7131,7 +8912,7 @@ public function getMessage() } } -class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model +class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model { public $key; public $value; @@ -7157,43 +8938,99 @@ public function getValue() } } -class Google_Service_Compute_MachineType extends Google_Collection +class Google_Service_Compute_Metadata extends Google_Collection +{ + public $fingerprint; + protected $itemsType = 'Google_Service_Compute_MetadataItems'; + protected $itemsDataType = 'array'; + public $kind; + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Compute_MetadataItems extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_Network extends Google_Model { + public $iPv4Range; public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; - public $guestCpus; + public $gatewayIPv4; public $id; - public $imageSpaceGb; public $kind; - public $maximumPersistentDisks; - public $maximumPersistentDisksSizeGb; - public $memoryMb; public $name; - protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; - protected $scratchDisksDataType = 'array'; public $selfLink; - public $zone; - public function setCreationTimestamp($creationTimestamp) + public function setIPv4Range($iPv4Range) { - $this->creationTimestamp = $creationTimestamp; + $this->iPv4Range = $iPv4Range; } - public function getCreationTimestamp() + public function getIPv4Range() { - return $this->creationTimestamp; + return $this->iPv4Range; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + public function setCreationTimestamp($creationTimestamp) { - $this->deprecated = $deprecated; + $this->creationTimestamp = $creationTimestamp; } - public function getDeprecated() + public function getCreationTimestamp() { - return $this->deprecated; + return $this->creationTimestamp; } public function setDescription($description) @@ -7206,14 +9043,14 @@ public function getDescription() return $this->description; } - public function setGuestCpus($guestCpus) + public function setGatewayIPv4($gatewayIPv4) { - $this->guestCpus = $guestCpus; + $this->gatewayIPv4 = $gatewayIPv4; } - public function getGuestCpus() + public function getGatewayIPv4() { - return $this->guestCpus; + return $this->gatewayIPv4; } public function setId($id) @@ -7226,16 +9063,6 @@ 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; @@ -7246,34 +9073,43 @@ public function getKind() return $this->kind; } - public function setMaximumPersistentDisks($maximumPersistentDisks) + public function setName($name) { - $this->maximumPersistentDisks = $maximumPersistentDisks; + $this->name = $name; } - public function getMaximumPersistentDisks() + public function getName() { - return $this->maximumPersistentDisks; + return $this->name; } - public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) + public function setSelfLink($selfLink) { - $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; + $this->selfLink = $selfLink; } - public function getMaximumPersistentDisksSizeGb() + public function getSelfLink() { - return $this->maximumPersistentDisksSizeGb; + return $this->selfLink; } +} - public function setMemoryMb($memoryMb) +class Google_Service_Compute_NetworkInterface extends Google_Collection +{ + protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; + protected $accessConfigsDataType = 'array'; + public $name; + public $network; + public $networkIP; + + public function setAccessConfigs($accessConfigs) { - $this->memoryMb = $memoryMb; + $this->accessConfigs = $accessConfigs; } - public function getMemoryMb() + public function getAccessConfigs() { - return $this->memoryMb; + return $this->accessConfigs; } public function setName($name) @@ -7286,42 +9122,32 @@ public function getName() return $this->name; } - public function setScratchDisks($scratchDisks) - { - $this->scratchDisks = $scratchDisks; - } - - public function getScratchDisks() - { - return $this->scratchDisks; - } - - public function setSelfLink($selfLink) + public function setNetwork($network) { - $this->selfLink = $selfLink; + $this->network = $network; } - public function getSelfLink() + public function getNetwork() { - return $this->selfLink; + return $this->network; } - public function setZone($zone) + public function setNetworkIP($networkIP) { - $this->zone = $zone; + $this->networkIP = $networkIP; } - public function getZone() + public function getNetworkIP() { - return $this->zone; + return $this->networkIP; } } -class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model +class Google_Service_Compute_NetworkList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; - protected $itemsDataType = 'map'; + protected $itemsType = 'Google_Service_Compute_Network'; + protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; @@ -7377,287 +9203,262 @@ public function getSelfLink() } } -class Google_Service_Compute_MachineTypeList extends Google_Collection +class Google_Service_Compute_Operation extends Google_Collection { + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Compute_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; public $id; - protected $itemsType = 'Google_Service_Compute_MachineType'; - protected $itemsDataType = 'array'; + public $insertTime; public $kind; - public $nextPageToken; + public $name; + public $operationType; + public $progress; + public $region; public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Compute_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; - public function setId($id) - { - $this->id = $id; - } - - public function getId() + public function setClientOperationId($clientOperationId) { - return $this->id; + $this->clientOperationId = $clientOperationId; } - public function setItems($items) + public function getClientOperationId() { - $this->items = $items; + return $this->clientOperationId; } - public function getItems() + public function setCreationTimestamp($creationTimestamp) { - return $this->items; + $this->creationTimestamp = $creationTimestamp; } - public function setKind($kind) + public function getCreationTimestamp() { - $this->kind = $kind; + return $this->creationTimestamp; } - public function getKind() + public function setEndTime($endTime) { - return $this->kind; + $this->endTime = $endTime; } - public function setNextPageToken($nextPageToken) + public function getEndTime() { - $this->nextPageToken = $nextPageToken; + return $this->endTime; } - public function getNextPageToken() + public function setError(Google_Service_Compute_OperationError $error) { - return $this->nextPageToken; + $this->error = $error; } - public function setSelfLink($selfLink) + public function getError() { - $this->selfLink = $selfLink; + return $this->error; } - public function getSelfLink() + public function setHttpErrorMessage($httpErrorMessage) { - return $this->selfLink; + $this->httpErrorMessage = $httpErrorMessage; } -} - -class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model -{ - public $diskGb; - public function setDiskGb($diskGb) + public function getHttpErrorMessage() { - $this->diskGb = $diskGb; + return $this->httpErrorMessage; } - public function getDiskGb() + public function setHttpErrorStatusCode($httpErrorStatusCode) { - return $this->diskGb; + $this->httpErrorStatusCode = $httpErrorStatusCode; } -} - -class Google_Service_Compute_MachineTypesScopedList extends Google_Collection -{ - protected $machineTypesType = 'Google_Service_Compute_MachineType'; - protected $machineTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; - protected $warningDataType = ''; - public function setMachineTypes($machineTypes) + public function getHttpErrorStatusCode() { - $this->machineTypes = $machineTypes; + return $this->httpErrorStatusCode; } - public function getMachineTypes() + public function setId($id) { - return $this->machineTypes; + $this->id = $id; } - public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) + public function getId() { - $this->warning = $warning; + return $this->id; } - public function getWarning() + public function setInsertTime($insertTime) { - return $this->warning; + $this->insertTime = $insertTime; } -} - -class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - public function setCode($code) + public function getInsertTime() { - $this->code = $code; + return $this->insertTime; } - public function getCode() + public function setKind($kind) { - return $this->code; + $this->kind = $kind; } - public function setData($data) + public function getKind() { - $this->data = $data; + return $this->kind; } - public function getData() + public function setName($name) { - return $this->data; + $this->name = $name; } - public function setMessage($message) + public function getName() { - $this->message = $message; + return $this->name; } - public function getMessage() + public function setOperationType($operationType) { - return $this->message; + $this->operationType = $operationType; } -} - -class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function getOperationType() { - $this->key = $key; + return $this->operationType; } - public function getKey() + public function setProgress($progress) { - return $this->key; + $this->progress = $progress; } - public function setValue($value) + public function getProgress() { - $this->value = $value; + return $this->progress; } - public function getValue() + public function setRegion($region) { - return $this->value; + $this->region = $region; } -} - -class Google_Service_Compute_Metadata extends Google_Collection -{ - public $fingerprint; - protected $itemsType = 'Google_Service_Compute_MetadataItems'; - protected $itemsDataType = 'array'; - public $kind; - public function setFingerprint($fingerprint) + public function getRegion() { - $this->fingerprint = $fingerprint; + return $this->region; } - public function getFingerprint() + public function setSelfLink($selfLink) { - return $this->fingerprint; + $this->selfLink = $selfLink; } - public function setItems($items) + public function getSelfLink() { - $this->items = $items; + return $this->selfLink; } - public function getItems() + public function setStartTime($startTime) { - return $this->items; + $this->startTime = $startTime; } - public function setKind($kind) + public function getStartTime() { - $this->kind = $kind; + return $this->startTime; } - public function getKind() + public function setStatus($status) { - return $this->kind; + $this->status = $status; } -} - -class Google_Service_Compute_MetadataItems extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function getStatus() { - $this->key = $key; + return $this->status; } - public function getKey() + public function setStatusMessage($statusMessage) { - return $this->key; + $this->statusMessage = $statusMessage; } - public function setValue($value) + public function getStatusMessage() { - $this->value = $value; + return $this->statusMessage; } - public function getValue() + public function setTargetId($targetId) { - return $this->value; + $this->targetId = $targetId; } -} -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 getTargetId() + { + return $this->targetId; + } - public function setIPv4Range($iPv4Range) + public function setTargetLink($targetLink) { - $this->iPv4Range = $iPv4Range; + $this->targetLink = $targetLink; } - public function getIPv4Range() + public function getTargetLink() { - return $this->iPv4Range; + return $this->targetLink; } - public function setCreationTimestamp($creationTimestamp) + public function setUser($user) { - $this->creationTimestamp = $creationTimestamp; + $this->user = $user; } - public function getCreationTimestamp() + public function getUser() { - return $this->creationTimestamp; + return $this->user; } - public function setDescription($description) + public function setWarnings($warnings) { - $this->description = $description; + $this->warnings = $warnings; } - public function getDescription() + public function getWarnings() { - return $this->description; + return $this->warnings; } - public function setGatewayIPv4($gatewayIPv4) + public function setZone($zone) { - $this->gatewayIPv4 = $gatewayIPv4; + $this->zone = $zone; } - public function getGatewayIPv4() + public function getZone() { - return $this->gatewayIPv4; + return $this->zone; } +} + +class Google_Service_Compute_OperationAggregatedList extends Google_Model +{ + public $id; + protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; public function setId($id) { @@ -7669,6 +9470,16 @@ 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; @@ -7679,14 +9490,14 @@ public function getKind() return $this->kind; } - public function setName($name) + public function setNextPageToken($nextPageToken) { - $this->name = $name; + $this->nextPageToken = $nextPageToken; } - public function getName() + public function getNextPageToken() { - return $this->name; + return $this->nextPageToken; } public function setSelfLink($selfLink) @@ -7700,59 +9511,63 @@ public function getSelfLink() } } -class Google_Service_Compute_NetworkInterface extends Google_Collection +class Google_Service_Compute_OperationError extends Google_Collection { - protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIP; + protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; + protected $errorsDataType = 'array'; - public function setAccessConfigs($accessConfigs) + public function setErrors($errors) { - $this->accessConfigs = $accessConfigs; + $this->errors = $errors; } - public function getAccessConfigs() + public function getErrors() { - return $this->accessConfigs; + return $this->errors; } +} - public function setName($name) +class Google_Service_Compute_OperationErrorErrors extends Google_Model +{ + public $code; + public $location; + public $message; + + public function setCode($code) { - $this->name = $name; + $this->code = $code; } - public function getName() + public function getCode() { - return $this->name; + return $this->code; } - public function setNetwork($network) + public function setLocation($location) { - $this->network = $network; + $this->location = $location; } - public function getNetwork() + public function getLocation() { - return $this->network; + return $this->location; } - public function setNetworkIP($networkIP) + public function setMessage($message) { - $this->networkIP = $networkIP; + $this->message = $message; } - public function getNetworkIP() + public function getMessage() { - return $this->networkIP; + return $this->message; } } -class Google_Service_Compute_NetworkList extends Google_Collection +class Google_Service_Compute_OperationList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_Network'; + protected $itemsType = 'Google_Service_Compute_Operation'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7809,262 +9624,281 @@ public function getSelfLink() } } -class Google_Service_Compute_Operation extends Google_Collection +class Google_Service_Compute_OperationWarnings extends Google_Collection { - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Compute_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Compute_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; + public $code; + protected $dataType = 'Google_Service_Compute_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; - public function setClientOperationId($clientOperationId) + public function setCode($code) { - $this->clientOperationId = $clientOperationId; + $this->code = $code; } - public function getClientOperationId() + public function getCode() { - return $this->clientOperationId; + return $this->code; } - public function setCreationTimestamp($creationTimestamp) + public function setData($data) { - $this->creationTimestamp = $creationTimestamp; + $this->data = $data; } - public function getCreationTimestamp() + public function getData() { - return $this->creationTimestamp; + return $this->data; } - public function setEndTime($endTime) + public function setMessage($message) { - $this->endTime = $endTime; + $this->message = $message; } - public function getEndTime() + public function getMessage() { - return $this->endTime; + return $this->message; } +} - public function setError(Google_Service_Compute_OperationError $error) - { - $this->error = $error; - } +class Google_Service_Compute_OperationWarningsData extends Google_Model +{ + public $key; + public $value; - public function getError() + public function setKey($key) { - return $this->error; + $this->key = $key; } - public function setHttpErrorMessage($httpErrorMessage) + public function getKey() { - $this->httpErrorMessage = $httpErrorMessage; + return $this->key; } - public function getHttpErrorMessage() + public function setValue($value) { - return $this->httpErrorMessage; + $this->value = $value; } - public function setHttpErrorStatusCode($httpErrorStatusCode) + public function getValue() { - $this->httpErrorStatusCode = $httpErrorStatusCode; + return $this->value; } +} - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } +class Google_Service_Compute_OperationsScopedList extends Google_Collection +{ + protected $operationsType = 'Google_Service_Compute_Operation'; + protected $operationsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; + protected $warningDataType = ''; - public function setId($id) + public function setOperations($operations) { - $this->id = $id; + $this->operations = $operations; } - public function getId() + public function getOperations() { - return $this->id; + return $this->operations; } - public function setInsertTime($insertTime) + public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) { - $this->insertTime = $insertTime; + $this->warning = $warning; } - public function getInsertTime() + public function getWarning() { - return $this->insertTime; + return $this->warning; } +} - public function setKind($kind) +class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { - $this->kind = $kind; + $this->code = $code; } - public function getKind() + public function getCode() { - return $this->kind; + return $this->code; } - public function setName($name) + public function setData($data) { - $this->name = $name; + $this->data = $data; } - public function getName() + public function getData() { - return $this->name; + return $this->data; } - public function setOperationType($operationType) + public function setMessage($message) { - $this->operationType = $operationType; + $this->message = $message; } - public function getOperationType() + public function getMessage() { - return $this->operationType; + return $this->message; } +} - public function setProgress($progress) +class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) { - $this->progress = $progress; + $this->key = $key; } - public function getProgress() + public function getKey() { - return $this->progress; + return $this->key; } - public function setRegion($region) + public function setValue($value) { - $this->region = $region; + $this->value = $value; } - public function getRegion() + public function getValue() { - return $this->region; + return $this->value; } +} - public function setSelfLink($selfLink) +class Google_Service_Compute_PathMatcher extends Google_Collection +{ + public $defaultService; + public $description; + public $name; + protected $pathRulesType = 'Google_Service_Compute_PathRule'; + protected $pathRulesDataType = 'array'; + + public function setDefaultService($defaultService) { - $this->selfLink = $selfLink; + $this->defaultService = $defaultService; } - public function getSelfLink() + public function getDefaultService() { - return $this->selfLink; + return $this->defaultService; } - public function setStartTime($startTime) + public function setDescription($description) { - $this->startTime = $startTime; + $this->description = $description; } - public function getStartTime() + public function getDescription() { - return $this->startTime; + return $this->description; } - public function setStatus($status) + public function setName($name) { - $this->status = $status; + $this->name = $name; } - public function getStatus() + public function getName() { - return $this->status; + return $this->name; } - public function setStatusMessage($statusMessage) + public function setPathRules($pathRules) { - $this->statusMessage = $statusMessage; + $this->pathRules = $pathRules; } - public function getStatusMessage() + public function getPathRules() { - return $this->statusMessage; + return $this->pathRules; } +} - public function setTargetId($targetId) +class Google_Service_Compute_PathRule extends Google_Collection +{ + public $paths; + public $service; + + public function setPaths($paths) { - $this->targetId = $targetId; + $this->paths = $paths; } - public function getTargetId() + public function getPaths() { - return $this->targetId; + return $this->paths; } - public function setTargetLink($targetLink) + public function setService($service) { - $this->targetLink = $targetLink; + $this->service = $service; } - public function getTargetLink() + public function getService() { - return $this->targetLink; + return $this->service; } +} + +class Google_Service_Compute_Project extends Google_Collection +{ + protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; + protected $commonInstanceMetadataDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; + public $selfLink; + protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; + protected $usageExportLocationDataType = ''; - public function setUser($user) + public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) { - $this->user = $user; + $this->commonInstanceMetadata = $commonInstanceMetadata; } - public function getUser() + public function getCommonInstanceMetadata() { - return $this->user; + return $this->commonInstanceMetadata; } - public function setWarnings($warnings) + public function setCreationTimestamp($creationTimestamp) { - $this->warnings = $warnings; + $this->creationTimestamp = $creationTimestamp; } - public function getWarnings() + public function getCreationTimestamp() { - return $this->warnings; + return $this->creationTimestamp; } - public function setZone($zone) + public function setDescription($description) { - $this->zone = $zone; + $this->description = $description; } - public function getZone() + public function getDescription() { - return $this->zone; + return $this->description; } -} - -class Google_Service_Compute_OperationAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; public function setId($id) { @@ -8076,34 +9910,34 @@ public function getId() return $this->id; } - public function setItems($items) + public function setKind($kind) { - $this->items = $items; + $this->kind = $kind; } - public function getItems() + public function getKind() { - return $this->items; + return $this->kind; } - public function setKind($kind) + public function setName($name) { - $this->kind = $kind; + $this->name = $name; } - public function getKind() + public function getName() { - return $this->kind; + return $this->name; } - public function setNextPageToken($nextPageToken) + public function setQuotas($quotas) { - $this->nextPageToken = $nextPageToken; + $this->quotas = $quotas; } - public function getNextPageToken() + public function getQuotas() { - return $this->nextPageToken; + return $this->quotas; } public function setSelfLink($selfLink) @@ -8115,301 +9949,264 @@ public function getSelfLink() { return $this->selfLink; } -} - -class Google_Service_Compute_OperationError extends Google_Collection -{ - protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; - protected $errorsDataType = 'array'; - public function setErrors($errors) + public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) { - $this->errors = $errors; + $this->usageExportLocation = $usageExportLocation; } - public function getErrors() + public function getUsageExportLocation() { - return $this->errors; + return $this->usageExportLocation; } } -class Google_Service_Compute_OperationErrorErrors extends Google_Model +class Google_Service_Compute_Quota extends Google_Model { - public $code; - public $location; - public $message; + public $limit; + public $metric; + public $usage; - public function setCode($code) + public function setLimit($limit) { - $this->code = $code; + $this->limit = $limit; } - public function getCode() + public function getLimit() { - return $this->code; + return $this->limit; } - public function setLocation($location) + public function setMetric($metric) { - $this->location = $location; + $this->metric = $metric; } - public function getLocation() + public function getMetric() { - return $this->location; + return $this->metric; } - public function setMessage($message) + public function setUsage($usage) { - $this->message = $message; + $this->usage = $usage; } - public function getMessage() + public function getUsage() { - return $this->message; + return $this->usage; } } -class Google_Service_Compute_OperationList extends Google_Collection +class Google_Service_Compute_Region extends Google_Collection { + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; public $id; - protected $itemsType = 'Google_Service_Compute_Operation'; - protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; public $selfLink; + public $status; + public $zones; - public function setId($id) + public function setCreationTimestamp($creationTimestamp) { - $this->id = $id; + $this->creationTimestamp = $creationTimestamp; } - public function getId() + public function getCreationTimestamp() { - return $this->id; + return $this->creationTimestamp; } - public function setItems($items) + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { - $this->items = $items; + $this->deprecated = $deprecated; } - public function getItems() + public function getDeprecated() { - return $this->items; + return $this->deprecated; } - public function setKind($kind) + public function setDescription($description) { - $this->kind = $kind; + $this->description = $description; } - public function getKind() + public function getDescription() { - return $this->kind; + return $this->description; } - public function setNextPageToken($nextPageToken) + public function setId($id) { - $this->nextPageToken = $nextPageToken; + $this->id = $id; } - public function getNextPageToken() + public function getId() { - return $this->nextPageToken; + return $this->id; } - public function setSelfLink($selfLink) + public function setKind($kind) { - $this->selfLink = $selfLink; + $this->kind = $kind; } - public function getSelfLink() + public function getKind() { - return $this->selfLink; + return $this->kind; } -} - -class Google_Service_Compute_OperationWarnings extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - public function setCode($code) + public function setName($name) { - $this->code = $code; + $this->name = $name; } - public function getCode() + public function getName() { - return $this->code; + return $this->name; } - public function setData($data) + public function setQuotas($quotas) { - $this->data = $data; + $this->quotas = $quotas; } - public function getData() + public function getQuotas() { - return $this->data; + return $this->quotas; } - public function setMessage($message) + public function setSelfLink($selfLink) { - $this->message = $message; + $this->selfLink = $selfLink; } - public function getMessage() + public function getSelfLink() { - return $this->message; + return $this->selfLink; } -} - -class Google_Service_Compute_OperationWarningsData extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function setStatus($status) { - $this->key = $key; + $this->status = $status; } - public function getKey() + public function getStatus() { - return $this->key; + return $this->status; } - public function setValue($value) + public function setZones($zones) { - $this->value = $value; + $this->zones = $zones; } - public function getValue() + public function getZones() { - return $this->value; + return $this->zones; } } -class Google_Service_Compute_OperationsScopedList extends Google_Collection +class Google_Service_Compute_RegionList extends Google_Collection { - protected $operationsType = 'Google_Service_Compute_Operation'; - protected $operationsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; - protected $warningDataType = ''; - - public function setOperations($operations) - { - $this->operations = $operations; - } - - public function getOperations() - { - return $this->operations; - } + public $id; + protected $itemsType = 'Google_Service_Compute_Region'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) + public function setId($id) { - $this->warning = $warning; + $this->id = $id; } - public function getWarning() + public function getId() { - return $this->warning; + return $this->id; } -} - -class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - public function setCode($code) + public function setItems($items) { - $this->code = $code; + $this->items = $items; } - public function getCode() + public function getItems() { - return $this->code; + return $this->items; } - public function setData($data) + public function setKind($kind) { - $this->data = $data; + $this->kind = $kind; } - public function getData() + public function getKind() { - return $this->data; + return $this->kind; } - public function setMessage($message) + public function setNextPageToken($nextPageToken) { - $this->message = $message; + $this->nextPageToken = $nextPageToken; } - public function getMessage() + public function getNextPageToken() { - return $this->message; + return $this->nextPageToken; } -} - -class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function setSelfLink($selfLink) { - $this->key = $key; + $this->selfLink = $selfLink; } - public function getKey() + public function getSelfLink() { - return $this->key; + return $this->selfLink; } +} - public function setValue($value) +class Google_Service_Compute_ResourceGroupReference extends Google_Model +{ + public $group; + + public function setGroup($group) { - $this->value = $value; + $this->group = $group; } - public function getValue() + public function getGroup() { - return $this->value; + return $this->group; } } -class Google_Service_Compute_Project extends Google_Collection +class Google_Service_Compute_Route extends Google_Collection { - protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; - protected $commonInstanceMetadataDataType = ''; public $creationTimestamp; public $description; + public $destRange; public $id; public $kind; public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; + public $network; + public $nextHopGateway; + public $nextHopInstance; + public $nextHopIp; + public $nextHopNetwork; + public $priority; public $selfLink; - protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; - protected $usageExportLocationDataType = ''; - - public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) - { - $this->commonInstanceMetadata = $commonInstanceMetadata; - } - - public function getCommonInstanceMetadata() - { - return $this->commonInstanceMetadata; - } + public $tags; + protected $warningsType = 'Google_Service_Compute_RouteWarnings'; + protected $warningsDataType = 'array'; public function setCreationTimestamp($creationTimestamp) { @@ -8431,6 +10228,16 @@ public function getDescription() return $this->description; } + public function setDestRange($destRange) + { + $this->destRange = $destRange; + } + + public function getDestRange() + { + return $this->destRange; + } + public function setId($id) { $this->id = $id; @@ -8461,118 +10268,105 @@ public function getName() return $this->name; } - public function setQuotas($quotas) + public function setNetwork($network) { - $this->quotas = $quotas; + $this->network = $network; } - public function getQuotas() + public function getNetwork() { - return $this->quotas; + return $this->network; } - public function setSelfLink($selfLink) + public function setNextHopGateway($nextHopGateway) { - $this->selfLink = $selfLink; + $this->nextHopGateway = $nextHopGateway; } - public function getSelfLink() + public function getNextHopGateway() { - return $this->selfLink; + return $this->nextHopGateway; } - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) + public function setNextHopInstance($nextHopInstance) { - $this->usageExportLocation = $usageExportLocation; + $this->nextHopInstance = $nextHopInstance; } - public function getUsageExportLocation() + public function getNextHopInstance() { - return $this->usageExportLocation; + return $this->nextHopInstance; } -} - -class Google_Service_Compute_Quota extends Google_Model -{ - public $limit; - public $metric; - public $usage; - public function setLimit($limit) + public function setNextHopIp($nextHopIp) { - $this->limit = $limit; + $this->nextHopIp = $nextHopIp; } - public function getLimit() + public function getNextHopIp() { - return $this->limit; + return $this->nextHopIp; } - public function setMetric($metric) + public function setNextHopNetwork($nextHopNetwork) { - $this->metric = $metric; + $this->nextHopNetwork = $nextHopNetwork; } - public function getMetric() + public function getNextHopNetwork() { - return $this->metric; + return $this->nextHopNetwork; } - public function setUsage($usage) + public function setPriority($priority) { - $this->usage = $usage; + $this->priority = $priority; } - public function getUsage() + public function getPriority() { - return $this->usage; + return $this->priority; } -} - -class Google_Service_Compute_Region extends Google_Collection -{ - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - public $status; - public $zones; - public function setCreationTimestamp($creationTimestamp) + public function setSelfLink($selfLink) { - $this->creationTimestamp = $creationTimestamp; + $this->selfLink = $selfLink; } - public function getCreationTimestamp() + public function getSelfLink() { - return $this->creationTimestamp; + return $this->selfLink; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + public function setTags($tags) { - $this->deprecated = $deprecated; + $this->tags = $tags; } - public function getDeprecated() + public function getTags() { - return $this->deprecated; + return $this->tags; } - public function setDescription($description) + public function setWarnings($warnings) { - $this->description = $description; + $this->warnings = $warnings; } - public function getDescription() + public function getWarnings() { - return $this->description; + return $this->warnings; } +} + +class Google_Service_Compute_RouteList extends Google_Collection +{ + public $id; + protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; public function setId($id) { @@ -8584,6 +10378,16 @@ 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; @@ -8594,135 +10398,194 @@ public function getKind() return $this->kind; } - public function setName($name) + public function setNextPageToken($nextPageToken) { - $this->name = $name; + $this->nextPageToken = $nextPageToken; } - public function getName() + public function getNextPageToken() { - return $this->name; + return $this->nextPageToken; } - public function setQuotas($quotas) + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_RouteWarnings extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Compute_RouteWarningsData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_RouteWarningsData extends Google_Model +{ + public $key; + public $value; + + public function setKey($key) { - $this->quotas = $quotas; + $this->key = $key; } - public function getQuotas() + public function getKey() { - return $this->quotas; + return $this->key; } - public function setSelfLink($selfLink) + public function setValue($value) { - $this->selfLink = $selfLink; + $this->value = $value; } - public function getSelfLink() + public function getValue() { - return $this->selfLink; + return $this->value; } +} - public function setStatus($status) +class Google_Service_Compute_Scheduling extends Google_Model +{ + public $automaticRestart; + public $onHostMaintenance; + + public function setAutomaticRestart($automaticRestart) { - $this->status = $status; + $this->automaticRestart = $automaticRestart; } - public function getStatus() + public function getAutomaticRestart() { - return $this->status; + return $this->automaticRestart; } - public function setZones($zones) + public function setOnHostMaintenance($onHostMaintenance) { - $this->zones = $zones; + $this->onHostMaintenance = $onHostMaintenance; } - public function getZones() + public function getOnHostMaintenance() { - return $this->zones; + return $this->onHostMaintenance; } } -class Google_Service_Compute_RegionList extends Google_Collection +class Google_Service_Compute_SerialPortOutput extends Google_Model { - public $id; - protected $itemsType = 'Google_Service_Compute_Region'; - protected $itemsDataType = 'array'; + public $contents; public $kind; - public $nextPageToken; public $selfLink; - public function setId($id) + public function setContents($contents) { - $this->id = $id; + $this->contents = $contents; } - public function getId() + public function getContents() { - return $this->id; + return $this->contents; } - public function setItems($items) + public function setKind($kind) { - $this->items = $items; + $this->kind = $kind; } - public function getItems() + public function getKind() { - return $this->items; + return $this->kind; } - public function setKind($kind) + public function setSelfLink($selfLink) { - $this->kind = $kind; + $this->selfLink = $selfLink; } - public function getKind() + public function getSelfLink() { - return $this->kind; + return $this->selfLink; } +} - public function setNextPageToken($nextPageToken) +class Google_Service_Compute_ServiceAccount extends Google_Collection +{ + public $email; + public $scopes; + + public function setEmail($email) { - $this->nextPageToken = $nextPageToken; + $this->email = $email; } - public function getNextPageToken() + public function getEmail() { - return $this->nextPageToken; + return $this->email; } - public function setSelfLink($selfLink) + public function setScopes($scopes) { - $this->selfLink = $selfLink; + $this->scopes = $scopes; } - public function getSelfLink() + public function getScopes() { - return $this->selfLink; + return $this->scopes; } } -class Google_Service_Compute_Route extends Google_Collection +class Google_Service_Compute_Snapshot extends Google_Model { public $creationTimestamp; public $description; - public $destRange; + public $diskSizeGb; public $id; public $kind; public $name; - public $network; - public $nextHopGateway; - public $nextHopInstance; - public $nextHopIp; - public $nextHopNetwork; - public $priority; public $selfLink; - public $tags; - protected $warningsType = 'Google_Service_Compute_RouteWarnings'; - protected $warningsDataType = 'array'; + public $sourceDisk; + public $sourceDiskId; + public $status; + public $storageBytes; + public $storageBytesStatus; public function setCreationTimestamp($creationTimestamp) { @@ -8744,14 +10607,14 @@ public function getDescription() return $this->description; } - public function setDestRange($destRange) + public function setDiskSizeGb($diskSizeGb) { - $this->destRange = $destRange; + $this->diskSizeGb = $diskSizeGb; } - public function getDestRange() + public function getDiskSizeGb() { - return $this->destRange; + return $this->diskSizeGb; } public function setId($id) @@ -8784,101 +10647,71 @@ public function getName() return $this->name; } - public function setNetwork($network) - { - $this->network = $network; - } - - public function getNetwork() - { - return $this->network; - } - - public function setNextHopGateway($nextHopGateway) - { - $this->nextHopGateway = $nextHopGateway; - } - - public function getNextHopGateway() - { - return $this->nextHopGateway; - } - - public function setNextHopInstance($nextHopInstance) - { - $this->nextHopInstance = $nextHopInstance; - } - - public function getNextHopInstance() - { - return $this->nextHopInstance; - } - - public function setNextHopIp($nextHopIp) + public function setSelfLink($selfLink) { - $this->nextHopIp = $nextHopIp; + $this->selfLink = $selfLink; } - public function getNextHopIp() + public function getSelfLink() { - return $this->nextHopIp; + return $this->selfLink; } - public function setNextHopNetwork($nextHopNetwork) + public function setSourceDisk($sourceDisk) { - $this->nextHopNetwork = $nextHopNetwork; + $this->sourceDisk = $sourceDisk; } - public function getNextHopNetwork() + public function getSourceDisk() { - return $this->nextHopNetwork; + return $this->sourceDisk; } - public function setPriority($priority) + public function setSourceDiskId($sourceDiskId) { - $this->priority = $priority; + $this->sourceDiskId = $sourceDiskId; } - public function getPriority() + public function getSourceDiskId() { - return $this->priority; + return $this->sourceDiskId; } - public function setSelfLink($selfLink) + public function setStatus($status) { - $this->selfLink = $selfLink; + $this->status = $status; } - public function getSelfLink() + public function getStatus() { - return $this->selfLink; + return $this->status; } - public function setTags($tags) + public function setStorageBytes($storageBytes) { - $this->tags = $tags; + $this->storageBytes = $storageBytes; } - public function getTags() + public function getStorageBytes() { - return $this->tags; + return $this->storageBytes; } - public function setWarnings($warnings) + public function setStorageBytesStatus($storageBytesStatus) { - $this->warnings = $warnings; + $this->storageBytesStatus = $storageBytesStatus; } - public function getWarnings() + public function getStorageBytesStatus() { - return $this->warnings; + return $this->storageBytesStatus; } } -class Google_Service_Compute_RouteList extends Google_Collection +class Google_Service_Compute_SnapshotList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsType = 'Google_Service_Compute_Snapshot'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -8935,173 +10768,184 @@ public function getSelfLink() } } -class Google_Service_Compute_RouteWarnings extends Google_Collection +class Google_Service_Compute_Tags extends Google_Collection { - public $code; - protected $dataType = 'Google_Service_Compute_RouteWarningsData'; - protected $dataDataType = 'array'; - public $message; + public $fingerprint; + public $items; - public function setCode($code) + public function setFingerprint($fingerprint) { - $this->code = $code; + $this->fingerprint = $fingerprint; } - public function getCode() + public function getFingerprint() { - return $this->code; + return $this->fingerprint; } - public function setData($data) + public function setItems($items) { - $this->data = $data; + $this->items = $items; } - public function getData() + public function getItems() { - return $this->data; + return $this->items; } +} - public function setMessage($message) +class Google_Service_Compute_TargetHttpProxy extends Google_Model +{ + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $urlMap; + + public function setCreationTimestamp($creationTimestamp) { - $this->message = $message; + $this->creationTimestamp = $creationTimestamp; } - public function getMessage() + public function getCreationTimestamp() { - return $this->message; + return $this->creationTimestamp; } -} -class Google_Service_Compute_RouteWarningsData extends Google_Model -{ - public $key; - public $value; + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setId($id) + { + $this->id = $id; + } - public function setKey($key) + public function getId() { - $this->key = $key; + return $this->id; } - public function getKey() + public function setKind($kind) { - return $this->key; + $this->kind = $kind; } - public function setValue($value) + public function getKind() { - $this->value = $value; + return $this->kind; } - public function getValue() + public function setName($name) { - return $this->value; + $this->name = $name; } -} -class Google_Service_Compute_Scheduling extends Google_Model -{ - public $automaticRestart; - public $onHostMaintenance; + public function getName() + { + return $this->name; + } - public function setAutomaticRestart($automaticRestart) + public function setSelfLink($selfLink) { - $this->automaticRestart = $automaticRestart; + $this->selfLink = $selfLink; } - public function getAutomaticRestart() + public function getSelfLink() { - return $this->automaticRestart; + return $this->selfLink; } - public function setOnHostMaintenance($onHostMaintenance) + public function setUrlMap($urlMap) { - $this->onHostMaintenance = $onHostMaintenance; + $this->urlMap = $urlMap; } - public function getOnHostMaintenance() + public function getUrlMap() { - return $this->onHostMaintenance; + return $this->urlMap; } } -class Google_Service_Compute_SerialPortOutput extends Google_Model +class Google_Service_Compute_TargetHttpProxyList extends Google_Collection { - public $contents; + public $id; + protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; + protected $itemsDataType = 'array'; public $kind; + public $nextPageToken; public $selfLink; - public function setContents($contents) + public function setId($id) { - $this->contents = $contents; + $this->id = $id; } - public function getContents() + public function getId() { - return $this->contents; + return $this->id; } - public function setKind($kind) + public function setItems($items) { - $this->kind = $kind; + $this->items = $items; } - public function getKind() + public function getItems() { - return $this->kind; + return $this->items; } - public function setSelfLink($selfLink) + public function setKind($kind) { - $this->selfLink = $selfLink; + $this->kind = $kind; } - public function getSelfLink() + public function getKind() { - return $this->selfLink; + return $this->kind; } -} - -class Google_Service_Compute_ServiceAccount extends Google_Collection -{ - public $email; - public $scopes; - public function setEmail($email) + public function setNextPageToken($nextPageToken) { - $this->email = $email; + $this->nextPageToken = $nextPageToken; } - public function getEmail() + public function getNextPageToken() { - return $this->email; + return $this->nextPageToken; } - public function setScopes($scopes) + public function setSelfLink($selfLink) { - $this->scopes = $scopes; + $this->selfLink = $selfLink; } - public function getScopes() + public function getSelfLink() { - return $this->scopes; + return $this->selfLink; } } -class Google_Service_Compute_Snapshot extends Google_Model +class Google_Service_Compute_TargetInstance extends Google_Model { public $creationTimestamp; public $description; - public $diskSizeGb; public $id; + public $instance; public $kind; public $name; + public $natPolicy; public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $status; - public $storageBytes; - public $storageBytesStatus; + public $zone; public function setCreationTimestamp($creationTimestamp) { @@ -9123,24 +10967,24 @@ public function getDescription() return $this->description; } - public function setDiskSizeGb($diskSizeGb) + public function setId($id) { - $this->diskSizeGb = $diskSizeGb; + $this->id = $id; } - public function getDiskSizeGb() + public function getId() { - return $this->diskSizeGb; + return $this->id; } - public function setId($id) + public function setInstance($instance) { - $this->id = $id; + $this->instance = $instance; } - public function getId() + public function getInstance() { - return $this->id; + return $this->instance; } public function setKind($kind) @@ -9163,6 +11007,16 @@ public function getName() return $this->name; } + public function setNatPolicy($natPolicy) + { + $this->natPolicy = $natPolicy; + } + + public function getNatPolicy() + { + return $this->natPolicy; + } + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9173,61 +11027,81 @@ public function getSelfLink() return $this->selfLink; } - public function setSourceDisk($sourceDisk) + public function setZone($zone) { - $this->sourceDisk = $sourceDisk; + $this->zone = $zone; } - public function getSourceDisk() + public function getZone() { - return $this->sourceDisk; + return $this->zone; } +} - public function setSourceDiskId($sourceDiskId) +class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model +{ + public $id; + protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { - $this->sourceDiskId = $sourceDiskId; + $this->id = $id; } - public function getSourceDiskId() + public function getId() { - return $this->sourceDiskId; + return $this->id; } - public function setStatus($status) + public function setItems($items) { - $this->status = $status; + $this->items = $items; } - public function getStatus() + public function getItems() { - return $this->status; + return $this->items; } - public function setStorageBytes($storageBytes) + public function setKind($kind) { - $this->storageBytes = $storageBytes; + $this->kind = $kind; } - public function getStorageBytes() + public function getKind() { - return $this->storageBytes; + return $this->kind; } - public function setStorageBytesStatus($storageBytesStatus) + public function setNextPageToken($nextPageToken) { - $this->storageBytesStatus = $storageBytesStatus; + $this->nextPageToken = $nextPageToken; } - public function getStorageBytesStatus() + public function getNextPageToken() { - return $this->storageBytesStatus; + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; } } -class Google_Service_Compute_SnapshotList extends Google_Collection +class Google_Service_Compute_TargetInstanceList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_Snapshot'; + protected $itemsType = 'Google_Service_Compute_TargetInstance'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -9273,54 +11147,133 @@ public function getNextPageToken() return $this->nextPageToken; } - public function setSelfLink($selfLink) + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection +{ + protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; + protected $targetInstancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; + protected $warningDataType = ''; + + public function setTargetInstances($targetInstances) + { + $this->targetInstances = $targetInstances; + } + + public function getTargetInstances() + { + return $this->targetInstances; + } + + public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) + { + $this->warning = $warning; + } + + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setMessage($message) { - $this->selfLink = $selfLink; + $this->message = $message; } - public function getSelfLink() + public function getMessage() { - return $this->selfLink; + return $this->message; } } -class Google_Service_Compute_Tags extends Google_Collection +class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model { - public $fingerprint; - public $items; + public $key; + public $value; - public function setFingerprint($fingerprint) + public function setKey($key) { - $this->fingerprint = $fingerprint; + $this->key = $key; } - public function getFingerprint() + public function getKey() { - return $this->fingerprint; + return $this->key; } - public function setItems($items) + public function setValue($value) { - $this->items = $items; + $this->value = $value; } - public function getItems() + public function getValue() { - return $this->items; + return $this->value; } } -class Google_Service_Compute_TargetInstance extends Google_Model +class Google_Service_Compute_TargetPool extends Google_Collection { + public $backupPool; public $creationTimestamp; public $description; + public $failoverRatio; + public $healthChecks; public $id; - public $instance; + public $instances; public $kind; public $name; - public $natPolicy; + public $region; public $selfLink; - public $zone; + public $sessionAffinity; + + public function setBackupPool($backupPool) + { + $this->backupPool = $backupPool; + } + + public function getBackupPool() + { + return $this->backupPool; + } public function setCreationTimestamp($creationTimestamp) { @@ -9342,6 +11295,26 @@ public function getDescription() return $this->description; } + public function setFailoverRatio($failoverRatio) + { + $this->failoverRatio = $failoverRatio; + } + + public function getFailoverRatio() + { + return $this->failoverRatio; + } + + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() + { + return $this->healthChecks; + } + public function setId($id) { $this->id = $id; @@ -9352,14 +11325,14 @@ public function getId() return $this->id; } - public function setInstance($instance) + public function setInstances($instances) { - $this->instance = $instance; + $this->instances = $instances; } - public function getInstance() + public function getInstances() { - return $this->instance; + return $this->instances; } public function setKind($kind) @@ -9382,14 +11355,14 @@ public function getName() return $this->name; } - public function setNatPolicy($natPolicy) + public function setRegion($region) { - $this->natPolicy = $natPolicy; + $this->region = $region; } - public function getNatPolicy() + public function getRegion() { - return $this->natPolicy; + return $this->region; } public function setSelfLink($selfLink) @@ -9402,21 +11375,21 @@ public function getSelfLink() return $this->selfLink; } - public function setZone($zone) + public function setSessionAffinity($sessionAffinity) { - $this->zone = $zone; + $this->sessionAffinity = $sessionAffinity; } - public function getZone() + public function getSessionAffinity() { - return $this->zone; + return $this->sessionAffinity; } } -class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model +class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model { public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; + protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -9473,10 +11446,37 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetInstanceList extends Google_Collection +class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection +{ + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; + + public function setHealthStatus($healthStatus) + { + $this->healthStatus = $healthStatus; + } + + public function getHealthStatus() + { + return $this->healthStatus; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Compute_TargetPoolList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstance'; + protected $itemsType = 'Google_Service_Compute_TargetPool'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -9533,24 +11533,88 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection +class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection { - protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; - protected $targetInstancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() + { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection +{ + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + public function setInstances($instances) + { + $this->instances = $instances; + } + + public function getInstances() + { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection +{ + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() + { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection +{ + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + public function setInstances($instances) + { + $this->instances = $instances; + } + + public function getInstances() + { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection +{ + protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; + protected $targetPoolsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; protected $warningDataType = ''; - public function setTargetInstances($targetInstances) + public function setTargetPools($targetPools) { - $this->targetInstances = $targetInstances; + $this->targetPools = $targetPools; } - public function getTargetInstances() + public function getTargetPools() { - return $this->targetInstances; + return $this->targetPools; } - public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) + public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) { $this->warning = $warning; } @@ -9561,10 +11625,10 @@ public function getWarning() } } -class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection +class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection { public $code; - protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; + protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; protected $dataDataType = 'array'; public $message; @@ -9599,176 +11663,161 @@ public function getMessage() } } -class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetPool extends Google_Collection +class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model { - public $backupPool; - public $creationTimestamp; - public $description; - public $failoverRatio; - public $healthChecks; - public $id; - public $instances; - public $kind; - public $name; - public $region; - public $selfLink; - public $sessionAffinity; + public $key; + public $value; - public function setBackupPool($backupPool) + public function setKey($key) { - $this->backupPool = $backupPool; + $this->key = $key; } - public function getBackupPool() + public function getKey() { - return $this->backupPool; + return $this->key; } - public function setCreationTimestamp($creationTimestamp) + public function setValue($value) { - $this->creationTimestamp = $creationTimestamp; + $this->value = $value; } - public function getCreationTimestamp() + public function getValue() { - return $this->creationTimestamp; + return $this->value; } +} - public function setDescription($description) +class Google_Service_Compute_TargetReference extends Google_Model +{ + public $target; + + public function setTarget($target) { - $this->description = $description; + $this->target = $target; } - public function getDescription() + public function getTarget() { - return $this->description; + return $this->target; } +} - public function setFailoverRatio($failoverRatio) +class Google_Service_Compute_TestFailure extends Google_Model +{ + public $actualService; + public $expectedService; + public $host; + public $path; + + public function setActualService($actualService) { - $this->failoverRatio = $failoverRatio; + $this->actualService = $actualService; } - public function getFailoverRatio() + public function getActualService() { - return $this->failoverRatio; + return $this->actualService; } - public function setHealthChecks($healthChecks) + public function setExpectedService($expectedService) { - $this->healthChecks = $healthChecks; + $this->expectedService = $expectedService; } - public function getHealthChecks() + public function getExpectedService() { - return $this->healthChecks; + return $this->expectedService; } - public function setId($id) + public function setHost($host) { - $this->id = $id; + $this->host = $host; } - public function getId() + public function getHost() { - return $this->id; + return $this->host; } - public function setInstances($instances) + public function setPath($path) { - $this->instances = $instances; + $this->path = $path; } - public function getInstances() + public function getPath() { - return $this->instances; + return $this->path; } +} - public function setKind($kind) +class Google_Service_Compute_UrlMap extends Google_Collection +{ + public $creationTimestamp; + public $defaultService; + public $description; + public $fingerprint; + protected $hostRulesType = 'Google_Service_Compute_HostRule'; + protected $hostRulesDataType = 'array'; + public $id; + public $kind; + public $name; + protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; + protected $pathMatchersDataType = 'array'; + public $selfLink; + protected $testsType = 'Google_Service_Compute_UrlMapTest'; + protected $testsDataType = 'array'; + + public function setCreationTimestamp($creationTimestamp) { - $this->kind = $kind; + $this->creationTimestamp = $creationTimestamp; } - public function getKind() + public function getCreationTimestamp() { - return $this->kind; + return $this->creationTimestamp; } - public function setName($name) + public function setDefaultService($defaultService) { - $this->name = $name; + $this->defaultService = $defaultService; } - public function getName() + public function getDefaultService() { - return $this->name; + return $this->defaultService; } - public function setRegion($region) + public function setDescription($description) { - $this->region = $region; + $this->description = $description; } - public function getRegion() + public function getDescription() { - return $this->region; + return $this->description; } - public function setSelfLink($selfLink) + public function setFingerprint($fingerprint) { - $this->selfLink = $selfLink; + $this->fingerprint = $fingerprint; } - public function getSelfLink() + public function getFingerprint() { - return $this->selfLink; + return $this->fingerprint; } - public function setSessionAffinity($sessionAffinity) + public function setHostRules($hostRules) { - $this->sessionAffinity = $sessionAffinity; + $this->hostRules = $hostRules; } - public function getSessionAffinity() + public function getHostRules() { - return $this->sessionAffinity; + return $this->hostRules; } -} - -class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; public function setId($id) { @@ -9780,16 +11829,6 @@ 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; @@ -9800,58 +11839,51 @@ public function getKind() return $this->kind; } - public function setNextPageToken($nextPageToken) + public function setName($name) { - $this->nextPageToken = $nextPageToken; + $this->name = $name; } - public function getNextPageToken() + public function getName() { - return $this->nextPageToken; + return $this->name; } - public function setSelfLink($selfLink) + public function setPathMatchers($pathMatchers) { - $this->selfLink = $selfLink; + $this->pathMatchers = $pathMatchers; } - public function getSelfLink() + public function getPathMatchers() { - return $this->selfLink; + return $this->pathMatchers; } -} - -class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection -{ - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - public function setHealthStatus($healthStatus) + public function setSelfLink($selfLink) { - $this->healthStatus = $healthStatus; + $this->selfLink = $selfLink; } - public function getHealthStatus() + public function getSelfLink() { - return $this->healthStatus; + return $this->selfLink; } - public function setKind($kind) + public function setTests($tests) { - $this->kind = $kind; + $this->tests = $tests; } - public function getKind() + public function getTests() { - return $this->kind; + return $this->tests; } } -class Google_Service_Compute_TargetPoolList extends Google_Collection +class Google_Service_Compute_UrlMapList extends Google_Collection { public $id; - protected $itemsType = 'Google_Service_Compute_TargetPool'; + protected $itemsType = 'Google_Service_Compute_UrlMap'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -9908,174 +11940,147 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection -{ - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection +class Google_Service_Compute_UrlMapReference extends Google_Model { - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; + public $urlMap; - public function setInstances($instances) + public function setUrlMap($urlMap) { - $this->instances = $instances; + $this->urlMap = $urlMap; } - public function getInstances() + public function getUrlMap() { - return $this->instances; + return $this->urlMap; } } -class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection +class Google_Service_Compute_UrlMapTest extends Google_Model { - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; + public $description; + public $host; + public $path; + public $service; - public function setHealthChecks($healthChecks) + public function setDescription($description) { - $this->healthChecks = $healthChecks; + $this->description = $description; } - public function getHealthChecks() + public function getDescription() { - return $this->healthChecks; + return $this->description; } -} - -class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection -{ - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - public function setInstances($instances) + public function setHost($host) { - $this->instances = $instances; + $this->host = $host; } - public function getInstances() + public function getHost() { - return $this->instances; + return $this->host; } -} - -class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection -{ - protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; - protected $targetPoolsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; - protected $warningDataType = ''; - public function setTargetPools($targetPools) + public function setPath($path) { - $this->targetPools = $targetPools; + $this->path = $path; } - public function getTargetPools() + public function getPath() { - return $this->targetPools; + return $this->path; } - public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) + public function setService($service) { - $this->warning = $warning; + $this->service = $service; } - public function getWarning() + public function getService() { - return $this->warning; + return $this->service; } } -class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection +class Google_Service_Compute_UrlMapValidationResult extends Google_Collection { - public $code; - protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; + public $loadErrors; + public $loadSucceeded; + protected $testFailuresType = 'Google_Service_Compute_TestFailure'; + protected $testFailuresDataType = 'array'; + public $testPassed; - public function setCode($code) + public function setLoadErrors($loadErrors) { - $this->code = $code; + $this->loadErrors = $loadErrors; } - public function getCode() + public function getLoadErrors() { - return $this->code; + return $this->loadErrors; } - public function setData($data) + public function setLoadSucceeded($loadSucceeded) { - $this->data = $data; + $this->loadSucceeded = $loadSucceeded; } - public function getData() + public function getLoadSucceeded() { - return $this->data; + return $this->loadSucceeded; } - public function setMessage($message) + public function setTestFailures($testFailures) { - $this->message = $message; + $this->testFailures = $testFailures; } - public function getMessage() + public function getTestFailures() { - return $this->message; + return $this->testFailures; } -} - -class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model -{ - public $key; - public $value; - public function setKey($key) + public function setTestPassed($testPassed) { - $this->key = $key; + $this->testPassed = $testPassed; } - public function getKey() + public function getTestPassed() { - return $this->key; + return $this->testPassed; } +} - public function setValue($value) +class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model +{ + protected $resourceType = 'Google_Service_Compute_UrlMap'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_Compute_UrlMap $resource) { - $this->value = $value; + $this->resource = $resource; } - public function getValue() + public function getResource() { - return $this->value; + return $this->resource; } } -class Google_Service_Compute_TargetReference extends Google_Model +class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model { - public $target; + protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; + protected $resultDataType = ''; - public function setTarget($target) + public function setResult(Google_Service_Compute_UrlMapValidationResult $result) { - $this->target = $target; + $this->result = $result; } - public function getTarget() + public function getResult() { - return $this->target; + return $this->result; } } From 2d1d56260f3da47a7ef34231551f7b1e0a0b2d81 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 10 Jun 2014 00:07:04 -0700 Subject: [PATCH 0012/1274] Updated PlusDomains.php --- src/Google/Service/PlusDomains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index a5ff7c6a5..eb1a1a5d7 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -33,7 +33,7 @@ class Google_Service_PlusDomains extends Google_Service { /** View your circles and the people and pages in them. */ const PLUS_CIRCLES_READ = "https://www.googleapis.com/auth/plus.circles.read"; - /** Manage your circles and add people and pages, who will be notified and may appear on your public Google+ profile. */ + /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ const PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; /** Know your basic profile info and list of people in your circles.. */ const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; From b55c9debb60bc09fc13b06b24ab4d4e0535d4e87 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 12 Jun 2014 00:09:15 -0700 Subject: [PATCH 0013/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index da34fc381..6b32c65bf 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1378,7 +1378,6 @@ class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection public $bigqueryTable; public $callsetIds; public $datasetIds; - public $exportUri; public $format; public $projectId; @@ -1422,16 +1421,6 @@ public function getDatasetIds() return $this->datasetIds; } - public function setExportUri($exportUri) - { - $this->exportUri = $exportUri; - } - - public function getExportUri() - { - return $this->exportUri; - } - public function setFormat($format) { $this->format = $format; From 28852dcb90a7d9e5c40ac920873153bdd118895a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 12 Jun 2014 00:09:15 -0700 Subject: [PATCH 0014/1274] Updated Analytics.php --- src/Google/Service/Analytics.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index c4b4f0fbd..9a963c275 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -2850,9 +2850,11 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An * @param string $accountId * Account ID which the given view (profile) belongs to. * @param string $webPropertyId - * Web Property ID which the given view (profile) belongs to. + * Web Property ID which the given view (profile) belongs to. Can either be a specific web property + * ID or '~all', which refers to all the web properties that user has access to. * @param string $profileId - * View (Profile) ID to retrieve the profile-user links for + * View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or + * '~all', which refers to all the profiles that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results @@ -3503,7 +3505,8 @@ public function insert($accountId, $webPropertyId, Google_Service_Analytics_Enti * @param string $accountId * Account ID which the given web property belongs to. * @param string $webPropertyId - * Web Property ID for the webProperty-user links to retrieve. + * Web Property ID for the webProperty-user links to retrieve. Can either be a specific web + * property ID or '~all', which refers to all the web properties that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results From 5d22956ef61bd37e426e9b96e44d144c01c7f989 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 14 Jun 2014 00:10:56 -0700 Subject: [PATCH 0015/1274] Updated YouTube.php --- src/Google/Service/YouTube.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 3b0e479be..3ae847b56 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -2749,8 +2749,8 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * The parameter value is an ISO 3166-1 alpha-2 country code. * @opt_param string location * The location parameter restricts a search to videos that have a geographical location specified - * in their metadata. The value is a string that specifies geographic longitude/latitude - * coordinates e.g. (-122.08427,37.42307) + * in their metadata. The value is a string that specifies geographic latitude/longitude + * coordinates e.g. (37.42307,-122.08427) * @opt_param string locationRadius * The locationRadius, in conjunction with the location parameter, defines a geographic area. If * the geographic coordinates associated with a video fall within that area, then the video may be From 1fecdd49c76df93047b3253588e8c34401af32f1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 14 Jun 2014 00:10:56 -0700 Subject: [PATCH 0016/1274] Updated Replicapool.php --- src/Google/Service/Replicapool.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 3fc3b31f0..4922ffb6e 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -528,12 +528,13 @@ public function listReplicas($projectName, $zone, $poolName, $optParams = array( * @param string $replicaName * The name of the replica for this request. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica */ public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array()) { $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); $params = array_merge($params, $optParams); - return $this->call('restart', array($params)); + return $this->call('restart', array($params), "Google_Service_Replicapool_Replica"); } } From a88dcec6833ac2de4798c13a24abe30c90feb057 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 14 Jun 2014 00:10:57 -0700 Subject: [PATCH 0017/1274] Updated AdExchangeBuyer.php --- src/Google/Service/AdExchangeBuyer.php | 554 +++++++++++++++++++++++++ 1 file changed, 554 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index b6913f043..afb05a2f4 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -38,6 +38,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $creatives; public $directDeals; public $performanceReport; + public $pretargetingConfig; /** @@ -214,6 +215,96 @@ public function __construct(Google_Client $client) ) ) ); + $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( + $this, + $this->serviceName, + 'pretargetingConfig', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -434,6 +525,115 @@ public function listPerformanceReport($accountId, $endDateTime, $startDateTime, } } +/** + * The "pretargetingConfig" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; + * + */ +class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing pretargeting config. (pretargetingConfig.delete) + * + * @param string $accountId + * The account id to delete the pretargeting config for. + * @param string $configId + * The specific id of the configuration to delete. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $configId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'configId' => $configId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a specific pretargeting configuration (pretargetingConfig.get) + * + * @param string $accountId + * The account id to get the pretargeting config for. + * @param string $configId + * The specific id of the configuration to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function get($accountId, $configId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'configId' => $configId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + /** + * Inserts a new pretargeting configuration. (pretargetingConfig.insert) + * + * @param string $accountId + * The account id to insert the pretargeting config for. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + /** + * Retrieves a list of the authenticated user's pretargeting configurations. + * (pretargetingConfig.listPretargetingConfig) + * + * @param string $accountId + * The account id to get the pretargeting configs for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfigList + */ + public function listPretargetingConfig($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); + } + /** + * Updates an existing pretargeting config. This method supports patch + * semantics. (pretargetingConfig.patch) + * + * @param string $accountId + * The account id to update the pretargeting config for. + * @param string $configId + * The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + /** + * Updates an existing pretargeting config. (pretargetingConfig.update) + * + * @param string $accountId + * The account id to update the pretargeting config for. + * @param string $configId + * The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } +} + @@ -1300,3 +1500,357 @@ public function getPerformanceReport() return $this->performanceReport; } } + +class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection +{ + public $configId; + public $configName; + public $creativeType; + protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; + protected $dimensionsDataType = 'array'; + public $excludedContentLabels; + public $excludedGeoCriteriaIds; + protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; + protected $excludedPlacementsDataType = 'array'; + public $excludedUserLists; + public $excludedVerticals; + public $geoCriteriaIds; + public $isActive; + public $kind; + public $languages; + public $mobileCarriers; + public $mobileDevices; + public $mobileOperatingSystemVersions; + protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; + protected $placementsDataType = 'array'; + public $platforms; + public $supportedCreativeAttributes; + public $userLists; + public $vendorTypes; + public $verticals; + + public function setConfigId($configId) + { + $this->configId = $configId; + } + + public function getConfigId() + { + return $this->configId; + } + + public function setConfigName($configName) + { + $this->configName = $configName; + } + + public function getConfigName() + { + return $this->configName; + } + + public function setCreativeType($creativeType) + { + $this->creativeType = $creativeType; + } + + public function getCreativeType() + { + return $this->creativeType; + } + + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + + public function getDimensions() + { + return $this->dimensions; + } + + public function setExcludedContentLabels($excludedContentLabels) + { + $this->excludedContentLabels = $excludedContentLabels; + } + + public function getExcludedContentLabels() + { + return $this->excludedContentLabels; + } + + public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) + { + $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; + } + + public function getExcludedGeoCriteriaIds() + { + return $this->excludedGeoCriteriaIds; + } + + public function setExcludedPlacements($excludedPlacements) + { + $this->excludedPlacements = $excludedPlacements; + } + + public function getExcludedPlacements() + { + return $this->excludedPlacements; + } + + public function setExcludedUserLists($excludedUserLists) + { + $this->excludedUserLists = $excludedUserLists; + } + + public function getExcludedUserLists() + { + return $this->excludedUserLists; + } + + public function setExcludedVerticals($excludedVerticals) + { + $this->excludedVerticals = $excludedVerticals; + } + + public function getExcludedVerticals() + { + return $this->excludedVerticals; + } + + public function setGeoCriteriaIds($geoCriteriaIds) + { + $this->geoCriteriaIds = $geoCriteriaIds; + } + + public function getGeoCriteriaIds() + { + return $this->geoCriteriaIds; + } + + public function setIsActive($isActive) + { + $this->isActive = $isActive; + } + + public function getIsActive() + { + return $this->isActive; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLanguages($languages) + { + $this->languages = $languages; + } + + public function getLanguages() + { + return $this->languages; + } + + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + + public function getMobileCarriers() + { + return $this->mobileCarriers; + } + + public function setMobileDevices($mobileDevices) + { + $this->mobileDevices = $mobileDevices; + } + + public function getMobileDevices() + { + return $this->mobileDevices; + } + + public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) + { + $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; + } + + public function getMobileOperatingSystemVersions() + { + return $this->mobileOperatingSystemVersions; + } + + public function setPlacements($placements) + { + $this->placements = $placements; + } + + public function getPlacements() + { + return $this->placements; + } + + public function setPlatforms($platforms) + { + $this->platforms = $platforms; + } + + public function getPlatforms() + { + return $this->platforms; + } + + public function setSupportedCreativeAttributes($supportedCreativeAttributes) + { + $this->supportedCreativeAttributes = $supportedCreativeAttributes; + } + + public function getSupportedCreativeAttributes() + { + return $this->supportedCreativeAttributes; + } + + public function setUserLists($userLists) + { + $this->userLists = $userLists; + } + + public function getUserLists() + { + return $this->userLists; + } + + public function setVendorTypes($vendorTypes) + { + $this->vendorTypes = $vendorTypes; + } + + public function getVendorTypes() + { + return $this->vendorTypes; + } + + public function setVerticals($verticals) + { + $this->verticals = $verticals; + } + + public function getVerticals() + { + return $this->verticals; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model +{ + public $height; + public $width; + + public function setHeight($height) + { + $this->height = $height; + } + + public function getHeight() + { + return $this->height; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model +{ + public $token; + public $type; + + 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_AdExchangeBuyer_PretargetingConfigList extends Google_Collection +{ + protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; + protected $itemsDataType = 'array'; + public $kind; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model +{ + public $token; + public $type; + + 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; + } +} From e77641722c8982e42cc1f0316418e738d13d6aee Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Jun 2014 00:15:02 -0700 Subject: [PATCH 0018/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index c754c089c..8ca5c6c57 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -3098,6 +3098,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $lastModifiedTime; public $name; public $projectId; + public $publishedAccessList; public $tags; public $versions; @@ -3201,6 +3202,16 @@ public function getProjectId() return $this->projectId; } + public function setPublishedAccessList($publishedAccessList) + { + $this->publishedAccessList = $publishedAccessList; + } + + public function getPublishedAccessList() + { + return $this->publishedAccessList; + } + public function setTags($tags) { $this->tags = $tags; From ff351aab0f27519e7e2d293c71b0c277558e0b21 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Jun 2014 00:15:03 -0700 Subject: [PATCH 0019/1274] Updated PlusDomains.php --- src/Google/Service/PlusDomains.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index eb1a1a5d7..a873569e9 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -3816,6 +3816,7 @@ class Google_Service_PlusDomains_Place extends Google_Model protected $addressType = 'Google_Service_PlusDomains_PlaceAddress'; protected $addressDataType = ''; public $displayName; + public $id; public $kind; protected $positionType = 'Google_Service_PlusDomains_PlacePosition'; protected $positionDataType = ''; @@ -3840,6 +3841,16 @@ 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; From 328c6c8807b18834468ea32c66aa450ef2104144 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Jun 2014 00:15:03 -0700 Subject: [PATCH 0020/1274] Updated Analytics.php --- src/Google/Service/Analytics.php | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 9a963c275..fc23db2fa 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -1477,6 +1477,26 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), + ),'migrateDataImport' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'uploadData' => array( 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', @@ -3204,6 +3224,24 @@ public function listManagementUploads($accountId, $webPropertyId, $customDataSou $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); } + /** + * Migrate custom data source and data imports to latest version. + * (uploads.migrateDataImport) + * + * @param string $accountId + * Account Id for migration. + * @param string $webPropertyId + * Web property Id for migration. + * @param string $customDataSourceId + * Custom data source Id for migration. + * @param array $optParams Optional parameters. + */ + public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); + $params = array_merge($params, $optParams); + return $this->call('migrateDataImport', array($params)); + } /** * Upload data for a custom data source. (uploads.uploadData) * @@ -4261,6 +4299,7 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection public $created; public $description; public $id; + public $importBehavior; public $kind; public $name; protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink'; @@ -4269,6 +4308,7 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection public $selfLink; public $type; public $updated; + public $uploadType; public $webPropertyId; public function setAccountId($accountId) @@ -4321,6 +4361,16 @@ public function getId() return $this->id; } + public function setImportBehavior($importBehavior) + { + $this->importBehavior = $importBehavior; + } + + public function getImportBehavior() + { + return $this->importBehavior; + } + public function setKind($kind) { $this->kind = $kind; @@ -4391,6 +4441,16 @@ public function getUpdated() return $this->updated; } + public function setUploadType($uploadType) + { + $this->uploadType = $uploadType; + } + + public function getUploadType() + { + return $this->uploadType; + } + public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; From 7fb0c301724e3ae2bc9a6d9e42afc8478b89fde8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Jun 2014 00:15:04 -0700 Subject: [PATCH 0021/1274] Updated Plus.php --- src/Google/Service/Plus.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index d90a4a03e..5510f7397 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -3697,6 +3697,7 @@ class Google_Service_Plus_Place extends Google_Model protected $addressType = 'Google_Service_Plus_PlaceAddress'; protected $addressDataType = ''; public $displayName; + public $id; public $kind; protected $positionType = 'Google_Service_Plus_PlacePosition'; protected $positionDataType = ''; @@ -3721,6 +3722,16 @@ 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; From bf862537aa8797e010650fb5ac81e498066c0533 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 19 Jun 2014 00:16:10 -0700 Subject: [PATCH 0022/1274] Updated Compute.php --- src/Google/Service/Compute.php | 144 ++++++++++++++++++++++++++++++++- 1 file changed, 140 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 20b53586f..f65cf7296 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -54,6 +54,7 @@ class Google_Service_Compute extends Google_Service public $httpHealthChecks; public $images; public $instances; + public $licenses; public $machineTypes; public $networks; public $projects; @@ -1541,6 +1542,31 @@ public function __construct(Google_Client $client) ) ) ); + $this->licenses = new Google_Service_Compute_Licenses_Resource( + $this, + $this->serviceName, + 'licenses', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/licenses/{license}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'license' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( $this, $this->serviceName, @@ -4228,6 +4254,35 @@ public function setTags($project, $zone, $instance, Google_Service_Compute_Tags } } +/** + * The "licenses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $licenses = $computeService->licenses; + * + */ +class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified license resource. (licenses.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $license + * Name of the license resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_License + */ + public function get($project, $license, $optParams = array()) + { + $params = array('project' => $project, 'license' => $license); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_License"); + } +} + /** * The "machineTypes" collection of methods. * Typical usage is: @@ -5834,7 +5889,7 @@ public function getValue() } } -class Google_Service_Compute_AttachedDisk extends Google_Model +class Google_Service_Compute_AttachedDisk extends Google_Collection { public $autoDelete; public $boot; @@ -5843,6 +5898,7 @@ class Google_Service_Compute_AttachedDisk extends Google_Model protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; protected $initializeParamsDataType = ''; public $kind; + public $licenses; public $mode; public $source; public $type; @@ -5907,6 +5963,16 @@ public function getKind() return $this->kind; } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + + public function getLicenses() + { + return $this->licenses; + } + public function setMode($mode) { $this->mode = $mode; @@ -6350,12 +6416,13 @@ public function getState() } } -class Google_Service_Compute_Disk extends Google_Model +class Google_Service_Compute_Disk extends Google_Collection { public $creationTimestamp; public $description; public $id; public $kind; + public $licenses; public $name; public $options; public $selfLink; @@ -6408,6 +6475,16 @@ public function getKind() return $this->kind; } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) { $this->name = $name; @@ -7892,7 +7969,7 @@ public function getSelfLink() } } -class Google_Service_Compute_Image extends Google_Model +class Google_Service_Compute_Image extends Google_Collection { public $archiveSizeBytes; public $creationTimestamp; @@ -7902,6 +7979,7 @@ class Google_Service_Compute_Image extends Google_Model public $diskSizeGb; public $id; public $kind; + public $licenses; public $name; protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; protected $rawDiskDataType = ''; @@ -7979,6 +8057,16 @@ public function getKind() return $this->kind; } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) { $this->name = $name; @@ -8551,6 +8639,43 @@ public function getValue() } } +class Google_Service_Compute_License extends Google_Model +{ + public $kind; + public $name; + public $selfLink; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + class Google_Service_Compute_MachineType extends Google_Collection { public $creationTimestamp; @@ -10572,13 +10697,14 @@ public function getScopes() } } -class Google_Service_Compute_Snapshot extends Google_Model +class Google_Service_Compute_Snapshot extends Google_Collection { public $creationTimestamp; public $description; public $diskSizeGb; public $id; public $kind; + public $licenses; public $name; public $selfLink; public $sourceDisk; @@ -10637,6 +10763,16 @@ public function getKind() return $this->kind; } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) { $this->name = $name; From d0d747d3e957320773214722dcb6c47b931b9581 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 19 Jun 2014 00:16:10 -0700 Subject: [PATCH 0023/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 6b32c65bf..6b4f0fef2 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -750,7 +750,12 @@ public function get($readId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Read"); } /** - * Gets a list of reads matching the criteria. (reads.search) + * Gets a list of reads for one or more readsets. SearchReads operates over a + * genomic coordinate space of sequence+position defined over the reference + * sequences to which the requested readsets are aligned. If a target positional + * range is specified, SearchReads returns all reads whose alignment to the + * reference genome overlap the range. A query which specifies only readset IDs + * yields all reads in those readsets, including unmapped reads. (reads.search) * * @param Google_SearchReadsRequest $postBody * @param array $optParams Optional parameters. From b0b24e01e514f19060a91a928c773c805ef8208f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 19 Jun 2014 00:16:11 -0700 Subject: [PATCH 0024/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 9674a8f13..f2958f889 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -777,7 +777,8 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource { /** - * Inserts the supplied rows into the table. (tabledata.insertAll) + * Streams data into BigQuery one record at a time without needing to run a load + * job. (tabledata.insertAll) * * @param string $projectId * Project ID of the destination table. From a62fc373aebd78160db4dff4a8fd63aae5ea9cc9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 20 Jun 2014 00:17:19 -0700 Subject: [PATCH 0025/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 6b4f0fef2..d4c510590 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1382,7 +1382,7 @@ class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection public $bigqueryDataset; public $bigqueryTable; public $callsetIds; - public $datasetIds; + public $datasetId; public $format; public $projectId; @@ -1416,14 +1416,14 @@ public function getCallsetIds() return $this->callsetIds; } - public function setDatasetIds($datasetIds) + public function setDatasetId($datasetId) { - $this->datasetIds = $datasetIds; + $this->datasetId = $datasetId; } - public function getDatasetIds() + public function getDatasetId() { - return $this->datasetIds; + return $this->datasetId; } public function setFormat($format) From f39713c0e4c44e980c2ea7702a00abc6d1866681 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Jun 2014 00:22:39 -0700 Subject: [PATCH 0026/1274] Added service Pubsub.php --- src/Google/Service/Pubsub.php | 827 ++++++++++++++++++++++++++++++++++ 1 file changed, 827 insertions(+) create mode 100644 src/Google/Service/Pubsub.php diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php new file mode 100644 index 000000000..27c49682e --- /dev/null +++ b/src/Google/Service/Pubsub.php @@ -0,0 +1,827 @@ + + * Provides reliable, many-to-many, asynchronous messaging between applications. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Pubsub extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage Pub/Sub topics and subscriptions. */ + const PUBSUB = "https://www.googleapis.com/auth/pubsub"; + + public $subscriptions; + public $topics; + + + /** + * Constructs the internal representation of the Pubsub service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'pubsub/v1beta1/'; + $this->version = 'v1beta1'; + $this->serviceName = 'pubsub'; + + $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'acknowledge' => array( + 'path' => 'subscriptions/acknowledge', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'create' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'subscriptions/{+subscription}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'subscriptions/{+subscription}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'modifyAckDeadline' => array( + 'path' => 'subscriptions/modifyAckDeadline', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'modifyPushConfig' => array( + 'path' => 'subscriptions/modifyPushConfig', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'pull' => array( + 'path' => 'subscriptions/pull', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this, + $this->serviceName, + 'topics', + array( + 'methods' => array( + 'create' => array( + 'path' => 'topics', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'topics/{+topic}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'topics/{+topic}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'topics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'publish' => array( + 'path' => 'topics/publish', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $subscriptions = $pubsubService->subscriptions; + * + */ +class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource +{ + + /** + * Acknowledges a particular received message: the Pub/Sub system can remove the + * given message from the subscription. Acknowledging a message whose Ack + * deadline has expired may succeed, but the message could have been already + * redelivered. Acknowledging a message more than once will not result in an + * error. This is only used for messages received via pull. + * (subscriptions.acknowledge) + * + * @param Google_AcknowledgeRequest $postBody + * @param array $optParams Optional parameters. + */ + public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('acknowledge', array($params)); + } + /** + * Creates a subscription on a given topic for a given subscriber. If the + * subscription already exists, returns ALREADY_EXISTS. If the corresponding + * topic doesn't exist, returns NOT_FOUND. (subscriptions.create) + * + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Subscription + */ + public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); + } + /** + * Deletes an existing subscription. All pending messages in the subscription + * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. + * (subscriptions.delete) + * + * @param string $subscription + * The subscription to delete. + * @param array $optParams Optional parameters. + */ + public function delete($subscription, $optParams = array()) + { + $params = array('subscription' => $subscription); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the configuration details of a subscription. (subscriptions.get) + * + * @param string $subscription + * The name of the subscription to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Subscription + */ + public function get($subscription, $optParams = array()) + { + $params = array('subscription' => $subscription); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); + } + /** + * Lists matching subscriptions. (subscriptions.listSubscriptions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value obtained in the last ListSubscriptionsResponse for continuation. + * @opt_param int maxResults + * Maximum number of subscriptions to return. + * @opt_param string query + * A valid label query expression. + * @return Google_Service_Pubsub_ListSubscriptionsResponse + */ + public function listSubscriptions($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); + } + /** + * Modifies the Ack deadline for a message received from a pull request. + * (subscriptions.modifyAckDeadline) + * + * @param Google_ModifyAckDeadlineRequest $postBody + * @param array $optParams Optional parameters. + */ + public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyAckDeadline', array($params)); + } + /** + * Modifies the PushConfig for a specified subscription. This method can be used + * to suspend the flow of messages to an end point by clearing the PushConfig + * field in the request. Messages will be accumulated for delivery even if no + * push configuration is defined or while the configuration is modified. + * (subscriptions.modifyPushConfig) + * + * @param Google_ModifyPushConfigRequest $postBody + * @param array $optParams Optional parameters. + */ + public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyPushConfig', array($params)); + } + /** + * Pulls a single message from the server. If return_immediately is true, and no + * messages are available in the subscription, this method returns + * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no + * messages are available in a reasonable amount of time (to reduce system + * load). (subscriptions.pull) + * + * @param Google_PullRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PullResponse + */ + public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); + } +} + +/** + * The "topics" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $topics = $pubsubService->topics; + * + */ +class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource +{ + + /** + * Creates the given topic with the given name. (topics.create) + * + * @param Google_Topic $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Topic + */ + public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); + } + /** + * Deletes the topic with the given name. All subscriptions to this topic are + * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is + * deleted, a new topic may be created with the same name. (topics.delete) + * + * @param string $topic + * Name of the topic to delete. + * @param array $optParams Optional parameters. + */ + public function delete($topic, $optParams = array()) + { + $params = array('topic' => $topic); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the configuration of a topic. Since the topic only has the name + * attribute, this method is only useful to check the existence of a topic. If + * other attributes are added in the future, they will be returned here. + * (topics.get) + * + * @param string $topic + * The name of the topic to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Topic + */ + public function get($topic, $optParams = array()) + { + $params = array('topic' => $topic); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); + } + /** + * Lists matching topics. (topics.listTopics) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value obtained in the last ListTopicsResponse for continuation. + * @opt_param int maxResults + * Maximum number of topics to return. + * @opt_param string query + * A valid label query expression. + * @return Google_Service_Pubsub_ListTopicsResponse + */ + public function listTopics($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); + } + /** + * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. + * (topics.publish) + * + * @param Google_PublishRequest $postBody + * @param array $optParams Optional parameters. + */ + public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params)); + } +} + + + + +class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection +{ + public $ackId; + public $subscription; + + public function setAckId($ackId) + { + $this->ackId = $ackId; + } + + public function getAckId() + { + return $this->ackId; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_Label extends Google_Model +{ + public $key; + public $numValue; + public $strValue; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setNumValue($numValue) + { + $this->numValue = $numValue; + } + + public function getNumValue() + { + return $this->numValue; + } + + public function setStrValue($strValue) + { + $this->strValue = $strValue; + } + + public function getStrValue() + { + return $this->strValue; + } +} + +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +{ + public $nextPageToken; + protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection +{ + public $nextPageToken; + protected $topicType = 'Google_Service_Pubsub_Topic'; + protected $topicDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setTopic($topic) + { + $this->topic = $topic; + } + + public function getTopic() + { + return $this->topic; + } +} + +class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model +{ + public $ackDeadlineSeconds; + public $ackId; + public $subscription; + + public function setAckDeadlineSeconds($ackDeadlineSeconds) + { + $this->ackDeadlineSeconds = $ackDeadlineSeconds; + } + + public function getAckDeadlineSeconds() + { + return $this->ackDeadlineSeconds; + } + + public function setAckId($ackId) + { + $this->ackId = $ackId; + } + + public function getAckId() + { + return $this->ackId; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model +{ + protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; + protected $pushConfigDataType = ''; + public $subscription; + + public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) + { + $this->pushConfig = $pushConfig; + } + + public function getPushConfig() + { + return $this->pushConfig; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_PublishRequest extends Google_Model +{ + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $topic; + + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } + + public function setTopic($topic) + { + $this->topic = $topic; + } + + public function getTopic() + { + return $this->topic; + } +} + +class Google_Service_Pubsub_PubsubEvent extends Google_Model +{ + public $deleted; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $subscription; + public $truncated; + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } + + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } + + public function setTruncated($truncated) + { + $this->truncated = $truncated; + } + + public function getTruncated() + { + return $this->truncated; + } +} + +class Google_Service_Pubsub_PubsubMessage extends Google_Collection +{ + public $data; + protected $labelType = 'Google_Service_Pubsub_Label'; + protected $labelDataType = 'array'; + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setLabel($label) + { + $this->label = $label; + } + + public function getLabel() + { + return $this->label; + } +} + +class Google_Service_Pubsub_PullRequest extends Google_Model +{ + public $returnImmediately; + public $subscription; + + public function setReturnImmediately($returnImmediately) + { + $this->returnImmediately = $returnImmediately; + } + + public function getReturnImmediately() + { + return $this->returnImmediately; + } + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_PullResponse extends Google_Model +{ + public $ackId; + protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; + protected $pubsubEventDataType = ''; + + public function setAckId($ackId) + { + $this->ackId = $ackId; + } + + public function getAckId() + { + return $this->ackId; + } + + public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) + { + $this->pubsubEvent = $pubsubEvent; + } + + public function getPubsubEvent() + { + return $this->pubsubEvent; + } +} + +class Google_Service_Pubsub_PushConfig extends Google_Model +{ + public $pushEndpoint; + + public function setPushEndpoint($pushEndpoint) + { + $this->pushEndpoint = $pushEndpoint; + } + + public function getPushEndpoint() + { + return $this->pushEndpoint; + } +} + +class Google_Service_Pubsub_Subscription extends Google_Model +{ + public $ackDeadlineSeconds; + public $name; + protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; + protected $pushConfigDataType = ''; + public $topic; + + public function setAckDeadlineSeconds($ackDeadlineSeconds) + { + $this->ackDeadlineSeconds = $ackDeadlineSeconds; + } + + public function getAckDeadlineSeconds() + { + return $this->ackDeadlineSeconds; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) + { + $this->pushConfig = $pushConfig; + } + + public function getPushConfig() + { + return $this->pushConfig; + } + + public function setTopic($topic) + { + $this->topic = $topic; + } + + public function getTopic() + { + return $this->topic; + } +} + +class Google_Service_Pubsub_Topic extends Google_Model +{ + public $name; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} From 2a69dad7b7a230206480493b1a8793b52b3d80d3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Jun 2014 00:22:39 -0700 Subject: [PATCH 0027/1274] Updated GamesManagement.php --- src/Google/Service/GamesManagement.php | 253 +++++++++++++++++++++++++ 1 file changed, 253 insertions(+) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index a65643e4c..ed61500df 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -38,7 +38,9 @@ class Google_Service_GamesManagement extends Google_Service public $achievements; public $applications; + public $events; public $players; + public $quests; public $rooms; public $scores; public $turnBasedMatches; @@ -118,6 +120,40 @@ public function __construct(Google_Client $client) ) ) ); + $this->events = new Google_Service_GamesManagement_Events_Resource( + $this, + $this->serviceName, + 'events', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'events/{eventId}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resetAll' => array( + 'path' => 'events/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'resetForAllPlayers' => array( + 'path' => 'events/{eventId}/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->players = new Google_Service_GamesManagement_Players_Resource( $this, $this->serviceName, @@ -158,6 +194,26 @@ public function __construct(Google_Client $client) ) ) ); + $this->quests = new Google_Service_GamesManagement_Quests_Resource( + $this, + $this->serviceName, + 'quests', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'quests/{questId}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->rooms = new Google_Service_GamesManagement_Rooms_Resource( $this, $this->serviceName, @@ -314,6 +370,65 @@ public function listHidden($applicationId, $optParams = array()) } } +/** + * The "events" collection of methods. + * Typical usage is: + * + * $gamesManagementService = new Google_Service_GamesManagement(...); + * $events = $gamesManagementService->events; + * + */ +class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource +{ + + /** + * Reset all player progress on the event for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. All resources that use the event will also be reset. + * (events.reset) + * + * @param string $eventId + * The ID of the event. + * @param array $optParams Optional parameters. + */ + public function reset($eventId, $optParams = array()) + { + $params = array('eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } + /** + * Reset all player progress on all unpublished events for the currently + * authenticated player. This method is only accessible to whitelisted tester + * accounts for your application. All resources that use the events will also be + * reset. (events.resetAll) + * + * @param array $optParams Optional parameters. + */ + public function resetAll($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAll', array($params)); + } + /** + * Reset all player progress on the event for all players. This method is only + * available to user accounts for your developer console. Only draft events can + * be reset. All resources that use the event will also be reset. + * (events.resetForAllPlayers) + * + * @param string $eventId + * The ID of the event. + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($eventId, $optParams = array()) + { + $params = array('eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } +} + /** * The "players" collection of methods. * Typical usage is: @@ -361,6 +476,34 @@ public function unhide($applicationId, $playerId, $optParams = array()) } } +/** + * The "quests" collection of methods. + * Typical usage is: + * + * $gamesManagementService = new Google_Service_GamesManagement(...); + * $quests = $gamesManagementService->quests; + * + */ +class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource +{ + + /** + * Reset all player progress on the quest for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. (quests.reset) + * + * @param string $questId + * The ID of the quest. + * @param array $optParams Optional parameters. + */ + public function reset($questId, $optParams = array()) + { + $params = array('questId' => $questId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } +} + /** * The "rooms" collection of methods. * Typical usage is: @@ -560,6 +703,93 @@ public function getTimeMillis() } } +class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model +{ + public $currentExperiencePoints; + protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; + protected $currentLevelDataType = ''; + public $lastLevelUpTimestampMillis; + protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; + protected $nextLevelDataType = ''; + + public function setCurrentExperiencePoints($currentExperiencePoints) + { + $this->currentExperiencePoints = $currentExperiencePoints; + } + + public function getCurrentExperiencePoints() + { + return $this->currentExperiencePoints; + } + + public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) + { + $this->currentLevel = $currentLevel; + } + + public function getCurrentLevel() + { + return $this->currentLevel; + } + + public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) + { + $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; + } + + public function getLastLevelUpTimestampMillis() + { + return $this->lastLevelUpTimestampMillis; + } + + public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) + { + $this->nextLevel = $nextLevel; + } + + public function getNextLevel() + { + return $this->nextLevel; + } +} + +class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model +{ + public $level; + public $maxExperiencePoints; + public $minExperiencePoints; + + public function setLevel($level) + { + $this->level = $level; + } + + public function getLevel() + { + return $this->level; + } + + public function setMaxExperiencePoints($maxExperiencePoints) + { + $this->maxExperiencePoints = $maxExperiencePoints; + } + + public function getMaxExperiencePoints() + { + return $this->maxExperiencePoints; + } + + public function setMinExperiencePoints($minExperiencePoints) + { + $this->minExperiencePoints = $minExperiencePoints; + } + + public function getMinExperiencePoints() + { + return $this->minExperiencePoints; + } +} + class Google_Service_GamesManagement_HiddenPlayer extends Google_Model { public $hiddenTimeMillis; @@ -640,12 +870,15 @@ class Google_Service_GamesManagement_Player extends Google_Model { public $avatarImageUrl; public $displayName; + protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; + protected $experienceInfoDataType = ''; public $kind; protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource'; protected $lastPlayedWithDataType = ''; protected $nameType = 'Google_Service_GamesManagement_PlayerName'; protected $nameDataType = ''; public $playerId; + public $title; public function setAvatarImageUrl($avatarImageUrl) { @@ -667,6 +900,16 @@ public function getDisplayName() return $this->displayName; } + public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) + { + $this->experienceInfo = $experienceInfo; + } + + public function getExperienceInfo() + { + return $this->experienceInfo; + } + public function setKind($kind) { $this->kind = $kind; @@ -706,6 +949,16 @@ public function getPlayerId() { return $this->playerId; } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } } class Google_Service_GamesManagement_PlayerName extends Google_Model From a1eac083b801e3d694fc7116685f28981413c9f0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Jun 2014 00:22:40 -0700 Subject: [PATCH 0028/1274] Updated Games.php --- src/Google/Service/Games.php | 3469 ++++++++++++++++++++++++++-------- 1 file changed, 2679 insertions(+), 790 deletions(-) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index bbf9599a0..3bde2d0d2 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -31,6 +31,8 @@ */ class Google_Service_Games extends Google_Service { + /** View and manage its own configuration data in your Google Drive. */ + const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; /** Share your Google+ profile information and view and manage your game activity. */ const GAMES = "https://www.googleapis.com/auth/games"; /** Know your basic profile info and list of people in your circles.. */ @@ -39,12 +41,17 @@ class Google_Service_Games extends Google_Service public $achievementDefinitions; public $achievements; public $applications; + public $events; public $leaderboards; + public $metagame; public $players; public $pushtokens; + public $questMilestones; + public $quests; public $revisions; public $rooms; public $scores; + public $snapshots; public $turnBasedMatches; @@ -213,6 +220,59 @@ public function __construct(Google_Client $client) ) ) ); + $this->events = new Google_Service_Games_Events_Resource( + $this, + $this->serviceName, + 'events', + array( + 'methods' => array( + 'listByPlayer' => array( + 'path' => 'events', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listDefinitions' => array( + 'path' => 'eventDefinitions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'record' => array( + 'path' => 'events', + 'httpMethod' => 'POST', + 'parameters' => array( + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->leaderboards = new Google_Service_Games_Leaderboards_Resource( $this, $this->serviceName, @@ -254,6 +314,47 @@ public function __construct(Google_Client $client) ) ) ); + $this->metagame = new Google_Service_Games_Metagame_Resource( + $this, + $this->serviceName, + 'metagame', + array( + 'methods' => array( + 'getMetagameConfig' => array( + 'path' => 'metagameConfig', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'listCategoriesByPlayer' => array( + 'path' => 'players/{playerId}/categories/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->players = new Google_Service_Games_Players_Resource( $this, $this->serviceName, @@ -318,6 +419,82 @@ public function __construct(Google_Client $client) ) ) ); + $this->questMilestones = new Google_Service_Games_QuestMilestones_Resource( + $this, + $this->serviceName, + 'questMilestones', + array( + 'methods' => array( + 'claim' => array( + 'path' => 'quests/{questId}/milestones/{milestoneId}/claim', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'milestoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->quests = new Google_Service_Games_Quests_Resource( + $this, + $this->serviceName, + 'quests', + array( + 'methods' => array( + 'accept' => array( + 'path' => 'quests/{questId}/accept', + 'httpMethod' => 'POST', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'players/{playerId}/quests', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->revisions = new Google_Service_Games_Revisions_Resource( $this, $this->serviceName, @@ -604,6 +781,52 @@ public function __construct(Google_Client $client) ) ) ); + $this->snapshots = new Google_Service_Games_Snapshots_Resource( + $this, + $this->serviceName, + 'snapshots', + array( + 'methods' => array( + 'get' => array( + 'path' => 'snapshots/{snapshotId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'snapshotId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'players/{playerId}/snapshots', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->turnBasedMatches = new Google_Service_Games_TurnBasedMatches_Resource( $this, $this->serviceName, @@ -1031,6 +1254,79 @@ public function played($optParams = array()) } } +/** + * The "events" collection of methods. + * Typical usage is: + * + * $gamesService = new Google_Service_Games(...); + * $events = $gamesService->events; + * + */ +class Google_Service_Games_Events_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of the current progress on events in this application for the + * currently authorized user. (events.listByPlayer) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of events to return in the response, used for paging. For any response, the + * actual number of events to return may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_PlayerEventListResponse + */ + public function listByPlayer($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse"); + } + /** + * Returns a list of the event definitions in this application. + * (events.listDefinitions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of event definitions to return in the response, used for paging. For any + * response, the actual number of event definitions to return may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_EventDefinitionListResponse + */ + public function listDefinitions($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); + } + /** + * Records a batch of event updates for the currently authorized user of this + * application. (events.record) + * + * @param Google_EventRecordRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_EventUpdateResponse + */ + public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse"); + } +} + /** * The "leaderboards" collection of methods. * Typical usage is: @@ -1084,46 +1380,98 @@ public function listLeaderboards($optParams = array()) } /** - * The "players" collection of methods. + * The "metagame" collection of methods. * Typical usage is: * * $gamesService = new Google_Service_Games(...); - * $players = $gamesService->players; + * $metagame = $gamesService->metagame; * */ -class Google_Service_Games_Players_Resource extends Google_Service_Resource +class Google_Service_Games_Metagame_Resource extends Google_Service_Resource { /** - * Retrieves the Player resource with the given ID. To retrieve the player for - * the currently authenticated user, set playerId to me. (players.get) + * Return the metagame configuration data for the calling application. + * (metagame.getMetagameConfig) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Player + * @return Google_Service_Games_MetagameConfig */ - public function get($playerId, $optParams = array()) + public function getMetagameConfig($optParams = array()) { - $params = array('playerId' => $playerId); + $params = array(); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Player"); + return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); } /** - * Get the collection of players for the currently authenticated user. - * (players.listPlayers) + * List play data aggregated per category for the player corresponding to + * playerId. (metagame.listCategoriesByPlayer) * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. * @param string $collection - * Collection of players being retrieved + * The collection of categories for which data will be returned. * @param array $optParams Optional parameters. * * @opt_param string pageToken * The token returned by the previous request. * @opt_param int maxResults - * The maximum number of player resources to return in the response, used for paging. For any + * The maximum number of category resources to return in the response, used for paging. For any + * response, the actual number of category resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_CategoryListResponse + */ + public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) + { + $params = array('playerId' => $playerId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse"); + } +} + +/** + * The "players" collection of methods. + * Typical usage is: + * + * $gamesService = new Google_Service_Games(...); + * $players = $gamesService->players; + * + */ +class Google_Service_Games_Players_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the Player resource with the given ID. To retrieve the player for + * the currently authenticated user, set playerId to me. (players.get) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Player + */ + public function get($playerId, $optParams = array()) + { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Player"); + } + /** + * Get the collection of players for the currently authenticated user. + * (players.listPlayers) + * + * @param string $collection + * Collection of players being retrieved + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of player resources to return in the response, used for paging. For any * response, the actual number of player resources returned may be less than the specified * maxResults. * @opt_param string language @@ -1177,6 +1525,94 @@ public function update(Google_Service_Games_PushToken $postBody, $optParams = ar } } +/** + * The "questMilestones" collection of methods. + * Typical usage is: + * + * $gamesService = new Google_Service_Games(...); + * $questMilestones = $gamesService->questMilestones; + * + */ +class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resource +{ + + /** + * Report that reward for the milestone corresponding to milestoneId for the + * quest corresponding to questId has been claimed by the currently authorized + * user. (questMilestones.claim) + * + * @param string $questId + * The ID of the quest. + * @param string $milestoneId + * The ID of the Milestone. + * @param string $requestId + * A randomly generated numeric ID for each request specified by the caller. This number is used at + * the server to ensure that the request is handled correctly across retries. + * @param array $optParams Optional parameters. + */ + public function claim($questId, $milestoneId, $requestId, $optParams = array()) + { + $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId); + $params = array_merge($params, $optParams); + return $this->call('claim', array($params)); + } +} + +/** + * The "quests" collection of methods. + * Typical usage is: + * + * $gamesService = new Google_Service_Games(...); + * $quests = $gamesService->quests; + * + */ +class Google_Service_Games_Quests_Resource extends Google_Service_Resource +{ + + /** + * Indicates that the currently authorized user will participate in the quest. + * (quests.accept) + * + * @param string $questId + * The ID of the quest. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Quest + */ + public function accept($questId, $optParams = array()) + { + $params = array('questId' => $questId); + $params = array_merge($params, $optParams); + return $this->call('accept', array($params), "Google_Service_Games_Quest"); + } + /** + * Get a list of quests for your application and the currently authenticated + * player. (quests.listQuests) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of quest resources to return in the response, used for paging. For any + * response, the actual number of quest resources returned may be less than the specified + * maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50). + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_QuestListResponse + */ + public function listQuests($playerId, $optParams = array()) + { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_QuestListResponse"); + } +} + /** * The "revisions" collection of methods. * Typical usage is: @@ -1515,6 +1951,60 @@ public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $p } } +/** + * The "snapshots" collection of methods. + * Typical usage is: + * + * $gamesService = new Google_Service_Games(...); + * $snapshots = $gamesService->snapshots; + * + */ +class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the metadata for a given snapshot ID. (snapshots.get) + * + * @param string $snapshotId + * The ID of the snapshot. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Snapshot + */ + public function get($snapshotId, $optParams = array()) + { + $params = array('snapshotId' => $snapshotId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Snapshot"); + } + /** + * Retrieves a list of snapshots created by your application for the player + * corresponding to the player ID. (snapshots.listSnapshots) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of snapshot resources to return in the response, used for paging. For any + * response, the actual number of snapshot resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_SnapshotListResponse + */ + public function listSnapshots($playerId, $optParams = array()) + { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse"); + } +} + /** * The "turnBasedMatches" collection of methods. * Typical usage is: @@ -1795,6 +2285,7 @@ class Google_Service_Games_AchievementDefinition extends Google_Model { public $achievementType; public $description; + public $experiencePoints; public $formattedTotalSteps; public $id; public $initialState; @@ -1826,6 +2317,16 @@ public function getDescription() return $this->description; } + public function setExperiencePoints($experiencePoints) + { + $this->experiencePoints = $experiencePoints; + } + + public function getExperiencePoints() + { + return $this->experiencePoints; + } + public function setFormattedTotalSteps($formattedTotalSteps) { $this->formattedTotalSteps = $formattedTotalSteps; @@ -2548,47 +3049,59 @@ public function getSecondary() } } -class Google_Service_Games_GamesAchievementIncrement extends Google_Model +class Google_Service_Games_Category extends Google_Model { + public $category; + public $experiencePoints; public $kind; - public $requestId; - public $steps; - public function setKind($kind) + public function setCategory($category) { - $this->kind = $kind; + $this->category = $category; } - public function getKind() + public function getCategory() { - return $this->kind; + return $this->category; } - public function setRequestId($requestId) + public function setExperiencePoints($experiencePoints) { - $this->requestId = $requestId; + $this->experiencePoints = $experiencePoints; } - public function getRequestId() + public function getExperiencePoints() { - return $this->requestId; + return $this->experiencePoints; } - public function setSteps($steps) + public function setKind($kind) { - $this->steps = $steps; + $this->kind = $kind; } - public function getSteps() + public function getKind() { - return $this->steps; + return $this->kind; } } -class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model +class Google_Service_Games_CategoryListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Category'; + protected $itemsDataType = 'array'; public $kind; - public $steps; + public $nextPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } public function setKind($kind) { @@ -2600,33 +3113,32 @@ public function getKind() return $this->kind; } - public function setSteps($steps) + public function setNextPageToken($nextPageToken) { - $this->steps = $steps; + $this->nextPageToken = $nextPageToken; } - public function getSteps() + public function getNextPageToken() { - return $this->steps; + return $this->nextPageToken; } } -class Google_Service_Games_ImageAsset extends Google_Model +class Google_Service_Games_EventBatchRecordFailure extends Google_Model { - public $height; + public $failureCause; public $kind; - public $name; - public $url; - public $width; + protected $rangeType = 'Google_Service_Games_EventPeriodRange'; + protected $rangeDataType = ''; - public function setHeight($height) + public function setFailureCause($failureCause) { - $this->height = $height; + $this->failureCause = $failureCause; } - public function getHeight() + public function getFailureCause() { - return $this->height; + return $this->failureCause; } public function setKind($kind) @@ -2639,158 +3151,151 @@ public function getKind() return $this->kind; } - public function setName($name) + public function setRange(Google_Service_Games_EventPeriodRange $range) { - $this->name = $name; + $this->range = $range; } - public function getName() + public function getRange() { - return $this->name; + return $this->range; } +} - public function setUrl($url) +class Google_Service_Games_EventChild extends Google_Model +{ + public $childId; + public $kind; + + public function setChildId($childId) { - $this->url = $url; + $this->childId = $childId; } - public function getUrl() + public function getChildId() { - return $this->url; + return $this->childId; } - public function setWidth($width) + public function setKind($kind) { - $this->width = $width; + $this->kind = $kind; } - public function getWidth() + public function getKind() { - return $this->width; + return $this->kind; } } -class Google_Service_Games_Instance extends Google_Model +class Google_Service_Games_EventDefinition extends Google_Collection { - public $acquisitionUri; - protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; - protected $androidInstanceDataType = ''; - protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails'; - protected $iosInstanceDataType = ''; + protected $childEventsType = 'Google_Service_Games_EventChild'; + protected $childEventsDataType = 'array'; + public $description; + public $displayName; + public $id; + public $imageUrl; + public $isDefaultImageUrl; public $kind; - public $name; - public $platformType; - public $realtimePlay; - public $turnBasedPlay; - protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; - protected $webInstanceDataType = ''; + public $visibility; - public function setAcquisitionUri($acquisitionUri) + public function setChildEvents($childEvents) { - $this->acquisitionUri = $acquisitionUri; + $this->childEvents = $childEvents; } - public function getAcquisitionUri() + public function getChildEvents() { - return $this->acquisitionUri; + return $this->childEvents; } - public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) + public function setDescription($description) { - $this->androidInstance = $androidInstance; + $this->description = $description; } - public function getAndroidInstance() + public function getDescription() { - return $this->androidInstance; + return $this->description; } - public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) + public function setDisplayName($displayName) { - $this->iosInstance = $iosInstance; + $this->displayName = $displayName; } - public function getIosInstance() + public function getDisplayName() { - return $this->iosInstance; + return $this->displayName; } - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) + public function setId($id) { - $this->name = $name; + $this->id = $id; } - public function getName() + public function getId() { - return $this->name; + return $this->id; } - public function setPlatformType($platformType) + public function setImageUrl($imageUrl) { - $this->platformType = $platformType; + $this->imageUrl = $imageUrl; } - public function getPlatformType() + public function getImageUrl() { - return $this->platformType; + return $this->imageUrl; } - public function setRealtimePlay($realtimePlay) + public function setIsDefaultImageUrl($isDefaultImageUrl) { - $this->realtimePlay = $realtimePlay; + $this->isDefaultImageUrl = $isDefaultImageUrl; } - public function getRealtimePlay() + public function getIsDefaultImageUrl() { - return $this->realtimePlay; + return $this->isDefaultImageUrl; } - public function setTurnBasedPlay($turnBasedPlay) + public function setKind($kind) { - $this->turnBasedPlay = $turnBasedPlay; + $this->kind = $kind; } - public function getTurnBasedPlay() + public function getKind() { - return $this->turnBasedPlay; + return $this->kind; } - public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) + public function setVisibility($visibility) { - $this->webInstance = $webInstance; + $this->visibility = $visibility; } - public function getWebInstance() + public function getVisibility() { - return $this->webInstance; + return $this->visibility; } } -class Google_Service_Games_InstanceAndroidDetails extends Google_Model +class Google_Service_Games_EventDefinitionListResponse extends Google_Collection { - public $enablePiracyCheck; + protected $itemsType = 'Google_Service_Games_EventDefinition'; + protected $itemsDataType = 'array'; public $kind; - public $packageName; - public $preferred; + public $nextPageToken; - public function setEnablePiracyCheck($enablePiracyCheck) + public function setItems($items) { - $this->enablePiracyCheck = $enablePiracyCheck; + $this->items = $items; } - public function getEnablePiracyCheck() + public function getItems() { - return $this->enablePiracyCheck; + return $this->items; } public function setKind($kind) @@ -2803,56 +3308,61 @@ public function getKind() return $this->kind; } - public function setPackageName($packageName) + public function setNextPageToken($nextPageToken) { - $this->packageName = $packageName; + $this->nextPageToken = $nextPageToken; } - public function getPackageName() + public function getNextPageToken() { - return $this->packageName; + return $this->nextPageToken; } +} - public function setPreferred($preferred) +class Google_Service_Games_EventPeriodRange extends Google_Model +{ + public $kind; + public $periodEndMillis; + public $periodStartMillis; + + public function setKind($kind) { - $this->preferred = $preferred; + $this->kind = $kind; } - public function getPreferred() + public function getKind() { - return $this->preferred; + return $this->kind; } -} - -class Google_Service_Games_InstanceIosDetails extends Google_Model -{ - public $bundleIdentifier; - public $itunesAppId; - public $kind; - public $preferredForIpad; - public $preferredForIphone; - public $supportIpad; - public $supportIphone; - public function setBundleIdentifier($bundleIdentifier) + public function setPeriodEndMillis($periodEndMillis) { - $this->bundleIdentifier = $bundleIdentifier; + $this->periodEndMillis = $periodEndMillis; } - public function getBundleIdentifier() + public function getPeriodEndMillis() { - return $this->bundleIdentifier; + return $this->periodEndMillis; } - public function setItunesAppId($itunesAppId) + public function setPeriodStartMillis($periodStartMillis) { - $this->itunesAppId = $itunesAppId; + $this->periodStartMillis = $periodStartMillis; } - public function getItunesAppId() + public function getPeriodStartMillis() { - return $this->itunesAppId; + return $this->periodStartMillis; } +} + +class Google_Service_Games_EventPeriodUpdate extends Google_Collection +{ + public $kind; + protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; + protected $timePeriodDataType = ''; + protected $updatesType = 'Google_Service_Games_EventUpdateRequest'; + protected $updatesDataType = 'array'; public function setKind($kind) { @@ -2864,52 +3374,52 @@ public function getKind() return $this->kind; } - public function setPreferredForIpad($preferredForIpad) + public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) { - $this->preferredForIpad = $preferredForIpad; + $this->timePeriod = $timePeriod; } - public function getPreferredForIpad() + public function getTimePeriod() { - return $this->preferredForIpad; + return $this->timePeriod; } - public function setPreferredForIphone($preferredForIphone) + public function setUpdates($updates) { - $this->preferredForIphone = $preferredForIphone; + $this->updates = $updates; } - public function getPreferredForIphone() + public function getUpdates() { - return $this->preferredForIphone; + return $this->updates; } +} - public function setSupportIpad($supportIpad) +class Google_Service_Games_EventRecordFailure extends Google_Model +{ + public $eventId; + public $failureCause; + public $kind; + + public function setEventId($eventId) { - $this->supportIpad = $supportIpad; + $this->eventId = $eventId; } - public function getSupportIpad() + public function getEventId() { - return $this->supportIpad; + return $this->eventId; } - public function setSupportIphone($supportIphone) + public function setFailureCause($failureCause) { - $this->supportIphone = $supportIphone; + $this->failureCause = $failureCause; } - public function getSupportIphone() + public function getFailureCause() { - return $this->supportIphone; + return $this->failureCause; } -} - -class Google_Service_Games_InstanceWebDetails extends Google_Model -{ - public $kind; - public $launchUrl; - public $preferred; public function setKind($kind) { @@ -2920,65 +3430,71 @@ public function getKind() { return $this->kind; } +} - public function setLaunchUrl($launchUrl) +class Google_Service_Games_EventRecordRequest extends Google_Collection +{ + public $currentTimeMillis; + public $kind; + public $requestId; + protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate'; + protected $timePeriodsDataType = 'array'; + + public function setCurrentTimeMillis($currentTimeMillis) { - $this->launchUrl = $launchUrl; + $this->currentTimeMillis = $currentTimeMillis; } - public function getLaunchUrl() + public function getCurrentTimeMillis() { - return $this->launchUrl; + return $this->currentTimeMillis; } - public function setPreferred($preferred) + public function setKind($kind) { - $this->preferred = $preferred; + $this->kind = $kind; } - public function getPreferred() + public function getKind() { - return $this->preferred; + return $this->kind; } -} - -class Google_Service_Games_Leaderboard extends Google_Model -{ - public $iconUrl; - public $id; - public $isIconUrlDefault; - public $kind; - public $name; - public $order; - public function setIconUrl($iconUrl) + public function setRequestId($requestId) { - $this->iconUrl = $iconUrl; + $this->requestId = $requestId; } - public function getIconUrl() + public function getRequestId() { - return $this->iconUrl; + return $this->requestId; } - public function setId($id) + public function setTimePeriods($timePeriods) { - $this->id = $id; + $this->timePeriods = $timePeriods; } - public function getId() + public function getTimePeriods() { - return $this->id; + return $this->timePeriods; } +} - public function setIsIconUrlDefault($isIconUrlDefault) +class Google_Service_Games_EventUpdateRequest extends Google_Model +{ + public $definitionId; + public $kind; + public $updateCount; + + public function setDefinitionId($definitionId) { - $this->isIconUrlDefault = $isIconUrlDefault; + $this->definitionId = $definitionId; } - public function getIsIconUrlDefault() + public function getDefinitionId() { - return $this->isIconUrlDefault; + return $this->definitionId; } public function setKind($kind) @@ -2991,58 +3507,45 @@ public function getKind() return $this->kind; } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setOrder($order) + public function setUpdateCount($updateCount) { - $this->order = $order; + $this->updateCount = $updateCount; } - public function getOrder() + public function getUpdateCount() { - return $this->order; + return $this->updateCount; } } -class Google_Service_Games_LeaderboardEntry extends Google_Model +class Google_Service_Games_EventUpdateResponse extends Google_Collection { - public $formattedScore; - public $formattedScoreRank; + protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; + protected $batchFailuresDataType = 'array'; + protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; + protected $eventFailuresDataType = 'array'; public $kind; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $scoreRank; - public $scoreTag; - public $scoreValue; - public $timeSpan; - public $writeTimestampMillis; + protected $playerEventsType = 'Google_Service_Games_PlayerEvent'; + protected $playerEventsDataType = 'array'; - public function setFormattedScore($formattedScore) + public function setBatchFailures($batchFailures) { - $this->formattedScore = $formattedScore; + $this->batchFailures = $batchFailures; } - public function getFormattedScore() + public function getBatchFailures() { - return $this->formattedScore; + return $this->batchFailures; } - public function setFormattedScoreRank($formattedScoreRank) + public function setEventFailures($eventFailures) { - $this->formattedScoreRank = $formattedScoreRank; + $this->eventFailures = $eventFailures; } - public function getFormattedScoreRank() + public function getEventFailures() { - return $this->formattedScoreRank; + return $this->eventFailures; } public function setKind($kind) @@ -3055,70 +3558,1293 @@ public function getKind() return $this->kind; } - public function setPlayer(Google_Service_Games_Player $player) + public function setPlayerEvents($playerEvents) { - $this->player = $player; + $this->playerEvents = $playerEvents; } - public function getPlayer() + public function getPlayerEvents() { - return $this->player; + return $this->playerEvents; } +} - public function setScoreRank($scoreRank) +class Google_Service_Games_GamesAchievementIncrement extends Google_Model +{ + public $kind; + public $requestId; + public $steps; + + public function setKind($kind) { - $this->scoreRank = $scoreRank; + $this->kind = $kind; } - public function getScoreRank() + public function getKind() { - return $this->scoreRank; + return $this->kind; } - public function setScoreTag($scoreTag) + public function setRequestId($requestId) { - $this->scoreTag = $scoreTag; + $this->requestId = $requestId; } - public function getScoreTag() + public function getRequestId() { - return $this->scoreTag; + return $this->requestId; } - public function setScoreValue($scoreValue) + public function setSteps($steps) { - $this->scoreValue = $scoreValue; + $this->steps = $steps; } - public function getScoreValue() + public function getSteps() { - return $this->scoreValue; + return $this->steps; } +} - public function setTimeSpan($timeSpan) +class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model +{ + public $kind; + public $steps; + + public function setKind($kind) { - $this->timeSpan = $timeSpan; + $this->kind = $kind; } - public function getTimeSpan() + public function getKind() { - return $this->timeSpan; + return $this->kind; } - public function setWriteTimestampMillis($writeTimestampMillis) + public function setSteps($steps) + { + $this->steps = $steps; + } + + public function getSteps() + { + return $this->steps; + } +} + +class Google_Service_Games_ImageAsset extends Google_Model +{ + public $height; + public $kind; + public $name; + public $url; + public $width; + + public function setHeight($height) + { + $this->height = $height; + } + + public function getHeight() + { + return $this->height; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setUrl($url) + { + $this->url = $url; + } + + public function getUrl() + { + return $this->url; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Games_Instance extends Google_Model +{ + public $acquisitionUri; + protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; + protected $androidInstanceDataType = ''; + protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails'; + protected $iosInstanceDataType = ''; + public $kind; + public $name; + public $platformType; + public $realtimePlay; + public $turnBasedPlay; + protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; + protected $webInstanceDataType = ''; + + public function setAcquisitionUri($acquisitionUri) + { + $this->acquisitionUri = $acquisitionUri; + } + + public function getAcquisitionUri() + { + return $this->acquisitionUri; + } + + public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) + { + $this->androidInstance = $androidInstance; + } + + public function getAndroidInstance() + { + return $this->androidInstance; + } + + public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) + { + $this->iosInstance = $iosInstance; + } + + public function getIosInstance() + { + return $this->iosInstance; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPlatformType($platformType) + { + $this->platformType = $platformType; + } + + public function getPlatformType() + { + return $this->platformType; + } + + public function setRealtimePlay($realtimePlay) + { + $this->realtimePlay = $realtimePlay; + } + + public function getRealtimePlay() + { + return $this->realtimePlay; + } + + public function setTurnBasedPlay($turnBasedPlay) + { + $this->turnBasedPlay = $turnBasedPlay; + } + + public function getTurnBasedPlay() + { + return $this->turnBasedPlay; + } + + public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) + { + $this->webInstance = $webInstance; + } + + public function getWebInstance() + { + return $this->webInstance; + } +} + +class Google_Service_Games_InstanceAndroidDetails extends Google_Model +{ + public $enablePiracyCheck; + public $kind; + public $packageName; + public $preferred; + + public function setEnablePiracyCheck($enablePiracyCheck) + { + $this->enablePiracyCheck = $enablePiracyCheck; + } + + public function getEnablePiracyCheck() + { + return $this->enablePiracyCheck; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function getPackageName() + { + return $this->packageName; + } + + public function setPreferred($preferred) + { + $this->preferred = $preferred; + } + + public function getPreferred() + { + return $this->preferred; + } +} + +class Google_Service_Games_InstanceIosDetails extends Google_Model +{ + public $bundleIdentifier; + public $itunesAppId; + public $kind; + public $preferredForIpad; + public $preferredForIphone; + public $supportIpad; + public $supportIphone; + + public function setBundleIdentifier($bundleIdentifier) + { + $this->bundleIdentifier = $bundleIdentifier; + } + + public function getBundleIdentifier() + { + return $this->bundleIdentifier; + } + + public function setItunesAppId($itunesAppId) + { + $this->itunesAppId = $itunesAppId; + } + + public function getItunesAppId() + { + return $this->itunesAppId; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPreferredForIpad($preferredForIpad) + { + $this->preferredForIpad = $preferredForIpad; + } + + public function getPreferredForIpad() + { + return $this->preferredForIpad; + } + + public function setPreferredForIphone($preferredForIphone) + { + $this->preferredForIphone = $preferredForIphone; + } + + public function getPreferredForIphone() + { + return $this->preferredForIphone; + } + + public function setSupportIpad($supportIpad) + { + $this->supportIpad = $supportIpad; + } + + public function getSupportIpad() + { + return $this->supportIpad; + } + + public function setSupportIphone($supportIphone) + { + $this->supportIphone = $supportIphone; + } + + public function getSupportIphone() + { + return $this->supportIphone; + } +} + +class Google_Service_Games_InstanceWebDetails extends Google_Model +{ + public $kind; + public $launchUrl; + public $preferred; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLaunchUrl($launchUrl) + { + $this->launchUrl = $launchUrl; + } + + public function getLaunchUrl() + { + return $this->launchUrl; + } + + public function setPreferred($preferred) + { + $this->preferred = $preferred; + } + + public function getPreferred() + { + return $this->preferred; + } +} + +class Google_Service_Games_Leaderboard extends Google_Model +{ + public $iconUrl; + public $id; + public $isIconUrlDefault; + public $kind; + public $name; + public $order; + + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + + public function getIconUrl() + { + return $this->iconUrl; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setIsIconUrlDefault($isIconUrlDefault) + { + $this->isIconUrlDefault = $isIconUrlDefault; + } + + public function getIsIconUrlDefault() + { + return $this->isIconUrlDefault; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setOrder($order) + { + $this->order = $order; + } + + public function getOrder() + { + return $this->order; + } +} + +class Google_Service_Games_LeaderboardEntry extends Google_Model +{ + public $formattedScore; + public $formattedScoreRank; + public $kind; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; + public $scoreRank; + public $scoreTag; + public $scoreValue; + public $timeSpan; + public $writeTimestampMillis; + + public function setFormattedScore($formattedScore) + { + $this->formattedScore = $formattedScore; + } + + public function getFormattedScore() + { + return $this->formattedScore; + } + + public function setFormattedScoreRank($formattedScoreRank) + { + $this->formattedScoreRank = $formattedScoreRank; + } + + public function getFormattedScoreRank() + { + return $this->formattedScoreRank; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPlayer(Google_Service_Games_Player $player) + { + $this->player = $player; + } + + public function getPlayer() + { + return $this->player; + } + + public function setScoreRank($scoreRank) + { + $this->scoreRank = $scoreRank; + } + + public function getScoreRank() + { + return $this->scoreRank; + } + + public function setScoreTag($scoreTag) + { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() + { + return $this->scoreTag; + } + + public function setScoreValue($scoreValue) + { + $this->scoreValue = $scoreValue; + } + + public function getScoreValue() + { + return $this->scoreValue; + } + + public function setTimeSpan($timeSpan) + { + $this->timeSpan = $timeSpan; + } + + public function getTimeSpan() + { + return $this->timeSpan; + } + + public function setWriteTimestampMillis($writeTimestampMillis) + { + $this->writeTimestampMillis = $writeTimestampMillis; + } + + public function getWriteTimestampMillis() + { + return $this->writeTimestampMillis; + } +} + +class Google_Service_Games_LeaderboardListResponse extends Google_Collection +{ + protected $itemsType = 'Google_Service_Games_Leaderboard'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Games_LeaderboardScoreRank extends Google_Model +{ + public $formattedNumScores; + public $formattedRank; + public $kind; + public $numScores; + public $rank; + + public function setFormattedNumScores($formattedNumScores) + { + $this->formattedNumScores = $formattedNumScores; + } + + public function getFormattedNumScores() + { + return $this->formattedNumScores; + } + + public function setFormattedRank($formattedRank) + { + $this->formattedRank = $formattedRank; + } + + public function getFormattedRank() + { + return $this->formattedRank; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNumScores($numScores) + { + $this->numScores = $numScores; + } + + public function getNumScores() + { + return $this->numScores; + } + + public function setRank($rank) + { + $this->rank = $rank; + } + + public function getRank() + { + return $this->rank; + } +} + +class Google_Service_Games_LeaderboardScores extends Google_Collection +{ + protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $numScores; + protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry'; + protected $playerScoreDataType = ''; + public $prevPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setNumScores($numScores) + { + $this->numScores = $numScores; + } + + public function getNumScores() + { + return $this->numScores; + } + + public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) + { + $this->playerScore = $playerScore; + } + + public function getPlayerScore() + { + return $this->playerScore; + } + + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() + { + return $this->prevPageToken; + } +} + +class Google_Service_Games_MetagameConfig extends Google_Collection +{ + public $currentVersion; + public $kind; + protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; + protected $playerLevelsDataType = 'array'; + + public function setCurrentVersion($currentVersion) + { + $this->currentVersion = $currentVersion; + } + + public function getCurrentVersion() + { + return $this->currentVersion; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPlayerLevels($playerLevels) + { + $this->playerLevels = $playerLevels; + } + + public function getPlayerLevels() + { + return $this->playerLevels; + } +} + +class Google_Service_Games_NetworkDiagnostics extends Google_Model +{ + public $androidNetworkSubtype; + public $androidNetworkType; + public $iosNetworkType; + public $kind; + public $networkOperatorCode; + public $networkOperatorName; + public $registrationLatencyMillis; + + public function setAndroidNetworkSubtype($androidNetworkSubtype) + { + $this->androidNetworkSubtype = $androidNetworkSubtype; + } + + public function getAndroidNetworkSubtype() + { + return $this->androidNetworkSubtype; + } + + public function setAndroidNetworkType($androidNetworkType) + { + $this->androidNetworkType = $androidNetworkType; + } + + public function getAndroidNetworkType() + { + return $this->androidNetworkType; + } + + public function setIosNetworkType($iosNetworkType) + { + $this->iosNetworkType = $iosNetworkType; + } + + public function getIosNetworkType() + { + return $this->iosNetworkType; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNetworkOperatorCode($networkOperatorCode) + { + $this->networkOperatorCode = $networkOperatorCode; + } + + public function getNetworkOperatorCode() + { + return $this->networkOperatorCode; + } + + public function setNetworkOperatorName($networkOperatorName) + { + $this->networkOperatorName = $networkOperatorName; + } + + public function getNetworkOperatorName() + { + return $this->networkOperatorName; + } + + public function setRegistrationLatencyMillis($registrationLatencyMillis) + { + $this->registrationLatencyMillis = $registrationLatencyMillis; + } + + public function getRegistrationLatencyMillis() + { + return $this->registrationLatencyMillis; + } +} + +class Google_Service_Games_ParticipantResult extends Google_Model +{ + public $kind; + public $participantId; + public $placing; + public $result; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setParticipantId($participantId) + { + $this->participantId = $participantId; + } + + public function getParticipantId() + { + return $this->participantId; + } + + public function setPlacing($placing) + { + $this->placing = $placing; + } + + public function getPlacing() + { + return $this->placing; + } + + public function setResult($result) + { + $this->result = $result; + } + + public function getResult() + { + return $this->result; + } +} + +class Google_Service_Games_PeerChannelDiagnostics extends Google_Model +{ + protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; + protected $bytesReceivedDataType = ''; + protected $bytesSentType = 'Google_Service_Games_AggregateStats'; + protected $bytesSentDataType = ''; + public $kind; + public $numMessagesLost; + public $numMessagesReceived; + public $numMessagesSent; + public $numSendFailures; + protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; + protected $roundtripLatencyMillisDataType = ''; + + public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) + { + $this->bytesReceived = $bytesReceived; + } + + public function getBytesReceived() + { + return $this->bytesReceived; + } + + public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) + { + $this->bytesSent = $bytesSent; + } + + public function getBytesSent() + { + return $this->bytesSent; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNumMessagesLost($numMessagesLost) + { + $this->numMessagesLost = $numMessagesLost; + } + + public function getNumMessagesLost() + { + return $this->numMessagesLost; + } + + public function setNumMessagesReceived($numMessagesReceived) + { + $this->numMessagesReceived = $numMessagesReceived; + } + + public function getNumMessagesReceived() + { + return $this->numMessagesReceived; + } + + public function setNumMessagesSent($numMessagesSent) + { + $this->numMessagesSent = $numMessagesSent; + } + + public function getNumMessagesSent() + { + return $this->numMessagesSent; + } + + public function setNumSendFailures($numSendFailures) + { + $this->numSendFailures = $numSendFailures; + } + + public function getNumSendFailures() + { + return $this->numSendFailures; + } + + public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) + { + $this->roundtripLatencyMillis = $roundtripLatencyMillis; + } + + public function getRoundtripLatencyMillis() { - $this->writeTimestampMillis = $writeTimestampMillis; + return $this->roundtripLatencyMillis; + } +} + +class Google_Service_Games_PeerSessionDiagnostics extends Google_Model +{ + public $connectedTimestampMillis; + public $kind; + public $participantId; + protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; + protected $reliableChannelDataType = ''; + protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; + protected $unreliableChannelDataType = ''; + + public function setConnectedTimestampMillis($connectedTimestampMillis) + { + $this->connectedTimestampMillis = $connectedTimestampMillis; + } + + public function getConnectedTimestampMillis() + { + return $this->connectedTimestampMillis; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setParticipantId($participantId) + { + $this->participantId = $participantId; + } + + public function getParticipantId() + { + return $this->participantId; + } + + public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) + { + $this->reliableChannel = $reliableChannel; + } + + public function getReliableChannel() + { + return $this->reliableChannel; + } + + public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) + { + $this->unreliableChannel = $unreliableChannel; + } + + public function getUnreliableChannel() + { + return $this->unreliableChannel; + } +} + +class Google_Service_Games_Played extends Google_Model +{ + public $autoMatched; + public $kind; + public $timeMillis; + + public function setAutoMatched($autoMatched) + { + $this->autoMatched = $autoMatched; + } + + public function getAutoMatched() + { + return $this->autoMatched; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setTimeMillis($timeMillis) + { + $this->timeMillis = $timeMillis; + } + + public function getTimeMillis() + { + return $this->timeMillis; + } +} + +class Google_Service_Games_Player extends Google_Model +{ + public $avatarImageUrl; + public $displayName; + protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; + protected $experienceInfoDataType = ''; + public $kind; + protected $lastPlayedWithType = 'Google_Service_Games_Played'; + protected $lastPlayedWithDataType = ''; + protected $nameType = 'Google_Service_Games_PlayerName'; + protected $nameDataType = ''; + public $playerId; + public $title; + + public function setAvatarImageUrl($avatarImageUrl) + { + $this->avatarImageUrl = $avatarImageUrl; + } + + public function getAvatarImageUrl() + { + return $this->avatarImageUrl; + } + + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + + public function getDisplayName() + { + return $this->displayName; + } + + public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo) + { + $this->experienceInfo = $experienceInfo; + } + + public function getExperienceInfo() + { + return $this->experienceInfo; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) + { + $this->lastPlayedWith = $lastPlayedWith; + } + + public function getLastPlayedWith() + { + return $this->lastPlayedWith; + } + + public function setName(Google_Service_Games_PlayerName $name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPlayerId($playerId) + { + $this->playerId = $playerId; + } + + public function getPlayerId() + { + return $this->playerId; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Games_PlayerAchievement extends Google_Model +{ + public $achievementState; + public $currentSteps; + public $experiencePoints; + public $formattedCurrentStepsString; + public $id; + public $kind; + public $lastUpdatedTimestamp; + + public function setAchievementState($achievementState) + { + $this->achievementState = $achievementState; + } + + public function getAchievementState() + { + return $this->achievementState; + } + + public function setCurrentSteps($currentSteps) + { + $this->currentSteps = $currentSteps; + } + + public function getCurrentSteps() + { + return $this->currentSteps; + } + + public function setExperiencePoints($experiencePoints) + { + $this->experiencePoints = $experiencePoints; + } + + public function getExperiencePoints() + { + return $this->experiencePoints; + } + + public function setFormattedCurrentStepsString($formattedCurrentStepsString) + { + $this->formattedCurrentStepsString = $formattedCurrentStepsString; + } + + public function getFormattedCurrentStepsString() + { + return $this->formattedCurrentStepsString; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLastUpdatedTimestamp($lastUpdatedTimestamp) + { + $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; } - public function getWriteTimestampMillis() + public function getLastUpdatedTimestamp() { - return $this->writeTimestampMillis; + return $this->lastUpdatedTimestamp; } } -class Google_Service_Games_LeaderboardListResponse extends Google_Collection +class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection { - protected $itemsType = 'Google_Service_Games_Leaderboard'; + protected $itemsType = 'Google_Service_Games_PlayerAchievement'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -3154,32 +4880,32 @@ public function getNextPageToken() } } -class Google_Service_Games_LeaderboardScoreRank extends Google_Model +class Google_Service_Games_PlayerEvent extends Google_Model { - public $formattedNumScores; - public $formattedRank; + public $definitionId; + public $formattedNumEvents; public $kind; - public $numScores; - public $rank; + public $numEvents; + public $playerId; - public function setFormattedNumScores($formattedNumScores) + public function setDefinitionId($definitionId) { - $this->formattedNumScores = $formattedNumScores; + $this->definitionId = $definitionId; } - public function getFormattedNumScores() + public function getDefinitionId() { - return $this->formattedNumScores; + return $this->definitionId; } - public function setFormattedRank($formattedRank) + public function setFormattedNumEvents($formattedNumEvents) { - $this->formattedRank = $formattedRank; + $this->formattedNumEvents = $formattedNumEvents; } - public function getFormattedRank() + public function getFormattedNumEvents() { - return $this->formattedRank; + return $this->formattedNumEvents; } public function setKind($kind) @@ -3192,37 +4918,33 @@ public function getKind() return $this->kind; } - public function setNumScores($numScores) + public function setNumEvents($numEvents) { - $this->numScores = $numScores; + $this->numEvents = $numEvents; } - public function getNumScores() + public function getNumEvents() { - return $this->numScores; + return $this->numEvents; } - public function setRank($rank) + public function setPlayerId($playerId) { - $this->rank = $rank; + $this->playerId = $playerId; } - public function getRank() + public function getPlayerId() { - return $this->rank; + return $this->playerId; } } -class Google_Service_Games_LeaderboardScores extends Google_Collection +class Google_Service_Games_PlayerEventListResponse extends Google_Collection { - protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; + protected $itemsType = 'Google_Service_Games_PlayerEvent'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; - public $numScores; - protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry'; - protected $playerScoreDataType = ''; - public $prevPageToken; public function setItems($items) { @@ -3253,76 +4975,36 @@ public function getNextPageToken() { return $this->nextPageToken; } - - public function setNumScores($numScores) - { - $this->numScores = $numScores; - } - - public function getNumScores() - { - return $this->numScores; - } - - public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) - { - $this->playerScore = $playerScore; - } - - public function getPlayerScore() - { - return $this->playerScore; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } } -class Google_Service_Games_NetworkDiagnostics extends Google_Model +class Google_Service_Games_PlayerExperienceInfo extends Google_Model { - public $androidNetworkSubtype; - public $androidNetworkType; - public $iosNetworkType; + public $currentExperiencePoints; + protected $currentLevelType = 'Google_Service_Games_PlayerLevel'; + protected $currentLevelDataType = ''; public $kind; - public $networkOperatorCode; - public $networkOperatorName; - public $registrationLatencyMillis; - - public function setAndroidNetworkSubtype($androidNetworkSubtype) - { - $this->androidNetworkSubtype = $androidNetworkSubtype; - } - - public function getAndroidNetworkSubtype() - { - return $this->androidNetworkSubtype; - } + public $lastLevelUpTimestampMillis; + protected $nextLevelType = 'Google_Service_Games_PlayerLevel'; + protected $nextLevelDataType = ''; - public function setAndroidNetworkType($androidNetworkType) + public function setCurrentExperiencePoints($currentExperiencePoints) { - $this->androidNetworkType = $androidNetworkType; + $this->currentExperiencePoints = $currentExperiencePoints; } - public function getAndroidNetworkType() + public function getCurrentExperiencePoints() { - return $this->androidNetworkType; + return $this->currentExperiencePoints; } - public function setIosNetworkType($iosNetworkType) + public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) { - $this->iosNetworkType = $iosNetworkType; + $this->currentLevel = $currentLevel; } - public function getIosNetworkType() + public function getCurrentLevel() { - return $this->iosNetworkType; + return $this->currentLevel; } public function setKind($kind) @@ -3335,43 +5017,40 @@ public function getKind() return $this->kind; } - public function setNetworkOperatorCode($networkOperatorCode) - { - $this->networkOperatorCode = $networkOperatorCode; - } - - public function getNetworkOperatorCode() - { - return $this->networkOperatorCode; - } - - public function setNetworkOperatorName($networkOperatorName) + public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { - $this->networkOperatorName = $networkOperatorName; + $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; } - public function getNetworkOperatorName() + public function getLastLevelUpTimestampMillis() { - return $this->networkOperatorName; + return $this->lastLevelUpTimestampMillis; } - public function setRegistrationLatencyMillis($registrationLatencyMillis) + public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) { - $this->registrationLatencyMillis = $registrationLatencyMillis; + $this->nextLevel = $nextLevel; } - public function getRegistrationLatencyMillis() + public function getNextLevel() { - return $this->registrationLatencyMillis; + return $this->nextLevel; } } -class Google_Service_Games_ParticipantResult extends Google_Model +class Google_Service_Games_PlayerLeaderboardScore extends Google_Model { public $kind; - public $participantId; - public $placing; - public $result; + public $leaderboardId; + protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; + protected $publicRankDataType = ''; + public $scoreString; + public $scoreTag; + public $scoreValue; + protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank'; + protected $socialRankDataType = ''; + public $timeSpan; + public $writeTimestamp; public function setKind($kind) { @@ -3383,150 +5062,104 @@ public function getKind() return $this->kind; } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } - - public function setPlacing($placing) - { - $this->placing = $placing; - } - - public function getPlacing() - { - return $this->placing; - } - - public function setResult($result) - { - $this->result = $result; - } - - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Games_PeerChannelDiagnostics extends Google_Model -{ - protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; - protected $bytesReceivedDataType = ''; - protected $bytesSentType = 'Google_Service_Games_AggregateStats'; - protected $bytesSentDataType = ''; - public $kind; - public $numMessagesLost; - public $numMessagesReceived; - public $numMessagesSent; - public $numSendFailures; - protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; - protected $roundtripLatencyMillisDataType = ''; - - public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) + public function setLeaderboardId($leaderboardId) { - $this->bytesReceived = $bytesReceived; + $this->leaderboardId = $leaderboardId; } - public function getBytesReceived() + public function getLeaderboardId() { - return $this->bytesReceived; + return $this->leaderboardId; } - public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) + public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) { - $this->bytesSent = $bytesSent; + $this->publicRank = $publicRank; } - public function getBytesSent() + public function getPublicRank() { - return $this->bytesSent; + return $this->publicRank; } - public function setKind($kind) + public function setScoreString($scoreString) { - $this->kind = $kind; + $this->scoreString = $scoreString; } - public function getKind() + public function getScoreString() { - return $this->kind; + return $this->scoreString; } - public function setNumMessagesLost($numMessagesLost) + public function setScoreTag($scoreTag) { - $this->numMessagesLost = $numMessagesLost; + $this->scoreTag = $scoreTag; } - public function getNumMessagesLost() + public function getScoreTag() { - return $this->numMessagesLost; + return $this->scoreTag; } - public function setNumMessagesReceived($numMessagesReceived) + public function setScoreValue($scoreValue) { - $this->numMessagesReceived = $numMessagesReceived; + $this->scoreValue = $scoreValue; } - public function getNumMessagesReceived() + public function getScoreValue() { - return $this->numMessagesReceived; + return $this->scoreValue; } - public function setNumMessagesSent($numMessagesSent) + public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) { - $this->numMessagesSent = $numMessagesSent; + $this->socialRank = $socialRank; } - public function getNumMessagesSent() + public function getSocialRank() { - return $this->numMessagesSent; + return $this->socialRank; } - public function setNumSendFailures($numSendFailures) + public function setTimeSpan($timeSpan) { - $this->numSendFailures = $numSendFailures; + $this->timeSpan = $timeSpan; } - public function getNumSendFailures() + public function getTimeSpan() { - return $this->numSendFailures; + return $this->timeSpan; } - public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) + public function setWriteTimestamp($writeTimestamp) { - $this->roundtripLatencyMillis = $roundtripLatencyMillis; + $this->writeTimestamp = $writeTimestamp; } - public function getRoundtripLatencyMillis() + public function getWriteTimestamp() { - return $this->roundtripLatencyMillis; + return $this->writeTimestamp; } } -class Google_Service_Games_PeerSessionDiagnostics extends Google_Model +class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection { - public $connectedTimestampMillis; + protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; + protected $itemsDataType = 'array'; public $kind; - public $participantId; - protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $reliableChannelDataType = ''; - protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $unreliableChannelDataType = ''; + public $nextPageToken; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; - public function setConnectedTimestampMillis($connectedTimestampMillis) + public function setItems($items) { - $this->connectedTimestampMillis = $connectedTimestampMillis; + $this->items = $items; } - public function getConnectedTimestampMillis() + public function getItems() { - return $this->connectedTimestampMillis; + return $this->items; } public function setKind($kind) @@ -3539,103 +5172,90 @@ public function getKind() return $this->kind; } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } - - public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) + public function setNextPageToken($nextPageToken) { - $this->reliableChannel = $reliableChannel; + $this->nextPageToken = $nextPageToken; } - public function getReliableChannel() + public function getNextPageToken() { - return $this->reliableChannel; + return $this->nextPageToken; } - public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) + public function setPlayer(Google_Service_Games_Player $player) { - $this->unreliableChannel = $unreliableChannel; + $this->player = $player; } - public function getUnreliableChannel() + public function getPlayer() { - return $this->unreliableChannel; + return $this->player; } } -class Google_Service_Games_Played extends Google_Model +class Google_Service_Games_PlayerLevel extends Google_Model { - public $autoMatched; public $kind; - public $timeMillis; + public $level; + public $maxExperiencePoints; + public $minExperiencePoints; - public function setAutoMatched($autoMatched) + public function setKind($kind) { - $this->autoMatched = $autoMatched; + $this->kind = $kind; } - public function getAutoMatched() + public function getKind() { - return $this->autoMatched; + return $this->kind; } - public function setKind($kind) + public function setLevel($level) { - $this->kind = $kind; + $this->level = $level; } - public function getKind() + public function getLevel() { - return $this->kind; + return $this->level; } - public function setTimeMillis($timeMillis) + public function setMaxExperiencePoints($maxExperiencePoints) { - $this->timeMillis = $timeMillis; + $this->maxExperiencePoints = $maxExperiencePoints; } - public function getTimeMillis() + public function getMaxExperiencePoints() { - return $this->timeMillis; + return $this->maxExperiencePoints; } -} - -class Google_Service_Games_Player extends Google_Model -{ - public $avatarImageUrl; - public $displayName; - public $kind; - protected $lastPlayedWithType = 'Google_Service_Games_Played'; - protected $lastPlayedWithDataType = ''; - protected $nameType = 'Google_Service_Games_PlayerName'; - protected $nameDataType = ''; - public $playerId; - public function setAvatarImageUrl($avatarImageUrl) + public function setMinExperiencePoints($minExperiencePoints) { - $this->avatarImageUrl = $avatarImageUrl; + $this->minExperiencePoints = $minExperiencePoints; } - public function getAvatarImageUrl() + public function getMinExperiencePoints() { - return $this->avatarImageUrl; + return $this->minExperiencePoints; } +} - public function setDisplayName($displayName) +class Google_Service_Games_PlayerListResponse extends Google_Collection +{ + protected $itemsType = 'Google_Service_Games_Player'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { - $this->displayName = $displayName; + $this->items = $items; } - public function getDisplayName() + public function getItems() { - return $this->displayName; + return $this->items; } public function setKind($kind) @@ -3648,123 +5268,107 @@ public function getKind() return $this->kind; } - public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) + public function setNextPageToken($nextPageToken) { - $this->lastPlayedWith = $lastPlayedWith; + $this->nextPageToken = $nextPageToken; } - public function getLastPlayedWith() + public function getNextPageToken() { - return $this->lastPlayedWith; + return $this->nextPageToken; } +} - public function setName(Google_Service_Games_PlayerName $name) +class Google_Service_Games_PlayerName extends Google_Model +{ + public $familyName; + public $givenName; + + public function setFamilyName($familyName) { - $this->name = $name; + $this->familyName = $familyName; } - public function getName() + public function getFamilyName() { - return $this->name; + return $this->familyName; } - public function setPlayerId($playerId) + public function setGivenName($givenName) { - $this->playerId = $playerId; + $this->givenName = $givenName; } - public function getPlayerId() + public function getGivenName() { - return $this->playerId; + return $this->givenName; } } -class Google_Service_Games_PlayerAchievement extends Google_Model +class Google_Service_Games_PlayerScore extends Google_Model { - public $achievementState; - public $currentSteps; - public $formattedCurrentStepsString; - public $id; + public $formattedScore; public $kind; - public $lastUpdatedTimestamp; - - public function setAchievementState($achievementState) - { - $this->achievementState = $achievementState; - } - - public function getAchievementState() - { - return $this->achievementState; - } + public $score; + public $scoreTag; + public $timeSpan; - public function setCurrentSteps($currentSteps) + public function setFormattedScore($formattedScore) { - $this->currentSteps = $currentSteps; + $this->formattedScore = $formattedScore; } - public function getCurrentSteps() + public function getFormattedScore() { - return $this->currentSteps; + return $this->formattedScore; } - public function setFormattedCurrentStepsString($formattedCurrentStepsString) + public function setKind($kind) { - $this->formattedCurrentStepsString = $formattedCurrentStepsString; + $this->kind = $kind; } - public function getFormattedCurrentStepsString() + public function getKind() { - return $this->formattedCurrentStepsString; + return $this->kind; } - public function setId($id) + public function setScore($score) { - $this->id = $id; + $this->score = $score; } - public function getId() + public function getScore() { - return $this->id; + return $this->score; } - public function setKind($kind) + public function setScoreTag($scoreTag) { - $this->kind = $kind; + $this->scoreTag = $scoreTag; } - public function getKind() + public function getScoreTag() { - return $this->kind; + return $this->scoreTag; } - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) + public function setTimeSpan($timeSpan) { - $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; + $this->timeSpan = $timeSpan; } - public function getLastUpdatedTimestamp() + public function getTimeSpan() { - return $this->lastUpdatedTimestamp; + return $this->timeSpan; } } -class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection +class Google_Service_Games_PlayerScoreListResponse extends Google_Collection { - protected $itemsType = 'Google_Service_Games_PlayerAchievement'; - protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } + protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; + protected $submittedScoresDataType = 'array'; public function setKind($kind) { @@ -3776,30 +5380,46 @@ public function getKind() return $this->kind; } - public function setNextPageToken($nextPageToken) + public function setSubmittedScores($submittedScores) { - $this->nextPageToken = $nextPageToken; + $this->submittedScores = $submittedScores; } - public function getNextPageToken() + public function getSubmittedScores() { - return $this->nextPageToken; + return $this->submittedScores; } } -class Google_Service_Games_PlayerLeaderboardScore extends Google_Model +class Google_Service_Games_PlayerScoreResponse extends Google_Collection { + public $beatenScoreTimeSpans; + public $formattedScore; public $kind; public $leaderboardId; - protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $publicRankDataType = ''; - public $scoreString; public $scoreTag; - public $scoreValue; - protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $socialRankDataType = ''; - public $timeSpan; - public $writeTimestamp; + protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; + protected $unbeatenScoresDataType = 'array'; + + public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) + { + $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; + } + + public function getBeatenScoreTimeSpans() + { + return $this->beatenScoreTimeSpans; + } + + public function setFormattedScore($formattedScore) + { + $this->formattedScore = $formattedScore; + } + + public function getFormattedScore() + { + return $this->formattedScore; + } public function setKind($kind) { @@ -3821,94 +5441,117 @@ public function getLeaderboardId() return $this->leaderboardId; } - public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) + public function setScoreTag($scoreTag) { - $this->publicRank = $publicRank; + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() + { + return $this->scoreTag; + } + + public function setUnbeatenScores($unbeatenScores) + { + $this->unbeatenScores = $unbeatenScores; + } + + public function getUnbeatenScores() + { + return $this->unbeatenScores; } +} + +class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection +{ + public $kind; + protected $scoresType = 'Google_Service_Games_ScoreSubmission'; + protected $scoresDataType = 'array'; - public function getPublicRank() + public function setKind($kind) { - return $this->publicRank; + $this->kind = $kind; } - public function setScoreString($scoreString) + public function getKind() { - $this->scoreString = $scoreString; + return $this->kind; } - public function getScoreString() + public function setScores($scores) { - return $this->scoreString; + $this->scores = $scores; } - public function setScoreTag($scoreTag) + public function getScores() { - $this->scoreTag = $scoreTag; + return $this->scores; } +} - public function getScoreTag() - { - return $this->scoreTag; - } +class Google_Service_Games_PushToken extends Google_Model +{ + public $clientRevision; + protected $idType = 'Google_Service_Games_PushTokenId'; + protected $idDataType = ''; + public $kind; + public $language; - public function setScoreValue($scoreValue) + public function setClientRevision($clientRevision) { - $this->scoreValue = $scoreValue; + $this->clientRevision = $clientRevision; } - public function getScoreValue() + public function getClientRevision() { - return $this->scoreValue; + return $this->clientRevision; } - public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) + public function setId(Google_Service_Games_PushTokenId $id) { - $this->socialRank = $socialRank; + $this->id = $id; } - public function getSocialRank() + public function getId() { - return $this->socialRank; + return $this->id; } - public function setTimeSpan($timeSpan) + public function setKind($kind) { - $this->timeSpan = $timeSpan; + $this->kind = $kind; } - public function getTimeSpan() + public function getKind() { - return $this->timeSpan; + return $this->kind; } - public function setWriteTimestamp($writeTimestamp) + public function setLanguage($language) { - $this->writeTimestamp = $writeTimestamp; + $this->language = $language; } - public function getWriteTimestamp() + public function getLanguage() { - return $this->writeTimestamp; + return $this->language; } } -class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection +class Google_Service_Games_PushTokenId extends Google_Model { - protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; - protected $itemsDataType = 'array'; + protected $iosType = 'Google_Service_Games_PushTokenIdIos'; + protected $iosDataType = ''; public $kind; - public $nextPageToken; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public function setItems($items) + public function setIos(Google_Service_Games_PushTokenIdIos $ios) { - $this->items = $items; + $this->ios = $ios; } - public function getItems() + public function getIos() { - return $this->items; + return $this->ios; } public function setKind($kind) @@ -3920,302 +5563,329 @@ public function getKind() { return $this->kind; } +} - public function setNextPageToken($nextPageToken) +class Google_Service_Games_PushTokenIdIos extends Google_Model +{ + public $apnsDeviceToken; + public $apnsEnvironment; + + public function setApnsDeviceToken($apnsDeviceToken) { - $this->nextPageToken = $nextPageToken; + $this->apnsDeviceToken = $apnsDeviceToken; } - public function getNextPageToken() + public function getApnsDeviceToken() { - return $this->nextPageToken; + return $this->apnsDeviceToken; } - public function setPlayer(Google_Service_Games_Player $player) + public function setApnsEnvironment($apnsEnvironment) { - $this->player = $player; + $this->apnsEnvironment = $apnsEnvironment; } - public function getPlayer() + public function getApnsEnvironment() { - return $this->player; + return $this->apnsEnvironment; } } -class Google_Service_Games_PlayerListResponse extends Google_Collection +class Google_Service_Games_Quest extends Google_Collection { - protected $itemsType = 'Google_Service_Games_Player'; - protected $itemsDataType = 'array'; + public $acceptedTimestampMillis; + public $applicationId; + public $bannerUrl; + public $description; + public $endTimestampMillis; + public $iconUrl; + public $id; + public $isDefaultBannerUrl; + public $isDefaultIconUrl; public $kind; - public $nextPageToken; + public $lastUpdatedTimestampMillis; + protected $milestonesType = 'Google_Service_Games_QuestMilestone'; + protected $milestonesDataType = 'array'; + public $name; + public $notifyTimestampMillis; + public $startTimestampMillis; + public $state; - public function setItems($items) + public function setAcceptedTimestampMillis($acceptedTimestampMillis) { - $this->items = $items; + $this->acceptedTimestampMillis = $acceptedTimestampMillis; } - public function getItems() + public function getAcceptedTimestampMillis() { - return $this->items; + return $this->acceptedTimestampMillis; } - public function setKind($kind) + public function setApplicationId($applicationId) { - $this->kind = $kind; + $this->applicationId = $applicationId; } - public function getKind() + public function getApplicationId() { - return $this->kind; + return $this->applicationId; } - public function setNextPageToken($nextPageToken) + public function setBannerUrl($bannerUrl) { - $this->nextPageToken = $nextPageToken; + $this->bannerUrl = $bannerUrl; } - public function getNextPageToken() + public function getBannerUrl() { - return $this->nextPageToken; + return $this->bannerUrl; } -} - -class Google_Service_Games_PlayerName extends Google_Model -{ - public $familyName; - public $givenName; - public function setFamilyName($familyName) + public function setDescription($description) { - $this->familyName = $familyName; + $this->description = $description; } - public function getFamilyName() + public function getDescription() { - return $this->familyName; + return $this->description; } - public function setGivenName($givenName) + public function setEndTimestampMillis($endTimestampMillis) { - $this->givenName = $givenName; + $this->endTimestampMillis = $endTimestampMillis; } - public function getGivenName() + public function getEndTimestampMillis() { - return $this->givenName; + return $this->endTimestampMillis; } -} - -class Google_Service_Games_PlayerScore extends Google_Model -{ - public $formattedScore; - public $kind; - public $score; - public $scoreTag; - public $timeSpan; - public function setFormattedScore($formattedScore) + public function setIconUrl($iconUrl) { - $this->formattedScore = $formattedScore; + $this->iconUrl = $iconUrl; } - public function getFormattedScore() + public function getIconUrl() { - return $this->formattedScore; + return $this->iconUrl; } - public function setKind($kind) + public function setId($id) { - $this->kind = $kind; + $this->id = $id; } - public function getKind() + public function getId() { - return $this->kind; + return $this->id; } - public function setScore($score) + public function setIsDefaultBannerUrl($isDefaultBannerUrl) { - $this->score = $score; + $this->isDefaultBannerUrl = $isDefaultBannerUrl; } - public function getScore() + public function getIsDefaultBannerUrl() { - return $this->score; + return $this->isDefaultBannerUrl; } - public function setScoreTag($scoreTag) + public function setIsDefaultIconUrl($isDefaultIconUrl) { - $this->scoreTag = $scoreTag; + $this->isDefaultIconUrl = $isDefaultIconUrl; } - public function getScoreTag() + public function getIsDefaultIconUrl() { - return $this->scoreTag; + return $this->isDefaultIconUrl; } - public function setTimeSpan($timeSpan) + public function setKind($kind) { - $this->timeSpan = $timeSpan; + $this->kind = $kind; } - public function getTimeSpan() + public function getKind() { - return $this->timeSpan; + return $this->kind; } -} -class Google_Service_Games_PlayerScoreListResponse extends Google_Collection -{ - public $kind; - protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; - protected $submittedScoresDataType = 'array'; + public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) + { + $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; + } - public function setKind($kind) + public function getLastUpdatedTimestampMillis() { - $this->kind = $kind; + return $this->lastUpdatedTimestampMillis; } - public function getKind() + public function setMilestones($milestones) { - return $this->kind; + $this->milestones = $milestones; } - public function setSubmittedScores($submittedScores) + public function getMilestones() { - $this->submittedScores = $submittedScores; + return $this->milestones; } - public function getSubmittedScores() + public function setName($name) { - return $this->submittedScores; + $this->name = $name; } -} -class Google_Service_Games_PlayerScoreResponse extends Google_Collection -{ - public $beatenScoreTimeSpans; - public $formattedScore; - public $kind; - public $leaderboardId; - public $scoreTag; - protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; - protected $unbeatenScoresDataType = 'array'; + public function getName() + { + return $this->name; + } - public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) + public function setNotifyTimestampMillis($notifyTimestampMillis) { - $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; + $this->notifyTimestampMillis = $notifyTimestampMillis; } - public function getBeatenScoreTimeSpans() + public function getNotifyTimestampMillis() { - return $this->beatenScoreTimeSpans; + return $this->notifyTimestampMillis; } - public function setFormattedScore($formattedScore) + public function setStartTimestampMillis($startTimestampMillis) { - $this->formattedScore = $formattedScore; + $this->startTimestampMillis = $startTimestampMillis; } - public function getFormattedScore() + public function getStartTimestampMillis() { - return $this->formattedScore; + return $this->startTimestampMillis; } - public function setKind($kind) + public function setState($state) { - $this->kind = $kind; + $this->state = $state; } - public function getKind() + public function getState() { - return $this->kind; + return $this->state; } +} - public function setLeaderboardId($leaderboardId) +class Google_Service_Games_QuestContribution extends Google_Model +{ + public $formattedValue; + public $kind; + public $value; + + public function setFormattedValue($formattedValue) { - $this->leaderboardId = $leaderboardId; + $this->formattedValue = $formattedValue; } - public function getLeaderboardId() + public function getFormattedValue() { - return $this->leaderboardId; + return $this->formattedValue; } - public function setScoreTag($scoreTag) + public function setKind($kind) { - $this->scoreTag = $scoreTag; + $this->kind = $kind; } - public function getScoreTag() + public function getKind() { - return $this->scoreTag; + return $this->kind; } - public function setUnbeatenScores($unbeatenScores) + public function setValue($value) { - $this->unbeatenScores = $unbeatenScores; + $this->value = $value; } - public function getUnbeatenScores() + public function getValue() { - return $this->unbeatenScores; + return $this->value; } } -class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection +class Google_Service_Games_QuestCriterion extends Google_Model { + protected $completionContributionType = 'Google_Service_Games_QuestContribution'; + protected $completionContributionDataType = ''; + protected $currentContributionType = 'Google_Service_Games_QuestContribution'; + protected $currentContributionDataType = ''; + public $eventId; + protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution'; + protected $initialPlayerProgressDataType = ''; public $kind; - protected $scoresType = 'Google_Service_Games_ScoreSubmission'; - protected $scoresDataType = 'array'; - public function setKind($kind) + public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution) + { + $this->completionContribution = $completionContribution; + } + + public function getCompletionContribution() + { + return $this->completionContribution; + } + + public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution) { - $this->kind = $kind; + $this->currentContribution = $currentContribution; } - public function getKind() + public function getCurrentContribution() { - return $this->kind; + return $this->currentContribution; } - public function setScores($scores) + public function setEventId($eventId) { - $this->scores = $scores; + $this->eventId = $eventId; } - public function getScores() + public function getEventId() { - return $this->scores; + return $this->eventId; } -} -class Google_Service_Games_PushToken extends Google_Model -{ - public $clientRevision; - protected $idType = 'Google_Service_Games_PushTokenId'; - protected $idDataType = ''; - public $kind; - public $language; + public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress) + { + $this->initialPlayerProgress = $initialPlayerProgress; + } - public function setClientRevision($clientRevision) + public function getInitialPlayerProgress() { - $this->clientRevision = $clientRevision; + return $this->initialPlayerProgress; } - public function getClientRevision() + public function setKind($kind) { - return $this->clientRevision; + $this->kind = $kind; } - public function setId(Google_Service_Games_PushTokenId $id) + public function getKind() { - $this->id = $id; + return $this->kind; } +} - public function getId() +class Google_Service_Games_QuestListResponse extends Google_Collection +{ + protected $itemsType = 'Google_Service_Games_Quest'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { - return $this->id; + $this->items = $items; + } + + public function getItems() + { + return $this->items; } public function setKind($kind) @@ -4228,67 +5898,74 @@ public function getKind() return $this->kind; } - public function setLanguage($language) + public function setNextPageToken($nextPageToken) { - $this->language = $language; + $this->nextPageToken = $nextPageToken; } - public function getLanguage() + public function getNextPageToken() { - return $this->language; + return $this->nextPageToken; } } -class Google_Service_Games_PushTokenId extends Google_Model +class Google_Service_Games_QuestMilestone extends Google_Collection { - protected $iosType = 'Google_Service_Games_PushTokenIdIos'; - protected $iosDataType = ''; + public $completionRewardData; + protected $criteriaType = 'Google_Service_Games_QuestCriterion'; + protected $criteriaDataType = 'array'; + public $id; public $kind; + public $state; - public function setIos(Google_Service_Games_PushTokenIdIos $ios) + public function setCompletionRewardData($completionRewardData) { - $this->ios = $ios; + $this->completionRewardData = $completionRewardData; } - public function getIos() + public function getCompletionRewardData() { - return $this->ios; + return $this->completionRewardData; } - public function setKind($kind) + public function setCriteria($criteria) { - $this->kind = $kind; + $this->criteria = $criteria; } - public function getKind() + public function getCriteria() { - return $this->kind; + return $this->criteria; } -} -class Google_Service_Games_PushTokenIdIos extends Google_Model -{ - public $apnsDeviceToken; - public $apnsEnvironment; + public function setId($id) + { + $this->id = $id; + } - public function setApnsDeviceToken($apnsDeviceToken) + public function getId() { - $this->apnsDeviceToken = $apnsDeviceToken; + return $this->id; } - public function getApnsDeviceToken() + public function setKind($kind) { - return $this->apnsDeviceToken; + $this->kind = $kind; } - public function setApnsEnvironment($apnsEnvironment) + public function getKind() { - $this->apnsEnvironment = $apnsEnvironment; + return $this->kind; } - public function getApnsEnvironment() + public function setState($state) { - return $this->apnsEnvironment; + $this->state = $state; + } + + public function getState() + { + return $this->state; } } @@ -5277,6 +6954,218 @@ public function getScoreTag() } } +class Google_Service_Games_Snapshot extends Google_Model +{ + protected $coverImageType = 'Google_Service_Games_SnapshotImage'; + protected $coverImageDataType = ''; + public $description; + public $driveId; + public $durationMillis; + public $id; + public $kind; + public $lastModifiedMillis; + public $title; + public $type; + public $uniqueName; + + public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage) + { + $this->coverImage = $coverImage; + } + + public function getCoverImage() + { + return $this->coverImage; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDriveId($driveId) + { + $this->driveId = $driveId; + } + + public function getDriveId() + { + return $this->driveId; + } + + public function setDurationMillis($durationMillis) + { + $this->durationMillis = $durationMillis; + } + + public function getDurationMillis() + { + return $this->durationMillis; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLastModifiedMillis($lastModifiedMillis) + { + $this->lastModifiedMillis = $lastModifiedMillis; + } + + public function getLastModifiedMillis() + { + return $this->lastModifiedMillis; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setUniqueName($uniqueName) + { + $this->uniqueName = $uniqueName; + } + + public function getUniqueName() + { + return $this->uniqueName; + } +} + +class Google_Service_Games_SnapshotImage extends Google_Model +{ + public $height; + public $kind; + public $mimeType; + public $url; + public $width; + + public function setHeight($height) + { + $this->height = $height; + } + + public function getHeight() + { + return $this->height; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + + public function getMimeType() + { + return $this->mimeType; + } + + public function setUrl($url) + { + $this->url = $url; + } + + public function getUrl() + { + return $this->url; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Games_SnapshotListResponse extends Google_Collection +{ + protected $itemsType = 'Google_Service_Games_Snapshot'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model { public $exclusiveBitmask; From 55ded935f7f1ea5e1c459f2a9c5b9f6c4d3c772e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Jun 2014 00:23:39 -0700 Subject: [PATCH 0029/1274] Updated Fusiontables.php --- src/Google/Service/Fusiontables.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 0a15d2d26..c9b64e5c1 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -1189,6 +1189,8 @@ class Google_Service_Fusiontables_Column extends Google_Model protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; protected $baseColumnDataType = ''; public $columnId; + public $description; + public $graphPredicate; public $kind; public $name; public $type; @@ -1213,6 +1215,26 @@ public function getColumnId() return $this->columnId; } + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setGraphPredicate($graphPredicate) + { + $this->graphPredicate = $graphPredicate; + } + + public function getGraphPredicate() + { + return $this->graphPredicate; + } + public function setKind($kind) { $this->kind = $kind; From e6cc10713b0f348a507bbd46f1449ad04489d0dc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Jun 2014 00:23:40 -0700 Subject: [PATCH 0030/1274] Updated Drive.php --- src/Google/Service/Drive.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 211ab72cb..3203fe686 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -2553,6 +2553,7 @@ class Google_Service_Drive_About extends Google_Collection public $quotaBytesUsed; public $quotaBytesUsedAggregate; public $quotaBytesUsedInTrash; + public $quotaType; public $remainingChangeIds; public $rootFolderId; public $selfLink; @@ -2739,6 +2740,16 @@ public function getQuotaBytesUsedInTrash() return $this->quotaBytesUsedInTrash; } + public function setQuotaType($quotaType) + { + $this->quotaType = $quotaType; + } + + public function getQuotaType() + { + return $this->quotaType; + } + public function setRemainingChangeIds($remainingChangeIds) { $this->remainingChangeIds = $remainingChangeIds; From b36dbab9e18c7457afc27fdfe281415cb867d639 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Jun 2014 00:23:40 -0700 Subject: [PATCH 0031/1274] Added service Gmail.php --- src/Google/Service/Gmail.php | 1799 ++++++++++++++++++++++++++++++++++ 1 file changed, 1799 insertions(+) create mode 100644 src/Google/Service/Gmail.php diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php new file mode 100644 index 000000000..aec364df2 --- /dev/null +++ b/src/Google/Service/Gmail.php @@ -0,0 +1,1799 @@ + + * The Gmail REST API. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Gmail extends Google_Service +{ + /** View and manage your mail. */ + const MAIL_GOOGLE_COM = "https://mail.google.com"; + /** Manage drafts and send emails. */ + const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + /** View and modify but not delete your email. */ + const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; + /** View your emails messages and settings. */ + const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; + + public $users_drafts; + public $users_history; + public $users_labels; + public $users_messages; + public $users_messages_attachments; + public $users_threads; + + + /** + * Constructs the internal representation of the Gmail service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'gmail/v1/users/'; + $this->version = 'v1'; + $this->serviceName = 'gmail'; + + $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( + $this, + $this->serviceName, + 'drafts', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/drafts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{userId}/drafts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'send' => array( + 'path' => '{userId}/drafts/send', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_history = new Google_Service_Gmail_UsersHistory_Resource( + $this, + $this->serviceName, + 'history', + array( + 'methods' => array( + 'list' => array( + 'path' => '{userId}/history', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'labelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startHistoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users_labels = new Google_Service_Gmail_UsersLabels_Resource( + $this, + $this->serviceName, + 'labels', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/labels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{userId}/labels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_messages = new Google_Service_Gmail_UsersMessages_Resource( + $this, + $this->serviceName, + 'messages', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/messages/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/messages/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'import' => array( + 'path' => '{userId}/messages/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{userId}/messages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{userId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeSpamTrash' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'labelIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'modify' => array( + 'path' => '{userId}/messages/{id}/modify', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'send' => array( + 'path' => '{userId}/messages/send', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'trash' => array( + 'path' => '{userId}/messages/{id}/trash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'untrash' => array( + 'path' => '{userId}/messages/{id}/untrash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_messages_attachments = new Google_Service_Gmail_UsersMessagesAttachments_Resource( + $this, + $this->serviceName, + 'attachments', + array( + 'methods' => array( + 'get' => array( + 'path' => '{userId}/messages/{messageId}/attachments/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'messageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_threads = new Google_Service_Gmail_UsersThreads_Resource( + $this, + $this->serviceName, + 'threads', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/threads/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/threads/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{userId}/threads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeSpamTrash' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'labelIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'modify' => array( + 'path' => '{userId}/threads/{id}/modify', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'trash' => array( + 'path' => '{userId}/threads/{id}/trash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'untrash' => array( + 'path' => '{userId}/threads/{id}/untrash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $users = $gmailService->users; + * + */ +class Google_Service_Gmail_Users_Resource extends Google_Service_Resource +{ + +} + +/** + * The "drafts" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $drafts = $gmailService->drafts; + * + */ +class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource +{ + + /** + * Creates a new draft with the DRAFT label. (drafts.create) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Draft"); + } + /** + * Immediately and permanently deletes the specified draft. Does not simply + * trash it. (drafts.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified draft. (drafts.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string format + * The format to return the draft in. + * @return Google_Service_Gmail_Draft + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Draft"); + } + /** + * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param string maxResults + * Maximum number of drafts to return. + * @return Google_Service_Gmail_ListDraftsResponse + */ + public function listUsersDrafts($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); + } + /** + * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc + * headers. (drafts.send) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + /** + * Replaces a draft's content. (drafts.update) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to update. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Draft"); + } +} +/** + * The "history" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $history = $gmailService->history; + * + */ +class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource +{ + + /** + * Lists the history of all changes to the given mailbox. History results are + * returned in chronological order (increasing historyId). + * (history.listUsersHistory) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param string maxResults + * The maximum number of history records to return. + * @opt_param string labelId + * Only return messages with a label matching the ID. + * @opt_param string startHistoryId + * Required. Returns history records after the specified startHistoryId. The supplied + * startHistoryId should be obtained from the historyId of a message, thread, or previous list + * response. History IDs increase chronologically but are not contiguous with random gaps in + * between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP + * 404 error code. A historyId is typically valid for at least a week, but in some circumstances + * may be valid for only a few hours. If you receive an HTTP 404 error response, your application + * should perform a full sync. If you receive no nextPageToken in the response, there are no + * updates to retrieve and you can store the returned historyId for a future request. + * @return Google_Service_Gmail_ListHistoryResponse + */ + public function listUsersHistory($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); + } +} +/** + * The "labels" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $labels = $gmailService->labels; + * + */ +class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource +{ + + /** + * Creates a new label. (labels.create) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Label"); + } + /** + * Immediately and permanently deletes the specified label and removes it from + * any messages and threads that it is applied to. (labels.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified label. (labels.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Label"); + } + /** + * Lists all labels in the user's mailbox. (labels.listUsersLabels) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListLabelsResponse + */ + public function listUsersLabels($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); + } + /** + * Updates the specified label. This method supports patch semantics. + * (labels.patch) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to update. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Gmail_Label"); + } + /** + * Updates the specified label. (labels.update) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to update. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Label"); + } +} +/** + * The "messages" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $messages = $gmailService->messages; + * + */ +class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource +{ + + /** + * Immediately and permanently deletes the specified message. This operation + * cannot be undone. Prefer messages.trash instead. (messages.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified message. (messages.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string format + * The format to return the message in. + * @return Google_Service_Gmail_Message + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Message"); + } + /** + * Directly imports a message into only this user's mailbox, similar to + * receiving via SMTP. Does not send a message. (messages.import) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Gmail_Message"); + } + /** + * Directly inserts a message into only this user's mailbox. Does not send a + * message. (messages.insert) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Gmail_Message"); + } + /** + * Lists the messages in the user's mailbox. (messages.listUsersMessages) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of messages to return. + * @opt_param string q + * Only return messages matching the specified query. Supports the same query format as the Gmail + * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param bool includeSpamTrash + * Include messages from SPAM and TRASH in the results. + * @opt_param string labelIds + * Only return messages with labels that match all of the specified label IDs. + * @return Google_Service_Gmail_ListMessagesResponse + */ + public function listUsersMessages($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); + } + /** + * Modifies the labels on the specified message. (messages.modify) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to modify. + * @param Google_ModifyMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Message"); + } + /** + * Sends the specified message to the recipients in the To, Cc, and Bcc headers. + * (messages.send) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + /** + * Moves the specified message to the trash. (messages.trash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function trash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Message"); + } + /** + * Removes the specified message from the trash. (messages.untrash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function untrash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); + } +} + +/** + * The "attachments" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $attachments = $gmailService->attachments; + * + */ +class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Service_Resource +{ + + /** + * Gets the specified message attachment. (attachments.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $messageId + * The ID of the message containing the attachment. + * @param string $id + * The ID of the attachment. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_MessagePartBody + */ + public function get($userId, $messageId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); + } +} +/** + * The "threads" collection of methods. + * Typical usage is: + * + * $gmailService = new Google_Service_Gmail(...); + * $threads = $gmailService->threads; + * + */ +class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource +{ + + /** + * Immediately and permanently deletes the specified thread. This operation + * cannot be undone. Prefer threads.trash instead. (threads.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * ID of the Thread to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified thread. (threads.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Lists the threads in the user's mailbox. (threads.listUsersThreads) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of threads to return. + * @opt_param string q + * Only return threads matching the specified query. Supports the same query format as the Gmail + * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param bool includeSpamTrash + * Include threads from SPAM and TRASH in the results. + * @opt_param string labelIds + * Only return threads with labels that match all of the specified label IDs. + * @return Google_Service_Gmail_ListThreadsResponse + */ + public function listUsersThreads($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); + } + /** + * Modifies the labels applied to the thread. This applies to all messages in + * the thread. (threads.modify) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to modify. + * @param Google_ModifyThreadRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Moves the specified thread to the trash. (threads.trash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function trash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Removes the specified thread from the trash. (threads.untrash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function untrash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); + } +} + + + + +class Google_Service_Gmail_Draft extends Google_Model +{ + public $id; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_History extends Google_Collection +{ + public $id; + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setMessages($messages) + { + $this->messages = $messages; + } + + public function getMessages() + { + return $this->messages; + } +} + +class Google_Service_Gmail_Label extends Google_Model +{ + public $id; + public $labelListVisibility; + public $messageListVisibility; + public $name; + public $type; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLabelListVisibility($labelListVisibility) + { + $this->labelListVisibility = $labelListVisibility; + } + + public function getLabelListVisibility() + { + return $this->labelListVisibility; + } + + public function setMessageListVisibility($messageListVisibility) + { + $this->messageListVisibility = $messageListVisibility; + } + + public function getMessageListVisibility() + { + return $this->messageListVisibility; + } + + 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_Gmail_ListDraftsResponse extends Google_Collection +{ + protected $draftsType = 'Google_Service_Gmail_Draft'; + protected $draftsDataType = 'array'; + public $nextPageToken; + public $resultSizeEstimate; + + public function setDrafts($drafts) + { + $this->drafts = $drafts; + } + + public function getDrafts() + { + return $this->drafts; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } +} + +class Google_Service_Gmail_ListHistoryResponse extends Google_Collection +{ + protected $historyType = 'Google_Service_Gmail_History'; + protected $historyDataType = 'array'; + public $historyId; + public $nextPageToken; + + public function setHistory($history) + { + $this->history = $history; + } + + public function getHistory() + { + return $this->history; + } + + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + + public function getHistoryId() + { + return $this->historyId; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Gmail_ListLabelsResponse extends Google_Collection +{ + protected $labelsType = 'Google_Service_Gmail_Label'; + protected $labelsDataType = 'array'; + + public function setLabels($labels) + { + $this->labels = $labels; + } + + public function getLabels() + { + return $this->labels; + } +} + +class Google_Service_Gmail_ListMessagesResponse extends Google_Collection +{ + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; + public $nextPageToken; + public $resultSizeEstimate; + + public function setMessages($messages) + { + $this->messages = $messages; + } + + public function getMessages() + { + return $this->messages; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } +} + +class Google_Service_Gmail_ListThreadsResponse extends Google_Collection +{ + public $nextPageToken; + public $resultSizeEstimate; + protected $threadsType = 'Google_Service_Gmail_Thread'; + protected $threadsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } + + public function setThreads($threads) + { + $this->threads = $threads; + } + + public function getThreads() + { + return $this->threads; + } +} + +class Google_Service_Gmail_Message extends Google_Collection +{ + public $historyId; + public $id; + public $labelIds; + protected $payloadType = 'Google_Service_Gmail_MessagePart'; + protected $payloadDataType = ''; + public $raw; + public $sizeEstimate; + public $snippet; + public $threadId; + + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + + public function getHistoryId() + { + return $this->historyId; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + + public function getLabelIds() + { + return $this->labelIds; + } + + public function setPayload(Google_Service_Gmail_MessagePart $payload) + { + $this->payload = $payload; + } + + public function getPayload() + { + return $this->payload; + } + + public function setRaw($raw) + { + $this->raw = $raw; + } + + public function getRaw() + { + return $this->raw; + } + + public function setSizeEstimate($sizeEstimate) + { + $this->sizeEstimate = $sizeEstimate; + } + + public function getSizeEstimate() + { + return $this->sizeEstimate; + } + + public function setSnippet($snippet) + { + $this->snippet = $snippet; + } + + public function getSnippet() + { + return $this->snippet; + } + + public function setThreadId($threadId) + { + $this->threadId = $threadId; + } + + public function getThreadId() + { + return $this->threadId; + } +} + +class Google_Service_Gmail_MessagePart extends Google_Collection +{ + protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; + protected $bodyDataType = ''; + public $filename; + protected $headersType = 'Google_Service_Gmail_MessagePartHeader'; + protected $headersDataType = 'array'; + public $mimeType; + public $partId; + protected $partsType = 'Google_Service_Gmail_MessagePart'; + protected $partsDataType = 'array'; + + public function setBody(Google_Service_Gmail_MessagePartBody $body) + { + $this->body = $body; + } + + public function getBody() + { + return $this->body; + } + + public function setFilename($filename) + { + $this->filename = $filename; + } + + public function getFilename() + { + return $this->filename; + } + + public function setHeaders($headers) + { + $this->headers = $headers; + } + + public function getHeaders() + { + return $this->headers; + } + + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + + public function getMimeType() + { + return $this->mimeType; + } + + public function setPartId($partId) + { + $this->partId = $partId; + } + + public function getPartId() + { + return $this->partId; + } + + public function setParts($parts) + { + $this->parts = $parts; + } + + public function getParts() + { + return $this->parts; + } +} + +class Google_Service_Gmail_MessagePartBody extends Google_Model +{ + public $attachmentId; + public $data; + public $size; + + public function setAttachmentId($attachmentId) + { + $this->attachmentId = $attachmentId; + } + + public function getAttachmentId() + { + return $this->attachmentId; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setSize($size) + { + $this->size = $size; + } + + public function getSize() + { + return $this->size; + } +} + +class Google_Service_Gmail_MessagePartHeader 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_Gmail_ModifyMessageRequest extends Google_Collection +{ + public $addLabelIds; + public $removeLabelIds; + + public function setAddLabelIds($addLabelIds) + { + $this->addLabelIds = $addLabelIds; + } + + public function getAddLabelIds() + { + return $this->addLabelIds; + } + + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} + +class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection +{ + public $addLabelIds; + public $removeLabelIds; + + public function setAddLabelIds($addLabelIds) + { + $this->addLabelIds = $addLabelIds; + } + + public function getAddLabelIds() + { + return $this->addLabelIds; + } + + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} + +class Google_Service_Gmail_Thread extends Google_Collection +{ + public $historyId; + public $id; + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; + public $snippet; + + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + + public function getHistoryId() + { + return $this->historyId; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setMessages($messages) + { + $this->messages = $messages; + } + + public function getMessages() + { + return $this->messages; + } + + public function setSnippet($snippet) + { + $this->snippet = $snippet; + } + + public function getSnippet() + { + return $this->snippet; + } +} From 3a98b9a994c7161a5454d4ef8dcda9713dda4a85 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 27 Jun 2014 03:24:46 -0400 Subject: [PATCH 0032/1274] Updated YouTube.php --- src/Google/Service/YouTube.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 3ae847b56..ea24855e5 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1893,7 +1893,7 @@ public function bind($id, $part, $optParams = array()) * broadcast stream is delayed. * @opt_param string walltime * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. + * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. * @return Google_Service_YouTube_LiveBroadcast */ public function control($id, $part, $optParams = array()) @@ -7214,6 +7214,7 @@ public function getTitle() class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { public $lifeCycleStatus; + public $liveBroadcastPriority; public $privacyStatus; public $recordingStatus; @@ -7227,6 +7228,16 @@ public function getLifeCycleStatus() return $this->lifeCycleStatus; } + public function setLiveBroadcastPriority($liveBroadcastPriority) + { + $this->liveBroadcastPriority = $liveBroadcastPriority; + } + + public function getLiveBroadcastPriority() + { + return $this->liveBroadcastPriority; + } + public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; From f74802c5a70c43717e6a1e7a6afc4902f9d31e6e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 27 Jun 2014 03:24:46 -0400 Subject: [PATCH 0033/1274] Added service Appsactivity.php --- src/Google/Service/Appsactivity.php | 588 ++++++++++++++++++++++++++++ 1 file changed, 588 insertions(+) create mode 100644 src/Google/Service/Appsactivity.php diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php new file mode 100644 index 000000000..8da66dad3 --- /dev/null +++ b/src/Google/Service/Appsactivity.php @@ -0,0 +1,588 @@ + + * Provides a historical view of activity. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Appsactivity extends Google_Service +{ + /** View historical activity for Google services. */ + const ACTIVITY = "https://www.googleapis.com/auth/activity"; + /** View and manage the files and documents in your Google Drive. */ + const DRIVE = "https://www.googleapis.com/auth/drive"; + /** View metadata for files and documents in your Google Drive. */ + const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + /** View the files and documents in your Google Drive. */ + const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; + + public $activities; + + + /** + * Constructs the internal representation of the Appsactivity service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'appsactivity/v1/'; + $this->version = 'v1'; + $this->serviceName = 'appsactivity'; + + $this->activities = new Google_Service_Appsactivity_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'drive.ancestorId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'groupingStrategy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'drive.fileId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "activities" collection of methods. + * Typical usage is: + * + * $appsactivityService = new Google_Service_Appsactivity(...); + * $activities = $appsactivityService->activities; + * + */ +class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of activities visible to the current logged in user. Visible + * activities are determined by the visiblity settings of the object that was + * acted on, e.g. Drive files a user can see. An activity is a record of past + * events. Multiple events may be merged if they are similar. A request is + * scoped to activities from a given Google service using the source parameter. + * (activities.listActivities) + * + * @param array $optParams Optional parameters. + * + * @opt_param string drive.ancestorId + * Identifies the Drive folder containing the items for which to return activities. + * @opt_param int pageSize + * The maximum number of events to return on a page. The response includes a continuation token if + * there are more events. + * @opt_param string pageToken + * A token to retrieve a specific page of results. + * @opt_param string userId + * Indicates the user to return activity for. Use the special value me to indicate the currently + * authenticated user. + * @opt_param string groupingStrategy + * Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent + * object. + * @opt_param string drive.fileId + * Identifies the Drive item to return activities for. + * @opt_param string source + * The Google service from which to return activities. Possible values of source are: + - + * drive.google.com + * @return Google_Service_Appsactivity_ListActivitiesResponse + */ + public function listActivities($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse"); + } +} + + + + +class Google_Service_Appsactivity_Activity extends Google_Collection +{ + protected $combinedEventType = 'Google_Service_Appsactivity_Event'; + protected $combinedEventDataType = ''; + protected $singleEventsType = 'Google_Service_Appsactivity_Event'; + protected $singleEventsDataType = 'array'; + + public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent) + { + $this->combinedEvent = $combinedEvent; + } + + public function getCombinedEvent() + { + return $this->combinedEvent; + } + + public function setSingleEvents($singleEvents) + { + $this->singleEvents = $singleEvents; + } + + public function getSingleEvents() + { + return $this->singleEvents; + } +} + +class Google_Service_Appsactivity_Event extends Google_Collection +{ + public $additionalEventTypes; + public $eventTimeMillis; + public $fromUserDeletion; + protected $moveType = 'Google_Service_Appsactivity_Move'; + protected $moveDataType = ''; + protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange'; + protected $permissionChangesDataType = 'array'; + public $primaryEventType; + protected $renameType = 'Google_Service_Appsactivity_Rename'; + protected $renameDataType = ''; + protected $targetType = 'Google_Service_Appsactivity_Target'; + protected $targetDataType = ''; + protected $userType = 'Google_Service_Appsactivity_User'; + protected $userDataType = ''; + + public function setAdditionalEventTypes($additionalEventTypes) + { + $this->additionalEventTypes = $additionalEventTypes; + } + + public function getAdditionalEventTypes() + { + return $this->additionalEventTypes; + } + + public function setEventTimeMillis($eventTimeMillis) + { + $this->eventTimeMillis = $eventTimeMillis; + } + + public function getEventTimeMillis() + { + return $this->eventTimeMillis; + } + + public function setFromUserDeletion($fromUserDeletion) + { + $this->fromUserDeletion = $fromUserDeletion; + } + + public function getFromUserDeletion() + { + return $this->fromUserDeletion; + } + + public function setMove(Google_Service_Appsactivity_Move $move) + { + $this->move = $move; + } + + public function getMove() + { + return $this->move; + } + + public function setPermissionChanges($permissionChanges) + { + $this->permissionChanges = $permissionChanges; + } + + public function getPermissionChanges() + { + return $this->permissionChanges; + } + + public function setPrimaryEventType($primaryEventType) + { + $this->primaryEventType = $primaryEventType; + } + + public function getPrimaryEventType() + { + return $this->primaryEventType; + } + + public function setRename(Google_Service_Appsactivity_Rename $rename) + { + $this->rename = $rename; + } + + public function getRename() + { + return $this->rename; + } + + public function setTarget(Google_Service_Appsactivity_Target $target) + { + $this->target = $target; + } + + public function getTarget() + { + return $this->target; + } + + public function setUser(Google_Service_Appsactivity_User $user) + { + $this->user = $user; + } + + public function getUser() + { + return $this->user; + } +} + +class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection +{ + protected $activitiesType = 'Google_Service_Appsactivity_Activity'; + protected $activitiesDataType = 'array'; + public $nextPageToken; + + public function setActivities($activities) + { + $this->activities = $activities; + } + + public function getActivities() + { + return $this->activities; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Appsactivity_Move extends Google_Collection +{ + protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; + protected $addedParentsDataType = 'array'; + protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; + protected $removedParentsDataType = 'array'; + + public function setAddedParents($addedParents) + { + $this->addedParents = $addedParents; + } + + public function getAddedParents() + { + return $this->addedParents; + } + + public function setRemovedParents($removedParents) + { + $this->removedParents = $removedParents; + } + + public function getRemovedParents() + { + return $this->removedParents; + } +} + +class Google_Service_Appsactivity_Parent extends Google_Model +{ + public $id; + public $isRoot; + public $title; + + 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 setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Appsactivity_Permission extends Google_Model +{ + public $name; + public $permissionId; + public $role; + public $type; + protected $userType = 'Google_Service_Appsactivity_User'; + protected $userDataType = ''; + public $withLink; + + 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 setRole($role) + { + $this->role = $role; + } + + public function getRole() + { + return $this->role; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setUser(Google_Service_Appsactivity_User $user) + { + $this->user = $user; + } + + public function getUser() + { + return $this->user; + } + + public function setWithLink($withLink) + { + $this->withLink = $withLink; + } + + public function getWithLink() + { + return $this->withLink; + } +} + +class Google_Service_Appsactivity_PermissionChange extends Google_Collection +{ + protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; + protected $addedPermissionsDataType = 'array'; + protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; + protected $removedPermissionsDataType = 'array'; + + public function setAddedPermissions($addedPermissions) + { + $this->addedPermissions = $addedPermissions; + } + + public function getAddedPermissions() + { + return $this->addedPermissions; + } + + public function setRemovedPermissions($removedPermissions) + { + $this->removedPermissions = $removedPermissions; + } + + public function getRemovedPermissions() + { + return $this->removedPermissions; + } +} + +class Google_Service_Appsactivity_Photo extends Google_Model +{ + public $url; + + public function setUrl($url) + { + $this->url = $url; + } + + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Appsactivity_Rename extends Google_Model +{ + public $newTitle; + public $oldTitle; + + public function setNewTitle($newTitle) + { + $this->newTitle = $newTitle; + } + + public function getNewTitle() + { + return $this->newTitle; + } + + public function setOldTitle($oldTitle) + { + $this->oldTitle = $oldTitle; + } + + public function getOldTitle() + { + return $this->oldTitle; + } +} + +class Google_Service_Appsactivity_Target extends Google_Model +{ + public $id; + public $mimeType; + public $name; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + + public function getMimeType() + { + return $this->mimeType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + +class Google_Service_Appsactivity_User extends Google_Model +{ + public $name; + protected $photoType = 'Google_Service_Appsactivity_Photo'; + protected $photoDataType = ''; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPhoto(Google_Service_Appsactivity_Photo $photo) + { + $this->photo = $photo; + } + + public function getPhoto() + { + return $this->photo; + } +} From 836bf07edfec515d096f027e23c7c4cc7c37ee90 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 27 Jun 2014 03:24:47 -0400 Subject: [PATCH 0034/1274] Updated Plus.php --- src/Google/Service/Plus.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 5510f7397..61710821a 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -475,11 +475,11 @@ class Google_Service_Plus_Moments_Resource extends Google_Service_Resource { /** - * Record a moment representing a user's activity such as making a purchase or + * Record a moment representing a user's action such as making a purchase or * commenting on a blog. (moments.insert) * * @param string $userId - * The ID of the user to record activities for. The only valid values are "me" and the ID of the + * The ID of the user to record actions for. The only valid values are "me" and the ID of the * authenticated user. * @param string $collection * The collection to which to write moments. @@ -2702,6 +2702,8 @@ class Google_Service_Plus_Moment extends Google_Model { public $id; public $kind; + protected $objectType = 'Google_Service_Plus_ItemScope'; + protected $objectDataType = ''; protected $resultType = 'Google_Service_Plus_ItemScope'; protected $resultDataType = ''; public $startDate; @@ -2729,6 +2731,16 @@ public function getKind() return $this->kind; } + public function setObject(Google_Service_Plus_ItemScope $object) + { + $this->object = $object; + } + + public function getObject() + { + return $this->object; + } + public function setResult(Google_Service_Plus_ItemScope $result) { $this->result = $result; From 5083c8f353d532514743a792d2fee4a781310815 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 27 Jun 2014 03:24:47 -0400 Subject: [PATCH 0035/1274] Updated Directory.php --- src/Google/Service/Directory.php | 161 ++++++++++++++++++++++++++++++- 1 file changed, 160 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 560908077..6ab36e614 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2696,7 +2696,7 @@ public function getType() } } -class Google_Service_Directory_ChromeOsDevice extends Google_Model +class Google_Service_Directory_ChromeOsDevice extends Google_Collection { public $annotatedLocation; public $annotatedUser; @@ -2715,6 +2715,8 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Model public $orgUnitPath; public $osVersion; public $platformVersion; + protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers'; + protected $recentUsersDataType = 'array'; public $serialNumber; public $status; public $supportEndDate; @@ -2890,6 +2892,16 @@ public function getPlatformVersion() return $this->platformVersion; } + public function setRecentUsers($recentUsers) + { + $this->recentUsers = $recentUsers; + } + + public function getRecentUsers() + { + return $this->recentUsers; + } + public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; @@ -2931,6 +2943,32 @@ public function getWillAutoRenew() } } +class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model +{ + public $email; + public $type; + + public function setEmail($email) + { + $this->email = $email; + } + + public function getEmail() + { + return $this->email; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + class Google_Service_Directory_ChromeOsDevices extends Google_Collection { protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; @@ -3266,20 +3304,31 @@ class Google_Service_Directory_MobileDevice extends Google_Collection { protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; protected $applicationsDataType = 'array'; + public $basebandVersion; + public $buildNumber; + public $defaultLanguage; + public $deviceCompromisedStatus; public $deviceId; public $email; public $etag; public $firstSync; public $hardwareId; + public $imei; + public $kernelVersion; public $kind; public $lastSync; + public $managedAccountIsOnOwnerProfile; + public $meid; public $model; public $name; + public $networkOperator; public $os; public $resourceId; + public $serialNumber; public $status; public $type; public $userAgent; + public $wifiMacAddress; public function setApplications($applications) { @@ -3291,6 +3340,46 @@ public function getApplications() return $this->applications; } + public function setBasebandVersion($basebandVersion) + { + $this->basebandVersion = $basebandVersion; + } + + public function getBasebandVersion() + { + return $this->basebandVersion; + } + + public function setBuildNumber($buildNumber) + { + $this->buildNumber = $buildNumber; + } + + public function getBuildNumber() + { + return $this->buildNumber; + } + + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + + public function setDeviceCompromisedStatus($deviceCompromisedStatus) + { + $this->deviceCompromisedStatus = $deviceCompromisedStatus; + } + + public function getDeviceCompromisedStatus() + { + return $this->deviceCompromisedStatus; + } + public function setDeviceId($deviceId) { $this->deviceId = $deviceId; @@ -3341,6 +3430,26 @@ public function getHardwareId() return $this->hardwareId; } + public function setImei($imei) + { + $this->imei = $imei; + } + + public function getImei() + { + return $this->imei; + } + + public function setKernelVersion($kernelVersion) + { + $this->kernelVersion = $kernelVersion; + } + + public function getKernelVersion() + { + return $this->kernelVersion; + } + public function setKind($kind) { $this->kind = $kind; @@ -3361,6 +3470,26 @@ public function getLastSync() return $this->lastSync; } + public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) + { + $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; + } + + public function getManagedAccountIsOnOwnerProfile() + { + return $this->managedAccountIsOnOwnerProfile; + } + + public function setMeid($meid) + { + $this->meid = $meid; + } + + public function getMeid() + { + return $this->meid; + } + public function setModel($model) { $this->model = $model; @@ -3381,6 +3510,16 @@ public function getName() return $this->name; } + public function setNetworkOperator($networkOperator) + { + $this->networkOperator = $networkOperator; + } + + public function getNetworkOperator() + { + return $this->networkOperator; + } + public function setOs($os) { $this->os = $os; @@ -3401,6 +3540,16 @@ public function getResourceId() return $this->resourceId; } + public function setSerialNumber($serialNumber) + { + $this->serialNumber = $serialNumber; + } + + public function getSerialNumber() + { + return $this->serialNumber; + } + public function setStatus($status) { $this->status = $status; @@ -3430,6 +3579,16 @@ public function getUserAgent() { return $this->userAgent; } + + public function setWifiMacAddress($wifiMacAddress) + { + $this->wifiMacAddress = $wifiMacAddress; + } + + public function getWifiMacAddress() + { + return $this->wifiMacAddress; + } } class Google_Service_Directory_MobileDeviceAction extends Google_Model From aebac022061ebf56cf2bd7899245676d6badd501 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 30 Jun 2014 03:28:16 -0400 Subject: [PATCH 0036/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 819 +++++++++++++++++++++++------- 1 file changed, 632 insertions(+), 187 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 8ca5c6c57..b8d5e18f8 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -94,6 +94,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -165,7 +169,17 @@ public function __construct(Google_Client $client) 'layers', array( 'methods' => array( - 'create' => array( + 'cancelProcessing' => array( + 'path' => 'layers/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'layers', 'httpMethod' => 'POST', 'parameters' => array( @@ -174,6 +188,16 @@ public function __construct(Google_Client $client) 'type' => 'boolean', ), ), + ),'delete' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'layers/{id}', 'httpMethod' => 'GET', @@ -200,6 +224,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -229,6 +257,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'patch' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'process' => array( 'path' => 'layers/{id}/process', 'httpMethod' => 'POST', @@ -249,6 +287,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'unpublish' => array( + 'path' => 'layers/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -291,6 +339,16 @@ public function __construct(Google_Client $client) 'path' => 'maps', 'httpMethod' => 'POST', 'parameters' => array(), + ),'delete' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'maps/{id}', 'httpMethod' => 'GET', @@ -317,6 +375,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -346,6 +408,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'patch' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'publish' => array( 'path' => 'maps/{id}/publish', 'httpMethod' => 'POST', @@ -356,6 +428,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'unpublish' => array( + 'path' => 'maps/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -380,10 +462,30 @@ public function __construct(Google_Client $client) 'rasterCollections', array( 'methods' => array( - 'create' => array( + 'cancelProcessing' => array( + 'path' => 'rasterCollections/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'rasterCollections', 'httpMethod' => 'POST', 'parameters' => array(), + ),'delete' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'rasterCollections/{id}', 'httpMethod' => 'GET', @@ -406,6 +508,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -435,6 +541,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'patch' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'process' => array( 'path' => 'rasterCollections/{id}/process', 'httpMethod' => 'POST', @@ -520,6 +636,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -555,7 +675,17 @@ public function __construct(Google_Client $client) 'rasters', array( 'methods' => array( - 'get' => array( + 'delete' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'rasters/{id}', 'httpMethod' => 'GET', 'parameters' => array( @@ -565,6 +695,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'patch' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'upload' => array( 'path' => 'rasters/upload', 'httpMethod' => 'POST', @@ -636,6 +776,16 @@ public function __construct(Google_Client $client) 'path' => 'tables', 'httpMethod' => 'POST', 'parameters' => array(), + ),'delete' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'tables/{id}', 'httpMethod' => 'GET', @@ -662,6 +812,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -691,6 +845,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'patch' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'upload' => array( 'path' => 'tables/upload', 'httpMethod' => 'POST', @@ -901,6 +1065,8 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of @@ -980,6 +1146,20 @@ public function listAssetsParents($id, $optParams = array()) class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource { + /** + * Cancel processing on a layer asset. (layers.cancelProcessing) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } /** * Create a layer asset. (layers.create) * @@ -996,6 +1176,21 @@ public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); } + /** + * Delete a layer. (layers.delete) + * + * @param string $id + * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the + * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove + * it from all maps prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } /** * Return metadata for a particular layer. (layers.get) * @@ -1024,6 +1219,8 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of @@ -1054,6 +1251,22 @@ public function listLayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); } + /** + * Mutate a layer asset. Note that if a VectorStyle object is provided, it fully + * replaces the original VectorStyle present in the layer. This is a known + * issue. (layers.patch) + * + * @param string $id + * The ID of the layer. + * @param Google_Layer $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } /** * Process a layer asset. (layers.process) * @@ -1082,6 +1295,20 @@ public function publish($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); } + /** + * Unpublish a layer asset. (layers.unpublish) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } } /** @@ -1142,6 +1369,20 @@ public function create(Google_Service_MapsEngine_Map $postBody, $optParams = arr $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); } + /** + * Delete a map. (maps.delete) + * + * @param string $id + * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is + * published the request will fail. Unpublish the map prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } /** * Return metadata for a particular map. (maps.get) * @@ -1170,6 +1411,8 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of @@ -1200,6 +1443,20 @@ public function listMaps($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); } + /** + * Mutate a map asset. (maps.patch) + * + * @param string $id + * The ID of the map. + * @param Google_Map $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } /** * Publish a map asset. (maps.publish) * @@ -1214,6 +1471,20 @@ public function publish($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); } + /** + * Unpublish a map asset. (maps.unpublish) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } } /** @@ -1252,6 +1523,21 @@ public function listProjects($optParams = array()) class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource { + /** + * Cancel processing on a raster collection asset. + * (rasterCollections.cancelProcessing) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } /** * Create a raster collection asset. (rasterCollections.create) * @@ -1265,6 +1551,21 @@ public function create(Google_Service_MapsEngine_RasterCollection $postBody, $op $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); } + /** + * Delete a raster collection. (rasterCollections.delete) + * + * @param string $id + * The ID of the raster collection. Only the raster collection creator or project owner are + * permitted to delete. If the rastor collection is included in a layer, the request will fail. + * Remove the raster collection from all layers prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } /** * Return metadata for a particular raster collection. (rasterCollections.get) * @@ -1291,6 +1592,8 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of @@ -1321,6 +1624,20 @@ public function listRasterCollections($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_RastercollectionsListResponse"); } + /** + * Mutate a raster collection asset. (rasterCollections.patch) + * + * @param string $id + * The ID of the raster collection. + * @param Google_RasterCollection $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } /** * Process a raster collection asset. (rasterCollections.process) * @@ -1433,6 +1750,8 @@ public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRast * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1472,37 +1791,66 @@ public function listRasterCollectionsRasters($id, $optParams = array()) class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource { + /** + * Delete a raster. (rasters.delete) + * + * @param string $id + * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the + * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior + * to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } /** * Return metadata for a single raster. (rasters.get) * * @param string $id * The ID of the raster. * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Image + * @return Google_Service_MapsEngine_Raster */ public function get($id, $optParams = array()) { $params = array('id' => $id); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Image"); + return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); } /** - * Create a skeleton raster asset for upload. (rasters.upload) + * Mutate a raster asset. (rasters.patch) * - * @param Google_Image $postBody + * @param string $id + * The ID of the raster. + * @param Google_Raster $postBody * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Image */ - public function upload(Google_Service_MapsEngine_Image $postBody, $optParams = array()) + public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('id' => $id, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Image"); + return $this->call('patch', array($params)); } -} - -/** - * The "files" collection of methods. + /** + * Create a skeleton raster asset for upload. (rasters.upload) + * + * @param Google_Raster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Raster + */ + public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); + } +} + +/** + * The "files" collection of methods. * Typical usage is: * * $mapsengineService = new Google_Service_MapsEngine(...); @@ -1586,6 +1934,21 @@ public function create(Google_Service_MapsEngine_Table $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); } + /** + * Delete a table. (tables.delete) + * + * @param string $id + * The ID of the table. Only the table creator or project owner are permitted to delete. If the + * table is included in a layer, the request will fail. Remove it from all layers prior to + * deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } /** * Return metadata for a particular table, including the schema. (tables.get) * @@ -1614,6 +1977,8 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of @@ -1644,6 +2009,20 @@ public function listTables($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); } + /** + * Mutate a table asset. (tables.patch) + * + * @param string $id + * The ID of the table. + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } /** * Create a placeholder table asset to which table files can be uploaded. Once * the placeholder has been created, files are uploaded to the @@ -1912,6 +2291,7 @@ class Google_Service_MapsEngine_Asset extends Google_Collection public $bbox; public $creationTime; public $description; + public $etag; public $id; public $lastModifiedTime; public $name; @@ -1950,6 +2330,16 @@ 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; @@ -2557,177 +2947,6 @@ public function getName() } } -class Google_Service_MapsEngine_Image extends Google_Collection -{ - protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; - protected $acquisitionTimeDataType = ''; - public $attribution; - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $maskType; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; - - public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) - { - $this->acquisitionTime = $acquisitionTime; - } - - public function getAcquisitionTime() - { - return $this->acquisitionTime; - } - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - public function setFiles($files) - { - $this->files = $files; - } - - public function getFiles() - { - return $this->files; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - - public function setMaskType($maskType) - { - $this->maskType = $maskType; - } - - public function getMaskType() - { - return $this->maskType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - - public function getRasterType() - { - return $this->rasterType; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - class Google_Service_MapsEngine_LabelStyle extends Google_Model { public $color; @@ -2819,6 +3038,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection protected $datasourcesDataType = 'array'; public $description; public $draftAccessList; + public $etag; public $id; public $lastModifiedTime; public $name; @@ -2889,6 +3109,16 @@ public function getDraftAccessList() return $this->draftAccessList; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setId($id) { $this->id = $id; @@ -3094,6 +3324,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $defaultViewport; public $description; public $draftAccessList; + public $etag; public $id; public $lastModifiedTime; public $name; @@ -3162,6 +3393,16 @@ public function getDraftAccessList() return $this->draftAccessList; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setId($id) { $this->id = $id; @@ -3642,16 +3883,45 @@ class Google_Service_MapsEngine_PublishResponse extends Google_Model class Google_Service_MapsEngine_Raster extends Google_Collection { + protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; + protected $acquisitionTimeDataType = ''; + public $attribution; public $bbox; public $creationTime; public $description; + public $draftAccessList; + public $etag; + protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; + protected $filesDataType = 'array'; public $id; public $lastModifiedTime; + public $maskType; public $name; + public $processingStatus; public $projectId; public $rasterType; public $tags; + public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) + { + $this->acquisitionTime = $acquisitionTime; + } + + public function getAcquisitionTime() + { + return $this->acquisitionTime; + } + + public function setAttribution($attribution) + { + $this->attribution = $attribution; + } + + public function getAttribution() + { + return $this->attribution; + } + public function setBbox($bbox) { $this->bbox = $bbox; @@ -3682,6 +3952,36 @@ public function getDescription() return $this->description; } + public function setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + + public function setFiles($files) + { + $this->files = $files; + } + + public function getFiles() + { + return $this->files; + } + public function setId($id) { $this->id = $id; @@ -3702,6 +4002,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setMaskType($maskType) + { + $this->maskType = $maskType; + } + + public function getMaskType() + { + return $this->maskType; + } + public function setName($name) { $this->name = $name; @@ -3712,6 +4022,16 @@ public function getName() return $this->name; } + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + public function setProjectId($projectId) { $this->projectId = $projectId; @@ -3750,6 +4070,7 @@ class Google_Service_MapsEngine_RasterCollection extends Google_Collection public $creationTime; public $description; public $draftAccessList; + public $etag; public $id; public $lastModifiedTime; public $mosaic; @@ -3809,6 +4130,16 @@ public function getDraftAccessList() return $this->draftAccessList; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setId($id) { $this->id = $id; @@ -3890,6 +4221,109 @@ public function getTags() } } +class Google_Service_MapsEngine_RasterCollectionRaster extends Google_Collection +{ + public $bbox; + public $creationTime; + public $description; + public $id; + public $lastModifiedTime; + public $name; + public $projectId; + public $rasterType; + public $tags; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + 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 setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setRasterType($rasterType) + { + $this->rasterType = $rasterType; + } + + public function getRasterType() + { + return $this->rasterType; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection { public $ids; @@ -3960,7 +4394,7 @@ public function getRasterCollections() class Google_Service_MapsEngine_RastersListResponse extends Google_Collection { public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_Raster'; + protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionRaster'; protected $rastersDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -4028,6 +4462,7 @@ class Google_Service_MapsEngine_Table extends Google_Collection public $creationTime; public $description; public $draftAccessList; + public $etag; protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; protected $filesDataType = 'array'; public $id; @@ -4081,6 +4516,16 @@ public function getDraftAccessList() return $this->draftAccessList; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setFiles($files) { $this->files = $files; From 3535e3a491ff737ff5872af4e1901639083841bf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 1 Jul 2014 00:29:23 -0700 Subject: [PATCH 0037/1274] Updated Compute.php --- src/Google/Service/Compute.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index f65cf7296..a087c0ada 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -7984,6 +7984,8 @@ class Google_Service_Compute_Image extends Google_Collection protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; protected $rawDiskDataType = ''; public $selfLink; + public $sourceDisk; + public $sourceDiskId; public $sourceType; public $status; @@ -8097,6 +8099,26 @@ public function getSelfLink() return $this->selfLink; } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + + public function getSourceDisk() + { + return $this->sourceDisk; + } + + public function setSourceDiskId($sourceDiskId) + { + $this->sourceDiskId = $sourceDiskId; + } + + public function getSourceDiskId() + { + return $this->sourceDiskId; + } + public function setSourceType($sourceType) { $this->sourceType = $sourceType; From be829b4d33896ce1354972502f8d1837e01f72e8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 1 Jul 2014 00:29:23 -0700 Subject: [PATCH 0038/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 43 ++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index d4c510590..56ee55de4 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -186,6 +186,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxTimestamp' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'string', @@ -613,6 +617,8 @@ public function get($datasetId, $optParams = array()) * @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 maxTimestamp + * * @opt_param string maxResults * The maximum number of results returned by this request. * @opt_param string projectId @@ -797,7 +803,8 @@ public function create(Google_Service_Genomics_Readset $postBody, $optParams = a * Deletes a readset. (readsets.delete) * * @param string $readsetId - * The ID of the readset to be deleted. + * The ID of the readset to be deleted. The caller must have WRITE permissions to the dataset + * associated with this readset. * @param array $optParams Optional parameters. */ public function delete($readsetId, $optParams = array()) @@ -807,7 +814,11 @@ public function delete($readsetId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Exports readsets to a file. (readsets.export) + * Exports readsets to a BAM file in Google Cloud Storage. Note that currently + * there may be some differences between exported BAM files and the original BAM + * file at the time of import. In particular, comments in the input file header + * will not be preserved, and some custom tags will be converted to strings. + * (readsets.export) * * @param Google_ExportReadsetsRequest $postBody * @param array $optParams Optional parameters. @@ -834,8 +845,10 @@ public function get($readsetId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Readset"); } /** - * Creates readsets by asynchronously importing the provided information. - * (readsets.import) + * Creates readsets by asynchronously importing the provided information. Note + * that currently comments in the input file header are not imported and some + * custom tags will be converted to strings, rather than preserving tag types. + * The caller must have WRITE permissions to the dataset. (readsets.import) * * @param Google_ImportReadsetsRequest $postBody * @param array $optParams Optional parameters. @@ -2350,12 +2363,23 @@ public function getNextPageToken() class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { + public $maxResults; public $pageToken; public $readsetIds; public $sequenceEnd; public $sequenceName; public $sequenceStart; + public function setMaxResults($maxResults) + { + $this->maxResults = $maxResults; + } + + public function getMaxResults() + { + return $this->maxResults; + } + public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -2437,6 +2461,7 @@ public function getReads() class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection { public $datasetIds; + public $maxResults; public $name; public $pageToken; @@ -2450,6 +2475,16 @@ public function getDatasetIds() return $this->datasetIds; } + public function setMaxResults($maxResults) + { + $this->maxResults = $maxResults; + } + + public function getMaxResults() + { + return $this->maxResults; + } + public function setName($name) { $this->name = $name; From b875857f9861fcf83c3125e3f93a18e8d0ba7185 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 1 Jul 2014 00:29:24 -0700 Subject: [PATCH 0039/1274] Updated CivicInfo.php --- src/Google/Service/CivicInfo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 5b7a6379e..a33b900e6 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -217,8 +217,9 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R { /** - * Looks up political geography and (optionally) representative information - * based on an address. (representatives.representativeInfoQuery) + * Looks up political geography and representative information based on an + * address or Open Civic Data division identifier. + * (representatives.representativeInfoQuery) * * @param Google_RepresentativeInfoRequest $postBody * @param array $optParams Optional parameters. From 360c79a0955a1189c5374f8e79b21c62a3174a12 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 1 Jul 2014 00:29:24 -0700 Subject: [PATCH 0040/1274] Updated Datastore.php --- src/Google/Service/Datastore.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index 8119e3945..1f7bdf2ca 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -321,11 +321,22 @@ public function getTransaction() class Google_Service_Datastore_CommitRequest extends Google_Model { + public $ignoreReadOnly; public $mode; protected $mutationType = 'Google_Service_Datastore_Mutation'; protected $mutationDataType = ''; public $transaction; + public function setIgnoreReadOnly($ignoreReadOnly) + { + $this->ignoreReadOnly = $ignoreReadOnly; + } + + public function getIgnoreReadOnly() + { + return $this->ignoreReadOnly; + } + public function setMode($mode) { $this->mode = $mode; From 4ebf1f9f9c942740700d57c9551f4a1b28fb71cb Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 1 Jul 2014 09:40:17 -0700 Subject: [PATCH 0041/1274] Fix refreshing id token --- src/Google/Auth/OAuth2.php | 3 +++ tests/general/ApiOAuth2Test.php | 37 ++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index b05448a57..14fdf0ba6 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -320,6 +320,9 @@ private function refreshTokenRequest($params) throw new Google_Auth_Exception("Invalid token format"); } + if (isset($token['id_token'])) { + $this->token['id_token'] = $token['id_token']; + } $this->token['access_token'] = $token['access_token']; $this->token['expires_in'] = $token['expires_in']; $this->token['created'] = time(); diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 871049a3d..dc545738b 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -168,8 +168,43 @@ public function testValidateIdToken() /** * Test for revoking token when none is opened */ - public function testRevokeWhenNoTokenExists() { + public function testRevokeWhenNoTokenExists() + { $client = new Google_Client(); $this->assertFalse($client->revokeToken()); } + + /** + * Test that the ID token is properly refreshed. + */ + public function testRefreshTokenSetsValues() + { + $client = new Google_Client(); + $response_data = json_encode(array( + 'access_token' => "ACCESS_TOKEN", + 'id_token' => "ID_TOKEN", + 'expires_in' => "12345", + )); + $response = $this->getMock("Google_Http_Request", array(), array('')); + $response->expects($this->any()) + ->method('getResponseHttpCode') + ->will($this->returnValue(200)); + $response->expects($this->any()) + ->method('getResponseBody') + ->will($this->returnValue($response_data)); + $io = $this->getMock("Google_IO_Stream", array(), array($client)); + $io->expects($this->any()) + ->method('makeRequest') + ->will($this->returnCallback(function($request) use (&$token, $response) { + $elements = $request->getPostBody(); + $this->assertEquals($elements['grant_type'], "refresh_token"); + $this->assertEquals($elements['refresh_token'], "REFRESH_TOKEN"); + return $response; + })); + $client->setIo($io); + $oauth = new Google_Auth_OAuth2($client); + $oauth->refreshToken("REFRESH_TOKEN"); + $token = json_decode($oauth->getAccessToken(), true); + $this->assertEquals($token['id_token'], "ID_TOKEN"); + } } From e4d98e64151bd7e5f3211ab6f3b80a53c0f3f7d8 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 1 Jul 2014 09:55:35 -0700 Subject: [PATCH 0042/1274] Use static assert in closure. --- tests/general/ApiOAuth2Test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index dc545738b..76d580096 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -197,8 +197,10 @@ public function testRefreshTokenSetsValues() ->method('makeRequest') ->will($this->returnCallback(function($request) use (&$token, $response) { $elements = $request->getPostBody(); - $this->assertEquals($elements['grant_type'], "refresh_token"); - $this->assertEquals($elements['refresh_token'], "REFRESH_TOKEN"); + PHPUnit_Framework_TestCase::assertEquals($elements['grant_type'], + "refresh_token"); + PHPUnit_Framework_TestCase::assertEquals($elements['refresh_token'], + "REFRESH_TOKEN"); return $response; })); $client->setIo($io); From 08d66244b93a8dba6fe7c7cb8c62448cd2102337 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 3 Jul 2014 03:31:40 -0400 Subject: [PATCH 0043/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index f2958f889..4041b904c 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -2011,13 +2011,15 @@ public function getWriteDisposition() } } -class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model +class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { public $createDisposition; protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; protected $sourceTableDataType = ''; + protected $sourceTablesType = 'Google_Service_Bigquery_TableReference'; + protected $sourceTablesDataType = 'array'; public $writeDisposition; public function setCreateDisposition($createDisposition) @@ -2050,6 +2052,16 @@ public function getSourceTable() return $this->sourceTable; } + public function setSourceTables($sourceTables) + { + $this->sourceTables = $sourceTables; + } + + public function getSourceTables() + { + return $this->sourceTables; + } + public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; From e2090308ff327007ccb0afe6e80894b4f45e7ab6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 4 Jul 2014 03:32:47 -0400 Subject: [PATCH 0044/1274] Updated Content.php --- src/Google/Service/Content.php | 129 ++++++++++++++++++++++++--------- 1 file changed, 93 insertions(+), 36 deletions(-) diff --git a/src/Google/Service/Content.php b/src/Google/Service/Content.php index 0e42eaf95..98e86c579 100644 --- a/src/Google/Service/Content.php +++ b/src/Google/Service/Content.php @@ -527,8 +527,8 @@ class Google_Service_Content_Accounts_Resource extends Google_Service_Resource { /** - * Retrieve, insert, update, and delete multiple Merchant Center (sub-)accounts - * in a single request. (accounts.custombatch) + * Retrieves, inserts, updates, and deletes multiple Merchant Center + * (sub-)accounts in a single request. (accounts.custombatch) * * @param Google_AccountsCustomBatchRequest $postBody * @param array $optParams Optional parameters. @@ -541,7 +541,7 @@ public function custombatch(Google_Service_Content_AccountsCustomBatchRequest $p return $this->call('custombatch', array($params), "Google_Service_Content_AccountsCustomBatchResponse"); } /** - * Delete a Merchant Center sub-account. (accounts.delete) + * Deletes a Merchant Center sub-account. (accounts.delete) * * @param string $merchantId * The ID of the managing account. @@ -556,7 +556,7 @@ public function delete($merchantId, $accountId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Retrieve a Merchant Center account. (accounts.get) + * Retrieves a Merchant Center account. (accounts.get) * * @param string $merchantId * The ID of the managing account. @@ -572,7 +572,7 @@ public function get($merchantId, $accountId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_Account"); } /** - * Create a Merchant Center sub-account. (accounts.insert) + * Creates a Merchant Center sub-account. (accounts.insert) * * @param string $merchantId * The ID of the managing account. @@ -587,7 +587,7 @@ public function insert($merchantId, Google_Service_Content_Account $postBody, $o return $this->call('insert', array($params), "Google_Service_Content_Account"); } /** - * List the sub-accounts in your Merchant Center account. + * Lists the sub-accounts in your Merchant Center account. * (accounts.listAccounts) * * @param string $merchantId @@ -607,7 +607,7 @@ public function listAccounts($merchantId, $optParams = array()) return $this->call('list', array($params), "Google_Service_Content_AccountsListResponse"); } /** - * Update a Merchant Center account. This method supports patch semantics. + * Updates a Merchant Center account. This method supports patch semantics. * (accounts.patch) * * @param string $merchantId @@ -625,7 +625,7 @@ public function patch($merchantId, $accountId, Google_Service_Content_Account $p return $this->call('patch', array($params), "Google_Service_Content_Account"); } /** - * Update a Merchant Center account. (accounts.update) + * Updates a Merchant Center account. (accounts.update) * * @param string $merchantId * The ID of the managing account. @@ -668,7 +668,7 @@ public function custombatch(Google_Service_Content_AccountstatusesCustomBatchReq return $this->call('custombatch', array($params), "Google_Service_Content_AccountstatusesCustomBatchResponse"); } /** - * Retrieve the status of a Merchant Center account. (accountstatuses.get) + * Retrieves the status of a Merchant Center account. (accountstatuses.get) * * @param string $merchantId * The ID of the managing account. @@ -684,7 +684,7 @@ public function get($merchantId, $accountId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_AccountStatus"); } /** - * List the statuses of the sub-accounts in your Merchant Center account. + * Lists the statuses of the sub-accounts in your Merchant Center account. * (accountstatuses.listAccountstatuses) * * @param string $merchantId @@ -743,7 +743,7 @@ public function custombatch(Google_Service_Content_DatafeedsCustomBatchRequest $ return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedsCustomBatchResponse"); } /** - * Delete a datafeed from your Merchant Center account. (datafeeds.delete) + * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) * * @param string $merchantId * @@ -758,7 +758,7 @@ public function delete($merchantId, $datafeedId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Retrieve a datafeed from your Merchant Center account. (datafeeds.get) + * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) * * @param string $merchantId * @@ -774,7 +774,7 @@ public function get($merchantId, $datafeedId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_Datafeed"); } /** - * Register a datafeed against your Merchant Center account. (datafeeds.insert) + * Registers a datafeed with your Merchant Center account. (datafeeds.insert) * * @param string $merchantId * @@ -789,7 +789,8 @@ public function insert($merchantId, Google_Service_Content_Datafeed $postBody, $ return $this->call('insert', array($params), "Google_Service_Content_Datafeed"); } /** - * List the datafeeds in your Merchant Center account. (datafeeds.listDatafeeds) + * Lists the datafeeds in your Merchant Center account. + * (datafeeds.listDatafeeds) * * @param string $merchantId * @@ -803,8 +804,8 @@ public function listDatafeeds($merchantId, $optParams = array()) return $this->call('list', array($params), "Google_Service_Content_DatafeedsListResponse"); } /** - * Update a datafeed of your Merchant Center account. This method supports patch - * semantics. (datafeeds.patch) + * Updates a datafeed of your Merchant Center account. This method supports + * patch semantics. (datafeeds.patch) * * @param string $merchantId * @@ -821,7 +822,7 @@ public function patch($merchantId, $datafeedId, Google_Service_Content_Datafeed return $this->call('patch', array($params), "Google_Service_Content_Datafeed"); } /** - * Update a datafeed of your Merchant Center account. (datafeeds.update) + * Updates a datafeed of your Merchant Center account. (datafeeds.update) * * @param string $merchantId * @@ -877,7 +878,7 @@ public function custombatch(Google_Service_Content_DatafeedstatusesCustomBatchRe return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedstatusesCustomBatchResponse"); } /** - * Retrieve the status of a datafeed from your Merchant Center account. + * Retrieves the status of a datafeed from your Merchant Center account. * (datafeedstatuses.get) * * @param string $merchantId @@ -894,7 +895,7 @@ public function get($merchantId, $datafeedId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_DatafeedStatus"); } /** - * List the statuses of the datafeeds in your Merchant Center account. + * Lists the statuses of the datafeeds in your Merchant Center account. * (datafeedstatuses.listDatafeedstatuses) * * @param string $merchantId @@ -922,7 +923,7 @@ class Google_Service_Content_Inventory_Resource extends Google_Service_Resource { /** - * Update price and availability for multiple products or stores in a single + * Updates price and availability for multiple products or stores in a single * request. (inventory.custombatch) * * @param Google_InventoryCustomBatchRequest $postBody @@ -936,13 +937,14 @@ public function custombatch(Google_Service_Content_InventoryCustomBatchRequest $ return $this->call('custombatch', array($params), "Google_Service_Content_InventoryCustomBatchResponse"); } /** - * Update price and availability of a product in your Merchant Center account. + * Updates price and availability of a product in your Merchant Center account. * (inventory.set) * * @param string $merchantId * The ID of the managing account. * @param string $storeCode - * The code of the store for which to update price and availability. + * The code of the store for which to update price and availability. Use online to update price and + * availability of an online product. * @param string $productId * The ID of the product for which to update price and availability. * @param Google_InventorySetRequest $postBody @@ -969,7 +971,7 @@ class Google_Service_Content_Products_Resource extends Google_Service_Resource { /** - * Retrieve, insert, and delete multiple products in a single request. + * Retrieves, inserts, and deletes multiple products in a single request. * (products.custombatch) * * @param Google_ProductsCustomBatchRequest $postBody @@ -986,7 +988,7 @@ public function custombatch(Google_Service_Content_ProductsCustomBatchRequest $p return $this->call('custombatch', array($params), "Google_Service_Content_ProductsCustomBatchResponse"); } /** - * Delete a product from your Merchant Center account. (products.delete) + * Deletes a product from your Merchant Center account. (products.delete) * * @param string $merchantId * The ID of the managing account. @@ -1004,7 +1006,7 @@ public function delete($merchantId, $productId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Retrieve a product from your Merchant Center account. (products.get) + * Retrieves a product from your Merchant Center account. (products.get) * * @param string $merchantId * The ID of the managing account. @@ -1020,7 +1022,7 @@ public function get($merchantId, $productId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_Product"); } /** - * Upload products to your Merchant Center account. (products.insert) + * Uploads a product to your Merchant Center account. (products.insert) * * @param string $merchantId * The ID of the managing account. @@ -1038,7 +1040,7 @@ public function insert($merchantId, Google_Service_Content_Product $postBody, $o return $this->call('insert', array($params), "Google_Service_Content_Product"); } /** - * List the products in your Merchant Center account. (products.listProducts) + * Lists the products in your Merchant Center account. (products.listProducts) * * @param string $merchantId * The ID of the managing account. @@ -1070,7 +1072,7 @@ class Google_Service_Content_Productstatuses_Resource extends Google_Service_Res { /** - * Get the statuses of multiple products in a single request. + * Gets the statuses of multiple products in a single request. * (productstatuses.custombatch) * * @param Google_ProductstatusesCustomBatchRequest $postBody @@ -1084,7 +1086,7 @@ public function custombatch(Google_Service_Content_ProductstatusesCustomBatchReq return $this->call('custombatch', array($params), "Google_Service_Content_ProductstatusesCustomBatchResponse"); } /** - * Get the status of a product from your Merchant Center account. + * Gets the status of a product from your Merchant Center account. * (productstatuses.get) * * @param string $merchantId @@ -1101,7 +1103,7 @@ public function get($merchantId, $productId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Content_ProductStatus"); } /** - * List the statuses of the products in your Merchant Center account. + * Lists the statuses of the products in your Merchant Center account. * (productstatuses.listProductstatuses) * * @param string $merchantId @@ -3387,6 +3389,7 @@ class Google_Service_Content_Product extends Google_Collection public $adwordsRedirect; public $ageGroup; public $availability; + public $availabilityDate; public $brand; public $channel; public $color; @@ -3414,6 +3417,7 @@ class Google_Service_Content_Product extends Google_Collection public $imageLink; protected $installmentType = 'Google_Service_Content_ProductInstallment'; protected $installmentDataType = ''; + public $isBundle; public $itemGroupId; public $kind; public $link; @@ -3421,6 +3425,7 @@ class Google_Service_Content_Product extends Google_Collection protected $loyaltyPointsDataType = ''; public $material; public $merchantMultipackQuantity; + public $mobileLink; public $mpn; public $offerId; public $onlineOnly; @@ -3435,10 +3440,12 @@ class Google_Service_Content_Product extends Google_Collection protected $shippingDataType = 'array'; protected $shippingWeightType = 'Google_Service_Content_ProductShippingWeight'; protected $shippingWeightDataType = ''; + public $sizeSystem; + public $sizeType; public $sizes; public $targetCountry; - protected $taxType = 'Google_Service_Content_ProductTax'; - protected $taxDataType = ''; + protected $taxesType = 'Google_Service_Content_ProductTax'; + protected $taxesDataType = 'array'; public $title; public $unitPricingBaseMeasure; public $unitPricingMeasure; @@ -3516,6 +3523,16 @@ public function getAvailability() return $this->availability; } + public function setAvailabilityDate($availabilityDate) + { + $this->availabilityDate = $availabilityDate; + } + + public function getAvailabilityDate() + { + return $this->availabilityDate; + } + public function setBrand($brand) { $this->brand = $brand; @@ -3746,6 +3763,16 @@ public function getInstallment() return $this->installment; } + public function setIsBundle($isBundle) + { + $this->isBundle = $isBundle; + } + + public function getIsBundle() + { + return $this->isBundle; + } + public function setItemGroupId($itemGroupId) { $this->itemGroupId = $itemGroupId; @@ -3806,6 +3833,16 @@ public function getMerchantMultipackQuantity() return $this->merchantMultipackQuantity; } + public function setMobileLink($mobileLink) + { + $this->mobileLink = $mobileLink; + } + + public function getMobileLink() + { + return $this->mobileLink; + } + public function setMpn($mpn) { $this->mpn = $mpn; @@ -3906,6 +3943,26 @@ public function getShippingWeight() return $this->shippingWeight; } + public function setSizeSystem($sizeSystem) + { + $this->sizeSystem = $sizeSystem; + } + + public function getSizeSystem() + { + return $this->sizeSystem; + } + + public function setSizeType($sizeType) + { + $this->sizeType = $sizeType; + } + + public function getSizeType() + { + return $this->sizeType; + } + public function setSizes($sizes) { $this->sizes = $sizes; @@ -3926,14 +3983,14 @@ public function getTargetCountry() return $this->targetCountry; } - public function setTax(Google_Service_Content_ProductTax $tax) + public function setTaxes($taxes) { - $this->tax = $tax; + $this->taxes = $taxes; } - public function getTax() + public function getTaxes() { - return $this->tax; + return $this->taxes; } public function setTitle($title) From 32f82e74a86f170c4e21c5bca8c009429064382a Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 8 Jul 2014 18:11:57 +0200 Subject: [PATCH 0045/1274] Added HHVM to travis --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fd00f61fb..e272f788d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,13 @@ php: - 5.3 - 5.4 - 5.5 - + - 5.6 + - hhvm + +matrix: + allow_failures: + - php: hhvm + before_script: - composer install - echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini From 4e33037e0f9fa41d25e6978a5cb49f1f87942ae8 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 9 Jul 2014 13:19:30 +0200 Subject: [PATCH 0046/1274] Make sure the tests passes on HHVM --- .travis.yml | 8 ++------ tests/general/AuthTest.php | 14 +++++++------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index e272f788d..cb9199c7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,15 +14,11 @@ php: - 5.5 - 5.6 - hhvm - -matrix: - allow_failures: - - php: hhvm before_script: - composer install - - echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - - echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' + - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index 65928a04a..ac664de40 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -43,8 +43,8 @@ class AuthTest extends BaseTest { private $verifier; public function setUp() { - $this->signer = new Google_Signer_P12(file_get_contents(self::PRIVATE_KEY_FILE, true), "notasecret"); - $this->pem = file_get_contents(self::PUBLIC_KEY_FILE, true); + $this->signer = new Google_Signer_P12(file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), "notasecret"); + $this->pem = file_get_contents(__DIR__.'/'.self::PUBLIC_KEY_FILE, true); $this->verifier = new Google_Verifier_Pem($this->pem); } @@ -71,14 +71,14 @@ public function testDirectInject() { public function testCantOpenP12() { try { - new Google_Signer_P12(file_get_contents(self::PRIVATE_KEY_FILE, true), "badpassword"); + new Google_Signer_P12(file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), "badpassword"); $this->fail("Should have thrown"); } catch (Google_Auth_Exception $e) { $this->assertContains("mac verify failure", $e->getMessage()); } try { - new Google_Signer_P12(file_get_contents(self::PRIVATE_KEY_FILE, true) . "foo", "badpassword"); + new Google_Signer_P12(file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) . "foo", "badpassword"); $this->fail("Should have thrown"); } catch (Exception $e) { $this->assertContains("Unable to parse", $e->getMessage()); @@ -240,7 +240,7 @@ public function testNoAuth() { public function testAssertionCredentials() { $assertion = new Google_Auth_AssertionCredentials('name', 'scope', - file_get_contents(self::PRIVATE_KEY_FILE, true)); + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); $token = explode(".", $assertion->generateAssertion()); $this->assertEquals('{"typ":"JWT","alg":"RS256"}', base64_decode($token[0])); @@ -253,13 +253,13 @@ public function testAssertionCredentials() { $key = $assertion->getCacheKey(); $this->assertTrue($key != false); $assertion = new Google_Auth_AssertionCredentials('name2', 'scope', - file_get_contents(self::PRIVATE_KEY_FILE, true)); + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); $this->assertNotEquals($key, $assertion->getCacheKey()); } public function testVerifySignedJWT() { $assertion = new Google_Auth_AssertionCredentials('issuer', 'scope', - file_get_contents(self::PRIVATE_KEY_FILE, true)); + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); $client = $this->getClient(); $this->assertInstanceOf('Google_Auth_LoginTicket', $client->verifySignedJwt( From e5d1613212bbff5f9b2dc81450c8e0dc681e2c67 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 10 Jul 2014 00:39:20 -0700 Subject: [PATCH 0047/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 72 +++++++++++++++---------------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index b8d5e18f8..b6e952515 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -1252,9 +1252,7 @@ public function listLayers($optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); } /** - * Mutate a layer asset. Note that if a VectorStyle object is provided, it fully - * replaces the original VectorStyle present in the layer. This is a known - * issue. (layers.patch) + * Mutate a layer asset. (layers.patch) * * @param string $id * The ID of the layer. @@ -1616,13 +1614,13 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. - * @return Google_Service_MapsEngine_RastercollectionsListResponse + * @return Google_Service_MapsEngine_RasterCollectionsListResponse */ public function listRasterCollections($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RastercollectionsListResponse"); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); } /** * Mutate a raster collection asset. (rasterCollections.patch) @@ -1770,13 +1768,13 @@ public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRast * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. - * @return Google_Service_MapsEngine_RastersListResponse + * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse */ public function listRasterCollectionsRasters($id, $optParams = array()) { $params = array('id' => $id); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RastersListResponse"); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); } } @@ -4221,7 +4219,34 @@ public function getTags() } } -class Google_Service_MapsEngine_RasterCollectionRaster extends Google_Collection +class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection +{ + public $nextPageToken; + protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; + protected $rasterCollectionsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setRasterCollections($rasterCollections) + { + $this->rasterCollections = $rasterCollections; + } + + public function getRasterCollections() + { + return $this->rasterCollections; + } +} + +class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection { public $bbox; public $creationTime; @@ -4364,37 +4389,10 @@ class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse exte } -class Google_Service_MapsEngine_RastercollectionsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; - protected $rasterCollectionsDataType = 'array'; - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setRasterCollections($rasterCollections) - { - $this->rasterCollections = $rasterCollections; - } - - public function getRasterCollections() - { - return $this->rasterCollections; - } -} - -class Google_Service_MapsEngine_RastersListResponse extends Google_Collection +class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection { public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionRaster'; + protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; protected $rastersDataType = 'array'; public function setNextPageToken($nextPageToken) From b34619e2d39c4507597decbec08b17d4aa194d1a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 10 Jul 2014 00:39:21 -0700 Subject: [PATCH 0048/1274] Updated Blogger.php --- src/Google/Service/Blogger.php | 104 +++++++++++++++++++++++++++------ 1 file changed, 85 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 4014fed5a..3842bec19 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -138,6 +138,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'role' => array( 'location' => 'query', 'type' => 'string', @@ -414,6 +419,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'isDraft' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'list' => array( 'path' => 'blogs/{blogId}/pages', @@ -452,6 +461,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => 'blogs/{blogId}/pages/{pageId}', @@ -467,6 +484,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -906,7 +931,7 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource { /** - * Gets one blog by id. (blogs.get) + * Gets one blog by ID. (blogs.get) * * @param string $blogId * The ID of the blog to get. @@ -915,7 +940,7 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource * @opt_param string maxPosts * Maximum number of posts to pull back with the blog. * @opt_param string view - * Access level with which to view the blogs. Note that some fields require elevated access. + * Access level with which to view the blog. Note that some fields require elevated access. * @return Google_Service_Blogger_Blog */ public function get($blogId, $optParams = array()) @@ -932,7 +957,7 @@ public function get($blogId, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string view - * Access level with which to view the blogs. Note that some fields require elevated access. + * Access level with which to view the blog. Note that some fields require elevated access. * @return Google_Service_Blogger_Blog */ public function getByUrl($url, $optParams = array()) @@ -951,6 +976,9 @@ public function getByUrl($url, $optParams = array()) * * @opt_param bool fetchUserInfo * Whether the response is a list of blogs with per-user information instead of just blogs. + * @opt_param string status + * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is + * required to view deleted blogs. * @opt_param string role * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. @@ -981,7 +1009,7 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource * Marks a comment as not spam. (comments.approve) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $postId * The ID of the Post. * @param string $commentId @@ -996,10 +1024,10 @@ public function approve($blogId, $postId, $commentId, $optParams = array()) return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); } /** - * Delete a comment by id. (comments.delete) + * Delete a comment by ID. (comments.delete) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $postId * The ID of the Post. * @param string $commentId @@ -1013,7 +1041,7 @@ public function delete($blogId, $postId, $commentId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Gets one comment by id. (comments.get) + * Gets one comment by ID. (comments.get) * * @param string $blogId * ID of the blog to containing the comment. @@ -1097,7 +1125,7 @@ public function listByBlog($blogId, $optParams = array()) * Marks a comment as spam. (comments.markAsSpam) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $postId * The ID of the Post. * @param string $commentId @@ -1115,7 +1143,7 @@ public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) * Removes the content of a comment. (comments.removeContent) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $postId * The ID of the Post. * @param string $commentId @@ -1173,10 +1201,10 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource { /** - * Delete a page by id. (pages.delete) + * Delete a page by ID. (pages.delete) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $pageId * The ID of the Page. * @param array $optParams Optional parameters. @@ -1188,7 +1216,7 @@ public function delete($blogId, $pageId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Gets one blog page by id. (pages.get) + * Gets one blog page by ID. (pages.get) * * @param string $blogId * ID of the blog containing the page. @@ -1213,6 +1241,9 @@ public function get($blogId, $pageId, $optParams = array()) * ID of the blog to add the page to. * @param Google_Page $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool isDraft + * Whether to create the page as a draft (default: false). * @return Google_Service_Blogger_Page */ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1253,6 +1284,11 @@ public function listPages($blogId, $optParams = array()) * The ID of the Page. * @param Google_Page $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). * @return Google_Service_Blogger_Page */ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1270,6 +1306,11 @@ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $ * The ID of the Page. * @param Google_Page $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). * @return Google_Service_Blogger_Page */ public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1292,7 +1333,7 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou { /** - * Gets one post and user info pair, by post id and user id. The post user info + * Gets one post and user info pair, by post ID and user ID. The post user info * contains per-user information about the post, such as access rights, specific * to the user. (postUserInfos.get) * @@ -1368,10 +1409,10 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource { /** - * Delete a post by id. (posts.delete) + * Delete a post by ID. (posts.delete) * * @param string $blogId - * The Id of the Blog. + * The ID of the Blog. * @param string $postId * The ID of the Post. * @param array $optParams Optional parameters. @@ -1383,7 +1424,7 @@ public function delete($blogId, $postId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Get a post by id. (posts.get) + * Get a post by ID. (posts.get) * * @param string $blogId * ID of the blog to fetch the post from. @@ -1519,7 +1560,8 @@ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $ return $this->call('patch', array($params), "Google_Service_Blogger_Post"); } /** - * Publish a draft post. (posts.publish) + * Publishes a draft post, optionally at the specific time of the given + * publishDate parameter. (posts.publish) * * @param string $blogId * The ID of the Blog. @@ -1528,7 +1570,9 @@ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $ * @param array $optParams Optional parameters. * * @opt_param string publishDate - * The date and time to schedule the publishing of the Blog. + * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is + * given, the post is either published at the a previously saved schedule date (if present), or the + * current time. If a future date is given, the post will be scheduled to be published. * @return Google_Service_Blogger_Post */ public function publish($blogId, $postId, $optParams = array()) @@ -1617,7 +1661,7 @@ class Google_Service_Blogger_Users_Resource extends Google_Service_Resource { /** - * Gets one user by id. (users.get) + * Gets one user by ID. (users.get) * * @param string $userId * The ID of the user to get. @@ -1650,6 +1694,7 @@ class Google_Service_Blogger_Blog extends Google_Model protected $postsDataType = ''; public $published; public $selfLink; + public $status; public $updated; public $url; @@ -1753,6 +1798,16 @@ public function getSelfLink() return $this->selfLink; } + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + public function setUpdated($updated) { $this->updated = $updated; @@ -2623,6 +2678,7 @@ class Google_Service_Blogger_Post extends Google_Collection protected $locationType = 'Google_Service_Blogger_PostLocation'; protected $locationDataType = ''; public $published; + public $readerComments; protected $repliesType = 'Google_Service_Blogger_PostReplies'; protected $repliesDataType = ''; public $selfLink; @@ -2732,6 +2788,16 @@ public function getPublished() return $this->published; } + public function setReaderComments($readerComments) + { + $this->readerComments = $readerComments; + } + + public function getReaderComments() + { + return $this->readerComments; + } + public function setReplies(Google_Service_Blogger_PostReplies $replies) { $this->replies = $replies; From 7f3eabbc31225ec06155291e624fd482eff313f8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 10 Jul 2014 00:39:21 -0700 Subject: [PATCH 0049/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 56ee55de4..8389da320 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -31,10 +31,14 @@ */ class Google_Service_Genomics extends Google_Service { + /** View and manage your data in Google BigQuery. */ + const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; /** Manage your data in Google Cloud Storage. */ const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; /** View and manage Genomics data. */ const GENOMICS = "https://www.googleapis.com/auth/genomics"; + /** View Genomics data. */ + const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; public $beacons; public $callsets; @@ -186,10 +190,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxTimestamp' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'string', @@ -617,8 +617,6 @@ public function get($datasetId, $optParams = array()) * @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 maxTimestamp - * * @opt_param string maxResults * The maximum number of results returned by this request. * @opt_param string projectId @@ -756,12 +754,15 @@ public function get($readId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Read"); } /** - * Gets a list of reads for one or more readsets. SearchReads operates over a - * genomic coordinate space of sequence+position defined over the reference - * sequences to which the requested readsets are aligned. If a target positional - * range is specified, SearchReads returns all reads whose alignment to the - * reference genome overlap the range. A query which specifies only readset IDs - * yields all reads in those readsets, including unmapped reads. (reads.search) + * Gets a list of reads for one or more readsets. Reads search operates over a + * genomic coordinate space of reference sequence & position defined over the + * reference sequences to which the requested readsets are aligned. If a target + * positional range is specified, search returns all reads whose alignment to + * the reference genome overlap the range. A query which specifies only readset + * IDs yields all reads in those readsets, including unmapped reads. All reads + * returned (including reads on subsequent pages) are ordered by genomic + * coordinate (reference sequence & position). Reads with equivalent genomic + * coordinates are returned in a deterministic order. (reads.search) * * @param Google_SearchReadsRequest $postBody * @param array $optParams Optional parameters. From 51dae502164879ed29311e750a8f2f2ad817025b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 10 Jul 2014 00:39:22 -0700 Subject: [PATCH 0050/1274] Updated PlusDomains.php --- src/Google/Service/PlusDomains.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index a873569e9..df3679d83 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -3562,8 +3562,19 @@ public function getValue() class Google_Service_PlusDomains_PersonImage extends Google_Model { + public $isDefault; public $url; + public function setIsDefault($isDefault) + { + $this->isDefault = $isDefault; + } + + public function getIsDefault() + { + return $this->isDefault; + } + public function setUrl($url) { $this->url = $url; From 913748ff9f452a1a6aea223ee472d2d1c6f95b7a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 10 Jul 2014 00:39:22 -0700 Subject: [PATCH 0051/1274] Updated Plus.php --- src/Google/Service/Plus.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 61710821a..cf628f190 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -3455,8 +3455,19 @@ public function getValue() class Google_Service_Plus_PersonImage extends Google_Model { + public $isDefault; public $url; + public function setIsDefault($isDefault) + { + $this->isDefault = $isDefault; + } + + public function getIsDefault() + { + return $this->isDefault; + } + public function setUrl($url) { $this->url = $url; From 8ffd93f266fb3597f13927d4d4e1ac442c90b9a3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 11 Jul 2014 03:40:35 -0400 Subject: [PATCH 0052/1274] Removed Blogger.php --- src/Google/Service/Blogger.php | 3381 -------------------------------- 1 file changed, 3381 deletions(-) delete mode 100644 src/Google/Service/Blogger.php diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php deleted file mode 100644 index 3842bec19..000000000 --- a/src/Google/Service/Blogger.php +++ /dev/null @@ -1,3381 +0,0 @@ - - * 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 -{ - /** Manage your Blogger account. */ - const BLOGGER = "https://www.googleapis.com/auth/blogger"; - /** View your Blogger account. */ - const BLOGGER_READONLY = "https://www.googleapis.com/auth/blogger.readonly"; - - public $blogUserInfos; - public $blogs; - public $comments; - public $pageViews; - public $pages; - public $postUserInfos; - public $posts; - public $users; - - - /** - * Constructs the internal representation of the Blogger service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'blogger/v3/'; - $this->version = 'v3'; - $this->serviceName = 'blogger'; - - $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( - $this, - $this->serviceName, - 'blogUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->blogs = new Google_Service_Blogger_Blogs_Resource( - $this, - $this->serviceName, - 'blogs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByUrl' => array( - 'path' => 'blogs/byurl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'url' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByUser' => array( - 'path' => 'users/{userId}/blogs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchUserInfo' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Blogger_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'approve' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByBlog' => array( - 'path' => 'blogs/{blogId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'markAsSpam' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeContent' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->pageViews = new Google_Service_Blogger_PageViews_Resource( - $this, - $this->serviceName, - 'pageViews', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}/pageviews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'range' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->pages = new Google_Service_Blogger_Pages_Resource( - $this, - $this->serviceName, - 'pages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( - $this, - $this->serviceName, - 'postUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->posts = new Google_Service_Blogger_Posts_Resource( - $this, - $this->serviceName, - 'posts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByPath' => array( - 'path' => 'blogs/{blogId}/posts/bypath', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'path' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'publishDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'revert' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/revert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'blogs/{blogId}/posts/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Blogger_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "blogUserInfos" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $blogUserInfos = $bloggerService->blogUserInfos; - * - */ -class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource -{ - - /** - * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) - * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. - * @param string $blogId - * The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxPosts - * Maximum number of posts to pull back with the blog. - * @return Google_Service_Blogger_BlogUserInfo - */ - public function get($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); - } -} - -/** - * The "blogs" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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. - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Blog"); - } - /** - * Retrieve a Blog by URL. (blogs.getByUrl) - * - * @param string $url - * The URL of the blog to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function getByUrl($url, $optParams = array()) - { - $params = array('url' => $url); - $params = array_merge($params, $optParams); - return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); - } - /** - * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) - * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchUserInfo - * Whether the response is a list of blogs with per-user information instead of just blogs. - * @opt_param string status - * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is - * required to view deleted blogs. - * @opt_param string role - * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the - * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. - * @opt_param string view - * Access level with which to view the blogs. Note that some fields require elevated access. - * @return Google_Service_Blogger_BlogList - */ - public function listByUser($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $comments = $bloggerService->comments; - * - */ -class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource -{ - - /** - * Marks a comment as not spam. (comments.approve) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as not spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function approve($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Delete a comment by ID. (comments.delete) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets one comment by ID. (comments.get) - * - * @param string $blogId - * ID of the blog to containing the comment. - * @param string $postId - * ID of the post to fetch posts from. - * @param string $commentId - * The ID of the comment to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * Access level for the requested comment (default: READER). Note that some comments will require - * elevated permissions, for example comments where the parent posts which is in a draft state, or - * comments that are pending moderation. - * @return Google_Service_Blogger_Comment - */ - public function get($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Retrieves the comments for a post, possibly filtered. (comments.listComments) - * - * @param string $blogId - * ID of the blog to fetch comments from. - * @param string $postId - * ID of the post to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string status - * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_CommentList - */ - public function listComments($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); - } - /** - * Retrieves the comments for a blog, across all posts, possibly filtered. - * (comments.listByBlog) - * - * @param string $blogId - * ID of the blog to fetch comments from. - * @param array $optParams Optional parameters. - * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. - * @return Google_Service_Blogger_CommentList - */ - public function listByBlog($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); - } - /** - * Marks a comment as spam. (comments.markAsSpam) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Removes the content of a comment. (comments.removeContent) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete content from. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function removeContent($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); - } -} - -/** - * The "pageViews" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $pageViews = $bloggerService->pageViews; - * - */ -class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource -{ - - /** - * Retrieve pageview stats for a Blog. (pageViews.get) - * - * @param string $blogId - * The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string range - * - * @return Google_Service_Blogger_Pageviews - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); - } -} - -/** - * The "pages" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $pages = $bloggerService->pages; - * - */ -class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource -{ - - /** - * Delete a page by ID. (pages.delete) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets one blog page by ID. (pages.get) - * - * @param string $blogId - * ID of the blog containing the page. - * @param string $pageId - * The ID of the page to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * - * @return Google_Service_Blogger_Page - */ - public function get($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Page"); - } - /** - * Add a page. (pages.insert) - * - * @param string $blogId - * ID of the blog to add the page to. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool isDraft - * Whether to create the page as a draft (default: false). - * @return Google_Service_Blogger_Page - */ - public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Page"); - } - /** - * Retrieves the pages for a blog, optionally including non-LIVE statuses. - * (pages.listPages) - * - * @param string $blogId - * ID of the blog to fetch pages from. - * @param array $optParams Optional parameters. - * - * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether to retrieve the Page bodies. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_PageList - */ - public function listPages($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PageList"); - } - /** - * Update a page. This method supports patch semantics. (pages.patch) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Page"); - } - /** - * Update a page. (pages.update) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Page"); - } -} - -/** - * The "postUserInfos" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $postUserInfos = $bloggerService->postUserInfos; - * - */ -class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource -{ - - /** - * Gets one post and user info pair, by post ID and user ID. The post user info - * contains per-user information about the post, such as access rights, specific - * to the user. (postUserInfos.get) - * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * The ID of the blog. - * @param string $postId - * The ID of the post to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @return Google_Service_Blogger_PostUserInfo - */ - public function get($userId, $blogId, $postId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); - } - /** - * Retrieves a list of post and post user info pairs, possibly filtered. The - * post user info contains per-user information about the post, such as access - * rights, specific to the user. (postUserInfos.listPostUserInfos) - * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort order applied to search results. Default is published. - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param string pageToken - * Continuation token if the request is paged. - * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether the body content of posts is included. Default is false. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_PostUserInfosList - */ - public function listPostUserInfos($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); - } -} - -/** - * The "posts" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Get a post by ID. (posts.get) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $postId - * The ID of the post - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody - * Whether the body content of the post is included (default: true). This should be set to false - * when the post bodies are not required, to help minimize traffic. - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included (default: false). - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_Post - */ - public function get($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Post"); - } - /** - * Retrieve a Post by Path. (posts.getByPath) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $path - * Path of the Post to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_Post - */ - public function getByPath($blogId, $path, $optParams = array()) - { - $params = array('blogId' => $blogId, 'path' => $path); - $params = array_merge($params, $optParams); - return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); - } - /** - * Add a post. (posts.insert) - * - * @param string $blogId - * ID of the blog to add the post to. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @opt_param bool isDraft - * Whether to create the post as a draft (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @return Google_Service_Blogger_Post - */ - public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Post"); - } - /** - * Retrieves a list of posts, possibly filtered. (posts.listPosts) - * - * @param string $blogId - * ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included. - * @opt_param string pageToken - * Continuation token if the request is paged. - * @opt_param string status - * Statuses to include in the results. - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require escalated - * access. - * @return Google_Service_Blogger_PostList - */ - public function listPosts($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostList"); - } - /** - * Update a post. This method supports patch semantics. (posts.patch) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @return Google_Service_Blogger_Post - */ - public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Post"); - } - /** - * Publishes a draft post, optionally at the specific time of the given - * publishDate parameter. (posts.publish) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param array $optParams Optional parameters. - * - * @opt_param string publishDate - * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is - * given, the post is either published at the a previously saved schedule date (if present), or the - * current time. If a future date is given, the post will be scheduled to be published. - * @return Google_Service_Blogger_Post - */ - public function publish($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Blogger_Post"); - } - /** - * Revert a published or scheduled post to draft state. (posts.revert) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Post - */ - public function revert($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('revert', array($params), "Google_Service_Blogger_Post"); - } - /** - * Search for a post. (posts.search) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $q - * Query terms to search this blog for matching posts. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. - * @return Google_Service_Blogger_PostList - */ - public function search($blogId, $q, $optParams = array()) - { - $params = array('blogId' => $blogId, 'q' => $q); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Blogger_PostList"); - } - /** - * Update a post. (posts.update) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @return Google_Service_Blogger_Post - */ - public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Post"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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); - return $this->call('get', array($params), "Google_Service_Blogger_User"); - } -} - - - - -class Google_Service_Blogger_Blog extends Google_Model -{ - public $customMetaData; - public $description; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_BlogLocale'; - protected $localeDataType = ''; - public $name; - protected $pagesType = 'Google_Service_Blogger_BlogPages'; - protected $pagesDataType = ''; - protected $postsType = 'Google_Service_Blogger_BlogPosts'; - protected $postsDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; - public $url; - - public function setCustomMetaData($customMetaData) - { - $this->customMetaData = $customMetaData; - } - - 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 setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - 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 $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; - protected $blogUserInfosDataType = 'array'; - protected $itemsType = 'Google_Service_Blogger_Blog'; - protected $itemsDataType = 'array'; - public $kind; - - public function setBlogUserInfos($blogUserInfos) - { - $this->blogUserInfos = $blogUserInfos; - } - - public function getBlogUserInfos() - { - return $this->blogUserInfos; - } - - 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_BlogPerUserInfo extends Google_Model -{ - public $blogId; - public $hasAdminAccess; - public $kind; - public $photosAlbumKey; - public $role; - public $userId; - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - - public function getBlogId() - { - return $this->blogId; - } - - public function setHasAdminAccess($hasAdminAccess) - { - $this->hasAdminAccess = $hasAdminAccess; - } - - public function getHasAdminAccess() - { - return $this->hasAdminAccess; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPhotosAlbumKey($photosAlbumKey) - { - $this->photosAlbumKey = $photosAlbumKey; - } - - public function getPhotosAlbumKey() - { - return $this->photosAlbumKey; - } - - public function setRole($role) - { - $this->role = $role; - } - - public function getRole() - { - return $this->role; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Blogger_BlogPosts extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - public $selfLink; - public $totalItems; - - 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_BlogUserInfo extends Google_Model -{ - protected $blogType = 'Google_Service_Blogger_Blog'; - protected $blogDataType = ''; - protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; - protected $blogUserInfoDataType = ''; - public $kind; - - public function setBlog(Google_Service_Blogger_Blog $blog) - { - $this->blog = $blog; - } - - public function getBlog() - { - return $this->blog; - } - - public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) - { - $this->blogUserInfo = $blogUserInfo; - } - - public function getBlogUserInfo() - { - return $this->blogUserInfo; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Blogger_Comment extends Google_Model -{ - protected $authorType = 'Google_Service_Blogger_CommentAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_CommentBlog'; - protected $blogDataType = ''; - public $content; - public $id; - protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; - protected $inReplyToDataType = ''; - public $kind; - protected $postType = 'Google_Service_Blogger_CommentPost'; - protected $postDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; - - 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 setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - 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 $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 $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 = ''; - protected $blogType = 'Google_Service_Blogger_PageBlog'; - protected $blogDataType = ''; - public $content; - public $id; - public $kind; - public $published; - public $selfLink; - public $status; - public $title; - public $updated; - public $url; - - public function setAuthor(Google_Service_Blogger_PageAuthor $author) - { - $this->author = $author; - } - - public function 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 setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function 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 $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 $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_Pageviews extends Google_Collection -{ - public $blogId; - protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; - protected $countsDataType = 'array'; - public $kind; - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - - public function getBlogId() - { - return $this->blogId; - } - - public function setCounts($counts) - { - $this->counts = $counts; - } - - public function getCounts() - { - return $this->counts; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Blogger_PageviewsCounts extends Google_Model -{ - public $count; - public $timeRange; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setTimeRange($timeRange) - { - $this->timeRange = $timeRange; - } - - public function getTimeRange() - { - return $this->timeRange; - } -} - -class Google_Service_Blogger_Post extends Google_Collection -{ - protected $authorType = 'Google_Service_Blogger_PostAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_PostBlog'; - protected $blogDataType = ''; - public $content; - public $customMetaData; - public $id; - protected $imagesType = 'Google_Service_Blogger_PostImages'; - protected $imagesDataType = 'array'; - public $kind; - public $labels; - protected $locationType = 'Google_Service_Blogger_PostLocation'; - protected $locationDataType = ''; - public $published; - public $readerComments; - protected $repliesType = 'Google_Service_Blogger_PostReplies'; - protected $repliesDataType = ''; - public $selfLink; - public $status; - public $title; - public $titleLink; - public $updated; - public $url; - - public function setAuthor(Google_Service_Blogger_PostAuthor $author) - { - $this->author = $author; - } - - public function 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 setImages($images) - { - $this->images = $images; - } - - public function getImages() - { - return $this->images; - } - - 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 setReaderComments($readerComments) - { - $this->readerComments = $readerComments; - } - - public function getReaderComments() - { - return $this->readerComments; - } - - 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 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 setTitleLink($titleLink) - { - $this->titleLink = $titleLink; - } - - public function getTitleLink() - { - return $this->titleLink; - } - - 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 $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_PostImages extends Google_Model -{ - public $url; - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_PostList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - 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_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_PostPerUserInfo extends Google_Model -{ - public $blogId; - public $hasEditAccess; - public $kind; - public $postId; - public $userId; - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - - public function getBlogId() - { - return $this->blogId; - } - - public function setHasEditAccess($hasEditAccess) - { - $this->hasEditAccess = $hasEditAccess; - } - - public function getHasEditAccess() - { - return $this->hasEditAccess; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPostId($postId) - { - $this->postId = $postId; - } - - public function getPostId() - { - return $this->postId; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Blogger_PostReplies extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Comment'; - protected $itemsDataType = 'array'; - public $selfLink; - public $totalItems; - - 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_PostUserInfo extends Google_Model -{ - public $kind; - protected $postType = 'Google_Service_Blogger_Post'; - protected $postDataType = ''; - protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; - protected $postUserInfoDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPost(Google_Service_Blogger_Post $post) - { - $this->post = $post; - } - - public function getPost() - { - return $this->post; - } - - public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) - { - $this->postUserInfo = $postUserInfo; - } - - public function getPostUserInfo() - { - return $this->postUserInfo; - } -} - -class Google_Service_Blogger_PostUserInfosList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - 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_Blogger_User extends Google_Model -{ - public $about; - protected $blogsType = 'Google_Service_Blogger_UserBlogs'; - protected $blogsDataType = ''; - public $created; - public $displayName; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_UserLocale'; - protected $localeDataType = ''; - public $selfLink; - public $url; - - public function setAbout($about) - { - $this->about = $about; - } - - public function 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; - } -} From fcd505880db16cc2d4f38d968fa362a8b0a5a4e3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 12 Jul 2014 00:41:31 -0700 Subject: [PATCH 0053/1274] Added service Blogger.php --- src/Google/Service/Blogger.php | 3381 ++++++++++++++++++++++++++++++++ 1 file changed, 3381 insertions(+) create mode 100644 src/Google/Service/Blogger.php diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php new file mode 100644 index 000000000..3842bec19 --- /dev/null +++ b/src/Google/Service/Blogger.php @@ -0,0 +1,3381 @@ + + * 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 +{ + /** Manage your Blogger account. */ + const BLOGGER = "https://www.googleapis.com/auth/blogger"; + /** View your Blogger account. */ + const BLOGGER_READONLY = "https://www.googleapis.com/auth/blogger.readonly"; + + public $blogUserInfos; + public $blogs; + public $comments; + public $pageViews; + public $pages; + public $postUserInfos; + public $posts; + public $users; + + + /** + * Constructs the internal representation of the Blogger service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'blogger/v3/'; + $this->version = 'v3'; + $this->serviceName = 'blogger'; + + $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( + $this, + $this->serviceName, + 'blogUserInfos', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}/blogs/{blogId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxPosts' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->blogs = new Google_Service_Blogger_Blogs_Resource( + $this, + $this->serviceName, + 'blogs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'blogs/{blogId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxPosts' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getByUrl' => array( + 'path' => 'blogs/byurl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'url' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listByUser' => array( + 'path' => 'users/{userId}/blogs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchUserInfo' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_Blogger_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'approve' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listByBlog' => array( + 'path' => 'blogs/{blogId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'markAsSpam' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'removeContent' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->pageViews = new Google_Service_Blogger_PageViews_Resource( + $this, + $this->serviceName, + 'pageViews', + array( + 'methods' => array( + 'get' => array( + 'path' => 'blogs/{blogId}/pageviews', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'range' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->pages = new Google_Service_Blogger_Pages_Resource( + $this, + $this->serviceName, + 'pages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'blogs/{blogId}/pages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'isDraft' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'blogs/{blogId}/pages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( + $this, + $this->serviceName, + 'postUserInfos', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'list' => array( + 'path' => 'users/{userId}/blogs/{blogId}/posts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->posts = new Google_Service_Blogger_Posts_Resource( + $this, + $this->serviceName, + 'posts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getByPath' => array( + 'path' => 'blogs/{blogId}/posts/bypath', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'path' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'blogs/{blogId}/posts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'isDraft' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'blogs/{blogId}/posts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'publish' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'publishDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'revert' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/revert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'blogs/{blogId}/posts/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_Blogger_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "blogUserInfos" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $blogUserInfos = $bloggerService->blogUserInfos; + * + */ +class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource +{ + + /** + * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) + * + * @param string $userId + * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the + * user's profile identifier. + * @param string $blogId + * The ID of the blog to get. + * @param array $optParams Optional parameters. + * + * @opt_param string maxPosts + * Maximum number of posts to pull back with the blog. + * @return Google_Service_Blogger_BlogUserInfo + */ + public function get($userId, $blogId, $optParams = array()) + { + $params = array('userId' => $userId, 'blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); + } +} + +/** + * The "blogs" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $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. + * @opt_param string view + * Access level with which to view the blog. Note that some fields require elevated access. + * @return Google_Service_Blogger_Blog + */ + public function get($blogId, $optParams = array()) + { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Blog"); + } + /** + * Retrieve a Blog by URL. (blogs.getByUrl) + * + * @param string $url + * The URL of the blog to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * Access level with which to view the blog. Note that some fields require elevated access. + * @return Google_Service_Blogger_Blog + */ + public function getByUrl($url, $optParams = array()) + { + $params = array('url' => $url); + $params = array_merge($params, $optParams); + return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); + } + /** + * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) + * + * @param string $userId + * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the + * user's profile identifier. + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchUserInfo + * Whether the response is a list of blogs with per-user information instead of just blogs. + * @opt_param string status + * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is + * required to view deleted blogs. + * @opt_param string role + * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the + * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. + * @opt_param string view + * Access level with which to view the blogs. Note that some fields require elevated access. + * @return Google_Service_Blogger_BlogList + */ + public function listByUser($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); + } +} + +/** + * The "comments" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $comments = $bloggerService->comments; + * + */ +class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource +{ + + /** + * Marks a comment as not spam. (comments.approve) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to mark as not spam. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function approve($blogId, $postId, $commentId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); + } + /** + * Delete a comment by ID. (comments.delete) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to delete. + * @param array $optParams Optional parameters. + */ + public function delete($blogId, $postId, $commentId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets one comment by ID. (comments.get) + * + * @param string $blogId + * ID of the blog to containing the comment. + * @param string $postId + * ID of the post to fetch posts from. + * @param string $commentId + * The ID of the comment to get. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * Access level for the requested comment (default: READER). Note that some comments will require + * elevated permissions, for example comments where the parent posts which is in a draft state, or + * comments that are pending moderation. + * @return Google_Service_Blogger_Comment + */ + public function get($blogId, $postId, $commentId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Comment"); + } + /** + * Retrieves the comments for a post, possibly filtered. (comments.listComments) + * + * @param string $blogId + * ID of the blog to fetch comments from. + * @param string $postId + * ID of the post to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string status + * + * @opt_param string startDate + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string maxResults + * Maximum number of comments to include in the result. + * @opt_param string pageToken + * Continuation token if request is paged. + * @opt_param bool fetchBodies + * Whether the body content of the comments is included. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_CommentList + */ + public function listComments($blogId, $postId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); + } + /** + * Retrieves the comments for a blog, across all posts, possibly filtered. + * (comments.listByBlog) + * + * @param string $blogId + * ID of the blog to fetch comments from. + * @param array $optParams Optional parameters. + * + * @opt_param string startDate + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string maxResults + * Maximum number of comments to include in the result. + * @opt_param string pageToken + * Continuation token if request is paged. + * @opt_param bool fetchBodies + * Whether the body content of the comments is included. + * @return Google_Service_Blogger_CommentList + */ + public function listByBlog($blogId, $optParams = array()) + { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); + } + /** + * Marks a comment as spam. (comments.markAsSpam) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to mark as spam. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); + } + /** + * Removes the content of a comment. (comments.removeContent) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to delete content from. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function removeContent($blogId, $postId, $commentId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); + } +} + +/** + * The "pageViews" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $pageViews = $bloggerService->pageViews; + * + */ +class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource +{ + + /** + * Retrieve pageview stats for a Blog. (pageViews.get) + * + * @param string $blogId + * The ID of the blog to get. + * @param array $optParams Optional parameters. + * + * @opt_param string range + * + * @return Google_Service_Blogger_Pageviews + */ + public function get($blogId, $optParams = array()) + { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); + } +} + +/** + * The "pages" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $pages = $bloggerService->pages; + * + */ +class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource +{ + + /** + * Delete a page by ID. (pages.delete) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param array $optParams Optional parameters. + */ + public function delete($blogId, $pageId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets one blog page by ID. (pages.get) + * + * @param string $blogId + * ID of the blog containing the page. + * @param string $pageId + * The ID of the page to get. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * + * @return Google_Service_Blogger_Page + */ + public function get($blogId, $pageId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Page"); + } + /** + * Add a page. (pages.insert) + * + * @param string $blogId + * ID of the blog to add the page to. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool isDraft + * Whether to create the page as a draft (default: false). + * @return Google_Service_Blogger_Page + */ + public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Blogger_Page"); + } + /** + * Retrieves the pages for a blog, optionally including non-LIVE statuses. + * (pages.listPages) + * + * @param string $blogId + * ID of the blog to fetch pages from. + * @param array $optParams Optional parameters. + * + * @opt_param string status + * + * @opt_param bool fetchBodies + * Whether to retrieve the Page bodies. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_PageList + */ + public function listPages($blogId, $optParams = array()) + { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PageList"); + } + /** + * Update a page. This method supports patch semantics. (pages.patch) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). + * @return Google_Service_Blogger_Page + */ + public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Blogger_Page"); + } + /** + * Update a page. (pages.update) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). + * @return Google_Service_Blogger_Page + */ + public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Blogger_Page"); + } +} + +/** + * The "postUserInfos" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $postUserInfos = $bloggerService->postUserInfos; + * + */ +class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource +{ + + /** + * Gets one post and user info pair, by post ID and user ID. The post user info + * contains per-user information about the post, such as access rights, specific + * to the user. (postUserInfos.get) + * + * @param string $userId + * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote + * marks) or the user's profile identifier. + * @param string $blogId + * The ID of the blog. + * @param string $postId + * The ID of the post to get. + * @param array $optParams Optional parameters. + * + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @return Google_Service_Blogger_PostUserInfo + */ + public function get($userId, $blogId, $postId, $optParams = array()) + { + $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); + } + /** + * Retrieves a list of post and post user info pairs, possibly filtered. The + * post user info contains per-user information about the post, such as access + * rights, specific to the user. (postUserInfos.listPostUserInfos) + * + * @param string $userId + * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote + * marks) or the user's profile identifier. + * @param string $blogId + * ID of the blog to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort order applied to search results. Default is published. + * @opt_param string startDate + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string labels + * Comma-separated list of labels to search for. + * @opt_param string maxResults + * Maximum number of posts to fetch. + * @opt_param string pageToken + * Continuation token if the request is paged. + * @opt_param string status + * + * @opt_param bool fetchBodies + * Whether the body content of posts is included. Default is false. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_PostUserInfosList + */ + public function listPostUserInfos($userId, $blogId, $optParams = array()) + { + $params = array('userId' => $userId, 'blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); + } +} + +/** + * The "posts" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $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); + return $this->call('delete', array($params)); + } + /** + * Get a post by ID. (posts.get) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $postId + * The ID of the post + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchBody + * Whether the body content of the post is included (default: true). This should be set to false + * when the post bodies are not required, to help minimize traffic. + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included (default: false). + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_Post + */ + public function get($blogId, $postId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Post"); + } + /** + * Retrieve a Post by Path. (posts.getByPath) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $path + * Path of the Post to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_Post + */ + public function getByPath($blogId, $path, $optParams = array()) + { + $params = array('blogId' => $blogId, 'path' => $path); + $params = array_merge($params, $optParams); + return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); + } + /** + * Add a post. (posts.insert) + * + * @param string $blogId + * ID of the blog to add the post to. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @opt_param bool isDraft + * Whether to create the post as a draft (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @return Google_Service_Blogger_Post + */ + public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Blogger_Post"); + } + /** + * Retrieves a list of posts, possibly filtered. (posts.listPosts) + * + * @param string $blogId + * ID of the blog to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results + * @opt_param string startDate + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string labels + * Comma-separated list of labels to search for. + * @opt_param string maxResults + * Maximum number of posts to fetch. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included. + * @opt_param string pageToken + * Continuation token if the request is paged. + * @opt_param string status + * Statuses to include in the results. + * @opt_param bool fetchBodies + * Whether the body content of posts is included (default: true). This should be set to false when + * the post bodies are not required, to help minimize traffic. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require escalated + * access. + * @return Google_Service_Blogger_PostList + */ + public function listPosts($blogId, $optParams = array()) + { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PostList"); + } + /** + * Update a post. This method supports patch semantics. (posts.patch) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the post is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the post is updated (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @opt_param string maxComments + * Maximum number of comments to retrieve with the returned post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @return Google_Service_Blogger_Post + */ + public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Blogger_Post"); + } + /** + * Publishes a draft post, optionally at the specific time of the given + * publishDate parameter. (posts.publish) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param array $optParams Optional parameters. + * + * @opt_param string publishDate + * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is + * given, the post is either published at the a previously saved schedule date (if present), or the + * current time. If a future date is given, the post will be scheduled to be published. + * @return Google_Service_Blogger_Post + */ + public function publish($blogId, $postId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Blogger_Post"); + } + /** + * Revert a published or scheduled post to draft state. (posts.revert) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Post + */ + public function revert($blogId, $postId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('revert', array($params), "Google_Service_Blogger_Post"); + } + /** + * Search for a post. (posts.search) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $q + * Query terms to search this blog for matching posts. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results + * @opt_param bool fetchBodies + * Whether the body content of posts is included (default: true). This should be set to false when + * the post bodies are not required, to help minimize traffic. + * @return Google_Service_Blogger_PostList + */ + public function search($blogId, $q, $optParams = array()) + { + $params = array('blogId' => $blogId, 'q' => $q); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Blogger_PostList"); + } + /** + * Update a post. (posts.update) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the post is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the post is updated (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @opt_param string maxComments + * Maximum number of comments to retrieve with the returned post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @return Google_Service_Blogger_Post + */ + public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) + { + $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Blogger_Post"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $bloggerService = new Google_Service_Blogger(...); + * $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); + return $this->call('get', array($params), "Google_Service_Blogger_User"); + } +} + + + + +class Google_Service_Blogger_Blog extends Google_Model +{ + public $customMetaData; + public $description; + public $id; + public $kind; + protected $localeType = 'Google_Service_Blogger_BlogLocale'; + protected $localeDataType = ''; + public $name; + protected $pagesType = 'Google_Service_Blogger_BlogPages'; + protected $pagesDataType = ''; + protected $postsType = 'Google_Service_Blogger_BlogPosts'; + protected $postsDataType = ''; + public $published; + public $selfLink; + public $status; + public $updated; + public $url; + + public function setCustomMetaData($customMetaData) + { + $this->customMetaData = $customMetaData; + } + + 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 setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + 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 $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; + protected $blogUserInfosDataType = 'array'; + protected $itemsType = 'Google_Service_Blogger_Blog'; + protected $itemsDataType = 'array'; + public $kind; + + public function setBlogUserInfos($blogUserInfos) + { + $this->blogUserInfos = $blogUserInfos; + } + + public function getBlogUserInfos() + { + return $this->blogUserInfos; + } + + 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_BlogPerUserInfo extends Google_Model +{ + public $blogId; + public $hasAdminAccess; + public $kind; + public $photosAlbumKey; + public $role; + public $userId; + + public function setBlogId($blogId) + { + $this->blogId = $blogId; + } + + public function getBlogId() + { + return $this->blogId; + } + + public function setHasAdminAccess($hasAdminAccess) + { + $this->hasAdminAccess = $hasAdminAccess; + } + + public function getHasAdminAccess() + { + return $this->hasAdminAccess; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPhotosAlbumKey($photosAlbumKey) + { + $this->photosAlbumKey = $photosAlbumKey; + } + + public function getPhotosAlbumKey() + { + return $this->photosAlbumKey; + } + + public function setRole($role) + { + $this->role = $role; + } + + public function getRole() + { + return $this->role; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_Blogger_BlogPosts extends Google_Collection +{ + protected $itemsType = 'Google_Service_Blogger_Post'; + protected $itemsDataType = 'array'; + public $selfLink; + public $totalItems; + + 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_BlogUserInfo extends Google_Model +{ + protected $blogType = 'Google_Service_Blogger_Blog'; + protected $blogDataType = ''; + protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; + protected $blogUserInfoDataType = ''; + public $kind; + + public function setBlog(Google_Service_Blogger_Blog $blog) + { + $this->blog = $blog; + } + + public function getBlog() + { + return $this->blog; + } + + public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) + { + $this->blogUserInfo = $blogUserInfo; + } + + public function getBlogUserInfo() + { + return $this->blogUserInfo; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Blogger_Comment extends Google_Model +{ + protected $authorType = 'Google_Service_Blogger_CommentAuthor'; + protected $authorDataType = ''; + protected $blogType = 'Google_Service_Blogger_CommentBlog'; + protected $blogDataType = ''; + public $content; + public $id; + protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; + protected $inReplyToDataType = ''; + public $kind; + protected $postType = 'Google_Service_Blogger_CommentPost'; + protected $postDataType = ''; + public $published; + public $selfLink; + public $status; + public $updated; + + 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 setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + 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 $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 $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 = ''; + protected $blogType = 'Google_Service_Blogger_PageBlog'; + protected $blogDataType = ''; + public $content; + public $id; + public $kind; + public $published; + public $selfLink; + public $status; + public $title; + public $updated; + public $url; + + public function setAuthor(Google_Service_Blogger_PageAuthor $author) + { + $this->author = $author; + } + + public function 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 setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setUpdated($updated) + { + $this->updated = $updated; + } + + public function getUpdated() + { + return $this->updated; + } + + public function 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 $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 $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_Pageviews extends Google_Collection +{ + public $blogId; + protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; + protected $countsDataType = 'array'; + public $kind; + + public function setBlogId($blogId) + { + $this->blogId = $blogId; + } + + public function getBlogId() + { + return $this->blogId; + } + + public function setCounts($counts) + { + $this->counts = $counts; + } + + public function getCounts() + { + return $this->counts; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Blogger_PageviewsCounts extends Google_Model +{ + public $count; + public $timeRange; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setTimeRange($timeRange) + { + $this->timeRange = $timeRange; + } + + public function getTimeRange() + { + return $this->timeRange; + } +} + +class Google_Service_Blogger_Post extends Google_Collection +{ + protected $authorType = 'Google_Service_Blogger_PostAuthor'; + protected $authorDataType = ''; + protected $blogType = 'Google_Service_Blogger_PostBlog'; + protected $blogDataType = ''; + public $content; + public $customMetaData; + public $id; + protected $imagesType = 'Google_Service_Blogger_PostImages'; + protected $imagesDataType = 'array'; + public $kind; + public $labels; + protected $locationType = 'Google_Service_Blogger_PostLocation'; + protected $locationDataType = ''; + public $published; + public $readerComments; + protected $repliesType = 'Google_Service_Blogger_PostReplies'; + protected $repliesDataType = ''; + public $selfLink; + public $status; + public $title; + public $titleLink; + public $updated; + public $url; + + public function setAuthor(Google_Service_Blogger_PostAuthor $author) + { + $this->author = $author; + } + + public function 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 setImages($images) + { + $this->images = $images; + } + + public function getImages() + { + return $this->images; + } + + 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 setReaderComments($readerComments) + { + $this->readerComments = $readerComments; + } + + public function getReaderComments() + { + return $this->readerComments; + } + + 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 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 setTitleLink($titleLink) + { + $this->titleLink = $titleLink; + } + + public function getTitleLink() + { + return $this->titleLink; + } + + 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 $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_PostImages extends Google_Model +{ + public $url; + + public function setUrl($url) + { + $this->url = $url; + } + + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Blogger_PostList extends Google_Collection +{ + protected $itemsType = 'Google_Service_Blogger_Post'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + 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_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_PostPerUserInfo extends Google_Model +{ + public $blogId; + public $hasEditAccess; + public $kind; + public $postId; + public $userId; + + public function setBlogId($blogId) + { + $this->blogId = $blogId; + } + + public function getBlogId() + { + return $this->blogId; + } + + public function setHasEditAccess($hasEditAccess) + { + $this->hasEditAccess = $hasEditAccess; + } + + public function getHasEditAccess() + { + return $this->hasEditAccess; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPostId($postId) + { + $this->postId = $postId; + } + + public function getPostId() + { + return $this->postId; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_Blogger_PostReplies extends Google_Collection +{ + protected $itemsType = 'Google_Service_Blogger_Comment'; + protected $itemsDataType = 'array'; + public $selfLink; + public $totalItems; + + 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_PostUserInfo extends Google_Model +{ + public $kind; + protected $postType = 'Google_Service_Blogger_Post'; + protected $postDataType = ''; + protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; + protected $postUserInfoDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPost(Google_Service_Blogger_Post $post) + { + $this->post = $post; + } + + public function getPost() + { + return $this->post; + } + + public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) + { + $this->postUserInfo = $postUserInfo; + } + + public function getPostUserInfo() + { + return $this->postUserInfo; + } +} + +class Google_Service_Blogger_PostUserInfosList extends Google_Collection +{ + protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + 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_Blogger_User extends Google_Model +{ + public $about; + protected $blogsType = 'Google_Service_Blogger_UserBlogs'; + protected $blogsDataType = ''; + public $created; + public $displayName; + public $id; + public $kind; + protected $localeType = 'Google_Service_Blogger_UserLocale'; + protected $localeDataType = ''; + public $selfLink; + public $url; + + public function setAbout($about) + { + $this->about = $about; + } + + public function 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; + } +} From cfb1eeac62d0c738534975e18ddb1ee06dd9c499 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 15 Jul 2014 00:44:41 -0700 Subject: [PATCH 0054/1274] Added service Autoscaler.php --- src/Google/Service/Autoscaler.php | 1069 +++++++++++++++++++++++++++++ 1 file changed, 1069 insertions(+) create mode 100644 src/Google/Service/Autoscaler.php diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php new file mode 100644 index 000000000..0a7939f48 --- /dev/null +++ b/src/Google/Service/Autoscaler.php @@ -0,0 +1,1069 @@ + + * The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Autoscaler extends Google_Service +{ + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + + public $autoscalers; + public $zoneOperations; + + + /** + * Constructs the internal representation of the Autoscaler service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'autoscaler/v1beta2/'; + $this->version = 'v1beta2'; + $this->serviceName = 'autoscaler'; + + $this->autoscalers = new Google_Service_Autoscaler_Autoscalers_Resource( + $this, + $this->serviceName, + 'autoscalers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Autoscaler_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "autoscalers" collection of methods. + * Typical usage is: + * + * $autoscalerService = new Google_Service_Autoscaler(...); + * $autoscalers = $autoscalerService->autoscalers; + * + */ +class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified Autoscaler resource. (autoscalers.delete) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function delete($project, $zone, $autoscaler, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); + } + /** + * Gets the specified Autoscaler resource. (autoscalers.get) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Autoscaler + */ + public function get($project, $zone, $autoscaler, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); + } + /** + * Adds new Autoscaler resource. (autoscalers.insert) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); + } + /** + * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * + * @opt_param string pageToken + * + * @opt_param string maxResults + * + * @return Google_Service_Autoscaler_AutoscalerListResponse + */ + public function listAutoscalers($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); + } + /** + * Update the entire content of the Autoscaler resource. This method supports + * patch semantics. (autoscalers.patch) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); + } + /** + * Update the entire content of the Autoscaler resource. (autoscalers.update) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Autoscaler_Operation"); + } +} + +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $autoscalerService = new Google_Service_Autoscaler(...); + * $zoneOperations = $autoscalerService->zoneOperations; + * + */ +class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified zone-specific operation resource. + * (zoneOperations.delete) + * + * @param string $project + * + * @param string $zone + * + * @param string $operation + * + * @param array $optParams Optional parameters. + */ + public function delete($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) + * + * @param string $project + * + * @param string $zone + * + * @param string $operation + * + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Autoscaler_Operation"); + } + /** + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project + * + * @param string $zone + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * + * @opt_param string pageToken + * + * @opt_param string maxResults + * + * @return Google_Service_Autoscaler_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList"); + } +} + + + + +class Google_Service_Autoscaler_Autoscaler extends Google_Model +{ + protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy'; + protected $autoscalingPolicyDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $name; + public $selfLink; + public $target; + + public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy) + { + $this->autoscalingPolicy = $autoscalingPolicy; + } + + public function getAutoscalingPolicy() + { + return $this->autoscalingPolicy; + } + + 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 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 setTarget($target) + { + $this->target = $target; + } + + public function getTarget() + { + return $this->target; + } +} + +class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection +{ + protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; + protected $itemsDataType = 'array'; + public $nextPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Model +{ + public $coolDownPeriodSec; + protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; + protected $cpuUtilizationDataType = ''; + public $maxNumReplicas; + public $minNumReplicas; + + public function setCoolDownPeriodSec($coolDownPeriodSec) + { + $this->coolDownPeriodSec = $coolDownPeriodSec; + } + + public function getCoolDownPeriodSec() + { + return $this->coolDownPeriodSec; + } + + public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization) + { + $this->cpuUtilization = $cpuUtilization; + } + + public function getCpuUtilization() + { + return $this->cpuUtilization; + } + + public function setMaxNumReplicas($maxNumReplicas) + { + $this->maxNumReplicas = $maxNumReplicas; + } + + public function getMaxNumReplicas() + { + return $this->maxNumReplicas; + } + + public function setMinNumReplicas($minNumReplicas) + { + $this->minNumReplicas = $minNumReplicas; + } + + public function getMinNumReplicas() + { + return $this->minNumReplicas; + } +} + +class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model +{ + public $utilizationTarget; + + public function setUtilizationTarget($utilizationTarget) + { + $this->utilizationTarget = $utilizationTarget; + } + + public function getUtilizationTarget() + { + return $this->utilizationTarget; + } +} + +class Google_Service_Autoscaler_Operation extends Google_Collection +{ + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Autoscaler_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + 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_Autoscaler_OperationError $error) + { + $this->error = $error; + } + + public function getError() + { + return $this->error; + } + + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + + public function getInsertTime() + { + return $this->insertTime; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + + public function getOperationType() + { + return $this->operationType; + } + + public function setProgress($progress) + { + $this->progress = $progress; + } + + public function getProgress() + { + return $this->progress; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function getStartTime() + { + return $this->startTime; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + + public function getStatusMessage() + { + return $this->statusMessage; + } + + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + + public function getTargetId() + { + return $this->targetId; + } + + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + + public function getTargetLink() + { + return $this->targetLink; + } + + public function setUser($user) + { + $this->user = $user; + } + + public function getUser() + { + return $this->user; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } + + public function setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Autoscaler_OperationError extends Google_Collection +{ + protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Autoscaler_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_Autoscaler_OperationList extends Google_Collection +{ + public $id; + protected $itemsType = 'Google_Service_Autoscaler_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function 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_Autoscaler_OperationWarnings extends Google_Collection +{ + public $code; + protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function 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_Autoscaler_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; + } +} From f5caa08f4069354b67cc4a96dc12795b6ddc9ffb Mon Sep 17 00:00:00 2001 From: Volkan Altan Date: Tue, 15 Jul 2014 16:03:04 +0300 Subject: [PATCH 0055/1274] added comment --- examples/service-account.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/service-account.php b/examples/service-account.php index 66c79b13b..f9889842c 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -38,9 +38,9 @@ Make sure the Books API is enabled on this account as well, or the call will fail. ************************************************/ -$client_id = ''; -$service_account_name = ''; -$key_file_location = ''; +$client_id = ''; //Client ID +$service_account_name = ''; //Email Address +$key_file_location = ''; //key.p12 echo pageHeader("Service Account Access"); if ($client_id == '' From 1071e93fd199e80d98148e75b048e9ab107da8ca Mon Sep 17 00:00:00 2001 From: Tama Pugsley Date: Wed, 16 Jul 2014 14:05:24 +1200 Subject: [PATCH 0056/1274] Adding 'login_hint' parameter to OAuth2 connections --- src/Google/Auth/OAuth2.php | 5 +++++ src/Google/Client.php | 11 ++++++++++- src/Google/Config.php | 10 ++++++++++ tests/general/ApiOAuth2Test.php | 24 +++++++++++++++++++----- 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 14fdf0ba6..e5b603131 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -149,6 +149,11 @@ public function createAuthUrl($scope) 'approval_prompt' => $this->client->getClassConfig($this, 'approval_prompt'), ); + $login_hint = $this->client->getClassConfig($this, 'login_hint'); + if ($login_hint != '') { + $params['login_hint'] = $login_hint; + } + // If the list of scopes contains plus.login, add request_visible_actions // to auth URL. $rva = $this->client->getClassConfig($this, 'request_visible_actions'); diff --git a/src/Google/Client.php b/src/Google/Client.php index d68c25415..18197b35f 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -100,7 +100,7 @@ function_exists('date_default_timezone_set')) { $config->setClassConfig('Google_Http_Request', 'disable_gzip', true); } } - + if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { if (function_exists('curl_version') && function_exists('curl_exec')) { $config->setIoClass("Google_IO_Curl"); @@ -292,6 +292,15 @@ public function setApprovalPrompt($approvalPrompt) $this->config->setApprovalPrompt($approvalPrompt); } + /** + * Set the login hint, email address or sub id. + * @param string $loginHint + */ + public function setLoginHint($loginHint) + { + $this->config->setLoginHint($loginHint); + } + /** * Set the application name, this is included in the User-Agent HTTP header. * @param string $applicationName diff --git a/src/Google/Config.php b/src/Google/Config.php index 8f1aaf4ea..c45e2de86 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -80,6 +80,7 @@ public function __construct($ini_file_location = null) // Other parameters. 'access_type' => 'online', 'approval_prompt' => 'auto', + 'login_hint' => '', 'request_visible_actions' => '', 'federated_signon_certs_url' => 'https://www.googleapis.com/oauth2/v1/certs', @@ -282,6 +283,15 @@ public function setApprovalPrompt($approval) $this->setAuthConfig('approval_prompt', $approval); } + /** + * Set the login hint (email address or sub identifier) + * @param $hint string + */ + public function setLoginHint($hint) + { + $this->setAuthConfig('login_hint', $hint); + } + /** * Set the developer key for the auth class. Note that this is separate value * from the client ID - if it looks like a URL, its a client ID! diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 76d580096..d76b36a92 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -24,7 +24,7 @@ class ApiOAuth2Test extends BaseTest { - public function testSign() + public function testSign() { $client = $this->getClient(); $oauth = new Google_Auth_OAuth2($client); @@ -54,7 +54,7 @@ public function testSign() $this->assertEquals('Bearer ACCESS_TOKEN', $auth); } - public function testRevokeAccess() + public function testRevokeAccess() { $accessToken = "ACCESS_TOKEN"; $refreshToken = "REFRESH_TOKEN"; @@ -103,7 +103,7 @@ public function testRevokeAccess() $this->assertEquals($accessToken2, $token); } - public function testCreateAuthUrl() + public function testCreateAuthUrl() { $client = $this->getClient(); $oauth = new Google_Auth_OAuth2($client); @@ -115,7 +115,21 @@ public function testCreateAuthUrl() $client->setAccessType('offline'); $client->setApprovalPrompt('force'); $client->setRequestVisibleActions(array('http://foo')); + $client->setLoginHint("bob@example.org"); + $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); + $expected = "https://accounts.google.com/o/oauth2/auth" + . "?response_type=code" + . "&redirect_uri=http%3A%2F%2Flocalhost" + . "&client_id=clientId1" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&access_type=offline" + . "&approval_prompt=force" + . "&login_hint=bob%40example.org"; + $this->assertEquals($expected, $authUrl); + + // Again with a blank login hint (should remove all traces from authUrl) + $client->setLoginHint(""); $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" . "?response_type=code" @@ -128,11 +142,11 @@ public function testCreateAuthUrl() } /** - * Most of the logic for ID token validation is in AuthTest - + * Most of the logic for ID token validation is in AuthTest - * this is just a general check to ensure we verify a valid * id token if one exists. */ - public function testValidateIdToken() + public function testValidateIdToken() { if (!$this->checkToken()) { return; From 6d21b62f8853286b930efbaf9fe5c7c18bc847ed Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 16 Jul 2014 00:45:48 -0700 Subject: [PATCH 0057/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index b6e952515..e8eb4a781 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -3326,6 +3326,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $id; public $lastModifiedTime; public $name; + public $processingStatus; public $projectId; public $publishedAccessList; public $tags; @@ -3431,6 +3432,16 @@ public function getName() return $this->name; } + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + public function setProjectId($projectId) { $this->projectId = $projectId; From 50891556492df903c1da25005e751822670bb1b3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 16 Jul 2014 00:45:48 -0700 Subject: [PATCH 0058/1274] Updated Games.php --- src/Google/Service/Games.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 3bde2d0d2..2f94fdad9 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -1266,8 +1266,8 @@ class Google_Service_Games_Events_Resource extends Google_Service_Resource { /** - * Returns a list of the current progress on events in this application for the - * currently authorized user. (events.listByPlayer) + * Returns a list showing the current progress on events in this application for + * the currently authenticated user. (events.listByPlayer) * * @param array $optParams Optional parameters. * @@ -1309,8 +1309,8 @@ public function listDefinitions($optParams = array()) return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); } /** - * Records a batch of event updates for the currently authorized user of this - * application. (events.record) + * Records a batch of changes to the number of times events have occurred for + * the currently authenticated user of this application. (events.record) * * @param Google_EventRecordRequest $postBody * @param array $optParams Optional parameters. @@ -1537,17 +1537,17 @@ class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resou { /** - * Report that reward for the milestone corresponding to milestoneId for the + * Report that a reward for the milestone corresponding to milestoneId for the * quest corresponding to questId has been claimed by the currently authorized * user. (questMilestones.claim) * * @param string $questId * The ID of the quest. * @param string $milestoneId - * The ID of the Milestone. + * The ID of the milestone. * @param string $requestId - * A randomly generated numeric ID for each request specified by the caller. This number is used at - * the server to ensure that the request is handled correctly across retries. + * A numeric ID to ensure that the request is handled correctly across retries. Your client + * application must generate this ID randomly. * @param array $optParams Optional parameters. */ public function claim($questId, $milestoneId, $requestId, $optParams = array()) From cbfc437b7322be21fec5dad595873a7fe06b7e54 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 17 Jul 2014 00:46:50 -0700 Subject: [PATCH 0059/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 136 ++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 8389da320..f73267eec 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -253,6 +253,10 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'search' => array( + 'path' => 'jobs/search', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -726,6 +730,19 @@ public function get($jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Job"); } + /** + * Searches jobs within a project. (jobs.search) + * + * @param Google_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchJobsResponse + */ + public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchJobsResponse"); + } } /** @@ -1270,6 +1287,7 @@ class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collec public $align; public $callVariants; public $gcsOutputPath; + public $pairedSourceUris; public $projectId; public $sourceUris; @@ -1303,6 +1321,16 @@ public function getGcsOutputPath() return $this->gcsOutputPath; } + public function setPairedSourceUris($pairedSourceUris) + { + $this->pairedSourceUris = $pairedSourceUris; + } + + public function getPairedSourceUris() + { + return $this->pairedSourceUris; + } + public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1676,6 +1704,7 @@ public function getJobId() class Google_Service_Genomics_Job extends Google_Collection { + public $created; public $description; public $errors; public $id; @@ -1684,6 +1713,16 @@ class Google_Service_Genomics_Job extends Google_Collection public $status; public $warnings; + public function setCreated($created) + { + $this->created = $created; + } + + public function getCreated() + { + return $this->created; + } + public function setDescription($description) { $this->description = $description; @@ -2362,6 +2401,103 @@ public function getNextPageToken() } } +class Google_Service_Genomics_SearchJobsRequest extends Google_Collection +{ + public $createdAfter; + public $createdBefore; + public $maxResults; + public $pageToken; + public $projectId; + public $status; + + public function setCreatedAfter($createdAfter) + { + $this->createdAfter = $createdAfter; + } + + public function getCreatedAfter() + { + return $this->createdAfter; + } + + public function setCreatedBefore($createdBefore) + { + $this->createdBefore = $createdBefore; + } + + public function getCreatedBefore() + { + return $this->createdBefore; + } + + public function setMaxResults($maxResults) + { + $this->maxResults = $maxResults; + } + + public function getMaxResults() + { + return $this->maxResults; + } + + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + + public function getPageToken() + { + return $this->pageToken; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Genomics_SearchJobsResponse extends Google_Collection +{ + protected $jobsType = 'Google_Service_Genomics_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + + public function getJobs() + { + return $this->jobs; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { public $maxResults; From dc7af30057cc3263fa86fd890123bda444d324d3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 17 Jul 2014 00:46:51 -0700 Subject: [PATCH 0060/1274] Updated Drive.php --- src/Google/Service/Drive.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 3203fe686..aaa94c035 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -528,6 +528,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'corpus' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -1762,6 +1766,8 @@ public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = ar * Query string for searching files. * @opt_param string pageToken * Page token for files. + * @opt_param string corpus + * The body of items (files/documents) to which the query applies. * @opt_param string projection * This parameter is deprecated and has no function. * @opt_param int maxResults From 14d379397e9e9d0364dbd47bdd308c0850a57d2a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 17 Jul 2014 00:46:51 -0700 Subject: [PATCH 0061/1274] Updated Directory.php --- src/Google/Service/Directory.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 6ab36e614..7c50ce451 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2703,6 +2703,7 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection public $bootMode; public $deviceId; public $etag; + public $ethernetMacAddress; public $firmwareVersion; public $kind; public $lastEnrollmentTime; @@ -2772,6 +2773,16 @@ public function getEtag() return $this->etag; } + public function setEthernetMacAddress($ethernetMacAddress) + { + $this->ethernetMacAddress = $ethernetMacAddress; + } + + public function getEthernetMacAddress() + { + return $this->ethernetMacAddress; + } + public function setFirmwareVersion($firmwareVersion) { $this->firmwareVersion = $firmwareVersion; From 1deb4ebf35cbe5b5960d1e4fda506c87533db3a4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 18 Jul 2014 03:47:47 -0400 Subject: [PATCH 0062/1274] Added service Cloudmonitoring.php --- src/Google/Service/Cloudmonitoring.php | 971 +++++++++++++++++++++++++ 1 file changed, 971 insertions(+) create mode 100644 src/Google/Service/Cloudmonitoring.php diff --git a/src/Google/Service/Cloudmonitoring.php b/src/Google/Service/Cloudmonitoring.php new file mode 100644 index 000000000..850e6b5b1 --- /dev/null +++ b/src/Google/Service/Cloudmonitoring.php @@ -0,0 +1,971 @@ + + * API for accessing Google Cloud and API monitoring data. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudmonitoring extends Google_Service +{ + /** View monitoring data for all of your Google Cloud and API projects. */ + const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; + + public $metricDescriptors; + public $timeseries; + public $timeseriesDescriptors; + + + /** + * Constructs the internal representation of the Cloudmonitoring service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; + $this->version = 'v2beta1'; + $this->serviceName = 'cloudmonitoring'; + + $this->metricDescriptors = new Google_Service_Cloudmonitoring_MetricDescriptors_Resource( + $this, + $this->serviceName, + 'metricDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseries = new Google_Service_Cloudmonitoring_Timeseries_Resource( + $this, + $this->serviceName, + 'timeseries', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseries/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseriesDescriptors = new Google_Service_Cloudmonitoring_TimeseriesDescriptors_Resource( + $this, + $this->serviceName, + 'timeseriesDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseriesDescriptors/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "metricDescriptors" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); + * $metricDescriptors = $cloudmonitoringService->metricDescriptors; + * + */ +class Google_Service_Cloudmonitoring_MetricDescriptors_Resource extends Google_Service_Resource +{ + + /** + * List metric descriptors that match the query. If the query is not set, then + * all of the metric descriptors will be returned. Large responses will be + * paginated, use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) + * + * @param string $project + * The project id. The value can be the numeric project ID or string-based project name. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = + * 100. + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string query + * The query used to search against existing metrics. Separate keywords with a space; the service + * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. + * If this field is omitted, all metrics are returned. If an empty string is passed with this + * field, no metrics are returned. + * @return Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse + */ + public function listMetricDescriptors($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse"); + } +} + +/** + * The "timeseries" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); + * $timeseries = $cloudmonitoringService->timeseries; + * + */ +class Google_Service_Cloudmonitoring_Timeseries_Resource extends Google_Service_Resource +{ + + /** + * List the data points of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseries.listTimeseries) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * appengine.googleapis.com/http/server/response_count or + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of data points per page, which is used for pagination of results. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + - s: second + - m: minute + - h: hour + - d: day + - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + - key==value: + * key equals the value + - key=~value: key regex matches the value + - key!=value: key does not + * equal the value + - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_Cloudmonitoring_ListTimeseriesResponse + */ + public function listTimeseries($project, $metric, $youngest, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListTimeseriesResponse"); + } +} + +/** + * The "timeseriesDescriptors" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); + * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors; + * + */ +class Google_Service_Cloudmonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource +{ + + /** + * List the descriptors of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * appengine.googleapis.com/http/server/response_count or + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of time series descriptors per page. Used for pagination. If not specified, count + * = 100. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + - s: second + - m: minute + - h: hour + - d: day + - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + - key==value: + * key equals the value + - key=~value: key regex matches the value + - key!=value: key does not + * equal the value + - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse + */ + public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse"); + } +} + + + + +class Google_Service_Cloudmonitoring_ListMetricDescriptorsRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse extends Google_Collection +{ + public $kind; + protected $metricsType = 'Google_Service_Cloudmonitoring_MetricDescriptor'; + protected $metricsDataType = 'array'; + public $nextPageToken; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + + public function getMetrics() + { + return $this->metrics; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_Cloudmonitoring_TimeseriesDescriptor'; + protected $timeseriesDataType = 'array'; + public $youngest; + + 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 setOldest($oldest) + { + $this->oldest = $oldest; + } + + public function getOldest() + { + return $this->oldest; + } + + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + + public function getTimeseries() + { + return $this->timeseries; + } + + public function setYoungest($youngest) + { + $this->youngest = $youngest; + } + + public function getYoungest() + { + return $this->youngest; + } +} + +class Google_Service_Cloudmonitoring_ListTimeseriesRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Cloudmonitoring_ListTimeseriesResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_Cloudmonitoring_Timeseries'; + protected $timeseriesDataType = 'array'; + public $youngest; + + 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 setOldest($oldest) + { + $this->oldest = $oldest; + } + + public function getOldest() + { + return $this->oldest; + } + + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + + public function getTimeseries() + { + return $this->timeseries; + } + + public function setYoungest($youngest) + { + $this->youngest = $youngest; + } + + public function getYoungest() + { + return $this->youngest; + } +} + +class Google_Service_Cloudmonitoring_MetricDescriptor extends Google_Collection +{ + public $description; + protected $labelsType = 'Google_Service_Cloudmonitoring_MetricDescriptorLabelDescriptor'; + protected $labelsDataType = 'array'; + public $name; + public $project; + protected $typeDescriptorType = 'Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor'; + protected $typeDescriptorDataType = ''; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setLabels($labels) + { + $this->labels = $labels; + } + + public function getLabels() + { + return $this->labels; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProject($project) + { + $this->project = $project; + } + + public function getProject() + { + return $this->project; + } + + public function setTypeDescriptor(Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) + { + $this->typeDescriptor = $typeDescriptor; + } + + public function getTypeDescriptor() + { + return $this->typeDescriptor; + } +} + +class Google_Service_Cloudmonitoring_MetricDescriptorLabelDescriptor extends Google_Model +{ + public $description; + public $key; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } +} + +class Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor extends Google_Model +{ + public $metricType; + public $valueType; + + public function setMetricType($metricType) + { + $this->metricType = $metricType; + } + + public function getMetricType() + { + return $this->metricType; + } + + public function setValueType($valueType) + { + $this->valueType = $valueType; + } + + public function getValueType() + { + return $this->valueType; + } +} + +class Google_Service_Cloudmonitoring_Point extends Google_Model +{ + public $boolValue; + protected $distributionValueType = 'Google_Service_Cloudmonitoring_PointDistribution'; + protected $distributionValueDataType = ''; + public $doubleValue; + public $end; + public $int64Value; + public $start; + public $stringValue; + + public function setBoolValue($boolValue) + { + $this->boolValue = $boolValue; + } + + public function getBoolValue() + { + return $this->boolValue; + } + + public function setDistributionValue(Google_Service_Cloudmonitoring_PointDistribution $distributionValue) + { + $this->distributionValue = $distributionValue; + } + + public function getDistributionValue() + { + return $this->distributionValue; + } + + public function setDoubleValue($doubleValue) + { + $this->doubleValue = $doubleValue; + } + + public function getDoubleValue() + { + return $this->doubleValue; + } + + public function setEnd($end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + + public function setInt64Value($int64Value) + { + $this->int64Value = $int64Value; + } + + public function getInt64Value() + { + return $this->int64Value; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } + + public function setStringValue($stringValue) + { + $this->stringValue = $stringValue; + } + + public function getStringValue() + { + return $this->stringValue; + } +} + +class Google_Service_Cloudmonitoring_PointDistribution extends Google_Collection +{ + protected $bucketsType = 'Google_Service_Cloudmonitoring_PointDistributionBucket'; + protected $bucketsDataType = 'array'; + protected $overflowBucketType = 'Google_Service_Cloudmonitoring_PointDistributionOverflowBucket'; + protected $overflowBucketDataType = ''; + protected $underflowBucketType = 'Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket'; + protected $underflowBucketDataType = ''; + + public function setBuckets($buckets) + { + $this->buckets = $buckets; + } + + public function getBuckets() + { + return $this->buckets; + } + + public function setOverflowBucket(Google_Service_Cloudmonitoring_PointDistributionOverflowBucket $overflowBucket) + { + $this->overflowBucket = $overflowBucket; + } + + public function getOverflowBucket() + { + return $this->overflowBucket; + } + + public function setUnderflowBucket(Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket $underflowBucket) + { + $this->underflowBucket = $underflowBucket; + } + + public function getUnderflowBucket() + { + return $this->underflowBucket; + } +} + +class Google_Service_Cloudmonitoring_PointDistributionBucket extends Google_Model +{ + public $count; + public $lowerBound; + public $upperBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setLowerBound($lowerBound) + { + $this->lowerBound = $lowerBound; + } + + public function getLowerBound() + { + return $this->lowerBound; + } + + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + + public function getUpperBound() + { + return $this->upperBound; + } +} + +class Google_Service_Cloudmonitoring_PointDistributionOverflowBucket extends Google_Model +{ + public $count; + public $lowerBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setLowerBound($lowerBound) + { + $this->lowerBound = $lowerBound; + } + + public function getLowerBound() + { + return $this->lowerBound; + } +} + +class Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket extends Google_Model +{ + public $count; + public $upperBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + + public function getUpperBound() + { + return $this->upperBound; + } +} + +class Google_Service_Cloudmonitoring_Timeseries extends Google_Collection +{ + protected $pointsType = 'Google_Service_Cloudmonitoring_Point'; + protected $pointsDataType = 'array'; + protected $timeseriesDescType = 'Google_Service_Cloudmonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; + + public function setPoints($points) + { + $this->points = $points; + } + + public function getPoints() + { + return $this->points; + } + + public function setTimeseriesDesc(Google_Service_Cloudmonitoring_TimeseriesDescriptor $timeseriesDesc) + { + $this->timeseriesDesc = $timeseriesDesc; + } + + public function getTimeseriesDesc() + { + return $this->timeseriesDesc; + } +} + +class Google_Service_Cloudmonitoring_TimeseriesDescriptor extends Google_Model +{ + public $labels; + public $metric; + public $project; + + public function setLabels($labels) + { + $this->labels = $labels; + } + + public function getLabels() + { + return $this->labels; + } + + public function setMetric($metric) + { + $this->metric = $metric; + } + + public function getMetric() + { + return $this->metric; + } + + public function setProject($project) + { + $this->project = $project; + } + + public function getProject() + { + return $this->project; + } +} From 783c5596fd7a79d06eb966d05847a18d19704591 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:48:58 -0700 Subject: [PATCH 0063/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 149 ++++++++++++++++++++++---------- 1 file changed, 102 insertions(+), 47 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index f73267eec..583d8220e 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -267,17 +267,7 @@ public function __construct(Google_Client $client) 'reads', array( 'methods' => array( - 'get' => array( - 'path' => 'reads/{readId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( + 'search' => array( 'path' => 'reads/search', 'httpMethod' => 'POST', 'parameters' => array(), @@ -291,11 +281,7 @@ public function __construct(Google_Client $client) 'readsets', array( 'methods' => array( - 'create' => array( - 'path' => 'readsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( + 'delete' => array( 'path' => 'readsets/{readsetId}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -624,7 +610,8 @@ public function get($datasetId, $optParams = array()) * @opt_param string maxResults * The maximum number of results returned by this request. * @opt_param string projectId - * Only return datasets which belong to this Google Developers Console project. + * Only return datasets which belong to this Google Developers Console project. Only accepts + * project numbers. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) @@ -731,7 +718,7 @@ public function get($jobId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Job"); } /** - * Searches jobs within a project. (jobs.search) + * Gets a list of jobs matching the criteria. (jobs.search) * * @param Google_SearchJobsRequest $postBody * @param array $optParams Optional parameters. @@ -756,20 +743,6 @@ public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $opt class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource { - /** - * Gets a read by ID. (reads.get) - * - * @param string $readId - * The ID of the read. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Read - */ - public function get($readId, $optParams = array()) - { - $params = array('readId' => $readId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Read"); - } /** * Gets a list of reads for one or more readsets. Reads search operates over a * genomic coordinate space of reference sequence & position defined over the @@ -804,19 +777,6 @@ public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $op class Google_Service_Genomics_Readsets_Resource extends Google_Service_Resource { - /** - * Creates a new readset. (readsets.create) - * - * @param Google_Readset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset - */ - public function create(Google_Service_Genomics_Readset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Readset"); - } /** * Deletes a readset. (readsets.delete) * @@ -882,7 +842,8 @@ public function import(Google_Service_Genomics_ImportReadsetsRequest $postBody, * Updates a readset. This method supports patch semantics. (readsets.patch) * * @param string $readsetId - * The ID of the readset to be updated. + * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset + * associated with this readset. * @param Google_Readset $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Readset @@ -910,7 +871,8 @@ public function search(Google_Service_Genomics_SearchReadsetsRequest $postBody, * Updates a readset. (readsets.update) * * @param string $readsetId - * The ID of the readset to be updated. + * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset + * associated with this readset. * @param Google_Readset $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Readset @@ -1508,6 +1470,8 @@ class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collecti { protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; protected $contigBoundsDataType = 'array'; + protected $metadataType = 'Google_Service_Genomics_Metadata'; + protected $metadataDataType = 'array'; public function setContigBounds($contigBounds) { @@ -1518,6 +1482,16 @@ public function getContigBounds() { return $this->contigBounds; } + + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + + public function getMetadata() + { + return $this->metadata; + } } class Google_Service_Genomics_Header extends Google_Model @@ -1821,6 +1795,87 @@ public function getNextPageToken() } } +class Google_Service_Genomics_Metadata extends Google_Model +{ + public $description; + public $id; + public $info; + public $key; + public $number; + public $type; + public $value; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setInfo($info) + { + $this->info = $info; + } + + public function getInfo() + { + return $this->info; + } + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setNumber($number) + { + $this->number = $number; + } + + public function getNumber() + { + return $this->number; + } + + 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_Genomics_Program extends Google_Model { public $commandLine; From 68e76bc226d065d6526380c8b9940cd5bb40ea83 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:48:58 -0700 Subject: [PATCH 0064/1274] Added service ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 5533 ++++++++++++++++++++++++ 1 file changed, 5533 insertions(+) create mode 100644 src/Google/Service/ShoppingContent.php diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php new file mode 100644 index 000000000..5780318b9 --- /dev/null +++ b/src/Google/Service/ShoppingContent.php @@ -0,0 +1,5533 @@ + + * Manage product items, inventory, and Merchant Center accounts for Google Shopping. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_ShoppingContent extends Google_Service +{ + /** Manage your product listings and accounts for Google Shopping. */ + const CONTENT = "https://www.googleapis.com/auth/content"; + + public $accounts; + public $accountshipping; + public $accountstatuses; + public $accounttax; + public $datafeeds; + public $datafeedstatuses; + public $inventory; + public $products; + public $productstatuses; + + + /** + * Constructs the internal representation of the ShoppingContent service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'content/v2/'; + $this->version = 'v2'; + $this->serviceName = 'content'; + + $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accounts/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource( + $this, + $this->serviceName, + 'accountshipping', + array( + 'methods' => array( + 'patch' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( + $this, + $this->serviceName, + 'accountstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accountstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/accountstatuses/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accountstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource( + $this, + $this->serviceName, + 'accounttax', + array( + 'methods' => array( + 'patch' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( + $this, + $this->serviceName, + 'datafeeds', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'datafeedsNativeBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'custombatch' => array( + 'path' => 'datafeeds/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource( + $this, + $this->serviceName, + 'datafeedstatuses', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'datafeedstatusesNativeBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'custombatch' => array( + 'path' => 'datafeedstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/datafeedstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource( + $this, + $this->serviceName, + 'inventory', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'inventory/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'set' => array( + 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'storeCode' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_ShoppingContent_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'products/batch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'delete' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource( + $this, + $this->serviceName, + 'productstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'productstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/productstatuses/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/productstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accounts = $contentService->accounts; + * + */ +class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Retrieves, inserts, updates, and deletes multiple Merchant Center + * (sub-)accounts in a single request. (accounts.custombatch) + * + * @param Google_AccountsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse"); + } + /** + * Deletes a Merchant Center sub-account. (accounts.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves a Merchant Center account. (accounts.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Account"); + } + /** + * Creates a Merchant Center sub-account. (accounts.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); + } + /** + * Lists the sub-accounts in your Merchant Center account. + * (accounts.listAccounts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of accounts to return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountsListResponse + */ + public function listAccounts($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); + } + /** + * Updates a Merchant Center account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); + } + /** + * Updates a Merchant Center account. (accounts.update) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_Account"); + } +} + +/** + * The "accountshipping" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accountshipping = $contentService->accountshipping; + * + */ +class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource +{ + + /** + * Updates the shipping settings of the account. This method supports patch + * semantics. (accountshipping.patch) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account for which to get/update account shipping settings. + * @param Google_AccountShipping $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } +} + +/** + * The "accountstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accountstatuses = $contentService->accountstatuses; + * + */ +class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource +{ + + /** + * (accountstatuses.custombatch) + * + * @param Google_AccountstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); + } + /** + * Retrieves the status of a Merchant Center account. (accountstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountStatus + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); + } + /** + * Lists the statuses of the sub-accounts in your Merchant Center account. + * (accountstatuses.listAccountstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of account statuses to return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountstatusesListResponse + */ + public function listAccountstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse"); + } +} + +/** + * The "accounttax" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accounttax = $contentService->accounttax; + * + */ +class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource +{ + + /** + * Updates the tax settings of the account. This method supports patch + * semantics. (accounttax.patch) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account for which to get/update account tax settings. + * @param Google_AccountTax $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountTax + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); + } +} + +/** + * The "datafeeds" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $datafeeds = $contentService->datafeeds; + * + */ +class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource +{ + + /** + * (datafeeds.batch) + * + * @param Google_DatafeedsBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsBatchResponse + */ + public function batch(Google_Service_ShoppingContent_DatafeedsBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_ShoppingContent_DatafeedsBatchResponse"); + } + /** + * (datafeeds.custombatch) + * + * @param Google_DatafeedsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); + } + /** + * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function get($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + /** + * Registers a datafeed with your Merchant Center account. (datafeeds.insert) + * + * @param string $merchantId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + /** + * Lists the datafeeds in your Merchant Center account. + * (datafeeds.listDatafeeds) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsListResponse + */ + public function listDatafeeds($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); + } + /** + * Updates a datafeed of your Merchant Center account. This method supports + * patch semantics. (datafeeds.patch) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + /** + * Updates a datafeed of your Merchant Center account. (datafeeds.update) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_Datafeed"); + } +} + +/** + * The "datafeedstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $datafeedstatuses = $contentService->datafeedstatuses; + * + */ +class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Service_Resource +{ + + /** + * (datafeedstatuses.batch) + * + * @param Google_DatafeedstatusesBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedstatusesBatchResponse + */ + public function batch(Google_Service_ShoppingContent_DatafeedstatusesBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesBatchResponse"); + } + /** + * (datafeedstatuses.custombatch) + * + * @param Google_DatafeedstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse"); + } + /** + * Retrieves the status of a datafeed from your Merchant Center account. + * (datafeedstatuses.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedStatus + */ + public function get($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus"); + } + /** + * Lists the statuses of the datafeeds in your Merchant Center account. + * (datafeedstatuses.listDatafeedstatuses) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse + */ + public function listDatafeedstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedstatusesListResponse"); + } +} + +/** + * The "inventory" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $inventory = $contentService->inventory; + * + */ +class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_Resource +{ + + /** + * Updates price and availability for multiple products or stores in a single + * request. (inventory.custombatch) + * + * @param Google_InventoryCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); + } + /** + * Updates price and availability of a product in your Merchant Center account. + * (inventory.set) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $storeCode + * The code of the store for which to update price and availability. Use online to update price and + * availability of an online product. + * @param string $productId + * The ID of the product for which to update price and availability. + * @param Google_InventorySetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_InventorySetResponse + */ + public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse"); + } +} + +/** + * The "products" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $products = $contentService->products; + * + */ +class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Resource +{ + + /** + * Retrieves, inserts, and deletes multiple products in a single request. + * (products.custombatch) + * + * @param Google_ProductsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse"); + } + /** + * Deletes a product from your Merchant Center account. (products.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + */ + public function delete($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves a product from your Merchant Center account. (products.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Product + */ + public function get($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Product"); + } + /** + * Uploads a product to your Merchant Center account. (products.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Product $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_Product + */ + public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product"); + } + /** + * Lists the products in your Merchant Center account. (products.listProducts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. + * @return Google_Service_ShoppingContent_ProductsListResponse + */ + public function listProducts($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductsListResponse"); + } +} + +/** + * The "productstatuses" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $productstatuses = $contentService->productstatuses; + * + */ +class Google_Service_ShoppingContent_Productstatuses_Resource extends Google_Service_Resource +{ + + /** + * Gets the statuses of multiple products in a single request. + * (productstatuses.custombatch) + * + * @param Google_ProductstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); + } + /** + * Gets the status of a product from your Merchant Center account. + * (productstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_ProductStatus + */ + public function get($merchantId, $productId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); + } + /** + * Lists the statuses of the products in your Merchant Center account. + * (productstatuses.listProductstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of product statuses to return in the response, used for paging. + * @return Google_Service_ShoppingContent_ProductstatusesListResponse + */ + public function listProductstatuses($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse"); + } +} + + + + +class Google_Service_ShoppingContent_Account extends Google_Collection +{ + public $adultContent; + protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; + protected $adwordsLinksDataType = 'array'; + public $id; + public $kind; + public $name; + public $reviewsUrl; + public $sellerId; + protected $usersType = 'Google_Service_ShoppingContent_AccountUser'; + protected $usersDataType = 'array'; + public $websiteUrl; + + public function setAdultContent($adultContent) + { + $this->adultContent = $adultContent; + } + + public function getAdultContent() + { + return $this->adultContent; + } + + public function setAdwordsLinks($adwordsLinks) + { + $this->adwordsLinks = $adwordsLinks; + } + + public function getAdwordsLinks() + { + return $this->adwordsLinks; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setReviewsUrl($reviewsUrl) + { + $this->reviewsUrl = $reviewsUrl; + } + + public function getReviewsUrl() + { + return $this->reviewsUrl; + } + + public function setSellerId($sellerId) + { + $this->sellerId = $sellerId; + } + + public function getSellerId() + { + return $this->sellerId; + } + + public function setUsers($users) + { + $this->users = $users; + } + + public function getUsers() + { + return $this->users; + } + + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model +{ + public $adwordsId; + public $status; + + public function setAdwordsId($adwordsId) + { + $this->adwordsId = $adwordsId; + } + + public function getAdwordsId() + { + return $this->adwordsId; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_ShoppingContent_AccountShipping extends Google_Collection +{ + public $accountId; + protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate'; + protected $carrierRatesDataType = 'array'; + public $kind; + protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup'; + protected $locationGroupsDataType = 'array'; + protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable'; + protected $rateTablesDataType = 'array'; + protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService'; + protected $servicesDataType = 'array'; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setCarrierRates($carrierRates) + { + $this->carrierRates = $carrierRates; + } + + public function getCarrierRates() + { + return $this->carrierRates; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLocationGroups($locationGroups) + { + $this->locationGroups = $locationGroups; + } + + public function getLocationGroups() + { + return $this->locationGroups; + } + + public function setRateTables($rateTables) + { + $this->rateTables = $rateTables; + } + + public function getRateTables() + { + return $this->rateTables; + } + + public function setServices($services) + { + $this->services = $services; + } + + public function getServices() + { + return $this->services; + } +} + +class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model +{ + public $carrier; + public $carrierService; + protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price'; + protected $modifierFlatRateDataType = ''; + public $modifierPercent; + public $name; + public $saleCountry; + public $shippingOrigin; + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + + public function getCarrier() + { + return $this->carrier; + } + + public function setCarrierService($carrierService) + { + $this->carrierService = $carrierService; + } + + public function getCarrierService() + { + return $this->carrierService; + } + + public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate) + { + $this->modifierFlatRate = $modifierFlatRate; + } + + public function getModifierFlatRate() + { + return $this->modifierFlatRate; + } + + public function setModifierPercent($modifierPercent) + { + $this->modifierPercent = $modifierPercent; + } + + public function getModifierPercent() + { + return $this->modifierPercent; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + + public function getSaleCountry() + { + return $this->saleCountry; + } + + public function setShippingOrigin($shippingOrigin) + { + $this->shippingOrigin = $shippingOrigin; + } + + public function getShippingOrigin() + { + return $this->shippingOrigin; + } +} + +class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model +{ + public $deliveryLocationGroup; + public $deliveryLocationId; + public $deliveryPostalCode; + protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; + protected $priceMaxDataType = ''; + public $shippingLabel; + protected $weightMaxType = 'Google_Service_ShoppingContent_Weight'; + protected $weightMaxDataType = ''; + + public function setDeliveryLocationGroup($deliveryLocationGroup) + { + $this->deliveryLocationGroup = $deliveryLocationGroup; + } + + public function getDeliveryLocationGroup() + { + return $this->deliveryLocationGroup; + } + + public function setDeliveryLocationId($deliveryLocationId) + { + $this->deliveryLocationId = $deliveryLocationId; + } + + public function getDeliveryLocationId() + { + return $this->deliveryLocationId; + } + + public function setDeliveryPostalCode($deliveryPostalCode) + { + $this->deliveryPostalCode = $deliveryPostalCode; + } + + public function getDeliveryPostalCode() + { + return $this->deliveryPostalCode; + } + + public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax) + { + $this->priceMax = $priceMax; + } + + public function getPriceMax() + { + return $this->priceMax; + } + + public function setShippingLabel($shippingLabel) + { + $this->shippingLabel = $shippingLabel; + } + + public function getShippingLabel() + { + return $this->shippingLabel; + } + + public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax) + { + $this->weightMax = $weightMax; + } + + public function getWeightMax() + { + return $this->weightMax; + } +} + +class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection +{ + public $country; + public $locationIds; + public $name; + public $postalCodes; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setLocationIds($locationIds) + { + $this->locationIds = $locationIds; + } + + public function getLocationIds() + { + return $this->locationIds; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + + public function getPostalCodes() + { + return $this->postalCodes; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection +{ + protected $contentsType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; + protected $contentsDataType = 'array'; + public $name; + public $saleCountry; + + public function setContents($contents) + { + $this->contents = $contents; + } + + public function getContents() + { + return $this->contents; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model +{ + protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; + protected $conditionDataType = ''; + protected $rateType = 'Google_Service_ShoppingContent_Price'; + protected $rateDataType = ''; + + public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) + { + $this->condition = $condition; + } + + public function getCondition() + { + return $this->condition; + } + + public function setRate(Google_Service_ShoppingContent_Price $rate) + { + $this->rate = $rate; + } + + public function getRate() + { + return $this->rate; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model +{ + public $active; + protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; + protected $calculationMethodDataType = ''; + public $name; + public $saleCountry; + + public function setActive($active) + { + $this->active = $active; + } + + public function getActive() + { + return $this->active; + } + + public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) + { + $this->calculationMethod = $calculationMethod; + } + + public function getCalculationMethod() + { + return $this->calculationMethod; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model +{ + public $carrierRate; + protected $flatRateType = 'Google_Service_ShoppingContent_Price'; + protected $flatRateDataType = ''; + public $percentageRate; + public $rateTable; + + public function setCarrierRate($carrierRate) + { + $this->carrierRate = $carrierRate; + } + + public function getCarrierRate() + { + return $this->carrierRate; + } + + public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate) + { + $this->flatRate = $flatRate; + } + + public function getFlatRate() + { + return $this->flatRate; + } + + public function setPercentageRate($percentageRate) + { + $this->percentageRate = $percentageRate; + } + + public function getPercentageRate() + { + return $this->percentageRate; + } + + public function setRateTable($rateTable) + { + $this->rateTable = $rateTable; + } + + public function getRateTable() + { + return $this->rateTable; + } +} + +class Google_Service_ShoppingContent_AccountStatus extends Google_Collection +{ + public $accountId; + protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + public $kind; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setDataQualityIssues($dataQualityIssues) + { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() + { + return $this->dataQualityIssues; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection +{ + public $country; + public $displayedValue; + protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; + protected $exampleItemsDataType = 'array'; + public $id; + public $lastChecked; + public $numItems; + public $severity; + public $submittedValue; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setDisplayedValue($displayedValue) + { + $this->displayedValue = $displayedValue; + } + + public function getDisplayedValue() + { + return $this->displayedValue; + } + + public function setExampleItems($exampleItems) + { + $this->exampleItems = $exampleItems; + } + + public function getExampleItems() + { + return $this->exampleItems; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLastChecked($lastChecked) + { + $this->lastChecked = $lastChecked; + } + + public function getLastChecked() + { + return $this->lastChecked; + } + + public function setNumItems($numItems) + { + $this->numItems = $numItems; + } + + public function getNumItems() + { + return $this->numItems; + } + + public function setSeverity($severity) + { + $this->severity = $severity; + } + + public function getSeverity() + { + return $this->severity; + } + + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() + { + return $this->submittedValue; + } +} + +class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model +{ + public $itemId; + public $link; + public $submittedValue; + public $title; + public $valueOnLandingPage; + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + + public function getItemId() + { + return $this->itemId; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() + { + return $this->submittedValue; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setValueOnLandingPage($valueOnLandingPage) + { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() + { + return $this->valueOnLandingPage; + } +} + +class Google_Service_ShoppingContent_AccountTax extends Google_Collection +{ + public $accountId; + public $kind; + protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule'; + protected $rulesDataType = 'array'; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setRules($rules) + { + $this->rules = $rules; + } + + public function getRules() + { + return $this->rules; + } +} + +class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model +{ + public $country; + public $locationId; + public $ratePercent; + public $shippingTaxed; + public $useGlobalRate; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + + public function getLocationId() + { + return $this->locationId; + } + + public function setRatePercent($ratePercent) + { + $this->ratePercent = $ratePercent; + } + + public function getRatePercent() + { + return $this->ratePercent; + } + + public function setShippingTaxed($shippingTaxed) + { + $this->shippingTaxed = $shippingTaxed; + } + + public function getShippingTaxed() + { + return $this->shippingTaxed; + } + + public function setUseGlobalRate($useGlobalRate) + { + $this->useGlobalRate = $useGlobalRate; + } + + public function getUseGlobalRate() + { + return $this->useGlobalRate; + } +} + +class Google_Service_ShoppingContent_AccountUser extends Google_Model +{ + public $admin; + public $emailAddress; + + public function setAdmin($admin) + { + $this->admin = $admin; + } + + public function getAdmin() + { + return $this->admin; + } + + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() + { + return $this->emailAddress; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model +{ + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccount(Google_Service_ShoppingContent_Account $account) + { + $this->account = $account; + } + + public function getAccount() + { + return $this->account; + } + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model +{ + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setAccount(Google_Service_ShoppingContent_Account $account) + { + $this->account = $account; + } + + public function getAccount() + { + return $this->account; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Account'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model +{ + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model +{ + protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $accountStatusDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) + { + $this->accountStatus = $accountStatus; + } + + public function getAccountStatus() + { + return $this->accountStatus; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_Datafeed extends Google_Collection +{ + public $attributeLanguage; + public $contentLanguage; + public $contentType; + protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule'; + protected $fetchScheduleDataType = ''; + public $fileName; + protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat'; + protected $formatDataType = ''; + public $id; + public $intendedDestinations; + public $kind; + public $name; + public $targetCountry; + + public function setAttributeLanguage($attributeLanguage) + { + $this->attributeLanguage = $attributeLanguage; + } + + public function getAttributeLanguage() + { + return $this->attributeLanguage; + } + + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() + { + return $this->contentLanguage; + } + + public function setContentType($contentType) + { + $this->contentType = $contentType; + } + + public function getContentType() + { + return $this->contentType; + } + + public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule) + { + $this->fetchSchedule = $fetchSchedule; + } + + public function getFetchSchedule() + { + return $this->fetchSchedule; + } + + public function setFileName($fileName) + { + $this->fileName = $fileName; + } + + public function getFileName() + { + return $this->fileName; + } + + public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) + { + $this->format = $format; + } + + public function getFormat() + { + return $this->format; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setIntendedDestinations($intendedDestinations) + { + $this->intendedDestinations = $intendedDestinations; + } + + public function getIntendedDestinations() + { + return $this->intendedDestinations; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() + { + return $this->targetCountry; + } +} + +class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model +{ + public $dayOfMonth; + public $fetchUrl; + public $hour; + public $password; + public $timeZone; + public $username; + public $weekday; + + public function setDayOfMonth($dayOfMonth) + { + $this->dayOfMonth = $dayOfMonth; + } + + public function getDayOfMonth() + { + return $this->dayOfMonth; + } + + public function setFetchUrl($fetchUrl) + { + $this->fetchUrl = $fetchUrl; + } + + public function getFetchUrl() + { + return $this->fetchUrl; + } + + public function setHour($hour) + { + $this->hour = $hour; + } + + public function getHour() + { + return $this->hour; + } + + public function setPassword($password) + { + $this->password = $password; + } + + public function getPassword() + { + return $this->password; + } + + public function setTimeZone($timeZone) + { + $this->timeZone = $timeZone; + } + + public function getTimeZone() + { + return $this->timeZone; + } + + public function setUsername($username) + { + $this->username = $username; + } + + public function getUsername() + { + return $this->username; + } + + public function setWeekday($weekday) + { + $this->weekday = $weekday; + } + + public function getWeekday() + { + return $this->weekday; + } +} + +class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model +{ + public $columnDelimiter; + public $fileEncoding; + public $quotingMode; + + public function setColumnDelimiter($columnDelimiter) + { + $this->columnDelimiter = $columnDelimiter; + } + + public function getColumnDelimiter() + { + return $this->columnDelimiter; + } + + public function setFileEncoding($fileEncoding) + { + $this->fileEncoding = $fileEncoding; + } + + public function getFileEncoding() + { + return $this->fileEncoding; + } + + public function setQuotingMode($quotingMode) + { + $this->quotingMode = $quotingMode; + } + + public function getQuotingMode() + { + return $this->quotingMode; + } +} + +class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection +{ + public $datafeedId; + protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; + protected $errorsDataType = 'array'; + public $itemsTotal; + public $itemsValid; + public $kind; + public $processingStatus; + protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; + protected $warningsDataType = 'array'; + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setItemsTotal($itemsTotal) + { + $this->itemsTotal = $itemsTotal; + } + + public function getItemsTotal() + { + return $this->itemsTotal; + } + + public function setItemsValid($itemsValid) + { + $this->itemsValid = $itemsValid; + } + + public function getItemsValid() + { + return $this->itemsValid; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection +{ + public $code; + public $count; + protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; + protected $examplesDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setExamples($examples) + { + $this->examples = $examples; + } + + public function getExamples() + { + return $this->examples; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model +{ + public $itemId; + public $lineNumber; + public $value; + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + + public function getItemId() + { + return $this->itemId; + } + + public function setLineNumber($lineNumber) + { + $this->lineNumber = $lineNumber; + } + + public function getLineNumber() + { + return $this->lineNumber; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_DatafeedsBatchRequest extends Google_Collection +{ + protected $entrysType = 'Google_Service_ShoppingContent_DatafeedsBatchRequestEntry'; + protected $entrysDataType = 'array'; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } +} + +class Google_Service_ShoppingContent_DatafeedsBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $datafeedsinsertrequestType = 'Google_Service_ShoppingContent_DatafeedsInsertRequest'; + protected $datafeedsinsertrequestDataType = ''; + protected $datafeedsupdaterequestType = 'Google_Service_ShoppingContent_DatafeedsUpdateRequest'; + protected $datafeedsupdaterequestDataType = ''; + public $methodName; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedsinsertrequest(Google_Service_ShoppingContent_DatafeedsInsertRequest $datafeedsinsertrequest) + { + $this->datafeedsinsertrequest = $datafeedsinsertrequest; + } + + public function getDatafeedsinsertrequest() + { + return $this->datafeedsinsertrequest; + } + + public function setDatafeedsupdaterequest(Google_Service_ShoppingContent_DatafeedsUpdateRequest $datafeedsupdaterequest) + { + $this->datafeedsupdaterequest = $datafeedsupdaterequest; + } + + public function getDatafeedsupdaterequest() + { + return $this->datafeedsupdaterequest; + } + + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + + public function getMethodName() + { + return $this->methodName; + } +} + +class Google_Service_ShoppingContent_DatafeedsBatchResponse extends Google_Collection +{ + protected $entrysType = 'Google_Service_ShoppingContent_DatafeedsBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedsBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedsgetresponseType = 'Google_Service_ShoppingContent_DatafeedsGetResponse'; + protected $datafeedsgetresponseDataType = ''; + protected $datafeedsinsertresponseType = 'Google_Service_ShoppingContent_DatafeedsInsertResponse'; + protected $datafeedsinsertresponseDataType = ''; + protected $datafeedsupdateresponseType = 'Google_Service_ShoppingContent_DatafeedsUpdateResponse'; + protected $datafeedsupdateresponseDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedsgetresponse(Google_Service_ShoppingContent_DatafeedsGetResponse $datafeedsgetresponse) + { + $this->datafeedsgetresponse = $datafeedsgetresponse; + } + + public function getDatafeedsgetresponse() + { + return $this->datafeedsgetresponse; + } + + public function setDatafeedsinsertresponse(Google_Service_ShoppingContent_DatafeedsInsertResponse $datafeedsinsertresponse) + { + $this->datafeedsinsertresponse = $datafeedsinsertresponse; + } + + public function getDatafeedsinsertresponse() + { + return $this->datafeedsinsertresponse; + } + + public function setDatafeedsupdateresponse(Google_Service_ShoppingContent_DatafeedsUpdateResponse $datafeedsupdateresponse) + { + $this->datafeedsupdateresponse = $datafeedsupdateresponse; + } + + public function getDatafeedsupdateresponse() + { + return $this->datafeedsupdateresponse; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; + protected $datafeedDataType = ''; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) + { + $this->datafeed = $datafeed; + } + + public function getDatafeed() + { + return $this->datafeed; + } + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; + protected $datafeedDataType = ''; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) + { + $this->datafeed = $datafeed; + } + + public function getDatafeed() + { + return $this->datafeed; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_DatafeedsGetResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_ShoppingContent_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedsInsertRequest extends Google_Model +{ + protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_ShoppingContent_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedsInsertResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_ShoppingContent_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection +{ + public $kind; + protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_DatafeedsUpdateRequest extends Google_Model +{ + protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_ShoppingContent_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedsUpdateResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_ShoppingContent_Datafeed $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesBatchRequest extends Google_Collection +{ + protected $entrysType = 'Google_Service_ShoppingContent_DatafeedstatusesBatchRequestEntry'; + protected $entrysDataType = 'array'; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesBatchRequestEntry extends Google_Model +{ + public $batchId; + public $methodName; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + + public function getMethodName() + { + return $this->methodName; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesBatchResponse extends Google_Collection +{ + protected $entrysType = 'Google_Service_ShoppingContent_DatafeedstatusesBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedstatusesgetresponseType = 'Google_Service_ShoppingContent_DatafeedstatusesGetResponse'; + protected $datafeedstatusesgetresponseDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedstatusesgetresponse(Google_Service_ShoppingContent_DatafeedstatusesGetResponse $datafeedstatusesgetresponse) + { + $this->datafeedstatusesgetresponse = $datafeedstatusesgetresponse; + } + + public function getDatafeedstatusesgetresponse() + { + return $this->datafeedstatusesgetresponse; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedId($datafeedId) + { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() + { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus'; + protected $datafeedStatusDataType = ''; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus) + { + $this->datafeedStatus = $datafeedStatus; + } + + public function getDatafeedStatus() + { + return $this->datafeedStatus; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesGetResponse extends Google_Model +{ + public $kind; + protected $resourceType = 'Google_Service_ShoppingContent_DatafeedStatus'; + protected $resourceDataType = ''; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResource(Google_Service_ShoppingContent_DatafeedStatus $resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection +{ + public $kind; + protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_Error extends Google_Model +{ + public $domain; + public $message; + public $reason; + + public function setDomain($domain) + { + $this->domain = $domain; + } + + public function getDomain() + { + return $this->domain; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } + + public function setReason($reason) + { + $this->reason = $reason; + } + + public function getReason() + { + return $this->reason; + } +} + +class Google_Service_ShoppingContent_Errors extends Google_Collection +{ + public $code; + protected $errorsType = 'Google_Service_ShoppingContent_Error'; + protected $errorsDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_ShoppingContent_Inventory extends Google_Model +{ + public $availability; + public $kind; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function getQuantity() + { + return $this->quantity; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; + protected $inventoryDataType = ''; + public $merchantId; + public $productId; + public $storeCode; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) + { + $this->inventory = $inventory; + } + + public function getInventory() + { + return $this->inventory; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } + + public function setStoreCode($storeCode) + { + $this->storeCode = $storeCode; + } + + public function getStoreCode() + { + return $this->storeCode; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model +{ + public $availability; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function getQuantity() + { + return $this->quantity; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model +{ + public $name; + public $pointsValue; + public $ratio; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPointsValue($pointsValue) + { + $this->pointsValue = $pointsValue; + } + + public function getPointsValue() + { + return $this->pointsValue; + } + + public function setRatio($ratio) + { + $this->ratio = $ratio; + } + + public function getRatio() + { + return $this->ratio; + } +} + +class Google_Service_ShoppingContent_Price extends Google_Model +{ + public $currency; + public $value; + + public function setCurrency($currency) + { + $this->currency = $currency; + } + + public function getCurrency() + { + return $this->currency; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_Product extends Google_Collection +{ + public $additionalImageLinks; + public $adult; + public $adwordsGrouping; + public $adwordsLabels; + public $adwordsRedirect; + public $ageGroup; + public $availability; + public $availabilityDate; + public $brand; + public $channel; + public $color; + public $condition; + public $contentLanguage; + protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; + protected $customAttributesDataType = 'array'; + protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup'; + protected $customGroupsDataType = 'array'; + public $customLabel0; + public $customLabel1; + public $customLabel2; + public $customLabel3; + public $customLabel4; + public $description; + protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; + protected $destinationsDataType = 'array'; + public $energyEfficiencyClass; + public $expirationDate; + public $gender; + public $googleProductCategory; + public $gtin; + public $id; + public $identifierExists; + public $imageLink; + protected $installmentType = 'Google_Service_ShoppingContent_ProductInstallment'; + protected $installmentDataType = ''; + public $isBundle; + public $itemGroupId; + public $kind; + public $link; + protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; + protected $loyaltyPointsDataType = ''; + public $material; + public $merchantMultipackQuantity; + public $mobileLink; + public $mpn; + public $offerId; + public $onlineOnly; + public $pattern; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $productType; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; + protected $shippingDataType = 'array'; + protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; + protected $shippingWeightDataType = ''; + public $sizeSystem; + public $sizeType; + public $sizes; + public $targetCountry; + protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; + protected $taxesDataType = 'array'; + public $title; + public $unitPricingBaseMeasure; + public $unitPricingMeasure; + public $validatedDestinations; + protected $warningsType = 'Google_Service_ShoppingContent_Error'; + protected $warningsDataType = 'array'; + + public function setAdditionalImageLinks($additionalImageLinks) + { + $this->additionalImageLinks = $additionalImageLinks; + } + + public function getAdditionalImageLinks() + { + return $this->additionalImageLinks; + } + + public function setAdult($adult) + { + $this->adult = $adult; + } + + public function getAdult() + { + return $this->adult; + } + + public function setAdwordsGrouping($adwordsGrouping) + { + $this->adwordsGrouping = $adwordsGrouping; + } + + public function getAdwordsGrouping() + { + return $this->adwordsGrouping; + } + + public function setAdwordsLabels($adwordsLabels) + { + $this->adwordsLabels = $adwordsLabels; + } + + public function getAdwordsLabels() + { + return $this->adwordsLabels; + } + + public function setAdwordsRedirect($adwordsRedirect) + { + $this->adwordsRedirect = $adwordsRedirect; + } + + public function getAdwordsRedirect() + { + return $this->adwordsRedirect; + } + + public function setAgeGroup($ageGroup) + { + $this->ageGroup = $ageGroup; + } + + public function getAgeGroup() + { + return $this->ageGroup; + } + + public function setAvailability($availability) + { + $this->availability = $availability; + } + + public function getAvailability() + { + return $this->availability; + } + + public function setAvailabilityDate($availabilityDate) + { + $this->availabilityDate = $availabilityDate; + } + + public function getAvailabilityDate() + { + return $this->availabilityDate; + } + + public function setBrand($brand) + { + $this->brand = $brand; + } + + public function getBrand() + { + return $this->brand; + } + + public function setChannel($channel) + { + $this->channel = $channel; + } + + public function getChannel() + { + return $this->channel; + } + + public function setColor($color) + { + $this->color = $color; + } + + public function getColor() + { + return $this->color; + } + + public function setCondition($condition) + { + $this->condition = $condition; + } + + public function getCondition() + { + return $this->condition; + } + + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() + { + return $this->contentLanguage; + } + + public function setCustomAttributes($customAttributes) + { + $this->customAttributes = $customAttributes; + } + + public function getCustomAttributes() + { + return $this->customAttributes; + } + + public function setCustomGroups($customGroups) + { + $this->customGroups = $customGroups; + } + + public function getCustomGroups() + { + return $this->customGroups; + } + + public function setCustomLabel0($customLabel0) + { + $this->customLabel0 = $customLabel0; + } + + public function getCustomLabel0() + { + return $this->customLabel0; + } + + public function setCustomLabel1($customLabel1) + { + $this->customLabel1 = $customLabel1; + } + + public function getCustomLabel1() + { + return $this->customLabel1; + } + + public function setCustomLabel2($customLabel2) + { + $this->customLabel2 = $customLabel2; + } + + public function getCustomLabel2() + { + return $this->customLabel2; + } + + public function setCustomLabel3($customLabel3) + { + $this->customLabel3 = $customLabel3; + } + + public function getCustomLabel3() + { + return $this->customLabel3; + } + + public function setCustomLabel4($customLabel4) + { + $this->customLabel4 = $customLabel4; + } + + public function getCustomLabel4() + { + return $this->customLabel4; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDestinations($destinations) + { + $this->destinations = $destinations; + } + + public function getDestinations() + { + return $this->destinations; + } + + public function setEnergyEfficiencyClass($energyEfficiencyClass) + { + $this->energyEfficiencyClass = $energyEfficiencyClass; + } + + public function getEnergyEfficiencyClass() + { + return $this->energyEfficiencyClass; + } + + public function setExpirationDate($expirationDate) + { + $this->expirationDate = $expirationDate; + } + + public function getExpirationDate() + { + return $this->expirationDate; + } + + public function setGender($gender) + { + $this->gender = $gender; + } + + public function getGender() + { + return $this->gender; + } + + public function setGoogleProductCategory($googleProductCategory) + { + $this->googleProductCategory = $googleProductCategory; + } + + public function getGoogleProductCategory() + { + return $this->googleProductCategory; + } + + public function setGtin($gtin) + { + $this->gtin = $gtin; + } + + public function getGtin() + { + return $this->gtin; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setIdentifierExists($identifierExists) + { + $this->identifierExists = $identifierExists; + } + + public function getIdentifierExists() + { + return $this->identifierExists; + } + + public function setImageLink($imageLink) + { + $this->imageLink = $imageLink; + } + + public function getImageLink() + { + return $this->imageLink; + } + + public function setInstallment(Google_Service_ShoppingContent_ProductInstallment $installment) + { + $this->installment = $installment; + } + + public function getInstallment() + { + return $this->installment; + } + + public function setIsBundle($isBundle) + { + $this->isBundle = $isBundle; + } + + public function getIsBundle() + { + return $this->isBundle; + } + + public function setItemGroupId($itemGroupId) + { + $this->itemGroupId = $itemGroupId; + } + + public function getItemGroupId() + { + return $this->itemGroupId; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) + { + $this->loyaltyPoints = $loyaltyPoints; + } + + public function getLoyaltyPoints() + { + return $this->loyaltyPoints; + } + + public function setMaterial($material) + { + $this->material = $material; + } + + public function getMaterial() + { + return $this->material; + } + + public function setMerchantMultipackQuantity($merchantMultipackQuantity) + { + $this->merchantMultipackQuantity = $merchantMultipackQuantity; + } + + public function getMerchantMultipackQuantity() + { + return $this->merchantMultipackQuantity; + } + + public function setMobileLink($mobileLink) + { + $this->mobileLink = $mobileLink; + } + + public function getMobileLink() + { + return $this->mobileLink; + } + + public function setMpn($mpn) + { + $this->mpn = $mpn; + } + + public function getMpn() + { + return $this->mpn; + } + + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + + public function getOfferId() + { + return $this->offerId; + } + + public function setOnlineOnly($onlineOnly) + { + $this->onlineOnly = $onlineOnly; + } + + public function getOnlineOnly() + { + return $this->onlineOnly; + } + + public function setPattern($pattern) + { + $this->pattern = $pattern; + } + + public function getPattern() + { + return $this->pattern; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setProductType($productType) + { + $this->productType = $productType; + } + + public function getProductType() + { + return $this->productType; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) + { + $this->salePrice = $salePrice; + } + + public function getSalePrice() + { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) + { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() + { + return $this->salePriceEffectiveDate; + } + + public function setShipping($shipping) + { + $this->shipping = $shipping; + } + + public function getShipping() + { + return $this->shipping; + } + + public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) + { + $this->shippingWeight = $shippingWeight; + } + + public function getShippingWeight() + { + return $this->shippingWeight; + } + + public function setSizeSystem($sizeSystem) + { + $this->sizeSystem = $sizeSystem; + } + + public function getSizeSystem() + { + return $this->sizeSystem; + } + + public function setSizeType($sizeType) + { + $this->sizeType = $sizeType; + } + + public function getSizeType() + { + return $this->sizeType; + } + + public function setSizes($sizes) + { + $this->sizes = $sizes; + } + + public function getSizes() + { + return $this->sizes; + } + + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() + { + return $this->targetCountry; + } + + public function setTaxes($taxes) + { + $this->taxes = $taxes; + } + + public function getTaxes() + { + return $this->taxes; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) + { + $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; + } + + public function getUnitPricingBaseMeasure() + { + return $this->unitPricingBaseMeasure; + } + + public function setUnitPricingMeasure($unitPricingMeasure) + { + $this->unitPricingMeasure = $unitPricingMeasure; + } + + public function getUnitPricingMeasure() + { + return $this->unitPricingMeasure; + } + + public function setValidatedDestinations($validatedDestinations) + { + $this->validatedDestinations = $validatedDestinations; + } + + public function getValidatedDestinations() + { + return $this->validatedDestinations; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model +{ + public $name; + public $type; + public $unit; + public $value; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection +{ + protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; + protected $attributesDataType = 'array'; + public $name; + + public function setAttributes($attributes) + { + $this->attributes = $attributes; + } + + public function getAttributes() + { + return $this->attributes; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + +class Google_Service_ShoppingContent_ProductDestination extends Google_Model +{ + public $destinationName; + public $intention; + + public function setDestinationName($destinationName) + { + $this->destinationName = $destinationName; + } + + public function getDestinationName() + { + return $this->destinationName; + } + + public function setIntention($intention) + { + $this->intention = $intention; + } + + public function getIntention() + { + return $this->intention; + } +} + +class Google_Service_ShoppingContent_ProductInstallment extends Google_Model +{ + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $months; + + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + + public function getAmount() + { + return $this->amount; + } + + public function setMonths($months) + { + $this->months = $months; + } + + public function getMonths() + { + return $this->months; + } +} + +class Google_Service_ShoppingContent_ProductShipping extends Google_Model +{ + public $country; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $region; + public $service; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + + public function getPrice() + { + return $this->price; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setService($service) + { + $this->service = $service; + } + + public function getService() + { + return $this->service; + } +} + +class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model +{ + public $unit; + public $value; + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_ProductStatus extends Google_Collection +{ + protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; + protected $destinationStatusesDataType = 'array'; + public $kind; + public $link; + public $productId; + public $title; + + public function setDataQualityIssues($dataQualityIssues) + { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() + { + return $this->dataQualityIssues; + } + + public function setDestinationStatuses($destinationStatuses) + { + $this->destinationStatuses = $destinationStatuses; + } + + public function getDestinationStatuses() + { + return $this->destinationStatuses; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setLink($link) + { + $this->link = $link; + } + + public function getLink() + { + return $this->link; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model +{ + public $detail; + public $fetchStatus; + public $id; + public $location; + public $timestamp; + public $valueOnLandingPage; + public $valueProvided; + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function getDetail() + { + return $this->detail; + } + + public function setFetchStatus($fetchStatus) + { + $this->fetchStatus = $fetchStatus; + } + + public function getFetchStatus() + { + return $this->fetchStatus; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLocation($location) + { + $this->location = $location; + } + + public function getLocation() + { + return $this->location; + } + + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + + public function getTimestamp() + { + return $this->timestamp; + } + + public function setValueOnLandingPage($valueOnLandingPage) + { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() + { + return $this->valueOnLandingPage; + } + + public function setValueProvided($valueProvided) + { + $this->valueProvided = $valueProvided; + } + + public function getValueProvided() + { + return $this->valueProvided; + } +} + +class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model +{ + public $approvalStatus; + public $destination; + public $intention; + + public function setApprovalStatus($approvalStatus) + { + $this->approvalStatus = $approvalStatus; + } + + public function getApprovalStatus() + { + return $this->approvalStatus; + } + + public function setDestination($destination) + { + $this->destination = $destination; + } + + public function getDestination() + { + return $this->destination; + } + + public function setIntention($intention) + { + $this->intention = $intention; + } + + public function getIntention() + { + return $this->intention; + } +} + +class Google_Service_ShoppingContent_ProductTax extends Google_Model +{ + public $country; + public $rate; + public $region; + public $taxShip; + + public function setCountry($country) + { + $this->country = $country; + } + + public function getCountry() + { + return $this->country; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + + public function getRate() + { + return $this->rate; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setTaxShip($taxShip) + { + $this->taxShip = $taxShip; + } + + public function getTaxShip() + { + return $this->taxShip; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $merchantId; + public $method; + protected $productType = 'Google_Service_ShoppingContent_Product'; + protected $productDataType = ''; + public $productId; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } + + public function setProduct(Google_Service_ShoppingContent_Product $product) + { + $this->product = $product; + } + + public function getProduct() + { + return $this->product; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productType = 'Google_Service_ShoppingContent_Product'; + protected $productDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProduct(Google_Service_ShoppingContent_Product $product) + { + $this->product = $product; + } + + public function getProduct() + { + return $this->product; + } +} + +class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Product'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model +{ + public $batchId; + public $merchantId; + public $method; + public $productId; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + + public function getMerchantId() + { + return $this->merchantId; + } + + public function setMethod($method) + { + $this->method = $method; + } + + public function getMethod() + { + return $this->method; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection +{ + protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus'; + protected $productStatusDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus) + { + $this->productStatus = $productStatus; + } + + public function getProductStatus() + { + return $this->productStatus; + } +} + +class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setResources($resources) + { + $this->resources = $resources; + } + + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_Weight extends Google_Model +{ + public $unit; + public $value; + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} From fa5e5160750d35d048696c24aa4cce40d1515b73 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:48:58 -0700 Subject: [PATCH 0065/1274] Updated Oauth2.php --- src/Google/Service/Oauth2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 10deaf785..766cf4a56 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -37,7 +37,7 @@ class Google_Service_Oauth2 extends Google_Service const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; /** View your email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View basic information about your account. */ + /** View your basic profile info. */ const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; public $userinfo; From 5dd81002a7bc99b2bfc4acc704cf9f2c6bd9eb29 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:48:59 -0700 Subject: [PATCH 0066/1274] Updated PlusDomains.php --- src/Google/Service/PlusDomains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index df3679d83..3cd3bbef8 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -49,7 +49,7 @@ class Google_Service_PlusDomains extends Google_Service const PLUS_STREAM_WRITE = "https://www.googleapis.com/auth/plus.stream.write"; /** View your email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View basic information about your account. */ + /** View your basic profile info. */ const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; public $activities; From 804f94d80522d2d00432e6a42f851713cfed61b9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:48:59 -0700 Subject: [PATCH 0067/1274] Updated Plus.php --- src/Google/Service/Plus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index cf628f190..2f8721d30 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -37,7 +37,7 @@ class Google_Service_Plus extends Google_Service const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; /** View your email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View basic information about your account. */ + /** View your basic profile info. */ const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; public $activities; From cab95eeba6de613b2dc1d19c7d71d1311fd8a809 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 19 Jul 2014 00:49:00 -0700 Subject: [PATCH 0068/1274] Removed Content.php --- src/Google/Service/Content.php | 4856 -------------------------------- 1 file changed, 4856 deletions(-) delete mode 100644 src/Google/Service/Content.php diff --git a/src/Google/Service/Content.php b/src/Google/Service/Content.php deleted file mode 100644 index 98e86c579..000000000 --- a/src/Google/Service/Content.php +++ /dev/null @@ -1,4856 +0,0 @@ - - * Manage product items, inventory, and Merchant Center accounts for Google Shopping. - *

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Content extends Google_Service -{ - /** Manage your product listings and accounts for Google Shopping. */ - const CONTENT = "https://www.googleapis.com/auth/content"; - - public $accounts; - public $accountstatuses; - public $datafeeds; - public $datafeedstatuses; - public $inventory; - public $products; - public $productstatuses; - - - /** - * Constructs the internal representation of the Content service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'content/v2/'; - $this->version = 'v2'; - $this->serviceName = 'content'; - - $this->accounts = new Google_Service_Content_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accounts/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountstatuses = new Google_Service_Content_Accountstatuses_Resource( - $this, - $this->serviceName, - 'accountstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accountstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/accountstatuses/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accountstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->datafeeds = new Google_Service_Content_Datafeeds_Resource( - $this, - $this->serviceName, - 'datafeeds', - array( - 'methods' => array( - 'batch' => array( - 'path' => 'datafeedsNativeBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'custombatch' => array( - 'path' => 'datafeeds/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->datafeedstatuses = new Google_Service_Content_Datafeedstatuses_Resource( - $this, - $this->serviceName, - 'datafeedstatuses', - array( - 'methods' => array( - 'batch' => array( - 'path' => 'datafeedstatusesNativeBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'custombatch' => array( - 'path' => 'datafeedstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeedstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->inventory = new Google_Service_Content_Inventory_Resource( - $this, - $this->serviceName, - 'inventory', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'inventory/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'set' => array( - 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'storeCode' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->products = new Google_Service_Content_Products_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'products/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->productstatuses = new Google_Service_Content_Productstatuses_Resource( - $this, - $this->serviceName, - 'productstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'productstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/productstatuses/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/productstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $accounts = $contentService->accounts; - * - */ -class Google_Service_Content_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Retrieves, inserts, updates, and deletes multiple Merchant Center - * (sub-)accounts in a single request. (accounts.custombatch) - * - * @param Google_AccountsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_AccountsCustomBatchResponse - */ - public function custombatch(Google_Service_Content_AccountsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_AccountsCustomBatchResponse"); - } - /** - * Deletes a Merchant Center sub-account. (accounts.delete) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - */ - public function delete($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a Merchant Center account. (accounts.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Account - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_Account"); - } - /** - * Creates a Merchant Center sub-account. (accounts.insert) - * - * @param string $merchantId - * The ID of the managing account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Account - */ - public function insert($merchantId, Google_Service_Content_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Content_Account"); - } - /** - * Lists the sub-accounts in your Merchant Center account. - * (accounts.listAccounts) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of accounts to return in the response, used for paging. - * @return Google_Service_Content_AccountsListResponse - */ - public function listAccounts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_AccountsListResponse"); - } - /** - * Updates a Merchant Center account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Account - */ - public function patch($merchantId, $accountId, Google_Service_Content_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Content_Account"); - } - /** - * Updates a Merchant Center account. (accounts.update) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Account - */ - public function update($merchantId, $accountId, Google_Service_Content_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Content_Account"); - } -} - -/** - * The "accountstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $accountstatuses = $contentService->accountstatuses; - * - */ -class Google_Service_Content_Accountstatuses_Resource extends Google_Service_Resource -{ - - /** - * (accountstatuses.custombatch) - * - * @param Google_AccountstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_AccountstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_Content_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_AccountstatusesCustomBatchResponse"); - } - /** - * Retrieves the status of a Merchant Center account. (accountstatuses.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_Content_AccountStatus - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_AccountStatus"); - } - /** - * Lists the statuses of the sub-accounts in your Merchant Center account. - * (accountstatuses.listAccountstatuses) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of account statuses to return in the response, used for paging. - * @return Google_Service_Content_AccountstatusesListResponse - */ - public function listAccountstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_AccountstatusesListResponse"); - } -} - -/** - * The "datafeeds" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $datafeeds = $contentService->datafeeds; - * - */ -class Google_Service_Content_Datafeeds_Resource extends Google_Service_Resource -{ - - /** - * (datafeeds.batch) - * - * @param Google_DatafeedsBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedsBatchResponse - */ - public function batch(Google_Service_Content_DatafeedsBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_Content_DatafeedsBatchResponse"); - } - /** - * (datafeeds.custombatch) - * - * @param Google_DatafeedsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedsCustomBatchResponse - */ - public function custombatch(Google_Service_Content_DatafeedsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedsCustomBatchResponse"); - } - /** - * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - */ - public function delete($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Datafeed - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_Datafeed"); - } - /** - * Registers a datafeed with your Merchant Center account. (datafeeds.insert) - * - * @param string $merchantId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Datafeed - */ - public function insert($merchantId, Google_Service_Content_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Content_Datafeed"); - } - /** - * Lists the datafeeds in your Merchant Center account. - * (datafeeds.listDatafeeds) - * - * @param string $merchantId - * - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedsListResponse - */ - public function listDatafeeds($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_DatafeedsListResponse"); - } - /** - * Updates a datafeed of your Merchant Center account. This method supports - * patch semantics. (datafeeds.patch) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Datafeed - */ - public function patch($merchantId, $datafeedId, Google_Service_Content_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Content_Datafeed"); - } - /** - * Updates a datafeed of your Merchant Center account. (datafeeds.update) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Datafeed - */ - public function update($merchantId, $datafeedId, Google_Service_Content_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Content_Datafeed"); - } -} - -/** - * The "datafeedstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $datafeedstatuses = $contentService->datafeedstatuses; - * - */ -class Google_Service_Content_Datafeedstatuses_Resource extends Google_Service_Resource -{ - - /** - * (datafeedstatuses.batch) - * - * @param Google_DatafeedstatusesBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedstatusesBatchResponse - */ - public function batch(Google_Service_Content_DatafeedstatusesBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_Content_DatafeedstatusesBatchResponse"); - } - /** - * (datafeedstatuses.custombatch) - * - * @param Google_DatafeedstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_Content_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_DatafeedstatusesCustomBatchResponse"); - } - /** - * Retrieves the status of a datafeed from your Merchant Center account. - * (datafeedstatuses.get) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedStatus - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_DatafeedStatus"); - } - /** - * Lists the statuses of the datafeeds in your Merchant Center account. - * (datafeedstatuses.listDatafeedstatuses) - * - * @param string $merchantId - * - * @param array $optParams Optional parameters. - * @return Google_Service_Content_DatafeedstatusesListResponse - */ - public function listDatafeedstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_DatafeedstatusesListResponse"); - } -} - -/** - * The "inventory" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $inventory = $contentService->inventory; - * - */ -class Google_Service_Content_Inventory_Resource extends Google_Service_Resource -{ - - /** - * Updates price and availability for multiple products or stores in a single - * request. (inventory.custombatch) - * - * @param Google_InventoryCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_InventoryCustomBatchResponse - */ - public function custombatch(Google_Service_Content_InventoryCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_InventoryCustomBatchResponse"); - } - /** - * Updates price and availability of a product in your Merchant Center account. - * (inventory.set) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $storeCode - * The code of the store for which to update price and availability. Use online to update price and - * availability of an online product. - * @param string $productId - * The ID of the product for which to update price and availability. - * @param Google_InventorySetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_InventorySetResponse - */ - public function set($merchantId, $storeCode, $productId, Google_Service_Content_InventorySetRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_Content_InventorySetResponse"); - } -} - -/** - * The "products" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $products = $contentService->products; - * - */ -class Google_Service_Content_Products_Resource extends Google_Service_Resource -{ - - /** - * Retrieves, inserts, and deletes multiple products in a single request. - * (products.custombatch) - * - * @param Google_ProductsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - * @return Google_Service_Content_ProductsCustomBatchResponse - */ - public function custombatch(Google_Service_Content_ProductsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_ProductsCustomBatchResponse"); - } - /** - * Deletes a product from your Merchant Center account. (products.delete) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - */ - public function delete($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a product from your Merchant Center account. (products.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_Content_Product - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_Product"); - } - /** - * Uploads a product to your Merchant Center account. (products.insert) - * - * @param string $merchantId - * The ID of the managing account. - * @param Google_Product $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - * @return Google_Service_Content_Product - */ - public function insert($merchantId, Google_Service_Content_Product $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Content_Product"); - } - /** - * Lists the products in your Merchant Center account. (products.listProducts) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. - * @return Google_Service_Content_ProductsListResponse - */ - public function listProducts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_ProductsListResponse"); - } -} - -/** - * The "productstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_Content(...); - * $productstatuses = $contentService->productstatuses; - * - */ -class Google_Service_Content_Productstatuses_Resource extends Google_Service_Resource -{ - - /** - * Gets the statuses of multiple products in a single request. - * (productstatuses.custombatch) - * - * @param Google_ProductstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Content_ProductstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_Content_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_Content_ProductstatusesCustomBatchResponse"); - } - /** - * Gets the status of a product from your Merchant Center account. - * (productstatuses.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_Content_ProductStatus - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Content_ProductStatus"); - } - /** - * Lists the statuses of the products in your Merchant Center account. - * (productstatuses.listProductstatuses) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of product statuses to return in the response, used for paging. - * @return Google_Service_Content_ProductstatusesListResponse - */ - public function listProductstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Content_ProductstatusesListResponse"); - } -} - - - - -class Google_Service_Content_Account extends Google_Collection -{ - public $adultContent; - protected $adwordsLinksType = 'Google_Service_Content_AccountAdwordsLink'; - protected $adwordsLinksDataType = 'array'; - public $id; - public $kind; - public $name; - public $reviewsUrl; - public $sellerId; - protected $usersType = 'Google_Service_Content_AccountUser'; - protected $usersDataType = 'array'; - public $websiteUrl; - - public function setAdultContent($adultContent) - { - $this->adultContent = $adultContent; - } - - public function getAdultContent() - { - return $this->adultContent; - } - - public function setAdwordsLinks($adwordsLinks) - { - $this->adwordsLinks = $adwordsLinks; - } - - public function getAdwordsLinks() - { - return $this->adwordsLinks; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setReviewsUrl($reviewsUrl) - { - $this->reviewsUrl = $reviewsUrl; - } - - public function getReviewsUrl() - { - return $this->reviewsUrl; - } - - public function setSellerId($sellerId) - { - $this->sellerId = $sellerId; - } - - public function getSellerId() - { - return $this->sellerId; - } - - public function setUsers($users) - { - $this->users = $users; - } - - public function getUsers() - { - return $this->users; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Content_AccountAdwordsLink extends Google_Model -{ - public $adwordsId; - public $status; - - public function setAdwordsId($adwordsId) - { - $this->adwordsId = $adwordsId; - } - - public function getAdwordsId() - { - return $this->adwordsId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Content_AccountStatus extends Google_Collection -{ - public $accountId; - protected $dataQualityIssuesType = 'Google_Service_Content_AccountStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - public $kind; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_AccountStatusDataQualityIssue extends Google_Collection -{ - public $country; - public $displayedValue; - protected $exampleItemsType = 'Google_Service_Content_AccountStatusExampleItem'; - protected $exampleItemsDataType = 'array'; - public $id; - public $lastChecked; - public $numItems; - public $severity; - public $submittedValue; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setDisplayedValue($displayedValue) - { - $this->displayedValue = $displayedValue; - } - - public function getDisplayedValue() - { - return $this->displayedValue; - } - - public function setExampleItems($exampleItems) - { - $this->exampleItems = $exampleItems; - } - - public function getExampleItems() - { - return $this->exampleItems; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLastChecked($lastChecked) - { - $this->lastChecked = $lastChecked; - } - - public function getLastChecked() - { - return $this->lastChecked; - } - - public function setNumItems($numItems) - { - $this->numItems = $numItems; - } - - public function getNumItems() - { - return $this->numItems; - } - - public function setSeverity($severity) - { - $this->severity = $severity; - } - - public function getSeverity() - { - return $this->severity; - } - - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - - public function getSubmittedValue() - { - return $this->submittedValue; - } -} - -class Google_Service_Content_AccountStatusExampleItem extends Google_Model -{ - public $itemId; - public $link; - public $submittedValue; - public $title; - public $valueOnLandingPage; - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - - public function getItemId() - { - return $this->itemId; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - - public function getSubmittedValue() - { - return $this->submittedValue; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } -} - -class Google_Service_Content_AccountUser extends Google_Model -{ - public $admin; - public $emailAddress; - - public function setAdmin($admin) - { - $this->admin = $admin; - } - - public function getAdmin() - { - return $this->admin; - } - - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - - public function getEmailAddress() - { - return $this->emailAddress; - } -} - -class Google_Service_Content_AccountsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_AccountsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_AccountsCustomBatchRequestEntry extends Google_Model -{ - protected $accountType = 'Google_Service_Content_Account'; - protected $accountDataType = ''; - public $accountId; - public $batchId; - public $merchantId; - public $method; - - public function setAccount(Google_Service_Content_Account $account) - { - $this->account = $account; - } - - public function getAccount() - { - return $this->account; - } - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_Content_AccountsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_AccountsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_AccountsCustomBatchResponseEntry extends Google_Model -{ - protected $accountType = 'Google_Service_Content_Account'; - protected $accountDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - public $kind; - - public function setAccount(Google_Service_Content_Account $account) - { - $this->account = $account; - } - - public function getAccount() - { - return $this->account; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_AccountsListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_Content_Account'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Content_AccountstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_AccountstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_AccountstatusesCustomBatchRequestEntry extends Google_Model -{ - public $accountId; - public $batchId; - public $merchantId; - public $method; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_Content_AccountstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_AccountstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_AccountstatusesCustomBatchResponseEntry extends Google_Model -{ - protected $accountStatusType = 'Google_Service_Content_AccountStatus'; - protected $accountStatusDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - - public function setAccountStatus(Google_Service_Content_AccountStatus $accountStatus) - { - $this->accountStatus = $accountStatus; - } - - public function getAccountStatus() - { - return $this->accountStatus; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Content_AccountstatusesListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_Content_AccountStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Content_Datafeed extends Google_Collection -{ - public $attributeLanguage; - public $contentLanguage; - public $contentType; - protected $fetchScheduleType = 'Google_Service_Content_DatafeedFetchSchedule'; - protected $fetchScheduleDataType = ''; - public $fileName; - protected $formatType = 'Google_Service_Content_DatafeedFormat'; - protected $formatDataType = ''; - public $id; - public $intendedDestinations; - public $kind; - public $name; - public $targetCountry; - - public function setAttributeLanguage($attributeLanguage) - { - $this->attributeLanguage = $attributeLanguage; - } - - public function getAttributeLanguage() - { - return $this->attributeLanguage; - } - - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - - public function getContentLanguage() - { - return $this->contentLanguage; - } - - public function setContentType($contentType) - { - $this->contentType = $contentType; - } - - public function getContentType() - { - return $this->contentType; - } - - public function setFetchSchedule(Google_Service_Content_DatafeedFetchSchedule $fetchSchedule) - { - $this->fetchSchedule = $fetchSchedule; - } - - public function getFetchSchedule() - { - return $this->fetchSchedule; - } - - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - - public function getFileName() - { - return $this->fileName; - } - - public function setFormat(Google_Service_Content_DatafeedFormat $format) - { - $this->format = $format; - } - - public function getFormat() - { - return $this->format; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIntendedDestinations($intendedDestinations) - { - $this->intendedDestinations = $intendedDestinations; - } - - public function getIntendedDestinations() - { - return $this->intendedDestinations; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - - public function getTargetCountry() - { - return $this->targetCountry; - } -} - -class Google_Service_Content_DatafeedFetchSchedule extends Google_Model -{ - public $dayOfMonth; - public $fetchUrl; - public $hour; - public $password; - public $timeZone; - public $username; - public $weekday; - - public function setDayOfMonth($dayOfMonth) - { - $this->dayOfMonth = $dayOfMonth; - } - - public function getDayOfMonth() - { - return $this->dayOfMonth; - } - - public function setFetchUrl($fetchUrl) - { - $this->fetchUrl = $fetchUrl; - } - - public function getFetchUrl() - { - return $this->fetchUrl; - } - - public function setHour($hour) - { - $this->hour = $hour; - } - - public function getHour() - { - return $this->hour; - } - - public function setPassword($password) - { - $this->password = $password; - } - - public function getPassword() - { - return $this->password; - } - - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } - - public function getTimeZone() - { - return $this->timeZone; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } - - public function setWeekday($weekday) - { - $this->weekday = $weekday; - } - - public function getWeekday() - { - return $this->weekday; - } -} - -class Google_Service_Content_DatafeedFormat extends Google_Model -{ - public $columnDelimiter; - public $fileEncoding; - public $quotingMode; - - public function setColumnDelimiter($columnDelimiter) - { - $this->columnDelimiter = $columnDelimiter; - } - - public function getColumnDelimiter() - { - return $this->columnDelimiter; - } - - public function setFileEncoding($fileEncoding) - { - $this->fileEncoding = $fileEncoding; - } - - public function getFileEncoding() - { - return $this->fileEncoding; - } - - public function setQuotingMode($quotingMode) - { - $this->quotingMode = $quotingMode; - } - - public function getQuotingMode() - { - return $this->quotingMode; - } -} - -class Google_Service_Content_DatafeedStatus extends Google_Collection -{ - public $datafeedId; - protected $errorsType = 'Google_Service_Content_DatafeedStatusError'; - protected $errorsDataType = 'array'; - public $itemsTotal; - public $itemsValid; - public $kind; - public $processingStatus; - protected $warningsType = 'Google_Service_Content_DatafeedStatusError'; - protected $warningsDataType = 'array'; - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setItemsTotal($itemsTotal) - { - $this->itemsTotal = $itemsTotal; - } - - public function getItemsTotal() - { - return $this->itemsTotal; - } - - public function setItemsValid($itemsValid) - { - $this->itemsValid = $itemsValid; - } - - public function getItemsValid() - { - return $this->itemsValid; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Content_DatafeedStatusError extends Google_Collection -{ - public $code; - public $count; - protected $examplesType = 'Google_Service_Content_DatafeedStatusExample'; - protected $examplesDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setExamples($examples) - { - $this->examples = $examples; - } - - public function getExamples() - { - return $this->examples; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Content_DatafeedStatusExample extends Google_Model -{ - public $itemId; - public $lineNumber; - public $value; - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - - public function getItemId() - { - return $this->itemId; - } - - public function setLineNumber($lineNumber) - { - $this->lineNumber = $lineNumber; - } - - public function getLineNumber() - { - return $this->lineNumber; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Content_DatafeedsBatchRequest extends Google_Collection -{ - protected $entrysType = 'Google_Service_Content_DatafeedsBatchRequestEntry'; - protected $entrysDataType = 'array'; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } -} - -class Google_Service_Content_DatafeedsBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $datafeedsinsertrequestType = 'Google_Service_Content_DatafeedsInsertRequest'; - protected $datafeedsinsertrequestDataType = ''; - protected $datafeedsupdaterequestType = 'Google_Service_Content_DatafeedsUpdateRequest'; - protected $datafeedsupdaterequestDataType = ''; - public $methodName; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedsinsertrequest(Google_Service_Content_DatafeedsInsertRequest $datafeedsinsertrequest) - { - $this->datafeedsinsertrequest = $datafeedsinsertrequest; - } - - public function getDatafeedsinsertrequest() - { - return $this->datafeedsinsertrequest; - } - - public function setDatafeedsupdaterequest(Google_Service_Content_DatafeedsUpdateRequest $datafeedsupdaterequest) - { - $this->datafeedsupdaterequest = $datafeedsupdaterequest; - } - - public function getDatafeedsupdaterequest() - { - return $this->datafeedsupdaterequest; - } - - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - - public function getMethodName() - { - return $this->methodName; - } -} - -class Google_Service_Content_DatafeedsBatchResponse extends Google_Collection -{ - protected $entrysType = 'Google_Service_Content_DatafeedsBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_DatafeedsBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedsgetresponseType = 'Google_Service_Content_DatafeedsGetResponse'; - protected $datafeedsgetresponseDataType = ''; - protected $datafeedsinsertresponseType = 'Google_Service_Content_DatafeedsInsertResponse'; - protected $datafeedsinsertresponseDataType = ''; - protected $datafeedsupdateresponseType = 'Google_Service_Content_DatafeedsUpdateResponse'; - protected $datafeedsupdateresponseDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedsgetresponse(Google_Service_Content_DatafeedsGetResponse $datafeedsgetresponse) - { - $this->datafeedsgetresponse = $datafeedsgetresponse; - } - - public function getDatafeedsgetresponse() - { - return $this->datafeedsgetresponse; - } - - public function setDatafeedsinsertresponse(Google_Service_Content_DatafeedsInsertResponse $datafeedsinsertresponse) - { - $this->datafeedsinsertresponse = $datafeedsinsertresponse; - } - - public function getDatafeedsinsertresponse() - { - return $this->datafeedsinsertresponse; - } - - public function setDatafeedsupdateresponse(Google_Service_Content_DatafeedsUpdateResponse $datafeedsupdateresponse) - { - $this->datafeedsupdateresponse = $datafeedsupdateresponse; - } - - public function getDatafeedsupdateresponse() - { - return $this->datafeedsupdateresponse; - } -} - -class Google_Service_Content_DatafeedsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_DatafeedsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_DatafeedsCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $datafeedType = 'Google_Service_Content_Datafeed'; - protected $datafeedDataType = ''; - public $datafeedId; - public $merchantId; - public $method; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeed(Google_Service_Content_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - - public function getDatafeed() - { - return $this->datafeed; - } - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_Content_DatafeedsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_DatafeedsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_DatafeedsCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedType = 'Google_Service_Content_Datafeed'; - protected $datafeedDataType = ''; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeed(Google_Service_Content_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - - public function getDatafeed() - { - return $this->datafeed; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Content_DatafeedsGetResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_Content_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_Content_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedsInsertRequest extends Google_Model -{ - protected $resourceType = 'Google_Service_Content_Datafeed'; - protected $resourceDataType = ''; - - public function setResource(Google_Service_Content_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedsInsertResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_Content_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_Content_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedsListResponse extends Google_Collection -{ - public $kind; - protected $resourcesType = 'Google_Service_Content_Datafeed'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Content_DatafeedsUpdateRequest extends Google_Model -{ - protected $resourceType = 'Google_Service_Content_Datafeed'; - protected $resourceDataType = ''; - - public function setResource(Google_Service_Content_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedsUpdateResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_Content_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_Content_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedstatusesBatchRequest extends Google_Collection -{ - protected $entrysType = 'Google_Service_Content_DatafeedstatusesBatchRequestEntry'; - protected $entrysDataType = 'array'; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } -} - -class Google_Service_Content_DatafeedstatusesBatchRequestEntry extends Google_Model -{ - public $batchId; - public $methodName; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - - public function getMethodName() - { - return $this->methodName; - } -} - -class Google_Service_Content_DatafeedstatusesBatchResponse extends Google_Collection -{ - protected $entrysType = 'Google_Service_Content_DatafeedstatusesBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_DatafeedstatusesBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedstatusesgetresponseType = 'Google_Service_Content_DatafeedstatusesGetResponse'; - protected $datafeedstatusesgetresponseDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedstatusesgetresponse(Google_Service_Content_DatafeedstatusesGetResponse $datafeedstatusesgetresponse) - { - $this->datafeedstatusesgetresponse = $datafeedstatusesgetresponse; - } - - public function getDatafeedstatusesgetresponse() - { - return $this->datafeedstatusesgetresponse; - } -} - -class Google_Service_Content_DatafeedstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_DatafeedstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_DatafeedstatusesCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $datafeedId; - public $merchantId; - public $method; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_Content_DatafeedstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_DatafeedstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_DatafeedstatusesCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedStatusType = 'Google_Service_Content_DatafeedStatus'; - protected $datafeedStatusDataType = ''; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedStatus(Google_Service_Content_DatafeedStatus $datafeedStatus) - { - $this->datafeedStatus = $datafeedStatus; - } - - public function getDatafeedStatus() - { - return $this->datafeedStatus; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Content_DatafeedstatusesGetResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_Content_DatafeedStatus'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_Content_DatafeedStatus $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Content_DatafeedstatusesListResponse extends Google_Collection -{ - public $kind; - protected $resourcesType = 'Google_Service_Content_DatafeedStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Content_Error extends Google_Model -{ - public $domain; - public $message; - public $reason; - - public function setDomain($domain) - { - $this->domain = $domain; - } - - public function getDomain() - { - return $this->domain; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } - - public function setReason($reason) - { - $this->reason = $reason; - } - - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_Content_Errors extends Google_Collection -{ - public $code; - protected $errorsType = 'Google_Service_Content_Error'; - protected $errorsDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Content_Inventory extends Google_Model -{ - public $availability; - public $kind; - protected $priceType = 'Google_Service_Content_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_Content_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPrice(Google_Service_Content_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function getQuantity() - { - return $this->quantity; - } - - public function setSalePrice(Google_Service_Content_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } -} - -class Google_Service_Content_InventoryCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_InventoryCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_InventoryCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $inventoryType = 'Google_Service_Content_Inventory'; - protected $inventoryDataType = ''; - public $merchantId; - public $productId; - public $storeCode; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setInventory(Google_Service_Content_Inventory $inventory) - { - $this->inventory = $inventory; - } - - public function getInventory() - { - return $this->inventory; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } - - public function setStoreCode($storeCode) - { - $this->storeCode = $storeCode; - } - - public function getStoreCode() - { - return $this->storeCode; - } -} - -class Google_Service_Content_InventoryCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_InventoryCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_InventoryCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - public $kind; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_InventorySetRequest extends Google_Model -{ - public $availability; - protected $priceType = 'Google_Service_Content_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_Content_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setPrice(Google_Service_Content_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function getQuantity() - { - return $this->quantity; - } - - public function setSalePrice(Google_Service_Content_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } -} - -class Google_Service_Content_InventorySetResponse extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_LoyaltyPoints extends Google_Model -{ - public $name; - public $pointsValue; - public $ratio; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPointsValue($pointsValue) - { - $this->pointsValue = $pointsValue; - } - - public function getPointsValue() - { - return $this->pointsValue; - } - - public function setRatio($ratio) - { - $this->ratio = $ratio; - } - - public function getRatio() - { - return $this->ratio; - } -} - -class Google_Service_Content_Price extends Google_Model -{ - public $currency; - public $value; - - public function setCurrency($currency) - { - $this->currency = $currency; - } - - public function getCurrency() - { - return $this->currency; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Content_Product extends Google_Collection -{ - public $additionalImageLinks; - public $adult; - public $adwordsGrouping; - public $adwordsLabels; - public $adwordsRedirect; - public $ageGroup; - public $availability; - public $availabilityDate; - public $brand; - public $channel; - public $color; - public $condition; - public $contentLanguage; - protected $customAttributesType = 'Google_Service_Content_ProductCustomAttribute'; - protected $customAttributesDataType = 'array'; - protected $customGroupsType = 'Google_Service_Content_ProductCustomGroup'; - protected $customGroupsDataType = 'array'; - public $customLabel0; - public $customLabel1; - public $customLabel2; - public $customLabel3; - public $customLabel4; - public $description; - protected $destinationsType = 'Google_Service_Content_ProductDestination'; - protected $destinationsDataType = 'array'; - public $energyEfficiencyClass; - public $expirationDate; - public $gender; - public $googleProductCategory; - public $gtin; - public $id; - public $identifierExists; - public $imageLink; - protected $installmentType = 'Google_Service_Content_ProductInstallment'; - protected $installmentDataType = ''; - public $isBundle; - public $itemGroupId; - public $kind; - public $link; - protected $loyaltyPointsType = 'Google_Service_Content_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - public $material; - public $merchantMultipackQuantity; - public $mobileLink; - public $mpn; - public $offerId; - public $onlineOnly; - public $pattern; - protected $priceType = 'Google_Service_Content_Price'; - protected $priceDataType = ''; - public $productType; - protected $salePriceType = 'Google_Service_Content_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - protected $shippingType = 'Google_Service_Content_ProductShipping'; - protected $shippingDataType = 'array'; - protected $shippingWeightType = 'Google_Service_Content_ProductShippingWeight'; - protected $shippingWeightDataType = ''; - public $sizeSystem; - public $sizeType; - public $sizes; - public $targetCountry; - protected $taxesType = 'Google_Service_Content_ProductTax'; - protected $taxesDataType = 'array'; - public $title; - public $unitPricingBaseMeasure; - public $unitPricingMeasure; - public $validatedDestinations; - protected $warningsType = 'Google_Service_Content_Error'; - protected $warningsDataType = 'array'; - - public function setAdditionalImageLinks($additionalImageLinks) - { - $this->additionalImageLinks = $additionalImageLinks; - } - - public function getAdditionalImageLinks() - { - return $this->additionalImageLinks; - } - - public function setAdult($adult) - { - $this->adult = $adult; - } - - public function getAdult() - { - return $this->adult; - } - - public function setAdwordsGrouping($adwordsGrouping) - { - $this->adwordsGrouping = $adwordsGrouping; - } - - public function getAdwordsGrouping() - { - return $this->adwordsGrouping; - } - - public function setAdwordsLabels($adwordsLabels) - { - $this->adwordsLabels = $adwordsLabels; - } - - public function getAdwordsLabels() - { - return $this->adwordsLabels; - } - - public function setAdwordsRedirect($adwordsRedirect) - { - $this->adwordsRedirect = $adwordsRedirect; - } - - public function getAdwordsRedirect() - { - return $this->adwordsRedirect; - } - - public function setAgeGroup($ageGroup) - { - $this->ageGroup = $ageGroup; - } - - public function getAgeGroup() - { - return $this->ageGroup; - } - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setAvailabilityDate($availabilityDate) - { - $this->availabilityDate = $availabilityDate; - } - - public function getAvailabilityDate() - { - return $this->availabilityDate; - } - - public function setBrand($brand) - { - $this->brand = $brand; - } - - public function getBrand() - { - return $this->brand; - } - - public function setChannel($channel) - { - $this->channel = $channel; - } - - public function getChannel() - { - return $this->channel; - } - - public function setColor($color) - { - $this->color = $color; - } - - public function getColor() - { - return $this->color; - } - - public function setCondition($condition) - { - $this->condition = $condition; - } - - public function getCondition() - { - return $this->condition; - } - - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - - public function getContentLanguage() - { - return $this->contentLanguage; - } - - public function setCustomAttributes($customAttributes) - { - $this->customAttributes = $customAttributes; - } - - public function getCustomAttributes() - { - return $this->customAttributes; - } - - public function setCustomGroups($customGroups) - { - $this->customGroups = $customGroups; - } - - public function getCustomGroups() - { - return $this->customGroups; - } - - public function setCustomLabel0($customLabel0) - { - $this->customLabel0 = $customLabel0; - } - - public function getCustomLabel0() - { - return $this->customLabel0; - } - - public function setCustomLabel1($customLabel1) - { - $this->customLabel1 = $customLabel1; - } - - public function getCustomLabel1() - { - return $this->customLabel1; - } - - public function setCustomLabel2($customLabel2) - { - $this->customLabel2 = $customLabel2; - } - - public function getCustomLabel2() - { - return $this->customLabel2; - } - - public function setCustomLabel3($customLabel3) - { - $this->customLabel3 = $customLabel3; - } - - public function getCustomLabel3() - { - return $this->customLabel3; - } - - public function setCustomLabel4($customLabel4) - { - $this->customLabel4 = $customLabel4; - } - - public function getCustomLabel4() - { - return $this->customLabel4; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDestinations($destinations) - { - $this->destinations = $destinations; - } - - public function getDestinations() - { - return $this->destinations; - } - - public function setEnergyEfficiencyClass($energyEfficiencyClass) - { - $this->energyEfficiencyClass = $energyEfficiencyClass; - } - - public function getEnergyEfficiencyClass() - { - return $this->energyEfficiencyClass; - } - - public function setExpirationDate($expirationDate) - { - $this->expirationDate = $expirationDate; - } - - public function getExpirationDate() - { - return $this->expirationDate; - } - - public function setGender($gender) - { - $this->gender = $gender; - } - - public function getGender() - { - return $this->gender; - } - - public function setGoogleProductCategory($googleProductCategory) - { - $this->googleProductCategory = $googleProductCategory; - } - - public function getGoogleProductCategory() - { - return $this->googleProductCategory; - } - - public function setGtin($gtin) - { - $this->gtin = $gtin; - } - - public function getGtin() - { - return $this->gtin; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIdentifierExists($identifierExists) - { - $this->identifierExists = $identifierExists; - } - - public function getIdentifierExists() - { - return $this->identifierExists; - } - - public function setImageLink($imageLink) - { - $this->imageLink = $imageLink; - } - - public function getImageLink() - { - return $this->imageLink; - } - - public function setInstallment(Google_Service_Content_ProductInstallment $installment) - { - $this->installment = $installment; - } - - public function getInstallment() - { - return $this->installment; - } - - public function setIsBundle($isBundle) - { - $this->isBundle = $isBundle; - } - - public function getIsBundle() - { - return $this->isBundle; - } - - public function setItemGroupId($itemGroupId) - { - $this->itemGroupId = $itemGroupId; - } - - public function getItemGroupId() - { - return $this->itemGroupId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setLoyaltyPoints(Google_Service_Content_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - - public function setMaterial($material) - { - $this->material = $material; - } - - public function getMaterial() - { - return $this->material; - } - - public function setMerchantMultipackQuantity($merchantMultipackQuantity) - { - $this->merchantMultipackQuantity = $merchantMultipackQuantity; - } - - public function getMerchantMultipackQuantity() - { - return $this->merchantMultipackQuantity; - } - - public function setMobileLink($mobileLink) - { - $this->mobileLink = $mobileLink; - } - - public function getMobileLink() - { - return $this->mobileLink; - } - - public function setMpn($mpn) - { - $this->mpn = $mpn; - } - - public function getMpn() - { - return $this->mpn; - } - - public function setOfferId($offerId) - { - $this->offerId = $offerId; - } - - public function getOfferId() - { - return $this->offerId; - } - - public function setOnlineOnly($onlineOnly) - { - $this->onlineOnly = $onlineOnly; - } - - public function getOnlineOnly() - { - return $this->onlineOnly; - } - - public function setPattern($pattern) - { - $this->pattern = $pattern; - } - - public function getPattern() - { - return $this->pattern; - } - - public function setPrice(Google_Service_Content_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setProductType($productType) - { - $this->productType = $productType; - } - - public function getProductType() - { - return $this->productType; - } - - public function setSalePrice(Google_Service_Content_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - - public function setShipping($shipping) - { - $this->shipping = $shipping; - } - - public function getShipping() - { - return $this->shipping; - } - - public function setShippingWeight(Google_Service_Content_ProductShippingWeight $shippingWeight) - { - $this->shippingWeight = $shippingWeight; - } - - public function getShippingWeight() - { - return $this->shippingWeight; - } - - public function setSizeSystem($sizeSystem) - { - $this->sizeSystem = $sizeSystem; - } - - public function getSizeSystem() - { - return $this->sizeSystem; - } - - public function setSizeType($sizeType) - { - $this->sizeType = $sizeType; - } - - public function getSizeType() - { - return $this->sizeType; - } - - public function setSizes($sizes) - { - $this->sizes = $sizes; - } - - public function getSizes() - { - return $this->sizes; - } - - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - - public function getTargetCountry() - { - return $this->targetCountry; - } - - public function setTaxes($taxes) - { - $this->taxes = $taxes; - } - - public function getTaxes() - { - return $this->taxes; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) - { - $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; - } - - public function getUnitPricingBaseMeasure() - { - return $this->unitPricingBaseMeasure; - } - - public function setUnitPricingMeasure($unitPricingMeasure) - { - $this->unitPricingMeasure = $unitPricingMeasure; - } - - public function getUnitPricingMeasure() - { - return $this->unitPricingMeasure; - } - - public function setValidatedDestinations($validatedDestinations) - { - $this->validatedDestinations = $validatedDestinations; - } - - public function getValidatedDestinations() - { - return $this->validatedDestinations; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Content_ProductCustomAttribute extends Google_Model -{ - public $name; - public $type; - public $unit; - public $value; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Content_ProductCustomGroup extends Google_Collection -{ - protected $attributesType = 'Google_Service_Content_ProductCustomAttribute'; - protected $attributesDataType = 'array'; - public $name; - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - - public function getAttributes() - { - return $this->attributes; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } -} - -class Google_Service_Content_ProductDestination extends Google_Model -{ - public $destinationName; - public $intention; - - public function setDestinationName($destinationName) - { - $this->destinationName = $destinationName; - } - - public function getDestinationName() - { - return $this->destinationName; - } - - public function setIntention($intention) - { - $this->intention = $intention; - } - - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_Content_ProductInstallment extends Google_Model -{ - protected $amountType = 'Google_Service_Content_Price'; - protected $amountDataType = ''; - public $months; - - public function setAmount(Google_Service_Content_Price $amount) - { - $this->amount = $amount; - } - - public function getAmount() - { - return $this->amount; - } - - public function setMonths($months) - { - $this->months = $months; - } - - public function getMonths() - { - return $this->months; - } -} - -class Google_Service_Content_ProductShipping extends Google_Model -{ - public $country; - protected $priceType = 'Google_Service_Content_Price'; - protected $priceDataType = ''; - public $region; - public $service; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setPrice(Google_Service_Content_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setService($service) - { - $this->service = $service; - } - - public function getService() - { - return $this->service; - } -} - -class Google_Service_Content_ProductShippingWeight extends Google_Model -{ - public $unit; - public $value; - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Content_ProductStatus extends Google_Collection -{ - protected $dataQualityIssuesType = 'Google_Service_Content_ProductStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - protected $destinationStatusesType = 'Google_Service_Content_ProductStatusDestinationStatus'; - protected $destinationStatusesDataType = 'array'; - public $kind; - public $link; - public $productId; - public $title; - - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - - public function setDestinationStatuses($destinationStatuses) - { - $this->destinationStatuses = $destinationStatuses; - } - - public function getDestinationStatuses() - { - return $this->destinationStatuses; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Content_ProductStatusDataQualityIssue extends Google_Model -{ - public $detail; - public $fetchStatus; - public $id; - public $location; - public $timestamp; - public $valueOnLandingPage; - public $valueProvided; - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function getDetail() - { - return $this->detail; - } - - public function setFetchStatus($fetchStatus) - { - $this->fetchStatus = $fetchStatus; - } - - public function getFetchStatus() - { - return $this->fetchStatus; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLocation($location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - - public function getTimestamp() - { - return $this->timestamp; - } - - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } - - public function setValueProvided($valueProvided) - { - $this->valueProvided = $valueProvided; - } - - public function getValueProvided() - { - return $this->valueProvided; - } -} - -class Google_Service_Content_ProductStatusDestinationStatus extends Google_Model -{ - public $approvalStatus; - public $destination; - public $intention; - - public function setApprovalStatus($approvalStatus) - { - $this->approvalStatus = $approvalStatus; - } - - public function getApprovalStatus() - { - return $this->approvalStatus; - } - - public function setDestination($destination) - { - $this->destination = $destination; - } - - public function getDestination() - { - return $this->destination; - } - - public function setIntention($intention) - { - $this->intention = $intention; - } - - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_Content_ProductTax extends Google_Model -{ - public $country; - public $rate; - public $region; - public $taxShip; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - - public function getRate() - { - return $this->rate; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setTaxShip($taxShip) - { - $this->taxShip = $taxShip; - } - - public function getTaxShip() - { - return $this->taxShip; - } -} - -class Google_Service_Content_ProductsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_ProductsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_ProductsCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $merchantId; - public $method; - protected $productType = 'Google_Service_Content_Product'; - protected $productDataType = ''; - public $productId; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } - - public function setProduct(Google_Service_Content_Product $product) - { - $this->product = $product; - } - - public function getProduct() - { - return $this->product; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_Content_ProductsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_ProductsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_ProductsCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productType = 'Google_Service_Content_Product'; - protected $productDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProduct(Google_Service_Content_Product $product) - { - $this->product = $product; - } - - public function getProduct() - { - return $this->product; - } -} - -class Google_Service_Content_ProductsListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_Content_Product'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Content_ProductstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_ProductstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Content_ProductstatusesCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $merchantId; - public $method; - public $productId; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_Content_ProductstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_Content_ProductstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Content_ProductstatusesCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_Content_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productStatusType = 'Google_Service_Content_ProductStatus'; - protected $productStatusDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_Content_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProductStatus(Google_Service_Content_ProductStatus $productStatus) - { - $this->productStatus = $productStatus; - } - - public function getProductStatus() - { - return $this->productStatus; - } -} - -class Google_Service_Content_ProductstatusesListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_Content_ProductStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} From d1e939968b9b1ac983eeb3c8c4f1c51edb3ee38a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:04 -0700 Subject: [PATCH 0069/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index e8eb4a781..dbd0c809f 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -2919,6 +2919,11 @@ public function getCoordinates() } } +class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model +{ + +} + class Google_Service_MapsEngine_IconStyle extends Google_Model { public $id; From a6df8bec8ef2d51d867cf42902be1e99e747276d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:05 -0700 Subject: [PATCH 0070/1274] Updated Storage.php --- src/Google/Service/Storage.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index b005dd795..ff432b493 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -2626,6 +2626,11 @@ public function getType() } } +class Google_Service_Storage_ChannelParams extends Google_Model +{ + +} + class Google_Service_Storage_ComposeRequest extends Google_Collection { protected $destinationType = 'Google_Service_Storage_StorageObject'; @@ -3237,6 +3242,11 @@ public function getUpdated() } } +class Google_Service_Storage_StorageObjectMetadata extends Google_Model +{ + +} + class Google_Service_Storage_StorageObjectOwner extends Google_Model { public $entity; From b6872248d06d1e4002c67246af91cdd7facf37a9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:05 -0700 Subject: [PATCH 0071/1274] Updated Compute.php --- src/Google/Service/Compute.php | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index a087c0ada..0d21c71b4 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -5737,6 +5737,11 @@ public function getSelfLink() } } +class Google_Service_Compute_AddressAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_AddressList extends Google_Collection { public $id; @@ -6656,6 +6661,11 @@ public function getSelfLink() } } +class Google_Service_Compute_DiskAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_DiskList extends Google_Collection { public $id; @@ -6880,6 +6890,11 @@ public function getSelfLink() } } +class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_DiskTypeList extends Google_Collection { public $id; @@ -7521,6 +7536,11 @@ public function getSelfLink() } } +class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_ForwardingRuleList extends Google_Collection { public $id; @@ -8494,6 +8514,11 @@ public function getSelfLink() } } +class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_InstanceList extends Google_Collection { public $id; @@ -8918,6 +8943,11 @@ public function getSelfLink() } } +class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_MachineTypeList extends Google_Collection { public $id; @@ -9658,6 +9688,11 @@ public function getSelfLink() } } +class Google_Service_Compute_OperationAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_OperationError extends Google_Collection { protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; @@ -11256,6 +11291,11 @@ public function getSelfLink() } } +class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_TargetInstanceList extends Google_Collection { public $id; @@ -11604,6 +11644,11 @@ public function getSelfLink() } } +class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model +{ + +} + class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection { protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; From 00a4e1b846713d2ebf1c254153f8f408ea961331 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:06 -0700 Subject: [PATCH 0072/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 583d8220e..7198d7ee5 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1111,6 +1111,11 @@ public function getPhaseset() } } +class Google_Service_Genomics_CallInfo extends Google_Model +{ + +} + class Google_Service_Genomics_Callset extends Google_Model { public $created; @@ -1170,6 +1175,11 @@ public function getName() } } +class Google_Service_Genomics_CallsetInfo extends Google_Model +{ + +} + class Google_Service_Genomics_ContigBound extends Google_Model { public $contig; @@ -1876,6 +1886,11 @@ public function getValue() } } +class Google_Service_Genomics_MetadataInfo extends Google_Model +{ + +} + class Google_Service_Genomics_Program extends Google_Model { public $commandLine; @@ -2240,6 +2255,11 @@ public function getSequencingTechnology() } } +class Google_Service_Genomics_ReadTags extends Google_Model +{ + +} + class Google_Service_Genomics_Readset extends Google_Collection { public $created; @@ -2969,3 +2989,8 @@ public function getReferenceBases() return $this->referenceBases; } } + +class Google_Service_Genomics_VariantInfo extends Google_Model +{ + +} From 8885729078ad2f8e0f93d280795146b8f5926dbf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:06 -0700 Subject: [PATCH 0073/1274] Updated Calendar.php --- src/Google/Service/Calendar.php | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 1557e7745..adb10426e 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -2545,6 +2545,11 @@ public function getType() } } +class Google_Service_Calendar_ChannelParams extends Google_Model +{ + +} + class Google_Service_Calendar_ColorDefinition extends Google_Model { public $background; @@ -2621,6 +2626,16 @@ public function getUpdated() } } +class Google_Service_Calendar_ColorsCalendar extends Google_Model +{ + +} + +class Google_Service_Calendar_ColorsEvent extends Google_Model +{ + +} + class Google_Service_Calendar_Error extends Google_Model { public $domain; @@ -3282,6 +3297,16 @@ public function getShared() } } +class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model +{ + +} + +class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model +{ + +} + class Google_Service_Calendar_EventGadget extends Google_Model { public $display; @@ -3374,6 +3399,11 @@ public function getWidth() } } +class Google_Service_Calendar_EventGadgetPreferences extends Google_Model +{ + +} + class Google_Service_Calendar_EventOrganizer extends Google_Model { public $displayName; @@ -3830,6 +3860,16 @@ public function getTimeMin() } } +class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model +{ + +} + +class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model +{ + +} + class Google_Service_Calendar_Setting extends Google_Model { public $etag; From cd4d36ff949d489ba6393c1b5c69824762fa14da Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:06 -0700 Subject: [PATCH 0074/1274] Updated Doubleclicksearch.php --- src/Google/Service/Doubleclicksearch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index d32a01771..766deadeb 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -1448,6 +1448,11 @@ public function getStartDate() } } +class Google_Service_Doubleclicksearch_ReportRow extends Google_Model +{ + +} + class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model { public $kind; From 096b6d0974d36f1668a6cfe8456bfc6384530d0b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:07 -0700 Subject: [PATCH 0075/1274] Updated Webfonts.php --- src/Google/Service/Webfonts.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index cdab4aece..3083266ef 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -195,6 +195,11 @@ public function getVersion() } } +class Google_Service_Webfonts_WebfontFiles extends Google_Model +{ + +} + class Google_Service_Webfonts_WebfontList extends Google_Collection { protected $itemsType = 'Google_Service_Webfonts_Webfont'; From 51a11dda9081055dee5775287c61fdffcf815421 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:07 -0700 Subject: [PATCH 0076/1274] Updated CivicInfo.php --- src/Google/Service/CivicInfo.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index a33b900e6..daa65862b 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -1392,6 +1392,21 @@ public function getStatus() } } +class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model +{ + +} + +class Google_Service_CivicInfo_RepresentativeInfoResponseOffices extends Google_Model +{ + +} + +class Google_Service_CivicInfo_RepresentativeInfoResponseOfficials extends Google_Model +{ + +} + class Google_Service_CivicInfo_SimpleAddressType extends Google_Model { public $city; From ac39de5e6e40837829cb0b694595e24ebbccfaab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:07 -0700 Subject: [PATCH 0077/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 4041b904c..a5fd7cfb3 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -2452,6 +2452,11 @@ public function getState() } } +class Google_Service_Bigquery_JsonObject extends Google_Model +{ + +} + class Google_Service_Bigquery_ProjectList extends Google_Collection { public $etag; From 59b2624b1fd8d9fdb22087bd7c7a69fdea24135a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:08 -0700 Subject: [PATCH 0078/1274] Updated Manager.php --- src/Google/Service/Manager.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index ef9c7ee62..e99718862 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -686,6 +686,11 @@ public function getTemplateName() } } +class Google_Service_Manager_DeploymentModules extends Google_Model +{ + +} + class Google_Service_Manager_DeploymentsListResponse extends Google_Collection { public $nextPageToken; @@ -1584,6 +1589,11 @@ public function getResourceView() } } +class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model +{ + +} + class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model { public $replicaPoolUrl; @@ -1892,6 +1902,16 @@ public function getName() } } +class Google_Service_Manager_TemplateActions extends Google_Model +{ + +} + +class Google_Service_Manager_TemplateModules extends Google_Model +{ + +} + class Google_Service_Manager_TemplatesListResponse extends Google_Collection { public $nextPageToken; From 238a6289da20a72b83ef4b0b1cf57aa6ccc4326d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:08 -0700 Subject: [PATCH 0079/1274] Updated Reports.php --- src/Google/Service/Reports.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index f1ab72044..bf6cdd1f3 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -873,6 +873,11 @@ public function getType() } } +class Google_Service_Reports_ChannelParams extends Google_Model +{ + +} + class Google_Service_Reports_UsageReport extends Google_Collection { public $date; @@ -1052,6 +1057,11 @@ public function getStringValue() } } +class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model +{ + +} + class Google_Service_Reports_UsageReports extends Google_Collection { public $etag; From 075031356026aa727a2052b46eeb48afc980294b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:09 -0700 Subject: [PATCH 0080/1274] Updated Analytics.php --- src/Google/Service/Analytics.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index fc23db2fa..45c3380a7 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -4231,6 +4231,11 @@ public function getKind() } } +class Google_Service_Analytics_ColumnAttributes extends Google_Model +{ + +} + class Google_Service_Analytics_Columns extends Google_Collection { public $attributeNames; @@ -6971,6 +6976,11 @@ public function getStartIndex() } } +class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model +{ + +} + class Google_Service_Analytics_Goal extends Google_Model { public $accountId; @@ -7990,6 +8000,11 @@ public function getNodeValue() } } +class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model +{ + +} + class Google_Service_Analytics_Profile extends Google_Model { public $accountId; @@ -8987,6 +9002,11 @@ public function getSort() } } +class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model +{ + +} + class Google_Service_Analytics_Segment extends Google_Model { public $created; From 0ea278f39c19c021d0063d853614677c6eca497a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:09 -0700 Subject: [PATCH 0081/1274] Updated Cloudmonitoring.php --- src/Google/Service/Cloudmonitoring.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Cloudmonitoring.php b/src/Google/Service/Cloudmonitoring.php index 850e6b5b1..6fba8da35 100644 --- a/src/Google/Service/Cloudmonitoring.php +++ b/src/Google/Service/Cloudmonitoring.php @@ -969,3 +969,8 @@ public function getProject() return $this->project; } } + +class Google_Service_Cloudmonitoring_TimeseriesDescriptorLabels extends Google_Model +{ + +} From d76205eb43fd30ab4b71bf72f6ad0d9fd810f364 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:09 -0700 Subject: [PATCH 0082/1274] Updated Prediction.php --- src/Google/Service/Prediction.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index 400bb3777..33286ba24 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -708,6 +708,11 @@ public function getValue() } } +class Google_Service_Prediction_AnalyzeErrors extends Google_Model +{ + +} + class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model { public $confusionMatrix; @@ -746,6 +751,21 @@ public function getModelinfo() } } +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model +{ + +} + +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model +{ + +} + +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model +{ + +} + class Google_Service_Prediction_Input extends Google_Model { protected $inputType = 'Google_Service_Prediction_InputInput'; @@ -1092,6 +1112,11 @@ public function getOutput() } } +class Google_Service_Prediction_InsertUtility extends Google_Model +{ + +} + class Google_Service_Prediction_Output extends Google_Collection { public $id; From bade60515a1bbcc736593fc862b7de26dc5722d9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:09 -0700 Subject: [PATCH 0083/1274] Updated IdentityToolkit.php --- src/Google/Service/IdentityToolkit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index f248f9c3f..03b2c5930 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -601,6 +601,11 @@ public function getLocalId() } } +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model +{ + +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model { public $email; From edb90204d6b0693cdf5ee7bb68a8a71558a14930 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:10 -0700 Subject: [PATCH 0084/1274] Updated Drive.php --- src/Google/Service/Drive.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index aaa94c035..1ed485817 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -3624,6 +3624,11 @@ public function getType() } } +class Google_Service_Drive_ChannelParams extends Google_Model +{ + +} + class Google_Service_Drive_ChildList extends Google_Collection { public $etag; @@ -4719,6 +4724,11 @@ public function getWritersCanShare() } } +class Google_Service_Drive_DriveFileExportLinks extends Google_Model +{ + +} + class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model { public $aperture; @@ -5066,6 +5076,11 @@ public function getViewed() } } +class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model +{ + +} + class Google_Service_Drive_DriveFileThumbnail extends Google_Model { public $image; @@ -5826,6 +5841,11 @@ public function getSelfLink() } } +class Google_Service_Drive_RevisionExportLinks extends Google_Model +{ + +} + class Google_Service_Drive_RevisionList extends Google_Collection { public $etag; From fbda7f4163a242eae2f7bdc6bd995fd5f9fd4893 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:10 -0700 Subject: [PATCH 0085/1274] Updated Directory.php --- src/Google/Service/Directory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 7c50ce451..53a739305 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2696,6 +2696,11 @@ public function getType() } } +class Google_Service_Directory_ChannelParams extends Google_Model +{ + +} + class Google_Service_Directory_ChromeOsDevice extends Google_Collection { public $annotatedLocation; From 7eb6b093432c61af9a1d925e72015ff11cfb2591 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:11 -0700 Subject: [PATCH 0086/1274] Updated Customsearch.php --- src/Google/Service/Customsearch.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index cda6256c5..b45c9466d 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -1217,6 +1217,16 @@ public function getName() } } +class Google_Service_Customsearch_ResultPagemap extends Google_Model +{ + +} + +class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model +{ + +} + class Google_Service_Customsearch_Search extends Google_Collection { protected $contextType = 'Google_Service_Customsearch_Context'; @@ -1316,6 +1326,11 @@ public function getUrl() } } +class Google_Service_Customsearch_SearchQueries extends Google_Model +{ + +} + class Google_Service_Customsearch_SearchSearchInformation extends Google_Model { public $formattedSearchTime; From b50cca43402bf87980aabb58df25039922eda2c9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:11 -0700 Subject: [PATCH 0087/1274] Updated Datastore.php --- src/Google/Service/Datastore.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index 1f7bdf2ca..8ec92e253 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -451,6 +451,11 @@ public function getProperties() } } +class Google_Service_Datastore_EntityProperties extends Google_Model +{ + +} + class Google_Service_Datastore_EntityResult extends Google_Model { protected $entityType = 'Google_Service_Datastore_Entity'; From fa3a2dcbef5a2233cfaa9c6fe28bae57c03b6465 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 25 Jul 2014 00:55:11 -0700 Subject: [PATCH 0088/1274] Updated Pagespeedonline.php --- src/Google/Service/Pagespeedonline.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 50437ea99..e1632d75f 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -281,6 +281,11 @@ public function getRuleResults() } } +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model +{ + +} + class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection { public $localizedRuleName; From d7252c325421d003079888782acc060317787645 Mon Sep 17 00:00:00 2001 From: Daniel Zhang Date: Sat, 26 Jul 2014 20:03:23 +0800 Subject: [PATCH 0089/1274] Remove HTTP/1.1 proxy header --- src/Google/IO/Abstract.php | 25 ++++++++++++++++--------- tests/general/IoTest.php | 31 ++++++++++++++++++------------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index ba9fe8d87..2d80afdd8 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -28,7 +28,10 @@ abstract class Google_IO_Abstract { const UNKNOWN_CODE = 0; const FORM_URLENCODED = 'application/x-www-form-urlencoded'; - const CONNECTION_ESTABLISHED = "HTTP/1.0 200 Connection established\r\n\r\n"; + private static $CONNECTION_ESTABLISHED_HEADERS = array( + "HTTP/1.0 200 Connection established\r\n\r\n", + "HTTP/1.1 200 Connection established\r\n\r\n", + ); private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null); /** @var Google_Client */ @@ -249,14 +252,18 @@ protected function updateCachedRequest($cached, $responseHeaders) */ public function parseHttpResponse($respData, $headerSize) { - if (stripos($respData, self::CONNECTION_ESTABLISHED) !== false) { - $respData = str_ireplace(self::CONNECTION_ESTABLISHED, '', $respData); - - // Subtract the proxy header size unless the cURL bug prior to 7.30.0 - // is present which prevented the proxy header size from being taken into - // account. - if (!$this->needsQuirk()) { - $headerSize -= strlen(self::CONNECTION_ESTABLISHED); + // check proxy header + foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { + if (stripos($respData, $established_header) !== false) { + // existed, remove it + $respData = str_ireplace($established_header, '', $respData); + // Subtract the proxy header size unless the cURL bug prior to 7.30.0 + // is present which prevented the proxy header size from being taken into + // account. + if (!$this->needsQuirk()) { + $headerSize -= strlen($established_header); + } + break; } } diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index f4dfa14f1..8710f42fc 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -237,20 +237,25 @@ public function responseChecker($io) $this->assertEquals(null, json_decode($body, true)); // Test transforms from proxies. - $rawHeaders = Google_IO_Abstract::CONNECTION_ESTABLISHED - . "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n"; - $headersSize = strlen($rawHeaders); - // If we have a broken cURL version we have to simulate it to get the - // correct test result. - if ($hasQuirk && get_class($io) === 'Google_IO_Curl') { - $headersSize -= strlen(Google_IO_Abstract::CONNECTION_ESTABLISHED); + $connection_established_headers = array( + "HTTP/1.0 200 Connection established\r\n\r\n", + "HTTP/1.1 200 Connection established\r\n\r\n", + ); + foreach ($connection_established_headers as $established_header) { + $rawHeaders = "{$established_header}HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n"; + $headersSize = strlen($rawHeaders); + // If we have a broken cURL version we have to simulate it to get the + // correct test result. + if ($hasQuirk && get_class($io) === 'Google_IO_Curl') { + $headersSize -= strlen($established_header); + } + $rawBody = "{}"; + + $rawResponse = "$rawHeaders\r\n$rawBody"; + list($headers, $body) = $io->parseHttpResponse($rawResponse, $headersSize); + $this->assertEquals(1, sizeof($headers)); + $this->assertEquals(array(), json_decode($body, true)); } - $rawBody = "{}"; - - $rawResponse = "$rawHeaders\r\n$rawBody"; - list($headers, $body) = $io->parseHttpResponse($rawResponse, $headersSize); - $this->assertEquals(1, sizeof($headers)); - $this->assertEquals(array(), json_decode($body, true)); } public function processEntityRequest($io, $client) From 697a0fe34fdd9a1e9f5d8fd0a21d9533318f6663 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 27 Jul 2014 00:56:48 -0700 Subject: [PATCH 0090/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 76 ++++++++++++++++++++++----------- 1 file changed, 52 insertions(+), 24 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 7198d7ee5..1826ae6c1 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -209,6 +209,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'undelete' => array( + 'path' => 'datasets/{datasetId}/undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'datasets/{datasetId}', 'httpMethod' => 'PUT', @@ -243,7 +253,17 @@ public function __construct(Google_Client $client) 'jobs', array( 'methods' => array( - 'get' => array( + 'cancel' => array( + 'path' => 'jobs/{jobId}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -635,6 +655,22 @@ public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); } + /** + * Undeletes a dataset by restoring a dataset which was deleted via this API. + * This operation is only possible for a week after the deletion occurred. + * (datasets.undelete) + * + * @param string $datasetId + * The ID of the dataset to be undeleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function undelete($datasetId, $optParams = array()) + { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); + } /** * Updates a dataset. (datasets.update) * @@ -703,11 +739,25 @@ public function create(Google_Service_Genomics_ExperimentalCreateJobRequest $pos class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource { + /** + * Cancels a job by ID. Note that it is possible for partial results to be + * generated and stored for cancelled jobs. (jobs.cancel) + * + * @param string $jobId + * Required. The ID of the job. + * @param array $optParams Optional parameters. + */ + public function cancel($jobId, $optParams = array()) + { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } /** * Gets a job by ID. (jobs.get) * * @param string $jobId - * The ID of the job. + * Required. The ID of the job. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Job */ @@ -2262,23 +2312,11 @@ class Google_Service_Genomics_ReadTags extends Google_Model class Google_Service_Genomics_Readset extends Google_Collection { - public $created; public $datasetId; protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; protected $fileDataDataType = 'array'; public $id; public $name; - public $readCount; - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } public function setDatasetId($datasetId) { @@ -2319,16 +2357,6 @@ public function getName() { return $this->name; } - - public function setReadCount($readCount) - { - $this->readCount = $readCount; - } - - public function getReadCount() - { - return $this->readCount; - } } class Google_Service_Genomics_ReferenceSequence extends Google_Model From 6cfbed015679afaf3c197497bd1d44c0927a860f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 31 Jul 2014 00:59:55 -0700 Subject: [PATCH 0091/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index dbd0c809f..d898b708e 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -2156,7 +2156,8 @@ public function get($tableId, $id, $optParams = array()) * @opt_param string intersects * A geometry literal that specifies the spatial restriction of the query. * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. + * The maximum number of items to include in the response, used for paging. The maximum supported + * value is 1000. * @opt_param string pageToken * The continuation token, used to page through large result sets. To get the next page of results, * set this parameter to the value of nextPageToken from the previous response. @@ -3082,7 +3083,7 @@ public function getDatasourceType() return $this->datasourceType; } - public function setDatasources($datasources) + public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) { $this->datasources = $datasources; } @@ -3322,7 +3323,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection { public $bbox; protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = 'array'; + protected $contentsDataType = ''; public $creationTime; public $defaultViewport; public $description; @@ -3347,7 +3348,7 @@ public function getBbox() return $this->bbox; } - public function setContents($contents) + public function setContents(Google_Service_MapsEngine_MapItem $contents) { $this->contents = $contents; } From 5051b676efa0457f5aa919b3cf2d4ddd5d40d03d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 31 Jul 2014 00:59:55 -0700 Subject: [PATCH 0092/1274] Updated Blogger.php --- src/Google/Service/Blogger.php | 84 ++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 3842bec19..2438429b5 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -470,6 +470,36 @@ public function __construct(Google_Client $client) 'type' => 'boolean', ), ), + ),'publish' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'revert' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}/revert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'blogs/{blogId}/pages/{pageId}', 'httpMethod' => 'PUT', @@ -1297,6 +1327,38 @@ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Blogger_Page"); } + /** + * Publishes a draft page. (pages.publish) + * + * @param string $blogId + * The ID of the blog. + * @param string $pageId + * The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Page + */ + public function publish($blogId, $pageId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Blogger_Page"); + } + /** + * Revert a published or scheduled page to draft state. (pages.revert) + * + * @param string $blogId + * The ID of the blog. + * @param string $pageId + * The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Page + */ + public function revert($blogId, $pageId, $optParams = array()) + { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('revert', array($params), "Google_Service_Blogger_Page"); + } /** * Update a page. (pages.update) * @@ -2372,6 +2434,7 @@ class Google_Service_Blogger_Page extends Google_Model protected $blogType = 'Google_Service_Blogger_PageBlog'; protected $blogDataType = ''; public $content; + public $etag; public $id; public $kind; public $published; @@ -2411,6 +2474,16 @@ public function getContent() return $this->content; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setId($id) { $this->id = $id; @@ -2670,6 +2743,7 @@ class Google_Service_Blogger_Post extends Google_Collection protected $blogDataType = ''; public $content; public $customMetaData; + public $etag; public $id; protected $imagesType = 'Google_Service_Blogger_PostImages'; protected $imagesDataType = 'array'; @@ -2728,6 +2802,16 @@ public function getCustomMetaData() return $this->customMetaData; } + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + public function setId($id) { $this->id = $id; From 3784898e3e8ed1a6ebddebe80e9102d4d3de65de Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 31 Jul 2014 00:59:56 -0700 Subject: [PATCH 0093/1274] Updated AndroidPublisher.php --- src/Google/Service/AndroidPublisher.php | 3099 ++++++++++++++++++++++- 1 file changed, 2991 insertions(+), 108 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 957ccb8c8..41a94e097 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -16,7 +16,7 @@ */ /** - * Service definition for AndroidPublisher (v1.1). + * Service definition for AndroidPublisher (v2). * *

* Lets Android application developers access their Google Play accounts. @@ -34,8 +34,18 @@ class Google_Service_AndroidPublisher extends Google_Service /** View and manage your Google Play Android Developer account. */ const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; - public $inapppurchases; - public $purchases; + public $edits; + public $edits_apklistings; + public $edits_apks; + public $edits_details; + public $edits_expansionfiles; + public $edits_images; + public $edits_listings; + public $edits_testers; + public $edits_tracks; + public $inappproducts; + public $purchases_products; + public $purchases_subscriptions; /** @@ -46,18 +56,48 @@ class Google_Service_AndroidPublisher extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'androidpublisher/v1.1/applications/'; - $this->version = 'v1.1'; + $this->servicePath = 'androidpublisher/v2/applications/'; + $this->version = 'v2'; $this->serviceName = 'androidpublisher'; - $this->inapppurchases = new Google_Service_AndroidPublisher_Inapppurchases_Resource( + $this->edits = new Google_Service_AndroidPublisher_Edits_Resource( $this, $this->serviceName, - 'inapppurchases', + 'edits', array( 'methods' => array( - 'get' => array( - 'path' => '{packageName}/inapp/{productId}/purchases/{token}', + 'commit' => array( + 'path' => '{packageName}/edits/{editId}:commit', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{packageName}/edits/{editId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{packageName}/edits/{editId}', 'httpMethod' => 'GET', 'parameters' => array( 'packageName' => array( @@ -65,12 +105,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'productId' => array( + 'editId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'token' => array( + ), + ),'insert' => array( + 'path' => '{packageName}/edits', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -80,34 +125,59 @@ public function __construct(Google_Client $client) ) ) ); - $this->purchases = new Google_Service_AndroidPublisher_Purchases_Resource( + $this->edits_apklistings = new Google_Service_AndroidPublisher_EditsApklistings_Resource( $this, $this->serviceName, - 'purchases', + 'apklistings', array( 'methods' => array( - 'cancel' => array( - 'path' => '{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel', - 'httpMethod' => 'POST', + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'packageName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'subscriptionId' => array( + 'editId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'token' => array( + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), ), ),'get' => array( - 'path' => '{packageName}/subscriptions/{subscriptionId}/purchases/{token}', + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', 'httpMethod' => 'GET', 'parameters' => array( 'packageName' => array( @@ -115,12 +185,182 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'subscriptionId' => array( + 'editId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'token' => array( + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_apks = new Google_Service_AndroidPublisher_EditsApks_Resource( + $this, + $this->serviceName, + 'apks', + array( + 'methods' => array( + 'list' => array( + 'path' => '{packageName}/edits/{editId}/apks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => '{packageName}/edits/{editId}/apks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_details = new Google_Service_AndroidPublisher_EditsDetails_Resource( + $this, + $this->serviceName, + 'details', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -130,105 +370,2632 @@ public function __construct(Google_Client $client) ) ) ); + $this->edits_expansionfiles = new Google_Service_AndroidPublisher_EditsExpansionfiles_Resource( + $this, + $this->serviceName, + 'expansionfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_images = new Google_Service_AndroidPublisher_EditsImages_Resource( + $this, + $this->serviceName, + 'images', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_listings = new Google_Service_AndroidPublisher_EditsListings_Resource( + $this, + $this->serviceName, + 'listings', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/listings', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{packageName}/edits/{editId}/listings', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_testers = new Google_Service_AndroidPublisher_EditsTesters_Resource( + $this, + $this->serviceName, + 'testers', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_tracks = new Google_Service_AndroidPublisher_EditsTracks_Resource( + $this, + $this->serviceName, + 'tracks', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{packageName}/edits/{editId}/tracks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( + $this, + $this->serviceName, + 'inappproducts', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'inappproducts/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{packageName}/inappproducts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => '{packageName}/inappproducts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->purchases_products = new Google_Service_AndroidPublisher_PurchasesProducts_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/purchases/products/{productId}/tokens/{token}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->purchases_subscriptions = new Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'cancel' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "edits" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $edits = $androidpublisherService->edits; + * + */ +class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Resource +{ + + /** + * Commits/applies the changes made in this edit back to the app. (edits.commit) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function commit($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } + /** + * Deletes an edit for an app. Creating a new edit will automatically delete any + * of your previous edits so this method need only be called if you want to + * preemptively abandon an edit. (edits.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Returns information about the edit specified. Calls will fail if the edit is + * no long active (e.g. has been deleted, superseded or expired). (edits.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function get($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } + /** + * Creates a new edit for an app, populated with the app's current state. + * (edits.insert) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param Google_AppEdit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } +} + +/** + * The "apklistings" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $apklistings = $androidpublisherService->apklistings; + * + */ +class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_Service_Resource +{ + + /** + * Deletes the APK-specific localized listing for a specified APK and language + * code. (apklistings.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Deletes all the APK-specific localized listings for a specified APK. + * (apklistings.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param array $optParams Optional parameters. + */ + public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params)); + } + /** + * Fetches the APK-specific localized listing for a specified APK and language + * code. (apklistings.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } + /** + * Lists all the APK-specific localized listings for a specified APK. + * (apklistings.listEditsApklistings) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListingsListResponse + */ + public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); + } + /** + * Updates or creates the APK-specific localized listing for a specified APK and + * language code. This method supports patch semantics. (apklistings.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param Google_ApkListing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } + /** + * Updates or creates the APK-specific localized listing for a specified APK and + * language code. (apklistings.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param Google_ApkListing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } +} +/** + * The "apks" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $apks = $androidpublisherService->apks; + * + */ +class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource +{ + + /** + * (apks.listEditsApks) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApksListResponse + */ + public function listEditsApks($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse"); + } + /** + * (apks.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Apk + */ + public function upload($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Apk"); + } +} +/** + * The "details" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $details = $androidpublisherService->details; + * + */ +class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Service_Resource +{ + + /** + * Fetches app details for this edit. This includes the default language and + * developer support contact information. (details.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function get($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } + /** + * Updates app details for this edit. This method supports patch semantics. + * (details.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param Google_AppDetails $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function patch($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } + /** + * Updates app details for this edit. (details.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param Google_AppDetails $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function update($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } +} +/** + * The "expansionfiles" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $expansionfiles = $androidpublisherService->expansionfiles; + * + */ +class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Google_Service_Resource +{ + + /** + * Fetches the Expansion File configuration for the APK specified. + * (expansionfiles.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + /** + * Updates the APK's Expansion File configuration to reference another APK's + * Expansion Files. To add a new Expansion File use the Upload method. This + * method supports patch semantics. (expansionfiles.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param Google_ExpansionFile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + /** + * Updates the APK's Expansion File configuration to reference another APK's + * Expansion Files. To add a new Expansion File use the Upload method. + * (expansionfiles.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param Google_ExpansionFile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function update($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + /** + * Uploads and attaches a new Expansion File to the APK specified. + * (expansionfiles.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse + */ + public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ExpansionFilesUploadResponse"); + } +} +/** + * The "images" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $images = $androidpublisherService->images; + * + */ +class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Service_Resource +{ + + /** + * Deletes the image (specified by id) from the edit. (images.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param string $imageId + * Unique identifier an image within the set of images attached to this edit. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType, 'imageId' => $imageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Deletes all images for the specified language and image type. + * (images.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse + */ + public function deleteall($packageName, $editId, $language, $imageType, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse"); + } + /** + * Lists all images for the specified language and image type. + * (images.listEditsImages) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesListResponse + */ + public function listEditsImages($packageName, $editId, $language, $imageType, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse"); + } + /** + * Uploads a new image and adds it to the list of images for the specified + * language and image type. (images.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesUploadResponse + */ + public function upload($packageName, $editId, $language, $imageType, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ImagesUploadResponse"); + } +} +/** + * The "listings" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $listings = $androidpublisherService->listings; + * + */ +class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified localized store listing from an edit. (listings.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $language, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Deletes all localized listings from an edit. (listings.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + */ + public function deleteall($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params)); + } + /** + * Fetches information about a localized store listing. (listings.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function get($packageName, $editId, $language, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing"); + } + /** + * Returns all of the localized store listings attached to this edit. + * (listings.listEditsListings) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ListingsListResponse + */ + public function listEditsListings($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse"); + } + /** + * Creates or updates a localized store listing. This method supports patch + * semantics. (listings.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param Google_Listing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function patch($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing"); + } + /** + * Creates or updates a localized store listing. (listings.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param Google_Listing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function update($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Listing"); + } +} +/** + * The "testers" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $testers = $androidpublisherService->testers; + * + */ +class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Service_Resource +{ + + /** + * (testers.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function get($packageName, $editId, $track, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers"); + } + /** + * (testers.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param Google_Testers $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers"); + } + /** + * (testers.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param Google_Testers $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Testers"); + } +} +/** + * The "tracks" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $tracks = $androidpublisherService->tracks; + * + */ +class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Service_Resource +{ + + /** + * Fetches the track configuration for the specified track type. Includes the + * APK version codes that are in this track. (tracks.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function get($packageName, $editId, $track, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track"); + } + /** + * Lists all the track configurations for this edit. (tracks.listEditsTracks) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_TracksListResponse + */ + public function listEditsTracks($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse"); + } + /** + * Updates the track configuration for the specified track type. This method + * supports patch semantics. (tracks.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param Google_Track $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track"); + } + /** + * Updates the track configuration for the specified track type. (tracks.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param Google_Track $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Track"); + } +} + +/** + * The "inappproducts" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $inappproducts = $androidpublisherService->inappproducts; + * + */ +class Google_Service_AndroidPublisher_Inappproducts_Resource extends Google_Service_Resource +{ + + /** + * (inappproducts.batch) + * + * @param Google_InappproductsBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_InappproductsBatchResponse + */ + public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse"); + } + /** + * Delete an in-app product for an app. (inappproducts.delete) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $sku, $optParams = array()) + { + $params = array('packageName' => $packageName, 'sku' => $sku); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Returns information about the in-app product specified. (inappproducts.get) + * + * @param string $packageName + * + * @param string $sku + * Unique identifier for the in-app product. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function get($packageName, $sku, $optParams = array()) + { + $params = array('packageName' => $packageName, 'sku' => $sku); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + /** + * Creates a new in-app product for an app. (inappproducts.insert) + * + * @param string $packageName + * Unique identifier for the Android app; for example, "com.spiffygame". + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + /** + * List all the in-app products for an Android app, both subscriptions and + * managed in-app products.. (inappproducts.listInappproducts) + * + * @param string $packageName + * Unique identifier for the Android app with in-app products; for example, "com.spiffygame". + * @param array $optParams Optional parameters. + * + * @opt_param string token + * + * @opt_param string startIndex + * + * @opt_param string maxResults + * + * @return Google_Service_AndroidPublisher_InappproductsListResponse + */ + public function listInappproducts($packageName, $optParams = array()) + { + $params = array('packageName' => $packageName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse"); + } + /** + * Updates the details of an in-app product. This method supports patch + * semantics. (inappproducts.patch) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + /** + * Updates the details of an in-app product. (inappproducts.update) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } +} + +/** + * The "purchases" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $purchases = $androidpublisherService->purchases; + * + */ +class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource +{ + +} + +/** + * The "products" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $products = $androidpublisherService->products; + * + */ +class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_Service_Resource +{ + + /** + * Checks the purchase and consumption status of an inapp item. (products.get) + * + * @param string $packageName + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). + * @param string $productId + * The inapp product SKU (for example, 'com.some.thing.inapp1'). + * @param string $token + * The token provided to the user's device when the inapp product was purchased. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ProductPurchase + */ + public function get($packageName, $productId, $token, $optParams = array()) + { + $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ProductPurchase"); + } +} +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $subscriptions = $androidpublisherService->subscriptions; + * + */ +class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource extends Google_Service_Resource +{ + + /** + * Cancels a user's subscription purchase. The subscription remains valid until + * its expiration time. (subscriptions.cancel) + * + * @param string $packageName + * The package name of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param string $subscriptionId + * The purchased subscription ID (for example, 'monthly001'). + * @param string $token + * The token provided to the user's device when the subscription was purchased. + * @param array $optParams Optional parameters. + */ + public function cancel($packageName, $subscriptionId, $token, $optParams = array()) + { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } + /** + * Checks whether a user's subscription purchase is valid and returns its expiry + * time. (subscriptions.get) + * + * @param string $packageName + * The package name of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param string $subscriptionId + * The purchased subscription ID (for example, 'monthly001'). + * @param string $token + * The token provided to the user's device when the subscription was purchased. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_SubscriptionPurchase + */ + public function get($packageName, $subscriptionId, $token, $optParams = array()) + { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); + } +} + + + + +class Google_Service_AndroidPublisher_Apk extends Google_Model +{ + protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary'; + protected $binaryDataType = ''; + public $versionCode; + + public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary) + { + $this->binary = $binary; + } + + public function getBinary() + { + return $this->binary; + } + + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + + public function getVersionCode() + { + return $this->versionCode; + } +} + +class Google_Service_AndroidPublisher_ApkBinary extends Google_Model +{ + public $sha1; + + public function setSha1($sha1) + { + $this->sha1 = $sha1; + } + + public function getSha1() + { + return $this->sha1; + } +} + +class Google_Service_AndroidPublisher_ApkListing extends Google_Model +{ + public $language; + public $recentChanges; + + public function setLanguage($language) + { + $this->language = $language; + } + + public function getLanguage() + { + return $this->language; + } + + public function setRecentChanges($recentChanges) + { + $this->recentChanges = $recentChanges; + } + + public function getRecentChanges() + { + return $this->recentChanges; + } +} + +class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection +{ + public $kind; + protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; + protected $listingsDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setListings($listings) + { + $this->listings = $listings; + } + + public function getListings() + { + return $this->listings; + } +} + +class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection +{ + protected $apksType = 'Google_Service_AndroidPublisher_Apk'; + protected $apksDataType = 'array'; + public $kind; + + public function setApks($apks) + { + $this->apks = $apks; + } + + public function getApks() + { + return $this->apks; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidPublisher_AppDetails extends Google_Model +{ + public $contactEmail; + public $contactPhone; + public $contactWebsite; + public $defaultLanguage; + + public function setContactEmail($contactEmail) + { + $this->contactEmail = $contactEmail; + } + + public function getContactEmail() + { + return $this->contactEmail; + } + + public function setContactPhone($contactPhone) + { + $this->contactPhone = $contactPhone; + } + + public function getContactPhone() + { + return $this->contactPhone; + } + + public function setContactWebsite($contactWebsite) + { + $this->contactWebsite = $contactWebsite; + } + + public function getContactWebsite() + { + return $this->contactWebsite; + } + + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } +} + +class Google_Service_AndroidPublisher_AppEdit extends Google_Model +{ + public $expiryTimeSeconds; + public $id; + + public function setExpiryTimeSeconds($expiryTimeSeconds) + { + $this->expiryTimeSeconds = $expiryTimeSeconds; + } + + public function getExpiryTimeSeconds() + { + return $this->expiryTimeSeconds; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } +} + +class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model +{ + public $fileSize; + public $referencesVersion; + + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + + public function getFileSize() + { + return $this->fileSize; + } + + public function setReferencesVersion($referencesVersion) + { + $this->referencesVersion = $referencesVersion; + } + + public function getReferencesVersion() + { + return $this->referencesVersion; + } +} + +class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model +{ + protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; + protected $expansionFileDataType = ''; + + public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile) + { + $this->expansionFile = $expansionFile; + } + + public function getExpansionFile() + { + return $this->expansionFile; + } +} + +class Google_Service_AndroidPublisher_Image extends Google_Model +{ + public $id; + public $sha1; + public $url; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setSha1($sha1) + { + $this->sha1 = $sha1; + } + + public function getSha1() + { + return $this->sha1; + } + + public function setUrl($url) + { + $this->url = $url; + } + + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection +{ + protected $deletedType = 'Google_Service_AndroidPublisher_Image'; + protected $deletedDataType = 'array'; + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } +} + +class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection +{ + protected $imagesType = 'Google_Service_AndroidPublisher_Image'; + protected $imagesDataType = 'array'; + + public function setImages($images) + { + $this->images = $images; + } + + public function getImages() + { + return $this->images; + } +} + +class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model +{ + protected $imageType = 'Google_Service_AndroidPublisher_Image'; + protected $imageDataType = ''; + + public function setImage(Google_Service_AndroidPublisher_Image $image) + { + $this->image = $image; + } + + public function getImage() + { + return $this->image; + } +} + +class Google_Service_AndroidPublisher_InAppProduct extends Google_Model +{ + public $defaultLanguage; + protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; + protected $defaultPriceDataType = ''; + protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing'; + protected $listingsDataType = 'map'; + public $packageName; + protected $pricesType = 'Google_Service_AndroidPublisher_Price'; + protected $pricesDataType = 'map'; + public $purchaseType; + public $sku; + public $status; + public $subscriptionPeriod; + public $trialPeriod; + + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + + public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) + { + $this->defaultPrice = $defaultPrice; + } + + public function getDefaultPrice() + { + return $this->defaultPrice; + } + + public function setListings($listings) + { + $this->listings = $listings; + } + + public function getListings() + { + return $this->listings; + } + + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function getPackageName() + { + return $this->packageName; + } + + public function setPrices($prices) + { + $this->prices = $prices; + } + + public function getPrices() + { + return $this->prices; + } + + public function setPurchaseType($purchaseType) + { + $this->purchaseType = $purchaseType; + } + + public function getPurchaseType() + { + return $this->purchaseType; + } + + public function setSku($sku) + { + $this->sku = $sku; + } + + public function getSku() + { + return $this->sku; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + public function setSubscriptionPeriod($subscriptionPeriod) + { + $this->subscriptionPeriod = $subscriptionPeriod; + } + + public function getSubscriptionPeriod() + { + return $this->subscriptionPeriod; + } + + public function setTrialPeriod($trialPeriod) + { + $this->trialPeriod = $trialPeriod; + } + + public function getTrialPeriod() + { + return $this->trialPeriod; + } +} + +class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model +{ + public $description; + public $title; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model +{ + +} + +class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model +{ + +} + +class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection +{ + protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; + protected $entrysDataType = 'array'; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } +} + +class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model +{ + public $batchId; + protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest'; + protected $inappproductsinsertrequestDataType = ''; + protected $inappproductsupdaterequestType = 'Google_Service_AndroidPublisher_InappproductsUpdateRequest'; + protected $inappproductsupdaterequestDataType = ''; + public $methodName; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest) + { + $this->inappproductsinsertrequest = $inappproductsinsertrequest; + } + + public function getInappproductsinsertrequest() + { + return $this->inappproductsinsertrequest; + } + + public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest) + { + $this->inappproductsupdaterequest = $inappproductsupdaterequest; + } + + public function getInappproductsupdaterequest() + { + return $this->inappproductsupdaterequest; + } + + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + + public function getMethodName() + { + return $this->methodName; + } +} + +class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection +{ + protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; + + public function setEntrys($entrys) + { + $this->entrys = $entrys; + } + + public function getEntrys() + { + return $this->entrys; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model +{ + public $batchId; + protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse'; + protected $inappproductsinsertresponseDataType = ''; + protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse'; + protected $inappproductsupdateresponseDataType = ''; + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function getBatchId() + { + return $this->batchId; + } + + public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse) + { + $this->inappproductsinsertresponse = $inappproductsinsertresponse; + } + + public function getInappproductsinsertresponse() + { + return $this->inappproductsinsertresponse; + } + + public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse) + { + $this->inappproductsupdateresponse = $inappproductsupdateresponse; + } + + public function getInappproductsupdateresponse() + { + return $this->inappproductsupdateresponse; + } +} + +class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model +{ + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; + + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) + { + $this->inappproduct = $inappproduct; + } + + public function getInappproduct() + { + return $this->inappproduct; + } +} + +class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model +{ + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; + + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) + { + $this->inappproduct = $inappproduct; + } + + public function getInappproduct() + { + return $this->inappproduct; } } +class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection +{ + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = 'array'; + public $kind; + protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; + protected $tokenPaginationDataType = ''; -/** - * The "inapppurchases" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $inapppurchases = $androidpublisherService->inapppurchases; - * - */ -class Google_Service_AndroidPublisher_Inapppurchases_Resource extends Google_Service_Resource + public function setInappproduct($inappproduct) + { + $this->inappproduct = $inappproduct; + } + + public function getInappproduct() + { + return $this->inappproduct; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() + { + return $this->pageInfo; + } + + public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() + { + return $this->tokenPagination; + } +} + +class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - /** - * Checks the purchase and consumption status of an inapp item. - * (inapppurchases.get) - * - * @param string $packageName - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - * @param string $productId - * The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param string $token - * The token provided to the user's device when the inapp product was purchased. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_InappPurchase - */ - public function get($packageName, $productId, $token, $optParams = array()) + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { - $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_InappPurchase"); + $this->inappproduct = $inappproduct; + } + + public function getInappproduct() + { + return $this->inappproduct; } } -/** - * The "purchases" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $purchases = $androidpublisherService->purchases; - * - */ -class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource +class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - /** - * 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()) + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); + $this->inappproduct = $inappproduct; } - /** - * 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()) + + public function getInappproduct() { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); + return $this->inappproduct; + } +} + +class Google_Service_AndroidPublisher_Listing extends Google_Model +{ + public $fullDescription; + public $language; + public $shortDescription; + public $title; + public $video; + + public function setFullDescription($fullDescription) + { + $this->fullDescription = $fullDescription; + } + + public function getFullDescription() + { + return $this->fullDescription; + } + + public function setLanguage($language) + { + $this->language = $language; + } + + public function getLanguage() + { + return $this->language; + } + + public function setShortDescription($shortDescription) + { + $this->shortDescription = $shortDescription; + } + + public function getShortDescription() + { + return $this->shortDescription; + } + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + + public function setVideo($video) + { + $this->video = $video; + } + + public function getVideo() + { + return $this->video; + } +} + +class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection +{ + public $kind; + protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; + protected $listingsDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setListings($listings) + { + $this->listings = $listings; + } + + public function getListings() + { + return $this->listings; + } +} + +class Google_Service_AndroidPublisher_PageInfo extends Google_Model +{ + public $resultPerPage; + public $startIndex; + public $totalResults; + + public function setResultPerPage($resultPerPage) + { + $this->resultPerPage = $resultPerPage; + } + + public function getResultPerPage() + { + return $this->resultPerPage; + } + + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + + public function getStartIndex() + { + return $this->startIndex; + } + + public function setTotalResults($totalResults) + { + $this->totalResults = $totalResults; + } + + public function getTotalResults() + { + return $this->totalResults; } } +class Google_Service_AndroidPublisher_Price extends Google_Model +{ + public $currency; + public $priceMicros; + + public function setCurrency($currency) + { + $this->currency = $currency; + } + + public function getCurrency() + { + return $this->currency; + } + public function setPriceMicros($priceMicros) + { + $this->priceMicros = $priceMicros; + } + public function getPriceMicros() + { + return $this->priceMicros; + } +} -class Google_Service_AndroidPublisher_InappPurchase extends Google_Model +class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model { public $consumptionState; public $developerPayload; public $kind; public $purchaseState; - public $purchaseTime; + public $purchaseTimeMillis; public function setConsumptionState($consumptionState) { @@ -270,23 +3037,23 @@ public function getPurchaseState() return $this->purchaseState; } - public function setPurchaseTime($purchaseTime) + public function setPurchaseTimeMillis($purchaseTimeMillis) { - $this->purchaseTime = $purchaseTime; + $this->purchaseTimeMillis = $purchaseTimeMillis; } - public function getPurchaseTime() + public function getPurchaseTimeMillis() { - return $this->purchaseTime; + return $this->purchaseTimeMillis; } } class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { public $autoRenewing; - public $initiationTimestampMsec; + public $expiryTimeMillis; public $kind; - public $validUntilTimestampMsec; + public $startTimeMillis; public function setAutoRenewing($autoRenewing) { @@ -298,15 +3065,131 @@ public function getAutoRenewing() return $this->autoRenewing; } - public function setInitiationTimestampMsec($initiationTimestampMsec) + public function setExpiryTimeMillis($expiryTimeMillis) + { + $this->expiryTimeMillis = $expiryTimeMillis; + } + + public function getExpiryTimeMillis() + { + return $this->expiryTimeMillis; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } +} + +class Google_Service_AndroidPublisher_Testers extends Google_Collection +{ + public $googleGroups; + public $googlePlusCommunities; + + public function setGoogleGroups($googleGroups) + { + $this->googleGroups = $googleGroups; + } + + public function getGoogleGroups() + { + return $this->googleGroups; + } + + public function setGooglePlusCommunities($googlePlusCommunities) + { + $this->googlePlusCommunities = $googlePlusCommunities; + } + + public function getGooglePlusCommunities() + { + return $this->googlePlusCommunities; + } +} + +class Google_Service_AndroidPublisher_TokenPagination extends Google_Model +{ + public $nextPageToken; + public $previousPageToken; + + 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_AndroidPublisher_Track extends Google_Collection +{ + public $track; + public $userFraction; + public $versionCodes; + + public function setTrack($track) + { + $this->track = $track; + } + + public function getTrack() + { + return $this->track; + } + + public function setUserFraction($userFraction) + { + $this->userFraction = $userFraction; + } + + public function getUserFraction() + { + return $this->userFraction; + } + + public function setVersionCodes($versionCodes) { - $this->initiationTimestampMsec = $initiationTimestampMsec; + $this->versionCodes = $versionCodes; } - public function getInitiationTimestampMsec() + public function getVersionCodes() { - return $this->initiationTimestampMsec; + return $this->versionCodes; } +} + +class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection +{ + public $kind; + protected $tracksType = 'Google_Service_AndroidPublisher_Track'; + protected $tracksDataType = 'array'; public function setKind($kind) { @@ -318,13 +3201,13 @@ public function getKind() return $this->kind; } - public function setValidUntilTimestampMsec($validUntilTimestampMsec) + public function setTracks($tracks) { - $this->validUntilTimestampMsec = $validUntilTimestampMsec; + $this->tracks = $tracks; } - public function getValidUntilTimestampMsec() + public function getTracks() { - return $this->validUntilTimestampMsec; + return $this->tracks; } } From fa614168459d078ad74f0a05658e58bd4e298e7a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 31 Jul 2014 00:59:56 -0700 Subject: [PATCH 0094/1274] Updated Cloudmonitoring.php --- src/Google/Service/Cloudmonitoring.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Google/Service/Cloudmonitoring.php b/src/Google/Service/Cloudmonitoring.php index 6fba8da35..48f5ca9b3 100644 --- a/src/Google/Service/Cloudmonitoring.php +++ b/src/Google/Service/Cloudmonitoring.php @@ -255,7 +255,6 @@ class Google_Service_Cloudmonitoring_Timeseries_Resource extends Google_Service_ * string-based project name. * @param string $metric * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * appengine.googleapis.com/http/server/response_count or * compute.googleapis.com/instance/disk/read_ops_count. * @param string $youngest * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. @@ -326,7 +325,6 @@ class Google_Service_Cloudmonitoring_TimeseriesDescriptors_Resource extends Goog * string-based project name. * @param string $metric * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * appengine.googleapis.com/http/server/response_count or * compute.googleapis.com/instance/disk/read_ops_count. * @param string $youngest * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. From f2f4cf6a1de99790a504ede4421d3a18e69089db Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 31 Jul 2014 00:59:56 -0700 Subject: [PATCH 0095/1274] Updated IdentityToolkit.php --- src/Google/Service/IdentityToolkit.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 03b2c5930..eba918b82 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -266,12 +266,12 @@ public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRel -class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Collection +class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model { public $authUri; + public $forExistingProvider; public $kind; public $providerId; - public $providers; public $registered; public function setAuthUri($authUri) @@ -284,6 +284,16 @@ public function getAuthUri() return $this->authUri; } + public function setForExistingProvider($forExistingProvider) + { + $this->forExistingProvider = $forExistingProvider; + } + + public function getForExistingProvider() + { + return $this->forExistingProvider; + } + public function setKind($kind) { $this->kind = $kind; @@ -304,16 +314,6 @@ public function getProviderId() return $this->providerId; } - public function setProviders($providers) - { - $this->providers = $providers; - } - - public function getProviders() - { - return $this->providers; - } - public function setRegistered($registered) { $this->registered = $registered; From f61f0a5c8c67f9825a12b7a3bbef865c7d0de6ab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 1 Aug 2014 01:01:01 -0700 Subject: [PATCH 0096/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 1826ae6c1..958850791 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -2911,6 +2911,7 @@ class Google_Service_Genomics_Variant extends Google_Collection public $contig; public $created; public $datasetId; + public $end; public $id; public $info; public $names; @@ -2967,6 +2968,16 @@ public function getDatasetId() return $this->datasetId; } + public function setEnd($end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + public function setId($id) { $this->id = $id; From 70d70a02c0f332f0943ffe8af7c1ab7c753f9ce8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 5 Aug 2014 01:05:15 -0700 Subject: [PATCH 0097/1274] Removed MapsEngine.php --- src/Google/Service/MapsEngine.php | 4761 ----------------------------- 1 file changed, 4761 deletions(-) delete mode 100644 src/Google/Service/MapsEngine.php diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php deleted file mode 100644 index d898b708e..000000000 --- a/src/Google/Service/MapsEngine.php +++ /dev/null @@ -1,4761 +0,0 @@ - - * The Google Maps Engine API allows developers to store and query geospatial vector and raster data. - *

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_MapsEngine extends Google_Service -{ - /** View and manage your Google Maps Engine data. */ - const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; - /** View your Google Maps Engine data. */ - const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; - - public $assets; - public $assets_parents; - public $layers; - public $layers_parents; - public $maps; - public $projects; - public $rasterCollections; - public $rasterCollections_parents; - public $rasterCollections_rasters; - public $rasters; - public $rasters_files; - public $rasters_parents; - public $tables; - public $tables_features; - public $tables_files; - public $tables_parents; - - - /** - * Constructs the internal representation of the MapsEngine service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'mapsengine/v1/'; - $this->version = 'v1'; - $this->serviceName = 'mapsengine'; - - $this->assets = new Google_Service_MapsEngine_Assets_Resource( - $this, - $this->serviceName, - 'assets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'assets/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'assets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'assets/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->layers = new Google_Service_MapsEngine_Layers_Resource( - $this, - $this->serviceName, - 'layers', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'layers/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'layers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'process' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'layers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'layers/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'layers/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unpublish' => array( - 'path' => 'layers/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'layers/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->maps = new Google_Service_MapsEngine_Maps_Resource( - $this, - $this->serviceName, - 'maps', - array( - 'methods' => array( - 'create' => array( - 'path' => 'maps', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'maps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'maps/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unpublish' => array( - 'path' => 'maps/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_MapsEngine_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( - $this, - $this->serviceName, - 'rasterCollections', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'rasterCollections/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'rasterCollections/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasterCollections/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'rasterCollections/{id}/rasters/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'rasterCollections/{id}/rasters/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections/{id}/rasters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->rasters = new Google_Service_MapsEngine_Rasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'rasters/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'rasters/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasters/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->tables = new Google_Service_MapsEngine_Tables_Resource( - $this, - $this->serviceName, - 'tables', - array( - 'methods' => array( - 'create' => array( - 'path' => 'tables', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'tables/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource( - $this, - $this->serviceName, - 'features', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'tables/{id}/features/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'tables/{id}/features/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchPatch' => array( - 'path' => 'tables/{id}/features/batchPatch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/features/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables/{id}/features', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'intersects' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'include' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'where' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'tables/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'tables/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "assets" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $assets = $mapsengineService->assets; - * - */ -class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource -{ - - /** - * Return metadata for a particular asset. (assets.get) - * - * @param string $id - * The ID of the asset. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Asset - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); - } - /** - * Return all assets readable by the current user. (assets.listAssets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string type - * An asset type restriction. If set, only resources of this type will be returned. - * @return Google_Service_MapsEngine_AssetsListResponse - */ - public function listAssets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_AssetsListResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified asset. (parents.listAssetsParents) - * - * @param string $id - * The ID of the asset whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listAssetsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} - -/** - * The "layers" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $layers = $mapsengineService->layers; - * - */ -class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource -{ - - /** - * Cancel processing on a layer asset. (layers.cancelProcessing) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Create a layer asset. (layers.create) - * - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool process - * Whether to queue the created layer for processing. - * @return Google_Service_MapsEngine_Layer - */ - public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); - } - /** - * Delete a layer. (layers.delete) - * - * @param string $id - * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the - * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove - * it from all maps prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular layer. (layers.get) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Layer - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); - } - /** - * Return all layers readable by the current user. (layers.listLayers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_LayersListResponse - */ - public function listLayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); - } - /** - * Mutate a layer asset. (layers.patch) - * - * @param string $id - * The ID of the layer. - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Process a layer asset. (layers.process) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Publish a layer asset. (layers.publish) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - /** - * Unpublish a layer asset. (layers.unpublish) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified layer. (parents.listLayersParents) - * - * @param string $id - * The ID of the layer whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listLayersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} - -/** - * The "maps" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $maps = $mapsengineService->maps; - * - */ -class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource -{ - - /** - * Create a map asset. (maps.create) - * - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Map - */ - public function create(Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); - } - /** - * Delete a map. (maps.delete) - * - * @param string $id - * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is - * published the request will fail. Unpublish the map prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular map. (maps.get) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Map - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); - } - /** - * Return all maps readable by the current user. (maps.listMaps) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_MapsListResponse - */ - public function listMaps($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); - } - /** - * Mutate a map asset. (maps.patch) - * - * @param string $id - * The ID of the map. - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Publish a map asset. (maps.publish) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - /** - * Unpublish a map asset. (maps.unpublish) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $projects = $mapsengineService->projects; - * - */ -class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resource -{ - - /** - * Return all projects readable by the current user. (projects.listProjects) - * - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProjectsListResponse - */ - public function listProjects($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ProjectsListResponse"); - } -} - -/** - * The "rasterCollections" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasterCollections = $mapsengineService->rasterCollections; - * - */ -class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource -{ - - /** - * Cancel processing on a raster collection asset. - * (rasterCollections.cancelProcessing) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Create a raster collection asset. (rasterCollections.create) - * - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function create(Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - /** - * Delete a raster collection. (rasterCollections.delete) - * - * @param string $id - * The ID of the raster collection. Only the raster collection creator or project owner are - * permitted to delete. If the rastor collection is included in a layer, the request will fail. - * Remove the raster collection from all layers prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular raster collection. (rasterCollections.get) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - /** - * Return all raster collections readable by the current user. - * (rasterCollections.listRasterCollections) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_RasterCollectionsListResponse - */ - public function listRasterCollections($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); - } - /** - * Mutate a raster collection asset. (rasterCollections.patch) - * - * @param string $id - * The ID of the raster collection. - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Process a raster collection asset. (rasterCollections.process) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified raster collection. - * (parents.listRasterCollectionsParents) - * - * @param string $id - * The ID of the raster collection whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRasterCollectionsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "rasters" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasters = $mapsengineService->rasters; - * - */ -class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google_Service_Resource -{ - - /** - * Remove rasters from an existing raster collection. - * - * Up to 50 rasters can be included in a single batchDelete request. Each - * batchDelete request is atomic. (rasters.batchDelete) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); - } - /** - * Add rasters to an existing raster collection. Rasters must be successfully - * processed in order to be added to a raster collection. - * - * Up to 50 rasters can be included in a single batchInsert request. Each - * batchInsert request is atomic. (rasters.batchInsert) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse - */ - public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); - } - /** - * Return all rasters within a raster collection. - * (rasters.listRasterCollectionsRasters) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse - */ - public function listRasterCollectionsRasters($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); - } -} - -/** - * The "rasters" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasters = $mapsengineService->rasters; - * - */ -class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource -{ - - /** - * Delete a raster. (rasters.delete) - * - * @param string $id - * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the - * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior - * to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a single raster. (rasters.get) - * - * @param string $id - * The ID of the raster. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); - } - /** - * Mutate a raster asset. (rasters.patch) - * - * @param string $id - * The ID of the raster. - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Create a skeleton raster asset for upload. (rasters.upload) - * - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); - } -} - -/** - * The "files" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $files = $mapsengineService->files; - * - */ -class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Resource -{ - - /** - * Upload a file to a raster asset. (files.insert) - * - * @param string $id - * The ID of the raster asset. - * @param string $filename - * The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } -} -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified rasters. (parents.listRastersParents) - * - * @param string $id - * The ID of the rasters whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRastersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} - -/** - * The "tables" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $tables = $mapsengineService->tables; - * - */ -class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource -{ - - /** - * Create a table asset. (tables.create) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function create(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); - } - /** - * Delete a table. (tables.delete) - * - * @param string $id - * The ID of the table. Only the table creator or project owner are permitted to delete. If the - * table is included in a layer, the request will fail. Remove it from all layers prior to - * deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular table, including the schema. (tables.get) - * - * @param string $id - * The ID of the table. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Table - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); - } - /** - * Return all tables readable by the current user. (tables.listTables) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_TablesListResponse - */ - public function listTables($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); - } - /** - * Mutate a table asset. (tables.patch) - * - * @param string $id - * The ID of the table. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Create a placeholder table asset to which table files can be uploaded. Once - * the placeholder has been created, files are uploaded to the - * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files - * endpoint. See Table Upload in the Developer's Guide or Table.files: insert in - * the reference documentation for more information. (tables.upload) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function upload(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Table"); - } -} - -/** - * The "features" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $features = $mapsengineService->features; - * - */ -class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_Resource -{ - - /** - * Delete all features matching the given IDs. (features.batchDelete) - * - * @param string $id - * The ID of the table that contains the features to be deleted. - * @param Google_FeaturesBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - /** - * Append features to an existing table. - * - * A single batchInsert request can create: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * For more information about inserting features, read Creating features in the - * Google Maps Engine developer's guide. (features.batchInsert) - * - * @param string $id - * The ID of the table to append the features to. - * @param Google_FeaturesBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params)); - } - /** - * Update the supplied features. - * - * A single batchPatch request can update: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * Feature updates use HTTP PATCH semantics: - * - * - A supplied value replaces an existing value (if any) in that field. - - * Omitted fields remain unchanged. - Complex values in geometries and - * properties must be replaced as atomic units. For example, providing just the - * coordinates of a geometry is not allowed; the complete geometry, including - * type, must be supplied. - Setting a property's value to null deletes that - * property. For more information about updating features, read Updating - * features in the Google Maps Engine developer's guide. (features.batchPatch) - * - * @param string $id - * The ID of the table containing the features to be patched. - * @param Google_FeaturesBatchPatchRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchPatch', array($params)); - } - /** - * Return a single feature, given its ID. (features.get) - * - * @param string $tableId - * The ID of the table. - * @param string $id - * The ID of the feature to get. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. - * @return Google_Service_MapsEngine_Feature - */ - public function get($tableId, $id, $optParams = array()) - { - $params = array('tableId' => $tableId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); - } - /** - * Return all features readable by the current user. - * (features.listTablesFeatures) - * - * @param string $id - * The ID of the table to which these features belong. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * An SQL-like order by clause used to sort results. If this parameter is not included, the order - * of features is undefined. - * @opt_param string intersects - * A geometry literal that specifies the spatial restriction of the query. - * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. The maximum supported - * value is 1000. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string limit - * The total number of features to return from the query, irrespective of the number of pages. - * @opt_param string include - * A comma separated list of optional data to include. Optional data available: schema. - * @opt_param string where - * An SQL-like predicate used to filter results. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. - * @return Google_Service_MapsEngine_FeaturesListResponse - */ - public function listTablesFeatures($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_FeaturesListResponse"); - } -} -/** - * The "files" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $files = $mapsengineService->files; - * - */ -class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Resource -{ - - /** - * Upload a file to a placeholder table asset. See Table Upload in the - * Developer's Guide for more information. Supported file types are listed in - * the Supported data formats and limits article of the Google Maps Engine help - * center. (files.insert) - * - * @param string $id - * The ID of the table asset. - * @param string $filename - * The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } -} -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified table. (parents.listTablesParents) - * - * @param string $id - * The ID of the table whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listTablesParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} - - - - -class Google_Service_MapsEngine_AcquisitionTime extends Google_Model -{ - public $end; - public $precision; - public $start; - - public function setEnd($end) - { - $this->end = $end; - } - - public function getEnd() - { - return $this->end; - } - - public function setPrecision($precision) - { - $this->precision = $precision; - } - - public function getPrecision() - { - return $this->precision; - } - - public function setStart($start) - { - $this->start = $start; - } - - public function getStart() - { - return $this->start; - } -} - -class Google_Service_MapsEngine_Asset extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $projectId; - public $resource; - public $tags; - public $type; - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - 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 setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setResource($resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection -{ - protected $assetsType = 'Google_Service_MapsEngine_Asset'; - protected $assetsDataType = 'array'; - public $nextPageToken; - - public function setAssets($assets) - { - $this->assets = $assets; - } - - public function getAssets() - { - return $this->assets; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_Border extends Google_Model -{ - public $color; - public $opacity; - public $width; - - 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; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_MapsEngine_Color 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_MapsEngine_Datasource extends Google_Model -{ - public $id; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } -} - -class Google_Service_MapsEngine_DisplayRule extends Google_Collection -{ - protected $filtersType = 'Google_Service_MapsEngine_Filter'; - protected $filtersDataType = 'array'; - protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; - protected $lineOptionsDataType = ''; - public $name; - protected $pointOptionsType = 'Google_Service_MapsEngine_PointStyle'; - protected $pointOptionsDataType = ''; - protected $polygonOptionsType = 'Google_Service_MapsEngine_PolygonStyle'; - protected $polygonOptionsDataType = ''; - protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; - protected $zoomLevelsDataType = ''; - - public function setFilters($filters) - { - $this->filters = $filters; - } - - public function getFilters() - { - return $this->filters; - } - - public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) - { - $this->lineOptions = $lineOptions; - } - - public function getLineOptions() - { - return $this->lineOptions; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) - { - $this->pointOptions = $pointOptions; - } - - public function getPointOptions() - { - return $this->pointOptions; - } - - public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) - { - $this->polygonOptions = $polygonOptions; - } - - public function getPolygonOptions() - { - return $this->polygonOptions; - } - - public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) - { - $this->zoomLevels = $zoomLevels; - } - - public function getZoomLevels() - { - return $this->zoomLevels; - } -} - -class Google_Service_MapsEngine_Feature extends Google_Model -{ - protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometryDataType = ''; - public $properties; - public $type; - - public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) - { - $this->geometry = $geometry; - } - - public function getGeometry() - { - return $this->geometry; - } - - public function setProperties($properties) - { - $this->properties = $properties; - } - - public function getProperties() - { - return $this->properties; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_FeatureInfo extends Google_Model -{ - public $content; - - public function setContent($content) - { - $this->content = $content; - } - - public function getContent() - { - return $this->content; - } -} - -class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection -{ - public $gxIds; - public $primaryKeys; - - public function setGxIds($gxIds) - { - $this->gxIds = $gxIds; - } - - public function getGxIds() - { - return $this->gxIds; - } - - public function setPrimaryKeys($primaryKeys) - { - $this->primaryKeys = $primaryKeys; - } - - public function getPrimaryKeys() - { - return $this->primaryKeys; - } -} - -class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection -{ - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - - public function setFeatures($features) - { - $this->features = $features; - } - - public function getFeatures() - { - return $this->features; - } -} - -class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection -{ - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - - public function setFeatures($features) - { - $this->features = $features; - } - - public function getFeatures() - { - return $this->features; - } -} - -class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection -{ - public $allowedQueriesPerSecond; - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - public $nextPageToken; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $type; - - public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) - { - $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; - } - - public function getAllowedQueriesPerSecond() - { - return $this->allowedQueriesPerSecond; - } - - public function setFeatures($features) - { - $this->features = $features; - } - - public function getFeatures() - { - return $this->features; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } - - public function getSchema() - { - return $this->schema; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_Filter extends Google_Model -{ - public $column; - public $operator; - public $value; - - public function setColumn($column) - { - $this->column = $column; - } - - public function getColumn() - { - return $this->column; - } - - public function setOperator($operator) - { - $this->operator = $operator; - } - - public function getOperator() - { - return $this->operator; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model -{ - public $type; - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection -{ - protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometriesDataType = 'array'; - - public function setGeometries($geometries) - { - $this->geometries = $geometries; - } - - public function getGeometries() - { - return $this->geometries; - } -} - -class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection -{ - public $coordinates; - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model -{ - -} - -class Google_Service_MapsEngine_IconStyle extends Google_Model -{ - public $id; - public $name; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } -} - -class Google_Service_MapsEngine_LabelStyle extends Google_Model -{ - public $color; - public $column; - public $fontStyle; - public $fontWeight; - public $opacity; - protected $outlineType = 'Google_Service_MapsEngine_Color'; - protected $outlineDataType = ''; - public $size; - - public function setColor($color) - { - $this->color = $color; - } - - public function getColor() - { - return $this->color; - } - - public function setColumn($column) - { - $this->column = $column; - } - - public function getColumn() - { - return $this->column; - } - - public function setFontStyle($fontStyle) - { - $this->fontStyle = $fontStyle; - } - - public function getFontStyle() - { - return $this->fontStyle; - } - - public function setFontWeight($fontWeight) - { - $this->fontWeight = $fontWeight; - } - - public function getFontWeight() - { - return $this->fontWeight; - } - - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } - - public function getOpacity() - { - return $this->opacity; - } - - public function setOutline(Google_Service_MapsEngine_Color $outline) - { - $this->outline = $outline; - } - - public function getOutline() - { - return $this->outline; - } - - public function setSize($size) - { - $this->size = $size; - } - - public function getSize() - { - return $this->size; - } -} - -class Google_Service_MapsEngine_Layer extends Google_Collection -{ - public $bbox; - public $creationTime; - public $datasourceType; - protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; - protected $datasourcesDataType = 'array'; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; - protected $styleDataType = ''; - public $tags; - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - - public function getCreationTime() - { - return $this->creationTime; - } - - public function setDatasourceType($datasourceType) - { - $this->datasourceType = $datasourceType; - } - - public function getDatasourceType() - { - return $this->datasourceType; - } - - public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) - { - $this->datasources = $datasources; - } - - public function getDatasources() - { - return $this->datasources; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - 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 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 setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - - public function setStyle(Google_Service_MapsEngine_VectorStyle $style) - { - $this->style = $style; - } - - public function getStyle() - { - return $this->style; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_LayersListResponse extends Google_Collection -{ - protected $layersType = 'Google_Service_MapsEngine_Layer'; - protected $layersDataType = 'array'; - public $nextPageToken; - - public function setLayers($layers) - { - $this->layers = $layers; - } - - public function getLayers() - { - return $this->layers; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_LineStyle extends Google_Collection -{ - protected $borderType = 'Google_Service_MapsEngine_Border'; - protected $borderDataType = ''; - public $dash; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; - protected $strokeDataType = ''; - - public function setBorder(Google_Service_MapsEngine_Border $border) - { - $this->border = $border; - } - - public function getBorder() - { - return $this->border; - } - - public function setDash($dash) - { - $this->dash = $dash; - } - - public function getDash() - { - return $this->dash; - } - - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } - - public function getLabel() - { - return $this->label; - } - - public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) - { - $this->stroke = $stroke; - } - - public function getStroke() - { - return $this->stroke; - } -} - -class Google_Service_MapsEngine_LineStyleStroke extends Google_Model -{ - public $color; - public $opacity; - public $width; - - 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; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_MapsEngine_Map extends Google_Collection -{ - public $bbox; - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = ''; - public $creationTime; - public $defaultViewport; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - public $tags; - public $versions; - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - public function setContents(Google_Service_MapsEngine_MapItem $contents) - { - $this->contents = $contents; - } - - public function getContents() - { - return $this->contents; - } - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - - public function getCreationTime() - { - return $this->creationTime; - } - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - - public function getDefaultViewport() - { - return $this->defaultViewport; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - 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 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 setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setVersions($versions) - { - $this->versions = $versions; - } - - public function getVersions() - { - return $this->versions; - } -} - -class Google_Service_MapsEngine_MapFolder extends Google_Collection -{ - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = 'array'; - public $defaultViewport; - public $expandable; - public $key; - public $name; - public $visibility; - - public function setContents($contents) - { - $this->contents = $contents; - } - - public function getContents() - { - return $this->contents; - } - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - - public function getDefaultViewport() - { - return $this->defaultViewport; - } - - public function setExpandable($expandable) - { - $this->expandable = $expandable; - } - - public function getExpandable() - { - return $this->expandable; - } - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapItem extends Google_Model -{ - public $type; - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_MapKmlLink extends Google_Collection -{ - public $defaultViewport; - public $kmlUrl; - public $name; - public $visibility; - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - - public function getDefaultViewport() - { - return $this->defaultViewport; - } - - public function setKmlUrl($kmlUrl) - { - $this->kmlUrl = $kmlUrl; - } - - public function getKmlUrl() - { - return $this->kmlUrl; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapLayer extends Google_Collection -{ - public $defaultViewport; - public $id; - public $key; - public $name; - public $visibility; - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - - public function getDefaultViewport() - { - return $this->defaultViewport; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapsListResponse extends Google_Collection -{ - protected $mapsType = 'Google_Service_MapsEngine_Map'; - protected $mapsDataType = 'array'; - public $nextPageToken; - - public function setMaps($maps) - { - $this->maps = $maps; - } - - public function getMaps() - { - return $this->maps; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_MapsengineFile extends Google_Model -{ - public $filename; - public $size; - public $uploadStatus; - - public function setFilename($filename) - { - $this->filename = $filename; - } - - public function getFilename() - { - return $this->filename; - } - - public function setSize($size) - { - $this->size = $size; - } - - public function getSize() - { - return $this->size; - } - - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_MapsEngine_Parent extends Google_Model -{ - public $id; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } -} - -class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $parentsType = 'Google_Service_MapsEngine_Parent'; - protected $parentsDataType = 'array'; - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setParents($parents) - { - $this->parents = $parents; - } - - public function getParents() - { - return $this->parents; - } -} - -class Google_Service_MapsEngine_PointStyle extends Google_Model -{ - protected $iconType = 'Google_Service_MapsEngine_IconStyle'; - protected $iconDataType = ''; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - - public function setIcon(Google_Service_MapsEngine_IconStyle $icon) - { - $this->icon = $icon; - } - - public function getIcon() - { - return $this->icon; - } - - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } - - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_MapsEngine_PolygonStyle extends Google_Model -{ - protected $fillType = 'Google_Service_MapsEngine_Color'; - protected $fillDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_Border'; - protected $strokeDataType = ''; - - public function setFill(Google_Service_MapsEngine_Color $fill) - { - $this->fill = $fill; - } - - public function getFill() - { - return $this->fill; - } - - public function setStroke(Google_Service_MapsEngine_Border $stroke) - { - $this->stroke = $stroke; - } - - public function getStroke() - { - return $this->stroke; - } -} - -class Google_Service_MapsEngine_ProcessResponse extends Google_Model -{ - -} - -class Google_Service_MapsEngine_Project extends Google_Model -{ - public $id; - public $name; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } -} - -class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection -{ - protected $projectsType = 'Google_Service_MapsEngine_Project'; - protected $projectsDataType = 'array'; - - public function setProjects($projects) - { - $this->projects = $projects; - } - - public function getProjects() - { - return $this->projects; - } -} - -class Google_Service_MapsEngine_PublishResponse extends Google_Model -{ - -} - -class Google_Service_MapsEngine_Raster extends Google_Collection -{ - protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; - protected $acquisitionTimeDataType = ''; - public $attribution; - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $maskType; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; - - public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) - { - $this->acquisitionTime = $acquisitionTime; - } - - public function getAcquisitionTime() - { - return $this->acquisitionTime; - } - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setFiles($files) - { - $this->files = $files; - } - - public function getFiles() - { - return $this->files; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - - public function setMaskType($maskType) - { - $this->maskType = $maskType; - } - - public function getMaskType() - { - return $this->maskType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - - public function getRasterType() - { - return $this->rasterType; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_RasterCollection extends Google_Collection -{ - public $attribution; - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $mosaic; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - 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 setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - - public function setMosaic($mosaic) - { - $this->mosaic = $mosaic; - } - - public function getMosaic() - { - return $this->mosaic; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - - public function getRasterType() - { - return $this->rasterType; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; - protected $rasterCollectionsDataType = 'array'; - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setRasterCollections($rasterCollections) - { - $this->rasterCollections = $rasterCollections; - } - - public function getRasterCollections() - { - return $this->rasterCollections; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $id; - public $lastModifiedTime; - public $name; - public $projectId; - public $rasterType; - public $tags; - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - 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 setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - - public function getRasterType() - { - return $this->rasterType; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection -{ - public $ids; - - public function setIds($ids) - { - $this->ids = $ids; - } - - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model -{ - -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection -{ - public $ids; - - public function setIds($ids) - { - $this->ids = $ids; - } - - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model -{ - -} - -class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection -{ - public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; - protected $rastersDataType = 'array'; - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setRasters($rasters) - { - $this->rasters = $rasters; - } - - public function getRasters() - { - return $this->rasters; - } -} - -class Google_Service_MapsEngine_Schema extends Google_Collection -{ - protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; - protected $columnsDataType = 'array'; - public $primaryGeometry; - public $primaryKey; - - public function setColumns($columns) - { - $this->columns = $columns; - } - - public function getColumns() - { - return $this->columns; - } - - public function setPrimaryGeometry($primaryGeometry) - { - $this->primaryGeometry = $primaryGeometry; - } - - public function getPrimaryGeometry() - { - return $this->primaryGeometry; - } - - public function setPrimaryKey($primaryKey) - { - $this->primaryKey = $primaryKey; - } - - public function getPrimaryKey() - { - return $this->primaryKey; - } -} - -class Google_Service_MapsEngine_Table extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $sourceEncoding; - public $tags; - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - - public function getBbox() - { - return $this->bbox; - } - - 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 setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - - public function getDraftAccessList() - { - return $this->draftAccessList; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setFiles($files) - { - $this->files = $files; - } - - public function getFiles() - { - return $this->files; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - 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 setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } - - public function getSchema() - { - return $this->schema; - } - - public function setSourceEncoding($sourceEncoding) - { - $this->sourceEncoding = $sourceEncoding; - } - - public function getSourceEncoding() - { - return $this->sourceEncoding; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_TableColumn extends Google_Model -{ - public $name; - public $type; - - 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_MapsEngine_TablesListResponse extends Google_Collection -{ - public $nextPageToken; - protected $tablesType = 'Google_Service_MapsEngine_Table'; - protected $tablesDataType = 'array'; - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setTables($tables) - { - $this->tables = $tables; - } - - public function getTables() - { - return $this->tables; - } -} - -class Google_Service_MapsEngine_VectorStyle extends Google_Collection -{ - protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; - protected $displayRulesDataType = 'array'; - protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; - protected $featureInfoDataType = ''; - public $type; - - public function setDisplayRules($displayRules) - { - $this->displayRules = $displayRules; - } - - public function getDisplayRules() - { - return $this->displayRules; - } - - public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) - { - $this->featureInfo = $featureInfo; - } - - public function getFeatureInfo() - { - return $this->featureInfo; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_ZoomLevels extends Google_Model -{ - public $max; - public $min; - - 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; - } -} From 652a3a2795a470a159cd4b5afdcade4d27ef18fd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 6 Aug 2014 01:06:14 -0700 Subject: [PATCH 0098/1274] Added service MapsEngine.php --- src/Google/Service/MapsEngine.php | 4761 +++++++++++++++++++++++++++++ 1 file changed, 4761 insertions(+) create mode 100644 src/Google/Service/MapsEngine.php diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php new file mode 100644 index 000000000..d898b708e --- /dev/null +++ b/src/Google/Service/MapsEngine.php @@ -0,0 +1,4761 @@ + + * The Google Maps Engine API allows developers to store and query geospatial vector and raster data. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_MapsEngine extends Google_Service +{ + /** View and manage your Google Maps Engine data. */ + const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; + /** View your Google Maps Engine data. */ + const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; + + public $assets; + public $assets_parents; + public $layers; + public $layers_parents; + public $maps; + public $projects; + public $rasterCollections; + public $rasterCollections_parents; + public $rasterCollections_rasters; + public $rasters; + public $rasters_files; + public $rasters_parents; + public $tables; + public $tables_features; + public $tables_files; + public $tables_parents; + + + /** + * Constructs the internal representation of the MapsEngine service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'mapsengine/v1/'; + $this->version = 'v1'; + $this->serviceName = 'mapsengine'; + + $this->assets = new Google_Service_MapsEngine_Assets_Resource( + $this, + $this->serviceName, + 'assets', + array( + 'methods' => array( + 'get' => array( + 'path' => 'assets/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'assets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'assets/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->layers = new Google_Service_MapsEngine_Layers_Resource( + $this, + $this->serviceName, + 'layers', + array( + 'methods' => array( + 'cancelProcessing' => array( + 'path' => 'layers/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'layers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'process' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'delete' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'layers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'process' => array( + 'path' => 'layers/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'publish' => array( + 'path' => 'layers/{id}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unpublish' => array( + 'path' => 'layers/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'layers/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->maps = new Google_Service_MapsEngine_Maps_Resource( + $this, + $this->serviceName, + 'maps', + array( + 'methods' => array( + 'create' => array( + 'path' => 'maps', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'maps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'publish' => array( + 'path' => 'maps/{id}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unpublish' => array( + 'path' => 'maps/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_MapsEngine_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( + $this, + $this->serviceName, + 'rasterCollections', + array( + 'methods' => array( + 'cancelProcessing' => array( + 'path' => 'rasterCollections/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'rasterCollections', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'rasterCollections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'process' => array( + 'path' => 'rasterCollections/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'rasterCollections/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( + $this, + $this->serviceName, + 'rasters', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'rasterCollections/{id}/rasters/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchInsert' => array( + 'path' => 'rasterCollections/{id}/rasters/batchInsert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'rasterCollections/{id}/rasters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->rasters = new Google_Service_MapsEngine_Rasters_Resource( + $this, + $this->serviceName, + 'rasters', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => 'rasters/upload', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'rasters/{id}/files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filename' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'rasters/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->tables = new Google_Service_MapsEngine_Tables_Resource( + $this, + $this->serviceName, + 'tables', + array( + 'methods' => array( + 'create' => array( + 'path' => 'tables', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'tables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => 'tables/upload', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource( + $this, + $this->serviceName, + 'features', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'tables/{id}/features/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchInsert' => array( + 'path' => 'tables/{id}/features/batchInsert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchPatch' => array( + 'path' => 'tables/{id}/features/batchPatch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'tables/{tableId}/features/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'select' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'tables/{id}/features', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'intersects' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'include' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'where' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'select' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'tables/{id}/files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filename' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'tables/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "assets" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $assets = $mapsengineService->assets; + * + */ +class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource +{ + + /** + * Return metadata for a particular asset. (assets.get) + * + * @param string $id + * The ID of the asset. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Asset + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); + } + /** + * Return all assets readable by the current user. (assets.listAssets) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @opt_param string type + * An asset type restriction. If set, only resources of this type will be returned. + * @return Google_Service_MapsEngine_AssetsListResponse + */ + public function listAssets($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_AssetsListResponse"); + } +} + +/** + * The "parents" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $parents = $mapsengineService->parents; + * + */ +class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Resource +{ + + /** + * Return all parent ids of the specified asset. (parents.listAssetsParents) + * + * @param string $id + * The ID of the asset whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listAssetsParents($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } +} + +/** + * The "layers" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $layers = $mapsengineService->layers; + * + */ +class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource +{ + + /** + * Cancel processing on a layer asset. (layers.cancelProcessing) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + /** + * Create a layer asset. (layers.create) + * + * @param Google_Layer $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool process + * Whether to queue the created layer for processing. + * @return Google_Service_MapsEngine_Layer + */ + public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); + } + /** + * Delete a layer. (layers.delete) + * + * @param string $id + * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the + * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove + * it from all maps prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Return metadata for a particular layer. (layers.get) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Layer + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); + } + /** + * Return all layers readable by the current user. (layers.listLayers) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_LayersListResponse + */ + public function listLayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); + } + /** + * Mutate a layer asset. (layers.patch) + * + * @param string $id + * The ID of the layer. + * @param Google_Layer $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + /** + * Process a layer asset. (layers.process) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + /** + * Publish a layer asset. (layers.publish) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function publish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } + /** + * Unpublish a layer asset. (layers.unpublish) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } +} + +/** + * The "parents" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $parents = $mapsengineService->parents; + * + */ +class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Resource +{ + + /** + * Return all parent ids of the specified layer. (parents.listLayersParents) + * + * @param string $id + * The ID of the layer whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listLayersParents($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } +} + +/** + * The "maps" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $maps = $mapsengineService->maps; + * + */ +class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource +{ + + /** + * Create a map asset. (maps.create) + * + * @param Google_Map $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Map + */ + public function create(Google_Service_MapsEngine_Map $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); + } + /** + * Delete a map. (maps.delete) + * + * @param string $id + * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is + * published the request will fail. Unpublish the map prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Return metadata for a particular map. (maps.get) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Map + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); + } + /** + * Return all maps readable by the current user. (maps.listMaps) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_MapsListResponse + */ + public function listMaps($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); + } + /** + * Mutate a map asset. (maps.patch) + * + * @param string $id + * The ID of the map. + * @param Google_Map $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + /** + * Publish a map asset. (maps.publish) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function publish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } + /** + * Unpublish a map asset. (maps.unpublish) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $projects = $mapsengineService->projects; + * + */ +class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resource +{ + + /** + * Return all projects readable by the current user. (projects.listProjects) + * + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProjectsListResponse + */ + public function listProjects($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ProjectsListResponse"); + } +} + +/** + * The "rasterCollections" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $rasterCollections = $mapsengineService->rasterCollections; + * + */ +class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource +{ + + /** + * Cancel processing on a raster collection asset. + * (rasterCollections.cancelProcessing) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + /** + * Create a raster collection asset. (rasterCollections.create) + * + * @param Google_RasterCollection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollection + */ + public function create(Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); + } + /** + * Delete a raster collection. (rasterCollections.delete) + * + * @param string $id + * The ID of the raster collection. Only the raster collection creator or project owner are + * permitted to delete. If the rastor collection is included in a layer, the request will fail. + * Remove the raster collection from all layers prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Return metadata for a particular raster collection. (rasterCollections.get) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollection + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); + } + /** + * Return all raster collections readable by the current user. + * (rasterCollections.listRasterCollections) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_RasterCollectionsListResponse + */ + public function listRasterCollections($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); + } + /** + * Mutate a raster collection asset. (rasterCollections.patch) + * + * @param string $id + * The ID of the raster collection. + * @param Google_RasterCollection $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + /** + * Process a raster collection asset. (rasterCollections.process) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } +} + +/** + * The "parents" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $parents = $mapsengineService->parents; + * + */ +class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google_Service_Resource +{ + + /** + * Return all parent ids of the specified raster collection. + * (parents.listRasterCollectionsParents) + * + * @param string $id + * The ID of the raster collection whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listRasterCollectionsParents($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } +} +/** + * The "rasters" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $rasters = $mapsengineService->rasters; + * + */ +class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google_Service_Resource +{ + + /** + * Remove rasters from an existing raster collection. + * + * Up to 50 rasters can be included in a single batchDelete request. Each + * batchDelete request is atomic. (rasters.batchDelete) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); + } + /** + * Add rasters to an existing raster collection. Rasters must be successfully + * processed in order to be added to a raster collection. + * + * Up to 50 rasters can be included in a single batchInsert request. Each + * batchInsert request is atomic. (rasters.batchInsert) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse + */ + public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); + } + /** + * Return all rasters within a raster collection. + * (rasters.listRasterCollectionsRasters) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse + */ + public function listRasterCollectionsRasters($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); + } +} + +/** + * The "rasters" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $rasters = $mapsengineService->rasters; + * + */ +class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource +{ + + /** + * Delete a raster. (rasters.delete) + * + * @param string $id + * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the + * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior + * to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Return metadata for a single raster. (rasters.get) + * + * @param string $id + * The ID of the raster. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Raster + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); + } + /** + * Mutate a raster asset. (rasters.patch) + * + * @param string $id + * The ID of the raster. + * @param Google_Raster $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + /** + * Create a skeleton raster asset for upload. (rasters.upload) + * + * @param Google_Raster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Raster + */ + public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); + } +} + +/** + * The "files" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $files = $mapsengineService->files; + * + */ +class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Resource +{ + + /** + * Upload a file to a raster asset. (files.insert) + * + * @param string $id + * The ID of the raster asset. + * @param string $filename + * The file name of this uploaded file. + * @param array $optParams Optional parameters. + */ + public function insert($id, $filename, $optParams = array()) + { + $params = array('id' => $id, 'filename' => $filename); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params)); + } +} +/** + * The "parents" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $parents = $mapsengineService->parents; + * + */ +class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_Resource +{ + + /** + * Return all parent ids of the specified rasters. (parents.listRastersParents) + * + * @param string $id + * The ID of the rasters whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listRastersParents($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } +} + +/** + * The "tables" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $tables = $mapsengineService->tables; + * + */ +class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource +{ + + /** + * Create a table asset. (tables.create) + * + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Table + */ + public function create(Google_Service_MapsEngine_Table $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); + } + /** + * Delete a table. (tables.delete) + * + * @param string $id + * The ID of the table. Only the table creator or project owner are permitted to delete. If the + * table is included in a layer, the request will fail. Remove it from all layers prior to + * deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Return metadata for a particular table, including the schema. (tables.get) + * + * @param string $id + * The ID of the table. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Table + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); + } + /** + * Return all tables readable by the current user. (tables.listTables) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_TablesListResponse + */ + public function listTables($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); + } + /** + * Mutate a table asset. (tables.patch) + * + * @param string $id + * The ID of the table. + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + /** + * Create a placeholder table asset to which table files can be uploaded. Once + * the placeholder has been created, files are uploaded to the + * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files + * endpoint. See Table Upload in the Developer's Guide or Table.files: insert in + * the reference documentation for more information. (tables.upload) + * + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Table + */ + public function upload(Google_Service_MapsEngine_Table $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_MapsEngine_Table"); + } +} + +/** + * The "features" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $features = $mapsengineService->features; + * + */ +class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_Resource +{ + + /** + * Delete all features matching the given IDs. (features.batchDelete) + * + * @param string $id + * The ID of the table that contains the features to be deleted. + * @param Google_FeaturesBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params)); + } + /** + * Append features to an existing table. + * + * A single batchInsert request can create: + * + * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits + * are documented in the Supported data formats and limits article of the Google + * Maps Engine help center. Note that free and paid accounts have different + * limits. + * + * For more information about inserting features, read Creating features in the + * Google Maps Engine developer's guide. (features.batchInsert) + * + * @param string $id + * The ID of the table to append the features to. + * @param Google_FeaturesBatchInsertRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchInsert', array($params)); + } + /** + * Update the supplied features. + * + * A single batchPatch request can update: + * + * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits + * are documented in the Supported data formats and limits article of the Google + * Maps Engine help center. Note that free and paid accounts have different + * limits. + * + * Feature updates use HTTP PATCH semantics: + * + * - A supplied value replaces an existing value (if any) in that field. - + * Omitted fields remain unchanged. - Complex values in geometries and + * properties must be replaced as atomic units. For example, providing just the + * coordinates of a geometry is not allowed; the complete geometry, including + * type, must be supplied. - Setting a property's value to null deletes that + * property. For more information about updating features, read Updating + * features in the Google Maps Engine developer's guide. (features.batchPatch) + * + * @param string $id + * The ID of the table containing the features to be patched. + * @param Google_FeaturesBatchPatchRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchPatch', array($params)); + } + /** + * Return a single feature, given its ID. (features.get) + * + * @param string $tableId + * The ID of the table. + * @param string $id + * The ID of the feature to get. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * The table version to access. See Accessing Public Data for information. + * @opt_param string select + * A SQL-like projection clause used to specify returned properties. If this parameter is not + * included, all properties are returned. + * @return Google_Service_MapsEngine_Feature + */ + public function get($tableId, $id, $optParams = array()) + { + $params = array('tableId' => $tableId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); + } + /** + * Return all features readable by the current user. + * (features.listTablesFeatures) + * + * @param string $id + * The ID of the table to which these features belong. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * An SQL-like order by clause used to sort results. If this parameter is not included, the order + * of features is undefined. + * @opt_param string intersects + * A geometry literal that specifies the spatial restriction of the query. + * @opt_param string maxResults + * The maximum number of items to include in the response, used for paging. The maximum supported + * value is 1000. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string version + * The table version to access. See Accessing Public Data for information. + * @opt_param string limit + * The total number of features to return from the query, irrespective of the number of pages. + * @opt_param string include + * A comma separated list of optional data to include. Optional data available: schema. + * @opt_param string where + * An SQL-like predicate used to filter results. + * @opt_param string select + * A SQL-like projection clause used to specify returned properties. If this parameter is not + * included, all properties are returned. + * @return Google_Service_MapsEngine_FeaturesListResponse + */ + public function listTablesFeatures($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_FeaturesListResponse"); + } +} +/** + * The "files" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $files = $mapsengineService->files; + * + */ +class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Resource +{ + + /** + * Upload a file to a placeholder table asset. See Table Upload in the + * Developer's Guide for more information. Supported file types are listed in + * the Supported data formats and limits article of the Google Maps Engine help + * center. (files.insert) + * + * @param string $id + * The ID of the table asset. + * @param string $filename + * The file name of this uploaded file. + * @param array $optParams Optional parameters. + */ + public function insert($id, $filename, $optParams = array()) + { + $params = array('id' => $id, 'filename' => $filename); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params)); + } +} +/** + * The "parents" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $parents = $mapsengineService->parents; + * + */ +class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Resource +{ + + /** + * Return all parent ids of the specified table. (parents.listTablesParents) + * + * @param string $id + * The ID of the table whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listTablesParents($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } +} + + + + +class Google_Service_MapsEngine_AcquisitionTime extends Google_Model +{ + public $end; + public $precision; + public $start; + + public function setEnd($end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + + public function setPrecision($precision) + { + $this->precision = $precision; + } + + public function getPrecision() + { + return $this->precision; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } +} + +class Google_Service_MapsEngine_Asset extends Google_Collection +{ + public $bbox; + public $creationTime; + public $description; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $projectId; + public $resource; + public $tags; + public $type; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + 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 setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setResource($resource) + { + $this->resource = $resource; + } + + public function getResource() + { + return $this->resource; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection +{ + protected $assetsType = 'Google_Service_MapsEngine_Asset'; + protected $assetsDataType = 'array'; + public $nextPageToken; + + public function setAssets($assets) + { + $this->assets = $assets; + } + + public function getAssets() + { + return $this->assets; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_MapsEngine_Border extends Google_Model +{ + public $color; + public $opacity; + public $width; + + 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; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_MapsEngine_Color 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_MapsEngine_Datasource extends Google_Model +{ + public $id; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } +} + +class Google_Service_MapsEngine_DisplayRule extends Google_Collection +{ + protected $filtersType = 'Google_Service_MapsEngine_Filter'; + protected $filtersDataType = 'array'; + protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; + protected $lineOptionsDataType = ''; + public $name; + protected $pointOptionsType = 'Google_Service_MapsEngine_PointStyle'; + protected $pointOptionsDataType = ''; + protected $polygonOptionsType = 'Google_Service_MapsEngine_PolygonStyle'; + protected $polygonOptionsDataType = ''; + protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; + protected $zoomLevelsDataType = ''; + + public function setFilters($filters) + { + $this->filters = $filters; + } + + public function getFilters() + { + return $this->filters; + } + + public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) + { + $this->lineOptions = $lineOptions; + } + + public function getLineOptions() + { + return $this->lineOptions; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) + { + $this->pointOptions = $pointOptions; + } + + public function getPointOptions() + { + return $this->pointOptions; + } + + public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) + { + $this->polygonOptions = $polygonOptions; + } + + public function getPolygonOptions() + { + return $this->polygonOptions; + } + + public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) + { + $this->zoomLevels = $zoomLevels; + } + + public function getZoomLevels() + { + return $this->zoomLevels; + } +} + +class Google_Service_MapsEngine_Feature extends Google_Model +{ + protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; + protected $geometryDataType = ''; + public $properties; + public $type; + + public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) + { + $this->geometry = $geometry; + } + + public function getGeometry() + { + return $this->geometry; + } + + public function setProperties($properties) + { + $this->properties = $properties; + } + + public function getProperties() + { + return $this->properties; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_FeatureInfo extends Google_Model +{ + public $content; + + public function setContent($content) + { + $this->content = $content; + } + + public function getContent() + { + return $this->content; + } +} + +class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection +{ + public $gxIds; + public $primaryKeys; + + public function setGxIds($gxIds) + { + $this->gxIds = $gxIds; + } + + public function getGxIds() + { + return $this->gxIds; + } + + public function setPrimaryKeys($primaryKeys) + { + $this->primaryKeys = $primaryKeys; + } + + public function getPrimaryKeys() + { + return $this->primaryKeys; + } +} + +class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection +{ + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; + + public function setFeatures($features) + { + $this->features = $features; + } + + public function getFeatures() + { + return $this->features; + } +} + +class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection +{ + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; + + public function setFeatures($features) + { + $this->features = $features; + } + + public function getFeatures() + { + return $this->features; + } +} + +class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection +{ + public $allowedQueriesPerSecond; + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; + public $nextPageToken; + protected $schemaType = 'Google_Service_MapsEngine_Schema'; + protected $schemaDataType = ''; + public $type; + + public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) + { + $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; + } + + public function getAllowedQueriesPerSecond() + { + return $this->allowedQueriesPerSecond; + } + + public function setFeatures($features) + { + $this->features = $features; + } + + public function getFeatures() + { + return $this->features; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSchema(Google_Service_MapsEngine_Schema $schema) + { + $this->schema = $schema; + } + + public function getSchema() + { + return $this->schema; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_Filter extends Google_Model +{ + public $column; + public $operator; + public $value; + + public function setColumn($column) + { + $this->column = $column; + } + + public function getColumn() + { + return $this->column; + } + + public function setOperator($operator) + { + $this->operator = $operator; + } + + public function getOperator() + { + return $this->operator; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model +{ + public $type; + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection +{ + protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; + protected $geometriesDataType = 'array'; + + public function setGeometries($geometries) + { + $this->geometries = $geometries; + } + + public function getGeometries() + { + return $this->geometries; + } +} + +class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection +{ + public $coordinates; + + public function setCoordinates($coordinates) + { + $this->coordinates = $coordinates; + } + + public function getCoordinates() + { + return $this->coordinates; + } +} + +class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model +{ + +} + +class Google_Service_MapsEngine_IconStyle extends Google_Model +{ + public $id; + public $name; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + +class Google_Service_MapsEngine_LabelStyle extends Google_Model +{ + public $color; + public $column; + public $fontStyle; + public $fontWeight; + public $opacity; + protected $outlineType = 'Google_Service_MapsEngine_Color'; + protected $outlineDataType = ''; + public $size; + + public function setColor($color) + { + $this->color = $color; + } + + public function getColor() + { + return $this->color; + } + + public function setColumn($column) + { + $this->column = $column; + } + + public function getColumn() + { + return $this->column; + } + + public function setFontStyle($fontStyle) + { + $this->fontStyle = $fontStyle; + } + + public function getFontStyle() + { + return $this->fontStyle; + } + + public function setFontWeight($fontWeight) + { + $this->fontWeight = $fontWeight; + } + + public function getFontWeight() + { + return $this->fontWeight; + } + + public function setOpacity($opacity) + { + $this->opacity = $opacity; + } + + public function getOpacity() + { + return $this->opacity; + } + + public function setOutline(Google_Service_MapsEngine_Color $outline) + { + $this->outline = $outline; + } + + public function getOutline() + { + return $this->outline; + } + + public function setSize($size) + { + $this->size = $size; + } + + public function getSize() + { + return $this->size; + } +} + +class Google_Service_MapsEngine_Layer extends Google_Collection +{ + public $bbox; + public $creationTime; + public $datasourceType; + protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; + protected $datasourcesDataType = 'array'; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; + protected $styleDataType = ''; + public $tags; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + + public function getCreationTime() + { + return $this->creationTime; + } + + public function setDatasourceType($datasourceType) + { + $this->datasourceType = $datasourceType; + } + + public function getDatasourceType() + { + return $this->datasourceType; + } + + public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) + { + $this->datasources = $datasources; + } + + public function getDatasources() + { + return $this->datasources; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + 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 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 setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setPublishedAccessList($publishedAccessList) + { + $this->publishedAccessList = $publishedAccessList; + } + + public function getPublishedAccessList() + { + return $this->publishedAccessList; + } + + public function setStyle(Google_Service_MapsEngine_VectorStyle $style) + { + $this->style = $style; + } + + public function getStyle() + { + return $this->style; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_MapsEngine_LayersListResponse extends Google_Collection +{ + protected $layersType = 'Google_Service_MapsEngine_Layer'; + protected $layersDataType = 'array'; + public $nextPageToken; + + public function setLayers($layers) + { + $this->layers = $layers; + } + + public function getLayers() + { + return $this->layers; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_MapsEngine_LineStyle extends Google_Collection +{ + protected $borderType = 'Google_Service_MapsEngine_Border'; + protected $borderDataType = ''; + public $dash; + protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; + protected $labelDataType = ''; + protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; + protected $strokeDataType = ''; + + public function setBorder(Google_Service_MapsEngine_Border $border) + { + $this->border = $border; + } + + public function getBorder() + { + return $this->border; + } + + public function setDash($dash) + { + $this->dash = $dash; + } + + public function getDash() + { + return $this->dash; + } + + public function setLabel(Google_Service_MapsEngine_LabelStyle $label) + { + $this->label = $label; + } + + public function getLabel() + { + return $this->label; + } + + public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) + { + $this->stroke = $stroke; + } + + public function getStroke() + { + return $this->stroke; + } +} + +class Google_Service_MapsEngine_LineStyleStroke extends Google_Model +{ + public $color; + public $opacity; + public $width; + + 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; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_MapsEngine_Map extends Google_Collection +{ + public $bbox; + protected $contentsType = 'Google_Service_MapsEngine_MapItem'; + protected $contentsDataType = ''; + public $creationTime; + public $defaultViewport; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + public $tags; + public $versions; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + public function setContents(Google_Service_MapsEngine_MapItem $contents) + { + $this->contents = $contents; + } + + public function getContents() + { + return $this->contents; + } + + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + + public function getCreationTime() + { + return $this->creationTime; + } + + public function setDefaultViewport($defaultViewport) + { + $this->defaultViewport = $defaultViewport; + } + + public function getDefaultViewport() + { + return $this->defaultViewport; + } + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + 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 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 setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setPublishedAccessList($publishedAccessList) + { + $this->publishedAccessList = $publishedAccessList; + } + + public function getPublishedAccessList() + { + return $this->publishedAccessList; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } + + public function setVersions($versions) + { + $this->versions = $versions; + } + + public function getVersions() + { + return $this->versions; + } +} + +class Google_Service_MapsEngine_MapFolder extends Google_Collection +{ + protected $contentsType = 'Google_Service_MapsEngine_MapItem'; + protected $contentsDataType = 'array'; + public $defaultViewport; + public $expandable; + public $key; + public $name; + public $visibility; + + public function setContents($contents) + { + $this->contents = $contents; + } + + public function getContents() + { + return $this->contents; + } + + public function setDefaultViewport($defaultViewport) + { + $this->defaultViewport = $defaultViewport; + } + + public function getDefaultViewport() + { + return $this->defaultViewport; + } + + public function setExpandable($expandable) + { + $this->expandable = $expandable; + } + + public function getExpandable() + { + return $this->expandable; + } + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_MapsEngine_MapItem extends Google_Model +{ + public $type; + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_MapKmlLink extends Google_Collection +{ + public $defaultViewport; + public $kmlUrl; + public $name; + public $visibility; + + public function setDefaultViewport($defaultViewport) + { + $this->defaultViewport = $defaultViewport; + } + + public function getDefaultViewport() + { + return $this->defaultViewport; + } + + public function setKmlUrl($kmlUrl) + { + $this->kmlUrl = $kmlUrl; + } + + public function getKmlUrl() + { + return $this->kmlUrl; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_MapsEngine_MapLayer extends Google_Collection +{ + public $defaultViewport; + public $id; + public $key; + public $name; + public $visibility; + + public function setDefaultViewport($defaultViewport) + { + $this->defaultViewport = $defaultViewport; + } + + public function getDefaultViewport() + { + return $this->defaultViewport; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_MapsEngine_MapsListResponse extends Google_Collection +{ + protected $mapsType = 'Google_Service_MapsEngine_Map'; + protected $mapsDataType = 'array'; + public $nextPageToken; + + public function setMaps($maps) + { + $this->maps = $maps; + } + + public function getMaps() + { + return $this->maps; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_MapsEngine_MapsengineFile extends Google_Model +{ + public $filename; + public $size; + public $uploadStatus; + + public function setFilename($filename) + { + $this->filename = $filename; + } + + public function getFilename() + { + return $this->filename; + } + + public function setSize($size) + { + $this->size = $size; + } + + public function getSize() + { + return $this->size; + } + + public function setUploadStatus($uploadStatus) + { + $this->uploadStatus = $uploadStatus; + } + + public function getUploadStatus() + { + return $this->uploadStatus; + } +} + +class Google_Service_MapsEngine_Parent extends Google_Model +{ + public $id; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } +} + +class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection +{ + public $nextPageToken; + protected $parentsType = 'Google_Service_MapsEngine_Parent'; + protected $parentsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setParents($parents) + { + $this->parents = $parents; + } + + public function getParents() + { + return $this->parents; + } +} + +class Google_Service_MapsEngine_PointStyle extends Google_Model +{ + protected $iconType = 'Google_Service_MapsEngine_IconStyle'; + protected $iconDataType = ''; + protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; + protected $labelDataType = ''; + + public function setIcon(Google_Service_MapsEngine_IconStyle $icon) + { + $this->icon = $icon; + } + + public function getIcon() + { + return $this->icon; + } + + public function setLabel(Google_Service_MapsEngine_LabelStyle $label) + { + $this->label = $label; + } + + public function getLabel() + { + return $this->label; + } +} + +class Google_Service_MapsEngine_PolygonStyle extends Google_Model +{ + protected $fillType = 'Google_Service_MapsEngine_Color'; + protected $fillDataType = ''; + protected $strokeType = 'Google_Service_MapsEngine_Border'; + protected $strokeDataType = ''; + + public function setFill(Google_Service_MapsEngine_Color $fill) + { + $this->fill = $fill; + } + + public function getFill() + { + return $this->fill; + } + + public function setStroke(Google_Service_MapsEngine_Border $stroke) + { + $this->stroke = $stroke; + } + + public function getStroke() + { + return $this->stroke; + } +} + +class Google_Service_MapsEngine_ProcessResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_Project extends Google_Model +{ + public $id; + public $name; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + +class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection +{ + protected $projectsType = 'Google_Service_MapsEngine_Project'; + protected $projectsDataType = 'array'; + + public function setProjects($projects) + { + $this->projects = $projects; + } + + public function getProjects() + { + return $this->projects; + } +} + +class Google_Service_MapsEngine_PublishResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_Raster extends Google_Collection +{ + protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; + protected $acquisitionTimeDataType = ''; + public $attribution; + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; + protected $filesDataType = 'array'; + public $id; + public $lastModifiedTime; + public $maskType; + public $name; + public $processingStatus; + public $projectId; + public $rasterType; + public $tags; + + public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) + { + $this->acquisitionTime = $acquisitionTime; + } + + public function getAcquisitionTime() + { + return $this->acquisitionTime; + } + + public function setAttribution($attribution) + { + $this->attribution = $attribution; + } + + public function getAttribution() + { + return $this->attribution; + } + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + + public function setFiles($files) + { + $this->files = $files; + } + + public function getFiles() + { + return $this->files; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setLastModifiedTime($lastModifiedTime) + { + $this->lastModifiedTime = $lastModifiedTime; + } + + public function getLastModifiedTime() + { + return $this->lastModifiedTime; + } + + public function setMaskType($maskType) + { + $this->maskType = $maskType; + } + + public function getMaskType() + { + return $this->maskType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setRasterType($rasterType) + { + $this->rasterType = $rasterType; + } + + public function getRasterType() + { + return $this->rasterType; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_MapsEngine_RasterCollection extends Google_Collection +{ + public $attribution; + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $mosaic; + public $name; + public $processingStatus; + public $projectId; + public $rasterType; + public $tags; + + public function setAttribution($attribution) + { + $this->attribution = $attribution; + } + + public function getAttribution() + { + return $this->attribution; + } + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + 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 setLastModifiedTime($lastModifiedTime) + { + $this->lastModifiedTime = $lastModifiedTime; + } + + public function getLastModifiedTime() + { + return $this->lastModifiedTime; + } + + public function setMosaic($mosaic) + { + $this->mosaic = $mosaic; + } + + public function getMosaic() + { + return $this->mosaic; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setRasterType($rasterType) + { + $this->rasterType = $rasterType; + } + + public function getRasterType() + { + return $this->rasterType; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection +{ + public $nextPageToken; + protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; + protected $rasterCollectionsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setRasterCollections($rasterCollections) + { + $this->rasterCollections = $rasterCollections; + } + + public function getRasterCollections() + { + return $this->rasterCollections; + } +} + +class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection +{ + public $bbox; + public $creationTime; + public $description; + public $id; + public $lastModifiedTime; + public $name; + public $projectId; + public $rasterType; + public $tags; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + 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 setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setRasterType($rasterType) + { + $this->rasterType = $rasterType; + } + + public function getRasterType() + { + return $this->rasterType; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection +{ + public $ids; + + public function setIds($ids) + { + $this->ids = $ids; + } + + public function getIds() + { + return $this->ids; + } +} + +class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection +{ + public $ids; + + public function setIds($ids) + { + $this->ids = $ids; + } + + public function getIds() + { + return $this->ids; + } +} + +class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection +{ + public $nextPageToken; + protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; + protected $rastersDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setRasters($rasters) + { + $this->rasters = $rasters; + } + + public function getRasters() + { + return $this->rasters; + } +} + +class Google_Service_MapsEngine_Schema extends Google_Collection +{ + protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; + protected $columnsDataType = 'array'; + public $primaryGeometry; + public $primaryKey; + + public function setColumns($columns) + { + $this->columns = $columns; + } + + public function getColumns() + { + return $this->columns; + } + + public function setPrimaryGeometry($primaryGeometry) + { + $this->primaryGeometry = $primaryGeometry; + } + + public function getPrimaryGeometry() + { + return $this->primaryGeometry; + } + + public function setPrimaryKey($primaryKey) + { + $this->primaryKey = $primaryKey; + } + + public function getPrimaryKey() + { + return $this->primaryKey; + } +} + +class Google_Service_MapsEngine_Table extends Google_Collection +{ + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; + protected $filesDataType = 'array'; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + protected $schemaType = 'Google_Service_MapsEngine_Schema'; + protected $schemaDataType = ''; + public $sourceEncoding; + public $tags; + + public function setBbox($bbox) + { + $this->bbox = $bbox; + } + + public function getBbox() + { + return $this->bbox; + } + + 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 setDraftAccessList($draftAccessList) + { + $this->draftAccessList = $draftAccessList; + } + + public function getDraftAccessList() + { + return $this->draftAccessList; + } + + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + + public function setFiles($files) + { + $this->files = $files; + } + + public function getFiles() + { + return $this->files; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + 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 setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() + { + return $this->processingStatus; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } + + public function setPublishedAccessList($publishedAccessList) + { + $this->publishedAccessList = $publishedAccessList; + } + + public function getPublishedAccessList() + { + return $this->publishedAccessList; + } + + public function setSchema(Google_Service_MapsEngine_Schema $schema) + { + $this->schema = $schema; + } + + public function getSchema() + { + return $this->schema; + } + + public function setSourceEncoding($sourceEncoding) + { + $this->sourceEncoding = $sourceEncoding; + } + + public function getSourceEncoding() + { + return $this->sourceEncoding; + } + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_MapsEngine_TableColumn extends Google_Model +{ + public $name; + public $type; + + 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_MapsEngine_TablesListResponse extends Google_Collection +{ + public $nextPageToken; + protected $tablesType = 'Google_Service_MapsEngine_Table'; + protected $tablesDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setTables($tables) + { + $this->tables = $tables; + } + + public function getTables() + { + return $this->tables; + } +} + +class Google_Service_MapsEngine_VectorStyle extends Google_Collection +{ + protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; + protected $displayRulesDataType = 'array'; + protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; + protected $featureInfoDataType = ''; + public $type; + + public function setDisplayRules($displayRules) + { + $this->displayRules = $displayRules; + } + + public function getDisplayRules() + { + return $this->displayRules; + } + + public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) + { + $this->featureInfo = $featureInfo; + } + + public function getFeatureInfo() + { + return $this->featureInfo; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_ZoomLevels extends Google_Model +{ + public $max; + public $min; + + 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; + } +} From 6a19712f0bac10753310e2064facd084d7c0f8e0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 6 Aug 2014 01:06:14 -0700 Subject: [PATCH 0099/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 212 ++++++++++++++++++++++++++++++++ 1 file changed, 212 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 958850791..b568ca9d7 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -47,6 +47,7 @@ class Google_Service_Genomics extends Google_Service public $jobs; public $reads; public $readsets; + public $readsets_coveragebuckets; public $variants; @@ -357,6 +358,50 @@ public function __construct(Google_Client $client) ) ) ); + $this->readsets_coveragebuckets = new Google_Service_Genomics_ReadsetsCoveragebuckets_Resource( + $this, + $this->serviceName, + 'coveragebuckets', + array( + 'methods' => array( + 'list' => array( + 'path' => 'readsets/{readsetId}/coveragebuckets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'range.sequenceStart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'range.sequenceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'targetBucketWidth' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'range.sequenceEnd' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->variants = new Google_Service_Genomics_Variants_Resource( $this, $this->serviceName, @@ -935,6 +980,60 @@ public function update($readsetId, Google_Service_Genomics_Readset $postBody, $o } } +/** + * The "coveragebuckets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $coveragebuckets = $genomicsService->coveragebuckets; + * + */ +class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Service_Resource +{ + + /** + * Lists fixed width coverage buckets for a readset, each of which correspond to + * a range of a reference sequence. Each bucket summarizes coverage information + * across its corresponding genomic range. Coverage is defined as the number of + * reads which are aligned to a given base in the reference sequence. Coverage + * buckets are available at various bucket widths, enabling various coverage + * "zoom levels". The caller must have READ permissions for the target readset. + * (coveragebuckets.listReadsetsCoveragebuckets) + * + * @param string $readsetId + * Required. The ID of the readset over which coverage is requested. + * @param array $optParams Optional parameters. + * + * @opt_param string range.sequenceStart + * The start position of the range on the reference, 1-based inclusive. If specified, sequenceName + * must also be specified. + * @opt_param string maxResults + * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The + * maximum value is 2048. + * @opt_param string range.sequenceName + * The reference sequence name, for example "chr1", "1", or "chrX". + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string targetBucketWidth + * The desired width of each reported coverage bucket in base pairs. This will be rounded down to + * the nearest precomputed bucket width; the value of which is returned as bucket_width in the + * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of + * the target range, if specified. The smallest precomputed bucket_width is currently 2048 base + * pairs; this is subject to change. + * @opt_param string range.sequenceEnd + * The end position of the range on the reference, 1-based exclusive. If specified, sequenceName + * must also be specified. + * @return Google_Service_Genomics_ListCoverageBucketsResponse + */ + public function listReadsetsCoveragebuckets($readsetId, $optParams = array()) + { + $params = array('readsetId' => $readsetId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); + } +} + /** * The "variants" collection of methods. * Typical usage is: @@ -1256,6 +1355,33 @@ public function getUpperBound() } } +class Google_Service_Genomics_CoverageBucket extends Google_Model +{ + public $meanCoverage; + protected $rangeType = 'Google_Service_Genomics_GenomicRange'; + protected $rangeDataType = ''; + + public function setMeanCoverage($meanCoverage) + { + $this->meanCoverage = $meanCoverage; + } + + public function getMeanCoverage() + { + return $this->meanCoverage; + } + + public function setRange(Google_Service_Genomics_GenomicRange $range) + { + $this->range = $range; + } + + public function getRange() + { + return $this->range; + } +} + class Google_Service_Genomics_Dataset extends Google_Model { public $id; @@ -1526,6 +1652,43 @@ public function getJobId() } } +class Google_Service_Genomics_GenomicRange extends Google_Model +{ + public $sequenceEnd; + public $sequenceName; + public $sequenceStart; + + public function setSequenceEnd($sequenceEnd) + { + $this->sequenceEnd = $sequenceEnd; + } + + public function getSequenceEnd() + { + return $this->sequenceEnd; + } + + public function setSequenceName($sequenceName) + { + $this->sequenceName = $sequenceName; + } + + public function getSequenceName() + { + return $this->sequenceName; + } + + public function setSequenceStart($sequenceStart) + { + $this->sequenceStart = $sequenceStart; + } + + public function getSequenceStart() + { + return $this->sequenceStart; + } +} + class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collection { protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; @@ -1584,6 +1747,7 @@ class Google_Service_Genomics_HeaderSection extends Google_Collection { public $comments; public $fileUri; + public $filename; protected $headersType = 'Google_Service_Genomics_Header'; protected $headersDataType = 'array'; protected $programsType = 'Google_Service_Genomics_Program'; @@ -1613,6 +1777,16 @@ public function getFileUri() return $this->fileUri; } + public function setFilename($filename) + { + $this->filename = $filename; + } + + public function getFilename() + { + return $this->filename; + } + public function setHeaders($headers) { $this->headers = $headers; @@ -1828,6 +2002,44 @@ public function getWarnings() } } +class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection +{ + public $bucketWidth; + protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; + protected $coverageBucketsDataType = 'array'; + public $nextPageToken; + + public function setBucketWidth($bucketWidth) + { + $this->bucketWidth = $bucketWidth; + } + + public function getBucketWidth() + { + return $this->bucketWidth; + } + + public function setCoverageBuckets($coverageBuckets) + { + $this->coverageBuckets = $coverageBuckets; + } + + public function getCoverageBuckets() + { + return $this->coverageBuckets; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection { protected $datasetsType = 'Google_Service_Genomics_Dataset'; From e0d22f40d135c210bf3cf5f098088413a6d966cf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 8 Aug 2014 01:07:54 -0700 Subject: [PATCH 0100/1274] Updated Compute.php --- src/Google/Service/Compute.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 0d21c71b4..4d704e4cb 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -6150,6 +6150,7 @@ class Google_Service_Compute_BackendService extends Google_Collection public $kind; public $name; public $port; + public $portName; public $protocol; public $selfLink; public $timeoutSec; @@ -6244,6 +6245,16 @@ public function getPort() return $this->port; } + public function setPortName($portName) + { + $this->portName = $portName; + } + + public function getPortName() + { + return $this->portName; + } + public function setProtocol($protocol) { $this->protocol = $protocol; From 53cf94c87fe6a7c11711c126bb5fb08fd5ecc306 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 8 Aug 2014 01:07:54 -0700 Subject: [PATCH 0101/1274] Updated Fusiontables.php --- src/Google/Service/Fusiontables.php | 236 ++++++++++++++++++++++++++++ 1 file changed, 236 insertions(+) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index c9b64e5c1..ffa01bd10 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -40,6 +40,7 @@ class Google_Service_Fusiontables extends Google_Service public $query; public $style; public $table; + public $task; public $template; @@ -434,6 +435,68 @@ public function __construct(Google_Client $client) ) ) ); + $this->task = new Google_Service_Fusiontables_Task_Resource( + $this, + $this->serviceName, + 'task', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'tables/{tableId}/tasks/{taskId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'tables/{tableId}/tasks/{taskId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'tables/{tableId}/tasks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->template = new Google_Service_Fusiontables_Template_Resource( $this, $this->serviceName, @@ -998,6 +1061,71 @@ public function update($tableId, Google_Service_Fusiontables_Table $postBody, $o } } +/** + * The "task" collection of methods. + * Typical usage is: + * + * $fusiontablesService = new Google_Service_Fusiontables(...); + * $task = $fusiontablesService->task; + * + */ +class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource +{ + + /** + * Deletes the task, unless already started. (task.delete) + * + * @param string $tableId + * Table from which the task is being deleted. + * @param string $taskId + * + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $taskId, $optParams = array()) + { + $params = array('tableId' => $tableId, 'taskId' => $taskId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves a specific task by its id. (task.get) + * + * @param string $tableId + * Table to which the task belongs. + * @param string $taskId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Task + */ + public function get($tableId, $taskId, $optParams = array()) + { + $params = array('tableId' => $tableId, 'taskId' => $taskId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_Task"); + } + /** + * Retrieves a list of tasks. (task.listTask) + * + * @param string $tableId + * Table whose tasks are being listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * + * @opt_param string startIndex + * + * @opt_param string maxResults + * Maximum number of columns to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_TaskList + */ + public function listTask($tableId, $optParams = array()) + { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList"); + } +} + /** * The "template" collection of methods. * Typical usage is: @@ -2102,6 +2230,114 @@ public function getNextPageToken() } } +class Google_Service_Fusiontables_Task extends Google_Model +{ + public $kind; + public $progress; + public $started; + public $taskId; + public $type; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setProgress($progress) + { + $this->progress = $progress; + } + + public function getProgress() + { + return $this->progress; + } + + public function setStarted($started) + { + $this->started = $started; + } + + public function getStarted() + { + return $this->started; + } + + public function setTaskId($taskId) + { + $this->taskId = $taskId; + } + + public function getTaskId() + { + return $this->taskId; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_Fusiontables_TaskList extends Google_Collection +{ + protected $itemsType = 'Google_Service_Fusiontables_Task'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; + + 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_Template extends Google_Collection { public $automaticColumnNames; From 04d19e7238b3198014e4cc36690e567e650d1015 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 8 Aug 2014 01:07:55 -0700 Subject: [PATCH 0102/1274] Updated ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 34 +++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 5780318b9..09e89565f 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -1532,7 +1532,8 @@ class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Mod { public $deliveryLocationGroup; public $deliveryLocationId; - public $deliveryPostalCode; + protected $deliveryPostalCodeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $deliveryPostalCodeDataType = ''; protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; protected $priceMaxDataType = ''; public $shippingLabel; @@ -1559,7 +1560,7 @@ public function getDeliveryLocationId() return $this->deliveryLocationId; } - public function setDeliveryPostalCode($deliveryPostalCode) + public function setDeliveryPostalCode(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCode) { $this->deliveryPostalCode = $deliveryPostalCode; } @@ -1605,7 +1606,8 @@ class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google public $country; public $locationIds; public $name; - public $postalCodes; + protected $postalCodesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $postalCodesDataType = 'array'; public function setCountry($country) { @@ -1648,6 +1650,32 @@ public function getPostalCodes() } } +class Google_Service_ShoppingContent_AccountShippingPostalCodeRange 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; + } +} + class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection { protected $contentsType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; From a3b552de85e652fb6836503e428d76edda726987 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 8 Aug 2014 01:07:55 -0700 Subject: [PATCH 0103/1274] Updated AdExchangeBuyer.php --- src/Google/Service/AdExchangeBuyer.php | 143 ++++++++++++++++++++++++- 1 file changed, 142 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index afb05a2f4..533b9b2fd 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -19,7 +19,7 @@ * Service definition for AdExchangeBuyer (v1.3). * *

- * Lets you manage your Ad Exchange Buyer account. + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. *

* *

@@ -35,6 +35,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer"; public $accounts; + public $billingInfo; public $creatives; public $directDeals; public $performanceReport; @@ -97,6 +98,30 @@ public function __construct(Google_Client $client) ) ) ); + $this->billingInfo = new Google_Service_AdExchangeBuyer_BillingInfo_Resource( + $this, + $this->serviceName, + 'billingInfo', + array( + 'methods' => array( + 'get' => array( + 'path' => 'billinginfo/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'billinginfo', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -379,6 +404,47 @@ public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $o } } +/** + * The "billingInfo" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $billingInfo = $adexchangebuyerService->billingInfo; + * + */ +class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service_Resource +{ + + /** + * Returns the billing information for one account specified by account ID. + * (billingInfo.get) + * + * @param int $accountId + * The account id. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_BillingInfo + */ + public function get($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo"); + } + /** + * Retrieves a list of billing information for all accounts of the authenticated + * user. (billingInfo.listBillingInfo) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_BillingInfoList + */ + public function listBillingInfo($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList"); + } +} + /** * The "creatives" collection of methods. * Typical usage is: @@ -772,6 +838,81 @@ public function getKind() } } +class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection +{ + public $accountId; + public $accountName; + public $billingId; + public $kind; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setAccountName($accountName) + { + $this->accountName = $accountName; + } + + public function getAccountName() + { + return $this->accountName; + } + + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + + public function getBillingId() + { + return $this->billingId; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection +{ + protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; + protected $itemsDataType = 'array'; + public $kind; + + 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; From a97daa4273a55a3f656617a292630fef50e7a1e6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 9 Aug 2014 01:09:06 -0700 Subject: [PATCH 0104/1274] Added service CloudMonitoring.php --- src/Google/Service/CloudMonitoring.php | 974 +++++++++++++++++++++++++ 1 file changed, 974 insertions(+) create mode 100644 src/Google/Service/CloudMonitoring.php diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php new file mode 100644 index 000000000..03fca0ff9 --- /dev/null +++ b/src/Google/Service/CloudMonitoring.php @@ -0,0 +1,974 @@ + + * API for accessing Google Cloud and API monitoring data. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_CloudMonitoring extends Google_Service +{ + /** View monitoring data for all of your Google Cloud and API projects. */ + const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; + + public $metricDescriptors; + public $timeseries; + public $timeseriesDescriptors; + + + /** + * Constructs the internal representation of the CloudMonitoring service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; + $this->version = 'v2beta1'; + $this->serviceName = 'cloudmonitoring'; + + $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( + $this, + $this->serviceName, + 'metricDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseries = new Google_Service_CloudMonitoring_Timeseries_Resource( + $this, + $this->serviceName, + 'timeseries', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseries/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource( + $this, + $this->serviceName, + 'timeseriesDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseriesDescriptors/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "metricDescriptors" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); + * $metricDescriptors = $cloudmonitoringService->metricDescriptors; + * + */ +class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource +{ + + /** + * List metric descriptors that match the query. If the query is not set, then + * all of the metric descriptors will be returned. Large responses will be + * paginated, use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) + * + * @param string $project + * The project id. The value can be the numeric project ID or string-based project name. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = + * 100. + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string query + * The query used to search against existing metrics. Separate keywords with a space; the service + * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. + * If this field is omitted, all metrics are returned. If an empty string is passed with this + * field, no metrics are returned. + * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse + */ + public function listMetricDescriptors($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse"); + } +} + +/** + * The "timeseries" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); + * $timeseries = $cloudmonitoringService->timeseries; + * + */ +class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_Resource +{ + + /** + * List the data points of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseries.listTimeseries) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of data points per page, which is used for pagination of results. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + - s: second + - m: minute + - h: hour + - d: day + - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + - key==value: + * key equals the value + - key=~value: key regex matches the value + - key!=value: key does not + * equal the value + - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_CloudMonitoring_ListTimeseriesResponse + */ + public function listTimeseries($project, $metric, $youngest, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); + } +} + +/** + * The "timeseriesDescriptors" collection of methods. + * Typical usage is: + * + * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); + * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors; + * + */ +class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource +{ + + /** + * List the descriptors of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of time series descriptors per page. Used for pagination. If not specified, count + * = 100. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + - s: second + - m: minute + - h: hour + - d: day + - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + - key==value: + * key equals the value + - key=~value: key regex matches the value + - key!=value: key does not + * equal the value + - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse + */ + public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse"); + } +} + + + + +class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection +{ + public $kind; + protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; + protected $metricsDataType = 'array'; + public $nextPageToken; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + + public function getMetrics() + { + return $this->metrics; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDataType = 'array'; + public $youngest; + + 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 setOldest($oldest) + { + $this->oldest = $oldest; + } + + public function getOldest() + { + return $this->oldest; + } + + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + + public function getTimeseries() + { + return $this->timeseries; + } + + public function setYoungest($youngest) + { + $this->youngest = $youngest; + } + + public function getYoungest() + { + return $this->youngest; + } +} + +class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model +{ + public $kind; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection +{ + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries'; + protected $timeseriesDataType = 'array'; + public $youngest; + + 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 setOldest($oldest) + { + $this->oldest = $oldest; + } + + public function getOldest() + { + return $this->oldest; + } + + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + + public function getTimeseries() + { + return $this->timeseries; + } + + public function setYoungest($youngest) + { + $this->youngest = $youngest; + } + + public function getYoungest() + { + return $this->youngest; + } +} + +class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection +{ + public $description; + protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; + protected $labelsDataType = 'array'; + public $name; + public $project; + protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor'; + protected $typeDescriptorDataType = ''; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setLabels($labels) + { + $this->labels = $labels; + } + + public function getLabels() + { + return $this->labels; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProject($project) + { + $this->project = $project; + } + + public function getProject() + { + return $this->project; + } + + public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) + { + $this->typeDescriptor = $typeDescriptor; + } + + public function getTypeDescriptor() + { + return $this->typeDescriptor; + } +} + +class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model +{ + public $description; + public $key; + + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } +} + +class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model +{ + public $metricType; + public $valueType; + + public function setMetricType($metricType) + { + $this->metricType = $metricType; + } + + public function getMetricType() + { + return $this->metricType; + } + + public function setValueType($valueType) + { + $this->valueType = $valueType; + } + + public function getValueType() + { + return $this->valueType; + } +} + +class Google_Service_CloudMonitoring_Point extends Google_Model +{ + public $boolValue; + protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution'; + protected $distributionValueDataType = ''; + public $doubleValue; + public $end; + public $int64Value; + public $start; + public $stringValue; + + public function setBoolValue($boolValue) + { + $this->boolValue = $boolValue; + } + + public function getBoolValue() + { + return $this->boolValue; + } + + public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue) + { + $this->distributionValue = $distributionValue; + } + + public function getDistributionValue() + { + return $this->distributionValue; + } + + public function setDoubleValue($doubleValue) + { + $this->doubleValue = $doubleValue; + } + + public function getDoubleValue() + { + return $this->doubleValue; + } + + public function setEnd($end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + + public function setInt64Value($int64Value) + { + $this->int64Value = $int64Value; + } + + public function getInt64Value() + { + return $this->int64Value; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } + + public function setStringValue($stringValue) + { + $this->stringValue = $stringValue; + } + + public function getStringValue() + { + return $this->stringValue; + } +} + +class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection +{ + protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; + protected $bucketsDataType = 'array'; + protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; + protected $overflowBucketDataType = ''; + protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket'; + protected $underflowBucketDataType = ''; + + public function setBuckets($buckets) + { + $this->buckets = $buckets; + } + + public function getBuckets() + { + return $this->buckets; + } + + public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket) + { + $this->overflowBucket = $overflowBucket; + } + + public function getOverflowBucket() + { + return $this->overflowBucket; + } + + public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket) + { + $this->underflowBucket = $underflowBucket; + } + + public function getUnderflowBucket() + { + return $this->underflowBucket; + } +} + +class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model +{ + public $count; + public $lowerBound; + public $upperBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setLowerBound($lowerBound) + { + $this->lowerBound = $lowerBound; + } + + public function getLowerBound() + { + return $this->lowerBound; + } + + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + + public function getUpperBound() + { + return $this->upperBound; + } +} + +class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model +{ + public $count; + public $lowerBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setLowerBound($lowerBound) + { + $this->lowerBound = $lowerBound; + } + + public function getLowerBound() + { + return $this->lowerBound; + } +} + +class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model +{ + public $count; + public $upperBound; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + + public function getUpperBound() + { + return $this->upperBound; + } +} + +class Google_Service_CloudMonitoring_Timeseries extends Google_Collection +{ + protected $pointsType = 'Google_Service_CloudMonitoring_Point'; + protected $pointsDataType = 'array'; + protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; + + public function setPoints($points) + { + $this->points = $points; + } + + public function getPoints() + { + return $this->points; + } + + public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) + { + $this->timeseriesDesc = $timeseriesDesc; + } + + public function getTimeseriesDesc() + { + return $this->timeseriesDesc; + } +} + +class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model +{ + public $labels; + public $metric; + public $project; + + public function setLabels($labels) + { + $this->labels = $labels; + } + + public function getLabels() + { + return $this->labels; + } + + public function setMetric($metric) + { + $this->metric = $metric; + } + + public function getMetric() + { + return $this->metric; + } + + public function setProject($project) + { + $this->project = $project; + } + + public function getProject() + { + return $this->project; + } +} + +class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model +{ + +} From 4ae272683e18888362e1f935b813e345b99e23b8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 9 Aug 2014 01:09:06 -0700 Subject: [PATCH 0105/1274] Removed Cloudmonitoring.php --- src/Google/Service/Cloudmonitoring.php | 974 ------------------------- 1 file changed, 974 deletions(-) delete mode 100644 src/Google/Service/Cloudmonitoring.php diff --git a/src/Google/Service/Cloudmonitoring.php b/src/Google/Service/Cloudmonitoring.php deleted file mode 100644 index 48f5ca9b3..000000000 --- a/src/Google/Service/Cloudmonitoring.php +++ /dev/null @@ -1,974 +0,0 @@ - - * API for accessing Google Cloud and API monitoring data. - *

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Cloudmonitoring extends Google_Service -{ - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; - - public $metricDescriptors; - public $timeseries; - public $timeseriesDescriptors; - - - /** - * Constructs the internal representation of the Cloudmonitoring service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; - $this->version = 'v2beta1'; - $this->serviceName = 'cloudmonitoring'; - - $this->metricDescriptors = new Google_Service_Cloudmonitoring_MetricDescriptors_Resource( - $this, - $this->serviceName, - 'metricDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/metricDescriptors', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->timeseries = new Google_Service_Cloudmonitoring_Timeseries_Resource( - $this, - $this->serviceName, - 'timeseries', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseries/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->timeseriesDescriptors = new Google_Service_Cloudmonitoring_TimeseriesDescriptors_Resource( - $this, - $this->serviceName, - 'timeseriesDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseriesDescriptors/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "metricDescriptors" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); - * $metricDescriptors = $cloudmonitoringService->metricDescriptors; - * - */ -class Google_Service_Cloudmonitoring_MetricDescriptors_Resource extends Google_Service_Resource -{ - - /** - * List metric descriptors that match the query. If the query is not set, then - * all of the metric descriptors will be returned. Large responses will be - * paginated, use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) - * - * @param string $project - * The project id. The value can be the numeric project ID or string-based project name. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = - * 100. - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string query - * The query used to search against existing metrics. Separate keywords with a space; the service - * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. - * If this field is omitted, all metrics are returned. If an empty string is passed with this - * field, no metrics are returned. - * @return Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse - */ - public function listMetricDescriptors($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse"); - } -} - -/** - * The "timeseries" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); - * $timeseries = $cloudmonitoringService->timeseries; - * - */ -class Google_Service_Cloudmonitoring_Timeseries_Resource extends Google_Service_Resource -{ - - /** - * List the data points of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseries.listTimeseries) - * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of data points per page, which is used for pagination of results. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] - * @return Google_Service_Cloudmonitoring_ListTimeseriesResponse - */ - public function listTimeseries($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListTimeseriesResponse"); - } -} - -/** - * The "timeseriesDescriptors" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_Cloudmonitoring(...); - * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors; - * - */ -class Google_Service_Cloudmonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource -{ - - /** - * List the descriptors of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) - * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of time series descriptors per page. Used for pagination. If not specified, count - * = 100. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] - * @return Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse - */ - public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse"); - } -} - - - - -class Google_Service_Cloudmonitoring_ListMetricDescriptorsRequest extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Cloudmonitoring_ListMetricDescriptorsResponse extends Google_Collection -{ - public $kind; - protected $metricsType = 'Google_Service_Cloudmonitoring_MetricDescriptor'; - protected $metricsDataType = 'array'; - public $nextPageToken; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - - public function getMetrics() - { - return $this->metrics; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsRequest extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Cloudmonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_Cloudmonitoring_TimeseriesDescriptor'; - protected $timeseriesDataType = 'array'; - public $youngest; - - 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 setOldest($oldest) - { - $this->oldest = $oldest; - } - - public function getOldest() - { - return $this->oldest; - } - - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } - - public function getTimeseries() - { - return $this->timeseries; - } - - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } - - public function getYoungest() - { - return $this->youngest; - } -} - -class Google_Service_Cloudmonitoring_ListTimeseriesRequest extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Cloudmonitoring_ListTimeseriesResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_Cloudmonitoring_Timeseries'; - protected $timeseriesDataType = 'array'; - public $youngest; - - 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 setOldest($oldest) - { - $this->oldest = $oldest; - } - - public function getOldest() - { - return $this->oldest; - } - - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } - - public function getTimeseries() - { - return $this->timeseries; - } - - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } - - public function getYoungest() - { - return $this->youngest; - } -} - -class Google_Service_Cloudmonitoring_MetricDescriptor extends Google_Collection -{ - public $description; - protected $labelsType = 'Google_Service_Cloudmonitoring_MetricDescriptorLabelDescriptor'; - protected $labelsDataType = 'array'; - public $name; - public $project; - protected $typeDescriptorType = 'Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor'; - protected $typeDescriptorDataType = ''; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setLabels($labels) - { - $this->labels = $labels; - } - - public function getLabels() - { - return $this->labels; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProject($project) - { - $this->project = $project; - } - - public function getProject() - { - return $this->project; - } - - public function setTypeDescriptor(Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) - { - $this->typeDescriptor = $typeDescriptor; - } - - public function getTypeDescriptor() - { - return $this->typeDescriptor; - } -} - -class Google_Service_Cloudmonitoring_MetricDescriptorLabelDescriptor extends Google_Model -{ - public $description; - public $key; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } -} - -class Google_Service_Cloudmonitoring_MetricDescriptorTypeDescriptor extends Google_Model -{ - public $metricType; - public $valueType; - - public function setMetricType($metricType) - { - $this->metricType = $metricType; - } - - public function getMetricType() - { - return $this->metricType; - } - - public function setValueType($valueType) - { - $this->valueType = $valueType; - } - - public function getValueType() - { - return $this->valueType; - } -} - -class Google_Service_Cloudmonitoring_Point extends Google_Model -{ - public $boolValue; - protected $distributionValueType = 'Google_Service_Cloudmonitoring_PointDistribution'; - protected $distributionValueDataType = ''; - public $doubleValue; - public $end; - public $int64Value; - public $start; - public $stringValue; - - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } - - public function getBoolValue() - { - return $this->boolValue; - } - - public function setDistributionValue(Google_Service_Cloudmonitoring_PointDistribution $distributionValue) - { - $this->distributionValue = $distributionValue; - } - - public function getDistributionValue() - { - return $this->distributionValue; - } - - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } - - public function getDoubleValue() - { - return $this->doubleValue; - } - - public function setEnd($end) - { - $this->end = $end; - } - - public function getEnd() - { - return $this->end; - } - - public function setInt64Value($int64Value) - { - $this->int64Value = $int64Value; - } - - public function getInt64Value() - { - return $this->int64Value; - } - - public function setStart($start) - { - $this->start = $start; - } - - public function getStart() - { - return $this->start; - } - - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - - public function getStringValue() - { - return $this->stringValue; - } -} - -class Google_Service_Cloudmonitoring_PointDistribution extends Google_Collection -{ - protected $bucketsType = 'Google_Service_Cloudmonitoring_PointDistributionBucket'; - protected $bucketsDataType = 'array'; - protected $overflowBucketType = 'Google_Service_Cloudmonitoring_PointDistributionOverflowBucket'; - protected $overflowBucketDataType = ''; - protected $underflowBucketType = 'Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket'; - protected $underflowBucketDataType = ''; - - public function setBuckets($buckets) - { - $this->buckets = $buckets; - } - - public function getBuckets() - { - return $this->buckets; - } - - public function setOverflowBucket(Google_Service_Cloudmonitoring_PointDistributionOverflowBucket $overflowBucket) - { - $this->overflowBucket = $overflowBucket; - } - - public function getOverflowBucket() - { - return $this->overflowBucket; - } - - public function setUnderflowBucket(Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket $underflowBucket) - { - $this->underflowBucket = $underflowBucket; - } - - public function getUnderflowBucket() - { - return $this->underflowBucket; - } -} - -class Google_Service_Cloudmonitoring_PointDistributionBucket extends Google_Model -{ - public $count; - public $lowerBound; - public $upperBound; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } - - public function getLowerBound() - { - return $this->lowerBound; - } - - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_Cloudmonitoring_PointDistributionOverflowBucket extends Google_Model -{ - public $count; - public $lowerBound; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } - - public function getLowerBound() - { - return $this->lowerBound; - } -} - -class Google_Service_Cloudmonitoring_PointDistributionUnderflowBucket extends Google_Model -{ - public $count; - public $upperBound; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_Cloudmonitoring_Timeseries extends Google_Collection -{ - protected $pointsType = 'Google_Service_Cloudmonitoring_Point'; - protected $pointsDataType = 'array'; - protected $timeseriesDescType = 'Google_Service_Cloudmonitoring_TimeseriesDescriptor'; - protected $timeseriesDescDataType = ''; - - public function setPoints($points) - { - $this->points = $points; - } - - public function getPoints() - { - return $this->points; - } - - public function setTimeseriesDesc(Google_Service_Cloudmonitoring_TimeseriesDescriptor $timeseriesDesc) - { - $this->timeseriesDesc = $timeseriesDesc; - } - - public function getTimeseriesDesc() - { - return $this->timeseriesDesc; - } -} - -class Google_Service_Cloudmonitoring_TimeseriesDescriptor extends Google_Model -{ - public $labels; - public $metric; - public $project; - - public function setLabels($labels) - { - $this->labels = $labels; - } - - public function getLabels() - { - return $this->labels; - } - - public function setMetric($metric) - { - $this->metric = $metric; - } - - public function getMetric() - { - return $this->metric; - } - - public function setProject($project) - { - $this->project = $project; - } - - public function getProject() - { - return $this->project; - } -} - -class Google_Service_Cloudmonitoring_TimeseriesDescriptorLabels extends Google_Model -{ - -} From 868a41c1e2e716642eeca513e2134df9b0809e9d Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 11 Aug 2014 17:48:47 +0100 Subject: [PATCH 0106/1274] Remove the timezone set. Fixes #253 - as far as we can tell the timezone setting adds no benefit other than removing a warning, which should be addressed in the system. --- src/Google/Client.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 18197b35f..1ec2f32c3 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -80,11 +80,6 @@ class Google_Client */ public function __construct($config = null) { - if (! ini_get('date.timezone') && - function_exists('date_default_timezone_set')) { - date_default_timezone_set('UTC'); - } - if (is_string($config) && strlen($config)) { $config = new Google_Config($config); } else if ( !($config instanceof Google_Config)) { From e05a68f3fe8371ffe76fc5c6d1bf0d967ca7f42e Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 11 Aug 2014 17:51:33 +0100 Subject: [PATCH 0107/1274] Add install instructions link to README Fixed #273 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 78bb88a34..0fce927d6 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ The Google API Client Library enables you to work with Google APIs such as Googl ## Developer Documentation ## http://developers.google.com/api-client-library/php +## Installation ## + +For the latest installation and setup instructions, see [the documentation[(https://developers.google.com/api-client-library/php/start/installation) + ## Basic Example ## See the examples/ directory for examples of the key client features. ```PHP From 016b6cf4c1b8ecd8c6b2299f447634081636f94c Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 11 Aug 2014 17:52:40 +0100 Subject: [PATCH 0108/1274] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fce927d6..8bacd6861 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ http://developers.google.com/api-client-library/php ## Installation ## -For the latest installation and setup instructions, see [the documentation[(https://developers.google.com/api-client-library/php/start/installation) +For the latest installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation) ## Basic Example ## See the examples/ directory for examples of the key client features. From 9cc33e71f3e5a018c8d6fba22ae5ab2bd1b80e98 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 11 Aug 2014 17:53:58 +0100 Subject: [PATCH 0109/1274] Add full stop --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bacd6861..dba6a26d8 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ http://developers.google.com/api-client-library/php ## Installation ## -For the latest installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation) +For the latest installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). ## Basic Example ## See the examples/ directory for examples of the key client features. From 1c114105021fe2bae2ecac129968163020a5fee8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 12 Aug 2014 01:12:34 -0700 Subject: [PATCH 0110/1274] Updated Autoscaler.php --- src/Google/Service/Autoscaler.php | 67 ++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index 0a7939f48..5a31425a1 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -579,11 +579,15 @@ public function getNextPageToken() } } -class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Model +class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection { public $coolDownPeriodSec; protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; protected $cpuUtilizationDataType = ''; + protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization'; + protected $customMetricUtilizationsDataType = 'array'; + protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization'; + protected $loadBalancingUtilizationDataType = ''; public $maxNumReplicas; public $minNumReplicas; @@ -607,6 +611,26 @@ public function getCpuUtilization() return $this->cpuUtilization; } + public function setCustomMetricUtilizations($customMetricUtilizations) + { + $this->customMetricUtilizations = $customMetricUtilizations; + } + + public function getCustomMetricUtilizations() + { + return $this->customMetricUtilizations; + } + + public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) + { + $this->loadBalancingUtilization = $loadBalancingUtilization; + } + + public function getLoadBalancingUtilization() + { + return $this->loadBalancingUtilization; + } + public function setMaxNumReplicas($maxNumReplicas) { $this->maxNumReplicas = $maxNumReplicas; @@ -643,6 +667,47 @@ public function getUtilizationTarget() } } +class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model +{ + public $metric; + public $utilizationTarget; + + public function setMetric($metric) + { + $this->metric = $metric; + } + + public function getMetric() + { + return $this->metric; + } + + public function setUtilizationTarget($utilizationTarget) + { + $this->utilizationTarget = $utilizationTarget; + } + + public function getUtilizationTarget() + { + return $this->utilizationTarget; + } +} + +class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model +{ + public $utilizationTarget; + + public function setUtilizationTarget($utilizationTarget) + { + $this->utilizationTarget = $utilizationTarget; + } + + public function getUtilizationTarget() + { + return $this->utilizationTarget; + } +} + class Google_Service_Autoscaler_Operation extends Google_Collection { public $clientOperationId; From 9394607e0a3204654738f4b63c8ad995ec562236 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 12 Aug 2014 01:12:35 -0700 Subject: [PATCH 0111/1274] Updated ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 705 ------------------------- 1 file changed, 705 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 09e89565f..5a7ad1417 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -35,9 +35,7 @@ class Google_Service_ShoppingContent extends Google_Service const CONTENT = "https://www.googleapis.com/auth/content"; public $accounts; - public $accountshipping; public $accountstatuses; - public $accounttax; public $datafeeds; public $datafeedstatuses; public $inventory; @@ -159,31 +157,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource( - $this, - $this->serviceName, - 'accountshipping', - array( - 'methods' => array( - 'patch' => array( - 'path' => '{merchantId}/accountshipping/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( $this, $this->serviceName, @@ -231,31 +204,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource( - $this, - $this->serviceName, - 'accounttax', - array( - 'methods' => array( - 'patch' => array( - 'path' => '{merchantId}/accounttax/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( $this, $this->serviceName, @@ -695,37 +643,6 @@ public function update($merchantId, $accountId, Google_Service_ShoppingContent_A } } -/** - * The "accountshipping" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accountshipping = $contentService->accountshipping; - * - */ -class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource -{ - - /** - * Updates the shipping settings of the account. This method supports patch - * semantics. (accountshipping.patch) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account for which to get/update account shipping settings. - * @param Google_AccountShipping $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountShipping - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); - } -} - /** * The "accountstatuses" collection of methods. * Typical usage is: @@ -788,37 +705,6 @@ public function listAccountstatuses($merchantId, $optParams = array()) } } -/** - * The "accounttax" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accounttax = $contentService->accounttax; - * - */ -class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource -{ - - /** - * Updates the tax settings of the account. This method supports patch - * semantics. (accounttax.patch) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account for which to get/update account tax settings. - * @param Google_AccountTax $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountTax - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); - } -} - /** * The "datafeeds" collection of methods. * Typical usage is: @@ -1372,474 +1258,6 @@ public function getStatus() } } -class Google_Service_ShoppingContent_AccountShipping extends Google_Collection -{ - public $accountId; - protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate'; - protected $carrierRatesDataType = 'array'; - public $kind; - protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup'; - protected $locationGroupsDataType = 'array'; - protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable'; - protected $rateTablesDataType = 'array'; - protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService'; - protected $servicesDataType = 'array'; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setCarrierRates($carrierRates) - { - $this->carrierRates = $carrierRates; - } - - public function getCarrierRates() - { - return $this->carrierRates; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLocationGroups($locationGroups) - { - $this->locationGroups = $locationGroups; - } - - public function getLocationGroups() - { - return $this->locationGroups; - } - - public function setRateTables($rateTables) - { - $this->rateTables = $rateTables; - } - - public function getRateTables() - { - return $this->rateTables; - } - - public function setServices($services) - { - $this->services = $services; - } - - public function getServices() - { - return $this->services; - } -} - -class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model -{ - public $carrier; - public $carrierService; - protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price'; - protected $modifierFlatRateDataType = ''; - public $modifierPercent; - public $name; - public $saleCountry; - public $shippingOrigin; - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - - public function getCarrier() - { - return $this->carrier; - } - - public function setCarrierService($carrierService) - { - $this->carrierService = $carrierService; - } - - public function getCarrierService() - { - return $this->carrierService; - } - - public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate) - { - $this->modifierFlatRate = $modifierFlatRate; - } - - public function getModifierFlatRate() - { - return $this->modifierFlatRate; - } - - public function setModifierPercent($modifierPercent) - { - $this->modifierPercent = $modifierPercent; - } - - public function getModifierPercent() - { - return $this->modifierPercent; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - - public function getSaleCountry() - { - return $this->saleCountry; - } - - public function setShippingOrigin($shippingOrigin) - { - $this->shippingOrigin = $shippingOrigin; - } - - public function getShippingOrigin() - { - return $this->shippingOrigin; - } -} - -class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model -{ - public $deliveryLocationGroup; - public $deliveryLocationId; - protected $deliveryPostalCodeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; - protected $deliveryPostalCodeDataType = ''; - protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; - protected $priceMaxDataType = ''; - public $shippingLabel; - protected $weightMaxType = 'Google_Service_ShoppingContent_Weight'; - protected $weightMaxDataType = ''; - - public function setDeliveryLocationGroup($deliveryLocationGroup) - { - $this->deliveryLocationGroup = $deliveryLocationGroup; - } - - public function getDeliveryLocationGroup() - { - return $this->deliveryLocationGroup; - } - - public function setDeliveryLocationId($deliveryLocationId) - { - $this->deliveryLocationId = $deliveryLocationId; - } - - public function getDeliveryLocationId() - { - return $this->deliveryLocationId; - } - - public function setDeliveryPostalCode(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCode) - { - $this->deliveryPostalCode = $deliveryPostalCode; - } - - public function getDeliveryPostalCode() - { - return $this->deliveryPostalCode; - } - - public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax) - { - $this->priceMax = $priceMax; - } - - public function getPriceMax() - { - return $this->priceMax; - } - - public function setShippingLabel($shippingLabel) - { - $this->shippingLabel = $shippingLabel; - } - - public function getShippingLabel() - { - return $this->shippingLabel; - } - - public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax) - { - $this->weightMax = $weightMax; - } - - public function getWeightMax() - { - return $this->weightMax; - } -} - -class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection -{ - public $country; - public $locationIds; - public $name; - protected $postalCodesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; - protected $postalCodesDataType = 'array'; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setLocationIds($locationIds) - { - $this->locationIds = $locationIds; - } - - public function getLocationIds() - { - return $this->locationIds; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - - public function getPostalCodes() - { - return $this->postalCodes; - } -} - -class Google_Service_ShoppingContent_AccountShippingPostalCodeRange 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; - } -} - -class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection -{ - protected $contentsType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; - protected $contentsDataType = 'array'; - public $name; - public $saleCountry; - - public function setContents($contents) - { - $this->contents = $contents; - } - - public function getContents() - { - return $this->contents; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - - public function getSaleCountry() - { - return $this->saleCountry; - } -} - -class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model -{ - protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; - protected $conditionDataType = ''; - protected $rateType = 'Google_Service_ShoppingContent_Price'; - protected $rateDataType = ''; - - public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) - { - $this->condition = $condition; - } - - public function getCondition() - { - return $this->condition; - } - - public function setRate(Google_Service_ShoppingContent_Price $rate) - { - $this->rate = $rate; - } - - public function getRate() - { - return $this->rate; - } -} - -class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model -{ - public $active; - protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; - protected $calculationMethodDataType = ''; - public $name; - public $saleCountry; - - public function setActive($active) - { - $this->active = $active; - } - - public function getActive() - { - return $this->active; - } - - public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) - { - $this->calculationMethod = $calculationMethod; - } - - public function getCalculationMethod() - { - return $this->calculationMethod; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - - public function getSaleCountry() - { - return $this->saleCountry; - } -} - -class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model -{ - public $carrierRate; - protected $flatRateType = 'Google_Service_ShoppingContent_Price'; - protected $flatRateDataType = ''; - public $percentageRate; - public $rateTable; - - public function setCarrierRate($carrierRate) - { - $this->carrierRate = $carrierRate; - } - - public function getCarrierRate() - { - return $this->carrierRate; - } - - public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate) - { - $this->flatRate = $flatRate; - } - - public function getFlatRate() - { - return $this->flatRate; - } - - public function setPercentageRate($percentageRate) - { - $this->percentageRate = $percentageRate; - } - - public function getPercentageRate() - { - return $this->percentageRate; - } - - public function setRateTable($rateTable) - { - $this->rateTable = $rateTable; - } - - public function getRateTable() - { - return $this->rateTable; - } -} - class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { public $accountId; @@ -2030,103 +1448,6 @@ public function getValueOnLandingPage() } } -class Google_Service_ShoppingContent_AccountTax extends Google_Collection -{ - public $accountId; - public $kind; - protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule'; - protected $rulesDataType = 'array'; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRules($rules) - { - $this->rules = $rules; - } - - public function getRules() - { - return $this->rules; - } -} - -class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model -{ - public $country; - public $locationId; - public $ratePercent; - public $shippingTaxed; - public $useGlobalRate; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setLocationId($locationId) - { - $this->locationId = $locationId; - } - - public function getLocationId() - { - return $this->locationId; - } - - public function setRatePercent($ratePercent) - { - $this->ratePercent = $ratePercent; - } - - public function getRatePercent() - { - return $this->ratePercent; - } - - public function setShippingTaxed($shippingTaxed) - { - $this->shippingTaxed = $shippingTaxed; - } - - public function getShippingTaxed() - { - return $this->shippingTaxed; - } - - public function setUseGlobalRate($useGlobalRate) - { - $this->useGlobalRate = $useGlobalRate; - } - - public function getUseGlobalRate() - { - return $this->useGlobalRate; - } -} - class Google_Service_ShoppingContent_AccountUser extends Google_Model { public $admin; @@ -5533,29 +4854,3 @@ public function getResources() return $this->resources; } } - -class Google_Service_ShoppingContent_Weight extends Google_Model -{ - public $unit; - public $value; - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} From 71275546a574bc080f2fd7cab7dbf2439475b006 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 13 Aug 2014 01:13:48 -0700 Subject: [PATCH 0112/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index d898b708e..3e57bb4d9 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -3335,6 +3335,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $processingStatus; public $projectId; public $publishedAccessList; + public $publishingStatus; public $tags; public $versions; @@ -3468,6 +3469,16 @@ public function getPublishedAccessList() return $this->publishedAccessList; } + public function setPublishingStatus($publishingStatus) + { + $this->publishingStatus = $publishingStatus; + } + + public function getPublishingStatus() + { + return $this->publishingStatus; + } + public function setTags($tags) { $this->tags = $tags; From 62738c84ba41b4b73ad63863b3adb6da61f204ba Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 13 Aug 2014 01:13:49 -0700 Subject: [PATCH 0113/1274] Updated YouTube.php --- src/Google/Service/YouTube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index ea24855e5..3d4654b52 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1893,7 +1893,7 @@ public function bind($id, $part, $optParams = array()) * broadcast stream is delayed. * @opt_param string walltime * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. * @return Google_Service_YouTube_LiveBroadcast */ public function control($id, $part, $optParams = array()) From d5aef57715c52593f3ad77a30518cb82480615c9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 13 Aug 2014 01:13:50 -0700 Subject: [PATCH 0114/1274] Updated Games.php --- src/Google/Service/Games.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 2f94fdad9..312825d8a 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -6912,6 +6912,7 @@ class Google_Service_Games_ScoreSubmission extends Google_Model public $leaderboardId; public $score; public $scoreTag; + public $signature; public function setKind($kind) { @@ -6952,6 +6953,16 @@ public function getScoreTag() { return $this->scoreTag; } + + public function setSignature($signature) + { + $this->signature = $signature; + } + + public function getSignature() + { + return $this->signature; + } } class Google_Service_Games_Snapshot extends Google_Model From ab8f7230f411b7a750067245b489d91edd2a5b89 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 14 Aug 2014 01:14:52 -0700 Subject: [PATCH 0115/1274] Updated YouTube.php --- src/Google/Service/YouTube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 3d4654b52..ea24855e5 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1893,7 +1893,7 @@ public function bind($id, $part, $optParams = array()) * broadcast stream is delayed. * @opt_param string walltime * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. + * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. * @return Google_Service_YouTube_LiveBroadcast */ public function control($id, $part, $optParams = array()) From 897b0e91d0c85c96eda2f1dd61b7cb287c2aeeee Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 14 Aug 2014 01:14:53 -0700 Subject: [PATCH 0116/1274] Updated Resourceviews.php --- src/Google/Service/Resourceviews.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 9a1c0d51c..e3d8d1cbd 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -33,6 +33,10 @@ class Google_Service_Resourceviews extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; /** View and manage your Google Cloud Platform management resources and deployment status information. */ const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; /** View your Google Cloud Platform management resources and deployment status information. */ @@ -464,8 +468,8 @@ public function insert($projectName, $region, Google_Service_Resourceviews_Resou * Specifies a nextPageToken returned by a previous list request. This token can be used to request * the next page of results from a previous list request. * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: - * 50) + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) * @return Google_Service_Resourceviews_RegionViewsListResponse */ public function listRegionViews($projectName, $region, $optParams = array()) @@ -489,8 +493,8 @@ public function listRegionViews($projectName, $region, $optParams = array()) * Specifies a nextPageToken returned by a previous list request. This token can be used to request * the next page of results from a previous list request. * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: - * 50) + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) * @return Google_Service_Resourceviews_RegionViewsListResourcesResponse */ public function listresources($projectName, $region, $resourceViewName, $optParams = array()) @@ -613,8 +617,8 @@ public function insert($projectName, $zone, Google_Service_Resourceviews_Resourc * Specifies a nextPageToken returned by a previous list request. This token can be used to request * the next page of results from a previous list request. * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: - * 50) + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) * @return Google_Service_Resourceviews_ZoneViewsListResponse */ public function listZoneViews($projectName, $zone, $optParams = array()) @@ -638,8 +642,8 @@ public function listZoneViews($projectName, $zone, $optParams = array()) * Specifies a nextPageToken returned by a previous list request. This token can be used to request * the next page of results from a previous list request. * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: - * 50) + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse */ public function listresources($projectName, $zone, $resourceViewName, $optParams = array()) From b6e753576f858d00a604565390632953d3583361 Mon Sep 17 00:00:00 2001 From: Ben Menasha Date: Thu, 14 Aug 2014 09:47:00 -0400 Subject: [PATCH 0117/1274] distinguish memcache key when array of scopes are used. Previously the memcache key would be "Google_Auth_AppIdentity::Array" when an array of scopes was passed to AppIdentity->authenticateForScope. This would causees the token to be overwritten when multiple Google_Auth_AppIdentity were used with multiple scopes. The fix is to expand the array of scopes into a string creating a unique key. --- src/Google/Auth/AppIdentity.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index ec6663e6c..0be591762 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -55,7 +55,13 @@ public function authenticateForScope($scopes) if (!$this->token) { $this->token = AppIdentityService::getAccessToken($scopes); if ($this->token) { - $memcache->set(self::CACHE_PREFIX . $scopes, $this->token, self::CACHE_LIFETIME); + $memcache_key = self::CACHE_PREFIX; + if (is_string($scopes)) { + $memcache_key .= $scopes; + } else if (is_array($scopes)) { + $memcache_key .= implode(":", $scopes); + } + $memcache->set($memcache_key, $this->token, self::CACHE_LIFETIME); } } $this->tokenScopes = $scopes; From de468999b3719d81147285f1af925e33c99411e6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 15 Aug 2014 01:16:03 -0700 Subject: [PATCH 0118/1274] Updated Mirror.php --- src/Google/Service/Mirror.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index 92f060929..a44efd08a 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -564,6 +564,9 @@ class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource * The ID of the setting. The following IDs are valid: - locale - The key to the user’s * language/locale (BCP 47 identifier) that Glassware should use to render localized content. + - + * timezone - The key to the user’s current time zone region as defined in the tz database. + * Example: America/Los_Angeles. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Setting */ From 3c8f3ca7b688e8073ec3ba63f7aff9e80797edd1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 15 Aug 2014 01:16:04 -0700 Subject: [PATCH 0119/1274] Updated ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 418 +------------------------ 1 file changed, 2 insertions(+), 416 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 5a7ad1417..d1c71d104 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -210,11 +210,7 @@ public function __construct(Google_Client $client) 'datafeeds', array( 'methods' => array( - 'batch' => array( - 'path' => 'datafeedsNativeBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'custombatch' => array( + 'custombatch' => array( 'path' => 'datafeeds/batch', 'httpMethod' => 'POST', 'parameters' => array(), @@ -308,11 +304,7 @@ public function __construct(Google_Client $client) 'datafeedstatuses', array( 'methods' => array( - 'batch' => array( - 'path' => 'datafeedstatusesNativeBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'custombatch' => array( + 'custombatch' => array( 'path' => 'datafeedstatuses/batch', 'httpMethod' => 'POST', 'parameters' => array(), @@ -716,19 +708,6 @@ public function listAccountstatuses($merchantId, $optParams = array()) class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource { - /** - * (datafeeds.batch) - * - * @param Google_DatafeedsBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedsBatchResponse - */ - public function batch(Google_Service_ShoppingContent_DatafeedsBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_ShoppingContent_DatafeedsBatchResponse"); - } /** * (datafeeds.custombatch) * @@ -851,19 +830,6 @@ public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_ class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Service_Resource { - /** - * (datafeedstatuses.batch) - * - * @param Google_DatafeedstatusesBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedstatusesBatchResponse - */ - public function batch(Google_Service_ShoppingContent_DatafeedstatusesBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesBatchResponse"); - } /** * (datafeedstatuses.custombatch) * @@ -2247,150 +2213,6 @@ public function getValue() } } -class Google_Service_ShoppingContent_DatafeedsBatchRequest extends Google_Collection -{ - protected $entrysType = 'Google_Service_ShoppingContent_DatafeedsBatchRequestEntry'; - protected $entrysDataType = 'array'; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } -} - -class Google_Service_ShoppingContent_DatafeedsBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $datafeedsinsertrequestType = 'Google_Service_ShoppingContent_DatafeedsInsertRequest'; - protected $datafeedsinsertrequestDataType = ''; - protected $datafeedsupdaterequestType = 'Google_Service_ShoppingContent_DatafeedsUpdateRequest'; - protected $datafeedsupdaterequestDataType = ''; - public $methodName; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedsinsertrequest(Google_Service_ShoppingContent_DatafeedsInsertRequest $datafeedsinsertrequest) - { - $this->datafeedsinsertrequest = $datafeedsinsertrequest; - } - - public function getDatafeedsinsertrequest() - { - return $this->datafeedsinsertrequest; - } - - public function setDatafeedsupdaterequest(Google_Service_ShoppingContent_DatafeedsUpdateRequest $datafeedsupdaterequest) - { - $this->datafeedsupdaterequest = $datafeedsupdaterequest; - } - - public function getDatafeedsupdaterequest() - { - return $this->datafeedsupdaterequest; - } - - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - - public function getMethodName() - { - return $this->methodName; - } -} - -class Google_Service_ShoppingContent_DatafeedsBatchResponse extends Google_Collection -{ - protected $entrysType = 'Google_Service_ShoppingContent_DatafeedsBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedsBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedsgetresponseType = 'Google_Service_ShoppingContent_DatafeedsGetResponse'; - protected $datafeedsgetresponseDataType = ''; - protected $datafeedsinsertresponseType = 'Google_Service_ShoppingContent_DatafeedsInsertResponse'; - protected $datafeedsinsertresponseDataType = ''; - protected $datafeedsupdateresponseType = 'Google_Service_ShoppingContent_DatafeedsUpdateResponse'; - protected $datafeedsupdateresponseDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedsgetresponse(Google_Service_ShoppingContent_DatafeedsGetResponse $datafeedsgetresponse) - { - $this->datafeedsgetresponse = $datafeedsgetresponse; - } - - public function getDatafeedsgetresponse() - { - return $this->datafeedsgetresponse; - } - - public function setDatafeedsinsertresponse(Google_Service_ShoppingContent_DatafeedsInsertResponse $datafeedsinsertresponse) - { - $this->datafeedsinsertresponse = $datafeedsinsertresponse; - } - - public function getDatafeedsinsertresponse() - { - return $this->datafeedsinsertresponse; - } - - public function setDatafeedsupdateresponse(Google_Service_ShoppingContent_DatafeedsUpdateResponse $datafeedsupdateresponse) - { - $this->datafeedsupdateresponse = $datafeedsupdateresponse; - } - - public function getDatafeedsupdateresponse() - { - return $this->datafeedsupdateresponse; - } -} - class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection { protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; @@ -2533,76 +2355,6 @@ public function getErrors() } } -class Google_Service_ShoppingContent_DatafeedsGetResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_ShoppingContent_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ShoppingContent_DatafeedsInsertRequest extends Google_Model -{ - protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourceDataType = ''; - - public function setResource(Google_Service_ShoppingContent_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ShoppingContent_DatafeedsInsertResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_ShoppingContent_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection { public $kind; @@ -2630,145 +2382,6 @@ public function getResources() } } -class Google_Service_ShoppingContent_DatafeedsUpdateRequest extends Google_Model -{ - protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourceDataType = ''; - - public function setResource(Google_Service_ShoppingContent_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ShoppingContent_DatafeedsUpdateResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_ShoppingContent_Datafeed $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesBatchRequest extends Google_Collection -{ - protected $entrysType = 'Google_Service_ShoppingContent_DatafeedstatusesBatchRequestEntry'; - protected $entrysDataType = 'array'; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesBatchRequestEntry extends Google_Model -{ - public $batchId; - public $methodName; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - - public function getMethodName() - { - return $this->methodName; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesBatchResponse extends Google_Collection -{ - protected $entrysType = 'Google_Service_ShoppingContent_DatafeedstatusesBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - - public function getEntrys() - { - return $this->entrys; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedstatusesgetresponseType = 'Google_Service_ShoppingContent_DatafeedstatusesGetResponse'; - protected $datafeedstatusesgetresponseDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedstatusesgetresponse(Google_Service_ShoppingContent_DatafeedstatusesGetResponse $datafeedstatusesgetresponse) - { - $this->datafeedstatusesgetresponse = $datafeedstatusesgetresponse; - } - - public function getDatafeedstatusesgetresponse() - { - return $this->datafeedstatusesgetresponse; - } -} - class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection { protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; @@ -2899,33 +2512,6 @@ public function getErrors() } } -class Google_Service_ShoppingContent_DatafeedstatusesGetResponse extends Google_Model -{ - public $kind; - protected $resourceType = 'Google_Service_ShoppingContent_DatafeedStatus'; - protected $resourceDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResource(Google_Service_ShoppingContent_DatafeedStatus $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection { public $kind; From ff75c3715aa0f82b5e50e6cff1e222e59f3c7cd4 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 17 Aug 2014 22:25:13 +0200 Subject: [PATCH 0120/1274] Fix phpdoc @returns > @return --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 1ec2f32c3..06f6ac5ba 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -486,7 +486,7 @@ public function setDefer($defer) /** * Helper method to execute deferred HTTP requests. * - * @returns object of the type of the expected class or array. + * @return object of the type of the expected class or array. */ public function execute($request) { From 7a2975ad654a208f9d8331ad3edf00d4dedc69c1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 21 Aug 2014 01:22:27 -0700 Subject: [PATCH 0121/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 99 +++++++++++++++++++++++++++---- 1 file changed, 87 insertions(+), 12 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 3e57bb4d9..551eb0f99 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -224,7 +224,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'tags' => array( + 'processingStatus' => array( 'location' => 'query', 'type' => 'string', ), @@ -232,6 +232,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -286,6 +290,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'force' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'unpublish' => array( 'path' => 'layers/{id}/unpublish', @@ -375,7 +383,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'tags' => array( + 'processingStatus' => array( 'location' => 'query', 'type' => 'string', ), @@ -383,6 +391,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -427,6 +439,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'force' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'unpublish' => array( 'path' => 'maps/{id}/unpublish', @@ -508,7 +524,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'tags' => array( + 'processingStatus' => array( 'location' => 'query', 'type' => 'string', ), @@ -516,6 +532,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -705,6 +725,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'process' => array( + 'path' => 'rasters/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'upload' => array( 'path' => 'rasters/upload', 'httpMethod' => 'POST', @@ -812,7 +842,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'tags' => array( + 'processingStatus' => array( 'location' => 'query', 'type' => 'string', ), @@ -820,6 +850,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1219,12 +1253,14 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string processingStatus + * * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1285,6 +1321,10 @@ public function process($id, $optParams = array()) * @param string $id * The ID of the layer. * @param array $optParams Optional parameters. + * + * @opt_param bool force + * If set to true, the API will allow publication of the layer even if it's out of date. If not + * true, you'll need to reprocess any out-of-date layer before publishing. * @return Google_Service_MapsEngine_PublishResponse */ public function publish($id, $optParams = array()) @@ -1409,12 +1449,14 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string processingStatus + * * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1461,6 +1503,10 @@ public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = * @param string $id * The ID of the map. * @param array $optParams Optional parameters. + * + * @opt_param bool force + * If set to true, the API will allow publication of the map even if it's out of date. If false, + * the map must have a processingStatus of complete before publishing. * @return Google_Service_MapsEngine_PublishResponse */ public function publish($id, $optParams = array()) @@ -1590,12 +1636,14 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string processingStatus + * * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1832,6 +1880,20 @@ public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** + * Process a raster asset. (rasters.process) + * + * @param string $id + * The ID of the raster. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } /** * Create a skeleton raster asset for upload. (rasters.upload) * @@ -1975,12 +2037,14 @@ public function get($id, $optParams = array()) * @opt_param string createdAfter * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string processingStatus + * * @opt_param string projectId * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -3049,6 +3113,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection public $processingStatus; public $projectId; public $publishedAccessList; + public $publishingStatus; protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; protected $styleDataType = ''; public $tags; @@ -3183,6 +3248,16 @@ public function getPublishedAccessList() return $this->publishedAccessList; } + public function setPublishingStatus($publishingStatus) + { + $this->publishingStatus = $publishingStatus; + } + + public function getPublishingStatus() + { + return $this->publishingStatus; + } + public function setStyle(Google_Service_MapsEngine_VectorStyle $style) { $this->style = $style; From 503d017f64d8c737063cb4fde5ef96e63462eeaa Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 21 Aug 2014 01:22:27 -0700 Subject: [PATCH 0122/1274] Updated SQLAdmin.php --- src/Google/Service/SQLAdmin.php | 163 +++++++++++++++++++++++++------- 1 file changed, 127 insertions(+), 36 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index d5417e97a..8b697daa4 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -252,6 +252,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'promoteReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/promoteReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'resetSslConfig' => array( 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', 'httpMethod' => 'POST', @@ -510,7 +525,7 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc { /** - * Retrieves a resource containing information about a backup run. + * Retrieves information about a specified backup run for a Cloud SQL instance. * (backupRuns.get) * * @param string $project @@ -532,8 +547,7 @@ public function get($project, $instance, $backupConfiguration, $dueTime, $optPar return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); } /** - * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. + * Lists all backup runs associated with a Cloud SQL instance. * (backupRuns.listBackupRuns) * * @param string $project @@ -571,7 +585,7 @@ class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource { /** - * List all available database flags for Google Cloud SQL instances. + * Lists all database flags that can be set for Google Cloud SQL instances. * (flags.listFlags) * * @param array $optParams Optional parameters. @@ -597,7 +611,7 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource { /** - * Creates a Cloud SQL instance as a clone of the source instance. + * Creates a Cloud SQL instance as a clone of a source instance. * (instances.cloneInstances) * * @param string $project @@ -647,8 +661,7 @@ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExp return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); } /** - * Retrieves a resource containing information about a Cloud SQL instance. - * (instances.get) + * Retrieves information about a Cloud SQL instance. (instances.get) * * @param string $project * Project ID of the project that contains the instance. @@ -664,8 +677,8 @@ public function get($project, $instance, $optParams = array()) return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); } /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud - * Storage. (instances.import) + * Imports data into a Cloud SQL instance from a MySQL dump file stored in a + * Google Cloud Storage bucket. (instances.import) * * @param string $project * Project ID of the project that contains the instance. @@ -697,8 +710,8 @@ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postB return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); } /** - * Lists instances under a given project in the alphabetical order of the - * instance name. (instances.listInstances) + * Lists instances for a given project, in alphabetical order by instance name. + * (instances.listInstances) * * @param string $project * Project ID of the project for which to list Cloud SQL instances. @@ -717,9 +730,7 @@ public function listInstances($project, $optParams = array()) return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); } /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch.. This method supports patch + * Updates the settings of a Cloud SQL instance. This method supports patch * semantics. (instances.patch) * * @param string $project @@ -736,11 +747,26 @@ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInsta $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); } + /** + * Promotes the read replica instance to be a stand-alone Cloud SQL instance. + * (instances.promoteReplica) + * + * @param string $project + * ID of the project that contains the read replica. + * @param string $instance + * Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesPromoteReplicaResponse + */ + public function promoteReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_InstancesPromoteReplicaResponse"); + } /** * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) + * for a Cloud SQL instance. (instances.resetSslConfig) * * @param string $project * Project ID of the project that contains the instance. @@ -793,7 +819,8 @@ public function restoreBackup($project, $instance, $backupConfiguration, $dueTim return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); } /** - * Sets the password for the root user. (instances.setRootPassword) + * Sets the password for the root user of the specified Cloud SQL instance. + * (instances.setRootPassword) * * @param string $project * Project ID of the project that contains the instance. @@ -810,9 +837,7 @@ public function setRootPassword($project, $instance, Google_Service_SQLAdmin_Ins return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); } /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch. (instances.update) + * Updates the settings of a Cloud SQL instance. (instances.update) * * @param string $project * Project ID of the project that contains the instance. @@ -842,8 +867,8 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc { /** - * Retrieves an instance operation that has been performed on an instance. - * (operations.get) + * Retrieves information about a specific operation that was performed on a + * Cloud SQL instance. (operations.get) * * @param string $project * Project ID of the project that contains the instance. @@ -861,8 +886,7 @@ public function get($project, $instance, $operation, $optParams = array()) return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); } /** - * Lists all instance operations that have been performed on the given Cloud SQL - * instance in the reverse chronological order of the start time. + * Lists all operations that have been performed on a Cloud SQL instance. * (operations.listOperations) * * @param string $project @@ -897,8 +921,7 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource { /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) + * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete) * * @param string $project * Project ID of the project that contains the instance to be deleted. @@ -916,9 +939,8 @@ public function delete($project, $instance, $sha1Fingerprint, $optParams = array return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); } /** - * Retrieves a particular SSL certificate. Does not include the private key - * (required for usage). The private key must be saved from the response to - * initial creation. (sslCerts.get) + * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. + * (sslCerts.get) * * @param string $project * Project ID of the project that contains the instance. @@ -936,9 +958,8 @@ public function get($project, $instance, $sha1Fingerprint, $optParams = array()) return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); } /** - * Creates an SSL certificate and returns it along with the private key and - * server certificate authority. The new certificate will not be usable until - * the instance is restarted. (sslCerts.insert) + * Creates an SSL certificate and returns the certificate, the associated + * private key, and the server certificate authority. (sslCerts.insert) * * @param string $project * Project ID of the project to which the newly created Cloud SQL instances should belong. @@ -955,7 +976,7 @@ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInse return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); } /** - * Lists all of the current SSL certificates for the instance. + * Lists all of the current SSL certificates defined for a Cloud SQL instance. * (sslCerts.listSslCerts) * * @param string $project @@ -985,8 +1006,8 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource { /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) + * Lists service tiers that can be used to create Google Cloud SQL instances. + * (tiers.listTiers) * * @param string $project * Project ID of the project for which to list tiers. @@ -1323,12 +1344,15 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $databaseVersion; public $etag; public $instance; + public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; public $kind; + public $masterInstanceName; public $maxDiskSize; public $project; public $region; + public $replicaNames; protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; protected $serverCaCertDataType = ''; protected $settingsType = 'Google_Service_SQLAdmin_Settings'; @@ -1375,6 +1399,16 @@ public function getInstance() return $this->instance; } + public function setInstanceType($instanceType) + { + $this->instanceType = $instanceType; + } + + public function getInstanceType() + { + return $this->instanceType; + } + public function setIpAddresses($ipAddresses) { $this->ipAddresses = $ipAddresses; @@ -1395,6 +1429,16 @@ public function getKind() return $this->kind; } + public function setMasterInstanceName($masterInstanceName) + { + $this->masterInstanceName = $masterInstanceName; + } + + public function getMasterInstanceName() + { + return $this->masterInstanceName; + } + public function setMaxDiskSize($maxDiskSize) { $this->maxDiskSize = $maxDiskSize; @@ -1425,6 +1469,16 @@ public function getRegion() return $this->region; } + public function setReplicaNames($replicaNames) + { + $this->replicaNames = $replicaNames; + } + + public function getReplicaNames() + { + return $this->replicaNames; + } + public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; @@ -2020,6 +2074,32 @@ public function getNextPageToken() } } +class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model +{ + public $kind; + public $operation; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setOperation($operation) + { + $this->operation = $operation; + } + + public function getOperation() + { + return $this->operation; + } +} + class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model { public $kind; @@ -2348,6 +2428,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection protected $backupConfigurationDataType = 'array'; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; + public $databaseReplicationEnabled; protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; protected $ipConfigurationDataType = ''; public $kind; @@ -2398,6 +2479,16 @@ public function getDatabaseFlags() return $this->databaseFlags; } + public function setDatabaseReplicationEnabled($databaseReplicationEnabled) + { + $this->databaseReplicationEnabled = $databaseReplicationEnabled; + } + + public function getDatabaseReplicationEnabled() + { + return $this->databaseReplicationEnabled; + } + public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) { $this->ipConfiguration = $ipConfiguration; From 0df848bc2ae9905257586574760b72423c3c11fe Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 21 Aug 2014 01:22:28 -0700 Subject: [PATCH 0123/1274] Updated Drive.php --- src/Google/Service/Drive.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 1ed485817..a922fd52e 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -1669,7 +1669,8 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * The visibility of the new file. This parameter is only relevant when the source is not a native * Google Doc and convert=false. * @opt_param bool pinned - * Whether to pin the head revision of the new copy. + * Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned + * revisions. * @opt_param bool ocr * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. * @opt_param string timedTextTrackName @@ -1742,7 +1743,8 @@ public function get($fileId, $optParams = array()) * @opt_param string visibility * The visibility of the new file. This parameter is only relevant when convert=false. * @opt_param bool pinned - * Whether to pin the head revision of the uploaded file. + * Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned + * revisions. * @opt_param bool ocr * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. * @opt_param string timedTextTrackName @@ -1804,7 +1806,7 @@ public function listFiles($optParams = array()) * @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. + * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. * @opt_param bool newRevision * Whether a blob upload should create a new revision. If false, the blob data in the current head * revision is replaced. If not set or true, a new blob is created as head revision, and previous @@ -1888,7 +1890,7 @@ public function untrash($fileId, $optParams = array()) * @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. + * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. * @opt_param bool newRevision * Whether a blob upload should create a new revision. If false, the blob data in the current head * revision is replaced. If not set or true, a new blob is created as head revision, and previous From 8111457846ab2769339f4977921dc8fbd09274c8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 22 Aug 2014 01:23:36 -0700 Subject: [PATCH 0124/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 354 ++++++++++++++++++++++++++++++ 1 file changed, 354 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 551eb0f99..ed528cefe 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -42,6 +42,7 @@ class Google_Service_MapsEngine extends Google_Service public $layers_parents; public $maps; public $projects; + public $projects_icons; public $rasterCollections; public $rasterCollections_parents; public $rasterCollections_rasters; @@ -126,6 +127,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), 'type' => array( 'location' => 'query', 'type' => 'string', @@ -260,6 +265,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'layers/{id}', @@ -419,6 +428,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'maps/{id}', @@ -472,6 +485,59 @@ public function __construct(Google_Client $client) ) ) ); + $this->projects_icons = new Google_Service_MapsEngine_ProjectsIcons_Resource( + $this, + $this->serviceName, + 'icons', + array( + 'methods' => array( + 'create' => array( + 'path' => 'projects/{projectId}/icons', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{projectId}/icons/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{projectId}/icons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( $this, $this->serviceName, @@ -560,6 +626,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'rasterCollections/{id}', @@ -684,6 +754,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -715,6 +789,60 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'list' => array( + 'path' => 'rasters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'processingStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'patch' => array( 'path' => 'rasters/{id}', 'httpMethod' => 'PATCH', @@ -878,6 +1006,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'tables/{id}', @@ -1123,6 +1255,9 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @opt_param string type * An asset type restriction. If set, only resources of this type will be returned. * @return Google_Service_MapsEngine_AssetsListResponse @@ -1279,6 +1414,9 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @return Google_Service_MapsEngine_LayersListResponse */ public function listLayers($optParams = array()) @@ -1475,6 +1613,9 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @return Google_Service_MapsEngine_MapsListResponse */ public function listMaps($optParams = array()) @@ -1556,6 +1697,71 @@ public function listProjects($optParams = array()) } } +/** + * The "icons" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $icons = $mapsengineService->icons; + * + */ +class Google_Service_MapsEngine_ProjectsIcons_Resource extends Google_Service_Resource +{ + + /** + * Create an icon. (icons.create) + * + * @param string $projectId + * The ID of the project. + * @param Google_Icon $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Icon + */ + public function create($projectId, Google_Service_MapsEngine_Icon $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Icon"); + } + /** + * Return metadata for a specific icon (icons.get) + * + * @param string $projectId + * The ID of the project. + * @param string $id + * The ID of the icon. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Icon + */ + public function get($projectId, $id, $optParams = array()) + { + $params = array('projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Icon"); + } + /** + * Return all icons in the current project (icons.listProjectsIcons) + * + * @param string $projectId + * The ID of the project. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_IconsListResponse + */ + public function listProjectsIcons($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_IconsListResponse"); + } +} + /** * The "rasterCollections" collection of methods. * Typical usage is: @@ -1662,6 +1868,9 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @return Google_Service_MapsEngine_RasterCollectionsListResponse */ public function listRasterCollections($optParams = array()) @@ -1816,6 +2025,9 @@ public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRast * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse */ public function listRasterCollectionsRasters($id, $optParams = array()) @@ -1866,6 +2078,54 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); } + /** + * Return all rasters readable by the current user. (rasters.listRasters) + * + * @param string $projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string processingStatus + * + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. + * @return Google_Service_MapsEngine_RastersListResponse + */ + public function listRasters($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_RastersListResponse"); + } /** * Mutate a raster asset. (rasters.patch) * @@ -2063,6 +2323,9 @@ public function get($id, $optParams = array()) * @opt_param string createdBefore * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have * been created at or before this time. + * @opt_param string role + * The role parameter indicates that the response should only contain assets where the current user + * has the specified level of access. * @return Google_Service_MapsEngine_TablesListResponse */ public function listTables($optParams = array()) @@ -2989,6 +3252,43 @@ class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model } +class Google_Service_MapsEngine_Icon extends Google_Model +{ + public $description; + public $id; + public $name; + + 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 setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } +} + class Google_Service_MapsEngine_IconStyle extends Google_Model { public $id; @@ -3015,6 +3315,33 @@ public function getName() } } +class Google_Service_MapsEngine_IconsListResponse extends Google_Collection +{ + protected $iconsType = 'Google_Service_MapsEngine_Icon'; + protected $iconsDataType = 'array'; + public $nextPageToken; + + public function setIcons($icons) + { + $this->icons = $icons; + } + + public function getIcons() + { + return $this->icons; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_MapsEngine_LabelStyle extends Google_Model { public $color; @@ -4519,6 +4846,33 @@ public function getRasters() } } +class Google_Service_MapsEngine_RastersListResponse extends Google_Collection +{ + public $nextPageToken; + protected $rastersType = 'Google_Service_MapsEngine_Raster'; + protected $rastersDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setRasters($rasters) + { + $this->rasters = $rasters; + } + + public function getRasters() + { + return $this->rasters; + } +} + class Google_Service_MapsEngine_Schema extends Google_Collection { protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; From f71b5e9ff7df7c045a34cf6106d03983cc77af07 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 22 Aug 2014 01:23:36 -0700 Subject: [PATCH 0125/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index b568ca9d7..53e1fa59d 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1872,6 +1872,7 @@ public function getJobId() class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection { public $datasetId; + public $format; public $sourceUris; public function setDatasetId($datasetId) @@ -1884,6 +1885,16 @@ public function getDatasetId() return $this->datasetId; } + public function setFormat($format) + { + $this->format = $format; + } + + public function getFormat() + { + return $this->format; + } + public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; @@ -1918,6 +1929,8 @@ class Google_Service_Genomics_Job extends Google_Collection public $id; public $importedIds; public $projectId; + protected $requestType = 'Google_Service_Genomics_JobRequest'; + protected $requestDataType = ''; public $status; public $warnings; @@ -1981,6 +1994,16 @@ public function getProjectId() return $this->projectId; } + public function setRequest(Google_Service_Genomics_JobRequest $request) + { + $this->request = $request; + } + + public function getRequest() + { + return $this->request; + } + public function setStatus($status) { $this->status = $status; @@ -2002,6 +2025,43 @@ public function getWarnings() } } +class Google_Service_Genomics_JobRequest extends Google_Collection +{ + public $destination; + public $source; + public $type; + + public function setDestination($destination) + { + $this->destination = $destination; + } + + public function getDestination() + { + return $this->destination; + } + + 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_Genomics_ListCoverageBucketsResponse extends Google_Collection { public $bucketWidth; From f0fbc4f098444f194c7957235f14b1a23b0d7ee3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 22 Aug 2014 01:23:37 -0700 Subject: [PATCH 0126/1274] Updated Manager.php --- src/Google/Service/Manager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index e99718862..5085e8cfe 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -997,6 +997,7 @@ class Google_Service_Manager_LbModule extends Google_Collection public $ipAddress; public $ipProtocol; public $portRange; + public $sessionAffinity; public $targetModules; public function setDescription($description) @@ -1049,6 +1050,16 @@ public function getPortRange() return $this->portRange; } + public function setSessionAffinity($sessionAffinity) + { + $this->sessionAffinity = $sessionAffinity; + } + + public function getSessionAffinity() + { + return $this->sessionAffinity; + } + public function setTargetModules($targetModules) { $this->targetModules = $targetModules; From 6cd719a35f3cd6d3e74b425afeb3ec1ed24ecace Mon Sep 17 00:00:00 2001 From: Matthew Strickland Date: Mon, 25 Aug 2014 18:15:59 -0700 Subject: [PATCH 0127/1274] Fix multiple header definitions in ParseStringHeaders method --- src/Google/IO/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index 2d80afdd8..4f1134211 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -300,7 +300,7 @@ private function parseStringHeaders($rawHeaders) if ($headerLine && strpos($headerLine, ':') !== false) { list($header, $value) = explode(': ', $headerLine, 2); $header = strtolower($header); - if (isset($responseHeaders[$header])) { + if (isset($headers[$header])) { $headers[$header] .= "\n" . $value; } else { $headers[$header] = $value; From df075bbd62bdbf885fe93a8800f1ba40cf3ec90a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 01:30:46 -0700 Subject: [PATCH 0128/1274] Updated ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 66 ++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index d1c71d104..7040943b0 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -3024,6 +3024,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $salePriceEffectiveDate; protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; protected $shippingDataType = 'array'; + public $shippingLabel; protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; protected $shippingWeightDataType = ''; public $sizeSystem; @@ -3519,6 +3520,16 @@ public function getShipping() return $this->shipping; } + public function setShippingLabel($shippingLabel) + { + $this->shippingLabel = $shippingLabel; + } + + public function getShippingLabel() + { + return $this->shippingLabel; + } + public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) { $this->shippingWeight = $shippingWeight; @@ -3761,6 +3772,9 @@ public function getMonths() class Google_Service_ShoppingContent_ProductShipping extends Google_Model { public $country; + public $locationGroupName; + public $locationId; + public $postalCode; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; public $region; @@ -3776,6 +3790,36 @@ public function getCountry() return $this->country; } + public function setLocationGroupName($locationGroupName) + { + $this->locationGroupName = $locationGroupName; + } + + public function getLocationGroupName() + { + return $this->locationGroupName; + } + + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + + public function getLocationId() + { + return $this->locationId; + } + + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + + public function getPostalCode() + { + return $this->postalCode; + } + public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -4026,6 +4070,8 @@ public function getIntention() class Google_Service_ShoppingContent_ProductTax extends Google_Model { public $country; + public $locationId; + public $postalCode; public $rate; public $region; public $taxShip; @@ -4040,6 +4086,26 @@ public function getCountry() return $this->country; } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + + public function getLocationId() + { + return $this->locationId; + } + + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + + public function getPostalCode() + { + return $this->postalCode; + } + public function setRate($rate) { $this->rate = $rate; From fd55df08644e73a754f72579adcd6044cb76767d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 01:30:46 -0700 Subject: [PATCH 0129/1274] Updated Gmail.php --- src/Google/Service/Gmail.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index aec364df2..ec716fc0d 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -332,6 +332,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'internalDateSource' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'insert' => array( 'path' => '{userId}/messages', @@ -342,6 +346,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'internalDateSource' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => '{userId}/messages', @@ -909,13 +917,17 @@ public function get($userId, $id, $optParams = array()) return $this->call('get', array($params), "Google_Service_Gmail_Message"); } /** - * Directly imports a message into only this user's mailbox, similar to - * receiving via SMTP. Does not send a message. (messages.import) + * Imports a message into only this user's mailbox, with standard email delivery + * scanning and classification similar to receiving via SMTP. Does not send a + * message. (messages.import) * * @param string $userId * The user's email address. The special value me can be used to indicate the authenticated user. * @param Google_Message $postBody * @param array $optParams Optional parameters. + * + * @opt_param string internalDateSource + * Source for Gmail's internal date of the message. * @return Google_Service_Gmail_Message */ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) @@ -925,13 +937,17 @@ public function import($userId, Google_Service_Gmail_Message $postBody, $optPara return $this->call('import', array($params), "Google_Service_Gmail_Message"); } /** - * Directly inserts a message into only this user's mailbox. Does not send a - * message. (messages.insert) + * Directly inserts a message into only this user's mailbox similar to IMAP + * APPEND, bypassing most scanning and classification. Does not send a message. + * (messages.insert) * * @param string $userId * The user's email address. The special value me can be used to indicate the authenticated user. * @param Google_Message $postBody * @param array $optParams Optional parameters. + * + * @opt_param string internalDateSource + * Source for Gmail's internal date of the message. * @return Google_Service_Gmail_Message */ public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) From fd9db683efa14bfe26dd6cc461169afda2c6b843 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:09 -0700 Subject: [PATCH 0130/1274] Updated YouTube.php --- src/Google/Service/YouTube.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index ea24855e5..404cc4299 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -3333,6 +3333,7 @@ public function unsetWatermarks($channelId, $optParams = array()) class Google_Service_YouTube_AccessPolicy extends Google_Collection { + protected $collection_key = 'exception'; public $allowed; public $exception; @@ -3674,6 +3675,7 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection { + protected $collection_key = 'impressionUrl'; public $adTag; public $clickTrackingUrl; public $creativeViewUrl; @@ -3918,6 +3920,7 @@ public function getVideoId() class Google_Service_YouTube_ActivityListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Activity'; @@ -4397,6 +4400,7 @@ public function getUrl() class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection { + protected $collection_key = 'hints'; protected $channelType = 'Google_Service_YouTube_ChannelSettings'; protected $channelDataType = ''; protected $hintsType = 'Google_Service_YouTube_PropertyValue'; @@ -4587,6 +4591,7 @@ public function getConversionUrl() class Google_Service_YouTube_ChannelConversionPings extends Google_Collection { + protected $collection_key = 'pings'; protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; protected $pingsDataType = 'array'; @@ -4603,6 +4608,7 @@ public function getPings() class Google_Service_YouTube_ChannelListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Channel'; @@ -4770,6 +4776,7 @@ public function getSnippet() class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection { + protected $collection_key = 'playlists'; public $channels; public $playlists; @@ -4796,6 +4803,7 @@ public function getPlaylists() class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_ChannelSection'; @@ -4915,6 +4923,7 @@ public function getType() class Google_Service_YouTube_ChannelSettings extends Google_Collection { + protected $collection_key = 'featuredChannelsUrls'; public $defaultTab; public $description; public $featuredChannelsTitle; @@ -5185,6 +5194,7 @@ public function getPrivacyStatus() class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection { + protected $collection_key = 'topicIds'; public $topicIds; public function setTopicIds($topicIds) @@ -5983,6 +5993,7 @@ public function getSnippet() class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_GuideCategory'; @@ -6164,6 +6175,7 @@ public function getSnippet() class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; @@ -6299,6 +6311,7 @@ public function getSnippet() class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_I18nRegion'; @@ -6760,6 +6773,7 @@ public function getType() class Google_Service_YouTube_InvideoPromotion extends Google_Collection { + protected $collection_key = 'items'; protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; protected $defaultTimingDataType = ''; protected $itemsType = 'Google_Service_YouTube_PromotedItem'; @@ -7003,6 +7017,7 @@ public function getStartWithSlate() class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; @@ -7361,6 +7376,7 @@ public function getClosedCaptionsIngestionUrl() class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_LiveStream'; @@ -7530,6 +7546,7 @@ public function getStreamStatus() class Google_Service_YouTube_LocalizedProperty extends Google_Collection { + protected $collection_key = 'localized'; public $default; protected $localizedType = 'Google_Service_YouTube_LocalizedString'; protected $localizedDataType = 'array'; @@ -7867,6 +7884,7 @@ public function getVideoId() class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; @@ -8093,6 +8111,7 @@ public function getPrivacyStatus() class Google_Service_YouTube_PlaylistListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Playlist'; @@ -8214,6 +8233,7 @@ public function getEmbedHtml() class Google_Service_YouTube_PlaylistSnippet extends Google_Collection { + protected $collection_key = 'tags'; public $channelId; public $channelTitle; public $description; @@ -8483,6 +8503,7 @@ public function getVideoId() class Google_Service_YouTube_SearchListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_SearchResult'; @@ -8831,6 +8852,7 @@ public function getTotalItemCount() class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Subscription'; @@ -9170,6 +9192,7 @@ public function getStandard() class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -9538,6 +9561,7 @@ public function getSnippet() class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_VideoCategory'; @@ -9776,6 +9800,7 @@ public function getRegionRestriction() class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection { + protected $collection_key = 'blocked'; public $allowed; public $blocked; @@ -9828,6 +9853,7 @@ public function getConversionUrl() class Google_Service_YouTube_VideoConversionPings extends Google_Collection { + protected $collection_key = 'pings'; protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; protected $pingsDataType = 'array'; @@ -9844,6 +9870,7 @@ public function getPings() class Google_Service_YouTube_VideoFileDetails extends Google_Collection { + protected $collection_key = 'videoStreams'; protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; protected $audioStreamsDataType = 'array'; public $bitrateBps; @@ -10101,6 +10128,7 @@ public function getWidthPixels() class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_YouTube_VideoRating'; protected $itemsDataType = 'array'; @@ -10139,6 +10167,7 @@ public function getKind() class Google_Service_YouTube_VideoListResponse extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Video'; @@ -10465,6 +10494,7 @@ public function getTimeLeftMs() class Google_Service_YouTube_VideoProjectDetails extends Google_Collection { + protected $collection_key = 'tags'; public $tags; public function setTags($tags) @@ -10544,6 +10574,7 @@ public function getRecordingDate() class Google_Service_YouTube_VideoSnippet extends Google_Collection { + protected $collection_key = 'tags'; public $categoryId; public $channelId; public $channelTitle; @@ -10799,6 +10830,7 @@ public function getUploadStatus() class Google_Service_YouTube_VideoSuggestions extends Google_Collection { + protected $collection_key = 'tagSuggestions'; public $editorSuggestions; public $processingErrors; public $processingHints; @@ -10859,6 +10891,7 @@ public function getTagSuggestions() class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection { + protected $collection_key = 'categoryRestricts'; public $categoryRestricts; public $tag; @@ -10885,6 +10918,7 @@ public function getTag() class Google_Service_YouTube_VideoTopicDetails extends Google_Collection { + protected $collection_key = 'topicIds'; public $relevantTopicIds; public $topicIds; From 2457e6eb49587452609e03a1fb7c3e0ceda42286 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:10 -0700 Subject: [PATCH 0131/1274] Updated AdExchangeBuyer.php --- src/Google/Service/AdExchangeBuyer.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 533b9b2fd..26fdde442 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -705,6 +705,7 @@ public function update($accountId, $configId, Google_Service_AdExchangeBuyer_Pre class Google_Service_AdExchangeBuyer_Account extends Google_Collection { + protected $collection_key = 'bidderLocation'; protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation'; protected $bidderLocationDataType = 'array'; public $cookieMatchingNid; @@ -813,6 +814,7 @@ public function getUrl() class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeBuyer_Account'; protected $itemsDataType = 'array'; public $kind; @@ -840,6 +842,7 @@ public function getKind() class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection { + protected $collection_key = 'billingId'; public $accountId; public $accountName; public $billingId; @@ -888,6 +891,7 @@ public function getKind() class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; protected $itemsDataType = 'array'; public $kind; @@ -915,6 +919,7 @@ public function getKind() class Google_Service_AdExchangeBuyer_Creative extends Google_Collection { + protected $collection_key = 'vendorType'; public $hTMLSnippet; public $accountId; public $advertiserId; @@ -1142,6 +1147,7 @@ public function getWidth() class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection { + protected $collection_key = 'details'; public $details; public $reason; @@ -1168,6 +1174,7 @@ public function getReason() class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection { + protected $collection_key = 'details'; public $details; public $reason; @@ -1194,6 +1201,7 @@ public function getReason() class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection { + protected $collection_key = 'reasons'; public $date; protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; protected $reasonsDataType = 'array'; @@ -1247,6 +1255,7 @@ public function getFilteringStatus() class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; protected $itemsDataType = 'array'; public $kind; @@ -1410,6 +1419,7 @@ public function getStartTime() class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection { + protected $collection_key = 'directDeals'; protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal'; protected $directDealsDataType = 'array'; public $kind; @@ -1437,6 +1447,7 @@ public function getKind() class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { + protected $collection_key = 'hostedMatchStatusRate'; public $calloutStatusRate; public $cookieMatcherStatusRate; public $creativeStatusRate; @@ -1617,6 +1628,7 @@ public function getTimestamp() class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection { + protected $collection_key = 'performanceReport'; public $kind; protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; protected $performanceReportDataType = 'array'; @@ -1644,6 +1656,8 @@ public function getPerformanceReport() class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection { + protected $collection_key = 'verticals'; + public $billingId; public $configId; public $configName; public $creativeType; @@ -1670,6 +1684,16 @@ class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collectio public $vendorTypes; public $verticals; + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + + public function getBillingId() + { + return $this->billingId; + } + public function setConfigId($configId) { $this->configId = $configId; @@ -1945,6 +1969,7 @@ public function getType() class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; protected $itemsDataType = 'array'; public $kind; From 3cb580feab544cba8186869f50b1fb8791db45fc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:11 -0700 Subject: [PATCH 0132/1274] Updated Fusiontables.php --- src/Google/Service/Fusiontables.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index ffa01bd10..89e7c2ad0 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -1422,6 +1422,7 @@ public function getTableIndex() class Google_Service_Fusiontables_ColumnList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Fusiontables_Column'; protected $itemsDataType = 'array'; public $kind; @@ -1471,6 +1472,7 @@ public function getTotalItems() class Google_Service_Fusiontables_Geometry extends Google_Collection { + protected $collection_key = 'geometries'; public $geometries; public $geometry; public $type; @@ -1534,6 +1536,7 @@ public function getNumRowsReceived() class Google_Service_Fusiontables_Line extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public $type; @@ -1621,6 +1624,7 @@ public function getStrokeWeightStyler() class Google_Service_Fusiontables_Point extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public $type; @@ -1674,6 +1678,7 @@ public function getIconStyler() class Google_Service_Fusiontables_Polygon extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public $type; @@ -1795,6 +1800,7 @@ public function getStrokeWeightStyler() class Google_Service_Fusiontables_Sqlresponse extends Google_Collection { + protected $collection_key = 'rows'; public $columns; public $kind; public $rows; @@ -1832,6 +1838,7 @@ public function getRows() class Google_Service_Fusiontables_StyleFunction extends Google_Collection { + protected $collection_key = 'buckets'; protected $bucketsType = 'Google_Service_Fusiontables_Bucket'; protected $bucketsDataType = 'array'; public $columnName; @@ -1882,6 +1889,7 @@ public function getKind() class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection { + protected $collection_key = 'colors'; protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors'; protected $colorsDataType = 'array'; public $max; @@ -2030,6 +2038,7 @@ public function getTableId() class Google_Service_Fusiontables_StyleSettingList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Fusiontables_StyleSetting'; protected $itemsDataType = 'array'; public $kind; @@ -2079,6 +2088,7 @@ public function getTotalItems() class Google_Service_Fusiontables_Table extends Google_Collection { + protected $collection_key = 'columns'; public $attribution; public $attributionLink; public $baseTableIds; @@ -2194,6 +2204,7 @@ public function getTableId() class Google_Service_Fusiontables_TableList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Fusiontables_Table'; protected $itemsDataType = 'array'; public $kind; @@ -2291,6 +2302,7 @@ public function getType() class Google_Service_Fusiontables_TaskList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Fusiontables_Task'; protected $itemsDataType = 'array'; public $kind; @@ -2340,6 +2352,7 @@ public function getTotalItems() class Google_Service_Fusiontables_Template extends Google_Collection { + protected $collection_key = 'automaticColumnNames'; public $automaticColumnNames; public $body; public $kind; @@ -2410,6 +2423,7 @@ public function getTemplateId() class Google_Service_Fusiontables_TemplateList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Fusiontables_Template'; protected $itemsDataType = 'array'; public $kind; From 176ded8f2614515e8e400cffd7568cf946b69686 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:12 -0700 Subject: [PATCH 0133/1274] Updated Storage.php --- src/Google/Service/Storage.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index ff432b493..eb71c9d31 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -1839,6 +1839,7 @@ public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $opt class Google_Service_Storage_Bucket extends Google_Collection { + protected $collection_key = 'defaultObjectAcl'; protected $aclType = 'Google_Service_Storage_BucketAccessControl'; protected $aclDataType = 'array'; protected $corsType = 'Google_Service_Storage_BucketCors'; @@ -2201,6 +2202,7 @@ public function getTeam() class Google_Service_Storage_BucketAccessControls extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; protected $itemsDataType = 'array'; public $kind; @@ -2228,6 +2230,7 @@ public function getKind() class Google_Service_Storage_BucketCors extends Google_Collection { + protected $collection_key = 'responseHeader'; public $maxAgeSeconds; public $method; public $origin; @@ -2276,6 +2279,7 @@ public function getResponseHeader() class Google_Service_Storage_BucketLifecycle extends Google_Collection { + protected $collection_key = 'rule'; protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; protected $ruleDataType = 'array'; @@ -2476,6 +2480,7 @@ public function getNotFoundPage() class Google_Service_Storage_Buckets extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Storage_Bucket'; protected $itemsDataType = 'array'; public $kind; @@ -2633,6 +2638,7 @@ class Google_Service_Storage_ChannelParams extends Google_Model class Google_Service_Storage_ComposeRequest extends Google_Collection { + protected $collection_key = 'sourceObjects'; protected $destinationType = 'Google_Service_Storage_StorageObject'; protected $destinationDataType = ''; public $kind; @@ -2899,6 +2905,7 @@ public function getTeam() class Google_Service_Storage_ObjectAccessControls extends Google_Collection { + protected $collection_key = 'items'; public $items; public $kind; @@ -2925,6 +2932,7 @@ public function getKind() class Google_Service_Storage_Objects extends Google_Collection { + protected $collection_key = 'prefixes'; protected $itemsType = 'Google_Service_Storage_StorageObject'; protected $itemsDataType = 'array'; public $kind; @@ -2974,6 +2982,7 @@ public function getPrefixes() class Google_Service_Storage_StorageObject extends Google_Collection { + protected $collection_key = 'acl'; protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; protected $aclDataType = 'array'; public $bucket; From 274bf8f2e871b12d1e6bd78d9537ff18fa8deb1f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:12 -0700 Subject: [PATCH 0134/1274] Updated AdExchangeSeller.php --- src/Google/Service/AdExchangeSeller.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index a09913a77..9c1c8231e 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -1079,6 +1079,7 @@ public function getSupportsReporting() class Google_Service_AdExchangeSeller_AdClients extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; protected $itemsDataType = 'array'; @@ -1187,6 +1188,7 @@ public function getStatus() class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_AdUnit'; protected $itemsDataType = 'array'; @@ -1295,6 +1297,7 @@ public function getType() class Google_Service_AdExchangeSeller_Alerts extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeSeller_Alert'; protected $itemsDataType = 'array'; public $kind; @@ -1430,6 +1433,7 @@ public function getSiteLanguage() class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel'; protected $itemsDataType = 'array'; @@ -1479,6 +1483,7 @@ public function getNextPageToken() class Google_Service_AdExchangeSeller_Metadata extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry'; protected $itemsDataType = 'array'; public $kind; @@ -1598,6 +1603,7 @@ public function getStartTime() class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal'; protected $itemsDataType = 'array'; public $kind; @@ -1625,6 +1631,7 @@ public function getKind() class Google_Service_AdExchangeSeller_Report extends Google_Collection { + protected $collection_key = 'warnings'; public $averages; protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders'; protected $headersDataType = 'array'; @@ -1744,6 +1751,7 @@ public function getType() class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection { + protected $collection_key = 'supportedProducts'; public $compatibleDimensions; public $compatibleMetrics; public $id; @@ -1862,6 +1870,7 @@ public function getName() class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport'; protected $itemsDataType = 'array'; @@ -1948,6 +1957,7 @@ public function getUrlPattern() class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel'; protected $itemsDataType = 'array'; From 37e575c94ba7861b3337c6617186cfdd00d6a007 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:13 -0700 Subject: [PATCH 0135/1274] Updated Blogger.php --- src/Google/Service/Blogger.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 2438429b5..325d5fe0c 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -1893,6 +1893,7 @@ public function getUrl() class Google_Service_Blogger_BlogList extends Google_Collection { + protected $collection_key = 'items'; protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; protected $blogUserInfosDataType = 'array'; protected $itemsType = 'Google_Service_Blogger_Blog'; @@ -2065,6 +2066,7 @@ public function getUserId() class Google_Service_Blogger_BlogPosts extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $selfLink; @@ -2365,6 +2367,7 @@ public function getId() class Google_Service_Blogger_CommentList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2646,6 +2649,7 @@ public function getId() class Google_Service_Blogger_PageList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_Page'; protected $itemsDataType = 'array'; public $kind; @@ -2673,6 +2677,7 @@ public function getKind() class Google_Service_Blogger_Pageviews extends Google_Collection { + protected $collection_key = 'counts'; public $blogId; protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; protected $countsDataType = 'array'; @@ -2737,6 +2742,7 @@ public function getTimeRange() class Google_Service_Blogger_Post extends Google_Collection { + protected $collection_key = 'labels'; protected $authorType = 'Google_Service_Blogger_PostAuthor'; protected $authorDataType = ''; protected $blogType = 'Google_Service_Blogger_PostBlog'; @@ -3049,6 +3055,7 @@ public function getUrl() class Google_Service_Blogger_PostList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $kind; @@ -3194,6 +3201,7 @@ public function getUserId() class Google_Service_Blogger_PostReplies extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $selfLink; @@ -3271,6 +3279,7 @@ public function getPostUserInfo() class Google_Service_Blogger_PostUserInfosList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; protected $itemsDataType = 'array'; public $kind; From 948bb5717bb56f7dde9bff696587bc5d1fcc0eab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:14 -0700 Subject: [PATCH 0136/1274] Updated AndroidPublisher.php --- src/Google/Service/AndroidPublisher.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 41a94e097..aba94d321 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -2187,6 +2187,7 @@ public function getRecentChanges() class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection { + protected $collection_key = 'listings'; public $kind; protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; protected $listingsDataType = 'array'; @@ -2214,6 +2215,7 @@ public function getListings() class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection { + protected $collection_key = 'apks'; protected $apksType = 'Google_Service_AndroidPublisher_Apk'; protected $apksDataType = 'array'; public $kind; @@ -2394,6 +2396,7 @@ public function getUrl() class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection { + protected $collection_key = 'deleted'; protected $deletedType = 'Google_Service_AndroidPublisher_Image'; protected $deletedDataType = 'array'; @@ -2410,6 +2413,7 @@ public function getDeleted() class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection { + protected $collection_key = 'images'; protected $imagesType = 'Google_Service_AndroidPublisher_Image'; protected $imagesDataType = 'array'; @@ -2595,6 +2599,7 @@ class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection { + protected $collection_key = 'entrys'; protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; protected $entrysDataType = 'array'; @@ -2661,6 +2666,7 @@ public function getMethodName() class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection { + protected $collection_key = 'entrys'; protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; protected $entrysDataType = 'array'; public $kind; @@ -2759,6 +2765,7 @@ public function getInappproduct() class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection { + protected $collection_key = 'inappproduct'; protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = 'array'; public $kind; @@ -2901,6 +2908,7 @@ public function getVideo() class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection { + protected $collection_key = 'listings'; public $kind; protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; protected $listingsDataType = 'array'; @@ -3098,6 +3106,7 @@ public function getStartTimeMillis() class Google_Service_AndroidPublisher_Testers extends Google_Collection { + protected $collection_key = 'googlePlusCommunities'; public $googleGroups; public $googlePlusCommunities; @@ -3150,6 +3159,7 @@ public function getPreviousPageToken() class Google_Service_AndroidPublisher_Track extends Google_Collection { + protected $collection_key = 'versionCodes'; public $track; public $userFraction; public $versionCodes; @@ -3187,6 +3197,7 @@ public function getVersionCodes() class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection { + protected $collection_key = 'tracks'; public $kind; protected $tracksType = 'Google_Service_AndroidPublisher_Track'; protected $tracksDataType = 'array'; From 2c1aac6bcd6fb5a90ee917447a3f2a014b06de44 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:15 -0700 Subject: [PATCH 0137/1274] Updated Pagespeedonline.php --- src/Google/Service/Pagespeedonline.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index e1632d75f..1a8f2ab96 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -138,6 +138,7 @@ public function runpagespeed($url, $optParams = array()) class Google_Service_Pagespeedonline_Result extends Google_Collection { + protected $collection_key = 'invalidRules'; protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults'; protected $formattedResultsDataType = ''; public $id; @@ -288,6 +289,7 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends G class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection { + protected $collection_key = 'urlBlocks'; public $localizedRuleName; public $ruleImpact; protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; @@ -326,6 +328,7 @@ public function getUrlBlocks() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection { + protected $collection_key = 'urls'; protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; protected $headerDataType = ''; protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; @@ -354,6 +357,7 @@ public function getUrls() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection { + protected $collection_key = 'args'; protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; protected $argsDataType = 'array'; public $format; @@ -407,6 +411,7 @@ public function getValue() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection { + protected $collection_key = 'details'; protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; protected $detailsDataType = 'array'; protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; @@ -435,6 +440,7 @@ public function getResult() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection { + protected $collection_key = 'args'; protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; protected $argsDataType = 'array'; public $format; @@ -488,6 +494,7 @@ public function getValue() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection { + protected $collection_key = 'args'; protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; protected $argsDataType = 'array'; public $format; From cfafa20877e24445e495dd50a7034e99d2bf91ed Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:15 -0700 Subject: [PATCH 0138/1274] Updated Genomics.php --- src/Google/Service/Genomics.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 53e1fa59d..5ab238856 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1192,6 +1192,7 @@ public function getExists() class Google_Service_Genomics_Call extends Google_Collection { + protected $collection_key = 'genotypeLikelihood'; public $callsetId; public $callsetName; public $genotype; @@ -1432,6 +1433,7 @@ public function getProjectId() class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection { + protected $collection_key = 'sourceUris'; public $align; public $callVariants; public $gcsOutputPath; @@ -1517,6 +1519,7 @@ public function getJobId() class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection { + protected $collection_key = 'readsetIds'; public $exportUri; public $projectId; public $readsetIds; @@ -1569,6 +1572,7 @@ public function getJobId() class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection { + protected $collection_key = 'callsetIds'; public $bigqueryDataset; public $bigqueryTable; public $callsetIds; @@ -1691,6 +1695,7 @@ public function getSequenceStart() class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collection { + protected $collection_key = 'metadata'; protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; protected $contigBoundsDataType = 'array'; protected $metadataType = 'Google_Service_Genomics_Metadata'; @@ -1745,6 +1750,7 @@ public function getVersion() class Google_Service_Genomics_HeaderSection extends Google_Collection { + protected $collection_key = 'refSequences'; public $comments; public $fileUri; public $filename; @@ -1830,6 +1836,7 @@ public function getRefSequences() class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection { + protected $collection_key = 'sourceUris'; public $datasetId; public $sourceUris; @@ -1871,6 +1878,7 @@ public function getJobId() class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection { + protected $collection_key = 'sourceUris'; public $datasetId; public $format; public $sourceUris; @@ -1923,6 +1931,7 @@ public function getJobId() class Google_Service_Genomics_Job extends Google_Collection { + protected $collection_key = 'warnings'; public $created; public $description; public $errors; @@ -2027,6 +2036,7 @@ public function getWarnings() class Google_Service_Genomics_JobRequest extends Google_Collection { + protected $collection_key = 'source'; public $destination; public $source; public $type; @@ -2064,6 +2074,7 @@ public function getType() class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection { + protected $collection_key = 'coverageBuckets'; public $bucketWidth; protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; protected $coverageBucketsDataType = 'array'; @@ -2102,6 +2113,7 @@ public function getNextPageToken() class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection { + protected $collection_key = 'datasets'; protected $datasetsType = 'Google_Service_Genomics_Dataset'; protected $datasetsDataType = 'array'; public $nextPageToken; @@ -2584,6 +2596,7 @@ class Google_Service_Genomics_ReadTags extends Google_Model class Google_Service_Genomics_Readset extends Google_Collection { + protected $collection_key = 'fileData'; public $datasetId; protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; protected $fileDataDataType = 'array'; @@ -2703,6 +2716,7 @@ public function getUri() class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection { + protected $collection_key = 'datasetIds'; public $datasetIds; public $maxResults; public $name; @@ -2751,6 +2765,7 @@ public function getPageToken() class Google_Service_Genomics_SearchCallsetsResponse extends Google_Collection { + protected $collection_key = 'callsets'; protected $callsetsType = 'Google_Service_Genomics_Callset'; protected $callsetsDataType = 'array'; public $nextPageToken; @@ -2778,6 +2793,7 @@ public function getNextPageToken() class Google_Service_Genomics_SearchJobsRequest extends Google_Collection { + protected $collection_key = 'status'; public $createdAfter; public $createdBefore; public $maxResults; @@ -2848,6 +2864,7 @@ public function getStatus() class Google_Service_Genomics_SearchJobsResponse extends Google_Collection { + protected $collection_key = 'jobs'; protected $jobsType = 'Google_Service_Genomics_Job'; protected $jobsDataType = 'array'; public $nextPageToken; @@ -2875,6 +2892,7 @@ public function getNextPageToken() class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { + protected $collection_key = 'readsetIds'; public $maxResults; public $pageToken; public $readsetIds; @@ -2945,6 +2963,7 @@ public function getSequenceStart() class Google_Service_Genomics_SearchReadsResponse extends Google_Collection { + protected $collection_key = 'reads'; public $nextPageToken; protected $readsType = 'Google_Service_Genomics_Read'; protected $readsDataType = 'array'; @@ -2972,6 +2991,7 @@ public function getReads() class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection { + protected $collection_key = 'datasetIds'; public $datasetIds; public $maxResults; public $name; @@ -3020,6 +3040,7 @@ public function getPageToken() class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection { + protected $collection_key = 'readsets'; public $nextPageToken; protected $readsetsType = 'Google_Service_Genomics_Readset'; protected $readsetsDataType = 'array'; @@ -3047,6 +3068,7 @@ public function getReadsets() class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection { + protected $collection_key = 'callsetNames'; public $callsetIds; public $callsetNames; public $contig; @@ -3150,6 +3172,7 @@ public function getVariantName() class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection { + protected $collection_key = 'variants'; public $nextPageToken; protected $variantsType = 'Google_Service_Genomics_Variant'; protected $variantsDataType = 'array'; @@ -3177,6 +3200,7 @@ public function getVariants() class Google_Service_Genomics_Variant extends Google_Collection { + protected $collection_key = 'names'; public $alternateBases; protected $callsType = 'Google_Service_Genomics_Call'; protected $callsDataType = 'array'; From 24faf1b13e16ea6b9bde4f67b2c9e969b1672243 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:16 -0700 Subject: [PATCH 0139/1274] Updated MapsEngine.php --- src/Google/Service/MapsEngine.php | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index ed528cefe..465ab831f 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -2614,6 +2614,7 @@ public function getStart() class Google_Service_MapsEngine_Asset extends Google_Collection { + protected $collection_key = 'tags'; public $bbox; public $creationTime; public $description; @@ -2739,6 +2740,7 @@ public function getType() class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection { + protected $collection_key = 'assets'; protected $assetsType = 'Google_Service_MapsEngine_Asset'; protected $assetsDataType = 'array'; public $nextPageToken; @@ -2844,6 +2846,7 @@ public function getId() class Google_Service_MapsEngine_DisplayRule extends Google_Collection { + protected $collection_key = 'filters'; protected $filtersType = 'Google_Service_MapsEngine_Filter'; protected $filtersDataType = 'array'; protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; @@ -2972,6 +2975,7 @@ public function getContent() class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection { + protected $collection_key = 'primaryKeys'; public $gxIds; public $primaryKeys; @@ -2998,6 +3002,7 @@ public function getPrimaryKeys() class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection { + protected $collection_key = 'features'; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; @@ -3014,6 +3019,7 @@ public function getFeatures() class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection { + protected $collection_key = 'features'; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; @@ -3030,6 +3036,7 @@ public function getFeatures() class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection { + protected $collection_key = 'features'; public $allowedQueriesPerSecond; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; @@ -3143,6 +3150,7 @@ public function getType() class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection { + protected $collection_key = 'geometries'; protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; protected $geometriesDataType = 'array'; @@ -3159,6 +3167,7 @@ public function getGeometries() class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3174,6 +3183,7 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3189,6 +3199,7 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3204,6 +3215,7 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3219,6 +3231,7 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3234,6 +3247,7 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection { + protected $collection_key = 'coordinates'; public $coordinates; public function setCoordinates($coordinates) @@ -3317,6 +3331,7 @@ public function getName() class Google_Service_MapsEngine_IconsListResponse extends Google_Collection { + protected $collection_key = 'icons'; protected $iconsType = 'Google_Service_MapsEngine_Icon'; protected $iconsDataType = 'array'; public $nextPageToken; @@ -3426,6 +3441,7 @@ public function getSize() class Google_Service_MapsEngine_Layer extends Google_Collection { + protected $collection_key = 'tags'; public $bbox; public $creationTime; public $datasourceType; @@ -3608,6 +3624,7 @@ public function getTags() class Google_Service_MapsEngine_LayersListResponse extends Google_Collection { + protected $collection_key = 'layers'; protected $layersType = 'Google_Service_MapsEngine_Layer'; protected $layersDataType = 'array'; public $nextPageToken; @@ -3635,6 +3652,7 @@ public function getNextPageToken() class Google_Service_MapsEngine_LineStyle extends Google_Collection { + protected $collection_key = 'dash'; protected $borderType = 'Google_Service_MapsEngine_Border'; protected $borderDataType = ''; public $dash; @@ -3723,6 +3741,7 @@ public function getWidth() class Google_Service_MapsEngine_Map extends Google_Collection { + protected $collection_key = 'versions'; public $bbox; protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = ''; @@ -3904,6 +3923,7 @@ public function getVersions() class Google_Service_MapsEngine_MapFolder extends Google_Collection { + protected $collection_key = 'defaultViewport'; protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = 'array'; public $defaultViewport; @@ -3990,6 +4010,7 @@ public function getType() class Google_Service_MapsEngine_MapKmlLink extends Google_Collection { + protected $collection_key = 'defaultViewport'; public $defaultViewport; public $kmlUrl; public $name; @@ -4038,6 +4059,7 @@ public function getVisibility() class Google_Service_MapsEngine_MapLayer extends Google_Collection { + protected $collection_key = 'defaultViewport'; public $defaultViewport; public $id; public $key; @@ -4097,6 +4119,7 @@ public function getVisibility() class Google_Service_MapsEngine_MapsListResponse extends Google_Collection { + protected $collection_key = 'maps'; protected $mapsType = 'Google_Service_MapsEngine_Map'; protected $mapsDataType = 'array'; public $nextPageToken; @@ -4176,6 +4199,7 @@ public function getId() class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection { + protected $collection_key = 'parents'; public $nextPageToken; protected $parentsType = 'Google_Service_MapsEngine_Parent'; protected $parentsDataType = 'array'; @@ -4290,6 +4314,7 @@ public function getName() class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection { + protected $collection_key = 'projects'; protected $projectsType = 'Google_Service_MapsEngine_Project'; protected $projectsDataType = 'array'; @@ -4311,6 +4336,7 @@ class Google_Service_MapsEngine_PublishResponse extends Google_Model class Google_Service_MapsEngine_Raster extends Google_Collection { + protected $collection_key = 'files'; protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; protected $acquisitionTimeDataType = ''; public $attribution; @@ -4493,6 +4519,7 @@ public function getTags() class Google_Service_MapsEngine_RasterCollection extends Google_Collection { + protected $collection_key = 'bbox'; public $attribution; public $bbox; public $creationTime; @@ -4651,6 +4678,7 @@ public function getTags() class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection { + protected $collection_key = 'rasterCollections'; public $nextPageToken; protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; protected $rasterCollectionsDataType = 'array'; @@ -4678,6 +4706,7 @@ public function getRasterCollections() class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection { + protected $collection_key = 'tags'; public $bbox; public $creationTime; public $description; @@ -4781,6 +4810,7 @@ public function getTags() class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection { + protected $collection_key = 'ids'; public $ids; public function setIds($ids) @@ -4801,6 +4831,7 @@ class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse exte class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection { + protected $collection_key = 'ids'; public $ids; public function setIds($ids) @@ -4821,6 +4852,7 @@ class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse exte class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection { + protected $collection_key = 'rasters'; public $nextPageToken; protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; protected $rastersDataType = 'array'; @@ -4848,6 +4880,7 @@ public function getRasters() class Google_Service_MapsEngine_RastersListResponse extends Google_Collection { + protected $collection_key = 'rasters'; public $nextPageToken; protected $rastersType = 'Google_Service_MapsEngine_Raster'; protected $rastersDataType = 'array'; @@ -4875,6 +4908,7 @@ public function getRasters() class Google_Service_MapsEngine_Schema extends Google_Collection { + protected $collection_key = 'columns'; protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; protected $columnsDataType = 'array'; public $primaryGeometry; @@ -4913,6 +4947,7 @@ public function getPrimaryKey() class Google_Service_MapsEngine_Table extends Google_Collection { + protected $collection_key = 'tags'; public $bbox; public $creationTime; public $description; @@ -5110,6 +5145,7 @@ public function getType() class Google_Service_MapsEngine_TablesListResponse extends Google_Collection { + protected $collection_key = 'tables'; public $nextPageToken; protected $tablesType = 'Google_Service_MapsEngine_Table'; protected $tablesDataType = 'array'; @@ -5137,6 +5173,7 @@ public function getTables() class Google_Service_MapsEngine_VectorStyle extends Google_Collection { + protected $collection_key = 'displayRules'; protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; protected $displayRulesDataType = 'array'; protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; From 63d617e737d9489b3150f2bf6665722d609771f1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:17 -0700 Subject: [PATCH 0140/1274] Updated Freebase.php --- src/Google/Service/Freebase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index a1157f63a..4251de3a2 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -373,6 +373,7 @@ public function getName() class Google_Service_Freebase_ReconcileGet extends Google_Collection { + protected $collection_key = 'warning'; protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate'; protected $candidateDataType = 'array'; protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts'; From 4b52a542f8d23f7a9951a900e6b67b080b26289e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:17 -0700 Subject: [PATCH 0141/1274] Updated Urlshortener.php --- src/Google/Service/Urlshortener.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index 37f6c4237..010529494 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -159,6 +159,7 @@ public function listUrl($optParams = array()) class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection { + protected $collection_key = 'referrers'; protected $browsersType = 'Google_Service_Urlshortener_StringCount'; protected $browsersDataType = 'array'; protected $countriesType = 'Google_Service_Urlshortener_StringCount'; @@ -394,6 +395,7 @@ public function getStatus() class Google_Service_Urlshortener_UrlHistory extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Urlshortener_Url'; protected $itemsDataType = 'array'; public $itemsPerPage; From 14109eedfdac068c23dbfbc6305f1de0e3a5917e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:18 -0700 Subject: [PATCH 0142/1274] Updated Dns.php --- src/Google/Service/Dns.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index d6fc44f88..f8f52ac35 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -495,6 +495,7 @@ public function listResourceRecordSets($project, $managedZone, $optParams = arra class Google_Service_Dns_Change extends Google_Collection { + protected $collection_key = 'deletions'; protected $additionsType = 'Google_Service_Dns_ResourceRecordSet'; protected $additionsDataType = 'array'; protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet'; @@ -567,6 +568,7 @@ public function getStatus() class Google_Service_Dns_ChangesListResponse extends Google_Collection { + protected $collection_key = 'changes'; protected $changesType = 'Google_Service_Dns_Change'; protected $changesDataType = 'array'; public $kind; @@ -605,6 +607,7 @@ public function getNextPageToken() class Google_Service_Dns_ManagedZone extends Google_Collection { + protected $collection_key = 'nameServers'; public $creationTime; public $description; public $dnsName; @@ -686,6 +689,7 @@ public function getNameServers() class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection { + protected $collection_key = 'managedZones'; public $kind; protected $managedZonesType = 'Google_Service_Dns_ManagedZone'; protected $managedZonesDataType = 'array'; @@ -854,6 +858,7 @@ public function getTotalRrdataSizePerChange() class Google_Service_Dns_ResourceRecordSet extends Google_Collection { + protected $collection_key = 'rrdatas'; public $kind; public $name; public $rrdatas; @@ -913,6 +918,7 @@ public function getType() class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection { + protected $collection_key = 'rrsets'; public $kind; public $nextPageToken; protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; From a9156eeb9a8f829f23d6bca2d62033f2d8483ea9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:18 -0700 Subject: [PATCH 0143/1274] Updated Reseller.php --- src/Google/Service/Reseller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 8fb776bfa..497b3cd63 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -1065,6 +1065,7 @@ public function getTrialEndTime() class Google_Service_Reseller_Subscriptions extends Google_Collection { + protected $collection_key = 'subscriptions'; public $kind; public $nextPageToken; protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; From 2d22139b11e931ea2f281677b73d5073c0af6e93 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:19 -0700 Subject: [PATCH 0144/1274] Updated Games.php --- src/Google/Service/Games.php | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 312825d8a..fe72291ad 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -2430,6 +2430,7 @@ public function getUnlockedIconUrl() class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_AchievementDefinition'; protected $itemsDataType = 'array'; public $kind; @@ -2594,6 +2595,7 @@ public function getNewlyUnlocked() class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection { + protected $collection_key = 'updates'; public $kind; protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; protected $updatesDataType = 'array'; @@ -2621,6 +2623,7 @@ public function getUpdates() class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection { + protected $collection_key = 'updatedAchievements'; public $kind; protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; protected $updatedAchievementsDataType = 'array'; @@ -2875,6 +2878,7 @@ public function getKind() class Google_Service_Games_Application extends Google_Collection { + protected $collection_key = 'instances'; public $achievementCount; protected $assetsType = 'Google_Service_Games_ImageAsset'; protected $assetsDataType = 'array'; @@ -3088,6 +3092,7 @@ public function getKind() class Google_Service_Games_CategoryListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Category'; protected $itemsDataType = 'array'; public $kind; @@ -3190,6 +3195,7 @@ public function getKind() class Google_Service_Games_EventDefinition extends Google_Collection { + protected $collection_key = 'childEvents'; protected $childEventsType = 'Google_Service_Games_EventChild'; protected $childEventsDataType = 'array'; public $description; @@ -3283,6 +3289,7 @@ public function getVisibility() class Google_Service_Games_EventDefinitionListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_EventDefinition'; protected $itemsDataType = 'array'; public $kind; @@ -3358,6 +3365,7 @@ public function getPeriodStartMillis() class Google_Service_Games_EventPeriodUpdate extends Google_Collection { + protected $collection_key = 'updates'; public $kind; protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; protected $timePeriodDataType = ''; @@ -3434,6 +3442,7 @@ public function getKind() class Google_Service_Games_EventRecordRequest extends Google_Collection { + protected $collection_key = 'timePeriods'; public $currentTimeMillis; public $kind; public $requestId; @@ -3520,6 +3529,7 @@ public function getUpdateCount() class Google_Service_Games_EventUpdateResponse extends Google_Collection { + protected $collection_key = 'playerEvents'; protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; protected $batchFailuresDataType = 'array'; protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; @@ -4139,6 +4149,7 @@ public function getWriteTimestampMillis() class Google_Service_Games_LeaderboardListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Leaderboard'; protected $itemsDataType = 'array'; public $kind; @@ -4236,6 +4247,7 @@ public function getRank() class Google_Service_Games_LeaderboardScores extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; protected $itemsDataType = 'array'; public $kind; @@ -4308,6 +4320,7 @@ public function getPrevPageToken() class Google_Service_Games_MetagameConfig extends Google_Collection { + protected $collection_key = 'playerLevels'; public $currentVersion; public $kind; protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; @@ -4844,6 +4857,7 @@ public function getLastUpdatedTimestamp() class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_PlayerAchievement'; protected $itemsDataType = 'array'; public $kind; @@ -4941,6 +4955,7 @@ public function getPlayerId() class Google_Service_Games_PlayerEventListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_PlayerEvent'; protected $itemsDataType = 'array'; public $kind; @@ -5145,6 +5160,7 @@ public function getWriteTimestamp() class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; protected $itemsDataType = 'array'; public $kind; @@ -5243,6 +5259,7 @@ public function getMinExperiencePoints() class Google_Service_Games_PlayerListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Player'; protected $itemsDataType = 'array'; public $kind; @@ -5366,6 +5383,7 @@ public function getTimeSpan() class Google_Service_Games_PlayerScoreListResponse extends Google_Collection { + protected $collection_key = 'submittedScores'; public $kind; protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; protected $submittedScoresDataType = 'array'; @@ -5393,6 +5411,7 @@ public function getSubmittedScores() class Google_Service_Games_PlayerScoreResponse extends Google_Collection { + protected $collection_key = 'unbeatenScores'; public $beatenScoreTimeSpans; public $formattedScore; public $kind; @@ -5464,6 +5483,7 @@ public function getUnbeatenScores() class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection { + protected $collection_key = 'scores'; public $kind; protected $scoresType = 'Google_Service_Games_ScoreSubmission'; protected $scoresDataType = 'array'; @@ -5593,6 +5613,7 @@ public function getApnsEnvironment() class Google_Service_Games_Quest extends Google_Collection { + protected $collection_key = 'milestones'; public $acceptedTimestampMillis; public $applicationId; public $bannerUrl; @@ -5873,6 +5894,7 @@ public function getKind() class Google_Service_Games_QuestListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Quest'; protected $itemsDataType = 'array'; public $kind; @@ -5911,6 +5933,7 @@ public function getNextPageToken() class Google_Service_Games_QuestMilestone extends Google_Collection { + protected $collection_key = 'criteria'; public $completionRewardData; protected $criteriaType = 'Google_Service_Games_QuestCriterion'; protected $criteriaDataType = 'array'; @@ -6008,6 +6031,7 @@ public function getRevisionStatus() class Google_Service_Games_Room extends Google_Collection { + protected $collection_key = 'participants'; public $applicationId; protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; @@ -6260,6 +6284,7 @@ public function getXmppAddress() class Google_Service_Games_RoomCreateRequest extends Google_Collection { + protected $collection_key = 'invitedPlayerIds'; protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; public $capabilities; @@ -6355,6 +6380,7 @@ public function getVariant() class Google_Service_Games_RoomJoinRequest extends Google_Collection { + protected $collection_key = 'capabilities'; public $capabilities; protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; protected $clientAddressDataType = ''; @@ -6405,6 +6431,7 @@ public function getNetworkDiagnostics() class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection { + protected $collection_key = 'peerSession'; public $androidNetworkSubtype; public $androidNetworkType; public $iosNetworkType; @@ -6536,6 +6563,7 @@ public function getReason() class Google_Service_Games_RoomList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Room'; protected $itemsDataType = 'array'; public $kind; @@ -6692,6 +6720,7 @@ public function getUnreliableRoundtripLatencyMillis() class Google_Service_Games_RoomP2PStatuses extends Google_Collection { + protected $collection_key = 'updates'; public $kind; protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; protected $updatesDataType = 'array'; @@ -6719,6 +6748,7 @@ public function getUpdates() class Google_Service_Games_RoomParticipant extends Google_Collection { + protected $collection_key = 'capabilities'; public $autoMatched; protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; protected $autoMatchedPlayerDataType = ''; @@ -6836,6 +6866,7 @@ public function getStatus() class Google_Service_Games_RoomStatus extends Google_Collection { + protected $collection_key = 'participants'; protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; protected $autoMatchingStatusDataType = ''; public $kind; @@ -7141,6 +7172,7 @@ public function getWidth() class Google_Service_Games_SnapshotListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_Snapshot'; protected $itemsDataType = 'array'; public $kind; @@ -7227,6 +7259,7 @@ public function getMinAutoMatchingPlayers() class Google_Service_Games_TurnBasedMatch extends Google_Collection { + protected $collection_key = 'results'; public $applicationId; protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; @@ -7458,6 +7491,7 @@ public function getWithParticipantId() class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection { + protected $collection_key = 'invitedPlayerIds'; protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; public $invitedPlayerIds; @@ -7581,6 +7615,7 @@ public function getKind() class Google_Service_Games_TurnBasedMatchList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; protected $itemsDataType = 'array'; public $kind; @@ -7767,6 +7802,7 @@ public function getRematch() class Google_Service_Games_TurnBasedMatchResults extends Google_Collection { + protected $collection_key = 'results'; protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; protected $dataDataType = ''; public $kind; @@ -7817,6 +7853,7 @@ public function getResults() class Google_Service_Games_TurnBasedMatchSync extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; protected $itemsDataType = 'array'; public $kind; @@ -7866,6 +7903,7 @@ public function getNextPageToken() class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection { + protected $collection_key = 'results'; protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; protected $dataDataType = ''; public $kind; From 7e8e8c2c38df3092abcd59f4f6bf277988004ff7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:20 -0700 Subject: [PATCH 0145/1274] Updated Replicapool.php --- src/Google/Service/Replicapool.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 4922ffb6e..db10e980b 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -580,6 +580,7 @@ public function getType() class Google_Service_Replicapool_Action extends Google_Collection { + protected $collection_key = 'envVariables'; public $commands; protected $envVariablesType = 'Google_Service_Replicapool_EnvVariable'; protected $envVariablesDataType = 'array'; @@ -837,6 +838,7 @@ public function getValue() class Google_Service_Replicapool_Metadata extends Google_Collection { + protected $collection_key = 'items'; public $fingerPrint; protected $itemsType = 'Google_Service_Replicapool_MetadataItem'; protected $itemsDataType = 'array'; @@ -890,6 +892,7 @@ public function getValue() class Google_Service_Replicapool_NetworkInterface extends Google_Collection { + protected $collection_key = 'accessConfigs'; protected $accessConfigsType = 'Google_Service_Replicapool_AccessConfig'; protected $accessConfigsDataType = 'array'; public $network; @@ -1004,6 +1007,7 @@ public function getSourceImage() class Google_Service_Replicapool_Pool extends Google_Collection { + protected $collection_key = 'targetPools'; public $autoRestart; public $baseInstanceName; public $currentNumReplicas; @@ -1176,6 +1180,7 @@ public function getType() class Google_Service_Replicapool_PoolsDeleteRequest extends Google_Collection { + protected $collection_key = 'abandonInstances'; public $abandonInstances; public function setAbandonInstances($abandonInstances) @@ -1191,6 +1196,7 @@ public function getAbandonInstances() class Google_Service_Replicapool_PoolsListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $nextPageToken; protected $resourcesType = 'Google_Service_Replicapool_Pool'; protected $resourcesDataType = 'array'; @@ -1330,6 +1336,7 @@ public function getAbandonInstance() class Google_Service_Replicapool_ReplicasListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $nextPageToken; protected $resourcesType = 'Google_Service_Replicapool_Replica'; protected $resourcesDataType = 'array'; @@ -1357,6 +1364,7 @@ public function getResources() class Google_Service_Replicapool_ServiceAccount extends Google_Collection { + protected $collection_key = 'scopes'; public $email; public $scopes; @@ -1383,6 +1391,7 @@ public function getScopes() class Google_Service_Replicapool_Tag extends Google_Collection { + protected $collection_key = 'items'; public $fingerPrint; public $items; @@ -1409,6 +1418,7 @@ public function getItems() class Google_Service_Replicapool_Template extends Google_Collection { + protected $collection_key = 'healthChecks'; protected $actionType = 'Google_Service_Replicapool_Action'; protected $actionDataType = ''; protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; @@ -1460,6 +1470,7 @@ public function getVmParams() class Google_Service_Replicapool_VmParams extends Google_Collection { + protected $collection_key = 'serviceAccounts'; public $baseInstanceName; public $canIpForward; public $description; From 4064ae5b1eeb1470fe1441974f7bf180ceef9766 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:21 -0700 Subject: [PATCH 0146/1274] Updated AppState.php --- src/Google/Service/AppState.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index fa5311abc..3a79673da 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -274,6 +274,7 @@ public function getStateKey() class Google_Service_AppState_ListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AppState_GetResponse'; protected $itemsDataType = 'array'; public $kind; From ff5a702e7e9b52af480d39bd75190c7a4f2f04b4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:21 -0700 Subject: [PATCH 0147/1274] Updated Drive.php --- src/Google/Service/Drive.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index a922fd52e..a6bf70395 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -2537,6 +2537,7 @@ public function update($fileId, $revisionId, Google_Service_Drive_Revision $post class Google_Service_Drive_About extends Google_Collection { + protected $collection_key = 'quotaBytesByService'; protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; protected $additionalRoleInfoDataType = 'array'; public $domainSharingPolicy; @@ -2801,6 +2802,7 @@ public function getUser() class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection { + protected $collection_key = 'roleSets'; protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; protected $roleSetsDataType = 'array'; public $type; @@ -2828,6 +2830,7 @@ public function getType() class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection { + protected $collection_key = 'additionalRoles'; public $additionalRoles; public $primaryRole; @@ -2854,6 +2857,7 @@ public function getPrimaryRole() class Google_Service_Drive_AboutExportFormats extends Google_Collection { + protected $collection_key = 'targets'; public $source; public $targets; @@ -2906,6 +2910,7 @@ public function getFeatureRate() class Google_Service_Drive_AboutImportFormats extends Google_Collection { + protected $collection_key = 'targets'; public $source; public $targets; @@ -2984,6 +2989,7 @@ public function getServiceName() class Google_Service_Drive_App extends Google_Collection { + protected $collection_key = 'secondaryMimeTypes'; public $authorized; public $createInFolderTemplate; public $createUrl; @@ -3290,6 +3296,7 @@ public function getSize() class Google_Service_Drive_AppList extends Google_Collection { + protected $collection_key = 'items'; public $defaultAppIds; public $etag; protected $itemsType = 'Google_Service_Drive_App'; @@ -3432,6 +3439,7 @@ public function getSelfLink() class Google_Service_Drive_ChangeList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_Change'; protected $itemsDataType = 'array'; @@ -3633,6 +3641,7 @@ class Google_Service_Drive_ChannelParams extends Google_Model class Google_Service_Drive_ChildList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_ChildReference'; protected $itemsDataType = 'array'; @@ -3752,6 +3761,7 @@ public function getSelfLink() class Google_Service_Drive_Comment extends Google_Collection { + protected $collection_key = 'replies'; public $anchor; protected $authorType = 'Google_Service_Drive_User'; protected $authorDataType = ''; @@ -3950,6 +3960,7 @@ public function getValue() class Google_Service_Drive_CommentList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Drive_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -4114,6 +4125,7 @@ public function getVerb() class Google_Service_Drive_CommentReplyList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Drive_CommentReply'; protected $itemsDataType = 'array'; public $kind; @@ -4174,6 +4186,7 @@ public function getSelfLink() class Google_Service_Drive_DriveFile extends Google_Collection { + protected $collection_key = 'properties'; public $alternateLink; public $appDataContents; public $copyable; @@ -5111,6 +5124,7 @@ public function getMimeType() class Google_Service_Drive_FileList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_DriveFile'; protected $itemsDataType = 'array'; @@ -5182,6 +5196,7 @@ public function getSelfLink() class Google_Service_Drive_ParentList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_ParentReference'; protected $itemsDataType = 'array'; @@ -5290,6 +5305,7 @@ public function getSelfLink() class Google_Service_Drive_Permission extends Google_Collection { + protected $collection_key = 'additionalRoles'; public $additionalRoles; public $authKey; public $domain; @@ -5474,6 +5490,7 @@ public function getKind() class Google_Service_Drive_PermissionList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_Permission'; protected $itemsDataType = 'array'; @@ -5593,6 +5610,7 @@ public function getVisibility() class Google_Service_Drive_PropertyList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_Property'; protected $itemsDataType = 'array'; @@ -5850,6 +5868,7 @@ class Google_Service_Drive_RevisionExportLinks extends Google_Model class Google_Service_Drive_RevisionList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Drive_Revision'; protected $itemsDataType = 'array'; From 314ff089d218c69e74c527796f08f7817ee3f0b8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:22 -0700 Subject: [PATCH 0148/1274] Updated SQLAdmin.php --- src/Google/Service/SQLAdmin.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 8b697daa4..ac006eba1 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -1190,6 +1190,7 @@ public function getStatus() class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; protected $itemsDataType = 'array'; public $kind; @@ -1340,6 +1341,7 @@ public function getValue() class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { + protected $collection_key = 'replicaNames'; public $currentDiskSize; public $databaseVersion; public $etag; @@ -1512,6 +1514,7 @@ public function getState() class Google_Service_SQLAdmin_ExportContext extends Google_Collection { + protected $collection_key = 'table'; public $database; public $kind; public $table; @@ -1560,6 +1563,7 @@ public function getUri() class Google_Service_SQLAdmin_Flag extends Google_Collection { + protected $collection_key = 'appliesTo'; public $allowedStringValues; public $appliesTo; public $kind; @@ -1641,6 +1645,7 @@ public function getType() class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_Flag'; protected $itemsDataType = 'array'; public $kind; @@ -1668,6 +1673,7 @@ public function getKind() class Google_Service_SQLAdmin_ImportContext extends Google_Collection { + protected $collection_key = 'uri'; public $database; public $kind; public $uri; @@ -1705,6 +1711,7 @@ public function getUri() class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection { + protected $collection_key = 'error'; public $endTime; public $enqueuedTime; protected $errorType = 'Google_Service_SQLAdmin_OperationError'; @@ -2038,6 +2045,7 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; protected $itemsDataType = 'array'; public $kind; @@ -2232,6 +2240,7 @@ public function getOperation() class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { + protected $collection_key = 'authorizedNetworks'; public $authorizedNetworks; public $enabled; public $requireSsl; @@ -2358,6 +2367,7 @@ public function getKind() class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; protected $itemsDataType = 'array'; public $kind; @@ -2422,6 +2432,7 @@ public function getPassword() class Google_Service_SQLAdmin_Settings extends Google_Collection { + protected $collection_key = 'databaseFlags'; public $activationPolicy; public $authorizedGaeApplications; protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; @@ -2761,6 +2772,7 @@ public function getServerCaCert() class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; protected $itemsDataType = 'array'; public $kind; @@ -2788,6 +2800,7 @@ public function getKind() class Google_Service_SQLAdmin_Tier extends Google_Collection { + protected $collection_key = 'region'; public $diskQuota; public $rAM; public $kind; @@ -2847,6 +2860,7 @@ public function getTier() class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SQLAdmin_Tier'; protected $itemsDataType = 'array'; public $kind; From d3861b675f3a56fa4afcf4d92ad3907c8766d657 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:23 -0700 Subject: [PATCH 0149/1274] Updated Dfareporting.php --- src/Google/Service/Dfareporting.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index c1ea1160c..2e1ee2b08 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -729,6 +729,7 @@ public function listUserProfiles($optParams = array()) class Google_Service_Dfareporting_Activities extends Google_Collection { + protected $collection_key = 'metricNames'; protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; protected $filtersDataType = 'array'; public $kind; @@ -842,6 +843,7 @@ public function getReportCompatibleFields() class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection { + protected $collection_key = 'overlapMetrics'; protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; protected $breakdownDataType = 'array'; protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; @@ -905,6 +907,7 @@ public function getOverlapMetrics() class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection { + protected $collection_key = 'filteredEventIds'; protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; protected $filteredEventIdsDataType = 'array'; public $kind; @@ -1255,6 +1258,7 @@ public function getValue() class Google_Service_Dfareporting_DimensionValueList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; protected $itemsDataType = 'array'; @@ -1304,6 +1308,7 @@ public function getNextPageToken() class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection { + protected $collection_key = 'filters'; public $dimensionName; public $endDate; protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; @@ -1364,6 +1369,7 @@ public function getStartDate() class Google_Service_Dfareporting_FileList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; protected $itemsDataType = 'array'; @@ -1413,6 +1419,7 @@ public function getNextPageToken() class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection { + protected $collection_key = 'metrics'; protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -1490,6 +1497,7 @@ public function getName() class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection { + protected $collection_key = 'perInteractionDimensions'; protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; protected $conversionDimensionsDataType = 'array'; protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; @@ -1553,6 +1561,7 @@ public function getPerInteractionDimensions() class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection { + protected $collection_key = 'reachByFrequencyMetrics'; protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -1886,6 +1895,7 @@ public function getType() class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection { + protected $collection_key = 'metricNames'; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; protected $dateRangeDataType = ''; protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; @@ -1937,6 +1947,7 @@ public function getMetricNames() class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection { + protected $collection_key = 'pivotedActivityMetrics'; protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -2000,6 +2011,7 @@ public function getPivotedActivityMetrics() class Google_Service_Dfareporting_ReportCriteria extends Google_Collection { + protected $collection_key = 'metricNames'; protected $activitiesType = 'Google_Service_Dfareporting_Activities'; protected $activitiesDataType = ''; protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; @@ -2075,6 +2087,7 @@ public function getMetricNames() class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection { + protected $collection_key = 'overlapMetricNames'; protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; protected $breakdownDataType = 'array'; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; @@ -2159,6 +2172,7 @@ public function getPivoted() class Google_Service_Dfareporting_ReportDelivery extends Google_Collection { + protected $collection_key = 'recipients'; public $emailOwner; public $emailOwnerDeliveryType; public $message; @@ -2208,6 +2222,7 @@ public function getRecipients() class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection { + protected $collection_key = 'metricNames'; protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; protected $customRichMediaEventsDataType = 'array'; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; @@ -2332,6 +2347,7 @@ public function getIncludeUnattributedIPConversions() class Google_Service_Dfareporting_ReportList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Dfareporting_Report'; protected $itemsDataType = 'array'; @@ -2381,6 +2397,7 @@ public function getNextPageToken() class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection { + protected $collection_key = 'perInteractionDimensions'; protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; protected $activityFiltersDataType = 'array'; protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; @@ -2595,6 +2612,7 @@ public function getPivotOnInteractionPath() class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection { + protected $collection_key = 'reachByFrequencyMetricNames'; protected $activitiesType = 'Google_Service_Dfareporting_Activities'; protected $activitiesDataType = ''; protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; @@ -2681,6 +2699,7 @@ public function getReachByFrequencyMetricNames() class Google_Service_Dfareporting_ReportSchedule extends Google_Collection { + protected $collection_key = 'repeatsOnWeekDays'; public $active; public $every; public $expirationDate; @@ -2891,6 +2910,7 @@ public function getUserName() class Google_Service_Dfareporting_UserProfileList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; protected $itemsDataType = 'array'; From fc7b73bfeff383c44ccee30a746675737c8afe89 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:24 -0700 Subject: [PATCH 0150/1274] Updated Coordinate.php --- src/Google/Service/Coordinate.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index 285da1f92..f985caffa 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -884,6 +884,7 @@ public function getType() class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; protected $itemsDataType = 'array'; public $kind; @@ -911,6 +912,7 @@ public function getKind() class Google_Service_Coordinate_CustomFields extends Google_Collection { + protected $collection_key = 'customField'; protected $customFieldType = 'Google_Service_Coordinate_CustomField'; protected $customFieldDataType = 'array'; public $kind; @@ -938,6 +940,7 @@ public function getKind() class Google_Service_Coordinate_Job extends Google_Collection { + protected $collection_key = 'jobChange'; public $id; protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; protected $jobChangeDataType = 'array'; @@ -1026,6 +1029,7 @@ public function getTimestamp() class Google_Service_Coordinate_JobListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Coordinate_Job'; protected $itemsDataType = 'array'; public $kind; @@ -1064,6 +1068,7 @@ public function getNextPageToken() class Google_Service_Coordinate_JobState extends Google_Collection { + protected $collection_key = 'note'; public $assignee; protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; protected $customFieldsDataType = ''; @@ -1169,6 +1174,7 @@ public function getTitle() class Google_Service_Coordinate_Location extends Google_Collection { + protected $collection_key = 'addressLine'; public $addressLine; public $kind; public $lat; @@ -1217,6 +1223,7 @@ public function getLng() class Google_Service_Coordinate_LocationListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; protected $itemsDataType = 'array'; public $kind; @@ -1448,6 +1455,7 @@ public function getKind() class Google_Service_Coordinate_WorkerListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Coordinate_Worker'; protected $itemsDataType = 'array'; public $kind; From 66df9eaf4bb2ec831b27ed85f9bb799652b372f6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:24 -0700 Subject: [PATCH 0151/1274] Updated Translate.php --- src/Google/Service/Translate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index a1c055611..c2afb37c7 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -231,6 +231,7 @@ public function listTranslations($q, $target, $optParams = array()) class Google_Service_Translate_DetectionsListResponse extends Google_Collection { + protected $collection_key = 'detections'; protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; protected $detectionsDataType = 'array'; @@ -284,6 +285,7 @@ public function getLanguage() class Google_Service_Translate_LanguagesListResponse extends Google_Collection { + protected $collection_key = 'languages'; protected $languagesType = 'Google_Service_Translate_LanguagesResource'; protected $languagesDataType = 'array'; @@ -326,6 +328,7 @@ public function getName() class Google_Service_Translate_TranslationsListResponse extends Google_Collection { + protected $collection_key = 'translations'; protected $translationsType = 'Google_Service_Translate_TranslationsResource'; protected $translationsDataType = 'array'; From 48c3c613ec77da3c4dc7244deb864236bfcf9f8b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:25 -0700 Subject: [PATCH 0152/1274] Updated Licensing.php --- src/Google/Service/Licensing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 81b13ba43..900557f06 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -451,6 +451,7 @@ public function getUserId() class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Licensing_LicenseAssignment'; protected $itemsDataType = 'array'; From 625f699a88d594f13174e633994dd3a4689a976a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:25 -0700 Subject: [PATCH 0153/1274] Updated Directory.php --- src/Google/Service/Directory.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 53a739305..1091b0094 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2427,6 +2427,7 @@ public function getPrimaryEmail() class Google_Service_Directory_Aliases extends Google_Collection { + protected $collection_key = 'aliases'; protected $aliasesType = 'Google_Service_Directory_Alias'; protected $aliasesDataType = 'array'; public $etag; @@ -2546,6 +2547,7 @@ public function getUserKey() class Google_Service_Directory_Asps extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Directory_Asp'; protected $itemsDataType = 'array'; @@ -2703,6 +2705,7 @@ class Google_Service_Directory_ChannelParams extends Google_Model class Google_Service_Directory_ChromeOsDevice extends Google_Collection { + protected $collection_key = 'recentUsers'; public $annotatedLocation; public $annotatedUser; public $bootMode; @@ -2987,6 +2990,7 @@ public function getType() class Google_Service_Directory_ChromeOsDevices extends Google_Collection { + protected $collection_key = 'chromeosdevices'; protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; protected $chromeosdevicesDataType = 'array'; public $etag; @@ -3036,6 +3040,7 @@ public function getNextPageToken() class Google_Service_Directory_Group extends Google_Collection { + protected $collection_key = 'nonEditableAliases'; public $adminCreated; public $aliases; public $description; @@ -3150,6 +3155,7 @@ public function getNonEditableAliases() class Google_Service_Directory_Groups extends Google_Collection { + protected $collection_key = 'groups'; public $etag; protected $groupsType = 'Google_Service_Directory_Group'; protected $groupsDataType = 'array'; @@ -3269,6 +3275,7 @@ public function getType() class Google_Service_Directory_Members extends Google_Collection { + protected $collection_key = 'members'; public $etag; public $kind; protected $membersType = 'Google_Service_Directory_Member'; @@ -3318,6 +3325,7 @@ public function getNextPageToken() class Google_Service_Directory_MobileDevice extends Google_Collection { + protected $collection_key = 'name'; protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; protected $applicationsDataType = 'array'; public $basebandVersion; @@ -3624,6 +3632,7 @@ public function getAction() class Google_Service_Directory_MobileDeviceApplications extends Google_Collection { + protected $collection_key = 'permission'; public $displayName; public $packageName; public $permission; @@ -3683,6 +3692,7 @@ public function getVersionName() class Google_Service_Directory_MobileDevices extends Google_Collection { + protected $collection_key = 'mobiledevices'; public $etag; public $kind; protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; @@ -3824,6 +3834,7 @@ public function getSubject() class Google_Service_Directory_Notifications extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Directory_Notification'; protected $itemsDataType = 'array'; @@ -3965,6 +3976,7 @@ public function getParentOrgUnitPath() class Google_Service_Directory_OrgUnits extends Google_Collection { + protected $collection_key = 'organizationUnits'; public $etag; public $kind; protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; @@ -4003,6 +4015,7 @@ public function getOrganizationUnits() class Google_Service_Directory_Token extends Google_Collection { + protected $collection_key = 'scopes'; public $anonymous; public $clientId; public $displayText; @@ -4095,6 +4108,7 @@ public function getUserKey() class Google_Service_Directory_Tokens extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Directory_Token'; protected $itemsDataType = 'array'; @@ -4133,6 +4147,7 @@ public function getKind() class Google_Service_Directory_User extends Google_Collection { + protected $collection_key = 'nonEditableAliases'; public $addresses; public $agreedToTerms; public $aliases; @@ -5150,6 +5165,7 @@ public function getOrgUnitPath() class Google_Service_Directory_Users extends Google_Collection { + protected $collection_key = 'users'; public $etag; public $kind; public $nextPageToken; @@ -5258,6 +5274,7 @@ public function getVerificationCode() class Google_Service_Directory_VerificationCodes extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Directory_VerificationCode'; protected $itemsDataType = 'array'; From 28f828ddd16e4deb810a9bd5b73aed1639ac279d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:26 -0700 Subject: [PATCH 0154/1274] Updated Resourceviews.php --- src/Google/Service/Resourceviews.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index e3d8d1cbd..29076f2a4 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -703,6 +703,7 @@ public function getValue() class Google_Service_Resourceviews_RegionViewsAddResourcesRequest extends Google_Collection { + protected $collection_key = 'resources'; public $resources; public function setResources($resources) @@ -734,6 +735,7 @@ public function getResource() class Google_Service_Resourceviews_RegionViewsListResourcesResponse extends Google_Collection { + protected $collection_key = 'members'; public $members; public $nextPageToken; @@ -760,6 +762,7 @@ public function getNextPageToken() class Google_Service_Resourceviews_RegionViewsListResponse extends Google_Collection { + protected $collection_key = 'resourceViews'; public $nextPageToken; protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; protected $resourceViewsDataType = 'array'; @@ -787,6 +790,7 @@ public function getResourceViews() class Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends Google_Collection { + protected $collection_key = 'resources'; public $resources; public function setResources($resources) @@ -802,6 +806,7 @@ public function getResources() class Google_Service_Resourceviews_ResourceView extends Google_Collection { + protected $collection_key = 'members'; public $creationTime; public $description; public $id; @@ -917,6 +922,7 @@ public function getSelfLink() class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection { + protected $collection_key = 'resources'; public $resources; public function setResources($resources) @@ -948,6 +954,7 @@ public function getResource() class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection { + protected $collection_key = 'members'; public $members; public $nextPageToken; @@ -974,6 +981,7 @@ public function getNextPageToken() class Google_Service_Resourceviews_ZoneViewsListResponse extends Google_Collection { + protected $collection_key = 'resourceViews'; public $nextPageToken; protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; protected $resourceViewsDataType = 'array'; @@ -1001,6 +1009,7 @@ public function getResourceViews() class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection { + protected $collection_key = 'resources'; public $resources; public function setResources($resources) From 0eb88f1b5f12fa4f0ab98a9745840a49d83610d4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:27 -0700 Subject: [PATCH 0155/1274] Updated Analytics.php --- src/Google/Service/Analytics.php | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 45c3380a7..470cb2a21 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -3773,6 +3773,7 @@ public function getType() class Google_Service_Analytics_AccountPermissions extends Google_Collection { + protected $collection_key = 'effective'; public $effective; public function setEffective($effective) @@ -3836,6 +3837,7 @@ public function getName() class Google_Service_Analytics_AccountSummaries extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_AccountSummary'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -3929,6 +3931,7 @@ public function getUsername() class Google_Service_Analytics_AccountSummary extends Google_Collection { + protected $collection_key = 'webProperties'; public $id; public $kind; public $name; @@ -4051,6 +4054,7 @@ public function getWebproperty() class Google_Service_Analytics_Accounts extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Account'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4181,6 +4185,7 @@ public function getKind() class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection { + protected $collection_key = 'customDataImportUids'; public $customDataImportUids; public function setCustomDataImportUids($customDataImportUids) @@ -4238,6 +4243,7 @@ class Google_Service_Analytics_ColumnAttributes extends Google_Model class Google_Service_Analytics_Columns extends Google_Collection { + protected $collection_key = 'items'; public $attributeNames; public $etag; protected $itemsType = 'Google_Service_Analytics_Column'; @@ -4298,6 +4304,7 @@ public function getTotalResults() class Google_Service_Analytics_CustomDataSource extends Google_Collection { + protected $collection_key = 'profilesLinked'; public $accountId; protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink'; protected $childLinkDataType = ''; @@ -4521,6 +4528,7 @@ public function getType() class Google_Service_Analytics_CustomDataSources extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_CustomDataSource'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4614,6 +4622,7 @@ public function getUsername() class Google_Service_Analytics_DailyUpload extends Google_Collection { + protected $collection_key = 'recentChanges'; public $accountId; public $appendCount; public $createdTime; @@ -4874,6 +4883,7 @@ public function getTime() class Google_Service_Analytics_DailyUploads extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_DailyUpload'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4967,6 +4977,7 @@ public function getUsername() class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection { + protected $collection_key = 'profileIds'; protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount'; protected $adWordsAccountsDataType = 'array'; protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity'; @@ -5066,6 +5077,7 @@ public function getWebPropertyRef() class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -5261,6 +5273,7 @@ public function getWebPropertyRef() class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection { + protected $collection_key = 'local'; public $effective; public $local; @@ -5287,6 +5300,7 @@ public function getLocal() class Google_Service_Analytics_EntityUserLinks extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_EntityUserLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -5369,6 +5383,7 @@ public function getTotalResults() class Google_Service_Analytics_Experiment extends Google_Collection { + protected $collection_key = 'variations'; public $accountId; public $created; public $description; @@ -5768,6 +5783,7 @@ public function getWon() class Google_Service_Analytics_Experiments extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Experiment'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -6373,6 +6389,7 @@ public function getField() class Google_Service_Analytics_Filters extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Filter'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -6466,6 +6483,7 @@ public function getUsername() class Google_Service_Analytics_GaData extends Google_Collection { + protected $collection_key = 'rows'; protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $containsSampledData; @@ -6687,6 +6705,7 @@ public function getName() class Google_Service_Analytics_GaDataDataTable extends Google_Collection { + protected $collection_key = 'rows'; protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols'; protected $colsDataType = 'array'; protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; @@ -6752,6 +6771,7 @@ public function getType() class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection { + protected $collection_key = 'c'; protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; protected $cDataType = 'array'; @@ -6853,6 +6873,7 @@ public function getWebPropertyId() class Google_Service_Analytics_GaDataQuery extends Google_Collection { + protected $collection_key = 'sort'; public $dimensions; public $endDate; public $filters; @@ -7190,6 +7211,7 @@ public function getWebPropertyId() class Google_Service_Analytics_GoalEventDetails extends Google_Collection { + protected $collection_key = 'eventConditions'; protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions'; protected $eventConditionsDataType = 'array'; public $useEventValue; @@ -7302,6 +7324,7 @@ public function getType() class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection { + protected $collection_key = 'steps'; public $caseSensitive; public $firstStepRequired; public $matchType; @@ -7451,6 +7474,7 @@ public function getComparisonValue() class Google_Service_Analytics_Goals extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Goal'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -7544,6 +7568,7 @@ public function getUsername() class Google_Service_Analytics_McfData extends Google_Collection { + protected $collection_key = 'rows'; protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $containsSampledData; @@ -7824,6 +7849,7 @@ public function getWebPropertyId() class Google_Service_Analytics_McfDataQuery extends Google_Collection { + protected $collection_key = 'sort'; public $dimensions; public $endDate; public $filters; @@ -7949,6 +7975,7 @@ public function getStartIndex() class Google_Service_Analytics_McfDataRows extends Google_Collection { + protected $collection_key = 'conversionPathValue'; protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue'; protected $conversionPathValueDataType = 'array'; public $primitiveValue; @@ -8365,6 +8392,7 @@ public function getSelfLink() class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -8484,6 +8512,7 @@ public function getType() class Google_Service_Analytics_ProfilePermissions extends Google_Collection { + protected $collection_key = 'effective'; public $effective; public function setEffective($effective) @@ -8628,6 +8657,7 @@ public function getType() class Google_Service_Analytics_Profiles extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Profile'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -8721,6 +8751,7 @@ public function getUsername() class Google_Service_Analytics_RealtimeData extends Google_Collection { + protected $collection_key = 'rows'; protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $id; @@ -8934,6 +8965,7 @@ public function getWebPropertyId() class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection { + protected $collection_key = 'sort'; public $dimensions; public $filters; public $ids; @@ -9112,6 +9144,7 @@ public function getUpdated() class Google_Service_Analytics_Segments extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Segment'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9461,6 +9494,7 @@ public function getDocumentId() class Google_Service_Analytics_UnsampledReports extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_UnsampledReport'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9554,6 +9588,7 @@ public function getUsername() class Google_Service_Analytics_Upload extends Google_Collection { + protected $collection_key = 'errors'; public $accountId; public $customDataSourceId; public $errors; @@ -9624,6 +9659,7 @@ public function getStatus() class Google_Service_Analytics_Uploads extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Upload'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9813,6 +9849,7 @@ public function getName() class Google_Service_Analytics_WebPropertySummary extends Google_Collection { + protected $collection_key = 'profiles'; public $id; public $internalWebPropertyId; public $kind; @@ -9895,6 +9932,7 @@ public function getWebsiteUrl() class Google_Service_Analytics_Webproperties extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Analytics_Webproperty'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -10223,6 +10261,7 @@ public function getType() class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection { + protected $collection_key = 'effective'; public $effective; public function setEffective($effective) From f9e8312b6030fb8183bf2aaf391fd66ee0dd3e78 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:28 -0700 Subject: [PATCH 0156/1274] Updated Manager.php --- src/Google/Service/Manager.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 5085e8cfe..9dd88fb04 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -430,6 +430,7 @@ public function getType() class Google_Service_Manager_Action extends Google_Collection { + protected $collection_key = 'commands'; public $commands; public $timeoutMs; @@ -456,6 +457,7 @@ public function getTimeoutMs() class Google_Service_Manager_AllowedRule extends Google_Collection { + protected $collection_key = 'ports'; public $iPProtocol; public $ports; @@ -604,6 +606,7 @@ public function getStatus() class Google_Service_Manager_Deployment extends Google_Collection { + protected $collection_key = 'overrides'; public $creationDate; public $description; protected $modulesType = 'Google_Service_Manager_ModuleStatus'; @@ -693,6 +696,7 @@ class Google_Service_Manager_DeploymentModules extends Google_Model class Google_Service_Manager_DeploymentsListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $nextPageToken; protected $resourcesType = 'Google_Service_Manager_Deployment'; protected $resourcesDataType = 'array'; @@ -799,6 +803,7 @@ public function getSource() class Google_Service_Manager_FirewallModule extends Google_Collection { + protected $collection_key = 'targetTags'; protected $allowedType = 'Google_Service_Manager_AllowedRule'; protected $allowedDataType = 'array'; public $description; @@ -992,6 +997,7 @@ public function getHealthCheckUrl() class Google_Service_Manager_LbModule extends Google_Collection { + protected $collection_key = 'targetModules'; public $description; public $healthChecks; public $ipAddress; @@ -1099,6 +1105,7 @@ public function getTargetPoolUrl() class Google_Service_Manager_Metadata extends Google_Collection { + protected $collection_key = 'items'; public $fingerPrint; protected $itemsType = 'Google_Service_Manager_MetadataItem'; protected $itemsDataType = 'array'; @@ -1338,6 +1345,7 @@ public function getType() class Google_Service_Manager_NetworkInterface extends Google_Collection { + protected $collection_key = 'accessConfigs'; protected $accessConfigsType = 'Google_Service_Manager_AccessConfig'; protected $accessConfigsDataType = 'array'; public $name; @@ -1541,6 +1549,7 @@ public function getValue() class Google_Service_Manager_ReplicaPoolModule extends Google_Collection { + protected $collection_key = 'healthChecks'; protected $envVariablesType = 'Google_Service_Manager_EnvVariable'; protected $envVariablesDataType = 'map'; public $healthChecks; @@ -1649,6 +1658,7 @@ public function getV1beta1() class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection { + protected $collection_key = 'serviceAccounts'; public $autoRestart; public $baseInstanceName; public $canIpForward; @@ -1813,6 +1823,7 @@ public function getZone() class Google_Service_Manager_ServiceAccount extends Google_Collection { + protected $collection_key = 'scopes'; public $email; public $scopes; @@ -1839,6 +1850,7 @@ public function getScopes() class Google_Service_Manager_Tag extends Google_Collection { + protected $collection_key = 'items'; public $fingerPrint; public $items; @@ -1925,6 +1937,7 @@ class Google_Service_Manager_TemplateModules extends Google_Model class Google_Service_Manager_TemplatesListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $nextPageToken; protected $resourcesType = 'Google_Service_Manager_Template'; protected $resourcesDataType = 'array'; From 11a031caecd756dad3a189d7c0aba281e3873bc1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:28 -0700 Subject: [PATCH 0157/1274] Updated Autoscaler.php --- src/Google/Service/Autoscaler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index 5a31425a1..22e317bd3 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -554,6 +554,7 @@ public function getTarget() class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; protected $itemsDataType = 'array'; public $nextPageToken; @@ -581,6 +582,7 @@ public function getNextPageToken() class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection { + protected $collection_key = 'customMetricUtilizations'; public $coolDownPeriodSec; protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; protected $cpuUtilizationDataType = ''; @@ -710,6 +712,7 @@ public function getUtilizationTarget() class Google_Service_Autoscaler_Operation extends Google_Collection { + protected $collection_key = 'warnings'; public $clientOperationId; public $creationTimestamp; public $endTime; @@ -958,6 +961,7 @@ public function getZone() class Google_Service_Autoscaler_OperationError extends Google_Collection { + protected $collection_key = 'errors'; protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; protected $errorsDataType = 'array'; @@ -1011,6 +1015,7 @@ public function getMessage() class Google_Service_Autoscaler_OperationList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Autoscaler_Operation'; protected $itemsDataType = 'array'; @@ -1071,6 +1076,7 @@ public function getSelfLink() class Google_Service_Autoscaler_OperationWarnings extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; protected $dataDataType = 'array'; From d6d3a587321af0d4eec8b04f1e641e8bf124a29b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:29 -0700 Subject: [PATCH 0158/1274] Updated PlusDomains.php --- src/Google/Service/PlusDomains.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index 3cd3bbef8..815c3d063 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -902,6 +902,7 @@ public function listByCircle($circleId, $optParams = array()) class Google_Service_PlusDomains_Acl extends Google_Collection { + protected $collection_key = 'items'; public $description; public $domainRestricted; protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; @@ -1282,6 +1283,7 @@ public function getGivenName() class Google_Service_PlusDomains_ActivityFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $id; protected $itemsType = 'Google_Service_PlusDomains_Activity'; @@ -1386,6 +1388,7 @@ public function getUpdated() class Google_Service_PlusDomains_ActivityObject extends Google_Collection { + protected $collection_key = 'attachments'; protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor'; protected $actorDataType = ''; protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments'; @@ -1581,6 +1584,7 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection { + protected $collection_key = 'thumbnails'; public $content; public $displayName; protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed'; @@ -2135,6 +2139,7 @@ public function getVisibility() class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_PlusDomains_Audience'; protected $itemsDataType = 'array'; @@ -2277,6 +2282,7 @@ public function getSelfLink() class Google_Service_PlusDomains_CircleFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_PlusDomains_Circle'; protected $itemsDataType = 'array'; @@ -2385,6 +2391,7 @@ public function getTotalItems() class Google_Service_PlusDomains_Comment extends Google_Collection { + protected $collection_key = 'inReplyTo'; protected $actorType = 'Google_Service_PlusDomains_CommentActor'; protected $actorDataType = ''; public $etag; @@ -2578,6 +2585,7 @@ public function getUrl() class Google_Service_PlusDomains_CommentFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $id; protected $itemsType = 'Google_Service_PlusDomains_Comment'; @@ -2749,6 +2757,7 @@ public function getTotalItems() class Google_Service_PlusDomains_Media extends Google_Collection { + protected $collection_key = 'streams'; protected $authorType = 'Google_Service_PlusDomains_MediaAuthor'; protected $authorDataType = ''; public $displayName; @@ -3033,6 +3042,7 @@ public function getTime() class Google_Service_PlusDomains_PeopleFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_PlusDomains_Person'; protected $itemsDataType = 'array'; @@ -3115,6 +3125,7 @@ public function getTotalItems() class Google_Service_PlusDomains_Person extends Google_Collection { + protected $collection_key = 'urls'; public $aboutMe; public $birthday; public $braggingRights; From 9870695c1cc90de736cdf1337fb33a9cf474e413 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:30 -0700 Subject: [PATCH 0159/1274] Updated Reports.php --- src/Google/Service/Reports.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index bf6cdd1f3..51e72247a 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -446,6 +446,7 @@ public function get($userKey, $date, $optParams = array()) class Google_Service_Reports_Activities extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Reports_Activity'; protected $itemsDataType = 'array'; @@ -495,6 +496,7 @@ public function getNextPageToken() class Google_Service_Reports_Activity extends Google_Collection { + protected $collection_key = 'events'; protected $actorType = 'Google_Service_Reports_ActivityActor'; protected $actorDataType = ''; public $etag; @@ -627,6 +629,7 @@ public function getProfileId() class Google_Service_Reports_ActivityEvents extends Google_Collection { + protected $collection_key = 'parameters'; public $name; protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters'; protected $parametersDataType = 'array'; @@ -880,6 +883,7 @@ class Google_Service_Reports_ChannelParams extends Google_Model class Google_Service_Reports_UsageReport extends Google_Collection { + protected $collection_key = 'parameters'; public $date; protected $entityType = 'Google_Service_Reports_UsageReportEntity'; protected $entityDataType = ''; @@ -989,6 +993,7 @@ public function getUserEmail() class Google_Service_Reports_UsageReportParameters extends Google_Collection { + protected $collection_key = 'msgValue'; public $boolValue; public $datetimeValue; public $intValue; @@ -1064,6 +1069,7 @@ class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model class Google_Service_Reports_UsageReports extends Google_Collection { + protected $collection_key = 'warnings'; public $etag; public $kind; public $nextPageToken; @@ -1125,6 +1131,7 @@ public function getWarnings() class Google_Service_Reports_UsageReportsWarnings extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData'; protected $dataDataType = 'array'; From 6e3313ef5006f26048cca685cdf1bbf12b88a718 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:30 -0700 Subject: [PATCH 0160/1274] Updated Pubsub.php --- src/Google/Service/Pubsub.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index 27c49682e..f37f604a3 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -412,6 +412,7 @@ public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optPara class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { + protected $collection_key = 'ackId'; public $ackId; public $subscription; @@ -475,6 +476,7 @@ public function getStrValue() class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { + protected $collection_key = 'subscription'; public $nextPageToken; protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; protected $subscriptionDataType = 'array'; @@ -502,6 +504,7 @@ public function getSubscription() class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { + protected $collection_key = 'topic'; public $nextPageToken; protected $topicType = 'Google_Service_Pubsub_Topic'; protected $topicDataType = 'array'; @@ -669,6 +672,7 @@ public function getTruncated() class Google_Service_Pubsub_PubsubMessage extends Google_Collection { + protected $collection_key = 'label'; public $data; protected $labelType = 'Google_Service_Pubsub_Label'; protected $labelDataType = 'array'; From 2ea3d7b6fe3852addb4d0bda37e2e637e8c4fdab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:31 -0700 Subject: [PATCH 0161/1274] Updated Calendar.php --- src/Google/Service/Calendar.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index adb10426e..f09aa5def 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1900,6 +1900,7 @@ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = ar class Google_Service_Calendar_Acl extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Calendar_AclRule'; protected $itemsDataType = 'array'; @@ -2127,6 +2128,7 @@ public function getTimeZone() class Google_Service_Calendar_CalendarList extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Calendar_CalendarListEntry'; protected $itemsDataType = 'array'; @@ -2187,6 +2189,7 @@ public function getNextSyncToken() class Google_Service_Calendar_CalendarListEntry extends Google_Collection { + protected $collection_key = 'defaultReminders'; public $accessRole; public $backgroundColor; public $colorId; @@ -2391,6 +2394,7 @@ public function getTimeZone() class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection { + protected $collection_key = 'notifications'; protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; protected $notificationsDataType = 'array'; @@ -2664,6 +2668,7 @@ public function getReason() class Google_Service_Calendar_Event extends Google_Collection { + protected $collection_key = 'recurrence'; public $anyoneCanAddSelf; protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; protected $attendeesDataType = 'array'; @@ -3480,6 +3485,7 @@ public function getMinutes() class Google_Service_Calendar_EventReminders extends Google_Collection { + protected $collection_key = 'overrides'; protected $overridesType = 'Google_Service_Calendar_EventReminder'; protected $overridesDataType = 'array'; public $useDefault; @@ -3533,6 +3539,7 @@ public function getUrl() class Google_Service_Calendar_Events extends Google_Collection { + protected $collection_key = 'items'; public $accessRole; protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; protected $defaultRemindersDataType = 'array'; @@ -3660,6 +3667,7 @@ public function getUpdated() class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection { + protected $collection_key = 'errors'; protected $busyType = 'Google_Service_Calendar_TimePeriod'; protected $busyDataType = 'array'; protected $errorsType = 'Google_Service_Calendar_Error'; @@ -3688,6 +3696,7 @@ public function getErrors() class Google_Service_Calendar_FreeBusyGroup extends Google_Collection { + protected $collection_key = 'errors'; public $calendars; protected $errorsType = 'Google_Service_Calendar_Error'; protected $errorsDataType = 'array'; @@ -3715,6 +3724,7 @@ public function getErrors() class Google_Service_Calendar_FreeBusyRequest extends Google_Collection { + protected $collection_key = 'items'; public $calendarExpansionMax; public $groupExpansionMax; protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem'; @@ -3920,6 +3930,7 @@ public function getValue() class Google_Service_Calendar_Settings extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Calendar_Setting'; protected $itemsDataType = 'array'; From 4b8adcd7aacbced31770386c6f0d7c85d29c9c11 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:32 -0700 Subject: [PATCH 0162/1274] Updated Plus.php --- src/Google/Service/Plus.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 2f8721d30..eeafbcecd 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -648,6 +648,7 @@ public function search($query, $optParams = array()) class Google_Service_Plus_Acl extends Google_Collection { + protected $collection_key = 'items'; public $description; protected $itemsType = 'Google_Service_Plus_PlusAclentryResource'; protected $itemsDataType = 'array'; @@ -1017,6 +1018,7 @@ public function getGivenName() class Google_Service_Plus_ActivityFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $id; protected $itemsType = 'Google_Service_Plus_Activity'; @@ -1121,6 +1123,7 @@ public function getUpdated() class Google_Service_Plus_ActivityObject extends Google_Collection { + protected $collection_key = 'attachments'; protected $actorType = 'Google_Service_Plus_ActivityObjectActor'; protected $actorDataType = ''; protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments'; @@ -1304,6 +1307,7 @@ public function getUrl() class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection { + protected $collection_key = 'thumbnails'; public $content; public $displayName; protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed'; @@ -1712,6 +1716,7 @@ public function getTitle() class Google_Service_Plus_Comment extends Google_Collection { + protected $collection_key = 'inReplyTo'; protected $actorType = 'Google_Service_Plus_CommentActor'; protected $actorDataType = ''; public $etag; @@ -1905,6 +1910,7 @@ public function getUrl() class Google_Service_Plus_CommentFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; public $id; protected $itemsType = 'Google_Service_Plus_Comment'; @@ -2076,6 +2082,7 @@ public function getTotalItems() class Google_Service_Plus_ItemScope extends Google_Collection { + protected $collection_key = 'performers'; protected $aboutType = 'Google_Service_Plus_ItemScope'; protected $aboutDataType = ''; public $additionalName; @@ -2784,6 +2791,7 @@ public function getType() class Google_Service_Plus_MomentsFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Plus_Moment'; protected $itemsDataType = 'array'; @@ -2877,6 +2885,7 @@ public function getUpdated() class Google_Service_Plus_PeopleFeed extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Plus_Person'; protected $itemsDataType = 'array'; @@ -2959,6 +2968,7 @@ public function getTotalItems() class Google_Service_Plus_Person extends Google_Collection { + protected $collection_key = 'urls'; public $aboutMe; protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange'; protected $ageRangeDataType = ''; From fdae09afd1b53bb9550940622bb26f4974cc11f6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:32 -0700 Subject: [PATCH 0163/1274] Updated Spectrum.php --- src/Google/Service/Spectrum.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Google/Service/Spectrum.php b/src/Google/Service/Spectrum.php index 21e1005b0..c2fbbdf3b 100644 --- a/src/Google/Service/Spectrum.php +++ b/src/Google/Service/Spectrum.php @@ -256,6 +256,7 @@ public function getUri() class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection { + protected $collection_key = 'databases'; protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; protected $databasesDataType = 'array'; @@ -272,6 +273,7 @@ public function getDatabases() class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection { + protected $collection_key = 'frequencyRanges'; protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; @@ -288,6 +290,7 @@ public function getFrequencyRanges() class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection { + protected $collection_key = 'rulesetIds'; public $etsiEnDeviceCategory; public $etsiEnDeviceEmissionsClass; public $etsiEnDeviceType; @@ -656,6 +659,7 @@ public function getLongitude() class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection { + protected $collection_key = 'exterior'; protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; protected $exteriorDataType = 'array'; @@ -672,6 +676,7 @@ public function getExterior() class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection { + protected $collection_key = 'spectrumSchedules'; protected $locationType = 'Google_Service_Spectrum_GeoLocation'; protected $locationDataType = ''; protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; @@ -700,6 +705,7 @@ public function getSpectrumSchedules() class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection { + protected $collection_key = 'locations'; protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; protected $antennaDataType = ''; protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; @@ -809,6 +815,7 @@ public function getVersion() class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection { + protected $collection_key = 'geoSpectrumSchedules'; protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; @@ -1047,6 +1054,7 @@ public function getVersion() class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection { + protected $collection_key = 'spectrumSchedules'; protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; @@ -1287,6 +1295,7 @@ public function getVersion() class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection { + protected $collection_key = 'spectra'; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescDataType = ''; protected $locationType = 'Google_Service_Spectrum_GeoLocation'; @@ -1509,6 +1518,7 @@ public function getVersion() class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection { + protected $collection_key = 'deviceDescs'; protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescsDataType = 'array'; public $type; @@ -1547,6 +1557,7 @@ public function getVersion() class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection { + protected $collection_key = 'deviceValidities'; protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity'; @@ -1608,6 +1619,7 @@ public function getVersion() class Google_Service_Spectrum_RulesetInfo extends Google_Collection { + protected $collection_key = 'rulesetIds'; public $authority; public $maxLocationChange; public $maxPollingSecs; @@ -1656,6 +1668,7 @@ public function getRulesetIds() class Google_Service_Spectrum_SpectrumMessage extends Google_Collection { + protected $collection_key = 'frequencyRanges'; public $bandwidth; protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; @@ -1683,6 +1696,7 @@ public function getFrequencyRanges() class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection { + protected $collection_key = 'spectra'; protected $eventTimeType = 'Google_Service_Spectrum_EventTime'; protected $eventTimeDataType = ''; protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; From fc4d97c5f361a4cb14c3978685a702a8d24b08d5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:33 -0700 Subject: [PATCH 0164/1274] Updated DoubleClickBidManager.php --- src/Google/Service/DoubleClickBidManager.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 4d340cd16..7485fa0b8 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -292,6 +292,7 @@ public function listreports($queryId, $optParams = array()) class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection { + protected $collection_key = 'filterIds'; public $filterIds; public $filterType; public $format; @@ -370,6 +371,7 @@ public function getValue() class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection { + protected $collection_key = 'queries'; public $kind; protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; protected $queriesDataType = 'array'; @@ -397,6 +399,7 @@ public function getQueries() class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection { + protected $collection_key = 'reports'; public $kind; protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; protected $reportsDataType = 'array'; @@ -424,6 +427,7 @@ public function getReports() class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection { + protected $collection_key = 'metrics'; protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair'; protected $filtersDataType = 'array'; public $groupBys; @@ -579,6 +583,7 @@ public function getTimezoneCode() class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection { + protected $collection_key = 'shareEmailAddress'; public $dataRange; public $format; public $googleCloudStoragePathForLatestReport; @@ -920,6 +925,7 @@ public function getState() class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection { + protected $collection_key = 'errors'; public $changed; public $entityId; public $entityName; @@ -1091,6 +1097,7 @@ public function getUploadStatus() class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection { + protected $collection_key = 'rowStatus'; public $errors; protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; protected $rowStatusDataType = 'array'; From 987ce02b43c840a352565ec645730a2a83fd80aa Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:33 -0700 Subject: [PATCH 0165/1274] Updated Audit.php --- src/Google/Service/Audit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 973cd5503..08bad3120 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -168,6 +168,7 @@ public function listActivities($customerId, $applicationId, $optParams = array() class Google_Service_Audit_Activities extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Audit_Activity'; protected $itemsDataType = 'array'; public $kind; @@ -206,6 +207,7 @@ public function getNext() class Google_Service_Audit_Activity extends Google_Collection { + protected $collection_key = 'events'; protected $actorType = 'Google_Service_Audit_ActivityActor'; protected $actorDataType = ''; protected $eventsType = 'Google_Service_Audit_ActivityEvents'; @@ -327,6 +329,7 @@ public function getKey() class Google_Service_Audit_ActivityEvents extends Google_Collection { + protected $collection_key = 'parameters'; public $eventType; public $name; protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; From e635ba0f85bce6fd5fe890a51d6fba4d90920839 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:34 -0700 Subject: [PATCH 0166/1274] Updated Doubleclicksearch.php --- src/Google/Service/Doubleclicksearch.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 766deadeb..5e3fb3d7b 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -532,6 +532,7 @@ public function getSegmentationType() class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { + protected $collection_key = 'customMetric'; public $adGroupId; public $adId; public $advertiserId; @@ -791,6 +792,7 @@ public function getType() class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection { + protected $collection_key = 'conversion'; protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; protected $conversionDataType = 'array'; public $kind; @@ -870,6 +872,7 @@ public function getValue() class Google_Service_Doubleclicksearch_Report extends Google_Collection { + protected $collection_key = 'rows'; protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; protected $filesDataType = 'array'; public $id; @@ -1093,6 +1096,7 @@ public function getUrl() class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection { + protected $collection_key = 'orderBy'; protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; protected $columnsDataType = 'array'; public $downloadFormat; @@ -1256,6 +1260,7 @@ public function getVerifySingleTimeZone() class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection { + protected $collection_key = 'values'; protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; protected $columnDataType = ''; public $operator; @@ -1492,6 +1497,7 @@ public function getType() class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; protected $itemsDataType = 'array'; public $kind; @@ -1519,6 +1525,7 @@ public function getKind() class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection { + protected $collection_key = 'availabilities'; protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; @@ -1535,6 +1542,7 @@ public function getAvailabilities() class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection { + protected $collection_key = 'availabilities'; protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; From 51ba1575a6e4b4ab4880855a727524a98271adfc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:35 -0700 Subject: [PATCH 0167/1274] Updated CivicInfo.php --- src/Google/Service/CivicInfo.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index daa65862b..5721b27b5 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -249,6 +249,7 @@ public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeI class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection { + protected $collection_key = 'sources'; protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody'; protected $electionAdministrationBodyDataType = ''; public $id; @@ -311,6 +312,7 @@ public function getSources() class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection { + protected $collection_key = 'voter_services'; public $absenteeVotingInfoUrl; public $ballotInfoUrl; protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; @@ -461,6 +463,7 @@ public function getVotingLocationFinderUrl() class Google_Service_CivicInfo_Candidate extends Google_Collection { + protected $collection_key = 'channels'; public $candidateUrl; protected $channelsType = 'Google_Service_CivicInfo_Channel'; protected $channelsDataType = 'array'; @@ -580,6 +583,7 @@ public function getType() class Google_Service_CivicInfo_Contest extends Google_Collection { + protected $collection_key = 'sources'; public $ballotPlacement; protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; protected $candidatesDataType = 'array'; @@ -763,6 +767,7 @@ public function getType() class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection { + protected $collection_key = 'results'; public $kind; protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; protected $resultsDataType = 'array'; @@ -801,6 +806,7 @@ public function getStatus() class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection { + protected $collection_key = 'aliases'; public $aliases; public $name; public $ocdId; @@ -934,6 +940,7 @@ public function getTitle() class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection { + protected $collection_key = 'elections'; protected $electionsType = 'Google_Service_CivicInfo_Election'; protected $electionsDataType = 'array'; public $kind; @@ -998,6 +1005,7 @@ public function getScope() class Google_Service_CivicInfo_GeographicDivision extends Google_Collection { + protected $collection_key = 'officeIds'; public $alsoKnownAs; public $name; public $officeIds; @@ -1046,6 +1054,7 @@ public function getScope() class Google_Service_CivicInfo_Office extends Google_Collection { + protected $collection_key = 'sources'; public $divisionId; public $level; public $name; @@ -1106,6 +1115,7 @@ public function getSources() class Google_Service_CivicInfo_Official extends Google_Collection { + protected $collection_key = 'urls'; protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $addressDataType = 'array'; protected $channelsType = 'Google_Service_CivicInfo_Channel'; @@ -1200,6 +1210,7 @@ public function getUrls() class Google_Service_CivicInfo_PollingLocation extends Google_Collection { + protected $collection_key = 'sources'; protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $addressDataType = ''; public $endDate; @@ -1531,6 +1542,7 @@ public function getAddress() class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection { + protected $collection_key = 'state'; protected $contestsType = 'Google_Service_CivicInfo_Contest'; protected $contestsDataType = 'array'; protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; From 5680dcd8bbb31a235b68e9bfb9fa2eb34104fbeb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:35 -0700 Subject: [PATCH 0168/1274] Updated Customsearch.php --- src/Google/Service/Customsearch.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index b45c9466d..5694e9430 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -298,6 +298,7 @@ public function listCse($q, $optParams = array()) class Google_Service_Customsearch_Context extends Google_Collection { + protected $collection_key = 'facets'; protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; protected $facetsDataType = 'array'; public $title; @@ -362,6 +363,7 @@ public function getLabelWithOp() class Google_Service_Customsearch_Promotion extends Google_Collection { + protected $collection_key = 'bodyLines'; protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; protected $bodyLinesDataType = 'array'; public $displayLink; @@ -930,6 +932,7 @@ public function getTotalResults() class Google_Service_Customsearch_Result extends Google_Collection { + protected $collection_key = 'labels'; public $cacheId; public $displayLink; public $fileFormat; @@ -1229,6 +1232,7 @@ class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model class Google_Service_Customsearch_Search extends Google_Collection { + protected $collection_key = 'promotions'; protected $contextType = 'Google_Service_Customsearch_Context'; protected $contextDataType = ''; protected $itemsType = 'Google_Service_Customsearch_Result'; From 5a794f788aa7f064122b8bfa1a7ff88da84647f6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:36 -0700 Subject: [PATCH 0169/1274] Updated AdSenseHost.php --- src/Google/Service/AdSenseHost.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index 8c1ca2066..c9b7c23dc 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -1303,6 +1303,7 @@ public function getStatus() class Google_Service_AdSenseHost_Accounts extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSenseHost_Account'; protected $itemsDataType = 'array'; @@ -1400,6 +1401,7 @@ public function getSupportsReporting() class Google_Service_AdSenseHost_AdClients extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSenseHost_AdClient'; protected $itemsDataType = 'array'; @@ -1828,6 +1830,7 @@ public function getType() class Google_Service_AdSenseHost_AdUnits extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSenseHost_AdUnit'; protected $itemsDataType = 'array'; @@ -1877,6 +1880,7 @@ public function getNextPageToken() class Google_Service_AdSenseHost_AssociationSession extends Google_Collection { + protected $collection_key = 'productCodes'; public $accountId; public $id; public $kind; @@ -2028,6 +2032,7 @@ public function getName() class Google_Service_AdSenseHost_CustomChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel'; protected $itemsDataType = 'array'; @@ -2077,6 +2082,7 @@ public function getNextPageToken() class Google_Service_AdSenseHost_Report extends Google_Collection { + protected $collection_key = 'warnings'; public $averages; protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders'; protected $headersDataType = 'array'; @@ -2233,6 +2239,7 @@ public function getUrlPattern() class Google_Service_AdSenseHost_UrlChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel'; protected $itemsDataType = 'array'; From ecb1c12f6a5508b7bec74b081d5d92368ce55e84 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:37 -0700 Subject: [PATCH 0170/1274] Updated Books.php --- src/Google/Service/Books.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 53216632c..e12d66437 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -2476,6 +2476,7 @@ public function listVolumesUseruploaded($optParams = array()) class Google_Service_Books_Annotation extends Google_Collection { + protected $collection_key = 'pageIds'; public $afterSelectedText; public $beforeSelectedText; protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges'; @@ -2936,6 +2937,7 @@ public function getVolumeId() class Google_Service_Books_Annotations extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Annotation'; protected $itemsDataType = 'array'; public $kind; @@ -2985,6 +2987,7 @@ public function getTotalItems() class Google_Service_Books_AnnotationsSummary extends Google_Collection { + protected $collection_key = 'layers'; public $kind; protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; protected $layersDataType = 'array'; @@ -3071,6 +3074,7 @@ public function getUpdated() class Google_Service_Books_Annotationsdata extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Annotationdata'; protected $itemsDataType = 'array'; public $kind; @@ -3345,6 +3349,7 @@ public function getVolumesLastUpdated() class Google_Service_Books_Bookshelves extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Bookshelf'; protected $itemsDataType = 'array'; public $kind; @@ -3551,6 +3556,7 @@ public function getTitle() class Google_Service_Books_DictlayerdataDict extends Google_Collection { + protected $collection_key = 'words'; protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource'; protected $sourceDataType = ''; protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; @@ -3605,6 +3611,7 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWords extends Google_Collection { + protected $collection_key = 'senses'; protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives'; protected $derivativesDataType = 'array'; protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples'; @@ -3763,6 +3770,7 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection { + protected $collection_key = 'synonyms'; protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations'; protected $conjugationsDataType = 'array'; protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions'; @@ -3885,6 +3893,7 @@ public function getValue() class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection { + protected $collection_key = 'examples'; public $definition; protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; protected $examplesDataType = 'array'; @@ -4206,6 +4215,7 @@ public function getVolumeId() class Google_Service_Books_DownloadAccesses extends Google_Collection { + protected $collection_key = 'downloadAccessList'; protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction'; protected $downloadAccessListDataType = 'array'; public $kind; @@ -4331,6 +4341,7 @@ public function getTitle() class Google_Service_Books_GeolayerdataGeo extends Google_Collection { + protected $collection_key = 'boundary'; protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary'; protected $boundaryDataType = 'array'; public $cachePolicy; @@ -4531,6 +4542,7 @@ public function getLongitude() class Google_Service_Books_Layersummaries extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Layersummary'; protected $itemsDataType = 'array'; public $kind; @@ -4569,6 +4581,7 @@ public function getTotalItems() class Google_Service_Books_Layersummary extends Google_Collection { + protected $collection_key = 'annotationTypes'; public $annotationCount; public $annotationTypes; public $annotationsDataLink; @@ -4716,6 +4729,7 @@ public function getVolumeId() class Google_Service_Books_Offers extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_OffersItems'; protected $itemsDataType = 'array'; public $kind; @@ -4743,6 +4757,7 @@ public function getKind() class Google_Service_Books_OffersItems extends Google_Collection { + protected $collection_key = 'items'; public $artUrl; public $id; protected $itemsType = 'Google_Service_Books_OffersItemsItems'; @@ -5506,6 +5521,7 @@ public function getIsAvailable() class Google_Service_Books_VolumeLayerInfo extends Google_Collection { + protected $collection_key = 'layers'; protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; protected $layersDataType = 'array'; @@ -5563,6 +5579,7 @@ public function getExplanation() class Google_Service_Books_VolumeSaleInfo extends Google_Collection { + protected $collection_key = 'offers'; public $buyLink; public $country; public $isEbook; @@ -6073,6 +6090,7 @@ public function getProcessingState() class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { + protected $collection_key = 'industryIdentifiers'; public $authors; public $averageRating; public $canonicalVolumeLink; @@ -6455,6 +6473,7 @@ public function getType() class Google_Service_Books_Volumeannotation extends Google_Collection { + protected $collection_key = 'pageIds'; public $annotationDataId; public $annotationDataLink; public $annotationType; @@ -6665,6 +6684,7 @@ public function getGbTextRange() class Google_Service_Books_Volumeannotations extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Volumeannotation'; protected $itemsDataType = 'array'; public $kind; @@ -6725,6 +6745,7 @@ public function getVersion() class Google_Service_Books_Volumes extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Books_Volume'; protected $itemsDataType = 'array'; public $kind; From 0584569162a95ccae7915ac011190b9d21dfe27e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:38 -0700 Subject: [PATCH 0171/1274] Updated Taskqueue.php --- src/Google/Service/Taskqueue.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index 2255fc653..55f346f61 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -589,6 +589,7 @@ public function getStats() class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection { + protected $collection_key = 'producerEmails'; public $adminEmails; public $consumerEmails; public $producerEmails; @@ -674,6 +675,7 @@ public function getTotalTasks() class Google_Service_Taskqueue_Tasks extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Taskqueue_Task'; protected $itemsDataType = 'array'; public $kind; @@ -701,6 +703,7 @@ public function getKind() class Google_Service_Taskqueue_Tasks2 extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Taskqueue_Task'; protected $itemsDataType = 'array'; public $kind; From b1bf322a9a690008bfbb41b942b18bde7ba15667 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:39 -0700 Subject: [PATCH 0172/1274] Updated Compute.php --- src/Google/Service/Compute.php | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 4d704e4cb..150f75410 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -5565,6 +5565,7 @@ public function getType() class Google_Service_Compute_Address extends Google_Collection { + protected $collection_key = 'users'; public $address; public $creationTimestamp; public $description; @@ -5744,6 +5745,7 @@ class Google_Service_Compute_AddressAggregatedListItems extends Google_Model class Google_Service_Compute_AddressList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Address'; protected $itemsDataType = 'array'; @@ -5804,6 +5806,7 @@ public function getSelfLink() class Google_Service_Compute_AddressesScopedList extends Google_Collection { + protected $collection_key = 'addresses'; protected $addressesType = 'Google_Service_Compute_Address'; protected $addressesDataType = 'array'; protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; @@ -5832,6 +5835,7 @@ public function getWarning() class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; protected $dataDataType = 'array'; @@ -5896,6 +5900,7 @@ public function getValue() class Google_Service_Compute_AttachedDisk extends Google_Collection { + protected $collection_key = 'licenses'; public $autoDelete; public $boot; public $deviceName; @@ -6140,6 +6145,7 @@ public function getMaxUtilization() class Google_Service_Compute_BackendService extends Google_Collection { + protected $collection_key = 'healthChecks'; protected $backendsType = 'Google_Service_Compute_Backend'; protected $backendsDataType = 'array'; public $creationTimestamp; @@ -6288,6 +6294,7 @@ public function getTimeoutSec() class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection { + protected $collection_key = 'healthStatus'; protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; protected $healthStatusDataType = 'array'; public $kind; @@ -6315,6 +6322,7 @@ public function getKind() class Google_Service_Compute_BackendServiceList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_BackendService'; protected $itemsDataType = 'array'; @@ -6434,6 +6442,7 @@ public function getState() class Google_Service_Compute_Disk extends Google_Collection { + protected $collection_key = 'licenses'; public $creationTimestamp; public $description; public $id; @@ -6679,6 +6688,7 @@ class Google_Service_Compute_DiskAggregatedListItems extends Google_Model class Google_Service_Compute_DiskList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Disk'; protected $itemsDataType = 'array'; @@ -6908,6 +6918,7 @@ class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model class Google_Service_Compute_DiskTypeList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_DiskType'; protected $itemsDataType = 'array'; @@ -6968,6 +6979,7 @@ public function getSelfLink() class Google_Service_Compute_DiskTypesScopedList extends Google_Collection { + protected $collection_key = 'diskTypes'; protected $diskTypesType = 'Google_Service_Compute_DiskType'; protected $diskTypesDataType = 'array'; protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; @@ -6996,6 +7008,7 @@ public function getWarning() class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; protected $dataDataType = 'array'; @@ -7060,6 +7073,7 @@ public function getValue() class Google_Service_Compute_DisksScopedList extends Google_Collection { + protected $collection_key = 'disks'; protected $disksType = 'Google_Service_Compute_Disk'; protected $disksDataType = 'array'; protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; @@ -7088,6 +7102,7 @@ public function getWarning() class Google_Service_Compute_DisksScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; protected $dataDataType = 'array'; @@ -7152,6 +7167,7 @@ public function getValue() class Google_Service_Compute_Firewall extends Google_Collection { + protected $collection_key = 'targetTags'; protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; protected $allowedDataType = 'array'; public $creationTimestamp; @@ -7278,6 +7294,7 @@ public function getTargetTags() class Google_Service_Compute_FirewallAllowed extends Google_Collection { + protected $collection_key = 'ports'; public $iPProtocol; public $ports; @@ -7304,6 +7321,7 @@ public function getPorts() class Google_Service_Compute_FirewallList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Firewall'; protected $itemsDataType = 'array'; @@ -7554,6 +7572,7 @@ class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Mo class Google_Service_Compute_ForwardingRuleList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_ForwardingRule'; protected $itemsDataType = 'array'; @@ -7614,6 +7633,7 @@ public function getSelfLink() class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection { + protected $collection_key = 'forwardingRules'; protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; protected $forwardingRulesDataType = 'array'; protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; @@ -7642,6 +7662,7 @@ public function getWarning() class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; protected $dataDataType = 'array'; @@ -7758,6 +7779,7 @@ public function getIpAddress() class Google_Service_Compute_HostRule extends Google_Collection { + protected $collection_key = 'hosts'; public $description; public $hosts; public $pathMatcher; @@ -7942,6 +7964,7 @@ public function getUnhealthyThreshold() class Google_Service_Compute_HttpHealthCheckList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; protected $itemsDataType = 'array'; @@ -8002,6 +8025,7 @@ public function getSelfLink() class Google_Service_Compute_Image extends Google_Collection { + protected $collection_key = 'licenses'; public $archiveSizeBytes; public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; @@ -8173,6 +8197,7 @@ public function getStatus() class Google_Service_Compute_ImageList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Image'; protected $itemsDataType = 'array'; @@ -8270,6 +8295,7 @@ public function getSource() class Google_Service_Compute_Instance extends Google_Collection { + protected $collection_key = 'serviceAccounts'; public $canIpForward; public $creationTimestamp; public $description; @@ -8532,6 +8558,7 @@ class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model class Google_Service_Compute_InstanceList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Instance'; protected $itemsDataType = 'array'; @@ -8607,6 +8634,7 @@ public function getInstance() class Google_Service_Compute_InstancesScopedList extends Google_Collection { + protected $collection_key = 'instances'; protected $instancesType = 'Google_Service_Compute_Instance'; protected $instancesDataType = 'array'; protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; @@ -8635,6 +8663,7 @@ public function getWarning() class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; protected $dataDataType = 'array'; @@ -8736,6 +8765,7 @@ public function getSelfLink() class Google_Service_Compute_MachineType extends Google_Collection { + protected $collection_key = 'scratchDisks'; public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -8961,6 +8991,7 @@ class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model class Google_Service_Compute_MachineTypeList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_MachineType'; protected $itemsDataType = 'array'; @@ -9036,6 +9067,7 @@ public function getDiskGb() class Google_Service_Compute_MachineTypesScopedList extends Google_Collection { + protected $collection_key = 'machineTypes'; protected $machineTypesType = 'Google_Service_Compute_MachineType'; protected $machineTypesDataType = 'array'; protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; @@ -9064,6 +9096,7 @@ public function getWarning() class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; protected $dataDataType = 'array'; @@ -9128,6 +9161,7 @@ public function getValue() class Google_Service_Compute_Metadata extends Google_Collection { + protected $collection_key = 'items'; public $fingerprint; protected $itemsType = 'Google_Service_Compute_MetadataItems'; protected $itemsDataType = 'array'; @@ -9284,6 +9318,7 @@ public function getSelfLink() class Google_Service_Compute_NetworkInterface extends Google_Collection { + protected $collection_key = 'accessConfigs'; protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; protected $accessConfigsDataType = 'array'; public $name; @@ -9333,6 +9368,7 @@ public function getNetworkIP() class Google_Service_Compute_NetworkList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Network'; protected $itemsDataType = 'array'; @@ -9393,6 +9429,7 @@ public function getSelfLink() class Google_Service_Compute_Operation extends Google_Collection { + protected $collection_key = 'warnings'; public $clientOperationId; public $creationTimestamp; public $endTime; @@ -9706,6 +9743,7 @@ class Google_Service_Compute_OperationAggregatedListItems extends Google_Model class Google_Service_Compute_OperationError extends Google_Collection { + protected $collection_key = 'errors'; protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; protected $errorsDataType = 'array'; @@ -9759,6 +9797,7 @@ public function getMessage() class Google_Service_Compute_OperationList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Operation'; protected $itemsDataType = 'array'; @@ -9819,6 +9858,7 @@ public function getSelfLink() class Google_Service_Compute_OperationWarnings extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_OperationWarningsData'; protected $dataDataType = 'array'; @@ -9883,6 +9923,7 @@ public function getValue() class Google_Service_Compute_OperationsScopedList extends Google_Collection { + protected $collection_key = 'operations'; protected $operationsType = 'Google_Service_Compute_Operation'; protected $operationsDataType = 'array'; protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; @@ -9911,6 +9952,7 @@ public function getWarning() class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; protected $dataDataType = 'array'; @@ -9975,6 +10017,7 @@ public function getValue() class Google_Service_Compute_PathMatcher extends Google_Collection { + protected $collection_key = 'pathRules'; public $defaultService; public $description; public $name; @@ -10024,6 +10067,7 @@ public function getPathRules() class Google_Service_Compute_PathRule extends Google_Collection { + protected $collection_key = 'paths'; public $paths; public $service; @@ -10050,6 +10094,7 @@ public function getService() class Google_Service_Compute_Project extends Google_Collection { + protected $collection_key = 'quotas'; protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; protected $commonInstanceMetadataDataType = ''; public $creationTimestamp; @@ -10193,6 +10238,7 @@ public function getUsage() class Google_Service_Compute_Region extends Google_Collection { + protected $collection_key = 'zones'; public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -10309,6 +10355,7 @@ public function getZones() class Google_Service_Compute_RegionList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Region'; protected $itemsDataType = 'array'; @@ -10384,6 +10431,7 @@ public function getGroup() class Google_Service_Compute_Route extends Google_Collection { + protected $collection_key = 'warnings'; public $creationTimestamp; public $description; public $destRange; @@ -10554,6 +10602,7 @@ public function getWarnings() class Google_Service_Compute_RouteList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Route'; protected $itemsDataType = 'array'; @@ -10614,6 +10663,7 @@ public function getSelfLink() class Google_Service_Compute_RouteWarnings extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_RouteWarningsData'; protected $dataDataType = 'array'; @@ -10741,6 +10791,7 @@ public function getSelfLink() class Google_Service_Compute_ServiceAccount extends Google_Collection { + protected $collection_key = 'scopes'; public $email; public $scopes; @@ -10767,6 +10818,7 @@ public function getScopes() class Google_Service_Compute_Snapshot extends Google_Collection { + protected $collection_key = 'licenses'; public $creationTimestamp; public $description; public $diskSizeGb; @@ -10914,6 +10966,7 @@ public function getStorageBytesStatus() class Google_Service_Compute_SnapshotList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Snapshot'; protected $itemsDataType = 'array'; @@ -10974,6 +11027,7 @@ public function getSelfLink() class Google_Service_Compute_Tags extends Google_Collection { + protected $collection_key = 'items'; public $fingerprint; public $items; @@ -11081,6 +11135,7 @@ public function getUrlMap() class Google_Service_Compute_TargetHttpProxyList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; protected $itemsDataType = 'array'; @@ -11309,6 +11364,7 @@ class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Mo class Google_Service_Compute_TargetInstanceList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_TargetInstance'; protected $itemsDataType = 'array'; @@ -11369,6 +11425,7 @@ public function getSelfLink() class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection { + protected $collection_key = 'targetInstances'; protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; protected $targetInstancesDataType = 'array'; protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; @@ -11397,6 +11454,7 @@ public function getWarning() class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; protected $dataDataType = 'array'; @@ -11461,6 +11519,7 @@ public function getValue() class Google_Service_Compute_TargetPool extends Google_Collection { + protected $collection_key = 'instances'; public $backupPool; public $creationTimestamp; public $description; @@ -11662,6 +11721,7 @@ class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection { + protected $collection_key = 'healthStatus'; protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; protected $healthStatusDataType = 'array'; public $kind; @@ -11689,6 +11749,7 @@ public function getKind() class Google_Service_Compute_TargetPoolList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_TargetPool'; protected $itemsDataType = 'array'; @@ -11749,6 +11810,7 @@ public function getSelfLink() class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection { + protected $collection_key = 'healthChecks'; protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; @@ -11765,6 +11827,7 @@ public function getHealthChecks() class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection { + protected $collection_key = 'instances'; protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; @@ -11781,6 +11844,7 @@ public function getInstances() class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection { + protected $collection_key = 'healthChecks'; protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; @@ -11797,6 +11861,7 @@ public function getHealthChecks() class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection { + protected $collection_key = 'instances'; protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; @@ -11813,6 +11878,7 @@ public function getInstances() class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection { + protected $collection_key = 'targetPools'; protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; protected $targetPoolsDataType = 'array'; protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; @@ -11841,6 +11907,7 @@ public function getWarning() class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; public $code; protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; protected $dataDataType = 'array'; @@ -11968,6 +12035,7 @@ public function getPath() class Google_Service_Compute_UrlMap extends Google_Collection { + protected $collection_key = 'tests'; public $creationTimestamp; public $defaultService; public $description; @@ -12096,6 +12164,7 @@ public function getTests() class Google_Service_Compute_UrlMapList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_UrlMap'; protected $itemsDataType = 'array'; @@ -12219,6 +12288,7 @@ public function getService() class Google_Service_Compute_UrlMapValidationResult extends Google_Collection { + protected $collection_key = 'testFailures'; public $loadErrors; public $loadSucceeded; protected $testFailuresType = 'Google_Service_Compute_TestFailure'; @@ -12326,6 +12396,7 @@ public function getReportNamePrefix() class Google_Service_Compute_Zone extends Google_Collection { + protected $collection_key = 'maintenanceWindows'; public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -12442,6 +12513,7 @@ public function getStatus() class Google_Service_Compute_ZoneList extends Google_Collection { + protected $collection_key = 'items'; public $id; protected $itemsType = 'Google_Service_Compute_Zone'; protected $itemsDataType = 'array'; From 126f6b388f39fa5d3022820ab961440a6dcf0af4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:39 -0700 Subject: [PATCH 0173/1274] Updated IdentityToolkit.php --- src/Google/Service/IdentityToolkit.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index eba918b82..847da8af0 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -342,6 +342,7 @@ public function getKind() class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection { + protected $collection_key = 'users'; public $kind; public $nextPageToken; protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; @@ -380,6 +381,7 @@ public function getUsers() class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection { + protected $collection_key = 'users'; public $kind; protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; protected $usersDataType = 'array'; @@ -566,6 +568,7 @@ public function getNextPageToken() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection { + protected $collection_key = 'localId'; public $email; public $idToken; public $localId; @@ -656,6 +659,7 @@ public function getOobCode() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection { + protected $collection_key = 'provider'; public $captchaChallenge; public $captchaResponse; public $displayName; @@ -781,6 +785,7 @@ public function getUpgradeToFederatedLogin() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection { + protected $collection_key = 'users'; public $hashAlgorithm; public $memoryCost; public $rounds; @@ -1066,6 +1071,7 @@ public function getKind() class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection { + protected $collection_key = 'providerUserInfo'; public $displayName; public $email; public $idToken; @@ -1163,6 +1169,7 @@ public function getProviderId() class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection { + protected $collection_key = 'error'; protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError'; protected $errorDataType = 'array'; public $kind; @@ -1216,6 +1223,7 @@ public function getMessage() class Google_Service_IdentityToolkit_UserInfo extends Google_Collection { + protected $collection_key = 'providerUserInfo'; public $displayName; public $email; public $emailVerified; @@ -1379,6 +1387,7 @@ public function getProviderId() class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection { + protected $collection_key = 'verifiedProvider'; public $action; public $appInstallationUrl; public $appScheme; From 0b626af2505b5f3ed7d8032e9febe6f624668f43 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:40 -0700 Subject: [PATCH 0174/1274] Updated Tasks.php --- src/Google/Service/Tasks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php index ea9d66df0..b7badc3ae 100644 --- a/src/Google/Service/Tasks.php +++ b/src/Google/Service/Tasks.php @@ -584,6 +584,7 @@ public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $o class Google_Service_Tasks_Task extends Google_Collection { + protected $collection_key = 'links'; public $completed; public $deleted; public $due; @@ -861,6 +862,7 @@ public function getUpdated() class Google_Service_Tasks_TaskLists extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Tasks_TaskList'; protected $itemsDataType = 'array'; @@ -910,6 +912,7 @@ public function getNextPageToken() class Google_Service_Tasks_Tasks extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_Tasks_Task'; protected $itemsDataType = 'array'; From 1a64a1810c9397cbb73c01aff2ca6078e602560a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:41 -0700 Subject: [PATCH 0175/1274] Updated AdSense.php --- src/Google/Service/AdSense.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index f33c19192..19e5808eb 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -2174,6 +2174,7 @@ public function listUrlchannels($adClientId, $optParams = array()) class Google_Service_AdSense_Account extends Google_Collection { + protected $collection_key = 'subAccounts'; public $id; public $kind; public $name; @@ -2245,6 +2246,7 @@ public function getTimezone() class Google_Service_AdSense_Accounts extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_Account'; protected $itemsDataType = 'array'; @@ -2364,6 +2366,7 @@ public function getSupportsReporting() class Google_Service_AdSense_AdClients extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_AdClient'; protected $itemsDataType = 'array'; @@ -2863,6 +2866,7 @@ public function getType() class Google_Service_AdSense_AdUnits extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_AdUnit'; protected $itemsDataType = 'array'; @@ -2912,6 +2916,7 @@ public function getNextPageToken() class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection { + protected $collection_key = 'warnings'; public $averages; public $endDate; protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders'; @@ -3123,6 +3128,7 @@ public function getType() class Google_Service_AdSense_Alerts extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdSense_Alert'; protected $itemsDataType = 'array'; public $kind; @@ -3258,6 +3264,7 @@ public function getSiteLanguage() class Google_Service_AdSense_CustomChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_CustomChannel'; protected $itemsDataType = 'array'; @@ -3307,6 +3314,7 @@ public function getNextPageToken() class Google_Service_AdSense_Metadata extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry'; protected $itemsDataType = 'array'; public $kind; @@ -3393,6 +3401,7 @@ public function getPaymentDate() class Google_Service_AdSense_Payments extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_AdSense_Payment'; protected $itemsDataType = 'array'; public $kind; @@ -3420,6 +3429,7 @@ public function getKind() class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection { + protected $collection_key = 'supportedProducts'; public $compatibleDimensions; public $compatibleMetrics; public $id; @@ -3550,6 +3560,7 @@ public function getName() class Google_Service_AdSense_SavedAdStyles extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_SavedAdStyle'; protected $itemsDataType = 'array'; @@ -3636,6 +3647,7 @@ public function getName() class Google_Service_AdSense_SavedReports extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_SavedReport'; protected $itemsDataType = 'array'; @@ -3722,6 +3734,7 @@ public function getUrlPattern() class Google_Service_AdSense_UrlChannels extends Google_Collection { + protected $collection_key = 'items'; public $etag; protected $itemsType = 'Google_Service_AdSense_UrlChannel'; protected $itemsDataType = 'array'; From 1f19f88be8d5c163f046178b60d8121ba527a616 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:41 -0700 Subject: [PATCH 0176/1274] Updated QPXExpress.php --- src/Google/Service/QPXExpress.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index ebc1ceadf..f083273d8 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -182,6 +182,7 @@ public function getName() class Google_Service_QPXExpress_BagDescriptor extends Google_Collection { + protected $collection_key = 'description'; public $commercialName; public $count; public $description; @@ -326,6 +327,7 @@ public function getName() class Google_Service_QPXExpress_Data extends Google_Collection { + protected $collection_key = 'tax'; protected $aircraftType = 'Google_Service_QPXExpress_AircraftData'; protected $aircraftDataType = 'array'; protected $airportType = 'Google_Service_QPXExpress_AirportData'; @@ -508,6 +510,7 @@ public function getNumber() class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection { + protected $collection_key = 'bagDescriptor'; protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor'; protected $bagDescriptorDataType = 'array'; public $kilos; @@ -840,6 +843,7 @@ public function getSeniorCount() class Google_Service_QPXExpress_PricingInfo extends Google_Collection { + protected $collection_key = 'tax'; public $baseFareTotal; protected $fareType = 'Google_Service_QPXExpress_FareInfo'; protected $fareDataType = 'array'; @@ -991,6 +995,7 @@ public function getTax() class Google_Service_QPXExpress_SegmentInfo extends Google_Collection { + protected $collection_key = 'leg'; public $bookingCode; public $bookingCodeCount; public $cabin; @@ -1118,6 +1123,7 @@ public function getSubjectToGovernmentApproval() class Google_Service_QPXExpress_SegmentPricing extends Google_Collection { + protected $collection_key = 'freeBaggageOption'; public $fareId; protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance'; protected $freeBaggageOptionDataType = 'array'; @@ -1167,6 +1173,7 @@ public function getSegmentId() class Google_Service_QPXExpress_SliceInfo extends Google_Collection { + protected $collection_key = 'segment'; public $duration; public $kind; protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; @@ -1205,6 +1212,7 @@ public function getSegment() class Google_Service_QPXExpress_SliceInput extends Google_Collection { + protected $collection_key = 'prohibitedCarrier'; public $alliance; public $date; public $destination; @@ -1475,6 +1483,7 @@ public function getLatestTime() class Google_Service_QPXExpress_TripOption extends Google_Collection { + protected $collection_key = 'slice'; public $id; public $kind; protected $pricingType = 'Google_Service_QPXExpress_PricingInfo'; @@ -1536,6 +1545,7 @@ public function getSlice() class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection { + protected $collection_key = 'slice'; public $maxPrice; protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; protected $passengersDataType = ''; @@ -1608,6 +1618,7 @@ public function getSolutions() class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection { + protected $collection_key = 'tripOption'; protected $dataType = 'Google_Service_QPXExpress_Data'; protected $dataDataType = ''; public $kind; From 3e533ab3ecd696294fcd78c50c2a3a4da382a013 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:42 -0700 Subject: [PATCH 0177/1274] Updated Orkut.php --- src/Google/Service/Orkut.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Orkut.php b/src/Google/Service/Orkut.php index 77bbc4900..9080ab440 100644 --- a/src/Google/Service/Orkut.php +++ b/src/Google/Service/Orkut.php @@ -1628,6 +1628,7 @@ public function insert(Google_Service_Orkut_Activity $postBody, $optParams = arr class Google_Service_Orkut_Acl extends Google_Collection { + protected $collection_key = 'items'; public $description; protected $itemsType = 'Google_Service_Orkut_AclItems'; protected $itemsDataType = 'array'; @@ -1703,6 +1704,7 @@ public function getType() class Google_Service_Orkut_Activity extends Google_Collection { + protected $collection_key = 'links'; protected $accessType = 'Google_Service_Orkut_Acl'; protected $accessDataType = ''; protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; @@ -1821,6 +1823,7 @@ public function getVerb() class Google_Service_Orkut_ActivityList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_Activity'; protected $itemsDataType = 'array'; public $kind; @@ -1859,6 +1862,7 @@ public function getNextPageToken() class Google_Service_Orkut_ActivityObject extends Google_Collection { + protected $collection_key = 'items'; public $content; protected $itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource'; protected $itemsDataType = 'array'; @@ -1909,6 +1913,7 @@ public function getReplies() class Google_Service_Orkut_ActivityObjectReplies extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_Comment'; protected $itemsDataType = 'array'; public $totalItems; @@ -2050,6 +2055,7 @@ public function getSponsorUrl() class Google_Service_Orkut_BadgeList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_Badge'; protected $itemsDataType = 'array'; public $kind; @@ -2077,6 +2083,7 @@ public function getKind() class Google_Service_Orkut_Comment extends Google_Collection { + protected $collection_key = 'links'; protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $actorDataType = ''; public $content; @@ -2209,6 +2216,7 @@ public function getType() class Google_Service_Orkut_CommentList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2258,6 +2266,7 @@ public function getPreviousPageToken() class Google_Service_Orkut_Community extends Google_Collection { + protected $collection_key = 'moderators'; public $category; protected $coOwnersType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $coOwnersDataType = 'array'; @@ -2420,6 +2429,7 @@ public function getPhotoUrl() class Google_Service_Orkut_CommunityList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_Community'; protected $itemsDataType = 'array'; public $kind; @@ -2486,6 +2496,7 @@ public function getPerson() class Google_Service_Orkut_CommunityMembersList extends Google_Collection { + protected $collection_key = 'items'; public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityMembers'; protected $itemsDataType = 'array'; @@ -2682,6 +2693,7 @@ public function getStatus() class Google_Service_Orkut_CommunityMessage extends Google_Collection { + protected $collection_key = 'links'; public $addedDate; protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; @@ -2776,6 +2788,7 @@ public function getSubject() class Google_Service_Orkut_CommunityMessageList extends Google_Collection { + protected $collection_key = 'items'; public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityMessage'; protected $itemsDataType = 'array'; @@ -2847,6 +2860,7 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityPoll extends Google_Collection { + protected $collection_key = 'votedOptions'; protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; public $communityId; @@ -3157,6 +3171,7 @@ public function getKind() class Google_Service_Orkut_CommunityPollCommentList extends Google_Collection { + protected $collection_key = 'items'; public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityPollComment'; protected $itemsDataType = 'array'; @@ -3243,6 +3258,7 @@ public function getUrl() class Google_Service_Orkut_CommunityPollList extends Google_Collection { + protected $collection_key = 'items'; public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityPoll'; protected $itemsDataType = 'array'; @@ -3314,6 +3330,7 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityPollVote extends Google_Collection { + protected $collection_key = 'optionIds'; public $isVotevisible; public $kind; public $optionIds; @@ -3351,6 +3368,7 @@ public function getOptionIds() class Google_Service_Orkut_CommunityTopic extends Google_Collection { + protected $collection_key = 'messages'; protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; public $body; @@ -3479,6 +3497,7 @@ public function getTitle() class Google_Service_Orkut_CommunityTopicList extends Google_Collection { + protected $collection_key = 'items'; public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityTopic'; protected $itemsDataType = 'array'; @@ -3550,6 +3569,7 @@ public function getPrevPageToken() class Google_Service_Orkut_Counters extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Orkut_OrkutCounterResource'; protected $itemsDataType = 'array'; public $kind; @@ -3577,6 +3597,7 @@ public function getKind() class Google_Service_Orkut_OrkutActivityobjectsResource extends Google_Collection { + protected $collection_key = 'links'; protected $communityType = 'Google_Service_Orkut_Community'; protected $communityDataType = ''; public $content; @@ -3988,6 +4009,7 @@ public function getType() class Google_Service_Orkut_Visibility extends Google_Collection { + protected $collection_key = 'links'; public $kind; protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; protected $linksDataType = 'array'; From 8f69150cb72d7207a22ce60ecbd2b5c8ffcf51bb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:42 -0700 Subject: [PATCH 0178/1274] Updated Admin.php --- src/Google/Service/Admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Admin.php b/src/Google/Service/Admin.php index 56fdc9a26..769adb1c9 100644 --- a/src/Google/Service/Admin.php +++ b/src/Google/Service/Admin.php @@ -105,6 +105,7 @@ public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optPa class Google_Service_Admin_MailItem extends Google_Collection { + protected $collection_key = 'labels'; public $isDeleted; public $isDraft; public $isInbox; From e54c359490fb29c29b927395eb7181324ec3b1af Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:43 -0700 Subject: [PATCH 0179/1274] Updated Gmail.php --- src/Google/Service/Gmail.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index ec716fc0d..963a007ce 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -1232,6 +1232,7 @@ public function getMessage() class Google_Service_Gmail_History extends Google_Collection { + protected $collection_key = 'messages'; public $id; protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; @@ -1318,6 +1319,7 @@ public function getType() class Google_Service_Gmail_ListDraftsResponse extends Google_Collection { + protected $collection_key = 'drafts'; protected $draftsType = 'Google_Service_Gmail_Draft'; protected $draftsDataType = 'array'; public $nextPageToken; @@ -1356,6 +1358,7 @@ public function getResultSizeEstimate() class Google_Service_Gmail_ListHistoryResponse extends Google_Collection { + protected $collection_key = 'history'; protected $historyType = 'Google_Service_Gmail_History'; protected $historyDataType = 'array'; public $historyId; @@ -1394,6 +1397,7 @@ public function getNextPageToken() class Google_Service_Gmail_ListLabelsResponse extends Google_Collection { + protected $collection_key = 'labels'; protected $labelsType = 'Google_Service_Gmail_Label'; protected $labelsDataType = 'array'; @@ -1410,6 +1414,7 @@ public function getLabels() class Google_Service_Gmail_ListMessagesResponse extends Google_Collection { + protected $collection_key = 'messages'; protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; public $nextPageToken; @@ -1448,6 +1453,7 @@ public function getResultSizeEstimate() class Google_Service_Gmail_ListThreadsResponse extends Google_Collection { + protected $collection_key = 'threads'; public $nextPageToken; public $resultSizeEstimate; protected $threadsType = 'Google_Service_Gmail_Thread'; @@ -1486,6 +1492,7 @@ public function getThreads() class Google_Service_Gmail_Message extends Google_Collection { + protected $collection_key = 'labelIds'; public $historyId; public $id; public $labelIds; @@ -1579,6 +1586,7 @@ public function getThreadId() class Google_Service_Gmail_MessagePart extends Google_Collection { + protected $collection_key = 'parts'; protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; protected $bodyDataType = ''; public $filename; @@ -1715,6 +1723,7 @@ public function getValue() class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection { + protected $collection_key = 'removeLabelIds'; public $addLabelIds; public $removeLabelIds; @@ -1741,6 +1750,7 @@ public function getRemoveLabelIds() class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection { + protected $collection_key = 'removeLabelIds'; public $addLabelIds; public $removeLabelIds; @@ -1767,6 +1777,7 @@ public function getRemoveLabelIds() class Google_Service_Gmail_Thread extends Google_Collection { + protected $collection_key = 'messages'; public $historyId; public $id; protected $messagesType = 'Google_Service_Gmail_Message'; From dda92e0b1e86b7265e17f96c449d454407f3c058 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:44 -0700 Subject: [PATCH 0180/1274] Updated Datastore.php --- src/Google/Service/Datastore.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index 8ec92e253..7efeaa662 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -235,6 +235,7 @@ public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $p class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection { + protected $collection_key = 'keys'; protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; @@ -251,6 +252,7 @@ public function getKeys() class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection { + protected $collection_key = 'keys'; protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; protected $keysType = 'Google_Service_Datastore_Key'; @@ -398,6 +400,7 @@ public function getMutationResult() class Google_Service_Datastore_CompositeFilter extends Google_Collection { + protected $collection_key = 'filters'; protected $filtersType = 'Google_Service_Datastore_Filter'; protected $filtersDataType = 'array'; public $operator; @@ -502,6 +505,7 @@ public function getPropertyFilter() class Google_Service_Datastore_GqlQuery extends Google_Collection { + protected $collection_key = 'numberArgs'; public $allowLiteral; protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg'; protected $nameArgsDataType = 'array'; @@ -590,6 +594,7 @@ public function getValue() class Google_Service_Datastore_Key extends Google_Collection { + protected $collection_key = 'path'; protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; protected $partitionIdDataType = ''; protected $pathType = 'Google_Service_Datastore_KeyPathElement'; @@ -670,6 +675,7 @@ public function getName() class Google_Service_Datastore_LookupRequest extends Google_Collection { + protected $collection_key = 'keys'; protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; @@ -698,6 +704,7 @@ public function getReadOptions() class Google_Service_Datastore_LookupResponse extends Google_Collection { + protected $collection_key = 'missing'; protected $deferredType = 'Google_Service_Datastore_Key'; protected $deferredDataType = 'array'; protected $foundType = 'Google_Service_Datastore_EntityResult'; @@ -750,6 +757,7 @@ public function getMissing() class Google_Service_Datastore_Mutation extends Google_Collection { + protected $collection_key = 'upsert'; protected $deleteType = 'Google_Service_Datastore_Key'; protected $deleteDataType = 'array'; public $force; @@ -825,6 +833,7 @@ public function getUpsert() class Google_Service_Datastore_MutationResult extends Google_Collection { + protected $collection_key = 'insertAutoIdKeys'; public $indexUpdates; protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; protected $insertAutoIdKeysDataType = 'array'; @@ -878,6 +887,7 @@ public function getNamespace() class Google_Service_Datastore_Property extends Google_Collection { + protected $collection_key = 'listValue'; public $blobKeyValue; public $blobValue; public $booleanValue; @@ -1125,6 +1135,7 @@ public function getName() class Google_Service_Datastore_Query extends Google_Collection { + protected $collection_key = 'projection'; public $endCursor; protected $filterType = 'Google_Service_Datastore_Filter'; protected $filterDataType = ''; @@ -1233,6 +1244,7 @@ public function getStartCursor() class Google_Service_Datastore_QueryResultBatch extends Google_Collection { + protected $collection_key = 'entityResults'; public $endCursor; public $entityResultType; protected $entityResultsType = 'Google_Service_Datastore_EntityResult'; @@ -1445,6 +1457,7 @@ public function getHeader() class Google_Service_Datastore_Value extends Google_Collection { + protected $collection_key = 'listValue'; public $blobKeyValue; public $blobValue; public $booleanValue; From 1b23995b774bd9a98b7b862741e7018d6e379bef Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:44 -0700 Subject: [PATCH 0181/1274] Updated Bigquery.php --- src/Google/Service/Bigquery.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index a5fd7cfb3..e4b5562d9 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -960,6 +960,7 @@ public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery class Google_Service_Bigquery_Dataset extends Google_Collection { + protected $collection_key = 'access'; protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; protected $accessDataType = 'array'; public $creationTime; @@ -1135,6 +1136,7 @@ public function getUserByEmail() class Google_Service_Bigquery_DatasetList extends Google_Collection { + protected $collection_key = 'datasets'; protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; protected $datasetsDataType = 'array'; public $etag; @@ -1307,6 +1309,7 @@ public function getReason() class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { + protected $collection_key = 'rows'; public $cacheHit; public $etag; public $jobComplete; @@ -1584,6 +1587,7 @@ public function getQuery() class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection { + protected $collection_key = 'destinationUris'; public $compression; public $destinationFormat; public $destinationUri; @@ -1666,6 +1670,7 @@ public function getSourceTable() class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection { + protected $collection_key = 'sourceUri'; public $createDisposition; protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; @@ -1715,6 +1720,7 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { + protected $collection_key = 'sourceUris'; public $allowJaggedRows; public $allowQuotedNewlines; public $createDisposition; @@ -2013,6 +2019,7 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { + protected $collection_key = 'sourceTables'; public $createDisposition; protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; @@ -2075,6 +2082,7 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobList extends Google_Collection { + protected $collection_key = 'jobs'; public $etag; protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; protected $jobsDataType = 'array'; @@ -2415,6 +2423,7 @@ public function getOutputRows() class Google_Service_Bigquery_JobStatus extends Google_Collection { + protected $collection_key = 'errors'; protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; protected $errorResultDataType = ''; protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; @@ -2459,6 +2468,7 @@ class Google_Service_Bigquery_JsonObject extends Google_Model class Google_Service_Bigquery_ProjectList extends Google_Collection { + protected $collection_key = 'projects'; public $etag; public $kind; public $nextPageToken; @@ -2687,6 +2697,7 @@ public function getUseQueryCache() class Google_Service_Bigquery_QueryResponse extends Google_Collection { + protected $collection_key = 'rows'; public $cacheHit; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; @@ -2980,6 +2991,7 @@ public function getV() class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection { + protected $collection_key = 'rows'; public $kind; protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; @@ -3033,6 +3045,7 @@ public function getJson() class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection { + protected $collection_key = 'insertErrors'; protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; protected $insertErrorsDataType = 'array'; public $kind; @@ -3060,6 +3073,7 @@ public function getKind() class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection { + protected $collection_key = 'errors'; protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; protected $errorsDataType = 'array'; public $index; @@ -3087,6 +3101,7 @@ public function getIndex() class Google_Service_Bigquery_TableDataList extends Google_Collection { + protected $collection_key = 'rows'; public $etag; public $kind; public $pageToken; @@ -3147,6 +3162,7 @@ public function getTotalRows() class Google_Service_Bigquery_TableFieldSchema extends Google_Collection { + protected $collection_key = 'fields'; public $description; protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; @@ -3207,6 +3223,7 @@ public function getType() class Google_Service_Bigquery_TableList extends Google_Collection { + protected $collection_key = 'tables'; public $etag; public $kind; public $nextPageToken; @@ -3364,6 +3381,7 @@ public function getTableId() class Google_Service_Bigquery_TableRow extends Google_Collection { + protected $collection_key = 'f'; protected $fType = 'Google_Service_Bigquery_TableCell'; protected $fDataType = 'array'; @@ -3380,6 +3398,7 @@ public function getF() class Google_Service_Bigquery_TableSchema extends Google_Collection { + protected $collection_key = 'fields'; protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; From 4a01324475aee7ea4387b4c364f8fa53930f7fce Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:45 -0700 Subject: [PATCH 0182/1274] Updated ShoppingContent.php --- src/Google/Service/ShoppingContent.php | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 7040943b0..392d934bb 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -1095,6 +1095,7 @@ public function listProductstatuses($merchantId, $optParams = array()) class Google_Service_ShoppingContent_Account extends Google_Collection { + protected $collection_key = 'users'; public $adultContent; protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; protected $adwordsLinksDataType = 'array'; @@ -1226,6 +1227,7 @@ public function getStatus() class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { + protected $collection_key = 'dataQualityIssues'; public $accountId; protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; @@ -1264,6 +1266,7 @@ public function getKind() class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection { + protected $collection_key = 'exampleItems'; public $country; public $displayedValue; protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; @@ -1442,6 +1445,7 @@ public function getEmailAddress() class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1518,6 +1522,7 @@ public function getMethod() class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1595,6 +1600,7 @@ public function getKind() class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Account'; @@ -1633,6 +1639,7 @@ public function getResources() class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1697,6 +1704,7 @@ public function getMethod() class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1763,6 +1771,7 @@ public function getErrors() class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; @@ -1801,6 +1810,7 @@ public function getResources() class Google_Service_ShoppingContent_Datafeed extends Google_Collection { + protected $collection_key = 'intendedDestinations'; public $attributeLanguage; public $contentLanguage; public $contentType; @@ -2046,6 +2056,7 @@ public function getQuotingMode() class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection { + protected $collection_key = 'warnings'; public $datafeedId; protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; protected $errorsDataType = 'array'; @@ -2129,6 +2140,7 @@ public function getWarnings() class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection { + protected $collection_key = 'examples'; public $code; public $count; protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; @@ -2215,6 +2227,7 @@ public function getValue() class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2291,6 +2304,7 @@ public function getMethod() class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2357,6 +2371,7 @@ public function getErrors() class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; @@ -2384,6 +2399,7 @@ public function getResources() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2448,6 +2464,7 @@ public function getMethod() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2514,6 +2531,7 @@ public function getErrors() class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; @@ -2578,6 +2596,7 @@ public function getReason() class Google_Service_ShoppingContent_Errors extends Google_Collection { + protected $collection_key = 'errors'; public $code; protected $errorsType = 'Google_Service_ShoppingContent_Error'; protected $errorsDataType = 'array'; @@ -2688,6 +2707,7 @@ public function getSalePriceEffectiveDate() class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2764,6 +2784,7 @@ public function getStoreCode() class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2968,6 +2989,7 @@ public function getValue() class Google_Service_ShoppingContent_Product extends Google_Collection { + protected $collection_key = 'warnings'; public $additionalImageLinks; public $adult; public $adwordsGrouping; @@ -3691,6 +3713,7 @@ public function getValue() class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection { + protected $collection_key = 'attributes'; protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; protected $attributesDataType = 'array'; public $name; @@ -3879,6 +3902,7 @@ public function getValue() class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { + protected $collection_key = 'destinationStatuses'; protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; @@ -4139,6 +4163,7 @@ public function getTaxShip() class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -4215,6 +4240,7 @@ public function getProductId() class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -4292,6 +4318,7 @@ public function getProduct() class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Product'; @@ -4330,6 +4357,7 @@ public function getResources() class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -4394,6 +4422,7 @@ public function getProductId() class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection { + protected $collection_key = 'entries'; protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -4471,6 +4500,7 @@ public function getProductStatus() class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection { + protected $collection_key = 'resources'; public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; From 718e671e62df0d070e0f59ba2ffb67904725447b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:46 -0700 Subject: [PATCH 0183/1274] Updated Webfonts.php --- src/Google/Service/Webfonts.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index 3083266ef..a898496f4 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -105,6 +105,7 @@ public function listWebfonts($optParams = array()) class Google_Service_Webfonts_Webfont extends Google_Collection { + protected $collection_key = 'variants'; public $category; public $family; public $files; @@ -202,6 +203,7 @@ class Google_Service_Webfonts_WebfontFiles extends Google_Model class Google_Service_Webfonts_WebfontList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Webfonts_Webfont'; protected $itemsDataType = 'array'; public $kind; From f41354ea7faa6859d8e6c5f5f87ff8f96873e5e7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:46 -0700 Subject: [PATCH 0184/1274] Updated SiteVerification.php --- src/Google/Service/SiteVerification.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 59beccb97..5383967db 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -320,6 +320,7 @@ public function getToken() class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; protected $itemsDataType = 'array'; @@ -336,6 +337,7 @@ public function getItems() class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection { + protected $collection_key = 'owners'; public $id; public $owners; protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; From 3a8d507d458abc6f582a88c077c6349a62e8831a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:47 -0700 Subject: [PATCH 0185/1274] Updated YouTubeAnalytics.php --- src/Google/Service/YouTubeAnalytics.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 8c4fd7385..ddcaee2f1 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -285,6 +285,7 @@ public function query($ids, $startDate, $endDate, $metrics, $optParams = array() class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; protected $itemsDataType = 'array'; public $kind; @@ -312,6 +313,7 @@ public function getKind() class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection { + protected $collection_key = 'defaultOutput'; protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; protected $defaultOutputDataType = 'array'; public $id; @@ -398,6 +400,7 @@ public function getType() class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; protected $itemsDataType = 'array'; public $kind; @@ -425,6 +428,7 @@ public function getKind() class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection { + protected $collection_key = 'outputs'; public $id; protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; protected $outputsDataType = 'array'; @@ -549,6 +553,7 @@ public function getStartTime() class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection { + protected $collection_key = 'rows'; protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; protected $columnHeadersDataType = 'array'; public $kind; From f1f50aaada3ab74f98fe5b5461e182844ad47dcf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:47 -0700 Subject: [PATCH 0186/1274] Updated GamesManagement.php --- src/Google/Service/GamesManagement.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index ed61500df..da88b1808 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -604,6 +604,7 @@ public function reset($optParams = array()) class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection { + protected $collection_key = 'results'; public $kind; protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; protected $resultsDataType = 'array'; @@ -830,6 +831,7 @@ public function getPlayer() class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; protected $itemsDataType = 'array'; public $kind; @@ -989,6 +991,7 @@ public function getGivenName() class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection { + protected $collection_key = 'resetScoreTimeSpans'; public $kind; public $resetScoreTimeSpans; From ddb3802d5f29b66f2ec0bd829011f060f0d31881 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:48 -0700 Subject: [PATCH 0187/1274] Updated Mirror.php --- src/Google/Service/Mirror.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index a44efd08a..d35726f31 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -836,6 +836,7 @@ public function listTimelineAttachments($itemId, $optParams = array()) class Google_Service_Mirror_Account extends Google_Collection { + protected $collection_key = 'userData'; protected $authTokensType = 'Google_Service_Mirror_AuthToken'; protected $authTokensDataType = 'array'; public $features; @@ -934,6 +935,7 @@ public function getIsProcessingContent() class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Mirror_Attachment'; protected $itemsDataType = 'array'; public $kind; @@ -1002,6 +1004,7 @@ public function getType() class Google_Service_Mirror_Contact extends Google_Collection { + protected $collection_key = 'sharingFeatures'; protected $acceptCommandsType = 'Google_Service_Mirror_Command'; protected $acceptCommandsDataType = 'array'; public $acceptTypes; @@ -1139,6 +1142,7 @@ public function getType() class Google_Service_Mirror_ContactsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Mirror_Contact'; protected $itemsDataType = 'array'; public $kind; @@ -1258,6 +1262,7 @@ public function getTimestamp() class Google_Service_Mirror_LocationsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Mirror_Location'; protected $itemsDataType = 'array'; public $kind; @@ -1285,6 +1290,7 @@ public function getKind() class Google_Service_Mirror_MenuItem extends Google_Collection { + protected $collection_key = 'values'; public $action; public $id; public $payload; @@ -1382,6 +1388,7 @@ public function getState() class Google_Service_Mirror_Notification extends Google_Collection { + protected $collection_key = 'userActions'; public $collection; public $itemId; public $operation; @@ -1516,6 +1523,7 @@ public function getValue() class Google_Service_Mirror_Subscription extends Google_Collection { + protected $collection_key = 'operation'; public $callbackUrl; public $collection; public $id; @@ -1620,6 +1628,7 @@ public function getVerifyToken() class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Mirror_Subscription'; protected $itemsDataType = 'array'; public $kind; @@ -1647,6 +1656,7 @@ public function getKind() class Google_Service_Mirror_TimelineItem extends Google_Collection { + protected $collection_key = 'recipients'; protected $attachmentsType = 'Google_Service_Mirror_Attachment'; protected $attachmentsDataType = 'array'; public $bundleId; @@ -1943,6 +1953,7 @@ public function getUpdated() class Google_Service_Mirror_TimelineListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Mirror_TimelineItem'; protected $itemsDataType = 'array'; public $kind; From ebf99a793be9bb1f8b5ed985a41b4313b4af5f1b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:49 -0700 Subject: [PATCH 0188/1274] Updated CloudMonitoring.php --- src/Google/Service/CloudMonitoring.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 03fca0ff9..43b02d2ee 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -393,6 +393,7 @@ public function getKind() class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection { + protected $collection_key = 'metrics'; public $kind; protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; protected $metricsDataType = 'array'; @@ -446,6 +447,7 @@ public function getKind() class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection { + protected $collection_key = 'timeseries'; public $kind; public $nextPageToken; public $oldest; @@ -521,6 +523,7 @@ public function getKind() class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection { + protected $collection_key = 'timeseries'; public $kind; public $nextPageToken; public $oldest; @@ -581,6 +584,7 @@ public function getYoungest() class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection { + protected $collection_key = 'labels'; public $description; protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; protected $labelsDataType = 'array'; @@ -776,6 +780,7 @@ public function getStringValue() class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection { + protected $collection_key = 'buckets'; protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; protected $bucketsDataType = 'array'; protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; @@ -905,6 +910,7 @@ public function getUpperBound() class Google_Service_CloudMonitoring_Timeseries extends Google_Collection { + protected $collection_key = 'points'; protected $pointsType = 'Google_Service_CloudMonitoring_Point'; protected $pointsDataType = 'array'; protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; From 7fc887fd6578a92ba5584ffa83d4b69a5d6daa29 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:49 -0700 Subject: [PATCH 0189/1274] Updated Appsactivity.php --- src/Google/Service/Appsactivity.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 8da66dad3..867a77884 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -157,6 +157,7 @@ public function listActivities($optParams = array()) class Google_Service_Appsactivity_Activity extends Google_Collection { + protected $collection_key = 'singleEvents'; protected $combinedEventType = 'Google_Service_Appsactivity_Event'; protected $combinedEventDataType = ''; protected $singleEventsType = 'Google_Service_Appsactivity_Event'; @@ -185,6 +186,7 @@ public function getSingleEvents() class Google_Service_Appsactivity_Event extends Google_Collection { + protected $collection_key = 'permissionChanges'; public $additionalEventTypes; public $eventTimeMillis; public $fromUserDeletion; @@ -293,6 +295,7 @@ public function getUser() class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection { + protected $collection_key = 'activities'; protected $activitiesType = 'Google_Service_Appsactivity_Activity'; protected $activitiesDataType = 'array'; public $nextPageToken; @@ -320,6 +323,7 @@ public function getNextPageToken() class Google_Service_Appsactivity_Move extends Google_Collection { + protected $collection_key = 'removedParents'; protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; protected $addedParentsDataType = 'array'; protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; @@ -456,6 +460,7 @@ public function getWithLink() class Google_Service_Appsactivity_PermissionChange extends Google_Collection { + protected $collection_key = 'removedPermissions'; protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; protected $addedPermissionsDataType = 'array'; protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; From 99727b0129b23eaaf916d4a665e751d5732d563c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 28 Aug 2014 16:03:50 -0700 Subject: [PATCH 0190/1274] Updated Prediction.php --- src/Google/Service/Prediction.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index 33286ba24..4c874b9b0 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -363,6 +363,7 @@ public function update($project, $id, Google_Service_Prediction_Update $postBody class Google_Service_Prediction_Analyze extends Google_Collection { + protected $collection_key = 'errors'; protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; protected $dataDescriptionDataType = ''; public $errors; @@ -435,6 +436,7 @@ public function getSelfLink() class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection { + protected $collection_key = 'features'; protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; protected $featuresDataType = 'array'; protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; @@ -514,6 +516,7 @@ public function getText() class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection { + protected $collection_key = 'values'; public $count; protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; protected $valuesDataType = 'array'; @@ -619,6 +622,7 @@ public function getCount() class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection { + protected $collection_key = 'text'; protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; protected $numericDataType = ''; protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; @@ -784,6 +788,7 @@ public function getInput() class Google_Service_Prediction_InputInput extends Google_Collection { + protected $collection_key = 'csvInstance'; public $csvInstance; public function setCsvInstance($csvInstance) @@ -799,6 +804,7 @@ public function getCsvInstance() class Google_Service_Prediction_Insert extends Google_Collection { + protected $collection_key = 'utility'; public $id; public $modelType; public $sourceModel; @@ -1088,6 +1094,7 @@ public function getNumberLabels() class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection { + protected $collection_key = 'csvInstance'; public $csvInstance; public $output; @@ -1119,6 +1126,7 @@ class Google_Service_Prediction_InsertUtility extends Google_Model class Google_Service_Prediction_Output extends Google_Collection { + protected $collection_key = 'outputMulti'; public $id; public $kind; public $outputLabel; @@ -1216,6 +1224,7 @@ public function getScore() class Google_Service_Prediction_PredictionList extends Google_Collection { + protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Prediction_Insert2'; protected $itemsDataType = 'array'; public $kind; @@ -1265,6 +1274,7 @@ public function getSelfLink() class Google_Service_Prediction_Update extends Google_Collection { + protected $collection_key = 'csvInstance'; public $csvInstance; public $output; From 3157d2617b4f48da44cf87c8e7669443e61a20c0 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 2 Sep 2014 08:19:55 -0700 Subject: [PATCH 0191/1274] Include more description in Exception message when detail is available --- src/Google/Http/MediaFileUpload.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index a934f5672..dfe82b2f2 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -287,6 +287,15 @@ private function getResumeUri() if (200 == $code && true == $location) { return $location; } - throw new Google_Exception("Failed to start the resumable upload"); + $message = $code; + $body = @json_decode( $response->getResponseBody() ); + if ( ! empty( $body->error ) ) { + $message .= ': '; + foreach( $body->error->errors as $error ) { + $message .= "{$error->domain}, {$error->message};"; + } + $message = rtrim( $message, ';' ); + } + throw new Google_Exception("Failed to start the resumable upload (HTTP {$message})"); } } From 90eba3f97bf5164004c9ea78b709ddb6b1ccb76d Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 2 Sep 2014 09:32:14 -0700 Subject: [PATCH 0192/1274] Sometimes an error response doesn't have errors --- src/Google/Http/MediaFileUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index dfe82b2f2..35c32e98e 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -289,7 +289,7 @@ private function getResumeUri() } $message = $code; $body = @json_decode( $response->getResponseBody() ); - if ( ! empty( $body->error ) ) { + if ( ! empty( $body->error->errors ) ) { $message .= ': '; foreach( $body->error->errors as $error ) { $message .= "{$error->domain}, {$error->message};"; From 7a2db9430c5790ca44d81a0a7134e78fd3682810 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Tue, 2 Sep 2014 22:51:10 -0700 Subject: [PATCH 0193/1274] Add current status at the top of README This is part of the effort to make library status consistent with what's claimed on this page: https://devsite.googleplex.com/discovery/libraries --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dba6a26d8..1b3022b81 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ ## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. +## Beta ## +This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code. + ## Requirements ## * [PHP 5.2.1 or higher](http://www.php.net/) * [PHP JSON extension](http://php.net/manual/en/book.json.php) From c5312fe1c5b22981d4fc84b0ca8a87f09ca58cec Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 3 Sep 2014 04:38:01 -0400 Subject: [PATCH 0194/1274] Updated Replicapool.php This changes has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info/ --- src/Google/Service/Replicapool.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index db10e980b..508b82819 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -982,6 +982,7 @@ public function getInitializeParams() class Google_Service_Replicapool_NewDiskInitializeParams extends Google_Model { public $diskSizeGb; + public $diskType; public $sourceImage; public function setDiskSizeGb($diskSizeGb) @@ -994,6 +995,16 @@ public function getDiskSizeGb() return $this->diskSizeGb; } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; From 2bc58a10665348f5ede4fa5f5e6f6b8d4859d888 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Sep 2014 01:39:15 -0700 Subject: [PATCH 0195/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 80 ++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 465ab831f..5f06017a1 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -103,6 +103,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -241,6 +245,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -404,6 +412,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -602,6 +614,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -730,6 +746,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -814,6 +834,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -982,6 +1006,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'search' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1021,6 +1049,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'process' => array( + 'path' => 'tables/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'upload' => array( 'path' => 'tables/upload', 'httpMethod' => 'POST', @@ -1237,6 +1275,8 @@ public function get($id, $optParams = array()) * The ID of a Maps Engine project, used to filter the response. To list all available projects * with their IDs, send a Projects: list request. You can also find your project ID as the value of * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1259,7 +1299,8 @@ public function get($id, $optParams = array()) * The role parameter indicates that the response should only contain assets where the current user * has the specified level of access. * @opt_param string type - * An asset type restriction. If set, only resources of this type will be returned. + * A comma separated list of asset types. Returned assets will have one of the types from the + * provided list. Supported values are 'map', 'layer', 'rasterCollection' and 'table'. * @return Google_Service_MapsEngine_AssetsListResponse */ public function listAssets($optParams = array()) @@ -1396,6 +1437,8 @@ public function get($id, $optParams = array()) * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1595,6 +1638,8 @@ public function get($id, $optParams = array()) * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -1850,6 +1895,8 @@ public function get($id, $optParams = array()) * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -2007,6 +2054,8 @@ public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRast * been created at or after this time. * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -2097,6 +2146,8 @@ public function get($id, $optParams = array()) * * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -2305,6 +2356,8 @@ public function get($id, $optParams = array()) * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @opt_param string tags * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string search + * An unstructured search string used to filter the set of results based on asset metadata. * @opt_param string maxResults * The maximum number of items to include in a single response page. The maximum supported value is * 100. @@ -2348,6 +2401,20 @@ public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** + * Process a table asset. (tables.process) + * + * @param string $id + * The ID of the table. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } /** * Create a placeholder table asset to which table files can be uploaded. Once * the placeholder has been created, files are uploaded to the @@ -3452,6 +3519,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection public $etag; public $id; public $lastModifiedTime; + public $layerType; public $name; public $processingStatus; public $projectId; @@ -3551,6 +3619,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLayerType($layerType) + { + $this->layerType = $layerType; + } + + public function getLayerType() + { + return $this->layerType; + } + public function setName($name) { $this->name = $name; From a060b00838676478fdb2b154495873f837699de7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Sep 2014 01:39:16 -0700 Subject: [PATCH 0196/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 150f75410..144ed3a01 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -6750,6 +6750,7 @@ public function getSelfLink() class Google_Service_Compute_DiskType extends Google_Model { public $creationTimestamp; + public $defaultDiskSizeGb; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; public $description; @@ -6770,6 +6771,16 @@ public function getCreationTimestamp() return $this->creationTimestamp; } + public function setDefaultDiskSizeGb($defaultDiskSizeGb) + { + $this->defaultDiskSizeGb = $defaultDiskSizeGb; + } + + public function getDefaultDiskSizeGb() + { + return $this->defaultDiskSizeGb; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -7745,6 +7756,7 @@ class Google_Service_Compute_HealthStatus extends Google_Model public $healthState; public $instance; public $ipAddress; + public $port; public function setHealthState($healthState) { @@ -7775,6 +7787,16 @@ public function getIpAddress() { return $this->ipAddress; } + + public function setPort($port) + { + $this->port = $port; + } + + public function getPort() + { + return $this->port; + } } class Google_Service_Compute_HostRule extends Google_Collection @@ -8728,10 +8750,21 @@ public function getValue() class Google_Service_Compute_License extends Google_Model { + public $chargesUseFee; public $kind; public $name; public $selfLink; + public function setChargesUseFee($chargesUseFee) + { + $this->chargesUseFee = $chargesUseFee; + } + + public function getChargesUseFee() + { + return $this->chargesUseFee; + } + public function setKind($kind) { $this->kind = $kind; From 239ac01c019a7cd915890baab810d5ab981c6f76 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Sep 2014 01:39:17 -0700 Subject: [PATCH 0197/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 154 ++++++++++++++++---------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 5ab238856..79e15405b 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -70,10 +70,10 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'beacons/{datasetId}', + 'path' => 'beacons/{variantsetId}', 'httpMethod' => 'GET', 'parameters' => array( - 'datasetId' => array( + 'variantsetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -440,7 +440,7 @@ public function __construct(Google_Client $client) 'path' => 'variants/summary', 'httpMethod' => 'GET', 'parameters' => array( - 'datasetId' => array( + 'variantsetId' => array( 'location' => 'query', 'type' => 'string', ), @@ -496,8 +496,8 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * This is an experimental API that provides a Global Alliance for Genomics and * Health Beacon. It may change at any time. (beacons.get) * - * @param string $datasetId - * The ID of the dataset to query over. It must be public. Private datasets will return an + * @param string $variantsetId + * The ID of the variantset to query over. It must be public. Private variantsets will return an * unauthorized exception. * @param array $optParams Optional parameters. * @@ -509,9 +509,9 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * Required. The 1-based position to query at. * @return Google_Service_Genomics_Beacon */ - public function get($datasetId, $optParams = array()) + public function get($variantsetId, $optParams = array()) { - $params = array('datasetId' => $datasetId); + $params = array('variantsetId' => $variantsetId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Beacon"); } @@ -1099,12 +1099,12 @@ public function get($variantId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } /** - * Gets a summary of all the variant data in a dataset. (variants.getSummary) + * Gets a summary of all the variant data in a variantset. (variants.getSummary) * * @param array $optParams Optional parameters. * - * @opt_param string datasetId - * Required. The ID of the dataset to get variant summary information for. + * @opt_param string variantsetId + * Required. The ID of the variantset to get variant summary information for. * @return Google_Service_Genomics_GetVariantsSummaryResponse */ public function getSummary($optParams = array()) @@ -1269,10 +1269,10 @@ class Google_Service_Genomics_CallInfo extends Google_Model class Google_Service_Genomics_Callset extends Google_Model { public $created; - public $datasetId; public $id; public $info; public $name; + public $variantsetId; public function setCreated($created) { @@ -1284,16 +1284,6 @@ public function getCreated() return $this->created; } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } - public function setId($id) { $this->id = $id; @@ -1323,6 +1313,16 @@ public function getName() { return $this->name; } + + public function setVariantsetId($variantsetId) + { + $this->variantsetId = $variantsetId; + } + + public function getVariantsetId() + { + return $this->variantsetId; + } } class Google_Service_Genomics_CallsetInfo extends Google_Model @@ -1576,9 +1576,9 @@ class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection public $bigqueryDataset; public $bigqueryTable; public $callsetIds; - public $datasetId; public $format; public $projectId; + public $variantsetId; public function setBigqueryDataset($bigqueryDataset) { @@ -1610,16 +1610,6 @@ public function getCallsetIds() return $this->callsetIds; } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } - public function setFormat($format) { $this->format = $format; @@ -1639,6 +1629,16 @@ public function getProjectId() { return $this->projectId; } + + public function setVariantsetId($variantsetId) + { + $this->variantsetId = $variantsetId; + } + + public function getVariantsetId() + { + return $this->variantsetId; + } } class Google_Service_Genomics_ExportVariantsResponse extends Google_Model @@ -1879,19 +1879,9 @@ public function getJobId() class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; - public $datasetId; public $format; public $sourceUris; - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } + public $variantsetId; public function setFormat($format) { @@ -1912,6 +1902,16 @@ public function getSourceUris() { return $this->sourceUris; } + + public function setVariantsetId($variantsetId) + { + $this->variantsetId = $variantsetId; + } + + public function getVariantsetId() + { + return $this->variantsetId; + } } class Google_Service_Genomics_ImportVariantsResponse extends Google_Model @@ -2716,21 +2716,11 @@ public function getUri() class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection { - protected $collection_key = 'datasetIds'; - public $datasetIds; + protected $collection_key = 'variantsetIds'; public $maxResults; public $name; public $pageToken; - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - - public function getDatasetIds() - { - return $this->datasetIds; - } + public $variantsetIds; public function setMaxResults($maxResults) { @@ -2761,6 +2751,16 @@ public function getPageToken() { return $this->pageToken; } + + public function setVariantsetIds($variantsetIds) + { + $this->variantsetIds = $variantsetIds; + } + + public function getVariantsetIds() + { + return $this->variantsetIds; + } } class Google_Service_Genomics_SearchCallsetsResponse extends Google_Collection @@ -3072,12 +3072,12 @@ class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection public $callsetIds; public $callsetNames; public $contig; - public $datasetId; public $endPosition; public $maxResults; public $pageToken; public $startPosition; public $variantName; + public $variantsetId; public function setCallsetIds($callsetIds) { @@ -3109,16 +3109,6 @@ public function getContig() return $this->contig; } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } - public function setEndPosition($endPosition) { $this->endPosition = $endPosition; @@ -3168,6 +3158,16 @@ public function getVariantName() { return $this->variantName; } + + public function setVariantsetId($variantsetId) + { + $this->variantsetId = $variantsetId; + } + + public function getVariantsetId() + { + return $this->variantsetId; + } } class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection @@ -3206,13 +3206,13 @@ class Google_Service_Genomics_Variant extends Google_Collection protected $callsDataType = 'array'; public $contig; public $created; - public $datasetId; public $end; public $id; public $info; public $names; public $position; public $referenceBases; + public $variantsetId; public function setAlternateBases($alternateBases) { @@ -3254,16 +3254,6 @@ public function getCreated() return $this->created; } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } - public function setEnd($end) { $this->end = $end; @@ -3323,6 +3313,16 @@ public function getReferenceBases() { return $this->referenceBases; } + + public function setVariantsetId($variantsetId) + { + $this->variantsetId = $variantsetId; + } + + public function getVariantsetId() + { + return $this->variantsetId; + } } class Google_Service_Genomics_VariantInfo extends Google_Model From 4229ce09554c022d1cb7980f501a4e1697e79d4d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Sep 2014 01:39:17 -0700 Subject: [PATCH 0198/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index e4b5562d9..5691ebad9 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -692,7 +692,8 @@ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optPa } /** * Lists all the Jobs in the specified project that were started by the user. - * (jobs.listJobs) + * The job list returns in reverse chronological order of when the jobs were + * created, starting with the most recent job created. (jobs.listJobs) * * @param string $projectId * Project ID of the jobs to list From dfefb45b9b193089fa6c40da911ad130270cbeb7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 5 Sep 2014 01:40:30 -0700 Subject: [PATCH 0199/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 84 +++++++++++++++++++++----- 1 file changed, 69 insertions(+), 15 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 392d934bb..b2474c1bb 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -3032,9 +3032,9 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; protected $loyaltyPointsDataType = ''; public $material; - public $merchantMultipackQuantity; public $mobileLink; public $mpn; + public $multipack; public $offerId; public $onlineOnly; public $pattern; @@ -3056,8 +3056,10 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; protected $taxesDataType = 'array'; public $title; - public $unitPricingBaseMeasure; - public $unitPricingMeasure; + protected $unitPricingBaseMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure'; + protected $unitPricingBaseMeasureDataType = ''; + protected $unitPricingMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingMeasure'; + protected $unitPricingMeasureDataType = ''; public $validatedDestinations; protected $warningsType = 'Google_Service_ShoppingContent_Error'; protected $warningsDataType = 'array'; @@ -3432,16 +3434,6 @@ public function getMaterial() return $this->material; } - public function setMerchantMultipackQuantity($merchantMultipackQuantity) - { - $this->merchantMultipackQuantity = $merchantMultipackQuantity; - } - - public function getMerchantMultipackQuantity() - { - return $this->merchantMultipackQuantity; - } - public function setMobileLink($mobileLink) { $this->mobileLink = $mobileLink; @@ -3462,6 +3454,16 @@ public function getMpn() return $this->mpn; } + public function setMultipack($multipack) + { + $this->multipack = $multipack; + } + + public function getMultipack() + { + return $this->multipack; + } + public function setOfferId($offerId) { $this->offerId = $offerId; @@ -3622,7 +3624,7 @@ public function getTitle() return $this->title; } - public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) + public function setUnitPricingBaseMeasure(Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure $unitPricingBaseMeasure) { $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; } @@ -3632,7 +3634,7 @@ public function getUnitPricingBaseMeasure() return $this->unitPricingBaseMeasure; } - public function setUnitPricingMeasure($unitPricingMeasure) + public function setUnitPricingMeasure(Google_Service_ShoppingContent_ProductUnitPricingMeasure $unitPricingMeasure) { $this->unitPricingMeasure = $unitPricingMeasure; } @@ -4161,6 +4163,58 @@ public function getTaxShip() } } +class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model +{ + public $unit; + public $value; + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model +{ + public $unit; + public $value; + + public function setUnit($unit) + { + $this->unit = $unit; + } + + public function getUnit() + { + return $this->unit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } +} + class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; From 3b6965546239153aec86023b9f45df8210858396 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 5 Sep 2014 01:40:31 -0700 Subject: [PATCH 0200/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index a6bf70395..7adaec0e5 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -1809,7 +1809,7 @@ public function listFiles($optParams = array()) * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. * @opt_param bool newRevision * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If not set or true, a new blob is created as head revision, and previous + * revision is replaced. If true or not set, 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. @@ -1893,7 +1893,7 @@ public function untrash($fileId, $optParams = array()) * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. * @opt_param bool newRevision * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If not set or true, a new blob is created as head revision, and previous + * revision is replaced. If true or not set, 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. From c2d8dc70fceeb727c1752ffb0f895ca461b151e7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 5 Sep 2014 01:40:31 -0700 Subject: [PATCH 0201/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 26fdde442..0ed662742 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -1303,6 +1303,7 @@ class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model public $kind; public $name; public $privateExchangeMinCpm; + public $publisherBlocksOverriden; public $sellerNetwork; public $startTime; @@ -1396,6 +1397,16 @@ public function getPrivateExchangeMinCpm() return $this->privateExchangeMinCpm; } + public function setPublisherBlocksOverriden($publisherBlocksOverriden) + { + $this->publisherBlocksOverriden = $publisherBlocksOverriden; + } + + public function getPublisherBlocksOverriden() + { + return $this->publisherBlocksOverriden; + } + public function setSellerNetwork($sellerNetwork) { $this->sellerNetwork = $sellerNetwork; From 1fce426665fe9016ace96a964c435165412ea0c5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 6 Sep 2014 01:41:40 -0700 Subject: [PATCH 0202/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index aba94d321..2d26d3c5c 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -121,6 +121,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'validate' => array( + 'path' => '{packageName}/edits/{editId}:validate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -1149,6 +1164,23 @@ public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $po $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); } + /** + * Checks that the edit can be successfully committed. The edit's changes are + * not applied to the live app. (edits.validate) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function validate($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('validate', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } } /** From f9f4dd051b4c2bf5b9ce8c8e1322d11f25c62711 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 6 Sep 2014 01:41:40 -0700 Subject: [PATCH 0203/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 79e15405b..5854aff82 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -506,7 +506,7 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * @opt_param string contig * Required. The contig to query over. * @opt_param string position - * Required. The 1-based position to query at. + * Required. The 0-based position to query. * @return Google_Service_Genomics_Beacon */ public function get($variantsetId, $optParams = array()) @@ -1104,7 +1104,7 @@ public function get($variantId, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string variantsetId - * Required. The ID of the variantset to get variant summary information for. + * Required. The ID of the variant set to get variant summary information for. * @return Google_Service_Genomics_GetVariantsSummaryResponse */ public function getSummary($optParams = array()) @@ -1519,10 +1519,11 @@ public function getJobId() class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection { - protected $collection_key = 'readsetIds'; + protected $collection_key = 'referenceNames'; public $exportUri; public $projectId; public $readsetIds; + public $referenceNames; public function setExportUri($exportUri) { @@ -1553,6 +1554,16 @@ public function getReadsetIds() { return $this->readsetIds; } + + public function setReferenceNames($referenceNames) + { + $this->referenceNames = $referenceNames; + } + + public function getReferenceNames() + { + return $this->referenceNames; + } } class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model From be015d3297d85245a79237695da517a00a7b743e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 6 Sep 2014 01:41:40 -0700 Subject: [PATCH 0204/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 963a007ce..8e2e3cf3f 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -318,6 +318,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'metadataHeaders' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'format' => array( 'location' => 'query', 'type' => 'string', @@ -906,6 +911,8 @@ public function delete($userId, $id, $optParams = array()) * The ID of the message to retrieve. * @param array $optParams Optional parameters. * + * @opt_param string metadataHeaders + * When given and format is METADATA, only include headers specified. * @opt_param string format * The format to return the message in. * @return Google_Service_Gmail_Message From e00f70d76f1b52235fff8f8e8e0ed3acb250f55e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 7 Sep 2014 01:42:50 -0700 Subject: [PATCH 0205/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 404cc4299..917246abc 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1893,7 +1893,7 @@ public function bind($id, $part, $optParams = array()) * broadcast stream is delayed. * @opt_param string walltime * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. * @return Google_Service_YouTube_LiveBroadcast */ public function control($id, $part, $optParams = array()) From 9a4eecd08c029ad280469474411d12cfc77b3eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Pelletier?= Date: Tue, 9 Sep 2014 07:19:23 +0200 Subject: [PATCH 0206/1274] Add getRefreshToken method --- src/Google/Auth/OAuth2.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index e5b603131..d875958e6 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -189,6 +189,15 @@ public function getAccessToken() return json_encode($this->token); } + public function getRefreshToken() + { + if (array_key_exists('refresh_token', $this->token)) { + return this->token['refresh_token']; + } else { + return null; + } + } + public function setState($state) { $this->state = $state; From e8f4f917e84e4efb6094ec8eca0ec1a4dfc5bcbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Pelletier?= Date: Tue, 9 Sep 2014 07:23:27 +0200 Subject: [PATCH 0207/1274] Add getRefreshToken method --- src/Google/Client.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Client.php b/src/Google/Client.php index 1ec2f32c3..d7c782ab8 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -247,6 +247,15 @@ public function getAccessToken() // in the library. return (null == $token || 'null' == $token || '[]' == $token) ? null : $token; } + + /** + * Get the OAuth 2.0 refresh token. + * @return string $refreshToken refresh token or null if not available + */ + public function getRefreshToken() + { + return = $this->getAuth()->getRefreshToken(); + } /** * Returns if the access_token is expired. From db37c42f70e3dd53615bee6eb257daee09de1943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gre=CC=81gory=20Pelletier?= Date: Tue, 9 Sep 2014 07:38:50 +0200 Subject: [PATCH 0208/1274] Fix typos --- src/Google/Auth/OAuth2.php | 2 +- src/Google/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index d875958e6..764ef8ebd 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -192,7 +192,7 @@ public function getAccessToken() public function getRefreshToken() { if (array_key_exists('refresh_token', $this->token)) { - return this->token['refresh_token']; + return $this->token['refresh_token']; } else { return null; } diff --git a/src/Google/Client.php b/src/Google/Client.php index d7c782ab8..3c40d7cbc 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -254,7 +254,7 @@ public function getAccessToken() */ public function getRefreshToken() { - return = $this->getAuth()->getRefreshToken(); + return $this->getAuth()->getRefreshToken(); } /** From 7f27039bef9043350be18fe42bfeadd635308b25 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 10 Sep 2014 01:46:00 -0700 Subject: [PATCH 0209/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 526 +++++++++++++++++++++++++++++- 1 file changed, 525 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 5f06017a1..5ce1a8495 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -221,6 +221,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'getPublished' => array( + 'path' => 'layers/{id}/published', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'layers', 'httpMethod' => 'GET', @@ -278,6 +288,23 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'listPublished' => array( + 'path' => 'layers/published', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'patch' => array( 'path' => 'layers/{id}', 'httpMethod' => 'PATCH', @@ -388,6 +415,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'getPublished' => array( + 'path' => 'maps/{id}/published', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'maps', 'httpMethod' => 'GET', @@ -445,6 +482,23 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'listPublished' => array( + 'path' => 'maps/published', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'patch' => array( 'path' => 'maps/{id}', 'httpMethod' => 'PATCH', @@ -1418,6 +1472,20 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); } + /** + * Return the published metadata for a particular layer. (layers.getPublished) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishedLayer + */ + public function getPublished($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedLayer"); + } /** * Return all layers readable by the current user. (layers.listLayers) * @@ -1468,6 +1536,30 @@ public function listLayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); } + /** + * Return all published layers readable by the current user. + * (layers.listPublished) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @return Google_Service_MapsEngine_PublishedLayersListResponse + */ + public function listPublished($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedLayersListResponse"); + } /** * Mutate a layer asset. (layers.patch) * @@ -1619,6 +1711,20 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); } + /** + * Return the published metadata for a particular map. (maps.getPublished) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishedMap + */ + public function getPublished($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedMap"); + } /** * Return all maps readable by the current user. (maps.listMaps) * @@ -1669,6 +1775,29 @@ public function listMaps($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); } + /** + * Return all published maps readable by the current user. (maps.listPublished) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @return Google_Service_MapsEngine_PublishedMapsListResponse + */ + public function listPublished($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedMapsListResponse"); + } /** * Mutate a map asset. (maps.patch) * @@ -1769,7 +1898,7 @@ public function create($projectId, Google_Service_MapsEngine_Icon $postBody, $op return $this->call('create', array($params), "Google_Service_MapsEngine_Icon"); } /** - * Return metadata for a specific icon (icons.get) + * Return an icon or its associated metadata (icons.get) * * @param string $projectId * The ID of the project. @@ -3072,6 +3201,7 @@ class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collec protected $collection_key = 'features'; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; + public $normalizeGeometries; public function setFeatures($features) { @@ -3082,6 +3212,16 @@ public function getFeatures() { return $this->features; } + + public function setNormalizeGeometries($normalizeGeometries) + { + $this->normalizeGeometries = $normalizeGeometries; + } + + public function getNormalizeGeometries() + { + return $this->normalizeGeometries; + } } class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection @@ -3089,6 +3229,7 @@ class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collect protected $collection_key = 'features'; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; + public $normalizeGeometries; public function setFeatures($features) { @@ -3099,6 +3240,16 @@ public function getFeatures() { return $this->features; } + + public function setNormalizeGeometries($normalizeGeometries) + { + $this->normalizeGeometries = $normalizeGeometries; + } + + public function getNormalizeGeometries() + { + return $this->normalizeGeometries; + } } class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection @@ -3374,6 +3525,10 @@ class Google_Service_MapsEngine_IconStyle extends Google_Model { public $id; public $name; + protected $scaledShapeType = 'Google_Service_MapsEngine_ScaledShape'; + protected $scaledShapeDataType = ''; + protected $scalingFunctionType = 'Google_Service_MapsEngine_ScalingFunction'; + protected $scalingFunctionDataType = ''; public function setId($id) { @@ -3394,6 +3549,26 @@ public function getName() { return $this->name; } + + public function setScaledShape(Google_Service_MapsEngine_ScaledShape $scaledShape) + { + $this->scaledShape = $scaledShape; + } + + public function getScaledShape() + { + return $this->scaledShape; + } + + public function setScalingFunction(Google_Service_MapsEngine_ScalingFunction $scalingFunction) + { + $this->scalingFunction = $scalingFunction; + } + + public function getScalingFunction() + { + return $this->scalingFunction; + } } class Google_Service_MapsEngine_IconsListResponse extends Google_Collection @@ -4412,6 +4587,214 @@ class Google_Service_MapsEngine_PublishResponse extends Google_Model } +class Google_Service_MapsEngine_PublishedLayer extends Google_Model +{ + public $description; + public $etag; + public $id; + public $layerType; + public $name; + public $projectId; + + 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 setLayerType($layerType) + { + $this->layerType = $layerType; + } + + public function getLayerType() + { + return $this->layerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Collection +{ + protected $collection_key = 'layers'; + protected $layersType = 'Google_Service_MapsEngine_PublishedLayer'; + protected $layersDataType = 'array'; + public $nextPageToken; + + public function setLayers($layers) + { + $this->layers = $layers; + } + + public function getLayers() + { + return $this->layers; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_MapsEngine_PublishedMap extends Google_Model +{ + protected $contentsType = 'Google_Service_MapsEngine_MapItem'; + protected $contentsDataType = ''; + public $defaultViewport; + public $description; + public $etag; + public $id; + public $name; + public $projectId; + + public function setContents(Google_Service_MapsEngine_MapItem $contents) + { + $this->contents = $contents; + } + + public function getContents() + { + return $this->contents; + } + + public function setDefaultViewport($defaultViewport) + { + $this->defaultViewport = $defaultViewport; + } + + public function getDefaultViewport() + { + return $this->defaultViewport; + } + + 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 setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collection +{ + protected $collection_key = 'maps'; + protected $mapsType = 'Google_Service_MapsEngine_PublishedMap'; + protected $mapsDataType = 'array'; + public $nextPageToken; + + public function setMaps($maps) + { + $this->maps = $maps; + } + + public function getMaps() + { + return $this->maps; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_MapsEngine_Raster extends Google_Collection { protected $collection_key = 'files'; @@ -4984,6 +5367,95 @@ public function getRasters() } } +class Google_Service_MapsEngine_ScaledShape extends Google_Model +{ + protected $borderType = 'Google_Service_MapsEngine_Border'; + protected $borderDataType = ''; + protected $fillType = 'Google_Service_MapsEngine_Color'; + protected $fillDataType = ''; + public $shape; + + public function setBorder(Google_Service_MapsEngine_Border $border) + { + $this->border = $border; + } + + public function getBorder() + { + return $this->border; + } + + public function setFill(Google_Service_MapsEngine_Color $fill) + { + $this->fill = $fill; + } + + public function getFill() + { + return $this->fill; + } + + public function setShape($shape) + { + $this->shape = $shape; + } + + public function getShape() + { + return $this->shape; + } +} + +class Google_Service_MapsEngine_ScalingFunction extends Google_Model +{ + public $column; + public $scalingType; + protected $sizeRangeType = 'Google_Service_MapsEngine_SizeRange'; + protected $sizeRangeDataType = ''; + protected $valueRangeType = 'Google_Service_MapsEngine_ValueRange'; + protected $valueRangeDataType = ''; + + public function setColumn($column) + { + $this->column = $column; + } + + public function getColumn() + { + return $this->column; + } + + public function setScalingType($scalingType) + { + $this->scalingType = $scalingType; + } + + public function getScalingType() + { + return $this->scalingType; + } + + public function setSizeRange(Google_Service_MapsEngine_SizeRange $sizeRange) + { + $this->sizeRange = $sizeRange; + } + + public function getSizeRange() + { + return $this->sizeRange; + } + + public function setValueRange(Google_Service_MapsEngine_ValueRange $valueRange) + { + $this->valueRange = $valueRange; + } + + public function getValueRange() + { + return $this->valueRange; + } +} + class Google_Service_MapsEngine_Schema extends Google_Collection { protected $collection_key = 'columns'; @@ -5023,6 +5495,32 @@ public function getPrimaryKey() } } +class Google_Service_MapsEngine_SizeRange extends Google_Model +{ + public $max; + public $min; + + 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_MapsEngine_Table extends Google_Collection { protected $collection_key = 'tags'; @@ -5249,6 +5747,32 @@ public function getTables() } } +class Google_Service_MapsEngine_ValueRange extends Google_Model +{ + public $max; + public $min; + + 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_MapsEngine_VectorStyle extends Google_Collection { protected $collection_key = 'displayRules'; From 71b2cbe76dc1b23a9935d52798dac46c1f01caec Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 10 Sep 2014 01:46:01 -0700 Subject: [PATCH 0210/1274] Updated AdExchangeSeller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeSeller.php | 576 ++++++++---------------- 1 file changed, 193 insertions(+), 383 deletions(-) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index 9c1c8231e..bcdfde796 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -16,7 +16,7 @@ */ /** - * Service definition for AdExchangeSeller (v1.1). + * Service definition for AdExchangeSeller (v2.0). * *

* Gives Ad Exchange seller users access to their inventory and the ability to generate reports @@ -37,18 +37,15 @@ class Google_Service_AdExchangeSeller extends Google_Service const ADEXCHANGE_SELLER_READONLY = "https://www.googleapis.com/auth/adexchange.seller.readonly"; public $accounts; - public $adclients; - public $adunits; - public $adunits_customchannels; - public $alerts; - public $customchannels; - public $customchannels_adunits; - public $metadata_dimensions; - public $metadata_metrics; - public $preferreddeals; - public $reports; - public $reports_saved; - public $urlchannels; + public $accounts_adclients; + public $accounts_alerts; + public $accounts_customchannels; + public $accounts_metadata_dimensions; + public $accounts_metadata_metrics; + public $accounts_preferreddeals; + public $accounts_reports; + public $accounts_reports_saved; + public $accounts_urlchannels; /** @@ -59,8 +56,8 @@ class Google_Service_AdExchangeSeller extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'adexchangeseller/v1.1/'; - $this->version = 'v1.1'; + $this->servicePath = 'adexchangeseller/v2.0/'; + $this->version = 'v2.0'; $this->serviceName = 'adexchangeseller'; $this->accounts = new Google_Service_AdExchangeSeller_Accounts_Resource( @@ -79,18 +76,8 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdExchangeSeller_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients', + ),'list' => array( + 'path' => 'accounts', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( @@ -106,40 +93,21 @@ public function __construct(Google_Client $client) ) ) ); - $this->adunits = new Google_Service_AdExchangeSeller_Adunits_Resource( + $this->accounts_adclients = new Google_Service_AdExchangeSeller_AccountsAdclients_Resource( $this, $this->serviceName, - 'adunits', + 'adclients', array( 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/adunits', + 'list' => array( + 'path' => 'accounts/{accountId}/adclients', 'httpMethod' => 'GET', 'parameters' => array( - 'adClientId' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -153,49 +121,21 @@ public function __construct(Google_Client $client) ) ) ); - $this->adunits_customchannels = new Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource( + $this->accounts_alerts = new Google_Service_AdExchangeSeller_AccountsAlerts_Resource( $this, $this->serviceName, - 'customchannels', + 'alerts', array( 'methods' => array( 'list' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', + 'path' => 'accounts/{accountId}/alerts', 'httpMethod' => 'GET', 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->alerts = new Google_Service_AdExchangeSeller_Alerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'alerts', - 'httpMethod' => 'GET', - 'parameters' => array( 'locale' => array( 'location' => 'query', 'type' => 'string', @@ -205,16 +145,21 @@ public function __construct(Google_Client $client) ) ) ); - $this->customchannels = new Google_Service_AdExchangeSeller_Customchannels_Resource( + $this->accounts_customchannels = new Google_Service_AdExchangeSeller_AccountsCustomchannels_Resource( $this, $this->serviceName, 'customchannels', array( 'methods' => array( 'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', + 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'adClientId' => array( 'location' => 'path', 'type' => 'string', @@ -227,9 +172,14 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', + 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'adClientId' => array( 'location' => 'path', 'type' => 'string', @@ -248,81 +198,61 @@ public function __construct(Google_Client $client) ) ) ); - $this->customchannels_adunits = new Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource( + $this->accounts_metadata_dimensions = new Google_Service_AdExchangeSeller_AccountsMetadataDimensions_Resource( $this, $this->serviceName, - 'adunits', + 'dimensions', array( 'methods' => array( 'list' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', + 'path' => 'accounts/{accountId}/metadata/dimensions', 'httpMethod' => 'GET', 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) ) ); - $this->metadata_dimensions = new Google_Service_AdExchangeSeller_MetadataDimensions_Resource( - $this, - $this->serviceName, - 'dimensions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/dimensions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->metadata_metrics = new Google_Service_AdExchangeSeller_MetadataMetrics_Resource( + $this->accounts_metadata_metrics = new Google_Service_AdExchangeSeller_AccountsMetadataMetrics_Resource( $this, $this->serviceName, 'metrics', array( 'methods' => array( 'list' => array( - 'path' => 'metadata/metrics', + 'path' => 'accounts/{accountId}/metadata/metrics', 'httpMethod' => 'GET', - 'parameters' => array(), + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->preferreddeals = new Google_Service_AdExchangeSeller_Preferreddeals_Resource( + $this->accounts_preferreddeals = new Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource( $this, $this->serviceName, 'preferreddeals', array( 'methods' => array( 'get' => array( - 'path' => 'preferreddeals/{dealId}', + 'path' => 'accounts/{accountId}/preferreddeals/{dealId}', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'dealId' => array( 'location' => 'path', 'type' => 'string', @@ -330,23 +260,34 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'preferreddeals', + 'path' => 'accounts/{accountId}/preferreddeals', 'httpMethod' => 'GET', - 'parameters' => array(), + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->reports = new Google_Service_AdExchangeSeller_Reports_Resource( + $this->accounts_reports = new Google_Service_AdExchangeSeller_AccountsReports_Resource( $this, $this->serviceName, 'reports', array( 'methods' => array( 'generate' => array( - 'path' => 'reports', + 'path' => 'accounts/{accountId}/reports', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'startDate' => array( 'location' => 'query', 'type' => 'string', @@ -394,16 +335,21 @@ public function __construct(Google_Client $client) ) ) ); - $this->reports_saved = new Google_Service_AdExchangeSeller_ReportsSaved_Resource( + $this->accounts_reports_saved = new Google_Service_AdExchangeSeller_AccountsReportsSaved_Resource( $this, $this->serviceName, 'saved', array( 'methods' => array( 'generate' => array( - 'path' => 'reports/{savedReportId}', + 'path' => 'accounts/{accountId}/reports/{savedReportId}', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'savedReportId' => array( 'location' => 'path', 'type' => 'string', @@ -423,9 +369,14 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'reports/saved', + 'path' => 'accounts/{accountId}/reports/saved', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -439,16 +390,21 @@ public function __construct(Google_Client $client) ) ) ); - $this->urlchannels = new Google_Service_AdExchangeSeller_Urlchannels_Resource( + $this->accounts_urlchannels = new Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource( $this, $this->serviceName, 'urlchannels', array( 'methods' => array( 'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', + 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', 'httpMethod' => 'GET', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'adClientId' => array( 'location' => 'path', 'type' => 'string', @@ -496,127 +452,60 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account"); } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $adclients = $adexchangesellerService->adclients; - * - */ -class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_Resource -{ - /** - * List all ad clients in this Ad Exchange account. (adclients.listAdclients) + * List all accounts available to this Ad Exchange account. + * (accounts.listAccounts) * * @param array $optParams Optional parameters. * * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this + * A continuation token, used to page through accounts. To retrieve the next page, set this * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdClients + * @opt_param int maxResults + * The maximum number of accounts to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_Accounts */ - public function listAdclients($optParams = array()) + public function listAccounts($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients"); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Accounts"); } } /** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_AdUnit"); - } - /** - * List all ad units in the specified ad client for this Ad Exchange account. - * (adunits.listAdunits) - * - * @param string $adClientId - * Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdUnits - */ - public function listAdunits($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); - } -} - -/** - * The "customchannels" collection of methods. + * The "adclients" collection of methods. * Typical usage is: * * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $customchannels = $adexchangesellerService->customchannels; + * $adclients = $adexchangesellerService->adclients; * */ -class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsAdclients_Resource extends Google_Service_Resource { /** - * List all custom channels which the specified ad unit belongs to. - * (customchannels.listAdunitsCustomchannels) + * List all ad clients in this Ad Exchange account. + * (adclients.listAccountsAdclients) * - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. + * @param string $accountId + * Account to which the ad client belongs. * @param array $optParams Optional parameters. * * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this + * A continuation token, used to page through ad clients. To retrieve the next page, set this * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_CustomChannels + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_AdClients */ - public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) + public function listAccountsAdclients($accountId, $optParams = array()) { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients"); } } - /** * The "alerts" collection of methods. * Typical usage is: @@ -625,12 +514,14 @@ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = a * $alerts = $adexchangesellerService->alerts; * */ -class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsAlerts_Resource extends Google_Service_Resource { /** - * List the alerts for this Ad Exchange account. (alerts.listAlerts) + * List the alerts for this Ad Exchange account. (alerts.listAccountsAlerts) * + * @param string $accountId + * Account owning the alerts. * @param array $optParams Optional parameters. * * @opt_param string locale @@ -639,14 +530,13 @@ class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Res * unsupported. * @return Google_Service_AdExchangeSeller_Alerts */ - public function listAlerts($optParams = array()) + public function listAccountsAlerts($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts"); } } - /** * The "customchannels" collection of methods. * Typical usage is: @@ -655,13 +545,15 @@ public function listAlerts($optParams = array()) * $customchannels = $adexchangesellerService->customchannels; * */ -class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsCustomchannels_Resource extends Google_Service_Resource { /** * Get the specified custom channel from the specified ad client. * (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 @@ -669,16 +561,18 @@ class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Ser * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_CustomChannel */ - public function get($adClientId, $customChannelId, $optParams = array()) + public function get($accountId, $adClientId, $customChannelId, $optParams = array()) { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel"); } /** * List all custom channels in the specified ad client for this Ad Exchange - * account. (customchannels.listCustomchannels) + * account. (customchannels.listAccountsCustomchannels) * + * @param string $accountId + * Account to which the ad client belongs. * @param string $adClientId * Ad client for which to list custom channels. * @param array $optParams Optional parameters. @@ -690,52 +584,13 @@ public function get($adClientId, $customChannelId, $optParams = array()) * The maximum number of custom channels to include in the response, used for paging. * @return Google_Service_AdExchangeSeller_CustomChannels */ - public function listCustomchannels($adClientId, $optParams = array()) + public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) { - $params = array('adClientId' => $adClientId); + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); } } - -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $adunits = $adexchangesellerService->adunits; - * - */ -class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Google_Service_Resource -{ - - /** - * List all ad units in the specified custom channel. - * (adunits.listCustomchannelsAdunits) - * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdUnits - */ - public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); - } -} - /** * The "metadata" collection of methods. * Typical usage is: @@ -744,7 +599,7 @@ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optPar * $metadata = $adexchangesellerService->metadata; * */ -class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsMetadata_Resource extends Google_Service_Resource { } @@ -757,19 +612,21 @@ class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_R * $dimensions = $adexchangesellerService->dimensions; * */ -class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsMetadataDimensions_Resource extends Google_Service_Resource { /** * List the metadata for the dimensions available to this AdExchange account. - * (dimensions.listMetadataDimensions) + * (dimensions.listAccountsMetadataDimensions) * + * @param string $accountId + * Account with visibility to the dimensions. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_Metadata */ - public function listMetadataDimensions($optParams = array()) + public function listAccountsMetadataDimensions($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); } @@ -782,24 +639,25 @@ public function listMetadataDimensions($optParams = array()) * $metrics = $adexchangesellerService->metrics; * */ -class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsMetadataMetrics_Resource extends Google_Service_Resource { /** * List the metadata for the metrics available to this AdExchange account. - * (metrics.listMetadataMetrics) + * (metrics.listAccountsMetadataMetrics) * + * @param string $accountId + * Account with visibility to the metrics. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_Metadata */ - public function listMetadataMetrics($optParams = array()) + public function listAccountsMetadataMetrics($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); } } - /** * The "preferreddeals" collection of methods. * Typical usage is: @@ -808,39 +666,42 @@ public function listMetadataMetrics($optParams = array()) * $preferreddeals = $adexchangesellerService->preferreddeals; * */ -class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource extends Google_Service_Resource { /** * Get information about the selected Ad Exchange Preferred Deal. * (preferreddeals.get) * + * @param string $accountId + * Account owning the deal. * @param string $dealId * Preferred deal to get information about. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_PreferredDeal */ - public function get($dealId, $optParams = array()) + public function get($accountId, $dealId, $optParams = array()) { - $params = array('dealId' => $dealId); + $params = array('accountId' => $accountId, 'dealId' => $dealId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); } /** * List the preferred deals for this Ad Exchange account. - * (preferreddeals.listPreferreddeals) + * (preferreddeals.listAccountsPreferreddeals) * + * @param string $accountId + * Account owning the deals. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_PreferredDeals */ - public function listPreferreddeals($optParams = array()) + public function listAccountsPreferreddeals($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals"); } } - /** * The "reports" collection of methods. * Typical usage is: @@ -849,7 +710,7 @@ public function listPreferreddeals($optParams = array()) * $reports = $adexchangesellerService->reports; * */ -class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsReports_Resource extends Google_Service_Resource { /** @@ -857,6 +718,8 @@ class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Re * 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 which owns the generated report. * @param string $startDate * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. * @param string $endDate @@ -882,9 +745,9 @@ class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Re * Dimensions to base the report on. * @return Google_Service_AdExchangeSeller_Report */ - public function generate($startDate, $endDate, $optParams = array()) + public function generate($accountId, $startDate, $endDate, $optParams = array()) { - $params = array('startDate' => $startDate, 'endDate' => $endDate); + $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); } @@ -898,13 +761,15 @@ public function generate($startDate, $endDate, $optParams = array()) * $saved = $adexchangesellerService->saved; * */ -class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsReportsSaved_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 $accountId + * Account owning the saved report. * @param string $savedReportId * The saved report to retrieve. * @param array $optParams Optional parameters. @@ -918,15 +783,18 @@ class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Servi * The maximum number of rows of report data to return. * @return Google_Service_AdExchangeSeller_Report */ - public function generate($savedReportId, $optParams = array()) + public function generate($accountId, $savedReportId, $optParams = array()) { - $params = array('savedReportId' => $savedReportId); + $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId); $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); } /** - * List all saved reports in this Ad Exchange account. (saved.listReportsSaved) + * List all saved reports in this Ad Exchange account. + * (saved.listAccountsReportsSaved) * + * @param string $accountId + * Account owning the saved reports. * @param array $optParams Optional parameters. * * @opt_param string pageToken @@ -936,14 +804,13 @@ public function generate($savedReportId, $optParams = array()) * The maximum number of saved reports to include in the response, used for paging. * @return Google_Service_AdExchangeSeller_SavedReports */ - public function listReportsSaved($optParams = array()) + public function listAccountsReportsSaved($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports"); } } - /** * The "urlchannels" collection of methods. * Typical usage is: @@ -952,13 +819,15 @@ public function listReportsSaved($optParams = array()) * $urlchannels = $adexchangesellerService->urlchannels; * */ -class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Service_Resource +class Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource extends Google_Service_Resource { /** * List all URL channels in the specified ad client for this Ad Exchange - * account. (urlchannels.listUrlchannels) + * account. (urlchannels.listAccountsUrlchannels) * + * @param string $accountId + * Account to which the ad client belongs. * @param string $adClientId * Ad client for which to list URL channels. * @param array $optParams Optional parameters. @@ -970,9 +839,9 @@ class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Servic * The maximum number of URL channels to include in the response, used for paging. * @return Google_Service_AdExchangeSeller_UrlChannels */ - public function listUrlchannels($adClientId, $optParams = array()) + public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) { - $params = array('adClientId' => $adClientId); + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels"); } @@ -1018,70 +887,11 @@ public function getName() } } -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 +class Google_Service_AdExchangeSeller_Accounts extends Google_Collection { protected $collection_key = 'items'; public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; + protected $itemsType = 'Google_Service_AdExchangeSeller_Account'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -1127,22 +937,22 @@ public function getNextPageToken() } } -class Google_Service_AdExchangeSeller_AdUnit extends Google_Model +class Google_Service_AdExchangeSeller_AdClient extends Google_Model { - public $code; + public $arcOptIn; public $id; public $kind; - public $name; - public $status; + public $productCode; + public $supportsReporting; - public function setCode($code) + public function setArcOptIn($arcOptIn) { - $this->code = $code; + $this->arcOptIn = $arcOptIn; } - public function getCode() + public function getArcOptIn() { - return $this->code; + return $this->arcOptIn; } public function setId($id) @@ -1165,32 +975,32 @@ public function getKind() return $this->kind; } - public function setName($name) + public function setProductCode($productCode) { - $this->name = $name; + $this->productCode = $productCode; } - public function getName() + public function getProductCode() { - return $this->name; + return $this->productCode; } - public function setStatus($status) + public function setSupportsReporting($supportsReporting) { - $this->status = $status; + $this->supportsReporting = $supportsReporting; } - public function getStatus() + public function getSupportsReporting() { - return $this->status; + return $this->supportsReporting; } } -class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection +class Google_Service_AdExchangeSeller_AdClients extends Google_Collection { protected $collection_key = 'items'; public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_AdUnit'; + protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; From 0db562218f5c40cf8a824c75a3b585181dc2c3cc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 10 Sep 2014 01:46:01 -0700 Subject: [PATCH 0211/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 5691ebad9..a2943f05c 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -1083,6 +1083,8 @@ class Google_Service_Bigquery_DatasetAccess extends Google_Model public $role; public $specialGroup; public $userByEmail; + protected $viewType = 'Google_Service_Bigquery_TableReference'; + protected $viewDataType = ''; public function setDomain($domain) { @@ -1133,6 +1135,16 @@ public function getUserByEmail() { return $this->userByEmail; } + + public function setView(Google_Service_Bigquery_TableReference $view) + { + $this->view = $view; + } + + public function getView() + { + return $this->view; + } } class Google_Service_Bigquery_DatasetList extends Google_Collection From a414aceb0af4da17240f0c17df097ecd841d17e8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 10 Sep 2014 01:46:02 -0700 Subject: [PATCH 0212/1274] Added service Webmasters.php --- src/Google/Service/Webmasters.php | 927 ++++++++++++++++++++++++++++++ 1 file changed, 927 insertions(+) create mode 100644 src/Google/Service/Webmasters.php diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php new file mode 100644 index 000000000..0925c7cef --- /dev/null +++ b/src/Google/Service/Webmasters.php @@ -0,0 +1,927 @@ + + * Lets you view Google Webmaster Tools data for your verified sites. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Webmasters extends Google_Service +{ + /** View and modify Webmaster Tools data for your verified sites. */ + const WEBMASTERS = "https://www.googleapis.com/auth/webmasters"; + /** View Webmaster Tools data for your verified sites. */ + const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; + + public $sitemaps; + public $sites; + public $urlcrawlerrorscounts; + public $urlcrawlerrorssamples; + + + /** + * Constructs the internal representation of the Webmasters service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'webmasters/v3/'; + $this->version = 'v3'; + $this->serviceName = 'webmasters'; + + $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( + $this, + $this->serviceName, + 'sitemaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites/{siteUrl}/sitemaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sitemapIndex' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'submit' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sites = new Google_Service_Webmasters_Sites_Resource( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'add' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( + $this, + $this->serviceName, + 'urlcrawlerrorscounts', + array( + 'methods' => array( + 'query' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'latestCountsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( + $this, + $this->serviceName, + 'urlcrawlerrorssamples', + array( + 'methods' => array( + 'get' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'url' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'markAsFixed' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'url' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "sitemaps" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $sitemaps = $webmastersService->sitemaps; + * + */ +class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes a sitemap from this site. (sitemaps.delete) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $feedpath + * The URL of the actual sitemap (for example http://www.example.com/sitemap.xml). + * @param array $optParams Optional parameters. + */ + public function delete($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves information about a specific sitemap. (sitemaps.get) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $feedpath + * The URL of the actual sitemap (for example http://www.example.com/sitemap.xml). + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_WmxSitemap + */ + public function get($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); + } + /** + * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param array $optParams Optional parameters. + * + * @opt_param string sitemapIndex + * A URL of a site's sitemap index. + * @return Google_Service_Webmasters_SitemapsListResponse + */ + public function listSitemaps($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); + } + /** + * Submits a sitemap for a site. (sitemaps.submit) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $feedpath + * The URL of the sitemap to add. + * @param array $optParams Optional parameters. + */ + public function submit($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('submit', array($params)); + } +} + +/** + * The "sites" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $sites = $webmastersService->sites; + * + */ +class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource +{ + + /** + * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) + * + * @param string $siteUrl + * The URL of the site to add. + * @param array $optParams Optional parameters. + */ + public function add($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('add', array($params)); + } + /** + * Removes a site from the set of the user's Webmaster Tools sites. + * (sites.delete) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param array $optParams Optional parameters. + */ + public function delete($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieves information about specific site. (sites.get) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_WmxSite + */ + public function get($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); + } + /** + * Lists your Webmaster Tools sites. (sites.listSites) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_SitesListResponse + */ + public function listSites($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); + } +} + +/** + * The "urlcrawlerrorscounts" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts; + * + */ +class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a time series of the number of URL crawl errors per error category + * and platform. (urlcrawlerrorscounts.query) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param array $optParams Optional parameters. + * + * @opt_param string category + * The crawl error category, for example 'serverError'. If not specified, we return results for all + * categories. + * @opt_param string platform + * The user agent type (platform) that made the request, for example 'web'. If not specified, we + * return results for all platforms. + * @opt_param bool latestCountsOnly + * If true, returns only the latest crawl error counts. + * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse + */ + public function query($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); + } +} + +/** + * The "urlcrawlerrorssamples" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples; + * + */ +class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details about crawl errors for a site's sample URL. + * (urlcrawlerrorssamples.get) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $url + * The relative path (without the site) of the sample URL; must be one of the URLs returned by list + * @param string $category + * The crawl error category, for example 'authPermissions' + * @param string $platform + * The user agent type (platform) that made the request, for example 'web' + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_UrlCrawlErrorsSample + */ + public function get($siteUrl, $url, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); + } + /** + * Lists a site's sample URLs for the specified crawl error category and + * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $category + * The crawl error category, for example 'authPermissions' + * @param string $platform + * The user agent type (platform) that made the request, for example 'web' + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse + */ + public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); + } + /** + * Marks the provided site's sample URL as fixed, and removes it from the + * samples list. (urlcrawlerrorssamples.markAsFixed) + * + * @param string $siteUrl + * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $url + * The relative path (without the site) of the sample URL; must be one of the URLs returned by list + * @param string $category + * The crawl error category, for example 'authPermissions' + * @param string $platform + * The user agent type (platform) that made the request, for example 'web' + * @param array $optParams Optional parameters. + */ + public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('markAsFixed', array($params)); + } +} + + + + +class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection +{ + protected $collection_key = 'sitemap'; + protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; + protected $sitemapDataType = 'array'; + + public function setSitemap($sitemap) + { + $this->sitemap = $sitemap; + } + + public function getSitemap() + { + return $this->sitemap; + } +} + +class Google_Service_Webmasters_SitesListResponse extends Google_Collection +{ + protected $collection_key = 'siteEntry'; + protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; + protected $siteEntryDataType = 'array'; + + public function setSiteEntry($siteEntry) + { + $this->siteEntry = $siteEntry; + } + + public function getSiteEntry() + { + return $this->siteEntry; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model +{ + public $count; + public $timestamp; + + public function setCount($count) + { + $this->count = $count; + } + + public function getCount() + { + return $this->count; + } + + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + + public function getTimestamp() + { + return $this->timestamp; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection +{ + protected $collection_key = 'entries'; + public $category; + protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; + protected $entriesDataType = 'array'; + public $platform; + + public function setCategory($category) + { + $this->category = $category; + } + + public function getCategory() + { + return $this->category; + } + + public function setEntries($entries) + { + $this->entries = $entries; + } + + public function getEntries() + { + return $this->entries; + } + + public function setPlatform($platform) + { + $this->platform = $platform; + } + + public function getPlatform() + { + return $this->platform; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection +{ + protected $collection_key = 'countPerTypes'; + protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; + protected $countPerTypesDataType = 'array'; + + public function setCountPerTypes($countPerTypes) + { + $this->countPerTypes = $countPerTypes; + } + + public function getCountPerTypes() + { + return $this->countPerTypes; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model +{ + public $firstDetected; + public $lastCrawled; + public $pageUrl; + public $responseCode; + protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; + protected $urlDetailsDataType = ''; + + public function setFirstDetected($firstDetected) + { + $this->firstDetected = $firstDetected; + } + + public function getFirstDetected() + { + return $this->firstDetected; + } + + public function setLastCrawled($lastCrawled) + { + $this->lastCrawled = $lastCrawled; + } + + public function getLastCrawled() + { + return $this->lastCrawled; + } + + public function setPageUrl($pageUrl) + { + $this->pageUrl = $pageUrl; + } + + public function getPageUrl() + { + return $this->pageUrl; + } + + public function setResponseCode($responseCode) + { + $this->responseCode = $responseCode; + } + + public function getResponseCode() + { + return $this->responseCode; + } + + public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) + { + $this->urlDetails = $urlDetails; + } + + public function getUrlDetails() + { + return $this->urlDetails; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection +{ + protected $collection_key = 'urlCrawlErrorSample'; + protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; + protected $urlCrawlErrorSampleDataType = 'array'; + + public function setUrlCrawlErrorSample($urlCrawlErrorSample) + { + $this->urlCrawlErrorSample = $urlCrawlErrorSample; + } + + public function getUrlCrawlErrorSample() + { + return $this->urlCrawlErrorSample; + } +} + +class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection +{ + protected $collection_key = 'linkedFromUrls'; + public $containingSitemaps; + public $linkedFromUrls; + + public function setContainingSitemaps($containingSitemaps) + { + $this->containingSitemaps = $containingSitemaps; + } + + public function getContainingSitemaps() + { + return $this->containingSitemaps; + } + + public function setLinkedFromUrls($linkedFromUrls) + { + $this->linkedFromUrls = $linkedFromUrls; + } + + public function getLinkedFromUrls() + { + return $this->linkedFromUrls; + } +} + +class Google_Service_Webmasters_WmxSite extends Google_Model +{ + public $permissionLevel; + public $siteUrl; + + public function setPermissionLevel($permissionLevel) + { + $this->permissionLevel = $permissionLevel; + } + + public function getPermissionLevel() + { + return $this->permissionLevel; + } + + public function setSiteUrl($siteUrl) + { + $this->siteUrl = $siteUrl; + } + + public function getSiteUrl() + { + return $this->siteUrl; + } +} + +class Google_Service_Webmasters_WmxSitemap extends Google_Collection +{ + protected $collection_key = 'contents'; + protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; + protected $contentsDataType = 'array'; + public $errors; + public $isPending; + public $isSitemapsIndex; + public $lastDownloaded; + public $lastSubmitted; + public $path; + public $type; + public $warnings; + + public function setContents($contents) + { + $this->contents = $contents; + } + + public function getContents() + { + return $this->contents; + } + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } + + public function setIsPending($isPending) + { + $this->isPending = $isPending; + } + + public function getIsPending() + { + return $this->isPending; + } + + public function setIsSitemapsIndex($isSitemapsIndex) + { + $this->isSitemapsIndex = $isSitemapsIndex; + } + + public function getIsSitemapsIndex() + { + return $this->isSitemapsIndex; + } + + public function setLastDownloaded($lastDownloaded) + { + $this->lastDownloaded = $lastDownloaded; + } + + public function getLastDownloaded() + { + return $this->lastDownloaded; + } + + public function setLastSubmitted($lastSubmitted) + { + $this->lastSubmitted = $lastSubmitted; + } + + public function getLastSubmitted() + { + return $this->lastSubmitted; + } + + public function setPath($path) + { + $this->path = $path; + } + + public function getPath() + { + return $this->path; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_Webmasters_WmxSitemapContent extends Google_Model +{ + public $indexed; + public $submitted; + public $type; + + public function setIndexed($indexed) + { + $this->indexed = $indexed; + } + + public function getIndexed() + { + return $this->indexed; + } + + public function setSubmitted($submitted) + { + $this->submitted = $submitted; + } + + public function getSubmitted() + { + return $this->submitted; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} From 0dae24fa82b5d46d8efae25b933cc8fde7f0c8f7 Mon Sep 17 00:00:00 2001 From: Liam O'Boyle Date: Fri, 12 Sep 2014 09:06:56 +1000 Subject: [PATCH 0213/1274] Fix #297 - Permit 0 as a port number for Memcache --- src/Google/Cache/Memcache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index 56676c247..1104afb8a 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -47,7 +47,7 @@ public function __construct(Google_Client $client) } else { $this->host = $client->getClassConfig($this, 'host'); $this->port = $client->getClassConfig($this, 'port'); - if (empty($this->host) || empty($this->port)) { + if (empty($this->host) || (empty($this->port) && (string) $this->port != "0")) { throw new Google_Cache_Exception("You need to supply a valid memcache host and port"); } } From c6b9d2db76f647906dee7d2bf2fd325f6b0ada48 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 12 Sep 2014 01:48:30 -0700 Subject: [PATCH 0214/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 136 +++++++++++++++++++++++++----- 1 file changed, 113 insertions(+), 23 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 5ce1a8495..5d0e3459d 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -1702,7 +1702,9 @@ public function delete($id, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string version - * + * Deprecated: The version parameter indicates which version of the map should be returned. When + * version is set to published, the published version of the map will be returned. Please use the + * maps.getPublished endpoint instead. * @return Google_Service_MapsEngine_Map */ public function get($id, $optParams = array()) @@ -3686,6 +3688,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection protected $collection_key = 'tags'; public $bbox; public $creationTime; + public $creatorEmail; public $datasourceType; protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; protected $datasourcesDataType = 'array'; @@ -3694,6 +3697,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection public $etag; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $layerType; public $name; public $processingStatus; @@ -3724,6 +3728,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDatasourceType($datasourceType) { $this->datasourceType = $datasourceType; @@ -3794,6 +3808,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setLayerType($layerType) { $this->layerType = $layerType; @@ -3999,12 +4023,14 @@ class Google_Service_MapsEngine_Map extends Google_Collection protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = ''; public $creationTime; + public $creatorEmail; public $defaultViewport; public $description; public $draftAccessList; public $etag; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $name; public $processingStatus; public $projectId; @@ -4043,6 +4069,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -4103,6 +4139,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setName($name) { $this->name = $name; @@ -4590,7 +4636,6 @@ class Google_Service_MapsEngine_PublishResponse extends Google_Model class Google_Service_MapsEngine_PublishedLayer extends Google_Model { public $description; - public $etag; public $id; public $layerType; public $name; @@ -4606,16 +4651,6 @@ 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; @@ -4691,7 +4726,6 @@ class Google_Service_MapsEngine_PublishedMap extends Google_Model protected $contentsDataType = ''; public $defaultViewport; public $description; - public $etag; public $id; public $name; public $projectId; @@ -4726,16 +4760,6 @@ 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; @@ -4803,6 +4827,7 @@ class Google_Service_MapsEngine_Raster extends Google_Collection public $attribution; public $bbox; public $creationTime; + public $creatorEmail; public $description; public $draftAccessList; public $etag; @@ -4810,6 +4835,7 @@ class Google_Service_MapsEngine_Raster extends Google_Collection protected $filesDataType = 'array'; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $maskType; public $name; public $processingStatus; @@ -4857,6 +4883,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDescription($description) { $this->description = $description; @@ -4917,6 +4953,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setMaskType($maskType) { $this->maskType = $maskType; @@ -4984,11 +5030,13 @@ class Google_Service_MapsEngine_RasterCollection extends Google_Collection public $attribution; public $bbox; public $creationTime; + public $creatorEmail; public $description; public $draftAccessList; public $etag; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $mosaic; public $name; public $processingStatus; @@ -5026,6 +5074,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDescription($description) { $this->description = $description; @@ -5076,6 +5134,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setMosaic($mosaic) { $this->mosaic = $mosaic; @@ -5526,6 +5594,7 @@ class Google_Service_MapsEngine_Table extends Google_Collection protected $collection_key = 'tags'; public $bbox; public $creationTime; + public $creatorEmail; public $description; public $draftAccessList; public $etag; @@ -5533,6 +5602,7 @@ class Google_Service_MapsEngine_Table extends Google_Collection protected $filesDataType = 'array'; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $name; public $processingStatus; public $projectId; @@ -5562,6 +5632,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDescription($description) { $this->description = $description; @@ -5622,6 +5702,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setName($name) { $this->name = $name; From e3dec39185b180d913283a39741ad20124dce49c Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 12 Sep 2014 09:10:21 -0700 Subject: [PATCH 0215/1274] Update README.md Add a note about PHP 5.3.0 required for crypto. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1b3022b81..693913fc4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ This library is in Beta. We're comfortable enough with the stability and feature * [PHP 5.2.1 or higher](http://www.php.net/) * [PHP JSON extension](http://php.net/manual/en/book.json.php) +*Note*: some features (service accounts and id token verification) require PHP 5.3.0 and above due to cryptographic algorithm requirements. + ## Developer Documentation ## http://developers.google.com/api-client-library/php From 6a4d1671a3694677cd5a833be746aede2dd4f67a Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 12 Sep 2014 09:19:44 -0700 Subject: [PATCH 0216/1274] Make config protected, remove services key Tidy up config class re #266 --- src/Google/Config.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index c45e2de86..97e8bd375 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -25,7 +25,7 @@ class Google_Config const GZIP_UPLOADS_ENABLED = true; const GZIP_UPLOADS_DISABLED = false; const USE_AUTO_IO_SELECTION = "auto"; - private $configuration; + protected $configuration; /** * Create a new Google_Config. Can accept an ini file location with the @@ -90,11 +90,6 @@ public function __construct($ini_file_location = null) 'directory' => sys_get_temp_dir() . '/Google_Client' ) ), - - // Definition of service specific values like scopes, oauth token URLs, - // etc. Example: - 'services' => array( - ), ); if ($ini_file_location) { $ini = parse_ini_file($ini_file_location, true); From cd17988165848af6caef29bede12ae0e15019156 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 12 Sep 2014 09:21:56 -0700 Subject: [PATCH 0217/1274] Add extra error description to OAuth2 errors Re #249 --- src/Google/Auth/OAuth2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index e5b603131..3096ecaa2 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -120,6 +120,9 @@ public function authenticate($code) $decodedResponse = json_decode($response->getResponseBody(), true); if ($decodedResponse != null && $decodedResponse['error']) { $decodedResponse = $decodedResponse['error']; + if (isset($decodedResponse['error_description'])) { + $decodedResponse .= ": " . $decodedResponse['error_description']; + } } throw new Google_Auth_Exception( sprintf( From 2463d80b0e6e4b59c87b731f4662f19bee3a9925 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 13 Sep 2014 01:49:57 -0700 Subject: [PATCH 0218/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 611 ++++++++++++++++++++++++++++---- 1 file changed, 539 insertions(+), 72 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 5854aff82..74ed0c919 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -49,6 +49,7 @@ class Google_Service_Genomics extends Google_Service public $readsets; public $readsets_coveragebuckets; public $variants; + public $variantsets; /** @@ -70,23 +71,31 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'beacons/{variantsetId}', + 'path' => 'beacons/{variantSetId}', 'httpMethod' => 'GET', 'parameters' => array( - 'variantsetId' => array( + 'variantSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'allele' => array( + 'variantsetId' => array( 'location' => 'query', 'type' => 'string', ), - 'contig' => array( + 'position' => array( 'location' => 'query', 'type' => 'string', ), - 'position' => array( + 'referenceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allele' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contig' => array( 'location' => 'query', 'type' => 'string', ), @@ -449,16 +458,6 @@ public function __construct(Google_Client $client) 'path' => 'variants/import', 'httpMethod' => 'POST', 'parameters' => array(), - ),'patch' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'search' => array( 'path' => 'variants/search', 'httpMethod' => 'POST', @@ -477,6 +476,40 @@ public function __construct(Google_Client $client) ) ) ); + $this->variantsets = new Google_Service_Genomics_Variantsets_Resource( + $this, + $this->serviceName, + 'variantsets', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'variantsets/{variantSetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'variantsets/{variantSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'variantsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); } } @@ -496,22 +529,26 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * This is an experimental API that provides a Global Alliance for Genomics and * Health Beacon. It may change at any time. (beacons.get) * - * @param string $variantsetId - * The ID of the variantset to query over. It must be public. Private variantsets will return an + * @param string $variantSetId + * The ID of the variant set to query over. It must be public. Private variant sets will return an * unauthorized exception. * @param array $optParams Optional parameters. * + * @opt_param string variantsetId + * + * @opt_param string position + * Required. The 0-based position to query. + * @opt_param string referenceName + * Required. The reference to query over. * @opt_param string allele * Required. The allele to look for ('A', 'C', 'G' or 'T'). * @opt_param string contig - * Required. The contig to query over. - * @opt_param string position - * Required. The 0-based position to query. + * * @return Google_Service_Genomics_Beacon */ - public function get($variantsetId, $optParams = array()) + public function get($variantSetId, $optParams = array()) { - $params = array('variantsetId' => $variantsetId); + $params = array('variantSetId' => $variantSetId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Beacon"); } @@ -529,23 +566,23 @@ class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource { /** - * Creates a new callset. (callsets.create) + * Creates a new call set. (callsets.create) * - * @param Google_Callset $postBody + * @param Google_CallSet $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset + * @return Google_Service_Genomics_CallSet */ - public function create(Google_Service_Genomics_Callset $postBody, $optParams = array()) + public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Callset"); + return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); } /** - * Deletes a callset. (callsets.delete) + * Deletes a call set. (callsets.delete) * * @param string $callsetId - * The ID of the callset to be deleted. + * * @param array $optParams Optional parameters. */ public function delete($callsetId, $optParams = array()) @@ -555,61 +592,61 @@ public function delete($callsetId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Gets a callset by ID. (callsets.get) + * Gets a call set by ID. (callsets.get) * * @param string $callsetId - * The ID of the callset. + * * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset + * @return Google_Service_Genomics_CallSet */ public function get($callsetId, $optParams = array()) { $params = array('callsetId' => $callsetId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Callset"); + return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); } /** - * Updates a callset. This method supports patch semantics. (callsets.patch) + * Updates a call set. This method supports patch semantics. (callsets.patch) * * @param string $callsetId - * The ID of the callset to be updated. - * @param Google_Callset $postBody + * + * @param Google_CallSet $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset + * @return Google_Service_Genomics_CallSet */ - public function patch($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) + public function patch($callsetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) { $params = array('callsetId' => $callsetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Callset"); + return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); } /** - * Gets a list of callsets matching the criteria. (callsets.search) + * Gets a list of call sets matching the criteria. (callsets.search) * - * @param Google_SearchCallsetsRequest $postBody + * @param Google_SearchCallSetsRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchCallsetsResponse + * @return Google_Service_Genomics_SearchCallSetsResponse */ - public function search(Google_Service_Genomics_SearchCallsetsRequest $postBody, $optParams = array()) + public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchCallsetsResponse"); + return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); } /** - * Updates a callset. (callsets.update) + * Updates a call set. (callsets.update) * * @param string $callsetId - * The ID of the callset to be updated. - * @param Google_Callset $postBody + * + * @param Google_CallSet $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset + * @return Google_Service_Genomics_CallSet */ - public function update($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) + public function update($callsetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) { $params = array('callsetId' => $callsetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Callset"); + return $this->call('update', array($params), "Google_Service_Genomics_CallSet"); } } @@ -1127,21 +1164,6 @@ public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $params = array_merge($params, $optParams); return $this->call('import', array($params), "Google_Service_Genomics_ImportVariantsResponse"); } - /** - * Updates a variant. This method supports patch semantics. (variants.patch) - * - * @param string $variantId - * The ID of the variant to be updated.. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Variant"); - } /** * Gets a list of variants matching the criteria. (variants.search) * @@ -1156,7 +1178,9 @@ public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); } /** - * Updates a variant. (variants.update) + * Updates a variant's names and info fields. All other modifications are + * silently ignored. Returns the modified variant without its calls. + * (variants.update) * * @param string $variantId * The ID of the variant to be updated.. @@ -1172,6 +1196,61 @@ public function update($variantId, Google_Service_Genomics_Variant $postBody, $o } } +/** + * The "variantsets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $variantsets = $genomicsService->variantsets; + * + */ +class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resource +{ + + /** + * Deletes the contents of a variant set. The variant set object is not deleted. + * (variantsets.delete) + * + * @param string $variantSetId + * The ID of the variant set to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($variantSetId, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a variant set by ID. (variantsets.get) + * + * @param string $variantSetId + * Required. The ID of the variant set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_VariantSet + */ + public function get($variantSetId, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); + } + /** + * Returns a list of all variant sets matching search criteria. + * (variantsets.search) + * + * @param Google_SearchVariantSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchVariantSetsResponse + */ + public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); + } +} + @@ -1193,6 +1272,8 @@ public function getExists() class Google_Service_Genomics_Call extends Google_Collection { protected $collection_key = 'genotypeLikelihood'; + public $callSetId; + public $callSetName; public $callsetId; public $callsetName; public $genotype; @@ -1200,6 +1281,26 @@ class Google_Service_Genomics_Call extends Google_Collection public $info; public $phaseset; + public function setCallSetId($callSetId) + { + $this->callSetId = $callSetId; + } + + public function getCallSetId() + { + return $this->callSetId; + } + + public function setCallSetName($callSetName) + { + $this->callSetName = $callSetName; + } + + public function getCallSetName() + { + return $this->callSetName; + } + public function setCallsetId($callsetId) { $this->callsetId = $callsetId; @@ -1266,12 +1367,15 @@ class Google_Service_Genomics_CallInfo extends Google_Model } -class Google_Service_Genomics_Callset extends Google_Model +class Google_Service_Genomics_CallSet extends Google_Collection { + protected $collection_key = 'variantSetIds'; public $created; public $id; public $info; public $name; + public $sampleId; + public $variantSetIds; public $variantsetId; public function setCreated($created) @@ -1314,6 +1418,26 @@ public function getName() return $this->name; } + public function setSampleId($sampleId) + { + $this->sampleId = $sampleId; + } + + public function getSampleId() + { + return $this->sampleId; + } + + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + + public function getVariantSetIds() + { + return $this->variantSetIds; + } + public function setVariantsetId($variantsetId) { $this->variantsetId = $variantsetId; @@ -1325,7 +1449,7 @@ public function getVariantsetId() } } -class Google_Service_Genomics_CallsetInfo extends Google_Model +class Google_Service_Genomics_CallSetInfo extends Google_Model { } @@ -1586,9 +1710,11 @@ class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection protected $collection_key = 'callsetIds'; public $bigqueryDataset; public $bigqueryTable; + public $callSetIds; public $callsetIds; public $format; public $projectId; + public $variantSetId; public $variantsetId; public function setBigqueryDataset($bigqueryDataset) @@ -1611,6 +1737,16 @@ public function getBigqueryTable() return $this->bigqueryTable; } + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setCallsetIds($callsetIds) { $this->callsetIds = $callsetIds; @@ -1641,6 +1777,16 @@ public function getProjectId() return $this->projectId; } + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + + public function getVariantSetId() + { + return $this->variantSetId; + } + public function setVariantsetId($variantsetId) { $this->variantsetId = $variantsetId; @@ -1892,6 +2038,7 @@ class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection protected $collection_key = 'sourceUris'; public $format; public $sourceUris; + public $variantSetId; public $variantsetId; public function setFormat($format) @@ -1914,6 +2061,16 @@ public function getSourceUris() return $this->sourceUris; } + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + + public function getVariantSetId() + { + return $this->variantSetId; + } + public function setVariantsetId($variantsetId) { $this->variantsetId = $variantsetId; @@ -2655,6 +2812,32 @@ public function getName() } } +class Google_Service_Genomics_ReferenceBound extends Google_Model +{ + public $referenceName; + public $upperBound; + + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + + public function getReferenceName() + { + return $this->referenceName; + } + + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + + public function getUpperBound() + { + return $this->upperBound; + } +} + class Google_Service_Genomics_ReferenceSequence extends Google_Model { public $assemblyId; @@ -2725,12 +2908,14 @@ public function getUri() } } -class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection +class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { protected $collection_key = 'variantsetIds'; public $maxResults; public $name; + public $pageSize; public $pageToken; + public $variantSetIds; public $variantsetIds; public function setMaxResults($maxResults) @@ -2753,6 +2938,16 @@ public function getName() return $this->name; } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -2763,6 +2958,16 @@ public function getPageToken() return $this->pageToken; } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + + public function getVariantSetIds() + { + return $this->variantSetIds; + } + public function setVariantsetIds($variantsetIds) { $this->variantsetIds = $variantsetIds; @@ -2774,13 +2979,25 @@ public function getVariantsetIds() } } -class Google_Service_Genomics_SearchCallsetsResponse extends Google_Collection +class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection { protected $collection_key = 'callsets'; - protected $callsetsType = 'Google_Service_Genomics_Callset'; + protected $callSetsType = 'Google_Service_Genomics_CallSet'; + protected $callSetsDataType = 'array'; + protected $callsetsType = 'Google_Service_Genomics_CallSet'; protected $callsetsDataType = 'array'; public $nextPageToken; + public function setCallSets($callSets) + { + $this->callSets = $callSets; + } + + public function getCallSets() + { + return $this->callSets; + } + public function setCallsets($callsets) { $this->callsets = $callsets; @@ -3077,19 +3294,113 @@ public function getReadsets() } } +class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection +{ + protected $collection_key = 'datasetIds'; + public $datasetId; + public $datasetIds; + public $pageSize; + public $pageToken; + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + + public function getDatasetId() + { + return $this->datasetId; + } + + public function setDatasetIds($datasetIds) + { + $this->datasetIds = $datasetIds; + } + + public function getDatasetIds() + { + return $this->datasetIds; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + + public function getPageToken() + { + return $this->pageToken; + } +} + +class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection +{ + protected $collection_key = 'variantSets'; + public $nextPageToken; + protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; + protected $variantSetsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setVariantSets($variantSets) + { + $this->variantSets = $variantSets; + } + + public function getVariantSets() + { + return $this->variantSets; + } +} + class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection { - protected $collection_key = 'callsetNames'; + protected $collection_key = 'variantSetIds'; + public $callSetIds; public $callsetIds; public $callsetNames; public $contig; + public $end; public $endPosition; + public $maxCalls; public $maxResults; + public $pageSize; public $pageToken; + public $referenceName; + public $start; public $startPosition; public $variantName; + public $variantSetIds; public $variantsetId; + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setCallsetIds($callsetIds) { $this->callsetIds = $callsetIds; @@ -3120,6 +3431,16 @@ public function getContig() return $this->contig; } + public function setEnd($end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + public function setEndPosition($endPosition) { $this->endPosition = $endPosition; @@ -3130,6 +3451,16 @@ public function getEndPosition() return $this->endPosition; } + public function setMaxCalls($maxCalls) + { + $this->maxCalls = $maxCalls; + } + + public function getMaxCalls() + { + return $this->maxCalls; + } + public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -3140,6 +3471,16 @@ public function getMaxResults() return $this->maxResults; } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3150,6 +3491,26 @@ public function getPageToken() return $this->pageToken; } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + + public function getReferenceName() + { + return $this->referenceName; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } + public function setStartPosition($startPosition) { $this->startPosition = $startPosition; @@ -3170,6 +3531,16 @@ public function getVariantName() return $this->variantName; } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + + public function getVariantSetIds() + { + return $this->variantSetIds; + } + public function setVariantsetId($variantsetId) { $this->variantsetId = $variantsetId; @@ -3223,6 +3594,9 @@ class Google_Service_Genomics_Variant extends Google_Collection public $names; public $position; public $referenceBases; + public $referenceName; + public $start; + public $variantSetId; public $variantsetId; public function setAlternateBases($alternateBases) @@ -3325,6 +3699,36 @@ public function getReferenceBases() return $this->referenceBases; } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + + public function getReferenceName() + { + return $this->referenceName; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } + + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + + public function getVariantSetId() + { + return $this->variantSetId; + } + public function setVariantsetId($variantsetId) { $this->variantsetId = $variantsetId; @@ -3340,3 +3744,66 @@ class Google_Service_Genomics_VariantInfo extends Google_Model { } + +class Google_Service_Genomics_VariantSet extends Google_Collection +{ + protected $collection_key = 'referenceBounds'; + protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; + protected $contigBoundsDataType = 'array'; + public $datasetId; + public $id; + protected $metadataType = 'Google_Service_Genomics_Metadata'; + protected $metadataDataType = 'array'; + protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; + protected $referenceBoundsDataType = 'array'; + + public function setContigBounds($contigBounds) + { + $this->contigBounds = $contigBounds; + } + + public function getContigBounds() + { + return $this->contigBounds; + } + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + + public function getDatasetId() + { + return $this->datasetId; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + + public function getMetadata() + { + return $this->metadata; + } + + public function setReferenceBounds($referenceBounds) + { + $this->referenceBounds = $referenceBounds; + } + + public function getReferenceBounds() + { + return $this->referenceBounds; + } +} From 325977f190b6ef8fc299be4f30fb7fcf07dd7c5a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 16 Sep 2014 01:53:41 -0700 Subject: [PATCH 0219/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index 22e317bd3..dfe5f8db1 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -477,6 +477,7 @@ class Google_Service_Autoscaler_Autoscaler extends Google_Model public $creationTimestamp; public $description; public $id; + public $kind; public $name; public $selfLink; public $target; @@ -521,6 +522,16 @@ 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; @@ -557,6 +568,7 @@ class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection protected $collection_key = 'items'; protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; protected $itemsDataType = 'array'; + public $kind; public $nextPageToken; public function setItems($items) @@ -569,6 +581,16 @@ 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; @@ -673,6 +695,7 @@ class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends { public $metric; public $utilizationTarget; + public $utilizationTargetType; public function setMetric($metric) { @@ -693,6 +716,16 @@ public function getUtilizationTarget() { return $this->utilizationTarget; } + + public function setUtilizationTargetType($utilizationTargetType) + { + $this->utilizationTargetType = $utilizationTargetType; + } + + public function getUtilizationTargetType() + { + return $this->utilizationTargetType; + } } class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model From 180a62524da45669dcdda33796cf351cf89b7ade Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 16 Sep 2014 01:53:41 -0700 Subject: [PATCH 0220/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index 51e72247a..e7cfd53db 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -666,10 +666,13 @@ public function getType() } } -class Google_Service_Reports_ActivityEventsParameters extends Google_Model +class Google_Service_Reports_ActivityEventsParameters extends Google_Collection { + protected $collection_key = 'multiValue'; public $boolValue; public $intValue; + public $multiIntValue; + public $multiValue; public $name; public $value; @@ -693,6 +696,26 @@ public function getIntValue() return $this->intValue; } + public function setMultiIntValue($multiIntValue) + { + $this->multiIntValue = $multiIntValue; + } + + public function getMultiIntValue() + { + return $this->multiIntValue; + } + + public function setMultiValue($multiValue) + { + $this->multiValue = $multiValue; + } + + public function getMultiValue() + { + return $this->multiValue; + } + public function setName($name) { $this->name = $name; From 630fec3dce4240697fedb1afd94f1db5981da42a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:43 -0700 Subject: [PATCH 0221/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 5d0e3459d..f0853b7c4 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -1463,7 +1463,9 @@ public function delete($id, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string version - * + * Deprecated: The version parameter indicates which version of the layer should be returned. When + * version is set to published, the published version of the layer will be returned. Please use the + * layers.getPublished endpoint instead. * @return Google_Service_MapsEngine_Layer */ public function get($id, $optParams = array()) @@ -2815,10 +2817,12 @@ class Google_Service_MapsEngine_Asset extends Google_Collection protected $collection_key = 'tags'; public $bbox; public $creationTime; + public $creatorEmail; public $description; public $etag; public $id; public $lastModifiedTime; + public $lastModifierEmail; public $name; public $projectId; public $resource; @@ -2845,6 +2849,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCreatorEmail($creatorEmail) + { + $this->creatorEmail = $creatorEmail; + } + + public function getCreatorEmail() + { + return $this->creatorEmail; + } + public function setDescription($description) { $this->description = $description; @@ -2885,6 +2899,16 @@ public function getLastModifiedTime() return $this->lastModifiedTime; } + public function setLastModifierEmail($lastModifierEmail) + { + $this->lastModifierEmail = $lastModifierEmail; + } + + public function getLastModifierEmail() + { + return $this->lastModifierEmail; + } + public function setName($name) { $this->name = $name; From 1d94c6d92ff6ba34e28ff46ae3ffffa5997ec154 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:44 -0700 Subject: [PATCH 0222/1274] Updated Mirror.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Mirror.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index d35726f31..2d4c1b8fd 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -1292,6 +1292,7 @@ class Google_Service_Mirror_MenuItem extends Google_Collection { protected $collection_key = 'values'; public $action; + public $contextualCommand; public $id; public $payload; public $removeWhenSelected; @@ -1308,6 +1309,16 @@ public function getAction() return $this->action; } + public function setContextualCommand($contextualCommand) + { + $this->contextualCommand = $contextualCommand; + } + + public function getContextualCommand() + { + return $this->contextualCommand; + } + public function setId($id) { $this->id = $id; From 2c79ee8864580246241019878c5c6053a59d05a6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:44 -0700 Subject: [PATCH 0223/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 244 ++++++++++++++++++++++++ 1 file changed, 244 insertions(+) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 2d26d3c5c..2376606f8 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -1059,6 +1059,26 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'defer' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', 'httpMethod' => 'GET', @@ -1079,6 +1099,46 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'refund' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'revoke' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -2124,6 +2184,27 @@ public function cancel($packageName, $subscriptionId, $token, $optParams = array $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } + /** + * Defers a user's subscription purchase until a specified future expiration + * time. (subscriptions.defer) + * + * @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 Google_SubscriptionPurchasesDeferRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse + */ + public function defer($packageName, $subscriptionId, $token, Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('defer', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse"); + } /** * Checks whether a user's subscription purchase is valid and returns its expiry * time. (subscriptions.get) @@ -2144,6 +2225,46 @@ public function get($packageName, $subscriptionId, $token, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); } + /** + * Refunds a user's subscription purchase, but the subscription remains valid + * until its expiration time and it will continue to recur. + * (subscriptions.refund) + * + * @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 refund($packageName, $subscriptionId, $token, $optParams = array()) + { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('refund', array($params)); + } + /** + * Refunds and immediately revokes a user's subscription purchase. Access to the + * subscription will be terminated immediately and it will stop recurring. + * (subscriptions.revoke) + * + * @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 revoke($packageName, $subscriptionId, $token, $optParams = array()) + { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('revoke', array($params)); + } } @@ -2487,6 +2608,8 @@ class Google_Service_AndroidPublisher_InAppProduct extends Google_Model protected $pricesType = 'Google_Service_AndroidPublisher_Price'; protected $pricesDataType = 'map'; public $purchaseType; + protected $seasonType = 'Google_Service_AndroidPublisher_Season'; + protected $seasonDataType = ''; public $sku; public $status; public $subscriptionPeriod; @@ -2552,6 +2675,16 @@ public function getPurchaseType() return $this->purchaseType; } + public function setSeason(Google_Service_AndroidPublisher_Season $season) + { + $this->season = $season; + } + + public function getSeason() + { + return $this->season; + } + public function setSku($sku) { $this->sku = $sku; @@ -2966,6 +3099,32 @@ public function getListings() } } +class Google_Service_AndroidPublisher_MonthDay extends Google_Model +{ + public $day; + public $month; + + public function setDay($day) + { + $this->day = $day; + } + + public function getDay() + { + return $this->day; + } + + public function setMonth($month) + { + $this->month = $month; + } + + public function getMonth() + { + return $this->month; + } +} + class Google_Service_AndroidPublisher_PageInfo extends Google_Model { public $resultPerPage; @@ -3088,6 +3247,60 @@ public function getPurchaseTimeMillis() } } +class Google_Service_AndroidPublisher_Season extends Google_Model +{ + protected $endType = 'Google_Service_AndroidPublisher_MonthDay'; + protected $endDataType = ''; + protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; + protected $startDataType = ''; + + public function setEnd(Google_Service_AndroidPublisher_MonthDay $end) + { + $this->end = $end; + } + + public function getEnd() + { + return $this->end; + } + + public function setStart(Google_Service_AndroidPublisher_MonthDay $start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; + } +} + +class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model +{ + public $desiredExpiryTimeMillis; + public $expectedExpiryTimeMillis; + + public function setDesiredExpiryTimeMillis($desiredExpiryTimeMillis) + { + $this->desiredExpiryTimeMillis = $desiredExpiryTimeMillis; + } + + public function getDesiredExpiryTimeMillis() + { + return $this->desiredExpiryTimeMillis; + } + + public function setExpectedExpiryTimeMillis($expectedExpiryTimeMillis) + { + $this->expectedExpiryTimeMillis = $expectedExpiryTimeMillis; + } + + public function getExpectedExpiryTimeMillis() + { + return $this->expectedExpiryTimeMillis; + } +} + class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { public $autoRenewing; @@ -3136,6 +3349,37 @@ public function getStartTimeMillis() } } +class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model +{ + protected $deferralInfoType = 'Google_Service_AndroidPublisher_SubscriptionDeferralInfo'; + protected $deferralInfoDataType = ''; + + public function setDeferralInfo(Google_Service_AndroidPublisher_SubscriptionDeferralInfo $deferralInfo) + { + $this->deferralInfo = $deferralInfo; + } + + public function getDeferralInfo() + { + return $this->deferralInfo; + } +} + +class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model +{ + public $newExpiryTimeMillis; + + public function setNewExpiryTimeMillis($newExpiryTimeMillis) + { + $this->newExpiryTimeMillis = $newExpiryTimeMillis; + } + + public function getNewExpiryTimeMillis() + { + return $this->newExpiryTimeMillis; + } +} + class Google_Service_AndroidPublisher_Testers extends Google_Collection { protected $collection_key = 'googlePlusCommunities'; From ab3bf08c7a005394b04f1a3a05aff50cdd896003 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:45 -0700 Subject: [PATCH 0224/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 402 ++++---------------------------- 1 file changed, 39 insertions(+), 363 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 74ed0c919..60ccae49e 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -79,11 +79,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'variantsetId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'position' => array( + 'allele' => array( 'location' => 'query', 'type' => 'string', ), @@ -91,11 +87,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'allele' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contig' => array( + 'position' => array( 'location' => 'query', 'type' => 'string', ), @@ -115,30 +107,30 @@ public function __construct(Google_Client $client) 'httpMethod' => 'POST', 'parameters' => array(), ),'delete' => array( - 'path' => 'callsets/{callsetId}', + 'path' => 'callsets/{callSetId}', 'httpMethod' => 'DELETE', 'parameters' => array( - 'callsetId' => array( + 'callSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'callsets/{callsetId}', + 'path' => 'callsets/{callSetId}', 'httpMethod' => 'GET', 'parameters' => array( - 'callsetId' => array( + 'callSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'patch' => array( - 'path' => 'callsets/{callsetId}', + 'path' => 'callsets/{callSetId}', 'httpMethod' => 'PATCH', 'parameters' => array( - 'callsetId' => array( + 'callSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -149,10 +141,10 @@ public function __construct(Google_Client $client) 'httpMethod' => 'POST', 'parameters' => array(), ),'update' => array( - 'path' => 'callsets/{callsetId}', + 'path' => 'callsets/{callSetId}', 'httpMethod' => 'PUT', 'parameters' => array( - 'callsetId' => array( + 'callSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -445,15 +437,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'getSummary' => array( - 'path' => 'variants/summary', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantsetId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'import' => array( 'path' => 'variants/import', 'httpMethod' => 'POST', @@ -534,16 +517,12 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * unauthorized exception. * @param array $optParams Optional parameters. * - * @opt_param string variantsetId - * - * @opt_param string position - * Required. The 0-based position to query. - * @opt_param string referenceName - * Required. The reference to query over. * @opt_param string allele * Required. The allele to look for ('A', 'C', 'G' or 'T'). - * @opt_param string contig - * + * @opt_param string referenceName + * Required. The reference to query over. + * @opt_param string position + * Required. The 0-based position to query. * @return Google_Service_Genomics_Beacon */ public function get($variantSetId, $optParams = array()) @@ -581,42 +560,42 @@ public function create(Google_Service_Genomics_CallSet $postBody, $optParams = a /** * Deletes a call set. (callsets.delete) * - * @param string $callsetId - * + * @param string $callSetId + * The ID of the callset to be deleted. * @param array $optParams Optional parameters. */ - public function delete($callsetId, $optParams = array()) + public function delete($callSetId, $optParams = array()) { - $params = array('callsetId' => $callsetId); + $params = array('callSetId' => $callSetId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets a call set by ID. (callsets.get) * - * @param string $callsetId - * + * @param string $callSetId + * The ID of the callset. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet */ - public function get($callsetId, $optParams = array()) + public function get($callSetId, $optParams = array()) { - $params = array('callsetId' => $callsetId); + $params = array('callSetId' => $callSetId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); } /** * Updates a call set. This method supports patch semantics. (callsets.patch) * - * @param string $callsetId - * + * @param string $callSetId + * The ID of the callset to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet */ - public function patch($callsetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) + public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) { - $params = array('callsetId' => $callsetId, 'postBody' => $postBody); + $params = array('callSetId' => $callSetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); } @@ -636,15 +615,15 @@ public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, /** * Updates a call set. (callsets.update) * - * @param string $callsetId - * + * @param string $callSetId + * The ID of the callset to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet */ - public function update($callsetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) + public function update($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) { - $params = array('callsetId' => $callsetId, 'postBody' => $postBody); + $params = array('callSetId' => $callSetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Genomics_CallSet"); } @@ -708,7 +687,7 @@ public function get($datasetId, $optParams = array()) * * @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. + * results, set this parameter to the value of nextPageToken from the previous response. * @opt_param string maxResults * The maximum number of results returned by this request. * @opt_param string projectId @@ -1048,15 +1027,15 @@ class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Se * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The * maximum value is 2048. * @opt_param string range.sequenceName - * The reference sequence name, for example "chr1", "1", or "chrX". + * The reference sequence name, for example chr1, 1, or chrX. * @opt_param string pageToken * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. + * results, set this parameter to the value of nextPageToken from the previous response. * @opt_param string targetBucketWidth * The desired width of each reported coverage bucket in base pairs. This will be rounded down to - * the nearest precomputed bucket width; the value of which is returned as bucket_width in the + * the nearest precomputed bucket width; the value of which is returned as bucketWidth in the * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of - * the target range, if specified. The smallest precomputed bucket_width is currently 2048 base + * the target range, if specified. The smallest precomputed bucketWidth is currently 2048 base * pairs; this is subject to change. * @opt_param string range.sequenceEnd * The end position of the range on the reference, 1-based exclusive. If specified, sequenceName @@ -1135,21 +1114,6 @@ public function get($variantId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } - /** - * Gets a summary of all the variant data in a variantset. (variants.getSummary) - * - * @param array $optParams Optional parameters. - * - * @opt_param string variantsetId - * Required. The ID of the variant set to get variant summary information for. - * @return Google_Service_Genomics_GetVariantsSummaryResponse - */ - public function getSummary($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getSummary', array($params), "Google_Service_Genomics_GetVariantsSummaryResponse"); - } /** * Creates variant data by asynchronously importing the provided information. * (variants.import) @@ -1183,7 +1147,7 @@ public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, * (variants.update) * * @param string $variantId - * The ID of the variant to be updated.. + * The ID of the variant to be updated. * @param Google_Variant $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Variant @@ -1274,8 +1238,6 @@ class Google_Service_Genomics_Call extends Google_Collection protected $collection_key = 'genotypeLikelihood'; public $callSetId; public $callSetName; - public $callsetId; - public $callsetName; public $genotype; public $genotypeLikelihood; public $info; @@ -1301,26 +1263,6 @@ public function getCallSetName() return $this->callSetName; } - public function setCallsetId($callsetId) - { - $this->callsetId = $callsetId; - } - - public function getCallsetId() - { - return $this->callsetId; - } - - public function setCallsetName($callsetName) - { - $this->callsetName = $callsetName; - } - - public function getCallsetName() - { - return $this->callsetName; - } - public function setGenotype($genotype) { $this->genotype = $genotype; @@ -1376,7 +1318,6 @@ class Google_Service_Genomics_CallSet extends Google_Collection public $name; public $sampleId; public $variantSetIds; - public $variantsetId; public function setCreated($created) { @@ -1437,16 +1378,6 @@ public function getVariantSetIds() { return $this->variantSetIds; } - - public function setVariantsetId($variantsetId) - { - $this->variantsetId = $variantsetId; - } - - public function getVariantsetId() - { - return $this->variantsetId; - } } class Google_Service_Genomics_CallSetInfo extends Google_Model @@ -1454,32 +1385,6 @@ class Google_Service_Genomics_CallSetInfo extends Google_Model } -class Google_Service_Genomics_ContigBound extends Google_Model -{ - public $contig; - public $upperBound; - - public function setContig($contig) - { - $this->contig = $contig; - } - - public function getContig() - { - return $this->contig; - } - - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - - public function getUpperBound() - { - return $this->upperBound; - } -} - class Google_Service_Genomics_CoverageBucket extends Google_Model { public $meanCoverage; @@ -1707,15 +1612,13 @@ public function getJobId() class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection { - protected $collection_key = 'callsetIds'; + protected $collection_key = 'callSetIds'; public $bigqueryDataset; public $bigqueryTable; public $callSetIds; - public $callsetIds; public $format; public $projectId; public $variantSetId; - public $variantsetId; public function setBigqueryDataset($bigqueryDataset) { @@ -1747,16 +1650,6 @@ public function getCallSetIds() return $this->callSetIds; } - public function setCallsetIds($callsetIds) - { - $this->callsetIds = $callsetIds; - } - - public function getCallsetIds() - { - return $this->callsetIds; - } - public function setFormat($format) { $this->format = $format; @@ -1786,16 +1679,6 @@ public function getVariantSetId() { return $this->variantSetId; } - - public function setVariantsetId($variantsetId) - { - $this->variantsetId = $variantsetId; - } - - public function getVariantsetId() - { - return $this->variantsetId; - } } class Google_Service_Genomics_ExportVariantsResponse extends Google_Model @@ -1850,35 +1733,6 @@ public function getSequenceStart() } } -class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collection -{ - protected $collection_key = 'metadata'; - protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; - protected $contigBoundsDataType = 'array'; - protected $metadataType = 'Google_Service_Genomics_Metadata'; - protected $metadataDataType = 'array'; - - public function setContigBounds($contigBounds) - { - $this->contigBounds = $contigBounds; - } - - public function getContigBounds() - { - return $this->contigBounds; - } - - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } - - public function getMetadata() - { - return $this->metadata; - } -} - class Google_Service_Genomics_Header extends Google_Model { public $sortingOrder; @@ -2039,7 +1893,6 @@ class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection public $format; public $sourceUris; public $variantSetId; - public $variantsetId; public function setFormat($format) { @@ -2070,16 +1923,6 @@ public function getVariantSetId() { return $this->variantSetId; } - - public function setVariantsetId($variantsetId) - { - $this->variantsetId = $variantsetId; - } - - public function getVariantsetId() - { - return $this->variantsetId; - } } class Google_Service_Genomics_ImportVariantsResponse extends Google_Model @@ -2910,23 +2753,11 @@ public function getUri() class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { - protected $collection_key = 'variantsetIds'; - public $maxResults; + protected $collection_key = 'variantSetIds'; public $name; public $pageSize; public $pageToken; public $variantSetIds; - public $variantsetIds; - - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - - public function getMaxResults() - { - return $this->maxResults; - } public function setName($name) { @@ -2967,25 +2798,13 @@ public function getVariantSetIds() { return $this->variantSetIds; } - - public function setVariantsetIds($variantsetIds) - { - $this->variantsetIds = $variantsetIds; - } - - public function getVariantsetIds() - { - return $this->variantsetIds; - } } class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection { - protected $collection_key = 'callsets'; + protected $collection_key = 'callSets'; protected $callSetsType = 'Google_Service_Genomics_CallSet'; protected $callSetsDataType = 'array'; - protected $callsetsType = 'Google_Service_Genomics_CallSet'; - protected $callsetsDataType = 'array'; public $nextPageToken; public function setCallSets($callSets) @@ -2998,16 +2817,6 @@ public function getCallSets() return $this->callSets; } - public function setCallsets($callsets) - { - $this->callsets = $callsets; - } - - public function getCallsets() - { - return $this->callsets; - } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3297,21 +3106,10 @@ public function getReadsets() class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection { protected $collection_key = 'datasetIds'; - public $datasetId; public $datasetIds; public $pageSize; public $pageToken; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() - { - return $this->datasetId; - } - public function setDatasetIds($datasetIds) { $this->datasetIds = $datasetIds; @@ -3375,21 +3173,14 @@ class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; public $callSetIds; - public $callsetIds; - public $callsetNames; - public $contig; public $end; - public $endPosition; public $maxCalls; - public $maxResults; public $pageSize; public $pageToken; public $referenceName; public $start; - public $startPosition; public $variantName; public $variantSetIds; - public $variantsetId; public function setCallSetIds($callSetIds) { @@ -3401,36 +3192,6 @@ public function getCallSetIds() return $this->callSetIds; } - public function setCallsetIds($callsetIds) - { - $this->callsetIds = $callsetIds; - } - - public function getCallsetIds() - { - return $this->callsetIds; - } - - public function setCallsetNames($callsetNames) - { - $this->callsetNames = $callsetNames; - } - - public function getCallsetNames() - { - return $this->callsetNames; - } - - public function setContig($contig) - { - $this->contig = $contig; - } - - public function getContig() - { - return $this->contig; - } - public function setEnd($end) { $this->end = $end; @@ -3441,16 +3202,6 @@ public function getEnd() return $this->end; } - public function setEndPosition($endPosition) - { - $this->endPosition = $endPosition; - } - - public function getEndPosition() - { - return $this->endPosition; - } - public function setMaxCalls($maxCalls) { $this->maxCalls = $maxCalls; @@ -3461,16 +3212,6 @@ public function getMaxCalls() return $this->maxCalls; } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - - public function getMaxResults() - { - return $this->maxResults; - } - public function setPageSize($pageSize) { $this->pageSize = $pageSize; @@ -3511,16 +3252,6 @@ public function getStart() return $this->start; } - public function setStartPosition($startPosition) - { - $this->startPosition = $startPosition; - } - - public function getStartPosition() - { - return $this->startPosition; - } - public function setVariantName($variantName) { $this->variantName = $variantName; @@ -3540,16 +3271,6 @@ public function getVariantSetIds() { return $this->variantSetIds; } - - public function setVariantsetId($variantsetId) - { - $this->variantsetId = $variantsetId; - } - - public function getVariantsetId() - { - return $this->variantsetId; - } } class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection @@ -3586,18 +3307,15 @@ class Google_Service_Genomics_Variant extends Google_Collection public $alternateBases; protected $callsType = 'Google_Service_Genomics_Call'; protected $callsDataType = 'array'; - public $contig; public $created; public $end; public $id; public $info; public $names; - public $position; public $referenceBases; public $referenceName; public $start; public $variantSetId; - public $variantsetId; public function setAlternateBases($alternateBases) { @@ -3619,16 +3337,6 @@ public function getCalls() return $this->calls; } - public function setContig($contig) - { - $this->contig = $contig; - } - - public function getContig() - { - return $this->contig; - } - public function setCreated($created) { $this->created = $created; @@ -3679,16 +3387,6 @@ public function getNames() return $this->names; } - public function setPosition($position) - { - $this->position = $position; - } - - public function getPosition() - { - return $this->position; - } - public function setReferenceBases($referenceBases) { $this->referenceBases = $referenceBases; @@ -3728,16 +3426,6 @@ public function getVariantSetId() { return $this->variantSetId; } - - public function setVariantsetId($variantsetId) - { - $this->variantsetId = $variantsetId; - } - - public function getVariantsetId() - { - return $this->variantsetId; - } } class Google_Service_Genomics_VariantInfo extends Google_Model @@ -3748,8 +3436,6 @@ class Google_Service_Genomics_VariantInfo extends Google_Model class Google_Service_Genomics_VariantSet extends Google_Collection { protected $collection_key = 'referenceBounds'; - protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; - protected $contigBoundsDataType = 'array'; public $datasetId; public $id; protected $metadataType = 'Google_Service_Genomics_Metadata'; @@ -3757,16 +3443,6 @@ class Google_Service_Genomics_VariantSet extends Google_Collection protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; protected $referenceBoundsDataType = 'array'; - public function setContigBounds($contigBounds) - { - $this->contigBounds = $contigBounds; - } - - public function getContigBounds() - { - return $this->contigBounds; - } - public function setDatasetId($datasetId) { $this->datasetId = $datasetId; From 49554d3285a1607639e2f11a4bfe9a1c676e4109 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:45 -0700 Subject: [PATCH 0225/1274] Updated Manager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Manager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 9dd88fb04..6c1400361 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -1498,6 +1498,7 @@ public function getInitializeParams() class Google_Service_Manager_NewDiskInitializeParams extends Google_Model { public $diskSizeGb; + public $diskType; public $sourceImage; public function setDiskSizeGb($diskSizeGb) @@ -1510,6 +1511,16 @@ public function getDiskSizeGb() return $this->diskSizeGb; } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; From cbbc5327237f5fe08a999f24d95665a5c637eddd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:46 -0700 Subject: [PATCH 0226/1274] Updated Resourceviews.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Resourceviews.php | 1223 +++++++++++++++++--------- 1 file changed, 817 insertions(+), 406 deletions(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 29076f2a4..2b2b937a9 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Resourceviews (v1beta1). + * Service definition for Resourceviews (v1beta2). * *

* The Resource View API allows users to create and manage logical sets of Google Compute Engine instances. @@ -42,7 +42,7 @@ class Google_Service_Resourceviews extends Google_Service /** View your Google Cloud Platform management resources and deployment status information. */ const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - public $regionViews; + public $zoneOperations; public $zoneViews; @@ -54,132 +54,53 @@ class Google_Service_Resourceviews extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'resourceviews/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->servicePath = 'resourceviews/v1beta2/projects/'; + $this->version = 'v1beta2'; $this->serviceName = 'resourceviews'; - $this->regionViews = new Google_Service_Resourceviews_RegionViews_Resource( + $this->zoneOperations = new Google_Service_Resourceviews_ZoneOperations_Resource( $this, $this->serviceName, - 'regionViews', + 'zoneOperations', array( 'methods' => array( - 'addresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', + 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectName}/regions/{region}/resourceViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'operation' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{projectName}/regions/{region}/resourceViews', + 'path' => '{project}/zones/{zone}/operations', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( + 'filter' => array( 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', 'type' => 'string', - 'required' => true, ), 'pageToken' => array( 'location' => 'query', @@ -190,26 +111,6 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'removeresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ), ) ) @@ -220,11 +121,11 @@ public function __construct(Google_Client $client) 'zoneViews', array( 'methods' => array( - 'addresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', + 'addResources' => array( + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -234,17 +135,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'resourceViewName' => array( + 'resourceView' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}', 'httpMethod' => 'DELETE', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -254,17 +155,37 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'resourceViewName' => array( + 'resourceView' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceView' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getService' => array( + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/getService', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -274,17 +195,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'resourceViewName' => array( + 'resourceView' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'resourceName' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'insert' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews', + 'path' => '{project}/zones/{zone}/resourceViews', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -296,10 +221,10 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews', + 'path' => '{project}/zones/{zone}/resourceViews', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -318,11 +243,11 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'listresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', - 'httpMethod' => 'POST', + ),'listResources' => array( + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/resources', + 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -332,12 +257,16 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'resourceViewName' => array( + 'resourceView' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'listState' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'format' => array( 'location' => 'query', 'type' => 'string', ), @@ -345,12 +274,40 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serviceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removeResources' => array( + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceView' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), - ),'removeresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', + ),'setService' => array( + 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/setService', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -360,7 +317,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'resourceViewName' => array( + 'resourceView' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -375,151 +332,60 @@ public function __construct(Google_Client $client) /** - * The "regionViews" collection of methods. + * The "zoneOperations" collection of methods. * Typical usage is: * * $resourceviewsService = new Google_Service_Resourceviews(...); - * $regionViews = $resourceviewsService->regionViews; + * $zoneOperations = $resourceviewsService->zoneOperations; * */ -class Google_Service_Resourceviews_RegionViews_Resource extends Google_Service_Resource +class Google_Service_Resourceviews_ZoneOperations_Resource extends Google_Service_Resource { /** - * Add resources to the view. (regionViews.addresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_RegionViewsAddResourcesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function addresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsAddResourcesRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addresources', array($params)); - } - /** - * Delete a resource view. (regionViews.delete) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - */ - public function delete($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get the information of a resource view. (regionViews.get) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ResourceView - */ - public function get($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); - } - /** - * Create a resource view. (regionViews.insert) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param Google_ResourceView $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_RegionViewsInsertResponse - */ - public function insert($projectName, $region, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Resourceviews_RegionViewsInsertResponse"); - } - /** - * List resource views. (regionViews.listRegionViews) + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. + * @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. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_RegionViewsListResponse + * @return Google_Service_Resourceviews_Operation */ - public function listRegionViews($projectName, $region, $optParams = array()) + public function get($project, $zone, $operation, $optParams = array()) { - $params = array('projectName' => $projectName, 'region' => $region); + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_RegionViewsListResponse"); + return $this->call('get', array($params), "Google_Service_Resourceviews_Operation"); } /** - * List the resources in the view. (regionViews.listresources) + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. * @param array $optParams Optional parameters. * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_RegionViewsListResourcesResponse - */ - public function listresources($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('listresources', array($params), "Google_Service_Resourceviews_RegionViewsListResourcesResponse"); - } - /** - * Remove resources from the view. (regionViews.removeresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_RegionViewsRemoveResourcesRequest $postBody - * @param array $optParams Optional parameters. + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Resourceviews_OperationList */ - public function removeresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest $postBody, $optParams = array()) + public function listZoneOperations($project, $zone, $optParams = array()) { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('removeresources', array($params)); + return $this->call('list', array($params), "Google_Service_Resourceviews_OperationList"); } } @@ -535,79 +401,103 @@ class Google_Service_Resourceviews_ZoneViews_Resource extends Google_Service_Res { /** - * Add resources to the view. (zoneViews.addresources) + * Add resources to the view. (zoneViews.addResources) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. - * @param string $resourceViewName + * @param string $resourceView * The name of the resource view. * @param Google_ZoneViewsAddResourcesRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_Operation */ - public function addresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) + public function addResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('addresources', array($params)); + return $this->call('addResources', array($params), "Google_Service_Resourceviews_Operation"); } /** * Delete a resource view. (zoneViews.delete) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. - * @param string $resourceViewName + * @param string $resourceView * The name of the resource view. * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_Operation */ - public function delete($projectName, $zone, $resourceViewName, $optParams = array()) + public function delete($project, $zone, $resourceView, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Resourceviews_Operation"); } /** * Get the information of a zonal resource view. (zoneViews.get) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. - * @param string $resourceViewName + * @param string $resourceView * The name of the resource view. * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_ResourceView */ - public function get($projectName, $zone, $resourceViewName, $optParams = array()) + public function get($project, $zone, $resourceView, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); } + /** + * Get the service information of a resource view or a resource. + * (zoneViews.getService) + * + * @param string $project + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceView + * The name of the resource view. + * @param array $optParams Optional parameters. + * + * @opt_param string resourceName + * The name of the resource if user wants to get the service information of the resource. + * @return Google_Service_Resourceviews_ZoneViewsGetServiceResponse + */ + public function getService($project, $zone, $resourceView, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); + $params = array_merge($params, $optParams); + return $this->call('getService', array($params), "Google_Service_Resourceviews_ZoneViewsGetServiceResponse"); + } /** * Create a resource view. (zoneViews.insert) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. * @param Google_ResourceView $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ZoneViewsInsertResponse + * @return Google_Service_Resourceviews_Operation */ - public function insert($projectName, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) + public function insert($project, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Resourceviews_ZoneViewsInsertResponse"); + return $this->call('insert', array($params), "Google_Service_Resourceviews_Operation"); } /** * List resource views. (zoneViews.listZoneViews) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. @@ -619,56 +509,86 @@ public function insert($projectName, $zone, Google_Service_Resourceviews_Resourc * @opt_param int maxResults * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: * 5000) - * @return Google_Service_Resourceviews_ZoneViewsListResponse + * @return Google_Service_Resourceviews_ZoneViewsList */ - public function listZoneViews($projectName, $zone, $optParams = array()) + public function listZoneViews($project, $zone, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsListResponse"); + return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsList"); } /** - * List the resources of the resource view. (zoneViews.listresources) + * List the resources of the resource view. (zoneViews.listResources) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. - * @param string $resourceViewName + * @param string $resourceView * The name of the resource view. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. + * @opt_param string listState + * The state of the instance to list. By default, it lists all instances. + * @opt_param string format + * The requested format of the return value. It can be URL or URL_PORT. A JSON object will be + * included in the response based on the format. The default format is NONE, which results in no + * JSON in the response. * @opt_param int maxResults * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: * 5000) + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param string serviceName + * The service name to return in the response. It is optional and if it is not set, all the service + * end points will be returned. * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse */ - public function listresources($projectName, $zone, $resourceViewName, $optParams = array()) + public function listResources($project, $zone, $resourceView, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); $params = array_merge($params, $optParams); - return $this->call('listresources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); + return $this->call('listResources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); } /** - * Remove resources from the view. (zoneViews.removeresources) + * Remove resources from the view. (zoneViews.removeResources) * - * @param string $projectName + * @param string $project * The project name of the resource view. * @param string $zone * The zone name of the resource view. - * @param string $resourceViewName + * @param string $resourceView * The name of the resource view. * @param Google_ZoneViewsRemoveResourcesRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_Operation + */ + public function removeResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeResources', array($params), "Google_Service_Resourceviews_Operation"); + } + /** + * Update the service information of a resource view or a resource. + * (zoneViews.setService) + * + * @param string $project + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceView + * The name of the resource view. + * @param Google_ZoneViewsSetServiceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_Operation */ - public function removeresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) + public function setService($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsSetServiceRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('removeresources', array($params)); + return $this->call('setService', array($params), "Google_Service_Resourceviews_Operation"); } } @@ -701,28 +621,22 @@ public function getValue() } } -class Google_Service_Resourceviews_RegionViewsAddResourcesRequest extends Google_Collection +class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model { - protected $collection_key = 'resources'; - public $resources; + public $endpoints; + public $resource; - public function setResources($resources) + public function setEndpoints($endpoints) { - $this->resources = $resources; + $this->endpoints = $endpoints; } - public function getResources() + public function getEndpoints() { - return $this->resources; + return $this->endpoints; } -} - -class Google_Service_Resourceviews_RegionViewsInsertResponse extends Google_Model -{ - protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceDataType = ''; - public function setResource(Google_Service_Resourceviews_ResourceView $resource) + public function setResource($resource) { $this->resource = $resource; } @@ -733,100 +647,466 @@ public function getResource() } } -class Google_Service_Resourceviews_RegionViewsListResourcesResponse extends Google_Collection +class Google_Service_Resourceviews_ListResourceResponseItemEndpoints extends Google_Model { - protected $collection_key = 'members'; - public $members; - public $nextPageToken; - public function setMembers($members) +} + +class Google_Service_Resourceviews_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Resourceviews_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Resourceviews_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + public function setClientOperationId($clientOperationId) { - $this->members = $members; + $this->clientOperationId = $clientOperationId; } - public function getMembers() + public function getClientOperationId() { - return $this->members; + return $this->clientOperationId; } - public function setNextPageToken($nextPageToken) + public function setCreationTimestamp($creationTimestamp) { - $this->nextPageToken = $nextPageToken; + $this->creationTimestamp = $creationTimestamp; } - public function getNextPageToken() + public function getCreationTimestamp() { - return $this->nextPageToken; + return $this->creationTimestamp; } -} -class Google_Service_Resourceviews_RegionViewsListResponse extends Google_Collection -{ - protected $collection_key = 'resourceViews'; - public $nextPageToken; - protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceViewsDataType = 'array'; + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } - public function setNextPageToken($nextPageToken) + public function getEndTime() { - $this->nextPageToken = $nextPageToken; + return $this->endTime; } - public function getNextPageToken() + public function setError(Google_Service_Resourceviews_OperationError $error) { - return $this->nextPageToken; + $this->error = $error; } - public function setResourceViews($resourceViews) + public function getError() { - $this->resourceViews = $resourceViews; + return $this->error; } - public function getResourceViews() + public function setHttpErrorMessage($httpErrorMessage) { - return $this->resourceViews; + $this->httpErrorMessage = $httpErrorMessage; } -} -class Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends Google_Collection -{ - protected $collection_key = 'resources'; - public $resources; + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } - public function setResources($resources) + public function setHttpErrorStatusCode($httpErrorStatusCode) { - $this->resources = $resources; + $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getResources() + public function getHttpErrorStatusCode() { - return $this->resources; + return $this->httpErrorStatusCode; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + + public function getInsertTime() + { + return $this->insertTime; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + + public function getOperationType() + { + return $this->operationType; + } + + public function setProgress($progress) + { + $this->progress = $progress; + } + + public function getProgress() + { + return $this->progress; + } + + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function getStartTime() + { + return $this->startTime; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + + public function getStatusMessage() + { + return $this->statusMessage; + } + + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + + public function getTargetId() + { + return $this->targetId; + } + + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + + public function getTargetLink() + { + return $this->targetLink; + } + + public function setUser($user) + { + $this->user = $user; + } + + public function getUser() + { + return $this->user; + } + + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + + public function getWarnings() + { + return $this->warnings; + } + + public function setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Resourceviews_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $errorsType = 'Google_Service_Resourceviews_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + public function setErrors($errors) + { + $this->errors = $errors; + } + + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Resourceviews_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_Resourceviews_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + public $id; + protected $itemsType = 'Google_Service_Resourceviews_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Resourceviews_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + public $code; + protected $dataType = 'Google_Service_Resourceviews_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) + { + $this->code = $code; + } + + public function getCode() + { + return $this->code; + } + + public function setData($data) + { + $this->data = $data; + } + + public function getData() + { + return $this->data; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Resourceviews_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_Resourceviews_ResourceView extends Google_Collection { - protected $collection_key = 'members'; - public $creationTime; + protected $collection_key = 'resources'; + public $creationTimestamp; public $description; + protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; + protected $endpointsDataType = 'array'; + public $fingerprint; public $id; public $kind; protected $labelsType = 'Google_Service_Resourceviews_Label'; protected $labelsDataType = 'array'; - public $lastModified; - public $members; public $name; - public $numMembers; + public $network; + public $resources; public $selfLink; + public $size; - public function setCreationTime($creationTime) + public function setCreationTimestamp($creationTimestamp) { - $this->creationTime = $creationTime; + $this->creationTimestamp = $creationTimestamp; } - public function getCreationTime() + public function getCreationTimestamp() { - return $this->creationTime; + return $this->creationTimestamp; } public function setDescription($description) @@ -839,6 +1119,26 @@ public function getDescription() return $this->description; } + public function setEndpoints($endpoints) + { + $this->endpoints = $endpoints; + } + + public function getEndpoints() + { + return $this->endpoints; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setId($id) { $this->id = $id; @@ -869,54 +1169,80 @@ public function getLabels() return $this->labels; } - public function setLastModified($lastModified) + public function setName($name) { - $this->lastModified = $lastModified; + $this->name = $name; } - public function getLastModified() + public function getName() { - return $this->lastModified; + return $this->name; } - public function setMembers($members) + public function setNetwork($network) { - $this->members = $members; + $this->network = $network; } - public function getMembers() + public function getNetwork() { - return $this->members; + return $this->network; } - public function setName($name) + public function setResources($resources) { - $this->name = $name; + $this->resources = $resources; } - public function getName() + public function getResources() { - return $this->name; + return $this->resources; } - public function setNumMembers($numMembers) + public function setSelfLink($selfLink) { - $this->numMembers = $numMembers; + $this->selfLink = $selfLink; } - public function getNumMembers() + public function getSelfLink() { - return $this->numMembers; + return $this->selfLink; } - public function setSelfLink($selfLink) + public function setSize($size) { - $this->selfLink = $selfLink; + $this->size = $size; } - public function getSelfLink() + public function getSize() { - return $this->selfLink; + return $this->size; + } +} + +class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model +{ + public $name; + public $port; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setPort($port) + { + $this->port = $port; + } + + public function getPort() + { + return $this->port; } } @@ -936,36 +1262,61 @@ public function getResources() } } -class Google_Service_Resourceviews_ZoneViewsInsertResponse extends Google_Model +class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection { - protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceDataType = ''; + protected $collection_key = 'endpoints'; + protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; + protected $endpointsDataType = 'array'; + public $fingerprint; - public function setResource(Google_Service_Resourceviews_ResourceView $resource) + public function setEndpoints($endpoints) { - $this->resource = $resource; + $this->endpoints = $endpoints; } - public function getResource() + public function getEndpoints() { - return $this->resource; + return $this->endpoints; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; } } -class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection +class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection { - protected $collection_key = 'members'; - public $members; + protected $collection_key = 'items'; + protected $itemsType = 'Google_Service_Resourceviews_ResourceView'; + protected $itemsDataType = 'array'; + public $kind; public $nextPageToken; + public $selfLink; + + public function setItems($items) + { + $this->items = $items; + } - public function setMembers($members) + public function getItems() { - $this->members = $members; + return $this->items; } - public function getMembers() + public function setKind($kind) { - return $this->members; + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; } public function setNextPageToken($nextPageToken) @@ -977,33 +1328,54 @@ public function getNextPageToken() { return $this->nextPageToken; } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } } -class Google_Service_Resourceviews_ZoneViewsListResponse extends Google_Collection +class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection { - protected $collection_key = 'resourceViews'; + protected $collection_key = 'items'; + protected $itemsType = 'Google_Service_Resourceviews_ListResourceResponseItem'; + protected $itemsDataType = 'array'; + public $network; public $nextPageToken; - protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceViewsDataType = 'array'; - public function setNextPageToken($nextPageToken) + public function setItems($items) { - $this->nextPageToken = $nextPageToken; + $this->items = $items; } - public function getNextPageToken() + public function getItems() { - return $this->nextPageToken; + return $this->items; + } + + public function setNetwork($network) + { + $this->network = $network; } - public function setResourceViews($resourceViews) + public function getNetwork() { - $this->resourceViews = $resourceViews; + return $this->network; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; } - public function getResourceViews() + public function getNextPageToken() { - return $this->resourceViews; + return $this->nextPageToken; } } @@ -1022,3 +1394,42 @@ public function getResources() return $this->resources; } } + +class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection +{ + protected $collection_key = 'endpoints'; + protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; + protected $endpointsDataType = 'array'; + public $fingerprint; + public $resourceName; + + public function setEndpoints($endpoints) + { + $this->endpoints = $endpoints; + } + + public function getEndpoints() + { + return $this->endpoints; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + + public function getResourceName() + { + return $this->resourceName; + } +} From 5a8805198141f28a68157624c551d3f71cb5260d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:46 -0700 Subject: [PATCH 0227/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 847da8af0..4b602596e 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -197,7 +197,7 @@ public function getPublicKeys($optParams = array()) return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); } /** - * Set account info for a user. (relyingparty.resetPassword) + * Reset password for a user. (relyingparty.resetPassword) * * @param Google_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody * @param array $optParams Optional parameters. @@ -269,6 +269,7 @@ public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRel class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model { public $authUri; + public $captchaRequired; public $forExistingProvider; public $kind; public $providerId; @@ -284,6 +285,16 @@ public function getAuthUri() return $this->authUri; } + public function setCaptchaRequired($captchaRequired) + { + $this->captchaRequired = $captchaRequired; + } + + public function getCaptchaRequired() + { + return $this->captchaRequired; + } + public function setForExistingProvider($forExistingProvider) { $this->forExistingProvider = $forExistingProvider; From aedf68c67d4a1607d5741284b3b4e6b930b437d6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Sep 2014 01:56:46 -0700 Subject: [PATCH 0228/1274] Updated Datastore.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Datastore.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index 7efeaa662..c6e68ae26 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -31,6 +31,8 @@ */ class Google_Service_Datastore extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Cloud Datastore data. */ const DATASTORE = "https://www.googleapis.com/auth/datastore"; /** View your email address. */ From 4ab4b5214f252e51263b905007bcc7e44b385e6b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 20 Sep 2014 01:58:19 -0700 Subject: [PATCH 0229/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 313 ++++++++++++++++++------------- 1 file changed, 185 insertions(+), 128 deletions(-) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 5721b27b5..8793baa9a 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -16,7 +16,7 @@ */ /** - * Service definition for CivicInfo (v1). + * Service definition for CivicInfo (v2). * *

* An API for accessing civic information. @@ -46,8 +46,8 @@ class Google_Service_CivicInfo extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'civicinfo/v1/'; - $this->version = 'v1'; + $this->servicePath = 'civicinfo/v2/'; + $this->version = 'v2'; $this->serviceName = 'civicinfo'; $this->divisions = new Google_Service_CivicInfo_Divisions_Resource( @@ -57,7 +57,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'search' => array( - 'path' => 'representatives/division_search', + 'path' => 'divisions', 'httpMethod' => 'GET', 'parameters' => array( 'query' => array( @@ -80,14 +80,18 @@ public function __construct(Google_Client $client) 'httpMethod' => 'GET', 'parameters' => array(), ),'voterInfoQuery' => array( - 'path' => 'voterinfo/{electionId}/lookup', - 'httpMethod' => 'POST', + 'path' => 'voterinfo', + 'httpMethod' => 'GET', 'parameters' => array( - 'electionId' => array( - 'location' => 'path', + 'address' => array( + 'location' => 'query', 'type' => 'string', 'required' => true, ), + 'electionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'officialOnly' => array( 'location' => 'query', 'type' => 'boolean', @@ -103,22 +107,52 @@ public function __construct(Google_Client $client) 'representatives', array( 'methods' => array( - 'representativeInfoQuery' => array( - 'path' => 'representatives/lookup', - 'httpMethod' => 'POST', + 'representativeInfoByAddress' => array( + 'path' => 'representatives', + 'httpMethod' => 'GET', 'parameters' => array( - 'ocdId' => array( + 'includeOffices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'levels' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'includeOffices' => array( + 'roles' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'representativeInfoByDivision' => array( + 'path' => 'representatives/{ocdId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'ocdId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'levels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, ), 'recursive' => array( 'location' => 'query', 'type' => 'boolean', ), + 'roles' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), ), ), ) @@ -187,19 +221,20 @@ public function electionQuery($optParams = array()) * Looks up information relevant to a voter based on the voter's registered * address. (elections.voterInfoQuery) * - * @param string $electionId - * The unique ID of the election to look up. A list of election IDs can be obtained at - * https://www.googleapis.com/civicinfo/{version}/elections - * @param Google_VoterInfoRequest $postBody + * @param string $address + * The registered address of the voter to look up. * @param array $optParams Optional parameters. * + * @opt_param string electionId + * The unique ID of the election to look up. A list of election IDs can be obtained at + * https://www.googleapis.com/civicinfo/{version}/elections * @opt_param bool officialOnly * If set to true, only data from official state sources will be returned. * @return Google_Service_CivicInfo_VoterInfoResponse */ - public function voterInfoQuery($electionId, Google_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array()) + public function voterInfoQuery($address, $optParams = array()) { - $params = array('electionId' => $electionId, 'postBody' => $postBody); + $params = array('address' => $address); $params = array_merge($params, $optParams); return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse"); } @@ -217,30 +252,55 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R { /** - * Looks up political geography and representative information based on an - * address or Open Civic Data division identifier. - * (representatives.representativeInfoQuery) + * Looks up political geography and representative information for a single + * address. (representatives.representativeInfoByAddress) * - * @param Google_RepresentativeInfoRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string ocdId - * The division to look up. May only be specified if the address field is not given in the request - * body. * @opt_param bool includeOffices * Whether to return information about offices and officials. If false, only the top-level district * information will be returned. - * @opt_param bool recursive - * When ocd_id is supplied, return all divisions which are hierarchically nested within the queried - * division. For example, if querying ocd-division/country:us/district:dc, this would also return - * all DC's wards and ANCs. + * @opt_param string levels + * A list of office levels to filter by. Only offices that serve at least one of these levels will + * be returned. Divisions that don't contain a matching office will not be returned. + * @opt_param string roles + * A list of office roles to filter by. Only offices fulfilling one of these roles will be + * returned. Divisions that don't contain a matching office will not be returned. + * @opt_param string address + * The address to look up. May only be specified if the field ocdId is not given in the URL. * @return Google_Service_CivicInfo_RepresentativeInfoResponse */ - public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array()) + public function representativeInfoByAddress($optParams = array()) { - $params = array('postBody' => $postBody); + $params = array(); $params = array_merge($params, $optParams); - return $this->call('representativeInfoQuery', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); + return $this->call('representativeInfoByAddress', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); + } + /** + * Looks up representative information for a single geographic division. + * (representatives.representativeInfoByDivision) + * + * @param string $ocdId + * The Open Civic Data division identifier of the division to look up. + * @param array $optParams Optional parameters. + * + * @opt_param string levels + * A list of office levels to filter by. Only offices that serve at least one of these levels will + * be returned. Divisions that don't contain a matching office will not be returned. + * @opt_param bool recursive + * If true, information about all divisions contained in the division requested will be included as + * well. For example, if querying ocd-division/country:us/district:dc, this would also return all + * DC's wards and ANCs. + * @opt_param string roles + * A list of office roles to filter by. Only offices fulfilling one of these roles will be + * returned. Divisions that don't contain a matching office will not be returned. + * @return Google_Service_CivicInfo_RepresentativeInfoData + */ + public function representativeInfoByDivision($ocdId, $optParams = array()) + { + $params = array('ocdId' => $ocdId); + $params = array_merge($params, $optParams); + return $this->call('representativeInfoByDivision', array($params), "Google_Service_CivicInfo_RepresentativeInfoData"); } } @@ -599,6 +659,7 @@ class Google_Service_CivicInfo_Contest extends Google_Collection public $referendumSubtitle; public $referendumTitle; public $referendumUrl; + public $roles; protected $sourcesType = 'Google_Service_CivicInfo_Source'; protected $sourcesDataType = 'array'; public $special; @@ -734,6 +795,16 @@ public function getReferendumUrl() return $this->referendumUrl; } + public function setRoles($roles) + { + $this->roles = $roles; + } + + public function getRoles() + { + return $this->roles; + } + public function setSources($sources) { $this->sources = $sources; @@ -771,7 +842,6 @@ class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection public $kind; protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; protected $resultsDataType = 'array'; - public $status; public function setKind($kind) { @@ -792,16 +862,6 @@ public function getResults() { return $this->results; } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } } class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection @@ -1005,11 +1065,10 @@ public function getScope() class Google_Service_CivicInfo_GeographicDivision extends Google_Collection { - protected $collection_key = 'officeIds'; + protected $collection_key = 'officeIndices'; public $alsoKnownAs; public $name; - public $officeIds; - public $scope; + public $officeIndices; public function setAlsoKnownAs($alsoKnownAs) { @@ -1031,24 +1090,14 @@ public function getName() return $this->name; } - public function setOfficeIds($officeIds) - { - $this->officeIds = $officeIds; - } - - public function getOfficeIds() + public function setOfficeIndices($officeIndices) { - return $this->officeIds; + $this->officeIndices = $officeIndices; } - public function setScope($scope) + public function getOfficeIndices() { - $this->scope = $scope; - } - - public function getScope() - { - return $this->scope; + return $this->officeIndices; } } @@ -1056,9 +1105,10 @@ class Google_Service_CivicInfo_Office extends Google_Collection { protected $collection_key = 'sources'; public $divisionId; - public $level; + public $levels; public $name; - public $officialIds; + public $officialIndices; + public $roles; protected $sourcesType = 'Google_Service_CivicInfo_Source'; protected $sourcesDataType = 'array'; @@ -1072,14 +1122,14 @@ public function getDivisionId() return $this->divisionId; } - public function setLevel($level) + public function setLevels($levels) { - $this->level = $level; + $this->levels = $levels; } - public function getLevel() + public function getLevels() { - return $this->level; + return $this->levels; } public function setName($name) @@ -1092,14 +1142,24 @@ public function getName() return $this->name; } - public function setOfficialIds($officialIds) + public function setOfficialIndices($officialIndices) + { + $this->officialIndices = $officialIndices; + } + + public function getOfficialIndices() { - $this->officialIds = $officialIds; + return $this->officialIndices; } - public function getOfficialIds() + public function setRoles($roles) { - return $this->officialIds; + $this->roles = $roles; + } + + public function getRoles() + { + return $this->roles; } public function setSources($sources) @@ -1314,33 +1374,64 @@ public function getVoterServices() } } -class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model +class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection { - public $address; + protected $collection_key = 'officials'; + protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; + protected $divisionsDataType = 'map'; + protected $officesType = 'Google_Service_CivicInfo_Office'; + protected $officesDataType = 'array'; + protected $officialsType = 'Google_Service_CivicInfo_Official'; + protected $officialsDataType = 'array'; - public function setAddress($address) + public function setDivisions($divisions) { - $this->address = $address; + $this->divisions = $divisions; } - public function getAddress() + public function getDivisions() { - return $this->address; + return $this->divisions; + } + + public function setOffices($offices) + { + $this->offices = $offices; + } + + public function getOffices() + { + return $this->offices; + } + + public function setOfficials($officials) + { + $this->officials = $officials; + } + + public function getOfficials() + { + return $this->officials; } } -class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model +class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model +{ + +} + +class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection { + protected $collection_key = 'officials'; protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; protected $divisionsDataType = 'map'; public $kind; protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $normalizedInputDataType = ''; protected $officesType = 'Google_Service_CivicInfo_Office'; - protected $officesDataType = 'map'; + protected $officesDataType = 'array'; protected $officialsType = 'Google_Service_CivicInfo_Official'; - protected $officialsDataType = 'map'; - public $status; + protected $officialsDataType = 'array'; public function setDivisions($divisions) { @@ -1391,16 +1482,6 @@ public function getOfficials() { return $this->officials; } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } } class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model @@ -1408,16 +1489,6 @@ class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Googl } -class Google_Service_CivicInfo_RepresentativeInfoResponseOffices extends Google_Model -{ - -} - -class Google_Service_CivicInfo_RepresentativeInfoResponseOfficials extends Google_Model -{ - -} - class Google_Service_CivicInfo_SimpleAddressType extends Google_Model { public $city; @@ -1525,21 +1596,6 @@ public function getOfficial() } } -class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model -{ - public $address; - - public function setAddress($address) - { - $this->address = $address; - } - - public function getAddress() - { - return $this->address; - } -} - class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection { protected $collection_key = 'state'; @@ -1552,11 +1608,12 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection public $kind; protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $normalizedInputDataType = ''; + protected $otherElectionsType = 'Google_Service_CivicInfo_Election'; + protected $otherElectionsDataType = 'array'; protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; protected $pollingLocationsDataType = 'array'; protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; protected $stateDataType = 'array'; - public $status; public function setContests($contests) { @@ -1608,6 +1665,16 @@ public function getNormalizedInput() return $this->normalizedInput; } + public function setOtherElections($otherElections) + { + $this->otherElections = $otherElections; + } + + public function getOtherElections() + { + return $this->otherElections; + } + public function setPollingLocations($pollingLocations) { $this->pollingLocations = $pollingLocations; @@ -1627,14 +1694,4 @@ public function getState() { return $this->state; } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } } From b01bb42aad69b539dc108e6449b9e48596ca056a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 20 Sep 2014 01:58:19 -0700 Subject: [PATCH 0230/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 7adaec0e5..1bc3b9eda 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -4244,6 +4244,8 @@ class Google_Service_Drive_DriveFile extends Google_Collection protected $userPermissionType = 'Google_Service_Drive_Permission'; protected $userPermissionDataType = ''; public $version; + protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata'; + protected $videoMediaMetadataDataType = ''; public $webContentLink; public $webViewLink; public $writersCanShare; @@ -4708,6 +4710,16 @@ public function getVersion() return $this->version; } + public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata) + { + $this->videoMediaMetadata = $videoMediaMetadata; + } + + public function getVideoMediaMetadata() + { + return $this->videoMediaMetadata; + } + public function setWebContentLink($webContentLink) { $this->webContentLink = $webContentLink; @@ -5122,6 +5134,43 @@ public function getMimeType() } } +class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model +{ + public $durationMillis; + public $height; + public $width; + + public function setDurationMillis($durationMillis) + { + $this->durationMillis = $durationMillis; + } + + public function getDurationMillis() + { + return $this->durationMillis; + } + + public function setHeight($height) + { + $this->height = $height; + } + + public function getHeight() + { + return $this->height; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function getWidth() + { + return $this->width; + } +} + class Google_Service_Drive_FileList extends Google_Collection { protected $collection_key = 'items'; From 43c1aa0ce8ce29d6652a8b3d3f480c10de6d111b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 21 Sep 2014 01:59:42 -0700 Subject: [PATCH 0231/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 733 ++++++++++++++++++++++++++++++ 1 file changed, 733 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index f0853b7c4..58ff77048 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -38,21 +38,27 @@ class Google_Service_MapsEngine extends Google_Service public $assets; public $assets_parents; + public $assets_permissions; public $layers; public $layers_parents; + public $layers_permissions; public $maps; + public $maps_permissions; public $projects; public $projects_icons; public $rasterCollections; public $rasterCollections_parents; + public $rasterCollections_permissions; public $rasterCollections_rasters; public $rasters; public $rasters_files; public $rasters_parents; + public $rasters_permissions; public $tables; public $tables_features; public $tables_files; public $tables_parents; + public $tables_permissions; /** @@ -172,6 +178,26 @@ public function __construct(Google_Client $client) ) ) ); + $this->assets_permissions = new Google_Service_MapsEngine_AssetsPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'assets/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->layers = new Google_Service_MapsEngine_Layers_Resource( $this, $this->serviceName, @@ -381,6 +407,46 @@ public function __construct(Google_Client $client) ) ) ); + $this->layers_permissions = new Google_Service_MapsEngine_LayersPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'layers/{id}/permissions/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'layers/{id}/permissions/batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'layers/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->maps = new Google_Service_MapsEngine_Maps_Resource( $this, $this->serviceName, @@ -537,6 +603,46 @@ public function __construct(Google_Client $client) ) ) ); + $this->maps_permissions = new Google_Service_MapsEngine_MapsPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'maps/{id}/permissions/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'maps/{id}/permissions/batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'maps/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects = new Google_Service_MapsEngine_Projects_Resource( $this, $this->serviceName, @@ -753,6 +859,46 @@ public function __construct(Google_Client $client) ) ) ); + $this->rasterCollections_permissions = new Google_Service_MapsEngine_RasterCollectionsPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'rasterCollections/{id}/permissions/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'rasterCollections/{id}/permissions/batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'rasterCollections/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( $this, $this->serviceName, @@ -1002,6 +1148,46 @@ public function __construct(Google_Client $client) ) ) ); + $this->rasters_permissions = new Google_Service_MapsEngine_RastersPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'rasters/{id}/permissions/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'rasters/{id}/permissions/batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'rasters/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->tables = new Google_Service_MapsEngine_Tables_Resource( $this, $this->serviceName, @@ -1283,6 +1469,46 @@ public function __construct(Google_Client $client) ) ) ); + $this->tables_permissions = new Google_Service_MapsEngine_TablesPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'tables/{id}/permissions/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'tables/{id}/permissions/batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'tables/{id}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -1398,6 +1624,33 @@ public function listAssetsParents($id, $optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_AssetsPermissions_Resource extends Google_Service_Resource +{ + + /** + * Return all of the permissions for the specified asset. + * (permissions.listAssetsPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listAssetsPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} /** * The "layers" collection of methods. @@ -1657,6 +1910,67 @@ public function listLayersParents($id, $optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_LayersPermissions_Resource extends Google_Service_Resource +{ + + /** + * Remove permission entries from an already existing asset. + * (permissions.batchDelete) + * + * @param string $id + * The ID of the asset from which permissions will be removed. + * @param Google_PermissionsBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); + } + /** + * Add or update permission entries to an already existing asset. + * + * An asset can hold up to 20 different permission entries. Each batchInsert + * request is atomic. (permissions.batchUpdate) + * + * @param string $id + * The ID of the asset to which permissions will be added. + * @param Google_PermissionsBatchUpdateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse + */ + public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); + } + /** + * Return all of the permissions for the specified asset. + * (permissions.listLayersPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listLayersPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} /** * The "maps" collection of methods. @@ -1850,6 +2164,68 @@ public function unpublish($id, $optParams = array()) } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_MapsPermissions_Resource extends Google_Service_Resource +{ + + /** + * Remove permission entries from an already existing asset. + * (permissions.batchDelete) + * + * @param string $id + * The ID of the asset from which permissions will be removed. + * @param Google_PermissionsBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); + } + /** + * Add or update permission entries to an already existing asset. + * + * An asset can hold up to 20 different permission entries. Each batchInsert + * request is atomic. (permissions.batchUpdate) + * + * @param string $id + * The ID of the asset to which permissions will be added. + * @param Google_PermissionsBatchUpdateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse + */ + public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); + } + /** + * Return all of the permissions for the specified asset. + * (permissions.listMapsPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listMapsPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} + /** * The "projects" collection of methods. * Typical usage is: @@ -2123,6 +2499,67 @@ public function listRasterCollectionsParents($id, $optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_RasterCollectionsPermissions_Resource extends Google_Service_Resource +{ + + /** + * Remove permission entries from an already existing asset. + * (permissions.batchDelete) + * + * @param string $id + * The ID of the asset from which permissions will be removed. + * @param Google_PermissionsBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); + } + /** + * Add or update permission entries to an already existing asset. + * + * An asset can hold up to 20 different permission entries. Each batchInsert + * request is atomic. (permissions.batchUpdate) + * + * @param string $id + * The ID of the asset to which permissions will be added. + * @param Google_PermissionsBatchUpdateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse + */ + public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); + } + /** + * Return all of the permissions for the specified asset. + * (permissions.listRasterCollectionsPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listRasterCollectionsPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} /** * The "rasters" collection of methods. * Typical usage is: @@ -2413,6 +2850,67 @@ public function listRastersParents($id, $optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_RastersPermissions_Resource extends Google_Service_Resource +{ + + /** + * Remove permission entries from an already existing asset. + * (permissions.batchDelete) + * + * @param string $id + * The ID of the asset from which permissions will be removed. + * @param Google_PermissionsBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); + } + /** + * Add or update permission entries to an already existing asset. + * + * An asset can hold up to 20 different permission entries. Each batchInsert + * request is atomic. (permissions.batchUpdate) + * + * @param string $id + * The ID of the asset to which permissions will be added. + * @param Google_PermissionsBatchUpdateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse + */ + public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); + } + /** + * Return all of the permissions for the specified asset. + * (permissions.listRastersPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listRastersPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} /** * The "tables" collection of methods. @@ -2771,6 +3269,67 @@ public function listTablesParents($id, $optParams = array()) return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); } } +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $permissions = $mapsengineService->permissions; + * + */ +class Google_Service_MapsEngine_TablesPermissions_Resource extends Google_Service_Resource +{ + + /** + * Remove permission entries from an already existing asset. + * (permissions.batchDelete) + * + * @param string $id + * The ID of the asset from which permissions will be removed. + * @param Google_PermissionsBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); + } + /** + * Add or update permission entries to an already existing asset. + * + * An asset can hold up to 20 different permission entries. Each batchInsert + * request is atomic. (permissions.batchUpdate) + * + * @param string $id + * The ID of the asset to which permissions will be added. + * @param Google_PermissionsBatchUpdateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse + */ + public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); + } + /** + * Return all of the permissions for the specified asset. + * (permissions.listTablesPermissions) + * + * @param string $id + * The ID of the asset whose permissions will be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PermissionsListResponse + */ + public function listTablesPermissions($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); + } +} @@ -2828,6 +3387,7 @@ class Google_Service_MapsEngine_Asset extends Google_Collection public $resource; public $tags; public $type; + public $writersCanEditPermissions; public function setBbox($bbox) { @@ -2958,6 +3518,16 @@ public function getType() { return $this->type; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection @@ -3731,6 +4301,7 @@ class Google_Service_MapsEngine_Layer extends Google_Collection protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; protected $styleDataType = ''; public $tags; + public $writersCanEditPermissions; public function setBbox($bbox) { @@ -3921,6 +4492,16 @@ public function getTags() { return $this->tags; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_LayersListResponse extends Google_Collection @@ -4062,6 +4643,7 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $publishingStatus; public $tags; public $versions; + public $writersCanEditPermissions; public function setBbox($bbox) { @@ -4242,6 +4824,16 @@ public function getVersions() { return $this->versions; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_MapFolder extends Google_Collection @@ -4548,6 +5140,114 @@ public function getParents() } } +class Google_Service_MapsEngine_Permission extends Google_Model +{ + public $discoverable; + public $id; + public $role; + public $type; + + public function setDiscoverable($discoverable) + { + $this->discoverable = $discoverable; + } + + public function getDiscoverable() + { + return $this->discoverable; + } + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setRole($role) + { + $this->role = $role; + } + + public function getRole() + { + return $this->role; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Collection +{ + protected $collection_key = 'ids'; + public $ids; + + public function setIds($ids) + { + $this->ids = $ids; + } + + public function getIds() + { + return $this->ids; + } +} + +class Google_Service_MapsEngine_PermissionsBatchDeleteResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $permissionsType = 'Google_Service_MapsEngine_Permission'; + protected $permissionsDataType = 'array'; + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_MapsEngine_PermissionsBatchUpdateResponse extends Google_Model +{ + +} + +class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $permissionsType = 'Google_Service_MapsEngine_Permission'; + protected $permissionsDataType = 'array'; + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + + public function getPermissions() + { + return $this->permissions; + } +} + class Google_Service_MapsEngine_PointStyle extends Google_Model { protected $iconType = 'Google_Service_MapsEngine_IconStyle'; @@ -4866,6 +5566,7 @@ class Google_Service_MapsEngine_Raster extends Google_Collection public $projectId; public $rasterType; public $tags; + public $writersCanEditPermissions; public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) { @@ -5046,6 +5747,16 @@ public function getTags() { return $this->tags; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_RasterCollection extends Google_Collection @@ -5067,6 +5778,7 @@ class Google_Service_MapsEngine_RasterCollection extends Google_Collection public $projectId; public $rasterType; public $tags; + public $writersCanEditPermissions; public function setAttribution($attribution) { @@ -5227,6 +5939,16 @@ public function getTags() { return $this->tags; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection @@ -5635,6 +6357,7 @@ class Google_Service_MapsEngine_Table extends Google_Collection protected $schemaDataType = ''; public $sourceEncoding; public $tags; + public $writersCanEditPermissions; public function setBbox($bbox) { @@ -5805,6 +6528,16 @@ public function getTags() { return $this->tags; } + + public function setWritersCanEditPermissions($writersCanEditPermissions) + { + $this->writersCanEditPermissions = $writersCanEditPermissions; + } + + public function getWritersCanEditPermissions() + { + return $this->writersCanEditPermissions; + } } class Google_Service_MapsEngine_TableColumn extends Google_Model From 9ee04e219287be53805ecf59388e07dffcc867d2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 22 Sep 2014 02:01:03 -0700 Subject: [PATCH 0232/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 521 ++++++++++++++++++++++++++++++- 1 file changed, 515 insertions(+), 6 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 1091b0094..045620501 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -65,6 +65,10 @@ class Google_Service_Directory extends Google_Service const ADMIN_DIRECTORY_USER_READONLY = "https://www.googleapis.com/auth/admin.directory.user.readonly"; /** Manage data access permissions for users on your domain. */ const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security"; + /** View and manage the provisioning of user schemas on your domain. */ + const ADMIN_DIRECTORY_USERSCHEMA = "https://www.googleapis.com/auth/admin.directory.userschema"; + /** View user schemas on your domain. */ + const ADMIN_DIRECTORY_USERSCHEMA_READONLY = "https://www.googleapis.com/auth/admin.directory.userschema.readonly"; public $asps; public $channels; @@ -75,6 +79,7 @@ class Google_Service_Directory extends Google_Service public $mobiledevices; public $notifications; public $orgunits; + public $schemas; public $tokens; public $users; public $users_aliases; @@ -772,6 +777,96 @@ public function __construct(Google_Client $client) ) ) ); + $this->schemas = new Google_Service_Directory_Schemas_Resource( + $this, + $this->serviceName, + 'schemas', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customerId}/schemas/{schemaKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'schemaKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customerId}/schemas/{schemaKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'schemaKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customerId}/schemas', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customerId}/schemas', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'customer/{customerId}/schemas/{schemaKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'schemaKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'customer/{customerId}/schemas/{schemaKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'schemaKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->tokens = new Google_Service_Directory_Tokens_Resource( $this, $this->serviceName, @@ -847,6 +942,18 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'viewType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customFieldMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'insert' => array( 'path' => 'users', @@ -868,10 +975,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'showDeleted' => array( 'location' => 'query', 'type' => 'string', ), + 'customFieldMask' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -888,6 +1003,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'viewType' => array( + 'location' => 'query', + 'type' => 'string', + ), 'event' => array( 'location' => 'query', 'type' => 'string', @@ -949,10 +1068,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'showDeleted' => array( 'location' => 'query', 'type' => 'string', ), + 'customFieldMask' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -969,6 +1096,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'viewType' => array( + 'location' => 'query', + 'type' => 'string', + ), 'event' => array( 'location' => 'query', 'type' => 'string', @@ -1913,6 +2044,113 @@ public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUn } } +/** + * The "schemas" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $schemas = $adminService->schemas; + * + */ +class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource +{ + + /** + * Delete schema (schemas.delete) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $schemaKey + * Name or immutable Id of the schema + * @param array $optParams Optional parameters. + */ + public function delete($customerId, $schemaKey, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Retrieve schema (schemas.get) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $schemaKey + * Name or immutable Id of the schema + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function get($customerId, $schemaKey, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Schema"); + } + /** + * Create schema. (schemas.insert) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Schema"); + } + /** + * Retrieve all schemas for a customer (schemas.listSchemas) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schemas + */ + public function listSchemas($customerId, $optParams = array()) + { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Schemas"); + } + /** + * Update schema. This method supports patch semantics. (schemas.patch) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $schemaKey + * Name or immutable Id of the schema. + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Schema"); + } + /** + * Update schema (schemas.update) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $schemaKey + * Name or immutable Id of the schema. + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Schema"); + } +} + /** * The "tokens" collection of methods. * Typical usage is: @@ -2005,6 +2243,14 @@ public function delete($userKey, $optParams = array()) * @param string $userKey * Email or immutable Id of the user * @param array $optParams Optional parameters. + * + * @opt_param string viewType + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. + * @opt_param string customFieldMask + * Comma-separated list of schema names. All fields from these schemas are fetched. This should + * only be set when projection=custom. + * @opt_param string projection + * What subset of fields to fetch for this user. * @return Google_Service_Directory_User */ public function get($userKey, $optParams = array()) @@ -2040,8 +2286,13 @@ public function insert(Google_Service_Directory_User $postBody, $optParams = arr * @opt_param string domain * Name of the domain. Fill this field to get users from only this domain. To return all users in a * multi-domain fill customer field instead. + * @opt_param string projection + * What subset of fields to fetch for this user. * @opt_param string showDeleted * If set to true retrieves the list of deleted users. Default is false + * @opt_param string customFieldMask + * Comma-separated list of schema names. All fields from these schemas are fetched. This should + * only be set when projection=custom. * @opt_param int maxResults * Maximum number of results to return. Default is 100. Max allowed is 500 * @opt_param string pageToken @@ -2049,9 +2300,10 @@ public function insert(Google_Service_Directory_User $postBody, $optParams = arr * @opt_param string sortOrder * Whether to return results in ascending or descending order. * @opt_param string query - * Query string search. Should be of the form "" where field can be any of supported fields, - * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value - * should always be followed by a *. + * Query string search. Should be of the form "". Complete documentation is at + * https://developers.google.com/admin-sdk/directory/v1/guides/search-users + * @opt_param string viewType + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. * @opt_param string event * Event on which subscription is intended (if subscribing) * @return Google_Service_Directory_Users @@ -2134,8 +2386,13 @@ public function update($userKey, Google_Service_Directory_User $postBody, $optPa * @opt_param string domain * Name of the domain. Fill this field to get users from only this domain. To return all users in a * multi-domain fill customer field instead. + * @opt_param string projection + * What subset of fields to fetch for this user. * @opt_param string showDeleted * If set to true retrieves the list of deleted users. Default is false + * @opt_param string customFieldMask + * Comma-separated list of schema names. All fields from these schemas are fetched. This should + * only be set when projection=custom. * @opt_param int maxResults * Maximum number of results to return. Default is 100. Max allowed is 500 * @opt_param string pageToken @@ -2143,9 +2400,10 @@ public function update($userKey, Google_Service_Directory_User $postBody, $optPa * @opt_param string sortOrder * Whether to return results in ascending or descending order. * @opt_param string query - * Query string search. Should be of the form "" where field can be any of supported fields, - * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value - * should always be followed by a *. + * Query string search. Should be of the form "". Complete documentation is at + * https://developers.google.com/admin-sdk/directory/v1/guides/search-users + * @opt_param string viewType + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. * @opt_param string event * Event on which subscription is intended (if subscribing) * @return Google_Service_Directory_Channel @@ -4013,6 +4271,236 @@ public function getOrganizationUnits() } } +class Google_Service_Directory_Schema extends Google_Collection +{ + protected $collection_key = 'fields'; + public $etag; + protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec'; + protected $fieldsDataType = 'array'; + public $kind; + public $schemaId; + public $schemaName; + + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + + public function setFields($fields) + { + $this->fields = $fields; + } + + public function getFields() + { + return $this->fields; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setSchemaId($schemaId) + { + $this->schemaId = $schemaId; + } + + public function getSchemaId() + { + return $this->schemaId; + } + + public function setSchemaName($schemaName) + { + $this->schemaName = $schemaName; + } + + public function getSchemaName() + { + return $this->schemaName; + } +} + +class Google_Service_Directory_SchemaFieldSpec extends Google_Model +{ + public $etag; + public $fieldId; + public $fieldName; + public $fieldType; + public $indexed; + public $kind; + public $multiValued; + protected $numericIndexingSpecType = 'Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec'; + protected $numericIndexingSpecDataType = ''; + public $readAccessType; + + public function setEtag($etag) + { + $this->etag = $etag; + } + + public function getEtag() + { + return $this->etag; + } + + public function setFieldId($fieldId) + { + $this->fieldId = $fieldId; + } + + public function getFieldId() + { + return $this->fieldId; + } + + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + + public function getFieldName() + { + return $this->fieldName; + } + + public function setFieldType($fieldType) + { + $this->fieldType = $fieldType; + } + + public function getFieldType() + { + return $this->fieldType; + } + + public function setIndexed($indexed) + { + $this->indexed = $indexed; + } + + public function getIndexed() + { + return $this->indexed; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setMultiValued($multiValued) + { + $this->multiValued = $multiValued; + } + + public function getMultiValued() + { + return $this->multiValued; + } + + public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec) + { + $this->numericIndexingSpec = $numericIndexingSpec; + } + + public function getNumericIndexingSpec() + { + return $this->numericIndexingSpec; + } + + public function setReadAccessType($readAccessType) + { + $this->readAccessType = $readAccessType; + } + + public function getReadAccessType() + { + return $this->readAccessType; + } +} + +class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model +{ + public $maxValue; + public $minValue; + + public function setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + + public function getMaxValue() + { + return $this->maxValue; + } + + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + + public function getMinValue() + { + return $this->minValue; + } +} + +class Google_Service_Directory_Schemas extends Google_Collection +{ + protected $collection_key = 'schemas'; + public $etag; + public $kind; + protected $schemasType = 'Google_Service_Directory_Schema'; + protected $schemasDataType = 'array'; + + 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 setSchemas($schemas) + { + $this->schemas = $schemas; + } + + public function getSchemas() + { + return $this->schemas; + } +} + class Google_Service_Directory_Token extends Google_Collection { protected $collection_key = 'scopes'; @@ -4153,6 +4641,7 @@ class Google_Service_Directory_User extends Google_Collection public $aliases; public $changePasswordAtNextLogin; public $creationTime; + public $customSchemas; public $customerId; public $deletionTime; public $emails; @@ -4231,6 +4720,16 @@ public function getCreationTime() return $this->creationTime; } + public function setCustomSchemas($customSchemas) + { + $this->customSchemas = $customSchemas; + } + + public function getCustomSchemas() + { + return $this->customSchemas; + } + public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -4639,6 +5138,16 @@ public function getType() } } +class Google_Service_Directory_UserCustomProperties extends Google_Model +{ + +} + +class Google_Service_Directory_UserCustomSchemas extends Google_Model +{ + +} + class Google_Service_Directory_UserEmail extends Google_Model { public $address; From 5bb4c3d2fc8d03058ba9e9e545336ff7c2a04d2b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 24 Sep 2014 02:03:52 -0700 Subject: [PATCH 0233/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 8793baa9a..8bee0ee28 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -1612,6 +1612,7 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection protected $otherElectionsDataType = 'array'; protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; protected $pollingLocationsDataType = 'array'; + public $precinctId; protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; protected $stateDataType = 'array'; @@ -1685,6 +1686,16 @@ public function getPollingLocations() return $this->pollingLocations; } + public function setPrecinctId($precinctId) + { + $this->precinctId = $precinctId; + } + + public function getPrecinctId() + { + return $this->precinctId; + } + public function setState($state) { $this->state = $state; From add64cebc6176bda978a51ede3c6c7ad163d84f0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 25 Sep 2014 02:05:13 -0700 Subject: [PATCH 0234/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 91 ++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 60ccae49e..76b0069a1 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -485,6 +485,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'mergeVariants' => array( + 'path' => 'variantsets/{variantSetId}/mergeVariants', + 'httpMethod' => 'POST', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'search' => array( 'path' => 'variantsets/search', 'httpMethod' => 'POST', @@ -1115,8 +1125,9 @@ public function get($variantId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } /** - * Creates variant data by asynchronously importing the provided information. - * (variants.import) + * Creates variant data by asynchronously importing the provided information. If + * the destination variant set already contains data, new variants will be + * merged according to the behavior of mergeVariants. (variants.import) * * @param Google_ImportVariantsRequest $postBody * @param array $optParams Optional parameters. @@ -1199,6 +1210,27 @@ public function get($variantSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); } + /** + * Merges the given variants with existing variants. Each variant will be merged + * with an existing variant that matches its reference sequence, start, end, + * reference bases, and alternative bases. If no such variant exists, a new one + * will be created. + * + * When variants are merged, the call information from the new variant is added + * to the existing variant, and other fields (such as key/value pairs) are + * discarded. (variantsets.mergeVariants) + * + * @param string $variantSetId + * The destination variant set. + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + */ + public function mergeVariants($variantSetId, Google_Service_Genomics_Variant $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('mergeVariants', array($params)); + } /** * Returns a list of all variant sets matching search criteria. * (variantsets.search) @@ -1466,8 +1498,13 @@ class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collec public $align; public $callVariants; public $gcsOutputPath; + public $libraryName; public $pairedSourceUris; + public $platformName; + public $platformUnit; public $projectId; + public $readGroupId; + public $sampleName; public $sourceUris; public function setAlign($align) @@ -1500,6 +1537,16 @@ public function getGcsOutputPath() return $this->gcsOutputPath; } + public function setLibraryName($libraryName) + { + $this->libraryName = $libraryName; + } + + public function getLibraryName() + { + return $this->libraryName; + } + public function setPairedSourceUris($pairedSourceUris) { $this->pairedSourceUris = $pairedSourceUris; @@ -1510,6 +1557,26 @@ public function getPairedSourceUris() return $this->pairedSourceUris; } + public function setPlatformName($platformName) + { + $this->platformName = $platformName; + } + + public function getPlatformName() + { + return $this->platformName; + } + + public function setPlatformUnit($platformUnit) + { + $this->platformUnit = $platformUnit; + } + + public function getPlatformUnit() + { + return $this->platformUnit; + } + public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1520,6 +1587,26 @@ public function getProjectId() return $this->projectId; } + public function setReadGroupId($readGroupId) + { + $this->readGroupId = $readGroupId; + } + + public function getReadGroupId() + { + return $this->readGroupId; + } + + public function setSampleName($sampleName) + { + $this->sampleName = $sampleName; + } + + public function getSampleName() + { + return $this->sampleName; + } + public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; From d3daa60e742184eb2d73e5e7bd256ba76468ee1e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Sep 2014 02:07:09 -0700 Subject: [PATCH 0235/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 76b0069a1..210820c24 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -3396,9 +3396,11 @@ class Google_Service_Genomics_Variant extends Google_Collection protected $callsDataType = 'array'; public $created; public $end; + public $filter; public $id; public $info; public $names; + public $quality; public $referenceBases; public $referenceName; public $start; @@ -3444,6 +3446,16 @@ public function getEnd() return $this->end; } + public function setFilter($filter) + { + $this->filter = $filter; + } + + public function getFilter() + { + return $this->filter; + } + public function setId($id) { $this->id = $id; @@ -3474,6 +3486,16 @@ public function getNames() return $this->names; } + public function setQuality($quality) + { + $this->quality = $quality; + } + + public function getQuality() + { + return $this->quality; + } + public function setReferenceBases($referenceBases) { $this->referenceBases = $referenceBases; From 769f98a28585cb05ce0283c64c7cb49b482db911 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Sep 2014 02:07:10 -0700 Subject: [PATCH 0236/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 917246abc..bdff90351 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -5169,6 +5169,7 @@ public function getViewCount() class Google_Service_YouTube_ChannelStatus extends Google_Model { public $isLinked; + public $longUploadsStatus; public $privacyStatus; public function setIsLinked($isLinked) @@ -5181,6 +5182,16 @@ public function getIsLinked() return $this->isLinked; } + public function setLongUploadsStatus($longUploadsStatus) + { + $this->longUploadsStatus = $longUploadsStatus; + } + + public function getLongUploadsStatus() + { + return $this->longUploadsStatus; + } + public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; @@ -6780,6 +6791,7 @@ class Google_Service_YouTube_InvideoPromotion extends Google_Collection protected $itemsDataType = 'array'; protected $positionType = 'Google_Service_YouTube_InvideoPosition'; protected $positionDataType = ''; + public $useSmartTiming; public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) { @@ -6810,6 +6822,16 @@ public function getPosition() { return $this->position; } + + public function setUseSmartTiming($useSmartTiming) + { + $this->useSmartTiming = $useSmartTiming; + } + + public function getUseSmartTiming() + { + return $this->useSmartTiming; + } } class Google_Service_YouTube_InvideoTiming extends Google_Model @@ -7362,6 +7384,7 @@ public function getStatus() class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model { public $closedCaptionsIngestionUrl; + public $isReusable; public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) { @@ -7372,6 +7395,16 @@ public function getClosedCaptionsIngestionUrl() { return $this->closedCaptionsIngestionUrl; } + + public function setIsReusable($isReusable) + { + $this->isReusable = $isReusable; + } + + public function getIsReusable() + { + return $this->isReusable; + } } class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection From 7fefe98e1f8cd58ca9edf8680963ebae422a5541 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:28 -0700 Subject: [PATCH 0237/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 160 ++++++++++++++++++++++++++++-- 1 file changed, 153 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 58ff77048..c31af5882 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -3336,6 +3336,8 @@ public function listTablesPermissions($id, $optParams = array()) class Google_Service_MapsEngine_AcquisitionTime extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $end; public $precision; public $start; @@ -3374,6 +3376,8 @@ public function getStart() class Google_Service_MapsEngine_Asset extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $bbox; public $creationTime; public $creatorEmail; @@ -3533,6 +3537,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection { protected $collection_key = 'assets'; + protected $internal_gapi_mappings = array( + ); protected $assetsType = 'Google_Service_MapsEngine_Asset'; protected $assetsDataType = 'array'; public $nextPageToken; @@ -3560,6 +3566,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_Border extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $opacity; public $width; @@ -3597,6 +3605,8 @@ public function getWidth() class Google_Service_MapsEngine_Color extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $opacity; @@ -3623,6 +3633,8 @@ public function getOpacity() class Google_Service_MapsEngine_Datasource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -3639,6 +3651,8 @@ public function getId() class Google_Service_MapsEngine_DisplayRule extends Google_Collection { protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); protected $filtersType = 'Google_Service_MapsEngine_Filter'; protected $filtersDataType = 'array'; protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; @@ -3714,6 +3728,8 @@ public function getZoomLevels() class Google_Service_MapsEngine_Feature extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; protected $geometryDataType = ''; public $properties; @@ -3752,6 +3768,8 @@ public function getType() class Google_Service_MapsEngine_FeatureInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $content; public function setContent($content) @@ -3768,6 +3786,9 @@ public function getContent() class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection { protected $collection_key = 'primaryKeys'; + protected $internal_gapi_mappings = array( + "gxIds" => "gx_ids", + ); public $gxIds; public $primaryKeys; @@ -3795,6 +3816,8 @@ public function getPrimaryKeys() class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection { protected $collection_key = 'features'; + protected $internal_gapi_mappings = array( + ); protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; public $normalizeGeometries; @@ -3823,6 +3846,8 @@ public function getNormalizeGeometries() class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection { protected $collection_key = 'features'; + protected $internal_gapi_mappings = array( + ); protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; public $normalizeGeometries; @@ -3851,6 +3876,8 @@ public function getNormalizeGeometries() class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection { protected $collection_key = 'features'; + protected $internal_gapi_mappings = array( + ); public $allowedQueriesPerSecond; protected $featuresType = 'Google_Service_MapsEngine_Feature'; protected $featuresDataType = 'array'; @@ -3912,6 +3939,8 @@ public function getType() class Google_Service_MapsEngine_Filter extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $column; public $operator; public $value; @@ -3949,6 +3978,8 @@ public function getValue() class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public function setType($type) @@ -3965,6 +3996,8 @@ public function getType() class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection { protected $collection_key = 'geometries'; + protected $internal_gapi_mappings = array( + ); protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; protected $geometriesDataType = 'array'; @@ -3982,6 +4015,8 @@ public function getGeometries() class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -3998,6 +4033,8 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -4014,6 +4051,8 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -4030,6 +4069,8 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -4046,6 +4087,8 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -4062,6 +4105,8 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public function setCoordinates($coordinates) @@ -4077,11 +4122,14 @@ public function getCoordinates() class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_Icon extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $id; public $name; @@ -4119,6 +4167,8 @@ public function getName() class Google_Service_MapsEngine_IconStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $name; protected $scaledShapeType = 'Google_Service_MapsEngine_ScaledShape'; @@ -4170,6 +4220,8 @@ public function getScalingFunction() class Google_Service_MapsEngine_IconsListResponse extends Google_Collection { protected $collection_key = 'icons'; + protected $internal_gapi_mappings = array( + ); protected $iconsType = 'Google_Service_MapsEngine_Icon'; protected $iconsDataType = 'array'; public $nextPageToken; @@ -4197,6 +4249,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_LabelStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $column; public $fontStyle; @@ -4280,6 +4334,8 @@ public function getSize() class Google_Service_MapsEngine_Layer extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $bbox; public $creationTime; public $creatorEmail; @@ -4507,6 +4563,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_LayersListResponse extends Google_Collection { protected $collection_key = 'layers'; + protected $internal_gapi_mappings = array( + ); protected $layersType = 'Google_Service_MapsEngine_Layer'; protected $layersDataType = 'array'; public $nextPageToken; @@ -4535,6 +4593,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_LineStyle extends Google_Collection { protected $collection_key = 'dash'; + protected $internal_gapi_mappings = array( + ); protected $borderType = 'Google_Service_MapsEngine_Border'; protected $borderDataType = ''; public $dash; @@ -4586,6 +4646,8 @@ public function getStroke() class Google_Service_MapsEngine_LineStyleStroke extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $opacity; public $width; @@ -4624,6 +4686,8 @@ public function getWidth() class Google_Service_MapsEngine_Map extends Google_Collection { protected $collection_key = 'versions'; + protected $internal_gapi_mappings = array( + ); public $bbox; protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = ''; @@ -4839,6 +4903,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_MapFolder extends Google_Collection { protected $collection_key = 'defaultViewport'; + protected $internal_gapi_mappings = array( + ); protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = 'array'; public $defaultViewport; @@ -4910,6 +4976,8 @@ public function getVisibility() class Google_Service_MapsEngine_MapItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public function setType($type) @@ -4926,6 +4994,8 @@ public function getType() class Google_Service_MapsEngine_MapKmlLink extends Google_Collection { protected $collection_key = 'defaultViewport'; + protected $internal_gapi_mappings = array( + ); public $defaultViewport; public $kmlUrl; public $name; @@ -4975,6 +5045,8 @@ public function getVisibility() class Google_Service_MapsEngine_MapLayer extends Google_Collection { protected $collection_key = 'defaultViewport'; + protected $internal_gapi_mappings = array( + ); public $defaultViewport; public $id; public $key; @@ -5035,6 +5107,8 @@ public function getVisibility() class Google_Service_MapsEngine_MapsListResponse extends Google_Collection { protected $collection_key = 'maps'; + protected $internal_gapi_mappings = array( + ); protected $mapsType = 'Google_Service_MapsEngine_Map'; protected $mapsDataType = 'array'; public $nextPageToken; @@ -5062,6 +5136,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_MapsengineFile extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $filename; public $size; public $uploadStatus; @@ -5099,6 +5175,8 @@ public function getUploadStatus() class Google_Service_MapsEngine_Parent extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -5115,6 +5193,8 @@ public function getId() class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection { protected $collection_key = 'parents'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $parentsType = 'Google_Service_MapsEngine_Parent'; protected $parentsDataType = 'array'; @@ -5142,6 +5222,8 @@ public function getParents() class Google_Service_MapsEngine_Permission extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $discoverable; public $id; public $role; @@ -5191,6 +5273,8 @@ public function getType() class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Collection { protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); public $ids; public function setIds($ids) @@ -5206,12 +5290,15 @@ public function getIds() class Google_Service_MapsEngine_PermissionsBatchDeleteResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Collection { protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); protected $permissionsType = 'Google_Service_MapsEngine_Permission'; protected $permissionsDataType = 'array'; @@ -5228,12 +5315,15 @@ public function getPermissions() class Google_Service_MapsEngine_PermissionsBatchUpdateResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collection { protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); protected $permissionsType = 'Google_Service_MapsEngine_Permission'; protected $permissionsDataType = 'array'; @@ -5250,6 +5340,8 @@ public function getPermissions() class Google_Service_MapsEngine_PointStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $iconType = 'Google_Service_MapsEngine_IconStyle'; protected $iconDataType = ''; protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; @@ -5278,6 +5370,8 @@ public function getLabel() class Google_Service_MapsEngine_PolygonStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $fillType = 'Google_Service_MapsEngine_Color'; protected $fillDataType = ''; protected $strokeType = 'Google_Service_MapsEngine_Border'; @@ -5306,11 +5400,14 @@ public function getStroke() class Google_Service_MapsEngine_ProcessResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_Project extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $name; @@ -5338,6 +5435,8 @@ public function getName() class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection { protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); protected $projectsType = 'Google_Service_MapsEngine_Project'; protected $projectsDataType = 'array'; @@ -5354,11 +5453,14 @@ public function getProjects() class Google_Service_MapsEngine_PublishResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_PublishedLayer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $id; public $layerType; @@ -5419,6 +5521,8 @@ public function getProjectId() class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Collection { protected $collection_key = 'layers'; + protected $internal_gapi_mappings = array( + ); protected $layersType = 'Google_Service_MapsEngine_PublishedLayer'; protected $layersDataType = 'array'; public $nextPageToken; @@ -5446,6 +5550,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_PublishedMap extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentsType = 'Google_Service_MapsEngine_MapItem'; protected $contentsDataType = ''; public $defaultViewport; @@ -5518,6 +5624,8 @@ public function getProjectId() class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collection { protected $collection_key = 'maps'; + protected $internal_gapi_mappings = array( + ); protected $mapsType = 'Google_Service_MapsEngine_PublishedMap'; protected $mapsDataType = 'array'; public $nextPageToken; @@ -5546,6 +5654,8 @@ public function getNextPageToken() class Google_Service_MapsEngine_Raster extends Google_Collection { protected $collection_key = 'files'; + protected $internal_gapi_mappings = array( + ); protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; protected $acquisitionTimeDataType = ''; public $attribution; @@ -5762,6 +5872,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_RasterCollection extends Google_Collection { protected $collection_key = 'bbox'; + protected $internal_gapi_mappings = array( + ); public $attribution; public $bbox; public $creationTime; @@ -5954,6 +6066,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection { protected $collection_key = 'rasterCollections'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; protected $rasterCollectionsDataType = 'array'; @@ -5982,6 +6096,8 @@ public function getRasterCollections() class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $bbox; public $creationTime; public $description; @@ -6086,6 +6202,8 @@ public function getTags() class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection { protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); public $ids; public function setIds($ids) @@ -6101,12 +6219,15 @@ public function getIds() class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection { protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); public $ids; public function setIds($ids) @@ -6122,12 +6243,15 @@ public function getIds() class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection { protected $collection_key = 'rasters'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; protected $rastersDataType = 'array'; @@ -6156,6 +6280,8 @@ public function getRasters() class Google_Service_MapsEngine_RastersListResponse extends Google_Collection { protected $collection_key = 'rasters'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $rastersType = 'Google_Service_MapsEngine_Raster'; protected $rastersDataType = 'array'; @@ -6183,6 +6309,8 @@ public function getRasters() class Google_Service_MapsEngine_ScaledShape extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $borderType = 'Google_Service_MapsEngine_Border'; protected $borderDataType = ''; protected $fillType = 'Google_Service_MapsEngine_Color'; @@ -6222,6 +6350,8 @@ public function getShape() class Google_Service_MapsEngine_ScalingFunction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $column; public $scalingType; protected $sizeRangeType = 'Google_Service_MapsEngine_SizeRange'; @@ -6273,6 +6403,8 @@ public function getValueRange() class Google_Service_MapsEngine_Schema extends Google_Collection { protected $collection_key = 'columns'; + protected $internal_gapi_mappings = array( + ); protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; protected $columnsDataType = 'array'; public $primaryGeometry; @@ -6311,6 +6443,8 @@ public function getPrimaryKey() class Google_Service_MapsEngine_SizeRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $max; public $min; @@ -6338,6 +6472,8 @@ public function getMin() class Google_Service_MapsEngine_Table extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $bbox; public $creationTime; public $creatorEmail; @@ -6542,6 +6678,8 @@ public function getWritersCanEditPermissions() class Google_Service_MapsEngine_TableColumn extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $type; @@ -6569,6 +6707,8 @@ public function getType() class Google_Service_MapsEngine_TablesListResponse extends Google_Collection { protected $collection_key = 'tables'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $tablesType = 'Google_Service_MapsEngine_Table'; protected $tablesDataType = 'array'; @@ -6596,6 +6736,8 @@ public function getTables() class Google_Service_MapsEngine_ValueRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $max; public $min; @@ -6623,6 +6765,8 @@ public function getMin() class Google_Service_MapsEngine_VectorStyle extends Google_Collection { protected $collection_key = 'displayRules'; + protected $internal_gapi_mappings = array( + ); protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; protected $displayRulesDataType = 'array'; protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; @@ -6662,6 +6806,8 @@ public function getType() class Google_Service_MapsEngine_ZoomLevels extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $max; public $min; From 1c12f92f97097009f6cc78373e101feeb185be20 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:30 -0700 Subject: [PATCH 0238/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 160 +++++++++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index e12d66437..16a0ea62d 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -2477,6 +2477,8 @@ public function listVolumesUseruploaded($optParams = array()) class Google_Service_Books_Annotation extends Google_Collection { protected $collection_key = 'pageIds'; + protected $internal_gapi_mappings = array( + ); public $afterSelectedText; public $beforeSelectedText; protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges'; @@ -2671,6 +2673,8 @@ public function getVolumeId() class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $cfiRangeDataType = ''; public $contentVersion; @@ -2734,6 +2738,8 @@ public function getImageCfiRange() class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $cfiRangeDataType = ''; public $contentVersion; @@ -2797,6 +2803,8 @@ public function getImageCfiRange() class Google_Service_Books_AnnotationLayerSummary extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allowedCharacterCount; public $limitType; public $remainingCharacterCount; @@ -2834,6 +2842,9 @@ public function getRemainingCharacterCount() class Google_Service_Books_Annotationdata extends Google_Model { + protected $internal_gapi_mappings = array( + "encodedData" => "encoded_data", + ); public $annotationType; public $data; public $encodedData; @@ -2938,6 +2949,8 @@ public function getVolumeId() class Google_Service_Books_Annotations extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Annotation'; protected $itemsDataType = 'array'; public $kind; @@ -2988,6 +3001,8 @@ public function getTotalItems() class Google_Service_Books_AnnotationsSummary extends Google_Collection { protected $collection_key = 'layers'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; protected $layersDataType = 'array'; @@ -3015,6 +3030,8 @@ public function getLayers() class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allowedCharacterCount; public $layerId; public $limitType; @@ -3075,6 +3092,8 @@ public function getUpdated() class Google_Service_Books_Annotationsdata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Annotationdata'; protected $itemsDataType = 'array'; public $kind; @@ -3124,6 +3143,8 @@ public function getTotalItems() class Google_Service_Books_BooksAnnotationsRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endOffset; public $endPosition; public $startOffset; @@ -3172,6 +3193,8 @@ public function getStartPosition() class Google_Service_Books_BooksCloudloadingResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $author; public $processingState; public $title; @@ -3220,6 +3243,9 @@ public function getVolumeId() class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model { + protected $internal_gapi_mappings = array( + "consistencyToken" => "consistency_token", + ); public $consistencyToken; public function setConsistencyToken($consistencyToken) @@ -3235,6 +3261,8 @@ public function getConsistencyToken() class Google_Service_Books_Bookshelf extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $access; public $created; public $description; @@ -3350,6 +3378,8 @@ public function getVolumesLastUpdated() class Google_Service_Books_Bookshelves extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Bookshelf'; protected $itemsDataType = 'array'; public $kind; @@ -3377,6 +3407,8 @@ public function getKind() class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deviceAllowed; public $kind; public $maxConcurrentDevices; @@ -3502,6 +3534,8 @@ public function getVolumeId() class Google_Service_Books_Dictlayerdata extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $commonType = 'Google_Service_Books_DictlayerdataCommon'; protected $commonDataType = ''; protected $dictType = 'Google_Service_Books_DictlayerdataDict'; @@ -3541,6 +3575,8 @@ public function getKind() class Google_Service_Books_DictlayerdataCommon extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $title; public function setTitle($title) @@ -3557,6 +3593,8 @@ public function getTitle() class Google_Service_Books_DictlayerdataDict extends Google_Collection { protected $collection_key = 'words'; + protected $internal_gapi_mappings = array( + ); protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource'; protected $sourceDataType = ''; protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; @@ -3585,6 +3623,8 @@ public function getWords() class Google_Service_Books_DictlayerdataDictSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -3612,6 +3652,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWords extends Google_Collection { protected $collection_key = 'senses'; + protected $internal_gapi_mappings = array( + ); protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives'; protected $derivativesDataType = 'array'; protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples'; @@ -3664,6 +3706,8 @@ public function getSource() class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource'; protected $sourceDataType = ''; public $text; @@ -3691,6 +3735,8 @@ public function getText() class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -3717,6 +3763,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource'; protected $sourceDataType = ''; public $text; @@ -3744,6 +3792,8 @@ public function getText() class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -3771,6 +3821,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection { protected $collection_key = 'synonyms'; + protected $internal_gapi_mappings = array( + ); protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations'; protected $conjugationsDataType = 'array'; protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions'; @@ -3867,6 +3919,8 @@ public function getSynonyms() class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -3894,6 +3948,8 @@ public function getValue() class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection { protected $collection_key = 'examples'; + protected $internal_gapi_mappings = array( + ); public $definition; protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; protected $examplesDataType = 'array'; @@ -3921,6 +3977,8 @@ public function getExamples() class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource'; protected $sourceDataType = ''; public $text; @@ -3948,6 +4006,8 @@ public function getText() class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -3974,6 +4034,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -4000,6 +4062,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource'; protected $sourceDataType = ''; public $text; @@ -4027,6 +4091,8 @@ public function getText() class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -4053,6 +4119,8 @@ public function getUrl() class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attribution; public $url; @@ -4079,6 +4147,8 @@ public function getUrl() class Google_Service_Books_DownloadAccessRestriction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deviceAllowed; public $downloadsAcquired; public $justAcquired; @@ -4216,6 +4286,8 @@ public function getVolumeId() class Google_Service_Books_DownloadAccesses extends Google_Collection { protected $collection_key = 'downloadAccessList'; + protected $internal_gapi_mappings = array( + ); protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction'; protected $downloadAccessListDataType = 'array'; public $kind; @@ -4243,6 +4315,8 @@ public function getKind() class Google_Service_Books_Geolayerdata extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $commonType = 'Google_Service_Books_GeolayerdataCommon'; protected $commonDataType = ''; protected $geoType = 'Google_Service_Books_GeolayerdataGeo'; @@ -4282,6 +4356,8 @@ public function getKind() class Google_Service_Books_GeolayerdataCommon extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $lang; public $previewImageUrl; public $snippet; @@ -4342,6 +4418,8 @@ public function getTitle() class Google_Service_Books_GeolayerdataGeo extends Google_Collection { protected $collection_key = 'boundary'; + protected $internal_gapi_mappings = array( + ); protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary'; protected $boundaryDataType = 'array'; public $cachePolicy; @@ -4436,6 +4514,8 @@ public function getZoom() class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -4462,6 +4542,8 @@ public function getLongitude() class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi'; protected $hiDataType = ''; protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo'; @@ -4490,6 +4572,8 @@ public function getLo() class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -4516,6 +4600,8 @@ public function getLongitude() class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -4543,6 +4629,8 @@ public function getLongitude() class Google_Service_Books_Layersummaries extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Layersummary'; protected $itemsDataType = 'array'; public $kind; @@ -4582,6 +4670,8 @@ public function getTotalItems() class Google_Service_Books_Layersummary extends Google_Collection { protected $collection_key = 'annotationTypes'; + protected $internal_gapi_mappings = array( + ); public $annotationCount; public $annotationTypes; public $annotationsDataLink; @@ -4730,6 +4820,8 @@ public function getVolumeId() class Google_Service_Books_Offers extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_OffersItems'; protected $itemsDataType = 'array'; public $kind; @@ -4758,6 +4850,8 @@ public function getKind() class Google_Service_Books_OffersItems extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $artUrl; public $id; protected $itemsType = 'Google_Service_Books_OffersItemsItems'; @@ -4796,6 +4890,8 @@ public function getItems() class Google_Service_Books_OffersItemsItems extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $author; public $canonicalVolumeLink; public $coverUrl; @@ -4866,6 +4962,8 @@ public function getVolumeId() class Google_Service_Books_ReadingPosition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $epubCfiPosition; public $gbImagePosition; public $gbTextPosition; @@ -4947,6 +5045,8 @@ public function getVolumeId() class Google_Service_Books_RequestAccess extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction'; protected $concurrentAccessDataType = ''; protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; @@ -4986,6 +5086,8 @@ public function getKind() class Google_Service_Books_Review extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Books_ReviewAuthor'; protected $authorDataType = ''; public $content; @@ -5102,6 +5204,8 @@ public function getVolumeId() class Google_Service_Books_ReviewAuthor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public function setDisplayName($displayName) @@ -5117,6 +5221,8 @@ public function getDisplayName() class Google_Service_Books_ReviewSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $extraDescription; public $url; @@ -5154,6 +5260,8 @@ public function getUrl() class Google_Service_Books_Volume extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo'; protected $accessInfoDataType = ''; public $etag; @@ -5286,6 +5394,8 @@ public function getVolumeInfo() class Google_Service_Books_VolumeAccessInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accessViewStatus; public $country; protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; @@ -5447,6 +5557,8 @@ public function getWebReaderLink() class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $acsTokenLink; public $downloadLink; public $isAvailable; @@ -5484,6 +5596,8 @@ public function getIsAvailable() class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $acsTokenLink; public $downloadLink; public $isAvailable; @@ -5522,6 +5636,8 @@ public function getIsAvailable() class Google_Service_Books_VolumeLayerInfo extends Google_Collection { protected $collection_key = 'layers'; + protected $internal_gapi_mappings = array( + ); protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; protected $layersDataType = 'array'; @@ -5538,6 +5654,8 @@ public function getLayers() class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $layerId; public $volumeAnnotationsVersion; @@ -5564,6 +5682,8 @@ public function getVolumeAnnotationsVersion() class Google_Service_Books_VolumeRecommendedInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $explanation; public function setExplanation($explanation) @@ -5580,6 +5700,8 @@ public function getExplanation() class Google_Service_Books_VolumeSaleInfo extends Google_Collection { protected $collection_key = 'offers'; + protected $internal_gapi_mappings = array( + ); public $buyLink; public $country; public $isEbook; @@ -5675,6 +5797,8 @@ public function getSaleability() class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $amount; public $currencyCode; @@ -5701,6 +5825,8 @@ public function getCurrencyCode() class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $finskyOfferType; protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice'; protected $listPriceDataType = ''; @@ -5752,6 +5878,8 @@ public function getRetailPrice() class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $amountInMicros; public $currencyCode; @@ -5778,6 +5906,8 @@ public function getCurrencyCode() class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $unit; @@ -5804,6 +5934,8 @@ public function getUnit() class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $amountInMicros; public $currencyCode; @@ -5830,6 +5962,8 @@ public function getCurrencyCode() class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $amount; public $currencyCode; @@ -5856,6 +5990,8 @@ public function getCurrencyCode() class Google_Service_Books_VolumeSearchInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $textSnippet; public function setTextSnippet($textSnippet) @@ -5871,6 +6007,8 @@ public function getTextSnippet() class Google_Service_Books_VolumeUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; protected $copyDataType = ''; public $isInMyBooks; @@ -6001,6 +6139,8 @@ public function getUserUploadedVolumeInfo() class Google_Service_Books_VolumeUserInfoCopy extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allowedCharacterCount; public $limitType; public $remainingCharacterCount; @@ -6049,6 +6189,8 @@ public function getUpdated() class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endUtcSec; public $startUtcSec; @@ -6075,6 +6217,8 @@ public function getStartUtcSec() class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $processingState; public function setProcessingState($processingState) @@ -6091,6 +6235,8 @@ public function getProcessingState() class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { protected $collection_key = 'industryIdentifiers'; + protected $internal_gapi_mappings = array( + ); public $authors; public $averageRating; public $canonicalVolumeLink; @@ -6340,6 +6486,8 @@ public function getTitle() class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $thickness; public $width; @@ -6377,6 +6525,8 @@ public function getWidth() class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $extraLarge; public $large; public $medium; @@ -6447,6 +6597,8 @@ public function getThumbnail() class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $identifier; public $type; @@ -6474,6 +6626,8 @@ public function getType() class Google_Service_Books_Volumeannotation extends Google_Collection { protected $collection_key = 'pageIds'; + protected $internal_gapi_mappings = array( + ); public $annotationDataId; public $annotationDataLink; public $annotationType; @@ -6633,6 +6787,8 @@ public function getVolumeId() class Google_Service_Books_VolumeannotationContentRanges extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $cfiRangeDataType = ''; public $contentVersion; @@ -6685,6 +6841,8 @@ public function getGbTextRange() class Google_Service_Books_Volumeannotations extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Volumeannotation'; protected $itemsDataType = 'array'; public $kind; @@ -6746,6 +6904,8 @@ public function getVersion() class Google_Service_Books_Volumes extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Books_Volume'; protected $itemsDataType = 'array'; public $kind; From fcc5e74c6196411af32399632107553c67920684 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:32 -0700 Subject: [PATCH 0239/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 54 ++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index eb71c9d31..269cc5402 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -1840,6 +1840,8 @@ public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $opt class Google_Service_Storage_Bucket extends Google_Collection { protected $collection_key = 'defaultObjectAcl'; + protected $internal_gapi_mappings = array( + ); protected $aclType = 'Google_Service_Storage_BucketAccessControl'; protected $aclDataType = 'array'; protected $corsType = 'Google_Service_Storage_BucketCors'; @@ -2050,6 +2052,8 @@ public function getWebsite() class Google_Service_Storage_BucketAccessControl extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bucket; public $domain; public $email; @@ -2176,6 +2180,8 @@ public function getSelfLink() class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $projectNumber; public $team; @@ -2203,6 +2209,8 @@ public function getTeam() class Google_Service_Storage_BucketAccessControls extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; protected $itemsDataType = 'array'; public $kind; @@ -2231,6 +2239,8 @@ public function getKind() class Google_Service_Storage_BucketCors extends Google_Collection { protected $collection_key = 'responseHeader'; + protected $internal_gapi_mappings = array( + ); public $maxAgeSeconds; public $method; public $origin; @@ -2280,6 +2290,8 @@ public function getResponseHeader() class Google_Service_Storage_BucketLifecycle extends Google_Collection { protected $collection_key = 'rule'; + protected $internal_gapi_mappings = array( + ); protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; protected $ruleDataType = 'array'; @@ -2296,6 +2308,8 @@ public function getRule() class Google_Service_Storage_BucketLifecycleRule extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; protected $actionDataType = ''; protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; @@ -2324,6 +2338,8 @@ public function getCondition() class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public function setType($type) @@ -2339,6 +2355,8 @@ public function getType() class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $age; public $createdBefore; public $isLive; @@ -2387,6 +2405,8 @@ public function getNumNewerVersions() class Google_Service_Storage_BucketLogging extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $logBucket; public $logObjectPrefix; @@ -2413,6 +2433,8 @@ public function getLogObjectPrefix() class Google_Service_Storage_BucketOwner extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $entity; public $entityId; @@ -2439,6 +2461,8 @@ public function getEntityId() class Google_Service_Storage_BucketVersioning extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $enabled; public function setEnabled($enabled) @@ -2454,6 +2478,8 @@ public function getEnabled() class Google_Service_Storage_BucketWebsite extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $mainPageSuffix; public $notFoundPage; @@ -2481,6 +2507,8 @@ public function getNotFoundPage() class Google_Service_Storage_Buckets extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Storage_Bucket'; protected $itemsDataType = 'array'; public $kind; @@ -2519,6 +2547,8 @@ public function getNextPageToken() class Google_Service_Storage_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $expiration; public $id; @@ -2633,12 +2663,15 @@ public function getType() class Google_Service_Storage_ChannelParams extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Storage_ComposeRequest extends Google_Collection { protected $collection_key = 'sourceObjects'; + protected $internal_gapi_mappings = array( + ); protected $destinationType = 'Google_Service_Storage_StorageObject'; protected $destinationDataType = ''; public $kind; @@ -2678,6 +2711,8 @@ public function getSourceObjects() class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $generation; public $name; protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; @@ -2716,6 +2751,8 @@ public function getObjectPreconditions() class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ifGenerationMatch; public function setIfGenerationMatch($ifGenerationMatch) @@ -2731,6 +2768,8 @@ public function getIfGenerationMatch() class Google_Service_Storage_ObjectAccessControl extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bucket; public $domain; public $email; @@ -2879,6 +2918,8 @@ public function getSelfLink() class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $projectNumber; public $team; @@ -2906,6 +2947,8 @@ public function getTeam() class Google_Service_Storage_ObjectAccessControls extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $items; public $kind; @@ -2933,6 +2976,8 @@ public function getKind() class Google_Service_Storage_Objects extends Google_Collection { protected $collection_key = 'prefixes'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Storage_StorageObject'; protected $itemsDataType = 'array'; public $kind; @@ -2983,6 +3028,8 @@ public function getPrefixes() class Google_Service_Storage_StorageObject extends Google_Collection { protected $collection_key = 'acl'; + protected $internal_gapi_mappings = array( + ); protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; protected $aclDataType = 'array'; public $bucket; @@ -3253,11 +3300,14 @@ public function getUpdated() class Google_Service_Storage_StorageObjectMetadata extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Storage_StorageObjectOwner extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $entity; public $entityId; From 95f6b1109f328bb23071308499714c7858b7e00a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:32 -0700 Subject: [PATCH 0240/1274] Updated AdExchangeSeller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeSeller.php | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index bcdfde796..7c8b11d2a 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -852,6 +852,8 @@ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = ar class Google_Service_AdExchangeSeller_Account extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -890,6 +892,8 @@ public function getName() class Google_Service_AdExchangeSeller_Accounts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_Account'; protected $itemsDataType = 'array'; @@ -939,6 +943,8 @@ public function getNextPageToken() class Google_Service_AdExchangeSeller_AdClient extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $arcOptIn; public $id; public $kind; @@ -999,6 +1005,8 @@ public function getSupportsReporting() class Google_Service_AdExchangeSeller_AdClients extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; protected $itemsDataType = 'array'; @@ -1048,6 +1056,8 @@ public function getNextPageToken() class Google_Service_AdExchangeSeller_Alert extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $message; @@ -1108,6 +1118,8 @@ public function getType() class Google_Service_AdExchangeSeller_Alerts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeSeller_Alert'; protected $itemsDataType = 'array'; public $kind; @@ -1135,6 +1147,8 @@ public function getKind() class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $id; public $kind; @@ -1195,6 +1209,8 @@ public function getTargetingInfo() class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adsAppearOn; public $description; public $location; @@ -1244,6 +1260,8 @@ public function getSiteLanguage() class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel'; protected $itemsDataType = 'array'; @@ -1294,6 +1312,8 @@ public function getNextPageToken() class Google_Service_AdExchangeSeller_Metadata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry'; protected $itemsDataType = 'array'; public $kind; @@ -1321,6 +1341,8 @@ public function getKind() class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $advertiserName; public $buyerNetworkName; public $currencyCode; @@ -1414,6 +1436,8 @@ public function getStartTime() class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal'; protected $itemsDataType = 'array'; public $kind; @@ -1442,6 +1466,8 @@ public function getKind() class Google_Service_AdExchangeSeller_Report extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $averages; protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders'; protected $headersDataType = 'array'; @@ -1524,6 +1550,8 @@ public function getWarnings() class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currency; public $name; public $type; @@ -1562,6 +1590,8 @@ public function getType() class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection { protected $collection_key = 'supportedProducts'; + protected $internal_gapi_mappings = array( + ); public $compatibleDimensions; public $compatibleMetrics; public $id; @@ -1643,6 +1673,8 @@ public function getSupportedProducts() class Google_Service_AdExchangeSeller_SavedReport extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -1681,6 +1713,8 @@ public function getName() class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport'; protected $itemsDataType = 'array'; @@ -1730,6 +1764,8 @@ public function getNextPageToken() class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $urlPattern; @@ -1768,6 +1804,8 @@ public function getUrlPattern() class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel'; protected $itemsDataType = 'array'; From b0644a4ea238950e5ddbe4f8ee300277bf74664e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:33 -0700 Subject: [PATCH 0241/1274] Updated Mirror.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Mirror.php | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index 2d4c1b8fd..517f00531 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -837,6 +837,8 @@ public function listTimelineAttachments($itemId, $optParams = array()) class Google_Service_Mirror_Account extends Google_Collection { protected $collection_key = 'userData'; + protected $internal_gapi_mappings = array( + ); protected $authTokensType = 'Google_Service_Mirror_AuthToken'; protected $authTokensDataType = 'array'; public $features; @@ -887,6 +889,8 @@ public function getUserData() class Google_Service_Mirror_Attachment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $contentType; public $contentUrl; public $id; @@ -936,6 +940,8 @@ public function getIsProcessingContent() class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Mirror_Attachment'; protected $itemsDataType = 'array'; public $kind; @@ -963,6 +969,8 @@ public function getKind() class Google_Service_Mirror_AuthToken extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $authToken; public $type; @@ -989,6 +997,8 @@ public function getType() class Google_Service_Mirror_Command extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public function setType($type) @@ -1005,6 +1015,8 @@ public function getType() class Google_Service_Mirror_Contact extends Google_Collection { protected $collection_key = 'sharingFeatures'; + protected $internal_gapi_mappings = array( + ); protected $acceptCommandsType = 'Google_Service_Mirror_Command'; protected $acceptCommandsDataType = 'array'; public $acceptTypes; @@ -1143,6 +1155,8 @@ public function getType() class Google_Service_Mirror_ContactsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Mirror_Contact'; protected $itemsDataType = 'array'; public $kind; @@ -1170,6 +1184,8 @@ public function getKind() class Google_Service_Mirror_Location extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accuracy; public $address; public $displayName; @@ -1263,6 +1279,8 @@ public function getTimestamp() class Google_Service_Mirror_LocationsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Mirror_Location'; protected $itemsDataType = 'array'; public $kind; @@ -1291,6 +1309,9 @@ public function getKind() class Google_Service_Mirror_MenuItem extends Google_Collection { protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + "contextualCommand" => "contextual_command", + ); public $action; public $contextualCommand; public $id; @@ -1362,6 +1383,8 @@ public function getValues() class Google_Service_Mirror_MenuValue extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $iconUrl; public $state; @@ -1400,6 +1423,8 @@ public function getState() class Google_Service_Mirror_Notification extends Google_Collection { protected $collection_key = 'userActions'; + protected $internal_gapi_mappings = array( + ); public $collection; public $itemId; public $operation; @@ -1471,6 +1496,8 @@ public function getVerifyToken() class Google_Service_Mirror_NotificationConfig extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deliveryTime; public $level; @@ -1497,6 +1524,8 @@ public function getLevel() class Google_Service_Mirror_Setting extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $value; @@ -1535,6 +1564,8 @@ public function getValue() class Google_Service_Mirror_Subscription extends Google_Collection { protected $collection_key = 'operation'; + protected $internal_gapi_mappings = array( + ); public $callbackUrl; public $collection; public $id; @@ -1640,6 +1671,8 @@ public function getVerifyToken() class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Mirror_Subscription'; protected $itemsDataType = 'array'; public $kind; @@ -1668,6 +1701,8 @@ public function getKind() class Google_Service_Mirror_TimelineItem extends Google_Collection { protected $collection_key = 'recipients'; + protected $internal_gapi_mappings = array( + ); protected $attachmentsType = 'Google_Service_Mirror_Attachment'; protected $attachmentsDataType = 'array'; public $bundleId; @@ -1965,6 +2000,8 @@ public function getUpdated() class Google_Service_Mirror_TimelineListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Mirror_TimelineItem'; protected $itemsDataType = 'array'; public $kind; @@ -2003,6 +2040,8 @@ public function getNextPageToken() class Google_Service_Mirror_UserAction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $payload; public $type; @@ -2029,6 +2068,8 @@ public function getType() class Google_Service_Mirror_UserData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; From c85a3b414da1dfd913defa44d8e48e467ecaffd2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:34 -0700 Subject: [PATCH 0242/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 275 +++++++++++++++++++++++++++++++-- 1 file changed, 266 insertions(+), 9 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 144ed3a01..fc4fec5dd 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -5517,6 +5517,8 @@ public function listZones($project, $optParams = array()) class Google_Service_Compute_AccessConfig extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $name; public $natIP; @@ -5566,6 +5568,8 @@ public function getType() class Google_Service_Compute_Address extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); public $address; public $creationTimestamp; public $description; @@ -5680,6 +5684,8 @@ public function getUsers() class Google_Service_Compute_AddressAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; protected $itemsDataType = 'map'; @@ -5740,12 +5746,15 @@ public function getSelfLink() class Google_Service_Compute_AddressAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_AddressList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Address'; protected $itemsDataType = 'array'; @@ -5807,6 +5816,8 @@ public function getSelfLink() class Google_Service_Compute_AddressesScopedList extends Google_Collection { protected $collection_key = 'addresses'; + protected $internal_gapi_mappings = array( + ); protected $addressesType = 'Google_Service_Compute_Address'; protected $addressesDataType = 'array'; protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; @@ -5836,6 +5847,8 @@ public function getWarning() class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; protected $dataDataType = 'array'; @@ -5874,6 +5887,8 @@ public function getMessage() class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -5901,6 +5916,8 @@ public function getValue() class Google_Service_Compute_AttachedDisk extends Google_Collection { protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); public $autoDelete; public $boot; public $deviceName; @@ -6016,6 +6033,8 @@ public function getType() class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $diskName; public $diskSizeGb; public $diskType; @@ -6064,6 +6083,8 @@ public function getSourceImage() class Google_Service_Compute_Backend extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $balancingMode; public $capacityScaler; public $description; @@ -6146,6 +6167,8 @@ public function getMaxUtilization() class Google_Service_Compute_BackendService extends Google_Collection { protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); protected $backendsType = 'Google_Service_Compute_Backend'; protected $backendsDataType = 'array'; public $creationTimestamp; @@ -6295,6 +6318,8 @@ public function getTimeoutSec() class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection { protected $collection_key = 'healthStatus'; + protected $internal_gapi_mappings = array( + ); protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; protected $healthStatusDataType = 'array'; public $kind; @@ -6323,6 +6348,8 @@ public function getKind() class Google_Service_Compute_BackendServiceList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_BackendService'; protected $itemsDataType = 'array'; @@ -6383,6 +6410,8 @@ public function getSelfLink() class Google_Service_Compute_DeprecationStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deleted; public $deprecated; public $obsolete; @@ -6443,6 +6472,8 @@ public function getState() class Google_Service_Compute_Disk extends Google_Collection { protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; public $id; @@ -6623,6 +6654,8 @@ public function getZone() class Google_Service_Compute_DiskAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_DisksScopedList'; protected $itemsDataType = 'map'; @@ -6683,12 +6716,15 @@ public function getSelfLink() class Google_Service_Compute_DiskAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_DiskList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Disk'; protected $itemsDataType = 'array'; @@ -6749,6 +6785,8 @@ public function getSelfLink() class Google_Service_Compute_DiskType extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $defaultDiskSizeGb; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; @@ -6864,6 +6902,8 @@ public function getZone() class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; protected $itemsDataType = 'map'; @@ -6924,12 +6964,15 @@ public function getSelfLink() class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_DiskTypeList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_DiskType'; protected $itemsDataType = 'array'; @@ -6991,6 +7034,8 @@ public function getSelfLink() class Google_Service_Compute_DiskTypesScopedList extends Google_Collection { protected $collection_key = 'diskTypes'; + protected $internal_gapi_mappings = array( + ); protected $diskTypesType = 'Google_Service_Compute_DiskType'; protected $diskTypesDataType = 'array'; protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; @@ -7020,6 +7065,8 @@ public function getWarning() class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; protected $dataDataType = 'array'; @@ -7058,6 +7105,8 @@ public function getMessage() class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -7085,6 +7134,8 @@ public function getValue() class Google_Service_Compute_DisksScopedList extends Google_Collection { protected $collection_key = 'disks'; + protected $internal_gapi_mappings = array( + ); protected $disksType = 'Google_Service_Compute_Disk'; protected $disksDataType = 'array'; protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; @@ -7114,6 +7165,8 @@ public function getWarning() class Google_Service_Compute_DisksScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; protected $dataDataType = 'array'; @@ -7152,6 +7205,8 @@ public function getMessage() class Google_Service_Compute_DisksScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -7179,6 +7234,8 @@ public function getValue() class Google_Service_Compute_Firewall extends Google_Collection { protected $collection_key = 'targetTags'; + protected $internal_gapi_mappings = array( + ); protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; protected $allowedDataType = 'array'; public $creationTimestamp; @@ -7306,6 +7363,9 @@ public function getTargetTags() class Google_Service_Compute_FirewallAllowed extends Google_Collection { protected $collection_key = 'ports'; + protected $internal_gapi_mappings = array( + "iPProtocol" => "IPProtocol", + ); public $iPProtocol; public $ports; @@ -7333,6 +7393,8 @@ public function getPorts() class Google_Service_Compute_FirewallList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Firewall'; protected $itemsDataType = 'array'; @@ -7393,6 +7455,10 @@ public function getSelfLink() class Google_Service_Compute_ForwardingRule extends Google_Model { + protected $internal_gapi_mappings = array( + "iPAddress" => "IPAddress", + "iPProtocol" => "IPProtocol", + ); public $iPAddress; public $iPProtocol; public $creationTimestamp; @@ -7518,6 +7584,8 @@ public function getTarget() class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; protected $itemsDataType = 'map'; @@ -7578,12 +7646,15 @@ public function getSelfLink() class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_ForwardingRuleList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_ForwardingRule'; protected $itemsDataType = 'array'; @@ -7645,6 +7716,8 @@ public function getSelfLink() class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection { protected $collection_key = 'forwardingRules'; + protected $internal_gapi_mappings = array( + ); protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; protected $forwardingRulesDataType = 'array'; protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; @@ -7674,6 +7747,8 @@ public function getWarning() class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; protected $dataDataType = 'array'; @@ -7712,6 +7787,8 @@ public function getMessage() class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -7738,6 +7815,8 @@ public function getValue() class Google_Service_Compute_HealthCheckReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $healthCheck; public function setHealthCheck($healthCheck) @@ -7753,6 +7832,8 @@ public function getHealthCheck() class Google_Service_Compute_HealthStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $healthState; public $instance; public $ipAddress; @@ -7802,6 +7883,8 @@ public function getPort() class Google_Service_Compute_HostRule extends Google_Collection { protected $collection_key = 'hosts'; + protected $internal_gapi_mappings = array( + ); public $description; public $hosts; public $pathMatcher; @@ -7839,6 +7922,8 @@ public function getPathMatcher() class Google_Service_Compute_HttpHealthCheck extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $checkIntervalSec; public $creationTimestamp; public $description; @@ -7987,6 +8072,8 @@ public function getUnhealthyThreshold() class Google_Service_Compute_HttpHealthCheckList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; protected $itemsDataType = 'array'; @@ -8048,6 +8135,8 @@ public function getSelfLink() class Google_Service_Compute_Image extends Google_Collection { protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); public $archiveSizeBytes; public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; @@ -8220,6 +8309,8 @@ public function getStatus() class Google_Service_Compute_ImageList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Image'; protected $itemsDataType = 'array'; @@ -8280,6 +8371,8 @@ public function getSelfLink() class Google_Service_Compute_ImageRawDisk extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $containerType; public $sha1Checksum; public $source; @@ -8318,6 +8411,8 @@ public function getSource() class Google_Service_Compute_Instance extends Google_Collection { protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); public $canIpForward; public $creationTimestamp; public $description; @@ -8515,6 +8610,8 @@ public function getZone() class Google_Service_Compute_InstanceAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; protected $itemsDataType = 'map'; @@ -8575,12 +8672,15 @@ public function getSelfLink() class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_InstanceList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Instance'; protected $itemsDataType = 'array'; @@ -8641,6 +8741,8 @@ public function getSelfLink() class Google_Service_Compute_InstanceReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $instance; public function setInstance($instance) @@ -8657,6 +8759,8 @@ public function getInstance() class Google_Service_Compute_InstancesScopedList extends Google_Collection { protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); protected $instancesType = 'Google_Service_Compute_Instance'; protected $instancesDataType = 'array'; protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; @@ -8686,6 +8790,8 @@ public function getWarning() class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; protected $dataDataType = 'array'; @@ -8724,6 +8830,8 @@ public function getMessage() class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -8750,6 +8858,8 @@ public function getValue() class Google_Service_Compute_License extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $chargesUseFee; public $kind; public $name; @@ -8799,6 +8909,8 @@ public function getSelfLink() class Google_Service_Compute_MachineType extends Google_Collection { protected $collection_key = 'scratchDisks'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -8959,6 +9071,8 @@ public function getZone() class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; protected $itemsDataType = 'map'; @@ -9019,12 +9133,15 @@ public function getSelfLink() class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_MachineTypeList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_MachineType'; protected $itemsDataType = 'array'; @@ -9085,6 +9202,8 @@ public function getSelfLink() class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $diskGb; public function setDiskGb($diskGb) @@ -9101,6 +9220,8 @@ public function getDiskGb() class Google_Service_Compute_MachineTypesScopedList extends Google_Collection { protected $collection_key = 'machineTypes'; + protected $internal_gapi_mappings = array( + ); protected $machineTypesType = 'Google_Service_Compute_MachineType'; protected $machineTypesDataType = 'array'; protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; @@ -9130,6 +9251,8 @@ public function getWarning() class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; protected $dataDataType = 'array'; @@ -9168,6 +9291,8 @@ public function getMessage() class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -9195,6 +9320,8 @@ public function getValue() class Google_Service_Compute_Metadata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerprint; protected $itemsType = 'Google_Service_Compute_MetadataItems'; protected $itemsDataType = 'array'; @@ -9233,6 +9360,8 @@ public function getKind() class Google_Service_Compute_MetadataItems extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -9259,6 +9388,9 @@ public function getValue() class Google_Service_Compute_Network extends Google_Model { + protected $internal_gapi_mappings = array( + "iPv4Range" => "IPv4Range", + ); public $iPv4Range; public $creationTimestamp; public $description; @@ -9352,6 +9484,8 @@ public function getSelfLink() class Google_Service_Compute_NetworkInterface extends Google_Collection { protected $collection_key = 'accessConfigs'; + protected $internal_gapi_mappings = array( + ); protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; protected $accessConfigsDataType = 'array'; public $name; @@ -9402,6 +9536,8 @@ public function getNetworkIP() class Google_Service_Compute_NetworkList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Network'; protected $itemsDataType = 'array'; @@ -9463,6 +9599,8 @@ public function getSelfLink() class Google_Service_Compute_Operation extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $clientOperationId; public $creationTimestamp; public $endTime; @@ -9711,6 +9849,8 @@ public function getZone() class Google_Service_Compute_OperationAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; protected $itemsDataType = 'map'; @@ -9771,12 +9911,15 @@ public function getSelfLink() class Google_Service_Compute_OperationAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_OperationError extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; protected $errorsDataType = 'array'; @@ -9793,6 +9936,8 @@ public function getErrors() class Google_Service_Compute_OperationErrorErrors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $location; public $message; @@ -9831,6 +9976,8 @@ public function getMessage() class Google_Service_Compute_OperationList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Operation'; protected $itemsDataType = 'array'; @@ -9892,6 +10039,8 @@ public function getSelfLink() class Google_Service_Compute_OperationWarnings extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_OperationWarningsData'; protected $dataDataType = 'array'; @@ -9930,6 +10079,8 @@ public function getMessage() class Google_Service_Compute_OperationWarningsData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -9957,6 +10108,8 @@ public function getValue() class Google_Service_Compute_OperationsScopedList extends Google_Collection { protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); protected $operationsType = 'Google_Service_Compute_Operation'; protected $operationsDataType = 'array'; protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; @@ -9986,6 +10139,8 @@ public function getWarning() class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; protected $dataDataType = 'array'; @@ -10024,6 +10179,8 @@ public function getMessage() class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -10051,6 +10208,8 @@ public function getValue() class Google_Service_Compute_PathMatcher extends Google_Collection { protected $collection_key = 'pathRules'; + protected $internal_gapi_mappings = array( + ); public $defaultService; public $description; public $name; @@ -10101,6 +10260,8 @@ public function getPathRules() class Google_Service_Compute_PathRule extends Google_Collection { protected $collection_key = 'paths'; + protected $internal_gapi_mappings = array( + ); public $paths; public $service; @@ -10128,6 +10289,8 @@ public function getService() class Google_Service_Compute_Project extends Google_Collection { protected $collection_key = 'quotas'; + protected $internal_gapi_mappings = array( + ); protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; protected $commonInstanceMetadataDataType = ''; public $creationTimestamp; @@ -10234,6 +10397,8 @@ public function getUsageExportLocation() class Google_Service_Compute_Quota extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $limit; public $metric; public $usage; @@ -10272,6 +10437,8 @@ public function getUsage() class Google_Service_Compute_Region extends Google_Collection { protected $collection_key = 'zones'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -10389,6 +10556,8 @@ public function getZones() class Google_Service_Compute_RegionList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Region'; protected $itemsDataType = 'array'; @@ -10449,6 +10618,8 @@ public function getSelfLink() class Google_Service_Compute_ResourceGroupReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $group; public function setGroup($group) @@ -10465,6 +10636,8 @@ public function getGroup() class Google_Service_Compute_Route extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; public $destRange; @@ -10636,6 +10809,8 @@ public function getWarnings() class Google_Service_Compute_RouteList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Route'; protected $itemsDataType = 'array'; @@ -10697,6 +10872,8 @@ public function getSelfLink() class Google_Service_Compute_RouteWarnings extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_RouteWarningsData'; protected $dataDataType = 'array'; @@ -10735,6 +10912,8 @@ public function getMessage() class Google_Service_Compute_RouteWarningsData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -10761,6 +10940,8 @@ public function getValue() class Google_Service_Compute_Scheduling extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $automaticRestart; public $onHostMaintenance; @@ -10787,6 +10968,8 @@ public function getOnHostMaintenance() class Google_Service_Compute_SerialPortOutput extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $contents; public $kind; public $selfLink; @@ -10825,6 +11008,8 @@ public function getSelfLink() class Google_Service_Compute_ServiceAccount extends Google_Collection { protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); public $email; public $scopes; @@ -10852,6 +11037,8 @@ public function getScopes() class Google_Service_Compute_Snapshot extends Google_Collection { protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; public $diskSizeGb; @@ -11000,6 +11187,8 @@ public function getStorageBytesStatus() class Google_Service_Compute_SnapshotList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Snapshot'; protected $itemsDataType = 'array'; @@ -11061,6 +11250,8 @@ public function getSelfLink() class Google_Service_Compute_Tags extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerprint; public $items; @@ -11087,6 +11278,8 @@ public function getItems() class Google_Service_Compute_TargetHttpProxy extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; public $id; @@ -11169,6 +11362,8 @@ public function getUrlMap() class Google_Service_Compute_TargetHttpProxyList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; protected $itemsDataType = 'array'; @@ -11229,6 +11424,8 @@ public function getSelfLink() class Google_Service_Compute_TargetInstance extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; public $id; @@ -11332,6 +11529,8 @@ public function getZone() class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; protected $itemsDataType = 'map'; @@ -11392,12 +11591,15 @@ public function getSelfLink() class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_TargetInstanceList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_TargetInstance'; protected $itemsDataType = 'array'; @@ -11459,6 +11661,8 @@ public function getSelfLink() class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection { protected $collection_key = 'targetInstances'; + protected $internal_gapi_mappings = array( + ); protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; protected $targetInstancesDataType = 'array'; protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; @@ -11488,6 +11692,8 @@ public function getWarning() class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; protected $dataDataType = 'array'; @@ -11526,6 +11732,8 @@ public function getMessage() class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -11553,6 +11761,8 @@ public function getValue() class Google_Service_Compute_TargetPool extends Google_Collection { protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); public $backupPool; public $creationTimestamp; public $description; @@ -11689,6 +11899,8 @@ public function getSessionAffinity() class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; protected $itemsDataType = 'map'; @@ -11749,12 +11961,15 @@ public function getSelfLink() class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection { protected $collection_key = 'healthStatus'; + protected $internal_gapi_mappings = array( + ); protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; protected $healthStatusDataType = 'array'; public $kind; @@ -11783,6 +11998,8 @@ public function getKind() class Google_Service_Compute_TargetPoolList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_TargetPool'; protected $itemsDataType = 'array'; @@ -11844,6 +12061,8 @@ public function getSelfLink() class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection { protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; @@ -11861,6 +12080,8 @@ public function getHealthChecks() class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection { protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; @@ -11878,6 +12099,8 @@ public function getInstances() class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection { protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; @@ -11895,6 +12118,8 @@ public function getHealthChecks() class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection { protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; @@ -11912,6 +12137,8 @@ public function getInstances() class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection { protected $collection_key = 'targetPools'; + protected $internal_gapi_mappings = array( + ); protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; protected $targetPoolsDataType = 'array'; protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; @@ -11941,6 +12168,8 @@ public function getWarning() class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; protected $dataDataType = 'array'; @@ -11979,6 +12208,8 @@ public function getMessage() class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -12005,6 +12236,8 @@ public function getValue() class Google_Service_Compute_TargetReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $target; public function setTarget($target) @@ -12020,6 +12253,8 @@ public function getTarget() class Google_Service_Compute_TestFailure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $actualService; public $expectedService; public $host; @@ -12069,6 +12304,8 @@ public function getPath() class Google_Service_Compute_UrlMap extends Google_Collection { protected $collection_key = 'tests'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $defaultService; public $description; @@ -12198,6 +12435,8 @@ public function getTests() class Google_Service_Compute_UrlMapList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_UrlMap'; protected $itemsDataType = 'array'; @@ -12258,6 +12497,8 @@ public function getSelfLink() class Google_Service_Compute_UrlMapReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $urlMap; public function setUrlMap($urlMap) @@ -12273,6 +12514,8 @@ public function getUrlMap() class Google_Service_Compute_UrlMapTest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $host; public $path; @@ -12322,6 +12565,8 @@ public function getService() class Google_Service_Compute_UrlMapValidationResult extends Google_Collection { protected $collection_key = 'testFailures'; + protected $internal_gapi_mappings = array( + ); public $loadErrors; public $loadSucceeded; protected $testFailuresType = 'Google_Service_Compute_TestFailure'; @@ -12371,6 +12616,8 @@ public function getTestPassed() class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceType = 'Google_Service_Compute_UrlMap'; protected $resourceDataType = ''; @@ -12387,6 +12634,8 @@ public function getResource() class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; protected $resultDataType = ''; @@ -12403,6 +12652,8 @@ public function getResult() class Google_Service_Compute_UsageExportLocation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bucketName; public $reportNamePrefix; @@ -12430,6 +12681,8 @@ public function getReportNamePrefix() class Google_Service_Compute_Zone extends Google_Collection { protected $collection_key = 'maintenanceWindows'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; protected $deprecatedDataType = ''; @@ -12547,6 +12800,8 @@ public function getStatus() class Google_Service_Compute_ZoneList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Compute_Zone'; protected $itemsDataType = 'array'; @@ -12607,6 +12862,8 @@ public function getSelfLink() class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $beginTime; public $description; public $endTime; From f664eec5eb9f859803b36cac9b86aede30b2e722 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:34 -0700 Subject: [PATCH 0243/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 325d5fe0c..304eb51e1 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -1743,6 +1743,8 @@ public function get($userId, $optParams = array()) class Google_Service_Blogger_Blog extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customMetaData; public $description; public $id; @@ -1894,6 +1896,8 @@ public function getUrl() class Google_Service_Blogger_BlogList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; protected $blogUserInfosDataType = 'array'; protected $itemsType = 'Google_Service_Blogger_Blog'; @@ -1933,6 +1937,8 @@ public function getKind() class Google_Service_Blogger_BlogLocale extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $country; public $language; public $variant; @@ -1970,6 +1976,8 @@ public function getVariant() class Google_Service_Blogger_BlogPages extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1996,6 +2004,8 @@ public function getTotalItems() class Google_Service_Blogger_BlogPerUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $blogId; public $hasAdminAccess; public $kind; @@ -2067,6 +2077,8 @@ public function getUserId() class Google_Service_Blogger_BlogPosts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $selfLink; @@ -2105,6 +2117,9 @@ public function getTotalItems() class Google_Service_Blogger_BlogUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + "blogUserInfo" => "blog_user_info", + ); protected $blogType = 'Google_Service_Blogger_Blog'; protected $blogDataType = ''; protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; @@ -2144,6 +2159,8 @@ public function getKind() class Google_Service_Blogger_Comment extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Blogger_CommentAuthor'; protected $authorDataType = ''; protected $blogType = 'Google_Service_Blogger_CommentBlog'; @@ -2273,6 +2290,8 @@ public function getUpdated() class Google_Service_Blogger_CommentAuthor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; @@ -2322,6 +2341,8 @@ public function getUrl() class Google_Service_Blogger_CommentAuthorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -2337,6 +2358,8 @@ public function getUrl() class Google_Service_Blogger_CommentBlog extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -2352,6 +2375,8 @@ public function getId() class Google_Service_Blogger_CommentInReplyTo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -2368,6 +2393,8 @@ public function getId() class Google_Service_Blogger_CommentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2417,6 +2444,8 @@ public function getPrevPageToken() class Google_Service_Blogger_CommentPost extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -2432,6 +2461,8 @@ public function getId() class Google_Service_Blogger_Page extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Blogger_PageAuthor'; protected $authorDataType = ''; protected $blogType = 'Google_Service_Blogger_PageBlog'; @@ -2570,6 +2601,8 @@ public function getUrl() class Google_Service_Blogger_PageAuthor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; @@ -2619,6 +2652,8 @@ public function getUrl() class Google_Service_Blogger_PageAuthorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -2634,6 +2669,8 @@ public function getUrl() class Google_Service_Blogger_PageBlog extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -2650,6 +2687,8 @@ public function getId() class Google_Service_Blogger_PageList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_Page'; protected $itemsDataType = 'array'; public $kind; @@ -2678,6 +2717,8 @@ public function getKind() class Google_Service_Blogger_Pageviews extends Google_Collection { protected $collection_key = 'counts'; + protected $internal_gapi_mappings = array( + ); public $blogId; protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; protected $countsDataType = 'array'; @@ -2716,6 +2757,8 @@ public function getKind() class Google_Service_Blogger_PageviewsCounts extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $timeRange; @@ -2743,6 +2786,8 @@ public function getTimeRange() class Google_Service_Blogger_Post extends Google_Collection { protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Blogger_PostAuthor'; protected $authorDataType = ''; protected $blogType = 'Google_Service_Blogger_PostBlog'; @@ -2961,6 +3006,8 @@ public function getUrl() class Google_Service_Blogger_PostAuthor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; @@ -3010,6 +3057,8 @@ public function getUrl() class Google_Service_Blogger_PostAuthorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3025,6 +3074,8 @@ public function getUrl() class Google_Service_Blogger_PostBlog extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -3040,6 +3091,8 @@ public function getId() class Google_Service_Blogger_PostImages extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3056,6 +3109,8 @@ public function getUrl() class Google_Service_Blogger_PostList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $kind; @@ -3094,6 +3149,8 @@ public function getNextPageToken() class Google_Service_Blogger_PostLocation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $lat; public $lng; public $name; @@ -3142,6 +3199,8 @@ public function getSpan() class Google_Service_Blogger_PostPerUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $blogId; public $hasEditAccess; public $kind; @@ -3202,6 +3261,8 @@ public function getUserId() class Google_Service_Blogger_PostReplies extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $selfLink; @@ -3240,6 +3301,9 @@ public function getTotalItems() class Google_Service_Blogger_PostUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + "postUserInfo" => "post_user_info", + ); public $kind; protected $postType = 'Google_Service_Blogger_Post'; protected $postDataType = ''; @@ -3280,6 +3344,8 @@ public function getPostUserInfo() class Google_Service_Blogger_PostUserInfosList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; protected $itemsDataType = 'array'; public $kind; @@ -3318,6 +3384,8 @@ public function getNextPageToken() class Google_Service_Blogger_User extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $about; protected $blogsType = 'Google_Service_Blogger_UserBlogs'; protected $blogsDataType = ''; @@ -3423,6 +3491,8 @@ public function getUrl() class Google_Service_Blogger_UserBlogs extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public function setSelfLink($selfLink) @@ -3438,6 +3508,8 @@ public function getSelfLink() class Google_Service_Blogger_UserLocale extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $country; public $language; public $variant; From f640e2a269cc26abda991d917db87152fd77209e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:34 -0700 Subject: [PATCH 0244/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 84 ++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 2376606f8..462f43c36 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -2272,6 +2272,8 @@ public function revoke($packageName, $subscriptionId, $token, $optParams = array class Google_Service_AndroidPublisher_Apk extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary'; protected $binaryDataType = ''; public $versionCode; @@ -2299,6 +2301,8 @@ public function getVersionCode() class Google_Service_AndroidPublisher_ApkBinary extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $sha1; public function setSha1($sha1) @@ -2314,6 +2318,8 @@ public function getSha1() class Google_Service_AndroidPublisher_ApkListing extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $language; public $recentChanges; @@ -2341,6 +2347,8 @@ public function getRecentChanges() class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection { protected $collection_key = 'listings'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; protected $listingsDataType = 'array'; @@ -2369,6 +2377,8 @@ public function getListings() class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection { protected $collection_key = 'apks'; + protected $internal_gapi_mappings = array( + ); protected $apksType = 'Google_Service_AndroidPublisher_Apk'; protected $apksDataType = 'array'; public $kind; @@ -2396,6 +2406,8 @@ public function getKind() class Google_Service_AndroidPublisher_AppDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $contactEmail; public $contactPhone; public $contactWebsite; @@ -2444,6 +2456,8 @@ public function getDefaultLanguage() class Google_Service_AndroidPublisher_AppEdit extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $expiryTimeSeconds; public $id; @@ -2470,6 +2484,8 @@ public function getId() class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $fileSize; public $referencesVersion; @@ -2496,6 +2512,8 @@ public function getReferencesVersion() class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; protected $expansionFileDataType = ''; @@ -2512,6 +2530,8 @@ public function getExpansionFile() class Google_Service_AndroidPublisher_Image extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $sha1; public $url; @@ -2550,6 +2570,8 @@ public function getUrl() class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection { protected $collection_key = 'deleted'; + protected $internal_gapi_mappings = array( + ); protected $deletedType = 'Google_Service_AndroidPublisher_Image'; protected $deletedDataType = 'array'; @@ -2567,6 +2589,8 @@ public function getDeleted() class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection { protected $collection_key = 'images'; + protected $internal_gapi_mappings = array( + ); protected $imagesType = 'Google_Service_AndroidPublisher_Image'; protected $imagesDataType = 'array'; @@ -2583,6 +2607,8 @@ public function getImages() class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $imageType = 'Google_Service_AndroidPublisher_Image'; protected $imageDataType = ''; @@ -2599,6 +2625,8 @@ public function getImage() class Google_Service_AndroidPublisher_InAppProduct extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $defaultLanguage; protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; protected $defaultPriceDataType = ''; @@ -2728,6 +2756,8 @@ public function getTrialPeriod() class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $title; @@ -2754,17 +2784,21 @@ public function getTitle() class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection { protected $collection_key = 'entrys'; + protected $internal_gapi_mappings = array( + ); protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; protected $entrysDataType = 'array'; @@ -2781,6 +2815,8 @@ public function getEntrys() class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest'; protected $inappproductsinsertrequestDataType = ''; @@ -2832,6 +2868,8 @@ public function getMethodName() class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection { protected $collection_key = 'entrys'; + protected $internal_gapi_mappings = array( + ); protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; protected $entrysDataType = 'array'; public $kind; @@ -2859,6 +2897,8 @@ public function getKind() class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse'; protected $inappproductsinsertresponseDataType = ''; @@ -2898,6 +2938,8 @@ public function getInappproductsupdateresponse() class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; @@ -2914,6 +2956,8 @@ public function getInappproduct() class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; @@ -2931,6 +2975,8 @@ public function getInappproduct() class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection { protected $collection_key = 'inappproduct'; + protected $internal_gapi_mappings = array( + ); protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = 'array'; public $kind; @@ -2982,6 +3028,8 @@ public function getTokenPagination() class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; @@ -2998,6 +3046,8 @@ public function getInappproduct() class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; @@ -3014,6 +3064,8 @@ public function getInappproduct() class Google_Service_AndroidPublisher_Listing extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $fullDescription; public $language; public $shortDescription; @@ -3074,6 +3126,8 @@ public function getVideo() class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection { protected $collection_key = 'listings'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; protected $listingsDataType = 'array'; @@ -3101,6 +3155,8 @@ public function getListings() class Google_Service_AndroidPublisher_MonthDay extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $day; public $month; @@ -3127,6 +3183,8 @@ public function getMonth() class Google_Service_AndroidPublisher_PageInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $resultPerPage; public $startIndex; public $totalResults; @@ -3164,6 +3222,8 @@ public function getTotalResults() class Google_Service_AndroidPublisher_Price extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currency; public $priceMicros; @@ -3190,6 +3250,8 @@ public function getPriceMicros() class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $consumptionState; public $developerPayload; public $kind; @@ -3249,6 +3311,8 @@ public function getPurchaseTimeMillis() class Google_Service_AndroidPublisher_Season extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $endType = 'Google_Service_AndroidPublisher_MonthDay'; protected $endDataType = ''; protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; @@ -3277,6 +3341,8 @@ public function getStart() class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $desiredExpiryTimeMillis; public $expectedExpiryTimeMillis; @@ -3303,6 +3369,8 @@ public function getExpectedExpiryTimeMillis() class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoRenewing; public $expiryTimeMillis; public $kind; @@ -3351,6 +3419,8 @@ public function getStartTimeMillis() class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $deferralInfoType = 'Google_Service_AndroidPublisher_SubscriptionDeferralInfo'; protected $deferralInfoDataType = ''; @@ -3367,6 +3437,8 @@ public function getDeferralInfo() class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $newExpiryTimeMillis; public function setNewExpiryTimeMillis($newExpiryTimeMillis) @@ -3383,6 +3455,8 @@ public function getNewExpiryTimeMillis() class Google_Service_AndroidPublisher_Testers extends Google_Collection { protected $collection_key = 'googlePlusCommunities'; + protected $internal_gapi_mappings = array( + ); public $googleGroups; public $googlePlusCommunities; @@ -3409,6 +3483,8 @@ public function getGooglePlusCommunities() class Google_Service_AndroidPublisher_TokenPagination extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $nextPageToken; public $previousPageToken; @@ -3436,6 +3512,8 @@ public function getPreviousPageToken() class Google_Service_AndroidPublisher_Track extends Google_Collection { protected $collection_key = 'versionCodes'; + protected $internal_gapi_mappings = array( + ); public $track; public $userFraction; public $versionCodes; @@ -3474,6 +3552,8 @@ public function getVersionCodes() class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection { protected $collection_key = 'tracks'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $tracksType = 'Google_Service_AndroidPublisher_Track'; protected $tracksDataType = 'array'; From 309ef91016ae00ced613cdd1eaa185dcf517d29f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:35 -0700 Subject: [PATCH 0245/1274] Updated AppState.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AppState.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index 3a79673da..5012b5a39 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -226,6 +226,8 @@ public function update($stateKey, Google_Service_AppState_UpdateRequest $postBod class Google_Service_AppState_GetResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentStateVersion; public $data; public $kind; @@ -275,6 +277,8 @@ public function getStateKey() class Google_Service_AppState_ListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AppState_GetResponse'; protected $itemsDataType = 'array'; public $kind; @@ -313,6 +317,8 @@ public function getMaximumKeyCount() class Google_Service_AppState_UpdateRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $data; public $kind; @@ -339,6 +345,8 @@ public function getKind() class Google_Service_AppState_WriteResult extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentStateVersion; public $kind; public $stateKey; From b034d56eb0015c9ca272ffd7b9201a256c8494c9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:35 -0700 Subject: [PATCH 0246/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 101 ++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 210820c24..34b8d51a4 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1252,6 +1252,8 @@ public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBod class Google_Service_Genomics_Beacon extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $exists; public function setExists($exists) @@ -1268,6 +1270,8 @@ public function getExists() class Google_Service_Genomics_Call extends Google_Collection { protected $collection_key = 'genotypeLikelihood'; + protected $internal_gapi_mappings = array( + ); public $callSetId; public $callSetName; public $genotype; @@ -1338,12 +1342,15 @@ public function getPhaseset() class Google_Service_Genomics_CallInfo extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Genomics_CallSet extends Google_Collection { protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); public $created; public $id; public $info; @@ -1414,11 +1421,14 @@ public function getVariantSetIds() class Google_Service_Genomics_CallSetInfo extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Genomics_CoverageBucket extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $meanCoverage; protected $rangeType = 'Google_Service_Genomics_GenomicRange'; protected $rangeDataType = ''; @@ -1446,6 +1456,8 @@ public function getRange() class Google_Service_Genomics_Dataset extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $isPublic; public $name; @@ -1495,6 +1507,8 @@ public function getProjectId() class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection { protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); public $align; public $callVariants; public $gcsOutputPath; @@ -1620,6 +1634,8 @@ public function getSourceUris() class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public function setJobId($jobId) @@ -1636,6 +1652,8 @@ public function getJobId() class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection { protected $collection_key = 'referenceNames'; + protected $internal_gapi_mappings = array( + ); public $exportUri; public $projectId; public $readsetIds; @@ -1684,6 +1702,8 @@ public function getReferenceNames() class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public function setJobId($jobId) @@ -1700,6 +1720,8 @@ public function getJobId() class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection { protected $collection_key = 'callSetIds'; + protected $internal_gapi_mappings = array( + ); public $bigqueryDataset; public $bigqueryTable; public $callSetIds; @@ -1770,6 +1792,8 @@ public function getVariantSetId() class Google_Service_Genomics_ExportVariantsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public function setJobId($jobId) @@ -1785,6 +1809,8 @@ public function getJobId() class Google_Service_Genomics_GenomicRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $sequenceEnd; public $sequenceName; public $sequenceStart; @@ -1822,6 +1848,8 @@ public function getSequenceStart() class Google_Service_Genomics_Header extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $sortingOrder; public $version; @@ -1849,6 +1877,8 @@ public function getVersion() class Google_Service_Genomics_HeaderSection extends Google_Collection { protected $collection_key = 'refSequences'; + protected $internal_gapi_mappings = array( + ); public $comments; public $fileUri; public $filename; @@ -1935,6 +1965,8 @@ public function getRefSequences() class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); public $datasetId; public $sourceUris; @@ -1961,6 +1993,8 @@ public function getSourceUris() class Google_Service_Genomics_ImportReadsetsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public function setJobId($jobId) @@ -1977,6 +2011,8 @@ public function getJobId() class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); public $format; public $sourceUris; public $variantSetId; @@ -2014,6 +2050,8 @@ public function getVariantSetId() class Google_Service_Genomics_ImportVariantsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public function setJobId($jobId) @@ -2030,6 +2068,8 @@ public function getJobId() class Google_Service_Genomics_Job extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $created; public $description; public $errors; @@ -2135,6 +2175,8 @@ public function getWarnings() class Google_Service_Genomics_JobRequest extends Google_Collection { protected $collection_key = 'source'; + protected $internal_gapi_mappings = array( + ); public $destination; public $source; public $type; @@ -2173,6 +2215,8 @@ public function getType() class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection { protected $collection_key = 'coverageBuckets'; + protected $internal_gapi_mappings = array( + ); public $bucketWidth; protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; protected $coverageBucketsDataType = 'array'; @@ -2212,6 +2256,8 @@ public function getNextPageToken() class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection { protected $collection_key = 'datasets'; + protected $internal_gapi_mappings = array( + ); protected $datasetsType = 'Google_Service_Genomics_Dataset'; protected $datasetsDataType = 'array'; public $nextPageToken; @@ -2239,6 +2285,8 @@ public function getNextPageToken() class Google_Service_Genomics_Metadata extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $id; public $info; @@ -2320,11 +2368,14 @@ public function getValue() class Google_Service_Genomics_MetadataInfo extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Genomics_Program extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $commandLine; public $id; public $name; @@ -2384,6 +2435,8 @@ public function getVersion() class Google_Service_Genomics_Read extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $alignedBases; public $baseQuality; public $cigar; @@ -2553,6 +2606,8 @@ public function getTemplateLength() class Google_Service_Genomics_ReadGroup extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $date; public $description; public $flowOrder; @@ -2689,12 +2744,15 @@ public function getSequencingTechnology() class Google_Service_Genomics_ReadTags extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Genomics_Readset extends Google_Collection { protected $collection_key = 'fileData'; + protected $internal_gapi_mappings = array( + ); public $datasetId; protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; protected $fileDataDataType = 'array'; @@ -2744,6 +2802,8 @@ public function getName() class Google_Service_Genomics_ReferenceBound extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $referenceName; public $upperBound; @@ -2770,6 +2830,8 @@ public function getUpperBound() class Google_Service_Genomics_ReferenceSequence extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $assemblyId; public $length; public $md5Checksum; @@ -2841,6 +2903,8 @@ public function getUri() class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); public $name; public $pageSize; public $pageToken; @@ -2890,6 +2954,8 @@ public function getVariantSetIds() class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection { protected $collection_key = 'callSets'; + protected $internal_gapi_mappings = array( + ); protected $callSetsType = 'Google_Service_Genomics_CallSet'; protected $callSetsDataType = 'array'; public $nextPageToken; @@ -2918,6 +2984,8 @@ public function getNextPageToken() class Google_Service_Genomics_SearchJobsRequest extends Google_Collection { protected $collection_key = 'status'; + protected $internal_gapi_mappings = array( + ); public $createdAfter; public $createdBefore; public $maxResults; @@ -2989,6 +3057,8 @@ public function getStatus() class Google_Service_Genomics_SearchJobsResponse extends Google_Collection { protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); protected $jobsType = 'Google_Service_Genomics_Job'; protected $jobsDataType = 'array'; public $nextPageToken; @@ -3017,6 +3087,8 @@ public function getNextPageToken() class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { protected $collection_key = 'readsetIds'; + protected $internal_gapi_mappings = array( + ); public $maxResults; public $pageToken; public $readsetIds; @@ -3088,6 +3160,8 @@ public function getSequenceStart() class Google_Service_Genomics_SearchReadsResponse extends Google_Collection { protected $collection_key = 'reads'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $readsType = 'Google_Service_Genomics_Read'; protected $readsDataType = 'array'; @@ -3116,6 +3190,8 @@ public function getReads() class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection { protected $collection_key = 'datasetIds'; + protected $internal_gapi_mappings = array( + ); public $datasetIds; public $maxResults; public $name; @@ -3165,6 +3241,8 @@ public function getPageToken() class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection { protected $collection_key = 'readsets'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $readsetsType = 'Google_Service_Genomics_Readset'; protected $readsetsDataType = 'array'; @@ -3193,6 +3271,8 @@ public function getReadsets() class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection { protected $collection_key = 'datasetIds'; + protected $internal_gapi_mappings = array( + ); public $datasetIds; public $pageSize; public $pageToken; @@ -3231,6 +3311,8 @@ public function getPageToken() class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection { protected $collection_key = 'variantSets'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; protected $variantSetsDataType = 'array'; @@ -3259,6 +3341,8 @@ public function getVariantSets() class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); public $callSetIds; public $end; public $maxCalls; @@ -3363,6 +3447,8 @@ public function getVariantSetIds() class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection { protected $collection_key = 'variants'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $variantsType = 'Google_Service_Genomics_Variant'; protected $variantsDataType = 'array'; @@ -3391,6 +3477,8 @@ public function getVariants() class Google_Service_Genomics_Variant extends Google_Collection { protected $collection_key = 'names'; + protected $internal_gapi_mappings = array( + ); public $alternateBases; protected $callsType = 'Google_Service_Genomics_Call'; protected $callsDataType = 'array'; @@ -3539,12 +3627,15 @@ public function getVariantSetId() class Google_Service_Genomics_VariantInfo extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Genomics_VariantSet extends Google_Collection { protected $collection_key = 'referenceBounds'; + protected $internal_gapi_mappings = array( + ); public $datasetId; public $id; protected $metadataType = 'Google_Service_Genomics_Metadata'; From 0e8998b1d35c9e3a722c305d66bd4a4199f8b102 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:35 -0700 Subject: [PATCH 0247/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index f8f52ac35..cd9a35ddd 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -496,6 +496,8 @@ public function listResourceRecordSets($project, $managedZone, $optParams = arra class Google_Service_Dns_Change extends Google_Collection { protected $collection_key = 'deletions'; + protected $internal_gapi_mappings = array( + ); protected $additionsType = 'Google_Service_Dns_ResourceRecordSet'; protected $additionsDataType = 'array'; protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet'; @@ -569,6 +571,8 @@ public function getStatus() class Google_Service_Dns_ChangesListResponse extends Google_Collection { protected $collection_key = 'changes'; + protected $internal_gapi_mappings = array( + ); protected $changesType = 'Google_Service_Dns_Change'; protected $changesDataType = 'array'; public $kind; @@ -608,6 +612,8 @@ public function getNextPageToken() class Google_Service_Dns_ManagedZone extends Google_Collection { protected $collection_key = 'nameServers'; + protected $internal_gapi_mappings = array( + ); public $creationTime; public $description; public $dnsName; @@ -690,6 +696,8 @@ public function getNameServers() class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection { protected $collection_key = 'managedZones'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $managedZonesType = 'Google_Service_Dns_ManagedZone'; protected $managedZonesDataType = 'array'; @@ -728,6 +736,8 @@ public function getNextPageToken() class Google_Service_Dns_Project extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $number; @@ -777,6 +787,8 @@ public function getQuota() class Google_Service_Dns_Quota extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $managedZones; public $resourceRecordsPerRrset; @@ -859,6 +871,8 @@ public function getTotalRrdataSizePerChange() class Google_Service_Dns_ResourceRecordSet extends Google_Collection { protected $collection_key = 'rrdatas'; + protected $internal_gapi_mappings = array( + ); public $kind; public $name; public $rrdatas; @@ -919,6 +933,8 @@ public function getType() class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection { protected $collection_key = 'rrsets'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; From 1e0a98686e77ee7c2902b5c6bb55d83f86eea917 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:36 -0700 Subject: [PATCH 0248/1274] Updated AdSenseHost.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSenseHost.php | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index c9b7c23dc..4e0edee28 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -1255,6 +1255,8 @@ public function listUrlchannels($adClientId, $optParams = array()) class Google_Service_AdSenseHost_Account extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -1304,6 +1306,8 @@ public function getStatus() class Google_Service_AdSenseHost_Accounts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSenseHost_Account'; protected $itemsDataType = 'array'; @@ -1342,6 +1346,8 @@ public function getKind() class Google_Service_AdSenseHost_AdClient extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $arcOptIn; public $id; public $kind; @@ -1402,6 +1408,8 @@ public function getSupportsReporting() class Google_Service_AdSenseHost_AdClients extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSenseHost_AdClient'; protected $itemsDataType = 'array'; @@ -1451,6 +1459,8 @@ public function getNextPageToken() class Google_Service_AdSenseHost_AdCode extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adCode; public $kind; @@ -1477,6 +1487,8 @@ public function getKind() class Google_Service_AdSenseHost_AdStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors'; protected $colorsDataType = ''; public $corners; @@ -1527,6 +1539,8 @@ public function getKind() class Google_Service_AdSenseHost_AdStyleColors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $background; public $border; public $text; @@ -1586,6 +1600,8 @@ public function getUrl() class Google_Service_AdSenseHost_AdStyleFont extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $family; public $size; @@ -1612,6 +1628,8 @@ public function getSize() class Google_Service_AdSenseHost_AdUnit extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings'; protected $contentAdsSettingsDataType = ''; @@ -1707,6 +1725,8 @@ public function getStatus() class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption'; protected $backupOptionDataType = ''; public $size; @@ -1745,6 +1765,8 @@ public function getType() class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $type; public $url; @@ -1782,6 +1804,8 @@ public function getUrl() class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $markupLanguage; public $scriptingLanguage; public $size; @@ -1831,6 +1855,8 @@ public function getType() class Google_Service_AdSenseHost_AdUnits extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSenseHost_AdUnit'; protected $itemsDataType = 'array'; @@ -1881,6 +1907,8 @@ public function getNextPageToken() class Google_Service_AdSenseHost_AssociationSession extends Google_Collection { protected $collection_key = 'productCodes'; + protected $internal_gapi_mappings = array( + ); public $accountId; public $id; public $kind; @@ -1984,6 +2012,8 @@ public function getWebsiteUrl() class Google_Service_AdSenseHost_CustomChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $id; public $kind; @@ -2033,6 +2063,8 @@ public function getName() class Google_Service_AdSenseHost_CustomChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel'; protected $itemsDataType = 'array'; @@ -2083,6 +2115,8 @@ public function getNextPageToken() class Google_Service_AdSenseHost_Report extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $averages; protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders'; protected $headersDataType = 'array'; @@ -2165,6 +2199,8 @@ public function getWarnings() class Google_Service_AdSenseHost_ReportHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currency; public $name; public $type; @@ -2202,6 +2238,8 @@ public function getType() class Google_Service_AdSenseHost_UrlChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $urlPattern; @@ -2240,6 +2278,8 @@ public function getUrlPattern() class Google_Service_AdSenseHost_UrlChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel'; protected $itemsDataType = 'array'; From 14fb0b57446e8c28f9cf0fa54cd99da268b2480b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:36 -0700 Subject: [PATCH 0249/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 86 ++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index f09aa5def..2116c2f7d 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1901,6 +1901,8 @@ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = ar class Google_Service_Calendar_Acl extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Calendar_AclRule'; protected $itemsDataType = 'array'; @@ -1961,6 +1963,8 @@ public function getNextSyncToken() class Google_Service_Calendar_AclRule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -2021,6 +2025,8 @@ public function getScope() class Google_Service_Calendar_AclRuleScope extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -2047,6 +2053,8 @@ public function getValue() class Google_Service_Calendar_Calendar extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $etag; public $id; @@ -2129,6 +2137,8 @@ public function getTimeZone() class Google_Service_Calendar_CalendarList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Calendar_CalendarListEntry'; protected $itemsDataType = 'array'; @@ -2190,6 +2200,8 @@ public function getNextSyncToken() class Google_Service_Calendar_CalendarListEntry extends Google_Collection { protected $collection_key = 'defaultReminders'; + protected $internal_gapi_mappings = array( + ); public $accessRole; public $backgroundColor; public $colorId; @@ -2395,6 +2407,8 @@ public function getTimeZone() class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection { protected $collection_key = 'notifications'; + protected $internal_gapi_mappings = array( + ); protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; protected $notificationsDataType = 'array'; @@ -2411,6 +2425,8 @@ public function getNotifications() class Google_Service_Calendar_CalendarNotification extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $method; public $type; @@ -2437,6 +2453,8 @@ public function getType() class Google_Service_Calendar_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $expiration; public $id; @@ -2551,11 +2569,14 @@ public function getType() class Google_Service_Calendar_ChannelParams extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_ColorDefinition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $background; public $foreground; @@ -2582,6 +2603,8 @@ public function getForeground() class Google_Service_Calendar_Colors extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $calendarType = 'Google_Service_Calendar_ColorDefinition'; protected $calendarDataType = 'map'; protected $eventType = 'Google_Service_Calendar_ColorDefinition'; @@ -2632,16 +2655,20 @@ public function getUpdated() class Google_Service_Calendar_ColorsCalendar extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_ColorsEvent extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_Error extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $domain; public $reason; @@ -2669,6 +2696,8 @@ public function getReason() class Google_Service_Calendar_Event extends Google_Collection { protected $collection_key = 'recurrence'; + protected $internal_gapi_mappings = array( + ); public $anyoneCanAddSelf; protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; protected $attendeesDataType = 'array'; @@ -3079,6 +3108,8 @@ public function getVisibility() class Google_Service_Calendar_EventAttendee extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $additionalGuests; public $comment; public $displayName; @@ -3193,6 +3224,8 @@ public function getSelf() class Google_Service_Calendar_EventCreator extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $email; public $id; @@ -3241,6 +3274,8 @@ public function getSelf() class Google_Service_Calendar_EventDateTime extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $date; public $dateTime; public $timeZone; @@ -3278,6 +3313,8 @@ public function getTimeZone() class Google_Service_Calendar_EventExtendedProperties extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $private; public $shared; @@ -3304,16 +3341,20 @@ public function getShared() class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_EventGadget extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $display; public $height; public $iconLink; @@ -3406,11 +3447,14 @@ public function getWidth() class Google_Service_Calendar_EventGadgetPreferences extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_EventOrganizer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $email; public $id; @@ -3459,6 +3503,8 @@ public function getSelf() class Google_Service_Calendar_EventReminder extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $method; public $minutes; @@ -3486,6 +3532,8 @@ public function getMinutes() class Google_Service_Calendar_EventReminders extends Google_Collection { protected $collection_key = 'overrides'; + protected $internal_gapi_mappings = array( + ); protected $overridesType = 'Google_Service_Calendar_EventReminder'; protected $overridesDataType = 'array'; public $useDefault; @@ -3513,6 +3561,8 @@ public function getUseDefault() class Google_Service_Calendar_EventSource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $title; public $url; @@ -3540,6 +3590,8 @@ public function getUrl() class Google_Service_Calendar_Events extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $accessRole; protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; protected $defaultRemindersDataType = 'array'; @@ -3668,6 +3720,8 @@ public function getUpdated() class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $busyType = 'Google_Service_Calendar_TimePeriod'; protected $busyDataType = 'array'; protected $errorsType = 'Google_Service_Calendar_Error'; @@ -3697,6 +3751,8 @@ public function getErrors() class Google_Service_Calendar_FreeBusyGroup extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); public $calendars; protected $errorsType = 'Google_Service_Calendar_Error'; protected $errorsDataType = 'array'; @@ -3725,6 +3781,8 @@ public function getErrors() class Google_Service_Calendar_FreeBusyRequest extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $calendarExpansionMax; public $groupExpansionMax; protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem'; @@ -3796,6 +3854,8 @@ public function getTimeZone() class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public function setId($id) @@ -3811,6 +3871,8 @@ public function getId() class Google_Service_Calendar_FreeBusyResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar'; protected $calendarsDataType = 'map'; protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup'; @@ -3872,16 +3934,20 @@ public function getTimeMin() class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Calendar_Setting extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -3931,6 +3997,8 @@ public function getValue() class Google_Service_Calendar_Settings extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Calendar_Setting'; protected $itemsDataType = 'array'; @@ -3991,6 +4059,8 @@ public function getNextSyncToken() class Google_Service_Calendar_TimePeriod extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $end; public $start; From 5acf9b2a1bdb422ca5ca63595a8fbdb7ce82a226 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:36 -0700 Subject: [PATCH 0250/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index dfe5f8db1..0eb8eb687 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -472,6 +472,8 @@ public function listZoneOperations($project, $zone, $optParams = array()) class Google_Service_Autoscaler_Autoscaler extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy'; protected $autoscalingPolicyDataType = ''; public $creationTimestamp; @@ -566,6 +568,8 @@ public function getTarget() class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; protected $itemsDataType = 'array'; public $kind; @@ -605,6 +609,8 @@ public function getNextPageToken() class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection { protected $collection_key = 'customMetricUtilizations'; + protected $internal_gapi_mappings = array( + ); public $coolDownPeriodSec; protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; protected $cpuUtilizationDataType = ''; @@ -678,6 +684,8 @@ public function getMinNumReplicas() class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $utilizationTarget; public function setUtilizationTarget($utilizationTarget) @@ -693,6 +701,8 @@ public function getUtilizationTarget() class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $metric; public $utilizationTarget; public $utilizationTargetType; @@ -730,6 +740,8 @@ public function getUtilizationTargetType() class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $utilizationTarget; public function setUtilizationTarget($utilizationTarget) @@ -746,6 +758,8 @@ public function getUtilizationTarget() class Google_Service_Autoscaler_Operation extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $clientOperationId; public $creationTimestamp; public $endTime; @@ -995,6 +1009,8 @@ public function getZone() class Google_Service_Autoscaler_OperationError extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; protected $errorsDataType = 'array'; @@ -1011,6 +1027,8 @@ public function getErrors() class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $location; public $message; @@ -1049,6 +1067,8 @@ public function getMessage() class Google_Service_Autoscaler_OperationList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Autoscaler_Operation'; protected $itemsDataType = 'array'; @@ -1110,6 +1130,8 @@ public function getSelfLink() class Google_Service_Autoscaler_OperationWarnings extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; protected $dataDataType = 'array'; @@ -1148,6 +1170,8 @@ public function getMessage() class Google_Service_Autoscaler_OperationWarningsData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; From 8d78c1b570273babd3836c92fcc54cb98630a0f2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:37 -0700 Subject: [PATCH 0251/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 37 +++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 5e3fb3d7b..67a31c24f 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -462,6 +462,8 @@ public function listSavedColumns($agencyId, $advertiserId, $optParams = array()) class Google_Service_Doubleclicksearch_Availability extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $advertiserId; public $agencyId; public $availabilityTimestamp; @@ -533,6 +535,8 @@ public function getSegmentationType() class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { protected $collection_key = 'customMetric'; + protected $internal_gapi_mappings = array( + ); public $adGroupId; public $adId; public $advertiserId; @@ -793,6 +797,8 @@ public function getType() class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection { protected $collection_key = 'conversion'; + protected $internal_gapi_mappings = array( + ); protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; protected $conversionDataType = 'array'; public $kind; @@ -820,6 +826,8 @@ public function getKind() class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $value; @@ -846,6 +854,8 @@ public function getValue() class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $value; @@ -873,6 +883,8 @@ public function getValue() class Google_Service_Doubleclicksearch_Report extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; protected $filesDataType = 'array'; public $id; @@ -978,6 +990,8 @@ public function getStatisticsTimeZone() class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnName; public $customDimensionName; public $endDate; @@ -1070,6 +1084,8 @@ public function getStartDate() class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $byteCount; public $url; @@ -1097,6 +1113,8 @@ public function getUrl() class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection { protected $collection_key = 'orderBy'; + protected $internal_gapi_mappings = array( + ); protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; protected $columnsDataType = 'array'; public $downloadFormat; @@ -1261,6 +1279,8 @@ public function getVerifySingleTimeZone() class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection { protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; protected $columnDataType = ''; public $operator; @@ -1299,6 +1319,8 @@ public function getValues() class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; protected $columnDataType = ''; public $sortOrder; @@ -1326,6 +1348,8 @@ public function getSortOrder() class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adGroupId; public $adId; public $advertiserId; @@ -1407,6 +1431,8 @@ public function getKeywordId() class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $changedAttributesSinceTimestamp; public $changedMetricsSinceTimestamp; public $endDate; @@ -1455,11 +1481,14 @@ public function getStartDate() class Google_Service_Doubleclicksearch_ReportRow extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $savedColumnName; public $type; @@ -1498,6 +1527,8 @@ public function getType() class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; protected $itemsDataType = 'array'; public $kind; @@ -1526,6 +1557,8 @@ public function getKind() class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection { protected $collection_key = 'availabilities'; + protected $internal_gapi_mappings = array( + ); protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; @@ -1543,6 +1576,8 @@ public function getAvailabilities() class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection { protected $collection_key = 'availabilities'; + protected $internal_gapi_mappings = array( + ); protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; From b23ee2f321032b51900c2bfd573e3ab816fb7049 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:37 -0700 Subject: [PATCH 0252/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 89e7c2ad0..0b1b13aa6 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -1244,6 +1244,8 @@ public function update($tableId, $templateId, Google_Service_Fusiontables_Templa class Google_Service_Fusiontables_Bucket extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $icon; public $max; @@ -1314,6 +1316,9 @@ public function getWeight() class Google_Service_Fusiontables_Column extends Google_Model { + protected $internal_gapi_mappings = array( + "graphPredicate" => "graph_predicate", + ); protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; protected $baseColumnDataType = ''; public $columnId; @@ -1396,6 +1401,8 @@ public function getType() class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnId; public $tableIndex; @@ -1423,6 +1430,8 @@ public function getTableIndex() class Google_Service_Fusiontables_ColumnList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Fusiontables_Column'; protected $itemsDataType = 'array'; public $kind; @@ -1473,6 +1482,8 @@ public function getTotalItems() class Google_Service_Fusiontables_Geometry extends Google_Collection { protected $collection_key = 'geometries'; + protected $internal_gapi_mappings = array( + ); public $geometries; public $geometry; public $type; @@ -1510,6 +1521,8 @@ public function getType() class Google_Service_Fusiontables_Import extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $numRowsReceived; @@ -1537,6 +1550,8 @@ public function getNumRowsReceived() class Google_Service_Fusiontables_Line extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public $type; @@ -1563,6 +1578,8 @@ public function getType() class Google_Service_Fusiontables_LineStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $strokeColor; protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $strokeColorStylerDataType = ''; @@ -1625,6 +1642,8 @@ public function getStrokeWeightStyler() class Google_Service_Fusiontables_Point extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public $type; @@ -1651,6 +1670,8 @@ public function getType() class Google_Service_Fusiontables_PointStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $iconName; protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $iconStylerDataType = ''; @@ -1679,6 +1700,8 @@ public function getIconStyler() class Google_Service_Fusiontables_Polygon extends Google_Collection { protected $collection_key = 'coordinates'; + protected $internal_gapi_mappings = array( + ); public $coordinates; public $type; @@ -1705,6 +1728,8 @@ public function getType() class Google_Service_Fusiontables_PolygonStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $fillColor; protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $fillColorStylerDataType = ''; @@ -1801,6 +1826,8 @@ public function getStrokeWeightStyler() class Google_Service_Fusiontables_Sqlresponse extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); public $columns; public $kind; public $rows; @@ -1839,6 +1866,8 @@ public function getRows() class Google_Service_Fusiontables_StyleFunction extends Google_Collection { protected $collection_key = 'buckets'; + protected $internal_gapi_mappings = array( + ); protected $bucketsType = 'Google_Service_Fusiontables_Bucket'; protected $bucketsDataType = 'array'; public $columnName; @@ -1890,6 +1919,8 @@ public function getKind() class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection { protected $collection_key = 'colors'; + protected $internal_gapi_mappings = array( + ); protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors'; protected $colorsDataType = 'array'; public $max; @@ -1928,6 +1959,8 @@ public function getMin() class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $opacity; @@ -1954,6 +1987,8 @@ public function getOpacity() class Google_Service_Fusiontables_StyleSetting extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle'; protected $markerOptionsDataType = ''; @@ -2039,6 +2074,8 @@ public function getTableId() class Google_Service_Fusiontables_StyleSettingList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Fusiontables_StyleSetting'; protected $itemsDataType = 'array'; public $kind; @@ -2089,6 +2126,8 @@ public function getTotalItems() class Google_Service_Fusiontables_Table extends Google_Collection { protected $collection_key = 'columns'; + protected $internal_gapi_mappings = array( + ); public $attribution; public $attributionLink; public $baseTableIds; @@ -2205,6 +2244,8 @@ public function getTableId() class Google_Service_Fusiontables_TableList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Fusiontables_Table'; protected $itemsDataType = 'array'; public $kind; @@ -2243,6 +2284,8 @@ public function getNextPageToken() class Google_Service_Fusiontables_Task extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $progress; public $started; @@ -2303,6 +2346,8 @@ public function getType() class Google_Service_Fusiontables_TaskList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Fusiontables_Task'; protected $itemsDataType = 'array'; public $kind; @@ -2353,6 +2398,8 @@ public function getTotalItems() class Google_Service_Fusiontables_Template extends Google_Collection { protected $collection_key = 'automaticColumnNames'; + protected $internal_gapi_mappings = array( + ); public $automaticColumnNames; public $body; public $kind; @@ -2424,6 +2471,8 @@ public function getTemplateId() class Google_Service_Fusiontables_TemplateList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Fusiontables_Template'; protected $itemsDataType = 'array'; public $kind; From 4557eeff11e8c98ffa6bd5350600712f6c13327c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:37 -0700 Subject: [PATCH 0253/1274] Updated SiteVerification.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SiteVerification.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 5383967db..80f144b5b 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -241,6 +241,8 @@ public function update($id, Google_Service_SiteVerification_SiteVerificationWebR class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'; protected $siteDataType = ''; public $verificationMethod; @@ -268,6 +270,8 @@ public function getVerificationMethod() class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $identifier; public $type; @@ -294,6 +298,8 @@ public function getType() class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $method; public $token; @@ -321,6 +327,8 @@ public function getToken() class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; protected $itemsDataType = 'array'; @@ -338,6 +346,8 @@ public function getItems() class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection { protected $collection_key = 'owners'; + protected $internal_gapi_mappings = array( + ); public $id; public $owners; protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; @@ -376,6 +386,8 @@ public function getSite() class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $identifier; public $type; From 0531bf1b8299335665d8bf239b70c65d75093a3b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:38 -0700 Subject: [PATCH 0254/1274] Updated Webfonts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webfonts.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index a898496f4..dd7d7af64 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -106,6 +106,8 @@ public function listWebfonts($optParams = array()) class Google_Service_Webfonts_Webfont extends Google_Collection { protected $collection_key = 'variants'; + protected $internal_gapi_mappings = array( + ); public $category; public $family; public $files; @@ -198,12 +200,15 @@ public function getVersion() class Google_Service_Webfonts_WebfontFiles extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Webfonts_WebfontList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Webfonts_Webfont'; protected $itemsDataType = 'array'; public $kind; From 6bd8d02bfac605cb1dfe7ba3b989c46de1357516 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:38 -0700 Subject: [PATCH 0255/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index f37f604a3..e1af47196 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -413,6 +413,8 @@ public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optPara class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { protected $collection_key = 'ackId'; + protected $internal_gapi_mappings = array( + ); public $ackId; public $subscription; @@ -439,6 +441,8 @@ public function getSubscription() class Google_Service_Pubsub_Label extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $numValue; public $strValue; @@ -477,6 +481,8 @@ public function getStrValue() class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { protected $collection_key = 'subscription'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; protected $subscriptionDataType = 'array'; @@ -505,6 +511,8 @@ public function getSubscription() class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { protected $collection_key = 'topic'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $topicType = 'Google_Service_Pubsub_Topic'; protected $topicDataType = 'array'; @@ -532,6 +540,8 @@ public function getTopic() class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ackDeadlineSeconds; public $ackId; public $subscription; @@ -569,6 +579,8 @@ public function getSubscription() class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; public $subscription; @@ -596,6 +608,8 @@ public function getSubscription() class Google_Service_Pubsub_PublishRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; protected $messageDataType = ''; public $topic; @@ -623,6 +637,8 @@ public function getTopic() class Google_Service_Pubsub_PubsubEvent extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deleted; protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; protected $messageDataType = ''; @@ -673,6 +689,8 @@ public function getTruncated() class Google_Service_Pubsub_PubsubMessage extends Google_Collection { protected $collection_key = 'label'; + protected $internal_gapi_mappings = array( + ); public $data; protected $labelType = 'Google_Service_Pubsub_Label'; protected $labelDataType = 'array'; @@ -700,6 +718,8 @@ public function getLabel() class Google_Service_Pubsub_PullRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $returnImmediately; public $subscription; @@ -726,6 +746,8 @@ public function getSubscription() class Google_Service_Pubsub_PullResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ackId; protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; protected $pubsubEventDataType = ''; @@ -753,6 +775,8 @@ public function getPubsubEvent() class Google_Service_Pubsub_PushConfig extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $pushEndpoint; public function setPushEndpoint($pushEndpoint) @@ -768,6 +792,8 @@ public function getPushEndpoint() class Google_Service_Pubsub_Subscription extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ackDeadlineSeconds; public $name; protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; @@ -817,6 +843,8 @@ public function getTopic() class Google_Service_Pubsub_Topic extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public function setName($name) From 2700c0080e73cb5fd237ec932be1de9132c71ee3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:39 -0700 Subject: [PATCH 0256/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 247 ++++++++++++++++++++++++++++++++- 1 file changed, 246 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index bdff90351..63ca44242 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -3334,6 +3334,8 @@ public function unsetWatermarks($channelId, $optParams = array()) class Google_Service_YouTube_AccessPolicy extends Google_Collection { protected $collection_key = 'exception'; + protected $internal_gapi_mappings = array( + ); public $allowed; public $exception; @@ -3360,6 +3362,8 @@ public function getException() class Google_Service_YouTube_Activity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -3421,6 +3425,8 @@ public function getSnippet() class Google_Service_YouTube_ActivityContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; protected $bulletinDataType = ''; protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; @@ -3557,6 +3563,8 @@ public function getUpload() class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3573,6 +3581,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3589,6 +3599,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3605,6 +3617,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3621,6 +3635,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3637,6 +3653,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $playlistId; public $playlistItemId; protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; @@ -3676,6 +3694,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection { protected $collection_key = 'impressionUrl'; + protected $internal_gapi_mappings = array( + ); public $adTag; public $clickTrackingUrl; public $creativeViewUrl; @@ -3790,6 +3810,8 @@ public function getVideoId() class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $reason; protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3829,6 +3851,8 @@ public function getSeedResourceId() class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $author; public $imageUrl; public $referenceUrl; @@ -3889,6 +3913,8 @@ public function getType() class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; @@ -3905,6 +3931,8 @@ public function getResourceId() class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $videoId; public function setVideoId($videoId) @@ -3921,6 +3949,8 @@ public function getVideoId() class Google_Service_YouTube_ActivityListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Activity'; @@ -4027,6 +4057,8 @@ public function getVisitorId() class Google_Service_YouTube_ActivitySnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $channelTitle; public $description; @@ -4120,6 +4152,8 @@ public function getType() class Google_Service_YouTube_CdnSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $format; protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; protected $ingestionInfoDataType = ''; @@ -4158,6 +4192,8 @@ public function getIngestionType() class Google_Service_YouTube_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; protected $auditDetailsDataType = ''; protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; @@ -4315,6 +4351,8 @@ public function getTopicDetails() class Google_Service_YouTube_ChannelAuditDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $communityGuidelinesGoodStanding; public $contentIdClaimsGoodStanding; public $copyrightStrikesGoodStanding; @@ -4363,6 +4401,8 @@ public function getOverallGoodStanding() class Google_Service_YouTube_ChannelBannerResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $url; @@ -4401,6 +4441,8 @@ public function getUrl() class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection { protected $collection_key = 'hints'; + protected $internal_gapi_mappings = array( + ); protected $channelType = 'Google_Service_YouTube_ChannelSettings'; protected $channelDataType = ''; protected $hintsType = 'Google_Service_YouTube_PropertyValue'; @@ -4453,6 +4495,8 @@ public function getWatch() class Google_Service_YouTube_ChannelContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $googlePlusUserId; protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; protected $relatedPlaylistsDataType = ''; @@ -4480,6 +4524,8 @@ public function getRelatedPlaylists() class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $favorites; public $likes; public $uploads; @@ -4539,6 +4585,8 @@ public function getWatchLater() class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $contentOwner; public $timeLinked; @@ -4565,6 +4613,8 @@ public function getTimeLinked() class Google_Service_YouTube_ChannelConversionPing extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $context; public $conversionUrl; @@ -4592,6 +4642,8 @@ public function getConversionUrl() class Google_Service_YouTube_ChannelConversionPings extends Google_Collection { protected $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; protected $pingsDataType = 'array'; @@ -4609,6 +4661,8 @@ public function getPings() class Google_Service_YouTube_ChannelListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Channel'; @@ -4715,6 +4769,8 @@ public function getVisitorId() class Google_Service_YouTube_ChannelSection extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -4777,6 +4833,8 @@ public function getSnippet() class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection { protected $collection_key = 'playlists'; + protected $internal_gapi_mappings = array( + ); public $channels; public $playlists; @@ -4804,6 +4862,8 @@ public function getPlaylists() class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_ChannelSection'; @@ -4864,6 +4924,8 @@ public function getVisitorId() class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $position; public $style; @@ -4924,6 +4986,8 @@ public function getType() class Google_Service_YouTube_ChannelSettings extends Google_Collection { protected $collection_key = 'featuredChannelsUrls'; + protected $internal_gapi_mappings = array( + ); public $defaultTab; public $description; public $featuredChannelsTitle; @@ -5060,6 +5124,8 @@ public function getUnsubscribedTrailer() class Google_Service_YouTube_ChannelSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $publishedAt; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -5109,6 +5175,8 @@ public function getTitle() class Google_Service_YouTube_ChannelStatistics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $commentCount; public $hiddenSubscriberCount; public $subscriberCount; @@ -5168,6 +5236,8 @@ public function getViewCount() class Google_Service_YouTube_ChannelStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $isLinked; public $longUploadsStatus; public $privacyStatus; @@ -5206,6 +5276,8 @@ public function getPrivacyStatus() class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection { protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); public $topicIds; public function setTopicIds($topicIds) @@ -5221,6 +5293,8 @@ public function getTopicIds() class Google_Service_YouTube_ContentRating extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $acbRating; public $agcomRating; public $anatelRating; @@ -5918,6 +5992,8 @@ public function getYtRating() class Google_Service_YouTube_GeoPoint extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $altitude; public $latitude; public $longitude; @@ -5955,6 +6031,8 @@ public function getLongitude() class Google_Service_YouTube_GuideCategory extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -6005,6 +6083,8 @@ public function getSnippet() class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_GuideCategory'; @@ -6111,6 +6191,8 @@ public function getVisitorId() class Google_Service_YouTube_GuideCategorySnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $title; @@ -6137,6 +6219,8 @@ public function getTitle() class Google_Service_YouTube_I18nLanguage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -6187,6 +6271,8 @@ public function getSnippet() class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; @@ -6247,6 +6333,8 @@ public function getVisitorId() class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hl; public $name; @@ -6273,6 +6361,8 @@ public function getName() class Google_Service_YouTube_I18nRegion extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -6323,6 +6413,8 @@ public function getSnippet() class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_I18nRegion'; @@ -6383,6 +6475,8 @@ public function getVisitorId() class Google_Service_YouTube_I18nRegionSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $gl; public $name; @@ -6409,6 +6503,8 @@ public function getName() class Google_Service_YouTube_ImageSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; protected $backgroundImageUrlDataType = ''; public $bannerExternalUrl; @@ -6660,6 +6756,8 @@ public function getWatchIconImageUrl() class Google_Service_YouTube_IngestionInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $backupIngestionAddress; public $ingestionAddress; public $streamName; @@ -6697,6 +6795,8 @@ public function getStreamName() class Google_Service_YouTube_InvideoBranding extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $imageBytes; public $imageUrl; protected $positionType = 'Google_Service_YouTube_InvideoPosition'; @@ -6758,6 +6858,8 @@ public function getTiming() class Google_Service_YouTube_InvideoPosition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $cornerPosition; public $type; @@ -6785,6 +6887,8 @@ public function getType() class Google_Service_YouTube_InvideoPromotion extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; protected $defaultTimingDataType = ''; protected $itemsType = 'Google_Service_YouTube_PromotedItem'; @@ -6836,6 +6940,8 @@ public function getUseSmartTiming() class Google_Service_YouTube_InvideoTiming extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $durationMs; public $offsetMs; public $type; @@ -6873,6 +6979,8 @@ public function getType() class Google_Service_YouTube_LiveBroadcast extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -6946,6 +7054,8 @@ public function getStatus() class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $boundStreamId; public $enableClosedCaptions; public $enableContentEncryption; @@ -7040,6 +7150,8 @@ public function getStartWithSlate() class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; @@ -7146,6 +7258,8 @@ public function getVisitorId() class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $actualEndTime; public $actualStartTime; public $channelId; @@ -7250,6 +7364,8 @@ public function getTitle() class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $lifeCycleStatus; public $liveBroadcastPriority; public $privacyStatus; @@ -7298,6 +7414,8 @@ public function getRecordingStatus() class Google_Service_YouTube_LiveStream extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $cdnType = 'Google_Service_YouTube_CdnSettings'; protected $cdnDataType = ''; protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; @@ -7383,6 +7501,8 @@ public function getStatus() class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $closedCaptionsIngestionUrl; public $isReusable; @@ -7410,6 +7530,8 @@ public function getIsReusable() class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_LiveStream'; @@ -7516,6 +7638,8 @@ public function getVisitorId() class Google_Service_YouTube_LiveStreamSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $description; public $publishedAt; @@ -7564,6 +7688,8 @@ public function getTitle() class Google_Service_YouTube_LiveStreamStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $streamStatus; public function setStreamStatus($streamStatus) @@ -7580,6 +7706,8 @@ public function getStreamStatus() class Google_Service_YouTube_LocalizedProperty extends Google_Collection { protected $collection_key = 'localized'; + protected $internal_gapi_mappings = array( + ); public $default; protected $localizedType = 'Google_Service_YouTube_LocalizedString'; protected $localizedDataType = 'array'; @@ -7607,6 +7735,8 @@ public function getLocalized() class Google_Service_YouTube_LocalizedString extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $language; public $value; @@ -7633,6 +7763,8 @@ public function getValue() class Google_Service_YouTube_MonitorStreamInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $broadcastStreamDelayMs; public $embedHtml; public $enableMonitorStream; @@ -7670,6 +7802,8 @@ public function getEnableMonitorStream() class Google_Service_YouTube_PageInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $resultsPerPage; public $totalResults; @@ -7696,6 +7830,8 @@ public function getTotalResults() class Google_Service_YouTube_Playlist extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -7781,6 +7917,8 @@ public function getStatus() class Google_Service_YouTube_PlaylistContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $itemCount; public function setItemCount($itemCount) @@ -7796,6 +7934,8 @@ public function getItemCount() class Google_Service_YouTube_PlaylistItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -7869,6 +8009,8 @@ public function getStatus() class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endAt; public $note; public $startAt; @@ -7918,6 +8060,8 @@ public function getVideoId() class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; @@ -8024,6 +8168,8 @@ public function getVisitorId() class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $channelTitle; public $description; @@ -8129,6 +8275,8 @@ public function getTitle() class Google_Service_YouTube_PlaylistItemStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $privacyStatus; public function setPrivacyStatus($privacyStatus) @@ -8145,6 +8293,8 @@ public function getPrivacyStatus() class Google_Service_YouTube_PlaylistListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Playlist'; @@ -8251,6 +8401,8 @@ public function getVisitorId() class Google_Service_YouTube_PlaylistPlayer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $embedHtml; public function setEmbedHtml($embedHtml) @@ -8267,6 +8419,8 @@ public function getEmbedHtml() class Google_Service_YouTube_PlaylistSnippet extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $channelId; public $channelTitle; public $description; @@ -8349,6 +8503,8 @@ public function getTitle() class Google_Service_YouTube_PlaylistStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $privacyStatus; public function setPrivacyStatus($privacyStatus) @@ -8364,6 +8520,8 @@ public function getPrivacyStatus() class Google_Service_YouTube_PromotedItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customMessage; protected $idType = 'Google_Service_YouTube_PromotedItemId'; protected $idDataType = ''; @@ -8414,6 +8572,8 @@ public function getTiming() class Google_Service_YouTube_PromotedItemId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $recentlyUploadedBy; public $type; public $videoId; @@ -8462,6 +8622,8 @@ public function getWebsiteUrl() class Google_Service_YouTube_PropertyValue extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $property; public $value; @@ -8488,6 +8650,8 @@ public function getValue() class Google_Service_YouTube_ResourceId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $kind; public $playlistId; @@ -8537,6 +8701,8 @@ public function getVideoId() class Google_Service_YouTube_SearchListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_SearchResult'; @@ -8643,6 +8809,8 @@ public function getVisitorId() class Google_Service_YouTube_SearchResult extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; protected $idType = 'Google_Service_YouTube_ResourceId'; protected $idDataType = ''; @@ -8693,6 +8861,8 @@ public function getSnippet() class Google_Service_YouTube_SearchResultSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $channelTitle; public $description; @@ -8775,6 +8945,8 @@ public function getTitle() class Google_Service_YouTube_Subscription extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; protected $contentDetailsDataType = ''; public $etag; @@ -8848,6 +9020,8 @@ public function getSubscriberSnippet() class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $activityType; public $newItemCount; public $totalItemCount; @@ -8886,6 +9060,8 @@ public function getTotalItemCount() class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Subscription'; @@ -8992,6 +9168,8 @@ public function getVisitorId() class Google_Service_YouTube_SubscriptionSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $channelTitle; public $description; @@ -9075,6 +9253,8 @@ public function getTitle() class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $description; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -9124,6 +9304,8 @@ public function getTitle() class Google_Service_YouTube_Thumbnail extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $url; public $width; @@ -9161,6 +9343,8 @@ public function getWidth() class Google_Service_YouTube_ThumbnailDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $defaultType = 'Google_Service_YouTube_Thumbnail'; protected $defaultDataType = ''; protected $highType = 'Google_Service_YouTube_Thumbnail'; @@ -9226,6 +9410,8 @@ public function getStandard() class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -9286,11 +9472,14 @@ public function getVisitorId() class Google_Service_YouTube_TokenPagination extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_YouTube_Video extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; protected $ageGatingDataType = ''; protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; @@ -9508,6 +9697,8 @@ public function getTopicDetails() class Google_Service_YouTube_VideoAgeGating extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $alcoholContent; public $restricted; public $videoGameRating; @@ -9545,6 +9736,8 @@ public function getVideoGameRating() class Google_Service_YouTube_VideoCategory extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -9595,6 +9788,8 @@ public function getSnippet() class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_VideoCategory'; @@ -9701,6 +9896,8 @@ public function getVisitorId() class Google_Service_YouTube_VideoCategorySnippet extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $assignable; public $channelId; public $title; @@ -9738,6 +9935,8 @@ public function getTitle() class Google_Service_YouTube_VideoContentDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $caption; protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; protected $contentRatingDataType = ''; @@ -9834,6 +10033,8 @@ public function getRegionRestriction() class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection { protected $collection_key = 'blocked'; + protected $internal_gapi_mappings = array( + ); public $allowed; public $blocked; @@ -9860,6 +10061,8 @@ public function getBlocked() class Google_Service_YouTube_VideoConversionPing extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $context; public $conversionUrl; @@ -9887,6 +10090,8 @@ public function getConversionUrl() class Google_Service_YouTube_VideoConversionPings extends Google_Collection { protected $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; protected $pingsDataType = 'array'; @@ -9904,6 +10109,8 @@ public function getPings() class Google_Service_YouTube_VideoFileDetails extends Google_Collection { protected $collection_key = 'videoStreams'; + protected $internal_gapi_mappings = array( + ); protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; protected $audioStreamsDataType = 'array'; public $bitrateBps; @@ -10021,6 +10228,8 @@ public function getVideoStreams() class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bitrateBps; public $channelCount; public $codec; @@ -10069,6 +10278,8 @@ public function getVendor() class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $aspectRatio; public $bitrateBps; public $codec; @@ -10162,6 +10373,8 @@ public function getWidthPixels() class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_YouTube_VideoRating'; protected $itemsDataType = 'array'; @@ -10201,6 +10414,8 @@ public function getKind() class Google_Service_YouTube_VideoListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $eventId; protected $itemsType = 'Google_Service_YouTube_Video'; @@ -10307,6 +10522,8 @@ public function getVisitorId() class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $actualEndTime; public $actualStartTime; public $concurrentViewers; @@ -10366,6 +10583,8 @@ public function getScheduledStartTime() class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accessType = 'Google_Service_YouTube_AccessPolicy'; protected $accessDataType = ''; @@ -10382,6 +10601,8 @@ public function getAccess() class Google_Service_YouTube_VideoPlayer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $embedHtml; public function setEmbedHtml($embedHtml) @@ -10397,6 +10618,8 @@ public function getEmbedHtml() class Google_Service_YouTube_VideoProcessingDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $editorSuggestionsAvailability; public $fileDetailsAvailability; public $processingFailureReason; @@ -10490,6 +10713,8 @@ public function getThumbnailsAvailability() class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $partsProcessed; public $partsTotal; public $timeLeftMs; @@ -10528,6 +10753,8 @@ public function getTimeLeftMs() class Google_Service_YouTube_VideoProjectDetails extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $tags; public function setTags($tags) @@ -10543,6 +10770,8 @@ public function getTags() class Google_Service_YouTube_VideoRating extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $rating; public $videoId; @@ -10569,6 +10798,8 @@ public function getVideoId() class Google_Service_YouTube_VideoRecordingDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $locationType = 'Google_Service_YouTube_GeoPoint'; protected $locationDataType = ''; public $locationDescription; @@ -10608,6 +10839,8 @@ public function getRecordingDate() class Google_Service_YouTube_VideoSnippet extends Google_Collection { protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); public $categoryId; public $channelId; public $channelTitle; @@ -10712,6 +10945,8 @@ public function getTitle() class Google_Service_YouTube_VideoStatistics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $commentCount; public $dislikeCount; public $favoriteCount; @@ -10771,6 +11006,8 @@ public function getViewCount() class Google_Service_YouTube_VideoStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $embeddable; public $failureReason; public $license; @@ -10864,6 +11101,8 @@ public function getUploadStatus() class Google_Service_YouTube_VideoSuggestions extends Google_Collection { protected $collection_key = 'tagSuggestions'; + protected $internal_gapi_mappings = array( + ); public $editorSuggestions; public $processingErrors; public $processingHints; @@ -10925,6 +11164,8 @@ public function getTagSuggestions() class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection { protected $collection_key = 'categoryRestricts'; + protected $internal_gapi_mappings = array( + ); public $categoryRestricts; public $tag; @@ -10952,6 +11193,8 @@ public function getTag() class Google_Service_YouTube_VideoTopicDetails extends Google_Collection { protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); public $relevantTopicIds; public $topicIds; @@ -10978,6 +11221,8 @@ public function getTopicIds() class Google_Service_YouTube_WatchSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $backgroundColor; public $featuredPlaylistId; public $textColor; From ee66119a5bbea01be5fe0eb34d9f846518e6587f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:40 -0700 Subject: [PATCH 0257/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 48 ++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 8bee0ee28..5ceee828e 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -310,6 +310,9 @@ public function representativeInfoByDivision($ocdId, $optParams = array()) class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection { protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + "localJurisdiction" => "local_jurisdiction", + ); protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody'; protected $electionAdministrationBodyDataType = ''; public $id; @@ -373,6 +376,9 @@ public function getSources() class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection { protected $collection_key = 'voter_services'; + protected $internal_gapi_mappings = array( + "voterServices" => "voter_services", + ); public $absenteeVotingInfoUrl; public $ballotInfoUrl; protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; @@ -524,6 +530,8 @@ public function getVotingLocationFinderUrl() class Google_Service_CivicInfo_Candidate extends Google_Collection { protected $collection_key = 'channels'; + protected $internal_gapi_mappings = array( + ); public $candidateUrl; protected $channelsType = 'Google_Service_CivicInfo_Channel'; protected $channelsDataType = 'array'; @@ -617,6 +625,8 @@ public function getPhotoUrl() class Google_Service_CivicInfo_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $type; @@ -644,6 +654,8 @@ public function getType() class Google_Service_CivicInfo_Contest extends Google_Collection { protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); public $ballotPlacement; protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; protected $candidatesDataType = 'array'; @@ -839,6 +851,8 @@ public function getType() class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection { protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; protected $resultsDataType = 'array'; @@ -867,6 +881,8 @@ public function getResults() class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection { protected $collection_key = 'aliases'; + protected $internal_gapi_mappings = array( + ); public $aliases; public $name; public $ocdId; @@ -904,6 +920,8 @@ public function getOcdId() class Google_Service_CivicInfo_Election extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $electionDay; public $id; public $name; @@ -941,6 +959,8 @@ public function getName() class Google_Service_CivicInfo_ElectionOfficial extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $emailAddress; public $faxNumber; public $name; @@ -1001,6 +1021,8 @@ public function getTitle() class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection { protected $collection_key = 'elections'; + protected $internal_gapi_mappings = array( + ); protected $electionsType = 'Google_Service_CivicInfo_Election'; protected $electionsDataType = 'array'; public $kind; @@ -1028,6 +1050,8 @@ public function getKind() class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $name; public $scope; @@ -1066,6 +1090,8 @@ public function getScope() class Google_Service_CivicInfo_GeographicDivision extends Google_Collection { protected $collection_key = 'officeIndices'; + protected $internal_gapi_mappings = array( + ); public $alsoKnownAs; public $name; public $officeIndices; @@ -1104,6 +1130,8 @@ public function getOfficeIndices() class Google_Service_CivicInfo_Office extends Google_Collection { protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); public $divisionId; public $levels; public $name; @@ -1176,6 +1204,8 @@ public function getSources() class Google_Service_CivicInfo_Official extends Google_Collection { protected $collection_key = 'urls'; + protected $internal_gapi_mappings = array( + ); protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $addressDataType = 'array'; protected $channelsType = 'Google_Service_CivicInfo_Channel'; @@ -1271,6 +1301,8 @@ public function getUrls() class Google_Service_CivicInfo_PollingLocation extends Google_Collection { protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $addressDataType = ''; public $endDate; @@ -1377,6 +1409,8 @@ public function getVoterServices() class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection { protected $collection_key = 'officials'; + protected $internal_gapi_mappings = array( + ); protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; protected $divisionsDataType = 'map'; protected $officesType = 'Google_Service_CivicInfo_Office'; @@ -1417,12 +1451,15 @@ public function getOfficials() class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection { protected $collection_key = 'officials'; + protected $internal_gapi_mappings = array( + ); protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; protected $divisionsDataType = 'map'; public $kind; @@ -1486,11 +1523,14 @@ public function getOfficials() class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_CivicInfo_SimpleAddressType extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $city; public $line1; public $line2; @@ -1572,6 +1612,8 @@ public function getZip() class Google_Service_CivicInfo_Source extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $official; @@ -1599,6 +1641,8 @@ public function getOfficial() class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection { protected $collection_key = 'state'; + protected $internal_gapi_mappings = array( + ); protected $contestsType = 'Google_Service_CivicInfo_Contest'; protected $contestsDataType = 'array'; protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; From bd4eac1f6f9c02a8d0d9d6d43b4b4d101b0c93e4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:40 -0700 Subject: [PATCH 0258/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 132 +++++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index b2474c1bb..29084a5fc 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -1096,6 +1096,8 @@ public function listProductstatuses($merchantId, $optParams = array()) class Google_Service_ShoppingContent_Account extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); public $adultContent; protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; protected $adwordsLinksDataType = 'array'; @@ -1201,6 +1203,8 @@ public function getWebsiteUrl() class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adwordsId; public $status; @@ -1228,6 +1232,8 @@ public function getStatus() class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { protected $collection_key = 'dataQualityIssues'; + protected $internal_gapi_mappings = array( + ); public $accountId; protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; @@ -1267,6 +1273,8 @@ public function getKind() class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection { protected $collection_key = 'exampleItems'; + protected $internal_gapi_mappings = array( + ); public $country; public $displayedValue; protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; @@ -1360,6 +1368,8 @@ public function getSubmittedValue() class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $itemId; public $link; public $submittedValue; @@ -1419,6 +1429,8 @@ public function getValueOnLandingPage() class Google_Service_ShoppingContent_AccountUser extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $admin; public $emailAddress; @@ -1446,6 +1458,8 @@ public function getEmailAddress() class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1462,6 +1476,8 @@ public function getEntries() class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accountType = 'Google_Service_ShoppingContent_Account'; protected $accountDataType = ''; public $accountId; @@ -1523,6 +1539,8 @@ public function getMethod() class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1550,6 +1568,8 @@ public function getKind() class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accountType = 'Google_Service_ShoppingContent_Account'; protected $accountDataType = ''; public $batchId; @@ -1601,6 +1621,8 @@ public function getKind() class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Account'; @@ -1640,6 +1662,8 @@ public function getResources() class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1656,6 +1680,8 @@ public function getEntries() class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $batchId; public $merchantId; @@ -1705,6 +1731,8 @@ public function getMethod() class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1732,6 +1760,8 @@ public function getKind() class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; protected $accountStatusDataType = ''; public $batchId; @@ -1772,6 +1802,8 @@ public function getErrors() class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; @@ -1811,6 +1843,8 @@ public function getResources() class Google_Service_ShoppingContent_Datafeed extends Google_Collection { protected $collection_key = 'intendedDestinations'; + protected $internal_gapi_mappings = array( + ); public $attributeLanguage; public $contentLanguage; public $contentType; @@ -1938,6 +1972,8 @@ public function getTargetCountry() class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $dayOfMonth; public $fetchUrl; public $hour; @@ -2019,6 +2055,8 @@ public function getWeekday() class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnDelimiter; public $fileEncoding; public $quotingMode; @@ -2057,6 +2095,8 @@ public function getQuotingMode() class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $datafeedId; protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; protected $errorsDataType = 'array'; @@ -2141,6 +2181,8 @@ public function getWarnings() class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection { protected $collection_key = 'examples'; + protected $internal_gapi_mappings = array( + ); public $code; public $count; protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; @@ -2190,6 +2232,8 @@ public function getMessage() class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $itemId; public $lineNumber; public $value; @@ -2228,6 +2272,8 @@ public function getValue() class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2244,6 +2290,8 @@ public function getEntries() class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; protected $datafeedDataType = ''; @@ -2305,6 +2353,8 @@ public function getMethod() class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2332,6 +2382,8 @@ public function getKind() class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; protected $datafeedDataType = ''; @@ -2372,6 +2424,8 @@ public function getErrors() class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; @@ -2400,6 +2454,8 @@ public function getResources() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2416,6 +2472,8 @@ public function getEntries() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; public $datafeedId; public $merchantId; @@ -2465,6 +2523,8 @@ public function getMethod() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2492,6 +2552,8 @@ public function getKind() class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $datafeedStatusDataType = ''; @@ -2532,6 +2594,8 @@ public function getErrors() class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; @@ -2559,6 +2623,8 @@ public function getResources() class Google_Service_ShoppingContent_Error extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $domain; public $message; public $reason; @@ -2597,6 +2663,8 @@ public function getReason() class Google_Service_ShoppingContent_Errors extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); public $code; protected $errorsType = 'Google_Service_ShoppingContent_Error'; protected $errorsDataType = 'array'; @@ -2635,6 +2703,8 @@ public function getMessage() class Google_Service_ShoppingContent_Inventory extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $availability; public $kind; protected $priceType = 'Google_Service_ShoppingContent_Price'; @@ -2708,6 +2778,8 @@ public function getSalePriceEffectiveDate() class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -2724,6 +2796,8 @@ public function getEntries() class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; protected $inventoryDataType = ''; @@ -2785,6 +2859,8 @@ public function getStoreCode() class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -2812,6 +2888,8 @@ public function getKind() class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; @@ -2850,6 +2928,8 @@ public function getKind() class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $availability; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; @@ -2911,6 +2991,8 @@ public function getSalePriceEffectiveDate() class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -2926,6 +3008,8 @@ public function getKind() class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $pointsValue; public $ratio; @@ -2963,6 +3047,8 @@ public function getRatio() class Google_Service_ShoppingContent_Price extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currency; public $value; @@ -2990,6 +3076,8 @@ public function getValue() class Google_Service_ShoppingContent_Product extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $additionalImageLinks; public $adult; public $adwordsGrouping; @@ -3667,6 +3755,8 @@ public function getWarnings() class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $type; public $unit; @@ -3716,6 +3806,8 @@ public function getValue() class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection { protected $collection_key = 'attributes'; + protected $internal_gapi_mappings = array( + ); protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; protected $attributesDataType = 'array'; public $name; @@ -3743,6 +3835,8 @@ public function getName() class Google_Service_ShoppingContent_ProductDestination extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $destinationName; public $intention; @@ -3769,6 +3863,8 @@ public function getIntention() class Google_Service_ShoppingContent_ProductInstallment extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $amountType = 'Google_Service_ShoppingContent_Price'; protected $amountDataType = ''; public $months; @@ -3796,6 +3892,8 @@ public function getMonths() class Google_Service_ShoppingContent_ProductShipping extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $country; public $locationGroupName; public $locationId; @@ -3878,6 +3976,8 @@ public function getService() class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $unit; public $value; @@ -3905,6 +4005,8 @@ public function getValue() class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { protected $collection_key = 'destinationStatuses'; + protected $internal_gapi_mappings = array( + ); protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; @@ -3977,6 +4079,8 @@ public function getTitle() class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $detail; public $fetchStatus; public $id; @@ -4058,6 +4162,8 @@ public function getValueProvided() class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $approvalStatus; public $destination; public $intention; @@ -4095,6 +4201,8 @@ public function getIntention() class Google_Service_ShoppingContent_ProductTax extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $country; public $locationId; public $postalCode; @@ -4165,6 +4273,8 @@ public function getTaxShip() class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $unit; public $value; @@ -4191,6 +4301,8 @@ public function getValue() class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $unit; public $value; @@ -4218,6 +4330,8 @@ public function getValue() class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -4234,6 +4348,8 @@ public function getEntries() class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; public $merchantId; public $method; @@ -4295,6 +4411,8 @@ public function getProductId() class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -4322,6 +4440,8 @@ public function getKind() class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; @@ -4373,6 +4493,8 @@ public function getProduct() class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Product'; @@ -4412,6 +4534,8 @@ public function getResources() class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -4428,6 +4552,8 @@ public function getEntries() class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; public $merchantId; public $method; @@ -4477,6 +4603,8 @@ public function getProductId() class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -4504,6 +4632,8 @@ public function getKind() class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; @@ -4555,6 +4685,8 @@ public function getProductStatus() class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; From fcf5250e5ba1c1bd2830f76580ef451f2950ae2a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:41 -0700 Subject: [PATCH 0259/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 84 ++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index a2943f05c..52be5654c 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -962,6 +962,8 @@ public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery class Google_Service_Bigquery_Dataset extends Google_Collection { protected $collection_key = 'access'; + protected $internal_gapi_mappings = array( + ); protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; protected $accessDataType = 'array'; public $creationTime; @@ -1078,6 +1080,8 @@ public function getSelfLink() class Google_Service_Bigquery_DatasetAccess extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $domain; public $groupByEmail; public $role; @@ -1150,6 +1154,8 @@ public function getView() class Google_Service_Bigquery_DatasetList extends Google_Collection { protected $collection_key = 'datasets'; + protected $internal_gapi_mappings = array( + ); protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; protected $datasetsDataType = 'array'; public $etag; @@ -1199,6 +1205,8 @@ public function getNextPageToken() class Google_Service_Bigquery_DatasetListDatasets extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; protected $datasetReferenceDataType = ''; public $friendlyName; @@ -1248,6 +1256,8 @@ public function getKind() class Google_Service_Bigquery_DatasetReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $datasetId; public $projectId; @@ -1274,6 +1284,8 @@ public function getProjectId() class Google_Service_Bigquery_ErrorProto extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $debugInfo; public $location; public $message; @@ -1323,6 +1335,8 @@ public function getReason() class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); public $cacheHit; public $etag; public $jobComplete; @@ -1429,6 +1443,8 @@ public function getTotalRows() class Google_Service_Bigquery_Job extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; protected $configurationDataType = ''; public $etag; @@ -1525,6 +1541,8 @@ public function getStatus() class Google_Service_Bigquery_JobConfiguration extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy'; protected $copyDataType = ''; public $dryRun; @@ -1601,6 +1619,8 @@ public function getQuery() class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection { protected $collection_key = 'destinationUris'; + protected $internal_gapi_mappings = array( + ); public $compression; public $destinationFormat; public $destinationUri; @@ -1684,6 +1704,8 @@ public function getSourceTable() class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection { protected $collection_key = 'sourceUri'; + protected $internal_gapi_mappings = array( + ); public $createDisposition; protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; @@ -1734,6 +1756,8 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); public $allowJaggedRows; public $allowQuotedNewlines; public $createDisposition; @@ -1916,6 +1940,8 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allowLargeResults; public $createDisposition; protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; @@ -2033,6 +2059,8 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { protected $collection_key = 'sourceTables'; + protected $internal_gapi_mappings = array( + ); public $createDisposition; protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; @@ -2096,6 +2124,8 @@ public function getWriteDisposition() class Google_Service_Bigquery_JobList extends Google_Collection { protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; protected $jobsDataType = 'array'; @@ -2156,6 +2186,9 @@ public function getTotalItems() class Google_Service_Bigquery_JobListJobs extends Google_Model { + protected $internal_gapi_mappings = array( + "userEmail" => "user_email", + ); protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; protected $configurationDataType = ''; protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; @@ -2264,6 +2297,8 @@ public function getUserEmail() class Google_Service_Bigquery_JobReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $jobId; public $projectId; @@ -2290,6 +2325,8 @@ public function getProjectId() class Google_Service_Bigquery_JobStatistics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTime; public $endTime; protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; @@ -2362,6 +2399,8 @@ public function getTotalBytesProcessed() class Google_Service_Bigquery_JobStatistics2 extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $cacheHit; public $totalBytesProcessed; @@ -2388,6 +2427,8 @@ public function getTotalBytesProcessed() class Google_Service_Bigquery_JobStatistics3 extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $inputFileBytes; public $inputFiles; public $outputBytes; @@ -2437,6 +2478,8 @@ public function getOutputRows() class Google_Service_Bigquery_JobStatus extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; protected $errorResultDataType = ''; protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; @@ -2476,12 +2519,15 @@ public function getState() class Google_Service_Bigquery_JsonObject extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Bigquery_ProjectList extends Google_Collection { protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $nextPageToken; @@ -2542,6 +2588,8 @@ public function getTotalItems() class Google_Service_Bigquery_ProjectListProjects extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $friendlyName; public $id; public $kind; @@ -2602,6 +2650,8 @@ public function getProjectReference() class Google_Service_Bigquery_ProjectReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $projectId; public function setProjectId($projectId) @@ -2617,6 +2667,8 @@ public function getProjectId() class Google_Service_Bigquery_QueryRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; protected $defaultDatasetDataType = ''; public $dryRun; @@ -2711,6 +2763,8 @@ public function getUseQueryCache() class Google_Service_Bigquery_QueryResponse extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); public $cacheHit; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; @@ -2817,6 +2871,8 @@ public function getTotalRows() class Google_Service_Bigquery_Table extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTime; public $description; public $etag; @@ -2989,6 +3045,8 @@ public function getView() class Google_Service_Bigquery_TableCell extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $v; public function setV($v) @@ -3005,6 +3063,8 @@ public function getV() class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; @@ -3032,6 +3092,8 @@ public function getRows() class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $insertId; public $json; @@ -3059,6 +3121,8 @@ public function getJson() class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection { protected $collection_key = 'insertErrors'; + protected $internal_gapi_mappings = array( + ); protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; protected $insertErrorsDataType = 'array'; public $kind; @@ -3087,6 +3151,8 @@ public function getKind() class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; protected $errorsDataType = 'array'; public $index; @@ -3115,6 +3181,8 @@ public function getIndex() class Google_Service_Bigquery_TableDataList extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $pageToken; @@ -3176,6 +3244,8 @@ public function getTotalRows() class Google_Service_Bigquery_TableFieldSchema extends Google_Collection { protected $collection_key = 'fields'; + protected $internal_gapi_mappings = array( + ); public $description; protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; @@ -3237,6 +3307,8 @@ public function getType() class Google_Service_Bigquery_TableList extends Google_Collection { protected $collection_key = 'tables'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $nextPageToken; @@ -3297,6 +3369,8 @@ public function getTotalItems() class Google_Service_Bigquery_TableListTables extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $friendlyName; public $id; public $kind; @@ -3357,6 +3431,8 @@ public function getType() class Google_Service_Bigquery_TableReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $datasetId; public $projectId; public $tableId; @@ -3395,6 +3471,8 @@ public function getTableId() class Google_Service_Bigquery_TableRow extends Google_Collection { protected $collection_key = 'f'; + protected $internal_gapi_mappings = array( + ); protected $fType = 'Google_Service_Bigquery_TableCell'; protected $fDataType = 'array'; @@ -3412,6 +3490,8 @@ public function getF() class Google_Service_Bigquery_TableSchema extends Google_Collection { protected $collection_key = 'fields'; + protected $internal_gapi_mappings = array( + ); protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; @@ -3428,6 +3508,8 @@ public function getFields() class Google_Service_Bigquery_ViewDefinition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $query; public function setQuery($query) From f729ac9722c8611bec8d4dcac1ab3dc4709e2d3b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:41 -0700 Subject: [PATCH 0260/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 867a77884..55481773a 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -158,6 +158,8 @@ public function listActivities($optParams = array()) class Google_Service_Appsactivity_Activity extends Google_Collection { protected $collection_key = 'singleEvents'; + protected $internal_gapi_mappings = array( + ); protected $combinedEventType = 'Google_Service_Appsactivity_Event'; protected $combinedEventDataType = ''; protected $singleEventsType = 'Google_Service_Appsactivity_Event'; @@ -187,6 +189,8 @@ public function getSingleEvents() class Google_Service_Appsactivity_Event extends Google_Collection { protected $collection_key = 'permissionChanges'; + protected $internal_gapi_mappings = array( + ); public $additionalEventTypes; public $eventTimeMillis; public $fromUserDeletion; @@ -296,6 +300,8 @@ public function getUser() class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection { protected $collection_key = 'activities'; + protected $internal_gapi_mappings = array( + ); protected $activitiesType = 'Google_Service_Appsactivity_Activity'; protected $activitiesDataType = 'array'; public $nextPageToken; @@ -324,6 +330,8 @@ public function getNextPageToken() class Google_Service_Appsactivity_Move extends Google_Collection { protected $collection_key = 'removedParents'; + protected $internal_gapi_mappings = array( + ); protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; protected $addedParentsDataType = 'array'; protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; @@ -352,6 +360,8 @@ public function getRemovedParents() class Google_Service_Appsactivity_Parent extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $isRoot; public $title; @@ -389,6 +399,8 @@ public function getTitle() class Google_Service_Appsactivity_Permission extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $permissionId; public $role; @@ -461,6 +473,8 @@ public function getWithLink() class Google_Service_Appsactivity_PermissionChange extends Google_Collection { protected $collection_key = 'removedPermissions'; + protected $internal_gapi_mappings = array( + ); protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; protected $addedPermissionsDataType = 'array'; protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; @@ -489,6 +503,8 @@ public function getRemovedPermissions() class Google_Service_Appsactivity_Photo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -504,6 +520,8 @@ public function getUrl() class Google_Service_Appsactivity_Rename extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $newTitle; public $oldTitle; @@ -530,6 +548,8 @@ public function getOldTitle() class Google_Service_Appsactivity_Target extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $mimeType; public $name; @@ -567,6 +587,8 @@ public function getName() class Google_Service_Appsactivity_User extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; protected $photoType = 'Google_Service_Appsactivity_Photo'; protected $photoDataType = ''; From f1815c7298f689d0e578991b0c534846648735b2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:41 -0700 Subject: [PATCH 0261/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 508b82819..22bb9429b 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -543,6 +543,8 @@ public function restart($projectName, $zone, $poolName, $replicaName, $optParams class Google_Service_Replicapool_AccessConfig extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $natIp; public $type; @@ -581,6 +583,8 @@ public function getType() class Google_Service_Replicapool_Action extends Google_Collection { protected $collection_key = 'envVariables'; + protected $internal_gapi_mappings = array( + ); public $commands; protected $envVariablesType = 'Google_Service_Replicapool_EnvVariable'; protected $envVariablesDataType = 'array'; @@ -619,6 +623,8 @@ public function getTimeoutMilliSeconds() class Google_Service_Replicapool_DiskAttachment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deviceName; public $index; @@ -645,6 +651,8 @@ public function getIndex() class Google_Service_Replicapool_EnvVariable extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hidden; public $name; public $value; @@ -682,6 +690,8 @@ public function getValue() class Google_Service_Replicapool_ExistingDisk extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; protected $attachmentDataType = ''; public $source; @@ -709,6 +719,8 @@ public function getSource() class Google_Service_Replicapool_HealthCheck extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $checkIntervalSec; public $description; public $healthyThreshold; @@ -812,6 +824,8 @@ public function getUnhealthyThreshold() class Google_Service_Replicapool_Label extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -839,6 +853,8 @@ public function getValue() class Google_Service_Replicapool_Metadata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerPrint; protected $itemsType = 'Google_Service_Replicapool_MetadataItem'; protected $itemsDataType = 'array'; @@ -866,6 +882,8 @@ public function getItems() class Google_Service_Replicapool_MetadataItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -893,6 +911,8 @@ public function getValue() class Google_Service_Replicapool_NetworkInterface extends Google_Collection { protected $collection_key = 'accessConfigs'; + protected $internal_gapi_mappings = array( + ); protected $accessConfigsType = 'Google_Service_Replicapool_AccessConfig'; protected $accessConfigsDataType = 'array'; public $network; @@ -931,6 +951,8 @@ public function getNetworkIp() class Google_Service_Replicapool_NewDisk extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; protected $attachmentDataType = ''; public $autoDelete; @@ -981,6 +1003,8 @@ public function getInitializeParams() class Google_Service_Replicapool_NewDiskInitializeParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $diskSizeGb; public $diskType; public $sourceImage; @@ -1019,6 +1043,8 @@ public function getSourceImage() class Google_Service_Replicapool_Pool extends Google_Collection { protected $collection_key = 'targetPools'; + protected $internal_gapi_mappings = array( + ); public $autoRestart; public $baseInstanceName; public $currentNumReplicas; @@ -1192,6 +1218,8 @@ public function getType() class Google_Service_Replicapool_PoolsDeleteRequest extends Google_Collection { protected $collection_key = 'abandonInstances'; + protected $internal_gapi_mappings = array( + ); public $abandonInstances; public function setAbandonInstances($abandonInstances) @@ -1208,6 +1236,8 @@ public function getAbandonInstances() class Google_Service_Replicapool_PoolsListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $resourcesType = 'Google_Service_Replicapool_Pool'; protected $resourcesDataType = 'array'; @@ -1235,6 +1265,8 @@ public function getResources() class Google_Service_Replicapool_Replica extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $selfLink; protected $statusType = 'Google_Service_Replicapool_ReplicaStatus'; @@ -1273,6 +1305,8 @@ public function getStatus() class Google_Service_Replicapool_ReplicaStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $details; public $state; public $templateVersion; @@ -1332,6 +1366,8 @@ public function getVmStartTime() class Google_Service_Replicapool_ReplicasDeleteRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $abandonInstance; public function setAbandonInstance($abandonInstance) @@ -1348,6 +1384,8 @@ public function getAbandonInstance() class Google_Service_Replicapool_ReplicasListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $resourcesType = 'Google_Service_Replicapool_Replica'; protected $resourcesDataType = 'array'; @@ -1376,6 +1414,8 @@ public function getResources() class Google_Service_Replicapool_ServiceAccount extends Google_Collection { protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); public $email; public $scopes; @@ -1403,6 +1443,8 @@ public function getScopes() class Google_Service_Replicapool_Tag extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerPrint; public $items; @@ -1430,6 +1472,8 @@ public function getItems() class Google_Service_Replicapool_Template extends Google_Collection { protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); protected $actionType = 'Google_Service_Replicapool_Action'; protected $actionDataType = ''; protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; @@ -1482,6 +1526,8 @@ public function getVmParams() class Google_Service_Replicapool_VmParams extends Google_Collection { protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); public $baseInstanceName; public $canIpForward; public $description; From 2a947c3e1860e3773eeb6b48375285e2afd2a8eb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:42 -0700 Subject: [PATCH 0262/1274] Updated Taskqueue.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Taskqueue.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index 55f346f61..41b4c0fed 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -436,6 +436,9 @@ public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Ser class Google_Service_Taskqueue_Task extends Google_Model { + protected $internal_gapi_mappings = array( + "retryCount" => "retry_count", + ); public $enqueueTimestamp; public $id; public $kind; @@ -528,6 +531,8 @@ public function getTag() class Google_Service_Taskqueue_TaskQueue extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl'; protected $aclDataType = ''; public $id; @@ -590,6 +595,8 @@ public function getStats() class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection { protected $collection_key = 'producerEmails'; + protected $internal_gapi_mappings = array( + ); public $adminEmails; public $consumerEmails; public $producerEmails; @@ -627,6 +634,8 @@ public function getProducerEmails() class Google_Service_Taskqueue_TaskQueueStats extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $leasedLastHour; public $leasedLastMinute; public $oldestTask; @@ -676,6 +685,8 @@ public function getTotalTasks() class Google_Service_Taskqueue_Tasks extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Taskqueue_Task'; protected $itemsDataType = 'array'; public $kind; @@ -704,6 +715,8 @@ public function getKind() class Google_Service_Taskqueue_Tasks2 extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Taskqueue_Task'; protected $itemsDataType = 'array'; public $kind; From 0ee892e140514756aee7c0114ef222d11dc0ad43 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:42 -0700 Subject: [PATCH 0263/1274] Updated Freebase.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Freebase.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index 4251de3a2..d65f574e2 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -287,6 +287,8 @@ public function search($optParams = array()) class Google_Service_Freebase_ReconcileCandidate extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $confidence; public $lang; public $mid; @@ -347,6 +349,8 @@ public function getNotable() class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $name; @@ -374,6 +378,8 @@ public function getName() class Google_Service_Freebase_ReconcileGet extends Google_Collection { protected $collection_key = 'warning'; + protected $internal_gapi_mappings = array( + ); protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate'; protected $candidateDataType = 'array'; protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts'; @@ -426,6 +432,8 @@ public function getWarning() class Google_Service_Freebase_ReconcileGetCosts extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hits; public $ms; @@ -452,6 +460,8 @@ public function getMs() class Google_Service_Freebase_ReconcileGetWarning extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $location; public $message; public $reason; From 273551efa7912dffc52ad8819ef311d8fb445fbc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:42 -0700 Subject: [PATCH 0264/1274] Updated DoubleClickBidManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DoubleClickBidManager.php | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 7485fa0b8..20bafeae7 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -293,6 +293,8 @@ public function listreports($queryId, $optParams = array()) class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection { protected $collection_key = 'filterIds'; + protected $internal_gapi_mappings = array( + ); public $filterIds; public $filterType; public $format; @@ -330,6 +332,8 @@ public function getFormat() class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $lineItems; public function setLineItems($lineItems) @@ -345,6 +349,8 @@ public function getLineItems() class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -372,6 +378,8 @@ public function getValue() class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection { protected $collection_key = 'queries'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; protected $queriesDataType = 'array'; @@ -400,6 +408,8 @@ public function getQueries() class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection { protected $collection_key = 'reports'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; protected $reportsDataType = 'array'; @@ -428,6 +438,8 @@ public function getReports() class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection { protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair'; protected $filtersDataType = 'array'; public $groupBys; @@ -488,6 +500,8 @@ public function getType() class Google_Service_DoubleClickBidManager_Query extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata'; protected $metadataDataType = ''; @@ -584,6 +598,8 @@ public function getTimezoneCode() class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection { protected $collection_key = 'shareEmailAddress'; + protected $internal_gapi_mappings = array( + ); public $dataRange; public $format; public $googleCloudStoragePathForLatestReport; @@ -698,6 +714,8 @@ public function getTitle() class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endTimeMs; public $frequency; public $nextRunMinuteOfDay; @@ -746,6 +764,8 @@ public function getNextRunTimezoneCode() class Google_Service_DoubleClickBidManager_Report extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey'; protected $keyDataType = ''; protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata'; @@ -786,6 +806,8 @@ public function getParams() class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $errorCode; public function setErrorCode($errorCode) @@ -801,6 +823,8 @@ public function getErrorCode() class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $queryId; public $reportId; @@ -827,6 +851,8 @@ public function getReportId() class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $googleCloudStoragePath; public $reportDataEndTimeMs; public $reportDataStartTimeMs; @@ -876,6 +902,8 @@ public function getStatus() class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure'; protected $failureDataType = ''; public $finishTimeMs; @@ -926,6 +954,8 @@ public function getState() class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); public $changed; public $entityId; public $entityName; @@ -996,6 +1026,8 @@ public function getRowNumber() class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $dataRange; public $reportDataEndTimeMs; public $reportDataStartTimeMs; @@ -1044,6 +1076,8 @@ public function getTimezoneCode() class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $dryRun; public $format; public $lineItems; @@ -1081,6 +1115,8 @@ public function getLineItems() class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus'; protected $uploadStatusDataType = ''; @@ -1098,6 +1134,8 @@ public function getUploadStatus() class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection { protected $collection_key = 'rowStatus'; + protected $internal_gapi_mappings = array( + ); public $errors; protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; protected $rowStatusDataType = 'array'; From df76df98964fe9ea7486b19a1d205320b22fa255 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:43 -0700 Subject: [PATCH 0265/1274] Updated Translate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Translate.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index c2afb37c7..42f44026f 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -232,6 +232,8 @@ public function listTranslations($q, $target, $optParams = array()) class Google_Service_Translate_DetectionsListResponse extends Google_Collection { protected $collection_key = 'detections'; + protected $internal_gapi_mappings = array( + ); protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; protected $detectionsDataType = 'array'; @@ -248,6 +250,8 @@ public function getDetections() class Google_Service_Translate_DetectionsResourceItems extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $confidence; public $isReliable; public $language; @@ -286,6 +290,8 @@ public function getLanguage() class Google_Service_Translate_LanguagesListResponse extends Google_Collection { protected $collection_key = 'languages'; + protected $internal_gapi_mappings = array( + ); protected $languagesType = 'Google_Service_Translate_LanguagesResource'; protected $languagesDataType = 'array'; @@ -302,6 +308,8 @@ public function getLanguages() class Google_Service_Translate_LanguagesResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $language; public $name; @@ -329,6 +337,8 @@ public function getName() class Google_Service_Translate_TranslationsListResponse extends Google_Collection { protected $collection_key = 'translations'; + protected $internal_gapi_mappings = array( + ); protected $translationsType = 'Google_Service_Translate_TranslationsResource'; protected $translationsDataType = 'array'; @@ -345,6 +355,8 @@ public function getTranslations() class Google_Service_Translate_TranslationsResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $detectedSourceLanguage; public $translatedText; From 30cc014a7359d80d10ef970ca32a1faff345a073 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:44 -0700 Subject: [PATCH 0266/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 2e1ee2b08..79a41a0a2 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -730,6 +730,8 @@ public function listUserProfiles($optParams = array()) class Google_Service_Dfareporting_Activities extends Google_Collection { protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; protected $filtersDataType = 'array'; public $kind; @@ -768,6 +770,8 @@ public function getMetricNames() class Google_Service_Dfareporting_CompatibleFields extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; protected $crossDimensionReachReportCompatibleFieldsDataType = ''; protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; @@ -844,6 +848,8 @@ public function getReportCompatibleFields() class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection { protected $collection_key = 'overlapMetrics'; + protected $internal_gapi_mappings = array( + ); protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; protected $breakdownDataType = 'array'; protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; @@ -908,6 +914,8 @@ public function getOverlapMetrics() class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection { protected $collection_key = 'filteredEventIds'; + protected $internal_gapi_mappings = array( + ); protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; protected $filteredEventIdsDataType = 'array'; public $kind; @@ -935,6 +943,8 @@ public function getKind() class Google_Service_Dfareporting_DateRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endDate; public $kind; public $relativeDateRange; @@ -983,6 +993,8 @@ public function getStartDate() class Google_Service_Dfareporting_DfareportingFile extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; protected $dateRangeDataType = ''; public $etag; @@ -1099,6 +1111,8 @@ public function getUrls() class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $apiUrl; public $browserUrl; @@ -1125,6 +1139,8 @@ public function getBrowserUrl() class Google_Service_Dfareporting_Dimension extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $name; @@ -1151,6 +1167,8 @@ public function getName() class Google_Service_Dfareporting_DimensionFilter extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $dimensionName; public $kind; public $value; @@ -1188,6 +1206,8 @@ public function getValue() class Google_Service_Dfareporting_DimensionValue extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $dimensionName; public $etag; public $id; @@ -1259,6 +1279,8 @@ public function getValue() class Google_Service_Dfareporting_DimensionValueList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; protected $itemsDataType = 'array'; @@ -1309,6 +1331,8 @@ public function getNextPageToken() class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection { protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); public $dimensionName; public $endDate; protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; @@ -1370,6 +1394,8 @@ public function getStartDate() class Google_Service_Dfareporting_FileList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; protected $itemsDataType = 'array'; @@ -1420,6 +1446,8 @@ public function getNextPageToken() class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection { protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -1471,6 +1499,8 @@ public function getMetrics() class Google_Service_Dfareporting_Metric extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $name; @@ -1498,6 +1528,8 @@ public function getName() class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection { protected $collection_key = 'perInteractionDimensions'; + protected $internal_gapi_mappings = array( + ); protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; protected $conversionDimensionsDataType = 'array'; protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; @@ -1562,6 +1594,8 @@ public function getPerInteractionDimensions() class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection { protected $collection_key = 'reachByFrequencyMetrics'; + protected $internal_gapi_mappings = array( + ); protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -1637,6 +1671,8 @@ public function getReachByFrequencyMetrics() class Google_Service_Dfareporting_Recipient extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deliveryType; public $email; public $kind; @@ -1674,6 +1710,8 @@ public function getKind() class Google_Service_Dfareporting_Report extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria'; protected $activeGrpCriteriaDataType = ''; @@ -1896,6 +1934,8 @@ public function getType() class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection { protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; protected $dateRangeDataType = ''; protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; @@ -1948,6 +1988,8 @@ public function getMetricNames() class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection { protected $collection_key = 'pivotedActivityMetrics'; + protected $internal_gapi_mappings = array( + ); protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; @@ -2012,6 +2054,8 @@ public function getPivotedActivityMetrics() class Google_Service_Dfareporting_ReportCriteria extends Google_Collection { protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); protected $activitiesType = 'Google_Service_Dfareporting_Activities'; protected $activitiesDataType = ''; protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; @@ -2088,6 +2132,8 @@ public function getMetricNames() class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection { protected $collection_key = 'overlapMetricNames'; + protected $internal_gapi_mappings = array( + ); protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; protected $breakdownDataType = 'array'; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; @@ -2173,6 +2219,8 @@ public function getPivoted() class Google_Service_Dfareporting_ReportDelivery extends Google_Collection { protected $collection_key = 'recipients'; + protected $internal_gapi_mappings = array( + ); public $emailOwner; public $emailOwnerDeliveryType; public $message; @@ -2223,6 +2271,8 @@ public function getRecipients() class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection { protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; protected $customRichMediaEventsDataType = 'array'; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; @@ -2310,6 +2360,8 @@ public function getReportProperties() class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $includeAttributedIPConversions; public $includeUnattributedCookieConversions; public $includeUnattributedIPConversions; @@ -2348,6 +2400,8 @@ public function getIncludeUnattributedIPConversions() class Google_Service_Dfareporting_ReportList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Dfareporting_Report'; protected $itemsDataType = 'array'; @@ -2398,6 +2452,8 @@ public function getNextPageToken() class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection { protected $collection_key = 'perInteractionDimensions'; + protected $internal_gapi_mappings = array( + ); protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; protected $activityFiltersDataType = 'array'; protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; @@ -2509,6 +2565,8 @@ public function getReportProperties() class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $clicksLookbackWindow; public $impressionsLookbackWindow; public $includeAttributedIPConversions; @@ -2613,6 +2671,8 @@ public function getPivotOnInteractionPath() class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection { protected $collection_key = 'reachByFrequencyMetricNames'; + protected $internal_gapi_mappings = array( + ); protected $activitiesType = 'Google_Service_Dfareporting_Activities'; protected $activitiesDataType = ''; protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; @@ -2700,6 +2760,8 @@ public function getReachByFrequencyMetricNames() class Google_Service_Dfareporting_ReportSchedule extends Google_Collection { protected $collection_key = 'repeatsOnWeekDays'; + protected $internal_gapi_mappings = array( + ); public $active; public $every; public $expirationDate; @@ -2781,6 +2843,8 @@ public function getStartDate() class Google_Service_Dfareporting_SortedDimension extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $name; public $sortOrder; @@ -2818,6 +2882,8 @@ public function getSortOrder() class Google_Service_Dfareporting_UserProfile extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $accountName; public $etag; @@ -2911,6 +2977,8 @@ public function getUserName() class Google_Service_Dfareporting_UserProfileList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; protected $itemsDataType = 'array'; From fe80c7509f5bfff58d3dbbe448724c122bf3b9db Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:44 -0700 Subject: [PATCH 0267/1274] Updated Admin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/Admin.php b/src/Google/Service/Admin.php index 769adb1c9..973a50eba 100644 --- a/src/Google/Service/Admin.php +++ b/src/Google/Service/Admin.php @@ -106,6 +106,8 @@ public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optPa class Google_Service_Admin_MailItem extends Google_Collection { protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); public $isDeleted; public $isDraft; public $isInbox; From e480f419def57691935f4d71b3450f6b6fec9931 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:44 -0700 Subject: [PATCH 0268/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 88 +++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index ac006eba1..9c5558fc7 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -1027,6 +1027,8 @@ public function listTiers($project, $optParams = array()) class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $binaryLogEnabled; public $enabled; public $id; @@ -1086,6 +1088,8 @@ public function getStartTime() class Google_Service_SQLAdmin_BackupRun extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $backupConfiguration; public $dueTime; public $endTime; @@ -1191,6 +1195,8 @@ public function getStatus() class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; protected $itemsDataType = 'array'; public $kind; @@ -1229,6 +1235,8 @@ public function getNextPageToken() class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $binLogFileName; public $binLogPosition; public $kind; @@ -1266,6 +1274,8 @@ public function getKind() class Google_Service_SQLAdmin_CloneContext extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; protected $binLogCoordinatesDataType = ''; public $destinationInstanceName; @@ -1315,6 +1325,8 @@ public function getSourceInstanceName() class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $value; @@ -1342,6 +1354,8 @@ public function getValue() class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { protected $collection_key = 'replicaNames'; + protected $internal_gapi_mappings = array( + ); public $currentDiskSize; public $databaseVersion; public $etag; @@ -1515,6 +1529,8 @@ public function getState() class Google_Service_SQLAdmin_ExportContext extends Google_Collection { protected $collection_key = 'table'; + protected $internal_gapi_mappings = array( + ); public $database; public $kind; public $table; @@ -1564,6 +1580,8 @@ public function getUri() class Google_Service_SQLAdmin_Flag extends Google_Collection { protected $collection_key = 'appliesTo'; + protected $internal_gapi_mappings = array( + ); public $allowedStringValues; public $appliesTo; public $kind; @@ -1646,6 +1664,8 @@ public function getType() class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_Flag'; protected $itemsDataType = 'array'; public $kind; @@ -1674,6 +1694,8 @@ public function getKind() class Google_Service_SQLAdmin_ImportContext extends Google_Collection { protected $collection_key = 'uri'; + protected $internal_gapi_mappings = array( + ); public $database; public $kind; public $uri; @@ -1712,6 +1734,8 @@ public function getUri() class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection { protected $collection_key = 'error'; + protected $internal_gapi_mappings = array( + ); public $endTime; public $enqueuedTime; protected $errorType = 'Google_Service_SQLAdmin_OperationError'; @@ -1851,6 +1875,8 @@ public function getUserEmailAddress() class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; protected $setRootPasswordContextDataType = ''; @@ -1867,6 +1893,8 @@ public function getSetRootPasswordContext() class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; protected $cloneContextDataType = ''; @@ -1883,6 +1911,8 @@ public function getCloneContext() class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -1909,6 +1939,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -1935,6 +1967,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; protected $exportContextDataType = ''; @@ -1951,6 +1985,8 @@ public function getExportContext() class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -1977,6 +2013,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; protected $importContextDataType = ''; @@ -1993,6 +2031,8 @@ public function getImportContext() class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2019,6 +2059,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2046,6 +2088,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; protected $itemsDataType = 'array'; public $kind; @@ -2084,6 +2128,8 @@ public function getNextPageToken() class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2110,6 +2156,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2136,6 +2184,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2162,6 +2212,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2188,6 +2240,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2214,6 +2268,8 @@ public function getOperation() class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2241,6 +2297,8 @@ public function getOperation() class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { protected $collection_key = 'authorizedNetworks'; + protected $internal_gapi_mappings = array( + ); public $authorizedNetworks; public $enabled; public $requireSsl; @@ -2278,6 +2336,8 @@ public function getRequireSsl() class Google_Service_SQLAdmin_IpMapping extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ipAddress; public $timeToRetire; @@ -2304,6 +2364,8 @@ public function getTimeToRetire() class Google_Service_SQLAdmin_LocationPreference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $followGaeApplication; public $kind; public $zone; @@ -2341,6 +2403,8 @@ public function getZone() class Google_Service_SQLAdmin_OperationError extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $kind; @@ -2368,6 +2432,8 @@ public function getKind() class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; protected $itemsDataType = 'array'; public $kind; @@ -2406,6 +2472,8 @@ public function getNextPageToken() class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $password; @@ -2433,6 +2501,8 @@ public function getPassword() class Google_Service_SQLAdmin_Settings extends Google_Collection { protected $collection_key = 'databaseFlags'; + protected $internal_gapi_mappings = array( + ); public $activationPolicy; public $authorizedGaeApplications; protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; @@ -2573,6 +2643,8 @@ public function getTier() class Google_Service_SQLAdmin_SslCert extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $cert; public $certSerialNumber; public $commonName; @@ -2665,6 +2737,8 @@ public function getSha1Fingerprint() class Google_Service_SQLAdmin_SslCertDetail extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; protected $certInfoDataType = ''; public $certPrivateKey; @@ -2692,6 +2766,8 @@ public function getCertPrivateKey() class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $operation; @@ -2718,6 +2794,8 @@ public function getOperation() class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $commonName; public function setCommonName($commonName) @@ -2733,6 +2811,8 @@ public function getCommonName() class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; protected $clientCertDataType = ''; public $kind; @@ -2773,6 +2853,8 @@ public function getServerCaCert() class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; protected $itemsDataType = 'array'; public $kind; @@ -2801,6 +2883,10 @@ public function getKind() class Google_Service_SQLAdmin_Tier extends Google_Collection { protected $collection_key = 'region'; + protected $internal_gapi_mappings = array( + "diskQuota" => "DiskQuota", + "rAM" => "RAM", + ); public $diskQuota; public $rAM; public $kind; @@ -2861,6 +2947,8 @@ public function getTier() class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_SQLAdmin_Tier'; protected $itemsDataType = 'array'; public $kind; From 06e35de0f66c34a9c42685abbf6af73e0dd577fb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:44 -0700 Subject: [PATCH 0269/1274] Updated GroupsMigration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GroupsMigration.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index 71e860c7e..38a21a3f7 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -104,6 +104,8 @@ public function insert($groupId, $optParams = array()) class Google_Service_GroupsMigration_Groups extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $responseCode; From 990c31d615eeaf81b34adc6f84bbb0c8a7930970 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:45 -0700 Subject: [PATCH 0270/1274] Updated QPXExpress.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/QPXExpress.php | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index f083273d8..cebd4f5a0 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -97,6 +97,8 @@ public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $ class Google_Service_QPXExpress_AircraftData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $kind; public $name; @@ -134,6 +136,8 @@ public function getName() class Google_Service_QPXExpress_AirportData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $city; public $code; public $kind; @@ -183,6 +187,8 @@ public function getName() class Google_Service_QPXExpress_BagDescriptor extends Google_Collection { protected $collection_key = 'description'; + protected $internal_gapi_mappings = array( + ); public $commercialName; public $count; public $description; @@ -242,6 +248,8 @@ public function getSubcode() class Google_Service_QPXExpress_CarrierData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $kind; public $name; @@ -279,6 +287,8 @@ public function getName() class Google_Service_QPXExpress_CityData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $country; public $kind; @@ -328,6 +338,8 @@ public function getName() class Google_Service_QPXExpress_Data extends Google_Collection { protected $collection_key = 'tax'; + protected $internal_gapi_mappings = array( + ); protected $aircraftType = 'Google_Service_QPXExpress_AircraftData'; protected $aircraftDataType = 'array'; protected $airportType = 'Google_Service_QPXExpress_AirportData'; @@ -403,6 +415,8 @@ public function getTax() class Google_Service_QPXExpress_FareInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $basisCode; public $carrier; public $destination; @@ -484,6 +498,8 @@ public function getPrivate() class Google_Service_QPXExpress_FlightInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $carrier; public $number; @@ -511,6 +527,8 @@ public function getNumber() class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection { protected $collection_key = 'bagDescriptor'; + protected $internal_gapi_mappings = array( + ); protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor'; protected $bagDescriptorDataType = 'array'; public $kilos; @@ -582,6 +600,8 @@ public function getPounds() class Google_Service_QPXExpress_LegInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $aircraft; public $arrivalTime; public $changePlane; @@ -773,6 +793,8 @@ public function getSecure() class Google_Service_QPXExpress_PassengerCounts extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adultCount; public $childCount; public $infantInLapCount; @@ -844,6 +866,8 @@ public function getSeniorCount() class Google_Service_QPXExpress_PricingInfo extends Google_Collection { protected $collection_key = 'tax'; + protected $internal_gapi_mappings = array( + ); public $baseFareTotal; protected $fareType = 'Google_Service_QPXExpress_FareInfo'; protected $fareDataType = 'array'; @@ -996,6 +1020,8 @@ public function getTax() class Google_Service_QPXExpress_SegmentInfo extends Google_Collection { protected $collection_key = 'leg'; + protected $internal_gapi_mappings = array( + ); public $bookingCode; public $bookingCodeCount; public $cabin; @@ -1124,6 +1150,8 @@ public function getSubjectToGovernmentApproval() class Google_Service_QPXExpress_SegmentPricing extends Google_Collection { protected $collection_key = 'freeBaggageOption'; + protected $internal_gapi_mappings = array( + ); public $fareId; protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance'; protected $freeBaggageOptionDataType = 'array'; @@ -1174,6 +1202,8 @@ public function getSegmentId() class Google_Service_QPXExpress_SliceInfo extends Google_Collection { protected $collection_key = 'segment'; + protected $internal_gapi_mappings = array( + ); public $duration; public $kind; protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; @@ -1213,6 +1243,8 @@ public function getSegment() class Google_Service_QPXExpress_SliceInput extends Google_Collection { protected $collection_key = 'prohibitedCarrier'; + protected $internal_gapi_mappings = array( + ); public $alliance; public $date; public $destination; @@ -1339,6 +1371,8 @@ public function getProhibitedCarrier() class Google_Service_QPXExpress_TaxData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -1376,6 +1410,8 @@ public function getName() class Google_Service_QPXExpress_TaxInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $chargeType; public $code; public $country; @@ -1446,6 +1482,8 @@ public function getSalePrice() class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $earliestTime; public $kind; public $latestTime; @@ -1484,6 +1522,8 @@ public function getLatestTime() class Google_Service_QPXExpress_TripOption extends Google_Collection { protected $collection_key = 'slice'; + protected $internal_gapi_mappings = array( + ); public $id; public $kind; protected $pricingType = 'Google_Service_QPXExpress_PricingInfo'; @@ -1546,6 +1586,8 @@ public function getSlice() class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection { protected $collection_key = 'slice'; + protected $internal_gapi_mappings = array( + ); public $maxPrice; protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; protected $passengersDataType = ''; @@ -1619,6 +1661,8 @@ public function getSolutions() class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection { protected $collection_key = 'tripOption'; + protected $internal_gapi_mappings = array( + ); protected $dataType = 'Google_Service_QPXExpress_Data'; protected $dataDataType = ''; public $kind; @@ -1669,6 +1713,8 @@ public function getTripOption() class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest'; protected $requestDataType = ''; @@ -1685,6 +1731,8 @@ public function getRequest() class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse'; protected $tripsDataType = ''; From bd9c1ff8d7964125e48dae108e1b0fa708892f57 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:45 -0700 Subject: [PATCH 0271/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 766cf4a56..d2d19b353 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -196,6 +196,13 @@ public function get($optParams = array()) class Google_Service_Oauth2_Tokeninfo extends Google_Model { + protected $internal_gapi_mappings = array( + "accessType" => "access_type", + "expiresIn" => "expires_in", + "issuedTo" => "issued_to", + "userId" => "user_id", + "verifiedEmail" => "verified_email", + ); public $accessType; public $audience; public $email; @@ -288,6 +295,11 @@ public function getVerifiedEmail() class Google_Service_Oauth2_Userinfoplus extends Google_Model { + protected $internal_gapi_mappings = array( + "familyName" => "family_name", + "givenName" => "given_name", + "verifiedEmail" => "verified_email", + ); public $email; public $familyName; public $gender; From 586c359f0e053f3c6eb8f639b9e46a16d534f96a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:45 -0700 Subject: [PATCH 0272/1274] Updated Audit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Audit.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 08bad3120..2e2741b82 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -169,6 +169,8 @@ public function listActivities($customerId, $applicationId, $optParams = array() class Google_Service_Audit_Activities extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Audit_Activity'; protected $itemsDataType = 'array'; public $kind; @@ -208,6 +210,8 @@ public function getNext() class Google_Service_Audit_Activity extends Google_Collection { protected $collection_key = 'events'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_Audit_ActivityActor'; protected $actorDataType = ''; protected $eventsType = 'Google_Service_Audit_ActivityEvents'; @@ -281,6 +285,8 @@ public function getOwnerDomain() class Google_Service_Audit_ActivityActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $applicationId; public $callerType; public $email; @@ -330,6 +336,8 @@ public function getKey() class Google_Service_Audit_ActivityEvents extends Google_Collection { protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); public $eventType; public $name; protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; @@ -368,6 +376,8 @@ public function getParameters() class Google_Service_Audit_ActivityEventsParameters extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $value; @@ -394,6 +404,8 @@ public function getValue() class Google_Service_Audit_ActivityId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $applicationId; public $customerId; public $time; From 688ab57fb043b416631d2a0cb5b6f11ab8eafb99 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:46 -0700 Subject: [PATCH 0273/1274] Updated Licensing.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Licensing.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 900557f06..74d9d21c5 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -366,6 +366,8 @@ public function update($productId, $skuId, $userId, Google_Service_Licensing_Lic class Google_Service_Licensing_LicenseAssignment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etags; public $kind; public $productId; @@ -436,6 +438,8 @@ public function getUserId() class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $userId; public function setUserId($userId) @@ -452,6 +456,8 @@ public function getUserId() class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Licensing_LicenseAssignment'; protected $itemsDataType = 'array'; From 50fe91fd725045eb655e66dad10943714fb6387c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:46 -0700 Subject: [PATCH 0274/1274] Updated Orkut.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Orkut.php | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/Google/Service/Orkut.php b/src/Google/Service/Orkut.php index 9080ab440..cc5a62c92 100644 --- a/src/Google/Service/Orkut.php +++ b/src/Google/Service/Orkut.php @@ -1629,6 +1629,8 @@ public function insert(Google_Service_Orkut_Activity $postBody, $optParams = arr class Google_Service_Orkut_Acl extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $description; protected $itemsType = 'Google_Service_Orkut_AclItems'; protected $itemsDataType = 'array'; @@ -1678,6 +1680,8 @@ public function getTotalParticipants() class Google_Service_Orkut_AclItems extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $type; @@ -1705,6 +1709,8 @@ public function getType() class Google_Service_Orkut_Activity extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); protected $accessType = 'Google_Service_Orkut_Acl'; protected $accessDataType = ''; protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; @@ -1824,6 +1830,8 @@ public function getVerb() class Google_Service_Orkut_ActivityList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_Activity'; protected $itemsDataType = 'array'; public $kind; @@ -1863,6 +1871,8 @@ public function getNextPageToken() class Google_Service_Orkut_ActivityObject extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $content; protected $itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource'; protected $itemsDataType = 'array'; @@ -1914,6 +1924,8 @@ public function getReplies() class Google_Service_Orkut_ActivityObjectReplies extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_Comment'; protected $itemsDataType = 'array'; public $totalItems; @@ -1952,6 +1964,8 @@ public function getUrl() class Google_Service_Orkut_Badge extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $badgeLargeLogo; public $badgeSmallLogo; public $caption; @@ -2056,6 +2070,8 @@ public function getSponsorUrl() class Google_Service_Orkut_BadgeList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_Badge'; protected $itemsDataType = 'array'; public $kind; @@ -2084,6 +2100,8 @@ public function getKind() class Google_Service_Orkut_Comment extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $actorDataType = ''; public $content; @@ -2168,6 +2186,8 @@ public function getPublished() class Google_Service_Orkut_CommentInReplyTo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $ref; public $rel; @@ -2217,6 +2237,8 @@ public function getType() class Google_Service_Orkut_CommentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2267,6 +2289,12 @@ public function getPreviousPageToken() class Google_Service_Orkut_Community extends Google_Collection { protected $collection_key = 'moderators'; + protected $internal_gapi_mappings = array( + "coOwners" => "co_owners", + "creationDate" => "creation_date", + "memberCount" => "member_count", + "photoUrl" => "photo_url", + ); public $category; protected $coOwnersType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $coOwnersDataType = 'array'; @@ -2430,6 +2458,8 @@ public function getPhotoUrl() class Google_Service_Orkut_CommunityList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_Community'; protected $itemsDataType = 'array'; public $kind; @@ -2457,6 +2487,8 @@ public function getKind() class Google_Service_Orkut_CommunityMembers extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $communityMembershipStatusType = 'Google_Service_Orkut_CommunityMembershipStatus'; protected $communityMembershipStatusDataType = ''; public $kind; @@ -2497,6 +2529,8 @@ public function getPerson() class Google_Service_Orkut_CommunityMembersList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityMembers'; protected $itemsDataType = 'array'; @@ -2568,6 +2602,8 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityMembershipStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $canCreatePoll; public $canCreateTopic; public $canShout; @@ -2694,6 +2730,8 @@ public function getStatus() class Google_Service_Orkut_CommunityMessage extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); public $addedDate; protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; @@ -2789,6 +2827,8 @@ public function getSubject() class Google_Service_Orkut_CommunityMessageList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityMessage'; protected $itemsDataType = 'array'; @@ -2861,6 +2901,8 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityPoll extends Google_Collection { protected $collection_key = 'votedOptions'; + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; public $communityId; @@ -3111,6 +3153,8 @@ public function getVotedOptions() class Google_Service_Orkut_CommunityPollComment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $addedDate; protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; @@ -3172,6 +3216,8 @@ public function getKind() class Google_Service_Orkut_CommunityPollCommentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityPollComment'; protected $itemsDataType = 'array'; @@ -3243,6 +3289,8 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityPollImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3259,6 +3307,8 @@ public function getUrl() class Google_Service_Orkut_CommunityPollList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityPoll'; protected $itemsDataType = 'array'; @@ -3331,6 +3381,8 @@ public function getPrevPageToken() class Google_Service_Orkut_CommunityPollVote extends Google_Collection { protected $collection_key = 'optionIds'; + protected $internal_gapi_mappings = array( + ); public $isVotevisible; public $kind; public $optionIds; @@ -3369,6 +3421,8 @@ public function getOptionIds() class Google_Service_Orkut_CommunityTopic extends Google_Collection { protected $collection_key = 'messages'; + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; protected $authorDataType = ''; public $body; @@ -3498,6 +3552,8 @@ public function getTitle() class Google_Service_Orkut_CommunityTopicList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $firstPageToken; protected $itemsType = 'Google_Service_Orkut_CommunityTopic'; protected $itemsDataType = 'array'; @@ -3570,6 +3626,8 @@ public function getPrevPageToken() class Google_Service_Orkut_Counters extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Orkut_OrkutCounterResource'; protected $itemsDataType = 'array'; public $kind; @@ -3598,6 +3656,8 @@ public function getKind() class Google_Service_Orkut_OrkutActivityobjectsResource extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); protected $communityType = 'Google_Service_Orkut_Community'; protected $communityDataType = ''; public $content; @@ -3682,6 +3742,8 @@ public function getPerson() class Google_Service_Orkut_OrkutActivitypersonResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $birthday; public $gender; public $id; @@ -3754,6 +3816,8 @@ public function getUrl() class Google_Service_Orkut_OrkutActivitypersonResourceImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3769,6 +3833,8 @@ public function getUrl() class Google_Service_Orkut_OrkutActivitypersonResourceName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $givenName; @@ -3795,6 +3861,8 @@ public function getGivenName() class Google_Service_Orkut_OrkutAuthorResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Orkut_OrkutAuthorResourceImage'; @@ -3844,6 +3912,8 @@ public function getUrl() class Google_Service_Orkut_OrkutAuthorResourceImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3859,6 +3929,8 @@ public function getUrl() class Google_Service_Orkut_OrkutCommunitypolloptionResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; protected $imageType = 'Google_Service_Orkut_OrkutCommunitypolloptionResourceImage'; protected $imageDataType = ''; @@ -3908,6 +3980,8 @@ public function getOptionId() class Google_Service_Orkut_OrkutCommunitypolloptionResourceImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3923,6 +3997,8 @@ public function getUrl() class Google_Service_Orkut_OrkutCounterResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $linkType = 'Google_Service_Orkut_OrkutLinkResource'; protected $linkDataType = ''; public $name; @@ -3961,6 +4037,8 @@ public function getTotal() class Google_Service_Orkut_OrkutLinkResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $rel; public $title; @@ -4010,6 +4088,8 @@ public function getType() class Google_Service_Orkut_Visibility extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; protected $linksDataType = 'array'; From 94f9e390d96a3430cc7edac30fd175453212d89b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:46 -0700 Subject: [PATCH 0275/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index ddcaee2f1..707a9e712 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -286,6 +286,8 @@ public function query($ids, $startDate, $endDate, $metrics, $optParams = array() class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; protected $itemsDataType = 'array'; public $kind; @@ -314,6 +316,8 @@ public function getKind() class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection { protected $collection_key = 'defaultOutput'; + protected $internal_gapi_mappings = array( + ); protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; protected $defaultOutputDataType = 'array'; public $id; @@ -374,6 +378,8 @@ public function getType() class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $format; public $type; @@ -401,6 +407,8 @@ public function getType() class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; protected $itemsDataType = 'array'; public $kind; @@ -429,6 +437,9 @@ public function getKind() class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection { protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + "reportId" => "report_id", + ); public $id; protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; protected $outputsDataType = 'array'; @@ -490,6 +501,8 @@ public function getTimeUpdated() class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $downloadUrl; public $format; public $type; @@ -527,6 +540,8 @@ public function getType() class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endTime; public $startTime; @@ -554,6 +569,8 @@ public function getStartTime() class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; protected $columnHeadersDataType = 'array'; public $kind; @@ -592,6 +609,8 @@ public function getRows() class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnType; public $dataType; public $name; From f886296af4655cdbad5ec2376a82f9580f2202e1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:47 -0700 Subject: [PATCH 0276/1274] Updated Manager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Manager.php | 84 ++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 6c1400361..63b21a16e 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -393,6 +393,8 @@ public function listTemplates($projectId, $optParams = array()) class Google_Service_Manager_AccessConfig extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $natIp; public $type; @@ -431,6 +433,8 @@ public function getType() class Google_Service_Manager_Action extends Google_Collection { protected $collection_key = 'commands'; + protected $internal_gapi_mappings = array( + ); public $commands; public $timeoutMs; @@ -458,6 +462,9 @@ public function getTimeoutMs() class Google_Service_Manager_AllowedRule extends Google_Collection { protected $collection_key = 'ports'; + protected $internal_gapi_mappings = array( + "iPProtocol" => "IPProtocol", + ); public $iPProtocol; public $ports; @@ -484,6 +491,8 @@ public function getPorts() class Google_Service_Manager_AutoscalingModule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $coolDownPeriodSec; public $description; public $maxNumReplicas; @@ -565,6 +574,8 @@ public function getTargetUtilization() class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoscalingConfigUrl; public function setAutoscalingConfigUrl($autoscalingConfigUrl) @@ -580,6 +591,8 @@ public function getAutoscalingConfigUrl() class Google_Service_Manager_DeployState extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $details; public $status; @@ -607,6 +620,8 @@ public function getStatus() class Google_Service_Manager_Deployment extends Google_Collection { protected $collection_key = 'overrides'; + protected $internal_gapi_mappings = array( + ); public $creationDate; public $description; protected $modulesType = 'Google_Service_Manager_ModuleStatus'; @@ -691,12 +706,15 @@ public function getTemplateName() class Google_Service_Manager_DeploymentModules extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Manager_DeploymentsListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $resourcesType = 'Google_Service_Manager_Deployment'; protected $resourcesDataType = 'array'; @@ -724,6 +742,8 @@ public function getResources() class Google_Service_Manager_DiskAttachment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deviceName; public $index; @@ -750,6 +770,8 @@ public function getIndex() class Google_Service_Manager_EnvVariable extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hidden; public $value; @@ -776,6 +798,8 @@ public function getValue() class Google_Service_Manager_ExistingDisk extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; protected $attachmentDataType = ''; public $source; @@ -804,6 +828,8 @@ public function getSource() class Google_Service_Manager_FirewallModule extends Google_Collection { protected $collection_key = 'targetTags'; + protected $internal_gapi_mappings = array( + ); protected $allowedType = 'Google_Service_Manager_AllowedRule'; protected $allowedDataType = 'array'; public $description; @@ -875,6 +901,8 @@ public function getTargetTags() class Google_Service_Manager_FirewallModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $firewallUrl; public function setFirewallUrl($firewallUrl) @@ -890,6 +918,8 @@ public function getFirewallUrl() class Google_Service_Manager_HealthCheckModule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $checkIntervalSec; public $description; public $healthyThreshold; @@ -982,6 +1012,8 @@ public function getUnhealthyThreshold() class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $healthCheckUrl; public function setHealthCheckUrl($healthCheckUrl) @@ -998,6 +1030,8 @@ public function getHealthCheckUrl() class Google_Service_Manager_LbModule extends Google_Collection { protected $collection_key = 'targetModules'; + protected $internal_gapi_mappings = array( + ); public $description; public $healthChecks; public $ipAddress; @@ -1079,6 +1113,8 @@ public function getTargetModules() class Google_Service_Manager_LbModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $forwardingRuleUrl; public $targetPoolUrl; @@ -1106,6 +1142,8 @@ public function getTargetPoolUrl() class Google_Service_Manager_Metadata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerPrint; protected $itemsType = 'Google_Service_Manager_MetadataItem'; protected $itemsDataType = 'array'; @@ -1133,6 +1171,8 @@ public function getItems() class Google_Service_Manager_MetadataItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -1159,6 +1199,8 @@ public function getValue() class Google_Service_Manager_Module extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $autoscalingModuleType = 'Google_Service_Manager_AutoscalingModule'; protected $autoscalingModuleDataType = ''; protected $firewallModuleType = 'Google_Service_Manager_FirewallModule'; @@ -1246,6 +1288,8 @@ public function getType() class Google_Service_Manager_ModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $autoscalingModuleStatusType = 'Google_Service_Manager_AutoscalingModuleStatus'; protected $autoscalingModuleStatusDataType = ''; protected $firewallModuleStatusType = 'Google_Service_Manager_FirewallModuleStatus'; @@ -1346,6 +1390,8 @@ public function getType() class Google_Service_Manager_NetworkInterface extends Google_Collection { protected $collection_key = 'accessConfigs'; + protected $internal_gapi_mappings = array( + ); protected $accessConfigsType = 'Google_Service_Manager_AccessConfig'; protected $accessConfigsDataType = 'array'; public $name; @@ -1395,6 +1441,9 @@ public function getNetworkIp() class Google_Service_Manager_NetworkModule extends Google_Model { + protected $internal_gapi_mappings = array( + "iPv4Range" => "IPv4Range", + ); public $iPv4Range; public $description; public $gatewayIPv4; @@ -1432,6 +1481,8 @@ public function getGatewayIPv4() class Google_Service_Manager_NetworkModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $networkUrl; public function setNetworkUrl($networkUrl) @@ -1447,6 +1498,8 @@ public function getNetworkUrl() class Google_Service_Manager_NewDisk extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; protected $attachmentDataType = ''; public $autoDelete; @@ -1497,6 +1550,8 @@ public function getInitializeParams() class Google_Service_Manager_NewDiskInitializeParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $diskSizeGb; public $diskType; public $sourceImage; @@ -1534,6 +1589,8 @@ public function getSourceImage() class Google_Service_Manager_ParamOverride extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $path; public $value; @@ -1561,6 +1618,8 @@ public function getValue() class Google_Service_Manager_ReplicaPoolModule extends Google_Collection { protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); protected $envVariablesType = 'Google_Service_Manager_EnvVariable'; protected $envVariablesDataType = 'map'; public $healthChecks; @@ -1622,11 +1681,14 @@ public function getResourceView() class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $replicaPoolUrl; public $resourceViewUrl; @@ -1653,6 +1715,8 @@ public function getResourceViewUrl() class Google_Service_Manager_ReplicaPoolParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1'; protected $v1beta1DataType = ''; @@ -1670,6 +1734,8 @@ public function getV1beta1() class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection { protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); public $autoRestart; public $baseInstanceName; public $canIpForward; @@ -1835,6 +1901,8 @@ public function getZone() class Google_Service_Manager_ServiceAccount extends Google_Collection { protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); public $email; public $scopes; @@ -1862,6 +1930,8 @@ public function getScopes() class Google_Service_Manager_Tag extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $fingerPrint; public $items; @@ -1888,6 +1958,8 @@ public function getItems() class Google_Service_Manager_Template extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $actionsType = 'Google_Service_Manager_Action'; protected $actionsDataType = 'map'; public $description; @@ -1938,17 +2010,21 @@ public function getName() class Google_Service_Manager_TemplateActions extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Manager_TemplateModules extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Manager_TemplatesListResponse extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; protected $resourcesType = 'Google_Service_Manager_Template'; protected $resourcesDataType = 'array'; From 506b1a8e4c7859135b2c22ef8b8ef0e59096a709 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:47 -0700 Subject: [PATCH 0277/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index e7cfd53db..adbe57fe5 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -447,6 +447,8 @@ public function get($userKey, $date, $optParams = array()) class Google_Service_Reports_Activities extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Reports_Activity'; protected $itemsDataType = 'array'; @@ -497,6 +499,8 @@ public function getNextPageToken() class Google_Service_Reports_Activity extends Google_Collection { protected $collection_key = 'events'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_Reports_ActivityActor'; protected $actorDataType = ''; public $etag; @@ -581,6 +585,8 @@ public function getOwnerDomain() class Google_Service_Reports_ActivityActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $callerType; public $email; public $key; @@ -630,6 +636,8 @@ public function getProfileId() class Google_Service_Reports_ActivityEvents extends Google_Collection { protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); public $name; protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters'; protected $parametersDataType = 'array'; @@ -669,6 +677,8 @@ public function getType() class Google_Service_Reports_ActivityEventsParameters extends Google_Collection { protected $collection_key = 'multiValue'; + protected $internal_gapi_mappings = array( + ); public $boolValue; public $intValue; public $multiIntValue; @@ -739,6 +749,8 @@ public function getValue() class Google_Service_Reports_ActivityId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $applicationName; public $customerId; public $time; @@ -787,6 +799,8 @@ public function getUniqueQualifier() class Google_Service_Reports_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $expiration; public $id; @@ -901,12 +915,15 @@ public function getType() class Google_Service_Reports_ChannelParams extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Reports_UsageReport extends Google_Collection { protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); public $date; protected $entityType = 'Google_Service_Reports_UsageReportEntity'; protected $entityDataType = ''; @@ -968,6 +985,8 @@ public function getParameters() class Google_Service_Reports_UsageReportEntity extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customerId; public $profileId; public $type; @@ -1017,6 +1036,8 @@ public function getUserEmail() class Google_Service_Reports_UsageReportParameters extends Google_Collection { protected $collection_key = 'msgValue'; + protected $internal_gapi_mappings = array( + ); public $boolValue; public $datetimeValue; public $intValue; @@ -1087,12 +1108,15 @@ public function getStringValue() class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Reports_UsageReports extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $nextPageToken; @@ -1155,6 +1179,8 @@ public function getWarnings() class Google_Service_Reports_UsageReportsWarnings extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData'; protected $dataDataType = 'array'; @@ -1193,6 +1219,8 @@ public function getMessage() class Google_Service_Reports_UsageReportsWarningsData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; From 392d3f68f1b0e677b63b738bafcce81206f6d72a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:47 -0700 Subject: [PATCH 0278/1274] Updated Resourceviews.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Resourceviews.php | 35 +++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 2b2b937a9..0fccd84bf 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -597,6 +597,8 @@ public function setService($project, $zone, $resourceView, Google_Service_Resour class Google_Service_Resourceviews_Label extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -623,6 +625,8 @@ public function getValue() class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endpoints; public $resource; @@ -649,12 +653,15 @@ public function getResource() class Google_Service_Resourceviews_ListResourceResponseItemEndpoints extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Resourceviews_Operation extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $clientOperationId; public $creationTimestamp; public $endTime; @@ -904,6 +911,8 @@ public function getZone() class Google_Service_Resourceviews_OperationError extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $errorsType = 'Google_Service_Resourceviews_OperationErrorErrors'; protected $errorsDataType = 'array'; @@ -920,6 +929,8 @@ public function getErrors() class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $location; public $message; @@ -958,6 +969,8 @@ public function getMessage() class Google_Service_Resourceviews_OperationList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $id; protected $itemsType = 'Google_Service_Resourceviews_Operation'; protected $itemsDataType = 'array'; @@ -1019,6 +1032,8 @@ public function getSelfLink() class Google_Service_Resourceviews_OperationWarnings extends Google_Collection { protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); public $code; protected $dataType = 'Google_Service_Resourceviews_OperationWarningsData'; protected $dataDataType = 'array'; @@ -1057,6 +1072,8 @@ public function getMessage() class Google_Service_Resourceviews_OperationWarningsData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $key; public $value; @@ -1084,6 +1101,8 @@ public function getValue() class Google_Service_Resourceviews_ResourceView extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $creationTimestamp; public $description; protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; @@ -1222,6 +1241,8 @@ public function getSize() class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $port; @@ -1249,6 +1270,8 @@ public function getPort() class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $resources; public function setResources($resources) @@ -1265,6 +1288,8 @@ public function getResources() class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection { protected $collection_key = 'endpoints'; + protected $internal_gapi_mappings = array( + ); protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; protected $endpointsDataType = 'array'; public $fingerprint; @@ -1293,6 +1318,8 @@ public function getFingerprint() class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Resourceviews_ResourceView'; protected $itemsDataType = 'array'; public $kind; @@ -1343,6 +1370,8 @@ public function getSelfLink() class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Resourceviews_ListResourceResponseItem'; protected $itemsDataType = 'array'; public $network; @@ -1382,6 +1411,8 @@ public function getNextPageToken() class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection { protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); public $resources; public function setResources($resources) @@ -1398,6 +1429,8 @@ public function getResources() class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection { protected $collection_key = 'endpoints'; + protected $internal_gapi_mappings = array( + ); protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; protected $endpointsDataType = 'array'; public $fingerprint; From e8608e573d06f4d5eb2f7e356b42cf54765a5e7c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:48 -0700 Subject: [PATCH 0279/1274] Updated PlusDomains.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/PlusDomains.php | 106 +++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index 815c3d063..d2b4d3523 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -903,6 +903,8 @@ public function listByCircle($circleId, $optParams = array()) class Google_Service_PlusDomains_Acl extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $description; public $domainRestricted; protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; @@ -952,6 +954,8 @@ public function getKind() class Google_Service_PlusDomains_Activity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accessType = 'Google_Service_PlusDomains_Acl'; protected $accessDataType = ''; protected $actorType = 'Google_Service_PlusDomains_ActivityActor'; @@ -1181,6 +1185,8 @@ public function getVerb() class Google_Service_PlusDomains_ActivityActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage'; @@ -1242,6 +1248,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -1257,6 +1265,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityActorName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $givenName; @@ -1284,6 +1294,8 @@ public function getGivenName() class Google_Service_PlusDomains_ActivityFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $id; protected $itemsType = 'Google_Service_PlusDomains_Activity'; @@ -1389,6 +1401,8 @@ public function getUpdated() class Google_Service_PlusDomains_ActivityObject extends Google_Collection { protected $collection_key = 'attachments'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor'; protected $actorDataType = ''; protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments'; @@ -1520,6 +1534,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage'; @@ -1569,6 +1585,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -1585,6 +1603,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection { protected $collection_key = 'thumbnails'; + protected $internal_gapi_mappings = array( + ); public $content; public $displayName; protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed'; @@ -1704,6 +1724,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $url; @@ -1730,6 +1752,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1778,6 +1802,8 @@ public function getWidth() class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1826,6 +1852,8 @@ public function getWidth() class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -1841,6 +1869,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage'; protected $imageDataType = ''; @@ -1879,6 +1909,8 @@ public function getUrl() class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1927,6 +1959,8 @@ public function getWidth() class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1953,6 +1987,8 @@ public function getTotalItems() class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1979,6 +2015,8 @@ public function getTotalItems() class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -2005,6 +2043,8 @@ public function getTotalItems() class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $canComment; public $canPlusone; public $canUpdate; @@ -2064,6 +2104,8 @@ public function getResharingDisabled() class Google_Service_PlusDomains_ActivityProvider extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $title; public function setTitle($title) @@ -2079,6 +2121,8 @@ public function getTitle() class Google_Service_PlusDomains_Audience extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; protected $itemDataType = ''; @@ -2140,6 +2184,8 @@ public function getVisibility() class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_PlusDomains_Audience'; protected $itemsDataType = 'array'; @@ -2200,6 +2246,8 @@ public function getTotalItems() class Google_Service_PlusDomains_Circle extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $displayName; public $etag; @@ -2283,6 +2331,8 @@ public function getSelfLink() class Google_Service_PlusDomains_CircleFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_PlusDomains_Circle'; protected $itemsDataType = 'array'; @@ -2376,6 +2426,8 @@ public function getTotalItems() class Google_Service_PlusDomains_CirclePeople extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $totalItems; public function setTotalItems($totalItems) @@ -2392,6 +2444,8 @@ public function getTotalItems() class Google_Service_PlusDomains_Comment extends Google_Collection { protected $collection_key = 'inReplyTo'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_PlusDomains_CommentActor'; protected $actorDataType = ''; public $etag; @@ -2521,6 +2575,8 @@ public function getVerb() class Google_Service_PlusDomains_CommentActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_CommentActorImage'; @@ -2570,6 +2626,8 @@ public function getUrl() class Google_Service_PlusDomains_CommentActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -2586,6 +2644,8 @@ public function getUrl() class Google_Service_PlusDomains_CommentFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $id; protected $itemsType = 'Google_Service_PlusDomains_Comment'; @@ -2679,6 +2739,8 @@ public function getUpdated() class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $url; @@ -2705,6 +2767,8 @@ public function getUrl() class Google_Service_PlusDomains_CommentObject extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $content; public $objectType; public $originalContent; @@ -2742,6 +2806,8 @@ public function getOriginalContent() class Google_Service_PlusDomains_CommentPlusoners extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $totalItems; public function setTotalItems($totalItems) @@ -2758,6 +2824,8 @@ public function getTotalItems() class Google_Service_PlusDomains_Media extends Google_Collection { protected $collection_key = 'streams'; + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_PlusDomains_MediaAuthor'; protected $authorDataType = ''; public $displayName; @@ -2963,6 +3031,8 @@ public function getWidth() class Google_Service_PlusDomains_MediaAuthor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_MediaAuthorImage'; @@ -3012,6 +3082,8 @@ public function getUrl() class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -3027,6 +3099,8 @@ public function getUrl() class Google_Service_PlusDomains_MediaExif extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $time; public function setTime($time) @@ -3043,6 +3117,8 @@ public function getTime() class Google_Service_PlusDomains_PeopleFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_PlusDomains_Person'; protected $itemsDataType = 'array'; @@ -3126,6 +3202,8 @@ public function getTotalItems() class Google_Service_PlusDomains_Person extends Google_Collection { protected $collection_key = 'urls'; + protected $internal_gapi_mappings = array( + ); public $aboutMe; public $birthday; public $braggingRights; @@ -3445,6 +3523,8 @@ public function getVerified() class Google_Service_PlusDomains_PersonCover extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $coverInfoType = 'Google_Service_PlusDomains_PersonCoverCoverInfo'; protected $coverInfoDataType = ''; protected $coverPhotoType = 'Google_Service_PlusDomains_PersonCoverCoverPhoto'; @@ -3484,6 +3564,8 @@ public function getLayout() class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $leftImageOffset; public $topImageOffset; @@ -3510,6 +3592,8 @@ public function getTopImageOffset() class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $url; public $width; @@ -3547,6 +3631,8 @@ public function getWidth() class Google_Service_PlusDomains_PersonEmails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -3573,6 +3659,8 @@ public function getValue() class Google_Service_PlusDomains_PersonImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $isDefault; public $url; @@ -3599,6 +3687,8 @@ public function getUrl() class Google_Service_PlusDomains_PersonName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $formatted; public $givenName; @@ -3669,6 +3759,8 @@ public function getMiddleName() class Google_Service_PlusDomains_PersonOrganizations extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $department; public $description; public $endDate; @@ -3772,6 +3864,8 @@ public function getType() class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $primary; public $value; @@ -3798,6 +3892,8 @@ public function getValue() class Google_Service_PlusDomains_PersonUrls extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $label; public $type; public $value; @@ -3835,6 +3931,8 @@ public function getValue() class Google_Service_PlusDomains_Place extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $addressType = 'Google_Service_PlusDomains_PlaceAddress'; protected $addressDataType = ''; public $displayName; @@ -3896,6 +3994,8 @@ public function getPosition() class Google_Service_PlusDomains_PlaceAddress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formatted; public function setFormatted($formatted) @@ -3911,6 +4011,8 @@ public function getFormatted() class Google_Service_PlusDomains_PlacePosition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -3937,6 +4039,8 @@ public function getLongitude() class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; public $type; @@ -3974,6 +4078,8 @@ public function getType() class Google_Service_PlusDomains_Videostream extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; From 635a6d71d84bd089b61b95214b117862415e2d19 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:49 -0700 Subject: [PATCH 0280/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 209 ++++++++++++++++++++++++++++++- 1 file changed, 205 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 470cb2a21..d5c8bf7fa 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -3653,6 +3653,8 @@ public function createAccountTicket(Google_Service_Analytics_AccountTicket $post class Google_Service_Analytics_Account extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $childLinkType = 'Google_Service_Analytics_AccountChildLink'; protected $childLinkDataType = ''; public $created; @@ -3747,6 +3749,8 @@ public function getUpdated() class Google_Service_Analytics_AccountChildLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -3774,6 +3778,8 @@ public function getType() class Google_Service_Analytics_AccountPermissions extends Google_Collection { protected $collection_key = 'effective'; + protected $internal_gapi_mappings = array( + ); public $effective; public function setEffective($effective) @@ -3789,6 +3795,8 @@ public function getEffective() class Google_Service_Analytics_AccountRef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $id; public $kind; @@ -3838,6 +3846,8 @@ public function getName() class Google_Service_Analytics_AccountSummaries extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_AccountSummary'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -3932,6 +3942,8 @@ public function getUsername() class Google_Service_Analytics_AccountSummary extends Google_Collection { protected $collection_key = 'webProperties'; + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -3981,6 +3993,8 @@ public function getWebProperties() class Google_Service_Analytics_AccountTicket extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accountType = 'Google_Service_Analytics_Account'; protected $accountDataType = ''; public $id; @@ -4055,6 +4069,8 @@ public function getWebproperty() class Google_Service_Analytics_Accounts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Account'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4148,6 +4164,8 @@ public function getUsername() class Google_Service_Analytics_AdWordsAccount extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoTaggingEnabled; public $customerId; public $kind; @@ -4186,6 +4204,8 @@ public function getKind() class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection { protected $collection_key = 'customDataImportUids'; + protected $internal_gapi_mappings = array( + ); public $customDataImportUids; public function setCustomDataImportUids($customDataImportUids) @@ -4201,6 +4221,8 @@ public function getCustomDataImportUids() class Google_Service_Analytics_Column extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attributes; public $id; public $kind; @@ -4238,12 +4260,15 @@ public function getKind() class Google_Service_Analytics_ColumnAttributes extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Analytics_Columns extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $attributeNames; public $etag; protected $itemsType = 'Google_Service_Analytics_Column'; @@ -4305,6 +4330,8 @@ public function getTotalResults() class Google_Service_Analytics_CustomDataSource extends Google_Collection { protected $collection_key = 'profilesLinked'; + protected $internal_gapi_mappings = array( + ); public $accountId; protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink'; protected $childLinkDataType = ''; @@ -4476,6 +4503,8 @@ public function getWebPropertyId() class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -4502,6 +4531,8 @@ public function getType() class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -4529,6 +4560,8 @@ public function getType() class Google_Service_Analytics_CustomDataSources extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_CustomDataSource'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4623,6 +4656,8 @@ public function getUsername() class Google_Service_Analytics_DailyUpload extends Google_Collection { protected $collection_key = 'recentChanges'; + protected $internal_gapi_mappings = array( + ); public $accountId; public $appendCount; public $createdTime; @@ -4750,6 +4785,8 @@ public function getWebPropertyId() class Google_Service_Analytics_DailyUploadAppend extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $appendNumber; public $customDataSourceId; @@ -4831,6 +4868,8 @@ public function getWebPropertyId() class Google_Service_Analytics_DailyUploadParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -4857,6 +4896,8 @@ public function getType() class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $change; public $time; @@ -4884,6 +4925,8 @@ public function getTime() class Google_Service_Analytics_DailyUploads extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_DailyUpload'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -4978,6 +5021,8 @@ public function getUsername() class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection { protected $collection_key = 'profileIds'; + protected $internal_gapi_mappings = array( + ); protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount'; protected $adWordsAccountsDataType = 'array'; protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity'; @@ -5061,6 +5106,8 @@ public function getSelfLink() class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; protected $webPropertyRefDataType = ''; @@ -5078,6 +5125,8 @@ public function getWebPropertyRef() class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -5160,6 +5209,8 @@ public function getTotalResults() class Google_Service_Analytics_EntityUserLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity'; protected $entityDataType = ''; public $id; @@ -5233,6 +5284,8 @@ public function getUserRef() class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accountRefType = 'Google_Service_Analytics_AccountRef'; protected $accountRefDataType = ''; protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; @@ -5274,6 +5327,8 @@ public function getWebPropertyRef() class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection { protected $collection_key = 'local'; + protected $internal_gapi_mappings = array( + ); public $effective; public $local; @@ -5301,6 +5356,8 @@ public function getLocal() class Google_Service_Analytics_EntityUserLinks extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_EntityUserLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -5384,6 +5441,8 @@ public function getTotalResults() class Google_Service_Analytics_Experiment extends Google_Collection { protected $collection_key = 'variations'; + protected $internal_gapi_mappings = array( + ); public $accountId; public $created; public $description; @@ -5698,6 +5757,8 @@ public function getWinnerFound() class Google_Service_Analytics_ExperimentParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -5724,6 +5785,8 @@ public function getType() class Google_Service_Analytics_ExperimentVariations extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $status; public $url; @@ -5784,6 +5847,8 @@ public function getWon() class Google_Service_Analytics_Experiments extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Experiment'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -5877,6 +5942,8 @@ public function getUsername() class Google_Service_Analytics_Filter extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; protected $advancedDetailsType = 'Google_Service_Analytics_FilterAdvancedDetails'; protected $advancedDetailsDataType = ''; @@ -6053,6 +6120,8 @@ public function getUppercaseDetails() class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $caseSensitive; public $extractA; public $extractB; @@ -6167,6 +6236,8 @@ public function getOverrideOutputField() class Google_Service_Analytics_FilterExpression extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $caseSensitive; public $expressionValue; public $field; @@ -6226,6 +6297,8 @@ public function getMatchType() class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $field; public function setField($field) @@ -6241,6 +6314,8 @@ public function getField() class Google_Service_Analytics_FilterParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -6267,6 +6342,8 @@ public function getType() class Google_Service_Analytics_FilterRef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $href; public $id; @@ -6326,6 +6403,8 @@ public function getName() class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $caseSensitive; public $field; public $replaceString; @@ -6374,6 +6453,8 @@ public function getSearchString() class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $field; public function setField($field) @@ -6390,6 +6471,8 @@ public function getField() class Google_Service_Analytics_Filters extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Filter'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -6484,6 +6567,8 @@ public function getUsername() class Google_Service_Analytics_GaData extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $containsSampledData; @@ -6668,6 +6753,8 @@ public function getTotalsForAllResults() class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnType; public $dataType; public $name; @@ -6706,6 +6793,8 @@ public function getName() class Google_Service_Analytics_GaDataDataTable extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols'; protected $colsDataType = 'array'; protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; @@ -6734,6 +6823,8 @@ public function getRows() class Google_Service_Analytics_GaDataDataTableCols extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $label; public $type; @@ -6772,6 +6863,8 @@ public function getType() class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection { protected $collection_key = 'c'; + protected $internal_gapi_mappings = array( + ); protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; protected $cDataType = 'array'; @@ -6788,6 +6881,8 @@ public function getC() class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $v; public function setV($v) @@ -6803,6 +6898,8 @@ public function getV() class Google_Service_Analytics_GaDataProfileInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $internalWebPropertyId; public $profileId; @@ -6874,6 +6971,12 @@ public function getWebPropertyId() class Google_Service_Analytics_GaDataQuery extends Google_Collection { protected $collection_key = 'sort'; + protected $internal_gapi_mappings = array( + "endDate" => "end-date", + "maxResults" => "max-results", + "startDate" => "start-date", + "startIndex" => "start-index", + ); public $dimensions; public $endDate; public $filters; @@ -6999,11 +7102,14 @@ public function getStartIndex() class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Analytics_Goal extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $active; public $created; @@ -7212,6 +7318,8 @@ public function getWebPropertyId() class Google_Service_Analytics_GoalEventDetails extends Google_Collection { protected $collection_key = 'eventConditions'; + protected $internal_gapi_mappings = array( + ); protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions'; protected $eventConditionsDataType = 'array'; public $useEventValue; @@ -7239,6 +7347,8 @@ public function getUseEventValue() class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $comparisonType; public $comparisonValue; public $expression; @@ -7298,6 +7408,8 @@ public function getType() class Google_Service_Analytics_GoalParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -7325,6 +7437,8 @@ public function getType() class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection { protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); public $caseSensitive; public $firstStepRequired; public $matchType; @@ -7385,6 +7499,8 @@ public function getUrl() class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $number; public $url; @@ -7422,6 +7538,8 @@ public function getUrl() class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $comparisonType; public $comparisonValue; @@ -7448,6 +7566,8 @@ public function getComparisonValue() class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $comparisonType; public $comparisonValue; @@ -7475,6 +7595,8 @@ public function getComparisonValue() class Google_Service_Analytics_Goals extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Goal'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -7569,6 +7691,8 @@ public function getUsername() class Google_Service_Analytics_McfData extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $containsSampledData; @@ -7742,6 +7866,8 @@ public function getTotalsForAllResults() class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnType; public $dataType; public $name; @@ -7779,6 +7905,8 @@ public function getName() class Google_Service_Analytics_McfDataProfileInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $internalWebPropertyId; public $profileId; @@ -7850,6 +7978,12 @@ public function getWebPropertyId() class Google_Service_Analytics_McfDataQuery extends Google_Collection { protected $collection_key = 'sort'; + protected $internal_gapi_mappings = array( + "endDate" => "end-date", + "maxResults" => "max-results", + "startDate" => "start-date", + "startIndex" => "start-index", + ); public $dimensions; public $endDate; public $filters; @@ -7976,6 +8110,8 @@ public function getStartIndex() class Google_Service_Analytics_McfDataRows extends Google_Collection { protected $collection_key = 'conversionPathValue'; + protected $internal_gapi_mappings = array( + ); protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue'; protected $conversionPathValueDataType = 'array'; public $primitiveValue; @@ -8003,6 +8139,8 @@ public function getPrimitiveValue() class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $interactionType; public $nodeValue; @@ -8029,11 +8167,14 @@ public function getNodeValue() class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Analytics_Profile extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink'; protected $childLinkDataType = ''; @@ -8294,6 +8435,8 @@ public function getWebsiteUrl() class Google_Service_Analytics_ProfileChildLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -8320,6 +8463,8 @@ public function getType() class Google_Service_Analytics_ProfileFilterLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $filterRefType = 'Google_Service_Analytics_FilterRef'; protected $filterRefDataType = ''; public $id; @@ -8393,6 +8538,8 @@ public function getSelfLink() class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -8486,6 +8633,8 @@ public function getUsername() class Google_Service_Analytics_ProfileParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -8513,6 +8662,8 @@ public function getType() class Google_Service_Analytics_ProfilePermissions extends Google_Collection { protected $collection_key = 'effective'; + protected $internal_gapi_mappings = array( + ); public $effective; public function setEffective($effective) @@ -8528,6 +8679,8 @@ public function getEffective() class Google_Service_Analytics_ProfileRef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $href; public $id; @@ -8609,6 +8762,8 @@ public function getWebPropertyId() class Google_Service_Analytics_ProfileSummary extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -8658,6 +8813,8 @@ public function getType() class Google_Service_Analytics_Profiles extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Profile'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -8752,6 +8909,8 @@ public function getUsername() class Google_Service_Analytics_RealtimeData extends Google_Collection { protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders'; protected $columnHeadersDataType = 'array'; public $id; @@ -8858,6 +9017,8 @@ public function getTotalsForAllResults() class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $columnType; public $dataType; public $name; @@ -8895,6 +9056,8 @@ public function getName() class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $internalWebPropertyId; public $profileId; @@ -8966,6 +9129,9 @@ public function getWebPropertyId() class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection { protected $collection_key = 'sort'; + protected $internal_gapi_mappings = array( + "maxResults" => "max-results", + ); public $dimensions; public $filters; public $ids; @@ -9036,11 +9202,14 @@ public function getSort() class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Analytics_Segment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $created; public $definition; public $id; @@ -9145,6 +9314,8 @@ public function getUpdated() class Google_Service_Analytics_Segments extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Segment'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9238,6 +9409,10 @@ public function getUsername() class Google_Service_Analytics_UnsampledReport extends Google_Model { + protected $internal_gapi_mappings = array( + "endDate" => "end-date", + "startDate" => "start-date", + ); public $accountId; protected $cloudStorageDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails'; protected $cloudStorageDownloadDetailsDataType = ''; @@ -9453,6 +9628,8 @@ public function getWebPropertyId() class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bucketId; public $objectId; @@ -9479,6 +9656,8 @@ public function getObjectId() class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $documentId; public function setDocumentId($documentId) @@ -9495,6 +9674,8 @@ public function getDocumentId() class Google_Service_Analytics_UnsampledReports extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_UnsampledReport'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9589,6 +9770,8 @@ public function getUsername() class Google_Service_Analytics_Upload extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); public $accountId; public $customDataSourceId; public $errors; @@ -9660,6 +9843,8 @@ public function getStatus() class Google_Service_Analytics_Uploads extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Upload'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -9742,6 +9927,8 @@ public function getTotalResults() class Google_Service_Analytics_UserRef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $email; public $id; public $kind; @@ -9779,6 +9966,8 @@ public function getKind() class Google_Service_Analytics_WebPropertyRef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $href; public $id; @@ -9850,6 +10039,8 @@ public function getName() class Google_Service_Analytics_WebPropertySummary extends Google_Collection { protected $collection_key = 'profiles'; + protected $internal_gapi_mappings = array( + ); public $id; public $internalWebPropertyId; public $kind; @@ -9933,6 +10124,8 @@ public function getWebsiteUrl() class Google_Service_Analytics_Webproperties extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Analytics_Webproperty'; protected $itemsDataType = 'array'; public $itemsPerPage; @@ -10026,6 +10219,8 @@ public function getUsername() class Google_Service_Analytics_Webproperty extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink'; protected $childLinkDataType = ''; @@ -10209,6 +10404,8 @@ public function getWebsiteUrl() class Google_Service_Analytics_WebpropertyChildLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -10235,6 +10432,8 @@ public function getType() class Google_Service_Analytics_WebpropertyParentLink extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $href; public $type; @@ -10262,6 +10461,8 @@ public function getType() class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection { protected $collection_key = 'effective'; + protected $internal_gapi_mappings = array( + ); public $effective; public function setEffective($effective) From c1791e289cfdfbc71062592ba7ef5734b8e92753 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:49 -0700 Subject: [PATCH 0281/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 0925c7cef..1662e1756 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -541,6 +541,8 @@ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = a class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection { protected $collection_key = 'sitemap'; + protected $internal_gapi_mappings = array( + ); protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; protected $sitemapDataType = 'array'; @@ -558,6 +560,8 @@ public function getSitemap() class Google_Service_Webmasters_SitesListResponse extends Google_Collection { protected $collection_key = 'siteEntry'; + protected $internal_gapi_mappings = array( + ); protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; protected $siteEntryDataType = 'array'; @@ -574,6 +578,8 @@ public function getSiteEntry() class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $timestamp; @@ -601,6 +607,8 @@ public function getTimestamp() class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection { protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); public $category; protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; protected $entriesDataType = 'array'; @@ -640,6 +648,8 @@ public function getPlatform() class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection { protected $collection_key = 'countPerTypes'; + protected $internal_gapi_mappings = array( + ); protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; protected $countPerTypesDataType = 'array'; @@ -656,6 +666,10 @@ public function getCountPerTypes() class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model { + protected $internal_gapi_mappings = array( + "firstDetected" => "first_detected", + "lastCrawled" => "last_crawled", + ); public $firstDetected; public $lastCrawled; public $pageUrl; @@ -717,6 +731,8 @@ public function getUrlDetails() class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection { protected $collection_key = 'urlCrawlErrorSample'; + protected $internal_gapi_mappings = array( + ); protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; protected $urlCrawlErrorSampleDataType = 'array'; @@ -734,6 +750,8 @@ public function getUrlCrawlErrorSample() class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection { protected $collection_key = 'linkedFromUrls'; + protected $internal_gapi_mappings = array( + ); public $containingSitemaps; public $linkedFromUrls; @@ -760,6 +778,8 @@ public function getLinkedFromUrls() class Google_Service_Webmasters_WmxSite extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $permissionLevel; public $siteUrl; @@ -787,6 +807,8 @@ public function getSiteUrl() class Google_Service_Webmasters_WmxSitemap extends Google_Collection { protected $collection_key = 'contents'; + protected $internal_gapi_mappings = array( + ); protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; protected $contentsDataType = 'array'; public $errors; @@ -891,6 +913,8 @@ public function getWarnings() class Google_Service_Webmasters_WmxSitemapContent extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $indexed; public $submitted; public $type; From df454bbde9cc3bdcd399d6544d46dcd24e2b7121 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:49 -0700 Subject: [PATCH 0282/1274] Updated Groupssettings.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Groupssettings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php index b14b87c4f..8c5b87e89 100644 --- a/src/Google/Service/Groupssettings.php +++ b/src/Google/Service/Groupssettings.php @@ -156,6 +156,8 @@ public function update($groupUniqueId, Google_Service_Groupssettings_Groups $pos class Google_Service_Groupssettings_Groups extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allowExternalMembers; public $allowGoogleCommunication; public $allowWebPosting; From 66450e86f2c98c16e234a7f258052dacde5e0723 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:50 -0700 Subject: [PATCH 0283/1274] Updated Plus.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Plus.php | 91 +++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index eeafbcecd..3cbf0b4d2 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -649,6 +649,8 @@ public function search($query, $optParams = array()) class Google_Service_Plus_Acl extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $description; protected $itemsType = 'Google_Service_Plus_PlusAclentryResource'; protected $itemsDataType = 'array'; @@ -687,6 +689,8 @@ public function getKind() class Google_Service_Plus_Activity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $accessType = 'Google_Service_Plus_Acl'; protected $accessDataType = ''; protected $actorType = 'Google_Service_Plus_ActivityActor'; @@ -916,6 +920,8 @@ public function getVerb() class Google_Service_Plus_ActivityActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Plus_ActivityActorImage'; @@ -977,6 +983,8 @@ public function getUrl() class Google_Service_Plus_ActivityActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -992,6 +1000,8 @@ public function getUrl() class Google_Service_Plus_ActivityActorName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $givenName; @@ -1019,6 +1029,8 @@ public function getGivenName() class Google_Service_Plus_ActivityFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $id; protected $itemsType = 'Google_Service_Plus_Activity'; @@ -1124,6 +1136,8 @@ public function getUpdated() class Google_Service_Plus_ActivityObject extends Google_Collection { protected $collection_key = 'attachments'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_Plus_ActivityObjectActor'; protected $actorDataType = ''; protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments'; @@ -1243,6 +1257,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage'; @@ -1292,6 +1308,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -1308,6 +1326,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection { protected $collection_key = 'thumbnails'; + protected $internal_gapi_mappings = array( + ); public $content; public $displayName; protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed'; @@ -1415,6 +1435,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $url; @@ -1441,6 +1463,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1489,6 +1513,8 @@ public function getWidth() class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1537,6 +1563,8 @@ public function getWidth() class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage'; protected $imageDataType = ''; @@ -1575,6 +1603,8 @@ public function getUrl() class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $type; public $url; @@ -1623,6 +1653,8 @@ public function getWidth() class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1649,6 +1681,8 @@ public function getTotalItems() class Google_Service_Plus_ActivityObjectReplies extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1675,6 +1709,8 @@ public function getTotalItems() class Google_Service_Plus_ActivityObjectResharers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $selfLink; public $totalItems; @@ -1701,6 +1737,8 @@ public function getTotalItems() class Google_Service_Plus_ActivityProvider extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $title; public function setTitle($title) @@ -1717,6 +1755,8 @@ public function getTitle() class Google_Service_Plus_Comment extends Google_Collection { protected $collection_key = 'inReplyTo'; + protected $internal_gapi_mappings = array( + ); protected $actorType = 'Google_Service_Plus_CommentActor'; protected $actorDataType = ''; public $etag; @@ -1846,6 +1886,8 @@ public function getVerb() class Google_Service_Plus_CommentActor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; protected $imageType = 'Google_Service_Plus_CommentActorImage'; @@ -1895,6 +1937,8 @@ public function getUrl() class Google_Service_Plus_CommentActorImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) @@ -1911,6 +1955,8 @@ public function getUrl() class Google_Service_Plus_CommentFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; public $id; protected $itemsType = 'Google_Service_Plus_Comment'; @@ -2004,6 +2050,8 @@ public function getUpdated() class Google_Service_Plus_CommentInReplyTo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $url; @@ -2030,6 +2078,8 @@ public function getUrl() class Google_Service_Plus_CommentObject extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $content; public $objectType; public $originalContent; @@ -2067,6 +2117,8 @@ public function getOriginalContent() class Google_Service_Plus_CommentPlusoners extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $totalItems; public function setTotalItems($totalItems) @@ -2083,6 +2135,9 @@ public function getTotalItems() class Google_Service_Plus_ItemScope extends Google_Collection { protected $collection_key = 'performers'; + protected $internal_gapi_mappings = array( + "associatedMedia" => "associated_media", + ); protected $aboutType = 'Google_Service_Plus_ItemScope'; protected $aboutDataType = ''; public $additionalName; @@ -2707,6 +2762,8 @@ public function getWorstRating() class Google_Service_Plus_Moment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; protected $objectType = 'Google_Service_Plus_ItemScope'; @@ -2792,6 +2849,8 @@ public function getType() class Google_Service_Plus_MomentsFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Plus_Moment'; protected $itemsDataType = 'array'; @@ -2886,6 +2945,8 @@ public function getUpdated() class Google_Service_Plus_PeopleFeed extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Plus_Person'; protected $itemsDataType = 'array'; @@ -2969,6 +3030,8 @@ public function getTotalItems() class Google_Service_Plus_Person extends Google_Collection { protected $collection_key = 'urls'; + protected $internal_gapi_mappings = array( + ); public $aboutMe; protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange'; protected $ageRangeDataType = ''; @@ -3311,6 +3374,8 @@ public function getVerified() class Google_Service_Plus_PersonAgeRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $max; public $min; @@ -3337,6 +3402,8 @@ public function getMin() class Google_Service_Plus_PersonCover extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo'; protected $coverInfoDataType = ''; protected $coverPhotoType = 'Google_Service_Plus_PersonCoverCoverPhoto'; @@ -3376,6 +3443,8 @@ public function getLayout() class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $leftImageOffset; public $topImageOffset; @@ -3402,6 +3471,8 @@ public function getTopImageOffset() class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $url; public $width; @@ -3439,6 +3510,8 @@ public function getWidth() class Google_Service_Plus_PersonEmails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -3465,6 +3538,8 @@ public function getValue() class Google_Service_Plus_PersonImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $isDefault; public $url; @@ -3491,6 +3566,8 @@ public function getUrl() class Google_Service_Plus_PersonName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $formatted; public $givenName; @@ -3561,6 +3638,8 @@ public function getMiddleName() class Google_Service_Plus_PersonOrganizations extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $department; public $description; public $endDate; @@ -3664,6 +3743,8 @@ public function getType() class Google_Service_Plus_PersonPlacesLived extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $primary; public $value; @@ -3690,6 +3771,8 @@ public function getValue() class Google_Service_Plus_PersonUrls extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $label; public $type; public $value; @@ -3727,6 +3810,8 @@ public function getValue() class Google_Service_Plus_Place extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $addressType = 'Google_Service_Plus_PlaceAddress'; protected $addressDataType = ''; public $displayName; @@ -3788,6 +3873,8 @@ public function getPosition() class Google_Service_Plus_PlaceAddress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formatted; public function setFormatted($formatted) @@ -3803,6 +3890,8 @@ public function getFormatted() class Google_Service_Plus_PlacePosition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -3829,6 +3918,8 @@ public function getLongitude() class Google_Service_Plus_PlusAclentryResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $id; public $type; From 447ccf258a53b5f3e2fa61d294ecb7b3274980ae Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:50 -0700 Subject: [PATCH 0284/1274] Updated Prediction.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Prediction.php | 57 ++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index 4c874b9b0..b0745f965 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -364,6 +364,8 @@ public function update($project, $id, Google_Service_Prediction_Update $postBody class Google_Service_Prediction_Analyze extends Google_Collection { protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; protected $dataDescriptionDataType = ''; public $errors; @@ -437,6 +439,8 @@ public function getSelfLink() class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection { protected $collection_key = 'features'; + protected $internal_gapi_mappings = array( + ); protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; protected $featuresDataType = 'array'; protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; @@ -465,6 +469,8 @@ public function getOutputFeature() class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical'; protected $categoricalDataType = ''; public $index; @@ -517,6 +523,8 @@ public function getText() class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection { protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); public $count; protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; protected $valuesDataType = 'array'; @@ -544,6 +552,8 @@ public function getValues() class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $value; @@ -570,6 +580,8 @@ public function getValue() class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $mean; public $variance; @@ -607,6 +619,8 @@ public function getVariance() class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public function setCount($count) @@ -623,6 +637,8 @@ public function getCount() class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection { protected $collection_key = 'text'; + protected $internal_gapi_mappings = array( + ); protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; protected $numericDataType = ''; protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; @@ -651,6 +667,8 @@ public function getText() class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $mean; public $variance; @@ -688,6 +706,8 @@ public function getVariance() class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $value; @@ -714,11 +734,14 @@ public function getValue() class Google_Service_Prediction_AnalyzeErrors extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $confusionMatrix; public $confusionMatrixRowTotals; protected $modelinfoType = 'Google_Service_Prediction_Insert2'; @@ -757,21 +780,26 @@ public function getModelinfo() class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Prediction_Input extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $inputType = 'Google_Service_Prediction_InputInput'; protected $inputDataType = ''; @@ -789,6 +817,8 @@ public function getInput() class Google_Service_Prediction_InputInput extends Google_Collection { protected $collection_key = 'csvInstance'; + protected $internal_gapi_mappings = array( + ); public $csvInstance; public function setCsvInstance($csvInstance) @@ -805,6 +835,8 @@ public function getCsvInstance() class Google_Service_Prediction_Insert extends Google_Collection { protected $collection_key = 'utility'; + protected $internal_gapi_mappings = array( + ); public $id; public $modelType; public $sourceModel; @@ -898,6 +930,8 @@ public function getUtility() class Google_Service_Prediction_Insert2 extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $created; public $id; public $kind; @@ -1024,6 +1058,8 @@ public function getTrainingStatus() class Google_Service_Prediction_Insert2ModelInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $classWeightedAccuracy; public $classificationAccuracy; public $meanSquaredError; @@ -1095,6 +1131,8 @@ public function getNumberLabels() class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection { protected $collection_key = 'csvInstance'; + protected $internal_gapi_mappings = array( + ); public $csvInstance; public $output; @@ -1121,12 +1159,15 @@ public function getOutput() class Google_Service_Prediction_InsertUtility extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Prediction_Output extends Google_Collection { protected $collection_key = 'outputMulti'; + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $outputLabel; @@ -1198,6 +1239,8 @@ public function getSelfLink() class Google_Service_Prediction_OutputOutputMulti extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $label; public $score; @@ -1225,6 +1268,8 @@ public function getScore() class Google_Service_Prediction_PredictionList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Prediction_Insert2'; protected $itemsDataType = 'array'; public $kind; @@ -1275,6 +1320,8 @@ public function getSelfLink() class Google_Service_Prediction_Update extends Google_Collection { protected $collection_key = 'csvInstance'; + protected $internal_gapi_mappings = array( + ); public $csvInstance; public $output; From 16bf0216aed0744af73f3f463d6276c884dc347b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:50 -0700 Subject: [PATCH 0285/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 51 +++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 4b602596e..eee52a366 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -268,6 +268,8 @@ public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRel class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $authUri; public $captchaRequired; public $forExistingProvider; @@ -338,6 +340,8 @@ public function getRegistered() class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -354,6 +358,8 @@ public function getKind() class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; @@ -393,6 +399,8 @@ public function getUsers() class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; protected $usersDataType = 'array'; @@ -420,6 +428,8 @@ public function getUsers() class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $oobCode; @@ -446,6 +456,8 @@ public function getOobCode() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $appId; public $clientId; public $context; @@ -538,6 +550,8 @@ public function getProviderId() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $localId; public function setLocalId($localId) @@ -553,6 +567,8 @@ public function getLocalId() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $maxResults; public $nextPageToken; @@ -580,6 +596,8 @@ public function getNextPageToken() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection { protected $collection_key = 'localId'; + protected $internal_gapi_mappings = array( + ); public $email; public $idToken; public $localId; @@ -617,11 +635,14 @@ public function getLocalId() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $email; public $newPassword; public $oldPassword; @@ -671,6 +692,8 @@ public function getOobCode() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection { protected $collection_key = 'provider'; + protected $internal_gapi_mappings = array( + ); public $captchaChallenge; public $captchaResponse; public $displayName; @@ -797,6 +820,8 @@ public function getUpgradeToFederatedLogin() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); public $hashAlgorithm; public $memoryCost; public $rounds; @@ -868,6 +893,8 @@ public function getUsers() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $pendingIdToken; public $postBody; public $requestUri; @@ -905,6 +932,8 @@ public function getRequestUri() class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $captchaChallenge; public $captchaResponse; public $email; @@ -964,6 +993,8 @@ public function getPendingIdToken() class Google_Service_IdentityToolkit_Relyingparty extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $captchaResp; public $challenge; public $email; @@ -1056,6 +1087,8 @@ public function getUserIp() class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $email; public $kind; @@ -1083,6 +1116,8 @@ public function getKind() class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection { protected $collection_key = 'providerUserInfo'; + protected $internal_gapi_mappings = array( + ); public $displayName; public $email; public $idToken; @@ -1143,6 +1178,8 @@ public function getProviderUserInfo() class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $photoUrl; public $providerId; @@ -1181,6 +1218,8 @@ public function getProviderId() class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection { protected $collection_key = 'error'; + protected $internal_gapi_mappings = array( + ); protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError'; protected $errorDataType = 'array'; public $kind; @@ -1208,6 +1247,8 @@ public function getKind() class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $index; public $message; @@ -1235,6 +1276,8 @@ public function getMessage() class Google_Service_IdentityToolkit_UserInfo extends Google_Collection { protected $collection_key = 'providerUserInfo'; + protected $internal_gapi_mappings = array( + ); public $displayName; public $email; public $emailVerified; @@ -1350,6 +1393,8 @@ public function getVersion() class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $federatedId; public $photoUrl; @@ -1399,6 +1444,8 @@ public function getProviderId() class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection { protected $collection_key = 'verifiedProvider'; + protected $internal_gapi_mappings = array( + ); public $action; public $appInstallationUrl; public $appScheme; @@ -1700,6 +1747,8 @@ public function getVerifiedProvider() class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $email; public $idToken; From a3e7f04fbf1dcbe3fa9b3d3e1bffa74acc30d356 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:51 -0700 Subject: [PATCH 0286/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 92 ++++++++++++++++++++++++++++++++++-- 1 file changed, 88 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 1bc3b9eda..291a60912 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -2538,6 +2538,8 @@ public function update($fileId, $revisionId, Google_Service_Drive_Revision $post class Google_Service_Drive_About extends Google_Collection { protected $collection_key = 'quotaBytesByService'; + protected $internal_gapi_mappings = array( + ); protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; protected $additionalRoleInfoDataType = 'array'; public $domainSharingPolicy; @@ -2803,6 +2805,8 @@ public function getUser() class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection { protected $collection_key = 'roleSets'; + protected $internal_gapi_mappings = array( + ); protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; protected $roleSetsDataType = 'array'; public $type; @@ -2831,6 +2835,8 @@ public function getType() class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection { protected $collection_key = 'additionalRoles'; + protected $internal_gapi_mappings = array( + ); public $additionalRoles; public $primaryRole; @@ -2858,6 +2864,8 @@ public function getPrimaryRole() class Google_Service_Drive_AboutExportFormats extends Google_Collection { protected $collection_key = 'targets'; + protected $internal_gapi_mappings = array( + ); public $source; public $targets; @@ -2884,6 +2892,8 @@ public function getTargets() class Google_Service_Drive_AboutFeatures extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $featureName; public $featureRate; @@ -2911,6 +2921,8 @@ public function getFeatureRate() class Google_Service_Drive_AboutImportFormats extends Google_Collection { protected $collection_key = 'targets'; + protected $internal_gapi_mappings = array( + ); public $source; public $targets; @@ -2937,6 +2949,8 @@ public function getTargets() class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $size; public $type; @@ -2963,6 +2977,8 @@ public function getType() class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bytesUsed; public $serviceName; @@ -2990,6 +3006,8 @@ public function getServiceName() class Google_Service_Drive_App extends Google_Collection { protected $collection_key = 'secondaryMimeTypes'; + protected $internal_gapi_mappings = array( + ); public $authorized; public $createInFolderTemplate; public $createUrl; @@ -3259,6 +3277,8 @@ public function getUseByDefault() class Google_Service_Drive_AppIcons extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $category; public $iconUrl; public $size; @@ -3297,6 +3317,8 @@ public function getSize() class Google_Service_Drive_AppList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $defaultAppIds; public $etag; protected $itemsType = 'Google_Service_Drive_App'; @@ -3357,6 +3379,8 @@ public function getSelfLink() class Google_Service_Drive_Change extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $deleted; protected $fileType = 'Google_Service_Drive_DriveFile'; protected $fileDataType = ''; @@ -3440,6 +3464,8 @@ public function getSelfLink() class Google_Service_Drive_ChangeList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_Change'; protected $itemsDataType = 'array'; @@ -3522,6 +3548,8 @@ public function getSelfLink() class Google_Service_Drive_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $expiration; public $id; @@ -3636,12 +3664,15 @@ public function getType() class Google_Service_Drive_ChannelParams extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Drive_ChildList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_ChildReference'; protected $itemsDataType = 'array'; @@ -3713,6 +3744,8 @@ public function getSelfLink() class Google_Service_Drive_ChildReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $childLink; public $id; public $kind; @@ -3762,6 +3795,8 @@ public function getSelfLink() class Google_Service_Drive_Comment extends Google_Collection { protected $collection_key = 'replies'; + protected $internal_gapi_mappings = array( + ); public $anchor; protected $authorType = 'Google_Service_Drive_User'; protected $authorDataType = ''; @@ -3934,6 +3969,8 @@ public function getStatus() class Google_Service_Drive_CommentContext extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -3961,6 +3998,8 @@ public function getValue() class Google_Service_Drive_CommentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Drive_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -4021,6 +4060,8 @@ public function getSelfLink() class Google_Service_Drive_CommentReply extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $authorType = 'Google_Service_Drive_User'; protected $authorDataType = ''; public $content; @@ -4126,6 +4167,8 @@ public function getVerb() class Google_Service_Drive_CommentReplyList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Drive_CommentReply'; protected $itemsDataType = 'array'; public $kind; @@ -4187,6 +4230,8 @@ public function getSelfLink() class Google_Service_Drive_DriveFile extends Google_Collection { protected $collection_key = 'properties'; + protected $internal_gapi_mappings = array( + ); public $alternateLink; public $appDataContents; public $copyable; @@ -4753,11 +4798,14 @@ public function getWritersCanShare() class Google_Service_Drive_DriveFileExportLinks extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $aperture; public $cameraMake; public $cameraModel; @@ -4994,6 +5042,8 @@ public function getWidth() class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $altitude; public $latitude; public $longitude; @@ -5031,6 +5081,8 @@ public function getLongitude() class Google_Service_Drive_DriveFileIndexableText extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $text; public function setText($text) @@ -5046,6 +5098,8 @@ public function getText() class Google_Service_Drive_DriveFileLabels extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hidden; public $restricted; public $starred; @@ -5105,11 +5159,14 @@ public function getViewed() class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Drive_DriveFileThumbnail extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $image; public $mimeType; @@ -5136,6 +5193,8 @@ public function getMimeType() class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $durationMillis; public $height; public $width; @@ -5174,6 +5233,8 @@ public function getWidth() class Google_Service_Drive_FileList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_DriveFile'; protected $itemsDataType = 'array'; @@ -5246,6 +5307,8 @@ public function getSelfLink() class Google_Service_Drive_ParentList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_ParentReference'; protected $itemsDataType = 'array'; @@ -5295,6 +5358,8 @@ public function getSelfLink() class Google_Service_Drive_ParentReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $isRoot; public $kind; @@ -5355,6 +5420,8 @@ public function getSelfLink() class Google_Service_Drive_Permission extends Google_Collection { protected $collection_key = 'additionalRoles'; + protected $internal_gapi_mappings = array( + ); public $additionalRoles; public $authKey; public $domain; @@ -5513,6 +5580,8 @@ public function getWithLink() class Google_Service_Drive_PermissionId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; @@ -5540,6 +5609,8 @@ public function getKind() class Google_Service_Drive_PermissionList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_Permission'; protected $itemsDataType = 'array'; @@ -5589,6 +5660,8 @@ public function getSelfLink() class Google_Service_Drive_Property extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $key; public $kind; @@ -5660,6 +5733,8 @@ public function getVisibility() class Google_Service_Drive_PropertyList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_Property'; protected $itemsDataType = 'array'; @@ -5709,6 +5784,8 @@ public function getSelfLink() class Google_Service_Drive_Revision extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $downloadUrl; public $etag; public $exportLinks; @@ -5912,12 +5989,15 @@ public function getSelfLink() class Google_Service_Drive_RevisionExportLinks extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Drive_RevisionList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Drive_Revision'; protected $itemsDataType = 'array'; @@ -5967,6 +6047,8 @@ public function getSelfLink() class Google_Service_Drive_User extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $displayName; public $emailAddress; public $isAuthenticatedUser; @@ -6038,6 +6120,8 @@ public function getPicture() class Google_Service_Drive_UserPicture extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $url; public function setUrl($url) From 0a2d3df3a7fdfecd67b7b53f4c0ba0f60e4ebc56 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:51 -0700 Subject: [PATCH 0287/1274] Updated Urlshortener.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Urlshortener.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index 010529494..2ac1b6a32 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -160,6 +160,8 @@ public function listUrl($optParams = array()) class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection { protected $collection_key = 'referrers'; + protected $internal_gapi_mappings = array( + ); protected $browsersType = 'Google_Service_Urlshortener_StringCount'; protected $browsersDataType = 'array'; protected $countriesType = 'Google_Service_Urlshortener_StringCount'; @@ -234,6 +236,8 @@ public function getShortUrlClicks() class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; protected $allTimeDataType = ''; protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; @@ -298,6 +302,8 @@ public function getWeek() class Google_Service_Urlshortener_StringCount extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $id; @@ -324,6 +330,8 @@ public function getId() class Google_Service_Urlshortener_Url extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary'; protected $analyticsDataType = ''; public $created; @@ -396,6 +404,8 @@ public function getStatus() class Google_Service_Urlshortener_UrlHistory extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Urlshortener_Url'; protected $itemsDataType = 'array'; public $itemsPerPage; From 6d7f130fe50033ce44c54461578cb36febd0bfd6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:51 -0700 Subject: [PATCH 0288/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 8e2e3cf3f..d56fdf93d 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -1212,6 +1212,8 @@ public function untrash($userId, $id, $optParams = array()) class Google_Service_Gmail_Draft extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; protected $messageType = 'Google_Service_Gmail_Message'; protected $messageDataType = ''; @@ -1240,6 +1242,8 @@ public function getMessage() class Google_Service_Gmail_History extends Google_Collection { protected $collection_key = 'messages'; + protected $internal_gapi_mappings = array( + ); public $id; protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; @@ -1267,6 +1271,8 @@ public function getMessages() class Google_Service_Gmail_Label extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $labelListVisibility; public $messageListVisibility; @@ -1327,6 +1333,8 @@ public function getType() class Google_Service_Gmail_ListDraftsResponse extends Google_Collection { protected $collection_key = 'drafts'; + protected $internal_gapi_mappings = array( + ); protected $draftsType = 'Google_Service_Gmail_Draft'; protected $draftsDataType = 'array'; public $nextPageToken; @@ -1366,6 +1374,8 @@ public function getResultSizeEstimate() class Google_Service_Gmail_ListHistoryResponse extends Google_Collection { protected $collection_key = 'history'; + protected $internal_gapi_mappings = array( + ); protected $historyType = 'Google_Service_Gmail_History'; protected $historyDataType = 'array'; public $historyId; @@ -1405,6 +1415,8 @@ public function getNextPageToken() class Google_Service_Gmail_ListLabelsResponse extends Google_Collection { protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); protected $labelsType = 'Google_Service_Gmail_Label'; protected $labelsDataType = 'array'; @@ -1422,6 +1434,8 @@ public function getLabels() class Google_Service_Gmail_ListMessagesResponse extends Google_Collection { protected $collection_key = 'messages'; + protected $internal_gapi_mappings = array( + ); protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; public $nextPageToken; @@ -1461,6 +1475,8 @@ public function getResultSizeEstimate() class Google_Service_Gmail_ListThreadsResponse extends Google_Collection { protected $collection_key = 'threads'; + protected $internal_gapi_mappings = array( + ); public $nextPageToken; public $resultSizeEstimate; protected $threadsType = 'Google_Service_Gmail_Thread'; @@ -1500,6 +1516,8 @@ public function getThreads() class Google_Service_Gmail_Message extends Google_Collection { protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); public $historyId; public $id; public $labelIds; @@ -1594,6 +1612,8 @@ public function getThreadId() class Google_Service_Gmail_MessagePart extends Google_Collection { protected $collection_key = 'parts'; + protected $internal_gapi_mappings = array( + ); protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; protected $bodyDataType = ''; public $filename; @@ -1667,6 +1687,8 @@ public function getParts() class Google_Service_Gmail_MessagePartBody extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $attachmentId; public $data; public $size; @@ -1704,6 +1726,8 @@ public function getSize() class Google_Service_Gmail_MessagePartHeader extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $value; @@ -1731,6 +1755,8 @@ public function getValue() class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection { protected $collection_key = 'removeLabelIds'; + protected $internal_gapi_mappings = array( + ); public $addLabelIds; public $removeLabelIds; @@ -1758,6 +1784,8 @@ public function getRemoveLabelIds() class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection { protected $collection_key = 'removeLabelIds'; + protected $internal_gapi_mappings = array( + ); public $addLabelIds; public $removeLabelIds; @@ -1785,6 +1813,8 @@ public function getRemoveLabelIds() class Google_Service_Gmail_Thread extends Google_Collection { protected $collection_key = 'messages'; + protected $internal_gapi_mappings = array( + ); public $historyId; public $id; protected $messagesType = 'Google_Service_Gmail_Message'; From 29af82b05f9f23e567f6141a05fe78d8f27643e3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:52 -0700 Subject: [PATCH 0289/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 0ed662742..cc07873bc 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -706,6 +706,8 @@ public function update($accountId, $configId, Google_Service_AdExchangeBuyer_Pre class Google_Service_AdExchangeBuyer_Account extends Google_Collection { protected $collection_key = 'bidderLocation'; + protected $internal_gapi_mappings = array( + ); protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation'; protected $bidderLocationDataType = 'array'; public $cookieMatchingNid; @@ -777,6 +779,8 @@ public function getMaximumTotalQps() class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $maximumQps; public $region; public $url; @@ -815,6 +819,8 @@ public function getUrl() class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeBuyer_Account'; protected $itemsDataType = 'array'; public $kind; @@ -843,6 +849,8 @@ public function getKind() class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection { protected $collection_key = 'billingId'; + protected $internal_gapi_mappings = array( + ); public $accountId; public $accountName; public $billingId; @@ -892,6 +900,8 @@ public function getKind() class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; protected $itemsDataType = 'array'; public $kind; @@ -920,6 +930,9 @@ public function getKind() class Google_Service_AdExchangeBuyer_Creative extends Google_Collection { protected $collection_key = 'vendorType'; + protected $internal_gapi_mappings = array( + "hTMLSnippet" => "HTMLSnippet", + ); public $hTMLSnippet; public $accountId; public $advertiserId; @@ -1148,6 +1161,8 @@ public function getWidth() class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection { protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); public $details; public $reason; @@ -1175,6 +1190,8 @@ public function getReason() class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection { protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); public $details; public $reason; @@ -1202,6 +1219,8 @@ public function getReason() class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection { protected $collection_key = 'reasons'; + protected $internal_gapi_mappings = array( + ); public $date; protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; protected $reasonsDataType = 'array'; @@ -1229,6 +1248,8 @@ public function getReasons() class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $filteringCount; public $filteringStatus; @@ -1256,6 +1277,8 @@ public function getFilteringStatus() class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; protected $itemsDataType = 'array'; public $kind; @@ -1294,6 +1317,8 @@ public function getNextPageToken() class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $accountId; public $advertiser; public $currencyCode; @@ -1431,6 +1456,8 @@ public function getStartTime() class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection { protected $collection_key = 'directDeals'; + protected $internal_gapi_mappings = array( + ); protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal'; protected $directDealsDataType = 'array'; public $kind; @@ -1459,6 +1486,8 @@ public function getKind() class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { protected $collection_key = 'hostedMatchStatusRate'; + protected $internal_gapi_mappings = array( + ); public $calloutStatusRate; public $cookieMatcherStatusRate; public $creativeStatusRate; @@ -1640,6 +1669,8 @@ public function getTimestamp() class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection { protected $collection_key = 'performanceReport'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; protected $performanceReportDataType = 'array'; @@ -1668,6 +1699,8 @@ public function getPerformanceReport() class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection { protected $collection_key = 'verticals'; + protected $internal_gapi_mappings = array( + ); public $billingId; public $configId; public $configName; @@ -1928,6 +1961,8 @@ public function getVerticals() class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $width; @@ -1954,6 +1989,8 @@ public function getWidth() class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $token; public $type; @@ -1981,6 +2018,8 @@ public function getType() class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; protected $itemsDataType = 'array'; public $kind; @@ -2008,6 +2047,8 @@ public function getKind() class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $token; public $type; From f8ff6bd3b8a22c6bd0cd4bb567583abc53506edb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:52 -0700 Subject: [PATCH 0290/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index da88b1808..39b6a4a69 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -605,6 +605,8 @@ public function reset($optParams = array()) class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection { protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; protected $resultsDataType = 'array'; @@ -632,6 +634,8 @@ public function getResults() class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentState; public $definitionId; public $kind; @@ -680,6 +684,8 @@ public function getUpdateOccurred() class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoMatched; public $timeMillis; @@ -706,6 +712,8 @@ public function getTimeMillis() class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentExperiencePoints; protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; protected $currentLevelDataType = ''; @@ -756,6 +764,8 @@ public function getNextLevel() class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $level; public $maxExperiencePoints; public $minExperiencePoints; @@ -793,6 +803,8 @@ public function getMinExperiencePoints() class Google_Service_GamesManagement_HiddenPlayer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $hiddenTimeMillis; public $kind; protected $playerType = 'Google_Service_GamesManagement_Player'; @@ -832,6 +844,8 @@ public function getPlayer() class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; protected $itemsDataType = 'array'; public $kind; @@ -870,6 +884,8 @@ public function getNextPageToken() class Google_Service_GamesManagement_Player extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $avatarImageUrl; public $displayName; protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; @@ -965,6 +981,8 @@ public function getTitle() class Google_Service_GamesManagement_PlayerName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $givenName; @@ -992,6 +1010,8 @@ public function getGivenName() class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection { protected $collection_key = 'resetScoreTimeSpans'; + protected $internal_gapi_mappings = array( + ); public $kind; public $resetScoreTimeSpans; From b1c79df6ab3468376136dd580d8974a61d57014a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:53 -0700 Subject: [PATCH 0291/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 92 ++++++++++++++++++++++++++++++-- 1 file changed, 89 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 045620501..70b962702 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2626,6 +2626,8 @@ public function listVerificationCodes($userKey, $optParams = array()) class Google_Service_Directory_Alias extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $alias; public $etag; public $id; @@ -2686,6 +2688,8 @@ public function getPrimaryEmail() class Google_Service_Directory_Aliases extends Google_Collection { protected $collection_key = 'aliases'; + protected $internal_gapi_mappings = array( + ); protected $aliasesType = 'Google_Service_Directory_Alias'; protected $aliasesDataType = 'array'; public $etag; @@ -2724,6 +2728,8 @@ public function getKind() class Google_Service_Directory_Asp extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $codeId; public $creationTime; public $etag; @@ -2806,6 +2812,8 @@ public function getUserKey() class Google_Service_Directory_Asps extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Directory_Asp'; protected $itemsDataType = 'array'; @@ -2844,6 +2852,8 @@ public function getKind() class Google_Service_Directory_Channel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $expiration; public $id; @@ -2958,12 +2968,15 @@ public function getType() class Google_Service_Directory_ChannelParams extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Directory_ChromeOsDevice extends Google_Collection { protected $collection_key = 'recentUsers'; + protected $internal_gapi_mappings = array( + ); public $annotatedLocation; public $annotatedUser; public $bootMode; @@ -3222,6 +3235,8 @@ public function getWillAutoRenew() class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $email; public $type; @@ -3249,6 +3264,8 @@ public function getType() class Google_Service_Directory_ChromeOsDevices extends Google_Collection { protected $collection_key = 'chromeosdevices'; + protected $internal_gapi_mappings = array( + ); protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; protected $chromeosdevicesDataType = 'array'; public $etag; @@ -3299,6 +3316,8 @@ public function getNextPageToken() class Google_Service_Directory_Group extends Google_Collection { protected $collection_key = 'nonEditableAliases'; + protected $internal_gapi_mappings = array( + ); public $adminCreated; public $aliases; public $description; @@ -3414,6 +3433,8 @@ public function getNonEditableAliases() class Google_Service_Directory_Groups extends Google_Collection { protected $collection_key = 'groups'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $groupsType = 'Google_Service_Directory_Group'; protected $groupsDataType = 'array'; @@ -3463,6 +3484,8 @@ public function getNextPageToken() class Google_Service_Directory_Member extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $email; public $etag; public $id; @@ -3534,6 +3557,8 @@ public function getType() class Google_Service_Directory_Members extends Google_Collection { protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; protected $membersType = 'Google_Service_Directory_Member'; @@ -3584,6 +3609,8 @@ public function getNextPageToken() class Google_Service_Directory_MobileDevice extends Google_Collection { protected $collection_key = 'name'; + protected $internal_gapi_mappings = array( + ); protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; protected $applicationsDataType = 'array'; public $basebandVersion; @@ -3875,6 +3902,8 @@ public function getWifiMacAddress() class Google_Service_Directory_MobileDeviceAction extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $action; public function setAction($action) @@ -3891,6 +3920,8 @@ public function getAction() class Google_Service_Directory_MobileDeviceApplications extends Google_Collection { protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); public $displayName; public $packageName; public $permission; @@ -3951,6 +3982,8 @@ public function getVersionName() class Google_Service_Directory_MobileDevices extends Google_Collection { protected $collection_key = 'mobiledevices'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; @@ -4000,6 +4033,8 @@ public function getNextPageToken() class Google_Service_Directory_Notification extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $body; public $etag; public $fromAddress; @@ -4093,6 +4128,8 @@ public function getSubject() class Google_Service_Directory_Notifications extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Directory_Notification'; protected $itemsDataType = 'array'; @@ -4153,6 +4190,8 @@ public function getUnreadNotificationsCount() class Google_Service_Directory_OrgUnit extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $blockInheritance; public $description; public $etag; @@ -4235,6 +4274,8 @@ public function getParentOrgUnitPath() class Google_Service_Directory_OrgUnits extends Google_Collection { protected $collection_key = 'organizationUnits'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; @@ -4274,6 +4315,8 @@ public function getOrganizationUnits() class Google_Service_Directory_Schema extends Google_Collection { protected $collection_key = 'fields'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec'; protected $fieldsDataType = 'array'; @@ -4334,6 +4377,8 @@ public function getSchemaName() class Google_Service_Directory_SchemaFieldSpec extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $fieldId; public $fieldName; @@ -4438,6 +4483,8 @@ public function getReadAccessType() class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $maxValue; public $minValue; @@ -4465,6 +4512,8 @@ public function getMinValue() class Google_Service_Directory_Schemas extends Google_Collection { protected $collection_key = 'schemas'; + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; protected $schemasType = 'Google_Service_Directory_Schema'; @@ -4504,6 +4553,8 @@ public function getSchemas() class Google_Service_Directory_Token extends Google_Collection { protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); public $anonymous; public $clientId; public $displayText; @@ -4597,6 +4648,8 @@ public function getUserKey() class Google_Service_Directory_Tokens extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Directory_Token'; protected $itemsDataType = 'array'; @@ -4636,6 +4689,8 @@ public function getKind() class Google_Service_Directory_User extends Google_Collection { protected $collection_key = 'nonEditableAliases'; + protected $internal_gapi_mappings = array( + ); public $addresses; public $agreedToTerms; public $aliases; @@ -4993,6 +5048,8 @@ public function getThumbnailPhotoUrl() class Google_Service_Directory_UserAddress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $country; public $countryCode; public $customType; @@ -5140,16 +5197,20 @@ public function getType() class Google_Service_Directory_UserCustomProperties extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Directory_UserCustomSchemas extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Directory_UserEmail extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $address; public $customType; public $primary; @@ -5198,6 +5259,8 @@ public function getType() class Google_Service_Directory_UserExternalId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customType; public $type; public $value; @@ -5235,6 +5298,8 @@ public function getValue() class Google_Service_Directory_UserIm extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customProtocol; public $customType; public $im; @@ -5305,6 +5370,8 @@ public function getType() class Google_Service_Directory_UserMakeAdmin extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $status; public function setStatus($status) @@ -5320,6 +5387,8 @@ public function getStatus() class Google_Service_Directory_UserName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $fullName; public $givenName; @@ -5357,6 +5426,8 @@ public function getGivenName() class Google_Service_Directory_UserOrganization extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $costCenter; public $customType; public $department; @@ -5482,6 +5553,8 @@ public function getType() class Google_Service_Directory_UserPhone extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customType; public $primary; public $type; @@ -5530,6 +5603,8 @@ public function getValue() class Google_Service_Directory_UserPhoto extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $height; public $id; @@ -5622,6 +5697,8 @@ public function getWidth() class Google_Service_Directory_UserRelation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customType; public $type; public $value; @@ -5659,6 +5736,8 @@ public function getValue() class Google_Service_Directory_UserUndelete extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $orgUnitPath; public function setOrgUnitPath($orgUnitPath) @@ -5675,6 +5754,9 @@ public function getOrgUnitPath() class Google_Service_Directory_Users extends Google_Collection { protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + "triggerEvent" => "trigger_event", + ); public $etag; public $kind; public $nextPageToken; @@ -5735,6 +5817,8 @@ public function getUsers() class Google_Service_Directory_VerificationCode extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $kind; public $userId; @@ -5784,6 +5868,8 @@ public function getVerificationCode() class Google_Service_Directory_VerificationCodes extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Directory_VerificationCode'; protected $itemsDataType = 'array'; From 35ab392cb3be3b6721f1005722cfbfce4cc271e7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:53 -0700 Subject: [PATCH 0292/1274] Updated Games.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Games.php | 203 +++++++++++++++++++++++++++++++++++ 1 file changed, 203 insertions(+) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index fe72291ad..900c0466e 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -2283,6 +2283,8 @@ public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $post class Google_Service_Games_AchievementDefinition extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $achievementType; public $description; public $experiencePoints; @@ -2431,6 +2433,8 @@ public function getUnlockedIconUrl() class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_AchievementDefinition'; protected $itemsDataType = 'array'; public $kind; @@ -2469,6 +2473,8 @@ public function getNextPageToken() class Google_Service_Games_AchievementIncrementResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentSteps; public $kind; public $newlyUnlocked; @@ -2506,6 +2512,8 @@ public function getNewlyUnlocked() class Google_Service_Games_AchievementRevealResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentState; public $kind; @@ -2532,6 +2540,8 @@ public function getKind() class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentSteps; public $kind; public $newlyUnlocked; @@ -2569,6 +2579,8 @@ public function getNewlyUnlocked() class Google_Service_Games_AchievementUnlockResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $newlyUnlocked; @@ -2596,6 +2608,8 @@ public function getNewlyUnlocked() class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection { protected $collection_key = 'updates'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; protected $updatesDataType = 'array'; @@ -2624,6 +2638,8 @@ public function getUpdates() class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection { protected $collection_key = 'updatedAchievements'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; protected $updatedAchievementsDataType = 'array'; @@ -2651,6 +2667,8 @@ public function getUpdatedAchievements() class Google_Service_Games_AchievementUpdateRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $achievementId; protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement'; protected $incrementPayloadDataType = ''; @@ -2712,6 +2730,8 @@ public function getUpdateType() class Google_Service_Games_AchievementUpdateResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $achievementId; public $currentState; public $currentSteps; @@ -2782,6 +2802,8 @@ public function getUpdateOccurred() class Google_Service_Games_AggregateStats extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $kind; public $max; @@ -2841,6 +2863,8 @@ public function getSum() class Google_Service_Games_AnonymousPlayer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $avatarImageUrl; public $displayName; public $kind; @@ -2879,6 +2903,10 @@ public function getKind() class Google_Service_Games_Application extends Google_Collection { protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + "achievementCount" => "achievement_count", + "leaderboardCount" => "leaderboard_count", + ); public $achievementCount; protected $assetsType = 'Google_Service_Games_ImageAsset'; protected $assetsDataType = 'array'; @@ -3018,6 +3046,8 @@ public function getName() class Google_Service_Games_ApplicationCategory extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $primary; public $secondary; @@ -3055,6 +3085,8 @@ public function getSecondary() class Google_Service_Games_Category extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $category; public $experiencePoints; public $kind; @@ -3093,6 +3125,8 @@ public function getKind() class Google_Service_Games_CategoryListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Category'; protected $itemsDataType = 'array'; public $kind; @@ -3131,6 +3165,8 @@ public function getNextPageToken() class Google_Service_Games_EventBatchRecordFailure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $failureCause; public $kind; protected $rangeType = 'Google_Service_Games_EventPeriodRange'; @@ -3169,6 +3205,8 @@ public function getRange() class Google_Service_Games_EventChild extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $childId; public $kind; @@ -3196,6 +3234,8 @@ public function getKind() class Google_Service_Games_EventDefinition extends Google_Collection { protected $collection_key = 'childEvents'; + protected $internal_gapi_mappings = array( + ); protected $childEventsType = 'Google_Service_Games_EventChild'; protected $childEventsDataType = 'array'; public $description; @@ -3290,6 +3330,8 @@ public function getVisibility() class Google_Service_Games_EventDefinitionListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_EventDefinition'; protected $itemsDataType = 'array'; public $kind; @@ -3328,6 +3370,8 @@ public function getNextPageToken() class Google_Service_Games_EventPeriodRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $periodEndMillis; public $periodStartMillis; @@ -3366,6 +3410,8 @@ public function getPeriodStartMillis() class Google_Service_Games_EventPeriodUpdate extends Google_Collection { protected $collection_key = 'updates'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; protected $timePeriodDataType = ''; @@ -3405,6 +3451,8 @@ public function getUpdates() class Google_Service_Games_EventRecordFailure extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $eventId; public $failureCause; public $kind; @@ -3443,6 +3491,8 @@ public function getKind() class Google_Service_Games_EventRecordRequest extends Google_Collection { protected $collection_key = 'timePeriods'; + protected $internal_gapi_mappings = array( + ); public $currentTimeMillis; public $kind; public $requestId; @@ -3492,6 +3542,8 @@ public function getTimePeriods() class Google_Service_Games_EventUpdateRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $definitionId; public $kind; public $updateCount; @@ -3530,6 +3582,8 @@ public function getUpdateCount() class Google_Service_Games_EventUpdateResponse extends Google_Collection { protected $collection_key = 'playerEvents'; + protected $internal_gapi_mappings = array( + ); protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; protected $batchFailuresDataType = 'array'; protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; @@ -3581,6 +3635,8 @@ public function getPlayerEvents() class Google_Service_Games_GamesAchievementIncrement extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $requestId; public $steps; @@ -3618,6 +3674,8 @@ public function getSteps() class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $steps; @@ -3644,6 +3702,8 @@ public function getSteps() class Google_Service_Games_ImageAsset extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $kind; public $name; @@ -3703,6 +3763,8 @@ public function getWidth() class Google_Service_Games_Instance extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $acquisitionUri; protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; protected $androidInstanceDataType = ''; @@ -3809,6 +3871,8 @@ public function getWebInstance() class Google_Service_Games_InstanceAndroidDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $enablePiracyCheck; public $kind; public $packageName; @@ -3857,6 +3921,8 @@ public function getPreferred() class Google_Service_Games_InstanceIosDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $bundleIdentifier; public $itunesAppId; public $kind; @@ -3938,6 +4004,8 @@ public function getSupportIphone() class Google_Service_Games_InstanceWebDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $launchUrl; public $preferred; @@ -3975,6 +4043,8 @@ public function getPreferred() class Google_Service_Games_Leaderboard extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $iconUrl; public $id; public $isIconUrlDefault; @@ -4045,6 +4115,8 @@ public function getOrder() class Google_Service_Games_LeaderboardEntry extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formattedScore; public $formattedScoreRank; public $kind; @@ -4150,6 +4222,8 @@ public function getWriteTimestampMillis() class Google_Service_Games_LeaderboardListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Leaderboard'; protected $itemsDataType = 'array'; public $kind; @@ -4188,6 +4262,8 @@ public function getNextPageToken() class Google_Service_Games_LeaderboardScoreRank extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formattedNumScores; public $formattedRank; public $kind; @@ -4248,6 +4324,8 @@ public function getRank() class Google_Service_Games_LeaderboardScores extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; protected $itemsDataType = 'array'; public $kind; @@ -4321,6 +4399,8 @@ public function getPrevPageToken() class Google_Service_Games_MetagameConfig extends Google_Collection { protected $collection_key = 'playerLevels'; + protected $internal_gapi_mappings = array( + ); public $currentVersion; public $kind; protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; @@ -4359,6 +4439,8 @@ public function getPlayerLevels() class Google_Service_Games_NetworkDiagnostics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $androidNetworkSubtype; public $androidNetworkType; public $iosNetworkType; @@ -4440,6 +4522,8 @@ public function getRegistrationLatencyMillis() class Google_Service_Games_ParticipantResult extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $participantId; public $placing; @@ -4488,6 +4572,8 @@ public function getResult() class Google_Service_Games_PeerChannelDiagnostics extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; protected $bytesReceivedDataType = ''; protected $bytesSentType = 'Google_Service_Games_AggregateStats'; @@ -4583,6 +4669,8 @@ public function getRoundtripLatencyMillis() class Google_Service_Games_PeerSessionDiagnostics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $connectedTimestampMillis; public $kind; public $participantId; @@ -4644,6 +4732,8 @@ public function getUnreliableChannel() class Google_Service_Games_Played extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoMatched; public $kind; public $timeMillis; @@ -4681,6 +4771,8 @@ public function getTimeMillis() class Google_Service_Games_Player extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $avatarImageUrl; public $displayName; protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; @@ -4776,6 +4868,8 @@ public function getTitle() class Google_Service_Games_PlayerAchievement extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $achievementState; public $currentSteps; public $experiencePoints; @@ -4858,6 +4952,8 @@ public function getLastUpdatedTimestamp() class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_PlayerAchievement'; protected $itemsDataType = 'array'; public $kind; @@ -4896,6 +4992,8 @@ public function getNextPageToken() class Google_Service_Games_PlayerEvent extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $definitionId; public $formattedNumEvents; public $kind; @@ -4956,6 +5054,8 @@ public function getPlayerId() class Google_Service_Games_PlayerEventListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_PlayerEvent'; protected $itemsDataType = 'array'; public $kind; @@ -4994,6 +5094,8 @@ public function getNextPageToken() class Google_Service_Games_PlayerExperienceInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currentExperiencePoints; protected $currentLevelType = 'Google_Service_Games_PlayerLevel'; protected $currentLevelDataType = ''; @@ -5055,6 +5157,9 @@ public function getNextLevel() class Google_Service_Games_PlayerLeaderboardScore extends Google_Model { + protected $internal_gapi_mappings = array( + "leaderboardId" => "leaderboard_id", + ); public $kind; public $leaderboardId; protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; @@ -5161,6 +5266,8 @@ public function getWriteTimestamp() class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; protected $itemsDataType = 'array'; public $kind; @@ -5211,6 +5318,8 @@ public function getPlayer() class Google_Service_Games_PlayerLevel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $level; public $maxExperiencePoints; @@ -5260,6 +5369,8 @@ public function getMinExperiencePoints() class Google_Service_Games_PlayerListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Player'; protected $itemsDataType = 'array'; public $kind; @@ -5298,6 +5409,8 @@ public function getNextPageToken() class Google_Service_Games_PlayerName extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $familyName; public $givenName; @@ -5324,6 +5437,8 @@ public function getGivenName() class Google_Service_Games_PlayerScore extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formattedScore; public $kind; public $score; @@ -5384,6 +5499,8 @@ public function getTimeSpan() class Google_Service_Games_PlayerScoreListResponse extends Google_Collection { protected $collection_key = 'submittedScores'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; protected $submittedScoresDataType = 'array'; @@ -5412,6 +5529,8 @@ public function getSubmittedScores() class Google_Service_Games_PlayerScoreResponse extends Google_Collection { protected $collection_key = 'unbeatenScores'; + protected $internal_gapi_mappings = array( + ); public $beatenScoreTimeSpans; public $formattedScore; public $kind; @@ -5484,6 +5603,8 @@ public function getUnbeatenScores() class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection { protected $collection_key = 'scores'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $scoresType = 'Google_Service_Games_ScoreSubmission'; protected $scoresDataType = 'array'; @@ -5511,6 +5632,8 @@ public function getScores() class Google_Service_Games_PushToken extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $clientRevision; protected $idType = 'Google_Service_Games_PushTokenId'; protected $idDataType = ''; @@ -5560,6 +5683,8 @@ public function getLanguage() class Google_Service_Games_PushTokenId extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $iosType = 'Google_Service_Games_PushTokenIdIos'; protected $iosDataType = ''; public $kind; @@ -5587,6 +5712,10 @@ public function getKind() class Google_Service_Games_PushTokenIdIos extends Google_Model { + protected $internal_gapi_mappings = array( + "apnsDeviceToken" => "apns_device_token", + "apnsEnvironment" => "apns_environment", + ); public $apnsDeviceToken; public $apnsEnvironment; @@ -5614,6 +5743,8 @@ public function getApnsEnvironment() class Google_Service_Games_Quest extends Google_Collection { protected $collection_key = 'milestones'; + protected $internal_gapi_mappings = array( + ); public $acceptedTimestampMillis; public $applicationId; public $bannerUrl; @@ -5795,6 +5926,8 @@ public function getState() class Google_Service_Games_QuestContribution extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formattedValue; public $kind; public $value; @@ -5832,6 +5965,8 @@ public function getValue() class Google_Service_Games_QuestCriterion extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $completionContributionType = 'Google_Service_Games_QuestContribution'; protected $completionContributionDataType = ''; protected $currentContributionType = 'Google_Service_Games_QuestContribution'; @@ -5895,6 +6030,8 @@ public function getKind() class Google_Service_Games_QuestListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Quest'; protected $itemsDataType = 'array'; public $kind; @@ -5934,6 +6071,8 @@ public function getNextPageToken() class Google_Service_Games_QuestMilestone extends Google_Collection { protected $collection_key = 'criteria'; + protected $internal_gapi_mappings = array( + ); public $completionRewardData; protected $criteriaType = 'Google_Service_Games_QuestCriterion'; protected $criteriaDataType = 'array'; @@ -5994,6 +6133,8 @@ public function getState() class Google_Service_Games_RevisionCheckResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $apiVersion; public $kind; public $revisionStatus; @@ -6032,6 +6173,8 @@ public function getRevisionStatus() class Google_Service_Games_Room extends Google_Collection { protected $collection_key = 'participants'; + protected $internal_gapi_mappings = array( + ); public $applicationId; protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; @@ -6184,6 +6327,8 @@ public function getVariant() class Google_Service_Games_RoomAutoMatchStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $waitEstimateSeconds; @@ -6210,6 +6355,8 @@ public function getWaitEstimateSeconds() class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $exclusiveBitmask; public $kind; public $maxAutoMatchingPlayers; @@ -6258,6 +6405,8 @@ public function getMinAutoMatchingPlayers() class Google_Service_Games_RoomClientAddress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $xmppAddress; @@ -6285,6 +6434,8 @@ public function getXmppAddress() class Google_Service_Games_RoomCreateRequest extends Google_Collection { protected $collection_key = 'invitedPlayerIds'; + protected $internal_gapi_mappings = array( + ); protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; public $capabilities; @@ -6381,6 +6532,8 @@ public function getVariant() class Google_Service_Games_RoomJoinRequest extends Google_Collection { protected $collection_key = 'capabilities'; + protected $internal_gapi_mappings = array( + ); public $capabilities; protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; protected $clientAddressDataType = ''; @@ -6432,6 +6585,8 @@ public function getNetworkDiagnostics() class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection { protected $collection_key = 'peerSession'; + protected $internal_gapi_mappings = array( + ); public $androidNetworkSubtype; public $androidNetworkType; public $iosNetworkType; @@ -6525,6 +6680,8 @@ public function getSocketsUsed() class Google_Service_Games_RoomLeaveRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics'; protected $leaveDiagnosticsDataType = ''; @@ -6564,6 +6721,8 @@ public function getReason() class Google_Service_Games_RoomList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Room'; protected $itemsDataType = 'array'; public $kind; @@ -6602,6 +6761,8 @@ public function getNextPageToken() class Google_Service_Games_RoomModification extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $modifiedTimestampMillis; public $participantId; @@ -6639,6 +6800,9 @@ public function getParticipantId() class Google_Service_Games_RoomP2PStatus extends Google_Model { + protected $internal_gapi_mappings = array( + "errorReason" => "error_reason", + ); public $connectionSetupLatencyMillis; public $error; public $errorReason; @@ -6721,6 +6885,8 @@ public function getUnreliableRoundtripLatencyMillis() class Google_Service_Games_RoomP2PStatuses extends Google_Collection { protected $collection_key = 'updates'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; protected $updatesDataType = 'array'; @@ -6749,6 +6915,8 @@ public function getUpdates() class Google_Service_Games_RoomParticipant extends Google_Collection { protected $collection_key = 'capabilities'; + protected $internal_gapi_mappings = array( + ); public $autoMatched; protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; protected $autoMatchedPlayerDataType = ''; @@ -6867,6 +7035,8 @@ public function getStatus() class Google_Service_Games_RoomStatus extends Google_Collection { protected $collection_key = 'participants'; + protected $internal_gapi_mappings = array( + ); protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; protected $autoMatchingStatusDataType = ''; public $kind; @@ -6939,6 +7109,8 @@ public function getStatusVersion() class Google_Service_Games_ScoreSubmission extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $leaderboardId; public $score; @@ -6998,6 +7170,8 @@ public function getSignature() class Google_Service_Games_Snapshot extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $coverImageType = 'Google_Service_Games_SnapshotImage'; protected $coverImageDataType = ''; public $description; @@ -7113,6 +7287,9 @@ public function getUniqueName() class Google_Service_Games_SnapshotImage extends Google_Model { + protected $internal_gapi_mappings = array( + "mimeType" => "mime_type", + ); public $height; public $kind; public $mimeType; @@ -7173,6 +7350,8 @@ public function getWidth() class Google_Service_Games_SnapshotListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_Snapshot'; protected $itemsDataType = 'array'; public $kind; @@ -7211,6 +7390,8 @@ public function getNextPageToken() class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $exclusiveBitmask; public $kind; public $maxAutoMatchingPlayers; @@ -7260,6 +7441,8 @@ public function getMinAutoMatchingPlayers() class Google_Service_Games_TurnBasedMatch extends Google_Collection { protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); public $applicationId; protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; @@ -7492,6 +7675,8 @@ public function getWithParticipantId() class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection { protected $collection_key = 'invitedPlayerIds'; + protected $internal_gapi_mappings = array( + ); protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; protected $autoMatchingCriteriaDataType = ''; public $invitedPlayerIds; @@ -7552,6 +7737,8 @@ public function getVariant() class Google_Service_Games_TurnBasedMatchData extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $data; public $dataAvailable; public $kind; @@ -7589,6 +7776,8 @@ public function getKind() class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $data; public $kind; @@ -7616,6 +7805,8 @@ public function getKind() class Google_Service_Games_TurnBasedMatchList extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; protected $itemsDataType = 'array'; public $kind; @@ -7654,6 +7845,8 @@ public function getNextPageToken() class Google_Service_Games_TurnBasedMatchModification extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $modifiedTimestampMillis; public $participantId; @@ -7691,6 +7884,8 @@ public function getParticipantId() class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $autoMatched; protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; protected $autoMatchedPlayerDataType = ''; @@ -7763,6 +7958,8 @@ public function getStatus() class Google_Service_Games_TurnBasedMatchRematch extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch'; protected $previousMatchDataType = ''; @@ -7803,6 +8000,8 @@ public function getRematch() class Google_Service_Games_TurnBasedMatchResults extends Google_Collection { protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; protected $dataDataType = ''; public $kind; @@ -7854,6 +8053,8 @@ public function getResults() class Google_Service_Games_TurnBasedMatchSync extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; protected $itemsDataType = 'array'; public $kind; @@ -7904,6 +8105,8 @@ public function getNextPageToken() class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection { protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; protected $dataDataType = ''; public $kind; From 8079b2ea6cf06e63e189df0a80764d5a00669619 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:54 -0700 Subject: [PATCH 0293/1274] Updated Spectrum.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Spectrum.php | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/src/Google/Service/Spectrum.php b/src/Google/Service/Spectrum.php index c2fbbdf3b..96233f89b 100644 --- a/src/Google/Service/Spectrum.php +++ b/src/Google/Service/Spectrum.php @@ -193,6 +193,8 @@ public function verifyDevice(Google_Service_Spectrum_PawsVerifyDeviceRequest $po class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $heightType; public $heightUncertainty; @@ -230,6 +232,8 @@ public function getHeightUncertainty() class Google_Service_Spectrum_DatabaseSpec extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public $uri; @@ -257,6 +261,8 @@ public function getUri() class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection { protected $collection_key = 'databases'; + protected $internal_gapi_mappings = array( + ); protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; protected $databasesDataType = 'array'; @@ -274,6 +280,8 @@ public function getDatabases() class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection { protected $collection_key = 'frequencyRanges'; + protected $internal_gapi_mappings = array( + ); protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; @@ -291,6 +299,8 @@ public function getFrequencyRanges() class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection { protected $collection_key = 'rulesetIds'; + protected $internal_gapi_mappings = array( + ); public $etsiEnDeviceCategory; public $etsiEnDeviceEmissionsClass; public $etsiEnDeviceType; @@ -405,6 +415,8 @@ public function getSerialNumber() class Google_Service_Spectrum_DeviceOwner extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $operatorType = 'Google_Service_Spectrum_Vcard'; protected $operatorDataType = ''; protected $ownerType = 'Google_Service_Spectrum_Vcard'; @@ -433,6 +445,8 @@ public function getOwner() class Google_Service_Spectrum_DeviceValidity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescDataType = ''; public $isValid; @@ -471,6 +485,8 @@ public function getReason() class Google_Service_Spectrum_EventTime extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $startTime; public $stopTime; @@ -497,6 +513,8 @@ public function getStopTime() class Google_Service_Spectrum_FrequencyRange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $channelId; public $maxPowerDBm; public $startHz; @@ -545,6 +563,8 @@ public function getStopHz() class Google_Service_Spectrum_GeoLocation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $confidence; protected $pointType = 'Google_Service_Spectrum_GeoLocationEllipse'; protected $pointDataType = ''; @@ -584,6 +604,8 @@ public function getRegion() class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $centerType = 'Google_Service_Spectrum_GeoLocationPoint'; protected $centerDataType = ''; public $orientation; @@ -633,6 +655,8 @@ public function getSemiMinorAxis() class Google_Service_Spectrum_GeoLocationPoint extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $latitude; public $longitude; @@ -660,6 +684,8 @@ public function getLongitude() class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection { protected $collection_key = 'exterior'; + protected $internal_gapi_mappings = array( + ); protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; protected $exteriorDataType = 'array'; @@ -677,6 +703,8 @@ public function getExterior() class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection { protected $collection_key = 'spectrumSchedules'; + protected $internal_gapi_mappings = array( + ); protected $locationType = 'Google_Service_Spectrum_GeoLocation'; protected $locationDataType = ''; protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; @@ -706,6 +734,8 @@ public function getSpectrumSchedules() class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection { protected $collection_key = 'locations'; + protected $internal_gapi_mappings = array( + ); protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; protected $antennaDataType = ''; protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; @@ -816,6 +846,8 @@ public function getVersion() class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection { protected $collection_key = 'geoSpectrumSchedules'; + protected $internal_gapi_mappings = array( + ); protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; @@ -945,6 +977,8 @@ public function getVersion() class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; protected $antennaDataType = ''; protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; @@ -1055,6 +1089,8 @@ public function getVersion() class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection { protected $collection_key = 'spectrumSchedules'; + protected $internal_gapi_mappings = array( + ); protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; @@ -1184,6 +1220,8 @@ public function getVersion() class Google_Service_Spectrum_PawsInitRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescDataType = ''; protected $locationType = 'Google_Service_Spectrum_GeoLocation'; @@ -1234,6 +1272,8 @@ public function getVersion() class Google_Service_Spectrum_PawsInitResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; public $kind; @@ -1296,6 +1336,8 @@ public function getVersion() class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection { protected $collection_key = 'spectra'; + protected $internal_gapi_mappings = array( + ); protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescDataType = ''; protected $locationType = 'Google_Service_Spectrum_GeoLocation'; @@ -1358,6 +1400,8 @@ public function getVersion() class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $type; public $version; @@ -1395,6 +1439,8 @@ public function getVersion() class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; protected $antennaDataType = ''; protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; @@ -1469,6 +1515,8 @@ public function getVersion() class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; public $kind; @@ -1519,6 +1567,8 @@ public function getVersion() class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection { protected $collection_key = 'deviceDescs'; + protected $internal_gapi_mappings = array( + ); protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor'; protected $deviceDescsDataType = 'array'; public $type; @@ -1558,6 +1608,8 @@ public function getVersion() class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection { protected $collection_key = 'deviceValidities'; + protected $internal_gapi_mappings = array( + ); protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; protected $databaseChangeDataType = ''; protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity'; @@ -1620,6 +1672,8 @@ public function getVersion() class Google_Service_Spectrum_RulesetInfo extends Google_Collection { protected $collection_key = 'rulesetIds'; + protected $internal_gapi_mappings = array( + ); public $authority; public $maxLocationChange; public $maxPollingSecs; @@ -1669,6 +1723,8 @@ public function getRulesetIds() class Google_Service_Spectrum_SpectrumMessage extends Google_Collection { protected $collection_key = 'frequencyRanges'; + protected $internal_gapi_mappings = array( + ); public $bandwidth; protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; @@ -1697,6 +1753,8 @@ public function getFrequencyRanges() class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection { protected $collection_key = 'spectra'; + protected $internal_gapi_mappings = array( + ); protected $eventTimeType = 'Google_Service_Spectrum_EventTime'; protected $eventTimeDataType = ''; protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; @@ -1725,6 +1783,8 @@ public function getSpectra() class Google_Service_Spectrum_Vcard extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $adrType = 'Google_Service_Spectrum_VcardAddress'; protected $adrDataType = ''; protected $emailType = 'Google_Service_Spectrum_VcardTypedText'; @@ -1788,6 +1848,8 @@ public function getTel() class Google_Service_Spectrum_VcardAddress extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $country; public $locality; @@ -1858,6 +1920,8 @@ public function getStreet() class Google_Service_Spectrum_VcardTelephone extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $uri; public function setUri($uri) @@ -1873,6 +1937,8 @@ public function getUri() class Google_Service_Spectrum_VcardTypedText extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $text; public function setText($text) From 3c3ec16b6ed30146ee61db0ab0f1b9cbe27d312b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:54 -0700 Subject: [PATCH 0294/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 497b3cd63..ad5eb3893 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -489,6 +489,8 @@ public function startPaidService($customerId, $subscriptionId, $optParams = arra class Google_Service_Reseller_Address extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $addressLine1; public $addressLine2; public $addressLine3; @@ -603,6 +605,8 @@ public function getRegion() class Google_Service_Reseller_ChangePlanRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $planName; public $purchaseOrderId; @@ -652,6 +656,8 @@ public function getSeats() class Google_Service_Reseller_Customer extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $alternateEmail; public $customerDomain; public $customerId; @@ -734,6 +740,8 @@ public function getResourceUiUrl() class Google_Service_Reseller_RenewalSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $renewalType; @@ -760,6 +768,8 @@ public function getRenewalType() class Google_Service_Reseller_Seats extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $maximumNumberOfSeats; public $numberOfSeats; @@ -797,6 +807,8 @@ public function getNumberOfSeats() class Google_Service_Reseller_Subscription extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $creationTime; public $customerId; public $kind; @@ -949,6 +961,8 @@ public function getTrialSettings() class Google_Service_Reseller_SubscriptionPlan extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval'; protected $commitmentIntervalDataType = ''; public $isCommitmentPlan; @@ -987,6 +1001,8 @@ public function getPlanName() class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $endTime; public $startTime; @@ -1013,6 +1029,8 @@ public function getStartTime() class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $minimumTransferableSeats; public $transferabilityExpirationTime; @@ -1039,6 +1057,8 @@ public function getTransferabilityExpirationTime() class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $isInTrial; public $trialEndTime; @@ -1066,6 +1086,8 @@ public function getTrialEndTime() class Google_Service_Reseller_Subscriptions extends Google_Collection { protected $collection_key = 'subscriptions'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; From 28d4fe42c2af53aad91fab552ce933013ed8fa3e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:54 -0700 Subject: [PATCH 0295/1274] Updated Tasks.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tasks.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php index b7badc3ae..eacd00748 100644 --- a/src/Google/Service/Tasks.php +++ b/src/Google/Service/Tasks.php @@ -585,6 +585,8 @@ public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $o class Google_Service_Tasks_Task extends Google_Collection { protected $collection_key = 'links'; + protected $internal_gapi_mappings = array( + ); public $completed; public $deleted; public $due; @@ -755,6 +757,8 @@ public function getUpdated() class Google_Service_Tasks_TaskLinks extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $link; public $type; @@ -792,6 +796,8 @@ public function getType() class Google_Service_Tasks_TaskList extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $etag; public $id; public $kind; @@ -863,6 +869,8 @@ public function getUpdated() class Google_Service_Tasks_TaskLists extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Tasks_TaskList'; protected $itemsDataType = 'array'; @@ -913,6 +921,8 @@ public function getNextPageToken() class Google_Service_Tasks_Tasks extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_Tasks_Task'; protected $itemsDataType = 'array'; From 88395d3e770be30facfbaaf2bf311dee0a4861e0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:55 -0700 Subject: [PATCH 0296/1274] Updated Customsearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Customsearch.php | 37 ++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index 5694e9430..abb157c42 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -299,6 +299,8 @@ public function listCse($q, $optParams = array()) class Google_Service_Customsearch_Context extends Google_Collection { protected $collection_key = 'facets'; + protected $internal_gapi_mappings = array( + ); protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; protected $facetsDataType = 'array'; public $title; @@ -326,6 +328,9 @@ public function getTitle() class Google_Service_Customsearch_ContextFacets extends Google_Model { + protected $internal_gapi_mappings = array( + "labelWithOp" => "label_with_op", + ); public $anchor; public $label; public $labelWithOp; @@ -364,6 +369,8 @@ public function getLabelWithOp() class Google_Service_Customsearch_Promotion extends Google_Collection { protected $collection_key = 'bodyLines'; + protected $internal_gapi_mappings = array( + ); protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; protected $bodyLinesDataType = 'array'; public $displayLink; @@ -436,6 +443,8 @@ public function getTitle() class Google_Service_Customsearch_PromotionBodyLines extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $htmlTitle; public $link; public $title; @@ -484,6 +493,8 @@ public function getUrl() class Google_Service_Customsearch_PromotionImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $height; public $source; public $width; @@ -521,6 +532,8 @@ public function getWidth() class Google_Service_Customsearch_Query extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $cr; public $cref; @@ -933,6 +946,8 @@ public function getTotalResults() class Google_Service_Customsearch_Result extends Google_Collection { protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); public $cacheId; public $displayLink; public $fileFormat; @@ -1104,6 +1119,8 @@ public function getTitle() class Google_Service_Customsearch_ResultImage extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $byteSize; public $contextLink; public $height; @@ -1185,6 +1202,9 @@ public function getWidth() class Google_Service_Customsearch_ResultLabels extends Google_Model { + protected $internal_gapi_mappings = array( + "labelWithOp" => "label_with_op", + ); public $displayName; public $labelWithOp; public $name; @@ -1222,17 +1242,21 @@ public function getName() class Google_Service_Customsearch_ResultPagemap extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Customsearch_Search extends Google_Collection { protected $collection_key = 'promotions'; + protected $internal_gapi_mappings = array( + ); protected $contextType = 'Google_Service_Customsearch_Context'; protected $contextDataType = ''; protected $itemsType = 'Google_Service_Customsearch_Result'; @@ -1332,11 +1356,14 @@ public function getUrl() class Google_Service_Customsearch_SearchQueries extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Customsearch_SearchSearchInformation extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $formattedSearchTime; public $formattedTotalResults; public $searchTime; @@ -1385,6 +1412,8 @@ public function getTotalResults() class Google_Service_Customsearch_SearchSpelling extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $correctedQuery; public $htmlCorrectedQuery; @@ -1411,6 +1440,8 @@ public function getHtmlCorrectedQuery() class Google_Service_Customsearch_SearchUrl extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $template; public $type; From 9e3fc5cfa4955c63ed4085aa6e9c84b3f9fea49b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:55 -0700 Subject: [PATCH 0297/1274] Updated Datastore.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Datastore.php | 71 +++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index c6e68ae26..b7abee1d6 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -238,6 +238,8 @@ public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $p class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection { protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; @@ -255,6 +257,8 @@ public function getKeys() class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection { protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; protected $keysType = 'Google_Service_Datastore_Key'; @@ -283,6 +287,8 @@ public function getKeys() class Google_Service_Datastore_BeginTransactionRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $isolationLevel; public function setIsolationLevel($isolationLevel) @@ -298,6 +304,8 @@ public function getIsolationLevel() class Google_Service_Datastore_BeginTransactionResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; public $transaction; @@ -325,6 +333,8 @@ public function getTransaction() class Google_Service_Datastore_CommitRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $ignoreReadOnly; public $mode; protected $mutationType = 'Google_Service_Datastore_Mutation'; @@ -374,6 +384,8 @@ public function getTransaction() class Google_Service_Datastore_CommitResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; protected $mutationResultType = 'Google_Service_Datastore_MutationResult'; @@ -403,6 +415,8 @@ public function getMutationResult() class Google_Service_Datastore_CompositeFilter extends Google_Collection { protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); protected $filtersType = 'Google_Service_Datastore_Filter'; protected $filtersDataType = 'array'; public $operator; @@ -430,6 +444,8 @@ public function getOperator() class Google_Service_Datastore_Entity extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $keyType = 'Google_Service_Datastore_Key'; protected $keyDataType = ''; protected $propertiesType = 'Google_Service_Datastore_Property'; @@ -458,11 +474,14 @@ public function getProperties() class Google_Service_Datastore_EntityProperties extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Datastore_EntityResult extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $entityType = 'Google_Service_Datastore_Entity'; protected $entityDataType = ''; @@ -479,6 +498,8 @@ public function getEntity() class Google_Service_Datastore_Filter extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter'; protected $compositeFilterDataType = ''; protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter'; @@ -508,6 +529,8 @@ public function getPropertyFilter() class Google_Service_Datastore_GqlQuery extends Google_Collection { protected $collection_key = 'numberArgs'; + protected $internal_gapi_mappings = array( + ); public $allowLiteral; protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg'; protected $nameArgsDataType = 'array'; @@ -558,6 +581,8 @@ public function getQueryString() class Google_Service_Datastore_GqlQueryArg extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $cursor; public $name; protected $valueType = 'Google_Service_Datastore_Value'; @@ -597,6 +622,8 @@ public function getValue() class Google_Service_Datastore_Key extends Google_Collection { protected $collection_key = 'path'; + protected $internal_gapi_mappings = array( + ); protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; protected $partitionIdDataType = ''; protected $pathType = 'Google_Service_Datastore_KeyPathElement'; @@ -625,6 +652,8 @@ public function getPath() class Google_Service_Datastore_KeyPathElement extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -662,6 +691,8 @@ public function getName() class Google_Service_Datastore_KindExpression extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public function setName($name) @@ -678,6 +709,8 @@ public function getName() class Google_Service_Datastore_LookupRequest extends Google_Collection { protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; @@ -707,6 +740,8 @@ public function getReadOptions() class Google_Service_Datastore_LookupResponse extends Google_Collection { protected $collection_key = 'missing'; + protected $internal_gapi_mappings = array( + ); protected $deferredType = 'Google_Service_Datastore_Key'; protected $deferredDataType = 'array'; protected $foundType = 'Google_Service_Datastore_EntityResult'; @@ -760,6 +795,8 @@ public function getMissing() class Google_Service_Datastore_Mutation extends Google_Collection { protected $collection_key = 'upsert'; + protected $internal_gapi_mappings = array( + ); protected $deleteType = 'Google_Service_Datastore_Key'; protected $deleteDataType = 'array'; public $force; @@ -836,6 +873,8 @@ public function getUpsert() class Google_Service_Datastore_MutationResult extends Google_Collection { protected $collection_key = 'insertAutoIdKeys'; + protected $internal_gapi_mappings = array( + ); public $indexUpdates; protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; protected $insertAutoIdKeysDataType = 'array'; @@ -863,6 +902,8 @@ public function getInsertAutoIdKeys() class Google_Service_Datastore_PartitionId extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $datasetId; public $namespace; @@ -890,6 +931,8 @@ public function getNamespace() class Google_Service_Datastore_Property extends Google_Collection { protected $collection_key = 'listValue'; + protected $internal_gapi_mappings = array( + ); public $blobKeyValue; public $blobValue; public $booleanValue; @@ -1029,6 +1072,8 @@ public function getStringValue() class Google_Service_Datastore_PropertyExpression extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $aggregationFunction; protected $propertyType = 'Google_Service_Datastore_PropertyReference'; protected $propertyDataType = ''; @@ -1056,6 +1101,8 @@ public function getProperty() class Google_Service_Datastore_PropertyFilter extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $operator; protected $propertyType = 'Google_Service_Datastore_PropertyReference'; protected $propertyDataType = ''; @@ -1095,6 +1142,8 @@ public function getValue() class Google_Service_Datastore_PropertyOrder extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $direction; protected $propertyType = 'Google_Service_Datastore_PropertyReference'; protected $propertyDataType = ''; @@ -1122,6 +1171,8 @@ public function getProperty() class Google_Service_Datastore_PropertyReference extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $name; public function setName($name) @@ -1138,6 +1189,8 @@ public function getName() class Google_Service_Datastore_Query extends Google_Collection { protected $collection_key = 'projection'; + protected $internal_gapi_mappings = array( + ); public $endCursor; protected $filterType = 'Google_Service_Datastore_Filter'; protected $filterDataType = ''; @@ -1247,6 +1300,8 @@ public function getStartCursor() class Google_Service_Datastore_QueryResultBatch extends Google_Collection { protected $collection_key = 'entityResults'; + protected $internal_gapi_mappings = array( + ); public $endCursor; public $entityResultType; protected $entityResultsType = 'Google_Service_Datastore_EntityResult'; @@ -1307,6 +1362,8 @@ public function getSkippedResults() class Google_Service_Datastore_ReadOptions extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $readConsistency; public $transaction; @@ -1333,6 +1390,8 @@ public function getTransaction() class Google_Service_Datastore_ResponseHeader extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -1348,6 +1407,8 @@ public function getKind() class Google_Service_Datastore_RollbackRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $transaction; public function setTransaction($transaction) @@ -1363,6 +1424,8 @@ public function getTransaction() class Google_Service_Datastore_RollbackResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; @@ -1379,6 +1442,8 @@ public function getHeader() class Google_Service_Datastore_RunQueryRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery'; protected $gqlQueryDataType = ''; protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; @@ -1431,6 +1496,8 @@ public function getReadOptions() class Google_Service_Datastore_RunQueryResponse extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $batchType = 'Google_Service_Datastore_QueryResultBatch'; protected $batchDataType = ''; protected $headerType = 'Google_Service_Datastore_ResponseHeader'; @@ -1460,6 +1527,8 @@ public function getHeader() class Google_Service_Datastore_Value extends Google_Collection { protected $collection_key = 'listValue'; + protected $internal_gapi_mappings = array( + ); public $blobKeyValue; public $blobValue; public $booleanValue; From dc6baa67f82118bb6ab24685e823fffe41f36647 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:55 -0700 Subject: [PATCH 0298/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 32 +++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 1a8f2ab96..4b5c3d51c 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -139,6 +139,8 @@ public function runpagespeed($url, $optParams = array()) class Google_Service_Pagespeedonline_Result extends Google_Collection { protected $collection_key = 'invalidRules'; + protected $internal_gapi_mappings = array( + ); protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults'; protected $formattedResultsDataType = ''; public $id; @@ -257,6 +259,8 @@ public function getVersion() class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $locale; protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement'; protected $ruleResultsDataType = 'map'; @@ -284,12 +288,15 @@ public function getRuleResults() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection { protected $collection_key = 'urlBlocks'; + protected $internal_gapi_mappings = array( + ); public $localizedRuleName; public $ruleImpact; protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; @@ -329,6 +336,8 @@ public function getUrlBlocks() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection { protected $collection_key = 'urls'; + protected $internal_gapi_mappings = array( + ); protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; protected $headerDataType = ''; protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; @@ -358,6 +367,8 @@ public function getUrls() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection { protected $collection_key = 'args'; + protected $internal_gapi_mappings = array( + ); protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; protected $argsDataType = 'array'; public $format; @@ -385,6 +396,8 @@ public function getFormat() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -412,6 +425,8 @@ public function getValue() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection { protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; protected $detailsDataType = 'array'; protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; @@ -441,6 +456,8 @@ public function getResult() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection { protected $collection_key = 'args'; + protected $internal_gapi_mappings = array( + ); protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; protected $argsDataType = 'array'; public $format; @@ -468,6 +485,8 @@ public function getFormat() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -495,6 +514,8 @@ public function getValue() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection { protected $collection_key = 'args'; + protected $internal_gapi_mappings = array( + ); protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; protected $argsDataType = 'array'; public $format; @@ -522,6 +543,8 @@ public function getFormat() class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $type; public $value; @@ -548,6 +571,8 @@ public function getValue() class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $cssResponseBytes; public $flashResponseBytes; public $htmlResponseBytes; @@ -695,6 +720,9 @@ public function getTotalRequestBytes() class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model { + protected $internal_gapi_mappings = array( + "mimeType" => "mime_type", + ); public $data; public $height; public $mimeType; @@ -743,6 +771,8 @@ public function getWidth() class Google_Service_Pagespeedonline_ResultVersion extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $major; public $minor; From 91662ded00efa29ce8d75906b52d978badf7050b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:56 -0700 Subject: [PATCH 0299/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 35 +++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 43b02d2ee..2d138993b 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -378,6 +378,8 @@ public function listTimeseriesDescriptors($project, $metric, $youngest, $optPara class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -394,6 +396,8 @@ public function getKind() class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection { protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); public $kind; protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; protected $metricsDataType = 'array'; @@ -432,6 +436,8 @@ public function getNextPageToken() class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -448,6 +454,8 @@ public function getKind() class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection { protected $collection_key = 'timeseries'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; public $oldest; @@ -508,6 +516,8 @@ public function getYoungest() class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public function setKind($kind) @@ -524,6 +534,8 @@ public function getKind() class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection { protected $collection_key = 'timeseries'; + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; public $oldest; @@ -585,6 +597,8 @@ public function getYoungest() class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection { protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); public $description; protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; protected $labelsDataType = 'array'; @@ -646,6 +660,8 @@ public function getTypeDescriptor() class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $description; public $key; @@ -672,6 +688,8 @@ public function getKey() class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $metricType; public $valueType; @@ -698,6 +716,8 @@ public function getValueType() class Google_Service_CloudMonitoring_Point extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $boolValue; protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution'; protected $distributionValueDataType = ''; @@ -781,6 +801,8 @@ public function getStringValue() class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection { protected $collection_key = 'buckets'; + protected $internal_gapi_mappings = array( + ); protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; protected $bucketsDataType = 'array'; protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; @@ -821,6 +843,8 @@ public function getUnderflowBucket() class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $lowerBound; public $upperBound; @@ -858,6 +882,8 @@ public function getUpperBound() class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $lowerBound; @@ -884,6 +910,8 @@ public function getLowerBound() class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $count; public $upperBound; @@ -911,6 +939,8 @@ public function getUpperBound() class Google_Service_CloudMonitoring_Timeseries extends Google_Collection { protected $collection_key = 'points'; + protected $internal_gapi_mappings = array( + ); protected $pointsType = 'Google_Service_CloudMonitoring_Point'; protected $pointsDataType = 'array'; protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; @@ -939,6 +969,8 @@ public function getTimeseriesDesc() class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $labels; public $metric; public $project; @@ -976,5 +1008,6 @@ public function getProject() class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { - + protected $internal_gapi_mappings = array( + ); } From e5d1d21d503ce5e115101bd7672283f8ae43a910 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 30 Sep 2014 02:11:56 -0700 Subject: [PATCH 0300/1274] Updated Coordinate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Coordinate.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index f985caffa..72baf9137 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -777,6 +777,8 @@ public function listWorker($teamId, $optParams = array()) class Google_Service_Coordinate_CustomField extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $customFieldId; public $kind; public $value; @@ -814,6 +816,8 @@ public function getValue() class Google_Service_Coordinate_CustomFieldDef extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $enabled; public $id; public $kind; @@ -885,6 +889,8 @@ public function getType() class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; protected $itemsDataType = 'array'; public $kind; @@ -913,6 +919,8 @@ public function getKind() class Google_Service_Coordinate_CustomFields extends Google_Collection { protected $collection_key = 'customField'; + protected $internal_gapi_mappings = array( + ); protected $customFieldType = 'Google_Service_Coordinate_CustomField'; protected $customFieldDataType = 'array'; public $kind; @@ -941,6 +949,8 @@ public function getKind() class Google_Service_Coordinate_Job extends Google_Collection { protected $collection_key = 'jobChange'; + protected $internal_gapi_mappings = array( + ); public $id; protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; protected $jobChangeDataType = 'array'; @@ -991,6 +1001,8 @@ public function getState() class Google_Service_Coordinate_JobChange extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; protected $stateType = 'Google_Service_Coordinate_JobState'; protected $stateDataType = ''; @@ -1030,6 +1042,8 @@ public function getTimestamp() class Google_Service_Coordinate_JobListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Coordinate_Job'; protected $itemsDataType = 'array'; public $kind; @@ -1069,6 +1083,8 @@ public function getNextPageToken() class Google_Service_Coordinate_JobState extends Google_Collection { protected $collection_key = 'note'; + protected $internal_gapi_mappings = array( + ); public $assignee; protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; protected $customFieldsDataType = ''; @@ -1175,6 +1191,8 @@ public function getTitle() class Google_Service_Coordinate_Location extends Google_Collection { protected $collection_key = 'addressLine'; + protected $internal_gapi_mappings = array( + ); public $addressLine; public $kind; public $lat; @@ -1224,6 +1242,8 @@ public function getLng() class Google_Service_Coordinate_LocationListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; protected $itemsDataType = 'array'; public $kind; @@ -1274,6 +1294,8 @@ public function getTokenPagination() class Google_Service_Coordinate_LocationRecord extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $collectionTime; public $confidenceRadius; public $kind; @@ -1333,6 +1355,8 @@ public function getLongitude() class Google_Service_Coordinate_Schedule extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $allDay; public $duration; public $endTime; @@ -1392,6 +1416,8 @@ public function getStartTime() class Google_Service_Coordinate_TokenPagination extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $kind; public $nextPageToken; public $previousPageToken; @@ -1429,6 +1455,8 @@ public function getPreviousPageToken() class Google_Service_Coordinate_Worker extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; @@ -1456,6 +1484,8 @@ public function getKind() class Google_Service_Coordinate_WorkerListResponse extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_Coordinate_Worker'; protected $itemsDataType = 'array'; public $kind; From 1afb90003f6a3035d7944424f3058c582b510b8a Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 10:25:50 -0700 Subject: [PATCH 0301/1274] Fix handling for 204 with no content --- examples/batch.php | 3 ++- examples/simple-query.php | 3 ++- src/Google/IO/Abstract.php | 5 ++++- tests/general/IoTest.php | 7 +++++++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/examples/batch.php b/examples/batch.php index e02ed5569..744f318cb 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -35,7 +35,8 @@ ************************************************/ $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); -$apiKey = ""; +$apiKey = ""; // Change to your API key. +// Warn if the API key isn't changed! if ($apiKey == '') { echo missingApiKeyWarning(); } else { diff --git a/examples/simple-query.php b/examples/simple-query.php index f1d61ab31..540fdea8d 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -37,7 +37,8 @@ ************************************************/ $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); -$apiKey = ""; +$apiKey = ""; // Change this line. +// Warn if the API key isn't changed. if ($apiKey == '') { echo missingApiKeyWarning(); } diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index 4f1134211..a4025e874 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -271,7 +271,10 @@ public function parseHttpResponse($respData, $headerSize) $responseBody = substr($respData, $headerSize); $responseHeaders = substr($respData, 0, $headerSize); } else { - list($responseHeaders, $responseBody) = explode("\r\n\r\n", $respData, 2); + $responseSegments = explode("\r\n\r\n", $respData, 2); + $responseHeaders = $responseSegments[0]; + $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : + null; } $responseHeaders = $this->getHttpResponseHeaders($responseHeaders); diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index 8710f42fc..d7d41c7d2 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -236,6 +236,13 @@ public function responseChecker($io) $this->assertEquals(3, sizeof($headers)); $this->assertEquals(null, json_decode($body, true)); + // Test no content. + $rawerHeaders = "HTTP/1.1 204 No Content\r\n" + . "Date: Fri, 19 Sep 2014 15:52:14 GMT"; + list($headers, $body) = $io->parseHttpResponse($rawerHeaders, 0); + $this->assertEquals(1, sizeof($headers)); + $this->assertEquals(null, json_decode($body, true)); + // Test transforms from proxies. $connection_established_headers = array( "HTTP/1.0 200 Connection established\r\n\r\n", From 0636b1b56ee33807521f459cf0cb1422dd191b90 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 10:36:41 -0700 Subject: [PATCH 0302/1274] Use mappings when generated names don't match wire. --- src/Google/Model.php | 15 +++++++++++++++ tests/general/ApiModelTest.php | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/Google/Model.php b/src/Google/Model.php index 34904ab0f..084db5620 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -25,6 +25,7 @@ */ class Google_Model implements ArrayAccess { + protected $internal_gapi_mappings = array(); protected $modelData = array(); protected $processed = array(); @@ -126,6 +127,7 @@ public function toSimpleObject() $name = $member->getName(); $result = $this->getSimpleValue($this->$name); if ($result !== null) { + $name = $this->getMappedName($name); $object->$name = $result; } } @@ -146,6 +148,7 @@ private function getSimpleValue($value) foreach ($value as $key => $a_value) { $a_value = $this->getSimpleValue($a_value); if ($a_value !== null) { + $key = $this->getMappedName($key); $return[$key] = $a_value; } } @@ -154,6 +157,18 @@ private function getSimpleValue($value) return $value; } + /** + * If there is an internal name mapping, use that. + */ + private function getMappedName($key) + { + if (isset($this->internal_gapi_mappings) && + isset($this->internal_gapi_mappings[$key])) { + $key = $this->internal_gapi_mappings[$key]; + } + return $key; + } + /** * Returns true only if the array is associative. * @param array $array diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index b099abb6d..5cb8cc1af 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -19,6 +19,7 @@ */ require_once 'BaseTest.php'; +require_once 'Google/Service/AdExchangeBuyer.php'; require_once 'Google/Service/Calendar.php'; class ApiModelTest extends BaseTest @@ -77,6 +78,22 @@ public function testModelMutation() $this->assertEquals($summary, $simpleEvent->summary); } + public function testOddMappingNames() { + $creative = new Google_Service_AdExchangeBuyer_Creative(); + $creative->setAccountId('12345'); + $creative->setBuyerCreativeId('12345'); + $creative->setAdvertiserName('Hi'); + $creative->setHTMLSnippet("

Foo!

"); + $creative->setClickThroughUrl(array('http://somedomain.com')); + $creative->setWidth(100); + $creative->setHeight(100); + $data = json_decode(json_encode($creative->toSimpleObject()), true); + $this->assertEquals($data['HTMLSnippet'], "

Foo!

"); + $this->assertEquals($data['width'], 100); + $this->assertEquals($data['height'], 100); + $this->assertEquals($data['accountId'], "12345"); + } + public function testJsonStructure() { $model = new Google_Model(); From 9fec681f552f0fe309a6b5c399bc18f88e9516cb Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 10:51:55 -0700 Subject: [PATCH 0303/1274] Fixes undefined warnings on object subtypes --- src/Google/Model.php | 2 +- tests/general/ApiModelTest.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Google/Model.php b/src/Google/Model.php index 084db5620..2bb9a333d 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -76,7 +76,7 @@ public function __get($key) $this->processed[$key] = true; } - return $this->modelData[$key]; + return isset($this->modelData[$key]) ? $this->modelData[$key] : null; } /** diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index 5cb8cc1af..bf937387c 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -76,9 +76,13 @@ public function testModelMutation() $this->assertEquals($dateString, $simpleEvent->start->date); $this->assertEquals($dateString, $simpleEvent->end->date); $this->assertEquals($summary, $simpleEvent->summary); + + $event2 = new Google_Service_Calendar_Event(); + $this->assertNull($event2->getStart()); } - public function testOddMappingNames() { + public function testOddMappingNames() + { $creative = new Google_Service_AdExchangeBuyer_Creative(); $creative->setAccountId('12345'); $creative->setBuyerCreativeId('12345'); From 85936d30687506036013643dce585139ba625b9f Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 11:02:13 -0700 Subject: [PATCH 0304/1274] Bump version to 1.0.6 --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 12bc02288..5ca92373f 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -36,7 +36,7 @@ */ class Google_Client { - const LIBVER = "1.0.5-beta"; + const LIBVER = "1.0.6-beta"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From 8726af30d865e06ce3ae01ce3f988e79789b128e Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 11:07:15 -0700 Subject: [PATCH 0305/1274] Update README with note on non-JSON --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 693913fc4..d23c2a9ca 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,16 @@ When we started working on the 1.0.0 branch we knew there were several fundament The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. +### How do I deal with non-JSON response types ### + +Some servives return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call: + +``` +$opt_params = array( + 'alt' => "json" +); +``` + ## Code Quality ## Copy the ruleset.xml in style/ into a new directory named GAPI/ in your From f37dc74d1b38de4b27f409ac624106c01f89fe35 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 11:51:34 -0700 Subject: [PATCH 0306/1274] Update comment in config --- src/Google/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index 97e8bd375..8acb12c06 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -30,7 +30,7 @@ class Google_Config /** * Create a new Google_Config. Can accept an ini file location with the * local configuration. For example: - * application_name: "My App"; + * application_name="My App" * * @param [$ini_file_location] - optional - The location of the ini file to load */ From 68fd4cd47a5440b7b6fc4a6cfbadc1eca1c8fc6b Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 12:22:45 -0700 Subject: [PATCH 0307/1274] Update to add new auth options --- src/Google/Auth/OAuth2.php | 23 ++++++++++---- src/Google/Client.php | 46 +++++++++++++++++++++++++++- src/Google/Config.php | 53 +++++++++++++++++++++++++++++++-- tests/general/ApiOAuth2Test.php | 10 ++++++- 4 files changed, 123 insertions(+), 9 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 2fa3fd0e7..5630d755e 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -149,13 +149,14 @@ public function createAuthUrl($scope) 'client_id' => $this->client->getClassConfig($this, 'client_id'), 'scope' => $scope, 'access_type' => $this->client->getClassConfig($this, 'access_type'), - 'approval_prompt' => $this->client->getClassConfig($this, 'approval_prompt'), ); - $login_hint = $this->client->getClassConfig($this, 'login_hint'); - if ($login_hint != '') { - $params['login_hint'] = $login_hint; - } + $params = $this->maybeAddParam($params, 'approval_prompt'); + $params = $this->maybeAddParam($params, 'login_hint'); + $params = $this->maybeAddParam($params, 'hd'); + $params = $this->maybeAddParam($params, 'openid.realm'); + $params = $this->maybeAddParam($params, 'prompt'); + $params = $this->maybeAddParam($params, 'include_granted_scopes'); // If the list of scopes contains plus.login, add request_visible_actions // to auth URL. @@ -604,4 +605,16 @@ public function verifySignedJwtWithCerts( // All good. return new Google_Auth_LoginTicket($envelope, $payload); } + + /** + * Add a parameter to the auth params if not empty string. + */ + private function maybeAddParam($params, $name) + { + $param = $this->client->getClassConfig($this, $name); + if ($param != '') { + $params[$name] = $param; + } + return $params; + } } diff --git a/src/Google/Client.php b/src/Google/Client.php index 5ca92373f..e15b4f4ea 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -247,7 +247,7 @@ public function getAccessToken() // in the library. return (null == $token || 'null' == $token || '[]' == $token) ? null : $token; } - + /** * Get the OAuth 2.0 refresh token. * @return string $refreshToken refresh token or null if not available @@ -367,6 +367,50 @@ public function setDeveloperKey($developerKey) $this->config->setDeveloperKey($developerKey); } + /** + * Set the hd (hosted domain) parameter streamlines the login process for + * Google Apps hosted accounts. By including the domain of the user, you + * restrict sign-in to accounts at that domain. + * @param $hd string - the domain to use. + */ + public function setHostedDomain($hd) + { + $this->config->setHostedDomain($hd); + } + + /** + * Set the prompt hint. Valid values are none, consent and select_account. + * If no value is specified and the user has not previously authorized + * access, then the user is shown a consent screen. + * @param $prompt string + */ + public function setPrompt($prompt) + { + $this->config->setPrompt($prompt); + } + + /** + * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth + * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which + * an authentication request is valid. + * @param $realm string - the URL-space to use. + */ + public function setOpenidRealm($realm) + { + $this->config->setOpenidRealm($realm); + } + + /** + * If this is provided with the value true, and the authorization request is + * granted, the authorization will include any previous authorizations + * granted to this user/application combination for other scopes. + * @param $include boolean - the URL-space to use. + */ + public function setIncludeGrantedScopes($include) + { + $this->config->setIncludeGrantedScopes($include); + } + /** * Fetches a fresh OAuth 2.0 access token with the given refresh token. * @param string $refreshToken diff --git a/src/Google/Config.php b/src/Google/Config.php index 8acb12c06..ef7aace12 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -78,10 +78,14 @@ public function __construct($ini_file_location = null) 'developer_key' => '', // Other parameters. - 'access_type' => 'online', - 'approval_prompt' => 'auto', + 'hd' => '', + 'prompt' => '', + 'openid.realm' => '', + 'include_granted_scopes' => '', 'login_hint' => '', 'request_visible_actions' => '', + 'access_type' => 'online', + 'approval_prompt' => 'auto', 'federated_signon_certs_url' => 'https://www.googleapis.com/oauth2/v1/certs', ), @@ -297,6 +301,51 @@ public function setDeveloperKey($key) $this->setAuthConfig('developer_key', $key); } + /** + * Set the hd (hosted domain) parameter streamlines the login process for + * Google Apps hosted accounts. By including the domain of the user, you + * restrict sign-in to accounts at that domain. + * @param $hd string - the domain to use. + */ + public function setHostedDomain($hd) + { + $this->setAuthConfig('hd', $hd); + } + + /** + * Set the prompt hint. Valid values are none, consent and select_account. + * If no value is specified and the user has not previously authorized + * access, then the user is shown a consent screen. + * @param $prompt string + */ + public function setPrompt($prompt) + { + $this->setAuthConfig('prompt', $prompt); + } + + /** + * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth + * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which + * an authentication request is valid. + * @param $realm string - the URL-space to use. + */ + public function setOpenidRealm($realm) + { + $this->setAuthConfig('openid.realm', $realm); + } + + /** + * If this is provided with the value true, and the authorization request is + * granted, the authorization will include any previous authorizations + * granted to this user/application combination for other scopes. + * @param $include boolean - the URL-space to use. + */ + public function setIncludeGrantedScopes($include) + { + $this->setAuthConfig('include_granted_scopes', + $include ? "true" : "false"); + } + /** * @return string the base URL to use for API calls */ diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index d76b36a92..79ab7a406 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -130,6 +130,10 @@ public function testCreateAuthUrl() // Again with a blank login hint (should remove all traces from authUrl) $client->setLoginHint(""); + $client->setHostedDomain("example.com"); + $client->setOpenidRealm("example.com"); + $client->setPrompt("select_account"); + $client->setIncludeGrantedScopes(true); $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" . "?response_type=code" @@ -137,7 +141,11 @@ public function testCreateAuthUrl() . "&client_id=clientId1" . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&access_type=offline" - . "&approval_prompt=force"; + . "&approval_prompt=force" + . "&hd=example.com" + . "&openid.realm=example.com" + . "&prompt=select_account" + . "&include_granted_scopes=true"; $this->assertEquals($expected, $authUrl); } From 1987ba4af3658ed858e00ee05e17b9c474a042e3 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 30 Sep 2014 12:27:17 -0700 Subject: [PATCH 0308/1274] Small style guide fixes --- src/Google/Config.php | 6 ++++-- src/Google/Http/MediaFileUpload.php | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index ef7aace12..84083058f 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -342,8 +342,10 @@ public function setOpenidRealm($realm) */ public function setIncludeGrantedScopes($include) { - $this->setAuthConfig('include_granted_scopes', - $include ? "true" : "false"); + $this->setAuthConfig( + 'include_granted_scopes', + $include ? "true" : "false" + ); } /** diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 35c32e98e..8005db4bb 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -288,13 +288,13 @@ private function getResumeUri() return $location; } $message = $code; - $body = @json_decode( $response->getResponseBody() ); - if ( ! empty( $body->error->errors ) ) { + $body = @json_decode($response->getResponseBody()); + if (!empty( $body->error->errors ) ) { $message .= ': '; - foreach( $body->error->errors as $error ) { + foreach ($body->error->errors as $error) { $message .= "{$error->domain}, {$error->message};"; } - $message = rtrim( $message, ';' ); + $message = rtrim($message, ';'); } throw new Google_Exception("Failed to start the resumable upload (HTTP {$message})"); } From 31e9f24ada69dac1b4e770b37dcf717226113000 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:53 -0700 Subject: [PATCH 0309/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 417 +++++++++++++++++++++++++++++++++ 1 file changed, 417 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index fc4fec5dd..3f80f8a90 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -53,6 +53,7 @@ class Google_Service_Compute extends Google_Service public $globalOperations; public $httpHealthChecks; public $images; + public $instanceTemplates; public $instances; public $licenses; public $machineTypes; @@ -1198,6 +1199,78 @@ public function __construct(Google_Client $client) ) ) ); + $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( + $this, + $this->serviceName, + 'instanceTemplates', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/instanceTemplates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/instanceTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->instances = new Google_Service_Compute_Instances_Resource( $this, $this->serviceName, @@ -3935,6 +4008,91 @@ public function listImages($project, $optParams = array()) } } +/** + * The "instanceTemplates" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $instanceTemplates = $computeService->instanceTemplates; + * + */ +class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified instance template resource. (instanceTemplates.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $instanceTemplate + * Name of the instance template resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified instance template resource. (instanceTemplates.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $instanceTemplate + * Name of the instance template resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceTemplate + */ + public function get($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); + } + /** + * Creates an instance template resource in the specified project using the data + * included in the request. (instanceTemplates.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_InstanceTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves the list of instance template resources contained within the + * specified project. (instanceTemplates.listInstanceTemplates) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_InstanceTemplateList + */ + public function listInstanceTemplates($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); + } +} + /** * The "instances" collection of methods. * Typical usage is: @@ -8739,6 +8897,118 @@ public function getSelfLink() } } +class Google_Service_Compute_InstanceProperties extends Google_Collection +{ + protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); + public $canIpForward; + public $description; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + + public function setCanIpForward($canIpForward) + { + $this->canIpForward = $canIpForward; + } + + public function getCanIpForward() + { + return $this->canIpForward; + } + + 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 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 setNetworkInterfaces($networkInterfaces) + { + $this->networkInterfaces = $networkInterfaces; + } + + public function getNetworkInterfaces() + { + return $this->networkInterfaces; + } + + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + { + $this->scheduling = $scheduling; + } + + public function getScheduling() + { + return $this->scheduling; + } + + public function setServiceAccounts($serviceAccounts) + { + $this->serviceAccounts = $serviceAccounts; + } + + public function getServiceAccounts() + { + return $this->serviceAccounts; + } + + public function setTags(Google_Service_Compute_Tags $tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + class Google_Service_Compute_InstanceReference extends Google_Model { protected $internal_gapi_mappings = array( @@ -8756,6 +9026,153 @@ public function getInstance() } } +class Google_Service_Compute_InstanceTemplate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + protected $propertiesType = 'Google_Service_Compute_InstanceProperties'; + protected $propertiesDataType = ''; + public $selfLink; + + 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 setProperties(Google_Service_Compute_InstanceProperties $properties) + { + $this->properties = $properties; + } + + public function getProperties() + { + return $this->properties; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceTemplateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_InstanceTemplate'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } +} + class Google_Service_Compute_InstancesScopedList extends Google_Collection { protected $collection_key = 'instances'; From dfcae0135b5539dac8dc0d08beed9fa8488af7d7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:54 -0700 Subject: [PATCH 0310/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 34 ++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 34b8d51a4..00f98dae3 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1125,9 +1125,14 @@ public function get($variantId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } /** - * Creates variant data by asynchronously importing the provided information. If - * the destination variant set already contains data, new variants will be - * merged according to the behavior of mergeVariants. (variants.import) + * Creates variant data by asynchronously importing the provided information. + * The variants for import will be merged with any existing data and each other + * according to the behavior of mergeVariants. In particular, this means for + * merged VCF variants that have conflicting INFO fields, some data will be + * arbitrarily discarded. As a special case, for single-sample VCF files, QUAL + * and FILTER fields will be moved to the call level; these are sometimes + * interpreted in a call-specific context. Imported VCF headers are appended to + * the metadata already in a VariantSet. (variants.import) * * @param Google_ImportVariantsRequest $postBody * @param array $optParams Optional parameters. @@ -1222,10 +1227,10 @@ public function get($variantSetId, $optParams = array()) * * @param string $variantSetId * The destination variant set. - * @param Google_Variant $postBody + * @param Google_MergeVariantsRequest $postBody * @param array $optParams Optional parameters. */ - public function mergeVariants($variantSetId, Google_Service_Genomics_Variant $postBody, $optParams = array()) + public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array()) { $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); @@ -2283,6 +2288,25 @@ public function getNextPageToken() } } +class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection +{ + protected $collection_key = 'variants'; + protected $internal_gapi_mappings = array( + ); + protected $variantsType = 'Google_Service_Genomics_Variant'; + protected $variantsDataType = 'array'; + + public function setVariants($variants) + { + $this->variants = $variants; + } + + public function getVariants() + { + return $this->variants; + } +} + class Google_Service_Genomics_Metadata extends Google_Model { protected $internal_gapi_mappings = array( From 5fe9495fbd56d50b6dec4fe6227644bc89b2afc1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:54 -0700 Subject: [PATCH 0311/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 55481773a..7a2a1ac24 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -31,7 +31,7 @@ */ class Google_Service_Appsactivity extends Google_Service { - /** View historical activity for Google services. */ + /** View the activity history of your Google Apps. */ const ACTIVITY = "https://www.googleapis.com/auth/activity"; /** View and manage the files and documents in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; From 0ee25feb67c154dea27d543853ae17cfa97e9f78 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:55 -0700 Subject: [PATCH 0312/1274] Updated AdSense.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSense.php | 62 ++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index 19e5808eb..ab77a56c6 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -2175,6 +2175,8 @@ public function listUrlchannels($adClientId, $optParams = array()) class Google_Service_AdSense_Account extends Google_Collection { protected $collection_key = 'subAccounts'; + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -2247,6 +2249,8 @@ public function getTimezone() class Google_Service_AdSense_Accounts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_Account'; protected $itemsDataType = 'array'; @@ -2296,6 +2300,8 @@ public function getNextPageToken() class Google_Service_AdSense_AdClient extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $arcOptIn; public $arcReviewMode; public $id; @@ -2367,6 +2373,8 @@ public function getSupportsReporting() class Google_Service_AdSense_AdClients extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_AdClient'; protected $itemsDataType = 'array'; @@ -2416,6 +2424,8 @@ public function getNextPageToken() class Google_Service_AdSense_AdCode extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adCode; public $kind; @@ -2442,6 +2452,8 @@ public function getKind() class Google_Service_AdSense_AdStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $colorsType = 'Google_Service_AdSense_AdStyleColors'; protected $colorsDataType = ''; public $corners; @@ -2492,6 +2504,8 @@ public function getKind() class Google_Service_AdSense_AdStyleColors extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $background; public $border; public $text; @@ -2551,6 +2565,8 @@ public function getUrl() class Google_Service_AdSense_AdStyleFont extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $family; public $size; @@ -2577,6 +2593,8 @@ public function getSize() class Google_Service_AdSense_AdUnit extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings'; protected $contentAdsSettingsDataType = ''; @@ -2695,6 +2713,8 @@ public function getStatus() class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption'; protected $backupOptionDataType = ''; public $size; @@ -2733,6 +2753,8 @@ public function getType() class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $color; public $type; public $url; @@ -2770,6 +2792,8 @@ public function getUrl() class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adPosition; public $frequency; public $minimumWordCount; @@ -2818,6 +2842,8 @@ public function getType() class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $markupLanguage; public $scriptingLanguage; public $size; @@ -2867,6 +2893,8 @@ public function getType() class Google_Service_AdSense_AdUnits extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_AdUnit'; protected $itemsDataType = 'array'; @@ -2917,6 +2945,8 @@ public function getNextPageToken() class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection { protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); public $averages; public $endDate; protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders'; @@ -3021,6 +3051,8 @@ public function getWarnings() class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $currency; public $name; public $type; @@ -3058,6 +3090,8 @@ public function getType() class Google_Service_AdSense_Alert extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $isDismissible; public $kind; @@ -3129,6 +3163,8 @@ public function getType() class Google_Service_AdSense_Alerts extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdSense_Alert'; protected $itemsDataType = 'array'; public $kind; @@ -3156,6 +3192,8 @@ public function getKind() class Google_Service_AdSense_CustomChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $code; public $id; public $kind; @@ -3216,6 +3254,8 @@ public function getTargetingInfo() class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $adsAppearOn; public $description; public $location; @@ -3265,6 +3305,8 @@ public function getSiteLanguage() class Google_Service_AdSense_CustomChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_CustomChannel'; protected $itemsDataType = 'array'; @@ -3315,6 +3357,8 @@ public function getNextPageToken() class Google_Service_AdSense_Metadata extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry'; protected $itemsDataType = 'array'; public $kind; @@ -3342,6 +3386,8 @@ public function getKind() class Google_Service_AdSense_Payment extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $paymentAmount; @@ -3402,6 +3448,8 @@ public function getPaymentDate() class Google_Service_AdSense_Payments extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); protected $itemsType = 'Google_Service_AdSense_Payment'; protected $itemsDataType = 'array'; public $kind; @@ -3430,6 +3478,8 @@ public function getKind() class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection { protected $collection_key = 'supportedProducts'; + protected $internal_gapi_mappings = array( + ); public $compatibleDimensions; public $compatibleMetrics; public $id; @@ -3511,6 +3561,8 @@ public function getSupportedProducts() class Google_Service_AdSense_SavedAdStyle extends Google_Model { + protected $internal_gapi_mappings = array( + ); protected $adStyleType = 'Google_Service_AdSense_AdStyle'; protected $adStyleDataType = ''; public $id; @@ -3561,6 +3613,8 @@ public function getName() class Google_Service_AdSense_SavedAdStyles extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_SavedAdStyle'; protected $itemsDataType = 'array'; @@ -3610,6 +3664,8 @@ public function getNextPageToken() class Google_Service_AdSense_SavedReport extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $name; @@ -3648,6 +3704,8 @@ public function getName() class Google_Service_AdSense_SavedReports extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_SavedReport'; protected $itemsDataType = 'array'; @@ -3697,6 +3755,8 @@ public function getNextPageToken() class Google_Service_AdSense_UrlChannel extends Google_Model { + protected $internal_gapi_mappings = array( + ); public $id; public $kind; public $urlPattern; @@ -3735,6 +3795,8 @@ public function getUrlPattern() class Google_Service_AdSense_UrlChannels extends Google_Collection { protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); public $etag; protected $itemsType = 'Google_Service_AdSense_UrlChannel'; protected $itemsDataType = 'array'; From a1e3424c20acbe4af2d340c7134a8df43174fff3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:55 -0700 Subject: [PATCH 0313/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 70 +++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 39b6a4a69..9fd41127f 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -78,6 +78,10 @@ public function __construct(Google_Client $client) 'path' => 'achievements/reset', 'httpMethod' => 'POST', 'parameters' => array(), + ),'resetAllForAllPlayers' => array( + 'path' => 'achievements/resetAllForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'resetForAllPlayers' => array( 'path' => 'achievements/{achievementId}/resetForAllPlayers', 'httpMethod' => 'POST', @@ -88,6 +92,10 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resetMultipleForAllPlayers' => array( + 'path' => 'achievements/resetMultipleForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -318,8 +326,22 @@ public function resetAll($optParams = array()) return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); } /** - * Resets the achievement with the given ID for the all players. This method is - * only available to user accounts for your developer console. Only draft + * Resets all draft achievements for all players. This method is only available + * to user accounts for your developer console. + * (achievements.resetAllForAllPlayers) + * + * @param array $optParams Optional parameters. + * @return Google_Service_GamesManagement_AchievementResetAllResponse + */ + public function resetAllForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAllForAllPlayers', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); + } + /** + * Resets the achievement with the given ID for all players. This method is only + * available to user accounts for your developer console. Only draft * achievements can be reset. (achievements.resetForAllPlayers) * * @param string $achievementId @@ -332,6 +354,20 @@ public function resetForAllPlayers($achievementId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** + * Resets the achievement with the given IDs for all players. This method is + * only available to user accounts for your developer console. Only draft + * achievements may be reset. (achievements.resetMultipleForAllPlayers) + * + * @param Google_AchievementResetMultipleForAllRequest $postBody + * @param array $optParams Optional parameters. + */ + public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resetMultipleForAllPlayers', array($params)); + } } /** @@ -632,6 +668,36 @@ public function getResults() } } +class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection +{ + protected $collection_key = 'achievement_ids'; + protected $internal_gapi_mappings = array( + "achievementIds" => "achievement_ids", + ); + public $achievementIds; + public $kind; + + public function setAchievementIds($achievementIds) + { + $this->achievementIds = $achievementIds; + } + + public function getAchievementIds() + { + return $this->achievementIds; + } + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } +} + class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model { protected $internal_gapi_mappings = array( From 2604f4ddc81a3c424625fcfa719d9ebb59c51e81 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:55 -0700 Subject: [PATCH 0314/1274] Updated Games.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Games.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 900c0466e..c936cbd24 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -2922,6 +2922,7 @@ class Google_Service_Games_Application extends Google_Collection public $lastUpdatedTimestamp; public $leaderboardCount; public $name; + public $themeColor; public function setAchievementCount($achievementCount) { @@ -3042,6 +3043,16 @@ public function getName() { return $this->name; } + + public function setThemeColor($themeColor) + { + $this->themeColor = $themeColor; + } + + public function getThemeColor() + { + return $this->themeColor; + } } class Google_Service_Games_ApplicationCategory extends Google_Model From 5ad4812fd5007ea72894ca9a99c02bad6c28e751 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Oct 2014 02:13:56 -0700 Subject: [PATCH 0315/1274] Removed Orkut.php --- src/Google/Service/Orkut.php | 4127 ---------------------------------- 1 file changed, 4127 deletions(-) delete mode 100644 src/Google/Service/Orkut.php diff --git a/src/Google/Service/Orkut.php b/src/Google/Service/Orkut.php deleted file mode 100644 index cc5a62c92..000000000 --- a/src/Google/Service/Orkut.php +++ /dev/null @@ -1,4127 +0,0 @@ - - * 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 -{ - /** Manage your Orkut activity. */ - const ORKUT = "https://www.googleapis.com/auth/orkut"; - /** View your Orkut data. */ - const ORKUT_READONLY = "https://www.googleapis.com/auth/orkut.readonly"; - - public $acl; - public $activities; - public $activityVisibility; - public $badges; - public $comments; - public $communities; - public $communityFollow; - public $communityMembers; - public $communityMessages; - public $communityPollComments; - public $communityPollVotes; - public $communityPolls; - public $communityRelated; - public $communityTopics; - public $counters; - public $scraps; - - - /** - * Constructs the internal representation of the Orkut service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'orkut/v2/'; - $this->version = 'v2'; - $this->serviceName = 'orkut'; - - $this->acl = new Google_Service_Orkut_Acl_Resource( - $this, - $this->serviceName, - 'acl', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'activities/{activityId}/acl/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->activities = new Google_Service_Orkut_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->activityVisibility = new Google_Service_Orkut_ActivityVisibility_Resource( - $this, - $this->serviceName, - 'activityVisibility', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->badges = new Google_Service_Orkut_Badges_Resource( - $this, - $this->serviceName, - 'badges', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}/badges/{badgeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'badgeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/badges', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Orkut_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communities = new Google_Service_Orkut_Communities_Resource( - $this, - $this->serviceName, - 'communities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'communities/{communityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/communities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityFollow = new Google_Service_Orkut_CommunityFollow_Resource( - $this, - $this->serviceName, - 'communityFollow', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/followers/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/followers/{userId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->communityMembers = new Google_Service_Orkut_CommunityMembers_Resource( - $this, - $this->serviceName, - 'communityMembers', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/members', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'friendsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityMessages = new Google_Service_Orkut_CommunityMessages_Resource( - $this, - $this->serviceName, - 'communityMessages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages/{messageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'messageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityPollComments = new Google_Service_Orkut_CommunityPollComments_Resource( - $this, - $this->serviceName, - 'communityPollComments', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityPollVotes = new Google_Service_Orkut_CommunityPollVotes_Resource( - $this, - $this->serviceName, - 'communityPollVotes', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/votes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->communityPolls = new Google_Service_Orkut_CommunityPolls_Resource( - $this, - $this->serviceName, - 'communityPolls', - array( - 'methods' => array( - 'get' => array( - 'path' => 'communities/{communityId}/polls/{pollId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/polls', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityRelated = new Google_Service_Orkut_CommunityRelated_Resource( - $this, - $this->serviceName, - 'communityRelated', - array( - 'methods' => array( - 'list' => array( - 'path' => 'communities/{communityId}/related', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityTopics = new Google_Service_Orkut_CommunityTopics_Resource( - $this, - $this->serviceName, - 'communityTopics', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/topics/{topicId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'communities/{communityId}/topics/{topicId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/topics', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'isShout' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/topics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->counters = new Google_Service_Orkut_Counters_Resource( - $this, - $this->serviceName, - 'counters', - array( - 'methods' => array( - 'list' => array( - 'path' => 'people/{userId}/counters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->scraps = new Google_Service_Orkut_Scraps_Resource( - $this, - $this->serviceName, - 'scraps', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities/scraps', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "acl" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } -} - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Retrieves a list of activities. (activities.listActivities) - * - * @param string $userId - * The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the - * authenticated user). - * @param string $collection - * The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of activities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_ActivityList - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_ActivityList"); - } -} - -/** - * The "activityVisibility" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('get', array($params), "Google_Service_Orkut_Visibility"); - } - /** - * Updates the visibility of an existing activity. This method supports patch - * semantics. (activityVisibility.patch) - * - * @param string $activityId - * ID of the activity. - * @param Google_Visibility $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Visibility - */ - public function patch($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Orkut_Visibility"); - } - /** - * Updates the visibility of an existing activity. (activityVisibility.update) - * - * @param string $activityId - * ID of the activity. - * @param Google_Visibility $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Visibility - */ - public function update($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Orkut_Visibility"); - } -} - -/** - * The "badges" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('get', array($params), "Google_Service_Orkut_Badge"); - } - /** - * Retrieves the list of visible badges of a user. (badges.listBadges) - * - * @param string $userId - * The id of the user whose badges will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_BadgeList - */ - public function listBadges($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_BadgeList"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Retrieves an existing comment. (comments.get) - * - * @param string $commentId - * ID of the comment to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_Comment"); - } - /** - * Inserts a new comment to an activity. (comments.insert) - * - * @param string $activityId - * The ID of the activity to contain the new comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Comment - */ - public function insert($activityId, Google_Service_Orkut_Comment $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_Comment"); - } - /** - * Retrieves a list of comments, possibly filtered. (comments.listComments) - * - * @param string $activityId - * The ID of the activity containing the comments. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results. - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of activities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommentList - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommentList"); - } -} - -/** - * The "communities" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('get', array($params), "Google_Service_Orkut_Community"); - } - /** - * Retrieves the list of communities the current user is a member of. - * (communities.listCommunities) - * - * @param string $userId - * The ID of the user whose communities will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * How to order the communities by. - * @opt_param string maxResults - * The maximum number of communities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityList - */ - public function listCommunities($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); - } -} - -/** - * The "communityFollow" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Adds a user as a follower of a community. (communityFollow.insert) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMembers - */ - public function insert($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); - } -} - -/** - * The "communityMembers" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Retrieves the relationship between a user and a community. - * (communityMembers.get) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMembers - */ - public function get($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityMembers"); - } - /** - * Makes the user join a community. (communityMembers.insert) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMembers - */ - public function insert($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); - } - /** - * Lists members of a community. Use the pagination tokens to retrieve the full - * list; do not rely on the member count available in the community profile - * information to know when to stop iterating, as that count may be approximate. - * (communityMembers.listCommunityMembers) - * - * @param int $communityId - * The ID of the community whose members will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param bool friendsOnly - * Whether to list only community members who are friends of the user. - * @opt_param string maxResults - * The maximum number of members to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMembersList - */ - public function listCommunityMembers($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityMembersList"); - } -} - -/** - * The "communityMessages" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Adds a message to a given community topic. (communityMessages.insert) - * - * @param int $communityId - * The ID of the community the message should be added to. - * @param string $topicId - * The ID of the topic the message should be added to. - * @param Google_CommunityMessage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMessage - */ - public function insert($communityId, $topicId, Google_Service_Orkut_CommunityMessage $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMessage"); - } - /** - * Retrieves the messages of a topic of a community. - * (communityMessages.listCommunityMessages) - * - * @param int $communityId - * The ID of the community which messages will be listed. - * @param string $topicId - * The ID of the topic which messages will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of messages to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMessageList - */ - public function listCommunityMessages($communityId, $topicId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityMessageList"); - } -} - -/** - * The "communityPollComments" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollComment"); - } - /** - * Retrieves the comments of a community poll. - * (communityPollComments.listCommunityPollComments) - * - * @param int $communityId - * The ID of the community whose poll is having its comments listed. - * @param string $pollId - * The ID of the community whose polls will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of comments to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityPollCommentList - */ - public function listCommunityPollComments($communityId, $pollId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'pollId' => $pollId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollCommentList"); - } -} - -/** - * The "communityPollVotes" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollVote"); - } -} - -/** - * The "communityPolls" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityPoll"); - } - /** - * Retrieves the polls of a community. (communityPolls.listCommunityPolls) - * - * @param int $communityId - * The ID of the community which polls will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of polls to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityPollList - */ - public function listCommunityPolls($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollList"); - } -} - -/** - * The "communityRelated" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $communityRelated = $orkutService->communityRelated; - * - */ -class Google_Service_Orkut_CommunityRelated_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the communities related to another one. - * (communityRelated.listCommunityRelated) - * - * @param int $communityId - * The ID of the community whose related communities will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityList - */ - public function listCommunityRelated($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); - } -} - -/** - * The "communityTopics" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('delete', array($params)); - } - /** - * Retrieves a topic of a community. (communityTopics.get) - * - * @param int $communityId - * The ID of the community whose topic will be retrieved. - * @param string $topicId - * The ID of the topic to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityTopic - */ - public function get($communityId, $topicId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityTopic"); - } - /** - * Adds a topic to a given community. (communityTopics.insert) - * - * @param int $communityId - * The ID of the community the topic should be added to. - * @param Google_CommunityTopic $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool isShout - * Whether this topic is a shout. - * @return Google_Service_Orkut_CommunityTopic - */ - public function insert($communityId, Google_Service_Orkut_CommunityTopic $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityTopic"); - } - /** - * Retrieves the topics of a community. (communityTopics.listCommunityTopics) - * - * @param int $communityId - * The ID of the community which topics will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of topics to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityTopicList - */ - public function listCommunityTopics($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityTopicList"); - } -} - -/** - * The "counters" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $counters = $orkutService->counters; - * - */ -class Google_Service_Orkut_Counters_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the counters of a user. (counters.listCounters) - * - * @param string $userId - * The ID of the user whose counters will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Counters - */ - public function listCounters($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_Counters"); - } -} - -/** - * The "scraps" collection of methods. - * Typical usage is: - * - * $orkutService = new Google_Service_Orkut(...); - * $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); - return $this->call('insert', array($params), "Google_Service_Orkut_Activity"); - } -} - - - - -class Google_Service_Orkut_Acl extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $description; - protected $itemsType = 'Google_Service_Orkut_AclItems'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_Orkut_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $actorDataType = ''; - public $id; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $objectType = 'Google_Service_Orkut_ActivityObject'; - protected $objectDataType = ''; - public $published; - public $title; - public $updated; - public $verb; - - public function setAccess(Google_Service_Orkut_Acl $access) - { - $this->access = $access; - } - - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Orkut_ActivityObject extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $content; - protected $itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource'; - protected $itemsDataType = 'array'; - public $objectType; - protected $repliesType = 'Google_Service_Orkut_ActivityObjectReplies'; - protected $repliesDataType = ''; - - public function setContent($content) - { - $this->content = $content; - } - - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_Comment'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_Badge'; - protected $itemsDataType = 'array'; - public $kind; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Orkut_Comment extends Google_Collection -{ - protected $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $actorDataType = ''; - public $content; - public $id; - protected $inReplyToType = 'Google_Service_Orkut_CommentInReplyTo'; - protected $inReplyToDataType = ''; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $published; - - public function setActor(Google_Service_Orkut_OrkutAuthorResource $actor) - { - $this->actor = $actor; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_Comment'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'moderators'; - protected $internal_gapi_mappings = array( - "coOwners" => "co_owners", - "creationDate" => "creation_date", - "memberCount" => "member_count", - "photoUrl" => "photo_url", - ); - public $category; - protected $coOwnersType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $coOwnersDataType = 'array'; - public $creationDate; - public $description; - public $id; - public $kind; - public $language; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $location; - public $memberCount; - protected $moderatorsType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $moderatorsDataType = 'array'; - public $name; - protected $ownerType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $ownerDataType = ''; - public $photoUrl; - - public function setCategory($category) - { - $this->category = $category; - } - - public function getCategory() - { - return $this->category; - } - - public function setCoOwners($coOwners) - { - $this->coOwners = $coOwners; - } - - public function getCoOwners() - { - return $this->coOwners; - } - - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - - public function getCreationDate() - { - return $this->creationDate; - } - - 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 setMemberCount($memberCount) - { - $this->memberCount = $memberCount; - } - - public function getMemberCount() - { - return $this->memberCount; - } - - 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 setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - - public function getPhotoUrl() - { - return $this->photoUrl; - } -} - -class Google_Service_Orkut_CommunityList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_Community'; - protected $itemsDataType = 'array'; - public $kind; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Orkut_CommunityMembers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $communityMembershipStatusType = 'Google_Service_Orkut_CommunityMembershipStatus'; - protected $communityMembershipStatusDataType = ''; - public $kind; - protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; - protected $personDataType = ''; - - public function setCommunityMembershipStatus(Google_Service_Orkut_CommunityMembershipStatus $communityMembershipStatus) - { - $this->communityMembershipStatus = $communityMembershipStatus; - } - - public function 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityMembers'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; - - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - public $addedDate; - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $isSpam; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $subject; - - public function setAddedDate($addedDate) - { - $this->addedDate = $addedDate; - } - - public function 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityMessage'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; - - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } - - public function 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 $collection_key = 'votedOptions'; - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $communityId; - public $creationTime; - public $description; - public $endingTime; - public $hasVoted; - public $id; - protected $imageType = 'Google_Service_Orkut_CommunityPollImage'; - protected $imageDataType = ''; - public $isClosed; - public $isMultipleAnswers; - public $isOpenForVoting; - public $isRestricted; - public $isSpam; - public $isUsersVotePublic; - public $isVotingAllowedForNonMembers; - public $kind; - public $lastUpdate; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $optionsType = 'Google_Service_Orkut_OrkutCommunitypolloptionResource'; - protected $optionsDataType = 'array'; - public $question; - public $totalNumberOfVotes; - public $votedOptions; - - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $addedDate; - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $kind; - - public function setAddedDate($addedDate) - { - $this->addedDate = $addedDate; - } - - public function 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityPollComment'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; - - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Orkut_CommunityPollList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityPoll'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; - - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } - - public function 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 -{ - protected $collection_key = 'optionIds'; - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'messages'; - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $isClosed; - public $kind; - public $lastUpdate; - public $latestMessageSnippet; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $messagesType = 'Google_Service_Orkut_CommunityMessage'; - protected $messagesDataType = 'array'; - public $numberOfReplies; - public $title; - - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } - - public function 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityTopic'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; - - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } - - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Orkut_OrkutCounterResource'; - protected $itemsDataType = 'array'; - public $kind; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Orkut_OrkutActivityobjectsResource extends Google_Collection -{ - protected $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - protected $communityType = 'Google_Service_Orkut_Community'; - protected $communityDataType = ''; - public $content; - public $displayName; - public $id; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $objectType; - protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; - protected $personDataType = ''; - - public function setCommunity(Google_Service_Orkut_Community $community) - { - $this->community = $community; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $birthday; - public $gender; - public $id; - protected $imageType = 'Google_Service_Orkut_OrkutActivitypersonResourceImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_Orkut_OrkutActivitypersonResourceName'; - protected $nameDataType = ''; - public $url; - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Orkut_OrkutActivitypersonResourceName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - protected $imageType = 'Google_Service_Orkut_OrkutAuthorResourceImage'; - protected $imageDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Orkut_OrkutCommunitypolloptionResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - protected $imageType = 'Google_Service_Orkut_OrkutCommunitypolloptionResourceImage'; - protected $imageDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Orkut_OrkutCounterResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $linkType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linkDataType = ''; - public $name; - public $total; - - public function setLink(Google_Service_Orkut_OrkutLinkResource $link) - { - $this->link = $link; - } - - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - 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; - } -} From a7211348fbe0fc3febc49540fdd41585d73f1f0f Mon Sep 17 00:00:00 2001 From: Lars Trebing Date: Sat, 4 Oct 2014 00:56:33 +0200 Subject: [PATCH 0316/1274] Autoload function for Google_* classes Addresses #341 --- autoload.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 autoload.php diff --git a/autoload.php b/autoload.php new file mode 100644 index 000000000..0046a87bc --- /dev/null +++ b/autoload.php @@ -0,0 +1,33 @@ + 3) { + // Maximum class file path depth in this project is 3. + $classPath = array_slice($className, 0, 3); + } + $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; + if (file_exists($filePath)) { + require_once($filePath); + } +} + +spl_autoload_register('google_api_php_client_autoload'); From 1d561221fc786cabcc78b894f008aa01dca7fe5e Mon Sep 17 00:00:00 2001 From: Lars Trebing Date: Sat, 4 Oct 2014 01:10:35 +0200 Subject: [PATCH 0317/1274] Use autoloader instead of requiring class files For backwards compatibility (if someone still includes a class file directly instead of using the autoloader), we make sure to always use the autoloader whenever appropriate. Addresses #341 --- examples/appengineauth.php | 5 +---- examples/batch.php | 5 +---- examples/fileupload.php | 5 +---- examples/idtoken.php | 3 +-- examples/multi-api.php | 5 +---- examples/service-account.php | 4 +--- examples/simple-query.php | 4 +--- examples/simplefileupload.php | 5 +---- examples/user-example.php | 4 +--- src/Google/Auth/Abstract.php | 3 ++- src/Google/Auth/AppIdentity.php | 3 +-- src/Google/Auth/AssertionCredentials.php | 4 +--- src/Google/Auth/Exception.php | 2 +- src/Google/Auth/LoginTicket.php | 2 +- src/Google/Auth/OAuth2.php | 9 +-------- src/Google/Auth/Simple.php | 3 +-- src/Google/Cache/Apc.php | 3 +-- src/Google/Cache/Exception.php | 3 ++- src/Google/Cache/File.php | 3 +-- src/Google/Cache/Memcache.php | 3 +-- src/Google/Cache/Null.php | 3 +-- src/Google/Client.php | 12 +----------- src/Google/Collection.php | 2 +- src/Google/Http/Batch.php | 4 +--- src/Google/Http/CacheParser.php | 2 +- src/Google/Http/MediaFileUpload.php | 6 +----- src/Google/Http/REST.php | 5 +---- src/Google/Http/Request.php | 2 +- src/Google/IO/Abstract.php | 5 +---- src/Google/IO/Curl.php | 2 +- src/Google/IO/Exception.php | 2 +- src/Google/IO/Stream.php | 2 +- src/Google/Service/Exception.php | 2 +- src/Google/Service/Resource.php | 7 +------ src/Google/Signer/P12.php | 3 +-- src/Google/Verifier/Pem.php | 3 +-- tests/BaseTest.php | 2 +- tests/OAuthHelper.php | 2 +- tests/adsense/AdSenseTest.php | 2 +- tests/general/ApiBatchRequestTest.php | 3 +-- tests/general/ApiCacheParserTest.php | 3 +-- tests/general/ApiClientTest.php | 5 +---- tests/general/ApiMediaFileUploadTest.php | 2 +- tests/general/ApiModelTest.php | 3 +-- tests/general/ApiOAuth2Test.php | 3 +-- tests/general/AuthTest.php | 8 +------- tests/general/CacheTest.php | 5 +---- tests/general/IoTest.php | 4 +--- tests/general/RequestTest.php | 3 +-- tests/general/RestTest.php | 3 +-- tests/general/ServiceTest.php | 4 +--- tests/general/URITemplateTest.php | 2 +- tests/pagespeed/PageSpeedTest.php | 2 +- tests/plus/PlusTest.php | 2 +- tests/tasks/TasksTest.php | 2 +- tests/urlshortener/UrlShortenerTests.php | 3 +-- tests/youtube/YouTubeTest.php | 2 +- 57 files changed, 59 insertions(+), 146 deletions(-) diff --git a/examples/appengineauth.php b/examples/appengineauth.php index 911da74d6..4300c70bb 100644 --- a/examples/appengineauth.php +++ b/examples/appengineauth.php @@ -21,10 +21,7 @@ Make an API request authenticated via the AppIdentity service on AppEngine. ************************************************/ -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Auth/AppIdentity.php'; -require_once 'Google/Service/Storage.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); echo pageHeader("AppIdentity Account Access"); diff --git a/examples/batch.php b/examples/batch.php index 744f318cb..a0b6bc87e 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -22,10 +22,7 @@ books API again as an example, but this time we will batch up two queries into a single call. ************************************************/ -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Service/Books.php'; -require_once 'Google/Http/Batch.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ We create the client and set the simple API diff --git a/examples/fileupload.php b/examples/fileupload.php index 7e75719b7..0b6574211 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -17,10 +17,7 @@ include_once "templates/base.php"; session_start(); -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Http/MediaFileUpload.php'; -require_once 'Google/Service/Drive.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ We'll setup an empty 20MB file to upload. diff --git a/examples/idtoken.php b/examples/idtoken.php index f5cf6aa59..293096050 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -17,8 +17,7 @@ include_once "templates/base.php"; session_start(); -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/examples/multi-api.php b/examples/multi-api.php index 9806d6dd7..982b7f611 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -17,10 +17,7 @@ include_once "templates/base.php"; session_start(); -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Service/YouTube.php'; -require_once 'Google/Service/Drive.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/examples/service-account.php b/examples/service-account.php index f9889842c..7478d8c9e 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -21,9 +21,7 @@ Make an API request authenticated with a service account. ************************************************/ -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Service/Books.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ ATTENTION: Fill in these values! You can get diff --git a/examples/simple-query.php b/examples/simple-query.php index 540fdea8d..e22790be5 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -25,9 +25,7 @@ should use our quota, which is higher than the anonymous quota (which is limited per IP). ************************************************/ -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Service/Books.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ We create the client and set the simple API diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index cb5fc45cc..ef86675c0 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -17,10 +17,7 @@ include_once "templates/base.php"; session_start(); -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Http/MediaFileUpload.php'; -require_once 'Google/Service/Drive.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ We'll setup an empty 1MB file to upload. diff --git a/examples/user-example.php b/examples/user-example.php index fbb189753..cc7e4edfd 100644 --- a/examples/user-example.php +++ b/examples/user-example.php @@ -17,9 +17,7 @@ include_once "templates/base.php"; session_start(); -set_include_path("../src/" . PATH_SEPARATOR . get_include_path()); -require_once 'Google/Client.php'; -require_once 'Google/Service/Urlshortener.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/src/Google/Auth/Abstract.php b/src/Google/Auth/Abstract.php index 0832df3a4..c1e36dc4c 100644 --- a/src/Google/Auth/Abstract.php +++ b/src/Google/Auth/Abstract.php @@ -14,7 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -require_once "Google/Http/Request.php"; + +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Abstract class for the Authentication in the API client diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 0be591762..82104b06b 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -22,8 +22,7 @@ */ use google\appengine\api\app_identity\AppIdentityService; -require_once "Google/Auth/Abstract.php"; -require_once "Google/Http/Request.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Authentication via the Google App Engine App Identity service. diff --git a/src/Google/Auth/AssertionCredentials.php b/src/Google/Auth/AssertionCredentials.php index 3db0a779d..2b92c5731 100644 --- a/src/Google/Auth/AssertionCredentials.php +++ b/src/Google/Auth/AssertionCredentials.php @@ -15,9 +15,7 @@ * limitations under the License. */ -require_once "Google/Auth/OAuth2.php"; -require_once "Google/Signer/P12.php"; -require_once "Google/Utils.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Credentials object used for OAuth 2.0 Signed JWT assertion grants. diff --git a/src/Google/Auth/Exception.php b/src/Google/Auth/Exception.php index 65067ee44..81c795aec 100644 --- a/src/Google/Auth/Exception.php +++ b/src/Google/Auth/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once "Google/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_Auth_Exception extends Google_Exception { diff --git a/src/Google/Auth/LoginTicket.php b/src/Google/Auth/LoginTicket.php index bcf798ae5..b29abdffd 100644 --- a/src/Google/Auth/LoginTicket.php +++ b/src/Google/Auth/LoginTicket.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once "Google/Auth/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Class to hold information about an authenticated login. diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 5630d755e..947b4484b 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -15,14 +15,7 @@ * limitations under the License. */ -require_once "Google/Auth/Abstract.php"; -require_once "Google/Auth/AssertionCredentials.php"; -require_once "Google/Auth/Exception.php"; -require_once "Google/Auth/LoginTicket.php"; -require_once "Google/Client.php"; -require_once "Google/Http/Request.php"; -require_once "Google/Utils.php"; -require_once "Google/Verifier/Pem.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Authentication class that deals with the OAuth 2 web-server authentication flow diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index e83900fc2..e80ca6a7d 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once "Google/Auth/Abstract.php"; -require_once "Google/Http/Request.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Simple API access implementation. Can either be used to make requests diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php index 051b537a4..953f20236 100644 --- a/src/Google/Cache/Apc.php +++ b/src/Google/Cache/Apc.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once "Google/Cache/Abstract.php"; -require_once "Google/Cache/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * A persistent storage class based on the APC cache, which is not diff --git a/src/Google/Cache/Exception.php b/src/Google/Cache/Exception.php index 23b624608..a1d2d7adc 100644 --- a/src/Google/Cache/Exception.php +++ b/src/Google/Cache/Exception.php @@ -14,7 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -require_once "Google/Exception.php"; + +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_Cache_Exception extends Google_Exception { diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 8d0d62fe8..6fddbe3fa 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once "Google/Cache/Abstract.php"; -require_once "Google/Cache/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /* * This class implements a basic on disk storage. While that does diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index 1104afb8a..e4a4713ec 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once "Google/Cache/Abstract.php"; -require_once "Google/Cache/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * A persistent storage class based on the memcache, which is not diff --git a/src/Google/Cache/Null.php b/src/Google/Cache/Null.php index 0e3363120..0cd24c578 100644 --- a/src/Google/Cache/Null.php +++ b/src/Google/Cache/Null.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once "Google/Cache/Abstract.php"; -require_once "Google/Cache/Exception.php"; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * A blank storage class, for cases where caching is not diff --git a/src/Google/Client.php b/src/Google/Client.php index e15b4f4ea..4981a365d 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -15,17 +15,7 @@ * limitations under the License. */ -require_once 'Google/Auth/AssertionCredentials.php'; -require_once 'Google/Cache/File.php'; -require_once 'Google/Cache/Memcache.php'; -require_once 'Google/Config.php'; -require_once 'Google/Collection.php'; -require_once 'Google/Exception.php'; -require_once 'Google/IO/Curl.php'; -require_once 'Google/IO/Stream.php'; -require_once 'Google/Model.php'; -require_once 'Google/Service.php'; -require_once 'Google/Service/Resource.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); /** * The Google API Client diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 6e7bf9b0f..dbb2855e9 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,6 +1,6 @@ diff --git a/src/Google/Http/CacheParser.php b/src/Google/Http/CacheParser.php index 83f1c8d2f..298317c82 100644 --- a/src/Google/Http/CacheParser.php +++ b/src/Google/Http/CacheParser.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Http/Request.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * Implement the caching directives specified in rfc2616. This diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 8005db4bb..3df859e97 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -15,11 +15,7 @@ * limitations under the License. */ -require_once 'Google/Client.php'; -require_once 'Google/Exception.php'; -require_once 'Google/Http/Request.php'; -require_once 'Google/Http/REST.php'; -require_once 'Google/Utils.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * @author Chirag Shah diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 3c318e44c..1cf09a141 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -15,10 +15,7 @@ * limitations under the License. */ -require_once 'Google/Client.php'; -require_once 'Google/Http/Request.php'; -require_once 'Google/Service/Exception.php'; -require_once 'Google/Utils/URITemplate.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * This class implements the RESTful transport of apiServiceRequest()'s diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php index 8643694da..9811c146a 100644 --- a/src/Google/Http/Request.php +++ b/src/Google/Http/Request.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Utils.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * HTTP Request to be executed by IO classes. Upon execution, the diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index a4025e874..fc8edbe87 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -19,10 +19,7 @@ * Abstract IO base class */ -require_once 'Google/Client.php'; -require_once 'Google/IO/Exception.php'; -require_once 'Google/Http/CacheParser.php'; -require_once 'Google/Http/Request.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); abstract class Google_IO_Abstract { diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 57a057114..4dff61f53 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -21,7 +21,7 @@ * @author Stuart Langley */ -require_once 'Google/IO/Abstract.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_IO_Curl extends Google_IO_Abstract { diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php index 28c2d8ce6..98e9d255d 100644 --- a/src/Google/IO/Exception.php +++ b/src/Google/IO/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Exception.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_IO_Exception extends Google_Exception { diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index 917578d87..d270b2d35 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -21,7 +21,7 @@ * @author Stuart Langley */ -require_once 'Google/IO/Abstract.php'; +require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_IO_Stream extends Google_IO_Abstract { diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index a780ff7b4..65c1fccc6 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -1,6 +1,6 @@ "; diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 421a9c54e..25d8c45cd 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -15,7 +15,7 @@ * limitations under the License. */ include_once 'bootstrap.php'; -require_once 'Google/Client.php'; +require_once realpath(dirname(__FILE__) . '/../autoload.php'); $client = new Google_Client(); $client->setScopes(array( diff --git a/tests/adsense/AdSenseTest.php b/tests/adsense/AdSenseTest.php index 444f67f15..964765899 100644 --- a/tests/adsense/AdSenseTest.php +++ b/tests/adsense/AdSenseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Service/AdSense.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class AdsenseTests extends PHPUnit_Framework_TestSuite { public static function suite() { diff --git a/tests/general/ApiBatchRequestTest.php b/tests/general/ApiBatchRequestTest.php index 2e643b106..1fa52ffe6 100644 --- a/tests/general/ApiBatchRequestTest.php +++ b/tests/general/ApiBatchRequestTest.php @@ -19,8 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Service/Plus.php'; -require_once 'Google/Http/Batch.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiBatchRequestTest extends BaseTest { public $plus; diff --git a/tests/general/ApiCacheParserTest.php b/tests/general/ApiCacheParserTest.php index eec416dc8..d67622c6e 100644 --- a/tests/general/ApiCacheParserTest.php +++ b/tests/general/ApiCacheParserTest.php @@ -19,8 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Http/CacheParser.php'; -require_once 'Google/Http/Request.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiCacheParserTest extends BaseTest { public function testIsResponseCacheable() { diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index fadf40ae4..b9f7b2e4b 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -19,10 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Auth/Exception.php'; -require_once 'Google/Auth/Simple.php'; -require_once 'Google/Client.php'; -require_once 'Google/Service/Drive.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiClientTest extends BaseTest { public function testClient() { diff --git a/tests/general/ApiMediaFileUploadTest.php b/tests/general/ApiMediaFileUploadTest.php index 466fff4b0..e2d4929de 100644 --- a/tests/general/ApiMediaFileUploadTest.php +++ b/tests/general/ApiMediaFileUploadTest.php @@ -19,7 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Http/MediaFileUpload.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiMediaFileUploadTest extends BaseTest { diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index bf937387c..f6fa79c66 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -19,8 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Service/AdExchangeBuyer.php'; -require_once 'Google/Service/Calendar.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiModelTest extends BaseTest { diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 79ab7a406..154280973 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -19,8 +19,7 @@ */ require_once "BaseTest.php"; -require_once "Google/Auth/OAuth2.php"; -require_once "Google/Http/Request.php"; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class ApiOAuth2Test extends BaseTest { diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index ac664de40..50d5e6f2f 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -19,13 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Auth/AssertionCredentials.php'; -require_once 'Google/Auth/Exception.php'; -require_once 'Google/Auth/Simple.php'; -require_once "Google/Http/Request.php"; -require_once 'Google/Signer/P12.php'; -require_once 'Google/Utils.php'; -require_once 'Google/Verifier/Pem.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class AuthTest extends BaseTest { const PRIVATE_KEY_FILE = "testdata/cert.p12"; diff --git a/tests/general/CacheTest.php b/tests/general/CacheTest.php index d3e71af8d..cb7bb0ecd 100644 --- a/tests/general/CacheTest.php +++ b/tests/general/CacheTest.php @@ -19,10 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Cache/File.php'; -require_once 'Google/Cache/Memcache.php'; -require_once 'Google/Cache/Apc.php'; -require_once 'Google/Cache/Null.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class CacheTest extends BaseTest { diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index d7d41c7d2..fe7041ee7 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -19,9 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Http/Request.php'; -require_once 'Google/IO/Curl.php'; -require_once 'Google/IO/Stream.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class IoTest extends BaseTest { diff --git a/tests/general/RequestTest.php b/tests/general/RequestTest.php index 4e47d0b69..53847185d 100644 --- a/tests/general/RequestTest.php +++ b/tests/general/RequestTest.php @@ -19,8 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Service/Plus.php'; -require_once 'Google/Http/Request.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class RequestTest extends BaseTest { public function testRequestParameters() diff --git a/tests/general/RestTest.php b/tests/general/RestTest.php index 7b6e44392..8474619f9 100644 --- a/tests/general/RestTest.php +++ b/tests/general/RestTest.php @@ -16,8 +16,7 @@ */ require_once 'BaseTest.php'; -require_once "Google/Http/Request.php"; -require_once "Google/Http/REST.php"; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class RestTest extends BaseTest { diff --git a/tests/general/ServiceTest.php b/tests/general/ServiceTest.php index 1688d5119..eb473dd42 100644 --- a/tests/general/ServiceTest.php +++ b/tests/general/ServiceTest.php @@ -19,9 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Service/Plus.php'; -require_once 'Google/Utils.php'; -require_once 'Google/Service/Resource.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class TestModel extends Google_Model { public function mapTypes($array) { diff --git a/tests/general/URITemplateTest.php b/tests/general/URITemplateTest.php index d4ce436f3..9c361d49b 100644 --- a/tests/general/URITemplateTest.php +++ b/tests/general/URITemplateTest.php @@ -19,7 +19,7 @@ */ require_once 'BaseTest.php'; -require_once 'Google/Utils/URITemplate.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class URITemplateTest extends BaseTest { public function testLevelOne() { diff --git a/tests/pagespeed/PageSpeedTest.php b/tests/pagespeed/PageSpeedTest.php index 39187c7cb..acd0526fd 100644 --- a/tests/pagespeed/PageSpeedTest.php +++ b/tests/pagespeed/PageSpeedTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Service/Pagespeedonline.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class PageSpeedTest extends BaseTest { public $service; diff --git a/tests/plus/PlusTest.php b/tests/plus/PlusTest.php index 06c13de50..18a2b3cb6 100644 --- a/tests/plus/PlusTest.php +++ b/tests/plus/PlusTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Service/Plus.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class AllPlusTests extends PHPUnit_Framework_TestSuite { public static function suite() { diff --git a/tests/tasks/TasksTest.php b/tests/tasks/TasksTest.php index dc7eda3d8..463226b95 100644 --- a/tests/tasks/TasksTest.php +++ b/tests/tasks/TasksTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Service/Tasks.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class TasksTest extends BaseTest { /** @var Google_TasksService */ diff --git a/tests/urlshortener/UrlShortenerTests.php b/tests/urlshortener/UrlShortenerTests.php index 9c326ac87..00501b56b 100644 --- a/tests/urlshortener/UrlShortenerTests.php +++ b/tests/urlshortener/UrlShortenerTests.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once 'Google/Client.php'; -require_once 'Google/Service/Urlshortener.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class UrlShortenerTests extends BaseTest { /** @var Google_UrlshortenerService */ diff --git a/tests/youtube/YouTubeTest.php b/tests/youtube/YouTubeTest.php index 3c7d5ab48..373f812f1 100644 --- a/tests/youtube/YouTubeTest.php +++ b/tests/youtube/YouTubeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once 'Google/Service/YouTube.php'; +require_once realpath(dirname(__FILE__) . '/../../autoload.php'); class YouTubeTests extends PHPUnit_Framework_TestSuite { From 32ea38f91103ffd412ecb5b2544a58070ad6b8db Mon Sep 17 00:00:00 2001 From: Lars Trebing Date: Sat, 4 Oct 2014 01:36:19 +0200 Subject: [PATCH 0318/1274] Update README.md and composer.json Addresses #341 --- README.md | 3 +-- composer.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index d23c2a9ca..4b453d35b 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,7 @@ For the latest installation and setup instructions, see [the documentation](http See the examples/ directory for examples of the key client features. ```PHP setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); diff --git a/composer.json b/composer.json index f8a8cd603..ccb0c07f3 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ "src/" ] }, - "include-path": ["src/"], "extra": { "branch-alias": { "dev-master": "1.0.x-dev" From 7c4088e87efd7eece1d83f716ed502e67fe5adbb Mon Sep 17 00:00:00 2001 From: Lars Trebing Date: Sat, 4 Oct 2014 03:42:07 +0200 Subject: [PATCH 0319/1274] Fix case of Google_Cache_Apc in CacheTest.php Addresses #341 --- tests/general/CacheTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/general/CacheTest.php b/tests/general/CacheTest.php index cb7bb0ecd..0692106fa 100644 --- a/tests/general/CacheTest.php +++ b/tests/general/CacheTest.php @@ -84,7 +84,7 @@ public function testAPC() { $this->markTestSkipped('Test requires APC enabled for CLI'); } $client = $this->getClient(); - $cache = new Google_Cache_APC($client); + $cache = new Google_Cache_Apc($client); $this->getSetDelete($cache); } From ef939cdf1a1235441ce325fb82511cee48df54fd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 6 Oct 2014 02:16:53 -0700 Subject: [PATCH 0320/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 67a31c24f..e52b6caf1 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -994,6 +994,7 @@ class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model ); public $columnName; public $customDimensionName; + public $customMetricName; public $endDate; public $groupByColumn; public $headerText; @@ -1021,6 +1022,16 @@ public function getCustomDimensionName() return $this->customDimensionName; } + public function setCustomMetricName($customMetricName) + { + $this->customMetricName = $customMetricName; + } + + public function getCustomMetricName() + { + return $this->customMetricName; + } + public function setEndDate($endDate) { $this->endDate = $endDate; From 1c8ddc45756a28695fe2387032929d473f621202 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 6 Oct 2014 02:16:53 -0700 Subject: [PATCH 0321/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index d56fdf93d..ba2906bb4 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -1276,7 +1276,11 @@ class Google_Service_Gmail_Label extends Google_Model public $id; public $labelListVisibility; public $messageListVisibility; + public $messagesTotal; + public $messagesUnread; public $name; + public $threadsTotal; + public $threadsUnread; public $type; public function setId($id) @@ -1309,6 +1313,26 @@ public function getMessageListVisibility() return $this->messageListVisibility; } + public function setMessagesTotal($messagesTotal) + { + $this->messagesTotal = $messagesTotal; + } + + public function getMessagesTotal() + { + return $this->messagesTotal; + } + + public function setMessagesUnread($messagesUnread) + { + $this->messagesUnread = $messagesUnread; + } + + public function getMessagesUnread() + { + return $this->messagesUnread; + } + public function setName($name) { $this->name = $name; @@ -1319,6 +1343,26 @@ public function getName() return $this->name; } + public function setThreadsTotal($threadsTotal) + { + $this->threadsTotal = $threadsTotal; + } + + public function getThreadsTotal() + { + return $this->threadsTotal; + } + + public function setThreadsUnread($threadsUnread) + { + $this->threadsUnread = $threadsUnread; + } + + public function getThreadsUnread() + { + return $this->threadsUnread; + } + public function setType($type) { $this->type = $type; From 8f8fc8f83fd9709ab98574bc8d8310ed21085ab3 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 6 Oct 2014 18:27:29 +0100 Subject: [PATCH 0322/1274] Fix for tests when no cURL available --- tests/general/IoTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index fe7041ee7..406c26e0e 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -213,8 +213,11 @@ public function authCache($io, $client) public function responseChecker($io) { - $curlVer = curl_version(); - $hasQuirk = $curlVer['version_number'] < Google_IO_Curl::NO_QUIRK_VERSION; + $hasQuirk = false; + if (function_exists('curl_version')) { + $curlVer = curl_version(); + $hasQuirk = $curlVer['version_number'] < Google_IO_Curl::NO_QUIRK_VERSION; + } $rawHeaders = "HTTP/1.1 200 OK\r\n" . "Expires: Sun, 22 Jan 2012 09:00:56 GMT\r\n" From e23a725bba251c4824fa466f2d0cf40fa59bf505 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 6 Oct 2014 18:30:00 +0100 Subject: [PATCH 0323/1274] Bump version to 1.1.0 Autoloading change may well break BC! --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 4981a365d..30013e997 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -26,7 +26,7 @@ */ class Google_Client { - const LIBVER = "1.0.6-beta"; + const LIBVER = "1.1.0-beta"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From d3c0e3519dd30c6218fc80557e106b77b189af95 Mon Sep 17 00:00:00 2001 From: MightyBranch Date: Mon, 6 Oct 2014 13:23:03 -0600 Subject: [PATCH 0324/1274] Minor spelling/grammar corrections Added "?" at the end of question, as the rest of questions have it. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b453d35b..454b06bb4 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ When we started working on the 1.0.0 branch we knew there were several fundament The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. -### How do I deal with non-JSON response types ### +### How do I deal with non-JSON response types? ### Some servives return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call: From 4b30a6e57c6ff0270f9bee13730c677ecffdcf43 Mon Sep 17 00:00:00 2001 From: Misha Nasledov Date: Tue, 7 Oct 2014 15:21:52 -0700 Subject: [PATCH 0325/1274] Fix reference to Google_IO_Abstract (wrong case) --- src/Google/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 30013e997..510f9440e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -195,9 +195,9 @@ public function setAuth(Google_Auth_Abstract $auth) /** * Set the IO object - * @param Google_Io_Abstract $auth + * @param Google_IO_Abstract $auth */ - public function setIo(Google_Io_Abstract $io) + public function setIo(Google_IO_Abstract $io) { $this->config->setIoClass(get_class($io)); $this->io = $io; From 9aa14e499685307f7adfa9b25f202eab9ebfa352 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 8 Oct 2014 02:19:29 -0700 Subject: [PATCH 0326/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 9fd41127f..17afb2690 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -331,13 +331,12 @@ public function resetAll($optParams = array()) * (achievements.resetAllForAllPlayers) * * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_AchievementResetAllResponse */ public function resetAllForAllPlayers($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); - return $this->call('resetAllForAllPlayers', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); + return $this->call('resetAllForAllPlayers', array($params)); } /** * Resets the achievement with the given ID for all players. This method is only From b1e0363bf6b5530f73418bfa13b9d9e056249414 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 8 Oct 2014 18:26:41 +0100 Subject: [PATCH 0327/1274] Update dev-master alias for 1.1. branch --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ccb0c07f3..a4ca07dd3 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } } } From 86bfef3313c5dbc2105b1b123748f96e51933698 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 9 Oct 2014 02:20:57 -0700 Subject: [PATCH 0328/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 269cc5402..bb6ec5541 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -31,6 +31,8 @@ */ class Google_Service_Storage extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** Manage your data and permissions in Google Cloud Storage. */ const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ @@ -1620,7 +1622,7 @@ public function delete($bucket, $object, $optParams = array()) return $this->call('delete', array($params)); } /** - * Retrieves objects or their metadata. (objects.get) + * Retrieves an object or its metadata. (objects.get) * * @param string $bucket * Name of the bucket in which the object resides. From 2d1dcbdb4433fd5ae9d3b10e80274eeb7f20e208 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 9 Oct 2014 02:20:58 -0700 Subject: [PATCH 0329/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 108 ++++++++++++++++---------------- 1 file changed, 53 insertions(+), 55 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 00f98dae3..79bebbc9c 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -495,10 +495,30 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'patch' => array( + 'path' => 'variantsets/{variantSetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'search' => array( 'path' => 'variantsets/search', 'httpMethod' => 'POST', 'parameters' => array(), + ),'update' => array( + 'path' => 'variantsets/{variantSetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -1236,6 +1256,23 @@ public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVarian $params = array_merge($params, $optParams); return $this->call('mergeVariants', array($params)); } + /** + * Updates a variant set's metadata. All other modifications are silently + * ignored. Returns the modified variant set. This method supports patch + * semantics. (variantsets.patch) + * + * @param string $variantSetId + * The ID of the variant to be updated. + * @param Google_VariantSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_VariantSet + */ + public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); + } /** * Returns a list of all variant sets matching search criteria. * (variantsets.search) @@ -1250,6 +1287,22 @@ public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBod $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); } + /** + * Updates a variant set's metadata. All other modifications are silently + * ignored. Returns the modified variant set. (variantsets.update) + * + * @param string $variantSetId + * The ID of the variant to be updated. + * @param Google_VariantSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_VariantSet + */ + public function update($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_VariantSet"); + } } @@ -1517,13 +1570,8 @@ class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collec public $align; public $callVariants; public $gcsOutputPath; - public $libraryName; public $pairedSourceUris; - public $platformName; - public $platformUnit; public $projectId; - public $readGroupId; - public $sampleName; public $sourceUris; public function setAlign($align) @@ -1556,16 +1604,6 @@ public function getGcsOutputPath() return $this->gcsOutputPath; } - public function setLibraryName($libraryName) - { - $this->libraryName = $libraryName; - } - - public function getLibraryName() - { - return $this->libraryName; - } - public function setPairedSourceUris($pairedSourceUris) { $this->pairedSourceUris = $pairedSourceUris; @@ -1576,26 +1614,6 @@ public function getPairedSourceUris() return $this->pairedSourceUris; } - public function setPlatformName($platformName) - { - $this->platformName = $platformName; - } - - public function getPlatformName() - { - return $this->platformName; - } - - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1606,26 +1624,6 @@ public function getProjectId() return $this->projectId; } - public function setReadGroupId($readGroupId) - { - $this->readGroupId = $readGroupId; - } - - public function getReadGroupId() - { - return $this->readGroupId; - } - - public function setSampleName($sampleName) - { - $this->sampleName = $sampleName; - } - - public function getSampleName() - { - return $this->sampleName; - } - public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; From d0e7380ec036c14c3abad9f88b8291ca5ff10ca3 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 9 Oct 2014 18:33:46 +0100 Subject: [PATCH 0330/1274] Fix typo in autoloader --- autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload.php b/autoload.php index 0046a87bc..3815c5262 100644 --- a/autoload.php +++ b/autoload.php @@ -22,7 +22,7 @@ function google_api_php_client_autoload($className) { } if (count($classPath) > 3) { // Maximum class file path depth in this project is 3. - $classPath = array_slice($className, 0, 3); + $classPath = array_slice($classPath, 0, 3); } $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; if (file_exists($filePath)) { From 44d0abd0e6ccb4840cedaad75dfbc491cc98c1ab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Oct 2014 05:22:23 -0400 Subject: [PATCH 0331/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 52 +++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 29084a5fc..77bdb6688 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -263,6 +263,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'patch' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -332,6 +340,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -772,8 +788,13 @@ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $pos * (datafeeds.listDatafeeds) * * @param string $merchantId - * + * The ID of the managing account. * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. * @return Google_Service_ShoppingContent_DatafeedsListResponse */ public function listDatafeeds($merchantId, $optParams = array()) @@ -865,8 +886,13 @@ public function get($merchantId, $datafeedId, $optParams = array()) * (datafeedstatuses.listDatafeedstatuses) * * @param string $merchantId - * + * The ID of the managing account. * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse */ public function listDatafeedstatuses($merchantId, $optParams = array()) @@ -2427,6 +2453,7 @@ class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collec protected $internal_gapi_mappings = array( ); public $kind; + public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; @@ -2440,6 +2467,16 @@ public function getKind() return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) { $this->resources = $resources; @@ -2597,6 +2634,7 @@ class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google protected $internal_gapi_mappings = array( ); public $kind; + public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; @@ -2610,6 +2648,16 @@ public function getKind() return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) { $this->resources = $resources; From da8d899c200cab326db9918e13ee1aede347bb1f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Oct 2014 05:22:23 -0400 Subject: [PATCH 0332/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 76 ++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index ad5eb3893..907903776 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -107,7 +107,22 @@ public function __construct(Google_Client $client) 'subscriptions', array( 'methods' => array( - 'changePlan' => array( + 'activate' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/activate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'changePlan' => array( 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', 'httpMethod' => 'POST', 'parameters' => array( @@ -241,6 +256,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'suspend' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/suspend', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -337,6 +367,23 @@ public function update($customerId, Google_Service_Reseller_Customer $postBody, class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource { + /** + * Activates a subscription previously suspended by the reseller + * (subscriptions.activate) + * + * @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 activate($customerId, $subscriptionId, $optParams = array()) + { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); + $params = array_merge($params, $optParams); + return $this->call('activate', array($params), "Google_Service_Reseller_Subscription"); + } /** * Changes the plan of a subscription (subscriptions.changePlan) * @@ -482,6 +529,22 @@ public function startPaidService($customerId, $subscriptionId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); } + /** + * Suspends an active subscription (subscriptions.suspend) + * + * @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 suspend($customerId, $subscriptionId, $optParams = array()) + { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); + $params = array_merge($params, $optParams); + return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription"); + } } @@ -771,6 +834,7 @@ class Google_Service_Reseller_Seats extends Google_Model protected $internal_gapi_mappings = array( ); public $kind; + public $licensedNumberOfSeats; public $maximumNumberOfSeats; public $numberOfSeats; @@ -784,6 +848,16 @@ public function getKind() return $this->kind; } + public function setLicensedNumberOfSeats($licensedNumberOfSeats) + { + $this->licensedNumberOfSeats = $licensedNumberOfSeats; + } + + public function getLicensedNumberOfSeats() + { + return $this->licensedNumberOfSeats; + } + public function setMaximumNumberOfSeats($maximumNumberOfSeats) { $this->maximumNumberOfSeats = $maximumNumberOfSeats; From 32933af9d0b967416a81228240005ffe31ffd064 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 11 Oct 2014 02:23:38 -0700 Subject: [PATCH 0333/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 52 +------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 77bdb6688..29084a5fc 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -263,14 +263,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'patch' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -340,14 +332,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) @@ -788,13 +772,8 @@ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $pos * (datafeeds.listDatafeeds) * * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. + * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_DatafeedsListResponse */ public function listDatafeeds($merchantId, $optParams = array()) @@ -886,13 +865,8 @@ public function get($merchantId, $datafeedId, $optParams = array()) * (datafeedstatuses.listDatafeedstatuses) * * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. + * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse */ public function listDatafeedstatuses($merchantId, $optParams = array()) @@ -2453,7 +2427,6 @@ class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collec protected $internal_gapi_mappings = array( ); public $kind; - public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; @@ -2467,16 +2440,6 @@ public function getKind() return $this->kind; } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) { $this->resources = $resources; @@ -2634,7 +2597,6 @@ class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google protected $internal_gapi_mappings = array( ); public $kind; - public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; @@ -2648,16 +2610,6 @@ public function getKind() return $this->kind; } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) { $this->resources = $resources; From 129148527a88f37dfad1242d3d0b874d3b507d39 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 14 Oct 2014 02:27:37 -0700 Subject: [PATCH 0334/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 2d138993b..08f957456 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -1006,6 +1006,34 @@ public function getProject() } } +class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { protected $internal_gapi_mappings = array( From 697dfac449c4fa58b3057d2b23221828cd86aada Mon Sep 17 00:00:00 2001 From: Abu Salam Parvez Alam Date: Tue, 14 Oct 2014 17:14:57 +0530 Subject: [PATCH 0335/1274] Minor spelling correction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 454b06bb4..e799f6725 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ The _Service classes are generally automatically generated from the API discover ### How do I deal with non-JSON response types? ### -Some servives return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call: +Some services return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call: ``` $opt_params = array( From b458c008a949579dda45ec8955a563f47ab019c1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 16 Oct 2014 02:30:24 -0700 Subject: [PATCH 0336/1274] Added service Tagmanager.php --- src/Google/Service/Tagmanager.php | 3945 +++++++++++++++++++++++++++++ 1 file changed, 3945 insertions(+) create mode 100644 src/Google/Service/Tagmanager.php diff --git a/src/Google/Service/Tagmanager.php b/src/Google/Service/Tagmanager.php new file mode 100644 index 000000000..15ee489c9 --- /dev/null +++ b/src/Google/Service/Tagmanager.php @@ -0,0 +1,3945 @@ + + * API for accessing Tag Manager accounts and containers. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Tagmanager extends Google_Service +{ + /** Google Tag Manager. */ + const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; + /** Google Tag Manager. */ + const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; + /** Google Tag Manager. */ + const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; + /** Google Tag Manager. */ + const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; + /** Google Tag Manager. */ + const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; + /** Google Tag Manager. */ + const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; + /** Google Tag Manager. */ + const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; + + public $accounts; + public $accounts_containers; + public $accounts_containers_macros; + public $accounts_containers_rules; + public $accounts_containers_tags; + public $accounts_containers_triggers; + public $accounts_containers_variables; + public $accounts_containers_versions; + public $accounts_permissions; + + + /** + * Constructs the internal representation of the Tagmanager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'tagmanager/v1/'; + $this->version = 'v1'; + $this->serviceName = 'tagmanager'; + + $this->accounts = new Google_Service_Tagmanager_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'patch' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers = new Google_Service_Tagmanager_AccountsContainers_Resource( + $this, + $this->serviceName, + 'containers', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_macros = new Google_Service_Tagmanager_AccountsContainersMacros_Resource( + $this, + $this->serviceName, + 'macros', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_rules = new Google_Service_Tagmanager_AccountsContainersRules_Resource( + $this, + $this->serviceName, + 'rules', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_tags = new Google_Service_Tagmanager_AccountsContainersTags_Resource( + $this, + $this->serviceName, + 'tags', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_triggers = new Google_Service_Tagmanager_AccountsContainersTriggers_Resource( + $this, + $this->serviceName, + 'triggers', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_variables = new Google_Service_Tagmanager_AccountsContainersVariables_Resource( + $this, + $this->serviceName, + 'variables', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_versions = new Google_Service_Tagmanager_AccountsContainersVersions_Resource( + $this, + $this->serviceName, + 'versions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'headers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'publish' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'restore' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'undelete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_permissions = new Google_Service_Tagmanager_AccountsPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/permissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $accounts = $tagmanagerService->accounts; + * + */ +class Google_Service_Tagmanager_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Gets a GTM Account. (accounts.get) + * + * @param string $accountId + * The GTM Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Account + */ + public function get($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Account"); + } + /** + * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListAccountsResponse + */ + public function listAccounts($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountsResponse"); + } + /** + * Updates a GTM Account. This method supports patch semantics. (accounts.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the account in storage. + * @return Google_Service_Tagmanager_Account + */ + public function patch($accountId, Google_Service_Tagmanager_Account $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Account"); + } + /** + * Updates a GTM Account. (accounts.update) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the account in storage. + * @return Google_Service_Tagmanager_Account + */ + public function update($accountId, Google_Service_Tagmanager_Account $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Account"); + } +} + +/** + * The "containers" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $containers = $tagmanagerService->containers; + * + */ +class Google_Service_Tagmanager_AccountsContainers_Resource extends Google_Service_Resource +{ + + /** + * Creates a Container. (containers.create) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_Container $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Container + */ + public function create($accountId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Container"); + } + /** + * Deletes a Container. (containers.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a Container. (containers.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Container + */ + public function get($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Container"); + } + /** + * Lists all Containers that belongs to a GTM Account. + * (containers.listAccountsContainers) + * + * @param string $accountId + * The GTM Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListContainersResponse + */ + public function listAccountsContainers($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainersResponse"); + } + /** + * Updates a Container. This method supports patch semantics. (containers.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Container $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container in storage. + * @return Google_Service_Tagmanager_Container + */ + public function patch($accountId, $containerId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Container"); + } + /** + * Updates a Container. (containers.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Container $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container in storage. + * @return Google_Service_Tagmanager_Container + */ + public function update($accountId, $containerId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Container"); + } +} + +/** + * The "macros" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $macros = $tagmanagerService->macros; + * + */ +class Google_Service_Tagmanager_AccountsContainersMacros_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Macro. (macros.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Macro $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Macro + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Macro"); + } + /** + * Deletes a GTM Macro. (macros.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $macroId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Macro. (macros.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Macro + */ + public function get($accountId, $containerId, $macroId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Macro"); + } + /** + * Lists all GTM Macros of a Container. (macros.listAccountsContainersMacros) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListMacrosResponse + */ + public function listAccountsContainersMacros($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListMacrosResponse"); + } + /** + * Updates a GTM Macro. This method supports patch semantics. (macros.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param Google_Macro $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the macro in storage. + * @return Google_Service_Tagmanager_Macro + */ + public function patch($accountId, $containerId, $macroId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Macro"); + } + /** + * Updates a GTM Macro. (macros.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param Google_Macro $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the macro in storage. + * @return Google_Service_Tagmanager_Macro + */ + public function update($accountId, $containerId, $macroId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Macro"); + } +} +/** + * The "rules" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $rules = $tagmanagerService->rules; + * + */ +class Google_Service_Tagmanager_AccountsContainersRules_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Rule. (rules.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Rule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Rule + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Rule"); + } + /** + * Deletes a GTM Rule. (rules.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $ruleId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Rule. (rules.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Rule + */ + public function get($accountId, $containerId, $ruleId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Rule"); + } + /** + * Lists all GTM Rules of a Container. (rules.listAccountsContainersRules) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListRulesResponse + */ + public function listAccountsContainersRules($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListRulesResponse"); + } + /** + * Updates a GTM Rule. This method supports patch semantics. (rules.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param Google_Rule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the rule in storage. + * @return Google_Service_Tagmanager_Rule + */ + public function patch($accountId, $containerId, $ruleId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Rule"); + } + /** + * Updates a GTM Rule. (rules.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param Google_Rule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the rule in storage. + * @return Google_Service_Tagmanager_Rule + */ + public function update($accountId, $containerId, $ruleId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Rule"); + } +} +/** + * The "tags" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $tags = $tagmanagerService->tags; + * + */ +class Google_Service_Tagmanager_AccountsContainersTags_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Tag. (tags.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Tag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Tag + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Tag"); + } + /** + * Deletes a GTM Tag. (tags.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $tagId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Tag. (tags.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Tag + */ + public function get($accountId, $containerId, $tagId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Tag"); + } + /** + * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListTagsResponse + */ + public function listAccountsContainersTags($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListTagsResponse"); + } + /** + * Updates a GTM Tag. This method supports patch semantics. (tags.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param Google_Tag $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the tag in storage. + * @return Google_Service_Tagmanager_Tag + */ + public function patch($accountId, $containerId, $tagId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Tag"); + } + /** + * Updates a GTM Tag. (tags.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param Google_Tag $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the tag in storage. + * @return Google_Service_Tagmanager_Tag + */ + public function update($accountId, $containerId, $tagId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Tag"); + } +} +/** + * The "triggers" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $triggers = $tagmanagerService->triggers; + * + */ +class Google_Service_Tagmanager_AccountsContainersTriggers_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Trigger. (triggers.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Trigger $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Trigger + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Trigger"); + } + /** + * Deletes a GTM Trigger. (triggers.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $triggerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Trigger. (triggers.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Trigger + */ + public function get($accountId, $containerId, $triggerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Trigger"); + } + /** + * Lists all GTM Triggers of a Container. + * (triggers.listAccountsContainersTriggers) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListTriggersResponse + */ + public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListTriggersResponse"); + } + /** + * Updates a GTM Trigger. This method supports patch semantics. (triggers.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param Google_Trigger $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the trigger in storage. + * @return Google_Service_Tagmanager_Trigger + */ + public function patch($accountId, $containerId, $triggerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Trigger"); + } + /** + * Updates a GTM Trigger. (triggers.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param Google_Trigger $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the trigger in storage. + * @return Google_Service_Tagmanager_Trigger + */ + public function update($accountId, $containerId, $triggerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Trigger"); + } +} +/** + * The "variables" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $variables = $tagmanagerService->variables; + * + */ +class Google_Service_Tagmanager_AccountsContainersVariables_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Variable. (variables.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Variable $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Variable + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_Variable"); + } + /** + * Deletes a GTM Variable. (variables.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $variableId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Variable. (variables.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_Variable + */ + public function get($accountId, $containerId, $variableId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_Variable"); + } + /** + * Lists all GTM Variables of a Container. + * (variables.listAccountsContainersVariables) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListVariablesResponse + */ + public function listAccountsContainersVariables($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListVariablesResponse"); + } + /** + * Updates a GTM Variable. This method supports patch semantics. + * (variables.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param Google_Variable $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the variable in storage. + * @return Google_Service_Tagmanager_Variable + */ + public function patch($accountId, $containerId, $variableId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_Variable"); + } + /** + * Updates a GTM Variable. (variables.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param Google_Variable $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the variable in storage. + * @return Google_Service_Tagmanager_Variable + */ + public function update($accountId, $containerId, $variableId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_Variable"); + } +} +/** + * The "versions" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $versions = $tagmanagerService->versions; + * + */ +class Google_Service_Tagmanager_AccountsContainersVersions_Resource extends Google_Service_Resource +{ + + /** + * Creates a Container Version. (versions.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_CreateContainerVersionRequestVersionOptions $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_CreateContainerVersionResponse + */ + public function create($accountId, $containerId, Google_Service_Tagmanager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_CreateContainerVersionResponse"); + } + /** + * Deletes a Container Version. (versions.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a Container Version. (versions.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. Specify published to retrieve the currently published version. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ContainerVersion + */ + public function get($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_ContainerVersion"); + } + /** + * Lists all Container Versions of a GTM Container. + * (versions.listAccountsContainersVersions) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * + * @opt_param bool headers + * Retrieve headers only when true. + * @return Google_Service_Tagmanager_ListContainerVersionsResponse + */ + public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainerVersionsResponse"); + } + /** + * Updates a Container Version. This method supports patch semantics. + * (versions.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param Google_ContainerVersion $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @return Google_Service_Tagmanager_ContainerVersion + */ + public function patch($accountId, $containerId, $containerVersionId, Google_Service_Tagmanager_ContainerVersion $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_ContainerVersion"); + } + /** + * Publishes a Container Version. (versions.publish) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @return Google_Service_Tagmanager_PublishContainerVersionResponse + */ + public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Tagmanager_PublishContainerVersionResponse"); + } + /** + * Restores a Container Version. This will overwrite the container's current + * configuration (including its macros, rules and tags). The operation will not + * have any effect on the version that is being served (i.e. the published + * version). (versions.restore) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ContainerVersion + */ + public function restore($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('restore', array($params), "Google_Service_Tagmanager_ContainerVersion"); + } + /** + * Undeletes a Container Version. (versions.undelete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ContainerVersion + */ + public function undelete($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Tagmanager_ContainerVersion"); + } + /** + * Updates a Container Version. (versions.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param Google_ContainerVersion $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @return Google_Service_Tagmanager_ContainerVersion + */ + public function update($accountId, $containerId, $containerVersionId, Google_Service_Tagmanager_ContainerVersion $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_ContainerVersion"); + } +} +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_Tagmanager(...); + * $permissions = $tagmanagerService->permissions; + * + */ +class Google_Service_Tagmanager_AccountsPermissions_Resource extends Google_Service_Resource +{ + + /** + * Creates a user's Account & Container Permissions. (permissions.create) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_UserAccess $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_UserAccess + */ + public function create($accountId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Tagmanager_UserAccess"); + } + /** + * Removes a user from the account, revoking access to it and all of its + * containers. (permissions.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $permissionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a user's Account & Container Permissions. (permissions.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_UserAccess + */ + public function get($accountId, $permissionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tagmanager_UserAccess"); + } + /** + * List all users that have access to the account along with Account and + * Container Permissions granted to each of them. + * (permissions.listAccountsPermissions) + * + * @param string $accountId + * The GTM Account ID. @required tagmanager.accounts.permissions.list + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_ListAccountUsersResponse + */ + public function listAccountsPermissions($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountUsersResponse"); + } + /** + * Updates a user's Account & Container Permissions. This method supports patch + * semantics. (permissions.patch) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param Google_UserAccess $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_UserAccess + */ + public function patch($accountId, $permissionId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tagmanager_UserAccess"); + } + /** + * Updates a user's Account & Container Permissions. (permissions.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param Google_UserAccess $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tagmanager_UserAccess + */ + public function update($accountId, $permissionId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tagmanager_UserAccess"); + } +} + + + + +class Google_Service_Tagmanager_Account extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $fingerprint; + public $name; + public $shareData; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setShareData($shareData) + { + $this->shareData = $shareData; + } + + public function getShareData() + { + return $this->shareData; + } +} + +class Google_Service_Tagmanager_AccountAccess extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $permission; + + public function setPermission($permission) + { + $this->permission = $permission; + } + + public function getPermission() + { + return $this->permission; + } +} + +class Google_Service_Tagmanager_Condition extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + protected $parameterType = 'Google_Service_Tagmanager_Parameter'; + protected $parameterDataType = 'array'; + public $type; + + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_Tagmanager_Container extends Google_Collection +{ + protected $collection_key = 'usageContext'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $domainName; + public $fingerprint; + public $name; + public $notes; + public $publicId; + public $timeZoneCountryId; + public $timeZoneId; + public $usageContext; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setDomainName($domainName) + { + $this->domainName = $domainName; + } + + public function getDomainName() + { + return $this->domainName; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setPublicId($publicId) + { + $this->publicId = $publicId; + } + + public function getPublicId() + { + return $this->publicId; + } + + public function setTimeZoneCountryId($timeZoneCountryId) + { + $this->timeZoneCountryId = $timeZoneCountryId; + } + + public function getTimeZoneCountryId() + { + return $this->timeZoneCountryId; + } + + public function setTimeZoneId($timeZoneId) + { + $this->timeZoneId = $timeZoneId; + } + + public function getTimeZoneId() + { + return $this->timeZoneId; + } + + public function setUsageContext($usageContext) + { + $this->usageContext = $usageContext; + } + + public function getUsageContext() + { + return $this->usageContext; + } +} + +class Google_Service_Tagmanager_ContainerAccess extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $containerId; + public $permission; + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setPermission($permission) + { + $this->permission = $permission; + } + + public function getPermission() + { + return $this->permission; + } +} + +class Google_Service_Tagmanager_ContainerVersion extends Google_Collection +{ + protected $collection_key = 'trigger'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $containerType = 'Google_Service_Tagmanager_Container'; + protected $containerDataType = ''; + public $containerId; + public $containerVersionId; + public $deleted; + public $fingerprint; + protected $macroType = 'Google_Service_Tagmanager_Macro'; + protected $macroDataType = 'array'; + public $name; + public $notes; + protected $ruleType = 'Google_Service_Tagmanager_Rule'; + protected $ruleDataType = 'array'; + protected $tagType = 'Google_Service_Tagmanager_Tag'; + protected $tagDataType = 'array'; + protected $triggerType = 'Google_Service_Tagmanager_Trigger'; + protected $triggerDataType = 'array'; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainer(Google_Service_Tagmanager_Container $container) + { + $this->container = $container; + } + + public function getContainer() + { + return $this->container; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setContainerVersionId($containerVersionId) + { + $this->containerVersionId = $containerVersionId; + } + + public function getContainerVersionId() + { + return $this->containerVersionId; + } + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setMacro($macro) + { + $this->macro = $macro; + } + + public function getMacro() + { + return $this->macro; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setRule($rule) + { + $this->rule = $rule; + } + + public function getRule() + { + return $this->rule; + } + + public function setTag($tag) + { + $this->tag = $tag; + } + + public function getTag() + { + return $this->tag; + } + + public function setTrigger($trigger) + { + $this->trigger = $trigger; + } + + public function getTrigger() + { + return $this->trigger; + } +} + +class Google_Service_Tagmanager_ContainerVersionHeader extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $containerVersionId; + public $deleted; + public $name; + public $numMacros; + public $numRules; + public $numTags; + public $numTriggers; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setContainerVersionId($containerVersionId) + { + $this->containerVersionId = $containerVersionId; + } + + public function getContainerVersionId() + { + return $this->containerVersionId; + } + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNumMacros($numMacros) + { + $this->numMacros = $numMacros; + } + + public function getNumMacros() + { + return $this->numMacros; + } + + public function setNumRules($numRules) + { + $this->numRules = $numRules; + } + + public function getNumRules() + { + return $this->numRules; + } + + public function setNumTags($numTags) + { + $this->numTags = $numTags; + } + + public function getNumTags() + { + return $this->numTags; + } + + public function setNumTriggers($numTriggers) + { + $this->numTriggers = $numTriggers; + } + + public function getNumTriggers() + { + return $this->numTriggers; + } +} + +class Google_Service_Tagmanager_CreateContainerVersionRequestVersionOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $notes; + public $quickPreview; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setQuickPreview($quickPreview) + { + $this->quickPreview = $quickPreview; + } + + public function getQuickPreview() + { + return $this->quickPreview; + } +} + +class Google_Service_Tagmanager_CreateContainerVersionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $compilerError; + protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; + protected $containerVersionDataType = ''; + + public function setCompilerError($compilerError) + { + $this->compilerError = $compilerError; + } + + public function getCompilerError() + { + return $this->compilerError; + } + + public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } +} + +class Google_Service_Tagmanager_ListAccountUsersResponse extends Google_Collection +{ + protected $collection_key = 'userAccess'; + protected $internal_gapi_mappings = array( + ); + protected $userAccessType = 'Google_Service_Tagmanager_UserAccess'; + protected $userAccessDataType = 'array'; + + public function setUserAccess($userAccess) + { + $this->userAccess = $userAccess; + } + + public function getUserAccess() + { + return $this->userAccess; + } +} + +class Google_Service_Tagmanager_ListAccountsResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_Tagmanager_Account'; + protected $accountsDataType = 'array'; + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + + public function getAccounts() + { + return $this->accounts; + } +} + +class Google_Service_Tagmanager_ListContainerVersionsResponse extends Google_Collection +{ + protected $collection_key = 'containerVersionHeader'; + protected $internal_gapi_mappings = array( + ); + protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; + protected $containerVersionDataType = 'array'; + protected $containerVersionHeaderType = 'Google_Service_Tagmanager_ContainerVersionHeader'; + protected $containerVersionHeaderDataType = 'array'; + + public function setContainerVersion($containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } + + public function setContainerVersionHeader($containerVersionHeader) + { + $this->containerVersionHeader = $containerVersionHeader; + } + + public function getContainerVersionHeader() + { + return $this->containerVersionHeader; + } +} + +class Google_Service_Tagmanager_ListContainersResponse extends Google_Collection +{ + protected $collection_key = 'containers'; + protected $internal_gapi_mappings = array( + ); + protected $containersType = 'Google_Service_Tagmanager_Container'; + protected $containersDataType = 'array'; + + public function setContainers($containers) + { + $this->containers = $containers; + } + + public function getContainers() + { + return $this->containers; + } +} + +class Google_Service_Tagmanager_ListMacrosResponse extends Google_Collection +{ + protected $collection_key = 'macros'; + protected $internal_gapi_mappings = array( + ); + protected $macrosType = 'Google_Service_Tagmanager_Macro'; + protected $macrosDataType = 'array'; + + public function setMacros($macros) + { + $this->macros = $macros; + } + + public function getMacros() + { + return $this->macros; + } +} + +class Google_Service_Tagmanager_ListRulesResponse extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + protected $rulesType = 'Google_Service_Tagmanager_Rule'; + protected $rulesDataType = 'array'; + + public function setRules($rules) + { + $this->rules = $rules; + } + + public function getRules() + { + return $this->rules; + } +} + +class Google_Service_Tagmanager_ListTagsResponse extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + protected $tagsType = 'Google_Service_Tagmanager_Tag'; + protected $tagsDataType = 'array'; + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_Tagmanager_ListTriggersResponse extends Google_Collection +{ + protected $collection_key = 'triggers'; + protected $internal_gapi_mappings = array( + ); + protected $triggersType = 'Google_Service_Tagmanager_Trigger'; + protected $triggersDataType = 'array'; + + public function setTriggers($triggers) + { + $this->triggers = $triggers; + } + + public function getTriggers() + { + return $this->triggers; + } +} + +class Google_Service_Tagmanager_ListVariablesResponse extends Google_Collection +{ + protected $collection_key = 'variables'; + protected $internal_gapi_mappings = array( + ); + protected $variablesType = 'Google_Service_Tagmanager_Variable'; + protected $variablesDataType = 'array'; + + public function setVariables($variables) + { + $this->variables = $variables; + } + + public function getVariables() + { + return $this->variables; + } +} + +class Google_Service_Tagmanager_Macro extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $disablingRuleId; + public $enablingRuleId; + public $fingerprint; + public $macroId; + public $name; + public $notes; + protected $parameterType = 'Google_Service_Tagmanager_Parameter'; + protected $parameterDataType = 'array'; + public $scheduleEndMs; + public $scheduleStartMs; + public $type; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setDisablingRuleId($disablingRuleId) + { + $this->disablingRuleId = $disablingRuleId; + } + + public function getDisablingRuleId() + { + return $this->disablingRuleId; + } + + public function setEnablingRuleId($enablingRuleId) + { + $this->enablingRuleId = $enablingRuleId; + } + + public function getEnablingRuleId() + { + return $this->enablingRuleId; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setMacroId($macroId) + { + $this->macroId = $macroId; + } + + public function getMacroId() + { + return $this->macroId; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_Tagmanager_Parameter extends Google_Collection +{ + protected $collection_key = 'map'; + protected $internal_gapi_mappings = array( + ); + public $key; + protected $listType = 'Google_Service_Tagmanager_Parameter'; + protected $listDataType = 'array'; + protected $mapType = 'Google_Service_Tagmanager_Parameter'; + protected $mapDataType = 'array'; + public $type; + public $value; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + + public function setList($list) + { + $this->list = $list; + } + + public function getList() + { + return $this->list; + } + + public function setMap($map) + { + $this->map = $map; + } + + public function getMap() + { + return $this->map; + } + + 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_Tagmanager_PublishContainerVersionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $compilerError; + protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; + protected $containerVersionDataType = ''; + + public function setCompilerError($compilerError) + { + $this->compilerError = $compilerError; + } + + public function getCompilerError() + { + return $this->compilerError; + } + + public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } +} + +class Google_Service_Tagmanager_Rule extends Google_Collection +{ + protected $collection_key = 'condition'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $conditionType = 'Google_Service_Tagmanager_Condition'; + protected $conditionDataType = 'array'; + public $containerId; + public $fingerprint; + public $name; + public $notes; + public $ruleId; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setCondition($condition) + { + $this->condition = $condition; + } + + public function getCondition() + { + return $this->condition; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setRuleId($ruleId) + { + $this->ruleId = $ruleId; + } + + public function getRuleId() + { + return $this->ruleId; + } +} + +class Google_Service_Tagmanager_Tag extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $blockingRuleId; + public $blockingTriggerId; + public $containerId; + protected $dependenciesType = 'Google_Service_Tagmanager_Parameter'; + protected $dependenciesDataType = ''; + public $fingerprint; + public $firingRuleId; + public $firingTriggerId; + public $liveOnly; + public $name; + public $notes; + protected $parameterType = 'Google_Service_Tagmanager_Parameter'; + protected $parameterDataType = 'array'; + protected $priorityType = 'Google_Service_Tagmanager_Parameter'; + protected $priorityDataType = ''; + public $scheduleEndMs; + public $scheduleStartMs; + public $tagId; + public $type; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setBlockingRuleId($blockingRuleId) + { + $this->blockingRuleId = $blockingRuleId; + } + + public function getBlockingRuleId() + { + return $this->blockingRuleId; + } + + public function setBlockingTriggerId($blockingTriggerId) + { + $this->blockingTriggerId = $blockingTriggerId; + } + + public function getBlockingTriggerId() + { + return $this->blockingTriggerId; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setDependencies(Google_Service_Tagmanager_Parameter $dependencies) + { + $this->dependencies = $dependencies; + } + + public function getDependencies() + { + return $this->dependencies; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setFiringRuleId($firingRuleId) + { + $this->firingRuleId = $firingRuleId; + } + + public function getFiringRuleId() + { + return $this->firingRuleId; + } + + public function setFiringTriggerId($firingTriggerId) + { + $this->firingTriggerId = $firingTriggerId; + } + + public function getFiringTriggerId() + { + return $this->firingTriggerId; + } + + public function setLiveOnly($liveOnly) + { + $this->liveOnly = $liveOnly; + } + + public function getLiveOnly() + { + return $this->liveOnly; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + + public function setPriority(Google_Service_Tagmanager_Parameter $priority) + { + $this->priority = $priority; + } + + public function getPriority() + { + return $this->priority; + } + + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + + public function setTagId($tagId) + { + $this->tagId = $tagId; + } + + public function getTagId() + { + return $this->tagId; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } +} + +class Google_Service_Tagmanager_Trigger extends Google_Collection +{ + protected $collection_key = 'filter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $autoEventFilterType = 'Google_Service_Tagmanager_Condition'; + protected $autoEventFilterDataType = 'array'; + protected $checkValidationType = 'Google_Service_Tagmanager_Parameter'; + protected $checkValidationDataType = ''; + public $containerId; + protected $customEventFilterType = 'Google_Service_Tagmanager_Condition'; + protected $customEventFilterDataType = 'array'; + protected $enableAllVideosType = 'Google_Service_Tagmanager_Parameter'; + protected $enableAllVideosDataType = ''; + protected $eventNameType = 'Google_Service_Tagmanager_Parameter'; + protected $eventNameDataType = ''; + protected $filterType = 'Google_Service_Tagmanager_Condition'; + protected $filterDataType = 'array'; + public $fingerprint; + protected $intervalType = 'Google_Service_Tagmanager_Parameter'; + protected $intervalDataType = ''; + protected $limitType = 'Google_Service_Tagmanager_Parameter'; + protected $limitDataType = ''; + public $name; + public $triggerId; + public $type; + protected $uniqueTriggerIdType = 'Google_Service_Tagmanager_Parameter'; + protected $uniqueTriggerIdDataType = ''; + protected $videoPercentageListType = 'Google_Service_Tagmanager_Parameter'; + protected $videoPercentageListDataType = ''; + protected $waitForTagsType = 'Google_Service_Tagmanager_Parameter'; + protected $waitForTagsDataType = ''; + protected $waitForTagsTimeoutType = 'Google_Service_Tagmanager_Parameter'; + protected $waitForTagsTimeoutDataType = ''; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setAutoEventFilter($autoEventFilter) + { + $this->autoEventFilter = $autoEventFilter; + } + + public function getAutoEventFilter() + { + return $this->autoEventFilter; + } + + public function setCheckValidation(Google_Service_Tagmanager_Parameter $checkValidation) + { + $this->checkValidation = $checkValidation; + } + + public function getCheckValidation() + { + return $this->checkValidation; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setCustomEventFilter($customEventFilter) + { + $this->customEventFilter = $customEventFilter; + } + + public function getCustomEventFilter() + { + return $this->customEventFilter; + } + + public function setEnableAllVideos(Google_Service_Tagmanager_Parameter $enableAllVideos) + { + $this->enableAllVideos = $enableAllVideos; + } + + public function getEnableAllVideos() + { + return $this->enableAllVideos; + } + + public function setEventName(Google_Service_Tagmanager_Parameter $eventName) + { + $this->eventName = $eventName; + } + + public function getEventName() + { + return $this->eventName; + } + + public function setFilter($filter) + { + $this->filter = $filter; + } + + public function getFilter() + { + return $this->filter; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setInterval(Google_Service_Tagmanager_Parameter $interval) + { + $this->interval = $interval; + } + + public function getInterval() + { + return $this->interval; + } + + public function setLimit(Google_Service_Tagmanager_Parameter $limit) + { + $this->limit = $limit; + } + + public function getLimit() + { + return $this->limit; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setTriggerId($triggerId) + { + $this->triggerId = $triggerId; + } + + public function getTriggerId() + { + return $this->triggerId; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setUniqueTriggerId(Google_Service_Tagmanager_Parameter $uniqueTriggerId) + { + $this->uniqueTriggerId = $uniqueTriggerId; + } + + public function getUniqueTriggerId() + { + return $this->uniqueTriggerId; + } + + public function setVideoPercentageList(Google_Service_Tagmanager_Parameter $videoPercentageList) + { + $this->videoPercentageList = $videoPercentageList; + } + + public function getVideoPercentageList() + { + return $this->videoPercentageList; + } + + public function setWaitForTags(Google_Service_Tagmanager_Parameter $waitForTags) + { + $this->waitForTags = $waitForTags; + } + + public function getWaitForTags() + { + return $this->waitForTags; + } + + public function setWaitForTagsTimeout(Google_Service_Tagmanager_Parameter $waitForTagsTimeout) + { + $this->waitForTagsTimeout = $waitForTagsTimeout; + } + + public function getWaitForTagsTimeout() + { + return $this->waitForTagsTimeout; + } +} + +class Google_Service_Tagmanager_UserAccess extends Google_Collection +{ + protected $collection_key = 'containerAccess'; + protected $internal_gapi_mappings = array( + ); + protected $accountAccessType = 'Google_Service_Tagmanager_AccountAccess'; + protected $accountAccessDataType = ''; + public $accountId; + protected $containerAccessType = 'Google_Service_Tagmanager_ContainerAccess'; + protected $containerAccessDataType = 'array'; + public $emailAddress; + public $permissionId; + + public function setAccountAccess(Google_Service_Tagmanager_AccountAccess $accountAccess) + { + $this->accountAccess = $accountAccess; + } + + public function getAccountAccess() + { + return $this->accountAccess; + } + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainerAccess($containerAccess) + { + $this->containerAccess = $containerAccess; + } + + public function getContainerAccess() + { + return $this->containerAccess; + } + + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() + { + return $this->emailAddress; + } + + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + + public function getPermissionId() + { + return $this->permissionId; + } +} + +class Google_Service_Tagmanager_Variable extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $disablingTriggerId; + public $enablingTriggerId; + public $fingerprint; + public $name; + public $notes; + protected $parameterType = 'Google_Service_Tagmanager_Parameter'; + protected $parameterDataType = 'array'; + public $scheduleEndMs; + public $scheduleStartMs; + public $type; + public $variableId; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + + public function setDisablingTriggerId($disablingTriggerId) + { + $this->disablingTriggerId = $disablingTriggerId; + } + + public function getDisablingTriggerId() + { + return $this->disablingTriggerId; + } + + public function setEnablingTriggerId($enablingTriggerId) + { + $this->enablingTriggerId = $enablingTriggerId; + } + + public function getEnablingTriggerId() + { + return $this->enablingTriggerId; + } + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + + public function setVariableId($variableId) + { + $this->variableId = $variableId; + } + + public function getVariableId() + { + return $this->variableId; + } +} From 1f276102df3bbc0512e24370f8bc74e4a6d90502 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 16 Oct 2014 02:30:25 -0700 Subject: [PATCH 0337/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 85 ++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index ba2906bb4..ac2b178ad 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -40,6 +40,7 @@ class Google_Service_Gmail extends Google_Service /** View your emails messages and settings. */ const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; + public $users; public $users_drafts; public $users_history; public $users_labels; @@ -60,6 +61,26 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'gmail'; + $this->users = new Google_Service_Gmail_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'getProfile' => array( + 'path' => '{userId}/profile', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( $this, $this->serviceName, @@ -607,6 +628,20 @@ public function __construct(Google_Client $client) class Google_Service_Gmail_Users_Resource extends Google_Service_Resource { + /** + * Gets the current user's Gmail profile. (users.getProfile) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Profile + */ + public function getProfile($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); + } } /** @@ -1854,6 +1889,56 @@ public function getRemoveLabelIds() } } +class Google_Service_Gmail_Profile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $emailAddress; + public $historyId; + public $messagesTotal; + public $threadsTotal; + + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() + { + return $this->emailAddress; + } + + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + + public function getHistoryId() + { + return $this->historyId; + } + + public function setMessagesTotal($messagesTotal) + { + $this->messagesTotal = $messagesTotal; + } + + public function getMessagesTotal() + { + return $this->messagesTotal; + } + + public function setThreadsTotal($threadsTotal) + { + $this->threadsTotal = $threadsTotal; + } + + public function getThreadsTotal() + { + return $this->threadsTotal; + } +} + class Google_Service_Gmail_Thread extends Google_Collection { protected $collection_key = 'messages'; From 0c3cbb6557dd607f685618ea7087ef6884cf8660 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 16 Oct 2014 02:30:25 -0700 Subject: [PATCH 0338/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 70b962702..e104a9da9 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2977,6 +2977,8 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection protected $collection_key = 'recentUsers'; protected $internal_gapi_mappings = array( ); + protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; + protected $activeTimeRangesDataType = 'array'; public $annotatedLocation; public $annotatedUser; public $bootMode; @@ -3002,6 +3004,16 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection public $supportEndDate; public $willAutoRenew; + public function setActiveTimeRanges($activeTimeRanges) + { + $this->activeTimeRanges = $activeTimeRanges; + } + + public function getActiveTimeRanges() + { + return $this->activeTimeRanges; + } + public function setAnnotatedLocation($annotatedLocation) { $this->annotatedLocation = $annotatedLocation; @@ -3233,6 +3245,34 @@ public function getWillAutoRenew() } } +class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activeTime; + public $date; + + public function setActiveTime($activeTime) + { + $this->activeTime = $activeTime; + } + + public function getActiveTime() + { + return $this->activeTime; + } + + public function setDate($date) + { + $this->date = $date; + } + + public function getDate() + { + return $this->date; + } +} + class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model { protected $internal_gapi_mappings = array( From e9060f37e60bddbefe5965ff3dac1c52922e94b7 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 16 Oct 2014 12:03:41 +0100 Subject: [PATCH 0339/1274] Update to add variant support --- src/Google/Model.php | 17 ++++++++++++++++- tests/general/ApiModelTest.php | 10 ++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/Google/Model.php b/src/Google/Model.php index 2bb9a333d..f2be7442d 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -33,15 +33,21 @@ class Google_Model implements ArrayAccess * Polymorphic - accepts a variable number of arguments dependent * on the type of the model subclass. */ - public function __construct() + public final function __construct() { if (func_num_args() == 1 && is_array(func_get_arg(0))) { // Initialize the model with the array's contents. $array = func_get_arg(0); $this->mapTypes($array); } + $this->gapiInit(); } + /** + * Getter that handles passthrough access to the data array, and lazy object creation. + * @param string $key Property name. + * @return mixed The value if any, or null. + */ public function __get($key) { $keyTypeName = $this->keyType($key); @@ -102,6 +108,15 @@ protected function mapTypes($array) $this->modelData = $array; } + /** + * Blank initialiser to be used in subclasses to do post-construction initialisation - this + * avoids the need for subclasses to have to implement the variadics handling in their + * constructors. + */ + protected function gapiInit() { + return; + } + /** * Create a simplified object suitable for straightforward * conversion to JSON. This is relatively expensive diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index f6fa79c66..5240a279f 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -80,6 +80,16 @@ public function testModelMutation() $this->assertNull($event2->getStart()); } + public function testVariantTypes() { + $feature = new Google_Service_MapsEngine_Feature(); + $geometry = new Google_Service_MapsEngine_GeoJsonPoint(); + $geometry->setCoordinates(array(1, 0)); + $feature->setGeometry($geometry); + $data = json_decode(json_encode($feature->toSimpleObject()), true); + $this->assertEquals('Point', $data['geometry']['type']); + $this->assertEquals(1, $data['geometry']['coordinates'][0]); + } + public function testOddMappingNames() { $creative = new Google_Service_AdExchangeBuyer_Creative(); From 72ce448a00a1ad4f37efe8a48849e9914a616596 Mon Sep 17 00:00:00 2001 From: Abu Salam Parvez Alam Date: Thu, 16 Oct 2014 21:05:38 +0530 Subject: [PATCH 0340/1274] Fixed Issue #354 --- src/Google/Client.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 510f9440e..96c99823e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -404,11 +404,10 @@ public function setIncludeGrantedScopes($include) /** * Fetches a fresh OAuth 2.0 access token with the given refresh token. * @param string $refreshToken - * @return void */ public function refreshToken($refreshToken) { - return $this->getAuth()->refreshToken($refreshToken); + $this->getAuth()->refreshToken($refreshToken); } /** @@ -623,7 +622,7 @@ public function setClassConfig($class, $config, $value = null) if (!is_string($class)) { $class = get_class($class); } - return $this->config->setClassConfig($class, $config, $value); + $this->config->setClassConfig($class, $config, $value); } From a0ad45fd2143dfb9ed7f862e2e7221d0171cc5f9 Mon Sep 17 00:00:00 2001 From: Abu Salam Parvez Alam Date: Thu, 16 Oct 2014 22:56:00 +0530 Subject: [PATCH 0341/1274] Updated PHPDoc comments to match method signature --- src/Google/Auth/OAuth2.php | 11 +++++++---- src/Google/Client.php | 26 +++++++++++++++----------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 947b4484b..882d9cb8f 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -407,7 +407,9 @@ private function getFederatedSignOnCerts() /** * Retrieve and cache a certificates file. - * @param $url location + * + * @param $url string location + * @throws Google_Auth_Exception * @return array certificates */ public function retrieveCertsFromLocation($url) @@ -470,12 +472,13 @@ public function verifyIdToken($id_token = null, $audience = null) /** * Verifies the id token, returns the verified token contents. * - * @param $jwt the token + * @param $jwt string the token * @param $certs array of certificates - * @param $required_audience the expected consumer of the token + * @param $required_audience string the expected consumer of the token * @param [$issuer] the expected issues, defaults to Google * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @return token information if valid, false if not + * @throws Google_Auth_Exception + * @return mixed token information if valid, false if not */ public function verifySignedJwtWithCerts( $jwt, diff --git a/src/Google/Client.php b/src/Google/Client.php index 96c99823e..c06e8aec3 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -126,6 +126,7 @@ public function authenticate($code) * the "Download JSON" button on in the Google Developer * Console. * @param string $json the configuration json + * @throws Google_Exception */ public function setAuthConfig($json) { @@ -154,6 +155,7 @@ public function setAuthConfigFile($file) } /** + * @throws Google_Auth_Exception * @return array * @visible For Testing */ @@ -195,7 +197,7 @@ public function setAuth(Google_Auth_Abstract $auth) /** * Set the IO object - * @param Google_IO_Abstract $auth + * @param Google_IO_Abstract $io */ public function setIo(Google_IO_Abstract $io) { @@ -205,7 +207,7 @@ public function setIo(Google_IO_Abstract $io) /** * Set the Cache object - * @param Google_Cache_Abstract $auth + * @param Google_Cache_Abstract $cache */ public function setCache(Google_Cache_Abstract $cache) { @@ -438,12 +440,12 @@ public function verifyIdToken($token = null) /** * Verify a JWT that was signed with your own certificates. * - * @param $jwt the token - * @param $certs array of certificates - * @param $required_audience the expected consumer of the token - * @param [$issuer] the expected issues, defaults to Google + * @param $id_token string The JWT token + * @param $cert_location array of certificates + * @param $audience string the expected consumer of the token + * @param $issuer string the expected issuer, defaults to Google * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @return token information if valid, false if not + * @return mixed token information if valid, false if not */ public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null) { @@ -453,8 +455,7 @@ public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $ } /** - * @param Google_Auth_AssertionCredentials $creds - * @return void + * @param $creds Google_Auth_AssertionCredentials */ public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) { @@ -528,6 +529,8 @@ public function setDefer($defer) /** * Helper method to execute deferred HTTP requests. * + * @param $request Google_Http_Request|Google_Http_Batch + * @throws Google_Exception * @return object of the type of the expected class or array. */ public function execute($request) @@ -599,6 +602,7 @@ public function getCache() * Retrieve custom configuration for a specific class. * @param $class string|object - class or instance of class to retrieve * @param $key string optional - key to retrieve + * @return array */ public function getClassConfig($class, $key = null) { @@ -612,9 +616,9 @@ public function getClassConfig($class, $key = null) * Set configuration specific to a given class. * $config->setClassConfig('Google_Cache_File', * array('directory' => '/tmp/cache')); - * @param $class The class name for the configuration + * @param $class string|object - The class name for the configuration * @param $config string key or an array of configuration values - * @param $value optional - if $config is a key, the value + * @param $value string optional - if $config is a key, the value * */ public function setClassConfig($class, $config, $value = null) From 5a69d2e6c2290b005423a05db835ab2f79801a24 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 19 Oct 2014 02:32:52 -0700 Subject: [PATCH 0342/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 79bebbc9c..e7523dccb 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -722,7 +722,7 @@ public function get($datasetId, $optParams = array()) * The maximum number of results returned by this request. * @opt_param string projectId * Only return datasets which belong to this Google Developers Console project. Only accepts - * project numbers. + * project numbers. Returns all public projects if no project number is specified. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) From 5d62f91116d4c96a99b57bec36a5a10acb023899 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 19 Oct 2014 02:32:53 -0700 Subject: [PATCH 0343/1274] Updated Tagmanager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tagmanager.php | 384 +----------------------------- 1 file changed, 1 insertion(+), 383 deletions(-) diff --git a/src/Google/Service/Tagmanager.php b/src/Google/Service/Tagmanager.php index 15ee489c9..7a12d18b8 100644 --- a/src/Google/Service/Tagmanager.php +++ b/src/Google/Service/Tagmanager.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -89,20 +89,6 @@ public function __construct(Google_Client $client) 'path' => 'accounts', 'httpMethod' => 'GET', 'parameters' => array(), - ),'patch' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}', 'httpMethod' => 'PUT', @@ -177,25 +163,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}', 'httpMethod' => 'PUT', @@ -295,30 +262,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'macroId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', 'httpMethod' => 'PUT', @@ -423,30 +366,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', 'httpMethod' => 'PUT', @@ -551,30 +470,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', 'httpMethod' => 'PUT', @@ -679,30 +574,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', 'httpMethod' => 'PUT', @@ -807,30 +678,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', 'httpMethod' => 'PUT', @@ -939,30 +786,6 @@ public function __construct(Google_Client $client) 'type' => 'boolean', ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'publish' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', 'httpMethod' => 'POST', @@ -1111,21 +934,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'update' => array( 'path' => 'accounts/{accountId}/permissions/{permissionId}', 'httpMethod' => 'PUT', @@ -1186,24 +994,6 @@ public function listAccounts($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountsResponse"); } - /** - * Updates a GTM Account. This method supports patch semantics. (accounts.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the account in storage. - * @return Google_Service_Tagmanager_Account - */ - public function patch($accountId, Google_Service_Tagmanager_Account $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Account"); - } /** * Updates a GTM Account. (accounts.update) * @@ -1296,26 +1086,6 @@ public function listAccountsContainers($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainersResponse"); } - /** - * Updates a Container. This method supports patch semantics. (containers.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Container $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container in storage. - * @return Google_Service_Tagmanager_Container - */ - public function patch($accountId, $containerId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Container"); - } /** * Updates a Container. (containers.update) * @@ -1417,28 +1187,6 @@ public function listAccountsContainersMacros($accountId, $containerId, $optParam $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListMacrosResponse"); } - /** - * Updates a GTM Macro. This method supports patch semantics. (macros.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. - * @param Google_Macro $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the macro in storage. - * @return Google_Service_Tagmanager_Macro - */ - public function patch($accountId, $containerId, $macroId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Macro"); - } /** * Updates a GTM Macro. (macros.update) * @@ -1541,28 +1289,6 @@ public function listAccountsContainersRules($accountId, $containerId, $optParams $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListRulesResponse"); } - /** - * Updates a GTM Rule. This method supports patch semantics. (rules.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. - * @param Google_Rule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the rule in storage. - * @return Google_Service_Tagmanager_Rule - */ - public function patch($accountId, $containerId, $ruleId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Rule"); - } /** * Updates a GTM Rule. (rules.update) * @@ -1665,28 +1391,6 @@ public function listAccountsContainersTags($accountId, $containerId, $optParams $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListTagsResponse"); } - /** - * Updates a GTM Tag. This method supports patch semantics. (tags.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. - * @param Google_Tag $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the tag in storage. - * @return Google_Service_Tagmanager_Tag - */ - public function patch($accountId, $containerId, $tagId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Tag"); - } /** * Updates a GTM Tag. (tags.update) * @@ -1790,28 +1494,6 @@ public function listAccountsContainersTriggers($accountId, $containerId, $optPar $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListTriggersResponse"); } - /** - * Updates a GTM Trigger. This method supports patch semantics. (triggers.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. - * @param Google_Trigger $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the trigger in storage. - * @return Google_Service_Tagmanager_Trigger - */ - public function patch($accountId, $containerId, $triggerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Trigger"); - } /** * Updates a GTM Trigger. (triggers.update) * @@ -1915,29 +1597,6 @@ public function listAccountsContainersVariables($accountId, $containerId, $optPa $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListVariablesResponse"); } - /** - * Updates a GTM Variable. This method supports patch semantics. - * (variables.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. - * @param Google_Variable $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the variable in storage. - * @return Google_Service_Tagmanager_Variable - */ - public function patch($accountId, $containerId, $variableId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_Variable"); - } /** * Updates a GTM Variable. (variables.update) * @@ -2044,29 +1703,6 @@ public function listAccountsContainersVersions($accountId, $containerId, $optPar $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainerVersionsResponse"); } - /** - * Updates a Container Version. This method supports patch semantics. - * (versions.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param Google_ContainerVersion $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container version in storage. - * @return Google_Service_Tagmanager_ContainerVersion - */ - public function patch($accountId, $containerId, $containerVersionId, Google_Service_Tagmanager_ContainerVersion $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_ContainerVersion"); - } /** * Publishes a Container Version. (versions.publish) * @@ -2224,24 +1860,6 @@ public function listAccountsPermissions($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountUsersResponse"); } - /** - * Updates a user's Account & Container Permissions. This method supports patch - * semantics. (permissions.patch) - * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. - * @param Google_UserAccess $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_UserAccess - */ - public function patch($accountId, $permissionId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tagmanager_UserAccess"); - } /** * Updates a user's Account & Container Permissions. (permissions.update) * From 1321213f5c1d6cedc34d70cd08e7a256082c0444 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 19 Oct 2014 02:32:53 -0700 Subject: [PATCH 0344/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index d5c8bf7fa..fa815d17f 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -2051,7 +2051,8 @@ class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Googl * @param array $optParams Optional parameters. * * @opt_param int max-results - * The maximum number of filters to include in this response. + * The maximum number of account summaries to include in this response, where the largest + * acceptable value is 1000. * @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. @@ -8182,6 +8183,7 @@ class Google_Service_Analytics_Profile extends Google_Model public $currency; public $defaultPage; public $eCommerceTracking; + public $enhancedECommerceTracking; public $excludeQueryParameters; public $id; public $internalWebPropertyId; @@ -8262,6 +8264,16 @@ public function getECommerceTracking() return $this->eCommerceTracking; } + public function setEnhancedECommerceTracking($enhancedECommerceTracking) + { + $this->enhancedECommerceTracking = $enhancedECommerceTracking; + } + + public function getEnhancedECommerceTracking() + { + return $this->enhancedECommerceTracking; + } + public function setExcludeQueryParameters($excludeQueryParameters) { $this->excludeQueryParameters = $excludeQueryParameters; From 5ae124cbdc402276426940a2ea91573825634659 Mon Sep 17 00:00:00 2001 From: "Domenic R. Merenda" Date: Sun, 19 Oct 2014 20:32:27 -0700 Subject: [PATCH 0345/1274] Stores error text in separate variable --- src/Google/Auth/OAuth2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 882d9cb8f..0c1adab5a 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -112,15 +112,15 @@ public function authenticate($code) } else { $decodedResponse = json_decode($response->getResponseBody(), true); if ($decodedResponse != null && $decodedResponse['error']) { - $decodedResponse = $decodedResponse['error']; + $errorText = $decodedResponse['error']; if (isset($decodedResponse['error_description'])) { - $decodedResponse .= ": " . $decodedResponse['error_description']; + $errorText .= ": " . $decodedResponse['error_description']; } } throw new Google_Auth_Exception( sprintf( "Error fetching OAuth2 access token, message: '%s'", - $decodedResponse + $errorText ), $response->getResponseHttpCode() ); From b6fe0c4d4a4d0980f8fcf3ef79a9c52e2500bed7 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Mon, 20 Oct 2014 16:06:50 +0100 Subject: [PATCH 0346/1274] Don't use approval prompt and prompt together Fixes #338 --- src/Google/Auth/OAuth2.php | 8 ++++++-- tests/general/ApiOAuth2Test.php | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 0c1adab5a..f717c4ccb 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -144,11 +144,15 @@ public function createAuthUrl($scope) 'access_type' => $this->client->getClassConfig($this, 'access_type'), ); - $params = $this->maybeAddParam($params, 'approval_prompt'); + // Prefer prompt to approval prompt. + if ($this->client->getClassConfig($this, 'prompt')) { + $params = $this->maybeAddParam($params, 'prompt'); + } else { + $params = $this->maybeAddParam($params, 'approval_prompt'); + } $params = $this->maybeAddParam($params, 'login_hint'); $params = $this->maybeAddParam($params, 'hd'); $params = $this->maybeAddParam($params, 'openid.realm'); - $params = $this->maybeAddParam($params, 'prompt'); $params = $this->maybeAddParam($params, 'include_granted_scopes'); // If the list of scopes contains plus.login, add request_visible_actions diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 154280973..4df9d14c1 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -140,10 +140,9 @@ public function testCreateAuthUrl() . "&client_id=clientId1" . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&access_type=offline" - . "&approval_prompt=force" + . "&prompt=select_account" . "&hd=example.com" . "&openid.realm=example.com" - . "&prompt=select_account" . "&include_granted_scopes=true"; $this->assertEquals($expected, $authUrl); } From 276a0ec263d8e1d39d89c0d659e4bdae542a71b0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 20 Oct 2014 19:22:28 -0400 Subject: [PATCH 0347/1274] Fix year and copyright owner. --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index a148ba564..aeb95e0da 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright 2013 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From ef8f08d8a0cfef5e9d4525e66e0c1eae098a5972 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 21 Oct 2014 02:35:47 -0700 Subject: [PATCH 0348/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 3f80f8a90..bb0ed8625 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -6082,6 +6082,7 @@ class Google_Service_Compute_AttachedDisk extends Google_Collection public $index; protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; protected $initializeParamsDataType = ''; + public $interface; public $kind; public $licenses; public $mode; @@ -6138,6 +6139,16 @@ public function getInitializeParams() return $this->initializeParams; } + public function setInterface($interface) + { + $this->interface = $interface; + } + + public function getInterface() + { + return $this->interface; + } + public function setKind($kind) { $this->kind = $kind; From e9b8f8a6e922d73a42e58554cdf2228cfc6040ba Mon Sep 17 00:00:00 2001 From: Laurent Godet Date: Tue, 21 Oct 2014 10:48:03 +0100 Subject: [PATCH 0349/1274] Force CURLOPT_SSLVERSION negociation to use TLS --- src/Google/IO/Curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 4dff61f53..c53d522b3 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -61,6 +61,7 @@ public function executeRequest(Google_Http_Request $request) curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); + curl_setopt($curl, CURLOPT_SSLVERSION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); From 804b210878294d017546389341aa1c90e1107a00 Mon Sep 17 00:00:00 2001 From: Abu Salam Date: Tue, 21 Oct 2014 18:40:03 +0530 Subject: [PATCH 0350/1274] Updated PHPDoc comments --- src/Google/Config.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index 84083058f..136fb1f47 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -107,9 +107,9 @@ public function __construct($ini_file_location = null) * Set configuration specific to a given class. * $config->setClassConfig('Google_Cache_File', * array('directory' => '/tmp/cache')); - * @param $class The class name for the configuration + * @param $class string The class name for the configuration * @param $config string key or an array of configuration values - * @param $value optional - if $config is a key, the value + * @param $value string optional - if $config is a key, the value */ public function setClassConfig($class, $config, $value = null) { @@ -156,7 +156,7 @@ public function getAuthClass() /** * Set the auth class. * - * @param $class the class name to set + * @param $class string the class name to set */ public function setAuthClass($class) { @@ -172,7 +172,7 @@ public function setAuthClass($class) /** * Set the IO class. * - * @param $class the class name to set + * @param $class string the class name to set */ public function setIoClass($class) { @@ -188,7 +188,7 @@ public function setIoClass($class) /** * Set the cache class. * - * @param $class the class name to set + * @param $class string the class name to set */ public function setCacheClass($class) { @@ -203,6 +203,7 @@ public function setCacheClass($class) /** * Return the configured IO class. + * * @return string */ public function getIoClass() @@ -229,7 +230,7 @@ public function getApplicationName() /** * Set the client ID for the auth class. - * @param $key string - the API console client ID + * @param $clientId string - the API console client ID */ public function setClientId($clientId) { @@ -238,7 +239,7 @@ public function setClientId($clientId) /** * Set the client secret for the auth class. - * @param $key string - the API console client secret + * @param $secret string - the API console client secret */ public function setClientSecret($secret) { @@ -248,7 +249,8 @@ public function setClientSecret($secret) /** * Set the redirect uri for the auth class. Note that if using the * Javascript based sign in flow, this should be the string 'postmessage'. - * @param $key string - the URI that users should be redirected to + * + * @param $uri string - the URI that users should be redirected to */ public function setRedirectUri($uri) { From 60aee5f2ff74a39c34f409b4a6be703a7a061922 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 22 Oct 2014 02:37:17 -0700 Subject: [PATCH 0351/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index c31af5882..23c1d6bfc 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -5374,6 +5374,8 @@ class Google_Service_MapsEngine_PolygonStyle extends Google_Model ); protected $fillType = 'Google_Service_MapsEngine_Color'; protected $fillDataType = ''; + protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; + protected $labelDataType = ''; protected $strokeType = 'Google_Service_MapsEngine_Border'; protected $strokeDataType = ''; @@ -5387,6 +5389,16 @@ public function getFill() return $this->fill; } + public function setLabel(Google_Service_MapsEngine_LabelStyle $label) + { + $this->label = $label; + } + + public function getLabel() + { + return $this->label; + } + public function setStroke(Google_Service_MapsEngine_Border $stroke) { $this->stroke = $stroke; From f2da1b2b1557d9e54a3f7175edf7c473ebe2c9fe Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 22 Oct 2014 02:37:18 -0700 Subject: [PATCH 0352/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 52 +++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 29084a5fc..77bdb6688 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -263,6 +263,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'patch' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -332,6 +340,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -772,8 +788,13 @@ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $pos * (datafeeds.listDatafeeds) * * @param string $merchantId - * + * The ID of the managing account. * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. * @return Google_Service_ShoppingContent_DatafeedsListResponse */ public function listDatafeeds($merchantId, $optParams = array()) @@ -865,8 +886,13 @@ public function get($merchantId, $datafeedId, $optParams = array()) * (datafeedstatuses.listDatafeedstatuses) * * @param string $merchantId - * + * The ID of the managing account. * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse */ public function listDatafeedstatuses($merchantId, $optParams = array()) @@ -2427,6 +2453,7 @@ class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collec protected $internal_gapi_mappings = array( ); public $kind; + public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; @@ -2440,6 +2467,16 @@ public function getKind() return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) { $this->resources = $resources; @@ -2597,6 +2634,7 @@ class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google protected $internal_gapi_mappings = array( ); public $kind; + public $nextPageToken; protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; @@ -2610,6 +2648,16 @@ public function getKind() return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) { $this->resources = $resources; From 5d1276fcc953b293f90bb73ae1d0a441833c28c3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 22 Oct 2014 02:37:19 -0700 Subject: [PATCH 0353/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 9c5558fc7..c19cc245a 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -536,7 +536,8 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc * Identifier for the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The start time of the four-hour backup window. The backup can occur any time in the window. The + * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ @@ -808,7 +809,8 @@ public function restart($project, $instance, $optParams = array()) * The identifier of the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The start time of the four-hour backup window. The backup can occur any time in the window. The + * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse */ @@ -1363,6 +1365,7 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; + public $ipv6Address; public $kind; public $masterInstanceName; public $maxDiskSize; @@ -1435,6 +1438,16 @@ public function getIpAddresses() return $this->ipAddresses; } + public function setIpv6Address($ipv6Address) + { + $this->ipv6Address = $ipv6Address; + } + + public function getIpv6Address() + { + return $this->ipv6Address; + } + public function setKind($kind) { $this->kind = $kind; @@ -2301,6 +2314,7 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection ); public $authorizedNetworks; public $enabled; + public $kind; public $requireSsl; public function setAuthorizedNetworks($authorizedNetworks) @@ -2323,6 +2337,16 @@ public function getEnabled() return $this->enabled; } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setRequireSsl($requireSsl) { $this->requireSsl = $requireSsl; From 615d1930d235b996487318fcbe153c07ad10daa9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 22 Oct 2014 02:37:21 -0700 Subject: [PATCH 0354/1274] Updated Tagmanager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tagmanager.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/Tagmanager.php b/src/Google/Service/Tagmanager.php index 7a12d18b8..c0fe4d0e0 100644 --- a/src/Google/Service/Tagmanager.php +++ b/src/Google/Service/Tagmanager.php @@ -31,19 +31,19 @@ */ class Google_Service_Tagmanager extends Google_Service { - /** Google Tag Manager. */ + /** Delete your Google Tag Manager containers. */ const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; - /** Google Tag Manager. */ + /** Manage your Google Tag Manager containers. */ const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; - /** Google Tag Manager. */ + /** Manage your Google Tag Manager container versions. */ const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; - /** Google Tag Manager. */ + /** Manage your Google Tag Manager accounts. */ const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; - /** Google Tag Manager. */ + /** Manage user permissions of your Google Tag Manager data. */ const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; - /** Google Tag Manager. */ + /** Publish your Google Tag Manager containers. */ const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; - /** Google Tag Manager. */ + /** View your Google Tag Manager containers. */ const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; public $accounts; From 56661034a3559d16dd5ae326b04203a44920dd24 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 22 Oct 2014 10:44:23 +0100 Subject: [PATCH 0355/1274] Skip variant test for now --- tests/general/ApiModelTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index 5240a279f..b1841fa11 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -81,6 +81,7 @@ public function testModelMutation() } public function testVariantTypes() { + $this->markTestSkipped('Pending variant support in templates.'); $feature = new Google_Service_MapsEngine_Feature(); $geometry = new Google_Service_MapsEngine_GeoJsonPoint(); $geometry->setCoordinates(array(1, 0)); From decf9b49c73b6846aa8375ca405d2e37c27b0bdc Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 22 Oct 2014 11:02:30 +0100 Subject: [PATCH 0356/1274] Fix up AppIdentity class cc @murgatroid99 --- src/Google/Auth/AppIdentity.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 82104b06b..94b832e3e 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -30,7 +30,6 @@ class Google_Auth_AppIdentity extends Google_Auth_Abstract { const CACHE_PREFIX = "Google_Auth_AppIdentity::"; - const CACHE_LIFETIME = 1500; private $key = null; private $client; private $token = false; @@ -49,18 +48,22 @@ public function authenticateForScope($scopes) if ($this->token && $this->tokenScopes == $scopes) { return $this->token; } - $memcache = new Memcached(); - $this->token = $memcache->get(self::CACHE_PREFIX . $scopes); + + $cacheKey = self::CACHE_PREFIX; + if (is_string($scopes)) { + $cacheKey .= $scopes; + } else if (is_array($scopes)) { + $cacheKey .= implode(":", $scopes); + } + + $this->token = $this->client->getCache()->get($cacheKey); if (!$this->token) { $this->token = AppIdentityService::getAccessToken($scopes); if ($this->token) { - $memcache_key = self::CACHE_PREFIX; - if (is_string($scopes)) { - $memcache_key .= $scopes; - } else if (is_array($scopes)) { - $memcache_key .= implode(":", $scopes); - } - $memcache->set($memcache_key, $this->token, self::CACHE_LIFETIME); + $this->client->getCache()->set( + $cacheKey, + $this->token + ); } } $this->tokenScopes = $scopes; @@ -80,7 +83,7 @@ public function authenticateForScope($scopes) public function authenticatedRequest(Google_Http_Request $request) { $request = $this->sign($request); - return $this->io->makeRequest($request); + return $this->client->getIo()->makeRequest($request); } public function sign(Google_Http_Request $request) From 141e1b8f3ac6b27b8c5523a6baeaa02f4d15c808 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 22 Oct 2014 11:10:01 +0100 Subject: [PATCH 0357/1274] Fix some test related issues Make tests set time and work from root. Fixed #365 and #367 --- tests/BaseTest.php | 6 +++--- tests/bootstrap.php | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index d58ad946e..180d6c109 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once 'bootstrap.php'; +require_once 'Google/Client.php'; class BaseTest extends PHPUnit_Framework_TestCase { - const KEY = ""; + const KEY = ""; private $token; private $memcacheHost; private $memcachePort; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1633e28d5..cc40324bd 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,3 +1,5 @@ Date: Wed, 22 Oct 2014 11:53:28 +0100 Subject: [PATCH 0358/1274] Fix lint errors in examples and src/ CC @silvolu - needed some munging, but lint bashed these, --- examples/batch.php | 2 +- examples/fileupload.php | 16 ++++++++++------ examples/idtoken.php | 24 ++++++++++++++---------- examples/multi-api.php | 25 +++++++++++++------------ examples/service-account.php | 4 ++-- examples/simplefileupload.php | 22 +++++++++++++--------- examples/styles/style.css | 14 +++++++------- examples/user-example.php | 34 ++++++++++++++++++++-------------- src/Google/Model.php | 5 +++-- 9 files changed, 83 insertions(+), 63 deletions(-) diff --git a/examples/batch.php b/examples/batch.php index a0b6bc87e..3a51ab9fc 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -32,7 +32,7 @@ ************************************************/ $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); -$apiKey = ""; // Change to your API key. +$apiKey = ""; // Change to your API key. // Warn if the API key isn't changed! if ($apiKey == '') { echo missingApiKeyWarning(); diff --git a/examples/fileupload.php b/examples/fileupload.php index 0b6574211..0940e1c03 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -118,16 +118,20 @@ ?>
- - - +Connect Me!"; +} +?>
-
- +
-
- - - - Logout - +Connect Me!"; +} else { + echo "Logout"; +} +?>
- -
- -
- +
+ +
- - - Results Of Drive List:"; - foreach ($dr_results as $item) { - echo $item->title, "
\n"; - } +Connect Me!"; +} else { + echo "

Results Of Drive List:

"; + foreach ($dr_results as $item) { + echo $item->title, "
\n"; + } - echo "

Results Of YouTube Likes:

"; - foreach ($yt_results as $item) { - echo $item['snippet']['title'], "
\n"; - } - } ?> + echo "

Results Of YouTube Likes:

"; + foreach ($yt_results as $item) { + echo $item['snippet']['title'], "
\n"; + } +} ?>
'; //Client ID -$service_account_name = ''; //Email Address +$service_account_name = ''; //Email Address $key_file_location = ''; //key.p12 echo pageHeader("Service Account Access"); @@ -69,7 +69,7 @@ $key ); $client->setAssertionCredentials($cred); -if($client->getAuth()->isAccessTokenExpired()) { +if ($client->getAuth()->isAccessTokenExpired()) { $client->getAuth()->refreshTokenWithAssertion($cred); } $_SESSION['service_token'] = $client->getAccessToken(); diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index ef86675c0..1d8fbdaa7 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -105,17 +105,21 @@ ?>
- - - +Connect Me!"; +} +?>
- -
- title); ?> - title); ?> -
- +
+title); + var_dump($result2->title); +} +?> +
- - - -
- - -
- Logout - +Connect Me!"; +} else { + echo << + + + + Logout +END; +} +?>
- -
- -
- +
+ +
Date: Wed, 22 Oct 2014 12:41:00 +0100 Subject: [PATCH 0359/1274] Lint bash tests cc @silvolu --- LICENSE | 2 +- tests/AllTests.php | 6 +- tests/BaseTest.php | 34 ++- tests/OAuthHelper.php | 21 +- tests/adsense/AdSenseTest.php | 315 ++++++++++++-------- tests/bootstrap.php | 10 +- tests/general/ApiBatchRequestTest.php | 9 +- tests/general/ApiCacheParserTest.php | 220 ++++++++------ tests/general/ApiClientTest.php | 69 +++-- tests/general/ApiModelTest.php | 7 +- tests/general/ApiOAuth2Test.php | 107 ++++--- tests/general/AuthTest.php | 235 +++++++++------ tests/general/CacheTest.php | 16 +- tests/general/GeneralTests.php | 7 +- tests/general/IoTest.php | 26 +- tests/general/RequestTest.php | 5 +- tests/general/ServiceTest.php | 50 ++-- tests/general/URITemplateTest.php | 255 ++++++++++------ tests/pagespeed/AllPageSpeedTests.php | 6 +- tests/pagespeed/PageSpeedTest.php | 9 +- tests/plus/PlusTest.php | 25 +- tests/tasks/AllTasksTests.php | 6 +- tests/tasks/TasksTest.php | 24 +- tests/urlshortener/AllUrlShortenerTests.php | 6 +- tests/urlshortener/UrlShortenerTests.php | 12 +- 25 files changed, 903 insertions(+), 579 deletions(-) diff --git a/LICENSE b/LICENSE index aeb95e0da..a148ba564 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2013 Google Inc. +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/tests/AllTests.php b/tests/AllTests.php index df71b8623..232a656dc 100644 --- a/tests/AllTests.php +++ b/tests/AllTests.php @@ -31,8 +31,10 @@ require_once 'plus/PlusTest.php'; require_once 'youtube/YouTubeTest.php'; -class AllTests { - public static function suite() { +class AllTests +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('All Google API PHP Client tests'); $suite->addTestSuite(YouTubeTests::suite()); diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 180d6c109..d113718e7 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -17,7 +17,8 @@ require_once 'bootstrap.php'; require_once 'Google/Client.php'; -class BaseTest extends PHPUnit_Framework_TestCase { +class BaseTest extends PHPUnit_Framework_TestCase +{ const KEY = ""; private $token; private $memcacheHost; @@ -26,7 +27,7 @@ class BaseTest extends PHPUnit_Framework_TestCase { public function __construct() { parent::__construct(); - // Fill in a token JSON here and you can test the oauth token + // Fill in a token JSON here and you can test the oauth token // requiring functions. // $this->token = ''; @@ -34,17 +35,18 @@ public function __construct() $this->memcachePort = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; } - public function getClient() { - $client = new Google_Client(); - $client->setDeveloperKey(self::KEY); - if (strlen($this->token)) { - $client->setAccessToken($this->token); - } - if (strlen($this->memcacheHost)) { - $client->setClassConfig('Google_Cache_Memcache', 'host', $this->memcacheHost); - $client->setClassConfig('Google_Cache_Memcache', 'port', $this->memcachePort); - } - return $client; + public function getClient() + { + $client = new Google_Client(); + $client->setDeveloperKey(self::KEY); + if (strlen($this->token)) { + $client->setAccessToken($this->token); + } + if (strlen($this->memcacheHost)) { + $client->setClassConfig('Google_Cache_Memcache', 'host', $this->memcacheHost); + $client->setClassConfig('Google_Cache_Memcache', 'port', $this->memcachePort); + } + return $client; } public function testClientConstructor() @@ -52,10 +54,11 @@ public function testClientConstructor() $this->assertInstanceOf('Google_Client', $this->getClient()); } - public function testIncludes() { + public function testIncludes() + { $prefix = dirname(dirname(__FILE__)) . '/src/'; $path = dirname(dirname(__FILE__)) . '/src/Google/Service'; - foreach(glob($path . "/*.php") as $file) { + foreach (glob($path . "/*.php") as $file) { // Munge prefix so we don't double require. $this->assertEquals(1, require_once(str_replace($prefix, '', $file))); } @@ -69,5 +72,4 @@ public function checkToken() } return true; } - } diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 25d8c45cd..24ab858be 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -15,23 +15,22 @@ * limitations under the License. */ include_once 'bootstrap.php'; -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once 'Google/Client.php'; $client = new Google_Client(); -$client->setScopes(array( - "https://www.googleapis.com/auth/plus.me", - "https://www.googleapis.com/auth/urlshortener", - "https://www.googleapis.com/auth/tasks", - "https://www.googleapis.com/auth/adsense", - "https://www.googleapis.com/auth/youtube" -)); +$client->setScopes( + array( + "https://www.googleapis.com/auth/plus.me", + "https://www.googleapis.com/auth/urlshortener", + "https://www.googleapis.com/auth/tasks", + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/youtube" + ) +); $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); // Visit https://code.google.com/apis/console to // generate your oauth2_client_id, oauth2_client_secret, and to // register your oauth2_redirect_uri. -$client->setClientId(""); -$client->setClientSecret(""); - $authUrl = $client->createAuthUrl(); diff --git a/tests/adsense/AdSenseTest.php b/tests/adsense/AdSenseTest.php index 964765899..9152976e6 100644 --- a/tests/adsense/AdSenseTest.php +++ b/tests/adsense/AdSenseTest.php @@ -17,8 +17,10 @@ require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class AdsenseTests extends PHPUnit_Framework_TestSuite { - public static function suite() { +class AdsenseTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('AdSense Management API tests'); $suite->addTestSuite('AdSenseManagementTest'); @@ -26,14 +28,17 @@ public static function suite() { } } -class AdSenseManagementTest extends BaseTest { +class AdSenseManagementTest extends BaseTest +{ public $adsense; - public function __construct() { + public function __construct() + { parent::__construct(); $this->adsense = new Google_Service_AdSense($this->getClient()); } - public function testAccountsList() { + public function testAccountsList() + { if (!$this->checkToken()) { return; } @@ -47,7 +52,8 @@ public function testAccountsList() { /** * @depends testAccountsList */ - public function testAccountsGet() { + public function testAccountsGet() + { $accounts = $this->adsense->accounts->listAccounts(); $account = $this->getRandomElementFromArray($accounts['items']); $retrievedAccount = $this->adsense->accounts->get($account['id']); @@ -57,25 +63,31 @@ public function testAccountsGet() { /** * @depends testAccountsList */ - public function testAccountsReportGenerate() { + public function testAccountsReportGenerate() + { $startDate = '2011-01-01'; $endDate = '2011-01-31'; $optParams = $this->getReportOptParams(); $accounts = $this->adsense->accounts->listAccounts(); $accountId = $accounts['items'][0]['id']; - $report = $this->adsense->accounts_reports->generate - ($accountId, $startDate, $endDate, $optParams); + $report = $this->adsense->accounts_reports->generate( + $accountId, + $startDate, + $endDate, + $optParams + ); $this->checkReport($report); } /** * @depends testAccountsList */ - public function testAccountsAdClientsList() { + public function testAccountsAdClientsList() + { $accounts = $this->adsense->accounts->listAccounts(); $account = $this->getRandomElementFromArray($accounts['items']); - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); $this->checkAdClientsCollection($adClients); } @@ -83,14 +95,16 @@ public function testAccountsAdClientsList() { * @depends testAccountsList * @depends testAccountsAdClientsList */ - public function testAccountsAdUnitsList() { + public function testAccountsAdUnitsList() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits - ($account['id'], $adClient['id']); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( + $account['id'], + $adClient['id'] + ); $this->checkAdUnitsCollection($adUnits); break 2; } @@ -101,15 +115,17 @@ public function testAccountsAdUnitsList() { * @depends testAccountsList * @depends testAccountsAdClientsList */ - public function testAccountsAdUnitsGet() { + public function testAccountsAdUnitsGet() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits - ($account['id'], $adClient['id']); - if(array_key_exists('items', $adUnits)) { + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $adUnits)) { $adUnit = $this->getRandomElementFromArray($adUnits['items']); $this->checkAdUnitElement($adUnit); break 2; @@ -122,12 +138,12 @@ public function testAccountsAdUnitsGet() { * @depends testAccountsList * @depends testAccountsAdClientsList */ - public function testAccountsCustomChannelsList() { + public function testAccountsCustomChannelsList() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { $customChannels = $this->adsense->accounts_customchannels ->listAccountsCustomchannels($account['id'], $adClient['id']); $this->checkCustomChannelsCollection($customChannels); @@ -140,17 +156,20 @@ public function testAccountsCustomChannelsList() { * @depends testAccountsList * @depends testAccountsAdClientsList */ - public function testAccountsCustomChannelsGet() { + public function testAccountsCustomChannelsGet() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $customChannels = $this->adsense->accounts_customchannels - ->listAccountsCustomchannels($account['id'], $adClient['id']); - if(array_key_exists('items', $customChannels)) { - $customChannel = $this->getRandomElementFromArray - ($customChannels['items']); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + $customChannel = + $this->getRandomElementFromArray($customChannels['items']); $this->checkCustomChannelElement($customChannel); break 2; } @@ -162,14 +181,17 @@ public function testAccountsCustomChannelsGet() { * @depends testAccountsList * @depends testAccountsAdClientsList */ - public function testAccountsUrlChannelsList() { + public function testAccountsUrlChannelsList() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $urlChannels = $this->adsense->accounts_urlchannels - ->listAccountsUrlchannels($account['id'], $adClient['id']); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $urlChannels = + $this->adsense->accounts_urlchannels->listAccountsUrlchannels( + $account['id'], + $adClient['id'] + ); $this->checkUrlChannelsCollection($urlChannels); break 2; } @@ -181,19 +203,22 @@ public function testAccountsUrlChannelsList() { * @depends testAccountsAdClientsList * @depends testAccountsAdUnitsList */ - public function testAccountsAdUnitsCustomChannelsList() { + public function testAccountsAdUnitsCustomChannelsList() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits - ->listAccountsAdunits($account['id'], $adClient['id']); - if(array_key_exists('items', $adUnits)) { - foreach($adUnits['items'] as $adUnit) { - $customChannels = $this->adsense->accounts_adunits_customchannels - ->listAccountsAdunitsCustomchannels - ($account['id'], $adClient['id'], $adUnit['id']); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = + $this->adsense->accounts_adunits->listAccountsAdunits($account['id'], $adClient['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->accounts_adunits_customchannels->listAccountsAdunitsCustomchannels( + $account['id'], + $adClient['id'], + $adUnit['id'] + ); $this->checkCustomChannelsCollection($customChannels); // it's too expensive to go through each, if one is correct good break 3; @@ -208,19 +233,26 @@ public function testAccountsAdUnitsCustomChannelsList() { * @depends testAccountsAdClientsList * @depends testAccountsCustomChannelsList */ - public function testAccountsCustomChannelsAdUnitsList() { + public function testAccountsCustomChannelsAdUnitsList() + { $accounts = $this->adsense->accounts->listAccounts(); - foreach($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients - ($account['id']); - foreach($adClients['items'] as $adClient) { - $customChannels = $this->adsense->accounts_customchannels - ->listAccountsCustomchannels($account['id'], $adClient['id']); - if(array_key_exists('items', $customChannels)) { - foreach($customChannels['items'] as $customChannel) { - $adUnits = $this->adsense->accounts_customchannels_adunits - ->listAccountsCustomchannelsAdunits - ($account['id'], $adClient['id'], $customChannel['id']); + foreach ($accounts['items'] as $account) { + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->accounts_customchannels_adunits->listAccountsCustomchannelsAdunits( + $account['id'], + $adClient['id'], + $customChannel['id'] + ); $this->checkAdUnitsCollection($adUnits); // it's too expensive to go through each, if one is correct good break 3; @@ -230,7 +262,8 @@ public function testAccountsCustomChannelsAdUnitsList() { } } - public function testAdClientsList() { + public function testAdClientsList() + { if (!$this->checkToken()) { return; } @@ -241,9 +274,10 @@ public function testAdClientsList() { /** * @depends testAdClientsList */ - public function testAdUnitsList() { + public function testAdUnitsList() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { + foreach ($adClients['items'] as $adClient) { $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); $this->checkAdUnitsCollection($adUnits); } @@ -252,11 +286,12 @@ public function testAdUnitsList() { /** * @depends testAdClientsList */ - public function testAdUnitsGet() { + public function testAdUnitsGet() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { + foreach ($adClients['items'] as $adClient) { $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if(array_key_exists('items', $adUnits)) { + if (array_key_exists('items', $adUnits)) { $adUnit = $this->getRandomElementFromArray($adUnits['items']); $this->checkAdUnitElement($adUnit); break 1; @@ -268,14 +303,18 @@ public function testAdUnitsGet() { * @depends testAdClientsList * @depends testAdUnitsList */ - public function testAdUnitsCustomChannelsList() { + public function testAdUnitsCustomChannelsList() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { + foreach ($adClients['items'] as $adClient) { $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if(array_key_exists('items', $adUnits)) { - foreach($adUnits['items'] as $adUnit) { - $customChannels = $this->adsense->adunits_customchannels - ->listAdunitsCustomchannels($adClient['id'], $adUnit['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->adunits_customchannels->listAdunitsCustomchannels( + $adClient['id'], + $adUnit['id'] + ); $this->checkCustomChannelsCollection($customChannels); break 2; } @@ -286,11 +325,12 @@ public function testAdUnitsCustomChannelsList() { /** * @depends testAdClientsList */ - public function testCustomChannelsList() { + public function testCustomChannelsList() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels - ($adClient['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->customchannels->listCustomchannels($adClient['id']); $this->checkCustomChannelsCollection($customChannels); } } @@ -298,14 +338,13 @@ public function testCustomChannelsList() { /** * @depends testAdClientsList */ - public function testCustomChannelsGet() { + public function testCustomChannelsGet() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels - ($adClient['id']); - if(array_key_exists('items', $customChannels)) { - $customChannel = $this->getRandomElementFromArray - ($customChannels['items']) ; + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + $customChannel = $this->getRandomElementFromArray($customChannels['items']); $this->checkCustomChannelElement($customChannel); break 1; } @@ -316,16 +355,18 @@ public function testCustomChannelsGet() { * @depends testAdClientsList * @depends testCustomChannelsList */ - public function testCustomChannelsAdUnitsList() { + public function testCustomChannelsAdUnitsList() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels - ($adClient['id']); - if(array_key_exists('items', $customChannels)) { - foreach($customChannels['items'] as $customChannel) { - $adUnits = $this->adsense->customchannels_adunits - ->listCustomchannelsAdunits - ($adClient['id'], $customChannel['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->customchannels_adunits->listCustomchannelsAdunits( + $adClient['id'], + $customChannel['id'] + ); $this->checkAdUnitsCollection($adUnits); break 2; } @@ -336,37 +377,39 @@ public function testCustomChannelsAdUnitsList() { /** * @depends testAdClientsList */ - public function testUrlChannelsList() { + public function testUrlChannelsList() + { $adClients = $this->adsense->adclients->listAdclients(); - foreach($adClients['items'] as $adClient) { - $urlChannels = $this->adsense->urlchannels->listUrlchannels - ($adClient['id']); + foreach ($adClients['items'] as $adClient) { + $urlChannels = $this->adsense->urlchannels->listUrlchannels($adClient['id']); $this->checkUrlChannelsCollection($urlChannels); } } - public function testReportsGenerate() { + public function testReportsGenerate() + { if (!$this->checkToken()) { return; } $startDate = '2011-01-01'; $endDate = '2011-01-31'; $optParams = $this->getReportOptParams(); - $report = $this->adsense->reports->generate - ($startDate, $endDate, $optParams); + $report = $this->adsense->reports->generate($startDate, $endDate, $optParams); $this->checkReport($report); } - private function checkAccountElement($account) { + private function checkAccountElement($account) + { $this->assertArrayHasKey('kind', $account); $this->assertArrayHasKey('id', $account); $this->assertArrayHasKey('name', $account); } - private function checkAdClientsCollection($adClients) { + private function checkAdClientsCollection($adClients) + { $this->assertArrayHasKey('kind', $adClients); $this->assertEquals($adClients['kind'], 'adsense#adClients'); - foreach($adClients['items'] as $adClient) { + foreach ($adClients['items'] as $adClient) { $this->assertArrayHasKey('id', $adClient); $this->assertArrayHasKey('kind', $adClient); $this->assertArrayHasKey('productCode', $adClient); @@ -374,17 +417,19 @@ private function checkAdClientsCollection($adClients) { } } - private function checkAdUnitsCollection($adUnits) { + private function checkAdUnitsCollection($adUnits) + { $this->assertArrayHasKey('kind', $adUnits); $this->assertEquals($adUnits['kind'], 'adsense#adUnits'); - if(array_key_exists('items', $adUnits)) { - foreach($adUnits['items'] as $adUnit) { + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { $this->checkAdUnitElement($adUnit); } } } - private function checkAdUnitElement($adUnit) { + private function checkAdUnitElement($adUnit) + { $this->assertArrayHasKey('code', $adUnit); $this->assertArrayHasKey('id', $adUnit); $this->assertArrayHasKey('kind', $adUnit); @@ -392,28 +437,31 @@ private function checkAdUnitElement($adUnit) { $this->assertArrayHasKey('status', $adUnit); } - private function checkCustomChannelsCollection($customChannels) { + private function checkCustomChannelsCollection($customChannels) + { $this->assertArrayHasKey('kind', $customChannels); $this->assertEquals($customChannels['kind'], 'adsense#customChannels'); - if(array_key_exists('items', $customChannels)) { - foreach($customChannels['items'] as $customChannel) { + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { $this->checkCustomChannelElement($customChannel); } } } - private function checkCustomChannelElement($customChannel) { + private function checkCustomChannelElement($customChannel) + { $this->assertArrayHasKey('kind', $customChannel); $this->assertArrayHasKey('id', $customChannel); $this->assertArrayHasKey('code', $customChannel); $this->assertArrayHasKey('name', $customChannel); } - private function checkUrlChannelsCollection($urlChannels) { + private function checkUrlChannelsCollection($urlChannels) + { $this->assertArrayHasKey('kind', $urlChannels); $this->assertEquals($urlChannels['kind'], 'adsense#urlChannels'); - if(array_key_exists('items', $urlChannels)) { - foreach($urlChannels['items'] as $urlChannel) { + if (array_key_exists('items', $urlChannels)) { + foreach ($urlChannels['items'] as $urlChannel) { $this->assertArrayHasKey('kind', $urlChannel); $this->assertArrayHasKey('id', $urlChannel); $this->assertArrayHasKey('urlPattern', $urlChannel); @@ -421,7 +469,8 @@ private function checkUrlChannelsCollection($urlChannels) { } } - private function getReportOptParams() { + private function getReportOptParams() + { return array( 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), 'dimension' => array ('DATE', 'AD_CLIENT_ID'), @@ -430,17 +479,18 @@ private function getReportOptParams() { ); } - private function checkReport($report) { + private function checkReport($report) + { $this->assertArrayHasKey('kind', $report); $this->assertEquals($report['kind'], 'adsense#report'); $this->assertArrayHasKey('totalMatchedRows', $report); $this->assertGreaterThan(0, count($report->headers)); - foreach($report['headers'] as $header) { + foreach ($report['headers'] as $header) { $this->assertArrayHasKey('name', $header); $this->assertArrayHasKey('type', $header); } - if(array_key_exists('items', $report)) { - foreach($report['items'] as $row) { + if (array_key_exists('items', $report)) { + foreach ($report['items'] as $row) { $this->assertCount(4, $row); } } @@ -448,7 +498,8 @@ private function checkReport($report) { $this->assertArrayHasKey('averages', $report); } - private function getRandomElementFromArray($array) { + private function getRandomElementFromArray($array) + { $elementKey = array_rand($array); return $array[$elementKey]; } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index cc40324bd..c08ec087e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,5 +1,7 @@ execute(); $this->assertTrue(isset($result['response-key2'])); - $this->assertInstanceOf('Google_Service_Exception', - $result['response-key1']); + $this->assertInstanceOf( + 'Google_Service_Exception', + $result['response-key1'] + ); } } diff --git a/tests/general/ApiCacheParserTest.php b/tests/general/ApiCacheParserTest.php index d67622c6e..ca9866822 100644 --- a/tests/general/ApiCacheParserTest.php +++ b/tests/general/ApiCacheParserTest.php @@ -21,8 +21,10 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class ApiCacheParserTest extends BaseTest { - public function testIsResponseCacheable() { +class ApiCacheParserTest extends BaseTest +{ + public function testIsResponseCacheable() + { $client = $this->getClient(); $resp = new Google_Http_Request('http://localhost', 'POST'); $result = Google_Http_CacheParser::isResponseCacheable($resp); @@ -32,25 +34,29 @@ public function testIsResponseCacheable() { // revalidation. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 1998 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 1998 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 1998 02:28:12 GMT', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 1998 14:19:41 GMT', + 'Date' => 'Mon, 29 Jun 1998 02:28:12 GMT', + 'Last-Modified' => 'Mon, 29 Jun 1998 02:28:12 GMT', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); // Verify cacheable responses. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', + 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertTrue($result); @@ -58,27 +64,31 @@ public function testIsResponseCacheable() { $resp = new Google_Http_Request('http://localhost', 'HEAD'); $resp->setResponseHttpCode('200'); $resp->setResponseBody(null); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', + 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertTrue($result); // Verify that Vary: * cannot get cached. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Vary' => 'foo', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', + 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'Vary' => 'foo', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); @@ -86,37 +96,43 @@ public function testIsResponseCacheable() { $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('201'); $resp->setResponseBody(null); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', + 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); // Verify pragma: no-cache. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Pragma' => 'no-cache', - 'Cache-Control' => 'private, max-age=0, must-revalidate, no-transform', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', + 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', + 'Pragma' => 'no-cache', + 'Cache-Control' => 'private, max-age=0, must-revalidate, no-transform', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); // Verify Cache-Control: no-store. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Cache-Control' => 'no-store', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', + 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', + 'Cache-Control' => 'no-store', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); @@ -124,17 +140,20 @@ public function testIsResponseCacheable() { $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setRequestHeaders(array('Authorization' => 'Bearer Token')); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', + 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', + 'ETag' => '3e86-410-3596fbbc', + ) + ); $result = Google_Http_CacheParser::isResponseCacheable($resp); $this->assertFalse($result); } - public function testIsExpired() { + public function testIsExpired() + { $now = time(); $future = $now + (365 * 24 * 60 * 60); $client = $this->getClient(); @@ -142,51 +161,62 @@ public function testIsExpired() { // Expires 1 year in the future. Response is fresh. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertFalse(Google_Http_CacheParser::isExpired($resp)); // The response expires soon. Response is fresh. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => gmdate('D, d M Y H:i:s', $now + 2) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Expires' => gmdate('D, d M Y H:i:s', $now + 2) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertFalse(Google_Http_CacheParser::isExpired($resp)); // Expired 1 year ago. Response is stale. $past = $now - (365 * 24 * 60 * 60); $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); // Invalid expires header. Response is stale. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => '-1', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Expires' => '-1', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); // The response expires immediately. G+ APIs do this. Response is stale. $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Expires' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Expires' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); } - public function testMustRevalidate() { + public function testMustRevalidate() + { $now = time(); $client = $this->getClient(); @@ -195,11 +225,13 @@ public function testMustRevalidate() { $future = $now + (365 * 24 * 60 * 60); $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600, must-revalidate', + 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', + ) + ); $this->assertFalse(Google_Http_CacheParser::mustRevalidate($resp)); // Contains the max-age=3600 directive, but was created 2 hours ago. @@ -207,11 +239,13 @@ public function testMustRevalidate() { $past = $now - (2 * 60 * 60); $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600', - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600', + 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', + ) + ); $this->assertTrue(Google_Http_CacheParser::mustRevalidate($resp)); // Contains the max-age=3600 directive, and was created 600 seconds ago. @@ -219,11 +253,13 @@ public function testMustRevalidate() { $past = $now - (600); $resp = new Google_Http_Request('http://localhost', 'GET'); $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders(array( - 'Cache-Control' => 'max-age=3600', - 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - )); + $resp->setResponseHeaders( + array( + 'Cache-Control' => 'max-age=3600', + 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', + 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', + ) + ); $this->assertFalse(Google_Http_CacheParser::mustRevalidate($resp)); } } diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index b9f7b2e4b..eab31507a 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -21,8 +21,10 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class ApiClientTest extends BaseTest { - public function testClient() { +class ApiClientTest extends BaseTest +{ + public function testClient() + { $client = new Google_Client(); $client->setAccessType('foo'); $client->setDeveloperKey('foo'); @@ -38,20 +40,23 @@ public function testClient() { /** * @expectedException Google_Auth_Exception */ - public function testPrepareInvalidScopes() { + public function testPrepareInvalidScopes() + { $client = new Google_Client(); $scopes = $client->prepareScopes(); $this->assertEquals("", $scopes); } - public function testNoAuthIsNull() { + public function testNoAuthIsNull() + { $client = new Google_Client(); $this->assertNull($client->getAccessToken()); } - public function testPrepareService() { + public function testPrepareService() + { $client = new Google_Client(); $client->setScopes(array("scope1", "scope2")); $scopes = $client->prepareScopes(); @@ -60,7 +65,7 @@ public function testPrepareService() { $client->setScopes(array("", "scope2")); $scopes = $client->prepareScopes(); $this->assertEquals(" scope2", $scopes); - + $client->setScopes("scope2"); $client->addScope("scope3"); $client->addScope(array("scope4", "scope5")); @@ -72,20 +77,24 @@ public function testPrepareService() { $client->setScopes(array("http://test.com", "scope2")); $scopes = $client->prepareScopes(); $this->assertEquals("http://test.com scope2", $scopes); - $this->assertEquals('' + $this->assertEquals( + '' . 'https://accounts.google.com/o/oauth2/auth' . '?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%2F' . '&client_id=test1' . '&scope=http%3A%2F%2Ftest.com+scope2&access_type=online' - . '&approval_prompt=auto', $client->createAuthUrl()); - + . '&approval_prompt=auto', + $client->createAuthUrl() + ); + // This should not trigger a request. $client->setDefer(true); $dr_service = new Google_Service_Drive($client); $this->assertInstanceOf('Google_Http_Request', $dr_service->files->listFiles()); } - public function testSettersGetters() { + public function testSettersGetters() + { $client = new Google_Client(); $client->setClientId("client1"); $client->setClientSecret('client1secret'); @@ -105,7 +114,7 @@ public function testSettersGetters() { try { $client->setAccessToken(null); die('Should have thrown an Google_Auth_Exception.'); - } catch(Google_Auth_Exception $e) { + } catch (Google_Auth_Exception $e) { $this->assertEquals('Could not json decode the token', $e->getMessage()); } @@ -114,7 +123,8 @@ public function testSettersGetters() { $this->assertEquals($token, $client->getAccessToken()); } - public function testAppEngineAutoConfig() { + public function testAppEngineAutoConfig() + { if (!class_exists("Memcached")) { $this->markTestSkipped('Test requires memcache'); } @@ -123,23 +133,34 @@ public function testAppEngineAutoConfig() { $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); unset($_SERVER['SERVER_SOFTWARE']); } - - public function testJsonConfig() { - // Device config + + public function testJsonConfig() + { + // Device config $config = new Google_Config(); $client = new Google_Client($config); - $device = '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url":"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs"}}'; + $device = + '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. + ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://accounts.google.com/o/oauth2/token",'. + '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. + ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. + '"https://www.googleapis.com/oauth2/v1/certs"}}'; $dObj = json_decode($device); $client->setAuthConfig($device); $cfg = $config->getClassConfig('Google_Auth_OAuth2'); $this->assertEquals($cfg['client_id'], $dObj->installed->client_id); $this->assertEquals($cfg['client_secret'], $dObj->installed->client_secret); $this->assertEquals($cfg['redirect_uri'], $dObj->installed->redirect_uris[0]); - - // Web config + + // Web config $config = new Google_Config(); $client = new Google_Client($config); - $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs"}}'; + $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . + ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://accounts.google.com/o/oauth2/token"' . + ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. + '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. + ',"client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. + '"https://www.googleapis.com/oauth2/v1/certs"}}'; $wObj = json_decode($web); $client->setAuthConfig($web); $cfg = $config->getClassConfig('Google_Auth_OAuth2'); @@ -147,10 +168,14 @@ public function testJsonConfig() { $this->assertEquals($cfg['client_secret'], $wObj->web->client_secret); $this->assertEquals($cfg['redirect_uri'], ''); } - - public function testIniConfig() { + + public function testIniConfig() + { $config = new Google_Config(__DIR__ . "/testdata/test.ini"); $this->assertEquals('My Test application', $config->getApplicationName()); - $this->assertEquals('gjfiwnGinpena3', $config->getClassConfig('Google_Auth_OAuth2', 'client_secret')); + $this->assertEquals( + 'gjfiwnGinpena3', + $config->getClassConfig('Google_Auth_OAuth2', 'client_secret') + ); } } diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index b1841fa11..ff0b8e992 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -80,7 +80,8 @@ public function testModelMutation() $this->assertNull($event2->getStart()); } - public function testVariantTypes() { + public function testVariantTypes() + { $this->markTestSkipped('Pending variant support in templates.'); $feature = new Google_Service_MapsEngine_Feature(); $geometry = new Google_Service_MapsEngine_GeoJsonPoint(); @@ -165,7 +166,9 @@ public function testCollection() {"id": 3}, {"id": 4} ] - }', true); + }', + true + ); $collection = new Google_Service_Calendar_Events($data); $this->assertEquals(4, count($collection)); $count = 0; diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 4df9d14c1..eaa66cf8d 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -21,7 +21,8 @@ require_once "BaseTest.php"; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class ApiOAuth2Test extends BaseTest { +class ApiOAuth2Test extends BaseTest +{ public function testSign() { @@ -42,11 +43,15 @@ public function testSign() $this->assertEquals('http://localhost?key=devKey', $req->getUrl()); // test accessToken - $oauth->setAccessToken(json_encode(array( - 'access_token' => 'ACCESS_TOKEN', - 'created' => time(), - 'expires_in' => '3600' - ))); + $oauth->setAccessToken( + json_encode( + array( + 'access_token' => 'ACCESS_TOKEN', + 'created' => time(), + 'expires_in' => '3600' + ) + ) + ); $req = $oauth->sign($req); $auth = $req->getRequestHeader('authorization'); @@ -68,32 +73,44 @@ public function testRevokeAccess() $io = $this->getMock("Google_IO_Stream", array(), array($client)); $io->expects($this->any()) ->method('makeRequest') - ->will($this->returnCallback(function($request) use (&$token, $response) { - $elements = array(); - parse_str($request->getPostBody(), $elements); - $token = isset($elements['token']) ? $elements['token'] : null; - return $response; - })); + ->will( + $this->returnCallback( + function ($request) use (&$token, $response) { + $elements = array(); + parse_str($request->getPostBody(), $elements); + $token = isset($elements['token']) ? $elements['token'] : null; + return $response; + } + ) + ); $client->setIo($io); // Test with access token. $oauth = new Google_Auth_OAuth2($client); - $oauth->setAccessToken(json_encode(array( - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ))); + $oauth->setAccessToken( + json_encode( + array( + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ) + ) + ); $this->assertTrue($oauth->revokeToken()); $this->assertEquals($accessToken, $token); // Test with refresh token. $oauth = new Google_Auth_OAuth2($client); - $oauth->setAccessToken(json_encode(array( - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ))); + $oauth->setAccessToken( + json_encode( + array( + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ) + ) + ); $this->assertTrue($oauth->revokeToken()); $this->assertEquals($refreshToken, $token); @@ -167,8 +184,8 @@ public function testValidateIdToken() $oauth = new Google_Auth_OAuth2($client); $ticket = $oauth->verifyIdToken($token->id_token, $data->aud); $this->assertInstanceOf( - "Google_Auth_LoginTicket", - $ticket + "Google_Auth_LoginTicket", + $ticket ); $this->assertTrue(strlen($ticket->getUserId()) > 0); @@ -180,8 +197,8 @@ public function testValidateIdToken() $data = json_decode(Google_Utils::urlSafeB64Decode($segments[1])); $oauth = new Google_Auth_OAuth2($client); $this->assertInstanceOf( - "Google_Auth_LoginTicket", - $oauth->verifyIdToken($token->id_token, $data->aud) + "Google_Auth_LoginTicket", + $oauth->verifyIdToken($token->id_token, $data->aud) ); } @@ -200,11 +217,13 @@ public function testRevokeWhenNoTokenExists() public function testRefreshTokenSetsValues() { $client = new Google_Client(); - $response_data = json_encode(array( - 'access_token' => "ACCESS_TOKEN", - 'id_token' => "ID_TOKEN", - 'expires_in' => "12345", - )); + $response_data = json_encode( + array( + 'access_token' => "ACCESS_TOKEN", + 'id_token' => "ID_TOKEN", + 'expires_in' => "12345", + ) + ); $response = $this->getMock("Google_Http_Request", array(), array('')); $response->expects($this->any()) ->method('getResponseHttpCode') @@ -215,14 +234,22 @@ public function testRefreshTokenSetsValues() $io = $this->getMock("Google_IO_Stream", array(), array($client)); $io->expects($this->any()) ->method('makeRequest') - ->will($this->returnCallback(function($request) use (&$token, $response) { - $elements = $request->getPostBody(); - PHPUnit_Framework_TestCase::assertEquals($elements['grant_type'], - "refresh_token"); - PHPUnit_Framework_TestCase::assertEquals($elements['refresh_token'], - "REFRESH_TOKEN"); - return $response; - })); + ->will( + $this->returnCallback( + function ($request) use (&$token, $response) { + $elements = $request->getPostBody(); + PHPUnit_Framework_TestCase::assertEquals( + $elements['grant_type'], + "refresh_token" + ); + PHPUnit_Framework_TestCase::assertEquals( + $elements['refresh_token'], + "REFRESH_TOKEN" + ); + return $response; + } + ) + ); $client->setIo($io); $oauth = new Google_Auth_OAuth2($client); $oauth->refreshToken("REFRESH_TOKEN"); diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index 50d5e6f2f..fb5df5193 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -21,7 +21,8 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class AuthTest extends BaseTest { +class AuthTest extends BaseTest +{ const PRIVATE_KEY_FILE = "testdata/cert.p12"; const PUBLIC_KEY_FILE_JSON = "testdata/cacert.json"; const PUBLIC_KEY_FILE = "testdata/cacert.pem"; @@ -36,13 +37,18 @@ class AuthTest extends BaseTest { /** @var Google_Verifier_Pem */ private $verifier; - public function setUp() { - $this->signer = new Google_Signer_P12(file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), "notasecret"); + public function setUp() + { + $this->signer = new Google_Signer_P12( + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), + "notasecret" + ); $this->pem = file_get_contents(__DIR__.'/'.self::PUBLIC_KEY_FILE, true); $this->verifier = new Google_Verifier_Pem($this->pem); } - - public function testDirectInject() { + + public function testDirectInject() + { $privateKeyString = <<fail("Should have thrown"); } catch (Google_Auth_Exception $e) { $this->assertContains("mac verify failure", $e->getMessage()); } try { - new Google_Signer_P12(file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) . "foo", "badpassword"); + new Google_Signer_P12( + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) . "foo", + "badpassword" + ); $this->fail("Should have thrown"); } catch (Exception $e) { $this->assertContains("Unable to parse", $e->getMessage()); } } - public function testVerifySignature() { + public function testVerifySignature() + { $binary_data = "\x00\x01\x02\x66\x6f\x6f"; $signature = $this->signer->sign($binary_data); $this->assertTrue($this->verifier->verify($binary_data, $signature)); @@ -96,7 +110,8 @@ public function testVerifySignature() { } // Creates a signed JWT similar to the one created by google authentication. - private function makeSignedJwt($payload) { + private function makeSignedJwt($payload) + { $header = array("typ" => "JWT", "alg" => "RS256"); $segments = array(); $segments[] = Google_Utils::urlSafeB64Encode(json_encode($header)); @@ -110,17 +125,22 @@ private function makeSignedJwt($payload) { } // Returns certificates similar to the ones used by google authentication. - private function getSignonCerts() { + private function getSignonCerts() + { return array("keyid" => $this->pem); } - public function testVerifySignedJwtWithCerts() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "sub" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600)); + public function testVerifySignedJwtWithCerts() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "sub" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 + ) + ); $certs = $this->getSignonCerts(); $oauth2 = new Google_Auth_OAuth2($this->getClient()); $ticket = $oauth2->verifySignedJwtWithCerts($id_token, $certs, "client_id"); @@ -132,7 +152,8 @@ public function testVerifySignedJwtWithCerts() { } // Checks that the id token fails to verify with the expected message. - private function checkIdTokenFailure($id_token, $msg) { + private function checkIdTokenFailure($id_token, $msg) + { $certs = $this->getSignonCerts(); $oauth2 = new Google_Auth_OAuth2($this->getClient()); try { @@ -143,83 +164,115 @@ private function checkIdTokenFailure($id_token, $msg) { } } - public function testVerifySignedJwt_badJwt() { + public function testVerifySignedJwtWithBadJwt() + { $this->checkIdTokenFailure("foo", "Wrong number of segments"); $this->checkIdTokenFailure("foo.bar", "Wrong number of segments"); - $this->checkIdTokenFailure("foo.bar.baz", - "Can't parse token envelope: foo"); + $this->checkIdTokenFailure( + "foo.bar.baz", + "Can't parse token envelope: foo" + ); } - public function testVerifySignedJwt_badSignature() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600)); + public function testVerifySignedJwtWithBadSignature() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 + ) + ); $id_token = $id_token . "a"; $this->checkIdTokenFailure($id_token, "Invalid token signature"); } - public function testVerifySignedJwt_noIssueTime() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "exp" => time() + 3600)); + public function testVerifySignedJwtWithNoIssueTime() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "exp" => time() + 3600 + ) + ); $this->checkIdTokenFailure($id_token, "No issue time"); } - public function testVerifySignedJwt_noExpirationTime() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time())); + public function testVerifySignedJwtWithNoExpirationTime() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "iat" => time() + ) + ); $this->checkIdTokenFailure($id_token, "No expiration time"); } - public function testVerifySignedJwt_tooEarly() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time() + 1800, - "exp" => time() + 3600)); + public function testVerifySignedJwtWithTooEarly() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "iat" => time() + 1800, + "exp" => time() + 3600 + ) + ); $this->checkIdTokenFailure($id_token, "Token used too early"); } - public function testVerifySignedJwt_tooLate() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time() - 3600, - "exp" => time() - 1800)); + public function testVerifySignedJwtWithTooLate() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "iat" => time() - 3600, + "exp" => time() - 1800 + ) + ); $this->checkIdTokenFailure($id_token, "Token used too late"); } - public function testVerifySignedJwt_lifetimeTooLong() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 * 25)); + public function testVerifySignedJwtWithLifetimeTooLong() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "client_id", + "id" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 * 25 + ) + ); $this->checkIdTokenFailure($id_token, "Expiration time too far in future"); } - public function testVerifySignedJwt_badAudience() { - $id_token = $this->makeSignedJwt(array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "wrong_client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600)); + public function testVerifySignedJwtWithBadAudience() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "federated-signon@system.gserviceaccount.com", + "aud" => "wrong_client_id", + "id" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 + ) + ); $this->checkIdTokenFailure($id_token, "Wrong recipient"); } - public function testNoAuth() { + public function testNoAuth() + { /** @var $noAuth Google_Auth_Simple */ $noAuth = new Google_Auth_Simple($this->getClient()); $oldAuth = $this->getClient()->getAuth(); @@ -232,9 +285,13 @@ public function testNoAuth() { $this->getClient()->setAuth($oldAuth); } - public function testAssertionCredentials() { - $assertion = new Google_Auth_AssertionCredentials('name', 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); + public function testAssertionCredentials() + { + $assertion = new Google_Auth_AssertionCredentials( + 'name', + 'scope', + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) + ); $token = explode(".", $assertion->generateAssertion()); $this->assertEquals('{"typ":"JWT","alg":"RS256"}', base64_decode($token[0])); @@ -246,21 +303,31 @@ public function testAssertionCredentials() { $key = $assertion->getCacheKey(); $this->assertTrue($key != false); - $assertion = new Google_Auth_AssertionCredentials('name2', 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); + $assertion = new Google_Auth_AssertionCredentials( + 'name2', + 'scope', + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) + ); $this->assertNotEquals($key, $assertion->getCacheKey()); } - public function testVerifySignedJWT() { - $assertion = new Google_Auth_AssertionCredentials('issuer', 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true)); + public function testVerifySignedJWT() + { + $assertion = new Google_Auth_AssertionCredentials( + 'issuer', + 'scope', + file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) + ); $client = $this->getClient(); - $this->assertInstanceOf('Google_Auth_LoginTicket', $client->verifySignedJwt( - $assertion->generateAssertion(), - __DIR__ . DIRECTORY_SEPARATOR . self::PUBLIC_KEY_FILE_JSON, - 'https://accounts.google.com/o/oauth2/token', - 'issuer' - )); + $this->assertInstanceOf( + 'Google_Auth_LoginTicket', + $client->verifySignedJwt( + $assertion->generateAssertion(), + __DIR__ . DIRECTORY_SEPARATOR . self::PUBLIC_KEY_FILE_JSON, + 'https://accounts.google.com/o/oauth2/token', + 'issuer' + ) + ); } } diff --git a/tests/general/CacheTest.php b/tests/general/CacheTest.php index 0692106fa..cf190cace 100644 --- a/tests/general/CacheTest.php +++ b/tests/general/CacheTest.php @@ -21,9 +21,10 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class CacheTest extends BaseTest { - - public function testFile() { +class CacheTest extends BaseTest +{ + public function testFile() + { $dir = sys_get_temp_dir() . '/google-api-php-client/tests'; $client = $this->getClient(); $client->setClassConfig( @@ -62,7 +63,8 @@ public function testNull() $this->assertEquals($cache->get('foo'), false); } - public function testMemcache() { + public function testMemcache() + { if (!function_exists('memcache_connect')) { $this->markTestSkipped('Test requires memcache'); } @@ -76,7 +78,8 @@ public function testMemcache() { $this->getSetDelete($cache); } - public function testAPC() { + public function testAPC() + { if (!function_exists('apc_add')) { $this->markTestSkipped('Test requires APC'); } @@ -89,7 +92,8 @@ public function testAPC() { $this->getSetDelete($cache); } - public function getSetDelete($cache) { + public function getSetDelete($cache) + { $cache->set('foo', 'bar'); $cache->delete('foo'); $this->assertEquals(false, $cache->get('foo')); diff --git a/tests/general/GeneralTests.php b/tests/general/GeneralTests.php index e3256b74f..4ab9bc871 100644 --- a/tests/general/GeneralTests.php +++ b/tests/general/GeneralTests.php @@ -32,9 +32,10 @@ require_once "ServiceTest.php"; require_once "URITemplateTest.php"; -class GeneralTests extends PHPUnit_Framework_TestSuite { - - public static function suite() { +class GeneralTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite('Google API PHP Library core component tests'); $suite->addTestSuite('AuthTest'); $suite->addTestSuite('CacheTest'); diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index 406c26e0e..cf0482943 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -250,19 +250,19 @@ public function responseChecker($io) "HTTP/1.1 200 Connection established\r\n\r\n", ); foreach ($connection_established_headers as $established_header) { - $rawHeaders = "{$established_header}HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n"; - $headersSize = strlen($rawHeaders); - // If we have a broken cURL version we have to simulate it to get the - // correct test result. - if ($hasQuirk && get_class($io) === 'Google_IO_Curl') { - $headersSize -= strlen($established_header); - } - $rawBody = "{}"; - - $rawResponse = "$rawHeaders\r\n$rawBody"; - list($headers, $body) = $io->parseHttpResponse($rawResponse, $headersSize); - $this->assertEquals(1, sizeof($headers)); - $this->assertEquals(array(), json_decode($body, true)); + $rawHeaders = "{$established_header}HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n"; + $headersSize = strlen($rawHeaders); + // If we have a broken cURL version we have to simulate it to get the + // correct test result. + if ($hasQuirk && get_class($io) === 'Google_IO_Curl') { + $headersSize -= strlen($established_header); + } + $rawBody = "{}"; + + $rawResponse = "$rawHeaders\r\n$rawBody"; + list($headers, $body) = $io->parseHttpResponse($rawResponse, $headersSize); + $this->assertEquals(1, sizeof($headers)); + $this->assertEquals(array(), json_decode($body, true)); } } diff --git a/tests/general/RequestTest.php b/tests/general/RequestTest.php index 53847185d..e75d963c1 100644 --- a/tests/general/RequestTest.php +++ b/tests/general/RequestTest.php @@ -21,8 +21,9 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class RequestTest extends BaseTest { - public function testRequestParameters() +class RequestTest extends BaseTest +{ + public function testRequestParameters() { $url = 'http://localhost:8080/foo/bar?foo=a&foo=b&wowee=oh+my'; $url2 = 'http://localhost:8080/foo/bar?foo=a&foo=b&wowee=oh+my&hi=there'; diff --git a/tests/general/ServiceTest.php b/tests/general/ServiceTest.php index eb473dd42..be40cc01a 100644 --- a/tests/general/ServiceTest.php +++ b/tests/general/ServiceTest.php @@ -21,36 +21,45 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class TestModel extends Google_Model { - public function mapTypes($array) { +class TestModel extends Google_Model +{ + public function mapTypes($array) + { return parent::mapTypes($array); } - public function isAssociativeArray($array) { + public function isAssociativeArray($array) + { return parent::isAssociativeArray($array); } } -class ServiceTest extends BaseTest { - public function testModel() { +class ServiceTest extends BaseTest +{ + public function testModel() + { $model = new TestModel(); - $model->mapTypes(array( - 'name' => 'asdf', - 'gender' => 'z', - )); + $model->mapTypes( + array( + 'name' => 'asdf', + 'gender' => 'z', + ) + ); $this->assertEquals('asdf', $model->name); $this->assertEquals('z', $model->gender); - $model->mapTypes(array( - '__infoType' => 'Google_Model', - '__infoDataType' => 'map', - 'info' => array ( - 'location' => 'mars', - 'timezone' => 'mst', - ), - 'name' => 'asdf', - 'gender' => 'z', - )); + $model->mapTypes( + array( + '__infoType' => 'Google_Model', + '__infoDataType' => 'map', + 'info' => array ( + 'location' => 'mars', + 'timezone' => 'mst', + ), + 'name' => 'asdf', + 'gender' => 'z', + ) + ); $this->assertEquals('asdf', $model->name); $this->assertEquals('z', $model->gender); @@ -65,7 +74,8 @@ public function testModel() { $this->assertEquals(true, $model->isAssociativeArray(array("a", "b" => 2))); } - public function testStrLen() { + public function testStrLen() + { $this->assertEquals(0, Google_Utils::getStrLen(null)); $this->assertEquals(0, Google_Utils::getStrLen(false)); $this->assertEquals(0, Google_Utils::getStrLen("")); diff --git a/tests/general/URITemplateTest.php b/tests/general/URITemplateTest.php index 9c361d49b..0a7c48054 100644 --- a/tests/general/URITemplateTest.php +++ b/tests/general/URITemplateTest.php @@ -21,94 +21,151 @@ require_once 'BaseTest.php'; require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class URITemplateTest extends BaseTest { - public function testLevelOne() { +class URITemplateTest extends BaseTest +{ + public function testLevelOne() + { $var = "value"; $hello = "Hello World!"; - + $urit = new Google_Utils_URITemplate(); - $this->assertEquals("value", - $urit->parse("{var}", array("var" => $var))); - $this->assertEquals("Hello%20World%21", - $urit->parse("{hello}", array("hello" => $hello))); + $this->assertEquals( + "value", + $urit->parse("{var}", array("var" => $var)) + ); + $this->assertEquals( + "Hello%20World%21", + $urit->parse("{hello}", array("hello" => $hello)) + ); } - - public function testLevelTwo() { + + public function testLevelTwo() + { $var = "value"; $hello = "Hello World!"; $path = "/foo/bar"; - + $urit = new Google_Utils_URITemplate(); - $this->assertEquals("value", - $urit->parse("{+var}", array("var" => $var))); - $this->assertEquals("Hello%20World!", - $urit->parse("{+hello}", array("hello" => $hello))); - $this->assertEquals("/foo/bar/here", - $urit->parse("{+path}/here", array("path" => $path))); - $this->assertEquals("here?ref=/foo/bar", - $urit->parse("here?ref={+path}", array("path" => $path))); - $this->assertEquals("X#value", - $urit->parse("X{#var}", array("var" => $var))); - $this->assertEquals("X#Hello%20World!", - $urit->parse("X{#hello}", array("hello" => $hello))); + $this->assertEquals( + "value", + $urit->parse("{+var}", array("var" => $var)) + ); + $this->assertEquals( + "Hello%20World!", + $urit->parse("{+hello}", array("hello" => $hello)) + ); + $this->assertEquals( + "/foo/bar/here", + $urit->parse("{+path}/here", array("path" => $path)) + ); + $this->assertEquals( + "here?ref=/foo/bar", + $urit->parse("here?ref={+path}", array("path" => $path)) + ); + $this->assertEquals( + "X#value", + $urit->parse("X{#var}", array("var" => $var)) + ); + $this->assertEquals( + "X#Hello%20World!", + $urit->parse("X{#hello}", array("hello" => $hello)) + ); } - - public function testLevelThree() { + + public function testLevelThree() + { $var = "value"; $hello = "Hello World!"; $empty = ''; $path = "/foo/bar"; $x = "1024"; $y = "768"; - + $urit = new Google_Utils_URITemplate(); - $this->assertEquals("map?1024,768", - $urit->parse("map?{x,y}", array("x" => $x, "y" => $y))); - $this->assertEquals("1024,Hello%20World%21,768", - $urit->parse("{x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello))); - - $this->assertEquals("1024,Hello%20World!,768", - $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello))); - $this->assertEquals("/foo/bar,1024/here", - $urit->parse("{+path,x}/here", array("x" => $x, "path" => $path))); - - $this->assertEquals("#1024,Hello%20World!,768", - $urit->parse("{#x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello))); - $this->assertEquals("#/foo/bar,1024/here", - $urit->parse("{#path,x}/here", array("x" => $x, "path" => $path))); - - $this->assertEquals("X.value", - $urit->parse("X{.var}", array("var" => $var))); - $this->assertEquals("X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y))); - - $this->assertEquals("X.value", - $urit->parse("X{.var}", array("var" => $var))); - $this->assertEquals("X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y))); - - $this->assertEquals("/value", - $urit->parse("{/var}", array("var" => $var))); - $this->assertEquals("/value/1024/here", - $urit->parse("{/var,x}/here", array("x" => $x, "var" => $var))); - - $this->assertEquals(";x=1024;y=768", - $urit->parse("{;x,y}", array("x" => $x, "y" => $y))); - $this->assertEquals(";x=1024;y=768;empty", - $urit->parse("{;x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty))); - - $this->assertEquals("?x=1024&y=768", - $urit->parse("{?x,y}", array("x" => $x, "y" => $y))); - $this->assertEquals("?x=1024&y=768&empty=", - $urit->parse("{?x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty))); - - $this->assertEquals("?fixed=yes&x=1024", - $urit->parse("?fixed=yes{&x}", array("x" => $x, "y" => $y))); - $this->assertEquals("&x=1024&y=768&empty=", - $urit->parse("{&x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty))); + $this->assertEquals( + "map?1024,768", + $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "1024,Hello%20World%21,768", + $urit->parse("{x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); + + $this->assertEquals( + "1024,Hello%20World!,768", + $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); + $this->assertEquals( + "/foo/bar,1024/here", + $urit->parse("{+path,x}/here", array("x" => $x, "path" => $path)) + ); + + $this->assertEquals( + "#1024,Hello%20World!,768", + $urit->parse("{#x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); + $this->assertEquals( + "#/foo/bar,1024/here", + $urit->parse("{#path,x}/here", array("x" => $x, "path" => $path)) + ); + + $this->assertEquals( + "X.value", + $urit->parse("X{.var}", array("var" => $var)) + ); + $this->assertEquals( + "X.1024.768", + $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + ); + + $this->assertEquals( + "X.value", + $urit->parse("X{.var}", array("var" => $var)) + ); + $this->assertEquals( + "X.1024.768", + $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + ); + + $this->assertEquals( + "/value", + $urit->parse("{/var}", array("var" => $var)) + ); + $this->assertEquals( + "/value/1024/here", + $urit->parse("{/var,x}/here", array("x" => $x, "var" => $var)) + ); + + $this->assertEquals( + ";x=1024;y=768", + $urit->parse("{;x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + ";x=1024;y=768;empty", + $urit->parse("{;x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); + + $this->assertEquals( + "?x=1024&y=768", + $urit->parse("{?x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "?x=1024&y=768&empty=", + $urit->parse("{?x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); + + $this->assertEquals( + "?fixed=yes&x=1024", + $urit->parse("?fixed=yes{&x}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "&x=1024&y=768&empty=", + $urit->parse("{&x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); } - - public function testLevelFour() { + + public function testLevelFour() + { $values = array( 'var' => "value", 'hello' => "Hello World!", @@ -116,7 +173,7 @@ public function testLevelFour() { 'list' => array("red", "green", "blue"), 'keys' => array("semi" => ";", "dot" => ".", "comma" => ","), ); - + $tests = array( "{var:3}" => "val", "{var:30}" => "value", @@ -162,69 +219,75 @@ public function testLevelFour() { "{&keys*}" => "&semi=%3B&dot=.&comma=%2C", "find{?list*}" => "find?list=red&list=green&list=blue", "www{.list*}" => "www.red.green.blue" - + ); - + $urit = new Google_Utils_URITemplate(); - - foreach($tests as $input => $output) { + + foreach ($tests as $input => $output) { $this->assertEquals($output, $urit->parse($input, $values), $input . " failed"); } } - - public function testMultipleAnnotations() { + + public function testMultipleAnnotations() + { $var = "value"; $hello = "Hello World!"; $urit = new Google_Utils_URITemplate(); - $this->assertEquals("http://www.google.com/Hello%20World!?var=value", - $urit->parse("http://www.google.com/{+hello}{?var}", - array("var" => $var, "hello" => $hello))); + $this->assertEquals( + "http://www.google.com/Hello%20World!?var=value", + $urit->parse( + "http://www.google.com/{+hello}{?var}", + array("var" => $var, "hello" => $hello) + ) + ); $params = array( "playerId" => "me", "leaderboardId" => "CgkIhcG1jYEbEAIQAw", - "timeSpan" => "ALL_TIME", + "timeSpan" => "ALL_TIME", "other" => "irrelevant" ); $this->assertEquals( - "players/me/leaderboards/CgkIhcG1jYEbEAIQAw/scores/ALL_TIME", + "players/me/leaderboards/CgkIhcG1jYEbEAIQAw/scores/ALL_TIME", $urit->parse( - "players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}", + "players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}", $params ) ); } - + /** - * This test test against the JSON files defined in + * This test test against the JSON files defined in * https://github.com/uri-templates/uritemplate-test - * + * * We don't ship these tests with it, so they'll just silently * skip unless provided - this is mainly for use when * making specific URI template changes and wanting * to do a full regression check. */ - public function testAgainstStandardTests() { + public function testAgainstStandardTests() + { $location = "../../uritemplate-test/*.json"; - + $urit = new Google_Utils_URITemplate(); - foreach(glob($location) as $file) { + foreach (glob($location) as $file) { $test = json_decode(file_get_contents($file), true); - foreach($test as $title => $testsets) { - foreach($testsets['testcases'] as $cases) { + foreach ($test as $title => $testsets) { + foreach ($testsets['testcases'] as $cases) { $input = $cases[0]; $output = $cases[1]; if ($output == false) { continue; // skipping negative tests for now - } else if(is_array($output)) { + } else if (is_array($output)) { $response = $urit->parse($input, $testsets['variables']); $this->assertContains( - $response, - $output, + $response, + $output, $input . " failed from " . $title ); } else { $this->assertEquals( - $output, + $output, $urit->parse($input, $testsets['variables']), $input . " failed." ); diff --git a/tests/pagespeed/AllPageSpeedTests.php b/tests/pagespeed/AllPageSpeedTests.php index 0f5d15ff7..c30d9d7cb 100644 --- a/tests/pagespeed/AllPageSpeedTests.php +++ b/tests/pagespeed/AllPageSpeedTests.php @@ -20,8 +20,10 @@ require_once 'PageSpeedTest.php'; -class AllPageSpeedTests extends PHPUnit_Framework_TestSuite { - public static function suite() { +class AllPageSpeedTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('Google PageSpeed API tests'); $suite->addTestSuite('PageSpeedTest'); diff --git a/tests/pagespeed/PageSpeedTest.php b/tests/pagespeed/PageSpeedTest.php index acd0526fd..3874c94dd 100644 --- a/tests/pagespeed/PageSpeedTest.php +++ b/tests/pagespeed/PageSpeedTest.php @@ -17,14 +17,17 @@ require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class PageSpeedTest extends BaseTest { +class PageSpeedTest extends BaseTest +{ public $service; - public function __construct() { + public function __construct() + { parent::__construct(); $this->service = new Google_Service_Pagespeedonline($this->getClient()); } - public function testPageSpeed() { + public function testPageSpeed() + { $this->checkToken(); $psapi = $this->service->pagespeedapi; $result = $psapi->runpagespeed('http://code.google.com'); diff --git a/tests/plus/PlusTest.php b/tests/plus/PlusTest.php index 18a2b3cb6..707c5b908 100644 --- a/tests/plus/PlusTest.php +++ b/tests/plus/PlusTest.php @@ -17,8 +17,10 @@ require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class AllPlusTests extends PHPUnit_Framework_TestSuite { - public static function suite() { +class AllPlusTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('Google Plus API tests'); $suite->addTestSuite('PlusTest'); @@ -26,15 +28,18 @@ public static function suite() { } } -class PlusTest extends BaseTest { +class PlusTest extends BaseTest +{ /** @var Google_PlusService */ public $plus; - public function __construct() { + public function __construct() + { parent::__construct(); $this->plus = new Google_Service_Plus($this->getClient()); } - public function testGetPerson() { + public function testGetPerson() + { $this->checkToken(); $person = $this->plus->people->get("118051310819094153327"); $this->assertArrayHasKey('kind', $person); @@ -43,7 +48,8 @@ public function testGetPerson() { $this->assertArrayHasKey('id', $person); } - public function testListActivities() { + public function testListActivities() + { $this->checkToken(); $activities = $this->plus->activities ->listActivities("118051310819094153327", "public"); @@ -51,10 +57,10 @@ public function testListActivities() { $this->assertArrayHasKey('kind', $activities); $this->assertGreaterThan(0, count($activities)); - // Test a variety of access methods. + // Test a variety of access methods. $this->assertItem($activities['items'][0]); $this->assertItem($activities[0]); - foreach($activities as $item) { + foreach ($activities as $item) { $this->assertItem($item); break; } @@ -63,7 +69,8 @@ public function testListActivities() { $this->assertGreaterThan(0, strlen($activities[0]->actor->displayName)); } - public function assertItem($item) { + public function assertItem($item) + { // assertArrayHasKey uses array_key_exists, which is not great: // it doesn't understand SPL ArrayAccess $this->assertTrue(isset($item['actor'])); diff --git a/tests/tasks/AllTasksTests.php b/tests/tasks/AllTasksTests.php index 7c7226232..6c9fa9739 100644 --- a/tests/tasks/AllTasksTests.php +++ b/tests/tasks/AllTasksTests.php @@ -20,8 +20,10 @@ require_once 'TasksTest.php'; -class AllTasksTests extends PHPUnit_Framework_TestSuite { - public static function suite() { +class AllTasksTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('Google Tasks API tests'); $suite->addTestSuite('TasksTest'); diff --git a/tests/tasks/TasksTest.php b/tests/tasks/TasksTest.php index 463226b95..c66a333e8 100644 --- a/tests/tasks/TasksTest.php +++ b/tests/tasks/TasksTest.php @@ -17,16 +17,19 @@ require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class TasksTest extends BaseTest { +class TasksTest extends BaseTest +{ /** @var Google_TasksService */ public $taskService; - public function __construct() { + public function __construct() + { parent::__construct(); $this->taskService = new Google_Service_Tasks($this->getClient()); } - public function testInsertTask() { + public function testInsertTask() + { if (!$this->checkToken()) { return; } @@ -38,7 +41,8 @@ public function testInsertTask() { /** * @depends testInsertTask */ - public function testGetTask() { + public function testGetTask() + { $tasks = $this->taskService->tasks; $list = $this->createTaskList('List: ' . __METHOD__); $task = $this->createTask('Task: '. __METHOD__, $list['id']); @@ -50,7 +54,8 @@ public function testGetTask() { /** * @depends testInsertTask */ - public function testListTask() { + public function testListTask() + { $tasks = $this->taskService->tasks; $list = $this->createTaskList('List: ' . __METHOD__); @@ -65,20 +70,23 @@ public function testListTask() { } } - private function createTaskList($name) { + private function createTaskList($name) + { $list = new Google_Service_Tasks_TaskList(); $list->title = $name; return $this->taskService->tasklists->insert($list); } - private function createTask($title, $listId) { + private function createTask($title, $listId) + { $tasks = $this->taskService->tasks; $task = new Google_Service_Tasks_Task(); $task->title = $title; return $tasks->insert($listId, $task); } - private function assertIsTask($task) { + private function assertIsTask($task) + { $this->assertArrayHasKey('title', $task); $this->assertArrayHasKey('kind', $task); $this->assertArrayHasKey('id', $task); diff --git a/tests/urlshortener/AllUrlShortenerTests.php b/tests/urlshortener/AllUrlShortenerTests.php index 253764141..23daf6435 100644 --- a/tests/urlshortener/AllUrlShortenerTests.php +++ b/tests/urlshortener/AllUrlShortenerTests.php @@ -20,8 +20,10 @@ require_once 'UrlShortenerTests.php'; -class AllUrlShortenerTests extends PHPUnit_Framework_TestSuite { - public static function suite() { +class AllUrlShortenerTests extends PHPUnit_Framework_TestSuite +{ + public static function suite() + { $suite = new PHPUnit_Framework_TestSuite(); $suite->setName('Google UrlShortener API tests'); $suite->addTestSuite('UrlShortenerTests'); diff --git a/tests/urlshortener/UrlShortenerTests.php b/tests/urlshortener/UrlShortenerTests.php index 00501b56b..b4ae7a34c 100644 --- a/tests/urlshortener/UrlShortenerTests.php +++ b/tests/urlshortener/UrlShortenerTests.php @@ -17,16 +17,19 @@ require_once realpath(dirname(__FILE__) . '/../../autoload.php'); -class UrlShortenerTests extends BaseTest { +class UrlShortenerTests extends BaseTest +{ /** @var Google_UrlshortenerService */ public $service; - public function __construct() { + public function __construct() + { parent::__construct(); $this->service = new Google_Service_Urlshortener($this->getClient()); } - public function testUrlShort() { + public function testUrlShort() + { $url = new Google_Service_Urlshortener_Url(); $url->longUrl = "http://google.com"; @@ -35,7 +38,8 @@ public function testUrlShort() { $this->assertEquals('http://google.com/', $shortUrl['longUrl']); } - public function testEmptyJsonResponse() { + public function testEmptyJsonResponse() + { $optParams = array('fields' => ''); $resp = $this->service->url->get('http://goo.gl/KkHq8', $optParams); From 5cbfa6d39418d8209764c5a51da2e85e8162696c Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 22 Oct 2014 12:42:58 +0100 Subject: [PATCH 0360/1274] Fix oauth helper --- tests/OAuthHelper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 24ab858be..708afd67b 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -31,6 +31,8 @@ // Visit https://code.google.com/apis/console to // generate your oauth2_client_id, oauth2_client_secret, and to // register your oauth2_redirect_uri. +$client->setClientId(""); +$client->setClientSecret(""); $authUrl = $client->createAuthUrl(); From 7511b74b77eb1217a8f3fb32283965734715e557 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:41 -0700 Subject: [PATCH 0361/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 190 ++++++++------------------------ 1 file changed, 47 insertions(+), 143 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 2116c2f7d..a63d70778 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1919,7 +1919,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1929,7 +1928,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1939,7 +1937,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1949,7 +1946,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; @@ -1959,6 +1955,7 @@ public function getNextSyncToken() { return $this->nextSyncToken; } + } class Google_Service_Calendar_AclRule extends Google_Model @@ -1981,7 +1978,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1991,7 +1987,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2001,7 +1996,6 @@ public function getKind() { return $this->kind; } - public function setRole($role) { $this->role = $role; @@ -2011,7 +2005,6 @@ public function getRole() { return $this->role; } - public function setScope(Google_Service_Calendar_AclRuleScope $scope) { $this->scope = $scope; @@ -2021,6 +2014,7 @@ public function getScope() { return $this->scope; } + } class Google_Service_Calendar_AclRuleScope extends Google_Model @@ -2039,7 +2033,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -2049,6 +2042,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Calendar_Calendar extends Google_Model @@ -2072,7 +2066,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -2082,7 +2075,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2092,7 +2084,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2102,7 +2093,6 @@ public function getKind() { return $this->kind; } - public function setLocation($location) { $this->location = $location; @@ -2112,7 +2102,6 @@ public function getLocation() { return $this->location; } - public function setSummary($summary) { $this->summary = $summary; @@ -2122,7 +2111,6 @@ public function getSummary() { return $this->summary; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -2132,6 +2120,7 @@ public function getTimeZone() { return $this->timeZone; } + } class Google_Service_Calendar_CalendarList extends Google_Collection @@ -2155,7 +2144,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2165,7 +2153,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2175,7 +2162,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2185,7 +2171,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; @@ -2195,6 +2180,7 @@ public function getNextSyncToken() { return $this->nextSyncToken; } + } class Google_Service_Calendar_CalendarListEntry extends Google_Collection @@ -2232,7 +2218,6 @@ public function getAccessRole() { return $this->accessRole; } - public function setBackgroundColor($backgroundColor) { $this->backgroundColor = $backgroundColor; @@ -2242,7 +2227,6 @@ public function getBackgroundColor() { return $this->backgroundColor; } - public function setColorId($colorId) { $this->colorId = $colorId; @@ -2252,7 +2236,6 @@ public function getColorId() { return $this->colorId; } - public function setDefaultReminders($defaultReminders) { $this->defaultReminders = $defaultReminders; @@ -2262,7 +2245,6 @@ public function getDefaultReminders() { return $this->defaultReminders; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -2272,7 +2254,6 @@ public function getDeleted() { return $this->deleted; } - public function setDescription($description) { $this->description = $description; @@ -2282,7 +2263,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -2292,7 +2272,6 @@ public function getEtag() { return $this->etag; } - public function setForegroundColor($foregroundColor) { $this->foregroundColor = $foregroundColor; @@ -2302,7 +2281,6 @@ public function getForegroundColor() { return $this->foregroundColor; } - public function setHidden($hidden) { $this->hidden = $hidden; @@ -2312,7 +2290,6 @@ public function getHidden() { return $this->hidden; } - public function setId($id) { $this->id = $id; @@ -2322,7 +2299,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2332,7 +2308,6 @@ public function getKind() { return $this->kind; } - public function setLocation($location) { $this->location = $location; @@ -2342,7 +2317,6 @@ public function getLocation() { return $this->location; } - public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings) { $this->notificationSettings = $notificationSettings; @@ -2352,7 +2326,6 @@ public function getNotificationSettings() { return $this->notificationSettings; } - public function setPrimary($primary) { $this->primary = $primary; @@ -2362,7 +2335,6 @@ public function getPrimary() { return $this->primary; } - public function setSelected($selected) { $this->selected = $selected; @@ -2372,7 +2344,6 @@ public function getSelected() { return $this->selected; } - public function setSummary($summary) { $this->summary = $summary; @@ -2382,7 +2353,6 @@ public function getSummary() { return $this->summary; } - public function setSummaryOverride($summaryOverride) { $this->summaryOverride = $summaryOverride; @@ -2392,7 +2362,6 @@ public function getSummaryOverride() { return $this->summaryOverride; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -2402,6 +2371,7 @@ public function getTimeZone() { return $this->timeZone; } + } class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection @@ -2421,6 +2391,7 @@ public function getNotifications() { return $this->notifications; } + } class Google_Service_Calendar_CalendarNotification extends Google_Model @@ -2439,7 +2410,6 @@ public function getMethod() { return $this->method; } - public function setType($type) { $this->type = $type; @@ -2449,6 +2419,7 @@ public function getType() { return $this->type; } + } class Google_Service_Calendar_Channel extends Google_Model @@ -2475,7 +2446,6 @@ public function getAddress() { return $this->address; } - public function setExpiration($expiration) { $this->expiration = $expiration; @@ -2485,7 +2455,6 @@ public function getExpiration() { return $this->expiration; } - public function setId($id) { $this->id = $id; @@ -2495,7 +2464,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2505,7 +2473,6 @@ public function getKind() { return $this->kind; } - public function setParams($params) { $this->params = $params; @@ -2515,7 +2482,6 @@ public function getParams() { return $this->params; } - public function setPayload($payload) { $this->payload = $payload; @@ -2525,7 +2491,6 @@ public function getPayload() { return $this->payload; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -2535,7 +2500,6 @@ public function getResourceId() { return $this->resourceId; } - public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; @@ -2545,7 +2509,6 @@ public function getResourceUri() { return $this->resourceUri; } - public function setToken($token) { $this->token = $token; @@ -2555,7 +2518,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -2565,12 +2527,15 @@ public function getType() { return $this->type; } + } class Google_Service_Calendar_ChannelParams extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_ColorDefinition extends Google_Model @@ -2589,7 +2554,6 @@ public function getBackground() { return $this->background; } - public function setForeground($foreground) { $this->foreground = $foreground; @@ -2599,6 +2563,7 @@ public function getForeground() { return $this->foreground; } + } class Google_Service_Calendar_Colors extends Google_Model @@ -2621,7 +2586,6 @@ public function getCalendar() { return $this->calendar; } - public function setEvent($event) { $this->event = $event; @@ -2631,7 +2595,6 @@ public function getEvent() { return $this->event; } - public function setKind($kind) { $this->kind = $kind; @@ -2641,7 +2604,6 @@ public function getKind() { return $this->kind; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2651,18 +2613,23 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Calendar_ColorsCalendar extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_ColorsEvent extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_Error extends Google_Model @@ -2681,7 +2648,6 @@ public function getDomain() { return $this->domain; } - public function setReason($reason) { $this->reason = $reason; @@ -2691,6 +2657,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_Calendar_Event extends Google_Collection @@ -2754,7 +2721,6 @@ public function getAnyoneCanAddSelf() { return $this->anyoneCanAddSelf; } - public function setAttendees($attendees) { $this->attendees = $attendees; @@ -2764,7 +2730,6 @@ public function getAttendees() { return $this->attendees; } - public function setAttendeesOmitted($attendeesOmitted) { $this->attendeesOmitted = $attendeesOmitted; @@ -2774,7 +2739,6 @@ public function getAttendeesOmitted() { return $this->attendeesOmitted; } - public function setColorId($colorId) { $this->colorId = $colorId; @@ -2784,7 +2748,6 @@ public function getColorId() { return $this->colorId; } - public function setCreated($created) { $this->created = $created; @@ -2794,7 +2757,6 @@ public function getCreated() { return $this->created; } - public function setCreator(Google_Service_Calendar_EventCreator $creator) { $this->creator = $creator; @@ -2804,7 +2766,6 @@ public function getCreator() { return $this->creator; } - public function setDescription($description) { $this->description = $description; @@ -2814,7 +2775,6 @@ public function getDescription() { return $this->description; } - public function setEnd(Google_Service_Calendar_EventDateTime $end) { $this->end = $end; @@ -2824,7 +2784,6 @@ public function getEnd() { return $this->end; } - public function setEndTimeUnspecified($endTimeUnspecified) { $this->endTimeUnspecified = $endTimeUnspecified; @@ -2834,7 +2793,6 @@ public function getEndTimeUnspecified() { return $this->endTimeUnspecified; } - public function setEtag($etag) { $this->etag = $etag; @@ -2844,7 +2802,6 @@ public function getEtag() { return $this->etag; } - public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties) { $this->extendedProperties = $extendedProperties; @@ -2854,7 +2811,6 @@ public function getExtendedProperties() { return $this->extendedProperties; } - public function setGadget(Google_Service_Calendar_EventGadget $gadget) { $this->gadget = $gadget; @@ -2864,7 +2820,6 @@ public function getGadget() { return $this->gadget; } - public function setGuestsCanInviteOthers($guestsCanInviteOthers) { $this->guestsCanInviteOthers = $guestsCanInviteOthers; @@ -2874,7 +2829,6 @@ public function getGuestsCanInviteOthers() { return $this->guestsCanInviteOthers; } - public function setGuestsCanModify($guestsCanModify) { $this->guestsCanModify = $guestsCanModify; @@ -2884,7 +2838,6 @@ public function getGuestsCanModify() { return $this->guestsCanModify; } - public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) { $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests; @@ -2894,7 +2847,6 @@ public function getGuestsCanSeeOtherGuests() { return $this->guestsCanSeeOtherGuests; } - public function setHangoutLink($hangoutLink) { $this->hangoutLink = $hangoutLink; @@ -2904,7 +2856,6 @@ public function getHangoutLink() { return $this->hangoutLink; } - public function setHtmlLink($htmlLink) { $this->htmlLink = $htmlLink; @@ -2914,7 +2865,6 @@ public function getHtmlLink() { return $this->htmlLink; } - public function setICalUID($iCalUID) { $this->iCalUID = $iCalUID; @@ -2924,7 +2874,6 @@ public function getICalUID() { return $this->iCalUID; } - public function setId($id) { $this->id = $id; @@ -2934,7 +2883,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2944,7 +2892,6 @@ public function getKind() { return $this->kind; } - public function setLocation($location) { $this->location = $location; @@ -2954,7 +2901,6 @@ public function getLocation() { return $this->location; } - public function setLocked($locked) { $this->locked = $locked; @@ -2964,7 +2910,6 @@ public function getLocked() { return $this->locked; } - public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer) { $this->organizer = $organizer; @@ -2974,7 +2919,6 @@ public function getOrganizer() { return $this->organizer; } - public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime) { $this->originalStartTime = $originalStartTime; @@ -2984,7 +2928,6 @@ public function getOriginalStartTime() { return $this->originalStartTime; } - public function setPrivateCopy($privateCopy) { $this->privateCopy = $privateCopy; @@ -2994,7 +2937,6 @@ public function getPrivateCopy() { return $this->privateCopy; } - public function setRecurrence($recurrence) { $this->recurrence = $recurrence; @@ -3004,7 +2946,6 @@ public function getRecurrence() { return $this->recurrence; } - public function setRecurringEventId($recurringEventId) { $this->recurringEventId = $recurringEventId; @@ -3014,7 +2955,6 @@ public function getRecurringEventId() { return $this->recurringEventId; } - public function setReminders(Google_Service_Calendar_EventReminders $reminders) { $this->reminders = $reminders; @@ -3024,7 +2964,6 @@ public function getReminders() { return $this->reminders; } - public function setSequence($sequence) { $this->sequence = $sequence; @@ -3034,7 +2973,6 @@ public function getSequence() { return $this->sequence; } - public function setSource(Google_Service_Calendar_EventSource $source) { $this->source = $source; @@ -3044,7 +2982,6 @@ public function getSource() { return $this->source; } - public function setStart(Google_Service_Calendar_EventDateTime $start) { $this->start = $start; @@ -3054,7 +2991,6 @@ public function getStart() { return $this->start; } - public function setStatus($status) { $this->status = $status; @@ -3064,7 +3000,6 @@ public function getStatus() { return $this->status; } - public function setSummary($summary) { $this->summary = $summary; @@ -3074,7 +3009,6 @@ public function getSummary() { return $this->summary; } - public function setTransparency($transparency) { $this->transparency = $transparency; @@ -3084,7 +3018,6 @@ public function getTransparency() { return $this->transparency; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3094,7 +3027,6 @@ public function getUpdated() { return $this->updated; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -3104,6 +3036,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_Calendar_EventAttendee extends Google_Model @@ -3130,7 +3063,6 @@ public function getAdditionalGuests() { return $this->additionalGuests; } - public function setComment($comment) { $this->comment = $comment; @@ -3140,7 +3072,6 @@ public function getComment() { return $this->comment; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3150,7 +3081,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -3160,7 +3090,6 @@ public function getEmail() { return $this->email; } - public function setId($id) { $this->id = $id; @@ -3170,7 +3099,6 @@ public function getId() { return $this->id; } - public function setOptional($optional) { $this->optional = $optional; @@ -3180,7 +3108,6 @@ public function getOptional() { return $this->optional; } - public function setOrganizer($organizer) { $this->organizer = $organizer; @@ -3190,7 +3117,6 @@ public function getOrganizer() { return $this->organizer; } - public function setResource($resource) { $this->resource = $resource; @@ -3200,7 +3126,6 @@ public function getResource() { return $this->resource; } - public function setResponseStatus($responseStatus) { $this->responseStatus = $responseStatus; @@ -3210,7 +3135,6 @@ public function getResponseStatus() { return $this->responseStatus; } - public function setSelf($self) { $this->self = $self; @@ -3220,6 +3144,7 @@ public function getSelf() { return $this->self; } + } class Google_Service_Calendar_EventCreator extends Google_Model @@ -3240,7 +3165,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -3250,7 +3174,6 @@ public function getEmail() { return $this->email; } - public function setId($id) { $this->id = $id; @@ -3260,7 +3183,6 @@ public function getId() { return $this->id; } - public function setSelf($self) { $this->self = $self; @@ -3270,6 +3192,7 @@ public function getSelf() { return $this->self; } + } class Google_Service_Calendar_EventDateTime extends Google_Model @@ -3289,7 +3212,6 @@ public function getDate() { return $this->date; } - public function setDateTime($dateTime) { $this->dateTime = $dateTime; @@ -3299,7 +3221,6 @@ public function getDateTime() { return $this->dateTime; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -3309,6 +3230,7 @@ public function getTimeZone() { return $this->timeZone; } + } class Google_Service_Calendar_EventExtendedProperties extends Google_Model @@ -3327,7 +3249,6 @@ public function getPrivate() { return $this->private; } - public function setShared($shared) { $this->shared = $shared; @@ -3337,18 +3258,23 @@ public function getShared() { return $this->shared; } + } class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_EventGadget extends Google_Model @@ -3373,7 +3299,6 @@ public function getDisplay() { return $this->display; } - public function setHeight($height) { $this->height = $height; @@ -3383,7 +3308,6 @@ public function getHeight() { return $this->height; } - public function setIconLink($iconLink) { $this->iconLink = $iconLink; @@ -3393,7 +3317,6 @@ public function getIconLink() { return $this->iconLink; } - public function setLink($link) { $this->link = $link; @@ -3403,7 +3326,6 @@ public function getLink() { return $this->link; } - public function setPreferences($preferences) { $this->preferences = $preferences; @@ -3413,7 +3335,6 @@ public function getPreferences() { return $this->preferences; } - public function setTitle($title) { $this->title = $title; @@ -3423,7 +3344,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -3433,7 +3353,6 @@ public function getType() { return $this->type; } - public function setWidth($width) { $this->width = $width; @@ -3443,12 +3362,15 @@ public function getWidth() { return $this->width; } + } class Google_Service_Calendar_EventGadgetPreferences extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_EventOrganizer extends Google_Model @@ -3469,7 +3391,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -3479,7 +3400,6 @@ public function getEmail() { return $this->email; } - public function setId($id) { $this->id = $id; @@ -3489,7 +3409,6 @@ public function getId() { return $this->id; } - public function setSelf($self) { $this->self = $self; @@ -3499,6 +3418,7 @@ public function getSelf() { return $this->self; } + } class Google_Service_Calendar_EventReminder extends Google_Model @@ -3517,7 +3437,6 @@ public function getMethod() { return $this->method; } - public function setMinutes($minutes) { $this->minutes = $minutes; @@ -3527,6 +3446,7 @@ public function getMinutes() { return $this->minutes; } + } class Google_Service_Calendar_EventReminders extends Google_Collection @@ -3547,7 +3467,6 @@ public function getOverrides() { return $this->overrides; } - public function setUseDefault($useDefault) { $this->useDefault = $useDefault; @@ -3557,6 +3476,7 @@ public function getUseDefault() { return $this->useDefault; } + } class Google_Service_Calendar_EventSource extends Google_Model @@ -3575,7 +3495,6 @@ public function getTitle() { return $this->title; } - public function setUrl($url) { $this->url = $url; @@ -3585,6 +3504,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Calendar_Events extends Google_Collection @@ -3615,7 +3535,6 @@ public function getAccessRole() { return $this->accessRole; } - public function setDefaultReminders($defaultReminders) { $this->defaultReminders = $defaultReminders; @@ -3625,7 +3544,6 @@ public function getDefaultReminders() { return $this->defaultReminders; } - public function setDescription($description) { $this->description = $description; @@ -3635,7 +3553,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -3645,7 +3562,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3655,7 +3571,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3665,7 +3580,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3675,7 +3589,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; @@ -3685,7 +3598,6 @@ public function getNextSyncToken() { return $this->nextSyncToken; } - public function setSummary($summary) { $this->summary = $summary; @@ -3695,7 +3607,6 @@ public function getSummary() { return $this->summary; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -3705,7 +3616,6 @@ public function getTimeZone() { return $this->timeZone; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3715,6 +3625,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection @@ -3736,7 +3647,6 @@ public function getBusy() { return $this->busy; } - public function setErrors($errors) { $this->errors = $errors; @@ -3746,6 +3656,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_Calendar_FreeBusyGroup extends Google_Collection @@ -3766,7 +3677,6 @@ public function getCalendars() { return $this->calendars; } - public function setErrors($errors) { $this->errors = $errors; @@ -3776,6 +3686,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_Calendar_FreeBusyRequest extends Google_Collection @@ -3800,7 +3711,6 @@ public function getCalendarExpansionMax() { return $this->calendarExpansionMax; } - public function setGroupExpansionMax($groupExpansionMax) { $this->groupExpansionMax = $groupExpansionMax; @@ -3810,7 +3720,6 @@ public function getGroupExpansionMax() { return $this->groupExpansionMax; } - public function setItems($items) { $this->items = $items; @@ -3820,7 +3729,6 @@ public function getItems() { return $this->items; } - public function setTimeMax($timeMax) { $this->timeMax = $timeMax; @@ -3830,7 +3738,6 @@ public function getTimeMax() { return $this->timeMax; } - public function setTimeMin($timeMin) { $this->timeMin = $timeMin; @@ -3840,7 +3747,6 @@ public function getTimeMin() { return $this->timeMin; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -3850,6 +3756,7 @@ public function getTimeZone() { return $this->timeZone; } + } class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model @@ -3867,6 +3774,7 @@ public function getId() { return $this->id; } + } class Google_Service_Calendar_FreeBusyResponse extends Google_Model @@ -3890,7 +3798,6 @@ public function getCalendars() { return $this->calendars; } - public function setGroups($groups) { $this->groups = $groups; @@ -3900,7 +3807,6 @@ public function getGroups() { return $this->groups; } - public function setKind($kind) { $this->kind = $kind; @@ -3910,7 +3816,6 @@ public function getKind() { return $this->kind; } - public function setTimeMax($timeMax) { $this->timeMax = $timeMax; @@ -3920,7 +3825,6 @@ public function getTimeMax() { return $this->timeMax; } - public function setTimeMin($timeMin) { $this->timeMin = $timeMin; @@ -3930,18 +3834,23 @@ public function getTimeMin() { return $this->timeMin; } + } class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Calendar_Setting extends Google_Model @@ -3962,7 +3871,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -3972,7 +3880,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3982,7 +3889,6 @@ public function getKind() { return $this->kind; } - public function setValue($value) { $this->value = $value; @@ -3992,6 +3898,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Calendar_Settings extends Google_Collection @@ -4015,7 +3922,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -4025,7 +3931,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4035,7 +3940,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4045,7 +3949,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; @@ -4055,6 +3958,7 @@ public function getNextSyncToken() { return $this->nextSyncToken; } + } class Google_Service_Calendar_TimePeriod extends Google_Model @@ -4073,7 +3977,6 @@ public function getEnd() { return $this->end; } - public function setStart($start) { $this->start = $start; @@ -4083,4 +3986,5 @@ public function getStart() { return $this->start; } + } From fab2d5b6cf95bf5c4afd35b7917610a3b3a5329a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:41 -0700 Subject: [PATCH 0362/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 27 +++++++++---------------- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 707a9e712..88419c283 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -301,7 +301,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -311,6 +310,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection @@ -334,7 +334,6 @@ public function getDefaultOutput() { return $this->defaultOutput; } - public function setId($id) { $this->id = $id; @@ -344,7 +343,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -354,7 +352,6 @@ public function getName() { return $this->name; } - public function setStatus($status) { $this->status = $status; @@ -364,7 +361,6 @@ public function getStatus() { return $this->status; } - public function setType($type) { $this->type = $type; @@ -374,6 +370,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model @@ -392,7 +389,6 @@ public function getFormat() { return $this->format; } - public function setType($type) { $this->type = $type; @@ -402,6 +398,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection @@ -422,7 +419,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -432,6 +428,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection @@ -457,7 +454,6 @@ public function getId() { return $this->id; } - public function setOutputs($outputs) { $this->outputs = $outputs; @@ -467,7 +463,6 @@ public function getOutputs() { return $this->outputs; } - public function setReportId($reportId) { $this->reportId = $reportId; @@ -477,7 +472,6 @@ public function getReportId() { return $this->reportId; } - public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $timeSpan) { $this->timeSpan = $timeSpan; @@ -487,7 +481,6 @@ public function getTimeSpan() { return $this->timeSpan; } - public function setTimeUpdated($timeUpdated) { $this->timeUpdated = $timeUpdated; @@ -497,6 +490,7 @@ public function getTimeUpdated() { return $this->timeUpdated; } + } class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model @@ -516,7 +510,6 @@ public function getDownloadUrl() { return $this->downloadUrl; } - public function setFormat($format) { $this->format = $format; @@ -526,7 +519,6 @@ public function getFormat() { return $this->format; } - public function setType($type) { $this->type = $type; @@ -536,6 +528,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model @@ -554,7 +547,6 @@ public function getEndTime() { return $this->endTime; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -564,6 +556,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection @@ -585,7 +578,6 @@ public function getColumnHeaders() { return $this->columnHeaders; } - public function setKind($kind) { $this->kind = $kind; @@ -595,7 +587,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -605,6 +596,7 @@ public function getRows() { return $this->rows; } + } class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model @@ -624,7 +616,6 @@ public function getColumnType() { return $this->columnType; } - public function setDataType($dataType) { $this->dataType = $dataType; @@ -634,7 +625,6 @@ public function getDataType() { return $this->dataType; } - public function setName($name) { $this->name = $name; @@ -644,4 +634,5 @@ public function getName() { return $this->name; } + } From 351a089bdde06d9318407172f19778720c392ee5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:42 -0700 Subject: [PATCH 0363/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 343 +++++++++++------------------- 1 file changed, 123 insertions(+), 220 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 23c1d6bfc..06aa5abe1 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -3351,7 +3351,6 @@ public function getEnd() { return $this->end; } - public function setPrecision($precision) { $this->precision = $precision; @@ -3361,7 +3360,6 @@ public function getPrecision() { return $this->precision; } - public function setStart($start) { $this->start = $start; @@ -3371,6 +3369,7 @@ public function getStart() { return $this->start; } + } class Google_Service_MapsEngine_Asset extends Google_Collection @@ -3402,7 +3401,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -3412,7 +3410,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -3422,7 +3419,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDescription($description) { $this->description = $description; @@ -3432,7 +3428,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -3442,7 +3437,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -3452,7 +3446,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -3462,7 +3455,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -3472,7 +3464,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setName($name) { $this->name = $name; @@ -3482,7 +3473,6 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -3492,7 +3482,6 @@ public function getProjectId() { return $this->projectId; } - public function setResource($resource) { $this->resource = $resource; @@ -3502,7 +3491,6 @@ public function getResource() { return $this->resource; } - public function setTags($tags) { $this->tags = $tags; @@ -3512,7 +3500,6 @@ public function getTags() { return $this->tags; } - public function setType($type) { $this->type = $type; @@ -3522,7 +3509,6 @@ public function getType() { return $this->type; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -3532,6 +3518,7 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection @@ -3552,7 +3539,6 @@ public function getAssets() { return $this->assets; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3562,6 +3548,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_Border extends Google_Model @@ -3581,7 +3568,6 @@ public function getColor() { return $this->color; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -3591,7 +3577,6 @@ public function getOpacity() { return $this->opacity; } - public function setWidth($width) { $this->width = $width; @@ -3601,6 +3586,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_MapsEngine_Color extends Google_Model @@ -3619,7 +3605,6 @@ public function getColor() { return $this->color; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -3629,6 +3614,7 @@ public function getOpacity() { return $this->opacity; } + } class Google_Service_MapsEngine_Datasource extends Google_Model @@ -3646,6 +3632,7 @@ public function getId() { return $this->id; } + } class Google_Service_MapsEngine_DisplayRule extends Google_Collection @@ -3674,7 +3661,6 @@ public function getFilters() { return $this->filters; } - public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) { $this->lineOptions = $lineOptions; @@ -3684,7 +3670,6 @@ public function getLineOptions() { return $this->lineOptions; } - public function setName($name) { $this->name = $name; @@ -3694,7 +3679,6 @@ public function getName() { return $this->name; } - public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) { $this->pointOptions = $pointOptions; @@ -3704,7 +3688,6 @@ public function getPointOptions() { return $this->pointOptions; } - public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) { $this->polygonOptions = $polygonOptions; @@ -3714,7 +3697,6 @@ public function getPolygonOptions() { return $this->polygonOptions; } - public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) { $this->zoomLevels = $zoomLevels; @@ -3724,6 +3706,7 @@ public function getZoomLevels() { return $this->zoomLevels; } + } class Google_Service_MapsEngine_Feature extends Google_Model @@ -3744,7 +3727,6 @@ public function getGeometry() { return $this->geometry; } - public function setProperties($properties) { $this->properties = $properties; @@ -3754,7 +3736,6 @@ public function getProperties() { return $this->properties; } - public function setType($type) { $this->type = $type; @@ -3764,6 +3745,7 @@ public function getType() { return $this->type; } + } class Google_Service_MapsEngine_FeatureInfo extends Google_Model @@ -3781,6 +3763,7 @@ public function getContent() { return $this->content; } + } class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection @@ -3801,7 +3784,6 @@ public function getGxIds() { return $this->gxIds; } - public function setPrimaryKeys($primaryKeys) { $this->primaryKeys = $primaryKeys; @@ -3811,6 +3793,7 @@ public function getPrimaryKeys() { return $this->primaryKeys; } + } class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection @@ -3831,7 +3814,6 @@ public function getFeatures() { return $this->features; } - public function setNormalizeGeometries($normalizeGeometries) { $this->normalizeGeometries = $normalizeGeometries; @@ -3841,6 +3823,7 @@ public function getNormalizeGeometries() { return $this->normalizeGeometries; } + } class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection @@ -3861,7 +3844,6 @@ public function getFeatures() { return $this->features; } - public function setNormalizeGeometries($normalizeGeometries) { $this->normalizeGeometries = $normalizeGeometries; @@ -3871,6 +3853,7 @@ public function getNormalizeGeometries() { return $this->normalizeGeometries; } + } class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection @@ -3895,7 +3878,6 @@ public function getAllowedQueriesPerSecond() { return $this->allowedQueriesPerSecond; } - public function setFeatures($features) { $this->features = $features; @@ -3905,7 +3887,6 @@ public function getFeatures() { return $this->features; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3915,7 +3896,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSchema(Google_Service_MapsEngine_Schema $schema) { $this->schema = $schema; @@ -3925,7 +3905,6 @@ public function getSchema() { return $this->schema; } - public function setType($type) { $this->type = $type; @@ -3935,6 +3914,7 @@ public function getType() { return $this->type; } + } class Google_Service_MapsEngine_Filter extends Google_Model @@ -3954,7 +3934,6 @@ public function getColumn() { return $this->column; } - public function setOperator($operator) { $this->operator = $operator; @@ -3964,7 +3943,6 @@ public function getOperator() { return $this->operator; } - public function setValue($value) { $this->value = $value; @@ -3974,6 +3952,7 @@ public function getValue() { return $this->value; } + } class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model @@ -3991,16 +3970,19 @@ public function getType() { return $this->type; } + } -class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection +class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'geometries'; protected $internal_gapi_mappings = array( ); protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; protected $geometriesDataType = 'array'; - + protected function gapiInit() { + $this->type = 'GeometryCollection'; + } public function setGeometries($geometries) { $this->geometries = $geometries; @@ -4010,15 +3992,18 @@ public function getGeometries() { return $this->geometries; } + } -class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection +class Google_Service_MapsEngine_GeoJsonLineString extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'LineString'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4028,15 +4013,18 @@ public function getCoordinates() { return $this->coordinates; } + } -class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection +class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'MultiLineString'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4046,15 +4034,18 @@ public function getCoordinates() { return $this->coordinates; } + } -class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection +class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'MultiPoint'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4064,15 +4055,18 @@ public function getCoordinates() { return $this->coordinates; } + } -class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection +class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'MultiPolygon'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4082,15 +4076,18 @@ public function getCoordinates() { return $this->coordinates; } + } -class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection +class Google_Service_MapsEngine_GeoJsonPoint extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'Point'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4100,15 +4097,18 @@ public function getCoordinates() { return $this->coordinates; } + } -class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection +class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Service_MapsEngine_GeoJsonGeometry { protected $collection_key = 'coordinates'; protected $internal_gapi_mappings = array( ); public $coordinates; - + protected function gapiInit() { + $this->type = 'Polygon'; + } public function setCoordinates($coordinates) { $this->coordinates = $coordinates; @@ -4118,12 +4118,15 @@ public function getCoordinates() { return $this->coordinates; } + } class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_Icon extends Google_Model @@ -4143,7 +4146,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -4153,7 +4155,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -4163,6 +4164,7 @@ public function getName() { return $this->name; } + } class Google_Service_MapsEngine_IconStyle extends Google_Model @@ -4185,7 +4187,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -4195,7 +4196,6 @@ public function getName() { return $this->name; } - public function setScaledShape(Google_Service_MapsEngine_ScaledShape $scaledShape) { $this->scaledShape = $scaledShape; @@ -4205,7 +4205,6 @@ public function getScaledShape() { return $this->scaledShape; } - public function setScalingFunction(Google_Service_MapsEngine_ScalingFunction $scalingFunction) { $this->scalingFunction = $scalingFunction; @@ -4215,6 +4214,7 @@ public function getScalingFunction() { return $this->scalingFunction; } + } class Google_Service_MapsEngine_IconsListResponse extends Google_Collection @@ -4235,7 +4235,6 @@ public function getIcons() { return $this->icons; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4245,6 +4244,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_LabelStyle extends Google_Model @@ -4269,7 +4269,6 @@ public function getColor() { return $this->color; } - public function setColumn($column) { $this->column = $column; @@ -4279,7 +4278,6 @@ public function getColumn() { return $this->column; } - public function setFontStyle($fontStyle) { $this->fontStyle = $fontStyle; @@ -4289,7 +4287,6 @@ public function getFontStyle() { return $this->fontStyle; } - public function setFontWeight($fontWeight) { $this->fontWeight = $fontWeight; @@ -4299,7 +4296,6 @@ public function getFontWeight() { return $this->fontWeight; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -4309,7 +4305,6 @@ public function getOpacity() { return $this->opacity; } - public function setOutline(Google_Service_MapsEngine_Color $outline) { $this->outline = $outline; @@ -4319,7 +4314,6 @@ public function getOutline() { return $this->outline; } - public function setSize($size) { $this->size = $size; @@ -4329,6 +4323,7 @@ public function getSize() { return $this->size; } + } class Google_Service_MapsEngine_Layer extends Google_Collection @@ -4368,7 +4363,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -4378,7 +4372,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -4388,7 +4381,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDatasourceType($datasourceType) { $this->datasourceType = $datasourceType; @@ -4398,7 +4390,6 @@ public function getDatasourceType() { return $this->datasourceType; } - public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) { $this->datasources = $datasources; @@ -4408,7 +4399,6 @@ public function getDatasources() { return $this->datasources; } - public function setDescription($description) { $this->description = $description; @@ -4418,7 +4408,6 @@ public function getDescription() { return $this->description; } - public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; @@ -4428,7 +4417,6 @@ public function getDraftAccessList() { return $this->draftAccessList; } - public function setEtag($etag) { $this->etag = $etag; @@ -4438,7 +4426,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -4448,7 +4435,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -4458,7 +4444,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -4468,7 +4453,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setLayerType($layerType) { $this->layerType = $layerType; @@ -4478,7 +4462,6 @@ public function getLayerType() { return $this->layerType; } - public function setName($name) { $this->name = $name; @@ -4488,7 +4471,6 @@ public function getName() { return $this->name; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -4498,7 +4480,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -4508,7 +4489,6 @@ public function getProjectId() { return $this->projectId; } - public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; @@ -4518,7 +4498,6 @@ public function getPublishedAccessList() { return $this->publishedAccessList; } - public function setPublishingStatus($publishingStatus) { $this->publishingStatus = $publishingStatus; @@ -4528,7 +4507,6 @@ public function getPublishingStatus() { return $this->publishingStatus; } - public function setStyle(Google_Service_MapsEngine_VectorStyle $style) { $this->style = $style; @@ -4538,7 +4516,6 @@ public function getStyle() { return $this->style; } - public function setTags($tags) { $this->tags = $tags; @@ -4548,7 +4525,6 @@ public function getTags() { return $this->tags; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -4558,6 +4534,7 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } class Google_Service_MapsEngine_LayersListResponse extends Google_Collection @@ -4578,7 +4555,6 @@ public function getLayers() { return $this->layers; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4588,6 +4564,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_LineStyle extends Google_Collection @@ -4612,7 +4589,6 @@ public function getBorder() { return $this->border; } - public function setDash($dash) { $this->dash = $dash; @@ -4622,7 +4598,6 @@ public function getDash() { return $this->dash; } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; @@ -4632,7 +4607,6 @@ public function getLabel() { return $this->label; } - public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) { $this->stroke = $stroke; @@ -4642,6 +4616,7 @@ public function getStroke() { return $this->stroke; } + } class Google_Service_MapsEngine_LineStyleStroke extends Google_Model @@ -4661,7 +4636,6 @@ public function getColor() { return $this->color; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -4671,7 +4645,6 @@ public function getOpacity() { return $this->opacity; } - public function setWidth($width) { $this->width = $width; @@ -4681,6 +4654,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_MapsEngine_Map extends Google_Collection @@ -4718,7 +4692,6 @@ public function getBbox() { return $this->bbox; } - public function setContents(Google_Service_MapsEngine_MapItem $contents) { $this->contents = $contents; @@ -4728,7 +4701,6 @@ public function getContents() { return $this->contents; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -4738,7 +4710,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -4748,7 +4719,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -4758,7 +4728,6 @@ public function getDefaultViewport() { return $this->defaultViewport; } - public function setDescription($description) { $this->description = $description; @@ -4768,7 +4737,6 @@ public function getDescription() { return $this->description; } - public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; @@ -4778,7 +4746,6 @@ public function getDraftAccessList() { return $this->draftAccessList; } - public function setEtag($etag) { $this->etag = $etag; @@ -4788,7 +4755,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -4798,7 +4764,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -4808,7 +4773,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -4818,7 +4782,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setName($name) { $this->name = $name; @@ -4828,7 +4791,6 @@ public function getName() { return $this->name; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -4838,7 +4800,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -4848,7 +4809,6 @@ public function getProjectId() { return $this->projectId; } - public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; @@ -4858,7 +4818,6 @@ public function getPublishedAccessList() { return $this->publishedAccessList; } - public function setPublishingStatus($publishingStatus) { $this->publishingStatus = $publishingStatus; @@ -4868,7 +4827,6 @@ public function getPublishingStatus() { return $this->publishingStatus; } - public function setTags($tags) { $this->tags = $tags; @@ -4878,7 +4836,6 @@ public function getTags() { return $this->tags; } - public function setVersions($versions) { $this->versions = $versions; @@ -4888,7 +4845,6 @@ public function getVersions() { return $this->versions; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -4898,9 +4854,10 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } -class Google_Service_MapsEngine_MapFolder extends Google_Collection +class Google_Service_MapsEngine_MapFolder extends Google_Service_MapsEngine_MapItem { protected $collection_key = 'defaultViewport'; protected $internal_gapi_mappings = array( @@ -4912,7 +4869,9 @@ class Google_Service_MapsEngine_MapFolder extends Google_Collection public $key; public $name; public $visibility; - + protected function gapiInit() { + $this->type = 'folder'; + } public function setContents($contents) { $this->contents = $contents; @@ -4922,7 +4881,6 @@ public function getContents() { return $this->contents; } - public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -4932,7 +4890,6 @@ public function getDefaultViewport() { return $this->defaultViewport; } - public function setExpandable($expandable) { $this->expandable = $expandable; @@ -4942,7 +4899,6 @@ public function getExpandable() { return $this->expandable; } - public function setKey($key) { $this->key = $key; @@ -4952,7 +4908,6 @@ public function getKey() { return $this->key; } - public function setName($name) { $this->name = $name; @@ -4962,7 +4917,6 @@ public function getName() { return $this->name; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -4972,6 +4926,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_MapsEngine_MapItem extends Google_Model @@ -4989,9 +4944,10 @@ public function getType() { return $this->type; } + } -class Google_Service_MapsEngine_MapKmlLink extends Google_Collection +class Google_Service_MapsEngine_MapKmlLink extends Google_Service_MapsEngine_MapItem { protected $collection_key = 'defaultViewport'; protected $internal_gapi_mappings = array( @@ -5000,7 +4956,9 @@ class Google_Service_MapsEngine_MapKmlLink extends Google_Collection public $kmlUrl; public $name; public $visibility; - + protected function gapiInit() { + $this->type = 'kmlLink'; + } public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -5010,7 +4968,6 @@ public function getDefaultViewport() { return $this->defaultViewport; } - public function setKmlUrl($kmlUrl) { $this->kmlUrl = $kmlUrl; @@ -5020,7 +4977,6 @@ public function getKmlUrl() { return $this->kmlUrl; } - public function setName($name) { $this->name = $name; @@ -5030,7 +4986,6 @@ public function getName() { return $this->name; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -5040,9 +4995,10 @@ public function getVisibility() { return $this->visibility; } + } -class Google_Service_MapsEngine_MapLayer extends Google_Collection +class Google_Service_MapsEngine_MapLayer extends Google_Service_MapsEngine_MapItem { protected $collection_key = 'defaultViewport'; protected $internal_gapi_mappings = array( @@ -5052,7 +5008,9 @@ class Google_Service_MapsEngine_MapLayer extends Google_Collection public $key; public $name; public $visibility; - + protected function gapiInit() { + $this->type = 'layer'; + } public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -5062,7 +5020,6 @@ public function getDefaultViewport() { return $this->defaultViewport; } - public function setId($id) { $this->id = $id; @@ -5072,7 +5029,6 @@ public function getId() { return $this->id; } - public function setKey($key) { $this->key = $key; @@ -5082,7 +5038,6 @@ public function getKey() { return $this->key; } - public function setName($name) { $this->name = $name; @@ -5092,7 +5047,6 @@ public function getName() { return $this->name; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -5102,6 +5056,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_MapsEngine_MapsListResponse extends Google_Collection @@ -5122,7 +5077,6 @@ public function getMaps() { return $this->maps; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5132,6 +5086,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_MapsengineFile extends Google_Model @@ -5151,7 +5106,6 @@ public function getFilename() { return $this->filename; } - public function setSize($size) { $this->size = $size; @@ -5161,7 +5115,6 @@ public function getSize() { return $this->size; } - public function setUploadStatus($uploadStatus) { $this->uploadStatus = $uploadStatus; @@ -5171,6 +5124,7 @@ public function getUploadStatus() { return $this->uploadStatus; } + } class Google_Service_MapsEngine_Parent extends Google_Model @@ -5188,6 +5142,7 @@ public function getId() { return $this->id; } + } class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection @@ -5208,7 +5163,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setParents($parents) { $this->parents = $parents; @@ -5218,6 +5172,7 @@ public function getParents() { return $this->parents; } + } class Google_Service_MapsEngine_Permission extends Google_Model @@ -5238,7 +5193,6 @@ public function getDiscoverable() { return $this->discoverable; } - public function setId($id) { $this->id = $id; @@ -5248,7 +5202,6 @@ public function getId() { return $this->id; } - public function setRole($role) { $this->role = $role; @@ -5258,7 +5211,6 @@ public function getRole() { return $this->role; } - public function setType($type) { $this->type = $type; @@ -5268,6 +5220,7 @@ public function getType() { return $this->type; } + } class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Collection @@ -5286,12 +5239,15 @@ public function getIds() { return $this->ids; } + } class Google_Service_MapsEngine_PermissionsBatchDeleteResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Collection @@ -5311,12 +5267,15 @@ public function getPermissions() { return $this->permissions; } + } class Google_Service_MapsEngine_PermissionsBatchUpdateResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collection @@ -5336,6 +5295,7 @@ public function getPermissions() { return $this->permissions; } + } class Google_Service_MapsEngine_PointStyle extends Google_Model @@ -5356,7 +5316,6 @@ public function getIcon() { return $this->icon; } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; @@ -5366,6 +5325,7 @@ public function getLabel() { return $this->label; } + } class Google_Service_MapsEngine_PolygonStyle extends Google_Model @@ -5388,7 +5348,6 @@ public function getFill() { return $this->fill; } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; @@ -5398,7 +5357,6 @@ public function getLabel() { return $this->label; } - public function setStroke(Google_Service_MapsEngine_Border $stroke) { $this->stroke = $stroke; @@ -5408,12 +5366,15 @@ public function getStroke() { return $this->stroke; } + } class Google_Service_MapsEngine_ProcessResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_Project extends Google_Model @@ -5432,7 +5393,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -5442,6 +5402,7 @@ public function getName() { return $this->name; } + } class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection @@ -5461,12 +5422,15 @@ public function getProjects() { return $this->projects; } + } class Google_Service_MapsEngine_PublishResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_PublishedLayer extends Google_Model @@ -5488,7 +5452,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -5498,7 +5461,6 @@ public function getId() { return $this->id; } - public function setLayerType($layerType) { $this->layerType = $layerType; @@ -5508,7 +5470,6 @@ public function getLayerType() { return $this->layerType; } - public function setName($name) { $this->name = $name; @@ -5518,7 +5479,6 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -5528,6 +5488,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Collection @@ -5548,7 +5509,6 @@ public function getLayers() { return $this->layers; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5558,6 +5518,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_PublishedMap extends Google_Model @@ -5581,7 +5542,6 @@ public function getContents() { return $this->contents; } - public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; @@ -5591,7 +5551,6 @@ public function getDefaultViewport() { return $this->defaultViewport; } - public function setDescription($description) { $this->description = $description; @@ -5601,7 +5560,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -5611,7 +5569,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -5621,7 +5578,6 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -5631,6 +5587,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collection @@ -5651,7 +5608,6 @@ public function getMaps() { return $this->maps; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5661,6 +5617,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_MapsEngine_Raster extends Google_Collection @@ -5699,7 +5656,6 @@ public function getAcquisitionTime() { return $this->acquisitionTime; } - public function setAttribution($attribution) { $this->attribution = $attribution; @@ -5709,7 +5665,6 @@ public function getAttribution() { return $this->attribution; } - public function setBbox($bbox) { $this->bbox = $bbox; @@ -5719,7 +5674,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -5729,7 +5683,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -5739,7 +5692,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDescription($description) { $this->description = $description; @@ -5749,7 +5701,6 @@ public function getDescription() { return $this->description; } - public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; @@ -5759,7 +5710,6 @@ public function getDraftAccessList() { return $this->draftAccessList; } - public function setEtag($etag) { $this->etag = $etag; @@ -5769,7 +5719,6 @@ public function getEtag() { return $this->etag; } - public function setFiles($files) { $this->files = $files; @@ -5779,7 +5728,6 @@ public function getFiles() { return $this->files; } - public function setId($id) { $this->id = $id; @@ -5789,7 +5737,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -5799,7 +5746,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -5809,7 +5755,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setMaskType($maskType) { $this->maskType = $maskType; @@ -5819,7 +5764,6 @@ public function getMaskType() { return $this->maskType; } - public function setName($name) { $this->name = $name; @@ -5829,7 +5773,6 @@ public function getName() { return $this->name; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -5839,7 +5782,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -5849,7 +5791,6 @@ public function getProjectId() { return $this->projectId; } - public function setRasterType($rasterType) { $this->rasterType = $rasterType; @@ -5859,7 +5800,6 @@ public function getRasterType() { return $this->rasterType; } - public function setTags($tags) { $this->tags = $tags; @@ -5869,7 +5809,6 @@ public function getTags() { return $this->tags; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -5879,6 +5818,7 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } class Google_Service_MapsEngine_RasterCollection extends Google_Collection @@ -5913,7 +5853,6 @@ public function getAttribution() { return $this->attribution; } - public function setBbox($bbox) { $this->bbox = $bbox; @@ -5923,7 +5862,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -5933,7 +5871,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -5943,7 +5880,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDescription($description) { $this->description = $description; @@ -5953,7 +5889,6 @@ public function getDescription() { return $this->description; } - public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; @@ -5963,7 +5898,6 @@ public function getDraftAccessList() { return $this->draftAccessList; } - public function setEtag($etag) { $this->etag = $etag; @@ -5973,7 +5907,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -5983,7 +5916,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -5993,7 +5925,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -6003,7 +5934,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setMosaic($mosaic) { $this->mosaic = $mosaic; @@ -6013,7 +5943,6 @@ public function getMosaic() { return $this->mosaic; } - public function setName($name) { $this->name = $name; @@ -6023,7 +5952,6 @@ public function getName() { return $this->name; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -6033,7 +5961,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -6043,7 +5970,6 @@ public function getProjectId() { return $this->projectId; } - public function setRasterType($rasterType) { $this->rasterType = $rasterType; @@ -6053,7 +5979,6 @@ public function getRasterType() { return $this->rasterType; } - public function setTags($tags) { $this->tags = $tags; @@ -6063,7 +5988,6 @@ public function getTags() { return $this->tags; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -6073,6 +5997,7 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection @@ -6093,7 +6018,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setRasterCollections($rasterCollections) { $this->rasterCollections = $rasterCollections; @@ -6103,6 +6027,7 @@ public function getRasterCollections() { return $this->rasterCollections; } + } class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection @@ -6129,7 +6054,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -6139,7 +6063,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setDescription($description) { $this->description = $description; @@ -6149,7 +6072,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -6159,7 +6081,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -6169,7 +6090,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setName($name) { $this->name = $name; @@ -6179,7 +6099,6 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -6189,7 +6108,6 @@ public function getProjectId() { return $this->projectId; } - public function setRasterType($rasterType) { $this->rasterType = $rasterType; @@ -6199,7 +6117,6 @@ public function getRasterType() { return $this->rasterType; } - public function setTags($tags) { $this->tags = $tags; @@ -6209,6 +6126,7 @@ public function getTags() { return $this->tags; } + } class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection @@ -6227,12 +6145,15 @@ public function getIds() { return $this->ids; } + } class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection @@ -6251,12 +6172,15 @@ public function getIds() { return $this->ids; } + } class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection @@ -6277,7 +6201,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setRasters($rasters) { $this->rasters = $rasters; @@ -6287,6 +6210,7 @@ public function getRasters() { return $this->rasters; } + } class Google_Service_MapsEngine_RastersListResponse extends Google_Collection @@ -6307,7 +6231,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setRasters($rasters) { $this->rasters = $rasters; @@ -6317,6 +6240,7 @@ public function getRasters() { return $this->rasters; } + } class Google_Service_MapsEngine_ScaledShape extends Google_Model @@ -6338,7 +6262,6 @@ public function getBorder() { return $this->border; } - public function setFill(Google_Service_MapsEngine_Color $fill) { $this->fill = $fill; @@ -6348,7 +6271,6 @@ public function getFill() { return $this->fill; } - public function setShape($shape) { $this->shape = $shape; @@ -6358,6 +6280,7 @@ public function getShape() { return $this->shape; } + } class Google_Service_MapsEngine_ScalingFunction extends Google_Model @@ -6380,7 +6303,6 @@ public function getColumn() { return $this->column; } - public function setScalingType($scalingType) { $this->scalingType = $scalingType; @@ -6390,7 +6312,6 @@ public function getScalingType() { return $this->scalingType; } - public function setSizeRange(Google_Service_MapsEngine_SizeRange $sizeRange) { $this->sizeRange = $sizeRange; @@ -6400,7 +6321,6 @@ public function getSizeRange() { return $this->sizeRange; } - public function setValueRange(Google_Service_MapsEngine_ValueRange $valueRange) { $this->valueRange = $valueRange; @@ -6410,6 +6330,7 @@ public function getValueRange() { return $this->valueRange; } + } class Google_Service_MapsEngine_Schema extends Google_Collection @@ -6431,7 +6352,6 @@ public function getColumns() { return $this->columns; } - public function setPrimaryGeometry($primaryGeometry) { $this->primaryGeometry = $primaryGeometry; @@ -6441,7 +6361,6 @@ public function getPrimaryGeometry() { return $this->primaryGeometry; } - public function setPrimaryKey($primaryKey) { $this->primaryKey = $primaryKey; @@ -6451,6 +6370,7 @@ public function getPrimaryKey() { return $this->primaryKey; } + } class Google_Service_MapsEngine_SizeRange extends Google_Model @@ -6469,7 +6389,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -6479,6 +6398,7 @@ public function getMin() { return $this->min; } + } class Google_Service_MapsEngine_Table extends Google_Collection @@ -6516,7 +6436,6 @@ public function getBbox() { return $this->bbox; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -6526,7 +6445,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; @@ -6536,7 +6454,6 @@ public function getCreatorEmail() { return $this->creatorEmail; } - public function setDescription($description) { $this->description = $description; @@ -6546,7 +6463,6 @@ public function getDescription() { return $this->description; } - public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; @@ -6556,7 +6472,6 @@ public function getDraftAccessList() { return $this->draftAccessList; } - public function setEtag($etag) { $this->etag = $etag; @@ -6566,7 +6481,6 @@ public function getEtag() { return $this->etag; } - public function setFiles($files) { $this->files = $files; @@ -6576,7 +6490,6 @@ public function getFiles() { return $this->files; } - public function setId($id) { $this->id = $id; @@ -6586,7 +6499,6 @@ public function getId() { return $this->id; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -6596,7 +6508,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; @@ -6606,7 +6517,6 @@ public function getLastModifierEmail() { return $this->lastModifierEmail; } - public function setName($name) { $this->name = $name; @@ -6616,7 +6526,6 @@ public function getName() { return $this->name; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -6626,7 +6535,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -6636,7 +6544,6 @@ public function getProjectId() { return $this->projectId; } - public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; @@ -6646,7 +6553,6 @@ public function getPublishedAccessList() { return $this->publishedAccessList; } - public function setSchema(Google_Service_MapsEngine_Schema $schema) { $this->schema = $schema; @@ -6656,7 +6562,6 @@ public function getSchema() { return $this->schema; } - public function setSourceEncoding($sourceEncoding) { $this->sourceEncoding = $sourceEncoding; @@ -6666,7 +6571,6 @@ public function getSourceEncoding() { return $this->sourceEncoding; } - public function setTags($tags) { $this->tags = $tags; @@ -6676,7 +6580,6 @@ public function getTags() { return $this->tags; } - public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; @@ -6686,6 +6589,7 @@ public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } + } class Google_Service_MapsEngine_TableColumn extends Google_Model @@ -6704,7 +6608,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -6714,6 +6617,7 @@ public function getType() { return $this->type; } + } class Google_Service_MapsEngine_TablesListResponse extends Google_Collection @@ -6734,7 +6638,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTables($tables) { $this->tables = $tables; @@ -6744,6 +6647,7 @@ public function getTables() { return $this->tables; } + } class Google_Service_MapsEngine_ValueRange extends Google_Model @@ -6762,7 +6666,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -6772,6 +6675,7 @@ public function getMin() { return $this->min; } + } class Google_Service_MapsEngine_VectorStyle extends Google_Collection @@ -6794,7 +6698,6 @@ public function getDisplayRules() { return $this->displayRules; } - public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) { $this->featureInfo = $featureInfo; @@ -6804,7 +6707,6 @@ public function getFeatureInfo() { return $this->featureInfo; } - public function setType($type) { $this->type = $type; @@ -6814,6 +6716,7 @@ public function getType() { return $this->type; } + } class Google_Service_MapsEngine_ZoomLevels extends Google_Model @@ -6832,7 +6735,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -6842,4 +6744,5 @@ public function getMin() { return $this->min; } + } From 72eead848c29b08673d017bab0922ccd06c843da Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:43 -0700 Subject: [PATCH 0364/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 129 +++++-------------------- 1 file changed, 26 insertions(+), 103 deletions(-) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index eee52a366..e7aa77177 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -286,7 +286,6 @@ public function getAuthUri() { return $this->authUri; } - public function setCaptchaRequired($captchaRequired) { $this->captchaRequired = $captchaRequired; @@ -296,7 +295,6 @@ public function getCaptchaRequired() { return $this->captchaRequired; } - public function setForExistingProvider($forExistingProvider) { $this->forExistingProvider = $forExistingProvider; @@ -306,7 +304,6 @@ public function getForExistingProvider() { return $this->forExistingProvider; } - public function setKind($kind) { $this->kind = $kind; @@ -316,7 +313,6 @@ public function getKind() { return $this->kind; } - public function setProviderId($providerId) { $this->providerId = $providerId; @@ -326,7 +322,6 @@ public function getProviderId() { return $this->providerId; } - public function setRegistered($registered) { $this->registered = $registered; @@ -336,6 +331,7 @@ public function getRegistered() { return $this->registered; } + } class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model @@ -353,6 +349,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection @@ -374,7 +371,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -384,7 +380,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setUsers($users) { $this->users = $users; @@ -394,6 +389,7 @@ public function getUsers() { return $this->users; } + } class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection @@ -414,7 +410,6 @@ public function getKind() { return $this->kind; } - public function setUsers($users) { $this->users = $users; @@ -424,6 +419,7 @@ public function getUsers() { return $this->users; } + } class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model @@ -442,7 +438,6 @@ public function getKind() { return $this->kind; } - public function setOobCode($oobCode) { $this->oobCode = $oobCode; @@ -452,6 +447,7 @@ public function getOobCode() { return $this->oobCode; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model @@ -476,7 +472,6 @@ public function getAppId() { return $this->appId; } - public function setClientId($clientId) { $this->clientId = $clientId; @@ -486,7 +481,6 @@ public function getClientId() { return $this->clientId; } - public function setContext($context) { $this->context = $context; @@ -496,7 +490,6 @@ public function getContext() { return $this->context; } - public function setContinueUri($continueUri) { $this->continueUri = $continueUri; @@ -506,7 +499,6 @@ public function getContinueUri() { return $this->continueUri; } - public function setIdentifier($identifier) { $this->identifier = $identifier; @@ -516,7 +508,6 @@ public function getIdentifier() { return $this->identifier; } - public function setOpenidRealm($openidRealm) { $this->openidRealm = $openidRealm; @@ -526,7 +517,6 @@ public function getOpenidRealm() { return $this->openidRealm; } - public function setOtaApp($otaApp) { $this->otaApp = $otaApp; @@ -536,7 +526,6 @@ public function getOtaApp() { return $this->otaApp; } - public function setProviderId($providerId) { $this->providerId = $providerId; @@ -546,6 +535,7 @@ public function getProviderId() { return $this->providerId; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model @@ -563,6 +553,7 @@ public function getLocalId() { return $this->localId; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model @@ -581,7 +572,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -591,6 +581,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection @@ -611,7 +602,6 @@ public function getEmail() { return $this->email; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -621,7 +611,6 @@ public function getIdToken() { return $this->idToken; } - public function setLocalId($localId) { $this->localId = $localId; @@ -631,12 +620,15 @@ public function getLocalId() { return $this->localId; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model @@ -657,7 +649,6 @@ public function getEmail() { return $this->email; } - public function setNewPassword($newPassword) { $this->newPassword = $newPassword; @@ -667,7 +658,6 @@ public function getNewPassword() { return $this->newPassword; } - public function setOldPassword($oldPassword) { $this->oldPassword = $oldPassword; @@ -677,7 +667,6 @@ public function getOldPassword() { return $this->oldPassword; } - public function setOobCode($oobCode) { $this->oobCode = $oobCode; @@ -687,6 +676,7 @@ public function getOobCode() { return $this->oobCode; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection @@ -715,7 +705,6 @@ public function getCaptchaChallenge() { return $this->captchaChallenge; } - public function setCaptchaResponse($captchaResponse) { $this->captchaResponse = $captchaResponse; @@ -725,7 +714,6 @@ public function getCaptchaResponse() { return $this->captchaResponse; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -735,7 +723,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -745,7 +732,6 @@ public function getEmail() { return $this->email; } - public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; @@ -755,7 +741,6 @@ public function getEmailVerified() { return $this->emailVerified; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -765,7 +750,6 @@ public function getIdToken() { return $this->idToken; } - public function setLocalId($localId) { $this->localId = $localId; @@ -775,7 +759,6 @@ public function getLocalId() { return $this->localId; } - public function setOobCode($oobCode) { $this->oobCode = $oobCode; @@ -785,7 +768,6 @@ public function getOobCode() { return $this->oobCode; } - public function setPassword($password) { $this->password = $password; @@ -795,7 +777,6 @@ public function getPassword() { return $this->password; } - public function setProvider($provider) { $this->provider = $provider; @@ -805,7 +786,6 @@ public function getProvider() { return $this->provider; } - public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) { $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; @@ -815,6 +795,7 @@ public function getUpgradeToFederatedLogin() { return $this->upgradeToFederatedLogin; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection @@ -839,7 +820,6 @@ public function getHashAlgorithm() { return $this->hashAlgorithm; } - public function setMemoryCost($memoryCost) { $this->memoryCost = $memoryCost; @@ -849,7 +829,6 @@ public function getMemoryCost() { return $this->memoryCost; } - public function setRounds($rounds) { $this->rounds = $rounds; @@ -859,7 +838,6 @@ public function getRounds() { return $this->rounds; } - public function setSaltSeparator($saltSeparator) { $this->saltSeparator = $saltSeparator; @@ -869,7 +847,6 @@ public function getSaltSeparator() { return $this->saltSeparator; } - public function setSignerKey($signerKey) { $this->signerKey = $signerKey; @@ -879,7 +856,6 @@ public function getSignerKey() { return $this->signerKey; } - public function setUsers($users) { $this->users = $users; @@ -889,6 +865,7 @@ public function getUsers() { return $this->users; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model @@ -908,7 +885,6 @@ public function getPendingIdToken() { return $this->pendingIdToken; } - public function setPostBody($postBody) { $this->postBody = $postBody; @@ -918,7 +894,6 @@ public function getPostBody() { return $this->postBody; } - public function setRequestUri($requestUri) { $this->requestUri = $requestUri; @@ -928,6 +903,7 @@ public function getRequestUri() { return $this->requestUri; } + } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model @@ -949,7 +925,6 @@ public function getCaptchaChallenge() { return $this->captchaChallenge; } - public function setCaptchaResponse($captchaResponse) { $this->captchaResponse = $captchaResponse; @@ -959,7 +934,6 @@ public function getCaptchaResponse() { return $this->captchaResponse; } - public function setEmail($email) { $this->email = $email; @@ -969,7 +943,6 @@ public function getEmail() { return $this->email; } - public function setPassword($password) { $this->password = $password; @@ -979,7 +952,6 @@ public function getPassword() { return $this->password; } - public function setPendingIdToken($pendingIdToken) { $this->pendingIdToken = $pendingIdToken; @@ -989,6 +961,7 @@ public function getPendingIdToken() { return $this->pendingIdToken; } + } class Google_Service_IdentityToolkit_Relyingparty extends Google_Model @@ -1013,7 +986,6 @@ public function getCaptchaResp() { return $this->captchaResp; } - public function setChallenge($challenge) { $this->challenge = $challenge; @@ -1023,7 +995,6 @@ public function getChallenge() { return $this->challenge; } - public function setEmail($email) { $this->email = $email; @@ -1033,7 +1004,6 @@ public function getEmail() { return $this->email; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -1043,7 +1013,6 @@ public function getIdToken() { return $this->idToken; } - public function setKind($kind) { $this->kind = $kind; @@ -1053,7 +1022,6 @@ public function getKind() { return $this->kind; } - public function setNewEmail($newEmail) { $this->newEmail = $newEmail; @@ -1063,7 +1031,6 @@ public function getNewEmail() { return $this->newEmail; } - public function setRequestType($requestType) { $this->requestType = $requestType; @@ -1073,7 +1040,6 @@ public function getRequestType() { return $this->requestType; } - public function setUserIp($userIp) { $this->userIp = $userIp; @@ -1083,6 +1049,7 @@ public function getUserIp() { return $this->userIp; } + } class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model @@ -1101,7 +1068,6 @@ public function getEmail() { return $this->email; } - public function setKind($kind) { $this->kind = $kind; @@ -1111,6 +1077,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection @@ -1134,7 +1101,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -1144,7 +1110,6 @@ public function getEmail() { return $this->email; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -1154,7 +1119,6 @@ public function getIdToken() { return $this->idToken; } - public function setKind($kind) { $this->kind = $kind; @@ -1164,7 +1128,6 @@ public function getKind() { return $this->kind; } - public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; @@ -1174,6 +1137,7 @@ public function getProviderUserInfo() { return $this->providerUserInfo; } + } class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model @@ -1193,7 +1157,6 @@ public function getDisplayName() { return $this->displayName; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1203,7 +1166,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setProviderId($providerId) { $this->providerId = $providerId; @@ -1213,6 +1175,7 @@ public function getProviderId() { return $this->providerId; } + } class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection @@ -1233,7 +1196,6 @@ public function getError() { return $this->error; } - public function setKind($kind) { $this->kind = $kind; @@ -1243,6 +1205,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model @@ -1261,7 +1224,6 @@ public function getIndex() { return $this->index; } - public function setMessage($message) { $this->message = $message; @@ -1271,6 +1233,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_IdentityToolkit_UserInfo extends Google_Collection @@ -1299,7 +1262,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -1309,7 +1271,6 @@ public function getEmail() { return $this->email; } - public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; @@ -1319,7 +1280,6 @@ public function getEmailVerified() { return $this->emailVerified; } - public function setLocalId($localId) { $this->localId = $localId; @@ -1329,7 +1289,6 @@ public function getLocalId() { return $this->localId; } - public function setPasswordHash($passwordHash) { $this->passwordHash = $passwordHash; @@ -1339,7 +1298,6 @@ public function getPasswordHash() { return $this->passwordHash; } - public function setPasswordUpdatedAt($passwordUpdatedAt) { $this->passwordUpdatedAt = $passwordUpdatedAt; @@ -1349,7 +1307,6 @@ public function getPasswordUpdatedAt() { return $this->passwordUpdatedAt; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1359,7 +1316,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; @@ -1369,7 +1325,6 @@ public function getProviderUserInfo() { return $this->providerUserInfo; } - public function setSalt($salt) { $this->salt = $salt; @@ -1379,7 +1334,6 @@ public function getSalt() { return $this->salt; } - public function setVersion($version) { $this->version = $version; @@ -1389,6 +1343,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model @@ -1409,7 +1364,6 @@ public function getDisplayName() { return $this->displayName; } - public function setFederatedId($federatedId) { $this->federatedId = $federatedId; @@ -1419,7 +1373,6 @@ public function getFederatedId() { return $this->federatedId; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1429,7 +1382,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setProviderId($providerId) { $this->providerId = $providerId; @@ -1439,6 +1391,7 @@ public function getProviderId() { return $this->providerId; } + } class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection @@ -1483,7 +1436,6 @@ public function getAction() { return $this->action; } - public function setAppInstallationUrl($appInstallationUrl) { $this->appInstallationUrl = $appInstallationUrl; @@ -1493,7 +1445,6 @@ public function getAppInstallationUrl() { return $this->appInstallationUrl; } - public function setAppScheme($appScheme) { $this->appScheme = $appScheme; @@ -1503,7 +1454,6 @@ public function getAppScheme() { return $this->appScheme; } - public function setContext($context) { $this->context = $context; @@ -1513,7 +1463,6 @@ public function getContext() { return $this->context; } - public function setDateOfBirth($dateOfBirth) { $this->dateOfBirth = $dateOfBirth; @@ -1523,7 +1472,6 @@ public function getDateOfBirth() { return $this->dateOfBirth; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1533,7 +1481,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -1543,7 +1490,6 @@ public function getEmail() { return $this->email; } - public function setEmailRecycled($emailRecycled) { $this->emailRecycled = $emailRecycled; @@ -1553,7 +1499,6 @@ public function getEmailRecycled() { return $this->emailRecycled; } - public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; @@ -1563,7 +1508,6 @@ public function getEmailVerified() { return $this->emailVerified; } - public function setFederatedId($federatedId) { $this->federatedId = $federatedId; @@ -1573,7 +1517,6 @@ public function getFederatedId() { return $this->federatedId; } - public function setFirstName($firstName) { $this->firstName = $firstName; @@ -1583,7 +1526,6 @@ public function getFirstName() { return $this->firstName; } - public function setFullName($fullName) { $this->fullName = $fullName; @@ -1593,7 +1535,6 @@ public function getFullName() { return $this->fullName; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -1603,7 +1544,6 @@ public function getIdToken() { return $this->idToken; } - public function setInputEmail($inputEmail) { $this->inputEmail = $inputEmail; @@ -1613,7 +1553,6 @@ public function getInputEmail() { return $this->inputEmail; } - public function setKind($kind) { $this->kind = $kind; @@ -1623,7 +1562,6 @@ public function getKind() { return $this->kind; } - public function setLanguage($language) { $this->language = $language; @@ -1633,7 +1571,6 @@ public function getLanguage() { return $this->language; } - public function setLastName($lastName) { $this->lastName = $lastName; @@ -1643,7 +1580,6 @@ public function getLastName() { return $this->lastName; } - public function setLocalId($localId) { $this->localId = $localId; @@ -1653,7 +1589,6 @@ public function getLocalId() { return $this->localId; } - public function setNeedConfirmation($needConfirmation) { $this->needConfirmation = $needConfirmation; @@ -1663,7 +1598,6 @@ public function getNeedConfirmation() { return $this->needConfirmation; } - public function setNickName($nickName) { $this->nickName = $nickName; @@ -1673,7 +1607,6 @@ public function getNickName() { return $this->nickName; } - public function setOauthRequestToken($oauthRequestToken) { $this->oauthRequestToken = $oauthRequestToken; @@ -1683,7 +1616,6 @@ public function getOauthRequestToken() { return $this->oauthRequestToken; } - public function setOauthScope($oauthScope) { $this->oauthScope = $oauthScope; @@ -1693,7 +1625,6 @@ public function getOauthScope() { return $this->oauthScope; } - public function setOriginalEmail($originalEmail) { $this->originalEmail = $originalEmail; @@ -1703,7 +1634,6 @@ public function getOriginalEmail() { return $this->originalEmail; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1713,7 +1643,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setProviderId($providerId) { $this->providerId = $providerId; @@ -1723,7 +1652,6 @@ public function getProviderId() { return $this->providerId; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -1733,7 +1661,6 @@ public function getTimeZone() { return $this->timeZone; } - public function setVerifiedProvider($verifiedProvider) { $this->verifiedProvider = $verifiedProvider; @@ -1743,6 +1670,7 @@ public function getVerifiedProvider() { return $this->verifiedProvider; } + } class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model @@ -1766,7 +1694,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmail($email) { $this->email = $email; @@ -1776,7 +1703,6 @@ public function getEmail() { return $this->email; } - public function setIdToken($idToken) { $this->idToken = $idToken; @@ -1786,7 +1712,6 @@ public function getIdToken() { return $this->idToken; } - public function setKind($kind) { $this->kind = $kind; @@ -1796,7 +1721,6 @@ public function getKind() { return $this->kind; } - public function setLocalId($localId) { $this->localId = $localId; @@ -1806,7 +1730,6 @@ public function getLocalId() { return $this->localId; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1816,7 +1739,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setRegistered($registered) { $this->registered = $registered; @@ -1826,4 +1748,5 @@ public function getRegistered() { return $this->registered; } + } From a1754d1779a243f9f813c8d9b2adc8cba7f3f91b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:43 -0700 Subject: [PATCH 0365/1274] Updated Coordinate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Coordinate.php | 57 ++++++++----------------------- 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index 72baf9137..f89a95cf8 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -792,7 +792,6 @@ public function getCustomFieldId() { return $this->customFieldId; } - public function setKind($kind) { $this->kind = $kind; @@ -802,7 +801,6 @@ public function getKind() { return $this->kind; } - public function setValue($value) { $this->value = $value; @@ -812,6 +810,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Coordinate_CustomFieldDef extends Google_Model @@ -834,7 +833,6 @@ public function getEnabled() { return $this->enabled; } - public function setId($id) { $this->id = $id; @@ -844,7 +842,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -854,7 +851,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -864,7 +860,6 @@ public function getName() { return $this->name; } - public function setRequiredForCheckout($requiredForCheckout) { $this->requiredForCheckout = $requiredForCheckout; @@ -874,7 +869,6 @@ public function getRequiredForCheckout() { return $this->requiredForCheckout; } - public function setType($type) { $this->type = $type; @@ -884,6 +878,7 @@ public function getType() { return $this->type; } + } class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection @@ -904,7 +899,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -914,6 +908,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Coordinate_CustomFields extends Google_Collection @@ -934,7 +929,6 @@ public function getCustomField() { return $this->customField; } - public function setKind($kind) { $this->kind = $kind; @@ -944,6 +938,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Coordinate_Job extends Google_Collection @@ -967,7 +962,6 @@ public function getId() { return $this->id; } - public function setJobChange($jobChange) { $this->jobChange = $jobChange; @@ -977,7 +971,6 @@ public function getJobChange() { return $this->jobChange; } - public function setKind($kind) { $this->kind = $kind; @@ -987,7 +980,6 @@ public function getKind() { return $this->kind; } - public function setState(Google_Service_Coordinate_JobState $state) { $this->state = $state; @@ -997,6 +989,7 @@ public function getState() { return $this->state; } + } class Google_Service_Coordinate_JobChange extends Google_Model @@ -1017,7 +1010,6 @@ public function getKind() { return $this->kind; } - public function setState(Google_Service_Coordinate_JobState $state) { $this->state = $state; @@ -1027,7 +1019,6 @@ public function getState() { return $this->state; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1037,6 +1028,7 @@ public function getTimestamp() { return $this->timestamp; } + } class Google_Service_Coordinate_JobListResponse extends Google_Collection @@ -1058,7 +1050,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1068,7 +1059,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1078,6 +1068,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Coordinate_JobState extends Google_Collection @@ -1106,7 +1097,6 @@ public function getAssignee() { return $this->assignee; } - public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields) { $this->customFields = $customFields; @@ -1116,7 +1106,6 @@ public function getCustomFields() { return $this->customFields; } - public function setCustomerName($customerName) { $this->customerName = $customerName; @@ -1126,7 +1115,6 @@ public function getCustomerName() { return $this->customerName; } - public function setCustomerPhoneNumber($customerPhoneNumber) { $this->customerPhoneNumber = $customerPhoneNumber; @@ -1136,7 +1124,6 @@ public function getCustomerPhoneNumber() { return $this->customerPhoneNumber; } - public function setKind($kind) { $this->kind = $kind; @@ -1146,7 +1133,6 @@ public function getKind() { return $this->kind; } - public function setLocation(Google_Service_Coordinate_Location $location) { $this->location = $location; @@ -1156,7 +1142,6 @@ public function getLocation() { return $this->location; } - public function setNote($note) { $this->note = $note; @@ -1166,7 +1151,6 @@ public function getNote() { return $this->note; } - public function setProgress($progress) { $this->progress = $progress; @@ -1176,7 +1160,6 @@ public function getProgress() { return $this->progress; } - public function setTitle($title) { $this->title = $title; @@ -1186,6 +1169,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Coordinate_Location extends Google_Collection @@ -1207,7 +1191,6 @@ public function getAddressLine() { return $this->addressLine; } - public function setKind($kind) { $this->kind = $kind; @@ -1217,7 +1200,6 @@ public function getKind() { return $this->kind; } - public function setLat($lat) { $this->lat = $lat; @@ -1227,7 +1209,6 @@ public function getLat() { return $this->lat; } - public function setLng($lng) { $this->lng = $lng; @@ -1237,6 +1218,7 @@ public function getLng() { return $this->lng; } + } class Google_Service_Coordinate_LocationListResponse extends Google_Collection @@ -1260,7 +1242,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1270,7 +1251,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1280,7 +1260,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -1290,6 +1269,7 @@ public function getTokenPagination() { return $this->tokenPagination; } + } class Google_Service_Coordinate_LocationRecord extends Google_Model @@ -1311,7 +1291,6 @@ public function getCollectionTime() { return $this->collectionTime; } - public function setConfidenceRadius($confidenceRadius) { $this->confidenceRadius = $confidenceRadius; @@ -1321,7 +1300,6 @@ public function getConfidenceRadius() { return $this->confidenceRadius; } - public function setKind($kind) { $this->kind = $kind; @@ -1331,7 +1309,6 @@ public function getKind() { return $this->kind; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -1341,7 +1318,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -1351,6 +1327,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Coordinate_Schedule extends Google_Model @@ -1372,7 +1349,6 @@ public function getAllDay() { return $this->allDay; } - public function setDuration($duration) { $this->duration = $duration; @@ -1382,7 +1358,6 @@ public function getDuration() { return $this->duration; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1392,7 +1367,6 @@ public function getEndTime() { return $this->endTime; } - public function setKind($kind) { $this->kind = $kind; @@ -1402,7 +1376,6 @@ public function getKind() { return $this->kind; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1412,6 +1385,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_Coordinate_TokenPagination extends Google_Model @@ -1431,7 +1405,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1441,7 +1414,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPreviousPageToken($previousPageToken) { $this->previousPageToken = $previousPageToken; @@ -1451,6 +1423,7 @@ public function getPreviousPageToken() { return $this->previousPageToken; } + } class Google_Service_Coordinate_Worker extends Google_Model @@ -1469,7 +1442,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1479,6 +1451,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Coordinate_WorkerListResponse extends Google_Collection @@ -1499,7 +1472,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1509,4 +1481,5 @@ public function getKind() { return $this->kind; } + } From 274556b2f766e2e6482f15cbe7ce79c527547bcb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:44 -0700 Subject: [PATCH 0366/1274] Updated Customsearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Customsearch.php | 102 ++++++---------------------- 1 file changed, 19 insertions(+), 83 deletions(-) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index abb157c42..d86094170 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -314,7 +314,6 @@ public function getFacets() { return $this->facets; } - public function setTitle($title) { $this->title = $title; @@ -324,6 +323,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Customsearch_ContextFacets extends Google_Model @@ -344,7 +344,6 @@ public function getAnchor() { return $this->anchor; } - public function setLabel($label) { $this->label = $label; @@ -354,7 +353,6 @@ public function getLabel() { return $this->label; } - public function setLabelWithOp($labelWithOp) { $this->labelWithOp = $labelWithOp; @@ -364,6 +362,7 @@ public function getLabelWithOp() { return $this->labelWithOp; } + } class Google_Service_Customsearch_Promotion extends Google_Collection @@ -389,7 +388,6 @@ public function getBodyLines() { return $this->bodyLines; } - public function setDisplayLink($displayLink) { $this->displayLink = $displayLink; @@ -399,7 +397,6 @@ public function getDisplayLink() { return $this->displayLink; } - public function setHtmlTitle($htmlTitle) { $this->htmlTitle = $htmlTitle; @@ -409,7 +406,6 @@ public function getHtmlTitle() { return $this->htmlTitle; } - public function setImage(Google_Service_Customsearch_PromotionImage $image) { $this->image = $image; @@ -419,7 +415,6 @@ public function getImage() { return $this->image; } - public function setLink($link) { $this->link = $link; @@ -429,7 +424,6 @@ public function getLink() { return $this->link; } - public function setTitle($title) { $this->title = $title; @@ -439,6 +433,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Customsearch_PromotionBodyLines extends Google_Model @@ -459,7 +454,6 @@ public function getHtmlTitle() { return $this->htmlTitle; } - public function setLink($link) { $this->link = $link; @@ -469,7 +463,6 @@ public function getLink() { return $this->link; } - public function setTitle($title) { $this->title = $title; @@ -479,7 +472,6 @@ public function getTitle() { return $this->title; } - public function setUrl($url) { $this->url = $url; @@ -489,6 +481,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Customsearch_PromotionImage extends Google_Model @@ -508,7 +501,6 @@ public function getHeight() { return $this->height; } - public function setSource($source) { $this->source = $source; @@ -518,7 +510,6 @@ public function getSource() { return $this->source; } - public function setWidth($width) { $this->width = $width; @@ -528,6 +519,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Customsearch_Query extends Google_Model @@ -581,7 +573,6 @@ public function getCount() { return $this->count; } - public function setCr($cr) { $this->cr = $cr; @@ -591,7 +582,6 @@ public function getCr() { return $this->cr; } - public function setCref($cref) { $this->cref = $cref; @@ -601,7 +591,6 @@ public function getCref() { return $this->cref; } - public function setCx($cx) { $this->cx = $cx; @@ -611,7 +600,6 @@ public function getCx() { return $this->cx; } - public function setDateRestrict($dateRestrict) { $this->dateRestrict = $dateRestrict; @@ -621,7 +609,6 @@ public function getDateRestrict() { return $this->dateRestrict; } - public function setDisableCnTwTranslation($disableCnTwTranslation) { $this->disableCnTwTranslation = $disableCnTwTranslation; @@ -631,7 +618,6 @@ public function getDisableCnTwTranslation() { return $this->disableCnTwTranslation; } - public function setExactTerms($exactTerms) { $this->exactTerms = $exactTerms; @@ -641,7 +627,6 @@ public function getExactTerms() { return $this->exactTerms; } - public function setExcludeTerms($excludeTerms) { $this->excludeTerms = $excludeTerms; @@ -651,7 +636,6 @@ public function getExcludeTerms() { return $this->excludeTerms; } - public function setFileType($fileType) { $this->fileType = $fileType; @@ -661,7 +645,6 @@ public function getFileType() { return $this->fileType; } - public function setFilter($filter) { $this->filter = $filter; @@ -671,7 +654,6 @@ public function getFilter() { return $this->filter; } - public function setGl($gl) { $this->gl = $gl; @@ -681,7 +663,6 @@ public function getGl() { return $this->gl; } - public function setGoogleHost($googleHost) { $this->googleHost = $googleHost; @@ -691,7 +672,6 @@ public function getGoogleHost() { return $this->googleHost; } - public function setHighRange($highRange) { $this->highRange = $highRange; @@ -701,7 +681,6 @@ public function getHighRange() { return $this->highRange; } - public function setHl($hl) { $this->hl = $hl; @@ -711,7 +690,6 @@ public function getHl() { return $this->hl; } - public function setHq($hq) { $this->hq = $hq; @@ -721,7 +699,6 @@ public function getHq() { return $this->hq; } - public function setImgColorType($imgColorType) { $this->imgColorType = $imgColorType; @@ -731,7 +708,6 @@ public function getImgColorType() { return $this->imgColorType; } - public function setImgDominantColor($imgDominantColor) { $this->imgDominantColor = $imgDominantColor; @@ -741,7 +717,6 @@ public function getImgDominantColor() { return $this->imgDominantColor; } - public function setImgSize($imgSize) { $this->imgSize = $imgSize; @@ -751,7 +726,6 @@ public function getImgSize() { return $this->imgSize; } - public function setImgType($imgType) { $this->imgType = $imgType; @@ -761,7 +735,6 @@ public function getImgType() { return $this->imgType; } - public function setInputEncoding($inputEncoding) { $this->inputEncoding = $inputEncoding; @@ -771,7 +744,6 @@ public function getInputEncoding() { return $this->inputEncoding; } - public function setLanguage($language) { $this->language = $language; @@ -781,7 +753,6 @@ public function getLanguage() { return $this->language; } - public function setLinkSite($linkSite) { $this->linkSite = $linkSite; @@ -791,7 +762,6 @@ public function getLinkSite() { return $this->linkSite; } - public function setLowRange($lowRange) { $this->lowRange = $lowRange; @@ -801,7 +771,6 @@ public function getLowRange() { return $this->lowRange; } - public function setOrTerms($orTerms) { $this->orTerms = $orTerms; @@ -811,7 +780,6 @@ public function getOrTerms() { return $this->orTerms; } - public function setOutputEncoding($outputEncoding) { $this->outputEncoding = $outputEncoding; @@ -821,7 +789,6 @@ public function getOutputEncoding() { return $this->outputEncoding; } - public function setRelatedSite($relatedSite) { $this->relatedSite = $relatedSite; @@ -831,7 +798,6 @@ public function getRelatedSite() { return $this->relatedSite; } - public function setRights($rights) { $this->rights = $rights; @@ -841,7 +807,6 @@ public function getRights() { return $this->rights; } - public function setSafe($safe) { $this->safe = $safe; @@ -851,7 +816,6 @@ public function getSafe() { return $this->safe; } - public function setSearchTerms($searchTerms) { $this->searchTerms = $searchTerms; @@ -861,7 +825,6 @@ public function getSearchTerms() { return $this->searchTerms; } - public function setSearchType($searchType) { $this->searchType = $searchType; @@ -871,7 +834,6 @@ public function getSearchType() { return $this->searchType; } - public function setSiteSearch($siteSearch) { $this->siteSearch = $siteSearch; @@ -881,7 +843,6 @@ public function getSiteSearch() { return $this->siteSearch; } - public function setSiteSearchFilter($siteSearchFilter) { $this->siteSearchFilter = $siteSearchFilter; @@ -891,7 +852,6 @@ public function getSiteSearchFilter() { return $this->siteSearchFilter; } - public function setSort($sort) { $this->sort = $sort; @@ -901,7 +861,6 @@ public function getSort() { return $this->sort; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -911,7 +870,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setStartPage($startPage) { $this->startPage = $startPage; @@ -921,7 +879,6 @@ public function getStartPage() { return $this->startPage; } - public function setTitle($title) { $this->title = $title; @@ -931,7 +888,6 @@ public function getTitle() { return $this->title; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -941,6 +897,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Customsearch_Result extends Google_Collection @@ -975,7 +932,6 @@ public function getCacheId() { return $this->cacheId; } - public function setDisplayLink($displayLink) { $this->displayLink = $displayLink; @@ -985,7 +941,6 @@ public function getDisplayLink() { return $this->displayLink; } - public function setFileFormat($fileFormat) { $this->fileFormat = $fileFormat; @@ -995,7 +950,6 @@ public function getFileFormat() { return $this->fileFormat; } - public function setFormattedUrl($formattedUrl) { $this->formattedUrl = $formattedUrl; @@ -1005,7 +959,6 @@ public function getFormattedUrl() { return $this->formattedUrl; } - public function setHtmlFormattedUrl($htmlFormattedUrl) { $this->htmlFormattedUrl = $htmlFormattedUrl; @@ -1015,7 +968,6 @@ public function getHtmlFormattedUrl() { return $this->htmlFormattedUrl; } - public function setHtmlSnippet($htmlSnippet) { $this->htmlSnippet = $htmlSnippet; @@ -1025,7 +977,6 @@ public function getHtmlSnippet() { return $this->htmlSnippet; } - public function setHtmlTitle($htmlTitle) { $this->htmlTitle = $htmlTitle; @@ -1035,7 +986,6 @@ public function getHtmlTitle() { return $this->htmlTitle; } - public function setImage(Google_Service_Customsearch_ResultImage $image) { $this->image = $image; @@ -1045,7 +995,6 @@ public function getImage() { return $this->image; } - public function setKind($kind) { $this->kind = $kind; @@ -1055,7 +1004,6 @@ public function getKind() { return $this->kind; } - public function setLabels($labels) { $this->labels = $labels; @@ -1065,7 +1013,6 @@ public function getLabels() { return $this->labels; } - public function setLink($link) { $this->link = $link; @@ -1075,7 +1022,6 @@ public function getLink() { return $this->link; } - public function setMime($mime) { $this->mime = $mime; @@ -1085,7 +1031,6 @@ public function getMime() { return $this->mime; } - public function setPagemap($pagemap) { $this->pagemap = $pagemap; @@ -1095,7 +1040,6 @@ public function getPagemap() { return $this->pagemap; } - public function setSnippet($snippet) { $this->snippet = $snippet; @@ -1105,7 +1049,6 @@ public function getSnippet() { return $this->snippet; } - public function setTitle($title) { $this->title = $title; @@ -1115,6 +1058,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Customsearch_ResultImage extends Google_Model @@ -1138,7 +1082,6 @@ public function getByteSize() { return $this->byteSize; } - public function setContextLink($contextLink) { $this->contextLink = $contextLink; @@ -1148,7 +1091,6 @@ public function getContextLink() { return $this->contextLink; } - public function setHeight($height) { $this->height = $height; @@ -1158,7 +1100,6 @@ public function getHeight() { return $this->height; } - public function setThumbnailHeight($thumbnailHeight) { $this->thumbnailHeight = $thumbnailHeight; @@ -1168,7 +1109,6 @@ public function getThumbnailHeight() { return $this->thumbnailHeight; } - public function setThumbnailLink($thumbnailLink) { $this->thumbnailLink = $thumbnailLink; @@ -1178,7 +1118,6 @@ public function getThumbnailLink() { return $this->thumbnailLink; } - public function setThumbnailWidth($thumbnailWidth) { $this->thumbnailWidth = $thumbnailWidth; @@ -1188,7 +1127,6 @@ public function getThumbnailWidth() { return $this->thumbnailWidth; } - public function setWidth($width) { $this->width = $width; @@ -1198,6 +1136,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Customsearch_ResultLabels extends Google_Model @@ -1218,7 +1157,6 @@ public function getDisplayName() { return $this->displayName; } - public function setLabelWithOp($labelWithOp) { $this->labelWithOp = $labelWithOp; @@ -1228,7 +1166,6 @@ public function getLabelWithOp() { return $this->labelWithOp; } - public function setName($name) { $this->name = $name; @@ -1238,18 +1175,23 @@ public function getName() { return $this->name; } + } class Google_Service_Customsearch_ResultPagemap extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Customsearch_Search extends Google_Collection @@ -1282,7 +1224,6 @@ public function getContext() { return $this->context; } - public function setItems($items) { $this->items = $items; @@ -1292,7 +1233,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1302,7 +1242,6 @@ public function getKind() { return $this->kind; } - public function setPromotions($promotions) { $this->promotions = $promotions; @@ -1312,7 +1251,6 @@ public function getPromotions() { return $this->promotions; } - public function setQueries($queries) { $this->queries = $queries; @@ -1322,7 +1260,6 @@ public function getQueries() { return $this->queries; } - public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation) { $this->searchInformation = $searchInformation; @@ -1332,7 +1269,6 @@ public function getSearchInformation() { return $this->searchInformation; } - public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling) { $this->spelling = $spelling; @@ -1342,7 +1278,6 @@ public function getSpelling() { return $this->spelling; } - public function setUrl(Google_Service_Customsearch_SearchUrl $url) { $this->url = $url; @@ -1352,12 +1287,15 @@ public function getUrl() { return $this->url; } + } class Google_Service_Customsearch_SearchQueries extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Customsearch_SearchSearchInformation extends Google_Model @@ -1378,7 +1316,6 @@ public function getFormattedSearchTime() { return $this->formattedSearchTime; } - public function setFormattedTotalResults($formattedTotalResults) { $this->formattedTotalResults = $formattedTotalResults; @@ -1388,7 +1325,6 @@ public function getFormattedTotalResults() { return $this->formattedTotalResults; } - public function setSearchTime($searchTime) { $this->searchTime = $searchTime; @@ -1398,7 +1334,6 @@ public function getSearchTime() { return $this->searchTime; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -1408,6 +1343,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Customsearch_SearchSpelling extends Google_Model @@ -1426,7 +1362,6 @@ public function getCorrectedQuery() { return $this->correctedQuery; } - public function setHtmlCorrectedQuery($htmlCorrectedQuery) { $this->htmlCorrectedQuery = $htmlCorrectedQuery; @@ -1436,6 +1371,7 @@ public function getHtmlCorrectedQuery() { return $this->htmlCorrectedQuery; } + } class Google_Service_Customsearch_SearchUrl extends Google_Model @@ -1454,7 +1390,6 @@ public function getTemplate() { return $this->template; } - public function setType($type) { $this->type = $type; @@ -1464,4 +1399,5 @@ public function getType() { return $this->type; } + } From a0b7d3967d77ed3fb011b197f4dea99155c9a62a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:45 -0700 Subject: [PATCH 0367/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 94 +++++------------------- 1 file changed, 19 insertions(+), 75 deletions(-) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index e52b6caf1..6cad67008 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -480,7 +480,6 @@ public function getAdvertiserId() { return $this->advertiserId; } - public function setAgencyId($agencyId) { $this->agencyId = $agencyId; @@ -490,7 +489,6 @@ public function getAgencyId() { return $this->agencyId; } - public function setAvailabilityTimestamp($availabilityTimestamp) { $this->availabilityTimestamp = $availabilityTimestamp; @@ -500,7 +498,6 @@ public function getAvailabilityTimestamp() { return $this->availabilityTimestamp; } - public function setSegmentationId($segmentationId) { $this->segmentationId = $segmentationId; @@ -510,7 +507,6 @@ public function getSegmentationId() { return $this->segmentationId; } - public function setSegmentationName($segmentationName) { $this->segmentationName = $segmentationName; @@ -520,7 +516,6 @@ public function getSegmentationName() { return $this->segmentationName; } - public function setSegmentationType($segmentationType) { $this->segmentationType = $segmentationType; @@ -530,6 +525,7 @@ public function getSegmentationType() { return $this->segmentationType; } + } class Google_Service_Doubleclicksearch_Conversion extends Google_Collection @@ -572,7 +568,6 @@ public function getAdGroupId() { return $this->adGroupId; } - public function setAdId($adId) { $this->adId = $adId; @@ -582,7 +577,6 @@ public function getAdId() { return $this->adId; } - public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; @@ -592,7 +586,6 @@ public function getAdvertiserId() { return $this->advertiserId; } - public function setAgencyId($agencyId) { $this->agencyId = $agencyId; @@ -602,7 +595,6 @@ public function getAgencyId() { return $this->agencyId; } - public function setCampaignId($campaignId) { $this->campaignId = $campaignId; @@ -612,7 +604,6 @@ public function getCampaignId() { return $this->campaignId; } - public function setClickId($clickId) { $this->clickId = $clickId; @@ -622,7 +613,6 @@ public function getClickId() { return $this->clickId; } - public function setConversionId($conversionId) { $this->conversionId = $conversionId; @@ -632,7 +622,6 @@ public function getConversionId() { return $this->conversionId; } - public function setConversionModifiedTimestamp($conversionModifiedTimestamp) { $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; @@ -642,7 +631,6 @@ public function getConversionModifiedTimestamp() { return $this->conversionModifiedTimestamp; } - public function setConversionTimestamp($conversionTimestamp) { $this->conversionTimestamp = $conversionTimestamp; @@ -652,7 +640,6 @@ public function getConversionTimestamp() { return $this->conversionTimestamp; } - public function setCriterionId($criterionId) { $this->criterionId = $criterionId; @@ -662,7 +649,6 @@ public function getCriterionId() { return $this->criterionId; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -672,7 +658,6 @@ public function getCurrencyCode() { return $this->currencyCode; } - public function setCustomDimension($customDimension) { $this->customDimension = $customDimension; @@ -682,7 +667,6 @@ public function getCustomDimension() { return $this->customDimension; } - public function setCustomMetric($customMetric) { $this->customMetric = $customMetric; @@ -692,7 +676,6 @@ public function getCustomMetric() { return $this->customMetric; } - public function setDsConversionId($dsConversionId) { $this->dsConversionId = $dsConversionId; @@ -702,7 +685,6 @@ public function getDsConversionId() { return $this->dsConversionId; } - public function setEngineAccountId($engineAccountId) { $this->engineAccountId = $engineAccountId; @@ -712,7 +694,6 @@ public function getEngineAccountId() { return $this->engineAccountId; } - public function setFloodlightOrderId($floodlightOrderId) { $this->floodlightOrderId = $floodlightOrderId; @@ -722,7 +703,6 @@ public function getFloodlightOrderId() { return $this->floodlightOrderId; } - public function setQuantityMillis($quantityMillis) { $this->quantityMillis = $quantityMillis; @@ -732,7 +712,6 @@ public function getQuantityMillis() { return $this->quantityMillis; } - public function setRevenueMicros($revenueMicros) { $this->revenueMicros = $revenueMicros; @@ -742,7 +721,6 @@ public function getRevenueMicros() { return $this->revenueMicros; } - public function setSegmentationId($segmentationId) { $this->segmentationId = $segmentationId; @@ -752,7 +730,6 @@ public function getSegmentationId() { return $this->segmentationId; } - public function setSegmentationName($segmentationName) { $this->segmentationName = $segmentationName; @@ -762,7 +739,6 @@ public function getSegmentationName() { return $this->segmentationName; } - public function setSegmentationType($segmentationType) { $this->segmentationType = $segmentationType; @@ -772,7 +748,6 @@ public function getSegmentationType() { return $this->segmentationType; } - public function setState($state) { $this->state = $state; @@ -782,7 +757,6 @@ public function getState() { return $this->state; } - public function setType($type) { $this->type = $type; @@ -792,6 +766,7 @@ public function getType() { return $this->type; } + } class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection @@ -812,7 +787,6 @@ public function getConversion() { return $this->conversion; } - public function setKind($kind) { $this->kind = $kind; @@ -822,6 +796,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model @@ -840,7 +815,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -850,6 +824,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model @@ -868,7 +843,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -878,6 +852,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Doubleclicksearch_Report extends Google_Collection @@ -906,7 +881,6 @@ public function getFiles() { return $this->files; } - public function setId($id) { $this->id = $id; @@ -916,7 +890,6 @@ public function getId() { return $this->id; } - public function setIsReportReady($isReportReady) { $this->isReportReady = $isReportReady; @@ -926,7 +899,6 @@ public function getIsReportReady() { return $this->isReportReady; } - public function setKind($kind) { $this->kind = $kind; @@ -936,7 +908,6 @@ public function getKind() { return $this->kind; } - public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request) { $this->request = $request; @@ -946,7 +917,6 @@ public function getRequest() { return $this->request; } - public function setRowCount($rowCount) { $this->rowCount = $rowCount; @@ -956,7 +926,6 @@ public function getRowCount() { return $this->rowCount; } - public function setRows($rows) { $this->rows = $rows; @@ -966,7 +935,6 @@ public function getRows() { return $this->rows; } - public function setStatisticsCurrencyCode($statisticsCurrencyCode) { $this->statisticsCurrencyCode = $statisticsCurrencyCode; @@ -976,7 +944,6 @@ public function getStatisticsCurrencyCode() { return $this->statisticsCurrencyCode; } - public function setStatisticsTimeZone($statisticsTimeZone) { $this->statisticsTimeZone = $statisticsTimeZone; @@ -986,6 +953,7 @@ public function getStatisticsTimeZone() { return $this->statisticsTimeZone; } + } class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model @@ -1011,7 +979,6 @@ public function getColumnName() { return $this->columnName; } - public function setCustomDimensionName($customDimensionName) { $this->customDimensionName = $customDimensionName; @@ -1021,7 +988,6 @@ public function getCustomDimensionName() { return $this->customDimensionName; } - public function setCustomMetricName($customMetricName) { $this->customMetricName = $customMetricName; @@ -1031,7 +997,6 @@ public function getCustomMetricName() { return $this->customMetricName; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -1041,7 +1006,6 @@ public function getEndDate() { return $this->endDate; } - public function setGroupByColumn($groupByColumn) { $this->groupByColumn = $groupByColumn; @@ -1051,7 +1015,6 @@ public function getGroupByColumn() { return $this->groupByColumn; } - public function setHeaderText($headerText) { $this->headerText = $headerText; @@ -1061,7 +1024,6 @@ public function getHeaderText() { return $this->headerText; } - public function setPlatformSource($platformSource) { $this->platformSource = $platformSource; @@ -1071,7 +1033,6 @@ public function getPlatformSource() { return $this->platformSource; } - public function setSavedColumnName($savedColumnName) { $this->savedColumnName = $savedColumnName; @@ -1081,7 +1042,6 @@ public function getSavedColumnName() { return $this->savedColumnName; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -1091,6 +1051,7 @@ public function getStartDate() { return $this->startDate; } + } class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model @@ -1109,7 +1070,6 @@ public function getByteCount() { return $this->byteCount; } - public function setUrl($url) { $this->url = $url; @@ -1119,6 +1079,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection @@ -1155,7 +1116,6 @@ public function getColumns() { return $this->columns; } - public function setDownloadFormat($downloadFormat) { $this->downloadFormat = $downloadFormat; @@ -1165,7 +1125,6 @@ public function getDownloadFormat() { return $this->downloadFormat; } - public function setFilters($filters) { $this->filters = $filters; @@ -1175,7 +1134,6 @@ public function getFilters() { return $this->filters; } - public function setIncludeDeletedEntities($includeDeletedEntities) { $this->includeDeletedEntities = $includeDeletedEntities; @@ -1185,7 +1143,6 @@ public function getIncludeDeletedEntities() { return $this->includeDeletedEntities; } - public function setIncludeRemovedEntities($includeRemovedEntities) { $this->includeRemovedEntities = $includeRemovedEntities; @@ -1195,7 +1152,6 @@ public function getIncludeRemovedEntities() { return $this->includeRemovedEntities; } - public function setMaxRowsPerFile($maxRowsPerFile) { $this->maxRowsPerFile = $maxRowsPerFile; @@ -1205,7 +1161,6 @@ public function getMaxRowsPerFile() { return $this->maxRowsPerFile; } - public function setOrderBy($orderBy) { $this->orderBy = $orderBy; @@ -1215,7 +1170,6 @@ public function getOrderBy() { return $this->orderBy; } - public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope) { $this->reportScope = $reportScope; @@ -1225,7 +1179,6 @@ public function getReportScope() { return $this->reportScope; } - public function setReportType($reportType) { $this->reportType = $reportType; @@ -1235,7 +1188,6 @@ public function getReportType() { return $this->reportType; } - public function setRowCount($rowCount) { $this->rowCount = $rowCount; @@ -1245,7 +1197,6 @@ public function getRowCount() { return $this->rowCount; } - public function setStartRow($startRow) { $this->startRow = $startRow; @@ -1255,7 +1206,6 @@ public function getStartRow() { return $this->startRow; } - public function setStatisticsCurrency($statisticsCurrency) { $this->statisticsCurrency = $statisticsCurrency; @@ -1265,7 +1215,6 @@ public function getStatisticsCurrency() { return $this->statisticsCurrency; } - public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange) { $this->timeRange = $timeRange; @@ -1275,7 +1224,6 @@ public function getTimeRange() { return $this->timeRange; } - public function setVerifySingleTimeZone($verifySingleTimeZone) { $this->verifySingleTimeZone = $verifySingleTimeZone; @@ -1285,6 +1233,7 @@ public function getVerifySingleTimeZone() { return $this->verifySingleTimeZone; } + } class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection @@ -1306,7 +1255,6 @@ public function getColumn() { return $this->column; } - public function setOperator($operator) { $this->operator = $operator; @@ -1316,7 +1264,6 @@ public function getOperator() { return $this->operator; } - public function setValues($values) { $this->values = $values; @@ -1326,6 +1273,7 @@ public function getValues() { return $this->values; } + } class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model @@ -1345,7 +1293,6 @@ public function getColumn() { return $this->column; } - public function setSortOrder($sortOrder) { $this->sortOrder = $sortOrder; @@ -1355,6 +1302,7 @@ public function getSortOrder() { return $this->sortOrder; } + } class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model @@ -1378,7 +1326,6 @@ public function getAdGroupId() { return $this->adGroupId; } - public function setAdId($adId) { $this->adId = $adId; @@ -1388,7 +1335,6 @@ public function getAdId() { return $this->adId; } - public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; @@ -1398,7 +1344,6 @@ public function getAdvertiserId() { return $this->advertiserId; } - public function setAgencyId($agencyId) { $this->agencyId = $agencyId; @@ -1408,7 +1353,6 @@ public function getAgencyId() { return $this->agencyId; } - public function setCampaignId($campaignId) { $this->campaignId = $campaignId; @@ -1418,7 +1362,6 @@ public function getCampaignId() { return $this->campaignId; } - public function setEngineAccountId($engineAccountId) { $this->engineAccountId = $engineAccountId; @@ -1428,7 +1371,6 @@ public function getEngineAccountId() { return $this->engineAccountId; } - public function setKeywordId($keywordId) { $this->keywordId = $keywordId; @@ -1438,6 +1380,7 @@ public function getKeywordId() { return $this->keywordId; } + } class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model @@ -1458,7 +1401,6 @@ public function getChangedAttributesSinceTimestamp() { return $this->changedAttributesSinceTimestamp; } - public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) { $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; @@ -1468,7 +1410,6 @@ public function getChangedMetricsSinceTimestamp() { return $this->changedMetricsSinceTimestamp; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -1478,7 +1419,6 @@ public function getEndDate() { return $this->endDate; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -1488,12 +1428,15 @@ public function getStartDate() { return $this->startDate; } + } class Google_Service_Doubleclicksearch_ReportRow extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model @@ -1513,7 +1456,6 @@ public function getKind() { return $this->kind; } - public function setSavedColumnName($savedColumnName) { $this->savedColumnName = $savedColumnName; @@ -1523,7 +1465,6 @@ public function getSavedColumnName() { return $this->savedColumnName; } - public function setType($type) { $this->type = $type; @@ -1533,6 +1474,7 @@ public function getType() { return $this->type; } + } class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection @@ -1553,7 +1495,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1563,6 +1504,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection @@ -1582,6 +1524,7 @@ public function getAvailabilities() { return $this->availabilities; } + } class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection @@ -1601,4 +1544,5 @@ public function getAvailabilities() { return $this->availabilities; } + } From 70151881eedf965dc602e670fb3843ce2c8fcc5f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:45 -0700 Subject: [PATCH 0368/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 181 ++++++---------------------- 1 file changed, 34 insertions(+), 147 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 79a41a0a2..2750a9461 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -746,7 +746,6 @@ public function getFilters() { return $this->filters; } - public function setKind($kind) { $this->kind = $kind; @@ -756,7 +755,6 @@ public function getKind() { return $this->kind; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -766,6 +764,7 @@ public function getMetricNames() { return $this->metricNames; } + } class Google_Service_Dfareporting_CompatibleFields extends Google_Model @@ -793,7 +792,6 @@ public function getCrossDimensionReachReportCompatibleFields() { return $this->crossDimensionReachReportCompatibleFields; } - public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) { $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; @@ -803,7 +801,6 @@ public function getFloodlightReportCompatibleFields() { return $this->floodlightReportCompatibleFields; } - public function setKind($kind) { $this->kind = $kind; @@ -813,7 +810,6 @@ public function getKind() { return $this->kind; } - public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) { $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; @@ -823,7 +819,6 @@ public function getPathToConversionReportCompatibleFields() { return $this->pathToConversionReportCompatibleFields; } - public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) { $this->reachReportCompatibleFields = $reachReportCompatibleFields; @@ -833,7 +828,6 @@ public function getReachReportCompatibleFields() { return $this->reachReportCompatibleFields; } - public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) { $this->reportCompatibleFields = $reportCompatibleFields; @@ -843,6 +837,7 @@ public function getReportCompatibleFields() { return $this->reportCompatibleFields; } + } class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection @@ -869,7 +864,6 @@ public function getBreakdown() { return $this->breakdown; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -879,7 +873,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setKind($kind) { $this->kind = $kind; @@ -889,7 +882,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -899,7 +891,6 @@ public function getMetrics() { return $this->metrics; } - public function setOverlapMetrics($overlapMetrics) { $this->overlapMetrics = $overlapMetrics; @@ -909,6 +900,7 @@ public function getOverlapMetrics() { return $this->overlapMetrics; } + } class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection @@ -929,7 +921,6 @@ public function getFilteredEventIds() { return $this->filteredEventIds; } - public function setKind($kind) { $this->kind = $kind; @@ -939,6 +930,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Dfareporting_DateRange extends Google_Model @@ -959,7 +951,6 @@ public function getEndDate() { return $this->endDate; } - public function setKind($kind) { $this->kind = $kind; @@ -969,7 +960,6 @@ public function getKind() { return $this->kind; } - public function setRelativeDateRange($relativeDateRange) { $this->relativeDateRange = $relativeDateRange; @@ -979,7 +969,6 @@ public function getRelativeDateRange() { return $this->relativeDateRange; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -989,6 +978,7 @@ public function getStartDate() { return $this->startDate; } + } class Google_Service_Dfareporting_DfareportingFile extends Google_Model @@ -1017,7 +1007,6 @@ public function getDateRange() { return $this->dateRange; } - public function setEtag($etag) { $this->etag = $etag; @@ -1027,7 +1016,6 @@ public function getEtag() { return $this->etag; } - public function setFileName($fileName) { $this->fileName = $fileName; @@ -1037,7 +1025,6 @@ public function getFileName() { return $this->fileName; } - public function setFormat($format) { $this->format = $format; @@ -1047,7 +1034,6 @@ public function getFormat() { return $this->format; } - public function setId($id) { $this->id = $id; @@ -1057,7 +1043,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1067,7 +1052,6 @@ public function getKind() { return $this->kind; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -1077,7 +1061,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setReportId($reportId) { $this->reportId = $reportId; @@ -1087,7 +1070,6 @@ public function getReportId() { return $this->reportId; } - public function setStatus($status) { $this->status = $status; @@ -1097,7 +1079,6 @@ public function getStatus() { return $this->status; } - public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls) { $this->urls = $urls; @@ -1107,6 +1088,7 @@ public function getUrls() { return $this->urls; } + } class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model @@ -1125,7 +1107,6 @@ public function getApiUrl() { return $this->apiUrl; } - public function setBrowserUrl($browserUrl) { $this->browserUrl = $browserUrl; @@ -1135,6 +1116,7 @@ public function getBrowserUrl() { return $this->browserUrl; } + } class Google_Service_Dfareporting_Dimension extends Google_Model @@ -1153,7 +1135,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1163,6 +1144,7 @@ public function getName() { return $this->name; } + } class Google_Service_Dfareporting_DimensionFilter extends Google_Model @@ -1182,7 +1164,6 @@ public function getDimensionName() { return $this->dimensionName; } - public function setKind($kind) { $this->kind = $kind; @@ -1192,7 +1173,6 @@ public function getKind() { return $this->kind; } - public function setValue($value) { $this->value = $value; @@ -1202,6 +1182,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Dfareporting_DimensionValue extends Google_Model @@ -1224,7 +1205,6 @@ public function getDimensionName() { return $this->dimensionName; } - public function setEtag($etag) { $this->etag = $etag; @@ -1234,7 +1214,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1244,7 +1223,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1254,7 +1232,6 @@ public function getKind() { return $this->kind; } - public function setMatchType($matchType) { $this->matchType = $matchType; @@ -1264,7 +1241,6 @@ public function getMatchType() { return $this->matchType; } - public function setValue($value) { $this->value = $value; @@ -1274,6 +1250,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Dfareporting_DimensionValueList extends Google_Collection @@ -1296,7 +1273,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1306,7 +1282,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1316,7 +1291,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1326,6 +1300,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection @@ -1349,7 +1324,6 @@ public function getDimensionName() { return $this->dimensionName; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -1359,7 +1333,6 @@ public function getEndDate() { return $this->endDate; } - public function setFilters($filters) { $this->filters = $filters; @@ -1369,7 +1342,6 @@ public function getFilters() { return $this->filters; } - public function setKind($kind) { $this->kind = $kind; @@ -1379,7 +1351,6 @@ public function getKind() { return $this->kind; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -1389,6 +1360,7 @@ public function getStartDate() { return $this->startDate; } + } class Google_Service_Dfareporting_FileList extends Google_Collection @@ -1411,7 +1383,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1421,7 +1392,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1431,7 +1401,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1441,6 +1410,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection @@ -1465,7 +1435,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -1475,7 +1444,6 @@ public function getDimensions() { return $this->dimensions; } - public function setKind($kind) { $this->kind = $kind; @@ -1485,7 +1453,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -1495,6 +1462,7 @@ public function getMetrics() { return $this->metrics; } + } class Google_Service_Dfareporting_Metric extends Google_Model @@ -1513,7 +1481,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1523,6 +1490,7 @@ public function getName() { return $this->name; } + } class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection @@ -1549,7 +1517,6 @@ public function getConversionDimensions() { return $this->conversionDimensions; } - public function setCustomFloodlightVariables($customFloodlightVariables) { $this->customFloodlightVariables = $customFloodlightVariables; @@ -1559,7 +1526,6 @@ public function getCustomFloodlightVariables() { return $this->customFloodlightVariables; } - public function setKind($kind) { $this->kind = $kind; @@ -1569,7 +1535,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -1579,7 +1544,6 @@ public function getMetrics() { return $this->metrics; } - public function setPerInteractionDimensions($perInteractionDimensions) { $this->perInteractionDimensions = $perInteractionDimensions; @@ -1589,6 +1553,7 @@ public function getPerInteractionDimensions() { return $this->perInteractionDimensions; } + } class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection @@ -1617,7 +1582,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -1627,7 +1591,6 @@ public function getDimensions() { return $this->dimensions; } - public function setKind($kind) { $this->kind = $kind; @@ -1637,7 +1600,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -1647,7 +1609,6 @@ public function getMetrics() { return $this->metrics; } - public function setPivotedActivityMetrics($pivotedActivityMetrics) { $this->pivotedActivityMetrics = $pivotedActivityMetrics; @@ -1657,7 +1618,6 @@ public function getPivotedActivityMetrics() { return $this->pivotedActivityMetrics; } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) { $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; @@ -1667,6 +1627,7 @@ public function getReachByFrequencyMetrics() { return $this->reachByFrequencyMetrics; } + } class Google_Service_Dfareporting_Recipient extends Google_Model @@ -1686,7 +1647,6 @@ public function getDeliveryType() { return $this->deliveryType; } - public function setEmail($email) { $this->email = $email; @@ -1696,7 +1656,6 @@ public function getEmail() { return $this->email; } - public function setKind($kind) { $this->kind = $kind; @@ -1706,6 +1665,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Dfareporting_Report extends Google_Model @@ -1749,7 +1709,6 @@ public function getAccountId() { return $this->accountId; } - public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria) { $this->activeGrpCriteria = $activeGrpCriteria; @@ -1759,7 +1718,6 @@ public function getActiveGrpCriteria() { return $this->activeGrpCriteria; } - public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria) { $this->criteria = $criteria; @@ -1769,7 +1727,6 @@ public function getCriteria() { return $this->criteria; } - public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria) { $this->crossDimensionReachCriteria = $crossDimensionReachCriteria; @@ -1779,7 +1736,6 @@ public function getCrossDimensionReachCriteria() { return $this->crossDimensionReachCriteria; } - public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery) { $this->delivery = $delivery; @@ -1789,7 +1745,6 @@ public function getDelivery() { return $this->delivery; } - public function setEtag($etag) { $this->etag = $etag; @@ -1799,7 +1754,6 @@ public function getEtag() { return $this->etag; } - public function setFileName($fileName) { $this->fileName = $fileName; @@ -1809,7 +1763,6 @@ public function getFileName() { return $this->fileName; } - public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria) { $this->floodlightCriteria = $floodlightCriteria; @@ -1819,7 +1772,6 @@ public function getFloodlightCriteria() { return $this->floodlightCriteria; } - public function setFormat($format) { $this->format = $format; @@ -1829,7 +1781,6 @@ public function getFormat() { return $this->format; } - public function setId($id) { $this->id = $id; @@ -1839,7 +1790,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1849,7 +1799,6 @@ public function getKind() { return $this->kind; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -1859,7 +1808,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setName($name) { $this->name = $name; @@ -1869,7 +1817,6 @@ public function getName() { return $this->name; } - public function setOwnerProfileId($ownerProfileId) { $this->ownerProfileId = $ownerProfileId; @@ -1879,7 +1826,6 @@ public function getOwnerProfileId() { return $this->ownerProfileId; } - public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria) { $this->pathToConversionCriteria = $pathToConversionCriteria; @@ -1889,7 +1835,6 @@ public function getPathToConversionCriteria() { return $this->pathToConversionCriteria; } - public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria) { $this->reachCriteria = $reachCriteria; @@ -1899,7 +1844,6 @@ public function getReachCriteria() { return $this->reachCriteria; } - public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule) { $this->schedule = $schedule; @@ -1909,7 +1853,6 @@ public function getSchedule() { return $this->schedule; } - public function setSubAccountId($subAccountId) { $this->subAccountId = $subAccountId; @@ -1919,7 +1862,6 @@ public function getSubAccountId() { return $this->subAccountId; } - public function setType($type) { $this->type = $type; @@ -1929,6 +1871,7 @@ public function getType() { return $this->type; } + } class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection @@ -1953,7 +1896,6 @@ public function getDateRange() { return $this->dateRange; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -1963,7 +1905,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -1973,7 +1914,6 @@ public function getDimensions() { return $this->dimensions; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -1983,6 +1923,7 @@ public function getMetricNames() { return $this->metricNames; } + } class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection @@ -2009,7 +1950,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -2019,7 +1959,6 @@ public function getDimensions() { return $this->dimensions; } - public function setKind($kind) { $this->kind = $kind; @@ -2029,7 +1968,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -2039,7 +1977,6 @@ public function getMetrics() { return $this->metrics; } - public function setPivotedActivityMetrics($pivotedActivityMetrics) { $this->pivotedActivityMetrics = $pivotedActivityMetrics; @@ -2049,6 +1986,7 @@ public function getPivotedActivityMetrics() { return $this->pivotedActivityMetrics; } + } class Google_Service_Dfareporting_ReportCriteria extends Google_Collection @@ -2077,7 +2015,6 @@ public function getActivities() { return $this->activities; } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) { $this->customRichMediaEvents = $customRichMediaEvents; @@ -2087,7 +2024,6 @@ public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; @@ -2097,7 +2033,6 @@ public function getDateRange() { return $this->dateRange; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -2107,7 +2042,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -2117,7 +2051,6 @@ public function getDimensions() { return $this->dimensions; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2127,6 +2060,7 @@ public function getMetricNames() { return $this->metricNames; } + } class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection @@ -2154,7 +2088,6 @@ public function getBreakdown() { return $this->breakdown; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; @@ -2164,7 +2097,6 @@ public function getDateRange() { return $this->dateRange; } - public function setDimension($dimension) { $this->dimension = $dimension; @@ -2174,7 +2106,6 @@ public function getDimension() { return $this->dimension; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -2184,7 +2115,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2194,7 +2124,6 @@ public function getMetricNames() { return $this->metricNames; } - public function setOverlapMetricNames($overlapMetricNames) { $this->overlapMetricNames = $overlapMetricNames; @@ -2204,7 +2133,6 @@ public function getOverlapMetricNames() { return $this->overlapMetricNames; } - public function setPivoted($pivoted) { $this->pivoted = $pivoted; @@ -2214,6 +2142,7 @@ public function getPivoted() { return $this->pivoted; } + } class Google_Service_Dfareporting_ReportDelivery extends Google_Collection @@ -2236,7 +2165,6 @@ public function getEmailOwner() { return $this->emailOwner; } - public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) { $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; @@ -2246,7 +2174,6 @@ public function getEmailOwnerDeliveryType() { return $this->emailOwnerDeliveryType; } - public function setMessage($message) { $this->message = $message; @@ -2256,7 +2183,6 @@ public function getMessage() { return $this->message; } - public function setRecipients($recipients) { $this->recipients = $recipients; @@ -2266,6 +2192,7 @@ public function getRecipients() { return $this->recipients; } + } class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection @@ -2296,7 +2223,6 @@ public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; @@ -2306,7 +2232,6 @@ public function getDateRange() { return $this->dateRange; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -2316,7 +2241,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -2326,7 +2250,6 @@ public function getDimensions() { return $this->dimensions; } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { $this->floodlightConfigId = $floodlightConfigId; @@ -2336,7 +2259,6 @@ public function getFloodlightConfigId() { return $this->floodlightConfigId; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2346,7 +2268,6 @@ public function getMetricNames() { return $this->metricNames; } - public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties) { $this->reportProperties = $reportProperties; @@ -2356,6 +2277,7 @@ public function getReportProperties() { return $this->reportProperties; } + } class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model @@ -2375,7 +2297,6 @@ public function getIncludeAttributedIPConversions() { return $this->includeAttributedIPConversions; } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) { $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; @@ -2385,7 +2306,6 @@ public function getIncludeUnattributedCookieConversions() { return $this->includeUnattributedCookieConversions; } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) { $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; @@ -2395,6 +2315,7 @@ public function getIncludeUnattributedIPConversions() { return $this->includeUnattributedIPConversions; } + } class Google_Service_Dfareporting_ReportList extends Google_Collection @@ -2417,7 +2338,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2427,7 +2347,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2437,7 +2356,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2447,6 +2365,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection @@ -2481,7 +2400,6 @@ public function getActivityFilters() { return $this->activityFilters; } - public function setConversionDimensions($conversionDimensions) { $this->conversionDimensions = $conversionDimensions; @@ -2491,7 +2409,6 @@ public function getConversionDimensions() { return $this->conversionDimensions; } - public function setCustomFloodlightVariables($customFloodlightVariables) { $this->customFloodlightVariables = $customFloodlightVariables; @@ -2501,7 +2418,6 @@ public function getCustomFloodlightVariables() { return $this->customFloodlightVariables; } - public function setCustomRichMediaEvents($customRichMediaEvents) { $this->customRichMediaEvents = $customRichMediaEvents; @@ -2511,7 +2427,6 @@ public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; @@ -2521,7 +2436,6 @@ public function getDateRange() { return $this->dateRange; } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { $this->floodlightConfigId = $floodlightConfigId; @@ -2531,7 +2445,6 @@ public function getFloodlightConfigId() { return $this->floodlightConfigId; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2541,7 +2454,6 @@ public function getMetricNames() { return $this->metricNames; } - public function setPerInteractionDimensions($perInteractionDimensions) { $this->perInteractionDimensions = $perInteractionDimensions; @@ -2551,7 +2463,6 @@ public function getPerInteractionDimensions() { return $this->perInteractionDimensions; } - public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties) { $this->reportProperties = $reportProperties; @@ -2561,6 +2472,7 @@ public function getReportProperties() { return $this->reportProperties; } + } class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model @@ -2586,7 +2498,6 @@ public function getClicksLookbackWindow() { return $this->clicksLookbackWindow; } - public function setImpressionsLookbackWindow($impressionsLookbackWindow) { $this->impressionsLookbackWindow = $impressionsLookbackWindow; @@ -2596,7 +2507,6 @@ public function getImpressionsLookbackWindow() { return $this->impressionsLookbackWindow; } - public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { $this->includeAttributedIPConversions = $includeAttributedIPConversions; @@ -2606,7 +2516,6 @@ public function getIncludeAttributedIPConversions() { return $this->includeAttributedIPConversions; } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) { $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; @@ -2616,7 +2525,6 @@ public function getIncludeUnattributedCookieConversions() { return $this->includeUnattributedCookieConversions; } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) { $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; @@ -2626,7 +2534,6 @@ public function getIncludeUnattributedIPConversions() { return $this->includeUnattributedIPConversions; } - public function setMaximumClickInteractions($maximumClickInteractions) { $this->maximumClickInteractions = $maximumClickInteractions; @@ -2636,7 +2543,6 @@ public function getMaximumClickInteractions() { return $this->maximumClickInteractions; } - public function setMaximumImpressionInteractions($maximumImpressionInteractions) { $this->maximumImpressionInteractions = $maximumImpressionInteractions; @@ -2646,7 +2552,6 @@ public function getMaximumImpressionInteractions() { return $this->maximumImpressionInteractions; } - public function setMaximumInteractionGap($maximumInteractionGap) { $this->maximumInteractionGap = $maximumInteractionGap; @@ -2656,7 +2561,6 @@ public function getMaximumInteractionGap() { return $this->maximumInteractionGap; } - public function setPivotOnInteractionPath($pivotOnInteractionPath) { $this->pivotOnInteractionPath = $pivotOnInteractionPath; @@ -2666,6 +2570,7 @@ public function getPivotOnInteractionPath() { return $this->pivotOnInteractionPath; } + } class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection @@ -2695,7 +2600,6 @@ public function getActivities() { return $this->activities; } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) { $this->customRichMediaEvents = $customRichMediaEvents; @@ -2705,7 +2609,6 @@ public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; @@ -2715,7 +2618,6 @@ public function getDateRange() { return $this->dateRange; } - public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; @@ -2725,7 +2627,6 @@ public function getDimensionFilters() { return $this->dimensionFilters; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -2735,7 +2636,6 @@ public function getDimensions() { return $this->dimensions; } - public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2745,7 +2645,6 @@ public function getMetricNames() { return $this->metricNames; } - public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) { $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; @@ -2755,6 +2654,7 @@ public function getReachByFrequencyMetricNames() { return $this->reachByFrequencyMetricNames; } + } class Google_Service_Dfareporting_ReportSchedule extends Google_Collection @@ -2779,7 +2679,6 @@ public function getActive() { return $this->active; } - public function setEvery($every) { $this->every = $every; @@ -2789,7 +2688,6 @@ public function getEvery() { return $this->every; } - public function setExpirationDate($expirationDate) { $this->expirationDate = $expirationDate; @@ -2799,7 +2697,6 @@ public function getExpirationDate() { return $this->expirationDate; } - public function setRepeats($repeats) { $this->repeats = $repeats; @@ -2809,7 +2706,6 @@ public function getRepeats() { return $this->repeats; } - public function setRepeatsOnWeekDays($repeatsOnWeekDays) { $this->repeatsOnWeekDays = $repeatsOnWeekDays; @@ -2819,7 +2715,6 @@ public function getRepeatsOnWeekDays() { return $this->repeatsOnWeekDays; } - public function setRunsOnDayOfMonth($runsOnDayOfMonth) { $this->runsOnDayOfMonth = $runsOnDayOfMonth; @@ -2829,7 +2724,6 @@ public function getRunsOnDayOfMonth() { return $this->runsOnDayOfMonth; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -2839,6 +2733,7 @@ public function getStartDate() { return $this->startDate; } + } class Google_Service_Dfareporting_SortedDimension extends Google_Model @@ -2858,7 +2753,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2868,7 +2762,6 @@ public function getName() { return $this->name; } - public function setSortOrder($sortOrder) { $this->sortOrder = $sortOrder; @@ -2878,6 +2771,7 @@ public function getSortOrder() { return $this->sortOrder; } + } class Google_Service_Dfareporting_UserProfile extends Google_Model @@ -2902,7 +2796,6 @@ public function getAccountId() { return $this->accountId; } - public function setAccountName($accountName) { $this->accountName = $accountName; @@ -2912,7 +2805,6 @@ public function getAccountName() { return $this->accountName; } - public function setEtag($etag) { $this->etag = $etag; @@ -2922,7 +2814,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -2932,7 +2823,6 @@ public function getKind() { return $this->kind; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -2942,7 +2832,6 @@ public function getProfileId() { return $this->profileId; } - public function setSubAccountId($subAccountId) { $this->subAccountId = $subAccountId; @@ -2952,7 +2841,6 @@ public function getSubAccountId() { return $this->subAccountId; } - public function setSubAccountName($subAccountName) { $this->subAccountName = $subAccountName; @@ -2962,7 +2850,6 @@ public function getSubAccountName() { return $this->subAccountName; } - public function setUserName($userName) { $this->userName = $userName; @@ -2972,6 +2859,7 @@ public function getUserName() { return $this->userName; } + } class Google_Service_Dfareporting_UserProfileList extends Google_Collection @@ -2993,7 +2881,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3003,7 +2890,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3013,4 +2899,5 @@ public function getKind() { return $this->kind; } + } From c9b9f50ef1bd9cc4a66e8cdb0740e18deea9b285 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:46 -0700 Subject: [PATCH 0369/1274] Updated Translate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Translate.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index 42f44026f..723212de5 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -246,6 +246,7 @@ public function getDetections() { return $this->detections; } + } class Google_Service_Translate_DetectionsResourceItems extends Google_Model @@ -265,7 +266,6 @@ public function getConfidence() { return $this->confidence; } - public function setIsReliable($isReliable) { $this->isReliable = $isReliable; @@ -275,7 +275,6 @@ public function getIsReliable() { return $this->isReliable; } - public function setLanguage($language) { $this->language = $language; @@ -285,6 +284,7 @@ public function getLanguage() { return $this->language; } + } class Google_Service_Translate_LanguagesListResponse extends Google_Collection @@ -304,6 +304,7 @@ public function getLanguages() { return $this->languages; } + } class Google_Service_Translate_LanguagesResource extends Google_Model @@ -322,7 +323,6 @@ public function getLanguage() { return $this->language; } - public function setName($name) { $this->name = $name; @@ -332,6 +332,7 @@ public function getName() { return $this->name; } + } class Google_Service_Translate_TranslationsListResponse extends Google_Collection @@ -351,6 +352,7 @@ public function getTranslations() { return $this->translations; } + } class Google_Service_Translate_TranslationsResource extends Google_Model @@ -369,7 +371,6 @@ public function getDetectedSourceLanguage() { return $this->detectedSourceLanguage; } - public function setTranslatedText($translatedText) { $this->translatedText = $translatedText; @@ -379,4 +380,5 @@ public function getTranslatedText() { return $this->translatedText; } + } From 8e7edcb89ebb0790993e1f8c3f7eac0feb9f154c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:48 -0700 Subject: [PATCH 0370/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 287 ++++++------------------- 1 file changed, 66 insertions(+), 221 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 77bdb6688..d4a38b48a 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -1145,7 +1145,6 @@ public function getAdultContent() { return $this->adultContent; } - public function setAdwordsLinks($adwordsLinks) { $this->adwordsLinks = $adwordsLinks; @@ -1155,7 +1154,6 @@ public function getAdwordsLinks() { return $this->adwordsLinks; } - public function setId($id) { $this->id = $id; @@ -1165,7 +1163,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1175,7 +1172,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1185,7 +1181,6 @@ public function getName() { return $this->name; } - public function setReviewsUrl($reviewsUrl) { $this->reviewsUrl = $reviewsUrl; @@ -1195,7 +1190,6 @@ public function getReviewsUrl() { return $this->reviewsUrl; } - public function setSellerId($sellerId) { $this->sellerId = $sellerId; @@ -1205,7 +1199,6 @@ public function getSellerId() { return $this->sellerId; } - public function setUsers($users) { $this->users = $users; @@ -1215,7 +1208,6 @@ public function getUsers() { return $this->users; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -1225,6 +1217,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model @@ -1243,7 +1236,6 @@ public function getAdwordsId() { return $this->adwordsId; } - public function setStatus($status) { $this->status = $status; @@ -1253,6 +1245,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_ShoppingContent_AccountStatus extends Google_Collection @@ -1274,7 +1267,6 @@ public function getAccountId() { return $this->accountId; } - public function setDataQualityIssues($dataQualityIssues) { $this->dataQualityIssues = $dataQualityIssues; @@ -1284,7 +1276,6 @@ public function getDataQualityIssues() { return $this->dataQualityIssues; } - public function setKind($kind) { $this->kind = $kind; @@ -1294,6 +1285,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection @@ -1320,7 +1312,6 @@ public function getCountry() { return $this->country; } - public function setDisplayedValue($displayedValue) { $this->displayedValue = $displayedValue; @@ -1330,7 +1321,6 @@ public function getDisplayedValue() { return $this->displayedValue; } - public function setExampleItems($exampleItems) { $this->exampleItems = $exampleItems; @@ -1340,7 +1330,6 @@ public function getExampleItems() { return $this->exampleItems; } - public function setId($id) { $this->id = $id; @@ -1350,7 +1339,6 @@ public function getId() { return $this->id; } - public function setLastChecked($lastChecked) { $this->lastChecked = $lastChecked; @@ -1360,7 +1348,6 @@ public function getLastChecked() { return $this->lastChecked; } - public function setNumItems($numItems) { $this->numItems = $numItems; @@ -1370,7 +1357,6 @@ public function getNumItems() { return $this->numItems; } - public function setSeverity($severity) { $this->severity = $severity; @@ -1380,7 +1366,6 @@ public function getSeverity() { return $this->severity; } - public function setSubmittedValue($submittedValue) { $this->submittedValue = $submittedValue; @@ -1390,6 +1375,7 @@ public function getSubmittedValue() { return $this->submittedValue; } + } class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model @@ -1411,7 +1397,6 @@ public function getItemId() { return $this->itemId; } - public function setLink($link) { $this->link = $link; @@ -1421,7 +1406,6 @@ public function getLink() { return $this->link; } - public function setSubmittedValue($submittedValue) { $this->submittedValue = $submittedValue; @@ -1431,7 +1415,6 @@ public function getSubmittedValue() { return $this->submittedValue; } - public function setTitle($title) { $this->title = $title; @@ -1441,7 +1424,6 @@ public function getTitle() { return $this->title; } - public function setValueOnLandingPage($valueOnLandingPage) { $this->valueOnLandingPage = $valueOnLandingPage; @@ -1451,6 +1433,7 @@ public function getValueOnLandingPage() { return $this->valueOnLandingPage; } + } class Google_Service_ShoppingContent_AccountUser extends Google_Model @@ -1469,7 +1452,6 @@ public function getAdmin() { return $this->admin; } - public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; @@ -1479,6 +1461,7 @@ public function getEmailAddress() { return $this->emailAddress; } + } class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection @@ -1498,6 +1481,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model @@ -1520,7 +1504,6 @@ public function getAccount() { return $this->account; } - public function setAccountId($accountId) { $this->accountId = $accountId; @@ -1530,7 +1513,6 @@ public function getAccountId() { return $this->accountId; } - public function setBatchId($batchId) { $this->batchId = $batchId; @@ -1540,7 +1522,6 @@ public function getBatchId() { return $this->batchId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -1550,7 +1531,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -1560,6 +1540,7 @@ public function getMethod() { return $this->method; } + } class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection @@ -1580,7 +1561,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -1590,6 +1570,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model @@ -1612,7 +1593,6 @@ public function getAccount() { return $this->account; } - public function setBatchId($batchId) { $this->batchId = $batchId; @@ -1622,7 +1602,6 @@ public function getBatchId() { return $this->batchId; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -1632,7 +1611,6 @@ public function getErrors() { return $this->errors; } - public function setKind($kind) { $this->kind = $kind; @@ -1642,6 +1620,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection @@ -1663,7 +1642,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1673,7 +1651,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -1683,6 +1660,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection @@ -1702,6 +1680,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model @@ -1722,7 +1701,6 @@ public function getAccountId() { return $this->accountId; } - public function setBatchId($batchId) { $this->batchId = $batchId; @@ -1732,7 +1710,6 @@ public function getBatchId() { return $this->batchId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -1742,7 +1719,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -1752,6 +1728,7 @@ public function getMethod() { return $this->method; } + } class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection @@ -1772,7 +1749,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -1782,6 +1758,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model @@ -1803,7 +1780,6 @@ public function getAccountStatus() { return $this->accountStatus; } - public function setBatchId($batchId) { $this->batchId = $batchId; @@ -1813,7 +1789,6 @@ public function getBatchId() { return $this->batchId; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -1823,6 +1798,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection @@ -1844,7 +1820,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1854,7 +1829,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -1864,6 +1838,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_ShoppingContent_Datafeed extends Google_Collection @@ -1894,7 +1869,6 @@ public function getAttributeLanguage() { return $this->attributeLanguage; } - public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; @@ -1904,7 +1878,6 @@ public function getContentLanguage() { return $this->contentLanguage; } - public function setContentType($contentType) { $this->contentType = $contentType; @@ -1914,7 +1887,6 @@ public function getContentType() { return $this->contentType; } - public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule) { $this->fetchSchedule = $fetchSchedule; @@ -1924,7 +1896,6 @@ public function getFetchSchedule() { return $this->fetchSchedule; } - public function setFileName($fileName) { $this->fileName = $fileName; @@ -1934,7 +1905,6 @@ public function getFileName() { return $this->fileName; } - public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) { $this->format = $format; @@ -1944,7 +1914,6 @@ public function getFormat() { return $this->format; } - public function setId($id) { $this->id = $id; @@ -1954,7 +1923,6 @@ public function getId() { return $this->id; } - public function setIntendedDestinations($intendedDestinations) { $this->intendedDestinations = $intendedDestinations; @@ -1964,7 +1932,6 @@ public function getIntendedDestinations() { return $this->intendedDestinations; } - public function setKind($kind) { $this->kind = $kind; @@ -1974,7 +1941,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1984,7 +1950,6 @@ public function getName() { return $this->name; } - public function setTargetCountry($targetCountry) { $this->targetCountry = $targetCountry; @@ -1994,6 +1959,7 @@ public function getTargetCountry() { return $this->targetCountry; } + } class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model @@ -2017,7 +1983,6 @@ public function getDayOfMonth() { return $this->dayOfMonth; } - public function setFetchUrl($fetchUrl) { $this->fetchUrl = $fetchUrl; @@ -2027,7 +1992,6 @@ public function getFetchUrl() { return $this->fetchUrl; } - public function setHour($hour) { $this->hour = $hour; @@ -2037,7 +2001,6 @@ public function getHour() { return $this->hour; } - public function setPassword($password) { $this->password = $password; @@ -2047,7 +2010,6 @@ public function getPassword() { return $this->password; } - public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -2057,7 +2019,6 @@ public function getTimeZone() { return $this->timeZone; } - public function setUsername($username) { $this->username = $username; @@ -2067,7 +2028,6 @@ public function getUsername() { return $this->username; } - public function setWeekday($weekday) { $this->weekday = $weekday; @@ -2077,6 +2037,7 @@ public function getWeekday() { return $this->weekday; } + } class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model @@ -2096,7 +2057,6 @@ public function getColumnDelimiter() { return $this->columnDelimiter; } - public function setFileEncoding($fileEncoding) { $this->fileEncoding = $fileEncoding; @@ -2106,7 +2066,6 @@ public function getFileEncoding() { return $this->fileEncoding; } - public function setQuotingMode($quotingMode) { $this->quotingMode = $quotingMode; @@ -2116,6 +2075,7 @@ public function getQuotingMode() { return $this->quotingMode; } + } class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection @@ -2142,7 +2102,6 @@ public function getDatafeedId() { return $this->datafeedId; } - public function setErrors($errors) { $this->errors = $errors; @@ -2152,7 +2111,6 @@ public function getErrors() { return $this->errors; } - public function setItemsTotal($itemsTotal) { $this->itemsTotal = $itemsTotal; @@ -2162,7 +2120,6 @@ public function getItemsTotal() { return $this->itemsTotal; } - public function setItemsValid($itemsValid) { $this->itemsValid = $itemsValid; @@ -2172,7 +2129,6 @@ public function getItemsValid() { return $this->itemsValid; } - public function setKind($kind) { $this->kind = $kind; @@ -2182,7 +2138,6 @@ public function getKind() { return $this->kind; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -2192,7 +2147,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -2202,6 +2156,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection @@ -2224,7 +2179,6 @@ public function getCode() { return $this->code; } - public function setCount($count) { $this->count = $count; @@ -2234,7 +2188,6 @@ public function getCount() { return $this->count; } - public function setExamples($examples) { $this->examples = $examples; @@ -2244,7 +2197,6 @@ public function getExamples() { return $this->examples; } - public function setMessage($message) { $this->message = $message; @@ -2254,6 +2206,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model @@ -2273,7 +2226,6 @@ public function getItemId() { return $this->itemId; } - public function setLineNumber($lineNumber) { $this->lineNumber = $lineNumber; @@ -2283,7 +2235,6 @@ public function getLineNumber() { return $this->lineNumber; } - public function setValue($value) { $this->value = $value; @@ -2293,6 +2244,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection @@ -2312,6 +2264,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model @@ -2334,7 +2287,6 @@ public function getBatchId() { return $this->batchId; } - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { $this->datafeed = $datafeed; @@ -2344,7 +2296,6 @@ public function getDatafeed() { return $this->datafeed; } - public function setDatafeedId($datafeedId) { $this->datafeedId = $datafeedId; @@ -2354,7 +2305,6 @@ public function getDatafeedId() { return $this->datafeedId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -2364,7 +2314,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -2374,6 +2323,7 @@ public function getMethod() { return $this->method; } + } class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection @@ -2394,7 +2344,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -2404,6 +2353,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model @@ -2425,7 +2375,6 @@ public function getBatchId() { return $this->batchId; } - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { $this->datafeed = $datafeed; @@ -2435,7 +2384,6 @@ public function getDatafeed() { return $this->datafeed; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -2445,6 +2393,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection @@ -2466,7 +2415,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2476,7 +2424,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -2486,6 +2433,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection @@ -2505,6 +2453,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model @@ -2525,7 +2474,6 @@ public function getBatchId() { return $this->batchId; } - public function setDatafeedId($datafeedId) { $this->datafeedId = $datafeedId; @@ -2535,7 +2483,6 @@ public function getDatafeedId() { return $this->datafeedId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -2545,7 +2492,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -2555,6 +2501,7 @@ public function getMethod() { return $this->method; } + } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection @@ -2575,7 +2522,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -2585,6 +2531,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model @@ -2606,7 +2553,6 @@ public function getBatchId() { return $this->batchId; } - public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus) { $this->datafeedStatus = $datafeedStatus; @@ -2616,7 +2562,6 @@ public function getDatafeedStatus() { return $this->datafeedStatus; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -2626,6 +2571,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection @@ -2647,7 +2593,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2657,7 +2602,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -2667,6 +2611,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_ShoppingContent_Error extends Google_Model @@ -2686,7 +2631,6 @@ public function getDomain() { return $this->domain; } - public function setMessage($message) { $this->message = $message; @@ -2696,7 +2640,6 @@ public function getMessage() { return $this->message; } - public function setReason($reason) { $this->reason = $reason; @@ -2706,6 +2649,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_ShoppingContent_Errors extends Google_Collection @@ -2727,7 +2671,6 @@ public function getCode() { return $this->code; } - public function setErrors($errors) { $this->errors = $errors; @@ -2737,7 +2680,6 @@ public function getErrors() { return $this->errors; } - public function setMessage($message) { $this->message = $message; @@ -2747,6 +2689,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_ShoppingContent_Inventory extends Google_Model @@ -2771,7 +2714,6 @@ public function getAvailability() { return $this->availability; } - public function setKind($kind) { $this->kind = $kind; @@ -2781,7 +2723,6 @@ public function getKind() { return $this->kind; } - public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -2791,7 +2732,6 @@ public function getPrice() { return $this->price; } - public function setQuantity($quantity) { $this->quantity = $quantity; @@ -2801,7 +2741,6 @@ public function getQuantity() { return $this->quantity; } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; @@ -2811,7 +2750,6 @@ public function getSalePrice() { return $this->salePrice; } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; @@ -2821,6 +2759,7 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } + } class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection @@ -2840,6 +2779,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model @@ -2862,7 +2802,6 @@ public function getBatchId() { return $this->batchId; } - public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) { $this->inventory = $inventory; @@ -2872,7 +2811,6 @@ public function getInventory() { return $this->inventory; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -2882,7 +2820,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setProductId($productId) { $this->productId = $productId; @@ -2892,7 +2829,6 @@ public function getProductId() { return $this->productId; } - public function setStoreCode($storeCode) { $this->storeCode = $storeCode; @@ -2902,6 +2838,7 @@ public function getStoreCode() { return $this->storeCode; } + } class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection @@ -2922,7 +2859,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -2932,6 +2868,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model @@ -2952,7 +2889,6 @@ public function getBatchId() { return $this->batchId; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -2962,7 +2898,6 @@ public function getErrors() { return $this->errors; } - public function setKind($kind) { $this->kind = $kind; @@ -2972,6 +2907,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model @@ -2995,7 +2931,6 @@ public function getAvailability() { return $this->availability; } - public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -3005,7 +2940,6 @@ public function getPrice() { return $this->price; } - public function setQuantity($quantity) { $this->quantity = $quantity; @@ -3015,7 +2949,6 @@ public function getQuantity() { return $this->quantity; } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; @@ -3025,7 +2958,6 @@ public function getSalePrice() { return $this->salePrice; } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; @@ -3035,6 +2967,7 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } + } class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model @@ -3052,6 +2985,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model @@ -3071,7 +3005,6 @@ public function getName() { return $this->name; } - public function setPointsValue($pointsValue) { $this->pointsValue = $pointsValue; @@ -3081,7 +3014,6 @@ public function getPointsValue() { return $this->pointsValue; } - public function setRatio($ratio) { $this->ratio = $ratio; @@ -3091,6 +3023,7 @@ public function getRatio() { return $this->ratio; } + } class Google_Service_ShoppingContent_Price extends Google_Model @@ -3109,7 +3042,6 @@ public function getCurrency() { return $this->currency; } - public function setValue($value) { $this->value = $value; @@ -3119,6 +3051,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_Product extends Google_Collection @@ -3209,7 +3142,6 @@ public function getAdditionalImageLinks() { return $this->additionalImageLinks; } - public function setAdult($adult) { $this->adult = $adult; @@ -3219,7 +3151,6 @@ public function getAdult() { return $this->adult; } - public function setAdwordsGrouping($adwordsGrouping) { $this->adwordsGrouping = $adwordsGrouping; @@ -3229,7 +3160,6 @@ public function getAdwordsGrouping() { return $this->adwordsGrouping; } - public function setAdwordsLabels($adwordsLabels) { $this->adwordsLabels = $adwordsLabels; @@ -3239,7 +3169,6 @@ public function getAdwordsLabels() { return $this->adwordsLabels; } - public function setAdwordsRedirect($adwordsRedirect) { $this->adwordsRedirect = $adwordsRedirect; @@ -3249,7 +3178,6 @@ public function getAdwordsRedirect() { return $this->adwordsRedirect; } - public function setAgeGroup($ageGroup) { $this->ageGroup = $ageGroup; @@ -3259,7 +3187,6 @@ public function getAgeGroup() { return $this->ageGroup; } - public function setAvailability($availability) { $this->availability = $availability; @@ -3269,7 +3196,6 @@ public function getAvailability() { return $this->availability; } - public function setAvailabilityDate($availabilityDate) { $this->availabilityDate = $availabilityDate; @@ -3279,7 +3205,6 @@ public function getAvailabilityDate() { return $this->availabilityDate; } - public function setBrand($brand) { $this->brand = $brand; @@ -3289,7 +3214,6 @@ public function getBrand() { return $this->brand; } - public function setChannel($channel) { $this->channel = $channel; @@ -3299,7 +3223,6 @@ public function getChannel() { return $this->channel; } - public function setColor($color) { $this->color = $color; @@ -3309,7 +3232,6 @@ public function getColor() { return $this->color; } - public function setCondition($condition) { $this->condition = $condition; @@ -3319,7 +3241,6 @@ public function getCondition() { return $this->condition; } - public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; @@ -3329,7 +3250,6 @@ public function getContentLanguage() { return $this->contentLanguage; } - public function setCustomAttributes($customAttributes) { $this->customAttributes = $customAttributes; @@ -3339,7 +3259,6 @@ public function getCustomAttributes() { return $this->customAttributes; } - public function setCustomGroups($customGroups) { $this->customGroups = $customGroups; @@ -3349,7 +3268,6 @@ public function getCustomGroups() { return $this->customGroups; } - public function setCustomLabel0($customLabel0) { $this->customLabel0 = $customLabel0; @@ -3359,7 +3277,6 @@ public function getCustomLabel0() { return $this->customLabel0; } - public function setCustomLabel1($customLabel1) { $this->customLabel1 = $customLabel1; @@ -3369,7 +3286,6 @@ public function getCustomLabel1() { return $this->customLabel1; } - public function setCustomLabel2($customLabel2) { $this->customLabel2 = $customLabel2; @@ -3379,7 +3295,6 @@ public function getCustomLabel2() { return $this->customLabel2; } - public function setCustomLabel3($customLabel3) { $this->customLabel3 = $customLabel3; @@ -3389,7 +3304,6 @@ public function getCustomLabel3() { return $this->customLabel3; } - public function setCustomLabel4($customLabel4) { $this->customLabel4 = $customLabel4; @@ -3399,7 +3313,6 @@ public function getCustomLabel4() { return $this->customLabel4; } - public function setDescription($description) { $this->description = $description; @@ -3409,7 +3322,6 @@ public function getDescription() { return $this->description; } - public function setDestinations($destinations) { $this->destinations = $destinations; @@ -3419,7 +3331,6 @@ public function getDestinations() { return $this->destinations; } - public function setEnergyEfficiencyClass($energyEfficiencyClass) { $this->energyEfficiencyClass = $energyEfficiencyClass; @@ -3429,7 +3340,6 @@ public function getEnergyEfficiencyClass() { return $this->energyEfficiencyClass; } - public function setExpirationDate($expirationDate) { $this->expirationDate = $expirationDate; @@ -3439,7 +3349,6 @@ public function getExpirationDate() { return $this->expirationDate; } - public function setGender($gender) { $this->gender = $gender; @@ -3449,7 +3358,6 @@ public function getGender() { return $this->gender; } - public function setGoogleProductCategory($googleProductCategory) { $this->googleProductCategory = $googleProductCategory; @@ -3459,7 +3367,6 @@ public function getGoogleProductCategory() { return $this->googleProductCategory; } - public function setGtin($gtin) { $this->gtin = $gtin; @@ -3469,7 +3376,6 @@ public function getGtin() { return $this->gtin; } - public function setId($id) { $this->id = $id; @@ -3479,7 +3385,6 @@ public function getId() { return $this->id; } - public function setIdentifierExists($identifierExists) { $this->identifierExists = $identifierExists; @@ -3489,7 +3394,6 @@ public function getIdentifierExists() { return $this->identifierExists; } - public function setImageLink($imageLink) { $this->imageLink = $imageLink; @@ -3499,7 +3403,6 @@ public function getImageLink() { return $this->imageLink; } - public function setInstallment(Google_Service_ShoppingContent_ProductInstallment $installment) { $this->installment = $installment; @@ -3509,7 +3412,6 @@ public function getInstallment() { return $this->installment; } - public function setIsBundle($isBundle) { $this->isBundle = $isBundle; @@ -3519,7 +3421,6 @@ public function getIsBundle() { return $this->isBundle; } - public function setItemGroupId($itemGroupId) { $this->itemGroupId = $itemGroupId; @@ -3529,7 +3430,6 @@ public function getItemGroupId() { return $this->itemGroupId; } - public function setKind($kind) { $this->kind = $kind; @@ -3539,7 +3439,6 @@ public function getKind() { return $this->kind; } - public function setLink($link) { $this->link = $link; @@ -3549,7 +3448,6 @@ public function getLink() { return $this->link; } - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) { $this->loyaltyPoints = $loyaltyPoints; @@ -3559,7 +3457,6 @@ public function getLoyaltyPoints() { return $this->loyaltyPoints; } - public function setMaterial($material) { $this->material = $material; @@ -3569,7 +3466,6 @@ public function getMaterial() { return $this->material; } - public function setMobileLink($mobileLink) { $this->mobileLink = $mobileLink; @@ -3579,7 +3475,6 @@ public function getMobileLink() { return $this->mobileLink; } - public function setMpn($mpn) { $this->mpn = $mpn; @@ -3589,7 +3484,6 @@ public function getMpn() { return $this->mpn; } - public function setMultipack($multipack) { $this->multipack = $multipack; @@ -3599,7 +3493,6 @@ public function getMultipack() { return $this->multipack; } - public function setOfferId($offerId) { $this->offerId = $offerId; @@ -3609,7 +3502,6 @@ public function getOfferId() { return $this->offerId; } - public function setOnlineOnly($onlineOnly) { $this->onlineOnly = $onlineOnly; @@ -3619,7 +3511,6 @@ public function getOnlineOnly() { return $this->onlineOnly; } - public function setPattern($pattern) { $this->pattern = $pattern; @@ -3629,7 +3520,6 @@ public function getPattern() { return $this->pattern; } - public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -3639,7 +3529,6 @@ public function getPrice() { return $this->price; } - public function setProductType($productType) { $this->productType = $productType; @@ -3649,7 +3538,6 @@ public function getProductType() { return $this->productType; } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; @@ -3659,7 +3547,6 @@ public function getSalePrice() { return $this->salePrice; } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; @@ -3669,7 +3556,6 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } - public function setShipping($shipping) { $this->shipping = $shipping; @@ -3679,7 +3565,6 @@ public function getShipping() { return $this->shipping; } - public function setShippingLabel($shippingLabel) { $this->shippingLabel = $shippingLabel; @@ -3689,7 +3574,6 @@ public function getShippingLabel() { return $this->shippingLabel; } - public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) { $this->shippingWeight = $shippingWeight; @@ -3699,7 +3583,6 @@ public function getShippingWeight() { return $this->shippingWeight; } - public function setSizeSystem($sizeSystem) { $this->sizeSystem = $sizeSystem; @@ -3709,7 +3592,6 @@ public function getSizeSystem() { return $this->sizeSystem; } - public function setSizeType($sizeType) { $this->sizeType = $sizeType; @@ -3719,7 +3601,6 @@ public function getSizeType() { return $this->sizeType; } - public function setSizes($sizes) { $this->sizes = $sizes; @@ -3729,7 +3610,6 @@ public function getSizes() { return $this->sizes; } - public function setTargetCountry($targetCountry) { $this->targetCountry = $targetCountry; @@ -3739,7 +3619,6 @@ public function getTargetCountry() { return $this->targetCountry; } - public function setTaxes($taxes) { $this->taxes = $taxes; @@ -3749,7 +3628,6 @@ public function getTaxes() { return $this->taxes; } - public function setTitle($title) { $this->title = $title; @@ -3759,7 +3637,6 @@ public function getTitle() { return $this->title; } - public function setUnitPricingBaseMeasure(Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure $unitPricingBaseMeasure) { $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; @@ -3769,7 +3646,6 @@ public function getUnitPricingBaseMeasure() { return $this->unitPricingBaseMeasure; } - public function setUnitPricingMeasure(Google_Service_ShoppingContent_ProductUnitPricingMeasure $unitPricingMeasure) { $this->unitPricingMeasure = $unitPricingMeasure; @@ -3779,7 +3655,6 @@ public function getUnitPricingMeasure() { return $this->unitPricingMeasure; } - public function setValidatedDestinations($validatedDestinations) { $this->validatedDestinations = $validatedDestinations; @@ -3789,7 +3664,6 @@ public function getValidatedDestinations() { return $this->validatedDestinations; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -3799,6 +3673,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model @@ -3819,7 +3694,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -3829,7 +3703,6 @@ public function getType() { return $this->type; } - public function setUnit($unit) { $this->unit = $unit; @@ -3839,7 +3712,6 @@ public function getUnit() { return $this->unit; } - public function setValue($value) { $this->value = $value; @@ -3849,6 +3721,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection @@ -3869,7 +3742,6 @@ public function getAttributes() { return $this->attributes; } - public function setName($name) { $this->name = $name; @@ -3879,6 +3751,7 @@ public function getName() { return $this->name; } + } class Google_Service_ShoppingContent_ProductDestination extends Google_Model @@ -3897,7 +3770,6 @@ public function getDestinationName() { return $this->destinationName; } - public function setIntention($intention) { $this->intention = $intention; @@ -3907,6 +3779,7 @@ public function getIntention() { return $this->intention; } + } class Google_Service_ShoppingContent_ProductInstallment extends Google_Model @@ -3926,7 +3799,6 @@ public function getAmount() { return $this->amount; } - public function setMonths($months) { $this->months = $months; @@ -3936,6 +3808,7 @@ public function getMonths() { return $this->months; } + } class Google_Service_ShoppingContent_ProductShipping extends Google_Model @@ -3960,7 +3833,6 @@ public function getCountry() { return $this->country; } - public function setLocationGroupName($locationGroupName) { $this->locationGroupName = $locationGroupName; @@ -3970,7 +3842,6 @@ public function getLocationGroupName() { return $this->locationGroupName; } - public function setLocationId($locationId) { $this->locationId = $locationId; @@ -3980,7 +3851,6 @@ public function getLocationId() { return $this->locationId; } - public function setPostalCode($postalCode) { $this->postalCode = $postalCode; @@ -3990,7 +3860,6 @@ public function getPostalCode() { return $this->postalCode; } - public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -4000,7 +3869,6 @@ public function getPrice() { return $this->price; } - public function setRegion($region) { $this->region = $region; @@ -4010,7 +3878,6 @@ public function getRegion() { return $this->region; } - public function setService($service) { $this->service = $service; @@ -4020,6 +3887,7 @@ public function getService() { return $this->service; } + } class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model @@ -4038,7 +3906,6 @@ public function getUnit() { return $this->unit; } - public function setValue($value) { $this->value = $value; @@ -4048,6 +3915,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_ProductStatus extends Google_Collection @@ -4073,7 +3941,6 @@ public function getDataQualityIssues() { return $this->dataQualityIssues; } - public function setDestinationStatuses($destinationStatuses) { $this->destinationStatuses = $destinationStatuses; @@ -4083,7 +3950,6 @@ public function getDestinationStatuses() { return $this->destinationStatuses; } - public function setKind($kind) { $this->kind = $kind; @@ -4093,7 +3959,6 @@ public function getKind() { return $this->kind; } - public function setLink($link) { $this->link = $link; @@ -4103,7 +3968,6 @@ public function getLink() { return $this->link; } - public function setProductId($productId) { $this->productId = $productId; @@ -4113,7 +3977,6 @@ public function getProductId() { return $this->productId; } - public function setTitle($title) { $this->title = $title; @@ -4123,6 +3986,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model @@ -4146,7 +4010,6 @@ public function getDetail() { return $this->detail; } - public function setFetchStatus($fetchStatus) { $this->fetchStatus = $fetchStatus; @@ -4156,7 +4019,6 @@ public function getFetchStatus() { return $this->fetchStatus; } - public function setId($id) { $this->id = $id; @@ -4166,7 +4028,6 @@ public function getId() { return $this->id; } - public function setLocation($location) { $this->location = $location; @@ -4176,7 +4037,6 @@ public function getLocation() { return $this->location; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -4186,7 +4046,6 @@ public function getTimestamp() { return $this->timestamp; } - public function setValueOnLandingPage($valueOnLandingPage) { $this->valueOnLandingPage = $valueOnLandingPage; @@ -4196,7 +4055,6 @@ public function getValueOnLandingPage() { return $this->valueOnLandingPage; } - public function setValueProvided($valueProvided) { $this->valueProvided = $valueProvided; @@ -4206,6 +4064,7 @@ public function getValueProvided() { return $this->valueProvided; } + } class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model @@ -4225,7 +4084,6 @@ public function getApprovalStatus() { return $this->approvalStatus; } - public function setDestination($destination) { $this->destination = $destination; @@ -4235,7 +4093,6 @@ public function getDestination() { return $this->destination; } - public function setIntention($intention) { $this->intention = $intention; @@ -4245,6 +4102,7 @@ public function getIntention() { return $this->intention; } + } class Google_Service_ShoppingContent_ProductTax extends Google_Model @@ -4267,7 +4125,6 @@ public function getCountry() { return $this->country; } - public function setLocationId($locationId) { $this->locationId = $locationId; @@ -4277,7 +4134,6 @@ public function getLocationId() { return $this->locationId; } - public function setPostalCode($postalCode) { $this->postalCode = $postalCode; @@ -4287,7 +4143,6 @@ public function getPostalCode() { return $this->postalCode; } - public function setRate($rate) { $this->rate = $rate; @@ -4297,7 +4152,6 @@ public function getRate() { return $this->rate; } - public function setRegion($region) { $this->region = $region; @@ -4307,7 +4161,6 @@ public function getRegion() { return $this->region; } - public function setTaxShip($taxShip) { $this->taxShip = $taxShip; @@ -4317,6 +4170,7 @@ public function getTaxShip() { return $this->taxShip; } + } class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model @@ -4335,7 +4189,6 @@ public function getUnit() { return $this->unit; } - public function setValue($value) { $this->value = $value; @@ -4345,6 +4198,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model @@ -4363,7 +4217,6 @@ public function getUnit() { return $this->unit; } - public function setValue($value) { $this->value = $value; @@ -4373,6 +4226,7 @@ public function getValue() { return $this->value; } + } class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection @@ -4392,6 +4246,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model @@ -4414,7 +4269,6 @@ public function getBatchId() { return $this->batchId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -4424,7 +4278,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -4434,7 +4287,6 @@ public function getMethod() { return $this->method; } - public function setProduct(Google_Service_ShoppingContent_Product $product) { $this->product = $product; @@ -4444,7 +4296,6 @@ public function getProduct() { return $this->product; } - public function setProductId($productId) { $this->productId = $productId; @@ -4454,6 +4305,7 @@ public function getProductId() { return $this->productId; } + } class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection @@ -4474,7 +4326,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -4484,6 +4335,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model @@ -4506,7 +4358,6 @@ public function getBatchId() { return $this->batchId; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -4516,7 +4367,6 @@ public function getErrors() { return $this->errors; } - public function setKind($kind) { $this->kind = $kind; @@ -4526,7 +4376,6 @@ public function getKind() { return $this->kind; } - public function setProduct(Google_Service_ShoppingContent_Product $product) { $this->product = $product; @@ -4536,6 +4385,7 @@ public function getProduct() { return $this->product; } + } class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection @@ -4557,7 +4407,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4567,7 +4416,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -4577,6 +4425,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection @@ -4596,6 +4445,7 @@ public function getEntries() { return $this->entries; } + } class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model @@ -4616,7 +4466,6 @@ public function getBatchId() { return $this->batchId; } - public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -4626,7 +4475,6 @@ public function getMerchantId() { return $this->merchantId; } - public function setMethod($method) { $this->method = $method; @@ -4636,7 +4484,6 @@ public function getMethod() { return $this->method; } - public function setProductId($productId) { $this->productId = $productId; @@ -4646,6 +4493,7 @@ public function getProductId() { return $this->productId; } + } class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection @@ -4666,7 +4514,6 @@ public function getEntries() { return $this->entries; } - public function setKind($kind) { $this->kind = $kind; @@ -4676,6 +4523,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model @@ -4698,7 +4546,6 @@ public function getBatchId() { return $this->batchId; } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; @@ -4708,7 +4555,6 @@ public function getErrors() { return $this->errors; } - public function setKind($kind) { $this->kind = $kind; @@ -4718,7 +4564,6 @@ public function getKind() { return $this->kind; } - public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus) { $this->productStatus = $productStatus; @@ -4728,6 +4573,7 @@ public function getProductStatus() { return $this->productStatus; } + } class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection @@ -4749,7 +4595,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4759,7 +4604,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -4769,4 +4613,5 @@ public function getResources() { return $this->resources; } + } From 9d5e14241a1965a716eaf726b3ac5c51d946f4f4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:49 -0700 Subject: [PATCH 0371/1274] Updated Tagmanager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tagmanager.php | 133 ++++++------------------------ 1 file changed, 26 insertions(+), 107 deletions(-) diff --git a/src/Google/Service/Tagmanager.php b/src/Google/Service/Tagmanager.php index c0fe4d0e0..cb4452d06 100644 --- a/src/Google/Service/Tagmanager.php +++ b/src/Google/Service/Tagmanager.php @@ -1900,7 +1900,6 @@ public function getAccountId() { return $this->accountId; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -1910,7 +1909,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setName($name) { $this->name = $name; @@ -1920,7 +1918,6 @@ public function getName() { return $this->name; } - public function setShareData($shareData) { $this->shareData = $shareData; @@ -1930,6 +1927,7 @@ public function getShareData() { return $this->shareData; } + } class Google_Service_Tagmanager_AccountAccess extends Google_Collection @@ -1948,6 +1946,7 @@ public function getPermission() { return $this->permission; } + } class Google_Service_Tagmanager_Condition extends Google_Collection @@ -1968,7 +1967,6 @@ public function getParameter() { return $this->parameter; } - public function setType($type) { $this->type = $type; @@ -1978,6 +1976,7 @@ public function getType() { return $this->type; } + } class Google_Service_Tagmanager_Container extends Google_Collection @@ -2005,7 +2004,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -2015,7 +2013,6 @@ public function getContainerId() { return $this->containerId; } - public function setDomainName($domainName) { $this->domainName = $domainName; @@ -2025,7 +2022,6 @@ public function getDomainName() { return $this->domainName; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -2035,7 +2031,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setName($name) { $this->name = $name; @@ -2045,7 +2040,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -2055,7 +2049,6 @@ public function getNotes() { return $this->notes; } - public function setPublicId($publicId) { $this->publicId = $publicId; @@ -2065,7 +2058,6 @@ public function getPublicId() { return $this->publicId; } - public function setTimeZoneCountryId($timeZoneCountryId) { $this->timeZoneCountryId = $timeZoneCountryId; @@ -2075,7 +2067,6 @@ public function getTimeZoneCountryId() { return $this->timeZoneCountryId; } - public function setTimeZoneId($timeZoneId) { $this->timeZoneId = $timeZoneId; @@ -2085,7 +2076,6 @@ public function getTimeZoneId() { return $this->timeZoneId; } - public function setUsageContext($usageContext) { $this->usageContext = $usageContext; @@ -2095,6 +2085,7 @@ public function getUsageContext() { return $this->usageContext; } + } class Google_Service_Tagmanager_ContainerAccess extends Google_Collection @@ -2114,7 +2105,6 @@ public function getContainerId() { return $this->containerId; } - public function setPermission($permission) { $this->permission = $permission; @@ -2124,6 +2114,7 @@ public function getPermission() { return $this->permission; } + } class Google_Service_Tagmanager_ContainerVersion extends Google_Collection @@ -2158,7 +2149,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainer(Google_Service_Tagmanager_Container $container) { $this->container = $container; @@ -2168,7 +2158,6 @@ public function getContainer() { return $this->container; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -2178,7 +2167,6 @@ public function getContainerId() { return $this->containerId; } - public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; @@ -2188,7 +2176,6 @@ public function getContainerVersionId() { return $this->containerVersionId; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -2198,7 +2185,6 @@ public function getDeleted() { return $this->deleted; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -2208,7 +2194,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setMacro($macro) { $this->macro = $macro; @@ -2218,7 +2203,6 @@ public function getMacro() { return $this->macro; } - public function setName($name) { $this->name = $name; @@ -2228,7 +2212,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -2238,7 +2221,6 @@ public function getNotes() { return $this->notes; } - public function setRule($rule) { $this->rule = $rule; @@ -2248,7 +2230,6 @@ public function getRule() { return $this->rule; } - public function setTag($tag) { $this->tag = $tag; @@ -2258,7 +2239,6 @@ public function getTag() { return $this->tag; } - public function setTrigger($trigger) { $this->trigger = $trigger; @@ -2268,6 +2248,7 @@ public function getTrigger() { return $this->trigger; } + } class Google_Service_Tagmanager_ContainerVersionHeader extends Google_Model @@ -2293,7 +2274,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -2303,7 +2283,6 @@ public function getContainerId() { return $this->containerId; } - public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; @@ -2313,7 +2292,6 @@ public function getContainerVersionId() { return $this->containerVersionId; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -2323,7 +2301,6 @@ public function getDeleted() { return $this->deleted; } - public function setName($name) { $this->name = $name; @@ -2333,7 +2310,6 @@ public function getName() { return $this->name; } - public function setNumMacros($numMacros) { $this->numMacros = $numMacros; @@ -2343,7 +2319,6 @@ public function getNumMacros() { return $this->numMacros; } - public function setNumRules($numRules) { $this->numRules = $numRules; @@ -2353,7 +2328,6 @@ public function getNumRules() { return $this->numRules; } - public function setNumTags($numTags) { $this->numTags = $numTags; @@ -2363,7 +2337,6 @@ public function getNumTags() { return $this->numTags; } - public function setNumTriggers($numTriggers) { $this->numTriggers = $numTriggers; @@ -2373,6 +2346,7 @@ public function getNumTriggers() { return $this->numTriggers; } + } class Google_Service_Tagmanager_CreateContainerVersionRequestVersionOptions extends Google_Model @@ -2392,7 +2366,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -2402,7 +2375,6 @@ public function getNotes() { return $this->notes; } - public function setQuickPreview($quickPreview) { $this->quickPreview = $quickPreview; @@ -2412,6 +2384,7 @@ public function getQuickPreview() { return $this->quickPreview; } + } class Google_Service_Tagmanager_CreateContainerVersionResponse extends Google_Model @@ -2431,7 +2404,6 @@ public function getCompilerError() { return $this->compilerError; } - public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) { $this->containerVersion = $containerVersion; @@ -2441,6 +2413,7 @@ public function getContainerVersion() { return $this->containerVersion; } + } class Google_Service_Tagmanager_ListAccountUsersResponse extends Google_Collection @@ -2460,6 +2433,7 @@ public function getUserAccess() { return $this->userAccess; } + } class Google_Service_Tagmanager_ListAccountsResponse extends Google_Collection @@ -2479,6 +2453,7 @@ public function getAccounts() { return $this->accounts; } + } class Google_Service_Tagmanager_ListContainerVersionsResponse extends Google_Collection @@ -2500,7 +2475,6 @@ public function getContainerVersion() { return $this->containerVersion; } - public function setContainerVersionHeader($containerVersionHeader) { $this->containerVersionHeader = $containerVersionHeader; @@ -2510,6 +2484,7 @@ public function getContainerVersionHeader() { return $this->containerVersionHeader; } + } class Google_Service_Tagmanager_ListContainersResponse extends Google_Collection @@ -2529,6 +2504,7 @@ public function getContainers() { return $this->containers; } + } class Google_Service_Tagmanager_ListMacrosResponse extends Google_Collection @@ -2548,6 +2524,7 @@ public function getMacros() { return $this->macros; } + } class Google_Service_Tagmanager_ListRulesResponse extends Google_Collection @@ -2567,6 +2544,7 @@ public function getRules() { return $this->rules; } + } class Google_Service_Tagmanager_ListTagsResponse extends Google_Collection @@ -2586,6 +2564,7 @@ public function getTags() { return $this->tags; } + } class Google_Service_Tagmanager_ListTriggersResponse extends Google_Collection @@ -2605,6 +2584,7 @@ public function getTriggers() { return $this->triggers; } + } class Google_Service_Tagmanager_ListVariablesResponse extends Google_Collection @@ -2624,6 +2604,7 @@ public function getVariables() { return $this->variables; } + } class Google_Service_Tagmanager_Macro extends Google_Collection @@ -2654,7 +2635,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -2664,7 +2644,6 @@ public function getContainerId() { return $this->containerId; } - public function setDisablingRuleId($disablingRuleId) { $this->disablingRuleId = $disablingRuleId; @@ -2674,7 +2653,6 @@ public function getDisablingRuleId() { return $this->disablingRuleId; } - public function setEnablingRuleId($enablingRuleId) { $this->enablingRuleId = $enablingRuleId; @@ -2684,7 +2662,6 @@ public function getEnablingRuleId() { return $this->enablingRuleId; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -2694,7 +2671,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setMacroId($macroId) { $this->macroId = $macroId; @@ -2704,7 +2680,6 @@ public function getMacroId() { return $this->macroId; } - public function setName($name) { $this->name = $name; @@ -2714,7 +2689,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -2724,7 +2698,6 @@ public function getNotes() { return $this->notes; } - public function setParameter($parameter) { $this->parameter = $parameter; @@ -2734,7 +2707,6 @@ public function getParameter() { return $this->parameter; } - public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; @@ -2744,7 +2716,6 @@ public function getScheduleEndMs() { return $this->scheduleEndMs; } - public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; @@ -2754,7 +2725,6 @@ public function getScheduleStartMs() { return $this->scheduleStartMs; } - public function setType($type) { $this->type = $type; @@ -2764,6 +2734,7 @@ public function getType() { return $this->type; } + } class Google_Service_Tagmanager_Parameter extends Google_Collection @@ -2788,7 +2759,6 @@ public function getKey() { return $this->key; } - public function setList($list) { $this->list = $list; @@ -2798,7 +2768,6 @@ public function getList() { return $this->list; } - public function setMap($map) { $this->map = $map; @@ -2808,7 +2777,6 @@ public function getMap() { return $this->map; } - public function setType($type) { $this->type = $type; @@ -2818,7 +2786,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -2828,6 +2795,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Tagmanager_PublishContainerVersionResponse extends Google_Model @@ -2847,7 +2815,6 @@ public function getCompilerError() { return $this->compilerError; } - public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) { $this->containerVersion = $containerVersion; @@ -2857,6 +2824,7 @@ public function getContainerVersion() { return $this->containerVersion; } + } class Google_Service_Tagmanager_Rule extends Google_Collection @@ -2882,7 +2850,6 @@ public function getAccountId() { return $this->accountId; } - public function setCondition($condition) { $this->condition = $condition; @@ -2892,7 +2859,6 @@ public function getCondition() { return $this->condition; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -2902,7 +2868,6 @@ public function getContainerId() { return $this->containerId; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -2912,7 +2877,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setName($name) { $this->name = $name; @@ -2922,7 +2886,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -2932,7 +2895,6 @@ public function getNotes() { return $this->notes; } - public function setRuleId($ruleId) { $this->ruleId = $ruleId; @@ -2942,6 +2904,7 @@ public function getRuleId() { return $this->ruleId; } + } class Google_Service_Tagmanager_Tag extends Google_Collection @@ -2979,7 +2942,6 @@ public function getAccountId() { return $this->accountId; } - public function setBlockingRuleId($blockingRuleId) { $this->blockingRuleId = $blockingRuleId; @@ -2989,7 +2951,6 @@ public function getBlockingRuleId() { return $this->blockingRuleId; } - public function setBlockingTriggerId($blockingTriggerId) { $this->blockingTriggerId = $blockingTriggerId; @@ -2999,7 +2960,6 @@ public function getBlockingTriggerId() { return $this->blockingTriggerId; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -3009,7 +2969,6 @@ public function getContainerId() { return $this->containerId; } - public function setDependencies(Google_Service_Tagmanager_Parameter $dependencies) { $this->dependencies = $dependencies; @@ -3019,7 +2978,6 @@ public function getDependencies() { return $this->dependencies; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -3029,7 +2987,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setFiringRuleId($firingRuleId) { $this->firingRuleId = $firingRuleId; @@ -3039,7 +2996,6 @@ public function getFiringRuleId() { return $this->firingRuleId; } - public function setFiringTriggerId($firingTriggerId) { $this->firingTriggerId = $firingTriggerId; @@ -3049,7 +3005,6 @@ public function getFiringTriggerId() { return $this->firingTriggerId; } - public function setLiveOnly($liveOnly) { $this->liveOnly = $liveOnly; @@ -3059,7 +3014,6 @@ public function getLiveOnly() { return $this->liveOnly; } - public function setName($name) { $this->name = $name; @@ -3069,7 +3023,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -3079,7 +3032,6 @@ public function getNotes() { return $this->notes; } - public function setParameter($parameter) { $this->parameter = $parameter; @@ -3089,7 +3041,6 @@ public function getParameter() { return $this->parameter; } - public function setPriority(Google_Service_Tagmanager_Parameter $priority) { $this->priority = $priority; @@ -3099,7 +3050,6 @@ public function getPriority() { return $this->priority; } - public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; @@ -3109,7 +3059,6 @@ public function getScheduleEndMs() { return $this->scheduleEndMs; } - public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; @@ -3119,7 +3068,6 @@ public function getScheduleStartMs() { return $this->scheduleStartMs; } - public function setTagId($tagId) { $this->tagId = $tagId; @@ -3129,7 +3077,6 @@ public function getTagId() { return $this->tagId; } - public function setType($type) { $this->type = $type; @@ -3139,6 +3086,7 @@ public function getType() { return $this->type; } + } class Google_Service_Tagmanager_Trigger extends Google_Collection @@ -3186,7 +3134,6 @@ public function getAccountId() { return $this->accountId; } - public function setAutoEventFilter($autoEventFilter) { $this->autoEventFilter = $autoEventFilter; @@ -3196,7 +3143,6 @@ public function getAutoEventFilter() { return $this->autoEventFilter; } - public function setCheckValidation(Google_Service_Tagmanager_Parameter $checkValidation) { $this->checkValidation = $checkValidation; @@ -3206,7 +3152,6 @@ public function getCheckValidation() { return $this->checkValidation; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -3216,7 +3161,6 @@ public function getContainerId() { return $this->containerId; } - public function setCustomEventFilter($customEventFilter) { $this->customEventFilter = $customEventFilter; @@ -3226,7 +3170,6 @@ public function getCustomEventFilter() { return $this->customEventFilter; } - public function setEnableAllVideos(Google_Service_Tagmanager_Parameter $enableAllVideos) { $this->enableAllVideos = $enableAllVideos; @@ -3236,7 +3179,6 @@ public function getEnableAllVideos() { return $this->enableAllVideos; } - public function setEventName(Google_Service_Tagmanager_Parameter $eventName) { $this->eventName = $eventName; @@ -3246,7 +3188,6 @@ public function getEventName() { return $this->eventName; } - public function setFilter($filter) { $this->filter = $filter; @@ -3256,7 +3197,6 @@ public function getFilter() { return $this->filter; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -3266,7 +3206,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setInterval(Google_Service_Tagmanager_Parameter $interval) { $this->interval = $interval; @@ -3276,7 +3215,6 @@ public function getInterval() { return $this->interval; } - public function setLimit(Google_Service_Tagmanager_Parameter $limit) { $this->limit = $limit; @@ -3286,7 +3224,6 @@ public function getLimit() { return $this->limit; } - public function setName($name) { $this->name = $name; @@ -3296,7 +3233,6 @@ public function getName() { return $this->name; } - public function setTriggerId($triggerId) { $this->triggerId = $triggerId; @@ -3306,7 +3242,6 @@ public function getTriggerId() { return $this->triggerId; } - public function setType($type) { $this->type = $type; @@ -3316,7 +3251,6 @@ public function getType() { return $this->type; } - public function setUniqueTriggerId(Google_Service_Tagmanager_Parameter $uniqueTriggerId) { $this->uniqueTriggerId = $uniqueTriggerId; @@ -3326,7 +3260,6 @@ public function getUniqueTriggerId() { return $this->uniqueTriggerId; } - public function setVideoPercentageList(Google_Service_Tagmanager_Parameter $videoPercentageList) { $this->videoPercentageList = $videoPercentageList; @@ -3336,7 +3269,6 @@ public function getVideoPercentageList() { return $this->videoPercentageList; } - public function setWaitForTags(Google_Service_Tagmanager_Parameter $waitForTags) { $this->waitForTags = $waitForTags; @@ -3346,7 +3278,6 @@ public function getWaitForTags() { return $this->waitForTags; } - public function setWaitForTagsTimeout(Google_Service_Tagmanager_Parameter $waitForTagsTimeout) { $this->waitForTagsTimeout = $waitForTagsTimeout; @@ -3356,6 +3287,7 @@ public function getWaitForTagsTimeout() { return $this->waitForTagsTimeout; } + } class Google_Service_Tagmanager_UserAccess extends Google_Collection @@ -3380,7 +3312,6 @@ public function getAccountAccess() { return $this->accountAccess; } - public function setAccountId($accountId) { $this->accountId = $accountId; @@ -3390,7 +3321,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainerAccess($containerAccess) { $this->containerAccess = $containerAccess; @@ -3400,7 +3330,6 @@ public function getContainerAccess() { return $this->containerAccess; } - public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; @@ -3410,7 +3339,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setPermissionId($permissionId) { $this->permissionId = $permissionId; @@ -3420,6 +3348,7 @@ public function getPermissionId() { return $this->permissionId; } + } class Google_Service_Tagmanager_Variable extends Google_Collection @@ -3450,7 +3379,6 @@ public function getAccountId() { return $this->accountId; } - public function setContainerId($containerId) { $this->containerId = $containerId; @@ -3460,7 +3388,6 @@ public function getContainerId() { return $this->containerId; } - public function setDisablingTriggerId($disablingTriggerId) { $this->disablingTriggerId = $disablingTriggerId; @@ -3470,7 +3397,6 @@ public function getDisablingTriggerId() { return $this->disablingTriggerId; } - public function setEnablingTriggerId($enablingTriggerId) { $this->enablingTriggerId = $enablingTriggerId; @@ -3480,7 +3406,6 @@ public function getEnablingTriggerId() { return $this->enablingTriggerId; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -3490,7 +3415,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setName($name) { $this->name = $name; @@ -3500,7 +3424,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -3510,7 +3433,6 @@ public function getNotes() { return $this->notes; } - public function setParameter($parameter) { $this->parameter = $parameter; @@ -3520,7 +3442,6 @@ public function getParameter() { return $this->parameter; } - public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; @@ -3530,7 +3451,6 @@ public function getScheduleEndMs() { return $this->scheduleEndMs; } - public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; @@ -3540,7 +3460,6 @@ public function getScheduleStartMs() { return $this->scheduleStartMs; } - public function setType($type) { $this->type = $type; @@ -3550,7 +3469,6 @@ public function getType() { return $this->type; } - public function setVariableId($variableId) { $this->variableId = $variableId; @@ -3560,4 +3478,5 @@ public function getVariableId() { return $this->variableId; } + } From f33b4942252d728177f8891ff85478202b2f2953 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:50 -0700 Subject: [PATCH 0372/1274] Updated Tasks.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tasks.php | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php index eacd00748..5d84ba47e 100644 --- a/src/Google/Service/Tasks.php +++ b/src/Google/Service/Tasks.php @@ -613,7 +613,6 @@ public function getCompleted() { return $this->completed; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -623,7 +622,6 @@ public function getDeleted() { return $this->deleted; } - public function setDue($due) { $this->due = $due; @@ -633,7 +631,6 @@ public function getDue() { return $this->due; } - public function setEtag($etag) { $this->etag = $etag; @@ -643,7 +640,6 @@ public function getEtag() { return $this->etag; } - public function setHidden($hidden) { $this->hidden = $hidden; @@ -653,7 +649,6 @@ public function getHidden() { return $this->hidden; } - public function setId($id) { $this->id = $id; @@ -663,7 +658,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -673,7 +667,6 @@ public function getKind() { return $this->kind; } - public function setLinks($links) { $this->links = $links; @@ -683,7 +676,6 @@ public function getLinks() { return $this->links; } - public function setNotes($notes) { $this->notes = $notes; @@ -693,7 +685,6 @@ public function getNotes() { return $this->notes; } - public function setParent($parent) { $this->parent = $parent; @@ -703,7 +694,6 @@ public function getParent() { return $this->parent; } - public function setPosition($position) { $this->position = $position; @@ -713,7 +703,6 @@ public function getPosition() { return $this->position; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -723,7 +712,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -733,7 +721,6 @@ public function getStatus() { return $this->status; } - public function setTitle($title) { $this->title = $title; @@ -743,7 +730,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -753,6 +739,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Tasks_TaskLinks extends Google_Model @@ -772,7 +759,6 @@ public function getDescription() { return $this->description; } - public function setLink($link) { $this->link = $link; @@ -782,7 +768,6 @@ public function getLink() { return $this->link; } - public function setType($type) { $this->type = $type; @@ -792,6 +777,7 @@ public function getType() { return $this->type; } + } class Google_Service_Tasks_TaskList extends Google_Model @@ -814,7 +800,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -824,7 +809,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -834,7 +818,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -844,7 +827,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -854,7 +836,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -864,6 +845,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Tasks_TaskLists extends Google_Collection @@ -886,7 +868,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -896,7 +877,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -906,7 +886,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -916,6 +895,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Tasks_Tasks extends Google_Collection @@ -938,7 +918,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -948,7 +927,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -958,7 +936,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -968,4 +945,5 @@ public function getNextPageToken() { return $this->nextPageToken; } + } From e99c16f53f248ae2f9d870701a53df3630db71f3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:50 -0700 Subject: [PATCH 0373/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 318 +++++++---------------------------- 1 file changed, 60 insertions(+), 258 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 291a60912..865c2522b 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -470,6 +470,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'acknowledgeAbuse' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'updateViewedDate' => array( 'location' => 'query', 'type' => 'boolean', @@ -696,6 +700,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'acknowledgeAbuse' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'updateViewedDate' => array( 'location' => 'query', 'type' => 'boolean', @@ -1716,6 +1724,8 @@ public function emptyTrash($optParams = array()) * The ID for the file in question. * @param array $optParams Optional parameters. * + * @opt_param bool acknowledgeAbuse + * Whether the user is acknowledging the risk of downloading known malware or other abusive files. * @opt_param bool updateViewedDate * Whether to update the view date after successfully retrieving the file. * @opt_param string projection @@ -1917,6 +1927,8 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa * @param Google_Channel $postBody * @param array $optParams Optional parameters. * + * @opt_param bool acknowledgeAbuse + * Whether the user is acknowledging the risk of downloading known malware or other abusive files. * @opt_param bool updateViewedDate * Whether to update the view date after successfully retrieving the file. * @opt_param string projection @@ -2580,7 +2592,6 @@ public function getAdditionalRoleInfo() { return $this->additionalRoleInfo; } - public function setDomainSharingPolicy($domainSharingPolicy) { $this->domainSharingPolicy = $domainSharingPolicy; @@ -2590,7 +2601,6 @@ public function getDomainSharingPolicy() { return $this->domainSharingPolicy; } - public function setEtag($etag) { $this->etag = $etag; @@ -2600,7 +2610,6 @@ public function getEtag() { return $this->etag; } - public function setExportFormats($exportFormats) { $this->exportFormats = $exportFormats; @@ -2610,7 +2619,6 @@ public function getExportFormats() { return $this->exportFormats; } - public function setFeatures($features) { $this->features = $features; @@ -2620,7 +2628,6 @@ public function getFeatures() { return $this->features; } - public function setImportFormats($importFormats) { $this->importFormats = $importFormats; @@ -2630,7 +2637,6 @@ public function getImportFormats() { return $this->importFormats; } - public function setIsCurrentAppInstalled($isCurrentAppInstalled) { $this->isCurrentAppInstalled = $isCurrentAppInstalled; @@ -2640,7 +2646,6 @@ public function getIsCurrentAppInstalled() { return $this->isCurrentAppInstalled; } - public function setKind($kind) { $this->kind = $kind; @@ -2650,7 +2655,6 @@ public function getKind() { return $this->kind; } - public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; @@ -2660,7 +2664,6 @@ public function getLanguageCode() { return $this->languageCode; } - public function setLargestChangeId($largestChangeId) { $this->largestChangeId = $largestChangeId; @@ -2670,7 +2673,6 @@ public function getLargestChangeId() { return $this->largestChangeId; } - public function setMaxUploadSizes($maxUploadSizes) { $this->maxUploadSizes = $maxUploadSizes; @@ -2680,7 +2682,6 @@ public function getMaxUploadSizes() { return $this->maxUploadSizes; } - public function setName($name) { $this->name = $name; @@ -2690,7 +2691,6 @@ public function getName() { return $this->name; } - public function setPermissionId($permissionId) { $this->permissionId = $permissionId; @@ -2700,7 +2700,6 @@ public function getPermissionId() { return $this->permissionId; } - public function setQuotaBytesByService($quotaBytesByService) { $this->quotaBytesByService = $quotaBytesByService; @@ -2710,7 +2709,6 @@ public function getQuotaBytesByService() { return $this->quotaBytesByService; } - public function setQuotaBytesTotal($quotaBytesTotal) { $this->quotaBytesTotal = $quotaBytesTotal; @@ -2720,7 +2718,6 @@ public function getQuotaBytesTotal() { return $this->quotaBytesTotal; } - public function setQuotaBytesUsed($quotaBytesUsed) { $this->quotaBytesUsed = $quotaBytesUsed; @@ -2730,7 +2727,6 @@ public function getQuotaBytesUsed() { return $this->quotaBytesUsed; } - public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) { $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; @@ -2740,7 +2736,6 @@ public function getQuotaBytesUsedAggregate() { return $this->quotaBytesUsedAggregate; } - public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) { $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; @@ -2750,7 +2745,6 @@ public function getQuotaBytesUsedInTrash() { return $this->quotaBytesUsedInTrash; } - public function setQuotaType($quotaType) { $this->quotaType = $quotaType; @@ -2760,7 +2754,6 @@ public function getQuotaType() { return $this->quotaType; } - public function setRemainingChangeIds($remainingChangeIds) { $this->remainingChangeIds = $remainingChangeIds; @@ -2770,7 +2763,6 @@ public function getRemainingChangeIds() { return $this->remainingChangeIds; } - public function setRootFolderId($rootFolderId) { $this->rootFolderId = $rootFolderId; @@ -2780,7 +2772,6 @@ public function getRootFolderId() { return $this->rootFolderId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2790,7 +2781,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUser(Google_Service_Drive_User $user) { $this->user = $user; @@ -2800,6 +2790,7 @@ public function getUser() { return $this->user; } + } class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection @@ -2820,7 +2811,6 @@ public function getRoleSets() { return $this->roleSets; } - public function setType($type) { $this->type = $type; @@ -2830,6 +2820,7 @@ public function getType() { return $this->type; } + } class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection @@ -2849,7 +2840,6 @@ public function getAdditionalRoles() { return $this->additionalRoles; } - public function setPrimaryRole($primaryRole) { $this->primaryRole = $primaryRole; @@ -2859,6 +2849,7 @@ public function getPrimaryRole() { return $this->primaryRole; } + } class Google_Service_Drive_AboutExportFormats extends Google_Collection @@ -2878,7 +2869,6 @@ public function getSource() { return $this->source; } - public function setTargets($targets) { $this->targets = $targets; @@ -2888,6 +2878,7 @@ public function getTargets() { return $this->targets; } + } class Google_Service_Drive_AboutFeatures extends Google_Model @@ -2906,7 +2897,6 @@ public function getFeatureName() { return $this->featureName; } - public function setFeatureRate($featureRate) { $this->featureRate = $featureRate; @@ -2916,6 +2906,7 @@ public function getFeatureRate() { return $this->featureRate; } + } class Google_Service_Drive_AboutImportFormats extends Google_Collection @@ -2935,7 +2926,6 @@ public function getSource() { return $this->source; } - public function setTargets($targets) { $this->targets = $targets; @@ -2945,6 +2935,7 @@ public function getTargets() { return $this->targets; } + } class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model @@ -2963,7 +2954,6 @@ public function getSize() { return $this->size; } - public function setType($type) { $this->type = $type; @@ -2973,6 +2963,7 @@ public function getType() { return $this->type; } + } class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model @@ -2991,7 +2982,6 @@ public function getBytesUsed() { return $this->bytesUsed; } - public function setServiceName($serviceName) { $this->serviceName = $serviceName; @@ -3001,6 +2991,7 @@ public function getServiceName() { return $this->serviceName; } + } class Google_Service_Drive_App extends Google_Collection @@ -3043,7 +3034,6 @@ public function getAuthorized() { return $this->authorized; } - public function setCreateInFolderTemplate($createInFolderTemplate) { $this->createInFolderTemplate = $createInFolderTemplate; @@ -3053,7 +3043,6 @@ public function getCreateInFolderTemplate() { return $this->createInFolderTemplate; } - public function setCreateUrl($createUrl) { $this->createUrl = $createUrl; @@ -3063,7 +3052,6 @@ public function getCreateUrl() { return $this->createUrl; } - public function setHasDriveWideScope($hasDriveWideScope) { $this->hasDriveWideScope = $hasDriveWideScope; @@ -3073,7 +3061,6 @@ public function getHasDriveWideScope() { return $this->hasDriveWideScope; } - public function setIcons($icons) { $this->icons = $icons; @@ -3083,7 +3070,6 @@ public function getIcons() { return $this->icons; } - public function setId($id) { $this->id = $id; @@ -3093,7 +3079,6 @@ public function getId() { return $this->id; } - public function setInstalled($installed) { $this->installed = $installed; @@ -3103,7 +3088,6 @@ public function getInstalled() { return $this->installed; } - public function setKind($kind) { $this->kind = $kind; @@ -3113,7 +3097,6 @@ public function getKind() { return $this->kind; } - public function setLongDescription($longDescription) { $this->longDescription = $longDescription; @@ -3123,7 +3106,6 @@ public function getLongDescription() { return $this->longDescription; } - public function setName($name) { $this->name = $name; @@ -3133,7 +3115,6 @@ public function getName() { return $this->name; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -3143,7 +3124,6 @@ public function getObjectType() { return $this->objectType; } - public function setOpenUrlTemplate($openUrlTemplate) { $this->openUrlTemplate = $openUrlTemplate; @@ -3153,7 +3133,6 @@ public function getOpenUrlTemplate() { return $this->openUrlTemplate; } - public function setPrimaryFileExtensions($primaryFileExtensions) { $this->primaryFileExtensions = $primaryFileExtensions; @@ -3163,7 +3142,6 @@ public function getPrimaryFileExtensions() { return $this->primaryFileExtensions; } - public function setPrimaryMimeTypes($primaryMimeTypes) { $this->primaryMimeTypes = $primaryMimeTypes; @@ -3173,7 +3151,6 @@ public function getPrimaryMimeTypes() { return $this->primaryMimeTypes; } - public function setProductId($productId) { $this->productId = $productId; @@ -3183,7 +3160,6 @@ public function getProductId() { return $this->productId; } - public function setProductUrl($productUrl) { $this->productUrl = $productUrl; @@ -3193,7 +3169,6 @@ public function getProductUrl() { return $this->productUrl; } - public function setSecondaryFileExtensions($secondaryFileExtensions) { $this->secondaryFileExtensions = $secondaryFileExtensions; @@ -3203,7 +3178,6 @@ public function getSecondaryFileExtensions() { return $this->secondaryFileExtensions; } - public function setSecondaryMimeTypes($secondaryMimeTypes) { $this->secondaryMimeTypes = $secondaryMimeTypes; @@ -3213,7 +3187,6 @@ public function getSecondaryMimeTypes() { return $this->secondaryMimeTypes; } - public function setShortDescription($shortDescription) { $this->shortDescription = $shortDescription; @@ -3223,7 +3196,6 @@ public function getShortDescription() { return $this->shortDescription; } - public function setSupportsCreate($supportsCreate) { $this->supportsCreate = $supportsCreate; @@ -3233,7 +3205,6 @@ public function getSupportsCreate() { return $this->supportsCreate; } - public function setSupportsImport($supportsImport) { $this->supportsImport = $supportsImport; @@ -3243,7 +3214,6 @@ public function getSupportsImport() { return $this->supportsImport; } - public function setSupportsMultiOpen($supportsMultiOpen) { $this->supportsMultiOpen = $supportsMultiOpen; @@ -3253,7 +3223,6 @@ public function getSupportsMultiOpen() { return $this->supportsMultiOpen; } - public function setSupportsOfflineCreate($supportsOfflineCreate) { $this->supportsOfflineCreate = $supportsOfflineCreate; @@ -3263,7 +3232,6 @@ public function getSupportsOfflineCreate() { return $this->supportsOfflineCreate; } - public function setUseByDefault($useByDefault) { $this->useByDefault = $useByDefault; @@ -3273,6 +3241,7 @@ public function getUseByDefault() { return $this->useByDefault; } + } class Google_Service_Drive_AppIcons extends Google_Model @@ -3292,7 +3261,6 @@ public function getCategory() { return $this->category; } - public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; @@ -3302,7 +3270,6 @@ public function getIconUrl() { return $this->iconUrl; } - public function setSize($size) { $this->size = $size; @@ -3312,6 +3279,7 @@ public function getSize() { return $this->size; } + } class Google_Service_Drive_AppList extends Google_Collection @@ -3335,7 +3303,6 @@ public function getDefaultAppIds() { return $this->defaultAppIds; } - public function setEtag($etag) { $this->etag = $etag; @@ -3345,7 +3312,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3355,7 +3321,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3365,7 +3330,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3375,6 +3339,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Change extends Google_Model @@ -3399,7 +3364,6 @@ public function getDeleted() { return $this->deleted; } - public function setFile(Google_Service_Drive_DriveFile $file) { $this->file = $file; @@ -3409,7 +3373,6 @@ public function getFile() { return $this->file; } - public function setFileId($fileId) { $this->fileId = $fileId; @@ -3419,7 +3382,6 @@ public function getFileId() { return $this->fileId; } - public function setId($id) { $this->id = $id; @@ -3429,7 +3391,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3439,7 +3400,6 @@ public function getKind() { return $this->kind; } - public function setModificationDate($modificationDate) { $this->modificationDate = $modificationDate; @@ -3449,7 +3409,6 @@ public function getModificationDate() { return $this->modificationDate; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3459,6 +3418,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_ChangeList extends Google_Collection @@ -3484,7 +3444,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3494,7 +3453,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3504,7 +3462,6 @@ public function getKind() { return $this->kind; } - public function setLargestChangeId($largestChangeId) { $this->largestChangeId = $largestChangeId; @@ -3514,7 +3471,6 @@ public function getLargestChangeId() { return $this->largestChangeId; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -3524,7 +3480,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3534,7 +3489,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3544,6 +3498,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Channel extends Google_Model @@ -3570,7 +3525,6 @@ public function getAddress() { return $this->address; } - public function setExpiration($expiration) { $this->expiration = $expiration; @@ -3580,7 +3534,6 @@ public function getExpiration() { return $this->expiration; } - public function setId($id) { $this->id = $id; @@ -3590,7 +3543,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3600,7 +3552,6 @@ public function getKind() { return $this->kind; } - public function setParams($params) { $this->params = $params; @@ -3610,7 +3561,6 @@ public function getParams() { return $this->params; } - public function setPayload($payload) { $this->payload = $payload; @@ -3620,7 +3570,6 @@ public function getPayload() { return $this->payload; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -3630,7 +3579,6 @@ public function getResourceId() { return $this->resourceId; } - public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; @@ -3640,7 +3588,6 @@ public function getResourceUri() { return $this->resourceUri; } - public function setToken($token) { $this->token = $token; @@ -3650,7 +3597,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -3660,12 +3606,15 @@ public function getType() { return $this->type; } + } class Google_Service_Drive_ChannelParams extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Drive_ChildList extends Google_Collection @@ -3690,7 +3639,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3700,7 +3648,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3710,7 +3657,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -3720,7 +3666,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3730,7 +3675,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3740,6 +3684,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_ChildReference extends Google_Model @@ -3760,7 +3705,6 @@ public function getChildLink() { return $this->childLink; } - public function setId($id) { $this->id = $id; @@ -3770,7 +3714,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3780,7 +3723,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3790,6 +3732,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Comment extends Google_Collection @@ -3825,7 +3768,6 @@ public function getAnchor() { return $this->anchor; } - public function setAuthor(Google_Service_Drive_User $author) { $this->author = $author; @@ -3835,7 +3777,6 @@ public function getAuthor() { return $this->author; } - public function setCommentId($commentId) { $this->commentId = $commentId; @@ -3845,7 +3786,6 @@ public function getCommentId() { return $this->commentId; } - public function setContent($content) { $this->content = $content; @@ -3855,7 +3795,6 @@ public function getContent() { return $this->content; } - public function setContext(Google_Service_Drive_CommentContext $context) { $this->context = $context; @@ -3865,7 +3804,6 @@ public function getContext() { return $this->context; } - public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; @@ -3875,7 +3813,6 @@ public function getCreatedDate() { return $this->createdDate; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -3885,7 +3822,6 @@ public function getDeleted() { return $this->deleted; } - public function setFileId($fileId) { $this->fileId = $fileId; @@ -3895,7 +3831,6 @@ public function getFileId() { return $this->fileId; } - public function setFileTitle($fileTitle) { $this->fileTitle = $fileTitle; @@ -3905,7 +3840,6 @@ public function getFileTitle() { return $this->fileTitle; } - public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; @@ -3915,7 +3849,6 @@ public function getHtmlContent() { return $this->htmlContent; } - public function setKind($kind) { $this->kind = $kind; @@ -3925,7 +3858,6 @@ public function getKind() { return $this->kind; } - public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; @@ -3935,7 +3867,6 @@ public function getModifiedDate() { return $this->modifiedDate; } - public function setReplies($replies) { $this->replies = $replies; @@ -3945,7 +3876,6 @@ public function getReplies() { return $this->replies; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3955,7 +3885,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -3965,6 +3894,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Drive_CommentContext extends Google_Model @@ -3983,7 +3913,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3993,6 +3922,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Drive_CommentList extends Google_Collection @@ -4016,7 +3946,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4026,7 +3955,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -4036,7 +3964,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4046,7 +3973,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4056,6 +3982,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_CommentReply extends Google_Model @@ -4082,7 +4009,6 @@ public function getAuthor() { return $this->author; } - public function setContent($content) { $this->content = $content; @@ -4092,7 +4018,6 @@ public function getContent() { return $this->content; } - public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; @@ -4102,7 +4027,6 @@ public function getCreatedDate() { return $this->createdDate; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -4112,7 +4036,6 @@ public function getDeleted() { return $this->deleted; } - public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; @@ -4122,7 +4045,6 @@ public function getHtmlContent() { return $this->htmlContent; } - public function setKind($kind) { $this->kind = $kind; @@ -4132,7 +4054,6 @@ public function getKind() { return $this->kind; } - public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; @@ -4142,7 +4063,6 @@ public function getModifiedDate() { return $this->modifiedDate; } - public function setReplyId($replyId) { $this->replyId = $replyId; @@ -4152,7 +4072,6 @@ public function getReplyId() { return $this->replyId; } - public function setVerb($verb) { $this->verb = $verb; @@ -4162,6 +4081,7 @@ public function getVerb() { return $this->verb; } + } class Google_Service_Drive_CommentReplyList extends Google_Collection @@ -4185,7 +4105,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4195,7 +4114,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -4205,7 +4123,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4215,7 +4132,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4225,6 +4141,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_DriveFile extends Google_Collection @@ -4304,7 +4221,6 @@ public function getAlternateLink() { return $this->alternateLink; } - public function setAppDataContents($appDataContents) { $this->appDataContents = $appDataContents; @@ -4314,7 +4230,6 @@ public function getAppDataContents() { return $this->appDataContents; } - public function setCopyable($copyable) { $this->copyable = $copyable; @@ -4324,7 +4239,6 @@ public function getCopyable() { return $this->copyable; } - public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; @@ -4334,7 +4248,6 @@ public function getCreatedDate() { return $this->createdDate; } - public function setDefaultOpenWithLink($defaultOpenWithLink) { $this->defaultOpenWithLink = $defaultOpenWithLink; @@ -4344,7 +4257,6 @@ public function getDefaultOpenWithLink() { return $this->defaultOpenWithLink; } - public function setDescription($description) { $this->description = $description; @@ -4354,7 +4266,6 @@ public function getDescription() { return $this->description; } - public function setDownloadUrl($downloadUrl) { $this->downloadUrl = $downloadUrl; @@ -4364,7 +4275,6 @@ public function getDownloadUrl() { return $this->downloadUrl; } - public function setEditable($editable) { $this->editable = $editable; @@ -4374,7 +4284,6 @@ public function getEditable() { return $this->editable; } - public function setEmbedLink($embedLink) { $this->embedLink = $embedLink; @@ -4384,7 +4293,6 @@ public function getEmbedLink() { return $this->embedLink; } - public function setEtag($etag) { $this->etag = $etag; @@ -4394,7 +4302,6 @@ public function getEtag() { return $this->etag; } - public function setExplicitlyTrashed($explicitlyTrashed) { $this->explicitlyTrashed = $explicitlyTrashed; @@ -4404,7 +4311,6 @@ public function getExplicitlyTrashed() { return $this->explicitlyTrashed; } - public function setExportLinks($exportLinks) { $this->exportLinks = $exportLinks; @@ -4414,7 +4320,6 @@ public function getExportLinks() { return $this->exportLinks; } - public function setFileExtension($fileExtension) { $this->fileExtension = $fileExtension; @@ -4424,7 +4329,6 @@ public function getFileExtension() { return $this->fileExtension; } - public function setFileSize($fileSize) { $this->fileSize = $fileSize; @@ -4434,7 +4338,6 @@ public function getFileSize() { return $this->fileSize; } - public function setHeadRevisionId($headRevisionId) { $this->headRevisionId = $headRevisionId; @@ -4444,7 +4347,6 @@ public function getHeadRevisionId() { return $this->headRevisionId; } - public function setIconLink($iconLink) { $this->iconLink = $iconLink; @@ -4454,7 +4356,6 @@ public function getIconLink() { return $this->iconLink; } - public function setId($id) { $this->id = $id; @@ -4464,7 +4365,6 @@ public function getId() { return $this->id; } - public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) { $this->imageMediaMetadata = $imageMediaMetadata; @@ -4474,7 +4374,6 @@ public function getImageMediaMetadata() { return $this->imageMediaMetadata; } - public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText) { $this->indexableText = $indexableText; @@ -4484,7 +4383,6 @@ public function getIndexableText() { return $this->indexableText; } - public function setKind($kind) { $this->kind = $kind; @@ -4494,7 +4392,6 @@ public function getKind() { return $this->kind; } - public function setLabels(Google_Service_Drive_DriveFileLabels $labels) { $this->labels = $labels; @@ -4504,7 +4401,6 @@ public function getLabels() { return $this->labels; } - public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) { $this->lastModifyingUser = $lastModifyingUser; @@ -4514,7 +4410,6 @@ public function getLastModifyingUser() { return $this->lastModifyingUser; } - public function setLastModifyingUserName($lastModifyingUserName) { $this->lastModifyingUserName = $lastModifyingUserName; @@ -4524,7 +4419,6 @@ public function getLastModifyingUserName() { return $this->lastModifyingUserName; } - public function setLastViewedByMeDate($lastViewedByMeDate) { $this->lastViewedByMeDate = $lastViewedByMeDate; @@ -4534,7 +4428,6 @@ public function getLastViewedByMeDate() { return $this->lastViewedByMeDate; } - public function setMarkedViewedByMeDate($markedViewedByMeDate) { $this->markedViewedByMeDate = $markedViewedByMeDate; @@ -4544,7 +4437,6 @@ public function getMarkedViewedByMeDate() { return $this->markedViewedByMeDate; } - public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; @@ -4554,7 +4446,6 @@ public function getMd5Checksum() { return $this->md5Checksum; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -4564,7 +4455,6 @@ public function getMimeType() { return $this->mimeType; } - public function setModifiedByMeDate($modifiedByMeDate) { $this->modifiedByMeDate = $modifiedByMeDate; @@ -4574,7 +4464,6 @@ public function getModifiedByMeDate() { return $this->modifiedByMeDate; } - public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; @@ -4584,7 +4473,6 @@ public function getModifiedDate() { return $this->modifiedDate; } - public function setOpenWithLinks($openWithLinks) { $this->openWithLinks = $openWithLinks; @@ -4594,7 +4482,6 @@ public function getOpenWithLinks() { return $this->openWithLinks; } - public function setOriginalFilename($originalFilename) { $this->originalFilename = $originalFilename; @@ -4604,7 +4491,6 @@ public function getOriginalFilename() { return $this->originalFilename; } - public function setOwnerNames($ownerNames) { $this->ownerNames = $ownerNames; @@ -4614,7 +4500,6 @@ public function getOwnerNames() { return $this->ownerNames; } - public function setOwners($owners) { $this->owners = $owners; @@ -4624,7 +4509,6 @@ public function getOwners() { return $this->owners; } - public function setParents($parents) { $this->parents = $parents; @@ -4634,7 +4518,6 @@ public function getParents() { return $this->parents; } - public function setPermissions($permissions) { $this->permissions = $permissions; @@ -4644,7 +4527,6 @@ public function getPermissions() { return $this->permissions; } - public function setProperties($properties) { $this->properties = $properties; @@ -4654,7 +4536,6 @@ public function getProperties() { return $this->properties; } - public function setQuotaBytesUsed($quotaBytesUsed) { $this->quotaBytesUsed = $quotaBytesUsed; @@ -4664,7 +4545,6 @@ public function getQuotaBytesUsed() { return $this->quotaBytesUsed; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4674,7 +4554,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setShared($shared) { $this->shared = $shared; @@ -4684,7 +4563,6 @@ public function getShared() { return $this->shared; } - public function setSharedWithMeDate($sharedWithMeDate) { $this->sharedWithMeDate = $sharedWithMeDate; @@ -4694,7 +4572,6 @@ public function getSharedWithMeDate() { return $this->sharedWithMeDate; } - public function setSharingUser(Google_Service_Drive_User $sharingUser) { $this->sharingUser = $sharingUser; @@ -4704,7 +4581,6 @@ public function getSharingUser() { return $this->sharingUser; } - public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) { $this->thumbnail = $thumbnail; @@ -4714,7 +4590,6 @@ public function getThumbnail() { return $this->thumbnail; } - public function setThumbnailLink($thumbnailLink) { $this->thumbnailLink = $thumbnailLink; @@ -4724,7 +4599,6 @@ public function getThumbnailLink() { return $this->thumbnailLink; } - public function setTitle($title) { $this->title = $title; @@ -4734,7 +4608,6 @@ public function getTitle() { return $this->title; } - public function setUserPermission(Google_Service_Drive_Permission $userPermission) { $this->userPermission = $userPermission; @@ -4744,7 +4617,6 @@ public function getUserPermission() { return $this->userPermission; } - public function setVersion($version) { $this->version = $version; @@ -4754,7 +4626,6 @@ public function getVersion() { return $this->version; } - public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata) { $this->videoMediaMetadata = $videoMediaMetadata; @@ -4764,7 +4635,6 @@ public function getVideoMediaMetadata() { return $this->videoMediaMetadata; } - public function setWebContentLink($webContentLink) { $this->webContentLink = $webContentLink; @@ -4774,7 +4644,6 @@ public function getWebContentLink() { return $this->webContentLink; } - public function setWebViewLink($webViewLink) { $this->webViewLink = $webViewLink; @@ -4784,7 +4653,6 @@ public function getWebViewLink() { return $this->webViewLink; } - public function setWritersCanShare($writersCanShare) { $this->writersCanShare = $writersCanShare; @@ -4794,12 +4662,15 @@ public function getWritersCanShare() { return $this->writersCanShare; } + } class Google_Service_Drive_DriveFileExportLinks extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model @@ -4838,7 +4709,6 @@ public function getAperture() { return $this->aperture; } - public function setCameraMake($cameraMake) { $this->cameraMake = $cameraMake; @@ -4848,7 +4718,6 @@ public function getCameraMake() { return $this->cameraMake; } - public function setCameraModel($cameraModel) { $this->cameraModel = $cameraModel; @@ -4858,7 +4727,6 @@ public function getCameraModel() { return $this->cameraModel; } - public function setColorSpace($colorSpace) { $this->colorSpace = $colorSpace; @@ -4868,7 +4736,6 @@ public function getColorSpace() { return $this->colorSpace; } - public function setDate($date) { $this->date = $date; @@ -4878,7 +4745,6 @@ public function getDate() { return $this->date; } - public function setExposureBias($exposureBias) { $this->exposureBias = $exposureBias; @@ -4888,7 +4754,6 @@ public function getExposureBias() { return $this->exposureBias; } - public function setExposureMode($exposureMode) { $this->exposureMode = $exposureMode; @@ -4898,7 +4763,6 @@ public function getExposureMode() { return $this->exposureMode; } - public function setExposureTime($exposureTime) { $this->exposureTime = $exposureTime; @@ -4908,7 +4772,6 @@ public function getExposureTime() { return $this->exposureTime; } - public function setFlashUsed($flashUsed) { $this->flashUsed = $flashUsed; @@ -4918,7 +4781,6 @@ public function getFlashUsed() { return $this->flashUsed; } - public function setFocalLength($focalLength) { $this->focalLength = $focalLength; @@ -4928,7 +4790,6 @@ public function getFocalLength() { return $this->focalLength; } - public function setHeight($height) { $this->height = $height; @@ -4938,7 +4799,6 @@ public function getHeight() { return $this->height; } - public function setIsoSpeed($isoSpeed) { $this->isoSpeed = $isoSpeed; @@ -4948,7 +4808,6 @@ public function getIsoSpeed() { return $this->isoSpeed; } - public function setLens($lens) { $this->lens = $lens; @@ -4958,7 +4817,6 @@ public function getLens() { return $this->lens; } - public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location) { $this->location = $location; @@ -4968,7 +4826,6 @@ public function getLocation() { return $this->location; } - public function setMaxApertureValue($maxApertureValue) { $this->maxApertureValue = $maxApertureValue; @@ -4978,7 +4835,6 @@ public function getMaxApertureValue() { return $this->maxApertureValue; } - public function setMeteringMode($meteringMode) { $this->meteringMode = $meteringMode; @@ -4988,7 +4844,6 @@ public function getMeteringMode() { return $this->meteringMode; } - public function setRotation($rotation) { $this->rotation = $rotation; @@ -4998,7 +4853,6 @@ public function getRotation() { return $this->rotation; } - public function setSensor($sensor) { $this->sensor = $sensor; @@ -5008,7 +4862,6 @@ public function getSensor() { return $this->sensor; } - public function setSubjectDistance($subjectDistance) { $this->subjectDistance = $subjectDistance; @@ -5018,7 +4871,6 @@ public function getSubjectDistance() { return $this->subjectDistance; } - public function setWhiteBalance($whiteBalance) { $this->whiteBalance = $whiteBalance; @@ -5028,7 +4880,6 @@ public function getWhiteBalance() { return $this->whiteBalance; } - public function setWidth($width) { $this->width = $width; @@ -5038,6 +4889,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model @@ -5057,7 +4909,6 @@ public function getAltitude() { return $this->altitude; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -5067,7 +4918,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -5077,6 +4927,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Drive_DriveFileIndexableText extends Google_Model @@ -5094,6 +4945,7 @@ public function getText() { return $this->text; } + } class Google_Service_Drive_DriveFileLabels extends Google_Model @@ -5115,7 +4967,6 @@ public function getHidden() { return $this->hidden; } - public function setRestricted($restricted) { $this->restricted = $restricted; @@ -5125,7 +4976,6 @@ public function getRestricted() { return $this->restricted; } - public function setStarred($starred) { $this->starred = $starred; @@ -5135,7 +4985,6 @@ public function getStarred() { return $this->starred; } - public function setTrashed($trashed) { $this->trashed = $trashed; @@ -5145,7 +4994,6 @@ public function getTrashed() { return $this->trashed; } - public function setViewed($viewed) { $this->viewed = $viewed; @@ -5155,12 +5003,15 @@ public function getViewed() { return $this->viewed; } + } class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Drive_DriveFileThumbnail extends Google_Model @@ -5179,7 +5030,6 @@ public function getImage() { return $this->image; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -5189,6 +5039,7 @@ public function getMimeType() { return $this->mimeType; } + } class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model @@ -5208,7 +5059,6 @@ public function getDurationMillis() { return $this->durationMillis; } - public function setHeight($height) { $this->height = $height; @@ -5218,7 +5068,6 @@ public function getHeight() { return $this->height; } - public function setWidth($width) { $this->width = $width; @@ -5228,6 +5077,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Drive_FileList extends Google_Collection @@ -5252,7 +5102,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -5262,7 +5111,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5272,7 +5120,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -5282,7 +5129,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5292,7 +5138,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5302,6 +5147,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_ParentList extends Google_Collection @@ -5324,7 +5170,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -5334,7 +5179,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5344,7 +5188,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5354,6 +5197,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_ParentReference extends Google_Model @@ -5375,7 +5219,6 @@ public function getId() { return $this->id; } - public function setIsRoot($isRoot) { $this->isRoot = $isRoot; @@ -5385,7 +5228,6 @@ public function getIsRoot() { return $this->isRoot; } - public function setKind($kind) { $this->kind = $kind; @@ -5395,7 +5237,6 @@ public function getKind() { return $this->kind; } - public function setParentLink($parentLink) { $this->parentLink = $parentLink; @@ -5405,7 +5246,6 @@ public function getParentLink() { return $this->parentLink; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5415,6 +5255,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Permission extends Google_Collection @@ -5446,7 +5287,6 @@ public function getAdditionalRoles() { return $this->additionalRoles; } - public function setAuthKey($authKey) { $this->authKey = $authKey; @@ -5456,7 +5296,6 @@ public function getAuthKey() { return $this->authKey; } - public function setDomain($domain) { $this->domain = $domain; @@ -5466,7 +5305,6 @@ public function getDomain() { return $this->domain; } - public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; @@ -5476,7 +5314,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setEtag($etag) { $this->etag = $etag; @@ -5486,7 +5323,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -5496,7 +5332,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5506,7 +5341,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -5516,7 +5350,6 @@ public function getName() { return $this->name; } - public function setPhotoLink($photoLink) { $this->photoLink = $photoLink; @@ -5526,7 +5359,6 @@ public function getPhotoLink() { return $this->photoLink; } - public function setRole($role) { $this->role = $role; @@ -5536,7 +5368,6 @@ public function getRole() { return $this->role; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5546,7 +5377,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setType($type) { $this->type = $type; @@ -5556,7 +5386,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -5566,7 +5395,6 @@ public function getValue() { return $this->value; } - public function setWithLink($withLink) { $this->withLink = $withLink; @@ -5576,6 +5404,7 @@ public function getWithLink() { return $this->withLink; } + } class Google_Service_Drive_PermissionId extends Google_Model @@ -5594,7 +5423,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5604,6 +5432,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Drive_PermissionList extends Google_Collection @@ -5626,7 +5455,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -5636,7 +5464,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5646,7 +5473,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5656,6 +5482,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Property extends Google_Model @@ -5678,7 +5505,6 @@ public function getEtag() { return $this->etag; } - public function setKey($key) { $this->key = $key; @@ -5688,7 +5514,6 @@ public function getKey() { return $this->key; } - public function setKind($kind) { $this->kind = $kind; @@ -5698,7 +5523,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5708,7 +5532,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setValue($value) { $this->value = $value; @@ -5718,7 +5541,6 @@ public function getValue() { return $this->value; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -5728,6 +5550,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_Drive_PropertyList extends Google_Collection @@ -5750,7 +5573,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -5760,7 +5582,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5770,7 +5591,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5780,6 +5600,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_Revision extends Google_Model @@ -5815,7 +5636,6 @@ public function getDownloadUrl() { return $this->downloadUrl; } - public function setEtag($etag) { $this->etag = $etag; @@ -5825,7 +5645,6 @@ public function getEtag() { return $this->etag; } - public function setExportLinks($exportLinks) { $this->exportLinks = $exportLinks; @@ -5835,7 +5654,6 @@ public function getExportLinks() { return $this->exportLinks; } - public function setFileSize($fileSize) { $this->fileSize = $fileSize; @@ -5845,7 +5663,6 @@ public function getFileSize() { return $this->fileSize; } - public function setId($id) { $this->id = $id; @@ -5855,7 +5672,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5865,7 +5681,6 @@ public function getKind() { return $this->kind; } - public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) { $this->lastModifyingUser = $lastModifyingUser; @@ -5875,7 +5690,6 @@ public function getLastModifyingUser() { return $this->lastModifyingUser; } - public function setLastModifyingUserName($lastModifyingUserName) { $this->lastModifyingUserName = $lastModifyingUserName; @@ -5885,7 +5699,6 @@ public function getLastModifyingUserName() { return $this->lastModifyingUserName; } - public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; @@ -5895,7 +5708,6 @@ public function getMd5Checksum() { return $this->md5Checksum; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -5905,7 +5717,6 @@ public function getMimeType() { return $this->mimeType; } - public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; @@ -5915,7 +5726,6 @@ public function getModifiedDate() { return $this->modifiedDate; } - public function setOriginalFilename($originalFilename) { $this->originalFilename = $originalFilename; @@ -5925,7 +5735,6 @@ public function getOriginalFilename() { return $this->originalFilename; } - public function setPinned($pinned) { $this->pinned = $pinned; @@ -5935,7 +5744,6 @@ public function getPinned() { return $this->pinned; } - public function setPublishAuto($publishAuto) { $this->publishAuto = $publishAuto; @@ -5945,7 +5753,6 @@ public function getPublishAuto() { return $this->publishAuto; } - public function setPublished($published) { $this->published = $published; @@ -5955,7 +5762,6 @@ public function getPublished() { return $this->published; } - public function setPublishedLink($publishedLink) { $this->publishedLink = $publishedLink; @@ -5965,7 +5771,6 @@ public function getPublishedLink() { return $this->publishedLink; } - public function setPublishedOutsideDomain($publishedOutsideDomain) { $this->publishedOutsideDomain = $publishedOutsideDomain; @@ -5975,7 +5780,6 @@ public function getPublishedOutsideDomain() { return $this->publishedOutsideDomain; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5985,12 +5789,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_RevisionExportLinks extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Drive_RevisionList extends Google_Collection @@ -6013,7 +5820,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -6023,7 +5829,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6033,7 +5838,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6043,6 +5847,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Drive_User extends Google_Model @@ -6066,7 +5871,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; @@ -6076,7 +5880,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setIsAuthenticatedUser($isAuthenticatedUser) { $this->isAuthenticatedUser = $isAuthenticatedUser; @@ -6086,7 +5889,6 @@ public function getIsAuthenticatedUser() { return $this->isAuthenticatedUser; } - public function setKind($kind) { $this->kind = $kind; @@ -6096,7 +5898,6 @@ public function getKind() { return $this->kind; } - public function setPermissionId($permissionId) { $this->permissionId = $permissionId; @@ -6106,7 +5907,6 @@ public function getPermissionId() { return $this->permissionId; } - public function setPicture(Google_Service_Drive_UserPicture $picture) { $this->picture = $picture; @@ -6116,6 +5916,7 @@ public function getPicture() { return $this->picture; } + } class Google_Service_Drive_UserPicture extends Google_Model @@ -6133,4 +5934,5 @@ public function getUrl() { return $this->url; } + } From 2f464838b59e3e0adb3677ba6ff7fbeb1e418604 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:51 -0700 Subject: [PATCH 0374/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 51 ++++++++++---------------- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 08f957456..bd22b6de7 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -391,6 +391,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection @@ -412,7 +413,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -422,7 +422,6 @@ public function getMetrics() { return $this->metrics; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -432,6 +431,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model @@ -449,6 +449,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection @@ -472,7 +473,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -482,7 +482,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setOldest($oldest) { $this->oldest = $oldest; @@ -492,7 +491,6 @@ public function getOldest() { return $this->oldest; } - public function setTimeseries($timeseries) { $this->timeseries = $timeseries; @@ -502,7 +500,6 @@ public function getTimeseries() { return $this->timeseries; } - public function setYoungest($youngest) { $this->youngest = $youngest; @@ -512,6 +509,7 @@ public function getYoungest() { return $this->youngest; } + } class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model @@ -529,6 +527,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection @@ -552,7 +551,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -562,7 +560,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setOldest($oldest) { $this->oldest = $oldest; @@ -572,7 +569,6 @@ public function getOldest() { return $this->oldest; } - public function setTimeseries($timeseries) { $this->timeseries = $timeseries; @@ -582,7 +578,6 @@ public function getTimeseries() { return $this->timeseries; } - public function setYoungest($youngest) { $this->youngest = $youngest; @@ -592,6 +587,7 @@ public function getYoungest() { return $this->youngest; } + } class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection @@ -616,7 +612,6 @@ public function getDescription() { return $this->description; } - public function setLabels($labels) { $this->labels = $labels; @@ -626,7 +621,6 @@ public function getLabels() { return $this->labels; } - public function setName($name) { $this->name = $name; @@ -636,7 +630,6 @@ public function getName() { return $this->name; } - public function setProject($project) { $this->project = $project; @@ -646,7 +639,6 @@ public function getProject() { return $this->project; } - public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) { $this->typeDescriptor = $typeDescriptor; @@ -656,6 +648,7 @@ public function getTypeDescriptor() { return $this->typeDescriptor; } + } class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model @@ -674,7 +667,6 @@ public function getDescription() { return $this->description; } - public function setKey($key) { $this->key = $key; @@ -684,6 +676,7 @@ public function getKey() { return $this->key; } + } class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model @@ -702,7 +695,6 @@ public function getMetricType() { return $this->metricType; } - public function setValueType($valueType) { $this->valueType = $valueType; @@ -712,6 +704,7 @@ public function getValueType() { return $this->valueType; } + } class Google_Service_CloudMonitoring_Point extends Google_Model @@ -736,7 +729,6 @@ public function getBoolValue() { return $this->boolValue; } - public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue) { $this->distributionValue = $distributionValue; @@ -746,7 +738,6 @@ public function getDistributionValue() { return $this->distributionValue; } - public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; @@ -756,7 +747,6 @@ public function getDoubleValue() { return $this->doubleValue; } - public function setEnd($end) { $this->end = $end; @@ -766,7 +756,6 @@ public function getEnd() { return $this->end; } - public function setInt64Value($int64Value) { $this->int64Value = $int64Value; @@ -776,7 +765,6 @@ public function getInt64Value() { return $this->int64Value; } - public function setStart($start) { $this->start = $start; @@ -786,7 +774,6 @@ public function getStart() { return $this->start; } - public function setStringValue($stringValue) { $this->stringValue = $stringValue; @@ -796,6 +783,7 @@ public function getStringValue() { return $this->stringValue; } + } class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection @@ -819,7 +807,6 @@ public function getBuckets() { return $this->buckets; } - public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket) { $this->overflowBucket = $overflowBucket; @@ -829,7 +816,6 @@ public function getOverflowBucket() { return $this->overflowBucket; } - public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket) { $this->underflowBucket = $underflowBucket; @@ -839,6 +825,7 @@ public function getUnderflowBucket() { return $this->underflowBucket; } + } class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model @@ -858,7 +845,6 @@ public function getCount() { return $this->count; } - public function setLowerBound($lowerBound) { $this->lowerBound = $lowerBound; @@ -868,7 +854,6 @@ public function getLowerBound() { return $this->lowerBound; } - public function setUpperBound($upperBound) { $this->upperBound = $upperBound; @@ -878,6 +863,7 @@ public function getUpperBound() { return $this->upperBound; } + } class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model @@ -896,7 +882,6 @@ public function getCount() { return $this->count; } - public function setLowerBound($lowerBound) { $this->lowerBound = $lowerBound; @@ -906,6 +891,7 @@ public function getLowerBound() { return $this->lowerBound; } + } class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model @@ -924,7 +910,6 @@ public function getCount() { return $this->count; } - public function setUpperBound($upperBound) { $this->upperBound = $upperBound; @@ -934,6 +919,7 @@ public function getUpperBound() { return $this->upperBound; } + } class Google_Service_CloudMonitoring_Timeseries extends Google_Collection @@ -955,7 +941,6 @@ public function getPoints() { return $this->points; } - public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) { $this->timeseriesDesc = $timeseriesDesc; @@ -965,6 +950,7 @@ public function getTimeseriesDesc() { return $this->timeseriesDesc; } + } class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model @@ -984,7 +970,6 @@ public function getLabels() { return $this->labels; } - public function setMetric($metric) { $this->metric = $metric; @@ -994,7 +979,6 @@ public function getMetric() { return $this->metric; } - public function setProject($project) { $this->project = $project; @@ -1004,6 +988,7 @@ public function getProject() { return $this->project; } + } class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model @@ -1022,7 +1007,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -1032,10 +1016,13 @@ public function getValue() { return $this->value; } + } class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { protected $internal_gapi_mappings = array( ); + + } From e4880386fe2c923c374bce1a0994ad53755cba99 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:52 -0700 Subject: [PATCH 0375/1274] Updated AdExchangeSeller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeSeller.php | 79 ++++++------------------- 1 file changed, 19 insertions(+), 60 deletions(-) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index 7c8b11d2a..75e4eb683 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -867,7 +867,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -877,7 +876,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -887,6 +885,7 @@ public function getName() { return $this->name; } + } class Google_Service_AdExchangeSeller_Accounts extends Google_Collection @@ -909,7 +908,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -919,7 +917,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -929,7 +926,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -939,6 +935,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdExchangeSeller_AdClient extends Google_Model @@ -960,7 +957,6 @@ public function getArcOptIn() { return $this->arcOptIn; } - public function setId($id) { $this->id = $id; @@ -970,7 +966,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -980,7 +975,6 @@ public function getKind() { return $this->kind; } - public function setProductCode($productCode) { $this->productCode = $productCode; @@ -990,7 +984,6 @@ public function getProductCode() { return $this->productCode; } - public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; @@ -1000,6 +993,7 @@ public function getSupportsReporting() { return $this->supportsReporting; } + } class Google_Service_AdExchangeSeller_AdClients extends Google_Collection @@ -1022,7 +1016,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1032,7 +1025,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1042,7 +1034,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1052,6 +1043,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdExchangeSeller_Alert extends Google_Model @@ -1073,7 +1065,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1083,7 +1074,6 @@ public function getKind() { return $this->kind; } - public function setMessage($message) { $this->message = $message; @@ -1093,7 +1083,6 @@ public function getMessage() { return $this->message; } - public function setSeverity($severity) { $this->severity = $severity; @@ -1103,7 +1092,6 @@ public function getSeverity() { return $this->severity; } - public function setType($type) { $this->type = $type; @@ -1113,6 +1101,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdExchangeSeller_Alerts extends Google_Collection @@ -1133,7 +1122,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1143,6 +1131,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model @@ -1165,7 +1154,6 @@ public function getCode() { return $this->code; } - public function setId($id) { $this->id = $id; @@ -1175,7 +1163,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1185,7 +1172,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1195,7 +1181,6 @@ public function getName() { return $this->name; } - public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo) { $this->targetingInfo = $targetingInfo; @@ -1205,6 +1190,7 @@ public function getTargetingInfo() { return $this->targetingInfo; } + } class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model @@ -1225,7 +1211,6 @@ public function getAdsAppearOn() { return $this->adsAppearOn; } - public function setDescription($description) { $this->description = $description; @@ -1235,7 +1220,6 @@ public function getDescription() { return $this->description; } - public function setLocation($location) { $this->location = $location; @@ -1245,7 +1229,6 @@ public function getLocation() { return $this->location; } - public function setSiteLanguage($siteLanguage) { $this->siteLanguage = $siteLanguage; @@ -1255,6 +1238,7 @@ public function getSiteLanguage() { return $this->siteLanguage; } + } class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection @@ -1277,7 +1261,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1287,7 +1270,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1297,7 +1279,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1307,6 +1288,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdExchangeSeller_Metadata extends Google_Collection @@ -1327,7 +1309,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1337,6 +1318,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model @@ -1361,7 +1343,6 @@ public function getAdvertiserName() { return $this->advertiserName; } - public function setBuyerNetworkName($buyerNetworkName) { $this->buyerNetworkName = $buyerNetworkName; @@ -1371,7 +1352,6 @@ public function getBuyerNetworkName() { return $this->buyerNetworkName; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -1381,7 +1361,6 @@ public function getCurrencyCode() { return $this->currencyCode; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1391,7 +1370,6 @@ public function getEndTime() { return $this->endTime; } - public function setFixedCpm($fixedCpm) { $this->fixedCpm = $fixedCpm; @@ -1401,7 +1379,6 @@ public function getFixedCpm() { return $this->fixedCpm; } - public function setId($id) { $this->id = $id; @@ -1411,7 +1388,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1421,7 +1397,6 @@ public function getKind() { return $this->kind; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1431,6 +1406,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection @@ -1451,7 +1427,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1461,6 +1436,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeSeller_Report extends Google_Collection @@ -1486,7 +1462,6 @@ public function getAverages() { return $this->averages; } - public function setHeaders($headers) { $this->headers = $headers; @@ -1496,7 +1471,6 @@ public function getHeaders() { return $this->headers; } - public function setKind($kind) { $this->kind = $kind; @@ -1506,7 +1480,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -1516,7 +1489,6 @@ public function getRows() { return $this->rows; } - public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; @@ -1526,7 +1498,6 @@ public function getTotalMatchedRows() { return $this->totalMatchedRows; } - public function setTotals($totals) { $this->totals = $totals; @@ -1536,7 +1507,6 @@ public function getTotals() { return $this->totals; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -1546,6 +1516,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model @@ -1565,7 +1536,6 @@ public function getCurrency() { return $this->currency; } - public function setName($name) { $this->name = $name; @@ -1575,7 +1545,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -1585,6 +1554,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection @@ -1609,7 +1579,6 @@ public function getCompatibleDimensions() { return $this->compatibleDimensions; } - public function setCompatibleMetrics($compatibleMetrics) { $this->compatibleMetrics = $compatibleMetrics; @@ -1619,7 +1588,6 @@ public function getCompatibleMetrics() { return $this->compatibleMetrics; } - public function setId($id) { $this->id = $id; @@ -1629,7 +1597,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1639,7 +1606,6 @@ public function getKind() { return $this->kind; } - public function setRequiredDimensions($requiredDimensions) { $this->requiredDimensions = $requiredDimensions; @@ -1649,7 +1615,6 @@ public function getRequiredDimensions() { return $this->requiredDimensions; } - public function setRequiredMetrics($requiredMetrics) { $this->requiredMetrics = $requiredMetrics; @@ -1659,7 +1624,6 @@ public function getRequiredMetrics() { return $this->requiredMetrics; } - public function setSupportedProducts($supportedProducts) { $this->supportedProducts = $supportedProducts; @@ -1669,6 +1633,7 @@ public function getSupportedProducts() { return $this->supportedProducts; } + } class Google_Service_AdExchangeSeller_SavedReport extends Google_Model @@ -1688,7 +1653,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1698,7 +1662,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1708,6 +1671,7 @@ public function getName() { return $this->name; } + } class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection @@ -1730,7 +1694,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1740,7 +1703,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1750,7 +1712,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1760,6 +1721,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model @@ -1779,7 +1741,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1789,7 +1750,6 @@ public function getKind() { return $this->kind; } - public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; @@ -1799,6 +1759,7 @@ public function getUrlPattern() { return $this->urlPattern; } + } class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection @@ -1821,7 +1782,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1831,7 +1791,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1841,7 +1800,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1851,4 +1809,5 @@ public function getNextPageToken() { return $this->nextPageToken; } + } From 7c23197c87c1f5cf602ea93643109bb8fe01efde Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:53 -0700 Subject: [PATCH 0376/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 638 +++++++-------------------------- 1 file changed, 124 insertions(+), 514 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 63ca44242..53639d988 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -3348,7 +3348,6 @@ public function getAllowed() { return $this->allowed; } - public function setException($exception) { $this->exception = $exception; @@ -3358,6 +3357,7 @@ public function getException() { return $this->exception; } + } class Google_Service_YouTube_Activity extends Google_Model @@ -3381,7 +3381,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -3391,7 +3390,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -3401,7 +3399,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3411,7 +3408,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) { $this->snippet = $snippet; @@ -3421,6 +3417,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_ActivityContentDetails extends Google_Model @@ -3459,7 +3456,6 @@ public function getBulletin() { return $this->bulletin; } - public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) { $this->channelItem = $channelItem; @@ -3469,7 +3465,6 @@ public function getChannelItem() { return $this->channelItem; } - public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) { $this->comment = $comment; @@ -3479,7 +3474,6 @@ public function getComment() { return $this->comment; } - public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) { $this->favorite = $favorite; @@ -3489,7 +3483,6 @@ public function getFavorite() { return $this->favorite; } - public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) { $this->like = $like; @@ -3499,7 +3492,6 @@ public function getLike() { return $this->like; } - public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) { $this->playlistItem = $playlistItem; @@ -3509,7 +3501,6 @@ public function getPlaylistItem() { return $this->playlistItem; } - public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) { $this->promotedItem = $promotedItem; @@ -3519,7 +3510,6 @@ public function getPromotedItem() { return $this->promotedItem; } - public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) { $this->recommendation = $recommendation; @@ -3529,7 +3519,6 @@ public function getRecommendation() { return $this->recommendation; } - public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) { $this->social = $social; @@ -3539,7 +3528,6 @@ public function getSocial() { return $this->social; } - public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) { $this->subscription = $subscription; @@ -3549,7 +3537,6 @@ public function getSubscription() { return $this->subscription; } - public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) { $this->upload = $upload; @@ -3559,6 +3546,7 @@ public function getUpload() { return $this->upload; } + } class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model @@ -3577,6 +3565,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model @@ -3595,6 +3584,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model @@ -3613,6 +3603,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model @@ -3631,6 +3622,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model @@ -3649,6 +3641,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model @@ -3669,7 +3662,6 @@ public function getPlaylistId() { return $this->playlistId; } - public function setPlaylistItemId($playlistItemId) { $this->playlistItemId = $playlistItemId; @@ -3679,7 +3671,6 @@ public function getPlaylistItemId() { return $this->playlistItemId; } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; @@ -3689,6 +3680,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection @@ -3716,7 +3708,6 @@ public function getAdTag() { return $this->adTag; } - public function setClickTrackingUrl($clickTrackingUrl) { $this->clickTrackingUrl = $clickTrackingUrl; @@ -3726,7 +3717,6 @@ public function getClickTrackingUrl() { return $this->clickTrackingUrl; } - public function setCreativeViewUrl($creativeViewUrl) { $this->creativeViewUrl = $creativeViewUrl; @@ -3736,7 +3726,6 @@ public function getCreativeViewUrl() { return $this->creativeViewUrl; } - public function setCtaType($ctaType) { $this->ctaType = $ctaType; @@ -3746,7 +3735,6 @@ public function getCtaType() { return $this->ctaType; } - public function setCustomCtaButtonText($customCtaButtonText) { $this->customCtaButtonText = $customCtaButtonText; @@ -3756,7 +3744,6 @@ public function getCustomCtaButtonText() { return $this->customCtaButtonText; } - public function setDescriptionText($descriptionText) { $this->descriptionText = $descriptionText; @@ -3766,7 +3753,6 @@ public function getDescriptionText() { return $this->descriptionText; } - public function setDestinationUrl($destinationUrl) { $this->destinationUrl = $destinationUrl; @@ -3776,7 +3762,6 @@ public function getDestinationUrl() { return $this->destinationUrl; } - public function setForecastingUrl($forecastingUrl) { $this->forecastingUrl = $forecastingUrl; @@ -3786,7 +3771,6 @@ public function getForecastingUrl() { return $this->forecastingUrl; } - public function setImpressionUrl($impressionUrl) { $this->impressionUrl = $impressionUrl; @@ -3796,7 +3780,6 @@ public function getImpressionUrl() { return $this->impressionUrl; } - public function setVideoId($videoId) { $this->videoId = $videoId; @@ -3806,6 +3789,7 @@ public function getVideoId() { return $this->videoId; } + } class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model @@ -3827,7 +3811,6 @@ public function getReason() { return $this->reason; } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; @@ -3837,7 +3820,6 @@ public function getResourceId() { return $this->resourceId; } - public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) { $this->seedResourceId = $seedResourceId; @@ -3847,6 +3829,7 @@ public function getSeedResourceId() { return $this->seedResourceId; } + } class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model @@ -3869,7 +3852,6 @@ public function getAuthor() { return $this->author; } - public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; @@ -3879,7 +3861,6 @@ public function getImageUrl() { return $this->imageUrl; } - public function setReferenceUrl($referenceUrl) { $this->referenceUrl = $referenceUrl; @@ -3889,7 +3870,6 @@ public function getReferenceUrl() { return $this->referenceUrl; } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; @@ -3899,7 +3879,6 @@ public function getResourceId() { return $this->resourceId; } - public function setType($type) { $this->type = $type; @@ -3909,6 +3888,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model @@ -3927,6 +3907,7 @@ public function getResourceId() { return $this->resourceId; } + } class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model @@ -3944,6 +3925,7 @@ public function getVideoId() { return $this->videoId; } + } class Google_Service_YouTube_ActivityListResponse extends Google_Collection @@ -3973,7 +3955,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -3983,7 +3964,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -3993,7 +3973,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4003,7 +3982,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4013,7 +3991,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -4023,7 +4000,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -4033,7 +4009,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -4043,7 +4018,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -4053,6 +4027,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_ActivitySnippet extends Google_Model @@ -4078,7 +4053,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -4088,7 +4062,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -4098,7 +4071,6 @@ public function getDescription() { return $this->description; } - public function setGroupId($groupId) { $this->groupId = $groupId; @@ -4108,7 +4080,6 @@ public function getGroupId() { return $this->groupId; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -4118,7 +4089,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -4128,7 +4098,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -4138,7 +4107,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -4148,6 +4116,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTube_CdnSettings extends Google_Model @@ -4168,7 +4137,6 @@ public function getFormat() { return $this->format; } - public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) { $this->ingestionInfo = $ingestionInfo; @@ -4178,7 +4146,6 @@ public function getIngestionInfo() { return $this->ingestionInfo; } - public function setIngestionType($ingestionType) { $this->ingestionType = $ingestionType; @@ -4188,6 +4155,7 @@ public function getIngestionType() { return $this->ingestionType; } + } class Google_Service_YouTube_Channel extends Google_Model @@ -4227,7 +4195,6 @@ public function getAuditDetails() { return $this->auditDetails; } - public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) { $this->brandingSettings = $brandingSettings; @@ -4237,7 +4204,6 @@ public function getBrandingSettings() { return $this->brandingSettings; } - public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) { $this->contentDetails = $contentDetails; @@ -4247,7 +4213,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) { $this->contentOwnerDetails = $contentOwnerDetails; @@ -4257,7 +4222,6 @@ public function getContentOwnerDetails() { return $this->contentOwnerDetails; } - public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) { $this->conversionPings = $conversionPings; @@ -4267,7 +4231,6 @@ public function getConversionPings() { return $this->conversionPings; } - public function setEtag($etag) { $this->etag = $etag; @@ -4277,7 +4240,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -4287,7 +4249,6 @@ public function getId() { return $this->id; } - public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) { $this->invideoPromotion = $invideoPromotion; @@ -4297,7 +4258,6 @@ public function getInvideoPromotion() { return $this->invideoPromotion; } - public function setKind($kind) { $this->kind = $kind; @@ -4307,7 +4267,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) { $this->snippet = $snippet; @@ -4317,7 +4276,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) { $this->statistics = $statistics; @@ -4327,7 +4285,6 @@ public function getStatistics() { return $this->statistics; } - public function setStatus(Google_Service_YouTube_ChannelStatus $status) { $this->status = $status; @@ -4337,7 +4294,6 @@ public function getStatus() { return $this->status; } - public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) { $this->topicDetails = $topicDetails; @@ -4347,6 +4303,7 @@ public function getTopicDetails() { return $this->topicDetails; } + } class Google_Service_YouTube_ChannelAuditDetails extends Google_Model @@ -4367,7 +4324,6 @@ public function getCommunityGuidelinesGoodStanding() { return $this->communityGuidelinesGoodStanding; } - public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) { $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; @@ -4377,7 +4333,6 @@ public function getContentIdClaimsGoodStanding() { return $this->contentIdClaimsGoodStanding; } - public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) { $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; @@ -4387,7 +4342,6 @@ public function getCopyrightStrikesGoodStanding() { return $this->copyrightStrikesGoodStanding; } - public function setOverallGoodStanding($overallGoodStanding) { $this->overallGoodStanding = $overallGoodStanding; @@ -4397,6 +4351,7 @@ public function getOverallGoodStanding() { return $this->overallGoodStanding; } + } class Google_Service_YouTube_ChannelBannerResource extends Google_Model @@ -4416,7 +4371,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4426,7 +4380,6 @@ public function getKind() { return $this->kind; } - public function setUrl($url) { $this->url = $url; @@ -4436,6 +4389,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection @@ -4461,7 +4415,6 @@ public function getChannel() { return $this->channel; } - public function setHints($hints) { $this->hints = $hints; @@ -4471,7 +4424,6 @@ public function getHints() { return $this->hints; } - public function setImage(Google_Service_YouTube_ImageSettings $image) { $this->image = $image; @@ -4481,7 +4433,6 @@ public function getImage() { return $this->image; } - public function setWatch(Google_Service_YouTube_WatchSettings $watch) { $this->watch = $watch; @@ -4491,6 +4442,7 @@ public function getWatch() { return $this->watch; } + } class Google_Service_YouTube_ChannelContentDetails extends Google_Model @@ -4510,7 +4462,6 @@ public function getGooglePlusUserId() { return $this->googlePlusUserId; } - public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) { $this->relatedPlaylists = $relatedPlaylists; @@ -4520,6 +4471,7 @@ public function getRelatedPlaylists() { return $this->relatedPlaylists; } + } class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model @@ -4541,7 +4493,6 @@ public function getFavorites() { return $this->favorites; } - public function setLikes($likes) { $this->likes = $likes; @@ -4551,7 +4502,6 @@ public function getLikes() { return $this->likes; } - public function setUploads($uploads) { $this->uploads = $uploads; @@ -4561,7 +4511,6 @@ public function getUploads() { return $this->uploads; } - public function setWatchHistory($watchHistory) { $this->watchHistory = $watchHistory; @@ -4571,7 +4520,6 @@ public function getWatchHistory() { return $this->watchHistory; } - public function setWatchLater($watchLater) { $this->watchLater = $watchLater; @@ -4581,6 +4529,7 @@ public function getWatchLater() { return $this->watchLater; } + } class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model @@ -4599,7 +4548,6 @@ public function getContentOwner() { return $this->contentOwner; } - public function setTimeLinked($timeLinked) { $this->timeLinked = $timeLinked; @@ -4609,6 +4557,7 @@ public function getTimeLinked() { return $this->timeLinked; } + } class Google_Service_YouTube_ChannelConversionPing extends Google_Model @@ -4627,7 +4576,6 @@ public function getContext() { return $this->context; } - public function setConversionUrl($conversionUrl) { $this->conversionUrl = $conversionUrl; @@ -4637,6 +4585,7 @@ public function getConversionUrl() { return $this->conversionUrl; } + } class Google_Service_YouTube_ChannelConversionPings extends Google_Collection @@ -4656,6 +4605,7 @@ public function getPings() { return $this->pings; } + } class Google_Service_YouTube_ChannelListResponse extends Google_Collection @@ -4685,7 +4635,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -4695,7 +4644,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -4705,7 +4653,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4715,7 +4662,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4725,7 +4671,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -4735,7 +4680,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -4745,7 +4689,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -4755,7 +4698,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -4765,6 +4707,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_ChannelSection extends Google_Model @@ -4788,7 +4731,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -4798,7 +4740,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -4808,7 +4749,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -4818,7 +4758,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) { $this->snippet = $snippet; @@ -4828,6 +4767,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection @@ -4847,7 +4787,6 @@ public function getChannels() { return $this->channels; } - public function setPlaylists($playlists) { $this->playlists = $playlists; @@ -4857,6 +4796,7 @@ public function getPlaylists() { return $this->playlists; } + } class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection @@ -4880,7 +4820,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -4890,7 +4829,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -4900,7 +4838,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4910,7 +4847,6 @@ public function getKind() { return $this->kind; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -4920,6 +4856,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model @@ -4941,7 +4878,6 @@ public function getChannelId() { return $this->channelId; } - public function setPosition($position) { $this->position = $position; @@ -4951,7 +4887,6 @@ public function getPosition() { return $this->position; } - public function setStyle($style) { $this->style = $style; @@ -4961,7 +4896,6 @@ public function getStyle() { return $this->style; } - public function setTitle($title) { $this->title = $title; @@ -4971,7 +4905,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -4981,6 +4914,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTube_ChannelSettings extends Google_Collection @@ -5010,7 +4944,6 @@ public function getDefaultTab() { return $this->defaultTab; } - public function setDescription($description) { $this->description = $description; @@ -5020,7 +4953,6 @@ public function getDescription() { return $this->description; } - public function setFeaturedChannelsTitle($featuredChannelsTitle) { $this->featuredChannelsTitle = $featuredChannelsTitle; @@ -5030,7 +4962,6 @@ public function getFeaturedChannelsTitle() { return $this->featuredChannelsTitle; } - public function setFeaturedChannelsUrls($featuredChannelsUrls) { $this->featuredChannelsUrls = $featuredChannelsUrls; @@ -5040,7 +4971,6 @@ public function getFeaturedChannelsUrls() { return $this->featuredChannelsUrls; } - public function setKeywords($keywords) { $this->keywords = $keywords; @@ -5050,7 +4980,6 @@ public function getKeywords() { return $this->keywords; } - public function setModerateComments($moderateComments) { $this->moderateComments = $moderateComments; @@ -5060,7 +4989,6 @@ public function getModerateComments() { return $this->moderateComments; } - public function setProfileColor($profileColor) { $this->profileColor = $profileColor; @@ -5070,7 +4998,6 @@ public function getProfileColor() { return $this->profileColor; } - public function setShowBrowseView($showBrowseView) { $this->showBrowseView = $showBrowseView; @@ -5080,7 +5007,6 @@ public function getShowBrowseView() { return $this->showBrowseView; } - public function setShowRelatedChannels($showRelatedChannels) { $this->showRelatedChannels = $showRelatedChannels; @@ -5090,7 +5016,6 @@ public function getShowRelatedChannels() { return $this->showRelatedChannels; } - public function setTitle($title) { $this->title = $title; @@ -5100,7 +5025,6 @@ public function getTitle() { return $this->title; } - public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) { $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; @@ -5110,7 +5034,6 @@ public function getTrackingAnalyticsAccountId() { return $this->trackingAnalyticsAccountId; } - public function setUnsubscribedTrailer($unsubscribedTrailer) { $this->unsubscribedTrailer = $unsubscribedTrailer; @@ -5120,6 +5043,7 @@ public function getUnsubscribedTrailer() { return $this->unsubscribedTrailer; } + } class Google_Service_YouTube_ChannelSnippet extends Google_Model @@ -5141,7 +5065,6 @@ public function getDescription() { return $this->description; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -5151,7 +5074,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -5161,7 +5083,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -5171,6 +5092,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_ChannelStatistics extends Google_Model @@ -5192,7 +5114,6 @@ public function getCommentCount() { return $this->commentCount; } - public function setHiddenSubscriberCount($hiddenSubscriberCount) { $this->hiddenSubscriberCount = $hiddenSubscriberCount; @@ -5202,7 +5123,6 @@ public function getHiddenSubscriberCount() { return $this->hiddenSubscriberCount; } - public function setSubscriberCount($subscriberCount) { $this->subscriberCount = $subscriberCount; @@ -5212,7 +5132,6 @@ public function getSubscriberCount() { return $this->subscriberCount; } - public function setVideoCount($videoCount) { $this->videoCount = $videoCount; @@ -5222,7 +5141,6 @@ public function getVideoCount() { return $this->videoCount; } - public function setViewCount($viewCount) { $this->viewCount = $viewCount; @@ -5232,6 +5150,7 @@ public function getViewCount() { return $this->viewCount; } + } class Google_Service_YouTube_ChannelStatus extends Google_Model @@ -5251,7 +5170,6 @@ public function getIsLinked() { return $this->isLinked; } - public function setLongUploadsStatus($longUploadsStatus) { $this->longUploadsStatus = $longUploadsStatus; @@ -5261,7 +5179,6 @@ public function getLongUploadsStatus() { return $this->longUploadsStatus; } - public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; @@ -5271,6 +5188,7 @@ public function getPrivacyStatus() { return $this->privacyStatus; } + } class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection @@ -5289,6 +5207,7 @@ public function getTopicIds() { return $this->topicIds; } + } class Google_Service_YouTube_ContentRating extends Google_Model @@ -5368,7 +5287,6 @@ public function getAcbRating() { return $this->acbRating; } - public function setAgcomRating($agcomRating) { $this->agcomRating = $agcomRating; @@ -5378,7 +5296,6 @@ public function getAgcomRating() { return $this->agcomRating; } - public function setAnatelRating($anatelRating) { $this->anatelRating = $anatelRating; @@ -5388,7 +5305,6 @@ public function getAnatelRating() { return $this->anatelRating; } - public function setBbfcRating($bbfcRating) { $this->bbfcRating = $bbfcRating; @@ -5398,7 +5314,6 @@ public function getBbfcRating() { return $this->bbfcRating; } - public function setBfvcRating($bfvcRating) { $this->bfvcRating = $bfvcRating; @@ -5408,7 +5323,6 @@ public function getBfvcRating() { return $this->bfvcRating; } - public function setBmukkRating($bmukkRating) { $this->bmukkRating = $bmukkRating; @@ -5418,7 +5332,6 @@ public function getBmukkRating() { return $this->bmukkRating; } - public function setCatvRating($catvRating) { $this->catvRating = $catvRating; @@ -5428,7 +5341,6 @@ public function getCatvRating() { return $this->catvRating; } - public function setCatvfrRating($catvfrRating) { $this->catvfrRating = $catvfrRating; @@ -5438,7 +5350,6 @@ public function getCatvfrRating() { return $this->catvfrRating; } - public function setCbfcRating($cbfcRating) { $this->cbfcRating = $cbfcRating; @@ -5448,7 +5359,6 @@ public function getCbfcRating() { return $this->cbfcRating; } - public function setCccRating($cccRating) { $this->cccRating = $cccRating; @@ -5458,7 +5368,6 @@ public function getCccRating() { return $this->cccRating; } - public function setCceRating($cceRating) { $this->cceRating = $cceRating; @@ -5468,7 +5377,6 @@ public function getCceRating() { return $this->cceRating; } - public function setChfilmRating($chfilmRating) { $this->chfilmRating = $chfilmRating; @@ -5478,7 +5386,6 @@ public function getChfilmRating() { return $this->chfilmRating; } - public function setChvrsRating($chvrsRating) { $this->chvrsRating = $chvrsRating; @@ -5488,7 +5395,6 @@ public function getChvrsRating() { return $this->chvrsRating; } - public function setCicfRating($cicfRating) { $this->cicfRating = $cicfRating; @@ -5498,7 +5404,6 @@ public function getCicfRating() { return $this->cicfRating; } - public function setCnaRating($cnaRating) { $this->cnaRating = $cnaRating; @@ -5508,7 +5413,6 @@ public function getCnaRating() { return $this->cnaRating; } - public function setCsaRating($csaRating) { $this->csaRating = $csaRating; @@ -5518,7 +5422,6 @@ public function getCsaRating() { return $this->csaRating; } - public function setCscfRating($cscfRating) { $this->cscfRating = $cscfRating; @@ -5528,7 +5431,6 @@ public function getCscfRating() { return $this->cscfRating; } - public function setCzfilmRating($czfilmRating) { $this->czfilmRating = $czfilmRating; @@ -5538,7 +5440,6 @@ public function getCzfilmRating() { return $this->czfilmRating; } - public function setDjctqRating($djctqRating) { $this->djctqRating = $djctqRating; @@ -5548,7 +5449,6 @@ public function getDjctqRating() { return $this->djctqRating; } - public function setEefilmRating($eefilmRating) { $this->eefilmRating = $eefilmRating; @@ -5558,7 +5458,6 @@ public function getEefilmRating() { return $this->eefilmRating; } - public function setEgfilmRating($egfilmRating) { $this->egfilmRating = $egfilmRating; @@ -5568,7 +5467,6 @@ public function getEgfilmRating() { return $this->egfilmRating; } - public function setEirinRating($eirinRating) { $this->eirinRating = $eirinRating; @@ -5578,7 +5476,6 @@ public function getEirinRating() { return $this->eirinRating; } - public function setFcbmRating($fcbmRating) { $this->fcbmRating = $fcbmRating; @@ -5588,7 +5485,6 @@ public function getFcbmRating() { return $this->fcbmRating; } - public function setFcoRating($fcoRating) { $this->fcoRating = $fcoRating; @@ -5598,7 +5494,6 @@ public function getFcoRating() { return $this->fcoRating; } - public function setFmocRating($fmocRating) { $this->fmocRating = $fmocRating; @@ -5608,7 +5503,6 @@ public function getFmocRating() { return $this->fmocRating; } - public function setFpbRating($fpbRating) { $this->fpbRating = $fpbRating; @@ -5618,7 +5512,6 @@ public function getFpbRating() { return $this->fpbRating; } - public function setFskRating($fskRating) { $this->fskRating = $fskRating; @@ -5628,7 +5521,6 @@ public function getFskRating() { return $this->fskRating; } - public function setGrfilmRating($grfilmRating) { $this->grfilmRating = $grfilmRating; @@ -5638,7 +5530,6 @@ public function getGrfilmRating() { return $this->grfilmRating; } - public function setIcaaRating($icaaRating) { $this->icaaRating = $icaaRating; @@ -5648,7 +5539,6 @@ public function getIcaaRating() { return $this->icaaRating; } - public function setIfcoRating($ifcoRating) { $this->ifcoRating = $ifcoRating; @@ -5658,7 +5548,6 @@ public function getIfcoRating() { return $this->ifcoRating; } - public function setIlfilmRating($ilfilmRating) { $this->ilfilmRating = $ilfilmRating; @@ -5668,7 +5557,6 @@ public function getIlfilmRating() { return $this->ilfilmRating; } - public function setIncaaRating($incaaRating) { $this->incaaRating = $incaaRating; @@ -5678,7 +5566,6 @@ public function getIncaaRating() { return $this->incaaRating; } - public function setKfcbRating($kfcbRating) { $this->kfcbRating = $kfcbRating; @@ -5688,7 +5575,6 @@ public function getKfcbRating() { return $this->kfcbRating; } - public function setKijkwijzerRating($kijkwijzerRating) { $this->kijkwijzerRating = $kijkwijzerRating; @@ -5698,7 +5584,6 @@ public function getKijkwijzerRating() { return $this->kijkwijzerRating; } - public function setKmrbRating($kmrbRating) { $this->kmrbRating = $kmrbRating; @@ -5708,7 +5593,6 @@ public function getKmrbRating() { return $this->kmrbRating; } - public function setLsfRating($lsfRating) { $this->lsfRating = $lsfRating; @@ -5718,7 +5602,6 @@ public function getLsfRating() { return $this->lsfRating; } - public function setMccaaRating($mccaaRating) { $this->mccaaRating = $mccaaRating; @@ -5728,7 +5611,6 @@ public function getMccaaRating() { return $this->mccaaRating; } - public function setMccypRating($mccypRating) { $this->mccypRating = $mccypRating; @@ -5738,7 +5620,6 @@ public function getMccypRating() { return $this->mccypRating; } - public function setMdaRating($mdaRating) { $this->mdaRating = $mdaRating; @@ -5748,7 +5629,6 @@ public function getMdaRating() { return $this->mdaRating; } - public function setMedietilsynetRating($medietilsynetRating) { $this->medietilsynetRating = $medietilsynetRating; @@ -5758,7 +5638,6 @@ public function getMedietilsynetRating() { return $this->medietilsynetRating; } - public function setMekuRating($mekuRating) { $this->mekuRating = $mekuRating; @@ -5768,7 +5647,6 @@ public function getMekuRating() { return $this->mekuRating; } - public function setMibacRating($mibacRating) { $this->mibacRating = $mibacRating; @@ -5778,7 +5656,6 @@ public function getMibacRating() { return $this->mibacRating; } - public function setMocRating($mocRating) { $this->mocRating = $mocRating; @@ -5788,7 +5665,6 @@ public function getMocRating() { return $this->mocRating; } - public function setMoctwRating($moctwRating) { $this->moctwRating = $moctwRating; @@ -5798,7 +5674,6 @@ public function getMoctwRating() { return $this->moctwRating; } - public function setMpaaRating($mpaaRating) { $this->mpaaRating = $mpaaRating; @@ -5808,7 +5683,6 @@ public function getMpaaRating() { return $this->mpaaRating; } - public function setMtrcbRating($mtrcbRating) { $this->mtrcbRating = $mtrcbRating; @@ -5818,7 +5692,6 @@ public function getMtrcbRating() { return $this->mtrcbRating; } - public function setNbcRating($nbcRating) { $this->nbcRating = $nbcRating; @@ -5828,7 +5701,6 @@ public function getNbcRating() { return $this->nbcRating; } - public function setNbcplRating($nbcplRating) { $this->nbcplRating = $nbcplRating; @@ -5838,7 +5710,6 @@ public function getNbcplRating() { return $this->nbcplRating; } - public function setNfrcRating($nfrcRating) { $this->nfrcRating = $nfrcRating; @@ -5848,7 +5719,6 @@ public function getNfrcRating() { return $this->nfrcRating; } - public function setNfvcbRating($nfvcbRating) { $this->nfvcbRating = $nfvcbRating; @@ -5858,7 +5728,6 @@ public function getNfvcbRating() { return $this->nfvcbRating; } - public function setNkclvRating($nkclvRating) { $this->nkclvRating = $nkclvRating; @@ -5868,7 +5737,6 @@ public function getNkclvRating() { return $this->nkclvRating; } - public function setOflcRating($oflcRating) { $this->oflcRating = $oflcRating; @@ -5878,7 +5746,6 @@ public function getOflcRating() { return $this->oflcRating; } - public function setPefilmRating($pefilmRating) { $this->pefilmRating = $pefilmRating; @@ -5888,7 +5755,6 @@ public function getPefilmRating() { return $this->pefilmRating; } - public function setRcnofRating($rcnofRating) { $this->rcnofRating = $rcnofRating; @@ -5898,7 +5764,6 @@ public function getRcnofRating() { return $this->rcnofRating; } - public function setResorteviolenciaRating($resorteviolenciaRating) { $this->resorteviolenciaRating = $resorteviolenciaRating; @@ -5908,7 +5773,6 @@ public function getResorteviolenciaRating() { return $this->resorteviolenciaRating; } - public function setRtcRating($rtcRating) { $this->rtcRating = $rtcRating; @@ -5918,7 +5782,6 @@ public function getRtcRating() { return $this->rtcRating; } - public function setRteRating($rteRating) { $this->rteRating = $rteRating; @@ -5928,7 +5791,6 @@ public function getRteRating() { return $this->rteRating; } - public function setRussiaRating($russiaRating) { $this->russiaRating = $russiaRating; @@ -5938,7 +5800,6 @@ public function getRussiaRating() { return $this->russiaRating; } - public function setSkfilmRating($skfilmRating) { $this->skfilmRating = $skfilmRating; @@ -5948,7 +5809,6 @@ public function getSkfilmRating() { return $this->skfilmRating; } - public function setSmaisRating($smaisRating) { $this->smaisRating = $smaisRating; @@ -5958,7 +5818,6 @@ public function getSmaisRating() { return $this->smaisRating; } - public function setSmsaRating($smsaRating) { $this->smsaRating = $smsaRating; @@ -5968,7 +5827,6 @@ public function getSmsaRating() { return $this->smsaRating; } - public function setTvpgRating($tvpgRating) { $this->tvpgRating = $tvpgRating; @@ -5978,7 +5836,6 @@ public function getTvpgRating() { return $this->tvpgRating; } - public function setYtRating($ytRating) { $this->ytRating = $ytRating; @@ -5988,6 +5845,7 @@ public function getYtRating() { return $this->ytRating; } + } class Google_Service_YouTube_GeoPoint extends Google_Model @@ -6007,7 +5865,6 @@ public function getAltitude() { return $this->altitude; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -6017,7 +5874,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -6027,6 +5883,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_YouTube_GuideCategory extends Google_Model @@ -6048,7 +5905,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -6058,7 +5914,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6068,7 +5923,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) { $this->snippet = $snippet; @@ -6078,6 +5932,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection @@ -6107,7 +5962,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -6117,7 +5971,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -6127,7 +5980,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6137,7 +5989,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6147,7 +5998,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -6157,7 +6007,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -6167,7 +6016,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -6177,7 +6025,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -6187,6 +6034,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_GuideCategorySnippet extends Google_Model @@ -6205,7 +6053,6 @@ public function getChannelId() { return $this->channelId; } - public function setTitle($title) { $this->title = $title; @@ -6215,6 +6062,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_I18nLanguage extends Google_Model @@ -6236,7 +6084,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -6246,7 +6093,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6256,7 +6102,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) { $this->snippet = $snippet; @@ -6266,6 +6111,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection @@ -6289,7 +6135,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -6299,7 +6144,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -6309,7 +6153,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6319,7 +6162,6 @@ public function getKind() { return $this->kind; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -6329,6 +6171,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model @@ -6347,7 +6190,6 @@ public function getHl() { return $this->hl; } - public function setName($name) { $this->name = $name; @@ -6357,6 +6199,7 @@ public function getName() { return $this->name; } + } class Google_Service_YouTube_I18nRegion extends Google_Model @@ -6378,7 +6221,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -6388,7 +6230,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6398,7 +6239,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) { $this->snippet = $snippet; @@ -6408,6 +6248,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection @@ -6431,7 +6272,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -6441,7 +6281,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -6451,7 +6290,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6461,7 +6299,6 @@ public function getKind() { return $this->kind; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -6471,6 +6308,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_I18nRegionSnippet extends Google_Model @@ -6489,7 +6327,6 @@ public function getGl() { return $this->gl; } - public function setName($name) { $this->name = $name; @@ -6499,6 +6336,7 @@ public function getName() { return $this->name; } + } class Google_Service_YouTube_ImageSettings extends Google_Model @@ -6542,7 +6380,6 @@ public function getBackgroundImageUrl() { return $this->backgroundImageUrl; } - public function setBannerExternalUrl($bannerExternalUrl) { $this->bannerExternalUrl = $bannerExternalUrl; @@ -6552,7 +6389,6 @@ public function getBannerExternalUrl() { return $this->bannerExternalUrl; } - public function setBannerImageUrl($bannerImageUrl) { $this->bannerImageUrl = $bannerImageUrl; @@ -6562,7 +6398,6 @@ public function getBannerImageUrl() { return $this->bannerImageUrl; } - public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) { $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; @@ -6572,7 +6407,6 @@ public function getBannerMobileExtraHdImageUrl() { return $this->bannerMobileExtraHdImageUrl; } - public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) { $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; @@ -6582,7 +6416,6 @@ public function getBannerMobileHdImageUrl() { return $this->bannerMobileHdImageUrl; } - public function setBannerMobileImageUrl($bannerMobileImageUrl) { $this->bannerMobileImageUrl = $bannerMobileImageUrl; @@ -6592,7 +6425,6 @@ public function getBannerMobileImageUrl() { return $this->bannerMobileImageUrl; } - public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) { $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; @@ -6602,7 +6434,6 @@ public function getBannerMobileLowImageUrl() { return $this->bannerMobileLowImageUrl; } - public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) { $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; @@ -6612,7 +6443,6 @@ public function getBannerMobileMediumHdImageUrl() { return $this->bannerMobileMediumHdImageUrl; } - public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) { $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; @@ -6622,7 +6452,6 @@ public function getBannerTabletExtraHdImageUrl() { return $this->bannerTabletExtraHdImageUrl; } - public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) { $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; @@ -6632,7 +6461,6 @@ public function getBannerTabletHdImageUrl() { return $this->bannerTabletHdImageUrl; } - public function setBannerTabletImageUrl($bannerTabletImageUrl) { $this->bannerTabletImageUrl = $bannerTabletImageUrl; @@ -6642,7 +6470,6 @@ public function getBannerTabletImageUrl() { return $this->bannerTabletImageUrl; } - public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) { $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; @@ -6652,7 +6479,6 @@ public function getBannerTabletLowImageUrl() { return $this->bannerTabletLowImageUrl; } - public function setBannerTvHighImageUrl($bannerTvHighImageUrl) { $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; @@ -6662,7 +6488,6 @@ public function getBannerTvHighImageUrl() { return $this->bannerTvHighImageUrl; } - public function setBannerTvImageUrl($bannerTvImageUrl) { $this->bannerTvImageUrl = $bannerTvImageUrl; @@ -6672,7 +6497,6 @@ public function getBannerTvImageUrl() { return $this->bannerTvImageUrl; } - public function setBannerTvLowImageUrl($bannerTvLowImageUrl) { $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; @@ -6682,7 +6506,6 @@ public function getBannerTvLowImageUrl() { return $this->bannerTvLowImageUrl; } - public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) { $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; @@ -6692,7 +6515,6 @@ public function getBannerTvMediumImageUrl() { return $this->bannerTvMediumImageUrl; } - public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) { $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; @@ -6702,7 +6524,6 @@ public function getLargeBrandedBannerImageImapScript() { return $this->largeBrandedBannerImageImapScript; } - public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) { $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; @@ -6712,7 +6533,6 @@ public function getLargeBrandedBannerImageUrl() { return $this->largeBrandedBannerImageUrl; } - public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) { $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; @@ -6722,7 +6542,6 @@ public function getSmallBrandedBannerImageImapScript() { return $this->smallBrandedBannerImageImapScript; } - public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) { $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; @@ -6732,7 +6551,6 @@ public function getSmallBrandedBannerImageUrl() { return $this->smallBrandedBannerImageUrl; } - public function setTrackingImageUrl($trackingImageUrl) { $this->trackingImageUrl = $trackingImageUrl; @@ -6742,7 +6560,6 @@ public function getTrackingImageUrl() { return $this->trackingImageUrl; } - public function setWatchIconImageUrl($watchIconImageUrl) { $this->watchIconImageUrl = $watchIconImageUrl; @@ -6752,6 +6569,7 @@ public function getWatchIconImageUrl() { return $this->watchIconImageUrl; } + } class Google_Service_YouTube_IngestionInfo extends Google_Model @@ -6771,7 +6589,6 @@ public function getBackupIngestionAddress() { return $this->backupIngestionAddress; } - public function setIngestionAddress($ingestionAddress) { $this->ingestionAddress = $ingestionAddress; @@ -6781,7 +6598,6 @@ public function getIngestionAddress() { return $this->ingestionAddress; } - public function setStreamName($streamName) { $this->streamName = $streamName; @@ -6791,6 +6607,7 @@ public function getStreamName() { return $this->streamName; } + } class Google_Service_YouTube_InvideoBranding extends Google_Model @@ -6814,7 +6631,6 @@ public function getImageBytes() { return $this->imageBytes; } - public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; @@ -6824,7 +6640,6 @@ public function getImageUrl() { return $this->imageUrl; } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) { $this->position = $position; @@ -6834,7 +6649,6 @@ public function getPosition() { return $this->position; } - public function setTargetChannelId($targetChannelId) { $this->targetChannelId = $targetChannelId; @@ -6844,7 +6658,6 @@ public function getTargetChannelId() { return $this->targetChannelId; } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { $this->timing = $timing; @@ -6854,6 +6667,7 @@ public function getTiming() { return $this->timing; } + } class Google_Service_YouTube_InvideoPosition extends Google_Model @@ -6872,7 +6686,6 @@ public function getCornerPosition() { return $this->cornerPosition; } - public function setType($type) { $this->type = $type; @@ -6882,6 +6695,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTube_InvideoPromotion extends Google_Collection @@ -6906,7 +6720,6 @@ public function getDefaultTiming() { return $this->defaultTiming; } - public function setItems($items) { $this->items = $items; @@ -6916,7 +6729,6 @@ public function getItems() { return $this->items; } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) { $this->position = $position; @@ -6926,7 +6738,6 @@ public function getPosition() { return $this->position; } - public function setUseSmartTiming($useSmartTiming) { $this->useSmartTiming = $useSmartTiming; @@ -6936,6 +6747,7 @@ public function getUseSmartTiming() { return $this->useSmartTiming; } + } class Google_Service_YouTube_InvideoTiming extends Google_Model @@ -6955,7 +6767,6 @@ public function getDurationMs() { return $this->durationMs; } - public function setOffsetMs($offsetMs) { $this->offsetMs = $offsetMs; @@ -6965,7 +6776,6 @@ public function getOffsetMs() { return $this->offsetMs; } - public function setType($type) { $this->type = $type; @@ -6975,6 +6785,7 @@ public function getType() { return $this->type; } + } class Google_Service_YouTube_LiveBroadcast extends Google_Model @@ -7000,7 +6811,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -7010,7 +6820,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -7020,7 +6829,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7030,7 +6838,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet) { $this->snippet = $snippet; @@ -7040,7 +6847,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) { $this->status = $status; @@ -7050,6 +6856,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model @@ -7075,7 +6882,6 @@ public function getBoundStreamId() { return $this->boundStreamId; } - public function setEnableClosedCaptions($enableClosedCaptions) { $this->enableClosedCaptions = $enableClosedCaptions; @@ -7085,7 +6891,6 @@ public function getEnableClosedCaptions() { return $this->enableClosedCaptions; } - public function setEnableContentEncryption($enableContentEncryption) { $this->enableContentEncryption = $enableContentEncryption; @@ -7095,7 +6900,6 @@ public function getEnableContentEncryption() { return $this->enableContentEncryption; } - public function setEnableDvr($enableDvr) { $this->enableDvr = $enableDvr; @@ -7105,7 +6909,6 @@ public function getEnableDvr() { return $this->enableDvr; } - public function setEnableEmbed($enableEmbed) { $this->enableEmbed = $enableEmbed; @@ -7115,7 +6918,6 @@ public function getEnableEmbed() { return $this->enableEmbed; } - public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) { $this->monitorStream = $monitorStream; @@ -7125,7 +6927,6 @@ public function getMonitorStream() { return $this->monitorStream; } - public function setRecordFromStart($recordFromStart) { $this->recordFromStart = $recordFromStart; @@ -7135,7 +6936,6 @@ public function getRecordFromStart() { return $this->recordFromStart; } - public function setStartWithSlate($startWithSlate) { $this->startWithSlate = $startWithSlate; @@ -7145,6 +6945,7 @@ public function getStartWithSlate() { return $this->startWithSlate; } + } class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection @@ -7174,7 +6975,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -7184,7 +6984,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -7194,7 +6993,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7204,7 +7002,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7214,7 +7011,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -7224,7 +7020,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -7234,7 +7029,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -7244,7 +7038,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -7254,6 +7047,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model @@ -7280,7 +7074,6 @@ public function getActualEndTime() { return $this->actualEndTime; } - public function setActualStartTime($actualStartTime) { $this->actualStartTime = $actualStartTime; @@ -7290,7 +7083,6 @@ public function getActualStartTime() { return $this->actualStartTime; } - public function setChannelId($channelId) { $this->channelId = $channelId; @@ -7300,7 +7092,6 @@ public function getChannelId() { return $this->channelId; } - public function setDescription($description) { $this->description = $description; @@ -7310,7 +7101,6 @@ public function getDescription() { return $this->description; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -7320,7 +7110,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setScheduledEndTime($scheduledEndTime) { $this->scheduledEndTime = $scheduledEndTime; @@ -7330,7 +7119,6 @@ public function getScheduledEndTime() { return $this->scheduledEndTime; } - public function setScheduledStartTime($scheduledStartTime) { $this->scheduledStartTime = $scheduledStartTime; @@ -7340,7 +7128,6 @@ public function getScheduledStartTime() { return $this->scheduledStartTime; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -7350,7 +7137,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -7360,6 +7146,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model @@ -7380,7 +7167,6 @@ public function getLifeCycleStatus() { return $this->lifeCycleStatus; } - public function setLiveBroadcastPriority($liveBroadcastPriority) { $this->liveBroadcastPriority = $liveBroadcastPriority; @@ -7390,7 +7176,6 @@ public function getLiveBroadcastPriority() { return $this->liveBroadcastPriority; } - public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; @@ -7400,7 +7185,6 @@ public function getPrivacyStatus() { return $this->privacyStatus; } - public function setRecordingStatus($recordingStatus) { $this->recordingStatus = $recordingStatus; @@ -7410,6 +7194,7 @@ public function getRecordingStatus() { return $this->recordingStatus; } + } class Google_Service_YouTube_LiveStream extends Google_Model @@ -7437,7 +7222,6 @@ public function getCdn() { return $this->cdn; } - public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) { $this->contentDetails = $contentDetails; @@ -7447,7 +7231,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -7457,7 +7240,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -7467,7 +7249,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7477,7 +7258,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) { $this->snippet = $snippet; @@ -7487,7 +7267,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) { $this->status = $status; @@ -7497,6 +7276,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model @@ -7515,7 +7295,6 @@ public function getClosedCaptionsIngestionUrl() { return $this->closedCaptionsIngestionUrl; } - public function setIsReusable($isReusable) { $this->isReusable = $isReusable; @@ -7525,6 +7304,7 @@ public function getIsReusable() { return $this->isReusable; } + } class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection @@ -7554,7 +7334,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -7564,7 +7343,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -7574,7 +7352,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7584,7 +7361,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7594,7 +7370,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -7604,7 +7379,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -7614,7 +7388,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -7624,7 +7397,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -7634,6 +7406,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_LiveStreamSnippet extends Google_Model @@ -7654,7 +7427,6 @@ public function getChannelId() { return $this->channelId; } - public function setDescription($description) { $this->description = $description; @@ -7664,7 +7436,6 @@ public function getDescription() { return $this->description; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -7674,7 +7445,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setTitle($title) { $this->title = $title; @@ -7684,6 +7454,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_LiveStreamStatus extends Google_Model @@ -7701,6 +7472,7 @@ public function getStreamStatus() { return $this->streamStatus; } + } class Google_Service_YouTube_LocalizedProperty extends Google_Collection @@ -7721,7 +7493,6 @@ public function getDefault() { return $this->default; } - public function setLocalized($localized) { $this->localized = $localized; @@ -7731,6 +7502,7 @@ public function getLocalized() { return $this->localized; } + } class Google_Service_YouTube_LocalizedString extends Google_Model @@ -7749,7 +7521,6 @@ public function getLanguage() { return $this->language; } - public function setValue($value) { $this->value = $value; @@ -7759,6 +7530,7 @@ public function getValue() { return $this->value; } + } class Google_Service_YouTube_MonitorStreamInfo extends Google_Model @@ -7778,7 +7550,6 @@ public function getBroadcastStreamDelayMs() { return $this->broadcastStreamDelayMs; } - public function setEmbedHtml($embedHtml) { $this->embedHtml = $embedHtml; @@ -7788,7 +7559,6 @@ public function getEmbedHtml() { return $this->embedHtml; } - public function setEnableMonitorStream($enableMonitorStream) { $this->enableMonitorStream = $enableMonitorStream; @@ -7798,6 +7568,7 @@ public function getEnableMonitorStream() { return $this->enableMonitorStream; } + } class Google_Service_YouTube_PageInfo extends Google_Model @@ -7816,7 +7587,6 @@ public function getResultsPerPage() { return $this->resultsPerPage; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -7826,6 +7596,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_YouTube_Playlist extends Google_Model @@ -7853,7 +7624,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -7863,7 +7633,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -7873,7 +7642,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7883,7 +7651,6 @@ public function getKind() { return $this->kind; } - public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) { $this->player = $player; @@ -7893,7 +7660,6 @@ public function getPlayer() { return $this->player; } - public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet) { $this->snippet = $snippet; @@ -7903,7 +7669,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatus(Google_Service_YouTube_PlaylistStatus $status) { $this->status = $status; @@ -7913,6 +7678,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_YouTube_PlaylistContentDetails extends Google_Model @@ -7930,6 +7696,7 @@ public function getItemCount() { return $this->itemCount; } + } class Google_Service_YouTube_PlaylistItem extends Google_Model @@ -7955,7 +7722,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -7965,7 +7731,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -7975,7 +7740,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7985,7 +7749,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) { $this->snippet = $snippet; @@ -7995,7 +7758,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) { $this->status = $status; @@ -8005,6 +7767,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model @@ -8025,7 +7788,6 @@ public function getEndAt() { return $this->endAt; } - public function setNote($note) { $this->note = $note; @@ -8035,7 +7797,6 @@ public function getNote() { return $this->note; } - public function setStartAt($startAt) { $this->startAt = $startAt; @@ -8045,7 +7806,6 @@ public function getStartAt() { return $this->startAt; } - public function setVideoId($videoId) { $this->videoId = $videoId; @@ -8055,6 +7815,7 @@ public function getVideoId() { return $this->videoId; } + } class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection @@ -8084,7 +7845,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -8094,7 +7854,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -8104,7 +7863,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8114,7 +7872,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8124,7 +7881,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -8134,7 +7890,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -8144,7 +7899,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -8154,7 +7908,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -8164,6 +7917,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model @@ -8191,7 +7945,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -8201,7 +7954,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -8211,7 +7963,6 @@ public function getDescription() { return $this->description; } - public function setPlaylistId($playlistId) { $this->playlistId = $playlistId; @@ -8221,7 +7972,6 @@ public function getPlaylistId() { return $this->playlistId; } - public function setPosition($position) { $this->position = $position; @@ -8231,7 +7981,6 @@ public function getPosition() { return $this->position; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -8241,7 +7990,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; @@ -8251,7 +7999,6 @@ public function getResourceId() { return $this->resourceId; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -8261,7 +8008,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -8271,6 +8017,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_PlaylistItemStatus extends Google_Model @@ -8288,6 +8035,7 @@ public function getPrivacyStatus() { return $this->privacyStatus; } + } class Google_Service_YouTube_PlaylistListResponse extends Google_Collection @@ -8317,7 +8065,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -8327,7 +8074,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -8337,7 +8083,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8347,7 +8092,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8357,7 +8101,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -8367,7 +8110,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -8377,7 +8119,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -8387,7 +8128,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -8397,6 +8137,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_PlaylistPlayer extends Google_Model @@ -8414,6 +8155,7 @@ public function getEmbedHtml() { return $this->embedHtml; } + } class Google_Service_YouTube_PlaylistSnippet extends Google_Collection @@ -8439,7 +8181,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -8449,7 +8190,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -8459,7 +8199,6 @@ public function getDescription() { return $this->description; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -8469,7 +8208,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setTags($tags) { $this->tags = $tags; @@ -8479,7 +8217,6 @@ public function getTags() { return $this->tags; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -8489,7 +8226,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -8499,6 +8235,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_PlaylistStatus extends Google_Model @@ -8516,6 +8253,7 @@ public function getPrivacyStatus() { return $this->privacyStatus; } + } class Google_Service_YouTube_PromotedItem extends Google_Model @@ -8538,7 +8276,6 @@ public function getCustomMessage() { return $this->customMessage; } - public function setId(Google_Service_YouTube_PromotedItemId $id) { $this->id = $id; @@ -8548,7 +8285,6 @@ public function getId() { return $this->id; } - public function setPromotedByContentOwner($promotedByContentOwner) { $this->promotedByContentOwner = $promotedByContentOwner; @@ -8558,7 +8294,6 @@ public function getPromotedByContentOwner() { return $this->promotedByContentOwner; } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { $this->timing = $timing; @@ -8568,6 +8303,7 @@ public function getTiming() { return $this->timing; } + } class Google_Service_YouTube_PromotedItemId extends Google_Model @@ -8588,7 +8324,6 @@ public function getRecentlyUploadedBy() { return $this->recentlyUploadedBy; } - public function setType($type) { $this->type = $type; @@ -8598,7 +8333,6 @@ public function getType() { return $this->type; } - public function setVideoId($videoId) { $this->videoId = $videoId; @@ -8608,7 +8342,6 @@ public function getVideoId() { return $this->videoId; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -8618,6 +8351,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_YouTube_PropertyValue extends Google_Model @@ -8636,7 +8370,6 @@ public function getProperty() { return $this->property; } - public function setValue($value) { $this->value = $value; @@ -8646,6 +8379,7 @@ public function getValue() { return $this->value; } + } class Google_Service_YouTube_ResourceId extends Google_Model @@ -8666,7 +8400,6 @@ public function getChannelId() { return $this->channelId; } - public function setKind($kind) { $this->kind = $kind; @@ -8676,7 +8409,6 @@ public function getKind() { return $this->kind; } - public function setPlaylistId($playlistId) { $this->playlistId = $playlistId; @@ -8686,7 +8418,6 @@ public function getPlaylistId() { return $this->playlistId; } - public function setVideoId($videoId) { $this->videoId = $videoId; @@ -8696,6 +8427,7 @@ public function getVideoId() { return $this->videoId; } + } class Google_Service_YouTube_SearchListResponse extends Google_Collection @@ -8725,7 +8457,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -8735,7 +8466,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -8745,7 +8475,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8755,7 +8484,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8765,7 +8493,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -8775,7 +8502,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -8785,7 +8511,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -8795,7 +8520,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -8805,6 +8529,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_SearchResult extends Google_Model @@ -8827,7 +8552,6 @@ public function getEtag() { return $this->etag; } - public function setId(Google_Service_YouTube_ResourceId $id) { $this->id = $id; @@ -8837,7 +8561,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8847,7 +8570,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) { $this->snippet = $snippet; @@ -8857,6 +8579,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_SearchResultSnippet extends Google_Model @@ -8881,7 +8604,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -8891,7 +8613,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -8901,7 +8622,6 @@ public function getDescription() { return $this->description; } - public function setLiveBroadcastContent($liveBroadcastContent) { $this->liveBroadcastContent = $liveBroadcastContent; @@ -8911,7 +8631,6 @@ public function getLiveBroadcastContent() { return $this->liveBroadcastContent; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -8921,7 +8640,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -8931,7 +8649,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -8941,6 +8658,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_Subscription extends Google_Model @@ -8966,7 +8684,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setEtag($etag) { $this->etag = $etag; @@ -8976,7 +8693,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -8986,7 +8702,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8996,7 +8711,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) { $this->snippet = $snippet; @@ -9006,7 +8720,6 @@ public function getSnippet() { return $this->snippet; } - public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) { $this->subscriberSnippet = $subscriberSnippet; @@ -9016,6 +8729,7 @@ public function getSubscriberSnippet() { return $this->subscriberSnippet; } + } class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model @@ -9035,7 +8749,6 @@ public function getActivityType() { return $this->activityType; } - public function setNewItemCount($newItemCount) { $this->newItemCount = $newItemCount; @@ -9045,7 +8758,6 @@ public function getNewItemCount() { return $this->newItemCount; } - public function setTotalItemCount($totalItemCount) { $this->totalItemCount = $totalItemCount; @@ -9055,6 +8767,7 @@ public function getTotalItemCount() { return $this->totalItemCount; } + } class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection @@ -9084,7 +8797,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -9094,7 +8806,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -9104,7 +8815,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9114,7 +8824,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -9124,7 +8833,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -9134,7 +8842,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -9144,7 +8851,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -9154,7 +8860,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -9164,6 +8869,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_SubscriptionSnippet extends Google_Model @@ -9189,7 +8895,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -9199,7 +8904,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -9209,7 +8913,6 @@ public function getDescription() { return $this->description; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -9219,7 +8922,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; @@ -9229,7 +8931,6 @@ public function getResourceId() { return $this->resourceId; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -9239,7 +8940,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -9249,6 +8949,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model @@ -9270,7 +8971,6 @@ public function getChannelId() { return $this->channelId; } - public function setDescription($description) { $this->description = $description; @@ -9280,7 +8980,6 @@ public function getDescription() { return $this->description; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -9290,7 +8989,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -9300,6 +8998,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_Thumbnail extends Google_Model @@ -9319,7 +9018,6 @@ public function getHeight() { return $this->height; } - public function setUrl($url) { $this->url = $url; @@ -9329,7 +9027,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -9339,6 +9036,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_YouTube_ThumbnailDetails extends Google_Model @@ -9365,7 +9063,6 @@ public function getDefault() { return $this->default; } - public function setHigh(Google_Service_YouTube_Thumbnail $high) { $this->high = $high; @@ -9375,7 +9072,6 @@ public function getHigh() { return $this->high; } - public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) { $this->maxres = $maxres; @@ -9385,7 +9081,6 @@ public function getMaxres() { return $this->maxres; } - public function setMedium(Google_Service_YouTube_Thumbnail $medium) { $this->medium = $medium; @@ -9395,7 +9090,6 @@ public function getMedium() { return $this->medium; } - public function setStandard(Google_Service_YouTube_Thumbnail $standard) { $this->standard = $standard; @@ -9405,6 +9099,7 @@ public function getStandard() { return $this->standard; } + } class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection @@ -9428,7 +9123,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -9438,7 +9132,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -9448,7 +9141,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9458,7 +9150,6 @@ public function getKind() { return $this->kind; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -9468,12 +9159,15 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_TokenPagination extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_YouTube_Video extends Google_Model @@ -9523,7 +9217,6 @@ public function getAgeGating() { return $this->ageGating; } - public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) { $this->contentDetails = $contentDetails; @@ -9533,7 +9226,6 @@ public function getContentDetails() { return $this->contentDetails; } - public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) { $this->conversionPings = $conversionPings; @@ -9543,7 +9235,6 @@ public function getConversionPings() { return $this->conversionPings; } - public function setEtag($etag) { $this->etag = $etag; @@ -9553,7 +9244,6 @@ public function getEtag() { return $this->etag; } - public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) { $this->fileDetails = $fileDetails; @@ -9563,7 +9253,6 @@ public function getFileDetails() { return $this->fileDetails; } - public function setId($id) { $this->id = $id; @@ -9573,7 +9262,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9583,7 +9271,6 @@ public function getKind() { return $this->kind; } - public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) { $this->liveStreamingDetails = $liveStreamingDetails; @@ -9593,7 +9280,6 @@ public function getLiveStreamingDetails() { return $this->liveStreamingDetails; } - public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails) { $this->monetizationDetails = $monetizationDetails; @@ -9603,7 +9289,6 @@ public function getMonetizationDetails() { return $this->monetizationDetails; } - public function setPlayer(Google_Service_YouTube_VideoPlayer $player) { $this->player = $player; @@ -9613,7 +9298,6 @@ public function getPlayer() { return $this->player; } - public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails) { $this->processingDetails = $processingDetails; @@ -9623,7 +9307,6 @@ public function getProcessingDetails() { return $this->processingDetails; } - public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails) { $this->projectDetails = $projectDetails; @@ -9633,7 +9316,6 @@ public function getProjectDetails() { return $this->projectDetails; } - public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails) { $this->recordingDetails = $recordingDetails; @@ -9643,7 +9325,6 @@ public function getRecordingDetails() { return $this->recordingDetails; } - public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet) { $this->snippet = $snippet; @@ -9653,7 +9334,6 @@ public function getSnippet() { return $this->snippet; } - public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics) { $this->statistics = $statistics; @@ -9663,7 +9343,6 @@ public function getStatistics() { return $this->statistics; } - public function setStatus(Google_Service_YouTube_VideoStatus $status) { $this->status = $status; @@ -9673,7 +9352,6 @@ public function getStatus() { return $this->status; } - public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions) { $this->suggestions = $suggestions; @@ -9683,7 +9361,6 @@ public function getSuggestions() { return $this->suggestions; } - public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails) { $this->topicDetails = $topicDetails; @@ -9693,6 +9370,7 @@ public function getTopicDetails() { return $this->topicDetails; } + } class Google_Service_YouTube_VideoAgeGating extends Google_Model @@ -9712,7 +9390,6 @@ public function getAlcoholContent() { return $this->alcoholContent; } - public function setRestricted($restricted) { $this->restricted = $restricted; @@ -9722,7 +9399,6 @@ public function getRestricted() { return $this->restricted; } - public function setVideoGameRating($videoGameRating) { $this->videoGameRating = $videoGameRating; @@ -9732,6 +9408,7 @@ public function getVideoGameRating() { return $this->videoGameRating; } + } class Google_Service_YouTube_VideoCategory extends Google_Model @@ -9753,7 +9430,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -9763,7 +9439,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9773,7 +9448,6 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) { $this->snippet = $snippet; @@ -9783,6 +9457,7 @@ public function getSnippet() { return $this->snippet; } + } class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection @@ -9812,7 +9487,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -9822,7 +9496,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -9832,7 +9505,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9842,7 +9514,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -9852,7 +9523,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -9862,7 +9532,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -9872,7 +9541,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -9882,7 +9550,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -9892,6 +9559,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_VideoCategorySnippet extends Google_Model @@ -9911,7 +9579,6 @@ public function getAssignable() { return $this->assignable; } - public function setChannelId($channelId) { $this->channelId = $channelId; @@ -9921,7 +9588,6 @@ public function getChannelId() { return $this->channelId; } - public function setTitle($title) { $this->title = $title; @@ -9931,6 +9597,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_VideoContentDetails extends Google_Model @@ -9958,7 +9625,6 @@ public function getCaption() { return $this->caption; } - public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) { $this->contentRating = $contentRating; @@ -9968,7 +9634,6 @@ public function getContentRating() { return $this->contentRating; } - public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) { $this->countryRestriction = $countryRestriction; @@ -9978,7 +9643,6 @@ public function getCountryRestriction() { return $this->countryRestriction; } - public function setDefinition($definition) { $this->definition = $definition; @@ -9988,7 +9652,6 @@ public function getDefinition() { return $this->definition; } - public function setDimension($dimension) { $this->dimension = $dimension; @@ -9998,7 +9661,6 @@ public function getDimension() { return $this->dimension; } - public function setDuration($duration) { $this->duration = $duration; @@ -10008,7 +9670,6 @@ public function getDuration() { return $this->duration; } - public function setLicensedContent($licensedContent) { $this->licensedContent = $licensedContent; @@ -10018,7 +9679,6 @@ public function getLicensedContent() { return $this->licensedContent; } - public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) { $this->regionRestriction = $regionRestriction; @@ -10028,6 +9688,7 @@ public function getRegionRestriction() { return $this->regionRestriction; } + } class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection @@ -10047,7 +9708,6 @@ public function getAllowed() { return $this->allowed; } - public function setBlocked($blocked) { $this->blocked = $blocked; @@ -10057,6 +9717,7 @@ public function getBlocked() { return $this->blocked; } + } class Google_Service_YouTube_VideoConversionPing extends Google_Model @@ -10075,7 +9736,6 @@ public function getContext() { return $this->context; } - public function setConversionUrl($conversionUrl) { $this->conversionUrl = $conversionUrl; @@ -10085,6 +9745,7 @@ public function getConversionUrl() { return $this->conversionUrl; } + } class Google_Service_YouTube_VideoConversionPings extends Google_Collection @@ -10104,6 +9765,7 @@ public function getPings() { return $this->pings; } + } class Google_Service_YouTube_VideoFileDetails extends Google_Collection @@ -10134,7 +9796,6 @@ public function getAudioStreams() { return $this->audioStreams; } - public function setBitrateBps($bitrateBps) { $this->bitrateBps = $bitrateBps; @@ -10144,7 +9805,6 @@ public function getBitrateBps() { return $this->bitrateBps; } - public function setContainer($container) { $this->container = $container; @@ -10154,7 +9814,6 @@ public function getContainer() { return $this->container; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -10164,7 +9823,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setDurationMs($durationMs) { $this->durationMs = $durationMs; @@ -10174,7 +9832,6 @@ public function getDurationMs() { return $this->durationMs; } - public function setFileName($fileName) { $this->fileName = $fileName; @@ -10184,7 +9841,6 @@ public function getFileName() { return $this->fileName; } - public function setFileSize($fileSize) { $this->fileSize = $fileSize; @@ -10194,7 +9850,6 @@ public function getFileSize() { return $this->fileSize; } - public function setFileType($fileType) { $this->fileType = $fileType; @@ -10204,7 +9859,6 @@ public function getFileType() { return $this->fileType; } - public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) { $this->recordingLocation = $recordingLocation; @@ -10214,7 +9868,6 @@ public function getRecordingLocation() { return $this->recordingLocation; } - public function setVideoStreams($videoStreams) { $this->videoStreams = $videoStreams; @@ -10224,6 +9877,7 @@ public function getVideoStreams() { return $this->videoStreams; } + } class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model @@ -10244,7 +9898,6 @@ public function getBitrateBps() { return $this->bitrateBps; } - public function setChannelCount($channelCount) { $this->channelCount = $channelCount; @@ -10254,7 +9907,6 @@ public function getChannelCount() { return $this->channelCount; } - public function setCodec($codec) { $this->codec = $codec; @@ -10264,7 +9916,6 @@ public function getCodec() { return $this->codec; } - public function setVendor($vendor) { $this->vendor = $vendor; @@ -10274,6 +9925,7 @@ public function getVendor() { return $this->vendor; } + } class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model @@ -10298,7 +9950,6 @@ public function getAspectRatio() { return $this->aspectRatio; } - public function setBitrateBps($bitrateBps) { $this->bitrateBps = $bitrateBps; @@ -10308,7 +9959,6 @@ public function getBitrateBps() { return $this->bitrateBps; } - public function setCodec($codec) { $this->codec = $codec; @@ -10318,7 +9968,6 @@ public function getCodec() { return $this->codec; } - public function setFrameRateFps($frameRateFps) { $this->frameRateFps = $frameRateFps; @@ -10328,7 +9977,6 @@ public function getFrameRateFps() { return $this->frameRateFps; } - public function setHeightPixels($heightPixels) { $this->heightPixels = $heightPixels; @@ -10338,7 +9986,6 @@ public function getHeightPixels() { return $this->heightPixels; } - public function setRotation($rotation) { $this->rotation = $rotation; @@ -10348,7 +9995,6 @@ public function getRotation() { return $this->rotation; } - public function setVendor($vendor) { $this->vendor = $vendor; @@ -10358,7 +10004,6 @@ public function getVendor() { return $this->vendor; } - public function setWidthPixels($widthPixels) { $this->widthPixels = $widthPixels; @@ -10368,6 +10013,7 @@ public function getWidthPixels() { return $this->widthPixels; } + } class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection @@ -10389,7 +10035,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -10399,7 +10044,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -10409,6 +10053,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_YouTube_VideoListResponse extends Google_Collection @@ -10438,7 +10083,6 @@ public function getEtag() { return $this->etag; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -10448,7 +10092,6 @@ public function getEventId() { return $this->eventId; } - public function setItems($items) { $this->items = $items; @@ -10458,7 +10101,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -10468,7 +10110,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -10478,7 +10119,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -10488,7 +10128,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -10498,7 +10137,6 @@ public function getPrevPageToken() { return $this->prevPageToken; } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -10508,7 +10146,6 @@ public function getTokenPagination() { return $this->tokenPagination; } - public function setVisitorId($visitorId) { $this->visitorId = $visitorId; @@ -10518,6 +10155,7 @@ public function getVisitorId() { return $this->visitorId; } + } class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model @@ -10539,7 +10177,6 @@ public function getActualEndTime() { return $this->actualEndTime; } - public function setActualStartTime($actualStartTime) { $this->actualStartTime = $actualStartTime; @@ -10549,7 +10186,6 @@ public function getActualStartTime() { return $this->actualStartTime; } - public function setConcurrentViewers($concurrentViewers) { $this->concurrentViewers = $concurrentViewers; @@ -10559,7 +10195,6 @@ public function getConcurrentViewers() { return $this->concurrentViewers; } - public function setScheduledEndTime($scheduledEndTime) { $this->scheduledEndTime = $scheduledEndTime; @@ -10569,7 +10204,6 @@ public function getScheduledEndTime() { return $this->scheduledEndTime; } - public function setScheduledStartTime($scheduledStartTime) { $this->scheduledStartTime = $scheduledStartTime; @@ -10579,6 +10213,7 @@ public function getScheduledStartTime() { return $this->scheduledStartTime; } + } class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model @@ -10597,6 +10232,7 @@ public function getAccess() { return $this->access; } + } class Google_Service_YouTube_VideoPlayer extends Google_Model @@ -10614,6 +10250,7 @@ public function getEmbedHtml() { return $this->embedHtml; } + } class Google_Service_YouTube_VideoProcessingDetails extends Google_Model @@ -10639,7 +10276,6 @@ public function getEditorSuggestionsAvailability() { return $this->editorSuggestionsAvailability; } - public function setFileDetailsAvailability($fileDetailsAvailability) { $this->fileDetailsAvailability = $fileDetailsAvailability; @@ -10649,7 +10285,6 @@ public function getFileDetailsAvailability() { return $this->fileDetailsAvailability; } - public function setProcessingFailureReason($processingFailureReason) { $this->processingFailureReason = $processingFailureReason; @@ -10659,7 +10294,6 @@ public function getProcessingFailureReason() { return $this->processingFailureReason; } - public function setProcessingIssuesAvailability($processingIssuesAvailability) { $this->processingIssuesAvailability = $processingIssuesAvailability; @@ -10669,7 +10303,6 @@ public function getProcessingIssuesAvailability() { return $this->processingIssuesAvailability; } - public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) { $this->processingProgress = $processingProgress; @@ -10679,7 +10312,6 @@ public function getProcessingProgress() { return $this->processingProgress; } - public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -10689,7 +10321,6 @@ public function getProcessingStatus() { return $this->processingStatus; } - public function setTagSuggestionsAvailability($tagSuggestionsAvailability) { $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; @@ -10699,7 +10330,6 @@ public function getTagSuggestionsAvailability() { return $this->tagSuggestionsAvailability; } - public function setThumbnailsAvailability($thumbnailsAvailability) { $this->thumbnailsAvailability = $thumbnailsAvailability; @@ -10709,6 +10339,7 @@ public function getThumbnailsAvailability() { return $this->thumbnailsAvailability; } + } class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model @@ -10728,7 +10359,6 @@ public function getPartsProcessed() { return $this->partsProcessed; } - public function setPartsTotal($partsTotal) { $this->partsTotal = $partsTotal; @@ -10738,7 +10368,6 @@ public function getPartsTotal() { return $this->partsTotal; } - public function setTimeLeftMs($timeLeftMs) { $this->timeLeftMs = $timeLeftMs; @@ -10748,6 +10377,7 @@ public function getTimeLeftMs() { return $this->timeLeftMs; } + } class Google_Service_YouTube_VideoProjectDetails extends Google_Collection @@ -10766,6 +10396,7 @@ public function getTags() { return $this->tags; } + } class Google_Service_YouTube_VideoRating extends Google_Model @@ -10784,7 +10415,6 @@ public function getRating() { return $this->rating; } - public function setVideoId($videoId) { $this->videoId = $videoId; @@ -10794,6 +10424,7 @@ public function getVideoId() { return $this->videoId; } + } class Google_Service_YouTube_VideoRecordingDetails extends Google_Model @@ -10814,7 +10445,6 @@ public function getLocation() { return $this->location; } - public function setLocationDescription($locationDescription) { $this->locationDescription = $locationDescription; @@ -10824,7 +10454,6 @@ public function getLocationDescription() { return $this->locationDescription; } - public function setRecordingDate($recordingDate) { $this->recordingDate = $recordingDate; @@ -10834,6 +10463,7 @@ public function getRecordingDate() { return $this->recordingDate; } + } class Google_Service_YouTube_VideoSnippet extends Google_Collection @@ -10861,7 +10491,6 @@ public function getCategoryId() { return $this->categoryId; } - public function setChannelId($channelId) { $this->channelId = $channelId; @@ -10871,7 +10500,6 @@ public function getChannelId() { return $this->channelId; } - public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; @@ -10881,7 +10509,6 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDescription($description) { $this->description = $description; @@ -10891,7 +10518,6 @@ public function getDescription() { return $this->description; } - public function setLiveBroadcastContent($liveBroadcastContent) { $this->liveBroadcastContent = $liveBroadcastContent; @@ -10901,7 +10527,6 @@ public function getLiveBroadcastContent() { return $this->liveBroadcastContent; } - public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -10911,7 +10536,6 @@ public function getPublishedAt() { return $this->publishedAt; } - public function setTags($tags) { $this->tags = $tags; @@ -10921,7 +10545,6 @@ public function getTags() { return $this->tags; } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; @@ -10931,7 +10554,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setTitle($title) { $this->title = $title; @@ -10941,6 +10563,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_YouTube_VideoStatistics extends Google_Model @@ -10962,7 +10585,6 @@ public function getCommentCount() { return $this->commentCount; } - public function setDislikeCount($dislikeCount) { $this->dislikeCount = $dislikeCount; @@ -10972,7 +10594,6 @@ public function getDislikeCount() { return $this->dislikeCount; } - public function setFavoriteCount($favoriteCount) { $this->favoriteCount = $favoriteCount; @@ -10982,7 +10603,6 @@ public function getFavoriteCount() { return $this->favoriteCount; } - public function setLikeCount($likeCount) { $this->likeCount = $likeCount; @@ -10992,7 +10612,6 @@ public function getLikeCount() { return $this->likeCount; } - public function setViewCount($viewCount) { $this->viewCount = $viewCount; @@ -11002,6 +10621,7 @@ public function getViewCount() { return $this->viewCount; } + } class Google_Service_YouTube_VideoStatus extends Google_Model @@ -11026,7 +10646,6 @@ public function getEmbeddable() { return $this->embeddable; } - public function setFailureReason($failureReason) { $this->failureReason = $failureReason; @@ -11036,7 +10655,6 @@ public function getFailureReason() { return $this->failureReason; } - public function setLicense($license) { $this->license = $license; @@ -11046,7 +10664,6 @@ public function getLicense() { return $this->license; } - public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; @@ -11056,7 +10673,6 @@ public function getPrivacyStatus() { return $this->privacyStatus; } - public function setPublicStatsViewable($publicStatsViewable) { $this->publicStatsViewable = $publicStatsViewable; @@ -11066,7 +10682,6 @@ public function getPublicStatsViewable() { return $this->publicStatsViewable; } - public function setPublishAt($publishAt) { $this->publishAt = $publishAt; @@ -11076,7 +10691,6 @@ public function getPublishAt() { return $this->publishAt; } - public function setRejectionReason($rejectionReason) { $this->rejectionReason = $rejectionReason; @@ -11086,7 +10700,6 @@ public function getRejectionReason() { return $this->rejectionReason; } - public function setUploadStatus($uploadStatus) { $this->uploadStatus = $uploadStatus; @@ -11096,6 +10709,7 @@ public function getUploadStatus() { return $this->uploadStatus; } + } class Google_Service_YouTube_VideoSuggestions extends Google_Collection @@ -11119,7 +10733,6 @@ public function getEditorSuggestions() { return $this->editorSuggestions; } - public function setProcessingErrors($processingErrors) { $this->processingErrors = $processingErrors; @@ -11129,7 +10742,6 @@ public function getProcessingErrors() { return $this->processingErrors; } - public function setProcessingHints($processingHints) { $this->processingHints = $processingHints; @@ -11139,7 +10751,6 @@ public function getProcessingHints() { return $this->processingHints; } - public function setProcessingWarnings($processingWarnings) { $this->processingWarnings = $processingWarnings; @@ -11149,7 +10760,6 @@ public function getProcessingWarnings() { return $this->processingWarnings; } - public function setTagSuggestions($tagSuggestions) { $this->tagSuggestions = $tagSuggestions; @@ -11159,6 +10769,7 @@ public function getTagSuggestions() { return $this->tagSuggestions; } + } class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection @@ -11178,7 +10789,6 @@ public function getCategoryRestricts() { return $this->categoryRestricts; } - public function setTag($tag) { $this->tag = $tag; @@ -11188,6 +10798,7 @@ public function getTag() { return $this->tag; } + } class Google_Service_YouTube_VideoTopicDetails extends Google_Collection @@ -11207,7 +10818,6 @@ public function getRelevantTopicIds() { return $this->relevantTopicIds; } - public function setTopicIds($topicIds) { $this->topicIds = $topicIds; @@ -11217,6 +10827,7 @@ public function getTopicIds() { return $this->topicIds; } + } class Google_Service_YouTube_WatchSettings extends Google_Model @@ -11236,7 +10847,6 @@ public function getBackgroundColor() { return $this->backgroundColor; } - public function setFeaturedPlaylistId($featuredPlaylistId) { $this->featuredPlaylistId = $featuredPlaylistId; @@ -11246,7 +10856,6 @@ public function getFeaturedPlaylistId() { return $this->featuredPlaylistId; } - public function setTextColor($textColor) { $this->textColor = $textColor; @@ -11256,4 +10865,5 @@ public function getTextColor() { return $this->textColor; } + } From 9203a4ef1bfefca978cb72aaa8a2438b7bc438e7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:54 -0700 Subject: [PATCH 0377/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 565 ++++++------------------------- 1 file changed, 101 insertions(+), 464 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index fa815d17f..aac1a4c14 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -3676,7 +3676,6 @@ public function getChildLink() { return $this->childLink; } - public function setCreated($created) { $this->created = $created; @@ -3686,7 +3685,6 @@ public function getCreated() { return $this->created; } - public function setId($id) { $this->id = $id; @@ -3696,7 +3694,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3706,7 +3703,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3716,7 +3712,6 @@ public function getName() { return $this->name; } - public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions) { $this->permissions = $permissions; @@ -3726,7 +3721,6 @@ public function getPermissions() { return $this->permissions; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3736,7 +3730,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3746,6 +3739,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Analytics_AccountChildLink extends Google_Model @@ -3764,7 +3758,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -3774,6 +3767,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_AccountPermissions extends Google_Collection @@ -3792,6 +3786,7 @@ public function getEffective() { return $this->effective; } + } class Google_Service_Analytics_AccountRef extends Google_Model @@ -3812,7 +3807,6 @@ public function getHref() { return $this->href; } - public function setId($id) { $this->id = $id; @@ -3822,7 +3816,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3832,7 +3825,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3842,6 +3834,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_AccountSummaries extends Google_Collection @@ -3868,7 +3861,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -3878,7 +3870,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -3888,7 +3879,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -3898,7 +3888,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -3908,7 +3897,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -3918,7 +3906,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -3928,7 +3915,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -3938,6 +3924,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_AccountSummary extends Google_Collection @@ -3960,7 +3947,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3970,7 +3956,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3980,7 +3965,6 @@ public function getName() { return $this->name; } - public function setWebProperties($webProperties) { $this->webProperties = $webProperties; @@ -3990,6 +3974,7 @@ public function getWebProperties() { return $this->webProperties; } + } class Google_Service_Analytics_AccountTicket extends Google_Model @@ -4015,7 +4000,6 @@ public function getAccount() { return $this->account; } - public function setId($id) { $this->id = $id; @@ -4025,7 +4009,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -4035,7 +4018,6 @@ public function getKind() { return $this->kind; } - public function setProfile(Google_Service_Analytics_Profile $profile) { $this->profile = $profile; @@ -4045,7 +4027,6 @@ public function getProfile() { return $this->profile; } - public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; @@ -4055,7 +4036,6 @@ public function getRedirectUri() { return $this->redirectUri; } - public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty) { $this->webproperty = $webproperty; @@ -4065,6 +4045,7 @@ public function getWebproperty() { return $this->webproperty; } + } class Google_Service_Analytics_Accounts extends Google_Collection @@ -4091,7 +4072,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -4101,7 +4081,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -4111,7 +4090,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -4121,7 +4099,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -4131,7 +4108,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -4141,7 +4117,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -4151,7 +4126,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -4161,6 +4135,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_AdWordsAccount extends Google_Model @@ -4180,7 +4155,6 @@ public function getAutoTaggingEnabled() { return $this->autoTaggingEnabled; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -4190,7 +4164,6 @@ public function getCustomerId() { return $this->customerId; } - public function setKind($kind) { $this->kind = $kind; @@ -4200,6 +4173,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection @@ -4218,6 +4192,7 @@ public function getCustomDataImportUids() { return $this->customDataImportUids; } + } class Google_Service_Analytics_Column extends Google_Model @@ -4237,7 +4212,6 @@ public function getAttributes() { return $this->attributes; } - public function setId($id) { $this->id = $id; @@ -4247,7 +4221,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -4257,12 +4230,15 @@ public function getKind() { return $this->kind; } + } class Google_Service_Analytics_ColumnAttributes extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Analytics_Columns extends Google_Collection @@ -4286,7 +4262,6 @@ public function getAttributeNames() { return $this->attributeNames; } - public function setEtag($etag) { $this->etag = $etag; @@ -4296,7 +4271,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -4306,7 +4280,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4316,7 +4289,6 @@ public function getKind() { return $this->kind; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -4326,6 +4298,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Analytics_CustomDataSource extends Google_Collection @@ -4360,7 +4333,6 @@ public function getAccountId() { return $this->accountId; } - public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink) { $this->childLink = $childLink; @@ -4370,7 +4342,6 @@ public function getChildLink() { return $this->childLink; } - public function setCreated($created) { $this->created = $created; @@ -4380,7 +4351,6 @@ public function getCreated() { return $this->created; } - public function setDescription($description) { $this->description = $description; @@ -4390,7 +4360,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -4400,7 +4369,6 @@ public function getId() { return $this->id; } - public function setImportBehavior($importBehavior) { $this->importBehavior = $importBehavior; @@ -4410,7 +4378,6 @@ public function getImportBehavior() { return $this->importBehavior; } - public function setKind($kind) { $this->kind = $kind; @@ -4420,7 +4387,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -4430,7 +4396,6 @@ public function getName() { return $this->name; } - public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink) { $this->parentLink = $parentLink; @@ -4440,7 +4405,6 @@ public function getParentLink() { return $this->parentLink; } - public function setProfilesLinked($profilesLinked) { $this->profilesLinked = $profilesLinked; @@ -4450,7 +4414,6 @@ public function getProfilesLinked() { return $this->profilesLinked; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4460,7 +4423,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setType($type) { $this->type = $type; @@ -4470,7 +4432,6 @@ public function getType() { return $this->type; } - public function setUpdated($updated) { $this->updated = $updated; @@ -4480,7 +4441,6 @@ public function getUpdated() { return $this->updated; } - public function setUploadType($uploadType) { $this->uploadType = $uploadType; @@ -4490,7 +4450,6 @@ public function getUploadType() { return $this->uploadType; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -4500,6 +4459,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model @@ -4518,7 +4478,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -4528,6 +4487,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model @@ -4546,7 +4506,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -4556,6 +4515,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_CustomDataSources extends Google_Collection @@ -4582,7 +4542,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -4592,7 +4551,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -4602,7 +4560,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -4612,7 +4569,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -4622,7 +4578,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -4632,7 +4587,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -4642,7 +4596,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -4652,6 +4605,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_DailyUpload extends Google_Collection @@ -4682,7 +4636,6 @@ public function getAccountId() { return $this->accountId; } - public function setAppendCount($appendCount) { $this->appendCount = $appendCount; @@ -4692,7 +4645,6 @@ public function getAppendCount() { return $this->appendCount; } - public function setCreatedTime($createdTime) { $this->createdTime = $createdTime; @@ -4702,7 +4654,6 @@ public function getCreatedTime() { return $this->createdTime; } - public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; @@ -4712,7 +4663,6 @@ public function getCustomDataSourceId() { return $this->customDataSourceId; } - public function setDate($date) { $this->date = $date; @@ -4722,7 +4672,6 @@ public function getDate() { return $this->date; } - public function setKind($kind) { $this->kind = $kind; @@ -4732,7 +4681,6 @@ public function getKind() { return $this->kind; } - public function setModifiedTime($modifiedTime) { $this->modifiedTime = $modifiedTime; @@ -4742,7 +4690,6 @@ public function getModifiedTime() { return $this->modifiedTime; } - public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink) { $this->parentLink = $parentLink; @@ -4752,7 +4699,6 @@ public function getParentLink() { return $this->parentLink; } - public function setRecentChanges($recentChanges) { $this->recentChanges = $recentChanges; @@ -4762,7 +4708,6 @@ public function getRecentChanges() { return $this->recentChanges; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4772,7 +4717,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -4782,6 +4726,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_DailyUploadAppend extends Google_Model @@ -4805,7 +4750,6 @@ public function getAccountId() { return $this->accountId; } - public function setAppendNumber($appendNumber) { $this->appendNumber = $appendNumber; @@ -4815,7 +4759,6 @@ public function getAppendNumber() { return $this->appendNumber; } - public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; @@ -4825,7 +4768,6 @@ public function getCustomDataSourceId() { return $this->customDataSourceId; } - public function setDate($date) { $this->date = $date; @@ -4835,7 +4777,6 @@ public function getDate() { return $this->date; } - public function setKind($kind) { $this->kind = $kind; @@ -4845,7 +4786,6 @@ public function getKind() { return $this->kind; } - public function setNextAppendLink($nextAppendLink) { $this->nextAppendLink = $nextAppendLink; @@ -4855,7 +4795,6 @@ public function getNextAppendLink() { return $this->nextAppendLink; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -4865,6 +4804,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_DailyUploadParentLink extends Google_Model @@ -4883,7 +4823,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -4893,6 +4832,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model @@ -4911,7 +4851,6 @@ public function getChange() { return $this->change; } - public function setTime($time) { $this->time = $time; @@ -4921,6 +4860,7 @@ public function getTime() { return $this->time; } + } class Google_Service_Analytics_DailyUploads extends Google_Collection @@ -4947,7 +4887,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -4957,7 +4896,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -4967,7 +4905,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -4977,7 +4914,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -4987,7 +4923,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -4997,7 +4932,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -5007,7 +4941,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -5017,6 +4950,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection @@ -5043,7 +4977,6 @@ public function getAdWordsAccounts() { return $this->adWordsAccounts; } - public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $entity) { $this->entity = $entity; @@ -5053,7 +4986,6 @@ public function getEntity() { return $this->entity; } - public function setId($id) { $this->id = $id; @@ -5063,7 +4995,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5073,7 +5004,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -5083,7 +5013,6 @@ public function getName() { return $this->name; } - public function setProfileIds($profileIds) { $this->profileIds = $profileIds; @@ -5093,7 +5022,6 @@ public function getProfileIds() { return $this->profileIds; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5103,6 +5031,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model @@ -5121,6 +5050,7 @@ public function getWebPropertyRef() { return $this->webPropertyRef; } + } class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection @@ -5146,7 +5076,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -5156,7 +5085,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -5166,7 +5094,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -5176,7 +5103,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -5186,7 +5112,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -5196,7 +5121,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -5206,6 +5130,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Analytics_EntityUserLink extends Google_Model @@ -5231,7 +5156,6 @@ public function getEntity() { return $this->entity; } - public function setId($id) { $this->id = $id; @@ -5241,7 +5165,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5251,7 +5174,6 @@ public function getKind() { return $this->kind; } - public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions) { $this->permissions = $permissions; @@ -5261,7 +5183,6 @@ public function getPermissions() { return $this->permissions; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5271,7 +5192,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUserRef(Google_Service_Analytics_UserRef $userRef) { $this->userRef = $userRef; @@ -5281,6 +5201,7 @@ public function getUserRef() { return $this->userRef; } + } class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model @@ -5303,7 +5224,6 @@ public function getAccountRef() { return $this->accountRef; } - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { $this->profileRef = $profileRef; @@ -5313,7 +5233,6 @@ public function getProfileRef() { return $this->profileRef; } - public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) { $this->webPropertyRef = $webPropertyRef; @@ -5323,6 +5242,7 @@ public function getWebPropertyRef() { return $this->webPropertyRef; } + } class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection @@ -5342,7 +5262,6 @@ public function getEffective() { return $this->effective; } - public function setLocal($local) { $this->local = $local; @@ -5352,6 +5271,7 @@ public function getLocal() { return $this->local; } + } class Google_Service_Analytics_EntityUserLinks extends Google_Collection @@ -5377,7 +5297,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -5387,7 +5306,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -5397,7 +5315,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -5407,7 +5324,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -5417,7 +5333,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -5427,7 +5342,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -5437,6 +5351,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Analytics_Experiment extends Google_Collection @@ -5484,7 +5399,6 @@ public function getAccountId() { return $this->accountId; } - public function setCreated($created) { $this->created = $created; @@ -5494,7 +5408,6 @@ public function getCreated() { return $this->created; } - public function setDescription($description) { $this->description = $description; @@ -5504,7 +5417,6 @@ public function getDescription() { return $this->description; } - public function setEditableInGaUi($editableInGaUi) { $this->editableInGaUi = $editableInGaUi; @@ -5514,7 +5426,6 @@ public function getEditableInGaUi() { return $this->editableInGaUi; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -5524,7 +5435,6 @@ public function getEndTime() { return $this->endTime; } - public function setEqualWeighting($equalWeighting) { $this->equalWeighting = $equalWeighting; @@ -5534,7 +5444,6 @@ public function getEqualWeighting() { return $this->equalWeighting; } - public function setId($id) { $this->id = $id; @@ -5544,7 +5453,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -5554,7 +5462,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -5564,7 +5471,6 @@ public function getKind() { return $this->kind; } - public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) { $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; @@ -5574,7 +5480,6 @@ public function getMinimumExperimentLengthInDays() { return $this->minimumExperimentLengthInDays; } - public function setName($name) { $this->name = $name; @@ -5584,7 +5489,6 @@ public function getName() { return $this->name; } - public function setObjectiveMetric($objectiveMetric) { $this->objectiveMetric = $objectiveMetric; @@ -5594,7 +5498,6 @@ public function getObjectiveMetric() { return $this->objectiveMetric; } - public function setOptimizationType($optimizationType) { $this->optimizationType = $optimizationType; @@ -5604,7 +5507,6 @@ public function getOptimizationType() { return $this->optimizationType; } - public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink) { $this->parentLink = $parentLink; @@ -5614,7 +5516,6 @@ public function getParentLink() { return $this->parentLink; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -5624,7 +5525,6 @@ public function getProfileId() { return $this->profileId; } - public function setReasonExperimentEnded($reasonExperimentEnded) { $this->reasonExperimentEnded = $reasonExperimentEnded; @@ -5634,7 +5534,6 @@ public function getReasonExperimentEnded() { return $this->reasonExperimentEnded; } - public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) { $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; @@ -5644,7 +5543,6 @@ public function getRewriteVariationUrlsAsOriginal() { return $this->rewriteVariationUrlsAsOriginal; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5654,7 +5552,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setServingFramework($servingFramework) { $this->servingFramework = $servingFramework; @@ -5664,7 +5561,6 @@ public function getServingFramework() { return $this->servingFramework; } - public function setSnippet($snippet) { $this->snippet = $snippet; @@ -5674,7 +5570,6 @@ public function getSnippet() { return $this->snippet; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -5684,7 +5579,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -5694,7 +5588,6 @@ public function getStatus() { return $this->status; } - public function setTrafficCoverage($trafficCoverage) { $this->trafficCoverage = $trafficCoverage; @@ -5704,7 +5597,6 @@ public function getTrafficCoverage() { return $this->trafficCoverage; } - public function setUpdated($updated) { $this->updated = $updated; @@ -5714,7 +5606,6 @@ public function getUpdated() { return $this->updated; } - public function setVariations($variations) { $this->variations = $variations; @@ -5724,7 +5615,6 @@ public function getVariations() { return $this->variations; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -5734,7 +5624,6 @@ public function getWebPropertyId() { return $this->webPropertyId; } - public function setWinnerConfidenceLevel($winnerConfidenceLevel) { $this->winnerConfidenceLevel = $winnerConfidenceLevel; @@ -5744,7 +5633,6 @@ public function getWinnerConfidenceLevel() { return $this->winnerConfidenceLevel; } - public function setWinnerFound($winnerFound) { $this->winnerFound = $winnerFound; @@ -5754,6 +5642,7 @@ public function getWinnerFound() { return $this->winnerFound; } + } class Google_Service_Analytics_ExperimentParentLink extends Google_Model @@ -5772,7 +5661,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -5782,6 +5670,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_ExperimentVariations extends Google_Model @@ -5803,7 +5692,6 @@ public function getName() { return $this->name; } - public function setStatus($status) { $this->status = $status; @@ -5813,7 +5701,6 @@ public function getStatus() { return $this->status; } - public function setUrl($url) { $this->url = $url; @@ -5823,7 +5710,6 @@ public function getUrl() { return $this->url; } - public function setWeight($weight) { $this->weight = $weight; @@ -5833,7 +5719,6 @@ public function getWeight() { return $this->weight; } - public function setWon($won) { $this->won = $won; @@ -5843,6 +5728,7 @@ public function getWon() { return $this->won; } + } class Google_Service_Analytics_Experiments extends Google_Collection @@ -5869,7 +5755,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -5879,7 +5764,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -5889,7 +5773,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -5899,7 +5782,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -5909,7 +5791,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -5919,7 +5800,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -5929,7 +5809,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -5939,6 +5818,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_Filter extends Google_Model @@ -5977,7 +5857,6 @@ public function getAccountId() { return $this->accountId; } - public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetails $advancedDetails) { $this->advancedDetails = $advancedDetails; @@ -5987,7 +5866,6 @@ public function getAdvancedDetails() { return $this->advancedDetails; } - public function setCreated($created) { $this->created = $created; @@ -5997,7 +5875,6 @@ public function getCreated() { return $this->created; } - public function setExcludeDetails(Google_Service_Analytics_FilterExpression $excludeDetails) { $this->excludeDetails = $excludeDetails; @@ -6007,7 +5884,6 @@ public function getExcludeDetails() { return $this->excludeDetails; } - public function setId($id) { $this->id = $id; @@ -6017,7 +5893,6 @@ public function getId() { return $this->id; } - public function setIncludeDetails(Google_Service_Analytics_FilterExpression $includeDetails) { $this->includeDetails = $includeDetails; @@ -6027,7 +5902,6 @@ public function getIncludeDetails() { return $this->includeDetails; } - public function setKind($kind) { $this->kind = $kind; @@ -6037,7 +5911,6 @@ public function getKind() { return $this->kind; } - public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDetails $lowercaseDetails) { $this->lowercaseDetails = $lowercaseDetails; @@ -6047,7 +5920,6 @@ public function getLowercaseDetails() { return $this->lowercaseDetails; } - public function setName($name) { $this->name = $name; @@ -6057,7 +5929,6 @@ public function getName() { return $this->name; } - public function setParentLink(Google_Service_Analytics_FilterParentLink $parentLink) { $this->parentLink = $parentLink; @@ -6067,7 +5938,6 @@ public function getParentLink() { return $this->parentLink; } - public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearchAndReplaceDetails $searchAndReplaceDetails) { $this->searchAndReplaceDetails = $searchAndReplaceDetails; @@ -6077,7 +5947,6 @@ public function getSearchAndReplaceDetails() { return $this->searchAndReplaceDetails; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6087,7 +5956,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setType($type) { $this->type = $type; @@ -6097,7 +5965,6 @@ public function getType() { return $this->type; } - public function setUpdated($updated) { $this->updated = $updated; @@ -6107,7 +5974,6 @@ public function getUpdated() { return $this->updated; } - public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDetails $uppercaseDetails) { $this->uppercaseDetails = $uppercaseDetails; @@ -6117,6 +5983,7 @@ public function getUppercaseDetails() { return $this->uppercaseDetails; } + } class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model @@ -6143,7 +6010,6 @@ public function getCaseSensitive() { return $this->caseSensitive; } - public function setExtractA($extractA) { $this->extractA = $extractA; @@ -6153,7 +6019,6 @@ public function getExtractA() { return $this->extractA; } - public function setExtractB($extractB) { $this->extractB = $extractB; @@ -6163,7 +6028,6 @@ public function getExtractB() { return $this->extractB; } - public function setFieldA($fieldA) { $this->fieldA = $fieldA; @@ -6173,7 +6037,6 @@ public function getFieldA() { return $this->fieldA; } - public function setFieldARequired($fieldARequired) { $this->fieldARequired = $fieldARequired; @@ -6183,7 +6046,6 @@ public function getFieldARequired() { return $this->fieldARequired; } - public function setFieldB($fieldB) { $this->fieldB = $fieldB; @@ -6193,7 +6055,6 @@ public function getFieldB() { return $this->fieldB; } - public function setFieldBRequired($fieldBRequired) { $this->fieldBRequired = $fieldBRequired; @@ -6203,7 +6064,6 @@ public function getFieldBRequired() { return $this->fieldBRequired; } - public function setOutputConstructor($outputConstructor) { $this->outputConstructor = $outputConstructor; @@ -6213,7 +6073,6 @@ public function getOutputConstructor() { return $this->outputConstructor; } - public function setOutputToField($outputToField) { $this->outputToField = $outputToField; @@ -6223,7 +6082,6 @@ public function getOutputToField() { return $this->outputToField; } - public function setOverrideOutputField($overrideOutputField) { $this->overrideOutputField = $overrideOutputField; @@ -6233,6 +6091,7 @@ public function getOverrideOutputField() { return $this->overrideOutputField; } + } class Google_Service_Analytics_FilterExpression extends Google_Model @@ -6254,7 +6113,6 @@ public function getCaseSensitive() { return $this->caseSensitive; } - public function setExpressionValue($expressionValue) { $this->expressionValue = $expressionValue; @@ -6264,7 +6122,6 @@ public function getExpressionValue() { return $this->expressionValue; } - public function setField($field) { $this->field = $field; @@ -6274,7 +6131,6 @@ public function getField() { return $this->field; } - public function setKind($kind) { $this->kind = $kind; @@ -6284,7 +6140,6 @@ public function getKind() { return $this->kind; } - public function setMatchType($matchType) { $this->matchType = $matchType; @@ -6294,6 +6149,7 @@ public function getMatchType() { return $this->matchType; } + } class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model @@ -6311,6 +6167,7 @@ public function getField() { return $this->field; } + } class Google_Service_Analytics_FilterParentLink extends Google_Model @@ -6329,7 +6186,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -6339,6 +6195,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_FilterRef extends Google_Model @@ -6360,7 +6217,6 @@ public function getAccountId() { return $this->accountId; } - public function setHref($href) { $this->href = $href; @@ -6370,7 +6226,6 @@ public function getHref() { return $this->href; } - public function setId($id) { $this->id = $id; @@ -6380,7 +6235,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6390,7 +6244,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -6400,6 +6253,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model @@ -6420,7 +6274,6 @@ public function getCaseSensitive() { return $this->caseSensitive; } - public function setField($field) { $this->field = $field; @@ -6430,7 +6283,6 @@ public function getField() { return $this->field; } - public function setReplaceString($replaceString) { $this->replaceString = $replaceString; @@ -6440,7 +6292,6 @@ public function getReplaceString() { return $this->replaceString; } - public function setSearchString($searchString) { $this->searchString = $searchString; @@ -6450,6 +6301,7 @@ public function getSearchString() { return $this->searchString; } + } class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model @@ -6467,6 +6319,7 @@ public function getField() { return $this->field; } + } class Google_Service_Analytics_Filters extends Google_Collection @@ -6493,7 +6346,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -6503,7 +6355,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -6513,7 +6364,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -6523,7 +6373,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -6533,7 +6382,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -6543,7 +6391,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -6553,7 +6400,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -6563,6 +6409,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_GaData extends Google_Collection @@ -6600,7 +6447,6 @@ public function getColumnHeaders() { return $this->columnHeaders; } - public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; @@ -6610,7 +6456,6 @@ public function getContainsSampledData() { return $this->containsSampledData; } - public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable) { $this->dataTable = $dataTable; @@ -6620,7 +6465,6 @@ public function getDataTable() { return $this->dataTable; } - public function setId($id) { $this->id = $id; @@ -6630,7 +6474,6 @@ public function getId() { return $this->id; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -6640,7 +6483,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -6650,7 +6492,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -6660,7 +6501,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -6670,7 +6510,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; @@ -6680,7 +6519,6 @@ public function getProfileInfo() { return $this->profileInfo; } - public function setQuery(Google_Service_Analytics_GaDataQuery $query) { $this->query = $query; @@ -6690,7 +6528,6 @@ public function getQuery() { return $this->query; } - public function setRows($rows) { $this->rows = $rows; @@ -6700,7 +6537,6 @@ public function getRows() { return $this->rows; } - public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; @@ -6710,7 +6546,6 @@ public function getSampleSize() { return $this->sampleSize; } - public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; @@ -6720,7 +6555,6 @@ public function getSampleSpace() { return $this->sampleSpace; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6730,7 +6564,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -6740,7 +6573,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; @@ -6750,6 +6582,7 @@ public function getTotalsForAllResults() { return $this->totalsForAllResults; } + } class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model @@ -6769,7 +6602,6 @@ public function getColumnType() { return $this->columnType; } - public function setDataType($dataType) { $this->dataType = $dataType; @@ -6779,7 +6611,6 @@ public function getDataType() { return $this->dataType; } - public function setName($name) { $this->name = $name; @@ -6789,6 +6620,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_GaDataDataTable extends Google_Collection @@ -6810,7 +6642,6 @@ public function getCols() { return $this->cols; } - public function setRows($rows) { $this->rows = $rows; @@ -6820,6 +6651,7 @@ public function getRows() { return $this->rows; } + } class Google_Service_Analytics_GaDataDataTableCols extends Google_Model @@ -6839,7 +6671,6 @@ public function getId() { return $this->id; } - public function setLabel($label) { $this->label = $label; @@ -6849,7 +6680,6 @@ public function getLabel() { return $this->label; } - public function setType($type) { $this->type = $type; @@ -6859,6 +6689,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection @@ -6878,6 +6709,7 @@ public function getC() { return $this->c; } + } class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model @@ -6895,6 +6727,7 @@ public function getV() { return $this->v; } + } class Google_Service_Analytics_GaDataProfileInfo extends Google_Model @@ -6917,7 +6750,6 @@ public function getAccountId() { return $this->accountId; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -6927,7 +6759,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -6937,7 +6768,6 @@ public function getProfileId() { return $this->profileId; } - public function setProfileName($profileName) { $this->profileName = $profileName; @@ -6947,7 +6777,6 @@ public function getProfileName() { return $this->profileName; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -6957,7 +6786,6 @@ public function getTableId() { return $this->tableId; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -6967,6 +6795,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_GaDataQuery extends Google_Collection @@ -6999,7 +6828,6 @@ public function getDimensions() { return $this->dimensions; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -7009,7 +6837,6 @@ public function getEndDate() { return $this->endDate; } - public function setFilters($filters) { $this->filters = $filters; @@ -7019,7 +6846,6 @@ public function getFilters() { return $this->filters; } - public function setIds($ids) { $this->ids = $ids; @@ -7029,7 +6855,6 @@ public function getIds() { return $this->ids; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -7039,7 +6864,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -7049,7 +6873,6 @@ public function getMetrics() { return $this->metrics; } - public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; @@ -7059,7 +6882,6 @@ public function getSamplingLevel() { return $this->samplingLevel; } - public function setSegment($segment) { $this->segment = $segment; @@ -7069,7 +6891,6 @@ public function getSegment() { return $this->segment; } - public function setSort($sort) { $this->sort = $sort; @@ -7079,7 +6900,6 @@ public function getSort() { return $this->sort; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -7089,7 +6909,6 @@ public function getStartDate() { return $this->startDate; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -7099,12 +6918,15 @@ public function getStartIndex() { return $this->startIndex; } + } class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Analytics_Goal extends Google_Model @@ -7144,7 +6966,6 @@ public function getAccountId() { return $this->accountId; } - public function setActive($active) { $this->active = $active; @@ -7154,7 +6975,6 @@ public function getActive() { return $this->active; } - public function setCreated($created) { $this->created = $created; @@ -7164,7 +6984,6 @@ public function getCreated() { return $this->created; } - public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails) { $this->eventDetails = $eventDetails; @@ -7174,7 +6993,6 @@ public function getEventDetails() { return $this->eventDetails; } - public function setId($id) { $this->id = $id; @@ -7184,7 +7002,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -7194,7 +7011,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -7204,7 +7020,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -7214,7 +7029,6 @@ public function getName() { return $this->name; } - public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink) { $this->parentLink = $parentLink; @@ -7224,7 +7038,6 @@ public function getParentLink() { return $this->parentLink; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -7234,7 +7047,6 @@ public function getProfileId() { return $this->profileId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7244,7 +7056,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setType($type) { $this->type = $type; @@ -7254,7 +7065,6 @@ public function getType() { return $this->type; } - public function setUpdated($updated) { $this->updated = $updated; @@ -7264,7 +7074,6 @@ public function getUpdated() { return $this->updated; } - public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails) { $this->urlDestinationDetails = $urlDestinationDetails; @@ -7274,7 +7083,6 @@ public function getUrlDestinationDetails() { return $this->urlDestinationDetails; } - public function setValue($value) { $this->value = $value; @@ -7284,7 +7092,6 @@ public function getValue() { return $this->value; } - public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails) { $this->visitNumPagesDetails = $visitNumPagesDetails; @@ -7294,7 +7101,6 @@ public function getVisitNumPagesDetails() { return $this->visitNumPagesDetails; } - public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) { $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; @@ -7304,7 +7110,6 @@ public function getVisitTimeOnSiteDetails() { return $this->visitTimeOnSiteDetails; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -7314,6 +7119,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_GoalEventDetails extends Google_Collection @@ -7334,7 +7140,6 @@ public function getEventConditions() { return $this->eventConditions; } - public function setUseEventValue($useEventValue) { $this->useEventValue = $useEventValue; @@ -7344,6 +7149,7 @@ public function getUseEventValue() { return $this->useEventValue; } + } class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model @@ -7365,7 +7171,6 @@ public function getComparisonType() { return $this->comparisonType; } - public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; @@ -7375,7 +7180,6 @@ public function getComparisonValue() { return $this->comparisonValue; } - public function setExpression($expression) { $this->expression = $expression; @@ -7385,7 +7189,6 @@ public function getExpression() { return $this->expression; } - public function setMatchType($matchType) { $this->matchType = $matchType; @@ -7395,7 +7198,6 @@ public function getMatchType() { return $this->matchType; } - public function setType($type) { $this->type = $type; @@ -7405,6 +7207,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_GoalParentLink extends Google_Model @@ -7423,7 +7226,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -7433,6 +7235,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection @@ -7456,7 +7259,6 @@ public function getCaseSensitive() { return $this->caseSensitive; } - public function setFirstStepRequired($firstStepRequired) { $this->firstStepRequired = $firstStepRequired; @@ -7466,7 +7268,6 @@ public function getFirstStepRequired() { return $this->firstStepRequired; } - public function setMatchType($matchType) { $this->matchType = $matchType; @@ -7476,7 +7277,6 @@ public function getMatchType() { return $this->matchType; } - public function setSteps($steps) { $this->steps = $steps; @@ -7486,7 +7286,6 @@ public function getSteps() { return $this->steps; } - public function setUrl($url) { $this->url = $url; @@ -7496,6 +7295,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model @@ -7515,7 +7315,6 @@ public function getName() { return $this->name; } - public function setNumber($number) { $this->number = $number; @@ -7525,7 +7324,6 @@ public function getNumber() { return $this->number; } - public function setUrl($url) { $this->url = $url; @@ -7535,6 +7333,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model @@ -7553,7 +7352,6 @@ public function getComparisonType() { return $this->comparisonType; } - public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; @@ -7563,6 +7361,7 @@ public function getComparisonValue() { return $this->comparisonValue; } + } class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model @@ -7581,7 +7380,6 @@ public function getComparisonType() { return $this->comparisonType; } - public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; @@ -7591,6 +7389,7 @@ public function getComparisonValue() { return $this->comparisonValue; } + } class Google_Service_Analytics_Goals extends Google_Collection @@ -7617,7 +7416,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -7627,7 +7425,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -7637,7 +7434,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -7647,7 +7443,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -7657,7 +7452,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -7667,7 +7461,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -7677,7 +7470,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -7687,6 +7479,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_McfData extends Google_Collection @@ -7723,7 +7516,6 @@ public function getColumnHeaders() { return $this->columnHeaders; } - public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; @@ -7733,7 +7525,6 @@ public function getContainsSampledData() { return $this->containsSampledData; } - public function setId($id) { $this->id = $id; @@ -7743,7 +7534,6 @@ public function getId() { return $this->id; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -7753,7 +7543,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -7763,7 +7552,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -7773,7 +7561,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -7783,7 +7570,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; @@ -7793,7 +7579,6 @@ public function getProfileInfo() { return $this->profileInfo; } - public function setQuery(Google_Service_Analytics_McfDataQuery $query) { $this->query = $query; @@ -7803,7 +7588,6 @@ public function getQuery() { return $this->query; } - public function setRows($rows) { $this->rows = $rows; @@ -7813,7 +7597,6 @@ public function getRows() { return $this->rows; } - public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; @@ -7823,7 +7606,6 @@ public function getSampleSize() { return $this->sampleSize; } - public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; @@ -7833,7 +7615,6 @@ public function getSampleSpace() { return $this->sampleSpace; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7843,7 +7624,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -7853,7 +7633,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; @@ -7863,6 +7642,7 @@ public function getTotalsForAllResults() { return $this->totalsForAllResults; } + } class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model @@ -7882,7 +7662,6 @@ public function getColumnType() { return $this->columnType; } - public function setDataType($dataType) { $this->dataType = $dataType; @@ -7892,7 +7671,6 @@ public function getDataType() { return $this->dataType; } - public function setName($name) { $this->name = $name; @@ -7902,6 +7680,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_McfDataProfileInfo extends Google_Model @@ -7924,7 +7703,6 @@ public function getAccountId() { return $this->accountId; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -7934,7 +7712,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -7944,7 +7721,6 @@ public function getProfileId() { return $this->profileId; } - public function setProfileName($profileName) { $this->profileName = $profileName; @@ -7954,7 +7730,6 @@ public function getProfileName() { return $this->profileName; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -7964,7 +7739,6 @@ public function getTableId() { return $this->tableId; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -7974,6 +7748,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_McfDataQuery extends Google_Collection @@ -8006,7 +7781,6 @@ public function getDimensions() { return $this->dimensions; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -8016,7 +7790,6 @@ public function getEndDate() { return $this->endDate; } - public function setFilters($filters) { $this->filters = $filters; @@ -8026,7 +7799,6 @@ public function getFilters() { return $this->filters; } - public function setIds($ids) { $this->ids = $ids; @@ -8036,7 +7808,6 @@ public function getIds() { return $this->ids; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -8046,7 +7817,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -8056,7 +7826,6 @@ public function getMetrics() { return $this->metrics; } - public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; @@ -8066,7 +7835,6 @@ public function getSamplingLevel() { return $this->samplingLevel; } - public function setSegment($segment) { $this->segment = $segment; @@ -8076,7 +7844,6 @@ public function getSegment() { return $this->segment; } - public function setSort($sort) { $this->sort = $sort; @@ -8086,7 +7853,6 @@ public function getSort() { return $this->sort; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -8096,7 +7862,6 @@ public function getStartDate() { return $this->startDate; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -8106,6 +7871,7 @@ public function getStartIndex() { return $this->startIndex; } + } class Google_Service_Analytics_McfDataRows extends Google_Collection @@ -8126,7 +7892,6 @@ public function getConversionPathValue() { return $this->conversionPathValue; } - public function setPrimitiveValue($primitiveValue) { $this->primitiveValue = $primitiveValue; @@ -8136,6 +7901,7 @@ public function getPrimitiveValue() { return $this->primitiveValue; } + } class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model @@ -8154,7 +7920,6 @@ public function getInteractionType() { return $this->interactionType; } - public function setNodeValue($nodeValue) { $this->nodeValue = $nodeValue; @@ -8164,12 +7929,15 @@ public function getNodeValue() { return $this->nodeValue; } + } class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Analytics_Profile extends Google_Model @@ -8213,7 +7981,6 @@ public function getAccountId() { return $this->accountId; } - public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink) { $this->childLink = $childLink; @@ -8223,7 +7990,6 @@ public function getChildLink() { return $this->childLink; } - public function setCreated($created) { $this->created = $created; @@ -8233,7 +7999,6 @@ public function getCreated() { return $this->created; } - public function setCurrency($currency) { $this->currency = $currency; @@ -8243,7 +8008,6 @@ public function getCurrency() { return $this->currency; } - public function setDefaultPage($defaultPage) { $this->defaultPage = $defaultPage; @@ -8253,7 +8017,6 @@ public function getDefaultPage() { return $this->defaultPage; } - public function setECommerceTracking($eCommerceTracking) { $this->eCommerceTracking = $eCommerceTracking; @@ -8263,7 +8026,6 @@ public function getECommerceTracking() { return $this->eCommerceTracking; } - public function setEnhancedECommerceTracking($enhancedECommerceTracking) { $this->enhancedECommerceTracking = $enhancedECommerceTracking; @@ -8273,7 +8035,6 @@ public function getEnhancedECommerceTracking() { return $this->enhancedECommerceTracking; } - public function setExcludeQueryParameters($excludeQueryParameters) { $this->excludeQueryParameters = $excludeQueryParameters; @@ -8283,7 +8044,6 @@ public function getExcludeQueryParameters() { return $this->excludeQueryParameters; } - public function setId($id) { $this->id = $id; @@ -8293,7 +8053,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -8303,7 +8062,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -8313,7 +8071,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -8323,7 +8080,6 @@ public function getName() { return $this->name; } - public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink) { $this->parentLink = $parentLink; @@ -8333,7 +8089,6 @@ public function getParentLink() { return $this->parentLink; } - public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions) { $this->permissions = $permissions; @@ -8343,7 +8098,6 @@ public function getPermissions() { return $this->permissions; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8353,7 +8107,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) { $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; @@ -8363,7 +8116,6 @@ public function getSiteSearchCategoryParameters() { return $this->siteSearchCategoryParameters; } - public function setSiteSearchQueryParameters($siteSearchQueryParameters) { $this->siteSearchQueryParameters = $siteSearchQueryParameters; @@ -8373,7 +8125,6 @@ public function getSiteSearchQueryParameters() { return $this->siteSearchQueryParameters; } - public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters) { $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; @@ -8383,7 +8134,6 @@ public function getStripSiteSearchCategoryParameters() { return $this->stripSiteSearchCategoryParameters; } - public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters) { $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; @@ -8393,7 +8143,6 @@ public function getStripSiteSearchQueryParameters() { return $this->stripSiteSearchQueryParameters; } - public function setTimezone($timezone) { $this->timezone = $timezone; @@ -8403,7 +8152,6 @@ public function getTimezone() { return $this->timezone; } - public function setType($type) { $this->type = $type; @@ -8413,7 +8161,6 @@ public function getType() { return $this->type; } - public function setUpdated($updated) { $this->updated = $updated; @@ -8423,7 +8170,6 @@ public function getUpdated() { return $this->updated; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -8433,7 +8179,6 @@ public function getWebPropertyId() { return $this->webPropertyId; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -8443,6 +8188,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_Analytics_ProfileChildLink extends Google_Model @@ -8461,7 +8207,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -8471,6 +8216,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_ProfileFilterLink extends Google_Model @@ -8495,7 +8241,6 @@ public function getFilterRef() { return $this->filterRef; } - public function setId($id) { $this->id = $id; @@ -8505,7 +8250,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8515,7 +8259,6 @@ public function getKind() { return $this->kind; } - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { $this->profileRef = $profileRef; @@ -8525,7 +8268,6 @@ public function getProfileRef() { return $this->profileRef; } - public function setRank($rank) { $this->rank = $rank; @@ -8535,7 +8277,6 @@ public function getRank() { return $this->rank; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8545,6 +8286,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection @@ -8571,7 +8313,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -8581,7 +8322,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -8591,7 +8331,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -8601,7 +8340,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -8611,7 +8349,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -8621,7 +8358,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -8631,7 +8367,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -8641,6 +8376,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_ProfileParentLink extends Google_Model @@ -8659,7 +8395,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -8669,6 +8404,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_ProfilePermissions extends Google_Collection @@ -8687,6 +8423,7 @@ public function getEffective() { return $this->effective; } + } class Google_Service_Analytics_ProfileRef extends Google_Model @@ -8710,7 +8447,6 @@ public function getAccountId() { return $this->accountId; } - public function setHref($href) { $this->href = $href; @@ -8720,7 +8456,6 @@ public function getHref() { return $this->href; } - public function setId($id) { $this->id = $id; @@ -8730,7 +8465,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -8740,7 +8474,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -8750,7 +8483,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -8760,7 +8492,6 @@ public function getName() { return $this->name; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -8770,6 +8501,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_ProfileSummary extends Google_Model @@ -8790,7 +8522,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8800,7 +8531,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -8810,7 +8540,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -8820,6 +8549,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_Profiles extends Google_Collection @@ -8846,7 +8576,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -8856,7 +8585,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -8866,7 +8594,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -8876,7 +8603,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -8886,7 +8612,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -8896,7 +8621,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -8906,7 +8630,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -8916,6 +8639,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_RealtimeData extends Google_Collection @@ -8945,7 +8669,6 @@ public function getColumnHeaders() { return $this->columnHeaders; } - public function setId($id) { $this->id = $id; @@ -8955,7 +8678,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8965,7 +8687,6 @@ public function getKind() { return $this->kind; } - public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; @@ -8975,7 +8696,6 @@ public function getProfileInfo() { return $this->profileInfo; } - public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query) { $this->query = $query; @@ -8985,7 +8705,6 @@ public function getQuery() { return $this->query; } - public function setRows($rows) { $this->rows = $rows; @@ -8995,7 +8714,6 @@ public function getRows() { return $this->rows; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9005,7 +8723,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -9015,7 +8732,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; @@ -9025,6 +8741,7 @@ public function getTotalsForAllResults() { return $this->totalsForAllResults; } + } class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model @@ -9044,7 +8761,6 @@ public function getColumnType() { return $this->columnType; } - public function setDataType($dataType) { $this->dataType = $dataType; @@ -9054,7 +8770,6 @@ public function getDataType() { return $this->dataType; } - public function setName($name) { $this->name = $name; @@ -9064,6 +8779,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model @@ -9086,7 +8802,6 @@ public function getAccountId() { return $this->accountId; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -9096,7 +8811,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -9106,7 +8820,6 @@ public function getProfileId() { return $this->profileId; } - public function setProfileName($profileName) { $this->profileName = $profileName; @@ -9116,7 +8829,6 @@ public function getProfileName() { return $this->profileName; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -9126,7 +8838,6 @@ public function getTableId() { return $this->tableId; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -9136,6 +8847,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection @@ -9160,7 +8872,6 @@ public function getDimensions() { return $this->dimensions; } - public function setFilters($filters) { $this->filters = $filters; @@ -9170,7 +8881,6 @@ public function getFilters() { return $this->filters; } - public function setIds($ids) { $this->ids = $ids; @@ -9180,7 +8890,6 @@ public function getIds() { return $this->ids; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -9190,7 +8899,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -9200,7 +8908,6 @@ public function getMetrics() { return $this->metrics; } - public function setSort($sort) { $this->sort = $sort; @@ -9210,12 +8917,15 @@ public function getSort() { return $this->sort; } + } class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Analytics_Segment extends Google_Model @@ -9241,7 +8951,6 @@ public function getCreated() { return $this->created; } - public function setDefinition($definition) { $this->definition = $definition; @@ -9251,7 +8960,6 @@ public function getDefinition() { return $this->definition; } - public function setId($id) { $this->id = $id; @@ -9261,7 +8969,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9271,7 +8978,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -9281,7 +8987,6 @@ public function getName() { return $this->name; } - public function setSegmentId($segmentId) { $this->segmentId = $segmentId; @@ -9291,7 +8996,6 @@ public function getSegmentId() { return $this->segmentId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9301,7 +9005,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setType($type) { $this->type = $type; @@ -9311,7 +9014,6 @@ public function getType() { return $this->type; } - public function setUpdated($updated) { $this->updated = $updated; @@ -9321,6 +9023,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Analytics_Segments extends Google_Collection @@ -9347,7 +9050,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -9357,7 +9059,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -9367,7 +9068,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -9377,7 +9077,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -9387,7 +9086,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -9397,7 +9095,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -9407,7 +9104,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -9417,6 +9113,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_UnsampledReport extends Google_Model @@ -9456,7 +9153,6 @@ public function getAccountId() { return $this->accountId; } - public function setCloudStorageDownloadDetails(Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails) { $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; @@ -9466,7 +9162,6 @@ public function getCloudStorageDownloadDetails() { return $this->cloudStorageDownloadDetails; } - public function setCreated($created) { $this->created = $created; @@ -9476,7 +9171,6 @@ public function getCreated() { return $this->created; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -9486,7 +9180,6 @@ public function getDimensions() { return $this->dimensions; } - public function setDownloadType($downloadType) { $this->downloadType = $downloadType; @@ -9496,7 +9189,6 @@ public function getDownloadType() { return $this->downloadType; } - public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReportDriveDownloadDetails $driveDownloadDetails) { $this->driveDownloadDetails = $driveDownloadDetails; @@ -9506,7 +9198,6 @@ public function getDriveDownloadDetails() { return $this->driveDownloadDetails; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -9516,7 +9207,6 @@ public function getEndDate() { return $this->endDate; } - public function setFilters($filters) { $this->filters = $filters; @@ -9526,7 +9216,6 @@ public function getFilters() { return $this->filters; } - public function setId($id) { $this->id = $id; @@ -9536,7 +9225,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9546,7 +9234,6 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -9556,7 +9243,6 @@ public function getMetrics() { return $this->metrics; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -9566,7 +9252,6 @@ public function getProfileId() { return $this->profileId; } - public function setSegment($segment) { $this->segment = $segment; @@ -9576,7 +9261,6 @@ public function getSegment() { return $this->segment; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9586,7 +9270,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -9596,7 +9279,6 @@ public function getStartDate() { return $this->startDate; } - public function setStatus($status) { $this->status = $status; @@ -9606,7 +9288,6 @@ public function getStatus() { return $this->status; } - public function setTitle($title) { $this->title = $title; @@ -9616,7 +9297,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -9626,7 +9306,6 @@ public function getUpdated() { return $this->updated; } - public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; @@ -9636,6 +9315,7 @@ public function getWebPropertyId() { return $this->webPropertyId; } + } class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model @@ -9654,7 +9334,6 @@ public function getBucketId() { return $this->bucketId; } - public function setObjectId($objectId) { $this->objectId = $objectId; @@ -9664,6 +9343,7 @@ public function getObjectId() { return $this->objectId; } + } class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model @@ -9681,6 +9361,7 @@ public function getDocumentId() { return $this->documentId; } + } class Google_Service_Analytics_UnsampledReports extends Google_Collection @@ -9707,7 +9388,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -9717,7 +9397,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -9727,7 +9406,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -9737,7 +9415,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -9747,7 +9424,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -9757,7 +9433,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -9767,7 +9442,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -9777,6 +9451,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_Upload extends Google_Collection @@ -9800,7 +9475,6 @@ public function getAccountId() { return $this->accountId; } - public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; @@ -9810,7 +9484,6 @@ public function getCustomDataSourceId() { return $this->customDataSourceId; } - public function setErrors($errors) { $this->errors = $errors; @@ -9820,7 +9493,6 @@ public function getErrors() { return $this->errors; } - public function setId($id) { $this->id = $id; @@ -9830,7 +9502,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9840,7 +9511,6 @@ public function getKind() { return $this->kind; } - public function setStatus($status) { $this->status = $status; @@ -9850,6 +9520,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Analytics_Uploads extends Google_Collection @@ -9875,7 +9546,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -9885,7 +9555,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -9895,7 +9564,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -9905,7 +9573,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -9915,7 +9582,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -9925,7 +9591,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -9935,6 +9600,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_Analytics_UserRef extends Google_Model @@ -9954,7 +9620,6 @@ public function getEmail() { return $this->email; } - public function setId($id) { $this->id = $id; @@ -9964,7 +9629,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9974,6 +9638,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Analytics_WebPropertyRef extends Google_Model @@ -9996,7 +9661,6 @@ public function getAccountId() { return $this->accountId; } - public function setHref($href) { $this->href = $href; @@ -10006,7 +9670,6 @@ public function getHref() { return $this->href; } - public function setId($id) { $this->id = $id; @@ -10016,7 +9679,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -10026,7 +9688,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -10036,7 +9697,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -10046,6 +9706,7 @@ public function getName() { return $this->name; } + } class Google_Service_Analytics_WebPropertySummary extends Google_Collection @@ -10071,7 +9732,6 @@ public function getId() { return $this->id; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -10081,7 +9741,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -10091,7 +9750,6 @@ public function getKind() { return $this->kind; } - public function setLevel($level) { $this->level = $level; @@ -10101,7 +9759,6 @@ public function getLevel() { return $this->level; } - public function setName($name) { $this->name = $name; @@ -10111,7 +9768,6 @@ public function getName() { return $this->name; } - public function setProfiles($profiles) { $this->profiles = $profiles; @@ -10121,7 +9777,6 @@ public function getProfiles() { return $this->profiles; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -10131,6 +9786,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_Analytics_Webproperties extends Google_Collection @@ -10157,7 +9813,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -10167,7 +9822,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -10177,7 +9831,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -10187,7 +9840,6 @@ public function getNextLink() { return $this->nextLink; } - public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; @@ -10197,7 +9849,6 @@ public function getPreviousLink() { return $this->previousLink; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -10207,7 +9858,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -10217,7 +9867,6 @@ public function getTotalResults() { return $this->totalResults; } - public function setUsername($username) { $this->username = $username; @@ -10227,6 +9876,7 @@ public function getUsername() { return $this->username; } + } class Google_Service_Analytics_Webproperty extends Google_Model @@ -10262,7 +9912,6 @@ public function getAccountId() { return $this->accountId; } - public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink) { $this->childLink = $childLink; @@ -10272,7 +9921,6 @@ public function getChildLink() { return $this->childLink; } - public function setCreated($created) { $this->created = $created; @@ -10282,7 +9930,6 @@ public function getCreated() { return $this->created; } - public function setDefaultProfileId($defaultProfileId) { $this->defaultProfileId = $defaultProfileId; @@ -10292,7 +9939,6 @@ public function getDefaultProfileId() { return $this->defaultProfileId; } - public function setId($id) { $this->id = $id; @@ -10302,7 +9948,6 @@ public function getId() { return $this->id; } - public function setIndustryVertical($industryVertical) { $this->industryVertical = $industryVertical; @@ -10312,7 +9957,6 @@ public function getIndustryVertical() { return $this->industryVertical; } - public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; @@ -10322,7 +9966,6 @@ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } - public function setKind($kind) { $this->kind = $kind; @@ -10332,7 +9975,6 @@ public function getKind() { return $this->kind; } - public function setLevel($level) { $this->level = $level; @@ -10342,7 +9984,6 @@ public function getLevel() { return $this->level; } - public function setName($name) { $this->name = $name; @@ -10352,7 +9993,6 @@ public function getName() { return $this->name; } - public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink) { $this->parentLink = $parentLink; @@ -10362,7 +10002,6 @@ public function getParentLink() { return $this->parentLink; } - public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions) { $this->permissions = $permissions; @@ -10372,7 +10011,6 @@ public function getPermissions() { return $this->permissions; } - public function setProfileCount($profileCount) { $this->profileCount = $profileCount; @@ -10382,7 +10020,6 @@ public function getProfileCount() { return $this->profileCount; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10392,7 +10029,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -10402,7 +10038,6 @@ public function getUpdated() { return $this->updated; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -10412,6 +10047,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_Analytics_WebpropertyChildLink extends Google_Model @@ -10430,7 +10066,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -10440,6 +10075,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_WebpropertyParentLink extends Google_Model @@ -10458,7 +10094,6 @@ public function getHref() { return $this->href; } - public function setType($type) { $this->type = $type; @@ -10468,6 +10103,7 @@ public function getType() { return $this->type; } + } class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection @@ -10486,4 +10122,5 @@ public function getEffective() { return $this->effective; } + } From 3b6099b1a0f9dc997d9f9fa332bd5deaac449a71 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:55 -0700 Subject: [PATCH 0378/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 354 ++++++++--------------------------- 1 file changed, 79 insertions(+), 275 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 16a0ea62d..a627fe32e 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -2509,7 +2509,6 @@ public function getAfterSelectedText() { return $this->afterSelectedText; } - public function setBeforeSelectedText($beforeSelectedText) { $this->beforeSelectedText = $beforeSelectedText; @@ -2519,7 +2518,6 @@ public function getBeforeSelectedText() { return $this->beforeSelectedText; } - public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges) { $this->clientVersionRanges = $clientVersionRanges; @@ -2529,7 +2527,6 @@ public function getClientVersionRanges() { return $this->clientVersionRanges; } - public function setCreated($created) { $this->created = $created; @@ -2539,7 +2536,6 @@ public function getCreated() { return $this->created; } - public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges) { $this->currentVersionRanges = $currentVersionRanges; @@ -2549,7 +2545,6 @@ public function getCurrentVersionRanges() { return $this->currentVersionRanges; } - public function setData($data) { $this->data = $data; @@ -2559,7 +2554,6 @@ public function getData() { return $this->data; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -2569,7 +2563,6 @@ public function getDeleted() { return $this->deleted; } - public function setHighlightStyle($highlightStyle) { $this->highlightStyle = $highlightStyle; @@ -2579,7 +2572,6 @@ public function getHighlightStyle() { return $this->highlightStyle; } - public function setId($id) { $this->id = $id; @@ -2589,7 +2581,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2599,7 +2590,6 @@ public function getKind() { return $this->kind; } - public function setLayerId($layerId) { $this->layerId = $layerId; @@ -2609,7 +2599,6 @@ public function getLayerId() { return $this->layerId; } - public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary) { $this->layerSummary = $layerSummary; @@ -2619,7 +2608,6 @@ public function getLayerSummary() { return $this->layerSummary; } - public function setPageIds($pageIds) { $this->pageIds = $pageIds; @@ -2629,7 +2617,6 @@ public function getPageIds() { return $this->pageIds; } - public function setSelectedText($selectedText) { $this->selectedText = $selectedText; @@ -2639,7 +2626,6 @@ public function getSelectedText() { return $this->selectedText; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2649,7 +2635,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2659,7 +2644,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -2669,6 +2653,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model @@ -2694,7 +2679,6 @@ public function getCfiRange() { return $this->cfiRange; } - public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; @@ -2704,7 +2688,6 @@ public function getContentVersion() { return $this->contentVersion; } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { $this->gbImageRange = $gbImageRange; @@ -2714,7 +2697,6 @@ public function getGbImageRange() { return $this->gbImageRange; } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { $this->gbTextRange = $gbTextRange; @@ -2724,7 +2706,6 @@ public function getGbTextRange() { return $this->gbTextRange; } - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) { $this->imageCfiRange = $imageCfiRange; @@ -2734,6 +2715,7 @@ public function getImageCfiRange() { return $this->imageCfiRange; } + } class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model @@ -2759,7 +2741,6 @@ public function getCfiRange() { return $this->cfiRange; } - public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; @@ -2769,7 +2750,6 @@ public function getContentVersion() { return $this->contentVersion; } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { $this->gbImageRange = $gbImageRange; @@ -2779,7 +2759,6 @@ public function getGbImageRange() { return $this->gbImageRange; } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { $this->gbTextRange = $gbTextRange; @@ -2789,7 +2768,6 @@ public function getGbTextRange() { return $this->gbTextRange; } - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) { $this->imageCfiRange = $imageCfiRange; @@ -2799,6 +2777,7 @@ public function getImageCfiRange() { return $this->imageCfiRange; } + } class Google_Service_Books_AnnotationLayerSummary extends Google_Model @@ -2818,7 +2797,6 @@ public function getAllowedCharacterCount() { return $this->allowedCharacterCount; } - public function setLimitType($limitType) { $this->limitType = $limitType; @@ -2828,7 +2806,6 @@ public function getLimitType() { return $this->limitType; } - public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; @@ -2838,6 +2815,7 @@ public function getRemainingCharacterCount() { return $this->remainingCharacterCount; } + } class Google_Service_Books_Annotationdata extends Google_Model @@ -2864,7 +2842,6 @@ public function getAnnotationType() { return $this->annotationType; } - public function setData($data) { $this->data = $data; @@ -2874,7 +2851,6 @@ public function getData() { return $this->data; } - public function setEncodedData($encodedData) { $this->encodedData = $encodedData; @@ -2884,7 +2860,6 @@ public function getEncodedData() { return $this->encodedData; } - public function setId($id) { $this->id = $id; @@ -2894,7 +2869,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2904,7 +2878,6 @@ public function getKind() { return $this->kind; } - public function setLayerId($layerId) { $this->layerId = $layerId; @@ -2914,7 +2887,6 @@ public function getLayerId() { return $this->layerId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2924,7 +2896,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2934,7 +2905,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -2944,6 +2914,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_Annotations extends Google_Collection @@ -2966,7 +2937,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2976,7 +2946,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2986,7 +2955,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2996,6 +2964,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Books_AnnotationsSummary extends Google_Collection @@ -3016,7 +2985,6 @@ public function getKind() { return $this->kind; } - public function setLayers($layers) { $this->layers = $layers; @@ -3026,6 +2994,7 @@ public function getLayers() { return $this->layers; } + } class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model @@ -3047,7 +3016,6 @@ public function getAllowedCharacterCount() { return $this->allowedCharacterCount; } - public function setLayerId($layerId) { $this->layerId = $layerId; @@ -3057,7 +3025,6 @@ public function getLayerId() { return $this->layerId; } - public function setLimitType($limitType) { $this->limitType = $limitType; @@ -3067,7 +3034,6 @@ public function getLimitType() { return $this->limitType; } - public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; @@ -3077,7 +3043,6 @@ public function getRemainingCharacterCount() { return $this->remainingCharacterCount; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3087,6 +3052,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Books_Annotationsdata extends Google_Collection @@ -3109,7 +3075,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3119,7 +3084,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3129,7 +3093,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -3139,6 +3102,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Books_BooksAnnotationsRange extends Google_Model @@ -3159,7 +3123,6 @@ public function getEndOffset() { return $this->endOffset; } - public function setEndPosition($endPosition) { $this->endPosition = $endPosition; @@ -3169,7 +3132,6 @@ public function getEndPosition() { return $this->endPosition; } - public function setStartOffset($startOffset) { $this->startOffset = $startOffset; @@ -3179,7 +3141,6 @@ public function getStartOffset() { return $this->startOffset; } - public function setStartPosition($startPosition) { $this->startPosition = $startPosition; @@ -3189,6 +3150,7 @@ public function getStartPosition() { return $this->startPosition; } + } class Google_Service_Books_BooksCloudloadingResource extends Google_Model @@ -3209,7 +3171,6 @@ public function getAuthor() { return $this->author; } - public function setProcessingState($processingState) { $this->processingState = $processingState; @@ -3219,7 +3180,6 @@ public function getProcessingState() { return $this->processingState; } - public function setTitle($title) { $this->title = $title; @@ -3229,7 +3189,6 @@ public function getTitle() { return $this->title; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -3239,6 +3198,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model @@ -3257,6 +3217,7 @@ public function getConsistencyToken() { return $this->consistencyToken; } + } class Google_Service_Books_Bookshelf extends Google_Model @@ -3283,7 +3244,6 @@ public function getAccess() { return $this->access; } - public function setCreated($created) { $this->created = $created; @@ -3293,7 +3253,6 @@ public function getCreated() { return $this->created; } - public function setDescription($description) { $this->description = $description; @@ -3303,7 +3262,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -3313,7 +3271,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3323,7 +3280,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3333,7 +3289,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -3343,7 +3298,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3353,7 +3307,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeCount($volumeCount) { $this->volumeCount = $volumeCount; @@ -3363,7 +3316,6 @@ public function getVolumeCount() { return $this->volumeCount; } - public function setVolumesLastUpdated($volumesLastUpdated) { $this->volumesLastUpdated = $volumesLastUpdated; @@ -3373,6 +3325,7 @@ public function getVolumesLastUpdated() { return $this->volumesLastUpdated; } + } class Google_Service_Books_Bookshelves extends Google_Collection @@ -3393,7 +3346,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3403,6 +3355,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model @@ -3430,7 +3383,6 @@ public function getDeviceAllowed() { return $this->deviceAllowed; } - public function setKind($kind) { $this->kind = $kind; @@ -3440,7 +3392,6 @@ public function getKind() { return $this->kind; } - public function setMaxConcurrentDevices($maxConcurrentDevices) { $this->maxConcurrentDevices = $maxConcurrentDevices; @@ -3450,7 +3401,6 @@ public function getMaxConcurrentDevices() { return $this->maxConcurrentDevices; } - public function setMessage($message) { $this->message = $message; @@ -3460,7 +3410,6 @@ public function getMessage() { return $this->message; } - public function setNonce($nonce) { $this->nonce = $nonce; @@ -3470,7 +3419,6 @@ public function getNonce() { return $this->nonce; } - public function setReasonCode($reasonCode) { $this->reasonCode = $reasonCode; @@ -3480,7 +3428,6 @@ public function getReasonCode() { return $this->reasonCode; } - public function setRestricted($restricted) { $this->restricted = $restricted; @@ -3490,7 +3437,6 @@ public function getRestricted() { return $this->restricted; } - public function setSignature($signature) { $this->signature = $signature; @@ -3500,7 +3446,6 @@ public function getSignature() { return $this->signature; } - public function setSource($source) { $this->source = $source; @@ -3510,7 +3455,6 @@ public function getSource() { return $this->source; } - public function setTimeWindowSeconds($timeWindowSeconds) { $this->timeWindowSeconds = $timeWindowSeconds; @@ -3520,7 +3464,6 @@ public function getTimeWindowSeconds() { return $this->timeWindowSeconds; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -3530,6 +3473,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_Dictlayerdata extends Google_Model @@ -3551,7 +3495,6 @@ public function getCommon() { return $this->common; } - public function setDict(Google_Service_Books_DictlayerdataDict $dict) { $this->dict = $dict; @@ -3561,7 +3504,6 @@ public function getDict() { return $this->dict; } - public function setKind($kind) { $this->kind = $kind; @@ -3571,6 +3513,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_DictlayerdataCommon extends Google_Model @@ -3588,6 +3531,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Books_DictlayerdataDict extends Google_Collection @@ -3609,7 +3553,6 @@ public function getSource() { return $this->source; } - public function setWords($words) { $this->words = $words; @@ -3619,6 +3562,7 @@ public function getWords() { return $this->words; } + } class Google_Service_Books_DictlayerdataDictSource extends Google_Model @@ -3637,7 +3581,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -3647,6 +3590,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWords extends Google_Collection @@ -3672,7 +3616,6 @@ public function getDerivatives() { return $this->derivatives; } - public function setExamples($examples) { $this->examples = $examples; @@ -3682,7 +3625,6 @@ public function getExamples() { return $this->examples; } - public function setSenses($senses) { $this->senses = $senses; @@ -3692,7 +3634,6 @@ public function getSenses() { return $this->senses; } - public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source) { $this->source = $source; @@ -3702,6 +3643,7 @@ public function getSource() { return $this->source; } + } class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model @@ -3721,7 +3663,6 @@ public function getSource() { return $this->source; } - public function setText($text) { $this->text = $text; @@ -3731,6 +3672,7 @@ public function getText() { return $this->text; } + } class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model @@ -3749,7 +3691,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -3759,6 +3700,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model @@ -3778,7 +3720,6 @@ public function getSource() { return $this->source; } - public function setText($text) { $this->text = $text; @@ -3788,6 +3729,7 @@ public function getText() { return $this->text; } + } class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model @@ -3806,7 +3748,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -3816,6 +3757,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection @@ -3845,7 +3787,6 @@ public function getConjugations() { return $this->conjugations; } - public function setDefinitions($definitions) { $this->definitions = $definitions; @@ -3855,7 +3796,6 @@ public function getDefinitions() { return $this->definitions; } - public function setPartOfSpeech($partOfSpeech) { $this->partOfSpeech = $partOfSpeech; @@ -3865,7 +3805,6 @@ public function getPartOfSpeech() { return $this->partOfSpeech; } - public function setPronunciation($pronunciation) { $this->pronunciation = $pronunciation; @@ -3875,7 +3814,6 @@ public function getPronunciation() { return $this->pronunciation; } - public function setPronunciationUrl($pronunciationUrl) { $this->pronunciationUrl = $pronunciationUrl; @@ -3885,7 +3823,6 @@ public function getPronunciationUrl() { return $this->pronunciationUrl; } - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source) { $this->source = $source; @@ -3895,7 +3832,6 @@ public function getSource() { return $this->source; } - public function setSyllabification($syllabification) { $this->syllabification = $syllabification; @@ -3905,7 +3841,6 @@ public function getSyllabification() { return $this->syllabification; } - public function setSynonyms($synonyms) { $this->synonyms = $synonyms; @@ -3915,6 +3850,7 @@ public function getSynonyms() { return $this->synonyms; } + } class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model @@ -3933,7 +3869,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3943,6 +3878,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection @@ -3963,7 +3899,6 @@ public function getDefinition() { return $this->definition; } - public function setExamples($examples) { $this->examples = $examples; @@ -3973,6 +3908,7 @@ public function getExamples() { return $this->examples; } + } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model @@ -3992,7 +3928,6 @@ public function getSource() { return $this->source; } - public function setText($text) { $this->text = $text; @@ -4002,6 +3937,7 @@ public function getText() { return $this->text; } + } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model @@ -4020,7 +3956,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -4030,6 +3965,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model @@ -4048,7 +3984,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -4058,6 +3993,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model @@ -4077,7 +4013,6 @@ public function getSource() { return $this->source; } - public function setText($text) { $this->text = $text; @@ -4087,6 +4022,7 @@ public function getText() { return $this->text; } + } class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model @@ -4105,7 +4041,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -4115,6 +4050,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model @@ -4133,7 +4069,6 @@ public function getAttribution() { return $this->attribution; } - public function setUrl($url) { $this->url = $url; @@ -4143,6 +4078,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_DownloadAccessRestriction extends Google_Model @@ -4171,7 +4107,6 @@ public function getDeviceAllowed() { return $this->deviceAllowed; } - public function setDownloadsAcquired($downloadsAcquired) { $this->downloadsAcquired = $downloadsAcquired; @@ -4181,7 +4116,6 @@ public function getDownloadsAcquired() { return $this->downloadsAcquired; } - public function setJustAcquired($justAcquired) { $this->justAcquired = $justAcquired; @@ -4191,7 +4125,6 @@ public function getJustAcquired() { return $this->justAcquired; } - public function setKind($kind) { $this->kind = $kind; @@ -4201,7 +4134,6 @@ public function getKind() { return $this->kind; } - public function setMaxDownloadDevices($maxDownloadDevices) { $this->maxDownloadDevices = $maxDownloadDevices; @@ -4211,7 +4143,6 @@ public function getMaxDownloadDevices() { return $this->maxDownloadDevices; } - public function setMessage($message) { $this->message = $message; @@ -4221,7 +4152,6 @@ public function getMessage() { return $this->message; } - public function setNonce($nonce) { $this->nonce = $nonce; @@ -4231,7 +4161,6 @@ public function getNonce() { return $this->nonce; } - public function setReasonCode($reasonCode) { $this->reasonCode = $reasonCode; @@ -4241,7 +4170,6 @@ public function getReasonCode() { return $this->reasonCode; } - public function setRestricted($restricted) { $this->restricted = $restricted; @@ -4251,7 +4179,6 @@ public function getRestricted() { return $this->restricted; } - public function setSignature($signature) { $this->signature = $signature; @@ -4261,7 +4188,6 @@ public function getSignature() { return $this->signature; } - public function setSource($source) { $this->source = $source; @@ -4271,7 +4197,6 @@ public function getSource() { return $this->source; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -4281,6 +4206,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_DownloadAccesses extends Google_Collection @@ -4301,7 +4227,6 @@ public function getDownloadAccessList() { return $this->downloadAccessList; } - public function setKind($kind) { $this->kind = $kind; @@ -4311,6 +4236,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_Geolayerdata extends Google_Model @@ -4332,7 +4258,6 @@ public function getCommon() { return $this->common; } - public function setGeo(Google_Service_Books_GeolayerdataGeo $geo) { $this->geo = $geo; @@ -4342,7 +4267,6 @@ public function getGeo() { return $this->geo; } - public function setKind($kind) { $this->kind = $kind; @@ -4352,6 +4276,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_GeolayerdataCommon extends Google_Model @@ -4373,7 +4298,6 @@ public function getLang() { return $this->lang; } - public function setPreviewImageUrl($previewImageUrl) { $this->previewImageUrl = $previewImageUrl; @@ -4383,7 +4307,6 @@ public function getPreviewImageUrl() { return $this->previewImageUrl; } - public function setSnippet($snippet) { $this->snippet = $snippet; @@ -4393,7 +4316,6 @@ public function getSnippet() { return $this->snippet; } - public function setSnippetUrl($snippetUrl) { $this->snippetUrl = $snippetUrl; @@ -4403,7 +4325,6 @@ public function getSnippetUrl() { return $this->snippetUrl; } - public function setTitle($title) { $this->title = $title; @@ -4413,6 +4334,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Books_GeolayerdataGeo extends Google_Collection @@ -4440,7 +4362,6 @@ public function getBoundary() { return $this->boundary; } - public function setCachePolicy($cachePolicy) { $this->cachePolicy = $cachePolicy; @@ -4450,7 +4371,6 @@ public function getCachePolicy() { return $this->cachePolicy; } - public function setCountryCode($countryCode) { $this->countryCode = $countryCode; @@ -4460,7 +4380,6 @@ public function getCountryCode() { return $this->countryCode; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -4470,7 +4389,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -4480,7 +4398,6 @@ public function getLongitude() { return $this->longitude; } - public function setMapType($mapType) { $this->mapType = $mapType; @@ -4490,7 +4407,6 @@ public function getMapType() { return $this->mapType; } - public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport) { $this->viewport = $viewport; @@ -4500,7 +4416,6 @@ public function getViewport() { return $this->viewport; } - public function setZoom($zoom) { $this->zoom = $zoom; @@ -4510,6 +4425,7 @@ public function getZoom() { return $this->zoom; } + } class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model @@ -4528,7 +4444,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -4538,6 +4453,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model @@ -4558,7 +4474,6 @@ public function getHi() { return $this->hi; } - public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo) { $this->lo = $lo; @@ -4568,6 +4483,7 @@ public function getLo() { return $this->lo; } + } class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model @@ -4586,7 +4502,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -4596,6 +4511,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model @@ -4614,7 +4530,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -4624,6 +4539,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Books_Layersummaries extends Google_Collection @@ -4645,7 +4561,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4655,7 +4570,6 @@ public function getKind() { return $this->kind; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -4665,6 +4579,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Books_Layersummary extends Google_Collection @@ -4695,7 +4610,6 @@ public function getAnnotationCount() { return $this->annotationCount; } - public function setAnnotationTypes($annotationTypes) { $this->annotationTypes = $annotationTypes; @@ -4705,7 +4619,6 @@ public function getAnnotationTypes() { return $this->annotationTypes; } - public function setAnnotationsDataLink($annotationsDataLink) { $this->annotationsDataLink = $annotationsDataLink; @@ -4715,7 +4628,6 @@ public function getAnnotationsDataLink() { return $this->annotationsDataLink; } - public function setAnnotationsLink($annotationsLink) { $this->annotationsLink = $annotationsLink; @@ -4725,7 +4637,6 @@ public function getAnnotationsLink() { return $this->annotationsLink; } - public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; @@ -4735,7 +4646,6 @@ public function getContentVersion() { return $this->contentVersion; } - public function setDataCount($dataCount) { $this->dataCount = $dataCount; @@ -4745,7 +4655,6 @@ public function getDataCount() { return $this->dataCount; } - public function setId($id) { $this->id = $id; @@ -4755,7 +4664,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -4765,7 +4673,6 @@ public function getKind() { return $this->kind; } - public function setLayerId($layerId) { $this->layerId = $layerId; @@ -4775,7 +4682,6 @@ public function getLayerId() { return $this->layerId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -4785,7 +4691,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -4795,7 +4700,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; @@ -4805,7 +4709,6 @@ public function getVolumeAnnotationsVersion() { return $this->volumeAnnotationsVersion; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -4815,6 +4718,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_Offers extends Google_Collection @@ -4835,7 +4739,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4845,6 +4748,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_OffersItems extends Google_Collection @@ -4866,7 +4770,6 @@ public function getArtUrl() { return $this->artUrl; } - public function setId($id) { $this->id = $id; @@ -4876,7 +4779,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -4886,6 +4788,7 @@ public function getItems() { return $this->items; } + } class Google_Service_Books_OffersItemsItems extends Google_Model @@ -4908,7 +4811,6 @@ public function getAuthor() { return $this->author; } - public function setCanonicalVolumeLink($canonicalVolumeLink) { $this->canonicalVolumeLink = $canonicalVolumeLink; @@ -4918,7 +4820,6 @@ public function getCanonicalVolumeLink() { return $this->canonicalVolumeLink; } - public function setCoverUrl($coverUrl) { $this->coverUrl = $coverUrl; @@ -4928,7 +4829,6 @@ public function getCoverUrl() { return $this->coverUrl; } - public function setDescription($description) { $this->description = $description; @@ -4938,7 +4838,6 @@ public function getDescription() { return $this->description; } - public function setTitle($title) { $this->title = $title; @@ -4948,7 +4847,6 @@ public function getTitle() { return $this->title; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -4958,6 +4856,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_ReadingPosition extends Google_Model @@ -4981,7 +4880,6 @@ public function getEpubCfiPosition() { return $this->epubCfiPosition; } - public function setGbImagePosition($gbImagePosition) { $this->gbImagePosition = $gbImagePosition; @@ -4991,7 +4889,6 @@ public function getGbImagePosition() { return $this->gbImagePosition; } - public function setGbTextPosition($gbTextPosition) { $this->gbTextPosition = $gbTextPosition; @@ -5001,7 +4898,6 @@ public function getGbTextPosition() { return $this->gbTextPosition; } - public function setKind($kind) { $this->kind = $kind; @@ -5011,7 +4907,6 @@ public function getKind() { return $this->kind; } - public function setPdfPosition($pdfPosition) { $this->pdfPosition = $pdfPosition; @@ -5021,7 +4916,6 @@ public function getPdfPosition() { return $this->pdfPosition; } - public function setUpdated($updated) { $this->updated = $updated; @@ -5031,7 +4925,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -5041,6 +4934,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_RequestAccess extends Google_Model @@ -5062,7 +4956,6 @@ public function getConcurrentAccess() { return $this->concurrentAccess; } - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) { $this->downloadAccess = $downloadAccess; @@ -5072,7 +4965,6 @@ public function getDownloadAccess() { return $this->downloadAccess; } - public function setKind($kind) { $this->kind = $kind; @@ -5082,6 +4974,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Books_Review extends Google_Model @@ -5110,7 +5003,6 @@ public function getAuthor() { return $this->author; } - public function setContent($content) { $this->content = $content; @@ -5120,7 +5012,6 @@ public function getContent() { return $this->content; } - public function setDate($date) { $this->date = $date; @@ -5130,7 +5021,6 @@ public function getDate() { return $this->date; } - public function setFullTextUrl($fullTextUrl) { $this->fullTextUrl = $fullTextUrl; @@ -5140,7 +5030,6 @@ public function getFullTextUrl() { return $this->fullTextUrl; } - public function setKind($kind) { $this->kind = $kind; @@ -5150,7 +5039,6 @@ public function getKind() { return $this->kind; } - public function setRating($rating) { $this->rating = $rating; @@ -5160,7 +5048,6 @@ public function getRating() { return $this->rating; } - public function setSource(Google_Service_Books_ReviewSource $source) { $this->source = $source; @@ -5170,7 +5057,6 @@ public function getSource() { return $this->source; } - public function setTitle($title) { $this->title = $title; @@ -5180,7 +5066,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -5190,7 +5075,6 @@ public function getType() { return $this->type; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -5200,6 +5084,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_ReviewAuthor extends Google_Model @@ -5217,6 +5102,7 @@ public function getDisplayName() { return $this->displayName; } + } class Google_Service_Books_ReviewSource extends Google_Model @@ -5236,7 +5122,6 @@ public function getDescription() { return $this->description; } - public function setExtraDescription($extraDescription) { $this->extraDescription = $extraDescription; @@ -5246,7 +5131,6 @@ public function getExtraDescription() { return $this->extraDescription; } - public function setUrl($url) { $this->url = $url; @@ -5256,6 +5140,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Books_Volume extends Google_Model @@ -5290,7 +5175,6 @@ public function getAccessInfo() { return $this->accessInfo; } - public function setEtag($etag) { $this->etag = $etag; @@ -5300,7 +5184,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -5310,7 +5193,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5320,7 +5202,6 @@ public function getKind() { return $this->kind; } - public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo) { $this->layerInfo = $layerInfo; @@ -5330,7 +5211,6 @@ public function getLayerInfo() { return $this->layerInfo; } - public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo) { $this->recommendedInfo = $recommendedInfo; @@ -5340,7 +5220,6 @@ public function getRecommendedInfo() { return $this->recommendedInfo; } - public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo) { $this->saleInfo = $saleInfo; @@ -5350,7 +5229,6 @@ public function getSaleInfo() { return $this->saleInfo; } - public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo) { $this->searchInfo = $searchInfo; @@ -5360,7 +5238,6 @@ public function getSearchInfo() { return $this->searchInfo; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5370,7 +5247,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo) { $this->userInfo = $userInfo; @@ -5380,7 +5256,6 @@ public function getUserInfo() { return $this->userInfo; } - public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo) { $this->volumeInfo = $volumeInfo; @@ -5390,6 +5265,7 @@ public function getVolumeInfo() { return $this->volumeInfo; } + } class Google_Service_Books_VolumeAccessInfo extends Google_Model @@ -5423,7 +5299,6 @@ public function getAccessViewStatus() { return $this->accessViewStatus; } - public function setCountry($country) { $this->country = $country; @@ -5433,7 +5308,6 @@ public function getCountry() { return $this->country; } - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) { $this->downloadAccess = $downloadAccess; @@ -5443,7 +5317,6 @@ public function getDownloadAccess() { return $this->downloadAccess; } - public function setDriveImportedContentLink($driveImportedContentLink) { $this->driveImportedContentLink = $driveImportedContentLink; @@ -5453,7 +5326,6 @@ public function getDriveImportedContentLink() { return $this->driveImportedContentLink; } - public function setEmbeddable($embeddable) { $this->embeddable = $embeddable; @@ -5463,7 +5335,6 @@ public function getEmbeddable() { return $this->embeddable; } - public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub) { $this->epub = $epub; @@ -5473,7 +5344,6 @@ public function getEpub() { return $this->epub; } - public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManagement) { $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement; @@ -5483,7 +5353,6 @@ public function getExplicitOfflineLicenseManagement() { return $this->explicitOfflineLicenseManagement; } - public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf) { $this->pdf = $pdf; @@ -5493,7 +5362,6 @@ public function getPdf() { return $this->pdf; } - public function setPublicDomain($publicDomain) { $this->publicDomain = $publicDomain; @@ -5503,7 +5371,6 @@ public function getPublicDomain() { return $this->publicDomain; } - public function setQuoteSharingAllowed($quoteSharingAllowed) { $this->quoteSharingAllowed = $quoteSharingAllowed; @@ -5513,7 +5380,6 @@ public function getQuoteSharingAllowed() { return $this->quoteSharingAllowed; } - public function setTextToSpeechPermission($textToSpeechPermission) { $this->textToSpeechPermission = $textToSpeechPermission; @@ -5523,7 +5389,6 @@ public function getTextToSpeechPermission() { return $this->textToSpeechPermission; } - public function setViewOrderUrl($viewOrderUrl) { $this->viewOrderUrl = $viewOrderUrl; @@ -5533,7 +5398,6 @@ public function getViewOrderUrl() { return $this->viewOrderUrl; } - public function setViewability($viewability) { $this->viewability = $viewability; @@ -5543,7 +5407,6 @@ public function getViewability() { return $this->viewability; } - public function setWebReaderLink($webReaderLink) { $this->webReaderLink = $webReaderLink; @@ -5553,6 +5416,7 @@ public function getWebReaderLink() { return $this->webReaderLink; } + } class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model @@ -5572,7 +5436,6 @@ public function getAcsTokenLink() { return $this->acsTokenLink; } - public function setDownloadLink($downloadLink) { $this->downloadLink = $downloadLink; @@ -5582,7 +5445,6 @@ public function getDownloadLink() { return $this->downloadLink; } - public function setIsAvailable($isAvailable) { $this->isAvailable = $isAvailable; @@ -5592,6 +5454,7 @@ public function getIsAvailable() { return $this->isAvailable; } + } class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model @@ -5611,7 +5474,6 @@ public function getAcsTokenLink() { return $this->acsTokenLink; } - public function setDownloadLink($downloadLink) { $this->downloadLink = $downloadLink; @@ -5621,7 +5483,6 @@ public function getDownloadLink() { return $this->downloadLink; } - public function setIsAvailable($isAvailable) { $this->isAvailable = $isAvailable; @@ -5631,6 +5492,7 @@ public function getIsAvailable() { return $this->isAvailable; } + } class Google_Service_Books_VolumeLayerInfo extends Google_Collection @@ -5650,6 +5512,7 @@ public function getLayers() { return $this->layers; } + } class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model @@ -5668,7 +5531,6 @@ public function getLayerId() { return $this->layerId; } - public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; @@ -5678,6 +5540,7 @@ public function getVolumeAnnotationsVersion() { return $this->volumeAnnotationsVersion; } + } class Google_Service_Books_VolumeRecommendedInfo extends Google_Model @@ -5695,6 +5558,7 @@ public function getExplanation() { return $this->explanation; } + } class Google_Service_Books_VolumeSaleInfo extends Google_Collection @@ -5723,7 +5587,6 @@ public function getBuyLink() { return $this->buyLink; } - public function setCountry($country) { $this->country = $country; @@ -5733,7 +5596,6 @@ public function getCountry() { return $this->country; } - public function setIsEbook($isEbook) { $this->isEbook = $isEbook; @@ -5743,7 +5605,6 @@ public function getIsEbook() { return $this->isEbook; } - public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice) { $this->listPrice = $listPrice; @@ -5753,7 +5614,6 @@ public function getListPrice() { return $this->listPrice; } - public function setOffers($offers) { $this->offers = $offers; @@ -5763,7 +5623,6 @@ public function getOffers() { return $this->offers; } - public function setOnSaleDate($onSaleDate) { $this->onSaleDate = $onSaleDate; @@ -5773,7 +5632,6 @@ public function getOnSaleDate() { return $this->onSaleDate; } - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice) { $this->retailPrice = $retailPrice; @@ -5783,7 +5641,6 @@ public function getRetailPrice() { return $this->retailPrice; } - public function setSaleability($saleability) { $this->saleability = $saleability; @@ -5793,6 +5650,7 @@ public function getSaleability() { return $this->saleability; } + } class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model @@ -5811,7 +5669,6 @@ public function getAmount() { return $this->amount; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -5821,6 +5678,7 @@ public function getCurrencyCode() { return $this->currencyCode; } + } class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model @@ -5844,7 +5702,6 @@ public function getFinskyOfferType() { return $this->finskyOfferType; } - public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice) { $this->listPrice = $listPrice; @@ -5854,7 +5711,6 @@ public function getListPrice() { return $this->listPrice; } - public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration) { $this->rentalDuration = $rentalDuration; @@ -5864,7 +5720,6 @@ public function getRentalDuration() { return $this->rentalDuration; } - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice) { $this->retailPrice = $retailPrice; @@ -5874,6 +5729,7 @@ public function getRetailPrice() { return $this->retailPrice; } + } class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model @@ -5892,7 +5748,6 @@ public function getAmountInMicros() { return $this->amountInMicros; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -5902,6 +5757,7 @@ public function getCurrencyCode() { return $this->currencyCode; } + } class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model @@ -5920,7 +5776,6 @@ public function getCount() { return $this->count; } - public function setUnit($unit) { $this->unit = $unit; @@ -5930,6 +5785,7 @@ public function getUnit() { return $this->unit; } + } class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model @@ -5948,7 +5804,6 @@ public function getAmountInMicros() { return $this->amountInMicros; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -5958,6 +5813,7 @@ public function getCurrencyCode() { return $this->currencyCode; } + } class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model @@ -5976,7 +5832,6 @@ public function getAmount() { return $this->amount; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -5986,6 +5841,7 @@ public function getCurrencyCode() { return $this->currencyCode; } + } class Google_Service_Books_VolumeSearchInfo extends Google_Model @@ -6003,6 +5859,7 @@ public function getTextSnippet() { return $this->textSnippet; } + } class Google_Service_Books_VolumeUserInfo extends Google_Model @@ -6035,7 +5892,6 @@ public function getCopy() { return $this->copy; } - public function setIsInMyBooks($isInMyBooks) { $this->isInMyBooks = $isInMyBooks; @@ -6045,7 +5901,6 @@ public function getIsInMyBooks() { return $this->isInMyBooks; } - public function setIsPreordered($isPreordered) { $this->isPreordered = $isPreordered; @@ -6055,7 +5910,6 @@ public function getIsPreordered() { return $this->isPreordered; } - public function setIsPurchased($isPurchased) { $this->isPurchased = $isPurchased; @@ -6065,7 +5919,6 @@ public function getIsPurchased() { return $this->isPurchased; } - public function setIsUploaded($isUploaded) { $this->isUploaded = $isUploaded; @@ -6075,7 +5928,6 @@ public function getIsUploaded() { return $this->isUploaded; } - public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition) { $this->readingPosition = $readingPosition; @@ -6085,7 +5937,6 @@ public function getReadingPosition() { return $this->readingPosition; } - public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod) { $this->rentalPeriod = $rentalPeriod; @@ -6095,7 +5946,6 @@ public function getRentalPeriod() { return $this->rentalPeriod; } - public function setRentalState($rentalState) { $this->rentalState = $rentalState; @@ -6105,7 +5955,6 @@ public function getRentalState() { return $this->rentalState; } - public function setReview(Google_Service_Books_Review $review) { $this->review = $review; @@ -6115,7 +5964,6 @@ public function getReview() { return $this->review; } - public function setUpdated($updated) { $this->updated = $updated; @@ -6125,7 +5973,6 @@ public function getUpdated() { return $this->updated; } - public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo) { $this->userUploadedVolumeInfo = $userUploadedVolumeInfo; @@ -6135,6 +5982,7 @@ public function getUserUploadedVolumeInfo() { return $this->userUploadedVolumeInfo; } + } class Google_Service_Books_VolumeUserInfoCopy extends Google_Model @@ -6155,7 +6003,6 @@ public function getAllowedCharacterCount() { return $this->allowedCharacterCount; } - public function setLimitType($limitType) { $this->limitType = $limitType; @@ -6165,7 +6012,6 @@ public function getLimitType() { return $this->limitType; } - public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; @@ -6175,7 +6021,6 @@ public function getRemainingCharacterCount() { return $this->remainingCharacterCount; } - public function setUpdated($updated) { $this->updated = $updated; @@ -6185,6 +6030,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model @@ -6203,7 +6049,6 @@ public function getEndUtcSec() { return $this->endUtcSec; } - public function setStartUtcSec($startUtcSec) { $this->startUtcSec = $startUtcSec; @@ -6213,6 +6058,7 @@ public function getStartUtcSec() { return $this->startUtcSec; } + } class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model @@ -6230,6 +6076,7 @@ public function getProcessingState() { return $this->processingState; } + } class Google_Service_Books_VolumeVolumeInfo extends Google_Collection @@ -6272,7 +6119,6 @@ public function getAuthors() { return $this->authors; } - public function setAverageRating($averageRating) { $this->averageRating = $averageRating; @@ -6282,7 +6128,6 @@ public function getAverageRating() { return $this->averageRating; } - public function setCanonicalVolumeLink($canonicalVolumeLink) { $this->canonicalVolumeLink = $canonicalVolumeLink; @@ -6292,7 +6137,6 @@ public function getCanonicalVolumeLink() { return $this->canonicalVolumeLink; } - public function setCategories($categories) { $this->categories = $categories; @@ -6302,7 +6146,6 @@ public function getCategories() { return $this->categories; } - public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; @@ -6312,7 +6155,6 @@ public function getContentVersion() { return $this->contentVersion; } - public function setDescription($description) { $this->description = $description; @@ -6322,7 +6164,6 @@ public function getDescription() { return $this->description; } - public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $dimensions) { $this->dimensions = $dimensions; @@ -6332,7 +6173,6 @@ public function getDimensions() { return $this->dimensions; } - public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $imageLinks) { $this->imageLinks = $imageLinks; @@ -6342,7 +6182,6 @@ public function getImageLinks() { return $this->imageLinks; } - public function setIndustryIdentifiers($industryIdentifiers) { $this->industryIdentifiers = $industryIdentifiers; @@ -6352,7 +6191,6 @@ public function getIndustryIdentifiers() { return $this->industryIdentifiers; } - public function setInfoLink($infoLink) { $this->infoLink = $infoLink; @@ -6362,7 +6200,6 @@ public function getInfoLink() { return $this->infoLink; } - public function setLanguage($language) { $this->language = $language; @@ -6372,7 +6209,6 @@ public function getLanguage() { return $this->language; } - public function setMainCategory($mainCategory) { $this->mainCategory = $mainCategory; @@ -6382,7 +6218,6 @@ public function getMainCategory() { return $this->mainCategory; } - public function setPageCount($pageCount) { $this->pageCount = $pageCount; @@ -6392,7 +6227,6 @@ public function getPageCount() { return $this->pageCount; } - public function setPreviewLink($previewLink) { $this->previewLink = $previewLink; @@ -6402,7 +6236,6 @@ public function getPreviewLink() { return $this->previewLink; } - public function setPrintType($printType) { $this->printType = $printType; @@ -6412,7 +6245,6 @@ public function getPrintType() { return $this->printType; } - public function setPrintedPageCount($printedPageCount) { $this->printedPageCount = $printedPageCount; @@ -6422,7 +6254,6 @@ public function getPrintedPageCount() { return $this->printedPageCount; } - public function setPublishedDate($publishedDate) { $this->publishedDate = $publishedDate; @@ -6432,7 +6263,6 @@ public function getPublishedDate() { return $this->publishedDate; } - public function setPublisher($publisher) { $this->publisher = $publisher; @@ -6442,7 +6272,6 @@ public function getPublisher() { return $this->publisher; } - public function setRatingsCount($ratingsCount) { $this->ratingsCount = $ratingsCount; @@ -6452,7 +6281,6 @@ public function getRatingsCount() { return $this->ratingsCount; } - public function setReadingModes($readingModes) { $this->readingModes = $readingModes; @@ -6462,7 +6290,6 @@ public function getReadingModes() { return $this->readingModes; } - public function setSubtitle($subtitle) { $this->subtitle = $subtitle; @@ -6472,7 +6299,6 @@ public function getSubtitle() { return $this->subtitle; } - public function setTitle($title) { $this->title = $title; @@ -6482,6 +6308,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model @@ -6501,7 +6328,6 @@ public function getHeight() { return $this->height; } - public function setThickness($thickness) { $this->thickness = $thickness; @@ -6511,7 +6337,6 @@ public function getThickness() { return $this->thickness; } - public function setWidth($width) { $this->width = $width; @@ -6521,6 +6346,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model @@ -6543,7 +6369,6 @@ public function getExtraLarge() { return $this->extraLarge; } - public function setLarge($large) { $this->large = $large; @@ -6553,7 +6378,6 @@ public function getLarge() { return $this->large; } - public function setMedium($medium) { $this->medium = $medium; @@ -6563,7 +6387,6 @@ public function getMedium() { return $this->medium; } - public function setSmall($small) { $this->small = $small; @@ -6573,7 +6396,6 @@ public function getSmall() { return $this->small; } - public function setSmallThumbnail($smallThumbnail) { $this->smallThumbnail = $smallThumbnail; @@ -6583,7 +6405,6 @@ public function getSmallThumbnail() { return $this->smallThumbnail; } - public function setThumbnail($thumbnail) { $this->thumbnail = $thumbnail; @@ -6593,6 +6414,7 @@ public function getThumbnail() { return $this->thumbnail; } + } class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model @@ -6611,7 +6433,6 @@ public function getIdentifier() { return $this->identifier; } - public function setType($type) { $this->type = $type; @@ -6621,6 +6442,7 @@ public function getType() { return $this->type; } + } class Google_Service_Books_Volumeannotation extends Google_Collection @@ -6653,7 +6475,6 @@ public function getAnnotationDataId() { return $this->annotationDataId; } - public function setAnnotationDataLink($annotationDataLink) { $this->annotationDataLink = $annotationDataLink; @@ -6663,7 +6484,6 @@ public function getAnnotationDataLink() { return $this->annotationDataLink; } - public function setAnnotationType($annotationType) { $this->annotationType = $annotationType; @@ -6673,7 +6493,6 @@ public function getAnnotationType() { return $this->annotationType; } - public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges) { $this->contentRanges = $contentRanges; @@ -6683,7 +6502,6 @@ public function getContentRanges() { return $this->contentRanges; } - public function setData($data) { $this->data = $data; @@ -6693,7 +6511,6 @@ public function getData() { return $this->data; } - public function setDeleted($deleted) { $this->deleted = $deleted; @@ -6703,7 +6520,6 @@ public function getDeleted() { return $this->deleted; } - public function setId($id) { $this->id = $id; @@ -6713,7 +6529,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6723,7 +6538,6 @@ public function getKind() { return $this->kind; } - public function setLayerId($layerId) { $this->layerId = $layerId; @@ -6733,7 +6547,6 @@ public function getLayerId() { return $this->layerId; } - public function setPageIds($pageIds) { $this->pageIds = $pageIds; @@ -6743,7 +6556,6 @@ public function getPageIds() { return $this->pageIds; } - public function setSelectedText($selectedText) { $this->selectedText = $selectedText; @@ -6753,7 +6565,6 @@ public function getSelectedText() { return $this->selectedText; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6763,7 +6574,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -6773,7 +6583,6 @@ public function getUpdated() { return $this->updated; } - public function setVolumeId($volumeId) { $this->volumeId = $volumeId; @@ -6783,6 +6592,7 @@ public function getVolumeId() { return $this->volumeId; } + } class Google_Service_Books_VolumeannotationContentRanges extends Google_Model @@ -6806,7 +6616,6 @@ public function getCfiRange() { return $this->cfiRange; } - public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; @@ -6816,7 +6625,6 @@ public function getContentVersion() { return $this->contentVersion; } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { $this->gbImageRange = $gbImageRange; @@ -6826,7 +6634,6 @@ public function getGbImageRange() { return $this->gbImageRange; } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { $this->gbTextRange = $gbTextRange; @@ -6836,6 +6643,7 @@ public function getGbTextRange() { return $this->gbTextRange; } + } class Google_Service_Books_Volumeannotations extends Google_Collection @@ -6859,7 +6667,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6869,7 +6676,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6879,7 +6685,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -6889,7 +6694,6 @@ public function getTotalItems() { return $this->totalItems; } - public function setVersion($version) { $this->version = $version; @@ -6899,6 +6703,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Books_Volumes extends Google_Collection @@ -6920,7 +6725,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6930,7 +6734,6 @@ public function getKind() { return $this->kind; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -6940,4 +6743,5 @@ public function getTotalItems() { return $this->totalItems; } + } From c1b73bfa7df086ff952e2e646b6a586bbd2e023d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:55 -0700 Subject: [PATCH 0379/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 1615 +++++++++++----------------- 1 file changed, 652 insertions(+), 963 deletions(-) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 22bb9429b..9e2083552 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -16,15 +16,15 @@ */ /** - * Service definition for Replicapool (v1beta1). + * Service definition for Replicapool (v1beta2). * *

- * The Replica Pool API allows users to declaratively provision and manage groups of Google Compute Engine instances based on a common template. + * The Google Compute Engine Instance Group Manager API provides groups of homogenous Compute Engine Instances. *

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -33,17 +33,13 @@ class Google_Service_Replicapool extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - /** View and manage replica pools. */ - const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; - /** View replica pools. */ - const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; - - public $pools; - public $replicas; + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + + public $instanceGroupManagers; + public $zoneOperations; /** @@ -54,21 +50,61 @@ class Google_Service_Replicapool extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'replicapool/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->servicePath = 'replicapool/v1beta2/projects/'; + $this->version = 'v1beta2'; $this->serviceName = 'replicapool'; - $this->pools = new Google_Service_Replicapool_Pools_Resource( + $this->instanceGroupManagers = new Google_Service_Replicapool_InstanceGroupManagers_Resource( $this, $this->serviceName, - 'pools', + 'instanceGroupManagers', array( 'methods' => array( - 'delete' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}', + 'abandonInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deleteInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -78,17 +114,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -98,17 +134,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{projectName}/zones/{zone}/pools', + 'path' => '{project}/zones/{zone}/instanceGroupManagers', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -118,12 +154,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'size' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), ), ),'list' => array( - 'path' => '{projectName}/zones/{zone}/pools', + 'path' => '{project}/zones/{zone}/instanceGroupManagers', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -133,6 +174,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -142,11 +187,11 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'resize' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/resize', + ),'recreateInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -156,21 +201,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'numReplicas' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'updatetemplate' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate', + ),'resize' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -180,27 +221,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'size' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), ), - ), - ) - ) - ); - $this->replicas = new Google_Service_Replicapool_Replicas_Resource( - $this, - $this->serviceName, - 'replicas', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', + ),'setInstanceTemplate' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -210,22 +246,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replicaName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', - 'httpMethod' => 'GET', + ),'setTargetPools' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', + 'httpMethod' => 'POST', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -235,22 +266,27 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replicaName' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas', + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Replicapool_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -260,25 +296,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( + 'operation' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'restart' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', 'parameters' => array( - 'projectName' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -288,15 +316,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'poolName' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'replicaName' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), ), ), @@ -308,365 +338,394 @@ public function __construct(Google_Client $client) /** - * The "pools" collection of methods. + * The "instanceGroupManagers" collection of methods. * Typical usage is: * * $replicapoolService = new Google_Service_Replicapool(...); - * $pools = $replicapoolService->pools; + * $instanceGroupManagers = $replicapoolService->instanceGroupManagers; * */ -class Google_Service_Replicapool_Pools_Resource extends Google_Service_Resource +class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_Service_Resource { /** - * Deletes a replica pool. (pools.delete) + * Removes the specified instances from the managed instance group, and from any + * target pools of which they were members, without deleting the instances. + * (instanceGroupManagers.abandonInstances) * - * @param string $projectName - * The project ID for this replica pool. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param Google_PoolsDeleteRequest $postBody + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Operation */ - public function delete($projectName, $zone, $poolName, Google_Service_Replicapool_PoolsDeleteRequest $postBody, $optParams = array()) + public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation"); } /** - * Gets information about a single replica pool. (pools.get) + * Deletes the instance group manager and all instances contained within. If + * you'd like to delete the manager without deleting the instances, you must + * first abandon the instances to remove them from the group. + * (instanceGroupManagers.delete) * - * @param string $projectName - * The project ID for this replica pool. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * Name of the Instance Group Manager resource to delete. * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Pool + * @return Google_Service_Replicapool_Operation */ - public function get($projectName, $zone, $poolName, $optParams = array()) + public function delete($project, $zone, $instanceGroupManager, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Pool"); + return $this->call('delete', array($params), "Google_Service_Replicapool_Operation"); } /** - * Inserts a new replica pool. (pools.insert) + * Deletes the specified instances. The instances are removed from the instance + * group and any target pools of which they are a member, then deleted. The + * targetSize of the instance group manager is reduced by the number of + * instances deleted. (instanceGroupManagers.deleteInstances) * - * @param string $projectName - * The project ID for this replica pool. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. - * @param Google_Pool $postBody + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Pool + * @return Google_Service_Replicapool_Operation */ - public function insert($projectName, $zone, Google_Service_Replicapool_Pool $postBody, $optParams = array()) + public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapool_Pool"); + return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation"); } /** - * List all replica pools. (pools.listPools) + * Returns the specified Instance Group Manager resource. + * (instanceGroupManagers.get) * - * @param string $projectName - * The project ID for this request. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * Name of the instance resource to return. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_InstanceGroupManager + */ + public function get($project, $zone, $instanceGroupManager, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager"); + } + /** + * Creates an instance group manager, as well as the instance group and the + * specified number of instances. (instanceGroupManagers.insert) * - * @opt_param string pageToken - * Set this to the nextPageToken value returned by a previous list request to obtain the next page - * of results from the previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Replicapool_PoolsListResponse + * @param string $project + * The Google Developers Console project name. + * @param string $zone + * The name of the zone in which the instance group manager resides. + * @param int $size + * Number of instances that should exist. + * @param Google_InstanceGroupManager $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Operation */ - public function listPools($projectName, $zone, $optParams = array()) + public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone); + $params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_PoolsListResponse"); + return $this->call('insert', array($params), "Google_Service_Replicapool_Operation"); } /** - * Resize a pool. This is an asynchronous operation, and multiple overlapping - * resize requests can be made. Replica Pools will use the information from the - * last resize request. (pools.resize) + * Retrieves the list of Instance Group Manager resources contained within the + * specified zone. (instanceGroupManagers.listInstanceGroupManagers) * - * @param string $projectName - * The project ID for this replica pool. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. + * The name of the zone in which the instance group manager resides. * @param array $optParams Optional parameters. * - * @opt_param int numReplicas - * The desired number of replicas to resize to. If this number is larger than the existing number - * of replicas, new replicas will be added. If the number is smaller, then existing replicas will - * be deleted. - * @return Google_Service_Replicapool_Pool + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Replicapool_InstanceGroupManagerList */ - public function resize($projectName, $zone, $poolName, $optParams = array()) + public function listInstanceGroupManagers($project, $zone, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('resize', array($params), "Google_Service_Replicapool_Pool"); + return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList"); } /** - * Update the template used by the pool. (pools.updatetemplate) + * Recreates the specified instances. The instances are deleted, then recreated + * using the instance group manager's current instance template. + * (instanceGroupManagers.recreateInstances) * - * @param string $projectName - * The project ID for this replica pool. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param Google_Template $postBody + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Operation */ - public function updatetemplate($projectName, $zone, $poolName, Google_Service_Replicapool_Template $postBody, $optParams = array()) + public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('updatetemplate', array($params)); + return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation"); } -} - -/** - * The "replicas" collection of methods. - * Typical usage is: - * - * $replicapoolService = new Google_Service_Replicapool(...); - * $replicas = $replicapoolService->replicas; - * - */ -class Google_Service_Replicapool_Replicas_Resource extends Google_Service_Resource -{ - /** - * Deletes a replica from the pool. (replicas.delete) + * Resizes the managed instance group up or down. If resized up, new instances + * are created using the current instance template. If resized down, instances + * are removed in the order outlined in Resizing a managed instance group. + * (instanceGroupManagers.resize) * - * @param string $projectName - * The project ID for this request. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. - * @param Google_ReplicasDeleteRequest $postBody + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param int $size + * Number of instances that should exist in this Instance Group Manager. * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica + * @return Google_Service_Replicapool_Operation */ - public function delete($projectName, $zone, $poolName, $replicaName, Google_Service_Replicapool_ReplicasDeleteRequest $postBody, $optParams = array()) + public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Replicapool_Replica"); + return $this->call('resize', array($params), "Google_Service_Replicapool_Operation"); } /** - * Gets information about a specific replica. (replicas.get) + * Sets the instance template to use when creating new instances in this group. + * Existing instances are not affected. + * (instanceGroupManagers.setInstanceTemplate) * - * @param string $projectName - * The project ID for this request. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica + * @return Google_Service_Replicapool_Operation */ - public function get($projectName, $zone, $poolName, $replicaName, $optParams = array()) + public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Replica"); + return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation"); } /** - * Lists all replicas in a pool. (replicas.listReplicas) + * Modifies the target pools to which all new instances in this group are + * assigned. Existing instances in the group are not affected. + * (instanceGroupManagers.setTargetPools) * - * @param string $projectName - * The project ID for this request. + * @param string $project + * The Google Developers Console project name. * @param string $zone - * The zone where the replica pool lives. - * @param string $poolName - * The replica pool name for this request. + * The name of the zone in which the instance group manager resides. + * @param string $instanceGroupManager + * The name of the instance group manager. + * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Operation + */ + public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation"); + } +} + +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $replicapoolService = new Google_Service_Replicapool(...); + * $zoneOperations = $replicapoolService->zoneOperations; + * + */ +class Google_Service_Replicapool_ZoneOperations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) * - * @opt_param string pageToken - * Set this to the nextPageToken value returned by a previous list request to obtain the next page - * of results from the previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Replicapool_ReplicasListResponse + * @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_Replicapool_Operation */ - public function listReplicas($projectName, $zone, $poolName, $optParams = array()) + public function get($project, $zone, $operation, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_ReplicasListResponse"); + return $this->call('get', array($params), "Google_Service_Replicapool_Operation"); } /** - * Restarts a replica in a pool. (replicas.restart) + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) * - * @param string $projectName - * The project ID for this request. + * @param string $project + * Name of the project scoping this request. * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. + * Name of the zone scoping this request. * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Replicapool_OperationList */ - public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array()) + public function listZoneOperations($project, $zone, $optParams = array()) { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_Replicapool_Replica"); + return $this->call('list', array($params), "Google_Service_Replicapool_OperationList"); } } -class Google_Service_Replicapool_AccessConfig extends Google_Model +class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { + protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); + public $baseInstanceName; + public $creationTimestamp; + public $currentSize; + public $description; + public $fingerprint; + public $group; + public $id; + public $instanceTemplate; + public $kind; public $name; - public $natIp; - public $type; + public $selfLink; + public $targetPools; + public $targetSize; - public function setName($name) + public function setBaseInstanceName($baseInstanceName) { - $this->name = $name; + $this->baseInstanceName = $baseInstanceName; } - public function getName() + public function getBaseInstanceName() { - return $this->name; + return $this->baseInstanceName; } - - public function setNatIp($natIp) + public function setCreationTimestamp($creationTimestamp) { - $this->natIp = $natIp; + $this->creationTimestamp = $creationTimestamp; } - public function getNatIp() + public function getCreationTimestamp() { - return $this->natIp; + return $this->creationTimestamp; } - - public function setType($type) + public function setCurrentSize($currentSize) { - $this->type = $type; + $this->currentSize = $currentSize; } - public function getType() + public function getCurrentSize() { - return $this->type; + return $this->currentSize; } -} - -class Google_Service_Replicapool_Action extends Google_Collection -{ - protected $collection_key = 'envVariables'; - protected $internal_gapi_mappings = array( - ); - public $commands; - protected $envVariablesType = 'Google_Service_Replicapool_EnvVariable'; - protected $envVariablesDataType = 'array'; - public $timeoutMilliSeconds; - - public function setCommands($commands) + public function setDescription($description) { - $this->commands = $commands; + $this->description = $description; } - public function getCommands() + public function getDescription() { - return $this->commands; + return $this->description; } - - public function setEnvVariables($envVariables) + public function setFingerprint($fingerprint) { - $this->envVariables = $envVariables; + $this->fingerprint = $fingerprint; } - public function getEnvVariables() + public function getFingerprint() { - return $this->envVariables; + return $this->fingerprint; } - - public function setTimeoutMilliSeconds($timeoutMilliSeconds) + public function setGroup($group) { - $this->timeoutMilliSeconds = $timeoutMilliSeconds; + $this->group = $group; } - public function getTimeoutMilliSeconds() + public function getGroup() { - return $this->timeoutMilliSeconds; + return $this->group; } -} - -class Google_Service_Replicapool_DiskAttachment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deviceName; - public $index; - - public function setDeviceName($deviceName) + public function setId($id) { - $this->deviceName = $deviceName; + $this->id = $id; } - public function getDeviceName() + public function getId() { - return $this->deviceName; + return $this->id; } - - public function setIndex($index) + public function setInstanceTemplate($instanceTemplate) { - $this->index = $index; + $this->instanceTemplate = $instanceTemplate; } - public function getIndex() + public function getInstanceTemplate() { - return $this->index; + return $this->instanceTemplate; } -} - -class Google_Service_Replicapool_EnvVariable extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hidden; - public $name; - public $value; - - public function setHidden($hidden) + public function setKind($kind) { - $this->hidden = $hidden; + $this->kind = $kind; } - public function getHidden() + public function getKind() { - return $this->hidden; + return $this->kind; } - public function setName($name) { $this->name = $name; @@ -676,464 +735,311 @@ public function getName() { return $this->name; } - - public function setValue($value) + public function setSelfLink($selfLink) { - $this->value = $value; + $this->selfLink = $selfLink; } - public function getValue() + public function getSelfLink() { - return $this->value; + return $this->selfLink; } -} - -class Google_Service_Replicapool_ExistingDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; - protected $attachmentDataType = ''; - public $source; - - public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) + public function setTargetPools($targetPools) { - $this->attachment = $attachment; + $this->targetPools = $targetPools; } - public function getAttachment() + public function getTargetPools() { - return $this->attachment; + return $this->targetPools; } - - public function setSource($source) + public function setTargetSize($targetSize) { - $this->source = $source; + $this->targetSize = $targetSize; } - public function getSource() + public function getTargetSize() { - return $this->source; + return $this->targetSize; } + } -class Google_Service_Replicapool_HealthCheck extends Google_Model +class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $checkIntervalSec; - public $description; - public $healthyThreshold; - public $host; - public $name; - public $path; - public $port; - public $timeoutSec; - public $unhealthyThreshold; + public $id; + protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setCheckIntervalSec($checkIntervalSec) + public function setId($id) { - $this->checkIntervalSec = $checkIntervalSec; + $this->id = $id; } - public function getCheckIntervalSec() + public function getId() { - return $this->checkIntervalSec; + return $this->id; } - - public function setDescription($description) + public function setItems($items) { - $this->description = $description; + $this->items = $items; } - public function getDescription() + public function getItems() { - return $this->description; + return $this->items; } - - public function setHealthyThreshold($healthyThreshold) + public function setKind($kind) { - $this->healthyThreshold = $healthyThreshold; + $this->kind = $kind; } - public function getHealthyThreshold() + public function getKind() { - return $this->healthyThreshold; + return $this->kind; } - - public function setHost($host) + public function setNextPageToken($nextPageToken) { - $this->host = $host; + $this->nextPageToken = $nextPageToken; } - public function getHost() + public function getNextPageToken() { - return $this->host; + return $this->nextPageToken; } - - public function setName($name) + public function setSelfLink($selfLink) { - $this->name = $name; + $this->selfLink = $selfLink; } - public function getName() + public function getSelfLink() { - return $this->name; + return $this->selfLink; } - public function setPath($path) - { - $this->path = $path; - } +} - public function getPath() - { - return $this->path; - } +class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; - public function setPort($port) + public function setInstances($instances) { - $this->port = $port; + $this->instances = $instances; } - public function getPort() + public function getInstances() { - return $this->port; + return $this->instances; } - public function setTimeoutSec($timeoutSec) +} + +class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + public function setInstances($instances) { - $this->timeoutSec = $timeoutSec; + $this->instances = $instances; } - public function getTimeoutSec() + public function getInstances() { - return $this->timeoutSec; + return $this->instances; } - public function setUnhealthyThreshold($unhealthyThreshold) +} + +class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + public function setInstances($instances) { - $this->unhealthyThreshold = $unhealthyThreshold; + $this->instances = $instances; } - public function getUnhealthyThreshold() + public function getInstances() { - return $this->unhealthyThreshold; + return $this->instances; } + } -class Google_Service_Replicapool_Label extends Google_Model +class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $key; - public $value; + public $instanceTemplate; - public function setKey($key) + public function setInstanceTemplate($instanceTemplate) { - $this->key = $key; + $this->instanceTemplate = $instanceTemplate; } - public function getKey() + public function getInstanceTemplate() { - return $this->key; + return $this->instanceTemplate; } - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } } -class Google_Service_Replicapool_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerPrint; - protected $itemsType = 'Google_Service_Replicapool_MetadataItem'; - protected $itemsDataType = 'array'; - - 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_Replicapool_MetadataItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapool_NetworkInterface extends Google_Collection -{ - protected $collection_key = 'accessConfigs'; - protected $internal_gapi_mappings = array( - ); - protected $accessConfigsType = 'Google_Service_Replicapool_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $network; - public $networkIp; - - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } - - public function getAccessConfigs() - { - return $this->accessConfigs; - } - - 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_Replicapool_NewDisk extends Google_Model +class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection { + protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); - protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; - protected $attachmentDataType = ''; - public $autoDelete; - public $boot; - protected $initializeParamsType = 'Google_Service_Replicapool_NewDiskInitializeParams'; - protected $initializeParamsDataType = ''; - - public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } - - public function getAttachment() - { - return $this->attachment; - } - - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } + public $fingerprint; + public $targetPools; - public function getAutoDelete() + public function setFingerprint($fingerprint) { - return $this->autoDelete; + $this->fingerprint = $fingerprint; } - public function setBoot($boot) + public function getFingerprint() { - $this->boot = $boot; + return $this->fingerprint; } - - public function getBoot() + public function setTargetPools($targetPools) { - return $this->boot; + $this->targetPools = $targetPools; } - public function setInitializeParams(Google_Service_Replicapool_NewDiskInitializeParams $initializeParams) + public function getTargetPools() { - $this->initializeParams = $initializeParams; + return $this->targetPools; } - public function getInitializeParams() - { - return $this->initializeParams; - } } -class Google_Service_Replicapool_NewDiskInitializeParams extends Google_Model +class Google_Service_Replicapool_Operation extends Google_Collection { + protected $collection_key = 'warnings'; protected $internal_gapi_mappings = array( ); - public $diskSizeGb; - public $diskType; - public $sourceImage; + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Replicapool_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Replicapool_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; - public function setDiskSizeGb($diskSizeGb) + public function setClientOperationId($clientOperationId) { - $this->diskSizeGb = $diskSizeGb; + $this->clientOperationId = $clientOperationId; } - public function getDiskSizeGb() + public function getClientOperationId() { - return $this->diskSizeGb; + return $this->clientOperationId; } - - public function setDiskType($diskType) + public function setCreationTimestamp($creationTimestamp) { - $this->diskType = $diskType; + $this->creationTimestamp = $creationTimestamp; } - public function getDiskType() + public function getCreationTimestamp() { - return $this->diskType; + return $this->creationTimestamp; } - - public function setSourceImage($sourceImage) + public function setEndTime($endTime) { - $this->sourceImage = $sourceImage; + $this->endTime = $endTime; } - public function getSourceImage() + public function getEndTime() { - return $this->sourceImage; + return $this->endTime; } -} - -class Google_Service_Replicapool_Pool extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - public $autoRestart; - public $baseInstanceName; - public $currentNumReplicas; - public $description; - protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; - protected $healthChecksDataType = 'array'; - public $initialNumReplicas; - protected $labelsType = 'Google_Service_Replicapool_Label'; - protected $labelsDataType = 'array'; - public $name; - public $numReplicas; - public $resourceViews; - public $selfLink; - public $targetPool; - public $targetPools; - protected $templateType = 'Google_Service_Replicapool_Template'; - protected $templateDataType = ''; - public $type; - - public function setAutoRestart($autoRestart) + public function setError(Google_Service_Replicapool_OperationError $error) { - $this->autoRestart = $autoRestart; + $this->error = $error; } - public function getAutoRestart() + public function getError() { - return $this->autoRestart; + return $this->error; } - - public function setBaseInstanceName($baseInstanceName) + public function setHttpErrorMessage($httpErrorMessage) { - $this->baseInstanceName = $baseInstanceName; + $this->httpErrorMessage = $httpErrorMessage; } - public function getBaseInstanceName() + public function getHttpErrorMessage() { - return $this->baseInstanceName; + return $this->httpErrorMessage; } - - public function setCurrentNumReplicas($currentNumReplicas) + public function setHttpErrorStatusCode($httpErrorStatusCode) { - $this->currentNumReplicas = $currentNumReplicas; + $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getCurrentNumReplicas() + public function getHttpErrorStatusCode() { - return $this->currentNumReplicas; + return $this->httpErrorStatusCode; } - - public function setDescription($description) + public function setId($id) { - $this->description = $description; + $this->id = $id; } - public function getDescription() + public function getId() { - return $this->description; - } - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; + return $this->id; } - - public function getHealthChecks() + public function setInsertTime($insertTime) { - return $this->healthChecks; + $this->insertTime = $insertTime; } - public function setInitialNumReplicas($initialNumReplicas) + public function getInsertTime() { - $this->initialNumReplicas = $initialNumReplicas; + return $this->insertTime; } - - public function getInitialNumReplicas() + public function setKind($kind) { - return $this->initialNumReplicas; + $this->kind = $kind; } - public function setLabels($labels) + public function getKind() { - $this->labels = $labels; + return $this->kind; } - - public function getLabels() - { - return $this->labels; - } - public function setName($name) { $this->name = $name; @@ -1143,27 +1049,33 @@ public function getName() { return $this->name; } - - public function setNumReplicas($numReplicas) + public function setOperationType($operationType) { - $this->numReplicas = $numReplicas; + $this->operationType = $operationType; } - public function getNumReplicas() + public function getOperationType() { - return $this->numReplicas; + return $this->operationType; } - - public function setResourceViews($resourceViews) + public function setProgress($progress) { - $this->resourceViews = $resourceViews; + $this->progress = $progress; } - public function getResourceViews() + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) { - return $this->resourceViews; + $this->region = $region; } + public function getRegion() + { + return $this->region; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1173,291 +1085,160 @@ public function getSelfLink() { return $this->selfLink; } - - public function setTargetPool($targetPool) + public function setStartTime($startTime) { - $this->targetPool = $targetPool; + $this->startTime = $startTime; } - public function getTargetPool() + public function getStartTime() { - return $this->targetPool; + return $this->startTime; } - - public function setTargetPools($targetPools) + public function setStatus($status) { - $this->targetPools = $targetPools; + $this->status = $status; } - public function getTargetPools() + public function getStatus() { - return $this->targetPools; + return $this->status; } - - public function setTemplate(Google_Service_Replicapool_Template $template) + public function setStatusMessage($statusMessage) { - $this->template = $template; + $this->statusMessage = $statusMessage; } - public function getTemplate() + public function getStatusMessage() { - return $this->template; + return $this->statusMessage; } - - public function setType($type) + public function setTargetId($targetId) { - $this->type = $type; + $this->targetId = $targetId; } - public function getType() + public function getTargetId() { - return $this->type; + return $this->targetId; } -} - -class Google_Service_Replicapool_PoolsDeleteRequest extends Google_Collection -{ - protected $collection_key = 'abandonInstances'; - protected $internal_gapi_mappings = array( - ); - public $abandonInstances; - - public function setAbandonInstances($abandonInstances) + public function setTargetLink($targetLink) { - $this->abandonInstances = $abandonInstances; + $this->targetLink = $targetLink; } - public function getAbandonInstances() + public function getTargetLink() { - return $this->abandonInstances; + return $this->targetLink; } -} - -class Google_Service_Replicapool_PoolsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_Replicapool_Pool'; - protected $resourcesDataType = 'array'; - - public function setNextPageToken($nextPageToken) + public function setUser($user) { - $this->nextPageToken = $nextPageToken; + $this->user = $user; } - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) + public function getUser() { - $this->resources = $resources; + return $this->user; } - - public function getResources() + public function setWarnings($warnings) { - return $this->resources; + $this->warnings = $warnings; } -} - -class Google_Service_Replicapool_Replica extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $selfLink; - protected $statusType = 'Google_Service_Replicapool_ReplicaStatus'; - protected $statusDataType = ''; - public function setName($name) + public function getWarnings() { - $this->name = $name; + return $this->warnings; } - - public function getName() + public function setZone($zone) { - return $this->name; + $this->zone = $zone; } - public function setSelfLink($selfLink) + public function getZone() { - $this->selfLink = $selfLink; + return $this->zone; } - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStatus(Google_Service_Replicapool_ReplicaStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } } -class Google_Service_Replicapool_ReplicaStatus extends Google_Model +class Google_Service_Replicapool_OperationError extends Google_Collection { + protected $collection_key = 'errors'; protected $internal_gapi_mappings = array( ); - public $details; - public $state; - public $templateVersion; - public $vmLink; - public $vmStartTime; + protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors'; + protected $errorsDataType = 'array'; - public function setDetails($details) + public function setErrors($errors) { - $this->details = $details; + $this->errors = $errors; } - public function getDetails() + public function getErrors() { - return $this->details; + return $this->errors; } - public function setState($state) - { - $this->state = $state; - } - - public function getState() - { - return $this->state; - } - - public function setTemplateVersion($templateVersion) - { - $this->templateVersion = $templateVersion; - } - - public function getTemplateVersion() - { - return $this->templateVersion; - } - - public function setVmLink($vmLink) - { - $this->vmLink = $vmLink; - } - - public function getVmLink() - { - return $this->vmLink; - } - - public function setVmStartTime($vmStartTime) - { - $this->vmStartTime = $vmStartTime; - } - - public function getVmStartTime() - { - return $this->vmStartTime; - } -} - -class Google_Service_Replicapool_ReplicasDeleteRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $abandonInstance; - - public function setAbandonInstance($abandonInstance) - { - $this->abandonInstance = $abandonInstance; - } - - public function getAbandonInstance() - { - return $this->abandonInstance; - } } -class Google_Service_Replicapool_ReplicasListResponse extends Google_Collection +class Google_Service_Replicapool_OperationErrorErrors extends Google_Model { - protected $collection_key = 'resources'; protected $internal_gapi_mappings = array( ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_Replicapool_Replica'; - protected $resourcesDataType = 'array'; + public $code; + public $location; + public $message; - public function setNextPageToken($nextPageToken) + public function setCode($code) { - $this->nextPageToken = $nextPageToken; + $this->code = $code; } - public function getNextPageToken() + public function getCode() { - return $this->nextPageToken; + return $this->code; } - - public function setResources($resources) + public function setLocation($location) { - $this->resources = $resources; + $this->location = $location; } - public function getResources() + public function getLocation() { - return $this->resources; + return $this->location; } -} - -class Google_Service_Replicapool_ServiceAccount extends Google_Collection -{ - protected $collection_key = 'scopes'; - protected $internal_gapi_mappings = array( - ); - public $email; - public $scopes; - - public function setEmail($email) - { - $this->email = $email; - } - - public function getEmail() + public function setMessage($message) { - return $this->email; + $this->message = $message; } - public function setScopes($scopes) + public function getMessage() { - $this->scopes = $scopes; + return $this->message; } - public function getScopes() - { - return $this->scopes; - } } -class Google_Service_Replicapool_Tag extends Google_Collection +class Google_Service_Replicapool_OperationList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $fingerPrint; - public $items; + public $id; + protected $itemsType = 'Google_Service_Replicapool_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setFingerPrint($fingerPrint) + public function setId($id) { - $this->fingerPrint = $fingerPrint; + $this->id = $id; } - public function getFingerPrint() + public function getId() { - return $this->fingerPrint; + return $this->id; } - public function setItems($items) { $this->items = $items; @@ -1467,192 +1248,100 @@ public function getItems() { return $this->items; } -} - -class Google_Service_Replicapool_Template extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $actionType = 'Google_Service_Replicapool_Action'; - protected $actionDataType = ''; - protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; - protected $healthChecksDataType = 'array'; - public $version; - protected $vmParamsType = 'Google_Service_Replicapool_VmParams'; - protected $vmParamsDataType = ''; - - public function setAction(Google_Service_Replicapool_Action $action) + public function setKind($kind) { - $this->action = $action; + $this->kind = $kind; } - public function getAction() + public function getKind() { - return $this->action; + return $this->kind; } - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() + public function setNextPageToken($nextPageToken) { - return $this->healthChecks; + $this->nextPageToken = $nextPageToken; } - public function setVersion($version) + public function getNextPageToken() { - $this->version = $version; + return $this->nextPageToken; } - - public function getVersion() + public function setSelfLink($selfLink) { - return $this->version; + $this->selfLink = $selfLink; } - public function setVmParams(Google_Service_Replicapool_VmParams $vmParams) + public function getSelfLink() { - $this->vmParams = $vmParams; + return $this->selfLink; } - public function getVmParams() - { - return $this->vmParams; - } } -class Google_Service_Replicapool_VmParams extends Google_Collection +class Google_Service_Replicapool_OperationWarnings extends Google_Collection { - protected $collection_key = 'serviceAccounts'; + protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); - public $baseInstanceName; - public $canIpForward; - public $description; - protected $disksToAttachType = 'Google_Service_Replicapool_ExistingDisk'; - protected $disksToAttachDataType = 'array'; - protected $disksToCreateType = 'Google_Service_Replicapool_NewDisk'; - protected $disksToCreateDataType = 'array'; - public $machineType; - protected $metadataType = 'Google_Service_Replicapool_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Replicapool_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - public $onHostMaintenance; - protected $serviceAccountsType = 'Google_Service_Replicapool_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Replicapool_Tag'; - protected $tagsDataType = ''; - - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } - - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - - public function getCanIpForward() - { - return $this->canIpForward; - } + public $code; + protected $dataType = 'Google_Service_Replicapool_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; - public function setDescription($description) + public function setCode($code) { - $this->description = $description; + $this->code = $code; } - public function getDescription() + public function getCode() { - return $this->description; + return $this->code; } - - public function setDisksToAttach($disksToAttach) - { - $this->disksToAttach = $disksToAttach; - } - - public function getDisksToAttach() - { - return $this->disksToAttach; - } - - public function setDisksToCreate($disksToCreate) + public function setData($data) { - $this->disksToCreate = $disksToCreate; + $this->data = $data; } - public function getDisksToCreate() + public function getData() { - return $this->disksToCreate; + return $this->data; } - - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - - public function getMachineType() - { - return $this->machineType; - } - - public function setMetadata(Google_Service_Replicapool_Metadata $metadata) - { - $this->metadata = $metadata; - } - - public function getMetadata() + public function setMessage($message) { - return $this->metadata; + $this->message = $message; } - public function setNetworkInterfaces($networkInterfaces) + public function getMessage() { - $this->networkInterfaces = $networkInterfaces; + return $this->message; } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } +} - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } +class Google_Service_Replicapool_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; - public function getOnHostMaintenance() + public function setKey($key) { - return $this->onHostMaintenance; + $this->key = $key; } - public function setServiceAccounts($serviceAccounts) + public function getKey() { - $this->serviceAccounts = $serviceAccounts; + return $this->key; } - - public function getServiceAccounts() + public function setValue($value) { - return $this->serviceAccounts; + $this->value = $value; } - public function setTags(Google_Service_Replicapool_Tag $tags) + public function getValue() { - $this->tags = $tags; + return $this->value; } - public function getTags() - { - return $this->tags; - } } From 08c2f6fb7b6a3aa57698b5d6196c97fc6647c41e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:56 -0700 Subject: [PATCH 0380/1274] Updated Datastore.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Datastore.php | 107 +++++++++++-------------------- 1 file changed, 36 insertions(+), 71 deletions(-) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index b7abee1d6..b9d983ddc 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -252,6 +252,7 @@ public function getKeys() { return $this->keys; } + } class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection @@ -273,7 +274,6 @@ public function getHeader() { return $this->header; } - public function setKeys($keys) { $this->keys = $keys; @@ -283,6 +283,7 @@ public function getKeys() { return $this->keys; } + } class Google_Service_Datastore_BeginTransactionRequest extends Google_Model @@ -300,6 +301,7 @@ public function getIsolationLevel() { return $this->isolationLevel; } + } class Google_Service_Datastore_BeginTransactionResponse extends Google_Model @@ -319,7 +321,6 @@ public function getHeader() { return $this->header; } - public function setTransaction($transaction) { $this->transaction = $transaction; @@ -329,6 +330,7 @@ public function getTransaction() { return $this->transaction; } + } class Google_Service_Datastore_CommitRequest extends Google_Model @@ -350,7 +352,6 @@ public function getIgnoreReadOnly() { return $this->ignoreReadOnly; } - public function setMode($mode) { $this->mode = $mode; @@ -360,7 +361,6 @@ public function getMode() { return $this->mode; } - public function setMutation(Google_Service_Datastore_Mutation $mutation) { $this->mutation = $mutation; @@ -370,7 +370,6 @@ public function getMutation() { return $this->mutation; } - public function setTransaction($transaction) { $this->transaction = $transaction; @@ -380,6 +379,7 @@ public function getTransaction() { return $this->transaction; } + } class Google_Service_Datastore_CommitResponse extends Google_Model @@ -400,7 +400,6 @@ public function getHeader() { return $this->header; } - public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult) { $this->mutationResult = $mutationResult; @@ -410,6 +409,7 @@ public function getMutationResult() { return $this->mutationResult; } + } class Google_Service_Datastore_CompositeFilter extends Google_Collection @@ -430,7 +430,6 @@ public function getFilters() { return $this->filters; } - public function setOperator($operator) { $this->operator = $operator; @@ -440,6 +439,7 @@ public function getOperator() { return $this->operator; } + } class Google_Service_Datastore_Entity extends Google_Model @@ -460,7 +460,6 @@ public function getKey() { return $this->key; } - public function setProperties($properties) { $this->properties = $properties; @@ -470,12 +469,15 @@ public function getProperties() { return $this->properties; } + } class Google_Service_Datastore_EntityProperties extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Datastore_EntityResult extends Google_Model @@ -494,6 +496,7 @@ public function getEntity() { return $this->entity; } + } class Google_Service_Datastore_Filter extends Google_Model @@ -514,7 +517,6 @@ public function getCompositeFilter() { return $this->compositeFilter; } - public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter) { $this->propertyFilter = $propertyFilter; @@ -524,6 +526,7 @@ public function getPropertyFilter() { return $this->propertyFilter; } + } class Google_Service_Datastore_GqlQuery extends Google_Collection @@ -547,7 +550,6 @@ public function getAllowLiteral() { return $this->allowLiteral; } - public function setNameArgs($nameArgs) { $this->nameArgs = $nameArgs; @@ -557,7 +559,6 @@ public function getNameArgs() { return $this->nameArgs; } - public function setNumberArgs($numberArgs) { $this->numberArgs = $numberArgs; @@ -567,7 +568,6 @@ public function getNumberArgs() { return $this->numberArgs; } - public function setQueryString($queryString) { $this->queryString = $queryString; @@ -577,6 +577,7 @@ public function getQueryString() { return $this->queryString; } + } class Google_Service_Datastore_GqlQueryArg extends Google_Model @@ -597,7 +598,6 @@ public function getCursor() { return $this->cursor; } - public function setName($name) { $this->name = $name; @@ -607,7 +607,6 @@ public function getName() { return $this->name; } - public function setValue(Google_Service_Datastore_Value $value) { $this->value = $value; @@ -617,6 +616,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Datastore_Key extends Google_Collection @@ -638,7 +638,6 @@ public function getPartitionId() { return $this->partitionId; } - public function setPath($path) { $this->path = $path; @@ -648,6 +647,7 @@ public function getPath() { return $this->path; } + } class Google_Service_Datastore_KeyPathElement extends Google_Model @@ -667,7 +667,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -677,7 +676,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -687,6 +685,7 @@ public function getName() { return $this->name; } + } class Google_Service_Datastore_KindExpression extends Google_Model @@ -704,6 +703,7 @@ public function getName() { return $this->name; } + } class Google_Service_Datastore_LookupRequest extends Google_Collection @@ -725,7 +725,6 @@ public function getKeys() { return $this->keys; } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) { $this->readOptions = $readOptions; @@ -735,6 +734,7 @@ public function getReadOptions() { return $this->readOptions; } + } class Google_Service_Datastore_LookupResponse extends Google_Collection @@ -760,7 +760,6 @@ public function getDeferred() { return $this->deferred; } - public function setFound($found) { $this->found = $found; @@ -770,7 +769,6 @@ public function getFound() { return $this->found; } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; @@ -780,7 +778,6 @@ public function getHeader() { return $this->header; } - public function setMissing($missing) { $this->missing = $missing; @@ -790,6 +787,7 @@ public function getMissing() { return $this->missing; } + } class Google_Service_Datastore_Mutation extends Google_Collection @@ -818,7 +816,6 @@ public function getDelete() { return $this->delete; } - public function setForce($force) { $this->force = $force; @@ -828,7 +825,6 @@ public function getForce() { return $this->force; } - public function setInsert($insert) { $this->insert = $insert; @@ -838,7 +834,6 @@ public function getInsert() { return $this->insert; } - public function setInsertAutoId($insertAutoId) { $this->insertAutoId = $insertAutoId; @@ -848,7 +843,6 @@ public function getInsertAutoId() { return $this->insertAutoId; } - public function setUpdate($update) { $this->update = $update; @@ -858,7 +852,6 @@ public function getUpdate() { return $this->update; } - public function setUpsert($upsert) { $this->upsert = $upsert; @@ -868,6 +861,7 @@ public function getUpsert() { return $this->upsert; } + } class Google_Service_Datastore_MutationResult extends Google_Collection @@ -888,7 +882,6 @@ public function getIndexUpdates() { return $this->indexUpdates; } - public function setInsertAutoIdKeys($insertAutoIdKeys) { $this->insertAutoIdKeys = $insertAutoIdKeys; @@ -898,6 +891,7 @@ public function getInsertAutoIdKeys() { return $this->insertAutoIdKeys; } + } class Google_Service_Datastore_PartitionId extends Google_Model @@ -916,7 +910,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setNamespace($namespace) { $this->namespace = $namespace; @@ -926,6 +919,7 @@ public function getNamespace() { return $this->namespace; } + } class Google_Service_Datastore_Property extends Google_Collection @@ -958,7 +952,6 @@ public function getBlobKeyValue() { return $this->blobKeyValue; } - public function setBlobValue($blobValue) { $this->blobValue = $blobValue; @@ -968,7 +961,6 @@ public function getBlobValue() { return $this->blobValue; } - public function setBooleanValue($booleanValue) { $this->booleanValue = $booleanValue; @@ -978,7 +970,6 @@ public function getBooleanValue() { return $this->booleanValue; } - public function setDateTimeValue($dateTimeValue) { $this->dateTimeValue = $dateTimeValue; @@ -988,7 +979,6 @@ public function getDateTimeValue() { return $this->dateTimeValue; } - public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; @@ -998,7 +988,6 @@ public function getDoubleValue() { return $this->doubleValue; } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { $this->entityValue = $entityValue; @@ -1008,7 +997,6 @@ public function getEntityValue() { return $this->entityValue; } - public function setIndexed($indexed) { $this->indexed = $indexed; @@ -1018,7 +1006,6 @@ public function getIndexed() { return $this->indexed; } - public function setIntegerValue($integerValue) { $this->integerValue = $integerValue; @@ -1028,7 +1015,6 @@ public function getIntegerValue() { return $this->integerValue; } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) { $this->keyValue = $keyValue; @@ -1038,7 +1024,6 @@ public function getKeyValue() { return $this->keyValue; } - public function setListValue($listValue) { $this->listValue = $listValue; @@ -1048,7 +1033,6 @@ public function getListValue() { return $this->listValue; } - public function setMeaning($meaning) { $this->meaning = $meaning; @@ -1058,7 +1042,6 @@ public function getMeaning() { return $this->meaning; } - public function setStringValue($stringValue) { $this->stringValue = $stringValue; @@ -1068,6 +1051,7 @@ public function getStringValue() { return $this->stringValue; } + } class Google_Service_Datastore_PropertyExpression extends Google_Model @@ -1087,7 +1071,6 @@ public function getAggregationFunction() { return $this->aggregationFunction; } - public function setProperty(Google_Service_Datastore_PropertyReference $property) { $this->property = $property; @@ -1097,6 +1080,7 @@ public function getProperty() { return $this->property; } + } class Google_Service_Datastore_PropertyFilter extends Google_Model @@ -1118,7 +1102,6 @@ public function getOperator() { return $this->operator; } - public function setProperty(Google_Service_Datastore_PropertyReference $property) { $this->property = $property; @@ -1128,7 +1111,6 @@ public function getProperty() { return $this->property; } - public function setValue(Google_Service_Datastore_Value $value) { $this->value = $value; @@ -1138,6 +1120,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Datastore_PropertyOrder extends Google_Model @@ -1157,7 +1140,6 @@ public function getDirection() { return $this->direction; } - public function setProperty(Google_Service_Datastore_PropertyReference $property) { $this->property = $property; @@ -1167,6 +1149,7 @@ public function getProperty() { return $this->property; } + } class Google_Service_Datastore_PropertyReference extends Google_Model @@ -1184,6 +1167,7 @@ public function getName() { return $this->name; } + } class Google_Service_Datastore_Query extends Google_Collection @@ -1215,7 +1199,6 @@ public function getEndCursor() { return $this->endCursor; } - public function setFilter(Google_Service_Datastore_Filter $filter) { $this->filter = $filter; @@ -1225,7 +1208,6 @@ public function getFilter() { return $this->filter; } - public function setGroupBy($groupBy) { $this->groupBy = $groupBy; @@ -1235,7 +1217,6 @@ public function getGroupBy() { return $this->groupBy; } - public function setKinds($kinds) { $this->kinds = $kinds; @@ -1245,7 +1226,6 @@ public function getKinds() { return $this->kinds; } - public function setLimit($limit) { $this->limit = $limit; @@ -1255,7 +1235,6 @@ public function getLimit() { return $this->limit; } - public function setOffset($offset) { $this->offset = $offset; @@ -1265,7 +1244,6 @@ public function getOffset() { return $this->offset; } - public function setOrder($order) { $this->order = $order; @@ -1275,7 +1253,6 @@ public function getOrder() { return $this->order; } - public function setProjection($projection) { $this->projection = $projection; @@ -1285,7 +1262,6 @@ public function getProjection() { return $this->projection; } - public function setStartCursor($startCursor) { $this->startCursor = $startCursor; @@ -1295,6 +1271,7 @@ public function getStartCursor() { return $this->startCursor; } + } class Google_Service_Datastore_QueryResultBatch extends Google_Collection @@ -1318,7 +1295,6 @@ public function getEndCursor() { return $this->endCursor; } - public function setEntityResultType($entityResultType) { $this->entityResultType = $entityResultType; @@ -1328,7 +1304,6 @@ public function getEntityResultType() { return $this->entityResultType; } - public function setEntityResults($entityResults) { $this->entityResults = $entityResults; @@ -1338,7 +1313,6 @@ public function getEntityResults() { return $this->entityResults; } - public function setMoreResults($moreResults) { $this->moreResults = $moreResults; @@ -1348,7 +1322,6 @@ public function getMoreResults() { return $this->moreResults; } - public function setSkippedResults($skippedResults) { $this->skippedResults = $skippedResults; @@ -1358,6 +1331,7 @@ public function getSkippedResults() { return $this->skippedResults; } + } class Google_Service_Datastore_ReadOptions extends Google_Model @@ -1376,7 +1350,6 @@ public function getReadConsistency() { return $this->readConsistency; } - public function setTransaction($transaction) { $this->transaction = $transaction; @@ -1386,6 +1359,7 @@ public function getTransaction() { return $this->transaction; } + } class Google_Service_Datastore_ResponseHeader extends Google_Model @@ -1403,6 +1377,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Datastore_RollbackRequest extends Google_Model @@ -1420,6 +1395,7 @@ public function getTransaction() { return $this->transaction; } + } class Google_Service_Datastore_RollbackResponse extends Google_Model @@ -1438,6 +1414,7 @@ public function getHeader() { return $this->header; } + } class Google_Service_Datastore_RunQueryRequest extends Google_Model @@ -1462,7 +1439,6 @@ public function getGqlQuery() { return $this->gqlQuery; } - public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) { $this->partitionId = $partitionId; @@ -1472,7 +1448,6 @@ public function getPartitionId() { return $this->partitionId; } - public function setQuery(Google_Service_Datastore_Query $query) { $this->query = $query; @@ -1482,7 +1457,6 @@ public function getQuery() { return $this->query; } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) { $this->readOptions = $readOptions; @@ -1492,6 +1466,7 @@ public function getReadOptions() { return $this->readOptions; } + } class Google_Service_Datastore_RunQueryResponse extends Google_Model @@ -1512,7 +1487,6 @@ public function getBatch() { return $this->batch; } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; @@ -1522,6 +1496,7 @@ public function getHeader() { return $this->header; } + } class Google_Service_Datastore_Value extends Google_Collection @@ -1554,7 +1529,6 @@ public function getBlobKeyValue() { return $this->blobKeyValue; } - public function setBlobValue($blobValue) { $this->blobValue = $blobValue; @@ -1564,7 +1538,6 @@ public function getBlobValue() { return $this->blobValue; } - public function setBooleanValue($booleanValue) { $this->booleanValue = $booleanValue; @@ -1574,7 +1547,6 @@ public function getBooleanValue() { return $this->booleanValue; } - public function setDateTimeValue($dateTimeValue) { $this->dateTimeValue = $dateTimeValue; @@ -1584,7 +1556,6 @@ public function getDateTimeValue() { return $this->dateTimeValue; } - public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; @@ -1594,7 +1565,6 @@ public function getDoubleValue() { return $this->doubleValue; } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { $this->entityValue = $entityValue; @@ -1604,7 +1574,6 @@ public function getEntityValue() { return $this->entityValue; } - public function setIndexed($indexed) { $this->indexed = $indexed; @@ -1614,7 +1583,6 @@ public function getIndexed() { return $this->indexed; } - public function setIntegerValue($integerValue) { $this->integerValue = $integerValue; @@ -1624,7 +1592,6 @@ public function getIntegerValue() { return $this->integerValue; } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) { $this->keyValue = $keyValue; @@ -1634,7 +1601,6 @@ public function getKeyValue() { return $this->keyValue; } - public function setListValue($listValue) { $this->listValue = $listValue; @@ -1644,7 +1610,6 @@ public function getListValue() { return $this->listValue; } - public function setMeaning($meaning) { $this->meaning = $meaning; @@ -1654,7 +1619,6 @@ public function getMeaning() { return $this->meaning; } - public function setStringValue($stringValue) { $this->stringValue = $stringValue; @@ -1664,4 +1628,5 @@ public function getStringValue() { return $this->stringValue; } + } From dabc26464f8f2213ef7751caec0e3659170a3758 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:56 -0700 Subject: [PATCH 0381/1274] Updated GroupsMigration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GroupsMigration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index 38a21a3f7..231443f9d 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -118,7 +118,6 @@ public function getKind() { return $this->kind; } - public function setResponseCode($responseCode) { $this->responseCode = $responseCode; @@ -128,4 +127,5 @@ public function getResponseCode() { return $this->responseCode; } + } From 7b272e85e5c02579f946d8ef2a852deae9330453 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:57 -0700 Subject: [PATCH 0382/1274] Updated QPXExpress.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/QPXExpress.php | 135 ++++++------------------------ 1 file changed, 24 insertions(+), 111 deletions(-) diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index cebd4f5a0..5526f07ab 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -112,7 +112,6 @@ public function getCode() { return $this->code; } - public function setKind($kind) { $this->kind = $kind; @@ -122,7 +121,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -132,6 +130,7 @@ public function getName() { return $this->name; } + } class Google_Service_QPXExpress_AirportData extends Google_Model @@ -152,7 +151,6 @@ public function getCity() { return $this->city; } - public function setCode($code) { $this->code = $code; @@ -162,7 +160,6 @@ public function getCode() { return $this->code; } - public function setKind($kind) { $this->kind = $kind; @@ -172,7 +169,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -182,6 +178,7 @@ public function getName() { return $this->name; } + } class Google_Service_QPXExpress_BagDescriptor extends Google_Collection @@ -204,7 +201,6 @@ public function getCommercialName() { return $this->commercialName; } - public function setCount($count) { $this->count = $count; @@ -214,7 +210,6 @@ public function getCount() { return $this->count; } - public function setDescription($description) { $this->description = $description; @@ -224,7 +219,6 @@ public function getDescription() { return $this->description; } - public function setKind($kind) { $this->kind = $kind; @@ -234,7 +228,6 @@ public function getKind() { return $this->kind; } - public function setSubcode($subcode) { $this->subcode = $subcode; @@ -244,6 +237,7 @@ public function getSubcode() { return $this->subcode; } + } class Google_Service_QPXExpress_CarrierData extends Google_Model @@ -263,7 +257,6 @@ public function getCode() { return $this->code; } - public function setKind($kind) { $this->kind = $kind; @@ -273,7 +266,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -283,6 +275,7 @@ public function getName() { return $this->name; } + } class Google_Service_QPXExpress_CityData extends Google_Model @@ -303,7 +296,6 @@ public function getCode() { return $this->code; } - public function setCountry($country) { $this->country = $country; @@ -313,7 +305,6 @@ public function getCountry() { return $this->country; } - public function setKind($kind) { $this->kind = $kind; @@ -323,7 +314,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -333,6 +323,7 @@ public function getName() { return $this->name; } + } class Google_Service_QPXExpress_Data extends Google_Collection @@ -361,7 +352,6 @@ public function getAircraft() { return $this->aircraft; } - public function setAirport($airport) { $this->airport = $airport; @@ -371,7 +361,6 @@ public function getAirport() { return $this->airport; } - public function setCarrier($carrier) { $this->carrier = $carrier; @@ -381,7 +370,6 @@ public function getCarrier() { return $this->carrier; } - public function setCity($city) { $this->city = $city; @@ -391,7 +379,6 @@ public function getCity() { return $this->city; } - public function setKind($kind) { $this->kind = $kind; @@ -401,7 +388,6 @@ public function getKind() { return $this->kind; } - public function setTax($tax) { $this->tax = $tax; @@ -411,6 +397,7 @@ public function getTax() { return $this->tax; } + } class Google_Service_QPXExpress_FareInfo extends Google_Model @@ -434,7 +421,6 @@ public function getBasisCode() { return $this->basisCode; } - public function setCarrier($carrier) { $this->carrier = $carrier; @@ -444,7 +430,6 @@ public function getCarrier() { return $this->carrier; } - public function setDestination($destination) { $this->destination = $destination; @@ -454,7 +439,6 @@ public function getDestination() { return $this->destination; } - public function setId($id) { $this->id = $id; @@ -464,7 +448,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -474,7 +457,6 @@ public function getKind() { return $this->kind; } - public function setOrigin($origin) { $this->origin = $origin; @@ -484,7 +466,6 @@ public function getOrigin() { return $this->origin; } - public function setPrivate($private) { $this->private = $private; @@ -494,6 +475,7 @@ public function getPrivate() { return $this->private; } + } class Google_Service_QPXExpress_FlightInfo extends Google_Model @@ -512,7 +494,6 @@ public function getCarrier() { return $this->carrier; } - public function setNumber($number) { $this->number = $number; @@ -522,6 +503,7 @@ public function getNumber() { return $this->number; } + } class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection @@ -546,7 +528,6 @@ public function getBagDescriptor() { return $this->bagDescriptor; } - public function setKilos($kilos) { $this->kilos = $kilos; @@ -556,7 +537,6 @@ public function getKilos() { return $this->kilos; } - public function setKilosPerPiece($kilosPerPiece) { $this->kilosPerPiece = $kilosPerPiece; @@ -566,7 +546,6 @@ public function getKilosPerPiece() { return $this->kilosPerPiece; } - public function setKind($kind) { $this->kind = $kind; @@ -576,7 +555,6 @@ public function getKind() { return $this->kind; } - public function setPieces($pieces) { $this->pieces = $pieces; @@ -586,7 +564,6 @@ public function getPieces() { return $this->pieces; } - public function setPounds($pounds) { $this->pounds = $pounds; @@ -596,6 +573,7 @@ public function getPounds() { return $this->pounds; } + } class Google_Service_QPXExpress_LegInfo extends Google_Model @@ -629,7 +607,6 @@ public function getAircraft() { return $this->aircraft; } - public function setArrivalTime($arrivalTime) { $this->arrivalTime = $arrivalTime; @@ -639,7 +616,6 @@ public function getArrivalTime() { return $this->arrivalTime; } - public function setChangePlane($changePlane) { $this->changePlane = $changePlane; @@ -649,7 +625,6 @@ public function getChangePlane() { return $this->changePlane; } - public function setConnectionDuration($connectionDuration) { $this->connectionDuration = $connectionDuration; @@ -659,7 +634,6 @@ public function getConnectionDuration() { return $this->connectionDuration; } - public function setDepartureTime($departureTime) { $this->departureTime = $departureTime; @@ -669,7 +643,6 @@ public function getDepartureTime() { return $this->departureTime; } - public function setDestination($destination) { $this->destination = $destination; @@ -679,7 +652,6 @@ public function getDestination() { return $this->destination; } - public function setDestinationTerminal($destinationTerminal) { $this->destinationTerminal = $destinationTerminal; @@ -689,7 +661,6 @@ public function getDestinationTerminal() { return $this->destinationTerminal; } - public function setDuration($duration) { $this->duration = $duration; @@ -699,7 +670,6 @@ public function getDuration() { return $this->duration; } - public function setId($id) { $this->id = $id; @@ -709,7 +679,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -719,7 +688,6 @@ public function getKind() { return $this->kind; } - public function setMeal($meal) { $this->meal = $meal; @@ -729,7 +697,6 @@ public function getMeal() { return $this->meal; } - public function setMileage($mileage) { $this->mileage = $mileage; @@ -739,7 +706,6 @@ public function getMileage() { return $this->mileage; } - public function setOnTimePerformance($onTimePerformance) { $this->onTimePerformance = $onTimePerformance; @@ -749,7 +715,6 @@ public function getOnTimePerformance() { return $this->onTimePerformance; } - public function setOperatingDisclosure($operatingDisclosure) { $this->operatingDisclosure = $operatingDisclosure; @@ -759,7 +724,6 @@ public function getOperatingDisclosure() { return $this->operatingDisclosure; } - public function setOrigin($origin) { $this->origin = $origin; @@ -769,7 +733,6 @@ public function getOrigin() { return $this->origin; } - public function setOriginTerminal($originTerminal) { $this->originTerminal = $originTerminal; @@ -779,7 +742,6 @@ public function getOriginTerminal() { return $this->originTerminal; } - public function setSecure($secure) { $this->secure = $secure; @@ -789,6 +751,7 @@ public function getSecure() { return $this->secure; } + } class Google_Service_QPXExpress_PassengerCounts extends Google_Model @@ -811,7 +774,6 @@ public function getAdultCount() { return $this->adultCount; } - public function setChildCount($childCount) { $this->childCount = $childCount; @@ -821,7 +783,6 @@ public function getChildCount() { return $this->childCount; } - public function setInfantInLapCount($infantInLapCount) { $this->infantInLapCount = $infantInLapCount; @@ -831,7 +792,6 @@ public function getInfantInLapCount() { return $this->infantInLapCount; } - public function setInfantInSeatCount($infantInSeatCount) { $this->infantInSeatCount = $infantInSeatCount; @@ -841,7 +801,6 @@ public function getInfantInSeatCount() { return $this->infantInSeatCount; } - public function setKind($kind) { $this->kind = $kind; @@ -851,7 +810,6 @@ public function getKind() { return $this->kind; } - public function setSeniorCount($seniorCount) { $this->seniorCount = $seniorCount; @@ -861,6 +819,7 @@ public function getSeniorCount() { return $this->seniorCount; } + } class Google_Service_QPXExpress_PricingInfo extends Google_Collection @@ -895,7 +854,6 @@ public function getBaseFareTotal() { return $this->baseFareTotal; } - public function setFare($fare) { $this->fare = $fare; @@ -905,7 +863,6 @@ public function getFare() { return $this->fare; } - public function setFareCalculation($fareCalculation) { $this->fareCalculation = $fareCalculation; @@ -915,7 +872,6 @@ public function getFareCalculation() { return $this->fareCalculation; } - public function setKind($kind) { $this->kind = $kind; @@ -925,7 +881,6 @@ public function getKind() { return $this->kind; } - public function setLatestTicketingTime($latestTicketingTime) { $this->latestTicketingTime = $latestTicketingTime; @@ -935,7 +890,6 @@ public function getLatestTicketingTime() { return $this->latestTicketingTime; } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) { $this->passengers = $passengers; @@ -945,7 +899,6 @@ public function getPassengers() { return $this->passengers; } - public function setPtc($ptc) { $this->ptc = $ptc; @@ -955,7 +908,6 @@ public function getPtc() { return $this->ptc; } - public function setRefundable($refundable) { $this->refundable = $refundable; @@ -965,7 +917,6 @@ public function getRefundable() { return $this->refundable; } - public function setSaleFareTotal($saleFareTotal) { $this->saleFareTotal = $saleFareTotal; @@ -975,7 +926,6 @@ public function getSaleFareTotal() { return $this->saleFareTotal; } - public function setSaleTaxTotal($saleTaxTotal) { $this->saleTaxTotal = $saleTaxTotal; @@ -985,7 +935,6 @@ public function getSaleTaxTotal() { return $this->saleTaxTotal; } - public function setSaleTotal($saleTotal) { $this->saleTotal = $saleTotal; @@ -995,7 +944,6 @@ public function getSaleTotal() { return $this->saleTotal; } - public function setSegmentPricing($segmentPricing) { $this->segmentPricing = $segmentPricing; @@ -1005,7 +953,6 @@ public function getSegmentPricing() { return $this->segmentPricing; } - public function setTax($tax) { $this->tax = $tax; @@ -1015,6 +962,7 @@ public function getTax() { return $this->tax; } + } class Google_Service_QPXExpress_SegmentInfo extends Google_Collection @@ -1045,7 +993,6 @@ public function getBookingCode() { return $this->bookingCode; } - public function setBookingCodeCount($bookingCodeCount) { $this->bookingCodeCount = $bookingCodeCount; @@ -1055,7 +1002,6 @@ public function getBookingCodeCount() { return $this->bookingCodeCount; } - public function setCabin($cabin) { $this->cabin = $cabin; @@ -1065,7 +1011,6 @@ public function getCabin() { return $this->cabin; } - public function setConnectionDuration($connectionDuration) { $this->connectionDuration = $connectionDuration; @@ -1075,7 +1020,6 @@ public function getConnectionDuration() { return $this->connectionDuration; } - public function setDuration($duration) { $this->duration = $duration; @@ -1085,7 +1029,6 @@ public function getDuration() { return $this->duration; } - public function setFlight(Google_Service_QPXExpress_FlightInfo $flight) { $this->flight = $flight; @@ -1095,7 +1038,6 @@ public function getFlight() { return $this->flight; } - public function setId($id) { $this->id = $id; @@ -1105,7 +1047,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1115,7 +1056,6 @@ public function getKind() { return $this->kind; } - public function setLeg($leg) { $this->leg = $leg; @@ -1125,7 +1065,6 @@ public function getLeg() { return $this->leg; } - public function setMarriedSegmentGroup($marriedSegmentGroup) { $this->marriedSegmentGroup = $marriedSegmentGroup; @@ -1135,7 +1074,6 @@ public function getMarriedSegmentGroup() { return $this->marriedSegmentGroup; } - public function setSubjectToGovernmentApproval($subjectToGovernmentApproval) { $this->subjectToGovernmentApproval = $subjectToGovernmentApproval; @@ -1145,6 +1083,7 @@ public function getSubjectToGovernmentApproval() { return $this->subjectToGovernmentApproval; } + } class Google_Service_QPXExpress_SegmentPricing extends Google_Collection @@ -1167,7 +1106,6 @@ public function getFareId() { return $this->fareId; } - public function setFreeBaggageOption($freeBaggageOption) { $this->freeBaggageOption = $freeBaggageOption; @@ -1177,7 +1115,6 @@ public function getFreeBaggageOption() { return $this->freeBaggageOption; } - public function setKind($kind) { $this->kind = $kind; @@ -1187,7 +1124,6 @@ public function getKind() { return $this->kind; } - public function setSegmentId($segmentId) { $this->segmentId = $segmentId; @@ -1197,6 +1133,7 @@ public function getSegmentId() { return $this->segmentId; } + } class Google_Service_QPXExpress_SliceInfo extends Google_Collection @@ -1218,7 +1155,6 @@ public function getDuration() { return $this->duration; } - public function setKind($kind) { $this->kind = $kind; @@ -1228,7 +1164,6 @@ public function getKind() { return $this->kind; } - public function setSegment($segment) { $this->segment = $segment; @@ -1238,6 +1173,7 @@ public function getSegment() { return $this->segment; } + } class Google_Service_QPXExpress_SliceInput extends Google_Collection @@ -1267,7 +1203,6 @@ public function getAlliance() { return $this->alliance; } - public function setDate($date) { $this->date = $date; @@ -1277,7 +1212,6 @@ public function getDate() { return $this->date; } - public function setDestination($destination) { $this->destination = $destination; @@ -1287,7 +1221,6 @@ public function getDestination() { return $this->destination; } - public function setKind($kind) { $this->kind = $kind; @@ -1297,7 +1230,6 @@ public function getKind() { return $this->kind; } - public function setMaxConnectionDuration($maxConnectionDuration) { $this->maxConnectionDuration = $maxConnectionDuration; @@ -1307,7 +1239,6 @@ public function getMaxConnectionDuration() { return $this->maxConnectionDuration; } - public function setMaxStops($maxStops) { $this->maxStops = $maxStops; @@ -1317,7 +1248,6 @@ public function getMaxStops() { return $this->maxStops; } - public function setOrigin($origin) { $this->origin = $origin; @@ -1327,7 +1257,6 @@ public function getOrigin() { return $this->origin; } - public function setPermittedCarrier($permittedCarrier) { $this->permittedCarrier = $permittedCarrier; @@ -1337,7 +1266,6 @@ public function getPermittedCarrier() { return $this->permittedCarrier; } - public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime) { $this->permittedDepartureTime = $permittedDepartureTime; @@ -1347,7 +1275,6 @@ public function getPermittedDepartureTime() { return $this->permittedDepartureTime; } - public function setPreferredCabin($preferredCabin) { $this->preferredCabin = $preferredCabin; @@ -1357,7 +1284,6 @@ public function getPreferredCabin() { return $this->preferredCabin; } - public function setProhibitedCarrier($prohibitedCarrier) { $this->prohibitedCarrier = $prohibitedCarrier; @@ -1367,6 +1293,7 @@ public function getProhibitedCarrier() { return $this->prohibitedCarrier; } + } class Google_Service_QPXExpress_TaxData extends Google_Model @@ -1386,7 +1313,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1396,7 +1322,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1406,6 +1331,7 @@ public function getName() { return $this->name; } + } class Google_Service_QPXExpress_TaxInfo extends Google_Model @@ -1428,7 +1354,6 @@ public function getChargeType() { return $this->chargeType; } - public function setCode($code) { $this->code = $code; @@ -1438,7 +1363,6 @@ public function getCode() { return $this->code; } - public function setCountry($country) { $this->country = $country; @@ -1448,7 +1372,6 @@ public function getCountry() { return $this->country; } - public function setId($id) { $this->id = $id; @@ -1458,7 +1381,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1468,7 +1390,6 @@ public function getKind() { return $this->kind; } - public function setSalePrice($salePrice) { $this->salePrice = $salePrice; @@ -1478,6 +1399,7 @@ public function getSalePrice() { return $this->salePrice; } + } class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model @@ -1497,7 +1419,6 @@ public function getEarliestTime() { return $this->earliestTime; } - public function setKind($kind) { $this->kind = $kind; @@ -1507,7 +1428,6 @@ public function getKind() { return $this->kind; } - public function setLatestTime($latestTime) { $this->latestTime = $latestTime; @@ -1517,6 +1437,7 @@ public function getLatestTime() { return $this->latestTime; } + } class Google_Service_QPXExpress_TripOption extends Google_Collection @@ -1541,7 +1462,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1551,7 +1471,6 @@ public function getKind() { return $this->kind; } - public function setPricing($pricing) { $this->pricing = $pricing; @@ -1561,7 +1480,6 @@ public function getPricing() { return $this->pricing; } - public function setSaleTotal($saleTotal) { $this->saleTotal = $saleTotal; @@ -1571,7 +1489,6 @@ public function getSaleTotal() { return $this->saleTotal; } - public function setSlice($slice) { $this->slice = $slice; @@ -1581,6 +1498,7 @@ public function getSlice() { return $this->slice; } + } class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection @@ -1606,7 +1524,6 @@ public function getMaxPrice() { return $this->maxPrice; } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) { $this->passengers = $passengers; @@ -1616,7 +1533,6 @@ public function getPassengers() { return $this->passengers; } - public function setRefundable($refundable) { $this->refundable = $refundable; @@ -1626,7 +1542,6 @@ public function getRefundable() { return $this->refundable; } - public function setSaleCountry($saleCountry) { $this->saleCountry = $saleCountry; @@ -1636,7 +1551,6 @@ public function getSaleCountry() { return $this->saleCountry; } - public function setSlice($slice) { $this->slice = $slice; @@ -1646,7 +1560,6 @@ public function getSlice() { return $this->slice; } - public function setSolutions($solutions) { $this->solutions = $solutions; @@ -1656,6 +1569,7 @@ public function getSolutions() { return $this->solutions; } + } class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection @@ -1679,7 +1593,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -1689,7 +1602,6 @@ public function getKind() { return $this->kind; } - public function setRequestId($requestId) { $this->requestId = $requestId; @@ -1699,7 +1611,6 @@ public function getRequestId() { return $this->requestId; } - public function setTripOption($tripOption) { $this->tripOption = $tripOption; @@ -1709,6 +1620,7 @@ public function getTripOption() { return $this->tripOption; } + } class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model @@ -1727,6 +1639,7 @@ public function getRequest() { return $this->request; } + } class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model @@ -1746,7 +1659,6 @@ public function getKind() { return $this->kind; } - public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips) { $this->trips = $trips; @@ -1756,4 +1668,5 @@ public function getTrips() { return $this->trips; } + } From ef07b515cf1323a3c2670e647cdcf024f60b1aee Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:58 -0700 Subject: [PATCH 0383/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 58 +++++++------------------------ 1 file changed, 12 insertions(+), 46 deletions(-) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index 0eb8eb687..d3462686f 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -493,7 +493,6 @@ public function getAutoscalingPolicy() { return $this->autoscalingPolicy; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -503,7 +502,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -513,7 +511,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -523,7 +520,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -533,7 +529,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -543,7 +538,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -553,7 +547,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTarget($target) { $this->target = $target; @@ -563,6 +556,7 @@ public function getTarget() { return $this->target; } + } class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection @@ -584,7 +578,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -594,7 +587,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -604,6 +596,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection @@ -630,7 +623,6 @@ public function getCoolDownPeriodSec() { return $this->coolDownPeriodSec; } - public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization) { $this->cpuUtilization = $cpuUtilization; @@ -640,7 +632,6 @@ public function getCpuUtilization() { return $this->cpuUtilization; } - public function setCustomMetricUtilizations($customMetricUtilizations) { $this->customMetricUtilizations = $customMetricUtilizations; @@ -650,7 +641,6 @@ public function getCustomMetricUtilizations() { return $this->customMetricUtilizations; } - public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) { $this->loadBalancingUtilization = $loadBalancingUtilization; @@ -660,7 +650,6 @@ public function getLoadBalancingUtilization() { return $this->loadBalancingUtilization; } - public function setMaxNumReplicas($maxNumReplicas) { $this->maxNumReplicas = $maxNumReplicas; @@ -670,7 +659,6 @@ public function getMaxNumReplicas() { return $this->maxNumReplicas; } - public function setMinNumReplicas($minNumReplicas) { $this->minNumReplicas = $minNumReplicas; @@ -680,6 +668,7 @@ public function getMinNumReplicas() { return $this->minNumReplicas; } + } class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model @@ -697,6 +686,7 @@ public function getUtilizationTarget() { return $this->utilizationTarget; } + } class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model @@ -716,7 +706,6 @@ public function getMetric() { return $this->metric; } - public function setUtilizationTarget($utilizationTarget) { $this->utilizationTarget = $utilizationTarget; @@ -726,7 +715,6 @@ public function getUtilizationTarget() { return $this->utilizationTarget; } - public function setUtilizationTargetType($utilizationTargetType) { $this->utilizationTargetType = $utilizationTargetType; @@ -736,6 +724,7 @@ public function getUtilizationTargetType() { return $this->utilizationTargetType; } + } class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model @@ -753,6 +742,7 @@ public function getUtilizationTarget() { return $this->utilizationTarget; } + } class Google_Service_Autoscaler_Operation extends Google_Collection @@ -794,7 +784,6 @@ public function getClientOperationId() { return $this->clientOperationId; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -804,7 +793,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -814,7 +802,6 @@ public function getEndTime() { return $this->endTime; } - public function setError(Google_Service_Autoscaler_OperationError $error) { $this->error = $error; @@ -824,7 +811,6 @@ public function getError() { return $this->error; } - public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; @@ -834,7 +820,6 @@ public function getHttpErrorMessage() { return $this->httpErrorMessage; } - public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; @@ -844,7 +829,6 @@ public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; } - public function setId($id) { $this->id = $id; @@ -854,7 +838,6 @@ public function getId() { return $this->id; } - public function setInsertTime($insertTime) { $this->insertTime = $insertTime; @@ -864,7 +847,6 @@ public function getInsertTime() { return $this->insertTime; } - public function setKind($kind) { $this->kind = $kind; @@ -874,7 +856,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -884,7 +865,6 @@ public function getName() { return $this->name; } - public function setOperationType($operationType) { $this->operationType = $operationType; @@ -894,7 +874,6 @@ public function getOperationType() { return $this->operationType; } - public function setProgress($progress) { $this->progress = $progress; @@ -904,7 +883,6 @@ public function getProgress() { return $this->progress; } - public function setRegion($region) { $this->region = $region; @@ -914,7 +892,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -924,7 +901,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -934,7 +910,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -944,7 +919,6 @@ public function getStatus() { return $this->status; } - public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; @@ -954,7 +928,6 @@ public function getStatusMessage() { return $this->statusMessage; } - public function setTargetId($targetId) { $this->targetId = $targetId; @@ -964,7 +937,6 @@ public function getTargetId() { return $this->targetId; } - public function setTargetLink($targetLink) { $this->targetLink = $targetLink; @@ -974,7 +946,6 @@ public function getTargetLink() { return $this->targetLink; } - public function setUser($user) { $this->user = $user; @@ -984,7 +955,6 @@ public function getUser() { return $this->user; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -994,7 +964,6 @@ public function getWarnings() { return $this->warnings; } - public function setZone($zone) { $this->zone = $zone; @@ -1004,6 +973,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Autoscaler_OperationError extends Google_Collection @@ -1023,6 +993,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model @@ -1042,7 +1013,6 @@ public function getCode() { return $this->code; } - public function setLocation($location) { $this->location = $location; @@ -1052,7 +1022,6 @@ public function getLocation() { return $this->location; } - public function setMessage($message) { $this->message = $message; @@ -1062,6 +1031,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Autoscaler_OperationList extends Google_Collection @@ -1085,7 +1055,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -1095,7 +1064,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1105,7 +1073,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1115,7 +1082,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1125,6 +1091,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Autoscaler_OperationWarnings extends Google_Collection @@ -1146,7 +1113,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -1156,7 +1122,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -1166,6 +1131,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Autoscaler_OperationWarningsData extends Google_Model @@ -1184,7 +1150,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -1194,4 +1159,5 @@ public function getValue() { return $this->value; } + } From 81347a08bf028315f16d01bdb282985e7a6729d1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:58 -0700 Subject: [PATCH 0384/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index d2d19b353..96272a71d 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -221,7 +221,6 @@ public function getAccessType() { return $this->accessType; } - public function setAudience($audience) { $this->audience = $audience; @@ -231,7 +230,6 @@ public function getAudience() { return $this->audience; } - public function setEmail($email) { $this->email = $email; @@ -241,7 +239,6 @@ public function getEmail() { return $this->email; } - public function setExpiresIn($expiresIn) { $this->expiresIn = $expiresIn; @@ -251,7 +248,6 @@ public function getExpiresIn() { return $this->expiresIn; } - public function setIssuedTo($issuedTo) { $this->issuedTo = $issuedTo; @@ -261,7 +257,6 @@ public function getIssuedTo() { return $this->issuedTo; } - public function setScope($scope) { $this->scope = $scope; @@ -271,7 +266,6 @@ public function getScope() { return $this->scope; } - public function setUserId($userId) { $this->userId = $userId; @@ -281,7 +275,6 @@ public function getUserId() { return $this->userId; } - public function setVerifiedEmail($verifiedEmail) { $this->verifiedEmail = $verifiedEmail; @@ -291,6 +284,7 @@ public function getVerifiedEmail() { return $this->verifiedEmail; } + } class Google_Service_Oauth2_Userinfoplus extends Google_Model @@ -321,7 +315,6 @@ public function getEmail() { return $this->email; } - public function setFamilyName($familyName) { $this->familyName = $familyName; @@ -331,7 +324,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGender($gender) { $this->gender = $gender; @@ -341,7 +333,6 @@ public function getGender() { return $this->gender; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -351,7 +342,6 @@ public function getGivenName() { return $this->givenName; } - public function setHd($hd) { $this->hd = $hd; @@ -361,7 +351,6 @@ public function getHd() { return $this->hd; } - public function setId($id) { $this->id = $id; @@ -371,7 +360,6 @@ public function getId() { return $this->id; } - public function setLink($link) { $this->link = $link; @@ -381,7 +369,6 @@ public function getLink() { return $this->link; } - public function setLocale($locale) { $this->locale = $locale; @@ -391,7 +378,6 @@ public function getLocale() { return $this->locale; } - public function setName($name) { $this->name = $name; @@ -401,7 +387,6 @@ public function getName() { return $this->name; } - public function setPicture($picture) { $this->picture = $picture; @@ -411,7 +396,6 @@ public function getPicture() { return $this->picture; } - public function setVerifiedEmail($verifiedEmail) { $this->verifiedEmail = $verifiedEmail; @@ -421,4 +405,5 @@ public function getVerifiedEmail() { return $this->verifiedEmail; } + } From 12213eb7924c599fc814a8e80bee0bd67c56f2cb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:59 -0700 Subject: [PATCH 0385/1274] Updated DoubleClickBidManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DoubleClickBidManager.php | 67 ++++++-------------- 1 file changed, 19 insertions(+), 48 deletions(-) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 20bafeae7..748b54723 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -308,7 +308,6 @@ public function getFilterIds() { return $this->filterIds; } - public function setFilterType($filterType) { $this->filterType = $filterType; @@ -318,7 +317,6 @@ public function getFilterType() { return $this->filterType; } - public function setFormat($format) { $this->format = $format; @@ -328,6 +326,7 @@ public function getFormat() { return $this->format; } + } class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model @@ -345,6 +344,7 @@ public function getLineItems() { return $this->lineItems; } + } class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model @@ -363,7 +363,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -373,6 +372,7 @@ public function getValue() { return $this->value; } + } class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection @@ -393,7 +393,6 @@ public function getKind() { return $this->kind; } - public function setQueries($queries) { $this->queries = $queries; @@ -403,6 +402,7 @@ public function getQueries() { return $this->queries; } + } class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection @@ -423,7 +423,6 @@ public function getKind() { return $this->kind; } - public function setReports($reports) { $this->reports = $reports; @@ -433,6 +432,7 @@ public function getReports() { return $this->reports; } + } class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection @@ -456,7 +456,6 @@ public function getFilters() { return $this->filters; } - public function setGroupBys($groupBys) { $this->groupBys = $groupBys; @@ -466,7 +465,6 @@ public function getGroupBys() { return $this->groupBys; } - public function setIncludeInviteData($includeInviteData) { $this->includeInviteData = $includeInviteData; @@ -476,7 +474,6 @@ public function getIncludeInviteData() { return $this->includeInviteData; } - public function setMetrics($metrics) { $this->metrics = $metrics; @@ -486,7 +483,6 @@ public function getMetrics() { return $this->metrics; } - public function setType($type) { $this->type = $type; @@ -496,6 +492,7 @@ public function getType() { return $this->type; } + } class Google_Service_DoubleClickBidManager_Query extends Google_Model @@ -523,7 +520,6 @@ public function getKind() { return $this->kind; } - public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata) { $this->metadata = $metadata; @@ -533,7 +529,6 @@ public function getMetadata() { return $this->metadata; } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) { $this->params = $params; @@ -543,7 +538,6 @@ public function getParams() { return $this->params; } - public function setQueryId($queryId) { $this->queryId = $queryId; @@ -553,7 +547,6 @@ public function getQueryId() { return $this->queryId; } - public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; @@ -563,7 +556,6 @@ public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; } - public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; @@ -573,7 +565,6 @@ public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; } - public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule) { $this->schedule = $schedule; @@ -583,7 +574,6 @@ public function getSchedule() { return $this->schedule; } - public function setTimezoneCode($timezoneCode) { $this->timezoneCode = $timezoneCode; @@ -593,6 +583,7 @@ public function getTimezoneCode() { return $this->timezoneCode; } + } class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection @@ -620,7 +611,6 @@ public function getDataRange() { return $this->dataRange; } - public function setFormat($format) { $this->format = $format; @@ -630,7 +620,6 @@ public function getFormat() { return $this->format; } - public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport) { $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport; @@ -640,7 +629,6 @@ public function getGoogleCloudStoragePathForLatestReport() { return $this->googleCloudStoragePathForLatestReport; } - public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport) { $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport; @@ -650,7 +638,6 @@ public function getGoogleDrivePathForLatestReport() { return $this->googleDrivePathForLatestReport; } - public function setLatestReportRunTimeMs($latestReportRunTimeMs) { $this->latestReportRunTimeMs = $latestReportRunTimeMs; @@ -660,7 +647,6 @@ public function getLatestReportRunTimeMs() { return $this->latestReportRunTimeMs; } - public function setReportCount($reportCount) { $this->reportCount = $reportCount; @@ -670,7 +656,6 @@ public function getReportCount() { return $this->reportCount; } - public function setRunning($running) { $this->running = $running; @@ -680,7 +665,6 @@ public function getRunning() { return $this->running; } - public function setSendNotification($sendNotification) { $this->sendNotification = $sendNotification; @@ -690,7 +674,6 @@ public function getSendNotification() { return $this->sendNotification; } - public function setShareEmailAddress($shareEmailAddress) { $this->shareEmailAddress = $shareEmailAddress; @@ -700,7 +683,6 @@ public function getShareEmailAddress() { return $this->shareEmailAddress; } - public function setTitle($title) { $this->title = $title; @@ -710,6 +692,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model @@ -730,7 +713,6 @@ public function getEndTimeMs() { return $this->endTimeMs; } - public function setFrequency($frequency) { $this->frequency = $frequency; @@ -740,7 +722,6 @@ public function getFrequency() { return $this->frequency; } - public function setNextRunMinuteOfDay($nextRunMinuteOfDay) { $this->nextRunMinuteOfDay = $nextRunMinuteOfDay; @@ -750,7 +731,6 @@ public function getNextRunMinuteOfDay() { return $this->nextRunMinuteOfDay; } - public function setNextRunTimezoneCode($nextRunTimezoneCode) { $this->nextRunTimezoneCode = $nextRunTimezoneCode; @@ -760,6 +740,7 @@ public function getNextRunTimezoneCode() { return $this->nextRunTimezoneCode; } + } class Google_Service_DoubleClickBidManager_Report extends Google_Model @@ -782,7 +763,6 @@ public function getKey() { return $this->key; } - public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata) { $this->metadata = $metadata; @@ -792,7 +772,6 @@ public function getMetadata() { return $this->metadata; } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) { $this->params = $params; @@ -802,6 +781,7 @@ public function getParams() { return $this->params; } + } class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model @@ -819,6 +799,7 @@ public function getErrorCode() { return $this->errorCode; } + } class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model @@ -837,7 +818,6 @@ public function getQueryId() { return $this->queryId; } - public function setReportId($reportId) { $this->reportId = $reportId; @@ -847,6 +827,7 @@ public function getReportId() { return $this->reportId; } + } class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model @@ -868,7 +849,6 @@ public function getGoogleCloudStoragePath() { return $this->googleCloudStoragePath; } - public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; @@ -878,7 +858,6 @@ public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; } - public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; @@ -888,7 +867,6 @@ public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; } - public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status) { $this->status = $status; @@ -898,6 +876,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model @@ -919,7 +898,6 @@ public function getFailure() { return $this->failure; } - public function setFinishTimeMs($finishTimeMs) { $this->finishTimeMs = $finishTimeMs; @@ -929,7 +907,6 @@ public function getFinishTimeMs() { return $this->finishTimeMs; } - public function setFormat($format) { $this->format = $format; @@ -939,7 +916,6 @@ public function getFormat() { return $this->format; } - public function setState($state) { $this->state = $state; @@ -949,6 +925,7 @@ public function getState() { return $this->state; } + } class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection @@ -972,7 +949,6 @@ public function getChanged() { return $this->changed; } - public function setEntityId($entityId) { $this->entityId = $entityId; @@ -982,7 +958,6 @@ public function getEntityId() { return $this->entityId; } - public function setEntityName($entityName) { $this->entityName = $entityName; @@ -992,7 +967,6 @@ public function getEntityName() { return $this->entityName; } - public function setErrors($errors) { $this->errors = $errors; @@ -1002,7 +976,6 @@ public function getErrors() { return $this->errors; } - public function setPersisted($persisted) { $this->persisted = $persisted; @@ -1012,7 +985,6 @@ public function getPersisted() { return $this->persisted; } - public function setRowNumber($rowNumber) { $this->rowNumber = $rowNumber; @@ -1022,6 +994,7 @@ public function getRowNumber() { return $this->rowNumber; } + } class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model @@ -1042,7 +1015,6 @@ public function getDataRange() { return $this->dataRange; } - public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; @@ -1052,7 +1024,6 @@ public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; } - public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; @@ -1062,7 +1033,6 @@ public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; } - public function setTimezoneCode($timezoneCode) { $this->timezoneCode = $timezoneCode; @@ -1072,6 +1042,7 @@ public function getTimezoneCode() { return $this->timezoneCode; } + } class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model @@ -1091,7 +1062,6 @@ public function getDryRun() { return $this->dryRun; } - public function setFormat($format) { $this->format = $format; @@ -1101,7 +1071,6 @@ public function getFormat() { return $this->format; } - public function setLineItems($lineItems) { $this->lineItems = $lineItems; @@ -1111,6 +1080,7 @@ public function getLineItems() { return $this->lineItems; } + } class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model @@ -1129,6 +1099,7 @@ public function getUploadStatus() { return $this->uploadStatus; } + } class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection @@ -1149,7 +1120,6 @@ public function getErrors() { return $this->errors; } - public function setRowStatus($rowStatus) { $this->rowStatus = $rowStatus; @@ -1159,4 +1129,5 @@ public function getRowStatus() { return $this->rowStatus; } + } From 44cff06e355d403c39c5f2fb402d2e189bd44046 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:30:59 -0700 Subject: [PATCH 0386/1274] Updated Groupssettings.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Groupssettings.php | 28 +-------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php index 8c5b87e89..77dadb256 100644 --- a/src/Google/Service/Groupssettings.php +++ b/src/Google/Service/Groupssettings.php @@ -196,7 +196,6 @@ public function getAllowExternalMembers() { return $this->allowExternalMembers; } - public function setAllowGoogleCommunication($allowGoogleCommunication) { $this->allowGoogleCommunication = $allowGoogleCommunication; @@ -206,7 +205,6 @@ public function getAllowGoogleCommunication() { return $this->allowGoogleCommunication; } - public function setAllowWebPosting($allowWebPosting) { $this->allowWebPosting = $allowWebPosting; @@ -216,7 +214,6 @@ public function getAllowWebPosting() { return $this->allowWebPosting; } - public function setArchiveOnly($archiveOnly) { $this->archiveOnly = $archiveOnly; @@ -226,7 +223,6 @@ public function getArchiveOnly() { return $this->archiveOnly; } - public function setCustomReplyTo($customReplyTo) { $this->customReplyTo = $customReplyTo; @@ -236,7 +232,6 @@ public function getCustomReplyTo() { return $this->customReplyTo; } - public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) { $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; @@ -246,7 +241,6 @@ public function getDefaultMessageDenyNotificationText() { return $this->defaultMessageDenyNotificationText; } - public function setDescription($description) { $this->description = $description; @@ -256,7 +250,6 @@ public function getDescription() { return $this->description; } - public function setEmail($email) { $this->email = $email; @@ -266,7 +259,6 @@ public function getEmail() { return $this->email; } - public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { $this->includeInGlobalAddressList = $includeInGlobalAddressList; @@ -276,7 +268,6 @@ public function getIncludeInGlobalAddressList() { return $this->includeInGlobalAddressList; } - public function setIsArchived($isArchived) { $this->isArchived = $isArchived; @@ -286,7 +277,6 @@ public function getIsArchived() { return $this->isArchived; } - public function setKind($kind) { $this->kind = $kind; @@ -296,7 +286,6 @@ public function getKind() { return $this->kind; } - public function setMaxMessageBytes($maxMessageBytes) { $this->maxMessageBytes = $maxMessageBytes; @@ -306,7 +295,6 @@ public function getMaxMessageBytes() { return $this->maxMessageBytes; } - public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) { $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; @@ -316,7 +304,6 @@ public function getMembersCanPostAsTheGroup() { return $this->membersCanPostAsTheGroup; } - public function setMessageDisplayFont($messageDisplayFont) { $this->messageDisplayFont = $messageDisplayFont; @@ -326,7 +313,6 @@ public function getMessageDisplayFont() { return $this->messageDisplayFont; } - public function setMessageModerationLevel($messageModerationLevel) { $this->messageModerationLevel = $messageModerationLevel; @@ -336,7 +322,6 @@ public function getMessageModerationLevel() { return $this->messageModerationLevel; } - public function setName($name) { $this->name = $name; @@ -346,7 +331,6 @@ public function getName() { return $this->name; } - public function setPrimaryLanguage($primaryLanguage) { $this->primaryLanguage = $primaryLanguage; @@ -356,7 +340,6 @@ public function getPrimaryLanguage() { return $this->primaryLanguage; } - public function setReplyTo($replyTo) { $this->replyTo = $replyTo; @@ -366,7 +349,6 @@ public function getReplyTo() { return $this->replyTo; } - public function setSendMessageDenyNotification($sendMessageDenyNotification) { $this->sendMessageDenyNotification = $sendMessageDenyNotification; @@ -376,7 +358,6 @@ public function getSendMessageDenyNotification() { return $this->sendMessageDenyNotification; } - public function setShowInGroupDirectory($showInGroupDirectory) { $this->showInGroupDirectory = $showInGroupDirectory; @@ -386,7 +367,6 @@ public function getShowInGroupDirectory() { return $this->showInGroupDirectory; } - public function setSpamModerationLevel($spamModerationLevel) { $this->spamModerationLevel = $spamModerationLevel; @@ -396,7 +376,6 @@ public function getSpamModerationLevel() { return $this->spamModerationLevel; } - public function setWhoCanContactOwner($whoCanContactOwner) { $this->whoCanContactOwner = $whoCanContactOwner; @@ -406,7 +385,6 @@ public function getWhoCanContactOwner() { return $this->whoCanContactOwner; } - public function setWhoCanInvite($whoCanInvite) { $this->whoCanInvite = $whoCanInvite; @@ -416,7 +394,6 @@ public function getWhoCanInvite() { return $this->whoCanInvite; } - public function setWhoCanJoin($whoCanJoin) { $this->whoCanJoin = $whoCanJoin; @@ -426,7 +403,6 @@ public function getWhoCanJoin() { return $this->whoCanJoin; } - public function setWhoCanLeaveGroup($whoCanLeaveGroup) { $this->whoCanLeaveGroup = $whoCanLeaveGroup; @@ -436,7 +412,6 @@ public function getWhoCanLeaveGroup() { return $this->whoCanLeaveGroup; } - public function setWhoCanPostMessage($whoCanPostMessage) { $this->whoCanPostMessage = $whoCanPostMessage; @@ -446,7 +421,6 @@ public function getWhoCanPostMessage() { return $this->whoCanPostMessage; } - public function setWhoCanViewGroup($whoCanViewGroup) { $this->whoCanViewGroup = $whoCanViewGroup; @@ -456,7 +430,6 @@ public function getWhoCanViewGroup() { return $this->whoCanViewGroup; } - public function setWhoCanViewMembership($whoCanViewMembership) { $this->whoCanViewMembership = $whoCanViewMembership; @@ -466,4 +439,5 @@ public function getWhoCanViewMembership() { return $this->whoCanViewMembership; } + } From 8b97dd4db2591bdf196e9fcae91979df6df0fe87 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:00 -0700 Subject: [PATCH 0387/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 52 ++++++++------------------ 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 4b5c3d51c..48abb51ce 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -165,7 +165,6 @@ public function getFormattedResults() { return $this->formattedResults; } - public function setId($id) { $this->id = $id; @@ -175,7 +174,6 @@ public function getId() { return $this->id; } - public function setInvalidRules($invalidRules) { $this->invalidRules = $invalidRules; @@ -185,7 +183,6 @@ public function getInvalidRules() { return $this->invalidRules; } - public function setKind($kind) { $this->kind = $kind; @@ -195,7 +192,6 @@ public function getKind() { return $this->kind; } - public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats) { $this->pageStats = $pageStats; @@ -205,7 +201,6 @@ public function getPageStats() { return $this->pageStats; } - public function setResponseCode($responseCode) { $this->responseCode = $responseCode; @@ -215,7 +210,6 @@ public function getResponseCode() { return $this->responseCode; } - public function setScore($score) { $this->score = $score; @@ -225,7 +219,6 @@ public function getScore() { return $this->score; } - public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot) { $this->screenshot = $screenshot; @@ -235,7 +228,6 @@ public function getScreenshot() { return $this->screenshot; } - public function setTitle($title) { $this->title = $title; @@ -245,7 +237,6 @@ public function getTitle() { return $this->title; } - public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version) { $this->version = $version; @@ -255,6 +246,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model @@ -274,7 +266,6 @@ public function getLocale() { return $this->locale; } - public function setRuleResults($ruleResults) { $this->ruleResults = $ruleResults; @@ -284,12 +275,15 @@ public function getRuleResults() { return $this->ruleResults; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection @@ -311,7 +305,6 @@ public function getLocalizedRuleName() { return $this->localizedRuleName; } - public function setRuleImpact($ruleImpact) { $this->ruleImpact = $ruleImpact; @@ -321,7 +314,6 @@ public function getRuleImpact() { return $this->ruleImpact; } - public function setUrlBlocks($urlBlocks) { $this->urlBlocks = $urlBlocks; @@ -331,6 +323,7 @@ public function getUrlBlocks() { return $this->urlBlocks; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection @@ -352,7 +345,6 @@ public function getHeader() { return $this->header; } - public function setUrls($urls) { $this->urls = $urls; @@ -362,6 +354,7 @@ public function getUrls() { return $this->urls; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection @@ -382,7 +375,6 @@ public function getArgs() { return $this->args; } - public function setFormat($format) { $this->format = $format; @@ -392,6 +384,7 @@ public function getFormat() { return $this->format; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model @@ -410,7 +403,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -420,6 +412,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection @@ -441,7 +434,6 @@ public function getDetails() { return $this->details; } - public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result) { $this->result = $result; @@ -451,6 +443,7 @@ public function getResult() { return $this->result; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection @@ -471,7 +464,6 @@ public function getArgs() { return $this->args; } - public function setFormat($format) { $this->format = $format; @@ -481,6 +473,7 @@ public function getFormat() { return $this->format; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model @@ -499,7 +492,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -509,6 +501,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection @@ -529,7 +522,6 @@ public function getArgs() { return $this->args; } - public function setFormat($format) { $this->format = $format; @@ -539,6 +531,7 @@ public function getFormat() { return $this->format; } + } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model @@ -557,7 +550,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -567,6 +559,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model @@ -596,7 +589,6 @@ public function getCssResponseBytes() { return $this->cssResponseBytes; } - public function setFlashResponseBytes($flashResponseBytes) { $this->flashResponseBytes = $flashResponseBytes; @@ -606,7 +598,6 @@ public function getFlashResponseBytes() { return $this->flashResponseBytes; } - public function setHtmlResponseBytes($htmlResponseBytes) { $this->htmlResponseBytes = $htmlResponseBytes; @@ -616,7 +607,6 @@ public function getHtmlResponseBytes() { return $this->htmlResponseBytes; } - public function setImageResponseBytes($imageResponseBytes) { $this->imageResponseBytes = $imageResponseBytes; @@ -626,7 +616,6 @@ public function getImageResponseBytes() { return $this->imageResponseBytes; } - public function setJavascriptResponseBytes($javascriptResponseBytes) { $this->javascriptResponseBytes = $javascriptResponseBytes; @@ -636,7 +625,6 @@ public function getJavascriptResponseBytes() { return $this->javascriptResponseBytes; } - public function setNumberCssResources($numberCssResources) { $this->numberCssResources = $numberCssResources; @@ -646,7 +634,6 @@ public function getNumberCssResources() { return $this->numberCssResources; } - public function setNumberHosts($numberHosts) { $this->numberHosts = $numberHosts; @@ -656,7 +643,6 @@ public function getNumberHosts() { return $this->numberHosts; } - public function setNumberJsResources($numberJsResources) { $this->numberJsResources = $numberJsResources; @@ -666,7 +652,6 @@ public function getNumberJsResources() { return $this->numberJsResources; } - public function setNumberResources($numberResources) { $this->numberResources = $numberResources; @@ -676,7 +661,6 @@ public function getNumberResources() { return $this->numberResources; } - public function setNumberStaticResources($numberStaticResources) { $this->numberStaticResources = $numberStaticResources; @@ -686,7 +670,6 @@ public function getNumberStaticResources() { return $this->numberStaticResources; } - public function setOtherResponseBytes($otherResponseBytes) { $this->otherResponseBytes = $otherResponseBytes; @@ -696,7 +679,6 @@ public function getOtherResponseBytes() { return $this->otherResponseBytes; } - public function setTextResponseBytes($textResponseBytes) { $this->textResponseBytes = $textResponseBytes; @@ -706,7 +688,6 @@ public function getTextResponseBytes() { return $this->textResponseBytes; } - public function setTotalRequestBytes($totalRequestBytes) { $this->totalRequestBytes = $totalRequestBytes; @@ -716,6 +697,7 @@ public function getTotalRequestBytes() { return $this->totalRequestBytes; } + } class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model @@ -737,7 +719,6 @@ public function getData() { return $this->data; } - public function setHeight($height) { $this->height = $height; @@ -747,7 +728,6 @@ public function getHeight() { return $this->height; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -757,7 +737,6 @@ public function getMimeType() { return $this->mimeType; } - public function setWidth($width) { $this->width = $width; @@ -767,6 +746,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Pagespeedonline_ResultVersion extends Google_Model @@ -785,7 +765,6 @@ public function getMajor() { return $this->major; } - public function setMinor($minor) { $this->minor = $minor; @@ -795,4 +774,5 @@ public function getMinor() { return $this->minor; } + } From fcfbc50bec9b842b45a6a01dd1bbc30ffdb6532c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:01 -0700 Subject: [PATCH 0388/1274] Updated Manager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Manager.php | 133 +++++++++++---------------------- 1 file changed, 43 insertions(+), 90 deletions(-) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 63b21a16e..41b8564dd 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -408,7 +408,6 @@ public function getName() { return $this->name; } - public function setNatIp($natIp) { $this->natIp = $natIp; @@ -418,7 +417,6 @@ public function getNatIp() { return $this->natIp; } - public function setType($type) { $this->type = $type; @@ -428,6 +426,7 @@ public function getType() { return $this->type; } + } class Google_Service_Manager_Action extends Google_Collection @@ -447,7 +446,6 @@ public function getCommands() { return $this->commands; } - public function setTimeoutMs($timeoutMs) { $this->timeoutMs = $timeoutMs; @@ -457,6 +455,7 @@ public function getTimeoutMs() { return $this->timeoutMs; } + } class Google_Service_Manager_AllowedRule extends Google_Collection @@ -477,7 +476,6 @@ public function getIPProtocol() { return $this->iPProtocol; } - public function setPorts($ports) { $this->ports = $ports; @@ -487,6 +485,7 @@ public function getPorts() { return $this->ports; } + } class Google_Service_Manager_AutoscalingModule extends Google_Model @@ -510,7 +509,6 @@ public function getCoolDownPeriodSec() { return $this->coolDownPeriodSec; } - public function setDescription($description) { $this->description = $description; @@ -520,7 +518,6 @@ public function getDescription() { return $this->description; } - public function setMaxNumReplicas($maxNumReplicas) { $this->maxNumReplicas = $maxNumReplicas; @@ -530,7 +527,6 @@ public function getMaxNumReplicas() { return $this->maxNumReplicas; } - public function setMinNumReplicas($minNumReplicas) { $this->minNumReplicas = $minNumReplicas; @@ -540,7 +536,6 @@ public function getMinNumReplicas() { return $this->minNumReplicas; } - public function setSignalType($signalType) { $this->signalType = $signalType; @@ -550,7 +545,6 @@ public function getSignalType() { return $this->signalType; } - public function setTargetModule($targetModule) { $this->targetModule = $targetModule; @@ -560,7 +554,6 @@ public function getTargetModule() { return $this->targetModule; } - public function setTargetUtilization($targetUtilization) { $this->targetUtilization = $targetUtilization; @@ -570,6 +563,7 @@ public function getTargetUtilization() { return $this->targetUtilization; } + } class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model @@ -587,6 +581,7 @@ public function getAutoscalingConfigUrl() { return $this->autoscalingConfigUrl; } + } class Google_Service_Manager_DeployState extends Google_Model @@ -605,7 +600,6 @@ public function getDetails() { return $this->details; } - public function setStatus($status) { $this->status = $status; @@ -615,6 +609,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Manager_Deployment extends Google_Collection @@ -642,7 +637,6 @@ public function getCreationDate() { return $this->creationDate; } - public function setDescription($description) { $this->description = $description; @@ -652,7 +646,6 @@ public function getDescription() { return $this->description; } - public function setModules($modules) { $this->modules = $modules; @@ -662,7 +655,6 @@ public function getModules() { return $this->modules; } - public function setName($name) { $this->name = $name; @@ -672,7 +664,6 @@ public function getName() { return $this->name; } - public function setOverrides($overrides) { $this->overrides = $overrides; @@ -682,7 +673,6 @@ public function getOverrides() { return $this->overrides; } - public function setState(Google_Service_Manager_DeployState $state) { $this->state = $state; @@ -692,7 +682,6 @@ public function getState() { return $this->state; } - public function setTemplateName($templateName) { $this->templateName = $templateName; @@ -702,12 +691,15 @@ public function getTemplateName() { return $this->templateName; } + } class Google_Service_Manager_DeploymentModules extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Manager_DeploymentsListResponse extends Google_Collection @@ -728,7 +720,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -738,6 +729,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_Manager_DiskAttachment extends Google_Model @@ -756,7 +748,6 @@ public function getDeviceName() { return $this->deviceName; } - public function setIndex($index) { $this->index = $index; @@ -766,6 +757,7 @@ public function getIndex() { return $this->index; } + } class Google_Service_Manager_EnvVariable extends Google_Model @@ -784,7 +776,6 @@ public function getHidden() { return $this->hidden; } - public function setValue($value) { $this->value = $value; @@ -794,6 +785,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Manager_ExistingDisk extends Google_Model @@ -813,7 +805,6 @@ public function getAttachment() { return $this->attachment; } - public function setSource($source) { $this->source = $source; @@ -823,6 +814,7 @@ public function getSource() { return $this->source; } + } class Google_Service_Manager_FirewallModule extends Google_Collection @@ -847,7 +839,6 @@ public function getAllowed() { return $this->allowed; } - public function setDescription($description) { $this->description = $description; @@ -857,7 +848,6 @@ public function getDescription() { return $this->description; } - public function setNetwork($network) { $this->network = $network; @@ -867,7 +857,6 @@ public function getNetwork() { return $this->network; } - public function setSourceRanges($sourceRanges) { $this->sourceRanges = $sourceRanges; @@ -877,7 +866,6 @@ public function getSourceRanges() { return $this->sourceRanges; } - public function setSourceTags($sourceTags) { $this->sourceTags = $sourceTags; @@ -887,7 +875,6 @@ public function getSourceTags() { return $this->sourceTags; } - public function setTargetTags($targetTags) { $this->targetTags = $targetTags; @@ -897,6 +884,7 @@ public function getTargetTags() { return $this->targetTags; } + } class Google_Service_Manager_FirewallModuleStatus extends Google_Model @@ -914,6 +902,7 @@ public function getFirewallUrl() { return $this->firewallUrl; } + } class Google_Service_Manager_HealthCheckModule extends Google_Model @@ -938,7 +927,6 @@ public function getCheckIntervalSec() { return $this->checkIntervalSec; } - public function setDescription($description) { $this->description = $description; @@ -948,7 +936,6 @@ public function getDescription() { return $this->description; } - public function setHealthyThreshold($healthyThreshold) { $this->healthyThreshold = $healthyThreshold; @@ -958,7 +945,6 @@ public function getHealthyThreshold() { return $this->healthyThreshold; } - public function setHost($host) { $this->host = $host; @@ -968,7 +954,6 @@ public function getHost() { return $this->host; } - public function setPath($path) { $this->path = $path; @@ -978,7 +963,6 @@ public function getPath() { return $this->path; } - public function setPort($port) { $this->port = $port; @@ -988,7 +972,6 @@ public function getPort() { return $this->port; } - public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; @@ -998,7 +981,6 @@ public function getTimeoutSec() { return $this->timeoutSec; } - public function setUnhealthyThreshold($unhealthyThreshold) { $this->unhealthyThreshold = $unhealthyThreshold; @@ -1008,6 +990,7 @@ public function getUnhealthyThreshold() { return $this->unhealthyThreshold; } + } class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model @@ -1025,6 +1008,7 @@ public function getHealthCheckUrl() { return $this->healthCheckUrl; } + } class Google_Service_Manager_LbModule extends Google_Collection @@ -1049,7 +1033,6 @@ public function getDescription() { return $this->description; } - public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; @@ -1059,7 +1042,6 @@ public function getHealthChecks() { return $this->healthChecks; } - public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; @@ -1069,7 +1051,6 @@ public function getIpAddress() { return $this->ipAddress; } - public function setIpProtocol($ipProtocol) { $this->ipProtocol = $ipProtocol; @@ -1079,7 +1060,6 @@ public function getIpProtocol() { return $this->ipProtocol; } - public function setPortRange($portRange) { $this->portRange = $portRange; @@ -1089,7 +1069,6 @@ public function getPortRange() { return $this->portRange; } - public function setSessionAffinity($sessionAffinity) { $this->sessionAffinity = $sessionAffinity; @@ -1099,7 +1078,6 @@ public function getSessionAffinity() { return $this->sessionAffinity; } - public function setTargetModules($targetModules) { $this->targetModules = $targetModules; @@ -1109,6 +1087,7 @@ public function getTargetModules() { return $this->targetModules; } + } class Google_Service_Manager_LbModuleStatus extends Google_Model @@ -1127,7 +1106,6 @@ public function getForwardingRuleUrl() { return $this->forwardingRuleUrl; } - public function setTargetPoolUrl($targetPoolUrl) { $this->targetPoolUrl = $targetPoolUrl; @@ -1137,6 +1115,7 @@ public function getTargetPoolUrl() { return $this->targetPoolUrl; } + } class Google_Service_Manager_Metadata extends Google_Collection @@ -1157,7 +1136,6 @@ public function getFingerPrint() { return $this->fingerPrint; } - public function setItems($items) { $this->items = $items; @@ -1167,6 +1145,7 @@ public function getItems() { return $this->items; } + } class Google_Service_Manager_MetadataItem extends Google_Model @@ -1185,7 +1164,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -1195,6 +1173,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Manager_Module extends Google_Model @@ -1224,7 +1203,6 @@ public function getAutoscalingModule() { return $this->autoscalingModule; } - public function setFirewallModule(Google_Service_Manager_FirewallModule $firewallModule) { $this->firewallModule = $firewallModule; @@ -1234,7 +1212,6 @@ public function getFirewallModule() { return $this->firewallModule; } - public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $healthCheckModule) { $this->healthCheckModule = $healthCheckModule; @@ -1244,7 +1221,6 @@ public function getHealthCheckModule() { return $this->healthCheckModule; } - public function setLbModule(Google_Service_Manager_LbModule $lbModule) { $this->lbModule = $lbModule; @@ -1254,7 +1230,6 @@ public function getLbModule() { return $this->lbModule; } - public function setNetworkModule(Google_Service_Manager_NetworkModule $networkModule) { $this->networkModule = $networkModule; @@ -1264,7 +1239,6 @@ public function getNetworkModule() { return $this->networkModule; } - public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $replicaPoolModule) { $this->replicaPoolModule = $replicaPoolModule; @@ -1274,7 +1248,6 @@ public function getReplicaPoolModule() { return $this->replicaPoolModule; } - public function setType($type) { $this->type = $type; @@ -1284,6 +1257,7 @@ public function getType() { return $this->type; } + } class Google_Service_Manager_ModuleStatus extends Google_Model @@ -1315,7 +1289,6 @@ public function getAutoscalingModuleStatus() { return $this->autoscalingModuleStatus; } - public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleStatus $firewallModuleStatus) { $this->firewallModuleStatus = $firewallModuleStatus; @@ -1325,7 +1298,6 @@ public function getFirewallModuleStatus() { return $this->firewallModuleStatus; } - public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus) { $this->healthCheckModuleStatus = $healthCheckModuleStatus; @@ -1335,7 +1307,6 @@ public function getHealthCheckModuleStatus() { return $this->healthCheckModuleStatus; } - public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModuleStatus) { $this->lbModuleStatus = $lbModuleStatus; @@ -1345,7 +1316,6 @@ public function getLbModuleStatus() { return $this->lbModuleStatus; } - public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatus $networkModuleStatus) { $this->networkModuleStatus = $networkModuleStatus; @@ -1355,7 +1325,6 @@ public function getNetworkModuleStatus() { return $this->networkModuleStatus; } - public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus) { $this->replicaPoolModuleStatus = $replicaPoolModuleStatus; @@ -1365,7 +1334,6 @@ public function getReplicaPoolModuleStatus() { return $this->replicaPoolModuleStatus; } - public function setState(Google_Service_Manager_DeployState $state) { $this->state = $state; @@ -1375,7 +1343,6 @@ public function getState() { return $this->state; } - public function setType($type) { $this->type = $type; @@ -1385,6 +1352,7 @@ public function getType() { return $this->type; } + } class Google_Service_Manager_NetworkInterface extends Google_Collection @@ -1407,7 +1375,6 @@ public function getAccessConfigs() { return $this->accessConfigs; } - public function setName($name) { $this->name = $name; @@ -1417,7 +1384,6 @@ public function getName() { return $this->name; } - public function setNetwork($network) { $this->network = $network; @@ -1427,7 +1393,6 @@ public function getNetwork() { return $this->network; } - public function setNetworkIp($networkIp) { $this->networkIp = $networkIp; @@ -1437,6 +1402,7 @@ public function getNetworkIp() { return $this->networkIp; } + } class Google_Service_Manager_NetworkModule extends Google_Model @@ -1457,7 +1423,6 @@ public function getIPv4Range() { return $this->iPv4Range; } - public function setDescription($description) { $this->description = $description; @@ -1467,7 +1432,6 @@ public function getDescription() { return $this->description; } - public function setGatewayIPv4($gatewayIPv4) { $this->gatewayIPv4 = $gatewayIPv4; @@ -1477,6 +1441,7 @@ public function getGatewayIPv4() { return $this->gatewayIPv4; } + } class Google_Service_Manager_NetworkModuleStatus extends Google_Model @@ -1494,6 +1459,7 @@ public function getNetworkUrl() { return $this->networkUrl; } + } class Google_Service_Manager_NewDisk extends Google_Model @@ -1516,7 +1482,6 @@ public function getAttachment() { return $this->attachment; } - public function setAutoDelete($autoDelete) { $this->autoDelete = $autoDelete; @@ -1526,7 +1491,6 @@ public function getAutoDelete() { return $this->autoDelete; } - public function setBoot($boot) { $this->boot = $boot; @@ -1536,7 +1500,6 @@ public function getBoot() { return $this->boot; } - public function setInitializeParams(Google_Service_Manager_NewDiskInitializeParams $initializeParams) { $this->initializeParams = $initializeParams; @@ -1546,6 +1509,7 @@ public function getInitializeParams() { return $this->initializeParams; } + } class Google_Service_Manager_NewDiskInitializeParams extends Google_Model @@ -1565,7 +1529,6 @@ public function getDiskSizeGb() { return $this->diskSizeGb; } - public function setDiskType($diskType) { $this->diskType = $diskType; @@ -1575,7 +1538,6 @@ public function getDiskType() { return $this->diskType; } - public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; @@ -1585,6 +1547,7 @@ public function getSourceImage() { return $this->sourceImage; } + } class Google_Service_Manager_ParamOverride extends Google_Model @@ -1603,7 +1566,6 @@ public function getPath() { return $this->path; } - public function setValue($value) { $this->value = $value; @@ -1613,6 +1575,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Manager_ReplicaPoolModule extends Google_Collection @@ -1637,7 +1600,6 @@ public function getEnvVariables() { return $this->envVariables; } - public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; @@ -1647,7 +1609,6 @@ public function getHealthChecks() { return $this->healthChecks; } - public function setNumReplicas($numReplicas) { $this->numReplicas = $numReplicas; @@ -1657,7 +1618,6 @@ public function getNumReplicas() { return $this->numReplicas; } - public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $replicaPoolParams) { $this->replicaPoolParams = $replicaPoolParams; @@ -1667,7 +1627,6 @@ public function getReplicaPoolParams() { return $this->replicaPoolParams; } - public function setResourceView($resourceView) { $this->resourceView = $resourceView; @@ -1677,12 +1636,15 @@ public function getResourceView() { return $this->resourceView; } + } class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model @@ -1701,7 +1663,6 @@ public function getReplicaPoolUrl() { return $this->replicaPoolUrl; } - public function setResourceViewUrl($resourceViewUrl) { $this->resourceViewUrl = $resourceViewUrl; @@ -1711,6 +1672,7 @@ public function getResourceViewUrl() { return $this->resourceViewUrl; } + } class Google_Service_Manager_ReplicaPoolParams extends Google_Model @@ -1729,6 +1691,7 @@ public function getV1beta1() { return $this->v1beta1; } + } class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection @@ -1766,7 +1729,6 @@ public function getAutoRestart() { return $this->autoRestart; } - public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; @@ -1776,7 +1738,6 @@ public function getBaseInstanceName() { return $this->baseInstanceName; } - public function setCanIpForward($canIpForward) { $this->canIpForward = $canIpForward; @@ -1786,7 +1747,6 @@ public function getCanIpForward() { return $this->canIpForward; } - public function setDescription($description) { $this->description = $description; @@ -1796,7 +1756,6 @@ public function getDescription() { return $this->description; } - public function setDisksToAttach($disksToAttach) { $this->disksToAttach = $disksToAttach; @@ -1806,7 +1765,6 @@ public function getDisksToAttach() { return $this->disksToAttach; } - public function setDisksToCreate($disksToCreate) { $this->disksToCreate = $disksToCreate; @@ -1816,7 +1774,6 @@ public function getDisksToCreate() { return $this->disksToCreate; } - public function setInitAction($initAction) { $this->initAction = $initAction; @@ -1826,7 +1783,6 @@ public function getInitAction() { return $this->initAction; } - public function setMachineType($machineType) { $this->machineType = $machineType; @@ -1836,7 +1792,6 @@ public function getMachineType() { return $this->machineType; } - public function setMetadata(Google_Service_Manager_Metadata $metadata) { $this->metadata = $metadata; @@ -1846,7 +1801,6 @@ public function getMetadata() { return $this->metadata; } - public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; @@ -1856,7 +1810,6 @@ public function getNetworkInterfaces() { return $this->networkInterfaces; } - public function setOnHostMaintenance($onHostMaintenance) { $this->onHostMaintenance = $onHostMaintenance; @@ -1866,7 +1819,6 @@ public function getOnHostMaintenance() { return $this->onHostMaintenance; } - public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; @@ -1876,7 +1828,6 @@ public function getServiceAccounts() { return $this->serviceAccounts; } - public function setTags(Google_Service_Manager_Tag $tags) { $this->tags = $tags; @@ -1886,7 +1837,6 @@ public function getTags() { return $this->tags; } - public function setZone($zone) { $this->zone = $zone; @@ -1896,6 +1846,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Manager_ServiceAccount extends Google_Collection @@ -1915,7 +1866,6 @@ public function getEmail() { return $this->email; } - public function setScopes($scopes) { $this->scopes = $scopes; @@ -1925,6 +1875,7 @@ public function getScopes() { return $this->scopes; } + } class Google_Service_Manager_Tag extends Google_Collection @@ -1944,7 +1895,6 @@ public function getFingerPrint() { return $this->fingerPrint; } - public function setItems($items) { $this->items = $items; @@ -1954,6 +1904,7 @@ public function getItems() { return $this->items; } + } class Google_Service_Manager_Template extends Google_Model @@ -1976,7 +1927,6 @@ public function getActions() { return $this->actions; } - public function setDescription($description) { $this->description = $description; @@ -1986,7 +1936,6 @@ public function getDescription() { return $this->description; } - public function setModules($modules) { $this->modules = $modules; @@ -1996,7 +1945,6 @@ public function getModules() { return $this->modules; } - public function setName($name) { $this->name = $name; @@ -2006,18 +1954,23 @@ public function getName() { return $this->name; } + } class Google_Service_Manager_TemplateActions extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Manager_TemplateModules extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Manager_TemplatesListResponse extends Google_Collection @@ -2038,7 +1991,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResources($resources) { $this->resources = $resources; @@ -2048,4 +2000,5 @@ public function getResources() { return $this->resources; } + } From 20a5fcd66ffd2ee1a163472bc65a2eb2ca6f5bd7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:01 -0700 Subject: [PATCH 0389/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 119 +++++++------------------------ 1 file changed, 24 insertions(+), 95 deletions(-) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 5ceee828e..5acd344a4 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -331,7 +331,6 @@ public function getElectionAdministrationBody() { return $this->electionAdministrationBody; } - public function setId($id) { $this->id = $id; @@ -341,7 +340,6 @@ public function getId() { return $this->id; } - public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction) { $this->localJurisdiction = $localJurisdiction; @@ -351,7 +349,6 @@ public function getLocalJurisdiction() { return $this->localJurisdiction; } - public function setName($name) { $this->name = $name; @@ -361,7 +358,6 @@ public function getName() { return $this->name; } - public function setSources($sources) { $this->sources = $sources; @@ -371,6 +367,7 @@ public function getSources() { return $this->sources; } + } class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection @@ -405,7 +402,6 @@ public function getAbsenteeVotingInfoUrl() { return $this->absenteeVotingInfoUrl; } - public function setBallotInfoUrl($ballotInfoUrl) { $this->ballotInfoUrl = $ballotInfoUrl; @@ -415,7 +411,6 @@ public function getBallotInfoUrl() { return $this->ballotInfoUrl; } - public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress) { $this->correspondenceAddress = $correspondenceAddress; @@ -425,7 +420,6 @@ public function getCorrespondenceAddress() { return $this->correspondenceAddress; } - public function setElectionInfoUrl($electionInfoUrl) { $this->electionInfoUrl = $electionInfoUrl; @@ -435,7 +429,6 @@ public function getElectionInfoUrl() { return $this->electionInfoUrl; } - public function setElectionOfficials($electionOfficials) { $this->electionOfficials = $electionOfficials; @@ -445,7 +438,6 @@ public function getElectionOfficials() { return $this->electionOfficials; } - public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl) { $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; @@ -455,7 +447,6 @@ public function getElectionRegistrationConfirmationUrl() { return $this->electionRegistrationConfirmationUrl; } - public function setElectionRegistrationUrl($electionRegistrationUrl) { $this->electionRegistrationUrl = $electionRegistrationUrl; @@ -465,7 +456,6 @@ public function getElectionRegistrationUrl() { return $this->electionRegistrationUrl; } - public function setElectionRulesUrl($electionRulesUrl) { $this->electionRulesUrl = $electionRulesUrl; @@ -475,7 +465,6 @@ public function getElectionRulesUrl() { return $this->electionRulesUrl; } - public function setHoursOfOperation($hoursOfOperation) { $this->hoursOfOperation = $hoursOfOperation; @@ -485,7 +474,6 @@ public function getHoursOfOperation() { return $this->hoursOfOperation; } - public function setName($name) { $this->name = $name; @@ -495,7 +483,6 @@ public function getName() { return $this->name; } - public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress) { $this->physicalAddress = $physicalAddress; @@ -505,7 +492,6 @@ public function getPhysicalAddress() { return $this->physicalAddress; } - public function setVoterServices($voterServices) { $this->voterServices = $voterServices; @@ -515,7 +501,6 @@ public function getVoterServices() { return $this->voterServices; } - public function setVotingLocationFinderUrl($votingLocationFinderUrl) { $this->votingLocationFinderUrl = $votingLocationFinderUrl; @@ -525,6 +510,7 @@ public function getVotingLocationFinderUrl() { return $this->votingLocationFinderUrl; } + } class Google_Service_CivicInfo_Candidate extends Google_Collection @@ -551,7 +537,6 @@ public function getCandidateUrl() { return $this->candidateUrl; } - public function setChannels($channels) { $this->channels = $channels; @@ -561,7 +546,6 @@ public function getChannels() { return $this->channels; } - public function setEmail($email) { $this->email = $email; @@ -571,7 +555,6 @@ public function getEmail() { return $this->email; } - public function setName($name) { $this->name = $name; @@ -581,7 +564,6 @@ public function getName() { return $this->name; } - public function setOrderOnBallot($orderOnBallot) { $this->orderOnBallot = $orderOnBallot; @@ -591,7 +573,6 @@ public function getOrderOnBallot() { return $this->orderOnBallot; } - public function setParty($party) { $this->party = $party; @@ -601,7 +582,6 @@ public function getParty() { return $this->party; } - public function setPhone($phone) { $this->phone = $phone; @@ -611,7 +591,6 @@ public function getPhone() { return $this->phone; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -621,6 +600,7 @@ public function getPhotoUrl() { return $this->photoUrl; } + } class Google_Service_CivicInfo_Channel extends Google_Model @@ -639,7 +619,6 @@ public function getId() { return $this->id; } - public function setType($type) { $this->type = $type; @@ -649,6 +628,7 @@ public function getType() { return $this->type; } + } class Google_Service_CivicInfo_Contest extends Google_Collection @@ -686,7 +666,6 @@ public function getBallotPlacement() { return $this->ballotPlacement; } - public function setCandidates($candidates) { $this->candidates = $candidates; @@ -696,7 +675,6 @@ public function getCandidates() { return $this->candidates; } - public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district) { $this->district = $district; @@ -706,7 +684,6 @@ public function getDistrict() { return $this->district; } - public function setElectorateSpecifications($electorateSpecifications) { $this->electorateSpecifications = $electorateSpecifications; @@ -716,7 +693,6 @@ public function getElectorateSpecifications() { return $this->electorateSpecifications; } - public function setId($id) { $this->id = $id; @@ -726,7 +702,6 @@ public function getId() { return $this->id; } - public function setLevel($level) { $this->level = $level; @@ -736,7 +711,6 @@ public function getLevel() { return $this->level; } - public function setNumberElected($numberElected) { $this->numberElected = $numberElected; @@ -746,7 +720,6 @@ public function getNumberElected() { return $this->numberElected; } - public function setNumberVotingFor($numberVotingFor) { $this->numberVotingFor = $numberVotingFor; @@ -756,7 +729,6 @@ public function getNumberVotingFor() { return $this->numberVotingFor; } - public function setOffice($office) { $this->office = $office; @@ -766,7 +738,6 @@ public function getOffice() { return $this->office; } - public function setPrimaryParty($primaryParty) { $this->primaryParty = $primaryParty; @@ -776,7 +747,6 @@ public function getPrimaryParty() { return $this->primaryParty; } - public function setReferendumSubtitle($referendumSubtitle) { $this->referendumSubtitle = $referendumSubtitle; @@ -786,7 +756,6 @@ public function getReferendumSubtitle() { return $this->referendumSubtitle; } - public function setReferendumTitle($referendumTitle) { $this->referendumTitle = $referendumTitle; @@ -796,7 +765,6 @@ public function getReferendumTitle() { return $this->referendumTitle; } - public function setReferendumUrl($referendumUrl) { $this->referendumUrl = $referendumUrl; @@ -806,7 +774,6 @@ public function getReferendumUrl() { return $this->referendumUrl; } - public function setRoles($roles) { $this->roles = $roles; @@ -816,7 +783,6 @@ public function getRoles() { return $this->roles; } - public function setSources($sources) { $this->sources = $sources; @@ -826,7 +792,6 @@ public function getSources() { return $this->sources; } - public function setSpecial($special) { $this->special = $special; @@ -836,7 +801,6 @@ public function getSpecial() { return $this->special; } - public function setType($type) { $this->type = $type; @@ -846,6 +810,7 @@ public function getType() { return $this->type; } + } class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection @@ -866,7 +831,6 @@ public function getKind() { return $this->kind; } - public function setResults($results) { $this->results = $results; @@ -876,6 +840,7 @@ public function getResults() { return $this->results; } + } class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection @@ -896,7 +861,6 @@ public function getAliases() { return $this->aliases; } - public function setName($name) { $this->name = $name; @@ -906,7 +870,6 @@ public function getName() { return $this->name; } - public function setOcdId($ocdId) { $this->ocdId = $ocdId; @@ -916,6 +879,7 @@ public function getOcdId() { return $this->ocdId; } + } class Google_Service_CivicInfo_Election extends Google_Model @@ -935,7 +899,6 @@ public function getElectionDay() { return $this->electionDay; } - public function setId($id) { $this->id = $id; @@ -945,7 +908,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -955,6 +917,7 @@ public function getName() { return $this->name; } + } class Google_Service_CivicInfo_ElectionOfficial extends Google_Model @@ -976,7 +939,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setFaxNumber($faxNumber) { $this->faxNumber = $faxNumber; @@ -986,7 +948,6 @@ public function getFaxNumber() { return $this->faxNumber; } - public function setName($name) { $this->name = $name; @@ -996,7 +957,6 @@ public function getName() { return $this->name; } - public function setOfficePhoneNumber($officePhoneNumber) { $this->officePhoneNumber = $officePhoneNumber; @@ -1006,7 +966,6 @@ public function getOfficePhoneNumber() { return $this->officePhoneNumber; } - public function setTitle($title) { $this->title = $title; @@ -1016,6 +975,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection @@ -1036,7 +996,6 @@ public function getElections() { return $this->elections; } - public function setKind($kind) { $this->kind = $kind; @@ -1046,6 +1005,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model @@ -1065,7 +1025,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -1075,7 +1034,6 @@ public function getName() { return $this->name; } - public function setScope($scope) { $this->scope = $scope; @@ -1085,6 +1043,7 @@ public function getScope() { return $this->scope; } + } class Google_Service_CivicInfo_GeographicDivision extends Google_Collection @@ -1105,7 +1064,6 @@ public function getAlsoKnownAs() { return $this->alsoKnownAs; } - public function setName($name) { $this->name = $name; @@ -1115,7 +1073,6 @@ public function getName() { return $this->name; } - public function setOfficeIndices($officeIndices) { $this->officeIndices = $officeIndices; @@ -1125,6 +1082,7 @@ public function getOfficeIndices() { return $this->officeIndices; } + } class Google_Service_CivicInfo_Office extends Google_Collection @@ -1149,7 +1107,6 @@ public function getDivisionId() { return $this->divisionId; } - public function setLevels($levels) { $this->levels = $levels; @@ -1159,7 +1116,6 @@ public function getLevels() { return $this->levels; } - public function setName($name) { $this->name = $name; @@ -1169,7 +1125,6 @@ public function getName() { return $this->name; } - public function setOfficialIndices($officialIndices) { $this->officialIndices = $officialIndices; @@ -1179,7 +1134,6 @@ public function getOfficialIndices() { return $this->officialIndices; } - public function setRoles($roles) { $this->roles = $roles; @@ -1189,7 +1143,6 @@ public function getRoles() { return $this->roles; } - public function setSources($sources) { $this->sources = $sources; @@ -1199,6 +1152,7 @@ public function getSources() { return $this->sources; } + } class Google_Service_CivicInfo_Official extends Google_Collection @@ -1226,7 +1180,6 @@ public function getAddress() { return $this->address; } - public function setChannels($channels) { $this->channels = $channels; @@ -1236,7 +1189,6 @@ public function getChannels() { return $this->channels; } - public function setEmails($emails) { $this->emails = $emails; @@ -1246,7 +1198,6 @@ public function getEmails() { return $this->emails; } - public function setName($name) { $this->name = $name; @@ -1256,7 +1207,6 @@ public function getName() { return $this->name; } - public function setParty($party) { $this->party = $party; @@ -1266,7 +1216,6 @@ public function getParty() { return $this->party; } - public function setPhones($phones) { $this->phones = $phones; @@ -1276,7 +1225,6 @@ public function getPhones() { return $this->phones; } - public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; @@ -1286,7 +1234,6 @@ public function getPhotoUrl() { return $this->photoUrl; } - public function setUrls($urls) { $this->urls = $urls; @@ -1296,6 +1243,7 @@ public function getUrls() { return $this->urls; } + } class Google_Service_CivicInfo_PollingLocation extends Google_Collection @@ -1324,7 +1272,6 @@ public function getAddress() { return $this->address; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -1334,7 +1281,6 @@ public function getEndDate() { return $this->endDate; } - public function setId($id) { $this->id = $id; @@ -1344,7 +1290,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -1354,7 +1299,6 @@ public function getName() { return $this->name; } - public function setNotes($notes) { $this->notes = $notes; @@ -1364,7 +1308,6 @@ public function getNotes() { return $this->notes; } - public function setPollingHours($pollingHours) { $this->pollingHours = $pollingHours; @@ -1374,7 +1317,6 @@ public function getPollingHours() { return $this->pollingHours; } - public function setSources($sources) { $this->sources = $sources; @@ -1384,7 +1326,6 @@ public function getSources() { return $this->sources; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -1394,7 +1335,6 @@ public function getStartDate() { return $this->startDate; } - public function setVoterServices($voterServices) { $this->voterServices = $voterServices; @@ -1404,6 +1344,7 @@ public function getVoterServices() { return $this->voterServices; } + } class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection @@ -1427,7 +1368,6 @@ public function getDivisions() { return $this->divisions; } - public function setOffices($offices) { $this->offices = $offices; @@ -1437,7 +1377,6 @@ public function getOffices() { return $this->offices; } - public function setOfficials($officials) { $this->officials = $officials; @@ -1447,12 +1386,15 @@ public function getOfficials() { return $this->officials; } + } class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection @@ -1479,7 +1421,6 @@ public function getDivisions() { return $this->divisions; } - public function setKind($kind) { $this->kind = $kind; @@ -1489,7 +1430,6 @@ public function getKind() { return $this->kind; } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) { $this->normalizedInput = $normalizedInput; @@ -1499,7 +1439,6 @@ public function getNormalizedInput() { return $this->normalizedInput; } - public function setOffices($offices) { $this->offices = $offices; @@ -1509,7 +1448,6 @@ public function getOffices() { return $this->offices; } - public function setOfficials($officials) { $this->officials = $officials; @@ -1519,12 +1457,15 @@ public function getOfficials() { return $this->officials; } + } class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_CivicInfo_SimpleAddressType extends Google_Model @@ -1548,7 +1489,6 @@ public function getCity() { return $this->city; } - public function setLine1($line1) { $this->line1 = $line1; @@ -1558,7 +1498,6 @@ public function getLine1() { return $this->line1; } - public function setLine2($line2) { $this->line2 = $line2; @@ -1568,7 +1507,6 @@ public function getLine2() { return $this->line2; } - public function setLine3($line3) { $this->line3 = $line3; @@ -1578,7 +1516,6 @@ public function getLine3() { return $this->line3; } - public function setLocationName($locationName) { $this->locationName = $locationName; @@ -1588,7 +1525,6 @@ public function getLocationName() { return $this->locationName; } - public function setState($state) { $this->state = $state; @@ -1598,7 +1534,6 @@ public function getState() { return $this->state; } - public function setZip($zip) { $this->zip = $zip; @@ -1608,6 +1543,7 @@ public function getZip() { return $this->zip; } + } class Google_Service_CivicInfo_Source extends Google_Model @@ -1626,7 +1562,6 @@ public function getName() { return $this->name; } - public function setOfficial($official) { $this->official = $official; @@ -1636,6 +1571,7 @@ public function getOfficial() { return $this->official; } + } class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection @@ -1669,7 +1605,6 @@ public function getContests() { return $this->contests; } - public function setEarlyVoteSites($earlyVoteSites) { $this->earlyVoteSites = $earlyVoteSites; @@ -1679,7 +1614,6 @@ public function getEarlyVoteSites() { return $this->earlyVoteSites; } - public function setElection(Google_Service_CivicInfo_Election $election) { $this->election = $election; @@ -1689,7 +1623,6 @@ public function getElection() { return $this->election; } - public function setKind($kind) { $this->kind = $kind; @@ -1699,7 +1632,6 @@ public function getKind() { return $this->kind; } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) { $this->normalizedInput = $normalizedInput; @@ -1709,7 +1641,6 @@ public function getNormalizedInput() { return $this->normalizedInput; } - public function setOtherElections($otherElections) { $this->otherElections = $otherElections; @@ -1719,7 +1650,6 @@ public function getOtherElections() { return $this->otherElections; } - public function setPollingLocations($pollingLocations) { $this->pollingLocations = $pollingLocations; @@ -1729,7 +1659,6 @@ public function getPollingLocations() { return $this->pollingLocations; } - public function setPrecinctId($precinctId) { $this->precinctId = $precinctId; @@ -1739,7 +1668,6 @@ public function getPrecinctId() { return $this->precinctId; } - public function setState($state) { $this->state = $state; @@ -1749,4 +1677,5 @@ public function getState() { return $this->state; } + } From 603672d0632a2bf7fea23924e97bd75bfeb85246 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:02 -0700 Subject: [PATCH 0390/1274] Updated Spectrum.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Spectrum.php | 136 ++++++++------------------------ 1 file changed, 33 insertions(+), 103 deletions(-) diff --git a/src/Google/Service/Spectrum.php b/src/Google/Service/Spectrum.php index 96233f89b..09f239084 100644 --- a/src/Google/Service/Spectrum.php +++ b/src/Google/Service/Spectrum.php @@ -208,7 +208,6 @@ public function getHeight() { return $this->height; } - public function setHeightType($heightType) { $this->heightType = $heightType; @@ -218,7 +217,6 @@ public function getHeightType() { return $this->heightType; } - public function setHeightUncertainty($heightUncertainty) { $this->heightUncertainty = $heightUncertainty; @@ -228,6 +226,7 @@ public function getHeightUncertainty() { return $this->heightUncertainty; } + } class Google_Service_Spectrum_DatabaseSpec extends Google_Model @@ -246,7 +245,6 @@ public function getName() { return $this->name; } - public function setUri($uri) { $this->uri = $uri; @@ -256,6 +254,7 @@ public function getUri() { return $this->uri; } + } class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection @@ -275,6 +274,7 @@ public function getDatabases() { return $this->databases; } + } class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection @@ -294,6 +294,7 @@ public function getFrequencyRanges() { return $this->frequencyRanges; } + } class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection @@ -321,7 +322,6 @@ public function getEtsiEnDeviceCategory() { return $this->etsiEnDeviceCategory; } - public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass) { $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass; @@ -331,7 +331,6 @@ public function getEtsiEnDeviceEmissionsClass() { return $this->etsiEnDeviceEmissionsClass; } - public function setEtsiEnDeviceType($etsiEnDeviceType) { $this->etsiEnDeviceType = $etsiEnDeviceType; @@ -341,7 +340,6 @@ public function getEtsiEnDeviceType() { return $this->etsiEnDeviceType; } - public function setEtsiEnTechnologyId($etsiEnTechnologyId) { $this->etsiEnTechnologyId = $etsiEnTechnologyId; @@ -351,7 +349,6 @@ public function getEtsiEnTechnologyId() { return $this->etsiEnTechnologyId; } - public function setFccId($fccId) { $this->fccId = $fccId; @@ -361,7 +358,6 @@ public function getFccId() { return $this->fccId; } - public function setFccTvbdDeviceType($fccTvbdDeviceType) { $this->fccTvbdDeviceType = $fccTvbdDeviceType; @@ -371,7 +367,6 @@ public function getFccTvbdDeviceType() { return $this->fccTvbdDeviceType; } - public function setManufacturerId($manufacturerId) { $this->manufacturerId = $manufacturerId; @@ -381,7 +376,6 @@ public function getManufacturerId() { return $this->manufacturerId; } - public function setModelId($modelId) { $this->modelId = $modelId; @@ -391,7 +385,6 @@ public function getModelId() { return $this->modelId; } - public function setRulesetIds($rulesetIds) { $this->rulesetIds = $rulesetIds; @@ -401,7 +394,6 @@ public function getRulesetIds() { return $this->rulesetIds; } - public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; @@ -411,6 +403,7 @@ public function getSerialNumber() { return $this->serialNumber; } + } class Google_Service_Spectrum_DeviceOwner extends Google_Model @@ -431,7 +424,6 @@ public function getOperator() { return $this->operator; } - public function setOwner(Google_Service_Spectrum_Vcard $owner) { $this->owner = $owner; @@ -441,6 +433,7 @@ public function getOwner() { return $this->owner; } + } class Google_Service_Spectrum_DeviceValidity extends Google_Model @@ -461,7 +454,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setIsValid($isValid) { $this->isValid = $isValid; @@ -471,7 +463,6 @@ public function getIsValid() { return $this->isValid; } - public function setReason($reason) { $this->reason = $reason; @@ -481,6 +472,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_Spectrum_EventTime extends Google_Model @@ -499,7 +491,6 @@ public function getStartTime() { return $this->startTime; } - public function setStopTime($stopTime) { $this->stopTime = $stopTime; @@ -509,6 +500,7 @@ public function getStopTime() { return $this->stopTime; } + } class Google_Service_Spectrum_FrequencyRange extends Google_Model @@ -529,7 +521,6 @@ public function getChannelId() { return $this->channelId; } - public function setMaxPowerDBm($maxPowerDBm) { $this->maxPowerDBm = $maxPowerDBm; @@ -539,7 +530,6 @@ public function getMaxPowerDBm() { return $this->maxPowerDBm; } - public function setStartHz($startHz) { $this->startHz = $startHz; @@ -549,7 +539,6 @@ public function getStartHz() { return $this->startHz; } - public function setStopHz($stopHz) { $this->stopHz = $stopHz; @@ -559,6 +548,7 @@ public function getStopHz() { return $this->stopHz; } + } class Google_Service_Spectrum_GeoLocation extends Google_Model @@ -580,7 +570,6 @@ public function getConfidence() { return $this->confidence; } - public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point) { $this->point = $point; @@ -590,7 +579,6 @@ public function getPoint() { return $this->point; } - public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region) { $this->region = $region; @@ -600,6 +588,7 @@ public function getRegion() { return $this->region; } + } class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model @@ -621,7 +610,6 @@ public function getCenter() { return $this->center; } - public function setOrientation($orientation) { $this->orientation = $orientation; @@ -631,7 +619,6 @@ public function getOrientation() { return $this->orientation; } - public function setSemiMajorAxis($semiMajorAxis) { $this->semiMajorAxis = $semiMajorAxis; @@ -641,7 +628,6 @@ public function getSemiMajorAxis() { return $this->semiMajorAxis; } - public function setSemiMinorAxis($semiMinorAxis) { $this->semiMinorAxis = $semiMinorAxis; @@ -651,6 +637,7 @@ public function getSemiMinorAxis() { return $this->semiMinorAxis; } + } class Google_Service_Spectrum_GeoLocationPoint extends Google_Model @@ -669,7 +656,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -679,6 +665,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection @@ -698,6 +685,7 @@ public function getExterior() { return $this->exterior; } + } class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection @@ -719,7 +707,6 @@ public function getLocation() { return $this->location; } - public function setSpectrumSchedules($spectrumSchedules) { $this->spectrumSchedules = $spectrumSchedules; @@ -729,6 +716,7 @@ public function getSpectrumSchedules() { return $this->spectrumSchedules; } + } class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection @@ -761,7 +749,6 @@ public function getAntenna() { return $this->antenna; } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) { $this->capabilities = $capabilities; @@ -771,7 +758,6 @@ public function getCapabilities() { return $this->capabilities; } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; @@ -781,7 +767,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setLocations($locations) { $this->locations = $locations; @@ -791,7 +776,6 @@ public function getLocations() { return $this->locations; } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) { $this->masterDeviceDesc = $masterDeviceDesc; @@ -801,7 +785,6 @@ public function getMasterDeviceDesc() { return $this->masterDeviceDesc; } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { $this->owner = $owner; @@ -811,7 +794,6 @@ public function getOwner() { return $this->owner; } - public function setRequestType($requestType) { $this->requestType = $requestType; @@ -821,7 +803,6 @@ public function getRequestType() { return $this->requestType; } - public function setType($type) { $this->type = $type; @@ -831,7 +812,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -841,6 +821,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection @@ -873,7 +854,6 @@ public function getDatabaseChange() { return $this->databaseChange; } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; @@ -883,7 +863,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setGeoSpectrumSchedules($geoSpectrumSchedules) { $this->geoSpectrumSchedules = $geoSpectrumSchedules; @@ -893,7 +872,6 @@ public function getGeoSpectrumSchedules() { return $this->geoSpectrumSchedules; } - public function setKind($kind) { $this->kind = $kind; @@ -903,7 +881,6 @@ public function getKind() { return $this->kind; } - public function setMaxContiguousBwHz($maxContiguousBwHz) { $this->maxContiguousBwHz = $maxContiguousBwHz; @@ -913,7 +890,6 @@ public function getMaxContiguousBwHz() { return $this->maxContiguousBwHz; } - public function setMaxTotalBwHz($maxTotalBwHz) { $this->maxTotalBwHz = $maxTotalBwHz; @@ -923,7 +899,6 @@ public function getMaxTotalBwHz() { return $this->maxTotalBwHz; } - public function setNeedsSpectrumReport($needsSpectrumReport) { $this->needsSpectrumReport = $needsSpectrumReport; @@ -933,7 +908,6 @@ public function getNeedsSpectrumReport() { return $this->needsSpectrumReport; } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; @@ -943,7 +917,6 @@ public function getRulesetInfo() { return $this->rulesetInfo; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -953,7 +926,6 @@ public function getTimestamp() { return $this->timestamp; } - public function setType($type) { $this->type = $type; @@ -963,7 +935,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -973,6 +944,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model @@ -1004,7 +976,6 @@ public function getAntenna() { return $this->antenna; } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) { $this->capabilities = $capabilities; @@ -1014,7 +985,6 @@ public function getCapabilities() { return $this->capabilities; } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; @@ -1024,7 +994,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; @@ -1034,7 +1003,6 @@ public function getLocation() { return $this->location; } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) { $this->masterDeviceDesc = $masterDeviceDesc; @@ -1044,7 +1012,6 @@ public function getMasterDeviceDesc() { return $this->masterDeviceDesc; } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { $this->owner = $owner; @@ -1054,7 +1021,6 @@ public function getOwner() { return $this->owner; } - public function setRequestType($requestType) { $this->requestType = $requestType; @@ -1064,7 +1030,6 @@ public function getRequestType() { return $this->requestType; } - public function setType($type) { $this->type = $type; @@ -1074,7 +1039,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1084,6 +1048,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection @@ -1116,7 +1081,6 @@ public function getDatabaseChange() { return $this->databaseChange; } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; @@ -1126,7 +1090,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setKind($kind) { $this->kind = $kind; @@ -1136,7 +1099,6 @@ public function getKind() { return $this->kind; } - public function setMaxContiguousBwHz($maxContiguousBwHz) { $this->maxContiguousBwHz = $maxContiguousBwHz; @@ -1146,7 +1108,6 @@ public function getMaxContiguousBwHz() { return $this->maxContiguousBwHz; } - public function setMaxTotalBwHz($maxTotalBwHz) { $this->maxTotalBwHz = $maxTotalBwHz; @@ -1156,7 +1117,6 @@ public function getMaxTotalBwHz() { return $this->maxTotalBwHz; } - public function setNeedsSpectrumReport($needsSpectrumReport) { $this->needsSpectrumReport = $needsSpectrumReport; @@ -1166,7 +1126,6 @@ public function getNeedsSpectrumReport() { return $this->needsSpectrumReport; } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; @@ -1176,7 +1135,6 @@ public function getRulesetInfo() { return $this->rulesetInfo; } - public function setSpectrumSchedules($spectrumSchedules) { $this->spectrumSchedules = $spectrumSchedules; @@ -1186,7 +1144,6 @@ public function getSpectrumSchedules() { return $this->spectrumSchedules; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1196,7 +1153,6 @@ public function getTimestamp() { return $this->timestamp; } - public function setType($type) { $this->type = $type; @@ -1206,7 +1162,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1216,6 +1171,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsInitRequest extends Google_Model @@ -1238,7 +1194,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; @@ -1248,7 +1203,6 @@ public function getLocation() { return $this->location; } - public function setType($type) { $this->type = $type; @@ -1258,7 +1212,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1268,6 +1221,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsInitResponse extends Google_Model @@ -1291,7 +1245,6 @@ public function getDatabaseChange() { return $this->databaseChange; } - public function setKind($kind) { $this->kind = $kind; @@ -1301,7 +1254,6 @@ public function getKind() { return $this->kind; } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; @@ -1311,7 +1263,6 @@ public function getRulesetInfo() { return $this->rulesetInfo; } - public function setType($type) { $this->type = $type; @@ -1321,7 +1272,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1331,6 +1281,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection @@ -1356,7 +1307,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; @@ -1366,7 +1316,6 @@ public function getLocation() { return $this->location; } - public function setSpectra($spectra) { $this->spectra = $spectra; @@ -1376,7 +1325,6 @@ public function getSpectra() { return $this->spectra; } - public function setType($type) { $this->type = $type; @@ -1386,7 +1334,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1396,6 +1343,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model @@ -1415,7 +1363,6 @@ public function getKind() { return $this->kind; } - public function setType($type) { $this->type = $type; @@ -1425,7 +1372,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1435,6 +1381,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model @@ -1461,7 +1408,6 @@ public function getAntenna() { return $this->antenna; } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; @@ -1471,7 +1417,6 @@ public function getDeviceDesc() { return $this->deviceDesc; } - public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner) { $this->deviceOwner = $deviceOwner; @@ -1481,7 +1426,6 @@ public function getDeviceOwner() { return $this->deviceOwner; } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; @@ -1491,7 +1435,6 @@ public function getLocation() { return $this->location; } - public function setType($type) { $this->type = $type; @@ -1501,7 +1444,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1511,6 +1453,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model @@ -1532,7 +1475,6 @@ public function getDatabaseChange() { return $this->databaseChange; } - public function setKind($kind) { $this->kind = $kind; @@ -1542,7 +1484,6 @@ public function getKind() { return $this->kind; } - public function setType($type) { $this->type = $type; @@ -1552,7 +1493,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1562,6 +1502,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection @@ -1583,7 +1524,6 @@ public function getDeviceDescs() { return $this->deviceDescs; } - public function setType($type) { $this->type = $type; @@ -1593,7 +1533,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1603,6 +1542,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection @@ -1627,7 +1567,6 @@ public function getDatabaseChange() { return $this->databaseChange; } - public function setDeviceValidities($deviceValidities) { $this->deviceValidities = $deviceValidities; @@ -1637,7 +1576,6 @@ public function getDeviceValidities() { return $this->deviceValidities; } - public function setKind($kind) { $this->kind = $kind; @@ -1647,7 +1585,6 @@ public function getKind() { return $this->kind; } - public function setType($type) { $this->type = $type; @@ -1657,7 +1594,6 @@ public function getType() { return $this->type; } - public function setVersion($version) { $this->version = $version; @@ -1667,6 +1603,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Spectrum_RulesetInfo extends Google_Collection @@ -1688,7 +1625,6 @@ public function getAuthority() { return $this->authority; } - public function setMaxLocationChange($maxLocationChange) { $this->maxLocationChange = $maxLocationChange; @@ -1698,7 +1634,6 @@ public function getMaxLocationChange() { return $this->maxLocationChange; } - public function setMaxPollingSecs($maxPollingSecs) { $this->maxPollingSecs = $maxPollingSecs; @@ -1708,7 +1643,6 @@ public function getMaxPollingSecs() { return $this->maxPollingSecs; } - public function setRulesetIds($rulesetIds) { $this->rulesetIds = $rulesetIds; @@ -1718,6 +1652,7 @@ public function getRulesetIds() { return $this->rulesetIds; } + } class Google_Service_Spectrum_SpectrumMessage extends Google_Collection @@ -1738,7 +1673,6 @@ public function getBandwidth() { return $this->bandwidth; } - public function setFrequencyRanges($frequencyRanges) { $this->frequencyRanges = $frequencyRanges; @@ -1748,6 +1682,7 @@ public function getFrequencyRanges() { return $this->frequencyRanges; } + } class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection @@ -1769,7 +1704,6 @@ public function getEventTime() { return $this->eventTime; } - public function setSpectra($spectra) { $this->spectra = $spectra; @@ -1779,6 +1713,7 @@ public function getSpectra() { return $this->spectra; } + } class Google_Service_Spectrum_Vcard extends Google_Model @@ -1804,7 +1739,6 @@ public function getAdr() { return $this->adr; } - public function setEmail(Google_Service_Spectrum_VcardTypedText $email) { $this->email = $email; @@ -1814,7 +1748,6 @@ public function getEmail() { return $this->email; } - public function setFn($fn) { $this->fn = $fn; @@ -1824,7 +1757,6 @@ public function getFn() { return $this->fn; } - public function setOrg(Google_Service_Spectrum_VcardTypedText $org) { $this->org = $org; @@ -1834,7 +1766,6 @@ public function getOrg() { return $this->org; } - public function setTel(Google_Service_Spectrum_VcardTelephone $tel) { $this->tel = $tel; @@ -1844,6 +1775,7 @@ public function getTel() { return $this->tel; } + } class Google_Service_Spectrum_VcardAddress extends Google_Model @@ -1866,7 +1798,6 @@ public function getCode() { return $this->code; } - public function setCountry($country) { $this->country = $country; @@ -1876,7 +1807,6 @@ public function getCountry() { return $this->country; } - public function setLocality($locality) { $this->locality = $locality; @@ -1886,7 +1816,6 @@ public function getLocality() { return $this->locality; } - public function setPobox($pobox) { $this->pobox = $pobox; @@ -1896,7 +1825,6 @@ public function getPobox() { return $this->pobox; } - public function setRegion($region) { $this->region = $region; @@ -1906,7 +1834,6 @@ public function getRegion() { return $this->region; } - public function setStreet($street) { $this->street = $street; @@ -1916,6 +1843,7 @@ public function getStreet() { return $this->street; } + } class Google_Service_Spectrum_VcardTelephone extends Google_Model @@ -1933,6 +1861,7 @@ public function getUri() { return $this->uri; } + } class Google_Service_Spectrum_VcardTypedText extends Google_Model @@ -1950,4 +1879,5 @@ public function getText() { return $this->text; } + } From 87c1313a6856cd8730bfb96962442910c3d88669 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:03 -0700 Subject: [PATCH 0391/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 178 ++++++++------------------------ 1 file changed, 45 insertions(+), 133 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index c19cc245a..568a4a0c2 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -536,8 +536,7 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc * Identifier for the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The start time of the four-hour backup window. The backup can occur any time in the window. The - * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ @@ -809,8 +808,7 @@ public function restart($project, $instance, $optParams = array()) * The identifier of the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The start time of the four-hour backup window. The backup can occur any time in the window. The - * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse */ @@ -1046,7 +1044,6 @@ public function getBinaryLogEnabled() { return $this->binaryLogEnabled; } - public function setEnabled($enabled) { $this->enabled = $enabled; @@ -1056,7 +1053,6 @@ public function getEnabled() { return $this->enabled; } - public function setId($id) { $this->id = $id; @@ -1066,7 +1062,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1076,7 +1071,6 @@ public function getKind() { return $this->kind; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1086,6 +1080,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_SQLAdmin_BackupRun extends Google_Model @@ -1112,7 +1107,6 @@ public function getBackupConfiguration() { return $this->backupConfiguration; } - public function setDueTime($dueTime) { $this->dueTime = $dueTime; @@ -1122,7 +1116,6 @@ public function getDueTime() { return $this->dueTime; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1132,7 +1125,6 @@ public function getEndTime() { return $this->endTime; } - public function setEnqueuedTime($enqueuedTime) { $this->enqueuedTime = $enqueuedTime; @@ -1142,7 +1134,6 @@ public function getEnqueuedTime() { return $this->enqueuedTime; } - public function setError(Google_Service_SQLAdmin_OperationError $error) { $this->error = $error; @@ -1152,7 +1143,6 @@ public function getError() { return $this->error; } - public function setInstance($instance) { $this->instance = $instance; @@ -1162,7 +1152,6 @@ public function getInstance() { return $this->instance; } - public function setKind($kind) { $this->kind = $kind; @@ -1172,7 +1161,6 @@ public function getKind() { return $this->kind; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1182,7 +1170,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -1192,6 +1179,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection @@ -1213,7 +1201,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1223,7 +1210,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1233,6 +1219,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model @@ -1252,7 +1239,6 @@ public function getBinLogFileName() { return $this->binLogFileName; } - public function setBinLogPosition($binLogPosition) { $this->binLogPosition = $binLogPosition; @@ -1262,7 +1248,6 @@ public function getBinLogPosition() { return $this->binLogPosition; } - public function setKind($kind) { $this->kind = $kind; @@ -1272,6 +1257,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_SQLAdmin_CloneContext extends Google_Model @@ -1293,7 +1279,6 @@ public function getBinLogCoordinates() { return $this->binLogCoordinates; } - public function setDestinationInstanceName($destinationInstanceName) { $this->destinationInstanceName = $destinationInstanceName; @@ -1303,7 +1288,6 @@ public function getDestinationInstanceName() { return $this->destinationInstanceName; } - public function setKind($kind) { $this->kind = $kind; @@ -1313,7 +1297,6 @@ public function getKind() { return $this->kind; } - public function setSourceInstanceName($sourceInstanceName) { $this->sourceInstanceName = $sourceInstanceName; @@ -1323,6 +1306,7 @@ public function getSourceInstanceName() { return $this->sourceInstanceName; } + } class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model @@ -1341,7 +1325,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -1351,6 +1334,7 @@ public function getValue() { return $this->value; } + } class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection @@ -1365,7 +1349,6 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; - public $ipv6Address; public $kind; public $masterInstanceName; public $maxDiskSize; @@ -1387,7 +1370,6 @@ public function getCurrentDiskSize() { return $this->currentDiskSize; } - public function setDatabaseVersion($databaseVersion) { $this->databaseVersion = $databaseVersion; @@ -1397,7 +1379,6 @@ public function getDatabaseVersion() { return $this->databaseVersion; } - public function setEtag($etag) { $this->etag = $etag; @@ -1407,7 +1388,6 @@ public function getEtag() { return $this->etag; } - public function setInstance($instance) { $this->instance = $instance; @@ -1417,7 +1397,6 @@ public function getInstance() { return $this->instance; } - public function setInstanceType($instanceType) { $this->instanceType = $instanceType; @@ -1427,7 +1406,6 @@ public function getInstanceType() { return $this->instanceType; } - public function setIpAddresses($ipAddresses) { $this->ipAddresses = $ipAddresses; @@ -1437,17 +1415,6 @@ public function getIpAddresses() { return $this->ipAddresses; } - - public function setIpv6Address($ipv6Address) - { - $this->ipv6Address = $ipv6Address; - } - - public function getIpv6Address() - { - return $this->ipv6Address; - } - public function setKind($kind) { $this->kind = $kind; @@ -1457,7 +1424,6 @@ public function getKind() { return $this->kind; } - public function setMasterInstanceName($masterInstanceName) { $this->masterInstanceName = $masterInstanceName; @@ -1467,7 +1433,6 @@ public function getMasterInstanceName() { return $this->masterInstanceName; } - public function setMaxDiskSize($maxDiskSize) { $this->maxDiskSize = $maxDiskSize; @@ -1477,7 +1442,6 @@ public function getMaxDiskSize() { return $this->maxDiskSize; } - public function setProject($project) { $this->project = $project; @@ -1487,7 +1451,6 @@ public function getProject() { return $this->project; } - public function setRegion($region) { $this->region = $region; @@ -1497,7 +1460,6 @@ public function getRegion() { return $this->region; } - public function setReplicaNames($replicaNames) { $this->replicaNames = $replicaNames; @@ -1507,7 +1469,6 @@ public function getReplicaNames() { return $this->replicaNames; } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; @@ -1517,7 +1478,6 @@ public function getServerCaCert() { return $this->serverCaCert; } - public function setSettings(Google_Service_SQLAdmin_Settings $settings) { $this->settings = $settings; @@ -1527,7 +1487,6 @@ public function getSettings() { return $this->settings; } - public function setState($state) { $this->state = $state; @@ -1537,6 +1496,7 @@ public function getState() { return $this->state; } + } class Google_Service_SQLAdmin_ExportContext extends Google_Collection @@ -1558,7 +1518,6 @@ public function getDatabase() { return $this->database; } - public function setKind($kind) { $this->kind = $kind; @@ -1568,7 +1527,6 @@ public function getKind() { return $this->kind; } - public function setTable($table) { $this->table = $table; @@ -1578,7 +1536,6 @@ public function getTable() { return $this->table; } - public function setUri($uri) { $this->uri = $uri; @@ -1588,6 +1545,7 @@ public function getUri() { return $this->uri; } + } class Google_Service_SQLAdmin_Flag extends Google_Collection @@ -1612,7 +1570,6 @@ public function getAllowedStringValues() { return $this->allowedStringValues; } - public function setAppliesTo($appliesTo) { $this->appliesTo = $appliesTo; @@ -1622,7 +1579,6 @@ public function getAppliesTo() { return $this->appliesTo; } - public function setKind($kind) { $this->kind = $kind; @@ -1632,7 +1588,6 @@ public function getKind() { return $this->kind; } - public function setMaxValue($maxValue) { $this->maxValue = $maxValue; @@ -1642,7 +1597,6 @@ public function getMaxValue() { return $this->maxValue; } - public function setMinValue($minValue) { $this->minValue = $minValue; @@ -1652,7 +1606,6 @@ public function getMinValue() { return $this->minValue; } - public function setName($name) { $this->name = $name; @@ -1662,7 +1615,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -1672,6 +1624,7 @@ public function getType() { return $this->type; } + } class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection @@ -1692,7 +1645,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1702,6 +1654,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_SQLAdmin_ImportContext extends Google_Collection @@ -1722,7 +1675,6 @@ public function getDatabase() { return $this->database; } - public function setKind($kind) { $this->kind = $kind; @@ -1732,7 +1684,6 @@ public function getKind() { return $this->kind; } - public function setUri($uri) { $this->uri = $uri; @@ -1742,6 +1693,7 @@ public function getUri() { return $this->uri; } + } class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection @@ -1774,7 +1726,6 @@ public function getEndTime() { return $this->endTime; } - public function setEnqueuedTime($enqueuedTime) { $this->enqueuedTime = $enqueuedTime; @@ -1784,7 +1735,6 @@ public function getEnqueuedTime() { return $this->enqueuedTime; } - public function setError($error) { $this->error = $error; @@ -1794,7 +1744,6 @@ public function getError() { return $this->error; } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) { $this->exportContext = $exportContext; @@ -1804,7 +1753,6 @@ public function getExportContext() { return $this->exportContext; } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) { $this->importContext = $importContext; @@ -1814,7 +1762,6 @@ public function getImportContext() { return $this->importContext; } - public function setInstance($instance) { $this->instance = $instance; @@ -1824,7 +1771,6 @@ public function getInstance() { return $this->instance; } - public function setKind($kind) { $this->kind = $kind; @@ -1834,7 +1780,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -1844,7 +1789,6 @@ public function getOperation() { return $this->operation; } - public function setOperationType($operationType) { $this->operationType = $operationType; @@ -1854,7 +1798,6 @@ public function getOperationType() { return $this->operationType; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1864,7 +1807,6 @@ public function getStartTime() { return $this->startTime; } - public function setState($state) { $this->state = $state; @@ -1874,7 +1816,6 @@ public function getState() { return $this->state; } - public function setUserEmailAddress($userEmailAddress) { $this->userEmailAddress = $userEmailAddress; @@ -1884,6 +1825,7 @@ public function getUserEmailAddress() { return $this->userEmailAddress; } + } class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model @@ -1902,6 +1844,7 @@ public function getSetRootPasswordContext() { return $this->setRootPasswordContext; } + } class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model @@ -1920,6 +1863,7 @@ public function getCloneContext() { return $this->cloneContext; } + } class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model @@ -1938,7 +1882,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -1948,6 +1891,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model @@ -1966,7 +1910,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -1976,6 +1919,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model @@ -1994,6 +1938,7 @@ public function getExportContext() { return $this->exportContext; } + } class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model @@ -2012,7 +1957,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2022,6 +1966,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model @@ -2040,6 +1985,7 @@ public function getImportContext() { return $this->importContext; } + } class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model @@ -2058,7 +2004,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2068,6 +2013,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model @@ -2086,7 +2032,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2096,6 +2041,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection @@ -2117,7 +2063,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2127,7 +2072,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2137,6 +2081,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model @@ -2155,7 +2100,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2165,6 +2109,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model @@ -2183,7 +2128,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2193,6 +2137,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model @@ -2211,7 +2156,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2221,6 +2165,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model @@ -2239,7 +2184,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2249,6 +2193,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model @@ -2267,7 +2212,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2277,6 +2221,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model @@ -2295,7 +2240,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2305,6 +2249,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection @@ -2314,7 +2259,6 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection ); public $authorizedNetworks; public $enabled; - public $kind; public $requireSsl; public function setAuthorizedNetworks($authorizedNetworks) @@ -2326,7 +2270,6 @@ public function getAuthorizedNetworks() { return $this->authorizedNetworks; } - public function setEnabled($enabled) { $this->enabled = $enabled; @@ -2336,17 +2279,6 @@ public function getEnabled() { return $this->enabled; } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - public function setRequireSsl($requireSsl) { $this->requireSsl = $requireSsl; @@ -2356,6 +2288,7 @@ public function getRequireSsl() { return $this->requireSsl; } + } class Google_Service_SQLAdmin_IpMapping extends Google_Model @@ -2374,7 +2307,6 @@ public function getIpAddress() { return $this->ipAddress; } - public function setTimeToRetire($timeToRetire) { $this->timeToRetire = $timeToRetire; @@ -2384,6 +2316,7 @@ public function getTimeToRetire() { return $this->timeToRetire; } + } class Google_Service_SQLAdmin_LocationPreference extends Google_Model @@ -2403,7 +2336,6 @@ public function getFollowGaeApplication() { return $this->followGaeApplication; } - public function setKind($kind) { $this->kind = $kind; @@ -2413,7 +2345,6 @@ public function getKind() { return $this->kind; } - public function setZone($zone) { $this->zone = $zone; @@ -2423,6 +2354,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_SQLAdmin_OperationError extends Google_Model @@ -2441,7 +2373,6 @@ public function getCode() { return $this->code; } - public function setKind($kind) { $this->kind = $kind; @@ -2451,6 +2382,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection @@ -2472,7 +2404,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2482,7 +2413,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2492,6 +2422,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model @@ -2510,7 +2441,6 @@ public function getKind() { return $this->kind; } - public function setPassword($password) { $this->password = $password; @@ -2520,6 +2450,7 @@ public function getPassword() { return $this->password; } + } class Google_Service_SQLAdmin_Settings extends Google_Collection @@ -2553,7 +2484,6 @@ public function getActivationPolicy() { return $this->activationPolicy; } - public function setAuthorizedGaeApplications($authorizedGaeApplications) { $this->authorizedGaeApplications = $authorizedGaeApplications; @@ -2563,7 +2493,6 @@ public function getAuthorizedGaeApplications() { return $this->authorizedGaeApplications; } - public function setBackupConfiguration($backupConfiguration) { $this->backupConfiguration = $backupConfiguration; @@ -2573,7 +2502,6 @@ public function getBackupConfiguration() { return $this->backupConfiguration; } - public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; @@ -2583,7 +2511,6 @@ public function getDatabaseFlags() { return $this->databaseFlags; } - public function setDatabaseReplicationEnabled($databaseReplicationEnabled) { $this->databaseReplicationEnabled = $databaseReplicationEnabled; @@ -2593,7 +2520,6 @@ public function getDatabaseReplicationEnabled() { return $this->databaseReplicationEnabled; } - public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) { $this->ipConfiguration = $ipConfiguration; @@ -2603,7 +2529,6 @@ public function getIpConfiguration() { return $this->ipConfiguration; } - public function setKind($kind) { $this->kind = $kind; @@ -2613,7 +2538,6 @@ public function getKind() { return $this->kind; } - public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) { $this->locationPreference = $locationPreference; @@ -2623,7 +2547,6 @@ public function getLocationPreference() { return $this->locationPreference; } - public function setPricingPlan($pricingPlan) { $this->pricingPlan = $pricingPlan; @@ -2633,7 +2556,6 @@ public function getPricingPlan() { return $this->pricingPlan; } - public function setReplicationType($replicationType) { $this->replicationType = $replicationType; @@ -2643,7 +2565,6 @@ public function getReplicationType() { return $this->replicationType; } - public function setSettingsVersion($settingsVersion) { $this->settingsVersion = $settingsVersion; @@ -2653,7 +2574,6 @@ public function getSettingsVersion() { return $this->settingsVersion; } - public function setTier($tier) { $this->tier = $tier; @@ -2663,6 +2583,7 @@ public function getTier() { return $this->tier; } + } class Google_Service_SQLAdmin_SslCert extends Google_Model @@ -2687,7 +2608,6 @@ public function getCert() { return $this->cert; } - public function setCertSerialNumber($certSerialNumber) { $this->certSerialNumber = $certSerialNumber; @@ -2697,7 +2617,6 @@ public function getCertSerialNumber() { return $this->certSerialNumber; } - public function setCommonName($commonName) { $this->commonName = $commonName; @@ -2707,7 +2626,6 @@ public function getCommonName() { return $this->commonName; } - public function setCreateTime($createTime) { $this->createTime = $createTime; @@ -2717,7 +2635,6 @@ public function getCreateTime() { return $this->createTime; } - public function setExpirationTime($expirationTime) { $this->expirationTime = $expirationTime; @@ -2727,7 +2644,6 @@ public function getExpirationTime() { return $this->expirationTime; } - public function setInstance($instance) { $this->instance = $instance; @@ -2737,7 +2653,6 @@ public function getInstance() { return $this->instance; } - public function setKind($kind) { $this->kind = $kind; @@ -2747,7 +2662,6 @@ public function getKind() { return $this->kind; } - public function setSha1Fingerprint($sha1Fingerprint) { $this->sha1Fingerprint = $sha1Fingerprint; @@ -2757,6 +2671,7 @@ public function getSha1Fingerprint() { return $this->sha1Fingerprint; } + } class Google_Service_SQLAdmin_SslCertDetail extends Google_Model @@ -2776,7 +2691,6 @@ public function getCertInfo() { return $this->certInfo; } - public function setCertPrivateKey($certPrivateKey) { $this->certPrivateKey = $certPrivateKey; @@ -2786,6 +2700,7 @@ public function getCertPrivateKey() { return $this->certPrivateKey; } + } class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model @@ -2804,7 +2719,6 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) { $this->operation = $operation; @@ -2814,6 +2728,7 @@ public function getOperation() { return $this->operation; } + } class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model @@ -2831,6 +2746,7 @@ public function getCommonName() { return $this->commonName; } + } class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model @@ -2852,7 +2768,6 @@ public function getClientCert() { return $this->clientCert; } - public function setKind($kind) { $this->kind = $kind; @@ -2862,7 +2777,6 @@ public function getKind() { return $this->kind; } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; @@ -2872,6 +2786,7 @@ public function getServerCaCert() { return $this->serverCaCert; } + } class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection @@ -2892,7 +2807,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2902,6 +2816,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_SQLAdmin_Tier extends Google_Collection @@ -2926,7 +2841,6 @@ public function getDiskQuota() { return $this->diskQuota; } - public function setRAM($rAM) { $this->rAM = $rAM; @@ -2936,7 +2850,6 @@ public function getRAM() { return $this->rAM; } - public function setKind($kind) { $this->kind = $kind; @@ -2946,7 +2859,6 @@ public function getKind() { return $this->kind; } - public function setRegion($region) { $this->region = $region; @@ -2956,7 +2868,6 @@ public function getRegion() { return $this->region; } - public function setTier($tier) { $this->tier = $tier; @@ -2966,6 +2877,7 @@ public function getTier() { return $this->tier; } + } class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection @@ -2986,7 +2898,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2996,4 +2907,5 @@ public function getKind() { return $this->kind; } + } From 1ba62de4082f0d837837f658e881800f6405559e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:04 -0700 Subject: [PATCH 0392/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 141 ++++++++------------------------- 1 file changed, 35 insertions(+), 106 deletions(-) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 304eb51e1..b7d4c10d3 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -1771,7 +1771,6 @@ public function getCustomMetaData() { return $this->customMetaData; } - public function setDescription($description) { $this->description = $description; @@ -1781,7 +1780,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -1791,7 +1789,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1801,7 +1798,6 @@ public function getKind() { return $this->kind; } - public function setLocale(Google_Service_Blogger_BlogLocale $locale) { $this->locale = $locale; @@ -1811,7 +1807,6 @@ public function getLocale() { return $this->locale; } - public function setName($name) { $this->name = $name; @@ -1821,7 +1816,6 @@ public function getName() { return $this->name; } - public function setPages(Google_Service_Blogger_BlogPages $pages) { $this->pages = $pages; @@ -1831,7 +1825,6 @@ public function getPages() { return $this->pages; } - public function setPosts(Google_Service_Blogger_BlogPosts $posts) { $this->posts = $posts; @@ -1841,7 +1834,6 @@ public function getPosts() { return $this->posts; } - public function setPublished($published) { $this->published = $published; @@ -1851,7 +1843,6 @@ public function getPublished() { return $this->published; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1861,7 +1852,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -1871,7 +1861,6 @@ public function getStatus() { return $this->status; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1881,7 +1870,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -1891,6 +1879,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_BlogList extends Google_Collection @@ -1913,7 +1902,6 @@ public function getBlogUserInfos() { return $this->blogUserInfos; } - public function setItems($items) { $this->items = $items; @@ -1923,7 +1911,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1933,6 +1920,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Blogger_BlogLocale extends Google_Model @@ -1952,7 +1940,6 @@ public function getCountry() { return $this->country; } - public function setLanguage($language) { $this->language = $language; @@ -1962,7 +1949,6 @@ public function getLanguage() { return $this->language; } - public function setVariant($variant) { $this->variant = $variant; @@ -1972,6 +1958,7 @@ public function getVariant() { return $this->variant; } + } class Google_Service_Blogger_BlogPages extends Google_Model @@ -1990,7 +1977,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2000,6 +1986,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Blogger_BlogPerUserInfo extends Google_Model @@ -2022,7 +2009,6 @@ public function getBlogId() { return $this->blogId; } - public function setHasAdminAccess($hasAdminAccess) { $this->hasAdminAccess = $hasAdminAccess; @@ -2032,7 +2018,6 @@ public function getHasAdminAccess() { return $this->hasAdminAccess; } - public function setKind($kind) { $this->kind = $kind; @@ -2042,7 +2027,6 @@ public function getKind() { return $this->kind; } - public function setPhotosAlbumKey($photosAlbumKey) { $this->photosAlbumKey = $photosAlbumKey; @@ -2052,7 +2036,6 @@ public function getPhotosAlbumKey() { return $this->photosAlbumKey; } - public function setRole($role) { $this->role = $role; @@ -2062,7 +2045,6 @@ public function getRole() { return $this->role; } - public function setUserId($userId) { $this->userId = $userId; @@ -2072,6 +2054,7 @@ public function getUserId() { return $this->userId; } + } class Google_Service_Blogger_BlogPosts extends Google_Collection @@ -2093,7 +2076,6 @@ public function getItems() { return $this->items; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2103,7 +2085,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2113,6 +2094,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Blogger_BlogUserInfo extends Google_Model @@ -2135,7 +2117,6 @@ public function getBlog() { return $this->blog; } - public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) { $this->blogUserInfo = $blogUserInfo; @@ -2145,7 +2126,6 @@ public function getBlogUserInfo() { return $this->blogUserInfo; } - public function setKind($kind) { $this->kind = $kind; @@ -2155,6 +2135,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Blogger_Comment extends Google_Model @@ -2186,7 +2167,6 @@ public function getAuthor() { return $this->author; } - public function setBlog(Google_Service_Blogger_CommentBlog $blog) { $this->blog = $blog; @@ -2196,7 +2176,6 @@ public function getBlog() { return $this->blog; } - public function setContent($content) { $this->content = $content; @@ -2206,7 +2185,6 @@ public function getContent() { return $this->content; } - public function setId($id) { $this->id = $id; @@ -2216,7 +2194,6 @@ public function getId() { return $this->id; } - public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) { $this->inReplyTo = $inReplyTo; @@ -2226,7 +2203,6 @@ public function getInReplyTo() { return $this->inReplyTo; } - public function setKind($kind) { $this->kind = $kind; @@ -2236,7 +2212,6 @@ public function getKind() { return $this->kind; } - public function setPost(Google_Service_Blogger_CommentPost $post) { $this->post = $post; @@ -2246,7 +2221,6 @@ public function getPost() { return $this->post; } - public function setPublished($published) { $this->published = $published; @@ -2256,7 +2230,6 @@ public function getPublished() { return $this->published; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2266,7 +2239,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -2276,7 +2248,6 @@ public function getStatus() { return $this->status; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2286,6 +2257,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Blogger_CommentAuthor extends Google_Model @@ -2307,7 +2279,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -2317,7 +2288,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Blogger_CommentAuthorImage $image) { $this->image = $image; @@ -2327,7 +2297,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -2337,6 +2306,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_CommentAuthorImage extends Google_Model @@ -2354,6 +2324,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_CommentBlog extends Google_Model @@ -2371,6 +2342,7 @@ public function getId() { return $this->id; } + } class Google_Service_Blogger_CommentInReplyTo extends Google_Model @@ -2388,6 +2360,7 @@ public function getId() { return $this->id; } + } class Google_Service_Blogger_CommentList extends Google_Collection @@ -2410,7 +2383,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2420,7 +2392,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2430,7 +2401,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -2440,6 +2410,7 @@ public function getPrevPageToken() { return $this->prevPageToken; } + } class Google_Service_Blogger_CommentPost extends Google_Model @@ -2457,6 +2428,7 @@ public function getId() { return $this->id; } + } class Google_Service_Blogger_Page extends Google_Model @@ -2487,7 +2459,6 @@ public function getAuthor() { return $this->author; } - public function setBlog(Google_Service_Blogger_PageBlog $blog) { $this->blog = $blog; @@ -2497,7 +2468,6 @@ public function getBlog() { return $this->blog; } - public function setContent($content) { $this->content = $content; @@ -2507,7 +2477,6 @@ public function getContent() { return $this->content; } - public function setEtag($etag) { $this->etag = $etag; @@ -2517,7 +2486,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2527,7 +2495,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2537,7 +2504,6 @@ public function getKind() { return $this->kind; } - public function setPublished($published) { $this->published = $published; @@ -2547,7 +2513,6 @@ public function getPublished() { return $this->published; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2557,7 +2522,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -2567,7 +2531,6 @@ public function getStatus() { return $this->status; } - public function setTitle($title) { $this->title = $title; @@ -2577,7 +2540,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2587,7 +2549,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -2597,6 +2558,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PageAuthor extends Google_Model @@ -2618,7 +2580,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -2628,7 +2589,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Blogger_PageAuthorImage $image) { $this->image = $image; @@ -2638,7 +2598,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -2648,6 +2607,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PageAuthorImage extends Google_Model @@ -2665,6 +2625,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PageBlog extends Google_Model @@ -2682,6 +2643,7 @@ public function getId() { return $this->id; } + } class Google_Service_Blogger_PageList extends Google_Collection @@ -2702,7 +2664,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2712,6 +2673,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Blogger_Pageviews extends Google_Collection @@ -2733,7 +2695,6 @@ public function getBlogId() { return $this->blogId; } - public function setCounts($counts) { $this->counts = $counts; @@ -2743,7 +2704,6 @@ public function getCounts() { return $this->counts; } - public function setKind($kind) { $this->kind = $kind; @@ -2753,6 +2713,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Blogger_PageviewsCounts extends Google_Model @@ -2771,7 +2732,6 @@ public function getCount() { return $this->count; } - public function setTimeRange($timeRange) { $this->timeRange = $timeRange; @@ -2781,6 +2741,7 @@ public function getTimeRange() { return $this->timeRange; } + } class Google_Service_Blogger_Post extends Google_Collection @@ -2822,7 +2783,6 @@ public function getAuthor() { return $this->author; } - public function setBlog(Google_Service_Blogger_PostBlog $blog) { $this->blog = $blog; @@ -2832,7 +2792,6 @@ public function getBlog() { return $this->blog; } - public function setContent($content) { $this->content = $content; @@ -2842,7 +2801,6 @@ public function getContent() { return $this->content; } - public function setCustomMetaData($customMetaData) { $this->customMetaData = $customMetaData; @@ -2852,7 +2810,6 @@ public function getCustomMetaData() { return $this->customMetaData; } - public function setEtag($etag) { $this->etag = $etag; @@ -2862,7 +2819,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2872,7 +2828,6 @@ public function getId() { return $this->id; } - public function setImages($images) { $this->images = $images; @@ -2882,7 +2837,6 @@ public function getImages() { return $this->images; } - public function setKind($kind) { $this->kind = $kind; @@ -2892,7 +2846,6 @@ public function getKind() { return $this->kind; } - public function setLabels($labels) { $this->labels = $labels; @@ -2902,7 +2855,6 @@ public function getLabels() { return $this->labels; } - public function setLocation(Google_Service_Blogger_PostLocation $location) { $this->location = $location; @@ -2912,7 +2864,6 @@ public function getLocation() { return $this->location; } - public function setPublished($published) { $this->published = $published; @@ -2922,7 +2873,6 @@ public function getPublished() { return $this->published; } - public function setReaderComments($readerComments) { $this->readerComments = $readerComments; @@ -2932,7 +2882,6 @@ public function getReaderComments() { return $this->readerComments; } - public function setReplies(Google_Service_Blogger_PostReplies $replies) { $this->replies = $replies; @@ -2942,7 +2891,6 @@ public function getReplies() { return $this->replies; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2952,7 +2900,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -2962,7 +2909,6 @@ public function getStatus() { return $this->status; } - public function setTitle($title) { $this->title = $title; @@ -2972,7 +2918,6 @@ public function getTitle() { return $this->title; } - public function setTitleLink($titleLink) { $this->titleLink = $titleLink; @@ -2982,7 +2927,6 @@ public function getTitleLink() { return $this->titleLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2992,7 +2936,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -3002,6 +2945,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PostAuthor extends Google_Model @@ -3023,7 +2967,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3033,7 +2976,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Blogger_PostAuthorImage $image) { $this->image = $image; @@ -3043,7 +2985,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -3053,6 +2994,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PostAuthorImage extends Google_Model @@ -3070,6 +3012,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PostBlog extends Google_Model @@ -3087,6 +3030,7 @@ public function getId() { return $this->id; } + } class Google_Service_Blogger_PostImages extends Google_Model @@ -3104,6 +3048,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_PostList extends Google_Collection @@ -3125,7 +3070,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3135,7 +3079,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3145,6 +3088,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Blogger_PostLocation extends Google_Model @@ -3165,7 +3109,6 @@ public function getLat() { return $this->lat; } - public function setLng($lng) { $this->lng = $lng; @@ -3175,7 +3118,6 @@ public function getLng() { return $this->lng; } - public function setName($name) { $this->name = $name; @@ -3185,7 +3127,6 @@ public function getName() { return $this->name; } - public function setSpan($span) { $this->span = $span; @@ -3195,6 +3136,7 @@ public function getSpan() { return $this->span; } + } class Google_Service_Blogger_PostPerUserInfo extends Google_Model @@ -3216,7 +3158,6 @@ public function getBlogId() { return $this->blogId; } - public function setHasEditAccess($hasEditAccess) { $this->hasEditAccess = $hasEditAccess; @@ -3226,7 +3167,6 @@ public function getHasEditAccess() { return $this->hasEditAccess; } - public function setKind($kind) { $this->kind = $kind; @@ -3236,7 +3176,6 @@ public function getKind() { return $this->kind; } - public function setPostId($postId) { $this->postId = $postId; @@ -3246,7 +3185,6 @@ public function getPostId() { return $this->postId; } - public function setUserId($userId) { $this->userId = $userId; @@ -3256,6 +3194,7 @@ public function getUserId() { return $this->userId; } + } class Google_Service_Blogger_PostReplies extends Google_Collection @@ -3277,7 +3216,6 @@ public function getItems() { return $this->items; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3287,7 +3225,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -3297,6 +3234,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Blogger_PostUserInfo extends Google_Model @@ -3319,7 +3257,6 @@ public function getKind() { return $this->kind; } - public function setPost(Google_Service_Blogger_Post $post) { $this->post = $post; @@ -3329,7 +3266,6 @@ public function getPost() { return $this->post; } - public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) { $this->postUserInfo = $postUserInfo; @@ -3339,6 +3275,7 @@ public function getPostUserInfo() { return $this->postUserInfo; } + } class Google_Service_Blogger_PostUserInfosList extends Google_Collection @@ -3360,7 +3297,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3370,7 +3306,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3380,6 +3315,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Blogger_User extends Google_Model @@ -3407,7 +3343,6 @@ public function getAbout() { return $this->about; } - public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) { $this->blogs = $blogs; @@ -3417,7 +3352,6 @@ public function getBlogs() { return $this->blogs; } - public function setCreated($created) { $this->created = $created; @@ -3427,7 +3361,6 @@ public function getCreated() { return $this->created; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3437,7 +3370,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3447,7 +3379,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3457,7 +3388,6 @@ public function getKind() { return $this->kind; } - public function setLocale(Google_Service_Blogger_UserLocale $locale) { $this->locale = $locale; @@ -3467,7 +3397,6 @@ public function getLocale() { return $this->locale; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3477,7 +3406,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUrl($url) { $this->url = $url; @@ -3487,6 +3415,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Blogger_UserBlogs extends Google_Model @@ -3504,6 +3433,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Blogger_UserLocale extends Google_Model @@ -3523,7 +3453,6 @@ public function getCountry() { return $this->country; } - public function setLanguage($language) { $this->language = $language; @@ -3533,7 +3462,6 @@ public function getLanguage() { return $this->language; } - public function setVariant($variant) { $this->variant = $variant; @@ -3543,4 +3471,5 @@ public function getVariant() { return $this->variant; } + } From ade96c8814b5c8cd19c1a852987ee916ac385a06 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:04 -0700 Subject: [PATCH 0393/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 38 ++++++++------------------------------ 1 file changed, 8 insertions(+), 30 deletions(-) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index cd9a35ddd..79e0b8cb2 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -516,7 +516,6 @@ public function getAdditions() { return $this->additions; } - public function setDeletions($deletions) { $this->deletions = $deletions; @@ -526,7 +525,6 @@ public function getDeletions() { return $this->deletions; } - public function setId($id) { $this->id = $id; @@ -536,7 +534,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -546,7 +543,6 @@ public function getKind() { return $this->kind; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -556,7 +552,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -566,6 +561,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Dns_ChangesListResponse extends Google_Collection @@ -587,7 +583,6 @@ public function getChanges() { return $this->changes; } - public function setKind($kind) { $this->kind = $kind; @@ -597,7 +592,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -607,6 +601,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Dns_ManagedZone extends Google_Collection @@ -631,7 +626,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setDescription($description) { $this->description = $description; @@ -641,7 +635,6 @@ public function getDescription() { return $this->description; } - public function setDnsName($dnsName) { $this->dnsName = $dnsName; @@ -651,7 +644,6 @@ public function getDnsName() { return $this->dnsName; } - public function setId($id) { $this->id = $id; @@ -661,7 +653,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -671,7 +662,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -681,7 +671,6 @@ public function getName() { return $this->name; } - public function setNameServers($nameServers) { $this->nameServers = $nameServers; @@ -691,6 +680,7 @@ public function getNameServers() { return $this->nameServers; } + } class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection @@ -712,7 +702,6 @@ public function getKind() { return $this->kind; } - public function setManagedZones($managedZones) { $this->managedZones = $managedZones; @@ -722,7 +711,6 @@ public function getManagedZones() { return $this->managedZones; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -732,6 +720,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Dns_Project extends Google_Model @@ -753,7 +742,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -763,7 +751,6 @@ public function getKind() { return $this->kind; } - public function setNumber($number) { $this->number = $number; @@ -773,7 +760,6 @@ public function getNumber() { return $this->number; } - public function setQuota(Google_Service_Dns_Quota $quota) { $this->quota = $quota; @@ -783,6 +769,7 @@ public function getQuota() { return $this->quota; } + } class Google_Service_Dns_Quota extends Google_Model @@ -806,7 +793,6 @@ public function getKind() { return $this->kind; } - public function setManagedZones($managedZones) { $this->managedZones = $managedZones; @@ -816,7 +802,6 @@ public function getManagedZones() { return $this->managedZones; } - public function setResourceRecordsPerRrset($resourceRecordsPerRrset) { $this->resourceRecordsPerRrset = $resourceRecordsPerRrset; @@ -826,7 +811,6 @@ public function getResourceRecordsPerRrset() { return $this->resourceRecordsPerRrset; } - public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange) { $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange; @@ -836,7 +820,6 @@ public function getRrsetAdditionsPerChange() { return $this->rrsetAdditionsPerChange; } - public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange) { $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange; @@ -846,7 +829,6 @@ public function getRrsetDeletionsPerChange() { return $this->rrsetDeletionsPerChange; } - public function setRrsetsPerManagedZone($rrsetsPerManagedZone) { $this->rrsetsPerManagedZone = $rrsetsPerManagedZone; @@ -856,7 +838,6 @@ public function getRrsetsPerManagedZone() { return $this->rrsetsPerManagedZone; } - public function setTotalRrdataSizePerChange($totalRrdataSizePerChange) { $this->totalRrdataSizePerChange = $totalRrdataSizePerChange; @@ -866,6 +847,7 @@ public function getTotalRrdataSizePerChange() { return $this->totalRrdataSizePerChange; } + } class Google_Service_Dns_ResourceRecordSet extends Google_Collection @@ -888,7 +870,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -898,7 +879,6 @@ public function getName() { return $this->name; } - public function setRrdatas($rrdatas) { $this->rrdatas = $rrdatas; @@ -908,7 +888,6 @@ public function getRrdatas() { return $this->rrdatas; } - public function setTtl($ttl) { $this->ttl = $ttl; @@ -918,7 +897,6 @@ public function getTtl() { return $this->ttl; } - public function setType($type) { $this->type = $type; @@ -928,6 +906,7 @@ public function getType() { return $this->type; } + } class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection @@ -949,7 +928,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -959,7 +937,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setRrsets($rrsets) { $this->rrsets = $rrsets; @@ -969,4 +946,5 @@ public function getRrsets() { return $this->rrsets; } + } From 80f5ff143d0fa04c6887506191f4908ee17046ef Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:05 -0700 Subject: [PATCH 0394/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 197 +++++++++----------------------- 1 file changed, 54 insertions(+), 143 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index e7523dccb..538d451de 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1323,6 +1323,7 @@ public function getExists() { return $this->exists; } + } class Google_Service_Genomics_Call extends Google_Collection @@ -1346,7 +1347,6 @@ public function getCallSetId() { return $this->callSetId; } - public function setCallSetName($callSetName) { $this->callSetName = $callSetName; @@ -1356,7 +1356,6 @@ public function getCallSetName() { return $this->callSetName; } - public function setGenotype($genotype) { $this->genotype = $genotype; @@ -1366,7 +1365,6 @@ public function getGenotype() { return $this->genotype; } - public function setGenotypeLikelihood($genotypeLikelihood) { $this->genotypeLikelihood = $genotypeLikelihood; @@ -1376,7 +1374,6 @@ public function getGenotypeLikelihood() { return $this->genotypeLikelihood; } - public function setInfo($info) { $this->info = $info; @@ -1386,7 +1383,6 @@ public function getInfo() { return $this->info; } - public function setPhaseset($phaseset) { $this->phaseset = $phaseset; @@ -1396,12 +1392,15 @@ public function getPhaseset() { return $this->phaseset; } + } class Google_Service_Genomics_CallInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Genomics_CallSet extends Google_Collection @@ -1425,7 +1424,6 @@ public function getCreated() { return $this->created; } - public function setId($id) { $this->id = $id; @@ -1435,7 +1433,6 @@ public function getId() { return $this->id; } - public function setInfo($info) { $this->info = $info; @@ -1445,7 +1442,6 @@ public function getInfo() { return $this->info; } - public function setName($name) { $this->name = $name; @@ -1455,7 +1451,6 @@ public function getName() { return $this->name; } - public function setSampleId($sampleId) { $this->sampleId = $sampleId; @@ -1465,7 +1460,6 @@ public function getSampleId() { return $this->sampleId; } - public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; @@ -1475,12 +1469,15 @@ public function getVariantSetIds() { return $this->variantSetIds; } + } class Google_Service_Genomics_CallSetInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Genomics_CoverageBucket extends Google_Model @@ -1500,7 +1497,6 @@ public function getMeanCoverage() { return $this->meanCoverage; } - public function setRange(Google_Service_Genomics_GenomicRange $range) { $this->range = $range; @@ -1510,6 +1506,7 @@ public function getRange() { return $this->range; } + } class Google_Service_Genomics_Dataset extends Google_Model @@ -1530,7 +1527,6 @@ public function getId() { return $this->id; } - public function setIsPublic($isPublic) { $this->isPublic = $isPublic; @@ -1540,7 +1536,6 @@ public function getIsPublic() { return $this->isPublic; } - public function setName($name) { $this->name = $name; @@ -1550,7 +1545,6 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1560,6 +1554,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection @@ -1583,7 +1578,6 @@ public function getAlign() { return $this->align; } - public function setCallVariants($callVariants) { $this->callVariants = $callVariants; @@ -1593,7 +1587,6 @@ public function getCallVariants() { return $this->callVariants; } - public function setGcsOutputPath($gcsOutputPath) { $this->gcsOutputPath = $gcsOutputPath; @@ -1603,7 +1596,6 @@ public function getGcsOutputPath() { return $this->gcsOutputPath; } - public function setPairedSourceUris($pairedSourceUris) { $this->pairedSourceUris = $pairedSourceUris; @@ -1613,7 +1605,6 @@ public function getPairedSourceUris() { return $this->pairedSourceUris; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1623,7 +1614,6 @@ public function getProjectId() { return $this->projectId; } - public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; @@ -1633,6 +1623,7 @@ public function getSourceUris() { return $this->sourceUris; } + } class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model @@ -1650,6 +1641,7 @@ public function getJobId() { return $this->jobId; } + } class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection @@ -1671,7 +1663,6 @@ public function getExportUri() { return $this->exportUri; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1681,7 +1672,6 @@ public function getProjectId() { return $this->projectId; } - public function setReadsetIds($readsetIds) { $this->readsetIds = $readsetIds; @@ -1691,7 +1681,6 @@ public function getReadsetIds() { return $this->readsetIds; } - public function setReferenceNames($referenceNames) { $this->referenceNames = $referenceNames; @@ -1701,6 +1690,7 @@ public function getReferenceNames() { return $this->referenceNames; } + } class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model @@ -1718,6 +1708,7 @@ public function getJobId() { return $this->jobId; } + } class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection @@ -1741,7 +1732,6 @@ public function getBigqueryDataset() { return $this->bigqueryDataset; } - public function setBigqueryTable($bigqueryTable) { $this->bigqueryTable = $bigqueryTable; @@ -1751,7 +1741,6 @@ public function getBigqueryTable() { return $this->bigqueryTable; } - public function setCallSetIds($callSetIds) { $this->callSetIds = $callSetIds; @@ -1761,7 +1750,6 @@ public function getCallSetIds() { return $this->callSetIds; } - public function setFormat($format) { $this->format = $format; @@ -1771,7 +1759,6 @@ public function getFormat() { return $this->format; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1781,7 +1768,6 @@ public function getProjectId() { return $this->projectId; } - public function setVariantSetId($variantSetId) { $this->variantSetId = $variantSetId; @@ -1791,6 +1777,7 @@ public function getVariantSetId() { return $this->variantSetId; } + } class Google_Service_Genomics_ExportVariantsResponse extends Google_Model @@ -1808,6 +1795,7 @@ public function getJobId() { return $this->jobId; } + } class Google_Service_Genomics_GenomicRange extends Google_Model @@ -1827,7 +1815,6 @@ public function getSequenceEnd() { return $this->sequenceEnd; } - public function setSequenceName($sequenceName) { $this->sequenceName = $sequenceName; @@ -1837,7 +1824,6 @@ public function getSequenceName() { return $this->sequenceName; } - public function setSequenceStart($sequenceStart) { $this->sequenceStart = $sequenceStart; @@ -1847,6 +1833,7 @@ public function getSequenceStart() { return $this->sequenceStart; } + } class Google_Service_Genomics_Header extends Google_Model @@ -1865,7 +1852,6 @@ public function getSortingOrder() { return $this->sortingOrder; } - public function setVersion($version) { $this->version = $version; @@ -1875,6 +1861,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Genomics_HeaderSection extends Google_Collection @@ -1903,7 +1890,6 @@ public function getComments() { return $this->comments; } - public function setFileUri($fileUri) { $this->fileUri = $fileUri; @@ -1913,7 +1899,6 @@ public function getFileUri() { return $this->fileUri; } - public function setFilename($filename) { $this->filename = $filename; @@ -1923,7 +1908,6 @@ public function getFilename() { return $this->filename; } - public function setHeaders($headers) { $this->headers = $headers; @@ -1933,7 +1917,6 @@ public function getHeaders() { return $this->headers; } - public function setPrograms($programs) { $this->programs = $programs; @@ -1943,7 +1926,6 @@ public function getPrograms() { return $this->programs; } - public function setReadGroups($readGroups) { $this->readGroups = $readGroups; @@ -1953,7 +1935,6 @@ public function getReadGroups() { return $this->readGroups; } - public function setRefSequences($refSequences) { $this->refSequences = $refSequences; @@ -1963,6 +1944,7 @@ public function getRefSequences() { return $this->refSequences; } + } class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection @@ -1982,7 +1964,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; @@ -1992,6 +1973,7 @@ public function getSourceUris() { return $this->sourceUris; } + } class Google_Service_Genomics_ImportReadsetsResponse extends Google_Model @@ -2009,6 +1991,7 @@ public function getJobId() { return $this->jobId; } + } class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection @@ -2029,7 +2012,6 @@ public function getFormat() { return $this->format; } - public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; @@ -2039,7 +2021,6 @@ public function getSourceUris() { return $this->sourceUris; } - public function setVariantSetId($variantSetId) { $this->variantSetId = $variantSetId; @@ -2049,6 +2030,7 @@ public function getVariantSetId() { return $this->variantSetId; } + } class Google_Service_Genomics_ImportVariantsResponse extends Google_Model @@ -2066,6 +2048,7 @@ public function getJobId() { return $this->jobId; } + } class Google_Service_Genomics_Job extends Google_Collection @@ -2093,7 +2076,6 @@ public function getCreated() { return $this->created; } - public function setDescription($description) { $this->description = $description; @@ -2103,7 +2085,6 @@ public function getDescription() { return $this->description; } - public function setErrors($errors) { $this->errors = $errors; @@ -2113,7 +2094,6 @@ public function getErrors() { return $this->errors; } - public function setId($id) { $this->id = $id; @@ -2123,7 +2103,6 @@ public function getId() { return $this->id; } - public function setImportedIds($importedIds) { $this->importedIds = $importedIds; @@ -2133,7 +2112,6 @@ public function getImportedIds() { return $this->importedIds; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -2143,7 +2121,6 @@ public function getProjectId() { return $this->projectId; } - public function setRequest(Google_Service_Genomics_JobRequest $request) { $this->request = $request; @@ -2153,7 +2130,6 @@ public function getRequest() { return $this->request; } - public function setStatus($status) { $this->status = $status; @@ -2163,7 +2139,6 @@ public function getStatus() { return $this->status; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -2173,6 +2148,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_Genomics_JobRequest extends Google_Collection @@ -2193,7 +2169,6 @@ public function getDestination() { return $this->destination; } - public function setSource($source) { $this->source = $source; @@ -2203,7 +2178,6 @@ public function getSource() { return $this->source; } - public function setType($type) { $this->type = $type; @@ -2213,6 +2187,7 @@ public function getType() { return $this->type; } + } class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection @@ -2234,7 +2209,6 @@ public function getBucketWidth() { return $this->bucketWidth; } - public function setCoverageBuckets($coverageBuckets) { $this->coverageBuckets = $coverageBuckets; @@ -2244,7 +2218,6 @@ public function getCoverageBuckets() { return $this->coverageBuckets; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2254,6 +2227,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection @@ -2274,7 +2248,6 @@ public function getDatasets() { return $this->datasets; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2284,6 +2257,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection @@ -2303,6 +2277,7 @@ public function getVariants() { return $this->variants; } + } class Google_Service_Genomics_Metadata extends Google_Model @@ -2326,7 +2301,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -2336,7 +2310,6 @@ public function getId() { return $this->id; } - public function setInfo($info) { $this->info = $info; @@ -2346,7 +2319,6 @@ public function getInfo() { return $this->info; } - public function setKey($key) { $this->key = $key; @@ -2356,7 +2328,6 @@ public function getKey() { return $this->key; } - public function setNumber($number) { $this->number = $number; @@ -2366,7 +2337,6 @@ public function getNumber() { return $this->number; } - public function setType($type) { $this->type = $type; @@ -2376,7 +2346,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -2386,12 +2355,15 @@ public function getValue() { return $this->value; } + } class Google_Service_Genomics_MetadataInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Genomics_Program extends Google_Model @@ -2413,7 +2385,6 @@ public function getCommandLine() { return $this->commandLine; } - public function setId($id) { $this->id = $id; @@ -2423,7 +2394,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -2433,7 +2403,6 @@ public function getName() { return $this->name; } - public function setPrevProgramId($prevProgramId) { $this->prevProgramId = $prevProgramId; @@ -2443,7 +2412,6 @@ public function getPrevProgramId() { return $this->prevProgramId; } - public function setVersion($version) { $this->version = $version; @@ -2453,6 +2421,7 @@ public function getVersion() { return $this->version; } + } class Google_Service_Genomics_Read extends Google_Model @@ -2484,7 +2453,6 @@ public function getAlignedBases() { return $this->alignedBases; } - public function setBaseQuality($baseQuality) { $this->baseQuality = $baseQuality; @@ -2494,7 +2462,6 @@ public function getBaseQuality() { return $this->baseQuality; } - public function setCigar($cigar) { $this->cigar = $cigar; @@ -2504,7 +2471,6 @@ public function getCigar() { return $this->cigar; } - public function setFlags($flags) { $this->flags = $flags; @@ -2514,7 +2480,6 @@ public function getFlags() { return $this->flags; } - public function setId($id) { $this->id = $id; @@ -2524,7 +2489,6 @@ public function getId() { return $this->id; } - public function setMappingQuality($mappingQuality) { $this->mappingQuality = $mappingQuality; @@ -2534,7 +2498,6 @@ public function getMappingQuality() { return $this->mappingQuality; } - public function setMatePosition($matePosition) { $this->matePosition = $matePosition; @@ -2544,7 +2507,6 @@ public function getMatePosition() { return $this->matePosition; } - public function setMateReferenceSequenceName($mateReferenceSequenceName) { $this->mateReferenceSequenceName = $mateReferenceSequenceName; @@ -2554,7 +2516,6 @@ public function getMateReferenceSequenceName() { return $this->mateReferenceSequenceName; } - public function setName($name) { $this->name = $name; @@ -2564,7 +2525,6 @@ public function getName() { return $this->name; } - public function setOriginalBases($originalBases) { $this->originalBases = $originalBases; @@ -2574,7 +2534,6 @@ public function getOriginalBases() { return $this->originalBases; } - public function setPosition($position) { $this->position = $position; @@ -2584,7 +2543,6 @@ public function getPosition() { return $this->position; } - public function setReadsetId($readsetId) { $this->readsetId = $readsetId; @@ -2594,7 +2552,6 @@ public function getReadsetId() { return $this->readsetId; } - public function setReferenceSequenceName($referenceSequenceName) { $this->referenceSequenceName = $referenceSequenceName; @@ -2604,7 +2561,6 @@ public function getReferenceSequenceName() { return $this->referenceSequenceName; } - public function setTags($tags) { $this->tags = $tags; @@ -2614,7 +2570,6 @@ public function getTags() { return $this->tags; } - public function setTemplateLength($templateLength) { $this->templateLength = $templateLength; @@ -2624,6 +2579,7 @@ public function getTemplateLength() { return $this->templateLength; } + } class Google_Service_Genomics_ReadGroup extends Google_Model @@ -2652,7 +2608,6 @@ public function getDate() { return $this->date; } - public function setDescription($description) { $this->description = $description; @@ -2662,7 +2617,6 @@ public function getDescription() { return $this->description; } - public function setFlowOrder($flowOrder) { $this->flowOrder = $flowOrder; @@ -2672,7 +2626,6 @@ public function getFlowOrder() { return $this->flowOrder; } - public function setId($id) { $this->id = $id; @@ -2682,7 +2635,6 @@ public function getId() { return $this->id; } - public function setKeySequence($keySequence) { $this->keySequence = $keySequence; @@ -2692,7 +2644,6 @@ public function getKeySequence() { return $this->keySequence; } - public function setLibrary($library) { $this->library = $library; @@ -2702,7 +2653,6 @@ public function getLibrary() { return $this->library; } - public function setPlatformUnit($platformUnit) { $this->platformUnit = $platformUnit; @@ -2712,7 +2662,6 @@ public function getPlatformUnit() { return $this->platformUnit; } - public function setPredictedInsertSize($predictedInsertSize) { $this->predictedInsertSize = $predictedInsertSize; @@ -2722,7 +2671,6 @@ public function getPredictedInsertSize() { return $this->predictedInsertSize; } - public function setProcessingProgram($processingProgram) { $this->processingProgram = $processingProgram; @@ -2732,7 +2680,6 @@ public function getProcessingProgram() { return $this->processingProgram; } - public function setSample($sample) { $this->sample = $sample; @@ -2742,7 +2689,6 @@ public function getSample() { return $this->sample; } - public function setSequencingCenterName($sequencingCenterName) { $this->sequencingCenterName = $sequencingCenterName; @@ -2752,7 +2698,6 @@ public function getSequencingCenterName() { return $this->sequencingCenterName; } - public function setSequencingTechnology($sequencingTechnology) { $this->sequencingTechnology = $sequencingTechnology; @@ -2762,12 +2707,15 @@ public function getSequencingTechnology() { return $this->sequencingTechnology; } + } class Google_Service_Genomics_ReadTags extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Genomics_Readset extends Google_Collection @@ -2790,7 +2738,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setFileData($fileData) { $this->fileData = $fileData; @@ -2800,7 +2747,6 @@ public function getFileData() { return $this->fileData; } - public function setId($id) { $this->id = $id; @@ -2810,7 +2756,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -2820,6 +2765,7 @@ public function getName() { return $this->name; } + } class Google_Service_Genomics_ReferenceBound extends Google_Model @@ -2838,7 +2784,6 @@ public function getReferenceName() { return $this->referenceName; } - public function setUpperBound($upperBound) { $this->upperBound = $upperBound; @@ -2848,6 +2793,7 @@ public function getUpperBound() { return $this->upperBound; } + } class Google_Service_Genomics_ReferenceSequence extends Google_Model @@ -2870,7 +2816,6 @@ public function getAssemblyId() { return $this->assemblyId; } - public function setLength($length) { $this->length = $length; @@ -2880,7 +2825,6 @@ public function getLength() { return $this->length; } - public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; @@ -2890,7 +2834,6 @@ public function getMd5Checksum() { return $this->md5Checksum; } - public function setName($name) { $this->name = $name; @@ -2900,7 +2843,6 @@ public function getName() { return $this->name; } - public function setSpecies($species) { $this->species = $species; @@ -2910,7 +2852,6 @@ public function getSpecies() { return $this->species; } - public function setUri($uri) { $this->uri = $uri; @@ -2920,6 +2861,7 @@ public function getUri() { return $this->uri; } + } class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection @@ -2941,7 +2883,6 @@ public function getName() { return $this->name; } - public function setPageSize($pageSize) { $this->pageSize = $pageSize; @@ -2951,7 +2892,6 @@ public function getPageSize() { return $this->pageSize; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -2961,7 +2901,6 @@ public function getPageToken() { return $this->pageToken; } - public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; @@ -2971,6 +2910,7 @@ public function getVariantSetIds() { return $this->variantSetIds; } + } class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection @@ -2991,7 +2931,6 @@ public function getCallSets() { return $this->callSets; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3001,6 +2940,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Genomics_SearchJobsRequest extends Google_Collection @@ -3024,7 +2964,6 @@ public function getCreatedAfter() { return $this->createdAfter; } - public function setCreatedBefore($createdBefore) { $this->createdBefore = $createdBefore; @@ -3034,7 +2973,6 @@ public function getCreatedBefore() { return $this->createdBefore; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -3044,7 +2982,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3054,7 +2991,6 @@ public function getPageToken() { return $this->pageToken; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -3064,7 +3000,6 @@ public function getProjectId() { return $this->projectId; } - public function setStatus($status) { $this->status = $status; @@ -3074,6 +3009,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Genomics_SearchJobsResponse extends Google_Collection @@ -3094,7 +3030,6 @@ public function getJobs() { return $this->jobs; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3104,6 +3039,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Genomics_SearchReadsRequest extends Google_Collection @@ -3127,7 +3063,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3137,7 +3072,6 @@ public function getPageToken() { return $this->pageToken; } - public function setReadsetIds($readsetIds) { $this->readsetIds = $readsetIds; @@ -3147,7 +3081,6 @@ public function getReadsetIds() { return $this->readsetIds; } - public function setSequenceEnd($sequenceEnd) { $this->sequenceEnd = $sequenceEnd; @@ -3157,7 +3090,6 @@ public function getSequenceEnd() { return $this->sequenceEnd; } - public function setSequenceName($sequenceName) { $this->sequenceName = $sequenceName; @@ -3167,7 +3099,6 @@ public function getSequenceName() { return $this->sequenceName; } - public function setSequenceStart($sequenceStart) { $this->sequenceStart = $sequenceStart; @@ -3177,6 +3108,7 @@ public function getSequenceStart() { return $this->sequenceStart; } + } class Google_Service_Genomics_SearchReadsResponse extends Google_Collection @@ -3197,7 +3129,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setReads($reads) { $this->reads = $reads; @@ -3207,6 +3138,7 @@ public function getReads() { return $this->reads; } + } class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection @@ -3228,7 +3160,6 @@ public function getDatasetIds() { return $this->datasetIds; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -3238,7 +3169,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setName($name) { $this->name = $name; @@ -3248,7 +3178,6 @@ public function getName() { return $this->name; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3258,6 +3187,7 @@ public function getPageToken() { return $this->pageToken; } + } class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection @@ -3278,7 +3208,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setReadsets($readsets) { $this->readsets = $readsets; @@ -3288,6 +3217,7 @@ public function getReadsets() { return $this->readsets; } + } class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection @@ -3308,7 +3238,6 @@ public function getDatasetIds() { return $this->datasetIds; } - public function setPageSize($pageSize) { $this->pageSize = $pageSize; @@ -3318,7 +3247,6 @@ public function getPageSize() { return $this->pageSize; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3328,6 +3256,7 @@ public function getPageToken() { return $this->pageToken; } + } class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection @@ -3348,7 +3277,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setVariantSets($variantSets) { $this->variantSets = $variantSets; @@ -3358,6 +3286,7 @@ public function getVariantSets() { return $this->variantSets; } + } class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection @@ -3384,7 +3313,6 @@ public function getCallSetIds() { return $this->callSetIds; } - public function setEnd($end) { $this->end = $end; @@ -3394,7 +3322,6 @@ public function getEnd() { return $this->end; } - public function setMaxCalls($maxCalls) { $this->maxCalls = $maxCalls; @@ -3404,7 +3331,6 @@ public function getMaxCalls() { return $this->maxCalls; } - public function setPageSize($pageSize) { $this->pageSize = $pageSize; @@ -3414,7 +3340,6 @@ public function getPageSize() { return $this->pageSize; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3424,7 +3349,6 @@ public function getPageToken() { return $this->pageToken; } - public function setReferenceName($referenceName) { $this->referenceName = $referenceName; @@ -3434,7 +3358,6 @@ public function getReferenceName() { return $this->referenceName; } - public function setStart($start) { $this->start = $start; @@ -3444,7 +3367,6 @@ public function getStart() { return $this->start; } - public function setVariantName($variantName) { $this->variantName = $variantName; @@ -3454,7 +3376,6 @@ public function getVariantName() { return $this->variantName; } - public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; @@ -3464,6 +3385,7 @@ public function getVariantSetIds() { return $this->variantSetIds; } + } class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection @@ -3484,7 +3406,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setVariants($variants) { $this->variants = $variants; @@ -3494,6 +3415,7 @@ public function getVariants() { return $this->variants; } + } class Google_Service_Genomics_Variant extends Google_Collection @@ -3525,7 +3447,6 @@ public function getAlternateBases() { return $this->alternateBases; } - public function setCalls($calls) { $this->calls = $calls; @@ -3535,7 +3456,6 @@ public function getCalls() { return $this->calls; } - public function setCreated($created) { $this->created = $created; @@ -3545,7 +3465,6 @@ public function getCreated() { return $this->created; } - public function setEnd($end) { $this->end = $end; @@ -3555,7 +3474,6 @@ public function getEnd() { return $this->end; } - public function setFilter($filter) { $this->filter = $filter; @@ -3565,7 +3483,6 @@ public function getFilter() { return $this->filter; } - public function setId($id) { $this->id = $id; @@ -3575,7 +3492,6 @@ public function getId() { return $this->id; } - public function setInfo($info) { $this->info = $info; @@ -3585,7 +3501,6 @@ public function getInfo() { return $this->info; } - public function setNames($names) { $this->names = $names; @@ -3595,7 +3510,6 @@ public function getNames() { return $this->names; } - public function setQuality($quality) { $this->quality = $quality; @@ -3605,7 +3519,6 @@ public function getQuality() { return $this->quality; } - public function setReferenceBases($referenceBases) { $this->referenceBases = $referenceBases; @@ -3615,7 +3528,6 @@ public function getReferenceBases() { return $this->referenceBases; } - public function setReferenceName($referenceName) { $this->referenceName = $referenceName; @@ -3625,7 +3537,6 @@ public function getReferenceName() { return $this->referenceName; } - public function setStart($start) { $this->start = $start; @@ -3635,7 +3546,6 @@ public function getStart() { return $this->start; } - public function setVariantSetId($variantSetId) { $this->variantSetId = $variantSetId; @@ -3645,12 +3555,15 @@ public function getVariantSetId() { return $this->variantSetId; } + } class Google_Service_Genomics_VariantInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Genomics_VariantSet extends Google_Collection @@ -3674,7 +3587,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setId($id) { $this->id = $id; @@ -3684,7 +3596,6 @@ public function getId() { return $this->id; } - public function setMetadata($metadata) { $this->metadata = $metadata; @@ -3694,7 +3605,6 @@ public function getMetadata() { return $this->metadata; } - public function setReferenceBounds($referenceBounds) { $this->referenceBounds = $referenceBounds; @@ -3704,4 +3614,5 @@ public function getReferenceBounds() { return $this->referenceBounds; } + } From 0a6a3b2adb298ce7f50b10626446b7470605fe35 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:06 -0700 Subject: [PATCH 0395/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 97 +++++++++++-------------- 1 file changed, 43 insertions(+), 54 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 462f43c36..5ae8e02f4 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -2287,7 +2287,6 @@ public function getBinary() { return $this->binary; } - public function setVersionCode($versionCode) { $this->versionCode = $versionCode; @@ -2297,6 +2296,7 @@ public function getVersionCode() { return $this->versionCode; } + } class Google_Service_AndroidPublisher_ApkBinary extends Google_Model @@ -2314,6 +2314,7 @@ public function getSha1() { return $this->sha1; } + } class Google_Service_AndroidPublisher_ApkListing extends Google_Model @@ -2332,7 +2333,6 @@ public function getLanguage() { return $this->language; } - public function setRecentChanges($recentChanges) { $this->recentChanges = $recentChanges; @@ -2342,6 +2342,7 @@ public function getRecentChanges() { return $this->recentChanges; } + } class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection @@ -2362,7 +2363,6 @@ public function getKind() { return $this->kind; } - public function setListings($listings) { $this->listings = $listings; @@ -2372,6 +2372,7 @@ public function getListings() { return $this->listings; } + } class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection @@ -2392,7 +2393,6 @@ public function getApks() { return $this->apks; } - public function setKind($kind) { $this->kind = $kind; @@ -2402,6 +2402,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AndroidPublisher_AppDetails extends Google_Model @@ -2422,7 +2423,6 @@ public function getContactEmail() { return $this->contactEmail; } - public function setContactPhone($contactPhone) { $this->contactPhone = $contactPhone; @@ -2432,7 +2432,6 @@ public function getContactPhone() { return $this->contactPhone; } - public function setContactWebsite($contactWebsite) { $this->contactWebsite = $contactWebsite; @@ -2442,7 +2441,6 @@ public function getContactWebsite() { return $this->contactWebsite; } - public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; @@ -2452,6 +2450,7 @@ public function getDefaultLanguage() { return $this->defaultLanguage; } + } class Google_Service_AndroidPublisher_AppEdit extends Google_Model @@ -2470,7 +2469,6 @@ public function getExpiryTimeSeconds() { return $this->expiryTimeSeconds; } - public function setId($id) { $this->id = $id; @@ -2480,6 +2478,7 @@ public function getId() { return $this->id; } + } class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model @@ -2498,7 +2497,6 @@ public function getFileSize() { return $this->fileSize; } - public function setReferencesVersion($referencesVersion) { $this->referencesVersion = $referencesVersion; @@ -2508,6 +2506,7 @@ public function getReferencesVersion() { return $this->referencesVersion; } + } class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model @@ -2526,6 +2525,7 @@ public function getExpansionFile() { return $this->expansionFile; } + } class Google_Service_AndroidPublisher_Image extends Google_Model @@ -2545,7 +2545,6 @@ public function getId() { return $this->id; } - public function setSha1($sha1) { $this->sha1 = $sha1; @@ -2555,7 +2554,6 @@ public function getSha1() { return $this->sha1; } - public function setUrl($url) { $this->url = $url; @@ -2565,6 +2563,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection @@ -2584,6 +2583,7 @@ public function getDeleted() { return $this->deleted; } + } class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection @@ -2603,6 +2603,7 @@ public function getImages() { return $this->images; } + } class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model @@ -2621,6 +2622,7 @@ public function getImage() { return $this->image; } + } class Google_Service_AndroidPublisher_InAppProduct extends Google_Model @@ -2652,7 +2654,6 @@ public function getDefaultLanguage() { return $this->defaultLanguage; } - public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) { $this->defaultPrice = $defaultPrice; @@ -2662,7 +2663,6 @@ public function getDefaultPrice() { return $this->defaultPrice; } - public function setListings($listings) { $this->listings = $listings; @@ -2672,7 +2672,6 @@ public function getListings() { return $this->listings; } - public function setPackageName($packageName) { $this->packageName = $packageName; @@ -2682,7 +2681,6 @@ public function getPackageName() { return $this->packageName; } - public function setPrices($prices) { $this->prices = $prices; @@ -2692,7 +2690,6 @@ public function getPrices() { return $this->prices; } - public function setPurchaseType($purchaseType) { $this->purchaseType = $purchaseType; @@ -2702,7 +2699,6 @@ public function getPurchaseType() { return $this->purchaseType; } - public function setSeason(Google_Service_AndroidPublisher_Season $season) { $this->season = $season; @@ -2712,7 +2708,6 @@ public function getSeason() { return $this->season; } - public function setSku($sku) { $this->sku = $sku; @@ -2722,7 +2717,6 @@ public function getSku() { return $this->sku; } - public function setStatus($status) { $this->status = $status; @@ -2732,7 +2726,6 @@ public function getStatus() { return $this->status; } - public function setSubscriptionPeriod($subscriptionPeriod) { $this->subscriptionPeriod = $subscriptionPeriod; @@ -2742,7 +2735,6 @@ public function getSubscriptionPeriod() { return $this->subscriptionPeriod; } - public function setTrialPeriod($trialPeriod) { $this->trialPeriod = $trialPeriod; @@ -2752,6 +2744,7 @@ public function getTrialPeriod() { return $this->trialPeriod; } + } class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model @@ -2770,7 +2763,6 @@ public function getDescription() { return $this->description; } - public function setTitle($title) { $this->title = $title; @@ -2780,18 +2772,23 @@ public function getTitle() { return $this->title; } + } class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection @@ -2811,6 +2808,7 @@ public function getEntrys() { return $this->entrys; } + } class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model @@ -2833,7 +2831,6 @@ public function getBatchId() { return $this->batchId; } - public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest) { $this->inappproductsinsertrequest = $inappproductsinsertrequest; @@ -2843,7 +2840,6 @@ public function getInappproductsinsertrequest() { return $this->inappproductsinsertrequest; } - public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest) { $this->inappproductsupdaterequest = $inappproductsupdaterequest; @@ -2853,7 +2849,6 @@ public function getInappproductsupdaterequest() { return $this->inappproductsupdaterequest; } - public function setMethodName($methodName) { $this->methodName = $methodName; @@ -2863,6 +2858,7 @@ public function getMethodName() { return $this->methodName; } + } class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection @@ -2883,7 +2879,6 @@ public function getEntrys() { return $this->entrys; } - public function setKind($kind) { $this->kind = $kind; @@ -2893,6 +2888,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model @@ -2914,7 +2910,6 @@ public function getBatchId() { return $this->batchId; } - public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse) { $this->inappproductsinsertresponse = $inappproductsinsertresponse; @@ -2924,7 +2919,6 @@ public function getInappproductsinsertresponse() { return $this->inappproductsinsertresponse; } - public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse) { $this->inappproductsupdateresponse = $inappproductsupdateresponse; @@ -2934,6 +2928,7 @@ public function getInappproductsupdateresponse() { return $this->inappproductsupdateresponse; } + } class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model @@ -2952,6 +2947,7 @@ public function getInappproduct() { return $this->inappproduct; } + } class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model @@ -2970,6 +2966,7 @@ public function getInappproduct() { return $this->inappproduct; } + } class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection @@ -2994,7 +2991,6 @@ public function getInappproduct() { return $this->inappproduct; } - public function setKind($kind) { $this->kind = $kind; @@ -3004,7 +3000,6 @@ public function getKind() { return $this->kind; } - public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; @@ -3014,7 +3009,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -3024,6 +3018,7 @@ public function getTokenPagination() { return $this->tokenPagination; } + } class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model @@ -3042,6 +3037,7 @@ public function getInappproduct() { return $this->inappproduct; } + } class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model @@ -3060,6 +3056,7 @@ public function getInappproduct() { return $this->inappproduct; } + } class Google_Service_AndroidPublisher_Listing extends Google_Model @@ -3081,7 +3078,6 @@ public function getFullDescription() { return $this->fullDescription; } - public function setLanguage($language) { $this->language = $language; @@ -3091,7 +3087,6 @@ public function getLanguage() { return $this->language; } - public function setShortDescription($shortDescription) { $this->shortDescription = $shortDescription; @@ -3101,7 +3096,6 @@ public function getShortDescription() { return $this->shortDescription; } - public function setTitle($title) { $this->title = $title; @@ -3111,7 +3105,6 @@ public function getTitle() { return $this->title; } - public function setVideo($video) { $this->video = $video; @@ -3121,6 +3114,7 @@ public function getVideo() { return $this->video; } + } class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection @@ -3141,7 +3135,6 @@ public function getKind() { return $this->kind; } - public function setListings($listings) { $this->listings = $listings; @@ -3151,6 +3144,7 @@ public function getListings() { return $this->listings; } + } class Google_Service_AndroidPublisher_MonthDay extends Google_Model @@ -3169,7 +3163,6 @@ public function getDay() { return $this->day; } - public function setMonth($month) { $this->month = $month; @@ -3179,6 +3172,7 @@ public function getMonth() { return $this->month; } + } class Google_Service_AndroidPublisher_PageInfo extends Google_Model @@ -3198,7 +3192,6 @@ public function getResultPerPage() { return $this->resultPerPage; } - public function setStartIndex($startIndex) { $this->startIndex = $startIndex; @@ -3208,7 +3201,6 @@ public function getStartIndex() { return $this->startIndex; } - public function setTotalResults($totalResults) { $this->totalResults = $totalResults; @@ -3218,6 +3210,7 @@ public function getTotalResults() { return $this->totalResults; } + } class Google_Service_AndroidPublisher_Price extends Google_Model @@ -3236,7 +3229,6 @@ public function getCurrency() { return $this->currency; } - public function setPriceMicros($priceMicros) { $this->priceMicros = $priceMicros; @@ -3246,6 +3238,7 @@ public function getPriceMicros() { return $this->priceMicros; } + } class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model @@ -3267,7 +3260,6 @@ public function getConsumptionState() { return $this->consumptionState; } - public function setDeveloperPayload($developerPayload) { $this->developerPayload = $developerPayload; @@ -3277,7 +3269,6 @@ public function getDeveloperPayload() { return $this->developerPayload; } - public function setKind($kind) { $this->kind = $kind; @@ -3287,7 +3278,6 @@ public function getKind() { return $this->kind; } - public function setPurchaseState($purchaseState) { $this->purchaseState = $purchaseState; @@ -3297,7 +3287,6 @@ public function getPurchaseState() { return $this->purchaseState; } - public function setPurchaseTimeMillis($purchaseTimeMillis) { $this->purchaseTimeMillis = $purchaseTimeMillis; @@ -3307,6 +3296,7 @@ public function getPurchaseTimeMillis() { return $this->purchaseTimeMillis; } + } class Google_Service_AndroidPublisher_Season extends Google_Model @@ -3327,7 +3317,6 @@ public function getEnd() { return $this->end; } - public function setStart(Google_Service_AndroidPublisher_MonthDay $start) { $this->start = $start; @@ -3337,6 +3326,7 @@ public function getStart() { return $this->start; } + } class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model @@ -3355,7 +3345,6 @@ public function getDesiredExpiryTimeMillis() { return $this->desiredExpiryTimeMillis; } - public function setExpectedExpiryTimeMillis($expectedExpiryTimeMillis) { $this->expectedExpiryTimeMillis = $expectedExpiryTimeMillis; @@ -3365,6 +3354,7 @@ public function getExpectedExpiryTimeMillis() { return $this->expectedExpiryTimeMillis; } + } class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model @@ -3385,7 +3375,6 @@ public function getAutoRenewing() { return $this->autoRenewing; } - public function setExpiryTimeMillis($expiryTimeMillis) { $this->expiryTimeMillis = $expiryTimeMillis; @@ -3395,7 +3384,6 @@ public function getExpiryTimeMillis() { return $this->expiryTimeMillis; } - public function setKind($kind) { $this->kind = $kind; @@ -3405,7 +3393,6 @@ public function getKind() { return $this->kind; } - public function setStartTimeMillis($startTimeMillis) { $this->startTimeMillis = $startTimeMillis; @@ -3415,6 +3402,7 @@ public function getStartTimeMillis() { return $this->startTimeMillis; } + } class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model @@ -3433,6 +3421,7 @@ public function getDeferralInfo() { return $this->deferralInfo; } + } class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model @@ -3450,6 +3439,7 @@ public function getNewExpiryTimeMillis() { return $this->newExpiryTimeMillis; } + } class Google_Service_AndroidPublisher_Testers extends Google_Collection @@ -3469,7 +3459,6 @@ public function getGoogleGroups() { return $this->googleGroups; } - public function setGooglePlusCommunities($googlePlusCommunities) { $this->googlePlusCommunities = $googlePlusCommunities; @@ -3479,6 +3468,7 @@ public function getGooglePlusCommunities() { return $this->googlePlusCommunities; } + } class Google_Service_AndroidPublisher_TokenPagination extends Google_Model @@ -3497,7 +3487,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPreviousPageToken($previousPageToken) { $this->previousPageToken = $previousPageToken; @@ -3507,6 +3496,7 @@ public function getPreviousPageToken() { return $this->previousPageToken; } + } class Google_Service_AndroidPublisher_Track extends Google_Collection @@ -3527,7 +3517,6 @@ public function getTrack() { return $this->track; } - public function setUserFraction($userFraction) { $this->userFraction = $userFraction; @@ -3537,7 +3526,6 @@ public function getUserFraction() { return $this->userFraction; } - public function setVersionCodes($versionCodes) { $this->versionCodes = $versionCodes; @@ -3547,6 +3535,7 @@ public function getVersionCodes() { return $this->versionCodes; } + } class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection @@ -3567,7 +3556,6 @@ public function getKind() { return $this->kind; } - public function setTracks($tracks) { $this->tracks = $tracks; @@ -3577,4 +3565,5 @@ public function getTracks() { return $this->tracks; } + } From 8b38e50ab4640e59e2d00c87296a14317b6d5e49 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:06 -0700 Subject: [PATCH 0396/1274] Updated AppState.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AppState.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index 5012b5a39..aa7bfd1ed 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -242,7 +242,6 @@ public function getCurrentStateVersion() { return $this->currentStateVersion; } - public function setData($data) { $this->data = $data; @@ -252,7 +251,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -262,7 +260,6 @@ public function getKind() { return $this->kind; } - public function setStateKey($stateKey) { $this->stateKey = $stateKey; @@ -272,6 +269,7 @@ public function getStateKey() { return $this->stateKey; } + } class Google_Service_AppState_ListResponse extends Google_Collection @@ -293,7 +291,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -303,7 +300,6 @@ public function getKind() { return $this->kind; } - public function setMaximumKeyCount($maximumKeyCount) { $this->maximumKeyCount = $maximumKeyCount; @@ -313,6 +309,7 @@ public function getMaximumKeyCount() { return $this->maximumKeyCount; } + } class Google_Service_AppState_UpdateRequest extends Google_Model @@ -331,7 +328,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -341,6 +337,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AppState_WriteResult extends Google_Model @@ -360,7 +357,6 @@ public function getCurrentStateVersion() { return $this->currentStateVersion; } - public function setKind($kind) { $this->kind = $kind; @@ -370,7 +366,6 @@ public function getKind() { return $this->kind; } - public function setStateKey($stateKey) { $this->stateKey = $stateKey; @@ -380,4 +375,5 @@ public function getStateKey() { return $this->stateKey; } + } From 9a9936d13db5cb6858ff29e5f64e39937e3e83c2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:07 -0700 Subject: [PATCH 0397/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 1662e1756..533f465d6 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -555,6 +555,7 @@ public function getSitemap() { return $this->sitemap; } + } class Google_Service_Webmasters_SitesListResponse extends Google_Collection @@ -574,6 +575,7 @@ public function getSiteEntry() { return $this->siteEntry; } + } class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model @@ -592,7 +594,6 @@ public function getCount() { return $this->count; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -602,6 +603,7 @@ public function getTimestamp() { return $this->timestamp; } + } class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection @@ -623,7 +625,6 @@ public function getCategory() { return $this->category; } - public function setEntries($entries) { $this->entries = $entries; @@ -633,7 +634,6 @@ public function getEntries() { return $this->entries; } - public function setPlatform($platform) { $this->platform = $platform; @@ -643,6 +643,7 @@ public function getPlatform() { return $this->platform; } + } class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection @@ -662,6 +663,7 @@ public function getCountPerTypes() { return $this->countPerTypes; } + } class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model @@ -686,7 +688,6 @@ public function getFirstDetected() { return $this->firstDetected; } - public function setLastCrawled($lastCrawled) { $this->lastCrawled = $lastCrawled; @@ -696,7 +697,6 @@ public function getLastCrawled() { return $this->lastCrawled; } - public function setPageUrl($pageUrl) { $this->pageUrl = $pageUrl; @@ -706,7 +706,6 @@ public function getPageUrl() { return $this->pageUrl; } - public function setResponseCode($responseCode) { $this->responseCode = $responseCode; @@ -716,7 +715,6 @@ public function getResponseCode() { return $this->responseCode; } - public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) { $this->urlDetails = $urlDetails; @@ -726,6 +724,7 @@ public function getUrlDetails() { return $this->urlDetails; } + } class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection @@ -745,6 +744,7 @@ public function getUrlCrawlErrorSample() { return $this->urlCrawlErrorSample; } + } class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection @@ -764,7 +764,6 @@ public function getContainingSitemaps() { return $this->containingSitemaps; } - public function setLinkedFromUrls($linkedFromUrls) { $this->linkedFromUrls = $linkedFromUrls; @@ -774,6 +773,7 @@ public function getLinkedFromUrls() { return $this->linkedFromUrls; } + } class Google_Service_Webmasters_WmxSite extends Google_Model @@ -792,7 +792,6 @@ public function getPermissionLevel() { return $this->permissionLevel; } - public function setSiteUrl($siteUrl) { $this->siteUrl = $siteUrl; @@ -802,6 +801,7 @@ public function getSiteUrl() { return $this->siteUrl; } + } class Google_Service_Webmasters_WmxSitemap extends Google_Collection @@ -829,7 +829,6 @@ public function getContents() { return $this->contents; } - public function setErrors($errors) { $this->errors = $errors; @@ -839,7 +838,6 @@ public function getErrors() { return $this->errors; } - public function setIsPending($isPending) { $this->isPending = $isPending; @@ -849,7 +847,6 @@ public function getIsPending() { return $this->isPending; } - public function setIsSitemapsIndex($isSitemapsIndex) { $this->isSitemapsIndex = $isSitemapsIndex; @@ -859,7 +856,6 @@ public function getIsSitemapsIndex() { return $this->isSitemapsIndex; } - public function setLastDownloaded($lastDownloaded) { $this->lastDownloaded = $lastDownloaded; @@ -869,7 +865,6 @@ public function getLastDownloaded() { return $this->lastDownloaded; } - public function setLastSubmitted($lastSubmitted) { $this->lastSubmitted = $lastSubmitted; @@ -879,7 +874,6 @@ public function getLastSubmitted() { return $this->lastSubmitted; } - public function setPath($path) { $this->path = $path; @@ -889,7 +883,6 @@ public function getPath() { return $this->path; } - public function setType($type) { $this->type = $type; @@ -899,7 +892,6 @@ public function getType() { return $this->type; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -909,6 +901,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_Webmasters_WmxSitemapContent extends Google_Model @@ -928,7 +921,6 @@ public function getIndexed() { return $this->indexed; } - public function setSubmitted($submitted) { $this->submitted = $submitted; @@ -938,7 +930,6 @@ public function getSubmitted() { return $this->submitted; } - public function setType($type) { $this->type = $type; @@ -948,4 +939,5 @@ public function getType() { return $this->type; } + } From aec5465d408d8824a76faab82bbfd3344a030f02 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:08 -0700 Subject: [PATCH 0398/1274] Updated Audit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Audit.php | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 2e2741b82..3b8902f84 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -185,7 +185,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -195,7 +194,6 @@ public function getKind() { return $this->kind; } - public function setNext($next) { $this->next = $next; @@ -205,6 +203,7 @@ public function getNext() { return $this->next; } + } class Google_Service_Audit_Activity extends Google_Collection @@ -231,7 +230,6 @@ public function getActor() { return $this->actor; } - public function setEvents($events) { $this->events = $events; @@ -241,7 +239,6 @@ public function getEvents() { return $this->events; } - public function setId(Google_Service_Audit_ActivityId $id) { $this->id = $id; @@ -251,7 +248,6 @@ public function getId() { return $this->id; } - public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; @@ -261,7 +257,6 @@ public function getIpAddress() { return $this->ipAddress; } - public function setKind($kind) { $this->kind = $kind; @@ -271,7 +266,6 @@ public function getKind() { return $this->kind; } - public function setOwnerDomain($ownerDomain) { $this->ownerDomain = $ownerDomain; @@ -281,6 +275,7 @@ public function getOwnerDomain() { return $this->ownerDomain; } + } class Google_Service_Audit_ActivityActor extends Google_Model @@ -301,7 +296,6 @@ public function getApplicationId() { return $this->applicationId; } - public function setCallerType($callerType) { $this->callerType = $callerType; @@ -311,7 +305,6 @@ public function getCallerType() { return $this->callerType; } - public function setEmail($email) { $this->email = $email; @@ -321,7 +314,6 @@ public function getEmail() { return $this->email; } - public function setKey($key) { $this->key = $key; @@ -331,6 +323,7 @@ public function getKey() { return $this->key; } + } class Google_Service_Audit_ActivityEvents extends Google_Collection @@ -352,7 +345,6 @@ public function getEventType() { return $this->eventType; } - public function setName($name) { $this->name = $name; @@ -362,7 +354,6 @@ public function getName() { return $this->name; } - public function setParameters($parameters) { $this->parameters = $parameters; @@ -372,6 +363,7 @@ public function getParameters() { return $this->parameters; } + } class Google_Service_Audit_ActivityEventsParameters extends Google_Model @@ -390,7 +382,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -400,6 +391,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Audit_ActivityId extends Google_Model @@ -420,7 +412,6 @@ public function getApplicationId() { return $this->applicationId; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -430,7 +421,6 @@ public function getCustomerId() { return $this->customerId; } - public function setTime($time) { $this->time = $time; @@ -440,7 +430,6 @@ public function getTime() { return $this->time; } - public function setUniqQualifier($uniqQualifier) { $this->uniqQualifier = $uniqQualifier; @@ -450,4 +439,5 @@ public function getUniqQualifier() { return $this->uniqQualifier; } + } From 936f6a51f82116bd0b29b983ff65b7f838d1eddc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:08 -0700 Subject: [PATCH 0399/1274] Updated Webfonts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webfonts.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index dd7d7af64..da44a96e3 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -126,7 +126,6 @@ public function getCategory() { return $this->category; } - public function setFamily($family) { $this->family = $family; @@ -136,7 +135,6 @@ public function getFamily() { return $this->family; } - public function setFiles($files) { $this->files = $files; @@ -146,7 +144,6 @@ public function getFiles() { return $this->files; } - public function setKind($kind) { $this->kind = $kind; @@ -156,7 +153,6 @@ public function getKind() { return $this->kind; } - public function setLastModified($lastModified) { $this->lastModified = $lastModified; @@ -166,7 +162,6 @@ public function getLastModified() { return $this->lastModified; } - public function setSubsets($subsets) { $this->subsets = $subsets; @@ -176,7 +171,6 @@ public function getSubsets() { return $this->subsets; } - public function setVariants($variants) { $this->variants = $variants; @@ -186,7 +180,6 @@ public function getVariants() { return $this->variants; } - public function setVersion($version) { $this->version = $version; @@ -196,12 +189,15 @@ public function getVersion() { return $this->version; } + } class Google_Service_Webfonts_WebfontFiles extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Webfonts_WebfontList extends Google_Collection @@ -222,7 +218,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -232,4 +227,5 @@ public function getKind() { return $this->kind; } + } From ecf5eac8b24c2886f7a865ab7e4e38feb708d5f9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:09 -0700 Subject: [PATCH 0400/1274] Updated SiteVerification.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SiteVerification.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 80f144b5b..7b92b53ce 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -256,7 +256,6 @@ public function getSite() { return $this->site; } - public function setVerificationMethod($verificationMethod) { $this->verificationMethod = $verificationMethod; @@ -266,6 +265,7 @@ public function getVerificationMethod() { return $this->verificationMethod; } + } class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model @@ -284,7 +284,6 @@ public function getIdentifier() { return $this->identifier; } - public function setType($type) { $this->type = $type; @@ -294,6 +293,7 @@ public function getType() { return $this->type; } + } class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model @@ -312,7 +312,6 @@ public function getMethod() { return $this->method; } - public function setToken($token) { $this->token = $token; @@ -322,6 +321,7 @@ public function getToken() { return $this->token; } + } class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection @@ -341,6 +341,7 @@ public function getItems() { return $this->items; } + } class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection @@ -362,7 +363,6 @@ public function getId() { return $this->id; } - public function setOwners($owners) { $this->owners = $owners; @@ -372,7 +372,6 @@ public function getOwners() { return $this->owners; } - public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site) { $this->site = $site; @@ -382,6 +381,7 @@ public function getSite() { return $this->site; } + } class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model @@ -400,7 +400,6 @@ public function getIdentifier() { return $this->identifier; } - public function setType($type) { $this->type = $type; @@ -410,4 +409,5 @@ public function getType() { return $this->type; } + } From eb31bb35bb0b7bbebd61d5b03396784a56df549d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:09 -0700 Subject: [PATCH 0401/1274] Updated AdSense.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSense.php | 132 ++++++++------------------------- 1 file changed, 31 insertions(+), 101 deletions(-) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index ab77a56c6..720952879 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -2194,7 +2194,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2204,7 +2203,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2214,7 +2212,6 @@ public function getName() { return $this->name; } - public function setPremium($premium) { $this->premium = $premium; @@ -2224,7 +2221,6 @@ public function getPremium() { return $this->premium; } - public function setSubAccounts($subAccounts) { $this->subAccounts = $subAccounts; @@ -2234,7 +2230,6 @@ public function getSubAccounts() { return $this->subAccounts; } - public function setTimezone($timezone) { $this->timezone = $timezone; @@ -2244,6 +2239,7 @@ public function getTimezone() { return $this->timezone; } + } class Google_Service_AdSense_Accounts extends Google_Collection @@ -2266,7 +2262,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2276,7 +2271,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2286,7 +2280,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2296,6 +2289,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_AdClient extends Google_Model @@ -2318,7 +2312,6 @@ public function getArcOptIn() { return $this->arcOptIn; } - public function setArcReviewMode($arcReviewMode) { $this->arcReviewMode = $arcReviewMode; @@ -2328,7 +2321,6 @@ public function getArcReviewMode() { return $this->arcReviewMode; } - public function setId($id) { $this->id = $id; @@ -2338,7 +2330,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2348,7 +2339,6 @@ public function getKind() { return $this->kind; } - public function setProductCode($productCode) { $this->productCode = $productCode; @@ -2358,7 +2348,6 @@ public function getProductCode() { return $this->productCode; } - public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; @@ -2368,6 +2357,7 @@ public function getSupportsReporting() { return $this->supportsReporting; } + } class Google_Service_AdSense_AdClients extends Google_Collection @@ -2390,7 +2380,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2400,7 +2389,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2410,7 +2398,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2420,6 +2407,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_AdCode extends Google_Model @@ -2438,7 +2426,6 @@ public function getAdCode() { return $this->adCode; } - public function setKind($kind) { $this->kind = $kind; @@ -2448,6 +2435,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSense_AdStyle extends Google_Model @@ -2470,7 +2458,6 @@ public function getColors() { return $this->colors; } - public function setCorners($corners) { $this->corners = $corners; @@ -2480,7 +2467,6 @@ public function getCorners() { return $this->corners; } - public function setFont(Google_Service_AdSense_AdStyleFont $font) { $this->font = $font; @@ -2490,7 +2476,6 @@ public function getFont() { return $this->font; } - public function setKind($kind) { $this->kind = $kind; @@ -2500,6 +2485,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSense_AdStyleColors extends Google_Model @@ -2521,7 +2507,6 @@ public function getBackground() { return $this->background; } - public function setBorder($border) { $this->border = $border; @@ -2531,7 +2516,6 @@ public function getBorder() { return $this->border; } - public function setText($text) { $this->text = $text; @@ -2541,7 +2525,6 @@ public function getText() { return $this->text; } - public function setTitle($title) { $this->title = $title; @@ -2551,7 +2534,6 @@ public function getTitle() { return $this->title; } - public function setUrl($url) { $this->url = $url; @@ -2561,6 +2543,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AdSense_AdStyleFont extends Google_Model @@ -2579,7 +2562,6 @@ public function getFamily() { return $this->family; } - public function setSize($size) { $this->size = $size; @@ -2589,6 +2571,7 @@ public function getSize() { return $this->size; } + } class Google_Service_AdSense_AdUnit extends Google_Model @@ -2619,7 +2602,6 @@ public function getCode() { return $this->code; } - public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings) { $this->contentAdsSettings = $contentAdsSettings; @@ -2629,7 +2611,6 @@ public function getContentAdsSettings() { return $this->contentAdsSettings; } - public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle) { $this->customStyle = $customStyle; @@ -2639,7 +2620,6 @@ public function getCustomStyle() { return $this->customStyle; } - public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings) { $this->feedAdsSettings = $feedAdsSettings; @@ -2649,7 +2629,6 @@ public function getFeedAdsSettings() { return $this->feedAdsSettings; } - public function setId($id) { $this->id = $id; @@ -2659,7 +2638,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2669,7 +2647,6 @@ public function getKind() { return $this->kind; } - public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) { $this->mobileContentAdsSettings = $mobileContentAdsSettings; @@ -2679,7 +2656,6 @@ public function getMobileContentAdsSettings() { return $this->mobileContentAdsSettings; } - public function setName($name) { $this->name = $name; @@ -2689,7 +2665,6 @@ public function getName() { return $this->name; } - public function setSavedStyleId($savedStyleId) { $this->savedStyleId = $savedStyleId; @@ -2699,7 +2674,6 @@ public function getSavedStyleId() { return $this->savedStyleId; } - public function setStatus($status) { $this->status = $status; @@ -2709,6 +2683,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model @@ -2729,7 +2704,6 @@ public function getBackupOption() { return $this->backupOption; } - public function setSize($size) { $this->size = $size; @@ -2739,7 +2713,6 @@ public function getSize() { return $this->size; } - public function setType($type) { $this->type = $type; @@ -2749,6 +2722,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model @@ -2768,7 +2742,6 @@ public function getColor() { return $this->color; } - public function setType($type) { $this->type = $type; @@ -2778,7 +2751,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -2788,6 +2760,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model @@ -2808,7 +2781,6 @@ public function getAdPosition() { return $this->adPosition; } - public function setFrequency($frequency) { $this->frequency = $frequency; @@ -2818,7 +2790,6 @@ public function getFrequency() { return $this->frequency; } - public function setMinimumWordCount($minimumWordCount) { $this->minimumWordCount = $minimumWordCount; @@ -2828,7 +2799,6 @@ public function getMinimumWordCount() { return $this->minimumWordCount; } - public function setType($type) { $this->type = $type; @@ -2838,6 +2808,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model @@ -2858,7 +2829,6 @@ public function getMarkupLanguage() { return $this->markupLanguage; } - public function setScriptingLanguage($scriptingLanguage) { $this->scriptingLanguage = $scriptingLanguage; @@ -2868,7 +2838,6 @@ public function getScriptingLanguage() { return $this->scriptingLanguage; } - public function setSize($size) { $this->size = $size; @@ -2878,7 +2847,6 @@ public function getSize() { return $this->size; } - public function setType($type) { $this->type = $type; @@ -2888,6 +2856,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSense_AdUnits extends Google_Collection @@ -2910,7 +2879,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2920,7 +2888,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2930,7 +2897,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2940,6 +2906,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection @@ -2967,7 +2934,6 @@ public function getAverages() { return $this->averages; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -2977,7 +2943,6 @@ public function getEndDate() { return $this->endDate; } - public function setHeaders($headers) { $this->headers = $headers; @@ -2987,7 +2952,6 @@ public function getHeaders() { return $this->headers; } - public function setKind($kind) { $this->kind = $kind; @@ -2997,7 +2961,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -3007,7 +2970,6 @@ public function getRows() { return $this->rows; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -3017,7 +2979,6 @@ public function getStartDate() { return $this->startDate; } - public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; @@ -3027,7 +2988,6 @@ public function getTotalMatchedRows() { return $this->totalMatchedRows; } - public function setTotals($totals) { $this->totals = $totals; @@ -3037,7 +2997,6 @@ public function getTotals() { return $this->totals; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -3047,6 +3006,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model @@ -3066,7 +3026,6 @@ public function getCurrency() { return $this->currency; } - public function setName($name) { $this->name = $name; @@ -3076,7 +3035,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -3086,6 +3044,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSense_Alert extends Google_Model @@ -3108,7 +3067,6 @@ public function getId() { return $this->id; } - public function setIsDismissible($isDismissible) { $this->isDismissible = $isDismissible; @@ -3118,7 +3076,6 @@ public function getIsDismissible() { return $this->isDismissible; } - public function setKind($kind) { $this->kind = $kind; @@ -3128,7 +3085,6 @@ public function getKind() { return $this->kind; } - public function setMessage($message) { $this->message = $message; @@ -3138,7 +3094,6 @@ public function getMessage() { return $this->message; } - public function setSeverity($severity) { $this->severity = $severity; @@ -3148,7 +3103,6 @@ public function getSeverity() { return $this->severity; } - public function setType($type) { $this->type = $type; @@ -3158,6 +3112,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSense_Alerts extends Google_Collection @@ -3178,7 +3133,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3188,6 +3142,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSense_CustomChannel extends Google_Model @@ -3210,7 +3165,6 @@ public function getCode() { return $this->code; } - public function setId($id) { $this->id = $id; @@ -3220,7 +3174,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3230,7 +3183,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3240,7 +3192,6 @@ public function getName() { return $this->name; } - public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo) { $this->targetingInfo = $targetingInfo; @@ -3250,6 +3201,7 @@ public function getTargetingInfo() { return $this->targetingInfo; } + } class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model @@ -3270,7 +3222,6 @@ public function getAdsAppearOn() { return $this->adsAppearOn; } - public function setDescription($description) { $this->description = $description; @@ -3280,7 +3231,6 @@ public function getDescription() { return $this->description; } - public function setLocation($location) { $this->location = $location; @@ -3290,7 +3240,6 @@ public function getLocation() { return $this->location; } - public function setSiteLanguage($siteLanguage) { $this->siteLanguage = $siteLanguage; @@ -3300,6 +3249,7 @@ public function getSiteLanguage() { return $this->siteLanguage; } + } class Google_Service_AdSense_CustomChannels extends Google_Collection @@ -3322,7 +3272,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3332,7 +3281,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3342,7 +3290,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3352,6 +3299,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_Metadata extends Google_Collection @@ -3372,7 +3320,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3382,6 +3329,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSense_Payment extends Google_Model @@ -3403,7 +3351,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3413,7 +3360,6 @@ public function getKind() { return $this->kind; } - public function setPaymentAmount($paymentAmount) { $this->paymentAmount = $paymentAmount; @@ -3423,7 +3369,6 @@ public function getPaymentAmount() { return $this->paymentAmount; } - public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode) { $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode; @@ -3433,7 +3378,6 @@ public function getPaymentAmountCurrencyCode() { return $this->paymentAmountCurrencyCode; } - public function setPaymentDate($paymentDate) { $this->paymentDate = $paymentDate; @@ -3443,6 +3387,7 @@ public function getPaymentDate() { return $this->paymentDate; } + } class Google_Service_AdSense_Payments extends Google_Collection @@ -3463,7 +3408,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3473,6 +3417,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection @@ -3497,7 +3442,6 @@ public function getCompatibleDimensions() { return $this->compatibleDimensions; } - public function setCompatibleMetrics($compatibleMetrics) { $this->compatibleMetrics = $compatibleMetrics; @@ -3507,7 +3451,6 @@ public function getCompatibleMetrics() { return $this->compatibleMetrics; } - public function setId($id) { $this->id = $id; @@ -3517,7 +3460,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3527,7 +3469,6 @@ public function getKind() { return $this->kind; } - public function setRequiredDimensions($requiredDimensions) { $this->requiredDimensions = $requiredDimensions; @@ -3537,7 +3478,6 @@ public function getRequiredDimensions() { return $this->requiredDimensions; } - public function setRequiredMetrics($requiredMetrics) { $this->requiredMetrics = $requiredMetrics; @@ -3547,7 +3487,6 @@ public function getRequiredMetrics() { return $this->requiredMetrics; } - public function setSupportedProducts($supportedProducts) { $this->supportedProducts = $supportedProducts; @@ -3557,6 +3496,7 @@ public function getSupportedProducts() { return $this->supportedProducts; } + } class Google_Service_AdSense_SavedAdStyle extends Google_Model @@ -3578,7 +3518,6 @@ public function getAdStyle() { return $this->adStyle; } - public function setId($id) { $this->id = $id; @@ -3588,7 +3527,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3598,7 +3536,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3608,6 +3545,7 @@ public function getName() { return $this->name; } + } class Google_Service_AdSense_SavedAdStyles extends Google_Collection @@ -3630,7 +3568,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3640,7 +3577,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3650,7 +3586,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3660,6 +3595,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_SavedReport extends Google_Model @@ -3679,7 +3615,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3689,7 +3624,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3699,6 +3633,7 @@ public function getName() { return $this->name; } + } class Google_Service_AdSense_SavedReports extends Google_Collection @@ -3721,7 +3656,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3731,7 +3665,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3741,7 +3674,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3751,6 +3683,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSense_UrlChannel extends Google_Model @@ -3770,7 +3703,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3780,7 +3712,6 @@ public function getKind() { return $this->kind; } - public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; @@ -3790,6 +3721,7 @@ public function getUrlPattern() { return $this->urlPattern; } + } class Google_Service_AdSense_UrlChannels extends Google_Collection @@ -3812,7 +3744,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3822,7 +3753,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3832,7 +3762,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3842,4 +3771,5 @@ public function getNextPageToken() { return $this->nextPageToken; } + } From cac7124234df1149c0f198fe261fad8e4e279b03 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:10 -0700 Subject: [PATCH 0402/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 280 ++++++------------------------- 1 file changed, 48 insertions(+), 232 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index e104a9da9..e7d4675bd 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2643,7 +2643,6 @@ public function getAlias() { return $this->alias; } - public function setEtag($etag) { $this->etag = $etag; @@ -2653,7 +2652,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2663,7 +2661,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2673,7 +2670,6 @@ public function getKind() { return $this->kind; } - public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; @@ -2683,6 +2679,7 @@ public function getPrimaryEmail() { return $this->primaryEmail; } + } class Google_Service_Directory_Aliases extends Google_Collection @@ -2704,7 +2701,6 @@ public function getAliases() { return $this->aliases; } - public function setEtag($etag) { $this->etag = $etag; @@ -2714,7 +2710,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -2724,6 +2719,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Directory_Asp extends Google_Model @@ -2747,7 +2743,6 @@ public function getCodeId() { return $this->codeId; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -2757,7 +2752,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setEtag($etag) { $this->etag = $etag; @@ -2767,7 +2761,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -2777,7 +2770,6 @@ public function getKind() { return $this->kind; } - public function setLastTimeUsed($lastTimeUsed) { $this->lastTimeUsed = $lastTimeUsed; @@ -2787,7 +2779,6 @@ public function getLastTimeUsed() { return $this->lastTimeUsed; } - public function setName($name) { $this->name = $name; @@ -2797,7 +2788,6 @@ public function getName() { return $this->name; } - public function setUserKey($userKey) { $this->userKey = $userKey; @@ -2807,6 +2797,7 @@ public function getUserKey() { return $this->userKey; } + } class Google_Service_Directory_Asps extends Google_Collection @@ -2828,7 +2819,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2838,7 +2828,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2848,6 +2837,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Directory_Channel extends Google_Model @@ -2874,7 +2864,6 @@ public function getAddress() { return $this->address; } - public function setExpiration($expiration) { $this->expiration = $expiration; @@ -2884,7 +2873,6 @@ public function getExpiration() { return $this->expiration; } - public function setId($id) { $this->id = $id; @@ -2894,7 +2882,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2904,7 +2891,6 @@ public function getKind() { return $this->kind; } - public function setParams($params) { $this->params = $params; @@ -2914,7 +2900,6 @@ public function getParams() { return $this->params; } - public function setPayload($payload) { $this->payload = $payload; @@ -2924,7 +2909,6 @@ public function getPayload() { return $this->payload; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -2934,7 +2918,6 @@ public function getResourceId() { return $this->resourceId; } - public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; @@ -2944,7 +2927,6 @@ public function getResourceUri() { return $this->resourceUri; } - public function setToken($token) { $this->token = $token; @@ -2954,7 +2936,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -2964,12 +2945,15 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_ChannelParams extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Directory_ChromeOsDevice extends Google_Collection @@ -3013,7 +2997,6 @@ public function getActiveTimeRanges() { return $this->activeTimeRanges; } - public function setAnnotatedLocation($annotatedLocation) { $this->annotatedLocation = $annotatedLocation; @@ -3023,7 +3006,6 @@ public function getAnnotatedLocation() { return $this->annotatedLocation; } - public function setAnnotatedUser($annotatedUser) { $this->annotatedUser = $annotatedUser; @@ -3033,7 +3015,6 @@ public function getAnnotatedUser() { return $this->annotatedUser; } - public function setBootMode($bootMode) { $this->bootMode = $bootMode; @@ -3043,7 +3024,6 @@ public function getBootMode() { return $this->bootMode; } - public function setDeviceId($deviceId) { $this->deviceId = $deviceId; @@ -3053,7 +3033,6 @@ public function getDeviceId() { return $this->deviceId; } - public function setEtag($etag) { $this->etag = $etag; @@ -3063,7 +3042,6 @@ public function getEtag() { return $this->etag; } - public function setEthernetMacAddress($ethernetMacAddress) { $this->ethernetMacAddress = $ethernetMacAddress; @@ -3073,7 +3051,6 @@ public function getEthernetMacAddress() { return $this->ethernetMacAddress; } - public function setFirmwareVersion($firmwareVersion) { $this->firmwareVersion = $firmwareVersion; @@ -3083,7 +3060,6 @@ public function getFirmwareVersion() { return $this->firmwareVersion; } - public function setKind($kind) { $this->kind = $kind; @@ -3093,7 +3069,6 @@ public function getKind() { return $this->kind; } - public function setLastEnrollmentTime($lastEnrollmentTime) { $this->lastEnrollmentTime = $lastEnrollmentTime; @@ -3103,7 +3078,6 @@ public function getLastEnrollmentTime() { return $this->lastEnrollmentTime; } - public function setLastSync($lastSync) { $this->lastSync = $lastSync; @@ -3113,7 +3087,6 @@ public function getLastSync() { return $this->lastSync; } - public function setMacAddress($macAddress) { $this->macAddress = $macAddress; @@ -3123,7 +3096,6 @@ public function getMacAddress() { return $this->macAddress; } - public function setMeid($meid) { $this->meid = $meid; @@ -3133,7 +3105,6 @@ public function getMeid() { return $this->meid; } - public function setModel($model) { $this->model = $model; @@ -3143,7 +3114,6 @@ public function getModel() { return $this->model; } - public function setNotes($notes) { $this->notes = $notes; @@ -3153,7 +3123,6 @@ public function getNotes() { return $this->notes; } - public function setOrderNumber($orderNumber) { $this->orderNumber = $orderNumber; @@ -3163,7 +3132,6 @@ public function getOrderNumber() { return $this->orderNumber; } - public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -3173,7 +3141,6 @@ public function getOrgUnitPath() { return $this->orgUnitPath; } - public function setOsVersion($osVersion) { $this->osVersion = $osVersion; @@ -3183,7 +3150,6 @@ public function getOsVersion() { return $this->osVersion; } - public function setPlatformVersion($platformVersion) { $this->platformVersion = $platformVersion; @@ -3193,7 +3159,6 @@ public function getPlatformVersion() { return $this->platformVersion; } - public function setRecentUsers($recentUsers) { $this->recentUsers = $recentUsers; @@ -3203,7 +3168,6 @@ public function getRecentUsers() { return $this->recentUsers; } - public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; @@ -3213,7 +3177,6 @@ public function getSerialNumber() { return $this->serialNumber; } - public function setStatus($status) { $this->status = $status; @@ -3223,7 +3186,6 @@ public function getStatus() { return $this->status; } - public function setSupportEndDate($supportEndDate) { $this->supportEndDate = $supportEndDate; @@ -3233,7 +3195,6 @@ public function getSupportEndDate() { return $this->supportEndDate; } - public function setWillAutoRenew($willAutoRenew) { $this->willAutoRenew = $willAutoRenew; @@ -3243,6 +3204,7 @@ public function getWillAutoRenew() { return $this->willAutoRenew; } + } class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model @@ -3261,7 +3223,6 @@ public function getActiveTime() { return $this->activeTime; } - public function setDate($date) { $this->date = $date; @@ -3271,6 +3232,7 @@ public function getDate() { return $this->date; } + } class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model @@ -3289,7 +3251,6 @@ public function getEmail() { return $this->email; } - public function setType($type) { $this->type = $type; @@ -3299,6 +3260,7 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_ChromeOsDevices extends Google_Collection @@ -3321,7 +3283,6 @@ public function getChromeosdevices() { return $this->chromeosdevices; } - public function setEtag($etag) { $this->etag = $etag; @@ -3331,7 +3292,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -3341,7 +3301,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3351,6 +3310,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Directory_Group extends Google_Collection @@ -3378,7 +3338,6 @@ public function getAdminCreated() { return $this->adminCreated; } - public function setAliases($aliases) { $this->aliases = $aliases; @@ -3388,7 +3347,6 @@ public function getAliases() { return $this->aliases; } - public function setDescription($description) { $this->description = $description; @@ -3398,7 +3356,6 @@ public function getDescription() { return $this->description; } - public function setDirectMembersCount($directMembersCount) { $this->directMembersCount = $directMembersCount; @@ -3408,7 +3365,6 @@ public function getDirectMembersCount() { return $this->directMembersCount; } - public function setEmail($email) { $this->email = $email; @@ -3418,7 +3374,6 @@ public function getEmail() { return $this->email; } - public function setEtag($etag) { $this->etag = $etag; @@ -3428,7 +3383,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -3438,7 +3392,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3448,7 +3401,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3458,7 +3410,6 @@ public function getName() { return $this->name; } - public function setNonEditableAliases($nonEditableAliases) { $this->nonEditableAliases = $nonEditableAliases; @@ -3468,6 +3419,7 @@ public function getNonEditableAliases() { return $this->nonEditableAliases; } + } class Google_Service_Directory_Groups extends Google_Collection @@ -3490,7 +3442,6 @@ public function getEtag() { return $this->etag; } - public function setGroups($groups) { $this->groups = $groups; @@ -3500,7 +3451,6 @@ public function getGroups() { return $this->groups; } - public function setKind($kind) { $this->kind = $kind; @@ -3510,7 +3460,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3520,6 +3469,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Directory_Member extends Google_Model @@ -3542,7 +3492,6 @@ public function getEmail() { return $this->email; } - public function setEtag($etag) { $this->etag = $etag; @@ -3552,7 +3501,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -3562,7 +3510,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3572,7 +3519,6 @@ public function getKind() { return $this->kind; } - public function setRole($role) { $this->role = $role; @@ -3582,7 +3528,6 @@ public function getRole() { return $this->role; } - public function setType($type) { $this->type = $type; @@ -3592,6 +3537,7 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_Members extends Google_Collection @@ -3614,7 +3560,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -3624,7 +3569,6 @@ public function getKind() { return $this->kind; } - public function setMembers($members) { $this->members = $members; @@ -3634,7 +3578,6 @@ public function getMembers() { return $this->members; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3644,6 +3587,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Directory_MobileDevice extends Google_Collection @@ -3688,7 +3632,6 @@ public function getApplications() { return $this->applications; } - public function setBasebandVersion($basebandVersion) { $this->basebandVersion = $basebandVersion; @@ -3698,7 +3641,6 @@ public function getBasebandVersion() { return $this->basebandVersion; } - public function setBuildNumber($buildNumber) { $this->buildNumber = $buildNumber; @@ -3708,7 +3650,6 @@ public function getBuildNumber() { return $this->buildNumber; } - public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; @@ -3718,7 +3659,6 @@ public function getDefaultLanguage() { return $this->defaultLanguage; } - public function setDeviceCompromisedStatus($deviceCompromisedStatus) { $this->deviceCompromisedStatus = $deviceCompromisedStatus; @@ -3728,7 +3668,6 @@ public function getDeviceCompromisedStatus() { return $this->deviceCompromisedStatus; } - public function setDeviceId($deviceId) { $this->deviceId = $deviceId; @@ -3738,7 +3677,6 @@ public function getDeviceId() { return $this->deviceId; } - public function setEmail($email) { $this->email = $email; @@ -3748,7 +3686,6 @@ public function getEmail() { return $this->email; } - public function setEtag($etag) { $this->etag = $etag; @@ -3758,7 +3695,6 @@ public function getEtag() { return $this->etag; } - public function setFirstSync($firstSync) { $this->firstSync = $firstSync; @@ -3768,7 +3704,6 @@ public function getFirstSync() { return $this->firstSync; } - public function setHardwareId($hardwareId) { $this->hardwareId = $hardwareId; @@ -3778,7 +3713,6 @@ public function getHardwareId() { return $this->hardwareId; } - public function setImei($imei) { $this->imei = $imei; @@ -3788,7 +3722,6 @@ public function getImei() { return $this->imei; } - public function setKernelVersion($kernelVersion) { $this->kernelVersion = $kernelVersion; @@ -3798,7 +3731,6 @@ public function getKernelVersion() { return $this->kernelVersion; } - public function setKind($kind) { $this->kind = $kind; @@ -3808,7 +3740,6 @@ public function getKind() { return $this->kind; } - public function setLastSync($lastSync) { $this->lastSync = $lastSync; @@ -3818,7 +3749,6 @@ public function getLastSync() { return $this->lastSync; } - public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) { $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; @@ -3828,7 +3758,6 @@ public function getManagedAccountIsOnOwnerProfile() { return $this->managedAccountIsOnOwnerProfile; } - public function setMeid($meid) { $this->meid = $meid; @@ -3838,7 +3767,6 @@ public function getMeid() { return $this->meid; } - public function setModel($model) { $this->model = $model; @@ -3848,7 +3776,6 @@ public function getModel() { return $this->model; } - public function setName($name) { $this->name = $name; @@ -3858,7 +3785,6 @@ public function getName() { return $this->name; } - public function setNetworkOperator($networkOperator) { $this->networkOperator = $networkOperator; @@ -3868,7 +3794,6 @@ public function getNetworkOperator() { return $this->networkOperator; } - public function setOs($os) { $this->os = $os; @@ -3878,7 +3803,6 @@ public function getOs() { return $this->os; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -3888,7 +3812,6 @@ public function getResourceId() { return $this->resourceId; } - public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; @@ -3898,7 +3821,6 @@ public function getSerialNumber() { return $this->serialNumber; } - public function setStatus($status) { $this->status = $status; @@ -3908,7 +3830,6 @@ public function getStatus() { return $this->status; } - public function setType($type) { $this->type = $type; @@ -3918,7 +3839,6 @@ public function getType() { return $this->type; } - public function setUserAgent($userAgent) { $this->userAgent = $userAgent; @@ -3928,7 +3848,6 @@ public function getUserAgent() { return $this->userAgent; } - public function setWifiMacAddress($wifiMacAddress) { $this->wifiMacAddress = $wifiMacAddress; @@ -3938,6 +3857,7 @@ public function getWifiMacAddress() { return $this->wifiMacAddress; } + } class Google_Service_Directory_MobileDeviceAction extends Google_Model @@ -3955,6 +3875,7 @@ public function getAction() { return $this->action; } + } class Google_Service_Directory_MobileDeviceApplications extends Google_Collection @@ -3977,7 +3898,6 @@ public function getDisplayName() { return $this->displayName; } - public function setPackageName($packageName) { $this->packageName = $packageName; @@ -3987,7 +3907,6 @@ public function getPackageName() { return $this->packageName; } - public function setPermission($permission) { $this->permission = $permission; @@ -3997,7 +3916,6 @@ public function getPermission() { return $this->permission; } - public function setVersionCode($versionCode) { $this->versionCode = $versionCode; @@ -4007,7 +3925,6 @@ public function getVersionCode() { return $this->versionCode; } - public function setVersionName($versionName) { $this->versionName = $versionName; @@ -4017,6 +3934,7 @@ public function getVersionName() { return $this->versionName; } + } class Google_Service_Directory_MobileDevices extends Google_Collection @@ -4039,7 +3957,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4049,7 +3966,6 @@ public function getKind() { return $this->kind; } - public function setMobiledevices($mobiledevices) { $this->mobiledevices = $mobiledevices; @@ -4059,7 +3975,6 @@ public function getMobiledevices() { return $this->mobiledevices; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4069,6 +3984,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Directory_Notification extends Google_Model @@ -4093,7 +4009,6 @@ public function getBody() { return $this->body; } - public function setEtag($etag) { $this->etag = $etag; @@ -4103,7 +4018,6 @@ public function getEtag() { return $this->etag; } - public function setFromAddress($fromAddress) { $this->fromAddress = $fromAddress; @@ -4113,7 +4027,6 @@ public function getFromAddress() { return $this->fromAddress; } - public function setIsUnread($isUnread) { $this->isUnread = $isUnread; @@ -4123,7 +4036,6 @@ public function getIsUnread() { return $this->isUnread; } - public function setKind($kind) { $this->kind = $kind; @@ -4133,7 +4045,6 @@ public function getKind() { return $this->kind; } - public function setNotificationId($notificationId) { $this->notificationId = $notificationId; @@ -4143,7 +4054,6 @@ public function getNotificationId() { return $this->notificationId; } - public function setSendTime($sendTime) { $this->sendTime = $sendTime; @@ -4153,7 +4063,6 @@ public function getSendTime() { return $this->sendTime; } - public function setSubject($subject) { $this->subject = $subject; @@ -4163,6 +4072,7 @@ public function getSubject() { return $this->subject; } + } class Google_Service_Directory_Notifications extends Google_Collection @@ -4186,7 +4096,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -4196,7 +4105,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4206,7 +4114,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4216,7 +4123,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setUnreadNotificationsCount($unreadNotificationsCount) { $this->unreadNotificationsCount = $unreadNotificationsCount; @@ -4226,6 +4132,7 @@ public function getUnreadNotificationsCount() { return $this->unreadNotificationsCount; } + } class Google_Service_Directory_OrgUnit extends Google_Model @@ -4249,7 +4156,6 @@ public function getBlockInheritance() { return $this->blockInheritance; } - public function setDescription($description) { $this->description = $description; @@ -4259,7 +4165,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -4269,7 +4174,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4279,7 +4183,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -4289,7 +4192,6 @@ public function getName() { return $this->name; } - public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -4299,7 +4201,6 @@ public function getOrgUnitPath() { return $this->orgUnitPath; } - public function setParentOrgUnitPath($parentOrgUnitPath) { $this->parentOrgUnitPath = $parentOrgUnitPath; @@ -4309,6 +4210,7 @@ public function getParentOrgUnitPath() { return $this->parentOrgUnitPath; } + } class Google_Service_Directory_OrgUnits extends Google_Collection @@ -4330,7 +4232,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4340,7 +4241,6 @@ public function getKind() { return $this->kind; } - public function setOrganizationUnits($organizationUnits) { $this->organizationUnits = $organizationUnits; @@ -4350,6 +4250,7 @@ public function getOrganizationUnits() { return $this->organizationUnits; } + } class Google_Service_Directory_Schema extends Google_Collection @@ -4373,7 +4274,6 @@ public function getEtag() { return $this->etag; } - public function setFields($fields) { $this->fields = $fields; @@ -4383,7 +4283,6 @@ public function getFields() { return $this->fields; } - public function setKind($kind) { $this->kind = $kind; @@ -4393,7 +4292,6 @@ public function getKind() { return $this->kind; } - public function setSchemaId($schemaId) { $this->schemaId = $schemaId; @@ -4403,7 +4301,6 @@ public function getSchemaId() { return $this->schemaId; } - public function setSchemaName($schemaName) { $this->schemaName = $schemaName; @@ -4413,6 +4310,7 @@ public function getSchemaName() { return $this->schemaName; } + } class Google_Service_Directory_SchemaFieldSpec extends Google_Model @@ -4439,7 +4337,6 @@ public function getEtag() { return $this->etag; } - public function setFieldId($fieldId) { $this->fieldId = $fieldId; @@ -4449,7 +4346,6 @@ public function getFieldId() { return $this->fieldId; } - public function setFieldName($fieldName) { $this->fieldName = $fieldName; @@ -4459,7 +4355,6 @@ public function getFieldName() { return $this->fieldName; } - public function setFieldType($fieldType) { $this->fieldType = $fieldType; @@ -4469,7 +4364,6 @@ public function getFieldType() { return $this->fieldType; } - public function setIndexed($indexed) { $this->indexed = $indexed; @@ -4479,7 +4373,6 @@ public function getIndexed() { return $this->indexed; } - public function setKind($kind) { $this->kind = $kind; @@ -4489,7 +4382,6 @@ public function getKind() { return $this->kind; } - public function setMultiValued($multiValued) { $this->multiValued = $multiValued; @@ -4499,7 +4391,6 @@ public function getMultiValued() { return $this->multiValued; } - public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec) { $this->numericIndexingSpec = $numericIndexingSpec; @@ -4509,7 +4400,6 @@ public function getNumericIndexingSpec() { return $this->numericIndexingSpec; } - public function setReadAccessType($readAccessType) { $this->readAccessType = $readAccessType; @@ -4519,6 +4409,7 @@ public function getReadAccessType() { return $this->readAccessType; } + } class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model @@ -4537,7 +4428,6 @@ public function getMaxValue() { return $this->maxValue; } - public function setMinValue($minValue) { $this->minValue = $minValue; @@ -4547,6 +4437,7 @@ public function getMinValue() { return $this->minValue; } + } class Google_Service_Directory_Schemas extends Google_Collection @@ -4568,7 +4459,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4578,7 +4468,6 @@ public function getKind() { return $this->kind; } - public function setSchemas($schemas) { $this->schemas = $schemas; @@ -4588,6 +4477,7 @@ public function getSchemas() { return $this->schemas; } + } class Google_Service_Directory_Token extends Google_Collection @@ -4613,7 +4503,6 @@ public function getAnonymous() { return $this->anonymous; } - public function setClientId($clientId) { $this->clientId = $clientId; @@ -4623,7 +4512,6 @@ public function getClientId() { return $this->clientId; } - public function setDisplayText($displayText) { $this->displayText = $displayText; @@ -4633,7 +4521,6 @@ public function getDisplayText() { return $this->displayText; } - public function setEtag($etag) { $this->etag = $etag; @@ -4643,7 +4530,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -4653,7 +4539,6 @@ public function getKind() { return $this->kind; } - public function setNativeApp($nativeApp) { $this->nativeApp = $nativeApp; @@ -4663,7 +4548,6 @@ public function getNativeApp() { return $this->nativeApp; } - public function setScopes($scopes) { $this->scopes = $scopes; @@ -4673,7 +4557,6 @@ public function getScopes() { return $this->scopes; } - public function setUserKey($userKey) { $this->userKey = $userKey; @@ -4683,6 +4566,7 @@ public function getUserKey() { return $this->userKey; } + } class Google_Service_Directory_Tokens extends Google_Collection @@ -4704,7 +4588,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -4714,7 +4597,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4724,6 +4606,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Directory_User extends Google_Collection @@ -4774,7 +4657,6 @@ public function getAddresses() { return $this->addresses; } - public function setAgreedToTerms($agreedToTerms) { $this->agreedToTerms = $agreedToTerms; @@ -4784,7 +4666,6 @@ public function getAgreedToTerms() { return $this->agreedToTerms; } - public function setAliases($aliases) { $this->aliases = $aliases; @@ -4794,7 +4675,6 @@ public function getAliases() { return $this->aliases; } - public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) { $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; @@ -4804,7 +4684,6 @@ public function getChangePasswordAtNextLogin() { return $this->changePasswordAtNextLogin; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -4814,7 +4693,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCustomSchemas($customSchemas) { $this->customSchemas = $customSchemas; @@ -4824,7 +4702,6 @@ public function getCustomSchemas() { return $this->customSchemas; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -4834,7 +4711,6 @@ public function getCustomerId() { return $this->customerId; } - public function setDeletionTime($deletionTime) { $this->deletionTime = $deletionTime; @@ -4844,7 +4720,6 @@ public function getDeletionTime() { return $this->deletionTime; } - public function setEmails($emails) { $this->emails = $emails; @@ -4854,7 +4729,6 @@ public function getEmails() { return $this->emails; } - public function setEtag($etag) { $this->etag = $etag; @@ -4864,7 +4738,6 @@ public function getEtag() { return $this->etag; } - public function setExternalIds($externalIds) { $this->externalIds = $externalIds; @@ -4874,7 +4747,6 @@ public function getExternalIds() { return $this->externalIds; } - public function setHashFunction($hashFunction) { $this->hashFunction = $hashFunction; @@ -4884,7 +4756,6 @@ public function getHashFunction() { return $this->hashFunction; } - public function setId($id) { $this->id = $id; @@ -4894,7 +4765,6 @@ public function getId() { return $this->id; } - public function setIms($ims) { $this->ims = $ims; @@ -4904,7 +4774,6 @@ public function getIms() { return $this->ims; } - public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { $this->includeInGlobalAddressList = $includeInGlobalAddressList; @@ -4914,7 +4783,6 @@ public function getIncludeInGlobalAddressList() { return $this->includeInGlobalAddressList; } - public function setIpWhitelisted($ipWhitelisted) { $this->ipWhitelisted = $ipWhitelisted; @@ -4924,7 +4792,6 @@ public function getIpWhitelisted() { return $this->ipWhitelisted; } - public function setIsAdmin($isAdmin) { $this->isAdmin = $isAdmin; @@ -4934,7 +4801,6 @@ public function getIsAdmin() { return $this->isAdmin; } - public function setIsDelegatedAdmin($isDelegatedAdmin) { $this->isDelegatedAdmin = $isDelegatedAdmin; @@ -4944,7 +4810,6 @@ public function getIsDelegatedAdmin() { return $this->isDelegatedAdmin; } - public function setIsMailboxSetup($isMailboxSetup) { $this->isMailboxSetup = $isMailboxSetup; @@ -4954,7 +4819,6 @@ public function getIsMailboxSetup() { return $this->isMailboxSetup; } - public function setKind($kind) { $this->kind = $kind; @@ -4964,7 +4828,6 @@ public function getKind() { return $this->kind; } - public function setLastLoginTime($lastLoginTime) { $this->lastLoginTime = $lastLoginTime; @@ -4974,7 +4837,6 @@ public function getLastLoginTime() { return $this->lastLoginTime; } - public function setName(Google_Service_Directory_UserName $name) { $this->name = $name; @@ -4984,7 +4846,6 @@ public function getName() { return $this->name; } - public function setNonEditableAliases($nonEditableAliases) { $this->nonEditableAliases = $nonEditableAliases; @@ -4994,7 +4855,6 @@ public function getNonEditableAliases() { return $this->nonEditableAliases; } - public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -5004,7 +4864,6 @@ public function getOrgUnitPath() { return $this->orgUnitPath; } - public function setOrganizations($organizations) { $this->organizations = $organizations; @@ -5014,7 +4873,6 @@ public function getOrganizations() { return $this->organizations; } - public function setPassword($password) { $this->password = $password; @@ -5024,7 +4882,6 @@ public function getPassword() { return $this->password; } - public function setPhones($phones) { $this->phones = $phones; @@ -5034,7 +4891,6 @@ public function getPhones() { return $this->phones; } - public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; @@ -5044,7 +4900,6 @@ public function getPrimaryEmail() { return $this->primaryEmail; } - public function setRelations($relations) { $this->relations = $relations; @@ -5054,7 +4909,6 @@ public function getRelations() { return $this->relations; } - public function setSuspended($suspended) { $this->suspended = $suspended; @@ -5064,7 +4918,6 @@ public function getSuspended() { return $this->suspended; } - public function setSuspensionReason($suspensionReason) { $this->suspensionReason = $suspensionReason; @@ -5074,7 +4927,6 @@ public function getSuspensionReason() { return $this->suspensionReason; } - public function setThumbnailPhotoUrl($thumbnailPhotoUrl) { $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; @@ -5084,6 +4936,7 @@ public function getThumbnailPhotoUrl() { return $this->thumbnailPhotoUrl; } + } class Google_Service_Directory_UserAddress extends Google_Model @@ -5113,7 +4966,6 @@ public function getCountry() { return $this->country; } - public function setCountryCode($countryCode) { $this->countryCode = $countryCode; @@ -5123,7 +4975,6 @@ public function getCountryCode() { return $this->countryCode; } - public function setCustomType($customType) { $this->customType = $customType; @@ -5133,7 +4984,6 @@ public function getCustomType() { return $this->customType; } - public function setExtendedAddress($extendedAddress) { $this->extendedAddress = $extendedAddress; @@ -5143,7 +4993,6 @@ public function getExtendedAddress() { return $this->extendedAddress; } - public function setFormatted($formatted) { $this->formatted = $formatted; @@ -5153,7 +5002,6 @@ public function getFormatted() { return $this->formatted; } - public function setLocality($locality) { $this->locality = $locality; @@ -5163,7 +5011,6 @@ public function getLocality() { return $this->locality; } - public function setPoBox($poBox) { $this->poBox = $poBox; @@ -5173,7 +5020,6 @@ public function getPoBox() { return $this->poBox; } - public function setPostalCode($postalCode) { $this->postalCode = $postalCode; @@ -5183,7 +5029,6 @@ public function getPostalCode() { return $this->postalCode; } - public function setPrimary($primary) { $this->primary = $primary; @@ -5193,7 +5038,6 @@ public function getPrimary() { return $this->primary; } - public function setRegion($region) { $this->region = $region; @@ -5203,7 +5047,6 @@ public function getRegion() { return $this->region; } - public function setSourceIsStructured($sourceIsStructured) { $this->sourceIsStructured = $sourceIsStructured; @@ -5213,7 +5056,6 @@ public function getSourceIsStructured() { return $this->sourceIsStructured; } - public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; @@ -5223,7 +5065,6 @@ public function getStreetAddress() { return $this->streetAddress; } - public function setType($type) { $this->type = $type; @@ -5233,18 +5074,23 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_UserCustomProperties extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Directory_UserCustomSchemas extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Directory_UserEmail extends Google_Model @@ -5265,7 +5111,6 @@ public function getAddress() { return $this->address; } - public function setCustomType($customType) { $this->customType = $customType; @@ -5275,7 +5120,6 @@ public function getCustomType() { return $this->customType; } - public function setPrimary($primary) { $this->primary = $primary; @@ -5285,7 +5129,6 @@ public function getPrimary() { return $this->primary; } - public function setType($type) { $this->type = $type; @@ -5295,6 +5138,7 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_UserExternalId extends Google_Model @@ -5314,7 +5158,6 @@ public function getCustomType() { return $this->customType; } - public function setType($type) { $this->type = $type; @@ -5324,7 +5167,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -5334,6 +5176,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Directory_UserIm extends Google_Model @@ -5356,7 +5199,6 @@ public function getCustomProtocol() { return $this->customProtocol; } - public function setCustomType($customType) { $this->customType = $customType; @@ -5366,7 +5208,6 @@ public function getCustomType() { return $this->customType; } - public function setIm($im) { $this->im = $im; @@ -5376,7 +5217,6 @@ public function getIm() { return $this->im; } - public function setPrimary($primary) { $this->primary = $primary; @@ -5386,7 +5226,6 @@ public function getPrimary() { return $this->primary; } - public function setProtocol($protocol) { $this->protocol = $protocol; @@ -5396,7 +5235,6 @@ public function getProtocol() { return $this->protocol; } - public function setType($type) { $this->type = $type; @@ -5406,6 +5244,7 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_UserMakeAdmin extends Google_Model @@ -5423,6 +5262,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Directory_UserName extends Google_Model @@ -5442,7 +5282,6 @@ public function getFamilyName() { return $this->familyName; } - public function setFullName($fullName) { $this->fullName = $fullName; @@ -5452,7 +5291,6 @@ public function getFullName() { return $this->fullName; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -5462,6 +5300,7 @@ public function getGivenName() { return $this->givenName; } + } class Google_Service_Directory_UserOrganization extends Google_Model @@ -5489,7 +5328,6 @@ public function getCostCenter() { return $this->costCenter; } - public function setCustomType($customType) { $this->customType = $customType; @@ -5499,7 +5337,6 @@ public function getCustomType() { return $this->customType; } - public function setDepartment($department) { $this->department = $department; @@ -5509,7 +5346,6 @@ public function getDepartment() { return $this->department; } - public function setDescription($description) { $this->description = $description; @@ -5519,7 +5355,6 @@ public function getDescription() { return $this->description; } - public function setDomain($domain) { $this->domain = $domain; @@ -5529,7 +5364,6 @@ public function getDomain() { return $this->domain; } - public function setLocation($location) { $this->location = $location; @@ -5539,7 +5373,6 @@ public function getLocation() { return $this->location; } - public function setName($name) { $this->name = $name; @@ -5549,7 +5382,6 @@ public function getName() { return $this->name; } - public function setPrimary($primary) { $this->primary = $primary; @@ -5559,7 +5391,6 @@ public function getPrimary() { return $this->primary; } - public function setSymbol($symbol) { $this->symbol = $symbol; @@ -5569,7 +5400,6 @@ public function getSymbol() { return $this->symbol; } - public function setTitle($title) { $this->title = $title; @@ -5579,7 +5409,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -5589,6 +5418,7 @@ public function getType() { return $this->type; } + } class Google_Service_Directory_UserPhone extends Google_Model @@ -5609,7 +5439,6 @@ public function getCustomType() { return $this->customType; } - public function setPrimary($primary) { $this->primary = $primary; @@ -5619,7 +5448,6 @@ public function getPrimary() { return $this->primary; } - public function setType($type) { $this->type = $type; @@ -5629,7 +5457,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -5639,6 +5466,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Directory_UserPhoto extends Google_Model @@ -5663,7 +5491,6 @@ public function getEtag() { return $this->etag; } - public function setHeight($height) { $this->height = $height; @@ -5673,7 +5500,6 @@ public function getHeight() { return $this->height; } - public function setId($id) { $this->id = $id; @@ -5683,7 +5509,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5693,7 +5518,6 @@ public function getKind() { return $this->kind; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -5703,7 +5527,6 @@ public function getMimeType() { return $this->mimeType; } - public function setPhotoData($photoData) { $this->photoData = $photoData; @@ -5713,7 +5536,6 @@ public function getPhotoData() { return $this->photoData; } - public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; @@ -5723,7 +5545,6 @@ public function getPrimaryEmail() { return $this->primaryEmail; } - public function setWidth($width) { $this->width = $width; @@ -5733,6 +5554,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Directory_UserRelation extends Google_Model @@ -5752,7 +5574,6 @@ public function getCustomType() { return $this->customType; } - public function setType($type) { $this->type = $type; @@ -5762,7 +5583,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -5772,6 +5592,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Directory_UserUndelete extends Google_Model @@ -5789,6 +5610,7 @@ public function getOrgUnitPath() { return $this->orgUnitPath; } + } class Google_Service_Directory_Users extends Google_Collection @@ -5813,7 +5635,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -5823,7 +5644,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5833,7 +5653,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTriggerEvent($triggerEvent) { $this->triggerEvent = $triggerEvent; @@ -5843,7 +5662,6 @@ public function getTriggerEvent() { return $this->triggerEvent; } - public function setUsers($users) { $this->users = $users; @@ -5853,6 +5671,7 @@ public function getUsers() { return $this->users; } + } class Google_Service_Directory_VerificationCode extends Google_Model @@ -5873,7 +5692,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -5883,7 +5701,6 @@ public function getKind() { return $this->kind; } - public function setUserId($userId) { $this->userId = $userId; @@ -5893,7 +5710,6 @@ public function getUserId() { return $this->userId; } - public function setVerificationCode($verificationCode) { $this->verificationCode = $verificationCode; @@ -5903,6 +5719,7 @@ public function getVerificationCode() { return $this->verificationCode; } + } class Google_Service_Directory_VerificationCodes extends Google_Collection @@ -5924,7 +5741,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -5934,7 +5750,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5944,4 +5759,5 @@ public function getKind() { return $this->kind; } + } From d6ce0dc8de576fc9c16e71389d4d12702d5601ee Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:11 -0700 Subject: [PATCH 0403/1274] Updated Urlshortener.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Urlshortener.php | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index 2ac1b6a32..8a7bc7046 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -182,7 +182,6 @@ public function getBrowsers() { return $this->browsers; } - public function setCountries($countries) { $this->countries = $countries; @@ -192,7 +191,6 @@ public function getCountries() { return $this->countries; } - public function setLongUrlClicks($longUrlClicks) { $this->longUrlClicks = $longUrlClicks; @@ -202,7 +200,6 @@ public function getLongUrlClicks() { return $this->longUrlClicks; } - public function setPlatforms($platforms) { $this->platforms = $platforms; @@ -212,7 +209,6 @@ public function getPlatforms() { return $this->platforms; } - public function setReferrers($referrers) { $this->referrers = $referrers; @@ -222,7 +218,6 @@ public function getReferrers() { return $this->referrers; } - public function setShortUrlClicks($shortUrlClicks) { $this->shortUrlClicks = $shortUrlClicks; @@ -232,6 +227,7 @@ public function getShortUrlClicks() { return $this->shortUrlClicks; } + } class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model @@ -258,7 +254,6 @@ public function getAllTime() { return $this->allTime; } - public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day) { $this->day = $day; @@ -268,7 +263,6 @@ public function getDay() { return $this->day; } - public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month) { $this->month = $month; @@ -278,7 +272,6 @@ public function getMonth() { return $this->month; } - public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours) { $this->twoHours = $twoHours; @@ -288,7 +281,6 @@ public function getTwoHours() { return $this->twoHours; } - public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week) { $this->week = $week; @@ -298,6 +290,7 @@ public function getWeek() { return $this->week; } + } class Google_Service_Urlshortener_StringCount extends Google_Model @@ -316,7 +309,6 @@ public function getCount() { return $this->count; } - public function setId($id) { $this->id = $id; @@ -326,6 +318,7 @@ public function getId() { return $this->id; } + } class Google_Service_Urlshortener_Url extends Google_Model @@ -349,7 +342,6 @@ public function getAnalytics() { return $this->analytics; } - public function setCreated($created) { $this->created = $created; @@ -359,7 +351,6 @@ public function getCreated() { return $this->created; } - public function setId($id) { $this->id = $id; @@ -369,7 +360,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -379,7 +369,6 @@ public function getKind() { return $this->kind; } - public function setLongUrl($longUrl) { $this->longUrl = $longUrl; @@ -389,7 +378,6 @@ public function getLongUrl() { return $this->longUrl; } - public function setStatus($status) { $this->status = $status; @@ -399,6 +387,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Urlshortener_UrlHistory extends Google_Collection @@ -422,7 +411,6 @@ public function getItems() { return $this->items; } - public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; @@ -432,7 +420,6 @@ public function getItemsPerPage() { return $this->itemsPerPage; } - public function setKind($kind) { $this->kind = $kind; @@ -442,7 +429,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -452,7 +438,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -462,4 +447,5 @@ public function getTotalItems() { return $this->totalItems; } + } From a8b8e906c049f17d140902612c24d3ddb91fccb5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:12 -0700 Subject: [PATCH 0404/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 111 +++++-------------------- 1 file changed, 20 insertions(+), 91 deletions(-) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index cc07873bc..990c50259 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -725,7 +725,6 @@ public function getBidderLocation() { return $this->bidderLocation; } - public function setCookieMatchingNid($cookieMatchingNid) { $this->cookieMatchingNid = $cookieMatchingNid; @@ -735,7 +734,6 @@ public function getCookieMatchingNid() { return $this->cookieMatchingNid; } - public function setCookieMatchingUrl($cookieMatchingUrl) { $this->cookieMatchingUrl = $cookieMatchingUrl; @@ -745,7 +743,6 @@ public function getCookieMatchingUrl() { return $this->cookieMatchingUrl; } - public function setId($id) { $this->id = $id; @@ -755,7 +752,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -765,7 +761,6 @@ public function getKind() { return $this->kind; } - public function setMaximumTotalQps($maximumTotalQps) { $this->maximumTotalQps = $maximumTotalQps; @@ -775,6 +770,7 @@ public function getMaximumTotalQps() { return $this->maximumTotalQps; } + } class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model @@ -794,7 +790,6 @@ public function getMaximumQps() { return $this->maximumQps; } - public function setRegion($region) { $this->region = $region; @@ -804,7 +799,6 @@ public function getRegion() { return $this->region; } - public function setUrl($url) { $this->url = $url; @@ -814,6 +808,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection @@ -834,7 +829,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -844,6 +838,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection @@ -865,7 +860,6 @@ public function getAccountId() { return $this->accountId; } - public function setAccountName($accountName) { $this->accountName = $accountName; @@ -875,7 +869,6 @@ public function getAccountName() { return $this->accountName; } - public function setBillingId($billingId) { $this->billingId = $billingId; @@ -885,7 +878,6 @@ public function getBillingId() { return $this->billingId; } - public function setKind($kind) { $this->kind = $kind; @@ -895,6 +887,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection @@ -915,7 +908,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -925,6 +917,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeBuyer_Creative extends Google_Collection @@ -966,7 +959,6 @@ public function getHTMLSnippet() { return $this->hTMLSnippet; } - public function setAccountId($accountId) { $this->accountId = $accountId; @@ -976,7 +968,6 @@ public function getAccountId() { return $this->accountId; } - public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; @@ -986,7 +977,6 @@ public function getAdvertiserId() { return $this->advertiserId; } - public function setAdvertiserName($advertiserName) { $this->advertiserName = $advertiserName; @@ -996,7 +986,6 @@ public function getAdvertiserName() { return $this->advertiserName; } - public function setAgencyId($agencyId) { $this->agencyId = $agencyId; @@ -1006,7 +995,6 @@ public function getAgencyId() { return $this->agencyId; } - public function setAttribute($attribute) { $this->attribute = $attribute; @@ -1016,7 +1004,6 @@ public function getAttribute() { return $this->attribute; } - public function setBuyerCreativeId($buyerCreativeId) { $this->buyerCreativeId = $buyerCreativeId; @@ -1026,7 +1013,6 @@ public function getBuyerCreativeId() { return $this->buyerCreativeId; } - public function setClickThroughUrl($clickThroughUrl) { $this->clickThroughUrl = $clickThroughUrl; @@ -1036,7 +1022,6 @@ public function getClickThroughUrl() { return $this->clickThroughUrl; } - public function setCorrections($corrections) { $this->corrections = $corrections; @@ -1046,7 +1031,6 @@ public function getCorrections() { return $this->corrections; } - public function setDisapprovalReasons($disapprovalReasons) { $this->disapprovalReasons = $disapprovalReasons; @@ -1056,7 +1040,6 @@ public function getDisapprovalReasons() { return $this->disapprovalReasons; } - public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) { $this->filteringReasons = $filteringReasons; @@ -1066,7 +1049,6 @@ public function getFilteringReasons() { return $this->filteringReasons; } - public function setHeight($height) { $this->height = $height; @@ -1076,7 +1058,6 @@ public function getHeight() { return $this->height; } - public function setKind($kind) { $this->kind = $kind; @@ -1086,7 +1067,6 @@ public function getKind() { return $this->kind; } - public function setProductCategories($productCategories) { $this->productCategories = $productCategories; @@ -1096,7 +1076,6 @@ public function getProductCategories() { return $this->productCategories; } - public function setRestrictedCategories($restrictedCategories) { $this->restrictedCategories = $restrictedCategories; @@ -1106,7 +1085,6 @@ public function getRestrictedCategories() { return $this->restrictedCategories; } - public function setSensitiveCategories($sensitiveCategories) { $this->sensitiveCategories = $sensitiveCategories; @@ -1116,7 +1094,6 @@ public function getSensitiveCategories() { return $this->sensitiveCategories; } - public function setStatus($status) { $this->status = $status; @@ -1126,7 +1103,6 @@ public function getStatus() { return $this->status; } - public function setVendorType($vendorType) { $this->vendorType = $vendorType; @@ -1136,7 +1112,6 @@ public function getVendorType() { return $this->vendorType; } - public function setVideoURL($videoURL) { $this->videoURL = $videoURL; @@ -1146,7 +1121,6 @@ public function getVideoURL() { return $this->videoURL; } - public function setWidth($width) { $this->width = $width; @@ -1156,6 +1130,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection @@ -1175,7 +1150,6 @@ public function getDetails() { return $this->details; } - public function setReason($reason) { $this->reason = $reason; @@ -1185,6 +1159,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection @@ -1204,7 +1179,6 @@ public function getDetails() { return $this->details; } - public function setReason($reason) { $this->reason = $reason; @@ -1214,6 +1188,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection @@ -1234,7 +1209,6 @@ public function getDate() { return $this->date; } - public function setReasons($reasons) { $this->reasons = $reasons; @@ -1244,6 +1218,7 @@ public function getReasons() { return $this->reasons; } + } class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model @@ -1262,7 +1237,6 @@ public function getFilteringCount() { return $this->filteringCount; } - public function setFilteringStatus($filteringStatus) { $this->filteringStatus = $filteringStatus; @@ -1272,6 +1246,7 @@ public function getFilteringStatus() { return $this->filteringStatus; } + } class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection @@ -1293,7 +1268,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1303,7 +1277,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1313,6 +1286,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model @@ -1341,7 +1315,6 @@ public function getAccountId() { return $this->accountId; } - public function setAdvertiser($advertiser) { $this->advertiser = $advertiser; @@ -1351,7 +1324,6 @@ public function getAdvertiser() { return $this->advertiser; } - public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; @@ -1361,7 +1333,6 @@ public function getCurrencyCode() { return $this->currencyCode; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1371,7 +1342,6 @@ public function getEndTime() { return $this->endTime; } - public function setFixedCpm($fixedCpm) { $this->fixedCpm = $fixedCpm; @@ -1381,7 +1351,6 @@ public function getFixedCpm() { return $this->fixedCpm; } - public function setId($id) { $this->id = $id; @@ -1391,7 +1360,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1401,7 +1369,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1411,7 +1378,6 @@ public function getName() { return $this->name; } - public function setPrivateExchangeMinCpm($privateExchangeMinCpm) { $this->privateExchangeMinCpm = $privateExchangeMinCpm; @@ -1421,7 +1387,6 @@ public function getPrivateExchangeMinCpm() { return $this->privateExchangeMinCpm; } - public function setPublisherBlocksOverriden($publisherBlocksOverriden) { $this->publisherBlocksOverriden = $publisherBlocksOverriden; @@ -1431,7 +1396,6 @@ public function getPublisherBlocksOverriden() { return $this->publisherBlocksOverriden; } - public function setSellerNetwork($sellerNetwork) { $this->sellerNetwork = $sellerNetwork; @@ -1441,7 +1405,6 @@ public function getSellerNetwork() { return $this->sellerNetwork; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1451,6 +1414,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection @@ -1471,7 +1435,6 @@ public function getDirectDeals() { return $this->directDeals; } - public function setKind($kind) { $this->kind = $kind; @@ -1481,6 +1444,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection @@ -1514,7 +1478,6 @@ public function getCalloutStatusRate() { return $this->calloutStatusRate; } - public function setCookieMatcherStatusRate($cookieMatcherStatusRate) { $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; @@ -1524,7 +1487,6 @@ public function getCookieMatcherStatusRate() { return $this->cookieMatcherStatusRate; } - public function setCreativeStatusRate($creativeStatusRate) { $this->creativeStatusRate = $creativeStatusRate; @@ -1534,7 +1496,6 @@ public function getCreativeStatusRate() { return $this->creativeStatusRate; } - public function setHostedMatchStatusRate($hostedMatchStatusRate) { $this->hostedMatchStatusRate = $hostedMatchStatusRate; @@ -1544,7 +1505,6 @@ public function getHostedMatchStatusRate() { return $this->hostedMatchStatusRate; } - public function setKind($kind) { $this->kind = $kind; @@ -1554,7 +1514,6 @@ public function getKind() { return $this->kind; } - public function setLatency50thPercentile($latency50thPercentile) { $this->latency50thPercentile = $latency50thPercentile; @@ -1564,7 +1523,6 @@ public function getLatency50thPercentile() { return $this->latency50thPercentile; } - public function setLatency85thPercentile($latency85thPercentile) { $this->latency85thPercentile = $latency85thPercentile; @@ -1574,7 +1532,6 @@ public function getLatency85thPercentile() { return $this->latency85thPercentile; } - public function setLatency95thPercentile($latency95thPercentile) { $this->latency95thPercentile = $latency95thPercentile; @@ -1584,7 +1541,6 @@ public function getLatency95thPercentile() { return $this->latency95thPercentile; } - public function setNoQuotaInRegion($noQuotaInRegion) { $this->noQuotaInRegion = $noQuotaInRegion; @@ -1594,7 +1550,6 @@ public function getNoQuotaInRegion() { return $this->noQuotaInRegion; } - public function setOutOfQuota($outOfQuota) { $this->outOfQuota = $outOfQuota; @@ -1604,7 +1559,6 @@ public function getOutOfQuota() { return $this->outOfQuota; } - public function setPixelMatchRequests($pixelMatchRequests) { $this->pixelMatchRequests = $pixelMatchRequests; @@ -1614,7 +1568,6 @@ public function getPixelMatchRequests() { return $this->pixelMatchRequests; } - public function setPixelMatchResponses($pixelMatchResponses) { $this->pixelMatchResponses = $pixelMatchResponses; @@ -1624,7 +1577,6 @@ public function getPixelMatchResponses() { return $this->pixelMatchResponses; } - public function setQuotaConfiguredLimit($quotaConfiguredLimit) { $this->quotaConfiguredLimit = $quotaConfiguredLimit; @@ -1634,7 +1586,6 @@ public function getQuotaConfiguredLimit() { return $this->quotaConfiguredLimit; } - public function setQuotaThrottledLimit($quotaThrottledLimit) { $this->quotaThrottledLimit = $quotaThrottledLimit; @@ -1644,7 +1595,6 @@ public function getQuotaThrottledLimit() { return $this->quotaThrottledLimit; } - public function setRegion($region) { $this->region = $region; @@ -1654,7 +1604,6 @@ public function getRegion() { return $this->region; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1664,6 +1613,7 @@ public function getTimestamp() { return $this->timestamp; } + } class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection @@ -1684,7 +1634,6 @@ public function getKind() { return $this->kind; } - public function setPerformanceReport($performanceReport) { $this->performanceReport = $performanceReport; @@ -1694,6 +1643,7 @@ public function getPerformanceReport() { return $this->performanceReport; } + } class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection @@ -1737,7 +1687,6 @@ public function getBillingId() { return $this->billingId; } - public function setConfigId($configId) { $this->configId = $configId; @@ -1747,7 +1696,6 @@ public function getConfigId() { return $this->configId; } - public function setConfigName($configName) { $this->configName = $configName; @@ -1757,7 +1705,6 @@ public function getConfigName() { return $this->configName; } - public function setCreativeType($creativeType) { $this->creativeType = $creativeType; @@ -1767,7 +1714,6 @@ public function getCreativeType() { return $this->creativeType; } - public function setDimensions($dimensions) { $this->dimensions = $dimensions; @@ -1777,7 +1723,6 @@ public function getDimensions() { return $this->dimensions; } - public function setExcludedContentLabels($excludedContentLabels) { $this->excludedContentLabels = $excludedContentLabels; @@ -1787,7 +1732,6 @@ public function getExcludedContentLabels() { return $this->excludedContentLabels; } - public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) { $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; @@ -1797,7 +1741,6 @@ public function getExcludedGeoCriteriaIds() { return $this->excludedGeoCriteriaIds; } - public function setExcludedPlacements($excludedPlacements) { $this->excludedPlacements = $excludedPlacements; @@ -1807,7 +1750,6 @@ public function getExcludedPlacements() { return $this->excludedPlacements; } - public function setExcludedUserLists($excludedUserLists) { $this->excludedUserLists = $excludedUserLists; @@ -1817,7 +1759,6 @@ public function getExcludedUserLists() { return $this->excludedUserLists; } - public function setExcludedVerticals($excludedVerticals) { $this->excludedVerticals = $excludedVerticals; @@ -1827,7 +1768,6 @@ public function getExcludedVerticals() { return $this->excludedVerticals; } - public function setGeoCriteriaIds($geoCriteriaIds) { $this->geoCriteriaIds = $geoCriteriaIds; @@ -1837,7 +1777,6 @@ public function getGeoCriteriaIds() { return $this->geoCriteriaIds; } - public function setIsActive($isActive) { $this->isActive = $isActive; @@ -1847,7 +1786,6 @@ public function getIsActive() { return $this->isActive; } - public function setKind($kind) { $this->kind = $kind; @@ -1857,7 +1795,6 @@ public function getKind() { return $this->kind; } - public function setLanguages($languages) { $this->languages = $languages; @@ -1867,7 +1804,6 @@ public function getLanguages() { return $this->languages; } - public function setMobileCarriers($mobileCarriers) { $this->mobileCarriers = $mobileCarriers; @@ -1877,7 +1813,6 @@ public function getMobileCarriers() { return $this->mobileCarriers; } - public function setMobileDevices($mobileDevices) { $this->mobileDevices = $mobileDevices; @@ -1887,7 +1822,6 @@ public function getMobileDevices() { return $this->mobileDevices; } - public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) { $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; @@ -1897,7 +1831,6 @@ public function getMobileOperatingSystemVersions() { return $this->mobileOperatingSystemVersions; } - public function setPlacements($placements) { $this->placements = $placements; @@ -1907,7 +1840,6 @@ public function getPlacements() { return $this->placements; } - public function setPlatforms($platforms) { $this->platforms = $platforms; @@ -1917,7 +1849,6 @@ public function getPlatforms() { return $this->platforms; } - public function setSupportedCreativeAttributes($supportedCreativeAttributes) { $this->supportedCreativeAttributes = $supportedCreativeAttributes; @@ -1927,7 +1858,6 @@ public function getSupportedCreativeAttributes() { return $this->supportedCreativeAttributes; } - public function setUserLists($userLists) { $this->userLists = $userLists; @@ -1937,7 +1867,6 @@ public function getUserLists() { return $this->userLists; } - public function setVendorTypes($vendorTypes) { $this->vendorTypes = $vendorTypes; @@ -1947,7 +1876,6 @@ public function getVendorTypes() { return $this->vendorTypes; } - public function setVerticals($verticals) { $this->verticals = $verticals; @@ -1957,6 +1885,7 @@ public function getVerticals() { return $this->verticals; } + } class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model @@ -1975,7 +1904,6 @@ public function getHeight() { return $this->height; } - public function setWidth($width) { $this->width = $width; @@ -1985,6 +1913,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model @@ -2003,7 +1932,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -2013,6 +1941,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection @@ -2033,7 +1962,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2043,6 +1971,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model @@ -2061,7 +1990,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -2071,4 +1999,5 @@ public function getType() { return $this->type; } + } From e2cf78780f34b65c19df5aed41bb4b77007cef42 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:12 -0700 Subject: [PATCH 0405/1274] Updated Licensing.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Licensing.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 74d9d21c5..9e69b2d4b 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -384,7 +384,6 @@ public function getEtags() { return $this->etags; } - public function setKind($kind) { $this->kind = $kind; @@ -394,7 +393,6 @@ public function getKind() { return $this->kind; } - public function setProductId($productId) { $this->productId = $productId; @@ -404,7 +402,6 @@ public function getProductId() { return $this->productId; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -414,7 +411,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSkuId($skuId) { $this->skuId = $skuId; @@ -424,7 +420,6 @@ public function getSkuId() { return $this->skuId; } - public function setUserId($userId) { $this->userId = $userId; @@ -434,6 +429,7 @@ public function getUserId() { return $this->userId; } + } class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model @@ -451,6 +447,7 @@ public function getUserId() { return $this->userId; } + } class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection @@ -473,7 +470,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -483,7 +479,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -493,7 +488,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -503,4 +497,5 @@ public function getNextPageToken() { return $this->nextPageToken; } + } From 63f2d41cbaada2cbc0a279868685136b144960ca Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:13 -0700 Subject: [PATCH 0406/1274] Updated Games.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Games.php | 480 ++++++++--------------------------- 1 file changed, 108 insertions(+), 372 deletions(-) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index c936cbd24..6ac8824e5 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -1225,7 +1225,7 @@ class Google_Service_Games_Applications_Resource extends Google_Service_Resource * response will not include any instance data. (applications.get) * * @param string $applicationId - * The application being requested. + * The application ID from the Google Play developer console. * @param array $optParams Optional parameters. * * @opt_param string platformType @@ -2308,7 +2308,6 @@ public function getAchievementType() { return $this->achievementType; } - public function setDescription($description) { $this->description = $description; @@ -2318,7 +2317,6 @@ public function getDescription() { return $this->description; } - public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; @@ -2328,7 +2326,6 @@ public function getExperiencePoints() { return $this->experiencePoints; } - public function setFormattedTotalSteps($formattedTotalSteps) { $this->formattedTotalSteps = $formattedTotalSteps; @@ -2338,7 +2335,6 @@ public function getFormattedTotalSteps() { return $this->formattedTotalSteps; } - public function setId($id) { $this->id = $id; @@ -2348,7 +2344,6 @@ public function getId() { return $this->id; } - public function setInitialState($initialState) { $this->initialState = $initialState; @@ -2358,7 +2353,6 @@ public function getInitialState() { return $this->initialState; } - public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault) { $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault; @@ -2368,7 +2362,6 @@ public function getIsRevealedIconUrlDefault() { return $this->isRevealedIconUrlDefault; } - public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault) { $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault; @@ -2378,7 +2371,6 @@ public function getIsUnlockedIconUrlDefault() { return $this->isUnlockedIconUrlDefault; } - public function setKind($kind) { $this->kind = $kind; @@ -2388,7 +2380,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2398,7 +2389,6 @@ public function getName() { return $this->name; } - public function setRevealedIconUrl($revealedIconUrl) { $this->revealedIconUrl = $revealedIconUrl; @@ -2408,7 +2398,6 @@ public function getRevealedIconUrl() { return $this->revealedIconUrl; } - public function setTotalSteps($totalSteps) { $this->totalSteps = $totalSteps; @@ -2418,7 +2407,6 @@ public function getTotalSteps() { return $this->totalSteps; } - public function setUnlockedIconUrl($unlockedIconUrl) { $this->unlockedIconUrl = $unlockedIconUrl; @@ -2428,6 +2416,7 @@ public function getUnlockedIconUrl() { return $this->unlockedIconUrl; } + } class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection @@ -2449,7 +2438,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2459,7 +2447,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2469,6 +2456,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_AchievementIncrementResponse extends Google_Model @@ -2488,7 +2476,6 @@ public function getCurrentSteps() { return $this->currentSteps; } - public function setKind($kind) { $this->kind = $kind; @@ -2498,7 +2485,6 @@ public function getKind() { return $this->kind; } - public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; @@ -2508,6 +2494,7 @@ public function getNewlyUnlocked() { return $this->newlyUnlocked; } + } class Google_Service_Games_AchievementRevealResponse extends Google_Model @@ -2526,7 +2513,6 @@ public function getCurrentState() { return $this->currentState; } - public function setKind($kind) { $this->kind = $kind; @@ -2536,6 +2522,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model @@ -2555,7 +2542,6 @@ public function getCurrentSteps() { return $this->currentSteps; } - public function setKind($kind) { $this->kind = $kind; @@ -2565,7 +2551,6 @@ public function getKind() { return $this->kind; } - public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; @@ -2575,6 +2560,7 @@ public function getNewlyUnlocked() { return $this->newlyUnlocked; } + } class Google_Service_Games_AchievementUnlockResponse extends Google_Model @@ -2593,7 +2579,6 @@ public function getKind() { return $this->kind; } - public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; @@ -2603,6 +2588,7 @@ public function getNewlyUnlocked() { return $this->newlyUnlocked; } + } class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection @@ -2623,7 +2609,6 @@ public function getKind() { return $this->kind; } - public function setUpdates($updates) { $this->updates = $updates; @@ -2633,6 +2618,7 @@ public function getUpdates() { return $this->updates; } + } class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection @@ -2653,7 +2639,6 @@ public function getKind() { return $this->kind; } - public function setUpdatedAchievements($updatedAchievements) { $this->updatedAchievements = $updatedAchievements; @@ -2663,6 +2648,7 @@ public function getUpdatedAchievements() { return $this->updatedAchievements; } + } class Google_Service_Games_AchievementUpdateRequest extends Google_Model @@ -2686,7 +2672,6 @@ public function getAchievementId() { return $this->achievementId; } - public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload) { $this->incrementPayload = $incrementPayload; @@ -2696,7 +2681,6 @@ public function getIncrementPayload() { return $this->incrementPayload; } - public function setKind($kind) { $this->kind = $kind; @@ -2706,7 +2690,6 @@ public function getKind() { return $this->kind; } - public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload) { $this->setStepsAtLeastPayload = $setStepsAtLeastPayload; @@ -2716,7 +2699,6 @@ public function getSetStepsAtLeastPayload() { return $this->setStepsAtLeastPayload; } - public function setUpdateType($updateType) { $this->updateType = $updateType; @@ -2726,6 +2708,7 @@ public function getUpdateType() { return $this->updateType; } + } class Google_Service_Games_AchievementUpdateResponse extends Google_Model @@ -2748,7 +2731,6 @@ public function getAchievementId() { return $this->achievementId; } - public function setCurrentState($currentState) { $this->currentState = $currentState; @@ -2758,7 +2740,6 @@ public function getCurrentState() { return $this->currentState; } - public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; @@ -2768,7 +2749,6 @@ public function getCurrentSteps() { return $this->currentSteps; } - public function setKind($kind) { $this->kind = $kind; @@ -2778,7 +2758,6 @@ public function getKind() { return $this->kind; } - public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; @@ -2788,7 +2767,6 @@ public function getNewlyUnlocked() { return $this->newlyUnlocked; } - public function setUpdateOccurred($updateOccurred) { $this->updateOccurred = $updateOccurred; @@ -2798,6 +2776,7 @@ public function getUpdateOccurred() { return $this->updateOccurred; } + } class Google_Service_Games_AggregateStats extends Google_Model @@ -2819,7 +2798,6 @@ public function getCount() { return $this->count; } - public function setKind($kind) { $this->kind = $kind; @@ -2829,7 +2807,6 @@ public function getKind() { return $this->kind; } - public function setMax($max) { $this->max = $max; @@ -2839,7 +2816,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -2849,7 +2825,6 @@ public function getMin() { return $this->min; } - public function setSum($sum) { $this->sum = $sum; @@ -2859,6 +2834,7 @@ public function getSum() { return $this->sum; } + } class Google_Service_Games_AnonymousPlayer extends Google_Model @@ -2878,7 +2854,6 @@ public function getAvatarImageUrl() { return $this->avatarImageUrl; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -2888,7 +2863,6 @@ public function getDisplayName() { return $this->displayName; } - public function setKind($kind) { $this->kind = $kind; @@ -2898,6 +2872,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_Application extends Google_Collection @@ -2933,7 +2908,6 @@ public function getAchievementCount() { return $this->achievementCount; } - public function setAssets($assets) { $this->assets = $assets; @@ -2943,7 +2917,6 @@ public function getAssets() { return $this->assets; } - public function setAuthor($author) { $this->author = $author; @@ -2953,7 +2926,6 @@ public function getAuthor() { return $this->author; } - public function setCategory(Google_Service_Games_ApplicationCategory $category) { $this->category = $category; @@ -2963,7 +2935,6 @@ public function getCategory() { return $this->category; } - public function setDescription($description) { $this->description = $description; @@ -2973,7 +2944,6 @@ public function getDescription() { return $this->description; } - public function setEnabledFeatures($enabledFeatures) { $this->enabledFeatures = $enabledFeatures; @@ -2983,7 +2953,6 @@ public function getEnabledFeatures() { return $this->enabledFeatures; } - public function setId($id) { $this->id = $id; @@ -2993,7 +2962,6 @@ public function getId() { return $this->id; } - public function setInstances($instances) { $this->instances = $instances; @@ -3003,7 +2971,6 @@ public function getInstances() { return $this->instances; } - public function setKind($kind) { $this->kind = $kind; @@ -3013,7 +2980,6 @@ public function getKind() { return $this->kind; } - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; @@ -3023,7 +2989,6 @@ public function getLastUpdatedTimestamp() { return $this->lastUpdatedTimestamp; } - public function setLeaderboardCount($leaderboardCount) { $this->leaderboardCount = $leaderboardCount; @@ -3033,7 +2998,6 @@ public function getLeaderboardCount() { return $this->leaderboardCount; } - public function setName($name) { $this->name = $name; @@ -3043,7 +3007,6 @@ public function getName() { return $this->name; } - public function setThemeColor($themeColor) { $this->themeColor = $themeColor; @@ -3053,6 +3016,7 @@ public function getThemeColor() { return $this->themeColor; } + } class Google_Service_Games_ApplicationCategory extends Google_Model @@ -3072,7 +3036,6 @@ public function getKind() { return $this->kind; } - public function setPrimary($primary) { $this->primary = $primary; @@ -3082,7 +3045,6 @@ public function getPrimary() { return $this->primary; } - public function setSecondary($secondary) { $this->secondary = $secondary; @@ -3092,6 +3054,7 @@ public function getSecondary() { return $this->secondary; } + } class Google_Service_Games_Category extends Google_Model @@ -3111,7 +3074,6 @@ public function getCategory() { return $this->category; } - public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; @@ -3121,7 +3083,6 @@ public function getExperiencePoints() { return $this->experiencePoints; } - public function setKind($kind) { $this->kind = $kind; @@ -3131,6 +3092,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_CategoryListResponse extends Google_Collection @@ -3152,7 +3114,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3162,7 +3123,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3172,6 +3132,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_EventBatchRecordFailure extends Google_Model @@ -3192,7 +3153,6 @@ public function getFailureCause() { return $this->failureCause; } - public function setKind($kind) { $this->kind = $kind; @@ -3202,7 +3162,6 @@ public function getKind() { return $this->kind; } - public function setRange(Google_Service_Games_EventPeriodRange $range) { $this->range = $range; @@ -3212,6 +3171,7 @@ public function getRange() { return $this->range; } + } class Google_Service_Games_EventChild extends Google_Model @@ -3230,7 +3190,6 @@ public function getChildId() { return $this->childId; } - public function setKind($kind) { $this->kind = $kind; @@ -3240,6 +3199,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_EventDefinition extends Google_Collection @@ -3266,7 +3226,6 @@ public function getChildEvents() { return $this->childEvents; } - public function setDescription($description) { $this->description = $description; @@ -3276,7 +3235,6 @@ public function getDescription() { return $this->description; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3286,7 +3244,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3296,7 +3253,6 @@ public function getId() { return $this->id; } - public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; @@ -3306,7 +3262,6 @@ public function getImageUrl() { return $this->imageUrl; } - public function setIsDefaultImageUrl($isDefaultImageUrl) { $this->isDefaultImageUrl = $isDefaultImageUrl; @@ -3316,7 +3271,6 @@ public function getIsDefaultImageUrl() { return $this->isDefaultImageUrl; } - public function setKind($kind) { $this->kind = $kind; @@ -3326,7 +3280,6 @@ public function getKind() { return $this->kind; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -3336,6 +3289,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_Games_EventDefinitionListResponse extends Google_Collection @@ -3357,7 +3311,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3367,7 +3320,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3377,6 +3329,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_EventPeriodRange extends Google_Model @@ -3396,7 +3349,6 @@ public function getKind() { return $this->kind; } - public function setPeriodEndMillis($periodEndMillis) { $this->periodEndMillis = $periodEndMillis; @@ -3406,7 +3358,6 @@ public function getPeriodEndMillis() { return $this->periodEndMillis; } - public function setPeriodStartMillis($periodStartMillis) { $this->periodStartMillis = $periodStartMillis; @@ -3416,6 +3367,7 @@ public function getPeriodStartMillis() { return $this->periodStartMillis; } + } class Google_Service_Games_EventPeriodUpdate extends Google_Collection @@ -3438,7 +3390,6 @@ public function getKind() { return $this->kind; } - public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) { $this->timePeriod = $timePeriod; @@ -3448,7 +3399,6 @@ public function getTimePeriod() { return $this->timePeriod; } - public function setUpdates($updates) { $this->updates = $updates; @@ -3458,6 +3408,7 @@ public function getUpdates() { return $this->updates; } + } class Google_Service_Games_EventRecordFailure extends Google_Model @@ -3477,7 +3428,6 @@ public function getEventId() { return $this->eventId; } - public function setFailureCause($failureCause) { $this->failureCause = $failureCause; @@ -3487,7 +3437,6 @@ public function getFailureCause() { return $this->failureCause; } - public function setKind($kind) { $this->kind = $kind; @@ -3497,6 +3446,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_EventRecordRequest extends Google_Collection @@ -3519,7 +3469,6 @@ public function getCurrentTimeMillis() { return $this->currentTimeMillis; } - public function setKind($kind) { $this->kind = $kind; @@ -3529,7 +3478,6 @@ public function getKind() { return $this->kind; } - public function setRequestId($requestId) { $this->requestId = $requestId; @@ -3539,7 +3487,6 @@ public function getRequestId() { return $this->requestId; } - public function setTimePeriods($timePeriods) { $this->timePeriods = $timePeriods; @@ -3549,6 +3496,7 @@ public function getTimePeriods() { return $this->timePeriods; } + } class Google_Service_Games_EventUpdateRequest extends Google_Model @@ -3568,7 +3516,6 @@ public function getDefinitionId() { return $this->definitionId; } - public function setKind($kind) { $this->kind = $kind; @@ -3578,7 +3525,6 @@ public function getKind() { return $this->kind; } - public function setUpdateCount($updateCount) { $this->updateCount = $updateCount; @@ -3588,6 +3534,7 @@ public function getUpdateCount() { return $this->updateCount; } + } class Google_Service_Games_EventUpdateResponse extends Google_Collection @@ -3612,7 +3559,6 @@ public function getBatchFailures() { return $this->batchFailures; } - public function setEventFailures($eventFailures) { $this->eventFailures = $eventFailures; @@ -3622,7 +3568,6 @@ public function getEventFailures() { return $this->eventFailures; } - public function setKind($kind) { $this->kind = $kind; @@ -3632,7 +3577,6 @@ public function getKind() { return $this->kind; } - public function setPlayerEvents($playerEvents) { $this->playerEvents = $playerEvents; @@ -3642,6 +3586,7 @@ public function getPlayerEvents() { return $this->playerEvents; } + } class Google_Service_Games_GamesAchievementIncrement extends Google_Model @@ -3661,7 +3606,6 @@ public function getKind() { return $this->kind; } - public function setRequestId($requestId) { $this->requestId = $requestId; @@ -3671,7 +3615,6 @@ public function getRequestId() { return $this->requestId; } - public function setSteps($steps) { $this->steps = $steps; @@ -3681,6 +3624,7 @@ public function getSteps() { return $this->steps; } + } class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model @@ -3699,7 +3643,6 @@ public function getKind() { return $this->kind; } - public function setSteps($steps) { $this->steps = $steps; @@ -3709,6 +3652,7 @@ public function getSteps() { return $this->steps; } + } class Google_Service_Games_ImageAsset extends Google_Model @@ -3730,7 +3674,6 @@ public function getHeight() { return $this->height; } - public function setKind($kind) { $this->kind = $kind; @@ -3740,7 +3683,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3750,7 +3692,6 @@ public function getName() { return $this->name; } - public function setUrl($url) { $this->url = $url; @@ -3760,7 +3701,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -3770,6 +3710,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Games_Instance extends Google_Model @@ -3798,7 +3739,6 @@ public function getAcquisitionUri() { return $this->acquisitionUri; } - public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) { $this->androidInstance = $androidInstance; @@ -3808,7 +3748,6 @@ public function getAndroidInstance() { return $this->androidInstance; } - public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) { $this->iosInstance = $iosInstance; @@ -3818,7 +3757,6 @@ public function getIosInstance() { return $this->iosInstance; } - public function setKind($kind) { $this->kind = $kind; @@ -3828,7 +3766,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -3838,7 +3775,6 @@ public function getName() { return $this->name; } - public function setPlatformType($platformType) { $this->platformType = $platformType; @@ -3848,7 +3784,6 @@ public function getPlatformType() { return $this->platformType; } - public function setRealtimePlay($realtimePlay) { $this->realtimePlay = $realtimePlay; @@ -3858,7 +3793,6 @@ public function getRealtimePlay() { return $this->realtimePlay; } - public function setTurnBasedPlay($turnBasedPlay) { $this->turnBasedPlay = $turnBasedPlay; @@ -3868,7 +3802,6 @@ public function getTurnBasedPlay() { return $this->turnBasedPlay; } - public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) { $this->webInstance = $webInstance; @@ -3878,6 +3811,7 @@ public function getWebInstance() { return $this->webInstance; } + } class Google_Service_Games_InstanceAndroidDetails extends Google_Model @@ -3898,7 +3832,6 @@ public function getEnablePiracyCheck() { return $this->enablePiracyCheck; } - public function setKind($kind) { $this->kind = $kind; @@ -3908,7 +3841,6 @@ public function getKind() { return $this->kind; } - public function setPackageName($packageName) { $this->packageName = $packageName; @@ -3918,7 +3850,6 @@ public function getPackageName() { return $this->packageName; } - public function setPreferred($preferred) { $this->preferred = $preferred; @@ -3928,6 +3859,7 @@ public function getPreferred() { return $this->preferred; } + } class Google_Service_Games_InstanceIosDetails extends Google_Model @@ -3951,7 +3883,6 @@ public function getBundleIdentifier() { return $this->bundleIdentifier; } - public function setItunesAppId($itunesAppId) { $this->itunesAppId = $itunesAppId; @@ -3961,7 +3892,6 @@ public function getItunesAppId() { return $this->itunesAppId; } - public function setKind($kind) { $this->kind = $kind; @@ -3971,7 +3901,6 @@ public function getKind() { return $this->kind; } - public function setPreferredForIpad($preferredForIpad) { $this->preferredForIpad = $preferredForIpad; @@ -3981,7 +3910,6 @@ public function getPreferredForIpad() { return $this->preferredForIpad; } - public function setPreferredForIphone($preferredForIphone) { $this->preferredForIphone = $preferredForIphone; @@ -3991,7 +3919,6 @@ public function getPreferredForIphone() { return $this->preferredForIphone; } - public function setSupportIpad($supportIpad) { $this->supportIpad = $supportIpad; @@ -4001,7 +3928,6 @@ public function getSupportIpad() { return $this->supportIpad; } - public function setSupportIphone($supportIphone) { $this->supportIphone = $supportIphone; @@ -4011,6 +3937,7 @@ public function getSupportIphone() { return $this->supportIphone; } + } class Google_Service_Games_InstanceWebDetails extends Google_Model @@ -4030,7 +3957,6 @@ public function getKind() { return $this->kind; } - public function setLaunchUrl($launchUrl) { $this->launchUrl = $launchUrl; @@ -4040,7 +3966,6 @@ public function getLaunchUrl() { return $this->launchUrl; } - public function setPreferred($preferred) { $this->preferred = $preferred; @@ -4050,6 +3975,7 @@ public function getPreferred() { return $this->preferred; } + } class Google_Service_Games_Leaderboard extends Google_Model @@ -4072,7 +3998,6 @@ public function getIconUrl() { return $this->iconUrl; } - public function setId($id) { $this->id = $id; @@ -4082,7 +4007,6 @@ public function getId() { return $this->id; } - public function setIsIconUrlDefault($isIconUrlDefault) { $this->isIconUrlDefault = $isIconUrlDefault; @@ -4092,7 +4016,6 @@ public function getIsIconUrlDefault() { return $this->isIconUrlDefault; } - public function setKind($kind) { $this->kind = $kind; @@ -4102,7 +4025,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -4112,7 +4034,6 @@ public function getName() { return $this->name; } - public function setOrder($order) { $this->order = $order; @@ -4122,6 +4043,7 @@ public function getOrder() { return $this->order; } + } class Google_Service_Games_LeaderboardEntry extends Google_Model @@ -4148,7 +4070,6 @@ public function getFormattedScore() { return $this->formattedScore; } - public function setFormattedScoreRank($formattedScoreRank) { $this->formattedScoreRank = $formattedScoreRank; @@ -4158,7 +4079,6 @@ public function getFormattedScoreRank() { return $this->formattedScoreRank; } - public function setKind($kind) { $this->kind = $kind; @@ -4168,7 +4088,6 @@ public function getKind() { return $this->kind; } - public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; @@ -4178,7 +4097,6 @@ public function getPlayer() { return $this->player; } - public function setScoreRank($scoreRank) { $this->scoreRank = $scoreRank; @@ -4188,7 +4106,6 @@ public function getScoreRank() { return $this->scoreRank; } - public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; @@ -4198,7 +4115,6 @@ public function getScoreTag() { return $this->scoreTag; } - public function setScoreValue($scoreValue) { $this->scoreValue = $scoreValue; @@ -4208,7 +4124,6 @@ public function getScoreValue() { return $this->scoreValue; } - public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; @@ -4218,7 +4133,6 @@ public function getTimeSpan() { return $this->timeSpan; } - public function setWriteTimestampMillis($writeTimestampMillis) { $this->writeTimestampMillis = $writeTimestampMillis; @@ -4228,6 +4142,7 @@ public function getWriteTimestampMillis() { return $this->writeTimestampMillis; } + } class Google_Service_Games_LeaderboardListResponse extends Google_Collection @@ -4249,7 +4164,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4259,7 +4173,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4269,6 +4182,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_LeaderboardScoreRank extends Google_Model @@ -4290,7 +4204,6 @@ public function getFormattedNumScores() { return $this->formattedNumScores; } - public function setFormattedRank($formattedRank) { $this->formattedRank = $formattedRank; @@ -4300,7 +4213,6 @@ public function getFormattedRank() { return $this->formattedRank; } - public function setKind($kind) { $this->kind = $kind; @@ -4310,7 +4222,6 @@ public function getKind() { return $this->kind; } - public function setNumScores($numScores) { $this->numScores = $numScores; @@ -4320,7 +4231,6 @@ public function getNumScores() { return $this->numScores; } - public function setRank($rank) { $this->rank = $rank; @@ -4330,6 +4240,7 @@ public function getRank() { return $this->rank; } + } class Google_Service_Games_LeaderboardScores extends Google_Collection @@ -4355,7 +4266,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4365,7 +4275,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4375,7 +4284,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setNumScores($numScores) { $this->numScores = $numScores; @@ -4385,7 +4293,6 @@ public function getNumScores() { return $this->numScores; } - public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) { $this->playerScore = $playerScore; @@ -4395,7 +4302,6 @@ public function getPlayerScore() { return $this->playerScore; } - public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; @@ -4405,6 +4311,7 @@ public function getPrevPageToken() { return $this->prevPageToken; } + } class Google_Service_Games_MetagameConfig extends Google_Collection @@ -4426,7 +4333,6 @@ public function getCurrentVersion() { return $this->currentVersion; } - public function setKind($kind) { $this->kind = $kind; @@ -4436,7 +4342,6 @@ public function getKind() { return $this->kind; } - public function setPlayerLevels($playerLevels) { $this->playerLevels = $playerLevels; @@ -4446,6 +4351,7 @@ public function getPlayerLevels() { return $this->playerLevels; } + } class Google_Service_Games_NetworkDiagnostics extends Google_Model @@ -4469,7 +4375,6 @@ public function getAndroidNetworkSubtype() { return $this->androidNetworkSubtype; } - public function setAndroidNetworkType($androidNetworkType) { $this->androidNetworkType = $androidNetworkType; @@ -4479,7 +4384,6 @@ public function getAndroidNetworkType() { return $this->androidNetworkType; } - public function setIosNetworkType($iosNetworkType) { $this->iosNetworkType = $iosNetworkType; @@ -4489,7 +4393,6 @@ public function getIosNetworkType() { return $this->iosNetworkType; } - public function setKind($kind) { $this->kind = $kind; @@ -4499,7 +4402,6 @@ public function getKind() { return $this->kind; } - public function setNetworkOperatorCode($networkOperatorCode) { $this->networkOperatorCode = $networkOperatorCode; @@ -4509,7 +4411,6 @@ public function getNetworkOperatorCode() { return $this->networkOperatorCode; } - public function setNetworkOperatorName($networkOperatorName) { $this->networkOperatorName = $networkOperatorName; @@ -4519,7 +4420,6 @@ public function getNetworkOperatorName() { return $this->networkOperatorName; } - public function setRegistrationLatencyMillis($registrationLatencyMillis) { $this->registrationLatencyMillis = $registrationLatencyMillis; @@ -4529,6 +4429,7 @@ public function getRegistrationLatencyMillis() { return $this->registrationLatencyMillis; } + } class Google_Service_Games_ParticipantResult extends Google_Model @@ -4549,7 +4450,6 @@ public function getKind() { return $this->kind; } - public function setParticipantId($participantId) { $this->participantId = $participantId; @@ -4559,7 +4459,6 @@ public function getParticipantId() { return $this->participantId; } - public function setPlacing($placing) { $this->placing = $placing; @@ -4569,7 +4468,6 @@ public function getPlacing() { return $this->placing; } - public function setResult($result) { $this->result = $result; @@ -4579,6 +4477,7 @@ public function getResult() { return $this->result; } + } class Google_Service_Games_PeerChannelDiagnostics extends Google_Model @@ -4606,7 +4505,6 @@ public function getBytesReceived() { return $this->bytesReceived; } - public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) { $this->bytesSent = $bytesSent; @@ -4616,7 +4514,6 @@ public function getBytesSent() { return $this->bytesSent; } - public function setKind($kind) { $this->kind = $kind; @@ -4626,7 +4523,6 @@ public function getKind() { return $this->kind; } - public function setNumMessagesLost($numMessagesLost) { $this->numMessagesLost = $numMessagesLost; @@ -4636,7 +4532,6 @@ public function getNumMessagesLost() { return $this->numMessagesLost; } - public function setNumMessagesReceived($numMessagesReceived) { $this->numMessagesReceived = $numMessagesReceived; @@ -4646,7 +4541,6 @@ public function getNumMessagesReceived() { return $this->numMessagesReceived; } - public function setNumMessagesSent($numMessagesSent) { $this->numMessagesSent = $numMessagesSent; @@ -4656,7 +4550,6 @@ public function getNumMessagesSent() { return $this->numMessagesSent; } - public function setNumSendFailures($numSendFailures) { $this->numSendFailures = $numSendFailures; @@ -4666,7 +4559,6 @@ public function getNumSendFailures() { return $this->numSendFailures; } - public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) { $this->roundtripLatencyMillis = $roundtripLatencyMillis; @@ -4676,6 +4568,7 @@ public function getRoundtripLatencyMillis() { return $this->roundtripLatencyMillis; } + } class Google_Service_Games_PeerSessionDiagnostics extends Google_Model @@ -4699,7 +4592,6 @@ public function getConnectedTimestampMillis() { return $this->connectedTimestampMillis; } - public function setKind($kind) { $this->kind = $kind; @@ -4709,7 +4601,6 @@ public function getKind() { return $this->kind; } - public function setParticipantId($participantId) { $this->participantId = $participantId; @@ -4719,7 +4610,6 @@ public function getParticipantId() { return $this->participantId; } - public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) { $this->reliableChannel = $reliableChannel; @@ -4729,7 +4619,6 @@ public function getReliableChannel() { return $this->reliableChannel; } - public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) { $this->unreliableChannel = $unreliableChannel; @@ -4739,6 +4628,7 @@ public function getUnreliableChannel() { return $this->unreliableChannel; } + } class Google_Service_Games_Played extends Google_Model @@ -4758,7 +4648,6 @@ public function getAutoMatched() { return $this->autoMatched; } - public function setKind($kind) { $this->kind = $kind; @@ -4768,7 +4657,6 @@ public function getKind() { return $this->kind; } - public function setTimeMillis($timeMillis) { $this->timeMillis = $timeMillis; @@ -4778,6 +4666,7 @@ public function getTimeMillis() { return $this->timeMillis; } + } class Google_Service_Games_Player extends Google_Model @@ -4805,7 +4694,6 @@ public function getAvatarImageUrl() { return $this->avatarImageUrl; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -4815,7 +4703,6 @@ public function getDisplayName() { return $this->displayName; } - public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo) { $this->experienceInfo = $experienceInfo; @@ -4825,7 +4712,6 @@ public function getExperienceInfo() { return $this->experienceInfo; } - public function setKind($kind) { $this->kind = $kind; @@ -4835,7 +4721,6 @@ public function getKind() { return $this->kind; } - public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) { $this->lastPlayedWith = $lastPlayedWith; @@ -4845,7 +4730,6 @@ public function getLastPlayedWith() { return $this->lastPlayedWith; } - public function setName(Google_Service_Games_PlayerName $name) { $this->name = $name; @@ -4855,7 +4739,6 @@ public function getName() { return $this->name; } - public function setPlayerId($playerId) { $this->playerId = $playerId; @@ -4865,7 +4748,6 @@ public function getPlayerId() { return $this->playerId; } - public function setTitle($title) { $this->title = $title; @@ -4875,6 +4757,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Games_PlayerAchievement extends Google_Model @@ -4898,7 +4781,6 @@ public function getAchievementState() { return $this->achievementState; } - public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; @@ -4908,7 +4790,6 @@ public function getCurrentSteps() { return $this->currentSteps; } - public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; @@ -4918,7 +4799,6 @@ public function getExperiencePoints() { return $this->experiencePoints; } - public function setFormattedCurrentStepsString($formattedCurrentStepsString) { $this->formattedCurrentStepsString = $formattedCurrentStepsString; @@ -4928,7 +4808,6 @@ public function getFormattedCurrentStepsString() { return $this->formattedCurrentStepsString; } - public function setId($id) { $this->id = $id; @@ -4938,7 +4817,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -4948,7 +4826,6 @@ public function getKind() { return $this->kind; } - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; @@ -4958,6 +4835,7 @@ public function getLastUpdatedTimestamp() { return $this->lastUpdatedTimestamp; } + } class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection @@ -4979,7 +4857,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -4989,7 +4866,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -4999,6 +4875,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_PlayerEvent extends Google_Model @@ -5020,7 +4897,6 @@ public function getDefinitionId() { return $this->definitionId; } - public function setFormattedNumEvents($formattedNumEvents) { $this->formattedNumEvents = $formattedNumEvents; @@ -5030,7 +4906,6 @@ public function getFormattedNumEvents() { return $this->formattedNumEvents; } - public function setKind($kind) { $this->kind = $kind; @@ -5040,7 +4915,6 @@ public function getKind() { return $this->kind; } - public function setNumEvents($numEvents) { $this->numEvents = $numEvents; @@ -5050,7 +4924,6 @@ public function getNumEvents() { return $this->numEvents; } - public function setPlayerId($playerId) { $this->playerId = $playerId; @@ -5060,6 +4933,7 @@ public function getPlayerId() { return $this->playerId; } + } class Google_Service_Games_PlayerEventListResponse extends Google_Collection @@ -5081,7 +4955,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5091,7 +4964,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5101,6 +4973,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_PlayerExperienceInfo extends Google_Model @@ -5124,7 +4997,6 @@ public function getCurrentExperiencePoints() { return $this->currentExperiencePoints; } - public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) { $this->currentLevel = $currentLevel; @@ -5134,7 +5006,6 @@ public function getCurrentLevel() { return $this->currentLevel; } - public function setKind($kind) { $this->kind = $kind; @@ -5144,7 +5015,6 @@ public function getKind() { return $this->kind; } - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; @@ -5154,7 +5024,6 @@ public function getLastLevelUpTimestampMillis() { return $this->lastLevelUpTimestampMillis; } - public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) { $this->nextLevel = $nextLevel; @@ -5164,6 +5033,7 @@ public function getNextLevel() { return $this->nextLevel; } + } class Google_Service_Games_PlayerLeaderboardScore extends Google_Model @@ -5192,7 +5062,6 @@ public function getKind() { return $this->kind; } - public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; @@ -5202,7 +5071,6 @@ public function getLeaderboardId() { return $this->leaderboardId; } - public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) { $this->publicRank = $publicRank; @@ -5212,7 +5080,6 @@ public function getPublicRank() { return $this->publicRank; } - public function setScoreString($scoreString) { $this->scoreString = $scoreString; @@ -5222,7 +5089,6 @@ public function getScoreString() { return $this->scoreString; } - public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; @@ -5232,7 +5098,6 @@ public function getScoreTag() { return $this->scoreTag; } - public function setScoreValue($scoreValue) { $this->scoreValue = $scoreValue; @@ -5242,7 +5107,6 @@ public function getScoreValue() { return $this->scoreValue; } - public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) { $this->socialRank = $socialRank; @@ -5252,7 +5116,6 @@ public function getSocialRank() { return $this->socialRank; } - public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; @@ -5262,7 +5125,6 @@ public function getTimeSpan() { return $this->timeSpan; } - public function setWriteTimestamp($writeTimestamp) { $this->writeTimestamp = $writeTimestamp; @@ -5272,6 +5134,7 @@ public function getWriteTimestamp() { return $this->writeTimestamp; } + } class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection @@ -5295,7 +5158,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5305,7 +5167,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5315,7 +5176,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; @@ -5325,6 +5185,7 @@ public function getPlayer() { return $this->player; } + } class Google_Service_Games_PlayerLevel extends Google_Model @@ -5345,7 +5206,6 @@ public function getKind() { return $this->kind; } - public function setLevel($level) { $this->level = $level; @@ -5355,7 +5215,6 @@ public function getLevel() { return $this->level; } - public function setMaxExperiencePoints($maxExperiencePoints) { $this->maxExperiencePoints = $maxExperiencePoints; @@ -5365,7 +5224,6 @@ public function getMaxExperiencePoints() { return $this->maxExperiencePoints; } - public function setMinExperiencePoints($minExperiencePoints) { $this->minExperiencePoints = $minExperiencePoints; @@ -5375,6 +5233,7 @@ public function getMinExperiencePoints() { return $this->minExperiencePoints; } + } class Google_Service_Games_PlayerListResponse extends Google_Collection @@ -5396,7 +5255,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5406,7 +5264,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5416,6 +5273,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_PlayerName extends Google_Model @@ -5434,7 +5292,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -5444,6 +5301,7 @@ public function getGivenName() { return $this->givenName; } + } class Google_Service_Games_PlayerScore extends Google_Model @@ -5465,7 +5323,6 @@ public function getFormattedScore() { return $this->formattedScore; } - public function setKind($kind) { $this->kind = $kind; @@ -5475,7 +5332,6 @@ public function getKind() { return $this->kind; } - public function setScore($score) { $this->score = $score; @@ -5485,7 +5341,6 @@ public function getScore() { return $this->score; } - public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; @@ -5495,7 +5350,6 @@ public function getScoreTag() { return $this->scoreTag; } - public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; @@ -5505,6 +5359,7 @@ public function getTimeSpan() { return $this->timeSpan; } + } class Google_Service_Games_PlayerScoreListResponse extends Google_Collection @@ -5525,7 +5380,6 @@ public function getKind() { return $this->kind; } - public function setSubmittedScores($submittedScores) { $this->submittedScores = $submittedScores; @@ -5535,6 +5389,7 @@ public function getSubmittedScores() { return $this->submittedScores; } + } class Google_Service_Games_PlayerScoreResponse extends Google_Collection @@ -5559,7 +5414,6 @@ public function getBeatenScoreTimeSpans() { return $this->beatenScoreTimeSpans; } - public function setFormattedScore($formattedScore) { $this->formattedScore = $formattedScore; @@ -5569,7 +5423,6 @@ public function getFormattedScore() { return $this->formattedScore; } - public function setKind($kind) { $this->kind = $kind; @@ -5579,7 +5432,6 @@ public function getKind() { return $this->kind; } - public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; @@ -5589,7 +5441,6 @@ public function getLeaderboardId() { return $this->leaderboardId; } - public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; @@ -5599,7 +5450,6 @@ public function getScoreTag() { return $this->scoreTag; } - public function setUnbeatenScores($unbeatenScores) { $this->unbeatenScores = $unbeatenScores; @@ -5609,6 +5459,7 @@ public function getUnbeatenScores() { return $this->unbeatenScores; } + } class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection @@ -5629,7 +5480,6 @@ public function getKind() { return $this->kind; } - public function setScores($scores) { $this->scores = $scores; @@ -5639,6 +5489,7 @@ public function getScores() { return $this->scores; } + } class Google_Service_Games_PushToken extends Google_Model @@ -5660,7 +5511,6 @@ public function getClientRevision() { return $this->clientRevision; } - public function setId(Google_Service_Games_PushTokenId $id) { $this->id = $id; @@ -5670,7 +5520,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5680,7 +5529,6 @@ public function getKind() { return $this->kind; } - public function setLanguage($language) { $this->language = $language; @@ -5690,6 +5538,7 @@ public function getLanguage() { return $this->language; } + } class Google_Service_Games_PushTokenId extends Google_Model @@ -5709,7 +5558,6 @@ public function getIos() { return $this->ios; } - public function setKind($kind) { $this->kind = $kind; @@ -5719,6 +5567,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_PushTokenIdIos extends Google_Model @@ -5739,7 +5588,6 @@ public function getApnsDeviceToken() { return $this->apnsDeviceToken; } - public function setApnsEnvironment($apnsEnvironment) { $this->apnsEnvironment = $apnsEnvironment; @@ -5749,6 +5597,7 @@ public function getApnsEnvironment() { return $this->apnsEnvironment; } + } class Google_Service_Games_Quest extends Google_Collection @@ -5783,7 +5632,6 @@ public function getAcceptedTimestampMillis() { return $this->acceptedTimestampMillis; } - public function setApplicationId($applicationId) { $this->applicationId = $applicationId; @@ -5793,7 +5641,6 @@ public function getApplicationId() { return $this->applicationId; } - public function setBannerUrl($bannerUrl) { $this->bannerUrl = $bannerUrl; @@ -5803,7 +5650,6 @@ public function getBannerUrl() { return $this->bannerUrl; } - public function setDescription($description) { $this->description = $description; @@ -5813,7 +5659,6 @@ public function getDescription() { return $this->description; } - public function setEndTimestampMillis($endTimestampMillis) { $this->endTimestampMillis = $endTimestampMillis; @@ -5823,7 +5668,6 @@ public function getEndTimestampMillis() { return $this->endTimestampMillis; } - public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; @@ -5833,7 +5677,6 @@ public function getIconUrl() { return $this->iconUrl; } - public function setId($id) { $this->id = $id; @@ -5843,7 +5686,6 @@ public function getId() { return $this->id; } - public function setIsDefaultBannerUrl($isDefaultBannerUrl) { $this->isDefaultBannerUrl = $isDefaultBannerUrl; @@ -5853,7 +5695,6 @@ public function getIsDefaultBannerUrl() { return $this->isDefaultBannerUrl; } - public function setIsDefaultIconUrl($isDefaultIconUrl) { $this->isDefaultIconUrl = $isDefaultIconUrl; @@ -5863,7 +5704,6 @@ public function getIsDefaultIconUrl() { return $this->isDefaultIconUrl; } - public function setKind($kind) { $this->kind = $kind; @@ -5873,7 +5713,6 @@ public function getKind() { return $this->kind; } - public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) { $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; @@ -5883,7 +5722,6 @@ public function getLastUpdatedTimestampMillis() { return $this->lastUpdatedTimestampMillis; } - public function setMilestones($milestones) { $this->milestones = $milestones; @@ -5893,7 +5731,6 @@ public function getMilestones() { return $this->milestones; } - public function setName($name) { $this->name = $name; @@ -5903,7 +5740,6 @@ public function getName() { return $this->name; } - public function setNotifyTimestampMillis($notifyTimestampMillis) { $this->notifyTimestampMillis = $notifyTimestampMillis; @@ -5913,7 +5749,6 @@ public function getNotifyTimestampMillis() { return $this->notifyTimestampMillis; } - public function setStartTimestampMillis($startTimestampMillis) { $this->startTimestampMillis = $startTimestampMillis; @@ -5923,7 +5758,6 @@ public function getStartTimestampMillis() { return $this->startTimestampMillis; } - public function setState($state) { $this->state = $state; @@ -5933,6 +5767,7 @@ public function getState() { return $this->state; } + } class Google_Service_Games_QuestContribution extends Google_Model @@ -5952,7 +5787,6 @@ public function getFormattedValue() { return $this->formattedValue; } - public function setKind($kind) { $this->kind = $kind; @@ -5962,7 +5796,6 @@ public function getKind() { return $this->kind; } - public function setValue($value) { $this->value = $value; @@ -5972,6 +5805,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Games_QuestCriterion extends Google_Model @@ -5996,7 +5830,6 @@ public function getCompletionContribution() { return $this->completionContribution; } - public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution) { $this->currentContribution = $currentContribution; @@ -6006,7 +5839,6 @@ public function getCurrentContribution() { return $this->currentContribution; } - public function setEventId($eventId) { $this->eventId = $eventId; @@ -6016,7 +5848,6 @@ public function getEventId() { return $this->eventId; } - public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress) { $this->initialPlayerProgress = $initialPlayerProgress; @@ -6026,7 +5857,6 @@ public function getInitialPlayerProgress() { return $this->initialPlayerProgress; } - public function setKind($kind) { $this->kind = $kind; @@ -6036,6 +5866,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_QuestListResponse extends Google_Collection @@ -6057,7 +5888,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6067,7 +5897,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6077,6 +5906,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_QuestMilestone extends Google_Collection @@ -6100,7 +5930,6 @@ public function getCompletionRewardData() { return $this->completionRewardData; } - public function setCriteria($criteria) { $this->criteria = $criteria; @@ -6110,7 +5939,6 @@ public function getCriteria() { return $this->criteria; } - public function setId($id) { $this->id = $id; @@ -6120,7 +5948,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6130,7 +5957,6 @@ public function getKind() { return $this->kind; } - public function setState($state) { $this->state = $state; @@ -6140,6 +5966,7 @@ public function getState() { return $this->state; } + } class Google_Service_Games_RevisionCheckResponse extends Google_Model @@ -6159,7 +5986,6 @@ public function getApiVersion() { return $this->apiVersion; } - public function setKind($kind) { $this->kind = $kind; @@ -6169,7 +5995,6 @@ public function getKind() { return $this->kind; } - public function setRevisionStatus($revisionStatus) { $this->revisionStatus = $revisionStatus; @@ -6179,6 +6004,7 @@ public function getRevisionStatus() { return $this->revisionStatus; } + } class Google_Service_Games_Room extends Google_Collection @@ -6214,7 +6040,6 @@ public function getApplicationId() { return $this->applicationId; } - public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) { $this->autoMatchingCriteria = $autoMatchingCriteria; @@ -6224,7 +6049,6 @@ public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; } - public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) { $this->autoMatchingStatus = $autoMatchingStatus; @@ -6234,7 +6058,6 @@ public function getAutoMatchingStatus() { return $this->autoMatchingStatus; } - public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails) { $this->creationDetails = $creationDetails; @@ -6244,7 +6067,6 @@ public function getCreationDetails() { return $this->creationDetails; } - public function setDescription($description) { $this->description = $description; @@ -6254,7 +6076,6 @@ public function getDescription() { return $this->description; } - public function setInviterId($inviterId) { $this->inviterId = $inviterId; @@ -6264,7 +6085,6 @@ public function getInviterId() { return $this->inviterId; } - public function setKind($kind) { $this->kind = $kind; @@ -6274,7 +6094,6 @@ public function getKind() { return $this->kind; } - public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails) { $this->lastUpdateDetails = $lastUpdateDetails; @@ -6284,7 +6103,6 @@ public function getLastUpdateDetails() { return $this->lastUpdateDetails; } - public function setParticipants($participants) { $this->participants = $participants; @@ -6294,7 +6112,6 @@ public function getParticipants() { return $this->participants; } - public function setRoomId($roomId) { $this->roomId = $roomId; @@ -6304,7 +6121,6 @@ public function getRoomId() { return $this->roomId; } - public function setRoomStatusVersion($roomStatusVersion) { $this->roomStatusVersion = $roomStatusVersion; @@ -6314,7 +6130,6 @@ public function getRoomStatusVersion() { return $this->roomStatusVersion; } - public function setStatus($status) { $this->status = $status; @@ -6324,7 +6139,6 @@ public function getStatus() { return $this->status; } - public function setVariant($variant) { $this->variant = $variant; @@ -6334,6 +6148,7 @@ public function getVariant() { return $this->variant; } + } class Google_Service_Games_RoomAutoMatchStatus extends Google_Model @@ -6352,7 +6167,6 @@ public function getKind() { return $this->kind; } - public function setWaitEstimateSeconds($waitEstimateSeconds) { $this->waitEstimateSeconds = $waitEstimateSeconds; @@ -6362,6 +6176,7 @@ public function getWaitEstimateSeconds() { return $this->waitEstimateSeconds; } + } class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model @@ -6382,7 +6197,6 @@ public function getExclusiveBitmask() { return $this->exclusiveBitmask; } - public function setKind($kind) { $this->kind = $kind; @@ -6392,7 +6206,6 @@ public function getKind() { return $this->kind; } - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; @@ -6402,7 +6215,6 @@ public function getMaxAutoMatchingPlayers() { return $this->maxAutoMatchingPlayers; } - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; @@ -6412,6 +6224,7 @@ public function getMinAutoMatchingPlayers() { return $this->minAutoMatchingPlayers; } + } class Google_Service_Games_RoomClientAddress extends Google_Model @@ -6430,7 +6243,6 @@ public function getKind() { return $this->kind; } - public function setXmppAddress($xmppAddress) { $this->xmppAddress = $xmppAddress; @@ -6440,6 +6252,7 @@ public function getXmppAddress() { return $this->xmppAddress; } + } class Google_Service_Games_RoomCreateRequest extends Google_Collection @@ -6468,7 +6281,6 @@ public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; } - public function setCapabilities($capabilities) { $this->capabilities = $capabilities; @@ -6478,7 +6290,6 @@ public function getCapabilities() { return $this->capabilities; } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { $this->clientAddress = $clientAddress; @@ -6488,7 +6299,6 @@ public function getClientAddress() { return $this->clientAddress; } - public function setInvitedPlayerIds($invitedPlayerIds) { $this->invitedPlayerIds = $invitedPlayerIds; @@ -6498,7 +6308,6 @@ public function getInvitedPlayerIds() { return $this->invitedPlayerIds; } - public function setKind($kind) { $this->kind = $kind; @@ -6508,7 +6317,6 @@ public function getKind() { return $this->kind; } - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) { $this->networkDiagnostics = $networkDiagnostics; @@ -6518,7 +6326,6 @@ public function getNetworkDiagnostics() { return $this->networkDiagnostics; } - public function setRequestId($requestId) { $this->requestId = $requestId; @@ -6528,7 +6335,6 @@ public function getRequestId() { return $this->requestId; } - public function setVariant($variant) { $this->variant = $variant; @@ -6538,6 +6344,7 @@ public function getVariant() { return $this->variant; } + } class Google_Service_Games_RoomJoinRequest extends Google_Collection @@ -6561,7 +6368,6 @@ public function getCapabilities() { return $this->capabilities; } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { $this->clientAddress = $clientAddress; @@ -6571,7 +6377,6 @@ public function getClientAddress() { return $this->clientAddress; } - public function setKind($kind) { $this->kind = $kind; @@ -6581,7 +6386,6 @@ public function getKind() { return $this->kind; } - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) { $this->networkDiagnostics = $networkDiagnostics; @@ -6591,6 +6395,7 @@ public function getNetworkDiagnostics() { return $this->networkDiagnostics; } + } class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection @@ -6617,7 +6422,6 @@ public function getAndroidNetworkSubtype() { return $this->androidNetworkSubtype; } - public function setAndroidNetworkType($androidNetworkType) { $this->androidNetworkType = $androidNetworkType; @@ -6627,7 +6431,6 @@ public function getAndroidNetworkType() { return $this->androidNetworkType; } - public function setIosNetworkType($iosNetworkType) { $this->iosNetworkType = $iosNetworkType; @@ -6637,7 +6440,6 @@ public function getIosNetworkType() { return $this->iosNetworkType; } - public function setKind($kind) { $this->kind = $kind; @@ -6647,7 +6449,6 @@ public function getKind() { return $this->kind; } - public function setNetworkOperatorCode($networkOperatorCode) { $this->networkOperatorCode = $networkOperatorCode; @@ -6657,7 +6458,6 @@ public function getNetworkOperatorCode() { return $this->networkOperatorCode; } - public function setNetworkOperatorName($networkOperatorName) { $this->networkOperatorName = $networkOperatorName; @@ -6667,7 +6467,6 @@ public function getNetworkOperatorName() { return $this->networkOperatorName; } - public function setPeerSession($peerSession) { $this->peerSession = $peerSession; @@ -6677,7 +6476,6 @@ public function getPeerSession() { return $this->peerSession; } - public function setSocketsUsed($socketsUsed) { $this->socketsUsed = $socketsUsed; @@ -6687,6 +6485,7 @@ public function getSocketsUsed() { return $this->socketsUsed; } + } class Google_Service_Games_RoomLeaveRequest extends Google_Model @@ -6707,7 +6506,6 @@ public function getKind() { return $this->kind; } - public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics) { $this->leaveDiagnostics = $leaveDiagnostics; @@ -6717,7 +6515,6 @@ public function getLeaveDiagnostics() { return $this->leaveDiagnostics; } - public function setReason($reason) { $this->reason = $reason; @@ -6727,6 +6524,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_Games_RoomList extends Google_Collection @@ -6748,7 +6546,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6758,7 +6555,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6768,6 +6564,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_RoomModification extends Google_Model @@ -6787,7 +6584,6 @@ public function getKind() { return $this->kind; } - public function setModifiedTimestampMillis($modifiedTimestampMillis) { $this->modifiedTimestampMillis = $modifiedTimestampMillis; @@ -6797,7 +6593,6 @@ public function getModifiedTimestampMillis() { return $this->modifiedTimestampMillis; } - public function setParticipantId($participantId) { $this->participantId = $participantId; @@ -6807,6 +6602,7 @@ public function getParticipantId() { return $this->participantId; } + } class Google_Service_Games_RoomP2PStatus extends Google_Model @@ -6831,7 +6627,6 @@ public function getConnectionSetupLatencyMillis() { return $this->connectionSetupLatencyMillis; } - public function setError($error) { $this->error = $error; @@ -6841,7 +6636,6 @@ public function getError() { return $this->error; } - public function setErrorReason($errorReason) { $this->errorReason = $errorReason; @@ -6851,7 +6645,6 @@ public function getErrorReason() { return $this->errorReason; } - public function setKind($kind) { $this->kind = $kind; @@ -6861,7 +6654,6 @@ public function getKind() { return $this->kind; } - public function setParticipantId($participantId) { $this->participantId = $participantId; @@ -6871,7 +6663,6 @@ public function getParticipantId() { return $this->participantId; } - public function setStatus($status) { $this->status = $status; @@ -6881,7 +6672,6 @@ public function getStatus() { return $this->status; } - public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis) { $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis; @@ -6891,6 +6681,7 @@ public function getUnreliableRoundtripLatencyMillis() { return $this->unreliableRoundtripLatencyMillis; } + } class Google_Service_Games_RoomP2PStatuses extends Google_Collection @@ -6911,7 +6702,6 @@ public function getKind() { return $this->kind; } - public function setUpdates($updates) { $this->updates = $updates; @@ -6921,6 +6711,7 @@ public function getUpdates() { return $this->updates; } + } class Google_Service_Games_RoomParticipant extends Google_Collection @@ -6951,7 +6742,6 @@ public function getAutoMatched() { return $this->autoMatched; } - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) { $this->autoMatchedPlayer = $autoMatchedPlayer; @@ -6961,7 +6751,6 @@ public function getAutoMatchedPlayer() { return $this->autoMatchedPlayer; } - public function setCapabilities($capabilities) { $this->capabilities = $capabilities; @@ -6971,7 +6760,6 @@ public function getCapabilities() { return $this->capabilities; } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { $this->clientAddress = $clientAddress; @@ -6981,7 +6769,6 @@ public function getClientAddress() { return $this->clientAddress; } - public function setConnected($connected) { $this->connected = $connected; @@ -6991,7 +6778,6 @@ public function getConnected() { return $this->connected; } - public function setId($id) { $this->id = $id; @@ -7001,7 +6787,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7011,7 +6796,6 @@ public function getKind() { return $this->kind; } - public function setLeaveReason($leaveReason) { $this->leaveReason = $leaveReason; @@ -7021,7 +6805,6 @@ public function getLeaveReason() { return $this->leaveReason; } - public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; @@ -7031,7 +6814,6 @@ public function getPlayer() { return $this->player; } - public function setStatus($status) { $this->status = $status; @@ -7041,6 +6823,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Games_RoomStatus extends Google_Collection @@ -7066,7 +6849,6 @@ public function getAutoMatchingStatus() { return $this->autoMatchingStatus; } - public function setKind($kind) { $this->kind = $kind; @@ -7076,7 +6858,6 @@ public function getKind() { return $this->kind; } - public function setParticipants($participants) { $this->participants = $participants; @@ -7086,7 +6867,6 @@ public function getParticipants() { return $this->participants; } - public function setRoomId($roomId) { $this->roomId = $roomId; @@ -7096,7 +6876,6 @@ public function getRoomId() { return $this->roomId; } - public function setStatus($status) { $this->status = $status; @@ -7106,7 +6885,6 @@ public function getStatus() { return $this->status; } - public function setStatusVersion($statusVersion) { $this->statusVersion = $statusVersion; @@ -7116,6 +6894,7 @@ public function getStatusVersion() { return $this->statusVersion; } + } class Google_Service_Games_ScoreSubmission extends Google_Model @@ -7137,7 +6916,6 @@ public function getKind() { return $this->kind; } - public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; @@ -7147,7 +6925,6 @@ public function getLeaderboardId() { return $this->leaderboardId; } - public function setScore($score) { $this->score = $score; @@ -7157,7 +6934,6 @@ public function getScore() { return $this->score; } - public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; @@ -7167,7 +6943,6 @@ public function getScoreTag() { return $this->scoreTag; } - public function setSignature($signature) { $this->signature = $signature; @@ -7177,6 +6952,7 @@ public function getSignature() { return $this->signature; } + } class Google_Service_Games_Snapshot extends Google_Model @@ -7191,6 +6967,7 @@ class Google_Service_Games_Snapshot extends Google_Model public $id; public $kind; public $lastModifiedMillis; + public $progressValue; public $title; public $type; public $uniqueName; @@ -7204,7 +6981,6 @@ public function getCoverImage() { return $this->coverImage; } - public function setDescription($description) { $this->description = $description; @@ -7214,7 +6990,6 @@ public function getDescription() { return $this->description; } - public function setDriveId($driveId) { $this->driveId = $driveId; @@ -7224,7 +6999,6 @@ public function getDriveId() { return $this->driveId; } - public function setDurationMillis($durationMillis) { $this->durationMillis = $durationMillis; @@ -7234,7 +7008,6 @@ public function getDurationMillis() { return $this->durationMillis; } - public function setId($id) { $this->id = $id; @@ -7244,7 +7017,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7254,7 +7026,6 @@ public function getKind() { return $this->kind; } - public function setLastModifiedMillis($lastModifiedMillis) { $this->lastModifiedMillis = $lastModifiedMillis; @@ -7264,7 +7035,15 @@ public function getLastModifiedMillis() { return $this->lastModifiedMillis; } + public function setProgressValue($progressValue) + { + $this->progressValue = $progressValue; + } + public function getProgressValue() + { + return $this->progressValue; + } public function setTitle($title) { $this->title = $title; @@ -7274,7 +7053,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -7284,7 +7062,6 @@ public function getType() { return $this->type; } - public function setUniqueName($uniqueName) { $this->uniqueName = $uniqueName; @@ -7294,6 +7071,7 @@ public function getUniqueName() { return $this->uniqueName; } + } class Google_Service_Games_SnapshotImage extends Google_Model @@ -7316,7 +7094,6 @@ public function getHeight() { return $this->height; } - public function setKind($kind) { $this->kind = $kind; @@ -7326,7 +7103,6 @@ public function getKind() { return $this->kind; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -7336,7 +7112,6 @@ public function getMimeType() { return $this->mimeType; } - public function setUrl($url) { $this->url = $url; @@ -7346,7 +7121,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -7356,6 +7130,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Games_SnapshotListResponse extends Google_Collection @@ -7377,7 +7152,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7387,7 +7161,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7397,6 +7170,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model @@ -7417,7 +7191,6 @@ public function getExclusiveBitmask() { return $this->exclusiveBitmask; } - public function setKind($kind) { $this->kind = $kind; @@ -7427,7 +7200,6 @@ public function getKind() { return $this->kind; } - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; @@ -7437,7 +7209,6 @@ public function getMaxAutoMatchingPlayers() { return $this->maxAutoMatchingPlayers; } - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; @@ -7447,6 +7218,7 @@ public function getMinAutoMatchingPlayers() { return $this->minAutoMatchingPlayers; } + } class Google_Service_Games_TurnBasedMatch extends Google_Collection @@ -7491,7 +7263,6 @@ public function getApplicationId() { return $this->applicationId; } - public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) { $this->autoMatchingCriteria = $autoMatchingCriteria; @@ -7501,7 +7272,6 @@ public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; } - public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails) { $this->creationDetails = $creationDetails; @@ -7511,7 +7281,6 @@ public function getCreationDetails() { return $this->creationDetails; } - public function setData(Google_Service_Games_TurnBasedMatchData $data) { $this->data = $data; @@ -7521,7 +7290,6 @@ public function getData() { return $this->data; } - public function setDescription($description) { $this->description = $description; @@ -7531,7 +7299,6 @@ public function getDescription() { return $this->description; } - public function setInviterId($inviterId) { $this->inviterId = $inviterId; @@ -7541,7 +7308,6 @@ public function getInviterId() { return $this->inviterId; } - public function setKind($kind) { $this->kind = $kind; @@ -7551,7 +7317,6 @@ public function getKind() { return $this->kind; } - public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails) { $this->lastUpdateDetails = $lastUpdateDetails; @@ -7561,7 +7326,6 @@ public function getLastUpdateDetails() { return $this->lastUpdateDetails; } - public function setMatchId($matchId) { $this->matchId = $matchId; @@ -7571,7 +7335,6 @@ public function getMatchId() { return $this->matchId; } - public function setMatchNumber($matchNumber) { $this->matchNumber = $matchNumber; @@ -7581,7 +7344,6 @@ public function getMatchNumber() { return $this->matchNumber; } - public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; @@ -7591,7 +7353,6 @@ public function getMatchVersion() { return $this->matchVersion; } - public function setParticipants($participants) { $this->participants = $participants; @@ -7601,7 +7362,6 @@ public function getParticipants() { return $this->participants; } - public function setPendingParticipantId($pendingParticipantId) { $this->pendingParticipantId = $pendingParticipantId; @@ -7611,7 +7371,6 @@ public function getPendingParticipantId() { return $this->pendingParticipantId; } - public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData) { $this->previousMatchData = $previousMatchData; @@ -7621,7 +7380,6 @@ public function getPreviousMatchData() { return $this->previousMatchData; } - public function setRematchId($rematchId) { $this->rematchId = $rematchId; @@ -7631,7 +7389,6 @@ public function getRematchId() { return $this->rematchId; } - public function setResults($results) { $this->results = $results; @@ -7641,7 +7398,6 @@ public function getResults() { return $this->results; } - public function setStatus($status) { $this->status = $status; @@ -7651,7 +7407,6 @@ public function getStatus() { return $this->status; } - public function setUserMatchStatus($userMatchStatus) { $this->userMatchStatus = $userMatchStatus; @@ -7661,7 +7416,6 @@ public function getUserMatchStatus() { return $this->userMatchStatus; } - public function setVariant($variant) { $this->variant = $variant; @@ -7671,7 +7425,6 @@ public function getVariant() { return $this->variant; } - public function setWithParticipantId($withParticipantId) { $this->withParticipantId = $withParticipantId; @@ -7681,6 +7434,7 @@ public function getWithParticipantId() { return $this->withParticipantId; } + } class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection @@ -7704,7 +7458,6 @@ public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; } - public function setInvitedPlayerIds($invitedPlayerIds) { $this->invitedPlayerIds = $invitedPlayerIds; @@ -7714,7 +7467,6 @@ public function getInvitedPlayerIds() { return $this->invitedPlayerIds; } - public function setKind($kind) { $this->kind = $kind; @@ -7724,7 +7476,6 @@ public function getKind() { return $this->kind; } - public function setRequestId($requestId) { $this->requestId = $requestId; @@ -7734,7 +7485,6 @@ public function getRequestId() { return $this->requestId; } - public function setVariant($variant) { $this->variant = $variant; @@ -7744,6 +7494,7 @@ public function getVariant() { return $this->variant; } + } class Google_Service_Games_TurnBasedMatchData extends Google_Model @@ -7763,7 +7514,6 @@ public function getData() { return $this->data; } - public function setDataAvailable($dataAvailable) { $this->dataAvailable = $dataAvailable; @@ -7773,7 +7523,6 @@ public function getDataAvailable() { return $this->dataAvailable; } - public function setKind($kind) { $this->kind = $kind; @@ -7783,6 +7532,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model @@ -7801,7 +7551,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -7811,6 +7560,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Games_TurnBasedMatchList extends Google_Collection @@ -7832,7 +7582,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7842,7 +7591,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7852,6 +7600,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_TurnBasedMatchModification extends Google_Model @@ -7871,7 +7620,6 @@ public function getKind() { return $this->kind; } - public function setModifiedTimestampMillis($modifiedTimestampMillis) { $this->modifiedTimestampMillis = $modifiedTimestampMillis; @@ -7881,7 +7629,6 @@ public function getModifiedTimestampMillis() { return $this->modifiedTimestampMillis; } - public function setParticipantId($participantId) { $this->participantId = $participantId; @@ -7891,6 +7638,7 @@ public function getParticipantId() { return $this->participantId; } + } class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model @@ -7915,7 +7663,6 @@ public function getAutoMatched() { return $this->autoMatched; } - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) { $this->autoMatchedPlayer = $autoMatchedPlayer; @@ -7925,7 +7672,6 @@ public function getAutoMatchedPlayer() { return $this->autoMatchedPlayer; } - public function setId($id) { $this->id = $id; @@ -7935,7 +7681,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7945,7 +7690,6 @@ public function getKind() { return $this->kind; } - public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; @@ -7955,7 +7699,6 @@ public function getPlayer() { return $this->player; } - public function setStatus($status) { $this->status = $status; @@ -7965,6 +7708,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Games_TurnBasedMatchRematch extends Google_Model @@ -7986,7 +7730,6 @@ public function getKind() { return $this->kind; } - public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch) { $this->previousMatch = $previousMatch; @@ -7996,7 +7739,6 @@ public function getPreviousMatch() { return $this->previousMatch; } - public function setRematch(Google_Service_Games_TurnBasedMatch $rematch) { $this->rematch = $rematch; @@ -8006,6 +7748,7 @@ public function getRematch() { return $this->rematch; } + } class Google_Service_Games_TurnBasedMatchResults extends Google_Collection @@ -8029,7 +7772,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -8039,7 +7781,6 @@ public function getKind() { return $this->kind; } - public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; @@ -8049,7 +7790,6 @@ public function getMatchVersion() { return $this->matchVersion; } - public function setResults($results) { $this->results = $results; @@ -8059,6 +7799,7 @@ public function getResults() { return $this->results; } + } class Google_Service_Games_TurnBasedMatchSync extends Google_Collection @@ -8081,7 +7822,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8091,7 +7831,6 @@ public function getKind() { return $this->kind; } - public function setMoreAvailable($moreAvailable) { $this->moreAvailable = $moreAvailable; @@ -8101,7 +7840,6 @@ public function getMoreAvailable() { return $this->moreAvailable; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8111,6 +7849,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection @@ -8135,7 +7874,6 @@ public function getData() { return $this->data; } - public function setKind($kind) { $this->kind = $kind; @@ -8145,7 +7883,6 @@ public function getKind() { return $this->kind; } - public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; @@ -8155,7 +7892,6 @@ public function getMatchVersion() { return $this->matchVersion; } - public function setPendingParticipantId($pendingParticipantId) { $this->pendingParticipantId = $pendingParticipantId; @@ -8165,7 +7901,6 @@ public function getPendingParticipantId() { return $this->pendingParticipantId; } - public function setResults($results) { $this->results = $results; @@ -8175,4 +7910,5 @@ public function getResults() { return $this->results; } + } From 4fecfb1a9c7d1350779b101f81335e5d90872563 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:14 -0700 Subject: [PATCH 0407/1274] Updated Mirror.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Mirror.php | 101 +++++++--------------------------- 1 file changed, 20 insertions(+), 81 deletions(-) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index 517f00531..376a0bf49 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -855,7 +855,6 @@ public function getAuthTokens() { return $this->authTokens; } - public function setFeatures($features) { $this->features = $features; @@ -865,7 +864,6 @@ public function getFeatures() { return $this->features; } - public function setPassword($password) { $this->password = $password; @@ -875,7 +873,6 @@ public function getPassword() { return $this->password; } - public function setUserData($userData) { $this->userData = $userData; @@ -885,6 +882,7 @@ public function getUserData() { return $this->userData; } + } class Google_Service_Mirror_Attachment extends Google_Model @@ -905,7 +903,6 @@ public function getContentType() { return $this->contentType; } - public function setContentUrl($contentUrl) { $this->contentUrl = $contentUrl; @@ -915,7 +912,6 @@ public function getContentUrl() { return $this->contentUrl; } - public function setId($id) { $this->id = $id; @@ -925,7 +921,6 @@ public function getId() { return $this->id; } - public function setIsProcessingContent($isProcessingContent) { $this->isProcessingContent = $isProcessingContent; @@ -935,6 +930,7 @@ public function getIsProcessingContent() { return $this->isProcessingContent; } + } class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection @@ -955,7 +951,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -965,6 +960,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Mirror_AuthToken extends Google_Model @@ -983,7 +979,6 @@ public function getAuthToken() { return $this->authToken; } - public function setType($type) { $this->type = $type; @@ -993,6 +988,7 @@ public function getType() { return $this->type; } + } class Google_Service_Mirror_Command extends Google_Model @@ -1010,6 +1006,7 @@ public function getType() { return $this->type; } + } class Google_Service_Mirror_Contact extends Google_Collection @@ -1040,7 +1037,6 @@ public function getAcceptCommands() { return $this->acceptCommands; } - public function setAcceptTypes($acceptTypes) { $this->acceptTypes = $acceptTypes; @@ -1050,7 +1046,6 @@ public function getAcceptTypes() { return $this->acceptTypes; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1060,7 +1055,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1070,7 +1064,6 @@ public function getId() { return $this->id; } - public function setImageUrls($imageUrls) { $this->imageUrls = $imageUrls; @@ -1080,7 +1073,6 @@ public function getImageUrls() { return $this->imageUrls; } - public function setKind($kind) { $this->kind = $kind; @@ -1090,7 +1082,6 @@ public function getKind() { return $this->kind; } - public function setPhoneNumber($phoneNumber) { $this->phoneNumber = $phoneNumber; @@ -1100,7 +1091,6 @@ public function getPhoneNumber() { return $this->phoneNumber; } - public function setPriority($priority) { $this->priority = $priority; @@ -1110,7 +1100,6 @@ public function getPriority() { return $this->priority; } - public function setSharingFeatures($sharingFeatures) { $this->sharingFeatures = $sharingFeatures; @@ -1120,7 +1109,6 @@ public function getSharingFeatures() { return $this->sharingFeatures; } - public function setSource($source) { $this->source = $source; @@ -1130,7 +1118,6 @@ public function getSource() { return $this->source; } - public function setSpeakableName($speakableName) { $this->speakableName = $speakableName; @@ -1140,7 +1127,6 @@ public function getSpeakableName() { return $this->speakableName; } - public function setType($type) { $this->type = $type; @@ -1150,6 +1136,7 @@ public function getType() { return $this->type; } + } class Google_Service_Mirror_ContactsListResponse extends Google_Collection @@ -1170,7 +1157,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1180,6 +1166,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Mirror_Location extends Google_Model @@ -1204,7 +1191,6 @@ public function getAccuracy() { return $this->accuracy; } - public function setAddress($address) { $this->address = $address; @@ -1214,7 +1200,6 @@ public function getAddress() { return $this->address; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1224,7 +1209,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1234,7 +1218,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1244,7 +1227,6 @@ public function getKind() { return $this->kind; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -1254,7 +1236,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -1264,7 +1245,6 @@ public function getLongitude() { return $this->longitude; } - public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1274,6 +1254,7 @@ public function getTimestamp() { return $this->timestamp; } + } class Google_Service_Mirror_LocationsListResponse extends Google_Collection @@ -1294,7 +1275,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1304,6 +1284,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Mirror_MenuItem extends Google_Collection @@ -1329,7 +1310,6 @@ public function getAction() { return $this->action; } - public function setContextualCommand($contextualCommand) { $this->contextualCommand = $contextualCommand; @@ -1339,7 +1319,6 @@ public function getContextualCommand() { return $this->contextualCommand; } - public function setId($id) { $this->id = $id; @@ -1349,7 +1328,6 @@ public function getId() { return $this->id; } - public function setPayload($payload) { $this->payload = $payload; @@ -1359,7 +1337,6 @@ public function getPayload() { return $this->payload; } - public function setRemoveWhenSelected($removeWhenSelected) { $this->removeWhenSelected = $removeWhenSelected; @@ -1369,7 +1346,6 @@ public function getRemoveWhenSelected() { return $this->removeWhenSelected; } - public function setValues($values) { $this->values = $values; @@ -1379,6 +1355,7 @@ public function getValues() { return $this->values; } + } class Google_Service_Mirror_MenuValue extends Google_Model @@ -1398,7 +1375,6 @@ public function getDisplayName() { return $this->displayName; } - public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; @@ -1408,7 +1384,6 @@ public function getIconUrl() { return $this->iconUrl; } - public function setState($state) { $this->state = $state; @@ -1418,6 +1393,7 @@ public function getState() { return $this->state; } + } class Google_Service_Mirror_Notification extends Google_Collection @@ -1442,7 +1418,6 @@ public function getCollection() { return $this->collection; } - public function setItemId($itemId) { $this->itemId = $itemId; @@ -1452,7 +1427,6 @@ public function getItemId() { return $this->itemId; } - public function setOperation($operation) { $this->operation = $operation; @@ -1462,7 +1436,6 @@ public function getOperation() { return $this->operation; } - public function setUserActions($userActions) { $this->userActions = $userActions; @@ -1472,7 +1445,6 @@ public function getUserActions() { return $this->userActions; } - public function setUserToken($userToken) { $this->userToken = $userToken; @@ -1482,7 +1454,6 @@ public function getUserToken() { return $this->userToken; } - public function setVerifyToken($verifyToken) { $this->verifyToken = $verifyToken; @@ -1492,6 +1463,7 @@ public function getVerifyToken() { return $this->verifyToken; } + } class Google_Service_Mirror_NotificationConfig extends Google_Model @@ -1510,7 +1482,6 @@ public function getDeliveryTime() { return $this->deliveryTime; } - public function setLevel($level) { $this->level = $level; @@ -1520,6 +1491,7 @@ public function getLevel() { return $this->level; } + } class Google_Service_Mirror_Setting extends Google_Model @@ -1539,7 +1511,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1549,7 +1520,6 @@ public function getKind() { return $this->kind; } - public function setValue($value) { $this->value = $value; @@ -1559,6 +1529,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Mirror_Subscription extends Google_Collection @@ -1586,7 +1557,6 @@ public function getCallbackUrl() { return $this->callbackUrl; } - public function setCollection($collection) { $this->collection = $collection; @@ -1596,7 +1566,6 @@ public function getCollection() { return $this->collection; } - public function setId($id) { $this->id = $id; @@ -1606,7 +1575,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1616,7 +1584,6 @@ public function getKind() { return $this->kind; } - public function setNotification(Google_Service_Mirror_Notification $notification) { $this->notification = $notification; @@ -1626,7 +1593,6 @@ public function getNotification() { return $this->notification; } - public function setOperation($operation) { $this->operation = $operation; @@ -1636,7 +1602,6 @@ public function getOperation() { return $this->operation; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1646,7 +1611,6 @@ public function getUpdated() { return $this->updated; } - public function setUserToken($userToken) { $this->userToken = $userToken; @@ -1656,7 +1620,6 @@ public function getUserToken() { return $this->userToken; } - public function setVerifyToken($verifyToken) { $this->verifyToken = $verifyToken; @@ -1666,6 +1629,7 @@ public function getVerifyToken() { return $this->verifyToken; } + } class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection @@ -1686,7 +1650,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1696,6 +1659,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Mirror_TimelineItem extends Google_Collection @@ -1745,7 +1709,6 @@ public function getAttachments() { return $this->attachments; } - public function setBundleId($bundleId) { $this->bundleId = $bundleId; @@ -1755,7 +1718,6 @@ public function getBundleId() { return $this->bundleId; } - public function setCanonicalUrl($canonicalUrl) { $this->canonicalUrl = $canonicalUrl; @@ -1765,7 +1727,6 @@ public function getCanonicalUrl() { return $this->canonicalUrl; } - public function setCreated($created) { $this->created = $created; @@ -1775,7 +1736,6 @@ public function getCreated() { return $this->created; } - public function setCreator(Google_Service_Mirror_Contact $creator) { $this->creator = $creator; @@ -1785,7 +1745,6 @@ public function getCreator() { return $this->creator; } - public function setDisplayTime($displayTime) { $this->displayTime = $displayTime; @@ -1795,7 +1754,6 @@ public function getDisplayTime() { return $this->displayTime; } - public function setEtag($etag) { $this->etag = $etag; @@ -1805,7 +1763,6 @@ public function getEtag() { return $this->etag; } - public function setHtml($html) { $this->html = $html; @@ -1815,7 +1772,6 @@ public function getHtml() { return $this->html; } - public function setId($id) { $this->id = $id; @@ -1825,7 +1781,6 @@ public function getId() { return $this->id; } - public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; @@ -1835,7 +1790,6 @@ public function getInReplyTo() { return $this->inReplyTo; } - public function setIsBundleCover($isBundleCover) { $this->isBundleCover = $isBundleCover; @@ -1845,7 +1799,6 @@ public function getIsBundleCover() { return $this->isBundleCover; } - public function setIsDeleted($isDeleted) { $this->isDeleted = $isDeleted; @@ -1855,7 +1808,6 @@ public function getIsDeleted() { return $this->isDeleted; } - public function setIsPinned($isPinned) { $this->isPinned = $isPinned; @@ -1865,7 +1817,6 @@ public function getIsPinned() { return $this->isPinned; } - public function setKind($kind) { $this->kind = $kind; @@ -1875,7 +1826,6 @@ public function getKind() { return $this->kind; } - public function setLocation(Google_Service_Mirror_Location $location) { $this->location = $location; @@ -1885,7 +1835,6 @@ public function getLocation() { return $this->location; } - public function setMenuItems($menuItems) { $this->menuItems = $menuItems; @@ -1895,7 +1844,6 @@ public function getMenuItems() { return $this->menuItems; } - public function setNotification(Google_Service_Mirror_NotificationConfig $notification) { $this->notification = $notification; @@ -1905,7 +1853,6 @@ public function getNotification() { return $this->notification; } - public function setPinScore($pinScore) { $this->pinScore = $pinScore; @@ -1915,7 +1862,6 @@ public function getPinScore() { return $this->pinScore; } - public function setRecipients($recipients) { $this->recipients = $recipients; @@ -1925,7 +1871,6 @@ public function getRecipients() { return $this->recipients; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1935,7 +1880,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceItemId($sourceItemId) { $this->sourceItemId = $sourceItemId; @@ -1945,7 +1889,6 @@ public function getSourceItemId() { return $this->sourceItemId; } - public function setSpeakableText($speakableText) { $this->speakableText = $speakableText; @@ -1955,7 +1898,6 @@ public function getSpeakableText() { return $this->speakableText; } - public function setSpeakableType($speakableType) { $this->speakableType = $speakableType; @@ -1965,7 +1907,6 @@ public function getSpeakableType() { return $this->speakableType; } - public function setText($text) { $this->text = $text; @@ -1975,7 +1916,6 @@ public function getText() { return $this->text; } - public function setTitle($title) { $this->title = $title; @@ -1985,7 +1925,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1995,6 +1934,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Mirror_TimelineListResponse extends Google_Collection @@ -2016,7 +1956,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2026,7 +1965,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2036,6 +1974,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Mirror_UserAction extends Google_Model @@ -2054,7 +1993,6 @@ public function getPayload() { return $this->payload; } - public function setType($type) { $this->type = $type; @@ -2064,6 +2002,7 @@ public function getType() { return $this->type; } + } class Google_Service_Mirror_UserData extends Google_Model @@ -2082,7 +2021,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -2092,4 +2030,5 @@ public function getValue() { return $this->value; } + } From 152dfb005e0ab2105d32ab744f25504ccd5e9f89 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:14 -0700 Subject: [PATCH 0408/1274] Updated PlusDomains.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/PlusDomains.php | 259 ++++++----------------------- 1 file changed, 53 insertions(+), 206 deletions(-) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index d2b4d3523..6c40525a7 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -920,7 +920,6 @@ public function getDescription() { return $this->description; } - public function setDomainRestricted($domainRestricted) { $this->domainRestricted = $domainRestricted; @@ -930,7 +929,6 @@ public function getDomainRestricted() { return $this->domainRestricted; } - public function setItems($items) { $this->items = $items; @@ -940,7 +938,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -950,6 +947,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_PlusDomains_Activity extends Google_Model @@ -991,7 +989,6 @@ public function getAccess() { return $this->access; } - public function setActor(Google_Service_PlusDomains_ActivityActor $actor) { $this->actor = $actor; @@ -1001,7 +998,6 @@ public function getActor() { return $this->actor; } - public function setAddress($address) { $this->address = $address; @@ -1011,7 +1007,6 @@ public function getAddress() { return $this->address; } - public function setAnnotation($annotation) { $this->annotation = $annotation; @@ -1021,7 +1016,6 @@ public function getAnnotation() { return $this->annotation; } - public function setCrosspostSource($crosspostSource) { $this->crosspostSource = $crosspostSource; @@ -1031,7 +1025,6 @@ public function getCrosspostSource() { return $this->crosspostSource; } - public function setEtag($etag) { $this->etag = $etag; @@ -1041,7 +1034,6 @@ public function getEtag() { return $this->etag; } - public function setGeocode($geocode) { $this->geocode = $geocode; @@ -1051,7 +1043,6 @@ public function getGeocode() { return $this->geocode; } - public function setId($id) { $this->id = $id; @@ -1061,7 +1052,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1071,7 +1061,6 @@ public function getKind() { return $this->kind; } - public function setLocation(Google_Service_PlusDomains_Place $location) { $this->location = $location; @@ -1081,7 +1070,6 @@ public function getLocation() { return $this->location; } - public function setObject(Google_Service_PlusDomains_ActivityObject $object) { $this->object = $object; @@ -1091,7 +1079,6 @@ public function getObject() { return $this->object; } - public function setPlaceId($placeId) { $this->placeId = $placeId; @@ -1101,7 +1088,6 @@ public function getPlaceId() { return $this->placeId; } - public function setPlaceName($placeName) { $this->placeName = $placeName; @@ -1111,7 +1097,6 @@ public function getPlaceName() { return $this->placeName; } - public function setProvider(Google_Service_PlusDomains_ActivityProvider $provider) { $this->provider = $provider; @@ -1121,7 +1106,6 @@ public function getProvider() { return $this->provider; } - public function setPublished($published) { $this->published = $published; @@ -1131,7 +1115,6 @@ public function getPublished() { return $this->published; } - public function setRadius($radius) { $this->radius = $radius; @@ -1141,7 +1124,6 @@ public function getRadius() { return $this->radius; } - public function setTitle($title) { $this->title = $title; @@ -1151,7 +1133,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1161,7 +1142,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -1171,7 +1151,6 @@ public function getUrl() { return $this->url; } - public function setVerb($verb) { $this->verb = $verb; @@ -1181,6 +1160,7 @@ public function getVerb() { return $this->verb; } + } class Google_Service_PlusDomains_ActivityActor extends Google_Model @@ -1204,7 +1184,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1214,7 +1193,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_ActivityActorImage $image) { $this->image = $image; @@ -1224,7 +1202,6 @@ public function getImage() { return $this->image; } - public function setName(Google_Service_PlusDomains_ActivityActorName $name) { $this->name = $name; @@ -1234,7 +1211,6 @@ public function getName() { return $this->name; } - public function setUrl($url) { $this->url = $url; @@ -1244,6 +1220,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityActorImage extends Google_Model @@ -1261,6 +1238,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityActorName extends Google_Model @@ -1279,7 +1257,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -1289,6 +1266,7 @@ public function getGivenName() { return $this->givenName; } + } class Google_Service_PlusDomains_ActivityFeed extends Google_Collection @@ -1316,7 +1294,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1326,7 +1303,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -1336,7 +1312,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1346,7 +1321,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -1356,7 +1330,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1366,7 +1339,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1376,7 +1348,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -1386,7 +1357,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1396,6 +1366,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_PlusDomains_ActivityObject extends Google_Collection @@ -1430,7 +1401,6 @@ public function getActor() { return $this->actor; } - public function setAttachments($attachments) { $this->attachments = $attachments; @@ -1440,7 +1410,6 @@ public function getAttachments() { return $this->attachments; } - public function setContent($content) { $this->content = $content; @@ -1450,7 +1419,6 @@ public function getContent() { return $this->content; } - public function setId($id) { $this->id = $id; @@ -1460,7 +1428,6 @@ public function getId() { return $this->id; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -1470,7 +1437,6 @@ public function getObjectType() { return $this->objectType; } - public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; @@ -1480,7 +1446,6 @@ public function getOriginalContent() { return $this->originalContent; } - public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners $plusoners) { $this->plusoners = $plusoners; @@ -1490,7 +1455,6 @@ public function getPlusoners() { return $this->plusoners; } - public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $replies) { $this->replies = $replies; @@ -1500,7 +1464,6 @@ public function getReplies() { return $this->replies; } - public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers $resharers) { $this->resharers = $resharers; @@ -1510,7 +1473,6 @@ public function getResharers() { return $this->resharers; } - public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStatusForViewer $statusForViewer) { $this->statusForViewer = $statusForViewer; @@ -1520,7 +1482,6 @@ public function getStatusForViewer() { return $this->statusForViewer; } - public function setUrl($url) { $this->url = $url; @@ -1530,6 +1491,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model @@ -1551,7 +1513,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1561,7 +1522,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_ActivityObjectActorImage $image) { $this->image = $image; @@ -1571,7 +1531,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -1581,6 +1540,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model @@ -1598,6 +1558,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection @@ -1630,7 +1591,6 @@ public function getContent() { return $this->content; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1640,7 +1600,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed $embed) { $this->embed = $embed; @@ -1650,7 +1609,6 @@ public function getEmbed() { return $this->embed; } - public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage $fullImage) { $this->fullImage = $fullImage; @@ -1660,7 +1618,6 @@ public function getFullImage() { return $this->fullImage; } - public function setId($id) { $this->id = $id; @@ -1670,7 +1627,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsImage $image) { $this->image = $image; @@ -1680,7 +1636,6 @@ public function getImage() { return $this->image; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -1690,7 +1645,6 @@ public function getObjectType() { return $this->objectType; } - public function setPreviewThumbnails($previewThumbnails) { $this->previewThumbnails = $previewThumbnails; @@ -1700,7 +1654,6 @@ public function getPreviewThumbnails() { return $this->previewThumbnails; } - public function setThumbnails($thumbnails) { $this->thumbnails = $thumbnails; @@ -1710,7 +1663,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setUrl($url) { $this->url = $url; @@ -1720,6 +1672,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model @@ -1738,7 +1691,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1748,6 +1700,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model @@ -1768,7 +1721,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1778,7 +1730,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1788,7 +1739,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1798,6 +1748,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model @@ -1818,7 +1769,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1828,7 +1778,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1838,7 +1787,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1848,6 +1796,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model @@ -1865,6 +1814,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model @@ -1885,7 +1835,6 @@ public function getDescription() { return $this->description; } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage $image) { $this->image = $image; @@ -1895,7 +1844,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -1905,6 +1853,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model @@ -1925,7 +1874,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1935,7 +1883,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1945,7 +1892,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1955,6 +1901,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model @@ -1973,7 +1920,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -1983,6 +1929,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model @@ -2001,7 +1948,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2011,6 +1957,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model @@ -2029,7 +1976,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2039,6 +1985,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model @@ -2060,7 +2007,6 @@ public function getCanComment() { return $this->canComment; } - public function setCanPlusone($canPlusone) { $this->canPlusone = $canPlusone; @@ -2070,7 +2016,6 @@ public function getCanPlusone() { return $this->canPlusone; } - public function setCanUpdate($canUpdate) { $this->canUpdate = $canUpdate; @@ -2080,7 +2025,6 @@ public function getCanUpdate() { return $this->canUpdate; } - public function setIsPlusOned($isPlusOned) { $this->isPlusOned = $isPlusOned; @@ -2090,7 +2034,6 @@ public function getIsPlusOned() { return $this->isPlusOned; } - public function setResharingDisabled($resharingDisabled) { $this->resharingDisabled = $resharingDisabled; @@ -2100,6 +2043,7 @@ public function getResharingDisabled() { return $this->resharingDisabled; } + } class Google_Service_PlusDomains_ActivityProvider extends Google_Model @@ -2117,6 +2061,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_PlusDomains_Audience extends Google_Model @@ -2139,7 +2084,6 @@ public function getEtag() { return $this->etag; } - public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $item) { $this->item = $item; @@ -2149,7 +2093,6 @@ public function getItem() { return $this->item; } - public function setKind($kind) { $this->kind = $kind; @@ -2159,7 +2102,6 @@ public function getKind() { return $this->kind; } - public function setMemberCount($memberCount) { $this->memberCount = $memberCount; @@ -2169,7 +2111,6 @@ public function getMemberCount() { return $this->memberCount; } - public function setVisibility($visibility) { $this->visibility = $visibility; @@ -2179,6 +2120,7 @@ public function getVisibility() { return $this->visibility; } + } class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection @@ -2202,7 +2144,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2212,7 +2153,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2222,7 +2162,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2232,7 +2171,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2242,6 +2180,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_Circle extends Google_Model @@ -2266,7 +2205,6 @@ public function getDescription() { return $this->description; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -2276,7 +2214,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEtag($etag) { $this->etag = $etag; @@ -2286,7 +2223,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2296,7 +2232,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2306,7 +2241,6 @@ public function getKind() { return $this->kind; } - public function setPeople(Google_Service_PlusDomains_CirclePeople $people) { $this->people = $people; @@ -2316,7 +2250,6 @@ public function getPeople() { return $this->people; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2326,6 +2259,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_PlusDomains_CircleFeed extends Google_Collection @@ -2352,7 +2286,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2362,7 +2295,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2372,7 +2304,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -2382,7 +2313,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2392,7 +2322,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2402,7 +2331,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -2412,7 +2340,6 @@ public function getTitle() { return $this->title; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2422,6 +2349,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_CirclePeople extends Google_Model @@ -2439,6 +2367,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_Comment extends Google_Collection @@ -2471,7 +2400,6 @@ public function getActor() { return $this->actor; } - public function setEtag($etag) { $this->etag = $etag; @@ -2481,7 +2409,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2491,7 +2418,6 @@ public function getId() { return $this->id; } - public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; @@ -2501,7 +2427,6 @@ public function getInReplyTo() { return $this->inReplyTo; } - public function setKind($kind) { $this->kind = $kind; @@ -2511,7 +2436,6 @@ public function getKind() { return $this->kind; } - public function setObject(Google_Service_PlusDomains_CommentObject $object) { $this->object = $object; @@ -2521,7 +2445,6 @@ public function getObject() { return $this->object; } - public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $plusoners) { $this->plusoners = $plusoners; @@ -2531,7 +2454,6 @@ public function getPlusoners() { return $this->plusoners; } - public function setPublished($published) { $this->published = $published; @@ -2541,7 +2463,6 @@ public function getPublished() { return $this->published; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2551,7 +2472,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2561,7 +2481,6 @@ public function getUpdated() { return $this->updated; } - public function setVerb($verb) { $this->verb = $verb; @@ -2571,6 +2490,7 @@ public function getVerb() { return $this->verb; } + } class Google_Service_PlusDomains_CommentActor extends Google_Model @@ -2592,7 +2512,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -2602,7 +2521,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_CommentActorImage $image) { $this->image = $image; @@ -2612,7 +2530,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -2622,6 +2539,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_CommentActorImage extends Google_Model @@ -2639,6 +2557,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_CommentFeed extends Google_Collection @@ -2665,7 +2584,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2675,7 +2593,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -2685,7 +2602,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2695,7 +2611,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -2705,7 +2620,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2715,7 +2629,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTitle($title) { $this->title = $title; @@ -2725,7 +2638,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2735,6 +2647,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model @@ -2753,7 +2666,6 @@ public function getId() { return $this->id; } - public function setUrl($url) { $this->url = $url; @@ -2763,6 +2675,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_CommentObject extends Google_Model @@ -2782,7 +2695,6 @@ public function getContent() { return $this->content; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -2792,7 +2704,6 @@ public function getObjectType() { return $this->objectType; } - public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; @@ -2802,6 +2713,7 @@ public function getOriginalContent() { return $this->originalContent; } + } class Google_Service_PlusDomains_CommentPlusoners extends Google_Model @@ -2819,6 +2731,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_Media extends Google_Collection @@ -2857,7 +2770,6 @@ public function getAuthor() { return $this->author; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -2867,7 +2779,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEtag($etag) { $this->etag = $etag; @@ -2877,7 +2788,6 @@ public function getEtag() { return $this->etag; } - public function setExif(Google_Service_PlusDomains_MediaExif $exif) { $this->exif = $exif; @@ -2887,7 +2797,6 @@ public function getExif() { return $this->exif; } - public function setHeight($height) { $this->height = $height; @@ -2897,7 +2806,6 @@ public function getHeight() { return $this->height; } - public function setId($id) { $this->id = $id; @@ -2907,7 +2815,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2917,7 +2824,6 @@ public function getKind() { return $this->kind; } - public function setMediaCreatedTime($mediaCreatedTime) { $this->mediaCreatedTime = $mediaCreatedTime; @@ -2927,7 +2833,6 @@ public function getMediaCreatedTime() { return $this->mediaCreatedTime; } - public function setMediaUrl($mediaUrl) { $this->mediaUrl = $mediaUrl; @@ -2937,7 +2842,6 @@ public function getMediaUrl() { return $this->mediaUrl; } - public function setPublished($published) { $this->published = $published; @@ -2947,7 +2851,6 @@ public function getPublished() { return $this->published; } - public function setSizeBytes($sizeBytes) { $this->sizeBytes = $sizeBytes; @@ -2957,7 +2860,6 @@ public function getSizeBytes() { return $this->sizeBytes; } - public function setStreams($streams) { $this->streams = $streams; @@ -2967,7 +2869,6 @@ public function getStreams() { return $this->streams; } - public function setSummary($summary) { $this->summary = $summary; @@ -2977,7 +2878,6 @@ public function getSummary() { return $this->summary; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2987,7 +2887,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -2997,7 +2896,6 @@ public function getUrl() { return $this->url; } - public function setVideoDuration($videoDuration) { $this->videoDuration = $videoDuration; @@ -3007,7 +2905,6 @@ public function getVideoDuration() { return $this->videoDuration; } - public function setVideoStatus($videoStatus) { $this->videoStatus = $videoStatus; @@ -3017,7 +2914,6 @@ public function getVideoStatus() { return $this->videoStatus; } - public function setWidth($width) { $this->width = $width; @@ -3027,6 +2923,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_PlusDomains_MediaAuthor extends Google_Model @@ -3048,7 +2945,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3058,7 +2954,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_MediaAuthorImage $image) { $this->image = $image; @@ -3068,7 +2963,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -3078,6 +2972,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model @@ -3095,6 +2990,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_MediaExif extends Google_Model @@ -3112,6 +3008,7 @@ public function getTime() { return $this->time; } + } class Google_Service_PlusDomains_PeopleFeed extends Google_Collection @@ -3137,7 +3034,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -3147,7 +3043,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3157,7 +3052,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3167,7 +3061,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3177,7 +3070,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -3187,7 +3079,6 @@ public function getTitle() { return $this->title; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -3197,6 +3088,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_PlusDomains_Person extends Google_Collection @@ -3249,7 +3141,6 @@ public function getAboutMe() { return $this->aboutMe; } - public function setBirthday($birthday) { $this->birthday = $birthday; @@ -3259,7 +3150,6 @@ public function getBirthday() { return $this->birthday; } - public function setBraggingRights($braggingRights) { $this->braggingRights = $braggingRights; @@ -3269,7 +3159,6 @@ public function getBraggingRights() { return $this->braggingRights; } - public function setCircledByCount($circledByCount) { $this->circledByCount = $circledByCount; @@ -3279,7 +3168,6 @@ public function getCircledByCount() { return $this->circledByCount; } - public function setCover(Google_Service_PlusDomains_PersonCover $cover) { $this->cover = $cover; @@ -3289,7 +3177,6 @@ public function getCover() { return $this->cover; } - public function setCurrentLocation($currentLocation) { $this->currentLocation = $currentLocation; @@ -3299,7 +3186,6 @@ public function getCurrentLocation() { return $this->currentLocation; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3309,7 +3195,6 @@ public function getDisplayName() { return $this->displayName; } - public function setDomain($domain) { $this->domain = $domain; @@ -3319,7 +3204,6 @@ public function getDomain() { return $this->domain; } - public function setEmails($emails) { $this->emails = $emails; @@ -3329,7 +3213,6 @@ public function getEmails() { return $this->emails; } - public function setEtag($etag) { $this->etag = $etag; @@ -3339,7 +3222,6 @@ public function getEtag() { return $this->etag; } - public function setGender($gender) { $this->gender = $gender; @@ -3349,7 +3231,6 @@ public function getGender() { return $this->gender; } - public function setId($id) { $this->id = $id; @@ -3359,7 +3240,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_PlusDomains_PersonImage $image) { $this->image = $image; @@ -3369,7 +3249,6 @@ public function getImage() { return $this->image; } - public function setIsPlusUser($isPlusUser) { $this->isPlusUser = $isPlusUser; @@ -3379,7 +3258,6 @@ public function getIsPlusUser() { return $this->isPlusUser; } - public function setKind($kind) { $this->kind = $kind; @@ -3389,7 +3267,6 @@ public function getKind() { return $this->kind; } - public function setName(Google_Service_PlusDomains_PersonName $name) { $this->name = $name; @@ -3399,7 +3276,6 @@ public function getName() { return $this->name; } - public function setNickname($nickname) { $this->nickname = $nickname; @@ -3409,7 +3285,6 @@ public function getNickname() { return $this->nickname; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -3419,7 +3294,6 @@ public function getObjectType() { return $this->objectType; } - public function setOccupation($occupation) { $this->occupation = $occupation; @@ -3429,7 +3303,6 @@ public function getOccupation() { return $this->occupation; } - public function setOrganizations($organizations) { $this->organizations = $organizations; @@ -3439,7 +3312,6 @@ public function getOrganizations() { return $this->organizations; } - public function setPlacesLived($placesLived) { $this->placesLived = $placesLived; @@ -3449,7 +3321,6 @@ public function getPlacesLived() { return $this->placesLived; } - public function setPlusOneCount($plusOneCount) { $this->plusOneCount = $plusOneCount; @@ -3459,7 +3330,6 @@ public function getPlusOneCount() { return $this->plusOneCount; } - public function setRelationshipStatus($relationshipStatus) { $this->relationshipStatus = $relationshipStatus; @@ -3469,7 +3339,6 @@ public function getRelationshipStatus() { return $this->relationshipStatus; } - public function setSkills($skills) { $this->skills = $skills; @@ -3479,7 +3348,6 @@ public function getSkills() { return $this->skills; } - public function setTagline($tagline) { $this->tagline = $tagline; @@ -3489,7 +3357,6 @@ public function getTagline() { return $this->tagline; } - public function setUrl($url) { $this->url = $url; @@ -3499,7 +3366,6 @@ public function getUrl() { return $this->url; } - public function setUrls($urls) { $this->urls = $urls; @@ -3509,7 +3375,6 @@ public function getUrls() { return $this->urls; } - public function setVerified($verified) { $this->verified = $verified; @@ -3519,6 +3384,7 @@ public function getVerified() { return $this->verified; } + } class Google_Service_PlusDomains_PersonCover extends Google_Model @@ -3540,7 +3406,6 @@ public function getCoverInfo() { return $this->coverInfo; } - public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $coverPhoto) { $this->coverPhoto = $coverPhoto; @@ -3550,7 +3415,6 @@ public function getCoverPhoto() { return $this->coverPhoto; } - public function setLayout($layout) { $this->layout = $layout; @@ -3560,6 +3424,7 @@ public function getLayout() { return $this->layout; } + } class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model @@ -3578,7 +3443,6 @@ public function getLeftImageOffset() { return $this->leftImageOffset; } - public function setTopImageOffset($topImageOffset) { $this->topImageOffset = $topImageOffset; @@ -3588,6 +3452,7 @@ public function getTopImageOffset() { return $this->topImageOffset; } + } class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model @@ -3607,7 +3472,6 @@ public function getHeight() { return $this->height; } - public function setUrl($url) { $this->url = $url; @@ -3617,7 +3481,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -3627,6 +3490,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_PlusDomains_PersonEmails extends Google_Model @@ -3645,7 +3509,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3655,6 +3518,7 @@ public function getValue() { return $this->value; } + } class Google_Service_PlusDomains_PersonImage extends Google_Model @@ -3673,7 +3537,6 @@ public function getIsDefault() { return $this->isDefault; } - public function setUrl($url) { $this->url = $url; @@ -3683,6 +3546,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_PlusDomains_PersonName extends Google_Model @@ -3705,7 +3569,6 @@ public function getFamilyName() { return $this->familyName; } - public function setFormatted($formatted) { $this->formatted = $formatted; @@ -3715,7 +3578,6 @@ public function getFormatted() { return $this->formatted; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -3725,7 +3587,6 @@ public function getGivenName() { return $this->givenName; } - public function setHonorificPrefix($honorificPrefix) { $this->honorificPrefix = $honorificPrefix; @@ -3735,7 +3596,6 @@ public function getHonorificPrefix() { return $this->honorificPrefix; } - public function setHonorificSuffix($honorificSuffix) { $this->honorificSuffix = $honorificSuffix; @@ -3745,7 +3605,6 @@ public function getHonorificSuffix() { return $this->honorificSuffix; } - public function setMiddleName($middleName) { $this->middleName = $middleName; @@ -3755,6 +3614,7 @@ public function getMiddleName() { return $this->middleName; } + } class Google_Service_PlusDomains_PersonOrganizations extends Google_Model @@ -3780,7 +3640,6 @@ public function getDepartment() { return $this->department; } - public function setDescription($description) { $this->description = $description; @@ -3790,7 +3649,6 @@ public function getDescription() { return $this->description; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -3800,7 +3658,6 @@ public function getEndDate() { return $this->endDate; } - public function setLocation($location) { $this->location = $location; @@ -3810,7 +3667,6 @@ public function getLocation() { return $this->location; } - public function setName($name) { $this->name = $name; @@ -3820,7 +3676,6 @@ public function getName() { return $this->name; } - public function setPrimary($primary) { $this->primary = $primary; @@ -3830,7 +3685,6 @@ public function getPrimary() { return $this->primary; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -3840,7 +3694,6 @@ public function getStartDate() { return $this->startDate; } - public function setTitle($title) { $this->title = $title; @@ -3850,7 +3703,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -3860,6 +3712,7 @@ public function getType() { return $this->type; } + } class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model @@ -3878,7 +3731,6 @@ public function getPrimary() { return $this->primary; } - public function setValue($value) { $this->value = $value; @@ -3888,6 +3740,7 @@ public function getValue() { return $this->value; } + } class Google_Service_PlusDomains_PersonUrls extends Google_Model @@ -3907,7 +3760,6 @@ public function getLabel() { return $this->label; } - public function setType($type) { $this->type = $type; @@ -3917,7 +3769,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3927,6 +3778,7 @@ public function getValue() { return $this->value; } + } class Google_Service_PlusDomains_Place extends Google_Model @@ -3950,7 +3802,6 @@ public function getAddress() { return $this->address; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3960,7 +3811,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3970,7 +3820,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3980,7 +3829,6 @@ public function getKind() { return $this->kind; } - public function setPosition(Google_Service_PlusDomains_PlacePosition $position) { $this->position = $position; @@ -3990,6 +3838,7 @@ public function getPosition() { return $this->position; } + } class Google_Service_PlusDomains_PlaceAddress extends Google_Model @@ -4007,6 +3856,7 @@ public function getFormatted() { return $this->formatted; } + } class Google_Service_PlusDomains_PlacePosition extends Google_Model @@ -4025,7 +3875,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -4035,6 +3884,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model @@ -4054,7 +3904,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -4064,7 +3913,6 @@ public function getId() { return $this->id; } - public function setType($type) { $this->type = $type; @@ -4074,6 +3922,7 @@ public function getType() { return $this->type; } + } class Google_Service_PlusDomains_Videostream extends Google_Model @@ -4094,7 +3943,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -4104,7 +3952,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -4114,7 +3961,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -4124,4 +3970,5 @@ public function getWidth() { return $this->width; } + } From ea45adb176592fcf862b8d960daa0635301952fd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:15 -0700 Subject: [PATCH 0409/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 100 +++++++--------------------- 1 file changed, 24 insertions(+), 76 deletions(-) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 0b1b13aa6..a8a58223f 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -1262,7 +1262,6 @@ public function getColor() { return $this->color; } - public function setIcon($icon) { $this->icon = $icon; @@ -1272,7 +1271,6 @@ public function getIcon() { return $this->icon; } - public function setMax($max) { $this->max = $max; @@ -1282,7 +1280,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -1292,7 +1289,6 @@ public function getMin() { return $this->min; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -1302,7 +1298,6 @@ public function getOpacity() { return $this->opacity; } - public function setWeight($weight) { $this->weight = $weight; @@ -1312,6 +1307,7 @@ public function getWeight() { return $this->weight; } + } class Google_Service_Fusiontables_Column extends Google_Model @@ -1337,7 +1333,6 @@ public function getBaseColumn() { return $this->baseColumn; } - public function setColumnId($columnId) { $this->columnId = $columnId; @@ -1347,7 +1342,6 @@ public function getColumnId() { return $this->columnId; } - public function setDescription($description) { $this->description = $description; @@ -1357,7 +1351,6 @@ public function getDescription() { return $this->description; } - public function setGraphPredicate($graphPredicate) { $this->graphPredicate = $graphPredicate; @@ -1367,7 +1360,6 @@ public function getGraphPredicate() { return $this->graphPredicate; } - public function setKind($kind) { $this->kind = $kind; @@ -1377,7 +1369,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1387,7 +1378,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -1397,6 +1387,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model @@ -1415,7 +1406,6 @@ public function getColumnId() { return $this->columnId; } - public function setTableIndex($tableIndex) { $this->tableIndex = $tableIndex; @@ -1425,6 +1415,7 @@ public function getTableIndex() { return $this->tableIndex; } + } class Google_Service_Fusiontables_ColumnList extends Google_Collection @@ -1447,7 +1438,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1457,7 +1447,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1467,7 +1456,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -1477,6 +1465,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Fusiontables_Geometry extends Google_Collection @@ -1497,7 +1486,6 @@ public function getGeometries() { return $this->geometries; } - public function setGeometry($geometry) { $this->geometry = $geometry; @@ -1507,7 +1495,6 @@ public function getGeometry() { return $this->geometry; } - public function setType($type) { $this->type = $type; @@ -1517,6 +1504,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_Import extends Google_Model @@ -1535,7 +1523,6 @@ public function getKind() { return $this->kind; } - public function setNumRowsReceived($numRowsReceived) { $this->numRowsReceived = $numRowsReceived; @@ -1545,6 +1532,7 @@ public function getNumRowsReceived() { return $this->numRowsReceived; } + } class Google_Service_Fusiontables_Line extends Google_Collection @@ -1564,7 +1552,6 @@ public function getCoordinates() { return $this->coordinates; } - public function setType($type) { $this->type = $type; @@ -1574,6 +1561,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_LineStyle extends Google_Model @@ -1597,7 +1585,6 @@ public function getStrokeColor() { return $this->strokeColor; } - public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) { $this->strokeColorStyler = $strokeColorStyler; @@ -1607,7 +1594,6 @@ public function getStrokeColorStyler() { return $this->strokeColorStyler; } - public function setStrokeOpacity($strokeOpacity) { $this->strokeOpacity = $strokeOpacity; @@ -1617,7 +1603,6 @@ public function getStrokeOpacity() { return $this->strokeOpacity; } - public function setStrokeWeight($strokeWeight) { $this->strokeWeight = $strokeWeight; @@ -1627,7 +1612,6 @@ public function getStrokeWeight() { return $this->strokeWeight; } - public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) { $this->strokeWeightStyler = $strokeWeightStyler; @@ -1637,6 +1621,7 @@ public function getStrokeWeightStyler() { return $this->strokeWeightStyler; } + } class Google_Service_Fusiontables_Point extends Google_Collection @@ -1656,7 +1641,6 @@ public function getCoordinates() { return $this->coordinates; } - public function setType($type) { $this->type = $type; @@ -1666,6 +1650,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_PointStyle extends Google_Model @@ -1685,7 +1670,6 @@ public function getIconName() { return $this->iconName; } - public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconStyler) { $this->iconStyler = $iconStyler; @@ -1695,6 +1679,7 @@ public function getIconStyler() { return $this->iconStyler; } + } class Google_Service_Fusiontables_Polygon extends Google_Collection @@ -1714,7 +1699,6 @@ public function getCoordinates() { return $this->coordinates; } - public function setType($type) { $this->type = $type; @@ -1724,6 +1708,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_PolygonStyle extends Google_Model @@ -1751,7 +1736,6 @@ public function getFillColor() { return $this->fillColor; } - public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fillColorStyler) { $this->fillColorStyler = $fillColorStyler; @@ -1761,7 +1745,6 @@ public function getFillColorStyler() { return $this->fillColorStyler; } - public function setFillOpacity($fillOpacity) { $this->fillOpacity = $fillOpacity; @@ -1771,7 +1754,6 @@ public function getFillOpacity() { return $this->fillOpacity; } - public function setStrokeColor($strokeColor) { $this->strokeColor = $strokeColor; @@ -1781,7 +1763,6 @@ public function getStrokeColor() { return $this->strokeColor; } - public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) { $this->strokeColorStyler = $strokeColorStyler; @@ -1791,7 +1772,6 @@ public function getStrokeColorStyler() { return $this->strokeColorStyler; } - public function setStrokeOpacity($strokeOpacity) { $this->strokeOpacity = $strokeOpacity; @@ -1801,7 +1781,6 @@ public function getStrokeOpacity() { return $this->strokeOpacity; } - public function setStrokeWeight($strokeWeight) { $this->strokeWeight = $strokeWeight; @@ -1811,7 +1790,6 @@ public function getStrokeWeight() { return $this->strokeWeight; } - public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) { $this->strokeWeightStyler = $strokeWeightStyler; @@ -1821,6 +1799,7 @@ public function getStrokeWeightStyler() { return $this->strokeWeightStyler; } + } class Google_Service_Fusiontables_Sqlresponse extends Google_Collection @@ -1841,7 +1820,6 @@ public function getColumns() { return $this->columns; } - public function setKind($kind) { $this->kind = $kind; @@ -1851,7 +1829,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -1861,6 +1838,7 @@ public function getRows() { return $this->rows; } + } class Google_Service_Fusiontables_StyleFunction extends Google_Collection @@ -1884,7 +1862,6 @@ public function getBuckets() { return $this->buckets; } - public function setColumnName($columnName) { $this->columnName = $columnName; @@ -1894,7 +1871,6 @@ public function getColumnName() { return $this->columnName; } - public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $gradient) { $this->gradient = $gradient; @@ -1904,7 +1880,6 @@ public function getGradient() { return $this->gradient; } - public function setKind($kind) { $this->kind = $kind; @@ -1914,6 +1889,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection @@ -1935,7 +1911,6 @@ public function getColors() { return $this->colors; } - public function setMax($max) { $this->max = $max; @@ -1945,7 +1920,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -1955,6 +1929,7 @@ public function getMin() { return $this->min; } + } class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model @@ -1973,7 +1948,6 @@ public function getColor() { return $this->color; } - public function setOpacity($opacity) { $this->opacity = $opacity; @@ -1983,6 +1957,7 @@ public function getOpacity() { return $this->opacity; } + } class Google_Service_Fusiontables_StyleSetting extends Google_Model @@ -2009,7 +1984,6 @@ public function getKind() { return $this->kind; } - public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerOptions) { $this->markerOptions = $markerOptions; @@ -2019,7 +1993,6 @@ public function getMarkerOptions() { return $this->markerOptions; } - public function setName($name) { $this->name = $name; @@ -2029,7 +2002,6 @@ public function getName() { return $this->name; } - public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $polygonOptions) { $this->polygonOptions = $polygonOptions; @@ -2039,7 +2011,6 @@ public function getPolygonOptions() { return $this->polygonOptions; } - public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polylineOptions) { $this->polylineOptions = $polylineOptions; @@ -2049,7 +2020,6 @@ public function getPolylineOptions() { return $this->polylineOptions; } - public function setStyleId($styleId) { $this->styleId = $styleId; @@ -2059,7 +2029,6 @@ public function getStyleId() { return $this->styleId; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -2069,6 +2038,7 @@ public function getTableId() { return $this->tableId; } + } class Google_Service_Fusiontables_StyleSettingList extends Google_Collection @@ -2091,7 +2061,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2101,7 +2070,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2111,7 +2079,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2121,6 +2088,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Fusiontables_Table extends Google_Collection @@ -2149,7 +2117,6 @@ public function getAttribution() { return $this->attribution; } - public function setAttributionLink($attributionLink) { $this->attributionLink = $attributionLink; @@ -2159,7 +2126,6 @@ public function getAttributionLink() { return $this->attributionLink; } - public function setBaseTableIds($baseTableIds) { $this->baseTableIds = $baseTableIds; @@ -2169,7 +2135,6 @@ public function getBaseTableIds() { return $this->baseTableIds; } - public function setColumns($columns) { $this->columns = $columns; @@ -2179,7 +2144,6 @@ public function getColumns() { return $this->columns; } - public function setDescription($description) { $this->description = $description; @@ -2189,7 +2153,6 @@ public function getDescription() { return $this->description; } - public function setIsExportable($isExportable) { $this->isExportable = $isExportable; @@ -2199,7 +2162,6 @@ public function getIsExportable() { return $this->isExportable; } - public function setKind($kind) { $this->kind = $kind; @@ -2209,7 +2171,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2219,7 +2180,6 @@ public function getName() { return $this->name; } - public function setSql($sql) { $this->sql = $sql; @@ -2229,7 +2189,6 @@ public function getSql() { return $this->sql; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -2239,6 +2198,7 @@ public function getTableId() { return $this->tableId; } + } class Google_Service_Fusiontables_TableList extends Google_Collection @@ -2260,7 +2220,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2270,7 +2229,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2280,6 +2238,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Fusiontables_Task extends Google_Model @@ -2301,7 +2260,6 @@ public function getKind() { return $this->kind; } - public function setProgress($progress) { $this->progress = $progress; @@ -2311,7 +2269,6 @@ public function getProgress() { return $this->progress; } - public function setStarted($started) { $this->started = $started; @@ -2321,7 +2278,6 @@ public function getStarted() { return $this->started; } - public function setTaskId($taskId) { $this->taskId = $taskId; @@ -2331,7 +2287,6 @@ public function getTaskId() { return $this->taskId; } - public function setType($type) { $this->type = $type; @@ -2341,6 +2296,7 @@ public function getType() { return $this->type; } + } class Google_Service_Fusiontables_TaskList extends Google_Collection @@ -2363,7 +2319,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2373,7 +2328,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2383,7 +2337,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2393,6 +2346,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Fusiontables_Template extends Google_Collection @@ -2416,7 +2370,6 @@ public function getAutomaticColumnNames() { return $this->automaticColumnNames; } - public function setBody($body) { $this->body = $body; @@ -2426,7 +2379,6 @@ public function getBody() { return $this->body; } - public function setKind($kind) { $this->kind = $kind; @@ -2436,7 +2388,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2446,7 +2397,6 @@ public function getName() { return $this->name; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -2456,7 +2406,6 @@ public function getTableId() { return $this->tableId; } - public function setTemplateId($templateId) { $this->templateId = $templateId; @@ -2466,6 +2415,7 @@ public function getTemplateId() { return $this->templateId; } + } class Google_Service_Fusiontables_TemplateList extends Google_Collection @@ -2488,7 +2438,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2498,7 +2447,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2508,7 +2456,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2518,4 +2465,5 @@ public function getTotalItems() { return $this->totalItems; } + } From c301f7802bfc11b5c00961358e3a6e7dddf8f378 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:16 -0700 Subject: [PATCH 0410/1274] Updated Taskqueue.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Taskqueue.php | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index 41b4c0fed..b83a586f4 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -457,7 +457,6 @@ public function getEnqueueTimestamp() { return $this->enqueueTimestamp; } - public function setId($id) { $this->id = $id; @@ -467,7 +466,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -477,7 +475,6 @@ public function getKind() { return $this->kind; } - public function setLeaseTimestamp($leaseTimestamp) { $this->leaseTimestamp = $leaseTimestamp; @@ -487,7 +484,6 @@ public function getLeaseTimestamp() { return $this->leaseTimestamp; } - public function setPayloadBase64($payloadBase64) { $this->payloadBase64 = $payloadBase64; @@ -497,7 +493,6 @@ public function getPayloadBase64() { return $this->payloadBase64; } - public function setQueueName($queueName) { $this->queueName = $queueName; @@ -507,7 +502,6 @@ public function getQueueName() { return $this->queueName; } - public function setRetryCount($retryCount) { $this->retryCount = $retryCount; @@ -517,7 +511,6 @@ public function getRetryCount() { return $this->retryCount; } - public function setTag($tag) { $this->tag = $tag; @@ -527,6 +520,7 @@ public function getTag() { return $this->tag; } + } class Google_Service_Taskqueue_TaskQueue extends Google_Model @@ -550,7 +544,6 @@ public function getAcl() { return $this->acl; } - public function setId($id) { $this->id = $id; @@ -560,7 +553,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -570,7 +562,6 @@ public function getKind() { return $this->kind; } - public function setMaxLeases($maxLeases) { $this->maxLeases = $maxLeases; @@ -580,7 +571,6 @@ public function getMaxLeases() { return $this->maxLeases; } - public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats) { $this->stats = $stats; @@ -590,6 +580,7 @@ public function getStats() { return $this->stats; } + } class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection @@ -610,7 +601,6 @@ public function getAdminEmails() { return $this->adminEmails; } - public function setConsumerEmails($consumerEmails) { $this->consumerEmails = $consumerEmails; @@ -620,7 +610,6 @@ public function getConsumerEmails() { return $this->consumerEmails; } - public function setProducerEmails($producerEmails) { $this->producerEmails = $producerEmails; @@ -630,6 +619,7 @@ public function getProducerEmails() { return $this->producerEmails; } + } class Google_Service_Taskqueue_TaskQueueStats extends Google_Model @@ -650,7 +640,6 @@ public function getLeasedLastHour() { return $this->leasedLastHour; } - public function setLeasedLastMinute($leasedLastMinute) { $this->leasedLastMinute = $leasedLastMinute; @@ -660,7 +649,6 @@ public function getLeasedLastMinute() { return $this->leasedLastMinute; } - public function setOldestTask($oldestTask) { $this->oldestTask = $oldestTask; @@ -670,7 +658,6 @@ public function getOldestTask() { return $this->oldestTask; } - public function setTotalTasks($totalTasks) { $this->totalTasks = $totalTasks; @@ -680,6 +667,7 @@ public function getTotalTasks() { return $this->totalTasks; } + } class Google_Service_Taskqueue_Tasks extends Google_Collection @@ -700,7 +688,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -710,6 +697,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Taskqueue_Tasks2 extends Google_Collection @@ -730,7 +718,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -740,4 +727,5 @@ public function getKind() { return $this->kind; } + } From 710bff6c128da06dd09fafdf9082a866a2049132 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:16 -0700 Subject: [PATCH 0411/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 34 ++++++++++------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 7a2a1ac24..7b9aef204 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -174,7 +174,6 @@ public function getCombinedEvent() { return $this->combinedEvent; } - public function setSingleEvents($singleEvents) { $this->singleEvents = $singleEvents; @@ -184,6 +183,7 @@ public function getSingleEvents() { return $this->singleEvents; } + } class Google_Service_Appsactivity_Event extends Google_Collection @@ -215,7 +215,6 @@ public function getAdditionalEventTypes() { return $this->additionalEventTypes; } - public function setEventTimeMillis($eventTimeMillis) { $this->eventTimeMillis = $eventTimeMillis; @@ -225,7 +224,6 @@ public function getEventTimeMillis() { return $this->eventTimeMillis; } - public function setFromUserDeletion($fromUserDeletion) { $this->fromUserDeletion = $fromUserDeletion; @@ -235,7 +233,6 @@ public function getFromUserDeletion() { return $this->fromUserDeletion; } - public function setMove(Google_Service_Appsactivity_Move $move) { $this->move = $move; @@ -245,7 +242,6 @@ public function getMove() { return $this->move; } - public function setPermissionChanges($permissionChanges) { $this->permissionChanges = $permissionChanges; @@ -255,7 +251,6 @@ public function getPermissionChanges() { return $this->permissionChanges; } - public function setPrimaryEventType($primaryEventType) { $this->primaryEventType = $primaryEventType; @@ -265,7 +260,6 @@ public function getPrimaryEventType() { return $this->primaryEventType; } - public function setRename(Google_Service_Appsactivity_Rename $rename) { $this->rename = $rename; @@ -275,7 +269,6 @@ public function getRename() { return $this->rename; } - public function setTarget(Google_Service_Appsactivity_Target $target) { $this->target = $target; @@ -285,7 +278,6 @@ public function getTarget() { return $this->target; } - public function setUser(Google_Service_Appsactivity_User $user) { $this->user = $user; @@ -295,6 +287,7 @@ public function getUser() { return $this->user; } + } class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection @@ -315,7 +308,6 @@ public function getActivities() { return $this->activities; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -325,6 +317,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Appsactivity_Move extends Google_Collection @@ -346,7 +339,6 @@ public function getAddedParents() { return $this->addedParents; } - public function setRemovedParents($removedParents) { $this->removedParents = $removedParents; @@ -356,6 +348,7 @@ public function getRemovedParents() { return $this->removedParents; } + } class Google_Service_Appsactivity_Parent extends Google_Model @@ -375,7 +368,6 @@ public function getId() { return $this->id; } - public function setIsRoot($isRoot) { $this->isRoot = $isRoot; @@ -385,7 +377,6 @@ public function getIsRoot() { return $this->isRoot; } - public function setTitle($title) { $this->title = $title; @@ -395,6 +386,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Appsactivity_Permission extends Google_Model @@ -418,7 +410,6 @@ public function getName() { return $this->name; } - public function setPermissionId($permissionId) { $this->permissionId = $permissionId; @@ -428,7 +419,6 @@ public function getPermissionId() { return $this->permissionId; } - public function setRole($role) { $this->role = $role; @@ -438,7 +428,6 @@ public function getRole() { return $this->role; } - public function setType($type) { $this->type = $type; @@ -448,7 +437,6 @@ public function getType() { return $this->type; } - public function setUser(Google_Service_Appsactivity_User $user) { $this->user = $user; @@ -458,7 +446,6 @@ public function getUser() { return $this->user; } - public function setWithLink($withLink) { $this->withLink = $withLink; @@ -468,6 +455,7 @@ public function getWithLink() { return $this->withLink; } + } class Google_Service_Appsactivity_PermissionChange extends Google_Collection @@ -489,7 +477,6 @@ public function getAddedPermissions() { return $this->addedPermissions; } - public function setRemovedPermissions($removedPermissions) { $this->removedPermissions = $removedPermissions; @@ -499,6 +486,7 @@ public function getRemovedPermissions() { return $this->removedPermissions; } + } class Google_Service_Appsactivity_Photo extends Google_Model @@ -516,6 +504,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Appsactivity_Rename extends Google_Model @@ -534,7 +523,6 @@ public function getNewTitle() { return $this->newTitle; } - public function setOldTitle($oldTitle) { $this->oldTitle = $oldTitle; @@ -544,6 +532,7 @@ public function getOldTitle() { return $this->oldTitle; } + } class Google_Service_Appsactivity_Target extends Google_Model @@ -563,7 +552,6 @@ public function getId() { return $this->id; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -573,7 +561,6 @@ public function getMimeType() { return $this->mimeType; } - public function setName($name) { $this->name = $name; @@ -583,6 +570,7 @@ public function getName() { return $this->name; } + } class Google_Service_Appsactivity_User extends Google_Model @@ -602,7 +590,6 @@ public function getName() { return $this->name; } - public function setPhoto(Google_Service_Appsactivity_Photo $photo) { $this->photo = $photo; @@ -612,4 +599,5 @@ public function getPhoto() { return $this->photo; } + } From 1f9d814ff1434abe577e169eeb3d805e760a49bd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:17 -0700 Subject: [PATCH 0412/1274] Updated Freebase.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Freebase.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index d65f574e2..e2df723fb 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -277,7 +277,7 @@ public function search($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); - return $this->call('search', array($params)); + return $this->base_methods->call('search', array($params)); } } @@ -305,7 +305,6 @@ public function getConfidence() { return $this->confidence; } - public function setLang($lang) { $this->lang = $lang; @@ -315,7 +314,6 @@ public function getLang() { return $this->lang; } - public function setMid($mid) { $this->mid = $mid; @@ -325,7 +323,6 @@ public function getMid() { return $this->mid; } - public function setName($name) { $this->name = $name; @@ -335,7 +332,6 @@ public function getName() { return $this->name; } - public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable) { $this->notable = $notable; @@ -345,6 +341,7 @@ public function getNotable() { return $this->notable; } + } class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model @@ -363,7 +360,6 @@ public function getId() { return $this->id; } - public function setName($name) { $this->name = $name; @@ -373,6 +369,7 @@ public function getName() { return $this->name; } + } class Google_Service_Freebase_ReconcileGet extends Google_Collection @@ -398,7 +395,6 @@ public function getCandidate() { return $this->candidate; } - public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs) { $this->costs = $costs; @@ -408,7 +404,6 @@ public function getCosts() { return $this->costs; } - public function setMatch(Google_Service_Freebase_ReconcileCandidate $match) { $this->match = $match; @@ -418,7 +413,6 @@ public function getMatch() { return $this->match; } - public function setWarning($warning) { $this->warning = $warning; @@ -428,6 +422,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Freebase_ReconcileGetCosts extends Google_Model @@ -446,7 +441,6 @@ public function getHits() { return $this->hits; } - public function setMs($ms) { $this->ms = $ms; @@ -456,6 +450,7 @@ public function getMs() { return $this->ms; } + } class Google_Service_Freebase_ReconcileGetWarning extends Google_Model @@ -475,7 +470,6 @@ public function getLocation() { return $this->location; } - public function setMessage($message) { $this->message = $message; @@ -485,7 +479,6 @@ public function getMessage() { return $this->message; } - public function setReason($reason) { $this->reason = $reason; @@ -495,4 +488,5 @@ public function getReason() { return $this->reason; } + } From d4fa210166ced99df730b203f157102759320909 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:17 -0700 Subject: [PATCH 0413/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 52 +++++++-------------------------- 1 file changed, 11 insertions(+), 41 deletions(-) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 907903776..4329b7914 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -574,7 +574,6 @@ public function getAddressLine1() { return $this->addressLine1; } - public function setAddressLine2($addressLine2) { $this->addressLine2 = $addressLine2; @@ -584,7 +583,6 @@ public function getAddressLine2() { return $this->addressLine2; } - public function setAddressLine3($addressLine3) { $this->addressLine3 = $addressLine3; @@ -594,7 +592,6 @@ public function getAddressLine3() { return $this->addressLine3; } - public function setContactName($contactName) { $this->contactName = $contactName; @@ -604,7 +601,6 @@ public function getContactName() { return $this->contactName; } - public function setCountryCode($countryCode) { $this->countryCode = $countryCode; @@ -614,7 +610,6 @@ public function getCountryCode() { return $this->countryCode; } - public function setKind($kind) { $this->kind = $kind; @@ -624,7 +619,6 @@ public function getKind() { return $this->kind; } - public function setLocality($locality) { $this->locality = $locality; @@ -634,7 +628,6 @@ public function getLocality() { return $this->locality; } - public function setOrganizationName($organizationName) { $this->organizationName = $organizationName; @@ -644,7 +637,6 @@ public function getOrganizationName() { return $this->organizationName; } - public function setPostalCode($postalCode) { $this->postalCode = $postalCode; @@ -654,7 +646,6 @@ public function getPostalCode() { return $this->postalCode; } - public function setRegion($region) { $this->region = $region; @@ -664,6 +655,7 @@ public function getRegion() { return $this->region; } + } class Google_Service_Reseller_ChangePlanRequest extends Google_Model @@ -685,7 +677,6 @@ public function getKind() { return $this->kind; } - public function setPlanName($planName) { $this->planName = $planName; @@ -695,7 +686,6 @@ public function getPlanName() { return $this->planName; } - public function setPurchaseOrderId($purchaseOrderId) { $this->purchaseOrderId = $purchaseOrderId; @@ -705,7 +695,6 @@ public function getPurchaseOrderId() { return $this->purchaseOrderId; } - public function setSeats(Google_Service_Reseller_Seats $seats) { $this->seats = $seats; @@ -715,6 +704,7 @@ public function getSeats() { return $this->seats; } + } class Google_Service_Reseller_Customer extends Google_Model @@ -739,7 +729,6 @@ public function getAlternateEmail() { return $this->alternateEmail; } - public function setCustomerDomain($customerDomain) { $this->customerDomain = $customerDomain; @@ -749,7 +738,6 @@ public function getCustomerDomain() { return $this->customerDomain; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -759,7 +747,6 @@ public function getCustomerId() { return $this->customerId; } - public function setKind($kind) { $this->kind = $kind; @@ -769,7 +756,6 @@ public function getKind() { return $this->kind; } - public function setPhoneNumber($phoneNumber) { $this->phoneNumber = $phoneNumber; @@ -779,7 +765,6 @@ public function getPhoneNumber() { return $this->phoneNumber; } - public function setPostalAddress(Google_Service_Reseller_Address $postalAddress) { $this->postalAddress = $postalAddress; @@ -789,7 +774,6 @@ public function getPostalAddress() { return $this->postalAddress; } - public function setResourceUiUrl($resourceUiUrl) { $this->resourceUiUrl = $resourceUiUrl; @@ -799,6 +783,7 @@ public function getResourceUiUrl() { return $this->resourceUiUrl; } + } class Google_Service_Reseller_RenewalSettings extends Google_Model @@ -817,7 +802,6 @@ public function getKind() { return $this->kind; } - public function setRenewalType($renewalType) { $this->renewalType = $renewalType; @@ -827,6 +811,7 @@ public function getRenewalType() { return $this->renewalType; } + } class Google_Service_Reseller_Seats extends Google_Model @@ -847,7 +832,6 @@ public function getKind() { return $this->kind; } - public function setLicensedNumberOfSeats($licensedNumberOfSeats) { $this->licensedNumberOfSeats = $licensedNumberOfSeats; @@ -857,7 +841,6 @@ public function getLicensedNumberOfSeats() { return $this->licensedNumberOfSeats; } - public function setMaximumNumberOfSeats($maximumNumberOfSeats) { $this->maximumNumberOfSeats = $maximumNumberOfSeats; @@ -867,7 +850,6 @@ public function getMaximumNumberOfSeats() { return $this->maximumNumberOfSeats; } - public function setNumberOfSeats($numberOfSeats) { $this->numberOfSeats = $numberOfSeats; @@ -877,6 +859,7 @@ public function getNumberOfSeats() { return $this->numberOfSeats; } + } class Google_Service_Reseller_Subscription extends Google_Model @@ -911,7 +894,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -921,7 +903,6 @@ public function getCustomerId() { return $this->customerId; } - public function setKind($kind) { $this->kind = $kind; @@ -931,7 +912,6 @@ public function getKind() { return $this->kind; } - public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan) { $this->plan = $plan; @@ -941,7 +921,6 @@ public function getPlan() { return $this->plan; } - public function setPurchaseOrderId($purchaseOrderId) { $this->purchaseOrderId = $purchaseOrderId; @@ -951,7 +930,6 @@ public function getPurchaseOrderId() { return $this->purchaseOrderId; } - public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings) { $this->renewalSettings = $renewalSettings; @@ -961,7 +939,6 @@ public function getRenewalSettings() { return $this->renewalSettings; } - public function setResourceUiUrl($resourceUiUrl) { $this->resourceUiUrl = $resourceUiUrl; @@ -971,7 +948,6 @@ public function getResourceUiUrl() { return $this->resourceUiUrl; } - public function setSeats(Google_Service_Reseller_Seats $seats) { $this->seats = $seats; @@ -981,7 +957,6 @@ public function getSeats() { return $this->seats; } - public function setSkuId($skuId) { $this->skuId = $skuId; @@ -991,7 +966,6 @@ public function getSkuId() { return $this->skuId; } - public function setStatus($status) { $this->status = $status; @@ -1001,7 +975,6 @@ public function getStatus() { return $this->status; } - public function setSubscriptionId($subscriptionId) { $this->subscriptionId = $subscriptionId; @@ -1011,7 +984,6 @@ public function getSubscriptionId() { return $this->subscriptionId; } - public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) { $this->transferInfo = $transferInfo; @@ -1021,7 +993,6 @@ public function getTransferInfo() { return $this->transferInfo; } - public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings) { $this->trialSettings = $trialSettings; @@ -1031,6 +1002,7 @@ public function getTrialSettings() { return $this->trialSettings; } + } class Google_Service_Reseller_SubscriptionPlan extends Google_Model @@ -1051,7 +1023,6 @@ public function getCommitmentInterval() { return $this->commitmentInterval; } - public function setIsCommitmentPlan($isCommitmentPlan) { $this->isCommitmentPlan = $isCommitmentPlan; @@ -1061,7 +1032,6 @@ public function getIsCommitmentPlan() { return $this->isCommitmentPlan; } - public function setPlanName($planName) { $this->planName = $planName; @@ -1071,6 +1041,7 @@ public function getPlanName() { return $this->planName; } + } class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model @@ -1089,7 +1060,6 @@ public function getEndTime() { return $this->endTime; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1099,6 +1069,7 @@ public function getStartTime() { return $this->startTime; } + } class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model @@ -1117,7 +1088,6 @@ public function getMinimumTransferableSeats() { return $this->minimumTransferableSeats; } - public function setTransferabilityExpirationTime($transferabilityExpirationTime) { $this->transferabilityExpirationTime = $transferabilityExpirationTime; @@ -1127,6 +1097,7 @@ public function getTransferabilityExpirationTime() { return $this->transferabilityExpirationTime; } + } class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model @@ -1145,7 +1116,6 @@ public function getIsInTrial() { return $this->isInTrial; } - public function setTrialEndTime($trialEndTime) { $this->trialEndTime = $trialEndTime; @@ -1155,6 +1125,7 @@ public function getTrialEndTime() { return $this->trialEndTime; } + } class Google_Service_Reseller_Subscriptions extends Google_Collection @@ -1176,7 +1147,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1186,7 +1156,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscriptions($subscriptions) { $this->subscriptions = $subscriptions; @@ -1196,4 +1165,5 @@ public function getSubscriptions() { return $this->subscriptions; } + } From 3675c210f58b0a4b4c86491f6a7292bd7d4f49a5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:18 -0700 Subject: [PATCH 0414/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 71 +++++++++++++++--------------------- 1 file changed, 30 insertions(+), 41 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index ac2b178ad..c4f722ab0 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -532,6 +532,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'metadataHeaders' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => '{userId}/threads', @@ -1156,6 +1165,11 @@ public function delete($userId, $id, $optParams = array()) * @param string $id * The ID of the thread to retrieve. * @param array $optParams Optional parameters. + * + * @opt_param string metadataHeaders + * When given and format is METADATA, only include headers specified. + * @opt_param string format + * The format to return the messages in. * @return Google_Service_Gmail_Thread */ public function get($userId, $id, $optParams = array()) @@ -1262,7 +1276,6 @@ public function getId() { return $this->id; } - public function setMessage(Google_Service_Gmail_Message $message) { $this->message = $message; @@ -1272,6 +1285,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Gmail_History extends Google_Collection @@ -1292,7 +1306,6 @@ public function getId() { return $this->id; } - public function setMessages($messages) { $this->messages = $messages; @@ -1302,6 +1315,7 @@ public function getMessages() { return $this->messages; } + } class Google_Service_Gmail_Label extends Google_Model @@ -1327,7 +1341,6 @@ public function getId() { return $this->id; } - public function setLabelListVisibility($labelListVisibility) { $this->labelListVisibility = $labelListVisibility; @@ -1337,7 +1350,6 @@ public function getLabelListVisibility() { return $this->labelListVisibility; } - public function setMessageListVisibility($messageListVisibility) { $this->messageListVisibility = $messageListVisibility; @@ -1347,7 +1359,6 @@ public function getMessageListVisibility() { return $this->messageListVisibility; } - public function setMessagesTotal($messagesTotal) { $this->messagesTotal = $messagesTotal; @@ -1357,7 +1368,6 @@ public function getMessagesTotal() { return $this->messagesTotal; } - public function setMessagesUnread($messagesUnread) { $this->messagesUnread = $messagesUnread; @@ -1367,7 +1377,6 @@ public function getMessagesUnread() { return $this->messagesUnread; } - public function setName($name) { $this->name = $name; @@ -1377,7 +1386,6 @@ public function getName() { return $this->name; } - public function setThreadsTotal($threadsTotal) { $this->threadsTotal = $threadsTotal; @@ -1387,7 +1395,6 @@ public function getThreadsTotal() { return $this->threadsTotal; } - public function setThreadsUnread($threadsUnread) { $this->threadsUnread = $threadsUnread; @@ -1397,7 +1404,6 @@ public function getThreadsUnread() { return $this->threadsUnread; } - public function setType($type) { $this->type = $type; @@ -1407,6 +1413,7 @@ public function getType() { return $this->type; } + } class Google_Service_Gmail_ListDraftsResponse extends Google_Collection @@ -1428,7 +1435,6 @@ public function getDrafts() { return $this->drafts; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1438,7 +1444,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; @@ -1448,6 +1453,7 @@ public function getResultSizeEstimate() { return $this->resultSizeEstimate; } + } class Google_Service_Gmail_ListHistoryResponse extends Google_Collection @@ -1469,7 +1475,6 @@ public function getHistory() { return $this->history; } - public function setHistoryId($historyId) { $this->historyId = $historyId; @@ -1479,7 +1484,6 @@ public function getHistoryId() { return $this->historyId; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1489,6 +1493,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Gmail_ListLabelsResponse extends Google_Collection @@ -1508,6 +1513,7 @@ public function getLabels() { return $this->labels; } + } class Google_Service_Gmail_ListMessagesResponse extends Google_Collection @@ -1529,7 +1535,6 @@ public function getMessages() { return $this->messages; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1539,7 +1544,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; @@ -1549,6 +1553,7 @@ public function getResultSizeEstimate() { return $this->resultSizeEstimate; } + } class Google_Service_Gmail_ListThreadsResponse extends Google_Collection @@ -1570,7 +1575,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; @@ -1580,7 +1584,6 @@ public function getResultSizeEstimate() { return $this->resultSizeEstimate; } - public function setThreads($threads) { $this->threads = $threads; @@ -1590,6 +1593,7 @@ public function getThreads() { return $this->threads; } + } class Google_Service_Gmail_Message extends Google_Collection @@ -1616,7 +1620,6 @@ public function getHistoryId() { return $this->historyId; } - public function setId($id) { $this->id = $id; @@ -1626,7 +1629,6 @@ public function getId() { return $this->id; } - public function setLabelIds($labelIds) { $this->labelIds = $labelIds; @@ -1636,7 +1638,6 @@ public function getLabelIds() { return $this->labelIds; } - public function setPayload(Google_Service_Gmail_MessagePart $payload) { $this->payload = $payload; @@ -1646,7 +1647,6 @@ public function getPayload() { return $this->payload; } - public function setRaw($raw) { $this->raw = $raw; @@ -1656,7 +1656,6 @@ public function getRaw() { return $this->raw; } - public function setSizeEstimate($sizeEstimate) { $this->sizeEstimate = $sizeEstimate; @@ -1666,7 +1665,6 @@ public function getSizeEstimate() { return $this->sizeEstimate; } - public function setSnippet($snippet) { $this->snippet = $snippet; @@ -1676,7 +1674,6 @@ public function getSnippet() { return $this->snippet; } - public function setThreadId($threadId) { $this->threadId = $threadId; @@ -1686,6 +1683,7 @@ public function getThreadId() { return $this->threadId; } + } class Google_Service_Gmail_MessagePart extends Google_Collection @@ -1712,7 +1710,6 @@ public function getBody() { return $this->body; } - public function setFilename($filename) { $this->filename = $filename; @@ -1722,7 +1719,6 @@ public function getFilename() { return $this->filename; } - public function setHeaders($headers) { $this->headers = $headers; @@ -1732,7 +1728,6 @@ public function getHeaders() { return $this->headers; } - public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -1742,7 +1737,6 @@ public function getMimeType() { return $this->mimeType; } - public function setPartId($partId) { $this->partId = $partId; @@ -1752,7 +1746,6 @@ public function getPartId() { return $this->partId; } - public function setParts($parts) { $this->parts = $parts; @@ -1762,6 +1755,7 @@ public function getParts() { return $this->parts; } + } class Google_Service_Gmail_MessagePartBody extends Google_Model @@ -1781,7 +1775,6 @@ public function getAttachmentId() { return $this->attachmentId; } - public function setData($data) { $this->data = $data; @@ -1791,7 +1784,6 @@ public function getData() { return $this->data; } - public function setSize($size) { $this->size = $size; @@ -1801,6 +1793,7 @@ public function getSize() { return $this->size; } + } class Google_Service_Gmail_MessagePartHeader extends Google_Model @@ -1819,7 +1812,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -1829,6 +1821,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection @@ -1848,7 +1841,6 @@ public function getAddLabelIds() { return $this->addLabelIds; } - public function setRemoveLabelIds($removeLabelIds) { $this->removeLabelIds = $removeLabelIds; @@ -1858,6 +1850,7 @@ public function getRemoveLabelIds() { return $this->removeLabelIds; } + } class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection @@ -1877,7 +1870,6 @@ public function getAddLabelIds() { return $this->addLabelIds; } - public function setRemoveLabelIds($removeLabelIds) { $this->removeLabelIds = $removeLabelIds; @@ -1887,6 +1879,7 @@ public function getRemoveLabelIds() { return $this->removeLabelIds; } + } class Google_Service_Gmail_Profile extends Google_Model @@ -1907,7 +1900,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setHistoryId($historyId) { $this->historyId = $historyId; @@ -1917,7 +1909,6 @@ public function getHistoryId() { return $this->historyId; } - public function setMessagesTotal($messagesTotal) { $this->messagesTotal = $messagesTotal; @@ -1927,7 +1918,6 @@ public function getMessagesTotal() { return $this->messagesTotal; } - public function setThreadsTotal($threadsTotal) { $this->threadsTotal = $threadsTotal; @@ -1937,6 +1927,7 @@ public function getThreadsTotal() { return $this->threadsTotal; } + } class Google_Service_Gmail_Thread extends Google_Collection @@ -1959,7 +1950,6 @@ public function getHistoryId() { return $this->historyId; } - public function setId($id) { $this->id = $id; @@ -1969,7 +1959,6 @@ public function getId() { return $this->id; } - public function setMessages($messages) { $this->messages = $messages; @@ -1979,7 +1968,6 @@ public function getMessages() { return $this->messages; } - public function setSnippet($snippet) { $this->snippet = $snippet; @@ -1989,4 +1977,5 @@ public function getSnippet() { return $this->snippet; } + } From f575efb8810dd89f0145af06a2d83a7ec8b899ec Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:19 -0700 Subject: [PATCH 0415/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 206 +++++++------------------------- 1 file changed, 42 insertions(+), 164 deletions(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 52be5654c..43597a88a 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -986,7 +986,6 @@ public function getAccess() { return $this->access; } - public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -996,7 +995,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) { $this->datasetReference = $datasetReference; @@ -1006,7 +1004,6 @@ public function getDatasetReference() { return $this->datasetReference; } - public function setDescription($description) { $this->description = $description; @@ -1016,7 +1013,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -1026,7 +1022,6 @@ public function getEtag() { return $this->etag; } - public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; @@ -1036,7 +1031,6 @@ public function getFriendlyName() { return $this->friendlyName; } - public function setId($id) { $this->id = $id; @@ -1046,7 +1040,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1056,7 +1049,6 @@ public function getKind() { return $this->kind; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -1066,7 +1058,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1076,6 +1067,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Bigquery_DatasetAccess extends Google_Model @@ -1099,7 +1091,6 @@ public function getDomain() { return $this->domain; } - public function setGroupByEmail($groupByEmail) { $this->groupByEmail = $groupByEmail; @@ -1109,7 +1100,6 @@ public function getGroupByEmail() { return $this->groupByEmail; } - public function setRole($role) { $this->role = $role; @@ -1119,7 +1109,6 @@ public function getRole() { return $this->role; } - public function setSpecialGroup($specialGroup) { $this->specialGroup = $specialGroup; @@ -1129,7 +1118,6 @@ public function getSpecialGroup() { return $this->specialGroup; } - public function setUserByEmail($userByEmail) { $this->userByEmail = $userByEmail; @@ -1139,7 +1127,6 @@ public function getUserByEmail() { return $this->userByEmail; } - public function setView(Google_Service_Bigquery_TableReference $view) { $this->view = $view; @@ -1149,6 +1136,7 @@ public function getView() { return $this->view; } + } class Google_Service_Bigquery_DatasetList extends Google_Collection @@ -1171,7 +1159,6 @@ public function getDatasets() { return $this->datasets; } - public function setEtag($etag) { $this->etag = $etag; @@ -1181,7 +1168,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -1191,7 +1177,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1201,6 +1186,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Bigquery_DatasetListDatasets extends Google_Model @@ -1222,7 +1208,6 @@ public function getDatasetReference() { return $this->datasetReference; } - public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; @@ -1232,7 +1217,6 @@ public function getFriendlyName() { return $this->friendlyName; } - public function setId($id) { $this->id = $id; @@ -1242,7 +1226,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1252,6 +1235,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Bigquery_DatasetReference extends Google_Model @@ -1270,7 +1254,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -1280,6 +1263,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_Bigquery_ErrorProto extends Google_Model @@ -1300,7 +1284,6 @@ public function getDebugInfo() { return $this->debugInfo; } - public function setLocation($location) { $this->location = $location; @@ -1310,7 +1293,6 @@ public function getLocation() { return $this->location; } - public function setMessage($message) { $this->message = $message; @@ -1320,7 +1302,6 @@ public function getMessage() { return $this->message; } - public function setReason($reason) { $this->reason = $reason; @@ -1330,6 +1311,7 @@ public function getReason() { return $this->reason; } + } class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection @@ -1359,7 +1341,6 @@ public function getCacheHit() { return $this->cacheHit; } - public function setEtag($etag) { $this->etag = $etag; @@ -1369,7 +1350,6 @@ public function getEtag() { return $this->etag; } - public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; @@ -1379,7 +1359,6 @@ public function getJobComplete() { return $this->jobComplete; } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { $this->jobReference = $jobReference; @@ -1389,7 +1368,6 @@ public function getJobReference() { return $this->jobReference; } - public function setKind($kind) { $this->kind = $kind; @@ -1399,7 +1377,6 @@ public function getKind() { return $this->kind; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -1409,7 +1386,6 @@ public function getPageToken() { return $this->pageToken; } - public function setRows($rows) { $this->rows = $rows; @@ -1419,7 +1395,6 @@ public function getRows() { return $this->rows; } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; @@ -1429,7 +1404,6 @@ public function getSchema() { return $this->schema; } - public function setTotalRows($totalRows) { $this->totalRows = $totalRows; @@ -1439,6 +1413,7 @@ public function getTotalRows() { return $this->totalRows; } + } class Google_Service_Bigquery_Job extends Google_Model @@ -1467,7 +1442,6 @@ public function getConfiguration() { return $this->configuration; } - public function setEtag($etag) { $this->etag = $etag; @@ -1477,7 +1451,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1487,7 +1460,6 @@ public function getId() { return $this->id; } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { $this->jobReference = $jobReference; @@ -1497,7 +1469,6 @@ public function getJobReference() { return $this->jobReference; } - public function setKind($kind) { $this->kind = $kind; @@ -1507,7 +1478,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1517,7 +1487,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { $this->statistics = $statistics; @@ -1527,7 +1496,6 @@ public function getStatistics() { return $this->statistics; } - public function setStatus(Google_Service_Bigquery_JobStatus $status) { $this->status = $status; @@ -1537,6 +1505,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Bigquery_JobConfiguration extends Google_Model @@ -1564,7 +1533,6 @@ public function getCopy() { return $this->copy; } - public function setDryRun($dryRun) { $this->dryRun = $dryRun; @@ -1574,7 +1542,6 @@ public function getDryRun() { return $this->dryRun; } - public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract) { $this->extract = $extract; @@ -1584,7 +1551,6 @@ public function getExtract() { return $this->extract; } - public function setLink(Google_Service_Bigquery_JobConfigurationLink $link) { $this->link = $link; @@ -1594,7 +1560,6 @@ public function getLink() { return $this->link; } - public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load) { $this->load = $load; @@ -1604,7 +1569,6 @@ public function getLoad() { return $this->load; } - public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query) { $this->query = $query; @@ -1614,6 +1578,7 @@ public function getQuery() { return $this->query; } + } class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection @@ -1639,7 +1604,6 @@ public function getCompression() { return $this->compression; } - public function setDestinationFormat($destinationFormat) { $this->destinationFormat = $destinationFormat; @@ -1649,7 +1613,6 @@ public function getDestinationFormat() { return $this->destinationFormat; } - public function setDestinationUri($destinationUri) { $this->destinationUri = $destinationUri; @@ -1659,7 +1622,6 @@ public function getDestinationUri() { return $this->destinationUri; } - public function setDestinationUris($destinationUris) { $this->destinationUris = $destinationUris; @@ -1669,7 +1631,6 @@ public function getDestinationUris() { return $this->destinationUris; } - public function setFieldDelimiter($fieldDelimiter) { $this->fieldDelimiter = $fieldDelimiter; @@ -1679,7 +1640,6 @@ public function getFieldDelimiter() { return $this->fieldDelimiter; } - public function setPrintHeader($printHeader) { $this->printHeader = $printHeader; @@ -1689,7 +1649,6 @@ public function getPrintHeader() { return $this->printHeader; } - public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) { $this->sourceTable = $sourceTable; @@ -1699,6 +1658,7 @@ public function getSourceTable() { return $this->sourceTable; } + } class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection @@ -1721,7 +1681,6 @@ public function getCreateDisposition() { return $this->createDisposition; } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { $this->destinationTable = $destinationTable; @@ -1731,7 +1690,6 @@ public function getDestinationTable() { return $this->destinationTable; } - public function setSourceUri($sourceUri) { $this->sourceUri = $sourceUri; @@ -1741,7 +1699,6 @@ public function getSourceUri() { return $this->sourceUri; } - public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -1751,6 +1708,7 @@ public function getWriteDisposition() { return $this->writeDisposition; } + } class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection @@ -1786,7 +1744,6 @@ public function getAllowJaggedRows() { return $this->allowJaggedRows; } - public function setAllowQuotedNewlines($allowQuotedNewlines) { $this->allowQuotedNewlines = $allowQuotedNewlines; @@ -1796,7 +1753,6 @@ public function getAllowQuotedNewlines() { return $this->allowQuotedNewlines; } - public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; @@ -1806,7 +1762,6 @@ public function getCreateDisposition() { return $this->createDisposition; } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { $this->destinationTable = $destinationTable; @@ -1816,7 +1771,6 @@ public function getDestinationTable() { return $this->destinationTable; } - public function setEncoding($encoding) { $this->encoding = $encoding; @@ -1826,7 +1780,6 @@ public function getEncoding() { return $this->encoding; } - public function setFieldDelimiter($fieldDelimiter) { $this->fieldDelimiter = $fieldDelimiter; @@ -1836,7 +1789,6 @@ public function getFieldDelimiter() { return $this->fieldDelimiter; } - public function setIgnoreUnknownValues($ignoreUnknownValues) { $this->ignoreUnknownValues = $ignoreUnknownValues; @@ -1846,7 +1798,6 @@ public function getIgnoreUnknownValues() { return $this->ignoreUnknownValues; } - public function setMaxBadRecords($maxBadRecords) { $this->maxBadRecords = $maxBadRecords; @@ -1856,7 +1807,6 @@ public function getMaxBadRecords() { return $this->maxBadRecords; } - public function setQuote($quote) { $this->quote = $quote; @@ -1866,7 +1816,6 @@ public function getQuote() { return $this->quote; } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; @@ -1876,7 +1825,6 @@ public function getSchema() { return $this->schema; } - public function setSchemaInline($schemaInline) { $this->schemaInline = $schemaInline; @@ -1886,7 +1834,6 @@ public function getSchemaInline() { return $this->schemaInline; } - public function setSchemaInlineFormat($schemaInlineFormat) { $this->schemaInlineFormat = $schemaInlineFormat; @@ -1896,7 +1843,6 @@ public function getSchemaInlineFormat() { return $this->schemaInlineFormat; } - public function setSkipLeadingRows($skipLeadingRows) { $this->skipLeadingRows = $skipLeadingRows; @@ -1906,7 +1852,6 @@ public function getSkipLeadingRows() { return $this->skipLeadingRows; } - public function setSourceFormat($sourceFormat) { $this->sourceFormat = $sourceFormat; @@ -1916,7 +1861,6 @@ public function getSourceFormat() { return $this->sourceFormat; } - public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; @@ -1926,7 +1870,6 @@ public function getSourceUris() { return $this->sourceUris; } - public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -1936,6 +1879,7 @@ public function getWriteDisposition() { return $this->writeDisposition; } + } class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model @@ -1964,7 +1908,6 @@ public function getAllowLargeResults() { return $this->allowLargeResults; } - public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; @@ -1974,7 +1917,6 @@ public function getCreateDisposition() { return $this->createDisposition; } - public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) { $this->defaultDataset = $defaultDataset; @@ -1984,7 +1926,6 @@ public function getDefaultDataset() { return $this->defaultDataset; } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { $this->destinationTable = $destinationTable; @@ -1994,7 +1935,6 @@ public function getDestinationTable() { return $this->destinationTable; } - public function setFlattenResults($flattenResults) { $this->flattenResults = $flattenResults; @@ -2004,7 +1944,6 @@ public function getFlattenResults() { return $this->flattenResults; } - public function setPreserveNulls($preserveNulls) { $this->preserveNulls = $preserveNulls; @@ -2014,7 +1953,6 @@ public function getPreserveNulls() { return $this->preserveNulls; } - public function setPriority($priority) { $this->priority = $priority; @@ -2024,7 +1962,6 @@ public function getPriority() { return $this->priority; } - public function setQuery($query) { $this->query = $query; @@ -2034,7 +1971,6 @@ public function getQuery() { return $this->query; } - public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -2044,7 +1980,6 @@ public function getUseQueryCache() { return $this->useQueryCache; } - public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -2054,6 +1989,7 @@ public function getWriteDisposition() { return $this->writeDisposition; } + } class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection @@ -2079,7 +2015,6 @@ public function getCreateDisposition() { return $this->createDisposition; } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { $this->destinationTable = $destinationTable; @@ -2089,7 +2024,6 @@ public function getDestinationTable() { return $this->destinationTable; } - public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) { $this->sourceTable = $sourceTable; @@ -2099,7 +2033,6 @@ public function getSourceTable() { return $this->sourceTable; } - public function setSourceTables($sourceTables) { $this->sourceTables = $sourceTables; @@ -2109,7 +2042,6 @@ public function getSourceTables() { return $this->sourceTables; } - public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -2119,6 +2051,7 @@ public function getWriteDisposition() { return $this->writeDisposition; } + } class Google_Service_Bigquery_JobList extends Google_Collection @@ -2142,7 +2075,6 @@ public function getEtag() { return $this->etag; } - public function setJobs($jobs) { $this->jobs = $jobs; @@ -2152,7 +2084,6 @@ public function getJobs() { return $this->jobs; } - public function setKind($kind) { $this->kind = $kind; @@ -2162,7 +2093,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2172,7 +2102,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2182,6 +2111,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Bigquery_JobListJobs extends Google_Model @@ -2213,7 +2143,6 @@ public function getConfiguration() { return $this->configuration; } - public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) { $this->errorResult = $errorResult; @@ -2223,7 +2152,6 @@ public function getErrorResult() { return $this->errorResult; } - public function setId($id) { $this->id = $id; @@ -2233,7 +2161,6 @@ public function getId() { return $this->id; } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { $this->jobReference = $jobReference; @@ -2243,7 +2170,6 @@ public function getJobReference() { return $this->jobReference; } - public function setKind($kind) { $this->kind = $kind; @@ -2253,7 +2179,6 @@ public function getKind() { return $this->kind; } - public function setState($state) { $this->state = $state; @@ -2263,7 +2188,6 @@ public function getState() { return $this->state; } - public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { $this->statistics = $statistics; @@ -2273,7 +2197,6 @@ public function getStatistics() { return $this->statistics; } - public function setStatus(Google_Service_Bigquery_JobStatus $status) { $this->status = $status; @@ -2283,7 +2206,6 @@ public function getStatus() { return $this->status; } - public function setUserEmail($userEmail) { $this->userEmail = $userEmail; @@ -2293,6 +2215,7 @@ public function getUserEmail() { return $this->userEmail; } + } class Google_Service_Bigquery_JobReference extends Google_Model @@ -2311,7 +2234,6 @@ public function getJobId() { return $this->jobId; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -2321,6 +2243,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_Bigquery_JobStatistics extends Google_Model @@ -2345,7 +2268,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -2355,7 +2277,6 @@ public function getEndTime() { return $this->endTime; } - public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) { $this->load = $load; @@ -2365,7 +2286,6 @@ public function getLoad() { return $this->load; } - public function setQuery(Google_Service_Bigquery_JobStatistics2 $query) { $this->query = $query; @@ -2375,7 +2295,6 @@ public function getQuery() { return $this->query; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -2385,7 +2304,6 @@ public function getStartTime() { return $this->startTime; } - public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; @@ -2395,6 +2313,7 @@ public function getTotalBytesProcessed() { return $this->totalBytesProcessed; } + } class Google_Service_Bigquery_JobStatistics2 extends Google_Model @@ -2413,7 +2332,6 @@ public function getCacheHit() { return $this->cacheHit; } - public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; @@ -2423,6 +2341,7 @@ public function getTotalBytesProcessed() { return $this->totalBytesProcessed; } + } class Google_Service_Bigquery_JobStatistics3 extends Google_Model @@ -2443,7 +2362,6 @@ public function getInputFileBytes() { return $this->inputFileBytes; } - public function setInputFiles($inputFiles) { $this->inputFiles = $inputFiles; @@ -2453,7 +2371,6 @@ public function getInputFiles() { return $this->inputFiles; } - public function setOutputBytes($outputBytes) { $this->outputBytes = $outputBytes; @@ -2463,7 +2380,6 @@ public function getOutputBytes() { return $this->outputBytes; } - public function setOutputRows($outputRows) { $this->outputRows = $outputRows; @@ -2473,6 +2389,7 @@ public function getOutputRows() { return $this->outputRows; } + } class Google_Service_Bigquery_JobStatus extends Google_Collection @@ -2495,7 +2412,6 @@ public function getErrorResult() { return $this->errorResult; } - public function setErrors($errors) { $this->errors = $errors; @@ -2505,7 +2421,6 @@ public function getErrors() { return $this->errors; } - public function setState($state) { $this->state = $state; @@ -2515,12 +2430,15 @@ public function getState() { return $this->state; } + } class Google_Service_Bigquery_JsonObject extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Bigquery_ProjectList extends Google_Collection @@ -2544,7 +2462,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -2554,7 +2471,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2564,7 +2480,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setProjects($projects) { $this->projects = $projects; @@ -2574,7 +2489,6 @@ public function getProjects() { return $this->projects; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -2584,6 +2498,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Bigquery_ProjectListProjects extends Google_Model @@ -2606,7 +2521,6 @@ public function getFriendlyName() { return $this->friendlyName; } - public function setId($id) { $this->id = $id; @@ -2616,7 +2530,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2626,7 +2539,6 @@ public function getKind() { return $this->kind; } - public function setNumericId($numericId) { $this->numericId = $numericId; @@ -2636,7 +2548,6 @@ public function getNumericId() { return $this->numericId; } - public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference) { $this->projectReference = $projectReference; @@ -2646,6 +2557,7 @@ public function getProjectReference() { return $this->projectReference; } + } class Google_Service_Bigquery_ProjectReference extends Google_Model @@ -2663,6 +2575,7 @@ public function getProjectId() { return $this->projectId; } + } class Google_Service_Bigquery_QueryRequest extends Google_Model @@ -2688,7 +2601,6 @@ public function getDefaultDataset() { return $this->defaultDataset; } - public function setDryRun($dryRun) { $this->dryRun = $dryRun; @@ -2698,7 +2610,6 @@ public function getDryRun() { return $this->dryRun; } - public function setKind($kind) { $this->kind = $kind; @@ -2708,7 +2619,6 @@ public function getKind() { return $this->kind; } - public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -2718,7 +2628,6 @@ public function getMaxResults() { return $this->maxResults; } - public function setPreserveNulls($preserveNulls) { $this->preserveNulls = $preserveNulls; @@ -2728,7 +2637,6 @@ public function getPreserveNulls() { return $this->preserveNulls; } - public function setQuery($query) { $this->query = $query; @@ -2738,7 +2646,6 @@ public function getQuery() { return $this->query; } - public function setTimeoutMs($timeoutMs) { $this->timeoutMs = $timeoutMs; @@ -2748,7 +2655,6 @@ public function getTimeoutMs() { return $this->timeoutMs; } - public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -2758,6 +2664,7 @@ public function getUseQueryCache() { return $this->useQueryCache; } + } class Google_Service_Bigquery_QueryResponse extends Google_Collection @@ -2787,7 +2694,6 @@ public function getCacheHit() { return $this->cacheHit; } - public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; @@ -2797,7 +2703,6 @@ public function getJobComplete() { return $this->jobComplete; } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { $this->jobReference = $jobReference; @@ -2807,7 +2712,6 @@ public function getJobReference() { return $this->jobReference; } - public function setKind($kind) { $this->kind = $kind; @@ -2817,7 +2721,6 @@ public function getKind() { return $this->kind; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -2827,7 +2730,6 @@ public function getPageToken() { return $this->pageToken; } - public function setRows($rows) { $this->rows = $rows; @@ -2837,7 +2739,6 @@ public function getRows() { return $this->rows; } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; @@ -2847,7 +2748,6 @@ public function getSchema() { return $this->schema; } - public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; @@ -2857,7 +2757,6 @@ public function getTotalBytesProcessed() { return $this->totalBytesProcessed; } - public function setTotalRows($totalRows) { $this->totalRows = $totalRows; @@ -2867,6 +2766,7 @@ public function getTotalRows() { return $this->totalRows; } + } class Google_Service_Bigquery_Table extends Google_Model @@ -2901,7 +2801,6 @@ public function getCreationTime() { return $this->creationTime; } - public function setDescription($description) { $this->description = $description; @@ -2911,7 +2810,6 @@ public function getDescription() { return $this->description; } - public function setEtag($etag) { $this->etag = $etag; @@ -2921,7 +2819,6 @@ public function getEtag() { return $this->etag; } - public function setExpirationTime($expirationTime) { $this->expirationTime = $expirationTime; @@ -2931,7 +2828,6 @@ public function getExpirationTime() { return $this->expirationTime; } - public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; @@ -2941,7 +2837,6 @@ public function getFriendlyName() { return $this->friendlyName; } - public function setId($id) { $this->id = $id; @@ -2951,7 +2846,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2961,7 +2855,6 @@ public function getKind() { return $this->kind; } - public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; @@ -2971,7 +2864,6 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } - public function setNumBytes($numBytes) { $this->numBytes = $numBytes; @@ -2981,7 +2873,6 @@ public function getNumBytes() { return $this->numBytes; } - public function setNumRows($numRows) { $this->numRows = $numRows; @@ -2991,7 +2882,6 @@ public function getNumRows() { return $this->numRows; } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; @@ -3001,7 +2891,6 @@ public function getSchema() { return $this->schema; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3011,7 +2900,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { $this->tableReference = $tableReference; @@ -3021,7 +2909,6 @@ public function getTableReference() { return $this->tableReference; } - public function setType($type) { $this->type = $type; @@ -3031,7 +2918,6 @@ public function getType() { return $this->type; } - public function setView(Google_Service_Bigquery_ViewDefinition $view) { $this->view = $view; @@ -3041,6 +2927,7 @@ public function getView() { return $this->view; } + } class Google_Service_Bigquery_TableCell extends Google_Model @@ -3058,6 +2945,7 @@ public function getV() { return $this->v; } + } class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection @@ -3078,7 +2966,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -3088,6 +2975,7 @@ public function getRows() { return $this->rows; } + } class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model @@ -3106,7 +2994,6 @@ public function getInsertId() { return $this->insertId; } - public function setJson($json) { $this->json = $json; @@ -3116,6 +3003,7 @@ public function getJson() { return $this->json; } + } class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection @@ -3136,7 +3024,6 @@ public function getInsertErrors() { return $this->insertErrors; } - public function setKind($kind) { $this->kind = $kind; @@ -3146,6 +3033,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection @@ -3166,7 +3054,6 @@ public function getErrors() { return $this->errors; } - public function setIndex($index) { $this->index = $index; @@ -3176,6 +3063,7 @@ public function getIndex() { return $this->index; } + } class Google_Service_Bigquery_TableDataList extends Google_Collection @@ -3199,7 +3087,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -3209,7 +3096,6 @@ public function getKind() { return $this->kind; } - public function setPageToken($pageToken) { $this->pageToken = $pageToken; @@ -3219,7 +3105,6 @@ public function getPageToken() { return $this->pageToken; } - public function setRows($rows) { $this->rows = $rows; @@ -3229,7 +3114,6 @@ public function getRows() { return $this->rows; } - public function setTotalRows($totalRows) { $this->totalRows = $totalRows; @@ -3239,6 +3123,7 @@ public function getTotalRows() { return $this->totalRows; } + } class Google_Service_Bigquery_TableFieldSchema extends Google_Collection @@ -3262,7 +3147,6 @@ public function getDescription() { return $this->description; } - public function setFields($fields) { $this->fields = $fields; @@ -3272,7 +3156,6 @@ public function getFields() { return $this->fields; } - public function setMode($mode) { $this->mode = $mode; @@ -3282,7 +3165,6 @@ public function getMode() { return $this->mode; } - public function setName($name) { $this->name = $name; @@ -3292,7 +3174,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -3302,6 +3183,7 @@ public function getType() { return $this->type; } + } class Google_Service_Bigquery_TableList extends Google_Collection @@ -3325,7 +3207,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -3335,7 +3216,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3345,7 +3225,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTables($tables) { $this->tables = $tables; @@ -3355,7 +3234,6 @@ public function getTables() { return $this->tables; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -3365,6 +3243,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Bigquery_TableListTables extends Google_Model @@ -3387,7 +3266,6 @@ public function getFriendlyName() { return $this->friendlyName; } - public function setId($id) { $this->id = $id; @@ -3397,7 +3275,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3407,7 +3284,6 @@ public function getKind() { return $this->kind; } - public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { $this->tableReference = $tableReference; @@ -3417,7 +3293,6 @@ public function getTableReference() { return $this->tableReference; } - public function setType($type) { $this->type = $type; @@ -3427,6 +3302,7 @@ public function getType() { return $this->type; } + } class Google_Service_Bigquery_TableReference extends Google_Model @@ -3446,7 +3322,6 @@ public function getDatasetId() { return $this->datasetId; } - public function setProjectId($projectId) { $this->projectId = $projectId; @@ -3456,7 +3331,6 @@ public function getProjectId() { return $this->projectId; } - public function setTableId($tableId) { $this->tableId = $tableId; @@ -3466,6 +3340,7 @@ public function getTableId() { return $this->tableId; } + } class Google_Service_Bigquery_TableRow extends Google_Collection @@ -3485,6 +3360,7 @@ public function getF() { return $this->f; } + } class Google_Service_Bigquery_TableSchema extends Google_Collection @@ -3504,6 +3380,7 @@ public function getFields() { return $this->fields; } + } class Google_Service_Bigquery_ViewDefinition extends Google_Model @@ -3521,4 +3398,5 @@ public function getQuery() { return $this->query; } + } From b76cff7b927a5e20875a1a53e1c29fae35daad9f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:20 -0700 Subject: [PATCH 0416/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index e1af47196..9d738775e 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -427,7 +427,6 @@ public function getAckId() { return $this->ackId; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -437,6 +436,7 @@ public function getSubscription() { return $this->subscription; } + } class Google_Service_Pubsub_Label extends Google_Model @@ -456,7 +456,6 @@ public function getKey() { return $this->key; } - public function setNumValue($numValue) { $this->numValue = $numValue; @@ -466,7 +465,6 @@ public function getNumValue() { return $this->numValue; } - public function setStrValue($strValue) { $this->strValue = $strValue; @@ -476,6 +474,7 @@ public function getStrValue() { return $this->strValue; } + } class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection @@ -496,7 +495,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -506,6 +504,7 @@ public function getSubscription() { return $this->subscription; } + } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection @@ -526,7 +525,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopic($topic) { $this->topic = $topic; @@ -536,6 +534,7 @@ public function getTopic() { return $this->topic; } + } class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model @@ -555,7 +554,6 @@ public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; } - public function setAckId($ackId) { $this->ackId = $ackId; @@ -565,7 +563,6 @@ public function getAckId() { return $this->ackId; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -575,6 +572,7 @@ public function getSubscription() { return $this->subscription; } + } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -594,7 +592,6 @@ public function getPushConfig() { return $this->pushConfig; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -604,6 +601,7 @@ public function getSubscription() { return $this->subscription; } + } class Google_Service_Pubsub_PublishRequest extends Google_Model @@ -623,7 +621,6 @@ public function getMessage() { return $this->message; } - public function setTopic($topic) { $this->topic = $topic; @@ -633,6 +630,7 @@ public function getTopic() { return $this->topic; } + } class Google_Service_Pubsub_PubsubEvent extends Google_Model @@ -654,7 +652,6 @@ public function getDeleted() { return $this->deleted; } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { $this->message = $message; @@ -664,7 +661,6 @@ public function getMessage() { return $this->message; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -674,7 +670,6 @@ public function getSubscription() { return $this->subscription; } - public function setTruncated($truncated) { $this->truncated = $truncated; @@ -684,6 +679,7 @@ public function getTruncated() { return $this->truncated; } + } class Google_Service_Pubsub_PubsubMessage extends Google_Collection @@ -704,7 +700,6 @@ public function getData() { return $this->data; } - public function setLabel($label) { $this->label = $label; @@ -714,6 +709,7 @@ public function getLabel() { return $this->label; } + } class Google_Service_Pubsub_PullRequest extends Google_Model @@ -732,7 +728,6 @@ public function getReturnImmediately() { return $this->returnImmediately; } - public function setSubscription($subscription) { $this->subscription = $subscription; @@ -742,6 +737,7 @@ public function getSubscription() { return $this->subscription; } + } class Google_Service_Pubsub_PullResponse extends Google_Model @@ -761,7 +757,6 @@ public function getAckId() { return $this->ackId; } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) { $this->pubsubEvent = $pubsubEvent; @@ -771,6 +766,7 @@ public function getPubsubEvent() { return $this->pubsubEvent; } + } class Google_Service_Pubsub_PushConfig extends Google_Model @@ -788,6 +784,7 @@ public function getPushEndpoint() { return $this->pushEndpoint; } + } class Google_Service_Pubsub_Subscription extends Google_Model @@ -809,7 +806,6 @@ public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; } - public function setName($name) { $this->name = $name; @@ -819,7 +815,6 @@ public function getName() { return $this->name; } - public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) { $this->pushConfig = $pushConfig; @@ -829,7 +824,6 @@ public function getPushConfig() { return $this->pushConfig; } - public function setTopic($topic) { $this->topic = $topic; @@ -839,6 +833,7 @@ public function getTopic() { return $this->topic; } + } class Google_Service_Pubsub_Topic extends Google_Model @@ -856,4 +851,5 @@ public function getName() { return $this->name; } + } From fd16230f5bc0d00e4923bbd41a20e2f83db7ddc5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:20 -0700 Subject: [PATCH 0417/1274] Updated Prediction.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Prediction.php | 83 ++++++++++++------------------- 1 file changed, 31 insertions(+), 52 deletions(-) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index b0745f965..6a031323a 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -384,7 +384,6 @@ public function getDataDescription() { return $this->dataDescription; } - public function setErrors($errors) { $this->errors = $errors; @@ -394,7 +393,6 @@ public function getErrors() { return $this->errors; } - public function setId($id) { $this->id = $id; @@ -404,7 +402,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -414,7 +411,6 @@ public function getKind() { return $this->kind; } - public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription) { $this->modelDescription = $modelDescription; @@ -424,7 +420,6 @@ public function getModelDescription() { return $this->modelDescription; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -434,6 +429,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection @@ -455,7 +451,6 @@ public function getFeatures() { return $this->features; } - public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature) { $this->outputFeature = $outputFeature; @@ -465,6 +460,7 @@ public function getOutputFeature() { return $this->outputFeature; } + } class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model @@ -488,7 +484,6 @@ public function getCategorical() { return $this->categorical; } - public function setIndex($index) { $this->index = $index; @@ -498,7 +493,6 @@ public function getIndex() { return $this->index; } - public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric) { $this->numeric = $numeric; @@ -508,7 +502,6 @@ public function getNumeric() { return $this->numeric; } - public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text) { $this->text = $text; @@ -518,6 +511,7 @@ public function getText() { return $this->text; } + } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection @@ -538,7 +532,6 @@ public function getCount() { return $this->count; } - public function setValues($values) { $this->values = $values; @@ -548,6 +541,7 @@ public function getValues() { return $this->values; } + } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model @@ -566,7 +560,6 @@ public function getCount() { return $this->count; } - public function setValue($value) { $this->value = $value; @@ -576,6 +569,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model @@ -595,7 +589,6 @@ public function getCount() { return $this->count; } - public function setMean($mean) { $this->mean = $mean; @@ -605,7 +598,6 @@ public function getMean() { return $this->mean; } - public function setVariance($variance) { $this->variance = $variance; @@ -615,6 +607,7 @@ public function getVariance() { return $this->variance; } + } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model @@ -632,6 +625,7 @@ public function getCount() { return $this->count; } + } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection @@ -653,7 +647,6 @@ public function getNumeric() { return $this->numeric; } - public function setText($text) { $this->text = $text; @@ -663,6 +656,7 @@ public function getText() { return $this->text; } + } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model @@ -682,7 +676,6 @@ public function getCount() { return $this->count; } - public function setMean($mean) { $this->mean = $mean; @@ -692,7 +685,6 @@ public function getMean() { return $this->mean; } - public function setVariance($variance) { $this->variance = $variance; @@ -702,6 +694,7 @@ public function getVariance() { return $this->variance; } + } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model @@ -720,7 +713,6 @@ public function getCount() { return $this->count; } - public function setValue($value) { $this->value = $value; @@ -730,12 +722,15 @@ public function getValue() { return $this->value; } + } class Google_Service_Prediction_AnalyzeErrors extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model @@ -756,7 +751,6 @@ public function getConfusionMatrix() { return $this->confusionMatrix; } - public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) { $this->confusionMatrixRowTotals = $confusionMatrixRowTotals; @@ -766,7 +760,6 @@ public function getConfusionMatrixRowTotals() { return $this->confusionMatrixRowTotals; } - public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo) { $this->modelinfo = $modelinfo; @@ -776,24 +769,31 @@ public function getModelinfo() { return $this->modelinfo; } + } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Prediction_Input extends Google_Model @@ -812,6 +812,7 @@ public function getInput() { return $this->input; } + } class Google_Service_Prediction_InputInput extends Google_Collection @@ -830,6 +831,7 @@ public function getCsvInstance() { return $this->csvInstance; } + } class Google_Service_Prediction_Insert extends Google_Collection @@ -856,7 +858,6 @@ public function getId() { return $this->id; } - public function setModelType($modelType) { $this->modelType = $modelType; @@ -866,7 +867,6 @@ public function getModelType() { return $this->modelType; } - public function setSourceModel($sourceModel) { $this->sourceModel = $sourceModel; @@ -876,7 +876,6 @@ public function getSourceModel() { return $this->sourceModel; } - public function setStorageDataLocation($storageDataLocation) { $this->storageDataLocation = $storageDataLocation; @@ -886,7 +885,6 @@ public function getStorageDataLocation() { return $this->storageDataLocation; } - public function setStoragePMMLLocation($storagePMMLLocation) { $this->storagePMMLLocation = $storagePMMLLocation; @@ -896,7 +894,6 @@ public function getStoragePMMLLocation() { return $this->storagePMMLLocation; } - public function setStoragePMMLModelLocation($storagePMMLModelLocation) { $this->storagePMMLModelLocation = $storagePMMLModelLocation; @@ -906,7 +903,6 @@ public function getStoragePMMLModelLocation() { return $this->storagePMMLModelLocation; } - public function setTrainingInstances($trainingInstances) { $this->trainingInstances = $trainingInstances; @@ -916,7 +912,6 @@ public function getTrainingInstances() { return $this->trainingInstances; } - public function setUtility($utility) { $this->utility = $utility; @@ -926,6 +921,7 @@ public function getUtility() { return $this->utility; } + } class Google_Service_Prediction_Insert2 extends Google_Model @@ -954,7 +950,6 @@ public function getCreated() { return $this->created; } - public function setId($id) { $this->id = $id; @@ -964,7 +959,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -974,7 +968,6 @@ public function getKind() { return $this->kind; } - public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo) { $this->modelInfo = $modelInfo; @@ -984,7 +977,6 @@ public function getModelInfo() { return $this->modelInfo; } - public function setModelType($modelType) { $this->modelType = $modelType; @@ -994,7 +986,6 @@ public function getModelType() { return $this->modelType; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1004,7 +995,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStorageDataLocation($storageDataLocation) { $this->storageDataLocation = $storageDataLocation; @@ -1014,7 +1004,6 @@ public function getStorageDataLocation() { return $this->storageDataLocation; } - public function setStoragePMMLLocation($storagePMMLLocation) { $this->storagePMMLLocation = $storagePMMLLocation; @@ -1024,7 +1013,6 @@ public function getStoragePMMLLocation() { return $this->storagePMMLLocation; } - public function setStoragePMMLModelLocation($storagePMMLModelLocation) { $this->storagePMMLModelLocation = $storagePMMLModelLocation; @@ -1034,7 +1022,6 @@ public function getStoragePMMLModelLocation() { return $this->storagePMMLModelLocation; } - public function setTrainingComplete($trainingComplete) { $this->trainingComplete = $trainingComplete; @@ -1044,7 +1031,6 @@ public function getTrainingComplete() { return $this->trainingComplete; } - public function setTrainingStatus($trainingStatus) { $this->trainingStatus = $trainingStatus; @@ -1054,6 +1040,7 @@ public function getTrainingStatus() { return $this->trainingStatus; } + } class Google_Service_Prediction_Insert2ModelInfo extends Google_Model @@ -1076,7 +1063,6 @@ public function getClassWeightedAccuracy() { return $this->classWeightedAccuracy; } - public function setClassificationAccuracy($classificationAccuracy) { $this->classificationAccuracy = $classificationAccuracy; @@ -1086,7 +1072,6 @@ public function getClassificationAccuracy() { return $this->classificationAccuracy; } - public function setMeanSquaredError($meanSquaredError) { $this->meanSquaredError = $meanSquaredError; @@ -1096,7 +1081,6 @@ public function getMeanSquaredError() { return $this->meanSquaredError; } - public function setModelType($modelType) { $this->modelType = $modelType; @@ -1106,7 +1090,6 @@ public function getModelType() { return $this->modelType; } - public function setNumberInstances($numberInstances) { $this->numberInstances = $numberInstances; @@ -1116,7 +1099,6 @@ public function getNumberInstances() { return $this->numberInstances; } - public function setNumberLabels($numberLabels) { $this->numberLabels = $numberLabels; @@ -1126,6 +1108,7 @@ public function getNumberLabels() { return $this->numberLabels; } + } class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection @@ -1145,7 +1128,6 @@ public function getCsvInstance() { return $this->csvInstance; } - public function setOutput($output) { $this->output = $output; @@ -1155,12 +1137,15 @@ public function getOutput() { return $this->output; } + } class Google_Service_Prediction_InsertUtility extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Prediction_Output extends Google_Collection @@ -1185,7 +1170,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1195,7 +1179,6 @@ public function getKind() { return $this->kind; } - public function setOutputLabel($outputLabel) { $this->outputLabel = $outputLabel; @@ -1205,7 +1188,6 @@ public function getOutputLabel() { return $this->outputLabel; } - public function setOutputMulti($outputMulti) { $this->outputMulti = $outputMulti; @@ -1215,7 +1197,6 @@ public function getOutputMulti() { return $this->outputMulti; } - public function setOutputValue($outputValue) { $this->outputValue = $outputValue; @@ -1225,7 +1206,6 @@ public function getOutputValue() { return $this->outputValue; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1235,6 +1215,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Prediction_OutputOutputMulti extends Google_Model @@ -1253,7 +1234,6 @@ public function getLabel() { return $this->label; } - public function setScore($score) { $this->score = $score; @@ -1263,6 +1243,7 @@ public function getScore() { return $this->score; } + } class Google_Service_Prediction_PredictionList extends Google_Collection @@ -1285,7 +1266,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1295,7 +1275,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1305,7 +1284,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1315,6 +1293,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Prediction_Update extends Google_Collection @@ -1334,7 +1313,6 @@ public function getCsvInstance() { return $this->csvInstance; } - public function setOutput($output) { $this->output = $output; @@ -1344,4 +1322,5 @@ public function getOutput() { return $this->output; } + } From b8e28941072aaf5ac03255abf6b997903f20909d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:21 -0700 Subject: [PATCH 0418/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 625 ++++++++------------------------- 1 file changed, 143 insertions(+), 482 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index bb0ed8625..6f06dc4e4 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -5691,7 +5691,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -5701,7 +5700,6 @@ public function getName() { return $this->name; } - public function setNatIP($natIP) { $this->natIP = $natIP; @@ -5711,7 +5709,6 @@ public function getNatIP() { return $this->natIP; } - public function setType($type) { $this->type = $type; @@ -5721,6 +5718,7 @@ public function getType() { return $this->type; } + } class Google_Service_Compute_Address extends Google_Collection @@ -5748,7 +5746,6 @@ public function getAddress() { return $this->address; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -5758,7 +5755,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -5768,7 +5764,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -5778,7 +5773,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -5788,7 +5782,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -5798,7 +5791,6 @@ public function getName() { return $this->name; } - public function setRegion($region) { $this->region = $region; @@ -5808,7 +5800,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5818,7 +5809,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -5828,7 +5818,6 @@ public function getStatus() { return $this->status; } - public function setUsers($users) { $this->users = $users; @@ -5838,6 +5827,7 @@ public function getUsers() { return $this->users; } + } class Google_Service_Compute_AddressAggregatedList extends Google_Model @@ -5860,7 +5850,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -5870,7 +5859,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5880,7 +5868,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5890,7 +5877,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5900,12 +5886,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_AddressAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_AddressList extends Google_Collection @@ -5929,7 +5918,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -5939,7 +5927,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -5949,7 +5936,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -5959,7 +5945,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -5969,6 +5954,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_AddressesScopedList extends Google_Collection @@ -5990,7 +5976,6 @@ public function getAddresses() { return $this->addresses; } - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) { $this->warning = $warning; @@ -6000,6 +5985,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection @@ -6021,7 +6007,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -6031,7 +6016,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -6041,6 +6025,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model @@ -6059,7 +6044,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -6069,6 +6053,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_AttachedDisk extends Google_Collection @@ -6098,7 +6083,6 @@ public function getAutoDelete() { return $this->autoDelete; } - public function setBoot($boot) { $this->boot = $boot; @@ -6108,7 +6092,6 @@ public function getBoot() { return $this->boot; } - public function setDeviceName($deviceName) { $this->deviceName = $deviceName; @@ -6118,7 +6101,6 @@ public function getDeviceName() { return $this->deviceName; } - public function setIndex($index) { $this->index = $index; @@ -6128,7 +6110,6 @@ public function getIndex() { return $this->index; } - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) { $this->initializeParams = $initializeParams; @@ -6138,7 +6119,6 @@ public function getInitializeParams() { return $this->initializeParams; } - public function setInterface($interface) { $this->interface = $interface; @@ -6148,7 +6128,6 @@ public function getInterface() { return $this->interface; } - public function setKind($kind) { $this->kind = $kind; @@ -6158,7 +6137,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) { $this->licenses = $licenses; @@ -6168,7 +6146,6 @@ public function getLicenses() { return $this->licenses; } - public function setMode($mode) { $this->mode = $mode; @@ -6178,7 +6155,6 @@ public function getMode() { return $this->mode; } - public function setSource($source) { $this->source = $source; @@ -6188,7 +6164,6 @@ public function getSource() { return $this->source; } - public function setType($type) { $this->type = $type; @@ -6198,6 +6173,7 @@ public function getType() { return $this->type; } + } class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model @@ -6218,7 +6194,6 @@ public function getDiskName() { return $this->diskName; } - public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; @@ -6228,7 +6203,6 @@ public function getDiskSizeGb() { return $this->diskSizeGb; } - public function setDiskType($diskType) { $this->diskType = $diskType; @@ -6238,7 +6212,6 @@ public function getDiskType() { return $this->diskType; } - public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; @@ -6248,6 +6221,7 @@ public function getSourceImage() { return $this->sourceImage; } + } class Google_Service_Compute_Backend extends Google_Model @@ -6271,7 +6245,6 @@ public function getBalancingMode() { return $this->balancingMode; } - public function setCapacityScaler($capacityScaler) { $this->capacityScaler = $capacityScaler; @@ -6281,7 +6254,6 @@ public function getCapacityScaler() { return $this->capacityScaler; } - public function setDescription($description) { $this->description = $description; @@ -6291,7 +6263,6 @@ public function getDescription() { return $this->description; } - public function setGroup($group) { $this->group = $group; @@ -6301,7 +6272,6 @@ public function getGroup() { return $this->group; } - public function setMaxRate($maxRate) { $this->maxRate = $maxRate; @@ -6311,7 +6281,6 @@ public function getMaxRate() { return $this->maxRate; } - public function setMaxRatePerInstance($maxRatePerInstance) { $this->maxRatePerInstance = $maxRatePerInstance; @@ -6321,7 +6290,6 @@ public function getMaxRatePerInstance() { return $this->maxRatePerInstance; } - public function setMaxUtilization($maxUtilization) { $this->maxUtilization = $maxUtilization; @@ -6331,6 +6299,7 @@ public function getMaxUtilization() { return $this->maxUtilization; } + } class Google_Service_Compute_BackendService extends Google_Collection @@ -6362,7 +6331,6 @@ public function getBackends() { return $this->backends; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -6372,7 +6340,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -6382,7 +6349,6 @@ public function getDescription() { return $this->description; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -6392,7 +6358,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; @@ -6402,7 +6367,6 @@ public function getHealthChecks() { return $this->healthChecks; } - public function setId($id) { $this->id = $id; @@ -6412,7 +6376,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6422,7 +6385,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -6432,7 +6394,6 @@ public function getName() { return $this->name; } - public function setPort($port) { $this->port = $port; @@ -6442,7 +6403,6 @@ public function getPort() { return $this->port; } - public function setPortName($portName) { $this->portName = $portName; @@ -6452,7 +6412,6 @@ public function getPortName() { return $this->portName; } - public function setProtocol($protocol) { $this->protocol = $protocol; @@ -6462,7 +6421,6 @@ public function getProtocol() { return $this->protocol; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6472,7 +6430,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; @@ -6482,6 +6439,7 @@ public function getTimeoutSec() { return $this->timeoutSec; } + } class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection @@ -6502,7 +6460,6 @@ public function getHealthStatus() { return $this->healthStatus; } - public function setKind($kind) { $this->kind = $kind; @@ -6512,6 +6469,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Compute_BackendServiceList extends Google_Collection @@ -6535,7 +6493,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -6545,7 +6502,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6555,7 +6511,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6565,7 +6520,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6575,6 +6529,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_DeprecationStatus extends Google_Model @@ -6596,7 +6551,6 @@ public function getDeleted() { return $this->deleted; } - public function setDeprecated($deprecated) { $this->deprecated = $deprecated; @@ -6606,7 +6560,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setObsolete($obsolete) { $this->obsolete = $obsolete; @@ -6616,7 +6569,6 @@ public function getObsolete() { return $this->obsolete; } - public function setReplacement($replacement) { $this->replacement = $replacement; @@ -6626,7 +6578,6 @@ public function getReplacement() { return $this->replacement; } - public function setState($state) { $this->state = $state; @@ -6636,6 +6587,7 @@ public function getState() { return $this->state; } + } class Google_Service_Compute_Disk extends Google_Collection @@ -6669,7 +6621,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -6679,7 +6630,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -6689,7 +6639,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -6699,7 +6648,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) { $this->licenses = $licenses; @@ -6709,7 +6657,6 @@ public function getLicenses() { return $this->licenses; } - public function setName($name) { $this->name = $name; @@ -6719,7 +6666,6 @@ public function getName() { return $this->name; } - public function setOptions($options) { $this->options = $options; @@ -6729,7 +6675,6 @@ public function getOptions() { return $this->options; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6739,7 +6684,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSizeGb($sizeGb) { $this->sizeGb = $sizeGb; @@ -6749,7 +6693,6 @@ public function getSizeGb() { return $this->sizeGb; } - public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; @@ -6759,7 +6702,6 @@ public function getSourceImage() { return $this->sourceImage; } - public function setSourceImageId($sourceImageId) { $this->sourceImageId = $sourceImageId; @@ -6769,7 +6711,6 @@ public function getSourceImageId() { return $this->sourceImageId; } - public function setSourceSnapshot($sourceSnapshot) { $this->sourceSnapshot = $sourceSnapshot; @@ -6779,7 +6720,6 @@ public function getSourceSnapshot() { return $this->sourceSnapshot; } - public function setSourceSnapshotId($sourceSnapshotId) { $this->sourceSnapshotId = $sourceSnapshotId; @@ -6789,7 +6729,6 @@ public function getSourceSnapshotId() { return $this->sourceSnapshotId; } - public function setStatus($status) { $this->status = $status; @@ -6799,7 +6738,6 @@ public function getStatus() { return $this->status; } - public function setType($type) { $this->type = $type; @@ -6809,7 +6747,6 @@ public function getType() { return $this->type; } - public function setZone($zone) { $this->zone = $zone; @@ -6819,6 +6756,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_DiskAggregatedList extends Google_Model @@ -6841,7 +6779,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -6851,7 +6788,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6861,7 +6797,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6871,7 +6806,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6881,12 +6815,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_DiskAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_DiskList extends Google_Collection @@ -6910,7 +6847,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -6920,7 +6856,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -6930,7 +6865,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -6940,7 +6874,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6950,6 +6883,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_DiskType extends Google_Model @@ -6977,7 +6911,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDefaultDiskSizeGb($defaultDiskSizeGb) { $this->defaultDiskSizeGb = $defaultDiskSizeGb; @@ -6987,7 +6920,6 @@ public function getDefaultDiskSizeGb() { return $this->defaultDiskSizeGb; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -6997,7 +6929,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setDescription($description) { $this->description = $description; @@ -7007,7 +6938,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -7017,7 +6947,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7027,7 +6956,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -7037,7 +6965,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7047,7 +6974,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setValidDiskSize($validDiskSize) { $this->validDiskSize = $validDiskSize; @@ -7057,7 +6983,6 @@ public function getValidDiskSize() { return $this->validDiskSize; } - public function setZone($zone) { $this->zone = $zone; @@ -7067,6 +6992,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model @@ -7089,7 +7015,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -7099,7 +7024,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7109,7 +7033,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7119,7 +7042,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7129,12 +7051,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_DiskTypeList extends Google_Collection @@ -7158,7 +7083,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -7168,7 +7092,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7178,7 +7101,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7188,7 +7110,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7198,6 +7119,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_DiskTypesScopedList extends Google_Collection @@ -7219,7 +7141,6 @@ public function getDiskTypes() { return $this->diskTypes; } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) { $this->warning = $warning; @@ -7229,6 +7150,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection @@ -7250,7 +7172,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -7260,7 +7181,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -7270,6 +7190,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model @@ -7288,7 +7209,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -7298,6 +7218,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_DisksScopedList extends Google_Collection @@ -7319,7 +7240,6 @@ public function getDisks() { return $this->disks; } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) { $this->warning = $warning; @@ -7329,6 +7249,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_DisksScopedListWarning extends Google_Collection @@ -7350,7 +7271,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -7360,7 +7280,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -7370,6 +7289,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_DisksScopedListWarningData extends Google_Model @@ -7388,7 +7308,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -7398,6 +7317,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_Firewall extends Google_Collection @@ -7427,7 +7347,6 @@ public function getAllowed() { return $this->allowed; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -7437,7 +7356,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -7447,7 +7365,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -7457,7 +7374,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7467,7 +7383,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -7477,7 +7392,6 @@ public function getName() { return $this->name; } - public function setNetwork($network) { $this->network = $network; @@ -7487,7 +7401,6 @@ public function getNetwork() { return $this->network; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7497,7 +7410,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceRanges($sourceRanges) { $this->sourceRanges = $sourceRanges; @@ -7507,7 +7419,6 @@ public function getSourceRanges() { return $this->sourceRanges; } - public function setSourceTags($sourceTags) { $this->sourceTags = $sourceTags; @@ -7517,7 +7428,6 @@ public function getSourceTags() { return $this->sourceTags; } - public function setTargetTags($targetTags) { $this->targetTags = $targetTags; @@ -7527,6 +7437,7 @@ public function getTargetTags() { return $this->targetTags; } + } class Google_Service_Compute_FirewallAllowed extends Google_Collection @@ -7547,7 +7458,6 @@ public function getIPProtocol() { return $this->iPProtocol; } - public function setPorts($ports) { $this->ports = $ports; @@ -7557,6 +7467,7 @@ public function getPorts() { return $this->ports; } + } class Google_Service_Compute_FirewallList extends Google_Collection @@ -7580,7 +7491,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -7590,7 +7500,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7600,7 +7509,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7610,7 +7518,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7620,6 +7527,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ForwardingRule extends Google_Model @@ -7649,7 +7557,6 @@ public function getIPAddress() { return $this->iPAddress; } - public function setIPProtocol($iPProtocol) { $this->iPProtocol = $iPProtocol; @@ -7659,7 +7566,6 @@ public function getIPProtocol() { return $this->iPProtocol; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -7669,7 +7575,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -7679,7 +7584,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -7689,7 +7593,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -7699,7 +7602,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -7709,7 +7611,6 @@ public function getName() { return $this->name; } - public function setPortRange($portRange) { $this->portRange = $portRange; @@ -7719,7 +7620,6 @@ public function getPortRange() { return $this->portRange; } - public function setRegion($region) { $this->region = $region; @@ -7729,7 +7629,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7739,7 +7638,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTarget($target) { $this->target = $target; @@ -7749,6 +7647,7 @@ public function getTarget() { return $this->target; } + } class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model @@ -7771,7 +7670,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -7781,7 +7679,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7791,7 +7688,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7801,7 +7697,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7811,12 +7706,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_ForwardingRuleList extends Google_Collection @@ -7840,7 +7738,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -7850,7 +7747,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -7860,7 +7756,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -7870,7 +7765,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7880,6 +7774,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection @@ -7901,7 +7796,6 @@ public function getForwardingRules() { return $this->forwardingRules; } - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) { $this->warning = $warning; @@ -7911,6 +7805,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection @@ -7932,7 +7827,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -7942,7 +7836,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -7952,6 +7845,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model @@ -7970,7 +7864,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -7980,6 +7873,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_HealthCheckReference extends Google_Model @@ -7997,6 +7891,7 @@ public function getHealthCheck() { return $this->healthCheck; } + } class Google_Service_Compute_HealthStatus extends Google_Model @@ -8017,7 +7912,6 @@ public function getHealthState() { return $this->healthState; } - public function setInstance($instance) { $this->instance = $instance; @@ -8027,7 +7921,6 @@ public function getInstance() { return $this->instance; } - public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; @@ -8037,7 +7930,6 @@ public function getIpAddress() { return $this->ipAddress; } - public function setPort($port) { $this->port = $port; @@ -8047,6 +7939,7 @@ public function getPort() { return $this->port; } + } class Google_Service_Compute_HostRule extends Google_Collection @@ -8067,7 +7960,6 @@ public function getDescription() { return $this->description; } - public function setHosts($hosts) { $this->hosts = $hosts; @@ -8077,7 +7969,6 @@ public function getHosts() { return $this->hosts; } - public function setPathMatcher($pathMatcher) { $this->pathMatcher = $pathMatcher; @@ -8087,6 +7978,7 @@ public function getPathMatcher() { return $this->pathMatcher; } + } class Google_Service_Compute_HttpHealthCheck extends Google_Model @@ -8116,7 +8008,6 @@ public function getCheckIntervalSec() { return $this->checkIntervalSec; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -8126,7 +8017,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -8136,7 +8026,6 @@ public function getDescription() { return $this->description; } - public function setHealthyThreshold($healthyThreshold) { $this->healthyThreshold = $healthyThreshold; @@ -8146,7 +8035,6 @@ public function getHealthyThreshold() { return $this->healthyThreshold; } - public function setHost($host) { $this->host = $host; @@ -8156,7 +8044,6 @@ public function getHost() { return $this->host; } - public function setId($id) { $this->id = $id; @@ -8166,7 +8053,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8176,7 +8062,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -8186,7 +8071,6 @@ public function getName() { return $this->name; } - public function setPort($port) { $this->port = $port; @@ -8196,7 +8080,6 @@ public function getPort() { return $this->port; } - public function setRequestPath($requestPath) { $this->requestPath = $requestPath; @@ -8206,7 +8089,6 @@ public function getRequestPath() { return $this->requestPath; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8216,7 +8098,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; @@ -8226,7 +8107,6 @@ public function getTimeoutSec() { return $this->timeoutSec; } - public function setUnhealthyThreshold($unhealthyThreshold) { $this->unhealthyThreshold = $unhealthyThreshold; @@ -8236,6 +8116,7 @@ public function getUnhealthyThreshold() { return $this->unhealthyThreshold; } + } class Google_Service_Compute_HttpHealthCheckList extends Google_Collection @@ -8259,7 +8140,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -8269,7 +8149,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8279,7 +8158,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8289,7 +8167,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8299,6 +8176,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_Image extends Google_Collection @@ -8333,7 +8211,6 @@ public function getArchiveSizeBytes() { return $this->archiveSizeBytes; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -8343,7 +8220,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -8353,7 +8229,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setDescription($description) { $this->description = $description; @@ -8363,7 +8238,6 @@ public function getDescription() { return $this->description; } - public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; @@ -8373,7 +8247,6 @@ public function getDiskSizeGb() { return $this->diskSizeGb; } - public function setId($id) { $this->id = $id; @@ -8383,7 +8256,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8393,7 +8265,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) { $this->licenses = $licenses; @@ -8403,7 +8274,6 @@ public function getLicenses() { return $this->licenses; } - public function setName($name) { $this->name = $name; @@ -8413,7 +8283,6 @@ public function getName() { return $this->name; } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) { $this->rawDisk = $rawDisk; @@ -8423,7 +8292,6 @@ public function getRawDisk() { return $this->rawDisk; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8433,7 +8301,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceDisk($sourceDisk) { $this->sourceDisk = $sourceDisk; @@ -8443,7 +8310,6 @@ public function getSourceDisk() { return $this->sourceDisk; } - public function setSourceDiskId($sourceDiskId) { $this->sourceDiskId = $sourceDiskId; @@ -8453,7 +8319,6 @@ public function getSourceDiskId() { return $this->sourceDiskId; } - public function setSourceType($sourceType) { $this->sourceType = $sourceType; @@ -8463,7 +8328,6 @@ public function getSourceType() { return $this->sourceType; } - public function setStatus($status) { $this->status = $status; @@ -8473,6 +8337,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Compute_ImageList extends Google_Collection @@ -8496,7 +8361,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -8506,7 +8370,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8516,7 +8379,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8526,7 +8388,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8536,6 +8397,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ImageRawDisk extends Google_Model @@ -8555,7 +8417,6 @@ public function getContainerType() { return $this->containerType; } - public function setSha1Checksum($sha1Checksum) { $this->sha1Checksum = $sha1Checksum; @@ -8565,7 +8426,6 @@ public function getSha1Checksum() { return $this->sha1Checksum; } - public function setSource($source) { $this->source = $source; @@ -8575,6 +8435,7 @@ public function getSource() { return $this->source; } + } class Google_Service_Compute_Instance extends Google_Collection @@ -8615,7 +8476,6 @@ public function getCanIpForward() { return $this->canIpForward; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -8625,7 +8485,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -8635,7 +8494,6 @@ public function getDescription() { return $this->description; } - public function setDisks($disks) { $this->disks = $disks; @@ -8645,7 +8503,6 @@ public function getDisks() { return $this->disks; } - public function setId($id) { $this->id = $id; @@ -8655,7 +8512,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -8665,7 +8521,6 @@ public function getKind() { return $this->kind; } - public function setMachineType($machineType) { $this->machineType = $machineType; @@ -8675,7 +8530,6 @@ public function getMachineType() { return $this->machineType; } - public function setMetadata(Google_Service_Compute_Metadata $metadata) { $this->metadata = $metadata; @@ -8685,7 +8539,6 @@ public function getMetadata() { return $this->metadata; } - public function setName($name) { $this->name = $name; @@ -8695,7 +8548,6 @@ public function getName() { return $this->name; } - public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; @@ -8705,7 +8557,6 @@ public function getNetworkInterfaces() { return $this->networkInterfaces; } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) { $this->scheduling = $scheduling; @@ -8715,7 +8566,6 @@ public function getScheduling() { return $this->scheduling; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8725,7 +8575,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; @@ -8735,7 +8584,6 @@ public function getServiceAccounts() { return $this->serviceAccounts; } - public function setStatus($status) { $this->status = $status; @@ -8745,7 +8593,6 @@ public function getStatus() { return $this->status; } - public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; @@ -8755,7 +8602,6 @@ public function getStatusMessage() { return $this->statusMessage; } - public function setTags(Google_Service_Compute_Tags $tags) { $this->tags = $tags; @@ -8765,7 +8611,6 @@ public function getTags() { return $this->tags; } - public function setZone($zone) { $this->zone = $zone; @@ -8775,6 +8620,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_InstanceAggregatedList extends Google_Model @@ -8797,7 +8643,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -8807,7 +8652,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8817,7 +8661,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8827,7 +8670,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8837,12 +8679,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_InstanceList extends Google_Collection @@ -8866,7 +8711,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -8876,7 +8720,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -8886,7 +8729,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -8896,7 +8738,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -8906,6 +8747,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_InstanceProperties extends Google_Collection @@ -8938,7 +8780,6 @@ public function getCanIpForward() { return $this->canIpForward; } - public function setDescription($description) { $this->description = $description; @@ -8948,7 +8789,6 @@ public function getDescription() { return $this->description; } - public function setDisks($disks) { $this->disks = $disks; @@ -8958,7 +8798,6 @@ public function getDisks() { return $this->disks; } - public function setMachineType($machineType) { $this->machineType = $machineType; @@ -8968,7 +8807,6 @@ public function getMachineType() { return $this->machineType; } - public function setMetadata(Google_Service_Compute_Metadata $metadata) { $this->metadata = $metadata; @@ -8978,7 +8816,6 @@ public function getMetadata() { return $this->metadata; } - public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; @@ -8988,7 +8825,6 @@ public function getNetworkInterfaces() { return $this->networkInterfaces; } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) { $this->scheduling = $scheduling; @@ -8998,7 +8834,6 @@ public function getScheduling() { return $this->scheduling; } - public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; @@ -9008,7 +8843,6 @@ public function getServiceAccounts() { return $this->serviceAccounts; } - public function setTags(Google_Service_Compute_Tags $tags) { $this->tags = $tags; @@ -9018,6 +8852,7 @@ public function getTags() { return $this->tags; } + } class Google_Service_Compute_InstanceReference extends Google_Model @@ -9035,6 +8870,7 @@ public function getInstance() { return $this->instance; } + } class Google_Service_Compute_InstanceTemplate extends Google_Model @@ -9059,7 +8895,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -9069,7 +8904,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -9079,7 +8913,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9089,7 +8922,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -9099,7 +8931,6 @@ public function getName() { return $this->name; } - public function setProperties(Google_Service_Compute_InstanceProperties $properties) { $this->properties = $properties; @@ -9109,7 +8940,6 @@ public function getProperties() { return $this->properties; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9119,6 +8949,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_InstanceTemplateList extends Google_Collection @@ -9142,7 +8973,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -9152,7 +8982,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9162,7 +8991,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -9172,7 +9000,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9182,6 +9009,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_InstancesScopedList extends Google_Collection @@ -9203,7 +9031,6 @@ public function getInstances() { return $this->instances; } - public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) { $this->warning = $warning; @@ -9213,6 +9040,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection @@ -9234,7 +9062,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -9244,7 +9071,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -9254,6 +9080,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model @@ -9272,7 +9099,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -9282,6 +9108,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_License extends Google_Model @@ -9302,7 +9129,6 @@ public function getChargesUseFee() { return $this->chargesUseFee; } - public function setKind($kind) { $this->kind = $kind; @@ -9312,7 +9138,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -9322,7 +9147,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9332,6 +9156,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_MachineType extends Google_Collection @@ -9365,7 +9190,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -9375,7 +9199,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setDescription($description) { $this->description = $description; @@ -9385,7 +9208,6 @@ public function getDescription() { return $this->description; } - public function setGuestCpus($guestCpus) { $this->guestCpus = $guestCpus; @@ -9395,7 +9217,6 @@ public function getGuestCpus() { return $this->guestCpus; } - public function setId($id) { $this->id = $id; @@ -9405,7 +9226,6 @@ public function getId() { return $this->id; } - public function setImageSpaceGb($imageSpaceGb) { $this->imageSpaceGb = $imageSpaceGb; @@ -9415,7 +9235,6 @@ public function getImageSpaceGb() { return $this->imageSpaceGb; } - public function setKind($kind) { $this->kind = $kind; @@ -9425,7 +9244,6 @@ public function getKind() { return $this->kind; } - public function setMaximumPersistentDisks($maximumPersistentDisks) { $this->maximumPersistentDisks = $maximumPersistentDisks; @@ -9435,7 +9253,6 @@ public function getMaximumPersistentDisks() { return $this->maximumPersistentDisks; } - public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) { $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; @@ -9445,7 +9262,6 @@ public function getMaximumPersistentDisksSizeGb() { return $this->maximumPersistentDisksSizeGb; } - public function setMemoryMb($memoryMb) { $this->memoryMb = $memoryMb; @@ -9455,7 +9271,6 @@ public function getMemoryMb() { return $this->memoryMb; } - public function setName($name) { $this->name = $name; @@ -9465,7 +9280,6 @@ public function getName() { return $this->name; } - public function setScratchDisks($scratchDisks) { $this->scratchDisks = $scratchDisks; @@ -9475,7 +9289,6 @@ public function getScratchDisks() { return $this->scratchDisks; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9485,7 +9298,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setZone($zone) { $this->zone = $zone; @@ -9495,6 +9307,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model @@ -9517,7 +9330,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -9527,7 +9339,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9537,7 +9348,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -9547,7 +9357,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9557,12 +9366,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_MachineTypeList extends Google_Collection @@ -9586,7 +9398,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -9596,7 +9407,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9606,7 +9416,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -9616,7 +9425,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9626,6 +9434,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model @@ -9643,6 +9452,7 @@ public function getDiskGb() { return $this->diskGb; } + } class Google_Service_Compute_MachineTypesScopedList extends Google_Collection @@ -9664,7 +9474,6 @@ public function getMachineTypes() { return $this->machineTypes; } - public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) { $this->warning = $warning; @@ -9674,6 +9483,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection @@ -9695,7 +9505,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -9705,7 +9514,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -9715,6 +9523,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model @@ -9733,7 +9542,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -9743,6 +9551,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_Metadata extends Google_Collection @@ -9764,7 +9573,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setItems($items) { $this->items = $items; @@ -9774,7 +9582,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -9784,6 +9591,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Compute_MetadataItems extends Google_Model @@ -9802,7 +9610,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -9812,6 +9619,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_Network extends Google_Model @@ -9837,7 +9645,6 @@ public function getIPv4Range() { return $this->iPv4Range; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -9847,7 +9654,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -9857,7 +9663,6 @@ public function getDescription() { return $this->description; } - public function setGatewayIPv4($gatewayIPv4) { $this->gatewayIPv4 = $gatewayIPv4; @@ -9867,7 +9672,6 @@ public function getGatewayIPv4() { return $this->gatewayIPv4; } - public function setId($id) { $this->id = $id; @@ -9877,7 +9681,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -9887,7 +9690,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -9897,7 +9699,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -9907,6 +9708,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_NetworkInterface extends Google_Collection @@ -9929,7 +9731,6 @@ public function getAccessConfigs() { return $this->accessConfigs; } - public function setName($name) { $this->name = $name; @@ -9939,7 +9740,6 @@ public function getName() { return $this->name; } - public function setNetwork($network) { $this->network = $network; @@ -9949,7 +9749,6 @@ public function getNetwork() { return $this->network; } - public function setNetworkIP($networkIP) { $this->networkIP = $networkIP; @@ -9959,6 +9758,7 @@ public function getNetworkIP() { return $this->networkIP; } + } class Google_Service_Compute_NetworkList extends Google_Collection @@ -9982,7 +9782,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -9992,7 +9791,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -10002,7 +9800,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -10012,7 +9809,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10022,6 +9818,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_Operation extends Google_Collection @@ -10063,7 +9860,6 @@ public function getClientOperationId() { return $this->clientOperationId; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -10073,7 +9869,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -10083,7 +9878,6 @@ public function getEndTime() { return $this->endTime; } - public function setError(Google_Service_Compute_OperationError $error) { $this->error = $error; @@ -10093,7 +9887,6 @@ public function getError() { return $this->error; } - public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; @@ -10103,7 +9896,6 @@ public function getHttpErrorMessage() { return $this->httpErrorMessage; } - public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; @@ -10113,7 +9905,6 @@ public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; } - public function setId($id) { $this->id = $id; @@ -10123,7 +9914,6 @@ public function getId() { return $this->id; } - public function setInsertTime($insertTime) { $this->insertTime = $insertTime; @@ -10133,7 +9923,6 @@ public function getInsertTime() { return $this->insertTime; } - public function setKind($kind) { $this->kind = $kind; @@ -10143,7 +9932,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -10153,7 +9941,6 @@ public function getName() { return $this->name; } - public function setOperationType($operationType) { $this->operationType = $operationType; @@ -10163,7 +9950,6 @@ public function getOperationType() { return $this->operationType; } - public function setProgress($progress) { $this->progress = $progress; @@ -10173,7 +9959,6 @@ public function getProgress() { return $this->progress; } - public function setRegion($region) { $this->region = $region; @@ -10183,7 +9968,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10193,7 +9977,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -10203,7 +9986,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -10213,7 +9995,6 @@ public function getStatus() { return $this->status; } - public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; @@ -10223,7 +10004,6 @@ public function getStatusMessage() { return $this->statusMessage; } - public function setTargetId($targetId) { $this->targetId = $targetId; @@ -10233,7 +10013,6 @@ public function getTargetId() { return $this->targetId; } - public function setTargetLink($targetLink) { $this->targetLink = $targetLink; @@ -10243,7 +10022,6 @@ public function getTargetLink() { return $this->targetLink; } - public function setUser($user) { $this->user = $user; @@ -10253,7 +10031,6 @@ public function getUser() { return $this->user; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -10263,7 +10040,6 @@ public function getWarnings() { return $this->warnings; } - public function setZone($zone) { $this->zone = $zone; @@ -10273,6 +10049,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_OperationAggregatedList extends Google_Model @@ -10295,7 +10072,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -10305,7 +10081,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -10315,7 +10090,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -10325,7 +10099,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10335,12 +10108,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_OperationAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_OperationError extends Google_Collection @@ -10360,6 +10136,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_Compute_OperationErrorErrors extends Google_Model @@ -10379,7 +10156,6 @@ public function getCode() { return $this->code; } - public function setLocation($location) { $this->location = $location; @@ -10389,7 +10165,6 @@ public function getLocation() { return $this->location; } - public function setMessage($message) { $this->message = $message; @@ -10399,6 +10174,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_OperationList extends Google_Collection @@ -10422,7 +10198,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -10432,7 +10207,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -10442,7 +10216,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -10452,7 +10225,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10462,6 +10234,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_OperationWarnings extends Google_Collection @@ -10483,7 +10256,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -10493,7 +10265,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -10503,6 +10274,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_OperationWarningsData extends Google_Model @@ -10521,7 +10293,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -10531,6 +10302,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_OperationsScopedList extends Google_Collection @@ -10552,7 +10324,6 @@ public function getOperations() { return $this->operations; } - public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) { $this->warning = $warning; @@ -10562,6 +10333,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection @@ -10583,7 +10355,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -10593,7 +10364,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -10603,6 +10373,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model @@ -10621,7 +10392,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -10631,6 +10401,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_PathMatcher extends Google_Collection @@ -10653,7 +10424,6 @@ public function getDefaultService() { return $this->defaultService; } - public function setDescription($description) { $this->description = $description; @@ -10663,7 +10433,6 @@ public function getDescription() { return $this->description; } - public function setName($name) { $this->name = $name; @@ -10673,7 +10442,6 @@ public function getName() { return $this->name; } - public function setPathRules($pathRules) { $this->pathRules = $pathRules; @@ -10683,6 +10451,7 @@ public function getPathRules() { return $this->pathRules; } + } class Google_Service_Compute_PathRule extends Google_Collection @@ -10702,7 +10471,6 @@ public function getPaths() { return $this->paths; } - public function setService($service) { $this->service = $service; @@ -10712,6 +10480,7 @@ public function getService() { return $this->service; } + } class Google_Service_Compute_Project extends Google_Collection @@ -10741,7 +10510,6 @@ public function getCommonInstanceMetadata() { return $this->commonInstanceMetadata; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -10751,7 +10519,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -10761,7 +10528,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -10771,7 +10537,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -10781,7 +10546,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -10791,7 +10555,6 @@ public function getName() { return $this->name; } - public function setQuotas($quotas) { $this->quotas = $quotas; @@ -10801,7 +10564,6 @@ public function getQuotas() { return $this->quotas; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10811,7 +10573,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) { $this->usageExportLocation = $usageExportLocation; @@ -10821,6 +10582,7 @@ public function getUsageExportLocation() { return $this->usageExportLocation; } + } class Google_Service_Compute_Quota extends Google_Model @@ -10840,7 +10602,6 @@ public function getLimit() { return $this->limit; } - public function setMetric($metric) { $this->metric = $metric; @@ -10850,7 +10611,6 @@ public function getMetric() { return $this->metric; } - public function setUsage($usage) { $this->usage = $usage; @@ -10860,6 +10620,7 @@ public function getUsage() { return $this->usage; } + } class Google_Service_Compute_Region extends Google_Collection @@ -10889,7 +10650,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -10899,7 +10659,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setDescription($description) { $this->description = $description; @@ -10909,7 +10668,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -10919,7 +10677,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -10929,7 +10686,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -10939,7 +10695,6 @@ public function getName() { return $this->name; } - public function setQuotas($quotas) { $this->quotas = $quotas; @@ -10949,7 +10704,6 @@ public function getQuotas() { return $this->quotas; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -10959,7 +10713,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -10969,7 +10722,6 @@ public function getStatus() { return $this->status; } - public function setZones($zones) { $this->zones = $zones; @@ -10979,6 +10731,7 @@ public function getZones() { return $this->zones; } + } class Google_Service_Compute_RegionList extends Google_Collection @@ -11002,7 +10755,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -11012,7 +10764,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -11022,7 +10773,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -11032,7 +10782,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11042,6 +10791,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ResourceGroupReference extends Google_Model @@ -11059,6 +10809,7 @@ public function getGroup() { return $this->group; } + } class Google_Service_Compute_Route extends Google_Collection @@ -11092,7 +10843,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -11102,7 +10852,6 @@ public function getDescription() { return $this->description; } - public function setDestRange($destRange) { $this->destRange = $destRange; @@ -11112,7 +10861,6 @@ public function getDestRange() { return $this->destRange; } - public function setId($id) { $this->id = $id; @@ -11122,7 +10870,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -11132,7 +10879,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -11142,7 +10888,6 @@ public function getName() { return $this->name; } - public function setNetwork($network) { $this->network = $network; @@ -11152,7 +10897,6 @@ public function getNetwork() { return $this->network; } - public function setNextHopGateway($nextHopGateway) { $this->nextHopGateway = $nextHopGateway; @@ -11162,7 +10906,6 @@ public function getNextHopGateway() { return $this->nextHopGateway; } - public function setNextHopInstance($nextHopInstance) { $this->nextHopInstance = $nextHopInstance; @@ -11172,7 +10915,6 @@ public function getNextHopInstance() { return $this->nextHopInstance; } - public function setNextHopIp($nextHopIp) { $this->nextHopIp = $nextHopIp; @@ -11182,7 +10924,6 @@ public function getNextHopIp() { return $this->nextHopIp; } - public function setNextHopNetwork($nextHopNetwork) { $this->nextHopNetwork = $nextHopNetwork; @@ -11192,7 +10933,6 @@ public function getNextHopNetwork() { return $this->nextHopNetwork; } - public function setPriority($priority) { $this->priority = $priority; @@ -11202,7 +10942,6 @@ public function getPriority() { return $this->priority; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11212,7 +10951,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTags($tags) { $this->tags = $tags; @@ -11222,7 +10960,6 @@ public function getTags() { return $this->tags; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -11232,6 +10969,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_Compute_RouteList extends Google_Collection @@ -11255,7 +10993,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -11265,7 +11002,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -11275,7 +11011,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -11285,7 +11020,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11295,6 +11029,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_RouteWarnings extends Google_Collection @@ -11316,7 +11051,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -11326,7 +11060,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -11336,6 +11069,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_RouteWarningsData extends Google_Model @@ -11354,7 +11088,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -11364,6 +11097,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_Scheduling extends Google_Model @@ -11382,7 +11116,6 @@ public function getAutomaticRestart() { return $this->automaticRestart; } - public function setOnHostMaintenance($onHostMaintenance) { $this->onHostMaintenance = $onHostMaintenance; @@ -11392,6 +11125,7 @@ public function getOnHostMaintenance() { return $this->onHostMaintenance; } + } class Google_Service_Compute_SerialPortOutput extends Google_Model @@ -11411,7 +11145,6 @@ public function getContents() { return $this->contents; } - public function setKind($kind) { $this->kind = $kind; @@ -11421,7 +11154,6 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11431,6 +11163,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ServiceAccount extends Google_Collection @@ -11450,7 +11183,6 @@ public function getEmail() { return $this->email; } - public function setScopes($scopes) { $this->scopes = $scopes; @@ -11460,6 +11192,7 @@ public function getScopes() { return $this->scopes; } + } class Google_Service_Compute_Snapshot extends Google_Collection @@ -11490,7 +11223,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -11500,7 +11232,6 @@ public function getDescription() { return $this->description; } - public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; @@ -11510,7 +11241,6 @@ public function getDiskSizeGb() { return $this->diskSizeGb; } - public function setId($id) { $this->id = $id; @@ -11520,7 +11250,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -11530,7 +11259,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) { $this->licenses = $licenses; @@ -11540,7 +11268,6 @@ public function getLicenses() { return $this->licenses; } - public function setName($name) { $this->name = $name; @@ -11550,7 +11277,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11560,7 +11286,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceDisk($sourceDisk) { $this->sourceDisk = $sourceDisk; @@ -11570,7 +11295,6 @@ public function getSourceDisk() { return $this->sourceDisk; } - public function setSourceDiskId($sourceDiskId) { $this->sourceDiskId = $sourceDiskId; @@ -11580,7 +11304,6 @@ public function getSourceDiskId() { return $this->sourceDiskId; } - public function setStatus($status) { $this->status = $status; @@ -11590,7 +11313,6 @@ public function getStatus() { return $this->status; } - public function setStorageBytes($storageBytes) { $this->storageBytes = $storageBytes; @@ -11600,7 +11322,6 @@ public function getStorageBytes() { return $this->storageBytes; } - public function setStorageBytesStatus($storageBytesStatus) { $this->storageBytesStatus = $storageBytesStatus; @@ -11610,6 +11331,7 @@ public function getStorageBytesStatus() { return $this->storageBytesStatus; } + } class Google_Service_Compute_SnapshotList extends Google_Collection @@ -11633,7 +11355,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -11643,7 +11364,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -11653,7 +11373,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -11663,7 +11382,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11673,6 +11391,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_Tags extends Google_Collection @@ -11692,7 +11411,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setItems($items) { $this->items = $items; @@ -11702,6 +11420,7 @@ public function getItems() { return $this->items; } + } class Google_Service_Compute_TargetHttpProxy extends Google_Model @@ -11725,7 +11444,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -11735,7 +11453,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -11745,7 +11462,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -11755,7 +11471,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -11765,7 +11480,6 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11775,7 +11489,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUrlMap($urlMap) { $this->urlMap = $urlMap; @@ -11785,6 +11498,7 @@ public function getUrlMap() { return $this->urlMap; } + } class Google_Service_Compute_TargetHttpProxyList extends Google_Collection @@ -11808,7 +11522,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -11818,7 +11531,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -11828,7 +11540,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -11838,7 +11549,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11848,6 +11558,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_TargetInstance extends Google_Model @@ -11873,7 +11584,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -11883,7 +11593,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -11893,7 +11602,6 @@ public function getId() { return $this->id; } - public function setInstance($instance) { $this->instance = $instance; @@ -11903,7 +11611,6 @@ public function getInstance() { return $this->instance; } - public function setKind($kind) { $this->kind = $kind; @@ -11913,7 +11620,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -11923,7 +11629,6 @@ public function getName() { return $this->name; } - public function setNatPolicy($natPolicy) { $this->natPolicy = $natPolicy; @@ -11933,7 +11638,6 @@ public function getNatPolicy() { return $this->natPolicy; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -11943,7 +11647,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setZone($zone) { $this->zone = $zone; @@ -11953,6 +11656,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model @@ -11975,7 +11679,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -11985,7 +11688,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -11995,7 +11697,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -12005,7 +11706,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12015,12 +11715,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_TargetInstanceList extends Google_Collection @@ -12044,7 +11747,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -12054,7 +11756,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -12064,7 +11765,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -12074,7 +11774,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12084,6 +11783,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection @@ -12105,7 +11805,6 @@ public function getTargetInstances() { return $this->targetInstances; } - public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) { $this->warning = $warning; @@ -12115,6 +11814,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection @@ -12136,7 +11836,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -12146,7 +11845,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -12156,6 +11854,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model @@ -12174,7 +11873,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -12184,6 +11882,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_TargetPool extends Google_Collection @@ -12213,7 +11912,6 @@ public function getBackupPool() { return $this->backupPool; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -12223,7 +11921,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -12233,7 +11930,6 @@ public function getDescription() { return $this->description; } - public function setFailoverRatio($failoverRatio) { $this->failoverRatio = $failoverRatio; @@ -12243,7 +11939,6 @@ public function getFailoverRatio() { return $this->failoverRatio; } - public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; @@ -12253,7 +11948,6 @@ public function getHealthChecks() { return $this->healthChecks; } - public function setId($id) { $this->id = $id; @@ -12263,7 +11957,6 @@ public function getId() { return $this->id; } - public function setInstances($instances) { $this->instances = $instances; @@ -12273,7 +11966,6 @@ public function getInstances() { return $this->instances; } - public function setKind($kind) { $this->kind = $kind; @@ -12283,7 +11975,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -12293,7 +11984,6 @@ public function getName() { return $this->name; } - public function setRegion($region) { $this->region = $region; @@ -12303,7 +11993,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12313,7 +12002,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSessionAffinity($sessionAffinity) { $this->sessionAffinity = $sessionAffinity; @@ -12323,6 +12011,7 @@ public function getSessionAffinity() { return $this->sessionAffinity; } + } class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model @@ -12345,7 +12034,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -12355,7 +12043,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -12365,7 +12052,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -12375,7 +12061,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12385,12 +12070,15 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection @@ -12411,7 +12099,6 @@ public function getHealthStatus() { return $this->healthStatus; } - public function setKind($kind) { $this->kind = $kind; @@ -12421,6 +12108,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Compute_TargetPoolList extends Google_Collection @@ -12444,7 +12132,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -12454,7 +12141,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -12464,7 +12150,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -12474,7 +12159,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12484,6 +12168,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection @@ -12503,6 +12188,7 @@ public function getHealthChecks() { return $this->healthChecks; } + } class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection @@ -12522,6 +12208,7 @@ public function getInstances() { return $this->instances; } + } class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection @@ -12541,6 +12228,7 @@ public function getHealthChecks() { return $this->healthChecks; } + } class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection @@ -12560,6 +12248,7 @@ public function getInstances() { return $this->instances; } + } class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection @@ -12581,7 +12270,6 @@ public function getTargetPools() { return $this->targetPools; } - public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) { $this->warning = $warning; @@ -12591,6 +12279,7 @@ public function getWarning() { return $this->warning; } + } class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection @@ -12612,7 +12301,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -12622,7 +12310,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -12632,6 +12319,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model @@ -12650,7 +12338,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -12660,6 +12347,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Compute_TargetReference extends Google_Model @@ -12677,6 +12365,7 @@ public function getTarget() { return $this->target; } + } class Google_Service_Compute_TestFailure extends Google_Model @@ -12697,7 +12386,6 @@ public function getActualService() { return $this->actualService; } - public function setExpectedService($expectedService) { $this->expectedService = $expectedService; @@ -12707,7 +12395,6 @@ public function getExpectedService() { return $this->expectedService; } - public function setHost($host) { $this->host = $host; @@ -12717,7 +12404,6 @@ public function getHost() { return $this->host; } - public function setPath($path) { $this->path = $path; @@ -12727,6 +12413,7 @@ public function getPath() { return $this->path; } + } class Google_Service_Compute_UrlMap extends Google_Collection @@ -12758,7 +12445,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDefaultService($defaultService) { $this->defaultService = $defaultService; @@ -12768,7 +12454,6 @@ public function getDefaultService() { return $this->defaultService; } - public function setDescription($description) { $this->description = $description; @@ -12778,7 +12463,6 @@ public function getDescription() { return $this->description; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -12788,7 +12472,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setHostRules($hostRules) { $this->hostRules = $hostRules; @@ -12798,7 +12481,6 @@ public function getHostRules() { return $this->hostRules; } - public function setId($id) { $this->id = $id; @@ -12808,7 +12490,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -12818,7 +12499,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -12828,7 +12508,6 @@ public function getName() { return $this->name; } - public function setPathMatchers($pathMatchers) { $this->pathMatchers = $pathMatchers; @@ -12838,7 +12517,6 @@ public function getPathMatchers() { return $this->pathMatchers; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12848,7 +12526,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTests($tests) { $this->tests = $tests; @@ -12858,6 +12535,7 @@ public function getTests() { return $this->tests; } + } class Google_Service_Compute_UrlMapList extends Google_Collection @@ -12881,7 +12559,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -12891,7 +12568,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -12901,7 +12577,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -12911,7 +12586,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12921,6 +12595,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_UrlMapReference extends Google_Model @@ -12938,6 +12613,7 @@ public function getUrlMap() { return $this->urlMap; } + } class Google_Service_Compute_UrlMapTest extends Google_Model @@ -12958,7 +12634,6 @@ public function getDescription() { return $this->description; } - public function setHost($host) { $this->host = $host; @@ -12968,7 +12643,6 @@ public function getHost() { return $this->host; } - public function setPath($path) { $this->path = $path; @@ -12978,7 +12652,6 @@ public function getPath() { return $this->path; } - public function setService($service) { $this->service = $service; @@ -12988,6 +12661,7 @@ public function getService() { return $this->service; } + } class Google_Service_Compute_UrlMapValidationResult extends Google_Collection @@ -13010,7 +12684,6 @@ public function getLoadErrors() { return $this->loadErrors; } - public function setLoadSucceeded($loadSucceeded) { $this->loadSucceeded = $loadSucceeded; @@ -13020,7 +12693,6 @@ public function getLoadSucceeded() { return $this->loadSucceeded; } - public function setTestFailures($testFailures) { $this->testFailures = $testFailures; @@ -13030,7 +12702,6 @@ public function getTestFailures() { return $this->testFailures; } - public function setTestPassed($testPassed) { $this->testPassed = $testPassed; @@ -13040,6 +12711,7 @@ public function getTestPassed() { return $this->testPassed; } + } class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model @@ -13058,6 +12730,7 @@ public function getResource() { return $this->resource; } + } class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model @@ -13076,6 +12749,7 @@ public function getResult() { return $this->result; } + } class Google_Service_Compute_UsageExportLocation extends Google_Model @@ -13094,7 +12768,6 @@ public function getBucketName() { return $this->bucketName; } - public function setReportNamePrefix($reportNamePrefix) { $this->reportNamePrefix = $reportNamePrefix; @@ -13104,6 +12777,7 @@ public function getReportNamePrefix() { return $this->reportNamePrefix; } + } class Google_Service_Compute_Zone extends Google_Collection @@ -13133,7 +12807,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { $this->deprecated = $deprecated; @@ -13143,7 +12816,6 @@ public function getDeprecated() { return $this->deprecated; } - public function setDescription($description) { $this->description = $description; @@ -13153,7 +12825,6 @@ public function getDescription() { return $this->description; } - public function setId($id) { $this->id = $id; @@ -13163,7 +12834,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -13173,7 +12843,6 @@ public function getKind() { return $this->kind; } - public function setMaintenanceWindows($maintenanceWindows) { $this->maintenanceWindows = $maintenanceWindows; @@ -13183,7 +12852,6 @@ public function getMaintenanceWindows() { return $this->maintenanceWindows; } - public function setName($name) { $this->name = $name; @@ -13193,7 +12861,6 @@ public function getName() { return $this->name; } - public function setRegion($region) { $this->region = $region; @@ -13203,7 +12870,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -13213,7 +12879,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) { $this->status = $status; @@ -13223,6 +12888,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_Compute_ZoneList extends Google_Collection @@ -13246,7 +12912,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -13256,7 +12921,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -13266,7 +12930,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -13276,7 +12939,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -13286,6 +12948,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model @@ -13306,7 +12969,6 @@ public function getBeginTime() { return $this->beginTime; } - public function setDescription($description) { $this->description = $description; @@ -13316,7 +12978,6 @@ public function getDescription() { return $this->description; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -13326,7 +12987,6 @@ public function getEndTime() { return $this->endTime; } - public function setName($name) { $this->name = $name; @@ -13336,4 +12996,5 @@ public function getName() { return $this->name; } + } From 4e26a2e7290ba767c915f0ea08888895c829c3de Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:22 -0700 Subject: [PATCH 0419/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 67 +++++++++------------------------- 1 file changed, 17 insertions(+), 50 deletions(-) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index adbe57fe5..0b79697ef 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -464,7 +464,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -474,7 +473,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -484,7 +482,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -494,6 +491,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Reports_Activity extends Google_Collection @@ -521,7 +519,6 @@ public function getActor() { return $this->actor; } - public function setEtag($etag) { $this->etag = $etag; @@ -531,7 +528,6 @@ public function getEtag() { return $this->etag; } - public function setEvents($events) { $this->events = $events; @@ -541,7 +537,6 @@ public function getEvents() { return $this->events; } - public function setId(Google_Service_Reports_ActivityId $id) { $this->id = $id; @@ -551,7 +546,6 @@ public function getId() { return $this->id; } - public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; @@ -561,7 +555,6 @@ public function getIpAddress() { return $this->ipAddress; } - public function setKind($kind) { $this->kind = $kind; @@ -571,7 +564,6 @@ public function getKind() { return $this->kind; } - public function setOwnerDomain($ownerDomain) { $this->ownerDomain = $ownerDomain; @@ -581,6 +573,7 @@ public function getOwnerDomain() { return $this->ownerDomain; } + } class Google_Service_Reports_ActivityActor extends Google_Model @@ -601,7 +594,6 @@ public function getCallerType() { return $this->callerType; } - public function setEmail($email) { $this->email = $email; @@ -611,7 +603,6 @@ public function getEmail() { return $this->email; } - public function setKey($key) { $this->key = $key; @@ -621,7 +612,6 @@ public function getKey() { return $this->key; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -631,6 +621,7 @@ public function getProfileId() { return $this->profileId; } + } class Google_Service_Reports_ActivityEvents extends Google_Collection @@ -652,7 +643,6 @@ public function getName() { return $this->name; } - public function setParameters($parameters) { $this->parameters = $parameters; @@ -662,7 +652,6 @@ public function getParameters() { return $this->parameters; } - public function setType($type) { $this->type = $type; @@ -672,6 +661,7 @@ public function getType() { return $this->type; } + } class Google_Service_Reports_ActivityEventsParameters extends Google_Collection @@ -695,7 +685,6 @@ public function getBoolValue() { return $this->boolValue; } - public function setIntValue($intValue) { $this->intValue = $intValue; @@ -705,7 +694,6 @@ public function getIntValue() { return $this->intValue; } - public function setMultiIntValue($multiIntValue) { $this->multiIntValue = $multiIntValue; @@ -715,7 +703,6 @@ public function getMultiIntValue() { return $this->multiIntValue; } - public function setMultiValue($multiValue) { $this->multiValue = $multiValue; @@ -725,7 +712,6 @@ public function getMultiValue() { return $this->multiValue; } - public function setName($name) { $this->name = $name; @@ -735,7 +721,6 @@ public function getName() { return $this->name; } - public function setValue($value) { $this->value = $value; @@ -745,6 +730,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Reports_ActivityId extends Google_Model @@ -765,7 +751,6 @@ public function getApplicationName() { return $this->applicationName; } - public function setCustomerId($customerId) { $this->customerId = $customerId; @@ -775,7 +760,6 @@ public function getCustomerId() { return $this->customerId; } - public function setTime($time) { $this->time = $time; @@ -785,7 +769,6 @@ public function getTime() { return $this->time; } - public function setUniqueQualifier($uniqueQualifier) { $this->uniqueQualifier = $uniqueQualifier; @@ -795,6 +778,7 @@ public function getUniqueQualifier() { return $this->uniqueQualifier; } + } class Google_Service_Reports_Channel extends Google_Model @@ -821,7 +805,6 @@ public function getAddress() { return $this->address; } - public function setExpiration($expiration) { $this->expiration = $expiration; @@ -831,7 +814,6 @@ public function getExpiration() { return $this->expiration; } - public function setId($id) { $this->id = $id; @@ -841,7 +823,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -851,7 +832,6 @@ public function getKind() { return $this->kind; } - public function setParams($params) { $this->params = $params; @@ -861,7 +841,6 @@ public function getParams() { return $this->params; } - public function setPayload($payload) { $this->payload = $payload; @@ -871,7 +850,6 @@ public function getPayload() { return $this->payload; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -881,7 +859,6 @@ public function getResourceId() { return $this->resourceId; } - public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; @@ -891,7 +868,6 @@ public function getResourceUri() { return $this->resourceUri; } - public function setToken($token) { $this->token = $token; @@ -901,7 +877,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -911,12 +886,15 @@ public function getType() { return $this->type; } + } class Google_Service_Reports_ChannelParams extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Reports_UsageReport extends Google_Collection @@ -941,7 +919,6 @@ public function getDate() { return $this->date; } - public function setEntity(Google_Service_Reports_UsageReportEntity $entity) { $this->entity = $entity; @@ -951,7 +928,6 @@ public function getEntity() { return $this->entity; } - public function setEtag($etag) { $this->etag = $etag; @@ -961,7 +937,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -971,7 +946,6 @@ public function getKind() { return $this->kind; } - public function setParameters($parameters) { $this->parameters = $parameters; @@ -981,6 +955,7 @@ public function getParameters() { return $this->parameters; } + } class Google_Service_Reports_UsageReportEntity extends Google_Model @@ -1001,7 +976,6 @@ public function getCustomerId() { return $this->customerId; } - public function setProfileId($profileId) { $this->profileId = $profileId; @@ -1011,7 +985,6 @@ public function getProfileId() { return $this->profileId; } - public function setType($type) { $this->type = $type; @@ -1021,7 +994,6 @@ public function getType() { return $this->type; } - public function setUserEmail($userEmail) { $this->userEmail = $userEmail; @@ -1031,6 +1003,7 @@ public function getUserEmail() { return $this->userEmail; } + } class Google_Service_Reports_UsageReportParameters extends Google_Collection @@ -1054,7 +1027,6 @@ public function getBoolValue() { return $this->boolValue; } - public function setDatetimeValue($datetimeValue) { $this->datetimeValue = $datetimeValue; @@ -1064,7 +1036,6 @@ public function getDatetimeValue() { return $this->datetimeValue; } - public function setIntValue($intValue) { $this->intValue = $intValue; @@ -1074,7 +1045,6 @@ public function getIntValue() { return $this->intValue; } - public function setMsgValue($msgValue) { $this->msgValue = $msgValue; @@ -1084,7 +1054,6 @@ public function getMsgValue() { return $this->msgValue; } - public function setName($name) { $this->name = $name; @@ -1094,7 +1063,6 @@ public function getName() { return $this->name; } - public function setStringValue($stringValue) { $this->stringValue = $stringValue; @@ -1104,12 +1072,15 @@ public function getStringValue() { return $this->stringValue; } + } class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Reports_UsageReports extends Google_Collection @@ -1134,7 +1105,6 @@ public function getEtag() { return $this->etag; } - public function setKind($kind) { $this->kind = $kind; @@ -1144,7 +1114,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1154,7 +1123,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setUsageReports($usageReports) { $this->usageReports = $usageReports; @@ -1164,7 +1132,6 @@ public function getUsageReports() { return $this->usageReports; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -1174,6 +1141,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_Reports_UsageReportsWarnings extends Google_Collection @@ -1195,7 +1163,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -1205,7 +1172,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -1215,6 +1181,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Reports_UsageReportsWarningsData extends Google_Model @@ -1233,7 +1200,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -1243,4 +1209,5 @@ public function getValue() { return $this->value; } + } From 8b5851ed4031491d3c9487d262dffde248008e4f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:22 -0700 Subject: [PATCH 0420/1274] Updated Admin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Admin.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Google/Service/Admin.php b/src/Google/Service/Admin.php index 973a50eba..74fb66ed6 100644 --- a/src/Google/Service/Admin.php +++ b/src/Google/Service/Admin.php @@ -127,7 +127,6 @@ public function getIsDeleted() { return $this->isDeleted; } - public function setIsDraft($isDraft) { $this->isDraft = $isDraft; @@ -137,7 +136,6 @@ public function getIsDraft() { return $this->isDraft; } - public function setIsInbox($isInbox) { $this->isInbox = $isInbox; @@ -147,7 +145,6 @@ public function getIsInbox() { return $this->isInbox; } - public function setIsSent($isSent) { $this->isSent = $isSent; @@ -157,7 +154,6 @@ public function getIsSent() { return $this->isSent; } - public function setIsStarred($isStarred) { $this->isStarred = $isStarred; @@ -167,7 +163,6 @@ public function getIsStarred() { return $this->isStarred; } - public function setIsTrash($isTrash) { $this->isTrash = $isTrash; @@ -177,7 +172,6 @@ public function getIsTrash() { return $this->isTrash; } - public function setIsUnread($isUnread) { $this->isUnread = $isUnread; @@ -187,7 +181,6 @@ public function getIsUnread() { return $this->isUnread; } - public function setKind($kind) { $this->kind = $kind; @@ -197,7 +190,6 @@ public function getKind() { return $this->kind; } - public function setLabels($labels) { $this->labels = $labels; @@ -207,4 +199,5 @@ public function getLabels() { return $this->labels; } + } From 26c0b387358bb7b23d3c2bfcafdd561b03f97edc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:23 -0700 Subject: [PATCH 0421/1274] Updated Plus.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Plus.php | 270 ++++++------------------------------ 1 file changed, 45 insertions(+), 225 deletions(-) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 3cbf0b4d2..d21ecddb5 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -665,7 +665,6 @@ public function getDescription() { return $this->description; } - public function setItems($items) { $this->items = $items; @@ -675,7 +674,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -685,6 +683,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Plus_Activity extends Google_Model @@ -726,7 +725,6 @@ public function getAccess() { return $this->access; } - public function setActor(Google_Service_Plus_ActivityActor $actor) { $this->actor = $actor; @@ -736,7 +734,6 @@ public function getActor() { return $this->actor; } - public function setAddress($address) { $this->address = $address; @@ -746,7 +743,6 @@ public function getAddress() { return $this->address; } - public function setAnnotation($annotation) { $this->annotation = $annotation; @@ -756,7 +752,6 @@ public function getAnnotation() { return $this->annotation; } - public function setCrosspostSource($crosspostSource) { $this->crosspostSource = $crosspostSource; @@ -766,7 +761,6 @@ public function getCrosspostSource() { return $this->crosspostSource; } - public function setEtag($etag) { $this->etag = $etag; @@ -776,7 +770,6 @@ public function getEtag() { return $this->etag; } - public function setGeocode($geocode) { $this->geocode = $geocode; @@ -786,7 +779,6 @@ public function getGeocode() { return $this->geocode; } - public function setId($id) { $this->id = $id; @@ -796,7 +788,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -806,7 +797,6 @@ public function getKind() { return $this->kind; } - public function setLocation(Google_Service_Plus_Place $location) { $this->location = $location; @@ -816,7 +806,6 @@ public function getLocation() { return $this->location; } - public function setObject(Google_Service_Plus_ActivityObject $object) { $this->object = $object; @@ -826,7 +815,6 @@ public function getObject() { return $this->object; } - public function setPlaceId($placeId) { $this->placeId = $placeId; @@ -836,7 +824,6 @@ public function getPlaceId() { return $this->placeId; } - public function setPlaceName($placeName) { $this->placeName = $placeName; @@ -846,7 +833,6 @@ public function getPlaceName() { return $this->placeName; } - public function setProvider(Google_Service_Plus_ActivityProvider $provider) { $this->provider = $provider; @@ -856,7 +842,6 @@ public function getProvider() { return $this->provider; } - public function setPublished($published) { $this->published = $published; @@ -866,7 +851,6 @@ public function getPublished() { return $this->published; } - public function setRadius($radius) { $this->radius = $radius; @@ -876,7 +860,6 @@ public function getRadius() { return $this->radius; } - public function setTitle($title) { $this->title = $title; @@ -886,7 +869,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -896,7 +878,6 @@ public function getUpdated() { return $this->updated; } - public function setUrl($url) { $this->url = $url; @@ -906,7 +887,6 @@ public function getUrl() { return $this->url; } - public function setVerb($verb) { $this->verb = $verb; @@ -916,6 +896,7 @@ public function getVerb() { return $this->verb; } + } class Google_Service_Plus_ActivityActor extends Google_Model @@ -939,7 +920,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -949,7 +929,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Plus_ActivityActorImage $image) { $this->image = $image; @@ -959,7 +938,6 @@ public function getImage() { return $this->image; } - public function setName(Google_Service_Plus_ActivityActorName $name) { $this->name = $name; @@ -969,7 +947,6 @@ public function getName() { return $this->name; } - public function setUrl($url) { $this->url = $url; @@ -979,6 +956,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityActorImage extends Google_Model @@ -996,6 +974,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityActorName extends Google_Model @@ -1014,7 +993,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -1024,6 +1002,7 @@ public function getGivenName() { return $this->givenName; } + } class Google_Service_Plus_ActivityFeed extends Google_Collection @@ -1051,7 +1030,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1061,7 +1039,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -1071,7 +1048,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1081,7 +1057,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -1091,7 +1066,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1101,7 +1075,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1111,7 +1084,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -1121,7 +1093,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1131,6 +1102,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Plus_ActivityObject extends Google_Collection @@ -1163,7 +1135,6 @@ public function getActor() { return $this->actor; } - public function setAttachments($attachments) { $this->attachments = $attachments; @@ -1173,7 +1144,6 @@ public function getAttachments() { return $this->attachments; } - public function setContent($content) { $this->content = $content; @@ -1183,7 +1153,6 @@ public function getContent() { return $this->content; } - public function setId($id) { $this->id = $id; @@ -1193,7 +1162,6 @@ public function getId() { return $this->id; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -1203,7 +1171,6 @@ public function getObjectType() { return $this->objectType; } - public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; @@ -1213,7 +1180,6 @@ public function getOriginalContent() { return $this->originalContent; } - public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $plusoners) { $this->plusoners = $plusoners; @@ -1223,7 +1189,6 @@ public function getPlusoners() { return $this->plusoners; } - public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies) { $this->replies = $replies; @@ -1233,7 +1198,6 @@ public function getReplies() { return $this->replies; } - public function setResharers(Google_Service_Plus_ActivityObjectResharers $resharers) { $this->resharers = $resharers; @@ -1243,7 +1207,6 @@ public function getResharers() { return $this->resharers; } - public function setUrl($url) { $this->url = $url; @@ -1253,6 +1216,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectActor extends Google_Model @@ -1274,7 +1238,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1284,7 +1247,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Plus_ActivityObjectActorImage $image) { $this->image = $image; @@ -1294,7 +1256,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -1304,6 +1265,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectActorImage extends Google_Model @@ -1321,6 +1283,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection @@ -1351,7 +1314,6 @@ public function getContent() { return $this->content; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1361,7 +1323,6 @@ public function getDisplayName() { return $this->displayName; } - public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $embed) { $this->embed = $embed; @@ -1371,7 +1332,6 @@ public function getEmbed() { return $this->embed; } - public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullImage $fullImage) { $this->fullImage = $fullImage; @@ -1381,7 +1341,6 @@ public function getFullImage() { return $this->fullImage; } - public function setId($id) { $this->id = $id; @@ -1391,7 +1350,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $image) { $this->image = $image; @@ -1401,7 +1359,6 @@ public function getImage() { return $this->image; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -1411,7 +1368,6 @@ public function getObjectType() { return $this->objectType; } - public function setThumbnails($thumbnails) { $this->thumbnails = $thumbnails; @@ -1421,7 +1377,6 @@ public function getThumbnails() { return $this->thumbnails; } - public function setUrl($url) { $this->url = $url; @@ -1431,6 +1386,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model @@ -1449,7 +1405,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1459,6 +1414,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model @@ -1479,7 +1435,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1489,7 +1444,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1499,7 +1453,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1509,6 +1462,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model @@ -1529,7 +1483,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1539,7 +1492,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1549,7 +1501,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1559,6 +1510,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model @@ -1579,7 +1531,6 @@ public function getDescription() { return $this->description; } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage $image) { $this->image = $image; @@ -1589,7 +1540,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -1599,6 +1549,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model @@ -1619,7 +1570,6 @@ public function getHeight() { return $this->height; } - public function setType($type) { $this->type = $type; @@ -1629,7 +1579,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1639,7 +1588,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -1649,6 +1597,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model @@ -1667,7 +1616,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -1677,6 +1625,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Plus_ActivityObjectReplies extends Google_Model @@ -1695,7 +1644,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -1705,6 +1653,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Plus_ActivityObjectResharers extends Google_Model @@ -1723,7 +1672,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -1733,6 +1681,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Plus_ActivityProvider extends Google_Model @@ -1750,6 +1699,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_Plus_Comment extends Google_Collection @@ -1782,7 +1732,6 @@ public function getActor() { return $this->actor; } - public function setEtag($etag) { $this->etag = $etag; @@ -1792,7 +1741,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1802,7 +1750,6 @@ public function getId() { return $this->id; } - public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; @@ -1812,7 +1759,6 @@ public function getInReplyTo() { return $this->inReplyTo; } - public function setKind($kind) { $this->kind = $kind; @@ -1822,7 +1768,6 @@ public function getKind() { return $this->kind; } - public function setObject(Google_Service_Plus_CommentObject $object) { $this->object = $object; @@ -1832,7 +1777,6 @@ public function getObject() { return $this->object; } - public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners) { $this->plusoners = $plusoners; @@ -1842,7 +1786,6 @@ public function getPlusoners() { return $this->plusoners; } - public function setPublished($published) { $this->published = $published; @@ -1852,7 +1795,6 @@ public function getPublished() { return $this->published; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1862,7 +1804,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setUpdated($updated) { $this->updated = $updated; @@ -1872,7 +1813,6 @@ public function getUpdated() { return $this->updated; } - public function setVerb($verb) { $this->verb = $verb; @@ -1882,6 +1822,7 @@ public function getVerb() { return $this->verb; } + } class Google_Service_Plus_CommentActor extends Google_Model @@ -1903,7 +1844,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -1913,7 +1853,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Plus_CommentActorImage $image) { $this->image = $image; @@ -1923,7 +1862,6 @@ public function getImage() { return $this->image; } - public function setUrl($url) { $this->url = $url; @@ -1933,6 +1871,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_CommentActorImage extends Google_Model @@ -1950,6 +1889,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_CommentFeed extends Google_Collection @@ -1976,7 +1916,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1986,7 +1925,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -1996,7 +1934,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2006,7 +1943,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -2016,7 +1952,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2026,7 +1961,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTitle($title) { $this->title = $title; @@ -2036,7 +1970,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2046,6 +1979,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Plus_CommentInReplyTo extends Google_Model @@ -2064,7 +1998,6 @@ public function getId() { return $this->id; } - public function setUrl($url) { $this->url = $url; @@ -2074,6 +2007,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_CommentObject extends Google_Model @@ -2093,7 +2027,6 @@ public function getContent() { return $this->content; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -2103,7 +2036,6 @@ public function getObjectType() { return $this->objectType; } - public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; @@ -2113,6 +2045,7 @@ public function getOriginalContent() { return $this->originalContent; } + } class Google_Service_Plus_CommentPlusoners extends Google_Model @@ -2130,6 +2063,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Plus_ItemScope extends Google_Collection @@ -2218,7 +2152,6 @@ public function getAbout() { return $this->about; } - public function setAdditionalName($additionalName) { $this->additionalName = $additionalName; @@ -2228,7 +2161,6 @@ public function getAdditionalName() { return $this->additionalName; } - public function setAddress(Google_Service_Plus_ItemScope $address) { $this->address = $address; @@ -2238,7 +2170,6 @@ public function getAddress() { return $this->address; } - public function setAddressCountry($addressCountry) { $this->addressCountry = $addressCountry; @@ -2248,7 +2179,6 @@ public function getAddressCountry() { return $this->addressCountry; } - public function setAddressLocality($addressLocality) { $this->addressLocality = $addressLocality; @@ -2258,7 +2188,6 @@ public function getAddressLocality() { return $this->addressLocality; } - public function setAddressRegion($addressRegion) { $this->addressRegion = $addressRegion; @@ -2268,7 +2197,6 @@ public function getAddressRegion() { return $this->addressRegion; } - public function setAssociatedMedia($associatedMedia) { $this->associatedMedia = $associatedMedia; @@ -2278,7 +2206,6 @@ public function getAssociatedMedia() { return $this->associatedMedia; } - public function setAttendeeCount($attendeeCount) { $this->attendeeCount = $attendeeCount; @@ -2288,7 +2215,6 @@ public function getAttendeeCount() { return $this->attendeeCount; } - public function setAttendees($attendees) { $this->attendees = $attendees; @@ -2298,7 +2224,6 @@ public function getAttendees() { return $this->attendees; } - public function setAudio(Google_Service_Plus_ItemScope $audio) { $this->audio = $audio; @@ -2308,7 +2233,6 @@ public function getAudio() { return $this->audio; } - public function setAuthor($author) { $this->author = $author; @@ -2318,7 +2242,6 @@ public function getAuthor() { return $this->author; } - public function setBestRating($bestRating) { $this->bestRating = $bestRating; @@ -2328,7 +2251,6 @@ public function getBestRating() { return $this->bestRating; } - public function setBirthDate($birthDate) { $this->birthDate = $birthDate; @@ -2338,7 +2260,6 @@ public function getBirthDate() { return $this->birthDate; } - public function setByArtist(Google_Service_Plus_ItemScope $byArtist) { $this->byArtist = $byArtist; @@ -2348,7 +2269,6 @@ public function getByArtist() { return $this->byArtist; } - public function setCaption($caption) { $this->caption = $caption; @@ -2358,7 +2278,6 @@ public function getCaption() { return $this->caption; } - public function setContentSize($contentSize) { $this->contentSize = $contentSize; @@ -2368,7 +2287,6 @@ public function getContentSize() { return $this->contentSize; } - public function setContentUrl($contentUrl) { $this->contentUrl = $contentUrl; @@ -2378,7 +2296,6 @@ public function getContentUrl() { return $this->contentUrl; } - public function setContributor($contributor) { $this->contributor = $contributor; @@ -2388,7 +2305,6 @@ public function getContributor() { return $this->contributor; } - public function setDateCreated($dateCreated) { $this->dateCreated = $dateCreated; @@ -2398,7 +2314,6 @@ public function getDateCreated() { return $this->dateCreated; } - public function setDateModified($dateModified) { $this->dateModified = $dateModified; @@ -2408,7 +2323,6 @@ public function getDateModified() { return $this->dateModified; } - public function setDatePublished($datePublished) { $this->datePublished = $datePublished; @@ -2418,7 +2332,6 @@ public function getDatePublished() { return $this->datePublished; } - public function setDescription($description) { $this->description = $description; @@ -2428,7 +2341,6 @@ public function getDescription() { return $this->description; } - public function setDuration($duration) { $this->duration = $duration; @@ -2438,7 +2350,6 @@ public function getDuration() { return $this->duration; } - public function setEmbedUrl($embedUrl) { $this->embedUrl = $embedUrl; @@ -2448,7 +2359,6 @@ public function getEmbedUrl() { return $this->embedUrl; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -2458,7 +2368,6 @@ public function getEndDate() { return $this->endDate; } - public function setFamilyName($familyName) { $this->familyName = $familyName; @@ -2468,7 +2377,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGender($gender) { $this->gender = $gender; @@ -2478,7 +2386,6 @@ public function getGender() { return $this->gender; } - public function setGeo(Google_Service_Plus_ItemScope $geo) { $this->geo = $geo; @@ -2488,7 +2395,6 @@ public function getGeo() { return $this->geo; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -2498,7 +2404,6 @@ public function getGivenName() { return $this->givenName; } - public function setHeight($height) { $this->height = $height; @@ -2508,7 +2413,6 @@ public function getHeight() { return $this->height; } - public function setId($id) { $this->id = $id; @@ -2518,7 +2422,6 @@ public function getId() { return $this->id; } - public function setImage($image) { $this->image = $image; @@ -2528,7 +2431,6 @@ public function getImage() { return $this->image; } - public function setInAlbum(Google_Service_Plus_ItemScope $inAlbum) { $this->inAlbum = $inAlbum; @@ -2538,7 +2440,6 @@ public function getInAlbum() { return $this->inAlbum; } - public function setKind($kind) { $this->kind = $kind; @@ -2548,7 +2449,6 @@ public function getKind() { return $this->kind; } - public function setLatitude($latitude) { $this->latitude = $latitude; @@ -2558,7 +2458,6 @@ public function getLatitude() { return $this->latitude; } - public function setLocation(Google_Service_Plus_ItemScope $location) { $this->location = $location; @@ -2568,7 +2467,6 @@ public function getLocation() { return $this->location; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -2578,7 +2476,6 @@ public function getLongitude() { return $this->longitude; } - public function setName($name) { $this->name = $name; @@ -2588,7 +2485,6 @@ public function getName() { return $this->name; } - public function setPartOfTVSeries(Google_Service_Plus_ItemScope $partOfTVSeries) { $this->partOfTVSeries = $partOfTVSeries; @@ -2598,7 +2494,6 @@ public function getPartOfTVSeries() { return $this->partOfTVSeries; } - public function setPerformers($performers) { $this->performers = $performers; @@ -2608,7 +2503,6 @@ public function getPerformers() { return $this->performers; } - public function setPlayerType($playerType) { $this->playerType = $playerType; @@ -2618,7 +2512,6 @@ public function getPlayerType() { return $this->playerType; } - public function setPostOfficeBoxNumber($postOfficeBoxNumber) { $this->postOfficeBoxNumber = $postOfficeBoxNumber; @@ -2628,7 +2521,6 @@ public function getPostOfficeBoxNumber() { return $this->postOfficeBoxNumber; } - public function setPostalCode($postalCode) { $this->postalCode = $postalCode; @@ -2638,7 +2530,6 @@ public function getPostalCode() { return $this->postalCode; } - public function setRatingValue($ratingValue) { $this->ratingValue = $ratingValue; @@ -2648,7 +2539,6 @@ public function getRatingValue() { return $this->ratingValue; } - public function setReviewRating(Google_Service_Plus_ItemScope $reviewRating) { $this->reviewRating = $reviewRating; @@ -2658,7 +2548,6 @@ public function getReviewRating() { return $this->reviewRating; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -2668,7 +2557,6 @@ public function getStartDate() { return $this->startDate; } - public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; @@ -2678,7 +2566,6 @@ public function getStreetAddress() { return $this->streetAddress; } - public function setText($text) { $this->text = $text; @@ -2688,7 +2575,6 @@ public function getText() { return $this->text; } - public function setThumbnail(Google_Service_Plus_ItemScope $thumbnail) { $this->thumbnail = $thumbnail; @@ -2698,7 +2584,6 @@ public function getThumbnail() { return $this->thumbnail; } - public function setThumbnailUrl($thumbnailUrl) { $this->thumbnailUrl = $thumbnailUrl; @@ -2708,7 +2593,6 @@ public function getThumbnailUrl() { return $this->thumbnailUrl; } - public function setTickerSymbol($tickerSymbol) { $this->tickerSymbol = $tickerSymbol; @@ -2718,7 +2602,6 @@ public function getTickerSymbol() { return $this->tickerSymbol; } - public function setType($type) { $this->type = $type; @@ -2728,7 +2611,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -2738,7 +2620,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -2748,7 +2629,6 @@ public function getWidth() { return $this->width; } - public function setWorstRating($worstRating) { $this->worstRating = $worstRating; @@ -2758,6 +2638,7 @@ public function getWorstRating() { return $this->worstRating; } + } class Google_Service_Plus_Moment extends Google_Model @@ -2784,7 +2665,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2794,7 +2674,6 @@ public function getKind() { return $this->kind; } - public function setObject(Google_Service_Plus_ItemScope $object) { $this->object = $object; @@ -2804,7 +2683,6 @@ public function getObject() { return $this->object; } - public function setResult(Google_Service_Plus_ItemScope $result) { $this->result = $result; @@ -2814,7 +2692,6 @@ public function getResult() { return $this->result; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -2824,7 +2701,6 @@ public function getStartDate() { return $this->startDate; } - public function setTarget(Google_Service_Plus_ItemScope $target) { $this->target = $target; @@ -2834,7 +2710,6 @@ public function getTarget() { return $this->target; } - public function setType($type) { $this->type = $type; @@ -2844,6 +2719,7 @@ public function getType() { return $this->type; } + } class Google_Service_Plus_MomentsFeed extends Google_Collection @@ -2870,7 +2746,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2880,7 +2755,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2890,7 +2764,6 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) { $this->nextLink = $nextLink; @@ -2900,7 +2773,6 @@ public function getNextLink() { return $this->nextLink; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2910,7 +2782,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2920,7 +2791,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -2930,7 +2800,6 @@ public function getTitle() { return $this->title; } - public function setUpdated($updated) { $this->updated = $updated; @@ -2940,6 +2809,7 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Plus_PeopleFeed extends Google_Collection @@ -2965,7 +2835,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2975,7 +2844,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2985,7 +2853,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2995,7 +2862,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3005,7 +2871,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setTitle($title) { $this->title = $title; @@ -3015,7 +2880,6 @@ public function getTitle() { return $this->title; } - public function setTotalItems($totalItems) { $this->totalItems = $totalItems; @@ -3025,6 +2889,7 @@ public function getTotalItems() { return $this->totalItems; } + } class Google_Service_Plus_Person extends Google_Collection @@ -3080,7 +2945,6 @@ public function getAboutMe() { return $this->aboutMe; } - public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange) { $this->ageRange = $ageRange; @@ -3090,7 +2954,6 @@ public function getAgeRange() { return $this->ageRange; } - public function setBirthday($birthday) { $this->birthday = $birthday; @@ -3100,7 +2963,6 @@ public function getBirthday() { return $this->birthday; } - public function setBraggingRights($braggingRights) { $this->braggingRights = $braggingRights; @@ -3110,7 +2972,6 @@ public function getBraggingRights() { return $this->braggingRights; } - public function setCircledByCount($circledByCount) { $this->circledByCount = $circledByCount; @@ -3120,7 +2981,6 @@ public function getCircledByCount() { return $this->circledByCount; } - public function setCover(Google_Service_Plus_PersonCover $cover) { $this->cover = $cover; @@ -3130,7 +2990,6 @@ public function getCover() { return $this->cover; } - public function setCurrentLocation($currentLocation) { $this->currentLocation = $currentLocation; @@ -3140,7 +2999,6 @@ public function getCurrentLocation() { return $this->currentLocation; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3150,7 +3008,6 @@ public function getDisplayName() { return $this->displayName; } - public function setDomain($domain) { $this->domain = $domain; @@ -3160,7 +3017,6 @@ public function getDomain() { return $this->domain; } - public function setEmails($emails) { $this->emails = $emails; @@ -3170,7 +3026,6 @@ public function getEmails() { return $this->emails; } - public function setEtag($etag) { $this->etag = $etag; @@ -3180,7 +3035,6 @@ public function getEtag() { return $this->etag; } - public function setGender($gender) { $this->gender = $gender; @@ -3190,7 +3044,6 @@ public function getGender() { return $this->gender; } - public function setId($id) { $this->id = $id; @@ -3200,7 +3053,6 @@ public function getId() { return $this->id; } - public function setImage(Google_Service_Plus_PersonImage $image) { $this->image = $image; @@ -3210,7 +3062,6 @@ public function getImage() { return $this->image; } - public function setIsPlusUser($isPlusUser) { $this->isPlusUser = $isPlusUser; @@ -3220,7 +3071,6 @@ public function getIsPlusUser() { return $this->isPlusUser; } - public function setKind($kind) { $this->kind = $kind; @@ -3230,7 +3080,6 @@ public function getKind() { return $this->kind; } - public function setLanguage($language) { $this->language = $language; @@ -3240,7 +3089,6 @@ public function getLanguage() { return $this->language; } - public function setName(Google_Service_Plus_PersonName $name) { $this->name = $name; @@ -3250,7 +3098,6 @@ public function getName() { return $this->name; } - public function setNickname($nickname) { $this->nickname = $nickname; @@ -3260,7 +3107,6 @@ public function getNickname() { return $this->nickname; } - public function setObjectType($objectType) { $this->objectType = $objectType; @@ -3270,7 +3116,6 @@ public function getObjectType() { return $this->objectType; } - public function setOccupation($occupation) { $this->occupation = $occupation; @@ -3280,7 +3125,6 @@ public function getOccupation() { return $this->occupation; } - public function setOrganizations($organizations) { $this->organizations = $organizations; @@ -3290,7 +3134,6 @@ public function getOrganizations() { return $this->organizations; } - public function setPlacesLived($placesLived) { $this->placesLived = $placesLived; @@ -3300,7 +3143,6 @@ public function getPlacesLived() { return $this->placesLived; } - public function setPlusOneCount($plusOneCount) { $this->plusOneCount = $plusOneCount; @@ -3310,7 +3152,6 @@ public function getPlusOneCount() { return $this->plusOneCount; } - public function setRelationshipStatus($relationshipStatus) { $this->relationshipStatus = $relationshipStatus; @@ -3320,7 +3161,6 @@ public function getRelationshipStatus() { return $this->relationshipStatus; } - public function setSkills($skills) { $this->skills = $skills; @@ -3330,7 +3170,6 @@ public function getSkills() { return $this->skills; } - public function setTagline($tagline) { $this->tagline = $tagline; @@ -3340,7 +3179,6 @@ public function getTagline() { return $this->tagline; } - public function setUrl($url) { $this->url = $url; @@ -3350,7 +3188,6 @@ public function getUrl() { return $this->url; } - public function setUrls($urls) { $this->urls = $urls; @@ -3360,7 +3197,6 @@ public function getUrls() { return $this->urls; } - public function setVerified($verified) { $this->verified = $verified; @@ -3370,6 +3206,7 @@ public function getVerified() { return $this->verified; } + } class Google_Service_Plus_PersonAgeRange extends Google_Model @@ -3388,7 +3225,6 @@ public function getMax() { return $this->max; } - public function setMin($min) { $this->min = $min; @@ -3398,6 +3234,7 @@ public function getMin() { return $this->min; } + } class Google_Service_Plus_PersonCover extends Google_Model @@ -3419,7 +3256,6 @@ public function getCoverInfo() { return $this->coverInfo; } - public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPhoto) { $this->coverPhoto = $coverPhoto; @@ -3429,7 +3265,6 @@ public function getCoverPhoto() { return $this->coverPhoto; } - public function setLayout($layout) { $this->layout = $layout; @@ -3439,6 +3274,7 @@ public function getLayout() { return $this->layout; } + } class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model @@ -3457,7 +3293,6 @@ public function getLeftImageOffset() { return $this->leftImageOffset; } - public function setTopImageOffset($topImageOffset) { $this->topImageOffset = $topImageOffset; @@ -3467,6 +3302,7 @@ public function getTopImageOffset() { return $this->topImageOffset; } + } class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model @@ -3486,7 +3322,6 @@ public function getHeight() { return $this->height; } - public function setUrl($url) { $this->url = $url; @@ -3496,7 +3331,6 @@ public function getUrl() { return $this->url; } - public function setWidth($width) { $this->width = $width; @@ -3506,6 +3340,7 @@ public function getWidth() { return $this->width; } + } class Google_Service_Plus_PersonEmails extends Google_Model @@ -3524,7 +3359,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3534,6 +3368,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Plus_PersonImage extends Google_Model @@ -3552,7 +3387,6 @@ public function getIsDefault() { return $this->isDefault; } - public function setUrl($url) { $this->url = $url; @@ -3562,6 +3396,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_Plus_PersonName extends Google_Model @@ -3584,7 +3419,6 @@ public function getFamilyName() { return $this->familyName; } - public function setFormatted($formatted) { $this->formatted = $formatted; @@ -3594,7 +3428,6 @@ public function getFormatted() { return $this->formatted; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -3604,7 +3437,6 @@ public function getGivenName() { return $this->givenName; } - public function setHonorificPrefix($honorificPrefix) { $this->honorificPrefix = $honorificPrefix; @@ -3614,7 +3446,6 @@ public function getHonorificPrefix() { return $this->honorificPrefix; } - public function setHonorificSuffix($honorificSuffix) { $this->honorificSuffix = $honorificSuffix; @@ -3624,7 +3455,6 @@ public function getHonorificSuffix() { return $this->honorificSuffix; } - public function setMiddleName($middleName) { $this->middleName = $middleName; @@ -3634,6 +3464,7 @@ public function getMiddleName() { return $this->middleName; } + } class Google_Service_Plus_PersonOrganizations extends Google_Model @@ -3659,7 +3490,6 @@ public function getDepartment() { return $this->department; } - public function setDescription($description) { $this->description = $description; @@ -3669,7 +3499,6 @@ public function getDescription() { return $this->description; } - public function setEndDate($endDate) { $this->endDate = $endDate; @@ -3679,7 +3508,6 @@ public function getEndDate() { return $this->endDate; } - public function setLocation($location) { $this->location = $location; @@ -3689,7 +3517,6 @@ public function getLocation() { return $this->location; } - public function setName($name) { $this->name = $name; @@ -3699,7 +3526,6 @@ public function getName() { return $this->name; } - public function setPrimary($primary) { $this->primary = $primary; @@ -3709,7 +3535,6 @@ public function getPrimary() { return $this->primary; } - public function setStartDate($startDate) { $this->startDate = $startDate; @@ -3719,7 +3544,6 @@ public function getStartDate() { return $this->startDate; } - public function setTitle($title) { $this->title = $title; @@ -3729,7 +3553,6 @@ public function getTitle() { return $this->title; } - public function setType($type) { $this->type = $type; @@ -3739,6 +3562,7 @@ public function getType() { return $this->type; } + } class Google_Service_Plus_PersonPlacesLived extends Google_Model @@ -3757,7 +3581,6 @@ public function getPrimary() { return $this->primary; } - public function setValue($value) { $this->value = $value; @@ -3767,6 +3590,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Plus_PersonUrls extends Google_Model @@ -3786,7 +3610,6 @@ public function getLabel() { return $this->label; } - public function setType($type) { $this->type = $type; @@ -3796,7 +3619,6 @@ public function getType() { return $this->type; } - public function setValue($value) { $this->value = $value; @@ -3806,6 +3628,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Plus_Place extends Google_Model @@ -3829,7 +3652,6 @@ public function getAddress() { return $this->address; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -3839,7 +3661,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3849,7 +3670,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3859,7 +3679,6 @@ public function getKind() { return $this->kind; } - public function setPosition(Google_Service_Plus_PlacePosition $position) { $this->position = $position; @@ -3869,6 +3688,7 @@ public function getPosition() { return $this->position; } + } class Google_Service_Plus_PlaceAddress extends Google_Model @@ -3886,6 +3706,7 @@ public function getFormatted() { return $this->formatted; } + } class Google_Service_Plus_PlacePosition extends Google_Model @@ -3904,7 +3725,6 @@ public function getLatitude() { return $this->latitude; } - public function setLongitude($longitude) { $this->longitude = $longitude; @@ -3914,6 +3734,7 @@ public function getLongitude() { return $this->longitude; } + } class Google_Service_Plus_PlusAclentryResource extends Google_Model @@ -3933,7 +3754,6 @@ public function getDisplayName() { return $this->displayName; } - public function setId($id) { $this->id = $id; @@ -3943,7 +3763,6 @@ public function getId() { return $this->id; } - public function setType($type) { $this->type = $type; @@ -3953,4 +3772,5 @@ public function getType() { return $this->type; } + } From fe18205e8d67cf5c2e02784a98c5e58e479af054 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:24 -0700 Subject: [PATCH 0422/1274] Updated Resourceviews.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Resourceviews.php | 70 +++++++--------------------- 1 file changed, 18 insertions(+), 52 deletions(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 0fccd84bf..6ba32e704 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -611,7 +611,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -621,6 +620,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model @@ -639,7 +639,6 @@ public function getEndpoints() { return $this->endpoints; } - public function setResource($resource) { $this->resource = $resource; @@ -649,12 +648,15 @@ public function getResource() { return $this->resource; } + } class Google_Service_Resourceviews_ListResourceResponseItemEndpoints extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Resourceviews_Operation extends Google_Collection @@ -696,7 +698,6 @@ public function getClientOperationId() { return $this->clientOperationId; } - public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -706,7 +707,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setEndTime($endTime) { $this->endTime = $endTime; @@ -716,7 +716,6 @@ public function getEndTime() { return $this->endTime; } - public function setError(Google_Service_Resourceviews_OperationError $error) { $this->error = $error; @@ -726,7 +725,6 @@ public function getError() { return $this->error; } - public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; @@ -736,7 +734,6 @@ public function getHttpErrorMessage() { return $this->httpErrorMessage; } - public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; @@ -746,7 +743,6 @@ public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; } - public function setId($id) { $this->id = $id; @@ -756,7 +752,6 @@ public function getId() { return $this->id; } - public function setInsertTime($insertTime) { $this->insertTime = $insertTime; @@ -766,7 +761,6 @@ public function getInsertTime() { return $this->insertTime; } - public function setKind($kind) { $this->kind = $kind; @@ -776,7 +770,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -786,7 +779,6 @@ public function getName() { return $this->name; } - public function setOperationType($operationType) { $this->operationType = $operationType; @@ -796,7 +788,6 @@ public function getOperationType() { return $this->operationType; } - public function setProgress($progress) { $this->progress = $progress; @@ -806,7 +797,6 @@ public function getProgress() { return $this->progress; } - public function setRegion($region) { $this->region = $region; @@ -816,7 +806,6 @@ public function getRegion() { return $this->region; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -826,7 +815,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStartTime($startTime) { $this->startTime = $startTime; @@ -836,7 +824,6 @@ public function getStartTime() { return $this->startTime; } - public function setStatus($status) { $this->status = $status; @@ -846,7 +833,6 @@ public function getStatus() { return $this->status; } - public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; @@ -856,7 +842,6 @@ public function getStatusMessage() { return $this->statusMessage; } - public function setTargetId($targetId) { $this->targetId = $targetId; @@ -866,7 +851,6 @@ public function getTargetId() { return $this->targetId; } - public function setTargetLink($targetLink) { $this->targetLink = $targetLink; @@ -876,7 +860,6 @@ public function getTargetLink() { return $this->targetLink; } - public function setUser($user) { $this->user = $user; @@ -886,7 +869,6 @@ public function getUser() { return $this->user; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -896,7 +878,6 @@ public function getWarnings() { return $this->warnings; } - public function setZone($zone) { $this->zone = $zone; @@ -906,6 +887,7 @@ public function getZone() { return $this->zone; } + } class Google_Service_Resourceviews_OperationError extends Google_Collection @@ -925,6 +907,7 @@ public function getErrors() { return $this->errors; } + } class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model @@ -944,7 +927,6 @@ public function getCode() { return $this->code; } - public function setLocation($location) { $this->location = $location; @@ -954,7 +936,6 @@ public function getLocation() { return $this->location; } - public function setMessage($message) { $this->message = $message; @@ -964,6 +945,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Resourceviews_OperationList extends Google_Collection @@ -987,7 +969,6 @@ public function getId() { return $this->id; } - public function setItems($items) { $this->items = $items; @@ -997,7 +978,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1007,7 +987,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1017,7 +996,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1027,6 +1005,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Resourceviews_OperationWarnings extends Google_Collection @@ -1048,7 +1027,6 @@ public function getCode() { return $this->code; } - public function setData($data) { $this->data = $data; @@ -1058,7 +1036,6 @@ public function getData() { return $this->data; } - public function setMessage($message) { $this->message = $message; @@ -1068,6 +1045,7 @@ public function getMessage() { return $this->message; } + } class Google_Service_Resourceviews_OperationWarningsData extends Google_Model @@ -1086,7 +1064,6 @@ public function getKey() { return $this->key; } - public function setValue($value) { $this->value = $value; @@ -1096,6 +1073,7 @@ public function getValue() { return $this->value; } + } class Google_Service_Resourceviews_ResourceView extends Google_Collection @@ -1127,7 +1105,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) { $this->description = $description; @@ -1137,7 +1114,6 @@ public function getDescription() { return $this->description; } - public function setEndpoints($endpoints) { $this->endpoints = $endpoints; @@ -1147,7 +1123,6 @@ public function getEndpoints() { return $this->endpoints; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -1157,7 +1132,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setId($id) { $this->id = $id; @@ -1167,7 +1141,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1177,7 +1150,6 @@ public function getKind() { return $this->kind; } - public function setLabels($labels) { $this->labels = $labels; @@ -1187,7 +1159,6 @@ public function getLabels() { return $this->labels; } - public function setName($name) { $this->name = $name; @@ -1197,7 +1168,6 @@ public function getName() { return $this->name; } - public function setNetwork($network) { $this->network = $network; @@ -1207,7 +1177,6 @@ public function getNetwork() { return $this->network; } - public function setResources($resources) { $this->resources = $resources; @@ -1217,7 +1186,6 @@ public function getResources() { return $this->resources; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1227,7 +1195,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSize($size) { $this->size = $size; @@ -1237,6 +1204,7 @@ public function getSize() { return $this->size; } + } class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model @@ -1255,7 +1223,6 @@ public function getName() { return $this->name; } - public function setPort($port) { $this->port = $port; @@ -1265,6 +1232,7 @@ public function getPort() { return $this->port; } + } class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection @@ -1283,6 +1251,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection @@ -1303,7 +1272,6 @@ public function getEndpoints() { return $this->endpoints; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -1313,6 +1281,7 @@ public function getFingerprint() { return $this->fingerprint; } + } class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection @@ -1335,7 +1304,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1345,7 +1313,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1355,7 +1322,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1365,6 +1331,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection @@ -1386,7 +1353,6 @@ public function getItems() { return $this->items; } - public function setNetwork($network) { $this->network = $network; @@ -1396,7 +1362,6 @@ public function getNetwork() { return $this->network; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1406,6 +1371,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection @@ -1424,6 +1390,7 @@ public function getResources() { return $this->resources; } + } class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection @@ -1445,7 +1412,6 @@ public function getEndpoints() { return $this->endpoints; } - public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -1455,7 +1421,6 @@ public function getFingerprint() { return $this->fingerprint; } - public function setResourceName($resourceName) { $this->resourceName = $resourceName; @@ -1465,4 +1430,5 @@ public function getResourceName() { return $this->resourceName; } + } From 783acdafb5de59ec60872090252fa301f0ec6054 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 23 Oct 2014 15:31:24 -0700 Subject: [PATCH 0423/1274] Updated AdSenseHost.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSenseHost.php | 85 +++++++----------------------- 1 file changed, 20 insertions(+), 65 deletions(-) diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index 4e0edee28..6c24f68cf 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -1271,7 +1271,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1281,7 +1280,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -1291,7 +1289,6 @@ public function getName() { return $this->name; } - public function setStatus($status) { $this->status = $status; @@ -1301,6 +1298,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_AdSenseHost_Accounts extends Google_Collection @@ -1322,7 +1320,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1332,7 +1329,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1342,6 +1338,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSenseHost_AdClient extends Google_Model @@ -1363,7 +1360,6 @@ public function getArcOptIn() { return $this->arcOptIn; } - public function setId($id) { $this->id = $id; @@ -1373,7 +1369,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1383,7 +1378,6 @@ public function getKind() { return $this->kind; } - public function setProductCode($productCode) { $this->productCode = $productCode; @@ -1393,7 +1387,6 @@ public function getProductCode() { return $this->productCode; } - public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; @@ -1403,6 +1396,7 @@ public function getSupportsReporting() { return $this->supportsReporting; } + } class Google_Service_AdSenseHost_AdClients extends Google_Collection @@ -1425,7 +1419,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1435,7 +1428,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1445,7 +1437,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1455,6 +1446,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSenseHost_AdCode extends Google_Model @@ -1473,7 +1465,6 @@ public function getAdCode() { return $this->adCode; } - public function setKind($kind) { $this->kind = $kind; @@ -1483,6 +1474,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSenseHost_AdStyle extends Google_Model @@ -1505,7 +1497,6 @@ public function getColors() { return $this->colors; } - public function setCorners($corners) { $this->corners = $corners; @@ -1515,7 +1506,6 @@ public function getCorners() { return $this->corners; } - public function setFont(Google_Service_AdSenseHost_AdStyleFont $font) { $this->font = $font; @@ -1525,7 +1515,6 @@ public function getFont() { return $this->font; } - public function setKind($kind) { $this->kind = $kind; @@ -1535,6 +1524,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_AdSenseHost_AdStyleColors extends Google_Model @@ -1556,7 +1546,6 @@ public function getBackground() { return $this->background; } - public function setBorder($border) { $this->border = $border; @@ -1566,7 +1555,6 @@ public function getBorder() { return $this->border; } - public function setText($text) { $this->text = $text; @@ -1576,7 +1564,6 @@ public function getText() { return $this->text; } - public function setTitle($title) { $this->title = $title; @@ -1586,7 +1573,6 @@ public function getTitle() { return $this->title; } - public function setUrl($url) { $this->url = $url; @@ -1596,6 +1582,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AdSenseHost_AdStyleFont extends Google_Model @@ -1614,7 +1601,6 @@ public function getFamily() { return $this->family; } - public function setSize($size) { $this->size = $size; @@ -1624,6 +1610,7 @@ public function getSize() { return $this->size; } + } class Google_Service_AdSenseHost_AdUnit extends Google_Model @@ -1651,7 +1638,6 @@ public function getCode() { return $this->code; } - public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings) { $this->contentAdsSettings = $contentAdsSettings; @@ -1661,7 +1647,6 @@ public function getContentAdsSettings() { return $this->contentAdsSettings; } - public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle) { $this->customStyle = $customStyle; @@ -1671,7 +1656,6 @@ public function getCustomStyle() { return $this->customStyle; } - public function setId($id) { $this->id = $id; @@ -1681,7 +1665,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1691,7 +1674,6 @@ public function getKind() { return $this->kind; } - public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) { $this->mobileContentAdsSettings = $mobileContentAdsSettings; @@ -1701,7 +1683,6 @@ public function getMobileContentAdsSettings() { return $this->mobileContentAdsSettings; } - public function setName($name) { $this->name = $name; @@ -1711,7 +1692,6 @@ public function getName() { return $this->name; } - public function setStatus($status) { $this->status = $status; @@ -1721,6 +1701,7 @@ public function getStatus() { return $this->status; } + } class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model @@ -1741,7 +1722,6 @@ public function getBackupOption() { return $this->backupOption; } - public function setSize($size) { $this->size = $size; @@ -1751,7 +1731,6 @@ public function getSize() { return $this->size; } - public function setType($type) { $this->type = $type; @@ -1761,6 +1740,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model @@ -1780,7 +1760,6 @@ public function getColor() { return $this->color; } - public function setType($type) { $this->type = $type; @@ -1790,7 +1769,6 @@ public function getType() { return $this->type; } - public function setUrl($url) { $this->url = $url; @@ -1800,6 +1778,7 @@ public function getUrl() { return $this->url; } + } class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model @@ -1820,7 +1799,6 @@ public function getMarkupLanguage() { return $this->markupLanguage; } - public function setScriptingLanguage($scriptingLanguage) { $this->scriptingLanguage = $scriptingLanguage; @@ -1830,7 +1808,6 @@ public function getScriptingLanguage() { return $this->scriptingLanguage; } - public function setSize($size) { $this->size = $size; @@ -1840,7 +1817,6 @@ public function getSize() { return $this->size; } - public function setType($type) { $this->type = $type; @@ -1850,6 +1826,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSenseHost_AdUnits extends Google_Collection @@ -1872,7 +1849,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -1882,7 +1858,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -1892,7 +1867,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1902,6 +1876,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSenseHost_AssociationSession extends Google_Collection @@ -1928,7 +1903,6 @@ public function getAccountId() { return $this->accountId; } - public function setId($id) { $this->id = $id; @@ -1938,7 +1912,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1948,7 +1921,6 @@ public function getKind() { return $this->kind; } - public function setProductCodes($productCodes) { $this->productCodes = $productCodes; @@ -1958,7 +1930,6 @@ public function getProductCodes() { return $this->productCodes; } - public function setRedirectUrl($redirectUrl) { $this->redirectUrl = $redirectUrl; @@ -1968,7 +1939,6 @@ public function getRedirectUrl() { return $this->redirectUrl; } - public function setStatus($status) { $this->status = $status; @@ -1978,7 +1948,6 @@ public function getStatus() { return $this->status; } - public function setUserLocale($userLocale) { $this->userLocale = $userLocale; @@ -1988,7 +1957,6 @@ public function getUserLocale() { return $this->userLocale; } - public function setWebsiteLocale($websiteLocale) { $this->websiteLocale = $websiteLocale; @@ -1998,7 +1966,6 @@ public function getWebsiteLocale() { return $this->websiteLocale; } - public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; @@ -2008,6 +1975,7 @@ public function getWebsiteUrl() { return $this->websiteUrl; } + } class Google_Service_AdSenseHost_CustomChannel extends Google_Model @@ -2028,7 +1996,6 @@ public function getCode() { return $this->code; } - public function setId($id) { $this->id = $id; @@ -2038,7 +2005,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2048,7 +2014,6 @@ public function getKind() { return $this->kind; } - public function setName($name) { $this->name = $name; @@ -2058,6 +2023,7 @@ public function getName() { return $this->name; } + } class Google_Service_AdSenseHost_CustomChannels extends Google_Collection @@ -2080,7 +2046,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2090,7 +2055,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2100,7 +2064,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2110,6 +2073,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_AdSenseHost_Report extends Google_Collection @@ -2135,7 +2099,6 @@ public function getAverages() { return $this->averages; } - public function setHeaders($headers) { $this->headers = $headers; @@ -2145,7 +2108,6 @@ public function getHeaders() { return $this->headers; } - public function setKind($kind) { $this->kind = $kind; @@ -2155,7 +2117,6 @@ public function getKind() { return $this->kind; } - public function setRows($rows) { $this->rows = $rows; @@ -2165,7 +2126,6 @@ public function getRows() { return $this->rows; } - public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; @@ -2175,7 +2135,6 @@ public function getTotalMatchedRows() { return $this->totalMatchedRows; } - public function setTotals($totals) { $this->totals = $totals; @@ -2185,7 +2144,6 @@ public function getTotals() { return $this->totals; } - public function setWarnings($warnings) { $this->warnings = $warnings; @@ -2195,6 +2153,7 @@ public function getWarnings() { return $this->warnings; } + } class Google_Service_AdSenseHost_ReportHeaders extends Google_Model @@ -2214,7 +2173,6 @@ public function getCurrency() { return $this->currency; } - public function setName($name) { $this->name = $name; @@ -2224,7 +2182,6 @@ public function getName() { return $this->name; } - public function setType($type) { $this->type = $type; @@ -2234,6 +2191,7 @@ public function getType() { return $this->type; } + } class Google_Service_AdSenseHost_UrlChannel extends Google_Model @@ -2253,7 +2211,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2263,7 +2220,6 @@ public function getKind() { return $this->kind; } - public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; @@ -2273,6 +2229,7 @@ public function getUrlPattern() { return $this->urlPattern; } + } class Google_Service_AdSenseHost_UrlChannels extends Google_Collection @@ -2295,7 +2252,6 @@ public function getEtag() { return $this->etag; } - public function setItems($items) { $this->items = $items; @@ -2305,7 +2261,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2315,7 +2270,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2325,4 +2279,5 @@ public function getNextPageToken() { return $this->nextPageToken; } + } From 80ec71960012396dfe69c692f36100350ce8fb38 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Oct 2014 02:39:46 -0700 Subject: [PATCH 0424/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 123 ++++++++------------------------- 1 file changed, 28 insertions(+), 95 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index bb6ec5541..501bb2525 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -1880,7 +1880,6 @@ public function getAcl() { return $this->acl; } - public function setCors($cors) { $this->cors = $cors; @@ -1890,7 +1889,6 @@ public function getCors() { return $this->cors; } - public function setDefaultObjectAcl($defaultObjectAcl) { $this->defaultObjectAcl = $defaultObjectAcl; @@ -1900,7 +1898,6 @@ public function getDefaultObjectAcl() { return $this->defaultObjectAcl; } - public function setEtag($etag) { $this->etag = $etag; @@ -1910,7 +1907,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -1920,7 +1916,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -1930,7 +1925,6 @@ public function getKind() { return $this->kind; } - public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) { $this->lifecycle = $lifecycle; @@ -1940,7 +1934,6 @@ public function getLifecycle() { return $this->lifecycle; } - public function setLocation($location) { $this->location = $location; @@ -1950,7 +1943,6 @@ public function getLocation() { return $this->location; } - public function setLogging(Google_Service_Storage_BucketLogging $logging) { $this->logging = $logging; @@ -1960,7 +1952,6 @@ public function getLogging() { return $this->logging; } - public function setMetageneration($metageneration) { $this->metageneration = $metageneration; @@ -1970,7 +1961,6 @@ public function getMetageneration() { return $this->metageneration; } - public function setName($name) { $this->name = $name; @@ -1980,7 +1970,6 @@ public function getName() { return $this->name; } - public function setOwner(Google_Service_Storage_BucketOwner $owner) { $this->owner = $owner; @@ -1990,7 +1979,6 @@ public function getOwner() { return $this->owner; } - public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; @@ -2000,7 +1988,6 @@ public function getProjectNumber() { return $this->projectNumber; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2010,7 +1997,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setStorageClass($storageClass) { $this->storageClass = $storageClass; @@ -2020,7 +2006,6 @@ public function getStorageClass() { return $this->storageClass; } - public function setTimeCreated($timeCreated) { $this->timeCreated = $timeCreated; @@ -2030,7 +2015,6 @@ public function getTimeCreated() { return $this->timeCreated; } - public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) { $this->versioning = $versioning; @@ -2040,7 +2024,6 @@ public function getVersioning() { return $this->versioning; } - public function setWebsite(Google_Service_Storage_BucketWebsite $website) { $this->website = $website; @@ -2050,6 +2033,7 @@ public function getWebsite() { return $this->website; } + } class Google_Service_Storage_BucketAccessControl extends Google_Model @@ -2078,7 +2062,6 @@ public function getBucket() { return $this->bucket; } - public function setDomain($domain) { $this->domain = $domain; @@ -2088,7 +2071,6 @@ public function getDomain() { return $this->domain; } - public function setEmail($email) { $this->email = $email; @@ -2098,7 +2080,6 @@ public function getEmail() { return $this->email; } - public function setEntity($entity) { $this->entity = $entity; @@ -2108,7 +2089,6 @@ public function getEntity() { return $this->entity; } - public function setEntityId($entityId) { $this->entityId = $entityId; @@ -2118,7 +2098,6 @@ public function getEntityId() { return $this->entityId; } - public function setEtag($etag) { $this->etag = $etag; @@ -2128,7 +2107,6 @@ public function getEtag() { return $this->etag; } - public function setId($id) { $this->id = $id; @@ -2138,7 +2116,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2148,7 +2125,6 @@ public function getKind() { return $this->kind; } - public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) { $this->projectTeam = $projectTeam; @@ -2158,7 +2134,6 @@ public function getProjectTeam() { return $this->projectTeam; } - public function setRole($role) { $this->role = $role; @@ -2168,7 +2143,6 @@ public function getRole() { return $this->role; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2178,6 +2152,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model @@ -2196,7 +2171,6 @@ public function getProjectNumber() { return $this->projectNumber; } - public function setTeam($team) { $this->team = $team; @@ -2206,6 +2180,7 @@ public function getTeam() { return $this->team; } + } class Google_Service_Storage_BucketAccessControls extends Google_Collection @@ -2226,7 +2201,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2236,6 +2210,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Storage_BucketCors extends Google_Collection @@ -2257,7 +2232,6 @@ public function getMaxAgeSeconds() { return $this->maxAgeSeconds; } - public function setMethod($method) { $this->method = $method; @@ -2267,7 +2241,6 @@ public function getMethod() { return $this->method; } - public function setOrigin($origin) { $this->origin = $origin; @@ -2277,7 +2250,6 @@ public function getOrigin() { return $this->origin; } - public function setResponseHeader($responseHeader) { $this->responseHeader = $responseHeader; @@ -2287,6 +2259,7 @@ public function getResponseHeader() { return $this->responseHeader; } + } class Google_Service_Storage_BucketLifecycle extends Google_Collection @@ -2306,6 +2279,7 @@ public function getRule() { return $this->rule; } + } class Google_Service_Storage_BucketLifecycleRule extends Google_Model @@ -2326,7 +2300,6 @@ public function getAction() { return $this->action; } - public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) { $this->condition = $condition; @@ -2336,6 +2309,7 @@ public function getCondition() { return $this->condition; } + } class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model @@ -2353,6 +2327,7 @@ public function getType() { return $this->type; } + } class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model @@ -2373,7 +2348,6 @@ public function getAge() { return $this->age; } - public function setCreatedBefore($createdBefore) { $this->createdBefore = $createdBefore; @@ -2383,7 +2357,6 @@ public function getCreatedBefore() { return $this->createdBefore; } - public function setIsLive($isLive) { $this->isLive = $isLive; @@ -2393,7 +2366,6 @@ public function getIsLive() { return $this->isLive; } - public function setNumNewerVersions($numNewerVersions) { $this->numNewerVersions = $numNewerVersions; @@ -2403,6 +2375,7 @@ public function getNumNewerVersions() { return $this->numNewerVersions; } + } class Google_Service_Storage_BucketLogging extends Google_Model @@ -2421,7 +2394,6 @@ public function getLogBucket() { return $this->logBucket; } - public function setLogObjectPrefix($logObjectPrefix) { $this->logObjectPrefix = $logObjectPrefix; @@ -2431,6 +2403,7 @@ public function getLogObjectPrefix() { return $this->logObjectPrefix; } + } class Google_Service_Storage_BucketOwner extends Google_Model @@ -2449,7 +2422,6 @@ public function getEntity() { return $this->entity; } - public function setEntityId($entityId) { $this->entityId = $entityId; @@ -2459,6 +2431,7 @@ public function getEntityId() { return $this->entityId; } + } class Google_Service_Storage_BucketVersioning extends Google_Model @@ -2476,6 +2449,7 @@ public function getEnabled() { return $this->enabled; } + } class Google_Service_Storage_BucketWebsite extends Google_Model @@ -2494,7 +2468,6 @@ public function getMainPageSuffix() { return $this->mainPageSuffix; } - public function setNotFoundPage($notFoundPage) { $this->notFoundPage = $notFoundPage; @@ -2504,6 +2477,7 @@ public function getNotFoundPage() { return $this->notFoundPage; } + } class Google_Service_Storage_Buckets extends Google_Collection @@ -2525,7 +2499,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2535,7 +2508,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -2545,6 +2517,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_Storage_Channel extends Google_Model @@ -2571,7 +2544,6 @@ public function getAddress() { return $this->address; } - public function setExpiration($expiration) { $this->expiration = $expiration; @@ -2581,7 +2553,6 @@ public function getExpiration() { return $this->expiration; } - public function setId($id) { $this->id = $id; @@ -2591,7 +2562,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2601,7 +2571,6 @@ public function getKind() { return $this->kind; } - public function setParams($params) { $this->params = $params; @@ -2611,7 +2580,6 @@ public function getParams() { return $this->params; } - public function setPayload($payload) { $this->payload = $payload; @@ -2621,7 +2589,6 @@ public function getPayload() { return $this->payload; } - public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -2631,7 +2598,6 @@ public function getResourceId() { return $this->resourceId; } - public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; @@ -2641,7 +2607,6 @@ public function getResourceUri() { return $this->resourceUri; } - public function setToken($token) { $this->token = $token; @@ -2651,7 +2616,6 @@ public function getToken() { return $this->token; } - public function setType($type) { $this->type = $type; @@ -2661,12 +2625,15 @@ public function getType() { return $this->type; } + } class Google_Service_Storage_ChannelParams extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Storage_ComposeRequest extends Google_Collection @@ -2689,7 +2656,6 @@ public function getDestination() { return $this->destination; } - public function setKind($kind) { $this->kind = $kind; @@ -2699,7 +2665,6 @@ public function getKind() { return $this->kind; } - public function setSourceObjects($sourceObjects) { $this->sourceObjects = $sourceObjects; @@ -2709,6 +2674,7 @@ public function getSourceObjects() { return $this->sourceObjects; } + } class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model @@ -2729,7 +2695,6 @@ public function getGeneration() { return $this->generation; } - public function setName($name) { $this->name = $name; @@ -2739,7 +2704,6 @@ public function getName() { return $this->name; } - public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) { $this->objectPreconditions = $objectPreconditions; @@ -2749,6 +2713,7 @@ public function getObjectPreconditions() { return $this->objectPreconditions; } + } class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model @@ -2766,6 +2731,7 @@ public function getIfGenerationMatch() { return $this->ifGenerationMatch; } + } class Google_Service_Storage_ObjectAccessControl extends Google_Model @@ -2796,7 +2762,6 @@ public function getBucket() { return $this->bucket; } - public function setDomain($domain) { $this->domain = $domain; @@ -2806,7 +2771,6 @@ public function getDomain() { return $this->domain; } - public function setEmail($email) { $this->email = $email; @@ -2816,7 +2780,6 @@ public function getEmail() { return $this->email; } - public function setEntity($entity) { $this->entity = $entity; @@ -2826,7 +2789,6 @@ public function getEntity() { return $this->entity; } - public function setEntityId($entityId) { $this->entityId = $entityId; @@ -2836,7 +2798,6 @@ public function getEntityId() { return $this->entityId; } - public function setEtag($etag) { $this->etag = $etag; @@ -2846,7 +2807,6 @@ public function getEtag() { return $this->etag; } - public function setGeneration($generation) { $this->generation = $generation; @@ -2856,7 +2816,6 @@ public function getGeneration() { return $this->generation; } - public function setId($id) { $this->id = $id; @@ -2866,7 +2825,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -2876,7 +2834,6 @@ public function getKind() { return $this->kind; } - public function setObject($object) { $this->object = $object; @@ -2886,7 +2843,6 @@ public function getObject() { return $this->object; } - public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) { $this->projectTeam = $projectTeam; @@ -2896,7 +2852,6 @@ public function getProjectTeam() { return $this->projectTeam; } - public function setRole($role) { $this->role = $role; @@ -2906,7 +2861,6 @@ public function getRole() { return $this->role; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -2916,6 +2870,7 @@ public function getSelfLink() { return $this->selfLink; } + } class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model @@ -2934,7 +2889,6 @@ public function getProjectNumber() { return $this->projectNumber; } - public function setTeam($team) { $this->team = $team; @@ -2944,6 +2898,7 @@ public function getTeam() { return $this->team; } + } class Google_Service_Storage_ObjectAccessControls extends Google_Collection @@ -2963,7 +2918,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -2973,6 +2927,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_Storage_Objects extends Google_Collection @@ -2995,7 +2950,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -3005,7 +2959,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -3015,7 +2968,6 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setPrefixes($prefixes) { $this->prefixes = $prefixes; @@ -3025,6 +2977,7 @@ public function getPrefixes() { return $this->prefixes; } + } class Google_Service_Storage_StorageObject extends Google_Collection @@ -3068,7 +3021,6 @@ public function getAcl() { return $this->acl; } - public function setBucket($bucket) { $this->bucket = $bucket; @@ -3078,7 +3030,6 @@ public function getBucket() { return $this->bucket; } - public function setCacheControl($cacheControl) { $this->cacheControl = $cacheControl; @@ -3088,7 +3039,6 @@ public function getCacheControl() { return $this->cacheControl; } - public function setComponentCount($componentCount) { $this->componentCount = $componentCount; @@ -3098,7 +3048,6 @@ public function getComponentCount() { return $this->componentCount; } - public function setContentDisposition($contentDisposition) { $this->contentDisposition = $contentDisposition; @@ -3108,7 +3057,6 @@ public function getContentDisposition() { return $this->contentDisposition; } - public function setContentEncoding($contentEncoding) { $this->contentEncoding = $contentEncoding; @@ -3118,7 +3066,6 @@ public function getContentEncoding() { return $this->contentEncoding; } - public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; @@ -3128,7 +3075,6 @@ public function getContentLanguage() { return $this->contentLanguage; } - public function setContentType($contentType) { $this->contentType = $contentType; @@ -3138,7 +3084,6 @@ public function getContentType() { return $this->contentType; } - public function setCrc32c($crc32c) { $this->crc32c = $crc32c; @@ -3148,7 +3093,6 @@ public function getCrc32c() { return $this->crc32c; } - public function setEtag($etag) { $this->etag = $etag; @@ -3158,7 +3102,6 @@ public function getEtag() { return $this->etag; } - public function setGeneration($generation) { $this->generation = $generation; @@ -3168,7 +3111,6 @@ public function getGeneration() { return $this->generation; } - public function setId($id) { $this->id = $id; @@ -3178,7 +3120,6 @@ public function getId() { return $this->id; } - public function setKind($kind) { $this->kind = $kind; @@ -3188,7 +3129,6 @@ public function getKind() { return $this->kind; } - public function setMd5Hash($md5Hash) { $this->md5Hash = $md5Hash; @@ -3198,7 +3138,6 @@ public function getMd5Hash() { return $this->md5Hash; } - public function setMediaLink($mediaLink) { $this->mediaLink = $mediaLink; @@ -3208,7 +3147,6 @@ public function getMediaLink() { return $this->mediaLink; } - public function setMetadata($metadata) { $this->metadata = $metadata; @@ -3218,7 +3156,6 @@ public function getMetadata() { return $this->metadata; } - public function setMetageneration($metageneration) { $this->metageneration = $metageneration; @@ -3228,7 +3165,6 @@ public function getMetageneration() { return $this->metageneration; } - public function setName($name) { $this->name = $name; @@ -3238,7 +3174,6 @@ public function getName() { return $this->name; } - public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) { $this->owner = $owner; @@ -3248,7 +3183,6 @@ public function getOwner() { return $this->owner; } - public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -3258,7 +3192,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setSize($size) { $this->size = $size; @@ -3268,7 +3201,6 @@ public function getSize() { return $this->size; } - public function setStorageClass($storageClass) { $this->storageClass = $storageClass; @@ -3278,7 +3210,6 @@ public function getStorageClass() { return $this->storageClass; } - public function setTimeDeleted($timeDeleted) { $this->timeDeleted = $timeDeleted; @@ -3288,7 +3219,6 @@ public function getTimeDeleted() { return $this->timeDeleted; } - public function setUpdated($updated) { $this->updated = $updated; @@ -3298,12 +3228,15 @@ public function getUpdated() { return $this->updated; } + } class Google_Service_Storage_StorageObjectMetadata extends Google_Model { protected $internal_gapi_mappings = array( ); + + } class Google_Service_Storage_StorageObjectOwner extends Google_Model @@ -3322,7 +3255,6 @@ public function getEntity() { return $this->entity; } - public function setEntityId($entityId) { $this->entityId = $entityId; @@ -3332,4 +3264,5 @@ public function getEntityId() { return $this->entityId; } + } From 349af0f9dff936f4950df93d368040d08501b696 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Oct 2014 02:39:47 -0700 Subject: [PATCH 0425/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 413 ++++++++++++++++++++++--- 1 file changed, 365 insertions(+), 48 deletions(-) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 17afb2690..71e1e9a48 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -148,6 +148,10 @@ public function __construct(Google_Client $client) 'path' => 'events/reset', 'httpMethod' => 'POST', 'parameters' => array(), + ),'resetAllForAllPlayers' => array( + 'path' => 'events/resetAllForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'resetForAllPlayers' => array( 'path' => 'events/{eventId}/resetForAllPlayers', 'httpMethod' => 'POST', @@ -158,6 +162,10 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resetMultipleForAllPlayers' => array( + 'path' => 'events/resetMultipleForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -218,6 +226,28 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resetAll' => array( + 'path' => 'quests/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'resetAllForAllPlayers' => array( + 'path' => 'quests/resetAllForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'resetForAllPlayers' => array( + 'path' => 'quests/{questId}/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resetMultipleForAllPlayers' => array( + 'path' => 'quests/resetMultipleForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -232,6 +262,10 @@ public function __construct(Google_Client $client) 'path' => 'rooms/reset', 'httpMethod' => 'POST', 'parameters' => array(), + ),'resetForAllPlayers' => array( + 'path' => 'rooms/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -252,6 +286,14 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resetAll' => array( + 'path' => 'scores/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'resetAllForAllPlayers' => array( + 'path' => 'scores/resetAllForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'resetForAllPlayers' => array( 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', 'httpMethod' => 'POST', @@ -262,6 +304,10 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resetMultipleForAllPlayers' => array( + 'path' => 'scores/resetMultipleForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -276,6 +322,10 @@ public function __construct(Google_Client $client) 'path' => 'turnbasedmatches/reset', 'httpMethod' => 'POST', 'parameters' => array(), + ),'resetForAllPlayers' => array( + 'path' => 'turnbasedmatches/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -354,8 +404,8 @@ public function resetForAllPlayers($achievementId, $optParams = array()) return $this->call('resetForAllPlayers', array($params)); } /** - * Resets the achievement with the given IDs for all players. This method is - * only available to user accounts for your developer console. Only draft + * Resets achievements with the given IDs for all players. This method is only + * available to user accounts for your developer console. Only draft * achievements may be reset. (achievements.resetMultipleForAllPlayers) * * @param Google_AchievementResetMultipleForAllRequest $postBody @@ -386,7 +436,7 @@ class Google_Service_GamesManagement_Applications_Resource extends Google_Servic * (applications.listHidden) * * @param string $applicationId - * The application being requested. + * The application ID from the Google Play developer console. * @param array $optParams Optional parameters. * * @opt_param string pageToken @@ -417,10 +467,10 @@ class Google_Service_GamesManagement_Events_Resource extends Google_Service_Reso { /** - * Reset all player progress on the event for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. All resources that use the event will also be reset. - * (events.reset) + * Resets all player progress on the event with the given ID for the currently + * authenticated player. This method is only accessible to whitelisted tester + * accounts for your application. All quests for this player that use the event + * will also be reset. (events.reset) * * @param string $eventId * The ID of the event. @@ -433,10 +483,10 @@ public function reset($eventId, $optParams = array()) return $this->call('reset', array($params)); } /** - * Reset all player progress on all unpublished events for the currently - * authenticated player. This method is only accessible to whitelisted tester - * accounts for your application. All resources that use the events will also be - * reset. (events.resetAll) + * Resets all player progress on all events for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. All quests for this player will also be reset. + * (events.resetAll) * * @param array $optParams Optional parameters. */ @@ -447,9 +497,22 @@ public function resetAll($optParams = array()) return $this->call('resetAll', array($params)); } /** - * Reset all player progress on the event for all players. This method is only + * Resets all draft events for all players. This method is only available to + * user accounts for your developer console. All quests that use any of these + * events will also be reset. (events.resetAllForAllPlayers) + * + * @param array $optParams Optional parameters. + */ + public function resetAllForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAllForAllPlayers', array($params)); + } + /** + * Resets the event with the given ID for all players. This method is only * available to user accounts for your developer console. Only draft events can - * be reset. All resources that use the event will also be reset. + * be reset. All quests that use the event will also be reset. * (events.resetForAllPlayers) * * @param string $eventId @@ -462,6 +525,21 @@ public function resetForAllPlayers($eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** + * Resets events with the given IDs for all players. This method is only + * available to user accounts for your developer console. Only draft events may + * be reset. All quests that use any of the events will also be reset. + * (events.resetMultipleForAllPlayers) + * + * @param Google_EventsResetMultipleForAllRequest $postBody + * @param array $optParams Optional parameters. + */ + public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resetMultipleForAllPlayers', array($params)); + } } /** @@ -481,7 +559,7 @@ class Google_Service_GamesManagement_Players_Resource extends Google_Service_Res * (players.hide) * * @param string $applicationId - * The application being requested. + * The application ID from the Google Play developer console. * @param string $playerId * A player ID. A value of me may be used in place of the authenticated player's ID. * @param array $optParams Optional parameters. @@ -498,7 +576,7 @@ public function hide($applicationId, $playerId, $optParams = array()) * (players.unhide) * * @param string $applicationId - * The application being requested. + * The application ID from the Google Play developer console. * @param string $playerId * A player ID. A value of me may be used in place of the authenticated player's ID. * @param array $optParams Optional parameters. @@ -523,9 +601,9 @@ class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Reso { /** - * Reset all player progress on the quest for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (quests.reset) + * Resets all player progress on the quest with the given ID for the currently + * authenticated player. This method is only accessible to whitelisted tester + * accounts for your application. (quests.reset) * * @param string $questId * The ID of the quest. @@ -537,6 +615,60 @@ public function reset($questId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** + * Resets all player progress on all quests for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. (quests.resetAll) + * + * @param array $optParams Optional parameters. + */ + public function resetAll($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAll', array($params)); + } + /** + * Resets all draft quests for all players. This method is only available to + * user accounts for your developer console. (quests.resetAllForAllPlayers) + * + * @param array $optParams Optional parameters. + */ + public function resetAllForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAllForAllPlayers', array($params)); + } + /** + * Resets all player progress on the quest with the given ID for all players. + * This method is only available to user accounts for your developer console. + * Only draft quests can be reset. (quests.resetForAllPlayers) + * + * @param string $questId + * The ID of the quest. + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($questId, $optParams = array()) + { + $params = array('questId' => $questId); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } + /** + * Resets quests with the given IDs for all players. This method is only + * available to user accounts for your developer console. Only draft quests may + * be reset. (quests.resetMultipleForAllPlayers) + * + * @param Google_QuestsResetMultipleForAllRequest $postBody + * @param array $optParams Optional parameters. + */ + public function resetMultipleForAllPlayers(Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resetMultipleForAllPlayers', array($params)); + } } /** @@ -563,6 +695,19 @@ public function reset($optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** + * Deletes rooms where the only room participants are from whitelisted tester + * accounts for your application. This method is only available to user accounts + * for your developer console. (rooms.resetForAllPlayers) + * + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } } /** @@ -577,9 +722,9 @@ class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Reso { /** - * Reset scores for the specified leaderboard for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (scores.reset) + * Resets scores for the leaderboard with the given ID for the currently + * authenticated player. This method is only accessible to whitelisted tester + * accounts for your application. (scores.reset) * * @param string $leaderboardId * The ID of the leaderboard. @@ -593,9 +738,36 @@ public function reset($leaderboardId, $optParams = array()) return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); } /** - * Reset scores for the specified leaderboard for all players. This method is - * only available to user accounts for your developer console. Only draft - * leaderboards can be reset. (scores.resetForAllPlayers) + * Resets all scores for all leaderboards for the currently authenticated + * players. This method is only accessible to whitelisted tester accounts for + * your application. (scores.resetAll) + * + * @param array $optParams Optional parameters. + * @return Google_Service_GamesManagement_PlayerScoreResetAllResponse + */ + public function resetAll($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse"); + } + /** + * Resets scores for all draft leaderboards for all players. This method is only + * available to user accounts for your developer console. + * (scores.resetAllForAllPlayers) + * + * @param array $optParams Optional parameters. + */ + public function resetAllForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAllForAllPlayers', array($params)); + } + /** + * Resets scores for the leaderboard with the given ID for all players. This + * method is only available to user accounts for your developer console. Only + * draft leaderboards can be reset. (scores.resetForAllPlayers) * * @param string $leaderboardId * The ID of the leaderboard. @@ -607,6 +779,20 @@ public function resetForAllPlayers($leaderboardId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** + * Resets scores for the leaderboards with the given IDs for all players. This + * method is only available to user accounts for your developer console. Only + * draft leaderboards may be reset. (scores.resetMultipleForAllPlayers) + * + * @param Google_ScoresResetMultipleForAllRequest $postBody + * @param array $optParams Optional parameters. + */ + public function resetMultipleForAllPlayers(Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resetMultipleForAllPlayers', array($params)); + } } /** @@ -632,6 +818,20 @@ public function reset($optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** + * Deletes turn-based matches where the only match participants are from + * whitelisted tester accounts for your application. This method is only + * available to user accounts for your developer console. + * (turnBasedMatches.resetForAllPlayers) + * + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } } @@ -655,7 +855,6 @@ public function getKind() { return $this->kind; } - public function setResults($results) { $this->results = $results; @@ -665,6 +864,7 @@ public function getResults() { return $this->results; } + } class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection @@ -685,7 +885,6 @@ public function getAchievementIds() { return $this->achievementIds; } - public function setKind($kind) { $this->kind = $kind; @@ -695,6 +894,7 @@ public function getKind() { return $this->kind; } + } class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model @@ -715,7 +915,6 @@ public function getCurrentState() { return $this->currentState; } - public function setDefinitionId($definitionId) { $this->definitionId = $definitionId; @@ -725,7 +924,6 @@ public function getDefinitionId() { return $this->definitionId; } - public function setKind($kind) { $this->kind = $kind; @@ -735,7 +933,6 @@ public function getKind() { return $this->kind; } - public function setUpdateOccurred($updateOccurred) { $this->updateOccurred = $updateOccurred; @@ -745,6 +942,37 @@ public function getUpdateOccurred() { return $this->updateOccurred; } + +} + +class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection +{ + protected $collection_key = 'event_ids'; + protected $internal_gapi_mappings = array( + "eventIds" => "event_ids", + ); + public $eventIds; + public $kind; + + public function setEventIds($eventIds) + { + $this->eventIds = $eventIds; + } + + public function getEventIds() + { + return $this->eventIds; + } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + } class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model @@ -763,7 +991,6 @@ public function getAutoMatched() { return $this->autoMatched; } - public function setTimeMillis($timeMillis) { $this->timeMillis = $timeMillis; @@ -773,6 +1000,7 @@ public function getTimeMillis() { return $this->timeMillis; } + } class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model @@ -795,7 +1023,6 @@ public function getCurrentExperiencePoints() { return $this->currentExperiencePoints; } - public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) { $this->currentLevel = $currentLevel; @@ -805,7 +1032,6 @@ public function getCurrentLevel() { return $this->currentLevel; } - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; @@ -815,7 +1041,6 @@ public function getLastLevelUpTimestampMillis() { return $this->lastLevelUpTimestampMillis; } - public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) { $this->nextLevel = $nextLevel; @@ -825,6 +1050,7 @@ public function getNextLevel() { return $this->nextLevel; } + } class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model @@ -844,7 +1070,6 @@ public function getLevel() { return $this->level; } - public function setMaxExperiencePoints($maxExperiencePoints) { $this->maxExperiencePoints = $maxExperiencePoints; @@ -854,7 +1079,6 @@ public function getMaxExperiencePoints() { return $this->maxExperiencePoints; } - public function setMinExperiencePoints($minExperiencePoints) { $this->minExperiencePoints = $minExperiencePoints; @@ -864,6 +1088,7 @@ public function getMinExperiencePoints() { return $this->minExperiencePoints; } + } class Google_Service_GamesManagement_HiddenPlayer extends Google_Model @@ -884,7 +1109,6 @@ public function getHiddenTimeMillis() { return $this->hiddenTimeMillis; } - public function setKind($kind) { $this->kind = $kind; @@ -894,7 +1118,6 @@ public function getKind() { return $this->kind; } - public function setPlayer(Google_Service_GamesManagement_Player $player) { $this->player = $player; @@ -904,6 +1127,7 @@ public function getPlayer() { return $this->player; } + } class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection @@ -925,7 +1149,6 @@ public function getItems() { return $this->items; } - public function setKind($kind) { $this->kind = $kind; @@ -935,7 +1158,6 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -945,6 +1167,7 @@ public function getNextPageToken() { return $this->nextPageToken; } + } class Google_Service_GamesManagement_Player extends Google_Model @@ -972,7 +1195,6 @@ public function getAvatarImageUrl() { return $this->avatarImageUrl; } - public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -982,7 +1204,6 @@ public function getDisplayName() { return $this->displayName; } - public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) { $this->experienceInfo = $experienceInfo; @@ -992,7 +1213,6 @@ public function getExperienceInfo() { return $this->experienceInfo; } - public function setKind($kind) { $this->kind = $kind; @@ -1002,7 +1222,6 @@ public function getKind() { return $this->kind; } - public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) { $this->lastPlayedWith = $lastPlayedWith; @@ -1012,7 +1231,6 @@ public function getLastPlayedWith() { return $this->lastPlayedWith; } - public function setName(Google_Service_GamesManagement_PlayerName $name) { $this->name = $name; @@ -1022,7 +1240,6 @@ public function getName() { return $this->name; } - public function setPlayerId($playerId) { $this->playerId = $playerId; @@ -1032,7 +1249,6 @@ public function getPlayerId() { return $this->playerId; } - public function setTitle($title) { $this->title = $title; @@ -1042,6 +1258,7 @@ public function getTitle() { return $this->title; } + } class Google_Service_GamesManagement_PlayerName extends Google_Model @@ -1060,7 +1277,6 @@ public function getFamilyName() { return $this->familyName; } - public function setGivenName($givenName) { $this->givenName = $givenName; @@ -1070,6 +1286,37 @@ public function getGivenName() { return $this->givenName; } + +} + +class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection +{ + protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse'; + protected $resultsDataType = 'array'; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setResults($results) + { + $this->results = $results; + } + + public function getResults() + { + return $this->results; + } + } class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection @@ -1077,9 +1324,19 @@ class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Col protected $collection_key = 'resetScoreTimeSpans'; protected $internal_gapi_mappings = array( ); + public $definitionId; public $kind; public $resetScoreTimeSpans; + public function setDefinitionId($definitionId) + { + $this->definitionId = $definitionId; + } + + public function getDefinitionId() + { + return $this->definitionId; + } public function setKind($kind) { $this->kind = $kind; @@ -1089,7 +1346,6 @@ public function getKind() { return $this->kind; } - public function setResetScoreTimeSpans($resetScoreTimeSpans) { $this->resetScoreTimeSpans = $resetScoreTimeSpans; @@ -1099,4 +1355,65 @@ public function getResetScoreTimeSpans() { return $this->resetScoreTimeSpans; } + +} + +class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection +{ + protected $collection_key = 'quest_ids'; + protected $internal_gapi_mappings = array( + "questIds" => "quest_ids", + ); + public $kind; + public $questIds; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setQuestIds($questIds) + { + $this->questIds = $questIds; + } + + public function getQuestIds() + { + return $this->questIds; + } + +} + +class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection +{ + protected $collection_key = 'leaderboard_ids'; + protected $internal_gapi_mappings = array( + "leaderboardIds" => "leaderboard_ids", + ); + public $kind; + public $leaderboardIds; + + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setLeaderboardIds($leaderboardIds) + { + $this->leaderboardIds = $leaderboardIds; + } + + public function getLeaderboardIds() + { + return $this->leaderboardIds; + } + } From 89e1559f647d193ba6a92324f50f0250220e704a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 26 Oct 2014 02:42:20 -0700 Subject: [PATCH 0426/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 5acd344a4..b8463a18c 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -1581,6 +1581,8 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection ); protected $contestsType = 'Google_Service_CivicInfo_Contest'; protected $contestsDataType = 'array'; + protected $dropOffLocationsType = 'Google_Service_CivicInfo_PollingLocation'; + protected $dropOffLocationsDataType = 'array'; protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; protected $earlyVoteSitesDataType = 'array'; protected $electionType = 'Google_Service_CivicInfo_Election'; @@ -1605,6 +1607,15 @@ public function getContests() { return $this->contests; } + public function setDropOffLocations($dropOffLocations) + { + $this->dropOffLocations = $dropOffLocations; + } + + public function getDropOffLocations() + { + return $this->dropOffLocations; + } public function setEarlyVoteSites($earlyVoteSites) { $this->earlyVoteSites = $earlyVoteSites; From 3fb81615131e543d2b0c52f22837ece41ffae95c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 28 Oct 2014 02:45:31 -0700 Subject: [PATCH 0427/1274] Added service TagManager.php --- src/Google/Service/TagManager.php | 3503 +++++++++++++++++++++++++++++ 1 file changed, 3503 insertions(+) create mode 100644 src/Google/Service/TagManager.php diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php new file mode 100644 index 000000000..fc8ae4dba --- /dev/null +++ b/src/Google/Service/TagManager.php @@ -0,0 +1,3503 @@ + + * API for accessing Tag Manager accounts and containers. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_TagManager extends Google_Service +{ + /** Delete your Google Tag Manager containers. */ + const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; + /** Manage your Google Tag Manager containers. */ + const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; + /** Manage your Google Tag Manager container versions. */ + const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; + /** Manage your Google Tag Manager accounts. */ + const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; + /** Manage user permissions of your Google Tag Manager data. */ + const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; + /** Publish your Google Tag Manager containers. */ + const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; + /** View your Google Tag Manager containers. */ + const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; + + public $accounts; + public $accounts_containers; + public $accounts_containers_macros; + public $accounts_containers_rules; + public $accounts_containers_tags; + public $accounts_containers_triggers; + public $accounts_containers_variables; + public $accounts_containers_versions; + public $accounts_permissions; + + + /** + * Constructs the internal representation of the TagManager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'tagmanager/v1/'; + $this->version = 'v1'; + $this->serviceName = 'tagmanager'; + + $this->accounts = new Google_Service_TagManager_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'update' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers = new Google_Service_TagManager_AccountsContainers_Resource( + $this, + $this->serviceName, + 'containers', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_macros = new Google_Service_TagManager_AccountsContainersMacros_Resource( + $this, + $this->serviceName, + 'macros', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'macroId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_rules = new Google_Service_TagManager_AccountsContainersRules_Resource( + $this, + $this->serviceName, + 'rules', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_tags = new Google_Service_TagManager_AccountsContainersTags_Resource( + $this, + $this->serviceName, + 'tags', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_triggers = new Google_Service_TagManager_AccountsContainersTriggers_Resource( + $this, + $this->serviceName, + 'triggers', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'triggerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_variables = new Google_Service_TagManager_AccountsContainersVariables_Resource( + $this, + $this->serviceName, + 'variables', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'variableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_containers_versions = new Google_Service_TagManager_AccountsContainersVersions_Resource( + $this, + $this->serviceName, + 'versions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'headers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'publish' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'restore' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'undelete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerVersionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_permissions = new Google_Service_TagManager_AccountsPermissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/permissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/permissions/{permissionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $accounts = $tagmanagerService->accounts; + * + */ +class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Gets a GTM Account. (accounts.get) + * + * @param string $accountId + * The GTM Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Account + */ + public function get($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Account"); + } + /** + * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) + * + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListAccountsResponse + */ + public function listAccounts($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse"); + } + /** + * Updates a GTM Account. (accounts.update) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the account in storage. + * @return Google_Service_TagManager_Account + */ + public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Account"); + } +} + +/** + * The "containers" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $containers = $tagmanagerService->containers; + * + */ +class Google_Service_TagManager_AccountsContainers_Resource extends Google_Service_Resource +{ + + /** + * Creates a Container. (containers.create) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_Container $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Container + */ + public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Container"); + } + /** + * Deletes a Container. (containers.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a Container. (containers.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Container + */ + public function get($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Container"); + } + /** + * Lists all Containers that belongs to a GTM Account. + * (containers.listAccountsContainers) + * + * @param string $accountId + * The GTM Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListContainersResponse + */ + public function listAccountsContainers($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse"); + } + /** + * Updates a Container. (containers.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Container $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container in storage. + * @return Google_Service_TagManager_Container + */ + public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Container"); + } +} + +/** + * The "macros" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $macros = $tagmanagerService->macros; + * + */ +class Google_Service_TagManager_AccountsContainersMacros_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Macro. (macros.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Macro $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Macro + */ + public function create($accountId, $containerId, Google_Service_TagManager_Macro $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Macro"); + } + /** + * Deletes a GTM Macro. (macros.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $macroId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Macro. (macros.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Macro + */ + public function get($accountId, $containerId, $macroId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Macro"); + } + /** + * Lists all GTM Macros of a Container. (macros.listAccountsContainersMacros) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListMacrosResponse + */ + public function listAccountsContainersMacros($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListMacrosResponse"); + } + /** + * Updates a GTM Macro. (macros.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $macroId + * The GTM Macro ID. + * @param Google_Macro $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the macro in storage. + * @return Google_Service_TagManager_Macro + */ + public function update($accountId, $containerId, $macroId, Google_Service_TagManager_Macro $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Macro"); + } +} +/** + * The "rules" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $rules = $tagmanagerService->rules; + * + */ +class Google_Service_TagManager_AccountsContainersRules_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Rule. (rules.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Rule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Rule + */ + public function create($accountId, $containerId, Google_Service_TagManager_Rule $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Rule"); + } + /** + * Deletes a GTM Rule. (rules.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $ruleId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Rule. (rules.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Rule + */ + public function get($accountId, $containerId, $ruleId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Rule"); + } + /** + * Lists all GTM Rules of a Container. (rules.listAccountsContainersRules) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListRulesResponse + */ + public function listAccountsContainersRules($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListRulesResponse"); + } + /** + * Updates a GTM Rule. (rules.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $ruleId + * The GTM Rule ID. + * @param Google_Rule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the rule in storage. + * @return Google_Service_TagManager_Rule + */ + public function update($accountId, $containerId, $ruleId, Google_Service_TagManager_Rule $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Rule"); + } +} +/** + * The "tags" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $tags = $tagmanagerService->tags; + * + */ +class Google_Service_TagManager_AccountsContainersTags_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Tag. (tags.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Tag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Tag + */ + public function create($accountId, $containerId, Google_Service_TagManager_Tag $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Tag"); + } + /** + * Deletes a GTM Tag. (tags.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $tagId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Tag. (tags.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Tag + */ + public function get($accountId, $containerId, $tagId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Tag"); + } + /** + * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListTagsResponse + */ + public function listAccountsContainersTags($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse"); + } + /** + * Updates a GTM Tag. (tags.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $tagId + * The GTM Tag ID. + * @param Google_Tag $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the tag in storage. + * @return Google_Service_TagManager_Tag + */ + public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Tag"); + } +} +/** + * The "triggers" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $triggers = $tagmanagerService->triggers; + * + */ +class Google_Service_TagManager_AccountsContainersTriggers_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Trigger. (triggers.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Trigger $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Trigger + */ + public function create($accountId, $containerId, Google_Service_TagManager_Trigger $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Trigger"); + } + /** + * Deletes a GTM Trigger. (triggers.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $triggerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Trigger. (triggers.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Trigger + */ + public function get($accountId, $containerId, $triggerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Trigger"); + } + /** + * Lists all GTM Triggers of a Container. + * (triggers.listAccountsContainersTriggers) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListTriggersResponse + */ + public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListTriggersResponse"); + } + /** + * Updates a GTM Trigger. (triggers.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $triggerId + * The GTM Trigger ID. + * @param Google_Trigger $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the trigger in storage. + * @return Google_Service_TagManager_Trigger + */ + public function update($accountId, $containerId, $triggerId, Google_Service_TagManager_Trigger $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Trigger"); + } +} +/** + * The "variables" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $variables = $tagmanagerService->variables; + * + */ +class Google_Service_TagManager_AccountsContainersVariables_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Variable. (variables.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_Variable $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Variable + */ + public function create($accountId, $containerId, Google_Service_TagManager_Variable $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Variable"); + } + /** + * Deletes a GTM Variable. (variables.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $variableId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Variable. (variables.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Variable + */ + public function get($accountId, $containerId, $variableId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Variable"); + } + /** + * Lists all GTM Variables of a Container. + * (variables.listAccountsContainersVariables) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListVariablesResponse + */ + public function listAccountsContainersVariables($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListVariablesResponse"); + } + /** + * Updates a GTM Variable. (variables.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $variableId + * The GTM Variable ID. + * @param Google_Variable $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the variable in storage. + * @return Google_Service_TagManager_Variable + */ + public function update($accountId, $containerId, $variableId, Google_Service_TagManager_Variable $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Variable"); + } +} +/** + * The "versions" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $versions = $tagmanagerService->versions; + * + */ +class Google_Service_TagManager_AccountsContainersVersions_Resource extends Google_Service_Resource +{ + + /** + * Creates a Container Version. (versions.create) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param Google_CreateContainerVersionRequestVersionOptions $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_CreateContainerVersionResponse + */ + public function create($accountId, $containerId, Google_Service_TagManager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_CreateContainerVersionResponse"); + } + /** + * Deletes a Container Version. (versions.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a Container Version. (versions.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. Specify published to retrieve the currently published version. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ContainerVersion + */ + public function get($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_ContainerVersion"); + } + /** + * Lists all Container Versions of a GTM Container. + * (versions.listAccountsContainersVersions) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param array $optParams Optional parameters. + * + * @opt_param bool headers + * Retrieve headers only when true. + * @return Google_Service_TagManager_ListContainerVersionsResponse + */ + public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListContainerVersionsResponse"); + } + /** + * Publishes a Container Version. (versions.publish) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @return Google_Service_TagManager_PublishContainerVersionResponse + */ + public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_TagManager_PublishContainerVersionResponse"); + } + /** + * Restores a Container Version. This will overwrite the container's current + * configuration (including its macros, rules and tags). The operation will not + * have any effect on the version that is being served (i.e. the published + * version). (versions.restore) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ContainerVersion + */ + public function restore($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('restore', array($params), "Google_Service_TagManager_ContainerVersion"); + } + /** + * Undeletes a Container Version. (versions.undelete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ContainerVersion + */ + public function undelete($accountId, $containerId, $containerVersionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_TagManager_ContainerVersion"); + } + /** + * Updates a Container Version. (versions.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $containerId + * The GTM Container ID. + * @param string $containerVersionId + * The GTM Container Version ID. + * @param Google_ContainerVersion $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint + * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @return Google_Service_TagManager_ContainerVersion + */ + public function update($accountId, $containerId, $containerVersionId, Google_Service_TagManager_ContainerVersion $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_ContainerVersion"); + } +} +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $permissions = $tagmanagerService->permissions; + * + */ +class Google_Service_TagManager_AccountsPermissions_Resource extends Google_Service_Resource +{ + + /** + * Creates a user's Account & Container Permissions. (permissions.create) + * + * @param string $accountId + * The GTM Account ID. + * @param Google_UserAccess $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_UserAccess + */ + public function create($accountId, Google_Service_TagManager_UserAccess $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_UserAccess"); + } + /** + * Removes a user from the account, revoking access to it and all of its + * containers. (permissions.delete) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $permissionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a user's Account & Container Permissions. (permissions.get) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_UserAccess + */ + public function get($accountId, $permissionId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_UserAccess"); + } + /** + * List all users that have access to the account along with Account and + * Container Permissions granted to each of them. + * (permissions.listAccountsPermissions) + * + * @param string $accountId + * The GTM Account ID. @required tagmanager.accounts.permissions.list + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListAccountUsersResponse + */ + public function listAccountsPermissions($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListAccountUsersResponse"); + } + /** + * Updates a user's Account & Container Permissions. (permissions.update) + * + * @param string $accountId + * The GTM Account ID. + * @param string $permissionId + * The GTM User ID. + * @param Google_UserAccess $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_UserAccess + */ + public function update($accountId, $permissionId, Google_Service_TagManager_UserAccess $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_UserAccess"); + } +} + + + + +class Google_Service_TagManager_Account extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $fingerprint; + public $name; + public $shareData; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setShareData($shareData) + { + $this->shareData = $shareData; + } + + public function getShareData() + { + return $this->shareData; + } + +} + +class Google_Service_TagManager_AccountAccess extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $permission; + + public function setPermission($permission) + { + $this->permission = $permission; + } + + public function getPermission() + { + return $this->permission; + } + +} + +class Google_Service_TagManager_Condition extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + protected $parameterType = 'Google_Service_TagManager_Parameter'; + protected $parameterDataType = 'array'; + public $type; + + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + +} + +class Google_Service_TagManager_Container extends Google_Collection +{ + protected $collection_key = 'usageContext'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $domainName; + public $fingerprint; + public $name; + public $notes; + public $publicId; + public $timeZoneCountryId; + public $timeZoneId; + public $usageContext; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setDomainName($domainName) + { + $this->domainName = $domainName; + } + + public function getDomainName() + { + return $this->domainName; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setPublicId($publicId) + { + $this->publicId = $publicId; + } + + public function getPublicId() + { + return $this->publicId; + } + public function setTimeZoneCountryId($timeZoneCountryId) + { + $this->timeZoneCountryId = $timeZoneCountryId; + } + + public function getTimeZoneCountryId() + { + return $this->timeZoneCountryId; + } + public function setTimeZoneId($timeZoneId) + { + $this->timeZoneId = $timeZoneId; + } + + public function getTimeZoneId() + { + return $this->timeZoneId; + } + public function setUsageContext($usageContext) + { + $this->usageContext = $usageContext; + } + + public function getUsageContext() + { + return $this->usageContext; + } + +} + +class Google_Service_TagManager_ContainerAccess extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $containerId; + public $permission; + + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setPermission($permission) + { + $this->permission = $permission; + } + + public function getPermission() + { + return $this->permission; + } + +} + +class Google_Service_TagManager_ContainerVersion extends Google_Collection +{ + protected $collection_key = 'variable'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $containerType = 'Google_Service_TagManager_Container'; + protected $containerDataType = ''; + public $containerId; + public $containerVersionId; + public $deleted; + public $fingerprint; + protected $macroType = 'Google_Service_TagManager_Macro'; + protected $macroDataType = 'array'; + public $name; + public $notes; + protected $ruleType = 'Google_Service_TagManager_Rule'; + protected $ruleDataType = 'array'; + protected $tagType = 'Google_Service_TagManager_Tag'; + protected $tagDataType = 'array'; + protected $triggerType = 'Google_Service_TagManager_Trigger'; + protected $triggerDataType = 'array'; + protected $variableType = 'Google_Service_TagManager_Variable'; + protected $variableDataType = 'array'; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainer(Google_Service_TagManager_Container $container) + { + $this->container = $container; + } + + public function getContainer() + { + return $this->container; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setContainerVersionId($containerVersionId) + { + $this->containerVersionId = $containerVersionId; + } + + public function getContainerVersionId() + { + return $this->containerVersionId; + } + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setMacro($macro) + { + $this->macro = $macro; + } + + public function getMacro() + { + return $this->macro; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setRule($rule) + { + $this->rule = $rule; + } + + public function getRule() + { + return $this->rule; + } + public function setTag($tag) + { + $this->tag = $tag; + } + + public function getTag() + { + return $this->tag; + } + public function setTrigger($trigger) + { + $this->trigger = $trigger; + } + + public function getTrigger() + { + return $this->trigger; + } + public function setVariable($variable) + { + $this->variable = $variable; + } + + public function getVariable() + { + return $this->variable; + } + +} + +class Google_Service_TagManager_ContainerVersionHeader extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $containerVersionId; + public $deleted; + public $name; + public $numMacros; + public $numRules; + public $numTags; + public $numTriggers; + public $numVariables; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setContainerVersionId($containerVersionId) + { + $this->containerVersionId = $containerVersionId; + } + + public function getContainerVersionId() + { + return $this->containerVersionId; + } + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + + public function getDeleted() + { + return $this->deleted; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNumMacros($numMacros) + { + $this->numMacros = $numMacros; + } + + public function getNumMacros() + { + return $this->numMacros; + } + public function setNumRules($numRules) + { + $this->numRules = $numRules; + } + + public function getNumRules() + { + return $this->numRules; + } + public function setNumTags($numTags) + { + $this->numTags = $numTags; + } + + public function getNumTags() + { + return $this->numTags; + } + public function setNumTriggers($numTriggers) + { + $this->numTriggers = $numTriggers; + } + + public function getNumTriggers() + { + return $this->numTriggers; + } + public function setNumVariables($numVariables) + { + $this->numVariables = $numVariables; + } + + public function getNumVariables() + { + return $this->numVariables; + } + +} + +class Google_Service_TagManager_CreateContainerVersionRequestVersionOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $notes; + public $quickPreview; + + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setQuickPreview($quickPreview) + { + $this->quickPreview = $quickPreview; + } + + public function getQuickPreview() + { + return $this->quickPreview; + } + +} + +class Google_Service_TagManager_CreateContainerVersionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $compilerError; + protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; + protected $containerVersionDataType = ''; + + public function setCompilerError($compilerError) + { + $this->compilerError = $compilerError; + } + + public function getCompilerError() + { + return $this->compilerError; + } + public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } + +} + +class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collection +{ + protected $collection_key = 'userAccess'; + protected $internal_gapi_mappings = array( + ); + protected $userAccessType = 'Google_Service_TagManager_UserAccess'; + protected $userAccessDataType = 'array'; + + public function setUserAccess($userAccess) + { + $this->userAccess = $userAccess; + } + + public function getUserAccess() + { + return $this->userAccess; + } + +} + +class Google_Service_TagManager_ListAccountsResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_TagManager_Account'; + protected $accountsDataType = 'array'; + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + + public function getAccounts() + { + return $this->accounts; + } + +} + +class Google_Service_TagManager_ListContainerVersionsResponse extends Google_Collection +{ + protected $collection_key = 'containerVersionHeader'; + protected $internal_gapi_mappings = array( + ); + protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; + protected $containerVersionDataType = 'array'; + protected $containerVersionHeaderType = 'Google_Service_TagManager_ContainerVersionHeader'; + protected $containerVersionHeaderDataType = 'array'; + + public function setContainerVersion($containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } + public function setContainerVersionHeader($containerVersionHeader) + { + $this->containerVersionHeader = $containerVersionHeader; + } + + public function getContainerVersionHeader() + { + return $this->containerVersionHeader; + } + +} + +class Google_Service_TagManager_ListContainersResponse extends Google_Collection +{ + protected $collection_key = 'containers'; + protected $internal_gapi_mappings = array( + ); + protected $containersType = 'Google_Service_TagManager_Container'; + protected $containersDataType = 'array'; + + public function setContainers($containers) + { + $this->containers = $containers; + } + + public function getContainers() + { + return $this->containers; + } + +} + +class Google_Service_TagManager_ListMacrosResponse extends Google_Collection +{ + protected $collection_key = 'macros'; + protected $internal_gapi_mappings = array( + ); + protected $macrosType = 'Google_Service_TagManager_Macro'; + protected $macrosDataType = 'array'; + + public function setMacros($macros) + { + $this->macros = $macros; + } + + public function getMacros() + { + return $this->macros; + } + +} + +class Google_Service_TagManager_ListRulesResponse extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + protected $rulesType = 'Google_Service_TagManager_Rule'; + protected $rulesDataType = 'array'; + + public function setRules($rules) + { + $this->rules = $rules; + } + + public function getRules() + { + return $this->rules; + } + +} + +class Google_Service_TagManager_ListTagsResponse extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + protected $tagsType = 'Google_Service_TagManager_Tag'; + protected $tagsDataType = 'array'; + + public function setTags($tags) + { + $this->tags = $tags; + } + + public function getTags() + { + return $this->tags; + } + +} + +class Google_Service_TagManager_ListTriggersResponse extends Google_Collection +{ + protected $collection_key = 'triggers'; + protected $internal_gapi_mappings = array( + ); + protected $triggersType = 'Google_Service_TagManager_Trigger'; + protected $triggersDataType = 'array'; + + public function setTriggers($triggers) + { + $this->triggers = $triggers; + } + + public function getTriggers() + { + return $this->triggers; + } + +} + +class Google_Service_TagManager_ListVariablesResponse extends Google_Collection +{ + protected $collection_key = 'variables'; + protected $internal_gapi_mappings = array( + ); + protected $variablesType = 'Google_Service_TagManager_Variable'; + protected $variablesDataType = 'array'; + + public function setVariables($variables) + { + $this->variables = $variables; + } + + public function getVariables() + { + return $this->variables; + } + +} + +class Google_Service_TagManager_Macro extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $disablingRuleId; + public $enablingRuleId; + public $fingerprint; + public $macroId; + public $name; + public $notes; + protected $parameterType = 'Google_Service_TagManager_Parameter'; + protected $parameterDataType = 'array'; + public $scheduleEndMs; + public $scheduleStartMs; + public $type; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setDisablingRuleId($disablingRuleId) + { + $this->disablingRuleId = $disablingRuleId; + } + + public function getDisablingRuleId() + { + return $this->disablingRuleId; + } + public function setEnablingRuleId($enablingRuleId) + { + $this->enablingRuleId = $enablingRuleId; + } + + public function getEnablingRuleId() + { + return $this->enablingRuleId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setMacroId($macroId) + { + $this->macroId = $macroId; + } + + public function getMacroId() + { + return $this->macroId; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + +} + +class Google_Service_TagManager_Parameter extends Google_Collection +{ + protected $collection_key = 'map'; + protected $internal_gapi_mappings = array( + ); + public $key; + protected $listType = 'Google_Service_TagManager_Parameter'; + protected $listDataType = 'array'; + protected $mapType = 'Google_Service_TagManager_Parameter'; + protected $mapDataType = 'array'; + public $type; + public $value; + + public function setKey($key) + { + $this->key = $key; + } + + public function getKey() + { + return $this->key; + } + public function setList($list) + { + $this->list = $list; + } + + public function getList() + { + return $this->list; + } + public function setMap($map) + { + $this->map = $map; + } + + public function getMap() + { + return $this->map; + } + 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_TagManager_PublishContainerVersionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $compilerError; + protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; + protected $containerVersionDataType = ''; + + public function setCompilerError($compilerError) + { + $this->compilerError = $compilerError; + } + + public function getCompilerError() + { + return $this->compilerError; + } + public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion) + { + $this->containerVersion = $containerVersion; + } + + public function getContainerVersion() + { + return $this->containerVersion; + } + +} + +class Google_Service_TagManager_Rule extends Google_Collection +{ + protected $collection_key = 'condition'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $conditionType = 'Google_Service_TagManager_Condition'; + protected $conditionDataType = 'array'; + public $containerId; + public $fingerprint; + public $name; + public $notes; + public $ruleId; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setCondition($condition) + { + $this->condition = $condition; + } + + public function getCondition() + { + return $this->condition; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setRuleId($ruleId) + { + $this->ruleId = $ruleId; + } + + public function getRuleId() + { + return $this->ruleId; + } + +} + +class Google_Service_TagManager_Tag extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $blockingRuleId; + public $blockingTriggerId; + public $containerId; + protected $dependenciesType = 'Google_Service_TagManager_Parameter'; + protected $dependenciesDataType = ''; + public $fingerprint; + public $firingRuleId; + public $firingTriggerId; + public $liveOnly; + public $name; + public $notes; + protected $parameterType = 'Google_Service_TagManager_Parameter'; + protected $parameterDataType = 'array'; + protected $priorityType = 'Google_Service_TagManager_Parameter'; + protected $priorityDataType = ''; + public $scheduleEndMs; + public $scheduleStartMs; + public $tagId; + public $type; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setBlockingRuleId($blockingRuleId) + { + $this->blockingRuleId = $blockingRuleId; + } + + public function getBlockingRuleId() + { + return $this->blockingRuleId; + } + public function setBlockingTriggerId($blockingTriggerId) + { + $this->blockingTriggerId = $blockingTriggerId; + } + + public function getBlockingTriggerId() + { + return $this->blockingTriggerId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setDependencies(Google_Service_TagManager_Parameter $dependencies) + { + $this->dependencies = $dependencies; + } + + public function getDependencies() + { + return $this->dependencies; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setFiringRuleId($firingRuleId) + { + $this->firingRuleId = $firingRuleId; + } + + public function getFiringRuleId() + { + return $this->firingRuleId; + } + public function setFiringTriggerId($firingTriggerId) + { + $this->firingTriggerId = $firingTriggerId; + } + + public function getFiringTriggerId() + { + return $this->firingTriggerId; + } + public function setLiveOnly($liveOnly) + { + $this->liveOnly = $liveOnly; + } + + public function getLiveOnly() + { + return $this->liveOnly; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + public function setPriority(Google_Service_TagManager_Parameter $priority) + { + $this->priority = $priority; + } + + public function getPriority() + { + return $this->priority; + } + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + public function setTagId($tagId) + { + $this->tagId = $tagId; + } + + public function getTagId() + { + return $this->tagId; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + +} + +class Google_Service_TagManager_Trigger extends Google_Collection +{ + protected $collection_key = 'filter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $autoEventFilterType = 'Google_Service_TagManager_Condition'; + protected $autoEventFilterDataType = 'array'; + protected $checkValidationType = 'Google_Service_TagManager_Parameter'; + protected $checkValidationDataType = ''; + public $containerId; + protected $customEventFilterType = 'Google_Service_TagManager_Condition'; + protected $customEventFilterDataType = 'array'; + protected $enableAllVideosType = 'Google_Service_TagManager_Parameter'; + protected $enableAllVideosDataType = ''; + protected $eventNameType = 'Google_Service_TagManager_Parameter'; + protected $eventNameDataType = ''; + protected $filterType = 'Google_Service_TagManager_Condition'; + protected $filterDataType = 'array'; + public $fingerprint; + protected $intervalType = 'Google_Service_TagManager_Parameter'; + protected $intervalDataType = ''; + protected $limitType = 'Google_Service_TagManager_Parameter'; + protected $limitDataType = ''; + public $name; + public $triggerId; + public $type; + protected $uniqueTriggerIdType = 'Google_Service_TagManager_Parameter'; + protected $uniqueTriggerIdDataType = ''; + protected $videoPercentageListType = 'Google_Service_TagManager_Parameter'; + protected $videoPercentageListDataType = ''; + protected $waitForTagsType = 'Google_Service_TagManager_Parameter'; + protected $waitForTagsDataType = ''; + protected $waitForTagsTimeoutType = 'Google_Service_TagManager_Parameter'; + protected $waitForTagsTimeoutDataType = ''; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setAutoEventFilter($autoEventFilter) + { + $this->autoEventFilter = $autoEventFilter; + } + + public function getAutoEventFilter() + { + return $this->autoEventFilter; + } + public function setCheckValidation(Google_Service_TagManager_Parameter $checkValidation) + { + $this->checkValidation = $checkValidation; + } + + public function getCheckValidation() + { + return $this->checkValidation; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setCustomEventFilter($customEventFilter) + { + $this->customEventFilter = $customEventFilter; + } + + public function getCustomEventFilter() + { + return $this->customEventFilter; + } + public function setEnableAllVideos(Google_Service_TagManager_Parameter $enableAllVideos) + { + $this->enableAllVideos = $enableAllVideos; + } + + public function getEnableAllVideos() + { + return $this->enableAllVideos; + } + public function setEventName(Google_Service_TagManager_Parameter $eventName) + { + $this->eventName = $eventName; + } + + public function getEventName() + { + return $this->eventName; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + + public function getFilter() + { + return $this->filter; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setInterval(Google_Service_TagManager_Parameter $interval) + { + $this->interval = $interval; + } + + public function getInterval() + { + return $this->interval; + } + public function setLimit(Google_Service_TagManager_Parameter $limit) + { + $this->limit = $limit; + } + + public function getLimit() + { + return $this->limit; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setTriggerId($triggerId) + { + $this->triggerId = $triggerId; + } + + public function getTriggerId() + { + return $this->triggerId; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + public function setUniqueTriggerId(Google_Service_TagManager_Parameter $uniqueTriggerId) + { + $this->uniqueTriggerId = $uniqueTriggerId; + } + + public function getUniqueTriggerId() + { + return $this->uniqueTriggerId; + } + public function setVideoPercentageList(Google_Service_TagManager_Parameter $videoPercentageList) + { + $this->videoPercentageList = $videoPercentageList; + } + + public function getVideoPercentageList() + { + return $this->videoPercentageList; + } + public function setWaitForTags(Google_Service_TagManager_Parameter $waitForTags) + { + $this->waitForTags = $waitForTags; + } + + public function getWaitForTags() + { + return $this->waitForTags; + } + public function setWaitForTagsTimeout(Google_Service_TagManager_Parameter $waitForTagsTimeout) + { + $this->waitForTagsTimeout = $waitForTagsTimeout; + } + + public function getWaitForTagsTimeout() + { + return $this->waitForTagsTimeout; + } + +} + +class Google_Service_TagManager_UserAccess extends Google_Collection +{ + protected $collection_key = 'containerAccess'; + protected $internal_gapi_mappings = array( + ); + protected $accountAccessType = 'Google_Service_TagManager_AccountAccess'; + protected $accountAccessDataType = ''; + public $accountId; + protected $containerAccessType = 'Google_Service_TagManager_ContainerAccess'; + protected $containerAccessDataType = 'array'; + public $emailAddress; + public $permissionId; + + public function setAccountAccess(Google_Service_TagManager_AccountAccess $accountAccess) + { + $this->accountAccess = $accountAccess; + } + + public function getAccountAccess() + { + return $this->accountAccess; + } + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainerAccess($containerAccess) + { + $this->containerAccess = $containerAccess; + } + + public function getContainerAccess() + { + return $this->containerAccess; + } + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() + { + return $this->emailAddress; + } + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + + public function getPermissionId() + { + return $this->permissionId; + } + +} + +class Google_Service_TagManager_Variable extends Google_Collection +{ + protected $collection_key = 'parameter'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $disablingTriggerId; + public $enablingTriggerId; + public $fingerprint; + public $name; + public $notes; + protected $parameterType = 'Google_Service_TagManager_Parameter'; + protected $parameterDataType = 'array'; + public $scheduleEndMs; + public $scheduleStartMs; + public $type; + public $variableId; + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + + public function getContainerId() + { + return $this->containerId; + } + public function setDisablingTriggerId($disablingTriggerId) + { + $this->disablingTriggerId = $disablingTriggerId; + } + + public function getDisablingTriggerId() + { + return $this->disablingTriggerId; + } + public function setEnablingTriggerId($enablingTriggerId) + { + $this->enablingTriggerId = $enablingTriggerId; + } + + public function getEnablingTriggerId() + { + return $this->enablingTriggerId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() + { + return $this->fingerprint; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + + public function getNotes() + { + return $this->notes; + } + public function setParameter($parameter) + { + $this->parameter = $parameter; + } + + public function getParameter() + { + return $this->parameter; + } + public function setScheduleEndMs($scheduleEndMs) + { + $this->scheduleEndMs = $scheduleEndMs; + } + + public function getScheduleEndMs() + { + return $this->scheduleEndMs; + } + public function setScheduleStartMs($scheduleStartMs) + { + $this->scheduleStartMs = $scheduleStartMs; + } + + public function getScheduleStartMs() + { + return $this->scheduleStartMs; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + public function setVariableId($variableId) + { + $this->variableId = $variableId; + } + + public function getVariableId() + { + return $this->variableId; + } + +} From d68e3e99b8c28b59e11857bff26b3406e2544be7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 28 Oct 2014 02:45:32 -0700 Subject: [PATCH 0428/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index a63d70778..7e634c25e 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -3039,6 +3039,24 @@ public function getVisibility() } +class Google_Service_Calendar_EventAttachment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $title; + + public function setTitle($title) + { + $this->title = $title; + } + + public function getTitle() + { + return $this->title; + } + +} + class Google_Service_Calendar_EventAttendee extends Google_Model { protected $internal_gapi_mappings = array( From 731c774d79c109eac44a19d0f3aa8caf8736e25b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 28 Oct 2014 02:45:32 -0700 Subject: [PATCH 0429/1274] Removed Tagmanager.php --- src/Google/Service/Tagmanager.php | 3482 ----------------------------- 1 file changed, 3482 deletions(-) delete mode 100644 src/Google/Service/Tagmanager.php diff --git a/src/Google/Service/Tagmanager.php b/src/Google/Service/Tagmanager.php deleted file mode 100644 index cb4452d06..000000000 --- a/src/Google/Service/Tagmanager.php +++ /dev/null @@ -1,3482 +0,0 @@ - - * API for accessing Tag Manager accounts and containers. - *

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Tagmanager extends Google_Service -{ - /** Delete your Google Tag Manager containers. */ - const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; - /** Manage your Google Tag Manager containers. */ - const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; - /** Manage your Google Tag Manager container versions. */ - const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; - /** Manage your Google Tag Manager accounts. */ - const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; - /** Manage user permissions of your Google Tag Manager data. */ - const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; - /** Publish your Google Tag Manager containers. */ - const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; - /** View your Google Tag Manager containers. */ - const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; - - public $accounts; - public $accounts_containers; - public $accounts_containers_macros; - public $accounts_containers_rules; - public $accounts_containers_tags; - public $accounts_containers_triggers; - public $accounts_containers_variables; - public $accounts_containers_versions; - public $accounts_permissions; - - - /** - * Constructs the internal representation of the Tagmanager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'tagmanager/v1/'; - $this->version = 'v1'; - $this->serviceName = 'tagmanager'; - - $this->accounts = new Google_Service_Tagmanager_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'update' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers = new Google_Service_Tagmanager_AccountsContainers_Resource( - $this, - $this->serviceName, - 'containers', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_macros = new Google_Service_Tagmanager_AccountsContainersMacros_Resource( - $this, - $this->serviceName, - 'macros', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'macroId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'macroId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'macroId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_rules = new Google_Service_Tagmanager_AccountsContainersRules_Resource( - $this, - $this->serviceName, - 'rules', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_tags = new Google_Service_Tagmanager_AccountsContainersTags_Resource( - $this, - $this->serviceName, - 'tags', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_triggers = new Google_Service_Tagmanager_AccountsContainersTriggers_Resource( - $this, - $this->serviceName, - 'triggers', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_variables = new Google_Service_Tagmanager_AccountsContainersVariables_Resource( - $this, - $this->serviceName, - 'variables', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_versions = new Google_Service_Tagmanager_AccountsContainersVersions_Resource( - $this, - $this->serviceName, - 'versions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'headers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'restore' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_permissions = new Google_Service_Tagmanager_AccountsPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/permissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $accounts = $tagmanagerService->accounts; - * - */ -class Google_Service_Tagmanager_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Gets a GTM Account. (accounts.get) - * - * @param string $accountId - * The GTM Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Account"); - } - /** - * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListAccountsResponse - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountsResponse"); - } - /** - * Updates a GTM Account. (accounts.update) - * - * @param string $accountId - * The GTM Account ID. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the account in storage. - * @return Google_Service_Tagmanager_Account - */ - public function update($accountId, Google_Service_Tagmanager_Account $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Account"); - } -} - -/** - * The "containers" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $containers = $tagmanagerService->containers; - * - */ -class Google_Service_Tagmanager_AccountsContainers_Resource extends Google_Service_Resource -{ - - /** - * Creates a Container. (containers.create) - * - * @param string $accountId - * The GTM Account ID. - * @param Google_Container $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Container - */ - public function create($accountId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Container"); - } - /** - * Deletes a Container. (containers.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a Container. (containers.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Container - */ - public function get($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Container"); - } - /** - * Lists all Containers that belongs to a GTM Account. - * (containers.listAccountsContainers) - * - * @param string $accountId - * The GTM Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListContainersResponse - */ - public function listAccountsContainers($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainersResponse"); - } - /** - * Updates a Container. (containers.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Container $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container in storage. - * @return Google_Service_Tagmanager_Container - */ - public function update($accountId, $containerId, Google_Service_Tagmanager_Container $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Container"); - } -} - -/** - * The "macros" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $macros = $tagmanagerService->macros; - * - */ -class Google_Service_Tagmanager_AccountsContainersMacros_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Macro. (macros.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Macro $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Macro - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Macro"); - } - /** - * Deletes a GTM Macro. (macros.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $macroId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a GTM Macro. (macros.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Macro - */ - public function get($accountId, $containerId, $macroId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Macro"); - } - /** - * Lists all GTM Macros of a Container. (macros.listAccountsContainersMacros) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListMacrosResponse - */ - public function listAccountsContainersMacros($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListMacrosResponse"); - } - /** - * Updates a GTM Macro. (macros.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. - * @param Google_Macro $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the macro in storage. - * @return Google_Service_Tagmanager_Macro - */ - public function update($accountId, $containerId, $macroId, Google_Service_Tagmanager_Macro $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Macro"); - } -} -/** - * The "rules" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $rules = $tagmanagerService->rules; - * - */ -class Google_Service_Tagmanager_AccountsContainersRules_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Rule. (rules.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Rule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Rule - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Rule"); - } - /** - * Deletes a GTM Rule. (rules.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $ruleId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a GTM Rule. (rules.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Rule - */ - public function get($accountId, $containerId, $ruleId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Rule"); - } - /** - * Lists all GTM Rules of a Container. (rules.listAccountsContainersRules) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListRulesResponse - */ - public function listAccountsContainersRules($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListRulesResponse"); - } - /** - * Updates a GTM Rule. (rules.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. - * @param Google_Rule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the rule in storage. - * @return Google_Service_Tagmanager_Rule - */ - public function update($accountId, $containerId, $ruleId, Google_Service_Tagmanager_Rule $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Rule"); - } -} -/** - * The "tags" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $tags = $tagmanagerService->tags; - * - */ -class Google_Service_Tagmanager_AccountsContainersTags_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Tag. (tags.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Tag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Tag - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Tag"); - } - /** - * Deletes a GTM Tag. (tags.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $tagId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a GTM Tag. (tags.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Tag - */ - public function get($accountId, $containerId, $tagId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Tag"); - } - /** - * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListTagsResponse - */ - public function listAccountsContainersTags($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListTagsResponse"); - } - /** - * Updates a GTM Tag. (tags.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. - * @param Google_Tag $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the tag in storage. - * @return Google_Service_Tagmanager_Tag - */ - public function update($accountId, $containerId, $tagId, Google_Service_Tagmanager_Tag $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Tag"); - } -} -/** - * The "triggers" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $triggers = $tagmanagerService->triggers; - * - */ -class Google_Service_Tagmanager_AccountsContainersTriggers_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Trigger. (triggers.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Trigger $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Trigger - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Trigger"); - } - /** - * Deletes a GTM Trigger. (triggers.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $triggerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a GTM Trigger. (triggers.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Trigger - */ - public function get($accountId, $containerId, $triggerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Trigger"); - } - /** - * Lists all GTM Triggers of a Container. - * (triggers.listAccountsContainersTriggers) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListTriggersResponse - */ - public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListTriggersResponse"); - } - /** - * Updates a GTM Trigger. (triggers.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. - * @param Google_Trigger $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the trigger in storage. - * @return Google_Service_Tagmanager_Trigger - */ - public function update($accountId, $containerId, $triggerId, Google_Service_Tagmanager_Trigger $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Trigger"); - } -} -/** - * The "variables" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $variables = $tagmanagerService->variables; - * - */ -class Google_Service_Tagmanager_AccountsContainersVariables_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Variable. (variables.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_Variable $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Variable - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_Variable"); - } - /** - * Deletes a GTM Variable. (variables.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $variableId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a GTM Variable. (variables.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_Variable - */ - public function get($accountId, $containerId, $variableId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_Variable"); - } - /** - * Lists all GTM Variables of a Container. - * (variables.listAccountsContainersVariables) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListVariablesResponse - */ - public function listAccountsContainersVariables($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListVariablesResponse"); - } - /** - * Updates a GTM Variable. (variables.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. - * @param Google_Variable $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the variable in storage. - * @return Google_Service_Tagmanager_Variable - */ - public function update($accountId, $containerId, $variableId, Google_Service_Tagmanager_Variable $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_Variable"); - } -} -/** - * The "versions" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $versions = $tagmanagerService->versions; - * - */ -class Google_Service_Tagmanager_AccountsContainersVersions_Resource extends Google_Service_Resource -{ - - /** - * Creates a Container Version. (versions.create) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param Google_CreateContainerVersionRequestVersionOptions $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_CreateContainerVersionResponse - */ - public function create($accountId, $containerId, Google_Service_Tagmanager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_CreateContainerVersionResponse"); - } - /** - * Deletes a Container Version. (versions.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a Container Version. (versions.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. Specify published to retrieve the currently published version. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ContainerVersion - */ - public function get($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_ContainerVersion"); - } - /** - * Lists all Container Versions of a GTM Container. - * (versions.listAccountsContainersVersions) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param array $optParams Optional parameters. - * - * @opt_param bool headers - * Retrieve headers only when true. - * @return Google_Service_Tagmanager_ListContainerVersionsResponse - */ - public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListContainerVersionsResponse"); - } - /** - * Publishes a Container Version. (versions.publish) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container version in storage. - * @return Google_Service_Tagmanager_PublishContainerVersionResponse - */ - public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Tagmanager_PublishContainerVersionResponse"); - } - /** - * Restores a Container Version. This will overwrite the container's current - * configuration (including its macros, rules and tags). The operation will not - * have any effect on the version that is being served (i.e. the published - * version). (versions.restore) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ContainerVersion - */ - public function restore($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('restore', array($params), "Google_Service_Tagmanager_ContainerVersion"); - } - /** - * Undeletes a Container Version. (versions.undelete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ContainerVersion - */ - public function undelete($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Tagmanager_ContainerVersion"); - } - /** - * Updates a Container Version. (versions.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. - * @param Google_ContainerVersion $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container version in storage. - * @return Google_Service_Tagmanager_ContainerVersion - */ - public function update($accountId, $containerId, $containerVersionId, Google_Service_Tagmanager_ContainerVersion $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_ContainerVersion"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_Tagmanager(...); - * $permissions = $tagmanagerService->permissions; - * - */ -class Google_Service_Tagmanager_AccountsPermissions_Resource extends Google_Service_Resource -{ - - /** - * Creates a user's Account & Container Permissions. (permissions.create) - * - * @param string $accountId - * The GTM Account ID. - * @param Google_UserAccess $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_UserAccess - */ - public function create($accountId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Tagmanager_UserAccess"); - } - /** - * Removes a user from the account, revoking access to it and all of its - * containers. (permissions.delete) - * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $permissionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a user's Account & Container Permissions. (permissions.get) - * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_UserAccess - */ - public function get($accountId, $permissionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tagmanager_UserAccess"); - } - /** - * List all users that have access to the account along with Account and - * Container Permissions granted to each of them. - * (permissions.listAccountsPermissions) - * - * @param string $accountId - * The GTM Account ID. @required tagmanager.accounts.permissions.list - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_ListAccountUsersResponse - */ - public function listAccountsPermissions($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tagmanager_ListAccountUsersResponse"); - } - /** - * Updates a user's Account & Container Permissions. (permissions.update) - * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. - * @param Google_UserAccess $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tagmanager_UserAccess - */ - public function update($accountId, $permissionId, Google_Service_Tagmanager_UserAccess $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tagmanager_UserAccess"); - } -} - - - - -class Google_Service_Tagmanager_Account extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $fingerprint; - public $name; - public $shareData; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setShareData($shareData) - { - $this->shareData = $shareData; - } - - public function getShareData() - { - return $this->shareData; - } - -} - -class Google_Service_Tagmanager_AccountAccess extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $permission; - - public function setPermission($permission) - { - $this->permission = $permission; - } - - public function getPermission() - { - return $this->permission; - } - -} - -class Google_Service_Tagmanager_Condition extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - protected $parameterType = 'Google_Service_Tagmanager_Parameter'; - protected $parameterDataType = 'array'; - public $type; - - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - - public function getParameter() - { - return $this->parameter; - } - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - -} - -class Google_Service_Tagmanager_Container extends Google_Collection -{ - protected $collection_key = 'usageContext'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $domainName; - public $fingerprint; - public $name; - public $notes; - public $publicId; - public $timeZoneCountryId; - public $timeZoneId; - public $usageContext; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setDomainName($domainName) - { - $this->domainName = $domainName; - } - - public function getDomainName() - { - return $this->domainName; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setPublicId($publicId) - { - $this->publicId = $publicId; - } - - public function getPublicId() - { - return $this->publicId; - } - public function setTimeZoneCountryId($timeZoneCountryId) - { - $this->timeZoneCountryId = $timeZoneCountryId; - } - - public function getTimeZoneCountryId() - { - return $this->timeZoneCountryId; - } - public function setTimeZoneId($timeZoneId) - { - $this->timeZoneId = $timeZoneId; - } - - public function getTimeZoneId() - { - return $this->timeZoneId; - } - public function setUsageContext($usageContext) - { - $this->usageContext = $usageContext; - } - - public function getUsageContext() - { - return $this->usageContext; - } - -} - -class Google_Service_Tagmanager_ContainerAccess extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $containerId; - public $permission; - - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setPermission($permission) - { - $this->permission = $permission; - } - - public function getPermission() - { - return $this->permission; - } - -} - -class Google_Service_Tagmanager_ContainerVersion extends Google_Collection -{ - protected $collection_key = 'trigger'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $containerType = 'Google_Service_Tagmanager_Container'; - protected $containerDataType = ''; - public $containerId; - public $containerVersionId; - public $deleted; - public $fingerprint; - protected $macroType = 'Google_Service_Tagmanager_Macro'; - protected $macroDataType = 'array'; - public $name; - public $notes; - protected $ruleType = 'Google_Service_Tagmanager_Rule'; - protected $ruleDataType = 'array'; - protected $tagType = 'Google_Service_Tagmanager_Tag'; - protected $tagDataType = 'array'; - protected $triggerType = 'Google_Service_Tagmanager_Trigger'; - protected $triggerDataType = 'array'; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainer(Google_Service_Tagmanager_Container $container) - { - $this->container = $container; - } - - public function getContainer() - { - return $this->container; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setContainerVersionId($containerVersionId) - { - $this->containerVersionId = $containerVersionId; - } - - public function getContainerVersionId() - { - return $this->containerVersionId; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - - public function getDeleted() - { - return $this->deleted; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setMacro($macro) - { - $this->macro = $macro; - } - - public function getMacro() - { - return $this->macro; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setRule($rule) - { - $this->rule = $rule; - } - - public function getRule() - { - return $this->rule; - } - public function setTag($tag) - { - $this->tag = $tag; - } - - public function getTag() - { - return $this->tag; - } - public function setTrigger($trigger) - { - $this->trigger = $trigger; - } - - public function getTrigger() - { - return $this->trigger; - } - -} - -class Google_Service_Tagmanager_ContainerVersionHeader extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $containerVersionId; - public $deleted; - public $name; - public $numMacros; - public $numRules; - public $numTags; - public $numTriggers; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setContainerVersionId($containerVersionId) - { - $this->containerVersionId = $containerVersionId; - } - - public function getContainerVersionId() - { - return $this->containerVersionId; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - - public function getDeleted() - { - return $this->deleted; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNumMacros($numMacros) - { - $this->numMacros = $numMacros; - } - - public function getNumMacros() - { - return $this->numMacros; - } - public function setNumRules($numRules) - { - $this->numRules = $numRules; - } - - public function getNumRules() - { - return $this->numRules; - } - public function setNumTags($numTags) - { - $this->numTags = $numTags; - } - - public function getNumTags() - { - return $this->numTags; - } - public function setNumTriggers($numTriggers) - { - $this->numTriggers = $numTriggers; - } - - public function getNumTriggers() - { - return $this->numTriggers; - } - -} - -class Google_Service_Tagmanager_CreateContainerVersionRequestVersionOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $notes; - public $quickPreview; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setQuickPreview($quickPreview) - { - $this->quickPreview = $quickPreview; - } - - public function getQuickPreview() - { - return $this->quickPreview; - } - -} - -class Google_Service_Tagmanager_CreateContainerVersionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $compilerError; - protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; - protected $containerVersionDataType = ''; - - public function setCompilerError($compilerError) - { - $this->compilerError = $compilerError; - } - - public function getCompilerError() - { - return $this->compilerError; - } - public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) - { - $this->containerVersion = $containerVersion; - } - - public function getContainerVersion() - { - return $this->containerVersion; - } - -} - -class Google_Service_Tagmanager_ListAccountUsersResponse extends Google_Collection -{ - protected $collection_key = 'userAccess'; - protected $internal_gapi_mappings = array( - ); - protected $userAccessType = 'Google_Service_Tagmanager_UserAccess'; - protected $userAccessDataType = 'array'; - - public function setUserAccess($userAccess) - { - $this->userAccess = $userAccess; - } - - public function getUserAccess() - { - return $this->userAccess; - } - -} - -class Google_Service_Tagmanager_ListAccountsResponse extends Google_Collection -{ - protected $collection_key = 'accounts'; - protected $internal_gapi_mappings = array( - ); - protected $accountsType = 'Google_Service_Tagmanager_Account'; - protected $accountsDataType = 'array'; - - public function setAccounts($accounts) - { - $this->accounts = $accounts; - } - - public function getAccounts() - { - return $this->accounts; - } - -} - -class Google_Service_Tagmanager_ListContainerVersionsResponse extends Google_Collection -{ - protected $collection_key = 'containerVersionHeader'; - protected $internal_gapi_mappings = array( - ); - protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; - protected $containerVersionDataType = 'array'; - protected $containerVersionHeaderType = 'Google_Service_Tagmanager_ContainerVersionHeader'; - protected $containerVersionHeaderDataType = 'array'; - - public function setContainerVersion($containerVersion) - { - $this->containerVersion = $containerVersion; - } - - public function getContainerVersion() - { - return $this->containerVersion; - } - public function setContainerVersionHeader($containerVersionHeader) - { - $this->containerVersionHeader = $containerVersionHeader; - } - - public function getContainerVersionHeader() - { - return $this->containerVersionHeader; - } - -} - -class Google_Service_Tagmanager_ListContainersResponse extends Google_Collection -{ - protected $collection_key = 'containers'; - protected $internal_gapi_mappings = array( - ); - protected $containersType = 'Google_Service_Tagmanager_Container'; - protected $containersDataType = 'array'; - - public function setContainers($containers) - { - $this->containers = $containers; - } - - public function getContainers() - { - return $this->containers; - } - -} - -class Google_Service_Tagmanager_ListMacrosResponse extends Google_Collection -{ - protected $collection_key = 'macros'; - protected $internal_gapi_mappings = array( - ); - protected $macrosType = 'Google_Service_Tagmanager_Macro'; - protected $macrosDataType = 'array'; - - public function setMacros($macros) - { - $this->macros = $macros; - } - - public function getMacros() - { - return $this->macros; - } - -} - -class Google_Service_Tagmanager_ListRulesResponse extends Google_Collection -{ - protected $collection_key = 'rules'; - protected $internal_gapi_mappings = array( - ); - protected $rulesType = 'Google_Service_Tagmanager_Rule'; - protected $rulesDataType = 'array'; - - public function setRules($rules) - { - $this->rules = $rules; - } - - public function getRules() - { - return $this->rules; - } - -} - -class Google_Service_Tagmanager_ListTagsResponse extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - protected $tagsType = 'Google_Service_Tagmanager_Tag'; - protected $tagsDataType = 'array'; - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - -} - -class Google_Service_Tagmanager_ListTriggersResponse extends Google_Collection -{ - protected $collection_key = 'triggers'; - protected $internal_gapi_mappings = array( - ); - protected $triggersType = 'Google_Service_Tagmanager_Trigger'; - protected $triggersDataType = 'array'; - - public function setTriggers($triggers) - { - $this->triggers = $triggers; - } - - public function getTriggers() - { - return $this->triggers; - } - -} - -class Google_Service_Tagmanager_ListVariablesResponse extends Google_Collection -{ - protected $collection_key = 'variables'; - protected $internal_gapi_mappings = array( - ); - protected $variablesType = 'Google_Service_Tagmanager_Variable'; - protected $variablesDataType = 'array'; - - public function setVariables($variables) - { - $this->variables = $variables; - } - - public function getVariables() - { - return $this->variables; - } - -} - -class Google_Service_Tagmanager_Macro extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $disablingRuleId; - public $enablingRuleId; - public $fingerprint; - public $macroId; - public $name; - public $notes; - protected $parameterType = 'Google_Service_Tagmanager_Parameter'; - protected $parameterDataType = 'array'; - public $scheduleEndMs; - public $scheduleStartMs; - public $type; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setDisablingRuleId($disablingRuleId) - { - $this->disablingRuleId = $disablingRuleId; - } - - public function getDisablingRuleId() - { - return $this->disablingRuleId; - } - public function setEnablingRuleId($enablingRuleId) - { - $this->enablingRuleId = $enablingRuleId; - } - - public function getEnablingRuleId() - { - return $this->enablingRuleId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setMacroId($macroId) - { - $this->macroId = $macroId; - } - - public function getMacroId() - { - return $this->macroId; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - - public function getParameter() - { - return $this->parameter; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - -} - -class Google_Service_Tagmanager_Parameter extends Google_Collection -{ - protected $collection_key = 'map'; - protected $internal_gapi_mappings = array( - ); - public $key; - protected $listType = 'Google_Service_Tagmanager_Parameter'; - protected $listDataType = 'array'; - protected $mapType = 'Google_Service_Tagmanager_Parameter'; - protected $mapDataType = 'array'; - public $type; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - public function setList($list) - { - $this->list = $list; - } - - public function getList() - { - return $this->list; - } - public function setMap($map) - { - $this->map = $map; - } - - public function getMap() - { - return $this->map; - } - 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_Tagmanager_PublishContainerVersionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $compilerError; - protected $containerVersionType = 'Google_Service_Tagmanager_ContainerVersion'; - protected $containerVersionDataType = ''; - - public function setCompilerError($compilerError) - { - $this->compilerError = $compilerError; - } - - public function getCompilerError() - { - return $this->compilerError; - } - public function setContainerVersion(Google_Service_Tagmanager_ContainerVersion $containerVersion) - { - $this->containerVersion = $containerVersion; - } - - public function getContainerVersion() - { - return $this->containerVersion; - } - -} - -class Google_Service_Tagmanager_Rule extends Google_Collection -{ - protected $collection_key = 'condition'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $conditionType = 'Google_Service_Tagmanager_Condition'; - protected $conditionDataType = 'array'; - public $containerId; - public $fingerprint; - public $name; - public $notes; - public $ruleId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - - public function getCondition() - { - return $this->condition; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setRuleId($ruleId) - { - $this->ruleId = $ruleId; - } - - public function getRuleId() - { - return $this->ruleId; - } - -} - -class Google_Service_Tagmanager_Tag extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $blockingRuleId; - public $blockingTriggerId; - public $containerId; - protected $dependenciesType = 'Google_Service_Tagmanager_Parameter'; - protected $dependenciesDataType = ''; - public $fingerprint; - public $firingRuleId; - public $firingTriggerId; - public $liveOnly; - public $name; - public $notes; - protected $parameterType = 'Google_Service_Tagmanager_Parameter'; - protected $parameterDataType = 'array'; - protected $priorityType = 'Google_Service_Tagmanager_Parameter'; - protected $priorityDataType = ''; - public $scheduleEndMs; - public $scheduleStartMs; - public $tagId; - public $type; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setBlockingRuleId($blockingRuleId) - { - $this->blockingRuleId = $blockingRuleId; - } - - public function getBlockingRuleId() - { - return $this->blockingRuleId; - } - public function setBlockingTriggerId($blockingTriggerId) - { - $this->blockingTriggerId = $blockingTriggerId; - } - - public function getBlockingTriggerId() - { - return $this->blockingTriggerId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setDependencies(Google_Service_Tagmanager_Parameter $dependencies) - { - $this->dependencies = $dependencies; - } - - public function getDependencies() - { - return $this->dependencies; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setFiringRuleId($firingRuleId) - { - $this->firingRuleId = $firingRuleId; - } - - public function getFiringRuleId() - { - return $this->firingRuleId; - } - public function setFiringTriggerId($firingTriggerId) - { - $this->firingTriggerId = $firingTriggerId; - } - - public function getFiringTriggerId() - { - return $this->firingTriggerId; - } - public function setLiveOnly($liveOnly) - { - $this->liveOnly = $liveOnly; - } - - public function getLiveOnly() - { - return $this->liveOnly; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - - public function getParameter() - { - return $this->parameter; - } - public function setPriority(Google_Service_Tagmanager_Parameter $priority) - { - $this->priority = $priority; - } - - public function getPriority() - { - return $this->priority; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setTagId($tagId) - { - $this->tagId = $tagId; - } - - public function getTagId() - { - return $this->tagId; - } - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - -} - -class Google_Service_Tagmanager_Trigger extends Google_Collection -{ - protected $collection_key = 'filter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $autoEventFilterType = 'Google_Service_Tagmanager_Condition'; - protected $autoEventFilterDataType = 'array'; - protected $checkValidationType = 'Google_Service_Tagmanager_Parameter'; - protected $checkValidationDataType = ''; - public $containerId; - protected $customEventFilterType = 'Google_Service_Tagmanager_Condition'; - protected $customEventFilterDataType = 'array'; - protected $enableAllVideosType = 'Google_Service_Tagmanager_Parameter'; - protected $enableAllVideosDataType = ''; - protected $eventNameType = 'Google_Service_Tagmanager_Parameter'; - protected $eventNameDataType = ''; - protected $filterType = 'Google_Service_Tagmanager_Condition'; - protected $filterDataType = 'array'; - public $fingerprint; - protected $intervalType = 'Google_Service_Tagmanager_Parameter'; - protected $intervalDataType = ''; - protected $limitType = 'Google_Service_Tagmanager_Parameter'; - protected $limitDataType = ''; - public $name; - public $triggerId; - public $type; - protected $uniqueTriggerIdType = 'Google_Service_Tagmanager_Parameter'; - protected $uniqueTriggerIdDataType = ''; - protected $videoPercentageListType = 'Google_Service_Tagmanager_Parameter'; - protected $videoPercentageListDataType = ''; - protected $waitForTagsType = 'Google_Service_Tagmanager_Parameter'; - protected $waitForTagsDataType = ''; - protected $waitForTagsTimeoutType = 'Google_Service_Tagmanager_Parameter'; - protected $waitForTagsTimeoutDataType = ''; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setAutoEventFilter($autoEventFilter) - { - $this->autoEventFilter = $autoEventFilter; - } - - public function getAutoEventFilter() - { - return $this->autoEventFilter; - } - public function setCheckValidation(Google_Service_Tagmanager_Parameter $checkValidation) - { - $this->checkValidation = $checkValidation; - } - - public function getCheckValidation() - { - return $this->checkValidation; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setCustomEventFilter($customEventFilter) - { - $this->customEventFilter = $customEventFilter; - } - - public function getCustomEventFilter() - { - return $this->customEventFilter; - } - public function setEnableAllVideos(Google_Service_Tagmanager_Parameter $enableAllVideos) - { - $this->enableAllVideos = $enableAllVideos; - } - - public function getEnableAllVideos() - { - return $this->enableAllVideos; - } - public function setEventName(Google_Service_Tagmanager_Parameter $eventName) - { - $this->eventName = $eventName; - } - - public function getEventName() - { - return $this->eventName; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - - public function getFilter() - { - return $this->filter; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setInterval(Google_Service_Tagmanager_Parameter $interval) - { - $this->interval = $interval; - } - - public function getInterval() - { - return $this->interval; - } - public function setLimit(Google_Service_Tagmanager_Parameter $limit) - { - $this->limit = $limit; - } - - public function getLimit() - { - return $this->limit; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setTriggerId($triggerId) - { - $this->triggerId = $triggerId; - } - - public function getTriggerId() - { - return $this->triggerId; - } - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - public function setUniqueTriggerId(Google_Service_Tagmanager_Parameter $uniqueTriggerId) - { - $this->uniqueTriggerId = $uniqueTriggerId; - } - - public function getUniqueTriggerId() - { - return $this->uniqueTriggerId; - } - public function setVideoPercentageList(Google_Service_Tagmanager_Parameter $videoPercentageList) - { - $this->videoPercentageList = $videoPercentageList; - } - - public function getVideoPercentageList() - { - return $this->videoPercentageList; - } - public function setWaitForTags(Google_Service_Tagmanager_Parameter $waitForTags) - { - $this->waitForTags = $waitForTags; - } - - public function getWaitForTags() - { - return $this->waitForTags; - } - public function setWaitForTagsTimeout(Google_Service_Tagmanager_Parameter $waitForTagsTimeout) - { - $this->waitForTagsTimeout = $waitForTagsTimeout; - } - - public function getWaitForTagsTimeout() - { - return $this->waitForTagsTimeout; - } - -} - -class Google_Service_Tagmanager_UserAccess extends Google_Collection -{ - protected $collection_key = 'containerAccess'; - protected $internal_gapi_mappings = array( - ); - protected $accountAccessType = 'Google_Service_Tagmanager_AccountAccess'; - protected $accountAccessDataType = ''; - public $accountId; - protected $containerAccessType = 'Google_Service_Tagmanager_ContainerAccess'; - protected $containerAccessDataType = 'array'; - public $emailAddress; - public $permissionId; - - public function setAccountAccess(Google_Service_Tagmanager_AccountAccess $accountAccess) - { - $this->accountAccess = $accountAccess; - } - - public function getAccountAccess() - { - return $this->accountAccess; - } - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainerAccess($containerAccess) - { - $this->containerAccess = $containerAccess; - } - - public function getContainerAccess() - { - return $this->containerAccess; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - - public function getPermissionId() - { - return $this->permissionId; - } - -} - -class Google_Service_Tagmanager_Variable extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $disablingTriggerId; - public $enablingTriggerId; - public $fingerprint; - public $name; - public $notes; - protected $parameterType = 'Google_Service_Tagmanager_Parameter'; - protected $parameterDataType = 'array'; - public $scheduleEndMs; - public $scheduleStartMs; - public $type; - public $variableId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - - public function getContainerId() - { - return $this->containerId; - } - public function setDisablingTriggerId($disablingTriggerId) - { - $this->disablingTriggerId = $disablingTriggerId; - } - - public function getDisablingTriggerId() - { - return $this->disablingTriggerId; - } - public function setEnablingTriggerId($enablingTriggerId) - { - $this->enablingTriggerId = $enablingTriggerId; - } - - public function getEnablingTriggerId() - { - return $this->enablingTriggerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - - public function getParameter() - { - return $this->parameter; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - public function setVariableId($variableId) - { - $this->variableId = $variableId; - } - - public function getVariableId() - { - return $this->variableId; - } - -} From d55bb4f920bb60bf43c5b6e6a812a1c98ab6cd43 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 29 Oct 2014 02:47:07 -0700 Subject: [PATCH 0430/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 2185 +++++++++++++++++++------------ 1 file changed, 1361 insertions(+), 824 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 538d451de..dfb9d013a 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Genomics (v1beta). + * Service definition for Genomics (v1beta2). * *

* Provides access to Genomics data. @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -40,14 +40,16 @@ class Google_Service_Genomics extends Google_Service /** View Genomics data. */ const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; - public $beacons; public $callsets; public $datasets; public $experimental_jobs; public $jobs; + public $readgroupsets; + public $readgroupsets_coveragebuckets; public $reads; - public $readsets; - public $readsets_coveragebuckets; + public $references; + public $references_bases; + public $referencesets; public $variants; public $variantsets; @@ -60,42 +62,10 @@ class Google_Service_Genomics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'genomics/v1beta/'; - $this->version = 'v1beta'; + $this->servicePath = 'genomics/v1beta2/'; + $this->version = 'v1beta2'; $this->serviceName = 'genomics'; - $this->beacons = new Google_Service_Genomics_Beacons_Resource( - $this, - $this->serviceName, - 'beacons', - array( - 'methods' => array( - 'get' => array( - 'path' => 'beacons/{variantSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allele' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'referenceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'position' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); $this->callsets = new Google_Service_Genomics_Callsets_Resource( $this, $this->serviceName, @@ -192,13 +162,13 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'projectNumber' => array( 'location' => 'query', 'type' => 'string', ), - 'projectId' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), ), ),'patch' => array( @@ -283,73 +253,59 @@ public function __construct(Google_Client $client) ) ) ); - $this->reads = new Google_Service_Genomics_Reads_Resource( - $this, - $this->serviceName, - 'reads', - array( - 'methods' => array( - 'search' => array( - 'path' => 'reads/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->readsets = new Google_Service_Genomics_Readsets_Resource( + $this->readgroupsets = new Google_Service_Genomics_Readgroupsets_Resource( $this, $this->serviceName, - 'readsets', + 'readgroupsets', array( 'methods' => array( 'delete' => array( - 'path' => 'readsets/{readsetId}', + 'path' => 'readgroupsets/{readGroupSetId}', 'httpMethod' => 'DELETE', 'parameters' => array( - 'readsetId' => array( + 'readGroupSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'export' => array( - 'path' => 'readsets/export', + 'path' => 'readgroupsets/export', 'httpMethod' => 'POST', 'parameters' => array(), ),'get' => array( - 'path' => 'readsets/{readsetId}', + 'path' => 'readgroupsets/{readGroupSetId}', 'httpMethod' => 'GET', 'parameters' => array( - 'readsetId' => array( + 'readGroupSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'import' => array( - 'path' => 'readsets/import', + 'path' => 'readgroupsets/import', 'httpMethod' => 'POST', 'parameters' => array(), ),'patch' => array( - 'path' => 'readsets/{readsetId}', + 'path' => 'readgroupsets/{readGroupSetId}', 'httpMethod' => 'PATCH', 'parameters' => array( - 'readsetId' => array( + 'readGroupSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'search' => array( - 'path' => 'readsets/search', + 'path' => 'readgroupsets/search', 'httpMethod' => 'POST', 'parameters' => array(), ),'update' => array( - 'path' => 'readsets/{readsetId}', + 'path' => 'readgroupsets/{readGroupSetId}', 'httpMethod' => 'PUT', 'parameters' => array( - 'readsetId' => array( + 'readGroupSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -359,30 +315,34 @@ public function __construct(Google_Client $client) ) ) ); - $this->readsets_coveragebuckets = new Google_Service_Genomics_ReadsetsCoveragebuckets_Resource( + $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource( $this, $this->serviceName, 'coveragebuckets', array( 'methods' => array( 'list' => array( - 'path' => 'readsets/{readsetId}/coveragebuckets', + 'path' => 'readgroupsets/{readGroupSetId}/coveragebuckets', 'httpMethod' => 'GET', 'parameters' => array( - 'readsetId' => array( + 'readGroupSetId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'range.sequenceStart' => array( + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'range.start' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'range.end' => array( 'location' => 'query', 'type' => 'string', ), - 'range.sequenceName' => array( + 'range.referenceName' => array( 'location' => 'query', 'type' => 'string', ), @@ -394,11 +354,105 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'range.sequenceEnd' => array( + ), + ), + ) + ) + ); + $this->reads = new Google_Service_Genomics_Reads_Resource( + $this, + $this->serviceName, + 'reads', + array( + 'methods' => array( + 'search' => array( + 'path' => 'reads/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->references = new Google_Service_Genomics_References_Resource( + $this, + $this->serviceName, + 'references', + array( + 'methods' => array( + 'get' => array( + 'path' => 'references/{referenceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'references/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->references_bases = new Google_Service_Genomics_ReferencesBases_Resource( + $this, + $this->serviceName, + 'bases', + array( + 'methods' => array( + 'list' => array( + 'path' => 'references/{referenceId}/bases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'end' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->referencesets = new Google_Service_Genomics_Referencesets_Resource( + $this, + $this->serviceName, + 'referencesets', + array( + 'methods' => array( + 'get' => array( + 'path' => 'referencesets/{referenceSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), + ),'search' => array( + 'path' => 'referencesets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -423,10 +477,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'export' => array( - 'path' => 'variants/export', - 'httpMethod' => 'POST', - 'parameters' => array(), ),'get' => array( 'path' => 'variants/{variantId}', 'httpMethod' => 'GET', @@ -437,10 +487,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'import' => array( - 'path' => 'variants/import', - 'httpMethod' => 'POST', - 'parameters' => array(), ),'search' => array( 'path' => 'variants/search', 'httpMethod' => 'POST', @@ -475,6 +521,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'export' => array( + 'path' => 'variantsets/{variantSetId}/export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'variantsets/{variantSetId}', 'httpMethod' => 'GET', @@ -485,6 +541,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'importVariants' => array( + 'path' => 'variantsets/{variantSetId}/importVariants', + 'httpMethod' => 'POST', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'mergeVariants' => array( 'path' => 'variantsets/{variantSetId}/mergeVariants', 'httpMethod' => 'POST', @@ -527,42 +593,6 @@ public function __construct(Google_Client $client) } -/** - * The "beacons" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $beacons = $genomicsService->beacons; - * - */ -class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource -{ - - /** - * This is an experimental API that provides a Global Alliance for Genomics and - * Health Beacon. It may change at any time. (beacons.get) - * - * @param string $variantSetId - * The ID of the variant set to query over. It must be public. Private variant sets will return an - * unauthorized exception. - * @param array $optParams Optional parameters. - * - * @opt_param string allele - * Required. The allele to look for ('A', 'C', 'G' or 'T'). - * @opt_param string referenceName - * Required. The reference to query over. - * @opt_param string position - * Required. The 0-based position to query. - * @return Google_Service_Genomics_Beacon - */ - public function get($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Beacon"); - } -} - /** * The "callsets" collection of methods. * Typical usage is: @@ -718,11 +748,10 @@ public function get($datasetId, $optParams = array()) * @opt_param string pageToken * The continuation token, which is used to page through large result sets. To get the next page of * results, set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults + * @opt_param string projectNumber + * Only return datasets which belong to this Google Developers Console project. + * @opt_param int pageSize * The maximum number of results returned by this request. - * @opt_param string projectId - * Only return datasets which belong to this Google Developers Console project. Only accepts - * project numbers. Returns all public projects if no project number is specified. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) @@ -874,155 +903,123 @@ public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $opt } /** - * The "reads" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $reads = $genomicsService->reads; - * - */ -class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource -{ - - /** - * Gets a list of reads for one or more readsets. Reads search operates over a - * genomic coordinate space of reference sequence & position defined over the - * reference sequences to which the requested readsets are aligned. If a target - * positional range is specified, search returns all reads whose alignment to - * the reference genome overlap the range. A query which specifies only readset - * IDs yields all reads in those readsets, including unmapped reads. All reads - * returned (including reads on subsequent pages) are ordered by genomic - * coordinate (reference sequence & position). Reads with equivalent genomic - * coordinates are returned in a deterministic order. (reads.search) - * - * @param Google_SearchReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsResponse - */ - public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); - } -} - -/** - * The "readsets" collection of methods. + * The "readgroupsets" collection of methods. * Typical usage is: * * $genomicsService = new Google_Service_Genomics(...); - * $readsets = $genomicsService->readsets; + * $readgroupsets = $genomicsService->readgroupsets; * */ -class Google_Service_Genomics_Readsets_Resource extends Google_Service_Resource +class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Resource { /** - * Deletes a readset. (readsets.delete) + * Deletes a ReadGroupSet. (readgroupsets.delete) * - * @param string $readsetId - * The ID of the readset to be deleted. The caller must have WRITE permissions to the dataset - * associated with this readset. + * @param string $readGroupSetId + * The ID of the read group set to be deleted. The caller must have WRITE permissions to the + * dataset associated with this read group set. * @param array $optParams Optional parameters. */ - public function delete($readsetId, $optParams = array()) + public function delete($readGroupSetId, $optParams = array()) { - $params = array('readsetId' => $readsetId); + $params = array('readGroupSetId' => $readGroupSetId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** - * Exports readsets to a BAM file in Google Cloud Storage. Note that currently - * there may be some differences between exported BAM files and the original BAM - * file at the time of import. In particular, comments in the input file header - * will not be preserved, and some custom tags will be converted to strings. - * (readsets.export) + * Exports ReadGroupSets to a BAM file in Google Cloud Storage. Note that + * currently there may be some differences between exported BAM files and the + * original BAM file at the time of import. In particular, comments in the input + * file header will not be preserved, and some custom tags will be converted to + * strings. (readgroupsets.export) * - * @param Google_ExportReadsetsRequest $postBody + * @param Google_ExportReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportReadsetsResponse + * @return Google_Service_Genomics_ExportReadGroupSetsResponse */ - public function export(Google_Service_Genomics_ExportReadsetsRequest $postBody, $optParams = array()) + public function export(Google_Service_Genomics_ExportReadGroupSetsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportReadsetsResponse"); + return $this->call('export', array($params), "Google_Service_Genomics_ExportReadGroupSetsResponse"); } /** - * Gets a readset by ID. (readsets.get) + * Gets a ReadGroupSet by ID. (readgroupsets.get) * - * @param string $readsetId - * The ID of the readset. + * @param string $readGroupSetId + * The ID of the read group set. * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset + * @return Google_Service_Genomics_ReadGroupSet */ - public function get($readsetId, $optParams = array()) + public function get($readGroupSetId, $optParams = array()) { - $params = array('readsetId' => $readsetId); + $params = array('readGroupSetId' => $readGroupSetId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Readset"); + return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); } /** - * Creates readsets by asynchronously importing the provided information. Note - * that currently comments in the input file header are not imported and some - * custom tags will be converted to strings, rather than preserving tag types. - * The caller must have WRITE permissions to the dataset. (readsets.import) + * Creates ReadGroupSets by asynchronously importing the provided information. + * Note that currently comments in the input file header are not imported and + * some custom tags will be converted to strings, rather than preserving tag + * types. The caller must have WRITE permissions to the dataset. + * (readgroupsets.import) * - * @param Google_ImportReadsetsRequest $postBody + * @param Google_ImportReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportReadsetsResponse + * @return Google_Service_Genomics_ImportReadGroupSetsResponse */ - public function import(Google_Service_Genomics_ImportReadsetsRequest $postBody, $optParams = array()) + public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportReadsetsResponse"); + return $this->call('import', array($params), "Google_Service_Genomics_ImportReadGroupSetsResponse"); } /** - * Updates a readset. This method supports patch semantics. (readsets.patch) + * Updates a ReadGroupSet. This method supports patch semantics. + * (readgroupsets.patch) * - * @param string $readsetId - * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset - * associated with this readset. - * @param Google_Readset $postBody + * @param string $readGroupSetId + * The ID of the read group set to be updated. The caller must have WRITE permissions to the + * dataset associated with this read group set. + * @param Google_ReadGroupSet $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset + * @return Google_Service_Genomics_ReadGroupSet */ - public function patch($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) + public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) { - $params = array('readsetId' => $readsetId, 'postBody' => $postBody); + $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Readset"); + return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); } /** - * Gets a list of readsets matching the criteria. (readsets.search) + * Gets a list of ReadGroupSets matching the criteria. (readgroupsets.search) * - * @param Google_SearchReadsetsRequest $postBody + * @param Google_SearchReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsetsResponse + * @return Google_Service_Genomics_SearchReadGroupSetsResponse */ - public function search(Google_Service_Genomics_SearchReadsetsRequest $postBody, $optParams = array()) + public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsetsResponse"); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); } /** - * Updates a readset. (readsets.update) + * Updates a ReadGroupSet. (readgroupsets.update) * - * @param string $readsetId - * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset - * associated with this readset. - * @param Google_Readset $postBody + * @param string $readGroupSetId + * The ID of the read group set to be updated. The caller must have WRITE permissions to the + * dataset associated with this read group set. + * @param Google_ReadGroupSet $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset + * @return Google_Service_Genomics_ReadGroupSet */ - public function update($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) + public function update($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) { - $params = array('readsetId' => $readsetId, 'postBody' => $postBody); + $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Readset"); + return $this->call('update', array($params), "Google_Service_Genomics_ReadGroupSet"); } } @@ -1034,30 +1031,34 @@ public function update($readsetId, Google_Service_Genomics_Readset $postBody, $o * $coveragebuckets = $genomicsService->coveragebuckets; * */ -class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Service_Resource +class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Google_Service_Resource { /** - * Lists fixed width coverage buckets for a readset, each of which correspond to - * a range of a reference sequence. Each bucket summarizes coverage information - * across its corresponding genomic range. Coverage is defined as the number of - * reads which are aligned to a given base in the reference sequence. Coverage - * buckets are available at various bucket widths, enabling various coverage - * "zoom levels". The caller must have READ permissions for the target readset. - * (coveragebuckets.listReadsetsCoveragebuckets) + * Lists fixed width coverage buckets for a ReadGroupSet, each of which + * correspond to a range of a reference sequence. Each bucket summarizes + * coverage information across its corresponding genomic range. Coverage is + * defined as the number of reads which are aligned to a given base in the + * reference sequence. Coverage buckets are available at various bucket widths, + * enabling various coverage "zoom levels". The caller must have READ + * permissions for the target ReadGroupSet. + * (coveragebuckets.listReadgroupsetsCoveragebuckets) * - * @param string $readsetId - * Required. The ID of the readset over which coverage is requested. + * @param string $readGroupSetId + * Required. The ID of the read group set over which coverage is requested. * @param array $optParams Optional parameters. * - * @opt_param string range.sequenceStart - * The start position of the range on the reference, 1-based inclusive. If specified, sequenceName - * must also be specified. - * @opt_param string maxResults + * @opt_param int pageSize * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The * maximum value is 2048. - * @opt_param string range.sequenceName - * The reference sequence name, for example chr1, 1, or chrX. + * @opt_param string range.start + * The start position of the range on the reference, 0-based inclusive. If specified, referenceName + * must also be specified. + * @opt_param string range.end + * The end position of the range on the reference, 0-based exclusive. If specified, referenceName + * must also be specified. + * @opt_param string range.referenceName + * The reference sequence name, for example "chr1", "1", or "chrX". * @opt_param string pageToken * The continuation token, which is used to page through large result sets. To get the next page of * results, set this parameter to the value of nextPageToken from the previous response. @@ -1067,102 +1068,234 @@ class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Se * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of * the target range, if specified. The smallest precomputed bucketWidth is currently 2048 base * pairs; this is subject to change. - * @opt_param string range.sequenceEnd - * The end position of the range on the reference, 1-based exclusive. If specified, sequenceName - * must also be specified. * @return Google_Service_Genomics_ListCoverageBucketsResponse */ - public function listReadsetsCoveragebuckets($readsetId, $optParams = array()) + public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) { - $params = array('readsetId' => $readsetId); + $params = array('readGroupSetId' => $readGroupSetId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); } } /** - * The "variants" collection of methods. + * The "reads" collection of methods. * Typical usage is: * * $genomicsService = new Google_Service_Genomics(...); - * $variants = $genomicsService->variants; + * $reads = $genomicsService->reads; * */ -class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource +class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource { /** - * Creates a new variant. (variants.create) + * Gets a list of reads for one or more ReadGroupSets. Reads search operates + * over a genomic coordinate space of reference sequence & position defined over + * the reference sequences to which the requested ReadGroupSets are aligned. If + * a target positional range is specified, search returns all reads whose + * alignment to the reference genome overlap the range. A query which specifies + * only ReadGroupSet IDs yields all reads in those ReadGroupSets, including + * unmapped reads. All reads returned (including reads on subsequent pages) are + * ordered by genomic coordinate (reference sequence & position). Reads with + * equivalent genomic coordinates are returned in a deterministic order. + * (reads.search) * - * @param Google_Variant $postBody + * @param Google_SearchReadsRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant + * @return Google_Service_Genomics_SearchReadsResponse */ - public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) + public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Variant"); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); } +} + +/** + * The "references" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $references = $genomicsService->references; + * + */ +class Google_Service_Genomics_References_Resource extends Google_Service_Resource +{ + /** - * Deletes a variant. (variants.delete) + * Gets a reference. * - * @param string $variantId - * The ID of the variant to be deleted. + * Implements GAReferenceMethods::getReference + * (https://github.com/ga4gh/schemas). (references.get) + * + * @param string $referenceId + * The ID of the reference. * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Reference */ - public function delete($variantId, $optParams = array()) + public function get($referenceId, $optParams = array()) { - $params = array('variantId' => $variantId); + $params = array('referenceId' => $referenceId); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Genomics_Reference"); } /** - * Exports variant data to an external destination. (variants.export) + * Searches for references which match the given criteria. + * + * Implements GAReferenceMethods::searchReferences + * (https://github.com/ga4gh/schemas). (references.search) * - * @param Google_ExportVariantsRequest $postBody + * @param Google_SearchReferencesRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportVariantsResponse + * @return Google_Service_Genomics_SearchReferencesResponse */ - public function export(Google_Service_Genomics_ExportVariantsRequest $postBody, $optParams = array()) + public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantsResponse"); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse"); } +} + +/** + * The "bases" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $bases = $genomicsService->bases; + * + */ +class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Resource +{ + /** - * Gets a variant by ID. (variants.get) + * Lists the bases in a reference, optionally restricted to a range. * - * @param string $variantId - * The ID of the variant. + * Implements GAReferenceMethods::getReferenceBases + * (https://github.com/ga4gh/schemas). (bases.listReferencesBases) + * + * @param string $referenceId + * The ID of the reference. * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant + * + * @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 end + * The end position (0-based, exclusive) of this query. Defaults to the length length of this + * reference. + * @opt_param int pageSize + * Specifies the maximum number of bases to return in a single page. + * @opt_param string start + * The start position (0-based) of this query. Defaults to 0. + * @return Google_Service_Genomics_ListBasesResponse */ - public function get($variantId, $optParams = array()) + public function listReferencesBases($referenceId, $optParams = array()) { - $params = array('variantId' => $variantId); + $params = array('referenceId' => $referenceId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Variant"); + return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse"); } - /** - * Creates variant data by asynchronously importing the provided information. - * The variants for import will be merged with any existing data and each other - * according to the behavior of mergeVariants. In particular, this means for - * merged VCF variants that have conflicting INFO fields, some data will be - * arbitrarily discarded. As a special case, for single-sample VCF files, QUAL - * and FILTER fields will be moved to the call level; these are sometimes - * interpreted in a call-specific context. Imported VCF headers are appended to - * the metadata already in a VariantSet. (variants.import) +} + +/** + * The "referencesets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $referencesets = $genomicsService->referencesets; + * + */ +class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Resource +{ + + /** + * Gets a reference set. * - * @param Google_ImportVariantsRequest $postBody + * Implements GAReferenceMethods::getReferenceSet + * (https://github.com/ga4gh/schemas). (referencesets.get) + * + * @param string $referenceSetId + * The ID of the reference set. * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportVariantsResponse + * @return Google_Service_Genomics_ReferenceSet + */ + public function get($referenceSetId, $optParams = array()) + { + $params = array('referenceSetId' => $referenceSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); + } + /** + * Searches for reference sets which match the given criteria. + * + * Implements GAReferenceMethods::searchReferenceSets + * (https://github.com/ga4gh/schemas). (referencesets.search) + * + * @param Google_SearchReferenceSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReferenceSetsResponse + */ + public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse"); + } +} + +/** + * The "variants" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $variants = $genomicsService->variants; + * + */ +class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource +{ + + /** + * Creates a new variant. (variants.create) + * + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant */ - public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) + public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportVariantsResponse"); + return $this->call('create', array($params), "Google_Service_Genomics_Variant"); + } + /** + * Deletes a variant. (variants.delete) + * + * @param string $variantId + * The ID of the variant to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($variantId, $optParams = array()) + { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a variant by ID. (variants.get) + * + * @param string $variantId + * The ID of the variant. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function get($variantId, $optParams = array()) + { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } /** * Gets a list of variants matching the criteria. (variants.search) @@ -1221,6 +1354,22 @@ public function delete($variantSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** + * Exports variant set data to an external destination. (variantsets.export) + * + * @param string $variantSetId + * Required. The ID of the variant set that contains variant data which should be exported. The + * caller must have READ access to this variant set. + * @param Google_ExportVariantSetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ExportVariantSetResponse + */ + public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantSetResponse"); + } /** * Gets a variant set by ID. (variantsets.get) * @@ -1235,6 +1384,28 @@ public function get($variantSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); } + /** + * Creates variant data by asynchronously importing the provided information. + * The variants for import will be merged with any existing data and each other + * according to the behavior of mergeVariants. In particular, this means for + * merged VCF variants that have conflicting INFO fields, some data will be + * arbitrarily discarded. As a special case, for single-sample VCF files, QUAL + * and FILTER fields will be moved to the call level; these are sometimes + * interpreted in a call-specific context. Imported VCF headers are appended to + * the metadata already in a variant set. (variantsets.importVariants) + * + * @param string $variantSetId + * Required. The variant set to which variant data should be imported. + * @param Google_ImportVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ImportVariantsResponse + */ + public function importVariants($variantSetId, Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('importVariants', array($params), "Google_Service_Genomics_ImportVariantsResponse"); + } /** * Merges the given variants with existing variants. Each variant will be merged * with an existing variant that matches its reference sequence, start, end, @@ -1308,24 +1479,6 @@ public function update($variantSetId, Google_Service_Genomics_VariantSet $postBo -class Google_Service_Genomics_Beacon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $exists; - - public function setExists($exists) - { - $this->exists = $exists; - } - - public function getExists() - { - return $this->exists; - } - -} - class Google_Service_Genomics_Call extends Google_Collection { protected $collection_key = 'genotypeLikelihood'; @@ -1480,12 +1633,50 @@ class Google_Service_Genomics_CallSetInfo extends Google_Model } +class Google_Service_Genomics_CigarUnit extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $operation; + public $operationLength; + public $referenceSequence; + + public function setOperation($operation) + { + $this->operation = $operation; + } + + public function getOperation() + { + return $this->operation; + } + public function setOperationLength($operationLength) + { + $this->operationLength = $operationLength; + } + + public function getOperationLength() + { + return $this->operationLength; + } + public function setReferenceSequence($referenceSequence) + { + $this->referenceSequence = $referenceSequence; + } + + public function getReferenceSequence() + { + return $this->referenceSequence; + } + +} + class Google_Service_Genomics_CoverageBucket extends Google_Model { protected $internal_gapi_mappings = array( ); public $meanCoverage; - protected $rangeType = 'Google_Service_Genomics_GenomicRange'; + protected $rangeType = 'Google_Service_Genomics_Range'; protected $rangeDataType = ''; public function setMeanCoverage($meanCoverage) @@ -1497,7 +1688,7 @@ public function getMeanCoverage() { return $this->meanCoverage; } - public function setRange(Google_Service_Genomics_GenomicRange $range) + public function setRange(Google_Service_Genomics_Range $range) { $this->range = $range; } @@ -1516,7 +1707,7 @@ class Google_Service_Genomics_Dataset extends Google_Model public $id; public $isPublic; public $name; - public $projectId; + public $projectNumber; public function setId($id) { @@ -1545,14 +1736,14 @@ public function getName() { return $this->name; } - public function setProjectId($projectId) + public function setProjectNumber($projectNumber) { - $this->projectId = $projectId; + $this->projectNumber = $projectNumber; } - public function getProjectId() + public function getProjectNumber() { - return $this->projectId; + return $this->projectNumber; } } @@ -1566,7 +1757,7 @@ class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collec public $callVariants; public $gcsOutputPath; public $pairedSourceUris; - public $projectId; + public $projectNumber; public $sourceUris; public function setAlign($align) @@ -1605,14 +1796,14 @@ public function getPairedSourceUris() { return $this->pairedSourceUris; } - public function setProjectId($projectId) + public function setProjectNumber($projectNumber) { - $this->projectId = $projectId; + $this->projectNumber = $projectNumber; } - public function getProjectId() + public function getProjectNumber() { - return $this->projectId; + return $this->projectNumber; } public function setSourceUris($sourceUris) { @@ -1644,14 +1835,14 @@ public function getJobId() } -class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection +class Google_Service_Genomics_ExportReadGroupSetsRequest extends Google_Collection { protected $collection_key = 'referenceNames'; protected $internal_gapi_mappings = array( ); public $exportUri; - public $projectId; - public $readsetIds; + public $projectNumber; + public $readGroupSetIds; public $referenceNames; public function setExportUri($exportUri) @@ -1663,23 +1854,23 @@ public function getExportUri() { return $this->exportUri; } - public function setProjectId($projectId) + public function setProjectNumber($projectNumber) { - $this->projectId = $projectId; + $this->projectNumber = $projectNumber; } - public function getProjectId() + public function getProjectNumber() { - return $this->projectId; + return $this->projectNumber; } - public function setReadsetIds($readsetIds) + public function setReadGroupSetIds($readGroupSetIds) { - $this->readsetIds = $readsetIds; + $this->readGroupSetIds = $readGroupSetIds; } - public function getReadsetIds() + public function getReadGroupSetIds() { - return $this->readsetIds; + return $this->readGroupSetIds; } public function setReferenceNames($referenceNames) { @@ -1693,7 +1884,7 @@ public function getReferenceNames() } -class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model +class Google_Service_Genomics_ExportReadGroupSetsResponse extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -1711,7 +1902,7 @@ public function getJobId() } -class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection +class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection { protected $collection_key = 'callSetIds'; protected $internal_gapi_mappings = array( @@ -1720,8 +1911,7 @@ class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection public $bigqueryTable; public $callSetIds; public $format; - public $projectId; - public $variantSetId; + public $projectNumber; public function setBigqueryDataset($bigqueryDataset) { @@ -1759,28 +1949,19 @@ public function getFormat() { return $this->format; } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - - public function getProjectId() - { - return $this->projectId; - } - public function setVariantSetId($variantSetId) + public function setProjectNumber($projectNumber) { - $this->variantSetId = $variantSetId; + $this->projectNumber = $projectNumber; } - public function getVariantSetId() + public function getProjectNumber() { - return $this->variantSetId; + return $this->projectNumber; } } -class Google_Service_Genomics_ExportVariantsResponse extends Google_Model +class Google_Service_Genomics_ExportVariantSetResponse extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -1798,394 +1979,324 @@ public function getJobId() } -class Google_Service_Genomics_GenomicRange extends Google_Model +class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection { + protected $collection_key = 'sourceUris'; protected $internal_gapi_mappings = array( ); - public $sequenceEnd; - public $sequenceName; - public $sequenceStart; + public $datasetId; + public $referenceSetId; + public $sourceUris; - public function setSequenceEnd($sequenceEnd) + public function setDatasetId($datasetId) { - $this->sequenceEnd = $sequenceEnd; + $this->datasetId = $datasetId; } - public function getSequenceEnd() + public function getDatasetId() { - return $this->sequenceEnd; + return $this->datasetId; } - public function setSequenceName($sequenceName) + public function setReferenceSetId($referenceSetId) { - $this->sequenceName = $sequenceName; + $this->referenceSetId = $referenceSetId; } - public function getSequenceName() + public function getReferenceSetId() { - return $this->sequenceName; + return $this->referenceSetId; } - public function setSequenceStart($sequenceStart) + public function setSourceUris($sourceUris) { - $this->sequenceStart = $sequenceStart; + $this->sourceUris = $sourceUris; } - public function getSequenceStart() + public function getSourceUris() { - return $this->sequenceStart; + return $this->sourceUris; } } -class Google_Service_Genomics_Header extends Google_Model +class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Model { protected $internal_gapi_mappings = array( ); - public $sortingOrder; - public $version; + public $jobId; + + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + + public function getJobId() + { + return $this->jobId; + } + +} + +class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $format; + public $sourceUris; - public function setSortingOrder($sortingOrder) + public function setFormat($format) { - $this->sortingOrder = $sortingOrder; + $this->format = $format; } - public function getSortingOrder() + public function getFormat() { - return $this->sortingOrder; + return $this->format; } - public function setVersion($version) + public function setSourceUris($sourceUris) { - $this->version = $version; + $this->sourceUris = $sourceUris; } - public function getVersion() + public function getSourceUris() { - return $this->version; + return $this->sourceUris; } } -class Google_Service_Genomics_HeaderSection extends Google_Collection +class Google_Service_Genomics_ImportVariantsResponse extends Google_Model { - protected $collection_key = 'refSequences'; protected $internal_gapi_mappings = array( ); - public $comments; - public $fileUri; - public $filename; - protected $headersType = 'Google_Service_Genomics_Header'; - protected $headersDataType = 'array'; - protected $programsType = 'Google_Service_Genomics_Program'; - protected $programsDataType = 'array'; - protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; - protected $readGroupsDataType = 'array'; - protected $refSequencesType = 'Google_Service_Genomics_ReferenceSequence'; - protected $refSequencesDataType = 'array'; + public $jobId; - public function setComments($comments) + public function setJobId($jobId) { - $this->comments = $comments; + $this->jobId = $jobId; } - public function getComments() + public function getJobId() { - return $this->comments; + return $this->jobId; } - public function setFileUri($fileUri) + +} + +class Google_Service_Genomics_Job extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $created; + public $detailedStatus; + public $errors; + public $id; + public $importedIds; + public $projectNumber; + protected $requestType = 'Google_Service_Genomics_JobRequest'; + protected $requestDataType = ''; + public $status; + public $warnings; + + public function setCreated($created) { - $this->fileUri = $fileUri; + $this->created = $created; } - public function getFileUri() + public function getCreated() { - return $this->fileUri; + return $this->created; } - public function setFilename($filename) + public function setDetailedStatus($detailedStatus) { - $this->filename = $filename; + $this->detailedStatus = $detailedStatus; } - public function getFilename() + public function getDetailedStatus() { - return $this->filename; + return $this->detailedStatus; } - public function setHeaders($headers) + public function setErrors($errors) { - $this->headers = $headers; + $this->errors = $errors; } - public function getHeaders() + public function getErrors() { - return $this->headers; + return $this->errors; } - public function setPrograms($programs) + public function setId($id) { - $this->programs = $programs; + $this->id = $id; } - public function getPrograms() + public function getId() { - return $this->programs; + return $this->id; } - public function setReadGroups($readGroups) + public function setImportedIds($importedIds) { - $this->readGroups = $readGroups; + $this->importedIds = $importedIds; } - public function getReadGroups() + public function getImportedIds() { - return $this->readGroups; + return $this->importedIds; } - public function setRefSequences($refSequences) + public function setProjectNumber($projectNumber) { - $this->refSequences = $refSequences; + $this->projectNumber = $projectNumber; } - public function getRefSequences() + public function getProjectNumber() { - return $this->refSequences; + return $this->projectNumber; + } + public function setRequest(Google_Service_Genomics_JobRequest $request) + { + $this->request = $request; } -} - -class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $sourceUris; - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - - public function getDatasetId() + public function getRequest() { - return $this->datasetId; + return $this->request; } - public function setSourceUris($sourceUris) + public function setStatus($status) { - $this->sourceUris = $sourceUris; + $this->status = $status; } - public function getSourceUris() + public function getStatus() { - return $this->sourceUris; + return $this->status; } - -} - -class Google_Service_Genomics_ImportReadsetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - public function setJobId($jobId) + public function setWarnings($warnings) { - $this->jobId = $jobId; + $this->warnings = $warnings; } - public function getJobId() + public function getWarnings() { - return $this->jobId; + return $this->warnings; } } -class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection +class Google_Service_Genomics_JobRequest extends Google_Collection { - protected $collection_key = 'sourceUris'; + protected $collection_key = 'source'; protected $internal_gapi_mappings = array( ); - public $format; - public $sourceUris; - public $variantSetId; - - public function setFormat($format) - { - $this->format = $format; - } + public $destination; + public $source; + public $type; - public function getFormat() - { - return $this->format; - } - public function setSourceUris($sourceUris) + public function setDestination($destination) { - $this->sourceUris = $sourceUris; + $this->destination = $destination; } - public function getSourceUris() + public function getDestination() { - return $this->sourceUris; + return $this->destination; } - public function setVariantSetId($variantSetId) + public function setSource($source) { - $this->variantSetId = $variantSetId; + $this->source = $source; } - public function getVariantSetId() + public function getSource() { - return $this->variantSetId; + return $this->source; } - -} - -class Google_Service_Genomics_ImportVariantsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - public function setJobId($jobId) + public function setType($type) { - $this->jobId = $jobId; + $this->type = $type; } - public function getJobId() + public function getType() { - return $this->jobId; + return $this->type; } } -class Google_Service_Genomics_Job extends Google_Collection +class Google_Service_Genomics_LinearAlignment extends Google_Collection { - protected $collection_key = 'warnings'; + protected $collection_key = 'cigar'; protected $internal_gapi_mappings = array( ); - public $created; - public $description; - public $errors; - public $id; - public $importedIds; - public $projectId; - protected $requestType = 'Google_Service_Genomics_JobRequest'; - protected $requestDataType = ''; - public $status; - public $warnings; - - 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 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 setImportedIds($importedIds) - { - $this->importedIds = $importedIds; - } - - public function getImportedIds() - { - return $this->importedIds; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + protected $cigarType = 'Google_Service_Genomics_CigarUnit'; + protected $cigarDataType = 'array'; + public $mappingQuality; + protected $positionType = 'Google_Service_Genomics_Position'; + protected $positionDataType = ''; - public function getProjectId() - { - return $this->projectId; - } - public function setRequest(Google_Service_Genomics_JobRequest $request) + public function setCigar($cigar) { - $this->request = $request; + $this->cigar = $cigar; } - public function getRequest() + public function getCigar() { - return $this->request; + return $this->cigar; } - public function setStatus($status) + public function setMappingQuality($mappingQuality) { - $this->status = $status; + $this->mappingQuality = $mappingQuality; } - public function getStatus() + public function getMappingQuality() { - return $this->status; + return $this->mappingQuality; } - public function setWarnings($warnings) + public function setPosition(Google_Service_Genomics_Position $position) { - $this->warnings = $warnings; + $this->position = $position; } - public function getWarnings() + public function getPosition() { - return $this->warnings; + return $this->position; } } -class Google_Service_Genomics_JobRequest extends Google_Collection +class Google_Service_Genomics_ListBasesResponse extends Google_Model { - protected $collection_key = 'source'; protected $internal_gapi_mappings = array( ); - public $destination; - public $source; - public $type; + public $nextPageToken; + public $offset; + public $sequence; - public function setDestination($destination) + public function setNextPageToken($nextPageToken) { - $this->destination = $destination; + $this->nextPageToken = $nextPageToken; } - public function getDestination() + public function getNextPageToken() { - return $this->destination; + return $this->nextPageToken; } - public function setSource($source) + public function setOffset($offset) { - $this->source = $source; + $this->offset = $offset; } - public function getSource() + public function getOffset() { - return $this->source; + return $this->offset; } - public function setType($type) + public function setSequence($sequence) { - $this->type = $type; + $this->sequence = $sequence; } - public function getType() + public function getSequence() { - return $this->type; + return $this->sequence; } } @@ -2366,247 +2477,288 @@ class Google_Service_Genomics_MetadataInfo extends Google_Model } -class Google_Service_Genomics_Program extends Google_Model +class Google_Service_Genomics_Position extends Google_Model { protected $internal_gapi_mappings = array( ); - public $commandLine; - public $id; - public $name; - public $prevProgramId; - public $version; + public $position; + public $referenceName; + public $reverseStrand; - public function setCommandLine($commandLine) + public function setPosition($position) { - $this->commandLine = $commandLine; + $this->position = $position; } - public function getCommandLine() + public function getPosition() { - return $this->commandLine; + return $this->position; } - public function setId($id) + public function setReferenceName($referenceName) { - $this->id = $id; + $this->referenceName = $referenceName; } - public function getId() + public function getReferenceName() { - return $this->id; + return $this->referenceName; } - public function setName($name) + public function setReverseStrand($reverseStrand) { - $this->name = $name; + $this->reverseStrand = $reverseStrand; } - public function getName() + public function getReverseStrand() { - return $this->name; + return $this->reverseStrand; } - public function setPrevProgramId($prevProgramId) + +} + +class Google_Service_Genomics_Range extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $end; + public $referenceName; + public $start; + + public function setEnd($end) { - $this->prevProgramId = $prevProgramId; + $this->end = $end; } - public function getPrevProgramId() + public function getEnd() { - return $this->prevProgramId; + return $this->end; } - public function setVersion($version) + public function setReferenceName($referenceName) { - $this->version = $version; + $this->referenceName = $referenceName; } - public function getVersion() + public function getReferenceName() { - return $this->version; + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + + public function getStart() + { + return $this->start; } } -class Google_Service_Genomics_Read extends Google_Model +class Google_Service_Genomics_Read extends Google_Collection { + protected $collection_key = 'alignedQuality'; protected $internal_gapi_mappings = array( ); - public $alignedBases; - public $baseQuality; - public $cigar; - public $flags; + public $alignedQuality; + public $alignedSequence; + protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; + protected $alignmentDataType = ''; + public $duplicateFragment; + public $failedVendorQualityChecks; + public $fragmentLength; + public $fragmentName; public $id; - public $mappingQuality; - public $matePosition; - public $mateReferenceSequenceName; - public $name; - public $originalBases; - public $position; - public $readsetId; - public $referenceSequenceName; - public $tags; - public $templateLength; + public $info; + protected $nextMatePositionType = 'Google_Service_Genomics_Position'; + protected $nextMatePositionDataType = ''; + public $numberReads; + public $properPlacement; + public $readGroupId; + public $readGroupSetId; + public $readNumber; + public $secondaryAlignment; + public $supplementaryAlignment; - public function setAlignedBases($alignedBases) + public function setAlignedQuality($alignedQuality) { - $this->alignedBases = $alignedBases; + $this->alignedQuality = $alignedQuality; } - public function getAlignedBases() + public function getAlignedQuality() { - return $this->alignedBases; + return $this->alignedQuality; } - public function setBaseQuality($baseQuality) + public function setAlignedSequence($alignedSequence) { - $this->baseQuality = $baseQuality; + $this->alignedSequence = $alignedSequence; } - public function getBaseQuality() + public function getAlignedSequence() { - return $this->baseQuality; + return $this->alignedSequence; } - public function setCigar($cigar) + public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) { - $this->cigar = $cigar; + $this->alignment = $alignment; } - public function getCigar() + public function getAlignment() { - return $this->cigar; + return $this->alignment; } - public function setFlags($flags) + public function setDuplicateFragment($duplicateFragment) { - $this->flags = $flags; + $this->duplicateFragment = $duplicateFragment; } - public function getFlags() + public function getDuplicateFragment() { - return $this->flags; + return $this->duplicateFragment; } - public function setId($id) + public function setFailedVendorQualityChecks($failedVendorQualityChecks) { - $this->id = $id; + $this->failedVendorQualityChecks = $failedVendorQualityChecks; } - public function getId() + public function getFailedVendorQualityChecks() { - return $this->id; + return $this->failedVendorQualityChecks; } - public function setMappingQuality($mappingQuality) + public function setFragmentLength($fragmentLength) { - $this->mappingQuality = $mappingQuality; + $this->fragmentLength = $fragmentLength; } - public function getMappingQuality() + public function getFragmentLength() { - return $this->mappingQuality; + return $this->fragmentLength; } - public function setMatePosition($matePosition) + public function setFragmentName($fragmentName) { - $this->matePosition = $matePosition; + $this->fragmentName = $fragmentName; } - public function getMatePosition() + public function getFragmentName() { - return $this->matePosition; + return $this->fragmentName; } - public function setMateReferenceSequenceName($mateReferenceSequenceName) + public function setId($id) { - $this->mateReferenceSequenceName = $mateReferenceSequenceName; + $this->id = $id; } - public function getMateReferenceSequenceName() + public function getId() { - return $this->mateReferenceSequenceName; + return $this->id; } - public function setName($name) + public function setInfo($info) { - $this->name = $name; + $this->info = $info; } - public function getName() + public function getInfo() { - return $this->name; + return $this->info; } - public function setOriginalBases($originalBases) + public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePosition) { - $this->originalBases = $originalBases; + $this->nextMatePosition = $nextMatePosition; } - public function getOriginalBases() + public function getNextMatePosition() { - return $this->originalBases; + return $this->nextMatePosition; } - public function setPosition($position) + public function setNumberReads($numberReads) { - $this->position = $position; + $this->numberReads = $numberReads; } - public function getPosition() + public function getNumberReads() { - return $this->position; + return $this->numberReads; + } + public function setProperPlacement($properPlacement) + { + $this->properPlacement = $properPlacement; + } + + public function getProperPlacement() + { + return $this->properPlacement; } - public function setReadsetId($readsetId) + public function setReadGroupId($readGroupId) { - $this->readsetId = $readsetId; + $this->readGroupId = $readGroupId; } - public function getReadsetId() + public function getReadGroupId() { - return $this->readsetId; + return $this->readGroupId; } - public function setReferenceSequenceName($referenceSequenceName) + public function setReadGroupSetId($readGroupSetId) { - $this->referenceSequenceName = $referenceSequenceName; + $this->readGroupSetId = $readGroupSetId; } - public function getReferenceSequenceName() + public function getReadGroupSetId() { - return $this->referenceSequenceName; + return $this->readGroupSetId; } - public function setTags($tags) + public function setReadNumber($readNumber) { - $this->tags = $tags; + $this->readNumber = $readNumber; } - public function getTags() + public function getReadNumber() { - return $this->tags; + return $this->readNumber; } - public function setTemplateLength($templateLength) + public function setSecondaryAlignment($secondaryAlignment) { - $this->templateLength = $templateLength; + $this->secondaryAlignment = $secondaryAlignment; } - public function getTemplateLength() + public function getSecondaryAlignment() + { + return $this->secondaryAlignment; + } + public function setSupplementaryAlignment($supplementaryAlignment) { - return $this->templateLength; + $this->supplementaryAlignment = $supplementaryAlignment; + } + + public function getSupplementaryAlignment() + { + return $this->supplementaryAlignment; } } -class Google_Service_Genomics_ReadGroup extends Google_Model +class Google_Service_Genomics_ReadGroup extends Google_Collection { + protected $collection_key = 'programs'; protected $internal_gapi_mappings = array( ); - public $date; + public $datasetId; public $description; - public $flowOrder; + protected $experimentType = 'Google_Service_Genomics_ReadGroupExperiment'; + protected $experimentDataType = ''; public $id; - public $keySequence; - public $library; - public $platformUnit; + public $info; + public $name; public $predictedInsertSize; - public $processingProgram; - public $sample; - public $sequencingCenterName; - public $sequencingTechnology; + protected $programsType = 'Google_Service_Genomics_ReadGroupProgram'; + protected $programsDataType = 'array'; + public $sampleId; - public function setDate($date) + public function setDatasetId($datasetId) { - $this->date = $date; + $this->datasetId = $datasetId; } - public function getDate() + public function getDatasetId() { - return $this->date; + return $this->datasetId; } public function setDescription($description) { @@ -2617,14 +2769,14 @@ public function getDescription() { return $this->description; } - public function setFlowOrder($flowOrder) + public function setExperiment(Google_Service_Genomics_ReadGroupExperiment $experiment) { - $this->flowOrder = $flowOrder; + $this->experiment = $experiment; } - public function getFlowOrder() + public function getExperiment() { - return $this->flowOrder; + return $this->experiment; } public function setId($id) { @@ -2635,23 +2787,80 @@ public function getId() { return $this->id; } - public function setKeySequence($keySequence) + public function setInfo($info) + { + $this->info = $info; + } + + public function getInfo() + { + return $this->info; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setPredictedInsertSize($predictedInsertSize) + { + $this->predictedInsertSize = $predictedInsertSize; + } + + public function getPredictedInsertSize() + { + return $this->predictedInsertSize; + } + public function setPrograms($programs) + { + $this->programs = $programs; + } + + public function getPrograms() + { + return $this->programs; + } + public function setSampleId($sampleId) { - $this->keySequence = $keySequence; + $this->sampleId = $sampleId; } - public function getKeySequence() + public function getSampleId() { - return $this->keySequence; + return $this->sampleId; } - public function setLibrary($library) + +} + +class Google_Service_Genomics_ReadGroupExperiment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instrumentModel; + public $libraryId; + public $platformUnit; + public $sequencingCenter; + + public function setInstrumentModel($instrumentModel) { - $this->library = $library; + $this->instrumentModel = $instrumentModel; } - public function getLibrary() + public function getInstrumentModel() { - return $this->library; + return $this->instrumentModel; + } + public function setLibraryId($libraryId) + { + $this->libraryId = $libraryId; + } + + public function getLibraryId() + { + return $this->libraryId; } public function setPlatformUnit($platformUnit) { @@ -2662,55 +2871,155 @@ public function getPlatformUnit() { return $this->platformUnit; } - public function setPredictedInsertSize($predictedInsertSize) + public function setSequencingCenter($sequencingCenter) { - $this->predictedInsertSize = $predictedInsertSize; + $this->sequencingCenter = $sequencingCenter; } - public function getPredictedInsertSize() + public function getSequencingCenter() { - return $this->predictedInsertSize; + return $this->sequencingCenter; + } + +} + +class Google_Service_Genomics_ReadGroupInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + + +} + +class Google_Service_Genomics_ReadGroupProgram extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $commandLine; + public $id; + public $name; + public $prevProgramId; + public $version; + + public function setCommandLine($commandLine) + { + $this->commandLine = $commandLine; + } + + public function getCommandLine() + { + return $this->commandLine; + } + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setPrevProgramId($prevProgramId) + { + $this->prevProgramId = $prevProgramId; + } + + public function getPrevProgramId() + { + return $this->prevProgramId; + } + public function setVersion($version) + { + $this->version = $version; + } + + public function getVersion() + { + return $this->version; + } + +} + +class Google_Service_Genomics_ReadGroupSet extends Google_Collection +{ + protected $collection_key = 'readGroups'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $filename; + public $id; + public $name; + protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; + protected $readGroupsDataType = 'array'; + public $referenceSetId; + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + + public function getDatasetId() + { + return $this->datasetId; + } + public function setFilename($filename) + { + $this->filename = $filename; + } + + public function getFilename() + { + return $this->filename; } - public function setProcessingProgram($processingProgram) + public function setId($id) { - $this->processingProgram = $processingProgram; + $this->id = $id; } - public function getProcessingProgram() + public function getId() { - return $this->processingProgram; + return $this->id; } - public function setSample($sample) + public function setName($name) { - $this->sample = $sample; + $this->name = $name; } - public function getSample() + public function getName() { - return $this->sample; + return $this->name; } - public function setSequencingCenterName($sequencingCenterName) + public function setReadGroups($readGroups) { - $this->sequencingCenterName = $sequencingCenterName; + $this->readGroups = $readGroups; } - public function getSequencingCenterName() + public function getReadGroups() { - return $this->sequencingCenterName; + return $this->readGroups; } - public function setSequencingTechnology($sequencingTechnology) + public function setReferenceSetId($referenceSetId) { - $this->sequencingTechnology = $sequencingTechnology; + $this->referenceSetId = $referenceSetId; } - public function getSequencingTechnology() + public function getReferenceSetId() { - return $this->sequencingTechnology; + return $this->referenceSetId; } } -class Google_Service_Genomics_ReadTags extends Google_Model +class Google_Service_Genomics_ReadInfo extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -2718,43 +3027,45 @@ class Google_Service_Genomics_ReadTags extends Google_Model } -class Google_Service_Genomics_Readset extends Google_Collection +class Google_Service_Genomics_Reference extends Google_Collection { - protected $collection_key = 'fileData'; + protected $collection_key = 'sourceAccessions'; protected $internal_gapi_mappings = array( ); - public $datasetId; - protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; - protected $fileDataDataType = 'array'; public $id; + public $length; + public $md5checksum; public $name; + public $ncbiTaxonId; + public $sourceAccessions; + public $sourceURI; - public function setDatasetId($datasetId) + public function setId($id) { - $this->datasetId = $datasetId; + $this->id = $id; } - public function getDatasetId() + public function getId() { - return $this->datasetId; + return $this->id; } - public function setFileData($fileData) + public function setLength($length) { - $this->fileData = $fileData; + $this->length = $length; } - public function getFileData() + public function getLength() { - return $this->fileData; + return $this->length; } - public function setId($id) + public function setMd5checksum($md5checksum) { - $this->id = $id; + $this->md5checksum = $md5checksum; } - public function getId() + public function getMd5checksum() { - return $this->id; + return $this->md5checksum; } public function setName($name) { @@ -2765,6 +3076,33 @@ public function getName() { return $this->name; } + public function setNcbiTaxonId($ncbiTaxonId) + { + $this->ncbiTaxonId = $ncbiTaxonId; + } + + public function getNcbiTaxonId() + { + return $this->ncbiTaxonId; + } + public function setSourceAccessions($sourceAccessions) + { + $this->sourceAccessions = $sourceAccessions; + } + + public function getSourceAccessions() + { + return $this->sourceAccessions; + } + public function setSourceURI($sourceURI) + { + $this->sourceURI = $sourceURI; + } + + public function getSourceURI() + { + return $this->sourceURI; + } } @@ -2796,16 +3134,19 @@ public function getUpperBound() } -class Google_Service_Genomics_ReferenceSequence extends Google_Model +class Google_Service_Genomics_ReferenceSet extends Google_Collection { + protected $collection_key = 'sourceAccessions'; protected $internal_gapi_mappings = array( ); public $assemblyId; - public $length; - public $md5Checksum; - public $name; - public $species; - public $uri; + public $description; + public $id; + public $md5checksum; + public $ncbiTaxonId; + public $referenceIds; + public $sourceAccessions; + public $sourceURI; public function setAssemblyId($assemblyId) { @@ -2816,50 +3157,68 @@ public function getAssemblyId() { return $this->assemblyId; } - public function setLength($length) + public function setDescription($description) { - $this->length = $length; + $this->description = $description; } - public function getLength() + public function getDescription() { - return $this->length; + return $this->description; } - public function setMd5Checksum($md5Checksum) + public function setId($id) { - $this->md5Checksum = $md5Checksum; + $this->id = $id; } - public function getMd5Checksum() + public function getId() { - return $this->md5Checksum; + return $this->id; } - public function setName($name) + public function setMd5checksum($md5checksum) { - $this->name = $name; + $this->md5checksum = $md5checksum; } - public function getName() + public function getMd5checksum() { - return $this->name; + return $this->md5checksum; + } + public function setNcbiTaxonId($ncbiTaxonId) + { + $this->ncbiTaxonId = $ncbiTaxonId; + } + + public function getNcbiTaxonId() + { + return $this->ncbiTaxonId; + } + public function setReferenceIds($referenceIds) + { + $this->referenceIds = $referenceIds; + } + + public function getReferenceIds() + { + return $this->referenceIds; } - public function setSpecies($species) + public function setSourceAccessions($sourceAccessions) { - $this->species = $species; + $this->sourceAccessions = $sourceAccessions; } - public function getSpecies() + public function getSourceAccessions() { - return $this->species; + return $this->sourceAccessions; } - public function setUri($uri) + public function setSourceURI($sourceURI) { - $this->uri = $uri; + $this->sourceURI = $sourceURI; } - public function getUri() + public function getSourceURI() { - return $this->uri; + return $this->sourceURI; } } @@ -2950,9 +3309,9 @@ class Google_Service_Genomics_SearchJobsRequest extends Google_Collection ); public $createdAfter; public $createdBefore; - public $maxResults; + public $pageSize; public $pageToken; - public $projectId; + public $projectNumber; public $status; public function setCreatedAfter($createdAfter) @@ -2973,14 +3332,14 @@ public function getCreatedBefore() { return $this->createdBefore; } - public function setMaxResults($maxResults) + public function setPageSize($pageSize) { - $this->maxResults = $maxResults; + $this->pageSize = $pageSize; } - public function getMaxResults() + public function getPageSize() { - return $this->maxResults; + return $this->pageSize; } public function setPageToken($pageToken) { @@ -2991,14 +3350,14 @@ public function getPageToken() { return $this->pageToken; } - public function setProjectId($projectId) + public function setProjectNumber($projectNumber) { - $this->projectId = $projectId; + $this->projectNumber = $projectNumber; } - public function getProjectId() + public function getProjectNumber() { - return $this->projectId; + return $this->projectNumber; } public function setStatus($status) { @@ -3042,26 +3401,115 @@ public function getNextPageToken() } +class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'datasetIds'; + protected $internal_gapi_mappings = array( + ); + public $datasetIds; + public $name; + public $pageSize; + public $pageToken; + + public function setDatasetIds($datasetIds) + { + $this->datasetIds = $datasetIds; + } + + public function getDatasetIds() + { + return $this->datasetIds; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + + public function getPageToken() + { + return $this->pageToken; + } + +} + +class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection +{ + protected $collection_key = 'readGroupSets'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; + protected $readGroupSetsDataType = 'array'; + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReadGroupSets($readGroupSets) + { + $this->readGroupSets = $readGroupSets; + } + + public function getReadGroupSets() + { + return $this->readGroupSets; + } + +} + class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { - protected $collection_key = 'readsetIds'; + protected $collection_key = 'readGroupSetIds'; protected $internal_gapi_mappings = array( ); - public $maxResults; + public $end; + public $pageSize; public $pageToken; - public $readsetIds; - public $sequenceEnd; - public $sequenceName; - public $sequenceStart; + public $readGroupIds; + public $readGroupSetIds; + public $referenceName; + public $start; + + public function setEnd($end) + { + $this->end = $end; + } - public function setMaxResults($maxResults) + public function getEnd() + { + return $this->end; + } + public function setPageSize($pageSize) { - $this->maxResults = $maxResults; + $this->pageSize = $pageSize; } - public function getMaxResults() + public function getPageSize() { - return $this->maxResults; + return $this->pageSize; } public function setPageToken($pageToken) { @@ -3072,53 +3520,132 @@ public function getPageToken() { return $this->pageToken; } - public function setReadsetIds($readsetIds) + public function setReadGroupIds($readGroupIds) { - $this->readsetIds = $readsetIds; + $this->readGroupIds = $readGroupIds; } - public function getReadsetIds() + public function getReadGroupIds() { - return $this->readsetIds; + return $this->readGroupIds; } - public function setSequenceEnd($sequenceEnd) + public function setReadGroupSetIds($readGroupSetIds) { - $this->sequenceEnd = $sequenceEnd; + $this->readGroupSetIds = $readGroupSetIds; } - public function getSequenceEnd() + public function getReadGroupSetIds() { - return $this->sequenceEnd; + return $this->readGroupSetIds; } - public function setSequenceName($sequenceName) + public function setReferenceName($referenceName) { - $this->sequenceName = $sequenceName; + $this->referenceName = $referenceName; } - public function getSequenceName() + public function getReferenceName() { - return $this->sequenceName; + return $this->referenceName; } - public function setSequenceStart($sequenceStart) + public function setStart($start) { - $this->sequenceStart = $sequenceStart; + $this->start = $start; } - public function getSequenceStart() + public function getStart() { - return $this->sequenceStart; + return $this->start; } } class Google_Service_Genomics_SearchReadsResponse extends Google_Collection { - protected $collection_key = 'reads'; + protected $collection_key = 'alignments'; + protected $internal_gapi_mappings = array( + ); + protected $alignmentsType = 'Google_Service_Genomics_Read'; + protected $alignmentsDataType = 'array'; + public $nextPageToken; + + public function setAlignments($alignments) + { + $this->alignments = $alignments; + } + + public function getAlignments() + { + return $this->alignments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + +} + +class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection +{ + protected $collection_key = 'md5checksums'; + protected $internal_gapi_mappings = array( + ); + public $accessions; + public $md5checksums; + public $pageSize; + public $pageToken; + + public function setAccessions($accessions) + { + $this->accessions = $accessions; + } + + public function getAccessions() + { + return $this->accessions; + } + public function setMd5checksums($md5checksums) + { + $this->md5checksums = $md5checksums; + } + + public function getMd5checksums() + { + return $this->md5checksums; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + + public function getPageToken() + { + return $this->pageToken; + } + +} + +class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection +{ + protected $collection_key = 'referenceSets'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $readsType = 'Google_Service_Genomics_Read'; - protected $readsDataType = 'array'; + protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet'; + protected $referenceSetsDataType = 'array'; public function setNextPageToken($nextPageToken) { @@ -3129,54 +3656,55 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setReads($reads) + public function setReferenceSets($referenceSets) { - $this->reads = $reads; + $this->referenceSets = $referenceSets; } - public function getReads() + public function getReferenceSets() { - return $this->reads; + return $this->referenceSets; } } -class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection +class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection { - protected $collection_key = 'datasetIds'; + protected $collection_key = 'md5checksums'; protected $internal_gapi_mappings = array( ); - public $datasetIds; - public $maxResults; - public $name; + public $accessions; + public $md5checksums; + public $pageSize; public $pageToken; + public $referenceSetId; - public function setDatasetIds($datasetIds) + public function setAccessions($accessions) { - $this->datasetIds = $datasetIds; + $this->accessions = $accessions; } - public function getDatasetIds() + public function getAccessions() { - return $this->datasetIds; + return $this->accessions; } - public function setMaxResults($maxResults) + public function setMd5checksums($md5checksums) { - $this->maxResults = $maxResults; + $this->md5checksums = $md5checksums; } - public function getMaxResults() + public function getMd5checksums() { - return $this->maxResults; + return $this->md5checksums; } - public function setName($name) + public function setPageSize($pageSize) { - $this->name = $name; + $this->pageSize = $pageSize; } - public function getName() + public function getPageSize() { - return $this->name; + return $this->pageSize; } public function setPageToken($pageToken) { @@ -3187,17 +3715,26 @@ public function getPageToken() { return $this->pageToken; } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + + public function getReferenceSetId() + { + return $this->referenceSetId; + } } -class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection +class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection { - protected $collection_key = 'readsets'; + protected $collection_key = 'references'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $readsetsType = 'Google_Service_Genomics_Readset'; - protected $readsetsDataType = 'array'; + protected $referencesType = 'Google_Service_Genomics_Reference'; + protected $referencesDataType = 'array'; public function setNextPageToken($nextPageToken) { @@ -3208,14 +3745,14 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setReadsets($readsets) + public function setReferences($references) { - $this->readsets = $readsets; + $this->references = $references; } - public function getReadsets() + public function getReferences() { - return $this->readsets; + return $this->references; } } From 4793f71912b5ef6cdbc8dfc24ff27c1ae39b3ccf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 29 Oct 2014 02:47:08 -0700 Subject: [PATCH 0431/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 344 ++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index d3462686f..de089b622 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -38,6 +38,7 @@ class Google_Service_Autoscaler extends Google_Service public $autoscalers; public $zoneOperations; + public $zones; /** @@ -261,6 +262,38 @@ public function __construct(Google_Client $client) ) ) ); + $this->zones = new Google_Service_Autoscaler_Zones_Resource( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/zones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); } } @@ -467,6 +500,40 @@ public function listZoneOperations($project, $zone, $optParams = array()) } } +/** + * The "zones" collection of methods. + * Typical usage is: + * + * $autoscalerService = new Google_Service_Autoscaler(...); + * $zones = $autoscalerService->zones; + * + */ +class Google_Service_Autoscaler_Zones_Resource extends Google_Service_Resource +{ + + /** + * (zones.listZones) + * + * @param string $project + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * + * @opt_param string pageToken + * + * @opt_param string maxResults + * + * @return Google_Service_Autoscaler_ZoneList + */ + public function listZones($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Autoscaler_ZoneList"); + } +} + @@ -745,6 +812,64 @@ public function getUtilizationTarget() } +class Google_Service_Autoscaler_DeprecationStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Autoscaler_Operation extends Google_Collection { protected $collection_key = 'warnings'; @@ -1161,3 +1286,222 @@ public function getValue() } } + +class Google_Service_Autoscaler_Zone extends Google_Collection +{ + protected $collection_key = 'maintenanceWindows'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Autoscaler_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + protected $maintenanceWindowsType = 'Google_Service_Autoscaler_ZoneMaintenanceWindows'; + protected $maintenanceWindowsDataType = 'array'; + public $name; + public $region; + public $selfLink; + public $status; + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Autoscaler_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setMaintenanceWindows($maintenanceWindows) + { + $this->maintenanceWindows = $maintenanceWindows; + } + + public function getMaintenanceWindows() + { + return $this->maintenanceWindows; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setRegion($region) + { + $this->region = $region; + } + + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + +} + +class Google_Service_Autoscaler_ZoneList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Autoscaler_Zone'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + +} + +class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } + +} From a45d309ea6fe2f89dcaf5caad89720d07ba1dc67 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 31 Oct 2014 02:49:21 -0700 Subject: [PATCH 0432/1274] Added service Replicapoolupdater.php --- src/Google/Service/Replicapoolupdater.php | 642 ++++++++++++++++++++++ 1 file changed, 642 insertions(+) create mode 100644 src/Google/Service/Replicapoolupdater.php diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php new file mode 100644 index 000000000..26795ad64 --- /dev/null +++ b/src/Google/Service/Replicapoolupdater.php @@ -0,0 +1,642 @@ + + * The Google Compute Engine Instance Group Updater API provides services for updating groups of Compute Engine Instances. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Replicapoolupdater extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage replica pools. */ + const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; + /** View replica pools. */ + const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; + + public $updates; + + + /** + * Constructs the internal representation of the Replicapoolupdater service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'replicapoolupdater/v1beta1/projects/'; + $this->version = 'v1beta1'; + $this->serviceName = 'replicapoolupdater'; + + $this->updates = new Google_Service_Replicapoolupdater_Updates_Resource( + $this, + $this->serviceName, + 'updates', + array( + 'methods' => array( + 'cancel' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateHandle' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateHandle' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'pause' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/pause', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateHandle' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'rollback' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/rollback', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateHandle' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'rollforward' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/rollforward', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateHandle' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "updates" collection of methods. + * Typical usage is: + * + * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); + * $updates = $replicapoolupdaterService->updates; + * + */ +class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_Resource +{ + + /** + * Called on the particular Update endpoint. Cancels the update in state PAUSED. + * No-op if invoked in state CANCELLED. (updates.cancel) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param string $updateHandle + * Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + */ + public function cancel($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } + /** + * Called on the particular Update endpoint. Returns the Update resource. + * (updates.get) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param string $updateHandle + * Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Update + */ + public function get($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update"); + } + /** + * Called on the collection endpoint. Inserts the new Update resource and starts + * the update. (updates.insert) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param Google_Update $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_InsertResponse + */ + public function insert($project, $zone, $instanceGroupManager, Google_Service_Replicapoolupdater_Update $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse"); + } + /** + * Called on the collection endpoint. Lists updates for a given instance group, + * in reverse chronological order. Pagination is supported, see + * ListRequestHeader. (updates.listUpdates) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Set this to the nextPageToken value returned by a previous list request to obtain the next page + * of results from the previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 1 to 100, inclusive. (Default: + * 50) + * @return Google_Service_Replicapoolupdater_UpdateList + */ + public function listUpdates($project, $zone, $instanceGroupManager, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList"); + } + /** + * Called on the particular Update endpoint. Pauses the update in state from { + * ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state PAUSED. + * (updates.pause) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param string $updateHandle + * Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + */ + public function pause($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array_merge($params, $optParams); + return $this->call('pause', array($params)); + } + /** + * Called on the particular Update endpoint. Rolls back the update in state from + * { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state + * ROLLED_BACK. (updates.rollback) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param string $updateHandle + * Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + */ + public function rollback($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array_merge($params, $optParams); + return $this->call('rollback', array($params)); + } + /** + * Called on the particular Update endpoint. Rolls forward the update in state + * from { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state + * ROLLED_OUT. (updates.rollforward) + * + * @param string $project + * Project ID for this request. + * @param string $zone + * Zone for the instance group manager. + * @param string $instanceGroupManager + * Name of the instance group manager for this request. + * @param string $updateHandle + * Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + */ + public function rollforward($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array_merge($params, $optParams); + return $this->call('rollforward', array($params)); + } +} + + + + +class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $updateHandle; + + public function setUpdateHandle($updateHandle) + { + $this->updateHandle = $updateHandle; + } + + public function getUpdateHandle() + { + return $this->updateHandle; + } + +} + +class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceName; + public $state; + + public function setInstanceName($instanceName) + { + $this->instanceName = $instanceName; + } + + public function getInstanceName() + { + return $this->instanceName; + } + public function setState($state) + { + $this->state = $state; + } + + public function getState() + { + return $this->state; + } + +} + +class Google_Service_Replicapoolupdater_Update extends Google_Collection +{ + protected $collection_key = 'instanceUpdates'; + protected $internal_gapi_mappings = array( + ); + public $details; + public $handle; + public $instanceTemplate; + protected $instanceUpdatesType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; + protected $instanceUpdatesDataType = 'array'; + public $kind; + protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy'; + protected $policyDataType = ''; + public $selfLink; + public $state; + public $targetState; + + public function setDetails($details) + { + $this->details = $details; + } + + public function getDetails() + { + return $this->details; + } + public function setHandle($handle) + { + $this->handle = $handle; + } + + public function getHandle() + { + return $this->handle; + } + public function setInstanceTemplate($instanceTemplate) + { + $this->instanceTemplate = $instanceTemplate; + } + + public function getInstanceTemplate() + { + return $this->instanceTemplate; + } + public function setInstanceUpdates($instanceUpdates) + { + $this->instanceUpdates = $instanceUpdates; + } + + public function getInstanceUpdates() + { + return $this->instanceUpdates; + } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } + public function setPolicy(Google_Service_Replicapoolupdater_UpdatePolicy $policy) + { + $this->policy = $policy; + } + + public function getPolicy() + { + return $this->policy; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + + public function getSelfLink() + { + return $this->selfLink; + } + public function setState($state) + { + $this->state = $state; + } + + public function getState() + { + return $this->state; + } + public function setTargetState($targetState) + { + $this->targetState = $targetState; + } + + public function getTargetState() + { + return $this->targetState; + } + +} + +class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Replicapoolupdater_Update'; + protected $itemsDataType = 'array'; + public $nextPageToken; + + public function setItems($items) + { + $this->items = $items; + } + + public function getItems() + { + return $this->items; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + +} + +class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $canaryType = 'Google_Service_Replicapoolupdater_UpdatePolicyCanary'; + protected $canaryDataType = ''; + public $maxNumConcurrentInstances; + public $sleepAfterInstanceRestartSec; + + public function setCanary(Google_Service_Replicapoolupdater_UpdatePolicyCanary $canary) + { + $this->canary = $canary; + } + + public function getCanary() + { + return $this->canary; + } + public function setMaxNumConcurrentInstances($maxNumConcurrentInstances) + { + $this->maxNumConcurrentInstances = $maxNumConcurrentInstances; + } + + public function getMaxNumConcurrentInstances() + { + return $this->maxNumConcurrentInstances; + } + public function setSleepAfterInstanceRestartSec($sleepAfterInstanceRestartSec) + { + $this->sleepAfterInstanceRestartSec = $sleepAfterInstanceRestartSec; + } + + public function getSleepAfterInstanceRestartSec() + { + return $this->sleepAfterInstanceRestartSec; + } + +} + +class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $numInstances; + + public function setNumInstances($numInstances) + { + $this->numInstances = $numInstances; + } + + public function getNumInstances() + { + return $this->numInstances; + } + +} From 1bbcc726937f16d5d69f533c635159fbb58ce536 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 31 Oct 2014 02:49:21 -0700 Subject: [PATCH 0433/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 420 ++++++++++++++++++++++++++++---- 1 file changed, 370 insertions(+), 50 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index dfb9d013a..076da5253 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -259,7 +259,15 @@ public function __construct(Google_Client $client) 'readgroupsets', array( 'methods' => array( - 'delete' => array( + 'align' => array( + 'path' => 'readgroupsets/align', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'call' => array( + 'path' => 'readgroupsets/call', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( 'path' => 'readgroupsets/{readGroupSetId}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -621,7 +629,7 @@ public function create(Google_Service_Genomics_CallSet $postBody, $optParams = a * Deletes a call set. (callsets.delete) * * @param string $callSetId - * The ID of the callset to be deleted. + * The ID of the call set to be deleted. * @param array $optParams Optional parameters. */ public function delete($callSetId, $optParams = array()) @@ -634,7 +642,7 @@ public function delete($callSetId, $optParams = array()) * Gets a call set by ID. (callsets.get) * * @param string $callSetId - * The ID of the callset. + * The ID of the call set. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet */ @@ -648,7 +656,7 @@ public function get($callSetId, $optParams = array()) * Updates a call set. This method supports patch semantics. (callsets.patch) * * @param string $callSetId - * The ID of the callset to be updated. + * The ID of the call set to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet @@ -660,7 +668,9 @@ public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $op return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); } /** - * Gets a list of call sets matching the criteria. (callsets.search) + * Gets a list of call sets matching the criteria. + * + * Implements GlobalAllianceApi.searchCallSets. (callsets.search) * * @param Google_SearchCallSetsRequest $postBody * @param array $optParams Optional parameters. @@ -676,7 +686,7 @@ public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, * Updates a call set. (callsets.update) * * @param string $callSetId - * The ID of the callset to be updated. + * The ID of the call set to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet @@ -749,7 +759,8 @@ public function get($datasetId, $optParams = array()) * 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 projectNumber - * Only return datasets which belong to this Google Developers Console project. + * Only return datasets which belong to this Google Developers Console project. Only accepts + * project numbers. Returns all public projects if no project number is specified. * @opt_param int pageSize * The maximum number of results returned by this request. * @return Google_Service_Genomics_ListDatasetsResponse @@ -914,7 +925,36 @@ class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Reso { /** - * Deletes a ReadGroupSet. (readgroupsets.delete) + * Aligns read data from existing read group sets or files from Google Cloud + * Storage. See Alignment for more details. (readgroupsets.align) + * + * @param Google_AlignReadGroupSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_AlignReadGroupSetsResponse + */ + public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('align', array($params), "Google_Service_Genomics_AlignReadGroupSetsResponse"); + } + /** + * Calls variants on read data from existing read group sets or files from + * Google Cloud Storage. See Variant Calling for more details. + * (readgroupsets.call) + * + * @param Google_CallReadGroupSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_CallReadGroupSetsResponse + */ + public function call(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('call', array($params), "Google_Service_Genomics_CallReadGroupSetsResponse"); + } + /** + * Deletes a read group set. (readgroupsets.delete) * * @param string $readGroupSetId * The ID of the read group set to be deleted. The caller must have WRITE permissions to the @@ -928,11 +968,12 @@ public function delete($readGroupSetId, $optParams = array()) return $this->call('delete', array($params)); } /** - * Exports ReadGroupSets to a BAM file in Google Cloud Storage. Note that - * currently there may be some differences between exported BAM files and the - * original BAM file at the time of import. In particular, comments in the input - * file header will not be preserved, and some custom tags will be converted to - * strings. (readgroupsets.export) + * Exports read group sets to a BAM file in Google Cloud Storage. + * + * Note that currently there may be some differences between exported BAM files + * and the original BAM file at the time of import. In particular, comments in + * the input file header will not be preserved, and some custom tags will be + * converted to strings. (readgroupsets.export) * * @param Google_ExportReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -945,7 +986,7 @@ public function export(Google_Service_Genomics_ExportReadGroupSetsRequest $postB return $this->call('export', array($params), "Google_Service_Genomics_ExportReadGroupSetsResponse"); } /** - * Gets a ReadGroupSet by ID. (readgroupsets.get) + * Gets a read group set by ID. (readgroupsets.get) * * @param string $readGroupSetId * The ID of the read group set. @@ -959,7 +1000,8 @@ public function get($readGroupSetId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); } /** - * Creates ReadGroupSets by asynchronously importing the provided information. + * Creates read group sets by asynchronously importing the provided information. + * * Note that currently comments in the input file header are not imported and * some custom tags will be converted to strings, rather than preserving tag * types. The caller must have WRITE permissions to the dataset. @@ -976,7 +1018,7 @@ public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postB return $this->call('import', array($params), "Google_Service_Genomics_ImportReadGroupSetsResponse"); } /** - * Updates a ReadGroupSet. This method supports patch semantics. + * Updates a read group set. This method supports patch semantics. * (readgroupsets.patch) * * @param string $readGroupSetId @@ -993,7 +1035,9 @@ public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $pos return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); } /** - * Gets a list of ReadGroupSets matching the criteria. (readgroupsets.search) + * Searches for read group sets matching the criteria. + * + * Implements GlobalAllianceApi.searchReadGroupSets. (readgroupsets.search) * * @param Google_SearchReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1006,7 +1050,7 @@ public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postB return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); } /** - * Updates a ReadGroupSet. (readgroupsets.update) + * Updates a read group set. (readgroupsets.update) * * @param string $readGroupSetId * The ID of the read group set to be updated. The caller must have WRITE permissions to the @@ -1035,13 +1079,14 @@ class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Goog { /** - * Lists fixed width coverage buckets for a ReadGroupSet, each of which + * Lists fixed width coverage buckets for a read group set, each of which * correspond to a range of a reference sequence. Each bucket summarizes - * coverage information across its corresponding genomic range. Coverage is - * defined as the number of reads which are aligned to a given base in the - * reference sequence. Coverage buckets are available at various bucket widths, - * enabling various coverage "zoom levels". The caller must have READ - * permissions for the target ReadGroupSet. + * coverage information across its corresponding genomic range. + * + * Coverage is defined as the number of reads which are aligned to a given base + * in the reference sequence. Coverage buckets are available at several + * precomputed bucket widths, enabling retrieval of various coverage 'zoom + * levels'. The caller must have READ permissions for the target read group set. * (coveragebuckets.listReadgroupsetsCoveragebuckets) * * @param string $readGroupSetId @@ -1058,7 +1103,7 @@ class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Goog * The end position of the range on the reference, 0-based exclusive. If specified, referenceName * must also be specified. * @opt_param string range.referenceName - * The reference sequence name, for example "chr1", "1", or "chrX". + * The reference sequence name, for example chr1, 1, or chrX. * @opt_param string pageToken * The continuation token, which is used to page through large result sets. To get the next page of * results, set this parameter to the value of nextPageToken from the previous response. @@ -1090,16 +1135,20 @@ class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource { /** - * Gets a list of reads for one or more ReadGroupSets. Reads search operates + * Gets a list of reads for one or more read group sets. Reads search operates * over a genomic coordinate space of reference sequence & position defined over - * the reference sequences to which the requested ReadGroupSets are aligned. If - * a target positional range is specified, search returns all reads whose + * the reference sequences to which the requested read group sets are aligned. + * + * If a target positional range is specified, search returns all reads whose * alignment to the reference genome overlap the range. A query which specifies - * only ReadGroupSet IDs yields all reads in those ReadGroupSets, including - * unmapped reads. All reads returned (including reads on subsequent pages) are - * ordered by genomic coordinate (reference sequence & position). Reads with - * equivalent genomic coordinates are returned in a deterministic order. - * (reads.search) + * only read group set IDs yields all reads in those read group sets, including + * unmapped reads. + * + * All reads returned (including reads on subsequent pages) are ordered by + * genomic coordinate (reference sequence & position). Reads with equivalent + * genomic coordinates are returned in a deterministic order. + * + * Implements GlobalAllianceApi.searchReads. (reads.search) * * @param Google_SearchReadsRequest $postBody * @param array $optParams Optional parameters. @@ -1127,8 +1176,7 @@ class Google_Service_Genomics_References_Resource extends Google_Service_Resourc /** * Gets a reference. * - * Implements GAReferenceMethods::getReference - * (https://github.com/ga4gh/schemas). (references.get) + * Implements GlobalAllianceApi.getReference. (references.get) * * @param string $referenceId * The ID of the reference. @@ -1144,8 +1192,7 @@ public function get($referenceId, $optParams = array()) /** * Searches for references which match the given criteria. * - * Implements GAReferenceMethods::searchReferences - * (https://github.com/ga4gh/schemas). (references.search) + * Implements GlobalAllianceApi.searchReferences. (references.search) * * @param Google_SearchReferencesRequest $postBody * @param array $optParams Optional parameters. @@ -1173,8 +1220,7 @@ class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Re /** * Lists the bases in a reference, optionally restricted to a range. * - * Implements GAReferenceMethods::getReferenceBases - * (https://github.com/ga4gh/schemas). (bases.listReferencesBases) + * Implements GlobalAllianceApi.getReferenceBases. (bases.listReferencesBases) * * @param string $referenceId * The ID of the reference. @@ -1184,8 +1230,7 @@ class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Re * 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 end - * The end position (0-based, exclusive) of this query. Defaults to the length length of this - * reference. + * The end position (0-based, exclusive) of this query. Defaults to the length of this reference. * @opt_param int pageSize * Specifies the maximum number of bases to return in a single page. * @opt_param string start @@ -1214,8 +1259,7 @@ class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Reso /** * Gets a reference set. * - * Implements GAReferenceMethods::getReferenceSet - * (https://github.com/ga4gh/schemas). (referencesets.get) + * Implements GlobalAllianceApi.getReferenceSet. (referencesets.get) * * @param string $referenceSetId * The ID of the reference set. @@ -1231,8 +1275,7 @@ public function get($referenceSetId, $optParams = array()) /** * Searches for reference sets which match the given criteria. * - * Implements GAReferenceMethods::searchReferenceSets - * (https://github.com/ga4gh/schemas). (referencesets.search) + * Implements GlobalAllianceApi.searchReferenceSets. (referencesets.search) * * @param Google_SearchReferenceSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1298,7 +1341,9 @@ public function get($variantId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } /** - * Gets a list of variants matching the criteria. (variants.search) + * Gets a list of variants matching the criteria. + * + * Implements GlobalAllianceApi.searchVariants. (variants.search) * * @param Google_SearchVariantsRequest $postBody * @param array $optParams Optional parameters. @@ -1386,6 +1431,7 @@ public function get($variantSetId, $optParams = array()) } /** * Creates variant data by asynchronously importing the provided information. + * * The variants for import will be merged with any existing data and each other * according to the behavior of mergeVariants. In particular, this means for * merged VCF variants that have conflicting INFO fields, some data will be @@ -1429,8 +1475,7 @@ public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVarian } /** * Updates a variant set's metadata. All other modifications are silently - * ignored. Returns the modified variant set. This method supports patch - * semantics. (variantsets.patch) + * ignored. This method supports patch semantics. (variantsets.patch) * * @param string $variantSetId * The ID of the variant to be updated. @@ -1446,7 +1491,8 @@ public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBod } /** * Returns a list of all variant sets matching search criteria. - * (variantsets.search) + * + * Implements GlobalAllianceApi.searchVariantSets. (variantsets.search) * * @param Google_SearchVariantSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1460,7 +1506,7 @@ public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBod } /** * Updates a variant set's metadata. All other modifications are silently - * ignored. Returns the modified variant set. (variantsets.update) + * ignored. (variantsets.update) * * @param string $variantSetId * The ID of the variant to be updated. @@ -1479,6 +1525,85 @@ public function update($variantSetId, Google_Service_Genomics_VariantSet $postBo +class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'readGroupSetIds'; + protected $internal_gapi_mappings = array( + ); + public $bamSourceUris; + public $datasetId; + protected $interleavedFastqSourceType = 'Google_Service_Genomics_InterleavedFastqSource'; + protected $interleavedFastqSourceDataType = ''; + protected $pairedFastqSourceType = 'Google_Service_Genomics_PairedFastqSource'; + protected $pairedFastqSourceDataType = ''; + public $readGroupSetIds; + + public function setBamSourceUris($bamSourceUris) + { + $this->bamSourceUris = $bamSourceUris; + } + + public function getBamSourceUris() + { + return $this->bamSourceUris; + } + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + + public function getDatasetId() + { + return $this->datasetId; + } + public function setInterleavedFastqSource(Google_Service_Genomics_InterleavedFastqSource $interleavedFastqSource) + { + $this->interleavedFastqSource = $interleavedFastqSource; + } + + public function getInterleavedFastqSource() + { + return $this->interleavedFastqSource; + } + public function setPairedFastqSource(Google_Service_Genomics_PairedFastqSource $pairedFastqSource) + { + $this->pairedFastqSource = $pairedFastqSource; + } + + public function getPairedFastqSource() + { + return $this->pairedFastqSource; + } + public function setReadGroupSetIds($readGroupSetIds) + { + $this->readGroupSetIds = $readGroupSetIds; + } + + public function getReadGroupSetIds() + { + return $this->readGroupSetIds; + } + +} + +class Google_Service_Genomics_AlignReadGroupSetsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $jobId; + + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + + public function getJobId() + { + return $this->jobId; + } + +} + class Google_Service_Genomics_Call extends Google_Collection { protected $collection_key = 'genotypeLikelihood'; @@ -1556,6 +1681,63 @@ class Google_Service_Genomics_CallInfo extends Google_Model } +class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $readGroupSetIds; + public $sourceUris; + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + + public function getDatasetId() + { + return $this->datasetId; + } + public function setReadGroupSetIds($readGroupSetIds) + { + $this->readGroupSetIds = $readGroupSetIds; + } + + public function getReadGroupSetIds() + { + return $this->readGroupSetIds; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + + public function getSourceUris() + { + return $this->sourceUris; + } + +} + +class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $jobId; + + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + + public function getJobId() + { + return $this->jobId; + } + +} + class Google_Service_Genomics_CallSet extends Google_Collection { protected $collection_key = 'variantSetIds'; @@ -1979,6 +2161,64 @@ public function getJobId() } +class Google_Service_Genomics_FastqMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $libraryName; + public $platformName; + public $platformUnit; + public $readGroupName; + public $sampleName; + + public function setLibraryName($libraryName) + { + $this->libraryName = $libraryName; + } + + public function getLibraryName() + { + return $this->libraryName; + } + public function setPlatformName($platformName) + { + $this->platformName = $platformName; + } + + public function getPlatformName() + { + return $this->platformName; + } + public function setPlatformUnit($platformUnit) + { + $this->platformUnit = $platformUnit; + } + + public function getPlatformUnit() + { + return $this->platformUnit; + } + public function setReadGroupName($readGroupName) + { + $this->readGroupName = $readGroupName; + } + + public function getReadGroupName() + { + return $this->readGroupName; + } + public function setSampleName($sampleName) + { + $this->sampleName = $sampleName; + } + + public function getSampleName() + { + return $this->sampleName; + } + +} + class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; @@ -2083,6 +2323,36 @@ public function getJobId() } +class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; + protected $metadataDataType = ''; + public $sourceUris; + + public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) + { + $this->metadata = $metadata; + } + + public function getMetadata() + { + return $this->metadata; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + + public function getSourceUris() + { + return $this->sourceUris; + } + +} + class Google_Service_Genomics_Job extends Google_Collection { protected $collection_key = 'warnings'; @@ -2477,6 +2747,46 @@ class Google_Service_Genomics_MetadataInfo extends Google_Model } +class Google_Service_Genomics_PairedFastqSource extends Google_Collection +{ + protected $collection_key = 'secondSourceUris'; + protected $internal_gapi_mappings = array( + ); + public $firstSourceUris; + protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; + protected $metadataDataType = ''; + public $secondSourceUris; + + public function setFirstSourceUris($firstSourceUris) + { + $this->firstSourceUris = $firstSourceUris; + } + + public function getFirstSourceUris() + { + return $this->firstSourceUris; + } + public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) + { + $this->metadata = $metadata; + } + + public function getMetadata() + { + return $this->metadata; + } + public function setSecondSourceUris($secondSourceUris) + { + $this->secondSourceUris = $secondSourceUris; + } + + public function getSecondSourceUris() + { + return $this->secondSourceUris; + } + +} + class Google_Service_Genomics_Position extends Google_Model { protected $internal_gapi_mappings = array( @@ -2749,6 +3059,7 @@ class Google_Service_Genomics_ReadGroup extends Google_Collection public $predictedInsertSize; protected $programsType = 'Google_Service_Genomics_ReadGroupProgram'; protected $programsDataType = 'array'; + public $referenceSetId; public $sampleId; public function setDatasetId($datasetId) @@ -2823,6 +3134,15 @@ public function getPrograms() { return $this->programs; } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + + public function getReferenceSetId() + { + return $this->referenceSetId; + } public function setSampleId($sampleId) { $this->sampleId = $sampleId; From 3ffd7fabb8da04b5f3ca01f8cabe06eaf9fb66b6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 31 Oct 2014 02:49:22 -0700 Subject: [PATCH 0434/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index 9d738775e..bb6b2df95 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -209,7 +209,11 @@ public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, /** * Creates a subscription on a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. + * + * If the name is not provided in the request, the server will assign a random + * name for this subscription on the same project as the topic. + * (subscriptions.create) * * @param Google_Subscription $postBody * @param array $optParams Optional parameters. From 354ed386eda6cabed86d3492163ae5634a4ba47e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 31 Oct 2014 02:49:22 -0700 Subject: [PATCH 0435/1274] Added service Fitness.php --- src/Google/Service/Fitness.php | 1181 ++++++++++++++++++++++++++++++++ 1 file changed, 1181 insertions(+) create mode 100644 src/Google/Service/Fitness.php diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php new file mode 100644 index 000000000..dbfb8b47c --- /dev/null +++ b/src/Google/Service/Fitness.php @@ -0,0 +1,1181 @@ + + * Google Fit API + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Fitness extends Google_Service +{ + /** View your activity information in Google Fit. */ + const FITNESS_ACTIVITY_READ = "https://www.googleapis.com/auth/fitness.activity.read"; + /** View and store your activity information in Google Fit. */ + const FITNESS_ACTIVITY_WRITE = "https://www.googleapis.com/auth/fitness.activity.write"; + /** View body sensor information in Google Fit. */ + const FITNESS_BODY_READ = "https://www.googleapis.com/auth/fitness.body.read"; + /** View and store body sensor data in Google Fit. */ + const FITNESS_BODY_WRITE = "https://www.googleapis.com/auth/fitness.body.write"; + /** View your stored location data in Google Fit. */ + const FITNESS_LOCATION_READ = "https://www.googleapis.com/auth/fitness.location.read"; + /** View and store your location data in Google Fit. */ + const FITNESS_LOCATION_WRITE = "https://www.googleapis.com/auth/fitness.location.write"; + + public $users_dataSources; + public $users_dataSources_datasets; + public $users_sessions; + + + /** + * Constructs the internal representation of the Fitness service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'fitness/v1/users/'; + $this->version = 'v1'; + $this->serviceName = 'fitness'; + + $this->users_dataSources = new Google_Service_Fitness_UsersDataSources_Resource( + $this, + $this->serviceName, + 'dataSources', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/dataSources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/dataSources/{dataSourceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{userId}/dataSources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataTypeName' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => '{userId}/dataSources/{dataSourceId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{userId}/dataSources/{dataSourceId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_dataSources_datasets = new Google_Service_Fitness_UsersDataSourcesDatasets_Resource( + $this, + $this->serviceName, + 'datasets', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modifiedTimeMillis' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'currentTimeMillis' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'currentTimeMillis' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users_sessions = new Google_Service_Fitness_UsersSessions_Resource( + $this, + $this->serviceName, + 'sessions', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/sessions/{sessionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sessionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'currentTimeMillis' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{userId}/sessions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => '{userId}/sessions/{sessionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sessionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'currentTimeMillis' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $users = $fitnessService->users; + * + */ +class Google_Service_Fitness_Users_Resource extends Google_Service_Resource +{ + +} + +/** + * The "dataSources" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $dataSources = $fitnessService->dataSources; + * + */ +class Google_Service_Fitness_UsersDataSources_Resource extends Google_Service_Resource +{ + + /** + * Creates a new data source that is unique across all data sources belonging to + * this user. The data stream ID field can be omitted and will be generated by + * the server with the correct format. The data stream ID is an ordered + * combination of some fields from the data source. In addition to the data + * source fields reflected into the data source ID, the developer project number + * that is authenticated when creating the data source is included. This + * developer project number is obfuscated when read by any other developer + * reading public data types. (dataSources.create) + * + * @param string $userId + * Create the data source for the person identified. Use me to indicate the authenticated user. + * Only me is supported at this time. + * @param Google_DataSource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function create($userId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Fitness_DataSource"); + } + /** + * Returns a data source identified by a data stream ID. (dataSources.get) + * + * @param string $userId + * Retrieve a data source for the person identified. Use me to indicate the authenticated user. + * Only me is supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function get($userId, $dataSourceId, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fitness_DataSource"); + } + /** + * Lists all data sources that are visible to the developer, using the OAuth + * scopes provided. The list is not exhaustive: the user may have private data + * sources that are only visible to other developers or calls using other + * scopes. (dataSources.listUsersDataSources) + * + * @param string $userId + * List data sources for the person identified. Use me to indicate the authenticated user. Only me + * is supported at this time. + * @param array $optParams Optional parameters. + * + * @opt_param string dataTypeName + * The names of data types to include in the list. If not specified, all data sources will be + * returned. + * @return Google_Service_Fitness_ListDataSourcesResponse + */ + public function listUsersDataSources($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse"); + } + /** + * Updates a given data source. It is an error to modify the data source's data + * stream ID, data type, type, stream name or device information apart from the + * device version. Changing these fields would require a new unique data stream + * ID and separate data source. + * + * Data sources are identified by their data stream ID. This method supports + * patch semantics. (dataSources.patch) + * + * @param string $userId + * Update the data source for the person identified. Use me to indicate the authenticated user. + * Only me is supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source to update. + * @param Google_DataSource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fitness_DataSource"); + } + /** + * Updates a given data source. It is an error to modify the data source's data + * stream ID, data type, type, stream name or device information apart from the + * device version. Changing these fields would require a new unique data stream + * ID and separate data source. + * + * Data sources are identified by their data stream ID. (dataSources.update) + * + * @param string $userId + * Update the data source for the person identified. Use me to indicate the authenticated user. + * Only me is supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source to update. + * @param Google_DataSource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function update($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fitness_DataSource"); + } +} + +/** + * The "datasets" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $datasets = $fitnessService->datasets; + * + */ +class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Service_Resource +{ + + /** + * Performs an inclusive delete of all data points whose start and end times + * have any overlap with the time range specified by the dataset ID. For most + * data types, the entire data point will be deleted. For data types where the + * time span represents a consistent value (such as + * com.google.activity.segment), and a data point straddles either end point of + * the dataset, only the overlapping portion of the data point will be deleted. + * (datasets.delete) + * + * @param string $userId + * Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me + * is supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source that created the dataset. + * @param string $datasetId + * Dataset identifier that is a composite of the minimum data point start time and maximum data + * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- + * endTime" where startTime and endTime are 64 bit integers. + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedTimeMillis + * When the operation was performed on the client. + * @opt_param string currentTimeMillis + * The client's current time in milliseconds since epoch. + */ + public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Returns a dataset containing all data points whose start and end times + * overlap with the specified range of the dataset minimum start time and + * maximum end time. Specifically, any data point whose start time is less than + * or equal to the dataset end time and whose end time is greater than or equal + * to the dataset start time. (datasets.get) + * + * @param string $userId + * Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me + * is supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source that created the dataset. + * @param string $datasetId + * Dataset identifier that is a composite of the minimum data point start time and maximum data + * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- + * endTime" where startTime and endTime are 64 bit integers. + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_Dataset + */ + public function get($userId, $dataSourceId, $datasetId, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fitness_Dataset"); + } + /** + * Adds data points to a dataset. The dataset need not be previously created. + * All points within the given dataset will be returned with subsquent calls to + * retrieve this dataset. Data points can belong to more than one dataset. This + * method does not use patch semantics. (datasets.patch) + * + * @param string $userId + * Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is + * supported at this time. + * @param string $dataSourceId + * The data stream ID of the data source that created the dataset. + * @param string $datasetId + * Dataset identifier that is a composite of the minimum data point start time and maximum data + * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- + * endTime" where startTime and endTime are 64 bit integers. + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string currentTimeMillis + * The client's current time in milliseconds since epoch. Note that the minStartTimeNs and + * maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. + * @return Google_Service_Fitness_Dataset + */ + public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness_Dataset $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fitness_Dataset"); + } +} +/** + * The "sessions" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $sessions = $fitnessService->sessions; + * + */ +class Google_Service_Fitness_UsersSessions_Resource extends Google_Service_Resource +{ + + /** + * Deletes a session specified by the given session ID. (sessions.delete) + * + * @param string $userId + * Delete a session for the person identified. Use me to indicate the authenticated user. Only me + * is supported at this time. + * @param string $sessionId + * The ID of the session to be deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string currentTimeMillis + * The client's current time in milliseconds since epoch. + */ + public function delete($userId, $sessionId, $optParams = array()) + { + $params = array('userId' => $userId, 'sessionId' => $sessionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Lists sessions previously created. (sessions.listUsersSessions) + * + * @param string $userId + * List sessions for the person identified. Use me to indicate the authenticated user. Only me is + * supported at this time. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of nextPageToken from the previous response. + * @opt_param string endTime + * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in + * the response. + * @opt_param bool includeDeleted + * If true, deleted sessions will be returned. When set to true, sessions returned in this response + * will only have an ID and will not have any other fields. + * @opt_param string startTime + * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in + * the response. + * @return Google_Service_Fitness_ListSessionsResponse + */ + public function listUsersSessions($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fitness_ListSessionsResponse"); + } + /** + * Updates or insert a given session. (sessions.update) + * + * @param string $userId + * Create sessions for the person identified. Use me to indicate the authenticated user. Only me is + * supported at this time. + * @param string $sessionId + * The ID of the session to be created. + * @param Google_Session $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string currentTimeMillis + * The client's current time in milliseconds since epoch. + * @return Google_Service_Fitness_Session + */ + public function update($userId, $sessionId, Google_Service_Fitness_Session $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fitness_Session"); + } +} + + + + +class Google_Service_Fitness_Application extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $detailsUrl; + public $name; + public $packageName; + public $version; + + public function setDetailsUrl($detailsUrl) + { + $this->detailsUrl = $detailsUrl; + } + + public function getDetailsUrl() + { + return $this->detailsUrl; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function getPackageName() + { + return $this->packageName; + } + public function setVersion($version) + { + $this->version = $version; + } + + public function getVersion() + { + return $this->version; + } + +} + +class Google_Service_Fitness_DataPoint extends Google_Collection +{ + protected $collection_key = 'value'; + protected $internal_gapi_mappings = array( + ); + public $computationTimeMillis; + public $dataTypeName; + public $endTimeNanos; + public $modifiedTimeMillis; + public $originDataSourceId; + public $rawTimestampNanos; + public $startTimeNanos; + protected $valueType = 'Google_Service_Fitness_Value'; + protected $valueDataType = 'array'; + + public function setComputationTimeMillis($computationTimeMillis) + { + $this->computationTimeMillis = $computationTimeMillis; + } + + public function getComputationTimeMillis() + { + return $this->computationTimeMillis; + } + public function setDataTypeName($dataTypeName) + { + $this->dataTypeName = $dataTypeName; + } + + public function getDataTypeName() + { + return $this->dataTypeName; + } + public function setEndTimeNanos($endTimeNanos) + { + $this->endTimeNanos = $endTimeNanos; + } + + public function getEndTimeNanos() + { + return $this->endTimeNanos; + } + public function setModifiedTimeMillis($modifiedTimeMillis) + { + $this->modifiedTimeMillis = $modifiedTimeMillis; + } + + public function getModifiedTimeMillis() + { + return $this->modifiedTimeMillis; + } + public function setOriginDataSourceId($originDataSourceId) + { + $this->originDataSourceId = $originDataSourceId; + } + + public function getOriginDataSourceId() + { + return $this->originDataSourceId; + } + public function setRawTimestampNanos($rawTimestampNanos) + { + $this->rawTimestampNanos = $rawTimestampNanos; + } + + public function getRawTimestampNanos() + { + return $this->rawTimestampNanos; + } + public function setStartTimeNanos($startTimeNanos) + { + $this->startTimeNanos = $startTimeNanos; + } + + public function getStartTimeNanos() + { + return $this->startTimeNanos; + } + public function setValue($value) + { + $this->value = $value; + } + + public function getValue() + { + return $this->value; + } + +} + +class Google_Service_Fitness_DataSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $applicationType = 'Google_Service_Fitness_Application'; + protected $applicationDataType = ''; + public $dataStreamId; + public $dataStreamName; + protected $dataTypeType = 'Google_Service_Fitness_DataType'; + protected $dataTypeDataType = ''; + protected $deviceType = 'Google_Service_Fitness_Device'; + protected $deviceDataType = ''; + public $name; + public $type; + + public function setApplication(Google_Service_Fitness_Application $application) + { + $this->application = $application; + } + + public function getApplication() + { + return $this->application; + } + public function setDataStreamId($dataStreamId) + { + $this->dataStreamId = $dataStreamId; + } + + public function getDataStreamId() + { + return $this->dataStreamId; + } + public function setDataStreamName($dataStreamName) + { + $this->dataStreamName = $dataStreamName; + } + + public function getDataStreamName() + { + return $this->dataStreamName; + } + public function setDataType(Google_Service_Fitness_DataType $dataType) + { + $this->dataType = $dataType; + } + + public function getDataType() + { + return $this->dataType; + } + public function setDevice(Google_Service_Fitness_Device $device) + { + $this->device = $device; + } + + public function getDevice() + { + return $this->device; + } + 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_Fitness_DataType extends Google_Collection +{ + protected $collection_key = 'field'; + protected $internal_gapi_mappings = array( + ); + protected $fieldType = 'Google_Service_Fitness_DataTypeField'; + protected $fieldDataType = 'array'; + public $name; + + public function setField($field) + { + $this->field = $field; + } + + public function getField() + { + return $this->field; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + +} + +class Google_Service_Fitness_DataTypeField extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $format; + public $name; + + public function setFormat($format) + { + $this->format = $format; + } + + public function getFormat() + { + return $this->format; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + +} + +class Google_Service_Fitness_Dataset extends Google_Collection +{ + protected $collection_key = 'point'; + protected $internal_gapi_mappings = array( + ); + public $dataSourceId; + public $maxEndTimeNs; + public $minStartTimeNs; + protected $pointType = 'Google_Service_Fitness_DataPoint'; + protected $pointDataType = 'array'; + + public function setDataSourceId($dataSourceId) + { + $this->dataSourceId = $dataSourceId; + } + + public function getDataSourceId() + { + return $this->dataSourceId; + } + public function setMaxEndTimeNs($maxEndTimeNs) + { + $this->maxEndTimeNs = $maxEndTimeNs; + } + + public function getMaxEndTimeNs() + { + return $this->maxEndTimeNs; + } + public function setMinStartTimeNs($minStartTimeNs) + { + $this->minStartTimeNs = $minStartTimeNs; + } + + public function getMinStartTimeNs() + { + return $this->minStartTimeNs; + } + public function setPoint($point) + { + $this->point = $point; + } + + public function getPoint() + { + return $this->point; + } + +} + +class Google_Service_Fitness_Device extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $manufacturer; + public $model; + public $type; + public $uid; + public $version; + + public function setManufacturer($manufacturer) + { + $this->manufacturer = $manufacturer; + } + + public function getManufacturer() + { + return $this->manufacturer; + } + public function setModel($model) + { + $this->model = $model; + } + + public function getModel() + { + return $this->model; + } + public function setType($type) + { + $this->type = $type; + } + + public function getType() + { + return $this->type; + } + public function setUid($uid) + { + $this->uid = $uid; + } + + public function getUid() + { + return $this->uid; + } + public function setVersion($version) + { + $this->version = $version; + } + + public function getVersion() + { + return $this->version; + } + +} + +class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection +{ + protected $collection_key = 'dataSource'; + protected $internal_gapi_mappings = array( + ); + protected $dataSourceType = 'Google_Service_Fitness_DataSource'; + protected $dataSourceDataType = 'array'; + + public function setDataSource($dataSource) + { + $this->dataSource = $dataSource; + } + + public function getDataSource() + { + return $this->dataSource; + } + +} + +class Google_Service_Fitness_ListSessionsResponse extends Google_Collection +{ + protected $collection_key = 'session'; + protected $internal_gapi_mappings = array( + ); + protected $deletedSessionType = 'Google_Service_Fitness_Session'; + protected $deletedSessionDataType = 'array'; + public $nextPageToken; + protected $sessionType = 'Google_Service_Fitness_Session'; + protected $sessionDataType = 'array'; + + public function setDeletedSession($deletedSession) + { + $this->deletedSession = $deletedSession; + } + + public function getDeletedSession() + { + return $this->deletedSession; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSession($session) + { + $this->session = $session; + } + + public function getSession() + { + return $this->session; + } + +} + +class Google_Service_Fitness_Session extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activityType; + protected $applicationType = 'Google_Service_Fitness_Application'; + protected $applicationDataType = ''; + public $description; + public $endTimeMillis; + public $id; + public $modifiedTimeMillis; + public $name; + public $startTimeMillis; + + public function setActivityType($activityType) + { + $this->activityType = $activityType; + } + + public function getActivityType() + { + return $this->activityType; + } + public function setApplication(Google_Service_Fitness_Application $application) + { + $this->application = $application; + } + + public function getApplication() + { + return $this->application; + } + public function setDescription($description) + { + $this->description = $description; + } + + public function getDescription() + { + return $this->description; + } + public function setEndTimeMillis($endTimeMillis) + { + $this->endTimeMillis = $endTimeMillis; + } + + public function getEndTimeMillis() + { + return $this->endTimeMillis; + } + public function setId($id) + { + $this->id = $id; + } + + public function getId() + { + return $this->id; + } + public function setModifiedTimeMillis($modifiedTimeMillis) + { + $this->modifiedTimeMillis = $modifiedTimeMillis; + } + + public function getModifiedTimeMillis() + { + return $this->modifiedTimeMillis; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } + +} + +class Google_Service_Fitness_Value extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fpVal; + public $intVal; + + public function setFpVal($fpVal) + { + $this->fpVal = $fpVal; + } + + public function getFpVal() + { + return $this->fpVal; + } + public function setIntVal($intVal) + { + $this->intVal = $intVal; + } + + public function getIntVal() + { + return $this->intVal; + } + +} From 9efbe8b316717ba182caae750c8d1a79c41e5dde Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 4 Nov 2014 01:55:30 -0800 Subject: [PATCH 0436/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 990c50259..21c8c8467 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -714,7 +714,9 @@ class Google_Service_AdExchangeBuyer_Account extends Google_Collection public $cookieMatchingUrl; public $id; public $kind; + public $maximumActiveCreatives; public $maximumTotalQps; + public $numberActiveCreatives; public function setBidderLocation($bidderLocation) { @@ -761,6 +763,15 @@ public function getKind() { return $this->kind; } + public function setMaximumActiveCreatives($maximumActiveCreatives) + { + $this->maximumActiveCreatives = $maximumActiveCreatives; + } + + public function getMaximumActiveCreatives() + { + return $this->maximumActiveCreatives; + } public function setMaximumTotalQps($maximumTotalQps) { $this->maximumTotalQps = $maximumTotalQps; @@ -770,6 +781,15 @@ public function getMaximumTotalQps() { return $this->maximumTotalQps; } + public function setNumberActiveCreatives($numberActiveCreatives) + { + $this->numberActiveCreatives = $numberActiveCreatives; + } + + public function getNumberActiveCreatives() + { + return $this->numberActiveCreatives; + } } From 0c05054acf65097b5a70531eb44c8a2f3a806a46 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 4 Nov 2014 20:10:35 +0000 Subject: [PATCH 0437/1274] Bump version, reenable variant --- src/Google/Client.php | 2 +- tests/general/ApiModelTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index c06e8aec3..22a100a8a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -26,7 +26,7 @@ */ class Google_Client { - const LIBVER = "1.1.0-beta"; + const LIBVER = "1.1.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index ff0b8e992..b3ef5891b 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -82,7 +82,6 @@ public function testModelMutation() public function testVariantTypes() { - $this->markTestSkipped('Pending variant support in templates.'); $feature = new Google_Service_MapsEngine_Feature(); $geometry = new Google_Service_MapsEngine_GeoJsonPoint(); $geometry->setCoordinates(array(1, 0)); From 1d4eaf41a5155ab5ecbd37022c0c28d1a49aa6a1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 5 Nov 2014 01:56:58 -0800 Subject: [PATCH 0438/1274] Added service Container.php --- src/Google/Service/Container.php | 823 +++++++++++++++++++++++++++++++ 1 file changed, 823 insertions(+) create mode 100644 src/Google/Service/Container.php diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php new file mode 100644 index 000000000..b0ef8c69f --- /dev/null +++ b/src/Google/Service/Container.php @@ -0,0 +1,823 @@ + + * The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology. + *

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Container extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_clusters; + public $projects_operations; + public $projects_zones_clusters; + public $projects_zones_operations; + + + /** + * Constructs the internal representation of the Container service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'container/v1beta1/projects/'; + $this->version = 'v1beta1'; + $this->serviceName = 'container'; + + $this->projects_clusters = new Google_Service_Container_ProjectsClusters_Resource( + $this, + $this->serviceName, + 'clusters', + array( + 'methods' => array( + 'list' => array( + 'path' => '{projectId}/clusters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_operations = new Google_Service_Container_ProjectsOperations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'list' => array( + 'path' => '{projectId}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource( + $this, + $this->serviceName, + 'clusters', + array( + 'methods' => array( + 'create' => array( + 'path' => '{projectId}/zones/{zoneId}/clusters', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{projectId}/zones/{zoneId}/clusters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{projectId}/zones/{zoneId}/operations/{operationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{projectId}/zones/{zoneId}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $projects = $containerService->projects; + * + */ +class Google_Service_Container_Projects_Resource extends Google_Service_Resource +{ + +} + +/** + * The "clusters" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $clusters = $containerService->clusters; + * + */ +class Google_Service_Container_ProjectsClusters_Resource extends Google_Service_Resource +{ + + /** + * Lists all clusters owned by a project across all zones. + * (clusters.listProjectsClusters) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_ListAggregatedClustersResponse + */ + public function listProjectsClusters($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Container_ListAggregatedClustersResponse"); + } +} +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $operations = $containerService->operations; + * + */ +class Google_Service_Container_ProjectsOperations_Resource extends Google_Service_Resource +{ + + /** + * Lists all operations in a project, across all zones. + * (operations.listProjectsOperations) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_ListAggregatedOperationsResponse + */ + public function listProjectsOperations($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Container_ListAggregatedOperationsResponse"); + } +} +/** + * The "zones" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $zones = $containerService->zones; + * + */ +class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource +{ + +} + +/** + * The "clusters" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $clusters = $containerService->clusters; + * + */ +class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Service_Resource +{ + + /** + * Creates a cluster, consisting of the specified number and type of Google + * Compute Engine instances, plus a Kubernetes master instance. + * + * The cluster is created in the project's default network. + * + * A firewall is added that allows traffic into port 443 on the master, which + * enables HTTPS. A firewall and a route is added for each node to allow the + * containers on that node to communicate with all other instances in the + * cluster. + * + * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the + * cluster's 10.xx.0.0/16 CIDR has been assigned. (clusters.create) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone in which the cluster resides. + * @param Google_CreateClusterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Operation + */ + public function create($projectId, $zoneId, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Container_Operation"); + } + /** + * Deletes the cluster, including the Kubernetes master and all worker nodes. + * + * Firewalls and routes that were configured at cluster creation are also + * deleted. (clusters.delete) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone in which the cluster resides. + * @param string $clusterId + * The name of the cluster to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Operation + */ + public function delete($projectId, $zoneId, $clusterId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Container_Operation"); + } + /** + * Gets a specific cluster. (clusters.get) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone in which the cluster resides. + * @param string $clusterId + * The name of the cluster to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Cluster + */ + public function get($projectId, $zoneId, $clusterId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Container_Cluster"); + } + /** + * Lists all clusters owned by a project in the specified zone. + * (clusters.listProjectsZonesClusters) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone in which the cluster resides. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_ListClustersResponse + */ + public function listProjectsZonesClusters($projectId, $zoneId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); + } +} +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $operations = $containerService->operations; + * + */ +class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_Service_Resource +{ + + /** + * Gets the specified operation. (operations.get) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone in which the operation resides. This is always the + * same zone as the cluster with which the operation is associated. + * @param string $operationId + * The server-assigned name of the operation. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Operation + */ + public function get($projectId, $zoneId, $operationId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'operationId' => $operationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Container_Operation"); + } + /** + * Lists all operations in a project in a specific zone. + * (operations.listProjectsZonesOperations) + * + * @param string $projectId + * The Google Developers Console project ID or project number. + * @param string $zoneId + * The name of the Google Compute Engine zone to return operations for. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_ListOperationsResponse + */ + public function listProjectsZonesOperations($projectId, $zoneId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse"); + } +} + + + + +class Google_Service_Container_Cluster extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clusterApiVersion; + public $containerIpv4Cidr; + public $creationTimestamp; + public $description; + public $endpoint; + protected $masterAuthType = 'Google_Service_Container_MasterAuth'; + protected $masterAuthDataType = ''; + public $name; + protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; + protected $nodeConfigDataType = ''; + public $nodeRoutingPrefixSize; + public $numNodes; + public $servicesIpv4Cidr; + public $status; + public $statusMessage; + public $zone; + + public function setClusterApiVersion($clusterApiVersion) + { + $this->clusterApiVersion = $clusterApiVersion; + } + + public function getClusterApiVersion() + { + return $this->clusterApiVersion; + } + public function setContainerIpv4Cidr($containerIpv4Cidr) + { + $this->containerIpv4Cidr = $containerIpv4Cidr; + } + + public function getContainerIpv4Cidr() + { + return $this->containerIpv4Cidr; + } + 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 setEndpoint($endpoint) + { + $this->endpoint = $endpoint; + } + + public function getEndpoint() + { + return $this->endpoint; + } + public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth) + { + $this->masterAuth = $masterAuth; + } + + public function getMasterAuth() + { + return $this->masterAuth; + } + public function setName($name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig) + { + $this->nodeConfig = $nodeConfig; + } + + public function getNodeConfig() + { + return $this->nodeConfig; + } + public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize) + { + $this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize; + } + + public function getNodeRoutingPrefixSize() + { + return $this->nodeRoutingPrefixSize; + } + public function setNumNodes($numNodes) + { + $this->numNodes = $numNodes; + } + + public function getNumNodes() + { + return $this->numNodes; + } + public function setServicesIpv4Cidr($servicesIpv4Cidr) + { + $this->servicesIpv4Cidr = $servicesIpv4Cidr; + } + + public function getServicesIpv4Cidr() + { + return $this->servicesIpv4Cidr; + } + 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 setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; + } + +} + +class Google_Service_Container_CreateClusterRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $clusterType = 'Google_Service_Container_Cluster'; + protected $clusterDataType = ''; + + public function setCluster(Google_Service_Container_Cluster $cluster) + { + $this->cluster = $cluster; + } + + public function getCluster() + { + return $this->cluster; + } + +} + +class Google_Service_Container_ListAggregatedClustersResponse extends Google_Collection +{ + protected $collection_key = 'clusters'; + protected $internal_gapi_mappings = array( + ); + protected $clustersType = 'Google_Service_Container_Cluster'; + protected $clustersDataType = 'array'; + + public function setClusters($clusters) + { + $this->clusters = $clusters; + } + + public function getClusters() + { + return $this->clusters; + } + +} + +class Google_Service_Container_ListAggregatedOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + protected $operationsType = 'Google_Service_Container_Operation'; + protected $operationsDataType = 'array'; + + public function setOperations($operations) + { + $this->operations = $operations; + } + + public function getOperations() + { + return $this->operations; + } + +} + +class Google_Service_Container_ListClustersResponse extends Google_Collection +{ + protected $collection_key = 'clusters'; + protected $internal_gapi_mappings = array( + ); + protected $clustersType = 'Google_Service_Container_Cluster'; + protected $clustersDataType = 'array'; + + public function setClusters($clusters) + { + $this->clusters = $clusters; + } + + public function getClusters() + { + return $this->clusters; + } + +} + +class Google_Service_Container_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + protected $operationsType = 'Google_Service_Container_Operation'; + protected $operationsDataType = 'array'; + + public function setOperations($operations) + { + $this->operations = $operations; + } + + public function getOperations() + { + return $this->operations; + } + +} + +class Google_Service_Container_MasterAuth extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $password; + public $user; + + public function setPassword($password) + { + $this->password = $password; + } + + public function getPassword() + { + return $this->password; + } + public function setUser($user) + { + $this->user = $user; + } + + public function getUser() + { + return $this->user; + } + +} + +class Google_Service_Container_NodeConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $machineType; + public $sourceImage; + + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + + public function getMachineType() + { + return $this->machineType; + } + public function setSourceImage($sourceImage) + { + $this->sourceImage = $sourceImage; + } + + public function getSourceImage() + { + return $this->sourceImage; + } + +} + +class Google_Service_Container_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $errorMessage; + public $name; + public $operationType; + public $status; + public $target; + public $zone; + + public function setErrorMessage($errorMessage) + { + $this->errorMessage = $errorMessage; + } + + public function getErrorMessage() + { + return $this->errorMessage; + } + 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 setStatus($status) + { + $this->status = $status; + } + + public function getStatus() + { + return $this->status; + } + public function setTarget($target) + { + $this->target = $target; + } + + public function getTarget() + { + return $this->target; + } + public function setZone($zone) + { + $this->zone = $zone; + } + + public function getZone() + { + return $this->zone; + } + +} From a38c824b69ac926ad4a4f060dd201efda47c0580 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 5 Nov 2014 01:56:58 -0800 Subject: [PATCH 0439/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 60 +++++++++++------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 26795ad64..857d10e86 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -60,7 +60,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'cancel' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/cancel', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/cancel', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -78,14 +78,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'updateHandle' => array( + 'update' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -103,7 +103,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'updateHandle' => array( + 'update' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -158,7 +158,7 @@ public function __construct(Google_Client $client) ), ), ),'pause' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/pause', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/pause', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -176,14 +176,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'updateHandle' => array( + 'update' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'rollback' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/rollback', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollback', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -201,14 +201,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'updateHandle' => array( + 'update' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'rollforward' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{updateHandle}/rollforward', + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollforward', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -226,7 +226,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'updateHandle' => array( + 'update' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -261,13 +261,13 @@ class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_ * Zone for the instance group manager. * @param string $instanceGroupManager * Name of the instance group manager for this request. - * @param string $updateHandle + * @param string $update * Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ - public function cancel($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } @@ -281,14 +281,14 @@ public function cancel($project, $zone, $instanceGroupManager, $updateHandle, $o * Zone for the instance group manager. * @param string $instanceGroupManager * Name of the instance group manager for this request. - * @param string $updateHandle + * @param string $update * Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_Update */ - public function get($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + public function get($project, $zone, $instanceGroupManager, $update, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update"); } @@ -350,13 +350,13 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = * Zone for the instance group manager. * @param string $instanceGroupManager * Name of the instance group manager for this request. - * @param string $updateHandle + * @param string $update * Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ - public function pause($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); $params = array_merge($params, $optParams); return $this->call('pause', array($params)); } @@ -371,13 +371,13 @@ public function pause($project, $zone, $instanceGroupManager, $updateHandle, $op * Zone for the instance group manager. * @param string $instanceGroupManager * Name of the instance group manager for this request. - * @param string $updateHandle + * @param string $update * Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ - public function rollback($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); $params = array_merge($params, $optParams); return $this->call('rollback', array($params)); } @@ -392,13 +392,13 @@ public function rollback($project, $zone, $instanceGroupManager, $updateHandle, * Zone for the instance group manager. * @param string $instanceGroupManager * Name of the instance group manager for this request. - * @param string $updateHandle + * @param string $update * Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ - public function rollforward($project, $zone, $instanceGroupManager, $updateHandle, $optParams = array()) + public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'updateHandle' => $updateHandle); + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); $params = array_merge($params, $optParams); return $this->call('rollforward', array($params)); } @@ -411,16 +411,16 @@ class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model { protected $internal_gapi_mappings = array( ); - public $updateHandle; + public $update; - public function setUpdateHandle($updateHandle) + public function setUpdate($update) { - $this->updateHandle = $updateHandle; + $this->update = $update; } - public function getUpdateHandle() + public function getUpdate() { - return $this->updateHandle; + return $this->update; } } From 8be2883b8a67401007f242978edf632e54408e65 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 5 Nov 2014 01:56:59 -0800 Subject: [PATCH 0440/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 076da5253..3e8fef949 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -926,7 +926,8 @@ class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Reso /** * Aligns read data from existing read group sets or files from Google Cloud - * Storage. See Alignment for more details. (readgroupsets.align) + * Storage. See the alignment and variant calling documentation for more + * details. (readgroupsets.align) * * @param Google_AlignReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -940,8 +941,8 @@ public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBod } /** * Calls variants on read data from existing read group sets or files from - * Google Cloud Storage. See Variant Calling for more details. - * (readgroupsets.call) + * Google Cloud Storage. See the alignment and variant calling documentation + * for more details. (readgroupsets.call) * * @param Google_CallReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. From 10cec6811fc9d80af9885466b905d4e34f12bdc8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 5 Nov 2014 01:56:59 -0800 Subject: [PATCH 0441/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 568a4a0c2..fb224fd88 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -536,7 +536,8 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc * Identifier for the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The start time of the four-hour backup window. The backup can occur any time in the window. The + * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ @@ -808,7 +809,8 @@ public function restart($project, $instance, $optParams = array()) * The identifier of the backup configuration. This gets generated automatically when a backup * configuration is created. * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * The start time of the four-hour backup window. The backup can occur any time in the window. The + * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse */ @@ -1349,6 +1351,7 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; + public $ipv6Address; public $kind; public $masterInstanceName; public $maxDiskSize; @@ -1415,6 +1418,15 @@ public function getIpAddresses() { return $this->ipAddresses; } + public function setIpv6Address($ipv6Address) + { + $this->ipv6Address = $ipv6Address; + } + + public function getIpv6Address() + { + return $this->ipv6Address; + } public function setKind($kind) { $this->kind = $kind; @@ -2259,6 +2271,7 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection ); public $authorizedNetworks; public $enabled; + public $kind; public $requireSsl; public function setAuthorizedNetworks($authorizedNetworks) @@ -2279,6 +2292,15 @@ public function getEnabled() { return $this->enabled; } + public function setKind($kind) + { + $this->kind = $kind; + } + + public function getKind() + { + return $this->kind; + } public function setRequireSsl($requireSsl) { $this->requireSsl = $requireSsl; From 4a02cddc4ff5b3b164a917ff07fdfbccfec25086 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:27 -0800 Subject: [PATCH 0442/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 1412 +++++++++++------------------ 1 file changed, 542 insertions(+), 870 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 06aa5abe1..e96262ed4 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -19,8 +19,8 @@ * Service definition for MapsEngine (v1). * *

- * The Google Maps Engine API allows developers to store and query geospatial vector and raster data. - *

+ * The Google Maps Engine API allows developers to store and query geospatial + * vector and raster data.

* *

* For more information about this service, see the API @@ -32,9 +32,11 @@ class Google_Service_MapsEngine extends Google_Service { /** View and manage your Google Maps Engine data. */ - const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; + const MAPSENGINE = + "https://www.googleapis.com/auth/mapsengine"; /** View your Google Maps Engine data. */ - const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; + const MAPSENGINE_READONLY = + "https://www.googleapis.com/auth/mapsengine.readonly"; public $assets; public $assets_parents; @@ -1527,8 +1529,7 @@ class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource /** * Return metadata for a particular asset. (assets.get) * - * @param string $id - * The ID of the asset. + * @param string $id The ID of the asset. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_Asset */ @@ -1538,49 +1539,47 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); } + /** * Return all assets readable by the current user. (assets.listAssets) * * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. - * @opt_param string type - * A comma separated list of asset types. Returned assets will have one of the types from the - * provided list. Supported values are 'map', 'layer', 'rasterCollection' and 'table'. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. + * @opt_param string type A comma separated list of asset types. Returned assets + * will have one of the types from the provided list. Supported values are + * 'map', 'layer', 'rasterCollection' and 'table'. * @return Google_Service_MapsEngine_AssetsListResponse */ public function listAssets($optParams = array()) @@ -1605,16 +1604,14 @@ class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Re /** * Return all parent ids of the specified asset. (parents.listAssetsParents) * - * @param string $id - * The ID of the asset whose parents will be listed. + * @param string $id The ID of the asset whose parents will be listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_ParentsListResponse */ public function listAssetsParents($id, $optParams = array()) @@ -1639,8 +1636,7 @@ class Google_Service_MapsEngine_AssetsPermissions_Resource extends Google_Servic * Return all of the permissions for the specified asset. * (permissions.listAssetsPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -1666,8 +1662,7 @@ class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource /** * Cancel processing on a layer asset. (layers.cancelProcessing) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -1677,14 +1672,14 @@ public function cancelProcessing($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); } + /** * Create a layer asset. (layers.create) * * @param Google_Layer $postBody * @param array $optParams Optional parameters. * - * @opt_param bool process - * Whether to queue the created layer for processing. + * @opt_param bool process Whether to queue the created layer for processing. * @return Google_Service_MapsEngine_Layer */ public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) @@ -1693,13 +1688,14 @@ public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); } + /** * Delete a layer. (layers.delete) * - * @param string $id - * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the - * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove - * it from all maps prior to deleting. + * @param string $id The ID of the layer. Only the layer creator or project + * owner are permitted to delete. If the layer is published, or included in a + * map, the request will fail. Unpublish the layer, and remove it from all maps + * prior to deleting. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -1708,17 +1704,17 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Return metadata for a particular layer. (layers.get) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * - * @opt_param string version - * Deprecated: The version parameter indicates which version of the layer should be returned. When - * version is set to published, the published version of the layer will be returned. Please use the - * layers.getPublished endpoint instead. + * @opt_param string version Deprecated: The version parameter indicates which + * version of the layer should be returned. When version is set to published, + * the published version of the layer will be returned. Please use the + * layers.getPublished endpoint instead. * @return Google_Service_MapsEngine_Layer */ public function get($id, $optParams = array()) @@ -1727,11 +1723,11 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); } + /** * Return the published metadata for a particular layer. (layers.getPublished) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PublishedLayer */ @@ -1741,48 +1737,45 @@ public function getPublished($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedLayer"); } + /** * Return all layers readable by the current user. (layers.listLayers) * * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. * @opt_param string processingStatus - * - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_LayersListResponse */ public function listLayers($optParams = array()) @@ -1791,22 +1784,22 @@ public function listLayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); } + /** * Return all published layers readable by the current user. * (layers.listPublished) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @return Google_Service_MapsEngine_PublishedLayersListResponse */ public function listPublished($optParams = array()) @@ -1815,11 +1808,11 @@ public function listPublished($optParams = array()) $params = array_merge($params, $optParams); return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedLayersListResponse"); } + /** * Mutate a layer asset. (layers.patch) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param Google_Layer $postBody * @param array $optParams Optional parameters. */ @@ -1829,11 +1822,11 @@ public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** * Process a layer asset. (layers.process) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -1843,16 +1836,16 @@ public function process($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); } + /** * Publish a layer asset. (layers.publish) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * - * @opt_param bool force - * If set to true, the API will allow publication of the layer even if it's out of date. If not - * true, you'll need to reprocess any out-of-date layer before publishing. + * @opt_param bool force If set to true, the API will allow publication of the + * layer even if it's out of date. If not true, you'll need to reprocess any + * out-of-date layer before publishing. * @return Google_Service_MapsEngine_PublishResponse */ public function publish($id, $optParams = array()) @@ -1861,11 +1854,11 @@ public function publish($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); } + /** * Unpublish a layer asset. (layers.unpublish) * - * @param string $id - * The ID of the layer. + * @param string $id The ID of the layer. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PublishResponse */ @@ -1891,16 +1884,14 @@ class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Re /** * Return all parent ids of the specified layer. (parents.listLayersParents) * - * @param string $id - * The ID of the layer whose parents will be listed. + * @param string $id The ID of the layer whose parents will be listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_ParentsListResponse */ public function listLayersParents($id, $optParams = array()) @@ -1925,8 +1916,7 @@ class Google_Service_MapsEngine_LayersPermissions_Resource extends Google_Servic * Remove permission entries from an already existing asset. * (permissions.batchDelete) * - * @param string $id - * The ID of the asset from which permissions will be removed. + * @param string $id The ID of the asset from which permissions will be removed. * @param Google_PermissionsBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse @@ -1937,14 +1927,14 @@ public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDelet $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); } + /** * Add or update permission entries to an already existing asset. * * An asset can hold up to 20 different permission entries. Each batchInsert * request is atomic. (permissions.batchUpdate) * - * @param string $id - * The ID of the asset to which permissions will be added. + * @param string $id The ID of the asset to which permissions will be added. * @param Google_PermissionsBatchUpdateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse @@ -1955,12 +1945,12 @@ public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdat $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); } + /** * Return all of the permissions for the specified asset. * (permissions.listLayersPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -1996,12 +1986,13 @@ public function create(Google_Service_MapsEngine_Map $postBody, $optParams = arr $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); } + /** * Delete a map. (maps.delete) * - * @param string $id - * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is - * published the request will fail. Unpublish the map prior to deleting. + * @param string $id The ID of the map. Only the map creator or project owner + * are permitted to delete. If the map is published the request will fail. + * Unpublish the map prior to deleting. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -2010,17 +2001,17 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Return metadata for a particular map. (maps.get) * - * @param string $id - * The ID of the map. + * @param string $id The ID of the map. * @param array $optParams Optional parameters. * - * @opt_param string version - * Deprecated: The version parameter indicates which version of the map should be returned. When - * version is set to published, the published version of the map will be returned. Please use the - * maps.getPublished endpoint instead. + * @opt_param string version Deprecated: The version parameter indicates which + * version of the map should be returned. When version is set to published, the + * published version of the map will be returned. Please use the + * maps.getPublished endpoint instead. * @return Google_Service_MapsEngine_Map */ public function get($id, $optParams = array()) @@ -2029,11 +2020,11 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); } + /** * Return the published metadata for a particular map. (maps.getPublished) * - * @param string $id - * The ID of the map. + * @param string $id The ID of the map. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PublishedMap */ @@ -2043,48 +2034,45 @@ public function getPublished($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedMap"); } + /** * Return all maps readable by the current user. (maps.listMaps) * * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. * @opt_param string processingStatus - * - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_MapsListResponse */ public function listMaps($optParams = array()) @@ -2093,21 +2081,21 @@ public function listMaps($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); } + /** * Return all published maps readable by the current user. (maps.listPublished) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @return Google_Service_MapsEngine_PublishedMapsListResponse */ public function listPublished($optParams = array()) @@ -2116,11 +2104,11 @@ public function listPublished($optParams = array()) $params = array_merge($params, $optParams); return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedMapsListResponse"); } + /** * Mutate a map asset. (maps.patch) * - * @param string $id - * The ID of the map. + * @param string $id The ID of the map. * @param Google_Map $postBody * @param array $optParams Optional parameters. */ @@ -2130,16 +2118,16 @@ public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** * Publish a map asset. (maps.publish) * - * @param string $id - * The ID of the map. + * @param string $id The ID of the map. * @param array $optParams Optional parameters. * - * @opt_param bool force - * If set to true, the API will allow publication of the map even if it's out of date. If false, - * the map must have a processingStatus of complete before publishing. + * @opt_param bool force If set to true, the API will allow publication of the + * map even if it's out of date. If false, the map must have a processingStatus + * of complete before publishing. * @return Google_Service_MapsEngine_PublishResponse */ public function publish($id, $optParams = array()) @@ -2148,11 +2136,11 @@ public function publish($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); } + /** * Unpublish a map asset. (maps.unpublish) * - * @param string $id - * The ID of the map. + * @param string $id The ID of the map. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PublishResponse */ @@ -2179,8 +2167,7 @@ class Google_Service_MapsEngine_MapsPermissions_Resource extends Google_Service_ * Remove permission entries from an already existing asset. * (permissions.batchDelete) * - * @param string $id - * The ID of the asset from which permissions will be removed. + * @param string $id The ID of the asset from which permissions will be removed. * @param Google_PermissionsBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse @@ -2191,14 +2178,14 @@ public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDelet $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); } + /** * Add or update permission entries to an already existing asset. * * An asset can hold up to 20 different permission entries. Each batchInsert * request is atomic. (permissions.batchUpdate) * - * @param string $id - * The ID of the asset to which permissions will be added. + * @param string $id The ID of the asset to which permissions will be added. * @param Google_PermissionsBatchUpdateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse @@ -2209,12 +2196,12 @@ public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdat $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); } + /** * Return all of the permissions for the specified asset. * (permissions.listMapsPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -2265,8 +2252,7 @@ class Google_Service_MapsEngine_ProjectsIcons_Resource extends Google_Service_Re /** * Create an icon. (icons.create) * - * @param string $projectId - * The ID of the project. + * @param string $projectId The ID of the project. * @param Google_Icon $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_Icon @@ -2277,13 +2263,12 @@ public function create($projectId, Google_Service_MapsEngine_Icon $postBody, $op $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Icon"); } + /** * Return an icon or its associated metadata (icons.get) * - * @param string $projectId - * The ID of the project. - * @param string $id - * The ID of the icon. + * @param string $projectId The ID of the project. + * @param string $id The ID of the icon. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_Icon */ @@ -2293,19 +2278,18 @@ public function get($projectId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Icon"); } + /** * Return all icons in the current project (icons.listProjectsIcons) * - * @param string $projectId - * The ID of the project. + * @param string $projectId The ID of the project. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_IconsListResponse */ public function listProjectsIcons($projectId, $optParams = array()) @@ -2331,8 +2315,7 @@ class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Servic * Cancel processing on a raster collection asset. * (rasterCollections.cancelProcessing) * - * @param string $id - * The ID of the raster collection. + * @param string $id The ID of the raster collection. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -2342,6 +2325,7 @@ public function cancelProcessing($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); } + /** * Create a raster collection asset. (rasterCollections.create) * @@ -2355,13 +2339,14 @@ public function create(Google_Service_MapsEngine_RasterCollection $postBody, $op $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); } + /** * Delete a raster collection. (rasterCollections.delete) * - * @param string $id - * The ID of the raster collection. Only the raster collection creator or project owner are - * permitted to delete. If the rastor collection is included in a layer, the request will fail. - * Remove the raster collection from all layers prior to deleting. + * @param string $id The ID of the raster collection. Only the raster collection + * creator or project owner are permitted to delete. If the rastor collection is + * included in a layer, the request will fail. Remove the raster collection from + * all layers prior to deleting. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -2370,11 +2355,11 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Return metadata for a particular raster collection. (rasterCollections.get) * - * @param string $id - * The ID of the raster collection. + * @param string $id The ID of the raster collection. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_RasterCollection */ @@ -2384,49 +2369,46 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); } + /** * Return all raster collections readable by the current user. * (rasterCollections.listRasterCollections) * * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. * @opt_param string processingStatus - * - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_RasterCollectionsListResponse */ public function listRasterCollections($optParams = array()) @@ -2435,11 +2417,11 @@ public function listRasterCollections($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); } + /** * Mutate a raster collection asset. (rasterCollections.patch) * - * @param string $id - * The ID of the raster collection. + * @param string $id The ID of the raster collection. * @param Google_RasterCollection $postBody * @param array $optParams Optional parameters. */ @@ -2449,11 +2431,11 @@ public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** * Process a raster collection asset. (rasterCollections.process) * - * @param string $id - * The ID of the raster collection. + * @param string $id The ID of the raster collection. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -2480,16 +2462,15 @@ class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google * Return all parent ids of the specified raster collection. * (parents.listRasterCollectionsParents) * - * @param string $id - * The ID of the raster collection whose parents will be listed. + * @param string $id The ID of the raster collection whose parents will be + * listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_ParentsListResponse */ public function listRasterCollectionsParents($id, $optParams = array()) @@ -2514,8 +2495,7 @@ class Google_Service_MapsEngine_RasterCollectionsPermissions_Resource extends Go * Remove permission entries from an already existing asset. * (permissions.batchDelete) * - * @param string $id - * The ID of the asset from which permissions will be removed. + * @param string $id The ID of the asset from which permissions will be removed. * @param Google_PermissionsBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse @@ -2526,14 +2506,14 @@ public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDelet $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); } + /** * Add or update permission entries to an already existing asset. * * An asset can hold up to 20 different permission entries. Each batchInsert * request is atomic. (permissions.batchUpdate) * - * @param string $id - * The ID of the asset to which permissions will be added. + * @param string $id The ID of the asset to which permissions will be added. * @param Google_PermissionsBatchUpdateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse @@ -2544,12 +2524,12 @@ public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdat $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); } + /** * Return all of the permissions for the specified asset. * (permissions.listRasterCollectionsPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -2577,8 +2557,8 @@ class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google * Up to 50 rasters can be included in a single batchDelete request. Each * batchDelete request is atomic. (rasters.batchDelete) * - * @param string $id - * The ID of the raster collection to which these rasters belong. + * @param string $id The ID of the raster collection to which these rasters + * belong. * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse @@ -2589,6 +2569,7 @@ public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRast $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); } + /** * Add rasters to an existing raster collection. Rasters must be successfully * processed in order to be added to a raster collection. @@ -2596,8 +2577,8 @@ public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRast * Up to 50 rasters can be included in a single batchInsert request. Each * batchInsert request is atomic. (rasters.batchInsert) * - * @param string $id - * The ID of the raster collection to which these rasters belong. + * @param string $id The ID of the raster collection to which these rasters + * belong. * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse @@ -2608,45 +2589,43 @@ public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRast $params = array_merge($params, $optParams); return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); } + /** * Return all rasters within a raster collection. * (rasters.listRasterCollectionsRasters) * - * @param string $id - * The ID of the raster collection to which these rasters belong. + * @param string $id The ID of the raster collection to which these rasters + * belong. * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse */ public function listRasterCollectionsRasters($id, $optParams = array()) @@ -2671,10 +2650,9 @@ class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource /** * Delete a raster. (rasters.delete) * - * @param string $id - * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the - * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior - * to deleting. + * @param string $id The ID of the raster. Only the raster creator or project + * owner are permitted to delete. If the raster is included in a layer or + * mosaic, the request will fail. Remove it from all parents prior to deleting. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -2683,11 +2661,11 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Return metadata for a single raster. (rasters.get) * - * @param string $id - * The ID of the raster. + * @param string $id The ID of the raster. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_Raster */ @@ -2697,48 +2675,45 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); } + /** * Return all rasters readable by the current user. (rasters.listRasters) * - * @param string $projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @param string $projectId The ID of a Maps Engine project, used to filter the + * response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. * @opt_param string processingStatus - * - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_RastersListResponse */ public function listRasters($projectId, $optParams = array()) @@ -2747,11 +2722,11 @@ public function listRasters($projectId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_RastersListResponse"); } + /** * Mutate a raster asset. (rasters.patch) * - * @param string $id - * The ID of the raster. + * @param string $id The ID of the raster. * @param Google_Raster $postBody * @param array $optParams Optional parameters. */ @@ -2761,11 +2736,11 @@ public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** * Process a raster asset. (rasters.process) * - * @param string $id - * The ID of the raster. + * @param string $id The ID of the raster. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -2775,6 +2750,7 @@ public function process($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); } + /** * Create a skeleton raster asset for upload. (rasters.upload) * @@ -2804,10 +2780,8 @@ class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Res /** * Upload a file to a raster asset. (files.insert) * - * @param string $id - * The ID of the raster asset. - * @param string $filename - * The file name of this uploaded file. + * @param string $id The ID of the raster asset. + * @param string $filename The file name of this uploaded file. * @param array $optParams Optional parameters. */ public function insert($id, $filename, $optParams = array()) @@ -2831,16 +2805,14 @@ class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_R /** * Return all parent ids of the specified rasters. (parents.listRastersParents) * - * @param string $id - * The ID of the rasters whose parents will be listed. + * @param string $id The ID of the rasters whose parents will be listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_ParentsListResponse */ public function listRastersParents($id, $optParams = array()) @@ -2865,8 +2837,7 @@ class Google_Service_MapsEngine_RastersPermissions_Resource extends Google_Servi * Remove permission entries from an already existing asset. * (permissions.batchDelete) * - * @param string $id - * The ID of the asset from which permissions will be removed. + * @param string $id The ID of the asset from which permissions will be removed. * @param Google_PermissionsBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse @@ -2877,14 +2848,14 @@ public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDelet $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); } + /** * Add or update permission entries to an already existing asset. * * An asset can hold up to 20 different permission entries. Each batchInsert * request is atomic. (permissions.batchUpdate) * - * @param string $id - * The ID of the asset to which permissions will be added. + * @param string $id The ID of the asset to which permissions will be added. * @param Google_PermissionsBatchUpdateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse @@ -2895,12 +2866,12 @@ public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdat $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); } + /** * Return all of the permissions for the specified asset. * (permissions.listRastersPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -2936,13 +2907,13 @@ public function create(Google_Service_MapsEngine_Table $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); } + /** * Delete a table. (tables.delete) * - * @param string $id - * The ID of the table. Only the table creator or project owner are permitted to delete. If the - * table is included in a layer, the request will fail. Remove it from all layers prior to - * deleting. + * @param string $id The ID of the table. Only the table creator or project + * owner are permitted to delete. If the table is included in a layer, the + * request will fail. Remove it from all layers prior to deleting. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -2951,15 +2922,14 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Return metadata for a particular table, including the schema. (tables.get) * - * @param string $id - * The ID of the table. + * @param string $id The ID of the table. * @param array $optParams Optional parameters. * * @opt_param string version - * * @return Google_Service_MapsEngine_Table */ public function get($id, $optParams = array()) @@ -2968,48 +2938,45 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); } + /** * Return all tables readable by the current user. (tables.listTables) * * @param array $optParams Optional parameters. * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. + * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after + * this time. + * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or after + * this time. * @opt_param string processingStatus - * - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string search - * An unstructured search string used to filter the set of results based on asset metadata. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string role - * The role parameter indicates that the response should only contain assets where the current user - * has the specified level of access. + * @opt_param string projectId The ID of a Maps Engine project, used to filter + * the response. To list all available projects with their IDs, send a Projects: + * list request. You can also find your project ID as the value of the + * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string tags A comma separated list of tags. Returned assets will + * contain all the tags from the list. + * @opt_param string search An unstructured search string used to filter the set + * of results based on asset metadata. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 100. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string creatorEmail An email address representing a user. Returned + * assets that have been created by the user associated with the provided email + * address. + * @opt_param string bbox A bounding box, expressed as "west,south,east,north". + * If set, only assets which intersect this bounding box will be returned. + * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before + * this time. + * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. + * 1970-01-01T00:00:00Z). Returned assets will have been created at or before + * this time. + * @opt_param string role The role parameter indicates that the response should + * only contain assets where the current user has the specified level of access. * @return Google_Service_MapsEngine_TablesListResponse */ public function listTables($optParams = array()) @@ -3018,11 +2985,11 @@ public function listTables($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); } + /** * Mutate a table asset. (tables.patch) * - * @param string $id - * The ID of the table. + * @param string $id The ID of the table. * @param Google_Table $postBody * @param array $optParams Optional parameters. */ @@ -3032,11 +2999,11 @@ public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('patch', array($params)); } + /** * Process a table asset. (tables.process) * - * @param string $id - * The ID of the table. + * @param string $id The ID of the table. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_ProcessResponse */ @@ -3046,6 +3013,7 @@ public function process($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); } + /** * Create a placeholder table asset to which table files can be uploaded. Once * the placeholder has been created, files are uploaded to the @@ -3079,8 +3047,8 @@ class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_R /** * Delete all features matching the given IDs. (features.batchDelete) * - * @param string $id - * The ID of the table that contains the features to be deleted. + * @param string $id The ID of the table that contains the features to be + * deleted. * @param Google_FeaturesBatchDeleteRequest $postBody * @param array $optParams Optional parameters. */ @@ -3090,6 +3058,7 @@ public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRe $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params)); } + /** * Append features to an existing table. * @@ -3103,8 +3072,7 @@ public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRe * For more information about inserting features, read Creating features in the * Google Maps Engine developer's guide. (features.batchInsert) * - * @param string $id - * The ID of the table to append the features to. + * @param string $id The ID of the table to append the features to. * @param Google_FeaturesBatchInsertRequest $postBody * @param array $optParams Optional parameters. */ @@ -3114,6 +3082,7 @@ public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRe $params = array_merge($params, $optParams); return $this->call('batchInsert', array($params)); } + /** * Update the supplied features. * @@ -3134,8 +3103,7 @@ public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRe * property. For more information about updating features, read Updating * features in the Google Maps Engine developer's guide. (features.batchPatch) * - * @param string $id - * The ID of the table containing the features to be patched. + * @param string $id The ID of the table containing the features to be patched. * @param Google_FeaturesBatchPatchRequest $postBody * @param array $optParams Optional parameters. */ @@ -3145,20 +3113,19 @@ public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequ $params = array_merge($params, $optParams); return $this->call('batchPatch', array($params)); } + /** * Return a single feature, given its ID. (features.get) * - * @param string $tableId - * The ID of the table. - * @param string $id - * The ID of the feature to get. + * @param string $tableId The ID of the table. + * @param string $id The ID of the feature to get. * @param array $optParams Optional parameters. * - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. + * @opt_param string version The table version to access. See Accessing Public + * Data for information. + * @opt_param string select A SQL-like projection clause used to specify + * returned properties. If this parameter is not included, all properties are + * returned. * @return Google_Service_MapsEngine_Feature */ public function get($tableId, $id, $optParams = array()) @@ -3167,36 +3134,33 @@ public function get($tableId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); } + /** * Return all features readable by the current user. * (features.listTablesFeatures) * - * @param string $id - * The ID of the table to which these features belong. + * @param string $id The ID of the table to which these features belong. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * An SQL-like order by clause used to sort results. If this parameter is not included, the order - * of features is undefined. - * @opt_param string intersects - * A geometry literal that specifies the spatial restriction of the query. - * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. The maximum supported - * value is 1000. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string limit - * The total number of features to return from the query, irrespective of the number of pages. - * @opt_param string include - * A comma separated list of optional data to include. Optional data available: schema. - * @opt_param string where - * An SQL-like predicate used to filter results. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. + * @opt_param string orderBy An SQL-like order by clause used to sort results. + * If this parameter is not included, the order of features is undefined. + * @opt_param string intersects A geometry literal that specifies the spatial + * restriction of the query. + * @opt_param string maxResults The maximum number of items to include in the + * response, used for paging. The maximum supported value is 1000. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string version The table version to access. See Accessing Public + * Data for information. + * @opt_param string limit The total number of features to return from the + * query, irrespective of the number of pages. + * @opt_param string include A comma separated list of optional data to include. + * Optional data available: schema. + * @opt_param string where An SQL-like predicate used to filter results. + * @opt_param string select A SQL-like projection clause used to specify + * returned properties. If this parameter is not included, all properties are + * returned. * @return Google_Service_MapsEngine_FeaturesListResponse */ public function listTablesFeatures($id, $optParams = array()) @@ -3223,10 +3187,8 @@ class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Reso * the Supported data formats and limits article of the Google Maps Engine help * center. (files.insert) * - * @param string $id - * The ID of the table asset. - * @param string $filename - * The file name of this uploaded file. + * @param string $id The ID of the table asset. + * @param string $filename The file name of this uploaded file. * @param array $optParams Optional parameters. */ public function insert($id, $filename, $optParams = array()) @@ -3250,16 +3212,14 @@ class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Re /** * Return all parent ids of the specified table. (parents.listTablesParents) * - * @param string $id - * The ID of the table whose parents will be listed. + * @param string $id The ID of the table whose parents will be listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of nextPageToken from the previous response. + * @opt_param string maxResults The maximum number of items to include in a + * single response page. The maximum supported value is 50. * @return Google_Service_MapsEngine_ParentsListResponse */ public function listTablesParents($id, $optParams = array()) @@ -3284,8 +3244,7 @@ class Google_Service_MapsEngine_TablesPermissions_Resource extends Google_Servic * Remove permission entries from an already existing asset. * (permissions.batchDelete) * - * @param string $id - * The ID of the asset from which permissions will be removed. + * @param string $id The ID of the asset from which permissions will be removed. * @param Google_PermissionsBatchDeleteRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse @@ -3296,14 +3255,14 @@ public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDelet $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); } + /** * Add or update permission entries to an already existing asset. * * An asset can hold up to 20 different permission entries. Each batchInsert * request is atomic. (permissions.batchUpdate) * - * @param string $id - * The ID of the asset to which permissions will be added. + * @param string $id The ID of the asset to which permissions will be added. * @param Google_PermissionsBatchUpdateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse @@ -3314,12 +3273,12 @@ public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdat $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); } + /** * Return all of the permissions for the specified asset. * (permissions.listTablesPermissions) * - * @param string $id - * The ID of the asset whose permissions will be listed. + * @param string $id The ID of the asset whose permissions will be listed. * @param array $optParams Optional parameters. * @return Google_Service_MapsEngine_PermissionsListResponse */ @@ -3342,11 +3301,11 @@ class Google_Service_MapsEngine_AcquisitionTime extends Google_Model public $precision; public $start; + public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -3355,7 +3314,6 @@ public function setPrecision($precision) { $this->precision = $precision; } - public function getPrecision() { return $this->precision; @@ -3364,12 +3322,10 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; } - } class Google_Service_MapsEngine_Asset extends Google_Collection @@ -3392,11 +3348,11 @@ class Google_Service_MapsEngine_Asset extends Google_Collection public $type; public $writersCanEditPermissions; + public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -3405,7 +3361,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -3414,7 +3369,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -3423,7 +3377,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3432,7 +3385,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3441,7 +3393,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3450,7 +3401,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -3459,7 +3409,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -3468,7 +3417,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3477,7 +3425,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -3486,7 +3433,6 @@ public function setResource($resource) { $this->resource = $resource; } - public function getResource() { return $this->resource; @@ -3495,7 +3441,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -3504,7 +3449,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3513,12 +3457,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection @@ -3530,11 +3472,11 @@ class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection protected $assetsDataType = 'array'; public $nextPageToken; + public function setAssets($assets) { $this->assets = $assets; } - public function getAssets() { return $this->assets; @@ -3543,12 +3485,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_Border extends Google_Model @@ -3559,11 +3499,11 @@ class Google_Service_MapsEngine_Border extends Google_Model public $opacity; public $width; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -3572,7 +3512,6 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; @@ -3581,12 +3520,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_MapsEngine_Color extends Google_Model @@ -3596,11 +3533,11 @@ class Google_Service_MapsEngine_Color extends Google_Model public $color; public $opacity; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -3609,12 +3546,10 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; } - } class Google_Service_MapsEngine_Datasource extends Google_Model @@ -3623,16 +3558,15 @@ class Google_Service_MapsEngine_Datasource extends Google_Model ); public $id; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; } - } class Google_Service_MapsEngine_DisplayRule extends Google_Collection @@ -3652,11 +3586,11 @@ class Google_Service_MapsEngine_DisplayRule extends Google_Collection protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; protected $zoomLevelsDataType = ''; + public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -3665,7 +3599,6 @@ public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) { $this->lineOptions = $lineOptions; } - public function getLineOptions() { return $this->lineOptions; @@ -3674,7 +3607,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3683,7 +3615,6 @@ public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptio { $this->pointOptions = $pointOptions; } - public function getPointOptions() { return $this->pointOptions; @@ -3692,7 +3623,6 @@ public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygo { $this->polygonOptions = $polygonOptions; } - public function getPolygonOptions() { return $this->polygonOptions; @@ -3701,12 +3631,10 @@ public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) { $this->zoomLevels = $zoomLevels; } - public function getZoomLevels() { return $this->zoomLevels; } - } class Google_Service_MapsEngine_Feature extends Google_Model @@ -3718,11 +3646,11 @@ class Google_Service_MapsEngine_Feature extends Google_Model public $properties; public $type; + public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) { $this->geometry = $geometry; } - public function getGeometry() { return $this->geometry; @@ -3731,7 +3659,6 @@ public function setProperties($properties) { $this->properties = $properties; } - public function getProperties() { return $this->properties; @@ -3740,12 +3667,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_FeatureInfo extends Google_Model @@ -3754,16 +3679,15 @@ class Google_Service_MapsEngine_FeatureInfo extends Google_Model ); public $content; + public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; } - } class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection @@ -3775,11 +3699,11 @@ class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collec public $gxIds; public $primaryKeys; + public function setGxIds($gxIds) { $this->gxIds = $gxIds; } - public function getGxIds() { return $this->gxIds; @@ -3788,12 +3712,10 @@ public function setPrimaryKeys($primaryKeys) { $this->primaryKeys = $primaryKeys; } - public function getPrimaryKeys() { return $this->primaryKeys; } - } class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection @@ -3805,11 +3727,11 @@ class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collec protected $featuresDataType = 'array'; public $normalizeGeometries; + public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -3818,12 +3740,10 @@ public function setNormalizeGeometries($normalizeGeometries) { $this->normalizeGeometries = $normalizeGeometries; } - public function getNormalizeGeometries() { return $this->normalizeGeometries; } - } class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection @@ -3835,11 +3755,11 @@ class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collect protected $featuresDataType = 'array'; public $normalizeGeometries; + public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -3848,12 +3768,10 @@ public function setNormalizeGeometries($normalizeGeometries) { $this->normalizeGeometries = $normalizeGeometries; } - public function getNormalizeGeometries() { return $this->normalizeGeometries; } - } class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection @@ -3869,11 +3787,11 @@ class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection protected $schemaDataType = ''; public $type; + public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) { $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; } - public function getAllowedQueriesPerSecond() { return $this->allowedQueriesPerSecond; @@ -3882,7 +3800,6 @@ public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -3891,7 +3808,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3900,7 +3816,6 @@ public function setSchema(Google_Service_MapsEngine_Schema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -3909,12 +3824,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_Filter extends Google_Model @@ -3925,11 +3838,11 @@ class Google_Service_MapsEngine_Filter extends Google_Model public $operator; public $value; + public function setColumn($column) { $this->column = $column; } - public function getColumn() { return $this->column; @@ -3938,7 +3851,6 @@ public function setOperator($operator) { $this->operator = $operator; } - public function getOperator() { return $this->operator; @@ -3947,12 +3859,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model @@ -3961,16 +3871,15 @@ class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model ); public $type; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Service_MapsEngine_GeoJsonGeometry @@ -3980,19 +3889,19 @@ class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Service ); protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; protected $geometriesDataType = 'array'; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'GeometryCollection'; } + public function setGeometries($geometries) { $this->geometries = $geometries; } - public function getGeometries() { return $this->geometries; } - } class Google_Service_MapsEngine_GeoJsonLineString extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4001,19 +3910,19 @@ class Google_Service_MapsEngine_GeoJsonLineString extends Google_Service_MapsEng protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'LineString'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4022,19 +3931,19 @@ class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Service_Ma protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'MultiLineString'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4043,19 +3952,19 @@ class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Service_MapsEng protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'MultiPoint'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4064,19 +3973,19 @@ class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Service_MapsE protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'MultiPolygon'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonPoint extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4085,19 +3994,19 @@ class Google_Service_MapsEngine_GeoJsonPoint extends Google_Service_MapsEngine_G protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'Point'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Service_MapsEngine_GeoJsonGeometry @@ -4106,27 +4015,23 @@ class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Service_MapsEngine protected $internal_gapi_mappings = array( ); public $coordinates; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'Polygon'; } + public function setCoordinates($coordinates) { $this->coordinates = $coordinates; } - public function getCoordinates() { return $this->coordinates; } - } class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_Icon extends Google_Model @@ -4137,11 +4042,11 @@ class Google_Service_MapsEngine_Icon extends Google_Model public $id; public $name; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4150,7 +4055,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4159,12 +4063,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_MapsEngine_IconStyle extends Google_Model @@ -4178,11 +4080,11 @@ class Google_Service_MapsEngine_IconStyle extends Google_Model protected $scalingFunctionType = 'Google_Service_MapsEngine_ScalingFunction'; protected $scalingFunctionDataType = ''; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4191,7 +4093,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4200,7 +4101,6 @@ public function setScaledShape(Google_Service_MapsEngine_ScaledShape $scaledShap { $this->scaledShape = $scaledShape; } - public function getScaledShape() { return $this->scaledShape; @@ -4209,12 +4109,10 @@ public function setScalingFunction(Google_Service_MapsEngine_ScalingFunction $sc { $this->scalingFunction = $scalingFunction; } - public function getScalingFunction() { return $this->scalingFunction; } - } class Google_Service_MapsEngine_IconsListResponse extends Google_Collection @@ -4226,11 +4124,11 @@ class Google_Service_MapsEngine_IconsListResponse extends Google_Collection protected $iconsDataType = 'array'; public $nextPageToken; + public function setIcons($icons) { $this->icons = $icons; } - public function getIcons() { return $this->icons; @@ -4239,12 +4137,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_LabelStyle extends Google_Model @@ -4260,11 +4156,11 @@ class Google_Service_MapsEngine_LabelStyle extends Google_Model protected $outlineDataType = ''; public $size; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -4273,7 +4169,6 @@ public function setColumn($column) { $this->column = $column; } - public function getColumn() { return $this->column; @@ -4282,7 +4177,6 @@ public function setFontStyle($fontStyle) { $this->fontStyle = $fontStyle; } - public function getFontStyle() { return $this->fontStyle; @@ -4291,7 +4185,6 @@ public function setFontWeight($fontWeight) { $this->fontWeight = $fontWeight; } - public function getFontWeight() { return $this->fontWeight; @@ -4300,7 +4193,6 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; @@ -4309,7 +4201,6 @@ public function setOutline(Google_Service_MapsEngine_Color $outline) { $this->outline = $outline; } - public function getOutline() { return $this->outline; @@ -4318,12 +4209,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_MapsEngine_Layer extends Google_Collection @@ -4354,11 +4243,11 @@ class Google_Service_MapsEngine_Layer extends Google_Collection public $tags; public $writersCanEditPermissions; + public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -4367,7 +4256,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -4376,7 +4264,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -4385,7 +4272,6 @@ public function setDatasourceType($datasourceType) { $this->datasourceType = $datasourceType; } - public function getDatasourceType() { return $this->datasourceType; @@ -4394,7 +4280,6 @@ public function setDatasources(Google_Service_MapsEngine_Datasource $datasources { $this->datasources = $datasources; } - public function getDatasources() { return $this->datasources; @@ -4403,7 +4288,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4412,7 +4296,6 @@ public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; } - public function getDraftAccessList() { return $this->draftAccessList; @@ -4421,7 +4304,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4430,7 +4312,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4439,7 +4320,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -4448,7 +4328,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -4457,7 +4336,6 @@ public function setLayerType($layerType) { $this->layerType = $layerType; } - public function getLayerType() { return $this->layerType; @@ -4466,7 +4344,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4475,7 +4352,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -4484,7 +4360,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -4493,7 +4368,6 @@ public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; } - public function getPublishedAccessList() { return $this->publishedAccessList; @@ -4502,7 +4376,6 @@ public function setPublishingStatus($publishingStatus) { $this->publishingStatus = $publishingStatus; } - public function getPublishingStatus() { return $this->publishingStatus; @@ -4511,7 +4384,6 @@ public function setStyle(Google_Service_MapsEngine_VectorStyle $style) { $this->style = $style; } - public function getStyle() { return $this->style; @@ -4520,7 +4392,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -4529,12 +4400,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_LayersListResponse extends Google_Collection @@ -4546,11 +4415,11 @@ class Google_Service_MapsEngine_LayersListResponse extends Google_Collection protected $layersDataType = 'array'; public $nextPageToken; + public function setLayers($layers) { $this->layers = $layers; } - public function getLayers() { return $this->layers; @@ -4559,12 +4428,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_LineStyle extends Google_Collection @@ -4580,11 +4447,11 @@ class Google_Service_MapsEngine_LineStyle extends Google_Collection protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; protected $strokeDataType = ''; + public function setBorder(Google_Service_MapsEngine_Border $border) { $this->border = $border; } - public function getBorder() { return $this->border; @@ -4593,7 +4460,6 @@ public function setDash($dash) { $this->dash = $dash; } - public function getDash() { return $this->dash; @@ -4602,7 +4468,6 @@ public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -4611,12 +4476,10 @@ public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) { $this->stroke = $stroke; } - public function getStroke() { return $this->stroke; } - } class Google_Service_MapsEngine_LineStyleStroke extends Google_Model @@ -4627,11 +4490,11 @@ class Google_Service_MapsEngine_LineStyleStroke extends Google_Model public $opacity; public $width; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -4640,7 +4503,6 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; @@ -4649,12 +4511,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_MapsEngine_Map extends Google_Collection @@ -4683,11 +4543,11 @@ class Google_Service_MapsEngine_Map extends Google_Collection public $versions; public $writersCanEditPermissions; + public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -4696,7 +4556,6 @@ public function setContents(Google_Service_MapsEngine_MapItem $contents) { $this->contents = $contents; } - public function getContents() { return $this->contents; @@ -4705,7 +4564,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -4714,7 +4572,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -4723,7 +4580,6 @@ public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; } - public function getDefaultViewport() { return $this->defaultViewport; @@ -4732,7 +4588,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4741,7 +4596,6 @@ public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; } - public function getDraftAccessList() { return $this->draftAccessList; @@ -4750,7 +4604,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4759,7 +4612,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4768,7 +4620,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -4777,7 +4628,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -4786,7 +4636,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4795,7 +4644,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -4804,7 +4652,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -4813,7 +4660,6 @@ public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; } - public function getPublishedAccessList() { return $this->publishedAccessList; @@ -4822,7 +4668,6 @@ public function setPublishingStatus($publishingStatus) { $this->publishingStatus = $publishingStatus; } - public function getPublishingStatus() { return $this->publishingStatus; @@ -4831,7 +4676,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -4840,7 +4684,6 @@ public function setVersions($versions) { $this->versions = $versions; } - public function getVersions() { return $this->versions; @@ -4849,12 +4692,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_MapFolder extends Google_Service_MapsEngine_MapItem @@ -4869,14 +4710,15 @@ class Google_Service_MapsEngine_MapFolder extends Google_Service_MapsEngine_MapI public $key; public $name; public $visibility; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'folder'; } + public function setContents($contents) { $this->contents = $contents; } - public function getContents() { return $this->contents; @@ -4885,7 +4727,6 @@ public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; } - public function getDefaultViewport() { return $this->defaultViewport; @@ -4894,7 +4735,6 @@ public function setExpandable($expandable) { $this->expandable = $expandable; } - public function getExpandable() { return $this->expandable; @@ -4903,7 +4743,6 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -4912,7 +4751,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4921,12 +4759,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_MapsEngine_MapItem extends Google_Model @@ -4935,16 +4771,15 @@ class Google_Service_MapsEngine_MapItem extends Google_Model ); public $type; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_MapKmlLink extends Google_Service_MapsEngine_MapItem @@ -4956,14 +4791,15 @@ class Google_Service_MapsEngine_MapKmlLink extends Google_Service_MapsEngine_Map public $kmlUrl; public $name; public $visibility; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'kmlLink'; } + public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; } - public function getDefaultViewport() { return $this->defaultViewport; @@ -4972,7 +4808,6 @@ public function setKmlUrl($kmlUrl) { $this->kmlUrl = $kmlUrl; } - public function getKmlUrl() { return $this->kmlUrl; @@ -4981,7 +4816,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4990,12 +4824,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_MapsEngine_MapLayer extends Google_Service_MapsEngine_MapItem @@ -5008,14 +4840,15 @@ class Google_Service_MapsEngine_MapLayer extends Google_Service_MapsEngine_MapIt public $key; public $name; public $visibility; - protected function gapiInit() { + protected function gapiInit() + { $this->type = 'layer'; } + public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; } - public function getDefaultViewport() { return $this->defaultViewport; @@ -5024,7 +4857,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5033,7 +4865,6 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -5042,7 +4873,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5051,12 +4881,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_MapsEngine_MapsListResponse extends Google_Collection @@ -5068,11 +4896,11 @@ class Google_Service_MapsEngine_MapsListResponse extends Google_Collection protected $mapsDataType = 'array'; public $nextPageToken; + public function setMaps($maps) { $this->maps = $maps; } - public function getMaps() { return $this->maps; @@ -5081,12 +4909,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_MapsengineFile extends Google_Model @@ -5097,11 +4923,11 @@ class Google_Service_MapsEngine_MapsengineFile extends Google_Model public $size; public $uploadStatus; + public function setFilename($filename) { $this->filename = $filename; } - public function getFilename() { return $this->filename; @@ -5110,7 +4936,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -5119,12 +4944,10 @@ public function setUploadStatus($uploadStatus) { $this->uploadStatus = $uploadStatus; } - public function getUploadStatus() { return $this->uploadStatus; } - } class Google_Service_MapsEngine_Parent extends Google_Model @@ -5133,16 +4956,15 @@ class Google_Service_MapsEngine_Parent extends Google_Model ); public $id; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; } - } class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection @@ -5154,11 +4976,11 @@ class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection protected $parentsType = 'Google_Service_MapsEngine_Parent'; protected $parentsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5167,12 +4989,10 @@ public function setParents($parents) { $this->parents = $parents; } - public function getParents() { return $this->parents; } - } class Google_Service_MapsEngine_Permission extends Google_Model @@ -5184,11 +5004,11 @@ class Google_Service_MapsEngine_Permission extends Google_Model public $role; public $type; + public function setDiscoverable($discoverable) { $this->discoverable = $discoverable; } - public function getDiscoverable() { return $this->discoverable; @@ -5197,7 +5017,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5206,7 +5025,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -5215,12 +5033,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Collection @@ -5230,24 +5046,19 @@ class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Col ); public $ids; + public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; } - } class Google_Service_MapsEngine_PermissionsBatchDeleteResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Collection @@ -5258,24 +5069,19 @@ class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Col protected $permissionsType = 'Google_Service_MapsEngine_Permission'; protected $permissionsDataType = 'array'; + public function setPermissions($permissions) { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; } - } class Google_Service_MapsEngine_PermissionsBatchUpdateResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collection @@ -5286,16 +5092,15 @@ class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collectio protected $permissionsType = 'Google_Service_MapsEngine_Permission'; protected $permissionsDataType = 'array'; + public function setPermissions($permissions) { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; } - } class Google_Service_MapsEngine_PointStyle extends Google_Model @@ -5307,11 +5112,11 @@ class Google_Service_MapsEngine_PointStyle extends Google_Model protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; protected $labelDataType = ''; + public function setIcon(Google_Service_MapsEngine_IconStyle $icon) { $this->icon = $icon; } - public function getIcon() { return $this->icon; @@ -5320,12 +5125,10 @@ public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; } - public function getLabel() { return $this->label; } - } class Google_Service_MapsEngine_PolygonStyle extends Google_Model @@ -5339,11 +5142,11 @@ class Google_Service_MapsEngine_PolygonStyle extends Google_Model protected $strokeType = 'Google_Service_MapsEngine_Border'; protected $strokeDataType = ''; + public function setFill(Google_Service_MapsEngine_Color $fill) { $this->fill = $fill; } - public function getFill() { return $this->fill; @@ -5352,7 +5155,6 @@ public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -5361,20 +5163,14 @@ public function setStroke(Google_Service_MapsEngine_Border $stroke) { $this->stroke = $stroke; } - public function getStroke() { return $this->stroke; } - } class Google_Service_MapsEngine_ProcessResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_Project extends Google_Model @@ -5384,11 +5180,11 @@ class Google_Service_MapsEngine_Project extends Google_Model public $id; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5397,12 +5193,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection @@ -5413,24 +5207,19 @@ class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection protected $projectsType = 'Google_Service_MapsEngine_Project'; protected $projectsDataType = 'array'; + public function setProjects($projects) { $this->projects = $projects; } - public function getProjects() { return $this->projects; } - } class Google_Service_MapsEngine_PublishResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_PublishedLayer extends Google_Model @@ -5443,11 +5232,11 @@ class Google_Service_MapsEngine_PublishedLayer extends Google_Model public $name; public $projectId; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5456,7 +5245,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5465,7 +5253,6 @@ public function setLayerType($layerType) { $this->layerType = $layerType; } - public function getLayerType() { return $this->layerType; @@ -5474,7 +5261,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5483,12 +5269,10 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; } - } class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Collection @@ -5500,11 +5284,11 @@ class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Colle protected $layersDataType = 'array'; public $nextPageToken; + public function setLayers($layers) { $this->layers = $layers; } - public function getLayers() { return $this->layers; @@ -5513,12 +5297,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_PublishedMap extends Google_Model @@ -5533,11 +5315,11 @@ class Google_Service_MapsEngine_PublishedMap extends Google_Model public $name; public $projectId; + public function setContents(Google_Service_MapsEngine_MapItem $contents) { $this->contents = $contents; } - public function getContents() { return $this->contents; @@ -5546,7 +5328,6 @@ public function setDefaultViewport($defaultViewport) { $this->defaultViewport = $defaultViewport; } - public function getDefaultViewport() { return $this->defaultViewport; @@ -5555,7 +5336,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5564,7 +5344,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5573,7 +5352,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5582,12 +5360,10 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; } - } class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collection @@ -5599,11 +5375,11 @@ class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collect protected $mapsDataType = 'array'; public $nextPageToken; + public function setMaps($maps) { $this->maps = $maps; } - public function getMaps() { return $this->maps; @@ -5612,12 +5388,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_MapsEngine_Raster extends Google_Collection @@ -5647,11 +5421,11 @@ class Google_Service_MapsEngine_Raster extends Google_Collection public $tags; public $writersCanEditPermissions; + public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) { $this->acquisitionTime = $acquisitionTime; } - public function getAcquisitionTime() { return $this->acquisitionTime; @@ -5660,7 +5434,6 @@ public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -5669,7 +5442,6 @@ public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -5678,7 +5450,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -5687,7 +5458,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -5696,7 +5466,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5705,7 +5474,6 @@ public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; } - public function getDraftAccessList() { return $this->draftAccessList; @@ -5714,7 +5482,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5723,7 +5490,6 @@ public function setFiles($files) { $this->files = $files; } - public function getFiles() { return $this->files; @@ -5732,7 +5498,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5741,7 +5506,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -5750,7 +5514,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -5759,7 +5522,6 @@ public function setMaskType($maskType) { $this->maskType = $maskType; } - public function getMaskType() { return $this->maskType; @@ -5768,7 +5530,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5777,7 +5538,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -5786,7 +5546,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -5795,7 +5554,6 @@ public function setRasterType($rasterType) { $this->rasterType = $rasterType; } - public function getRasterType() { return $this->rasterType; @@ -5804,7 +5562,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -5813,12 +5570,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_RasterCollection extends Google_Collection @@ -5844,11 +5599,11 @@ class Google_Service_MapsEngine_RasterCollection extends Google_Collection public $tags; public $writersCanEditPermissions; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -5857,7 +5612,6 @@ public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -5866,7 +5620,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -5875,7 +5628,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -5884,7 +5636,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5893,7 +5644,6 @@ public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; } - public function getDraftAccessList() { return $this->draftAccessList; @@ -5902,7 +5652,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5911,7 +5660,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5920,7 +5668,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -5929,7 +5676,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -5938,7 +5684,6 @@ public function setMosaic($mosaic) { $this->mosaic = $mosaic; } - public function getMosaic() { return $this->mosaic; @@ -5947,7 +5692,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5956,7 +5700,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -5965,7 +5708,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -5974,7 +5716,6 @@ public function setRasterType($rasterType) { $this->rasterType = $rasterType; } - public function getRasterType() { return $this->rasterType; @@ -5983,7 +5724,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -5992,12 +5732,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection @@ -6009,11 +5747,11 @@ class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Col protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; protected $rasterCollectionsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6022,12 +5760,10 @@ public function setRasterCollections($rasterCollections) { $this->rasterCollections = $rasterCollections; } - public function getRasterCollections() { return $this->rasterCollections; } - } class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection @@ -6045,11 +5781,11 @@ class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collectio public $rasterType; public $tags; + public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -6058,7 +5794,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -6067,7 +5802,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6076,7 +5810,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6085,7 +5818,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -6094,7 +5826,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6103,7 +5834,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -6112,7 +5842,6 @@ public function setRasterType($rasterType) { $this->rasterType = $rasterType; } - public function getRasterType() { return $this->rasterType; @@ -6121,12 +5850,10 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; } - } class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection @@ -6136,24 +5863,19 @@ class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extend ); public $ids; + public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; } - } class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection @@ -6163,24 +5885,19 @@ class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest exten ); public $ids; + public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; } - } class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection @@ -6192,11 +5909,11 @@ class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Goo protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; protected $rastersDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6205,12 +5922,10 @@ public function setRasters($rasters) { $this->rasters = $rasters; } - public function getRasters() { return $this->rasters; } - } class Google_Service_MapsEngine_RastersListResponse extends Google_Collection @@ -6222,11 +5937,11 @@ class Google_Service_MapsEngine_RastersListResponse extends Google_Collection protected $rastersType = 'Google_Service_MapsEngine_Raster'; protected $rastersDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6235,12 +5950,10 @@ public function setRasters($rasters) { $this->rasters = $rasters; } - public function getRasters() { return $this->rasters; } - } class Google_Service_MapsEngine_ScaledShape extends Google_Model @@ -6253,11 +5966,11 @@ class Google_Service_MapsEngine_ScaledShape extends Google_Model protected $fillDataType = ''; public $shape; + public function setBorder(Google_Service_MapsEngine_Border $border) { $this->border = $border; } - public function getBorder() { return $this->border; @@ -6266,7 +5979,6 @@ public function setFill(Google_Service_MapsEngine_Color $fill) { $this->fill = $fill; } - public function getFill() { return $this->fill; @@ -6275,12 +5987,10 @@ public function setShape($shape) { $this->shape = $shape; } - public function getShape() { return $this->shape; } - } class Google_Service_MapsEngine_ScalingFunction extends Google_Model @@ -6294,11 +6004,11 @@ class Google_Service_MapsEngine_ScalingFunction extends Google_Model protected $valueRangeType = 'Google_Service_MapsEngine_ValueRange'; protected $valueRangeDataType = ''; + public function setColumn($column) { $this->column = $column; } - public function getColumn() { return $this->column; @@ -6307,7 +6017,6 @@ public function setScalingType($scalingType) { $this->scalingType = $scalingType; } - public function getScalingType() { return $this->scalingType; @@ -6316,7 +6025,6 @@ public function setSizeRange(Google_Service_MapsEngine_SizeRange $sizeRange) { $this->sizeRange = $sizeRange; } - public function getSizeRange() { return $this->sizeRange; @@ -6325,12 +6033,10 @@ public function setValueRange(Google_Service_MapsEngine_ValueRange $valueRange) { $this->valueRange = $valueRange; } - public function getValueRange() { return $this->valueRange; } - } class Google_Service_MapsEngine_Schema extends Google_Collection @@ -6343,11 +6049,11 @@ class Google_Service_MapsEngine_Schema extends Google_Collection public $primaryGeometry; public $primaryKey; + public function setColumns($columns) { $this->columns = $columns; } - public function getColumns() { return $this->columns; @@ -6356,7 +6062,6 @@ public function setPrimaryGeometry($primaryGeometry) { $this->primaryGeometry = $primaryGeometry; } - public function getPrimaryGeometry() { return $this->primaryGeometry; @@ -6365,12 +6070,10 @@ public function setPrimaryKey($primaryKey) { $this->primaryKey = $primaryKey; } - public function getPrimaryKey() { return $this->primaryKey; } - } class Google_Service_MapsEngine_SizeRange extends Google_Model @@ -6380,11 +6083,11 @@ class Google_Service_MapsEngine_SizeRange extends Google_Model public $max; public $min; + public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -6393,12 +6096,10 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; } - } class Google_Service_MapsEngine_Table extends Google_Collection @@ -6427,11 +6128,11 @@ class Google_Service_MapsEngine_Table extends Google_Collection public $tags; public $writersCanEditPermissions; + public function setBbox($bbox) { $this->bbox = $bbox; } - public function getBbox() { return $this->bbox; @@ -6440,7 +6141,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -6449,7 +6149,6 @@ public function setCreatorEmail($creatorEmail) { $this->creatorEmail = $creatorEmail; } - public function getCreatorEmail() { return $this->creatorEmail; @@ -6458,7 +6157,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6467,7 +6165,6 @@ public function setDraftAccessList($draftAccessList) { $this->draftAccessList = $draftAccessList; } - public function getDraftAccessList() { return $this->draftAccessList; @@ -6476,7 +6173,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6485,7 +6181,6 @@ public function setFiles($files) { $this->files = $files; } - public function getFiles() { return $this->files; @@ -6494,7 +6189,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6503,7 +6197,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -6512,7 +6205,6 @@ public function setLastModifierEmail($lastModifierEmail) { $this->lastModifierEmail = $lastModifierEmail; } - public function getLastModifierEmail() { return $this->lastModifierEmail; @@ -6521,7 +6213,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6530,7 +6221,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -6539,7 +6229,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -6548,7 +6237,6 @@ public function setPublishedAccessList($publishedAccessList) { $this->publishedAccessList = $publishedAccessList; } - public function getPublishedAccessList() { return $this->publishedAccessList; @@ -6557,7 +6245,6 @@ public function setSchema(Google_Service_MapsEngine_Schema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -6566,7 +6253,6 @@ public function setSourceEncoding($sourceEncoding) { $this->sourceEncoding = $sourceEncoding; } - public function getSourceEncoding() { return $this->sourceEncoding; @@ -6575,7 +6261,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -6584,12 +6269,10 @@ public function setWritersCanEditPermissions($writersCanEditPermissions) { $this->writersCanEditPermissions = $writersCanEditPermissions; } - public function getWritersCanEditPermissions() { return $this->writersCanEditPermissions; } - } class Google_Service_MapsEngine_TableColumn extends Google_Model @@ -6599,11 +6282,11 @@ class Google_Service_MapsEngine_TableColumn extends Google_Model public $name; public $type; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6612,12 +6295,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_TablesListResponse extends Google_Collection @@ -6629,11 +6310,11 @@ class Google_Service_MapsEngine_TablesListResponse extends Google_Collection protected $tablesType = 'Google_Service_MapsEngine_Table'; protected $tablesDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6642,12 +6323,10 @@ public function setTables($tables) { $this->tables = $tables; } - public function getTables() { return $this->tables; } - } class Google_Service_MapsEngine_ValueRange extends Google_Model @@ -6657,11 +6336,11 @@ class Google_Service_MapsEngine_ValueRange extends Google_Model public $max; public $min; + public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -6670,12 +6349,10 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; } - } class Google_Service_MapsEngine_VectorStyle extends Google_Collection @@ -6689,11 +6366,11 @@ class Google_Service_MapsEngine_VectorStyle extends Google_Collection protected $featureInfoDataType = ''; public $type; + public function setDisplayRules($displayRules) { $this->displayRules = $displayRules; } - public function getDisplayRules() { return $this->displayRules; @@ -6702,7 +6379,6 @@ public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInf { $this->featureInfo = $featureInfo; } - public function getFeatureInfo() { return $this->featureInfo; @@ -6711,12 +6387,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_MapsEngine_ZoomLevels extends Google_Model @@ -6726,11 +6400,11 @@ class Google_Service_MapsEngine_ZoomLevels extends Google_Model public $max; public $min; + public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -6739,10 +6413,8 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; } - } From 8edac91f4772b2e6419d7075a6bb585cc7e138fb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:28 -0800 Subject: [PATCH 0443/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 1224 +++++++++++----------------------- 1 file changed, 376 insertions(+), 848 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index a627fe32e..328a32cb8 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -19,8 +19,7 @@ * Service definition for Books (v1). * *

- * Lets you search for books and manage your Google Books library. - *

+ * Lets you search for books and manage your Google Books library.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_Books extends Google_Service { /** Manage your books. */ - const BOOKS = "https://www.googleapis.com/auth/books"; + const BOOKS = + "https://www.googleapis.com/auth/books"; public $bookshelves; public $bookshelves_volumes; @@ -1319,14 +1319,11 @@ 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 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. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Bookshelf */ public function get($userId, $shelf, $optParams = array()) @@ -1335,16 +1332,15 @@ public function get($userId, $shelf, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); } + /** * Retrieves a list of public bookshelves for the specified user. * (bookshelves.listBookshelves) * - * @param string $userId - * ID of user for whom to retrieve bookshelves. + * @param 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. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Bookshelves */ public function listBookshelves($userId, $optParams = array()) @@ -1370,20 +1366,16 @@ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Re * Retrieves volumes in a specific bookshelf for the specified user. * (volumes.listBookshelvesVolumes) * - * @param string $userId - * ID of user for whom to retrieve bookshelf volumes. - * @param string $shelf - * ID of bookshelf to retrieve volumes. + * @param 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) + * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults + * to false. + * @opt_param string maxResults Maximum number of results to return + * @opt_param string source String to identify the originator of this request. + * @opt_param string startIndex Index of the first element to return (starts at + * 0) * @return Google_Service_Books_Volumes */ public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) @@ -1411,13 +1403,12 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string upload_client_token - * - * @opt_param string drive_document_id - * A drive document id. The upload_client_token must not be set. - * @opt_param string mime_type - * The document MIME type. It can be set only if the drive_document_id is set. - * @opt_param string name - * The document name. It can be set only if the drive_document_id is set. + * @opt_param string drive_document_id A drive document id. The + * upload_client_token must not be set. + * @opt_param string mime_type The document MIME type. It can be set only if the + * drive_document_id is set. + * @opt_param string name The document name. It can be set only if the + * drive_document_id is set. * @return Google_Service_Books_BooksCloudloadingResource */ public function addBook($optParams = array()) @@ -1426,11 +1417,11 @@ public function addBook($optParams = array()) $params = array_merge($params, $optParams); return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); } + /** * Remove the book and its contents (cloudloading.deleteBook) * - * @param string $volumeId - * The id of the book to be removed. + * @param string $volumeId The id of the book to be removed. * @param array $optParams Optional parameters. */ public function deleteBook($volumeId, $optParams = array()) @@ -1439,6 +1430,7 @@ public function deleteBook($volumeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('deleteBook', array($params)); } + /** * (cloudloading.updateBook) * @@ -1468,16 +1460,13 @@ 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 string $volumeId The volume to retrieve layers for. + * @param string $summaryId The ID for the layer to get the summary for. * @param array $optParams Optional parameters. * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string contentVersion - * The content version for the requested volume. + * @opt_param string source String to identify the originator of this request. + * @opt_param string contentVersion The content version for the requested + * volume. * @return Google_Service_Books_Layersummary */ public function get($volumeId, $summaryId, $optParams = array()) @@ -1486,21 +1475,19 @@ public function get($volumeId, $summaryId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Layersummary"); } + /** * List the layer summaries for a volume. (layers.listLayers) * - * @param string $volumeId - * The volume to retrieve layers for. + * @param string $volumeId The volume to retrieve layers for. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string contentVersion - * The content version for the requested volume. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string source - * String to identify the originator of this request. + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param string contentVersion The content version for the requested + * volume. + * @opt_param string maxResults Maximum number of results to return + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Layersummaries */ public function listLayers($volumeId, $optParams = array()) @@ -1525,29 +1512,23 @@ class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_ /** * 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 string $volumeId The volume to retrieve annotations for. + * @param string $layerId The ID for the layer to get the annotations. + * @param string $annotationDataId The ID of the annotation data to retrieve. + * @param string $contentVersion The content version for the volume you are + * trying to retrieve. * @param array $optParams Optional parameters. * - * @opt_param int scale - * The requested scale for the image. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param bool allowWebDefinitions - * For the dictionary layer. Whether or not to allow web definitions. - * @opt_param int h - * The requested pixel height for any images. If height is provided width must also be provided. - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param int w - * The requested pixel width for any images. If width is provided height must also be provided. + * @opt_param int scale The requested scale for the image. + * @opt_param string source String to identify the originator of this request. + * @opt_param bool allowWebDefinitions For the dictionary layer. Whether or not + * to allow web definitions. + * @opt_param int h The requested pixel height for any images. If height is + * provided width must also be provided. + * @opt_param string locale The locale information for the data. ISO-639-1 + * language and ISO-3166-1 country code. Ex: 'en_US'. + * @opt_param int w The requested pixel width for any images. If width is + * provided height must also be provided. * @return Google_Service_Books_Annotationdata */ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) @@ -1556,39 +1537,33 @@ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $op $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Annotationdata"); } + /** * Gets the annotation data for a volume and layer. * (annotationData.listLayersAnnotationData) * - * @param string $volumeId - * The volume to retrieve annotation data for. - * @param string $layerId - * The ID for the layer to get the annotation data. - * @param string $contentVersion - * The content version for the requested volume. + * @param 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). + * @opt_param int scale The requested scale for the image. + * @opt_param string source String to identify the originator of this request. + * @opt_param string locale The locale information for the data. ISO-639-1 + * language and ISO-3166-1 country code. Ex: 'en_US'. + * @opt_param int h The requested pixel height for any images. If height is + * provided width must also be provided. + * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated + * prior to this timestamp (exclusive). + * @opt_param string maxResults Maximum number of results to return + * @opt_param string annotationDataId The list of Annotation Data Ids to + * retrieve. Pagination is ignored if this is set. + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param int w The requested pixel width for any images. If width is + * provided height must also be provided. + * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated + * since this timestamp (inclusive). * @return Google_Service_Books_Annotationsdata */ public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) @@ -1612,19 +1587,14 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi /** * 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 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. + * @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()) @@ -1633,44 +1603,35 @@ public function get($volumeId, $layerId, $annotationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Volumeannotation"); } + /** * Gets the volume annotations for a volume and layer. * (volumeAnnotations.listLayersVolumeAnnotations) * - * @param string $volumeId - * The volume to retrieve annotations for. - * @param string $layerId - * The ID for the layer to get the annotations. - * @param string $contentVersion - * The content version for the requested volume. + * @param string $volumeId The volume to retrieve annotations for. + * @param string $layerId The ID for the layer to get the annotations. + * @param string $contentVersion The content version for the requested volume. * @param array $optParams Optional parameters. * - * @opt_param bool showDeleted - * Set to true to return deleted annotations. updatedMin must be in the request to use this. - * Defaults to false. - * @opt_param string volumeAnnotationsVersion - * The version of the volume annotations that you are requesting. - * @opt_param string endPosition - * The end position to end retrieving data from. - * @opt_param string endOffset - * The end offset to end retrieving data from. - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param string updatedMin - * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). - * @opt_param string updatedMax - * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startOffset - * The start offset to start retrieving data from. - * @opt_param string startPosition - * The start position to start retrieving data from. + * @opt_param bool showDeleted Set to true to return deleted annotations. + * updatedMin must be in the request to use this. Defaults to false. + * @opt_param string volumeAnnotationsVersion The version of the volume + * annotations that you are requesting. + * @opt_param string endPosition The end position to end retrieving data from. + * @opt_param string endOffset The end offset to end retrieving data from. + * @opt_param string locale The locale information for the data. ISO-639-1 + * language and ISO-3166-1 country code. Ex: 'en_US'. + * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated + * since this timestamp (inclusive). + * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated + * prior to this timestamp (exclusive). + * @opt_param string maxResults Maximum number of results to return + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param string source String to identify the originator of this request. + * @opt_param string startOffset The start offset to start retrieving data from. + * @opt_param string startPosition The start position to start retrieving data + * from. * @return Google_Service_Books_Volumeannotations */ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) @@ -1696,16 +1657,14 @@ 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 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. + * @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()) @@ -1714,23 +1673,22 @@ public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array() $params = array_merge($params, $optParams); return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses"); } + /** * Request concurrent and download access restrictions. (myconfig.requestAccess) * - * @param string $source - * String to identify the originator of this request. - * @param string $volumeId - * The volume to request concurrent/download restrictions for. - * @param string $nonce - * The client nonce value. - * @param string $cpksver - * The device/version ID from which to request the restrictions. + * @param string $source String to identify the originator of this request. + * @param string $volumeId The volume to request concurrent/download + * restrictions for. + * @param string $nonce The client nonce value. + * @param string $cpksver The device/version ID from which to request the + * restrictions. * @param array $optParams Optional parameters. * - * @opt_param string licenseTypes - * The type of access license to request. If not specified, the default is BOTH. - * @opt_param string locale - * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + * @opt_param string licenseTypes The type of access license to request. If not + * specified, the default is BOTH. + * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message + * localization, i.e. en_US. * @return Google_Service_Books_RequestAccess */ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) @@ -1739,26 +1697,25 @@ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = $params = array_merge($params, $optParams); return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess"); } + /** * Request downloaded content access for specified volumes on the My eBooks * shelf. (myconfig.syncVolumeLicenses) * - * @param string $source - * String to identify the originator of this request. - * @param string $nonce - * The client nonce value. - * @param string $cpksver - * The device/version ID from which to release the restriction. + * @param string $source String to identify the originator of this request. + * @param string $nonce The client nonce value. + * @param string $cpksver The device/version ID from which to release the + * restriction. * @param array $optParams Optional parameters. * - * @opt_param string features - * List of features supported by the client, i.e., 'RENTALS' - * @opt_param string locale - * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - * @opt_param bool showPreorders - * Set to true to show pre-ordered books. Defaults to false. - * @opt_param string volumeIds - * The volume(s) to request download restrictions for. + * @opt_param string features List of features supported by the client, i.e., + * 'RENTALS' + * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message + * localization, i.e. en_US. + * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults + * to false. + * @opt_param string volumeIds The volume(s) to request download restrictions + * for. * @return Google_Service_Books_Volumes */ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) @@ -1779,7 +1736,6 @@ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array */ class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource { - } /** @@ -1796,12 +1752,10 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_ /** * Deletes an annotation. (annotations.delete) * - * @param string $annotationId - * The ID for the annotation to 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. + * @opt_param string source String to identify the originator of this request. */ public function delete($annotationId, $optParams = array()) { @@ -1809,15 +1763,14 @@ public function delete($annotationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets an annotation by its ID. (annotations.get) * - * @param string $annotationId - * The ID for the annotation to retrieve. + * @param 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. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Annotation */ public function get($annotationId, $optParams = array()) @@ -1826,16 +1779,16 @@ public function get($annotationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Annotation"); } + /** * Inserts a new annotation. (annotations.insert) * * @param Google_Annotation $postBody * @param array $optParams Optional parameters. * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param bool showOnlySummaryInResponse - * Requests that only the summary of the specified layer be provided in the response. + * @opt_param string source String to identify the originator of this request. + * @opt_param bool showOnlySummaryInResponse Requests that only the summary of + * the specified layer be provided in the response. * @return Google_Service_Books_Annotation */ public function insert(Google_Service_Books_Annotation $postBody, $optParams = array()) @@ -1844,35 +1797,30 @@ public function insert(Google_Service_Books_Annotation $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Books_Annotation"); } + /** * Retrieves a list of annotations, possibly filtered. * (annotations.listMylibraryAnnotations) * * @param array $optParams Optional parameters. * - * @opt_param bool showDeleted - * Set to true to return deleted annotations. updatedMin must be in the request to use this. - * Defaults to false. - * @opt_param string updatedMin - * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). - * @opt_param string layerIds - * The layer ID(s) to limit annotation by. - * @opt_param string volumeId - * The volume to restrict annotations to. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string pageIds - * The page ID(s) for the volume that is being queried. - * @opt_param string contentVersion - * The content version for the requested volume. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string layerId - * The layer ID to limit annotation by. - * @opt_param string updatedMax - * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). + * @opt_param bool showDeleted Set to true to return deleted annotations. + * updatedMin must be in the request to use this. Defaults to false. + * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated + * since this timestamp (inclusive). + * @opt_param string layerIds The layer ID(s) to limit annotation by. + * @opt_param string volumeId The volume to restrict annotations to. + * @opt_param string maxResults Maximum number of results to return + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param string pageIds The page ID(s) for the volume that is being + * queried. + * @opt_param string contentVersion The content version for the requested + * volume. + * @opt_param string source String to identify the originator of this request. + * @opt_param string layerId The layer ID to limit annotation by. + * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated + * prior to this timestamp (exclusive). * @return Google_Service_Books_Annotations */ public function listMylibraryAnnotations($optParams = array()) @@ -1881,13 +1829,12 @@ public function listMylibraryAnnotations($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Books_Annotations"); } + /** * Gets the summary of specified layers. (annotations.summary) * - * @param string $layerIds - * Array of layer IDs to get the summary for. - * @param string $volumeId - * Volume id to get the summary for. + * @param string $layerIds Array of layer IDs to get the summary for. + * @param string $volumeId Volume id to get the summary for. * @param array $optParams Optional parameters. * @return Google_Service_Books_AnnotationsSummary */ @@ -1897,16 +1844,15 @@ public function summary($layerIds, $volumeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary"); } + /** * Updates an existing annotation. (annotations.update) * - * @param string $annotationId - * The ID for the annotation to update. + * @param 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. + * @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()) @@ -1930,14 +1876,11 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_ /** * 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 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. + * @opt_param string source String to identify the originator of this request. */ public function addVolume($shelf, $volumeId, $optParams = array()) { @@ -1945,15 +1888,14 @@ public function addVolume($shelf, $volumeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('addVolume', array($params)); } + /** * Clears all volumes from a bookshelf. (bookshelves.clearVolumes) * - * @param string $shelf - * ID of bookshelf from which to remove a volume. + * @param 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. + * @opt_param string source String to identify the originator of this request. */ public function clearVolumes($shelf, $optParams = array()) { @@ -1961,16 +1903,15 @@ public function clearVolumes($shelf, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('clearVolumes', array($params)); } + /** * Retrieves metadata for a specific bookshelf belonging to the authenticated * user. (bookshelves.get) * - * @param string $shelf - * ID of bookshelf to retrieve. + * @param string $shelf ID of bookshelf to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string source - * String to identify the originator of this request. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Bookshelf */ public function get($shelf, $optParams = array()) @@ -1979,14 +1920,14 @@ public function get($shelf, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); } + /** * Retrieves a list of bookshelves belonging to the authenticated user. * (bookshelves.listMylibraryBookshelves) * * @param array $optParams Optional parameters. * - * @opt_param string source - * String to identify the originator of this request. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Bookshelves */ public function listMylibraryBookshelves($optParams = array()) @@ -1995,20 +1936,18 @@ public function listMylibraryBookshelves($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); } + /** * Moves a volume within a bookshelf. (bookshelves.moveVolume) * - * @param string $shelf - * ID of bookshelf with the volume. - * @param string $volumeId - * ID of volume to move. - * @param int $volumePosition - * Position on shelf to move the item (0 puts the item before the current first item, 1 puts it - * between the first and the second and so on.) + * @param 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. + * @opt_param string source String to identify the originator of this request. */ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) { @@ -2016,17 +1955,15 @@ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = arra $params = array_merge($params, $optParams); return $this->call('moveVolume', array($params)); } + /** * Removes a volume from a bookshelf. (bookshelves.removeVolume) * - * @param string $shelf - * ID of bookshelf from which to remove a volume. - * @param string $volumeId - * ID of volume to remove. + * @param 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. + * @opt_param string source String to identify the originator of this request. */ public function removeVolume($shelf, $volumeId, $optParams = array()) { @@ -2051,24 +1988,19 @@ class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_S * Gets volume information for volumes on a bookshelf. * (volumes.listMylibraryBookshelvesVolumes) * - * @param string $shelf - * The bookshelf ID or name retrieve volumes for. + * @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) + * @opt_param string projection Restrict information returned to a set of + * selected fields. + * @opt_param string country ISO-3166-1 code to override the IP-based location. + * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults + * to false. + * @opt_param string maxResults Maximum number of results to return + * @opt_param string q Full-text search query string in this bookshelf. + * @opt_param string source String to identify the originator of this request. + * @opt_param string startIndex Index of the first element to return (starts at + * 0) * @return Google_Service_Books_Volumes */ public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) @@ -2093,14 +2025,13 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser * Retrieves my reading position information for a volume. * (readingpositions.get) * - * @param string $volumeId - * ID of volume for which to retrieve a reading position. + * @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. + * @opt_param string source String to identify the originator of this request. + * @opt_param string contentVersion Volume content version for which this + * reading position is requested. * @return Google_Service_Books_ReadingPosition */ public function get($volumeId, $optParams = array()) @@ -2109,26 +2040,24 @@ public function get($volumeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_ReadingPosition"); } + /** * Sets my reading position information for a volume. * (readingpositions.setPosition) * - * @param string $volumeId - * ID of volume for which to update the reading position. - * @param string $timestamp - * RFC 3339 UTC format timestamp associated with this reading position. - * @param string $position - * Position string for the new volume reading position. + * @param string $volumeId ID of volume for which to update the reading + * position. + * @param string $timestamp RFC 3339 UTC format timestamp associated with this + * reading position. + * @param string $position Position string for the new volume reading position. * @param array $optParams Optional parameters. * - * @opt_param string deviceCookie - * Random persistent device cookie optional on set position. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string contentVersion - * Volume content version for which this reading position applies. - * @opt_param string action - * Action that caused this reading position to be set. + * @opt_param string deviceCookie Random persistent device cookie optional on + * set position. + * @opt_param string source String to identify the originator of this request. + * @opt_param string contentVersion Volume content version for which this + * reading position applies. + * @opt_param string action Action that caused this reading position to be set. */ public function setPosition($volumeId, $timestamp, $position, $optParams = array()) { @@ -2154,22 +2083,14 @@ class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string product - * device product - * @opt_param string volumeId - * Volume id to exercise the offer + * @opt_param string product device product + * @opt_param string volumeId Volume id to exercise the offer * @opt_param string offerId - * - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer + * @opt_param string androidId device android_id + * @opt_param string device device device + * @opt_param string model device model + * @opt_param string serial device serial + * @opt_param string manufacturer device manufacturer */ public function accept($optParams = array()) { @@ -2177,25 +2098,19 @@ public function accept($optParams = array()) $params = array_merge($params, $optParams); return $this->call('accept', array($params)); } + /** * (promooffer.dismiss) * * @param array $optParams Optional parameters. * - * @opt_param string product - * device product - * @opt_param string offerId - * Offer to dimiss - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer + * @opt_param string product device product + * @opt_param string offerId Offer to dimiss + * @opt_param string androidId device android_id + * @opt_param string device device device + * @opt_param string model device model + * @opt_param string serial device serial + * @opt_param string manufacturer device manufacturer */ public function dismiss($optParams = array()) { @@ -2203,23 +2118,18 @@ public function dismiss($optParams = array()) $params = array_merge($params, $optParams); return $this->call('dismiss', array($params)); } + /** * Returns a list of promo offers available to the user (promooffer.get) * * @param array $optParams Optional parameters. * - * @opt_param string product - * device product - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer + * @opt_param string product device product + * @opt_param string androidId device android_id + * @opt_param string device device device + * @opt_param string model device model + * @opt_param string serial device serial + * @opt_param string manufacturer device manufacturer * @return Google_Service_Books_Offers */ public function get($optParams = array()) @@ -2244,18 +2154,14 @@ 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 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. + * @opt_param string source String to identify the originator of this request. + * @opt_param string country ISO-3166-1 code to override the IP-based location. + * @opt_param string projection Restrict information returned to a set of + * selected fields. + * @opt_param string partner Brand results for partner ID. * @return Google_Service_Books_Volume */ public function get($volumeId, $optParams = array()) @@ -2264,37 +2170,29 @@ public function get($volumeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Books_Volume"); } + /** * Performs a book search. (volumes.listVolumes) * - * @param string $q - * Full-text search query string. + * @param 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. + * @opt_param string orderBy Sort search results. + * @opt_param string projection Restrict information returned to a set of + * selected fields. + * @opt_param string libraryRestrict Restrict search to this user's library. + * @opt_param string langRestrict Restrict results to books with this language + * code. + * @opt_param bool showPreorders Set to true to show books available for + * preorder. Defaults to false. + * @opt_param string printType Restrict to books or magazines. + * @opt_param string maxResults Maximum number of results to return. + * @opt_param string filter Filter search results. + * @opt_param string source String to identify the originator of this request. + * @opt_param string startIndex Index of the first result to return (starts at + * 0) + * @opt_param string download Restrict to volumes by download availability. + * @opt_param string partner Restrict and brand results for partner ID. * @return Google_Service_Books_Volumes */ public function listVolumes($q, $optParams = array()) @@ -2319,17 +2217,13 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res /** * Return a list of associated books. (associated.listVolumesAssociated) * - * @param string $volumeId - * ID of the source volume. + * @param string $volumeId ID of the source volume. * @param array $optParams Optional parameters. * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. - * @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. + * @opt_param string association Association type. * @return Google_Service_Books_Volumes */ public function listVolumesAssociated($volumeId, $optParams = array()) @@ -2355,19 +2249,16 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour * * @param array $optParams Optional parameters. * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations. - * @opt_param string startIndex - * Index of the first result to return (starts at 0) - * @opt_param string maxResults - * Maximum number of results to return. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string acquireMethod - * How the book was aquired - * @opt_param string processingState - * The processing state of the user uploaded volumes to be returned. Applicable only if the - * UPLOADED is specified in the acquireMethod. + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. + * Ex:'en_US'. Used for generating recommendations. + * @opt_param string startIndex Index of the first result to return (starts at + * 0) + * @opt_param string maxResults Maximum number of results to return. + * @opt_param string source String to identify the originator of this request. + * @opt_param string acquireMethod How the book was aquired + * @opt_param string processingState The processing state of the user uploaded + * volumes to be returned. Applicable only if the UPLOADED is specified in the + * acquireMethod. * @return Google_Service_Books_Volumes */ public function listVolumesMybooks($optParams = array()) @@ -2394,11 +2285,9 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re * * @param array $optParams Optional parameters. * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. + * @opt_param string 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()) @@ -2407,20 +2296,17 @@ public function listVolumesRecommended($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Books_Volumes"); } + /** * Rate a recommended book for the current user. (recommended.rate) * - * @param string $rating - * Rating to be given to the volume. - * @param string $volumeId - * ID of the source volume. + * @param string $rating Rating to be given to the volume. + * @param string $volumeId ID of the source volume. * @param array $optParams Optional parameters. * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. Used for generating recommendations. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_BooksVolumesRecommendedRateResponse */ public function rate($rating, $volumeId, $optParams = array()) @@ -2447,20 +2333,16 @@ class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_R * * @param array $optParams Optional parameters. * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string volumeId - * The ids of the volumes to be returned. If not specified all that match the processingState are - * returned. - * @opt_param string maxResults - * Maximum number of results to return. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startIndex - * Index of the first result to return (starts at 0) - * @opt_param string processingState - * The processing state of the user uploaded volumes to be returned. + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. Used for generating recommendations. + * @opt_param string volumeId The ids of the volumes to be returned. If not + * specified all that match the processingState are returned. + * @opt_param string maxResults Maximum number of results to return. + * @opt_param string source String to identify the originator of this request. + * @opt_param string startIndex Index of the first result to return (starts at + * 0) + * @opt_param string processingState The processing state of the user uploaded + * volumes to be returned. * @return Google_Service_Books_Volumes */ public function listVolumesUseruploaded($optParams = array()) @@ -2500,11 +2382,11 @@ class Google_Service_Books_Annotation extends Google_Collection public $updated; public $volumeId; + public function setAfterSelectedText($afterSelectedText) { $this->afterSelectedText = $afterSelectedText; } - public function getAfterSelectedText() { return $this->afterSelectedText; @@ -2513,7 +2395,6 @@ public function setBeforeSelectedText($beforeSelectedText) { $this->beforeSelectedText = $beforeSelectedText; } - public function getBeforeSelectedText() { return $this->beforeSelectedText; @@ -2522,7 +2403,6 @@ public function setClientVersionRanges(Google_Service_Books_AnnotationClientVers { $this->clientVersionRanges = $clientVersionRanges; } - public function getClientVersionRanges() { return $this->clientVersionRanges; @@ -2531,7 +2411,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -2540,7 +2419,6 @@ public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVe { $this->currentVersionRanges = $currentVersionRanges; } - public function getCurrentVersionRanges() { return $this->currentVersionRanges; @@ -2549,7 +2427,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -2558,7 +2435,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -2567,7 +2443,6 @@ public function setHighlightStyle($highlightStyle) { $this->highlightStyle = $highlightStyle; } - public function getHighlightStyle() { return $this->highlightStyle; @@ -2576,7 +2451,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2585,7 +2459,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2594,7 +2467,6 @@ public function setLayerId($layerId) { $this->layerId = $layerId; } - public function getLayerId() { return $this->layerId; @@ -2603,7 +2475,6 @@ public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $lay { $this->layerSummary = $layerSummary; } - public function getLayerSummary() { return $this->layerSummary; @@ -2612,7 +2483,6 @@ public function setPageIds($pageIds) { $this->pageIds = $pageIds; } - public function getPageIds() { return $this->pageIds; @@ -2621,7 +2491,6 @@ public function setSelectedText($selectedText) { $this->selectedText = $selectedText; } - public function getSelectedText() { return $this->selectedText; @@ -2630,7 +2499,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2639,7 +2507,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2648,12 +2515,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model @@ -2670,11 +2535,11 @@ class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $imageCfiRangeDataType = ''; + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { $this->cfiRange = $cfiRange; } - public function getCfiRange() { return $this->cfiRange; @@ -2683,7 +2548,6 @@ public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; } - public function getContentVersion() { return $this->contentVersion; @@ -2692,7 +2556,6 @@ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbIm { $this->gbImageRange = $gbImageRange; } - public function getGbImageRange() { return $this->gbImageRange; @@ -2701,7 +2564,6 @@ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTex { $this->gbTextRange = $gbTextRange; } - public function getGbTextRange() { return $this->gbTextRange; @@ -2710,12 +2572,10 @@ public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $ima { $this->imageCfiRange = $imageCfiRange; } - public function getImageCfiRange() { return $this->imageCfiRange; } - } class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model @@ -2732,11 +2592,11 @@ class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $imageCfiRangeDataType = ''; + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { $this->cfiRange = $cfiRange; } - public function getCfiRange() { return $this->cfiRange; @@ -2745,7 +2605,6 @@ public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; } - public function getContentVersion() { return $this->contentVersion; @@ -2754,7 +2613,6 @@ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbIm { $this->gbImageRange = $gbImageRange; } - public function getGbImageRange() { return $this->gbImageRange; @@ -2763,7 +2621,6 @@ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTex { $this->gbTextRange = $gbTextRange; } - public function getGbTextRange() { return $this->gbTextRange; @@ -2772,12 +2629,10 @@ public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $ima { $this->imageCfiRange = $imageCfiRange; } - public function getImageCfiRange() { return $this->imageCfiRange; } - } class Google_Service_Books_AnnotationLayerSummary extends Google_Model @@ -2788,11 +2643,11 @@ class Google_Service_Books_AnnotationLayerSummary extends Google_Model public $limitType; public $remainingCharacterCount; + public function setAllowedCharacterCount($allowedCharacterCount) { $this->allowedCharacterCount = $allowedCharacterCount; } - public function getAllowedCharacterCount() { return $this->allowedCharacterCount; @@ -2801,7 +2656,6 @@ public function setLimitType($limitType) { $this->limitType = $limitType; } - public function getLimitType() { return $this->limitType; @@ -2810,12 +2664,10 @@ public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; } - public function getRemainingCharacterCount() { return $this->remainingCharacterCount; } - } class Google_Service_Books_Annotationdata extends Google_Model @@ -2833,11 +2685,11 @@ class Google_Service_Books_Annotationdata extends Google_Model public $updated; public $volumeId; + public function setAnnotationType($annotationType) { $this->annotationType = $annotationType; } - public function getAnnotationType() { return $this->annotationType; @@ -2846,7 +2698,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -2855,7 +2706,6 @@ public function setEncodedData($encodedData) { $this->encodedData = $encodedData; } - public function getEncodedData() { return $this->encodedData; @@ -2864,7 +2714,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2873,7 +2722,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2882,7 +2730,6 @@ public function setLayerId($layerId) { $this->layerId = $layerId; } - public function getLayerId() { return $this->layerId; @@ -2891,7 +2738,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2900,7 +2746,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2909,12 +2754,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_Annotations extends Google_Collection @@ -2928,11 +2771,11 @@ class Google_Service_Books_Annotations extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2941,7 +2784,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2950,7 +2792,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2959,12 +2800,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Books_AnnotationsSummary extends Google_Collection @@ -2976,11 +2815,11 @@ class Google_Service_Books_AnnotationsSummary extends Google_Collection protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; protected $layersDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2989,12 +2828,10 @@ public function setLayers($layers) { $this->layers = $layers; } - public function getLayers() { return $this->layers; } - } class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model @@ -3007,11 +2844,11 @@ class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model public $remainingCharacterCount; public $updated; + public function setAllowedCharacterCount($allowedCharacterCount) { $this->allowedCharacterCount = $allowedCharacterCount; } - public function getAllowedCharacterCount() { return $this->allowedCharacterCount; @@ -3020,7 +2857,6 @@ public function setLayerId($layerId) { $this->layerId = $layerId; } - public function getLayerId() { return $this->layerId; @@ -3029,7 +2865,6 @@ public function setLimitType($limitType) { $this->limitType = $limitType; } - public function getLimitType() { return $this->limitType; @@ -3038,7 +2873,6 @@ public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; } - public function getRemainingCharacterCount() { return $this->remainingCharacterCount; @@ -3047,12 +2881,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Books_Annotationsdata extends Google_Collection @@ -3066,11 +2898,11 @@ class Google_Service_Books_Annotationsdata extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3079,7 +2911,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3088,7 +2919,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3097,12 +2927,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Books_BooksAnnotationsRange extends Google_Model @@ -3114,11 +2942,11 @@ class Google_Service_Books_BooksAnnotationsRange extends Google_Model public $startOffset; public $startPosition; + public function setEndOffset($endOffset) { $this->endOffset = $endOffset; } - public function getEndOffset() { return $this->endOffset; @@ -3127,7 +2955,6 @@ public function setEndPosition($endPosition) { $this->endPosition = $endPosition; } - public function getEndPosition() { return $this->endPosition; @@ -3136,7 +2963,6 @@ public function setStartOffset($startOffset) { $this->startOffset = $startOffset; } - public function getStartOffset() { return $this->startOffset; @@ -3145,12 +2971,10 @@ public function setStartPosition($startPosition) { $this->startPosition = $startPosition; } - public function getStartPosition() { return $this->startPosition; } - } class Google_Service_Books_BooksCloudloadingResource extends Google_Model @@ -3162,11 +2986,11 @@ class Google_Service_Books_BooksCloudloadingResource extends Google_Model public $title; public $volumeId; + public function setAuthor($author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -3175,7 +2999,6 @@ public function setProcessingState($processingState) { $this->processingState = $processingState; } - public function getProcessingState() { return $this->processingState; @@ -3184,7 +3007,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3193,12 +3015,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model @@ -3208,16 +3028,15 @@ class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Mo ); public $consistencyToken; + public function setConsistencyToken($consistencyToken) { $this->consistencyToken = $consistencyToken; } - public function getConsistencyToken() { return $this->consistencyToken; } - } class Google_Service_Books_Bookshelf extends Google_Model @@ -3235,11 +3054,11 @@ class Google_Service_Books_Bookshelf extends Google_Model public $volumeCount; public $volumesLastUpdated; + public function setAccess($access) { $this->access = $access; } - public function getAccess() { return $this->access; @@ -3248,7 +3067,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -3257,7 +3075,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3266,7 +3083,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3275,7 +3091,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3284,7 +3099,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3293,7 +3107,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3302,7 +3115,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -3311,7 +3123,6 @@ public function setVolumeCount($volumeCount) { $this->volumeCount = $volumeCount; } - public function getVolumeCount() { return $this->volumeCount; @@ -3320,12 +3131,10 @@ public function setVolumesLastUpdated($volumesLastUpdated) { $this->volumesLastUpdated = $volumesLastUpdated; } - public function getVolumesLastUpdated() { return $this->volumesLastUpdated; } - } class Google_Service_Books_Bookshelves extends Google_Collection @@ -3337,11 +3146,11 @@ class Google_Service_Books_Bookshelves extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3350,12 +3159,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model @@ -3374,11 +3181,11 @@ class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model public $timeWindowSeconds; public $volumeId; + public function setDeviceAllowed($deviceAllowed) { $this->deviceAllowed = $deviceAllowed; } - public function getDeviceAllowed() { return $this->deviceAllowed; @@ -3387,7 +3194,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3396,7 +3202,6 @@ public function setMaxConcurrentDevices($maxConcurrentDevices) { $this->maxConcurrentDevices = $maxConcurrentDevices; } - public function getMaxConcurrentDevices() { return $this->maxConcurrentDevices; @@ -3405,7 +3210,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -3414,7 +3218,6 @@ public function setNonce($nonce) { $this->nonce = $nonce; } - public function getNonce() { return $this->nonce; @@ -3423,7 +3226,6 @@ public function setReasonCode($reasonCode) { $this->reasonCode = $reasonCode; } - public function getReasonCode() { return $this->reasonCode; @@ -3432,7 +3234,6 @@ public function setRestricted($restricted) { $this->restricted = $restricted; } - public function getRestricted() { return $this->restricted; @@ -3441,7 +3242,6 @@ public function setSignature($signature) { $this->signature = $signature; } - public function getSignature() { return $this->signature; @@ -3450,7 +3250,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -3459,7 +3258,6 @@ public function setTimeWindowSeconds($timeWindowSeconds) { $this->timeWindowSeconds = $timeWindowSeconds; } - public function getTimeWindowSeconds() { return $this->timeWindowSeconds; @@ -3468,12 +3266,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_Dictlayerdata extends Google_Model @@ -3486,11 +3282,11 @@ class Google_Service_Books_Dictlayerdata extends Google_Model protected $dictDataType = ''; public $kind; + public function setCommon(Google_Service_Books_DictlayerdataCommon $common) { $this->common = $common; } - public function getCommon() { return $this->common; @@ -3499,7 +3295,6 @@ public function setDict(Google_Service_Books_DictlayerdataDict $dict) { $this->dict = $dict; } - public function getDict() { return $this->dict; @@ -3508,12 +3303,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_DictlayerdataCommon extends Google_Model @@ -3522,16 +3315,15 @@ class Google_Service_Books_DictlayerdataCommon extends Google_Model ); public $title; + public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Books_DictlayerdataDict extends Google_Collection @@ -3544,11 +3336,11 @@ class Google_Service_Books_DictlayerdataDict extends Google_Collection protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; protected $wordsDataType = 'array'; + public function setSource(Google_Service_Books_DictlayerdataDictSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -3557,12 +3349,10 @@ public function setWords($words) { $this->words = $words; } - public function getWords() { return $this->words; } - } class Google_Service_Books_DictlayerdataDictSource extends Google_Model @@ -3572,11 +3362,11 @@ class Google_Service_Books_DictlayerdataDictSource extends Google_Model public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -3585,12 +3375,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWords extends Google_Collection @@ -3607,11 +3395,11 @@ class Google_Service_Books_DictlayerdataDictWords extends Google_Collection protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource'; protected $sourceDataType = ''; + public function setDerivatives($derivatives) { $this->derivatives = $derivatives; } - public function getDerivatives() { return $this->derivatives; @@ -3620,7 +3408,6 @@ public function setExamples($examples) { $this->examples = $examples; } - public function getExamples() { return $this->examples; @@ -3629,7 +3416,6 @@ public function setSenses($senses) { $this->senses = $senses; } - public function getSenses() { return $this->senses; @@ -3638,12 +3424,10 @@ public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $sou { $this->source = $source; } - public function getSource() { return $this->source; } - } class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model @@ -3654,11 +3438,11 @@ class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Mode protected $sourceDataType = ''; public $text; + public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -3667,12 +3451,10 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model @@ -3682,11 +3464,11 @@ class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Googl public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -3695,12 +3477,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model @@ -3711,11 +3491,11 @@ class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model protected $sourceDataType = ''; public $text; + public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -3724,12 +3504,10 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model @@ -3739,11 +3517,11 @@ class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_M public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -3752,12 +3530,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection @@ -3778,11 +3554,11 @@ class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collectio protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms'; protected $synonymsDataType = 'array'; + public function setConjugations($conjugations) { $this->conjugations = $conjugations; } - public function getConjugations() { return $this->conjugations; @@ -3791,7 +3567,6 @@ public function setDefinitions($definitions) { $this->definitions = $definitions; } - public function getDefinitions() { return $this->definitions; @@ -3800,7 +3575,6 @@ public function setPartOfSpeech($partOfSpeech) { $this->partOfSpeech = $partOfSpeech; } - public function getPartOfSpeech() { return $this->partOfSpeech; @@ -3809,7 +3583,6 @@ public function setPronunciation($pronunciation) { $this->pronunciation = $pronunciation; } - public function getPronunciation() { return $this->pronunciation; @@ -3818,7 +3591,6 @@ public function setPronunciationUrl($pronunciationUrl) { $this->pronunciationUrl = $pronunciationUrl; } - public function getPronunciationUrl() { return $this->pronunciationUrl; @@ -3827,7 +3599,6 @@ public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSourc { $this->source = $source; } - public function getSource() { return $this->source; @@ -3836,7 +3607,6 @@ public function setSyllabification($syllabification) { $this->syllabification = $syllabification; } - public function getSyllabification() { return $this->syllabification; @@ -3845,12 +3615,10 @@ public function setSynonyms($synonyms) { $this->synonyms = $synonyms; } - public function getSynonyms() { return $this->synonyms; } - } class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model @@ -3860,11 +3628,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Goog public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3873,12 +3641,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection @@ -3890,11 +3656,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Googl protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; protected $examplesDataType = 'array'; + public function setDefinition($definition) { $this->definition = $definition; } - public function getDefinition() { return $this->definition; @@ -3903,12 +3669,10 @@ public function setExamples($examples) { $this->examples = $examples; } - public function getExamples() { return $this->examples; } - } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model @@ -3919,11 +3683,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples exten protected $sourceDataType = ''; public $text; + public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -3932,12 +3696,10 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model @@ -3947,11 +3709,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -3960,12 +3722,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model @@ -3975,11 +3735,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Mod public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -3988,12 +3748,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model @@ -4004,11 +3762,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_M protected $sourceDataType = ''; public $text; + public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -4017,12 +3775,10 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model @@ -4032,11 +3788,11 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Go public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -4045,12 +3801,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model @@ -4060,11 +3814,11 @@ class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model public $attribution; public $url; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -4073,12 +3827,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_DownloadAccessRestriction extends Google_Model @@ -4098,11 +3850,11 @@ class Google_Service_Books_DownloadAccessRestriction extends Google_Model public $source; public $volumeId; + public function setDeviceAllowed($deviceAllowed) { $this->deviceAllowed = $deviceAllowed; } - public function getDeviceAllowed() { return $this->deviceAllowed; @@ -4111,7 +3863,6 @@ public function setDownloadsAcquired($downloadsAcquired) { $this->downloadsAcquired = $downloadsAcquired; } - public function getDownloadsAcquired() { return $this->downloadsAcquired; @@ -4120,7 +3871,6 @@ public function setJustAcquired($justAcquired) { $this->justAcquired = $justAcquired; } - public function getJustAcquired() { return $this->justAcquired; @@ -4129,7 +3879,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4138,7 +3887,6 @@ public function setMaxDownloadDevices($maxDownloadDevices) { $this->maxDownloadDevices = $maxDownloadDevices; } - public function getMaxDownloadDevices() { return $this->maxDownloadDevices; @@ -4147,7 +3895,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -4156,7 +3903,6 @@ public function setNonce($nonce) { $this->nonce = $nonce; } - public function getNonce() { return $this->nonce; @@ -4165,7 +3911,6 @@ public function setReasonCode($reasonCode) { $this->reasonCode = $reasonCode; } - public function getReasonCode() { return $this->reasonCode; @@ -4174,7 +3919,6 @@ public function setRestricted($restricted) { $this->restricted = $restricted; } - public function getRestricted() { return $this->restricted; @@ -4183,7 +3927,6 @@ public function setSignature($signature) { $this->signature = $signature; } - public function getSignature() { return $this->signature; @@ -4192,7 +3935,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -4201,12 +3943,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_DownloadAccesses extends Google_Collection @@ -4218,11 +3958,11 @@ class Google_Service_Books_DownloadAccesses extends Google_Collection protected $downloadAccessListDataType = 'array'; public $kind; + public function setDownloadAccessList($downloadAccessList) { $this->downloadAccessList = $downloadAccessList; } - public function getDownloadAccessList() { return $this->downloadAccessList; @@ -4231,12 +3971,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_Geolayerdata extends Google_Model @@ -4249,11 +3987,11 @@ class Google_Service_Books_Geolayerdata extends Google_Model protected $geoDataType = ''; public $kind; + public function setCommon(Google_Service_Books_GeolayerdataCommon $common) { $this->common = $common; } - public function getCommon() { return $this->common; @@ -4262,7 +4000,6 @@ public function setGeo(Google_Service_Books_GeolayerdataGeo $geo) { $this->geo = $geo; } - public function getGeo() { return $this->geo; @@ -4271,12 +4008,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_GeolayerdataCommon extends Google_Model @@ -4289,11 +4024,11 @@ class Google_Service_Books_GeolayerdataCommon extends Google_Model public $snippetUrl; public $title; + public function setLang($lang) { $this->lang = $lang; } - public function getLang() { return $this->lang; @@ -4302,7 +4037,6 @@ public function setPreviewImageUrl($previewImageUrl) { $this->previewImageUrl = $previewImageUrl; } - public function getPreviewImageUrl() { return $this->previewImageUrl; @@ -4311,7 +4045,6 @@ public function setSnippet($snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -4320,7 +4053,6 @@ public function setSnippetUrl($snippetUrl) { $this->snippetUrl = $snippetUrl; } - public function getSnippetUrl() { return $this->snippetUrl; @@ -4329,12 +4061,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Books_GeolayerdataGeo extends Google_Collection @@ -4353,11 +4083,11 @@ class Google_Service_Books_GeolayerdataGeo extends Google_Collection protected $viewportDataType = ''; public $zoom; + public function setBoundary($boundary) { $this->boundary = $boundary; } - public function getBoundary() { return $this->boundary; @@ -4366,7 +4096,6 @@ public function setCachePolicy($cachePolicy) { $this->cachePolicy = $cachePolicy; } - public function getCachePolicy() { return $this->cachePolicy; @@ -4375,7 +4104,6 @@ public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } - public function getCountryCode() { return $this->countryCode; @@ -4384,7 +4112,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -4393,7 +4120,6 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; @@ -4402,7 +4128,6 @@ public function setMapType($mapType) { $this->mapType = $mapType; } - public function getMapType() { return $this->mapType; @@ -4411,7 +4136,6 @@ public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewpo { $this->viewport = $viewport; } - public function getViewport() { return $this->viewport; @@ -4420,12 +4144,10 @@ public function setZoom($zoom) { $this->zoom = $zoom; } - public function getZoom() { return $this->zoom; } - } class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model @@ -4435,11 +4157,11 @@ class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -4448,12 +4170,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model @@ -4465,11 +4185,11 @@ class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo'; protected $loDataType = ''; + public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi) { $this->hi = $hi; } - public function getHi() { return $this->hi; @@ -4478,12 +4198,10 @@ public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo) { $this->lo = $lo; } - public function getLo() { return $this->lo; } - } class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model @@ -4493,11 +4211,11 @@ class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -4506,12 +4224,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model @@ -4521,11 +4237,11 @@ class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -4534,12 +4250,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Books_Layersummaries extends Google_Collection @@ -4552,11 +4266,11 @@ class Google_Service_Books_Layersummaries extends Google_Collection public $kind; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4565,7 +4279,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4574,12 +4287,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Books_Layersummary extends Google_Collection @@ -4601,11 +4312,11 @@ class Google_Service_Books_Layersummary extends Google_Collection public $volumeAnnotationsVersion; public $volumeId; + public function setAnnotationCount($annotationCount) { $this->annotationCount = $annotationCount; } - public function getAnnotationCount() { return $this->annotationCount; @@ -4614,7 +4325,6 @@ public function setAnnotationTypes($annotationTypes) { $this->annotationTypes = $annotationTypes; } - public function getAnnotationTypes() { return $this->annotationTypes; @@ -4623,7 +4333,6 @@ public function setAnnotationsDataLink($annotationsDataLink) { $this->annotationsDataLink = $annotationsDataLink; } - public function getAnnotationsDataLink() { return $this->annotationsDataLink; @@ -4632,7 +4341,6 @@ public function setAnnotationsLink($annotationsLink) { $this->annotationsLink = $annotationsLink; } - public function getAnnotationsLink() { return $this->annotationsLink; @@ -4641,7 +4349,6 @@ public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; } - public function getContentVersion() { return $this->contentVersion; @@ -4650,7 +4357,6 @@ public function setDataCount($dataCount) { $this->dataCount = $dataCount; } - public function getDataCount() { return $this->dataCount; @@ -4659,7 +4365,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4668,7 +4373,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4677,7 +4381,6 @@ public function setLayerId($layerId) { $this->layerId = $layerId; } - public function getLayerId() { return $this->layerId; @@ -4686,7 +4389,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -4695,7 +4397,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -4704,7 +4405,6 @@ public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; } - public function getVolumeAnnotationsVersion() { return $this->volumeAnnotationsVersion; @@ -4713,12 +4413,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_Offers extends Google_Collection @@ -4730,11 +4428,11 @@ class Google_Service_Books_Offers extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4743,12 +4441,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_OffersItems extends Google_Collection @@ -4761,11 +4457,11 @@ class Google_Service_Books_OffersItems extends Google_Collection protected $itemsType = 'Google_Service_Books_OffersItemsItems'; protected $itemsDataType = 'array'; + public function setArtUrl($artUrl) { $this->artUrl = $artUrl; } - public function getArtUrl() { return $this->artUrl; @@ -4774,7 +4470,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4783,12 +4478,10 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; } - } class Google_Service_Books_OffersItemsItems extends Google_Model @@ -4802,11 +4495,11 @@ class Google_Service_Books_OffersItemsItems extends Google_Model public $title; public $volumeId; + public function setAuthor($author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -4815,7 +4508,6 @@ public function setCanonicalVolumeLink($canonicalVolumeLink) { $this->canonicalVolumeLink = $canonicalVolumeLink; } - public function getCanonicalVolumeLink() { return $this->canonicalVolumeLink; @@ -4824,7 +4516,6 @@ public function setCoverUrl($coverUrl) { $this->coverUrl = $coverUrl; } - public function getCoverUrl() { return $this->coverUrl; @@ -4833,7 +4524,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4842,7 +4532,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -4851,12 +4540,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_ReadingPosition extends Google_Model @@ -4871,11 +4558,11 @@ class Google_Service_Books_ReadingPosition extends Google_Model public $updated; public $volumeId; + public function setEpubCfiPosition($epubCfiPosition) { $this->epubCfiPosition = $epubCfiPosition; } - public function getEpubCfiPosition() { return $this->epubCfiPosition; @@ -4884,7 +4571,6 @@ public function setGbImagePosition($gbImagePosition) { $this->gbImagePosition = $gbImagePosition; } - public function getGbImagePosition() { return $this->gbImagePosition; @@ -4893,7 +4579,6 @@ public function setGbTextPosition($gbTextPosition) { $this->gbTextPosition = $gbTextPosition; } - public function getGbTextPosition() { return $this->gbTextPosition; @@ -4902,7 +4587,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4911,7 +4595,6 @@ public function setPdfPosition($pdfPosition) { $this->pdfPosition = $pdfPosition; } - public function getPdfPosition() { return $this->pdfPosition; @@ -4920,7 +4603,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -4929,12 +4611,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_RequestAccess extends Google_Model @@ -4947,11 +4627,11 @@ class Google_Service_Books_RequestAccess extends Google_Model protected $downloadAccessDataType = ''; public $kind; + public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess) { $this->concurrentAccess = $concurrentAccess; } - public function getConcurrentAccess() { return $this->concurrentAccess; @@ -4960,7 +4640,6 @@ public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction { $this->downloadAccess = $downloadAccess; } - public function getDownloadAccess() { return $this->downloadAccess; @@ -4969,12 +4648,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Books_Review extends Google_Model @@ -4994,11 +4671,11 @@ class Google_Service_Books_Review extends Google_Model public $type; public $volumeId; + public function setAuthor(Google_Service_Books_ReviewAuthor $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -5007,7 +4684,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -5016,7 +4692,6 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -5025,7 +4700,6 @@ public function setFullTextUrl($fullTextUrl) { $this->fullTextUrl = $fullTextUrl; } - public function getFullTextUrl() { return $this->fullTextUrl; @@ -5034,7 +4708,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5043,7 +4716,6 @@ public function setRating($rating) { $this->rating = $rating; } - public function getRating() { return $this->rating; @@ -5052,7 +4724,6 @@ public function setSource(Google_Service_Books_ReviewSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -5061,7 +4732,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -5070,7 +4740,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5079,12 +4748,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_ReviewAuthor extends Google_Model @@ -5093,16 +4760,15 @@ 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 @@ -5113,11 +4779,11 @@ class Google_Service_Books_ReviewSource extends Google_Model public $extraDescription; public $url; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5126,7 +4792,6 @@ public function setExtraDescription($extraDescription) { $this->extraDescription = $extraDescription; } - public function getExtraDescription() { return $this->extraDescription; @@ -5135,12 +4800,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Books_Volume extends Google_Model @@ -5166,11 +4829,11 @@ class Google_Service_Books_Volume extends Google_Model protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo'; protected $volumeInfoDataType = ''; + public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo) { $this->accessInfo = $accessInfo; } - public function getAccessInfo() { return $this->accessInfo; @@ -5179,7 +4842,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5188,7 +4850,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5197,7 +4858,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5206,7 +4866,6 @@ public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo) { $this->layerInfo = $layerInfo; } - public function getLayerInfo() { return $this->layerInfo; @@ -5215,7 +4874,6 @@ public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $r { $this->recommendedInfo = $recommendedInfo; } - public function getRecommendedInfo() { return $this->recommendedInfo; @@ -5224,7 +4882,6 @@ public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo) { $this->saleInfo = $saleInfo; } - public function getSaleInfo() { return $this->saleInfo; @@ -5233,7 +4890,6 @@ public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo) { $this->searchInfo = $searchInfo; } - public function getSearchInfo() { return $this->searchInfo; @@ -5242,7 +4898,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5251,7 +4906,6 @@ public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo) { $this->userInfo = $userInfo; } - public function getUserInfo() { return $this->userInfo; @@ -5260,12 +4914,10 @@ 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 @@ -5290,11 +4942,11 @@ class Google_Service_Books_VolumeAccessInfo extends Google_Model public $viewability; public $webReaderLink; + public function setAccessViewStatus($accessViewStatus) { $this->accessViewStatus = $accessViewStatus; } - public function getAccessViewStatus() { return $this->accessViewStatus; @@ -5303,7 +4955,6 @@ public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -5312,7 +4963,6 @@ public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction { $this->downloadAccess = $downloadAccess; } - public function getDownloadAccess() { return $this->downloadAccess; @@ -5321,7 +4971,6 @@ public function setDriveImportedContentLink($driveImportedContentLink) { $this->driveImportedContentLink = $driveImportedContentLink; } - public function getDriveImportedContentLink() { return $this->driveImportedContentLink; @@ -5330,7 +4979,6 @@ public function setEmbeddable($embeddable) { $this->embeddable = $embeddable; } - public function getEmbeddable() { return $this->embeddable; @@ -5339,7 +4987,6 @@ public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub) { $this->epub = $epub; } - public function getEpub() { return $this->epub; @@ -5348,7 +4995,6 @@ public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManag { $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement; } - public function getExplicitOfflineLicenseManagement() { return $this->explicitOfflineLicenseManagement; @@ -5357,7 +5003,6 @@ public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf) { $this->pdf = $pdf; } - public function getPdf() { return $this->pdf; @@ -5366,7 +5011,6 @@ public function setPublicDomain($publicDomain) { $this->publicDomain = $publicDomain; } - public function getPublicDomain() { return $this->publicDomain; @@ -5375,7 +5019,6 @@ public function setQuoteSharingAllowed($quoteSharingAllowed) { $this->quoteSharingAllowed = $quoteSharingAllowed; } - public function getQuoteSharingAllowed() { return $this->quoteSharingAllowed; @@ -5384,7 +5027,6 @@ public function setTextToSpeechPermission($textToSpeechPermission) { $this->textToSpeechPermission = $textToSpeechPermission; } - public function getTextToSpeechPermission() { return $this->textToSpeechPermission; @@ -5393,7 +5035,6 @@ public function setViewOrderUrl($viewOrderUrl) { $this->viewOrderUrl = $viewOrderUrl; } - public function getViewOrderUrl() { return $this->viewOrderUrl; @@ -5402,7 +5043,6 @@ public function setViewability($viewability) { $this->viewability = $viewability; } - public function getViewability() { return $this->viewability; @@ -5411,12 +5051,10 @@ public function setWebReaderLink($webReaderLink) { $this->webReaderLink = $webReaderLink; } - public function getWebReaderLink() { return $this->webReaderLink; } - } class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model @@ -5427,11 +5065,11 @@ class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model public $downloadLink; public $isAvailable; + public function setAcsTokenLink($acsTokenLink) { $this->acsTokenLink = $acsTokenLink; } - public function getAcsTokenLink() { return $this->acsTokenLink; @@ -5440,7 +5078,6 @@ public function setDownloadLink($downloadLink) { $this->downloadLink = $downloadLink; } - public function getDownloadLink() { return $this->downloadLink; @@ -5449,12 +5086,10 @@ public function setIsAvailable($isAvailable) { $this->isAvailable = $isAvailable; } - public function getIsAvailable() { return $this->isAvailable; } - } class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model @@ -5465,11 +5100,11 @@ class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model public $downloadLink; public $isAvailable; + public function setAcsTokenLink($acsTokenLink) { $this->acsTokenLink = $acsTokenLink; } - public function getAcsTokenLink() { return $this->acsTokenLink; @@ -5478,7 +5113,6 @@ public function setDownloadLink($downloadLink) { $this->downloadLink = $downloadLink; } - public function getDownloadLink() { return $this->downloadLink; @@ -5487,12 +5121,10 @@ public function setIsAvailable($isAvailable) { $this->isAvailable = $isAvailable; } - public function getIsAvailable() { return $this->isAvailable; } - } class Google_Service_Books_VolumeLayerInfo extends Google_Collection @@ -5503,16 +5135,15 @@ class Google_Service_Books_VolumeLayerInfo extends Google_Collection protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; protected $layersDataType = 'array'; + public function setLayers($layers) { $this->layers = $layers; } - public function getLayers() { return $this->layers; } - } class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model @@ -5522,11 +5153,11 @@ 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; @@ -5535,12 +5166,10 @@ public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; } - public function getVolumeAnnotationsVersion() { return $this->volumeAnnotationsVersion; } - } class Google_Service_Books_VolumeRecommendedInfo extends Google_Model @@ -5549,16 +5178,15 @@ 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_Collection @@ -5578,11 +5206,11 @@ class Google_Service_Books_VolumeSaleInfo extends Google_Collection protected $retailPriceDataType = ''; public $saleability; + public function setBuyLink($buyLink) { $this->buyLink = $buyLink; } - public function getBuyLink() { return $this->buyLink; @@ -5591,7 +5219,6 @@ public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -5600,7 +5227,6 @@ public function setIsEbook($isEbook) { $this->isEbook = $isEbook; } - public function getIsEbook() { return $this->isEbook; @@ -5609,7 +5235,6 @@ public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listP { $this->listPrice = $listPrice; } - public function getListPrice() { return $this->listPrice; @@ -5618,7 +5243,6 @@ public function setOffers($offers) { $this->offers = $offers; } - public function getOffers() { return $this->offers; @@ -5627,7 +5251,6 @@ public function setOnSaleDate($onSaleDate) { $this->onSaleDate = $onSaleDate; } - public function getOnSaleDate() { return $this->onSaleDate; @@ -5636,7 +5259,6 @@ public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $r { $this->retailPrice = $retailPrice; } - public function getRetailPrice() { return $this->retailPrice; @@ -5645,12 +5267,10 @@ public function setSaleability($saleability) { $this->saleability = $saleability; } - public function getSaleability() { return $this->saleability; } - } class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model @@ -5660,11 +5280,11 @@ 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; @@ -5673,12 +5293,10 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; } - } class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model @@ -5693,11 +5311,11 @@ class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice'; protected $retailPriceDataType = ''; + public function setFinskyOfferType($finskyOfferType) { $this->finskyOfferType = $finskyOfferType; } - public function getFinskyOfferType() { return $this->finskyOfferType; @@ -5706,7 +5324,6 @@ public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice { $this->listPrice = $listPrice; } - public function getListPrice() { return $this->listPrice; @@ -5715,7 +5332,6 @@ public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRenta { $this->rentalDuration = $rentalDuration; } - public function getRentalDuration() { return $this->rentalDuration; @@ -5724,12 +5340,10 @@ public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPr { $this->retailPrice = $retailPrice; } - public function getRetailPrice() { return $this->retailPrice; } - } class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model @@ -5739,11 +5353,11 @@ class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model public $amountInMicros; public $currencyCode; + public function setAmountInMicros($amountInMicros) { $this->amountInMicros = $amountInMicros; } - public function getAmountInMicros() { return $this->amountInMicros; @@ -5752,12 +5366,10 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; } - } class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model @@ -5767,11 +5379,11 @@ class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Mod public $count; public $unit; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -5780,12 +5392,10 @@ public function setUnit($unit) { $this->unit = $unit; } - public function getUnit() { return $this->unit; } - } class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model @@ -5795,11 +5405,11 @@ class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model public $amountInMicros; public $currencyCode; + public function setAmountInMicros($amountInMicros) { $this->amountInMicros = $amountInMicros; } - public function getAmountInMicros() { return $this->amountInMicros; @@ -5808,12 +5418,10 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; } - } class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model @@ -5823,11 +5431,11 @@ 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; @@ -5836,12 +5444,10 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; } - } class Google_Service_Books_VolumeSearchInfo extends Google_Model @@ -5850,16 +5456,15 @@ 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 @@ -5883,11 +5488,11 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo'; protected $userUploadedVolumeInfoDataType = ''; + public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy) { $this->copy = $copy; } - public function getCopy() { return $this->copy; @@ -5896,7 +5501,6 @@ public function setIsInMyBooks($isInMyBooks) { $this->isInMyBooks = $isInMyBooks; } - public function getIsInMyBooks() { return $this->isInMyBooks; @@ -5905,7 +5509,6 @@ public function setIsPreordered($isPreordered) { $this->isPreordered = $isPreordered; } - public function getIsPreordered() { return $this->isPreordered; @@ -5914,7 +5517,6 @@ public function setIsPurchased($isPurchased) { $this->isPurchased = $isPurchased; } - public function getIsPurchased() { return $this->isPurchased; @@ -5923,7 +5525,6 @@ public function setIsUploaded($isUploaded) { $this->isUploaded = $isUploaded; } - public function getIsUploaded() { return $this->isUploaded; @@ -5932,7 +5533,6 @@ public function setReadingPosition(Google_Service_Books_ReadingPosition $reading { $this->readingPosition = $readingPosition; } - public function getReadingPosition() { return $this->readingPosition; @@ -5941,7 +5541,6 @@ public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod { $this->rentalPeriod = $rentalPeriod; } - public function getRentalPeriod() { return $this->rentalPeriod; @@ -5950,7 +5549,6 @@ public function setRentalState($rentalState) { $this->rentalState = $rentalState; } - public function getRentalState() { return $this->rentalState; @@ -5959,7 +5557,6 @@ public function setReview(Google_Service_Books_Review $review) { $this->review = $review; } - public function getReview() { return $this->review; @@ -5968,7 +5565,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -5977,12 +5573,10 @@ public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUse { $this->userUploadedVolumeInfo = $userUploadedVolumeInfo; } - public function getUserUploadedVolumeInfo() { return $this->userUploadedVolumeInfo; } - } class Google_Service_Books_VolumeUserInfoCopy extends Google_Model @@ -5994,11 +5588,11 @@ class Google_Service_Books_VolumeUserInfoCopy extends Google_Model public $remainingCharacterCount; public $updated; + public function setAllowedCharacterCount($allowedCharacterCount) { $this->allowedCharacterCount = $allowedCharacterCount; } - public function getAllowedCharacterCount() { return $this->allowedCharacterCount; @@ -6007,7 +5601,6 @@ public function setLimitType($limitType) { $this->limitType = $limitType; } - public function getLimitType() { return $this->limitType; @@ -6016,7 +5609,6 @@ public function setRemainingCharacterCount($remainingCharacterCount) { $this->remainingCharacterCount = $remainingCharacterCount; } - public function getRemainingCharacterCount() { return $this->remainingCharacterCount; @@ -6025,12 +5617,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model @@ -6040,11 +5630,11 @@ class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model public $endUtcSec; public $startUtcSec; + public function setEndUtcSec($endUtcSec) { $this->endUtcSec = $endUtcSec; } - public function getEndUtcSec() { return $this->endUtcSec; @@ -6053,12 +5643,10 @@ public function setStartUtcSec($startUtcSec) { $this->startUtcSec = $startUtcSec; } - public function getStartUtcSec() { return $this->startUtcSec; } - } class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model @@ -6067,16 +5655,15 @@ class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_M ); public $processingState; + public function setProcessingState($processingState) { $this->processingState = $processingState; } - public function getProcessingState() { return $this->processingState; } - } class Google_Service_Books_VolumeVolumeInfo extends Google_Collection @@ -6110,11 +5697,11 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $subtitle; public $title; + public function setAuthors($authors) { $this->authors = $authors; } - public function getAuthors() { return $this->authors; @@ -6123,7 +5710,6 @@ public function setAverageRating($averageRating) { $this->averageRating = $averageRating; } - public function getAverageRating() { return $this->averageRating; @@ -6132,7 +5718,6 @@ public function setCanonicalVolumeLink($canonicalVolumeLink) { $this->canonicalVolumeLink = $canonicalVolumeLink; } - public function getCanonicalVolumeLink() { return $this->canonicalVolumeLink; @@ -6141,7 +5726,6 @@ public function setCategories($categories) { $this->categories = $categories; } - public function getCategories() { return $this->categories; @@ -6150,7 +5734,6 @@ public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; } - public function getContentVersion() { return $this->contentVersion; @@ -6159,7 +5742,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6168,7 +5750,6 @@ public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $d { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -6177,7 +5758,6 @@ public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $i { $this->imageLinks = $imageLinks; } - public function getImageLinks() { return $this->imageLinks; @@ -6186,7 +5766,6 @@ public function setIndustryIdentifiers($industryIdentifiers) { $this->industryIdentifiers = $industryIdentifiers; } - public function getIndustryIdentifiers() { return $this->industryIdentifiers; @@ -6195,7 +5774,6 @@ public function setInfoLink($infoLink) { $this->infoLink = $infoLink; } - public function getInfoLink() { return $this->infoLink; @@ -6204,7 +5782,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -6213,7 +5790,6 @@ public function setMainCategory($mainCategory) { $this->mainCategory = $mainCategory; } - public function getMainCategory() { return $this->mainCategory; @@ -6222,7 +5798,6 @@ public function setPageCount($pageCount) { $this->pageCount = $pageCount; } - public function getPageCount() { return $this->pageCount; @@ -6231,7 +5806,6 @@ public function setPreviewLink($previewLink) { $this->previewLink = $previewLink; } - public function getPreviewLink() { return $this->previewLink; @@ -6240,7 +5814,6 @@ public function setPrintType($printType) { $this->printType = $printType; } - public function getPrintType() { return $this->printType; @@ -6249,7 +5822,6 @@ public function setPrintedPageCount($printedPageCount) { $this->printedPageCount = $printedPageCount; } - public function getPrintedPageCount() { return $this->printedPageCount; @@ -6258,7 +5830,6 @@ public function setPublishedDate($publishedDate) { $this->publishedDate = $publishedDate; } - public function getPublishedDate() { return $this->publishedDate; @@ -6267,7 +5838,6 @@ public function setPublisher($publisher) { $this->publisher = $publisher; } - public function getPublisher() { return $this->publisher; @@ -6276,7 +5846,6 @@ public function setRatingsCount($ratingsCount) { $this->ratingsCount = $ratingsCount; } - public function getRatingsCount() { return $this->ratingsCount; @@ -6285,7 +5854,6 @@ public function setReadingModes($readingModes) { $this->readingModes = $readingModes; } - public function getReadingModes() { return $this->readingModes; @@ -6294,7 +5862,6 @@ public function setSubtitle($subtitle) { $this->subtitle = $subtitle; } - public function getSubtitle() { return $this->subtitle; @@ -6303,12 +5870,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model @@ -6319,11 +5884,11 @@ class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model public $thickness; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -6332,7 +5897,6 @@ public function setThickness($thickness) { $this->thickness = $thickness; } - public function getThickness() { return $this->thickness; @@ -6341,12 +5905,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model @@ -6360,11 +5922,11 @@ class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model public $smallThumbnail; public $thumbnail; + public function setExtraLarge($extraLarge) { $this->extraLarge = $extraLarge; } - public function getExtraLarge() { return $this->extraLarge; @@ -6373,7 +5935,6 @@ public function setLarge($large) { $this->large = $large; } - public function getLarge() { return $this->large; @@ -6382,7 +5943,6 @@ public function setMedium($medium) { $this->medium = $medium; } - public function getMedium() { return $this->medium; @@ -6391,7 +5951,6 @@ public function setSmall($small) { $this->small = $small; } - public function getSmall() { return $this->small; @@ -6400,7 +5959,6 @@ public function setSmallThumbnail($smallThumbnail) { $this->smallThumbnail = $smallThumbnail; } - public function getSmallThumbnail() { return $this->smallThumbnail; @@ -6409,12 +5967,10 @@ public function setThumbnail($thumbnail) { $this->thumbnail = $thumbnail; } - public function getThumbnail() { return $this->thumbnail; } - } class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model @@ -6424,11 +5980,11 @@ class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Mo public $identifier; public $type; + public function setIdentifier($identifier) { $this->identifier = $identifier; } - public function getIdentifier() { return $this->identifier; @@ -6437,12 +5993,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Books_Volumeannotation extends Google_Collection @@ -6466,11 +6020,11 @@ class Google_Service_Books_Volumeannotation extends Google_Collection public $updated; public $volumeId; + public function setAnnotationDataId($annotationDataId) { $this->annotationDataId = $annotationDataId; } - public function getAnnotationDataId() { return $this->annotationDataId; @@ -6479,7 +6033,6 @@ public function setAnnotationDataLink($annotationDataLink) { $this->annotationDataLink = $annotationDataLink; } - public function getAnnotationDataLink() { return $this->annotationDataLink; @@ -6488,7 +6041,6 @@ public function setAnnotationType($annotationType) { $this->annotationType = $annotationType; } - public function getAnnotationType() { return $this->annotationType; @@ -6497,7 +6049,6 @@ public function setContentRanges(Google_Service_Books_VolumeannotationContentRan { $this->contentRanges = $contentRanges; } - public function getContentRanges() { return $this->contentRanges; @@ -6506,7 +6057,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -6515,7 +6065,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -6524,7 +6073,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6533,7 +6081,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6542,7 +6089,6 @@ public function setLayerId($layerId) { $this->layerId = $layerId; } - public function getLayerId() { return $this->layerId; @@ -6551,7 +6097,6 @@ public function setPageIds($pageIds) { $this->pageIds = $pageIds; } - public function getPageIds() { return $this->pageIds; @@ -6560,7 +6105,6 @@ public function setSelectedText($selectedText) { $this->selectedText = $selectedText; } - public function getSelectedText() { return $this->selectedText; @@ -6569,7 +6113,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -6578,7 +6121,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -6587,12 +6129,10 @@ public function setVolumeId($volumeId) { $this->volumeId = $volumeId; } - public function getVolumeId() { return $this->volumeId; } - } class Google_Service_Books_VolumeannotationContentRanges extends Google_Model @@ -6607,11 +6147,11 @@ class Google_Service_Books_VolumeannotationContentRanges extends Google_Model protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; protected $gbTextRangeDataType = ''; + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { $this->cfiRange = $cfiRange; } - public function getCfiRange() { return $this->cfiRange; @@ -6620,7 +6160,6 @@ public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; } - public function getContentVersion() { return $this->contentVersion; @@ -6629,7 +6168,6 @@ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbIm { $this->gbImageRange = $gbImageRange; } - public function getGbImageRange() { return $this->gbImageRange; @@ -6638,12 +6176,10 @@ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTex { $this->gbTextRange = $gbTextRange; } - public function getGbTextRange() { return $this->gbTextRange; } - } class Google_Service_Books_Volumeannotations extends Google_Collection @@ -6658,11 +6194,11 @@ class Google_Service_Books_Volumeannotations extends Google_Collection public $totalItems; public $version; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6671,7 +6207,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6680,7 +6215,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6689,7 +6223,6 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; @@ -6698,12 +6231,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Books_Volumes extends Google_Collection @@ -6716,11 +6247,11 @@ class Google_Service_Books_Volumes extends Google_Collection public $kind; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6729,7 +6260,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6738,10 +6268,8 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } From cfba4054ad1688e2420f544e7587bda2409e2766 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:28 -0800 Subject: [PATCH 0444/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 127 ++++++++++++------------------- 1 file changed, 49 insertions(+), 78 deletions(-) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index b0ef8c69f..e416d37ed 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -19,8 +19,8 @@ * Service definition for Container (v1beta1). * *

- * The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology. - *

+ * The Google Container Engine API is used for building and managing container + * based applications, powered by the open source Kubernetes technology.

* *

* For more information about this service, see the API @@ -32,7 +32,8 @@ class Google_Service_Container extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; public $projects_clusters; public $projects_operations; @@ -231,7 +232,6 @@ public function __construct(Google_Client $client) */ class Google_Service_Container_Projects_Resource extends Google_Service_Resource { - } /** @@ -249,8 +249,8 @@ class Google_Service_Container_ProjectsClusters_Resource extends Google_Service_ * Lists all clusters owned by a project across all zones. * (clusters.listProjectsClusters) * - * @param string $projectId - * The Google Developers Console project ID or project number. + * @param string $projectId The Google Developers Console project ID or project + * number. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListAggregatedClustersResponse */ @@ -276,8 +276,8 @@ class Google_Service_Container_ProjectsOperations_Resource extends Google_Servic * Lists all operations in a project, across all zones. * (operations.listProjectsOperations) * - * @param string $projectId - * The Google Developers Console project ID or project number. + * @param string $projectId The Google Developers Console project ID or project + * number. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListAggregatedOperationsResponse */ @@ -298,7 +298,6 @@ public function listProjectsOperations($projectId, $optParams = array()) */ class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource { - } /** @@ -326,10 +325,10 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the * cluster's 10.xx.0.0/16 CIDR has been assigned. (clusters.create) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone in which the cluster resides. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone in which the + * cluster resides. * @param Google_CreateClusterRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation @@ -340,18 +339,18 @@ public function create($projectId, $zoneId, Google_Service_Container_CreateClust $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Container_Operation"); } + /** * Deletes the cluster, including the Kubernetes master and all worker nodes. * * Firewalls and routes that were configured at cluster creation are also * deleted. (clusters.delete) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone in which the cluster resides. - * @param string $clusterId - * The name of the cluster to delete. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone in which the + * cluster resides. + * @param string $clusterId The name of the cluster to delete. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ @@ -361,15 +360,15 @@ public function delete($projectId, $zoneId, $clusterId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Container_Operation"); } + /** * Gets a specific cluster. (clusters.get) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone in which the cluster resides. - * @param string $clusterId - * The name of the cluster to retrieve. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone in which the + * cluster resides. + * @param string $clusterId The name of the cluster to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Container_Cluster */ @@ -379,14 +378,15 @@ public function get($projectId, $zoneId, $clusterId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Cluster"); } + /** * Lists all clusters owned by a project in the specified zone. * (clusters.listProjectsZonesClusters) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone in which the cluster resides. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone in which the + * cluster resides. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListClustersResponse */ @@ -411,13 +411,12 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S /** * Gets the specified operation. (operations.get) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone in which the operation resides. This is always the - * same zone as the cluster with which the operation is associated. - * @param string $operationId - * The server-assigned name of the operation. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone in which the + * operation resides. This is always the same zone as the cluster with which the + * operation is associated. + * @param string $operationId The server-assigned name of the operation. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ @@ -427,14 +426,15 @@ public function get($projectId, $zoneId, $operationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Operation"); } + /** * Lists all operations in a project in a specific zone. * (operations.listProjectsZonesOperations) * - * @param string $projectId - * The Google Developers Console project ID or project number. - * @param string $zoneId - * The name of the Google Compute Engine zone to return operations for. + * @param string $projectId The Google Developers Console project ID or project + * number. + * @param string $zoneId The name of the Google Compute Engine zone to return + * operations for. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListOperationsResponse */ @@ -470,11 +470,11 @@ class Google_Service_Container_Cluster extends Google_Model public $statusMessage; public $zone; + public function setClusterApiVersion($clusterApiVersion) { $this->clusterApiVersion = $clusterApiVersion; } - public function getClusterApiVersion() { return $this->clusterApiVersion; @@ -483,7 +483,6 @@ public function setContainerIpv4Cidr($containerIpv4Cidr) { $this->containerIpv4Cidr = $containerIpv4Cidr; } - public function getContainerIpv4Cidr() { return $this->containerIpv4Cidr; @@ -492,7 +491,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -501,7 +499,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -510,7 +507,6 @@ public function setEndpoint($endpoint) { $this->endpoint = $endpoint; } - public function getEndpoint() { return $this->endpoint; @@ -519,7 +515,6 @@ public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth) { $this->masterAuth = $masterAuth; } - public function getMasterAuth() { return $this->masterAuth; @@ -528,7 +523,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -537,7 +531,6 @@ public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig) { $this->nodeConfig = $nodeConfig; } - public function getNodeConfig() { return $this->nodeConfig; @@ -546,7 +539,6 @@ public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize) { $this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize; } - public function getNodeRoutingPrefixSize() { return $this->nodeRoutingPrefixSize; @@ -555,7 +547,6 @@ public function setNumNodes($numNodes) { $this->numNodes = $numNodes; } - public function getNumNodes() { return $this->numNodes; @@ -564,7 +555,6 @@ public function setServicesIpv4Cidr($servicesIpv4Cidr) { $this->servicesIpv4Cidr = $servicesIpv4Cidr; } - public function getServicesIpv4Cidr() { return $this->servicesIpv4Cidr; @@ -573,7 +563,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -582,7 +571,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -591,12 +579,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Container_CreateClusterRequest extends Google_Model @@ -606,16 +592,15 @@ class Google_Service_Container_CreateClusterRequest extends Google_Model protected $clusterType = 'Google_Service_Container_Cluster'; protected $clusterDataType = ''; + public function setCluster(Google_Service_Container_Cluster $cluster) { $this->cluster = $cluster; } - public function getCluster() { return $this->cluster; } - } class Google_Service_Container_ListAggregatedClustersResponse extends Google_Collection @@ -626,16 +611,15 @@ class Google_Service_Container_ListAggregatedClustersResponse extends Google_Col protected $clustersType = 'Google_Service_Container_Cluster'; protected $clustersDataType = 'array'; + public function setClusters($clusters) { $this->clusters = $clusters; } - public function getClusters() { return $this->clusters; } - } class Google_Service_Container_ListAggregatedOperationsResponse extends Google_Collection @@ -646,16 +630,15 @@ class Google_Service_Container_ListAggregatedOperationsResponse extends Google_C protected $operationsType = 'Google_Service_Container_Operation'; protected $operationsDataType = 'array'; + public function setOperations($operations) { $this->operations = $operations; } - public function getOperations() { return $this->operations; } - } class Google_Service_Container_ListClustersResponse extends Google_Collection @@ -666,16 +649,15 @@ class Google_Service_Container_ListClustersResponse extends Google_Collection protected $clustersType = 'Google_Service_Container_Cluster'; protected $clustersDataType = 'array'; + public function setClusters($clusters) { $this->clusters = $clusters; } - public function getClusters() { return $this->clusters; } - } class Google_Service_Container_ListOperationsResponse extends Google_Collection @@ -686,16 +668,15 @@ class Google_Service_Container_ListOperationsResponse extends Google_Collection protected $operationsType = 'Google_Service_Container_Operation'; protected $operationsDataType = 'array'; + public function setOperations($operations) { $this->operations = $operations; } - public function getOperations() { return $this->operations; } - } class Google_Service_Container_MasterAuth extends Google_Model @@ -705,11 +686,11 @@ class Google_Service_Container_MasterAuth extends Google_Model public $password; public $user; + public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -718,12 +699,10 @@ public function setUser($user) { $this->user = $user; } - public function getUser() { return $this->user; } - } class Google_Service_Container_NodeConfig extends Google_Model @@ -733,11 +712,11 @@ class Google_Service_Container_NodeConfig extends Google_Model public $machineType; public $sourceImage; + public function setMachineType($machineType) { $this->machineType = $machineType; } - public function getMachineType() { return $this->machineType; @@ -746,12 +725,10 @@ public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; } - public function getSourceImage() { return $this->sourceImage; } - } class Google_Service_Container_Operation extends Google_Model @@ -765,11 +742,11 @@ class Google_Service_Container_Operation extends Google_Model public $target; public $zone; + public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; } - public function getErrorMessage() { return $this->errorMessage; @@ -778,7 +755,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -787,7 +763,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -796,7 +771,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -805,7 +779,6 @@ public function setTarget($target) { $this->target = $target; } - public function getTarget() { return $this->target; @@ -814,10 +787,8 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } From adc77a894e9fa21eb1b0dd9de1ec965b8cf21dd3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:28 -0800 Subject: [PATCH 0445/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 145 +++++++++------------- 1 file changed, 58 insertions(+), 87 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 857d10e86..0b1859f97 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -19,8 +19,8 @@ * Service definition for Replicapoolupdater (v1beta1). * *

- * The Google Compute Engine Instance Group Updater API provides services for updating groups of Compute Engine Instances. - *

+ * The Google Compute Engine Instance Group Updater API provides services for + * updating groups of Compute Engine Instances.

* *

* For more information about this service, see the API @@ -32,11 +32,14 @@ class Google_Service_Replicapoolupdater extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage replica pools. */ - const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; + const REPLICAPOOL = + "https://www.googleapis.com/auth/replicapool"; /** View replica pools. */ - const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; + const REPLICAPOOL_READONLY = + "https://www.googleapis.com/auth/replicapool.readonly"; public $updates; @@ -255,14 +258,11 @@ class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_ * Called on the particular Update endpoint. Cancels the update in state PAUSED. * No-op if invoked in state CANCELLED. (updates.cancel) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. - * @param string $update - * Unique (in the context of a group) handle of an update. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -271,18 +271,16 @@ public function cancel($project, $zone, $instanceGroupManager, $update, $optPara $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } + /** * Called on the particular Update endpoint. Returns the Update resource. * (updates.get) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. - * @param string $update - * Unique (in the context of a group) handle of an update. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_Update */ @@ -292,16 +290,15 @@ public function get($project, $zone, $instanceGroupManager, $update, $optParams $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update"); } + /** * Called on the collection endpoint. Inserts the new Update resource and starts * the update. (updates.insert) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. * @param Google_Update $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_InsertResponse @@ -312,25 +309,23 @@ public function insert($project, $zone, $instanceGroupManager, Google_Service_Re $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse"); } + /** * Called on the collection endpoint. Lists updates for a given instance group, * in reverse chronological order. Pagination is supported, see * ListRequestHeader. (updates.listUpdates) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Set this to the nextPageToken value returned by a previous list request to obtain the next page - * of results from the previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 1 to 100, inclusive. (Default: - * 50) + * @opt_param string pageToken Set this to the nextPageToken value returned by a + * previous list request to obtain the next page of results from the previous + * list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 1 to 100, inclusive. (Default: 50) * @return Google_Service_Replicapoolupdater_UpdateList */ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = array()) @@ -339,19 +334,17 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList"); } + /** * Called on the particular Update endpoint. Pauses the update in state from { * ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state PAUSED. * (updates.pause) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. - * @param string $update - * Unique (in the context of a group) handle of an update. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -360,19 +353,17 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam $params = array_merge($params, $optParams); return $this->call('pause', array($params)); } + /** * Called on the particular Update endpoint. Rolls back the update in state from * { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state * ROLLED_BACK. (updates.rollback) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. - * @param string $update - * Unique (in the context of a group) handle of an update. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -381,19 +372,17 @@ public function rollback($project, $zone, $instanceGroupManager, $update, $optPa $params = array_merge($params, $optParams); return $this->call('rollback', array($params)); } + /** * Called on the particular Update endpoint. Rolls forward the update in state * from { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state * ROLLED_OUT. (updates.rollforward) * - * @param string $project - * Project ID for this request. - * @param string $zone - * Zone for the instance group manager. - * @param string $instanceGroupManager - * Name of the instance group manager for this request. - * @param string $update - * Unique (in the context of a group) handle of an update. + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -413,16 +402,15 @@ class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model ); public $update; + public function setUpdate($update) { $this->update = $update; } - public function getUpdate() { return $this->update; } - } class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model @@ -432,11 +420,11 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model public $instanceName; public $state; + public function setInstanceName($instanceName) { $this->instanceName = $instanceName; } - public function getInstanceName() { return $this->instanceName; @@ -445,12 +433,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Replicapoolupdater_Update extends Google_Collection @@ -470,11 +456,11 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection public $state; public $targetState; + public function setDetails($details) { $this->details = $details; } - public function getDetails() { return $this->details; @@ -483,7 +469,6 @@ public function setHandle($handle) { $this->handle = $handle; } - public function getHandle() { return $this->handle; @@ -492,7 +477,6 @@ public function setInstanceTemplate($instanceTemplate) { $this->instanceTemplate = $instanceTemplate; } - public function getInstanceTemplate() { return $this->instanceTemplate; @@ -501,7 +485,6 @@ public function setInstanceUpdates($instanceUpdates) { $this->instanceUpdates = $instanceUpdates; } - public function getInstanceUpdates() { return $this->instanceUpdates; @@ -510,7 +493,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -519,7 +501,6 @@ public function setPolicy(Google_Service_Replicapoolupdater_UpdatePolicy $policy { $this->policy = $policy; } - public function getPolicy() { return $this->policy; @@ -528,7 +509,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -537,7 +517,6 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; @@ -546,12 +525,10 @@ public function setTargetState($targetState) { $this->targetState = $targetState; } - public function getTargetState() { return $this->targetState; } - } class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection @@ -563,11 +540,11 @@ class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection protected $itemsDataType = 'array'; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -576,12 +553,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model @@ -593,11 +568,11 @@ class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model public $maxNumConcurrentInstances; public $sleepAfterInstanceRestartSec; + public function setCanary(Google_Service_Replicapoolupdater_UpdatePolicyCanary $canary) { $this->canary = $canary; } - public function getCanary() { return $this->canary; @@ -606,7 +581,6 @@ public function setMaxNumConcurrentInstances($maxNumConcurrentInstances) { $this->maxNumConcurrentInstances = $maxNumConcurrentInstances; } - public function getMaxNumConcurrentInstances() { return $this->maxNumConcurrentInstances; @@ -615,12 +589,10 @@ public function setSleepAfterInstanceRestartSec($sleepAfterInstanceRestartSec) { $this->sleepAfterInstanceRestartSec = $sleepAfterInstanceRestartSec; } - public function getSleepAfterInstanceRestartSec() { return $this->sleepAfterInstanceRestartSec; } - } class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model @@ -629,14 +601,13 @@ class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model ); public $numInstances; + public function setNumInstances($numInstances) { $this->numInstances = $numInstances; } - public function getNumInstances() { return $this->numInstances; } - } From adb3725315d0bc89875673d33a0be903ece2fe03 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:28 -0800 Subject: [PATCH 0446/1274] Updated TagManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/TagManager.php | 604 ++++++++++-------------------- 1 file changed, 204 insertions(+), 400 deletions(-) diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index fc8ae4dba..aaaf5511e 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -19,8 +19,7 @@ * Service definition for TagManager (v1). * *

- * API for accessing Tag Manager accounts and containers. - *

+ * API for accessing Tag Manager accounts and containers.

* *

* For more information about this service, see the API @@ -32,19 +31,26 @@ class Google_Service_TagManager extends Google_Service { /** Delete your Google Tag Manager containers. */ - const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; + const TAGMANAGER_DELETE_CONTAINERS = + "https://www.googleapis.com/auth/tagmanager.delete.containers"; /** Manage your Google Tag Manager containers. */ - const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; + const TAGMANAGER_EDIT_CONTAINERS = + "https://www.googleapis.com/auth/tagmanager.edit.containers"; /** Manage your Google Tag Manager container versions. */ - const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; + const TAGMANAGER_EDIT_CONTAINERVERSIONS = + "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; /** Manage your Google Tag Manager accounts. */ - const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; + const TAGMANAGER_MANAGE_ACCOUNTS = + "https://www.googleapis.com/auth/tagmanager.manage.accounts"; /** Manage user permissions of your Google Tag Manager data. */ - const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; + const TAGMANAGER_MANAGE_USERS = + "https://www.googleapis.com/auth/tagmanager.manage.users"; /** Publish your Google Tag Manager containers. */ - const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; + const TAGMANAGER_PUBLISH = + "https://www.googleapis.com/auth/tagmanager.publish"; /** View your Google Tag Manager containers. */ - const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; + const TAGMANAGER_READONLY = + "https://www.googleapis.com/auth/tagmanager.readonly"; public $accounts; public $accounts_containers; @@ -971,8 +977,7 @@ class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resourc /** * Gets a GTM Account. (accounts.get) * - * @param string $accountId - * The GTM Account ID. + * @param string $accountId The GTM Account ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Account */ @@ -982,6 +987,7 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Account"); } + /** * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) * @@ -994,16 +1000,16 @@ public function listAccounts($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse"); } + /** * Updates a GTM Account. (accounts.update) * - * @param string $accountId - * The GTM Account ID. + * @param string $accountId The GTM Account ID. * @param Google_Account $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the account in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the account in storage. * @return Google_Service_TagManager_Account */ public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array()) @@ -1028,8 +1034,7 @@ class Google_Service_TagManager_AccountsContainers_Resource extends Google_Servi /** * Creates a Container. (containers.create) * - * @param string $accountId - * The GTM Account ID. + * @param string $accountId The GTM Account ID. * @param Google_Container $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Container @@ -1040,13 +1045,12 @@ public function create($accountId, Google_Service_TagManager_Container $postBody $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Container"); } + /** * Deletes a Container. (containers.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $optParams = array()) @@ -1055,13 +1059,12 @@ public function delete($accountId, $containerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a Container. (containers.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Container */ @@ -1071,12 +1074,12 @@ public function get($accountId, $containerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Container"); } + /** * Lists all Containers that belongs to a GTM Account. * (containers.listAccountsContainers) * - * @param string $accountId - * The GTM Account ID. + * @param string $accountId The GTM Account ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListContainersResponse */ @@ -1086,18 +1089,17 @@ public function listAccountsContainers($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse"); } + /** * Updates a Container. (containers.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Container $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the container in storage. * @return Google_Service_TagManager_Container */ public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array()) @@ -1122,10 +1124,8 @@ class Google_Service_TagManager_AccountsContainersMacros_Resource extends Google /** * Creates a GTM Macro. (macros.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Macro $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Macro @@ -1136,15 +1136,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Macro $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Macro"); } + /** * Deletes a GTM Macro. (macros.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $macroId The GTM Macro ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $macroId, $optParams = array()) @@ -1153,15 +1151,13 @@ public function delete($accountId, $containerId, $macroId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a GTM Macro. (macros.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $macroId The GTM Macro ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Macro */ @@ -1171,13 +1167,12 @@ public function get($accountId, $containerId, $macroId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Macro"); } + /** * Lists all GTM Macros of a Container. (macros.listAccountsContainersMacros) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListMacrosResponse */ @@ -1187,20 +1182,18 @@ public function listAccountsContainersMacros($accountId, $containerId, $optParam $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListMacrosResponse"); } + /** * Updates a GTM Macro. (macros.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $macroId - * The GTM Macro ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $macroId The GTM Macro ID. * @param Google_Macro $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the macro in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the macro in storage. * @return Google_Service_TagManager_Macro */ public function update($accountId, $containerId, $macroId, Google_Service_TagManager_Macro $postBody, $optParams = array()) @@ -1224,10 +1217,8 @@ class Google_Service_TagManager_AccountsContainersRules_Resource extends Google_ /** * Creates a GTM Rule. (rules.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Rule $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Rule @@ -1238,15 +1229,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Rule $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Rule"); } + /** * Deletes a GTM Rule. (rules.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $ruleId The GTM Rule ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $ruleId, $optParams = array()) @@ -1255,15 +1244,13 @@ public function delete($accountId, $containerId, $ruleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a GTM Rule. (rules.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $ruleId The GTM Rule ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Rule */ @@ -1273,13 +1260,12 @@ public function get($accountId, $containerId, $ruleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Rule"); } + /** * Lists all GTM Rules of a Container. (rules.listAccountsContainersRules) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListRulesResponse */ @@ -1289,20 +1275,18 @@ public function listAccountsContainersRules($accountId, $containerId, $optParams $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListRulesResponse"); } + /** * Updates a GTM Rule. (rules.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $ruleId - * The GTM Rule ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $ruleId The GTM Rule ID. * @param Google_Rule $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the rule in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the rule in storage. * @return Google_Service_TagManager_Rule */ public function update($accountId, $containerId, $ruleId, Google_Service_TagManager_Rule $postBody, $optParams = array()) @@ -1326,10 +1310,8 @@ class Google_Service_TagManager_AccountsContainersTags_Resource extends Google_S /** * Creates a GTM Tag. (tags.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Tag $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Tag @@ -1340,15 +1322,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Tag $ $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Tag"); } + /** * Deletes a GTM Tag. (tags.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $tagId The GTM Tag ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $tagId, $optParams = array()) @@ -1357,15 +1337,13 @@ public function delete($accountId, $containerId, $tagId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a GTM Tag. (tags.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $tagId The GTM Tag ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Tag */ @@ -1375,13 +1353,12 @@ public function get($accountId, $containerId, $tagId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Tag"); } + /** * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListTagsResponse */ @@ -1391,20 +1368,18 @@ public function listAccountsContainersTags($accountId, $containerId, $optParams $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse"); } + /** * Updates a GTM Tag. (tags.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $tagId - * The GTM Tag ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $tagId The GTM Tag ID. * @param Google_Tag $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the tag in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the tag in storage. * @return Google_Service_TagManager_Tag */ public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array()) @@ -1428,10 +1403,8 @@ class Google_Service_TagManager_AccountsContainersTriggers_Resource extends Goog /** * Creates a GTM Trigger. (triggers.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Trigger $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Trigger @@ -1442,15 +1415,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Trigg $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Trigger"); } + /** * Deletes a GTM Trigger. (triggers.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $triggerId The GTM Trigger ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $triggerId, $optParams = array()) @@ -1459,15 +1430,13 @@ public function delete($accountId, $containerId, $triggerId, $optParams = array( $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a GTM Trigger. (triggers.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $triggerId The GTM Trigger ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Trigger */ @@ -1477,14 +1446,13 @@ public function get($accountId, $containerId, $triggerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Trigger"); } + /** * Lists all GTM Triggers of a Container. * (triggers.listAccountsContainersTriggers) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListTriggersResponse */ @@ -1494,20 +1462,18 @@ public function listAccountsContainersTriggers($accountId, $containerId, $optPar $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListTriggersResponse"); } + /** * Updates a GTM Trigger. (triggers.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $triggerId - * The GTM Trigger ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $triggerId The GTM Trigger ID. * @param Google_Trigger $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the trigger in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the trigger in storage. * @return Google_Service_TagManager_Trigger */ public function update($accountId, $containerId, $triggerId, Google_Service_TagManager_Trigger $postBody, $optParams = array()) @@ -1531,10 +1497,8 @@ class Google_Service_TagManager_AccountsContainersVariables_Resource extends Goo /** * Creates a GTM Variable. (variables.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_Variable $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Variable @@ -1545,15 +1509,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Varia $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Variable"); } + /** * Deletes a GTM Variable. (variables.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $variableId The GTM Variable ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $variableId, $optParams = array()) @@ -1562,15 +1524,13 @@ public function delete($accountId, $containerId, $variableId, $optParams = array $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a GTM Variable. (variables.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $variableId The GTM Variable ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Variable */ @@ -1580,14 +1540,13 @@ public function get($accountId, $containerId, $variableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Variable"); } + /** * Lists all GTM Variables of a Container. * (variables.listAccountsContainersVariables) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListVariablesResponse */ @@ -1597,20 +1556,18 @@ public function listAccountsContainersVariables($accountId, $containerId, $optPa $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListVariablesResponse"); } + /** * Updates a GTM Variable. (variables.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $variableId - * The GTM Variable ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $variableId The GTM Variable ID. * @param Google_Variable $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the variable in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the variable in storage. * @return Google_Service_TagManager_Variable */ public function update($accountId, $containerId, $variableId, Google_Service_TagManager_Variable $postBody, $optParams = array()) @@ -1634,10 +1591,8 @@ class Google_Service_TagManager_AccountsContainersVersions_Resource extends Goog /** * Creates a Container Version. (versions.create) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param Google_CreateContainerVersionRequestVersionOptions $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_CreateContainerVersionResponse @@ -1648,15 +1603,13 @@ public function create($accountId, $containerId, Google_Service_TagManager_Creat $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_CreateContainerVersionResponse"); } + /** * Deletes a Container Version. (versions.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) @@ -1665,15 +1618,14 @@ public function delete($accountId, $containerId, $containerVersionId, $optParams $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a Container Version. (versions.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. Specify published to retrieve the currently published version. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. Specify + * published to retrieve the currently published version. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ContainerVersion */ @@ -1683,18 +1635,16 @@ public function get($accountId, $containerId, $containerVersionId, $optParams = $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_ContainerVersion"); } + /** * Lists all Container Versions of a GTM Container. * (versions.listAccountsContainersVersions) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * - * @opt_param bool headers - * Retrieve headers only when true. + * @opt_param bool headers Retrieve headers only when true. * @return Google_Service_TagManager_ListContainerVersionsResponse */ public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) @@ -1703,19 +1653,17 @@ public function listAccountsContainersVersions($accountId, $containerId, $optPar $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListContainerVersionsResponse"); } + /** * Publishes a Container Version. (versions.publish) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the container version in storage. * @return Google_Service_TagManager_PublishContainerVersionResponse */ public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) @@ -1724,18 +1672,16 @@ public function publish($accountId, $containerId, $containerVersionId, $optParam $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_TagManager_PublishContainerVersionResponse"); } + /** * Restores a Container Version. This will overwrite the container's current * configuration (including its macros, rules and tags). The operation will not * have any effect on the version that is being served (i.e. the published * version). (versions.restore) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ContainerVersion */ @@ -1745,15 +1691,13 @@ public function restore($accountId, $containerId, $containerVersionId, $optParam $params = array_merge($params, $optParams); return $this->call('restore', array($params), "Google_Service_TagManager_ContainerVersion"); } + /** * Undeletes a Container Version. (versions.undelete) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ContainerVersion */ @@ -1763,20 +1707,18 @@ public function undelete($accountId, $containerId, $containerVersionId, $optPara $params = array_merge($params, $optParams); return $this->call('undelete', array($params), "Google_Service_TagManager_ContainerVersion"); } + /** * Updates a Container Version. (versions.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $containerId - * The GTM Container ID. - * @param string $containerVersionId - * The GTM Container Version ID. + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $containerVersionId The GTM Container Version ID. * @param Google_ContainerVersion $postBody * @param array $optParams Optional parameters. * - * @opt_param string fingerprint - * When provided, this fingerprint must match the fingerprint of the container version in storage. + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the container version in storage. * @return Google_Service_TagManager_ContainerVersion */ public function update($accountId, $containerId, $containerVersionId, Google_Service_TagManager_ContainerVersion $postBody, $optParams = array()) @@ -1800,8 +1742,7 @@ class Google_Service_TagManager_AccountsPermissions_Resource extends Google_Serv /** * Creates a user's Account & Container Permissions. (permissions.create) * - * @param string $accountId - * The GTM Account ID. + * @param string $accountId The GTM Account ID. * @param Google_UserAccess $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_UserAccess @@ -1812,14 +1753,13 @@ public function create($accountId, Google_Service_TagManager_UserAccess $postBod $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_UserAccess"); } + /** * Removes a user from the account, revoking access to it and all of its * containers. (permissions.delete) * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. + * @param string $accountId The GTM Account ID. + * @param string $permissionId The GTM User ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $permissionId, $optParams = array()) @@ -1828,13 +1768,12 @@ public function delete($accountId, $permissionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a user's Account & Container Permissions. (permissions.get) * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. + * @param string $accountId The GTM Account ID. + * @param string $permissionId The GTM User ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_UserAccess */ @@ -1844,13 +1783,14 @@ public function get($accountId, $permissionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_UserAccess"); } + /** * List all users that have access to the account along with Account and * Container Permissions granted to each of them. * (permissions.listAccountsPermissions) * - * @param string $accountId - * The GTM Account ID. @required tagmanager.accounts.permissions.list + * @param string $accountId The GTM Account ID. @required + * tagmanager.accounts.permissions.list * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListAccountUsersResponse */ @@ -1860,13 +1800,12 @@ public function listAccountsPermissions($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListAccountUsersResponse"); } + /** * Updates a user's Account & Container Permissions. (permissions.update) * - * @param string $accountId - * The GTM Account ID. - * @param string $permissionId - * The GTM User ID. + * @param string $accountId The GTM Account ID. + * @param string $permissionId The GTM User ID. * @param Google_UserAccess $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_UserAccess @@ -1891,11 +1830,11 @@ class Google_Service_TagManager_Account extends Google_Model public $name; public $shareData; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1904,7 +1843,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -1913,7 +1851,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1922,12 +1859,10 @@ public function setShareData($shareData) { $this->shareData = $shareData; } - public function getShareData() { return $this->shareData; } - } class Google_Service_TagManager_AccountAccess extends Google_Collection @@ -1937,16 +1872,15 @@ class Google_Service_TagManager_AccountAccess extends Google_Collection ); public $permission; + public function setPermission($permission) { $this->permission = $permission; } - public function getPermission() { return $this->permission; } - } class Google_Service_TagManager_Condition extends Google_Collection @@ -1958,11 +1892,11 @@ class Google_Service_TagManager_Condition extends Google_Collection protected $parameterDataType = 'array'; public $type; + public function setParameter($parameter) { $this->parameter = $parameter; } - public function getParameter() { return $this->parameter; @@ -1971,12 +1905,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_TagManager_Container extends Google_Collection @@ -1995,11 +1927,11 @@ class Google_Service_TagManager_Container extends Google_Collection public $timeZoneId; public $usageContext; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2008,7 +1940,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2017,7 +1948,6 @@ public function setDomainName($domainName) { $this->domainName = $domainName; } - public function getDomainName() { return $this->domainName; @@ -2026,7 +1956,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -2035,7 +1964,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2044,7 +1972,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -2053,7 +1980,6 @@ public function setPublicId($publicId) { $this->publicId = $publicId; } - public function getPublicId() { return $this->publicId; @@ -2062,7 +1988,6 @@ public function setTimeZoneCountryId($timeZoneCountryId) { $this->timeZoneCountryId = $timeZoneCountryId; } - public function getTimeZoneCountryId() { return $this->timeZoneCountryId; @@ -2071,7 +1996,6 @@ public function setTimeZoneId($timeZoneId) { $this->timeZoneId = $timeZoneId; } - public function getTimeZoneId() { return $this->timeZoneId; @@ -2080,12 +2004,10 @@ public function setUsageContext($usageContext) { $this->usageContext = $usageContext; } - public function getUsageContext() { return $this->usageContext; } - } class Google_Service_TagManager_ContainerAccess extends Google_Collection @@ -2096,11 +2018,11 @@ class Google_Service_TagManager_ContainerAccess extends Google_Collection public $containerId; public $permission; + public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2109,12 +2031,10 @@ public function setPermission($permission) { $this->permission = $permission; } - public function getPermission() { return $this->permission; } - } class Google_Service_TagManager_ContainerVersion extends Google_Collection @@ -2142,11 +2062,11 @@ class Google_Service_TagManager_ContainerVersion extends Google_Collection protected $variableType = 'Google_Service_TagManager_Variable'; protected $variableDataType = 'array'; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2155,7 +2075,6 @@ public function setContainer(Google_Service_TagManager_Container $container) { $this->container = $container; } - public function getContainer() { return $this->container; @@ -2164,7 +2083,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2173,7 +2091,6 @@ public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; } - public function getContainerVersionId() { return $this->containerVersionId; @@ -2182,7 +2099,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -2191,7 +2107,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -2200,7 +2115,6 @@ public function setMacro($macro) { $this->macro = $macro; } - public function getMacro() { return $this->macro; @@ -2209,7 +2123,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2218,7 +2131,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -2227,7 +2139,6 @@ public function setRule($rule) { $this->rule = $rule; } - public function getRule() { return $this->rule; @@ -2236,7 +2147,6 @@ public function setTag($tag) { $this->tag = $tag; } - public function getTag() { return $this->tag; @@ -2245,7 +2155,6 @@ public function setTrigger($trigger) { $this->trigger = $trigger; } - public function getTrigger() { return $this->trigger; @@ -2254,12 +2163,10 @@ public function setVariable($variable) { $this->variable = $variable; } - public function getVariable() { return $this->variable; } - } class Google_Service_TagManager_ContainerVersionHeader extends Google_Model @@ -2277,11 +2184,11 @@ class Google_Service_TagManager_ContainerVersionHeader extends Google_Model public $numTriggers; public $numVariables; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2290,7 +2197,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2299,7 +2205,6 @@ public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; } - public function getContainerVersionId() { return $this->containerVersionId; @@ -2308,7 +2213,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -2317,7 +2221,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2326,7 +2229,6 @@ public function setNumMacros($numMacros) { $this->numMacros = $numMacros; } - public function getNumMacros() { return $this->numMacros; @@ -2335,7 +2237,6 @@ public function setNumRules($numRules) { $this->numRules = $numRules; } - public function getNumRules() { return $this->numRules; @@ -2344,7 +2245,6 @@ public function setNumTags($numTags) { $this->numTags = $numTags; } - public function getNumTags() { return $this->numTags; @@ -2353,7 +2253,6 @@ public function setNumTriggers($numTriggers) { $this->numTriggers = $numTriggers; } - public function getNumTriggers() { return $this->numTriggers; @@ -2362,12 +2261,10 @@ public function setNumVariables($numVariables) { $this->numVariables = $numVariables; } - public function getNumVariables() { return $this->numVariables; } - } class Google_Service_TagManager_CreateContainerVersionRequestVersionOptions extends Google_Model @@ -2378,11 +2275,11 @@ class Google_Service_TagManager_CreateContainerVersionRequestVersionOptions exte public $notes; public $quickPreview; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2391,7 +2288,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -2400,12 +2296,10 @@ public function setQuickPreview($quickPreview) { $this->quickPreview = $quickPreview; } - public function getQuickPreview() { return $this->quickPreview; } - } class Google_Service_TagManager_CreateContainerVersionResponse extends Google_Model @@ -2416,11 +2310,11 @@ class Google_Service_TagManager_CreateContainerVersionResponse extends Google_Mo protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; protected $containerVersionDataType = ''; + public function setCompilerError($compilerError) { $this->compilerError = $compilerError; } - public function getCompilerError() { return $this->compilerError; @@ -2429,12 +2323,10 @@ public function setContainerVersion(Google_Service_TagManager_ContainerVersion $ { $this->containerVersion = $containerVersion; } - public function getContainerVersion() { return $this->containerVersion; } - } class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collection @@ -2445,16 +2337,15 @@ class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collecti protected $userAccessType = 'Google_Service_TagManager_UserAccess'; protected $userAccessDataType = 'array'; + public function setUserAccess($userAccess) { $this->userAccess = $userAccess; } - public function getUserAccess() { return $this->userAccess; } - } class Google_Service_TagManager_ListAccountsResponse extends Google_Collection @@ -2465,16 +2356,15 @@ class Google_Service_TagManager_ListAccountsResponse extends Google_Collection protected $accountsType = 'Google_Service_TagManager_Account'; protected $accountsDataType = 'array'; + public function setAccounts($accounts) { $this->accounts = $accounts; } - public function getAccounts() { return $this->accounts; } - } class Google_Service_TagManager_ListContainerVersionsResponse extends Google_Collection @@ -2487,11 +2377,11 @@ class Google_Service_TagManager_ListContainerVersionsResponse extends Google_Col protected $containerVersionHeaderType = 'Google_Service_TagManager_ContainerVersionHeader'; protected $containerVersionHeaderDataType = 'array'; + public function setContainerVersion($containerVersion) { $this->containerVersion = $containerVersion; } - public function getContainerVersion() { return $this->containerVersion; @@ -2500,12 +2390,10 @@ public function setContainerVersionHeader($containerVersionHeader) { $this->containerVersionHeader = $containerVersionHeader; } - public function getContainerVersionHeader() { return $this->containerVersionHeader; } - } class Google_Service_TagManager_ListContainersResponse extends Google_Collection @@ -2516,16 +2404,15 @@ class Google_Service_TagManager_ListContainersResponse extends Google_Collection protected $containersType = 'Google_Service_TagManager_Container'; protected $containersDataType = 'array'; + public function setContainers($containers) { $this->containers = $containers; } - public function getContainers() { return $this->containers; } - } class Google_Service_TagManager_ListMacrosResponse extends Google_Collection @@ -2536,16 +2423,15 @@ class Google_Service_TagManager_ListMacrosResponse extends Google_Collection protected $macrosType = 'Google_Service_TagManager_Macro'; protected $macrosDataType = 'array'; + public function setMacros($macros) { $this->macros = $macros; } - public function getMacros() { return $this->macros; } - } class Google_Service_TagManager_ListRulesResponse extends Google_Collection @@ -2556,16 +2442,15 @@ class Google_Service_TagManager_ListRulesResponse extends Google_Collection protected $rulesType = 'Google_Service_TagManager_Rule'; protected $rulesDataType = 'array'; + public function setRules($rules) { $this->rules = $rules; } - public function getRules() { return $this->rules; } - } class Google_Service_TagManager_ListTagsResponse extends Google_Collection @@ -2576,16 +2461,15 @@ class Google_Service_TagManager_ListTagsResponse extends Google_Collection protected $tagsType = 'Google_Service_TagManager_Tag'; protected $tagsDataType = 'array'; + public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; } - } class Google_Service_TagManager_ListTriggersResponse extends Google_Collection @@ -2596,16 +2480,15 @@ class Google_Service_TagManager_ListTriggersResponse extends Google_Collection protected $triggersType = 'Google_Service_TagManager_Trigger'; protected $triggersDataType = 'array'; + public function setTriggers($triggers) { $this->triggers = $triggers; } - public function getTriggers() { return $this->triggers; } - } class Google_Service_TagManager_ListVariablesResponse extends Google_Collection @@ -2616,16 +2499,15 @@ class Google_Service_TagManager_ListVariablesResponse extends Google_Collection protected $variablesType = 'Google_Service_TagManager_Variable'; protected $variablesDataType = 'array'; + public function setVariables($variables) { $this->variables = $variables; } - public function getVariables() { return $this->variables; } - } class Google_Service_TagManager_Macro extends Google_Collection @@ -2647,11 +2529,11 @@ class Google_Service_TagManager_Macro extends Google_Collection public $scheduleStartMs; public $type; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2660,7 +2542,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2669,7 +2550,6 @@ public function setDisablingRuleId($disablingRuleId) { $this->disablingRuleId = $disablingRuleId; } - public function getDisablingRuleId() { return $this->disablingRuleId; @@ -2678,7 +2558,6 @@ public function setEnablingRuleId($enablingRuleId) { $this->enablingRuleId = $enablingRuleId; } - public function getEnablingRuleId() { return $this->enablingRuleId; @@ -2687,7 +2566,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -2696,7 +2574,6 @@ public function setMacroId($macroId) { $this->macroId = $macroId; } - public function getMacroId() { return $this->macroId; @@ -2705,7 +2582,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2714,7 +2590,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -2723,7 +2598,6 @@ public function setParameter($parameter) { $this->parameter = $parameter; } - public function getParameter() { return $this->parameter; @@ -2732,7 +2606,6 @@ public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; } - public function getScheduleEndMs() { return $this->scheduleEndMs; @@ -2741,7 +2614,6 @@ public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; } - public function getScheduleStartMs() { return $this->scheduleStartMs; @@ -2750,12 +2622,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_TagManager_Parameter extends Google_Collection @@ -2771,11 +2641,11 @@ class Google_Service_TagManager_Parameter extends Google_Collection public $type; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -2784,7 +2654,6 @@ public function setList($list) { $this->list = $list; } - public function getList() { return $this->list; @@ -2793,7 +2662,6 @@ public function setMap($map) { $this->map = $map; } - public function getMap() { return $this->map; @@ -2802,7 +2670,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -2811,12 +2678,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_TagManager_PublishContainerVersionResponse extends Google_Model @@ -2827,11 +2692,11 @@ class Google_Service_TagManager_PublishContainerVersionResponse extends Google_M protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; protected $containerVersionDataType = ''; + public function setCompilerError($compilerError) { $this->compilerError = $compilerError; } - public function getCompilerError() { return $this->compilerError; @@ -2840,12 +2705,10 @@ public function setContainerVersion(Google_Service_TagManager_ContainerVersion $ { $this->containerVersion = $containerVersion; } - public function getContainerVersion() { return $this->containerVersion; } - } class Google_Service_TagManager_Rule extends Google_Collection @@ -2862,11 +2725,11 @@ class Google_Service_TagManager_Rule extends Google_Collection public $notes; public $ruleId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2875,7 +2738,6 @@ public function setCondition($condition) { $this->condition = $condition; } - public function getCondition() { return $this->condition; @@ -2884,7 +2746,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2893,7 +2754,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -2902,7 +2762,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2911,7 +2770,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -2920,12 +2778,10 @@ public function setRuleId($ruleId) { $this->ruleId = $ruleId; } - public function getRuleId() { return $this->ruleId; } - } class Google_Service_TagManager_Tag extends Google_Collection @@ -2954,11 +2810,11 @@ class Google_Service_TagManager_Tag extends Google_Collection public $tagId; public $type; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2967,7 +2823,6 @@ public function setBlockingRuleId($blockingRuleId) { $this->blockingRuleId = $blockingRuleId; } - public function getBlockingRuleId() { return $this->blockingRuleId; @@ -2976,7 +2831,6 @@ public function setBlockingTriggerId($blockingTriggerId) { $this->blockingTriggerId = $blockingTriggerId; } - public function getBlockingTriggerId() { return $this->blockingTriggerId; @@ -2985,7 +2839,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -2994,7 +2847,6 @@ public function setDependencies(Google_Service_TagManager_Parameter $dependencie { $this->dependencies = $dependencies; } - public function getDependencies() { return $this->dependencies; @@ -3003,7 +2855,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -3012,7 +2863,6 @@ public function setFiringRuleId($firingRuleId) { $this->firingRuleId = $firingRuleId; } - public function getFiringRuleId() { return $this->firingRuleId; @@ -3021,7 +2871,6 @@ public function setFiringTriggerId($firingTriggerId) { $this->firingTriggerId = $firingTriggerId; } - public function getFiringTriggerId() { return $this->firingTriggerId; @@ -3030,7 +2879,6 @@ public function setLiveOnly($liveOnly) { $this->liveOnly = $liveOnly; } - public function getLiveOnly() { return $this->liveOnly; @@ -3039,7 +2887,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3048,7 +2895,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -3057,7 +2903,6 @@ public function setParameter($parameter) { $this->parameter = $parameter; } - public function getParameter() { return $this->parameter; @@ -3066,7 +2911,6 @@ public function setPriority(Google_Service_TagManager_Parameter $priority) { $this->priority = $priority; } - public function getPriority() { return $this->priority; @@ -3075,7 +2919,6 @@ public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; } - public function getScheduleEndMs() { return $this->scheduleEndMs; @@ -3084,7 +2927,6 @@ public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; } - public function getScheduleStartMs() { return $this->scheduleStartMs; @@ -3093,7 +2935,6 @@ public function setTagId($tagId) { $this->tagId = $tagId; } - public function getTagId() { return $this->tagId; @@ -3102,12 +2943,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_TagManager_Trigger extends Google_Collection @@ -3146,11 +2985,11 @@ class Google_Service_TagManager_Trigger extends Google_Collection protected $waitForTagsTimeoutType = 'Google_Service_TagManager_Parameter'; protected $waitForTagsTimeoutDataType = ''; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -3159,7 +2998,6 @@ public function setAutoEventFilter($autoEventFilter) { $this->autoEventFilter = $autoEventFilter; } - public function getAutoEventFilter() { return $this->autoEventFilter; @@ -3168,7 +3006,6 @@ public function setCheckValidation(Google_Service_TagManager_Parameter $checkVal { $this->checkValidation = $checkValidation; } - public function getCheckValidation() { return $this->checkValidation; @@ -3177,7 +3014,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -3186,7 +3022,6 @@ public function setCustomEventFilter($customEventFilter) { $this->customEventFilter = $customEventFilter; } - public function getCustomEventFilter() { return $this->customEventFilter; @@ -3195,7 +3030,6 @@ public function setEnableAllVideos(Google_Service_TagManager_Parameter $enableAl { $this->enableAllVideos = $enableAllVideos; } - public function getEnableAllVideos() { return $this->enableAllVideos; @@ -3204,7 +3038,6 @@ public function setEventName(Google_Service_TagManager_Parameter $eventName) { $this->eventName = $eventName; } - public function getEventName() { return $this->eventName; @@ -3213,7 +3046,6 @@ public function setFilter($filter) { $this->filter = $filter; } - public function getFilter() { return $this->filter; @@ -3222,7 +3054,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -3231,7 +3062,6 @@ public function setInterval(Google_Service_TagManager_Parameter $interval) { $this->interval = $interval; } - public function getInterval() { return $this->interval; @@ -3240,7 +3070,6 @@ public function setLimit(Google_Service_TagManager_Parameter $limit) { $this->limit = $limit; } - public function getLimit() { return $this->limit; @@ -3249,7 +3078,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3258,7 +3086,6 @@ public function setTriggerId($triggerId) { $this->triggerId = $triggerId; } - public function getTriggerId() { return $this->triggerId; @@ -3267,7 +3094,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3276,7 +3102,6 @@ public function setUniqueTriggerId(Google_Service_TagManager_Parameter $uniqueTr { $this->uniqueTriggerId = $uniqueTriggerId; } - public function getUniqueTriggerId() { return $this->uniqueTriggerId; @@ -3285,7 +3110,6 @@ public function setVideoPercentageList(Google_Service_TagManager_Parameter $vide { $this->videoPercentageList = $videoPercentageList; } - public function getVideoPercentageList() { return $this->videoPercentageList; @@ -3294,7 +3118,6 @@ public function setWaitForTags(Google_Service_TagManager_Parameter $waitForTags) { $this->waitForTags = $waitForTags; } - public function getWaitForTags() { return $this->waitForTags; @@ -3303,12 +3126,10 @@ public function setWaitForTagsTimeout(Google_Service_TagManager_Parameter $waitF { $this->waitForTagsTimeout = $waitForTagsTimeout; } - public function getWaitForTagsTimeout() { return $this->waitForTagsTimeout; } - } class Google_Service_TagManager_UserAccess extends Google_Collection @@ -3324,11 +3145,11 @@ class Google_Service_TagManager_UserAccess extends Google_Collection public $emailAddress; public $permissionId; + public function setAccountAccess(Google_Service_TagManager_AccountAccess $accountAccess) { $this->accountAccess = $accountAccess; } - public function getAccountAccess() { return $this->accountAccess; @@ -3337,7 +3158,6 @@ public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -3346,7 +3166,6 @@ public function setContainerAccess($containerAccess) { $this->containerAccess = $containerAccess; } - public function getContainerAccess() { return $this->containerAccess; @@ -3355,7 +3174,6 @@ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; @@ -3364,12 +3182,10 @@ public function setPermissionId($permissionId) { $this->permissionId = $permissionId; } - public function getPermissionId() { return $this->permissionId; } - } class Google_Service_TagManager_Variable extends Google_Collection @@ -3391,11 +3207,11 @@ class Google_Service_TagManager_Variable extends Google_Collection public $type; public $variableId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -3404,7 +3220,6 @@ public function setContainerId($containerId) { $this->containerId = $containerId; } - public function getContainerId() { return $this->containerId; @@ -3413,7 +3228,6 @@ public function setDisablingTriggerId($disablingTriggerId) { $this->disablingTriggerId = $disablingTriggerId; } - public function getDisablingTriggerId() { return $this->disablingTriggerId; @@ -3422,7 +3236,6 @@ public function setEnablingTriggerId($enablingTriggerId) { $this->enablingTriggerId = $enablingTriggerId; } - public function getEnablingTriggerId() { return $this->enablingTriggerId; @@ -3431,7 +3244,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -3440,7 +3252,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3449,7 +3260,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -3458,7 +3268,6 @@ public function setParameter($parameter) { $this->parameter = $parameter; } - public function getParameter() { return $this->parameter; @@ -3467,7 +3276,6 @@ public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; } - public function getScheduleEndMs() { return $this->scheduleEndMs; @@ -3476,7 +3284,6 @@ public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; } - public function getScheduleStartMs() { return $this->scheduleStartMs; @@ -3485,7 +3292,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3494,10 +3300,8 @@ public function setVariableId($variableId) { $this->variableId = $variableId; } - public function getVariableId() { return $this->variableId; } - } From 9c368e95a04e25c34edb2a9e5dbfab2150c6d01d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:29 -0800 Subject: [PATCH 0447/1274] Updated AdExchangeSeller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeSeller.php | 295 ++++++++---------------- 1 file changed, 97 insertions(+), 198 deletions(-) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index 75e4eb683..2be68865c 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -19,8 +19,8 @@ * Service definition for AdExchangeSeller (v2.0). * *

- * Gives Ad Exchange seller users access to their inventory and the ability to generate reports - *

+ * Gives Ad Exchange seller users access to their inventory and the ability to + * generate reports

* *

* For more information about this service, see the API @@ -32,9 +32,11 @@ class Google_Service_AdExchangeSeller extends Google_Service { /** View and manage your Ad Exchange data. */ - const ADEXCHANGE_SELLER = "https://www.googleapis.com/auth/adexchange.seller"; + const ADEXCHANGE_SELLER = + "https://www.googleapis.com/auth/adexchange.seller"; /** View your Ad Exchange data. */ - const ADEXCHANGE_SELLER_READONLY = "https://www.googleapis.com/auth/adexchange.seller.readonly"; + const ADEXCHANGE_SELLER_READONLY = + "https://www.googleapis.com/auth/adexchange.seller.readonly"; public $accounts; public $accounts_adclients; @@ -441,8 +443,8 @@ class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_R /** * Get information about the selected Ad Exchange account. (accounts.get) * - * @param string $accountId - * Account to get information about. Tip: 'myaccount' is a valid ID. + * @param string $accountId Account to get information about. Tip: 'myaccount' + * is a valid ID. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_Account */ @@ -452,17 +454,18 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account"); } + /** * List all accounts available to this Ad Exchange account. * (accounts.listAccounts) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through accounts. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of accounts to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through + * accounts. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of accounts to include in the + * response, used for paging. * @return Google_Service_AdExchangeSeller_Accounts */ public function listAccounts($optParams = array()) @@ -488,15 +491,14 @@ class Google_Service_AdExchangeSeller_AccountsAdclients_Resource extends Google_ * List all ad clients in this Ad Exchange account. * (adclients.listAccountsAdclients) * - * @param string $accountId - * Account to which the ad client belongs. + * @param string $accountId Account to which the ad client belongs. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of ad clients to include in + * the response, used for paging. * @return Google_Service_AdExchangeSeller_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -520,14 +522,12 @@ class Google_Service_AdExchangeSeller_AccountsAlerts_Resource extends Google_Ser /** * List the alerts for this Ad Exchange account. (alerts.listAccountsAlerts) * - * @param string $accountId - * Account owning the alerts. + * @param string $accountId Account owning the alerts. * @param array $optParams Optional parameters. * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. + * @opt_param string locale The locale to use for translating alert messages. + * The account locale will be used if this is not supplied. The AdSense default + * (English) will be used if the supplied locale is invalid or unsupported. * @return Google_Service_AdExchangeSeller_Alerts */ public function listAccountsAlerts($accountId, $optParams = array()) @@ -552,12 +552,9 @@ class Google_Service_AdExchangeSeller_AccountsCustomchannels_Resource extends Go * Get the specified custom channel from the specified ad client. * (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 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_AdExchangeSeller_CustomChannel */ @@ -567,21 +564,20 @@ public function get($accountId, $adClientId, $customChannelId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel"); } + /** * List all custom channels in the specified ad client for this Ad Exchange * account. (customchannels.listAccountsCustomchannels) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list custom channels. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param 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. + * @opt_param string maxResults The maximum number of custom channels to include + * in the response, used for paging. * @return Google_Service_AdExchangeSeller_CustomChannels */ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) @@ -601,7 +597,6 @@ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = */ class Google_Service_AdExchangeSeller_AccountsMetadata_Resource extends Google_Service_Resource { - } /** @@ -619,8 +614,7 @@ class Google_Service_AdExchangeSeller_AccountsMetadataDimensions_Resource extend * List the metadata for the dimensions available to this AdExchange account. * (dimensions.listAccountsMetadataDimensions) * - * @param string $accountId - * Account with visibility to the dimensions. + * @param string $accountId Account with visibility to the dimensions. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_Metadata */ @@ -646,8 +640,7 @@ class Google_Service_AdExchangeSeller_AccountsMetadataMetrics_Resource extends G * List the metadata for the metrics available to this AdExchange account. * (metrics.listAccountsMetadataMetrics) * - * @param string $accountId - * Account with visibility to the metrics. + * @param string $accountId Account with visibility to the metrics. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_Metadata */ @@ -673,10 +666,8 @@ class Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource extends Go * Get information about the selected Ad Exchange Preferred Deal. * (preferreddeals.get) * - * @param string $accountId - * Account owning the deal. - * @param string $dealId - * Preferred deal to get information about. + * @param string $accountId Account owning the deal. + * @param string $dealId Preferred deal to get information about. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_PreferredDeal */ @@ -686,12 +677,12 @@ public function get($accountId, $dealId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); } + /** * List the preferred deals for this Ad Exchange account. * (preferreddeals.listAccountsPreferreddeals) * - * @param string $accountId - * Account owning the deals. + * @param string $accountId Account owning the deals. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeSeller_PreferredDeals */ @@ -718,31 +709,24 @@ class Google_Service_AdExchangeSeller_AccountsReports_Resource extends Google_Se * 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 which owns the generated 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 string $accountId Account which owns the generated report. + * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" + * format, inclusive. + * @param string $endDate End of the date range to report on in "YYYY-MM-DD" + * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param string maxResults The maximum number of rows of report data to + * return. + * @opt_param string filter Filters to be run on the report. + * @opt_param string startIndex Index of the first row of report data to return. + * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdExchangeSeller_Report */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -768,19 +752,15 @@ class Google_Service_AdExchangeSeller_AccountsReportsSaved_Resource extends Goog * Generate an Ad Exchange report based on the saved report ID sent in the query * parameters. (saved.generate) * - * @param string $accountId - * Account owning the saved report. - * @param string $savedReportId - * The saved report to retrieve. + * @param string $accountId Account owning the saved report. + * @param string $savedReportId The saved report to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param int startIndex Index of the first row of report data to return. + * @opt_param int maxResults The maximum number of rows of report data to + * return. * @return Google_Service_AdExchangeSeller_Report */ public function generate($accountId, $savedReportId, $optParams = array()) @@ -789,19 +769,19 @@ public function generate($accountId, $savedReportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); } + /** * List all saved reports in this Ad Exchange account. * (saved.listAccountsReportsSaved) * - * @param string $accountId - * Account owning the saved reports. + * @param string $accountId Account owning the saved reports. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through saved + * reports. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of saved reports to include in + * the response, used for paging. * @return Google_Service_AdExchangeSeller_SavedReports */ public function listAccountsReportsSaved($accountId, $optParams = array()) @@ -826,17 +806,15 @@ class Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource extends Googl * List all URL channels in the specified ad client for this Ad Exchange * account. (urlchannels.listAccountsUrlchannels) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list URL channels. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client for which to list URL channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through URL channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param 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. + * @opt_param string maxResults The maximum number of URL channels to include in + * the response, used for paging. * @return Google_Service_AdExchangeSeller_UrlChannels */ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) @@ -858,11 +836,11 @@ class Google_Service_AdExchangeSeller_Account extends Google_Model public $kind; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -871,7 +849,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -880,12 +857,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_AdExchangeSeller_Accounts extends Google_Collection @@ -899,11 +874,11 @@ class Google_Service_AdExchangeSeller_Accounts extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -912,7 +887,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -921,7 +895,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -930,12 +903,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdExchangeSeller_AdClient extends Google_Model @@ -948,11 +919,11 @@ class Google_Service_AdExchangeSeller_AdClient extends Google_Model public $productCode; public $supportsReporting; + public function setArcOptIn($arcOptIn) { $this->arcOptIn = $arcOptIn; } - public function getArcOptIn() { return $this->arcOptIn; @@ -961,7 +932,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -970,7 +940,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -979,7 +948,6 @@ public function setProductCode($productCode) { $this->productCode = $productCode; } - public function getProductCode() { return $this->productCode; @@ -988,12 +956,10 @@ public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; } - public function getSupportsReporting() { return $this->supportsReporting; } - } class Google_Service_AdExchangeSeller_AdClients extends Google_Collection @@ -1007,11 +973,11 @@ class Google_Service_AdExchangeSeller_AdClients extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1020,7 +986,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1029,7 +994,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1038,12 +1002,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdExchangeSeller_Alert extends Google_Model @@ -1056,11 +1018,11 @@ class Google_Service_AdExchangeSeller_Alert extends Google_Model public $severity; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1069,7 +1031,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1078,7 +1039,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -1087,7 +1047,6 @@ public function setSeverity($severity) { $this->severity = $severity; } - public function getSeverity() { return $this->severity; @@ -1096,12 +1055,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdExchangeSeller_Alerts extends Google_Collection @@ -1113,11 +1070,11 @@ class Google_Service_AdExchangeSeller_Alerts extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1126,12 +1083,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model @@ -1145,11 +1100,11 @@ class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo'; protected $targetingInfoDataType = ''; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1158,7 +1113,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1167,7 +1121,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1176,7 +1129,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1185,12 +1137,10 @@ public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTa { $this->targetingInfo = $targetingInfo; } - public function getTargetingInfo() { return $this->targetingInfo; } - } class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model @@ -1202,11 +1152,11 @@ class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_ public $location; public $siteLanguage; + public function setAdsAppearOn($adsAppearOn) { $this->adsAppearOn = $adsAppearOn; } - public function getAdsAppearOn() { return $this->adsAppearOn; @@ -1215,7 +1165,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1224,7 +1173,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1233,12 +1181,10 @@ public function setSiteLanguage($siteLanguage) { $this->siteLanguage = $siteLanguage; } - public function getSiteLanguage() { return $this->siteLanguage; } - } class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection @@ -1252,11 +1198,11 @@ class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1265,7 +1211,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1274,7 +1219,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1283,12 +1227,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdExchangeSeller_Metadata extends Google_Collection @@ -1300,11 +1242,11 @@ class Google_Service_AdExchangeSeller_Metadata extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1313,12 +1255,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model @@ -1334,11 +1274,11 @@ class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model public $kind; public $startTime; + public function setAdvertiserName($advertiserName) { $this->advertiserName = $advertiserName; } - public function getAdvertiserName() { return $this->advertiserName; @@ -1347,7 +1287,6 @@ public function setBuyerNetworkName($buyerNetworkName) { $this->buyerNetworkName = $buyerNetworkName; } - public function getBuyerNetworkName() { return $this->buyerNetworkName; @@ -1356,7 +1295,6 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; @@ -1365,7 +1303,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1374,7 +1311,6 @@ public function setFixedCpm($fixedCpm) { $this->fixedCpm = $fixedCpm; } - public function getFixedCpm() { return $this->fixedCpm; @@ -1383,7 +1319,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1392,7 +1327,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1401,12 +1335,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection @@ -1418,11 +1350,11 @@ class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1431,12 +1363,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeSeller_Report extends Google_Collection @@ -1453,11 +1383,11 @@ class Google_Service_AdExchangeSeller_Report extends Google_Collection public $totals; public $warnings; + public function setAverages($averages) { $this->averages = $averages; } - public function getAverages() { return $this->averages; @@ -1466,7 +1396,6 @@ public function setHeaders($headers) { $this->headers = $headers; } - public function getHeaders() { return $this->headers; @@ -1475,7 +1404,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1484,7 +1412,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -1493,7 +1420,6 @@ public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; } - public function getTotalMatchedRows() { return $this->totalMatchedRows; @@ -1502,7 +1428,6 @@ public function setTotals($totals) { $this->totals = $totals; } - public function getTotals() { return $this->totals; @@ -1511,12 +1436,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model @@ -1527,11 +1450,11 @@ class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model public $name; public $type; + public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -1540,7 +1463,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1549,12 +1471,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection @@ -1570,11 +1490,11 @@ class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Coll public $requiredMetrics; public $supportedProducts; + public function setCompatibleDimensions($compatibleDimensions) { $this->compatibleDimensions = $compatibleDimensions; } - public function getCompatibleDimensions() { return $this->compatibleDimensions; @@ -1583,7 +1503,6 @@ public function setCompatibleMetrics($compatibleMetrics) { $this->compatibleMetrics = $compatibleMetrics; } - public function getCompatibleMetrics() { return $this->compatibleMetrics; @@ -1592,7 +1511,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1601,7 +1519,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1610,7 +1527,6 @@ public function setRequiredDimensions($requiredDimensions) { $this->requiredDimensions = $requiredDimensions; } - public function getRequiredDimensions() { return $this->requiredDimensions; @@ -1619,7 +1535,6 @@ public function setRequiredMetrics($requiredMetrics) { $this->requiredMetrics = $requiredMetrics; } - public function getRequiredMetrics() { return $this->requiredMetrics; @@ -1628,12 +1543,10 @@ public function setSupportedProducts($supportedProducts) { $this->supportedProducts = $supportedProducts; } - public function getSupportedProducts() { return $this->supportedProducts; } - } class Google_Service_AdExchangeSeller_SavedReport extends Google_Model @@ -1644,11 +1557,11 @@ class Google_Service_AdExchangeSeller_SavedReport extends Google_Model public $kind; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1657,7 +1570,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1666,12 +1578,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection @@ -1685,11 +1595,11 @@ class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1698,7 +1608,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1707,7 +1616,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1716,12 +1624,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model @@ -1732,11 +1638,11 @@ class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model public $kind; public $urlPattern; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1745,7 +1651,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1754,12 +1659,10 @@ public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; } - public function getUrlPattern() { return $this->urlPattern; } - } class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection @@ -1773,11 +1676,11 @@ class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1786,7 +1689,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1795,7 +1697,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1804,10 +1705,8 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } From 1e62410fbd2caa4d77af923d6bec3fc7302e7b75 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:29 -0800 Subject: [PATCH 0448/1274] Updated Mirror.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Mirror.php | 269 +++++++++++----------------------- 1 file changed, 83 insertions(+), 186 deletions(-) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index 376a0bf49..d49b0564e 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -19,8 +19,7 @@ * Service definition for Mirror (v1). * *

- * API for interacting with Glass users via the timeline. - *

+ * API for interacting with Glass users via the timeline.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Mirror extends Google_Service { /** View your location. */ - const GLASS_LOCATION = "https://www.googleapis.com/auth/glass.location"; + const GLASS_LOCATION = + "https://www.googleapis.com/auth/glass.location"; /** View and manage your Glass timeline. */ - const GLASS_TIMELINE = "https://www.googleapis.com/auth/glass.timeline"; + const GLASS_TIMELINE = + "https://www.googleapis.com/auth/glass.timeline"; public $accounts; public $contacts; @@ -392,12 +393,11 @@ class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource /** * Inserts a new account for a user (accounts.insert) * - * @param string $userToken - * The ID for the user. - * @param string $accountType - * Account type to be passed to Android Account Manager. - * @param string $accountName - * The name of the account to be passed to the Android Account Manager. + * @param string $userToken The ID for the user. + * @param string $accountType Account type to be passed to Android Account + * Manager. + * @param string $accountName The name of the account to be passed to the + * Android Account Manager. * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Account @@ -424,8 +424,7 @@ class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource /** * Deletes a contact. (contacts.delete) * - * @param string $id - * The ID of the contact. + * @param string $id The ID of the contact. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -434,11 +433,11 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a single contact by ID. (contacts.get) * - * @param string $id - * The ID of the contact. + * @param string $id The ID of the contact. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Contact */ @@ -448,6 +447,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Mirror_Contact"); } + /** * Inserts a new contact. (contacts.insert) * @@ -461,6 +461,7 @@ public function insert(Google_Service_Mirror_Contact $postBody, $optParams = arr $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Mirror_Contact"); } + /** * Retrieves a list of contacts for the authenticated user. * (contacts.listContacts) @@ -474,12 +475,12 @@ public function listContacts($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse"); } + /** * Updates a contact in place. This method supports patch semantics. * (contacts.patch) * - * @param string $id - * The ID of the contact. + * @param string $id The ID of the contact. * @param Google_Contact $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Contact @@ -490,11 +491,11 @@ public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Mirror_Contact"); } + /** * Updates a contact in place. (contacts.update) * - * @param string $id - * The ID of the contact. + * @param string $id The ID of the contact. * @param Google_Contact $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Contact @@ -521,8 +522,8 @@ 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 string $id The ID of the location or latest for the last known + * location. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Location */ @@ -532,6 +533,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Mirror_Location"); } + /** * Retrieves a list of locations for the user. (locations.listLocations) * @@ -560,13 +562,11 @@ class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource /** * Gets a single setting by ID. (settings.get) * - * @param string $id - * The ID of the setting. The following IDs are valid: - - locale - The key to the user’s - * language/locale (BCP 47 identifier) that Glassware should use to render localized content. - - - * timezone - The key to the user’s current time zone region as defined in the tz database. - * Example: America/Los_Angeles. + * @param string $id The ID of the setting. The following IDs are valid: - + * locale - The key to the user’s language/locale (BCP 47 identifier) that + * Glassware should use to render localized content. - timezone - The key to + * the user’s current time zone region as defined in the tz database. Example: + * America/Los_Angeles. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Setting */ @@ -592,8 +592,7 @@ class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resour /** * Deletes a subscription. (subscriptions.delete) * - * @param string $id - * The ID of the subscription. + * @param string $id The ID of the subscription. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -602,6 +601,7 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Creates a new subscription. (subscriptions.insert) * @@ -615,6 +615,7 @@ public function insert(Google_Service_Mirror_Subscription $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Mirror_Subscription"); } + /** * Retrieves a list of subscriptions for the authenticated user and service. * (subscriptions.listSubscriptions) @@ -628,11 +629,11 @@ public function listSubscriptions($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse"); } + /** * Updates an existing subscription in place. (subscriptions.update) * - * @param string $id - * The ID of the subscription. + * @param string $id The ID of the subscription. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Subscription @@ -659,8 +660,7 @@ 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 string $id The ID of the timeline item. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -669,11 +669,11 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a single timeline item by ID. (timeline.get) * - * @param string $id - * The ID of the timeline item. + * @param string $id The ID of the timeline item. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_TimelineItem */ @@ -683,6 +683,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem"); } + /** * Inserts a new item into the timeline. (timeline.insert) * @@ -696,26 +697,25 @@ public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem"); } + /** * Retrieves a list of timeline items for the authenticated user. * (timeline.listTimeline) * * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Controls the order in which timeline items are returned. - * @opt_param bool includeDeleted - * If true, tombstone records for deleted items will be returned. - * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. - * @opt_param string pageToken - * Token for the page of results to return. - * @opt_param string sourceItemId - * If provided, only items with the given sourceItemId will be returned. - * @opt_param bool pinnedOnly - * If true, only pinned items will be returned. - * @opt_param string bundleId - * If provided, only items with the given bundleId will be returned. + * @opt_param string orderBy Controls the order in which timeline items are + * returned. + * @opt_param bool includeDeleted If true, tombstone records for deleted items + * will be returned. + * @opt_param string maxResults The maximum number of items to include in the + * response, used for paging. + * @opt_param string pageToken Token for the page of results to return. + * @opt_param string sourceItemId If provided, only items with the given + * sourceItemId will be returned. + * @opt_param bool pinnedOnly If true, only pinned items will be returned. + * @opt_param string bundleId If provided, only items with the given bundleId + * will be returned. * @return Google_Service_Mirror_TimelineListResponse */ public function listTimeline($optParams = array()) @@ -724,12 +724,12 @@ public function listTimeline($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse"); } + /** * Updates a timeline item in place. This method supports patch semantics. * (timeline.patch) * - * @param string $id - * The ID of the timeline item. + * @param string $id The ID of the timeline item. * @param Google_TimelineItem $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_TimelineItem @@ -740,11 +740,11 @@ public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem"); } + /** * Updates a timeline item in place. (timeline.update) * - * @param string $id - * The ID of the timeline item. + * @param string $id The ID of the timeline item. * @param Google_TimelineItem $postBody * @param array $optParams Optional parameters. * @return Google_Service_Mirror_TimelineItem @@ -771,10 +771,8 @@ class Google_Service_Mirror_TimelineAttachments_Resource extends Google_Service_ /** * 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 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()) @@ -783,14 +781,13 @@ public function delete($itemId, $attachmentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves an attachment on a timeline item by item ID and attachment ID. * (attachments.get) * - * @param string $itemId - * The ID of the timeline item the attachment belongs to. - * @param string $attachmentId - * The ID of the attachment. + * @param 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 */ @@ -800,11 +797,11 @@ public function get($itemId, $attachmentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Mirror_Attachment"); } + /** * Adds a new attachment to a timeline item. (attachments.insert) * - * @param string $itemId - * The ID of the timeline item the attachment belongs to. + * @param string $itemId The ID of the timeline item the attachment belongs to. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_Attachment */ @@ -814,12 +811,13 @@ public function insert($itemId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Mirror_Attachment"); } + /** * Returns a list of attachments for a timeline item. * (attachments.listTimelineAttachments) * - * @param string $itemId - * The ID of the timeline item whose attachments should be listed. + * @param string $itemId The ID of the timeline item whose attachments should be + * listed. * @param array $optParams Optional parameters. * @return Google_Service_Mirror_AttachmentsListResponse */ @@ -846,11 +844,11 @@ class Google_Service_Mirror_Account extends Google_Collection protected $userDataType = 'Google_Service_Mirror_UserData'; protected $userDataDataType = 'array'; + public function setAuthTokens($authTokens) { $this->authTokens = $authTokens; } - public function getAuthTokens() { return $this->authTokens; @@ -859,7 +857,6 @@ public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -868,7 +865,6 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -877,12 +873,10 @@ public function setUserData($userData) { $this->userData = $userData; } - public function getUserData() { return $this->userData; } - } class Google_Service_Mirror_Attachment extends Google_Model @@ -894,11 +888,11 @@ class Google_Service_Mirror_Attachment extends Google_Model public $id; public $isProcessingContent; + public function setContentType($contentType) { $this->contentType = $contentType; } - public function getContentType() { return $this->contentType; @@ -907,7 +901,6 @@ public function setContentUrl($contentUrl) { $this->contentUrl = $contentUrl; } - public function getContentUrl() { return $this->contentUrl; @@ -916,7 +909,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -925,12 +917,10 @@ public function setIsProcessingContent($isProcessingContent) { $this->isProcessingContent = $isProcessingContent; } - public function getIsProcessingContent() { return $this->isProcessingContent; } - } class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection @@ -942,11 +932,11 @@ class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -955,12 +945,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Mirror_AuthToken extends Google_Model @@ -970,11 +958,11 @@ class Google_Service_Mirror_AuthToken extends Google_Model public $authToken; public $type; + public function setAuthToken($authToken) { $this->authToken = $authToken; } - public function getAuthToken() { return $this->authToken; @@ -983,12 +971,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Mirror_Command extends Google_Model @@ -997,16 +983,15 @@ class Google_Service_Mirror_Command extends Google_Model ); public $type; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Mirror_Contact extends Google_Collection @@ -1028,11 +1013,11 @@ class Google_Service_Mirror_Contact extends Google_Collection public $speakableName; public $type; + public function setAcceptCommands($acceptCommands) { $this->acceptCommands = $acceptCommands; } - public function getAcceptCommands() { return $this->acceptCommands; @@ -1041,7 +1026,6 @@ public function setAcceptTypes($acceptTypes) { $this->acceptTypes = $acceptTypes; } - public function getAcceptTypes() { return $this->acceptTypes; @@ -1050,7 +1034,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1059,7 +1042,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1068,7 +1050,6 @@ public function setImageUrls($imageUrls) { $this->imageUrls = $imageUrls; } - public function getImageUrls() { return $this->imageUrls; @@ -1077,7 +1058,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1086,7 +1066,6 @@ public function setPhoneNumber($phoneNumber) { $this->phoneNumber = $phoneNumber; } - public function getPhoneNumber() { return $this->phoneNumber; @@ -1095,7 +1074,6 @@ public function setPriority($priority) { $this->priority = $priority; } - public function getPriority() { return $this->priority; @@ -1104,7 +1082,6 @@ public function setSharingFeatures($sharingFeatures) { $this->sharingFeatures = $sharingFeatures; } - public function getSharingFeatures() { return $this->sharingFeatures; @@ -1113,7 +1090,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -1122,7 +1098,6 @@ public function setSpeakableName($speakableName) { $this->speakableName = $speakableName; } - public function getSpeakableName() { return $this->speakableName; @@ -1131,12 +1106,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Mirror_ContactsListResponse extends Google_Collection @@ -1148,11 +1121,11 @@ class Google_Service_Mirror_ContactsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1161,12 +1134,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Mirror_Location extends Google_Model @@ -1182,11 +1153,11 @@ class Google_Service_Mirror_Location extends Google_Model public $longitude; public $timestamp; + public function setAccuracy($accuracy) { $this->accuracy = $accuracy; } - public function getAccuracy() { return $this->accuracy; @@ -1195,7 +1166,6 @@ public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -1204,7 +1174,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1213,7 +1182,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1222,7 +1190,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1231,7 +1198,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -1240,7 +1206,6 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; @@ -1249,12 +1214,10 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; } - } class Google_Service_Mirror_LocationsListResponse extends Google_Collection @@ -1266,11 +1229,11 @@ class Google_Service_Mirror_LocationsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1279,12 +1242,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Mirror_MenuItem extends Google_Collection @@ -1301,11 +1262,11 @@ class Google_Service_Mirror_MenuItem extends Google_Collection protected $valuesType = 'Google_Service_Mirror_MenuValue'; protected $valuesDataType = 'array'; + public function setAction($action) { $this->action = $action; } - public function getAction() { return $this->action; @@ -1314,7 +1275,6 @@ public function setContextualCommand($contextualCommand) { $this->contextualCommand = $contextualCommand; } - public function getContextualCommand() { return $this->contextualCommand; @@ -1323,7 +1283,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1332,7 +1291,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -1341,7 +1299,6 @@ public function setRemoveWhenSelected($removeWhenSelected) { $this->removeWhenSelected = $removeWhenSelected; } - public function getRemoveWhenSelected() { return $this->removeWhenSelected; @@ -1350,12 +1307,10 @@ public function setValues($values) { $this->values = $values; } - public function getValues() { return $this->values; } - } class Google_Service_Mirror_MenuValue extends Google_Model @@ -1366,11 +1321,11 @@ class Google_Service_Mirror_MenuValue extends Google_Model public $iconUrl; public $state; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1379,7 +1334,6 @@ public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; } - public function getIconUrl() { return $this->iconUrl; @@ -1388,12 +1342,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Mirror_Notification extends Google_Collection @@ -1409,11 +1361,11 @@ class Google_Service_Mirror_Notification extends Google_Collection public $userToken; public $verifyToken; + public function setCollection($collection) { $this->collection = $collection; } - public function getCollection() { return $this->collection; @@ -1422,7 +1374,6 @@ public function setItemId($itemId) { $this->itemId = $itemId; } - public function getItemId() { return $this->itemId; @@ -1431,7 +1382,6 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; @@ -1440,7 +1390,6 @@ public function setUserActions($userActions) { $this->userActions = $userActions; } - public function getUserActions() { return $this->userActions; @@ -1449,7 +1398,6 @@ public function setUserToken($userToken) { $this->userToken = $userToken; } - public function getUserToken() { return $this->userToken; @@ -1458,12 +1406,10 @@ public function setVerifyToken($verifyToken) { $this->verifyToken = $verifyToken; } - public function getVerifyToken() { return $this->verifyToken; } - } class Google_Service_Mirror_NotificationConfig extends Google_Model @@ -1473,11 +1419,11 @@ 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; @@ -1486,12 +1432,10 @@ public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; } - } class Google_Service_Mirror_Setting extends Google_Model @@ -1502,11 +1446,11 @@ class Google_Service_Mirror_Setting extends Google_Model public $kind; public $value; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1515,7 +1459,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1524,12 +1467,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Mirror_Subscription extends Google_Collection @@ -1548,11 +1489,11 @@ class Google_Service_Mirror_Subscription extends Google_Collection public $userToken; public $verifyToken; + public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } - public function getCallbackUrl() { return $this->callbackUrl; @@ -1561,7 +1502,6 @@ public function setCollection($collection) { $this->collection = $collection; } - public function getCollection() { return $this->collection; @@ -1570,7 +1510,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1579,7 +1518,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1588,7 +1526,6 @@ public function setNotification(Google_Service_Mirror_Notification $notification { $this->notification = $notification; } - public function getNotification() { return $this->notification; @@ -1597,7 +1534,6 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; @@ -1606,7 +1542,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -1615,7 +1550,6 @@ public function setUserToken($userToken) { $this->userToken = $userToken; } - public function getUserToken() { return $this->userToken; @@ -1624,12 +1558,10 @@ public function setVerifyToken($verifyToken) { $this->verifyToken = $verifyToken; } - public function getVerifyToken() { return $this->verifyToken; } - } class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection @@ -1641,11 +1573,11 @@ class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1654,12 +1586,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Mirror_TimelineItem extends Google_Collection @@ -1700,11 +1630,11 @@ class Google_Service_Mirror_TimelineItem extends Google_Collection public $title; public $updated; + public function setAttachments($attachments) { $this->attachments = $attachments; } - public function getAttachments() { return $this->attachments; @@ -1713,7 +1643,6 @@ public function setBundleId($bundleId) { $this->bundleId = $bundleId; } - public function getBundleId() { return $this->bundleId; @@ -1722,7 +1651,6 @@ public function setCanonicalUrl($canonicalUrl) { $this->canonicalUrl = $canonicalUrl; } - public function getCanonicalUrl() { return $this->canonicalUrl; @@ -1731,7 +1659,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -1740,7 +1667,6 @@ public function setCreator(Google_Service_Mirror_Contact $creator) { $this->creator = $creator; } - public function getCreator() { return $this->creator; @@ -1749,7 +1675,6 @@ public function setDisplayTime($displayTime) { $this->displayTime = $displayTime; } - public function getDisplayTime() { return $this->displayTime; @@ -1758,7 +1683,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1767,7 +1691,6 @@ public function setHtml($html) { $this->html = $html; } - public function getHtml() { return $this->html; @@ -1776,7 +1699,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1785,7 +1707,6 @@ public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; } - public function getInReplyTo() { return $this->inReplyTo; @@ -1794,7 +1715,6 @@ public function setIsBundleCover($isBundleCover) { $this->isBundleCover = $isBundleCover; } - public function getIsBundleCover() { return $this->isBundleCover; @@ -1803,7 +1723,6 @@ public function setIsDeleted($isDeleted) { $this->isDeleted = $isDeleted; } - public function getIsDeleted() { return $this->isDeleted; @@ -1812,7 +1731,6 @@ public function setIsPinned($isPinned) { $this->isPinned = $isPinned; } - public function getIsPinned() { return $this->isPinned; @@ -1821,7 +1739,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1830,7 +1747,6 @@ public function setLocation(Google_Service_Mirror_Location $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1839,7 +1755,6 @@ public function setMenuItems($menuItems) { $this->menuItems = $menuItems; } - public function getMenuItems() { return $this->menuItems; @@ -1848,7 +1763,6 @@ public function setNotification(Google_Service_Mirror_NotificationConfig $notifi { $this->notification = $notification; } - public function getNotification() { return $this->notification; @@ -1857,7 +1771,6 @@ public function setPinScore($pinScore) { $this->pinScore = $pinScore; } - public function getPinScore() { return $this->pinScore; @@ -1866,7 +1779,6 @@ public function setRecipients($recipients) { $this->recipients = $recipients; } - public function getRecipients() { return $this->recipients; @@ -1875,7 +1787,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1884,7 +1795,6 @@ public function setSourceItemId($sourceItemId) { $this->sourceItemId = $sourceItemId; } - public function getSourceItemId() { return $this->sourceItemId; @@ -1893,7 +1803,6 @@ public function setSpeakableText($speakableText) { $this->speakableText = $speakableText; } - public function getSpeakableText() { return $this->speakableText; @@ -1902,7 +1811,6 @@ public function setSpeakableType($speakableType) { $this->speakableType = $speakableType; } - public function getSpeakableType() { return $this->speakableType; @@ -1911,7 +1819,6 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; @@ -1920,7 +1827,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1929,12 +1835,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Mirror_TimelineListResponse extends Google_Collection @@ -1947,11 +1851,11 @@ class Google_Service_Mirror_TimelineListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1960,7 +1864,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1969,12 +1872,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Mirror_UserAction extends Google_Model @@ -1984,11 +1885,11 @@ 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; @@ -1997,12 +1898,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Mirror_UserData extends Google_Model @@ -2012,11 +1911,11 @@ class Google_Service_Mirror_UserData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -2025,10 +1924,8 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } From 438af3d97e8de417cc8c6fd7797ccc871774ef85 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:30 -0800 Subject: [PATCH 0449/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 2352 ++++++++++---------------------- 1 file changed, 751 insertions(+), 1601 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 6f06dc4e4..90392302a 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -19,8 +19,7 @@ * Service definition for Compute (v1). * *

- * API for the Google Compute Engine service. - *

+ * API for the Google Compute Engine service.

* *

* For more information about this service, see the API @@ -32,15 +31,20 @@ class Google_Service_Compute extends Google_Service { /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; + const COMPUTE = + "https://www.googleapis.com/auth/compute"; /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + const COMPUTE_READONLY = + "https://www.googleapis.com/auth/compute.readonly"; /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + const DEVSTORAGE_FULL_CONTROL = + "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + const DEVSTORAGE_READ_ONLY = + "https://www.googleapis.com/auth/devstorage.read_only"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; public $addresses; public $backendServices; @@ -2787,18 +2791,15 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource /** * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_AddressAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -2807,15 +2808,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); } + /** * Deletes the specified address resource. (addresses.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $address - * Name of the address resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -2825,15 +2824,13 @@ public function delete($project, $region, $address, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified address resource. (addresses.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $address - * Name of the address resource to return. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address */ @@ -2843,14 +2840,13 @@ public function get($project, $region, $address, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Address"); } + /** * Creates an address resource in the specified project using the data included * in the request. (addresses.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2861,24 +2857,21 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of address resources contained within the specified * region. (addresses.listAddresses) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_AddressList */ public function listAddresses($project, $region, $optParams = array()) @@ -2903,10 +2896,8 @@ class Google_Service_Compute_BackendServices_Resource extends Google_Service_Res /** * Deletes the specified BackendService resource. (backendServices.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -2916,13 +2907,12 @@ public function delete($project, $backendService, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified BackendService resource. (backendServices.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to return. + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_BackendService */ @@ -2932,14 +2922,14 @@ public function get($project, $backendService, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_BackendService"); } + /** * Gets the most recent health check results for this BackendService. * (backendServices.getHealth) * * @param string $project - * - * @param string $backendService - * Name of the BackendService resource to which the queried instance belongs. + * @param string $backendService Name of the BackendService resource to which + * the queried instance belongs. * @param Google_ResourceGroupReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_BackendServiceGroupHealth @@ -2950,12 +2940,12 @@ public function getHealth($project, $backendService, Google_Service_Compute_Reso $params = array_merge($params, $optParams); return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); } + /** * Creates a BackendService resource in the specified project using the data * included in the request. (backendServices.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2966,22 +2956,20 @@ public function insert($project, Google_Service_Compute_BackendService $postBody $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of BackendService resources available to the specified * project. (backendServices.listBackendServices) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_BackendServiceList */ public function listBackendServices($project, $optParams = array()) @@ -2990,14 +2978,13 @@ public function listBackendServices($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); } + /** * Update the entire content of the BackendService resource. This method * supports patch semantics. (backendServices.patch) * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to update. + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3008,14 +2995,13 @@ public function patch($project, $backendService, Google_Service_Compute_BackendS $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** * Update the entire content of the BackendService resource. * (backendServices.update) * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to update. + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3043,18 +3029,15 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * Retrieves the list of disk type resources grouped by scope. * (diskTypes.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_DiskTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3063,15 +3046,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); } + /** * Returns the specified disk type resource. (diskTypes.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $diskType - * Name of the disk type resource to return. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $diskType Name of the disk type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_DiskType */ @@ -3081,24 +3062,21 @@ public function get($project, $zone, $diskType, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_DiskType"); } + /** * Retrieves the list of disk type resources available to the specified project. * (diskTypes.listDiskTypes) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_DiskTypeList */ public function listDiskTypes($project, $zone, $optParams = array()) @@ -3123,18 +3101,15 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource /** * Retrieves the list of disks grouped by scope. (disks.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_DiskAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3143,15 +3118,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); } + /** * (disks.createSnapshot) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to snapshot. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $disk Name of the persistent disk resource to snapshot. * @param Google_Snapshot $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3162,15 +3135,13 @@ public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Sn $params = array_merge($params, $optParams); return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); } + /** * Deletes the specified persistent disk resource. (disks.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to delete. + * @param 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 */ @@ -3180,15 +3151,13 @@ public function delete($project, $zone, $disk, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified persistent disk resource. (disks.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to return. + * @param 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 */ @@ -3198,19 +3167,17 @@ public function get($project, $zone, $disk, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Disk"); } + /** * Creates a persistent disk resource in the specified project using the data * included in the request. (disks.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * @param 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. + * @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()) @@ -3219,24 +3186,21 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of persistent disk resources contained within the * specified zone. (disks.listDisks) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_DiskList */ public function listDisks($project, $zone, $optParams = array()) @@ -3261,10 +3225,8 @@ 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 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 */ @@ -3274,13 +3236,12 @@ public function delete($project, $firewall, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified firewall resource. (firewalls.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to return. + * @param 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 */ @@ -3290,12 +3251,12 @@ public function get($project, $firewall, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Firewall"); } + /** * Creates a firewall resource in the specified project using the data included * in the request. (firewalls.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3306,22 +3267,20 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of firewall resources available to the specified project. * (firewalls.listFirewalls) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_FirewallList */ public function listFirewalls($project, $optParams = array()) @@ -3330,14 +3289,13 @@ public function listFirewalls($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); } + /** * Updates the specified firewall resource with the data included in the * request. This method supports patch semantics. (firewalls.patch) * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to update. + * @param 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 @@ -3348,14 +3306,13 @@ public function patch($project, $firewall, Google_Service_Compute_Firewall $post $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** * Updates the specified firewall resource with the data included in the * request. (firewalls.update) * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to update. + * @param 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 @@ -3383,18 +3340,15 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * Retrieves the list of forwarding rules grouped by scope. * (forwardingRules.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_ForwardingRuleAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3403,15 +3357,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); } + /** * Deletes the specified ForwardingRule resource. (forwardingRules.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3421,15 +3373,13 @@ public function delete($project, $region, $forwardingRule, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified ForwardingRule resource. (forwardingRules.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to return. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_ForwardingRule */ @@ -3439,14 +3389,13 @@ public function get($project, $region, $forwardingRule, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); } + /** * Creates a ForwardingRule resource in the specified project and region using * the data included in the request. (forwardingRules.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. * @param Google_ForwardingRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3457,24 +3406,21 @@ public function insert($project, $region, Google_Service_Compute_ForwardingRule $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of ForwardingRule resources available to the specified * project and region. (forwardingRules.listForwardingRules) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_ForwardingRuleList */ public function listForwardingRules($project, $region, $optParams = array()) @@ -3483,15 +3429,14 @@ public function listForwardingRules($project, $region, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); } + /** * Changes target url for forwarding rule. (forwardingRules.setTarget) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource in which target is to be set. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. * @param Google_TargetReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3518,10 +3463,8 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res /** * Deletes the specified address resource. (globalAddresses.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $address - * Name of the address resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3531,13 +3474,12 @@ public function delete($project, $address, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified address resource. (globalAddresses.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $address - * Name of the address resource to return. + * @param string $project Name of the project scoping this request. + * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address */ @@ -3547,12 +3489,12 @@ public function get($project, $address, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Address"); } + /** * Creates an address resource in the specified project using the data included * in the request. (globalAddresses.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3563,22 +3505,20 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of global address resources. * (globalAddresses.listGlobalAddresses) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_AddressList */ public function listGlobalAddresses($project, $optParams = array()) @@ -3603,10 +3543,8 @@ class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Servi /** * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3616,13 +3554,12 @@ public function delete($project, $forwardingRule, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified ForwardingRule resource. (globalForwardingRules.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to return. + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_ForwardingRule */ @@ -3632,12 +3569,12 @@ public function get($project, $forwardingRule, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); } + /** * Creates a ForwardingRule resource in the specified project and region using * the data included in the request. (globalForwardingRules.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_ForwardingRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3648,22 +3585,20 @@ public function insert($project, Google_Service_Compute_ForwardingRule $postBody $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of ForwardingRule resources available to the specified * project. (globalForwardingRules.listGlobalForwardingRules) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_ForwardingRuleList */ public function listGlobalForwardingRules($project, $optParams = array()) @@ -3672,13 +3607,13 @@ public function listGlobalForwardingRules($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); } + /** * Changes target url for forwarding rule. (globalForwardingRules.setTarget) * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource in which target is to be set. + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. * @param Google_TargetReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3706,18 +3641,15 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * Retrieves the list of all operations grouped by scope. * (globalOperations.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_OperationAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3726,13 +3658,12 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); } + /** * Deletes the specified operation resource. (globalOperations.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to delete. + * @param 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()) @@ -3741,13 +3672,12 @@ public function delete($project, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the specified operation resource. (globalOperations.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to return. + * @param 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 */ @@ -3757,22 +3687,20 @@ public function get($project, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * project. (globalOperations.listGlobalOperations) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_OperationList */ public function listGlobalOperations($project, $optParams = array()) @@ -3797,10 +3725,9 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re /** * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3810,13 +3737,13 @@ public function delete($project, $httpHealthCheck, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to return. + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_HttpHealthCheck */ @@ -3826,12 +3753,12 @@ public function get($project, $httpHealthCheck, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); } + /** * Creates a HttpHealthCheck resource in the specified project using the data * included in the request. (httpHealthChecks.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_HttpHealthCheck $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3842,22 +3769,20 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of HttpHealthCheck resources available to the specified * project. (httpHealthChecks.listHttpHealthChecks) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_HttpHealthCheckList */ public function listHttpHealthChecks($project, $optParams = array()) @@ -3866,15 +3791,15 @@ public function listHttpHealthChecks($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); } + /** * Updates a HttpHealthCheck resource in the specified project using the data * included in the request. This method supports patch semantics. * (httpHealthChecks.patch) * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. * @param Google_HttpHealthCheck $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3885,14 +3810,14 @@ public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHea $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** * Updates a HttpHealthCheck resource in the specified project using the data * included in the request. (httpHealthChecks.update) * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. * @param Google_HttpHealthCheck $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3919,10 +3844,8 @@ 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 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 */ @@ -3932,14 +3855,13 @@ public function delete($project, $image, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Sets the deprecation status of an image. If no message body is given, clears * the deprecation status instead. (images.deprecate) * - * @param string $project - * Name of the project scoping this request. - * @param string $image - * Image name. + * @param 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 @@ -3950,13 +3872,12 @@ public function deprecate($project, $image, Google_Service_Compute_DeprecationSt $params = array_merge($params, $optParams); return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified image resource. (images.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $image - * Name of the image resource to return. + * @param 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 */ @@ -3966,12 +3887,12 @@ public function get($project, $image, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Image"); } + /** * Creates an image resource in the specified project using the data included in * the request. (images.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Image $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3982,22 +3903,20 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of image resources available to the specified project. * (images.listImages) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_ImageList */ public function listImages($project, $optParams = array()) @@ -4022,10 +3941,9 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R /** * Deletes the specified instance template resource. (instanceTemplates.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $instanceTemplate - * Name of the instance template resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $instanceTemplate Name of the instance template resource to + * delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4035,13 +3953,13 @@ public function delete($project, $instanceTemplate, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified instance template resource. (instanceTemplates.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $instanceTemplate - * Name of the instance template resource to return. + * @param string $project Name of the project scoping this request. + * @param string $instanceTemplate Name of the instance template resource to + * return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_InstanceTemplate */ @@ -4051,12 +3969,12 @@ public function get($project, $instanceTemplate, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); } + /** * Creates an instance template resource in the specified project using the data * included in the request. (instanceTemplates.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_InstanceTemplate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4067,22 +3985,20 @@ public function insert($project, Google_Service_Compute_InstanceTemplate $postBo $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of instance template resources contained within the * specified project. (instanceTemplates.listInstanceTemplates) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_InstanceTemplateList */ public function listInstanceTemplates($project, $optParams = array()) @@ -4108,14 +4024,10 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Adds an access config to an instance's network interface. * (instances.addAccessConfig) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $networkInterface - * Network interface name. + * @param string $project Project name. + * @param string $zone Name of the zone scoping this request. + * @param string $instance Instance name. + * @param string $networkInterface Network interface name. * @param Google_AccessConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4126,21 +4038,19 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G $params = array_merge($params, $optParams); return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); } + /** * (instances.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_InstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4149,15 +4059,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); } + /** * Attaches a disk resource to an instance. (instances.attachDisk) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. + * @param 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 @@ -4168,15 +4076,13 @@ public function attachDisk($project, $zone, $instance, Google_Service_Compute_At $params = array_merge($params, $optParams); return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); } + /** * Deletes the specified instance resource. (instances.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance resource to delete. + * @param 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 */ @@ -4186,20 +4092,16 @@ public function delete($project, $zone, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Deletes an access config from an instance's network interface. * (instances.deleteAccessConfig) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $accessConfig - * Access config name. - * @param string $networkInterface - * Network interface name. + * @param string $project Project name. + * @param string $zone Name of the zone scoping this request. + * @param string $instance Instance name. + * @param string $accessConfig Access config name. + * @param string $networkInterface Network interface name. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4209,17 +4111,14 @@ public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $n $params = array_merge($params, $optParams); return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); } + /** * Detaches a disk from an instance. (instances.detachDisk) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $deviceName - * Disk device name to detach. + * @param 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 */ @@ -4229,15 +4128,13 @@ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = $params = array_merge($params, $optParams); return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified instance resource. (instances.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance resource to return. + * @param 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 */ @@ -4247,16 +4144,14 @@ public function get($project, $zone, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Instance"); } + /** * Returns the specified instance's serial port output. * (instances.getSerialPortOutput) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. + * @param 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 */ @@ -4266,14 +4161,13 @@ public function getSerialPortOutput($project, $zone, $instance, $optParams = arr $params = array_merge($params, $optParams); return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); } + /** * Creates an instance resource in the specified project using the data included * in the request. (instances.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * @param 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 @@ -4284,24 +4178,21 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of instance resources contained within the specified zone. * (instances.listInstances) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_InstanceList */ public function listInstances($project, $zone, $optParams = array()) @@ -4310,15 +4201,13 @@ public function listInstances($project, $zone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); } + /** * Performs a hard reset on the instance. (instances.reset) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4328,20 +4217,17 @@ public function reset($project, $zone, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params), "Google_Service_Compute_Operation"); } + /** * Sets the auto-delete flag for a disk attached to an instance * (instances.setDiskAutoDelete) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param bool $autoDelete - * Whether to auto-delete the disk when the instance is deleted. - * @param string $deviceName - * Disk device name to modify. + * @param string $project Project name. + * @param string $zone Name of the zone scoping this request. + * @param string $instance Instance name. + * @param bool $autoDelete Whether to auto-delete the disk when the instance is + * deleted. + * @param string $deviceName Disk device name to modify. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4351,16 +4237,14 @@ public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $devi $params = array_merge($params, $optParams); return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); } + /** * Sets metadata for the specified instance to the data included in the request. * (instances.setMetadata) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. + * @param 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 @@ -4371,15 +4255,13 @@ public function setMetadata($project, $zone, $instance, Google_Service_Compute_M $params = array_merge($params, $optParams); return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); } + /** * Sets an instance's scheduling options. (instances.setScheduling) * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. + * @param string $project Project name. + * @param string $zone Name of the zone scoping this request. + * @param string $instance Instance name. * @param Google_Scheduling $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4390,16 +4272,14 @@ public function setScheduling($project, $zone, $instance, Google_Service_Compute $params = array_merge($params, $optParams); return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); } + /** * Sets tags for the specified instance to the data included in the request. * (instances.setTags) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. + * @param 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 @@ -4426,10 +4306,8 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource /** * Returns the specified license resource. (licenses.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $license - * Name of the license resource to return. + * @param string $project Name of the project scoping this request. + * @param string $license Name of the license resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_License */ @@ -4456,18 +4334,15 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * Retrieves the list of machine type resources grouped by scope. * (machineTypes.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_MachineTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4476,15 +4351,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); } + /** * Returns the specified machine type resource. (machineTypes.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $machineType - * Name of the machine type resource to return. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $machineType Name of the machine type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_MachineType */ @@ -4494,24 +4367,21 @@ public function get($project, $zone, $machineType, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_MachineType"); } + /** * Retrieves the list of machine type resources available to the specified * project. (machineTypes.listMachineTypes) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_MachineTypeList */ public function listMachineTypes($project, $zone, $optParams = array()) @@ -4536,10 +4406,8 @@ 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 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 */ @@ -4549,13 +4417,12 @@ public function delete($project, $network, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified network resource. (networks.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $network - * Name of the network resource to return. + * @param 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 */ @@ -4565,12 +4432,12 @@ public function get($project, $network, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Network"); } + /** * Creates a network resource in the specified project using the data included * in the request. (networks.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Network $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4581,22 +4448,20 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of network resources available to the specified project. * (networks.listNetworks) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_NetworkList */ public function listNetworks($project, $optParams = array()) @@ -4621,8 +4486,7 @@ 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 string $project Name of the project resource to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Project */ @@ -4632,12 +4496,12 @@ public function get($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Project"); } + /** * Sets metadata common to all instances within the specified project using the * data included in the request. (projects.setCommonInstanceMetadata) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Metadata $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4648,11 +4512,11 @@ public function setCommonInstanceMetadata($project, Google_Service_Compute_Metad $params = array_merge($params, $optParams); return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); } + /** * Sets usage export location (projects.setUsageExportBucket) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_UsageExportLocation $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4680,12 +4544,9 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * Deletes the specified region-specific operation resource. * (regionOperations.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $operation - * Name of the operation resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. */ public function delete($project, $region, $operation, $optParams = array()) @@ -4694,16 +4555,14 @@ public function delete($project, $region, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the specified region-specific operation resource. * (regionOperations.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the zone scoping this request. - * @param string $operation - * Name of the operation resource to return. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the zone scoping this request. + * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4713,24 +4572,21 @@ public function get($project, $region, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * region. (regionOperations.listRegionOperations) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_OperationList */ public function listRegionOperations($project, $region, $optParams = array()) @@ -4755,10 +4611,8 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource /** * Returns the specified region resource. (regions.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region resource to return. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Region */ @@ -4768,22 +4622,20 @@ public function get($project, $region, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Region"); } + /** * Retrieves the list of region resources available to the specified project. * (regions.listRegions) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_RegionList */ public function listRegions($project, $optParams = array()) @@ -4808,10 +4660,8 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource /** * Deletes the specified route resource. (routes.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $route - * Name of the route resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4821,13 +4671,12 @@ public function delete($project, $route, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified route resource. (routes.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $route - * Name of the route resource to return. + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Route */ @@ -4837,12 +4686,12 @@ public function get($project, $route, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Route"); } + /** * Creates a route resource in the specified project using the data included in * the request. (routes.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_Route $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4853,22 +4702,20 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of route resources available to the specified project. * (routes.listRoutes) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_RouteList */ public function listRoutes($project, $optParams = array()) @@ -4893,10 +4740,9 @@ 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 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 */ @@ -4906,13 +4752,13 @@ public function delete($project, $snapshot, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified persistent disk snapshot resource. (snapshots.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $snapshot - * Name of the persistent disk snapshot resource to return. + * @param 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 */ @@ -4922,22 +4768,20 @@ public function get($project, $snapshot, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); } + /** * Retrieves the list of persistent disk snapshot resources contained within the * specified project. (snapshots.listSnapshots) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_SnapshotList */ public function listSnapshots($project, $optParams = array()) @@ -4962,10 +4806,9 @@ class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_R /** * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4975,13 +4818,13 @@ public function delete($project, $targetHttpProxy, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource to return. + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetHttpProxy */ @@ -4991,12 +4834,12 @@ public function get($project, $targetHttpProxy, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); } + /** * Creates a TargetHttpProxy resource in the specified project using the data * included in the request. (targetHttpProxies.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_TargetHttpProxy $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5007,22 +4850,20 @@ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBod $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of TargetHttpProxy resources available to the specified * project. (targetHttpProxies.listTargetHttpProxies) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_TargetHttpProxyList */ public function listTargetHttpProxies($project, $optParams = array()) @@ -5031,13 +4872,13 @@ public function listTargetHttpProxies($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); } + /** * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource whose URL map is to be set. + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL + * map is to be set. * @param Google_UrlMapReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5065,18 +4906,15 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * Retrieves the list of target instances grouped by scope. * (targetInstances.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_TargetInstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5085,15 +4923,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); } + /** * Deletes the specified TargetInstance resource. (targetInstances.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -5103,15 +4939,13 @@ public function delete($project, $zone, $targetInstance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified TargetInstance resource. (targetInstances.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to return. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetInstance */ @@ -5121,14 +4955,13 @@ public function get($project, $zone, $targetInstance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); } + /** * Creates a TargetInstance resource in the specified project and zone using the * data included in the request. (targetInstances.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. * @param Google_TargetInstance $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5139,24 +4972,21 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of TargetInstance resources available to the specified * project and zone. (targetInstances.listTargetInstances) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_TargetInstanceList */ public function listTargetInstances($project, $zone, $optParams = array()) @@ -5182,11 +5012,9 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc * Adds health check URL to targetPool. (targetPools.addHealthCheck) * * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which health_check_url is to be added. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be added. * @param Google_TargetPoolsAddHealthCheckRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5197,15 +5025,14 @@ public function addHealthCheck($project, $region, $targetPool, Google_Service_Co $params = array_merge($params, $optParams); return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); } + /** * Adds instance url to targetPool. (targetPools.addInstance) * * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which instance_url is to be added. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be added. * @param Google_TargetPoolsAddInstanceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5216,22 +5043,20 @@ public function addInstance($project, $region, $targetPool, Google_Service_Compu $params = array_merge($params, $optParams); return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of target pools grouped by scope. * (targetPools.aggregatedList) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_TargetPoolAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5240,15 +5065,13 @@ public function aggregatedList($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); } + /** * Deletes the specified TargetPool resource. (targetPools.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -5258,15 +5081,13 @@ public function delete($project, $region, $targetPool, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified TargetPool resource. (targetPools.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to return. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetPool */ @@ -5276,16 +5097,15 @@ public function get($project, $region, $targetPool, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); } + /** * Gets the most recent health check results for each IP for the given instance * that is referenced by given TargetPool. (targetPools.getHealth) * * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which the queried instance belongs. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which the + * queried instance belongs. * @param Google_InstanceReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetPoolInstanceHealth @@ -5296,14 +5116,13 @@ public function getHealth($project, $region, $targetPool, Google_Service_Compute $params = array_merge($params, $optParams); return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); } + /** * Creates a TargetPool resource in the specified project and region using the * data included in the request. (targetPools.insert) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. * @param Google_TargetPool $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5314,24 +5133,21 @@ public function insert($project, $region, Google_Service_Compute_TargetPool $pos $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of TargetPool resources available to the specified project * and region. (targetPools.listTargetPools) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_TargetPoolList */ public function listTargetPools($project, $region, $optParams = array()) @@ -5340,15 +5156,14 @@ public function listTargetPools($project, $region, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); } + /** * Removes health check URL from targetPool. (targetPools.removeHealthCheck) * * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which health_check_url is to be removed. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be removed. * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5359,15 +5174,14 @@ public function removeHealthCheck($project, $region, $targetPool, Google_Service $params = array_merge($params, $optParams); return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); } + /** * Removes instance URL from targetPool. (targetPools.removeInstance) * * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which instance_url is to be removed. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be removed. * @param Google_TargetPoolsRemoveInstanceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5378,20 +5192,19 @@ public function removeInstance($project, $region, $targetPool, Google_Service_Co $params = array_merge($params, $optParams); return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); } + /** * Changes backup pool configurations. (targetPools.setBackup) * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource for which the backup is to be set. + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource for which the + * backup is to be set. * @param Google_TargetReference $postBody * @param array $optParams Optional parameters. * - * @opt_param float failoverRatio - * New failoverRatio value for the containing target pool. + * @opt_param float failoverRatio New failoverRatio value for the containing + * target pool. * @return Google_Service_Compute_Operation */ public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) @@ -5416,10 +5229,8 @@ class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource /** * Deletes the specified UrlMap resource. (urlMaps.delete) * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -5429,13 +5240,12 @@ public function delete($project, $urlMap, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } + /** * Returns the specified UrlMap resource. (urlMaps.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to return. + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_UrlMap */ @@ -5445,12 +5255,12 @@ public function get($project, $urlMap, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); } + /** * Creates a UrlMap resource in the specified project using the data included in * the request. (urlMaps.insert) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5461,22 +5271,20 @@ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of UrlMap resources available to the specified project. * (urlMaps.listUrlMaps) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_UrlMapList */ public function listUrlMaps($project, $optParams = array()) @@ -5485,14 +5293,13 @@ public function listUrlMaps($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); } + /** * Update the entire content of the UrlMap resource. This method supports patch * semantics. (urlMaps.patch) * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to update. + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5503,13 +5310,12 @@ public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** * Update the entire content of the UrlMap resource. (urlMaps.update) * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to update. + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5520,15 +5326,14 @@ public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBod $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Compute_Operation"); } + /** * Run static validation for the UrlMap. In particular, the tests of the * provided UrlMap will be run. Calling this method does NOT create the UrlMap. * (urlMaps.validate) * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to be validated as. + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to be validated as. * @param Google_UrlMapsValidateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_UrlMapsValidateResponse @@ -5556,12 +5361,9 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * 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 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()) @@ -5570,16 +5372,14 @@ public function delete($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the specified zone-specific operation resource. * (zoneOperations.get) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $operation - * Name of the operation resource to return. + * @param 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 */ @@ -5589,24 +5389,21 @@ public function get($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -5631,10 +5428,8 @@ 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 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 */ @@ -5644,22 +5439,20 @@ public function get($project, $zone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Zone"); } + /** * Retrieves the list of zone resources available to the specified project. * (zones.listZones) * - * @param string $project - * Name of the project scoping this request. + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Compute_ZoneList */ public function listZones($project, $optParams = array()) @@ -5682,11 +5475,11 @@ class Google_Service_Compute_AccessConfig extends Google_Model public $natIP; public $type; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5695,7 +5488,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5704,7 +5496,6 @@ public function setNatIP($natIP) { $this->natIP = $natIP; } - public function getNatIP() { return $this->natIP; @@ -5713,12 +5504,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Compute_Address extends Google_Collection @@ -5737,11 +5526,11 @@ class Google_Service_Compute_Address extends Google_Collection public $status; public $users; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -5750,7 +5539,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -5759,7 +5547,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5768,7 +5555,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5777,7 +5563,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5786,7 +5571,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5795,7 +5579,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -5804,7 +5587,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5813,7 +5595,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -5822,12 +5603,10 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; } - } class Google_Service_Compute_AddressAggregatedList extends Google_Model @@ -5841,11 +5620,11 @@ class Google_Service_Compute_AddressAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5854,7 +5633,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5863,7 +5641,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5872,7 +5649,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5881,20 +5657,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_AddressAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_AddressList extends Google_Collection @@ -5909,11 +5679,11 @@ class Google_Service_Compute_AddressList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5922,7 +5692,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5931,7 +5700,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5940,7 +5708,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5949,12 +5716,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_AddressesScopedList extends Google_Collection @@ -5967,11 +5732,11 @@ class Google_Service_Compute_AddressesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; protected $warningDataType = ''; + public function setAddresses($addresses) { $this->addresses = $addresses; } - public function getAddresses() { return $this->addresses; @@ -5980,12 +5745,10 @@ public function setWarning(Google_Service_Compute_AddressesScopedListWarning $wa { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection @@ -5998,11 +5761,11 @@ class Google_Service_Compute_AddressesScopedListWarning extends Google_Collectio protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -6011,7 +5774,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -6020,12 +5782,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model @@ -6035,11 +5795,11 @@ class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -6048,12 +5808,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_AttachedDisk extends Google_Collection @@ -6074,11 +5832,11 @@ class Google_Service_Compute_AttachedDisk extends Google_Collection public $source; public $type; + public function setAutoDelete($autoDelete) { $this->autoDelete = $autoDelete; } - public function getAutoDelete() { return $this->autoDelete; @@ -6087,7 +5845,6 @@ public function setBoot($boot) { $this->boot = $boot; } - public function getBoot() { return $this->boot; @@ -6096,7 +5853,6 @@ public function setDeviceName($deviceName) { $this->deviceName = $deviceName; } - public function getDeviceName() { return $this->deviceName; @@ -6105,7 +5861,6 @@ public function setIndex($index) { $this->index = $index; } - public function getIndex() { return $this->index; @@ -6114,7 +5869,6 @@ public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializ { $this->initializeParams = $initializeParams; } - public function getInitializeParams() { return $this->initializeParams; @@ -6123,7 +5877,6 @@ public function setInterface($interface) { $this->interface = $interface; } - public function getInterface() { return $this->interface; @@ -6132,7 +5885,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6141,7 +5893,6 @@ public function setLicenses($licenses) { $this->licenses = $licenses; } - public function getLicenses() { return $this->licenses; @@ -6150,7 +5901,6 @@ public function setMode($mode) { $this->mode = $mode; } - public function getMode() { return $this->mode; @@ -6159,7 +5909,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -6168,12 +5917,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model @@ -6185,11 +5932,11 @@ class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model public $diskType; public $sourceImage; + public function setDiskName($diskName) { $this->diskName = $diskName; } - public function getDiskName() { return $this->diskName; @@ -6198,7 +5945,6 @@ public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; } - public function getDiskSizeGb() { return $this->diskSizeGb; @@ -6207,7 +5953,6 @@ public function setDiskType($diskType) { $this->diskType = $diskType; } - public function getDiskType() { return $this->diskType; @@ -6216,12 +5961,10 @@ public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; } - public function getSourceImage() { return $this->sourceImage; } - } class Google_Service_Compute_Backend extends Google_Model @@ -6236,11 +5979,11 @@ class Google_Service_Compute_Backend extends Google_Model public $maxRatePerInstance; public $maxUtilization; + public function setBalancingMode($balancingMode) { $this->balancingMode = $balancingMode; } - public function getBalancingMode() { return $this->balancingMode; @@ -6249,7 +5992,6 @@ public function setCapacityScaler($capacityScaler) { $this->capacityScaler = $capacityScaler; } - public function getCapacityScaler() { return $this->capacityScaler; @@ -6258,7 +6000,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6267,7 +6008,6 @@ public function setGroup($group) { $this->group = $group; } - public function getGroup() { return $this->group; @@ -6276,7 +6016,6 @@ public function setMaxRate($maxRate) { $this->maxRate = $maxRate; } - public function getMaxRate() { return $this->maxRate; @@ -6285,7 +6024,6 @@ public function setMaxRatePerInstance($maxRatePerInstance) { $this->maxRatePerInstance = $maxRatePerInstance; } - public function getMaxRatePerInstance() { return $this->maxRatePerInstance; @@ -6294,12 +6032,10 @@ public function setMaxUtilization($maxUtilization) { $this->maxUtilization = $maxUtilization; } - public function getMaxUtilization() { return $this->maxUtilization; } - } class Google_Service_Compute_BackendService extends Google_Collection @@ -6322,11 +6058,11 @@ class Google_Service_Compute_BackendService extends Google_Collection public $selfLink; public $timeoutSec; + public function setBackends($backends) { $this->backends = $backends; } - public function getBackends() { return $this->backends; @@ -6335,7 +6071,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -6344,7 +6079,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6353,7 +6087,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -6362,7 +6095,6 @@ public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; @@ -6371,7 +6103,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6380,7 +6111,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6389,7 +6119,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6398,7 +6127,6 @@ public function setPort($port) { $this->port = $port; } - public function getPort() { return $this->port; @@ -6407,7 +6135,6 @@ public function setPortName($portName) { $this->portName = $portName; } - public function getPortName() { return $this->portName; @@ -6416,7 +6143,6 @@ public function setProtocol($protocol) { $this->protocol = $protocol; } - public function getProtocol() { return $this->protocol; @@ -6425,7 +6151,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -6434,12 +6159,10 @@ public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; } - public function getTimeoutSec() { return $this->timeoutSec; } - } class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection @@ -6451,11 +6174,11 @@ class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection protected $healthStatusDataType = 'array'; public $kind; + public function setHealthStatus($healthStatus) { $this->healthStatus = $healthStatus; } - public function getHealthStatus() { return $this->healthStatus; @@ -6464,12 +6187,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Compute_BackendServiceList extends Google_Collection @@ -6484,11 +6205,11 @@ class Google_Service_Compute_BackendServiceList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6497,7 +6218,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6506,7 +6226,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6515,7 +6234,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6524,12 +6242,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_DeprecationStatus extends Google_Model @@ -6542,11 +6258,11 @@ class Google_Service_Compute_DeprecationStatus extends Google_Model public $replacement; public $state; + public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -6555,7 +6271,6 @@ public function setDeprecated($deprecated) { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -6564,7 +6279,6 @@ public function setObsolete($obsolete) { $this->obsolete = $obsolete; } - public function getObsolete() { return $this->obsolete; @@ -6573,7 +6287,6 @@ public function setReplacement($replacement) { $this->replacement = $replacement; } - public function getReplacement() { return $this->replacement; @@ -6582,12 +6295,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Compute_Disk extends Google_Collection @@ -6612,11 +6323,11 @@ class Google_Service_Compute_Disk extends Google_Collection public $type; public $zone; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -6625,7 +6336,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6634,7 +6344,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6643,7 +6352,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6652,7 +6360,6 @@ public function setLicenses($licenses) { $this->licenses = $licenses; } - public function getLicenses() { return $this->licenses; @@ -6661,7 +6368,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6670,7 +6376,6 @@ public function setOptions($options) { $this->options = $options; } - public function getOptions() { return $this->options; @@ -6679,7 +6384,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -6688,7 +6392,6 @@ public function setSizeGb($sizeGb) { $this->sizeGb = $sizeGb; } - public function getSizeGb() { return $this->sizeGb; @@ -6697,7 +6400,6 @@ public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; } - public function getSourceImage() { return $this->sourceImage; @@ -6706,7 +6408,6 @@ public function setSourceImageId($sourceImageId) { $this->sourceImageId = $sourceImageId; } - public function getSourceImageId() { return $this->sourceImageId; @@ -6715,7 +6416,6 @@ public function setSourceSnapshot($sourceSnapshot) { $this->sourceSnapshot = $sourceSnapshot; } - public function getSourceSnapshot() { return $this->sourceSnapshot; @@ -6724,7 +6424,6 @@ public function setSourceSnapshotId($sourceSnapshotId) { $this->sourceSnapshotId = $sourceSnapshotId; } - public function getSourceSnapshotId() { return $this->sourceSnapshotId; @@ -6733,7 +6432,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -6742,7 +6440,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -6751,12 +6448,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_DiskAggregatedList extends Google_Model @@ -6770,11 +6465,11 @@ class Google_Service_Compute_DiskAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6783,7 +6478,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6792,7 +6486,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6801,7 +6494,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6810,20 +6502,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_DiskAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_DiskList extends Google_Collection @@ -6838,11 +6524,11 @@ class Google_Service_Compute_DiskList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6851,7 +6537,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6860,7 +6545,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6869,7 +6553,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6878,12 +6561,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_DiskType extends Google_Model @@ -6902,11 +6583,11 @@ class Google_Service_Compute_DiskType extends Google_Model public $validDiskSize; public $zone; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -6915,7 +6596,6 @@ public function setDefaultDiskSizeGb($defaultDiskSizeGb) { $this->defaultDiskSizeGb = $defaultDiskSizeGb; } - public function getDefaultDiskSizeGb() { return $this->defaultDiskSizeGb; @@ -6924,7 +6604,6 @@ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecat { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -6933,7 +6612,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6942,7 +6620,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6951,7 +6628,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6960,7 +6636,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -6969,7 +6644,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -6978,7 +6652,6 @@ public function setValidDiskSize($validDiskSize) { $this->validDiskSize = $validDiskSize; } - public function getValidDiskSize() { return $this->validDiskSize; @@ -6987,12 +6660,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model @@ -7006,11 +6677,11 @@ class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7019,7 +6690,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7028,7 +6698,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7037,7 +6706,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7046,20 +6714,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_DiskTypeList extends Google_Collection @@ -7074,11 +6736,11 @@ class Google_Service_Compute_DiskTypeList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7087,7 +6749,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7096,7 +6757,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7105,7 +6765,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7114,12 +6773,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_DiskTypesScopedList extends Google_Collection @@ -7132,11 +6789,11 @@ class Google_Service_Compute_DiskTypesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; protected $warningDataType = ''; + public function setDiskTypes($diskTypes) { $this->diskTypes = $diskTypes; } - public function getDiskTypes() { return $this->diskTypes; @@ -7145,12 +6802,10 @@ public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $wa { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection @@ -7163,11 +6818,11 @@ class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collectio protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -7176,7 +6831,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7185,12 +6839,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model @@ -7200,11 +6852,11 @@ class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -7213,12 +6865,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_DisksScopedList extends Google_Collection @@ -7231,11 +6881,11 @@ class Google_Service_Compute_DisksScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; protected $warningDataType = ''; + public function setDisks($disks) { $this->disks = $disks; } - public function getDisks() { return $this->disks; @@ -7244,12 +6894,10 @@ public function setWarning(Google_Service_Compute_DisksScopedListWarning $warnin { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_DisksScopedListWarning extends Google_Collection @@ -7262,11 +6910,11 @@ class Google_Service_Compute_DisksScopedListWarning extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -7275,7 +6923,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7284,12 +6931,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_DisksScopedListWarningData extends Google_Model @@ -7299,11 +6944,11 @@ class Google_Service_Compute_DisksScopedListWarningData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -7312,12 +6957,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_Firewall extends Google_Collection @@ -7338,11 +6981,11 @@ class Google_Service_Compute_Firewall extends Google_Collection public $sourceTags; public $targetTags; + public function setAllowed($allowed) { $this->allowed = $allowed; } - public function getAllowed() { return $this->allowed; @@ -7351,7 +6994,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -7360,7 +7002,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7369,7 +7010,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7378,7 +7018,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7387,7 +7026,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -7396,7 +7034,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -7405,7 +7042,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -7414,7 +7050,6 @@ public function setSourceRanges($sourceRanges) { $this->sourceRanges = $sourceRanges; } - public function getSourceRanges() { return $this->sourceRanges; @@ -7423,7 +7058,6 @@ public function setSourceTags($sourceTags) { $this->sourceTags = $sourceTags; } - public function getSourceTags() { return $this->sourceTags; @@ -7432,12 +7066,10 @@ public function setTargetTags($targetTags) { $this->targetTags = $targetTags; } - public function getTargetTags() { return $this->targetTags; } - } class Google_Service_Compute_FirewallAllowed extends Google_Collection @@ -7449,11 +7081,11 @@ 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; @@ -7462,12 +7094,10 @@ public function setPorts($ports) { $this->ports = $ports; } - public function getPorts() { return $this->ports; } - } class Google_Service_Compute_FirewallList extends Google_Collection @@ -7482,11 +7112,11 @@ class Google_Service_Compute_FirewallList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7495,7 +7125,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7504,7 +7133,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7513,7 +7141,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7522,12 +7149,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ForwardingRule extends Google_Model @@ -7548,11 +7173,11 @@ class Google_Service_Compute_ForwardingRule extends Google_Model public $selfLink; public $target; + public function setIPAddress($iPAddress) { $this->iPAddress = $iPAddress; } - public function getIPAddress() { return $this->iPAddress; @@ -7561,7 +7186,6 @@ public function setIPProtocol($iPProtocol) { $this->iPProtocol = $iPProtocol; } - public function getIPProtocol() { return $this->iPProtocol; @@ -7570,7 +7194,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -7579,7 +7202,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7588,7 +7210,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7597,7 +7218,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7606,7 +7226,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -7615,7 +7234,6 @@ public function setPortRange($portRange) { $this->portRange = $portRange; } - public function getPortRange() { return $this->portRange; @@ -7624,7 +7242,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -7633,7 +7250,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -7642,12 +7258,10 @@ public function setTarget($target) { $this->target = $target; } - public function getTarget() { return $this->target; } - } class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model @@ -7661,11 +7275,11 @@ class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7674,7 +7288,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7683,7 +7296,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7692,7 +7304,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7701,20 +7312,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_ForwardingRuleList extends Google_Collection @@ -7729,11 +7334,11 @@ class Google_Service_Compute_ForwardingRuleList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7742,7 +7347,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7751,7 +7355,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7760,7 +7363,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7769,12 +7371,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection @@ -7787,11 +7387,11 @@ class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; protected $warningDataType = ''; + public function setForwardingRules($forwardingRules) { $this->forwardingRules = $forwardingRules; } - public function getForwardingRules() { return $this->forwardingRules; @@ -7800,12 +7400,10 @@ public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarni { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection @@ -7818,11 +7416,11 @@ class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Col protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -7831,7 +7429,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7840,12 +7437,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model @@ -7855,11 +7450,11 @@ class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -7868,12 +7463,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_HealthCheckReference extends Google_Model @@ -7882,16 +7475,15 @@ class Google_Service_Compute_HealthCheckReference extends Google_Model ); public $healthCheck; + public function setHealthCheck($healthCheck) { $this->healthCheck = $healthCheck; } - public function getHealthCheck() { return $this->healthCheck; } - } class Google_Service_Compute_HealthStatus extends Google_Model @@ -7903,11 +7495,11 @@ class Google_Service_Compute_HealthStatus extends Google_Model public $ipAddress; public $port; + public function setHealthState($healthState) { $this->healthState = $healthState; } - public function getHealthState() { return $this->healthState; @@ -7916,7 +7508,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -7925,7 +7516,6 @@ public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } - public function getIpAddress() { return $this->ipAddress; @@ -7934,12 +7524,10 @@ public function setPort($port) { $this->port = $port; } - public function getPort() { return $this->port; } - } class Google_Service_Compute_HostRule extends Google_Collection @@ -7951,11 +7539,11 @@ class Google_Service_Compute_HostRule extends Google_Collection public $hosts; public $pathMatcher; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7964,7 +7552,6 @@ public function setHosts($hosts) { $this->hosts = $hosts; } - public function getHosts() { return $this->hosts; @@ -7973,12 +7560,10 @@ public function setPathMatcher($pathMatcher) { $this->pathMatcher = $pathMatcher; } - public function getPathMatcher() { return $this->pathMatcher; } - } class Google_Service_Compute_HttpHealthCheck extends Google_Model @@ -7999,11 +7584,11 @@ class Google_Service_Compute_HttpHealthCheck extends Google_Model public $timeoutSec; public $unhealthyThreshold; + public function setCheckIntervalSec($checkIntervalSec) { $this->checkIntervalSec = $checkIntervalSec; } - public function getCheckIntervalSec() { return $this->checkIntervalSec; @@ -8012,7 +7597,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -8021,7 +7605,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8030,7 +7613,6 @@ public function setHealthyThreshold($healthyThreshold) { $this->healthyThreshold = $healthyThreshold; } - public function getHealthyThreshold() { return $this->healthyThreshold; @@ -8039,7 +7621,6 @@ public function setHost($host) { $this->host = $host; } - public function getHost() { return $this->host; @@ -8048,7 +7629,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8057,7 +7637,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8066,7 +7645,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8075,7 +7653,6 @@ public function setPort($port) { $this->port = $port; } - public function getPort() { return $this->port; @@ -8084,7 +7661,6 @@ public function setRequestPath($requestPath) { $this->requestPath = $requestPath; } - public function getRequestPath() { return $this->requestPath; @@ -8093,7 +7669,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -8102,7 +7677,6 @@ public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; } - public function getTimeoutSec() { return $this->timeoutSec; @@ -8111,12 +7685,10 @@ public function setUnhealthyThreshold($unhealthyThreshold) { $this->unhealthyThreshold = $unhealthyThreshold; } - public function getUnhealthyThreshold() { return $this->unhealthyThreshold; } - } class Google_Service_Compute_HttpHealthCheckList extends Google_Collection @@ -8131,11 +7703,11 @@ class Google_Service_Compute_HttpHealthCheckList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8144,7 +7716,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8153,7 +7724,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8162,7 +7732,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8171,12 +7740,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_Image extends Google_Collection @@ -8202,11 +7769,11 @@ class Google_Service_Compute_Image extends Google_Collection public $sourceType; public $status; + public function setArchiveSizeBytes($archiveSizeBytes) { $this->archiveSizeBytes = $archiveSizeBytes; } - public function getArchiveSizeBytes() { return $this->archiveSizeBytes; @@ -8215,7 +7782,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -8224,7 +7790,6 @@ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecat { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -8233,7 +7798,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8242,7 +7806,6 @@ public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; } - public function getDiskSizeGb() { return $this->diskSizeGb; @@ -8251,7 +7814,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8260,7 +7822,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8269,7 +7830,6 @@ public function setLicenses($licenses) { $this->licenses = $licenses; } - public function getLicenses() { return $this->licenses; @@ -8278,7 +7838,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8287,7 +7846,6 @@ public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) { $this->rawDisk = $rawDisk; } - public function getRawDisk() { return $this->rawDisk; @@ -8296,7 +7854,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -8305,7 +7862,6 @@ public function setSourceDisk($sourceDisk) { $this->sourceDisk = $sourceDisk; } - public function getSourceDisk() { return $this->sourceDisk; @@ -8314,7 +7870,6 @@ public function setSourceDiskId($sourceDiskId) { $this->sourceDiskId = $sourceDiskId; } - public function getSourceDiskId() { return $this->sourceDiskId; @@ -8323,7 +7878,6 @@ public function setSourceType($sourceType) { $this->sourceType = $sourceType; } - public function getSourceType() { return $this->sourceType; @@ -8332,12 +7886,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Compute_ImageList extends Google_Collection @@ -8352,11 +7904,11 @@ class Google_Service_Compute_ImageList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8365,7 +7917,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8374,7 +7925,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8383,7 +7933,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8392,12 +7941,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ImageRawDisk extends Google_Model @@ -8408,11 +7955,11 @@ class Google_Service_Compute_ImageRawDisk extends Google_Model public $sha1Checksum; public $source; + public function setContainerType($containerType) { $this->containerType = $containerType; } - public function getContainerType() { return $this->containerType; @@ -8421,7 +7968,6 @@ public function setSha1Checksum($sha1Checksum) { $this->sha1Checksum = $sha1Checksum; } - public function getSha1Checksum() { return $this->sha1Checksum; @@ -8430,12 +7976,10 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; } - } class Google_Service_Compute_Instance extends Google_Collection @@ -8467,11 +8011,11 @@ class Google_Service_Compute_Instance extends Google_Collection protected $tagsDataType = ''; public $zone; + public function setCanIpForward($canIpForward) { $this->canIpForward = $canIpForward; } - public function getCanIpForward() { return $this->canIpForward; @@ -8480,7 +8024,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -8489,7 +8032,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8498,7 +8040,6 @@ public function setDisks($disks) { $this->disks = $disks; } - public function getDisks() { return $this->disks; @@ -8507,7 +8048,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8516,7 +8056,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8525,7 +8064,6 @@ public function setMachineType($machineType) { $this->machineType = $machineType; } - public function getMachineType() { return $this->machineType; @@ -8534,7 +8072,6 @@ public function setMetadata(Google_Service_Compute_Metadata $metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -8543,7 +8080,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8552,7 +8088,6 @@ public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; } - public function getNetworkInterfaces() { return $this->networkInterfaces; @@ -8561,7 +8096,6 @@ public function setScheduling(Google_Service_Compute_Scheduling $scheduling) { $this->scheduling = $scheduling; } - public function getScheduling() { return $this->scheduling; @@ -8570,7 +8104,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -8579,7 +8112,6 @@ public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; } - public function getServiceAccounts() { return $this->serviceAccounts; @@ -8588,7 +8120,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -8597,7 +8128,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -8606,7 +8136,6 @@ public function setTags(Google_Service_Compute_Tags $tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -8615,12 +8144,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_InstanceAggregatedList extends Google_Model @@ -8634,11 +8161,11 @@ class Google_Service_Compute_InstanceAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8647,7 +8174,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8656,7 +8182,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8665,7 +8190,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8674,20 +8198,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_InstanceList extends Google_Collection @@ -8702,11 +8220,11 @@ class Google_Service_Compute_InstanceList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8715,7 +8233,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8724,7 +8241,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8733,7 +8249,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8742,12 +8257,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_InstanceProperties extends Google_Collection @@ -8771,11 +8284,11 @@ class Google_Service_Compute_InstanceProperties extends Google_Collection protected $tagsType = 'Google_Service_Compute_Tags'; protected $tagsDataType = ''; + public function setCanIpForward($canIpForward) { $this->canIpForward = $canIpForward; } - public function getCanIpForward() { return $this->canIpForward; @@ -8784,7 +8297,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8793,7 +8305,6 @@ public function setDisks($disks) { $this->disks = $disks; } - public function getDisks() { return $this->disks; @@ -8802,7 +8313,6 @@ public function setMachineType($machineType) { $this->machineType = $machineType; } - public function getMachineType() { return $this->machineType; @@ -8811,7 +8321,6 @@ public function setMetadata(Google_Service_Compute_Metadata $metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -8820,7 +8329,6 @@ public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; } - public function getNetworkInterfaces() { return $this->networkInterfaces; @@ -8829,7 +8337,6 @@ public function setScheduling(Google_Service_Compute_Scheduling $scheduling) { $this->scheduling = $scheduling; } - public function getScheduling() { return $this->scheduling; @@ -8838,7 +8345,6 @@ public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; } - public function getServiceAccounts() { return $this->serviceAccounts; @@ -8847,12 +8353,10 @@ public function setTags(Google_Service_Compute_Tags $tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; } - } class Google_Service_Compute_InstanceReference extends Google_Model @@ -8861,16 +8365,15 @@ class Google_Service_Compute_InstanceReference extends Google_Model ); public $instance; + public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; } - } class Google_Service_Compute_InstanceTemplate extends Google_Model @@ -8886,11 +8389,11 @@ class Google_Service_Compute_InstanceTemplate extends Google_Model protected $propertiesDataType = ''; public $selfLink; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -8899,7 +8402,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8908,7 +8410,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8917,7 +8418,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8926,7 +8426,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8935,7 +8434,6 @@ public function setProperties(Google_Service_Compute_InstanceProperties $propert { $this->properties = $properties; } - public function getProperties() { return $this->properties; @@ -8944,12 +8442,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_InstanceTemplateList extends Google_Collection @@ -8964,11 +8460,11 @@ class Google_Service_Compute_InstanceTemplateList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8977,7 +8473,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8986,7 +8481,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8995,7 +8489,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -9004,12 +8497,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_InstancesScopedList extends Google_Collection @@ -9022,11 +8513,11 @@ class Google_Service_Compute_InstancesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; protected $warningDataType = ''; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; @@ -9035,12 +8526,10 @@ public function setWarning(Google_Service_Compute_InstancesScopedListWarning $wa { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection @@ -9053,11 +8542,11 @@ class Google_Service_Compute_InstancesScopedListWarning extends Google_Collectio protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -9066,7 +8555,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -9075,12 +8563,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model @@ -9090,11 +8576,11 @@ class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -9103,12 +8589,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_License extends Google_Model @@ -9120,11 +8604,11 @@ class Google_Service_Compute_License extends Google_Model public $name; public $selfLink; + public function setChargesUseFee($chargesUseFee) { $this->chargesUseFee = $chargesUseFee; } - public function getChargesUseFee() { return $this->chargesUseFee; @@ -9133,7 +8617,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9142,7 +8625,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9151,12 +8633,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_MachineType extends Google_Collection @@ -9181,11 +8661,11 @@ class Google_Service_Compute_MachineType extends Google_Collection public $selfLink; public $zone; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -9194,7 +8674,6 @@ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecat { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -9203,7 +8682,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -9212,7 +8690,6 @@ public function setGuestCpus($guestCpus) { $this->guestCpus = $guestCpus; } - public function getGuestCpus() { return $this->guestCpus; @@ -9221,7 +8698,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9230,7 +8706,6 @@ public function setImageSpaceGb($imageSpaceGb) { $this->imageSpaceGb = $imageSpaceGb; } - public function getImageSpaceGb() { return $this->imageSpaceGb; @@ -9239,7 +8714,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9248,7 +8722,6 @@ public function setMaximumPersistentDisks($maximumPersistentDisks) { $this->maximumPersistentDisks = $maximumPersistentDisks; } - public function getMaximumPersistentDisks() { return $this->maximumPersistentDisks; @@ -9257,7 +8730,6 @@ public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) { $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; } - public function getMaximumPersistentDisksSizeGb() { return $this->maximumPersistentDisksSizeGb; @@ -9266,7 +8738,6 @@ public function setMemoryMb($memoryMb) { $this->memoryMb = $memoryMb; } - public function getMemoryMb() { return $this->memoryMb; @@ -9275,7 +8746,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9284,7 +8754,6 @@ public function setScratchDisks($scratchDisks) { $this->scratchDisks = $scratchDisks; } - public function getScratchDisks() { return $this->scratchDisks; @@ -9293,7 +8762,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -9302,12 +8770,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model @@ -9321,11 +8787,11 @@ class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9334,7 +8800,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9343,7 +8808,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9352,7 +8816,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -9361,20 +8824,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_MachineTypeList extends Google_Collection @@ -9389,11 +8846,11 @@ class Google_Service_Compute_MachineTypeList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9402,7 +8859,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9411,7 +8867,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9420,7 +8875,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -9429,12 +8883,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model @@ -9443,16 +8895,15 @@ class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model ); public $diskGb; + public function setDiskGb($diskGb) { $this->diskGb = $diskGb; } - public function getDiskGb() { return $this->diskGb; } - } class Google_Service_Compute_MachineTypesScopedList extends Google_Collection @@ -9465,11 +8916,11 @@ class Google_Service_Compute_MachineTypesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; protected $warningDataType = ''; + public function setMachineTypes($machineTypes) { $this->machineTypes = $machineTypes; } - public function getMachineTypes() { return $this->machineTypes; @@ -9478,12 +8929,10 @@ public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection @@ -9496,11 +8945,11 @@ class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collec protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -9509,7 +8958,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -9518,12 +8966,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model @@ -9533,11 +8979,11 @@ class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Mo public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -9546,12 +8992,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_Metadata extends Google_Collection @@ -9564,11 +9008,11 @@ class Google_Service_Compute_Metadata extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -9577,7 +9021,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9586,12 +9029,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Compute_MetadataItems extends Google_Model @@ -9601,11 +9042,11 @@ 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; @@ -9614,12 +9055,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_Network extends Google_Model @@ -9636,11 +9075,11 @@ class Google_Service_Compute_Network extends Google_Model public $name; public $selfLink; + public function setIPv4Range($iPv4Range) { $this->iPv4Range = $iPv4Range; } - public function getIPv4Range() { return $this->iPv4Range; @@ -9649,7 +9088,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -9658,7 +9096,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -9667,7 +9104,6 @@ public function setGatewayIPv4($gatewayIPv4) { $this->gatewayIPv4 = $gatewayIPv4; } - public function getGatewayIPv4() { return $this->gatewayIPv4; @@ -9676,7 +9112,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9685,7 +9120,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9694,7 +9128,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9703,12 +9136,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_NetworkInterface extends Google_Collection @@ -9722,11 +9153,11 @@ class Google_Service_Compute_NetworkInterface extends Google_Collection public $network; public $networkIP; + public function setAccessConfigs($accessConfigs) { $this->accessConfigs = $accessConfigs; } - public function getAccessConfigs() { return $this->accessConfigs; @@ -9735,7 +9166,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9744,7 +9174,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -9753,12 +9182,10 @@ public function setNetworkIP($networkIP) { $this->networkIP = $networkIP; } - public function getNetworkIP() { return $this->networkIP; } - } class Google_Service_Compute_NetworkList extends Google_Collection @@ -9773,11 +9200,11 @@ class Google_Service_Compute_NetworkList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9786,7 +9213,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9795,7 +9221,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9804,7 +9229,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -9813,12 +9237,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_Operation extends Google_Collection @@ -9851,11 +9273,11 @@ class Google_Service_Compute_Operation extends Google_Collection protected $warningsDataType = 'array'; public $zone; + public function setClientOperationId($clientOperationId) { $this->clientOperationId = $clientOperationId; } - public function getClientOperationId() { return $this->clientOperationId; @@ -9864,7 +9286,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -9873,7 +9294,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -9882,7 +9302,6 @@ public function setError(Google_Service_Compute_OperationError $error) { $this->error = $error; } - public function getError() { return $this->error; @@ -9891,7 +9310,6 @@ public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; } - public function getHttpErrorMessage() { return $this->httpErrorMessage; @@ -9900,7 +9318,6 @@ public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; @@ -9909,7 +9326,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9918,7 +9334,6 @@ public function setInsertTime($insertTime) { $this->insertTime = $insertTime; } - public function getInsertTime() { return $this->insertTime; @@ -9927,7 +9342,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9936,7 +9350,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9945,7 +9358,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -9954,7 +9366,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -9963,7 +9374,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -9972,7 +9382,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -9981,7 +9390,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -9990,7 +9398,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -9999,7 +9406,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -10008,7 +9414,6 @@ public function setTargetId($targetId) { $this->targetId = $targetId; } - public function getTargetId() { return $this->targetId; @@ -10017,7 +9422,6 @@ public function setTargetLink($targetLink) { $this->targetLink = $targetLink; } - public function getTargetLink() { return $this->targetLink; @@ -10026,7 +9430,6 @@ public function setUser($user) { $this->user = $user; } - public function getUser() { return $this->user; @@ -10035,7 +9438,6 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; @@ -10044,12 +9446,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_OperationAggregatedList extends Google_Model @@ -10063,11 +9463,11 @@ class Google_Service_Compute_OperationAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10076,7 +9476,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -10085,7 +9484,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10094,7 +9492,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -10103,20 +9500,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_OperationAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_OperationError extends Google_Collection @@ -10127,16 +9518,15 @@ class Google_Service_Compute_OperationError extends Google_Collection protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; protected $errorsDataType = 'array'; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Compute_OperationErrorErrors extends Google_Model @@ -10147,11 +9537,11 @@ class Google_Service_Compute_OperationErrorErrors extends Google_Model public $location; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -10160,7 +9550,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -10169,12 +9558,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_OperationList extends Google_Collection @@ -10189,11 +9576,11 @@ class Google_Service_Compute_OperationList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10202,7 +9589,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -10211,7 +9597,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10220,7 +9605,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -10229,12 +9613,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_OperationWarnings extends Google_Collection @@ -10247,11 +9629,11 @@ class Google_Service_Compute_OperationWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -10260,7 +9642,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -10269,12 +9650,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_OperationWarningsData extends Google_Model @@ -10284,11 +9663,11 @@ 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; @@ -10297,12 +9676,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_OperationsScopedList extends Google_Collection @@ -10315,11 +9692,11 @@ class Google_Service_Compute_OperationsScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; protected $warningDataType = ''; + public function setOperations($operations) { $this->operations = $operations; } - public function getOperations() { return $this->operations; @@ -10328,12 +9705,10 @@ public function setWarning(Google_Service_Compute_OperationsScopedListWarning $w { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection @@ -10346,11 +9721,11 @@ class Google_Service_Compute_OperationsScopedListWarning extends Google_Collecti protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -10359,7 +9734,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -10368,12 +9742,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model @@ -10383,11 +9755,11 @@ class Google_Service_Compute_OperationsScopedListWarningData extends Google_Mode public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -10396,12 +9768,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_PathMatcher extends Google_Collection @@ -10415,11 +9785,11 @@ class Google_Service_Compute_PathMatcher extends Google_Collection protected $pathRulesType = 'Google_Service_Compute_PathRule'; protected $pathRulesDataType = 'array'; + public function setDefaultService($defaultService) { $this->defaultService = $defaultService; } - public function getDefaultService() { return $this->defaultService; @@ -10428,7 +9798,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -10437,7 +9806,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -10446,12 +9814,10 @@ public function setPathRules($pathRules) { $this->pathRules = $pathRules; } - public function getPathRules() { return $this->pathRules; } - } class Google_Service_Compute_PathRule extends Google_Collection @@ -10462,11 +9828,11 @@ class Google_Service_Compute_PathRule extends Google_Collection public $paths; public $service; + public function setPaths($paths) { $this->paths = $paths; } - public function getPaths() { return $this->paths; @@ -10475,12 +9841,10 @@ public function setService($service) { $this->service = $service; } - public function getService() { return $this->service; } - } class Google_Service_Compute_Project extends Google_Collection @@ -10501,11 +9865,11 @@ class Google_Service_Compute_Project extends Google_Collection protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; protected $usageExportLocationDataType = ''; + public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) { $this->commonInstanceMetadata = $commonInstanceMetadata; } - public function getCommonInstanceMetadata() { return $this->commonInstanceMetadata; @@ -10514,7 +9878,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -10523,7 +9886,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -10532,7 +9894,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10541,7 +9902,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10550,7 +9910,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -10559,7 +9918,6 @@ public function setQuotas($quotas) { $this->quotas = $quotas; } - public function getQuotas() { return $this->quotas; @@ -10568,7 +9926,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -10577,12 +9934,10 @@ public function setUsageExportLocation(Google_Service_Compute_UsageExportLocatio { $this->usageExportLocation = $usageExportLocation; } - public function getUsageExportLocation() { return $this->usageExportLocation; } - } class Google_Service_Compute_Quota extends Google_Model @@ -10593,11 +9948,11 @@ class Google_Service_Compute_Quota extends Google_Model public $metric; public $usage; + public function setLimit($limit) { $this->limit = $limit; } - public function getLimit() { return $this->limit; @@ -10606,7 +9961,6 @@ public function setMetric($metric) { $this->metric = $metric; } - public function getMetric() { return $this->metric; @@ -10615,12 +9969,10 @@ public function setUsage($usage) { $this->usage = $usage; } - public function getUsage() { return $this->usage; } - } class Google_Service_Compute_Region extends Google_Collection @@ -10641,11 +9993,11 @@ class Google_Service_Compute_Region extends Google_Collection public $status; public $zones; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -10654,7 +10006,6 @@ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecat { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -10663,7 +10014,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -10672,7 +10022,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10681,7 +10030,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10690,7 +10038,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -10699,7 +10046,6 @@ public function setQuotas($quotas) { $this->quotas = $quotas; } - public function getQuotas() { return $this->quotas; @@ -10708,7 +10054,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -10717,7 +10062,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -10726,12 +10070,10 @@ public function setZones($zones) { $this->zones = $zones; } - public function getZones() { return $this->zones; } - } class Google_Service_Compute_RegionList extends Google_Collection @@ -10746,11 +10088,11 @@ class Google_Service_Compute_RegionList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10759,7 +10101,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -10768,7 +10109,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10777,7 +10117,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -10786,12 +10125,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ResourceGroupReference extends Google_Model @@ -10800,16 +10137,15 @@ class Google_Service_Compute_ResourceGroupReference extends Google_Model ); public $group; + public function setGroup($group) { $this->group = $group; } - public function getGroup() { return $this->group; } - } class Google_Service_Compute_Route extends Google_Collection @@ -10834,11 +10170,11 @@ class Google_Service_Compute_Route extends Google_Collection protected $warningsType = 'Google_Service_Compute_RouteWarnings'; protected $warningsDataType = 'array'; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -10847,7 +10183,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -10856,7 +10191,6 @@ public function setDestRange($destRange) { $this->destRange = $destRange; } - public function getDestRange() { return $this->destRange; @@ -10865,7 +10199,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10874,7 +10207,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10883,7 +10215,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -10892,7 +10223,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -10901,7 +10231,6 @@ public function setNextHopGateway($nextHopGateway) { $this->nextHopGateway = $nextHopGateway; } - public function getNextHopGateway() { return $this->nextHopGateway; @@ -10910,7 +10239,6 @@ public function setNextHopInstance($nextHopInstance) { $this->nextHopInstance = $nextHopInstance; } - public function getNextHopInstance() { return $this->nextHopInstance; @@ -10919,7 +10247,6 @@ public function setNextHopIp($nextHopIp) { $this->nextHopIp = $nextHopIp; } - public function getNextHopIp() { return $this->nextHopIp; @@ -10928,7 +10255,6 @@ public function setNextHopNetwork($nextHopNetwork) { $this->nextHopNetwork = $nextHopNetwork; } - public function getNextHopNetwork() { return $this->nextHopNetwork; @@ -10937,7 +10263,6 @@ public function setPriority($priority) { $this->priority = $priority; } - public function getPriority() { return $this->priority; @@ -10946,7 +10271,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -10955,7 +10279,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -10964,12 +10287,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_Compute_RouteList extends Google_Collection @@ -10984,11 +10305,11 @@ class Google_Service_Compute_RouteList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -10997,7 +10318,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -11006,7 +10326,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11015,7 +10334,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -11024,12 +10342,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_RouteWarnings extends Google_Collection @@ -11042,11 +10358,11 @@ class Google_Service_Compute_RouteWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -11055,7 +10371,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -11064,12 +10379,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_RouteWarningsData extends Google_Model @@ -11079,11 +10392,11 @@ class Google_Service_Compute_RouteWarningsData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -11092,12 +10405,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_Scheduling extends Google_Model @@ -11107,11 +10418,11 @@ class Google_Service_Compute_Scheduling extends Google_Model public $automaticRestart; public $onHostMaintenance; + public function setAutomaticRestart($automaticRestart) { $this->automaticRestart = $automaticRestart; } - public function getAutomaticRestart() { return $this->automaticRestart; @@ -11120,12 +10431,10 @@ public function setOnHostMaintenance($onHostMaintenance) { $this->onHostMaintenance = $onHostMaintenance; } - public function getOnHostMaintenance() { return $this->onHostMaintenance; } - } class Google_Service_Compute_SerialPortOutput extends Google_Model @@ -11136,11 +10445,11 @@ class Google_Service_Compute_SerialPortOutput extends Google_Model public $kind; public $selfLink; + public function setContents($contents) { $this->contents = $contents; } - public function getContents() { return $this->contents; @@ -11149,7 +10458,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11158,12 +10466,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ServiceAccount extends Google_Collection @@ -11174,11 +10480,11 @@ 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; @@ -11187,12 +10493,10 @@ public function setScopes($scopes) { $this->scopes = $scopes; } - public function getScopes() { return $this->scopes; } - } class Google_Service_Compute_Snapshot extends Google_Collection @@ -11214,11 +10518,11 @@ class Google_Service_Compute_Snapshot extends Google_Collection public $storageBytes; public $storageBytesStatus; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -11227,7 +10531,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -11236,7 +10539,6 @@ public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; } - public function getDiskSizeGb() { return $this->diskSizeGb; @@ -11245,7 +10547,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11254,7 +10555,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11263,7 +10563,6 @@ public function setLicenses($licenses) { $this->licenses = $licenses; } - public function getLicenses() { return $this->licenses; @@ -11272,7 +10571,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -11281,7 +10579,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -11290,7 +10587,6 @@ public function setSourceDisk($sourceDisk) { $this->sourceDisk = $sourceDisk; } - public function getSourceDisk() { return $this->sourceDisk; @@ -11299,7 +10595,6 @@ public function setSourceDiskId($sourceDiskId) { $this->sourceDiskId = $sourceDiskId; } - public function getSourceDiskId() { return $this->sourceDiskId; @@ -11308,7 +10603,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -11317,7 +10611,6 @@ public function setStorageBytes($storageBytes) { $this->storageBytes = $storageBytes; } - public function getStorageBytes() { return $this->storageBytes; @@ -11326,12 +10619,10 @@ public function setStorageBytesStatus($storageBytesStatus) { $this->storageBytesStatus = $storageBytesStatus; } - public function getStorageBytesStatus() { return $this->storageBytesStatus; } - } class Google_Service_Compute_SnapshotList extends Google_Collection @@ -11346,11 +10637,11 @@ class Google_Service_Compute_SnapshotList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11359,7 +10650,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -11368,7 +10658,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11377,7 +10666,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -11386,12 +10674,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_Tags extends Google_Collection @@ -11402,11 +10688,11 @@ 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; @@ -11415,12 +10701,10 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; } - } class Google_Service_Compute_TargetHttpProxy extends Google_Model @@ -11435,11 +10719,11 @@ class Google_Service_Compute_TargetHttpProxy extends Google_Model public $selfLink; public $urlMap; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -11448,7 +10732,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -11457,7 +10740,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11466,7 +10748,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11475,7 +10756,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -11484,7 +10764,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -11493,12 +10772,10 @@ public function setUrlMap($urlMap) { $this->urlMap = $urlMap; } - public function getUrlMap() { return $this->urlMap; } - } class Google_Service_Compute_TargetHttpProxyList extends Google_Collection @@ -11513,11 +10790,11 @@ class Google_Service_Compute_TargetHttpProxyList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11526,7 +10803,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -11535,7 +10811,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11544,7 +10819,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -11553,12 +10827,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_TargetInstance extends Google_Model @@ -11575,11 +10847,11 @@ class Google_Service_Compute_TargetInstance extends Google_Model public $selfLink; public $zone; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -11588,7 +10860,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -11597,7 +10868,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11606,7 +10876,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -11615,7 +10884,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11624,7 +10892,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -11633,7 +10900,6 @@ public function setNatPolicy($natPolicy) { $this->natPolicy = $natPolicy; } - public function getNatPolicy() { return $this->natPolicy; @@ -11642,7 +10908,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -11651,12 +10916,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model @@ -11670,11 +10933,11 @@ class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11683,7 +10946,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -11692,7 +10954,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11701,7 +10962,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -11710,20 +10970,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_TargetInstanceList extends Google_Collection @@ -11738,11 +10992,11 @@ class Google_Service_Compute_TargetInstanceList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11751,7 +11005,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -11760,7 +11013,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11769,7 +11021,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -11778,12 +11029,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection @@ -11796,11 +11045,11 @@ class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; protected $warningDataType = ''; + public function setTargetInstances($targetInstances) { $this->targetInstances = $targetInstances; } - public function getTargetInstances() { return $this->targetInstances; @@ -11809,12 +11058,10 @@ public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarni { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection @@ -11827,11 +11074,11 @@ class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Col protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -11840,7 +11087,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -11849,12 +11095,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model @@ -11864,11 +11108,11 @@ class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -11877,12 +11121,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_TargetPool extends Google_Collection @@ -11903,11 +11145,11 @@ class Google_Service_Compute_TargetPool extends Google_Collection public $selfLink; public $sessionAffinity; + public function setBackupPool($backupPool) { $this->backupPool = $backupPool; } - public function getBackupPool() { return $this->backupPool; @@ -11916,7 +11158,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -11925,7 +11166,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -11934,7 +11174,6 @@ public function setFailoverRatio($failoverRatio) { $this->failoverRatio = $failoverRatio; } - public function getFailoverRatio() { return $this->failoverRatio; @@ -11943,7 +11182,6 @@ public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; @@ -11952,7 +11190,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -11961,7 +11198,6 @@ public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; @@ -11970,7 +11206,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -11979,7 +11214,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -11988,7 +11222,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -11997,7 +11230,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -12006,12 +11238,10 @@ public function setSessionAffinity($sessionAffinity) { $this->sessionAffinity = $sessionAffinity; } - public function getSessionAffinity() { return $this->sessionAffinity; } - } class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model @@ -12025,11 +11255,11 @@ class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12038,7 +11268,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -12047,7 +11276,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12056,7 +11284,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -12065,20 +11292,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection @@ -12090,11 +11311,11 @@ class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection protected $healthStatusDataType = 'array'; public $kind; + public function setHealthStatus($healthStatus) { $this->healthStatus = $healthStatus; } - public function getHealthStatus() { return $this->healthStatus; @@ -12103,12 +11324,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Compute_TargetPoolList extends Google_Collection @@ -12123,11 +11342,11 @@ class Google_Service_Compute_TargetPoolList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12136,7 +11355,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -12145,7 +11363,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12154,7 +11371,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -12163,12 +11379,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection @@ -12179,16 +11393,15 @@ class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Col protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; + public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; } - } class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection @@ -12199,16 +11412,15 @@ class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collec protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; } - } class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection @@ -12219,16 +11431,15 @@ class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_ protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; protected $healthChecksDataType = 'array'; + public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; } - } class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection @@ -12239,16 +11450,15 @@ class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Col protected $instancesType = 'Google_Service_Compute_InstanceReference'; protected $instancesDataType = 'array'; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; } - } class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection @@ -12261,11 +11471,11 @@ class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; protected $warningDataType = ''; + public function setTargetPools($targetPools) { $this->targetPools = $targetPools; } - public function getTargetPools() { return $this->targetPools; @@ -12274,12 +11484,10 @@ public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $ { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection @@ -12292,11 +11500,11 @@ class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collect protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -12305,7 +11513,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -12314,12 +11521,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model @@ -12329,11 +11534,11 @@ class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Mod public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -12342,12 +11547,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Compute_TargetReference extends Google_Model @@ -12356,16 +11559,15 @@ class Google_Service_Compute_TargetReference extends Google_Model ); public $target; + public function setTarget($target) { $this->target = $target; } - public function getTarget() { return $this->target; } - } class Google_Service_Compute_TestFailure extends Google_Model @@ -12377,11 +11579,11 @@ class Google_Service_Compute_TestFailure extends Google_Model public $host; public $path; + public function setActualService($actualService) { $this->actualService = $actualService; } - public function getActualService() { return $this->actualService; @@ -12390,7 +11592,6 @@ public function setExpectedService($expectedService) { $this->expectedService = $expectedService; } - public function getExpectedService() { return $this->expectedService; @@ -12399,7 +11600,6 @@ public function setHost($host) { $this->host = $host; } - public function getHost() { return $this->host; @@ -12408,12 +11608,10 @@ public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; } - } class Google_Service_Compute_UrlMap extends Google_Collection @@ -12436,11 +11634,11 @@ class Google_Service_Compute_UrlMap extends Google_Collection protected $testsType = 'Google_Service_Compute_UrlMapTest'; protected $testsDataType = 'array'; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -12449,7 +11647,6 @@ public function setDefaultService($defaultService) { $this->defaultService = $defaultService; } - public function getDefaultService() { return $this->defaultService; @@ -12458,7 +11655,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -12467,7 +11663,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -12476,7 +11671,6 @@ public function setHostRules($hostRules) { $this->hostRules = $hostRules; } - public function getHostRules() { return $this->hostRules; @@ -12485,7 +11679,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12494,7 +11687,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12503,7 +11695,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -12512,7 +11703,6 @@ public function setPathMatchers($pathMatchers) { $this->pathMatchers = $pathMatchers; } - public function getPathMatchers() { return $this->pathMatchers; @@ -12521,7 +11711,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -12530,12 +11719,10 @@ public function setTests($tests) { $this->tests = $tests; } - public function getTests() { return $this->tests; } - } class Google_Service_Compute_UrlMapList extends Google_Collection @@ -12550,11 +11737,11 @@ class Google_Service_Compute_UrlMapList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12563,7 +11750,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -12572,7 +11758,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12581,7 +11766,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -12590,12 +11774,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_UrlMapReference extends Google_Model @@ -12604,16 +11786,15 @@ class Google_Service_Compute_UrlMapReference extends Google_Model ); public $urlMap; + public function setUrlMap($urlMap) { $this->urlMap = $urlMap; } - public function getUrlMap() { return $this->urlMap; } - } class Google_Service_Compute_UrlMapTest extends Google_Model @@ -12625,11 +11806,11 @@ class Google_Service_Compute_UrlMapTest extends Google_Model public $path; public $service; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -12638,7 +11819,6 @@ public function setHost($host) { $this->host = $host; } - public function getHost() { return $this->host; @@ -12647,7 +11827,6 @@ public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; @@ -12656,12 +11835,10 @@ public function setService($service) { $this->service = $service; } - public function getService() { return $this->service; } - } class Google_Service_Compute_UrlMapValidationResult extends Google_Collection @@ -12675,11 +11852,11 @@ class Google_Service_Compute_UrlMapValidationResult extends Google_Collection protected $testFailuresDataType = 'array'; public $testPassed; + public function setLoadErrors($loadErrors) { $this->loadErrors = $loadErrors; } - public function getLoadErrors() { return $this->loadErrors; @@ -12688,7 +11865,6 @@ public function setLoadSucceeded($loadSucceeded) { $this->loadSucceeded = $loadSucceeded; } - public function getLoadSucceeded() { return $this->loadSucceeded; @@ -12697,7 +11873,6 @@ public function setTestFailures($testFailures) { $this->testFailures = $testFailures; } - public function getTestFailures() { return $this->testFailures; @@ -12706,12 +11881,10 @@ public function setTestPassed($testPassed) { $this->testPassed = $testPassed; } - public function getTestPassed() { return $this->testPassed; } - } class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model @@ -12721,16 +11894,15 @@ class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model protected $resourceType = 'Google_Service_Compute_UrlMap'; protected $resourceDataType = ''; + public function setResource(Google_Service_Compute_UrlMap $resource) { $this->resource = $resource; } - public function getResource() { return $this->resource; } - } class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model @@ -12740,16 +11912,15 @@ class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; protected $resultDataType = ''; + public function setResult(Google_Service_Compute_UrlMapValidationResult $result) { $this->result = $result; } - public function getResult() { return $this->result; } - } class Google_Service_Compute_UsageExportLocation extends Google_Model @@ -12759,11 +11930,11 @@ class Google_Service_Compute_UsageExportLocation extends Google_Model public $bucketName; public $reportNamePrefix; + public function setBucketName($bucketName) { $this->bucketName = $bucketName; } - public function getBucketName() { return $this->bucketName; @@ -12772,12 +11943,10 @@ public function setReportNamePrefix($reportNamePrefix) { $this->reportNamePrefix = $reportNamePrefix; } - public function getReportNamePrefix() { return $this->reportNamePrefix; } - } class Google_Service_Compute_Zone extends Google_Collection @@ -12798,11 +11967,11 @@ class Google_Service_Compute_Zone extends Google_Collection public $selfLink; public $status; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -12811,7 +11980,6 @@ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecat { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -12820,7 +11988,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -12829,7 +11996,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12838,7 +12004,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12847,7 +12012,6 @@ public function setMaintenanceWindows($maintenanceWindows) { $this->maintenanceWindows = $maintenanceWindows; } - public function getMaintenanceWindows() { return $this->maintenanceWindows; @@ -12856,7 +12020,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -12865,7 +12028,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -12874,7 +12036,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -12883,12 +12044,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Compute_ZoneList extends Google_Collection @@ -12903,11 +12062,11 @@ class Google_Service_Compute_ZoneList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -12916,7 +12075,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -12925,7 +12083,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -12934,7 +12091,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -12943,12 +12099,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model @@ -12960,11 +12114,11 @@ class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model public $endTime; public $name; + public function setBeginTime($beginTime) { $this->beginTime = $beginTime; } - public function getBeginTime() { return $this->beginTime; @@ -12973,7 +12127,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -12982,7 +12135,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -12991,10 +12143,8 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } From 2398eaf0b03a65868c24aa6d61b67df2e3cfef9a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:30 -0800 Subject: [PATCH 0450/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 730 ++++++++++++--------------------- 1 file changed, 266 insertions(+), 464 deletions(-) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index b7d4c10d3..61eacf9d3 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -19,8 +19,7 @@ * Service definition for Blogger (v3). * *

- * API for access to the data within Blogger. - *

+ * API for access to the data within Blogger.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Blogger extends Google_Service { /** Manage your Blogger account. */ - const BLOGGER = "https://www.googleapis.com/auth/blogger"; + const BLOGGER = + "https://www.googleapis.com/auth/blogger"; /** View your Blogger account. */ - const BLOGGER_READONLY = "https://www.googleapis.com/auth/blogger.readonly"; + const BLOGGER_READONLY = + "https://www.googleapis.com/auth/blogger.readonly"; public $blogUserInfos; public $blogs; @@ -930,15 +931,13 @@ class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resou /** * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. - * @param string $blogId - * The ID of the blog to get. + * @param string $userId ID of the user whose blogs are to be fetched. Either + * the word 'self' (sans quote marks) or the user's profile identifier. + * @param string $blogId The ID of the blog to get. * @param array $optParams Optional parameters. * - * @opt_param string maxPosts - * Maximum number of posts to pull back with the blog. + * @opt_param string maxPosts Maximum number of posts to pull back with the + * blog. * @return Google_Service_Blogger_BlogUserInfo */ public function get($userId, $blogId, $optParams = array()) @@ -963,14 +962,13 @@ 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 string $blogId The ID of the blog to get. * @param array $optParams Optional parameters. * - * @opt_param string maxPosts - * Maximum number of posts to pull back with the blog. - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. + * @opt_param string maxPosts Maximum number of posts to pull back with the + * blog. + * @opt_param string view Access level with which to view the blog. Note that + * some fields require elevated access. * @return Google_Service_Blogger_Blog */ public function get($blogId, $optParams = array()) @@ -979,15 +977,15 @@ public function get($blogId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_Blog"); } + /** * Retrieve a Blog by URL. (blogs.getByUrl) * - * @param string $url - * The URL of the blog to retrieve. + * @param string $url The URL of the blog to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. + * @opt_param string view Access level with which to view the blog. Note that + * some fields require elevated access. * @return Google_Service_Blogger_Blog */ public function getByUrl($url, $optParams = array()) @@ -996,24 +994,23 @@ public function getByUrl($url, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); } + /** * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. + * @param string $userId ID of the user whose blogs are to be fetched. Either + * the word 'self' (sans quote marks) or the user's profile identifier. * @param array $optParams Optional parameters. * - * @opt_param bool fetchUserInfo - * Whether the response is a list of blogs with per-user information instead of just blogs. - * @opt_param string status - * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is - * required to view deleted blogs. - * @opt_param string role - * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the - * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. - * @opt_param string view - * Access level with which to view the blogs. Note that some fields require elevated access. + * @opt_param bool fetchUserInfo Whether the response is a list of blogs with + * per-user information instead of just blogs. + * @opt_param string status Blog statuses to include in the result (default: + * Live blogs only). Note that ADMIN access is required to view deleted blogs. + * @opt_param string role User access types for blogs to include in the results, + * e.g. AUTHOR will return blogs where the user has author level access. If no + * roles are specified, defaults to ADMIN and AUTHOR roles. + * @opt_param string view Access level with which to view the blogs. Note that + * some fields require elevated access. * @return Google_Service_Blogger_BlogList */ public function listByUser($userId, $optParams = array()) @@ -1038,12 +1035,9 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource /** * Marks a comment as not spam. (comments.approve) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as not spam. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. + * @param string $commentId The ID of the comment to mark as not spam. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Comment */ @@ -1053,15 +1047,13 @@ public function approve($blogId, $postId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); } + /** * Delete a comment by ID. (comments.delete) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. + * @param string $commentId The ID of the comment to delete. * @param array $optParams Optional parameters. */ public function delete($blogId, $postId, $commentId, $optParams = array()) @@ -1070,21 +1062,19 @@ public function delete($blogId, $postId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets one comment by ID. (comments.get) * - * @param string $blogId - * ID of the blog to containing the comment. - * @param string $postId - * ID of the post to fetch posts from. - * @param string $commentId - * The ID of the comment to get. + * @param string $blogId ID of the blog to containing the comment. + * @param string $postId ID of the post to fetch posts from. + * @param string $commentId The ID of the comment to get. * @param array $optParams Optional parameters. * - * @opt_param string view - * Access level for the requested comment (default: READER). Note that some comments will require - * elevated permissions, for example comments where the parent posts which is in a draft state, or - * comments that are pending moderation. + * @opt_param string view Access level for the requested comment (default: + * READER). Note that some comments will require elevated permissions, for + * example comments where the parent posts which is in a draft state, or + * comments that are pending moderation. * @return Google_Service_Blogger_Comment */ public function get($blogId, $postId, $commentId, $optParams = array()) @@ -1093,30 +1083,26 @@ public function get($blogId, $postId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_Comment"); } + /** * Retrieves the comments for a post, possibly filtered. (comments.listComments) * - * @param string $blogId - * ID of the blog to fetch comments from. - * @param string $postId - * ID of the post to fetch posts from. + * @param string $blogId ID of the blog to fetch comments from. + * @param string $postId ID of the post to fetch posts from. * @param array $optParams Optional parameters. * * @opt_param string status - * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. + * @opt_param string startDate Earliest date of comment to fetch, a date-time + * with RFC 3339 formatting. + * @opt_param string endDate Latest date of comment to fetch, a date-time with + * RFC 3339 formatting. + * @opt_param string maxResults Maximum number of comments to include in the + * result. + * @opt_param string pageToken Continuation token if request is paged. + * @opt_param bool fetchBodies Whether the body content of the comments is + * included. + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require elevated access. * @return Google_Service_Blogger_CommentList */ public function listComments($blogId, $postId, $optParams = array()) @@ -1125,24 +1111,23 @@ public function listComments($blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); } + /** * Retrieves the comments for a blog, across all posts, possibly filtered. * (comments.listByBlog) * - * @param string $blogId - * ID of the blog to fetch comments from. + * @param string $blogId ID of the blog to fetch comments from. * @param array $optParams Optional parameters. * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. + * @opt_param string startDate Earliest date of comment to fetch, a date-time + * with RFC 3339 formatting. + * @opt_param string endDate Latest date of comment to fetch, a date-time with + * RFC 3339 formatting. + * @opt_param string maxResults Maximum number of comments to include in the + * result. + * @opt_param string pageToken Continuation token if request is paged. + * @opt_param bool fetchBodies Whether the body content of the comments is + * included. * @return Google_Service_Blogger_CommentList */ public function listByBlog($blogId, $optParams = array()) @@ -1151,15 +1136,13 @@ public function listByBlog($blogId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); } + /** * Marks a comment as spam. (comments.markAsSpam) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as spam. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. + * @param string $commentId The ID of the comment to mark as spam. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Comment */ @@ -1169,15 +1152,13 @@ public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); } + /** * Removes the content of a comment. (comments.removeContent) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete content from. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. + * @param string $commentId The ID of the comment to delete content from. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Comment */ @@ -1203,12 +1184,10 @@ class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource /** * Retrieve pageview stats for a Blog. (pageViews.get) * - * @param string $blogId - * The ID of the blog to get. + * @param string $blogId The ID of the blog to get. * @param array $optParams Optional parameters. * * @opt_param string range - * * @return Google_Service_Blogger_Pageviews */ public function get($blogId, $optParams = array()) @@ -1233,10 +1212,8 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource /** * Delete a page by ID. (pages.delete) * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. + * @param string $blogId The ID of the Blog. + * @param string $pageId The ID of the Page. * @param array $optParams Optional parameters. */ public function delete($blogId, $pageId, $optParams = array()) @@ -1245,17 +1222,15 @@ public function delete($blogId, $pageId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets one blog page by ID. (pages.get) * - * @param string $blogId - * ID of the blog containing the page. - * @param string $pageId - * The ID of the page to get. + * @param string $blogId ID of the blog containing the page. + * @param string $pageId The ID of the page to get. * @param array $optParams Optional parameters. * * @opt_param string view - * * @return Google_Service_Blogger_Page */ public function get($blogId, $pageId, $optParams = array()) @@ -1264,16 +1239,16 @@ public function get($blogId, $pageId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_Page"); } + /** * Add a page. (pages.insert) * - * @param string $blogId - * ID of the blog to add the page to. + * @param string $blogId ID of the blog to add the page to. * @param Google_Page $postBody * @param array $optParams Optional parameters. * - * @opt_param bool isDraft - * Whether to create the page as a draft (default: false). + * @opt_param bool isDraft Whether to create the page as a draft (default: + * false). * @return Google_Service_Blogger_Page */ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1282,21 +1257,18 @@ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Blogger_Page"); } + /** * Retrieves the pages for a blog, optionally including non-LIVE statuses. * (pages.listPages) * - * @param string $blogId - * ID of the blog to fetch pages from. + * @param string $blogId ID of the blog to fetch pages from. * @param array $optParams Optional parameters. * * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether to retrieve the Page bodies. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. + * @opt_param bool fetchBodies Whether to retrieve the Page bodies. + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require elevated access. * @return Google_Service_Blogger_PageList */ public function listPages($blogId, $optParams = array()) @@ -1305,20 +1277,19 @@ public function listPages($blogId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Blogger_PageList"); } + /** * Update a page. This method supports patch semantics. (pages.patch) * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. + * @param string $blogId The ID of the Blog. + * @param string $pageId The ID of the Page. * @param Google_Page $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * page is updated (default: false). + * @opt_param bool publish Whether a publish action should be performed when the + * page is updated (default: false). * @return Google_Service_Blogger_Page */ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1327,13 +1298,12 @@ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Blogger_Page"); } + /** * Publishes a draft page. (pages.publish) * - * @param string $blogId - * The ID of the blog. - * @param string $pageId - * The ID of the page. + * @param string $blogId The ID of the blog. + * @param string $pageId The ID of the page. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Page */ @@ -1343,13 +1313,12 @@ public function publish($blogId, $pageId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_Blogger_Page"); } + /** * Revert a published or scheduled page to draft state. (pages.revert) * - * @param string $blogId - * The ID of the blog. - * @param string $pageId - * The ID of the page. + * @param string $blogId The ID of the blog. + * @param string $pageId The ID of the page. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Page */ @@ -1359,20 +1328,19 @@ public function revert($blogId, $pageId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('revert', array($params), "Google_Service_Blogger_Page"); } + /** * Update a page. (pages.update) * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. + * @param string $blogId The ID of the Blog. + * @param string $pageId The ID of the Page. * @param Google_Page $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * page is updated (default: false). + * @opt_param bool publish Whether a publish action should be performed when the + * page is updated (default: false). * @return Google_Service_Blogger_Page */ public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1399,17 +1367,15 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou * contains per-user information about the post, such as access rights, specific * to the user. (postUserInfos.get) * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * The ID of the blog. - * @param string $postId - * The ID of the post to get. + * @param string $userId ID of the user for the per-user information to be + * fetched. Either the word 'self' (sans quote marks) or the user's profile + * identifier. + * @param string $blogId The ID of the blog. + * @param string $postId The ID of the post to get. * @param array $optParams Optional parameters. * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. + * @opt_param string maxComments Maximum number of comments to pull back on a + * post. * @return Google_Service_Blogger_PostUserInfo */ public function get($userId, $blogId, $postId, $optParams = array()) @@ -1418,37 +1384,32 @@ public function get($userId, $blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); } + /** * Retrieves a list of post and post user info pairs, possibly filtered. The * post user info contains per-user information about the post, such as access * rights, specific to the user. (postUserInfos.listPostUserInfos) * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * ID of the blog to fetch posts from. + * @param string $userId ID of the user for the per-user information to be + * fetched. Either the word 'self' (sans quote marks) or the user's profile + * identifier. + * @param string $blogId ID of the blog to fetch posts from. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Sort order applied to search results. Default is published. - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param string pageToken - * Continuation token if the request is paged. + * @opt_param string orderBy Sort order applied to search results. Default is + * published. + * @opt_param string startDate Earliest post date to fetch, a date-time with RFC + * 3339 formatting. + * @opt_param string endDate Latest post date to fetch, a date-time with RFC + * 3339 formatting. + * @opt_param string labels Comma-separated list of labels to search for. + * @opt_param string maxResults Maximum number of posts to fetch. + * @opt_param string pageToken Continuation token if the request is paged. * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether the body content of posts is included. Default is false. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. + * @opt_param bool fetchBodies Whether the body content of posts is included. + * Default is false. + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require elevated access. * @return Google_Service_Blogger_PostUserInfosList */ public function listPostUserInfos($userId, $blogId, $optParams = array()) @@ -1473,10 +1434,8 @@ 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 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()) @@ -1485,25 +1444,23 @@ public function delete($blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get a post by ID. (posts.get) * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $postId - * The ID of the post + * @param string $blogId ID of the blog to fetch the post from. + * @param string $postId The ID of the post * @param array $optParams Optional parameters. * - * @opt_param bool fetchBody - * Whether the body content of the post is included (default: true). This should be set to false - * when the post bodies are not required, to help minimize traffic. - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included (default: false). - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. + * @opt_param bool fetchBody Whether the body content of the post is included + * (default: true). This should be set to false when the post bodies are not + * required, to help minimize traffic. + * @opt_param string maxComments Maximum number of comments to pull back on a + * post. + * @opt_param bool fetchImages Whether image URL metadata for each post is + * included (default: false). + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require elevated access. * @return Google_Service_Blogger_Post */ public function get($blogId, $postId, $optParams = array()) @@ -1512,20 +1469,18 @@ public function get($blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_Post"); } + /** * Retrieve a Post by Path. (posts.getByPath) * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $path - * Path of the Post to retrieve. + * @param string $blogId ID of the blog to fetch the post from. + * @param string $path Path of the Post to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. + * @opt_param string maxComments Maximum number of comments to pull back on a + * post. + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require elevated access. * @return Google_Service_Blogger_Post */ public function getByPath($blogId, $path, $optParams = array()) @@ -1534,20 +1489,20 @@ public function getByPath($blogId, $path, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); } + /** * Add a post. (posts.insert) * - * @param string $blogId - * ID of the blog to add the post to. + * @param string $blogId ID of the blog to add the post to. * @param Google_Post $postBody * @param array $optParams Optional parameters. * - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @opt_param bool isDraft - * Whether to create the post as a draft (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). + * @opt_param bool fetchImages Whether image URL metadata for each post is + * included in the returned result (default: false). + * @opt_param bool isDraft Whether to create the post as a draft (default: + * false). + * @opt_param bool fetchBody Whether the body content of the post is included + * with the result (default: true). * @return Google_Service_Blogger_Post */ public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) @@ -1556,35 +1511,29 @@ public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Blogger_Post"); } + /** * Retrieves a list of posts, possibly filtered. (posts.listPosts) * - * @param string $blogId - * ID of the blog to fetch posts from. + * @param string $blogId ID of the blog to fetch posts from. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Sort search results - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included. - * @opt_param string pageToken - * Continuation token if the request is paged. - * @opt_param string status - * Statuses to include in the results. - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require escalated - * access. + * @opt_param string orderBy Sort search results + * @opt_param string startDate Earliest post date to fetch, a date-time with RFC + * 3339 formatting. + * @opt_param string endDate Latest post date to fetch, a date-time with RFC + * 3339 formatting. + * @opt_param string labels Comma-separated list of labels to search for. + * @opt_param string maxResults Maximum number of posts to fetch. + * @opt_param bool fetchImages Whether image URL metadata for each post is + * included. + * @opt_param string pageToken Continuation token if the request is paged. + * @opt_param string status Statuses to include in the results. + * @opt_param bool fetchBodies Whether the body content of posts is included + * (default: true). This should be set to false when the post bodies are not + * required, to help minimize traffic. + * @opt_param string view Access level with which to view the returned result. + * Note that some fields require escalated access. * @return Google_Service_Blogger_PostList */ public function listPosts($blogId, $optParams = array()) @@ -1593,26 +1542,25 @@ public function listPosts($blogId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Blogger_PostList"); } + /** * Update a post. This method supports patch semantics. (posts.patch) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. * @param Google_Post $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * post is updated (default: false). + * @opt_param bool publish Whether a publish action should be performed when the + * post is updated (default: false). + * @opt_param bool fetchBody Whether the body content of the post is included + * with the result (default: true). + * @opt_param string maxComments Maximum number of comments to retrieve with the + * returned post. + * @opt_param bool fetchImages Whether image URL metadata for each post is + * included in the returned result (default: false). * @return Google_Service_Blogger_Post */ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) @@ -1621,20 +1569,20 @@ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Blogger_Post"); } + /** * Publishes a draft post, optionally at the specific time of the given * publishDate parameter. (posts.publish) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. * @param array $optParams Optional parameters. * - * @opt_param string publishDate - * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is - * given, the post is either published at the a previously saved schedule date (if present), or the - * current time. If a future date is given, the post will be scheduled to be published. + * @opt_param string publishDate Optional date and time to schedule the + * publishing of the Blog. If no publishDate parameter is given, the post is + * either published at the a previously saved schedule date (if present), or the + * current time. If a future date is given, the post will be scheduled to be + * published. * @return Google_Service_Blogger_Post */ public function publish($blogId, $postId, $optParams = array()) @@ -1643,13 +1591,12 @@ public function publish($blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('publish', array($params), "Google_Service_Blogger_Post"); } + /** * Revert a published or scheduled post to draft state. (posts.revert) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_Post */ @@ -1659,20 +1606,18 @@ public function revert($blogId, $postId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('revert', array($params), "Google_Service_Blogger_Post"); } + /** * Search for a post. (posts.search) * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $q - * Query terms to search this blog for matching posts. + * @param string $blogId ID of the blog to fetch the post from. + * @param string $q Query terms to search this blog for matching posts. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Sort search results - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. + * @opt_param string orderBy Sort search results + * @opt_param bool fetchBodies Whether the body content of posts is included + * (default: true). This should be set to false when the post bodies are not + * required, to help minimize traffic. * @return Google_Service_Blogger_PostList */ public function search($blogId, $q, $optParams = array()) @@ -1681,26 +1626,25 @@ public function search($blogId, $q, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Blogger_PostList"); } + /** * Update a post. (posts.update) * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. + * @param string $blogId The ID of the Blog. + * @param string $postId The ID of the Post. * @param Google_Post $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * post is updated (default: false). + * @opt_param bool publish Whether a publish action should be performed when the + * post is updated (default: false). + * @opt_param bool fetchBody Whether the body content of the post is included + * with the result (default: true). + * @opt_param string maxComments Maximum number of comments to retrieve with the + * returned post. + * @opt_param bool fetchImages Whether image URL metadata for each post is + * included in the returned result (default: false). * @return Google_Service_Blogger_Post */ public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) @@ -1725,8 +1669,7 @@ 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 string $userId The ID of the user to get. * @param array $optParams Optional parameters. * @return Google_Service_Blogger_User */ @@ -1762,11 +1705,11 @@ class Google_Service_Blogger_Blog extends Google_Model public $updated; public $url; + public function setCustomMetaData($customMetaData) { $this->customMetaData = $customMetaData; } - public function getCustomMetaData() { return $this->customMetaData; @@ -1775,7 +1718,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1784,7 +1726,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1793,7 +1734,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1802,7 +1742,6 @@ public function setLocale(Google_Service_Blogger_BlogLocale $locale) { $this->locale = $locale; } - public function getLocale() { return $this->locale; @@ -1811,7 +1750,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1820,7 +1758,6 @@ public function setPages(Google_Service_Blogger_BlogPages $pages) { $this->pages = $pages; } - public function getPages() { return $this->pages; @@ -1829,7 +1766,6 @@ public function setPosts(Google_Service_Blogger_BlogPosts $posts) { $this->posts = $posts; } - public function getPosts() { return $this->posts; @@ -1838,7 +1774,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -1847,7 +1782,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1856,7 +1790,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1865,7 +1798,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -1874,12 +1806,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_BlogList extends Google_Collection @@ -1893,11 +1823,11 @@ class Google_Service_Blogger_BlogList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setBlogUserInfos($blogUserInfos) { $this->blogUserInfos = $blogUserInfos; } - public function getBlogUserInfos() { return $this->blogUserInfos; @@ -1906,7 +1836,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1915,12 +1844,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Blogger_BlogLocale extends Google_Model @@ -1931,11 +1858,11 @@ class Google_Service_Blogger_BlogLocale extends Google_Model public $language; public $variant; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -1944,7 +1871,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -1953,12 +1879,10 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; } - } class Google_Service_Blogger_BlogPages extends Google_Model @@ -1968,11 +1892,11 @@ 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; @@ -1981,12 +1905,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Blogger_BlogPerUserInfo extends Google_Model @@ -2000,11 +1922,11 @@ class Google_Service_Blogger_BlogPerUserInfo extends Google_Model public $role; public $userId; + public function setBlogId($blogId) { $this->blogId = $blogId; } - public function getBlogId() { return $this->blogId; @@ -2013,7 +1935,6 @@ public function setHasAdminAccess($hasAdminAccess) { $this->hasAdminAccess = $hasAdminAccess; } - public function getHasAdminAccess() { return $this->hasAdminAccess; @@ -2022,7 +1943,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2031,7 +1951,6 @@ public function setPhotosAlbumKey($photosAlbumKey) { $this->photosAlbumKey = $photosAlbumKey; } - public function getPhotosAlbumKey() { return $this->photosAlbumKey; @@ -2040,7 +1959,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -2049,12 +1967,10 @@ public function setUserId($userId) { $this->userId = $userId; } - public function getUserId() { return $this->userId; } - } class Google_Service_Blogger_BlogPosts extends Google_Collection @@ -2067,11 +1983,11 @@ class Google_Service_Blogger_BlogPosts extends Google_Collection public $selfLink; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2080,7 +1996,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2089,12 +2004,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Blogger_BlogUserInfo extends Google_Model @@ -2108,11 +2021,11 @@ class Google_Service_Blogger_BlogUserInfo extends Google_Model protected $blogUserInfoDataType = ''; public $kind; + public function setBlog(Google_Service_Blogger_Blog $blog) { $this->blog = $blog; } - public function getBlog() { return $this->blog; @@ -2121,7 +2034,6 @@ public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUser { $this->blogUserInfo = $blogUserInfo; } - public function getBlogUserInfo() { return $this->blogUserInfo; @@ -2130,12 +2042,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Blogger_Comment extends Google_Model @@ -2158,11 +2068,11 @@ class Google_Service_Blogger_Comment extends Google_Model public $status; public $updated; + public function setAuthor(Google_Service_Blogger_CommentAuthor $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2171,7 +2081,6 @@ public function setBlog(Google_Service_Blogger_CommentBlog $blog) { $this->blog = $blog; } - public function getBlog() { return $this->blog; @@ -2180,7 +2089,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -2189,7 +2097,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2198,7 +2105,6 @@ public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) { $this->inReplyTo = $inReplyTo; } - public function getInReplyTo() { return $this->inReplyTo; @@ -2207,7 +2113,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2216,7 +2121,6 @@ public function setPost(Google_Service_Blogger_CommentPost $post) { $this->post = $post; } - public function getPost() { return $this->post; @@ -2225,7 +2129,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -2234,7 +2137,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2243,7 +2145,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2252,12 +2153,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Blogger_CommentAuthor extends Google_Model @@ -2270,11 +2169,11 @@ class Google_Service_Blogger_CommentAuthor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2283,7 +2182,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2292,7 +2190,6 @@ public function setImage(Google_Service_Blogger_CommentAuthorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2301,12 +2198,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_CommentAuthorImage extends Google_Model @@ -2315,16 +2210,15 @@ 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 @@ -2333,16 +2227,15 @@ 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 @@ -2351,16 +2244,15 @@ 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 @@ -2374,11 +2266,11 @@ class Google_Service_Blogger_CommentList extends Google_Collection public $nextPageToken; public $prevPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2387,7 +2279,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2396,7 +2287,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2405,12 +2295,10 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; } - } class Google_Service_Blogger_CommentPost extends Google_Model @@ -2419,16 +2307,15 @@ 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 @@ -2450,11 +2337,11 @@ class Google_Service_Blogger_Page extends Google_Model public $updated; public $url; + public function setAuthor(Google_Service_Blogger_PageAuthor $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2463,7 +2350,6 @@ public function setBlog(Google_Service_Blogger_PageBlog $blog) { $this->blog = $blog; } - public function getBlog() { return $this->blog; @@ -2472,7 +2358,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -2481,7 +2366,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2490,7 +2374,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2499,7 +2382,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2508,7 +2390,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -2517,7 +2398,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2526,7 +2406,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2535,7 +2414,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2544,7 +2422,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2553,12 +2430,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_PageAuthor extends Google_Model @@ -2571,11 +2446,11 @@ class Google_Service_Blogger_PageAuthor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2584,7 +2459,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2593,7 +2467,6 @@ public function setImage(Google_Service_Blogger_PageAuthorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2602,12 +2475,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_PageAuthorImage extends Google_Model @@ -2616,16 +2487,15 @@ 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 @@ -2634,16 +2504,15 @@ 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 @@ -2655,11 +2524,11 @@ class Google_Service_Blogger_PageList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2668,12 +2537,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Blogger_Pageviews extends Google_Collection @@ -2686,11 +2553,11 @@ class Google_Service_Blogger_Pageviews extends Google_Collection protected $countsDataType = 'array'; public $kind; + public function setBlogId($blogId) { $this->blogId = $blogId; } - public function getBlogId() { return $this->blogId; @@ -2699,7 +2566,6 @@ public function setCounts($counts) { $this->counts = $counts; } - public function getCounts() { return $this->counts; @@ -2708,12 +2574,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Blogger_PageviewsCounts extends Google_Model @@ -2723,11 +2587,11 @@ class Google_Service_Blogger_PageviewsCounts extends Google_Model public $count; public $timeRange; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -2736,12 +2600,10 @@ public function setTimeRange($timeRange) { $this->timeRange = $timeRange; } - public function getTimeRange() { return $this->timeRange; } - } class Google_Service_Blogger_Post extends Google_Collection @@ -2774,11 +2636,11 @@ class Google_Service_Blogger_Post extends Google_Collection public $updated; public $url; + public function setAuthor(Google_Service_Blogger_PostAuthor $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2787,7 +2649,6 @@ public function setBlog(Google_Service_Blogger_PostBlog $blog) { $this->blog = $blog; } - public function getBlog() { return $this->blog; @@ -2796,7 +2657,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -2805,7 +2665,6 @@ public function setCustomMetaData($customMetaData) { $this->customMetaData = $customMetaData; } - public function getCustomMetaData() { return $this->customMetaData; @@ -2814,7 +2673,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2823,7 +2681,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2832,7 +2689,6 @@ public function setImages($images) { $this->images = $images; } - public function getImages() { return $this->images; @@ -2841,7 +2697,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2850,7 +2705,6 @@ public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -2859,7 +2713,6 @@ public function setLocation(Google_Service_Blogger_PostLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -2868,7 +2721,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -2877,7 +2729,6 @@ public function setReaderComments($readerComments) { $this->readerComments = $readerComments; } - public function getReaderComments() { return $this->readerComments; @@ -2886,7 +2737,6 @@ public function setReplies(Google_Service_Blogger_PostReplies $replies) { $this->replies = $replies; } - public function getReplies() { return $this->replies; @@ -2895,7 +2745,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2904,7 +2753,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2913,7 +2761,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2922,7 +2769,6 @@ public function setTitleLink($titleLink) { $this->titleLink = $titleLink; } - public function getTitleLink() { return $this->titleLink; @@ -2931,7 +2777,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2940,12 +2785,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_PostAuthor extends Google_Model @@ -2958,11 +2801,11 @@ class Google_Service_Blogger_PostAuthor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2971,7 +2814,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2980,7 +2822,6 @@ public function setImage(Google_Service_Blogger_PostAuthorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2989,12 +2830,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_PostAuthorImage extends Google_Model @@ -3003,16 +2842,15 @@ 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 @@ -3021,16 +2859,15 @@ 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_PostImages extends Google_Model @@ -3039,16 +2876,15 @@ class Google_Service_Blogger_PostImages extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_PostList extends Google_Collection @@ -3061,11 +2897,11 @@ class Google_Service_Blogger_PostList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3074,7 +2910,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3083,12 +2918,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Blogger_PostLocation extends Google_Model @@ -3100,11 +2933,11 @@ class Google_Service_Blogger_PostLocation extends Google_Model public $name; public $span; + public function setLat($lat) { $this->lat = $lat; } - public function getLat() { return $this->lat; @@ -3113,7 +2946,6 @@ public function setLng($lng) { $this->lng = $lng; } - public function getLng() { return $this->lng; @@ -3122,7 +2954,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3131,12 +2962,10 @@ public function setSpan($span) { $this->span = $span; } - public function getSpan() { return $this->span; } - } class Google_Service_Blogger_PostPerUserInfo extends Google_Model @@ -3149,11 +2978,11 @@ class Google_Service_Blogger_PostPerUserInfo extends Google_Model public $postId; public $userId; + public function setBlogId($blogId) { $this->blogId = $blogId; } - public function getBlogId() { return $this->blogId; @@ -3162,7 +2991,6 @@ public function setHasEditAccess($hasEditAccess) { $this->hasEditAccess = $hasEditAccess; } - public function getHasEditAccess() { return $this->hasEditAccess; @@ -3171,7 +2999,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3180,7 +3007,6 @@ public function setPostId($postId) { $this->postId = $postId; } - public function getPostId() { return $this->postId; @@ -3189,12 +3015,10 @@ public function setUserId($userId) { $this->userId = $userId; } - public function getUserId() { return $this->userId; } - } class Google_Service_Blogger_PostReplies extends Google_Collection @@ -3207,11 +3031,11 @@ class Google_Service_Blogger_PostReplies extends Google_Collection public $selfLink; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3220,7 +3044,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3229,12 +3052,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Blogger_PostUserInfo extends Google_Model @@ -3248,11 +3069,11 @@ class Google_Service_Blogger_PostUserInfo extends Google_Model protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; protected $postUserInfoDataType = ''; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3261,7 +3082,6 @@ public function setPost(Google_Service_Blogger_Post $post) { $this->post = $post; } - public function getPost() { return $this->post; @@ -3270,12 +3090,10 @@ public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUser { $this->postUserInfo = $postUserInfo; } - public function getPostUserInfo() { return $this->postUserInfo; } - } class Google_Service_Blogger_PostUserInfosList extends Google_Collection @@ -3288,11 +3106,11 @@ class Google_Service_Blogger_PostUserInfosList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3301,7 +3119,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3310,12 +3127,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Blogger_User extends Google_Model @@ -3334,11 +3149,11 @@ class Google_Service_Blogger_User extends Google_Model public $selfLink; public $url; + public function setAbout($about) { $this->about = $about; } - public function getAbout() { return $this->about; @@ -3347,7 +3162,6 @@ public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) { $this->blogs = $blogs; } - public function getBlogs() { return $this->blogs; @@ -3356,7 +3170,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -3365,7 +3178,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3374,7 +3186,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3383,7 +3194,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3392,7 +3202,6 @@ public function setLocale(Google_Service_Blogger_UserLocale $locale) { $this->locale = $locale; } - public function getLocale() { return $this->locale; @@ -3401,7 +3210,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3410,12 +3218,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Blogger_UserBlogs extends Google_Model @@ -3424,16 +3230,15 @@ 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 @@ -3444,11 +3249,11 @@ class Google_Service_Blogger_UserLocale extends Google_Model public $language; public $variant; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -3457,7 +3262,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -3466,10 +3270,8 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; } - } From 44dea4d20343bd6f273ad4ce4c61611df1bc6476 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:31 -0800 Subject: [PATCH 0451/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 754 ++++++++++-------------- 1 file changed, 313 insertions(+), 441 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 5ae8e02f4..c3e4a5887 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -19,8 +19,7 @@ * Service definition for AndroidPublisher (v2). * *

- * Lets Android application developers access their Google Play accounts. - *

+ * Lets Android application developers access their Google Play accounts.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_AndroidPublisher extends Google_Service { /** View and manage your Google Play Android Developer account. */ - const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; + const ANDROIDPUBLISHER = + "https://www.googleapis.com/auth/androidpublisher"; public $edits; public $edits_apklistings; @@ -1161,10 +1161,9 @@ class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Reso /** * Commits/applies the changes made in this edit back to the app. (edits.commit) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppEdit */ @@ -1174,15 +1173,15 @@ public function commit($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit"); } + /** * Deletes an edit for an app. Creating a new edit will automatically delete any * of your previous edits so this method need only be called if you want to * preemptively abandon an edit. (edits.delete) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. */ public function delete($packageName, $editId, $optParams = array()) @@ -1191,14 +1190,14 @@ public function delete($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns information about the edit specified. Calls will fail if the edit is * no long active (e.g. has been deleted, superseded or expired). (edits.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppEdit */ @@ -1208,12 +1207,13 @@ public function get($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit"); } + /** * Creates a new edit for an app, populated with the app's current state. * (edits.insert) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". * @param Google_AppEdit $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppEdit @@ -1224,14 +1224,14 @@ public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $po $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); } + /** * Checks that the edit can be successfully committed. The edit's changes are * not applied to the live app. (edits.validate) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppEdit */ @@ -1258,15 +1258,14 @@ class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_S * Deletes the APK-specific localized listing for a specified APK and language * code. (apklistings.delete) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. + * @param string $language The language code (a BCP-47 language tag) of the APK- + * specific localized listing to read or modify. For example, to select Austrian + * German, pass "de-AT". * @param array $optParams Optional parameters. */ public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) @@ -1275,16 +1274,16 @@ public function delete($packageName, $editId, $apkVersionCode, $language, $optPa $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Deletes all the APK-specific localized listings for a specified APK. * (apklistings.deleteall) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. * @param array $optParams Optional parameters. */ public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) @@ -1293,19 +1292,19 @@ public function deleteall($packageName, $editId, $apkVersionCode, $optParams = a $params = array_merge($params, $optParams); return $this->call('deleteall', array($params)); } + /** * Fetches the APK-specific localized listing for a specified APK and language * code. (apklistings.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. + * @param string $language The language code (a BCP-47 language tag) of the APK- + * specific localized listing to read or modify. For example, to select Austrian + * German, pass "de-AT". * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ApkListing */ @@ -1315,16 +1314,16 @@ public function get($packageName, $editId, $apkVersionCode, $language, $optParam $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); } + /** * Lists all the APK-specific localized listings for a specified APK. * (apklistings.listEditsApklistings) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ApkListingsListResponse */ @@ -1334,19 +1333,19 @@ public function listEditsApklistings($packageName, $editId, $apkVersionCode, $op $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); } + /** * Updates or creates the APK-specific localized listing for a specified APK and * language code. This method supports patch semantics. (apklistings.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. + * @param string $language The language code (a BCP-47 language tag) of the APK- + * specific localized listing to read or modify. For example, to select Austrian + * German, pass "de-AT". * @param Google_ApkListing $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ApkListing @@ -1357,19 +1356,19 @@ public function patch($packageName, $editId, $apkVersionCode, $language, Google_ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); } + /** * Updates or creates the APK-specific localized listing for a specified APK and * language code. (apklistings.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The APK version code whose APK-specific listings + * should be read or modified. + * @param string $language The language code (a BCP-47 language tag) of the APK- + * specific localized listing to read or modify. For example, to select Austrian + * German, pass "de-AT". * @param Google_ApkListing $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ApkListing @@ -1395,10 +1394,9 @@ class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_ /** * (apks.listEditsApks) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ApksListResponse */ @@ -1408,13 +1406,13 @@ public function listEditsApks($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse"); } + /** * (apks.upload) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Apk */ @@ -1440,10 +1438,9 @@ class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Servi * Fetches app details for this edit. This includes the default language and * developer support contact information. (details.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppDetails */ @@ -1453,14 +1450,14 @@ public function get($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails"); } + /** * Updates app details for this edit. This method supports patch semantics. * (details.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param Google_AppDetails $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppDetails @@ -1471,13 +1468,13 @@ public function patch($packageName, $editId, Google_Service_AndroidPublisher_App $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails"); } + /** * Updates app details for this edit. (details.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param Google_AppDetails $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_AppDetails @@ -1504,14 +1501,12 @@ class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Googl * Fetches the Expansion File configuration for the APK specified. * (expansionfiles.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The version code of the APK whose Expansion File + * configuration is being read or modified. * @param string $expansionFileType - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ExpansionFile */ @@ -1521,19 +1516,18 @@ public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); } + /** * Updates the APK's Expansion File configuration to reference another APK's * Expansion Files. To add a new Expansion File use the Upload method. This * method supports patch semantics. (expansionfiles.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The version code of the APK whose Expansion File + * configuration is being read or modified. * @param string $expansionFileType - * * @param Google_ExpansionFile $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ExpansionFile @@ -1544,19 +1538,18 @@ public function patch($packageName, $editId, $apkVersionCode, $expansionFileType $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); } + /** * Updates the APK's Expansion File configuration to reference another APK's * Expansion Files. To add a new Expansion File use the Upload method. * (expansionfiles.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The version code of the APK whose Expansion File + * configuration is being read or modified. * @param string $expansionFileType - * * @param Google_ExpansionFile $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ExpansionFile @@ -1567,18 +1560,17 @@ public function update($packageName, $editId, $apkVersionCode, $expansionFileTyp $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); } + /** * Uploads and attaches a new Expansion File to the APK specified. * (expansionfiles.upload) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param int $apkVersionCode The version code of the APK whose Expansion File + * configuration is being read or modified. * @param string $expansionFileType - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse */ @@ -1603,17 +1595,15 @@ class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Servic /** * Deletes the image (specified by id) from the edit. (images.delete) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing whose images are to read or modified. For example, to + * select Austrian German, pass "de-AT". * @param string $imageType - * - * @param string $imageId - * Unique identifier an image within the set of images attached to this edit. + * @param string $imageId Unique identifier an image within the set of images + * attached to this edit. * @param array $optParams Optional parameters. */ public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array()) @@ -1622,19 +1612,18 @@ public function delete($packageName, $editId, $language, $imageType, $imageId, $ $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Deletes all images for the specified language and image type. * (images.deleteall) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing whose images are to read or modified. For example, to + * select Austrian German, pass "de-AT". * @param string $imageType - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse */ @@ -1644,19 +1633,18 @@ public function deleteall($packageName, $editId, $language, $imageType, $optPara $params = array_merge($params, $optParams); return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse"); } + /** * Lists all images for the specified language and image type. * (images.listEditsImages) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing whose images are to read or modified. For example, to + * select Austrian German, pass "de-AT". * @param string $imageType - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ImagesListResponse */ @@ -1666,19 +1654,18 @@ public function listEditsImages($packageName, $editId, $language, $imageType, $o $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse"); } + /** * Uploads a new image and adds it to the list of images for the specified * language and image type. (images.upload) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing whose images are to read or modified. For example, to + * select Austrian German, pass "de-AT". * @param string $imageType - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ImagesUploadResponse */ @@ -1703,13 +1690,12 @@ class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Serv /** * Deletes the specified localized store listing from an edit. (listings.delete) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing to read or modify. For example, to select Austrian German, + * pass "de-AT". * @param array $optParams Optional parameters. */ public function delete($packageName, $editId, $language, $optParams = array()) @@ -1718,13 +1704,13 @@ public function delete($packageName, $editId, $language, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Deletes all localized listings from an edit. (listings.deleteall) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. */ public function deleteall($packageName, $editId, $optParams = array()) @@ -1733,16 +1719,16 @@ public function deleteall($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('deleteall', array($params)); } + /** * Fetches information about a localized store listing. (listings.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing to read or modify. For example, to select Austrian German, + * pass "de-AT". * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Listing */ @@ -1752,14 +1738,14 @@ public function get($packageName, $editId, $language, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing"); } + /** * Returns all of the localized store listings attached to this edit. * (listings.listEditsListings) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ListingsListResponse */ @@ -1769,17 +1755,17 @@ public function listEditsListings($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse"); } + /** * Creates or updates a localized store listing. This method supports patch * semantics. (listings.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing to read or modify. For example, to select Austrian German, + * pass "de-AT". * @param Google_Listing $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Listing @@ -1790,16 +1776,16 @@ public function patch($packageName, $editId, $language, Google_Service_AndroidPu $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing"); } + /** * Creates or updates a localized store listing. (listings.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $language The language code (a BCP-47 language tag) of the + * localized listing to read or modify. For example, to select Austrian German, + * pass "de-AT". * @param Google_Listing $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Listing @@ -1825,12 +1811,10 @@ class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Servi /** * (testers.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param string $track - * * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Testers */ @@ -1840,15 +1824,14 @@ public function get($packageName, $editId, $track, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers"); } + /** * (testers.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param string $track - * * @param Google_Testers $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Testers @@ -1859,15 +1842,14 @@ public function patch($packageName, $editId, $track, Google_Service_AndroidPubli $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers"); } + /** * (testers.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param string $track - * * @param Google_Testers $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Testers @@ -1894,12 +1876,10 @@ class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Servic * Fetches the track configuration for the specified track type. Includes the * APK version codes that are in this track. (tracks.get) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $track The track type to read or modify. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track */ @@ -1909,13 +1889,13 @@ public function get($packageName, $editId, $track, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track"); } + /** * Lists all the track configurations for this edit. (tracks.listEditsTracks) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_TracksListResponse */ @@ -1925,16 +1905,15 @@ public function listEditsTracks($packageName, $editId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse"); } + /** * Updates the track configuration for the specified track type. This method * supports patch semantics. (tracks.patch) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $track The track type to read or modify. * @param Google_Track $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track @@ -1945,15 +1924,14 @@ public function patch($packageName, $editId, $track, Google_Service_AndroidPubli $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track"); } + /** * Updates the track configuration for the specified track type. (tracks.update) * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param string $track The track type to read or modify. * @param Google_Track $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track @@ -1990,13 +1968,13 @@ public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $params = array_merge($params, $optParams); return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse"); } + /** * Delete an in-app product for an app. (inappproducts.delete) * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. + * @param string $packageName Unique identifier for the Android app with the in- + * app product; for example, "com.spiffygame". + * @param string $sku Unique identifier for the in-app product. * @param array $optParams Optional parameters. */ public function delete($packageName, $sku, $optParams = array()) @@ -2005,13 +1983,12 @@ public function delete($packageName, $sku, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns information about the in-app product specified. (inappproducts.get) * * @param string $packageName - * - * @param string $sku - * Unique identifier for the in-app product. + * @param string $sku Unique identifier for the in-app product. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_InAppProduct */ @@ -2021,18 +1998,19 @@ public function get($packageName, $sku, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct"); } + /** * Creates a new in-app product for an app. (inappproducts.insert) * - * @param string $packageName - * Unique identifier for the Android app; for example, "com.spiffygame". + * @param string $packageName Unique identifier for the Android app; for + * example, "com.spiffygame". * @param Google_InAppProduct $postBody * @param array $optParams Optional parameters. * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. + * @opt_param bool autoConvertMissingPrices If true the prices for all regions + * targeted by the parent app that don't have a price specified for this in-app + * product will be auto converted to the target currency based on the default + * price. Defaults to false. * @return Google_Service_AndroidPublisher_InAppProduct */ public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) @@ -2041,20 +2019,18 @@ public function insert($packageName, Google_Service_AndroidPublisher_InAppProduc $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct"); } + /** * List all the in-app products for an Android app, both subscriptions and * managed in-app products.. (inappproducts.listInappproducts) * - * @param string $packageName - * Unique identifier for the Android app with in-app products; for example, "com.spiffygame". + * @param string $packageName Unique identifier for the Android app with in-app + * products; for example, "com.spiffygame". * @param array $optParams Optional parameters. * * @opt_param string token - * * @opt_param string startIndex - * * @opt_param string maxResults - * * @return Google_Service_AndroidPublisher_InappproductsListResponse */ public function listInappproducts($packageName, $optParams = array()) @@ -2063,21 +2039,21 @@ public function listInappproducts($packageName, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse"); } + /** * Updates the details of an in-app product. This method supports patch * semantics. (inappproducts.patch) * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. + * @param string $packageName Unique identifier for the Android app with the in- + * app product; for example, "com.spiffygame". + * @param string $sku Unique identifier for the in-app product. * @param Google_InAppProduct $postBody * @param array $optParams Optional parameters. * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. + * @opt_param bool autoConvertMissingPrices If true the prices for all regions + * targeted by the parent app that don't have a price specified for this in-app + * product will be auto converted to the target currency based on the default + * price. Defaults to false. * @return Google_Service_AndroidPublisher_InAppProduct */ public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) @@ -2086,20 +2062,20 @@ public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppP $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct"); } + /** * Updates the details of an in-app product. (inappproducts.update) * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. + * @param string $packageName Unique identifier for the Android app with the in- + * app product; for example, "com.spiffygame". + * @param string $sku Unique identifier for the in-app product. * @param Google_InAppProduct $postBody * @param array $optParams Optional parameters. * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. + * @opt_param bool autoConvertMissingPrices If true the prices for all regions + * targeted by the parent app that don't have a price specified for this in-app + * product will be auto converted to the target currency based on the default + * price. Defaults to false. * @return Google_Service_AndroidPublisher_InAppProduct */ public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) @@ -2120,7 +2096,6 @@ public function update($packageName, $sku, Google_Service_AndroidPublisher_InApp */ class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource { - } /** @@ -2137,13 +2112,12 @@ class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_ /** * Checks the purchase and consumption status of an inapp item. (products.get) * - * @param string $packageName - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - * @param string $productId - * The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param string $token - * The token provided to the user's device when the inapp product was purchased. + * @param string $packageName The package name of the application the inapp + * product was sold in (for example, 'com.some.thing'). + * @param string $productId The inapp product SKU (for example, + * 'com.some.thing.inapp1'). + * @param string $token The token provided to the user's device when the inapp + * product was purchased. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_ProductPurchase */ @@ -2169,13 +2143,12 @@ class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource extends Go * Cancels a user's subscription purchase. The subscription remains valid until * its expiration time. (subscriptions.cancel) * - * @param string $packageName - * The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param string $subscriptionId - * The purchased subscription ID (for example, 'monthly001'). - * @param string $token - * The token provided to the user's device when the subscription was purchased. + * @param 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()) @@ -2184,17 +2157,17 @@ public function cancel($packageName, $subscriptionId, $token, $optParams = array $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } + /** * Defers a user's subscription purchase until a specified future expiration * time. (subscriptions.defer) * - * @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 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 Google_SubscriptionPurchasesDeferRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse @@ -2205,17 +2178,17 @@ public function defer($packageName, $subscriptionId, $token, Google_Service_Andr $params = array_merge($params, $optParams); return $this->call('defer', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse"); } + /** * Checks whether a user's subscription purchase is valid and returns its expiry * time. (subscriptions.get) * - * @param string $packageName - * The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param string $subscriptionId - * The purchased subscription ID (for example, 'monthly001'). - * @param string $token - * The token provided to the user's device when the subscription was purchased. + * @param 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 */ @@ -2225,18 +2198,18 @@ public function get($packageName, $subscriptionId, $token, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); } + /** * Refunds a user's subscription purchase, but the subscription remains valid * until its expiration time and it will continue to recur. * (subscriptions.refund) * - * @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 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 refund($packageName, $subscriptionId, $token, $optParams = array()) @@ -2245,18 +2218,18 @@ public function refund($packageName, $subscriptionId, $token, $optParams = array $params = array_merge($params, $optParams); return $this->call('refund', array($params)); } + /** * Refunds and immediately revokes a user's subscription purchase. Access to the * subscription will be terminated immediately and it will stop recurring. * (subscriptions.revoke) * - * @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 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 revoke($packageName, $subscriptionId, $token, $optParams = array()) @@ -2278,11 +2251,11 @@ class Google_Service_AndroidPublisher_Apk extends Google_Model protected $binaryDataType = ''; public $versionCode; + public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary) { $this->binary = $binary; } - public function getBinary() { return $this->binary; @@ -2291,12 +2264,10 @@ public function setVersionCode($versionCode) { $this->versionCode = $versionCode; } - public function getVersionCode() { return $this->versionCode; } - } class Google_Service_AndroidPublisher_ApkBinary extends Google_Model @@ -2305,16 +2276,15 @@ class Google_Service_AndroidPublisher_ApkBinary extends Google_Model ); public $sha1; + public function setSha1($sha1) { $this->sha1 = $sha1; } - public function getSha1() { return $this->sha1; } - } class Google_Service_AndroidPublisher_ApkListing extends Google_Model @@ -2324,11 +2294,11 @@ class Google_Service_AndroidPublisher_ApkListing extends Google_Model public $language; public $recentChanges; + public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -2337,12 +2307,10 @@ public function setRecentChanges($recentChanges) { $this->recentChanges = $recentChanges; } - public function getRecentChanges() { return $this->recentChanges; } - } class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection @@ -2354,11 +2322,11 @@ class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Col protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; protected $listingsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2367,12 +2335,10 @@ public function setListings($listings) { $this->listings = $listings; } - public function getListings() { return $this->listings; } - } class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection @@ -2384,11 +2350,11 @@ class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection protected $apksDataType = 'array'; public $kind; + public function setApks($apks) { $this->apks = $apks; } - public function getApks() { return $this->apks; @@ -2397,12 +2363,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AndroidPublisher_AppDetails extends Google_Model @@ -2414,11 +2378,11 @@ class Google_Service_AndroidPublisher_AppDetails extends Google_Model public $contactWebsite; public $defaultLanguage; + public function setContactEmail($contactEmail) { $this->contactEmail = $contactEmail; } - public function getContactEmail() { return $this->contactEmail; @@ -2427,7 +2391,6 @@ public function setContactPhone($contactPhone) { $this->contactPhone = $contactPhone; } - public function getContactPhone() { return $this->contactPhone; @@ -2436,7 +2399,6 @@ public function setContactWebsite($contactWebsite) { $this->contactWebsite = $contactWebsite; } - public function getContactWebsite() { return $this->contactWebsite; @@ -2445,12 +2407,10 @@ public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; } - public function getDefaultLanguage() { return $this->defaultLanguage; } - } class Google_Service_AndroidPublisher_AppEdit extends Google_Model @@ -2460,11 +2420,11 @@ class Google_Service_AndroidPublisher_AppEdit extends Google_Model public $expiryTimeSeconds; public $id; + public function setExpiryTimeSeconds($expiryTimeSeconds) { $this->expiryTimeSeconds = $expiryTimeSeconds; } - public function getExpiryTimeSeconds() { return $this->expiryTimeSeconds; @@ -2473,12 +2433,10 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; } - } class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model @@ -2488,11 +2446,11 @@ class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model public $fileSize; public $referencesVersion; + public function setFileSize($fileSize) { $this->fileSize = $fileSize; } - public function getFileSize() { return $this->fileSize; @@ -2501,12 +2459,10 @@ public function setReferencesVersion($referencesVersion) { $this->referencesVersion = $referencesVersion; } - public function getReferencesVersion() { return $this->referencesVersion; } - } class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model @@ -2516,16 +2472,15 @@ class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Googl protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; protected $expansionFileDataType = ''; + public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile) { $this->expansionFile = $expansionFile; } - public function getExpansionFile() { return $this->expansionFile; } - } class Google_Service_AndroidPublisher_Image extends Google_Model @@ -2536,11 +2491,11 @@ class Google_Service_AndroidPublisher_Image extends Google_Model public $sha1; public $url; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2549,7 +2504,6 @@ public function setSha1($sha1) { $this->sha1 = $sha1; } - public function getSha1() { return $this->sha1; @@ -2558,12 +2512,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection @@ -2574,16 +2526,15 @@ class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Col protected $deletedType = 'Google_Service_AndroidPublisher_Image'; protected $deletedDataType = 'array'; + public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; } - } class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection @@ -2594,16 +2545,15 @@ class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collecti protected $imagesType = 'Google_Service_AndroidPublisher_Image'; protected $imagesDataType = 'array'; + public function setImages($images) { $this->images = $images; } - public function getImages() { return $this->images; } - } class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model @@ -2613,16 +2563,15 @@ class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model protected $imageType = 'Google_Service_AndroidPublisher_Image'; protected $imageDataType = ''; + public function setImage(Google_Service_AndroidPublisher_Image $image) { $this->image = $image; } - public function getImage() { return $this->image; } - } class Google_Service_AndroidPublisher_InAppProduct extends Google_Model @@ -2645,11 +2594,11 @@ class Google_Service_AndroidPublisher_InAppProduct extends Google_Model public $subscriptionPeriod; public $trialPeriod; + public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; } - public function getDefaultLanguage() { return $this->defaultLanguage; @@ -2658,7 +2607,6 @@ public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPr { $this->defaultPrice = $defaultPrice; } - public function getDefaultPrice() { return $this->defaultPrice; @@ -2667,7 +2615,6 @@ public function setListings($listings) { $this->listings = $listings; } - public function getListings() { return $this->listings; @@ -2676,7 +2623,6 @@ public function setPackageName($packageName) { $this->packageName = $packageName; } - public function getPackageName() { return $this->packageName; @@ -2685,7 +2631,6 @@ public function setPrices($prices) { $this->prices = $prices; } - public function getPrices() { return $this->prices; @@ -2694,7 +2639,6 @@ public function setPurchaseType($purchaseType) { $this->purchaseType = $purchaseType; } - public function getPurchaseType() { return $this->purchaseType; @@ -2703,7 +2647,6 @@ public function setSeason(Google_Service_AndroidPublisher_Season $season) { $this->season = $season; } - public function getSeason() { return $this->season; @@ -2712,7 +2655,6 @@ public function setSku($sku) { $this->sku = $sku; } - public function getSku() { return $this->sku; @@ -2721,7 +2663,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2730,7 +2671,6 @@ public function setSubscriptionPeriod($subscriptionPeriod) { $this->subscriptionPeriod = $subscriptionPeriod; } - public function getSubscriptionPeriod() { return $this->subscriptionPeriod; @@ -2739,12 +2679,10 @@ public function setTrialPeriod($trialPeriod) { $this->trialPeriod = $trialPeriod; } - public function getTrialPeriod() { return $this->trialPeriod; } - } class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model @@ -2754,11 +2692,11 @@ class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model public $description; public $title; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2767,28 +2705,18 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection @@ -2799,16 +2727,15 @@ class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_C protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; protected $entrysDataType = 'array'; + public function setEntrys($entrys) { $this->entrys = $entrys; } - public function getEntrys() { return $this->entrys; } - } class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model @@ -2822,11 +2749,11 @@ class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Goo protected $inappproductsupdaterequestDataType = ''; public $methodName; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2835,7 +2762,6 @@ public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_In { $this->inappproductsinsertrequest = $inappproductsinsertrequest; } - public function getInappproductsinsertrequest() { return $this->inappproductsinsertrequest; @@ -2844,7 +2770,6 @@ public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_In { $this->inappproductsupdaterequest = $inappproductsupdaterequest; } - public function getInappproductsupdaterequest() { return $this->inappproductsupdaterequest; @@ -2853,12 +2778,10 @@ public function setMethodName($methodName) { $this->methodName = $methodName; } - public function getMethodName() { return $this->methodName; } - } class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection @@ -2870,11 +2793,11 @@ class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_ protected $entrysDataType = 'array'; public $kind; + public function setEntrys($entrys) { $this->entrys = $entrys; } - public function getEntrys() { return $this->entrys; @@ -2883,12 +2806,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model @@ -2901,11 +2822,11 @@ class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Go protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse'; protected $inappproductsupdateresponseDataType = ''; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2914,7 +2835,6 @@ public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_I { $this->inappproductsinsertresponse = $inappproductsinsertresponse; } - public function getInappproductsinsertresponse() { return $this->inappproductsinsertresponse; @@ -2923,12 +2843,10 @@ public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_I { $this->inappproductsupdateresponse = $inappproductsupdateresponse; } - public function getInappproductsupdateresponse() { return $this->inappproductsupdateresponse; } - } class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model @@ -2938,16 +2856,15 @@ class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { $this->inappproduct = $inappproduct; } - public function getInappproduct() { return $this->inappproduct; } - } class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model @@ -2957,16 +2874,15 @@ class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { $this->inappproduct = $inappproduct; } - public function getInappproduct() { return $this->inappproduct; } - } class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection @@ -2982,11 +2898,11 @@ class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_C protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; protected $tokenPaginationDataType = ''; + public function setInappproduct($inappproduct) { $this->inappproduct = $inappproduct; } - public function getInappproduct() { return $this->inappproduct; @@ -2995,7 +2911,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3004,7 +2919,6 @@ public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -3013,12 +2927,10 @@ public function setTokenPagination(Google_Service_AndroidPublisher_TokenPaginati { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; } - } class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model @@ -3028,16 +2940,15 @@ class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { $this->inappproduct = $inappproduct; } - public function getInappproduct() { return $this->inappproduct; } - } class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model @@ -3047,16 +2958,15 @@ class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; protected $inappproductDataType = ''; + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { $this->inappproduct = $inappproduct; } - public function getInappproduct() { return $this->inappproduct; } - } class Google_Service_AndroidPublisher_Listing extends Google_Model @@ -3069,11 +2979,11 @@ class Google_Service_AndroidPublisher_Listing extends Google_Model public $title; public $video; + public function setFullDescription($fullDescription) { $this->fullDescription = $fullDescription; } - public function getFullDescription() { return $this->fullDescription; @@ -3082,7 +2992,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -3091,7 +3000,6 @@ public function setShortDescription($shortDescription) { $this->shortDescription = $shortDescription; } - public function getShortDescription() { return $this->shortDescription; @@ -3100,7 +3008,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3109,12 +3016,10 @@ public function setVideo($video) { $this->video = $video; } - public function getVideo() { return $this->video; } - } class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection @@ -3126,11 +3031,11 @@ class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collec protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; protected $listingsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3139,12 +3044,10 @@ public function setListings($listings) { $this->listings = $listings; } - public function getListings() { return $this->listings; } - } class Google_Service_AndroidPublisher_MonthDay extends Google_Model @@ -3154,11 +3057,11 @@ class Google_Service_AndroidPublisher_MonthDay extends Google_Model public $day; public $month; + public function setDay($day) { $this->day = $day; } - public function getDay() { return $this->day; @@ -3167,12 +3070,10 @@ public function setMonth($month) { $this->month = $month; } - public function getMonth() { return $this->month; } - } class Google_Service_AndroidPublisher_PageInfo extends Google_Model @@ -3183,11 +3084,11 @@ class Google_Service_AndroidPublisher_PageInfo extends Google_Model public $startIndex; public $totalResults; + public function setResultPerPage($resultPerPage) { $this->resultPerPage = $resultPerPage; } - public function getResultPerPage() { return $this->resultPerPage; @@ -3196,7 +3097,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -3205,12 +3105,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_AndroidPublisher_Price extends Google_Model @@ -3220,11 +3118,11 @@ class Google_Service_AndroidPublisher_Price extends Google_Model public $currency; public $priceMicros; + public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -3233,12 +3131,10 @@ public function setPriceMicros($priceMicros) { $this->priceMicros = $priceMicros; } - public function getPriceMicros() { return $this->priceMicros; } - } class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model @@ -3251,11 +3147,11 @@ class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model public $purchaseState; public $purchaseTimeMillis; + public function setConsumptionState($consumptionState) { $this->consumptionState = $consumptionState; } - public function getConsumptionState() { return $this->consumptionState; @@ -3264,7 +3160,6 @@ public function setDeveloperPayload($developerPayload) { $this->developerPayload = $developerPayload; } - public function getDeveloperPayload() { return $this->developerPayload; @@ -3273,7 +3168,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3282,7 +3176,6 @@ public function setPurchaseState($purchaseState) { $this->purchaseState = $purchaseState; } - public function getPurchaseState() { return $this->purchaseState; @@ -3291,12 +3184,10 @@ public function setPurchaseTimeMillis($purchaseTimeMillis) { $this->purchaseTimeMillis = $purchaseTimeMillis; } - public function getPurchaseTimeMillis() { return $this->purchaseTimeMillis; } - } class Google_Service_AndroidPublisher_Season extends Google_Model @@ -3308,11 +3199,11 @@ class Google_Service_AndroidPublisher_Season extends Google_Model protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; protected $startDataType = ''; + public function setEnd(Google_Service_AndroidPublisher_MonthDay $end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -3321,12 +3212,10 @@ public function setStart(Google_Service_AndroidPublisher_MonthDay $start) { $this->start = $start; } - public function getStart() { return $this->start; } - } class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model @@ -3336,11 +3225,11 @@ class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Mo public $desiredExpiryTimeMillis; public $expectedExpiryTimeMillis; + public function setDesiredExpiryTimeMillis($desiredExpiryTimeMillis) { $this->desiredExpiryTimeMillis = $desiredExpiryTimeMillis; } - public function getDesiredExpiryTimeMillis() { return $this->desiredExpiryTimeMillis; @@ -3349,12 +3238,10 @@ public function setExpectedExpiryTimeMillis($expectedExpiryTimeMillis) { $this->expectedExpiryTimeMillis = $expectedExpiryTimeMillis; } - public function getExpectedExpiryTimeMillis() { return $this->expectedExpiryTimeMillis; } - } class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model @@ -3366,11 +3253,11 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model public $kind; public $startTimeMillis; + public function setAutoRenewing($autoRenewing) { $this->autoRenewing = $autoRenewing; } - public function getAutoRenewing() { return $this->autoRenewing; @@ -3379,7 +3266,6 @@ public function setExpiryTimeMillis($expiryTimeMillis) { $this->expiryTimeMillis = $expiryTimeMillis; } - public function getExpiryTimeMillis() { return $this->expiryTimeMillis; @@ -3388,7 +3274,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3397,12 +3282,10 @@ public function setStartTimeMillis($startTimeMillis) { $this->startTimeMillis = $startTimeMillis; } - public function getStartTimeMillis() { return $this->startTimeMillis; } - } class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model @@ -3412,16 +3295,15 @@ class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends protected $deferralInfoType = 'Google_Service_AndroidPublisher_SubscriptionDeferralInfo'; protected $deferralInfoDataType = ''; + public function setDeferralInfo(Google_Service_AndroidPublisher_SubscriptionDeferralInfo $deferralInfo) { $this->deferralInfo = $deferralInfo; } - public function getDeferralInfo() { return $this->deferralInfo; } - } class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model @@ -3430,16 +3312,15 @@ class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends ); public $newExpiryTimeMillis; + public function setNewExpiryTimeMillis($newExpiryTimeMillis) { $this->newExpiryTimeMillis = $newExpiryTimeMillis; } - public function getNewExpiryTimeMillis() { return $this->newExpiryTimeMillis; } - } class Google_Service_AndroidPublisher_Testers extends Google_Collection @@ -3450,11 +3331,11 @@ class Google_Service_AndroidPublisher_Testers extends Google_Collection public $googleGroups; public $googlePlusCommunities; + public function setGoogleGroups($googleGroups) { $this->googleGroups = $googleGroups; } - public function getGoogleGroups() { return $this->googleGroups; @@ -3463,12 +3344,10 @@ public function setGooglePlusCommunities($googlePlusCommunities) { $this->googlePlusCommunities = $googlePlusCommunities; } - public function getGooglePlusCommunities() { return $this->googlePlusCommunities; } - } class Google_Service_AndroidPublisher_TokenPagination extends Google_Model @@ -3478,11 +3357,11 @@ class Google_Service_AndroidPublisher_TokenPagination extends Google_Model public $nextPageToken; public $previousPageToken; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3491,12 +3370,10 @@ public function setPreviousPageToken($previousPageToken) { $this->previousPageToken = $previousPageToken; } - public function getPreviousPageToken() { return $this->previousPageToken; } - } class Google_Service_AndroidPublisher_Track extends Google_Collection @@ -3508,11 +3385,11 @@ class Google_Service_AndroidPublisher_Track extends Google_Collection public $userFraction; public $versionCodes; + public function setTrack($track) { $this->track = $track; } - public function getTrack() { return $this->track; @@ -3521,7 +3398,6 @@ public function setUserFraction($userFraction) { $this->userFraction = $userFraction; } - public function getUserFraction() { return $this->userFraction; @@ -3530,12 +3406,10 @@ public function setVersionCodes($versionCodes) { $this->versionCodes = $versionCodes; } - public function getVersionCodes() { return $this->versionCodes; } - } class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection @@ -3547,11 +3421,11 @@ class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collecti protected $tracksType = 'Google_Service_AndroidPublisher_Track'; protected $tracksDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3560,10 +3434,8 @@ public function setTracks($tracks) { $this->tracks = $tracks; } - public function getTracks() { return $this->tracks; } - } From 0fceaf1334ce9be415bec13aec8834be834d4f4d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:31 -0800 Subject: [PATCH 0452/1274] Updated AppState.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AppState.php | 59 ++++++++++++++------------------- 1 file changed, 24 insertions(+), 35 deletions(-) diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index aa7bfd1ed..7f3da5d65 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -19,8 +19,7 @@ * Service definition for AppState (v1). * *

- * The Google App State API. - *

+ * The Google App State API.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_AppState extends Google_Service { /** View and manage your data for this application. */ - const APPSTATE = "https://www.googleapis.com/auth/appstate"; + const APPSTATE = + "https://www.googleapis.com/auth/appstate"; public $states; @@ -136,12 +136,11 @@ class Google_Service_AppState_States_Resource extends Google_Service_Resource * version matches the currently stored version. This method results in a * conflict error on version mismatch. (states.clear) * - * @param int $stateKey - * The key for the data to be retrieved. + * @param int $stateKey The key for the data to be retrieved. * @param array $optParams Optional parameters. * - * @opt_param string currentDataVersion - * The version of the data to be cleared. Version strings are returned by the server. + * @opt_param string currentDataVersion The version of the data to be cleared. + * Version strings are returned by the server. * @return Google_Service_AppState_WriteResult */ public function clear($stateKey, $optParams = array()) @@ -150,6 +149,7 @@ public function clear($stateKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('clear', array($params), "Google_Service_AppState_WriteResult"); } + /** * Deletes a key and the data associated with it. The key is removed and no * longer counts against the key quota. Note that since this method is not safe @@ -157,8 +157,7 @@ public function clear($stateKey, $optParams = array()) * development and testing purposes. Invoking this method in shipping code can * result in data loss and data corruption. (states.delete) * - * @param int $stateKey - * The key for the data to be retrieved. + * @param int $stateKey The key for the data to be retrieved. * @param array $optParams Optional parameters. */ public function delete($stateKey, $optParams = array()) @@ -167,12 +166,12 @@ public function delete($stateKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the data corresponding to the passed key. If the key does not exist * on the server, an HTTP 404 will be returned. (states.get) * - * @param int $stateKey - * The key for the data to be retrieved. + * @param int $stateKey The key for the data to be retrieved. * @param array $optParams Optional parameters. * @return Google_Service_AppState_GetResponse */ @@ -182,13 +181,14 @@ public function get($stateKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AppState_GetResponse"); } + /** * Lists all the states keys, and optionally the state data. (states.listStates) * * @param array $optParams Optional parameters. * - * @opt_param bool includeData - * Whether to include the full data in addition to the version number + * @opt_param bool includeData Whether to include the full data in addition to + * the version number * @return Google_Service_AppState_ListResponse */ public function listStates($optParams = array()) @@ -197,20 +197,21 @@ public function listStates($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AppState_ListResponse"); } + /** * Update the data associated with the input key if and only if the passed * version matches the currently stored version. This method is safe in the face * of concurrent writes. Maximum per-key size is 128KB. (states.update) * - * @param int $stateKey - * The key for the data to be retrieved. + * @param int $stateKey The key for the data to be retrieved. * @param Google_UpdateRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string currentStateVersion - * The version of the app state your application is attempting to update. If this does not match - * the current version, this method will return a conflict error. If there is no data stored on the - * server for this key, the update will succeed irrespective of the value of this parameter. + * @opt_param string currentStateVersion The version of the app state your + * application is attempting to update. If this does not match the current + * version, this method will return a conflict error. If there is no data stored + * on the server for this key, the update will succeed irrespective of the value + * of this parameter. * @return Google_Service_AppState_WriteResult */ public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array()) @@ -233,11 +234,11 @@ class Google_Service_AppState_GetResponse extends Google_Model public $kind; public $stateKey; + public function setCurrentStateVersion($currentStateVersion) { $this->currentStateVersion = $currentStateVersion; } - public function getCurrentStateVersion() { return $this->currentStateVersion; @@ -246,7 +247,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -255,7 +255,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -264,12 +263,10 @@ public function setStateKey($stateKey) { $this->stateKey = $stateKey; } - public function getStateKey() { return $this->stateKey; } - } class Google_Service_AppState_ListResponse extends Google_Collection @@ -282,11 +279,11 @@ class Google_Service_AppState_ListResponse extends Google_Collection public $kind; public $maximumKeyCount; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -295,7 +292,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -304,12 +300,10 @@ public function setMaximumKeyCount($maximumKeyCount) { $this->maximumKeyCount = $maximumKeyCount; } - public function getMaximumKeyCount() { return $this->maximumKeyCount; } - } class Google_Service_AppState_UpdateRequest extends Google_Model @@ -319,11 +313,11 @@ class Google_Service_AppState_UpdateRequest extends Google_Model public $data; public $kind; + public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -332,12 +326,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AppState_WriteResult extends Google_Model @@ -348,11 +340,11 @@ class Google_Service_AppState_WriteResult extends Google_Model public $kind; public $stateKey; + public function setCurrentStateVersion($currentStateVersion) { $this->currentStateVersion = $currentStateVersion; } - public function getCurrentStateVersion() { return $this->currentStateVersion; @@ -361,7 +353,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -370,10 +361,8 @@ public function setStateKey($stateKey) { $this->stateKey = $stateKey; } - public function getStateKey() { return $this->stateKey; } - } From acdaa551ffc93212ff24412ed1375ca2cd7776b6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:31 -0800 Subject: [PATCH 0453/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 601 ++++++++++---------------------- 1 file changed, 176 insertions(+), 425 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 3e8fef949..9a261eaf5 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -19,8 +19,7 @@ * Service definition for Genomics (v1beta2). * *

- * Provides access to Genomics data. - *

+ * Provides access to Genomics data.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Genomics extends Google_Service { /** View and manage your data in Google BigQuery. */ - const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; + const BIGQUERY = + "https://www.googleapis.com/auth/bigquery"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; /** View and manage Genomics data. */ - const GENOMICS = "https://www.googleapis.com/auth/genomics"; + const GENOMICS = + "https://www.googleapis.com/auth/genomics"; /** View Genomics data. */ - const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; + const GENOMICS_READONLY = + "https://www.googleapis.com/auth/genomics.readonly"; public $callsets; public $datasets; @@ -625,11 +628,11 @@ public function create(Google_Service_Genomics_CallSet $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); } + /** * Deletes a call set. (callsets.delete) * - * @param string $callSetId - * The ID of the call set to be deleted. + * @param string $callSetId The ID of the call set to be deleted. * @param array $optParams Optional parameters. */ public function delete($callSetId, $optParams = array()) @@ -638,11 +641,11 @@ public function delete($callSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a call set by ID. (callsets.get) * - * @param string $callSetId - * The ID of the call set. + * @param string $callSetId The ID of the call set. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet */ @@ -652,11 +655,11 @@ public function get($callSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); } + /** * Updates a call set. This method supports patch semantics. (callsets.patch) * - * @param string $callSetId - * The ID of the call set to be updated. + * @param string $callSetId The ID of the call set to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet @@ -667,6 +670,7 @@ public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); } + /** * Gets a list of call sets matching the criteria. * @@ -682,11 +686,11 @@ public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); } + /** * Updates a call set. (callsets.update) * - * @param string $callSetId - * The ID of the call set to be updated. + * @param string $callSetId The ID of the call set to be updated. * @param Google_CallSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallSet @@ -723,11 +727,11 @@ public function create(Google_Service_Genomics_Dataset $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); } + /** * Deletes a dataset. (datasets.delete) * - * @param string $datasetId - * The ID of the dataset to be deleted. + * @param string $datasetId The ID of the dataset to be deleted. * @param array $optParams Optional parameters. */ public function delete($datasetId, $optParams = array()) @@ -736,11 +740,11 @@ public function delete($datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a dataset by ID. (datasets.get) * - * @param string $datasetId - * The ID of the dataset. + * @param string $datasetId The ID of the dataset. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Dataset */ @@ -750,19 +754,20 @@ public function get($datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); } + /** * Lists all datasets. (datasets.listDatasets) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of nextPageToken from the previous response. - * @opt_param string projectNumber - * Only return datasets which belong to this Google Developers Console project. Only accepts - * project numbers. Returns all public projects if no project number is specified. - * @opt_param int pageSize - * The maximum number of results returned by this request. + * @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 projectNumber Only return datasets which belong to this + * Google Developers Console project. Only accepts project numbers. Returns all + * public projects if no project number is specified. + * @opt_param int pageSize The maximum number of results returned by this + * request. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) @@ -771,11 +776,11 @@ public function listDatasets($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); } + /** * Updates a dataset. This method supports patch semantics. (datasets.patch) * - * @param string $datasetId - * The ID of the dataset to be updated. + * @param string $datasetId The ID of the dataset to be updated. * @param Google_Dataset $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Dataset @@ -786,13 +791,13 @@ public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); } + /** * Undeletes a dataset by restoring a dataset which was deleted via this API. * This operation is only possible for a week after the deletion occurred. * (datasets.undelete) * - * @param string $datasetId - * The ID of the dataset to be undeleted. + * @param string $datasetId The ID of the dataset to be undeleted. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Dataset */ @@ -802,11 +807,11 @@ public function undelete($datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); } + /** * Updates a dataset. (datasets.update) * - * @param string $datasetId - * The ID of the dataset to be updated. + * @param string $datasetId The ID of the dataset to be updated. * @param Google_Dataset $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Dataset @@ -829,7 +834,6 @@ public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $o */ class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resource { - } /** @@ -874,8 +878,7 @@ class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource * Cancels a job by ID. Note that it is possible for partial results to be * generated and stored for cancelled jobs. (jobs.cancel) * - * @param string $jobId - * Required. The ID of the job. + * @param string $jobId Required. The ID of the job. * @param array $optParams Optional parameters. */ public function cancel($jobId, $optParams = array()) @@ -884,11 +887,11 @@ public function cancel($jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } + /** * Gets a job by ID. (jobs.get) * - * @param string $jobId - * Required. The ID of the job. + * @param string $jobId Required. The ID of the job. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Job */ @@ -898,6 +901,7 @@ public function get($jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Job"); } + /** * Gets a list of jobs matching the criteria. (jobs.search) * @@ -939,6 +943,7 @@ public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBod $params = array_merge($params, $optParams); return $this->call('align', array($params), "Google_Service_Genomics_AlignReadGroupSetsResponse"); } + /** * Calls variants on read data from existing read group sets or files from * Google Cloud Storage. See the alignment and variant calling documentation @@ -954,12 +959,13 @@ public function call(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $params = array_merge($params, $optParams); return $this->call('call', array($params), "Google_Service_Genomics_CallReadGroupSetsResponse"); } + /** * Deletes a read group set. (readgroupsets.delete) * - * @param string $readGroupSetId - * The ID of the read group set to be deleted. The caller must have WRITE permissions to the - * dataset associated with this read group set. + * @param string $readGroupSetId The ID of the read group set to be deleted. The + * caller must have WRITE permissions to the dataset associated with this read + * group set. * @param array $optParams Optional parameters. */ public function delete($readGroupSetId, $optParams = array()) @@ -968,6 +974,7 @@ public function delete($readGroupSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Exports read group sets to a BAM file in Google Cloud Storage. * @@ -986,11 +993,11 @@ public function export(Google_Service_Genomics_ExportReadGroupSetsRequest $postB $params = array_merge($params, $optParams); return $this->call('export', array($params), "Google_Service_Genomics_ExportReadGroupSetsResponse"); } + /** * Gets a read group set by ID. (readgroupsets.get) * - * @param string $readGroupSetId - * The ID of the read group set. + * @param string $readGroupSetId The ID of the read group set. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ReadGroupSet */ @@ -1000,6 +1007,7 @@ public function get($readGroupSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); } + /** * Creates read group sets by asynchronously importing the provided information. * @@ -1018,13 +1026,14 @@ public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postB $params = array_merge($params, $optParams); return $this->call('import', array($params), "Google_Service_Genomics_ImportReadGroupSetsResponse"); } + /** * Updates a read group set. This method supports patch semantics. * (readgroupsets.patch) * - * @param string $readGroupSetId - * The ID of the read group set to be updated. The caller must have WRITE permissions to the - * dataset associated with this read group set. + * @param string $readGroupSetId The ID of the read group set to be updated. The + * caller must have WRITE permissions to the dataset associated with this read + * group set. * @param Google_ReadGroupSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ReadGroupSet @@ -1035,6 +1044,7 @@ public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $pos $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); } + /** * Searches for read group sets matching the criteria. * @@ -1050,12 +1060,13 @@ public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postB $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); } + /** * Updates a read group set. (readgroupsets.update) * - * @param string $readGroupSetId - * The ID of the read group set to be updated. The caller must have WRITE permissions to the - * dataset associated with this read group set. + * @param string $readGroupSetId The ID of the read group set to be updated. The + * caller must have WRITE permissions to the dataset associated with this read + * group set. * @param Google_ReadGroupSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ReadGroupSet @@ -1090,30 +1101,29 @@ class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Goog * levels'. The caller must have READ permissions for the target read group set. * (coveragebuckets.listReadgroupsetsCoveragebuckets) * - * @param string $readGroupSetId - * Required. The ID of the read group set over which coverage is requested. + * @param string $readGroupSetId Required. The ID of the read group set over + * which coverage is requested. * @param array $optParams Optional parameters. * - * @opt_param int pageSize - * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The - * maximum value is 2048. - * @opt_param string range.start - * The start position of the range on the reference, 0-based inclusive. If specified, referenceName - * must also be specified. - * @opt_param string range.end - * The end position of the range on the reference, 0-based exclusive. If specified, referenceName - * must also be specified. - * @opt_param string range.referenceName - * The reference sequence name, for example chr1, 1, or chrX. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of nextPageToken from the previous response. - * @opt_param string targetBucketWidth - * The desired width of each reported coverage bucket in base pairs. This will be rounded down to - * the nearest precomputed bucket width; the value of which is returned as bucketWidth in the - * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of - * the target range, if specified. The smallest precomputed bucketWidth is currently 2048 base - * pairs; this is subject to change. + * @opt_param int pageSize The maximum number of results to return in a single + * page. If unspecified, defaults to 1024. The maximum value is 2048. + * @opt_param string range.start The start position of the range on the + * reference, 0-based inclusive. If specified, referenceName must also be + * specified. + * @opt_param string range.end The end position of the range on the reference, + * 0-based exclusive. If specified, referenceName must also be specified. + * @opt_param string range.referenceName The reference sequence name, for + * example chr1, 1, or chrX. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of nextPageToken from the previous response. + * @opt_param string targetBucketWidth The desired width of each reported + * coverage bucket in base pairs. This will be rounded down to the nearest + * precomputed bucket width; the value of which is returned as bucketWidth in + * the response. Defaults to infinity (each bucket spans an entire reference + * sequence) or the length of the target range, if specified. The smallest + * precomputed bucketWidth is currently 2048 base pairs; this is subject to + * change. * @return Google_Service_Genomics_ListCoverageBucketsResponse */ public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) @@ -1179,8 +1189,7 @@ class Google_Service_Genomics_References_Resource extends Google_Service_Resourc * * Implements GlobalAllianceApi.getReference. (references.get) * - * @param string $referenceId - * The ID of the reference. + * @param string $referenceId The ID of the reference. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Reference */ @@ -1190,6 +1199,7 @@ public function get($referenceId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Reference"); } + /** * Searches for references which match the given criteria. * @@ -1223,19 +1233,18 @@ class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Re * * Implements GlobalAllianceApi.getReferenceBases. (bases.listReferencesBases) * - * @param string $referenceId - * The ID of the reference. + * @param string $referenceId The ID of the reference. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of nextPageToken from the previous response. - * @opt_param string end - * The end position (0-based, exclusive) of this query. Defaults to the length of this reference. - * @opt_param int pageSize - * Specifies the maximum number of bases to return in a single page. - * @opt_param string start - * The start position (0-based) of this query. Defaults to 0. + * @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 end The end position (0-based, exclusive) of this query. + * Defaults to the length of this reference. + * @opt_param int pageSize Specifies the maximum number of bases to return in a + * single page. + * @opt_param string start The start position (0-based) of this query. Defaults + * to 0. * @return Google_Service_Genomics_ListBasesResponse */ public function listReferencesBases($referenceId, $optParams = array()) @@ -1262,8 +1271,7 @@ class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Reso * * Implements GlobalAllianceApi.getReferenceSet. (referencesets.get) * - * @param string $referenceSetId - * The ID of the reference set. + * @param string $referenceSetId The ID of the reference set. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ReferenceSet */ @@ -1273,6 +1281,7 @@ public function get($referenceSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); } + /** * Searches for reference sets which match the given criteria. * @@ -1314,11 +1323,11 @@ public function create(Google_Service_Genomics_Variant $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Genomics_Variant"); } + /** * Deletes a variant. (variants.delete) * - * @param string $variantId - * The ID of the variant to be deleted. + * @param string $variantId The ID of the variant to be deleted. * @param array $optParams Optional parameters. */ public function delete($variantId, $optParams = array()) @@ -1327,11 +1336,11 @@ public function delete($variantId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a variant by ID. (variants.get) * - * @param string $variantId - * The ID of the variant. + * @param string $variantId The ID of the variant. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Variant */ @@ -1341,6 +1350,7 @@ public function get($variantId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_Variant"); } + /** * Gets a list of variants matching the criteria. * @@ -1356,13 +1366,13 @@ public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); } + /** * Updates a variant's names and info fields. All other modifications are * silently ignored. Returns the modified variant without its calls. * (variants.update) * - * @param string $variantId - * The ID of the variant to be updated. + * @param string $variantId The ID of the variant to be updated. * @param Google_Variant $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Variant @@ -1390,8 +1400,7 @@ class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resour * Deletes the contents of a variant set. The variant set object is not deleted. * (variantsets.delete) * - * @param string $variantSetId - * The ID of the variant set to be deleted. + * @param string $variantSetId The ID of the variant set to be deleted. * @param array $optParams Optional parameters. */ public function delete($variantSetId, $optParams = array()) @@ -1400,12 +1409,13 @@ public function delete($variantSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Exports variant set data to an external destination. (variantsets.export) * - * @param string $variantSetId - * Required. The ID of the variant set that contains variant data which should be exported. The - * caller must have READ access to this variant set. + * @param string $variantSetId Required. The ID of the variant set that contains + * variant data which should be exported. The caller must have READ access to + * this variant set. * @param Google_ExportVariantSetRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ExportVariantSetResponse @@ -1416,11 +1426,11 @@ public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRe $params = array_merge($params, $optParams); return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantSetResponse"); } + /** * Gets a variant set by ID. (variantsets.get) * - * @param string $variantSetId - * Required. The ID of the variant set. + * @param string $variantSetId Required. The ID of the variant set. * @param array $optParams Optional parameters. * @return Google_Service_Genomics_VariantSet */ @@ -1430,6 +1440,7 @@ public function get($variantSetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); } + /** * Creates variant data by asynchronously importing the provided information. * @@ -1441,8 +1452,8 @@ public function get($variantSetId, $optParams = array()) * interpreted in a call-specific context. Imported VCF headers are appended to * the metadata already in a variant set. (variantsets.importVariants) * - * @param string $variantSetId - * Required. The variant set to which variant data should be imported. + * @param string $variantSetId Required. The variant set to which variant data + * should be imported. * @param Google_ImportVariantsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_ImportVariantsResponse @@ -1453,6 +1464,7 @@ public function importVariants($variantSetId, Google_Service_Genomics_ImportVari $params = array_merge($params, $optParams); return $this->call('importVariants', array($params), "Google_Service_Genomics_ImportVariantsResponse"); } + /** * Merges the given variants with existing variants. Each variant will be merged * with an existing variant that matches its reference sequence, start, end, @@ -1463,8 +1475,7 @@ public function importVariants($variantSetId, Google_Service_Genomics_ImportVari * to the existing variant, and other fields (such as key/value pairs) are * discarded. (variantsets.mergeVariants) * - * @param string $variantSetId - * The destination variant set. + * @param string $variantSetId The destination variant set. * @param Google_MergeVariantsRequest $postBody * @param array $optParams Optional parameters. */ @@ -1474,12 +1485,12 @@ public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVarian $params = array_merge($params, $optParams); return $this->call('mergeVariants', array($params)); } + /** * Updates a variant set's metadata. All other modifications are silently * ignored. This method supports patch semantics. (variantsets.patch) * - * @param string $variantSetId - * The ID of the variant to be updated. + * @param string $variantSetId The ID of the variant to be updated. * @param Google_VariantSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_VariantSet @@ -1490,6 +1501,7 @@ public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBod $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); } + /** * Returns a list of all variant sets matching search criteria. * @@ -1505,12 +1517,12 @@ public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBod $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); } + /** * Updates a variant set's metadata. All other modifications are silently * ignored. (variantsets.update) * - * @param string $variantSetId - * The ID of the variant to be updated. + * @param string $variantSetId The ID of the variant to be updated. * @param Google_VariantSet $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_VariantSet @@ -1539,11 +1551,11 @@ class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collectio protected $pairedFastqSourceDataType = ''; public $readGroupSetIds; + public function setBamSourceUris($bamSourceUris) { $this->bamSourceUris = $bamSourceUris; } - public function getBamSourceUris() { return $this->bamSourceUris; @@ -1552,7 +1564,6 @@ public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -1561,7 +1572,6 @@ public function setInterleavedFastqSource(Google_Service_Genomics_InterleavedFas { $this->interleavedFastqSource = $interleavedFastqSource; } - public function getInterleavedFastqSource() { return $this->interleavedFastqSource; @@ -1570,7 +1580,6 @@ public function setPairedFastqSource(Google_Service_Genomics_PairedFastqSource $ { $this->pairedFastqSource = $pairedFastqSource; } - public function getPairedFastqSource() { return $this->pairedFastqSource; @@ -1579,12 +1588,10 @@ public function setReadGroupSetIds($readGroupSetIds) { $this->readGroupSetIds = $readGroupSetIds; } - public function getReadGroupSetIds() { return $this->readGroupSetIds; } - } class Google_Service_Genomics_AlignReadGroupSetsResponse extends Google_Model @@ -1593,16 +1600,15 @@ class Google_Service_Genomics_AlignReadGroupSetsResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_Call extends Google_Collection @@ -1617,11 +1623,11 @@ class Google_Service_Genomics_Call extends Google_Collection public $info; public $phaseset; + public function setCallSetId($callSetId) { $this->callSetId = $callSetId; } - public function getCallSetId() { return $this->callSetId; @@ -1630,7 +1636,6 @@ public function setCallSetName($callSetName) { $this->callSetName = $callSetName; } - public function getCallSetName() { return $this->callSetName; @@ -1639,7 +1644,6 @@ public function setGenotype($genotype) { $this->genotype = $genotype; } - public function getGenotype() { return $this->genotype; @@ -1648,7 +1652,6 @@ public function setGenotypeLikelihood($genotypeLikelihood) { $this->genotypeLikelihood = $genotypeLikelihood; } - public function getGenotypeLikelihood() { return $this->genotypeLikelihood; @@ -1657,7 +1660,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -1666,20 +1668,14 @@ public function setPhaseset($phaseset) { $this->phaseset = $phaseset; } - public function getPhaseset() { return $this->phaseset; } - } class Google_Service_Genomics_CallInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection @@ -1691,11 +1687,11 @@ class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection public $readGroupSetIds; public $sourceUris; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -1704,7 +1700,6 @@ public function setReadGroupSetIds($readGroupSetIds) { $this->readGroupSetIds = $readGroupSetIds; } - public function getReadGroupSetIds() { return $this->readGroupSetIds; @@ -1713,12 +1708,10 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; } - } class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model @@ -1727,16 +1720,15 @@ class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_CallSet extends Google_Collection @@ -1751,11 +1743,11 @@ class Google_Service_Genomics_CallSet extends Google_Collection public $sampleId; public $variantSetIds; + public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -1764,7 +1756,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1773,7 +1764,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -1782,7 +1772,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1791,7 +1780,6 @@ public function setSampleId($sampleId) { $this->sampleId = $sampleId; } - public function getSampleId() { return $this->sampleId; @@ -1800,20 +1788,14 @@ public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; } - public function getVariantSetIds() { return $this->variantSetIds; } - } class Google_Service_Genomics_CallSetInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_CigarUnit extends Google_Model @@ -1824,11 +1806,11 @@ class Google_Service_Genomics_CigarUnit extends Google_Model public $operationLength; public $referenceSequence; + public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; @@ -1837,7 +1819,6 @@ public function setOperationLength($operationLength) { $this->operationLength = $operationLength; } - public function getOperationLength() { return $this->operationLength; @@ -1846,12 +1827,10 @@ public function setReferenceSequence($referenceSequence) { $this->referenceSequence = $referenceSequence; } - public function getReferenceSequence() { return $this->referenceSequence; } - } class Google_Service_Genomics_CoverageBucket extends Google_Model @@ -1862,11 +1841,11 @@ class Google_Service_Genomics_CoverageBucket extends Google_Model protected $rangeType = 'Google_Service_Genomics_Range'; protected $rangeDataType = ''; + public function setMeanCoverage($meanCoverage) { $this->meanCoverage = $meanCoverage; } - public function getMeanCoverage() { return $this->meanCoverage; @@ -1875,12 +1854,10 @@ public function setRange(Google_Service_Genomics_Range $range) { $this->range = $range; } - public function getRange() { return $this->range; } - } class Google_Service_Genomics_Dataset extends Google_Model @@ -1892,11 +1869,11 @@ class Google_Service_Genomics_Dataset extends Google_Model public $name; public $projectNumber; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1905,7 +1882,6 @@ public function setIsPublic($isPublic) { $this->isPublic = $isPublic; } - public function getIsPublic() { return $this->isPublic; @@ -1914,7 +1890,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1923,12 +1898,10 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; } - } class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection @@ -1943,11 +1916,11 @@ class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collec public $projectNumber; public $sourceUris; + public function setAlign($align) { $this->align = $align; } - public function getAlign() { return $this->align; @@ -1956,7 +1929,6 @@ public function setCallVariants($callVariants) { $this->callVariants = $callVariants; } - public function getCallVariants() { return $this->callVariants; @@ -1965,7 +1937,6 @@ public function setGcsOutputPath($gcsOutputPath) { $this->gcsOutputPath = $gcsOutputPath; } - public function getGcsOutputPath() { return $this->gcsOutputPath; @@ -1974,7 +1945,6 @@ public function setPairedSourceUris($pairedSourceUris) { $this->pairedSourceUris = $pairedSourceUris; } - public function getPairedSourceUris() { return $this->pairedSourceUris; @@ -1983,7 +1953,6 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -1992,12 +1961,10 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; } - } class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model @@ -2006,16 +1973,15 @@ class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_ExportReadGroupSetsRequest extends Google_Collection @@ -2028,11 +1994,11 @@ class Google_Service_Genomics_ExportReadGroupSetsRequest extends Google_Collecti public $readGroupSetIds; public $referenceNames; + public function setExportUri($exportUri) { $this->exportUri = $exportUri; } - public function getExportUri() { return $this->exportUri; @@ -2041,7 +2007,6 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -2050,7 +2015,6 @@ public function setReadGroupSetIds($readGroupSetIds) { $this->readGroupSetIds = $readGroupSetIds; } - public function getReadGroupSetIds() { return $this->readGroupSetIds; @@ -2059,12 +2023,10 @@ public function setReferenceNames($referenceNames) { $this->referenceNames = $referenceNames; } - public function getReferenceNames() { return $this->referenceNames; } - } class Google_Service_Genomics_ExportReadGroupSetsResponse extends Google_Model @@ -2073,16 +2035,15 @@ class Google_Service_Genomics_ExportReadGroupSetsResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection @@ -2096,11 +2057,11 @@ class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection public $format; public $projectNumber; + public function setBigqueryDataset($bigqueryDataset) { $this->bigqueryDataset = $bigqueryDataset; } - public function getBigqueryDataset() { return $this->bigqueryDataset; @@ -2109,7 +2070,6 @@ public function setBigqueryTable($bigqueryTable) { $this->bigqueryTable = $bigqueryTable; } - public function getBigqueryTable() { return $this->bigqueryTable; @@ -2118,7 +2078,6 @@ public function setCallSetIds($callSetIds) { $this->callSetIds = $callSetIds; } - public function getCallSetIds() { return $this->callSetIds; @@ -2127,7 +2086,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -2136,12 +2094,10 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; } - } class Google_Service_Genomics_ExportVariantSetResponse extends Google_Model @@ -2150,16 +2106,15 @@ class Google_Service_Genomics_ExportVariantSetResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_FastqMetadata extends Google_Model @@ -2172,11 +2127,11 @@ class Google_Service_Genomics_FastqMetadata extends Google_Model public $readGroupName; public $sampleName; + public function setLibraryName($libraryName) { $this->libraryName = $libraryName; } - public function getLibraryName() { return $this->libraryName; @@ -2185,7 +2140,6 @@ public function setPlatformName($platformName) { $this->platformName = $platformName; } - public function getPlatformName() { return $this->platformName; @@ -2194,7 +2148,6 @@ public function setPlatformUnit($platformUnit) { $this->platformUnit = $platformUnit; } - public function getPlatformUnit() { return $this->platformUnit; @@ -2203,7 +2156,6 @@ public function setReadGroupName($readGroupName) { $this->readGroupName = $readGroupName; } - public function getReadGroupName() { return $this->readGroupName; @@ -2212,12 +2164,10 @@ public function setSampleName($sampleName) { $this->sampleName = $sampleName; } - public function getSampleName() { return $this->sampleName; } - } class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection @@ -2229,11 +2179,11 @@ class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collecti public $referenceSetId; public $sourceUris; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -2242,7 +2192,6 @@ public function setReferenceSetId($referenceSetId) { $this->referenceSetId = $referenceSetId; } - public function getReferenceSetId() { return $this->referenceSetId; @@ -2251,12 +2200,10 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; } - } class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Model @@ -2265,16 +2212,15 @@ class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection @@ -2285,11 +2231,11 @@ class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection public $format; public $sourceUris; + public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -2298,12 +2244,10 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; } - } class Google_Service_Genomics_ImportVariantsResponse extends Google_Model @@ -2312,16 +2256,15 @@ class Google_Service_Genomics_ImportVariantsResponse extends Google_Model ); public $jobId; + public function setJobId($jobId) { $this->jobId = $jobId; } - public function getJobId() { return $this->jobId; } - } class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection @@ -2333,11 +2276,11 @@ class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection protected $metadataDataType = ''; public $sourceUris; + public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -2346,12 +2289,10 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; } - } class Google_Service_Genomics_Job extends Google_Collection @@ -2370,11 +2311,11 @@ class Google_Service_Genomics_Job extends Google_Collection public $status; public $warnings; + public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -2383,7 +2324,6 @@ public function setDetailedStatus($detailedStatus) { $this->detailedStatus = $detailedStatus; } - public function getDetailedStatus() { return $this->detailedStatus; @@ -2392,7 +2332,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -2401,7 +2340,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2410,7 +2348,6 @@ public function setImportedIds($importedIds) { $this->importedIds = $importedIds; } - public function getImportedIds() { return $this->importedIds; @@ -2419,7 +2356,6 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -2428,7 +2364,6 @@ public function setRequest(Google_Service_Genomics_JobRequest $request) { $this->request = $request; } - public function getRequest() { return $this->request; @@ -2437,7 +2372,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2446,12 +2380,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_Genomics_JobRequest extends Google_Collection @@ -2463,11 +2395,11 @@ class Google_Service_Genomics_JobRequest extends Google_Collection public $source; public $type; + public function setDestination($destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -2476,7 +2408,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -2485,12 +2416,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Genomics_LinearAlignment extends Google_Collection @@ -2504,11 +2433,11 @@ class Google_Service_Genomics_LinearAlignment extends Google_Collection protected $positionType = 'Google_Service_Genomics_Position'; protected $positionDataType = ''; + public function setCigar($cigar) { $this->cigar = $cigar; } - public function getCigar() { return $this->cigar; @@ -2517,7 +2446,6 @@ public function setMappingQuality($mappingQuality) { $this->mappingQuality = $mappingQuality; } - public function getMappingQuality() { return $this->mappingQuality; @@ -2526,12 +2454,10 @@ public function setPosition(Google_Service_Genomics_Position $position) { $this->position = $position; } - public function getPosition() { return $this->position; } - } class Google_Service_Genomics_ListBasesResponse extends Google_Model @@ -2542,11 +2468,11 @@ class Google_Service_Genomics_ListBasesResponse extends Google_Model public $offset; public $sequence; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2555,7 +2481,6 @@ public function setOffset($offset) { $this->offset = $offset; } - public function getOffset() { return $this->offset; @@ -2564,12 +2489,10 @@ public function setSequence($sequence) { $this->sequence = $sequence; } - public function getSequence() { return $this->sequence; } - } class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection @@ -2582,11 +2505,11 @@ class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collect protected $coverageBucketsDataType = 'array'; public $nextPageToken; + public function setBucketWidth($bucketWidth) { $this->bucketWidth = $bucketWidth; } - public function getBucketWidth() { return $this->bucketWidth; @@ -2595,7 +2518,6 @@ public function setCoverageBuckets($coverageBuckets) { $this->coverageBuckets = $coverageBuckets; } - public function getCoverageBuckets() { return $this->coverageBuckets; @@ -2604,12 +2526,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection @@ -2621,11 +2541,11 @@ class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection protected $datasetsDataType = 'array'; public $nextPageToken; + public function setDatasets($datasets) { $this->datasets = $datasets; } - public function getDatasets() { return $this->datasets; @@ -2634,12 +2554,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection @@ -2650,16 +2568,15 @@ class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection protected $variantsType = 'Google_Service_Genomics_Variant'; protected $variantsDataType = 'array'; + public function setVariants($variants) { $this->variants = $variants; } - public function getVariants() { return $this->variants; } - } class Google_Service_Genomics_Metadata extends Google_Model @@ -2674,11 +2591,11 @@ class Google_Service_Genomics_Metadata extends Google_Model public $type; public $value; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2687,7 +2604,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2696,7 +2612,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -2705,7 +2620,6 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -2714,7 +2628,6 @@ public function setNumber($number) { $this->number = $number; } - public function getNumber() { return $this->number; @@ -2723,7 +2636,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -2732,20 +2644,14 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Genomics_MetadataInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_PairedFastqSource extends Google_Collection @@ -2758,11 +2664,11 @@ class Google_Service_Genomics_PairedFastqSource extends Google_Collection protected $metadataDataType = ''; public $secondSourceUris; + public function setFirstSourceUris($firstSourceUris) { $this->firstSourceUris = $firstSourceUris; } - public function getFirstSourceUris() { return $this->firstSourceUris; @@ -2771,7 +2677,6 @@ public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -2780,12 +2685,10 @@ public function setSecondSourceUris($secondSourceUris) { $this->secondSourceUris = $secondSourceUris; } - public function getSecondSourceUris() { return $this->secondSourceUris; } - } class Google_Service_Genomics_Position extends Google_Model @@ -2796,11 +2699,11 @@ class Google_Service_Genomics_Position extends Google_Model public $referenceName; public $reverseStrand; + public function setPosition($position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -2809,7 +2712,6 @@ public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -2818,12 +2720,10 @@ public function setReverseStrand($reverseStrand) { $this->reverseStrand = $reverseStrand; } - public function getReverseStrand() { return $this->reverseStrand; } - } class Google_Service_Genomics_Range extends Google_Model @@ -2834,11 +2734,11 @@ class Google_Service_Genomics_Range extends Google_Model public $referenceName; public $start; + public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -2847,7 +2747,6 @@ public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -2856,12 +2755,10 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; } - } class Google_Service_Genomics_Read extends Google_Collection @@ -2889,11 +2786,11 @@ class Google_Service_Genomics_Read extends Google_Collection public $secondaryAlignment; public $supplementaryAlignment; + public function setAlignedQuality($alignedQuality) { $this->alignedQuality = $alignedQuality; } - public function getAlignedQuality() { return $this->alignedQuality; @@ -2902,7 +2799,6 @@ public function setAlignedSequence($alignedSequence) { $this->alignedSequence = $alignedSequence; } - public function getAlignedSequence() { return $this->alignedSequence; @@ -2911,7 +2807,6 @@ public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) { $this->alignment = $alignment; } - public function getAlignment() { return $this->alignment; @@ -2920,7 +2815,6 @@ public function setDuplicateFragment($duplicateFragment) { $this->duplicateFragment = $duplicateFragment; } - public function getDuplicateFragment() { return $this->duplicateFragment; @@ -2929,7 +2823,6 @@ public function setFailedVendorQualityChecks($failedVendorQualityChecks) { $this->failedVendorQualityChecks = $failedVendorQualityChecks; } - public function getFailedVendorQualityChecks() { return $this->failedVendorQualityChecks; @@ -2938,7 +2831,6 @@ public function setFragmentLength($fragmentLength) { $this->fragmentLength = $fragmentLength; } - public function getFragmentLength() { return $this->fragmentLength; @@ -2947,7 +2839,6 @@ public function setFragmentName($fragmentName) { $this->fragmentName = $fragmentName; } - public function getFragmentName() { return $this->fragmentName; @@ -2956,7 +2847,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2965,7 +2855,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -2974,7 +2863,6 @@ public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePo { $this->nextMatePosition = $nextMatePosition; } - public function getNextMatePosition() { return $this->nextMatePosition; @@ -2983,7 +2871,6 @@ public function setNumberReads($numberReads) { $this->numberReads = $numberReads; } - public function getNumberReads() { return $this->numberReads; @@ -2992,7 +2879,6 @@ public function setProperPlacement($properPlacement) { $this->properPlacement = $properPlacement; } - public function getProperPlacement() { return $this->properPlacement; @@ -3001,7 +2887,6 @@ public function setReadGroupId($readGroupId) { $this->readGroupId = $readGroupId; } - public function getReadGroupId() { return $this->readGroupId; @@ -3010,7 +2895,6 @@ public function setReadGroupSetId($readGroupSetId) { $this->readGroupSetId = $readGroupSetId; } - public function getReadGroupSetId() { return $this->readGroupSetId; @@ -3019,7 +2903,6 @@ public function setReadNumber($readNumber) { $this->readNumber = $readNumber; } - public function getReadNumber() { return $this->readNumber; @@ -3028,7 +2911,6 @@ public function setSecondaryAlignment($secondaryAlignment) { $this->secondaryAlignment = $secondaryAlignment; } - public function getSecondaryAlignment() { return $this->secondaryAlignment; @@ -3037,12 +2919,10 @@ public function setSupplementaryAlignment($supplementaryAlignment) { $this->supplementaryAlignment = $supplementaryAlignment; } - public function getSupplementaryAlignment() { return $this->supplementaryAlignment; } - } class Google_Service_Genomics_ReadGroup extends Google_Collection @@ -3063,11 +2943,11 @@ class Google_Service_Genomics_ReadGroup extends Google_Collection public $referenceSetId; public $sampleId; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -3076,7 +2956,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3085,7 +2964,6 @@ public function setExperiment(Google_Service_Genomics_ReadGroupExperiment $exper { $this->experiment = $experiment; } - public function getExperiment() { return $this->experiment; @@ -3094,7 +2972,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3103,7 +2980,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -3112,7 +2988,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3121,7 +2996,6 @@ public function setPredictedInsertSize($predictedInsertSize) { $this->predictedInsertSize = $predictedInsertSize; } - public function getPredictedInsertSize() { return $this->predictedInsertSize; @@ -3130,7 +3004,6 @@ public function setPrograms($programs) { $this->programs = $programs; } - public function getPrograms() { return $this->programs; @@ -3139,7 +3012,6 @@ public function setReferenceSetId($referenceSetId) { $this->referenceSetId = $referenceSetId; } - public function getReferenceSetId() { return $this->referenceSetId; @@ -3148,12 +3020,10 @@ public function setSampleId($sampleId) { $this->sampleId = $sampleId; } - public function getSampleId() { return $this->sampleId; } - } class Google_Service_Genomics_ReadGroupExperiment extends Google_Model @@ -3165,11 +3035,11 @@ class Google_Service_Genomics_ReadGroupExperiment extends Google_Model public $platformUnit; public $sequencingCenter; + public function setInstrumentModel($instrumentModel) { $this->instrumentModel = $instrumentModel; } - public function getInstrumentModel() { return $this->instrumentModel; @@ -3178,7 +3048,6 @@ public function setLibraryId($libraryId) { $this->libraryId = $libraryId; } - public function getLibraryId() { return $this->libraryId; @@ -3187,7 +3056,6 @@ public function setPlatformUnit($platformUnit) { $this->platformUnit = $platformUnit; } - public function getPlatformUnit() { return $this->platformUnit; @@ -3196,20 +3064,14 @@ public function setSequencingCenter($sequencingCenter) { $this->sequencingCenter = $sequencingCenter; } - public function getSequencingCenter() { return $this->sequencingCenter; } - } class Google_Service_Genomics_ReadGroupInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_ReadGroupProgram extends Google_Model @@ -3222,11 +3084,11 @@ class Google_Service_Genomics_ReadGroupProgram extends Google_Model public $prevProgramId; public $version; + public function setCommandLine($commandLine) { $this->commandLine = $commandLine; } - public function getCommandLine() { return $this->commandLine; @@ -3235,7 +3097,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3244,7 +3105,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3253,7 +3113,6 @@ public function setPrevProgramId($prevProgramId) { $this->prevProgramId = $prevProgramId; } - public function getPrevProgramId() { return $this->prevProgramId; @@ -3262,12 +3121,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Genomics_ReadGroupSet extends Google_Collection @@ -3283,11 +3140,11 @@ class Google_Service_Genomics_ReadGroupSet extends Google_Collection protected $readGroupsDataType = 'array'; public $referenceSetId; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -3296,7 +3153,6 @@ public function setFilename($filename) { $this->filename = $filename; } - public function getFilename() { return $this->filename; @@ -3305,7 +3161,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3314,7 +3169,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3323,7 +3177,6 @@ public function setReadGroups($readGroups) { $this->readGroups = $readGroups; } - public function getReadGroups() { return $this->readGroups; @@ -3332,20 +3185,14 @@ public function setReferenceSetId($referenceSetId) { $this->referenceSetId = $referenceSetId; } - public function getReferenceSetId() { return $this->referenceSetId; } - } class Google_Service_Genomics_ReadInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_Reference extends Google_Collection @@ -3361,11 +3208,11 @@ class Google_Service_Genomics_Reference extends Google_Collection public $sourceAccessions; public $sourceURI; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3374,7 +3221,6 @@ public function setLength($length) { $this->length = $length; } - public function getLength() { return $this->length; @@ -3383,7 +3229,6 @@ public function setMd5checksum($md5checksum) { $this->md5checksum = $md5checksum; } - public function getMd5checksum() { return $this->md5checksum; @@ -3392,7 +3237,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3401,7 +3245,6 @@ public function setNcbiTaxonId($ncbiTaxonId) { $this->ncbiTaxonId = $ncbiTaxonId; } - public function getNcbiTaxonId() { return $this->ncbiTaxonId; @@ -3410,7 +3253,6 @@ public function setSourceAccessions($sourceAccessions) { $this->sourceAccessions = $sourceAccessions; } - public function getSourceAccessions() { return $this->sourceAccessions; @@ -3419,12 +3261,10 @@ public function setSourceURI($sourceURI) { $this->sourceURI = $sourceURI; } - public function getSourceURI() { return $this->sourceURI; } - } class Google_Service_Genomics_ReferenceBound extends Google_Model @@ -3434,11 +3274,11 @@ class Google_Service_Genomics_ReferenceBound extends Google_Model public $referenceName; public $upperBound; + public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -3447,12 +3287,10 @@ public function setUpperBound($upperBound) { $this->upperBound = $upperBound; } - public function getUpperBound() { return $this->upperBound; } - } class Google_Service_Genomics_ReferenceSet extends Google_Collection @@ -3469,11 +3307,11 @@ class Google_Service_Genomics_ReferenceSet extends Google_Collection public $sourceAccessions; public $sourceURI; + public function setAssemblyId($assemblyId) { $this->assemblyId = $assemblyId; } - public function getAssemblyId() { return $this->assemblyId; @@ -3482,7 +3320,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3491,7 +3328,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3500,7 +3336,6 @@ public function setMd5checksum($md5checksum) { $this->md5checksum = $md5checksum; } - public function getMd5checksum() { return $this->md5checksum; @@ -3509,7 +3344,6 @@ public function setNcbiTaxonId($ncbiTaxonId) { $this->ncbiTaxonId = $ncbiTaxonId; } - public function getNcbiTaxonId() { return $this->ncbiTaxonId; @@ -3518,7 +3352,6 @@ public function setReferenceIds($referenceIds) { $this->referenceIds = $referenceIds; } - public function getReferenceIds() { return $this->referenceIds; @@ -3527,7 +3360,6 @@ public function setSourceAccessions($sourceAccessions) { $this->sourceAccessions = $sourceAccessions; } - public function getSourceAccessions() { return $this->sourceAccessions; @@ -3536,12 +3368,10 @@ public function setSourceURI($sourceURI) { $this->sourceURI = $sourceURI; } - public function getSourceURI() { return $this->sourceURI; } - } class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection @@ -3554,11 +3384,11 @@ class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection public $pageToken; public $variantSetIds; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3567,7 +3397,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -3576,7 +3405,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -3585,12 +3413,10 @@ public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; } - public function getVariantSetIds() { return $this->variantSetIds; } - } class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection @@ -3602,11 +3428,11 @@ class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection protected $callSetsDataType = 'array'; public $nextPageToken; + public function setCallSets($callSets) { $this->callSets = $callSets; } - public function getCallSets() { return $this->callSets; @@ -3615,12 +3441,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Genomics_SearchJobsRequest extends Google_Collection @@ -3635,11 +3459,11 @@ class Google_Service_Genomics_SearchJobsRequest extends Google_Collection public $projectNumber; public $status; + public function setCreatedAfter($createdAfter) { $this->createdAfter = $createdAfter; } - public function getCreatedAfter() { return $this->createdAfter; @@ -3648,7 +3472,6 @@ public function setCreatedBefore($createdBefore) { $this->createdBefore = $createdBefore; } - public function getCreatedBefore() { return $this->createdBefore; @@ -3657,7 +3480,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -3666,7 +3488,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -3675,7 +3496,6 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -3684,12 +3504,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Genomics_SearchJobsResponse extends Google_Collection @@ -3701,11 +3519,11 @@ class Google_Service_Genomics_SearchJobsResponse extends Google_Collection protected $jobsDataType = 'array'; public $nextPageToken; + public function setJobs($jobs) { $this->jobs = $jobs; } - public function getJobs() { return $this->jobs; @@ -3714,12 +3532,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection @@ -3732,11 +3548,11 @@ class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collecti public $pageSize; public $pageToken; + public function setDatasetIds($datasetIds) { $this->datasetIds = $datasetIds; } - public function getDatasetIds() { return $this->datasetIds; @@ -3745,7 +3561,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3754,7 +3569,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -3763,12 +3577,10 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; } - } class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection @@ -3780,11 +3592,11 @@ class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collect protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; protected $readGroupSetsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3793,12 +3605,10 @@ public function setReadGroupSets($readGroupSets) { $this->readGroupSets = $readGroupSets; } - public function getReadGroupSets() { return $this->readGroupSets; } - } class Google_Service_Genomics_SearchReadsRequest extends Google_Collection @@ -3814,11 +3624,11 @@ class Google_Service_Genomics_SearchReadsRequest extends Google_Collection public $referenceName; public $start; + public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -3827,7 +3637,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -3836,7 +3645,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -3845,7 +3653,6 @@ public function setReadGroupIds($readGroupIds) { $this->readGroupIds = $readGroupIds; } - public function getReadGroupIds() { return $this->readGroupIds; @@ -3854,7 +3661,6 @@ public function setReadGroupSetIds($readGroupSetIds) { $this->readGroupSetIds = $readGroupSetIds; } - public function getReadGroupSetIds() { return $this->readGroupSetIds; @@ -3863,7 +3669,6 @@ public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -3872,12 +3677,10 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; } - } class Google_Service_Genomics_SearchReadsResponse extends Google_Collection @@ -3889,11 +3692,11 @@ class Google_Service_Genomics_SearchReadsResponse extends Google_Collection protected $alignmentsDataType = 'array'; public $nextPageToken; + public function setAlignments($alignments) { $this->alignments = $alignments; } - public function getAlignments() { return $this->alignments; @@ -3902,12 +3705,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection @@ -3920,11 +3721,11 @@ class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collecti public $pageSize; public $pageToken; + public function setAccessions($accessions) { $this->accessions = $accessions; } - public function getAccessions() { return $this->accessions; @@ -3933,7 +3734,6 @@ public function setMd5checksums($md5checksums) { $this->md5checksums = $md5checksums; } - public function getMd5checksums() { return $this->md5checksums; @@ -3942,7 +3742,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -3951,12 +3750,10 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; } - } class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection @@ -3968,11 +3765,11 @@ class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collect protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet'; protected $referenceSetsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3981,12 +3778,10 @@ public function setReferenceSets($referenceSets) { $this->referenceSets = $referenceSets; } - public function getReferenceSets() { return $this->referenceSets; } - } class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection @@ -4000,11 +3795,11 @@ class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection public $pageToken; public $referenceSetId; + public function setAccessions($accessions) { $this->accessions = $accessions; } - public function getAccessions() { return $this->accessions; @@ -4013,7 +3808,6 @@ public function setMd5checksums($md5checksums) { $this->md5checksums = $md5checksums; } - public function getMd5checksums() { return $this->md5checksums; @@ -4022,7 +3816,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -4031,7 +3824,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -4040,12 +3832,10 @@ public function setReferenceSetId($referenceSetId) { $this->referenceSetId = $referenceSetId; } - public function getReferenceSetId() { return $this->referenceSetId; } - } class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection @@ -4057,11 +3847,11 @@ class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection protected $referencesType = 'Google_Service_Genomics_Reference'; protected $referencesDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4070,12 +3860,10 @@ public function setReferences($references) { $this->references = $references; } - public function getReferences() { return $this->references; } - } class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection @@ -4087,11 +3875,11 @@ class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection public $pageSize; public $pageToken; + public function setDatasetIds($datasetIds) { $this->datasetIds = $datasetIds; } - public function getDatasetIds() { return $this->datasetIds; @@ -4100,7 +3888,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -4109,12 +3896,10 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; } - } class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection @@ -4126,11 +3911,11 @@ class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collectio protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; protected $variantSetsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4139,12 +3924,10 @@ public function setVariantSets($variantSets) { $this->variantSets = $variantSets; } - public function getVariantSets() { return $this->variantSets; } - } class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection @@ -4162,11 +3945,11 @@ class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection public $variantName; public $variantSetIds; + public function setCallSetIds($callSetIds) { $this->callSetIds = $callSetIds; } - public function getCallSetIds() { return $this->callSetIds; @@ -4175,7 +3958,6 @@ public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -4184,7 +3966,6 @@ public function setMaxCalls($maxCalls) { $this->maxCalls = $maxCalls; } - public function getMaxCalls() { return $this->maxCalls; @@ -4193,7 +3974,6 @@ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } - public function getPageSize() { return $this->pageSize; @@ -4202,7 +3982,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -4211,7 +3990,6 @@ public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -4220,7 +3998,6 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; @@ -4229,7 +4006,6 @@ public function setVariantName($variantName) { $this->variantName = $variantName; } - public function getVariantName() { return $this->variantName; @@ -4238,12 +4014,10 @@ public function setVariantSetIds($variantSetIds) { $this->variantSetIds = $variantSetIds; } - public function getVariantSetIds() { return $this->variantSetIds; } - } class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection @@ -4255,11 +4029,11 @@ class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection protected $variantsType = 'Google_Service_Genomics_Variant'; protected $variantsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4268,12 +4042,10 @@ public function setVariants($variants) { $this->variants = $variants; } - public function getVariants() { return $this->variants; } - } class Google_Service_Genomics_Variant extends Google_Collection @@ -4296,11 +4068,11 @@ class Google_Service_Genomics_Variant extends Google_Collection public $start; public $variantSetId; + public function setAlternateBases($alternateBases) { $this->alternateBases = $alternateBases; } - public function getAlternateBases() { return $this->alternateBases; @@ -4309,7 +4081,6 @@ public function setCalls($calls) { $this->calls = $calls; } - public function getCalls() { return $this->calls; @@ -4318,7 +4089,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -4327,7 +4097,6 @@ public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -4336,7 +4105,6 @@ public function setFilter($filter) { $this->filter = $filter; } - public function getFilter() { return $this->filter; @@ -4345,7 +4113,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4354,7 +4121,6 @@ public function setInfo($info) { $this->info = $info; } - public function getInfo() { return $this->info; @@ -4363,7 +4129,6 @@ public function setNames($names) { $this->names = $names; } - public function getNames() { return $this->names; @@ -4372,7 +4137,6 @@ public function setQuality($quality) { $this->quality = $quality; } - public function getQuality() { return $this->quality; @@ -4381,7 +4145,6 @@ public function setReferenceBases($referenceBases) { $this->referenceBases = $referenceBases; } - public function getReferenceBases() { return $this->referenceBases; @@ -4390,7 +4153,6 @@ public function setReferenceName($referenceName) { $this->referenceName = $referenceName; } - public function getReferenceName() { return $this->referenceName; @@ -4399,7 +4161,6 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; @@ -4408,20 +4169,14 @@ public function setVariantSetId($variantSetId) { $this->variantSetId = $variantSetId; } - public function getVariantSetId() { return $this->variantSetId; } - } class Google_Service_Genomics_VariantInfo extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Genomics_VariantSet extends Google_Collection @@ -4436,11 +4191,11 @@ class Google_Service_Genomics_VariantSet extends Google_Collection protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; protected $referenceBoundsDataType = 'array'; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -4449,7 +4204,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4458,7 +4212,6 @@ public function setMetadata($metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -4467,10 +4220,8 @@ public function setReferenceBounds($referenceBounds) { $this->referenceBounds = $referenceBounds; } - public function getReferenceBounds() { return $this->referenceBounds; } - } From 254e5b6202463c11e7c3d67cce12bf86c82cbbe5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:31 -0800 Subject: [PATCH 0454/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 177 ++++++++++++++----------------------- 1 file changed, 67 insertions(+), 110 deletions(-) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index 79e0b8cb2..9be971943 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -19,8 +19,8 @@ * Service definition for Dns (v1beta1). * *

- * The Google Cloud DNS API provides services for configuring and serving authoritative DNS records. - *

+ * The Google Cloud DNS API provides services for configuring and serving + * authoritative DNS records.

* *

* For more information about this service, see the API @@ -32,11 +32,14 @@ class Google_Service_Dns extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READONLY = "https://www.googleapis.com/auth/ndev.clouddns.readonly"; + const NDEV_CLOUDDNS_READONLY = + "https://www.googleapis.com/auth/ndev.clouddns.readonly"; /** View and manage your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READWRITE = "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; + const NDEV_CLOUDDNS_READWRITE = + "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; public $changes; public $managedZones; @@ -279,10 +282,9 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource /** * Atomically update the ResourceRecordSet collection. (changes.create) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. * @param Google_Change $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dns_Change @@ -293,15 +295,15 @@ public function create($project, $managedZone, Google_Service_Dns_Change $postBo $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Dns_Change"); } + /** * Fetch the representation of an existing Change. (changes.get) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param string $changeId - * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. + * @param string $changeId The identifier of the requested change, from a + * previous ResourceRecordSetsChangeResponse. * @param array $optParams Optional parameters. * @return Google_Service_Dns_Change */ @@ -311,25 +313,24 @@ public function get($project, $managedZone, $changeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dns_Change"); } + /** * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. * @param array $optParams Optional parameters. * - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param string sortBy - * Sorting criterion. The only supported value is change sequence. - * @opt_param string sortOrder - * Sorting order direction: 'ascending' or 'descending'. + * @opt_param int maxResults Optional. Maximum number of results to be returned. + * If unspecified, the server will decide how many results to return. + * @opt_param string pageToken Optional. A tag returned by a previous list + * request that was truncated. Use this parameter to continue a previous list + * request. + * @opt_param string sortBy Sorting criterion. The only supported value is + * change sequence. + * @opt_param string sortOrder Sorting order direction: 'ascending' or + * 'descending'. * @return Google_Service_Dns_ChangesListResponse */ public function listChanges($project, $managedZone, $optParams = array()) @@ -354,8 +355,7 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource /** * Create a new ManagedZone. (managedZones.create) * - * @param string $project - * Identifies the project addressed by this request. + * @param string $project Identifies the project addressed by this request. * @param Google_ManagedZone $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dns_ManagedZone @@ -366,13 +366,13 @@ public function create($project, Google_Service_Dns_ManagedZone $postBody, $optP $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); } + /** * Delete a previously created ManagedZone. (managedZones.delete) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. * @param array $optParams Optional parameters. */ public function delete($project, $managedZone, $optParams = array()) @@ -381,13 +381,13 @@ public function delete($project, $managedZone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Fetch the representation of an existing ManagedZone. (managedZones.get) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. * @param array $optParams Optional parameters. * @return Google_Service_Dns_ManagedZone */ @@ -397,20 +397,19 @@ public function get($project, $managedZone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); } + /** * Enumerate ManagedZones that have been created but not yet deleted. * (managedZones.listManagedZones) * - * @param string $project - * Identifies the project addressed by this request. + * @param string $project Identifies the project addressed by this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. + * @opt_param string pageToken Optional. A tag returned by a previous list + * request that was truncated. Use this parameter to continue a previous list + * request. + * @opt_param int maxResults Optional. Maximum number of results to be returned. + * If unspecified, the server will decide how many results to return. * @return Google_Service_Dns_ManagedZonesListResponse */ public function listManagedZones($project, $optParams = array()) @@ -435,8 +434,7 @@ class Google_Service_Dns_Projects_Resource extends Google_Service_Resource /** * Fetch the representation of an existing Project. (projects.get) * - * @param string $project - * Identifies the project addressed by this request. + * @param string $project Identifies the project addressed by this request. * @param array $optParams Optional parameters. * @return Google_Service_Dns_Project */ @@ -463,23 +461,20 @@ class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Reso * Enumerate ResourceRecordSets that have been created but not yet deleted. * (resourceRecordSets.listResourceRecordSets) * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $project Identifies the project addressed by this request. + * @param string $managedZone Identifies the managed zone addressed by this + * request. Can be the managed zone name or id. * @param array $optParams Optional parameters. * - * @opt_param string name - * Restricts the list to return only records with this fully qualified domain name. - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param string type - * Restricts the list to return only records of this type. If present, the "name" parameter must - * also be present. + * @opt_param string name Restricts the list to return only records with this + * fully qualified domain name. + * @opt_param int maxResults Optional. Maximum number of results to be returned. + * If unspecified, the server will decide how many results to return. + * @opt_param string pageToken Optional. A tag returned by a previous list + * request that was truncated. Use this parameter to continue a previous list + * request. + * @opt_param string type Restricts the list to return only records of this + * type. If present, the "name" parameter must also be present. * @return Google_Service_Dns_ResourceRecordSetsListResponse */ public function listResourceRecordSets($project, $managedZone, $optParams = array()) @@ -507,11 +502,11 @@ class Google_Service_Dns_Change extends Google_Collection public $startTime; public $status; + public function setAdditions($additions) { $this->additions = $additions; } - public function getAdditions() { return $this->additions; @@ -520,7 +515,6 @@ public function setDeletions($deletions) { $this->deletions = $deletions; } - public function getDeletions() { return $this->deletions; @@ -529,7 +523,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -538,7 +531,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -547,7 +539,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -556,12 +547,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Dns_ChangesListResponse extends Google_Collection @@ -574,11 +563,11 @@ class Google_Service_Dns_ChangesListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setChanges($changes) { $this->changes = $changes; } - public function getChanges() { return $this->changes; @@ -587,7 +576,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -596,12 +584,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Dns_ManagedZone extends Google_Collection @@ -617,11 +603,11 @@ class Google_Service_Dns_ManagedZone extends Google_Collection public $name; public $nameServers; + public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -630,7 +616,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -639,7 +624,6 @@ public function setDnsName($dnsName) { $this->dnsName = $dnsName; } - public function getDnsName() { return $this->dnsName; @@ -648,7 +632,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -657,7 +640,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -666,7 +648,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -675,12 +656,10 @@ public function setNameServers($nameServers) { $this->nameServers = $nameServers; } - public function getNameServers() { return $this->nameServers; } - } class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection @@ -693,11 +672,11 @@ class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection protected $managedZonesDataType = 'array'; public $nextPageToken; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -706,7 +685,6 @@ public function setManagedZones($managedZones) { $this->managedZones = $managedZones; } - public function getManagedZones() { return $this->managedZones; @@ -715,12 +693,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Dns_Project extends Google_Model @@ -733,11 +709,11 @@ class Google_Service_Dns_Project extends Google_Model protected $quotaType = 'Google_Service_Dns_Quota'; protected $quotaDataType = ''; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -746,7 +722,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -755,7 +730,6 @@ public function setNumber($number) { $this->number = $number; } - public function getNumber() { return $this->number; @@ -764,12 +738,10 @@ public function setQuota(Google_Service_Dns_Quota $quota) { $this->quota = $quota; } - public function getQuota() { return $this->quota; } - } class Google_Service_Dns_Quota extends Google_Model @@ -784,11 +756,11 @@ class Google_Service_Dns_Quota extends Google_Model public $rrsetsPerManagedZone; public $totalRrdataSizePerChange; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -797,7 +769,6 @@ public function setManagedZones($managedZones) { $this->managedZones = $managedZones; } - public function getManagedZones() { return $this->managedZones; @@ -806,7 +777,6 @@ public function setResourceRecordsPerRrset($resourceRecordsPerRrset) { $this->resourceRecordsPerRrset = $resourceRecordsPerRrset; } - public function getResourceRecordsPerRrset() { return $this->resourceRecordsPerRrset; @@ -815,7 +785,6 @@ public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange) { $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange; } - public function getRrsetAdditionsPerChange() { return $this->rrsetAdditionsPerChange; @@ -824,7 +793,6 @@ public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange) { $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange; } - public function getRrsetDeletionsPerChange() { return $this->rrsetDeletionsPerChange; @@ -833,7 +801,6 @@ public function setRrsetsPerManagedZone($rrsetsPerManagedZone) { $this->rrsetsPerManagedZone = $rrsetsPerManagedZone; } - public function getRrsetsPerManagedZone() { return $this->rrsetsPerManagedZone; @@ -842,12 +809,10 @@ public function setTotalRrdataSizePerChange($totalRrdataSizePerChange) { $this->totalRrdataSizePerChange = $totalRrdataSizePerChange; } - public function getTotalRrdataSizePerChange() { return $this->totalRrdataSizePerChange; } - } class Google_Service_Dns_ResourceRecordSet extends Google_Collection @@ -861,11 +826,11 @@ class Google_Service_Dns_ResourceRecordSet extends Google_Collection public $ttl; public $type; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -874,7 +839,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -883,7 +847,6 @@ public function setRrdatas($rrdatas) { $this->rrdatas = $rrdatas; } - public function getRrdatas() { return $this->rrdatas; @@ -892,7 +855,6 @@ public function setTtl($ttl) { $this->ttl = $ttl; } - public function getTtl() { return $this->ttl; @@ -901,12 +863,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection @@ -919,11 +879,11 @@ class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collectio protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; protected $rrsetsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -932,7 +892,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -941,10 +900,8 @@ public function setRrsets($rrsets) { $this->rrsets = $rrsets; } - public function getRrsets() { return $this->rrsets; } - } From fcf7eb203f13204cfa4b5e5e10747ef7d20bb16c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:32 -0800 Subject: [PATCH 0455/1274] Updated AdSenseHost.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSenseHost.php | 412 ++++++++++------------------- 1 file changed, 147 insertions(+), 265 deletions(-) diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index 6c24f68cf..cf9e353c1 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -19,8 +19,8 @@ * Service definition for AdSenseHost (v4.1). * *

- * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities. - *

+ * Gives AdSense Hosts access to report generation, ad code generation, and + * publisher management capabilities.

* *

* For more information about this service, see the API @@ -32,7 +32,8 @@ class Google_Service_AdSenseHost extends Google_Service { /** View and manage your AdSense host data and associated accounts. */ - const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost"; + const ADSENSEHOST = + "https://www.googleapis.com/auth/adsensehost"; public $accounts; public $accounts_adclients; @@ -643,8 +644,7 @@ class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resour /** * Get information about the selected associated AdSense account. (accounts.get) * - * @param string $accountId - * Account to get information about. + * @param string $accountId Account to get information about. * @param array $optParams Optional parameters. * @return Google_Service_AdSenseHost_Account */ @@ -654,12 +654,12 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSenseHost_Account"); } + /** * List hosted accounts associated with this AdSense account by ad client id. * (accounts.listAccounts) * - * @param string $filterAdClientId - * Ad clients to list accounts for. + * @param string $filterAdClientId Ad clients to list accounts for. * @param array $optParams Optional parameters. * @return Google_Service_AdSenseHost_Accounts */ @@ -686,10 +686,8 @@ class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Servi * 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 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 */ @@ -699,19 +697,19 @@ public function get($accountId, $adClientId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); } + /** * List all hosted ad clients in the specified hosted account. * (adclients.listAccountsAdclients) * - * @param string $accountId - * Account for which to list ad clients. + * @param string $accountId Account for which to list ad clients. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of ad clients to include in + * the response, used for paging. * @return Google_Service_AdSenseHost_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -736,12 +734,9 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service * 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 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 */ @@ -751,15 +746,13 @@ public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit"); } + /** * Get the specified host ad unit in this AdSense account. (adunits.get) * - * @param string $accountId - * Account which contains the ad unit. - * @param string $adClientId - * Ad client for which to get ad unit. - * @param string $adUnitId - * Ad unit to get. + * @param 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 */ @@ -769,20 +762,18 @@ public function get($accountId, $adClientId, $adUnitId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit"); } + /** * Get ad code for the specified ad unit, attaching the specified host custom * channels. (adunits.getAdCode) * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. + * @param 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. + * @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()) @@ -791,14 +782,13 @@ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array $params = array_merge($params, $optParams); return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode"); } + /** * Insert the supplied ad unit into the specified publisher AdSense account. * (adunits.insert) * - * @param string $accountId - * Account which will contain the ad unit. - * @param string $adClientId - * Ad client into which to insert the ad unit. + * @param 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 @@ -809,23 +799,22 @@ public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUni $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit"); } + /** * List all ad units in the specified publisher's AdSense account. * (adunits.listAccountsAdunits) * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client for which to list ad units. + * @param string $accountId Account which contains the ad client. + * @param string $adClientId Ad client for which to list ad units. * @param array $optParams Optional parameters. * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. + * @opt_param bool includeInactive Whether to include inactive ad units. + * Default: true. + * @opt_param string pageToken A continuation token, used to page through ad + * units. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of ad units to include in the + * response, used for paging. * @return Google_Service_AdSenseHost_AdUnits */ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) @@ -834,16 +823,14 @@ public function listAccountsAdunits($accountId, $adClientId, $optParams = array( $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits"); } + /** * Update the supplied ad unit in the specified publisher AdSense account. This * method supports patch semantics. (adunits.patch) * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit to get. + * @param 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 @@ -854,14 +841,13 @@ public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSense $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit"); } + /** * Update the supplied ad unit in the specified publisher AdSense account. * (adunits.update) * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client which contains the ad unit. + * @param 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 @@ -889,31 +875,24 @@ class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service * 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 string $accountId Hosted account upon which to report. + * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" + * format, inclusive. + * @param string $endDate End of the date range to report on in "YYYY-MM-DD" + * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param string maxResults The maximum number of rows of report data to + * return. + * @opt_param string filter Filters to be run on the report. + * @opt_param string startIndex Index of the first row of report data to return. + * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSenseHost_Report */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -939,8 +918,7 @@ class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resou * Get information about one of the ad clients in the Host AdSense account. * (adclients.get) * - * @param string $adClientId - * Ad client to get. + * @param string $adClientId Ad client to get. * @param array $optParams Optional parameters. * @return Google_Service_AdSenseHost_AdClient */ @@ -950,16 +928,17 @@ public function get($adClientId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); } + /** * List all host ad clients in this AdSense account. (adclients.listAdclients) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of ad clients to include in + * the response, used for paging. * @return Google_Service_AdSenseHost_AdClients */ public function listAdclients($optParams = array()) @@ -985,16 +964,12 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser * 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 string $productCode Products to associate with the user. + * @param string $websiteUrl The URL of the user's hosted website. * @param array $optParams Optional parameters. * - * @opt_param string websiteLocale - * The locale of the user's hosted website. - * @opt_param string userLocale - * The preferred locale of the user. + * @opt_param string websiteLocale The locale of the user's hosted website. + * @opt_param string userLocale The preferred locale of the user. * @return Google_Service_AdSenseHost_AssociationSession */ public function start($productCode, $websiteUrl, $optParams = array()) @@ -1003,12 +978,12 @@ public function start($productCode, $websiteUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); } + /** * Verify an association session after the association callback returns from * AdSense signup. (associationsessions.verify) * - * @param string $token - * The token returned to the association callback URL. + * @param string $token The token returned to the association callback URL. * @param array $optParams Optional parameters. * @return Google_Service_AdSenseHost_AssociationSession */ @@ -1035,10 +1010,8 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_ * 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 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 */ @@ -1048,14 +1021,13 @@ public function delete($adClientId, $customChannelId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel"); } + /** * Get a specific custom channel from the host AdSense account. * (customchannels.get) * - * @param string $adClientId - * Ad client from which to get the custom channel. - * @param string $customChannelId - * Custom channel to get. + * @param 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 */ @@ -1065,11 +1037,12 @@ public function get($adClientId, $customChannelId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel"); } + /** * Add a new custom channel to the host AdSense account. (customchannels.insert) * - * @param string $adClientId - * Ad client to which the new custom channel will be added. + * @param 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 @@ -1080,19 +1053,19 @@ public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $po $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel"); } + /** * List all host custom channels in this AdSense account. * (customchannels.listCustomchannels) * - * @param string $adClientId - * Ad client for which to list custom channels. + * @param string $adClientId Ad client for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of custom channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through custom + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of custom channels to include + * in the response, used for paging. * @return Google_Service_AdSenseHost_CustomChannels */ public function listCustomchannels($adClientId, $optParams = array()) @@ -1101,14 +1074,14 @@ public function listCustomchannels($adClientId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels"); } + /** * Update a custom channel in the host AdSense account. This method supports * patch semantics. (customchannels.patch) * - * @param string $adClientId - * Ad client in which the custom channel will be updated. - * @param string $customChannelId - * Custom channel to get. + * @param 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 @@ -1119,11 +1092,12 @@ public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel"); } + /** * Update a custom channel in the host AdSense account. (customchannels.update) * - * @param string $adClientId - * Ad client in which the custom channel will be updated. + * @param 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 @@ -1152,29 +1126,23 @@ class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resourc * 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 string $startDate Start of the date range to report on in "YYYY-MM-DD" + * format, inclusive. + * @param string $endDate End of the date range to report on in "YYYY-MM-DD" + * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param string maxResults The maximum number of rows of report data to + * return. + * @opt_param string filter Filters to be run on the report. + * @opt_param string startIndex Index of the first row of report data to return. + * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSenseHost_Report */ public function generate($startDate, $endDate, $optParams = array()) @@ -1199,10 +1167,8 @@ class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Res /** * 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 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 */ @@ -1212,11 +1178,12 @@ public function delete($adClientId, $urlChannelId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel"); } + /** * Add a new URL channel to the host AdSense account. (urlchannels.insert) * - * @param string $adClientId - * Ad client to which the new URL channel will be added. + * @param 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 @@ -1227,19 +1194,19 @@ public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postB $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel"); } + /** * List all host URL channels in the host AdSense account. * (urlchannels.listUrlchannels) * - * @param string $adClientId - * Ad client for which to list URL channels. + * @param string $adClientId Ad client for which to list URL channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through URL channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of URL channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through URL + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of URL channels to include in + * the response, used for paging. * @return Google_Service_AdSenseHost_UrlChannels */ public function listUrlchannels($adClientId, $optParams = array()) @@ -1262,11 +1229,11 @@ class Google_Service_AdSenseHost_Account extends Google_Model public $name; public $status; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1275,7 +1242,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1284,7 +1250,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1293,12 +1258,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_AdSenseHost_Accounts extends Google_Collection @@ -1311,11 +1274,11 @@ class Google_Service_AdSenseHost_Accounts extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1324,7 +1287,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1333,12 +1295,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSenseHost_AdClient extends Google_Model @@ -1351,11 +1311,11 @@ class Google_Service_AdSenseHost_AdClient extends Google_Model public $productCode; public $supportsReporting; + public function setArcOptIn($arcOptIn) { $this->arcOptIn = $arcOptIn; } - public function getArcOptIn() { return $this->arcOptIn; @@ -1364,7 +1324,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1373,7 +1332,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1382,7 +1340,6 @@ public function setProductCode($productCode) { $this->productCode = $productCode; } - public function getProductCode() { return $this->productCode; @@ -1391,12 +1348,10 @@ public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; } - public function getSupportsReporting() { return $this->supportsReporting; } - } class Google_Service_AdSenseHost_AdClients extends Google_Collection @@ -1410,11 +1365,11 @@ class Google_Service_AdSenseHost_AdClients extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1423,7 +1378,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1432,7 +1386,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1441,12 +1394,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSenseHost_AdCode extends Google_Model @@ -1456,11 +1407,11 @@ 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; @@ -1469,12 +1420,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSenseHost_AdStyle extends Google_Model @@ -1488,11 +1437,11 @@ class Google_Service_AdSenseHost_AdStyle extends Google_Model protected $fontDataType = ''; public $kind; + public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors) { $this->colors = $colors; } - public function getColors() { return $this->colors; @@ -1501,7 +1450,6 @@ public function setCorners($corners) { $this->corners = $corners; } - public function getCorners() { return $this->corners; @@ -1510,7 +1458,6 @@ public function setFont(Google_Service_AdSenseHost_AdStyleFont $font) { $this->font = $font; } - public function getFont() { return $this->font; @@ -1519,12 +1466,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSenseHost_AdStyleColors extends Google_Model @@ -1537,11 +1482,11 @@ class Google_Service_AdSenseHost_AdStyleColors extends Google_Model public $title; public $url; + public function setBackground($background) { $this->background = $background; } - public function getBackground() { return $this->background; @@ -1550,7 +1495,6 @@ public function setBorder($border) { $this->border = $border; } - public function getBorder() { return $this->border; @@ -1559,7 +1503,6 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; @@ -1568,7 +1511,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1577,12 +1519,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AdSenseHost_AdStyleFont extends Google_Model @@ -1592,11 +1532,11 @@ 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; @@ -1605,12 +1545,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_AdSenseHost_AdUnit extends Google_Model @@ -1629,11 +1567,11 @@ class Google_Service_AdSenseHost_AdUnit extends Google_Model public $name; public $status; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1642,7 +1580,6 @@ public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAd { $this->contentAdsSettings = $contentAdsSettings; } - public function getContentAdsSettings() { return $this->contentAdsSettings; @@ -1651,7 +1588,6 @@ public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle) { $this->customStyle = $customStyle; } - public function getCustomStyle() { return $this->customStyle; @@ -1660,7 +1596,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1669,7 +1604,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1678,7 +1612,6 @@ public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMob { $this->mobileContentAdsSettings = $mobileContentAdsSettings; } - public function getMobileContentAdsSettings() { return $this->mobileContentAdsSettings; @@ -1687,7 +1620,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1696,12 +1628,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model @@ -1713,11 +1643,11 @@ class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model public $size; public $type; + public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption) { $this->backupOption = $backupOption; } - public function getBackupOption() { return $this->backupOption; @@ -1726,7 +1656,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -1735,12 +1664,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model @@ -1751,11 +1678,11 @@ class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Go public $type; public $url; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -1764,7 +1691,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1773,12 +1699,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model @@ -1790,11 +1714,11 @@ class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_M public $size; public $type; + public function setMarkupLanguage($markupLanguage) { $this->markupLanguage = $markupLanguage; } - public function getMarkupLanguage() { return $this->markupLanguage; @@ -1803,7 +1727,6 @@ public function setScriptingLanguage($scriptingLanguage) { $this->scriptingLanguage = $scriptingLanguage; } - public function getScriptingLanguage() { return $this->scriptingLanguage; @@ -1812,7 +1735,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -1821,12 +1743,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSenseHost_AdUnits extends Google_Collection @@ -1840,11 +1760,11 @@ class Google_Service_AdSenseHost_AdUnits extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1853,7 +1773,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1862,7 +1781,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1871,12 +1789,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSenseHost_AssociationSession extends Google_Collection @@ -1894,11 +1810,11 @@ class Google_Service_AdSenseHost_AssociationSession extends Google_Collection public $websiteLocale; public $websiteUrl; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1907,7 +1823,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1916,7 +1831,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1925,7 +1839,6 @@ public function setProductCodes($productCodes) { $this->productCodes = $productCodes; } - public function getProductCodes() { return $this->productCodes; @@ -1934,7 +1847,6 @@ public function setRedirectUrl($redirectUrl) { $this->redirectUrl = $redirectUrl; } - public function getRedirectUrl() { return $this->redirectUrl; @@ -1943,7 +1855,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1952,7 +1863,6 @@ public function setUserLocale($userLocale) { $this->userLocale = $userLocale; } - public function getUserLocale() { return $this->userLocale; @@ -1961,7 +1871,6 @@ public function setWebsiteLocale($websiteLocale) { $this->websiteLocale = $websiteLocale; } - public function getWebsiteLocale() { return $this->websiteLocale; @@ -1970,12 +1879,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_AdSenseHost_CustomChannel extends Google_Model @@ -1987,11 +1894,11 @@ class Google_Service_AdSenseHost_CustomChannel extends Google_Model public $kind; public $name; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -2000,7 +1907,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2009,7 +1915,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2018,12 +1923,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_AdSenseHost_CustomChannels extends Google_Collection @@ -2037,11 +1940,11 @@ class Google_Service_AdSenseHost_CustomChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2050,7 +1953,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2059,7 +1961,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2068,12 +1969,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSenseHost_Report extends Google_Collection @@ -2090,11 +1989,11 @@ class Google_Service_AdSenseHost_Report extends Google_Collection public $totals; public $warnings; + public function setAverages($averages) { $this->averages = $averages; } - public function getAverages() { return $this->averages; @@ -2103,7 +2002,6 @@ public function setHeaders($headers) { $this->headers = $headers; } - public function getHeaders() { return $this->headers; @@ -2112,7 +2010,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2121,7 +2018,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -2130,7 +2026,6 @@ public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; } - public function getTotalMatchedRows() { return $this->totalMatchedRows; @@ -2139,7 +2034,6 @@ public function setTotals($totals) { $this->totals = $totals; } - public function getTotals() { return $this->totals; @@ -2148,12 +2042,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_AdSenseHost_ReportHeaders extends Google_Model @@ -2164,11 +2056,11 @@ class Google_Service_AdSenseHost_ReportHeaders extends Google_Model public $name; public $type; + public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -2177,7 +2069,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2186,12 +2077,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSenseHost_UrlChannel extends Google_Model @@ -2202,11 +2091,11 @@ class Google_Service_AdSenseHost_UrlChannel extends Google_Model public $kind; public $urlPattern; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2215,7 +2104,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2224,12 +2112,10 @@ public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; } - public function getUrlPattern() { return $this->urlPattern; } - } class Google_Service_AdSenseHost_UrlChannels extends Google_Collection @@ -2243,11 +2129,11 @@ class Google_Service_AdSenseHost_UrlChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2256,7 +2142,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2265,7 +2150,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2274,10 +2158,8 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } From 8b2ea3de90feae90d35f0a1e69504e37c24b323c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:32 -0800 Subject: [PATCH 0456/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 1105 ++++++++++++------------------- 1 file changed, 424 insertions(+), 681 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 7e634c25e..8ad5c0b9e 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -19,8 +19,7 @@ * Service definition for Calendar (v3). * *

- * Lets you manipulate events and other calendar data. - *

+ * Lets you manipulate events and other calendar data.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Calendar extends Google_Service { /** Manage your calendars. */ - const CALENDAR = "https://www.googleapis.com/auth/calendar"; + const CALENDAR = + "https://www.googleapis.com/auth/calendar"; /** View your calendars. */ - const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly"; + const CALENDAR_READONLY = + "https://www.googleapis.com/auth/calendar.readonly"; public $acl; public $calendarList; @@ -885,10 +886,8 @@ 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 string $calendarId Calendar identifier. + * @param string $ruleId ACL rule identifier. * @param array $optParams Optional parameters. */ public function delete($calendarId, $ruleId, $optParams = array()) @@ -897,13 +896,12 @@ public function delete($calendarId, $ruleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns an access control rule. (acl.get) * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. + * @param string $calendarId Calendar identifier. + * @param string $ruleId ACL rule identifier. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule */ @@ -913,11 +911,11 @@ public function get($calendarId, $ruleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Calendar_AclRule"); } + /** * Creates an access control rule. (acl.insert) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule @@ -928,33 +926,30 @@ public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Calendar_AclRule"); } + /** * Returns the rules in the access control list for the calendar. (acl.listAcl) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All entries deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - If the syncToken expires, the - * server will respond with a 410 GONE response code and the client should clear its storage and - * perform a full synchronization without any syncToken. - Learn more about incremental - * synchronization. - Optional. The default is to return all entries. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param bool showDeleted - * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to - * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is - * False. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. All entries deleted since the previous list request will always be in + * the result set and it is not allowed to set showDeleted to False. If the + * syncToken expires, the server will respond with a 410 GONE response code and + * the client should clear its storage and perform a full synchronization + * without any syncToken. Learn more about incremental synchronization. + * Optional. The default is to return all entries. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param bool showDeleted Whether to include deleted ACLs in the result. + * Deleted ACLs are represented by role equal to "none". Deleted ACLs will + * always be included if syncToken is provided. Optional. The default is False. * @return Google_Service_Calendar_Acl */ public function listAcl($calendarId, $optParams = array()) @@ -963,14 +958,13 @@ public function listAcl($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Calendar_Acl"); } + /** * Updates an access control rule. This method supports patch semantics. * (acl.patch) * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. + * @param string $calendarId Calendar identifier. + * @param string $ruleId ACL rule identifier. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule @@ -981,13 +975,12 @@ public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $pos $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Calendar_AclRule"); } + /** * Updates an access control rule. (acl.update) * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. + * @param string $calendarId Calendar identifier. + * @param string $ruleId ACL rule identifier. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule @@ -998,34 +991,31 @@ public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $po $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Calendar_AclRule"); } + /** * Watch for changes to ACL resources. (acl.watch) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All entries deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - If the syncToken expires, the - * server will respond with a 410 GONE response code and the client should clear its storage and - * perform a full synchronization without any syncToken. - Learn more about incremental - * synchronization. - Optional. The default is to return all entries. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param bool showDeleted - * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to - * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is - * False. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. All entries deleted since the previous list request will always be in + * the result set and it is not allowed to set showDeleted to False. If the + * syncToken expires, the server will respond with a 410 GONE response code and + * the client should clear its storage and perform a full synchronization + * without any syncToken. Learn more about incremental synchronization. + * Optional. The default is to return all entries. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param bool showDeleted Whether to include deleted ACLs in the result. + * Deleted ACLs are represented by role equal to "none". Deleted ACLs will + * always be included if syncToken is provided. Optional. The default is False. * @return Google_Service_Calendar_Channel */ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1050,8 +1040,7 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou /** * Deletes an entry on the user's calendar list. (calendarList.delete) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. */ public function delete($calendarId, $optParams = array()) @@ -1060,11 +1049,11 @@ public function delete($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns an entry on the user's calendar list. (calendarList.get) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_CalendarListEntry */ @@ -1074,16 +1063,17 @@ public function get($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry"); } + /** * Adds an entry to the user's calendar list. (calendarList.insert) * * @param Google_CalendarListEntry $postBody * @param array $optParams Optional parameters. * - * @opt_param bool colorRgbFormat - * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors - * (RGB). If this feature is used, the index-based colorId field will be set to the best matching - * option automatically. Optional. The default is False. + * @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()) @@ -1092,38 +1082,35 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry"); } + /** * Returns entries on the user's calendar list. (calendarList.listCalendarList) * * @param array $optParams Optional parameters. * - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. If only read-only fields such as calendar properties or ACLs have changed, - * the entry won't be returned. All entries deleted and hidden since the previous list request will - * always be in the result set and it is not allowed to set showDeleted neither showHidden to - * False. - To ensure client state consistency minAccessRole query parameter cannot be specified - * together with nextSyncToken. - If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full synchronization without - * any syncToken. - Learn more about incremental synchronization. - Optional. The default is to return - * all entries. - * @opt_param bool showDeleted - * Whether to include deleted calendar list entries in the result. Optional. The default is False. - * @opt_param string minAccessRole - * The minimum access role for the user in the returned entires. Optional. The default is no - * restriction. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param bool showHidden - * Whether to show hidden entries. Optional. The default is False. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. If only read-only fields such as calendar properties or ACLs have + * changed, the entry won't be returned. All entries deleted and hidden since + * the previous list request will always be in the result set and it is not + * allowed to set showDeleted neither showHidden to False. To ensure client + * state consistency minAccessRole query parameter cannot be specified together + * with nextSyncToken. If the syncToken expires, the server will respond with a + * 410 GONE response code and the client should clear its storage and perform a + * full synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. + * @opt_param bool showDeleted Whether to include deleted calendar list entries + * in the result. Optional. The default is False. + * @opt_param string minAccessRole The minimum access role for the user in the + * returned entires. Optional. The default is no restriction. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param bool showHidden Whether to show hidden entries. Optional. The + * default is False. * @return Google_Service_Calendar_CalendarList */ public function listCalendarList($optParams = array()) @@ -1132,19 +1119,19 @@ public function listCalendarList($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Calendar_CalendarList"); } + /** * Updates an entry on the user's calendar list. This method supports patch * semantics. (calendarList.patch) * - * @param string $calendarId - * Calendar identifier. + * @param 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. + * @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()) @@ -1153,18 +1140,18 @@ public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $po $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry"); } + /** * Updates an entry on the user's calendar list. (calendarList.update) * - * @param string $calendarId - * Calendar identifier. + * @param 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. + * @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()) @@ -1173,39 +1160,36 @@ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $p $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry"); } + /** * Watch for changes to CalendarList resources. (calendarList.watch) * * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. If only read-only fields such as calendar properties or ACLs have changed, - * the entry won't be returned. All entries deleted and hidden since the previous list request will - * always be in the result set and it is not allowed to set showDeleted neither showHidden to - * False. - To ensure client state consistency minAccessRole query parameter cannot be specified - * together with nextSyncToken. - If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full synchronization without - * any syncToken. - Learn more about incremental synchronization. - Optional. The default is to return - * all entries. - * @opt_param bool showDeleted - * Whether to include deleted calendar list entries in the result. Optional. The default is False. - * @opt_param string minAccessRole - * The minimum access role for the user in the returned entires. Optional. The default is no - * restriction. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param bool showHidden - * Whether to show hidden entries. Optional. The default is False. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. If only read-only fields such as calendar properties or ACLs have + * changed, the entry won't be returned. All entries deleted and hidden since + * the previous list request will always be in the result set and it is not + * allowed to set showDeleted neither showHidden to False. To ensure client + * state consistency minAccessRole query parameter cannot be specified together + * with nextSyncToken. If the syncToken expires, the server will respond with a + * 410 GONE response code and the client should clear its storage and perform a + * full synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. + * @opt_param bool showDeleted Whether to include deleted calendar list entries + * in the result. Optional. The default is False. + * @opt_param string minAccessRole The minimum access role for the user in the + * returned entires. Optional. The default is no restriction. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param bool showHidden Whether to show hidden entries. Optional. The + * default is False. * @return Google_Service_Calendar_Channel */ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1231,8 +1215,7 @@ 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 string $calendarId Calendar identifier. * @param array $optParams Optional parameters. */ public function clear($calendarId, $optParams = array()) @@ -1241,11 +1224,11 @@ public function clear($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('clear', array($params)); } + /** * Deletes a secondary calendar. (calendars.delete) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. */ public function delete($calendarId, $optParams = array()) @@ -1254,11 +1237,11 @@ public function delete($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns metadata for a calendar. (calendars.get) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar */ @@ -1268,6 +1251,7 @@ public function get($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Calendar_Calendar"); } + /** * Creates a secondary calendar. (calendars.insert) * @@ -1281,12 +1265,12 @@ public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Calendar_Calendar"); } + /** * Updates metadata for a calendar. This method supports patch semantics. * (calendars.patch) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Calendar $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar @@ -1297,11 +1281,11 @@ public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Calendar_Calendar"); } + /** * Updates metadata for a calendar. (calendars.update) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Calendar $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar @@ -1378,14 +1362,12 @@ 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 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. + * @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()) { @@ -1393,25 +1375,25 @@ public function delete($calendarId, $eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns an event. (events.get) * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. + * @param 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. + * @opt_param string timeZone Time zone used in the response. Optional. The + * default is the time zone of the calendar. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Event */ public function get($calendarId, $eventId, $optParams = array()) @@ -1420,12 +1402,12 @@ public function get($calendarId, $eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Calendar_Event"); } + /** * Imports an event. This operation is used to add a private copy of an existing * event to a calendar. (events.import) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Event @@ -1436,20 +1418,19 @@ public function import($calendarId, Google_Service_Calendar_Event $postBody, $op $params = array_merge($params, $optParams); return $this->call('import', array($params), "Google_Service_Calendar_Event"); } + /** * Creates an event. (events.insert) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications - * Whether to send notifications about the creation of the new event. Optional. The default is - * False. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param bool sendNotifications Whether to send notifications about the + * creation of the new event. Optional. The default is False. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Event */ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1458,42 +1439,40 @@ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Calendar_Event"); } + /** * Returns instances of the specified recurring event. (events.instances) * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Recurring event identifier. + * @param string $calendarId Calendar identifier. + * @param string $eventId Recurring event identifier. * @param array $optParams Optional parameters. * - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events will still be included if singleEvents is False. Optional. The - * default is False. - * @opt_param string timeMax - * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to - * filter by start time. - * @opt_param bool alwaysIncludeEmail - * Whether to always include a value in the email field for the organizer, creator and attendees, - * even if no real email is available (i.e. a generated, non-working value will be provided). The - * use of this option is discouraged and should only be used by clients which cannot handle the - * absence of an email address value in the mentioned places. Optional. The default is False. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string timeMin - * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to - * filter by end time. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string originalStart - * The original start time of the instance in the result. Optional. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param bool showDeleted Whether to include deleted events (with status + * equals "cancelled") in the result. Cancelled instances of recurring events + * will still be included if singleEvents is False. Optional. The default is + * False. + * @opt_param string timeMax Upper bound (exclusive) for an event's start time + * to filter by. Optional. The default is not to filter by start time. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxResults Maximum number of events returned on one result + * page. By default the value is 250 events. The page size can never be larger + * than 2500 events. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param string timeMin Lower bound (inclusive) for an event's end time to + * filter by. Optional. The default is not to filter by end time. + * @opt_param string timeZone Time zone used in the response. Optional. The + * default is the time zone of the calendar. + * @opt_param string originalStart The original start time of the instance in + * the result. Optional. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Events */ public function instances($calendarId, $eventId, $optParams = array()) @@ -1502,88 +1481,77 @@ public function instances($calendarId, $eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('instances', array($params), "Google_Service_Calendar_Events"); } + /** * Returns events on the specified calendar. (events.listEvents) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * The order of the events returned in the result. Optional. The default is an unspecified, stable - * order. - * @opt_param bool showHiddenInvitations - * Whether to include hidden invitations in the result. Optional. The default is False. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All events deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - There are several query parameters - * that cannot be specified together with nextSyncToken to ensure consistency of the client state. - * These are: - - iCalUID - - orderBy - - privateExtendedProperty - - q - - sharedExtendedProperty - - - * timeMin - - timeMax - - updatedMin If the syncToken expires, the server will respond with a 410 - * GONE response code and the client should clear its storage and perform a full synchronization - * without any syncToken. - Learn more about incremental synchronization. - Optional. The default is to - * return all entries. - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only - * single instances of deleted events (but not the underlying recurring events) are returned. - * Optional. The default is False. - * @opt_param string iCalUID - * Specifies event ID in the iCalendar format to be included in the response. Optional. - * @opt_param string updatedMin - * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When - * specified, entries deleted since this time will always be included regardless of showDeleted. - * Optional. The default is not to filter by last modification time. - * @opt_param bool singleEvents - * Whether to expand recurring events into instances and only return single one-off events and - * instances of recurring events, but not the underlying recurring events themselves. Optional. The - * default is False. - * @opt_param string timeMax - * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to - * filter by start time. - * @opt_param bool alwaysIncludeEmail - * Whether to always include a value in the email field for the organizer, creator and attendees, - * even if no real email is available (i.e. a generated, non-working value will be provided). The - * use of this option is discouraged and should only be used by clients which cannot handle the - * absence of an email address value in the mentioned places. Optional. The default is False. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string q - * Free text search terms to find events that match these terms in any field, except for extended - * properties. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string timeMin - * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to - * filter by end time. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string privateExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only private properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param string sharedExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only shared properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param string orderBy The order of the events returned in the result. + * Optional. The default is an unspecified, stable order. + * @opt_param bool showHiddenInvitations Whether to include hidden invitations + * in the result. Optional. The default is False. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. All events deleted since the previous list request will always be in + * the result set and it is not allowed to set showDeleted to False. There are + * several query parameters that cannot be specified together with nextSyncToken + * to ensure consistency of the client state. + * + * These are: - iCalUID - orderBy - privateExtendedProperty - q - + * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken + * expires, the server will respond with a 410 GONE response code and the client + * should clear its storage and perform a full synchronization without any + * syncToken. Learn more about incremental synchronization. Optional. The + * default is to return all entries. + * @opt_param bool showDeleted Whether to include deleted events (with status + * equals "cancelled") in the result. Cancelled instances of recurring events + * (but not the underlying recurring event) will still be included if + * showDeleted and singleEvents are both False. If showDeleted and singleEvents + * are both True, only single instances of deleted events (but not the + * underlying recurring events) are returned. Optional. The default is False. + * @opt_param string iCalUID Specifies event ID in the iCalendar format to be + * included in the response. Optional. + * @opt_param string updatedMin Lower bound for an event's last modification + * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted + * since this time will always be included regardless of showDeleted. Optional. + * The default is not to filter by last modification time. + * @opt_param bool singleEvents Whether to expand recurring events into + * instances and only return single one-off events and instances of recurring + * events, but not the underlying recurring events themselves. Optional. The + * default is False. + * @opt_param string timeMax Upper bound (exclusive) for an event's start time + * to filter by. Optional. The default is not to filter by start time. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxResults Maximum number of events returned on one result + * page. By default the value is 250 events. The page size can never be larger + * than 2500 events. Optional. + * @opt_param string q Free text search terms to find events that match these + * terms in any field, except for extended properties. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param string timeMin Lower bound (inclusive) for an event's end time to + * filter by. Optional. The default is not to filter by end time. + * @opt_param string timeZone Time zone used in the response. Optional. The + * default is the time zone of the calendar. + * @opt_param string privateExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only private properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param string sharedExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only shared properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Events */ public function listEvents($calendarId, $optParams = array()) @@ -1592,21 +1560,20 @@ public function listEvents($calendarId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Calendar_Events"); } + /** * Moves an event to another calendar, i.e. changes an event's organizer. * (events.move) * - * @param string $calendarId - * Calendar identifier of the source calendar where the event currently is on. - * @param string $eventId - * Event identifier. - * @param string $destination - * Calendar identifier of the target calendar where the event is to be moved to. + * @param 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. + * @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()) @@ -1615,27 +1582,27 @@ public function move($calendarId, $eventId, $destination, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('move', array($params), "Google_Service_Calendar_Event"); } + /** * Updates an event. This method supports patch semantics. (events.patch) * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. + * @param string $calendarId Calendar identifier. + * @param string $eventId Event identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications - * Whether to send notifications about the event update (e.g. attendee's responses, title changes, - * etc.). Optional. The default is False. - * @opt_param bool alwaysIncludeEmail - * Whether to always include a value in the email field for the organizer, creator and attendees, - * even if no real email is available (i.e. a generated, non-working value will be provided). The - * use of this option is discouraged and should only be used by clients which cannot handle the - * absence of an email address value in the mentioned places. Optional. The default is False. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param bool sendNotifications Whether to send notifications about the + * event update (e.g. attendee's responses, title changes, etc.). Optional. The + * default is False. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Event */ public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1644,17 +1611,16 @@ public function patch($calendarId, $eventId, Google_Service_Calendar_Event $post $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Calendar_Event"); } + /** * Creates an event based on a simple text string. (events.quickAdd) * - * @param string $calendarId - * Calendar identifier. - * @param string $text - * The text describing the event to be created. + * @param 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. + * @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()) @@ -1663,27 +1629,27 @@ public function quickAdd($calendarId, $text, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event"); } + /** * Updates an event. (events.update) * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. + * @param string $calendarId Calendar identifier. + * @param string $eventId Event identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications - * Whether to send notifications about the event update (e.g. attendee's responses, title changes, - * etc.). Optional. The default is False. - * @opt_param bool alwaysIncludeEmail - * Whether to always include a value in the email field for the organizer, creator and attendees, - * even if no real email is available (i.e. a generated, non-working value will be provided). The - * use of this option is discouraged and should only be used by clients which cannot handle the - * absence of an email address value in the mentioned places. Optional. The default is False. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param bool sendNotifications Whether to send notifications about the + * event update (e.g. attendee's responses, title changes, etc.). Optional. The + * default is False. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Event */ public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1692,89 +1658,78 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Calendar_Event"); } + /** * Watch for changes to Events resources. (events.watch) * - * @param string $calendarId - * Calendar identifier. + * @param string $calendarId Calendar identifier. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * The order of the events returned in the result. Optional. The default is an unspecified, stable - * order. - * @opt_param bool showHiddenInvitations - * Whether to include hidden invitations in the result. Optional. The default is False. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All events deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - There are several query parameters - * that cannot be specified together with nextSyncToken to ensure consistency of the client state. - * These are: - - iCalUID - - orderBy - - privateExtendedProperty - - q - - sharedExtendedProperty - - - * timeMin - - timeMax - - updatedMin If the syncToken expires, the server will respond with a 410 - * GONE response code and the client should clear its storage and perform a full synchronization - * without any syncToken. - Learn more about incremental synchronization. - Optional. The default is to - * return all entries. - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only - * single instances of deleted events (but not the underlying recurring events) are returned. - * Optional. The default is False. - * @opt_param string iCalUID - * Specifies event ID in the iCalendar format to be included in the response. Optional. - * @opt_param string updatedMin - * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When - * specified, entries deleted since this time will always be included regardless of showDeleted. - * Optional. The default is not to filter by last modification time. - * @opt_param bool singleEvents - * Whether to expand recurring events into instances and only return single one-off events and - * instances of recurring events, but not the underlying recurring events themselves. Optional. The - * default is False. - * @opt_param string timeMax - * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to - * filter by start time. - * @opt_param bool alwaysIncludeEmail - * Whether to always include a value in the email field for the organizer, creator and attendees, - * even if no real email is available (i.e. a generated, non-working value will be provided). The - * use of this option is discouraged and should only be used by clients which cannot handle the - * absence of an email address value in the mentioned places. Optional. The default is False. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string q - * Free text search terms to find events that match these terms in any field, except for extended - * properties. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string timeMin - * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to - * filter by end time. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string privateExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only private properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param string sharedExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only shared properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param int maxAttendees - * The maximum number of attendees to include in the response. If there are more than the specified - * number of attendees, only the participant is returned. Optional. + * @opt_param string orderBy The order of the events returned in the result. + * Optional. The default is an unspecified, stable order. + * @opt_param bool showHiddenInvitations Whether to include hidden invitations + * in the result. Optional. The default is False. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. All events deleted since the previous list request will always be in + * the result set and it is not allowed to set showDeleted to False. There are + * several query parameters that cannot be specified together with nextSyncToken + * to ensure consistency of the client state. + * + * These are: - iCalUID - orderBy - privateExtendedProperty - q - + * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken + * expires, the server will respond with a 410 GONE response code and the client + * should clear its storage and perform a full synchronization without any + * syncToken. Learn more about incremental synchronization. Optional. The + * default is to return all entries. + * @opt_param bool showDeleted Whether to include deleted events (with status + * equals "cancelled") in the result. Cancelled instances of recurring events + * (but not the underlying recurring event) will still be included if + * showDeleted and singleEvents are both False. If showDeleted and singleEvents + * are both True, only single instances of deleted events (but not the + * underlying recurring events) are returned. Optional. The default is False. + * @opt_param string iCalUID Specifies event ID in the iCalendar format to be + * included in the response. Optional. + * @opt_param string updatedMin Lower bound for an event's last modification + * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted + * since this time will always be included regardless of showDeleted. Optional. + * The default is not to filter by last modification time. + * @opt_param bool singleEvents Whether to expand recurring events into + * instances and only return single one-off events and instances of recurring + * events, but not the underlying recurring events themselves. Optional. The + * default is False. + * @opt_param string timeMax Upper bound (exclusive) for an event's start time + * to filter by. Optional. The default is not to filter by start time. + * @opt_param bool alwaysIncludeEmail Whether to always include a value in the + * email field for the organizer, creator and attendees, even if no real email + * is available (i.e. a generated, non-working value will be provided). The use + * of this option is discouraged and should only be used by clients which cannot + * handle the absence of an email address value in the mentioned places. + * Optional. The default is False. + * @opt_param int maxResults Maximum number of events returned on one result + * page. By default the value is 250 events. The page size can never be larger + * than 2500 events. Optional. + * @opt_param string q Free text search terms to find events that match these + * terms in any field, except for extended properties. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param string timeMin Lower bound (inclusive) for an event's end time to + * filter by. Optional. The default is not to filter by end time. + * @opt_param string timeZone Time zone used in the response. Optional. The + * default is the time zone of the calendar. + * @opt_param string privateExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only private properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param string sharedExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only shared properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param int maxAttendees The maximum number of attendees to include in the + * response. If there are more than the specified number of attendees, only the + * participant is returned. Optional. * @return Google_Service_Calendar_Channel */ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1825,8 +1780,7 @@ class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource /** * Returns a single user setting. (settings.get) * - * @param string $setting - * The id of the user setting. + * @param string $setting The id of the user setting. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Setting */ @@ -1836,26 +1790,24 @@ public function get($setting, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Calendar_Setting"); } + /** * Returns all user settings for the authenticated user. (settings.listSettings) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. - If the syncToken expires, the server will respond with a 410 GONE response - * code and the client should clear its storage and perform a full synchronization without any - * syncToken. - Learn more about incremental synchronization. - Optional. The default is to return all - * entries. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. If the syncToken expires, the server will respond with a 410 GONE + * response code and the client should clear its storage and perform a full + * synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. * @return Google_Service_Calendar_Settings */ public function listSettings($optParams = array()) @@ -1864,27 +1816,25 @@ public function listSettings($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Calendar_Settings"); } + /** * Watch for changes to Settings resources. (settings.watch) * * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. - If the syncToken expires, the server will respond with a 410 GONE response - * code and the client should clear its storage and perform a full synchronization without any - * syncToken. - Learn more about incremental synchronization. - Optional. The default is to return all - * entries. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. If the syncToken expires, the server will respond with a 410 GONE + * response code and the client should clear its storage and perform a full + * synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. * @return Google_Service_Calendar_Channel */ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1910,11 +1860,11 @@ class Google_Service_Calendar_Acl extends Google_Collection public $nextPageToken; public $nextSyncToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1923,7 +1873,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1932,7 +1881,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1941,7 +1889,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1950,12 +1897,10 @@ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } - public function getNextSyncToken() { return $this->nextSyncToken; } - } class Google_Service_Calendar_AclRule extends Google_Model @@ -1969,11 +1914,11 @@ class Google_Service_Calendar_AclRule extends Google_Model protected $scopeType = 'Google_Service_Calendar_AclRuleScope'; protected $scopeDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1982,7 +1927,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1991,7 +1935,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2000,7 +1943,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -2009,12 +1951,10 @@ 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 @@ -2024,11 +1964,11 @@ 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; @@ -2037,12 +1977,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Calendar_Calendar extends Google_Model @@ -2057,11 +1995,11 @@ class Google_Service_Calendar_Calendar extends Google_Model public $summary; public $timeZone; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2070,7 +2008,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2079,7 +2016,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2088,7 +2024,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2097,7 +2032,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -2106,7 +2040,6 @@ public function setSummary($summary) { $this->summary = $summary; } - public function getSummary() { return $this->summary; @@ -2115,12 +2048,10 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; } - } class Google_Service_Calendar_CalendarList extends Google_Collection @@ -2135,11 +2066,11 @@ class Google_Service_Calendar_CalendarList extends Google_Collection public $nextPageToken; public $nextSyncToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2148,7 +2079,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2157,7 +2087,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2166,7 +2095,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2175,12 +2103,10 @@ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } - public function getNextSyncToken() { return $this->nextSyncToken; } - } class Google_Service_Calendar_CalendarListEntry extends Google_Collection @@ -2209,11 +2135,11 @@ class Google_Service_Calendar_CalendarListEntry extends Google_Collection public $summaryOverride; public $timeZone; + public function setAccessRole($accessRole) { $this->accessRole = $accessRole; } - public function getAccessRole() { return $this->accessRole; @@ -2222,7 +2148,6 @@ public function setBackgroundColor($backgroundColor) { $this->backgroundColor = $backgroundColor; } - public function getBackgroundColor() { return $this->backgroundColor; @@ -2231,7 +2156,6 @@ public function setColorId($colorId) { $this->colorId = $colorId; } - public function getColorId() { return $this->colorId; @@ -2240,7 +2164,6 @@ public function setDefaultReminders($defaultReminders) { $this->defaultReminders = $defaultReminders; } - public function getDefaultReminders() { return $this->defaultReminders; @@ -2249,7 +2172,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -2258,7 +2180,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2267,7 +2188,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2276,7 +2196,6 @@ public function setForegroundColor($foregroundColor) { $this->foregroundColor = $foregroundColor; } - public function getForegroundColor() { return $this->foregroundColor; @@ -2285,7 +2204,6 @@ public function setHidden($hidden) { $this->hidden = $hidden; } - public function getHidden() { return $this->hidden; @@ -2294,7 +2212,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2303,7 +2220,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2312,7 +2228,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -2321,7 +2236,6 @@ public function setNotificationSettings(Google_Service_Calendar_CalendarListEntr { $this->notificationSettings = $notificationSettings; } - public function getNotificationSettings() { return $this->notificationSettings; @@ -2330,7 +2244,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -2339,7 +2252,6 @@ public function setSelected($selected) { $this->selected = $selected; } - public function getSelected() { return $this->selected; @@ -2348,7 +2260,6 @@ public function setSummary($summary) { $this->summary = $summary; } - public function getSummary() { return $this->summary; @@ -2357,7 +2268,6 @@ public function setSummaryOverride($summaryOverride) { $this->summaryOverride = $summaryOverride; } - public function getSummaryOverride() { return $this->summaryOverride; @@ -2366,12 +2276,10 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; } - } class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection @@ -2382,16 +2290,15 @@ class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Goog protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; protected $notificationsDataType = 'array'; + public function setNotifications($notifications) { $this->notifications = $notifications; } - public function getNotifications() { return $this->notifications; } - } class Google_Service_Calendar_CalendarNotification extends Google_Model @@ -2401,11 +2308,11 @@ class Google_Service_Calendar_CalendarNotification extends Google_Model public $method; public $type; + public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; @@ -2414,12 +2321,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Calendar_Channel extends Google_Model @@ -2437,11 +2342,11 @@ class Google_Service_Calendar_Channel extends Google_Model public $token; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -2450,7 +2355,6 @@ public function setExpiration($expiration) { $this->expiration = $expiration; } - public function getExpiration() { return $this->expiration; @@ -2459,7 +2363,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2468,7 +2371,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2477,7 +2379,6 @@ public function setParams($params) { $this->params = $params; } - public function getParams() { return $this->params; @@ -2486,7 +2387,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -2495,7 +2395,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -2504,7 +2403,6 @@ public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; } - public function getResourceUri() { return $this->resourceUri; @@ -2513,7 +2411,6 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -2522,20 +2419,14 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Calendar_ChannelParams extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_ColorDefinition extends Google_Model @@ -2545,11 +2436,11 @@ 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; @@ -2558,12 +2449,10 @@ public function setForeground($foreground) { $this->foreground = $foreground; } - public function getForeground() { return $this->foreground; } - } class Google_Service_Calendar_Colors extends Google_Model @@ -2577,11 +2466,11 @@ class Google_Service_Calendar_Colors extends Google_Model public $kind; public $updated; + public function setCalendar($calendar) { $this->calendar = $calendar; } - public function getCalendar() { return $this->calendar; @@ -2590,7 +2479,6 @@ public function setEvent($event) { $this->event = $event; } - public function getEvent() { return $this->event; @@ -2599,7 +2487,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2608,28 +2495,18 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Calendar_ColorsCalendar extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_ColorsEvent extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_Error extends Google_Model @@ -2639,11 +2516,11 @@ 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; @@ -2652,12 +2529,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_Calendar_Event extends Google_Collection @@ -2712,11 +2587,11 @@ class Google_Service_Calendar_Event extends Google_Collection public $updated; public $visibility; + public function setAnyoneCanAddSelf($anyoneCanAddSelf) { $this->anyoneCanAddSelf = $anyoneCanAddSelf; } - public function getAnyoneCanAddSelf() { return $this->anyoneCanAddSelf; @@ -2725,7 +2600,6 @@ public function setAttendees($attendees) { $this->attendees = $attendees; } - public function getAttendees() { return $this->attendees; @@ -2734,7 +2608,6 @@ public function setAttendeesOmitted($attendeesOmitted) { $this->attendeesOmitted = $attendeesOmitted; } - public function getAttendeesOmitted() { return $this->attendeesOmitted; @@ -2743,7 +2616,6 @@ public function setColorId($colorId) { $this->colorId = $colorId; } - public function getColorId() { return $this->colorId; @@ -2752,7 +2624,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -2761,7 +2632,6 @@ public function setCreator(Google_Service_Calendar_EventCreator $creator) { $this->creator = $creator; } - public function getCreator() { return $this->creator; @@ -2770,7 +2640,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2779,7 +2648,6 @@ public function setEnd(Google_Service_Calendar_EventDateTime $end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -2788,7 +2656,6 @@ public function setEndTimeUnspecified($endTimeUnspecified) { $this->endTimeUnspecified = $endTimeUnspecified; } - public function getEndTimeUnspecified() { return $this->endTimeUnspecified; @@ -2797,7 +2664,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2806,7 +2672,6 @@ public function setExtendedProperties(Google_Service_Calendar_EventExtendedPrope { $this->extendedProperties = $extendedProperties; } - public function getExtendedProperties() { return $this->extendedProperties; @@ -2815,7 +2680,6 @@ public function setGadget(Google_Service_Calendar_EventGadget $gadget) { $this->gadget = $gadget; } - public function getGadget() { return $this->gadget; @@ -2824,7 +2688,6 @@ public function setGuestsCanInviteOthers($guestsCanInviteOthers) { $this->guestsCanInviteOthers = $guestsCanInviteOthers; } - public function getGuestsCanInviteOthers() { return $this->guestsCanInviteOthers; @@ -2833,7 +2696,6 @@ public function setGuestsCanModify($guestsCanModify) { $this->guestsCanModify = $guestsCanModify; } - public function getGuestsCanModify() { return $this->guestsCanModify; @@ -2842,7 +2704,6 @@ public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) { $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests; } - public function getGuestsCanSeeOtherGuests() { return $this->guestsCanSeeOtherGuests; @@ -2851,7 +2712,6 @@ public function setHangoutLink($hangoutLink) { $this->hangoutLink = $hangoutLink; } - public function getHangoutLink() { return $this->hangoutLink; @@ -2860,7 +2720,6 @@ public function setHtmlLink($htmlLink) { $this->htmlLink = $htmlLink; } - public function getHtmlLink() { return $this->htmlLink; @@ -2869,7 +2728,6 @@ public function setICalUID($iCalUID) { $this->iCalUID = $iCalUID; } - public function getICalUID() { return $this->iCalUID; @@ -2878,7 +2736,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2887,7 +2744,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2896,7 +2752,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -2905,7 +2760,6 @@ public function setLocked($locked) { $this->locked = $locked; } - public function getLocked() { return $this->locked; @@ -2914,7 +2768,6 @@ public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer) { $this->organizer = $organizer; } - public function getOrganizer() { return $this->organizer; @@ -2923,7 +2776,6 @@ public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $orig { $this->originalStartTime = $originalStartTime; } - public function getOriginalStartTime() { return $this->originalStartTime; @@ -2932,7 +2784,6 @@ public function setPrivateCopy($privateCopy) { $this->privateCopy = $privateCopy; } - public function getPrivateCopy() { return $this->privateCopy; @@ -2941,7 +2792,6 @@ public function setRecurrence($recurrence) { $this->recurrence = $recurrence; } - public function getRecurrence() { return $this->recurrence; @@ -2950,7 +2800,6 @@ public function setRecurringEventId($recurringEventId) { $this->recurringEventId = $recurringEventId; } - public function getRecurringEventId() { return $this->recurringEventId; @@ -2959,7 +2808,6 @@ public function setReminders(Google_Service_Calendar_EventReminders $reminders) { $this->reminders = $reminders; } - public function getReminders() { return $this->reminders; @@ -2968,7 +2816,6 @@ public function setSequence($sequence) { $this->sequence = $sequence; } - public function getSequence() { return $this->sequence; @@ -2977,7 +2824,6 @@ public function setSource(Google_Service_Calendar_EventSource $source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -2986,7 +2832,6 @@ public function setStart(Google_Service_Calendar_EventDateTime $start) { $this->start = $start; } - public function getStart() { return $this->start; @@ -2995,7 +2840,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -3004,7 +2848,6 @@ public function setSummary($summary) { $this->summary = $summary; } - public function getSummary() { return $this->summary; @@ -3013,7 +2856,6 @@ public function setTransparency($transparency) { $this->transparency = $transparency; } - public function getTransparency() { return $this->transparency; @@ -3022,7 +2864,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -3031,12 +2872,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_Calendar_EventAttachment extends Google_Model @@ -3045,16 +2884,15 @@ class Google_Service_Calendar_EventAttachment extends Google_Model ); public $title; + public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Calendar_EventAttendee extends Google_Model @@ -3072,11 +2910,11 @@ class Google_Service_Calendar_EventAttendee extends Google_Model public $responseStatus; public $self; + public function setAdditionalGuests($additionalGuests) { $this->additionalGuests = $additionalGuests; } - public function getAdditionalGuests() { return $this->additionalGuests; @@ -3085,7 +2923,6 @@ public function setComment($comment) { $this->comment = $comment; } - public function getComment() { return $this->comment; @@ -3094,7 +2931,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3103,7 +2939,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3112,7 +2947,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3121,7 +2955,6 @@ public function setOptional($optional) { $this->optional = $optional; } - public function getOptional() { return $this->optional; @@ -3130,7 +2963,6 @@ public function setOrganizer($organizer) { $this->organizer = $organizer; } - public function getOrganizer() { return $this->organizer; @@ -3139,7 +2971,6 @@ public function setResource($resource) { $this->resource = $resource; } - public function getResource() { return $this->resource; @@ -3148,7 +2979,6 @@ public function setResponseStatus($responseStatus) { $this->responseStatus = $responseStatus; } - public function getResponseStatus() { return $this->responseStatus; @@ -3157,12 +2987,10 @@ public function setSelf($self) { $this->self = $self; } - public function getSelf() { return $this->self; } - } class Google_Service_Calendar_EventCreator extends Google_Model @@ -3174,11 +3002,11 @@ class Google_Service_Calendar_EventCreator extends Google_Model public $id; public $self; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3187,7 +3015,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3196,7 +3023,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3205,12 +3031,10 @@ public function setSelf($self) { $this->self = $self; } - public function getSelf() { return $this->self; } - } class Google_Service_Calendar_EventDateTime extends Google_Model @@ -3221,11 +3045,11 @@ class Google_Service_Calendar_EventDateTime extends Google_Model public $dateTime; public $timeZone; + public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -3234,7 +3058,6 @@ public function setDateTime($dateTime) { $this->dateTime = $dateTime; } - public function getDateTime() { return $this->dateTime; @@ -3243,12 +3066,10 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; } - } class Google_Service_Calendar_EventExtendedProperties extends Google_Model @@ -3258,11 +3079,11 @@ 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; @@ -3271,28 +3092,18 @@ public function setShared($shared) { $this->shared = $shared; } - public function getShared() { return $this->shared; } - } class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_EventGadget extends Google_Model @@ -3308,11 +3119,11 @@ class Google_Service_Calendar_EventGadget extends Google_Model public $type; public $width; + public function setDisplay($display) { $this->display = $display; } - public function getDisplay() { return $this->display; @@ -3321,7 +3132,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -3330,7 +3140,6 @@ public function setIconLink($iconLink) { $this->iconLink = $iconLink; } - public function getIconLink() { return $this->iconLink; @@ -3339,7 +3148,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -3348,7 +3156,6 @@ public function setPreferences($preferences) { $this->preferences = $preferences; } - public function getPreferences() { return $this->preferences; @@ -3357,7 +3164,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3366,7 +3172,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3375,20 +3180,14 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Calendar_EventGadgetPreferences extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_EventOrganizer extends Google_Model @@ -3400,11 +3199,11 @@ class Google_Service_Calendar_EventOrganizer extends Google_Model public $id; public $self; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3413,7 +3212,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3422,7 +3220,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3431,12 +3228,10 @@ public function setSelf($self) { $this->self = $self; } - public function getSelf() { return $this->self; } - } class Google_Service_Calendar_EventReminder extends Google_Model @@ -3446,11 +3241,11 @@ 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; @@ -3459,12 +3254,10 @@ public function setMinutes($minutes) { $this->minutes = $minutes; } - public function getMinutes() { return $this->minutes; } - } class Google_Service_Calendar_EventReminders extends Google_Collection @@ -3476,11 +3269,11 @@ class Google_Service_Calendar_EventReminders extends Google_Collection protected $overridesDataType = 'array'; public $useDefault; + public function setOverrides($overrides) { $this->overrides = $overrides; } - public function getOverrides() { return $this->overrides; @@ -3489,12 +3282,10 @@ public function setUseDefault($useDefault) { $this->useDefault = $useDefault; } - public function getUseDefault() { return $this->useDefault; } - } class Google_Service_Calendar_EventSource extends Google_Model @@ -3504,11 +3295,11 @@ 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; @@ -3517,12 +3308,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Calendar_Events extends Google_Collection @@ -3544,11 +3333,11 @@ class Google_Service_Calendar_Events extends Google_Collection public $timeZone; public $updated; + public function setAccessRole($accessRole) { $this->accessRole = $accessRole; } - public function getAccessRole() { return $this->accessRole; @@ -3557,7 +3346,6 @@ public function setDefaultReminders($defaultReminders) { $this->defaultReminders = $defaultReminders; } - public function getDefaultReminders() { return $this->defaultReminders; @@ -3566,7 +3354,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3575,7 +3362,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3584,7 +3370,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3593,7 +3378,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3602,7 +3386,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3611,7 +3394,6 @@ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } - public function getNextSyncToken() { return $this->nextSyncToken; @@ -3620,7 +3402,6 @@ public function setSummary($summary) { $this->summary = $summary; } - public function getSummary() { return $this->summary; @@ -3629,7 +3410,6 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; @@ -3638,12 +3418,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection @@ -3656,11 +3434,11 @@ class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection protected $errorsType = 'Google_Service_Calendar_Error'; protected $errorsDataType = 'array'; + public function setBusy($busy) { $this->busy = $busy; } - public function getBusy() { return $this->busy; @@ -3669,12 +3447,10 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Calendar_FreeBusyGroup extends Google_Collection @@ -3686,11 +3462,11 @@ class Google_Service_Calendar_FreeBusyGroup extends Google_Collection protected $errorsType = 'Google_Service_Calendar_Error'; protected $errorsDataType = 'array'; + public function setCalendars($calendars) { $this->calendars = $calendars; } - public function getCalendars() { return $this->calendars; @@ -3699,12 +3475,10 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Calendar_FreeBusyRequest extends Google_Collection @@ -3720,11 +3494,11 @@ class Google_Service_Calendar_FreeBusyRequest extends Google_Collection public $timeMin; public $timeZone; + public function setCalendarExpansionMax($calendarExpansionMax) { $this->calendarExpansionMax = $calendarExpansionMax; } - public function getCalendarExpansionMax() { return $this->calendarExpansionMax; @@ -3733,7 +3507,6 @@ public function setGroupExpansionMax($groupExpansionMax) { $this->groupExpansionMax = $groupExpansionMax; } - public function getGroupExpansionMax() { return $this->groupExpansionMax; @@ -3742,7 +3515,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3751,7 +3523,6 @@ public function setTimeMax($timeMax) { $this->timeMax = $timeMax; } - public function getTimeMax() { return $this->timeMax; @@ -3760,7 +3531,6 @@ public function setTimeMin($timeMin) { $this->timeMin = $timeMin; } - public function getTimeMin() { return $this->timeMin; @@ -3769,12 +3539,10 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; } - } class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model @@ -3783,16 +3551,15 @@ 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 @@ -3807,11 +3574,11 @@ class Google_Service_Calendar_FreeBusyResponse extends Google_Model public $timeMax; public $timeMin; + public function setCalendars($calendars) { $this->calendars = $calendars; } - public function getCalendars() { return $this->calendars; @@ -3820,7 +3587,6 @@ public function setGroups($groups) { $this->groups = $groups; } - public function getGroups() { return $this->groups; @@ -3829,7 +3595,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3838,7 +3603,6 @@ public function setTimeMax($timeMax) { $this->timeMax = $timeMax; } - public function getTimeMax() { return $this->timeMax; @@ -3847,28 +3611,18 @@ public function setTimeMin($timeMin) { $this->timeMin = $timeMin; } - public function getTimeMin() { return $this->timeMin; } - } class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Calendar_Setting extends Google_Model @@ -3880,11 +3634,11 @@ class Google_Service_Calendar_Setting extends Google_Model public $kind; public $value; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3893,7 +3647,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3902,7 +3655,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3911,12 +3663,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Calendar_Settings extends Google_Collection @@ -3931,11 +3681,11 @@ class Google_Service_Calendar_Settings extends Google_Collection public $nextPageToken; public $nextSyncToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3944,7 +3694,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3953,7 +3702,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3962,7 +3710,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3971,12 +3718,10 @@ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } - public function getNextSyncToken() { return $this->nextSyncToken; } - } class Google_Service_Calendar_TimePeriod extends Google_Model @@ -3986,11 +3731,11 @@ 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; @@ -3999,10 +3744,8 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; } - } From d7ad22748f414c9eef97d720ab0b9b573ca8273c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:33 -0800 Subject: [PATCH 0457/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 197 +++++++----------------------- 1 file changed, 45 insertions(+), 152 deletions(-) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index de089b622..8d483329e 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -19,8 +19,8 @@ * Service definition for Autoscaler (v1beta2). * *

- * The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs. - *

+ * The Google Compute Engine Autoscaler API provides autoscaling for groups of + * Cloud VMs.

* *

* For more information about this service, see the API @@ -32,9 +32,11 @@ class Google_Service_Autoscaler extends Google_Service { /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; + const COMPUTE = + "https://www.googleapis.com/auth/compute"; /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + const COMPUTE_READONLY = + "https://www.googleapis.com/auth/compute.readonly"; public $autoscalers; public $zoneOperations; @@ -312,12 +314,9 @@ class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Reso /** * Deletes the specified Autoscaler resource. (autoscalers.delete) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. + * @param string $autoscaler Name of the Autoscaler resource. * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ @@ -327,15 +326,13 @@ public function delete($project, $zone, $autoscaler, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); } + /** * Gets the specified Autoscaler resource. (autoscalers.get) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. + * @param string $autoscaler Name of the Autoscaler resource. * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Autoscaler */ @@ -345,13 +342,12 @@ public function get($project, $zone, $autoscaler, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); } + /** * Adds new Autoscaler resource. (autoscalers.insert) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation @@ -362,21 +358,17 @@ public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $po $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); } + /** * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. * @param array $optParams Optional parameters. * * @opt_param string filter - * * @opt_param string pageToken - * * @opt_param string maxResults - * * @return Google_Service_Autoscaler_AutoscalerListResponse */ public function listAutoscalers($project, $zone, $optParams = array()) @@ -385,16 +377,14 @@ public function listAutoscalers($project, $zone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); } + /** * Update the entire content of the Autoscaler resource. This method supports * patch semantics. (autoscalers.patch) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. + * @param string $autoscaler Name of the Autoscaler resource. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation @@ -405,15 +395,13 @@ public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Au $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); } + /** * Update the entire content of the Autoscaler resource. (autoscalers.update) * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. + * @param string $project Project ID of Autoscaler resource. + * @param string $zone Zone name of Autoscaler resource. + * @param string $autoscaler Name of the Autoscaler resource. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation @@ -442,11 +430,8 @@ class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_R * (zoneOperations.delete) * * @param string $project - * * @param string $zone - * * @param string $operation - * * @param array $optParams Optional parameters. */ public function delete($project, $zone, $operation, $optParams = array()) @@ -455,16 +440,14 @@ public function delete($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the specified zone-specific operation resource. * (zoneOperations.get) * * @param string $project - * * @param string $zone - * * @param string $operation - * * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ @@ -474,22 +457,18 @@ public function get($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Autoscaler_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * * @param string $project - * * @param string $zone - * * @param array $optParams Optional parameters. * * @opt_param string filter - * * @opt_param string pageToken - * * @opt_param string maxResults - * * @return Google_Service_Autoscaler_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -515,15 +494,11 @@ class Google_Service_Autoscaler_Zones_Resource extends Google_Service_Resource * (zones.listZones) * * @param string $project - * * @param array $optParams Optional parameters. * * @opt_param string filter - * * @opt_param string pageToken - * * @opt_param string maxResults - * * @return Google_Service_Autoscaler_ZoneList */ public function listZones($project, $optParams = array()) @@ -551,11 +526,11 @@ class Google_Service_Autoscaler_Autoscaler extends Google_Model public $selfLink; public $target; + public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy) { $this->autoscalingPolicy = $autoscalingPolicy; } - public function getAutoscalingPolicy() { return $this->autoscalingPolicy; @@ -564,7 +539,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -573,7 +547,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -582,7 +555,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -591,7 +563,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -600,7 +571,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -609,7 +579,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -618,12 +587,10 @@ public function setTarget($target) { $this->target = $target; } - public function getTarget() { return $this->target; } - } class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection @@ -636,11 +603,11 @@ class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -649,7 +616,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -658,12 +624,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection @@ -681,11 +645,11 @@ class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection public $maxNumReplicas; public $minNumReplicas; + public function setCoolDownPeriodSec($coolDownPeriodSec) { $this->coolDownPeriodSec = $coolDownPeriodSec; } - public function getCoolDownPeriodSec() { return $this->coolDownPeriodSec; @@ -694,7 +658,6 @@ public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpu { $this->cpuUtilization = $cpuUtilization; } - public function getCpuUtilization() { return $this->cpuUtilization; @@ -703,7 +666,6 @@ public function setCustomMetricUtilizations($customMetricUtilizations) { $this->customMetricUtilizations = $customMetricUtilizations; } - public function getCustomMetricUtilizations() { return $this->customMetricUtilizations; @@ -712,7 +674,6 @@ public function setLoadBalancingUtilization(Google_Service_Autoscaler_Autoscalin { $this->loadBalancingUtilization = $loadBalancingUtilization; } - public function getLoadBalancingUtilization() { return $this->loadBalancingUtilization; @@ -721,7 +682,6 @@ public function setMaxNumReplicas($maxNumReplicas) { $this->maxNumReplicas = $maxNumReplicas; } - public function getMaxNumReplicas() { return $this->maxNumReplicas; @@ -730,12 +690,10 @@ public function setMinNumReplicas($minNumReplicas) { $this->minNumReplicas = $minNumReplicas; } - public function getMinNumReplicas() { return $this->minNumReplicas; } - } class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model @@ -744,16 +702,15 @@ class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_M ); public $utilizationTarget; + public function setUtilizationTarget($utilizationTarget) { $this->utilizationTarget = $utilizationTarget; } - public function getUtilizationTarget() { return $this->utilizationTarget; } - } class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model @@ -764,11 +721,11 @@ class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends public $utilizationTarget; public $utilizationTargetType; + public function setMetric($metric) { $this->metric = $metric; } - public function getMetric() { return $this->metric; @@ -777,7 +734,6 @@ public function setUtilizationTarget($utilizationTarget) { $this->utilizationTarget = $utilizationTarget; } - public function getUtilizationTarget() { return $this->utilizationTarget; @@ -786,12 +742,10 @@ public function setUtilizationTargetType($utilizationTargetType) { $this->utilizationTargetType = $utilizationTargetType; } - public function getUtilizationTargetType() { return $this->utilizationTargetType; } - } class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model @@ -800,16 +754,15 @@ class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extend ); public $utilizationTarget; + public function setUtilizationTarget($utilizationTarget) { $this->utilizationTarget = $utilizationTarget; } - public function getUtilizationTarget() { return $this->utilizationTarget; } - } class Google_Service_Autoscaler_DeprecationStatus extends Google_Model @@ -822,11 +775,11 @@ class Google_Service_Autoscaler_DeprecationStatus extends Google_Model public $replacement; public $state; + public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -835,7 +788,6 @@ public function setDeprecated($deprecated) { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -844,7 +796,6 @@ public function setObsolete($obsolete) { $this->obsolete = $obsolete; } - public function getObsolete() { return $this->obsolete; @@ -853,7 +804,6 @@ public function setReplacement($replacement) { $this->replacement = $replacement; } - public function getReplacement() { return $this->replacement; @@ -862,12 +812,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Autoscaler_Operation extends Google_Collection @@ -900,11 +848,11 @@ class Google_Service_Autoscaler_Operation extends Google_Collection protected $warningsDataType = 'array'; public $zone; + public function setClientOperationId($clientOperationId) { $this->clientOperationId = $clientOperationId; } - public function getClientOperationId() { return $this->clientOperationId; @@ -913,7 +861,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -922,7 +869,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -931,7 +877,6 @@ public function setError(Google_Service_Autoscaler_OperationError $error) { $this->error = $error; } - public function getError() { return $this->error; @@ -940,7 +885,6 @@ public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; } - public function getHttpErrorMessage() { return $this->httpErrorMessage; @@ -949,7 +893,6 @@ public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; @@ -958,7 +901,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -967,7 +909,6 @@ public function setInsertTime($insertTime) { $this->insertTime = $insertTime; } - public function getInsertTime() { return $this->insertTime; @@ -976,7 +917,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -985,7 +925,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -994,7 +933,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -1003,7 +941,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -1012,7 +949,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1021,7 +957,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1030,7 +965,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -1039,7 +973,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1048,7 +981,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -1057,7 +989,6 @@ public function setTargetId($targetId) { $this->targetId = $targetId; } - public function getTargetId() { return $this->targetId; @@ -1066,7 +997,6 @@ public function setTargetLink($targetLink) { $this->targetLink = $targetLink; } - public function getTargetLink() { return $this->targetLink; @@ -1075,7 +1005,6 @@ public function setUser($user) { $this->user = $user; } - public function getUser() { return $this->user; @@ -1084,7 +1013,6 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; @@ -1093,12 +1021,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Autoscaler_OperationError extends Google_Collection @@ -1109,16 +1035,15 @@ class Google_Service_Autoscaler_OperationError extends Google_Collection protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; protected $errorsDataType = 'array'; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model @@ -1129,11 +1054,11 @@ class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model public $location; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1142,7 +1067,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1151,12 +1075,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Autoscaler_OperationList extends Google_Collection @@ -1171,11 +1093,11 @@ class Google_Service_Autoscaler_OperationList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1184,7 +1106,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1193,7 +1114,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1202,7 +1122,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1211,12 +1130,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Autoscaler_OperationWarnings extends Google_Collection @@ -1229,11 +1146,11 @@ class Google_Service_Autoscaler_OperationWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1242,7 +1159,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1251,12 +1167,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Autoscaler_OperationWarningsData extends Google_Model @@ -1266,11 +1180,11 @@ class Google_Service_Autoscaler_OperationWarningsData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1279,12 +1193,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Autoscaler_Zone extends Google_Collection @@ -1305,11 +1217,11 @@ class Google_Service_Autoscaler_Zone extends Google_Collection public $selfLink; public $status; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -1318,7 +1230,6 @@ public function setDeprecated(Google_Service_Autoscaler_DeprecationStatus $depre { $this->deprecated = $deprecated; } - public function getDeprecated() { return $this->deprecated; @@ -1327,7 +1238,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1336,7 +1246,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1345,7 +1254,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1354,7 +1262,6 @@ public function setMaintenanceWindows($maintenanceWindows) { $this->maintenanceWindows = $maintenanceWindows; } - public function getMaintenanceWindows() { return $this->maintenanceWindows; @@ -1363,7 +1270,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1372,7 +1278,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1381,7 +1286,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1390,12 +1294,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Autoscaler_ZoneList extends Google_Collection @@ -1410,11 +1312,11 @@ class Google_Service_Autoscaler_ZoneList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1423,7 +1325,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1432,7 +1333,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1441,7 +1341,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1450,12 +1349,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model @@ -1467,11 +1364,11 @@ class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model public $endTime; public $name; + public function setBeginTime($beginTime) { $this->beginTime = $beginTime; } - public function getBeginTime() { return $this->beginTime; @@ -1480,7 +1377,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1489,7 +1385,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1498,10 +1393,8 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } From bb7e0f715d819091527761d5af257d689409567e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:33 -0800 Subject: [PATCH 0458/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 219 ++++++----------------- 1 file changed, 57 insertions(+), 162 deletions(-) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 6cad67008..93f451837 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -19,8 +19,8 @@ * Service definition for Doubleclicksearch (v2). * *

- * Report and modify your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions). - *

+ * Report and modify your advertising data in DoubleClick Search (for example, + * campaigns, ad groups, keywords, and conversions).

* *

* For more information about this service, see the API @@ -32,7 +32,8 @@ class Google_Service_Doubleclicksearch extends Google_Service { /** View and manage your advertising data in DoubleClick Search. */ - const DOUBLECLICKSEARCH = "https://www.googleapis.com/auth/doubleclicksearch"; + const DOUBLECLICKSEARCH = + "https://www.googleapis.com/auth/doubleclicksearch"; public $conversion; public $reports; @@ -256,30 +257,22 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic * Retrieves a list of conversions from a DoubleClick Search engine account. * (conversion.get) * - * @param string $agencyId - * Numeric ID of the agency. - * @param string $advertiserId - * Numeric ID of the advertiser. - * @param string $engineAccountId - * Numeric ID of the engine account. - * @param int $endDate - * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param int $rowCount - * The number of conversions to return per call. - * @param int $startDate - * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $startRow - * The 0-based starting index for retrieving conversions results. + * @param string $agencyId Numeric ID of the agency. + * @param string $advertiserId Numeric ID of the advertiser. + * @param string $engineAccountId Numeric ID of the engine account. + * @param int $endDate Last date (inclusive) on which to retrieve conversions. + * Format is yyyymmdd. + * @param int $rowCount The number of conversions to return per call. + * @param int $startDate First date (inclusive) on which to retrieve + * conversions. Format is yyyymmdd. + * @param string $startRow The 0-based starting index for retrieving conversions + * results. * @param array $optParams Optional parameters. * - * @opt_param string adGroupId - * Numeric ID of the ad group. - * @opt_param string campaignId - * Numeric ID of the campaign. - * @opt_param string adId - * Numeric ID of the ad. - * @opt_param string criterionId - * Numeric ID of the criterion. + * @opt_param string adGroupId Numeric ID of the ad group. + * @opt_param string campaignId Numeric ID of the campaign. + * @opt_param string adId Numeric ID of the ad. + * @opt_param string criterionId Numeric ID of the criterion. * @return Google_Service_Doubleclicksearch_ConversionList */ public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array()) @@ -288,6 +281,7 @@ public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCo $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList"); } + /** * Inserts a batch of new conversions into DoubleClick Search. * (conversion.insert) @@ -302,24 +296,21 @@ public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList"); } + /** * Updates a batch of conversions in DoubleClick Search. This method supports * patch semantics. (conversion.patch) * - * @param string $advertiserId - * Numeric ID of the advertiser. - * @param string $agencyId - * Numeric ID of the agency. - * @param int $endDate - * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $engineAccountId - * Numeric ID of the engine account. - * @param int $rowCount - * The number of conversions to return per call. - * @param int $startDate - * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $startRow - * The 0-based starting index for retrieving conversions results. + * @param string $advertiserId Numeric ID of the advertiser. + * @param string $agencyId Numeric ID of the agency. + * @param int $endDate Last date (inclusive) on which to retrieve conversions. + * Format is yyyymmdd. + * @param string $engineAccountId Numeric ID of the engine account. + * @param int $rowCount The number of conversions to return per call. + * @param int $startDate First date (inclusive) on which to retrieve + * conversions. Format is yyyymmdd. + * @param string $startRow The 0-based starting index for retrieving conversions + * results. * @param Google_ConversionList $postBody * @param array $optParams Optional parameters. * @return Google_Service_Doubleclicksearch_ConversionList @@ -330,6 +321,7 @@ public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $row $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList"); } + /** * Updates a batch of conversions in DoubleClick Search. (conversion.update) * @@ -343,6 +335,7 @@ public function update(Google_Service_Doubleclicksearch_ConversionList $postBody $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList"); } + /** * Updates the availabilities of a batch of floodlight activities in DoubleClick * Search. (conversion.updateAvailability) @@ -383,11 +376,11 @@ public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBod $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report"); } + /** * Polls for the status of a report request. (reports.get) * - * @param string $reportId - * ID of the report request being polled. + * @param string $reportId ID of the report request being polled. * @param array $optParams Optional parameters. * @return Google_Service_Doubleclicksearch_Report */ @@ -397,13 +390,12 @@ public function get($reportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report"); } + /** * Downloads a report file. (reports.getFile) * - * @param string $reportId - * ID of the report. - * @param int $reportFragment - * The index of the report fragment to download. + * @param string $reportId ID of the report. + * @param int $reportFragment The index of the report fragment to download. * @param array $optParams Optional parameters. */ public function getFile($reportId, $reportFragment, $optParams = array()) @@ -412,6 +404,7 @@ public function getFile($reportId, $reportFragment, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getFile', array($params)); } + /** * Inserts a report request into the reporting system. (reports.request) * @@ -442,10 +435,8 @@ class Google_Service_Doubleclicksearch_SavedColumns_Resource extends Google_Serv * Retrieve the list of saved columns for a specified advertiser. * (savedColumns.listSavedColumns) * - * @param string $agencyId - * DS ID of the agency. - * @param string $advertiserId - * DS ID of the advertiser. + * @param string $agencyId DS ID of the agency. + * @param string $advertiserId DS ID of the advertiser. * @param array $optParams Optional parameters. * @return Google_Service_Doubleclicksearch_SavedColumnList */ @@ -471,11 +462,11 @@ class Google_Service_Doubleclicksearch_Availability extends Google_Model public $segmentationName; public $segmentationType; + public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } - public function getAdvertiserId() { return $this->advertiserId; @@ -484,7 +475,6 @@ public function setAgencyId($agencyId) { $this->agencyId = $agencyId; } - public function getAgencyId() { return $this->agencyId; @@ -493,7 +483,6 @@ public function setAvailabilityTimestamp($availabilityTimestamp) { $this->availabilityTimestamp = $availabilityTimestamp; } - public function getAvailabilityTimestamp() { return $this->availabilityTimestamp; @@ -502,7 +491,6 @@ public function setSegmentationId($segmentationId) { $this->segmentationId = $segmentationId; } - public function getSegmentationId() { return $this->segmentationId; @@ -511,7 +499,6 @@ public function setSegmentationName($segmentationName) { $this->segmentationName = $segmentationName; } - public function getSegmentationName() { return $this->segmentationName; @@ -520,12 +507,10 @@ public function setSegmentationType($segmentationType) { $this->segmentationType = $segmentationType; } - public function getSegmentationType() { return $this->segmentationType; } - } class Google_Service_Doubleclicksearch_Conversion extends Google_Collection @@ -559,11 +544,11 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection public $state; public $type; + public function setAdGroupId($adGroupId) { $this->adGroupId = $adGroupId; } - public function getAdGroupId() { return $this->adGroupId; @@ -572,7 +557,6 @@ public function setAdId($adId) { $this->adId = $adId; } - public function getAdId() { return $this->adId; @@ -581,7 +565,6 @@ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } - public function getAdvertiserId() { return $this->advertiserId; @@ -590,7 +573,6 @@ public function setAgencyId($agencyId) { $this->agencyId = $agencyId; } - public function getAgencyId() { return $this->agencyId; @@ -599,7 +581,6 @@ public function setCampaignId($campaignId) { $this->campaignId = $campaignId; } - public function getCampaignId() { return $this->campaignId; @@ -608,7 +589,6 @@ public function setClickId($clickId) { $this->clickId = $clickId; } - public function getClickId() { return $this->clickId; @@ -617,7 +597,6 @@ public function setConversionId($conversionId) { $this->conversionId = $conversionId; } - public function getConversionId() { return $this->conversionId; @@ -626,7 +605,6 @@ public function setConversionModifiedTimestamp($conversionModifiedTimestamp) { $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; } - public function getConversionModifiedTimestamp() { return $this->conversionModifiedTimestamp; @@ -635,7 +613,6 @@ public function setConversionTimestamp($conversionTimestamp) { $this->conversionTimestamp = $conversionTimestamp; } - public function getConversionTimestamp() { return $this->conversionTimestamp; @@ -644,7 +621,6 @@ public function setCriterionId($criterionId) { $this->criterionId = $criterionId; } - public function getCriterionId() { return $this->criterionId; @@ -653,7 +629,6 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; @@ -662,7 +637,6 @@ public function setCustomDimension($customDimension) { $this->customDimension = $customDimension; } - public function getCustomDimension() { return $this->customDimension; @@ -671,7 +645,6 @@ public function setCustomMetric($customMetric) { $this->customMetric = $customMetric; } - public function getCustomMetric() { return $this->customMetric; @@ -680,7 +653,6 @@ public function setDsConversionId($dsConversionId) { $this->dsConversionId = $dsConversionId; } - public function getDsConversionId() { return $this->dsConversionId; @@ -689,7 +661,6 @@ public function setEngineAccountId($engineAccountId) { $this->engineAccountId = $engineAccountId; } - public function getEngineAccountId() { return $this->engineAccountId; @@ -698,7 +669,6 @@ public function setFloodlightOrderId($floodlightOrderId) { $this->floodlightOrderId = $floodlightOrderId; } - public function getFloodlightOrderId() { return $this->floodlightOrderId; @@ -707,7 +677,6 @@ public function setQuantityMillis($quantityMillis) { $this->quantityMillis = $quantityMillis; } - public function getQuantityMillis() { return $this->quantityMillis; @@ -716,7 +685,6 @@ public function setRevenueMicros($revenueMicros) { $this->revenueMicros = $revenueMicros; } - public function getRevenueMicros() { return $this->revenueMicros; @@ -725,7 +693,6 @@ public function setSegmentationId($segmentationId) { $this->segmentationId = $segmentationId; } - public function getSegmentationId() { return $this->segmentationId; @@ -734,7 +701,6 @@ public function setSegmentationName($segmentationName) { $this->segmentationName = $segmentationName; } - public function getSegmentationName() { return $this->segmentationName; @@ -743,7 +709,6 @@ public function setSegmentationType($segmentationType) { $this->segmentationType = $segmentationType; } - public function getSegmentationType() { return $this->segmentationType; @@ -752,7 +717,6 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; @@ -761,12 +725,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection @@ -778,11 +740,11 @@ class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection protected $conversionDataType = 'array'; public $kind; + public function setConversion($conversion) { $this->conversion = $conversion; } - public function getConversion() { return $this->conversion; @@ -791,12 +753,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model @@ -806,11 +766,11 @@ class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model public $name; public $value; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -819,12 +779,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model @@ -834,11 +792,11 @@ class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model public $name; public $value; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -847,12 +805,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Doubleclicksearch_Report extends Google_Collection @@ -872,11 +828,11 @@ class Google_Service_Doubleclicksearch_Report extends Google_Collection public $statisticsCurrencyCode; public $statisticsTimeZone; + public function setFiles($files) { $this->files = $files; } - public function getFiles() { return $this->files; @@ -885,7 +841,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -894,7 +849,6 @@ public function setIsReportReady($isReportReady) { $this->isReportReady = $isReportReady; } - public function getIsReportReady() { return $this->isReportReady; @@ -903,7 +857,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -912,7 +865,6 @@ public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $reque { $this->request = $request; } - public function getRequest() { return $this->request; @@ -921,7 +873,6 @@ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } - public function getRowCount() { return $this->rowCount; @@ -930,7 +881,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -939,7 +889,6 @@ public function setStatisticsCurrencyCode($statisticsCurrencyCode) { $this->statisticsCurrencyCode = $statisticsCurrencyCode; } - public function getStatisticsCurrencyCode() { return $this->statisticsCurrencyCode; @@ -948,12 +897,10 @@ public function setStatisticsTimeZone($statisticsTimeZone) { $this->statisticsTimeZone = $statisticsTimeZone; } - public function getStatisticsTimeZone() { return $this->statisticsTimeZone; } - } class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model @@ -970,11 +917,11 @@ class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model public $savedColumnName; public $startDate; + public function setColumnName($columnName) { $this->columnName = $columnName; } - public function getColumnName() { return $this->columnName; @@ -983,7 +930,6 @@ public function setCustomDimensionName($customDimensionName) { $this->customDimensionName = $customDimensionName; } - public function getCustomDimensionName() { return $this->customDimensionName; @@ -992,7 +938,6 @@ public function setCustomMetricName($customMetricName) { $this->customMetricName = $customMetricName; } - public function getCustomMetricName() { return $this->customMetricName; @@ -1001,7 +946,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -1010,7 +954,6 @@ public function setGroupByColumn($groupByColumn) { $this->groupByColumn = $groupByColumn; } - public function getGroupByColumn() { return $this->groupByColumn; @@ -1019,7 +962,6 @@ public function setHeaderText($headerText) { $this->headerText = $headerText; } - public function getHeaderText() { return $this->headerText; @@ -1028,7 +970,6 @@ public function setPlatformSource($platformSource) { $this->platformSource = $platformSource; } - public function getPlatformSource() { return $this->platformSource; @@ -1037,7 +978,6 @@ public function setSavedColumnName($savedColumnName) { $this->savedColumnName = $savedColumnName; } - public function getSavedColumnName() { return $this->savedColumnName; @@ -1046,12 +986,10 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; } - } class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model @@ -1061,11 +999,11 @@ class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model public $byteCount; public $url; + public function setByteCount($byteCount) { $this->byteCount = $byteCount; } - public function getByteCount() { return $this->byteCount; @@ -1074,12 +1012,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection @@ -1107,11 +1043,11 @@ class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection protected $timeRangeDataType = ''; public $verifySingleTimeZone; + public function setColumns($columns) { $this->columns = $columns; } - public function getColumns() { return $this->columns; @@ -1120,7 +1056,6 @@ public function setDownloadFormat($downloadFormat) { $this->downloadFormat = $downloadFormat; } - public function getDownloadFormat() { return $this->downloadFormat; @@ -1129,7 +1064,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -1138,7 +1072,6 @@ public function setIncludeDeletedEntities($includeDeletedEntities) { $this->includeDeletedEntities = $includeDeletedEntities; } - public function getIncludeDeletedEntities() { return $this->includeDeletedEntities; @@ -1147,7 +1080,6 @@ public function setIncludeRemovedEntities($includeRemovedEntities) { $this->includeRemovedEntities = $includeRemovedEntities; } - public function getIncludeRemovedEntities() { return $this->includeRemovedEntities; @@ -1156,7 +1088,6 @@ public function setMaxRowsPerFile($maxRowsPerFile) { $this->maxRowsPerFile = $maxRowsPerFile; } - public function getMaxRowsPerFile() { return $this->maxRowsPerFile; @@ -1165,7 +1096,6 @@ public function setOrderBy($orderBy) { $this->orderBy = $orderBy; } - public function getOrderBy() { return $this->orderBy; @@ -1174,7 +1104,6 @@ public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestRep { $this->reportScope = $reportScope; } - public function getReportScope() { return $this->reportScope; @@ -1183,7 +1112,6 @@ public function setReportType($reportType) { $this->reportType = $reportType; } - public function getReportType() { return $this->reportType; @@ -1192,7 +1120,6 @@ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } - public function getRowCount() { return $this->rowCount; @@ -1201,7 +1128,6 @@ public function setStartRow($startRow) { $this->startRow = $startRow; } - public function getStartRow() { return $this->startRow; @@ -1210,7 +1136,6 @@ public function setStatisticsCurrency($statisticsCurrency) { $this->statisticsCurrency = $statisticsCurrency; } - public function getStatisticsCurrency() { return $this->statisticsCurrency; @@ -1219,7 +1144,6 @@ public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeR { $this->timeRange = $timeRange; } - public function getTimeRange() { return $this->timeRange; @@ -1228,12 +1152,10 @@ public function setVerifySingleTimeZone($verifySingleTimeZone) { $this->verifySingleTimeZone = $verifySingleTimeZone; } - public function getVerifySingleTimeZone() { return $this->verifySingleTimeZone; } - } class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection @@ -1246,11 +1168,11 @@ class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Colle public $operator; public $values; + public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) { $this->column = $column; } - public function getColumn() { return $this->column; @@ -1259,7 +1181,6 @@ public function setOperator($operator) { $this->operator = $operator; } - public function getOperator() { return $this->operator; @@ -1268,12 +1189,10 @@ public function setValues($values) { $this->values = $values; } - public function getValues() { return $this->values; } - } class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model @@ -1284,11 +1203,11 @@ class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model protected $columnDataType = ''; public $sortOrder; + public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) { $this->column = $column; } - public function getColumn() { return $this->column; @@ -1297,12 +1216,10 @@ public function setSortOrder($sortOrder) { $this->sortOrder = $sortOrder; } - public function getSortOrder() { return $this->sortOrder; } - } class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model @@ -1317,11 +1234,11 @@ class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_M public $engineAccountId; public $keywordId; + public function setAdGroupId($adGroupId) { $this->adGroupId = $adGroupId; } - public function getAdGroupId() { return $this->adGroupId; @@ -1330,7 +1247,6 @@ public function setAdId($adId) { $this->adId = $adId; } - public function getAdId() { return $this->adId; @@ -1339,7 +1255,6 @@ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } - public function getAdvertiserId() { return $this->advertiserId; @@ -1348,7 +1263,6 @@ public function setAgencyId($agencyId) { $this->agencyId = $agencyId; } - public function getAgencyId() { return $this->agencyId; @@ -1357,7 +1271,6 @@ public function setCampaignId($campaignId) { $this->campaignId = $campaignId; } - public function getCampaignId() { return $this->campaignId; @@ -1366,7 +1279,6 @@ public function setEngineAccountId($engineAccountId) { $this->engineAccountId = $engineAccountId; } - public function getEngineAccountId() { return $this->engineAccountId; @@ -1375,12 +1287,10 @@ public function setKeywordId($keywordId) { $this->keywordId = $keywordId; } - public function getKeywordId() { return $this->keywordId; } - } class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model @@ -1392,11 +1302,11 @@ class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Mod public $endDate; public $startDate; + public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp) { $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp; } - public function getChangedAttributesSinceTimestamp() { return $this->changedAttributesSinceTimestamp; @@ -1405,7 +1315,6 @@ public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) { $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; } - public function getChangedMetricsSinceTimestamp() { return $this->changedMetricsSinceTimestamp; @@ -1414,7 +1323,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -1423,20 +1331,14 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; } - } class Google_Service_Doubleclicksearch_ReportRow extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model @@ -1447,11 +1349,11 @@ class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model public $savedColumnName; public $type; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1460,7 +1362,6 @@ public function setSavedColumnName($savedColumnName) { $this->savedColumnName = $savedColumnName; } - public function getSavedColumnName() { return $this->savedColumnName; @@ -1469,12 +1370,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection @@ -1486,11 +1385,11 @@ class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1499,12 +1398,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection @@ -1515,16 +1412,15 @@ class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_ protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; + public function setAvailabilities($availabilities) { $this->availabilities = $availabilities; } - public function getAvailabilities() { return $this->availabilities; } - } class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection @@ -1535,14 +1431,13 @@ class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; protected $availabilitiesDataType = 'array'; + public function setAvailabilities($availabilities) { $this->availabilities = $availabilities; } - public function getAvailabilities() { return $this->availabilities; } - } From 2dbc0a7eff0aaa439a6c40f551d64b3c357c07cc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:33 -0800 Subject: [PATCH 0459/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 435 ++++++++++------------------ 1 file changed, 159 insertions(+), 276 deletions(-) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index a8a58223f..654bf6105 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -19,8 +19,7 @@ * Service definition for Fusiontables (v1). * *

- * API for working with Fusion Tables data. - *

+ * API for working with Fusion Tables data.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Fusiontables extends Google_Service { /** Manage your Fusion Tables. */ - const FUSIONTABLES = "https://www.googleapis.com/auth/fusiontables"; + const FUSIONTABLES = + "https://www.googleapis.com/auth/fusiontables"; /** View your Fusion Tables. */ - const FUSIONTABLES_READONLY = "https://www.googleapis.com/auth/fusiontables.readonly"; + const FUSIONTABLES_READONLY = + "https://www.googleapis.com/auth/fusiontables.readonly"; public $column; public $query; @@ -613,10 +614,8 @@ class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resourc /** * 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 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()) @@ -625,13 +624,13 @@ public function delete($tableId, $columnId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a specific column by its id. (column.get) * - * @param string $tableId - * Table to which the column belongs. - * @param string $columnId - * Name or identifier for the column that is being requested. + * @param 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 */ @@ -641,11 +640,11 @@ public function get($tableId, $columnId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); } + /** * Adds a new column to the table. (column.insert) * - * @param string $tableId - * Table for which a new column is being added. + * @param 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 @@ -656,17 +655,17 @@ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); } + /** * Retrieves a list of columns. (column.listColumn) * - * @param string $tableId - * Table whose columns are being listed. + * @param string $tableId Table whose columns are being listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Continuation token specifying which result page to return. Optional. - * @opt_param string maxResults - * Maximum number of columns to return. Optional. Default is 5. + * @opt_param string pageToken Continuation token specifying which result page + * to return. Optional. + * @opt_param string maxResults Maximum number of columns to return. Optional. + * Default is 5. * @return Google_Service_Fusiontables_ColumnList */ public function listColumn($tableId, $optParams = array()) @@ -675,14 +674,14 @@ public function listColumn($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); } + /** * Updates the name or type of an existing column. This method supports patch * semantics. (column.patch) * - * @param string $tableId - * Table for which the column is being updated. - * @param string $columnId - * Name or identifier for the column that is being updated. + * @param 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 @@ -693,13 +692,13 @@ public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $p $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); } + /** * Updates the name or type of an existing column. (column.update) * - * @param string $tableId - * Table for which the column is being updated. - * @param string $columnId - * Name or identifier for the column that is being updated. + * @param 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 @@ -727,15 +726,15 @@ 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 string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE + * statement. * @param array $optParams Optional parameters. * - * @opt_param bool typed - * Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed - * geometries for KML values? Default is true. - * @opt_param bool hdrs - * Should column names be included (in the first row)?. Default is true. + * @opt_param bool typed Should typed values be returned in the (JSON) response + * -- numbers for numeric values and parsed geometries for KML values? Default + * is true. + * @opt_param bool hdrs Should column names be included (in the first row)?. + * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ public function sql($sql, $optParams = array()) @@ -744,18 +743,18 @@ public function sql($sql, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse"); } + /** * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) * - * @param string $sql - * An SQL SELECT/SHOW/DESCRIBE statement. + * @param 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. + * @opt_param bool typed Should typed values be returned in the (JSON) response + * -- numbers for numeric values and parsed geometries for KML values? Default + * is true. + * @opt_param bool hdrs Should column names be included (in the first row)?. + * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ public function sqlGet($sql, $optParams = array()) @@ -780,10 +779,8 @@ 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 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()) @@ -792,13 +789,12 @@ public function delete($tableId, $styleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a specific style. (style.get) * - * @param string $tableId - * Table to which the requested style belongs - * @param int $styleId - * Identifier (integer) for a specific style in a table + * @param 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 */ @@ -808,11 +804,11 @@ public function get($tableId, $styleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); } + /** * Adds a new style for the table. (style.insert) * - * @param string $tableId - * Table for which a new style is being added + * @param 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 @@ -823,17 +819,17 @@ public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postB $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); } + /** * Retrieves a list of styles. (style.listStyle) * - * @param string $tableId - * Table whose styles are being listed + * @param 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. + * @opt_param string pageToken Continuation token specifying which result page + * to return. Optional. + * @opt_param string maxResults Maximum number of styles to return. Optional. + * Default is 5. * @return Google_Service_Fusiontables_StyleSettingList */ public function listStyle($tableId, $optParams = array()) @@ -842,14 +838,13 @@ public function listStyle($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); } + /** * Updates an existing style. This method supports patch semantics. * (style.patch) * - * @param string $tableId - * Table whose style is being updated. - * @param int $styleId - * Identifier (within a table) for the style being updated. + * @param 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 @@ -860,13 +855,12 @@ public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetti $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); } + /** * Updates an existing style. (style.update) * - * @param string $tableId - * Table whose style is being updated. - * @param int $styleId - * Identifier (within a table) for the style being updated. + * @param 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 @@ -893,12 +887,11 @@ 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 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. + * @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()) @@ -907,11 +900,11 @@ public function copy($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('copy', array($params), "Google_Service_Fusiontables_Table"); } + /** * Deletes a table. (table.delete) * - * @param string $tableId - * ID of the table that is being deleted. + * @param string $tableId ID of the table that is being deleted. * @param array $optParams Optional parameters. */ public function delete($tableId, $optParams = array()) @@ -920,11 +913,11 @@ public function delete($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a specific table by its id. (table.get) * - * @param string $tableId - * Identifier(ID) for the table being requested. + * @param string $tableId Identifier(ID) for the table being requested. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Table */ @@ -934,31 +927,30 @@ public function get($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_Table"); } + /** * Import more rows into a table. (table.importRows) * - * @param string $tableId - * The table into which new rows are being imported. + * @param string $tableId The table into which new rows are being imported. * @param array $optParams Optional parameters. * - * @opt_param int startLine - * The index of the first line from which to start importing, inclusive. Default is 0. - * @opt_param bool isStrict - * Whether the CSV must have the same number of values for each row. If false, rows with fewer - * values will be padded with empty values. Default is true. - * @opt_param string encoding - * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the - * encoding. - * @opt_param string delimiter - * The delimiter used to separate cell values. This can only consist of a single character. Default - * is ','. - * @opt_param int endLine - * The index of the last line from which to start importing, exclusive. Thus, the number of - * imported lines is endLine - startLine. If this parameter is not provided, the file will be - * imported until the last line of the file. If endLine is negative, then the imported content will - * exclude the last endLine lines. That is, if endline is negative, no line will be imported whose - * index is greater than N + endLine where N is the number of lines in the file, and the number of - * imported lines will be N + endLine - startLine. + * @opt_param int startLine The index of the first line from which to start + * importing, inclusive. Default is 0. + * @opt_param bool isStrict Whether the CSV must have the same number of values + * for each row. If false, rows with fewer values will be padded with empty + * values. Default is true. + * @opt_param string encoding The encoding of the content. Default is UTF-8. Use + * 'auto-detect' if you are unsure of the encoding. + * @opt_param string delimiter The delimiter used to separate cell values. This + * can only consist of a single character. Default is ','. + * @opt_param int endLine The index of the last line from which to start + * importing, exclusive. Thus, the number of imported lines is endLine - + * startLine. If this parameter is not provided, the file will be imported until + * the last line of the file. If endLine is negative, then the imported content + * will exclude the last endLine lines. That is, if endline is negative, no line + * will be imported whose index is greater than N + endLine where N is the + * number of lines in the file, and the number of imported lines will be N + + * endLine - startLine. * @return Google_Service_Fusiontables_Import */ public function importRows($tableId, $optParams = array()) @@ -967,19 +959,17 @@ public function importRows($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import"); } + /** * Import a new table. (table.importTable) * - * @param string $name - * The name to be assigned to the new table. + * @param 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. + * @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()) @@ -988,6 +978,7 @@ public function importTable($name, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table"); } + /** * Creates a new table. (table.insert) * @@ -1001,15 +992,16 @@ public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_Table"); } + /** * Retrieves a list of tables a user owns. (table.listTable) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Continuation token specifying which result page to return. Optional. - * @opt_param string maxResults - * Maximum number of styles to return. Optional. Default is 5. + * @opt_param string pageToken Continuation token specifying which result page + * to return. Optional. + * @opt_param string maxResults Maximum number of styles to return. Optional. + * Default is 5. * @return Google_Service_Fusiontables_TableList */ public function listTable($optParams = array()) @@ -1018,19 +1010,19 @@ public function listTable($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_TableList"); } + /** * Updates an existing table. Unless explicitly requested, only the name, * description, and attribution will be updated. This method supports patch * semantics. (table.patch) * - * @param string $tableId - * ID of the table that is being updated. + * @param 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. + * @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()) @@ -1039,18 +1031,18 @@ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_Table"); } + /** * Updates an existing table. Unless explicitly requested, only the name, * description, and attribution will be updated. (table.update) * - * @param string $tableId - * ID of the table that is being updated. + * @param 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. + * @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()) @@ -1075,10 +1067,8 @@ class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource /** * Deletes the task, unless already started. (task.delete) * - * @param string $tableId - * Table from which the task is being deleted. + * @param string $tableId Table from which the task is being deleted. * @param string $taskId - * * @param array $optParams Optional parameters. */ public function delete($tableId, $taskId, $optParams = array()) @@ -1087,13 +1077,12 @@ public function delete($tableId, $taskId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a specific task by its id. (task.get) * - * @param string $tableId - * Table to which the task belongs. + * @param string $tableId Table to which the task belongs. * @param string $taskId - * * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Task */ @@ -1103,19 +1092,17 @@ public function get($tableId, $taskId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_Task"); } + /** * Retrieves a list of tasks. (task.listTask) * - * @param string $tableId - * Table whose tasks are being listed. + * @param string $tableId Table whose tasks are being listed. * @param array $optParams Optional parameters. * * @opt_param string pageToken - * * @opt_param string startIndex - * - * @opt_param string maxResults - * Maximum number of columns to return. Optional. Default is 5. + * @opt_param string maxResults Maximum number of columns to return. Optional. + * Default is 5. * @return Google_Service_Fusiontables_TaskList */ public function listTask($tableId, $optParams = array()) @@ -1140,10 +1127,8 @@ class Google_Service_Fusiontables_Template_Resource extends Google_Service_Resou /** * 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 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()) @@ -1152,13 +1137,12 @@ public function delete($tableId, $templateId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a specific template by its id (template.get) * - * @param string $tableId - * Table to which the template belongs - * @param int $templateId - * Identifier for the template that is being requested + * @param 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 */ @@ -1168,11 +1152,11 @@ public function get($tableId, $templateId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_Template"); } + /** * Creates a new template for the table. (template.insert) * - * @param string $tableId - * Table for which a new template is being created + * @param 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 @@ -1183,17 +1167,18 @@ public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_Template"); } + /** * Retrieves a list of templates. (template.listTemplate) * - * @param string $tableId - * Identifier for the table whose templates are being requested + * @param 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. + * @opt_param string pageToken Continuation token specifying which results page + * to return. Optional. + * @opt_param string maxResults Maximum number of templates to return. Optional. + * Default is 5. * @return Google_Service_Fusiontables_TemplateList */ public function listTemplate($tableId, $optParams = array()) @@ -1202,14 +1187,13 @@ public function listTemplate($tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList"); } + /** * Updates an existing template. This method supports patch semantics. * (template.patch) * - * @param string $tableId - * Table to which the updated template belongs - * @param int $templateId - * Identifier for the template that is being updated + * @param 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 @@ -1220,13 +1204,12 @@ public function patch($tableId, $templateId, Google_Service_Fusiontables_Templat $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_Template"); } + /** * Updates an existing template (template.update) * - * @param string $tableId - * Table to which the updated template belongs - * @param int $templateId - * Identifier for the template that is being updated + * @param 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 @@ -1253,11 +1236,11 @@ class Google_Service_Fusiontables_Bucket extends Google_Model public $opacity; public $weight; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -1266,7 +1249,6 @@ public function setIcon($icon) { $this->icon = $icon; } - public function getIcon() { return $this->icon; @@ -1275,7 +1257,6 @@ public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -1284,7 +1265,6 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; @@ -1293,7 +1273,6 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; @@ -1302,12 +1281,10 @@ public function setWeight($weight) { $this->weight = $weight; } - public function getWeight() { return $this->weight; } - } class Google_Service_Fusiontables_Column extends Google_Model @@ -1324,11 +1301,11 @@ class Google_Service_Fusiontables_Column extends Google_Model public $name; public $type; + public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn) { $this->baseColumn = $baseColumn; } - public function getBaseColumn() { return $this->baseColumn; @@ -1337,7 +1314,6 @@ public function setColumnId($columnId) { $this->columnId = $columnId; } - public function getColumnId() { return $this->columnId; @@ -1346,7 +1322,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1355,7 +1330,6 @@ public function setGraphPredicate($graphPredicate) { $this->graphPredicate = $graphPredicate; } - public function getGraphPredicate() { return $this->graphPredicate; @@ -1364,7 +1338,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1373,7 +1346,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1382,12 +1354,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model @@ -1397,11 +1367,11 @@ 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; @@ -1410,12 +1380,10 @@ public function setTableIndex($tableIndex) { $this->tableIndex = $tableIndex; } - public function getTableIndex() { return $this->tableIndex; } - } class Google_Service_Fusiontables_ColumnList extends Google_Collection @@ -1429,11 +1397,11 @@ class Google_Service_Fusiontables_ColumnList extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1442,7 +1410,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1451,7 +1418,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1460,12 +1426,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Fusiontables_Geometry extends Google_Collection @@ -1477,11 +1441,11 @@ class Google_Service_Fusiontables_Geometry extends Google_Collection public $geometry; public $type; + public function setGeometries($geometries) { $this->geometries = $geometries; } - public function getGeometries() { return $this->geometries; @@ -1490,7 +1454,6 @@ public function setGeometry($geometry) { $this->geometry = $geometry; } - public function getGeometry() { return $this->geometry; @@ -1499,12 +1462,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_Import extends Google_Model @@ -1514,11 +1475,11 @@ 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; @@ -1527,12 +1488,10 @@ public function setNumRowsReceived($numRowsReceived) { $this->numRowsReceived = $numRowsReceived; } - public function getNumRowsReceived() { return $this->numRowsReceived; } - } class Google_Service_Fusiontables_Line extends Google_Collection @@ -1543,11 +1502,11 @@ 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; @@ -1556,12 +1515,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_LineStyle extends Google_Model @@ -1576,11 +1533,11 @@ class Google_Service_Fusiontables_LineStyle extends Google_Model protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $strokeWeightStylerDataType = ''; + public function setStrokeColor($strokeColor) { $this->strokeColor = $strokeColor; } - public function getStrokeColor() { return $this->strokeColor; @@ -1589,7 +1546,6 @@ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $ { $this->strokeColorStyler = $strokeColorStyler; } - public function getStrokeColorStyler() { return $this->strokeColorStyler; @@ -1598,7 +1554,6 @@ public function setStrokeOpacity($strokeOpacity) { $this->strokeOpacity = $strokeOpacity; } - public function getStrokeOpacity() { return $this->strokeOpacity; @@ -1607,7 +1562,6 @@ public function setStrokeWeight($strokeWeight) { $this->strokeWeight = $strokeWeight; } - public function getStrokeWeight() { return $this->strokeWeight; @@ -1616,12 +1570,10 @@ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction { $this->strokeWeightStyler = $strokeWeightStyler; } - public function getStrokeWeightStyler() { return $this->strokeWeightStyler; } - } class Google_Service_Fusiontables_Point extends Google_Collection @@ -1632,11 +1584,11 @@ 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; @@ -1645,12 +1597,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_PointStyle extends Google_Model @@ -1661,11 +1611,11 @@ class Google_Service_Fusiontables_PointStyle extends Google_Model protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $iconStylerDataType = ''; + public function setIconName($iconName) { $this->iconName = $iconName; } - public function getIconName() { return $this->iconName; @@ -1674,12 +1624,10 @@ public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconSty { $this->iconStyler = $iconStyler; } - public function getIconStyler() { return $this->iconStyler; } - } class Google_Service_Fusiontables_Polygon extends Google_Collection @@ -1690,11 +1638,11 @@ 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; @@ -1703,12 +1651,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_PolygonStyle extends Google_Model @@ -1727,11 +1673,11 @@ class Google_Service_Fusiontables_PolygonStyle extends Google_Model protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; protected $strokeWeightStylerDataType = ''; + public function setFillColor($fillColor) { $this->fillColor = $fillColor; } - public function getFillColor() { return $this->fillColor; @@ -1740,7 +1686,6 @@ public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fi { $this->fillColorStyler = $fillColorStyler; } - public function getFillColorStyler() { return $this->fillColorStyler; @@ -1749,7 +1694,6 @@ public function setFillOpacity($fillOpacity) { $this->fillOpacity = $fillOpacity; } - public function getFillOpacity() { return $this->fillOpacity; @@ -1758,7 +1702,6 @@ public function setStrokeColor($strokeColor) { $this->strokeColor = $strokeColor; } - public function getStrokeColor() { return $this->strokeColor; @@ -1767,7 +1710,6 @@ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $ { $this->strokeColorStyler = $strokeColorStyler; } - public function getStrokeColorStyler() { return $this->strokeColorStyler; @@ -1776,7 +1718,6 @@ public function setStrokeOpacity($strokeOpacity) { $this->strokeOpacity = $strokeOpacity; } - public function getStrokeOpacity() { return $this->strokeOpacity; @@ -1785,7 +1726,6 @@ public function setStrokeWeight($strokeWeight) { $this->strokeWeight = $strokeWeight; } - public function getStrokeWeight() { return $this->strokeWeight; @@ -1794,12 +1734,10 @@ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction { $this->strokeWeightStyler = $strokeWeightStyler; } - public function getStrokeWeightStyler() { return $this->strokeWeightStyler; } - } class Google_Service_Fusiontables_Sqlresponse extends Google_Collection @@ -1811,11 +1749,11 @@ class Google_Service_Fusiontables_Sqlresponse extends Google_Collection public $kind; public $rows; + public function setColumns($columns) { $this->columns = $columns; } - public function getColumns() { return $this->columns; @@ -1824,7 +1762,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1833,12 +1770,10 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; } - } class Google_Service_Fusiontables_StyleFunction extends Google_Collection @@ -1853,11 +1788,11 @@ class Google_Service_Fusiontables_StyleFunction extends Google_Collection protected $gradientDataType = ''; public $kind; + public function setBuckets($buckets) { $this->buckets = $buckets; } - public function getBuckets() { return $this->buckets; @@ -1866,7 +1801,6 @@ public function setColumnName($columnName) { $this->columnName = $columnName; } - public function getColumnName() { return $this->columnName; @@ -1875,7 +1809,6 @@ public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $g { $this->gradient = $gradient; } - public function getGradient() { return $this->gradient; @@ -1884,12 +1817,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection @@ -1902,11 +1833,11 @@ class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collectio public $max; public $min; + public function setColors($colors) { $this->colors = $colors; } - public function getColors() { return $this->colors; @@ -1915,7 +1846,6 @@ public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -1924,12 +1854,10 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; } - } class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model @@ -1939,11 +1867,11 @@ class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Mod public $color; public $opacity; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -1952,12 +1880,10 @@ public function setOpacity($opacity) { $this->opacity = $opacity; } - public function getOpacity() { return $this->opacity; } - } class Google_Service_Fusiontables_StyleSetting extends Google_Model @@ -1975,11 +1901,11 @@ class Google_Service_Fusiontables_StyleSetting extends Google_Model public $styleId; public $tableId; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1988,7 +1914,6 @@ public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerO { $this->markerOptions = $markerOptions; } - public function getMarkerOptions() { return $this->markerOptions; @@ -1997,7 +1922,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2006,7 +1930,6 @@ public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $poly { $this->polygonOptions = $polygonOptions; } - public function getPolygonOptions() { return $this->polygonOptions; @@ -2015,7 +1938,6 @@ public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polyli { $this->polylineOptions = $polylineOptions; } - public function getPolylineOptions() { return $this->polylineOptions; @@ -2024,7 +1946,6 @@ public function setStyleId($styleId) { $this->styleId = $styleId; } - public function getStyleId() { return $this->styleId; @@ -2033,12 +1954,10 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; } - } class Google_Service_Fusiontables_StyleSettingList extends Google_Collection @@ -2052,11 +1971,11 @@ class Google_Service_Fusiontables_StyleSettingList extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2065,7 +1984,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2074,7 +1992,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2083,12 +2000,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Fusiontables_Table extends Google_Collection @@ -2108,11 +2023,11 @@ class Google_Service_Fusiontables_Table extends Google_Collection public $sql; public $tableId; + public function setAttribution($attribution) { $this->attribution = $attribution; } - public function getAttribution() { return $this->attribution; @@ -2121,7 +2036,6 @@ public function setAttributionLink($attributionLink) { $this->attributionLink = $attributionLink; } - public function getAttributionLink() { return $this->attributionLink; @@ -2130,7 +2044,6 @@ public function setBaseTableIds($baseTableIds) { $this->baseTableIds = $baseTableIds; } - public function getBaseTableIds() { return $this->baseTableIds; @@ -2139,7 +2052,6 @@ public function setColumns($columns) { $this->columns = $columns; } - public function getColumns() { return $this->columns; @@ -2148,7 +2060,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2157,7 +2068,6 @@ public function setIsExportable($isExportable) { $this->isExportable = $isExportable; } - public function getIsExportable() { return $this->isExportable; @@ -2166,7 +2076,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2175,7 +2084,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2184,7 +2092,6 @@ public function setSql($sql) { $this->sql = $sql; } - public function getSql() { return $this->sql; @@ -2193,12 +2100,10 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; } - } class Google_Service_Fusiontables_TableList extends Google_Collection @@ -2211,11 +2116,11 @@ class Google_Service_Fusiontables_TableList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2224,7 +2129,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2233,12 +2137,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Fusiontables_Task extends Google_Model @@ -2251,11 +2153,11 @@ class Google_Service_Fusiontables_Task extends Google_Model public $taskId; public $type; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2264,7 +2166,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -2273,7 +2174,6 @@ public function setStarted($started) { $this->started = $started; } - public function getStarted() { return $this->started; @@ -2282,7 +2182,6 @@ public function setTaskId($taskId) { $this->taskId = $taskId; } - public function getTaskId() { return $this->taskId; @@ -2291,12 +2190,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fusiontables_TaskList extends Google_Collection @@ -2310,11 +2207,11 @@ class Google_Service_Fusiontables_TaskList extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2323,7 +2220,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2332,7 +2228,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2341,12 +2236,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Fusiontables_Template extends Google_Collection @@ -2361,11 +2254,11 @@ class Google_Service_Fusiontables_Template extends Google_Collection public $tableId; public $templateId; + public function setAutomaticColumnNames($automaticColumnNames) { $this->automaticColumnNames = $automaticColumnNames; } - public function getAutomaticColumnNames() { return $this->automaticColumnNames; @@ -2374,7 +2267,6 @@ public function setBody($body) { $this->body = $body; } - public function getBody() { return $this->body; @@ -2383,7 +2275,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2392,7 +2283,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2401,7 +2291,6 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; @@ -2410,12 +2299,10 @@ public function setTemplateId($templateId) { $this->templateId = $templateId; } - public function getTemplateId() { return $this->templateId; } - } class Google_Service_Fusiontables_TemplateList extends Google_Collection @@ -2429,11 +2316,11 @@ class Google_Service_Fusiontables_TemplateList extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2442,7 +2329,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2451,7 +2337,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2460,10 +2345,8 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } From 7403866cdf94468a24b865ca56667a1c7f3667b6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:34 -0800 Subject: [PATCH 0460/1274] Updated SiteVerification.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SiteVerification.php | 55 +++++++++++-------------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 7b92b53ce..3ba2f2d7b 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -19,8 +19,7 @@ * Service definition for SiteVerification (v1). * *

- * Lets you programatically verify ownership of websites or domains with Google. - *

+ * Lets you programatically verify ownership of websites or domains with Google.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_SiteVerification extends Google_Service { /** Manage the list of sites and domains you control. */ - const SITEVERIFICATION = "https://www.googleapis.com/auth/siteverification"; + const SITEVERIFICATION = + "https://www.googleapis.com/auth/siteverification"; /** Manage your new site verifications with Google. */ - const SITEVERIFICATION_VERIFY_ONLY = "https://www.googleapis.com/auth/siteverification.verify_only"; + const SITEVERIFICATION_VERIFY_ONLY = + "https://www.googleapis.com/auth/siteverification.verify_only"; public $webResource; @@ -137,8 +138,7 @@ class Google_Service_SiteVerification_WebResource_Resource extends Google_Servic /** * Relinquish ownership of a website or domain. (webResource.delete) * - * @param string $id - * The id of a verified site or domain. + * @param string $id The id of a verified site or domain. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -147,11 +147,11 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get the most current data for a website or domain. (webResource.get) * - * @param string $id - * The id of a verified site or domain. + * @param string $id The id of a verified site or domain. * @param array $optParams Optional parameters. * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource */ @@ -161,6 +161,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); } + /** * Get a verification token for placing on a website or domain. * (webResource.getToken) @@ -175,11 +176,12 @@ public function getToken(Google_Service_SiteVerification_SiteVerificationWebReso $params = array_merge($params, $optParams); return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse"); } + /** * Attempt verification of a website or domain. (webResource.insert) * - * @param string $verificationMethod - * The method to use for verifying a site or domain. + * @param 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 @@ -190,6 +192,7 @@ public function insert($verificationMethod, Google_Service_SiteVerification_Site $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); } + /** * Get the list of your verified websites and domains. * (webResource.listWebResource) @@ -203,12 +206,12 @@ public function listWebResource($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse"); } + /** * Modify the list of owners for your website or domain. This method supports * patch semantics. (webResource.patch) * - * @param string $id - * The id of a verified site or domain. + * @param string $id The id of a verified site or domain. * @param Google_SiteVerificationWebResourceResource $postBody * @param array $optParams Optional parameters. * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource @@ -219,11 +222,11 @@ public function patch($id, Google_Service_SiteVerification_SiteVerificationWebRe $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); } + /** * Modify the list of owners for your website or domain. (webResource.update) * - * @param string $id - * The id of a verified site or domain. + * @param string $id The id of a verified site or domain. * @param Google_SiteVerificationWebResourceResource $postBody * @param array $optParams Optional parameters. * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource @@ -247,11 +250,11 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest protected $siteDataType = ''; public $verificationMethod; + public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site) { $this->site = $site; } - public function getSite() { return $this->site; @@ -260,12 +263,10 @@ public function setVerificationMethod($verificationMethod) { $this->verificationMethod = $verificationMethod; } - public function getVerificationMethod() { return $this->verificationMethod; } - } class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model @@ -275,11 +276,11 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest public $identifier; public $type; + public function setIdentifier($identifier) { $this->identifier = $identifier; } - public function getIdentifier() { return $this->identifier; @@ -288,12 +289,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model @@ -303,11 +302,11 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRespons public $method; public $token; + public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; @@ -316,12 +315,10 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; } - } class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection @@ -332,16 +329,15 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse ex protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; protected $itemsDataType = 'array'; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; } - } class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection @@ -354,11 +350,11 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceResource extend protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; protected $siteDataType = ''; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -367,7 +363,6 @@ public function setOwners($owners) { $this->owners = $owners; } - public function getOwners() { return $this->owners; @@ -376,12 +371,10 @@ public function setSite(Google_Service_SiteVerification_SiteVerificationWebResou { $this->site = $site; } - public function getSite() { return $this->site; } - } class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model @@ -391,11 +384,11 @@ class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite ex public $identifier; public $type; + public function setIdentifier($identifier) { $this->identifier = $identifier; } - public function getIdentifier() { return $this->identifier; @@ -404,10 +397,8 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } From a33b5e271b037b98658c72d4ee1a0a7b96da0140 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:34 -0800 Subject: [PATCH 0461/1274] Updated Webfonts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webfonts.php | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index da44a96e3..4bf7bb207 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -19,8 +19,7 @@ * Service definition for Webfonts (v1). * *

- * The Google Fonts Developer API. - *

+ * The Google Fonts Developer API.

* *

* For more information about this service, see the API @@ -88,8 +87,7 @@ class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string sort - * Enables sorting of the list + * @opt_param string sort Enables sorting of the list * @return Google_Service_Webfonts_WebfontList */ public function listWebfonts($optParams = array()) @@ -117,11 +115,11 @@ class Google_Service_Webfonts_Webfont extends Google_Collection public $variants; public $version; + public function setCategory($category) { $this->category = $category; } - public function getCategory() { return $this->category; @@ -130,7 +128,6 @@ public function setFamily($family) { $this->family = $family; } - public function getFamily() { return $this->family; @@ -139,7 +136,6 @@ public function setFiles($files) { $this->files = $files; } - public function getFiles() { return $this->files; @@ -148,7 +144,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -157,7 +152,6 @@ public function setLastModified($lastModified) { $this->lastModified = $lastModified; } - public function getLastModified() { return $this->lastModified; @@ -166,7 +160,6 @@ public function setSubsets($subsets) { $this->subsets = $subsets; } - public function getSubsets() { return $this->subsets; @@ -175,7 +168,6 @@ public function setVariants($variants) { $this->variants = $variants; } - public function getVariants() { return $this->variants; @@ -184,20 +176,14 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Webfonts_WebfontFiles extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Webfonts_WebfontList extends Google_Collection @@ -209,11 +195,11 @@ class Google_Service_Webfonts_WebfontList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -222,10 +208,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From 770bbc3579f37b9f989bc255c2a2980ca0abef05 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:34 -0800 Subject: [PATCH 0462/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 257 +++++++++++++++++++++++++--------- 1 file changed, 189 insertions(+), 68 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index bb6b2df95..40150e6c6 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -19,8 +19,7 @@ * Service definition for Pubsub (v1beta1). * *

- * Provides reliable, many-to-many, asynchronous messaging between applications. - *

+ * Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Pubsub extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage Pub/Sub topics and subscriptions. */ - const PUBSUB = "https://www.googleapis.com/auth/pubsub"; + const PUBSUB = + "https://www.googleapis.com/auth/pubsub"; public $subscriptions; public $topics; @@ -115,6 +116,10 @@ public function __construct(Google_Client $client) 'path' => 'subscriptions/pull', 'httpMethod' => 'POST', 'parameters' => array(), + ),'pullBatch' => array( + 'path' => 'subscriptions/pullBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -170,6 +175,10 @@ public function __construct(Google_Client $client) 'path' => 'topics/publish', 'httpMethod' => 'POST', 'parameters' => array(), + ),'publishBatch' => array( + 'path' => 'topics/publishBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -206,6 +215,7 @@ public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $params = array_merge($params, $optParams); return $this->call('acknowledge', array($params)); } + /** * Creates a subscription on a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding @@ -225,13 +235,13 @@ public function create(Google_Service_Pubsub_Subscription $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } + /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. * (subscriptions.delete) * - * @param string $subscription - * The subscription to delete. + * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. */ public function delete($subscription, $optParams = array()) @@ -240,11 +250,11 @@ public function delete($subscription, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the configuration details of a subscription. (subscriptions.get) * - * @param string $subscription - * The name of the subscription to get. + * @param string $subscription The name of the subscription to get. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ @@ -254,17 +264,16 @@ public function get($subscription, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); } + /** * Lists matching subscriptions. (subscriptions.listSubscriptions) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The value obtained in the last ListSubscriptionsResponse for continuation. - * @opt_param int maxResults - * Maximum number of subscriptions to return. - * @opt_param string query - * A valid label query expression. + * @opt_param string pageToken The value obtained in the last + * ListSubscriptionsResponse for continuation. + * @opt_param int maxResults Maximum number of subscriptions to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ public function listSubscriptions($optParams = array()) @@ -273,6 +282,7 @@ public function listSubscriptions($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } + /** * Modifies the Ack deadline for a message received from a pull request. * (subscriptions.modifyAckDeadline) @@ -286,6 +296,7 @@ public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $params = array_merge($params, $optParams); return $this->call('modifyAckDeadline', array($params)); } + /** * Modifies the PushConfig for a specified subscription. This method can be used * to suspend the flow of messages to an end point by clearing the PushConfig @@ -302,6 +313,7 @@ public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $ $params = array_merge($params, $optParams); return $this->call('modifyPushConfig', array($params)); } + /** * Pulls a single message from the server. If return_immediately is true, and no * messages are available in the subscription, this method returns @@ -319,6 +331,23 @@ public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } + + /** + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The system is free to return UNAVAILABLE + * if there too many pull requests outstanding for a given subscription. + * (subscriptions.pullBatch) + * + * @param Google_PullBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PullBatchResponse + */ + public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); + } } /** @@ -345,13 +374,13 @@ public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } + /** * Deletes the topic with the given name. All subscriptions to this topic are * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is * deleted, a new topic may be created with the same name. (topics.delete) * - * @param string $topic - * Name of the topic to delete. + * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. */ public function delete($topic, $optParams = array()) @@ -360,14 +389,14 @@ public function delete($topic, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the configuration of a topic. Since the topic only has the name * attribute, this method is only useful to check the existence of a topic. If * other attributes are added in the future, they will be returned here. * (topics.get) * - * @param string $topic - * The name of the topic to get. + * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ @@ -377,17 +406,16 @@ public function get($topic, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); } + /** * Lists matching topics. (topics.listTopics) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The value obtained in the last ListTopicsResponse for continuation. - * @opt_param int maxResults - * Maximum number of topics to return. - * @opt_param string query - * A valid label query expression. + * @opt_param string pageToken The value obtained in the last ListTopicsResponse + * for continuation. + * @opt_param int maxResults Maximum number of topics to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListTopicsResponse */ public function listTopics($optParams = array()) @@ -396,6 +424,7 @@ public function listTopics($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } + /** * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. * (topics.publish) @@ -409,6 +438,21 @@ public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('publish', array($params)); } + + /** + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. (topics.publishBatch) + * + * @param Google_PublishBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PublishBatchResponse + */ + public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); + } } @@ -422,11 +466,11 @@ class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection public $ackId; public $subscription; + public function setAckId($ackId) { $this->ackId = $ackId; } - public function getAckId() { return $this->ackId; @@ -435,12 +479,10 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; } - } class Google_Service_Pubsub_Label extends Google_Model @@ -451,11 +493,11 @@ class Google_Service_Pubsub_Label extends Google_Model public $numValue; public $strValue; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -464,7 +506,6 @@ public function setNumValue($numValue) { $this->numValue = $numValue; } - public function getNumValue() { return $this->numValue; @@ -473,12 +514,10 @@ public function setStrValue($strValue) { $this->strValue = $strValue; } - public function getStrValue() { return $this->strValue; } - } class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection @@ -490,11 +529,11 @@ class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; protected $subscriptionDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -503,12 +542,10 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; } - } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection @@ -520,11 +557,11 @@ class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection protected $topicType = 'Google_Service_Pubsub_Topic'; protected $topicDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -533,12 +570,10 @@ public function setTopic($topic) { $this->topic = $topic; } - public function getTopic() { return $this->topic; } - } class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model @@ -549,11 +584,11 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model public $ackId; public $subscription; + public function setAckDeadlineSeconds($ackDeadlineSeconds) { $this->ackDeadlineSeconds = $ackDeadlineSeconds; } - public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; @@ -562,7 +597,6 @@ public function setAckId($ackId) { $this->ackId = $ackId; } - public function getAckId() { return $this->ackId; @@ -571,12 +605,10 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; } - } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -587,11 +619,11 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model protected $pushConfigDataType = ''; public $subscription; + public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) { $this->pushConfig = $pushConfig; } - public function getPushConfig() { return $this->pushConfig; @@ -600,12 +632,56 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; } +} +class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection +{ + protected $collection_key = 'messages'; + protected $internal_gapi_mappings = array( + ); + protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messagesDataType = 'array'; + public $topic; + + + public function setMessages($messages) + { + $this->messages = $messages; + } + public function getMessages() + { + return $this->messages; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} + +class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection +{ + protected $collection_key = 'messageIds'; + protected $internal_gapi_mappings = array( + ); + public $messageIds; + + + public function setMessageIds($messageIds) + { + $this->messageIds = $messageIds; + } + public function getMessageIds() + { + return $this->messageIds; + } } class Google_Service_Pubsub_PublishRequest extends Google_Model @@ -616,11 +692,11 @@ class Google_Service_Pubsub_PublishRequest extends Google_Model protected $messageDataType = ''; public $topic; + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -629,12 +705,10 @@ public function setTopic($topic) { $this->topic = $topic; } - public function getTopic() { return $this->topic; } - } class Google_Service_Pubsub_PubsubEvent extends Google_Model @@ -647,11 +721,11 @@ class Google_Service_Pubsub_PubsubEvent extends Google_Model public $subscription; public $truncated; + public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -660,7 +734,6 @@ public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -669,7 +742,6 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; @@ -678,12 +750,10 @@ public function setTruncated($truncated) { $this->truncated = $truncated; } - public function getTruncated() { return $this->truncated; } - } class Google_Service_Pubsub_PubsubMessage extends Google_Collection @@ -694,12 +764,13 @@ class Google_Service_Pubsub_PubsubMessage extends Google_Collection public $data; protected $labelType = 'Google_Service_Pubsub_Label'; protected $labelDataType = 'array'; + public $messageId; + public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -708,12 +779,72 @@ public function setLabel($label) { $this->label = $label; } - public function getLabel() { return $this->label; } + public function setMessageId($messageId) + { + $this->messageId = $messageId; + } + public function getMessageId() + { + return $this->messageId; + } +} + +class Google_Service_Pubsub_PullBatchRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $maxEvents; + public $returnImmediately; + public $subscription; + + + public function setMaxEvents($maxEvents) + { + $this->maxEvents = $maxEvents; + } + public function getMaxEvents() + { + return $this->maxEvents; + } + public function setReturnImmediately($returnImmediately) + { + $this->returnImmediately = $returnImmediately; + } + public function getReturnImmediately() + { + return $this->returnImmediately; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } +} + +class Google_Service_Pubsub_PullBatchResponse extends Google_Collection +{ + protected $collection_key = 'pullResponses'; + protected $internal_gapi_mappings = array( + ); + protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; + protected $pullResponsesDataType = 'array'; + + public function setPullResponses($pullResponses) + { + $this->pullResponses = $pullResponses; + } + public function getPullResponses() + { + return $this->pullResponses; + } } class Google_Service_Pubsub_PullRequest extends Google_Model @@ -723,11 +854,11 @@ class Google_Service_Pubsub_PullRequest extends Google_Model public $returnImmediately; public $subscription; + public function setReturnImmediately($returnImmediately) { $this->returnImmediately = $returnImmediately; } - public function getReturnImmediately() { return $this->returnImmediately; @@ -736,12 +867,10 @@ public function setSubscription($subscription) { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; } - } class Google_Service_Pubsub_PullResponse extends Google_Model @@ -752,11 +881,11 @@ class Google_Service_Pubsub_PullResponse extends Google_Model protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; protected $pubsubEventDataType = ''; + public function setAckId($ackId) { $this->ackId = $ackId; } - public function getAckId() { return $this->ackId; @@ -765,12 +894,10 @@ public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) { $this->pubsubEvent = $pubsubEvent; } - public function getPubsubEvent() { return $this->pubsubEvent; } - } class Google_Service_Pubsub_PushConfig extends Google_Model @@ -779,16 +906,15 @@ class Google_Service_Pubsub_PushConfig extends Google_Model ); public $pushEndpoint; + public function setPushEndpoint($pushEndpoint) { $this->pushEndpoint = $pushEndpoint; } - public function getPushEndpoint() { return $this->pushEndpoint; } - } class Google_Service_Pubsub_Subscription extends Google_Model @@ -801,11 +927,11 @@ class Google_Service_Pubsub_Subscription extends Google_Model protected $pushConfigDataType = ''; public $topic; + public function setAckDeadlineSeconds($ackDeadlineSeconds) { $this->ackDeadlineSeconds = $ackDeadlineSeconds; } - public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; @@ -814,7 +940,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -823,7 +948,6 @@ public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) { $this->pushConfig = $pushConfig; } - public function getPushConfig() { return $this->pushConfig; @@ -832,12 +956,10 @@ public function setTopic($topic) { $this->topic = $topic; } - public function getTopic() { return $this->topic; } - } class Google_Service_Pubsub_Topic extends Google_Model @@ -846,14 +968,13 @@ class Google_Service_Pubsub_Topic extends Google_Model ); public $name; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } From e5d1a0f431d1608465c676c83c39633cdfa4d7ab Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:35 -0800 Subject: [PATCH 0463/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 3395 ++++++++++++++------------------ 1 file changed, 1460 insertions(+), 1935 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 53639d988..b477b701b 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -19,8 +19,7 @@ * Service definition for YouTube (v3). * *

- * Programmatic access to YouTube features. - *

+ * Programmatic access to YouTube features.

* *

* For more information about this service, see the API @@ -32,15 +31,20 @@ class Google_Service_YouTube extends Google_Service { /** Manage your YouTube account. */ - const YOUTUBE = "https://www.googleapis.com/auth/youtube"; + const YOUTUBE = + "https://www.googleapis.com/auth/youtube"; /** View your YouTube account. */ - const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; + const YOUTUBE_READONLY = + "https://www.googleapis.com/auth/youtube.readonly"; /** Manage your YouTube videos. */ - const YOUTUBE_UPLOAD = "https://www.googleapis.com/auth/youtube.upload"; + const YOUTUBE_UPLOAD = + "https://www.googleapis.com/auth/youtube.upload"; /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner"; + const YOUTUBEPARTNER = + "https://www.googleapis.com/auth/youtubepartner"; /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ - const YOUTUBEPARTNER_CHANNEL_AUDIT = "https://www.googleapis.com/auth/youtubepartner-channel-audit"; + const YOUTUBEPARTNER_CHANNEL_AUDIT = + "https://www.googleapis.com/auth/youtubepartner-channel-audit"; public $activities; public $channelBanners; @@ -1319,11 +1323,12 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource * playlistItems.insert() method to mark a video as a favorite. * (activities.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. + * @param 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 @@ -1334,6 +1339,7 @@ public function insert($part, Google_Service_YouTube_Activity $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); } + /** * Returns a list of channel activity events that match the request criteria. * For example, you can retrieve events associated with a particular channel, @@ -1341,47 +1347,50 @@ public function insert($part, Google_Service_YouTube_Activity $postBody, $optPar * YouTube home page feed, which is customized for each user. * (activities.listActivities) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more activity resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, and contentDetails. - If the parameter identifies a property that contains child - * properties, the child properties will be included in the response. For example, in a activity - * resource, the snippet property contains other properties that identify the type of activity, a - * display title for the activity, and so forth. If you set part=snippet, the API response will - * also contain all of those nested properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more activity resource properties that the API response will include. + * The part names that you can include in the parameter value are id, snippet, + * and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a activity + * resource, the snippet property contains other properties that identify the + * type of activity, a display title for the activity, and so forth. If you set + * part=snippet, the API response will also contain all of those nested + * properties. * @param array $optParams Optional parameters. * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return results for the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the - * authorized user's previous activity on YouTube does not provide enough information to generate - * the activity feed. - * @opt_param string publishedBefore - * The publishedBefore parameter specifies the date and time before which an activity must have - * occurred for that activity to be included in the API response. If the parameter value specifies - * a day, but not a time, then any activities that occurred that day will be excluded from the - * result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - * @opt_param string channelId - * The channelId parameter specifies a unique YouTube channel ID. The API will then return a list - * of that channel's activities. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's activities. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool home - * Set this parameter's value to true to retrieve the activity feed that displays on the YouTube - * home page for the currently authenticated user. - * @opt_param string publishedAfter - * The publishedAfter parameter specifies the earliest date and time that an activity could have - * occurred for that activity to be included in the API response. If the parameter value specifies - * a day, but not a time, then any activities that occurred that day will be included in the result - * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return results for the specified country. The parameter value is an ISO + * 3166-1 alpha-2 country code. YouTube uses this value when the authorized + * user's previous activity on YouTube does not provide enough information to + * generate the activity feed. + * @opt_param string publishedBefore The publishedBefore parameter specifies the + * date and time before which an activity must have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be excluded + * from the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @opt_param string channelId The channelId parameter specifies a unique + * YouTube channel ID. The API will then return a list of that channel's + * activities. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's activities. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool home Set this parameter's value to true to retrieve the + * activity feed that displays on the YouTube home page for the currently + * authenticated user. + * @opt_param string publishedAfter The publishedAfter parameter specifies the + * earliest date and time that an activity could have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be included + * in the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. * @return Google_Service_YouTube_ActivityListResponse */ public function listActivities($part, $optParams = array()) @@ -1417,16 +1426,18 @@ class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Reso * @param Google_ChannelBannerResource $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_ChannelBannerResource */ public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) @@ -1451,9 +1462,9 @@ class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Res /** * Deletes a channelSection. (channelSections.delete) * - * @param string $id - * The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. - * In a channelSection resource, the id property specifies the YouTube channelSection ID. + * @param string $id The id parameter specifies the YouTube channelSection ID + * for the resource that is being deleted. In a channelSection resource, the id + * property specifies the YouTube channelSection ID. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -1462,43 +1473,51 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a channelSection for the authenticated user's channel. * (channelSections.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. * @param Google_ChannelSection $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_ChannelSection */ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) @@ -1507,41 +1526,43 @@ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); } + /** * Returns channelSection resources that match the API request criteria. * (channelSections.listChannelSections) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more channelSection resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, and contentDetails. - If the parameter identifies a property - * that contains child properties, the child properties will be included in the response. For - * example, in a channelSection resource, the snippet property contains other properties, such as a - * display title for the channelSection. If you set part=snippet, the API response will also - * contain all of those nested properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more channelSection resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * channelSection resource, the snippet property contains other properties, such + * as a display title for the channelSection. If you set part=snippet, the API + * response will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string channelId - * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's - * channelSections. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the - * resource(s) that are being retrieved. In a channelSection resource, the id property specifies - * the YouTube channelSection ID. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's - * channelSections. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's channelSections. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In + * a channelSection resource, the id property specifies the YouTube + * channelSection ID. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. * @return Google_Service_YouTube_ChannelSectionListResponse */ public function listChannelSections($part, $optParams = array()) @@ -1550,14 +1571,16 @@ public function listChannelSections($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); } + /** * Update a channelSection. (channelSections.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. * @param Google_ChannelSection $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_ChannelSection @@ -1585,52 +1608,49 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * Returns a collection of zero or more channel resources that match the request * criteria. (channels.listChannels) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more channel resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion. - If the - * parameter identifies a property that contains child properties, the child properties will be - * included in the response. For example, in a channel resource, the contentDetails property - * contains other properties, such as the uploads properties. As such, if you set - * part=contentDetails, the API response will also contain all of those nested properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more channel resource properties that the API response will include. + * The part names that you can include in the parameter value are id, snippet, + * contentDetails, statistics, topicDetails, and invideoPromotion. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a channel + * resource, the contentDetails property contains other properties, such as the + * uploads properties. As such, if you set part=contentDetails, the API response + * will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param bool managedByMe - * Set this parameter's value to true to instruct the API to only return channels managed by the - * content owner that the onBehalfOfContentOwner parameter specifies. The user must be - * authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner - * must be provided. - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - * @opt_param string forUsername - * The forUsername parameter specifies a YouTube username, thereby requesting the channel - * associated with that username. - * @opt_param bool mine - * Set this parameter's value to true to instruct the API to only return channels owned by the - * authenticated user. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the - * resource(s) that are being retrieved. In a channel resource, the id property specifies the - * channel's YouTube channel ID. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool mySubscribers - * Set this parameter's value to true to retrieve a list of channels that subscribed to the - * authenticated user's channel. - * @opt_param string categoryId - * The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels - * associated with that category. + * @opt_param bool managedByMe Set this parameter's value to true to instruct + * the API to only return channels managed by the content owner that the + * onBehalfOfContentOwner parameter specifies. The user must be authenticated as + * a CMS account linked to the specified content owner and + * onBehalfOfContentOwner must be provided. + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string forUsername The forUsername parameter specifies a YouTube + * username, thereby requesting the channel associated with that username. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return channels owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel ID(s) for the resource(s) that are being retrieved. In a + * channel resource, the id property specifies the channel's YouTube channel ID. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Set this parameter's value to true to retrieve + * a list of channels that subscribed to the authenticated user's channel. + * @opt_param string categoryId The categoryId parameter specifies a YouTube + * guide category, thereby requesting YouTube channels associated with that + * category. * @return Google_Service_YouTube_ChannelListResponse */ public function listChannels($part, $optParams = array()) @@ -1639,27 +1659,31 @@ public function listChannels($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); } + /** * Updates a channel's metadata. (channels.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are id and invideoPromotion. - Note that this - * method will override the existing values for all of the mutable properties that are contained in - * any parts that the parameter value specifies. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are id and + * invideoPromotion. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. * @return Google_Service_YouTube_Channel */ public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) @@ -1685,26 +1709,27 @@ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Res * Returns a list of categories that can be associated with YouTube channels. * (guideCategories.listGuideCategories) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more guideCategory resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. - If the parameter identifies a property that contains child - * properties, the child properties will be included in the response. For example, in a - * guideCategory resource, the snippet property contains other properties, such as the category's - * title. If you set part=snippet, the API response will also contain all of those nested - * properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more guideCategory resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * guideCategory resource, the snippet property contains other properties, such + * as the category's title. If you set part=snippet, the API response will also + * contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return the list of guide categories available in - * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the - * resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the - * YouTube channel category ID. - * @opt_param string hl - * The hl parameter specifies the language that will be used for text values in the API response. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of guide categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel category ID(s) for the resource(s) that are being retrieved. + * In a guideCategory resource, the id property specifies the YouTube channel + * category ID. + * @opt_param string hl The hl parameter specifies the language that will be + * used for text values in the API response. * @return Google_Service_YouTube_GuideCategoryListResponse */ public function listGuideCategories($part, $optParams = array()) @@ -1729,14 +1754,14 @@ class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resou /** * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more i18nLanguage resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. + * @param string $part The part parameter specifies a comma-separated list of + * one or more i18nLanguage resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. * @param array $optParams Optional parameters. * - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. * @return Google_Service_YouTube_I18nLanguageListResponse */ public function listI18nLanguages($part, $optParams = array()) @@ -1761,14 +1786,14 @@ class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resourc /** * Returns a list of supported regions. (i18nRegions.listI18nRegions) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more i18nRegion resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. + * @param string $part The part parameter specifies a comma-separated list of + * one or more i18nRegion resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. * @param array $optParams Optional parameters. * - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. * @return Google_Service_YouTube_I18nRegionListResponse */ public function listI18nRegions($part, $optParams = array()) @@ -1795,43 +1820,49 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso * 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 string $id The id parameter specifies the unique ID of the broadcast + * that is being bound to a video stream. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string streamId - * The streamId parameter specifies the unique ID of the video stream that is being bound to a - * broadcast. If this parameter is omitted, the API will remove any existing binding between the - * broadcast and a video stream. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string streamId The streamId parameter specifies the unique ID of + * the video stream that is being bound to a broadcast. If this parameter is + * omitted, the API will remove any existing binding between the broadcast and a + * video stream. * @return Google_Service_YouTube_LiveBroadcast */ public function bind($id, $part, $optParams = array()) @@ -1840,60 +1871,68 @@ public function bind($id, $part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** * Controls the settings for a slate that can be displayed in the broadcast * stream. (liveBroadcasts.control) * - * @param string $id - * The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast - * in which the slate is being updated. - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. + * @param string $id The id parameter specifies the YouTube live broadcast ID + * that uniquely identifies the broadcast in which the slate is being updated. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param bool displaySlate - * The displaySlate parameter specifies whether the slate is being enabled or disabled. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string offsetTimeMs - * The offsetTimeMs parameter specifies a positive time offset when the specified slate change will - * occur. The value is measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. Even though it is - * specified in milliseconds, the value is actually an approximation, and YouTube completes the - * requested action as closely as possible to that time. - If you do not specify a value for this - * parameter, then YouTube performs the action as soon as possible. See the Getting started guide - * for more details. - Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. - * @opt_param string walltime - * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool displaySlate The displaySlate parameter specifies whether the + * slate is being enabled or disabled. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a + * positive time offset when the specified slate change will occur. The value is + * measured in milliseconds from the beginning of the broadcast's monitor + * stream, which is the time that the testing phase for the broadcast began. + * Even though it is specified in milliseconds, the value is actually an + * approximation, and YouTube completes the requested action as closely as + * possible to that time. + * + * If you do not specify a value for this parameter, then YouTube performs the + * action as soon as possible. See the Getting started guide for more details. + * + * Important: You should only specify a value for this parameter if your + * broadcast stream is delayed. + * @opt_param string walltime The walltime parameter specifies the wall clock + * time at which the specified slate change will occur. The value is specified + * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. * @return Google_Service_YouTube_LiveBroadcast */ public function control($id, $part, $optParams = array()) @@ -1902,38 +1941,45 @@ public function control($id, $part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** * Deletes a broadcast. (liveBroadcasts.delete) * - * @param string $id - * The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. + * @param string $id The id parameter specifies the YouTube live broadcast ID + * for the resource that is being deleted. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function delete($id, $optParams = array()) { @@ -1941,43 +1987,50 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Creates a broadcast. (liveBroadcasts.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, contentDetails, and - * status. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. * @param Google_LiveBroadcast $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) @@ -1986,58 +2039,62 @@ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $o $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** * Returns a list of YouTube broadcasts that match the API request parameters. * (liveBroadcasts.listLiveBroadcasts) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * - * @opt_param string broadcastStatus - * The broadcastStatus parameter filters the API response to only include broadcasts with the - * specified status. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool mine - * The mine parameter can be used to instruct the API to only return broadcasts owned by the - * authenticated user. Set the parameter value to true to only retrieve your own broadcasts. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the - * broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the - * broadcast's ID. + * @opt_param string broadcastStatus The broadcastStatus parameter filters the + * API response to only include broadcasts with the specified status. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return broadcasts owned by the authenticated user. Set the parameter + * value to true to only retrieve your own broadcasts. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube broadcast IDs that identify the broadcasts being retrieved. In a + * liveBroadcast resource, the id property specifies the broadcast's ID. * @return Google_Service_YouTube_LiveBroadcastListResponse */ public function listLiveBroadcasts($part, $optParams = array()) @@ -2046,6 +2103,7 @@ public function listLiveBroadcasts($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); } + /** * Changes the status of a YouTube live broadcast and initiates any processes * associated with the new status. For example, when you transition a @@ -2054,44 +2112,49 @@ public function listLiveBroadcasts($part, $optParams = array()) * that the value of the status.streamStatus property for the stream bound to * your broadcast is active. (liveBroadcasts.transition) * - * @param string $broadcastStatus - * The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that - * to transition a broadcast to either the testing or live state, the status.streamStatus must be - * active for the stream that the broadcast is bound to. - * @param string $id - * The id parameter specifies the unique ID of the broadcast that is transitioning to another - * status. - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. + * @param string $broadcastStatus The broadcastStatus parameter identifies the + * state to which the broadcast is changing. Note that to transition a broadcast + * to either the testing or live state, the status.streamStatus must be active + * for the stream that the broadcast is bound to. + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is transitioning to another status. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function transition($broadcastStatus, $id, $part, $optParams = array()) @@ -2100,52 +2163,62 @@ public function transition($broadcastStatus, $id, $part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** * Updates a broadcast. For example, you could modify the broadcast settings * defined in the liveBroadcast resource's contentDetails object. * (liveBroadcasts.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, contentDetails, and - * status. - Note that this method will override the existing values for all of the mutable - * properties that are contained in any parts that the parameter value specifies. For example, a - * broadcast's privacy status is defined in the status part. As such, if your request is updating a - * private or unlisted broadcast, and the request's part parameter value includes the status part, - * the broadcast's privacy setting will be updated to whatever value the request body specifies. If - * the request body does not specify a value, the existing privacy setting will be removed and the - * broadcast will revert to the default privacy setting. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a broadcast's privacy status is defined in the status + * part. As such, if your request is updating a private or unlisted broadcast, + * and the request's part parameter value includes the status part, the + * broadcast's privacy setting will be updated to whatever value the request + * body specifies. If the request body does not specify a value, the existing + * privacy setting will be removed and the broadcast will revert to the default + * privacy setting. * @param Google_LiveBroadcast $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) @@ -2170,35 +2243,41 @@ class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resourc /** * 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 string $id The id parameter specifies the YouTube live stream ID for + * the resource that is being deleted. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function delete($id, $optParams = array()) { @@ -2206,43 +2285,51 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Creates a video stream. The stream enables you to send your video to YouTube, * which can then broadcast the video to your audience. (liveStreams.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, cdn, and status. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. * @param Google_LiveStream $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_LiveStream */ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) @@ -2251,54 +2338,61 @@ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optP $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); } + /** * Returns a list of video streams that match the API request parameters. * (liveStreams.listLiveStreams) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveStream resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, cdn, and status. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveStream resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, cdn, and status. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool mine - * The mine parameter can be used to instruct the API to only return streams owned by the - * authenticated user. Set the parameter value to true to only retrieve your own streams. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. Acceptable values are 0 to 50, inclusive. The default value is 5. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of YouTube stream IDs that identify the - * streams being retrieved. In a liveStream resource, the id property specifies the stream's ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return streams owned by the authenticated user. Set the parameter value + * to true to only retrieve your own streams. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. Acceptable values + * are 0 to 50, inclusive. The default value is 5. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube stream IDs that identify the streams being retrieved. In a liveStream + * resource, the id property specifies the stream's ID. * @return Google_Service_YouTube_LiveStreamListResponse */ public function listLiveStreams($part, $optParams = array()) @@ -2307,48 +2401,57 @@ public function listLiveStreams($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); } + /** * Updates a video stream. If the properties that you want to change cannot be * updated, then you need to create a new stream with the proper settings. * (liveStreams.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, cdn, and status. - Note - * that this method will override the existing values for all of the mutable properties that are - * contained in any parts that the parameter value specifies. If the request body does not specify - * a value for a mutable property, the existing value for that property will be removed. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. If the request body does not specify a value for a mutable + * property, the existing value for that property will be removed. * @param Google_LiveStream $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_LiveStream */ public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) @@ -2373,9 +2476,9 @@ class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resou /** * 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 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()) @@ -2384,27 +2487,31 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a resource to a playlist. (playlistItems.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, and status. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet, + * contentDetails, and status. * @param Google_PlaylistItem $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_PlaylistItem */ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) @@ -2413,49 +2520,53 @@ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); } + /** * Returns a collection of playlist items that match the API request parameters. * You can retrieve all of the playlist items in a specified playlist or * retrieve one or more playlist items by their unique IDs. * (playlistItems.listPlaylistItems) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more playlistItem resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - If the parameter identifies a - * property that contains child properties, the child properties will be included in the response. - * For example, in a playlistItem resource, the snippet property contains numerous fields, - * including the title, description, position, and resourceId properties. As such, if you set - * part=snippet, the API response will contain all of those properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlistItem resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * playlistItem resource, the snippet property contains numerous fields, + * including the title, description, position, and resourceId properties. As + * such, if you set part=snippet, the API response will contain all of those + * properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string playlistId - * The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve - * playlist items. Note that even though this is an optional parameter, every request to retrieve - * playlist items must specify a value for either the id parameter or the playlistId parameter. - * @opt_param string videoId - * The videoId parameter specifies that the request should return only the playlist items that - * contain the specified video. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of one or more unique playlist item IDs. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string playlistId The playlistId parameter specifies the unique ID + * of the playlist for which you want to retrieve playlist items. Note that even + * though this is an optional parameter, every request to retrieve playlist + * items must specify a value for either the id parameter or the playlistId + * parameter. + * @opt_param string videoId The videoId parameter specifies that the request + * should return only the playlist items that contain the specified video. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of one + * or more unique playlist item IDs. * @return Google_Service_YouTube_PlaylistItemListResponse */ public function listPlaylistItems($part, $optParams = array()) @@ -2464,24 +2575,28 @@ public function listPlaylistItems($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); } + /** * Modifies a playlist item. For example, you could update the item's position * in the playlist. (playlistItems.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, and status. - Note - * that this method will override the existing values for all of the mutable properties that are - * contained in any parts that the parameter value specifies. For example, a playlist item can - * specify a start time and end time, which identify the times portion of the video that should - * play when users watch the video in the playlist. If your request is updating a playlist item - * that sets these values, and the request's part parameter value includes the contentDetails part, - * the playlist item's start and end times will be updated to whatever value the request body - * specifies. If the request body does not specify values, the existing start and end times will be - * removed and replaced with the default settings. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet, + * contentDetails, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a playlist item can specify a start time and end + * time, which identify the times portion of the video that should play when + * users watch the video in the playlist. If your request is updating a playlist + * item that sets these values, and the request's part parameter value includes + * the contentDetails part, the playlist item's start and end times will be + * updated to whatever value the request body specifies. If the request body + * does not specify values, the existing start and end times will be removed and + * replaced with the default settings. * @param Google_PlaylistItem $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_PlaylistItem @@ -2508,21 +2623,23 @@ 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 string $id The id parameter specifies the YouTube playlist ID for the + * playlist that is being deleted. In a playlist resource, the id property + * specifies the playlist's ID. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function delete($id, $optParams = array()) { @@ -2530,42 +2647,50 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Creates a playlist. (playlists.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and status. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * status. * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_Playlist */ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) @@ -2574,64 +2699,70 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); } + /** * Returns a collection of playlists that match the API request parameters. For * example, you can retrieve all playlists that the authenticated user owns, or * you can retrieve one or more playlists by their unique IDs. * (playlists.listPlaylists) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more playlist resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, status, and contentDetails. - If the parameter identifies a property that - * contains child properties, the child properties will be included in the response. For example, - * in a playlist resource, the snippet property contains properties like author, title, - * description, tags, and timeCreated. As such, if you set part=snippet, the API response will - * contain all of those properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlist resource properties that the API response will include. + * The part names that you can include in the parameter value are id, snippet, + * status, and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a playlist + * resource, the snippet property contains properties like author, title, + * description, tags, and timeCreated. As such, if you set part=snippet, the API + * response will contain all of those properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string channelId - * This value indicates that the API should only return the specified channel's playlists. - * @opt_param bool mine - * Set this parameter's value to true to instruct the API to only return playlists owned by the - * authenticated user. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the - * resource(s) that are being retrieved. In a playlist resource, the id property specifies the - * playlist's YouTube playlist ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId This value indicates that the API should only + * return the specified channel's playlists. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return playlists owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a + * playlist resource, the id property specifies the playlist's YouTube playlist + * ID. * @return Google_Service_YouTube_PlaylistListResponse */ public function listPlaylists($part, $optParams = array()) @@ -2640,36 +2771,41 @@ public function listPlaylists($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); } + /** * Modifies a playlist. For example, you could change a playlist's title, * description, or privacy status. (playlists.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and status. - Note that this method - * will override the existing values for all of the mutable properties that are contained in any - * parts that the parameter value specifies. For example, a playlist's privacy setting is contained - * in the status part. As such, if your request is updating a private playlist, and the request's - * part parameter value includes the status part, the playlist's privacy setting will be updated to - * whatever value the request body specifies. If the request body does not specify a value, the - * existing privacy setting will be removed and the playlist will revert to the default privacy - * setting. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a playlist's privacy setting is contained in the + * status part. As such, if your request is updating a private playlist, and the + * request's part parameter value includes the status part, the playlist's + * privacy setting will be updated to whatever value the request body specifies. + * If the request body does not specify a value, the existing privacy setting + * will be removed and the playlist will revert to the default privacy setting. * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_Playlist */ public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) @@ -2697,115 +2833,113 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * matching video, channel, and playlist resources, but you can also configure * queries to only retrieve a specific type of resource. (search.listSearch) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more search resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id and snippet. - If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a search result, the snippet - * property contains other properties that identify the result's title, description, and so forth. - * If you set part=snippet, the API response will also contain all of those nested properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more search resource properties that the API response will include. + * The part names that you can include in the parameter value are id and + * snippet. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a search + * result, the snippet property contains other properties that identify the + * result's title, description, and so forth. If you set part=snippet, the API + * response will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string eventType - * The eventType parameter restricts a search to broadcast events. - * @opt_param string channelId - * The channelId parameter indicates that the API response should only contain resources created by - * the channel - * @opt_param string videoSyndicated - * The videoSyndicated parameter lets you to restrict a search to only videos that can be played - * outside youtube.com. - * @opt_param string channelType - * The channelType parameter lets you restrict a search to a particular type of channel. - * @opt_param string videoCaption - * The videoCaption parameter indicates whether the API should filter video search results based on - * whether they have captions. - * @opt_param string publishedAfter - * The publishedAfter parameter indicates that the API response should only contain resources - * created after the specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool forContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The forContentOwner - * parameter restricts the search to only retrieve resources owned by the content owner specified - * by the onBehalfOfContentOwner parameter. The user must be authenticated using a CMS account - * linked to the specified content owner and onBehalfOfContentOwner must be provided. - * @opt_param string regionCode - * The regionCode parameter instructs the API to return search results for the specified country. - * The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string location - * The location parameter restricts a search to videos that have a geographical location specified - * in their metadata. The value is a string that specifies geographic latitude/longitude - * coordinates e.g. (37.42307,-122.08427) - * @opt_param string locationRadius - * The locationRadius, in conjunction with the location parameter, defines a geographic area. If - * the geographic coordinates associated with a video fall within that area, then the video may be - * included in search results. This parameter value must be a floating point number followed by a - * measurement unit. Valid measurement units are m, km, ft, and mi. For example, valid parameter - * values include 1500m, 5km, 10000ft, and 0.75mi. The API does not support locationRadius - * parameter values larger than 1000 kilometers. - * @opt_param string videoType - * The videoType parameter lets you restrict a search to a particular type of videos. - * @opt_param string type - * The type parameter restricts a search query to only retrieve a particular type of resource. The - * value is a comma-separated list of resource types. - * @opt_param string topicId - * The topicId parameter indicates that the API response should only contain resources associated - * with the specified topic. The value identifies a Freebase topic ID. - * @opt_param string publishedBefore - * The publishedBefore parameter indicates that the API response should only contain resources - * created before the specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string videoDimension - * The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos. - * @opt_param string videoLicense - * The videoLicense parameter filters search results to only include videos with a particular - * license. YouTube lets video uploaders choose to attach either the Creative Commons license or - * the standard YouTube license to each of their videos. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string relatedToVideoId - * The relatedToVideoId parameter retrieves a list of videos that are related to the video that the - * parameter value identifies. The parameter value must be set to a YouTube video ID and, if you - * are using this parameter, the type parameter must be set to video. - * @opt_param string videoDefinition - * The videoDefinition parameter lets you restrict a search to only include either high definition - * (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, - * though higher resolutions, like 1080p, might also be available. - * @opt_param string videoDuration - * The videoDuration parameter filters video search results based on their duration. - * @opt_param bool forMine - * The forMine parameter restricts the search to only retrieve videos owned by the authenticated - * user. If you set this parameter to true, then the type parameter's value must also be set to - * video. - * @opt_param string q - * The q parameter specifies the query term to search for. - * @opt_param string safeSearch - * The safeSearch parameter indicates whether the search results should include restricted content - * as well as standard content. - * @opt_param string videoEmbeddable - * The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded - * into a webpage. - * @opt_param string videoCategoryId - * The videoCategoryId parameter filters video search results based on their category. - * @opt_param string order - * The order parameter specifies the method that will be used to order resources in the API - * response. + * @opt_param string eventType The eventType parameter restricts a search to + * broadcast events. + * @opt_param string channelId The channelId parameter indicates that the API + * response should only contain resources created by the channel + * @opt_param string videoSyndicated The videoSyndicated parameter lets you to + * restrict a search to only videos that can be played outside youtube.com. + * @opt_param string channelType The channelType parameter lets you restrict a + * search to a particular type of channel. + * @opt_param string videoCaption The videoCaption parameter indicates whether + * the API should filter video search results based on whether they have + * captions. + * @opt_param string publishedAfter The publishedAfter parameter indicates that + * the API response should only contain resources created after the specified + * time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool forContentOwner Note: This parameter is intended exclusively + * for YouTube content partners. + * + * The forContentOwner parameter restricts the search to only retrieve resources + * owned by the content owner specified by the onBehalfOfContentOwner parameter. + * The user must be authenticated using a CMS account linked to the specified + * content owner and onBehalfOfContentOwner must be provided. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return search results for the specified country. The parameter value is an + * ISO 3166-1 alpha-2 country code. + * @opt_param string location The location parameter restricts a search to + * videos that have a geographical location specified in their metadata. The + * value is a string that specifies geographic latitude/longitude coordinates + * e.g. (37.42307,-122.08427) + * @opt_param string locationRadius The locationRadius, in conjunction with the + * location parameter, defines a geographic area. If the geographic coordinates + * associated with a video fall within that area, then the video may be included + * in search results. This parameter value must be a floating point number + * followed by a measurement unit. Valid measurement units are m, km, ft, and + * mi. For example, valid parameter values include 1500m, 5km, 10000ft, and + * 0.75mi. The API does not support locationRadius parameter values larger than + * 1000 kilometers. + * @opt_param string videoType The videoType parameter lets you restrict a + * search to a particular type of videos. + * @opt_param string type The type parameter restricts a search query to only + * retrieve a particular type of resource. The value is a comma-separated list + * of resource types. + * @opt_param string topicId The topicId parameter indicates that the API + * response should only contain resources associated with the specified topic. + * The value identifies a Freebase topic ID. + * @opt_param string publishedBefore The publishedBefore parameter indicates + * that the API response should only contain resources created before the + * specified time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string videoDimension The videoDimension parameter lets you + * restrict a search to only retrieve 2D or 3D videos. + * @opt_param string videoLicense The videoLicense parameter filters search + * results to only include videos with a particular license. YouTube lets video + * uploaders choose to attach either the Creative Commons license or the + * standard YouTube license to each of their videos. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a + * list of videos that are related to the video that the parameter value + * identifies. The parameter value must be set to a YouTube video ID and, if you + * are using this parameter, the type parameter must be set to video. + * @opt_param string videoDefinition The videoDefinition parameter lets you + * restrict a search to only include either high definition (HD) or standard + * definition (SD) videos. HD videos are available for playback in at least + * 720p, though higher resolutions, like 1080p, might also be available. + * @opt_param string videoDuration The videoDuration parameter filters video + * search results based on their duration. + * @opt_param bool forMine The forMine parameter restricts the search to only + * retrieve videos owned by the authenticated user. If you set this parameter to + * true, then the type parameter's value must also be set to video. + * @opt_param string q The q parameter specifies the query term to search for. + * @opt_param string safeSearch The safeSearch parameter indicates whether the + * search results should include restricted content as well as standard content. + * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to + * restrict a search to only videos that can be embedded into a webpage. + * @opt_param string videoCategoryId The videoCategoryId parameter filters video + * search results based on their category. + * @opt_param string order The order parameter specifies the method that will be + * used to order resources in the API response. * @return Google_Service_YouTube_SearchListResponse */ public function listSearch($part, $optParams = array()) @@ -2830,9 +2964,9 @@ class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resou /** * 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 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()) @@ -2841,15 +2975,17 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a subscription for the authenticated user's channel. * (subscriptions.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. + * @param 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 @@ -2860,71 +2996,74 @@ public function insert($part, Google_Service_YouTube_Subscription $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); } + /** * Returns subscription resources that match the API request criteria. * (subscriptions.listSubscriptions) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more subscription resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, and contentDetails. - If the parameter identifies a property - * that contains child properties, the child properties will be included in the response. For - * example, in a subscription resource, the snippet property contains other properties, such as a - * display title for the subscription. If you set part=snippet, the API response will also contain - * all of those nested properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more subscription resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * subscription resource, the snippet property contains other properties, such + * as a display title for the subscription. If you set part=snippet, the API + * response will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string channelId - * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's - * subscriptions. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string forChannelId - * The forChannelId parameter specifies a comma-separated list of channel IDs. The API response - * will then only contain subscriptions matching those channels. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool mySubscribers - * Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated - * user. - * @opt_param string order - * The order parameter specifies the method that will be used to sort resources in the API - * response. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the - * resource(s) that are being retrieved. In a subscription resource, the id property specifies the - * YouTube subscription ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's subscriptions. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's subscriptions. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string forChannelId The forChannelId parameter specifies a comma- + * separated list of channel IDs. The API response will then only contain + * subscriptions matching those channels. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Set this parameter's value to true to retrieve + * a feed of the subscribers of the authenticated user. + * @opt_param string order The order parameter specifies the method that will be + * used to sort resources in the API response. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a + * subscription resource, the id property specifies the YouTube subscription ID. * @return Google_Service_YouTube_SubscriptionListResponse */ public function listSubscriptions($part, $optParams = array()) @@ -2950,18 +3089,18 @@ 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 string $videoId The videoId parameter specifies a YouTube video ID for + * which the custom video thumbnail is being provided. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. * @return Google_Service_YouTube_ThumbnailSetResponse */ public function set($videoId, $optParams = array()) @@ -2987,19 +3126,18 @@ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Res * Returns a list of categories that can be associated with YouTube videos. * (videoCategories.listVideoCategories) * - * @param string $part - * The part parameter specifies the videoCategory resource parts that the API response will - * include. Supported values are id and snippet. + * @param string $part The part parameter specifies the videoCategory resource + * parts that the API response will include. Supported values are id and + * snippet. * @param array $optParams Optional parameters. * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return the list of video categories available in - * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id - * The id parameter specifies a comma-separated list of video category IDs for the resources that - * you are retrieving. - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of video categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of + * video category IDs for the resources that you are retrieving. + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. * @return Google_Service_YouTube_VideoCategoryListResponse */ public function listVideoCategories($part, $optParams = array()) @@ -3024,21 +3162,23 @@ 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 string $id The id parameter specifies the YouTube video ID for the + * resource that is being deleted. In a video resource, the id property + * specifies the video's ID. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The actual CMS account that the user authenticates with must be linked to - * the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. */ public function delete($id, $optParams = array()) { @@ -3046,26 +3186,28 @@ public function delete($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves the ratings that the authorized user gave to a list of specified * videos. (videos.getRating) * - * @param string $id - * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) - * for which you are retrieving rating data. In a video resource, the id property specifies the - * video's ID. + * @param string $id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) for which you are retrieving rating + * data. In a video resource, the id property specifies the video's ID. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_VideoGetRatingResponse */ public function getRating($id, $optParams = array()) @@ -3074,58 +3216,65 @@ public function getRating($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); } + /** * Uploads a video to YouTube and optionally sets the video's metadata. * (videos.insert) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, fileDetails, - * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, - * suggestions, and topicDetails. However, not all of those parts contain properties that can be - * set when setting or updating a video's metadata. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values that you can set or - * modify. If the parameter value specifies a part that does not contain mutable values, that part - * will still be included in the API response. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet, + * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, + * recordingDetails, statistics, status, suggestions, and topicDetails. However, + * not all of those parts contain properties that can be set when setting or + * updating a video's metadata. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain values + * that you can set or modify. If the parameter value specifies a part that does + * not contain mutable values, that part will still be included in the API + * response. * @param Google_Video $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param bool stabilize - * The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera - * motions. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool notifySubscribers - * The notifySubscribers parameter indicates whether YouTube should send notification to - * subscribers about the inserted video. - * @opt_param bool autoLevels - * The autoLevels parameter indicates whether YouTube should automatically enhance the video's - * lighting and color. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool stabilize The stabilize parameter indicates whether YouTube + * should adjust the video to remove shaky camera motions. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool notifySubscribers The notifySubscribers parameter indicates + * whether YouTube should send notification to subscribers about the inserted + * video. + * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube + * should automatically enhance the video's lighting and color. * @return Google_Service_YouTube_Video */ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) @@ -3134,61 +3283,67 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_Video"); } + /** * Returns a list of videos that match the API request parameters. * (videos.listVideos) * - * @param string $part - * The part parameter specifies a comma-separated list of one or more video resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. - If the parameter - * identifies a property that contains child properties, the child properties will be included in - * the response. For example, in a video resource, the snippet property contains the channelId, - * title, description, tags, and categoryId properties. As such, if you set part=snippet, the API - * response will contain all of those properties. + * @param string $part The part parameter specifies a comma-separated list of + * one or more video resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, + * recordingDetails, statistics, status, suggestions, and topicDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a video + * resource, the snippet property contains the channelId, title, description, + * tags, and categoryId properties. As such, if you set part=snippet, the API + * response will contain all of those properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string regionCode - * The regionCode parameter instructs the API to select a video chart available in the specified - * region. This parameter can only be used in conjunction with the chart parameter. The parameter - * value is an ISO 3166-1 alpha-2 country code. - * @opt_param string locale - * DEPRECATED - * @opt_param string videoCategoryId - * The videoCategoryId parameter identifies the video category for which the chart should be - * retrieved. This parameter can only be used in conjunction with the chart parameter. By default, - * charts are not restricted to a particular category. - * @opt_param string chart - * The chart parameter identifies the chart that you want to retrieve. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id parameter. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id parameter. - * @opt_param string myRating - * Set this parameter's value to like or dislike to instruct the API to only return videos liked or - * disliked by the authenticated user. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) - * that are being retrieved. In a video resource, the id property specifies the video's ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string regionCode The regionCode parameter instructs the API to + * select a video chart available in the specified region. This parameter can + * only be used in conjunction with the chart parameter. The parameter value is + * an ISO 3166-1 alpha-2 country code. + * @opt_param string locale DEPRECATED + * @opt_param string videoCategoryId The videoCategoryId parameter identifies + * the video category for which the chart should be retrieved. This parameter + * can only be used in conjunction with the chart parameter. By default, charts + * are not restricted to a particular category. + * @opt_param string chart The chart parameter identifies the chart that you + * want to retrieve. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string myRating Set this parameter's value to like or dislike to + * instruct the API to only return videos liked or disliked by the authenticated + * user. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) that are being retrieved. In a video + * resource, the id property specifies the video's ID. * @return Google_Service_YouTube_VideoListResponse */ public function listVideos($part, $optParams = array()) @@ -3197,27 +3352,28 @@ public function listVideos($part, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); } + /** * Add a like or dislike rating to a video or remove a rating from a video. * (videos.rate) * - * @param string $id - * The id parameter specifies the YouTube video ID of the video that is being rated or having its - * rating removed. - * @param string $rating - * Specifies the rating to record. + * @param string $id The id parameter specifies the YouTube video ID of the + * video that is being rated or having its rating removed. + * @param string $rating Specifies the rating to record. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function rate($id, $rating, $optParams = array()) { @@ -3225,41 +3381,48 @@ public function rate($id, $rating, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('rate', array($params)); } + /** * Updates a video's metadata. (videos.update) * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, fileDetails, - * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, - * suggestions, and topicDetails. - Note that this method will override the existing values for all - * of the mutable properties that are contained in any parts that the parameter value specifies. - * For example, a video's privacy setting is contained in the status part. As such, if your request - * is updating a private video, and the request's part parameter value includes the status part, - * the video's privacy setting will be updated to whatever value the request body specifies. If the - * request body does not specify a value, the existing privacy setting will be removed and the - * video will revert to the default privacy setting. - In addition, not all of those parts contain - * properties that can be set when setting or updating a video's metadata. For example, the - * statistics object encapsulates statistics that YouTube calculates for a video and does not - * contain values that you can set or modify. If the parameter value specifies a part that does not - * contain mutable values, that part will still be included in the API response. + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet, + * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, + * recordingDetails, statistics, status, suggestions, and topicDetails. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a video's privacy setting is contained in the status + * part. As such, if your request is updating a private video, and the request's + * part parameter value includes the status part, the video's privacy setting + * will be updated to whatever value the request body specifies. If the request + * body does not specify a value, the existing privacy setting will be removed + * and the video will revert to the default privacy setting. + * + * In addition, not all of those parts contain properties that can be set when + * setting or updating a video's metadata. For example, the statistics object + * encapsulates statistics that YouTube calculates for a video and does not + * contain values that you can set or modify. If the parameter value specifies a + * part that does not contain mutable values, that part will still be included + * in the API response. * @param Google_Video $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The actual CMS account that the user authenticates with must be linked to - * the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @return Google_Service_YouTube_Video */ public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) @@ -3285,19 +3448,19 @@ class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource * Uploads a watermark image to YouTube and sets it for a channel. * (watermarks.set) * - * @param string $channelId - * The channelId parameter specifies a YouTube channel ID for which the watermark is being - * provided. + * @param string $channelId The channelId parameter specifies a YouTube channel + * ID for which the watermark is being provided. * @param Google_InvideoBranding $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. */ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) { @@ -3305,20 +3468,22 @@ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody $params = array_merge($params, $optParams); return $this->call('set', array($params)); } + /** * Deletes a watermark. (watermarks.unsetWatermarks) * - * @param string $channelId - * The channelId parameter specifies a YouTube channel ID for which the watermark is being unset. + * @param string $channelId The channelId parameter specifies a YouTube channel + * ID for which the watermark is being unset. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. */ public function unsetWatermarks($channelId, $optParams = array()) { @@ -3339,11 +3504,11 @@ 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; @@ -3352,12 +3517,10 @@ public function setException($exception) { $this->exception = $exception; } - public function getException() { return $this->exception; } - } class Google_Service_YouTube_Activity extends Google_Model @@ -3372,11 +3535,11 @@ class Google_Service_YouTube_Activity extends Google_Model protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; protected $snippetDataType = ''; + public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -3385,7 +3548,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3394,7 +3556,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3403,7 +3564,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3412,12 +3572,10 @@ 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 @@ -3447,11 +3605,11 @@ class Google_Service_YouTube_ActivityContentDetails extends Google_Model protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; protected $uploadDataType = ''; + public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) { $this->bulletin = $bulletin; } - public function getBulletin() { return $this->bulletin; @@ -3460,7 +3618,6 @@ public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChan { $this->channelItem = $channelItem; } - public function getChannelItem() { return $this->channelItem; @@ -3469,7 +3626,6 @@ public function setComment(Google_Service_YouTube_ActivityContentDetailsComment { $this->comment = $comment; } - public function getComment() { return $this->comment; @@ -3478,7 +3634,6 @@ public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorit { $this->favorite = $favorite; } - public function getFavorite() { return $this->favorite; @@ -3487,7 +3642,6 @@ public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) { $this->like = $like; } - public function getLike() { return $this->like; @@ -3496,7 +3650,6 @@ public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPla { $this->playlistItem = $playlistItem; } - public function getPlaylistItem() { return $this->playlistItem; @@ -3505,7 +3658,6 @@ public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPro { $this->promotedItem = $promotedItem; } - public function getPromotedItem() { return $this->promotedItem; @@ -3514,7 +3666,6 @@ public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsR { $this->recommendation = $recommendation; } - public function getRecommendation() { return $this->recommendation; @@ -3523,7 +3674,6 @@ public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $s { $this->social = $social; } - public function getSocial() { return $this->social; @@ -3532,7 +3682,6 @@ public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSub { $this->subscription = $subscription; } - public function getSubscription() { return $this->subscription; @@ -3541,12 +3690,10 @@ public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $u { $this->upload = $upload; } - public function getUpload() { return $this->upload; } - } class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model @@ -3556,16 +3703,15 @@ class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; } - } class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model @@ -3575,16 +3721,15 @@ class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Mo protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + 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 @@ -3594,16 +3739,15 @@ class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; } - } class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model @@ -3613,16 +3757,15 @@ class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; } - } class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model @@ -3632,16 +3775,15 @@ class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; } - } class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model @@ -3653,11 +3795,11 @@ class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_M protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + public function setPlaylistId($playlistId) { $this->playlistId = $playlistId; } - public function getPlaylistId() { return $this->playlistId; @@ -3666,7 +3808,6 @@ public function setPlaylistItemId($playlistItemId) { $this->playlistItemId = $playlistItemId; } - public function getPlaylistItemId() { return $this->playlistItemId; @@ -3675,12 +3816,10 @@ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; } - } class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection @@ -3699,11 +3838,11 @@ class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_C public $impressionUrl; public $videoId; + public function setAdTag($adTag) { $this->adTag = $adTag; } - public function getAdTag() { return $this->adTag; @@ -3712,7 +3851,6 @@ public function setClickTrackingUrl($clickTrackingUrl) { $this->clickTrackingUrl = $clickTrackingUrl; } - public function getClickTrackingUrl() { return $this->clickTrackingUrl; @@ -3721,7 +3859,6 @@ public function setCreativeViewUrl($creativeViewUrl) { $this->creativeViewUrl = $creativeViewUrl; } - public function getCreativeViewUrl() { return $this->creativeViewUrl; @@ -3730,7 +3867,6 @@ public function setCtaType($ctaType) { $this->ctaType = $ctaType; } - public function getCtaType() { return $this->ctaType; @@ -3739,7 +3875,6 @@ public function setCustomCtaButtonText($customCtaButtonText) { $this->customCtaButtonText = $customCtaButtonText; } - public function getCustomCtaButtonText() { return $this->customCtaButtonText; @@ -3748,7 +3883,6 @@ public function setDescriptionText($descriptionText) { $this->descriptionText = $descriptionText; } - public function getDescriptionText() { return $this->descriptionText; @@ -3757,7 +3891,6 @@ public function setDestinationUrl($destinationUrl) { $this->destinationUrl = $destinationUrl; } - public function getDestinationUrl() { return $this->destinationUrl; @@ -3766,7 +3899,6 @@ public function setForecastingUrl($forecastingUrl) { $this->forecastingUrl = $forecastingUrl; } - public function getForecastingUrl() { return $this->forecastingUrl; @@ -3775,7 +3907,6 @@ public function setImpressionUrl($impressionUrl) { $this->impressionUrl = $impressionUrl; } - public function getImpressionUrl() { return $this->impressionUrl; @@ -3784,12 +3915,10 @@ public function setVideoId($videoId) { $this->videoId = $videoId; } - public function getVideoId() { return $this->videoId; } - } class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model @@ -3802,11 +3931,11 @@ class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; protected $seedResourceIdDataType = ''; + public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; @@ -3815,7 +3944,6 @@ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -3824,12 +3952,10 @@ public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourc { $this->seedResourceId = $seedResourceId; } - public function getSeedResourceId() { return $this->seedResourceId; } - } class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model @@ -3843,11 +3969,11 @@ class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model protected $resourceIdDataType = ''; public $type; + public function setAuthor($author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -3856,7 +3982,6 @@ public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; } - public function getImageUrl() { return $this->imageUrl; @@ -3865,7 +3990,6 @@ public function setReferenceUrl($referenceUrl) { $this->referenceUrl = $referenceUrl; } - public function getReferenceUrl() { return $this->referenceUrl; @@ -3874,7 +3998,6 @@ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -3883,12 +4006,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model @@ -3898,16 +4019,15 @@ class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_M protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; protected $resourceIdDataType = ''; + 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 @@ -3916,16 +4036,15 @@ 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 @@ -3946,11 +4065,11 @@ class Google_Service_YouTube_ActivityListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3959,7 +4078,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -3968,7 +4086,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3977,7 +4094,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3986,7 +4102,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3995,7 +4110,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -4004,7 +4118,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -4013,7 +4126,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -4022,12 +4134,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_ActivitySnippet extends Google_Model @@ -4044,11 +4154,11 @@ class Google_Service_YouTube_ActivitySnippet extends Google_Model public $title; public $type; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -4057,7 +4167,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -4066,7 +4175,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4075,7 +4183,6 @@ public function setGroupId($groupId) { $this->groupId = $groupId; } - public function getGroupId() { return $this->groupId; @@ -4084,7 +4191,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -4093,7 +4199,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -4102,7 +4207,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -4111,12 +4215,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTube_CdnSettings extends Google_Model @@ -4128,11 +4230,11 @@ class Google_Service_YouTube_CdnSettings extends Google_Model protected $ingestionInfoDataType = ''; public $ingestionType; + public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -4141,7 +4243,6 @@ public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestion { $this->ingestionInfo = $ingestionInfo; } - public function getIngestionInfo() { return $this->ingestionInfo; @@ -4150,12 +4251,10 @@ public function setIngestionType($ingestionType) { $this->ingestionType = $ingestionType; } - public function getIngestionType() { return $this->ingestionType; } - } class Google_Service_YouTube_Channel extends Google_Model @@ -4186,11 +4285,11 @@ class Google_Service_YouTube_Channel extends Google_Model protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; protected $topicDetailsDataType = ''; + public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) { $this->auditDetails = $auditDetails; } - public function getAuditDetails() { return $this->auditDetails; @@ -4199,7 +4298,6 @@ public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettin { $this->brandingSettings = $brandingSettings; } - public function getBrandingSettings() { return $this->brandingSettings; @@ -4208,7 +4306,6 @@ public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $ { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -4217,7 +4314,6 @@ public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwne { $this->contentOwnerDetails = $contentOwnerDetails; } - public function getContentOwnerDetails() { return $this->contentOwnerDetails; @@ -4226,7 +4322,6 @@ public function setConversionPings(Google_Service_YouTube_ChannelConversionPings { $this->conversionPings = $conversionPings; } - public function getConversionPings() { return $this->conversionPings; @@ -4235,7 +4330,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4244,7 +4338,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4253,7 +4346,6 @@ public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $inv { $this->invideoPromotion = $invideoPromotion; } - public function getInvideoPromotion() { return $this->invideoPromotion; @@ -4262,7 +4354,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4271,7 +4362,6 @@ public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -4280,7 +4370,6 @@ public function setStatistics(Google_Service_YouTube_ChannelStatistics $statisti { $this->statistics = $statistics; } - public function getStatistics() { return $this->statistics; @@ -4289,7 +4378,6 @@ public function setStatus(Google_Service_YouTube_ChannelStatus $status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -4298,12 +4386,10 @@ public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topi { $this->topicDetails = $topicDetails; } - public function getTopicDetails() { return $this->topicDetails; } - } class Google_Service_YouTube_ChannelAuditDetails extends Google_Model @@ -4315,11 +4401,11 @@ class Google_Service_YouTube_ChannelAuditDetails extends Google_Model public $copyrightStrikesGoodStanding; public $overallGoodStanding; + public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) { $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; } - public function getCommunityGuidelinesGoodStanding() { return $this->communityGuidelinesGoodStanding; @@ -4328,7 +4414,6 @@ public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) { $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; } - public function getContentIdClaimsGoodStanding() { return $this->contentIdClaimsGoodStanding; @@ -4337,7 +4422,6 @@ public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) { $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; } - public function getCopyrightStrikesGoodStanding() { return $this->copyrightStrikesGoodStanding; @@ -4346,12 +4430,10 @@ public function setOverallGoodStanding($overallGoodStanding) { $this->overallGoodStanding = $overallGoodStanding; } - public function getOverallGoodStanding() { return $this->overallGoodStanding; } - } class Google_Service_YouTube_ChannelBannerResource extends Google_Model @@ -4362,11 +4444,11 @@ class Google_Service_YouTube_ChannelBannerResource extends Google_Model public $kind; public $url; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4375,7 +4457,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4384,12 +4465,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection @@ -4406,11 +4485,11 @@ class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection protected $watchType = 'Google_Service_YouTube_WatchSettings'; protected $watchDataType = ''; + public function setChannel(Google_Service_YouTube_ChannelSettings $channel) { $this->channel = $channel; } - public function getChannel() { return $this->channel; @@ -4419,7 +4498,6 @@ public function setHints($hints) { $this->hints = $hints; } - public function getHints() { return $this->hints; @@ -4428,7 +4506,6 @@ public function setImage(Google_Service_YouTube_ImageSettings $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -4437,12 +4514,10 @@ 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 @@ -4453,11 +4528,11 @@ class Google_Service_YouTube_ChannelContentDetails extends Google_Model protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; protected $relatedPlaylistsDataType = ''; + public function setGooglePlusUserId($googlePlusUserId) { $this->googlePlusUserId = $googlePlusUserId; } - public function getGooglePlusUserId() { return $this->googlePlusUserId; @@ -4466,12 +4541,10 @@ public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetails { $this->relatedPlaylists = $relatedPlaylists; } - public function getRelatedPlaylists() { return $this->relatedPlaylists; } - } class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model @@ -4484,11 +4557,11 @@ class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Googl public $watchHistory; public $watchLater; + public function setFavorites($favorites) { $this->favorites = $favorites; } - public function getFavorites() { return $this->favorites; @@ -4497,7 +4570,6 @@ public function setLikes($likes) { $this->likes = $likes; } - public function getLikes() { return $this->likes; @@ -4506,7 +4578,6 @@ public function setUploads($uploads) { $this->uploads = $uploads; } - public function getUploads() { return $this->uploads; @@ -4515,7 +4586,6 @@ public function setWatchHistory($watchHistory) { $this->watchHistory = $watchHistory; } - public function getWatchHistory() { return $this->watchHistory; @@ -4524,12 +4594,10 @@ public function setWatchLater($watchLater) { $this->watchLater = $watchLater; } - public function getWatchLater() { return $this->watchLater; } - } class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model @@ -4539,11 +4607,11 @@ class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model public $contentOwner; public $timeLinked; + public function setContentOwner($contentOwner) { $this->contentOwner = $contentOwner; } - public function getContentOwner() { return $this->contentOwner; @@ -4552,12 +4620,10 @@ public function setTimeLinked($timeLinked) { $this->timeLinked = $timeLinked; } - public function getTimeLinked() { return $this->timeLinked; } - } class Google_Service_YouTube_ChannelConversionPing extends Google_Model @@ -4567,11 +4633,11 @@ 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; @@ -4580,12 +4646,10 @@ public function setConversionUrl($conversionUrl) { $this->conversionUrl = $conversionUrl; } - public function getConversionUrl() { return $this->conversionUrl; } - } class Google_Service_YouTube_ChannelConversionPings extends Google_Collection @@ -4596,16 +4660,15 @@ class Google_Service_YouTube_ChannelConversionPings extends Google_Collection protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; protected $pingsDataType = 'array'; + public function setPings($pings) { $this->pings = $pings; } - public function getPings() { return $this->pings; } - } class Google_Service_YouTube_ChannelListResponse extends Google_Collection @@ -4626,11 +4689,11 @@ class Google_Service_YouTube_ChannelListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4639,7 +4702,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -4648,7 +4710,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4657,7 +4718,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4666,7 +4726,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4675,7 +4734,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -4684,7 +4742,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -4693,7 +4750,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -4702,12 +4758,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_ChannelSection extends Google_Model @@ -4722,11 +4776,11 @@ class Google_Service_YouTube_ChannelSection extends Google_Model protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; protected $snippetDataType = ''; + public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -4735,7 +4789,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4744,7 +4797,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4753,7 +4805,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4762,12 +4813,10 @@ public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; } - } class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection @@ -4778,11 +4827,11 @@ class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collect public $channels; public $playlists; + public function setChannels($channels) { $this->channels = $channels; } - public function getChannels() { return $this->channels; @@ -4791,12 +4840,10 @@ public function setPlaylists($playlists) { $this->playlists = $playlists; } - public function getPlaylists() { return $this->playlists; } - } class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection @@ -4811,11 +4858,11 @@ class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collectio public $kind; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4824,7 +4871,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -4833,7 +4879,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4842,7 +4887,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4851,12 +4895,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model @@ -4869,11 +4911,11 @@ class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model public $title; public $type; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -4882,7 +4924,6 @@ public function setPosition($position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -4891,7 +4932,6 @@ public function setStyle($style) { $this->style = $style; } - public function getStyle() { return $this->style; @@ -4900,7 +4940,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -4909,12 +4948,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTube_ChannelSettings extends Google_Collection @@ -4935,11 +4972,11 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection public $trackingAnalyticsAccountId; public $unsubscribedTrailer; + public function setDefaultTab($defaultTab) { $this->defaultTab = $defaultTab; } - public function getDefaultTab() { return $this->defaultTab; @@ -4948,7 +4985,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4957,7 +4993,6 @@ public function setFeaturedChannelsTitle($featuredChannelsTitle) { $this->featuredChannelsTitle = $featuredChannelsTitle; } - public function getFeaturedChannelsTitle() { return $this->featuredChannelsTitle; @@ -4966,7 +5001,6 @@ public function setFeaturedChannelsUrls($featuredChannelsUrls) { $this->featuredChannelsUrls = $featuredChannelsUrls; } - public function getFeaturedChannelsUrls() { return $this->featuredChannelsUrls; @@ -4975,7 +5009,6 @@ public function setKeywords($keywords) { $this->keywords = $keywords; } - public function getKeywords() { return $this->keywords; @@ -4984,7 +5017,6 @@ public function setModerateComments($moderateComments) { $this->moderateComments = $moderateComments; } - public function getModerateComments() { return $this->moderateComments; @@ -4993,7 +5025,6 @@ public function setProfileColor($profileColor) { $this->profileColor = $profileColor; } - public function getProfileColor() { return $this->profileColor; @@ -5002,7 +5033,6 @@ public function setShowBrowseView($showBrowseView) { $this->showBrowseView = $showBrowseView; } - public function getShowBrowseView() { return $this->showBrowseView; @@ -5011,7 +5041,6 @@ public function setShowRelatedChannels($showRelatedChannels) { $this->showRelatedChannels = $showRelatedChannels; } - public function getShowRelatedChannels() { return $this->showRelatedChannels; @@ -5020,7 +5049,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -5029,7 +5057,6 @@ public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) { $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; } - public function getTrackingAnalyticsAccountId() { return $this->trackingAnalyticsAccountId; @@ -5038,12 +5065,10 @@ public function setUnsubscribedTrailer($unsubscribedTrailer) { $this->unsubscribedTrailer = $unsubscribedTrailer; } - public function getUnsubscribedTrailer() { return $this->unsubscribedTrailer; } - } class Google_Service_YouTube_ChannelSnippet extends Google_Model @@ -5056,11 +5081,11 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5069,7 +5094,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -5078,7 +5102,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -5087,12 +5110,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_ChannelStatistics extends Google_Model @@ -5105,11 +5126,11 @@ class Google_Service_YouTube_ChannelStatistics extends Google_Model public $videoCount; public $viewCount; + public function setCommentCount($commentCount) { $this->commentCount = $commentCount; } - public function getCommentCount() { return $this->commentCount; @@ -5118,7 +5139,6 @@ public function setHiddenSubscriberCount($hiddenSubscriberCount) { $this->hiddenSubscriberCount = $hiddenSubscriberCount; } - public function getHiddenSubscriberCount() { return $this->hiddenSubscriberCount; @@ -5127,7 +5147,6 @@ public function setSubscriberCount($subscriberCount) { $this->subscriberCount = $subscriberCount; } - public function getSubscriberCount() { return $this->subscriberCount; @@ -5136,7 +5155,6 @@ public function setVideoCount($videoCount) { $this->videoCount = $videoCount; } - public function getVideoCount() { return $this->videoCount; @@ -5145,12 +5163,10 @@ public function setViewCount($viewCount) { $this->viewCount = $viewCount; } - public function getViewCount() { return $this->viewCount; } - } class Google_Service_YouTube_ChannelStatus extends Google_Model @@ -5161,11 +5177,11 @@ class Google_Service_YouTube_ChannelStatus extends Google_Model public $longUploadsStatus; public $privacyStatus; + public function setIsLinked($isLinked) { $this->isLinked = $isLinked; } - public function getIsLinked() { return $this->isLinked; @@ -5174,7 +5190,6 @@ public function setLongUploadsStatus($longUploadsStatus) { $this->longUploadsStatus = $longUploadsStatus; } - public function getLongUploadsStatus() { return $this->longUploadsStatus; @@ -5183,12 +5198,10 @@ public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; } - public function getPrivacyStatus() { return $this->privacyStatus; } - } class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection @@ -5198,16 +5211,15 @@ 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 @@ -5278,11 +5290,11 @@ class Google_Service_YouTube_ContentRating extends Google_Model public $tvpgRating; public $ytRating; + public function setAcbRating($acbRating) { $this->acbRating = $acbRating; } - public function getAcbRating() { return $this->acbRating; @@ -5291,7 +5303,6 @@ public function setAgcomRating($agcomRating) { $this->agcomRating = $agcomRating; } - public function getAgcomRating() { return $this->agcomRating; @@ -5300,7 +5311,6 @@ public function setAnatelRating($anatelRating) { $this->anatelRating = $anatelRating; } - public function getAnatelRating() { return $this->anatelRating; @@ -5309,7 +5319,6 @@ public function setBbfcRating($bbfcRating) { $this->bbfcRating = $bbfcRating; } - public function getBbfcRating() { return $this->bbfcRating; @@ -5318,7 +5327,6 @@ public function setBfvcRating($bfvcRating) { $this->bfvcRating = $bfvcRating; } - public function getBfvcRating() { return $this->bfvcRating; @@ -5327,7 +5335,6 @@ public function setBmukkRating($bmukkRating) { $this->bmukkRating = $bmukkRating; } - public function getBmukkRating() { return $this->bmukkRating; @@ -5336,7 +5343,6 @@ public function setCatvRating($catvRating) { $this->catvRating = $catvRating; } - public function getCatvRating() { return $this->catvRating; @@ -5345,7 +5351,6 @@ public function setCatvfrRating($catvfrRating) { $this->catvfrRating = $catvfrRating; } - public function getCatvfrRating() { return $this->catvfrRating; @@ -5354,7 +5359,6 @@ public function setCbfcRating($cbfcRating) { $this->cbfcRating = $cbfcRating; } - public function getCbfcRating() { return $this->cbfcRating; @@ -5363,7 +5367,6 @@ public function setCccRating($cccRating) { $this->cccRating = $cccRating; } - public function getCccRating() { return $this->cccRating; @@ -5372,7 +5375,6 @@ public function setCceRating($cceRating) { $this->cceRating = $cceRating; } - public function getCceRating() { return $this->cceRating; @@ -5381,7 +5383,6 @@ public function setChfilmRating($chfilmRating) { $this->chfilmRating = $chfilmRating; } - public function getChfilmRating() { return $this->chfilmRating; @@ -5390,7 +5391,6 @@ public function setChvrsRating($chvrsRating) { $this->chvrsRating = $chvrsRating; } - public function getChvrsRating() { return $this->chvrsRating; @@ -5399,7 +5399,6 @@ public function setCicfRating($cicfRating) { $this->cicfRating = $cicfRating; } - public function getCicfRating() { return $this->cicfRating; @@ -5408,7 +5407,6 @@ public function setCnaRating($cnaRating) { $this->cnaRating = $cnaRating; } - public function getCnaRating() { return $this->cnaRating; @@ -5417,7 +5415,6 @@ public function setCsaRating($csaRating) { $this->csaRating = $csaRating; } - public function getCsaRating() { return $this->csaRating; @@ -5426,7 +5423,6 @@ public function setCscfRating($cscfRating) { $this->cscfRating = $cscfRating; } - public function getCscfRating() { return $this->cscfRating; @@ -5435,7 +5431,6 @@ public function setCzfilmRating($czfilmRating) { $this->czfilmRating = $czfilmRating; } - public function getCzfilmRating() { return $this->czfilmRating; @@ -5444,7 +5439,6 @@ public function setDjctqRating($djctqRating) { $this->djctqRating = $djctqRating; } - public function getDjctqRating() { return $this->djctqRating; @@ -5453,7 +5447,6 @@ public function setEefilmRating($eefilmRating) { $this->eefilmRating = $eefilmRating; } - public function getEefilmRating() { return $this->eefilmRating; @@ -5462,7 +5455,6 @@ public function setEgfilmRating($egfilmRating) { $this->egfilmRating = $egfilmRating; } - public function getEgfilmRating() { return $this->egfilmRating; @@ -5471,7 +5463,6 @@ public function setEirinRating($eirinRating) { $this->eirinRating = $eirinRating; } - public function getEirinRating() { return $this->eirinRating; @@ -5480,7 +5471,6 @@ public function setFcbmRating($fcbmRating) { $this->fcbmRating = $fcbmRating; } - public function getFcbmRating() { return $this->fcbmRating; @@ -5489,7 +5479,6 @@ public function setFcoRating($fcoRating) { $this->fcoRating = $fcoRating; } - public function getFcoRating() { return $this->fcoRating; @@ -5498,7 +5487,6 @@ public function setFmocRating($fmocRating) { $this->fmocRating = $fmocRating; } - public function getFmocRating() { return $this->fmocRating; @@ -5507,7 +5495,6 @@ public function setFpbRating($fpbRating) { $this->fpbRating = $fpbRating; } - public function getFpbRating() { return $this->fpbRating; @@ -5516,7 +5503,6 @@ public function setFskRating($fskRating) { $this->fskRating = $fskRating; } - public function getFskRating() { return $this->fskRating; @@ -5525,7 +5511,6 @@ public function setGrfilmRating($grfilmRating) { $this->grfilmRating = $grfilmRating; } - public function getGrfilmRating() { return $this->grfilmRating; @@ -5534,7 +5519,6 @@ public function setIcaaRating($icaaRating) { $this->icaaRating = $icaaRating; } - public function getIcaaRating() { return $this->icaaRating; @@ -5543,7 +5527,6 @@ public function setIfcoRating($ifcoRating) { $this->ifcoRating = $ifcoRating; } - public function getIfcoRating() { return $this->ifcoRating; @@ -5552,7 +5535,6 @@ public function setIlfilmRating($ilfilmRating) { $this->ilfilmRating = $ilfilmRating; } - public function getIlfilmRating() { return $this->ilfilmRating; @@ -5561,7 +5543,6 @@ public function setIncaaRating($incaaRating) { $this->incaaRating = $incaaRating; } - public function getIncaaRating() { return $this->incaaRating; @@ -5570,7 +5551,6 @@ public function setKfcbRating($kfcbRating) { $this->kfcbRating = $kfcbRating; } - public function getKfcbRating() { return $this->kfcbRating; @@ -5579,7 +5559,6 @@ public function setKijkwijzerRating($kijkwijzerRating) { $this->kijkwijzerRating = $kijkwijzerRating; } - public function getKijkwijzerRating() { return $this->kijkwijzerRating; @@ -5588,7 +5567,6 @@ public function setKmrbRating($kmrbRating) { $this->kmrbRating = $kmrbRating; } - public function getKmrbRating() { return $this->kmrbRating; @@ -5597,7 +5575,6 @@ public function setLsfRating($lsfRating) { $this->lsfRating = $lsfRating; } - public function getLsfRating() { return $this->lsfRating; @@ -5606,7 +5583,6 @@ public function setMccaaRating($mccaaRating) { $this->mccaaRating = $mccaaRating; } - public function getMccaaRating() { return $this->mccaaRating; @@ -5615,7 +5591,6 @@ public function setMccypRating($mccypRating) { $this->mccypRating = $mccypRating; } - public function getMccypRating() { return $this->mccypRating; @@ -5624,7 +5599,6 @@ public function setMdaRating($mdaRating) { $this->mdaRating = $mdaRating; } - public function getMdaRating() { return $this->mdaRating; @@ -5633,7 +5607,6 @@ public function setMedietilsynetRating($medietilsynetRating) { $this->medietilsynetRating = $medietilsynetRating; } - public function getMedietilsynetRating() { return $this->medietilsynetRating; @@ -5642,7 +5615,6 @@ public function setMekuRating($mekuRating) { $this->mekuRating = $mekuRating; } - public function getMekuRating() { return $this->mekuRating; @@ -5651,7 +5623,6 @@ public function setMibacRating($mibacRating) { $this->mibacRating = $mibacRating; } - public function getMibacRating() { return $this->mibacRating; @@ -5660,7 +5631,6 @@ public function setMocRating($mocRating) { $this->mocRating = $mocRating; } - public function getMocRating() { return $this->mocRating; @@ -5669,7 +5639,6 @@ public function setMoctwRating($moctwRating) { $this->moctwRating = $moctwRating; } - public function getMoctwRating() { return $this->moctwRating; @@ -5678,7 +5647,6 @@ public function setMpaaRating($mpaaRating) { $this->mpaaRating = $mpaaRating; } - public function getMpaaRating() { return $this->mpaaRating; @@ -5687,7 +5655,6 @@ public function setMtrcbRating($mtrcbRating) { $this->mtrcbRating = $mtrcbRating; } - public function getMtrcbRating() { return $this->mtrcbRating; @@ -5696,7 +5663,6 @@ public function setNbcRating($nbcRating) { $this->nbcRating = $nbcRating; } - public function getNbcRating() { return $this->nbcRating; @@ -5705,7 +5671,6 @@ public function setNbcplRating($nbcplRating) { $this->nbcplRating = $nbcplRating; } - public function getNbcplRating() { return $this->nbcplRating; @@ -5714,7 +5679,6 @@ public function setNfrcRating($nfrcRating) { $this->nfrcRating = $nfrcRating; } - public function getNfrcRating() { return $this->nfrcRating; @@ -5723,7 +5687,6 @@ public function setNfvcbRating($nfvcbRating) { $this->nfvcbRating = $nfvcbRating; } - public function getNfvcbRating() { return $this->nfvcbRating; @@ -5732,7 +5695,6 @@ public function setNkclvRating($nkclvRating) { $this->nkclvRating = $nkclvRating; } - public function getNkclvRating() { return $this->nkclvRating; @@ -5741,7 +5703,6 @@ public function setOflcRating($oflcRating) { $this->oflcRating = $oflcRating; } - public function getOflcRating() { return $this->oflcRating; @@ -5750,7 +5711,6 @@ public function setPefilmRating($pefilmRating) { $this->pefilmRating = $pefilmRating; } - public function getPefilmRating() { return $this->pefilmRating; @@ -5759,7 +5719,6 @@ public function setRcnofRating($rcnofRating) { $this->rcnofRating = $rcnofRating; } - public function getRcnofRating() { return $this->rcnofRating; @@ -5768,7 +5727,6 @@ public function setResorteviolenciaRating($resorteviolenciaRating) { $this->resorteviolenciaRating = $resorteviolenciaRating; } - public function getResorteviolenciaRating() { return $this->resorteviolenciaRating; @@ -5777,7 +5735,6 @@ public function setRtcRating($rtcRating) { $this->rtcRating = $rtcRating; } - public function getRtcRating() { return $this->rtcRating; @@ -5786,7 +5743,6 @@ public function setRteRating($rteRating) { $this->rteRating = $rteRating; } - public function getRteRating() { return $this->rteRating; @@ -5795,7 +5751,6 @@ public function setRussiaRating($russiaRating) { $this->russiaRating = $russiaRating; } - public function getRussiaRating() { return $this->russiaRating; @@ -5804,7 +5759,6 @@ public function setSkfilmRating($skfilmRating) { $this->skfilmRating = $skfilmRating; } - public function getSkfilmRating() { return $this->skfilmRating; @@ -5813,7 +5767,6 @@ public function setSmaisRating($smaisRating) { $this->smaisRating = $smaisRating; } - public function getSmaisRating() { return $this->smaisRating; @@ -5822,7 +5775,6 @@ public function setSmsaRating($smsaRating) { $this->smsaRating = $smsaRating; } - public function getSmsaRating() { return $this->smsaRating; @@ -5831,7 +5783,6 @@ public function setTvpgRating($tvpgRating) { $this->tvpgRating = $tvpgRating; } - public function getTvpgRating() { return $this->tvpgRating; @@ -5840,12 +5791,10 @@ public function setYtRating($ytRating) { $this->ytRating = $ytRating; } - public function getYtRating() { return $this->ytRating; } - } class Google_Service_YouTube_GeoPoint extends Google_Model @@ -5856,11 +5805,11 @@ class Google_Service_YouTube_GeoPoint extends Google_Model public $latitude; public $longitude; + public function setAltitude($altitude) { $this->altitude = $altitude; } - public function getAltitude() { return $this->altitude; @@ -5869,7 +5818,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -5878,12 +5826,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_YouTube_GuideCategory extends Google_Model @@ -5896,11 +5842,11 @@ class Google_Service_YouTube_GuideCategory extends Google_Model protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; protected $snippetDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5909,7 +5855,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5918,7 +5863,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5927,12 +5871,10 @@ 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 @@ -5953,11 +5895,11 @@ class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5966,7 +5908,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -5975,7 +5916,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5984,7 +5924,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5993,7 +5932,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -6002,7 +5940,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -6011,7 +5948,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -6020,7 +5956,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -6029,12 +5964,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_GuideCategorySnippet extends Google_Model @@ -6044,11 +5977,11 @@ 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; @@ -6057,12 +5990,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_I18nLanguage extends Google_Model @@ -6075,11 +6006,11 @@ class Google_Service_YouTube_I18nLanguage extends Google_Model protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; protected $snippetDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6088,7 +6019,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6097,7 +6027,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6106,12 +6035,10 @@ public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; } - } class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection @@ -6126,11 +6053,11 @@ class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection public $kind; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6139,7 +6066,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -6148,7 +6074,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6157,7 +6082,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6166,12 +6090,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model @@ -6181,11 +6103,11 @@ class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model public $hl; public $name; + public function setHl($hl) { $this->hl = $hl; } - public function getHl() { return $this->hl; @@ -6194,12 +6116,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_YouTube_I18nRegion extends Google_Model @@ -6212,11 +6132,11 @@ class Google_Service_YouTube_I18nRegion extends Google_Model protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; protected $snippetDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6225,7 +6145,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6234,7 +6153,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6243,12 +6161,10 @@ public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; } - } class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection @@ -6263,11 +6179,11 @@ class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection public $kind; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6276,7 +6192,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -6285,7 +6200,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6294,7 +6208,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6303,12 +6216,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_I18nRegionSnippet extends Google_Model @@ -6318,11 +6229,11 @@ class Google_Service_YouTube_I18nRegionSnippet extends Google_Model public $gl; public $name; + public function setGl($gl) { $this->gl = $gl; } - public function getGl() { return $this->gl; @@ -6331,12 +6242,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_YouTube_ImageSettings extends Google_Model @@ -6371,11 +6280,11 @@ class Google_Service_YouTube_ImageSettings extends Google_Model public $trackingImageUrl; public $watchIconImageUrl; + public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) { $this->backgroundImageUrl = $backgroundImageUrl; } - public function getBackgroundImageUrl() { return $this->backgroundImageUrl; @@ -6384,7 +6293,6 @@ public function setBannerExternalUrl($bannerExternalUrl) { $this->bannerExternalUrl = $bannerExternalUrl; } - public function getBannerExternalUrl() { return $this->bannerExternalUrl; @@ -6393,7 +6301,6 @@ public function setBannerImageUrl($bannerImageUrl) { $this->bannerImageUrl = $bannerImageUrl; } - public function getBannerImageUrl() { return $this->bannerImageUrl; @@ -6402,7 +6309,6 @@ public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) { $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; } - public function getBannerMobileExtraHdImageUrl() { return $this->bannerMobileExtraHdImageUrl; @@ -6411,7 +6317,6 @@ public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) { $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; } - public function getBannerMobileHdImageUrl() { return $this->bannerMobileHdImageUrl; @@ -6420,7 +6325,6 @@ public function setBannerMobileImageUrl($bannerMobileImageUrl) { $this->bannerMobileImageUrl = $bannerMobileImageUrl; } - public function getBannerMobileImageUrl() { return $this->bannerMobileImageUrl; @@ -6429,7 +6333,6 @@ public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) { $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; } - public function getBannerMobileLowImageUrl() { return $this->bannerMobileLowImageUrl; @@ -6438,7 +6341,6 @@ public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) { $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; } - public function getBannerMobileMediumHdImageUrl() { return $this->bannerMobileMediumHdImageUrl; @@ -6447,7 +6349,6 @@ public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) { $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; } - public function getBannerTabletExtraHdImageUrl() { return $this->bannerTabletExtraHdImageUrl; @@ -6456,7 +6357,6 @@ public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) { $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; } - public function getBannerTabletHdImageUrl() { return $this->bannerTabletHdImageUrl; @@ -6465,7 +6365,6 @@ public function setBannerTabletImageUrl($bannerTabletImageUrl) { $this->bannerTabletImageUrl = $bannerTabletImageUrl; } - public function getBannerTabletImageUrl() { return $this->bannerTabletImageUrl; @@ -6474,7 +6373,6 @@ public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) { $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; } - public function getBannerTabletLowImageUrl() { return $this->bannerTabletLowImageUrl; @@ -6483,7 +6381,6 @@ public function setBannerTvHighImageUrl($bannerTvHighImageUrl) { $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; } - public function getBannerTvHighImageUrl() { return $this->bannerTvHighImageUrl; @@ -6492,7 +6389,6 @@ public function setBannerTvImageUrl($bannerTvImageUrl) { $this->bannerTvImageUrl = $bannerTvImageUrl; } - public function getBannerTvImageUrl() { return $this->bannerTvImageUrl; @@ -6501,7 +6397,6 @@ public function setBannerTvLowImageUrl($bannerTvLowImageUrl) { $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; } - public function getBannerTvLowImageUrl() { return $this->bannerTvLowImageUrl; @@ -6510,7 +6405,6 @@ public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) { $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; } - public function getBannerTvMediumImageUrl() { return $this->bannerTvMediumImageUrl; @@ -6519,7 +6413,6 @@ public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_Loca { $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; } - public function getLargeBrandedBannerImageImapScript() { return $this->largeBrandedBannerImageImapScript; @@ -6528,7 +6421,6 @@ public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedPr { $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; } - public function getLargeBrandedBannerImageUrl() { return $this->largeBrandedBannerImageUrl; @@ -6537,7 +6429,6 @@ public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_Loca { $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; } - public function getSmallBrandedBannerImageImapScript() { return $this->smallBrandedBannerImageImapScript; @@ -6546,7 +6437,6 @@ public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedPr { $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; } - public function getSmallBrandedBannerImageUrl() { return $this->smallBrandedBannerImageUrl; @@ -6555,7 +6445,6 @@ public function setTrackingImageUrl($trackingImageUrl) { $this->trackingImageUrl = $trackingImageUrl; } - public function getTrackingImageUrl() { return $this->trackingImageUrl; @@ -6564,12 +6453,10 @@ public function setWatchIconImageUrl($watchIconImageUrl) { $this->watchIconImageUrl = $watchIconImageUrl; } - public function getWatchIconImageUrl() { return $this->watchIconImageUrl; } - } class Google_Service_YouTube_IngestionInfo extends Google_Model @@ -6580,11 +6467,11 @@ class Google_Service_YouTube_IngestionInfo extends Google_Model public $ingestionAddress; public $streamName; + public function setBackupIngestionAddress($backupIngestionAddress) { $this->backupIngestionAddress = $backupIngestionAddress; } - public function getBackupIngestionAddress() { return $this->backupIngestionAddress; @@ -6593,7 +6480,6 @@ public function setIngestionAddress($ingestionAddress) { $this->ingestionAddress = $ingestionAddress; } - public function getIngestionAddress() { return $this->ingestionAddress; @@ -6602,12 +6488,10 @@ public function setStreamName($streamName) { $this->streamName = $streamName; } - public function getStreamName() { return $this->streamName; } - } class Google_Service_YouTube_InvideoBranding extends Google_Model @@ -6622,11 +6506,11 @@ class Google_Service_YouTube_InvideoBranding extends Google_Model protected $timingType = 'Google_Service_YouTube_InvideoTiming'; protected $timingDataType = ''; + public function setImageBytes($imageBytes) { $this->imageBytes = $imageBytes; } - public function getImageBytes() { return $this->imageBytes; @@ -6635,7 +6519,6 @@ public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; } - public function getImageUrl() { return $this->imageUrl; @@ -6644,7 +6527,6 @@ public function setPosition(Google_Service_YouTube_InvideoPosition $position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -6653,7 +6535,6 @@ public function setTargetChannelId($targetChannelId) { $this->targetChannelId = $targetChannelId; } - public function getTargetChannelId() { return $this->targetChannelId; @@ -6662,12 +6543,10 @@ public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { $this->timing = $timing; } - public function getTiming() { return $this->timing; } - } class Google_Service_YouTube_InvideoPosition extends Google_Model @@ -6677,11 +6556,11 @@ 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; @@ -6690,12 +6569,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTube_InvideoPromotion extends Google_Collection @@ -6711,11 +6588,11 @@ class Google_Service_YouTube_InvideoPromotion extends Google_Collection protected $positionDataType = ''; public $useSmartTiming; + public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) { $this->defaultTiming = $defaultTiming; } - public function getDefaultTiming() { return $this->defaultTiming; @@ -6724,7 +6601,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6733,7 +6609,6 @@ public function setPosition(Google_Service_YouTube_InvideoPosition $position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -6742,12 +6617,10 @@ public function setUseSmartTiming($useSmartTiming) { $this->useSmartTiming = $useSmartTiming; } - public function getUseSmartTiming() { return $this->useSmartTiming; } - } class Google_Service_YouTube_InvideoTiming extends Google_Model @@ -6758,11 +6631,11 @@ class Google_Service_YouTube_InvideoTiming extends Google_Model public $offsetMs; public $type; + public function setDurationMs($durationMs) { $this->durationMs = $durationMs; } - public function getDurationMs() { return $this->durationMs; @@ -6771,7 +6644,6 @@ public function setOffsetMs($offsetMs) { $this->offsetMs = $offsetMs; } - public function getOffsetMs() { return $this->offsetMs; @@ -6780,12 +6652,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTube_LiveBroadcast extends Google_Model @@ -6802,11 +6672,11 @@ class Google_Service_YouTube_LiveBroadcast extends Google_Model protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; protected $statusDataType = ''; + public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -6815,7 +6685,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6824,7 +6693,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6833,7 +6701,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6842,7 +6709,6 @@ public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -6851,12 +6717,10 @@ 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 @@ -6873,11 +6737,11 @@ class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model public $recordFromStart; public $startWithSlate; + public function setBoundStreamId($boundStreamId) { $this->boundStreamId = $boundStreamId; } - public function getBoundStreamId() { return $this->boundStreamId; @@ -6886,7 +6750,6 @@ public function setEnableClosedCaptions($enableClosedCaptions) { $this->enableClosedCaptions = $enableClosedCaptions; } - public function getEnableClosedCaptions() { return $this->enableClosedCaptions; @@ -6895,7 +6758,6 @@ public function setEnableContentEncryption($enableContentEncryption) { $this->enableContentEncryption = $enableContentEncryption; } - public function getEnableContentEncryption() { return $this->enableContentEncryption; @@ -6904,7 +6766,6 @@ public function setEnableDvr($enableDvr) { $this->enableDvr = $enableDvr; } - public function getEnableDvr() { return $this->enableDvr; @@ -6913,7 +6774,6 @@ public function setEnableEmbed($enableEmbed) { $this->enableEmbed = $enableEmbed; } - public function getEnableEmbed() { return $this->enableEmbed; @@ -6922,7 +6782,6 @@ public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monit { $this->monitorStream = $monitorStream; } - public function getMonitorStream() { return $this->monitorStream; @@ -6931,7 +6790,6 @@ public function setRecordFromStart($recordFromStart) { $this->recordFromStart = $recordFromStart; } - public function getRecordFromStart() { return $this->recordFromStart; @@ -6940,12 +6798,10 @@ public function setStartWithSlate($startWithSlate) { $this->startWithSlate = $startWithSlate; } - public function getStartWithSlate() { return $this->startWithSlate; } - } class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection @@ -6966,11 +6822,11 @@ class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -6979,7 +6835,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -6988,7 +6843,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6997,7 +6851,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7006,7 +6859,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7015,7 +6867,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -7024,7 +6875,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -7033,7 +6883,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -7042,12 +6891,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model @@ -7065,11 +6912,11 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setActualEndTime($actualEndTime) { $this->actualEndTime = $actualEndTime; } - public function getActualEndTime() { return $this->actualEndTime; @@ -7078,7 +6925,6 @@ public function setActualStartTime($actualStartTime) { $this->actualStartTime = $actualStartTime; } - public function getActualStartTime() { return $this->actualStartTime; @@ -7087,7 +6933,6 @@ public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -7096,7 +6941,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7105,7 +6949,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -7114,7 +6957,6 @@ public function setScheduledEndTime($scheduledEndTime) { $this->scheduledEndTime = $scheduledEndTime; } - public function getScheduledEndTime() { return $this->scheduledEndTime; @@ -7123,7 +6965,6 @@ public function setScheduledStartTime($scheduledStartTime) { $this->scheduledStartTime = $scheduledStartTime; } - public function getScheduledStartTime() { return $this->scheduledStartTime; @@ -7132,7 +6973,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -7141,12 +6981,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model @@ -7158,11 +6996,11 @@ class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model public $privacyStatus; public $recordingStatus; + public function setLifeCycleStatus($lifeCycleStatus) { $this->lifeCycleStatus = $lifeCycleStatus; } - public function getLifeCycleStatus() { return $this->lifeCycleStatus; @@ -7171,7 +7009,6 @@ public function setLiveBroadcastPriority($liveBroadcastPriority) { $this->liveBroadcastPriority = $liveBroadcastPriority; } - public function getLiveBroadcastPriority() { return $this->liveBroadcastPriority; @@ -7180,7 +7017,6 @@ public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; } - public function getPrivacyStatus() { return $this->privacyStatus; @@ -7189,12 +7025,10 @@ public function setRecordingStatus($recordingStatus) { $this->recordingStatus = $recordingStatus; } - public function getRecordingStatus() { return $this->recordingStatus; } - } class Google_Service_YouTube_LiveStream extends Google_Model @@ -7213,11 +7047,11 @@ class Google_Service_YouTube_LiveStream extends Google_Model protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; protected $statusDataType = ''; + public function setCdn(Google_Service_YouTube_CdnSettings $cdn) { $this->cdn = $cdn; } - public function getCdn() { return $this->cdn; @@ -7226,7 +7060,6 @@ public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetail { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -7235,7 +7068,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -7244,7 +7076,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7253,7 +7084,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7262,7 +7092,6 @@ public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -7271,12 +7100,10 @@ public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model @@ -7286,11 +7113,11 @@ class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model public $closedCaptionsIngestionUrl; public $isReusable; + public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) { $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; } - public function getClosedCaptionsIngestionUrl() { return $this->closedCaptionsIngestionUrl; @@ -7299,12 +7126,10 @@ public function setIsReusable($isReusable) { $this->isReusable = $isReusable; } - public function getIsReusable() { return $this->isReusable; } - } class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection @@ -7325,11 +7150,11 @@ class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -7338,7 +7163,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -7347,7 +7171,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7356,7 +7179,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7365,7 +7187,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7374,7 +7195,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -7383,7 +7203,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -7392,7 +7211,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -7401,12 +7219,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_LiveStreamSnippet extends Google_Model @@ -7418,11 +7234,11 @@ class Google_Service_YouTube_LiveStreamSnippet extends Google_Model public $publishedAt; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -7431,7 +7247,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7440,7 +7255,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -7449,12 +7263,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_LiveStreamStatus extends Google_Model @@ -7463,16 +7275,15 @@ 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 @@ -7484,11 +7295,11 @@ class Google_Service_YouTube_LocalizedProperty extends Google_Collection protected $localizedType = 'Google_Service_YouTube_LocalizedString'; protected $localizedDataType = 'array'; + public function setDefault($default) { $this->default = $default; } - public function getDefault() { return $this->default; @@ -7497,12 +7308,10 @@ public function setLocalized($localized) { $this->localized = $localized; } - public function getLocalized() { return $this->localized; } - } class Google_Service_YouTube_LocalizedString extends Google_Model @@ -7512,11 +7321,11 @@ 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; @@ -7525,12 +7334,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_YouTube_MonitorStreamInfo extends Google_Model @@ -7541,11 +7348,11 @@ class Google_Service_YouTube_MonitorStreamInfo extends Google_Model public $embedHtml; public $enableMonitorStream; + public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) { $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; } - public function getBroadcastStreamDelayMs() { return $this->broadcastStreamDelayMs; @@ -7554,7 +7361,6 @@ public function setEmbedHtml($embedHtml) { $this->embedHtml = $embedHtml; } - public function getEmbedHtml() { return $this->embedHtml; @@ -7563,12 +7369,10 @@ public function setEnableMonitorStream($enableMonitorStream) { $this->enableMonitorStream = $enableMonitorStream; } - public function getEnableMonitorStream() { return $this->enableMonitorStream; } - } class Google_Service_YouTube_PageInfo extends Google_Model @@ -7578,11 +7382,11 @@ 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; @@ -7591,12 +7395,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_YouTube_Playlist extends Google_Model @@ -7615,11 +7417,11 @@ class Google_Service_YouTube_Playlist extends Google_Model protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; protected $statusDataType = ''; + public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -7628,7 +7430,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -7637,7 +7438,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7646,7 +7446,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7655,7 +7454,6 @@ public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) { $this->player = $player; } - public function getPlayer() { return $this->player; @@ -7664,7 +7462,6 @@ public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -7673,12 +7470,10 @@ 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 @@ -7687,16 +7482,15 @@ 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 @@ -7713,11 +7507,11 @@ class Google_Service_YouTube_PlaylistItem extends Google_Model protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; protected $statusDataType = ''; + public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -7726,7 +7520,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -7735,7 +7528,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7744,7 +7536,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7753,7 +7544,6 @@ public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -7762,12 +7552,10 @@ 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 @@ -7779,11 +7567,11 @@ class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model public $startAt; public $videoId; + public function setEndAt($endAt) { $this->endAt = $endAt; } - public function getEndAt() { return $this->endAt; @@ -7792,7 +7580,6 @@ public function setNote($note) { $this->note = $note; } - public function getNote() { return $this->note; @@ -7801,7 +7588,6 @@ public function setStartAt($startAt) { $this->startAt = $startAt; } - public function getStartAt() { return $this->startAt; @@ -7810,12 +7596,10 @@ public function setVideoId($videoId) { $this->videoId = $videoId; } - public function getVideoId() { return $this->videoId; } - } class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection @@ -7836,11 +7620,11 @@ class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -7849,7 +7633,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -7858,7 +7641,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7867,7 +7649,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7876,7 +7657,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -7885,7 +7665,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -7894,7 +7673,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -7903,7 +7681,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -7912,12 +7689,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model @@ -7936,11 +7711,11 @@ class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -7949,7 +7724,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -7958,7 +7732,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7967,7 +7740,6 @@ public function setPlaylistId($playlistId) { $this->playlistId = $playlistId; } - public function getPlaylistId() { return $this->playlistId; @@ -7976,7 +7748,6 @@ public function setPosition($position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -7985,7 +7756,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -7994,7 +7764,6 @@ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -8003,7 +7772,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -8012,12 +7780,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_PlaylistItemStatus extends Google_Model @@ -8026,16 +7792,15 @@ 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 @@ -8056,11 +7821,11 @@ class Google_Service_YouTube_PlaylistListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -8069,7 +7834,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -8078,7 +7842,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8087,7 +7850,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8096,7 +7858,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8105,7 +7866,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -8114,7 +7874,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -8123,7 +7882,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -8132,12 +7890,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_PlaylistPlayer extends Google_Model @@ -8146,16 +7902,15 @@ 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_Collection @@ -8172,11 +7927,11 @@ class Google_Service_YouTube_PlaylistSnippet extends Google_Collection protected $thumbnailsDataType = ''; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -8185,7 +7940,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -8194,7 +7948,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8203,7 +7956,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -8212,7 +7964,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -8221,7 +7972,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -8230,12 +7980,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_PlaylistStatus extends Google_Model @@ -8244,16 +7992,15 @@ 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_PromotedItem extends Google_Model @@ -8267,11 +8014,11 @@ class Google_Service_YouTube_PromotedItem extends Google_Model protected $timingType = 'Google_Service_YouTube_InvideoTiming'; protected $timingDataType = ''; + public function setCustomMessage($customMessage) { $this->customMessage = $customMessage; } - public function getCustomMessage() { return $this->customMessage; @@ -8280,7 +8027,6 @@ public function setId(Google_Service_YouTube_PromotedItemId $id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8289,7 +8035,6 @@ public function setPromotedByContentOwner($promotedByContentOwner) { $this->promotedByContentOwner = $promotedByContentOwner; } - public function getPromotedByContentOwner() { return $this->promotedByContentOwner; @@ -8298,12 +8043,10 @@ public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { $this->timing = $timing; } - public function getTiming() { return $this->timing; } - } class Google_Service_YouTube_PromotedItemId extends Google_Model @@ -8315,11 +8058,11 @@ class Google_Service_YouTube_PromotedItemId extends Google_Model public $videoId; public $websiteUrl; + public function setRecentlyUploadedBy($recentlyUploadedBy) { $this->recentlyUploadedBy = $recentlyUploadedBy; } - public function getRecentlyUploadedBy() { return $this->recentlyUploadedBy; @@ -8328,7 +8071,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -8337,7 +8079,6 @@ public function setVideoId($videoId) { $this->videoId = $videoId; } - public function getVideoId() { return $this->videoId; @@ -8346,12 +8087,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_YouTube_PropertyValue extends Google_Model @@ -8361,11 +8100,11 @@ 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; @@ -8374,12 +8113,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_YouTube_ResourceId extends Google_Model @@ -8391,11 +8128,11 @@ class Google_Service_YouTube_ResourceId extends Google_Model public $playlistId; public $videoId; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -8404,7 +8141,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8413,7 +8149,6 @@ public function setPlaylistId($playlistId) { $this->playlistId = $playlistId; } - public function getPlaylistId() { return $this->playlistId; @@ -8422,12 +8157,10 @@ public function setVideoId($videoId) { $this->videoId = $videoId; } - public function getVideoId() { return $this->videoId; } - } class Google_Service_YouTube_SearchListResponse extends Google_Collection @@ -8448,11 +8181,11 @@ class Google_Service_YouTube_SearchListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -8461,7 +8194,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -8470,7 +8202,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8479,7 +8210,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8488,7 +8218,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8497,7 +8226,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -8506,7 +8234,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -8515,7 +8242,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -8524,12 +8250,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_SearchResult extends Google_Model @@ -8543,11 +8267,11 @@ class Google_Service_YouTube_SearchResult extends Google_Model protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; protected $snippetDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -8556,7 +8280,6 @@ public function setId(Google_Service_YouTube_ResourceId $id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8565,7 +8288,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8574,12 +8296,10 @@ 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 @@ -8595,11 +8315,11 @@ class Google_Service_YouTube_SearchResultSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -8608,7 +8328,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -8617,7 +8336,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8626,7 +8344,6 @@ public function setLiveBroadcastContent($liveBroadcastContent) { $this->liveBroadcastContent = $liveBroadcastContent; } - public function getLiveBroadcastContent() { return $this->liveBroadcastContent; @@ -8635,7 +8352,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -8644,7 +8360,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -8653,12 +8368,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_Subscription extends Google_Model @@ -8675,11 +8388,11 @@ class Google_Service_YouTube_Subscription extends Google_Model protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; protected $subscriberSnippetDataType = ''; + public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -8688,7 +8401,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -8697,7 +8409,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8706,7 +8417,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8715,7 +8425,6 @@ public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -8724,12 +8433,10 @@ public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscrib { $this->subscriberSnippet = $subscriberSnippet; } - public function getSubscriberSnippet() { return $this->subscriberSnippet; } - } class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model @@ -8740,11 +8447,11 @@ class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model public $newItemCount; public $totalItemCount; + public function setActivityType($activityType) { $this->activityType = $activityType; } - public function getActivityType() { return $this->activityType; @@ -8753,7 +8460,6 @@ public function setNewItemCount($newItemCount) { $this->newItemCount = $newItemCount; } - public function getNewItemCount() { return $this->newItemCount; @@ -8762,12 +8468,10 @@ public function setTotalItemCount($totalItemCount) { $this->totalItemCount = $totalItemCount; } - public function getTotalItemCount() { return $this->totalItemCount; } - } class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection @@ -8788,11 +8492,11 @@ class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -8801,7 +8505,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -8810,7 +8513,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8819,7 +8521,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8828,7 +8529,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -8837,7 +8537,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -8846,7 +8545,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -8855,7 +8553,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -8864,12 +8561,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_SubscriptionSnippet extends Google_Model @@ -8886,11 +8581,11 @@ class Google_Service_YouTube_SubscriptionSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -8899,7 +8594,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -8908,7 +8602,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8917,7 +8610,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -8926,7 +8618,6 @@ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -8935,7 +8626,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -8944,12 +8634,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model @@ -8962,11 +8650,11 @@ class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model protected $thumbnailsDataType = ''; public $title; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -8975,7 +8663,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -8984,7 +8671,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -8993,12 +8679,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_Thumbnail extends Google_Model @@ -9009,11 +8693,11 @@ class Google_Service_YouTube_Thumbnail extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -9022,7 +8706,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -9031,12 +8714,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_YouTube_ThumbnailDetails extends Google_Model @@ -9054,11 +8735,11 @@ class Google_Service_YouTube_ThumbnailDetails extends Google_Model protected $standardType = 'Google_Service_YouTube_Thumbnail'; protected $standardDataType = ''; + public function setDefault(Google_Service_YouTube_Thumbnail $default) { $this->default = $default; } - public function getDefault() { return $this->default; @@ -9067,7 +8748,6 @@ public function setHigh(Google_Service_YouTube_Thumbnail $high) { $this->high = $high; } - public function getHigh() { return $this->high; @@ -9076,7 +8756,6 @@ public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) { $this->maxres = $maxres; } - public function getMaxres() { return $this->maxres; @@ -9085,7 +8764,6 @@ public function setMedium(Google_Service_YouTube_Thumbnail $medium) { $this->medium = $medium; } - public function getMedium() { return $this->medium; @@ -9094,12 +8772,10 @@ public function setStandard(Google_Service_YouTube_Thumbnail $standard) { $this->standard = $standard; } - public function getStandard() { return $this->standard; } - } class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection @@ -9114,11 +8790,11 @@ class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection public $kind; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -9127,7 +8803,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -9136,7 +8811,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9145,7 +8819,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9154,20 +8827,14 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_TokenPagination extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_YouTube_Video extends Google_Model @@ -9208,11 +8875,11 @@ class Google_Service_YouTube_Video extends Google_Model protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; protected $topicDetailsDataType = ''; + public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) { $this->ageGating = $ageGating; } - public function getAgeGating() { return $this->ageGating; @@ -9221,7 +8888,6 @@ public function setContentDetails(Google_Service_YouTube_VideoContentDetails $co { $this->contentDetails = $contentDetails; } - public function getContentDetails() { return $this->contentDetails; @@ -9230,7 +8896,6 @@ public function setConversionPings(Google_Service_YouTube_VideoConversionPings $ { $this->conversionPings = $conversionPings; } - public function getConversionPings() { return $this->conversionPings; @@ -9239,7 +8904,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -9248,7 +8912,6 @@ public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDeta { $this->fileDetails = $fileDetails; } - public function getFileDetails() { return $this->fileDetails; @@ -9257,7 +8920,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9266,7 +8928,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9275,7 +8936,6 @@ public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamin { $this->liveStreamingDetails = $liveStreamingDetails; } - public function getLiveStreamingDetails() { return $this->liveStreamingDetails; @@ -9284,7 +8944,6 @@ public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationD { $this->monetizationDetails = $monetizationDetails; } - public function getMonetizationDetails() { return $this->monetizationDetails; @@ -9293,7 +8952,6 @@ public function setPlayer(Google_Service_YouTube_VideoPlayer $player) { $this->player = $player; } - public function getPlayer() { return $this->player; @@ -9302,7 +8960,6 @@ public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetai { $this->processingDetails = $processingDetails; } - public function getProcessingDetails() { return $this->processingDetails; @@ -9311,7 +8968,6 @@ public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $pr { $this->projectDetails = $projectDetails; } - public function getProjectDetails() { return $this->projectDetails; @@ -9320,7 +8976,6 @@ public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails { $this->recordingDetails = $recordingDetails; } - public function getRecordingDetails() { return $this->recordingDetails; @@ -9329,7 +8984,6 @@ public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -9338,7 +8992,6 @@ public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics { $this->statistics = $statistics; } - public function getStatistics() { return $this->statistics; @@ -9347,7 +9000,6 @@ public function setStatus(Google_Service_YouTube_VideoStatus $status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -9356,7 +9008,6 @@ public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggesti { $this->suggestions = $suggestions; } - public function getSuggestions() { return $this->suggestions; @@ -9365,12 +9016,10 @@ public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicD { $this->topicDetails = $topicDetails; } - public function getTopicDetails() { return $this->topicDetails; } - } class Google_Service_YouTube_VideoAgeGating extends Google_Model @@ -9381,11 +9030,11 @@ class Google_Service_YouTube_VideoAgeGating extends Google_Model public $restricted; public $videoGameRating; + public function setAlcoholContent($alcoholContent) { $this->alcoholContent = $alcoholContent; } - public function getAlcoholContent() { return $this->alcoholContent; @@ -9394,7 +9043,6 @@ public function setRestricted($restricted) { $this->restricted = $restricted; } - public function getRestricted() { return $this->restricted; @@ -9403,12 +9051,10 @@ public function setVideoGameRating($videoGameRating) { $this->videoGameRating = $videoGameRating; } - public function getVideoGameRating() { return $this->videoGameRating; } - } class Google_Service_YouTube_VideoCategory extends Google_Model @@ -9421,11 +9067,11 @@ class Google_Service_YouTube_VideoCategory extends Google_Model protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; protected $snippetDataType = ''; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -9434,7 +9080,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9443,7 +9088,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9452,12 +9096,10 @@ 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 @@ -9478,11 +9120,11 @@ class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -9491,7 +9133,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -9500,7 +9141,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9509,7 +9149,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9518,7 +9157,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -9527,7 +9165,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -9536,7 +9173,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -9545,7 +9181,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -9554,12 +9189,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_VideoCategorySnippet extends Google_Model @@ -9570,11 +9203,11 @@ class Google_Service_YouTube_VideoCategorySnippet extends Google_Model public $channelId; public $title; + public function setAssignable($assignable) { $this->assignable = $assignable; } - public function getAssignable() { return $this->assignable; @@ -9583,7 +9216,6 @@ public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -9592,12 +9224,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_VideoContentDetails extends Google_Model @@ -9616,11 +9246,11 @@ class Google_Service_YouTube_VideoContentDetails extends Google_Model protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; protected $regionRestrictionDataType = ''; + public function setCaption($caption) { $this->caption = $caption; } - public function getCaption() { return $this->caption; @@ -9629,7 +9259,6 @@ public function setContentRating(Google_Service_YouTube_ContentRating $contentRa { $this->contentRating = $contentRating; } - public function getContentRating() { return $this->contentRating; @@ -9638,7 +9267,6 @@ public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $count { $this->countryRestriction = $countryRestriction; } - public function getCountryRestriction() { return $this->countryRestriction; @@ -9647,7 +9275,6 @@ public function setDefinition($definition) { $this->definition = $definition; } - public function getDefinition() { return $this->definition; @@ -9656,7 +9283,6 @@ public function setDimension($dimension) { $this->dimension = $dimension; } - public function getDimension() { return $this->dimension; @@ -9665,7 +9291,6 @@ public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -9674,7 +9299,6 @@ public function setLicensedContent($licensedContent) { $this->licensedContent = $licensedContent; } - public function getLicensedContent() { return $this->licensedContent; @@ -9683,12 +9307,10 @@ public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsR { $this->regionRestriction = $regionRestriction; } - public function getRegionRestriction() { return $this->regionRestriction; } - } class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection @@ -9699,11 +9321,11 @@ class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google public $allowed; public $blocked; + public function setAllowed($allowed) { $this->allowed = $allowed; } - public function getAllowed() { return $this->allowed; @@ -9712,12 +9334,10 @@ public function setBlocked($blocked) { $this->blocked = $blocked; } - public function getBlocked() { return $this->blocked; } - } class Google_Service_YouTube_VideoConversionPing extends Google_Model @@ -9727,11 +9347,11 @@ 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; @@ -9740,12 +9360,10 @@ public function setConversionUrl($conversionUrl) { $this->conversionUrl = $conversionUrl; } - public function getConversionUrl() { return $this->conversionUrl; } - } class Google_Service_YouTube_VideoConversionPings extends Google_Collection @@ -9756,16 +9374,15 @@ class Google_Service_YouTube_VideoConversionPings extends Google_Collection protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; protected $pingsDataType = 'array'; + public function setPings($pings) { $this->pings = $pings; } - public function getPings() { return $this->pings; } - } class Google_Service_YouTube_VideoFileDetails extends Google_Collection @@ -9787,11 +9404,11 @@ class Google_Service_YouTube_VideoFileDetails extends Google_Collection protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; protected $videoStreamsDataType = 'array'; + public function setAudioStreams($audioStreams) { $this->audioStreams = $audioStreams; } - public function getAudioStreams() { return $this->audioStreams; @@ -9800,7 +9417,6 @@ public function setBitrateBps($bitrateBps) { $this->bitrateBps = $bitrateBps; } - public function getBitrateBps() { return $this->bitrateBps; @@ -9809,7 +9425,6 @@ public function setContainer($container) { $this->container = $container; } - public function getContainer() { return $this->container; @@ -9818,7 +9433,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -9827,7 +9441,6 @@ public function setDurationMs($durationMs) { $this->durationMs = $durationMs; } - public function getDurationMs() { return $this->durationMs; @@ -9836,7 +9449,6 @@ public function setFileName($fileName) { $this->fileName = $fileName; } - public function getFileName() { return $this->fileName; @@ -9845,7 +9457,6 @@ public function setFileSize($fileSize) { $this->fileSize = $fileSize; } - public function getFileSize() { return $this->fileSize; @@ -9854,7 +9465,6 @@ public function setFileType($fileType) { $this->fileType = $fileType; } - public function getFileType() { return $this->fileType; @@ -9863,7 +9473,6 @@ public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingL { $this->recordingLocation = $recordingLocation; } - public function getRecordingLocation() { return $this->recordingLocation; @@ -9872,12 +9481,10 @@ public function setVideoStreams($videoStreams) { $this->videoStreams = $videoStreams; } - public function getVideoStreams() { return $this->videoStreams; } - } class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model @@ -9889,11 +9496,11 @@ class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model public $codec; public $vendor; + public function setBitrateBps($bitrateBps) { $this->bitrateBps = $bitrateBps; } - public function getBitrateBps() { return $this->bitrateBps; @@ -9902,7 +9509,6 @@ public function setChannelCount($channelCount) { $this->channelCount = $channelCount; } - public function getChannelCount() { return $this->channelCount; @@ -9911,7 +9517,6 @@ public function setCodec($codec) { $this->codec = $codec; } - public function getCodec() { return $this->codec; @@ -9920,12 +9525,10 @@ public function setVendor($vendor) { $this->vendor = $vendor; } - public function getVendor() { return $this->vendor; } - } class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model @@ -9941,11 +9544,11 @@ class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model public $vendor; public $widthPixels; + public function setAspectRatio($aspectRatio) { $this->aspectRatio = $aspectRatio; } - public function getAspectRatio() { return $this->aspectRatio; @@ -9954,7 +9557,6 @@ public function setBitrateBps($bitrateBps) { $this->bitrateBps = $bitrateBps; } - public function getBitrateBps() { return $this->bitrateBps; @@ -9963,7 +9565,6 @@ public function setCodec($codec) { $this->codec = $codec; } - public function getCodec() { return $this->codec; @@ -9972,7 +9573,6 @@ public function setFrameRateFps($frameRateFps) { $this->frameRateFps = $frameRateFps; } - public function getFrameRateFps() { return $this->frameRateFps; @@ -9981,7 +9581,6 @@ public function setHeightPixels($heightPixels) { $this->heightPixels = $heightPixels; } - public function getHeightPixels() { return $this->heightPixels; @@ -9990,7 +9589,6 @@ public function setRotation($rotation) { $this->rotation = $rotation; } - public function getRotation() { return $this->rotation; @@ -9999,7 +9597,6 @@ public function setVendor($vendor) { $this->vendor = $vendor; } - public function getVendor() { return $this->vendor; @@ -10008,12 +9605,10 @@ public function setWidthPixels($widthPixels) { $this->widthPixels = $widthPixels; } - public function getWidthPixels() { return $this->widthPixels; } - } class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection @@ -10026,11 +9621,11 @@ class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -10039,7 +9634,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -10048,12 +9642,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_YouTube_VideoListResponse extends Google_Collection @@ -10074,11 +9666,11 @@ class Google_Service_YouTube_VideoListResponse extends Google_Collection protected $tokenPaginationDataType = ''; public $visitorId; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -10087,7 +9679,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -10096,7 +9687,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -10105,7 +9695,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -10114,7 +9703,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -10123,7 +9711,6 @@ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { $this->pageInfo = $pageInfo; } - public function getPageInfo() { return $this->pageInfo; @@ -10132,7 +9719,6 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; @@ -10141,7 +9727,6 @@ public function setTokenPagination(Google_Service_YouTube_TokenPagination $token { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; @@ -10150,12 +9735,10 @@ public function setVisitorId($visitorId) { $this->visitorId = $visitorId; } - public function getVisitorId() { return $this->visitorId; } - } class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model @@ -10168,11 +9751,11 @@ class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model public $scheduledEndTime; public $scheduledStartTime; + public function setActualEndTime($actualEndTime) { $this->actualEndTime = $actualEndTime; } - public function getActualEndTime() { return $this->actualEndTime; @@ -10181,7 +9764,6 @@ public function setActualStartTime($actualStartTime) { $this->actualStartTime = $actualStartTime; } - public function getActualStartTime() { return $this->actualStartTime; @@ -10190,7 +9772,6 @@ public function setConcurrentViewers($concurrentViewers) { $this->concurrentViewers = $concurrentViewers; } - public function getConcurrentViewers() { return $this->concurrentViewers; @@ -10199,7 +9780,6 @@ public function setScheduledEndTime($scheduledEndTime) { $this->scheduledEndTime = $scheduledEndTime; } - public function getScheduledEndTime() { return $this->scheduledEndTime; @@ -10208,12 +9788,10 @@ public function setScheduledStartTime($scheduledStartTime) { $this->scheduledStartTime = $scheduledStartTime; } - public function getScheduledStartTime() { return $this->scheduledStartTime; } - } class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model @@ -10223,16 +9801,15 @@ class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model protected $accessType = 'Google_Service_YouTube_AccessPolicy'; protected $accessDataType = ''; + public function setAccess(Google_Service_YouTube_AccessPolicy $access) { $this->access = $access; } - public function getAccess() { return $this->access; } - } class Google_Service_YouTube_VideoPlayer extends Google_Model @@ -10241,16 +9818,15 @@ 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 @@ -10267,11 +9843,11 @@ class Google_Service_YouTube_VideoProcessingDetails extends Google_Model public $tagSuggestionsAvailability; public $thumbnailsAvailability; + public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) { $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; } - public function getEditorSuggestionsAvailability() { return $this->editorSuggestionsAvailability; @@ -10280,7 +9856,6 @@ public function setFileDetailsAvailability($fileDetailsAvailability) { $this->fileDetailsAvailability = $fileDetailsAvailability; } - public function getFileDetailsAvailability() { return $this->fileDetailsAvailability; @@ -10289,7 +9864,6 @@ public function setProcessingFailureReason($processingFailureReason) { $this->processingFailureReason = $processingFailureReason; } - public function getProcessingFailureReason() { return $this->processingFailureReason; @@ -10298,7 +9872,6 @@ public function setProcessingIssuesAvailability($processingIssuesAvailability) { $this->processingIssuesAvailability = $processingIssuesAvailability; } - public function getProcessingIssuesAvailability() { return $this->processingIssuesAvailability; @@ -10307,7 +9880,6 @@ public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDeta { $this->processingProgress = $processingProgress; } - public function getProcessingProgress() { return $this->processingProgress; @@ -10316,7 +9888,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -10325,7 +9896,6 @@ public function setTagSuggestionsAvailability($tagSuggestionsAvailability) { $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; } - public function getTagSuggestionsAvailability() { return $this->tagSuggestionsAvailability; @@ -10334,12 +9904,10 @@ public function setThumbnailsAvailability($thumbnailsAvailability) { $this->thumbnailsAvailability = $thumbnailsAvailability; } - public function getThumbnailsAvailability() { return $this->thumbnailsAvailability; } - } class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model @@ -10350,11 +9918,11 @@ class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Go public $partsTotal; public $timeLeftMs; + public function setPartsProcessed($partsProcessed) { $this->partsProcessed = $partsProcessed; } - public function getPartsProcessed() { return $this->partsProcessed; @@ -10363,7 +9931,6 @@ public function setPartsTotal($partsTotal) { $this->partsTotal = $partsTotal; } - public function getPartsTotal() { return $this->partsTotal; @@ -10372,12 +9939,10 @@ public function setTimeLeftMs($timeLeftMs) { $this->timeLeftMs = $timeLeftMs; } - public function getTimeLeftMs() { return $this->timeLeftMs; } - } class Google_Service_YouTube_VideoProjectDetails extends Google_Collection @@ -10387,16 +9952,15 @@ 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 @@ -10406,11 +9970,11 @@ 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; @@ -10419,12 +9983,10 @@ public function setVideoId($videoId) { $this->videoId = $videoId; } - public function getVideoId() { return $this->videoId; } - } class Google_Service_YouTube_VideoRecordingDetails extends Google_Model @@ -10436,11 +9998,11 @@ class Google_Service_YouTube_VideoRecordingDetails extends Google_Model public $locationDescription; public $recordingDate; + public function setLocation(Google_Service_YouTube_GeoPoint $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -10449,7 +10011,6 @@ public function setLocationDescription($locationDescription) { $this->locationDescription = $locationDescription; } - public function getLocationDescription() { return $this->locationDescription; @@ -10458,12 +10019,10 @@ public function setRecordingDate($recordingDate) { $this->recordingDate = $recordingDate; } - public function getRecordingDate() { return $this->recordingDate; } - } class Google_Service_YouTube_VideoSnippet extends Google_Collection @@ -10482,11 +10041,11 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection protected $thumbnailsDataType = ''; public $title; + public function setCategoryId($categoryId) { $this->categoryId = $categoryId; } - public function getCategoryId() { return $this->categoryId; @@ -10495,7 +10054,6 @@ public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -10504,7 +10062,6 @@ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } - public function getChannelTitle() { return $this->channelTitle; @@ -10513,7 +10070,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -10522,7 +10078,6 @@ public function setLiveBroadcastContent($liveBroadcastContent) { $this->liveBroadcastContent = $liveBroadcastContent; } - public function getLiveBroadcastContent() { return $this->liveBroadcastContent; @@ -10531,7 +10086,6 @@ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } - public function getPublishedAt() { return $this->publishedAt; @@ -10540,7 +10094,6 @@ public function setTags($tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -10549,7 +10102,6 @@ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnail { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -10558,12 +10110,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_YouTube_VideoStatistics extends Google_Model @@ -10576,11 +10126,11 @@ class Google_Service_YouTube_VideoStatistics extends Google_Model public $likeCount; public $viewCount; + public function setCommentCount($commentCount) { $this->commentCount = $commentCount; } - public function getCommentCount() { return $this->commentCount; @@ -10589,7 +10139,6 @@ public function setDislikeCount($dislikeCount) { $this->dislikeCount = $dislikeCount; } - public function getDislikeCount() { return $this->dislikeCount; @@ -10598,7 +10147,6 @@ public function setFavoriteCount($favoriteCount) { $this->favoriteCount = $favoriteCount; } - public function getFavoriteCount() { return $this->favoriteCount; @@ -10607,7 +10155,6 @@ public function setLikeCount($likeCount) { $this->likeCount = $likeCount; } - public function getLikeCount() { return $this->likeCount; @@ -10616,12 +10163,10 @@ public function setViewCount($viewCount) { $this->viewCount = $viewCount; } - public function getViewCount() { return $this->viewCount; } - } class Google_Service_YouTube_VideoStatus extends Google_Model @@ -10637,11 +10182,11 @@ class Google_Service_YouTube_VideoStatus extends Google_Model public $rejectionReason; public $uploadStatus; + public function setEmbeddable($embeddable) { $this->embeddable = $embeddable; } - public function getEmbeddable() { return $this->embeddable; @@ -10650,7 +10195,6 @@ public function setFailureReason($failureReason) { $this->failureReason = $failureReason; } - public function getFailureReason() { return $this->failureReason; @@ -10659,7 +10203,6 @@ public function setLicense($license) { $this->license = $license; } - public function getLicense() { return $this->license; @@ -10668,7 +10211,6 @@ public function setPrivacyStatus($privacyStatus) { $this->privacyStatus = $privacyStatus; } - public function getPrivacyStatus() { return $this->privacyStatus; @@ -10677,7 +10219,6 @@ public function setPublicStatsViewable($publicStatsViewable) { $this->publicStatsViewable = $publicStatsViewable; } - public function getPublicStatsViewable() { return $this->publicStatsViewable; @@ -10686,7 +10227,6 @@ public function setPublishAt($publishAt) { $this->publishAt = $publishAt; } - public function getPublishAt() { return $this->publishAt; @@ -10695,7 +10235,6 @@ public function setRejectionReason($rejectionReason) { $this->rejectionReason = $rejectionReason; } - public function getRejectionReason() { return $this->rejectionReason; @@ -10704,12 +10243,10 @@ public function setUploadStatus($uploadStatus) { $this->uploadStatus = $uploadStatus; } - public function getUploadStatus() { return $this->uploadStatus; } - } class Google_Service_YouTube_VideoSuggestions extends Google_Collection @@ -10724,11 +10261,11 @@ class Google_Service_YouTube_VideoSuggestions extends Google_Collection protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; protected $tagSuggestionsDataType = 'array'; + public function setEditorSuggestions($editorSuggestions) { $this->editorSuggestions = $editorSuggestions; } - public function getEditorSuggestions() { return $this->editorSuggestions; @@ -10737,7 +10274,6 @@ public function setProcessingErrors($processingErrors) { $this->processingErrors = $processingErrors; } - public function getProcessingErrors() { return $this->processingErrors; @@ -10746,7 +10282,6 @@ public function setProcessingHints($processingHints) { $this->processingHints = $processingHints; } - public function getProcessingHints() { return $this->processingHints; @@ -10755,7 +10290,6 @@ public function setProcessingWarnings($processingWarnings) { $this->processingWarnings = $processingWarnings; } - public function getProcessingWarnings() { return $this->processingWarnings; @@ -10764,12 +10298,10 @@ public function setTagSuggestions($tagSuggestions) { $this->tagSuggestions = $tagSuggestions; } - public function getTagSuggestions() { return $this->tagSuggestions; } - } class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection @@ -10780,11 +10312,11 @@ class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collec public $categoryRestricts; public $tag; + public function setCategoryRestricts($categoryRestricts) { $this->categoryRestricts = $categoryRestricts; } - public function getCategoryRestricts() { return $this->categoryRestricts; @@ -10793,12 +10325,10 @@ public function setTag($tag) { $this->tag = $tag; } - public function getTag() { return $this->tag; } - } class Google_Service_YouTube_VideoTopicDetails extends Google_Collection @@ -10809,11 +10339,11 @@ class Google_Service_YouTube_VideoTopicDetails extends Google_Collection public $relevantTopicIds; public $topicIds; + public function setRelevantTopicIds($relevantTopicIds) { $this->relevantTopicIds = $relevantTopicIds; } - public function getRelevantTopicIds() { return $this->relevantTopicIds; @@ -10822,12 +10352,10 @@ public function setTopicIds($topicIds) { $this->topicIds = $topicIds; } - public function getTopicIds() { return $this->topicIds; } - } class Google_Service_YouTube_WatchSettings extends Google_Model @@ -10838,11 +10366,11 @@ class Google_Service_YouTube_WatchSettings extends Google_Model public $featuredPlaylistId; public $textColor; + public function setBackgroundColor($backgroundColor) { $this->backgroundColor = $backgroundColor; } - public function getBackgroundColor() { return $this->backgroundColor; @@ -10851,7 +10379,6 @@ public function setFeaturedPlaylistId($featuredPlaylistId) { $this->featuredPlaylistId = $featuredPlaylistId; } - public function getFeaturedPlaylistId() { return $this->featuredPlaylistId; @@ -10860,10 +10387,8 @@ public function setTextColor($textColor) { $this->textColor = $textColor; } - public function getTextColor() { return $this->textColor; } - } From 1bc78882ca016d36499c2f4bd0ae639ea77a8d90 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:35 -0800 Subject: [PATCH 0464/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 238 ++++++++----------------------- 1 file changed, 57 insertions(+), 181 deletions(-) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index b8463a18c..961fd30c0 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -19,8 +19,7 @@ * Service definition for CivicInfo (v2). * *

- * An API for accessing civic information. - *

+ * An API for accessing civic information.

* *

* For more information about this service, see the API @@ -179,11 +178,11 @@ class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resourc * * @param array $optParams Optional parameters. * - * @opt_param string query - * The search query. Queries can cover any parts of a OCD ID or a human readable division name. All - * words given in the query are treated as required patterns. In addition to that, most query - * operators of the Apache Lucene library are supported. See - * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html + * @opt_param string query The search query. Queries can cover any parts of a + * OCD ID or a human readable division name. All words given in the query are + * treated as required patterns. In addition to that, most query operators of + * the Apache Lucene library are supported. See + * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html * @return Google_Service_CivicInfo_DivisionSearchResponse */ public function search($optParams = array()) @@ -217,19 +216,19 @@ public function electionQuery($optParams = array()) $params = array_merge($params, $optParams); return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse"); } + /** * Looks up information relevant to a voter based on the voter's registered * address. (elections.voterInfoQuery) * - * @param string $address - * The registered address of the voter to look up. + * @param string $address The registered address of the voter to look up. * @param array $optParams Optional parameters. * - * @opt_param string electionId - * The unique ID of the election to look up. A list of election IDs can be obtained at - * https://www.googleapis.com/civicinfo/{version}/elections - * @opt_param bool officialOnly - * If set to true, only data from official state sources will be returned. + * @opt_param string electionId The unique ID of the election to look up. A list + * of election IDs can be obtained at + * https://www.googleapis.com/civicinfo/{version}/elections + * @opt_param bool officialOnly If set to true, only data from official state + * sources will be returned. * @return Google_Service_CivicInfo_VoterInfoResponse */ public function voterInfoQuery($address, $optParams = array()) @@ -257,17 +256,17 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R * * @param array $optParams Optional parameters. * - * @opt_param bool includeOffices - * Whether to return information about offices and officials. If false, only the top-level district - * information will be returned. - * @opt_param string levels - * A list of office levels to filter by. Only offices that serve at least one of these levels will - * be returned. Divisions that don't contain a matching office will not be returned. - * @opt_param string roles - * A list of office roles to filter by. Only offices fulfilling one of these roles will be - * returned. Divisions that don't contain a matching office will not be returned. - * @opt_param string address - * The address to look up. May only be specified if the field ocdId is not given in the URL. + * @opt_param bool includeOffices Whether to return information about offices + * and officials. If false, only the top-level district information will be + * returned. + * @opt_param string levels A list of office levels to filter by. Only offices + * that serve at least one of these levels will be returned. Divisions that + * don't contain a matching office will not be returned. + * @opt_param string roles A list of office roles to filter by. Only offices + * fulfilling one of these roles will be returned. Divisions that don't contain + * a matching office will not be returned. + * @opt_param string address The address to look up. May only be specified if + * the field ocdId is not given in the URL. * @return Google_Service_CivicInfo_RepresentativeInfoResponse */ public function representativeInfoByAddress($optParams = array()) @@ -276,24 +275,25 @@ public function representativeInfoByAddress($optParams = array()) $params = array_merge($params, $optParams); return $this->call('representativeInfoByAddress', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); } + /** * Looks up representative information for a single geographic division. * (representatives.representativeInfoByDivision) * - * @param string $ocdId - * The Open Civic Data division identifier of the division to look up. + * @param string $ocdId The Open Civic Data division identifier of the division + * to look up. * @param array $optParams Optional parameters. * - * @opt_param string levels - * A list of office levels to filter by. Only offices that serve at least one of these levels will - * be returned. Divisions that don't contain a matching office will not be returned. - * @opt_param bool recursive - * If true, information about all divisions contained in the division requested will be included as - * well. For example, if querying ocd-division/country:us/district:dc, this would also return all - * DC's wards and ANCs. - * @opt_param string roles - * A list of office roles to filter by. Only offices fulfilling one of these roles will be - * returned. Divisions that don't contain a matching office will not be returned. + * @opt_param string levels A list of office levels to filter by. Only offices + * that serve at least one of these levels will be returned. Divisions that + * don't contain a matching office will not be returned. + * @opt_param bool recursive If true, information about all divisions contained + * in the division requested will be included as well. For example, if querying + * ocd-division/country:us/district:dc, this would also return all DC's wards + * and ANCs. + * @opt_param string roles A list of office roles to filter by. Only offices + * fulfilling one of these roles will be returned. Divisions that don't contain + * a matching office will not be returned. * @return Google_Service_CivicInfo_RepresentativeInfoData */ public function representativeInfoByDivision($ocdId, $optParams = array()) @@ -322,11 +322,11 @@ class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection protected $sourcesType = 'Google_Service_CivicInfo_Source'; protected $sourcesDataType = 'array'; + public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody) { $this->electionAdministrationBody = $electionAdministrationBody; } - public function getElectionAdministrationBody() { return $this->electionAdministrationBody; @@ -335,7 +335,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -344,7 +343,6 @@ public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegi { $this->localJurisdiction = $localJurisdiction; } - public function getLocalJurisdiction() { return $this->localJurisdiction; @@ -353,7 +351,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -362,12 +359,10 @@ public function setSources($sources) { $this->sources = $sources; } - public function getSources() { return $this->sources; } - } class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection @@ -393,11 +388,11 @@ class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection public $voterServices; public $votingLocationFinderUrl; + public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl) { $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl; } - public function getAbsenteeVotingInfoUrl() { return $this->absenteeVotingInfoUrl; @@ -406,7 +401,6 @@ public function setBallotInfoUrl($ballotInfoUrl) { $this->ballotInfoUrl = $ballotInfoUrl; } - public function getBallotInfoUrl() { return $this->ballotInfoUrl; @@ -415,7 +409,6 @@ public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressT { $this->correspondenceAddress = $correspondenceAddress; } - public function getCorrespondenceAddress() { return $this->correspondenceAddress; @@ -424,7 +417,6 @@ public function setElectionInfoUrl($electionInfoUrl) { $this->electionInfoUrl = $electionInfoUrl; } - public function getElectionInfoUrl() { return $this->electionInfoUrl; @@ -433,7 +425,6 @@ public function setElectionOfficials($electionOfficials) { $this->electionOfficials = $electionOfficials; } - public function getElectionOfficials() { return $this->electionOfficials; @@ -442,7 +433,6 @@ public function setElectionRegistrationConfirmationUrl($electionRegistrationConf { $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; } - public function getElectionRegistrationConfirmationUrl() { return $this->electionRegistrationConfirmationUrl; @@ -451,7 +441,6 @@ public function setElectionRegistrationUrl($electionRegistrationUrl) { $this->electionRegistrationUrl = $electionRegistrationUrl; } - public function getElectionRegistrationUrl() { return $this->electionRegistrationUrl; @@ -460,7 +449,6 @@ public function setElectionRulesUrl($electionRulesUrl) { $this->electionRulesUrl = $electionRulesUrl; } - public function getElectionRulesUrl() { return $this->electionRulesUrl; @@ -469,7 +457,6 @@ public function setHoursOfOperation($hoursOfOperation) { $this->hoursOfOperation = $hoursOfOperation; } - public function getHoursOfOperation() { return $this->hoursOfOperation; @@ -478,7 +465,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -487,7 +473,6 @@ public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $p { $this->physicalAddress = $physicalAddress; } - public function getPhysicalAddress() { return $this->physicalAddress; @@ -496,7 +481,6 @@ public function setVoterServices($voterServices) { $this->voterServices = $voterServices; } - public function getVoterServices() { return $this->voterServices; @@ -505,12 +489,10 @@ public function setVotingLocationFinderUrl($votingLocationFinderUrl) { $this->votingLocationFinderUrl = $votingLocationFinderUrl; } - public function getVotingLocationFinderUrl() { return $this->votingLocationFinderUrl; } - } class Google_Service_CivicInfo_Candidate extends Google_Collection @@ -528,11 +510,11 @@ class Google_Service_CivicInfo_Candidate extends Google_Collection public $phone; public $photoUrl; + public function setCandidateUrl($candidateUrl) { $this->candidateUrl = $candidateUrl; } - public function getCandidateUrl() { return $this->candidateUrl; @@ -541,7 +523,6 @@ public function setChannels($channels) { $this->channels = $channels; } - public function getChannels() { return $this->channels; @@ -550,7 +531,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -559,7 +539,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -568,7 +547,6 @@ public function setOrderOnBallot($orderOnBallot) { $this->orderOnBallot = $orderOnBallot; } - public function getOrderOnBallot() { return $this->orderOnBallot; @@ -577,7 +555,6 @@ public function setParty($party) { $this->party = $party; } - public function getParty() { return $this->party; @@ -586,7 +563,6 @@ public function setPhone($phone) { $this->phone = $phone; } - public function getPhone() { return $this->phone; @@ -595,12 +571,10 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; } - } class Google_Service_CivicInfo_Channel extends Google_Model @@ -610,11 +584,11 @@ class Google_Service_CivicInfo_Channel extends Google_Model public $id; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -623,12 +597,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_CivicInfo_Contest extends Google_Collection @@ -657,11 +629,11 @@ class Google_Service_CivicInfo_Contest extends Google_Collection public $special; public $type; + public function setBallotPlacement($ballotPlacement) { $this->ballotPlacement = $ballotPlacement; } - public function getBallotPlacement() { return $this->ballotPlacement; @@ -670,7 +642,6 @@ public function setCandidates($candidates) { $this->candidates = $candidates; } - public function getCandidates() { return $this->candidates; @@ -679,7 +650,6 @@ public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district { $this->district = $district; } - public function getDistrict() { return $this->district; @@ -688,7 +658,6 @@ public function setElectorateSpecifications($electorateSpecifications) { $this->electorateSpecifications = $electorateSpecifications; } - public function getElectorateSpecifications() { return $this->electorateSpecifications; @@ -697,7 +666,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -706,7 +674,6 @@ public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; @@ -715,7 +682,6 @@ public function setNumberElected($numberElected) { $this->numberElected = $numberElected; } - public function getNumberElected() { return $this->numberElected; @@ -724,7 +690,6 @@ public function setNumberVotingFor($numberVotingFor) { $this->numberVotingFor = $numberVotingFor; } - public function getNumberVotingFor() { return $this->numberVotingFor; @@ -733,7 +698,6 @@ public function setOffice($office) { $this->office = $office; } - public function getOffice() { return $this->office; @@ -742,7 +706,6 @@ public function setPrimaryParty($primaryParty) { $this->primaryParty = $primaryParty; } - public function getPrimaryParty() { return $this->primaryParty; @@ -751,7 +714,6 @@ public function setReferendumSubtitle($referendumSubtitle) { $this->referendumSubtitle = $referendumSubtitle; } - public function getReferendumSubtitle() { return $this->referendumSubtitle; @@ -760,7 +722,6 @@ public function setReferendumTitle($referendumTitle) { $this->referendumTitle = $referendumTitle; } - public function getReferendumTitle() { return $this->referendumTitle; @@ -769,7 +730,6 @@ public function setReferendumUrl($referendumUrl) { $this->referendumUrl = $referendumUrl; } - public function getReferendumUrl() { return $this->referendumUrl; @@ -778,7 +738,6 @@ public function setRoles($roles) { $this->roles = $roles; } - public function getRoles() { return $this->roles; @@ -787,7 +746,6 @@ public function setSources($sources) { $this->sources = $sources; } - public function getSources() { return $this->sources; @@ -796,7 +754,6 @@ public function setSpecial($special) { $this->special = $special; } - public function getSpecial() { return $this->special; @@ -805,12 +762,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection @@ -822,11 +777,11 @@ class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; protected $resultsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -835,12 +790,10 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; } - } class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection @@ -852,11 +805,11 @@ class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection public $name; public $ocdId; + public function setAliases($aliases) { $this->aliases = $aliases; } - public function getAliases() { return $this->aliases; @@ -865,7 +818,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -874,12 +826,10 @@ public function setOcdId($ocdId) { $this->ocdId = $ocdId; } - public function getOcdId() { return $this->ocdId; } - } class Google_Service_CivicInfo_Election extends Google_Model @@ -890,11 +840,11 @@ class Google_Service_CivicInfo_Election extends Google_Model public $id; public $name; + public function setElectionDay($electionDay) { $this->electionDay = $electionDay; } - public function getElectionDay() { return $this->electionDay; @@ -903,7 +853,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -912,12 +861,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_CivicInfo_ElectionOfficial extends Google_Model @@ -930,11 +877,11 @@ class Google_Service_CivicInfo_ElectionOfficial extends Google_Model public $officePhoneNumber; public $title; + public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; @@ -943,7 +890,6 @@ public function setFaxNumber($faxNumber) { $this->faxNumber = $faxNumber; } - public function getFaxNumber() { return $this->faxNumber; @@ -952,7 +898,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -961,7 +906,6 @@ public function setOfficePhoneNumber($officePhoneNumber) { $this->officePhoneNumber = $officePhoneNumber; } - public function getOfficePhoneNumber() { return $this->officePhoneNumber; @@ -970,12 +914,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection @@ -987,11 +929,11 @@ class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection protected $electionsDataType = 'array'; public $kind; + public function setElections($elections) { $this->elections = $elections; } - public function getElections() { return $this->elections; @@ -1000,12 +942,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model @@ -1016,11 +956,11 @@ class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model public $name; public $scope; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1029,7 +969,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1038,12 +977,10 @@ public function setScope($scope) { $this->scope = $scope; } - public function getScope() { return $this->scope; } - } class Google_Service_CivicInfo_GeographicDivision extends Google_Collection @@ -1055,11 +992,11 @@ class Google_Service_CivicInfo_GeographicDivision extends Google_Collection public $name; public $officeIndices; + public function setAlsoKnownAs($alsoKnownAs) { $this->alsoKnownAs = $alsoKnownAs; } - public function getAlsoKnownAs() { return $this->alsoKnownAs; @@ -1068,7 +1005,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1077,12 +1013,10 @@ public function setOfficeIndices($officeIndices) { $this->officeIndices = $officeIndices; } - public function getOfficeIndices() { return $this->officeIndices; } - } class Google_Service_CivicInfo_Office extends Google_Collection @@ -1098,11 +1032,11 @@ class Google_Service_CivicInfo_Office extends Google_Collection protected $sourcesType = 'Google_Service_CivicInfo_Source'; protected $sourcesDataType = 'array'; + public function setDivisionId($divisionId) { $this->divisionId = $divisionId; } - public function getDivisionId() { return $this->divisionId; @@ -1111,7 +1045,6 @@ public function setLevels($levels) { $this->levels = $levels; } - public function getLevels() { return $this->levels; @@ -1120,7 +1053,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1129,7 +1061,6 @@ public function setOfficialIndices($officialIndices) { $this->officialIndices = $officialIndices; } - public function getOfficialIndices() { return $this->officialIndices; @@ -1138,7 +1069,6 @@ public function setRoles($roles) { $this->roles = $roles; } - public function getRoles() { return $this->roles; @@ -1147,12 +1077,10 @@ public function setSources($sources) { $this->sources = $sources; } - public function getSources() { return $this->sources; } - } class Google_Service_CivicInfo_Official extends Google_Collection @@ -1171,11 +1099,11 @@ class Google_Service_CivicInfo_Official extends Google_Collection public $photoUrl; public $urls; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -1184,7 +1112,6 @@ public function setChannels($channels) { $this->channels = $channels; } - public function getChannels() { return $this->channels; @@ -1193,7 +1120,6 @@ public function setEmails($emails) { $this->emails = $emails; } - public function getEmails() { return $this->emails; @@ -1202,7 +1128,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1211,7 +1136,6 @@ public function setParty($party) { $this->party = $party; } - public function getParty() { return $this->party; @@ -1220,7 +1144,6 @@ public function setPhones($phones) { $this->phones = $phones; } - public function getPhones() { return $this->phones; @@ -1229,7 +1152,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1238,12 +1160,10 @@ public function setUrls($urls) { $this->urls = $urls; } - public function getUrls() { return $this->urls; } - } class Google_Service_CivicInfo_PollingLocation extends Google_Collection @@ -1263,11 +1183,11 @@ class Google_Service_CivicInfo_PollingLocation extends Google_Collection public $startDate; public $voterServices; + public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -1276,7 +1196,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -1285,7 +1204,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1294,7 +1212,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1303,7 +1220,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -1312,7 +1228,6 @@ public function setPollingHours($pollingHours) { $this->pollingHours = $pollingHours; } - public function getPollingHours() { return $this->pollingHours; @@ -1321,7 +1236,6 @@ public function setSources($sources) { $this->sources = $sources; } - public function getSources() { return $this->sources; @@ -1330,7 +1244,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -1339,12 +1252,10 @@ public function setVoterServices($voterServices) { $this->voterServices = $voterServices; } - public function getVoterServices() { return $this->voterServices; } - } class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection @@ -1359,11 +1270,11 @@ class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection protected $officialsType = 'Google_Service_CivicInfo_Official'; protected $officialsDataType = 'array'; + public function setDivisions($divisions) { $this->divisions = $divisions; } - public function getDivisions() { return $this->divisions; @@ -1372,7 +1283,6 @@ public function setOffices($offices) { $this->offices = $offices; } - public function getOffices() { return $this->offices; @@ -1381,20 +1291,14 @@ public function setOfficials($officials) { $this->officials = $officials; } - public function getOfficials() { return $this->officials; } - } class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection @@ -1412,11 +1316,11 @@ class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collect protected $officialsType = 'Google_Service_CivicInfo_Official'; protected $officialsDataType = 'array'; + public function setDivisions($divisions) { $this->divisions = $divisions; } - public function getDivisions() { return $this->divisions; @@ -1425,7 +1329,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1434,7 +1337,6 @@ public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $n { $this->normalizedInput = $normalizedInput; } - public function getNormalizedInput() { return $this->normalizedInput; @@ -1443,7 +1345,6 @@ public function setOffices($offices) { $this->offices = $offices; } - public function getOffices() { return $this->offices; @@ -1452,20 +1353,14 @@ public function setOfficials($officials) { $this->officials = $officials; } - public function getOfficials() { return $this->officials; } - } class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_CivicInfo_SimpleAddressType extends Google_Model @@ -1480,11 +1375,11 @@ class Google_Service_CivicInfo_SimpleAddressType extends Google_Model public $state; public $zip; + public function setCity($city) { $this->city = $city; } - public function getCity() { return $this->city; @@ -1493,7 +1388,6 @@ public function setLine1($line1) { $this->line1 = $line1; } - public function getLine1() { return $this->line1; @@ -1502,7 +1396,6 @@ public function setLine2($line2) { $this->line2 = $line2; } - public function getLine2() { return $this->line2; @@ -1511,7 +1404,6 @@ public function setLine3($line3) { $this->line3 = $line3; } - public function getLine3() { return $this->line3; @@ -1520,7 +1412,6 @@ public function setLocationName($locationName) { $this->locationName = $locationName; } - public function getLocationName() { return $this->locationName; @@ -1529,7 +1420,6 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; @@ -1538,12 +1428,10 @@ public function setZip($zip) { $this->zip = $zip; } - public function getZip() { return $this->zip; } - } class Google_Service_CivicInfo_Source extends Google_Model @@ -1553,11 +1441,11 @@ class Google_Service_CivicInfo_Source extends Google_Model public $name; public $official; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1566,12 +1454,10 @@ public function setOfficial($official) { $this->official = $official; } - public function getOfficial() { return $this->official; } - } class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection @@ -1598,11 +1484,11 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; protected $stateDataType = 'array'; + public function setContests($contests) { $this->contests = $contests; } - public function getContests() { return $this->contests; @@ -1611,7 +1497,6 @@ public function setDropOffLocations($dropOffLocations) { $this->dropOffLocations = $dropOffLocations; } - public function getDropOffLocations() { return $this->dropOffLocations; @@ -1620,7 +1505,6 @@ public function setEarlyVoteSites($earlyVoteSites) { $this->earlyVoteSites = $earlyVoteSites; } - public function getEarlyVoteSites() { return $this->earlyVoteSites; @@ -1629,7 +1513,6 @@ public function setElection(Google_Service_CivicInfo_Election $election) { $this->election = $election; } - public function getElection() { return $this->election; @@ -1638,7 +1521,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1647,7 +1529,6 @@ public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $n { $this->normalizedInput = $normalizedInput; } - public function getNormalizedInput() { return $this->normalizedInput; @@ -1656,7 +1537,6 @@ public function setOtherElections($otherElections) { $this->otherElections = $otherElections; } - public function getOtherElections() { return $this->otherElections; @@ -1665,7 +1545,6 @@ public function setPollingLocations($pollingLocations) { $this->pollingLocations = $pollingLocations; } - public function getPollingLocations() { return $this->pollingLocations; @@ -1674,7 +1553,6 @@ public function setPrecinctId($precinctId) { $this->precinctId = $precinctId; } - public function getPrecinctId() { return $this->precinctId; @@ -1683,10 +1561,8 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } From 853d47dfb2a8359ef2b6bed30b8a074b38cf1ef9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:36 -0800 Subject: [PATCH 0465/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 596 ++++++------------------- 1 file changed, 144 insertions(+), 452 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index d4a38b48a..92ce06590 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -19,8 +19,8 @@ * Service definition for ShoppingContent (v2). * *

- * Manage product items, inventory, and Merchant Center accounts for Google Shopping. - *

+ * Manage product items, inventory, and Merchant Center accounts for Google + * Shopping.

* *

* For more information about this service, see the API @@ -32,7 +32,8 @@ class Google_Service_ShoppingContent extends Google_Service { /** Manage your product listings and accounts for Google Shopping. */ - const CONTENT = "https://www.googleapis.com/auth/content"; + const CONTENT = + "https://www.googleapis.com/auth/content"; public $accounts; public $accountstatuses; @@ -548,13 +549,12 @@ public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRe $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse"); } + /** * Deletes a Merchant Center sub-account. (accounts.delete) * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account. * @param array $optParams Optional parameters. */ public function delete($merchantId, $accountId, $optParams = array()) @@ -563,13 +563,12 @@ public function delete($merchantId, $accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a Merchant Center account. (accounts.get) * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account. * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Account */ @@ -579,11 +578,11 @@ public function get($merchantId, $accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_Account"); } + /** * Creates a Merchant Center sub-account. (accounts.insert) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Account @@ -594,18 +593,17 @@ public function insert($merchantId, Google_Service_ShoppingContent_Account $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); } + /** * Lists the sub-accounts in your Merchant Center account. * (accounts.listAccounts) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of accounts to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of accounts to return in the + * response, used for paging. * @return Google_Service_ShoppingContent_AccountsListResponse */ public function listAccounts($merchantId, $optParams = array()) @@ -614,14 +612,13 @@ public function listAccounts($merchantId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); } + /** * Updates a Merchant Center account. This method supports patch semantics. * (accounts.patch) * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account. * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Account @@ -632,13 +629,12 @@ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Ac $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); } + /** * Updates a Merchant Center account. (accounts.update) * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account. * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Account @@ -675,13 +671,12 @@ public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustom $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); } + /** * Retrieves the status of a Merchant Center account. (accountstatuses.get) * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account. * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_AccountStatus */ @@ -691,18 +686,17 @@ public function get($merchantId, $accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); } + /** * Lists the statuses of the sub-accounts in your Merchant Center account. * (accountstatuses.listAccountstatuses) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of account statuses to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of account statuses to return + * in the response, used for paging. * @return Google_Service_ShoppingContent_AccountstatusesListResponse */ public function listAccountstatuses($merchantId, $optParams = array()) @@ -737,13 +731,12 @@ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchR $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); } + /** * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) * * @param string $merchantId - * * @param string $datafeedId - * * @param array $optParams Optional parameters. */ public function delete($merchantId, $datafeedId, $optParams = array()) @@ -752,13 +745,12 @@ public function delete($merchantId, $datafeedId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) * * @param string $merchantId - * * @param string $datafeedId - * * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Datafeed */ @@ -768,11 +760,11 @@ public function get($merchantId, $datafeedId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); } + /** * Registers a datafeed with your Merchant Center account. (datafeeds.insert) * * @param string $merchantId - * * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Datafeed @@ -783,18 +775,17 @@ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $pos $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); } + /** * Lists the datafeeds in your Merchant Center account. * (datafeeds.listDatafeeds) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of products to return in the + * response, used for paging. * @return Google_Service_ShoppingContent_DatafeedsListResponse */ public function listDatafeeds($merchantId, $optParams = array()) @@ -803,14 +794,13 @@ public function listDatafeeds($merchantId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); } + /** * Updates a datafeed of your Merchant Center account. This method supports * patch semantics. (datafeeds.patch) * * @param string $merchantId - * * @param string $datafeedId - * * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Datafeed @@ -821,13 +811,12 @@ public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_D $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); } + /** * Updates a datafeed of your Merchant Center account. (datafeeds.update) * * @param string $merchantId - * * @param string $datafeedId - * * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Datafeed @@ -864,14 +853,13 @@ public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCusto $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse"); } + /** * Retrieves the status of a datafeed from your Merchant Center account. * (datafeedstatuses.get) * * @param string $merchantId - * * @param string $datafeedId - * * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_DatafeedStatus */ @@ -881,18 +869,17 @@ public function get($merchantId, $datafeedId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus"); } + /** * Lists the statuses of the datafeeds in your Merchant Center account. * (datafeedstatuses.listDatafeedstatuses) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of products to return in the + * response, used for paging. * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse */ public function listDatafeedstatuses($merchantId, $optParams = array()) @@ -928,17 +915,17 @@ public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchR $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); } + /** * Updates price and availability of a product in your Merchant Center account. * (inventory.set) * - * @param string $merchantId - * The ID of the managing account. - * @param string $storeCode - * The code of the store for which to update price and availability. Use online to update price and - * availability of an online product. - * @param string $productId - * The ID of the product for which to update price and availability. + * @param string $merchantId The ID of the managing account. + * @param string $storeCode The code of the store for which to update price and + * availability. Use online to update price and availability of an online + * product. + * @param string $productId The ID of the product for which to update price and + * availability. * @param Google_InventorySetRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_InventorySetResponse @@ -969,8 +956,7 @@ class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Re * @param Google_ProductsCustomBatchRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) @@ -979,17 +965,15 @@ public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRe $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse"); } + /** * Deletes a product from your Merchant Center account. (products.delete) * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. + * @param string $merchantId The ID of the managing account. + * @param string $productId The ID of the product. * @param array $optParams Optional parameters. * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. + * @opt_param bool dryRun Flag to run the request in dry-run mode. */ public function delete($merchantId, $productId, $optParams = array()) { @@ -997,13 +981,12 @@ public function delete($merchantId, $productId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a product from your Merchant Center account. (products.get) * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. + * @param string $merchantId The ID of the managing account. + * @param string $productId The ID of the product. * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Product */ @@ -1013,16 +996,15 @@ public function get($merchantId, $productId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_Product"); } + /** * Uploads a product to your Merchant Center account. (products.insert) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param Google_Product $postBody * @param array $optParams Optional parameters. * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Product */ public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) @@ -1031,17 +1013,16 @@ public function insert($merchantId, Google_Service_ShoppingContent_Product $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product"); } + /** * Lists the products in your Merchant Center account. (products.listProducts) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of products to return in the + * response, used for paging. * @return Google_Service_ShoppingContent_ProductsListResponse */ public function listProducts($merchantId, $optParams = array()) @@ -1077,14 +1058,13 @@ public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustom $params = array_merge($params, $optParams); return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); } + /** * Gets the status of a product from your Merchant Center account. * (productstatuses.get) * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. + * @param string $merchantId The ID of the managing account. + * @param string $productId The ID of the product. * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_ProductStatus */ @@ -1094,18 +1074,17 @@ public function get($merchantId, $productId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); } + /** * Lists the statuses of the products in your Merchant Center account. * (productstatuses.listProductstatuses) * - * @param string $merchantId - * The ID of the managing account. + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of product statuses to return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of product statuses to return + * in the response, used for paging. * @return Google_Service_ShoppingContent_ProductstatusesListResponse */ public function listProductstatuses($merchantId, $optParams = array()) @@ -1136,11 +1115,11 @@ class Google_Service_ShoppingContent_Account extends Google_Collection protected $usersDataType = 'array'; public $websiteUrl; + public function setAdultContent($adultContent) { $this->adultContent = $adultContent; } - public function getAdultContent() { return $this->adultContent; @@ -1149,7 +1128,6 @@ public function setAdwordsLinks($adwordsLinks) { $this->adwordsLinks = $adwordsLinks; } - public function getAdwordsLinks() { return $this->adwordsLinks; @@ -1158,7 +1136,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1167,7 +1144,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1176,7 +1152,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1185,7 +1160,6 @@ public function setReviewsUrl($reviewsUrl) { $this->reviewsUrl = $reviewsUrl; } - public function getReviewsUrl() { return $this->reviewsUrl; @@ -1194,7 +1168,6 @@ public function setSellerId($sellerId) { $this->sellerId = $sellerId; } - public function getSellerId() { return $this->sellerId; @@ -1203,7 +1176,6 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; @@ -1212,12 +1184,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model @@ -1227,11 +1197,11 @@ class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model public $adwordsId; public $status; + public function setAdwordsId($adwordsId) { $this->adwordsId = $adwordsId; } - public function getAdwordsId() { return $this->adwordsId; @@ -1240,12 +1210,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_ShoppingContent_AccountStatus extends Google_Collection @@ -1258,11 +1226,11 @@ class Google_Service_ShoppingContent_AccountStatus extends Google_Collection protected $dataQualityIssuesDataType = 'array'; public $kind; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1271,7 +1239,6 @@ public function setDataQualityIssues($dataQualityIssues) { $this->dataQualityIssues = $dataQualityIssues; } - public function getDataQualityIssues() { return $this->dataQualityIssues; @@ -1280,12 +1247,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection @@ -1303,11 +1268,11 @@ class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Googl public $severity; public $submittedValue; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -1316,7 +1281,6 @@ public function setDisplayedValue($displayedValue) { $this->displayedValue = $displayedValue; } - public function getDisplayedValue() { return $this->displayedValue; @@ -1325,7 +1289,6 @@ public function setExampleItems($exampleItems) { $this->exampleItems = $exampleItems; } - public function getExampleItems() { return $this->exampleItems; @@ -1334,7 +1297,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1343,7 +1305,6 @@ public function setLastChecked($lastChecked) { $this->lastChecked = $lastChecked; } - public function getLastChecked() { return $this->lastChecked; @@ -1352,7 +1313,6 @@ public function setNumItems($numItems) { $this->numItems = $numItems; } - public function getNumItems() { return $this->numItems; @@ -1361,7 +1321,6 @@ public function setSeverity($severity) { $this->severity = $severity; } - public function getSeverity() { return $this->severity; @@ -1370,12 +1329,10 @@ public function setSubmittedValue($submittedValue) { $this->submittedValue = $submittedValue; } - public function getSubmittedValue() { return $this->submittedValue; } - } class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model @@ -1388,11 +1345,11 @@ class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Mod public $title; public $valueOnLandingPage; + public function setItemId($itemId) { $this->itemId = $itemId; } - public function getItemId() { return $this->itemId; @@ -1401,7 +1358,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -1410,7 +1366,6 @@ public function setSubmittedValue($submittedValue) { $this->submittedValue = $submittedValue; } - public function getSubmittedValue() { return $this->submittedValue; @@ -1419,7 +1374,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1428,12 +1382,10 @@ public function setValueOnLandingPage($valueOnLandingPage) { $this->valueOnLandingPage = $valueOnLandingPage; } - public function getValueOnLandingPage() { return $this->valueOnLandingPage; } - } class Google_Service_ShoppingContent_AccountUser extends Google_Model @@ -1443,11 +1395,11 @@ class Google_Service_ShoppingContent_AccountUser extends Google_Model public $admin; public $emailAddress; + public function setAdmin($admin) { $this->admin = $admin; } - public function getAdmin() { return $this->admin; @@ -1456,12 +1408,10 @@ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; } - } class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection @@ -1472,16 +1422,15 @@ class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_C protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model @@ -1495,11 +1444,11 @@ class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Goo public $merchantId; public $method; + public function setAccount(Google_Service_ShoppingContent_Account $account) { $this->account = $account; } - public function getAccount() { return $this->account; @@ -1508,7 +1457,6 @@ public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1517,7 +1465,6 @@ public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -1526,7 +1473,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -1535,12 +1481,10 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; } - } class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection @@ -1552,11 +1496,11 @@ class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_ protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -1565,12 +1509,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model @@ -1584,11 +1526,11 @@ class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Go protected $errorsDataType = ''; public $kind; + public function setAccount(Google_Service_ShoppingContent_Account $account) { $this->account = $account; } - public function getAccount() { return $this->account; @@ -1597,7 +1539,6 @@ public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -1606,7 +1547,6 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -1615,12 +1555,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection @@ -1633,11 +1571,11 @@ class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collect protected $resourcesType = 'Google_Service_ShoppingContent_Account'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1646,7 +1584,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1655,12 +1592,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection @@ -1671,16 +1606,15 @@ class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends G protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model @@ -1692,11 +1626,11 @@ class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry exte public $merchantId; public $method; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1705,7 +1639,6 @@ public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -1714,7 +1647,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -1723,12 +1655,10 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; } - } class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection @@ -1740,11 +1670,11 @@ class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -1753,12 +1683,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model @@ -1771,11 +1699,11 @@ class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry ext protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; + public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) { $this->accountStatus = $accountStatus; } - public function getAccountStatus() { return $this->accountStatus; @@ -1784,7 +1712,6 @@ public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -1793,12 +1720,10 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection @@ -1811,11 +1736,11 @@ class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_ protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1824,7 +1749,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1833,12 +1757,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_ShoppingContent_Datafeed extends Google_Collection @@ -1860,11 +1782,11 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection public $name; public $targetCountry; + public function setAttributeLanguage($attributeLanguage) { $this->attributeLanguage = $attributeLanguage; } - public function getAttributeLanguage() { return $this->attributeLanguage; @@ -1873,7 +1795,6 @@ public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; } - public function getContentLanguage() { return $this->contentLanguage; @@ -1882,7 +1803,6 @@ public function setContentType($contentType) { $this->contentType = $contentType; } - public function getContentType() { return $this->contentType; @@ -1891,7 +1811,6 @@ public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSch { $this->fetchSchedule = $fetchSchedule; } - public function getFetchSchedule() { return $this->fetchSchedule; @@ -1900,7 +1819,6 @@ public function setFileName($fileName) { $this->fileName = $fileName; } - public function getFileName() { return $this->fileName; @@ -1909,7 +1827,6 @@ public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -1918,7 +1835,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1927,7 +1843,6 @@ public function setIntendedDestinations($intendedDestinations) { $this->intendedDestinations = $intendedDestinations; } - public function getIntendedDestinations() { return $this->intendedDestinations; @@ -1936,7 +1851,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1945,7 +1859,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1954,12 +1867,10 @@ public function setTargetCountry($targetCountry) { $this->targetCountry = $targetCountry; } - public function getTargetCountry() { return $this->targetCountry; } - } class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model @@ -1974,11 +1885,11 @@ class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model public $username; public $weekday; + public function setDayOfMonth($dayOfMonth) { $this->dayOfMonth = $dayOfMonth; } - public function getDayOfMonth() { return $this->dayOfMonth; @@ -1987,7 +1898,6 @@ public function setFetchUrl($fetchUrl) { $this->fetchUrl = $fetchUrl; } - public function getFetchUrl() { return $this->fetchUrl; @@ -1996,7 +1906,6 @@ public function setHour($hour) { $this->hour = $hour; } - public function getHour() { return $this->hour; @@ -2005,7 +1914,6 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -2014,7 +1922,6 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; @@ -2023,7 +1930,6 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; @@ -2032,12 +1938,10 @@ public function setWeekday($weekday) { $this->weekday = $weekday; } - public function getWeekday() { return $this->weekday; } - } class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model @@ -2048,11 +1952,11 @@ class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model public $fileEncoding; public $quotingMode; + public function setColumnDelimiter($columnDelimiter) { $this->columnDelimiter = $columnDelimiter; } - public function getColumnDelimiter() { return $this->columnDelimiter; @@ -2061,7 +1965,6 @@ public function setFileEncoding($fileEncoding) { $this->fileEncoding = $fileEncoding; } - public function getFileEncoding() { return $this->fileEncoding; @@ -2070,12 +1973,10 @@ public function setQuotingMode($quotingMode) { $this->quotingMode = $quotingMode; } - public function getQuotingMode() { return $this->quotingMode; } - } class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection @@ -2093,11 +1994,11 @@ class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; protected $warningsDataType = 'array'; + public function setDatafeedId($datafeedId) { $this->datafeedId = $datafeedId; } - public function getDatafeedId() { return $this->datafeedId; @@ -2106,7 +2007,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -2115,7 +2015,6 @@ public function setItemsTotal($itemsTotal) { $this->itemsTotal = $itemsTotal; } - public function getItemsTotal() { return $this->itemsTotal; @@ -2124,7 +2023,6 @@ public function setItemsValid($itemsValid) { $this->itemsValid = $itemsValid; } - public function getItemsValid() { return $this->itemsValid; @@ -2133,7 +2031,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2142,7 +2039,6 @@ public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; } - public function getProcessingStatus() { return $this->processingStatus; @@ -2151,12 +2047,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection @@ -2170,11 +2064,11 @@ class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collecti protected $examplesDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -2183,7 +2077,6 @@ public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -2192,7 +2085,6 @@ public function setExamples($examples) { $this->examples = $examples; } - public function getExamples() { return $this->examples; @@ -2201,12 +2093,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model @@ -2217,11 +2107,11 @@ class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model public $lineNumber; public $value; + public function setItemId($itemId) { $this->itemId = $itemId; } - public function getItemId() { return $this->itemId; @@ -2230,7 +2120,6 @@ public function setLineNumber($lineNumber) { $this->lineNumber = $lineNumber; } - public function getLineNumber() { return $this->lineNumber; @@ -2239,12 +2128,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection @@ -2255,16 +2142,15 @@ class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_ protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model @@ -2278,11 +2164,11 @@ class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Go public $merchantId; public $method; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2291,7 +2177,6 @@ public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { $this->datafeed = $datafeed; } - public function getDatafeed() { return $this->datafeed; @@ -2300,7 +2185,6 @@ public function setDatafeedId($datafeedId) { $this->datafeedId = $datafeedId; } - public function getDatafeedId() { return $this->datafeedId; @@ -2309,7 +2193,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -2318,12 +2201,10 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; } - } class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection @@ -2335,11 +2216,11 @@ class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -2348,12 +2229,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model @@ -2366,11 +2245,11 @@ class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends G protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2379,7 +2258,6 @@ public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { $this->datafeed = $datafeed; } - public function getDatafeed() { return $this->datafeed; @@ -2388,12 +2266,10 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection @@ -2406,11 +2282,11 @@ class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collec protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2419,7 +2295,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2428,12 +2303,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection @@ -2444,16 +2317,15 @@ class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model @@ -2465,11 +2337,11 @@ class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry ext public $merchantId; public $method; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2478,7 +2350,6 @@ public function setDatafeedId($datafeedId) { $this->datafeedId = $datafeedId; } - public function getDatafeedId() { return $this->datafeedId; @@ -2487,7 +2358,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -2496,12 +2366,10 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; } - } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection @@ -2513,11 +2381,11 @@ class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -2526,12 +2394,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model @@ -2544,11 +2410,11 @@ class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry ex protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2557,7 +2423,6 @@ public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus { $this->datafeedStatus = $datafeedStatus; } - public function getDatafeedStatus() { return $this->datafeedStatus; @@ -2566,12 +2431,10 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection @@ -2584,11 +2447,11 @@ class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2597,7 +2460,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2606,12 +2468,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_ShoppingContent_Error extends Google_Model @@ -2622,11 +2482,11 @@ class Google_Service_ShoppingContent_Error extends Google_Model public $message; public $reason; + public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -2635,7 +2495,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -2644,12 +2503,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_ShoppingContent_Errors extends Google_Collection @@ -2662,11 +2519,11 @@ class Google_Service_ShoppingContent_Errors extends Google_Collection protected $errorsDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -2675,7 +2532,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -2684,12 +2540,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_ShoppingContent_Inventory extends Google_Model @@ -2705,11 +2559,11 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model protected $salePriceDataType = ''; public $salePriceEffectiveDate; + public function setAvailability($availability) { $this->availability = $availability; } - public function getAvailability() { return $this->availability; @@ -2718,7 +2572,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2727,7 +2580,6 @@ public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; } - public function getPrice() { return $this->price; @@ -2736,7 +2588,6 @@ public function setQuantity($quantity) { $this->quantity = $quantity; } - public function getQuantity() { return $this->quantity; @@ -2745,7 +2596,6 @@ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; } - public function getSalePrice() { return $this->salePrice; @@ -2754,12 +2604,10 @@ public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; } - public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } - } class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection @@ -2770,16 +2618,15 @@ class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_ protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model @@ -2793,11 +2640,11 @@ class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Go public $productId; public $storeCode; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2806,7 +2653,6 @@ public function setInventory(Google_Service_ShoppingContent_Inventory $inventory { $this->inventory = $inventory; } - public function getInventory() { return $this->inventory; @@ -2815,7 +2661,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -2824,7 +2669,6 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; @@ -2833,12 +2677,10 @@ public function setStoreCode($storeCode) { $this->storeCode = $storeCode; } - public function getStoreCode() { return $this->storeCode; } - } class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection @@ -2850,11 +2692,11 @@ class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -2863,12 +2705,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model @@ -2880,11 +2720,11 @@ class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends G protected $errorsDataType = ''; public $kind; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -2893,7 +2733,6 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -2902,12 +2741,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model @@ -2922,11 +2759,11 @@ class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model protected $salePriceDataType = ''; public $salePriceEffectiveDate; + public function setAvailability($availability) { $this->availability = $availability; } - public function getAvailability() { return $this->availability; @@ -2935,7 +2772,6 @@ public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; } - public function getPrice() { return $this->price; @@ -2944,7 +2780,6 @@ public function setQuantity($quantity) { $this->quantity = $quantity; } - public function getQuantity() { return $this->quantity; @@ -2953,7 +2788,6 @@ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; } - public function getSalePrice() { return $this->salePrice; @@ -2962,12 +2796,10 @@ public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; } - public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } - } class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model @@ -2976,16 +2808,15 @@ class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model @@ -2996,11 +2827,11 @@ class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model public $pointsValue; public $ratio; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3009,7 +2840,6 @@ public function setPointsValue($pointsValue) { $this->pointsValue = $pointsValue; } - public function getPointsValue() { return $this->pointsValue; @@ -3018,12 +2848,10 @@ public function setRatio($ratio) { $this->ratio = $ratio; } - public function getRatio() { return $this->ratio; } - } class Google_Service_ShoppingContent_Price extends Google_Model @@ -3033,11 +2861,11 @@ class Google_Service_ShoppingContent_Price extends Google_Model public $currency; public $value; + public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -3046,12 +2874,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_Product extends Google_Collection @@ -3133,11 +2959,11 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $warningsType = 'Google_Service_ShoppingContent_Error'; protected $warningsDataType = 'array'; + public function setAdditionalImageLinks($additionalImageLinks) { $this->additionalImageLinks = $additionalImageLinks; } - public function getAdditionalImageLinks() { return $this->additionalImageLinks; @@ -3146,7 +2972,6 @@ public function setAdult($adult) { $this->adult = $adult; } - public function getAdult() { return $this->adult; @@ -3155,7 +2980,6 @@ public function setAdwordsGrouping($adwordsGrouping) { $this->adwordsGrouping = $adwordsGrouping; } - public function getAdwordsGrouping() { return $this->adwordsGrouping; @@ -3164,7 +2988,6 @@ public function setAdwordsLabels($adwordsLabels) { $this->adwordsLabels = $adwordsLabels; } - public function getAdwordsLabels() { return $this->adwordsLabels; @@ -3173,7 +2996,6 @@ public function setAdwordsRedirect($adwordsRedirect) { $this->adwordsRedirect = $adwordsRedirect; } - public function getAdwordsRedirect() { return $this->adwordsRedirect; @@ -3182,7 +3004,6 @@ public function setAgeGroup($ageGroup) { $this->ageGroup = $ageGroup; } - public function getAgeGroup() { return $this->ageGroup; @@ -3191,7 +3012,6 @@ public function setAvailability($availability) { $this->availability = $availability; } - public function getAvailability() { return $this->availability; @@ -3200,7 +3020,6 @@ public function setAvailabilityDate($availabilityDate) { $this->availabilityDate = $availabilityDate; } - public function getAvailabilityDate() { return $this->availabilityDate; @@ -3209,7 +3028,6 @@ public function setBrand($brand) { $this->brand = $brand; } - public function getBrand() { return $this->brand; @@ -3218,7 +3036,6 @@ public function setChannel($channel) { $this->channel = $channel; } - public function getChannel() { return $this->channel; @@ -3227,7 +3044,6 @@ public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -3236,7 +3052,6 @@ public function setCondition($condition) { $this->condition = $condition; } - public function getCondition() { return $this->condition; @@ -3245,7 +3060,6 @@ public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; } - public function getContentLanguage() { return $this->contentLanguage; @@ -3254,7 +3068,6 @@ public function setCustomAttributes($customAttributes) { $this->customAttributes = $customAttributes; } - public function getCustomAttributes() { return $this->customAttributes; @@ -3263,7 +3076,6 @@ public function setCustomGroups($customGroups) { $this->customGroups = $customGroups; } - public function getCustomGroups() { return $this->customGroups; @@ -3272,7 +3084,6 @@ public function setCustomLabel0($customLabel0) { $this->customLabel0 = $customLabel0; } - public function getCustomLabel0() { return $this->customLabel0; @@ -3281,7 +3092,6 @@ public function setCustomLabel1($customLabel1) { $this->customLabel1 = $customLabel1; } - public function getCustomLabel1() { return $this->customLabel1; @@ -3290,7 +3100,6 @@ public function setCustomLabel2($customLabel2) { $this->customLabel2 = $customLabel2; } - public function getCustomLabel2() { return $this->customLabel2; @@ -3299,7 +3108,6 @@ public function setCustomLabel3($customLabel3) { $this->customLabel3 = $customLabel3; } - public function getCustomLabel3() { return $this->customLabel3; @@ -3308,7 +3116,6 @@ public function setCustomLabel4($customLabel4) { $this->customLabel4 = $customLabel4; } - public function getCustomLabel4() { return $this->customLabel4; @@ -3317,7 +3124,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3326,7 +3132,6 @@ public function setDestinations($destinations) { $this->destinations = $destinations; } - public function getDestinations() { return $this->destinations; @@ -3335,7 +3140,6 @@ public function setEnergyEfficiencyClass($energyEfficiencyClass) { $this->energyEfficiencyClass = $energyEfficiencyClass; } - public function getEnergyEfficiencyClass() { return $this->energyEfficiencyClass; @@ -3344,7 +3148,6 @@ public function setExpirationDate($expirationDate) { $this->expirationDate = $expirationDate; } - public function getExpirationDate() { return $this->expirationDate; @@ -3353,7 +3156,6 @@ public function setGender($gender) { $this->gender = $gender; } - public function getGender() { return $this->gender; @@ -3362,7 +3164,6 @@ public function setGoogleProductCategory($googleProductCategory) { $this->googleProductCategory = $googleProductCategory; } - public function getGoogleProductCategory() { return $this->googleProductCategory; @@ -3371,7 +3172,6 @@ public function setGtin($gtin) { $this->gtin = $gtin; } - public function getGtin() { return $this->gtin; @@ -3380,7 +3180,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3389,7 +3188,6 @@ public function setIdentifierExists($identifierExists) { $this->identifierExists = $identifierExists; } - public function getIdentifierExists() { return $this->identifierExists; @@ -3398,7 +3196,6 @@ public function setImageLink($imageLink) { $this->imageLink = $imageLink; } - public function getImageLink() { return $this->imageLink; @@ -3407,7 +3204,6 @@ public function setInstallment(Google_Service_ShoppingContent_ProductInstallment { $this->installment = $installment; } - public function getInstallment() { return $this->installment; @@ -3416,7 +3212,6 @@ public function setIsBundle($isBundle) { $this->isBundle = $isBundle; } - public function getIsBundle() { return $this->isBundle; @@ -3425,7 +3220,6 @@ public function setItemGroupId($itemGroupId) { $this->itemGroupId = $itemGroupId; } - public function getItemGroupId() { return $this->itemGroupId; @@ -3434,7 +3228,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3443,7 +3236,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -3452,7 +3244,6 @@ public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $l { $this->loyaltyPoints = $loyaltyPoints; } - public function getLoyaltyPoints() { return $this->loyaltyPoints; @@ -3461,7 +3252,6 @@ public function setMaterial($material) { $this->material = $material; } - public function getMaterial() { return $this->material; @@ -3470,7 +3260,6 @@ public function setMobileLink($mobileLink) { $this->mobileLink = $mobileLink; } - public function getMobileLink() { return $this->mobileLink; @@ -3479,7 +3268,6 @@ public function setMpn($mpn) { $this->mpn = $mpn; } - public function getMpn() { return $this->mpn; @@ -3488,7 +3276,6 @@ public function setMultipack($multipack) { $this->multipack = $multipack; } - public function getMultipack() { return $this->multipack; @@ -3497,7 +3284,6 @@ public function setOfferId($offerId) { $this->offerId = $offerId; } - public function getOfferId() { return $this->offerId; @@ -3506,7 +3292,6 @@ public function setOnlineOnly($onlineOnly) { $this->onlineOnly = $onlineOnly; } - public function getOnlineOnly() { return $this->onlineOnly; @@ -3515,7 +3300,6 @@ public function setPattern($pattern) { $this->pattern = $pattern; } - public function getPattern() { return $this->pattern; @@ -3524,7 +3308,6 @@ public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; } - public function getPrice() { return $this->price; @@ -3533,7 +3316,6 @@ public function setProductType($productType) { $this->productType = $productType; } - public function getProductType() { return $this->productType; @@ -3542,7 +3324,6 @@ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; } - public function getSalePrice() { return $this->salePrice; @@ -3551,7 +3332,6 @@ public function setSalePriceEffectiveDate($salePriceEffectiveDate) { $this->salePriceEffectiveDate = $salePriceEffectiveDate; } - public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; @@ -3560,7 +3340,6 @@ public function setShipping($shipping) { $this->shipping = $shipping; } - public function getShipping() { return $this->shipping; @@ -3569,7 +3348,6 @@ public function setShippingLabel($shippingLabel) { $this->shippingLabel = $shippingLabel; } - public function getShippingLabel() { return $this->shippingLabel; @@ -3578,7 +3356,6 @@ public function setShippingWeight(Google_Service_ShoppingContent_ProductShipping { $this->shippingWeight = $shippingWeight; } - public function getShippingWeight() { return $this->shippingWeight; @@ -3587,7 +3364,6 @@ public function setSizeSystem($sizeSystem) { $this->sizeSystem = $sizeSystem; } - public function getSizeSystem() { return $this->sizeSystem; @@ -3596,7 +3372,6 @@ public function setSizeType($sizeType) { $this->sizeType = $sizeType; } - public function getSizeType() { return $this->sizeType; @@ -3605,7 +3380,6 @@ public function setSizes($sizes) { $this->sizes = $sizes; } - public function getSizes() { return $this->sizes; @@ -3614,7 +3388,6 @@ public function setTargetCountry($targetCountry) { $this->targetCountry = $targetCountry; } - public function getTargetCountry() { return $this->targetCountry; @@ -3623,7 +3396,6 @@ public function setTaxes($taxes) { $this->taxes = $taxes; } - public function getTaxes() { return $this->taxes; @@ -3632,7 +3404,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3641,7 +3412,6 @@ public function setUnitPricingBaseMeasure(Google_Service_ShoppingContent_Product { $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; } - public function getUnitPricingBaseMeasure() { return $this->unitPricingBaseMeasure; @@ -3650,7 +3420,6 @@ public function setUnitPricingMeasure(Google_Service_ShoppingContent_ProductUnit { $this->unitPricingMeasure = $unitPricingMeasure; } - public function getUnitPricingMeasure() { return $this->unitPricingMeasure; @@ -3659,7 +3428,6 @@ public function setValidatedDestinations($validatedDestinations) { $this->validatedDestinations = $validatedDestinations; } - public function getValidatedDestinations() { return $this->validatedDestinations; @@ -3668,12 +3436,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model @@ -3685,11 +3451,11 @@ class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model public $unit; public $value; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3698,7 +3464,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3707,7 +3472,6 @@ public function setUnit($unit) { $this->unit = $unit; } - public function getUnit() { return $this->unit; @@ -3716,12 +3480,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection @@ -3733,11 +3495,11 @@ class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collectio protected $attributesDataType = 'array'; public $name; + public function setAttributes($attributes) { $this->attributes = $attributes; } - public function getAttributes() { return $this->attributes; @@ -3746,12 +3508,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_ShoppingContent_ProductDestination extends Google_Model @@ -3761,11 +3521,11 @@ class Google_Service_ShoppingContent_ProductDestination extends Google_Model public $destinationName; public $intention; + public function setDestinationName($destinationName) { $this->destinationName = $destinationName; } - public function getDestinationName() { return $this->destinationName; @@ -3774,12 +3534,10 @@ public function setIntention($intention) { $this->intention = $intention; } - public function getIntention() { return $this->intention; } - } class Google_Service_ShoppingContent_ProductInstallment extends Google_Model @@ -3790,11 +3548,11 @@ class Google_Service_ShoppingContent_ProductInstallment extends Google_Model protected $amountDataType = ''; public $months; + public function setAmount(Google_Service_ShoppingContent_Price $amount) { $this->amount = $amount; } - public function getAmount() { return $this->amount; @@ -3803,12 +3561,10 @@ public function setMonths($months) { $this->months = $months; } - public function getMonths() { return $this->months; } - } class Google_Service_ShoppingContent_ProductShipping extends Google_Model @@ -3824,11 +3580,11 @@ class Google_Service_ShoppingContent_ProductShipping extends Google_Model public $region; public $service; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -3837,7 +3593,6 @@ public function setLocationGroupName($locationGroupName) { $this->locationGroupName = $locationGroupName; } - public function getLocationGroupName() { return $this->locationGroupName; @@ -3846,7 +3601,6 @@ public function setLocationId($locationId) { $this->locationId = $locationId; } - public function getLocationId() { return $this->locationId; @@ -3855,7 +3609,6 @@ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } - public function getPostalCode() { return $this->postalCode; @@ -3864,7 +3617,6 @@ public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; } - public function getPrice() { return $this->price; @@ -3873,7 +3625,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -3882,12 +3633,10 @@ public function setService($service) { $this->service = $service; } - public function getService() { return $this->service; } - } class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model @@ -3897,11 +3646,11 @@ class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model public $unit; public $value; + public function setUnit($unit) { $this->unit = $unit; } - public function getUnit() { return $this->unit; @@ -3910,12 +3659,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_ProductStatus extends Google_Collection @@ -3932,11 +3679,11 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection public $productId; public $title; + public function setDataQualityIssues($dataQualityIssues) { $this->dataQualityIssues = $dataQualityIssues; } - public function getDataQualityIssues() { return $this->dataQualityIssues; @@ -3945,7 +3692,6 @@ public function setDestinationStatuses($destinationStatuses) { $this->destinationStatuses = $destinationStatuses; } - public function getDestinationStatuses() { return $this->destinationStatuses; @@ -3954,7 +3700,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3963,7 +3708,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -3972,7 +3716,6 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; @@ -3981,12 +3724,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model @@ -4001,11 +3742,11 @@ class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Googl public $valueOnLandingPage; public $valueProvided; + public function setDetail($detail) { $this->detail = $detail; } - public function getDetail() { return $this->detail; @@ -4014,7 +3755,6 @@ public function setFetchStatus($fetchStatus) { $this->fetchStatus = $fetchStatus; } - public function getFetchStatus() { return $this->fetchStatus; @@ -4023,7 +3763,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4032,7 +3771,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -4041,7 +3779,6 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; @@ -4050,7 +3787,6 @@ public function setValueOnLandingPage($valueOnLandingPage) { $this->valueOnLandingPage = $valueOnLandingPage; } - public function getValueOnLandingPage() { return $this->valueOnLandingPage; @@ -4059,12 +3795,10 @@ public function setValueProvided($valueProvided) { $this->valueProvided = $valueProvided; } - public function getValueProvided() { return $this->valueProvided; } - } class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model @@ -4075,11 +3809,11 @@ class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Goog public $destination; public $intention; + public function setApprovalStatus($approvalStatus) { $this->approvalStatus = $approvalStatus; } - public function getApprovalStatus() { return $this->approvalStatus; @@ -4088,7 +3822,6 @@ public function setDestination($destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -4097,12 +3830,10 @@ public function setIntention($intention) { $this->intention = $intention; } - public function getIntention() { return $this->intention; } - } class Google_Service_ShoppingContent_ProductTax extends Google_Model @@ -4116,11 +3847,11 @@ class Google_Service_ShoppingContent_ProductTax extends Google_Model public $region; public $taxShip; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -4129,7 +3860,6 @@ public function setLocationId($locationId) { $this->locationId = $locationId; } - public function getLocationId() { return $this->locationId; @@ -4138,7 +3868,6 @@ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } - public function getPostalCode() { return $this->postalCode; @@ -4147,7 +3876,6 @@ public function setRate($rate) { $this->rate = $rate; } - public function getRate() { return $this->rate; @@ -4156,7 +3884,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -4165,12 +3892,10 @@ public function setTaxShip($taxShip) { $this->taxShip = $taxShip; } - public function getTaxShip() { return $this->taxShip; } - } class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model @@ -4180,11 +3905,11 @@ class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Googl public $unit; public $value; + public function setUnit($unit) { $this->unit = $unit; } - public function getUnit() { return $this->unit; @@ -4193,12 +3918,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model @@ -4208,11 +3931,11 @@ class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Mo public $unit; public $value; + public function setUnit($unit) { $this->unit = $unit; } - public function getUnit() { return $this->unit; @@ -4221,12 +3944,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection @@ -4237,16 +3958,15 @@ class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_C protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model @@ -4260,11 +3980,11 @@ class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Goo protected $productDataType = ''; public $productId; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -4273,7 +3993,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -4282,7 +4001,6 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; @@ -4291,7 +4009,6 @@ public function setProduct(Google_Service_ShoppingContent_Product $product) { $this->product = $product; } - public function getProduct() { return $this->product; @@ -4300,12 +4017,10 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; } - } class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection @@ -4317,11 +4032,11 @@ class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_ protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -4330,12 +4045,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model @@ -4349,11 +4062,11 @@ class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Go protected $productType = 'Google_Service_ShoppingContent_Product'; protected $productDataType = ''; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -4362,7 +4075,6 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -4371,7 +4083,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4380,12 +4091,10 @@ public function setProduct(Google_Service_ShoppingContent_Product $product) { $this->product = $product; } - public function getProduct() { return $this->product; } - } class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection @@ -4398,11 +4107,11 @@ class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collect protected $resourcesType = 'Google_Service_ShoppingContent_Product'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4411,7 +4120,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4420,12 +4128,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection @@ -4436,16 +4142,15 @@ class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends G protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; } - } class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model @@ -4457,11 +4162,11 @@ class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry exte public $method; public $productId; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -4470,7 +4175,6 @@ public function setMerchantId($merchantId) { $this->merchantId = $merchantId; } - public function getMerchantId() { return $this->merchantId; @@ -4479,7 +4183,6 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; @@ -4488,12 +4191,10 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; } - } class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection @@ -4505,11 +4206,11 @@ class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends protected $entriesDataType = 'array'; public $kind; + public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -4518,12 +4219,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model @@ -4537,11 +4236,11 @@ class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry ext protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus'; protected $productStatusDataType = ''; + public function setBatchId($batchId) { $this->batchId = $batchId; } - public function getBatchId() { return $this->batchId; @@ -4550,7 +4249,6 @@ public function setErrors(Google_Service_ShoppingContent_Errors $errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -4559,7 +4257,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4568,12 +4265,10 @@ public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $p { $this->productStatus = $productStatus; } - public function getProductStatus() { return $this->productStatus; } - } class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection @@ -4586,11 +4281,11 @@ class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_ protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; protected $resourcesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4599,7 +4294,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4608,10 +4302,8 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } From 2be820b1ff8c2dcc0cbe810fa8f5a912eb668f33 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:36 -0800 Subject: [PATCH 0466/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 518 +++++++++----------------------- 1 file changed, 141 insertions(+), 377 deletions(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 43597a88a..4d73280c2 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -19,8 +19,7 @@ * Service definition for Bigquery (v2). * *

- * A data platform for customers to create, manage, share and query data. - *

+ * A data platform for customers to create, manage, share and query data.

* *

* For more information about this service, see the API @@ -32,17 +31,23 @@ class Google_Service_Bigquery extends Google_Service { /** View and manage your data in Google BigQuery. */ - const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; + const BIGQUERY = + "https://www.googleapis.com/auth/bigquery"; /** Insert data into Google BigQuery. */ - const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; + const BIGQUERY_INSERTDATA = + "https://www.googleapis.com/auth/bigquery.insertdata"; /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + const DEVSTORAGE_FULL_CONTROL = + "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + const DEVSTORAGE_READ_ONLY = + "https://www.googleapis.com/auth/devstorage.read_only"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; public $datasets; public $jobs; @@ -510,15 +515,13 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource * 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 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 + * @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()) { @@ -526,13 +529,12 @@ public function delete($projectId, $datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the dataset specified by datasetID. (datasets.get) * - * @param string $projectId - * Project ID of the requested dataset - * @param string $datasetId - * Dataset ID of the requested dataset + * @param 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 */ @@ -542,11 +544,11 @@ public function get($projectId, $datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); } + /** * Creates a new empty dataset. (datasets.insert) * - * @param string $projectId - * Project ID of the new dataset + * @param string $projectId Project ID of the new dataset * @param Google_Dataset $postBody * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_Dataset @@ -557,21 +559,19 @@ public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $o $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); } + /** * Lists all the datasets in the specified project to which the caller has read * access; however, a project owner can list (but not necessarily get) all * datasets in his project. (datasets.listDatasets) * - * @param string $projectId - * Project ID of the datasets to be listed + * @param string $projectId Project ID of the datasets to be listed * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param bool all - * Whether to list all datasets, including hidden ones - * @opt_param string maxResults - * The maximum number of results to return + * @opt_param string pageToken Page token, returned by a previous call, to + * request the next page of results + * @opt_param bool all Whether to list all datasets, including hidden ones + * @opt_param string maxResults The maximum number of results to return * @return Google_Service_Bigquery_DatasetList */ public function listDatasets($projectId, $optParams = array()) @@ -580,16 +580,15 @@ public function listDatasets($projectId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); } + /** * Updates information in an existing dataset. The update method replaces the * entire dataset resource, whereas the patch method only replaces fields that * are provided in the submitted dataset resource. This method supports patch * semantics. (datasets.patch) * - * @param string $projectId - * Project ID of the dataset being updated - * @param string $datasetId - * Dataset ID of the dataset being updated + * @param 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 @@ -600,15 +599,14 @@ public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $p $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); } + /** * Updates information in an existing dataset. The update method replaces the * entire dataset resource, whereas the patch method only replaces fields that * are provided in the submitted dataset resource. (datasets.update) * - * @param string $projectId - * Project ID of the dataset being updated - * @param string $datasetId - * Dataset ID of the dataset being updated + * @param 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 @@ -635,10 +633,8 @@ 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 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 */ @@ -648,25 +644,22 @@ public function get($projectId, $jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Bigquery_Job"); } + /** * Retrieves the results of a query job. (jobs.getQueryResults) * - * @param string $projectId - * Project ID of the query job - * @param string $jobId - * Job ID of the query job + * @param string $projectId Project ID of the query job + * @param string $jobId Job ID of the query job * @param array $optParams Optional parameters. * - * @opt_param string timeoutMs - * How long to wait for the query to complete, in milliseconds, before returning. Default is to - * return immediately. If the timeout passes before the job completes, the request will fail with a - * TIMEOUT error - * @opt_param string maxResults - * Maximum number of results to read - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param string startIndex - * Zero-based index of the starting row + * @opt_param string timeoutMs How long to wait for the query to complete, in + * milliseconds, before returning. Default is to return immediately. If the + * timeout passes before the job completes, the request will fail with a TIMEOUT + * error + * @opt_param string maxResults Maximum number of results to read + * @opt_param string pageToken Page token, returned by a previous call, to + * request the next page of results + * @opt_param string startIndex Zero-based index of the starting row * @return Google_Service_Bigquery_GetQueryResultsResponse */ public function getQueryResults($projectId, $jobId, $optParams = array()) @@ -675,11 +668,12 @@ public function getQueryResults($projectId, $jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse"); } + /** * Starts a new asynchronous job. (jobs.insert) * - * @param string $projectId - * Project ID of the project that will be billed for the job + * @param 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 @@ -690,25 +684,23 @@ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Bigquery_Job"); } + /** * Lists all the Jobs in the specified project that were started by the user. * The job list returns in reverse chronological order of when the jobs were * created, starting with the most recent job created. (jobs.listJobs) * - * @param string $projectId - * Project ID of the jobs to 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 + * @opt_param string projection Restrict information returned to a set of + * selected fields + * @opt_param string stateFilter Filter for job state + * @opt_param bool allUsers Whether to display jobs owned by all users in the + * project. Default false + * @opt_param string maxResults Maximum number of results to return + * @opt_param string pageToken Page token, returned by a previous call, to + * request the next page of results * @return Google_Service_Bigquery_JobList */ public function listJobs($projectId, $optParams = array()) @@ -717,12 +709,12 @@ public function listJobs($projectId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Bigquery_JobList"); } + /** * Runs a BigQuery SQL query synchronously and returns query results if the * query completes within a specified timeout. (jobs.query) * - * @param string $projectId - * Project ID of the project billed for the query + * @param 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 @@ -752,10 +744,9 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource * * @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 + * @opt_param string pageToken Page token, returned by a previous call, to + * request the next page of results + * @opt_param string maxResults Maximum number of results to return * @return Google_Service_Bigquery_ProjectList */ public function listProjects($optParams = array()) @@ -781,12 +772,9 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource * Streams data into BigQuery one record at a time without needing to run a load * job. (tabledata.insertAll) * - * @param string $projectId - * Project ID of the destination table. - * @param string $datasetId - * Dataset ID of the destination table. - * @param string $tableId - * Table ID of the destination table. + * @param string $projectId Project ID of the destination table. + * @param string $datasetId Dataset ID of the destination table. + * @param string $tableId Table ID of the destination table. * @param Google_TableDataInsertAllRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_TableDataInsertAllResponse @@ -797,23 +785,19 @@ public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigqu $params = array_merge($params, $optParams); return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse"); } + /** * Retrieves table data from a specified set of rows. (tabledata.listTabledata) * - * @param string $projectId - * Project ID of the table to read - * @param string $datasetId - * Dataset ID of the table to read - * @param string $tableId - * Table ID of the table to read + * @param 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 + * @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()) @@ -839,12 +823,9 @@ 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 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()) @@ -853,17 +834,15 @@ public function delete($projectId, $datasetId, $tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the specified table resource by table ID. This method does not return * the data in the table, it only returns the table resource, which describes * the structure of this table. (tables.get) * - * @param string $projectId - * Project ID of the requested table - * @param string $datasetId - * Dataset ID of the requested table - * @param string $tableId - * Table ID of the requested table + * @param 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 */ @@ -873,13 +852,12 @@ public function get($projectId, $datasetId, $tableId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Bigquery_Table"); } + /** * Creates a new, empty table in the dataset. (tables.insert) * - * @param string $projectId - * Project ID of the new table - * @param string $datasetId - * Dataset ID of the new table + * @param 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 @@ -890,19 +868,17 @@ public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $po $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); } + /** * Lists all tables in the specified dataset. (tables.listTables) * - * @param string $projectId - * Project ID of the tables to list - * @param string $datasetId - * Dataset ID of the tables to list + * @param string $projectId Project ID of the tables to list + * @param string $datasetId Dataset ID of the tables to list * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param string maxResults - * Maximum number of results to return + * @opt_param string pageToken Page token, returned by a previous call, to + * request the next page of results + * @opt_param string maxResults Maximum number of results to return * @return Google_Service_Bigquery_TableList */ public function listTables($projectId, $datasetId, $optParams = array()) @@ -911,18 +887,16 @@ public function listTables($projectId, $datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); } + /** * Updates information in an existing table. The update method replaces the * entire table resource, whereas the patch method only replaces fields that are * provided in the submitted table resource. This method supports patch * semantics. (tables.patch) * - * @param string $projectId - * Project ID of the table to update - * @param string $datasetId - * Dataset ID of the table to update - * @param string $tableId - * Table ID of the table to update + * @param 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 @@ -933,17 +907,15 @@ public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); } + /** * Updates information in an existing table. The update method replaces the * entire table resource, whereas the patch method only replaces fields that are * provided in the submitted table resource. (tables.update) * - * @param string $projectId - * Project ID of the table to update - * @param string $datasetId - * Dataset ID of the table to update - * @param string $tableId - * Table ID of the table to update + * @param 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 @@ -977,11 +949,11 @@ class Google_Service_Bigquery_Dataset extends Google_Collection public $lastModifiedTime; public $selfLink; + public function setAccess($access) { $this->access = $access; } - public function getAccess() { return $this->access; @@ -990,7 +962,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -999,7 +970,6 @@ public function setDatasetReference(Google_Service_Bigquery_DatasetReference $da { $this->datasetReference = $datasetReference; } - public function getDatasetReference() { return $this->datasetReference; @@ -1008,7 +978,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1017,7 +986,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1026,7 +994,6 @@ public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; } - public function getFriendlyName() { return $this->friendlyName; @@ -1035,7 +1002,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1044,7 +1010,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1053,7 +1018,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -1062,12 +1026,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Bigquery_DatasetAccess extends Google_Model @@ -1082,11 +1044,11 @@ class Google_Service_Bigquery_DatasetAccess extends Google_Model protected $viewType = 'Google_Service_Bigquery_TableReference'; protected $viewDataType = ''; + public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -1095,7 +1057,6 @@ public function setGroupByEmail($groupByEmail) { $this->groupByEmail = $groupByEmail; } - public function getGroupByEmail() { return $this->groupByEmail; @@ -1104,7 +1065,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -1113,7 +1073,6 @@ public function setSpecialGroup($specialGroup) { $this->specialGroup = $specialGroup; } - public function getSpecialGroup() { return $this->specialGroup; @@ -1122,7 +1081,6 @@ public function setUserByEmail($userByEmail) { $this->userByEmail = $userByEmail; } - public function getUserByEmail() { return $this->userByEmail; @@ -1131,12 +1089,10 @@ public function setView(Google_Service_Bigquery_TableReference $view) { $this->view = $view; } - public function getView() { return $this->view; } - } class Google_Service_Bigquery_DatasetList extends Google_Collection @@ -1150,11 +1106,11 @@ class Google_Service_Bigquery_DatasetList extends Google_Collection public $kind; public $nextPageToken; + public function setDatasets($datasets) { $this->datasets = $datasets; } - public function getDatasets() { return $this->datasets; @@ -1163,7 +1119,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1172,7 +1127,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1181,12 +1135,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Bigquery_DatasetListDatasets extends Google_Model @@ -1199,11 +1151,11 @@ class Google_Service_Bigquery_DatasetListDatasets extends Google_Model public $id; public $kind; + public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) { $this->datasetReference = $datasetReference; } - public function getDatasetReference() { return $this->datasetReference; @@ -1212,7 +1164,6 @@ public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; } - public function getFriendlyName() { return $this->friendlyName; @@ -1221,7 +1172,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1230,12 +1180,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Bigquery_DatasetReference extends Google_Model @@ -1245,11 +1193,11 @@ 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; @@ -1258,12 +1206,10 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; } - } class Google_Service_Bigquery_ErrorProto extends Google_Model @@ -1275,11 +1221,11 @@ class Google_Service_Bigquery_ErrorProto extends Google_Model public $message; public $reason; + public function setDebugInfo($debugInfo) { $this->debugInfo = $debugInfo; } - public function getDebugInfo() { return $this->debugInfo; @@ -1288,7 +1234,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1297,7 +1242,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -1306,12 +1250,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection @@ -1332,11 +1274,11 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection protected $schemaDataType = ''; public $totalRows; + public function setCacheHit($cacheHit) { $this->cacheHit = $cacheHit; } - public function getCacheHit() { return $this->cacheHit; @@ -1345,7 +1287,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1354,7 +1295,6 @@ public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; } - public function getJobComplete() { return $this->jobComplete; @@ -1363,7 +1303,6 @@ public function setJobReference(Google_Service_Bigquery_JobReference $jobReferen { $this->jobReference = $jobReference; } - public function getJobReference() { return $this->jobReference; @@ -1372,7 +1311,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1381,7 +1319,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -1390,7 +1327,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -1399,7 +1335,6 @@ public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -1408,12 +1343,10 @@ public function setTotalRows($totalRows) { $this->totalRows = $totalRows; } - public function getTotalRows() { return $this->totalRows; } - } class Google_Service_Bigquery_Job extends Google_Model @@ -1433,11 +1366,11 @@ class Google_Service_Bigquery_Job extends Google_Model protected $statusType = 'Google_Service_Bigquery_JobStatus'; protected $statusDataType = ''; + public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) { $this->configuration = $configuration; } - public function getConfiguration() { return $this->configuration; @@ -1446,7 +1379,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1455,7 +1387,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1464,7 +1395,6 @@ public function setJobReference(Google_Service_Bigquery_JobReference $jobReferen { $this->jobReference = $jobReference; } - public function getJobReference() { return $this->jobReference; @@ -1473,7 +1403,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1482,7 +1411,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1491,7 +1419,6 @@ public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { $this->statistics = $statistics; } - public function getStatistics() { return $this->statistics; @@ -1500,12 +1427,10 @@ 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 @@ -1524,11 +1449,11 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; protected $queryDataType = ''; + public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy) { $this->copy = $copy; } - public function getCopy() { return $this->copy; @@ -1537,7 +1462,6 @@ public function setDryRun($dryRun) { $this->dryRun = $dryRun; } - public function getDryRun() { return $this->dryRun; @@ -1546,7 +1470,6 @@ public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extr { $this->extract = $extract; } - public function getExtract() { return $this->extract; @@ -1555,7 +1478,6 @@ public function setLink(Google_Service_Bigquery_JobConfigurationLink $link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -1564,7 +1486,6 @@ public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load) { $this->load = $load; } - public function getLoad() { return $this->load; @@ -1573,12 +1494,10 @@ public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query) { $this->query = $query; } - public function getQuery() { return $this->query; } - } class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection @@ -1595,11 +1514,11 @@ class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; protected $sourceTableDataType = ''; + public function setCompression($compression) { $this->compression = $compression; } - public function getCompression() { return $this->compression; @@ -1608,7 +1527,6 @@ public function setDestinationFormat($destinationFormat) { $this->destinationFormat = $destinationFormat; } - public function getDestinationFormat() { return $this->destinationFormat; @@ -1617,7 +1535,6 @@ public function setDestinationUri($destinationUri) { $this->destinationUri = $destinationUri; } - public function getDestinationUri() { return $this->destinationUri; @@ -1626,7 +1543,6 @@ public function setDestinationUris($destinationUris) { $this->destinationUris = $destinationUris; } - public function getDestinationUris() { return $this->destinationUris; @@ -1635,7 +1551,6 @@ public function setFieldDelimiter($fieldDelimiter) { $this->fieldDelimiter = $fieldDelimiter; } - public function getFieldDelimiter() { return $this->fieldDelimiter; @@ -1644,7 +1559,6 @@ public function setPrintHeader($printHeader) { $this->printHeader = $printHeader; } - public function getPrintHeader() { return $this->printHeader; @@ -1653,12 +1567,10 @@ public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTab { $this->sourceTable = $sourceTable; } - public function getSourceTable() { return $this->sourceTable; } - } class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection @@ -1672,11 +1584,11 @@ class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection public $sourceUri; public $writeDisposition; + public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; } - public function getCreateDisposition() { return $this->createDisposition; @@ -1685,7 +1597,6 @@ public function setDestinationTable(Google_Service_Bigquery_TableReference $dest { $this->destinationTable = $destinationTable; } - public function getDestinationTable() { return $this->destinationTable; @@ -1694,7 +1605,6 @@ public function setSourceUri($sourceUri) { $this->sourceUri = $sourceUri; } - public function getSourceUri() { return $this->sourceUri; @@ -1703,12 +1613,10 @@ public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; } - public function getWriteDisposition() { return $this->writeDisposition; } - } class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection @@ -1735,11 +1643,11 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection public $sourceUris; public $writeDisposition; + public function setAllowJaggedRows($allowJaggedRows) { $this->allowJaggedRows = $allowJaggedRows; } - public function getAllowJaggedRows() { return $this->allowJaggedRows; @@ -1748,7 +1656,6 @@ public function setAllowQuotedNewlines($allowQuotedNewlines) { $this->allowQuotedNewlines = $allowQuotedNewlines; } - public function getAllowQuotedNewlines() { return $this->allowQuotedNewlines; @@ -1757,7 +1664,6 @@ public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; } - public function getCreateDisposition() { return $this->createDisposition; @@ -1766,7 +1672,6 @@ public function setDestinationTable(Google_Service_Bigquery_TableReference $dest { $this->destinationTable = $destinationTable; } - public function getDestinationTable() { return $this->destinationTable; @@ -1775,7 +1680,6 @@ public function setEncoding($encoding) { $this->encoding = $encoding; } - public function getEncoding() { return $this->encoding; @@ -1784,7 +1688,6 @@ public function setFieldDelimiter($fieldDelimiter) { $this->fieldDelimiter = $fieldDelimiter; } - public function getFieldDelimiter() { return $this->fieldDelimiter; @@ -1793,7 +1696,6 @@ public function setIgnoreUnknownValues($ignoreUnknownValues) { $this->ignoreUnknownValues = $ignoreUnknownValues; } - public function getIgnoreUnknownValues() { return $this->ignoreUnknownValues; @@ -1802,7 +1704,6 @@ public function setMaxBadRecords($maxBadRecords) { $this->maxBadRecords = $maxBadRecords; } - public function getMaxBadRecords() { return $this->maxBadRecords; @@ -1811,7 +1712,6 @@ public function setQuote($quote) { $this->quote = $quote; } - public function getQuote() { return $this->quote; @@ -1820,7 +1720,6 @@ public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -1829,7 +1728,6 @@ public function setSchemaInline($schemaInline) { $this->schemaInline = $schemaInline; } - public function getSchemaInline() { return $this->schemaInline; @@ -1838,7 +1736,6 @@ public function setSchemaInlineFormat($schemaInlineFormat) { $this->schemaInlineFormat = $schemaInlineFormat; } - public function getSchemaInlineFormat() { return $this->schemaInlineFormat; @@ -1847,7 +1744,6 @@ public function setSkipLeadingRows($skipLeadingRows) { $this->skipLeadingRows = $skipLeadingRows; } - public function getSkipLeadingRows() { return $this->skipLeadingRows; @@ -1856,7 +1752,6 @@ public function setSourceFormat($sourceFormat) { $this->sourceFormat = $sourceFormat; } - public function getSourceFormat() { return $this->sourceFormat; @@ -1865,7 +1760,6 @@ public function setSourceUris($sourceUris) { $this->sourceUris = $sourceUris; } - public function getSourceUris() { return $this->sourceUris; @@ -1874,12 +1768,10 @@ public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; } - public function getWriteDisposition() { return $this->writeDisposition; } - } class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model @@ -1899,11 +1791,11 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model public $useQueryCache; public $writeDisposition; + public function setAllowLargeResults($allowLargeResults) { $this->allowLargeResults = $allowLargeResults; } - public function getAllowLargeResults() { return $this->allowLargeResults; @@ -1912,7 +1804,6 @@ public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; } - public function getCreateDisposition() { return $this->createDisposition; @@ -1921,7 +1812,6 @@ public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defa { $this->defaultDataset = $defaultDataset; } - public function getDefaultDataset() { return $this->defaultDataset; @@ -1930,7 +1820,6 @@ public function setDestinationTable(Google_Service_Bigquery_TableReference $dest { $this->destinationTable = $destinationTable; } - public function getDestinationTable() { return $this->destinationTable; @@ -1939,7 +1828,6 @@ public function setFlattenResults($flattenResults) { $this->flattenResults = $flattenResults; } - public function getFlattenResults() { return $this->flattenResults; @@ -1948,7 +1836,6 @@ public function setPreserveNulls($preserveNulls) { $this->preserveNulls = $preserveNulls; } - public function getPreserveNulls() { return $this->preserveNulls; @@ -1957,7 +1844,6 @@ public function setPriority($priority) { $this->priority = $priority; } - public function getPriority() { return $this->priority; @@ -1966,7 +1852,6 @@ public function setQuery($query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -1975,7 +1860,6 @@ public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; } - public function getUseQueryCache() { return $this->useQueryCache; @@ -1984,12 +1868,10 @@ public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; } - public function getWriteDisposition() { return $this->writeDisposition; } - } class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection @@ -2006,11 +1888,11 @@ class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collectio protected $sourceTablesDataType = 'array'; public $writeDisposition; + public function setCreateDisposition($createDisposition) { $this->createDisposition = $createDisposition; } - public function getCreateDisposition() { return $this->createDisposition; @@ -2019,7 +1901,6 @@ public function setDestinationTable(Google_Service_Bigquery_TableReference $dest { $this->destinationTable = $destinationTable; } - public function getDestinationTable() { return $this->destinationTable; @@ -2028,7 +1909,6 @@ public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTab { $this->sourceTable = $sourceTable; } - public function getSourceTable() { return $this->sourceTable; @@ -2037,7 +1917,6 @@ public function setSourceTables($sourceTables) { $this->sourceTables = $sourceTables; } - public function getSourceTables() { return $this->sourceTables; @@ -2046,12 +1925,10 @@ public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; } - public function getWriteDisposition() { return $this->writeDisposition; } - } class Google_Service_Bigquery_JobList extends Google_Collection @@ -2066,11 +1943,11 @@ class Google_Service_Bigquery_JobList extends Google_Collection public $nextPageToken; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2079,7 +1956,6 @@ public function setJobs($jobs) { $this->jobs = $jobs; } - public function getJobs() { return $this->jobs; @@ -2088,7 +1964,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2097,7 +1972,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2106,12 +1980,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Bigquery_JobListJobs extends Google_Model @@ -2134,11 +2006,11 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model protected $statusDataType = ''; public $userEmail; + public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) { $this->configuration = $configuration; } - public function getConfiguration() { return $this->configuration; @@ -2147,7 +2019,6 @@ public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) { $this->errorResult = $errorResult; } - public function getErrorResult() { return $this->errorResult; @@ -2156,7 +2027,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2165,7 +2035,6 @@ public function setJobReference(Google_Service_Bigquery_JobReference $jobReferen { $this->jobReference = $jobReference; } - public function getJobReference() { return $this->jobReference; @@ -2174,7 +2043,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2183,7 +2051,6 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; @@ -2192,7 +2059,6 @@ public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { $this->statistics = $statistics; } - public function getStatistics() { return $this->statistics; @@ -2201,7 +2067,6 @@ public function setStatus(Google_Service_Bigquery_JobStatus $status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -2210,12 +2075,10 @@ public function setUserEmail($userEmail) { $this->userEmail = $userEmail; } - public function getUserEmail() { return $this->userEmail; } - } class Google_Service_Bigquery_JobReference extends Google_Model @@ -2225,11 +2088,11 @@ 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; @@ -2238,12 +2101,10 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; } - } class Google_Service_Bigquery_JobStatistics extends Google_Model @@ -2259,11 +2120,11 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model public $startTime; public $totalBytesProcessed; + public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -2272,7 +2133,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -2281,7 +2141,6 @@ public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) { $this->load = $load; } - public function getLoad() { return $this->load; @@ -2290,7 +2149,6 @@ public function setQuery(Google_Service_Bigquery_JobStatistics2 $query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -2299,7 +2157,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -2308,12 +2165,10 @@ public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; } - public function getTotalBytesProcessed() { return $this->totalBytesProcessed; } - } class Google_Service_Bigquery_JobStatistics2 extends Google_Model @@ -2323,11 +2178,11 @@ 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; @@ -2336,12 +2191,10 @@ public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; } - public function getTotalBytesProcessed() { return $this->totalBytesProcessed; } - } class Google_Service_Bigquery_JobStatistics3 extends Google_Model @@ -2353,11 +2206,11 @@ class Google_Service_Bigquery_JobStatistics3 extends Google_Model public $outputBytes; public $outputRows; + public function setInputFileBytes($inputFileBytes) { $this->inputFileBytes = $inputFileBytes; } - public function getInputFileBytes() { return $this->inputFileBytes; @@ -2366,7 +2219,6 @@ public function setInputFiles($inputFiles) { $this->inputFiles = $inputFiles; } - public function getInputFiles() { return $this->inputFiles; @@ -2375,7 +2227,6 @@ public function setOutputBytes($outputBytes) { $this->outputBytes = $outputBytes; } - public function getOutputBytes() { return $this->outputBytes; @@ -2384,12 +2235,10 @@ public function setOutputRows($outputRows) { $this->outputRows = $outputRows; } - public function getOutputRows() { return $this->outputRows; } - } class Google_Service_Bigquery_JobStatus extends Google_Collection @@ -2403,11 +2252,11 @@ class Google_Service_Bigquery_JobStatus extends Google_Collection protected $errorsDataType = 'array'; public $state; + public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) { $this->errorResult = $errorResult; } - public function getErrorResult() { return $this->errorResult; @@ -2416,7 +2265,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -2425,20 +2273,14 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Bigquery_JsonObject extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Bigquery_ProjectList extends Google_Collection @@ -2453,11 +2295,11 @@ class Google_Service_Bigquery_ProjectList extends Google_Collection protected $projectsDataType = 'array'; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2466,7 +2308,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2475,7 +2316,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2484,7 +2324,6 @@ public function setProjects($projects) { $this->projects = $projects; } - public function getProjects() { return $this->projects; @@ -2493,12 +2332,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Bigquery_ProjectListProjects extends Google_Model @@ -2512,11 +2349,11 @@ class Google_Service_Bigquery_ProjectListProjects extends Google_Model protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference'; protected $projectReferenceDataType = ''; + public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; } - public function getFriendlyName() { return $this->friendlyName; @@ -2525,7 +2362,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2534,7 +2370,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2543,7 +2378,6 @@ public function setNumericId($numericId) { $this->numericId = $numericId; } - public function getNumericId() { return $this->numericId; @@ -2552,12 +2386,10 @@ public function setProjectReference(Google_Service_Bigquery_ProjectReference $pr { $this->projectReference = $projectReference; } - public function getProjectReference() { return $this->projectReference; } - } class Google_Service_Bigquery_ProjectReference extends Google_Model @@ -2566,16 +2398,15 @@ 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 @@ -2592,11 +2423,11 @@ class Google_Service_Bigquery_QueryRequest extends Google_Model public $timeoutMs; public $useQueryCache; + public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) { $this->defaultDataset = $defaultDataset; } - public function getDefaultDataset() { return $this->defaultDataset; @@ -2605,7 +2436,6 @@ public function setDryRun($dryRun) { $this->dryRun = $dryRun; } - public function getDryRun() { return $this->dryRun; @@ -2614,7 +2444,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2623,7 +2452,6 @@ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } - public function getMaxResults() { return $this->maxResults; @@ -2632,7 +2460,6 @@ public function setPreserveNulls($preserveNulls) { $this->preserveNulls = $preserveNulls; } - public function getPreserveNulls() { return $this->preserveNulls; @@ -2641,7 +2468,6 @@ public function setQuery($query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -2650,7 +2476,6 @@ public function setTimeoutMs($timeoutMs) { $this->timeoutMs = $timeoutMs; } - public function getTimeoutMs() { return $this->timeoutMs; @@ -2659,12 +2484,10 @@ public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; } - public function getUseQueryCache() { return $this->useQueryCache; } - } class Google_Service_Bigquery_QueryResponse extends Google_Collection @@ -2685,11 +2508,11 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection public $totalBytesProcessed; public $totalRows; + public function setCacheHit($cacheHit) { $this->cacheHit = $cacheHit; } - public function getCacheHit() { return $this->cacheHit; @@ -2698,7 +2521,6 @@ public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; } - public function getJobComplete() { return $this->jobComplete; @@ -2707,7 +2529,6 @@ public function setJobReference(Google_Service_Bigquery_JobReference $jobReferen { $this->jobReference = $jobReference; } - public function getJobReference() { return $this->jobReference; @@ -2716,7 +2537,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2725,7 +2545,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -2734,7 +2553,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -2743,7 +2561,6 @@ public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -2752,7 +2569,6 @@ public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; } - public function getTotalBytesProcessed() { return $this->totalBytesProcessed; @@ -2761,12 +2577,10 @@ public function setTotalRows($totalRows) { $this->totalRows = $totalRows; } - public function getTotalRows() { return $this->totalRows; } - } class Google_Service_Bigquery_Table extends Google_Model @@ -2792,11 +2606,11 @@ class Google_Service_Bigquery_Table extends Google_Model protected $viewType = 'Google_Service_Bigquery_ViewDefinition'; protected $viewDataType = ''; + public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -2805,7 +2619,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2814,7 +2627,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2823,7 +2635,6 @@ public function setExpirationTime($expirationTime) { $this->expirationTime = $expirationTime; } - public function getExpirationTime() { return $this->expirationTime; @@ -2832,7 +2643,6 @@ public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; } - public function getFriendlyName() { return $this->friendlyName; @@ -2841,7 +2651,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2850,7 +2659,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2859,7 +2667,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -2868,7 +2675,6 @@ public function setNumBytes($numBytes) { $this->numBytes = $numBytes; } - public function getNumBytes() { return $this->numBytes; @@ -2877,7 +2683,6 @@ public function setNumRows($numRows) { $this->numRows = $numRows; } - public function getNumRows() { return $this->numRows; @@ -2886,7 +2691,6 @@ public function setSchema(Google_Service_Bigquery_TableSchema $schema) { $this->schema = $schema; } - public function getSchema() { return $this->schema; @@ -2895,7 +2699,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2904,7 +2707,6 @@ public function setTableReference(Google_Service_Bigquery_TableReference $tableR { $this->tableReference = $tableReference; } - public function getTableReference() { return $this->tableReference; @@ -2913,7 +2715,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -2922,12 +2723,10 @@ public function setView(Google_Service_Bigquery_ViewDefinition $view) { $this->view = $view; } - public function getView() { return $this->view; } - } class Google_Service_Bigquery_TableCell extends Google_Model @@ -2936,16 +2735,15 @@ 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_TableDataInsertAllRequest extends Google_Collection @@ -2957,11 +2755,11 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2970,12 +2768,10 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; } - } class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model @@ -2985,11 +2781,11 @@ class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model public $insertId; public $json; + public function setInsertId($insertId) { $this->insertId = $insertId; } - public function getInsertId() { return $this->insertId; @@ -2998,12 +2794,10 @@ public function setJson($json) { $this->json = $json; } - public function getJson() { return $this->json; } - } class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection @@ -3015,11 +2809,11 @@ class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collecti protected $insertErrorsDataType = 'array'; public $kind; + public function setInsertErrors($insertErrors) { $this->insertErrors = $insertErrors; } - public function getInsertErrors() { return $this->insertErrors; @@ -3028,12 +2822,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection @@ -3045,11 +2837,11 @@ class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Goo protected $errorsDataType = 'array'; public $index; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -3058,12 +2850,10 @@ public function setIndex($index) { $this->index = $index; } - public function getIndex() { return $this->index; } - } class Google_Service_Bigquery_TableDataList extends Google_Collection @@ -3078,11 +2868,11 @@ class Google_Service_Bigquery_TableDataList extends Google_Collection protected $rowsDataType = 'array'; public $totalRows; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3091,7 +2881,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3100,7 +2889,6 @@ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } - public function getPageToken() { return $this->pageToken; @@ -3109,7 +2897,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -3118,12 +2905,10 @@ public function setTotalRows($totalRows) { $this->totalRows = $totalRows; } - public function getTotalRows() { return $this->totalRows; } - } class Google_Service_Bigquery_TableFieldSchema extends Google_Collection @@ -3138,11 +2923,11 @@ class Google_Service_Bigquery_TableFieldSchema extends Google_Collection public $name; public $type; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3151,7 +2936,6 @@ public function setFields($fields) { $this->fields = $fields; } - public function getFields() { return $this->fields; @@ -3160,7 +2944,6 @@ public function setMode($mode) { $this->mode = $mode; } - public function getMode() { return $this->mode; @@ -3169,7 +2952,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3178,12 +2960,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Bigquery_TableList extends Google_Collection @@ -3198,11 +2978,11 @@ class Google_Service_Bigquery_TableList extends Google_Collection protected $tablesDataType = 'array'; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3211,7 +2991,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3220,7 +2999,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3229,7 +3007,6 @@ public function setTables($tables) { $this->tables = $tables; } - public function getTables() { return $this->tables; @@ -3238,12 +3015,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Bigquery_TableListTables extends Google_Model @@ -3257,11 +3032,11 @@ class Google_Service_Bigquery_TableListTables extends Google_Model protected $tableReferenceDataType = ''; public $type; + public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; } - public function getFriendlyName() { return $this->friendlyName; @@ -3270,7 +3045,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3279,7 +3053,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3288,7 +3061,6 @@ public function setTableReference(Google_Service_Bigquery_TableReference $tableR { $this->tableReference = $tableReference; } - public function getTableReference() { return $this->tableReference; @@ -3297,12 +3069,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Bigquery_TableReference extends Google_Model @@ -3313,11 +3083,11 @@ class Google_Service_Bigquery_TableReference extends Google_Model public $projectId; public $tableId; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -3326,7 +3096,6 @@ public function setProjectId($projectId) { $this->projectId = $projectId; } - public function getProjectId() { return $this->projectId; @@ -3335,12 +3104,10 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; } - } class Google_Service_Bigquery_TableRow extends Google_Collection @@ -3351,16 +3118,15 @@ class Google_Service_Bigquery_TableRow extends Google_Collection protected $fType = 'Google_Service_Bigquery_TableCell'; protected $fDataType = 'array'; + public function setF($f) { $this->f = $f; } - public function getF() { return $this->f; } - } class Google_Service_Bigquery_TableSchema extends Google_Collection @@ -3371,16 +3137,15 @@ class Google_Service_Bigquery_TableSchema extends Google_Collection protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; + public function setFields($fields) { $this->fields = $fields; } - public function getFields() { return $this->fields; } - } class Google_Service_Bigquery_ViewDefinition extends Google_Model @@ -3389,14 +3154,13 @@ class Google_Service_Bigquery_ViewDefinition extends Google_Model ); public $query; + public function setQuery($query) { $this->query = $query; } - public function getQuery() { return $this->query; } - } From 2d29022d632db9919f3b97ff1fbdb736da6453c8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:36 -0800 Subject: [PATCH 0467/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 103 +++++++++------------------- 1 file changed, 33 insertions(+), 70 deletions(-) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 7b9aef204..18713213a 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -19,8 +19,7 @@ * Service definition for Appsactivity (v1). * *

- * Provides a historical view of activity. - *

+ * Provides a historical view of activity.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Appsactivity extends Google_Service { /** View the activity history of your Google Apps. */ - const ACTIVITY = "https://www.googleapis.com/auth/activity"; + const ACTIVITY = + "https://www.googleapis.com/auth/activity"; /** View and manage the files and documents in your Google Drive. */ - const DRIVE = "https://www.googleapis.com/auth/drive"; + const DRIVE = + "https://www.googleapis.com/auth/drive"; /** View metadata for files and documents in your Google Drive. */ - const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + const DRIVE_METADATA_READONLY = + "https://www.googleapis.com/auth/drive.metadata.readonly"; /** View the files and documents in your Google Drive. */ - const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; + const DRIVE_READONLY = + "https://www.googleapis.com/auth/drive.readonly"; public $activities; @@ -123,25 +126,19 @@ class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Res * * @param array $optParams Optional parameters. * - * @opt_param string drive.ancestorId - * Identifies the Drive folder containing the items for which to return activities. - * @opt_param int pageSize - * The maximum number of events to return on a page. The response includes a continuation token if - * there are more events. - * @opt_param string pageToken - * A token to retrieve a specific page of results. - * @opt_param string userId - * Indicates the user to return activity for. Use the special value me to indicate the currently - * authenticated user. - * @opt_param string groupingStrategy - * Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent - * object. - * @opt_param string drive.fileId - * Identifies the Drive item to return activities for. - * @opt_param string source - * The Google service from which to return activities. Possible values of source are: - - - * drive.google.com + * @opt_param string drive.ancestorId Identifies the Drive folder containing the + * items for which to return activities. + * @opt_param int pageSize The maximum number of events to return on a page. The + * response includes a continuation token if there are more events. + * @opt_param string pageToken A token to retrieve a specific page of results. + * @opt_param string userId Indicates the user to return activity for. Use the + * special value me to indicate the currently authenticated user. + * @opt_param string groupingStrategy Indicates the strategy to use when + * grouping singleEvents items in the associated combinedEvent object. + * @opt_param string drive.fileId Identifies the Drive item to return activities + * for. + * @opt_param string source The Google service from which to return activities. + * Possible values of source are: - drive.google.com * @return Google_Service_Appsactivity_ListActivitiesResponse */ public function listActivities($optParams = array()) @@ -165,11 +162,11 @@ class Google_Service_Appsactivity_Activity extends Google_Collection protected $singleEventsType = 'Google_Service_Appsactivity_Event'; protected $singleEventsDataType = 'array'; + public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent) { $this->combinedEvent = $combinedEvent; } - public function getCombinedEvent() { return $this->combinedEvent; @@ -178,12 +175,10 @@ public function setSingleEvents($singleEvents) { $this->singleEvents = $singleEvents; } - public function getSingleEvents() { return $this->singleEvents; } - } class Google_Service_Appsactivity_Event extends Google_Collection @@ -206,11 +201,11 @@ class Google_Service_Appsactivity_Event extends Google_Collection protected $userType = 'Google_Service_Appsactivity_User'; protected $userDataType = ''; + public function setAdditionalEventTypes($additionalEventTypes) { $this->additionalEventTypes = $additionalEventTypes; } - public function getAdditionalEventTypes() { return $this->additionalEventTypes; @@ -219,7 +214,6 @@ public function setEventTimeMillis($eventTimeMillis) { $this->eventTimeMillis = $eventTimeMillis; } - public function getEventTimeMillis() { return $this->eventTimeMillis; @@ -228,7 +222,6 @@ public function setFromUserDeletion($fromUserDeletion) { $this->fromUserDeletion = $fromUserDeletion; } - public function getFromUserDeletion() { return $this->fromUserDeletion; @@ -237,7 +230,6 @@ public function setMove(Google_Service_Appsactivity_Move $move) { $this->move = $move; } - public function getMove() { return $this->move; @@ -246,7 +238,6 @@ public function setPermissionChanges($permissionChanges) { $this->permissionChanges = $permissionChanges; } - public function getPermissionChanges() { return $this->permissionChanges; @@ -255,7 +246,6 @@ public function setPrimaryEventType($primaryEventType) { $this->primaryEventType = $primaryEventType; } - public function getPrimaryEventType() { return $this->primaryEventType; @@ -264,7 +254,6 @@ public function setRename(Google_Service_Appsactivity_Rename $rename) { $this->rename = $rename; } - public function getRename() { return $this->rename; @@ -273,7 +262,6 @@ public function setTarget(Google_Service_Appsactivity_Target $target) { $this->target = $target; } - public function getTarget() { return $this->target; @@ -282,12 +270,10 @@ public function setUser(Google_Service_Appsactivity_User $user) { $this->user = $user; } - public function getUser() { return $this->user; } - } class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection @@ -299,11 +285,11 @@ class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collecti protected $activitiesDataType = 'array'; public $nextPageToken; + public function setActivities($activities) { $this->activities = $activities; } - public function getActivities() { return $this->activities; @@ -312,12 +298,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Appsactivity_Move extends Google_Collection @@ -330,11 +314,11 @@ class Google_Service_Appsactivity_Move extends Google_Collection protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; protected $removedParentsDataType = 'array'; + public function setAddedParents($addedParents) { $this->addedParents = $addedParents; } - public function getAddedParents() { return $this->addedParents; @@ -343,12 +327,10 @@ public function setRemovedParents($removedParents) { $this->removedParents = $removedParents; } - public function getRemovedParents() { return $this->removedParents; } - } class Google_Service_Appsactivity_Parent extends Google_Model @@ -359,11 +341,11 @@ class Google_Service_Appsactivity_Parent extends Google_Model public $isRoot; public $title; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -372,7 +354,6 @@ public function setIsRoot($isRoot) { $this->isRoot = $isRoot; } - public function getIsRoot() { return $this->isRoot; @@ -381,12 +362,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Appsactivity_Permission extends Google_Model @@ -401,11 +380,11 @@ class Google_Service_Appsactivity_Permission extends Google_Model protected $userDataType = ''; public $withLink; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -414,7 +393,6 @@ public function setPermissionId($permissionId) { $this->permissionId = $permissionId; } - public function getPermissionId() { return $this->permissionId; @@ -423,7 +401,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -432,7 +409,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -441,7 +417,6 @@ public function setUser(Google_Service_Appsactivity_User $user) { $this->user = $user; } - public function getUser() { return $this->user; @@ -450,12 +425,10 @@ public function setWithLink($withLink) { $this->withLink = $withLink; } - public function getWithLink() { return $this->withLink; } - } class Google_Service_Appsactivity_PermissionChange extends Google_Collection @@ -468,11 +441,11 @@ class Google_Service_Appsactivity_PermissionChange extends Google_Collection protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; protected $removedPermissionsDataType = 'array'; + public function setAddedPermissions($addedPermissions) { $this->addedPermissions = $addedPermissions; } - public function getAddedPermissions() { return $this->addedPermissions; @@ -481,12 +454,10 @@ public function setRemovedPermissions($removedPermissions) { $this->removedPermissions = $removedPermissions; } - public function getRemovedPermissions() { return $this->removedPermissions; } - } class Google_Service_Appsactivity_Photo extends Google_Model @@ -495,16 +466,15 @@ class Google_Service_Appsactivity_Photo extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Appsactivity_Rename extends Google_Model @@ -514,11 +484,11 @@ class Google_Service_Appsactivity_Rename extends Google_Model public $newTitle; public $oldTitle; + public function setNewTitle($newTitle) { $this->newTitle = $newTitle; } - public function getNewTitle() { return $this->newTitle; @@ -527,12 +497,10 @@ public function setOldTitle($oldTitle) { $this->oldTitle = $oldTitle; } - public function getOldTitle() { return $this->oldTitle; } - } class Google_Service_Appsactivity_Target extends Google_Model @@ -543,11 +511,11 @@ class Google_Service_Appsactivity_Target extends Google_Model public $mimeType; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -556,7 +524,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -565,12 +532,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Appsactivity_User extends Google_Model @@ -581,11 +546,11 @@ class Google_Service_Appsactivity_User extends Google_Model protected $photoType = 'Google_Service_Appsactivity_Photo'; protected $photoDataType = ''; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -594,10 +559,8 @@ public function setPhoto(Google_Service_Appsactivity_Photo $photo) { $this->photo = $photo; } - public function getPhoto() { return $this->photo; } - } From 12892f26537735d3059e5e68fea93c30e33b5cb9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:36 -0800 Subject: [PATCH 0468/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 254 ++++++++++------------------- 1 file changed, 90 insertions(+), 164 deletions(-) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 9e2083552..b51680bcb 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -19,8 +19,8 @@ * Service definition for Replicapool (v1beta2). * *

- * The Google Compute Engine Instance Group Manager API provides groups of homogenous Compute Engine Instances. - *

+ * The Google Compute Engine Instance Group Manager API provides groups of + * homogenous Compute Engine Instances.

* *

* For more information about this service, see the API @@ -32,11 +32,14 @@ class Google_Service_Replicapool extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; + const COMPUTE = + "https://www.googleapis.com/auth/compute"; /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + const COMPUTE_READONLY = + "https://www.googleapis.com/auth/compute.readonly"; public $instanceGroupManagers; public $zoneOperations; @@ -353,12 +356,10 @@ class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_S * target pools of which they were members, without deleting the instances. * (instanceGroupManagers.abandonInstances) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -369,18 +370,18 @@ public function abandonInstances($project, $zone, $instanceGroupManager, Google_ $params = array_merge($params, $optParams); return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation"); } + /** * Deletes the instance group manager and all instances contained within. If * you'd like to delete the manager without deleting the instances, you must * first abandon the instances to remove them from the group. * (instanceGroupManagers.delete) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * Name of the Instance Group Manager resource to delete. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager Name of the Instance Group Manager + * resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation */ @@ -390,18 +391,17 @@ public function delete($project, $zone, $instanceGroupManager, $optParams = arra $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Replicapool_Operation"); } + /** * Deletes the specified instances. The instances are removed from the instance * group and any target pools of which they are a member, then deleted. The * targetSize of the instance group manager is reduced by the number of * instances deleted. (instanceGroupManagers.deleteInstances) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -412,16 +412,15 @@ public function deleteInstances($project, $zone, $instanceGroupManager, Google_S $params = array_merge($params, $optParams); return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation"); } + /** * Returns the specified Instance Group Manager resource. * (instanceGroupManagers.get) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * Name of the instance resource to return. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager Name of the instance resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_InstanceGroupManager */ @@ -431,16 +430,15 @@ public function get($project, $zone, $instanceGroupManager, $optParams = array() $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager"); } + /** * Creates an instance group manager, as well as the instance group and the * specified number of instances. (instanceGroupManagers.insert) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param int $size - * Number of instances that should exist. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param int $size Number of instances that should exist. * @param Google_InstanceGroupManager $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -451,24 +449,22 @@ public function insert($project, $zone, $size, Google_Service_Replicapool_Instan $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Replicapool_Operation"); } + /** * Retrieves the list of Instance Group Manager resources contained within the * specified zone. (instanceGroupManagers.listInstanceGroupManagers) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Replicapool_InstanceGroupManagerList */ public function listInstanceGroupManagers($project, $zone, $optParams = array()) @@ -477,17 +473,16 @@ public function listInstanceGroupManagers($project, $zone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList"); } + /** * Recreates the specified instances. The instances are deleted, then recreated * using the instance group manager's current instance template. * (instanceGroupManagers.recreateInstances) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -498,20 +493,19 @@ public function recreateInstances($project, $zone, $instanceGroupManager, Google $params = array_merge($params, $optParams); return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation"); } + /** * Resizes the managed instance group up or down. If resized up, new instances * are created using the current instance template. If resized down, instances * are removed in the order outlined in Resizing a managed instance group. * (instanceGroupManagers.resize) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. - * @param int $size - * Number of instances that should exist in this Instance Group Manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. + * @param int $size Number of instances that should exist in this Instance Group + * Manager. * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation */ @@ -521,17 +515,16 @@ public function resize($project, $zone, $instanceGroupManager, $size, $optParams $params = array_merge($params, $optParams); return $this->call('resize', array($params), "Google_Service_Replicapool_Operation"); } + /** * Sets the instance template to use when creating new instances in this group. * Existing instances are not affected. * (instanceGroupManagers.setInstanceTemplate) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -542,17 +535,16 @@ public function setInstanceTemplate($project, $zone, $instanceGroupManager, Goog $params = array_merge($params, $optParams); return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation"); } + /** * Modifies the target pools to which all new instances in this group are * assigned. Existing instances in the group are not affected. * (instanceGroupManagers.setTargetPools) * - * @param string $project - * The Google Developers Console project name. - * @param string $zone - * The name of the zone in which the instance group manager resides. - * @param string $instanceGroupManager - * The name of the instance group manager. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the instance group manager + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapool_Operation @@ -580,12 +572,9 @@ class Google_Service_Replicapool_ZoneOperations_Resource extends Google_Service_ * 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 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_Replicapool_Operation */ @@ -595,24 +584,21 @@ public function get($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Replicapool_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Replicapool_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -645,11 +631,11 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection public $targetPools; public $targetSize; + public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; } - public function getBaseInstanceName() { return $this->baseInstanceName; @@ -658,7 +644,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -667,7 +652,6 @@ public function setCurrentSize($currentSize) { $this->currentSize = $currentSize; } - public function getCurrentSize() { return $this->currentSize; @@ -676,7 +660,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -685,7 +668,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -694,7 +676,6 @@ public function setGroup($group) { $this->group = $group; } - public function getGroup() { return $this->group; @@ -703,7 +684,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -712,7 +692,6 @@ public function setInstanceTemplate($instanceTemplate) { $this->instanceTemplate = $instanceTemplate; } - public function getInstanceTemplate() { return $this->instanceTemplate; @@ -721,7 +700,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -730,7 +708,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -739,7 +716,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -748,7 +724,6 @@ public function setTargetPools($targetPools) { $this->targetPools = $targetPools; } - public function getTargetPools() { return $this->targetPools; @@ -757,12 +732,10 @@ public function setTargetSize($targetSize) { $this->targetSize = $targetSize; } - public function getTargetSize() { return $this->targetSize; } - } class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection @@ -777,11 +750,11 @@ class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collect public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -790,7 +763,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -799,7 +771,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -808,7 +779,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -817,12 +787,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection @@ -832,16 +800,15 @@ class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest ex ); public $instances; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; } - } class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection @@ -851,16 +818,15 @@ class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest ext ); public $instances; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; } - } class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection @@ -870,16 +836,15 @@ class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest e ); public $instances; + public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; } - } class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model @@ -888,16 +853,15 @@ class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest ); public $instanceTemplate; + public function setInstanceTemplate($instanceTemplate) { $this->instanceTemplate = $instanceTemplate; } - public function getInstanceTemplate() { return $this->instanceTemplate; } - } class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection @@ -908,11 +872,11 @@ class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest exte public $fingerprint; public $targetPools; + public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -921,12 +885,10 @@ public function setTargetPools($targetPools) { $this->targetPools = $targetPools; } - public function getTargetPools() { return $this->targetPools; } - } class Google_Service_Replicapool_Operation extends Google_Collection @@ -959,11 +921,11 @@ class Google_Service_Replicapool_Operation extends Google_Collection protected $warningsDataType = 'array'; public $zone; + public function setClientOperationId($clientOperationId) { $this->clientOperationId = $clientOperationId; } - public function getClientOperationId() { return $this->clientOperationId; @@ -972,7 +934,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -981,7 +942,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -990,7 +950,6 @@ public function setError(Google_Service_Replicapool_OperationError $error) { $this->error = $error; } - public function getError() { return $this->error; @@ -999,7 +958,6 @@ public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; } - public function getHttpErrorMessage() { return $this->httpErrorMessage; @@ -1008,7 +966,6 @@ public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; @@ -1017,7 +974,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1026,7 +982,6 @@ public function setInsertTime($insertTime) { $this->insertTime = $insertTime; } - public function getInsertTime() { return $this->insertTime; @@ -1035,7 +990,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1044,7 +998,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1053,7 +1006,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -1062,7 +1014,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -1071,7 +1022,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1080,7 +1030,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1089,7 +1038,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -1098,7 +1046,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1107,7 +1054,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -1116,7 +1062,6 @@ public function setTargetId($targetId) { $this->targetId = $targetId; } - public function getTargetId() { return $this->targetId; @@ -1125,7 +1070,6 @@ public function setTargetLink($targetLink) { $this->targetLink = $targetLink; } - public function getTargetLink() { return $this->targetLink; @@ -1134,7 +1078,6 @@ public function setUser($user) { $this->user = $user; } - public function getUser() { return $this->user; @@ -1143,7 +1086,6 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; @@ -1152,12 +1094,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Replicapool_OperationError extends Google_Collection @@ -1168,16 +1108,15 @@ class Google_Service_Replicapool_OperationError extends Google_Collection protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors'; protected $errorsDataType = 'array'; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Replicapool_OperationErrorErrors extends Google_Model @@ -1188,11 +1127,11 @@ class Google_Service_Replicapool_OperationErrorErrors extends Google_Model public $location; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1201,7 +1140,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1210,12 +1148,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Replicapool_OperationList extends Google_Collection @@ -1230,11 +1166,11 @@ class Google_Service_Replicapool_OperationList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1243,7 +1179,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1252,7 +1187,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1261,7 +1195,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1270,12 +1203,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Replicapool_OperationWarnings extends Google_Collection @@ -1288,11 +1219,11 @@ class Google_Service_Replicapool_OperationWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1301,7 +1232,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1310,12 +1240,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Replicapool_OperationWarningsData extends Google_Model @@ -1325,11 +1253,11 @@ class Google_Service_Replicapool_OperationWarningsData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1338,10 +1266,8 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } From 10fd51f5460fadc9eda934569d8d770203f57d28 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:37 -0800 Subject: [PATCH 0469/1274] Updated Taskqueue.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Taskqueue.php | 130 +++++++++++-------------------- 1 file changed, 44 insertions(+), 86 deletions(-) diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index b83a586f4..84fb3ca41 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -19,8 +19,7 @@ * Service definition for Taskqueue (v1beta2). * *

- * Lets you access a Google App Engine Pull Task Queue over REST. - *

+ * Lets you access a Google App Engine Pull Task Queue over REST.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Taskqueue extends Google_Service { /** Manage your Tasks and Taskqueues. */ - const TASKQUEUE = "https://www.googleapis.com/auth/taskqueue"; + const TASKQUEUE = + "https://www.googleapis.com/auth/taskqueue"; /** Consume Tasks from your Taskqueues. */ - const TASKQUEUE_CONSUMER = "https://www.googleapis.com/auth/taskqueue.consumer"; + const TASKQUEUE_CONSUMER = + "https://www.googleapis.com/auth/taskqueue.consumer"; public $taskqueues; public $tasks; @@ -262,14 +263,11 @@ class Google_Service_Taskqueue_Taskqueues_Resource extends Google_Service_Resour /** * 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 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. + * @opt_param bool getStats Whether to get stats. Optional. * @return Google_Service_Taskqueue_TaskQueue */ public function get($project, $taskqueue, $optParams = array()) @@ -294,12 +292,9 @@ 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 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()) @@ -308,15 +303,13 @@ public function delete($project, $taskqueue, $task, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get a particular task from a TaskQueue. (tasks.get) * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The taskqueue in which the task belongs. - * @param string $task - * The task to get properties of. + * @param 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 */ @@ -326,13 +319,12 @@ public function get($project, $taskqueue, $task, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); } + /** * Insert a new task in a TaskQueue (tasks.insert) * - * @param string $project - * The project under which the queue lies - * @param string $taskqueue - * The taskqueue to insert the task into + * @param 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 @@ -343,25 +335,22 @@ public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); } + /** * Lease 1 or more tasks from a TaskQueue. (tasks.lease) * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The taskqueue to lease a task from. - * @param int $numTasks - * The number of tasks to lease. - * @param int $leaseSecs - * The lease in seconds. + * @param 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 + * @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()) @@ -370,13 +359,12 @@ public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = $params = array_merge($params, $optParams); return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); } + /** * List Tasks in a TaskQueue (tasks.listTasks) * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The id of the taskqueue to list tasks from. + * @param 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 */ @@ -386,18 +374,15 @@ public function listTasks($project, $taskqueue, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); } + /** * Update tasks that are leased out of a TaskQueue. This method supports patch * semantics. (tasks.patch) * - * @param string $project - * The project under which the queue lies. + * @param string $project The project under which the queue lies. * @param string $taskqueue - * * @param string $task - * - * @param int $newLeaseSeconds - * The new lease in seconds. + * @param int $newLeaseSeconds The new lease in seconds. * @param Google_Task $postBody * @param array $optParams Optional parameters. * @return Google_Service_Taskqueue_Task @@ -408,17 +393,14 @@ public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Serv $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); } + /** * Update tasks that are leased out of a TaskQueue. (tasks.update) * - * @param string $project - * The project under which the queue lies. + * @param string $project The project under which the queue lies. * @param string $taskqueue - * * @param string $task - * - * @param int $newLeaseSeconds - * The new lease in seconds. + * @param int $newLeaseSeconds The new lease in seconds. * @param Google_Task $postBody * @param array $optParams Optional parameters. * @return Google_Service_Taskqueue_Task @@ -448,11 +430,11 @@ class Google_Service_Taskqueue_Task extends Google_Model public $retryCount; public $tag; + public function setEnqueueTimestamp($enqueueTimestamp) { $this->enqueueTimestamp = $enqueueTimestamp; } - public function getEnqueueTimestamp() { return $this->enqueueTimestamp; @@ -461,7 +443,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -470,7 +451,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -479,7 +459,6 @@ public function setLeaseTimestamp($leaseTimestamp) { $this->leaseTimestamp = $leaseTimestamp; } - public function getLeaseTimestamp() { return $this->leaseTimestamp; @@ -488,7 +467,6 @@ public function setPayloadBase64($payloadBase64) { $this->payloadBase64 = $payloadBase64; } - public function getPayloadBase64() { return $this->payloadBase64; @@ -497,7 +475,6 @@ public function setQueueName($queueName) { $this->queueName = $queueName; } - public function getQueueName() { return $this->queueName; @@ -506,7 +483,6 @@ public function setRetryCount($retryCount) { $this->retryCount = $retryCount; } - public function getRetryCount() { return $this->retryCount; @@ -515,12 +491,10 @@ public function setTag($tag) { $this->tag = $tag; } - public function getTag() { return $this->tag; } - } class Google_Service_Taskqueue_TaskQueue extends Google_Model @@ -535,11 +509,11 @@ class Google_Service_Taskqueue_TaskQueue extends Google_Model protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats'; protected $statsDataType = ''; + public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl) { $this->acl = $acl; } - public function getAcl() { return $this->acl; @@ -548,7 +522,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -557,7 +530,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -566,7 +538,6 @@ public function setMaxLeases($maxLeases) { $this->maxLeases = $maxLeases; } - public function getMaxLeases() { return $this->maxLeases; @@ -575,12 +546,10 @@ 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 @@ -592,11 +561,11 @@ class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection public $consumerEmails; public $producerEmails; + public function setAdminEmails($adminEmails) { $this->adminEmails = $adminEmails; } - public function getAdminEmails() { return $this->adminEmails; @@ -605,7 +574,6 @@ public function setConsumerEmails($consumerEmails) { $this->consumerEmails = $consumerEmails; } - public function getConsumerEmails() { return $this->consumerEmails; @@ -614,12 +582,10 @@ public function setProducerEmails($producerEmails) { $this->producerEmails = $producerEmails; } - public function getProducerEmails() { return $this->producerEmails; } - } class Google_Service_Taskqueue_TaskQueueStats extends Google_Model @@ -631,11 +597,11 @@ class Google_Service_Taskqueue_TaskQueueStats extends Google_Model public $oldestTask; public $totalTasks; + public function setLeasedLastHour($leasedLastHour) { $this->leasedLastHour = $leasedLastHour; } - public function getLeasedLastHour() { return $this->leasedLastHour; @@ -644,7 +610,6 @@ public function setLeasedLastMinute($leasedLastMinute) { $this->leasedLastMinute = $leasedLastMinute; } - public function getLeasedLastMinute() { return $this->leasedLastMinute; @@ -653,7 +618,6 @@ public function setOldestTask($oldestTask) { $this->oldestTask = $oldestTask; } - public function getOldestTask() { return $this->oldestTask; @@ -662,12 +626,10 @@ public function setTotalTasks($totalTasks) { $this->totalTasks = $totalTasks; } - public function getTotalTasks() { return $this->totalTasks; } - } class Google_Service_Taskqueue_Tasks extends Google_Collection @@ -679,11 +641,11 @@ class Google_Service_Taskqueue_Tasks extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -692,12 +654,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Taskqueue_Tasks2 extends Google_Collection @@ -709,11 +669,11 @@ class Google_Service_Taskqueue_Tasks2 extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -722,10 +682,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From 4d384b11b6587415d8ca75320d6b42b15d0ba338 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:37 -0800 Subject: [PATCH 0470/1274] Updated Freebase.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Freebase.php | 124 +++++++++++--------------------- 1 file changed, 42 insertions(+), 82 deletions(-) diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index e2df723fb..81a2c911c 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -19,8 +19,7 @@ * Service definition for Freebase (v1). * *

- * Find Freebase entities using textual queries and other constraints. - *

+ * Find Freebase entities using textual queries and other constraints.

* *

* For more information about this service, see the API @@ -200,19 +199,14 @@ public function __construct(Google_Client $client) * * @param array $optParams Optional parameters. * - * @opt_param string lang - * Languages for names and values. First language is used for display. Default is 'en'. - * @opt_param float confidence - * Required confidence for a candidate to match. Must be between .5 and 1.0 - * @opt_param string name - * Name of entity. - * @opt_param string kind - * Classifications of entity e.g. type, category, title. - * @opt_param string prop - * Property values for entity formatted as - : - * @opt_param int limit - * Maximum number of candidates to return. + * @opt_param string lang Languages for names and values. First language is used + * for display. Default is 'en'. + * @opt_param float confidence Required confidence for a candidate to match. + * Must be between .5 and 1.0 + * @opt_param string name Name of entity. + * @opt_param string kind Classifications of entity e.g. type, category, title. + * @opt_param string prop Property values for entity formatted as : + * @opt_param int limit Maximum number of candidates to return. * @return Google_Service_Freebase_ReconcileGet */ public function reconcile($optParams = array()) @@ -226,52 +220,34 @@ public function reconcile($optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string domain - * Restrict to topics with this Freebase domain id. - * @opt_param string help - * The keyword to request help on. - * @opt_param string query - * Query term to search for. - * @opt_param string scoring - * Relevance scoring algorithm to use. - * @opt_param int cursor - * The cursor value to use for the next page of results. - * @opt_param bool prefixed - * Prefix match against names and aliases. - * @opt_param bool exact - * Query on exact name and keys only. - * @opt_param string mid - * A mid to use instead of a query. - * @opt_param string encode - * The encoding of the response. You can use this parameter to enable html encoding. - * @opt_param string type - * Restrict to topics with this Freebase type id. - * @opt_param string as_of_time - * A mql as_of_time value to use with mql_output queries. - * @opt_param bool stemmed - * Query on stemmed names and aliases. May not be used with prefixed. - * @opt_param string format - * Structural format of the json response. - * @opt_param string spell - * Request 'did you mean' suggestions - * @opt_param string with - * A rule to match against. - * @opt_param string lang - * The code of the language to run the query with. Default is 'en'. - * @opt_param bool indent - * Whether to indent the json results or not. - * @opt_param string filter - * A filter to apply to the query. - * @opt_param string callback - * JS method name for JSONP callbacks. - * @opt_param string without - * A rule to not match against. - * @opt_param int limit - * Maximum number of results to return. - * @opt_param string output - * An output expression to request data from matches. - * @opt_param string mql_output - * The MQL query to run againist the results to extract more data. + * @opt_param string domain Restrict to topics with this Freebase domain id. + * @opt_param string help The keyword to request help on. + * @opt_param string query Query term to search for. + * @opt_param string scoring Relevance scoring algorithm to use. + * @opt_param int cursor The cursor value to use for the next page of results. + * @opt_param bool prefixed Prefix match against names and aliases. + * @opt_param bool exact Query on exact name and keys only. + * @opt_param string mid A mid to use instead of a query. + * @opt_param string encode The encoding of the response. You can use this + * parameter to enable html encoding. + * @opt_param string type Restrict to topics with this Freebase type id. + * @opt_param string as_of_time A mql as_of_time value to use with mql_output + * queries. + * @opt_param bool stemmed Query on stemmed names and aliases. May not be used + * with prefixed. + * @opt_param string format Structural format of the json response. + * @opt_param string spell Request 'did you mean' suggestions + * @opt_param string with A rule to match against. + * @opt_param string lang The code of the language to run the query with. + * Default is 'en'. + * @opt_param bool indent Whether to indent the json results or not. + * @opt_param string filter A filter to apply to the query. + * @opt_param string callback JS method name for JSONP callbacks. + * @opt_param string without A rule to not match against. + * @opt_param int limit Maximum number of results to return. + * @opt_param string output An output expression to request data from matches. + * @opt_param string mql_output The MQL query to run againist the results to + * extract more data. */ public function search($optParams = array()) { @@ -296,11 +272,11 @@ class Google_Service_Freebase_ReconcileCandidate extends Google_Model protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable'; protected $notableDataType = ''; + public function setConfidence($confidence) { $this->confidence = $confidence; } - public function getConfidence() { return $this->confidence; @@ -309,7 +285,6 @@ public function setLang($lang) { $this->lang = $lang; } - public function getLang() { return $this->lang; @@ -318,7 +293,6 @@ public function setMid($mid) { $this->mid = $mid; } - public function getMid() { return $this->mid; @@ -327,7 +301,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -336,12 +309,10 @@ public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $no { $this->notable = $notable; } - public function getNotable() { return $this->notable; } - } class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model @@ -351,11 +322,11 @@ class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model public $id; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -364,12 +335,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Freebase_ReconcileGet extends Google_Collection @@ -386,11 +355,11 @@ class Google_Service_Freebase_ReconcileGet extends Google_Collection protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning'; protected $warningDataType = 'array'; + public function setCandidate($candidate) { $this->candidate = $candidate; } - public function getCandidate() { return $this->candidate; @@ -399,7 +368,6 @@ public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs) { $this->costs = $costs; } - public function getCosts() { return $this->costs; @@ -408,7 +376,6 @@ public function setMatch(Google_Service_Freebase_ReconcileCandidate $match) { $this->match = $match; } - public function getMatch() { return $this->match; @@ -417,12 +384,10 @@ public function setWarning($warning) { $this->warning = $warning; } - public function getWarning() { return $this->warning; } - } class Google_Service_Freebase_ReconcileGetCosts extends Google_Model @@ -432,11 +397,11 @@ class Google_Service_Freebase_ReconcileGetCosts extends Google_Model public $hits; public $ms; + public function setHits($hits) { $this->hits = $hits; } - public function getHits() { return $this->hits; @@ -445,12 +410,10 @@ public function setMs($ms) { $this->ms = $ms; } - public function getMs() { return $this->ms; } - } class Google_Service_Freebase_ReconcileGetWarning extends Google_Model @@ -461,11 +424,11 @@ class Google_Service_Freebase_ReconcileGetWarning extends Google_Model public $message; public $reason; + public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -474,7 +437,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -483,10 +445,8 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } From 5fdc5c56df52abc3ef1da1df63e9c9474cd40c2f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:37 -0800 Subject: [PATCH 0471/1274] Updated DoubleClickBidManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DoubleClickBidManager.php | 125 +++++-------------- 1 file changed, 29 insertions(+), 96 deletions(-) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 748b54723..9fae00944 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -19,8 +19,7 @@ * Service definition for DoubleClickBidManager (v1). * *

- * API for viewing and managing your reports in DoubleClick Bid Manager. - *

+ * API for viewing and managing your reports in DoubleClick Bid Manager.

* *

* For more information about this service, see the API @@ -165,6 +164,7 @@ public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadL $params = array_merge($params, $optParams); return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse"); } + /** * Uploads line items in CSV format. (lineitems.uploadlineitems) * @@ -204,12 +204,12 @@ public function createquery(Google_Service_DoubleClickBidManager_Query $postBody $params = array_merge($params, $optParams); return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query"); } + /** * Deletes a stored query as well as the associated stored reports. * (queries.deletequery) * - * @param string $queryId - * Query ID to delete. + * @param string $queryId Query ID to delete. * @param array $optParams Optional parameters. */ public function deletequery($queryId, $optParams = array()) @@ -218,11 +218,11 @@ public function deletequery($queryId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('deletequery', array($params)); } + /** * Retrieves a stored query. (queries.getquery) * - * @param string $queryId - * Query ID to retrieve. + * @param string $queryId Query ID to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_DoubleClickBidManager_Query */ @@ -232,6 +232,7 @@ public function getquery($queryId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query"); } + /** * Retrieves stored queries. (queries.listqueries) * @@ -244,11 +245,11 @@ public function listqueries($optParams = array()) $params = array_merge($params, $optParams); return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse"); } + /** * Runs a stored query to generate a report. (queries.runquery) * - * @param string $queryId - * Query ID to run. + * @param string $queryId Query ID to run. * @param Google_RunQueryRequest $postBody * @param array $optParams Optional parameters. */ @@ -274,8 +275,7 @@ class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Servi /** * Retrieves stored reports. (reports.listreports) * - * @param string $queryId - * Query ID with which the reports are associated. + * @param string $queryId Query ID with which the reports are associated. * @param array $optParams Optional parameters. * @return Google_Service_DoubleClickBidManager_ListReportsResponse */ @@ -299,11 +299,11 @@ class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Goog public $filterType; public $format; + public function setFilterIds($filterIds) { $this->filterIds = $filterIds; } - public function getFilterIds() { return $this->filterIds; @@ -312,7 +312,6 @@ public function setFilterType($filterType) { $this->filterType = $filterType; } - public function getFilterType() { return $this->filterType; @@ -321,12 +320,10 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; } - } class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model @@ -335,16 +332,15 @@ class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Goo ); public $lineItems; + public function setLineItems($lineItems) { $this->lineItems = $lineItems; } - public function getLineItems() { return $this->lineItems; } - } class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model @@ -354,11 +350,11 @@ class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -367,12 +363,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection @@ -384,11 +378,11 @@ class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Co protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; protected $queriesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -397,12 +391,10 @@ public function setQueries($queries) { $this->queries = $queries; } - public function getQueries() { return $this->queries; } - } class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection @@ -414,11 +406,11 @@ class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Co protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; protected $reportsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -427,12 +419,10 @@ public function setReports($reports) { $this->reports = $reports; } - public function getReports() { return $this->reports; } - } class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection @@ -447,11 +437,11 @@ class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection public $metrics; public $type; + public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -460,7 +450,6 @@ public function setGroupBys($groupBys) { $this->groupBys = $groupBys; } - public function getGroupBys() { return $this->groupBys; @@ -469,7 +458,6 @@ public function setIncludeInviteData($includeInviteData) { $this->includeInviteData = $includeInviteData; } - public function getIncludeInviteData() { return $this->includeInviteData; @@ -478,7 +466,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -487,12 +474,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_DoubleClickBidManager_Query extends Google_Model @@ -511,11 +496,11 @@ class Google_Service_DoubleClickBidManager_Query extends Google_Model protected $scheduleDataType = ''; public $timezoneCode; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -524,7 +509,6 @@ public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $ { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -533,7 +517,6 @@ public function setParams(Google_Service_DoubleClickBidManager_Parameters $param { $this->params = $params; } - public function getParams() { return $this->params; @@ -542,7 +525,6 @@ public function setQueryId($queryId) { $this->queryId = $queryId; } - public function getQueryId() { return $this->queryId; @@ -551,7 +533,6 @@ public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; } - public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; @@ -560,7 +541,6 @@ public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; } - public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; @@ -569,7 +549,6 @@ public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $ { $this->schedule = $schedule; } - public function getSchedule() { return $this->schedule; @@ -578,12 +557,10 @@ public function setTimezoneCode($timezoneCode) { $this->timezoneCode = $timezoneCode; } - public function getTimezoneCode() { return $this->timezoneCode; } - } class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection @@ -602,11 +579,11 @@ class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collecti public $shareEmailAddress; public $title; + public function setDataRange($dataRange) { $this->dataRange = $dataRange; } - public function getDataRange() { return $this->dataRange; @@ -615,7 +592,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -624,7 +600,6 @@ public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePath { $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport; } - public function getGoogleCloudStoragePathForLatestReport() { return $this->googleCloudStoragePathForLatestReport; @@ -633,7 +608,6 @@ public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestRepor { $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport; } - public function getGoogleDrivePathForLatestReport() { return $this->googleDrivePathForLatestReport; @@ -642,7 +616,6 @@ public function setLatestReportRunTimeMs($latestReportRunTimeMs) { $this->latestReportRunTimeMs = $latestReportRunTimeMs; } - public function getLatestReportRunTimeMs() { return $this->latestReportRunTimeMs; @@ -651,7 +624,6 @@ public function setReportCount($reportCount) { $this->reportCount = $reportCount; } - public function getReportCount() { return $this->reportCount; @@ -660,7 +632,6 @@ public function setRunning($running) { $this->running = $running; } - public function getRunning() { return $this->running; @@ -669,7 +640,6 @@ public function setSendNotification($sendNotification) { $this->sendNotification = $sendNotification; } - public function getSendNotification() { return $this->sendNotification; @@ -678,7 +648,6 @@ public function setShareEmailAddress($shareEmailAddress) { $this->shareEmailAddress = $shareEmailAddress; } - public function getShareEmailAddress() { return $this->shareEmailAddress; @@ -687,12 +656,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model @@ -704,11 +671,11 @@ class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model public $nextRunMinuteOfDay; public $nextRunTimezoneCode; + public function setEndTimeMs($endTimeMs) { $this->endTimeMs = $endTimeMs; } - public function getEndTimeMs() { return $this->endTimeMs; @@ -717,7 +684,6 @@ public function setFrequency($frequency) { $this->frequency = $frequency; } - public function getFrequency() { return $this->frequency; @@ -726,7 +692,6 @@ public function setNextRunMinuteOfDay($nextRunMinuteOfDay) { $this->nextRunMinuteOfDay = $nextRunMinuteOfDay; } - public function getNextRunMinuteOfDay() { return $this->nextRunMinuteOfDay; @@ -735,12 +700,10 @@ public function setNextRunTimezoneCode($nextRunTimezoneCode) { $this->nextRunTimezoneCode = $nextRunTimezoneCode; } - public function getNextRunTimezoneCode() { return $this->nextRunTimezoneCode; } - } class Google_Service_DoubleClickBidManager_Report extends Google_Model @@ -754,11 +717,11 @@ class Google_Service_DoubleClickBidManager_Report extends Google_Model protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; protected $paramsDataType = ''; + public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -767,7 +730,6 @@ public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -776,12 +738,10 @@ public function setParams(Google_Service_DoubleClickBidManager_Parameters $param { $this->params = $params; } - public function getParams() { return $this->params; } - } class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model @@ -790,16 +750,15 @@ class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model ); public $errorCode; + public function setErrorCode($errorCode) { $this->errorCode = $errorCode; } - public function getErrorCode() { return $this->errorCode; } - } class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model @@ -809,11 +768,11 @@ class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model public $queryId; public $reportId; + public function setQueryId($queryId) { $this->queryId = $queryId; } - public function getQueryId() { return $this->queryId; @@ -822,12 +781,10 @@ public function setReportId($reportId) { $this->reportId = $reportId; } - public function getReportId() { return $this->reportId; } - } class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model @@ -840,11 +797,11 @@ class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus'; protected $statusDataType = ''; + public function setGoogleCloudStoragePath($googleCloudStoragePath) { $this->googleCloudStoragePath = $googleCloudStoragePath; } - public function getGoogleCloudStoragePath() { return $this->googleCloudStoragePath; @@ -853,7 +810,6 @@ public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; } - public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; @@ -862,7 +818,6 @@ public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; } - public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; @@ -871,12 +826,10 @@ public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $sta { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model @@ -889,11 +842,11 @@ class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model public $format; public $state; + public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure) { $this->failure = $failure; } - public function getFailure() { return $this->failure; @@ -902,7 +855,6 @@ public function setFinishTimeMs($finishTimeMs) { $this->finishTimeMs = $finishTimeMs; } - public function getFinishTimeMs() { return $this->finishTimeMs; @@ -911,7 +863,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -920,12 +871,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection @@ -940,11 +889,11 @@ class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection public $persisted; public $rowNumber; + public function setChanged($changed) { $this->changed = $changed; } - public function getChanged() { return $this->changed; @@ -953,7 +902,6 @@ public function setEntityId($entityId) { $this->entityId = $entityId; } - public function getEntityId() { return $this->entityId; @@ -962,7 +910,6 @@ public function setEntityName($entityName) { $this->entityName = $entityName; } - public function getEntityName() { return $this->entityName; @@ -971,7 +918,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -980,7 +926,6 @@ public function setPersisted($persisted) { $this->persisted = $persisted; } - public function getPersisted() { return $this->persisted; @@ -989,12 +934,10 @@ public function setRowNumber($rowNumber) { $this->rowNumber = $rowNumber; } - public function getRowNumber() { return $this->rowNumber; } - } class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model @@ -1006,11 +949,11 @@ class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model public $reportDataStartTimeMs; public $timezoneCode; + public function setDataRange($dataRange) { $this->dataRange = $dataRange; } - public function getDataRange() { return $this->dataRange; @@ -1019,7 +962,6 @@ public function setReportDataEndTimeMs($reportDataEndTimeMs) { $this->reportDataEndTimeMs = $reportDataEndTimeMs; } - public function getReportDataEndTimeMs() { return $this->reportDataEndTimeMs; @@ -1028,7 +970,6 @@ public function setReportDataStartTimeMs($reportDataStartTimeMs) { $this->reportDataStartTimeMs = $reportDataStartTimeMs; } - public function getReportDataStartTimeMs() { return $this->reportDataStartTimeMs; @@ -1037,12 +978,10 @@ public function setTimezoneCode($timezoneCode) { $this->timezoneCode = $timezoneCode; } - public function getTimezoneCode() { return $this->timezoneCode; } - } class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model @@ -1053,11 +992,11 @@ class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google public $format; public $lineItems; + public function setDryRun($dryRun) { $this->dryRun = $dryRun; } - public function getDryRun() { return $this->dryRun; @@ -1066,7 +1005,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -1075,12 +1013,10 @@ public function setLineItems($lineItems) { $this->lineItems = $lineItems; } - public function getLineItems() { return $this->lineItems; } - } class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model @@ -1090,16 +1026,15 @@ class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Googl protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus'; protected $uploadStatusDataType = ''; + public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus) { $this->uploadStatus = $uploadStatus; } - public function getUploadStatus() { return $this->uploadStatus; } - } class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection @@ -1111,11 +1046,11 @@ class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collectio protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; protected $rowStatusDataType = 'array'; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -1124,10 +1059,8 @@ public function setRowStatus($rowStatus) { $this->rowStatus = $rowStatus; } - public function getRowStatus() { return $this->rowStatus; } - } From d495aa5b42f2182fcc2c51442f488edb90c80e4f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:37 -0800 Subject: [PATCH 0472/1274] Updated Translate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Translate.php | 48 +++++++++++--------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index 723212de5..67d0ed256 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -19,8 +19,7 @@ * Service definition for Translate (v2). * *

- * Lets you translate text from one language to another - *

+ * Lets you translate text from one language to another

* *

* For more information about this service, see the API @@ -147,8 +146,7 @@ class Google_Service_Translate_Detections_Resource extends Google_Service_Resour /** * Detect the language of text. (detections.listDetections) * - * @param string $q - * The text to detect + * @param string $q The text to detect * @param array $optParams Optional parameters. * @return Google_Service_Translate_DetectionsListResponse */ @@ -177,8 +175,8 @@ class Google_Service_Translate_Languages_Resource extends Google_Service_Resourc * * @param array $optParams Optional parameters. * - * @opt_param string target - * the language and collation in which the localized results should be returned + * @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()) @@ -204,18 +202,14 @@ class Google_Service_Translate_Translations_Resource extends Google_Service_Reso * Returns text translations from one language to another. * (translations.listTranslations) * - * @param string $q - * The text to translate - * @param string $target - * The target language into which the text should be translated + * @param 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 + * @opt_param string source The source language of the text + * @opt_param string format The format of the text + * @opt_param string cid The customization id for translate * @return Google_Service_Translate_TranslationsListResponse */ public function listTranslations($q, $target, $optParams = array()) @@ -237,16 +231,15 @@ class Google_Service_Translate_DetectionsListResponse extends Google_Collection protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; protected $detectionsDataType = 'array'; + public function setDetections($detections) { $this->detections = $detections; } - public function getDetections() { return $this->detections; } - } class Google_Service_Translate_DetectionsResourceItems extends Google_Model @@ -257,11 +250,11 @@ class Google_Service_Translate_DetectionsResourceItems extends Google_Model public $isReliable; public $language; + public function setConfidence($confidence) { $this->confidence = $confidence; } - public function getConfidence() { return $this->confidence; @@ -270,7 +263,6 @@ public function setIsReliable($isReliable) { $this->isReliable = $isReliable; } - public function getIsReliable() { return $this->isReliable; @@ -279,12 +271,10 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; } - } class Google_Service_Translate_LanguagesListResponse extends Google_Collection @@ -295,16 +285,15 @@ class Google_Service_Translate_LanguagesListResponse extends Google_Collection protected $languagesType = 'Google_Service_Translate_LanguagesResource'; protected $languagesDataType = 'array'; + public function setLanguages($languages) { $this->languages = $languages; } - public function getLanguages() { return $this->languages; } - } class Google_Service_Translate_LanguagesResource extends Google_Model @@ -314,11 +303,11 @@ 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; @@ -327,12 +316,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Translate_TranslationsListResponse extends Google_Collection @@ -343,16 +330,15 @@ class Google_Service_Translate_TranslationsListResponse extends Google_Collectio protected $translationsType = 'Google_Service_Translate_TranslationsResource'; protected $translationsDataType = 'array'; + public function setTranslations($translations) { $this->translations = $translations; } - public function getTranslations() { return $this->translations; } - } class Google_Service_Translate_TranslationsResource extends Google_Model @@ -362,11 +348,11 @@ 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; @@ -375,10 +361,8 @@ public function setTranslatedText($translatedText) { $this->translatedText = $translatedText; } - public function getTranslatedText() { return $this->translatedText; } - } From d9ca5f33788e3bc0c159b2de7dce66b774b9548c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:38 -0800 Subject: [PATCH 0473/1274] Updated AdSense.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSense.php | 692 ++++++++++++--------------------- 1 file changed, 251 insertions(+), 441 deletions(-) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index 720952879..04b4d3668 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -19,8 +19,8 @@ * Service definition for AdSense (v1.4). * *

- * Gives AdSense publishers access to their inventory and the ability to generate reports - *

+ * Gives AdSense publishers access to their inventory and the ability to + * generate reports

* *

* For more information about this service, see the API @@ -32,9 +32,11 @@ class Google_Service_AdSense extends Google_Service { /** View and manage your AdSense data. */ - const ADSENSE = "https://www.googleapis.com/auth/adsense"; + const ADSENSE = + "https://www.googleapis.com/auth/adsense"; /** View your AdSense data. */ - const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly"; + const ADSENSE_READONLY = + "https://www.googleapis.com/auth/adsense.readonly"; public $accounts; public $accounts_adclients; @@ -1073,12 +1075,10 @@ 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 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. + * @opt_param bool tree Whether the tree of sub accounts should be returned. * @return Google_Service_AdSense_Account */ public function get($accountId, $optParams = array()) @@ -1087,16 +1087,17 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_Account"); } + /** * List all accounts available to this AdSense account. (accounts.listAccounts) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through accounts. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of accounts to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through + * accounts. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of accounts to include in the + * response, used for paging. * @return Google_Service_AdSense_Accounts */ public function listAccounts($optParams = array()) @@ -1122,15 +1123,14 @@ class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_R * List all ad clients in the specified account. * (adclients.listAccountsAdclients) * - * @param string $accountId - * Account for which to list ad clients. + * @param string $accountId Account for which to list ad clients. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of ad clients to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of ad clients to include in the + * response, used for paging. * @return Google_Service_AdSense_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -1155,12 +1155,9 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res * 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 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 */ @@ -1170,15 +1167,13 @@ public function get($accountId, $adClientId, $adUnitId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); } + /** * Get ad code for the specified ad unit. (adunits.getAdCode) * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. + * @param string $accountId Account which contains the ad client. + * @param string $adClientId Ad client with contains the ad unit. + * @param string $adUnitId Ad unit to get the code for. * @param array $optParams Optional parameters. * @return Google_Service_AdSense_AdCode */ @@ -1188,23 +1183,22 @@ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array $params = array_merge($params, $optParams); return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); } + /** * List all ad units in the specified ad client for the specified account. * (adunits.listAccountsAdunits) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list ad units. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client for which to list ad units. * @param array $optParams Optional parameters. * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. + * @opt_param bool includeInactive Whether to include inactive ad units. + * Default: true. + * @opt_param string pageToken A continuation token, used to page through ad + * units. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of ad units to include in the + * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) @@ -1230,19 +1224,16 @@ class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Goog * List all custom channels which the specified ad unit belongs to. * (customchannels.listAccountsAdunitsCustomchannels) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client which contains the ad unit. + * @param string $adUnitId Ad unit for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through custom + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of custom channels to include in + * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) @@ -1267,10 +1258,8 @@ class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Reso * Dismiss (delete) the specified alert from the specified publisher AdSense * account. (alerts.delete) * - * @param string $accountId - * Account which contains the ad unit. - * @param string $alertId - * Alert to delete. + * @param string $accountId Account which contains the ad unit. + * @param string $alertId Alert to delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $alertId, $optParams = array()) @@ -1279,18 +1268,17 @@ public function delete($accountId, $alertId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * List the alerts for the specified AdSense account. * (alerts.listAccountsAlerts) * - * @param string $accountId - * Account for which to retrieve the alerts. + * @param string $accountId Account for which to retrieve the alerts. * @param array $optParams Optional parameters. * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. + * @opt_param string locale The locale to use for translating alert messages. + * The account locale will be used if this is not supplied. The AdSense default + * (English) will be used if the supplied locale is invalid or unsupported. * @return Google_Service_AdSense_Alerts */ public function listAccountsAlerts($accountId, $optParams = array()) @@ -1315,12 +1303,9 @@ class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Serv * 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 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 */ @@ -1330,21 +1315,20 @@ public function get($accountId, $adClientId, $customChannelId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); } + /** * List all custom channels in the specified ad client for the specified * account. (customchannels.listAccountsCustomchannels) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list custom channels. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through custom + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of custom channels to include in + * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) @@ -1370,21 +1354,18 @@ class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Goog * List all ad units in the specified custom channel. * (adunits.listAccountsCustomchannelsAdunits) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. + * @param 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. + * @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()) @@ -1409,8 +1390,7 @@ class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Re * List the payments for the specified AdSense account. * (payments.listAccountsPayments) * - * @param string $accountId - * Account for which to retrieve the payments. + * @param string $accountId Account for which to retrieve the payments. * @param array $optParams Optional parameters. * @return Google_Service_AdSense_Payments */ @@ -1437,37 +1417,29 @@ class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Res * 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 string $accountId Account upon which to report. + * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" + * format, inclusive. + * @param string $endDate End of the date range to report on in "YYYY-MM-DD" + * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string currency - * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency - * if not set. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param bool useTimezoneReporting - * Whether the report should be generated in the AdSense account's local timezone. If false default - * PST/PDT timezone will be used. - * @opt_param string dimension - * Dimensions to base the report on. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param int maxResults The maximum number of rows of report data to + * return. + * @opt_param string filter Filters to be run on the report. + * @opt_param string currency Optional currency to use when reporting on + * monetary metrics. Defaults to the account's currency if not set. + * @opt_param int startIndex Index of the first row of report data to return. + * @opt_param bool useTimezoneReporting Whether the report should be generated + * in the AdSense account's local timezone. If false default PST/PDT timezone + * will be used. + * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -1493,19 +1465,15 @@ class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Servic * 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 string $accountId Account to which the saved reports belong. + * @param string $savedReportId The saved report to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param int startIndex Index of the first row of report data to return. + * @opt_param int maxResults The maximum number of rows of report data to + * return. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($accountId, $savedReportId, $optParams = array()) @@ -1514,19 +1482,19 @@ public function generate($accountId, $savedReportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); } + /** * List all saved reports in the specified AdSense account. * (saved.listAccountsReportsSaved) * - * @param string $accountId - * Account to which the saved reports belong. + * @param string $accountId Account to which the saved reports belong. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through saved + * reports. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of saved reports to include in + * the response, used for paging. * @return Google_Service_AdSense_SavedReports */ public function listAccountsReportsSaved($accountId, $optParams = array()) @@ -1550,10 +1518,8 @@ class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Servi /** * 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 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 */ @@ -1563,19 +1529,19 @@ public function get($accountId, $savedAdStyleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); } + /** * List all saved ad styles in the specified account. * (savedadstyles.listAccountsSavedadstyles) * - * @param string $accountId - * Account for which to list saved ad styles. + * @param string $accountId Account for which to list saved ad styles. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through saved ad styles. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved ad styles to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through saved + * ad styles. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of saved ad styles to include in + * the response, used for paging. * @return Google_Service_AdSense_SavedAdStyles */ public function listAccountsSavedadstyles($accountId, $optParams = array()) @@ -1600,17 +1566,15 @@ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service * List all URL channels in the specified ad client for the specified account. * (urlchannels.listAccountsUrlchannels) * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list URL channels. + * @param string $accountId Account to which the ad client belongs. + * @param string $adClientId Ad client for which to list URL channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through URL channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of URL channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through URL + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of URL channels to include in + * the response, used for paging. * @return Google_Service_AdSense_UrlChannels */ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) @@ -1637,11 +1601,11 @@ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of ad clients to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of ad clients to include in the + * response, used for paging. * @return Google_Service_AdSense_AdClients */ public function listAdclients($optParams = array()) @@ -1666,10 +1630,8 @@ 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 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 */ @@ -1679,13 +1641,12 @@ public function get($adClientId, $adUnitId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); } + /** * Get ad code for the specified ad unit. (adunits.getAdCode) * - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. + * @param string $adClientId Ad client with contains the ad unit. + * @param string $adUnitId Ad unit to get the code for. * @param array $optParams Optional parameters. * @return Google_Service_AdSense_AdCode */ @@ -1695,21 +1656,21 @@ public function getAdCode($adClientId, $adUnitId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); } + /** * List all ad units in the specified ad client for this AdSense account. * (adunits.listAdunits) * - * @param string $adClientId - * Ad client for which to list ad units. + * @param string $adClientId Ad client for which to list ad units. * @param array $optParams Optional parameters. * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. + * @opt_param bool includeInactive Whether to include inactive ad units. + * Default: true. + * @opt_param string pageToken A continuation token, used to page through ad + * units. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of ad units to include in the + * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listAdunits($adClientId, $optParams = array()) @@ -1735,17 +1696,15 @@ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Servi * List all custom channels which the specified ad unit belongs to. * (customchannels.listAdunitsCustomchannels) * - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. + * @param string $adClientId Ad client which contains the ad unit. + * @param string $adUnitId Ad unit for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through custom + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of custom channels to include in + * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) @@ -1771,8 +1730,7 @@ class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource * Dismiss (delete) the specified alert from the publisher's AdSense account. * (alerts.delete) * - * @param string $alertId - * Alert to delete. + * @param string $alertId Alert to delete. * @param array $optParams Optional parameters. */ public function delete($alertId, $optParams = array()) @@ -1781,15 +1739,15 @@ public function delete($alertId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * List the alerts for this AdSense account. (alerts.listAlerts) * * @param array $optParams Optional parameters. * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. + * @opt_param string locale The locale to use for translating alert messages. + * The account locale will be used if this is not supplied. The AdSense default + * (English) will be used if the supplied locale is invalid or unsupported. * @return Google_Service_AdSense_Alerts */ public function listAlerts($optParams = array()) @@ -1815,10 +1773,8 @@ class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Reso * 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 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 */ @@ -1828,19 +1784,19 @@ public function get($adClientId, $customChannelId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); } + /** * List all custom channels in the specified ad client for this AdSense account. * (customchannels.listCustomchannels) * - * @param string $adClientId - * Ad client for which to list custom channels. + * @param string $adClientId Ad client for which to list custom channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through custom channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through custom + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of custom channels to include in + * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listCustomchannels($adClientId, $optParams = array()) @@ -1866,19 +1822,17 @@ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Servi * List all ad units in the specified custom channel. * (adunits.listCustomchannelsAdunits) * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. + * @param string $adClientId Ad client which contains the custom channel. + * @param string $customChannelId Custom channel for which to list ad units. * @param array $optParams Optional parameters. * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. + * @opt_param bool includeInactive Whether to include inactive ad units. + * Default: true. + * @opt_param string pageToken A continuation token, used to page through ad + * units. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of ad units to include in the + * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) @@ -1899,7 +1853,6 @@ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optPar */ class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource { - } /** @@ -1994,37 +1947,29 @@ class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource * 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 string $startDate Start of the date range to report on in "YYYY-MM-DD" + * format, inclusive. + * @param string $endDate End of the date range to report on in "YYYY-MM-DD" + * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string currency - * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency - * if not set. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param bool useTimezoneReporting - * Whether the report should be generated in the AdSense account's local timezone. If false default - * PST/PDT timezone will be used. - * @opt_param string dimension - * Dimensions to base the report on. - * @opt_param string accountId - * Accounts upon which to report. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param int maxResults The maximum number of rows of report data to + * return. + * @opt_param string filter Filters to be run on the report. + * @opt_param string currency Optional currency to use when reporting on + * monetary metrics. Defaults to the account's currency if not set. + * @opt_param int startIndex Index of the first row of report data to return. + * @opt_param bool useTimezoneReporting Whether the report should be generated + * in the AdSense account's local timezone. If false default PST/PDT timezone + * will be used. + * @opt_param string dimension Dimensions to base the report on. + * @opt_param string accountId Accounts upon which to report. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($startDate, $endDate, $optParams = array()) @@ -2050,17 +1995,14 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour * 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 string $savedReportId The saved report to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. + * @opt_param string locale Optional locale to use for translating report output + * to a local language. Defaults to "en_US" if not specified. + * @opt_param int startIndex Index of the first row of report data to return. + * @opt_param int maxResults The maximum number of rows of report data to + * return. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($savedReportId, $optParams = array()) @@ -2069,16 +2011,17 @@ public function generate($savedReportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); } + /** * List all saved reports in this AdSense account. (saved.listReportsSaved) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through saved + * reports. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of saved reports to include in + * the response, used for paging. * @return Google_Service_AdSense_SavedReports */ public function listReportsSaved($optParams = array()) @@ -2103,8 +2046,7 @@ class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resou /** * Get a specific saved ad style from the user's account. (savedadstyles.get) * - * @param string $savedAdStyleId - * Saved ad style to retrieve. + * @param string $savedAdStyleId Saved ad style to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_AdSense_SavedAdStyle */ @@ -2114,17 +2056,18 @@ public function get($savedAdStyleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); } + /** * List all saved ad styles in the user's account. * (savedadstyles.listSavedadstyles) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through saved ad styles. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved ad styles to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through saved + * ad styles. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of saved ad styles to include in + * the response, used for paging. * @return Google_Service_AdSense_SavedAdStyles */ public function listSavedadstyles($optParams = array()) @@ -2150,15 +2093,14 @@ class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resourc * List all URL channels in the specified ad client for this AdSense account. * (urlchannels.listUrlchannels) * - * @param string $adClientId - * Ad client for which to list URL channels. + * @param string $adClientId Ad client for which to list URL channels. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through URL channels. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of URL channels to include in the response, used for paging. + * @opt_param string pageToken A continuation token, used to page through URL + * channels. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. + * @opt_param int maxResults The maximum number of URL channels to include in + * the response, used for paging. * @return Google_Service_AdSense_UrlChannels */ public function listUrlchannels($adClientId, $optParams = array()) @@ -2185,11 +2127,11 @@ class Google_Service_AdSense_Account extends Google_Collection protected $subAccountsDataType = 'array'; public $timezone; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2198,7 +2140,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2207,7 +2148,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2216,7 +2156,6 @@ public function setPremium($premium) { $this->premium = $premium; } - public function getPremium() { return $this->premium; @@ -2225,7 +2164,6 @@ public function setSubAccounts($subAccounts) { $this->subAccounts = $subAccounts; } - public function getSubAccounts() { return $this->subAccounts; @@ -2234,12 +2172,10 @@ public function setTimezone($timezone) { $this->timezone = $timezone; } - public function getTimezone() { return $this->timezone; } - } class Google_Service_AdSense_Accounts extends Google_Collection @@ -2253,11 +2189,11 @@ class Google_Service_AdSense_Accounts extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2266,7 +2202,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2275,7 +2210,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2284,12 +2218,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_AdClient extends Google_Model @@ -2303,11 +2235,11 @@ class Google_Service_AdSense_AdClient extends Google_Model public $productCode; public $supportsReporting; + public function setArcOptIn($arcOptIn) { $this->arcOptIn = $arcOptIn; } - public function getArcOptIn() { return $this->arcOptIn; @@ -2316,7 +2248,6 @@ public function setArcReviewMode($arcReviewMode) { $this->arcReviewMode = $arcReviewMode; } - public function getArcReviewMode() { return $this->arcReviewMode; @@ -2325,7 +2256,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2334,7 +2264,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2343,7 +2272,6 @@ public function setProductCode($productCode) { $this->productCode = $productCode; } - public function getProductCode() { return $this->productCode; @@ -2352,12 +2280,10 @@ public function setSupportsReporting($supportsReporting) { $this->supportsReporting = $supportsReporting; } - public function getSupportsReporting() { return $this->supportsReporting; } - } class Google_Service_AdSense_AdClients extends Google_Collection @@ -2371,11 +2297,11 @@ class Google_Service_AdSense_AdClients extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2384,7 +2310,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2393,7 +2318,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2402,12 +2326,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_AdCode extends Google_Model @@ -2417,11 +2339,11 @@ class Google_Service_AdSense_AdCode extends Google_Model public $adCode; public $kind; + public function setAdCode($adCode) { $this->adCode = $adCode; } - public function getAdCode() { return $this->adCode; @@ -2430,12 +2352,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSense_AdStyle extends Google_Model @@ -2449,11 +2369,11 @@ class Google_Service_AdSense_AdStyle extends Google_Model protected $fontDataType = ''; public $kind; + public function setColors(Google_Service_AdSense_AdStyleColors $colors) { $this->colors = $colors; } - public function getColors() { return $this->colors; @@ -2462,7 +2382,6 @@ public function setCorners($corners) { $this->corners = $corners; } - public function getCorners() { return $this->corners; @@ -2471,7 +2390,6 @@ public function setFont(Google_Service_AdSense_AdStyleFont $font) { $this->font = $font; } - public function getFont() { return $this->font; @@ -2480,12 +2398,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSense_AdStyleColors extends Google_Model @@ -2498,11 +2414,11 @@ class Google_Service_AdSense_AdStyleColors extends Google_Model public $title; public $url; + public function setBackground($background) { $this->background = $background; } - public function getBackground() { return $this->background; @@ -2511,7 +2427,6 @@ public function setBorder($border) { $this->border = $border; } - public function getBorder() { return $this->border; @@ -2520,7 +2435,6 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; @@ -2529,7 +2443,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2538,12 +2451,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AdSense_AdStyleFont extends Google_Model @@ -2553,11 +2464,11 @@ 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; @@ -2566,12 +2477,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_AdSense_AdUnit extends Google_Model @@ -2593,11 +2502,11 @@ class Google_Service_AdSense_AdUnit extends Google_Model public $savedStyleId; public $status; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -2606,7 +2515,6 @@ public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSet { $this->contentAdsSettings = $contentAdsSettings; } - public function getContentAdsSettings() { return $this->contentAdsSettings; @@ -2615,7 +2523,6 @@ public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle) { $this->customStyle = $customStyle; } - public function getCustomStyle() { return $this->customStyle; @@ -2624,7 +2531,6 @@ public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings { $this->feedAdsSettings = $feedAdsSettings; } - public function getFeedAdsSettings() { return $this->feedAdsSettings; @@ -2633,7 +2539,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2642,7 +2547,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2651,7 +2555,6 @@ public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileC { $this->mobileContentAdsSettings = $mobileContentAdsSettings; } - public function getMobileContentAdsSettings() { return $this->mobileContentAdsSettings; @@ -2660,7 +2563,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2669,7 +2571,6 @@ public function setSavedStyleId($savedStyleId) { $this->savedStyleId = $savedStyleId; } - public function getSavedStyleId() { return $this->savedStyleId; @@ -2678,12 +2579,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model @@ -2695,11 +2594,11 @@ class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model public $size; public $type; + public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption) { $this->backupOption = $backupOption; } - public function getBackupOption() { return $this->backupOption; @@ -2708,7 +2607,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -2717,12 +2615,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model @@ -2733,11 +2629,11 @@ class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google public $type; public $url; + public function setColor($color) { $this->color = $color; } - public function getColor() { return $this->color; @@ -2746,7 +2642,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -2755,12 +2650,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model @@ -2772,11 +2665,11 @@ class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model public $minimumWordCount; public $type; + public function setAdPosition($adPosition) { $this->adPosition = $adPosition; } - public function getAdPosition() { return $this->adPosition; @@ -2785,7 +2678,6 @@ public function setFrequency($frequency) { $this->frequency = $frequency; } - public function getFrequency() { return $this->frequency; @@ -2794,7 +2686,6 @@ public function setMinimumWordCount($minimumWordCount) { $this->minimumWordCount = $minimumWordCount; } - public function getMinimumWordCount() { return $this->minimumWordCount; @@ -2803,12 +2694,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model @@ -2820,11 +2709,11 @@ class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model public $size; public $type; + public function setMarkupLanguage($markupLanguage) { $this->markupLanguage = $markupLanguage; } - public function getMarkupLanguage() { return $this->markupLanguage; @@ -2833,7 +2722,6 @@ public function setScriptingLanguage($scriptingLanguage) { $this->scriptingLanguage = $scriptingLanguage; } - public function getScriptingLanguage() { return $this->scriptingLanguage; @@ -2842,7 +2730,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -2851,12 +2738,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSense_AdUnits extends Google_Collection @@ -2870,11 +2755,11 @@ class Google_Service_AdSense_AdUnits extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2883,7 +2768,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2892,7 +2776,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2901,12 +2784,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection @@ -2925,11 +2806,11 @@ class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Colle public $totals; public $warnings; + public function setAverages($averages) { $this->averages = $averages; } - public function getAverages() { return $this->averages; @@ -2938,7 +2819,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -2947,7 +2827,6 @@ public function setHeaders($headers) { $this->headers = $headers; } - public function getHeaders() { return $this->headers; @@ -2956,7 +2835,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2965,7 +2843,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -2974,7 +2851,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -2983,7 +2859,6 @@ public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; } - public function getTotalMatchedRows() { return $this->totalMatchedRows; @@ -2992,7 +2867,6 @@ public function setTotals($totals) { $this->totals = $totals; } - public function getTotals() { return $this->totals; @@ -3001,12 +2875,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model @@ -3017,11 +2889,11 @@ class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Googl public $name; public $type; + public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -3030,7 +2902,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3039,12 +2910,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSense_Alert extends Google_Model @@ -3058,11 +2927,11 @@ class Google_Service_AdSense_Alert extends Google_Model public $severity; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3071,7 +2940,6 @@ public function setIsDismissible($isDismissible) { $this->isDismissible = $isDismissible; } - public function getIsDismissible() { return $this->isDismissible; @@ -3080,7 +2948,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3089,7 +2956,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -3098,7 +2964,6 @@ public function setSeverity($severity) { $this->severity = $severity; } - public function getSeverity() { return $this->severity; @@ -3107,12 +2972,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdSense_Alerts extends Google_Collection @@ -3124,11 +2987,11 @@ class Google_Service_AdSense_Alerts extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3137,12 +3000,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSense_CustomChannel extends Google_Model @@ -3156,11 +3017,11 @@ class Google_Service_AdSense_CustomChannel extends Google_Model protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo'; protected $targetingInfoDataType = ''; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -3169,7 +3030,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3178,7 +3038,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3187,7 +3046,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3196,12 +3054,10 @@ public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingIn { $this->targetingInfo = $targetingInfo; } - public function getTargetingInfo() { return $this->targetingInfo; } - } class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model @@ -3213,11 +3069,11 @@ class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model public $location; public $siteLanguage; + public function setAdsAppearOn($adsAppearOn) { $this->adsAppearOn = $adsAppearOn; } - public function getAdsAppearOn() { return $this->adsAppearOn; @@ -3226,7 +3082,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3235,7 +3090,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -3244,12 +3098,10 @@ public function setSiteLanguage($siteLanguage) { $this->siteLanguage = $siteLanguage; } - public function getSiteLanguage() { return $this->siteLanguage; } - } class Google_Service_AdSense_CustomChannels extends Google_Collection @@ -3263,11 +3115,11 @@ class Google_Service_AdSense_CustomChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3276,7 +3128,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3285,7 +3136,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3294,12 +3144,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_Metadata extends Google_Collection @@ -3311,11 +3159,11 @@ class Google_Service_AdSense_Metadata extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3324,12 +3172,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSense_Payment extends Google_Model @@ -3342,11 +3188,11 @@ class Google_Service_AdSense_Payment extends Google_Model public $paymentAmountCurrencyCode; public $paymentDate; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3355,7 +3201,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3364,7 +3209,6 @@ public function setPaymentAmount($paymentAmount) { $this->paymentAmount = $paymentAmount; } - public function getPaymentAmount() { return $this->paymentAmount; @@ -3373,7 +3217,6 @@ public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode) { $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode; } - public function getPaymentAmountCurrencyCode() { return $this->paymentAmountCurrencyCode; @@ -3382,12 +3225,10 @@ public function setPaymentDate($paymentDate) { $this->paymentDate = $paymentDate; } - public function getPaymentDate() { return $this->paymentDate; } - } class Google_Service_AdSense_Payments extends Google_Collection @@ -3399,11 +3240,11 @@ class Google_Service_AdSense_Payments extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3412,12 +3253,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection @@ -3433,11 +3272,11 @@ class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection public $requiredMetrics; public $supportedProducts; + public function setCompatibleDimensions($compatibleDimensions) { $this->compatibleDimensions = $compatibleDimensions; } - public function getCompatibleDimensions() { return $this->compatibleDimensions; @@ -3446,7 +3285,6 @@ public function setCompatibleMetrics($compatibleMetrics) { $this->compatibleMetrics = $compatibleMetrics; } - public function getCompatibleMetrics() { return $this->compatibleMetrics; @@ -3455,7 +3293,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3464,7 +3301,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3473,7 +3309,6 @@ public function setRequiredDimensions($requiredDimensions) { $this->requiredDimensions = $requiredDimensions; } - public function getRequiredDimensions() { return $this->requiredDimensions; @@ -3482,7 +3317,6 @@ public function setRequiredMetrics($requiredMetrics) { $this->requiredMetrics = $requiredMetrics; } - public function getRequiredMetrics() { return $this->requiredMetrics; @@ -3491,12 +3325,10 @@ public function setSupportedProducts($supportedProducts) { $this->supportedProducts = $supportedProducts; } - public function getSupportedProducts() { return $this->supportedProducts; } - } class Google_Service_AdSense_SavedAdStyle extends Google_Model @@ -3509,11 +3341,11 @@ class Google_Service_AdSense_SavedAdStyle extends Google_Model public $kind; public $name; + public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle) { $this->adStyle = $adStyle; } - public function getAdStyle() { return $this->adStyle; @@ -3522,7 +3354,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3531,7 +3362,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3540,12 +3370,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_AdSense_SavedAdStyles extends Google_Collection @@ -3559,11 +3387,11 @@ class Google_Service_AdSense_SavedAdStyles extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3572,7 +3400,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3581,7 +3408,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3590,12 +3416,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_SavedReport extends Google_Model @@ -3606,11 +3430,11 @@ class Google_Service_AdSense_SavedReport extends Google_Model public $kind; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3619,7 +3443,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3628,12 +3451,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_AdSense_SavedReports extends Google_Collection @@ -3647,11 +3468,11 @@ class Google_Service_AdSense_SavedReports extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3660,7 +3481,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3669,7 +3489,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3678,12 +3497,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdSense_UrlChannel extends Google_Model @@ -3694,11 +3511,11 @@ class Google_Service_AdSense_UrlChannel extends Google_Model public $kind; public $urlPattern; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3707,7 +3524,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3716,12 +3532,10 @@ public function setUrlPattern($urlPattern) { $this->urlPattern = $urlPattern; } - public function getUrlPattern() { return $this->urlPattern; } - } class Google_Service_AdSense_UrlChannels extends Google_Collection @@ -3735,11 +3549,11 @@ class Google_Service_AdSense_UrlChannels extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3748,7 +3562,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3757,7 +3570,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3766,10 +3578,8 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } From e8165d840e1fda65374c83109af4ffb16065c382 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:38 -0800 Subject: [PATCH 0474/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 391 +++++++--------------------- 1 file changed, 93 insertions(+), 298 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 2750a9461..0e7325d3f 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -19,8 +19,7 @@ * Service definition for Dfareporting (v1.3). * *

- * Lets you create, run and download reports. - *

+ * Lets you create, run and download reports.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_Dfareporting extends Google_Service { /** View and manage DoubleClick for Advertisers reports. */ - const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting"; + const DFAREPORTING = + "https://www.googleapis.com/auth/dfareporting"; public $dimensionValues; public $files; @@ -390,15 +390,13 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic * Retrieves list of report dimension values for a list of filters. * (dimensionValues.query) * - * @param string $profileId - * The DFA user profile ID. + * @param string $profileId The DFA user profile ID. * @param Google_DimensionValueRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param int maxResults - * Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. * @return Google_Service_Dfareporting_DimensionValueList */ public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) @@ -423,10 +421,8 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource /** * Retrieves a report file by its report ID and file ID. (files.get) * - * @param string $reportId - * The ID of the report. - * @param string $fileId - * The ID of the report file. + * @param 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 */ @@ -436,23 +432,20 @@ public function get($reportId, $fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); } + /** * Lists files for a user profile. (files.listFiles) * - * @param string $profileId - * The DFA profile ID. + * @param string $profileId The DFA profile ID. * @param array $optParams Optional parameters. * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope - * The scope that defines which results are returned, default is 'MINE'. + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. * @return Google_Service_Dfareporting_FileList */ public function listFiles($profileId, $optParams = array()) @@ -477,10 +470,8 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour /** * 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 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()) @@ -489,13 +480,12 @@ public function delete($profileId, $reportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a report by its ID. (reports.get) * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. + * @param 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 */ @@ -505,11 +495,11 @@ public function get($profileId, $reportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); } + /** * Creates a report. (reports.insert) * - * @param string $profileId - * The DFA user profile ID. + * @param string $profileId The DFA user profile ID. * @param Google_Report $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dfareporting_Report @@ -520,23 +510,20 @@ public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); } + /** * Retrieves list of reports. (reports.listReports) * - * @param string $profileId - * The DFA user profile ID. + * @param string $profileId The DFA user profile ID. * @param array $optParams Optional parameters. * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope - * The scope that defines which results are returned, default is 'MINE'. + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. * @return Google_Service_Dfareporting_ReportList */ public function listReports($profileId, $optParams = array()) @@ -545,13 +532,12 @@ public function listReports($profileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); } + /** * Updates a report. This method supports patch semantics. (reports.patch) * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. + * @param 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 @@ -562,17 +548,16 @@ public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); } + /** * Runs a report. (reports.run) * - * @param string $profileId - * The DFA profile ID. - * @param string $reportId - * The ID of the report. + * @param 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. + * @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()) @@ -581,13 +566,12 @@ public function run($profileId, $reportId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); } + /** * Updates a report. (reports.update) * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. + * @param 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 @@ -616,8 +600,7 @@ class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Googl * sections of a report criteria, given the fields already selected in the input * report and user permissions. (compatibleFields.query) * - * @param string $profileId - * The DFA user profile ID. + * @param string $profileId The DFA user profile ID. * @param Google_Report $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dfareporting_CompatibleFields @@ -643,12 +626,9 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R /** * 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 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 */ @@ -658,23 +638,19 @@ public function get($profileId, $reportId, $fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); } + /** * Lists files for a report. (files.listReportsFiles) * - * @param string $profileId - * The DFA profile ID. - * @param string $reportId - * The ID of the parent report. + * @param string $profileId The DFA profile ID. + * @param string $reportId The ID of the parent report. * @param array $optParams Optional parameters. * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. * @return Google_Service_Dfareporting_FileList */ public function listReportsFiles($profileId, $reportId, $optParams = array()) @@ -699,8 +675,7 @@ class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_R /** * Gets one user profile by ID. (userProfiles.get) * - * @param string $profileId - * The user profile ID. + * @param string $profileId The user profile ID. * @param array $optParams Optional parameters. * @return Google_Service_Dfareporting_UserProfile */ @@ -710,6 +685,7 @@ public function get($profileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); } + /** * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) * @@ -737,11 +713,11 @@ class Google_Service_Dfareporting_Activities extends Google_Collection public $kind; public $metricNames; + public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -750,7 +726,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -759,12 +734,10 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; } - } class Google_Service_Dfareporting_CompatibleFields extends Google_Model @@ -783,11 +756,11 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; protected $reportCompatibleFieldsDataType = ''; + public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) { $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; } - public function getCrossDimensionReachReportCompatibleFields() { return $this->crossDimensionReachReportCompatibleFields; @@ -796,7 +769,6 @@ public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_ { $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; } - public function getFloodlightReportCompatibleFields() { return $this->floodlightReportCompatibleFields; @@ -805,7 +777,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -814,7 +785,6 @@ public function setPathToConversionReportCompatibleFields(Google_Service_Dfarepo { $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; } - public function getPathToConversionReportCompatibleFields() { return $this->pathToConversionReportCompatibleFields; @@ -823,7 +793,6 @@ public function setReachReportCompatibleFields(Google_Service_Dfareporting_Reach { $this->reachReportCompatibleFields = $reachReportCompatibleFields; } - public function getReachReportCompatibleFields() { return $this->reachReportCompatibleFields; @@ -832,12 +801,10 @@ public function setReportCompatibleFields(Google_Service_Dfareporting_ReportComp { $this->reportCompatibleFields = $reportCompatibleFields; } - public function getReportCompatibleFields() { return $this->reportCompatibleFields; } - } class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection @@ -855,11 +822,11 @@ class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields exte protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; protected $overlapMetricsDataType = 'array'; + public function setBreakdown($breakdown) { $this->breakdown = $breakdown; } - public function getBreakdown() { return $this->breakdown; @@ -868,7 +835,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -877,7 +843,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -886,7 +851,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -895,12 +859,10 @@ public function setOverlapMetrics($overlapMetrics) { $this->overlapMetrics = $overlapMetrics; } - public function getOverlapMetrics() { return $this->overlapMetrics; } - } class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection @@ -912,11 +874,11 @@ class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collectio protected $filteredEventIdsDataType = 'array'; public $kind; + public function setFilteredEventIds($filteredEventIds) { $this->filteredEventIds = $filteredEventIds; } - public function getFilteredEventIds() { return $this->filteredEventIds; @@ -925,12 +887,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Dfareporting_DateRange extends Google_Model @@ -942,11 +902,11 @@ class Google_Service_Dfareporting_DateRange extends Google_Model public $relativeDateRange; public $startDate; + public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -955,7 +915,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -964,7 +923,6 @@ public function setRelativeDateRange($relativeDateRange) { $this->relativeDateRange = $relativeDateRange; } - public function getRelativeDateRange() { return $this->relativeDateRange; @@ -973,12 +931,10 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; } - } class Google_Service_Dfareporting_DfareportingFile extends Google_Model @@ -998,11 +954,11 @@ class Google_Service_Dfareporting_DfareportingFile extends Google_Model protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; protected $urlsDataType = ''; + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -1011,7 +967,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1020,7 +975,6 @@ public function setFileName($fileName) { $this->fileName = $fileName; } - public function getFileName() { return $this->fileName; @@ -1029,7 +983,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -1038,7 +991,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1047,7 +999,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1056,7 +1007,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -1065,7 +1015,6 @@ public function setReportId($reportId) { $this->reportId = $reportId; } - public function getReportId() { return $this->reportId; @@ -1074,7 +1023,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1083,12 +1031,10 @@ 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 @@ -1098,11 +1044,11 @@ 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; @@ -1111,12 +1057,10 @@ public function setBrowserUrl($browserUrl) { $this->browserUrl = $browserUrl; } - public function getBrowserUrl() { return $this->browserUrl; } - } class Google_Service_Dfareporting_Dimension extends Google_Model @@ -1126,11 +1070,11 @@ class Google_Service_Dfareporting_Dimension extends Google_Model public $kind; public $name; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1139,12 +1083,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Dfareporting_DimensionFilter extends Google_Model @@ -1155,11 +1097,11 @@ class Google_Service_Dfareporting_DimensionFilter extends Google_Model public $kind; public $value; + public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } - public function getDimensionName() { return $this->dimensionName; @@ -1168,7 +1110,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1177,12 +1118,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Dfareporting_DimensionValue extends Google_Model @@ -1196,11 +1135,11 @@ class Google_Service_Dfareporting_DimensionValue extends Google_Model public $matchType; public $value; + public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } - public function getDimensionName() { return $this->dimensionName; @@ -1209,7 +1148,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1218,7 +1156,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1227,7 +1164,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1236,7 +1172,6 @@ public function setMatchType($matchType) { $this->matchType = $matchType; } - public function getMatchType() { return $this->matchType; @@ -1245,12 +1180,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Dfareporting_DimensionValueList extends Google_Collection @@ -1264,11 +1197,11 @@ class Google_Service_Dfareporting_DimensionValueList extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1277,7 +1210,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1286,7 +1218,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1295,12 +1226,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection @@ -1315,11 +1244,11 @@ class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collectio public $kind; public $startDate; + public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } - public function getDimensionName() { return $this->dimensionName; @@ -1328,7 +1257,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -1337,7 +1265,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -1346,7 +1273,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1355,12 +1281,10 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; } - } class Google_Service_Dfareporting_FileList extends Google_Collection @@ -1374,11 +1298,11 @@ class Google_Service_Dfareporting_FileList extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1387,7 +1311,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1396,7 +1319,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1405,12 +1327,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection @@ -1426,11 +1346,11 @@ class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Googl protected $metricsType = 'Google_Service_Dfareporting_Metric'; protected $metricsDataType = 'array'; + public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -1439,7 +1359,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -1448,7 +1367,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1457,12 +1375,10 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; } - } class Google_Service_Dfareporting_Metric extends Google_Model @@ -1472,11 +1388,11 @@ class Google_Service_Dfareporting_Metric extends Google_Model public $kind; public $name; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1485,12 +1401,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection @@ -1508,11 +1422,11 @@ class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; protected $perInteractionDimensionsDataType = 'array'; + public function setConversionDimensions($conversionDimensions) { $this->conversionDimensions = $conversionDimensions; } - public function getConversionDimensions() { return $this->conversionDimensions; @@ -1521,7 +1435,6 @@ public function setCustomFloodlightVariables($customFloodlightVariables) { $this->customFloodlightVariables = $customFloodlightVariables; } - public function getCustomFloodlightVariables() { return $this->customFloodlightVariables; @@ -1530,7 +1443,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1539,7 +1451,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -1548,12 +1459,10 @@ public function setPerInteractionDimensions($perInteractionDimensions) { $this->perInteractionDimensions = $perInteractionDimensions; } - public function getPerInteractionDimensions() { return $this->perInteractionDimensions; } - } class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection @@ -1573,11 +1482,11 @@ class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Col protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; protected $reachByFrequencyMetricsDataType = 'array'; + public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -1586,7 +1495,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -1595,7 +1503,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1604,7 +1511,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -1613,7 +1519,6 @@ public function setPivotedActivityMetrics($pivotedActivityMetrics) { $this->pivotedActivityMetrics = $pivotedActivityMetrics; } - public function getPivotedActivityMetrics() { return $this->pivotedActivityMetrics; @@ -1622,12 +1527,10 @@ public function setReachByFrequencyMetrics($reachByFrequencyMetrics) { $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; } - public function getReachByFrequencyMetrics() { return $this->reachByFrequencyMetrics; } - } class Google_Service_Dfareporting_Recipient extends Google_Model @@ -1638,11 +1541,11 @@ class Google_Service_Dfareporting_Recipient extends Google_Model public $email; public $kind; + public function setDeliveryType($deliveryType) { $this->deliveryType = $deliveryType; } - public function getDeliveryType() { return $this->deliveryType; @@ -1651,7 +1554,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1660,12 +1562,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Dfareporting_Report extends Google_Model @@ -1700,11 +1600,11 @@ class Google_Service_Dfareporting_Report extends Google_Model public $subAccountId; public $type; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1713,7 +1613,6 @@ public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrp { $this->activeGrpCriteria = $activeGrpCriteria; } - public function getActiveGrpCriteria() { return $this->activeGrpCriteria; @@ -1722,7 +1621,6 @@ public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria { $this->criteria = $criteria; } - public function getCriteria() { return $this->criteria; @@ -1731,7 +1629,6 @@ public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_Repor { $this->crossDimensionReachCriteria = $crossDimensionReachCriteria; } - public function getCrossDimensionReachCriteria() { return $this->crossDimensionReachCriteria; @@ -1740,7 +1637,6 @@ public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery { $this->delivery = $delivery; } - public function getDelivery() { return $this->delivery; @@ -1749,7 +1645,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1758,7 +1653,6 @@ public function setFileName($fileName) { $this->fileName = $fileName; } - public function getFileName() { return $this->fileName; @@ -1767,7 +1661,6 @@ public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlig { $this->floodlightCriteria = $floodlightCriteria; } - public function getFloodlightCriteria() { return $this->floodlightCriteria; @@ -1776,7 +1669,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -1785,7 +1677,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1794,7 +1685,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1803,7 +1693,6 @@ public function setLastModifiedTime($lastModifiedTime) { $this->lastModifiedTime = $lastModifiedTime; } - public function getLastModifiedTime() { return $this->lastModifiedTime; @@ -1812,7 +1701,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1821,7 +1709,6 @@ public function setOwnerProfileId($ownerProfileId) { $this->ownerProfileId = $ownerProfileId; } - public function getOwnerProfileId() { return $this->ownerProfileId; @@ -1830,7 +1717,6 @@ public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPa { $this->pathToConversionCriteria = $pathToConversionCriteria; } - public function getPathToConversionCriteria() { return $this->pathToConversionCriteria; @@ -1839,7 +1725,6 @@ public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria { $this->reachCriteria = $reachCriteria; } - public function getReachCriteria() { return $this->reachCriteria; @@ -1848,7 +1733,6 @@ public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule { $this->schedule = $schedule; } - public function getSchedule() { return $this->schedule; @@ -1857,7 +1741,6 @@ public function setSubAccountId($subAccountId) { $this->subAccountId = $subAccountId; } - public function getSubAccountId() { return $this->subAccountId; @@ -1866,12 +1749,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection @@ -1887,11 +1768,11 @@ class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collect protected $dimensionsDataType = 'array'; public $metricNames; + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -1900,7 +1781,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -1909,7 +1789,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -1918,12 +1797,10 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; } - } class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection @@ -1941,11 +1818,11 @@ class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collecti protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; protected $pivotedActivityMetricsDataType = 'array'; + public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -1954,7 +1831,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -1963,7 +1839,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1972,7 +1847,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -1981,12 +1855,10 @@ public function setPivotedActivityMetrics($pivotedActivityMetrics) { $this->pivotedActivityMetrics = $pivotedActivityMetrics; } - public function getPivotedActivityMetrics() { return $this->pivotedActivityMetrics; } - } class Google_Service_Dfareporting_ReportCriteria extends Google_Collection @@ -2006,11 +1878,11 @@ class Google_Service_Dfareporting_ReportCriteria extends Google_Collection protected $dimensionsDataType = 'array'; public $metricNames; + public function setActivities(Google_Service_Dfareporting_Activities $activities) { $this->activities = $activities; } - public function getActivities() { return $this->activities; @@ -2019,7 +1891,6 @@ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichM { $this->customRichMediaEvents = $customRichMediaEvents; } - public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; @@ -2028,7 +1899,6 @@ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -2037,7 +1907,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -2046,7 +1915,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -2055,12 +1923,10 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; } - } class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection @@ -2079,11 +1945,11 @@ class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Goog public $overlapMetricNames; public $pivoted; + public function setBreakdown($breakdown) { $this->breakdown = $breakdown; } - public function getBreakdown() { return $this->breakdown; @@ -2092,7 +1958,6 @@ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -2101,7 +1966,6 @@ public function setDimension($dimension) { $this->dimension = $dimension; } - public function getDimension() { return $this->dimension; @@ -2110,7 +1974,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -2119,7 +1982,6 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; @@ -2128,7 +1990,6 @@ public function setOverlapMetricNames($overlapMetricNames) { $this->overlapMetricNames = $overlapMetricNames; } - public function getOverlapMetricNames() { return $this->overlapMetricNames; @@ -2137,12 +1998,10 @@ public function setPivoted($pivoted) { $this->pivoted = $pivoted; } - public function getPivoted() { return $this->pivoted; } - } class Google_Service_Dfareporting_ReportDelivery extends Google_Collection @@ -2156,11 +2015,11 @@ class Google_Service_Dfareporting_ReportDelivery extends Google_Collection protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; protected $recipientsDataType = 'array'; + public function setEmailOwner($emailOwner) { $this->emailOwner = $emailOwner; } - public function getEmailOwner() { return $this->emailOwner; @@ -2169,7 +2028,6 @@ public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) { $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; } - public function getEmailOwnerDeliveryType() { return $this->emailOwnerDeliveryType; @@ -2178,7 +2036,6 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; @@ -2187,12 +2044,10 @@ public function setRecipients($recipients) { $this->recipients = $recipients; } - public function getRecipients() { return $this->recipients; } - } class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection @@ -2214,11 +2069,11 @@ class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collec protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; protected $reportPropertiesDataType = ''; + public function setCustomRichMediaEvents($customRichMediaEvents) { $this->customRichMediaEvents = $customRichMediaEvents; } - public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; @@ -2227,7 +2082,6 @@ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -2236,7 +2090,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -2245,7 +2098,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -2254,7 +2106,6 @@ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue { $this->floodlightConfigId = $floodlightConfigId; } - public function getFloodlightConfigId() { return $this->floodlightConfigId; @@ -2263,7 +2114,6 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; @@ -2272,12 +2122,10 @@ public function setReportProperties(Google_Service_Dfareporting_ReportFloodlight { $this->reportProperties = $reportProperties; } - public function getReportProperties() { return $this->reportProperties; } - } class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model @@ -2288,11 +2136,11 @@ class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties exten public $includeUnattributedCookieConversions; public $includeUnattributedIPConversions; + public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { $this->includeAttributedIPConversions = $includeAttributedIPConversions; } - public function getIncludeAttributedIPConversions() { return $this->includeAttributedIPConversions; @@ -2301,7 +2149,6 @@ public function setIncludeUnattributedCookieConversions($includeUnattributedCook { $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; } - public function getIncludeUnattributedCookieConversions() { return $this->includeUnattributedCookieConversions; @@ -2310,12 +2157,10 @@ public function setIncludeUnattributedIPConversions($includeUnattributedIPConver { $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; } - public function getIncludeUnattributedIPConversions() { return $this->includeUnattributedIPConversions; } - } class Google_Service_Dfareporting_ReportList extends Google_Collection @@ -2329,11 +2174,11 @@ class Google_Service_Dfareporting_ReportList extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2342,7 +2187,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2351,7 +2195,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2360,12 +2203,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection @@ -2391,11 +2232,11 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_ protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; protected $reportPropertiesDataType = ''; + public function setActivityFilters($activityFilters) { $this->activityFilters = $activityFilters; } - public function getActivityFilters() { return $this->activityFilters; @@ -2404,7 +2245,6 @@ public function setConversionDimensions($conversionDimensions) { $this->conversionDimensions = $conversionDimensions; } - public function getConversionDimensions() { return $this->conversionDimensions; @@ -2413,7 +2253,6 @@ public function setCustomFloodlightVariables($customFloodlightVariables) { $this->customFloodlightVariables = $customFloodlightVariables; } - public function getCustomFloodlightVariables() { return $this->customFloodlightVariables; @@ -2422,7 +2261,6 @@ public function setCustomRichMediaEvents($customRichMediaEvents) { $this->customRichMediaEvents = $customRichMediaEvents; } - public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; @@ -2431,7 +2269,6 @@ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -2440,7 +2277,6 @@ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue { $this->floodlightConfigId = $floodlightConfigId; } - public function getFloodlightConfigId() { return $this->floodlightConfigId; @@ -2449,7 +2285,6 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; @@ -2458,7 +2293,6 @@ public function setPerInteractionDimensions($perInteractionDimensions) { $this->perInteractionDimensions = $perInteractionDimensions; } - public function getPerInteractionDimensions() { return $this->perInteractionDimensions; @@ -2467,12 +2301,10 @@ public function setReportProperties(Google_Service_Dfareporting_ReportPathToConv { $this->reportProperties = $reportProperties; } - public function getReportProperties() { return $this->reportProperties; } - } class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model @@ -2489,11 +2321,11 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties public $maximumInteractionGap; public $pivotOnInteractionPath; + public function setClicksLookbackWindow($clicksLookbackWindow) { $this->clicksLookbackWindow = $clicksLookbackWindow; } - public function getClicksLookbackWindow() { return $this->clicksLookbackWindow; @@ -2502,7 +2334,6 @@ public function setImpressionsLookbackWindow($impressionsLookbackWindow) { $this->impressionsLookbackWindow = $impressionsLookbackWindow; } - public function getImpressionsLookbackWindow() { return $this->impressionsLookbackWindow; @@ -2511,7 +2342,6 @@ public function setIncludeAttributedIPConversions($includeAttributedIPConversion { $this->includeAttributedIPConversions = $includeAttributedIPConversions; } - public function getIncludeAttributedIPConversions() { return $this->includeAttributedIPConversions; @@ -2520,7 +2350,6 @@ public function setIncludeUnattributedCookieConversions($includeUnattributedCook { $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; } - public function getIncludeUnattributedCookieConversions() { return $this->includeUnattributedCookieConversions; @@ -2529,7 +2358,6 @@ public function setIncludeUnattributedIPConversions($includeUnattributedIPConver { $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; } - public function getIncludeUnattributedIPConversions() { return $this->includeUnattributedIPConversions; @@ -2538,7 +2366,6 @@ public function setMaximumClickInteractions($maximumClickInteractions) { $this->maximumClickInteractions = $maximumClickInteractions; } - public function getMaximumClickInteractions() { return $this->maximumClickInteractions; @@ -2547,7 +2374,6 @@ public function setMaximumImpressionInteractions($maximumImpressionInteractions) { $this->maximumImpressionInteractions = $maximumImpressionInteractions; } - public function getMaximumImpressionInteractions() { return $this->maximumImpressionInteractions; @@ -2556,7 +2382,6 @@ public function setMaximumInteractionGap($maximumInteractionGap) { $this->maximumInteractionGap = $maximumInteractionGap; } - public function getMaximumInteractionGap() { return $this->maximumInteractionGap; @@ -2565,12 +2390,10 @@ public function setPivotOnInteractionPath($pivotOnInteractionPath) { $this->pivotOnInteractionPath = $pivotOnInteractionPath; } - public function getPivotOnInteractionPath() { return $this->pivotOnInteractionPath; } - } class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection @@ -2591,11 +2414,11 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection public $metricNames; public $reachByFrequencyMetricNames; + public function setActivities(Google_Service_Dfareporting_Activities $activities) { $this->activities = $activities; } - public function getActivities() { return $this->activities; @@ -2604,7 +2427,6 @@ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichM { $this->customRichMediaEvents = $customRichMediaEvents; } - public function getCustomRichMediaEvents() { return $this->customRichMediaEvents; @@ -2613,7 +2435,6 @@ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { $this->dateRange = $dateRange; } - public function getDateRange() { return $this->dateRange; @@ -2622,7 +2443,6 @@ public function setDimensionFilters($dimensionFilters) { $this->dimensionFilters = $dimensionFilters; } - public function getDimensionFilters() { return $this->dimensionFilters; @@ -2631,7 +2451,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -2640,7 +2459,6 @@ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } - public function getMetricNames() { return $this->metricNames; @@ -2649,12 +2467,10 @@ public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) { $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; } - public function getReachByFrequencyMetricNames() { return $this->reachByFrequencyMetricNames; } - } class Google_Service_Dfareporting_ReportSchedule extends Google_Collection @@ -2670,11 +2486,11 @@ class Google_Service_Dfareporting_ReportSchedule extends Google_Collection public $runsOnDayOfMonth; public $startDate; + public function setActive($active) { $this->active = $active; } - public function getActive() { return $this->active; @@ -2683,7 +2499,6 @@ public function setEvery($every) { $this->every = $every; } - public function getEvery() { return $this->every; @@ -2692,7 +2507,6 @@ public function setExpirationDate($expirationDate) { $this->expirationDate = $expirationDate; } - public function getExpirationDate() { return $this->expirationDate; @@ -2701,7 +2515,6 @@ public function setRepeats($repeats) { $this->repeats = $repeats; } - public function getRepeats() { return $this->repeats; @@ -2710,7 +2523,6 @@ public function setRepeatsOnWeekDays($repeatsOnWeekDays) { $this->repeatsOnWeekDays = $repeatsOnWeekDays; } - public function getRepeatsOnWeekDays() { return $this->repeatsOnWeekDays; @@ -2719,7 +2531,6 @@ public function setRunsOnDayOfMonth($runsOnDayOfMonth) { $this->runsOnDayOfMonth = $runsOnDayOfMonth; } - public function getRunsOnDayOfMonth() { return $this->runsOnDayOfMonth; @@ -2728,12 +2539,10 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; } - } class Google_Service_Dfareporting_SortedDimension extends Google_Model @@ -2744,11 +2553,11 @@ class Google_Service_Dfareporting_SortedDimension extends Google_Model public $name; public $sortOrder; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2757,7 +2566,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2766,12 +2574,10 @@ public function setSortOrder($sortOrder) { $this->sortOrder = $sortOrder; } - public function getSortOrder() { return $this->sortOrder; } - } class Google_Service_Dfareporting_UserProfile extends Google_Model @@ -2787,11 +2593,11 @@ class Google_Service_Dfareporting_UserProfile extends Google_Model public $subAccountName; public $userName; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -2800,7 +2606,6 @@ public function setAccountName($accountName) { $this->accountName = $accountName; } - public function getAccountName() { return $this->accountName; @@ -2809,7 +2614,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2818,7 +2622,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2827,7 +2630,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -2836,7 +2638,6 @@ public function setSubAccountId($subAccountId) { $this->subAccountId = $subAccountId; } - public function getSubAccountId() { return $this->subAccountId; @@ -2845,7 +2646,6 @@ public function setSubAccountName($subAccountName) { $this->subAccountName = $subAccountName; } - public function getSubAccountName() { return $this->subAccountName; @@ -2854,12 +2654,10 @@ public function setUserName($userName) { $this->userName = $userName; } - public function getUserName() { return $this->userName; } - } class Google_Service_Dfareporting_UserProfileList extends Google_Collection @@ -2872,11 +2670,11 @@ class Google_Service_Dfareporting_UserProfileList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2885,7 +2683,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2894,10 +2691,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From 113a8a355bafd1c5914f83babc8cd95a7de83b51 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:38 -0800 Subject: [PATCH 0475/1274] Updated Admin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Admin.php | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/Google/Service/Admin.php b/src/Google/Service/Admin.php index 74fb66ed6..05807f2a1 100644 --- a/src/Google/Service/Admin.php +++ b/src/Google/Service/Admin.php @@ -19,8 +19,7 @@ * Service definition for Admin (email_migration_v2). * *

- * Email Migration API lets you migrate emails of users to Google backends. - *

+ * Email Migration API lets you migrate emails of users to Google backends.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_Admin extends Google_Service { /** Manage email messages of users on your domain. */ - const EMAIL_MIGRATION = "https://www.googleapis.com/auth/email.migration"; + const EMAIL_MIGRATION = + "https://www.googleapis.com/auth/email.migration"; public $mail; @@ -87,8 +87,7 @@ class Google_Service_Admin_Mail_Resource extends Google_Service_Resource /** * Insert Mail into Google's Gmail backends (mail.insert) * - * @param string $userKey - * The email or immutable id of the user + * @param string $userKey The email or immutable id of the user * @param Google_MailItem $postBody * @param array $optParams Optional parameters. */ @@ -118,11 +117,11 @@ class Google_Service_Admin_MailItem extends Google_Collection public $kind; public $labels; + public function setIsDeleted($isDeleted) { $this->isDeleted = $isDeleted; } - public function getIsDeleted() { return $this->isDeleted; @@ -131,7 +130,6 @@ public function setIsDraft($isDraft) { $this->isDraft = $isDraft; } - public function getIsDraft() { return $this->isDraft; @@ -140,7 +138,6 @@ public function setIsInbox($isInbox) { $this->isInbox = $isInbox; } - public function getIsInbox() { return $this->isInbox; @@ -149,7 +146,6 @@ public function setIsSent($isSent) { $this->isSent = $isSent; } - public function getIsSent() { return $this->isSent; @@ -158,7 +154,6 @@ public function setIsStarred($isStarred) { $this->isStarred = $isStarred; } - public function getIsStarred() { return $this->isStarred; @@ -167,7 +162,6 @@ public function setIsTrash($isTrash) { $this->isTrash = $isTrash; } - public function getIsTrash() { return $this->isTrash; @@ -176,7 +170,6 @@ public function setIsUnread($isUnread) { $this->isUnread = $isUnread; } - public function getIsUnread() { return $this->isUnread; @@ -185,7 +178,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -194,10 +186,8 @@ public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; } - } From 0b30bc94865a8181d3708509f4926af390ca3e12 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:40 -0800 Subject: [PATCH 0476/1274] Updated Audit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Audit.php | 79 ++++++++++++------------------------ 1 file changed, 26 insertions(+), 53 deletions(-) diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 3b8902f84..60672ecc3 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -19,8 +19,8 @@ * Service definition for Audit (v1). * *

- * Lets you access user activities in your enterprise made through various applications. - *

+ * Lets you access user activities in your enterprise made through various + * applications.

* *

* For more information about this service, see the API @@ -128,31 +128,26 @@ class Google_Service_Audit_Activities_Resource extends Google_Service_Resource * Retrieves a list of activities for a specific customer and application. * (activities.listActivities) * - * @param string $customerId - * Represents the customer who is the owner of target object on which action was performed. - * @param string $applicationId - * Application ID of the application on which the event was performed. + * @param string $customerId Represents the customer who is the owner of target + * object on which action was performed. + * @param string $applicationId Application ID of the application on which the + * event was performed. * @param array $optParams Optional parameters. * - * @opt_param string actorEmail - * Email address of the user who performed the action. - * @opt_param string actorApplicationId - * Application ID of the application which interacted on behalf of the user while performing the - * event. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string caller - * Type of the caller. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string continuationToken - * Next page URL. + * @opt_param string actorEmail Email address of the user who performed the + * action. + * @opt_param string actorApplicationId Application ID of the application which + * interacted on behalf of the user while performing the event. + * @opt_param string actorIpAddress IP Address of host where the event was + * performed. Supports both IPv4 and IPv6 addresses. + * @opt_param string caller Type of the caller. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string eventName Name of the event being queried. + * @opt_param string startTime Return events which occured at or after this + * time. + * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string continuationToken Next page URL. * @return Google_Service_Audit_Activities */ public function listActivities($customerId, $applicationId, $optParams = array()) @@ -176,11 +171,11 @@ class Google_Service_Audit_Activities extends Google_Collection public $kind; public $next; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -189,7 +184,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -198,12 +192,10 @@ public function setNext($next) { $this->next = $next; } - public function getNext() { return $this->next; } - } class Google_Service_Audit_Activity extends Google_Collection @@ -221,11 +213,11 @@ class Google_Service_Audit_Activity extends Google_Collection public $kind; public $ownerDomain; + public function setActor(Google_Service_Audit_ActivityActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -234,7 +226,6 @@ public function setEvents($events) { $this->events = $events; } - public function getEvents() { return $this->events; @@ -243,7 +234,6 @@ public function setId(Google_Service_Audit_ActivityId $id) { $this->id = $id; } - public function getId() { return $this->id; @@ -252,7 +242,6 @@ public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } - public function getIpAddress() { return $this->ipAddress; @@ -261,7 +250,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -270,12 +258,10 @@ public function setOwnerDomain($ownerDomain) { $this->ownerDomain = $ownerDomain; } - public function getOwnerDomain() { return $this->ownerDomain; } - } class Google_Service_Audit_ActivityActor extends Google_Model @@ -287,11 +273,11 @@ class Google_Service_Audit_ActivityActor extends Google_Model public $email; public $key; + public function setApplicationId($applicationId) { $this->applicationId = $applicationId; } - public function getApplicationId() { return $this->applicationId; @@ -300,7 +286,6 @@ public function setCallerType($callerType) { $this->callerType = $callerType; } - public function getCallerType() { return $this->callerType; @@ -309,7 +294,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -318,12 +302,10 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; } - } class Google_Service_Audit_ActivityEvents extends Google_Collection @@ -336,11 +318,11 @@ class Google_Service_Audit_ActivityEvents extends Google_Collection protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; protected $parametersDataType = 'array'; + public function setEventType($eventType) { $this->eventType = $eventType; } - public function getEventType() { return $this->eventType; @@ -349,7 +331,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -358,12 +339,10 @@ public function setParameters($parameters) { $this->parameters = $parameters; } - public function getParameters() { return $this->parameters; } - } class Google_Service_Audit_ActivityEventsParameters extends Google_Model @@ -373,11 +352,11 @@ 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; @@ -386,12 +365,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Audit_ActivityId extends Google_Model @@ -403,11 +380,11 @@ class Google_Service_Audit_ActivityId extends Google_Model public $time; public $uniqQualifier; + public function setApplicationId($applicationId) { $this->applicationId = $applicationId; } - public function getApplicationId() { return $this->applicationId; @@ -416,7 +393,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -425,7 +401,6 @@ public function setTime($time) { $this->time = $time; } - public function getTime() { return $this->time; @@ -434,10 +409,8 @@ public function setUniqQualifier($uniqQualifier) { $this->uniqQualifier = $uniqQualifier; } - public function getUniqQualifier() { return $this->uniqQualifier; } - } From 57035478cc8209472af5fd908b62117cb42bb2fa Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:40 -0800 Subject: [PATCH 0477/1274] Updated Licensing.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Licensing.php | 103 ++++++++++++------------------- 1 file changed, 39 insertions(+), 64 deletions(-) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 9e69b2d4b..40d4c477d 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -19,8 +19,7 @@ * Service definition for Licensing (v1). * *

- * Licensing API to view and manage license for your domain. - *

+ * Licensing API to view and manage license for your domain.

* *

* For more information about this service, see the API @@ -222,12 +221,9 @@ class Google_Service_Licensing_LicenseAssignments_Resource extends Google_Servic /** * 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 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()) @@ -236,16 +232,14 @@ public function delete($productId, $skuId, $userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get license assignment of a particular product and sku for a user * (licenseAssignments.get) * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param string $userId - * email id or unique Id of the user + * @param 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 */ @@ -255,13 +249,12 @@ public function get($productId, $skuId, $userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment"); } + /** * Assign License. (licenseAssignments.insert) * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku + * @param 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 @@ -272,21 +265,20 @@ public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssig $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment"); } + /** * List license assignments for given product of the customer. * (licenseAssignments.listForProduct) * - * @param string $productId - * Name for product - * @param string $customerId - * CustomerId represents the customer for whom licenseassignments are queried + * @param string $productId Name for product + * @param string $customerId CustomerId represents the customer for whom + * licenseassignments are queried * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token to fetch the next page.Optional. By default server will return first page - * @opt_param string maxResults - * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is - * 100. + * @opt_param string pageToken Token to fetch the next page.Optional. By default + * server will return first page + * @opt_param string maxResults Maximum number of campaigns to return at one + * time. Must be positive. Optional. Default value is 100. * @return Google_Service_Licensing_LicenseAssignmentList */ public function listForProduct($productId, $customerId, $optParams = array()) @@ -295,23 +287,21 @@ public function listForProduct($productId, $customerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList"); } + /** * List license assignments for given product and sku of the customer. * (licenseAssignments.listForProductAndSku) * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param string $customerId - * CustomerId represents the customer for whom licenseassignments are queried + * @param string $productId Name for product + * @param string $skuId Name for sku + * @param string $customerId CustomerId represents the customer for whom + * licenseassignments are queried * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token to fetch the next page.Optional. By default server will return first page - * @opt_param string maxResults - * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is - * 100. + * @opt_param string pageToken Token to fetch the next page.Optional. By default + * server will return first page + * @opt_param string maxResults Maximum number of campaigns to return at one + * time. Must be positive. Optional. Default value is 100. * @return Google_Service_Licensing_LicenseAssignmentList */ public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) @@ -320,16 +310,14 @@ public function listForProductAndSku($productId, $skuId, $customerId, $optParams $params = array_merge($params, $optParams); return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList"); } + /** * Assign License. This method supports patch semantics. * (licenseAssignments.patch) * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku for which license would be revoked - * @param string $userId - * email id or unique Id of the user + * @param 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 @@ -340,15 +328,13 @@ public function patch($productId, $skuId, $userId, Google_Service_Licensing_Lice $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment"); } + /** * Assign License. (licenseAssignments.update) * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku for which license would be revoked - * @param string $userId - * email id or unique Id of the user + * @param 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 @@ -375,11 +361,11 @@ class Google_Service_Licensing_LicenseAssignment extends Google_Model public $skuId; public $userId; + public function setEtags($etags) { $this->etags = $etags; } - public function getEtags() { return $this->etags; @@ -388,7 +374,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -397,7 +382,6 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; @@ -406,7 +390,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -415,7 +398,6 @@ public function setSkuId($skuId) { $this->skuId = $skuId; } - public function getSkuId() { return $this->skuId; @@ -424,12 +406,10 @@ public function setUserId($userId) { $this->userId = $userId; } - public function getUserId() { return $this->userId; } - } class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model @@ -438,16 +418,15 @@ 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 @@ -461,11 +440,11 @@ class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -474,7 +453,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -483,7 +461,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -492,10 +469,8 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } From 5eadf3ae057e06bd136e30a180cfd679cefd8566 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:40 -0800 Subject: [PATCH 0478/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 142 ++++++++++-------------- 1 file changed, 56 insertions(+), 86 deletions(-) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 88419c283..49c681e7c 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -19,8 +19,7 @@ * Service definition for YouTubeAnalytics (v1). * *

- * Retrieve your YouTube Analytics reports. - *

+ * Retrieve your YouTube Analytics reports.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_YouTubeAnalytics extends Google_Service { /** View YouTube Analytics monetary reports for your YouTube content. */ - const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; + const YT_ANALYTICS_MONETARY_READONLY = + "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; /** View YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_READONLY = "https://www.googleapis.com/auth/yt-analytics.readonly"; + const YT_ANALYTICS_READONLY = + "https://www.googleapis.com/auth/yt-analytics.readonly"; public $batchReportDefinitions; public $batchReports; @@ -172,9 +173,8 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Go * Retrieves a list of available batch report definitions. * (batchReportDefinitions.listBatchReportDefinitions) * - * @param string $onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on - * behalf of. + * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * identifies the content owner that the user is acting on behalf of. * @param array $optParams Optional parameters. * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList */ @@ -200,12 +200,11 @@ class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Servi /** * Retrieves a list of processed batch reports. (batchReports.listBatchReports) * - * @param string $batchReportDefinitionId - * The batchReportDefinitionId parameter specifies the ID of the batch reportort definition for - * which you are retrieving reports. - * @param string $onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on - * behalf of. + * @param string $batchReportDefinitionId The batchReportDefinitionId parameter + * specifies the ID of the batch reportort definition for which you are + * retrieving reports. + * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * identifies the content owner that the user is acting on behalf of. * @param array $optParams Optional parameters. * @return Google_Service_YouTubeAnalytics_BatchReportList */ @@ -231,45 +230,43 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re /** * Retrieve your YouTube Analytics reports. (reports.query) * - * @param string $ids - * Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics - * data. - - To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, - * where CHANNEL_ID specifies the unique YouTube channel ID. - - To request data for a YouTube CMS - * content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the - * CMS name of the content owner. - * @param string $startDate - * The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. - * @param string $endDate - * The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. - * @param string $metrics - * A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the - * Available Reports document for a list of the reports that you can retrieve and the metrics - * available in each report, and see the Metrics document for definitions of those metrics. + * @param string $ids Identifies the YouTube channel or content owner for which + * you are retrieving YouTube Analytics data. - To request data for a YouTube + * user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID + * specifies the unique YouTube channel ID. - To request data for a YouTube CMS + * content owner, set the ids parameter value to contentOwner==OWNER_NAME, where + * OWNER_NAME is the CMS name of the content owner. + * @param string $startDate The start date for fetching YouTube Analytics data. + * The value should be in YYYY-MM-DD format. + * @param string $endDate The end date for fetching YouTube Analytics data. The + * value should be in YYYY-MM-DD format. + * @param string $metrics A comma-separated list of YouTube Analytics metrics, + * such as views or likes,dislikes. See the Available Reports document for a + * list of the reports that you can retrieve and the metrics available in each + * report, and see the Metrics document for definitions of those metrics. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of rows to include in the response. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for YouTube - * Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort - * order. - * @opt_param string dimensions - * A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See - * the Available Reports document for a list of the reports that you can retrieve and the - * dimensions used for those reports. Also see the Dimensions document for definitions of those - * dimensions. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter (one-based, inclusive). - * @opt_param string filters - * A list of filters that should be applied when retrieving YouTube Analytics data. The Available - * Reports document identifies the dimensions that can be used to filter each report, and the - * Dimensions document defines those dimensions. If a request uses multiple filters, join them - * together with a semicolon (;), and the returned result table will satisfy both filters. For - * example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to - * include data for the given video in Italy. + * @opt_param int max-results The maximum number of rows to include in the + * response. + * @opt_param string sort A comma-separated list of dimensions or metrics that + * determine the sort order for YouTube Analytics data. By default the sort + * order is ascending. The '-' prefix causes descending sort order. + * @opt_param string dimensions A comma-separated list of YouTube Analytics + * dimensions, such as views or ageGroup,gender. See the Available Reports + * document for a list of the reports that you can retrieve and the dimensions + * used for those reports. Also see the Dimensions document for definitions of + * those dimensions. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter + * (one-based, inclusive). + * @opt_param string filters A list of filters that should be applied when + * retrieving YouTube Analytics data. The Available Reports document identifies + * the dimensions that can be used to filter each report, and the Dimensions + * document defines those dimensions. If a request uses multiple filters, join + * them together with a semicolon (;), and the returned result table will + * satisfy both filters. For example, a filters parameter value of + * video==dMH0bHeiRNg;country==IT restricts the result set to include data for + * the given video in Italy. * @return Google_Service_YouTubeAnalytics_ResultTable */ public function query($ids, $startDate, $endDate, $metrics, $optParams = array()) @@ -292,11 +289,11 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_C protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -305,12 +302,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection @@ -325,11 +320,11 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Goog public $status; public $type; + public function setDefaultOutput($defaultOutput) { $this->defaultOutput = $defaultOutput; } - public function getDefaultOutput() { return $this->defaultOutput; @@ -338,7 +333,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -347,7 +341,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -356,7 +349,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -365,12 +357,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model @@ -380,11 +370,11 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput public $format; public $type; + public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -393,12 +383,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection @@ -410,11 +398,11 @@ class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -423,12 +411,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection @@ -445,11 +431,11 @@ class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collect protected $timeSpanDataType = ''; public $timeUpdated; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -458,7 +444,6 @@ public function setOutputs($outputs) { $this->outputs = $outputs; } - public function getOutputs() { return $this->outputs; @@ -467,7 +452,6 @@ public function setReportId($reportId) { $this->reportId = $reportId; } - public function getReportId() { return $this->reportId; @@ -476,7 +460,6 @@ public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateT { $this->timeSpan = $timeSpan; } - public function getTimeSpan() { return $this->timeSpan; @@ -485,12 +468,10 @@ public function setTimeUpdated($timeUpdated) { $this->timeUpdated = $timeUpdated; } - public function getTimeUpdated() { return $this->timeUpdated; } - } class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model @@ -501,11 +482,11 @@ class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_ public $format; public $type; + public function setDownloadUrl($downloadUrl) { $this->downloadUrl = $downloadUrl; } - public function getDownloadUrl() { return $this->downloadUrl; @@ -514,7 +495,6 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -523,12 +503,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model @@ -538,11 +516,11 @@ class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google public $endTime; public $startTime; + public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -551,12 +529,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection @@ -569,11 +545,11 @@ class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection public $kind; public $rows; + public function setColumnHeaders($columnHeaders) { $this->columnHeaders = $columnHeaders; } - public function getColumnHeaders() { return $this->columnHeaders; @@ -582,7 +558,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -591,12 +566,10 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; } - } class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model @@ -607,11 +580,11 @@ class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Mo public $dataType; public $name; + public function setColumnType($columnType) { $this->columnType = $columnType; } - public function getColumnType() { return $this->columnType; @@ -620,7 +593,6 @@ public function setDataType($dataType) { $this->dataType = $dataType; } - public function getDataType() { return $this->dataType; @@ -629,10 +601,8 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } From fb8b162531c2a6c102fc16a94fa855bfd6ea9e01 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:41 -0800 Subject: [PATCH 0479/1274] Updated Manager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Manager.php | 277 ++++++++------------------------- 1 file changed, 65 insertions(+), 212 deletions(-) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 41b8564dd..98c3eb5d3 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -19,8 +19,8 @@ * Service definition for Manager (v1beta2). * *

- * The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. - *

+ * The Deployment Manager API allows users to declaratively configure, deploy + * and run complex solutions on the Google Cloud Platform.

* *

* For more information about this service, see the API @@ -32,17 +32,23 @@ class Google_Service_Manager extends Google_Service { /** View and manage your applications deployed on Google App Engine. */ - const APPENGINE_ADMIN = "https://www.googleapis.com/auth/appengine.admin"; + const APPENGINE_ADMIN = + "https://www.googleapis.com/auth/appengine.admin"; /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; + const COMPUTE = + "https://www.googleapis.com/auth/compute"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; public $deployments; public $templates; @@ -235,11 +241,8 @@ class Google_Service_Manager_Deployments_Resource extends Google_Service_Resourc * (deployments.delete) * * @param string $projectId - * * @param string $region - * * @param string $deploymentName - * * @param array $optParams Optional parameters. */ public function delete($projectId, $region, $deploymentName, $optParams = array()) @@ -248,15 +251,13 @@ public function delete($projectId, $region, $deploymentName, $optParams = array( $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * (deployments.get) * * @param string $projectId - * * @param string $region - * * @param string $deploymentName - * * @param array $optParams Optional parameters. * @return Google_Service_Manager_Deployment */ @@ -266,13 +267,12 @@ public function get($projectId, $region, $deploymentName, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Manager_Deployment"); } + /** * (deployments.insert) * * @param string $projectId - * * @param string $region - * * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Manager_Deployment @@ -283,21 +283,19 @@ public function insert($projectId, $region, Google_Service_Manager_Deployment $p $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Manager_Deployment"); } + /** * (deployments.listDeployments) * * @param string $projectId - * * @param string $region - * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Manager_DeploymentsListResponse */ public function listDeployments($projectId, $region, $optParams = array()) @@ -323,9 +321,7 @@ class Google_Service_Manager_Templates_Resource extends Google_Service_Resource * (templates.delete) * * @param string $projectId - * * @param string $templateName - * * @param array $optParams Optional parameters. */ public function delete($projectId, $templateName, $optParams = array()) @@ -334,13 +330,12 @@ public function delete($projectId, $templateName, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * (templates.get) * * @param string $projectId - * * @param string $templateName - * * @param array $optParams Optional parameters. * @return Google_Service_Manager_Template */ @@ -350,11 +345,11 @@ public function get($projectId, $templateName, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Manager_Template"); } + /** * (templates.insert) * * @param string $projectId - * * @param Google_Template $postBody * @param array $optParams Optional parameters. * @return Google_Service_Manager_Template @@ -365,19 +360,18 @@ public function insert($projectId, Google_Service_Manager_Template $postBody, $o $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Manager_Template"); } + /** * (templates.listTemplates) * * @param string $projectId - * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Manager_TemplatesListResponse */ public function listTemplates($projectId, $optParams = array()) @@ -399,11 +393,11 @@ class Google_Service_Manager_AccessConfig extends Google_Model public $natIp; public $type; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -412,7 +406,6 @@ public function setNatIp($natIp) { $this->natIp = $natIp; } - public function getNatIp() { return $this->natIp; @@ -421,12 +414,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Manager_Action extends Google_Collection @@ -437,11 +428,11 @@ class Google_Service_Manager_Action extends Google_Collection public $commands; public $timeoutMs; + public function setCommands($commands) { $this->commands = $commands; } - public function getCommands() { return $this->commands; @@ -450,12 +441,10 @@ public function setTimeoutMs($timeoutMs) { $this->timeoutMs = $timeoutMs; } - public function getTimeoutMs() { return $this->timeoutMs; } - } class Google_Service_Manager_AllowedRule extends Google_Collection @@ -467,11 +456,11 @@ class Google_Service_Manager_AllowedRule extends Google_Collection public $iPProtocol; public $ports; + public function setIPProtocol($iPProtocol) { $this->iPProtocol = $iPProtocol; } - public function getIPProtocol() { return $this->iPProtocol; @@ -480,12 +469,10 @@ public function setPorts($ports) { $this->ports = $ports; } - public function getPorts() { return $this->ports; } - } class Google_Service_Manager_AutoscalingModule extends Google_Model @@ -500,11 +487,11 @@ class Google_Service_Manager_AutoscalingModule extends Google_Model public $targetModule; public $targetUtilization; + public function setCoolDownPeriodSec($coolDownPeriodSec) { $this->coolDownPeriodSec = $coolDownPeriodSec; } - public function getCoolDownPeriodSec() { return $this->coolDownPeriodSec; @@ -513,7 +500,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -522,7 +508,6 @@ public function setMaxNumReplicas($maxNumReplicas) { $this->maxNumReplicas = $maxNumReplicas; } - public function getMaxNumReplicas() { return $this->maxNumReplicas; @@ -531,7 +516,6 @@ public function setMinNumReplicas($minNumReplicas) { $this->minNumReplicas = $minNumReplicas; } - public function getMinNumReplicas() { return $this->minNumReplicas; @@ -540,7 +524,6 @@ public function setSignalType($signalType) { $this->signalType = $signalType; } - public function getSignalType() { return $this->signalType; @@ -549,7 +532,6 @@ public function setTargetModule($targetModule) { $this->targetModule = $targetModule; } - public function getTargetModule() { return $this->targetModule; @@ -558,12 +540,10 @@ public function setTargetUtilization($targetUtilization) { $this->targetUtilization = $targetUtilization; } - public function getTargetUtilization() { return $this->targetUtilization; } - } class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model @@ -572,16 +552,15 @@ class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model ); public $autoscalingConfigUrl; + public function setAutoscalingConfigUrl($autoscalingConfigUrl) { $this->autoscalingConfigUrl = $autoscalingConfigUrl; } - public function getAutoscalingConfigUrl() { return $this->autoscalingConfigUrl; } - } class Google_Service_Manager_DeployState extends Google_Model @@ -591,11 +570,11 @@ class Google_Service_Manager_DeployState extends Google_Model public $details; public $status; + public function setDetails($details) { $this->details = $details; } - public function getDetails() { return $this->details; @@ -604,12 +583,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Manager_Deployment extends Google_Collection @@ -628,11 +605,11 @@ class Google_Service_Manager_Deployment extends Google_Collection protected $stateDataType = ''; public $templateName; + public function setCreationDate($creationDate) { $this->creationDate = $creationDate; } - public function getCreationDate() { return $this->creationDate; @@ -641,7 +618,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -650,7 +626,6 @@ public function setModules($modules) { $this->modules = $modules; } - public function getModules() { return $this->modules; @@ -659,7 +634,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -668,7 +642,6 @@ public function setOverrides($overrides) { $this->overrides = $overrides; } - public function getOverrides() { return $this->overrides; @@ -677,7 +650,6 @@ public function setState(Google_Service_Manager_DeployState $state) { $this->state = $state; } - public function getState() { return $this->state; @@ -686,20 +658,14 @@ public function setTemplateName($templateName) { $this->templateName = $templateName; } - public function getTemplateName() { return $this->templateName; } - } class Google_Service_Manager_DeploymentModules extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Manager_DeploymentsListResponse extends Google_Collection @@ -711,11 +677,11 @@ class Google_Service_Manager_DeploymentsListResponse extends Google_Collection protected $resourcesType = 'Google_Service_Manager_Deployment'; protected $resourcesDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -724,12 +690,10 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_Manager_DiskAttachment extends Google_Model @@ -739,11 +703,11 @@ class Google_Service_Manager_DiskAttachment extends Google_Model public $deviceName; public $index; + public function setDeviceName($deviceName) { $this->deviceName = $deviceName; } - public function getDeviceName() { return $this->deviceName; @@ -752,12 +716,10 @@ public function setIndex($index) { $this->index = $index; } - public function getIndex() { return $this->index; } - } class Google_Service_Manager_EnvVariable extends Google_Model @@ -767,11 +729,11 @@ class Google_Service_Manager_EnvVariable extends Google_Model public $hidden; public $value; + public function setHidden($hidden) { $this->hidden = $hidden; } - public function getHidden() { return $this->hidden; @@ -780,12 +742,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Manager_ExistingDisk extends Google_Model @@ -796,11 +756,11 @@ class Google_Service_Manager_ExistingDisk extends Google_Model protected $attachmentDataType = ''; public $source; + public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) { $this->attachment = $attachment; } - public function getAttachment() { return $this->attachment; @@ -809,12 +769,10 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; } - } class Google_Service_Manager_FirewallModule extends Google_Collection @@ -830,11 +788,11 @@ class Google_Service_Manager_FirewallModule extends Google_Collection public $sourceTags; public $targetTags; + public function setAllowed($allowed) { $this->allowed = $allowed; } - public function getAllowed() { return $this->allowed; @@ -843,7 +801,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -852,7 +809,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -861,7 +817,6 @@ public function setSourceRanges($sourceRanges) { $this->sourceRanges = $sourceRanges; } - public function getSourceRanges() { return $this->sourceRanges; @@ -870,7 +825,6 @@ public function setSourceTags($sourceTags) { $this->sourceTags = $sourceTags; } - public function getSourceTags() { return $this->sourceTags; @@ -879,12 +833,10 @@ public function setTargetTags($targetTags) { $this->targetTags = $targetTags; } - public function getTargetTags() { return $this->targetTags; } - } class Google_Service_Manager_FirewallModuleStatus extends Google_Model @@ -893,16 +845,15 @@ class Google_Service_Manager_FirewallModuleStatus extends Google_Model ); public $firewallUrl; + public function setFirewallUrl($firewallUrl) { $this->firewallUrl = $firewallUrl; } - public function getFirewallUrl() { return $this->firewallUrl; } - } class Google_Service_Manager_HealthCheckModule extends Google_Model @@ -918,11 +869,11 @@ class Google_Service_Manager_HealthCheckModule extends Google_Model public $timeoutSec; public $unhealthyThreshold; + public function setCheckIntervalSec($checkIntervalSec) { $this->checkIntervalSec = $checkIntervalSec; } - public function getCheckIntervalSec() { return $this->checkIntervalSec; @@ -931,7 +882,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -940,7 +890,6 @@ public function setHealthyThreshold($healthyThreshold) { $this->healthyThreshold = $healthyThreshold; } - public function getHealthyThreshold() { return $this->healthyThreshold; @@ -949,7 +898,6 @@ public function setHost($host) { $this->host = $host; } - public function getHost() { return $this->host; @@ -958,7 +906,6 @@ public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; @@ -967,7 +914,6 @@ public function setPort($port) { $this->port = $port; } - public function getPort() { return $this->port; @@ -976,7 +922,6 @@ public function setTimeoutSec($timeoutSec) { $this->timeoutSec = $timeoutSec; } - public function getTimeoutSec() { return $this->timeoutSec; @@ -985,12 +930,10 @@ public function setUnhealthyThreshold($unhealthyThreshold) { $this->unhealthyThreshold = $unhealthyThreshold; } - public function getUnhealthyThreshold() { return $this->unhealthyThreshold; } - } class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model @@ -999,16 +942,15 @@ class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model ); public $healthCheckUrl; + public function setHealthCheckUrl($healthCheckUrl) { $this->healthCheckUrl = $healthCheckUrl; } - public function getHealthCheckUrl() { return $this->healthCheckUrl; } - } class Google_Service_Manager_LbModule extends Google_Collection @@ -1024,11 +966,11 @@ class Google_Service_Manager_LbModule extends Google_Collection public $sessionAffinity; public $targetModules; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1037,7 +979,6 @@ public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; @@ -1046,7 +987,6 @@ public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } - public function getIpAddress() { return $this->ipAddress; @@ -1055,7 +995,6 @@ public function setIpProtocol($ipProtocol) { $this->ipProtocol = $ipProtocol; } - public function getIpProtocol() { return $this->ipProtocol; @@ -1064,7 +1003,6 @@ public function setPortRange($portRange) { $this->portRange = $portRange; } - public function getPortRange() { return $this->portRange; @@ -1073,7 +1011,6 @@ public function setSessionAffinity($sessionAffinity) { $this->sessionAffinity = $sessionAffinity; } - public function getSessionAffinity() { return $this->sessionAffinity; @@ -1082,12 +1019,10 @@ public function setTargetModules($targetModules) { $this->targetModules = $targetModules; } - public function getTargetModules() { return $this->targetModules; } - } class Google_Service_Manager_LbModuleStatus extends Google_Model @@ -1097,11 +1032,11 @@ class Google_Service_Manager_LbModuleStatus extends Google_Model public $forwardingRuleUrl; public $targetPoolUrl; + public function setForwardingRuleUrl($forwardingRuleUrl) { $this->forwardingRuleUrl = $forwardingRuleUrl; } - public function getForwardingRuleUrl() { return $this->forwardingRuleUrl; @@ -1110,12 +1045,10 @@ public function setTargetPoolUrl($targetPoolUrl) { $this->targetPoolUrl = $targetPoolUrl; } - public function getTargetPoolUrl() { return $this->targetPoolUrl; } - } class Google_Service_Manager_Metadata extends Google_Collection @@ -1127,11 +1060,11 @@ class Google_Service_Manager_Metadata extends Google_Collection protected $itemsType = 'Google_Service_Manager_MetadataItem'; protected $itemsDataType = 'array'; + public function setFingerPrint($fingerPrint) { $this->fingerPrint = $fingerPrint; } - public function getFingerPrint() { return $this->fingerPrint; @@ -1140,12 +1073,10 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; } - } class Google_Service_Manager_MetadataItem extends Google_Model @@ -1155,11 +1086,11 @@ class Google_Service_Manager_MetadataItem extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1168,12 +1099,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Manager_Module extends Google_Model @@ -1194,11 +1123,11 @@ class Google_Service_Manager_Module extends Google_Model protected $replicaPoolModuleDataType = ''; public $type; + public function setAutoscalingModule(Google_Service_Manager_AutoscalingModule $autoscalingModule) { $this->autoscalingModule = $autoscalingModule; } - public function getAutoscalingModule() { return $this->autoscalingModule; @@ -1207,7 +1136,6 @@ public function setFirewallModule(Google_Service_Manager_FirewallModule $firewal { $this->firewallModule = $firewallModule; } - public function getFirewallModule() { return $this->firewallModule; @@ -1216,7 +1144,6 @@ public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $h { $this->healthCheckModule = $healthCheckModule; } - public function getHealthCheckModule() { return $this->healthCheckModule; @@ -1225,7 +1152,6 @@ public function setLbModule(Google_Service_Manager_LbModule $lbModule) { $this->lbModule = $lbModule; } - public function getLbModule() { return $this->lbModule; @@ -1234,7 +1160,6 @@ public function setNetworkModule(Google_Service_Manager_NetworkModule $networkMo { $this->networkModule = $networkModule; } - public function getNetworkModule() { return $this->networkModule; @@ -1243,7 +1168,6 @@ public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $r { $this->replicaPoolModule = $replicaPoolModule; } - public function getReplicaPoolModule() { return $this->replicaPoolModule; @@ -1252,12 +1176,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Manager_ModuleStatus extends Google_Model @@ -1280,11 +1202,11 @@ class Google_Service_Manager_ModuleStatus extends Google_Model protected $stateDataType = ''; public $type; + public function setAutoscalingModuleStatus(Google_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus) { $this->autoscalingModuleStatus = $autoscalingModuleStatus; } - public function getAutoscalingModuleStatus() { return $this->autoscalingModuleStatus; @@ -1293,7 +1215,6 @@ public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleSta { $this->firewallModuleStatus = $firewallModuleStatus; } - public function getFirewallModuleStatus() { return $this->firewallModuleStatus; @@ -1302,7 +1223,6 @@ public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckMod { $this->healthCheckModuleStatus = $healthCheckModuleStatus; } - public function getHealthCheckModuleStatus() { return $this->healthCheckModuleStatus; @@ -1311,7 +1231,6 @@ public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModul { $this->lbModuleStatus = $lbModuleStatus; } - public function getLbModuleStatus() { return $this->lbModuleStatus; @@ -1320,7 +1239,6 @@ public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatu { $this->networkModuleStatus = $networkModuleStatus; } - public function getNetworkModuleStatus() { return $this->networkModuleStatus; @@ -1329,7 +1247,6 @@ public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolMod { $this->replicaPoolModuleStatus = $replicaPoolModuleStatus; } - public function getReplicaPoolModuleStatus() { return $this->replicaPoolModuleStatus; @@ -1338,7 +1255,6 @@ public function setState(Google_Service_Manager_DeployState $state) { $this->state = $state; } - public function getState() { return $this->state; @@ -1347,12 +1263,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Manager_NetworkInterface extends Google_Collection @@ -1366,11 +1280,11 @@ class Google_Service_Manager_NetworkInterface extends Google_Collection public $network; public $networkIp; + public function setAccessConfigs($accessConfigs) { $this->accessConfigs = $accessConfigs; } - public function getAccessConfigs() { return $this->accessConfigs; @@ -1379,7 +1293,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1388,7 +1301,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -1397,12 +1309,10 @@ public function setNetworkIp($networkIp) { $this->networkIp = $networkIp; } - public function getNetworkIp() { return $this->networkIp; } - } class Google_Service_Manager_NetworkModule extends Google_Model @@ -1414,11 +1324,11 @@ class Google_Service_Manager_NetworkModule extends Google_Model public $description; public $gatewayIPv4; + public function setIPv4Range($iPv4Range) { $this->iPv4Range = $iPv4Range; } - public function getIPv4Range() { return $this->iPv4Range; @@ -1427,7 +1337,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1436,12 +1345,10 @@ public function setGatewayIPv4($gatewayIPv4) { $this->gatewayIPv4 = $gatewayIPv4; } - public function getGatewayIPv4() { return $this->gatewayIPv4; } - } class Google_Service_Manager_NetworkModuleStatus extends Google_Model @@ -1450,16 +1357,15 @@ class Google_Service_Manager_NetworkModuleStatus extends Google_Model ); public $networkUrl; + public function setNetworkUrl($networkUrl) { $this->networkUrl = $networkUrl; } - public function getNetworkUrl() { return $this->networkUrl; } - } class Google_Service_Manager_NewDisk extends Google_Model @@ -1473,11 +1379,11 @@ class Google_Service_Manager_NewDisk extends Google_Model protected $initializeParamsType = 'Google_Service_Manager_NewDiskInitializeParams'; protected $initializeParamsDataType = ''; + public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) { $this->attachment = $attachment; } - public function getAttachment() { return $this->attachment; @@ -1486,7 +1392,6 @@ public function setAutoDelete($autoDelete) { $this->autoDelete = $autoDelete; } - public function getAutoDelete() { return $this->autoDelete; @@ -1495,7 +1400,6 @@ public function setBoot($boot) { $this->boot = $boot; } - public function getBoot() { return $this->boot; @@ -1504,12 +1408,10 @@ public function setInitializeParams(Google_Service_Manager_NewDiskInitializePara { $this->initializeParams = $initializeParams; } - public function getInitializeParams() { return $this->initializeParams; } - } class Google_Service_Manager_NewDiskInitializeParams extends Google_Model @@ -1520,11 +1422,11 @@ class Google_Service_Manager_NewDiskInitializeParams extends Google_Model public $diskType; public $sourceImage; + public function setDiskSizeGb($diskSizeGb) { $this->diskSizeGb = $diskSizeGb; } - public function getDiskSizeGb() { return $this->diskSizeGb; @@ -1533,7 +1435,6 @@ public function setDiskType($diskType) { $this->diskType = $diskType; } - public function getDiskType() { return $this->diskType; @@ -1542,12 +1443,10 @@ public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; } - public function getSourceImage() { return $this->sourceImage; } - } class Google_Service_Manager_ParamOverride extends Google_Model @@ -1557,11 +1456,11 @@ class Google_Service_Manager_ParamOverride extends Google_Model public $path; public $value; + public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; @@ -1570,12 +1469,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Manager_ReplicaPoolModule extends Google_Collection @@ -1591,11 +1488,11 @@ class Google_Service_Manager_ReplicaPoolModule extends Google_Collection protected $replicaPoolParamsDataType = ''; public $resourceView; + public function setEnvVariables($envVariables) { $this->envVariables = $envVariables; } - public function getEnvVariables() { return $this->envVariables; @@ -1604,7 +1501,6 @@ public function setHealthChecks($healthChecks) { $this->healthChecks = $healthChecks; } - public function getHealthChecks() { return $this->healthChecks; @@ -1613,7 +1509,6 @@ public function setNumReplicas($numReplicas) { $this->numReplicas = $numReplicas; } - public function getNumReplicas() { return $this->numReplicas; @@ -1622,7 +1517,6 @@ public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $r { $this->replicaPoolParams = $replicaPoolParams; } - public function getReplicaPoolParams() { return $this->replicaPoolParams; @@ -1631,20 +1525,14 @@ public function setResourceView($resourceView) { $this->resourceView = $resourceView; } - public function getResourceView() { return $this->resourceView; } - } class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model @@ -1654,11 +1542,11 @@ class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model public $replicaPoolUrl; public $resourceViewUrl; + public function setReplicaPoolUrl($replicaPoolUrl) { $this->replicaPoolUrl = $replicaPoolUrl; } - public function getReplicaPoolUrl() { return $this->replicaPoolUrl; @@ -1667,12 +1555,10 @@ public function setResourceViewUrl($resourceViewUrl) { $this->resourceViewUrl = $resourceViewUrl; } - public function getResourceViewUrl() { return $this->resourceViewUrl; } - } class Google_Service_Manager_ReplicaPoolParams extends Google_Model @@ -1682,16 +1568,15 @@ class Google_Service_Manager_ReplicaPoolParams extends Google_Model protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1'; protected $v1beta1DataType = ''; + public function setV1beta1(Google_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1) { $this->v1beta1 = $v1beta1; } - public function getV1beta1() { return $this->v1beta1; } - } class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection @@ -1720,11 +1605,11 @@ class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection protected $tagsDataType = ''; public $zone; + public function setAutoRestart($autoRestart) { $this->autoRestart = $autoRestart; } - public function getAutoRestart() { return $this->autoRestart; @@ -1733,7 +1618,6 @@ public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; } - public function getBaseInstanceName() { return $this->baseInstanceName; @@ -1742,7 +1626,6 @@ public function setCanIpForward($canIpForward) { $this->canIpForward = $canIpForward; } - public function getCanIpForward() { return $this->canIpForward; @@ -1751,7 +1634,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1760,7 +1642,6 @@ public function setDisksToAttach($disksToAttach) { $this->disksToAttach = $disksToAttach; } - public function getDisksToAttach() { return $this->disksToAttach; @@ -1769,7 +1650,6 @@ public function setDisksToCreate($disksToCreate) { $this->disksToCreate = $disksToCreate; } - public function getDisksToCreate() { return $this->disksToCreate; @@ -1778,7 +1658,6 @@ public function setInitAction($initAction) { $this->initAction = $initAction; } - public function getInitAction() { return $this->initAction; @@ -1787,7 +1666,6 @@ public function setMachineType($machineType) { $this->machineType = $machineType; } - public function getMachineType() { return $this->machineType; @@ -1796,7 +1674,6 @@ public function setMetadata(Google_Service_Manager_Metadata $metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -1805,7 +1682,6 @@ public function setNetworkInterfaces($networkInterfaces) { $this->networkInterfaces = $networkInterfaces; } - public function getNetworkInterfaces() { return $this->networkInterfaces; @@ -1814,7 +1690,6 @@ public function setOnHostMaintenance($onHostMaintenance) { $this->onHostMaintenance = $onHostMaintenance; } - public function getOnHostMaintenance() { return $this->onHostMaintenance; @@ -1823,7 +1698,6 @@ public function setServiceAccounts($serviceAccounts) { $this->serviceAccounts = $serviceAccounts; } - public function getServiceAccounts() { return $this->serviceAccounts; @@ -1832,7 +1706,6 @@ public function setTags(Google_Service_Manager_Tag $tags) { $this->tags = $tags; } - public function getTags() { return $this->tags; @@ -1841,12 +1714,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Manager_ServiceAccount extends Google_Collection @@ -1857,11 +1728,11 @@ class Google_Service_Manager_ServiceAccount extends Google_Collection public $email; public $scopes; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1870,12 +1741,10 @@ public function setScopes($scopes) { $this->scopes = $scopes; } - public function getScopes() { return $this->scopes; } - } class Google_Service_Manager_Tag extends Google_Collection @@ -1886,11 +1755,11 @@ class Google_Service_Manager_Tag extends Google_Collection public $fingerPrint; public $items; + public function setFingerPrint($fingerPrint) { $this->fingerPrint = $fingerPrint; } - public function getFingerPrint() { return $this->fingerPrint; @@ -1899,12 +1768,10 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; } - } class Google_Service_Manager_Template extends Google_Model @@ -1918,11 +1785,11 @@ class Google_Service_Manager_Template extends Google_Model protected $modulesDataType = 'map'; public $name; + public function setActions($actions) { $this->actions = $actions; } - public function getActions() { return $this->actions; @@ -1931,7 +1798,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1940,7 +1806,6 @@ public function setModules($modules) { $this->modules = $modules; } - public function getModules() { return $this->modules; @@ -1949,28 +1814,18 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Manager_TemplateActions extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Manager_TemplateModules extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Manager_TemplatesListResponse extends Google_Collection @@ -1982,11 +1837,11 @@ class Google_Service_Manager_TemplatesListResponse extends Google_Collection protected $resourcesType = 'Google_Service_Manager_Template'; protected $resourcesDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1995,10 +1850,8 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } From 545891788934932b80b0aab6fa1f54c71282b956 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:41 -0800 Subject: [PATCH 0480/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 234 +++++++++++---------------------- 1 file changed, 78 insertions(+), 156 deletions(-) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index 0b79697ef..a459861d2 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -19,8 +19,8 @@ * Service definition for Reports (reports_v1). * *

- * Allows the administrators of Google Apps customers to fetch reports about the usage, collaboration, security and risk for their users. - *

+ * Allows the administrators of Google Apps customers to fetch reports about the + * usage, collaboration, security and risk for their users.

* *

* For more information about this service, see the API @@ -32,9 +32,11 @@ class Google_Service_Reports extends Google_Service { /** View audit reports of Google Apps for your domain. */ - const ADMIN_REPORTS_AUDIT_READONLY = "https://www.googleapis.com/auth/admin.reports.audit.readonly"; + const ADMIN_REPORTS_AUDIT_READONLY = + "https://www.googleapis.com/auth/admin.reports.audit.readonly"; /** View usage reports of Google Apps for your domain. */ - const ADMIN_REPORTS_USAGE_READONLY = "https://www.googleapis.com/auth/admin.reports.usage.readonly"; + const ADMIN_REPORTS_USAGE_READONLY = + "https://www.googleapis.com/auth/admin.reports.usage.readonly"; public $activities; public $channels; @@ -268,30 +270,27 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * Retrieves a list of activities for a specific customer and application. * (activities.listActivities) * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. When 'all' is - * specified as the userKey, it returns usageReports for all users. - * @param string $applicationName - * Application name for which the events are to be retrieved. + * @param string $userKey Represents the profile id or the user email for which + * the data should be filtered. When 'all' is specified as the userKey, it + * returns usageReports for all users. + * @param string $applicationName Application name for which the events are to + * be retrieved. * @param array $optParams Optional parameters. * - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 - * name][operator][parameter2 value],... - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. + * @opt_param string startTime Return events which occured at or after this + * time. + * @opt_param string actorIpAddress IP Address of host where the event was + * performed. Supports both IPv4 and IPv6 addresses. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string eventName Name of the event being queried. + * @opt_param string pageToken Token to specify next page. + * @opt_param string filters Event parameters in the form [parameter1 + * name][operator][parameter1 value],[parameter2 name][operator][parameter2 + * value],... + * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. * @return Google_Service_Reports_Activities */ public function listActivities($userKey, $applicationName, $optParams = array()) @@ -300,34 +299,32 @@ public function listActivities($userKey, $applicationName, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Reports_Activities"); } + /** * Push changes to activities (activities.watch) * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. When 'all' is - * specified as the userKey, it returns usageReports for all users. - * @param string $applicationName - * Application name for which the events are to be retrieved. + * @param string $userKey Represents the profile id or the user email for which + * the data should be filtered. When 'all' is specified as the userKey, it + * returns usageReports for all users. + * @param string $applicationName Application name for which the events are to + * be retrieved. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 - * name][operator][parameter2 value],... - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. + * @opt_param string startTime Return events which occured at or after this + * time. + * @opt_param string actorIpAddress IP Address of host where the event was + * performed. Supports both IPv4 and IPv6 addresses. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string eventName Name of the event being queried. + * @opt_param string pageToken Token to specify next page. + * @opt_param string filters Event parameters in the form [parameter1 + * name][operator][parameter1 value],[parameter2 name][operator][parameter2 + * value],... + * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. * @return Google_Service_Reports_Channel */ public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array()) @@ -378,17 +375,15 @@ class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Servic * Retrieves a report which is a collection of properties / statistics for a * specific customer. (customerUsageReports.get) * - * @param string $date - * Represents the date in yyyy-mm-dd format for which the data is to be fetched. + * @param string $date Represents the date in yyyy-mm-dd format for which the + * data is to be fetched. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. - * @opt_param string parameters - * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, - * app_name2:param_name2. + * @opt_param string pageToken Token to specify next page. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. + * @opt_param string parameters Represents the application name, parameter name + * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. * @return Google_Service_Reports_UsageReports */ public function get($date, $optParams = array()) @@ -414,23 +409,21 @@ class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Res * Retrieves a report which is a collection of properties / statistics for a set * of users. (userUsageReport.get) * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. - * @param string $date - * Represents the date in yyyy-mm-dd format for which the data is to be fetched. + * @param string $userKey Represents the profile id or the user email for which + * the data should be filtered. + * @param string $date Represents the date in yyyy-mm-dd format for which the + * data is to be fetched. * @param array $optParams Optional parameters. * - * @opt_param string parameters - * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, - * app_name2:param_name2. - * @opt_param string maxResults - * Maximum number of results to return. Maximum allowed is 1000 - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Represents the set of filters including parameter operator value. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. + * @opt_param string parameters Represents the application name, parameter name + * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. + * @opt_param string maxResults Maximum number of results to return. Maximum + * allowed is 1000 + * @opt_param string pageToken Token to specify next page. + * @opt_param string filters Represents the set of filters including parameter + * operator value. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. * @return Google_Service_Reports_UsageReports */ public function get($userKey, $date, $optParams = array()) @@ -455,11 +448,11 @@ class Google_Service_Reports_Activities extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -468,7 +461,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -477,7 +469,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -486,12 +477,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Reports_Activity extends Google_Collection @@ -510,11 +499,11 @@ class Google_Service_Reports_Activity extends Google_Collection public $kind; public $ownerDomain; + public function setActor(Google_Service_Reports_ActivityActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -523,7 +512,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -532,7 +520,6 @@ public function setEvents($events) { $this->events = $events; } - public function getEvents() { return $this->events; @@ -541,7 +528,6 @@ public function setId(Google_Service_Reports_ActivityId $id) { $this->id = $id; } - public function getId() { return $this->id; @@ -550,7 +536,6 @@ public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } - public function getIpAddress() { return $this->ipAddress; @@ -559,7 +544,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -568,12 +552,10 @@ public function setOwnerDomain($ownerDomain) { $this->ownerDomain = $ownerDomain; } - public function getOwnerDomain() { return $this->ownerDomain; } - } class Google_Service_Reports_ActivityActor extends Google_Model @@ -585,11 +567,11 @@ class Google_Service_Reports_ActivityActor extends Google_Model public $key; public $profileId; + public function setCallerType($callerType) { $this->callerType = $callerType; } - public function getCallerType() { return $this->callerType; @@ -598,7 +580,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -607,7 +588,6 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -616,12 +596,10 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; } - } class Google_Service_Reports_ActivityEvents extends Google_Collection @@ -634,11 +612,11 @@ class Google_Service_Reports_ActivityEvents extends Google_Collection protected $parametersDataType = 'array'; public $type; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -647,7 +625,6 @@ public function setParameters($parameters) { $this->parameters = $parameters; } - public function getParameters() { return $this->parameters; @@ -656,12 +633,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Reports_ActivityEventsParameters extends Google_Collection @@ -676,11 +651,11 @@ class Google_Service_Reports_ActivityEventsParameters extends Google_Collection public $name; public $value; + public function setBoolValue($boolValue) { $this->boolValue = $boolValue; } - public function getBoolValue() { return $this->boolValue; @@ -689,7 +664,6 @@ public function setIntValue($intValue) { $this->intValue = $intValue; } - public function getIntValue() { return $this->intValue; @@ -698,7 +672,6 @@ public function setMultiIntValue($multiIntValue) { $this->multiIntValue = $multiIntValue; } - public function getMultiIntValue() { return $this->multiIntValue; @@ -707,7 +680,6 @@ public function setMultiValue($multiValue) { $this->multiValue = $multiValue; } - public function getMultiValue() { return $this->multiValue; @@ -716,7 +688,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -725,12 +696,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Reports_ActivityId extends Google_Model @@ -742,11 +711,11 @@ class Google_Service_Reports_ActivityId extends Google_Model public $time; public $uniqueQualifier; + public function setApplicationName($applicationName) { $this->applicationName = $applicationName; } - public function getApplicationName() { return $this->applicationName; @@ -755,7 +724,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -764,7 +732,6 @@ public function setTime($time) { $this->time = $time; } - public function getTime() { return $this->time; @@ -773,12 +740,10 @@ public function setUniqueQualifier($uniqueQualifier) { $this->uniqueQualifier = $uniqueQualifier; } - public function getUniqueQualifier() { return $this->uniqueQualifier; } - } class Google_Service_Reports_Channel extends Google_Model @@ -796,11 +761,11 @@ class Google_Service_Reports_Channel extends Google_Model public $token; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -809,7 +774,6 @@ public function setExpiration($expiration) { $this->expiration = $expiration; } - public function getExpiration() { return $this->expiration; @@ -818,7 +782,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -827,7 +790,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -836,7 +798,6 @@ public function setParams($params) { $this->params = $params; } - public function getParams() { return $this->params; @@ -845,7 +806,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -854,7 +814,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -863,7 +822,6 @@ public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; } - public function getResourceUri() { return $this->resourceUri; @@ -872,7 +830,6 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -881,20 +838,14 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Reports_ChannelParams extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Reports_UsageReport extends Google_Collection @@ -910,11 +861,11 @@ class Google_Service_Reports_UsageReport extends Google_Collection protected $parametersType = 'Google_Service_Reports_UsageReportParameters'; protected $parametersDataType = 'array'; + public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -923,7 +874,6 @@ public function setEntity(Google_Service_Reports_UsageReportEntity $entity) { $this->entity = $entity; } - public function getEntity() { return $this->entity; @@ -932,7 +882,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -941,7 +890,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -950,12 +898,10 @@ public function setParameters($parameters) { $this->parameters = $parameters; } - public function getParameters() { return $this->parameters; } - } class Google_Service_Reports_UsageReportEntity extends Google_Model @@ -967,11 +913,11 @@ class Google_Service_Reports_UsageReportEntity extends Google_Model public $type; public $userEmail; + public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -980,7 +926,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -989,7 +934,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -998,12 +942,10 @@ public function setUserEmail($userEmail) { $this->userEmail = $userEmail; } - public function getUserEmail() { return $this->userEmail; } - } class Google_Service_Reports_UsageReportParameters extends Google_Collection @@ -1018,11 +960,11 @@ class Google_Service_Reports_UsageReportParameters extends Google_Collection public $name; public $stringValue; + public function setBoolValue($boolValue) { $this->boolValue = $boolValue; } - public function getBoolValue() { return $this->boolValue; @@ -1031,7 +973,6 @@ public function setDatetimeValue($datetimeValue) { $this->datetimeValue = $datetimeValue; } - public function getDatetimeValue() { return $this->datetimeValue; @@ -1040,7 +981,6 @@ public function setIntValue($intValue) { $this->intValue = $intValue; } - public function getIntValue() { return $this->intValue; @@ -1049,7 +989,6 @@ public function setMsgValue($msgValue) { $this->msgValue = $msgValue; } - public function getMsgValue() { return $this->msgValue; @@ -1058,7 +997,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1067,20 +1005,14 @@ public function setStringValue($stringValue) { $this->stringValue = $stringValue; } - public function getStringValue() { return $this->stringValue; } - } class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Reports_UsageReports extends Google_Collection @@ -1096,11 +1028,11 @@ class Google_Service_Reports_UsageReports extends Google_Collection protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings'; protected $warningsDataType = 'array'; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1109,7 +1041,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1118,7 +1049,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1127,7 +1057,6 @@ public function setUsageReports($usageReports) { $this->usageReports = $usageReports; } - public function getUsageReports() { return $this->usageReports; @@ -1136,12 +1065,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_Reports_UsageReportsWarnings extends Google_Collection @@ -1154,11 +1081,11 @@ class Google_Service_Reports_UsageReportsWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1167,7 +1094,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1176,12 +1102,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Reports_UsageReportsWarningsData extends Google_Model @@ -1191,11 +1115,11 @@ class Google_Service_Reports_UsageReportsWarningsData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1204,10 +1128,8 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } From 8ffaa0c18c8512d39700c901cc170a1d3e135ddd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:41 -0800 Subject: [PATCH 0481/1274] Updated Resourceviews.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Resourceviews.php | 279 +++++++++------------------ 1 file changed, 93 insertions(+), 186 deletions(-) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 6ba32e704..10eb4b115 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -19,8 +19,8 @@ * Service definition for Resourceviews (v1beta2). * *

- * The Resource View API allows users to create and manage logical sets of Google Compute Engine instances. - *

+ * The Resource View API allows users to create and manage logical sets of + * Google Compute Engine instances.

* *

* For more information about this service, see the API @@ -32,15 +32,20 @@ class Google_Service_Resourceviews extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; + const COMPUTE = + "https://www.googleapis.com/auth/compute"; /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + const COMPUTE_READONLY = + "https://www.googleapis.com/auth/compute.readonly"; /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; public $zoneOperations; public $zoneViews; @@ -346,12 +351,9 @@ class Google_Service_Resourceviews_ZoneOperations_Resource extends Google_Servic * 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 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_Resourceviews_Operation */ @@ -361,24 +363,21 @@ public function get($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Resourceviews_Operation"); } + /** * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Resourceviews_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -403,12 +402,9 @@ class Google_Service_Resourceviews_ZoneViews_Resource extends Google_Service_Res /** * Add resources to the view. (zoneViews.addResources) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param Google_ZoneViewsAddResourcesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_Operation @@ -419,15 +415,13 @@ public function addResources($project, $zone, $resourceView, Google_Service_Reso $params = array_merge($params, $optParams); return $this->call('addResources', array($params), "Google_Service_Resourceviews_Operation"); } + /** * Delete a resource view. (zoneViews.delete) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_Operation */ @@ -437,15 +431,13 @@ public function delete($project, $zone, $resourceView, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Resourceviews_Operation"); } + /** * Get the information of a zonal resource view. (zoneViews.get) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_ResourceView */ @@ -455,20 +447,18 @@ public function get($project, $zone, $resourceView, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); } + /** * Get the service information of a resource view or a resource. * (zoneViews.getService) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param array $optParams Optional parameters. * - * @opt_param string resourceName - * The name of the resource if user wants to get the service information of the resource. + * @opt_param string resourceName The name of the resource if user wants to get + * the service information of the resource. * @return Google_Service_Resourceviews_ZoneViewsGetServiceResponse */ public function getService($project, $zone, $resourceView, $optParams = array()) @@ -477,13 +467,12 @@ public function getService($project, $zone, $resourceView, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getService', array($params), "Google_Service_Resourceviews_ZoneViewsGetServiceResponse"); } + /** * Create a resource view. (zoneViews.insert) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. * @param Google_ResourceView $postBody * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_Operation @@ -494,21 +483,19 @@ public function insert($project, $zone, Google_Service_Resourceviews_ResourceVie $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Resourceviews_Operation"); } + /** * List resource views. (zoneViews.listZoneViews) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 5000, inclusive. (Default: 5000) * @return Google_Service_Resourceviews_ZoneViewsList */ public function listZoneViews($project, $zone, $optParams = array()) @@ -517,32 +504,28 @@ public function listZoneViews($project, $zone, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsList"); } + /** * List the resources of the resource view. (zoneViews.listResources) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param array $optParams Optional parameters. * - * @opt_param string listState - * The state of the instance to list. By default, it lists all instances. - * @opt_param string format - * The requested format of the return value. It can be URL or URL_PORT. A JSON object will be - * included in the response based on the format. The default format is NONE, which results in no - * JSON in the response. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param string serviceName - * The service name to return in the response. It is optional and if it is not set, all the service - * end points will be returned. + * @opt_param string listState The state of the instance to list. By default, it + * lists all instances. + * @opt_param string format The requested format of the return value. It can be + * URL or URL_PORT. A JSON object will be included in the response based on the + * format. The default format is NONE, which results in no JSON in the response. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 5000, inclusive. (Default: 5000) + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param string serviceName The service name to return in the response. It + * is optional and if it is not set, all the service end points will be + * returned. * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse */ public function listResources($project, $zone, $resourceView, $optParams = array()) @@ -551,15 +534,13 @@ public function listResources($project, $zone, $resourceView, $optParams = array $params = array_merge($params, $optParams); return $this->call('listResources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); } + /** * Remove resources from the view. (zoneViews.removeResources) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param Google_ZoneViewsRemoveResourcesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_Operation @@ -570,16 +551,14 @@ public function removeResources($project, $zone, $resourceView, Google_Service_R $params = array_merge($params, $optParams); return $this->call('removeResources', array($params), "Google_Service_Resourceviews_Operation"); } + /** * Update the service information of a resource view or a resource. * (zoneViews.setService) * - * @param string $project - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceView - * The name of the resource view. + * @param string $project The project name of the resource view. + * @param string $zone The zone name of the resource view. + * @param string $resourceView The name of the resource view. * @param Google_ZoneViewsSetServiceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Resourceviews_Operation @@ -602,11 +581,11 @@ class Google_Service_Resourceviews_Label extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -615,12 +594,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model @@ -630,11 +607,11 @@ class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model public $endpoints; public $resource; + public function setEndpoints($endpoints) { $this->endpoints = $endpoints; } - public function getEndpoints() { return $this->endpoints; @@ -643,20 +620,14 @@ public function setResource($resource) { $this->resource = $resource; } - public function getResource() { return $this->resource; } - } class Google_Service_Resourceviews_ListResourceResponseItemEndpoints extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Resourceviews_Operation extends Google_Collection @@ -689,11 +660,11 @@ class Google_Service_Resourceviews_Operation extends Google_Collection protected $warningsDataType = 'array'; public $zone; + public function setClientOperationId($clientOperationId) { $this->clientOperationId = $clientOperationId; } - public function getClientOperationId() { return $this->clientOperationId; @@ -702,7 +673,6 @@ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -711,7 +681,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -720,7 +689,6 @@ public function setError(Google_Service_Resourceviews_OperationError $error) { $this->error = $error; } - public function getError() { return $this->error; @@ -729,7 +697,6 @@ public function setHttpErrorMessage($httpErrorMessage) { $this->httpErrorMessage = $httpErrorMessage; } - public function getHttpErrorMessage() { return $this->httpErrorMessage; @@ -738,7 +705,6 @@ public function setHttpErrorStatusCode($httpErrorStatusCode) { $this->httpErrorStatusCode = $httpErrorStatusCode; } - public function getHttpErrorStatusCode() { return $this->httpErrorStatusCode; @@ -747,7 +713,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -756,7 +721,6 @@ public function setInsertTime($insertTime) { $this->insertTime = $insertTime; } - public function getInsertTime() { return $this->insertTime; @@ -765,7 +729,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -774,7 +737,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -783,7 +745,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -792,7 +753,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -801,7 +761,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -810,7 +769,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -819,7 +777,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -828,7 +785,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -837,7 +793,6 @@ public function setStatusMessage($statusMessage) { $this->statusMessage = $statusMessage; } - public function getStatusMessage() { return $this->statusMessage; @@ -846,7 +801,6 @@ public function setTargetId($targetId) { $this->targetId = $targetId; } - public function getTargetId() { return $this->targetId; @@ -855,7 +809,6 @@ public function setTargetLink($targetLink) { $this->targetLink = $targetLink; } - public function getTargetLink() { return $this->targetLink; @@ -864,7 +817,6 @@ public function setUser($user) { $this->user = $user; } - public function getUser() { return $this->user; @@ -873,7 +825,6 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; @@ -882,12 +833,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_Resourceviews_OperationError extends Google_Collection @@ -898,16 +847,15 @@ class Google_Service_Resourceviews_OperationError extends Google_Collection protected $errorsType = 'Google_Service_Resourceviews_OperationErrorErrors'; protected $errorsDataType = 'array'; + public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; } - } class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model @@ -918,11 +866,11 @@ class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model public $location; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -931,7 +879,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -940,12 +887,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Resourceviews_OperationList extends Google_Collection @@ -960,11 +905,11 @@ class Google_Service_Resourceviews_OperationList extends Google_Collection public $nextPageToken; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -973,7 +918,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -982,7 +926,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -991,7 +934,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1000,12 +942,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Resourceviews_OperationWarnings extends Google_Collection @@ -1018,11 +958,11 @@ class Google_Service_Resourceviews_OperationWarnings extends Google_Collection protected $dataDataType = 'array'; public $message; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1031,7 +971,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1040,12 +979,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Resourceviews_OperationWarningsData extends Google_Model @@ -1055,11 +992,11 @@ class Google_Service_Resourceviews_OperationWarningsData extends Google_Model public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1068,12 +1005,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Resourceviews_ResourceView extends Google_Collection @@ -1096,11 +1031,11 @@ class Google_Service_Resourceviews_ResourceView extends Google_Collection public $selfLink; public $size; + public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } - public function getCreationTimestamp() { return $this->creationTimestamp; @@ -1109,7 +1044,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1118,7 +1052,6 @@ public function setEndpoints($endpoints) { $this->endpoints = $endpoints; } - public function getEndpoints() { return $this->endpoints; @@ -1127,7 +1060,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -1136,7 +1068,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1145,7 +1076,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1154,7 +1084,6 @@ public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -1163,7 +1092,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1172,7 +1100,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -1181,7 +1108,6 @@ public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; @@ -1190,7 +1116,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1199,12 +1124,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model @@ -1214,11 +1137,11 @@ class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model public $name; public $port; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1227,12 +1150,10 @@ public function setPort($port) { $this->port = $port; } - public function getPort() { return $this->port; } - } class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection @@ -1242,16 +1163,15 @@ class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_C ); public $resources; + public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection @@ -1263,11 +1183,11 @@ class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Co protected $endpointsDataType = 'array'; public $fingerprint; + public function setEndpoints($endpoints) { $this->endpoints = $endpoints; } - public function getEndpoints() { return $this->endpoints; @@ -1276,12 +1196,10 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; } - } class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection @@ -1295,11 +1213,11 @@ class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection public $nextPageToken; public $selfLink; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1308,7 +1226,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1317,7 +1234,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1326,12 +1242,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection @@ -1344,11 +1258,11 @@ class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google public $network; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1357,7 +1271,6 @@ public function setNetwork($network) { $this->network = $network; } - public function getNetwork() { return $this->network; @@ -1366,12 +1279,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection @@ -1381,16 +1292,15 @@ class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Googl ); public $resources; + public function setResources($resources) { $this->resources = $resources; } - public function getResources() { return $this->resources; } - } class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection @@ -1403,11 +1313,11 @@ class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Col public $fingerprint; public $resourceName; + public function setEndpoints($endpoints) { $this->endpoints = $endpoints; } - public function getEndpoints() { return $this->endpoints; @@ -1416,7 +1326,6 @@ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } - public function getFingerprint() { return $this->fingerprint; @@ -1425,10 +1334,8 @@ public function setResourceName($resourceName) { $this->resourceName = $resourceName; } - public function getResourceName() { return $this->resourceName; } - } From 780a4a935c3d908dc6fb5fd13f8ca8d34c5a44c5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:42 -0800 Subject: [PATCH 0482/1274] Updated PlusDomains.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/PlusDomains.php | 610 ++++++++--------------------- 1 file changed, 174 insertions(+), 436 deletions(-) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index 6c40525a7..ad5955044 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -19,8 +19,7 @@ * Service definition for PlusDomains (v1). * *

- * The Google+ API enables developers to build on top of the Google+ platform. - *

+ * The Google+ API enables developers to build on top of the Google+ platform.

* *

* For more information about this service, see the API @@ -32,25 +31,35 @@ class Google_Service_PlusDomains extends Google_Service { /** View your circles and the people and pages in them. */ - const PLUS_CIRCLES_READ = "https://www.googleapis.com/auth/plus.circles.read"; + const PLUS_CIRCLES_READ = + "https://www.googleapis.com/auth/plus.circles.read"; /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ - const PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; + const PLUS_CIRCLES_WRITE = + "https://www.googleapis.com/auth/plus.circles.write"; /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + const PLUS_ME = + "https://www.googleapis.com/auth/plus.me"; /** Send your photos and videos to Google+. */ - const PLUS_MEDIA_UPLOAD = "https://www.googleapis.com/auth/plus.media.upload"; + const PLUS_MEDIA_UPLOAD = + "https://www.googleapis.com/auth/plus.media.upload"; /** View your own Google+ profile and profiles visible to you. */ - const PLUS_PROFILES_READ = "https://www.googleapis.com/auth/plus.profiles.read"; + const PLUS_PROFILES_READ = + "https://www.googleapis.com/auth/plus.profiles.read"; /** View your Google+ posts, comments, and stream. */ - const PLUS_STREAM_READ = "https://www.googleapis.com/auth/plus.stream.read"; + const PLUS_STREAM_READ = + "https://www.googleapis.com/auth/plus.stream.read"; /** Manage your Google+ posts, comments, and stream. */ - const PLUS_STREAM_WRITE = "https://www.googleapis.com/auth/plus.stream.write"; + const PLUS_STREAM_WRITE = + "https://www.googleapis.com/auth/plus.stream.write"; /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; + const USERINFO_PROFILE = + "https://www.googleapis.com/auth/userinfo.profile"; public $activities; public $audiences; @@ -458,8 +467,7 @@ class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Reso /** * Get an activity. (activities.get) * - * @param string $activityId - * The ID of the activity to get. + * @param string $activityId The ID of the activity to get. * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Activity */ @@ -469,19 +477,18 @@ public function get($activityId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_PlusDomains_Activity"); } + /** * Create a new activity for the authenticated user. (activities.insert) * - * @param string $userId - * The ID of the user to create the activity on behalf of. Its value should be "me", to indicate - * the authenticated user. + * @param string $userId The ID of the user to create the activity on behalf of. + * Its value should be "me", to indicate the authenticated user. * @param Google_Activity $postBody * @param array $optParams Optional parameters. * - * @opt_param bool preview - * If "true", extract the potential media attachments for a URL. The response will include all - * possible attachments for a URL, including video, photos, and articles based on the content of - * the page. + * @opt_param bool preview If "true", extract the potential media attachments + * for a URL. The response will include all possible attachments for a URL, + * including video, photos, and articles based on the content of the page. * @return Google_Service_PlusDomains_Activity */ public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array()) @@ -490,23 +497,22 @@ public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity"); } + /** * List all of the activities in the specified collection for a particular user. * (activities.listActivities) * - * @param string $userId - * The ID of the user to get activities for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of activities to list. + * @param string $userId The ID of the user to get activities for. The special + * value "me" can be used to indicate the authenticated user. + * @param string $collection The collection of activities to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of activities to include in + * the response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_ActivityFeed */ public function listActivities($userId, $collection, $optParams = array()) @@ -532,17 +538,16 @@ class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resou * List all of the audiences to which a user can share. * (audiences.listAudiences) * - * @param string $userId - * The ID of the user to get audiences for. The special value "me" can be used to indicate the - * authenticated user. + * @param string $userId The ID of the user to get audiences for. The special + * value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of circles to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of circles to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_AudiencesFeed */ public function listAudiences($userId, $optParams = array()) @@ -568,14 +573,13 @@ class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resourc * Add a person to a circle. Google+ limits certain circle operations, including * the number of circle adds. Learn More. (circles.addPeople) * - * @param string $circleId - * The ID of the circle to add the person to. + * @param string $circleId The ID of the circle to add the person to. * @param array $optParams Optional parameters. * - * @opt_param string userId - * IDs of the people to add to the circle. Optional, can be repeated. - * @opt_param string email - * Email of the people to add to the circle. Optional, can be repeated. + * @opt_param string userId IDs of the people to add to the circle. Optional, + * can be repeated. + * @opt_param string email Email of the people to add to the circle. Optional, + * can be repeated. * @return Google_Service_PlusDomains_Circle */ public function addPeople($circleId, $optParams = array()) @@ -584,11 +588,11 @@ public function addPeople($circleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('addPeople', array($params), "Google_Service_PlusDomains_Circle"); } + /** * Get a circle. (circles.get) * - * @param string $circleId - * The ID of the circle to get. + * @param string $circleId The ID of the circle to get. * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Circle */ @@ -598,12 +602,12 @@ public function get($circleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_PlusDomains_Circle"); } + /** * Create a new circle for the authenticated user. (circles.insert) * - * @param string $userId - * The ID of the user to create the circle on behalf of. The value "me" can be used to indicate the - * authenticated user. + * @param string $userId The ID of the user to create the circle on behalf of. + * The value "me" can be used to indicate the authenticated user. * @param Google_Circle $postBody * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Circle @@ -614,20 +618,20 @@ public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_PlusDomains_Circle"); } + /** * List all of the circles for a user. (circles.listCircles) * - * @param string $userId - * The ID of the user to get circles for. The special value "me" can be used to indicate the - * authenticated user. + * @param string $userId The ID of the user to get circles for. The special + * value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of circles to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of circles to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_CircleFeed */ public function listCircles($userId, $optParams = array()) @@ -636,12 +640,12 @@ public function listCircles($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_PlusDomains_CircleFeed"); } + /** * Update a circle's description. This method supports patch semantics. * (circles.patch) * - * @param string $circleId - * The ID of the circle to update. + * @param string $circleId The ID of the circle to update. * @param Google_Circle $postBody * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Circle @@ -652,11 +656,11 @@ public function patch($circleId, Google_Service_PlusDomains_Circle $postBody, $o $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_PlusDomains_Circle"); } + /** * Delete a circle. (circles.remove) * - * @param string $circleId - * The ID of the circle to delete. + * @param string $circleId The ID of the circle to delete. * @param array $optParams Optional parameters. */ public function remove($circleId, $optParams = array()) @@ -665,17 +669,17 @@ public function remove($circleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('remove', array($params)); } + /** * Remove a person from a circle. (circles.removePeople) * - * @param string $circleId - * The ID of the circle to remove the person from. + * @param string $circleId The ID of the circle to remove the person from. * @param array $optParams Optional parameters. * - * @opt_param string userId - * IDs of the people to remove from the circle. Optional, can be repeated. - * @opt_param string email - * Email of the people to add to the circle. Optional, can be repeated. + * @opt_param string userId IDs of the people to remove from the circle. + * Optional, can be repeated. + * @opt_param string email Email of the people to add to the circle. Optional, + * can be repeated. */ public function removePeople($circleId, $optParams = array()) { @@ -683,11 +687,11 @@ public function removePeople($circleId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('removePeople', array($params)); } + /** * Update a circle's description. (circles.update) * - * @param string $circleId - * The ID of the circle to update. + * @param string $circleId The ID of the circle to update. * @param Google_Circle $postBody * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Circle @@ -714,8 +718,7 @@ class Google_Service_PlusDomains_Comments_Resource extends Google_Service_Resour /** * Get a comment. (comments.get) * - * @param string $commentId - * The ID of the comment to get. + * @param string $commentId The ID of the comment to get. * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Comment */ @@ -725,11 +728,11 @@ public function get($commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_PlusDomains_Comment"); } + /** * Create a new comment in reply to an activity. (comments.insert) * - * @param string $activityId - * The ID of the activity to reply to. + * @param string $activityId The ID of the activity to reply to. * @param Google_Comment $postBody * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Comment @@ -740,21 +743,20 @@ public function insert($activityId, Google_Service_PlusDomains_Comment $postBody $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_PlusDomains_Comment"); } + /** * List all of the comments for an activity. (comments.listComments) * - * @param string $activityId - * The ID of the activity to get comments for. + * @param string $activityId The ID of the activity to get comments for. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string sortOrder - * The order in which to sort the list of comments. - * @opt_param string maxResults - * The maximum number of comments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string sortOrder The order in which to sort the list of comments. + * @opt_param string maxResults The maximum number of comments to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_CommentFeed */ public function listComments($activityId, $optParams = array()) @@ -782,10 +784,8 @@ class Google_Service_PlusDomains_Media_Resource extends Google_Service_Resource * photos are less than 2048 pixels on their longest side or videos are less * than 15 minutes in length. (media.insert) * - * @param string $userId - * The ID of the user to create the activity on behalf of. + * @param string $userId The ID of the user to create the activity on behalf of. * @param string $collection - * * @param Google_Media $postBody * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Media @@ -812,9 +812,8 @@ class Google_Service_PlusDomains_People_Resource extends Google_Service_Resource /** * Get a person's profile. (people.get) * - * @param string $userId - * The ID of the person to get the profile for. The special value "me" can be used to indicate the - * authenticated user. + * @param string $userId The ID of the person to get the profile for. The + * special value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * @return Google_Service_PlusDomains_Person */ @@ -824,24 +823,22 @@ public function get($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_PlusDomains_Person"); } + /** * List all of the people in the specified collection. (people.listPeople) * - * @param string $userId - * Get the collection of people for the person identified. Use "me" to indicate the authenticated - * user. - * @param string $collection - * The collection of people to list. + * @param string $userId Get the collection of people for the person identified. + * Use "me" to indicate the authenticated user. + * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * The order to return people in. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string orderBy The order to return people in. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_PeopleFeed */ public function listPeople($userId, $collection, $optParams = array()) @@ -850,22 +847,22 @@ public function listPeople($userId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed"); } + /** * List all of the people in the specified collection for a particular activity. * (people.listByActivity) * - * @param string $activityId - * The ID of the activity to get the list of people for. - * @param string $collection - * The collection of people to list. + * @param string $activityId The ID of the activity to get the list of people + * for. + * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_PeopleFeed */ public function listByActivity($activityId, $collection, $optParams = array()) @@ -874,19 +871,19 @@ public function listByActivity($activityId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed"); } + /** * List all of the people who are members of a circle. (people.listByCircle) * - * @param string $circleId - * The ID of the circle to get the members of. + * @param string $circleId The ID of the circle to get the members of. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_PeopleFeed */ public function listByCircle($circleId, $optParams = array()) @@ -911,11 +908,11 @@ class Google_Service_PlusDomains_Acl extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -924,7 +921,6 @@ public function setDomainRestricted($domainRestricted) { $this->domainRestricted = $domainRestricted; } - public function getDomainRestricted() { return $this->domainRestricted; @@ -933,7 +929,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -942,12 +937,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_PlusDomains_Activity extends Google_Model @@ -980,11 +973,11 @@ class Google_Service_PlusDomains_Activity extends Google_Model public $url; public $verb; + public function setAccess(Google_Service_PlusDomains_Acl $access) { $this->access = $access; } - public function getAccess() { return $this->access; @@ -993,7 +986,6 @@ public function setActor(Google_Service_PlusDomains_ActivityActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -1002,7 +994,6 @@ public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -1011,7 +1002,6 @@ public function setAnnotation($annotation) { $this->annotation = $annotation; } - public function getAnnotation() { return $this->annotation; @@ -1020,7 +1010,6 @@ public function setCrosspostSource($crosspostSource) { $this->crosspostSource = $crosspostSource; } - public function getCrosspostSource() { return $this->crosspostSource; @@ -1029,7 +1018,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1038,7 +1026,6 @@ public function setGeocode($geocode) { $this->geocode = $geocode; } - public function getGeocode() { return $this->geocode; @@ -1047,7 +1034,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1056,7 +1042,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1065,7 +1050,6 @@ public function setLocation(Google_Service_PlusDomains_Place $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1074,7 +1058,6 @@ public function setObject(Google_Service_PlusDomains_ActivityObject $object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -1083,7 +1066,6 @@ public function setPlaceId($placeId) { $this->placeId = $placeId; } - public function getPlaceId() { return $this->placeId; @@ -1092,7 +1074,6 @@ public function setPlaceName($placeName) { $this->placeName = $placeName; } - public function getPlaceName() { return $this->placeName; @@ -1101,7 +1082,6 @@ public function setProvider(Google_Service_PlusDomains_ActivityProvider $provide { $this->provider = $provider; } - public function getProvider() { return $this->provider; @@ -1110,7 +1090,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -1119,7 +1098,6 @@ public function setRadius($radius) { $this->radius = $radius; } - public function getRadius() { return $this->radius; @@ -1128,7 +1106,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1137,7 +1114,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -1146,7 +1122,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1155,12 +1130,10 @@ public function setVerb($verb) { $this->verb = $verb; } - public function getVerb() { return $this->verb; } - } class Google_Service_PlusDomains_ActivityActor extends Google_Model @@ -1175,11 +1148,11 @@ class Google_Service_PlusDomains_ActivityActor extends Google_Model protected $nameDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1188,7 +1161,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1197,7 +1169,6 @@ public function setImage(Google_Service_PlusDomains_ActivityActorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -1206,7 +1177,6 @@ public function setName(Google_Service_PlusDomains_ActivityActorName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1215,12 +1185,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityActorImage extends Google_Model @@ -1229,16 +1197,15 @@ class Google_Service_PlusDomains_ActivityActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityActorName extends Google_Model @@ -1248,11 +1215,11 @@ class Google_Service_PlusDomains_ActivityActorName extends Google_Model public $familyName; public $givenName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -1261,12 +1228,10 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; } - } class Google_Service_PlusDomains_ActivityFeed extends Google_Collection @@ -1285,11 +1250,11 @@ class Google_Service_PlusDomains_ActivityFeed extends Google_Collection public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1298,7 +1263,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1307,7 +1271,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1316,7 +1279,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1325,7 +1287,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -1334,7 +1295,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1343,7 +1303,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1352,7 +1311,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1361,12 +1319,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_PlusDomains_ActivityObject extends Google_Collection @@ -1392,11 +1348,11 @@ class Google_Service_PlusDomains_ActivityObject extends Google_Collection protected $statusForViewerDataType = ''; public $url; + public function setActor(Google_Service_PlusDomains_ActivityObjectActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -1405,7 +1361,6 @@ public function setAttachments($attachments) { $this->attachments = $attachments; } - public function getAttachments() { return $this->attachments; @@ -1414,7 +1369,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -1423,7 +1377,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1432,7 +1385,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -1441,7 +1393,6 @@ public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; } - public function getOriginalContent() { return $this->originalContent; @@ -1450,7 +1401,6 @@ public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners { $this->plusoners = $plusoners; } - public function getPlusoners() { return $this->plusoners; @@ -1459,7 +1409,6 @@ public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $rep { $this->replies = $replies; } - public function getReplies() { return $this->replies; @@ -1468,7 +1417,6 @@ public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers { $this->resharers = $resharers; } - public function getResharers() { return $this->resharers; @@ -1477,7 +1425,6 @@ public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStat { $this->statusForViewer = $statusForViewer; } - public function getStatusForViewer() { return $this->statusForViewer; @@ -1486,12 +1433,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model @@ -1504,11 +1449,11 @@ class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1517,7 +1462,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1526,7 +1470,6 @@ public function setImage(Google_Service_PlusDomains_ActivityObjectActorImage $im { $this->image = $image; } - public function getImage() { return $this->image; @@ -1535,12 +1478,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model @@ -1549,16 +1490,15 @@ class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection @@ -1582,11 +1522,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collec protected $thumbnailsDataType = 'array'; public $url; + public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -1595,7 +1535,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1604,7 +1543,6 @@ public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmb { $this->embed = $embed; } - public function getEmbed() { return $this->embed; @@ -1613,7 +1551,6 @@ public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachment { $this->fullImage = $fullImage; } - public function getFullImage() { return $this->fullImage; @@ -1622,7 +1559,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1631,7 +1567,6 @@ public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsIma { $this->image = $image; } - public function getImage() { return $this->image; @@ -1640,7 +1575,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -1649,7 +1583,6 @@ public function setPreviewThumbnails($previewThumbnails) { $this->previewThumbnails = $previewThumbnails; } - public function getPreviewThumbnails() { return $this->previewThumbnails; @@ -1658,7 +1591,6 @@ public function setThumbnails($thumbnails) { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -1667,12 +1599,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model @@ -1682,11 +1612,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_M public $type; public $url; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1695,12 +1625,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model @@ -1712,11 +1640,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Goog public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1725,7 +1653,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1734,7 +1661,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1743,12 +1669,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model @@ -1760,11 +1684,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_M public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1773,7 +1697,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1782,7 +1705,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1791,12 +1713,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model @@ -1805,16 +1725,15 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails exte ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model @@ -1826,11 +1745,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Goo protected $imageDataType = ''; public $url; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1839,7 +1758,6 @@ public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThu { $this->image = $image; } - public function getImage() { return $this->image; @@ -1848,12 +1766,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model @@ -1865,11 +1781,11 @@ class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extend public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1878,7 +1794,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1887,7 +1802,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1896,12 +1810,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model @@ -1911,11 +1823,11 @@ class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1924,12 +1836,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model @@ -1939,11 +1849,11 @@ class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1952,12 +1862,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model @@ -1967,11 +1875,11 @@ class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1980,12 +1888,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model @@ -1998,11 +1904,11 @@ class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Mo public $isPlusOned; public $resharingDisabled; + public function setCanComment($canComment) { $this->canComment = $canComment; } - public function getCanComment() { return $this->canComment; @@ -2011,7 +1917,6 @@ public function setCanPlusone($canPlusone) { $this->canPlusone = $canPlusone; } - public function getCanPlusone() { return $this->canPlusone; @@ -2020,7 +1925,6 @@ public function setCanUpdate($canUpdate) { $this->canUpdate = $canUpdate; } - public function getCanUpdate() { return $this->canUpdate; @@ -2029,7 +1933,6 @@ public function setIsPlusOned($isPlusOned) { $this->isPlusOned = $isPlusOned; } - public function getIsPlusOned() { return $this->isPlusOned; @@ -2038,12 +1941,10 @@ public function setResharingDisabled($resharingDisabled) { $this->resharingDisabled = $resharingDisabled; } - public function getResharingDisabled() { return $this->resharingDisabled; } - } class Google_Service_PlusDomains_ActivityProvider extends Google_Model @@ -2052,16 +1953,15 @@ class Google_Service_PlusDomains_ActivityProvider extends Google_Model ); public $title; + public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_PlusDomains_Audience extends Google_Model @@ -2075,11 +1975,11 @@ class Google_Service_PlusDomains_Audience extends Google_Model public $memberCount; public $visibility; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2088,7 +1988,6 @@ public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $ { $this->item = $item; } - public function getItem() { return $this->item; @@ -2097,7 +1996,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2106,7 +2004,6 @@ public function setMemberCount($memberCount) { $this->memberCount = $memberCount; } - public function getMemberCount() { return $this->memberCount; @@ -2115,12 +2012,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection @@ -2135,11 +2030,11 @@ class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection public $nextPageToken; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2148,7 +2043,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2157,7 +2051,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2166,7 +2059,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2175,12 +2067,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_Circle extends Google_Model @@ -2196,11 +2086,11 @@ class Google_Service_PlusDomains_Circle extends Google_Model protected $peopleDataType = ''; public $selfLink; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2209,7 +2099,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2218,7 +2107,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2227,7 +2115,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2236,7 +2123,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2245,7 +2131,6 @@ public function setPeople(Google_Service_PlusDomains_CirclePeople $people) { $this->people = $people; } - public function getPeople() { return $this->people; @@ -2254,12 +2139,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_PlusDomains_CircleFeed extends Google_Collection @@ -2277,11 +2160,11 @@ class Google_Service_PlusDomains_CircleFeed extends Google_Collection public $title; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2290,7 +2173,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2299,7 +2181,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2308,7 +2189,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -2317,7 +2197,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2326,7 +2205,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2335,7 +2213,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2344,12 +2221,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_CirclePeople extends Google_Model @@ -2358,16 +2233,15 @@ class Google_Service_PlusDomains_CirclePeople extends Google_Model ); public $totalItems; + public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_Comment extends Google_Collection @@ -2391,11 +2265,11 @@ class Google_Service_PlusDomains_Comment extends Google_Collection public $updated; public $verb; + public function setActor(Google_Service_PlusDomains_CommentActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -2404,7 +2278,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2413,7 +2286,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2422,7 +2294,6 @@ public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; } - public function getInReplyTo() { return $this->inReplyTo; @@ -2431,7 +2302,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2440,7 +2310,6 @@ public function setObject(Google_Service_PlusDomains_CommentObject $object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -2449,7 +2318,6 @@ public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $pluson { $this->plusoners = $plusoners; } - public function getPlusoners() { return $this->plusoners; @@ -2458,7 +2326,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -2467,7 +2334,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2476,7 +2342,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2485,12 +2350,10 @@ public function setVerb($verb) { $this->verb = $verb; } - public function getVerb() { return $this->verb; } - } class Google_Service_PlusDomains_CommentActor extends Google_Model @@ -2503,11 +2366,11 @@ class Google_Service_PlusDomains_CommentActor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2516,7 +2379,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2525,7 +2387,6 @@ public function setImage(Google_Service_PlusDomains_CommentActorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2534,12 +2395,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_CommentActorImage extends Google_Model @@ -2548,16 +2407,15 @@ class Google_Service_PlusDomains_CommentActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_CommentFeed extends Google_Collection @@ -2575,11 +2433,11 @@ class Google_Service_PlusDomains_CommentFeed extends Google_Collection public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2588,7 +2446,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2597,7 +2454,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2606,7 +2462,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2615,7 +2470,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -2624,7 +2478,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2633,7 +2486,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2642,12 +2494,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model @@ -2657,11 +2507,11 @@ class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model public $id; public $url; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2670,12 +2520,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_CommentObject extends Google_Model @@ -2686,11 +2534,11 @@ class Google_Service_PlusDomains_CommentObject extends Google_Model public $objectType; public $originalContent; + public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -2699,7 +2547,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -2708,12 +2555,10 @@ public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; } - public function getOriginalContent() { return $this->originalContent; } - } class Google_Service_PlusDomains_CommentPlusoners extends Google_Model @@ -2722,16 +2567,15 @@ class Google_Service_PlusDomains_CommentPlusoners extends Google_Model ); public $totalItems; + public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_Media extends Google_Collection @@ -2761,11 +2605,11 @@ class Google_Service_PlusDomains_Media extends Google_Collection public $videoStatus; public $width; + public function setAuthor(Google_Service_PlusDomains_MediaAuthor $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2774,7 +2618,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2783,7 +2626,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2792,7 +2634,6 @@ public function setExif(Google_Service_PlusDomains_MediaExif $exif) { $this->exif = $exif; } - public function getExif() { return $this->exif; @@ -2801,7 +2642,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -2810,7 +2650,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2819,7 +2658,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2828,7 +2666,6 @@ public function setMediaCreatedTime($mediaCreatedTime) { $this->mediaCreatedTime = $mediaCreatedTime; } - public function getMediaCreatedTime() { return $this->mediaCreatedTime; @@ -2837,7 +2674,6 @@ public function setMediaUrl($mediaUrl) { $this->mediaUrl = $mediaUrl; } - public function getMediaUrl() { return $this->mediaUrl; @@ -2846,7 +2682,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -2855,7 +2690,6 @@ public function setSizeBytes($sizeBytes) { $this->sizeBytes = $sizeBytes; } - public function getSizeBytes() { return $this->sizeBytes; @@ -2864,7 +2698,6 @@ public function setStreams($streams) { $this->streams = $streams; } - public function getStreams() { return $this->streams; @@ -2873,7 +2706,6 @@ public function setSummary($summary) { $this->summary = $summary; } - public function getSummary() { return $this->summary; @@ -2882,7 +2714,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -2891,7 +2722,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -2900,7 +2730,6 @@ public function setVideoDuration($videoDuration) { $this->videoDuration = $videoDuration; } - public function getVideoDuration() { return $this->videoDuration; @@ -2909,7 +2738,6 @@ public function setVideoStatus($videoStatus) { $this->videoStatus = $videoStatus; } - public function getVideoStatus() { return $this->videoStatus; @@ -2918,12 +2746,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_PlusDomains_MediaAuthor extends Google_Model @@ -2936,11 +2762,11 @@ class Google_Service_PlusDomains_MediaAuthor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2949,7 +2775,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2958,7 +2783,6 @@ public function setImage(Google_Service_PlusDomains_MediaAuthorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2967,12 +2791,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model @@ -2981,16 +2803,15 @@ class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_MediaExif extends Google_Model @@ -2999,16 +2820,15 @@ class Google_Service_PlusDomains_MediaExif extends Google_Model ); public $time; + public function setTime($time) { $this->time = $time; } - public function getTime() { return $this->time; } - } class Google_Service_PlusDomains_PeopleFeed extends Google_Collection @@ -3025,11 +2845,11 @@ class Google_Service_PlusDomains_PeopleFeed extends Google_Collection public $title; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3038,7 +2858,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3047,7 +2866,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3056,7 +2874,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3065,7 +2882,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3074,7 +2890,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3083,12 +2898,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_PlusDomains_Person extends Google_Collection @@ -3132,11 +2945,11 @@ class Google_Service_PlusDomains_Person extends Google_Collection protected $urlsDataType = 'array'; public $verified; + public function setAboutMe($aboutMe) { $this->aboutMe = $aboutMe; } - public function getAboutMe() { return $this->aboutMe; @@ -3145,7 +2958,6 @@ public function setBirthday($birthday) { $this->birthday = $birthday; } - public function getBirthday() { return $this->birthday; @@ -3154,7 +2966,6 @@ public function setBraggingRights($braggingRights) { $this->braggingRights = $braggingRights; } - public function getBraggingRights() { return $this->braggingRights; @@ -3163,7 +2974,6 @@ public function setCircledByCount($circledByCount) { $this->circledByCount = $circledByCount; } - public function getCircledByCount() { return $this->circledByCount; @@ -3172,7 +2982,6 @@ public function setCover(Google_Service_PlusDomains_PersonCover $cover) { $this->cover = $cover; } - public function getCover() { return $this->cover; @@ -3181,7 +2990,6 @@ public function setCurrentLocation($currentLocation) { $this->currentLocation = $currentLocation; } - public function getCurrentLocation() { return $this->currentLocation; @@ -3190,7 +2998,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3199,7 +3006,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -3208,7 +3014,6 @@ public function setEmails($emails) { $this->emails = $emails; } - public function getEmails() { return $this->emails; @@ -3217,7 +3022,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3226,7 +3030,6 @@ public function setGender($gender) { $this->gender = $gender; } - public function getGender() { return $this->gender; @@ -3235,7 +3038,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3244,7 +3046,6 @@ public function setImage(Google_Service_PlusDomains_PersonImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -3253,7 +3054,6 @@ public function setIsPlusUser($isPlusUser) { $this->isPlusUser = $isPlusUser; } - public function getIsPlusUser() { return $this->isPlusUser; @@ -3262,7 +3062,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3271,7 +3070,6 @@ public function setName(Google_Service_PlusDomains_PersonName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3280,7 +3078,6 @@ public function setNickname($nickname) { $this->nickname = $nickname; } - public function getNickname() { return $this->nickname; @@ -3289,7 +3086,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -3298,7 +3094,6 @@ public function setOccupation($occupation) { $this->occupation = $occupation; } - public function getOccupation() { return $this->occupation; @@ -3307,7 +3102,6 @@ public function setOrganizations($organizations) { $this->organizations = $organizations; } - public function getOrganizations() { return $this->organizations; @@ -3316,7 +3110,6 @@ public function setPlacesLived($placesLived) { $this->placesLived = $placesLived; } - public function getPlacesLived() { return $this->placesLived; @@ -3325,7 +3118,6 @@ public function setPlusOneCount($plusOneCount) { $this->plusOneCount = $plusOneCount; } - public function getPlusOneCount() { return $this->plusOneCount; @@ -3334,7 +3126,6 @@ public function setRelationshipStatus($relationshipStatus) { $this->relationshipStatus = $relationshipStatus; } - public function getRelationshipStatus() { return $this->relationshipStatus; @@ -3343,7 +3134,6 @@ public function setSkills($skills) { $this->skills = $skills; } - public function getSkills() { return $this->skills; @@ -3352,7 +3142,6 @@ public function setTagline($tagline) { $this->tagline = $tagline; } - public function getTagline() { return $this->tagline; @@ -3361,7 +3150,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3370,7 +3158,6 @@ public function setUrls($urls) { $this->urls = $urls; } - public function getUrls() { return $this->urls; @@ -3379,12 +3166,10 @@ public function setVerified($verified) { $this->verified = $verified; } - public function getVerified() { return $this->verified; } - } class Google_Service_PlusDomains_PersonCover extends Google_Model @@ -3397,11 +3182,11 @@ class Google_Service_PlusDomains_PersonCover extends Google_Model protected $coverPhotoDataType = ''; public $layout; + public function setCoverInfo(Google_Service_PlusDomains_PersonCoverCoverInfo $coverInfo) { $this->coverInfo = $coverInfo; } - public function getCoverInfo() { return $this->coverInfo; @@ -3410,7 +3195,6 @@ public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $ { $this->coverPhoto = $coverPhoto; } - public function getCoverPhoto() { return $this->coverPhoto; @@ -3419,12 +3203,10 @@ public function setLayout($layout) { $this->layout = $layout; } - public function getLayout() { return $this->layout; } - } class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model @@ -3434,11 +3216,11 @@ class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model public $leftImageOffset; public $topImageOffset; + public function setLeftImageOffset($leftImageOffset) { $this->leftImageOffset = $leftImageOffset; } - public function getLeftImageOffset() { return $this->leftImageOffset; @@ -3447,12 +3229,10 @@ public function setTopImageOffset($topImageOffset) { $this->topImageOffset = $topImageOffset; } - public function getTopImageOffset() { return $this->topImageOffset; } - } class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model @@ -3463,11 +3243,11 @@ class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -3476,7 +3256,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3485,12 +3264,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_PlusDomains_PersonEmails extends Google_Model @@ -3500,11 +3277,11 @@ class Google_Service_PlusDomains_PersonEmails extends Google_Model public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3513,12 +3290,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_PlusDomains_PersonImage extends Google_Model @@ -3528,11 +3303,11 @@ class Google_Service_PlusDomains_PersonImage extends Google_Model public $isDefault; public $url; + public function setIsDefault($isDefault) { $this->isDefault = $isDefault; } - public function getIsDefault() { return $this->isDefault; @@ -3541,12 +3316,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_PlusDomains_PersonName extends Google_Model @@ -3560,11 +3333,11 @@ class Google_Service_PlusDomains_PersonName extends Google_Model public $honorificSuffix; public $middleName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -3573,7 +3346,6 @@ public function setFormatted($formatted) { $this->formatted = $formatted; } - public function getFormatted() { return $this->formatted; @@ -3582,7 +3354,6 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; @@ -3591,7 +3362,6 @@ public function setHonorificPrefix($honorificPrefix) { $this->honorificPrefix = $honorificPrefix; } - public function getHonorificPrefix() { return $this->honorificPrefix; @@ -3600,7 +3370,6 @@ public function setHonorificSuffix($honorificSuffix) { $this->honorificSuffix = $honorificSuffix; } - public function getHonorificSuffix() { return $this->honorificSuffix; @@ -3609,12 +3378,10 @@ public function setMiddleName($middleName) { $this->middleName = $middleName; } - public function getMiddleName() { return $this->middleName; } - } class Google_Service_PlusDomains_PersonOrganizations extends Google_Model @@ -3631,11 +3398,11 @@ class Google_Service_PlusDomains_PersonOrganizations extends Google_Model public $title; public $type; + public function setDepartment($department) { $this->department = $department; } - public function getDepartment() { return $this->department; @@ -3644,7 +3411,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3653,7 +3419,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -3662,7 +3427,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -3671,7 +3435,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3680,7 +3443,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -3689,7 +3451,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -3698,7 +3459,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3707,12 +3467,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model @@ -3722,11 +3480,11 @@ class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model public $primary; public $value; + public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -3735,12 +3493,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_PlusDomains_PersonUrls extends Google_Model @@ -3751,11 +3507,11 @@ class Google_Service_PlusDomains_PersonUrls extends Google_Model public $type; public $value; + public function setLabel($label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -3764,7 +3520,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3773,12 +3528,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_PlusDomains_Place extends Google_Model @@ -3793,11 +3546,11 @@ class Google_Service_PlusDomains_Place extends Google_Model protected $positionType = 'Google_Service_PlusDomains_PlacePosition'; protected $positionDataType = ''; + public function setAddress(Google_Service_PlusDomains_PlaceAddress $address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -3806,7 +3559,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3815,7 +3567,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3824,7 +3575,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3833,12 +3583,10 @@ public function setPosition(Google_Service_PlusDomains_PlacePosition $position) { $this->position = $position; } - public function getPosition() { return $this->position; } - } class Google_Service_PlusDomains_PlaceAddress extends Google_Model @@ -3847,16 +3595,15 @@ class Google_Service_PlusDomains_PlaceAddress extends Google_Model ); public $formatted; + public function setFormatted($formatted) { $this->formatted = $formatted; } - public function getFormatted() { return $this->formatted; } - } class Google_Service_PlusDomains_PlacePosition extends Google_Model @@ -3866,11 +3613,11 @@ class Google_Service_PlusDomains_PlacePosition extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -3879,12 +3626,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model @@ -3895,11 +3640,11 @@ class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Mode public $id; public $type; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3908,7 +3653,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3917,12 +3661,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_PlusDomains_Videostream extends Google_Model @@ -3934,11 +3676,11 @@ class Google_Service_PlusDomains_Videostream extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -3947,7 +3689,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3956,7 +3697,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3965,10 +3705,8 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } From 5eecfa9ea3729efb7d120d8e7d0b53196fd63b6d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:42 -0800 Subject: [PATCH 0483/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 1768 +++++++++--------------------- 1 file changed, 543 insertions(+), 1225 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index aac1a4c14..188707880 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -19,8 +19,7 @@ * Service definition for Analytics (v3). * *

- * View and manage your Google Analytics data - *

+ * View and manage your Google Analytics data

* *

* For more information about this service, see the API @@ -32,15 +31,20 @@ class Google_Service_Analytics extends Google_Service { /** View and manage your Google Analytics data. */ - const ANALYTICS = "https://www.googleapis.com/auth/analytics"; + const ANALYTICS = + "https://www.googleapis.com/auth/analytics"; /** Edit Google Analytics management entities. */ - const ANALYTICS_EDIT = "https://www.googleapis.com/auth/analytics.edit"; + const ANALYTICS_EDIT = + "https://www.googleapis.com/auth/analytics.edit"; /** Manage Google Analytics Account users by email address. */ - const ANALYTICS_MANAGE_USERS = "https://www.googleapis.com/auth/analytics.manage.users"; + const ANALYTICS_MANAGE_USERS = + "https://www.googleapis.com/auth/analytics.manage.users"; /** Create a new Google Analytics account along with its default property and view. */ - const ANALYTICS_PROVISION = "https://www.googleapis.com/auth/analytics.provision"; + const ANALYTICS_PROVISION = + "https://www.googleapis.com/auth/analytics.provision"; /** View your Google Analytics data. */ - const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; + const ANALYTICS_READONLY = + "https://www.googleapis.com/auth/analytics.readonly"; public $data_ga; public $data_mcf; @@ -1868,7 +1872,6 @@ public function __construct(Google_Client $client) */ class Google_Service_Analytics_Data_Resource extends Google_Service_Resource { - } /** @@ -1885,39 +1888,32 @@ class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource /** * Returns Analytics data for a view (profile). (ga.get) * - * @param string $ids - * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $startDate - * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- - * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate - * End date for fetching Analytics data. Request can should specify an end date formatted as YYYY- - * MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is - * yesterday. - * @param string $metrics - * A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one - * metric must be specified. + * @param string $ids Unique table ID for retrieving Analytics data. Table ID is + * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. + * @param string $startDate Start date for fetching Analytics data. Requests can + * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., + * today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $endDate End date for fetching Analytics data. Request can + * should specify an end date formatted as YYYY-MM-DD, or as a relative date + * (e.g., today, yesterday, or 7daysAgo). The default value is yesterday. + * @param string $metrics A comma-separated list of Analytics metrics. E.g., + * 'ga:sessions,ga:pageviews'. At least one metric must be specified. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for Analytics - * data. - * @opt_param string dimensions - * A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @opt_param string segment - * An Analytics segment to be applied to data. - * @opt_param string samplingLevel - * The desired sampling level. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to Analytics data. - * @opt_param string output - * The selected format for the response. Default format is JSON. + * @opt_param int max-results The maximum number of entries to include in this + * feed. + * @opt_param string sort A comma-separated list of dimensions or metrics that + * determine the sort order for Analytics data. + * @opt_param string dimensions A comma-separated list of Analytics dimensions. + * E.g., 'ga:browser,ga:city'. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + * @opt_param string segment An Analytics segment to be applied to data. + * @opt_param string samplingLevel The desired sampling level. + * @opt_param string filters A comma-separated list of dimension or metric + * filters to be applied to Analytics data. + * @opt_param string output The selected format for the response. Default format + * is JSON. * @return Google_Service_Analytics_GaData */ public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) @@ -1941,34 +1937,30 @@ class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource /** * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) * - * @param string $ids - * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $startDate - * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- - * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate - * End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, - * or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $metrics - * A comma-separated list of Multi-Channel Funnels metrics. E.g., - * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified. + * @param string $ids Unique table ID for retrieving Analytics data. Table ID is + * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. + * @param string $startDate Start date for fetching Analytics data. Requests can + * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., + * today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $endDate End date for fetching Analytics data. Requests can + * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., + * today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $metrics A comma-separated list of Multi-Channel Funnels + * metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one + * metric must be specified. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for the Analytics - * data. - * @opt_param string dimensions - * A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @opt_param string samplingLevel - * The desired sampling level. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to the Analytics data. + * @opt_param int max-results The maximum number of entries to include in this + * feed. + * @opt_param string sort A comma-separated list of dimensions or metrics that + * determine the sort order for the Analytics data. + * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels + * dimensions. E.g., 'mcf:source,mcf:medium'. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + * @opt_param string samplingLevel The desired sampling level. + * @opt_param string filters A comma-separated list of dimension or metric + * filters to be applied to the Analytics data. * @return Google_Service_Analytics_McfData */ public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) @@ -1992,23 +1984,20 @@ class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Reso /** * Returns real time data for a view (profile). (realtime.get) * - * @param string $ids - * Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $metrics - * A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be - * specified. + * @param string $ids Unique table ID for retrieving real time data. Table ID is + * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. + * @param string $metrics A comma-separated list of real time metrics. E.g., + * 'rt:activeUsers'. At least one metric must be specified. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for real time - * data. - * @opt_param string dimensions - * A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to real time data. + * @opt_param int max-results The maximum number of entries to include in this + * feed. + * @opt_param string sort A comma-separated list of dimensions or metrics that + * determine the sort order for real time data. + * @opt_param string dimensions A comma-separated list of real time dimensions. + * E.g., 'rt:medium,rt:city'. + * @opt_param string filters A comma-separated list of dimension or metric + * filters to be applied to real time data. * @return Google_Service_Analytics_RealtimeData */ public function get($ids, $metrics, $optParams = array()) @@ -2029,7 +2018,6 @@ public function get($ids, $metrics, $optParams = array()) */ class Google_Service_Analytics_Management_Resource extends Google_Service_Resource { - } /** @@ -2050,12 +2038,10 @@ class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Googl * * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of account summaries to include in this response, where the largest - * acceptable value is 1000. - * @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 int max-results The maximum number of account summaries to include + * in this response, where the largest acceptable value is 1000. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. * @return Google_Service_Analytics_AccountSummaries */ public function listManagementAccountSummaries($optParams = array()) @@ -2079,10 +2065,8 @@ class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Googl /** * Removes a user from the given account. (accountUserLinks.delete) * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. + * @param string $accountId Account ID to delete the user link for. + * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $linkId, $optParams = array()) @@ -2091,11 +2075,11 @@ public function delete($accountId, $linkId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a new user to the given account. (accountUserLinks.insert) * - * @param string $accountId - * Account ID to create the user link for. + * @param string $accountId Account ID to create the user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -2106,19 +2090,19 @@ public function insert($accountId, Google_Service_Analytics_EntityUserLink $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); } + /** * Lists account-user links for a given account. * (accountUserLinks.listManagementAccountUserLinks) * - * @param string $accountId - * Account ID to retrieve the user links for. + * @param string $accountId Account ID to retrieve the user links for. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of account-user links to include in this response. - * @opt_param int start-index - * An index of the first account-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. + * @opt_param int max-results The maximum number of account-user links to + * include in this response. + * @opt_param int start-index An index of the first account-user link to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_EntityUserLinks */ public function listManagementAccountUserLinks($accountId, $optParams = array()) @@ -2127,14 +2111,13 @@ public function listManagementAccountUserLinks($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); } + /** * Updates permissions for an existing user on the given account. * (accountUserLinks.update) * - * @param string $accountId - * Account ID to update the account-user link for. - * @param string $linkId - * Link ID to update the account-user link for. + * @param string $accountId Account ID to update the account-user link for. + * @param string $linkId Link ID to update the account-user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -2163,11 +2146,11 @@ class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Servic * * @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. + * @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()) @@ -2192,17 +2175,16 @@ class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Goog * List custom data sources to which the user has access. * (customDataSources.listManagementCustomDataSources) * - * @param string $accountId - * Account Id for the custom data sources to retrieve. - * @param string $webPropertyId - * Web property Id for the custom data sources to retrieve. + * @param 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. + * @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()) @@ -2226,16 +2208,14 @@ class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Se /** * 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 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()) @@ -2244,27 +2224,25 @@ public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $ $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * List daily uploads to which the user has access. * (dailyUploads.listManagementDailyUploads) * - * @param string $accountId - * Account Id for the daily uploads to retrieve. - * @param string $webPropertyId - * Web property Id for the daily uploads to retrieve. - * @param string $customDataSourceId - * Custom data source Id for daily uploads to retrieve. - * @param string $startDate - * Start date of the form YYYY-MM-DD. - * @param string $endDate - * End date of the form YYYY-MM-DD. + * @param string $accountId Account Id for the daily uploads to retrieve. + * @param string $webPropertyId Web property Id for the daily uploads to + * retrieve. + * @param string $customDataSourceId Custom data source Id for daily uploads to + * retrieve. + * @param string $startDate Start date of the form YYYY-MM-DD. + * @param string $endDate End date of the form YYYY-MM-DD. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of custom data sources to include in this response. - * @opt_param int start-index - * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. + * @opt_param int max-results The maximum number of custom data sources to + * include in this response. + * @opt_param int start-index A 1-based index of the first daily upload to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_DailyUploads */ public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) @@ -2273,26 +2251,22 @@ public function listManagementDailyUploads($accountId, $webPropertyId, $customDa $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); } + /** * Update/Overwrite data for a custom data source. (dailyUploads.upload) * - * @param string $accountId - * Account Id associated with daily upload. - * @param string $webPropertyId - * Web property Id associated with daily upload. - * @param string $customDataSourceId - * Custom data source Id to which the data being uploaded belongs. - * @param string $date - * Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. - * @param int $appendNumber - * Append number for this upload indexed from 1. - * @param string $type - * Type of data for this upload. + * @param 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. + * @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()) @@ -2316,14 +2290,10 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser /** * Delete an experiment. (experiments.delete) * - * @param string $accountId - * Account ID to which the experiment belongs - * @param string $webPropertyId - * Web property ID to which the experiment belongs - * @param string $profileId - * View (Profile) ID to which the experiment belongs - * @param string $experimentId - * ID of the experiment to delete + * @param string $accountId Account ID to which the experiment belongs + * @param string $webPropertyId Web property ID to which the experiment belongs + * @param string $profileId View (Profile) ID to which the experiment belongs + * @param string $experimentId ID of the experiment to delete * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) @@ -2332,17 +2302,14 @@ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $o $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns an experiment to which the user has access. (experiments.get) * - * @param string $accountId - * Account ID to retrieve the experiment for. - * @param string $webPropertyId - * Web property ID to retrieve the experiment for. - * @param string $profileId - * View (Profile) ID to retrieve the experiment for. - * @param string $experimentId - * Experiment ID to retrieve the experiment for. + * @param string $accountId Account ID to retrieve the experiment for. + * @param string $webPropertyId Web property ID to retrieve the experiment for. + * @param string $profileId View (Profile) ID to retrieve the experiment for. + * @param string $experimentId Experiment ID to retrieve the experiment for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment */ @@ -2352,15 +2319,13 @@ public function get($accountId, $webPropertyId, $profileId, $experimentId, $optP $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Experiment"); } + /** * Create a new experiment. (experiments.insert) * - * @param string $accountId - * Account ID to create the experiment for. - * @param string $webPropertyId - * Web property ID to create the experiment for. - * @param string $profileId - * View (Profile) ID to create the experiment for. + * @param string $accountId Account ID to create the experiment for. + * @param string $webPropertyId Web property ID to create the experiment for. + * @param string $profileId View (Profile) ID to create the experiment for. * @param Google_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment @@ -2371,23 +2336,21 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Experiment"); } + /** * Lists experiments to which the user has access. * (experiments.listManagementExperiments) * - * @param string $accountId - * Account ID to retrieve experiments for. - * @param string $webPropertyId - * Web property ID to retrieve experiments for. - * @param string $profileId - * View (Profile) ID to retrieve experiments for. + * @param string $accountId Account ID to retrieve experiments for. + * @param string $webPropertyId Web property ID to retrieve experiments for. + * @param string $profileId View (Profile) ID to retrieve experiments for. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of experiments to include in this response. - * @opt_param int start-index - * An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. + * @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()) @@ -2396,18 +2359,15 @@ public function listManagementExperiments($accountId, $webPropertyId, $profileId $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Experiments"); } + /** * Update an existing experiment. This method supports patch semantics. * (experiments.patch) * - * @param string $accountId - * Account ID of the experiment to update. - * @param string $webPropertyId - * Web property ID of the experiment to update. - * @param string $profileId - * View (Profile) ID of the experiment to update. - * @param string $experimentId - * Experiment ID of the experiment to update. + * @param string $accountId Account ID of the experiment to update. + * @param string $webPropertyId Web property ID of the experiment to update. + * @param string $profileId View (Profile) ID of the experiment to update. + * @param string $experimentId Experiment ID of the experiment to update. * @param Google_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment @@ -2418,17 +2378,14 @@ public function patch($accountId, $webPropertyId, $profileId, $experimentId, Goo $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Experiment"); } + /** * Update an existing experiment. (experiments.update) * - * @param string $accountId - * Account ID of the experiment to update. - * @param string $webPropertyId - * Web property ID of the experiment to update. - * @param string $profileId - * View (Profile) ID of the experiment to update. - * @param string $experimentId - * Experiment ID of the experiment to update. + * @param string $accountId Account ID of the experiment to update. + * @param string $webPropertyId Web property ID of the experiment to update. + * @param string $profileId View (Profile) ID of the experiment to update. + * @param string $experimentId Experiment ID of the experiment to update. * @param Google_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment @@ -2454,10 +2411,8 @@ class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service /** * Delete a filter. (filters.delete) * - * @param string $accountId - * Account ID to delete the filter for. - * @param string $filterId - * ID of the filter to be deleted. + * @param string $accountId Account ID to delete the filter for. + * @param string $filterId ID of the filter to be deleted. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Filter */ @@ -2467,13 +2422,12 @@ public function delete($accountId, $filterId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Analytics_Filter"); } + /** * Returns a filters to which the user has access. (filters.get) * - * @param string $accountId - * Account ID to retrieve filters for. - * @param string $filterId - * Filter ID to retrieve filters for. + * @param string $accountId Account ID to retrieve filters for. + * @param string $filterId Filter ID to retrieve filters for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Filter */ @@ -2483,11 +2437,11 @@ public function get($accountId, $filterId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Filter"); } + /** * Create a new filter. (filters.insert) * - * @param string $accountId - * Account ID to create filter for. + * @param string $accountId Account ID to create filter for. * @param Google_Filter $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Filter @@ -2498,18 +2452,17 @@ public function insert($accountId, Google_Service_Analytics_Filter $postBody, $o $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Filter"); } + /** * Lists all filters for an account (filters.listManagementFilters) * - * @param string $accountId - * Account ID to retrieve filters for. + * @param string $accountId Account ID to retrieve filters for. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of filters to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. + * @opt_param int max-results The maximum number of filters to include in this + * response. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. * @return Google_Service_Analytics_Filters */ public function listManagementFilters($accountId, $optParams = array()) @@ -2518,14 +2471,13 @@ public function listManagementFilters($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Filters"); } + /** * Updates an existing filter. This method supports patch semantics. * (filters.patch) * - * @param string $accountId - * Account ID to which the filter belongs. - * @param string $filterId - * ID of the filter to be updated. + * @param string $accountId Account ID to which the filter belongs. + * @param string $filterId ID of the filter to be updated. * @param Google_Filter $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Filter @@ -2536,13 +2488,12 @@ public function patch($accountId, $filterId, Google_Service_Analytics_Filter $po $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Filter"); } + /** * Updates an existing filter. (filters.update) * - * @param string $accountId - * Account ID to which the filter belongs. - * @param string $filterId - * ID of the filter to be updated. + * @param string $accountId Account ID to which the filter belongs. + * @param string $filterId ID of the filter to be updated. * @param Google_Filter $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Filter @@ -2568,14 +2519,10 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R /** * Gets a goal to which the user has access. (goals.get) * - * @param string $accountId - * Account ID to retrieve the goal for. - * @param string $webPropertyId - * Web property ID to retrieve the goal for. - * @param string $profileId - * View (Profile) ID to retrieve the goal for. - * @param string $goalId - * Goal ID to retrieve the goal for. + * @param string $accountId Account ID to retrieve the goal for. + * @param string $webPropertyId Web property ID to retrieve the goal for. + * @param string $profileId View (Profile) ID to retrieve the goal for. + * @param string $goalId Goal ID to retrieve the goal for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Goal */ @@ -2585,15 +2532,13 @@ public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Goal"); } + /** * Create a new goal. (goals.insert) * - * @param string $accountId - * Account ID to create the goal for. - * @param string $webPropertyId - * Web property ID to create the goal for. - * @param string $profileId - * View (Profile) ID to create the goal for. + * @param string $accountId Account ID to create the goal for. + * @param string $webPropertyId Web property ID to create the goal for. + * @param string $profileId View (Profile) ID to create the goal for. * @param Google_Goal $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Goal @@ -2604,25 +2549,25 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Goal"); } + /** * Lists goals to which the user has access. (goals.listManagementGoals) * - * @param string $accountId - * Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to - * all the accounts that user has access to. - * @param string $webPropertyId - * Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which - * refers to all the web properties that user has access to. - * @param string $profileId - * View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', - * which refers to all the views (profiles) that user has access to. + * @param string $accountId Account ID to retrieve goals for. Can either be a + * specific account ID or '~all', which refers to all the accounts that user has + * access to. + * @param string $webPropertyId Web property ID to retrieve goals for. Can + * either be a specific web property ID or '~all', which refers to all the web + * properties that user has access to. + * @param string $profileId View (Profile) ID to retrieve goals for. Can either + * be a specific view (profile) ID or '~all', which refers to all the views + * (profiles) that user has access to. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of goals to include in this response. - * @opt_param int start-index - * An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with - * the max-results parameter. + * @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()) @@ -2631,18 +2576,15 @@ public function listManagementGoals($accountId, $webPropertyId, $profileId, $opt $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Goals"); } + /** * Updates an existing view (profile). This method supports patch semantics. * (goals.patch) * - * @param string $accountId - * Account ID to update the goal. - * @param string $webPropertyId - * Web property ID to update the goal. - * @param string $profileId - * View (Profile) ID to update the goal. - * @param string $goalId - * Index of the goal to be updated. + * @param string $accountId Account ID to update the goal. + * @param string $webPropertyId Web property ID to update the goal. + * @param string $profileId View (Profile) ID to update the goal. + * @param string $goalId Index of the goal to be updated. * @param Google_Goal $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Goal @@ -2653,17 +2595,14 @@ public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Se $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Goal"); } + /** * Updates an existing view (profile). (goals.update) * - * @param string $accountId - * Account ID to update the goal. - * @param string $webPropertyId - * Web property ID to update the goal. - * @param string $profileId - * View (Profile) ID to update the goal. - * @param string $goalId - * Index of the goal to be updated. + * @param string $accountId Account ID to update the goal. + * @param string $webPropertyId Web property ID to update the goal. + * @param string $profileId View (Profile) ID to update the goal. + * @param string $goalId Index of the goal to be updated. * @param Google_Goal $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Goal @@ -2689,14 +2628,11 @@ class Google_Service_Analytics_ManagementProfileFilterLinks_Resource extends Goo /** * Delete a profile filter link. (profileFilterLinks.delete) * - * @param string $accountId - * Account ID to which the profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which the profile filter link belongs. - * @param string $profileId - * Profile ID to which the filter link belongs. - * @param string $linkId - * ID of the profile filter link to delete. + * @param string $accountId Account ID to which the profile filter link belongs. + * @param string $webPropertyId Web property Id to which the profile filter link + * belongs. + * @param string $profileId Profile ID to which the filter link belongs. + * @param string $linkId ID of the profile filter link to delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) @@ -2705,17 +2641,15 @@ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optPara $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns a single profile filter link. (profileFilterLinks.get) * - * @param string $accountId - * Account ID to retrieve profile filter link for. - * @param string $webPropertyId - * Web property Id to retrieve profile filter link for. - * @param string $profileId - * Profile ID to retrieve filter link for. - * @param string $linkId - * ID of the profile filter link. + * @param string $accountId Account ID to retrieve profile filter link for. + * @param string $webPropertyId Web property Id to retrieve profile filter link + * for. + * @param string $profileId Profile ID to retrieve filter link for. + * @param string $linkId ID of the profile filter link. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_ProfileFilterLink */ @@ -2725,15 +2659,14 @@ public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink"); } + /** * Create a new profile filter link. (profileFilterLinks.insert) * - * @param string $accountId - * Account ID to create profile filter link for. - * @param string $webPropertyId - * Web property Id to create profile filter link for. - * @param string $profileId - * Profile ID to create filter link for. + * @param string $accountId Account ID to create profile filter link for. + * @param string $webPropertyId Web property Id to create profile filter link + * for. + * @param string $profileId Profile ID to create filter link for. * @param Google_ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_ProfileFilterLink @@ -2744,25 +2677,24 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink"); } + /** * Lists all profile filter links for a profile. * (profileFilterLinks.listManagementProfileFilterLinks) * - * @param string $accountId - * Account ID to retrieve profile filter links for. - * @param string $webPropertyId - * Web property Id for profile filter links for. Can either be a specific web property ID or - * '~all', which refers to all the web properties that user has access to. - * @param string $profileId - * Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which - * refers to all the profiles that user has access to. + * @param string $accountId Account ID to retrieve profile filter links for. + * @param string $webPropertyId Web property Id for profile filter links for. + * Can either be a specific web property ID or '~all', which refers to all the + * web properties that user has access to. + * @param string $profileId Profile ID to retrieve filter links for. Can either + * be a specific profile ID or '~all', which refers to all the profiles that + * user has access to. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of profile filter links to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. + * @opt_param int max-results The maximum number of profile filter links to + * include in this response. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. * @return Google_Service_Analytics_ProfileFilterLinks */ public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array()) @@ -2771,18 +2703,16 @@ public function listManagementProfileFilterLinks($accountId, $webPropertyId, $pr $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks"); } + /** * Update an existing profile filter link. This method supports patch semantics. * (profileFilterLinks.patch) * - * @param string $accountId - * Account ID to which profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which profile filter link belongs - * @param string $profileId - * Profile ID to which filter link belongs - * @param string $linkId - * ID of the profile filter link to be updated. + * @param string $accountId Account ID to which profile filter link belongs. + * @param string $webPropertyId Web property Id to which profile filter link + * belongs + * @param string $profileId Profile ID to which filter link belongs + * @param string $linkId ID of the profile filter link to be updated. * @param Google_ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_ProfileFilterLink @@ -2793,17 +2723,15 @@ public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Se $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink"); } + /** * Update an existing profile filter link. (profileFilterLinks.update) * - * @param string $accountId - * Account ID to which profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which profile filter link belongs - * @param string $profileId - * Profile ID to which filter link belongs - * @param string $linkId - * ID of the profile filter link to be updated. + * @param string $accountId Account ID to which profile filter link belongs. + * @param string $webPropertyId Web property Id to which profile filter link + * belongs + * @param string $profileId Profile ID to which filter link belongs + * @param string $linkId ID of the profile filter link to be updated. * @param Google_ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_ProfileFilterLink @@ -2829,14 +2757,10 @@ class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Googl /** * Removes a user from the given view (profile). (profileUserLinks.delete) * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $webPropertyId - * Web Property ID to delete the user link for. - * @param string $profileId - * View (Profile) ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. + * @param string $accountId Account ID to delete the user link for. + * @param string $webPropertyId Web Property ID to delete the user link for. + * @param string $profileId View (Profile) ID to delete the user link for. + * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) @@ -2845,15 +2769,13 @@ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optPara $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a new user to the given view (profile). (profileUserLinks.insert) * - * @param string $accountId - * Account ID to create the user link for. - * @param string $webPropertyId - * Web Property ID to create the user link for. - * @param string $profileId - * View (Profile) ID to create the user link for. + * @param string $accountId Account ID to create the user link for. + * @param string $webPropertyId Web Property ID to create the user link for. + * @param string $profileId View (Profile) ID to create the user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -2864,25 +2786,26 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); } + /** * Lists profile-user links for a given view (profile). * (profileUserLinks.listManagementProfileUserLinks) * - * @param string $accountId - * Account ID which the given view (profile) belongs to. - * @param string $webPropertyId - * Web Property ID which the given view (profile) belongs to. Can either be a specific web property - * ID or '~all', which refers to all the web properties that user has access to. - * @param string $profileId - * View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or - * '~all', which refers to all the profiles that user has access to. + * @param string $accountId Account ID which the given view (profile) belongs + * to. + * @param string $webPropertyId Web Property ID which the given view (profile) + * belongs to. Can either be a specific web property ID or '~all', which refers + * to all the web properties that user has access to. + * @param string $profileId View (Profile) ID to retrieve the profile-user links + * for. Can either be a specific profile ID or '~all', which refers to all the + * profiles that user has access to. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of profile-user links to include in this response. - * @opt_param int start-index - * An index of the first profile-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. + * @opt_param int max-results The maximum number of profile-user links to + * include in this response. + * @opt_param int start-index An index of the first profile-user link to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_EntityUserLinks */ public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) @@ -2891,18 +2814,15 @@ public function listManagementProfileUserLinks($accountId, $webPropertyId, $prof $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); } + /** * Updates permissions for an existing user on the given view (profile). * (profileUserLinks.update) * - * @param string $accountId - * Account ID to update the user link for. - * @param string $webPropertyId - * Web Property ID to update the user link for. - * @param string $profileId - * View (Profile ID) to update the user link for. - * @param string $linkId - * Link ID to update the user link for. + * @param string $accountId Account ID to update the user link for. + * @param string $webPropertyId Web Property ID to update the user link for. + * @param string $profileId View (Profile ID) to update the user link for. + * @param string $linkId Link ID to update the user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -2928,12 +2848,10 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic /** * Deletes a view (profile). (profiles.delete) * - * @param string $accountId - * Account ID to delete the view (profile) for. - * @param string $webPropertyId - * Web property ID to delete the view (profile) for. - * @param string $profileId - * ID of the view (profile) to be deleted. + * @param string $accountId Account ID to delete the view (profile) for. + * @param string $webPropertyId Web property ID to delete the view (profile) + * for. + * @param string $profileId ID of the view (profile) to be deleted. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) @@ -2942,15 +2860,13 @@ public function delete($accountId, $webPropertyId, $profileId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a view (profile) to which the user has access. (profiles.get) * - * @param string $accountId - * Account ID to retrieve the goal for. - * @param string $webPropertyId - * Web property ID to retrieve the goal for. - * @param string $profileId - * View (Profile) ID to retrieve the goal for. + * @param string $accountId Account ID to retrieve the goal for. + * @param string $webPropertyId Web property ID to retrieve the goal for. + * @param string $profileId View (Profile) ID to retrieve the goal for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Profile */ @@ -2960,13 +2876,13 @@ public function get($accountId, $webPropertyId, $profileId, $optParams = array() $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Profile"); } + /** * Create a new view (profile). (profiles.insert) * - * @param string $accountId - * Account ID to create the view (profile) for. - * @param string $webPropertyId - * Web property ID to create the view (profile) for. + * @param string $accountId Account ID to create the view (profile) for. + * @param string $webPropertyId Web property ID to create the view (profile) + * for. * @param Google_Profile $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Profile @@ -2977,23 +2893,23 @@ public function insert($accountId, $webPropertyId, Google_Service_Analytics_Prof $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Profile"); } + /** * Lists views (profiles) to which the user has access. * (profiles.listManagementProfiles) * - * @param string $accountId - * Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', - * which refers to all the accounts to which the user has access. - * @param string $webPropertyId - * Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID - * or '~all', which refers to all the web properties to which the user has access. + * @param string $accountId Account ID for the view (profiles) to retrieve. Can + * either be a specific account ID or '~all', which refers to all the accounts + * to which the user has access. + * @param string $webPropertyId Web property ID for the views (profiles) to + * retrieve. Can either be a specific web property ID or '~all', which refers to + * all the web properties to which the user has access. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of views (profiles) to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. + * @opt_param int max-results The maximum number of views (profiles) to include + * in this response. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. * @return Google_Service_Analytics_Profiles */ public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) @@ -3002,16 +2918,15 @@ public function listManagementProfiles($accountId, $webPropertyId, $optParams = $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Profiles"); } + /** * Updates an existing view (profile). This method supports patch semantics. * (profiles.patch) * - * @param string $accountId - * Account ID to which the view (profile) belongs - * @param string $webPropertyId - * Web property ID to which the view (profile) belongs - * @param string $profileId - * ID of the view (profile) to be updated. + * @param string $accountId Account ID to which the view (profile) belongs + * @param string $webPropertyId Web property ID to which the view (profile) + * belongs + * @param string $profileId ID of the view (profile) to be updated. * @param Google_Profile $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Profile @@ -3022,15 +2937,14 @@ public function patch($accountId, $webPropertyId, $profileId, Google_Service_Ana $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Profile"); } + /** * Updates an existing view (profile). (profiles.update) * - * @param string $accountId - * Account ID to which the view (profile) belongs - * @param string $webPropertyId - * Web property ID to which the view (profile) belongs - * @param string $profileId - * ID of the view (profile) to be updated. + * @param string $accountId Account ID to which the view (profile) belongs + * @param string $webPropertyId Web property ID to which the view (profile) + * belongs + * @param string $profileId ID of the view (profile) to be updated. * @param Google_Profile $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Profile @@ -3059,11 +2973,11 @@ class Google_Service_Analytics_ManagementSegments_Resource extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of segments to include in this response. - * @opt_param int start-index - * An index of the first segment to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. + * @opt_param int max-results The maximum number of segments to include in this + * response. + * @opt_param int start-index An index of the first segment to retrieve. Use + * this parameter as a pagination mechanism along with the max-results + * parameter. * @return Google_Service_Analytics_Segments */ public function listManagementSegments($optParams = array()) @@ -3087,14 +3001,11 @@ class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Googl /** * Returns a single unsampled report. (unsampledReports.get) * - * @param string $accountId - * Account ID to retrieve unsampled report for. - * @param string $webPropertyId - * Web property ID to retrieve unsampled reports for. - * @param string $profileId - * View (Profile) ID to retrieve unsampled report for. - * @param string $unsampledReportId - * ID of the unsampled report to retrieve. + * @param string $accountId Account ID to retrieve unsampled report for. + * @param string $webPropertyId Web property ID to retrieve unsampled reports + * for. + * @param string $profileId View (Profile) ID to retrieve unsampled report for. + * @param string $unsampledReportId ID of the unsampled report to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_UnsampledReport */ @@ -3104,15 +3015,15 @@ public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport"); } + /** * Create a new unsampled report. (unsampledReports.insert) * - * @param string $accountId - * Account ID to create the unsampled report for. - * @param string $webPropertyId - * Web property ID to create the unsampled report for. - * @param string $profileId - * View (Profile) ID to create the unsampled report for. + * @param string $accountId Account ID to create the unsampled report for. + * @param string $webPropertyId Web property ID to create the unsampled report + * for. + * @param string $profileId View (Profile) ID to create the unsampled report + * for. * @param Google_UnsampledReport $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_UnsampledReport @@ -3123,26 +3034,24 @@ public function insert($accountId, $webPropertyId, $profileId, Google_Service_An $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport"); } + /** * Lists unsampled reports to which the user has access. * (unsampledReports.listManagementUnsampledReports) * - * @param string $accountId - * Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not - * supported. - * @param string $webPropertyId - * Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is - * not supported. - * @param string $profileId - * View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all - * is not supported. + * @param string $accountId Account ID to retrieve unsampled reports for. Must + * be a specific account ID, ~all is not supported. + * @param string $webPropertyId Web property ID to retrieve unsampled reports + * for. Must be a specific web property ID, ~all is not supported. + * @param string $profileId View (Profile) ID to retrieve unsampled reports for. + * Must be a specific view (profile) ID, ~all is not supported. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of unsampled reports to include in this response. - * @opt_param int start-index - * An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism - * along with the max-results parameter. + * @opt_param int max-results The maximum number of unsampled reports to include + * in this response. + * @opt_param int start-index An index of the first unsampled report to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_UnsampledReports */ public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) @@ -3166,12 +3075,10 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service /** * Delete data associated with a previous upload. (uploads.deleteUploadData) * - * @param string $accountId - * Account Id for the uploads to be deleted. - * @param string $webPropertyId - * Web property Id for the uploads to be deleted. - * @param string $customDataSourceId - * Custom data source Id for the uploads to be deleted. + * @param string $accountId Account Id for the uploads to be deleted. + * @param string $webPropertyId Web property Id for the uploads to be deleted. + * @param string $customDataSourceId Custom data source Id for the uploads to be + * deleted. * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody * @param array $optParams Optional parameters. */ @@ -3181,17 +3088,15 @@ public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId $params = array_merge($params, $optParams); return $this->call('deleteUploadData', array($params)); } + /** * List uploads to which the user has access. (uploads.get) * - * @param string $accountId - * Account Id for the upload to retrieve. - * @param string $webPropertyId - * Web property Id for the upload to retrieve. - * @param string $customDataSourceId - * Custom data source Id for upload to retrieve. - * @param string $uploadId - * Upload Id to retrieve. + * @param string $accountId Account Id for the upload to retrieve. + * @param string $webPropertyId Web property Id for the upload to retrieve. + * @param string $customDataSourceId Custom data source Id for upload to + * retrieve. + * @param string $uploadId Upload Id to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Upload */ @@ -3201,22 +3106,21 @@ public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Upload"); } + /** * List uploads to which the user has access. (uploads.listManagementUploads) * - * @param string $accountId - * Account Id for the uploads to retrieve. - * @param string $webPropertyId - * Web property Id for the uploads to retrieve. - * @param string $customDataSourceId - * Custom data source Id for uploads to retrieve. + * @param string $accountId Account Id for the uploads to retrieve. + * @param string $webPropertyId Web property Id for the uploads to retrieve. + * @param string $customDataSourceId Custom data source Id for uploads to + * retrieve. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of uploads to include in this response. - * @opt_param int start-index - * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism - * along with the max-results parameter. + * @opt_param int max-results The maximum number of uploads to include in this + * response. + * @opt_param int start-index A 1-based index of the first upload to retrieve. + * Use this parameter as a pagination mechanism along with the max-results + * parameter. * @return Google_Service_Analytics_Uploads */ public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) @@ -3225,16 +3129,14 @@ public function listManagementUploads($accountId, $webPropertyId, $customDataSou $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); } + /** * Migrate custom data source and data imports to latest version. * (uploads.migrateDataImport) * - * @param string $accountId - * Account Id for migration. - * @param string $webPropertyId - * Web property Id for migration. - * @param string $customDataSourceId - * Custom data source Id for migration. + * @param string $accountId Account Id for migration. + * @param string $webPropertyId Web property Id for migration. + * @param string $customDataSourceId Custom data source Id for migration. * @param array $optParams Optional parameters. */ public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) @@ -3243,15 +3145,15 @@ public function migrateDataImport($accountId, $webPropertyId, $customDataSourceI $params = array_merge($params, $optParams); return $this->call('migrateDataImport', array($params)); } + /** * Upload data for a custom data source. (uploads.uploadData) * - * @param string $accountId - * Account Id associated with the upload. - * @param string $webPropertyId - * Web property UA-string associated with the upload. - * @param string $customDataSourceId - * Custom data source Id to which the data being uploaded belongs. + * @param string $accountId Account Id associated with the upload. + * @param string $webPropertyId Web property UA-string associated with the + * upload. + * @param string $customDataSourceId Custom data source Id to which the data + * being uploaded belongs. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Upload */ @@ -3276,12 +3178,10 @@ class Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extend /** * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete) * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to delete the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property AdWords link ID. + * @param string $accountId ID of the account which the given web property + * belongs to. + * @param string $webPropertyId Web property ID to delete the AdWords link for. + * @param string $webPropertyAdWordsLinkId Web property AdWords link ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) @@ -3290,16 +3190,16 @@ public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $o $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns a web property-AdWords link to which the user has access. * (webPropertyAdWordsLinks.get) * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. + * @param string $accountId ID of the account which the given web property + * belongs to. + * @param string $webPropertyId Web property ID to retrieve the AdWords link + * for. + * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityAdWordsLink */ @@ -3309,13 +3209,13 @@ public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optP $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink"); } + /** * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert) * - * @param string $accountId - * ID of the Google Analytics account to create the link for. - * @param string $webPropertyId - * Web property ID to create the link for. + * @param string $accountId ID of the Google Analytics account to create the + * link for. + * @param string $webPropertyId Web property ID to create the link for. * @param Google_EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityAdWordsLink @@ -3326,21 +3226,22 @@ public function insert($accountId, $webPropertyId, Google_Service_Analytics_Enti $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink"); } + /** * Lists webProperty-AdWords links for a given web property. * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords links for. + * @param string $accountId ID of the account which the given web property + * belongs to. + * @param string $webPropertyId Web property ID to retrieve the AdWords links + * for. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of webProperty-AdWords links to include in this response. - * @opt_param int start-index - * An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. + * @opt_param int max-results The maximum number of webProperty-AdWords links to + * include in this response. + * @opt_param int start-index An index of the first webProperty-AdWords link to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_EntityAdWordsLinks */ public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array()) @@ -3349,16 +3250,16 @@ public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks"); } + /** * Updates an existing webProperty-AdWords link. This method supports patch * semantics. (webPropertyAdWordsLinks.patch) * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. + * @param string $accountId ID of the account which the given web property + * belongs to. + * @param string $webPropertyId Web property ID to retrieve the AdWords link + * for. + * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. * @param Google_EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityAdWordsLink @@ -3369,16 +3270,16 @@ public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Goo $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink"); } + /** * Updates an existing webProperty-AdWords link. * (webPropertyAdWordsLinks.update) * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. + * @param string $accountId ID of the account which the given web property + * belongs to. + * @param string $webPropertyId Web property ID to retrieve the AdWords link + * for. + * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. * @param Google_EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityAdWordsLink @@ -3404,10 +3305,8 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S /** * Gets a web property to which the user has access. (webproperties.get) * - * @param string $accountId - * Account ID to retrieve the web property for. - * @param string $webPropertyId - * ID to retrieve the web property for. + * @param string $accountId Account ID to retrieve the web property for. + * @param string $webPropertyId ID to retrieve the web property for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Webproperty */ @@ -3417,13 +3316,13 @@ public function get($accountId, $webPropertyId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Webproperty"); } + /** * Create a new property if the account has fewer than 20 properties. Web * properties are visible in the Google Analytics interface only if they have at * least one profile. (webproperties.insert) * - * @param string $accountId - * Account ID to create the web property for. + * @param string $accountId Account ID to create the web property for. * @param Google_Webproperty $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Webproperty @@ -3434,20 +3333,20 @@ public function insert($accountId, Google_Service_Analytics_Webproperty $postBod $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty"); } + /** * Lists web properties to which the user has access. * (webproperties.listManagementWebproperties) * - * @param string $accountId - * Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which - * refers to all the accounts that user has access to. + * @param 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. + * @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()) @@ -3456,14 +3355,13 @@ public function listManagementWebproperties($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Webproperties"); } + /** * Updates an existing web property. This method supports patch semantics. * (webproperties.patch) * - * @param string $accountId - * Account ID to which the web property belongs - * @param string $webPropertyId - * Web property ID + * @param string $accountId Account ID to which the web property belongs + * @param string $webPropertyId Web property ID * @param Google_Webproperty $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Webproperty @@ -3474,13 +3372,12 @@ public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webpr $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty"); } + /** * Updates an existing web property. (webproperties.update) * - * @param string $accountId - * Account ID to which the web property belongs - * @param string $webPropertyId - * Web property ID + * @param string $accountId Account ID to which the web property belongs + * @param string $webPropertyId Web property ID * @param Google_Webproperty $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Webproperty @@ -3506,12 +3403,9 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G /** * Removes a user from the given web property. (webpropertyUserLinks.delete) * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $webPropertyId - * Web Property ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. + * @param string $accountId Account ID to delete the user link for. + * @param string $webPropertyId Web Property ID to delete the user link for. + * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) @@ -3520,13 +3414,12 @@ public function delete($accountId, $webPropertyId, $linkId, $optParams = array() $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Adds a new user to the given web property. (webpropertyUserLinks.insert) * - * @param string $accountId - * Account ID to create the user link for. - * @param string $webPropertyId - * Web Property ID to create the user link for. + * @param string $accountId Account ID to create the user link for. + * @param string $webPropertyId Web Property ID to create the user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -3537,22 +3430,22 @@ public function insert($accountId, $webPropertyId, Google_Service_Analytics_Enti $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); } + /** * Lists webProperty-user links for a given web property. * (webpropertyUserLinks.listManagementWebpropertyUserLinks) * - * @param string $accountId - * Account ID which the given web property belongs to. - * @param string $webPropertyId - * Web Property ID for the webProperty-user links to retrieve. Can either be a specific web - * property ID or '~all', which refers to all the web properties that user has access to. + * @param string $accountId Account ID which the given web property belongs to. + * @param string $webPropertyId Web Property ID for the webProperty-user links + * to retrieve. Can either be a specific web property ID or '~all', which refers + * to all the web properties that user has access to. * @param array $optParams Optional parameters. * - * @opt_param int max-results - * The maximum number of webProperty-user Links to include in this response. - * @opt_param int start-index - * An index of the first webProperty-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. + * @opt_param int max-results The maximum number of webProperty-user Links to + * include in this response. + * @opt_param int start-index An index of the first webProperty-user link to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. * @return Google_Service_Analytics_EntityUserLinks */ public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) @@ -3561,16 +3454,15 @@ public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $ $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); } + /** * Updates permissions for an existing user on the given web property. * (webpropertyUserLinks.update) * - * @param string $accountId - * Account ID to update the account-user link for. - * @param string $webPropertyId - * Web property ID to update the account-user link for. - * @param string $linkId - * Link ID to update the account-user link for. + * @param string $accountId Account ID to update the account-user link for. + * @param string $webPropertyId Web property ID to update the account-user link + * for. + * @param string $linkId Link ID to update the account-user link for. * @param Google_EntityUserLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_EntityUserLink @@ -3593,7 +3485,6 @@ public function update($accountId, $webPropertyId, $linkId, Google_Service_Analy */ class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource { - } /** @@ -3610,8 +3501,8 @@ class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_R /** * Lists all columns for a report type (columns.listMetadataColumns) * - * @param string $reportType - * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API + * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' + * corresponds to the Core Reporting API * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Columns */ @@ -3667,11 +3558,11 @@ class Google_Service_Analytics_Account extends Google_Model public $selfLink; public $updated; + public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink) { $this->childLink = $childLink; } - public function getChildLink() { return $this->childLink; @@ -3680,7 +3571,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -3689,7 +3579,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3698,7 +3587,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3707,7 +3595,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3716,7 +3603,6 @@ public function setPermissions(Google_Service_Analytics_AccountPermissions $perm { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; @@ -3725,7 +3611,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3734,12 +3619,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Analytics_AccountChildLink extends Google_Model @@ -3749,11 +3632,11 @@ 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; @@ -3762,12 +3645,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_AccountPermissions extends Google_Collection @@ -3777,16 +3658,15 @@ class Google_Service_Analytics_AccountPermissions extends Google_Collection ); public $effective; + public function setEffective($effective) { $this->effective = $effective; } - public function getEffective() { return $this->effective; } - } class Google_Service_Analytics_AccountRef extends Google_Model @@ -3798,11 +3678,11 @@ class Google_Service_Analytics_AccountRef extends Google_Model public $kind; public $name; + public function setHref($href) { $this->href = $href; } - public function getHref() { return $this->href; @@ -3811,7 +3691,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3820,7 +3699,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3829,12 +3707,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_AccountSummaries extends Google_Collection @@ -3852,11 +3728,11 @@ class Google_Service_Analytics_AccountSummaries extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3865,7 +3741,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -3874,7 +3749,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3883,7 +3757,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -3892,7 +3765,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -3901,7 +3773,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -3910,7 +3781,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -3919,12 +3789,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_AccountSummary extends Google_Collection @@ -3938,11 +3806,11 @@ class Google_Service_Analytics_AccountSummary extends Google_Collection protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary'; protected $webPropertiesDataType = 'array'; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3951,7 +3819,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3960,7 +3827,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3969,12 +3835,10 @@ public function setWebProperties($webProperties) { $this->webProperties = $webProperties; } - public function getWebProperties() { return $this->webProperties; } - } class Google_Service_Analytics_AccountTicket extends Google_Model @@ -3991,11 +3855,11 @@ class Google_Service_Analytics_AccountTicket extends Google_Model protected $webpropertyType = 'Google_Service_Analytics_Webproperty'; protected $webpropertyDataType = ''; + public function setAccount(Google_Service_Analytics_Account $account) { $this->account = $account; } - public function getAccount() { return $this->account; @@ -4004,7 +3868,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4013,7 +3876,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4022,7 +3884,6 @@ public function setProfile(Google_Service_Analytics_Profile $profile) { $this->profile = $profile; } - public function getProfile() { return $this->profile; @@ -4031,7 +3892,6 @@ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } - public function getRedirectUri() { return $this->redirectUri; @@ -4040,12 +3900,10 @@ public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty { $this->webproperty = $webproperty; } - public function getWebproperty() { return $this->webproperty; } - } class Google_Service_Analytics_Accounts extends Google_Collection @@ -4063,11 +3921,11 @@ class Google_Service_Analytics_Accounts extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4076,7 +3934,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -4085,7 +3942,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4094,7 +3950,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -4103,7 +3958,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -4112,7 +3966,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -4121,7 +3974,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -4130,12 +3982,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_AdWordsAccount extends Google_Model @@ -4146,11 +3996,11 @@ class Google_Service_Analytics_AdWordsAccount extends Google_Model public $customerId; public $kind; + public function setAutoTaggingEnabled($autoTaggingEnabled) { $this->autoTaggingEnabled = $autoTaggingEnabled; } - public function getAutoTaggingEnabled() { return $this->autoTaggingEnabled; @@ -4159,7 +4009,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -4168,12 +4017,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection @@ -4183,16 +4030,15 @@ class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extend ); public $customDataImportUids; + public function setCustomDataImportUids($customDataImportUids) { $this->customDataImportUids = $customDataImportUids; } - public function getCustomDataImportUids() { return $this->customDataImportUids; } - } class Google_Service_Analytics_Column extends Google_Model @@ -4203,11 +4049,11 @@ class Google_Service_Analytics_Column extends Google_Model public $id; public $kind; + public function setAttributes($attributes) { $this->attributes = $attributes; } - public function getAttributes() { return $this->attributes; @@ -4216,7 +4062,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4225,20 +4070,14 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Analytics_ColumnAttributes extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Analytics_Columns extends Google_Collection @@ -4253,11 +4092,11 @@ class Google_Service_Analytics_Columns extends Google_Collection public $kind; public $totalResults; + public function setAttributeNames($attributeNames) { $this->attributeNames = $attributeNames; } - public function getAttributeNames() { return $this->attributeNames; @@ -4266,7 +4105,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4275,7 +4113,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4284,7 +4121,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4293,12 +4129,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Analytics_CustomDataSource extends Google_Collection @@ -4324,11 +4158,11 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection public $uploadType; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -4337,7 +4171,6 @@ public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink { $this->childLink = $childLink; } - public function getChildLink() { return $this->childLink; @@ -4346,7 +4179,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -4355,7 +4187,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4364,7 +4195,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4373,7 +4203,6 @@ public function setImportBehavior($importBehavior) { $this->importBehavior = $importBehavior; } - public function getImportBehavior() { return $this->importBehavior; @@ -4382,7 +4211,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4391,7 +4219,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4400,7 +4227,6 @@ public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLin { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -4409,7 +4235,6 @@ public function setProfilesLinked($profilesLinked) { $this->profilesLinked = $profilesLinked; } - public function getProfilesLinked() { return $this->profilesLinked; @@ -4418,7 +4243,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -4427,7 +4251,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -4436,7 +4259,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -4445,7 +4267,6 @@ public function setUploadType($uploadType) { $this->uploadType = $uploadType; } - public function getUploadType() { return $this->uploadType; @@ -4454,12 +4275,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model @@ -4469,11 +4288,11 @@ 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; @@ -4482,12 +4301,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model @@ -4497,11 +4314,11 @@ 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; @@ -4510,12 +4327,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_CustomDataSources extends Google_Collection @@ -4533,11 +4348,11 @@ class Google_Service_Analytics_CustomDataSources extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4546,7 +4361,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -4555,7 +4369,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4564,7 +4377,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -4573,7 +4385,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -4582,7 +4393,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -4591,7 +4401,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -4600,12 +4409,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_DailyUpload extends Google_Collection @@ -4627,11 +4434,11 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection public $selfLink; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -4640,7 +4447,6 @@ public function setAppendCount($appendCount) { $this->appendCount = $appendCount; } - public function getAppendCount() { return $this->appendCount; @@ -4649,7 +4455,6 @@ public function setCreatedTime($createdTime) { $this->createdTime = $createdTime; } - public function getCreatedTime() { return $this->createdTime; @@ -4658,7 +4463,6 @@ public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; } - public function getCustomDataSourceId() { return $this->customDataSourceId; @@ -4667,7 +4471,6 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -4676,7 +4479,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4685,7 +4487,6 @@ public function setModifiedTime($modifiedTime) { $this->modifiedTime = $modifiedTime; } - public function getModifiedTime() { return $this->modifiedTime; @@ -4694,7 +4495,6 @@ public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $pa { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -4703,7 +4503,6 @@ public function setRecentChanges($recentChanges) { $this->recentChanges = $recentChanges; } - public function getRecentChanges() { return $this->recentChanges; @@ -4712,7 +4511,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -4721,12 +4519,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_DailyUploadAppend extends Google_Model @@ -4741,11 +4537,11 @@ class Google_Service_Analytics_DailyUploadAppend extends Google_Model public $nextAppendLink; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -4754,7 +4550,6 @@ public function setAppendNumber($appendNumber) { $this->appendNumber = $appendNumber; } - public function getAppendNumber() { return $this->appendNumber; @@ -4763,7 +4558,6 @@ public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; } - public function getCustomDataSourceId() { return $this->customDataSourceId; @@ -4772,7 +4566,6 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -4781,7 +4574,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4790,7 +4582,6 @@ public function setNextAppendLink($nextAppendLink) { $this->nextAppendLink = $nextAppendLink; } - public function getNextAppendLink() { return $this->nextAppendLink; @@ -4799,12 +4590,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_DailyUploadParentLink extends Google_Model @@ -4814,11 +4603,11 @@ 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; @@ -4827,12 +4616,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model @@ -4842,11 +4629,11 @@ 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; @@ -4855,12 +4642,10 @@ public function setTime($time) { $this->time = $time; } - public function getTime() { return $this->time; } - } class Google_Service_Analytics_DailyUploads extends Google_Collection @@ -4878,11 +4663,11 @@ class Google_Service_Analytics_DailyUploads extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4891,7 +4676,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -4900,7 +4684,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4909,7 +4692,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -4918,7 +4700,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -4927,7 +4708,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -4936,7 +4716,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -4945,12 +4724,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection @@ -4968,11 +4745,11 @@ class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection public $profileIds; public $selfLink; + public function setAdWordsAccounts($adWordsAccounts) { $this->adWordsAccounts = $adWordsAccounts; } - public function getAdWordsAccounts() { return $this->adWordsAccounts; @@ -4981,7 +4758,6 @@ public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $enti { $this->entity = $entity; } - public function getEntity() { return $this->entity; @@ -4990,7 +4766,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4999,7 +4774,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5008,7 +4782,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5017,7 +4790,6 @@ public function setProfileIds($profileIds) { $this->profileIds = $profileIds; } - public function getProfileIds() { return $this->profileIds; @@ -5026,12 +4798,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model @@ -5041,16 +4811,15 @@ class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; protected $webPropertyRefDataType = ''; + public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) { $this->webPropertyRef = $webPropertyRef; } - public function getWebPropertyRef() { return $this->webPropertyRef; } - } class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection @@ -5067,11 +4836,11 @@ class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection public $startIndex; public $totalResults; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5080,7 +4849,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -5089,7 +4857,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5098,7 +4865,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -5107,7 +4873,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -5116,7 +4881,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -5125,12 +4889,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Analytics_EntityUserLink extends Google_Model @@ -5147,11 +4909,11 @@ class Google_Service_Analytics_EntityUserLink extends Google_Model protected $userRefType = 'Google_Service_Analytics_UserRef'; protected $userRefDataType = ''; + public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity) { $this->entity = $entity; } - public function getEntity() { return $this->entity; @@ -5160,7 +4922,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5169,7 +4930,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5178,7 +4938,6 @@ public function setPermissions(Google_Service_Analytics_EntityUserLinkPermission { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; @@ -5187,7 +4946,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5196,12 +4954,10 @@ public function setUserRef(Google_Service_Analytics_UserRef $userRef) { $this->userRef = $userRef; } - public function getUserRef() { return $this->userRef; } - } class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model @@ -5215,11 +4971,11 @@ class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; protected $webPropertyRefDataType = ''; + public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef) { $this->accountRef = $accountRef; } - public function getAccountRef() { return $this->accountRef; @@ -5228,7 +4984,6 @@ public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { $this->profileRef = $profileRef; } - public function getProfileRef() { return $this->profileRef; @@ -5237,12 +4992,10 @@ public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPr { $this->webPropertyRef = $webPropertyRef; } - public function getWebPropertyRef() { return $this->webPropertyRef; } - } class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection @@ -5253,11 +5006,11 @@ class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collecti public $effective; public $local; + public function setEffective($effective) { $this->effective = $effective; } - public function getEffective() { return $this->effective; @@ -5266,12 +5019,10 @@ public function setLocal($local) { $this->local = $local; } - public function getLocal() { return $this->local; } - } class Google_Service_Analytics_EntityUserLinks extends Google_Collection @@ -5288,11 +5039,11 @@ class Google_Service_Analytics_EntityUserLinks extends Google_Collection public $startIndex; public $totalResults; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5301,7 +5052,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -5310,7 +5060,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5319,7 +5068,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -5328,7 +5076,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -5337,7 +5084,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -5346,12 +5092,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Analytics_Experiment extends Google_Collection @@ -5390,11 +5134,11 @@ class Google_Service_Analytics_Experiment extends Google_Collection public $winnerConfidenceLevel; public $winnerFound; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -5403,7 +5147,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -5412,7 +5155,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5421,7 +5163,6 @@ public function setEditableInGaUi($editableInGaUi) { $this->editableInGaUi = $editableInGaUi; } - public function getEditableInGaUi() { return $this->editableInGaUi; @@ -5430,7 +5171,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -5439,7 +5179,6 @@ public function setEqualWeighting($equalWeighting) { $this->equalWeighting = $equalWeighting; } - public function getEqualWeighting() { return $this->equalWeighting; @@ -5448,7 +5187,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5457,7 +5195,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -5466,7 +5203,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5475,7 +5211,6 @@ public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) { $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; } - public function getMinimumExperimentLengthInDays() { return $this->minimumExperimentLengthInDays; @@ -5484,7 +5219,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5493,7 +5227,6 @@ public function setObjectiveMetric($objectiveMetric) { $this->objectiveMetric = $objectiveMetric; } - public function getObjectiveMetric() { return $this->objectiveMetric; @@ -5502,7 +5235,6 @@ public function setOptimizationType($optimizationType) { $this->optimizationType = $optimizationType; } - public function getOptimizationType() { return $this->optimizationType; @@ -5511,7 +5243,6 @@ public function setParentLink(Google_Service_Analytics_ExperimentParentLink $par { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -5520,7 +5251,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -5529,7 +5259,6 @@ public function setReasonExperimentEnded($reasonExperimentEnded) { $this->reasonExperimentEnded = $reasonExperimentEnded; } - public function getReasonExperimentEnded() { return $this->reasonExperimentEnded; @@ -5538,7 +5267,6 @@ public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOrigina { $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; } - public function getRewriteVariationUrlsAsOriginal() { return $this->rewriteVariationUrlsAsOriginal; @@ -5547,7 +5275,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5556,7 +5283,6 @@ public function setServingFramework($servingFramework) { $this->servingFramework = $servingFramework; } - public function getServingFramework() { return $this->servingFramework; @@ -5565,7 +5291,6 @@ public function setSnippet($snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -5574,7 +5299,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -5583,7 +5307,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -5592,7 +5315,6 @@ public function setTrafficCoverage($trafficCoverage) { $this->trafficCoverage = $trafficCoverage; } - public function getTrafficCoverage() { return $this->trafficCoverage; @@ -5601,7 +5323,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -5610,7 +5331,6 @@ public function setVariations($variations) { $this->variations = $variations; } - public function getVariations() { return $this->variations; @@ -5619,7 +5339,6 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; @@ -5628,7 +5347,6 @@ public function setWinnerConfidenceLevel($winnerConfidenceLevel) { $this->winnerConfidenceLevel = $winnerConfidenceLevel; } - public function getWinnerConfidenceLevel() { return $this->winnerConfidenceLevel; @@ -5637,12 +5355,10 @@ public function setWinnerFound($winnerFound) { $this->winnerFound = $winnerFound; } - public function getWinnerFound() { return $this->winnerFound; } - } class Google_Service_Analytics_ExperimentParentLink extends Google_Model @@ -5652,11 +5368,11 @@ 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; @@ -5665,12 +5381,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_ExperimentVariations extends Google_Model @@ -5683,11 +5397,11 @@ class Google_Service_Analytics_ExperimentVariations extends Google_Model public $weight; public $won; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5696,7 +5410,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -5705,7 +5418,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -5714,7 +5426,6 @@ public function setWeight($weight) { $this->weight = $weight; } - public function getWeight() { return $this->weight; @@ -5723,12 +5434,10 @@ public function setWon($won) { $this->won = $won; } - public function getWon() { return $this->won; } - } class Google_Service_Analytics_Experiments extends Google_Collection @@ -5746,11 +5455,11 @@ class Google_Service_Analytics_Experiments extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5759,7 +5468,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -5768,7 +5476,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5777,7 +5484,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -5786,7 +5492,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -5795,7 +5500,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -5804,7 +5508,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -5813,12 +5516,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_Filter extends Google_Model @@ -5848,11 +5549,11 @@ class Google_Service_Analytics_Filter extends Google_Model protected $uppercaseDetailsType = 'Google_Service_Analytics_FilterUppercaseDetails'; protected $uppercaseDetailsDataType = ''; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -5861,7 +5562,6 @@ public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetail { $this->advancedDetails = $advancedDetails; } - public function getAdvancedDetails() { return $this->advancedDetails; @@ -5870,7 +5570,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -5879,7 +5578,6 @@ public function setExcludeDetails(Google_Service_Analytics_FilterExpression $exc { $this->excludeDetails = $excludeDetails; } - public function getExcludeDetails() { return $this->excludeDetails; @@ -5888,7 +5586,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5897,7 +5594,6 @@ public function setIncludeDetails(Google_Service_Analytics_FilterExpression $inc { $this->includeDetails = $includeDetails; } - public function getIncludeDetails() { return $this->includeDetails; @@ -5906,7 +5602,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5915,7 +5610,6 @@ public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDeta { $this->lowercaseDetails = $lowercaseDetails; } - public function getLowercaseDetails() { return $this->lowercaseDetails; @@ -5924,7 +5618,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5933,7 +5626,6 @@ public function setParentLink(Google_Service_Analytics_FilterParentLink $parentL { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -5942,7 +5634,6 @@ public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearch { $this->searchAndReplaceDetails = $searchAndReplaceDetails; } - public function getSearchAndReplaceDetails() { return $this->searchAndReplaceDetails; @@ -5951,7 +5642,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5960,7 +5650,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5969,7 +5658,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -5978,12 +5666,10 @@ public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDeta { $this->uppercaseDetails = $uppercaseDetails; } - public function getUppercaseDetails() { return $this->uppercaseDetails; } - } class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model @@ -6001,11 +5687,11 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model public $outputToField; public $overrideOutputField; + public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } - public function getCaseSensitive() { return $this->caseSensitive; @@ -6014,7 +5700,6 @@ public function setExtractA($extractA) { $this->extractA = $extractA; } - public function getExtractA() { return $this->extractA; @@ -6023,7 +5708,6 @@ public function setExtractB($extractB) { $this->extractB = $extractB; } - public function getExtractB() { return $this->extractB; @@ -6032,7 +5716,6 @@ public function setFieldA($fieldA) { $this->fieldA = $fieldA; } - public function getFieldA() { return $this->fieldA; @@ -6041,7 +5724,6 @@ public function setFieldARequired($fieldARequired) { $this->fieldARequired = $fieldARequired; } - public function getFieldARequired() { return $this->fieldARequired; @@ -6050,7 +5732,6 @@ public function setFieldB($fieldB) { $this->fieldB = $fieldB; } - public function getFieldB() { return $this->fieldB; @@ -6059,7 +5740,6 @@ public function setFieldBRequired($fieldBRequired) { $this->fieldBRequired = $fieldBRequired; } - public function getFieldBRequired() { return $this->fieldBRequired; @@ -6068,7 +5748,6 @@ public function setOutputConstructor($outputConstructor) { $this->outputConstructor = $outputConstructor; } - public function getOutputConstructor() { return $this->outputConstructor; @@ -6077,7 +5756,6 @@ public function setOutputToField($outputToField) { $this->outputToField = $outputToField; } - public function getOutputToField() { return $this->outputToField; @@ -6086,12 +5764,10 @@ public function setOverrideOutputField($overrideOutputField) { $this->overrideOutputField = $overrideOutputField; } - public function getOverrideOutputField() { return $this->overrideOutputField; } - } class Google_Service_Analytics_FilterExpression extends Google_Model @@ -6104,11 +5780,11 @@ class Google_Service_Analytics_FilterExpression extends Google_Model public $kind; public $matchType; + public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } - public function getCaseSensitive() { return $this->caseSensitive; @@ -6117,7 +5793,6 @@ public function setExpressionValue($expressionValue) { $this->expressionValue = $expressionValue; } - public function getExpressionValue() { return $this->expressionValue; @@ -6126,7 +5801,6 @@ public function setField($field) { $this->field = $field; } - public function getField() { return $this->field; @@ -6135,7 +5809,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6144,12 +5817,10 @@ public function setMatchType($matchType) { $this->matchType = $matchType; } - public function getMatchType() { return $this->matchType; } - } class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model @@ -6158,16 +5829,15 @@ class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model ); public $field; + public function setField($field) { $this->field = $field; } - public function getField() { return $this->field; } - } class Google_Service_Analytics_FilterParentLink extends Google_Model @@ -6177,11 +5847,11 @@ class Google_Service_Analytics_FilterParentLink extends Google_Model public $href; public $type; + public function setHref($href) { $this->href = $href; } - public function getHref() { return $this->href; @@ -6190,12 +5860,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_FilterRef extends Google_Model @@ -6208,11 +5876,11 @@ class Google_Service_Analytics_FilterRef extends Google_Model public $kind; public $name; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -6221,7 +5889,6 @@ public function setHref($href) { $this->href = $href; } - public function getHref() { return $this->href; @@ -6230,7 +5897,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6239,7 +5905,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6248,12 +5913,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model @@ -6265,11 +5928,11 @@ class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Mode public $replaceString; public $searchString; + public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } - public function getCaseSensitive() { return $this->caseSensitive; @@ -6278,7 +5941,6 @@ public function setField($field) { $this->field = $field; } - public function getField() { return $this->field; @@ -6287,7 +5949,6 @@ public function setReplaceString($replaceString) { $this->replaceString = $replaceString; } - public function getReplaceString() { return $this->replaceString; @@ -6296,12 +5957,10 @@ public function setSearchString($searchString) { $this->searchString = $searchString; } - public function getSearchString() { return $this->searchString; } - } class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model @@ -6310,16 +5969,15 @@ class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model ); public $field; + public function setField($field) { $this->field = $field; } - public function getField() { return $this->field; } - } class Google_Service_Analytics_Filters extends Google_Collection @@ -6337,11 +5995,11 @@ class Google_Service_Analytics_Filters extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6350,7 +6008,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -6359,7 +6016,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6368,7 +6024,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -6377,7 +6032,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -6386,7 +6040,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -6395,7 +6048,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -6404,12 +6056,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_GaData extends Google_Collection @@ -6438,11 +6088,11 @@ class Google_Service_Analytics_GaData extends Google_Collection public $totalResults; public $totalsForAllResults; + public function setColumnHeaders($columnHeaders) { $this->columnHeaders = $columnHeaders; } - public function getColumnHeaders() { return $this->columnHeaders; @@ -6451,7 +6101,6 @@ public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; } - public function getContainsSampledData() { return $this->containsSampledData; @@ -6460,7 +6109,6 @@ public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable { $this->dataTable = $dataTable; } - public function getDataTable() { return $this->dataTable; @@ -6469,7 +6117,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6478,7 +6125,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -6487,7 +6133,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6496,7 +6141,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -6505,7 +6149,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -6514,7 +6157,6 @@ public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profi { $this->profileInfo = $profileInfo; } - public function getProfileInfo() { return $this->profileInfo; @@ -6523,7 +6165,6 @@ public function setQuery(Google_Service_Analytics_GaDataQuery $query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -6532,7 +6173,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -6541,7 +6181,6 @@ public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; } - public function getSampleSize() { return $this->sampleSize; @@ -6550,7 +6189,6 @@ public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; } - public function getSampleSpace() { return $this->sampleSpace; @@ -6559,7 +6197,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -6568,7 +6205,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -6577,12 +6213,10 @@ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } - public function getTotalsForAllResults() { return $this->totalsForAllResults; } - } class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model @@ -6593,11 +6227,11 @@ class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model public $dataType; public $name; + public function setColumnType($columnType) { $this->columnType = $columnType; } - public function getColumnType() { return $this->columnType; @@ -6606,7 +6240,6 @@ public function setDataType($dataType) { $this->dataType = $dataType; } - public function getDataType() { return $this->dataType; @@ -6615,12 +6248,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_GaDataDataTable extends Google_Collection @@ -6633,11 +6264,11 @@ class Google_Service_Analytics_GaDataDataTable extends Google_Collection protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; protected $rowsDataType = 'array'; + public function setCols($cols) { $this->cols = $cols; } - public function getCols() { return $this->cols; @@ -6646,12 +6277,10 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; } - } class Google_Service_Analytics_GaDataDataTableCols extends Google_Model @@ -6662,11 +6291,11 @@ class Google_Service_Analytics_GaDataDataTableCols extends Google_Model public $label; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6675,7 +6304,6 @@ public function setLabel($label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -6684,12 +6312,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection @@ -6700,16 +6326,15 @@ class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; protected $cDataType = 'array'; + public function setC($c) { $this->c = $c; } - public function getC() { return $this->c; } - } class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model @@ -6718,16 +6343,15 @@ class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model ); public $v; + public function setV($v) { $this->v = $v; } - public function getV() { return $this->v; } - } class Google_Service_Analytics_GaDataProfileInfo extends Google_Model @@ -6741,11 +6365,11 @@ class Google_Service_Analytics_GaDataProfileInfo extends Google_Model public $tableId; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -6754,7 +6378,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -6763,7 +6386,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -6772,7 +6394,6 @@ public function setProfileName($profileName) { $this->profileName = $profileName; } - public function getProfileName() { return $this->profileName; @@ -6781,7 +6402,6 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; @@ -6790,12 +6410,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_GaDataQuery extends Google_Collection @@ -6819,11 +6437,11 @@ class Google_Service_Analytics_GaDataQuery extends Google_Collection public $startDate; public $startIndex; + public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -6832,7 +6450,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -6841,7 +6458,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -6850,7 +6466,6 @@ public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; @@ -6859,7 +6474,6 @@ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } - public function getMaxResults() { return $this->maxResults; @@ -6868,7 +6482,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -6877,7 +6490,6 @@ public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; } - public function getSamplingLevel() { return $this->samplingLevel; @@ -6886,7 +6498,6 @@ public function setSegment($segment) { $this->segment = $segment; } - public function getSegment() { return $this->segment; @@ -6895,7 +6506,6 @@ public function setSort($sort) { $this->sort = $sort; } - public function getSort() { return $this->sort; @@ -6904,7 +6514,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -6913,20 +6522,14 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; } - } class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Analytics_Goal extends Google_Model @@ -6957,11 +6560,11 @@ class Google_Service_Analytics_Goal extends Google_Model protected $visitTimeOnSiteDetailsDataType = ''; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -6970,7 +6573,6 @@ public function setActive($active) { $this->active = $active; } - public function getActive() { return $this->active; @@ -6979,7 +6581,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -6988,7 +6589,6 @@ public function setEventDetails(Google_Service_Analytics_GoalEventDetails $event { $this->eventDetails = $eventDetails; } - public function getEventDetails() { return $this->eventDetails; @@ -6997,7 +6597,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7006,7 +6605,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -7015,7 +6613,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7024,7 +6621,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -7033,7 +6629,6 @@ public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLin { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -7042,7 +6637,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -7051,7 +6645,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -7060,7 +6653,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -7069,7 +6661,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -7078,7 +6669,6 @@ public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestina { $this->urlDestinationDetails = $urlDestinationDetails; } - public function getUrlDestinationDetails() { return $this->urlDestinationDetails; @@ -7087,7 +6677,6 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; @@ -7096,7 +6685,6 @@ public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPag { $this->visitNumPagesDetails = $visitNumPagesDetails; } - public function getVisitNumPagesDetails() { return $this->visitNumPagesDetails; @@ -7105,7 +6693,6 @@ public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTime { $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; } - public function getVisitTimeOnSiteDetails() { return $this->visitTimeOnSiteDetails; @@ -7114,12 +6701,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_GoalEventDetails extends Google_Collection @@ -7131,11 +6716,11 @@ class Google_Service_Analytics_GoalEventDetails extends Google_Collection protected $eventConditionsDataType = 'array'; public $useEventValue; + public function setEventConditions($eventConditions) { $this->eventConditions = $eventConditions; } - public function getEventConditions() { return $this->eventConditions; @@ -7144,12 +6729,10 @@ public function setUseEventValue($useEventValue) { $this->useEventValue = $useEventValue; } - public function getUseEventValue() { return $this->useEventValue; } - } class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model @@ -7162,11 +6745,11 @@ class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Mo public $matchType; public $type; + public function setComparisonType($comparisonType) { $this->comparisonType = $comparisonType; } - public function getComparisonType() { return $this->comparisonType; @@ -7175,7 +6758,6 @@ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } - public function getComparisonValue() { return $this->comparisonValue; @@ -7184,7 +6766,6 @@ public function setExpression($expression) { $this->expression = $expression; } - public function getExpression() { return $this->expression; @@ -7193,7 +6774,6 @@ public function setMatchType($matchType) { $this->matchType = $matchType; } - public function getMatchType() { return $this->matchType; @@ -7202,12 +6782,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_GoalParentLink extends Google_Model @@ -7217,11 +6795,11 @@ 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; @@ -7230,12 +6808,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection @@ -7250,11 +6826,11 @@ class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collecti protected $stepsDataType = 'array'; public $url; + public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } - public function getCaseSensitive() { return $this->caseSensitive; @@ -7263,7 +6839,6 @@ public function setFirstStepRequired($firstStepRequired) { $this->firstStepRequired = $firstStepRequired; } - public function getFirstStepRequired() { return $this->firstStepRequired; @@ -7272,7 +6847,6 @@ public function setMatchType($matchType) { $this->matchType = $matchType; } - public function getMatchType() { return $this->matchType; @@ -7281,7 +6855,6 @@ public function setSteps($steps) { $this->steps = $steps; } - public function getSteps() { return $this->steps; @@ -7290,12 +6863,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model @@ -7306,11 +6877,11 @@ class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Mod public $number; public $url; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -7319,7 +6890,6 @@ public function setNumber($number) { $this->number = $number; } - public function getNumber() { return $this->number; @@ -7328,12 +6898,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model @@ -7343,11 +6911,11 @@ 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; @@ -7356,12 +6924,10 @@ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } - public function getComparisonValue() { return $this->comparisonValue; } - } class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model @@ -7371,11 +6937,11 @@ 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; @@ -7384,12 +6950,10 @@ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } - public function getComparisonValue() { return $this->comparisonValue; } - } class Google_Service_Analytics_Goals extends Google_Collection @@ -7407,11 +6971,11 @@ class Google_Service_Analytics_Goals extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7420,7 +6984,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -7429,7 +6992,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7438,7 +7000,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -7447,7 +7008,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -7456,7 +7016,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -7465,7 +7024,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -7474,12 +7032,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_McfData extends Google_Collection @@ -7507,11 +7063,11 @@ class Google_Service_Analytics_McfData extends Google_Collection public $totalResults; public $totalsForAllResults; + public function setColumnHeaders($columnHeaders) { $this->columnHeaders = $columnHeaders; } - public function getColumnHeaders() { return $this->columnHeaders; @@ -7520,7 +7076,6 @@ public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; } - public function getContainsSampledData() { return $this->containsSampledData; @@ -7529,7 +7084,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7538,7 +7092,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -7547,7 +7100,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7556,7 +7108,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -7565,7 +7116,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -7574,7 +7124,6 @@ public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $prof { $this->profileInfo = $profileInfo; } - public function getProfileInfo() { return $this->profileInfo; @@ -7583,7 +7132,6 @@ public function setQuery(Google_Service_Analytics_McfDataQuery $query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -7592,7 +7140,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -7601,7 +7148,6 @@ public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; } - public function getSampleSize() { return $this->sampleSize; @@ -7610,7 +7156,6 @@ public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; } - public function getSampleSpace() { return $this->sampleSpace; @@ -7619,7 +7164,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -7628,7 +7172,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -7637,12 +7180,10 @@ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } - public function getTotalsForAllResults() { return $this->totalsForAllResults; } - } class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model @@ -7653,11 +7194,11 @@ class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model public $dataType; public $name; + public function setColumnType($columnType) { $this->columnType = $columnType; } - public function getColumnType() { return $this->columnType; @@ -7666,7 +7207,6 @@ public function setDataType($dataType) { $this->dataType = $dataType; } - public function getDataType() { return $this->dataType; @@ -7675,12 +7215,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_McfDataProfileInfo extends Google_Model @@ -7694,11 +7232,11 @@ class Google_Service_Analytics_McfDataProfileInfo extends Google_Model public $tableId; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -7707,7 +7245,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -7716,7 +7253,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -7725,7 +7261,6 @@ public function setProfileName($profileName) { $this->profileName = $profileName; } - public function getProfileName() { return $this->profileName; @@ -7734,7 +7269,6 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; @@ -7743,12 +7277,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_McfDataQuery extends Google_Collection @@ -7772,11 +7304,11 @@ class Google_Service_Analytics_McfDataQuery extends Google_Collection public $startDate; public $startIndex; + public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -7785,7 +7317,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -7794,7 +7325,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -7803,7 +7333,6 @@ public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; @@ -7812,7 +7341,6 @@ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } - public function getMaxResults() { return $this->maxResults; @@ -7821,7 +7349,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -7830,7 +7357,6 @@ public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; } - public function getSamplingLevel() { return $this->samplingLevel; @@ -7839,7 +7365,6 @@ public function setSegment($segment) { $this->segment = $segment; } - public function getSegment() { return $this->segment; @@ -7848,7 +7373,6 @@ public function setSort($sort) { $this->sort = $sort; } - public function getSort() { return $this->sort; @@ -7857,7 +7381,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -7866,12 +7389,10 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; } - } class Google_Service_Analytics_McfDataRows extends Google_Collection @@ -7883,11 +7404,11 @@ class Google_Service_Analytics_McfDataRows extends Google_Collection protected $conversionPathValueDataType = 'array'; public $primitiveValue; + public function setConversionPathValue($conversionPathValue) { $this->conversionPathValue = $conversionPathValue; } - public function getConversionPathValue() { return $this->conversionPathValue; @@ -7896,12 +7417,10 @@ public function setPrimitiveValue($primitiveValue) { $this->primitiveValue = $primitiveValue; } - public function getPrimitiveValue() { return $this->primitiveValue; } - } class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model @@ -7911,11 +7430,11 @@ class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Mod public $interactionType; public $nodeValue; + public function setInteractionType($interactionType) { $this->interactionType = $interactionType; } - public function getInteractionType() { return $this->interactionType; @@ -7924,20 +7443,14 @@ public function setNodeValue($nodeValue) { $this->nodeValue = $nodeValue; } - public function getNodeValue() { return $this->nodeValue; } - } class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Analytics_Profile extends Google_Model @@ -7972,11 +7485,11 @@ class Google_Service_Analytics_Profile extends Google_Model public $webPropertyId; public $websiteUrl; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -7985,7 +7498,6 @@ public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLin { $this->childLink = $childLink; } - public function getChildLink() { return $this->childLink; @@ -7994,7 +7506,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -8003,7 +7514,6 @@ public function setCurrency($currency) { $this->currency = $currency; } - public function getCurrency() { return $this->currency; @@ -8012,7 +7522,6 @@ public function setDefaultPage($defaultPage) { $this->defaultPage = $defaultPage; } - public function getDefaultPage() { return $this->defaultPage; @@ -8021,7 +7530,6 @@ public function setECommerceTracking($eCommerceTracking) { $this->eCommerceTracking = $eCommerceTracking; } - public function getECommerceTracking() { return $this->eCommerceTracking; @@ -8030,7 +7538,6 @@ public function setEnhancedECommerceTracking($enhancedECommerceTracking) { $this->enhancedECommerceTracking = $enhancedECommerceTracking; } - public function getEnhancedECommerceTracking() { return $this->enhancedECommerceTracking; @@ -8039,7 +7546,6 @@ public function setExcludeQueryParameters($excludeQueryParameters) { $this->excludeQueryParameters = $excludeQueryParameters; } - public function getExcludeQueryParameters() { return $this->excludeQueryParameters; @@ -8048,7 +7554,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8057,7 +7562,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -8066,7 +7570,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8075,7 +7578,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8084,7 +7586,6 @@ public function setParentLink(Google_Service_Analytics_ProfileParentLink $parent { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -8093,7 +7594,6 @@ public function setPermissions(Google_Service_Analytics_ProfilePermissions $perm { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; @@ -8102,7 +7602,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -8111,7 +7610,6 @@ public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) { $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; } - public function getSiteSearchCategoryParameters() { return $this->siteSearchCategoryParameters; @@ -8120,7 +7618,6 @@ public function setSiteSearchQueryParameters($siteSearchQueryParameters) { $this->siteSearchQueryParameters = $siteSearchQueryParameters; } - public function getSiteSearchQueryParameters() { return $this->siteSearchQueryParameters; @@ -8129,7 +7626,6 @@ public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryPar { $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; } - public function getStripSiteSearchCategoryParameters() { return $this->stripSiteSearchCategoryParameters; @@ -8138,7 +7634,6 @@ public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameter { $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; } - public function getStripSiteSearchQueryParameters() { return $this->stripSiteSearchQueryParameters; @@ -8147,7 +7642,6 @@ public function setTimezone($timezone) { $this->timezone = $timezone; } - public function getTimezone() { return $this->timezone; @@ -8156,7 +7650,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -8165,7 +7658,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -8174,7 +7666,6 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; @@ -8183,12 +7674,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_Analytics_ProfileChildLink extends Google_Model @@ -8198,11 +7687,11 @@ 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; @@ -8211,12 +7700,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_ProfileFilterLink extends Google_Model @@ -8232,11 +7719,11 @@ class Google_Service_Analytics_ProfileFilterLink extends Google_Model public $rank; public $selfLink; + public function setFilterRef(Google_Service_Analytics_FilterRef $filterRef) { $this->filterRef = $filterRef; } - public function getFilterRef() { return $this->filterRef; @@ -8245,7 +7732,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8254,7 +7740,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8263,7 +7748,6 @@ public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { $this->profileRef = $profileRef; } - public function getProfileRef() { return $this->profileRef; @@ -8272,7 +7756,6 @@ public function setRank($rank) { $this->rank = $rank; } - public function getRank() { return $this->rank; @@ -8281,12 +7764,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection @@ -8304,11 +7785,11 @@ class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8317,7 +7798,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -8326,7 +7806,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8335,7 +7814,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -8344,7 +7822,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -8353,7 +7830,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -8362,7 +7838,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -8371,12 +7846,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_ProfileParentLink extends Google_Model @@ -8386,11 +7859,11 @@ 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; @@ -8399,12 +7872,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_ProfilePermissions extends Google_Collection @@ -8414,16 +7885,15 @@ class Google_Service_Analytics_ProfilePermissions extends Google_Collection ); public $effective; + public function setEffective($effective) { $this->effective = $effective; } - public function getEffective() { return $this->effective; } - } class Google_Service_Analytics_ProfileRef extends Google_Model @@ -8438,11 +7908,11 @@ class Google_Service_Analytics_ProfileRef extends Google_Model public $name; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -8451,7 +7921,6 @@ public function setHref($href) { $this->href = $href; } - public function getHref() { return $this->href; @@ -8460,7 +7929,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8469,7 +7937,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -8478,7 +7945,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8487,7 +7953,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8496,12 +7961,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_ProfileSummary extends Google_Model @@ -8513,11 +7976,11 @@ class Google_Service_Analytics_ProfileSummary extends Google_Model public $name; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8526,7 +7989,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8535,7 +7997,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8544,12 +8005,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_Profiles extends Google_Collection @@ -8567,11 +8026,11 @@ class Google_Service_Analytics_Profiles extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -8580,7 +8039,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -8589,7 +8047,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8598,7 +8055,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -8607,7 +8063,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -8616,7 +8071,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -8625,7 +8079,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -8634,12 +8087,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_RealtimeData extends Google_Collection @@ -8660,11 +8111,11 @@ class Google_Service_Analytics_RealtimeData extends Google_Collection public $totalResults; public $totalsForAllResults; + public function setColumnHeaders($columnHeaders) { $this->columnHeaders = $columnHeaders; } - public function getColumnHeaders() { return $this->columnHeaders; @@ -8673,7 +8124,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8682,7 +8132,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8691,7 +8140,6 @@ public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo { $this->profileInfo = $profileInfo; } - public function getProfileInfo() { return $this->profileInfo; @@ -8700,7 +8148,6 @@ public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -8709,7 +8156,6 @@ public function setRows($rows) { $this->rows = $rows; } - public function getRows() { return $this->rows; @@ -8718,7 +8164,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -8727,7 +8172,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -8736,12 +8180,10 @@ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } - public function getTotalsForAllResults() { return $this->totalsForAllResults; } - } class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model @@ -8752,11 +8194,11 @@ class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model public $dataType; public $name; + public function setColumnType($columnType) { $this->columnType = $columnType; } - public function getColumnType() { return $this->columnType; @@ -8765,7 +8207,6 @@ public function setDataType($dataType) { $this->dataType = $dataType; } - public function getDataType() { return $this->dataType; @@ -8774,12 +8215,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model @@ -8793,11 +8232,11 @@ class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model public $tableId; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -8806,7 +8245,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -8815,7 +8253,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -8824,7 +8261,6 @@ public function setProfileName($profileName) { $this->profileName = $profileName; } - public function getProfileName() { return $this->profileName; @@ -8833,7 +8269,6 @@ public function setTableId($tableId) { $this->tableId = $tableId; } - public function getTableId() { return $this->tableId; @@ -8842,12 +8277,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection @@ -8863,11 +8296,11 @@ class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection public $metrics; public $sort; + public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -8876,7 +8309,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -8885,7 +8317,6 @@ public function setIds($ids) { $this->ids = $ids; } - public function getIds() { return $this->ids; @@ -8894,7 +8325,6 @@ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } - public function getMaxResults() { return $this->maxResults; @@ -8903,7 +8333,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -8912,20 +8341,14 @@ public function setSort($sort) { $this->sort = $sort; } - public function getSort() { return $this->sort; } - } class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Analytics_Segment extends Google_Model @@ -8942,11 +8365,11 @@ class Google_Service_Analytics_Segment extends Google_Model public $type; public $updated; + public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -8955,7 +8378,6 @@ public function setDefinition($definition) { $this->definition = $definition; } - public function getDefinition() { return $this->definition; @@ -8964,7 +8386,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -8973,7 +8394,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -8982,7 +8402,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -8991,7 +8410,6 @@ public function setSegmentId($segmentId) { $this->segmentId = $segmentId; } - public function getSegmentId() { return $this->segmentId; @@ -9000,7 +8418,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -9009,7 +8426,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -9018,12 +8434,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Analytics_Segments extends Google_Collection @@ -9041,11 +8455,11 @@ class Google_Service_Analytics_Segments extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9054,7 +8468,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -9063,7 +8476,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9072,7 +8484,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -9081,7 +8492,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -9090,7 +8500,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -9099,7 +8508,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -9108,12 +8516,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_UnsampledReport extends Google_Model @@ -9144,11 +8550,11 @@ class Google_Service_Analytics_UnsampledReport extends Google_Model public $updated; public $webPropertyId; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -9157,7 +8563,6 @@ public function setCloudStorageDownloadDetails(Google_Service_Analytics_Unsample { $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; } - public function getCloudStorageDownloadDetails() { return $this->cloudStorageDownloadDetails; @@ -9166,7 +8571,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -9175,7 +8579,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -9184,7 +8587,6 @@ public function setDownloadType($downloadType) { $this->downloadType = $downloadType; } - public function getDownloadType() { return $this->downloadType; @@ -9193,7 +8595,6 @@ public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReport { $this->driveDownloadDetails = $driveDownloadDetails; } - public function getDriveDownloadDetails() { return $this->driveDownloadDetails; @@ -9202,7 +8603,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -9211,7 +8611,6 @@ public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -9220,7 +8619,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9229,7 +8627,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9238,7 +8635,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -9247,7 +8643,6 @@ public function setProfileId($profileId) { $this->profileId = $profileId; } - public function getProfileId() { return $this->profileId; @@ -9256,7 +8651,6 @@ public function setSegment($segment) { $this->segment = $segment; } - public function getSegment() { return $this->segment; @@ -9265,7 +8659,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -9274,7 +8667,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -9283,7 +8675,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -9292,7 +8683,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -9301,7 +8691,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -9310,12 +8699,10 @@ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } - public function getWebPropertyId() { return $this->webPropertyId; } - } class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model @@ -9325,11 +8712,11 @@ class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extend public $bucketId; public $objectId; + public function setBucketId($bucketId) { $this->bucketId = $bucketId; } - public function getBucketId() { return $this->bucketId; @@ -9338,12 +8725,10 @@ public function setObjectId($objectId) { $this->objectId = $objectId; } - public function getObjectId() { return $this->objectId; } - } class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model @@ -9352,16 +8737,15 @@ class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Googl ); public $documentId; + public function setDocumentId($documentId) { $this->documentId = $documentId; } - public function getDocumentId() { return $this->documentId; } - } class Google_Service_Analytics_UnsampledReports extends Google_Collection @@ -9379,11 +8763,11 @@ class Google_Service_Analytics_UnsampledReports extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9392,7 +8776,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -9401,7 +8784,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9410,7 +8792,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -9419,7 +8800,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -9428,7 +8808,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -9437,7 +8816,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -9446,12 +8824,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_Upload extends Google_Collection @@ -9466,11 +8842,11 @@ class Google_Service_Analytics_Upload extends Google_Collection public $kind; public $status; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -9479,7 +8855,6 @@ public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; } - public function getCustomDataSourceId() { return $this->customDataSourceId; @@ -9488,7 +8863,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -9497,7 +8871,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9506,7 +8879,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9515,12 +8887,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Analytics_Uploads extends Google_Collection @@ -9537,11 +8907,11 @@ class Google_Service_Analytics_Uploads extends Google_Collection public $startIndex; public $totalResults; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9550,7 +8920,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -9559,7 +8928,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9568,7 +8936,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -9577,7 +8944,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -9586,7 +8952,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -9595,12 +8960,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Analytics_UserRef extends Google_Model @@ -9611,11 +8974,11 @@ class Google_Service_Analytics_UserRef extends Google_Model public $id; public $kind; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -9624,7 +8987,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9633,12 +8995,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Analytics_WebPropertyRef extends Google_Model @@ -9652,11 +9012,11 @@ class Google_Service_Analytics_WebPropertyRef extends Google_Model public $kind; public $name; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -9665,7 +9025,6 @@ public function setHref($href) { $this->href = $href; } - public function getHref() { return $this->href; @@ -9674,7 +9033,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9683,7 +9041,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -9692,7 +9049,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9701,12 +9057,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Analytics_WebPropertySummary extends Google_Collection @@ -9723,11 +9077,11 @@ class Google_Service_Analytics_WebPropertySummary extends Google_Collection protected $profilesDataType = 'array'; public $websiteUrl; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9736,7 +9090,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -9745,7 +9098,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9754,7 +9106,6 @@ public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; @@ -9763,7 +9114,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9772,7 +9122,6 @@ public function setProfiles($profiles) { $this->profiles = $profiles; } - public function getProfiles() { return $this->profiles; @@ -9781,12 +9130,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_Analytics_Webproperties extends Google_Collection @@ -9804,11 +9151,11 @@ class Google_Service_Analytics_Webproperties extends Google_Collection public $totalResults; public $username; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -9817,7 +9164,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -9826,7 +9172,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9835,7 +9180,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -9844,7 +9188,6 @@ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } - public function getPreviousLink() { return $this->previousLink; @@ -9853,7 +9196,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -9862,7 +9204,6 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; @@ -9871,12 +9212,10 @@ public function setUsername($username) { $this->username = $username; } - public function getUsername() { return $this->username; } - } class Google_Service_Analytics_Webproperty extends Google_Model @@ -9903,11 +9242,11 @@ class Google_Service_Analytics_Webproperty extends Google_Model public $updated; public $websiteUrl; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -9916,7 +9255,6 @@ public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $chil { $this->childLink = $childLink; } - public function getChildLink() { return $this->childLink; @@ -9925,7 +9263,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -9934,7 +9271,6 @@ public function setDefaultProfileId($defaultProfileId) { $this->defaultProfileId = $defaultProfileId; } - public function getDefaultProfileId() { return $this->defaultProfileId; @@ -9943,7 +9279,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -9952,7 +9287,6 @@ public function setIndustryVertical($industryVertical) { $this->industryVertical = $industryVertical; } - public function getIndustryVertical() { return $this->industryVertical; @@ -9961,7 +9295,6 @@ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } - public function getInternalWebPropertyId() { return $this->internalWebPropertyId; @@ -9970,7 +9303,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -9979,7 +9311,6 @@ public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; @@ -9988,7 +9319,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -9997,7 +9327,6 @@ public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $pa { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -10006,7 +9335,6 @@ public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $ { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; @@ -10015,7 +9343,6 @@ public function setProfileCount($profileCount) { $this->profileCount = $profileCount; } - public function getProfileCount() { return $this->profileCount; @@ -10024,7 +9351,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -10033,7 +9359,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -10042,12 +9367,10 @@ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } - public function getWebsiteUrl() { return $this->websiteUrl; } - } class Google_Service_Analytics_WebpropertyChildLink extends Google_Model @@ -10057,11 +9380,11 @@ 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; @@ -10070,12 +9393,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_WebpropertyParentLink extends Google_Model @@ -10085,11 +9406,11 @@ 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; @@ -10098,12 +9419,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection @@ -10113,14 +9432,13 @@ class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection ); public $effective; + public function setEffective($effective) { $this->effective = $effective; } - public function getEffective() { return $this->effective; } - } From 3e3bfc1901b7b869998c427bed33c127ac6bb6f8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:43 -0800 Subject: [PATCH 0484/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 173 +++++++++++++----------------- 1 file changed, 74 insertions(+), 99 deletions(-) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 533f465d6..8e6f015b8 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -19,8 +19,7 @@ * Service definition for Webmasters (v3). * *

- * Lets you view Google Webmaster Tools data for your verified sites. - *

+ * Lets you view Google Webmaster Tools data for your verified sites.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Webmasters extends Google_Service { /** View and modify Webmaster Tools data for your verified sites. */ - const WEBMASTERS = "https://www.googleapis.com/auth/webmasters"; + const WEBMASTERS = + "https://www.googleapis.com/auth/webmasters"; /** View Webmaster Tools data for your verified sites. */ - const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; + const WEBMASTERS_READONLY = + "https://www.googleapis.com/auth/webmasters.readonly"; public $sitemaps; public $sites; @@ -297,10 +298,10 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc /** * Deletes a sitemap from this site. (sitemaps.delete) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $feedpath - * The URL of the actual sitemap (for example http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $feedpath The URL of the actual sitemap (for example + * http://www.example.com/sitemap.xml). * @param array $optParams Optional parameters. */ public function delete($siteUrl, $feedpath, $optParams = array()) @@ -309,13 +310,14 @@ public function delete($siteUrl, $feedpath, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves information about a specific sitemap. (sitemaps.get) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $feedpath - * The URL of the actual sitemap (for example http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $feedpath The URL of the actual sitemap (for example + * http://www.example.com/sitemap.xml). * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSitemap */ @@ -325,15 +327,15 @@ public function get($siteUrl, $feedpath, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); } + /** * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' * @param array $optParams Optional parameters. * - * @opt_param string sitemapIndex - * A URL of a site's sitemap index. + * @opt_param string sitemapIndex A URL of a site's sitemap index. * @return Google_Service_Webmasters_SitemapsListResponse */ public function listSitemaps($siteUrl, $optParams = array()) @@ -342,13 +344,13 @@ public function listSitemaps($siteUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); } + /** * Submits a sitemap for a site. (sitemaps.submit) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $feedpath - * The URL of the sitemap to add. + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $feedpath The URL of the sitemap to add. * @param array $optParams Optional parameters. */ public function submit($siteUrl, $feedpath, $optParams = array()) @@ -373,8 +375,7 @@ class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource /** * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) * - * @param string $siteUrl - * The URL of the site to add. + * @param string $siteUrl The URL of the site to add. * @param array $optParams Optional parameters. */ public function add($siteUrl, $optParams = array()) @@ -383,12 +384,13 @@ public function add($siteUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('add', array($params)); } + /** * Removes a site from the set of the user's Webmaster Tools sites. * (sites.delete) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' * @param array $optParams Optional parameters. */ public function delete($siteUrl, $optParams = array()) @@ -397,11 +399,12 @@ public function delete($siteUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves information about specific site. (sites.get) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSite */ @@ -411,6 +414,7 @@ public function get($siteUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); } + /** * Lists your Webmaster Tools sites. (sites.listSites) * @@ -440,18 +444,17 @@ class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Ser * Retrieves a time series of the number of URL crawl errors per error category * and platform. (urlcrawlerrorscounts.query) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' * @param array $optParams Optional parameters. * - * @opt_param string category - * The crawl error category, for example 'serverError'. If not specified, we return results for all - * categories. - * @opt_param string platform - * The user agent type (platform) that made the request, for example 'web'. If not specified, we - * return results for all platforms. - * @opt_param bool latestCountsOnly - * If true, returns only the latest crawl error counts. + * @opt_param string category The crawl error category, for example + * 'serverError'. If not specified, we return results for all categories. + * @opt_param string platform The user agent type (platform) that made the + * request, for example 'web'. If not specified, we return results for all + * platforms. + * @opt_param bool latestCountsOnly If true, returns only the latest crawl error + * counts. * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse */ public function query($siteUrl, $optParams = array()) @@ -477,14 +480,14 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se * Retrieves details about crawl errors for a site's sample URL. * (urlcrawlerrorssamples.get) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $url - * The relative path (without the site) of the sample URL; must be one of the URLs returned by list - * @param string $category - * The crawl error category, for example 'authPermissions' - * @param string $platform - * The user agent type (platform) that made the request, for example 'web' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $url The relative path (without the site) of the sample URL; + * must be one of the URLs returned by list + * @param string $category The crawl error category, for example + * 'authPermissions' + * @param string $platform The user agent type (platform) that made the request, + * for example 'web' * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSample */ @@ -494,16 +497,17 @@ public function get($siteUrl, $url, $category, $platform, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); } + /** * Lists a site's sample URLs for the specified crawl error category and * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $category - * The crawl error category, for example 'authPermissions' - * @param string $platform - * The user agent type (platform) that made the request, for example 'web' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $category The crawl error category, for example + * 'authPermissions' + * @param string $platform The user agent type (platform) that made the request, + * for example 'web' * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse */ @@ -513,18 +517,19 @@ public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optPa $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); } + /** * Marks the provided site's sample URL as fixed, and removes it from the * samples list. (urlcrawlerrorssamples.markAsFixed) * - * @param string $siteUrl - * The site's URL, including protocol, for example 'http://www.example.com/' - * @param string $url - * The relative path (without the site) of the sample URL; must be one of the URLs returned by list - * @param string $category - * The crawl error category, for example 'authPermissions' - * @param string $platform - * The user agent type (platform) that made the request, for example 'web' + * @param string $siteUrl The site's URL, including protocol, for example + * 'http://www.example.com/' + * @param string $url The relative path (without the site) of the sample URL; + * must be one of the URLs returned by list + * @param string $category The crawl error category, for example + * 'authPermissions' + * @param string $platform The user agent type (platform) that made the request, + * for example 'web' * @param array $optParams Optional parameters. */ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) @@ -546,16 +551,15 @@ class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; protected $sitemapDataType = 'array'; + public function setSitemap($sitemap) { $this->sitemap = $sitemap; } - public function getSitemap() { return $this->sitemap; } - } class Google_Service_Webmasters_SitesListResponse extends Google_Collection @@ -566,16 +570,15 @@ class Google_Service_Webmasters_SitesListResponse extends Google_Collection protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; protected $siteEntryDataType = 'array'; + public function setSiteEntry($siteEntry) { $this->siteEntry = $siteEntry; } - public function getSiteEntry() { return $this->siteEntry; } - } class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model @@ -585,11 +588,11 @@ class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model public $count; public $timestamp; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -598,12 +601,10 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; } - } class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection @@ -616,11 +617,11 @@ class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collec protected $entriesDataType = 'array'; public $platform; + public function setCategory($category) { $this->category = $category; } - public function getCategory() { return $this->category; @@ -629,7 +630,6 @@ public function setEntries($entries) { $this->entries = $entries; } - public function getEntries() { return $this->entries; @@ -638,12 +638,10 @@ public function setPlatform($platform) { $this->platform = $platform; } - public function getPlatform() { return $this->platform; } - } class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection @@ -654,16 +652,15 @@ class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; protected $countPerTypesDataType = 'array'; + public function setCountPerTypes($countPerTypes) { $this->countPerTypes = $countPerTypes; } - public function getCountPerTypes() { return $this->countPerTypes; } - } class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model @@ -679,11 +676,11 @@ class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; protected $urlDetailsDataType = ''; + public function setFirstDetected($firstDetected) { $this->firstDetected = $firstDetected; } - public function getFirstDetected() { return $this->firstDetected; @@ -692,7 +689,6 @@ public function setLastCrawled($lastCrawled) { $this->lastCrawled = $lastCrawled; } - public function getLastCrawled() { return $this->lastCrawled; @@ -701,7 +697,6 @@ public function setPageUrl($pageUrl) { $this->pageUrl = $pageUrl; } - public function getPageUrl() { return $this->pageUrl; @@ -710,7 +705,6 @@ public function setResponseCode($responseCode) { $this->responseCode = $responseCode; } - public function getResponseCode() { return $this->responseCode; @@ -719,12 +713,10 @@ public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDet { $this->urlDetails = $urlDetails; } - public function getUrlDetails() { return $this->urlDetails; } - } class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection @@ -735,16 +727,15 @@ class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; protected $urlCrawlErrorSampleDataType = 'array'; + public function setUrlCrawlErrorSample($urlCrawlErrorSample) { $this->urlCrawlErrorSample = $urlCrawlErrorSample; } - public function getUrlCrawlErrorSample() { return $this->urlCrawlErrorSample; } - } class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection @@ -755,11 +746,11 @@ class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection public $containingSitemaps; public $linkedFromUrls; + public function setContainingSitemaps($containingSitemaps) { $this->containingSitemaps = $containingSitemaps; } - public function getContainingSitemaps() { return $this->containingSitemaps; @@ -768,12 +759,10 @@ public function setLinkedFromUrls($linkedFromUrls) { $this->linkedFromUrls = $linkedFromUrls; } - public function getLinkedFromUrls() { return $this->linkedFromUrls; } - } class Google_Service_Webmasters_WmxSite extends Google_Model @@ -783,11 +772,11 @@ class Google_Service_Webmasters_WmxSite extends Google_Model public $permissionLevel; public $siteUrl; + public function setPermissionLevel($permissionLevel) { $this->permissionLevel = $permissionLevel; } - public function getPermissionLevel() { return $this->permissionLevel; @@ -796,12 +785,10 @@ public function setSiteUrl($siteUrl) { $this->siteUrl = $siteUrl; } - public function getSiteUrl() { return $this->siteUrl; } - } class Google_Service_Webmasters_WmxSitemap extends Google_Collection @@ -820,11 +807,11 @@ class Google_Service_Webmasters_WmxSitemap extends Google_Collection public $type; public $warnings; + public function setContents($contents) { $this->contents = $contents; } - public function getContents() { return $this->contents; @@ -833,7 +820,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -842,7 +828,6 @@ public function setIsPending($isPending) { $this->isPending = $isPending; } - public function getIsPending() { return $this->isPending; @@ -851,7 +836,6 @@ public function setIsSitemapsIndex($isSitemapsIndex) { $this->isSitemapsIndex = $isSitemapsIndex; } - public function getIsSitemapsIndex() { return $this->isSitemapsIndex; @@ -860,7 +844,6 @@ public function setLastDownloaded($lastDownloaded) { $this->lastDownloaded = $lastDownloaded; } - public function getLastDownloaded() { return $this->lastDownloaded; @@ -869,7 +852,6 @@ public function setLastSubmitted($lastSubmitted) { $this->lastSubmitted = $lastSubmitted; } - public function getLastSubmitted() { return $this->lastSubmitted; @@ -878,7 +860,6 @@ public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; @@ -887,7 +868,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -896,12 +876,10 @@ public function setWarnings($warnings) { $this->warnings = $warnings; } - public function getWarnings() { return $this->warnings; } - } class Google_Service_Webmasters_WmxSitemapContent extends Google_Model @@ -912,11 +890,11 @@ class Google_Service_Webmasters_WmxSitemapContent extends Google_Model public $submitted; public $type; + public function setIndexed($indexed) { $this->indexed = $indexed; } - public function getIndexed() { return $this->indexed; @@ -925,7 +903,6 @@ public function setSubmitted($submitted) { $this->submitted = $submitted; } - public function getSubmitted() { return $this->submitted; @@ -934,10 +911,8 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } From 7dccd09d52f5238bb1578a1aa46fe044a837cf67 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:43 -0800 Subject: [PATCH 0485/1274] Updated Groupssettings.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Groupssettings.php | 47 +++++---------------------- 1 file changed, 9 insertions(+), 38 deletions(-) diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php index 77dadb256..c8c3dfed5 100644 --- a/src/Google/Service/Groupssettings.php +++ b/src/Google/Service/Groupssettings.php @@ -19,8 +19,7 @@ * Service definition for Groupssettings (v1). * *

- * Lets you manage permission levels and related settings of a group. - *

+ * Lets you manage permission levels and related settings of a group.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_Groupssettings extends Google_Service { /** View and manage the settings of a Google Apps Group. */ - const APPS_GROUPS_SETTINGS = "https://www.googleapis.com/auth/apps.groups.settings"; + const APPS_GROUPS_SETTINGS = + "https://www.googleapis.com/auth/apps.groups.settings"; public $groups; @@ -107,8 +107,7 @@ class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resou /** * Gets one resource by id. (groups.get) * - * @param string $groupUniqueId - * The resource ID + * @param string $groupUniqueId The resource ID * @param array $optParams Optional parameters. * @return Google_Service_Groupssettings_Groups */ @@ -118,12 +117,12 @@ public function get($groupUniqueId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Groupssettings_Groups"); } + /** * Updates an existing resource. This method supports patch semantics. * (groups.patch) * - * @param string $groupUniqueId - * The resource ID + * @param string $groupUniqueId The resource ID * @param Google_Groups $postBody * @param array $optParams Optional parameters. * @return Google_Service_Groupssettings_Groups @@ -134,11 +133,11 @@ public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $post $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups"); } + /** * Updates an existing resource. (groups.update) * - * @param string $groupUniqueId - * The resource ID + * @param string $groupUniqueId The resource ID * @param Google_Groups $postBody * @param array $optParams Optional parameters. * @return Google_Service_Groupssettings_Groups @@ -187,11 +186,11 @@ class Google_Service_Groupssettings_Groups extends Google_Model public $whoCanViewGroup; public $whoCanViewMembership; + public function setAllowExternalMembers($allowExternalMembers) { $this->allowExternalMembers = $allowExternalMembers; } - public function getAllowExternalMembers() { return $this->allowExternalMembers; @@ -200,7 +199,6 @@ public function setAllowGoogleCommunication($allowGoogleCommunication) { $this->allowGoogleCommunication = $allowGoogleCommunication; } - public function getAllowGoogleCommunication() { return $this->allowGoogleCommunication; @@ -209,7 +207,6 @@ public function setAllowWebPosting($allowWebPosting) { $this->allowWebPosting = $allowWebPosting; } - public function getAllowWebPosting() { return $this->allowWebPosting; @@ -218,7 +215,6 @@ public function setArchiveOnly($archiveOnly) { $this->archiveOnly = $archiveOnly; } - public function getArchiveOnly() { return $this->archiveOnly; @@ -227,7 +223,6 @@ public function setCustomReplyTo($customReplyTo) { $this->customReplyTo = $customReplyTo; } - public function getCustomReplyTo() { return $this->customReplyTo; @@ -236,7 +231,6 @@ public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotific { $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; } - public function getDefaultMessageDenyNotificationText() { return $this->defaultMessageDenyNotificationText; @@ -245,7 +239,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -254,7 +247,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -263,7 +255,6 @@ public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { $this->includeInGlobalAddressList = $includeInGlobalAddressList; } - public function getIncludeInGlobalAddressList() { return $this->includeInGlobalAddressList; @@ -272,7 +263,6 @@ public function setIsArchived($isArchived) { $this->isArchived = $isArchived; } - public function getIsArchived() { return $this->isArchived; @@ -281,7 +271,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -290,7 +279,6 @@ public function setMaxMessageBytes($maxMessageBytes) { $this->maxMessageBytes = $maxMessageBytes; } - public function getMaxMessageBytes() { return $this->maxMessageBytes; @@ -299,7 +287,6 @@ public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) { $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; } - public function getMembersCanPostAsTheGroup() { return $this->membersCanPostAsTheGroup; @@ -308,7 +295,6 @@ public function setMessageDisplayFont($messageDisplayFont) { $this->messageDisplayFont = $messageDisplayFont; } - public function getMessageDisplayFont() { return $this->messageDisplayFont; @@ -317,7 +303,6 @@ public function setMessageModerationLevel($messageModerationLevel) { $this->messageModerationLevel = $messageModerationLevel; } - public function getMessageModerationLevel() { return $this->messageModerationLevel; @@ -326,7 +311,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -335,7 +319,6 @@ public function setPrimaryLanguage($primaryLanguage) { $this->primaryLanguage = $primaryLanguage; } - public function getPrimaryLanguage() { return $this->primaryLanguage; @@ -344,7 +327,6 @@ public function setReplyTo($replyTo) { $this->replyTo = $replyTo; } - public function getReplyTo() { return $this->replyTo; @@ -353,7 +335,6 @@ public function setSendMessageDenyNotification($sendMessageDenyNotification) { $this->sendMessageDenyNotification = $sendMessageDenyNotification; } - public function getSendMessageDenyNotification() { return $this->sendMessageDenyNotification; @@ -362,7 +343,6 @@ public function setShowInGroupDirectory($showInGroupDirectory) { $this->showInGroupDirectory = $showInGroupDirectory; } - public function getShowInGroupDirectory() { return $this->showInGroupDirectory; @@ -371,7 +351,6 @@ public function setSpamModerationLevel($spamModerationLevel) { $this->spamModerationLevel = $spamModerationLevel; } - public function getSpamModerationLevel() { return $this->spamModerationLevel; @@ -380,7 +359,6 @@ public function setWhoCanContactOwner($whoCanContactOwner) { $this->whoCanContactOwner = $whoCanContactOwner; } - public function getWhoCanContactOwner() { return $this->whoCanContactOwner; @@ -389,7 +367,6 @@ public function setWhoCanInvite($whoCanInvite) { $this->whoCanInvite = $whoCanInvite; } - public function getWhoCanInvite() { return $this->whoCanInvite; @@ -398,7 +375,6 @@ public function setWhoCanJoin($whoCanJoin) { $this->whoCanJoin = $whoCanJoin; } - public function getWhoCanJoin() { return $this->whoCanJoin; @@ -407,7 +383,6 @@ public function setWhoCanLeaveGroup($whoCanLeaveGroup) { $this->whoCanLeaveGroup = $whoCanLeaveGroup; } - public function getWhoCanLeaveGroup() { return $this->whoCanLeaveGroup; @@ -416,7 +391,6 @@ public function setWhoCanPostMessage($whoCanPostMessage) { $this->whoCanPostMessage = $whoCanPostMessage; } - public function getWhoCanPostMessage() { return $this->whoCanPostMessage; @@ -425,7 +399,6 @@ public function setWhoCanViewGroup($whoCanViewGroup) { $this->whoCanViewGroup = $whoCanViewGroup; } - public function getWhoCanViewGroup() { return $this->whoCanViewGroup; @@ -434,10 +407,8 @@ public function setWhoCanViewMembership($whoCanViewMembership) { $this->whoCanViewMembership = $whoCanViewMembership; } - public function getWhoCanViewMembership() { return $this->whoCanViewMembership; } - } From f2e6270b2c72e2c2d569a4eee9c4b750b53ccf11 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:43 -0800 Subject: [PATCH 0486/1274] Updated Plus.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Plus.php | 562 +++++++++--------------------------- 1 file changed, 142 insertions(+), 420 deletions(-) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index d21ecddb5..e28783b74 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -19,8 +19,7 @@ * Service definition for Plus (v1). * *

- * The Google+ API enables developers to build on top of the Google+ platform. - *

+ * The Google+ API enables developers to build on top of the Google+ platform.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Plus extends Google_Service { /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + const PLUS_ME = + "https://www.googleapis.com/auth/plus.me"; /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; + const USERINFO_PROFILE = + "https://www.googleapis.com/auth/userinfo.profile"; public $activities; public $comments; @@ -349,8 +352,7 @@ class Google_Service_Plus_Activities_Resource extends Google_Service_Resource /** * Get an activity. (activities.get) * - * @param string $activityId - * The ID of the activity to get. + * @param string $activityId The ID of the activity to get. * @param array $optParams Optional parameters. * @return Google_Service_Plus_Activity */ @@ -360,23 +362,22 @@ public function get($activityId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Plus_Activity"); } + /** * List all of the activities in the specified collection for a particular user. * (activities.listActivities) * - * @param string $userId - * The ID of the user to get activities for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of activities to list. + * @param string $userId The ID of the user to get activities for. The special + * value "me" can be used to indicate the authenticated user. + * @param string $collection The collection of activities to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of activities to include in + * the response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_Plus_ActivityFeed */ public function listActivities($userId, $collection, $optParams = array()) @@ -385,24 +386,23 @@ public function listActivities($userId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Plus_ActivityFeed"); } + /** * Search public activities. (activities.search) * - * @param string $query - * Full-text search query string. + * @param string $query Full-text search query string. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Specifies how to order search results. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. This - * token can be of any length. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string language - * Specify the preferred language to search with. See search language codes for available values. + * @opt_param string orderBy Specifies how to order search results. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. This + * token can be of any length. + * @opt_param string maxResults The maximum number of activities to include in + * the response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. + * @opt_param string language Specify the preferred language to search with. See + * search language codes for available values. * @return Google_Service_Plus_ActivityFeed */ public function search($query, $optParams = array()) @@ -427,8 +427,7 @@ class Google_Service_Plus_Comments_Resource extends Google_Service_Resource /** * Get a comment. (comments.get) * - * @param string $commentId - * The ID of the comment to get. + * @param string $commentId The ID of the comment to get. * @param array $optParams Optional parameters. * @return Google_Service_Plus_Comment */ @@ -438,21 +437,20 @@ public function get($commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Plus_Comment"); } + /** * List all of the comments for an activity. (comments.listComments) * - * @param string $activityId - * The ID of the activity to get comments for. + * @param string $activityId The ID of the activity to get comments for. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string sortOrder - * The order in which to sort the list of comments. - * @opt_param string maxResults - * The maximum number of comments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string sortOrder The order in which to sort the list of comments. + * @opt_param string maxResults The maximum number of comments to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_Plus_CommentFeed */ public function listComments($activityId, $optParams = array()) @@ -478,16 +476,14 @@ class Google_Service_Plus_Moments_Resource extends Google_Service_Resource * Record a moment representing a user's action such as making a purchase or * commenting on a blog. (moments.insert) * - * @param string $userId - * The ID of the user to record actions for. The only valid values are "me" and the ID of the - * authenticated user. - * @param string $collection - * The collection to which to write moments. + * @param string $userId The ID of the user to record actions for. The only + * valid values are "me" and the ID of the authenticated user. + * @param string $collection The collection to which to write moments. * @param Google_Moment $postBody * @param array $optParams Optional parameters. * - * @opt_param bool debug - * Return the moment as written. Should be used only for debugging. + * @opt_param bool debug Return the moment as written. Should be used only for + * debugging. * @return Google_Service_Plus_Moment */ public function insert($userId, $collection, Google_Service_Plus_Moment $postBody, $optParams = array()) @@ -496,26 +492,24 @@ public function insert($userId, $collection, Google_Service_Plus_Moment $postBod $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Plus_Moment"); } + /** * List all of the moments for a particular user. (moments.listMoments) * - * @param string $userId - * The ID of the user to get moments for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of moments to list. + * @param string $userId The ID of the user to get moments for. The special + * value "me" can be used to indicate the authenticated user. + * @param string $collection The collection of moments to list. * @param array $optParams Optional parameters. * - * @opt_param string maxResults - * The maximum number of moments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string targetUrl - * Only moments containing this targetUrl will be returned. - * @opt_param string type - * Only moments of this type will be returned. + * @opt_param string maxResults The maximum number of moments to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string targetUrl Only moments containing this targetUrl will be + * returned. + * @opt_param string type Only moments of this type will be returned. * @return Google_Service_Plus_MomentsFeed */ public function listMoments($userId, $collection, $optParams = array()) @@ -524,11 +518,11 @@ public function listMoments($userId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Plus_MomentsFeed"); } + /** * Delete a moment. (moments.remove) * - * @param string $id - * The ID of the moment to delete. + * @param string $id The ID of the moment to delete. * @param array $optParams Optional parameters. */ public function remove($id, $optParams = array()) @@ -555,9 +549,8 @@ class Google_Service_Plus_People_Resource extends Google_Service_Resource * https://www.googleapis.com/auth/plus.login, this method is guaranteed to * return ageRange and language. (people.get) * - * @param string $userId - * The ID of the person to get the profile for. The special value "me" can be used to indicate the - * authenticated user. + * @param string $userId The ID of the person to get the profile for. The + * special value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * @return Google_Service_Plus_Person */ @@ -567,24 +560,22 @@ public function get($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Plus_Person"); } + /** * List all of the people in the specified collection. (people.listPeople) * - * @param string $userId - * Get the collection of people for the person identified. Use "me" to indicate the authenticated - * user. - * @param string $collection - * The collection of people to list. + * @param string $userId Get the collection of people for the person identified. + * Use "me" to indicate the authenticated user. + * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * The order to return people in. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string orderBy The order to return people in. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_Plus_PeopleFeed */ public function listPeople($userId, $collection, $optParams = array()) @@ -593,22 +584,22 @@ public function listPeople($userId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed"); } + /** * List all of the people in the specified collection for a particular activity. * (people.listByActivity) * - * @param string $activityId - * The ID of the activity to get the list of people for. - * @param string $collection - * The collection of people to list. + * @param string $activityId The ID of the activity to get the list of people + * for. + * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. * @return Google_Service_Plus_PeopleFeed */ public function listByActivity($activityId, $collection, $optParams = array()) @@ -617,22 +608,23 @@ public function listByActivity($activityId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed"); } + /** * Search all public profiles. (people.search) * - * @param string $query - * Specify a query string for full text search of public text in all profiles. + * @param string $query Specify a query string for full text search of public + * text in all profiles. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. This - * token can be of any length. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string language - * Specify the preferred language to search with. See search language codes for available values. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. This + * token can be of any length. + * @opt_param string maxResults The maximum number of people to include in the + * response, which is used for paging. For any response, the actual number + * returned might be less than the specified maxResults. + * @opt_param string language Specify the preferred language to search with. See + * search language codes for available values. * @return Google_Service_Plus_PeopleFeed */ public function search($query, $optParams = array()) @@ -656,11 +648,11 @@ class Google_Service_Plus_Acl extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -669,7 +661,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -678,12 +669,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Plus_Activity extends Google_Model @@ -716,11 +705,11 @@ class Google_Service_Plus_Activity extends Google_Model public $url; public $verb; + public function setAccess(Google_Service_Plus_Acl $access) { $this->access = $access; } - public function getAccess() { return $this->access; @@ -729,7 +718,6 @@ public function setActor(Google_Service_Plus_ActivityActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -738,7 +726,6 @@ public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -747,7 +734,6 @@ public function setAnnotation($annotation) { $this->annotation = $annotation; } - public function getAnnotation() { return $this->annotation; @@ -756,7 +742,6 @@ public function setCrosspostSource($crosspostSource) { $this->crosspostSource = $crosspostSource; } - public function getCrosspostSource() { return $this->crosspostSource; @@ -765,7 +750,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -774,7 +758,6 @@ public function setGeocode($geocode) { $this->geocode = $geocode; } - public function getGeocode() { return $this->geocode; @@ -783,7 +766,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -792,7 +774,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -801,7 +782,6 @@ public function setLocation(Google_Service_Plus_Place $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -810,7 +790,6 @@ public function setObject(Google_Service_Plus_ActivityObject $object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -819,7 +798,6 @@ public function setPlaceId($placeId) { $this->placeId = $placeId; } - public function getPlaceId() { return $this->placeId; @@ -828,7 +806,6 @@ public function setPlaceName($placeName) { $this->placeName = $placeName; } - public function getPlaceName() { return $this->placeName; @@ -837,7 +814,6 @@ public function setProvider(Google_Service_Plus_ActivityProvider $provider) { $this->provider = $provider; } - public function getProvider() { return $this->provider; @@ -846,7 +822,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -855,7 +830,6 @@ public function setRadius($radius) { $this->radius = $radius; } - public function getRadius() { return $this->radius; @@ -864,7 +838,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -873,7 +846,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -882,7 +854,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -891,12 +862,10 @@ public function setVerb($verb) { $this->verb = $verb; } - public function getVerb() { return $this->verb; } - } class Google_Service_Plus_ActivityActor extends Google_Model @@ -911,11 +880,11 @@ class Google_Service_Plus_ActivityActor extends Google_Model protected $nameDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -924,7 +893,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -933,7 +901,6 @@ public function setImage(Google_Service_Plus_ActivityActorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -942,7 +909,6 @@ public function setName(Google_Service_Plus_ActivityActorName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -951,12 +917,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityActorImage extends Google_Model @@ -965,16 +929,15 @@ class Google_Service_Plus_ActivityActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityActorName extends Google_Model @@ -984,11 +947,11 @@ class Google_Service_Plus_ActivityActorName extends Google_Model public $familyName; public $givenName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -997,12 +960,10 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; } - } class Google_Service_Plus_ActivityFeed extends Google_Collection @@ -1021,11 +982,11 @@ class Google_Service_Plus_ActivityFeed extends Google_Collection public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1034,7 +995,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1043,7 +1003,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1052,7 +1011,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1061,7 +1019,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -1070,7 +1027,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1079,7 +1035,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1088,7 +1043,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1097,12 +1051,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Plus_ActivityObject extends Google_Collection @@ -1126,11 +1078,11 @@ class Google_Service_Plus_ActivityObject extends Google_Collection protected $resharersDataType = ''; public $url; + public function setActor(Google_Service_Plus_ActivityObjectActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -1139,7 +1091,6 @@ public function setAttachments($attachments) { $this->attachments = $attachments; } - public function getAttachments() { return $this->attachments; @@ -1148,7 +1099,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -1157,7 +1107,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1166,7 +1115,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -1175,7 +1123,6 @@ public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; } - public function getOriginalContent() { return $this->originalContent; @@ -1184,7 +1131,6 @@ public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $pluson { $this->plusoners = $plusoners; } - public function getPlusoners() { return $this->plusoners; @@ -1193,7 +1139,6 @@ public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies) { $this->replies = $replies; } - public function getReplies() { return $this->replies; @@ -1202,7 +1147,6 @@ public function setResharers(Google_Service_Plus_ActivityObjectResharers $reshar { $this->resharers = $resharers; } - public function getResharers() { return $this->resharers; @@ -1211,12 +1155,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectActor extends Google_Model @@ -1229,11 +1171,11 @@ class Google_Service_Plus_ActivityObjectActor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1242,7 +1184,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1251,7 +1192,6 @@ public function setImage(Google_Service_Plus_ActivityObjectActorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -1260,12 +1200,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectActorImage extends Google_Model @@ -1274,16 +1212,15 @@ class Google_Service_Plus_ActivityObjectActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection @@ -1305,11 +1242,11 @@ class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection protected $thumbnailsDataType = 'array'; public $url; + public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -1318,7 +1255,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1327,7 +1263,6 @@ public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $emb { $this->embed = $embed; } - public function getEmbed() { return $this->embed; @@ -1336,7 +1271,6 @@ public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullIm { $this->fullImage = $fullImage; } - public function getFullImage() { return $this->fullImage; @@ -1345,7 +1279,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1354,7 +1287,6 @@ public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $ima { $this->image = $image; } - public function getImage() { return $this->image; @@ -1363,7 +1295,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -1372,7 +1303,6 @@ public function setThumbnails($thumbnails) { $this->thumbnails = $thumbnails; } - public function getThumbnails() { return $this->thumbnails; @@ -1381,12 +1311,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model @@ -1396,11 +1324,11 @@ class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model public $type; public $url; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1409,12 +1337,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model @@ -1426,11 +1352,11 @@ class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Mode public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1439,7 +1365,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1448,7 +1373,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1457,12 +1381,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model @@ -1474,11 +1396,11 @@ class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1487,7 +1409,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1496,7 +1417,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1505,12 +1425,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model @@ -1522,11 +1440,11 @@ class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Mod protected $imageDataType = ''; public $url; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1535,7 +1453,6 @@ public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnails { $this->image = $image; } - public function getImage() { return $this->image; @@ -1544,12 +1461,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model @@ -1561,11 +1476,11 @@ class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Googl public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1574,7 +1489,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1583,7 +1497,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -1592,12 +1505,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model @@ -1607,11 +1518,11 @@ class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1620,12 +1531,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Plus_ActivityObjectReplies extends Google_Model @@ -1635,11 +1544,11 @@ class Google_Service_Plus_ActivityObjectReplies extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1648,12 +1557,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Plus_ActivityObjectResharers extends Google_Model @@ -1663,11 +1570,11 @@ class Google_Service_Plus_ActivityObjectResharers extends Google_Model public $selfLink; public $totalItems; + public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1676,12 +1583,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Plus_ActivityProvider extends Google_Model @@ -1690,16 +1595,15 @@ class Google_Service_Plus_ActivityProvider extends Google_Model ); public $title; + public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Plus_Comment extends Google_Collection @@ -1723,11 +1627,11 @@ class Google_Service_Plus_Comment extends Google_Collection public $updated; public $verb; + public function setActor(Google_Service_Plus_CommentActor $actor) { $this->actor = $actor; } - public function getActor() { return $this->actor; @@ -1736,7 +1640,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1745,7 +1648,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1754,7 +1656,6 @@ public function setInReplyTo($inReplyTo) { $this->inReplyTo = $inReplyTo; } - public function getInReplyTo() { return $this->inReplyTo; @@ -1763,7 +1664,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1772,7 +1672,6 @@ public function setObject(Google_Service_Plus_CommentObject $object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -1781,7 +1680,6 @@ public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners) { $this->plusoners = $plusoners; } - public function getPlusoners() { return $this->plusoners; @@ -1790,7 +1688,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -1799,7 +1696,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -1808,7 +1704,6 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; @@ -1817,12 +1712,10 @@ public function setVerb($verb) { $this->verb = $verb; } - public function getVerb() { return $this->verb; } - } class Google_Service_Plus_CommentActor extends Google_Model @@ -1835,11 +1728,11 @@ class Google_Service_Plus_CommentActor extends Google_Model protected $imageDataType = ''; public $url; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1848,7 +1741,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1857,7 +1749,6 @@ public function setImage(Google_Service_Plus_CommentActorImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -1866,12 +1757,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_CommentActorImage extends Google_Model @@ -1880,16 +1769,15 @@ class Google_Service_Plus_CommentActorImage extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_CommentFeed extends Google_Collection @@ -1907,11 +1795,11 @@ class Google_Service_Plus_CommentFeed extends Google_Collection public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1920,7 +1808,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1929,7 +1816,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1938,7 +1824,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1947,7 +1832,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -1956,7 +1840,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1965,7 +1848,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -1974,12 +1856,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Plus_CommentInReplyTo extends Google_Model @@ -1989,11 +1869,11 @@ class Google_Service_Plus_CommentInReplyTo extends Google_Model public $id; public $url; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2002,12 +1882,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_CommentObject extends Google_Model @@ -2018,11 +1896,11 @@ class Google_Service_Plus_CommentObject extends Google_Model public $objectType; public $originalContent; + public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -2031,7 +1909,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -2040,12 +1917,10 @@ public function setOriginalContent($originalContent) { $this->originalContent = $originalContent; } - public function getOriginalContent() { return $this->originalContent; } - } class Google_Service_Plus_CommentPlusoners extends Google_Model @@ -2054,16 +1929,15 @@ class Google_Service_Plus_CommentPlusoners extends Google_Model ); public $totalItems; + public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Plus_ItemScope extends Google_Collection @@ -2143,11 +2017,11 @@ class Google_Service_Plus_ItemScope extends Google_Collection public $width; public $worstRating; + public function setAbout(Google_Service_Plus_ItemScope $about) { $this->about = $about; } - public function getAbout() { return $this->about; @@ -2156,7 +2030,6 @@ public function setAdditionalName($additionalName) { $this->additionalName = $additionalName; } - public function getAdditionalName() { return $this->additionalName; @@ -2165,7 +2038,6 @@ public function setAddress(Google_Service_Plus_ItemScope $address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -2174,7 +2046,6 @@ public function setAddressCountry($addressCountry) { $this->addressCountry = $addressCountry; } - public function getAddressCountry() { return $this->addressCountry; @@ -2183,7 +2054,6 @@ public function setAddressLocality($addressLocality) { $this->addressLocality = $addressLocality; } - public function getAddressLocality() { return $this->addressLocality; @@ -2192,7 +2062,6 @@ public function setAddressRegion($addressRegion) { $this->addressRegion = $addressRegion; } - public function getAddressRegion() { return $this->addressRegion; @@ -2201,7 +2070,6 @@ public function setAssociatedMedia($associatedMedia) { $this->associatedMedia = $associatedMedia; } - public function getAssociatedMedia() { return $this->associatedMedia; @@ -2210,7 +2078,6 @@ public function setAttendeeCount($attendeeCount) { $this->attendeeCount = $attendeeCount; } - public function getAttendeeCount() { return $this->attendeeCount; @@ -2219,7 +2086,6 @@ public function setAttendees($attendees) { $this->attendees = $attendees; } - public function getAttendees() { return $this->attendees; @@ -2228,7 +2094,6 @@ public function setAudio(Google_Service_Plus_ItemScope $audio) { $this->audio = $audio; } - public function getAudio() { return $this->audio; @@ -2237,7 +2102,6 @@ public function setAuthor($author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2246,7 +2110,6 @@ public function setBestRating($bestRating) { $this->bestRating = $bestRating; } - public function getBestRating() { return $this->bestRating; @@ -2255,7 +2118,6 @@ public function setBirthDate($birthDate) { $this->birthDate = $birthDate; } - public function getBirthDate() { return $this->birthDate; @@ -2264,7 +2126,6 @@ public function setByArtist(Google_Service_Plus_ItemScope $byArtist) { $this->byArtist = $byArtist; } - public function getByArtist() { return $this->byArtist; @@ -2273,7 +2134,6 @@ public function setCaption($caption) { $this->caption = $caption; } - public function getCaption() { return $this->caption; @@ -2282,7 +2142,6 @@ public function setContentSize($contentSize) { $this->contentSize = $contentSize; } - public function getContentSize() { return $this->contentSize; @@ -2291,7 +2150,6 @@ public function setContentUrl($contentUrl) { $this->contentUrl = $contentUrl; } - public function getContentUrl() { return $this->contentUrl; @@ -2300,7 +2158,6 @@ public function setContributor($contributor) { $this->contributor = $contributor; } - public function getContributor() { return $this->contributor; @@ -2309,7 +2166,6 @@ public function setDateCreated($dateCreated) { $this->dateCreated = $dateCreated; } - public function getDateCreated() { return $this->dateCreated; @@ -2318,7 +2174,6 @@ public function setDateModified($dateModified) { $this->dateModified = $dateModified; } - public function getDateModified() { return $this->dateModified; @@ -2327,7 +2182,6 @@ public function setDatePublished($datePublished) { $this->datePublished = $datePublished; } - public function getDatePublished() { return $this->datePublished; @@ -2336,7 +2190,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2345,7 +2198,6 @@ public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -2354,7 +2206,6 @@ public function setEmbedUrl($embedUrl) { $this->embedUrl = $embedUrl; } - public function getEmbedUrl() { return $this->embedUrl; @@ -2363,7 +2214,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -2372,7 +2222,6 @@ public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -2381,7 +2230,6 @@ public function setGender($gender) { $this->gender = $gender; } - public function getGender() { return $this->gender; @@ -2390,7 +2238,6 @@ public function setGeo(Google_Service_Plus_ItemScope $geo) { $this->geo = $geo; } - public function getGeo() { return $this->geo; @@ -2399,7 +2246,6 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; @@ -2408,7 +2254,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -2417,7 +2262,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2426,7 +2270,6 @@ public function setImage($image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -2435,7 +2278,6 @@ public function setInAlbum(Google_Service_Plus_ItemScope $inAlbum) { $this->inAlbum = $inAlbum; } - public function getInAlbum() { return $this->inAlbum; @@ -2444,7 +2286,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2453,7 +2294,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -2462,7 +2302,6 @@ public function setLocation(Google_Service_Plus_ItemScope $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -2471,7 +2310,6 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; @@ -2480,7 +2318,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2489,7 +2326,6 @@ public function setPartOfTVSeries(Google_Service_Plus_ItemScope $partOfTVSeries) { $this->partOfTVSeries = $partOfTVSeries; } - public function getPartOfTVSeries() { return $this->partOfTVSeries; @@ -2498,7 +2334,6 @@ public function setPerformers($performers) { $this->performers = $performers; } - public function getPerformers() { return $this->performers; @@ -2507,7 +2342,6 @@ public function setPlayerType($playerType) { $this->playerType = $playerType; } - public function getPlayerType() { return $this->playerType; @@ -2516,7 +2350,6 @@ public function setPostOfficeBoxNumber($postOfficeBoxNumber) { $this->postOfficeBoxNumber = $postOfficeBoxNumber; } - public function getPostOfficeBoxNumber() { return $this->postOfficeBoxNumber; @@ -2525,7 +2358,6 @@ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } - public function getPostalCode() { return $this->postalCode; @@ -2534,7 +2366,6 @@ public function setRatingValue($ratingValue) { $this->ratingValue = $ratingValue; } - public function getRatingValue() { return $this->ratingValue; @@ -2543,7 +2374,6 @@ public function setReviewRating(Google_Service_Plus_ItemScope $reviewRating) { $this->reviewRating = $reviewRating; } - public function getReviewRating() { return $this->reviewRating; @@ -2552,7 +2382,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -2561,7 +2390,6 @@ public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; } - public function getStreetAddress() { return $this->streetAddress; @@ -2570,7 +2398,6 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; @@ -2579,7 +2406,6 @@ public function setThumbnail(Google_Service_Plus_ItemScope $thumbnail) { $this->thumbnail = $thumbnail; } - public function getThumbnail() { return $this->thumbnail; @@ -2588,7 +2414,6 @@ public function setThumbnailUrl($thumbnailUrl) { $this->thumbnailUrl = $thumbnailUrl; } - public function getThumbnailUrl() { return $this->thumbnailUrl; @@ -2597,7 +2422,6 @@ public function setTickerSymbol($tickerSymbol) { $this->tickerSymbol = $tickerSymbol; } - public function getTickerSymbol() { return $this->tickerSymbol; @@ -2606,7 +2430,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -2615,7 +2438,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -2624,7 +2446,6 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; @@ -2633,12 +2454,10 @@ public function setWorstRating($worstRating) { $this->worstRating = $worstRating; } - public function getWorstRating() { return $this->worstRating; } - } class Google_Service_Plus_Moment extends Google_Model @@ -2656,11 +2475,11 @@ class Google_Service_Plus_Moment extends Google_Model protected $targetDataType = ''; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2669,7 +2488,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2678,7 +2496,6 @@ public function setObject(Google_Service_Plus_ItemScope $object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -2687,7 +2504,6 @@ public function setResult(Google_Service_Plus_ItemScope $result) { $this->result = $result; } - public function getResult() { return $this->result; @@ -2696,7 +2512,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -2705,7 +2520,6 @@ public function setTarget(Google_Service_Plus_ItemScope $target) { $this->target = $target; } - public function getTarget() { return $this->target; @@ -2714,12 +2528,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Plus_MomentsFeed extends Google_Collection @@ -2737,11 +2549,11 @@ class Google_Service_Plus_MomentsFeed extends Google_Collection public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2750,7 +2562,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2759,7 +2570,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2768,7 +2578,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -2777,7 +2586,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2786,7 +2594,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2795,7 +2602,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2804,12 +2610,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Plus_PeopleFeed extends Google_Collection @@ -2826,11 +2630,11 @@ class Google_Service_Plus_PeopleFeed extends Google_Collection public $title; public $totalItems; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2839,7 +2643,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2848,7 +2651,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2857,7 +2659,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2866,7 +2667,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2875,7 +2675,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -2884,12 +2683,10 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } class Google_Service_Plus_Person extends Google_Collection @@ -2936,11 +2733,11 @@ class Google_Service_Plus_Person extends Google_Collection protected $urlsDataType = 'array'; public $verified; + public function setAboutMe($aboutMe) { $this->aboutMe = $aboutMe; } - public function getAboutMe() { return $this->aboutMe; @@ -2949,7 +2746,6 @@ public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange) { $this->ageRange = $ageRange; } - public function getAgeRange() { return $this->ageRange; @@ -2958,7 +2754,6 @@ public function setBirthday($birthday) { $this->birthday = $birthday; } - public function getBirthday() { return $this->birthday; @@ -2967,7 +2762,6 @@ public function setBraggingRights($braggingRights) { $this->braggingRights = $braggingRights; } - public function getBraggingRights() { return $this->braggingRights; @@ -2976,7 +2770,6 @@ public function setCircledByCount($circledByCount) { $this->circledByCount = $circledByCount; } - public function getCircledByCount() { return $this->circledByCount; @@ -2985,7 +2778,6 @@ public function setCover(Google_Service_Plus_PersonCover $cover) { $this->cover = $cover; } - public function getCover() { return $this->cover; @@ -2994,7 +2786,6 @@ public function setCurrentLocation($currentLocation) { $this->currentLocation = $currentLocation; } - public function getCurrentLocation() { return $this->currentLocation; @@ -3003,7 +2794,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3012,7 +2802,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -3021,7 +2810,6 @@ public function setEmails($emails) { $this->emails = $emails; } - public function getEmails() { return $this->emails; @@ -3030,7 +2818,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3039,7 +2826,6 @@ public function setGender($gender) { $this->gender = $gender; } - public function getGender() { return $this->gender; @@ -3048,7 +2834,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3057,7 +2842,6 @@ public function setImage(Google_Service_Plus_PersonImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -3066,7 +2850,6 @@ public function setIsPlusUser($isPlusUser) { $this->isPlusUser = $isPlusUser; } - public function getIsPlusUser() { return $this->isPlusUser; @@ -3075,7 +2858,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3084,7 +2866,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -3093,7 +2874,6 @@ public function setName(Google_Service_Plus_PersonName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3102,7 +2882,6 @@ public function setNickname($nickname) { $this->nickname = $nickname; } - public function getNickname() { return $this->nickname; @@ -3111,7 +2890,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -3120,7 +2898,6 @@ public function setOccupation($occupation) { $this->occupation = $occupation; } - public function getOccupation() { return $this->occupation; @@ -3129,7 +2906,6 @@ public function setOrganizations($organizations) { $this->organizations = $organizations; } - public function getOrganizations() { return $this->organizations; @@ -3138,7 +2914,6 @@ public function setPlacesLived($placesLived) { $this->placesLived = $placesLived; } - public function getPlacesLived() { return $this->placesLived; @@ -3147,7 +2922,6 @@ public function setPlusOneCount($plusOneCount) { $this->plusOneCount = $plusOneCount; } - public function getPlusOneCount() { return $this->plusOneCount; @@ -3156,7 +2930,6 @@ public function setRelationshipStatus($relationshipStatus) { $this->relationshipStatus = $relationshipStatus; } - public function getRelationshipStatus() { return $this->relationshipStatus; @@ -3165,7 +2938,6 @@ public function setSkills($skills) { $this->skills = $skills; } - public function getSkills() { return $this->skills; @@ -3174,7 +2946,6 @@ public function setTagline($tagline) { $this->tagline = $tagline; } - public function getTagline() { return $this->tagline; @@ -3183,7 +2954,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3192,7 +2962,6 @@ public function setUrls($urls) { $this->urls = $urls; } - public function getUrls() { return $this->urls; @@ -3201,12 +2970,10 @@ public function setVerified($verified) { $this->verified = $verified; } - public function getVerified() { return $this->verified; } - } class Google_Service_Plus_PersonAgeRange extends Google_Model @@ -3216,11 +2983,11 @@ class Google_Service_Plus_PersonAgeRange extends Google_Model public $max; public $min; + public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -3229,12 +2996,10 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; } - } class Google_Service_Plus_PersonCover extends Google_Model @@ -3247,11 +3012,11 @@ class Google_Service_Plus_PersonCover extends Google_Model protected $coverPhotoDataType = ''; public $layout; + public function setCoverInfo(Google_Service_Plus_PersonCoverCoverInfo $coverInfo) { $this->coverInfo = $coverInfo; } - public function getCoverInfo() { return $this->coverInfo; @@ -3260,7 +3025,6 @@ public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPh { $this->coverPhoto = $coverPhoto; } - public function getCoverPhoto() { return $this->coverPhoto; @@ -3269,12 +3033,10 @@ public function setLayout($layout) { $this->layout = $layout; } - public function getLayout() { return $this->layout; } - } class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model @@ -3284,11 +3046,11 @@ class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model public $leftImageOffset; public $topImageOffset; + public function setLeftImageOffset($leftImageOffset) { $this->leftImageOffset = $leftImageOffset; } - public function getLeftImageOffset() { return $this->leftImageOffset; @@ -3297,12 +3059,10 @@ public function setTopImageOffset($topImageOffset) { $this->topImageOffset = $topImageOffset; } - public function getTopImageOffset() { return $this->topImageOffset; } - } class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model @@ -3313,11 +3073,11 @@ class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -3326,7 +3086,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3335,12 +3094,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Plus_PersonEmails extends Google_Model @@ -3350,11 +3107,11 @@ class Google_Service_Plus_PersonEmails extends Google_Model public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3363,12 +3120,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Plus_PersonImage extends Google_Model @@ -3378,11 +3133,11 @@ class Google_Service_Plus_PersonImage extends Google_Model public $isDefault; public $url; + public function setIsDefault($isDefault) { $this->isDefault = $isDefault; } - public function getIsDefault() { return $this->isDefault; @@ -3391,12 +3146,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Plus_PersonName extends Google_Model @@ -3410,11 +3163,11 @@ class Google_Service_Plus_PersonName extends Google_Model public $honorificSuffix; public $middleName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -3423,7 +3176,6 @@ public function setFormatted($formatted) { $this->formatted = $formatted; } - public function getFormatted() { return $this->formatted; @@ -3432,7 +3184,6 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; @@ -3441,7 +3192,6 @@ public function setHonorificPrefix($honorificPrefix) { $this->honorificPrefix = $honorificPrefix; } - public function getHonorificPrefix() { return $this->honorificPrefix; @@ -3450,7 +3200,6 @@ public function setHonorificSuffix($honorificSuffix) { $this->honorificSuffix = $honorificSuffix; } - public function getHonorificSuffix() { return $this->honorificSuffix; @@ -3459,12 +3208,10 @@ public function setMiddleName($middleName) { $this->middleName = $middleName; } - public function getMiddleName() { return $this->middleName; } - } class Google_Service_Plus_PersonOrganizations extends Google_Model @@ -3481,11 +3228,11 @@ class Google_Service_Plus_PersonOrganizations extends Google_Model public $title; public $type; + public function setDepartment($department) { $this->department = $department; } - public function getDepartment() { return $this->department; @@ -3494,7 +3241,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3503,7 +3249,6 @@ public function setEndDate($endDate) { $this->endDate = $endDate; } - public function getEndDate() { return $this->endDate; @@ -3512,7 +3257,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -3521,7 +3265,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3530,7 +3273,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -3539,7 +3281,6 @@ public function setStartDate($startDate) { $this->startDate = $startDate; } - public function getStartDate() { return $this->startDate; @@ -3548,7 +3289,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -3557,12 +3297,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Plus_PersonPlacesLived extends Google_Model @@ -3572,11 +3310,11 @@ class Google_Service_Plus_PersonPlacesLived extends Google_Model public $primary; public $value; + public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -3585,12 +3323,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Plus_PersonUrls extends Google_Model @@ -3601,11 +3337,11 @@ class Google_Service_Plus_PersonUrls extends Google_Model public $type; public $value; + public function setLabel($label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -3614,7 +3350,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3623,12 +3358,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Plus_Place extends Google_Model @@ -3643,11 +3376,11 @@ class Google_Service_Plus_Place extends Google_Model protected $positionType = 'Google_Service_Plus_PlacePosition'; protected $positionDataType = ''; + public function setAddress(Google_Service_Plus_PlaceAddress $address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -3656,7 +3389,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3665,7 +3397,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3674,7 +3405,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3683,12 +3413,10 @@ public function setPosition(Google_Service_Plus_PlacePosition $position) { $this->position = $position; } - public function getPosition() { return $this->position; } - } class Google_Service_Plus_PlaceAddress extends Google_Model @@ -3697,16 +3425,15 @@ class Google_Service_Plus_PlaceAddress extends Google_Model ); public $formatted; + public function setFormatted($formatted) { $this->formatted = $formatted; } - public function getFormatted() { return $this->formatted; } - } class Google_Service_Plus_PlacePosition extends Google_Model @@ -3716,11 +3443,11 @@ class Google_Service_Plus_PlacePosition extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -3729,12 +3456,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Plus_PlusAclentryResource extends Google_Model @@ -3745,11 +3470,11 @@ class Google_Service_Plus_PlusAclentryResource extends Google_Model public $id; public $type; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3758,7 +3483,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3767,10 +3491,8 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } From e0459d7b05c99ce23fb6b8adc992b2e9b67c8067 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:43 -0800 Subject: [PATCH 0487/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 860 +++++++++++++-------------------- 1 file changed, 337 insertions(+), 523 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 501bb2525..a0a674309 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -19,8 +19,7 @@ * Service definition for Storage (v1). * *

- * Lets you store and retrieve potentially-large, immutable data objects. - *

+ * Lets you store and retrieve potentially-large, immutable data objects.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Storage extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + const DEVSTORAGE_FULL_CONTROL = + "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + const DEVSTORAGE_READ_ONLY = + "https://www.googleapis.com/auth/devstorage.read_only"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; public $bucketAccessControls; public $buckets; @@ -943,11 +946,10 @@ class Google_Service_Storage_BucketAccessControls_Resource extends Google_Servic * Permanently deletes the ACL entry for the specified entity on the specified * bucket. (bucketAccessControls.delete) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. */ public function delete($bucket, $entity, $optParams = array()) @@ -956,15 +958,15 @@ public function delete($bucket, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the ACL entry for the specified entity on the specified bucket. * (bucketAccessControls.get) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. * @return Google_Service_Storage_BucketAccessControl */ @@ -974,12 +976,12 @@ public function get($bucket, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); } + /** * Creates a new ACL entry on the specified bucket. * (bucketAccessControls.insert) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param Google_BucketAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_BucketAccessControl @@ -990,12 +992,12 @@ public function insert($bucket, Google_Service_Storage_BucketAccessControl $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); } + /** * Retrieves ACL entries on the specified bucket. * (bucketAccessControls.listBucketAccessControls) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param array $optParams Optional parameters. * @return Google_Service_Storage_BucketAccessControls */ @@ -1005,15 +1007,15 @@ public function listBucketAccessControls($bucket, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); } + /** * Updates an ACL entry on the specified bucket. This method supports patch * semantics. (bucketAccessControls.patch) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_BucketAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_BucketAccessControl @@ -1024,14 +1026,14 @@ public function patch($bucket, $entity, Google_Service_Storage_BucketAccessContr $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); } + /** * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_BucketAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_BucketAccessControl @@ -1058,14 +1060,13 @@ 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 string $bucket Name of a bucket. * @param array $optParams Optional parameters. * - * @opt_param string ifMetagenerationMatch - * If set, only deletes the bucket if its metageneration matches this value. - * @opt_param string ifMetagenerationNotMatch - * If set, only deletes the bucket if its metageneration does not match this value. + * @opt_param string ifMetagenerationMatch If set, only deletes the bucket if + * its metageneration matches this value. + * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if + * its metageneration does not match this value. */ public function delete($bucket, $optParams = array()) { @@ -1073,21 +1074,20 @@ public function delete($bucket, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns metadata for the specified bucket. (buckets.get) * - * @param string $bucket - * Name of a bucket. + * @param 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. + * @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()) @@ -1096,19 +1096,19 @@ public function get($bucket, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_Bucket"); } + /** * Creates a new bucket. (buckets.insert) * - * @param string $project - * A valid API project identifier. + * @param string $project A valid API project identifier. * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or - * defaultObjectAcl properties, when it defaults to full. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this bucket. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the bucket resource specifies acl or defaultObjectAcl properties, when + * it defaults to full. * @return Google_Service_Storage_Bucket */ public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1117,19 +1117,17 @@ public function insert($project, Google_Service_Storage_Bucket $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); } + /** * Retrieves a list of buckets for a given project. (buckets.listBuckets) * - * @param string $project - * A valid API project identifier. + * @param string $project A valid API project identifier. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param string maxResults - * Maximum number of buckets to return. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param string projection Set of properties to return. Defaults to noAcl. + * @opt_param string maxResults Maximum number of buckets to return. * @return Google_Service_Storage_Buckets */ public function listBuckets($project, $optParams = array()) @@ -1138,24 +1136,23 @@ public function listBuckets($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_Buckets"); } + /** * Updates a bucket. This method supports patch semantics. (buckets.patch) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifMetagenerationMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration matches the given value. - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string ifMetagenerationNotMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration does not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. + * @opt_param string ifMetagenerationMatch Makes the return of the bucket + * metadata conditional on whether the bucket's current metageneration matches + * the given value. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this bucket. + * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket + * metadata conditional on whether the bucket's current metageneration does not + * match the given value. + * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1164,24 +1161,23 @@ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); } + /** * Updates a bucket. (buckets.update) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifMetagenerationMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration matches the given value. - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string ifMetagenerationNotMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration does not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. + * @opt_param string ifMetagenerationMatch Makes the return of the bucket + * metadata conditional on whether the bucket's current metageneration matches + * the given value. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this bucket. + * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket + * metadata conditional on whether the bucket's current metageneration does not + * match the given value. + * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1232,11 +1228,10 @@ class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google * Permanently deletes the default object ACL entry for the specified entity on * the specified bucket. (defaultObjectAccessControls.delete) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. */ public function delete($bucket, $entity, $optParams = array()) @@ -1245,15 +1240,15 @@ public function delete($bucket, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the default object ACL entry for the specified entity on the * specified bucket. (defaultObjectAccessControls.get) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. * @return Google_Service_Storage_ObjectAccessControl */ @@ -1263,12 +1258,12 @@ public function get($bucket, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Creates a new default object ACL entry on the specified bucket. * (defaultObjectAccessControls.insert) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_ObjectAccessControl @@ -1279,20 +1274,19 @@ public function insert($bucket, Google_Service_Storage_ObjectAccessControl $post $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Retrieves default object ACL entries on the specified bucket. * (defaultObjectAccessControls.listDefaultObjectAccessControls) * - * @param string $bucket - * Name of a bucket. + * @param string $bucket Name of a bucket. * @param array $optParams Optional parameters. * - * @opt_param string ifMetagenerationMatch - * If present, only return default ACL listing if the bucket's current metageneration matches this - * value. - * @opt_param string ifMetagenerationNotMatch - * If present, only return default ACL listing if the bucket's current metageneration does not - * match the given value. + * @opt_param string ifMetagenerationMatch If present, only return default ACL + * listing if the bucket's current metageneration matches this value. + * @opt_param string ifMetagenerationNotMatch If present, only return default + * ACL listing if the bucket's current metageneration does not match the given + * value. * @return Google_Service_Storage_ObjectAccessControls */ public function listDefaultObjectAccessControls($bucket, $optParams = array()) @@ -1301,15 +1295,15 @@ public function listDefaultObjectAccessControls($bucket, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); } + /** * Updates a default object ACL entry on the specified bucket. This method * supports patch semantics. (defaultObjectAccessControls.patch) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_ObjectAccessControl @@ -1320,15 +1314,15 @@ public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessContr $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Updates a default object ACL entry on the specified bucket. * (defaultObjectAccessControls.update) * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * @return Google_Service_Storage_ObjectAccessControl @@ -1356,18 +1350,15 @@ class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Servic * Permanently deletes the ACL entry for the specified entity on the specified * object. (objectAccessControls.delete) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $object Name of the object. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). + * @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()) { @@ -1375,22 +1366,20 @@ public function delete($bucket, $object, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the ACL entry for the specified entity on the specified object. * (objectAccessControls.get) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $object Name of the object. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param array $optParams Optional parameters. * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). + * @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()) @@ -1399,20 +1388,18 @@ public function get($bucket, $object, $entity, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Creates a new ACL entry on the specified object. * (objectAccessControls.insert) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. + * @param 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). + * @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()) @@ -1421,19 +1408,17 @@ public function insert($bucket, $object, Google_Service_Storage_ObjectAccessCont $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Retrieves ACL entries on the specified object. * (objectAccessControls.listObjectAccessControls) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. + * @param 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). + * @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()) @@ -1442,23 +1427,21 @@ public function listObjectAccessControls($bucket, $object, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); } + /** * Updates an ACL entry on the specified object. This method supports patch * semantics. (objectAccessControls.patch) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $object Name of the object. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). + * @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()) @@ -1467,22 +1450,20 @@ public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAc $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); } + /** * Updates an ACL entry on the specified object. (objectAccessControls.update) * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. + * @param string $bucket Name of a bucket. + * @param string $object Name of the object. + * @param string $entity The entity holding the permission. Can be user-userId, + * user-emailAddress, group-groupId, group-emailAddress, allUsers, or + * allAuthenticatedUsers. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). + * @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()) @@ -1508,21 +1489,18 @@ 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 string $destinationBucket Name of the bucket in which to store the new + * object. + * @param string $destinationObject Name of the new object. * @param Google_ComposeRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string destinationPredefinedAcl - * Apply a predefined set of access controls to the destination object. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's current generation matches the given value. + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. * @return Google_Service_Storage_StorageObject */ public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) @@ -1531,55 +1509,50 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S $params = array_merge($params, $optParams); return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); } + /** * Copies an object to a specified location. Optionally overrides metadata. * (objects.copy) * - * @param string $sourceBucket - * Name of the bucket in which to find the source object. - * @param string $sourceObject - * Name of the source object. - * @param string $destinationBucket - * Name of the bucket in which to store the new object. Overrides the provided object metadata's - * bucket value, if any. - * @param string $destinationObject - * Name of the new object. Required when the object metadata is not otherwise provided. Overrides - * the object metadata's name value, if any. + * @param string $sourceBucket Name of the bucket in which to find the source + * object. + * @param string $sourceObject Name of the source object. + * @param string $destinationBucket Name of the bucket in which to store the new + * object. Overrides the provided object metadata's bucket value, if any. + * @param string $destinationObject Name of the new object. Required when the + * object metadata is not otherwise provided. Overrides the object metadata's + * name value, if any. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifSourceGenerationNotMatch - * Makes the operation conditional on whether the source object's generation does not match the - * given value. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the destination object's current generation does not - * match the given value. - * @opt_param string ifSourceMetagenerationNotMatch - * Makes the operation conditional on whether the source object's current metageneration does not - * match the given value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the destination object's current metageneration - * matches the given value. - * @opt_param string sourceGeneration - * If present, selects a specific revision of the source object (as opposed to the latest version, - * the default). - * @opt_param string destinationPredefinedAcl - * Apply a predefined set of access controls to the destination object. - * @opt_param string ifSourceGenerationMatch - * Makes the operation conditional on whether the source object's generation matches the given - * value. - * @opt_param string ifSourceMetagenerationMatch - * Makes the operation conditional on whether the source object's current metageneration matches - * the given value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the destination object's current generation matches - * the given value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the destination object's current metageneration does - * not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl - * property, when it defaults to full. + * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional + * on whether the source object's generation does not match the given value. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the destination object's current generation does not match the given + * value. + * @opt_param string ifSourceMetagenerationNotMatch Makes the operation + * conditional on whether the source object's current metageneration does not + * match the given value. + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the destination object's current metageneration matches the given + * value. + * @opt_param string sourceGeneration If present, selects a specific revision of + * the source object (as opposed to the latest version, the default). + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. + * @opt_param string ifSourceGenerationMatch Makes the operation conditional on + * whether the source object's generation matches the given value. + * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional + * on whether the source object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the destination object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the destination object's current metageneration does not match the + * given value. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the object resource specifies the acl property, when it defaults to + * full. * @return Google_Service_Storage_StorageObject */ public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1588,32 +1561,26 @@ public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinat $params = array_merge($params, $optParams); return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); } + /** * Deletes an object and its metadata. Deletions are permanent if versioning is * not enabled for the bucket, or if the generation parameter is used. * (objects.delete) * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. + * @param string $bucket Name of the bucket in which the object resides. + * @param string $object Name of the object. * @param array $optParams Optional parameters. * - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, permanently deletes a specific revision of this object (as opposed to the latest - * version, the default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the object's current generation does not match the given value. + * @opt_param string generation If present, permanently deletes a specific + * revision of this object (as opposed to the latest version, the default). + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. */ public function delete($bucket, $object, $optParams = array()) { @@ -1621,31 +1588,25 @@ public function delete($bucket, $object, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves an object or its metadata. (objects.get) * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. + * @param string $bucket Name of the bucket in which the object resides. + * @param string $object Name of the object. * @param array $optParams Optional parameters. * - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's generation does not match the given - * value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's generation matches the given value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the object's generation does not match the given value. + * @opt_param string generation If present, selects a specific revision of this + * object (as opposed to the latest version, the default). + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. + * @opt_param string projection Set of properties to return. Defaults to noAcl. * @return Google_Service_Storage_StorageObject */ public function get($bucket, $object, $optParams = array()) @@ -1654,40 +1615,36 @@ public function get($bucket, $object, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); } + /** * Stores a new object and metadata. (objects.insert) * - * @param string $bucket - * Name of the bucket in which to store the new object. Overrides the provided object metadata's - * bucket value, if any. + * @param string $bucket Name of the bucket in which to store the new object. + * Overrides the provided object metadata's bucket value, if any. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl - * property, when it defaults to full. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string contentEncoding - * If set, sets the contentEncoding property of the final object to this value. Setting this - * parameter is equivalent to setting the contentEncoding metadata property. This can be useful - * when uploading an object with uploadType=media to indicate the encoding of the content being - * uploaded. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string name - * Name of the object. Required when the object metadata is not otherwise provided. Overrides the - * object metadata's name value, if any. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this object. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the object resource specifies the acl property, when it defaults to + * full. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the object's current generation does not match the given value. + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string contentEncoding If set, sets the contentEncoding property + * of the final object to this value. Setting this parameter is equivalent to + * setting the contentEncoding metadata property. This can be useful when + * uploading an object with uploadType=media to indicate the encoding of the + * content being uploaded. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. + * @opt_param string name Name of the object. Required when the object metadata + * is not otherwise provided. Overrides the object metadata's name value, if + * any. * @return Google_Service_Storage_StorageObject */ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1696,29 +1653,28 @@ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); } + /** * Retrieves a list of objects matching the criteria. (objects.listObjects) * - * @param string $bucket - * Name of the bucket in which to look for objects. + * @param string $bucket Name of the bucket in which to look for objects. * @param array $optParams Optional parameters. * - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param bool versions - * If true, lists all versions of a file as distinct results. - * @opt_param string prefix - * Filter results to objects whose names begin with this prefix. - * @opt_param string maxResults - * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total - * results may be returned than requested. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string delimiter - * Returns results in a directory-like mode. items will contain only objects whose names, aside - * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain - * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate - * prefixes are omitted. + * @opt_param string projection Set of properties to return. Defaults to noAcl. + * @opt_param bool versions If true, lists all versions of a file as distinct + * results. + * @opt_param string prefix Filter results to objects whose names begin with + * this prefix. + * @opt_param string maxResults Maximum number of items plus prefixes to return. + * As duplicate prefixes are omitted, fewer total results may be returned than + * requested. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param string delimiter Returns results in a directory-like mode. items + * will contain only objects whose names, aside from the prefix, do not contain + * delimiter. Objects whose names, aside from the prefix, contain delimiter will + * have their name, truncated after the delimiter, returned in prefixes. + * Duplicate prefixes are omitted. * @return Google_Service_Storage_Objects */ public function listObjects($bucket, $optParams = array()) @@ -1727,36 +1683,29 @@ public function listObjects($bucket, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_Objects"); } + /** * Updates an object's metadata. This method supports patch semantics. * (objects.patch) * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. + * @param string $bucket Name of the bucket in which the object resides. + * @param string $object Name of the object. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this object. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the object's current generation does not match the given value. + * @opt_param string generation If present, selects a specific revision of this + * object (as opposed to the latest version, the default). + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. + * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1765,35 +1714,28 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); } + /** * Updates an object's metadata. (objects.update) * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. + * @param string $bucket Name of the bucket in which the object resides. + * @param string $object Name of the object. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this object. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the object's current generation does not match the given value. + * @opt_param string generation If present, selects a specific revision of this + * object (as opposed to the latest version, the default). + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the object's current metageneration matches the given value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. + * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1802,30 +1744,29 @@ public function update($bucket, $object, Google_Service_Storage_StorageObject $p $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); } + /** * Watch for changes on all objects in a bucket. (objects.watchAll) * - * @param string $bucket - * Name of the bucket in which to look for objects. + * @param string $bucket Name of the bucket in which to look for objects. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param bool versions - * If true, lists all versions of a file as distinct results. - * @opt_param string prefix - * Filter results to objects whose names begin with this prefix. - * @opt_param string maxResults - * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total - * results may be returned than requested. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string delimiter - * Returns results in a directory-like mode. items will contain only objects whose names, aside - * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain - * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate - * prefixes are omitted. + * @opt_param string projection Set of properties to return. Defaults to noAcl. + * @opt_param bool versions If true, lists all versions of a file as distinct + * results. + * @opt_param string prefix Filter results to objects whose names begin with + * this prefix. + * @opt_param string maxResults Maximum number of items plus prefixes to return. + * As duplicate prefixes are omitted, fewer total results may be returned than + * requested. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param string delimiter Returns results in a directory-like mode. items + * will contain only objects whose names, aside from the prefix, do not contain + * delimiter. Objects whose names, aside from the prefix, contain delimiter will + * have their name, truncated after the delimiter, returned in prefixes. + * Duplicate prefixes are omitted. * @return Google_Service_Storage_Channel */ public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) @@ -1871,11 +1812,11 @@ class Google_Service_Storage_Bucket extends Google_Collection protected $websiteType = 'Google_Service_Storage_BucketWebsite'; protected $websiteDataType = ''; + public function setAcl($acl) { $this->acl = $acl; } - public function getAcl() { return $this->acl; @@ -1884,7 +1825,6 @@ public function setCors($cors) { $this->cors = $cors; } - public function getCors() { return $this->cors; @@ -1893,7 +1833,6 @@ public function setDefaultObjectAcl($defaultObjectAcl) { $this->defaultObjectAcl = $defaultObjectAcl; } - public function getDefaultObjectAcl() { return $this->defaultObjectAcl; @@ -1902,7 +1841,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1911,7 +1849,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1920,7 +1857,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1929,7 +1865,6 @@ public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) { $this->lifecycle = $lifecycle; } - public function getLifecycle() { return $this->lifecycle; @@ -1938,7 +1873,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1947,7 +1881,6 @@ public function setLogging(Google_Service_Storage_BucketLogging $logging) { $this->logging = $logging; } - public function getLogging() { return $this->logging; @@ -1956,7 +1889,6 @@ public function setMetageneration($metageneration) { $this->metageneration = $metageneration; } - public function getMetageneration() { return $this->metageneration; @@ -1965,7 +1897,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1974,7 +1905,6 @@ public function setOwner(Google_Service_Storage_BucketOwner $owner) { $this->owner = $owner; } - public function getOwner() { return $this->owner; @@ -1983,7 +1913,6 @@ public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -1992,7 +1921,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2001,7 +1929,6 @@ public function setStorageClass($storageClass) { $this->storageClass = $storageClass; } - public function getStorageClass() { return $this->storageClass; @@ -2010,7 +1937,6 @@ public function setTimeCreated($timeCreated) { $this->timeCreated = $timeCreated; } - public function getTimeCreated() { return $this->timeCreated; @@ -2019,7 +1945,6 @@ public function setVersioning(Google_Service_Storage_BucketVersioning $versionin { $this->versioning = $versioning; } - public function getVersioning() { return $this->versioning; @@ -2028,12 +1953,10 @@ 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 @@ -2053,11 +1976,11 @@ class Google_Service_Storage_BucketAccessControl extends Google_Model public $role; public $selfLink; + public function setBucket($bucket) { $this->bucket = $bucket; } - public function getBucket() { return $this->bucket; @@ -2066,7 +1989,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -2075,7 +1997,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -2084,7 +2005,6 @@ public function setEntity($entity) { $this->entity = $entity; } - public function getEntity() { return $this->entity; @@ -2093,7 +2013,6 @@ public function setEntityId($entityId) { $this->entityId = $entityId; } - public function getEntityId() { return $this->entityId; @@ -2102,7 +2021,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2111,7 +2029,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2120,7 +2037,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2129,7 +2045,6 @@ public function setProjectTeam(Google_Service_Storage_BucketAccessControlProject { $this->projectTeam = $projectTeam; } - public function getProjectTeam() { return $this->projectTeam; @@ -2138,7 +2053,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -2147,12 +2061,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model @@ -2162,11 +2074,11 @@ class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model public $projectNumber; public $team; + public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -2175,12 +2087,10 @@ public function setTeam($team) { $this->team = $team; } - public function getTeam() { return $this->team; } - } class Google_Service_Storage_BucketAccessControls extends Google_Collection @@ -2192,11 +2102,11 @@ class Google_Service_Storage_BucketAccessControls extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2205,12 +2115,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Storage_BucketCors extends Google_Collection @@ -2223,11 +2131,11 @@ class Google_Service_Storage_BucketCors extends Google_Collection public $origin; public $responseHeader; + public function setMaxAgeSeconds($maxAgeSeconds) { $this->maxAgeSeconds = $maxAgeSeconds; } - public function getMaxAgeSeconds() { return $this->maxAgeSeconds; @@ -2236,7 +2144,6 @@ public function setMethod($method) { $this->method = $method; } - public function getMethod() { return $this->method; @@ -2245,7 +2152,6 @@ public function setOrigin($origin) { $this->origin = $origin; } - public function getOrigin() { return $this->origin; @@ -2254,12 +2160,10 @@ public function setResponseHeader($responseHeader) { $this->responseHeader = $responseHeader; } - public function getResponseHeader() { return $this->responseHeader; } - } class Google_Service_Storage_BucketLifecycle extends Google_Collection @@ -2270,16 +2174,15 @@ class Google_Service_Storage_BucketLifecycle extends Google_Collection protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; protected $ruleDataType = 'array'; + public function setRule($rule) { $this->rule = $rule; } - public function getRule() { return $this->rule; } - } class Google_Service_Storage_BucketLifecycleRule extends Google_Model @@ -2291,11 +2194,11 @@ class Google_Service_Storage_BucketLifecycleRule extends Google_Model protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; protected $conditionDataType = ''; + public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) { $this->action = $action; } - public function getAction() { return $this->action; @@ -2304,12 +2207,10 @@ public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition { $this->condition = $condition; } - public function getCondition() { return $this->condition; } - } class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model @@ -2318,16 +2219,15 @@ class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model ); public $type; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model @@ -2339,11 +2239,11 @@ class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model public $isLive; public $numNewerVersions; + public function setAge($age) { $this->age = $age; } - public function getAge() { return $this->age; @@ -2352,7 +2252,6 @@ public function setCreatedBefore($createdBefore) { $this->createdBefore = $createdBefore; } - public function getCreatedBefore() { return $this->createdBefore; @@ -2361,7 +2260,6 @@ public function setIsLive($isLive) { $this->isLive = $isLive; } - public function getIsLive() { return $this->isLive; @@ -2370,12 +2268,10 @@ public function setNumNewerVersions($numNewerVersions) { $this->numNewerVersions = $numNewerVersions; } - public function getNumNewerVersions() { return $this->numNewerVersions; } - } class Google_Service_Storage_BucketLogging extends Google_Model @@ -2385,11 +2281,11 @@ 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; @@ -2398,12 +2294,10 @@ public function setLogObjectPrefix($logObjectPrefix) { $this->logObjectPrefix = $logObjectPrefix; } - public function getLogObjectPrefix() { return $this->logObjectPrefix; } - } class Google_Service_Storage_BucketOwner extends Google_Model @@ -2413,11 +2307,11 @@ 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; @@ -2426,12 +2320,10 @@ public function setEntityId($entityId) { $this->entityId = $entityId; } - public function getEntityId() { return $this->entityId; } - } class Google_Service_Storage_BucketVersioning extends Google_Model @@ -2440,16 +2332,15 @@ 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 @@ -2459,11 +2350,11 @@ 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; @@ -2472,12 +2363,10 @@ public function setNotFoundPage($notFoundPage) { $this->notFoundPage = $notFoundPage; } - public function getNotFoundPage() { return $this->notFoundPage; } - } class Google_Service_Storage_Buckets extends Google_Collection @@ -2490,11 +2379,11 @@ class Google_Service_Storage_Buckets extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2503,7 +2392,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2512,12 +2400,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Storage_Channel extends Google_Model @@ -2535,11 +2421,11 @@ class Google_Service_Storage_Channel extends Google_Model public $token; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -2548,7 +2434,6 @@ public function setExpiration($expiration) { $this->expiration = $expiration; } - public function getExpiration() { return $this->expiration; @@ -2557,7 +2442,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2566,7 +2450,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2575,7 +2458,6 @@ public function setParams($params) { $this->params = $params; } - public function getParams() { return $this->params; @@ -2584,7 +2466,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -2593,7 +2474,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -2602,7 +2482,6 @@ public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; } - public function getResourceUri() { return $this->resourceUri; @@ -2611,7 +2490,6 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -2620,20 +2498,14 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Storage_ChannelParams extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Storage_ComposeRequest extends Google_Collection @@ -2647,11 +2519,11 @@ class Google_Service_Storage_ComposeRequest extends Google_Collection protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; protected $sourceObjectsDataType = 'array'; + public function setDestination(Google_Service_Storage_StorageObject $destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -2660,7 +2532,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2669,12 +2540,10 @@ public function setSourceObjects($sourceObjects) { $this->sourceObjects = $sourceObjects; } - public function getSourceObjects() { return $this->sourceObjects; } - } class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model @@ -2686,11 +2555,11 @@ class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; protected $objectPreconditionsDataType = ''; + public function setGeneration($generation) { $this->generation = $generation; } - public function getGeneration() { return $this->generation; @@ -2699,7 +2568,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2708,12 +2576,10 @@ public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSour { $this->objectPreconditions = $objectPreconditions; } - public function getObjectPreconditions() { return $this->objectPreconditions; } - } class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model @@ -2722,16 +2588,15 @@ class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions exte ); public $ifGenerationMatch; + public function setIfGenerationMatch($ifGenerationMatch) { $this->ifGenerationMatch = $ifGenerationMatch; } - public function getIfGenerationMatch() { return $this->ifGenerationMatch; } - } class Google_Service_Storage_ObjectAccessControl extends Google_Model @@ -2753,11 +2618,11 @@ class Google_Service_Storage_ObjectAccessControl extends Google_Model public $role; public $selfLink; + public function setBucket($bucket) { $this->bucket = $bucket; } - public function getBucket() { return $this->bucket; @@ -2766,7 +2631,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -2775,7 +2639,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -2784,7 +2647,6 @@ public function setEntity($entity) { $this->entity = $entity; } - public function getEntity() { return $this->entity; @@ -2793,7 +2655,6 @@ public function setEntityId($entityId) { $this->entityId = $entityId; } - public function getEntityId() { return $this->entityId; @@ -2802,7 +2663,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2811,7 +2671,6 @@ public function setGeneration($generation) { $this->generation = $generation; } - public function getGeneration() { return $this->generation; @@ -2820,7 +2679,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2829,7 +2687,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2838,7 +2695,6 @@ public function setObject($object) { $this->object = $object; } - public function getObject() { return $this->object; @@ -2847,7 +2703,6 @@ public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProject { $this->projectTeam = $projectTeam; } - public function getProjectTeam() { return $this->projectTeam; @@ -2856,7 +2711,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -2865,12 +2719,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model @@ -2880,11 +2732,11 @@ class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model public $projectNumber; public $team; + public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; } - public function getProjectNumber() { return $this->projectNumber; @@ -2893,12 +2745,10 @@ public function setTeam($team) { $this->team = $team; } - public function getTeam() { return $this->team; } - } class Google_Service_Storage_ObjectAccessControls extends Google_Collection @@ -2909,11 +2759,11 @@ 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; @@ -2922,12 +2772,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Storage_Objects extends Google_Collection @@ -2941,11 +2789,11 @@ class Google_Service_Storage_Objects extends Google_Collection public $nextPageToken; public $prefixes; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2954,7 +2802,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2963,7 +2810,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -2972,12 +2818,10 @@ public function setPrefixes($prefixes) { $this->prefixes = $prefixes; } - public function getPrefixes() { return $this->prefixes; } - } class Google_Service_Storage_StorageObject extends Google_Collection @@ -3012,11 +2856,11 @@ class Google_Service_Storage_StorageObject extends Google_Collection public $timeDeleted; public $updated; + public function setAcl($acl) { $this->acl = $acl; } - public function getAcl() { return $this->acl; @@ -3025,7 +2869,6 @@ public function setBucket($bucket) { $this->bucket = $bucket; } - public function getBucket() { return $this->bucket; @@ -3034,7 +2877,6 @@ public function setCacheControl($cacheControl) { $this->cacheControl = $cacheControl; } - public function getCacheControl() { return $this->cacheControl; @@ -3043,7 +2885,6 @@ public function setComponentCount($componentCount) { $this->componentCount = $componentCount; } - public function getComponentCount() { return $this->componentCount; @@ -3052,7 +2893,6 @@ public function setContentDisposition($contentDisposition) { $this->contentDisposition = $contentDisposition; } - public function getContentDisposition() { return $this->contentDisposition; @@ -3061,7 +2901,6 @@ public function setContentEncoding($contentEncoding) { $this->contentEncoding = $contentEncoding; } - public function getContentEncoding() { return $this->contentEncoding; @@ -3070,7 +2909,6 @@ public function setContentLanguage($contentLanguage) { $this->contentLanguage = $contentLanguage; } - public function getContentLanguage() { return $this->contentLanguage; @@ -3079,7 +2917,6 @@ public function setContentType($contentType) { $this->contentType = $contentType; } - public function getContentType() { return $this->contentType; @@ -3088,7 +2925,6 @@ public function setCrc32c($crc32c) { $this->crc32c = $crc32c; } - public function getCrc32c() { return $this->crc32c; @@ -3097,7 +2933,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3106,7 +2941,6 @@ public function setGeneration($generation) { $this->generation = $generation; } - public function getGeneration() { return $this->generation; @@ -3115,7 +2949,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3124,7 +2957,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3133,7 +2965,6 @@ public function setMd5Hash($md5Hash) { $this->md5Hash = $md5Hash; } - public function getMd5Hash() { return $this->md5Hash; @@ -3142,7 +2973,6 @@ public function setMediaLink($mediaLink) { $this->mediaLink = $mediaLink; } - public function getMediaLink() { return $this->mediaLink; @@ -3151,7 +2981,6 @@ public function setMetadata($metadata) { $this->metadata = $metadata; } - public function getMetadata() { return $this->metadata; @@ -3160,7 +2989,6 @@ public function setMetageneration($metageneration) { $this->metageneration = $metageneration; } - public function getMetageneration() { return $this->metageneration; @@ -3169,7 +2997,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3178,7 +3005,6 @@ public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) { $this->owner = $owner; } - public function getOwner() { return $this->owner; @@ -3187,7 +3013,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3196,7 +3021,6 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; @@ -3205,7 +3029,6 @@ public function setStorageClass($storageClass) { $this->storageClass = $storageClass; } - public function getStorageClass() { return $this->storageClass; @@ -3214,7 +3037,6 @@ public function setTimeDeleted($timeDeleted) { $this->timeDeleted = $timeDeleted; } - public function getTimeDeleted() { return $this->timeDeleted; @@ -3223,20 +3045,14 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Storage_StorageObjectMetadata extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Storage_StorageObjectOwner extends Google_Model @@ -3246,11 +3062,11 @@ 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; @@ -3259,10 +3075,8 @@ public function setEntityId($entityId) { $this->entityId = $entityId; } - public function getEntityId() { return $this->entityId; } - } From 1193faef9cd89bcda293b8da4d40897c11e2a859 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:44 -0800 Subject: [PATCH 0488/1274] Updated Prediction.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Prediction.php | 205 ++++++++---------------------- 1 file changed, 53 insertions(+), 152 deletions(-) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index 6a031323a..2e77ad2e4 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -19,8 +19,8 @@ * Service definition for Prediction (v1.6). * *

- * Lets you access a cloud hosted machine learning service that makes it easy to build smart apps - *

+ * 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 @@ -32,13 +32,17 @@ class Google_Service_Prediction extends Google_Service { /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + const DEVSTORAGE_FULL_CONTROL = + "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + const DEVSTORAGE_READ_ONLY = + "https://www.googleapis.com/auth/devstorage.read_only"; /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; /** Manage your data in the Google Prediction API. */ - const PREDICTION = "https://www.googleapis.com/auth/prediction"; + const PREDICTION = + "https://www.googleapis.com/auth/prediction"; public $hostedmodels; public $trainedmodels; @@ -213,10 +217,8 @@ class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Res * Submit input and request an output against a hosted model. * (hostedmodels.predict) * - * @param string $project - * The project associated with the model. - * @param string $hostedModelName - * The name of a hosted model. + * @param string $project The project associated with the model. + * @param string $hostedModelName The name of a hosted model. * @param Google_Input $postBody * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Output @@ -244,10 +246,8 @@ class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Re * Get analysis of the model and the data the model was trained on. * (trainedmodels.analyze) * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. + * @param string $project The project associated with the model. + * @param string $id The unique name for the predictive model. * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Analyze */ @@ -257,13 +257,12 @@ public function analyze($project, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze"); } + /** * Delete a trained model. (trainedmodels.delete) * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. + * @param string $project The project associated with the model. + * @param string $id The unique name for the predictive model. * @param array $optParams Optional parameters. */ public function delete($project, $id, $optParams = array()) @@ -272,13 +271,12 @@ public function delete($project, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Check training status of your model. (trainedmodels.get) * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. + * @param string $project The project associated with the model. + * @param string $id The unique name for the predictive model. * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Insert2 */ @@ -288,11 +286,11 @@ public function get($project, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Prediction_Insert2"); } + /** * Train a Prediction API model. (trainedmodels.insert) * - * @param string $project - * The project associated with the model. + * @param string $project The project associated with the model. * @param Google_Insert $postBody * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Insert2 @@ -303,17 +301,15 @@ public function insert($project, Google_Service_Prediction_Insert $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Prediction_Insert2"); } + /** * List available models. (trainedmodels.listTrainedmodels) * - * @param string $project - * The project associated with the model. + * @param string $project The project associated with the model. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Pagination token. - * @opt_param string maxResults - * Maximum number of results to return. + * @opt_param string pageToken Pagination token. + * @opt_param string maxResults Maximum number of results to return. * @return Google_Service_Prediction_PredictionList */ public function listTrainedmodels($project, $optParams = array()) @@ -322,13 +318,12 @@ public function listTrainedmodels($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Prediction_PredictionList"); } + /** * Submit model id and request a prediction. (trainedmodels.predict) * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. + * @param string $project The project associated with the model. + * @param string $id The unique name for the predictive model. * @param Google_Input $postBody * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Output @@ -339,13 +334,12 @@ public function predict($project, $id, Google_Service_Prediction_Input $postBody $params = array_merge($params, $optParams); return $this->call('predict', array($params), "Google_Service_Prediction_Output"); } + /** * Add new data to a trained model. (trainedmodels.update) * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. + * @param string $project The project associated with the model. + * @param string $id The unique name for the predictive model. * @param Google_Update $postBody * @param array $optParams Optional parameters. * @return Google_Service_Prediction_Insert2 @@ -375,11 +369,11 @@ class Google_Service_Prediction_Analyze extends Google_Collection protected $modelDescriptionDataType = ''; public $selfLink; + public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription) { $this->dataDescription = $dataDescription; } - public function getDataDescription() { return $this->dataDescription; @@ -388,7 +382,6 @@ public function setErrors($errors) { $this->errors = $errors; } - public function getErrors() { return $this->errors; @@ -397,7 +390,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -406,7 +398,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -415,7 +406,6 @@ public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescri { $this->modelDescription = $modelDescription; } - public function getModelDescription() { return $this->modelDescription; @@ -424,12 +414,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection @@ -442,11 +430,11 @@ class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; protected $outputFeatureDataType = ''; + public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -455,12 +443,10 @@ public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptio { $this->outputFeature = $outputFeature; } - public function getOutputFeature() { return $this->outputFeature; } - } class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model @@ -475,11 +461,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Mo protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText'; protected $textDataType = ''; + public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical) { $this->categorical = $categorical; } - public function getCategorical() { return $this->categorical; @@ -488,7 +474,6 @@ public function setIndex($index) { $this->index = $index; } - public function getIndex() { return $this->index; @@ -497,7 +482,6 @@ public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeatu { $this->numeric = $numeric; } - public function getNumeric() { return $this->numeric; @@ -506,12 +490,10 @@ public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeatures { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection @@ -523,11 +505,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extend protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; protected $valuesDataType = 'array'; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -536,12 +518,10 @@ public function setValues($values) { $this->values = $values; } - public function getValues() { return $this->values; } - } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model @@ -551,11 +531,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues public $count; public $value; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -564,12 +544,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model @@ -580,11 +558,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Go public $mean; public $variance; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -593,7 +571,6 @@ public function setMean($mean) { $this->mean = $mean; } - public function getMean() { return $this->mean; @@ -602,12 +579,10 @@ public function setVariance($variance) { $this->variance = $variance; } - public function getVariance() { return $this->variance; } - } class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model @@ -616,16 +591,15 @@ class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Googl ); public $count; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; } - } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection @@ -638,11 +612,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Goog protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; protected $textDataType = 'array'; + public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) { $this->numeric = $numeric; } - public function getNumeric() { return $this->numeric; @@ -651,12 +625,10 @@ public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model @@ -667,11 +639,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric exten public $mean; public $variance; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -680,7 +652,6 @@ public function setMean($mean) { $this->mean = $mean; } - public function getMean() { return $this->mean; @@ -689,12 +660,10 @@ public function setVariance($variance) { $this->variance = $variance; } - public function getVariance() { return $this->variance; } - } class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model @@ -704,11 +673,11 @@ class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends public $count; public $value; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -717,20 +686,14 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Prediction_AnalyzeErrors extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model @@ -742,11 +705,11 @@ class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model protected $modelinfoType = 'Google_Service_Prediction_Insert2'; protected $modelinfoDataType = ''; + public function setConfusionMatrix($confusionMatrix) { $this->confusionMatrix = $confusionMatrix; } - public function getConfusionMatrix() { return $this->confusionMatrix; @@ -755,7 +718,6 @@ public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) { $this->confusionMatrixRowTotals = $confusionMatrixRowTotals; } - public function getConfusionMatrixRowTotals() { return $this->confusionMatrixRowTotals; @@ -764,36 +726,22 @@ public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo) { $this->modelinfo = $modelinfo; } - public function getModelinfo() { return $this->modelinfo; } - } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Prediction_Input extends Google_Model @@ -803,16 +751,15 @@ class Google_Service_Prediction_Input extends Google_Model protected $inputType = 'Google_Service_Prediction_InputInput'; protected $inputDataType = ''; + public function setInput(Google_Service_Prediction_InputInput $input) { $this->input = $input; } - public function getInput() { return $this->input; } - } class Google_Service_Prediction_InputInput extends Google_Collection @@ -822,16 +769,15 @@ 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_Insert extends Google_Collection @@ -849,11 +795,11 @@ class Google_Service_Prediction_Insert extends Google_Collection protected $trainingInstancesDataType = 'array'; public $utility; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -862,7 +808,6 @@ public function setModelType($modelType) { $this->modelType = $modelType; } - public function getModelType() { return $this->modelType; @@ -871,7 +816,6 @@ public function setSourceModel($sourceModel) { $this->sourceModel = $sourceModel; } - public function getSourceModel() { return $this->sourceModel; @@ -880,7 +824,6 @@ public function setStorageDataLocation($storageDataLocation) { $this->storageDataLocation = $storageDataLocation; } - public function getStorageDataLocation() { return $this->storageDataLocation; @@ -889,7 +832,6 @@ public function setStoragePMMLLocation($storagePMMLLocation) { $this->storagePMMLLocation = $storagePMMLLocation; } - public function getStoragePMMLLocation() { return $this->storagePMMLLocation; @@ -898,7 +840,6 @@ public function setStoragePMMLModelLocation($storagePMMLModelLocation) { $this->storagePMMLModelLocation = $storagePMMLModelLocation; } - public function getStoragePMMLModelLocation() { return $this->storagePMMLModelLocation; @@ -907,7 +848,6 @@ public function setTrainingInstances($trainingInstances) { $this->trainingInstances = $trainingInstances; } - public function getTrainingInstances() { return $this->trainingInstances; @@ -916,12 +856,10 @@ public function setUtility($utility) { $this->utility = $utility; } - public function getUtility() { return $this->utility; } - } class Google_Service_Prediction_Insert2 extends Google_Model @@ -941,11 +879,11 @@ class Google_Service_Prediction_Insert2 extends Google_Model public $trainingComplete; public $trainingStatus; + public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -954,7 +892,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -963,7 +900,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -972,7 +908,6 @@ public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelIn { $this->modelInfo = $modelInfo; } - public function getModelInfo() { return $this->modelInfo; @@ -981,7 +916,6 @@ public function setModelType($modelType) { $this->modelType = $modelType; } - public function getModelType() { return $this->modelType; @@ -990,7 +924,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -999,7 +932,6 @@ public function setStorageDataLocation($storageDataLocation) { $this->storageDataLocation = $storageDataLocation; } - public function getStorageDataLocation() { return $this->storageDataLocation; @@ -1008,7 +940,6 @@ public function setStoragePMMLLocation($storagePMMLLocation) { $this->storagePMMLLocation = $storagePMMLLocation; } - public function getStoragePMMLLocation() { return $this->storagePMMLLocation; @@ -1017,7 +948,6 @@ public function setStoragePMMLModelLocation($storagePMMLModelLocation) { $this->storagePMMLModelLocation = $storagePMMLModelLocation; } - public function getStoragePMMLModelLocation() { return $this->storagePMMLModelLocation; @@ -1026,7 +956,6 @@ public function setTrainingComplete($trainingComplete) { $this->trainingComplete = $trainingComplete; } - public function getTrainingComplete() { return $this->trainingComplete; @@ -1035,12 +964,10 @@ public function setTrainingStatus($trainingStatus) { $this->trainingStatus = $trainingStatus; } - public function getTrainingStatus() { return $this->trainingStatus; } - } class Google_Service_Prediction_Insert2ModelInfo extends Google_Model @@ -1054,11 +981,11 @@ class Google_Service_Prediction_Insert2ModelInfo extends Google_Model public $numberInstances; public $numberLabels; + public function setClassWeightedAccuracy($classWeightedAccuracy) { $this->classWeightedAccuracy = $classWeightedAccuracy; } - public function getClassWeightedAccuracy() { return $this->classWeightedAccuracy; @@ -1067,7 +994,6 @@ public function setClassificationAccuracy($classificationAccuracy) { $this->classificationAccuracy = $classificationAccuracy; } - public function getClassificationAccuracy() { return $this->classificationAccuracy; @@ -1076,7 +1002,6 @@ public function setMeanSquaredError($meanSquaredError) { $this->meanSquaredError = $meanSquaredError; } - public function getMeanSquaredError() { return $this->meanSquaredError; @@ -1085,7 +1010,6 @@ public function setModelType($modelType) { $this->modelType = $modelType; } - public function getModelType() { return $this->modelType; @@ -1094,7 +1018,6 @@ public function setNumberInstances($numberInstances) { $this->numberInstances = $numberInstances; } - public function getNumberInstances() { return $this->numberInstances; @@ -1103,12 +1026,10 @@ public function setNumberLabels($numberLabels) { $this->numberLabels = $numberLabels; } - public function getNumberLabels() { return $this->numberLabels; } - } class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection @@ -1119,11 +1040,11 @@ class Google_Service_Prediction_InsertTrainingInstances extends Google_Collectio public $csvInstance; public $output; + public function setCsvInstance($csvInstance) { $this->csvInstance = $csvInstance; } - public function getCsvInstance() { return $this->csvInstance; @@ -1132,20 +1053,14 @@ public function setOutput($output) { $this->output = $output; } - public function getOutput() { return $this->output; } - } class Google_Service_Prediction_InsertUtility extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Prediction_Output extends Google_Collection @@ -1161,11 +1076,11 @@ class Google_Service_Prediction_Output extends Google_Collection public $outputValue; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1174,7 +1089,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1183,7 +1097,6 @@ public function setOutputLabel($outputLabel) { $this->outputLabel = $outputLabel; } - public function getOutputLabel() { return $this->outputLabel; @@ -1192,7 +1105,6 @@ public function setOutputMulti($outputMulti) { $this->outputMulti = $outputMulti; } - public function getOutputMulti() { return $this->outputMulti; @@ -1201,7 +1113,6 @@ public function setOutputValue($outputValue) { $this->outputValue = $outputValue; } - public function getOutputValue() { return $this->outputValue; @@ -1210,12 +1121,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Prediction_OutputOutputMulti extends Google_Model @@ -1225,11 +1134,11 @@ 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; @@ -1238,12 +1147,10 @@ public function setScore($score) { $this->score = $score; } - public function getScore() { return $this->score; } - } class Google_Service_Prediction_PredictionList extends Google_Collection @@ -1257,11 +1164,11 @@ class Google_Service_Prediction_PredictionList extends Google_Collection public $nextPageToken; public $selfLink; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1270,7 +1177,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1279,7 +1185,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1288,12 +1193,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Prediction_Update extends Google_Collection @@ -1304,11 +1207,11 @@ class Google_Service_Prediction_Update extends Google_Collection public $csvInstance; public $output; + public function setCsvInstance($csvInstance) { $this->csvInstance = $csvInstance; } - public function getCsvInstance() { return $this->csvInstance; @@ -1317,10 +1220,8 @@ public function setOutput($output) { $this->output = $output; } - public function getOutput() { return $this->output; } - } From cc0749eed5f6e8b2018ab3b302485fa7429b2e72 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:44 -0800 Subject: [PATCH 0489/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 192 +++++-------------------- 1 file changed, 35 insertions(+), 157 deletions(-) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index e7aa77177..9d39016a1 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -19,8 +19,7 @@ * Service definition for IdentityToolkit (v3). * *

- * Help the third party sites to implement federated login. - *

+ * Help the third party sites to implement federated login.

* *

* For more information about this service, see the API @@ -131,6 +130,7 @@ public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRely $params = array_merge($params, $optParams); return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse"); } + /** * Delete user account. (relyingparty.deleteAccount) * @@ -144,6 +144,7 @@ public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRely $params = array_merge($params, $optParams); return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse"); } + /** * Batch download user accounts. (relyingparty.downloadAccount) * @@ -157,6 +158,7 @@ public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRe $params = array_merge($params, $optParams); return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse"); } + /** * Returns the account info. (relyingparty.getAccountInfo) * @@ -170,6 +172,7 @@ public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRel $params = array_merge($params, $optParams); return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse"); } + /** * Get a code for user action confirmation. * (relyingparty.getOobConfirmationCode) @@ -184,6 +187,7 @@ public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingpar $params = array_merge($params, $optParams); return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse"); } + /** * Get token signing public key. (relyingparty.getPublicKeys) * @@ -196,6 +200,7 @@ public function getPublicKeys($optParams = array()) $params = array_merge($params, $optParams); return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); } + /** * Reset password for a user. (relyingparty.resetPassword) * @@ -209,6 +214,7 @@ public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRely $params = array_merge($params, $optParams); return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse"); } + /** * Set account info for a user. (relyingparty.setAccountInfo) * @@ -222,6 +228,7 @@ public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRel $params = array_merge($params, $optParams); return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); } + /** * Batch upload existing user accounts. (relyingparty.uploadAccount) * @@ -235,6 +242,7 @@ public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRely $params = array_merge($params, $optParams); return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse"); } + /** * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion) * @@ -248,6 +256,7 @@ public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRe $params = array_merge($params, $optParams); return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse"); } + /** * Verifies the user entered password. (relyingparty.verifyPassword) * @@ -277,11 +286,11 @@ class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model public $providerId; public $registered; + public function setAuthUri($authUri) { $this->authUri = $authUri; } - public function getAuthUri() { return $this->authUri; @@ -290,7 +299,6 @@ public function setCaptchaRequired($captchaRequired) { $this->captchaRequired = $captchaRequired; } - public function getCaptchaRequired() { return $this->captchaRequired; @@ -299,7 +307,6 @@ public function setForExistingProvider($forExistingProvider) { $this->forExistingProvider = $forExistingProvider; } - public function getForExistingProvider() { return $this->forExistingProvider; @@ -308,7 +315,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -317,7 +323,6 @@ public function setProviderId($providerId) { $this->providerId = $providerId; } - public function getProviderId() { return $this->providerId; @@ -326,12 +331,10 @@ public function setRegistered($registered) { $this->registered = $registered; } - public function getRegistered() { return $this->registered; } - } class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model @@ -340,16 +343,15 @@ class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection @@ -362,11 +364,11 @@ class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Coll protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; protected $usersDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -375,7 +377,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -384,12 +385,10 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; } - } class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection @@ -401,11 +400,11 @@ class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Colle protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; protected $usersDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -414,12 +413,10 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; } - } class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model @@ -429,11 +426,11 @@ class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Goog public $kind; public $oobCode; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -442,12 +439,10 @@ public function setOobCode($oobCode) { $this->oobCode = $oobCode; } - public function getOobCode() { return $this->oobCode; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model @@ -463,11 +458,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq public $otaApp; public $providerId; + public function setAppId($appId) { $this->appId = $appId; } - public function getAppId() { return $this->appId; @@ -476,7 +471,6 @@ public function setClientId($clientId) { $this->clientId = $clientId; } - public function getClientId() { return $this->clientId; @@ -485,7 +479,6 @@ public function setContext($context) { $this->context = $context; } - public function getContext() { return $this->context; @@ -494,7 +487,6 @@ public function setContinueUri($continueUri) { $this->continueUri = $continueUri; } - public function getContinueUri() { return $this->continueUri; @@ -503,7 +495,6 @@ public function setIdentifier($identifier) { $this->identifier = $identifier; } - public function getIdentifier() { return $this->identifier; @@ -512,7 +503,6 @@ public function setOpenidRealm($openidRealm) { $this->openidRealm = $openidRealm; } - public function getOpenidRealm() { return $this->openidRealm; @@ -521,7 +511,6 @@ public function setOtaApp($otaApp) { $this->otaApp = $otaApp; } - public function getOtaApp() { return $this->otaApp; @@ -530,12 +519,10 @@ public function setProviderId($providerId) { $this->providerId = $providerId; } - public function getProviderId() { return $this->providerId; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model @@ -544,16 +531,15 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountReq ); public $localId; + public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model @@ -563,11 +549,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountR public $maxResults; public $nextPageToken; + public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } - public function getMaxResults() { return $this->maxResults; @@ -576,12 +562,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection @@ -593,11 +577,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRe public $idToken; public $localId; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -606,7 +590,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -615,20 +598,14 @@ public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model @@ -640,11 +617,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordReq public $oldPassword; public $oobCode; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -653,7 +630,6 @@ public function setNewPassword($newPassword) { $this->newPassword = $newPassword; } - public function getNewPassword() { return $this->newPassword; @@ -662,7 +638,6 @@ public function setOldPassword($oldPassword) { $this->oldPassword = $oldPassword; } - public function getOldPassword() { return $this->oldPassword; @@ -671,12 +646,10 @@ public function setOobCode($oobCode) { $this->oobCode = $oobCode; } - public function getOobCode() { return $this->oobCode; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection @@ -696,11 +669,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe public $provider; public $upgradeToFederatedLogin; + public function setCaptchaChallenge($captchaChallenge) { $this->captchaChallenge = $captchaChallenge; } - public function getCaptchaChallenge() { return $this->captchaChallenge; @@ -709,7 +682,6 @@ public function setCaptchaResponse($captchaResponse) { $this->captchaResponse = $captchaResponse; } - public function getCaptchaResponse() { return $this->captchaResponse; @@ -718,7 +690,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -727,7 +698,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -736,7 +706,6 @@ public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; } - public function getEmailVerified() { return $this->emailVerified; @@ -745,7 +714,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -754,7 +722,6 @@ public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; @@ -763,7 +730,6 @@ public function setOobCode($oobCode) { $this->oobCode = $oobCode; } - public function getOobCode() { return $this->oobCode; @@ -772,7 +738,6 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -781,7 +746,6 @@ public function setProvider($provider) { $this->provider = $provider; } - public function getProvider() { return $this->provider; @@ -790,12 +754,10 @@ public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) { $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; } - public function getUpgradeToFederatedLogin() { return $this->upgradeToFederatedLogin; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection @@ -811,11 +773,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountReq protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; protected $usersDataType = 'array'; + public function setHashAlgorithm($hashAlgorithm) { $this->hashAlgorithm = $hashAlgorithm; } - public function getHashAlgorithm() { return $this->hashAlgorithm; @@ -824,7 +786,6 @@ public function setMemoryCost($memoryCost) { $this->memoryCost = $memoryCost; } - public function getMemoryCost() { return $this->memoryCost; @@ -833,7 +794,6 @@ public function setRounds($rounds) { $this->rounds = $rounds; } - public function getRounds() { return $this->rounds; @@ -842,7 +802,6 @@ public function setSaltSeparator($saltSeparator) { $this->saltSeparator = $saltSeparator; } - public function getSaltSeparator() { return $this->saltSeparator; @@ -851,7 +810,6 @@ public function setSignerKey($signerKey) { $this->signerKey = $signerKey; } - public function getSignerKey() { return $this->signerKey; @@ -860,12 +818,10 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model @@ -876,11 +832,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR public $postBody; public $requestUri; + public function setPendingIdToken($pendingIdToken) { $this->pendingIdToken = $pendingIdToken; } - public function getPendingIdToken() { return $this->pendingIdToken; @@ -889,7 +845,6 @@ public function setPostBody($postBody) { $this->postBody = $postBody; } - public function getPostBody() { return $this->postBody; @@ -898,12 +853,10 @@ public function setRequestUri($requestUri) { $this->requestUri = $requestUri; } - public function getRequestUri() { return $this->requestUri; } - } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model @@ -916,11 +869,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRe public $password; public $pendingIdToken; + public function setCaptchaChallenge($captchaChallenge) { $this->captchaChallenge = $captchaChallenge; } - public function getCaptchaChallenge() { return $this->captchaChallenge; @@ -929,7 +882,6 @@ public function setCaptchaResponse($captchaResponse) { $this->captchaResponse = $captchaResponse; } - public function getCaptchaResponse() { return $this->captchaResponse; @@ -938,7 +890,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -947,7 +898,6 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -956,12 +906,10 @@ public function setPendingIdToken($pendingIdToken) { $this->pendingIdToken = $pendingIdToken; } - public function getPendingIdToken() { return $this->pendingIdToken; } - } class Google_Service_IdentityToolkit_Relyingparty extends Google_Model @@ -977,11 +925,11 @@ class Google_Service_IdentityToolkit_Relyingparty extends Google_Model public $requestType; public $userIp; + public function setCaptchaResp($captchaResp) { $this->captchaResp = $captchaResp; } - public function getCaptchaResp() { return $this->captchaResp; @@ -990,7 +938,6 @@ public function setChallenge($challenge) { $this->challenge = $challenge; } - public function getChallenge() { return $this->challenge; @@ -999,7 +946,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1008,7 +954,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -1017,7 +962,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1026,7 +970,6 @@ public function setNewEmail($newEmail) { $this->newEmail = $newEmail; } - public function getNewEmail() { return $this->newEmail; @@ -1035,7 +978,6 @@ public function setRequestType($requestType) { $this->requestType = $requestType; } - public function getRequestType() { return $this->requestType; @@ -1044,12 +986,10 @@ public function setUserIp($userIp) { $this->userIp = $userIp; } - public function getUserIp() { return $this->userIp; } - } class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model @@ -1059,11 +999,11 @@ class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model public $email; public $kind; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1072,12 +1012,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection @@ -1092,11 +1030,11 @@ class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Colle protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; protected $providerUserInfoDataType = 'array'; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1105,7 +1043,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1114,7 +1051,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -1123,7 +1059,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1132,12 +1067,10 @@ public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; } - public function getProviderUserInfo() { return $this->providerUserInfo; } - } class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model @@ -1148,11 +1081,11 @@ class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo exte public $photoUrl; public $providerId; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1161,7 +1094,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1170,12 +1102,10 @@ public function setProviderId($providerId) { $this->providerId = $providerId; } - public function getProviderId() { return $this->providerId; } - } class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection @@ -1187,11 +1117,11 @@ class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collec protected $errorDataType = 'array'; public $kind; + public function setError($error) { $this->error = $error; } - public function getError() { return $this->error; @@ -1200,12 +1130,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model @@ -1215,11 +1143,11 @@ class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_M public $index; public $message; + public function setIndex($index) { $this->index = $index; } - public function getIndex() { return $this->index; @@ -1228,12 +1156,10 @@ public function setMessage($message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_IdentityToolkit_UserInfo extends Google_Collection @@ -1253,11 +1179,11 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection public $salt; public $version; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1266,7 +1192,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1275,7 +1200,6 @@ public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; } - public function getEmailVerified() { return $this->emailVerified; @@ -1284,7 +1208,6 @@ public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; @@ -1293,7 +1216,6 @@ public function setPasswordHash($passwordHash) { $this->passwordHash = $passwordHash; } - public function getPasswordHash() { return $this->passwordHash; @@ -1302,7 +1224,6 @@ public function setPasswordUpdatedAt($passwordUpdatedAt) { $this->passwordUpdatedAt = $passwordUpdatedAt; } - public function getPasswordUpdatedAt() { return $this->passwordUpdatedAt; @@ -1311,7 +1232,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1320,7 +1240,6 @@ public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; } - public function getProviderUserInfo() { return $this->providerUserInfo; @@ -1329,7 +1248,6 @@ public function setSalt($salt) { $this->salt = $salt; } - public function getSalt() { return $this->salt; @@ -1338,12 +1256,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model @@ -1355,11 +1271,11 @@ class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Mod public $photoUrl; public $providerId; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1368,7 +1284,6 @@ public function setFederatedId($federatedId) { $this->federatedId = $federatedId; } - public function getFederatedId() { return $this->federatedId; @@ -1377,7 +1292,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1386,12 +1300,10 @@ public function setProviderId($providerId) { $this->providerId = $providerId; } - public function getProviderId() { return $this->providerId; } - } class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection @@ -1427,11 +1339,11 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $timeZone; public $verifiedProvider; + public function setAction($action) { $this->action = $action; } - public function getAction() { return $this->action; @@ -1440,7 +1352,6 @@ public function setAppInstallationUrl($appInstallationUrl) { $this->appInstallationUrl = $appInstallationUrl; } - public function getAppInstallationUrl() { return $this->appInstallationUrl; @@ -1449,7 +1360,6 @@ public function setAppScheme($appScheme) { $this->appScheme = $appScheme; } - public function getAppScheme() { return $this->appScheme; @@ -1458,7 +1368,6 @@ public function setContext($context) { $this->context = $context; } - public function getContext() { return $this->context; @@ -1467,7 +1376,6 @@ public function setDateOfBirth($dateOfBirth) { $this->dateOfBirth = $dateOfBirth; } - public function getDateOfBirth() { return $this->dateOfBirth; @@ -1476,7 +1384,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1485,7 +1392,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1494,7 +1400,6 @@ public function setEmailRecycled($emailRecycled) { $this->emailRecycled = $emailRecycled; } - public function getEmailRecycled() { return $this->emailRecycled; @@ -1503,7 +1408,6 @@ public function setEmailVerified($emailVerified) { $this->emailVerified = $emailVerified; } - public function getEmailVerified() { return $this->emailVerified; @@ -1512,7 +1416,6 @@ public function setFederatedId($federatedId) { $this->federatedId = $federatedId; } - public function getFederatedId() { return $this->federatedId; @@ -1521,7 +1424,6 @@ public function setFirstName($firstName) { $this->firstName = $firstName; } - public function getFirstName() { return $this->firstName; @@ -1530,7 +1432,6 @@ public function setFullName($fullName) { $this->fullName = $fullName; } - public function getFullName() { return $this->fullName; @@ -1539,7 +1440,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -1548,7 +1448,6 @@ public function setInputEmail($inputEmail) { $this->inputEmail = $inputEmail; } - public function getInputEmail() { return $this->inputEmail; @@ -1557,7 +1456,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1566,7 +1464,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -1575,7 +1472,6 @@ public function setLastName($lastName) { $this->lastName = $lastName; } - public function getLastName() { return $this->lastName; @@ -1584,7 +1480,6 @@ public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; @@ -1593,7 +1488,6 @@ public function setNeedConfirmation($needConfirmation) { $this->needConfirmation = $needConfirmation; } - public function getNeedConfirmation() { return $this->needConfirmation; @@ -1602,7 +1496,6 @@ public function setNickName($nickName) { $this->nickName = $nickName; } - public function getNickName() { return $this->nickName; @@ -1611,7 +1504,6 @@ public function setOauthRequestToken($oauthRequestToken) { $this->oauthRequestToken = $oauthRequestToken; } - public function getOauthRequestToken() { return $this->oauthRequestToken; @@ -1620,7 +1512,6 @@ public function setOauthScope($oauthScope) { $this->oauthScope = $oauthScope; } - public function getOauthScope() { return $this->oauthScope; @@ -1629,7 +1520,6 @@ public function setOriginalEmail($originalEmail) { $this->originalEmail = $originalEmail; } - public function getOriginalEmail() { return $this->originalEmail; @@ -1638,7 +1528,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1647,7 +1536,6 @@ public function setProviderId($providerId) { $this->providerId = $providerId; } - public function getProviderId() { return $this->providerId; @@ -1656,7 +1544,6 @@ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } - public function getTimeZone() { return $this->timeZone; @@ -1665,12 +1552,10 @@ public function setVerifiedProvider($verifiedProvider) { $this->verifiedProvider = $verifiedProvider; } - public function getVerifiedProvider() { return $this->verifiedProvider; } - } class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model @@ -1685,11 +1570,11 @@ class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model public $photoUrl; public $registered; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1698,7 +1583,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1707,7 +1591,6 @@ public function setIdToken($idToken) { $this->idToken = $idToken; } - public function getIdToken() { return $this->idToken; @@ -1716,7 +1599,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1725,7 +1607,6 @@ public function setLocalId($localId) { $this->localId = $localId; } - public function getLocalId() { return $this->localId; @@ -1734,7 +1615,6 @@ public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; } - public function getPhotoUrl() { return $this->photoUrl; @@ -1743,10 +1623,8 @@ public function setRegistered($registered) { $this->registered = $registered; } - public function getRegistered() { return $this->registered; } - } From 40e4e60f5a9e805fa07feced284e52048fd0e52d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:45 -0800 Subject: [PATCH 0490/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 407 +++++++++++++++-------------------- 1 file changed, 175 insertions(+), 232 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index c4f722ab0..5fcd7ad2c 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -19,8 +19,7 @@ * Service definition for Gmail (v1). * *

- * The Gmail REST API. - *

+ * The Gmail REST API.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Gmail extends Google_Service { /** View and manage your mail. */ - const MAIL_GOOGLE_COM = "https://mail.google.com"; + const MAIL_GOOGLE_COM = + "https://mail.google.com"; /** Manage drafts and send emails. */ - const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + const GMAIL_COMPOSE = + "https://www.googleapis.com/auth/gmail.compose"; /** View and modify but not delete your email. */ - const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; + const GMAIL_MODIFY = + "https://www.googleapis.com/auth/gmail.modify"; /** View your emails messages and settings. */ - const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; + const GMAIL_READONLY = + "https://www.googleapis.com/auth/gmail.readonly"; public $users; public $users_drafts; @@ -640,8 +643,8 @@ class Google_Service_Gmail_Users_Resource extends Google_Service_Resource /** * Gets the current user's Gmail profile. (users.getProfile) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Profile */ @@ -667,8 +670,8 @@ class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource /** * Creates a new draft with the DRAFT label. (drafts.create) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Draft $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Draft @@ -679,14 +682,14 @@ public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Gmail_Draft"); } + /** * Immediately and permanently deletes the specified draft. Does not simply * trash it. (drafts.delete) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to delete. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to delete. * @param array $optParams Optional parameters. */ public function delete($userId, $id, $optParams = array()) @@ -695,17 +698,16 @@ public function delete($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the specified draft. (drafts.get) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to retrieve. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string format - * The format to return the draft in. + * @opt_param string format The format to return the draft in. * @return Google_Service_Gmail_Draft */ public function get($userId, $id, $optParams = array()) @@ -714,17 +716,17 @@ public function get($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Gmail_Draft"); } + /** * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param string maxResults - * Maximum number of drafts to return. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param string maxResults Maximum number of drafts to return. * @return Google_Service_Gmail_ListDraftsResponse */ public function listUsersDrafts($userId, $optParams = array()) @@ -733,12 +735,13 @@ public function listUsersDrafts($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); } + /** * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc * headers. (drafts.send) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Draft $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Message @@ -749,13 +752,13 @@ public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('send', array($params), "Google_Service_Gmail_Message"); } + /** * Replaces a draft's content. (drafts.update) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to update. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to update. * @param Google_Draft $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Draft @@ -783,25 +786,24 @@ class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource * returned in chronological order (increasing historyId). * (history.listUsersHistory) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param string maxResults - * The maximum number of history records to return. - * @opt_param string labelId - * Only return messages with a label matching the ID. - * @opt_param string startHistoryId - * Required. Returns history records after the specified startHistoryId. The supplied - * startHistoryId should be obtained from the historyId of a message, thread, or previous list - * response. History IDs increase chronologically but are not contiguous with random gaps in - * between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP - * 404 error code. A historyId is typically valid for at least a week, but in some circumstances - * may be valid for only a few hours. If you receive an HTTP 404 error response, your application - * should perform a full sync. If you receive no nextPageToken in the response, there are no - * updates to retrieve and you can store the returned historyId for a future request. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param string maxResults The maximum number of history records to return. + * @opt_param string labelId Only return messages with a label matching the ID. + * @opt_param string startHistoryId Required. Returns history records after the + * specified startHistoryId. The supplied startHistoryId should be obtained from + * the historyId of a message, thread, or previous list response. History IDs + * increase chronologically but are not contiguous with random gaps in between + * valid IDs. Supplying an invalid or out of date startHistoryId typically + * returns an HTTP 404 error code. A historyId is typically valid for at least a + * week, but in some circumstances may be valid for only a few hours. If you + * receive an HTTP 404 error response, your application should perform a full + * sync. If you receive no nextPageToken in the response, there are no updates + * to retrieve and you can store the returned historyId for a future request. * @return Google_Service_Gmail_ListHistoryResponse */ public function listUsersHistory($userId, $optParams = array()) @@ -825,8 +827,8 @@ class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource /** * Creates a new label. (labels.create) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Label $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Label @@ -837,14 +839,14 @@ public function create($userId, Google_Service_Gmail_Label $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Gmail_Label"); } + /** * Immediately and permanently deletes the specified label and removes it from * any messages and threads that it is applied to. (labels.delete) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to delete. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to delete. * @param array $optParams Optional parameters. */ public function delete($userId, $id, $optParams = array()) @@ -853,13 +855,13 @@ public function delete($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the specified label. (labels.get) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to retrieve. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Label */ @@ -869,11 +871,12 @@ public function get($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Gmail_Label"); } + /** * Lists all labels in the user's mailbox. (labels.listUsersLabels) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_ListLabelsResponse */ @@ -883,14 +886,14 @@ public function listUsersLabels($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); } + /** * Updates the specified label. This method supports patch semantics. * (labels.patch) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to update. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to update. * @param Google_Label $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Label @@ -901,13 +904,13 @@ public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Gmail_Label"); } + /** * Updates the specified label. (labels.update) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to update. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to update. * @param Google_Label $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Label @@ -934,10 +937,9 @@ class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resourc * Immediately and permanently deletes the specified message. This operation * cannot be undone. Prefer messages.trash instead. (messages.delete) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to delete. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to delete. * @param array $optParams Optional parameters. */ public function delete($userId, $id, $optParams = array()) @@ -946,19 +948,18 @@ public function delete($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the specified message. (messages.get) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to retrieve. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string metadataHeaders - * When given and format is METADATA, only include headers specified. - * @opt_param string format - * The format to return the message in. + * @opt_param string metadataHeaders When given and format is METADATA, only + * include headers specified. + * @opt_param string format The format to return the message in. * @return Google_Service_Gmail_Message */ public function get($userId, $id, $optParams = array()) @@ -967,18 +968,19 @@ public function get($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Gmail_Message"); } + /** * Imports a message into only this user's mailbox, with standard email delivery * scanning and classification similar to receiving via SMTP. Does not send a * message. (messages.import) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Message $postBody * @param array $optParams Optional parameters. * - * @opt_param string internalDateSource - * Source for Gmail's internal date of the message. + * @opt_param string internalDateSource Source for Gmail's internal date of the + * message. * @return Google_Service_Gmail_Message */ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) @@ -987,18 +989,19 @@ public function import($userId, Google_Service_Gmail_Message $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('import', array($params), "Google_Service_Gmail_Message"); } + /** * Directly inserts a message into only this user's mailbox similar to IMAP * APPEND, bypassing most scanning and classification. Does not send a message. * (messages.insert) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Message $postBody * @param array $optParams Optional parameters. * - * @opt_param string internalDateSource - * Source for Gmail's internal date of the message. + * @opt_param string internalDateSource Source for Gmail's internal date of the + * message. * @return Google_Service_Gmail_Message */ public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) @@ -1007,24 +1010,24 @@ public function insert($userId, Google_Service_Gmail_Message $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Gmail_Message"); } + /** * Lists the messages in the user's mailbox. (messages.listUsersMessages) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string maxResults - * Maximum number of messages to return. - * @opt_param string q - * Only return messages matching the specified query. Supports the same query format as the Gmail - * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param bool includeSpamTrash - * Include messages from SPAM and TRASH in the results. - * @opt_param string labelIds - * Only return messages with labels that match all of the specified label IDs. + * @opt_param string maxResults Maximum number of messages to return. + * @opt_param string q Only return messages matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param bool includeSpamTrash Include messages from SPAM and TRASH in the + * results. + * @opt_param string labelIds Only return messages with labels that match all of + * the specified label IDs. * @return Google_Service_Gmail_ListMessagesResponse */ public function listUsersMessages($userId, $optParams = array()) @@ -1033,13 +1036,13 @@ public function listUsersMessages($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); } + /** * Modifies the labels on the specified message. (messages.modify) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to modify. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to modify. * @param Google_ModifyMessageRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Message @@ -1050,12 +1053,13 @@ public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $ $params = array_merge($params, $optParams); return $this->call('modify', array($params), "Google_Service_Gmail_Message"); } + /** * Sends the specified message to the recipients in the To, Cc, and Bcc headers. * (messages.send) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param Google_Message $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Message @@ -1066,13 +1070,13 @@ public function send($userId, Google_Service_Gmail_Message $postBody, $optParams $params = array_merge($params, $optParams); return $this->call('send', array($params), "Google_Service_Gmail_Message"); } + /** * Moves the specified message to the trash. (messages.trash) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to Trash. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to Trash. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Message */ @@ -1082,13 +1086,13 @@ public function trash($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('trash', array($params), "Google_Service_Gmail_Message"); } + /** * Removes the specified message from the trash. (messages.untrash) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to remove from Trash. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to remove from Trash. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Message */ @@ -1114,12 +1118,10 @@ class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Serv /** * Gets the specified message attachment. (attachments.get) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $messageId - * The ID of the message containing the attachment. - * @param string $id - * The ID of the attachment. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $messageId The ID of the message containing the attachment. + * @param string $id The ID of the attachment. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_MessagePartBody */ @@ -1145,10 +1147,9 @@ class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource * Immediately and permanently deletes the specified thread. This operation * cannot be undone. Prefer threads.trash instead. (threads.delete) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * ID of the Thread to delete. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id ID of the Thread to delete. * @param array $optParams Optional parameters. */ public function delete($userId, $id, $optParams = array()) @@ -1157,19 +1158,18 @@ public function delete($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets the specified thread. (threads.get) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to retrieve. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string metadataHeaders - * When given and format is METADATA, only include headers specified. - * @opt_param string format - * The format to return the messages in. + * @opt_param string metadataHeaders When given and format is METADATA, only + * include headers specified. + * @opt_param string format The format to return the messages in. * @return Google_Service_Gmail_Thread */ public function get($userId, $id, $optParams = array()) @@ -1178,24 +1178,24 @@ public function get($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Gmail_Thread"); } + /** * Lists the threads in the user's mailbox. (threads.listUsersThreads) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string maxResults - * Maximum number of threads to return. - * @opt_param string q - * Only return threads matching the specified query. Supports the same query format as the Gmail - * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param bool includeSpamTrash - * Include threads from SPAM and TRASH in the results. - * @opt_param string labelIds - * Only return threads with labels that match all of the specified label IDs. + * @opt_param string maxResults Maximum number of threads to return. + * @opt_param string q Only return threads matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the + * results. + * @opt_param string labelIds Only return threads with labels that match all of + * the specified label IDs. * @return Google_Service_Gmail_ListThreadsResponse */ public function listUsersThreads($userId, $optParams = array()) @@ -1204,14 +1204,14 @@ public function listUsersThreads($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); } + /** * Modifies the labels applied to the thread. This applies to all messages in * the thread. (threads.modify) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to modify. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to modify. * @param Google_ModifyThreadRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Thread @@ -1222,13 +1222,13 @@ public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $p $params = array_merge($params, $optParams); return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); } + /** * Moves the specified thread to the trash. (threads.trash) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to Trash. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to Trash. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Thread */ @@ -1238,13 +1238,13 @@ public function trash($userId, $id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); } + /** * Removes the specified thread from the trash. (threads.untrash) * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to remove from Trash. + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to remove from Trash. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_Thread */ @@ -1267,11 +1267,11 @@ class Google_Service_Gmail_Draft extends Google_Model protected $messageType = 'Google_Service_Gmail_Message'; protected $messageDataType = ''; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1280,12 +1280,10 @@ public function setMessage(Google_Service_Gmail_Message $message) { $this->message = $message; } - public function getMessage() { return $this->message; } - } class Google_Service_Gmail_History extends Google_Collection @@ -1297,11 +1295,11 @@ class Google_Service_Gmail_History extends Google_Collection protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1310,12 +1308,10 @@ public function setMessages($messages) { $this->messages = $messages; } - public function getMessages() { return $this->messages; } - } class Google_Service_Gmail_Label extends Google_Model @@ -1332,11 +1328,11 @@ class Google_Service_Gmail_Label extends Google_Model public $threadsUnread; public $type; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1345,7 +1341,6 @@ public function setLabelListVisibility($labelListVisibility) { $this->labelListVisibility = $labelListVisibility; } - public function getLabelListVisibility() { return $this->labelListVisibility; @@ -1354,7 +1349,6 @@ public function setMessageListVisibility($messageListVisibility) { $this->messageListVisibility = $messageListVisibility; } - public function getMessageListVisibility() { return $this->messageListVisibility; @@ -1363,7 +1357,6 @@ public function setMessagesTotal($messagesTotal) { $this->messagesTotal = $messagesTotal; } - public function getMessagesTotal() { return $this->messagesTotal; @@ -1372,7 +1365,6 @@ public function setMessagesUnread($messagesUnread) { $this->messagesUnread = $messagesUnread; } - public function getMessagesUnread() { return $this->messagesUnread; @@ -1381,7 +1373,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1390,7 +1381,6 @@ public function setThreadsTotal($threadsTotal) { $this->threadsTotal = $threadsTotal; } - public function getThreadsTotal() { return $this->threadsTotal; @@ -1399,7 +1389,6 @@ public function setThreadsUnread($threadsUnread) { $this->threadsUnread = $threadsUnread; } - public function getThreadsUnread() { return $this->threadsUnread; @@ -1408,12 +1397,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Gmail_ListDraftsResponse extends Google_Collection @@ -1426,11 +1413,11 @@ class Google_Service_Gmail_ListDraftsResponse extends Google_Collection public $nextPageToken; public $resultSizeEstimate; + public function setDrafts($drafts) { $this->drafts = $drafts; } - public function getDrafts() { return $this->drafts; @@ -1439,7 +1426,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1448,12 +1434,10 @@ public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; } - public function getResultSizeEstimate() { return $this->resultSizeEstimate; } - } class Google_Service_Gmail_ListHistoryResponse extends Google_Collection @@ -1466,11 +1450,11 @@ class Google_Service_Gmail_ListHistoryResponse extends Google_Collection public $historyId; public $nextPageToken; + public function setHistory($history) { $this->history = $history; } - public function getHistory() { return $this->history; @@ -1479,7 +1463,6 @@ public function setHistoryId($historyId) { $this->historyId = $historyId; } - public function getHistoryId() { return $this->historyId; @@ -1488,12 +1471,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Gmail_ListLabelsResponse extends Google_Collection @@ -1504,16 +1485,15 @@ class Google_Service_Gmail_ListLabelsResponse extends Google_Collection protected $labelsType = 'Google_Service_Gmail_Label'; protected $labelsDataType = 'array'; + public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; } - } class Google_Service_Gmail_ListMessagesResponse extends Google_Collection @@ -1526,11 +1506,11 @@ class Google_Service_Gmail_ListMessagesResponse extends Google_Collection public $nextPageToken; public $resultSizeEstimate; + public function setMessages($messages) { $this->messages = $messages; } - public function getMessages() { return $this->messages; @@ -1539,7 +1519,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1548,12 +1527,10 @@ public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; } - public function getResultSizeEstimate() { return $this->resultSizeEstimate; } - } class Google_Service_Gmail_ListThreadsResponse extends Google_Collection @@ -1566,11 +1543,11 @@ class Google_Service_Gmail_ListThreadsResponse extends Google_Collection protected $threadsType = 'Google_Service_Gmail_Thread'; protected $threadsDataType = 'array'; + public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1579,7 +1556,6 @@ public function setResultSizeEstimate($resultSizeEstimate) { $this->resultSizeEstimate = $resultSizeEstimate; } - public function getResultSizeEstimate() { return $this->resultSizeEstimate; @@ -1588,12 +1564,10 @@ public function setThreads($threads) { $this->threads = $threads; } - public function getThreads() { return $this->threads; } - } class Google_Service_Gmail_Message extends Google_Collection @@ -1611,11 +1585,11 @@ class Google_Service_Gmail_Message extends Google_Collection public $snippet; public $threadId; + public function setHistoryId($historyId) { $this->historyId = $historyId; } - public function getHistoryId() { return $this->historyId; @@ -1624,7 +1598,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1633,7 +1606,6 @@ public function setLabelIds($labelIds) { $this->labelIds = $labelIds; } - public function getLabelIds() { return $this->labelIds; @@ -1642,7 +1614,6 @@ public function setPayload(Google_Service_Gmail_MessagePart $payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -1651,7 +1622,6 @@ public function setRaw($raw) { $this->raw = $raw; } - public function getRaw() { return $this->raw; @@ -1660,7 +1630,6 @@ public function setSizeEstimate($sizeEstimate) { $this->sizeEstimate = $sizeEstimate; } - public function getSizeEstimate() { return $this->sizeEstimate; @@ -1669,7 +1638,6 @@ public function setSnippet($snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -1678,12 +1646,10 @@ public function setThreadId($threadId) { $this->threadId = $threadId; } - public function getThreadId() { return $this->threadId; } - } class Google_Service_Gmail_MessagePart extends Google_Collection @@ -1701,11 +1667,11 @@ class Google_Service_Gmail_MessagePart extends Google_Collection protected $partsType = 'Google_Service_Gmail_MessagePart'; protected $partsDataType = 'array'; + public function setBody(Google_Service_Gmail_MessagePartBody $body) { $this->body = $body; } - public function getBody() { return $this->body; @@ -1714,7 +1680,6 @@ public function setFilename($filename) { $this->filename = $filename; } - public function getFilename() { return $this->filename; @@ -1723,7 +1688,6 @@ public function setHeaders($headers) { $this->headers = $headers; } - public function getHeaders() { return $this->headers; @@ -1732,7 +1696,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -1741,7 +1704,6 @@ public function setPartId($partId) { $this->partId = $partId; } - public function getPartId() { return $this->partId; @@ -1750,12 +1712,10 @@ public function setParts($parts) { $this->parts = $parts; } - public function getParts() { return $this->parts; } - } class Google_Service_Gmail_MessagePartBody extends Google_Model @@ -1766,11 +1726,11 @@ class Google_Service_Gmail_MessagePartBody extends Google_Model public $data; public $size; + public function setAttachmentId($attachmentId) { $this->attachmentId = $attachmentId; } - public function getAttachmentId() { return $this->attachmentId; @@ -1779,7 +1739,6 @@ public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1788,12 +1747,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_Gmail_MessagePartHeader extends Google_Model @@ -1803,11 +1760,11 @@ class Google_Service_Gmail_MessagePartHeader extends Google_Model public $name; public $value; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1816,12 +1773,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection @@ -1832,11 +1787,11 @@ class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection public $addLabelIds; public $removeLabelIds; + public function setAddLabelIds($addLabelIds) { $this->addLabelIds = $addLabelIds; } - public function getAddLabelIds() { return $this->addLabelIds; @@ -1845,12 +1800,10 @@ public function setRemoveLabelIds($removeLabelIds) { $this->removeLabelIds = $removeLabelIds; } - public function getRemoveLabelIds() { return $this->removeLabelIds; } - } class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection @@ -1861,11 +1814,11 @@ class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection public $addLabelIds; public $removeLabelIds; + public function setAddLabelIds($addLabelIds) { $this->addLabelIds = $addLabelIds; } - public function getAddLabelIds() { return $this->addLabelIds; @@ -1874,12 +1827,10 @@ public function setRemoveLabelIds($removeLabelIds) { $this->removeLabelIds = $removeLabelIds; } - public function getRemoveLabelIds() { return $this->removeLabelIds; } - } class Google_Service_Gmail_Profile extends Google_Model @@ -1891,11 +1842,11 @@ class Google_Service_Gmail_Profile extends Google_Model public $messagesTotal; public $threadsTotal; + public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; @@ -1904,7 +1855,6 @@ public function setHistoryId($historyId) { $this->historyId = $historyId; } - public function getHistoryId() { return $this->historyId; @@ -1913,7 +1863,6 @@ public function setMessagesTotal($messagesTotal) { $this->messagesTotal = $messagesTotal; } - public function getMessagesTotal() { return $this->messagesTotal; @@ -1922,12 +1871,10 @@ public function setThreadsTotal($threadsTotal) { $this->threadsTotal = $threadsTotal; } - public function getThreadsTotal() { return $this->threadsTotal; } - } class Google_Service_Gmail_Thread extends Google_Collection @@ -1941,11 +1888,11 @@ class Google_Service_Gmail_Thread extends Google_Collection protected $messagesDataType = 'array'; public $snippet; + public function setHistoryId($historyId) { $this->historyId = $historyId; } - public function getHistoryId() { return $this->historyId; @@ -1954,7 +1901,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1963,7 +1909,6 @@ public function setMessages($messages) { $this->messages = $messages; } - public function getMessages() { return $this->messages; @@ -1972,10 +1917,8 @@ public function setSnippet($snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; } - } From 3f5430b1e1f178d300e4def7cb91dda137bd61b6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:45 -0800 Subject: [PATCH 0491/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 270 +++++++------------------ 1 file changed, 78 insertions(+), 192 deletions(-) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 21c8c8467..115e30825 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -19,8 +19,8 @@ * Service definition for AdExchangeBuyer (v1.3). * *

- * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. - *

+ * Accesses your bidding-account information, submits creatives for validation, + * finds available direct deals, and retrieves performance reports.

* *

* For more information about this service, see the API @@ -32,7 +32,8 @@ class Google_Service_AdExchangeBuyer extends Google_Service { /** Manage your Ad Exchange buyer account configuration. */ - const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer"; + const ADEXCHANGE_BUYER = + "https://www.googleapis.com/auth/adexchange.buyer"; public $accounts; public $billingInfo; @@ -348,8 +349,7 @@ class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Re /** * Gets one account by ID. (accounts.get) * - * @param int $id - * The account id + * @param int $id The account id * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_Account */ @@ -359,6 +359,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); } + /** * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) * @@ -371,12 +372,12 @@ public function listAccounts($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList"); } + /** * Updates an existing account. This method supports patch semantics. * (accounts.patch) * - * @param int $id - * The account id + * @param int $id The account id * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_Account @@ -387,11 +388,11 @@ public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account"); } + /** * Updates an existing account. (accounts.update) * - * @param int $id - * The account id + * @param int $id The account id * @param Google_Account $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_Account @@ -419,8 +420,7 @@ class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service * Returns the billing information for one account specified by account ID. * (billingInfo.get) * - * @param int $accountId - * The account id. + * @param int $accountId The account id. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_BillingInfo */ @@ -430,6 +430,7 @@ public function get($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo"); } + /** * Retrieves a list of billing information for all accounts of the authenticated * user. (billingInfo.listBillingInfo) @@ -460,10 +461,8 @@ class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_R * Gets the status for a single creative. A creative will be available 30-40 * minutes after submission. (creatives.get) * - * @param int $accountId - * The id for the account that will serve this creative. - * @param string $buyerCreativeId - * The buyer-specific id for this creative. + * @param 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 */ @@ -473,6 +472,7 @@ public function get($accountId, $buyerCreativeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); } + /** * Submit a new creative. (creatives.insert) * @@ -486,23 +486,24 @@ public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); } + /** * Retrieves a list of the authenticated user's active creatives. A creative * will be available 30-40 minutes after submission. (creatives.listCreatives) * * @param array $optParams Optional parameters. * - * @opt_param string statusFilter - * When specified, only creatives having the given status are returned. - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. Optional. - * @opt_param string maxResults - * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. - * @opt_param string buyerCreativeId - * When specified, only creatives for the given buyer creative ids are returned. - * @opt_param int accountId - * When specified, only creatives for the given account ids are returned. + * @opt_param string statusFilter When specified, only creatives having the + * given status are returned. + * @opt_param string pageToken A continuation token, used to page through ad + * clients. To retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. Optional. + * @opt_param string maxResults Maximum number of entries returned on one result + * page. If not set, the default is 100. Optional. + * @opt_param string buyerCreativeId When specified, only creatives for the + * given buyer creative ids are returned. + * @opt_param int accountId When specified, only creatives for the given account + * ids are returned. * @return Google_Service_AdExchangeBuyer_CreativesList */ public function listCreatives($optParams = array()) @@ -527,8 +528,7 @@ class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service /** * Gets one direct deal by ID. (directDeals.get) * - * @param string $id - * The direct deal id + * @param string $id The direct deal id * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_DirectDeal */ @@ -538,6 +538,7 @@ public function get($id, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_DirectDeal"); } + /** * Retrieves the authenticated user's list of direct deals. * (directDeals.listDirectDeals) @@ -568,19 +569,18 @@ class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_S * Retrieves the authenticated user's list of performance metrics. * (performanceReport.listPerformanceReport) * - * @param string $accountId - * The account id to get the reports. - * @param string $endDateTime - * The end time of the report in ISO 8601 timestamp format using UTC. - * @param string $startDateTime - * The start time of the report in ISO 8601 timestamp format using UTC. + * @param string $accountId The account id to get the reports. + * @param string $endDateTime The end time of the report in ISO 8601 timestamp + * format using UTC. + * @param string $startDateTime The start time of the report in ISO 8601 + * timestamp format using UTC. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A continuation token, used to page through performance reports. To retrieve the next page, set - * this parameter to the value of "nextPageToken" from the previous response. Optional. - * @opt_param string maxResults - * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. + * @opt_param string pageToken A continuation token, used to page through + * performance reports. To retrieve the next page, set this parameter to the + * value of "nextPageToken" from the previous response. Optional. + * @opt_param string maxResults Maximum number of entries returned on one result + * page. If not set, the default is 100. Optional. * @return Google_Service_AdExchangeBuyer_PerformanceReportList */ public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) @@ -605,10 +605,9 @@ class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_ /** * Deletes an existing pretargeting config. (pretargetingConfig.delete) * - * @param string $accountId - * The account id to delete the pretargeting config for. - * @param string $configId - * The specific id of the configuration to delete. + * @param string $accountId The account id to delete the pretargeting config + * for. + * @param string $configId The specific id of the configuration to delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $configId, $optParams = array()) @@ -617,13 +616,12 @@ public function delete($accountId, $configId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a specific pretargeting configuration (pretargetingConfig.get) * - * @param string $accountId - * The account id to get the pretargeting config for. - * @param string $configId - * The specific id of the configuration to retrieve. + * @param string $accountId The account id to get the pretargeting config for. + * @param string $configId The specific id of the configuration to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ @@ -633,11 +631,12 @@ public function get($accountId, $configId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } + /** * Inserts a new pretargeting configuration. (pretargetingConfig.insert) * - * @param string $accountId - * The account id to insert the pretargeting config for. + * @param string $accountId The account id to insert the pretargeting config + * for. * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig @@ -648,12 +647,12 @@ public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingCo $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } + /** * Retrieves a list of the authenticated user's pretargeting configurations. * (pretargetingConfig.listPretargetingConfig) * - * @param string $accountId - * The account id to get the pretargeting configs for. + * @param string $accountId The account id to get the pretargeting configs for. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfigList */ @@ -663,14 +662,14 @@ public function listPretargetingConfig($accountId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); } + /** * Updates an existing pretargeting config. This method supports patch * semantics. (pretargetingConfig.patch) * - * @param string $accountId - * The account id to update the pretargeting config for. - * @param string $configId - * The specific id of the configuration to update. + * @param string $accountId The account id to update the pretargeting config + * for. + * @param string $configId The specific id of the configuration to update. * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig @@ -681,13 +680,13 @@ public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_Pret $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } + /** * Updates an existing pretargeting config. (pretargetingConfig.update) * - * @param string $accountId - * The account id to update the pretargeting config for. - * @param string $configId - * The specific id of the configuration to update. + * @param string $accountId The account id to update the pretargeting config + * for. + * @param string $configId The specific id of the configuration to update. * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig @@ -718,11 +717,11 @@ class Google_Service_AdExchangeBuyer_Account extends Google_Collection public $maximumTotalQps; public $numberActiveCreatives; + public function setBidderLocation($bidderLocation) { $this->bidderLocation = $bidderLocation; } - public function getBidderLocation() { return $this->bidderLocation; @@ -731,7 +730,6 @@ public function setCookieMatchingNid($cookieMatchingNid) { $this->cookieMatchingNid = $cookieMatchingNid; } - public function getCookieMatchingNid() { return $this->cookieMatchingNid; @@ -740,7 +738,6 @@ public function setCookieMatchingUrl($cookieMatchingUrl) { $this->cookieMatchingUrl = $cookieMatchingUrl; } - public function getCookieMatchingUrl() { return $this->cookieMatchingUrl; @@ -749,7 +746,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -758,7 +754,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -767,7 +762,6 @@ public function setMaximumActiveCreatives($maximumActiveCreatives) { $this->maximumActiveCreatives = $maximumActiveCreatives; } - public function getMaximumActiveCreatives() { return $this->maximumActiveCreatives; @@ -776,7 +770,6 @@ public function setMaximumTotalQps($maximumTotalQps) { $this->maximumTotalQps = $maximumTotalQps; } - public function getMaximumTotalQps() { return $this->maximumTotalQps; @@ -785,12 +778,10 @@ public function setNumberActiveCreatives($numberActiveCreatives) { $this->numberActiveCreatives = $numberActiveCreatives; } - public function getNumberActiveCreatives() { return $this->numberActiveCreatives; } - } class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model @@ -801,11 +792,11 @@ class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model public $region; public $url; + public function setMaximumQps($maximumQps) { $this->maximumQps = $maximumQps; } - public function getMaximumQps() { return $this->maximumQps; @@ -814,7 +805,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -823,12 +813,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection @@ -840,11 +828,11 @@ class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -853,12 +841,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection @@ -871,11 +857,11 @@ class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection public $billingId; public $kind; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -884,7 +870,6 @@ public function setAccountName($accountName) { $this->accountName = $accountName; } - public function getAccountName() { return $this->accountName; @@ -893,7 +878,6 @@ public function setBillingId($billingId) { $this->billingId = $billingId; } - public function getBillingId() { return $this->billingId; @@ -902,12 +886,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection @@ -919,11 +901,11 @@ class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -932,12 +914,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeBuyer_Creative extends Google_Collection @@ -970,11 +950,11 @@ class Google_Service_AdExchangeBuyer_Creative extends Google_Collection public $videoURL; public $width; + public function setHTMLSnippet($hTMLSnippet) { $this->hTMLSnippet = $hTMLSnippet; } - public function getHTMLSnippet() { return $this->hTMLSnippet; @@ -983,7 +963,6 @@ public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -992,7 +971,6 @@ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } - public function getAdvertiserId() { return $this->advertiserId; @@ -1001,7 +979,6 @@ public function setAdvertiserName($advertiserName) { $this->advertiserName = $advertiserName; } - public function getAdvertiserName() { return $this->advertiserName; @@ -1010,7 +987,6 @@ public function setAgencyId($agencyId) { $this->agencyId = $agencyId; } - public function getAgencyId() { return $this->agencyId; @@ -1019,7 +995,6 @@ public function setAttribute($attribute) { $this->attribute = $attribute; } - public function getAttribute() { return $this->attribute; @@ -1028,7 +1003,6 @@ public function setBuyerCreativeId($buyerCreativeId) { $this->buyerCreativeId = $buyerCreativeId; } - public function getBuyerCreativeId() { return $this->buyerCreativeId; @@ -1037,7 +1011,6 @@ public function setClickThroughUrl($clickThroughUrl) { $this->clickThroughUrl = $clickThroughUrl; } - public function getClickThroughUrl() { return $this->clickThroughUrl; @@ -1046,7 +1019,6 @@ public function setCorrections($corrections) { $this->corrections = $corrections; } - public function getCorrections() { return $this->corrections; @@ -1055,7 +1027,6 @@ public function setDisapprovalReasons($disapprovalReasons) { $this->disapprovalReasons = $disapprovalReasons; } - public function getDisapprovalReasons() { return $this->disapprovalReasons; @@ -1064,7 +1035,6 @@ public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilte { $this->filteringReasons = $filteringReasons; } - public function getFilteringReasons() { return $this->filteringReasons; @@ -1073,7 +1043,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1082,7 +1051,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1091,7 +1059,6 @@ public function setProductCategories($productCategories) { $this->productCategories = $productCategories; } - public function getProductCategories() { return $this->productCategories; @@ -1100,7 +1067,6 @@ public function setRestrictedCategories($restrictedCategories) { $this->restrictedCategories = $restrictedCategories; } - public function getRestrictedCategories() { return $this->restrictedCategories; @@ -1109,7 +1075,6 @@ public function setSensitiveCategories($sensitiveCategories) { $this->sensitiveCategories = $sensitiveCategories; } - public function getSensitiveCategories() { return $this->sensitiveCategories; @@ -1118,7 +1083,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -1127,7 +1091,6 @@ public function setVendorType($vendorType) { $this->vendorType = $vendorType; } - public function getVendorType() { return $this->vendorType; @@ -1136,7 +1099,6 @@ public function setVideoURL($videoURL) { $this->videoURL = $videoURL; } - public function getVideoURL() { return $this->videoURL; @@ -1145,12 +1107,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection @@ -1161,11 +1121,11 @@ class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collecti public $details; public $reason; + public function setDetails($details) { $this->details = $details; } - public function getDetails() { return $this->details; @@ -1174,12 +1134,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection @@ -1190,11 +1148,11 @@ class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_C public $details; public $reason; + public function setDetails($details) { $this->details = $details; } - public function getDetails() { return $this->details; @@ -1203,12 +1161,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection @@ -1220,11 +1176,11 @@ class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Col protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; protected $reasonsDataType = 'array'; + public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -1233,12 +1189,10 @@ public function setReasons($reasons) { $this->reasons = $reasons; } - public function getReasons() { return $this->reasons; } - } class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model @@ -1248,11 +1202,11 @@ class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Goo public $filteringCount; public $filteringStatus; + public function setFilteringCount($filteringCount) { $this->filteringCount = $filteringCount; } - public function getFilteringCount() { return $this->filteringCount; @@ -1261,12 +1215,10 @@ public function setFilteringStatus($filteringStatus) { $this->filteringStatus = $filteringStatus; } - public function getFilteringStatus() { return $this->filteringStatus; } - } class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection @@ -1279,11 +1231,11 @@ class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1292,7 +1244,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1301,12 +1252,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model @@ -1326,11 +1275,11 @@ class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model public $sellerNetwork; public $startTime; + public function setAccountId($accountId) { $this->accountId = $accountId; } - public function getAccountId() { return $this->accountId; @@ -1339,7 +1288,6 @@ public function setAdvertiser($advertiser) { $this->advertiser = $advertiser; } - public function getAdvertiser() { return $this->advertiser; @@ -1348,7 +1296,6 @@ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } - public function getCurrencyCode() { return $this->currencyCode; @@ -1357,7 +1304,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1366,7 +1312,6 @@ public function setFixedCpm($fixedCpm) { $this->fixedCpm = $fixedCpm; } - public function getFixedCpm() { return $this->fixedCpm; @@ -1375,7 +1320,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1384,7 +1328,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1393,7 +1336,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1402,7 +1344,6 @@ public function setPrivateExchangeMinCpm($privateExchangeMinCpm) { $this->privateExchangeMinCpm = $privateExchangeMinCpm; } - public function getPrivateExchangeMinCpm() { return $this->privateExchangeMinCpm; @@ -1411,7 +1352,6 @@ public function setPublisherBlocksOverriden($publisherBlocksOverriden) { $this->publisherBlocksOverriden = $publisherBlocksOverriden; } - public function getPublisherBlocksOverriden() { return $this->publisherBlocksOverriden; @@ -1420,7 +1360,6 @@ public function setSellerNetwork($sellerNetwork) { $this->sellerNetwork = $sellerNetwork; } - public function getSellerNetwork() { return $this->sellerNetwork; @@ -1429,12 +1368,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection @@ -1446,11 +1383,11 @@ class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection protected $directDealsDataType = 'array'; public $kind; + public function setDirectDeals($directDeals) { $this->directDeals = $directDeals; } - public function getDirectDeals() { return $this->directDeals; @@ -1459,12 +1396,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection @@ -1489,11 +1424,11 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection public $region; public $timestamp; + public function setCalloutStatusRate($calloutStatusRate) { $this->calloutStatusRate = $calloutStatusRate; } - public function getCalloutStatusRate() { return $this->calloutStatusRate; @@ -1502,7 +1437,6 @@ public function setCookieMatcherStatusRate($cookieMatcherStatusRate) { $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; } - public function getCookieMatcherStatusRate() { return $this->cookieMatcherStatusRate; @@ -1511,7 +1445,6 @@ public function setCreativeStatusRate($creativeStatusRate) { $this->creativeStatusRate = $creativeStatusRate; } - public function getCreativeStatusRate() { return $this->creativeStatusRate; @@ -1520,7 +1453,6 @@ public function setHostedMatchStatusRate($hostedMatchStatusRate) { $this->hostedMatchStatusRate = $hostedMatchStatusRate; } - public function getHostedMatchStatusRate() { return $this->hostedMatchStatusRate; @@ -1529,7 +1461,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1538,7 +1469,6 @@ public function setLatency50thPercentile($latency50thPercentile) { $this->latency50thPercentile = $latency50thPercentile; } - public function getLatency50thPercentile() { return $this->latency50thPercentile; @@ -1547,7 +1477,6 @@ public function setLatency85thPercentile($latency85thPercentile) { $this->latency85thPercentile = $latency85thPercentile; } - public function getLatency85thPercentile() { return $this->latency85thPercentile; @@ -1556,7 +1485,6 @@ public function setLatency95thPercentile($latency95thPercentile) { $this->latency95thPercentile = $latency95thPercentile; } - public function getLatency95thPercentile() { return $this->latency95thPercentile; @@ -1565,7 +1493,6 @@ public function setNoQuotaInRegion($noQuotaInRegion) { $this->noQuotaInRegion = $noQuotaInRegion; } - public function getNoQuotaInRegion() { return $this->noQuotaInRegion; @@ -1574,7 +1501,6 @@ public function setOutOfQuota($outOfQuota) { $this->outOfQuota = $outOfQuota; } - public function getOutOfQuota() { return $this->outOfQuota; @@ -1583,7 +1509,6 @@ public function setPixelMatchRequests($pixelMatchRequests) { $this->pixelMatchRequests = $pixelMatchRequests; } - public function getPixelMatchRequests() { return $this->pixelMatchRequests; @@ -1592,7 +1517,6 @@ public function setPixelMatchResponses($pixelMatchResponses) { $this->pixelMatchResponses = $pixelMatchResponses; } - public function getPixelMatchResponses() { return $this->pixelMatchResponses; @@ -1601,7 +1525,6 @@ public function setQuotaConfiguredLimit($quotaConfiguredLimit) { $this->quotaConfiguredLimit = $quotaConfiguredLimit; } - public function getQuotaConfiguredLimit() { return $this->quotaConfiguredLimit; @@ -1610,7 +1533,6 @@ public function setQuotaThrottledLimit($quotaThrottledLimit) { $this->quotaThrottledLimit = $quotaThrottledLimit; } - public function getQuotaThrottledLimit() { return $this->quotaThrottledLimit; @@ -1619,7 +1541,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1628,12 +1549,10 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; } - } class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection @@ -1645,11 +1564,11 @@ class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collec protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; protected $performanceReportDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1658,12 +1577,10 @@ public function setPerformanceReport($performanceReport) { $this->performanceReport = $performanceReport; } - public function getPerformanceReport() { return $this->performanceReport; } - } class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection @@ -1698,11 +1615,11 @@ class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collectio public $vendorTypes; public $verticals; + public function setBillingId($billingId) { $this->billingId = $billingId; } - public function getBillingId() { return $this->billingId; @@ -1711,7 +1628,6 @@ public function setConfigId($configId) { $this->configId = $configId; } - public function getConfigId() { return $this->configId; @@ -1720,7 +1636,6 @@ public function setConfigName($configName) { $this->configName = $configName; } - public function getConfigName() { return $this->configName; @@ -1729,7 +1644,6 @@ public function setCreativeType($creativeType) { $this->creativeType = $creativeType; } - public function getCreativeType() { return $this->creativeType; @@ -1738,7 +1652,6 @@ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } - public function getDimensions() { return $this->dimensions; @@ -1747,7 +1660,6 @@ public function setExcludedContentLabels($excludedContentLabels) { $this->excludedContentLabels = $excludedContentLabels; } - public function getExcludedContentLabels() { return $this->excludedContentLabels; @@ -1756,7 +1668,6 @@ public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) { $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; } - public function getExcludedGeoCriteriaIds() { return $this->excludedGeoCriteriaIds; @@ -1765,7 +1676,6 @@ public function setExcludedPlacements($excludedPlacements) { $this->excludedPlacements = $excludedPlacements; } - public function getExcludedPlacements() { return $this->excludedPlacements; @@ -1774,7 +1684,6 @@ public function setExcludedUserLists($excludedUserLists) { $this->excludedUserLists = $excludedUserLists; } - public function getExcludedUserLists() { return $this->excludedUserLists; @@ -1783,7 +1692,6 @@ public function setExcludedVerticals($excludedVerticals) { $this->excludedVerticals = $excludedVerticals; } - public function getExcludedVerticals() { return $this->excludedVerticals; @@ -1792,7 +1700,6 @@ public function setGeoCriteriaIds($geoCriteriaIds) { $this->geoCriteriaIds = $geoCriteriaIds; } - public function getGeoCriteriaIds() { return $this->geoCriteriaIds; @@ -1801,7 +1708,6 @@ public function setIsActive($isActive) { $this->isActive = $isActive; } - public function getIsActive() { return $this->isActive; @@ -1810,7 +1716,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1819,7 +1724,6 @@ public function setLanguages($languages) { $this->languages = $languages; } - public function getLanguages() { return $this->languages; @@ -1828,7 +1732,6 @@ public function setMobileCarriers($mobileCarriers) { $this->mobileCarriers = $mobileCarriers; } - public function getMobileCarriers() { return $this->mobileCarriers; @@ -1837,7 +1740,6 @@ public function setMobileDevices($mobileDevices) { $this->mobileDevices = $mobileDevices; } - public function getMobileDevices() { return $this->mobileDevices; @@ -1846,7 +1748,6 @@ public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) { $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; } - public function getMobileOperatingSystemVersions() { return $this->mobileOperatingSystemVersions; @@ -1855,7 +1756,6 @@ public function setPlacements($placements) { $this->placements = $placements; } - public function getPlacements() { return $this->placements; @@ -1864,7 +1764,6 @@ public function setPlatforms($platforms) { $this->platforms = $platforms; } - public function getPlatforms() { return $this->platforms; @@ -1873,7 +1772,6 @@ public function setSupportedCreativeAttributes($supportedCreativeAttributes) { $this->supportedCreativeAttributes = $supportedCreativeAttributes; } - public function getSupportedCreativeAttributes() { return $this->supportedCreativeAttributes; @@ -1882,7 +1780,6 @@ public function setUserLists($userLists) { $this->userLists = $userLists; } - public function getUserLists() { return $this->userLists; @@ -1891,7 +1788,6 @@ public function setVendorTypes($vendorTypes) { $this->vendorTypes = $vendorTypes; } - public function getVendorTypes() { return $this->vendorTypes; @@ -1900,12 +1796,10 @@ public function setVerticals($verticals) { $this->verticals = $verticals; } - public function getVerticals() { return $this->verticals; } - } class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model @@ -1915,11 +1809,11 @@ class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google public $height; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1928,12 +1822,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model @@ -1943,11 +1835,11 @@ class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extend public $token; public $type; + public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -1956,12 +1848,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection @@ -1973,11 +1863,11 @@ class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Colle protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1986,12 +1876,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model @@ -2001,11 +1889,11 @@ class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google public $token; public $type; + public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -2014,10 +1902,8 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } From 4751051d5ba8afb4485e7ebe5fb75c0f1b78a32a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:45 -0800 Subject: [PATCH 0492/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 156 ++++++++++--------------- 1 file changed, 61 insertions(+), 95 deletions(-) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 71e1e9a48..44ed37b87 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -19,8 +19,7 @@ * Service definition for GamesManagement (v1management). * *

- * The Management API for Google Play Game Services. - *

+ * The Management API for Google Play Game Services.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_GamesManagement extends Google_Service { /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = "https://www.googleapis.com/auth/games"; + const GAMES = + "https://www.googleapis.com/auth/games"; /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; public $achievements; public $applications; @@ -350,8 +351,7 @@ class Google_Service_GamesManagement_Achievements_Resource extends Google_Servic * player. This method is only accessible to whitelisted tester accounts for * your application. (achievements.reset) * - * @param string $achievementId - * The ID of the achievement used by this method. + * @param string $achievementId The ID of the achievement used by this method. * @param array $optParams Optional parameters. * @return Google_Service_GamesManagement_AchievementResetResponse */ @@ -361,6 +361,7 @@ public function reset($achievementId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse"); } + /** * Resets all achievements for the currently authenticated player for your * application. This method is only accessible to whitelisted tester accounts @@ -375,6 +376,7 @@ public function resetAll($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); } + /** * Resets all draft achievements for all players. This method is only available * to user accounts for your developer console. @@ -388,13 +390,13 @@ public function resetAllForAllPlayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAllForAllPlayers', array($params)); } + /** * Resets the achievement with the given ID for all players. This method is only * available to user accounts for your developer console. Only draft * achievements can be reset. (achievements.resetForAllPlayers) * - * @param string $achievementId - * The ID of the achievement used by this method. + * @param string $achievementId The ID of the achievement used by this method. * @param array $optParams Optional parameters. */ public function resetForAllPlayers($achievementId, $optParams = array()) @@ -403,6 +405,7 @@ public function resetForAllPlayers($achievementId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** * Resets achievements with the given IDs for all players. This method is only * available to user accounts for your developer console. Only draft @@ -435,16 +438,14 @@ class Google_Service_GamesManagement_Applications_Resource extends Google_Servic * only available to user accounts for your developer console. * (applications.listHidden) * - * @param string $applicationId - * The application ID from the Google Play developer console. + * @param string $applicationId The application ID from the Google Play + * developer console. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of player resources to return in the response, used for paging. For any - * response, the actual number of player resources returned may be less than the specified - * maxResults. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of player resources to return in + * the response, used for paging. For any response, the actual number of player + * resources returned may be less than the specified maxResults. * @return Google_Service_GamesManagement_HiddenPlayerList */ public function listHidden($applicationId, $optParams = array()) @@ -472,8 +473,7 @@ class Google_Service_GamesManagement_Events_Resource extends Google_Service_Reso * accounts for your application. All quests for this player that use the event * will also be reset. (events.reset) * - * @param string $eventId - * The ID of the event. + * @param string $eventId The ID of the event. * @param array $optParams Optional parameters. */ public function reset($eventId, $optParams = array()) @@ -482,6 +482,7 @@ public function reset($eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** * Resets all player progress on all events for the currently authenticated * player. This method is only accessible to whitelisted tester accounts for @@ -496,6 +497,7 @@ public function resetAll($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAll', array($params)); } + /** * Resets all draft events for all players. This method is only available to * user accounts for your developer console. All quests that use any of these @@ -509,14 +511,14 @@ public function resetAllForAllPlayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAllForAllPlayers', array($params)); } + /** * Resets the event with the given ID for all players. This method is only * available to user accounts for your developer console. Only draft events can * be reset. All quests that use the event will also be reset. * (events.resetForAllPlayers) * - * @param string $eventId - * The ID of the event. + * @param string $eventId The ID of the event. * @param array $optParams Optional parameters. */ public function resetForAllPlayers($eventId, $optParams = array()) @@ -525,6 +527,7 @@ public function resetForAllPlayers($eventId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** * Resets events with the given IDs for all players. This method is only * available to user accounts for your developer console. Only draft events may @@ -558,10 +561,10 @@ class Google_Service_GamesManagement_Players_Resource extends Google_Service_Res * method is only available to user accounts for your developer console. * (players.hide) * - * @param string $applicationId - * The application ID from the Google Play developer console. - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. */ public function hide($applicationId, $playerId, $optParams = array()) @@ -570,15 +573,16 @@ public function hide($applicationId, $playerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('hide', array($params)); } + /** * Unhide the given player's leaderboard scores from the given application. This * method is only available to user accounts for your developer console. * (players.unhide) * - * @param string $applicationId - * The application ID from the Google Play developer console. - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. */ public function unhide($applicationId, $playerId, $optParams = array()) @@ -605,8 +609,7 @@ class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Reso * authenticated player. This method is only accessible to whitelisted tester * accounts for your application. (quests.reset) * - * @param string $questId - * The ID of the quest. + * @param string $questId The ID of the quest. * @param array $optParams Optional parameters. */ public function reset($questId, $optParams = array()) @@ -615,6 +618,7 @@ public function reset($questId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** * Resets all player progress on all quests for the currently authenticated * player. This method is only accessible to whitelisted tester accounts for @@ -628,6 +632,7 @@ public function resetAll($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAll', array($params)); } + /** * Resets all draft quests for all players. This method is only available to * user accounts for your developer console. (quests.resetAllForAllPlayers) @@ -640,13 +645,13 @@ public function resetAllForAllPlayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAllForAllPlayers', array($params)); } + /** * Resets all player progress on the quest with the given ID for all players. * This method is only available to user accounts for your developer console. * Only draft quests can be reset. (quests.resetForAllPlayers) * - * @param string $questId - * The ID of the quest. + * @param string $questId The ID of the quest. * @param array $optParams Optional parameters. */ public function resetForAllPlayers($questId, $optParams = array()) @@ -655,6 +660,7 @@ public function resetForAllPlayers($questId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** * Resets quests with the given IDs for all players. This method is only * available to user accounts for your developer console. Only draft quests may @@ -695,6 +701,7 @@ public function reset($optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** * Deletes rooms where the only room participants are from whitelisted tester * accounts for your application. This method is only available to user accounts @@ -726,8 +733,7 @@ class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Reso * authenticated player. This method is only accessible to whitelisted tester * accounts for your application. (scores.reset) * - * @param string $leaderboardId - * The ID of the leaderboard. + * @param string $leaderboardId The ID of the leaderboard. * @param array $optParams Optional parameters. * @return Google_Service_GamesManagement_PlayerScoreResetResponse */ @@ -737,6 +743,7 @@ public function reset($leaderboardId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); } + /** * Resets all scores for all leaderboards for the currently authenticated * players. This method is only accessible to whitelisted tester accounts for @@ -751,6 +758,7 @@ public function resetAll($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse"); } + /** * Resets scores for all draft leaderboards for all players. This method is only * available to user accounts for your developer console. @@ -764,13 +772,13 @@ public function resetAllForAllPlayers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetAllForAllPlayers', array($params)); } + /** * Resets scores for the leaderboard with the given ID for all players. This * method is only available to user accounts for your developer console. Only * draft leaderboards can be reset. (scores.resetForAllPlayers) * - * @param string $leaderboardId - * The ID of the leaderboard. + * @param string $leaderboardId The ID of the leaderboard. * @param array $optParams Optional parameters. */ public function resetForAllPlayers($leaderboardId, $optParams = array()) @@ -779,6 +787,7 @@ public function resetForAllPlayers($leaderboardId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetForAllPlayers', array($params)); } + /** * Resets scores for the leaderboards with the given IDs for all players. This * method is only available to user accounts for your developer console. Only @@ -818,6 +827,7 @@ public function reset($optParams = array()) $params = array_merge($params, $optParams); return $this->call('reset', array($params)); } + /** * Deletes turn-based matches where the only match participants are from * whitelisted tester accounts for your application. This method is only @@ -846,11 +856,11 @@ class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_ protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; protected $resultsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -859,12 +869,10 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; } - } class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection @@ -876,11 +884,11 @@ class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest exten public $achievementIds; public $kind; + public function setAchievementIds($achievementIds) { $this->achievementIds = $achievementIds; } - public function getAchievementIds() { return $this->achievementIds; @@ -889,12 +897,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model @@ -906,11 +912,11 @@ class Google_Service_GamesManagement_AchievementResetResponse extends Google_Mod public $kind; public $updateOccurred; + public function setCurrentState($currentState) { $this->currentState = $currentState; } - public function getCurrentState() { return $this->currentState; @@ -919,7 +925,6 @@ public function setDefinitionId($definitionId) { $this->definitionId = $definitionId; } - public function getDefinitionId() { return $this->definitionId; @@ -928,7 +933,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -937,12 +941,10 @@ public function setUpdateOccurred($updateOccurred) { $this->updateOccurred = $updateOccurred; } - public function getUpdateOccurred() { return $this->updateOccurred; } - } class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection @@ -954,11 +956,11 @@ class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Go public $eventIds; public $kind; + public function setEventIds($eventIds) { $this->eventIds = $eventIds; } - public function getEventIds() { return $this->eventIds; @@ -967,12 +969,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model @@ -982,11 +982,11 @@ class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model public $autoMatched; public $timeMillis; + public function setAutoMatched($autoMatched) { $this->autoMatched = $autoMatched; } - public function getAutoMatched() { return $this->autoMatched; @@ -995,12 +995,10 @@ public function setTimeMillis($timeMillis) { $this->timeMillis = $timeMillis; } - public function getTimeMillis() { return $this->timeMillis; } - } class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model @@ -1014,11 +1012,11 @@ class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends G protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; protected $nextLevelDataType = ''; + public function setCurrentExperiencePoints($currentExperiencePoints) { $this->currentExperiencePoints = $currentExperiencePoints; } - public function getCurrentExperiencePoints() { return $this->currentExperiencePoints; @@ -1027,7 +1025,6 @@ public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelR { $this->currentLevel = $currentLevel; } - public function getCurrentLevel() { return $this->currentLevel; @@ -1036,7 +1033,6 @@ public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; } - public function getLastLevelUpTimestampMillis() { return $this->lastLevelUpTimestampMillis; @@ -1045,12 +1041,10 @@ public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelReso { $this->nextLevel = $nextLevel; } - public function getNextLevel() { return $this->nextLevel; } - } class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model @@ -1061,11 +1055,11 @@ class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Mod public $maxExperiencePoints; public $minExperiencePoints; + public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; @@ -1074,7 +1068,6 @@ public function setMaxExperiencePoints($maxExperiencePoints) { $this->maxExperiencePoints = $maxExperiencePoints; } - public function getMaxExperiencePoints() { return $this->maxExperiencePoints; @@ -1083,12 +1076,10 @@ public function setMinExperiencePoints($minExperiencePoints) { $this->minExperiencePoints = $minExperiencePoints; } - public function getMinExperiencePoints() { return $this->minExperiencePoints; } - } class Google_Service_GamesManagement_HiddenPlayer extends Google_Model @@ -1100,11 +1091,11 @@ class Google_Service_GamesManagement_HiddenPlayer extends Google_Model protected $playerType = 'Google_Service_GamesManagement_Player'; protected $playerDataType = ''; + public function setHiddenTimeMillis($hiddenTimeMillis) { $this->hiddenTimeMillis = $hiddenTimeMillis; } - public function getHiddenTimeMillis() { return $this->hiddenTimeMillis; @@ -1113,7 +1104,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1122,12 +1112,10 @@ public function setPlayer(Google_Service_GamesManagement_Player $player) { $this->player = $player; } - public function getPlayer() { return $this->player; } - } class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection @@ -1140,11 +1128,11 @@ class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1153,7 +1141,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1162,12 +1149,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_GamesManagement_Player extends Google_Model @@ -1186,11 +1171,11 @@ class Google_Service_GamesManagement_Player extends Google_Model public $playerId; public $title; + public function setAvatarImageUrl($avatarImageUrl) { $this->avatarImageUrl = $avatarImageUrl; } - public function getAvatarImageUrl() { return $this->avatarImageUrl; @@ -1199,7 +1184,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1208,7 +1192,6 @@ public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExpe { $this->experienceInfo = $experienceInfo; } - public function getExperienceInfo() { return $this->experienceInfo; @@ -1217,7 +1200,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1226,7 +1208,6 @@ public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedReso { $this->lastPlayedWith = $lastPlayedWith; } - public function getLastPlayedWith() { return $this->lastPlayedWith; @@ -1235,7 +1216,6 @@ public function setName(Google_Service_GamesManagement_PlayerName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1244,7 +1224,6 @@ public function setPlayerId($playerId) { $this->playerId = $playerId; } - public function getPlayerId() { return $this->playerId; @@ -1253,12 +1232,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_GamesManagement_PlayerName extends Google_Model @@ -1268,11 +1245,11 @@ class Google_Service_GamesManagement_PlayerName extends Google_Model public $familyName; public $givenName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -1281,12 +1258,10 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; } - } class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection @@ -1298,11 +1273,11 @@ class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_ protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse'; protected $resultsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1311,12 +1286,10 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; } - } class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection @@ -1328,11 +1301,11 @@ class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Col public $kind; public $resetScoreTimeSpans; + public function setDefinitionId($definitionId) { $this->definitionId = $definitionId; } - public function getDefinitionId() { return $this->definitionId; @@ -1341,7 +1314,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1350,12 +1322,10 @@ public function setResetScoreTimeSpans($resetScoreTimeSpans) { $this->resetScoreTimeSpans = $resetScoreTimeSpans; } - public function getResetScoreTimeSpans() { return $this->resetScoreTimeSpans; } - } class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection @@ -1367,11 +1337,11 @@ class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Go public $kind; public $questIds; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1380,12 +1350,10 @@ public function setQuestIds($questIds) { $this->questIds = $questIds; } - public function getQuestIds() { return $this->questIds; } - } class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection @@ -1397,11 +1365,11 @@ class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Go public $kind; public $leaderboardIds; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1410,10 +1378,8 @@ public function setLeaderboardIds($leaderboardIds) { $this->leaderboardIds = $leaderboardIds; } - public function getLeaderboardIds() { return $this->leaderboardIds; } - } From 34bfb781e40561567ae1eb0d9def42574bf48d8b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:46 -0800 Subject: [PATCH 0493/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 1021 +++++++++++------------------- 1 file changed, 353 insertions(+), 668 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index e7d4675bd..fd21860ce 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -19,8 +19,9 @@ * Service definition for Directory (directory_v1). * *

- * The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more. - *

+ * The Admin SDK Directory API lets you view and manage enterprise resources + * such as users and groups, administrative notifications, security features, + * and more.

* *

* For more information about this service, see the API @@ -32,43 +33,62 @@ class Google_Service_Directory extends Google_Service { /** View and manage your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos"; + const ADMIN_DIRECTORY_DEVICE_CHROMEOS = + "https://www.googleapis.com/auth/admin.directory.device.chromeos"; /** View your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; + const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = + "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; /** View and manage your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE = "https://www.googleapis.com/auth/admin.directory.device.mobile"; + const ADMIN_DIRECTORY_DEVICE_MOBILE = + "https://www.googleapis.com/auth/admin.directory.device.mobile"; /** Manage your mobile devices by performing administrative tasks. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; + const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = + "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; /** View your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; + const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = + "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; /** View and manage the provisioning of groups on your domain. */ - const ADMIN_DIRECTORY_GROUP = "https://www.googleapis.com/auth/admin.directory.group"; + const ADMIN_DIRECTORY_GROUP = + "https://www.googleapis.com/auth/admin.directory.group"; /** View and manage group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER = "https://www.googleapis.com/auth/admin.directory.group.member"; + const ADMIN_DIRECTORY_GROUP_MEMBER = + "https://www.googleapis.com/auth/admin.directory.group.member"; /** View group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; + const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = + "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; /** View groups on your domain. */ - const ADMIN_DIRECTORY_GROUP_READONLY = "https://www.googleapis.com/auth/admin.directory.group.readonly"; + const ADMIN_DIRECTORY_GROUP_READONLY = + "https://www.googleapis.com/auth/admin.directory.group.readonly"; /** View and manage notifications received on your domain. */ - const ADMIN_DIRECTORY_NOTIFICATIONS = "https://www.googleapis.com/auth/admin.directory.notifications"; + const ADMIN_DIRECTORY_NOTIFICATIONS = + "https://www.googleapis.com/auth/admin.directory.notifications"; /** View and manage organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT = "https://www.googleapis.com/auth/admin.directory.orgunit"; + const ADMIN_DIRECTORY_ORGUNIT = + "https://www.googleapis.com/auth/admin.directory.orgunit"; /** View organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; + const ADMIN_DIRECTORY_ORGUNIT_READONLY = + "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; /** View and manage the provisioning of users on your domain. */ - const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user"; + const ADMIN_DIRECTORY_USER = + "https://www.googleapis.com/auth/admin.directory.user"; /** View and manage user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS = "https://www.googleapis.com/auth/admin.directory.user.alias"; + const ADMIN_DIRECTORY_USER_ALIAS = + "https://www.googleapis.com/auth/admin.directory.user.alias"; /** View user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS_READONLY = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; + const ADMIN_DIRECTORY_USER_ALIAS_READONLY = + "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; /** View users on your domain. */ - const ADMIN_DIRECTORY_USER_READONLY = "https://www.googleapis.com/auth/admin.directory.user.readonly"; + const ADMIN_DIRECTORY_USER_READONLY = + "https://www.googleapis.com/auth/admin.directory.user.readonly"; /** Manage data access permissions for users on your domain. */ - const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security"; + const ADMIN_DIRECTORY_USER_SECURITY = + "https://www.googleapis.com/auth/admin.directory.user.security"; /** View and manage the provisioning of user schemas on your domain. */ - const ADMIN_DIRECTORY_USERSCHEMA = "https://www.googleapis.com/auth/admin.directory.userschema"; + const ADMIN_DIRECTORY_USERSCHEMA = + "https://www.googleapis.com/auth/admin.directory.userschema"; /** View user schemas on your domain. */ - const ADMIN_DIRECTORY_USERSCHEMA_READONLY = "https://www.googleapis.com/auth/admin.directory.userschema.readonly"; + const ADMIN_DIRECTORY_USERSCHEMA_READONLY = + "https://www.googleapis.com/auth/admin.directory.userschema.readonly"; public $asps; public $channels; @@ -1280,11 +1300,9 @@ class Google_Service_Directory_Asps_Resource extends Google_Service_Resource /** * Delete an ASP issued by a user. (asps.delete) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param int $codeId - * The unique ID of the ASP to be deleted. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param int $codeId The unique ID of the ASP to be deleted. * @param array $optParams Optional parameters. */ public function delete($userKey, $codeId, $optParams = array()) @@ -1293,14 +1311,13 @@ public function delete($userKey, $codeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get information about an ASP issued by a user. (asps.get) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param int $codeId - * The unique ID of the ASP. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param int $codeId The unique ID of the ASP. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Asp */ @@ -1310,12 +1327,12 @@ public function get($userKey, $codeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Asp"); } + /** * List the ASPs issued by a user. (asps.listAsps) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Asps */ @@ -1366,14 +1383,12 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R /** * Retrieve Chrome OS Device (chromeosdevices.get) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $deviceId Immutable id of Chrome OS Device * @param array $optParams Optional parameters. * - * @opt_param string projection - * Restrict information returned to a set of selected fields. + * @opt_param string projection Restrict information returned to a set of + * selected fields. * @return Google_Service_Directory_ChromeOsDevice */ public function get($customerId, $deviceId, $optParams = array()) @@ -1382,28 +1397,23 @@ public function get($customerId, $deviceId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); } + /** * Retrieve all Chrome OS Devices of a customer (paginated) * (chromeosdevices.listChromeosdevices) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. Only of use when orderBy is also - * used - * @opt_param string query - * Search string in the format given at - * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 + * @opt_param string orderBy Column to use for sorting results + * @opt_param string projection Restrict information returned to a set of + * selected fields. + * @opt_param int maxResults Maximum number of results to return. Default is 100 + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. Only of use when orderBy is also used + * @opt_param string query Search string in the format given at + * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 * @return Google_Service_Directory_ChromeOsDevices */ public function listChromeosdevices($customerId, $optParams = array()) @@ -1412,19 +1422,18 @@ public function listChromeosdevices($customerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); } + /** * Update Chrome OS Device. This method supports patch semantics. * (chromeosdevices.patch) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $deviceId Immutable id of Chrome OS Device * @param Google_ChromeOsDevice $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection - * Restrict information returned to a set of selected fields. + * @opt_param string projection Restrict information returned to a set of + * selected fields. * @return Google_Service_Directory_ChromeOsDevice */ public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) @@ -1433,18 +1442,17 @@ public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsD $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); } + /** * Update Chrome OS Device (chromeosdevices.update) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $deviceId Immutable id of Chrome OS Device * @param Google_ChromeOsDevice $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection - * Restrict information returned to a set of selected fields. + * @opt_param string projection Restrict information returned to a set of + * selected fields. * @return Google_Service_Directory_ChromeOsDevice */ public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) @@ -1469,8 +1477,7 @@ class Google_Service_Directory_Groups_Resource extends Google_Service_Resource /** * Delete Group (groups.delete) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param array $optParams Optional parameters. */ public function delete($groupKey, $optParams = array()) @@ -1479,11 +1486,11 @@ public function delete($groupKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve Group (groups.get) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param array $optParams Optional parameters. * @return Google_Service_Directory_Group */ @@ -1493,6 +1500,7 @@ public function get($groupKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Group"); } + /** * Create Group (groups.insert) * @@ -1506,24 +1514,23 @@ public function insert(Google_Service_Directory_Group $postBody, $optParams = ar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_Group"); } + /** * Retrieve all groups in a domain (paginated) (groups.listGroups) * * @param array $optParams Optional parameters. * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all groups for a - * customer, fill this field instead of domain. - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string domain - * Name of the domain. Fill this field to get groups from only this domain. To return all groups in - * a multi-domain fill customer field instead. - * @opt_param int maxResults - * Maximum number of results to return. Default is 200 - * @opt_param string userKey - * Email or immutable Id of the user if only those groups are to be listed, the given user is a - * member of. If Id, it should match with id of user object + * @opt_param string customer Immutable id of the Google Apps account. In case + * of multi-domain, to fetch all groups for a customer, fill this field instead + * of domain. + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string domain Name of the domain. Fill this field to get groups + * from only this domain. To return all groups in a multi-domain fill customer + * field instead. + * @opt_param int maxResults Maximum number of results to return. Default is 200 + * @opt_param string userKey Email or immutable Id of the user if only those + * groups are to be listed, the given user is a member of. If Id, it should + * match with id of user object * @return Google_Service_Directory_Groups */ public function listGroups($optParams = array()) @@ -1532,11 +1539,12 @@ public function listGroups($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Groups"); } + /** * Update Group. This method supports patch semantics. (groups.patch) * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object * @param Google_Group $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Group @@ -1547,11 +1555,12 @@ public function patch($groupKey, Google_Service_Directory_Group $postBody, $optP $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_Group"); } + /** * Update Group (groups.update) * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object * @param Google_Group $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Group @@ -1578,10 +1587,8 @@ class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Res /** * Remove a alias for the group (aliases.delete) * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $alias - * The alias to be removed + * @param string $groupKey Email or immutable Id of the group + * @param string $alias The alias to be removed * @param array $optParams Optional parameters. */ public function delete($groupKey, $alias, $optParams = array()) @@ -1590,11 +1597,11 @@ public function delete($groupKey, $alias, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Add a alias for the group (aliases.insert) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param Google_Alias $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Alias @@ -1605,11 +1612,11 @@ public function insert($groupKey, Google_Service_Directory_Alias $postBody, $opt $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_Alias"); } + /** * List all aliases for a group (aliases.listGroupsAliases) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param array $optParams Optional parameters. * @return Google_Service_Directory_Aliases */ @@ -1635,10 +1642,8 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource /** * Remove membership. (members.delete) * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $memberKey - * Email or immutable Id of the member + * @param string $groupKey Email or immutable Id of the group + * @param string $memberKey Email or immutable Id of the member * @param array $optParams Optional parameters. */ public function delete($groupKey, $memberKey, $optParams = array()) @@ -1647,13 +1652,12 @@ public function delete($groupKey, $memberKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve Group Member (members.get) * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $memberKey - * Email or immutable Id of the member + * @param string $groupKey Email or immutable Id of the group + * @param string $memberKey Email or immutable Id of the member * @param array $optParams Optional parameters. * @return Google_Service_Directory_Member */ @@ -1663,11 +1667,11 @@ public function get($groupKey, $memberKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Member"); } + /** * Add user to the specified group. (members.insert) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param Google_Member $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Member @@ -1678,19 +1682,17 @@ public function insert($groupKey, Google_Service_Directory_Member $postBody, $op $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_Member"); } + /** * Retrieve all members in a group (paginated) (members.listMembers) * - * @param string $groupKey - * Email or immutable Id of the group + * @param string $groupKey Email or immutable Id of the group * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string roles - * Comma separated role values to filter list results on. - * @opt_param int maxResults - * Maximum number of results to return. Default is 200 + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string roles Comma separated role values to filter list results + * on. + * @opt_param int maxResults Maximum number of results to return. Default is 200 * @return Google_Service_Directory_Members */ public function listMembers($groupKey, $optParams = array()) @@ -1699,14 +1701,15 @@ public function listMembers($groupKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Members"); } + /** * Update membership of a user in the specified group. This method supports * patch semantics. (members.patch) * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param string $memberKey - * Email or immutable Id of the user. If Id, it should match with id of member object + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object + * @param string $memberKey Email or immutable Id of the user. If Id, it should + * match with id of member object * @param Google_Member $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Member @@ -1717,13 +1720,14 @@ public function patch($groupKey, $memberKey, Google_Service_Directory_Member $po $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_Member"); } + /** * Update membership of a user in the specified group. (members.update) * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param string $memberKey - * Email or immutable Id of the user. If Id, it should match with id of member object + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object + * @param string $memberKey Email or immutable Id of the user. If Id, it should + * match with id of member object * @param Google_Member $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Member @@ -1750,10 +1754,8 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res /** * Take action on Mobile Device (mobiledevices.action) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $resourceId Immutable id of Mobile Device * @param Google_MobileDeviceAction $postBody * @param array $optParams Optional parameters. */ @@ -1763,13 +1765,12 @@ public function action($customerId, $resourceId, Google_Service_Directory_Mobile $params = array_merge($params, $optParams); return $this->call('action', array($params)); } + /** * Delete Mobile Device (mobiledevices.delete) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $resourceId Immutable id of Mobile Device * @param array $optParams Optional parameters. */ public function delete($customerId, $resourceId, $optParams = array()) @@ -1778,17 +1779,16 @@ public function delete($customerId, $resourceId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve Mobile Device (mobiledevices.get) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device + * @param string $customerId Immutable id of the Google Apps account + * @param string $resourceId Immutable id of Mobile Device * @param array $optParams Optional parameters. * - * @opt_param string projection - * Restrict information returned to a set of selected fields. + * @opt_param string projection Restrict information returned to a set of + * selected fields. * @return Google_Service_Directory_MobileDevice */ public function get($customerId, $resourceId, $optParams = array()) @@ -1797,28 +1797,23 @@ public function get($customerId, $resourceId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_MobileDevice"); } + /** * Retrieve all Mobile Devices of a customer (paginated) * (mobiledevices.listMobiledevices) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. Only of use when orderBy is also - * used - * @opt_param string query - * Search string in the format given at - * http://support.google.com/a/bin/answer.py?hl=en=1408863#search + * @opt_param string orderBy Column to use for sorting results + * @opt_param string projection Restrict information returned to a set of + * selected fields. + * @opt_param int maxResults Maximum number of results to return. Default is 100 + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. Only of use when orderBy is also used + * @opt_param string query Search string in the format given at + * http://support.google.com/a/bin/answer.py?hl=en=1408863#search * @return Google_Service_Directory_MobileDevices */ public function listMobiledevices($customerId, $optParams = array()) @@ -1843,11 +1838,9 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res /** * Deletes a notification (notifications.delete) * - * @param string $customer - * The unique ID for the customer's Google account. The customerId is also returned as part of the - * Users resource. - * @param string $notificationId - * The unique ID of the notification. + * @param string $customer The unique ID for the customer's Google account. The + * customerId is also returned as part of the Users resource. + * @param string $notificationId The unique ID of the notification. * @param array $optParams Optional parameters. */ public function delete($customer, $notificationId, $optParams = array()) @@ -1856,14 +1849,13 @@ public function delete($customer, $notificationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieves a notification. (notifications.get) * - * @param string $customer - * The unique ID for the customer's Google account. The customerId is also returned as part of the - * Users resource. - * @param string $notificationId - * The unique ID of the notification. + * @param string $customer The unique ID for the customer's Google account. The + * customerId is also returned as part of the Users resource. + * @param string $notificationId The unique ID of the notification. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Notification */ @@ -1873,19 +1865,19 @@ public function get($customer, $notificationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Notification"); } + /** * Retrieves a list of notifications. (notifications.listNotifications) * - * @param string $customer - * The unique ID for the customer's Google account. + * @param string $customer The unique ID for the customer's Google account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token to specify the page of results to retrieve. - * @opt_param string maxResults - * Maximum number of notifications to return per page. The default is 100. - * @opt_param string language - * The ISO 639-1 code of the language notifications are returned in. The default is English (en). + * @opt_param string pageToken The token to specify the page of results to + * retrieve. + * @opt_param string maxResults Maximum number of notifications to return per + * page. The default is 100. + * @opt_param string language The ISO 639-1 code of the language notifications + * are returned in. The default is English (en). * @return Google_Service_Directory_Notifications */ public function listNotifications($customer, $optParams = array()) @@ -1894,14 +1886,13 @@ public function listNotifications($customer, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Notifications"); } + /** * Updates a notification. This method supports patch semantics. * (notifications.patch) * - * @param string $customer - * The unique ID for the customer's Google account. - * @param string $notificationId - * The unique ID of the notification. + * @param string $customer The unique ID for the customer's Google account. + * @param string $notificationId The unique ID of the notification. * @param Google_Notification $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Notification @@ -1912,13 +1903,12 @@ public function patch($customer, $notificationId, Google_Service_Directory_Notif $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_Notification"); } + /** * Updates a notification. (notifications.update) * - * @param string $customer - * The unique ID for the customer's Google account. - * @param string $notificationId - * The unique ID of the notification. + * @param string $customer The unique ID for the customer's Google account. + * @param string $notificationId The unique ID of the notification. * @param Google_Notification $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Notification @@ -1945,10 +1935,8 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource /** * Remove Organization Unit (orgunits.delete) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit + * @param string $customerId Immutable id of the Google Apps account + * @param string $orgUnitPath Full path of the organization unit * @param array $optParams Optional parameters. */ public function delete($customerId, $orgUnitPath, $optParams = array()) @@ -1957,13 +1945,12 @@ public function delete($customerId, $orgUnitPath, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve Organization Unit (orgunits.get) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit + * @param string $customerId Immutable id of the Google Apps account + * @param string $orgUnitPath Full path of the organization unit * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit */ @@ -1973,11 +1960,11 @@ public function get($customerId, $orgUnitPath, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_OrgUnit"); } + /** * Add Organization Unit (orgunits.insert) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -1988,17 +1975,16 @@ public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit"); } + /** * Retrieve all Organization Units (orgunits.listOrgunits) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * - * @opt_param string type - * Whether to return all sub-organizations or just immediate children - * @opt_param string orgUnitPath - * the URL-encoded organization unit + * @opt_param string type Whether to return all sub-organizations or just + * immediate children + * @opt_param string orgUnitPath the URL-encoded organization unit * @return Google_Service_Directory_OrgUnits */ public function listOrgunits($customerId, $optParams = array()) @@ -2007,14 +1993,13 @@ public function listOrgunits($customerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_OrgUnits"); } + /** * Update Organization Unit. This method supports patch semantics. * (orgunits.patch) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit + * @param string $customerId Immutable id of the Google Apps account + * @param string $orgUnitPath Full path of the organization unit * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -2025,13 +2010,12 @@ public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUni $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit"); } + /** * Update Organization Unit (orgunits.update) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit + * @param string $customerId Immutable id of the Google Apps account + * @param string $orgUnitPath Full path of the organization unit * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -2058,10 +2042,8 @@ class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource /** * Delete schema (schemas.delete) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $schemaKey - * Name or immutable Id of the schema + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema * @param array $optParams Optional parameters. */ public function delete($customerId, $schemaKey, $optParams = array()) @@ -2070,13 +2052,12 @@ public function delete($customerId, $schemaKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve schema (schemas.get) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $schemaKey - * Name or immutable Id of the schema + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema * @param array $optParams Optional parameters. * @return Google_Service_Directory_Schema */ @@ -2086,11 +2067,11 @@ public function get($customerId, $schemaKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Schema"); } + /** * Create schema. (schemas.insert) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param Google_Schema $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Schema @@ -2101,11 +2082,11 @@ public function insert($customerId, Google_Service_Directory_Schema $postBody, $ $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_Schema"); } + /** * Retrieve all schemas for a customer (schemas.listSchemas) * - * @param string $customerId - * Immutable id of the Google Apps account + * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * @return Google_Service_Directory_Schemas */ @@ -2115,13 +2096,12 @@ public function listSchemas($customerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Schemas"); } + /** * Update schema. This method supports patch semantics. (schemas.patch) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $schemaKey - * Name or immutable Id of the schema. + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema. * @param Google_Schema $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Schema @@ -2132,13 +2112,12 @@ public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_Schema"); } + /** * Update schema (schemas.update) * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $schemaKey - * Name or immutable Id of the schema. + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema. * @param Google_Schema $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Schema @@ -2165,11 +2144,10 @@ class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource /** * Delete all access tokens issued by a user for an application. (tokens.delete) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param string $clientId - * The Client ID of the application the token is issued to. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param string $clientId The Client ID of the application the token is issued + * to. * @param array $optParams Optional parameters. */ public function delete($userKey, $clientId, $optParams = array()) @@ -2178,14 +2156,14 @@ public function delete($userKey, $clientId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Get information about an access token issued by a user. (tokens.get) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param string $clientId - * The Client ID of the application the token is issued to. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param string $clientId The Client ID of the application the token is issued + * to. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Token */ @@ -2195,13 +2173,13 @@ public function get($userKey, $clientId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_Token"); } + /** * Returns the set of tokens specified user has issued to 3rd party * applications. (tokens.listTokens) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Tokens */ @@ -2227,8 +2205,7 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource /** * Delete user (users.delete) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. */ public function delete($userKey, $optParams = array()) @@ -2237,20 +2214,19 @@ public function delete($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * retrieve user (users.get) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. * - * @opt_param string viewType - * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. - * @opt_param string customFieldMask - * Comma-separated list of schema names. All fields from these schemas are fetched. This should - * only be set when projection=custom. - * @opt_param string projection - * What subset of fields to fetch for this user. + * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC + * view of the user. + * @opt_param string customFieldMask Comma-separated list of schema names. All + * fields from these schemas are fetched. This should only be set when + * projection=custom. + * @opt_param string projection What subset of fields to fetch for this user. * @return Google_Service_Directory_User */ public function get($userKey, $optParams = array()) @@ -2259,6 +2235,7 @@ public function get($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_User"); } + /** * create user. (users.insert) * @@ -2272,40 +2249,38 @@ public function insert(Google_Service_Directory_User $postBody, $optParams = arr $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_User"); } + /** * Retrieve either deleted users or all users in a domain (paginated) * (users.listUsers) * * @param array $optParams Optional parameters. * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a - * customer, fill this field instead of domain. - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string domain - * Name of the domain. Fill this field to get users from only this domain. To return all users in a - * multi-domain fill customer field instead. - * @opt_param string projection - * What subset of fields to fetch for this user. - * @opt_param string showDeleted - * If set to true retrieves the list of deleted users. Default is false - * @opt_param string customFieldMask - * Comma-separated list of schema names. All fields from these schemas are fetched. This should - * only be set when projection=custom. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100. Max allowed is 500 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. - * @opt_param string query - * Query string search. Should be of the form "". Complete documentation is at - * https://developers.google.com/admin-sdk/directory/v1/guides/search-users - * @opt_param string viewType - * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. - * @opt_param string event - * Event on which subscription is intended (if subscribing) + * @opt_param string customer Immutable id of the Google Apps account. In case + * of multi-domain, to fetch all users for a customer, fill this field instead + * of domain. + * @opt_param string orderBy Column to use for sorting results + * @opt_param string domain Name of the domain. Fill this field to get users + * from only this domain. To return all users in a multi-domain fill customer + * field instead. + * @opt_param string projection What subset of fields to fetch for this user. + * @opt_param string showDeleted If set to true retrieves the list of deleted + * users. Default is false + * @opt_param string customFieldMask Comma-separated list of schema names. All + * fields from these schemas are fetched. This should only be set when + * projection=custom. + * @opt_param int maxResults Maximum number of results to return. Default is + * 100. Max allowed is 500 + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. + * @opt_param string query Query string search. Should be of the form "". + * Complete documentation is at https://developers.google.com/admin- + * sdk/directory/v1/guides/search-users + * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC + * view of the user. + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @return Google_Service_Directory_Users */ public function listUsers($optParams = array()) @@ -2314,11 +2289,11 @@ public function listUsers($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Users"); } + /** * change admin status of a user (users.makeAdmin) * - * @param string $userKey - * Email or immutable Id of the user as admin + * @param string $userKey Email or immutable Id of the user as admin * @param Google_UserMakeAdmin $postBody * @param array $optParams Optional parameters. */ @@ -2328,11 +2303,12 @@ public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $post $params = array_merge($params, $optParams); return $this->call('makeAdmin', array($params)); } + /** * update user. This method supports patch semantics. (users.patch) * - * @param string $userKey - * Email or immutable Id of the user. If Id, it should match with id of user object + * @param string $userKey Email or immutable Id of the user. If Id, it should + * match with id of user object * @param Google_User $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_User @@ -2343,11 +2319,11 @@ public function patch($userKey, Google_Service_Directory_User $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_User"); } + /** * Undelete a deleted user (users.undelete) * - * @param string $userKey - * The immutable id of the user + * @param string $userKey The immutable id of the user * @param Google_UserUndelete $postBody * @param array $optParams Optional parameters. */ @@ -2357,11 +2333,12 @@ public function undelete($userKey, Google_Service_Directory_UserUndelete $postBo $params = array_merge($params, $optParams); return $this->call('undelete', array($params)); } + /** * update user (users.update) * - * @param string $userKey - * Email or immutable Id of the user. If Id, it should match with id of user object + * @param string $userKey Email or immutable Id of the user. If Id, it should + * match with id of user object * @param Google_User $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_User @@ -2372,40 +2349,38 @@ public function update($userKey, Google_Service_Directory_User $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Directory_User"); } + /** * Watch for changes in users list (users.watch) * * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a - * customer, fill this field instead of domain. - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string domain - * Name of the domain. Fill this field to get users from only this domain. To return all users in a - * multi-domain fill customer field instead. - * @opt_param string projection - * What subset of fields to fetch for this user. - * @opt_param string showDeleted - * If set to true retrieves the list of deleted users. Default is false - * @opt_param string customFieldMask - * Comma-separated list of schema names. All fields from these schemas are fetched. This should - * only be set when projection=custom. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100. Max allowed is 500 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. - * @opt_param string query - * Query string search. Should be of the form "". Complete documentation is at - * https://developers.google.com/admin-sdk/directory/v1/guides/search-users - * @opt_param string viewType - * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. - * @opt_param string event - * Event on which subscription is intended (if subscribing) + * @opt_param string customer Immutable id of the Google Apps account. In case + * of multi-domain, to fetch all users for a customer, fill this field instead + * of domain. + * @opt_param string orderBy Column to use for sorting results + * @opt_param string domain Name of the domain. Fill this field to get users + * from only this domain. To return all users in a multi-domain fill customer + * field instead. + * @opt_param string projection What subset of fields to fetch for this user. + * @opt_param string showDeleted If set to true retrieves the list of deleted + * users. Default is false + * @opt_param string customFieldMask Comma-separated list of schema names. All + * fields from these schemas are fetched. This should only be set when + * projection=custom. + * @opt_param int maxResults Maximum number of results to return. Default is + * 100. Max allowed is 500 + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. + * @opt_param string query Query string search. Should be of the form "". + * Complete documentation is at https://developers.google.com/admin- + * sdk/directory/v1/guides/search-users + * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC + * view of the user. + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @return Google_Service_Directory_Channel */ public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) @@ -2430,10 +2405,8 @@ class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Reso /** * Remove a alias for the user (aliases.delete) * - * @param string $userKey - * Email or immutable Id of the user - * @param string $alias - * The alias to be removed + * @param string $userKey Email or immutable Id of the user + * @param string $alias The alias to be removed * @param array $optParams Optional parameters. */ public function delete($userKey, $alias, $optParams = array()) @@ -2442,11 +2415,11 @@ public function delete($userKey, $alias, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Add a alias for the user (aliases.insert) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param Google_Alias $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_Alias @@ -2457,15 +2430,15 @@ public function insert($userKey, Google_Service_Directory_Alias $postBody, $optP $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Directory_Alias"); } + /** * List all aliases for a user (aliases.listUsersAliases) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. * - * @opt_param string event - * Event on which subscription is intended (if subscribing) + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @return Google_Service_Directory_Aliases */ public function listUsersAliases($userKey, $optParams = array()) @@ -2474,16 +2447,16 @@ public function listUsersAliases($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Directory_Aliases"); } + /** * Watch for changes in user aliases list (aliases.watch) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string event - * Event on which subscription is intended (if subscribing) + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @return Google_Service_Directory_Channel */ public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array()) @@ -2507,8 +2480,7 @@ class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resou /** * Remove photos for the user (photos.delete) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. */ public function delete($userKey, $optParams = array()) @@ -2517,11 +2489,11 @@ public function delete($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Retrieve photo of a user (photos.get) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. * @return Google_Service_Directory_UserPhoto */ @@ -2531,12 +2503,12 @@ public function get($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Directory_UserPhoto"); } + /** * Add a photo for the user. This method supports patch semantics. * (photos.patch) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param Google_UserPhoto $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_UserPhoto @@ -2547,11 +2519,11 @@ public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $o $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto"); } + /** * Add a photo for the user (photos.update) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param Google_UserPhoto $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_UserPhoto @@ -2579,8 +2551,7 @@ class Google_Service_Directory_VerificationCodes_Resource extends Google_Service * Generate new backup verification codes for the user. * (verificationCodes.generate) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. */ public function generate($userKey, $optParams = array()) @@ -2589,12 +2560,12 @@ public function generate($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('generate', array($params)); } + /** * Invalidate the current backup verification codes for the user. * (verificationCodes.invalidate) * - * @param string $userKey - * Email or immutable Id of the user + * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. */ public function invalidate($userKey, $optParams = array()) @@ -2603,13 +2574,13 @@ public function invalidate($userKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('invalidate', array($params)); } + /** * Returns the current set of valid backup verification codes for the specified * user. (verificationCodes.listVerificationCodes) * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. * @param array $optParams Optional parameters. * @return Google_Service_Directory_VerificationCodes */ @@ -2634,11 +2605,11 @@ class Google_Service_Directory_Alias extends Google_Model public $kind; public $primaryEmail; + public function setAlias($alias) { $this->alias = $alias; } - public function getAlias() { return $this->alias; @@ -2647,7 +2618,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2656,7 +2626,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2665,7 +2634,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2674,12 +2642,10 @@ public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; } - public function getPrimaryEmail() { return $this->primaryEmail; } - } class Google_Service_Directory_Aliases extends Google_Collection @@ -2692,11 +2658,11 @@ class Google_Service_Directory_Aliases extends Google_Collection public $etag; public $kind; + public function setAliases($aliases) { $this->aliases = $aliases; } - public function getAliases() { return $this->aliases; @@ -2705,7 +2671,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2714,12 +2679,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Directory_Asp extends Google_Model @@ -2734,11 +2697,11 @@ class Google_Service_Directory_Asp extends Google_Model public $name; public $userKey; + public function setCodeId($codeId) { $this->codeId = $codeId; } - public function getCodeId() { return $this->codeId; @@ -2747,7 +2710,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -2756,7 +2718,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2765,7 +2726,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2774,7 +2734,6 @@ public function setLastTimeUsed($lastTimeUsed) { $this->lastTimeUsed = $lastTimeUsed; } - public function getLastTimeUsed() { return $this->lastTimeUsed; @@ -2783,7 +2742,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2792,12 +2750,10 @@ public function setUserKey($userKey) { $this->userKey = $userKey; } - public function getUserKey() { return $this->userKey; } - } class Google_Service_Directory_Asps extends Google_Collection @@ -2810,11 +2766,11 @@ class Google_Service_Directory_Asps extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2823,7 +2779,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2832,12 +2787,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Directory_Channel extends Google_Model @@ -2855,11 +2808,11 @@ class Google_Service_Directory_Channel extends Google_Model public $token; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -2868,7 +2821,6 @@ public function setExpiration($expiration) { $this->expiration = $expiration; } - public function getExpiration() { return $this->expiration; @@ -2877,7 +2829,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2886,7 +2837,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2895,7 +2845,6 @@ public function setParams($params) { $this->params = $params; } - public function getParams() { return $this->params; @@ -2904,7 +2853,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -2913,7 +2861,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -2922,7 +2869,6 @@ public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; } - public function getResourceUri() { return $this->resourceUri; @@ -2931,7 +2877,6 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -2940,20 +2885,14 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_ChannelParams extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Directory_ChromeOsDevice extends Google_Collection @@ -2988,11 +2927,11 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection public $supportEndDate; public $willAutoRenew; + public function setActiveTimeRanges($activeTimeRanges) { $this->activeTimeRanges = $activeTimeRanges; } - public function getActiveTimeRanges() { return $this->activeTimeRanges; @@ -3001,7 +2940,6 @@ public function setAnnotatedLocation($annotatedLocation) { $this->annotatedLocation = $annotatedLocation; } - public function getAnnotatedLocation() { return $this->annotatedLocation; @@ -3010,7 +2948,6 @@ public function setAnnotatedUser($annotatedUser) { $this->annotatedUser = $annotatedUser; } - public function getAnnotatedUser() { return $this->annotatedUser; @@ -3019,7 +2956,6 @@ public function setBootMode($bootMode) { $this->bootMode = $bootMode; } - public function getBootMode() { return $this->bootMode; @@ -3028,7 +2964,6 @@ public function setDeviceId($deviceId) { $this->deviceId = $deviceId; } - public function getDeviceId() { return $this->deviceId; @@ -3037,7 +2972,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3046,7 +2980,6 @@ public function setEthernetMacAddress($ethernetMacAddress) { $this->ethernetMacAddress = $ethernetMacAddress; } - public function getEthernetMacAddress() { return $this->ethernetMacAddress; @@ -3055,7 +2988,6 @@ public function setFirmwareVersion($firmwareVersion) { $this->firmwareVersion = $firmwareVersion; } - public function getFirmwareVersion() { return $this->firmwareVersion; @@ -3064,7 +2996,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3073,7 +3004,6 @@ public function setLastEnrollmentTime($lastEnrollmentTime) { $this->lastEnrollmentTime = $lastEnrollmentTime; } - public function getLastEnrollmentTime() { return $this->lastEnrollmentTime; @@ -3082,7 +3012,6 @@ public function setLastSync($lastSync) { $this->lastSync = $lastSync; } - public function getLastSync() { return $this->lastSync; @@ -3091,7 +3020,6 @@ public function setMacAddress($macAddress) { $this->macAddress = $macAddress; } - public function getMacAddress() { return $this->macAddress; @@ -3100,7 +3028,6 @@ public function setMeid($meid) { $this->meid = $meid; } - public function getMeid() { return $this->meid; @@ -3109,7 +3036,6 @@ public function setModel($model) { $this->model = $model; } - public function getModel() { return $this->model; @@ -3118,7 +3044,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -3127,7 +3052,6 @@ public function setOrderNumber($orderNumber) { $this->orderNumber = $orderNumber; } - public function getOrderNumber() { return $this->orderNumber; @@ -3136,7 +3060,6 @@ public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; } - public function getOrgUnitPath() { return $this->orgUnitPath; @@ -3145,7 +3068,6 @@ public function setOsVersion($osVersion) { $this->osVersion = $osVersion; } - public function getOsVersion() { return $this->osVersion; @@ -3154,7 +3076,6 @@ public function setPlatformVersion($platformVersion) { $this->platformVersion = $platformVersion; } - public function getPlatformVersion() { return $this->platformVersion; @@ -3163,7 +3084,6 @@ public function setRecentUsers($recentUsers) { $this->recentUsers = $recentUsers; } - public function getRecentUsers() { return $this->recentUsers; @@ -3172,7 +3092,6 @@ public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; } - public function getSerialNumber() { return $this->serialNumber; @@ -3181,7 +3100,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -3190,7 +3108,6 @@ public function setSupportEndDate($supportEndDate) { $this->supportEndDate = $supportEndDate; } - public function getSupportEndDate() { return $this->supportEndDate; @@ -3199,12 +3116,10 @@ public function setWillAutoRenew($willAutoRenew) { $this->willAutoRenew = $willAutoRenew; } - public function getWillAutoRenew() { return $this->willAutoRenew; } - } class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model @@ -3214,11 +3129,11 @@ class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Mod public $activeTime; public $date; + public function setActiveTime($activeTime) { $this->activeTime = $activeTime; } - public function getActiveTime() { return $this->activeTime; @@ -3227,12 +3142,10 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; } - } class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model @@ -3242,11 +3155,11 @@ class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model public $email; public $type; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3255,12 +3168,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_ChromeOsDevices extends Google_Collection @@ -3274,11 +3185,11 @@ class Google_Service_Directory_ChromeOsDevices extends Google_Collection public $kind; public $nextPageToken; + public function setChromeosdevices($chromeosdevices) { $this->chromeosdevices = $chromeosdevices; } - public function getChromeosdevices() { return $this->chromeosdevices; @@ -3287,7 +3198,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3296,7 +3206,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3305,12 +3214,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Directory_Group extends Google_Collection @@ -3329,11 +3236,11 @@ class Google_Service_Directory_Group extends Google_Collection public $name; public $nonEditableAliases; + public function setAdminCreated($adminCreated) { $this->adminCreated = $adminCreated; } - public function getAdminCreated() { return $this->adminCreated; @@ -3342,7 +3249,6 @@ public function setAliases($aliases) { $this->aliases = $aliases; } - public function getAliases() { return $this->aliases; @@ -3351,7 +3257,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3360,7 +3265,6 @@ public function setDirectMembersCount($directMembersCount) { $this->directMembersCount = $directMembersCount; } - public function getDirectMembersCount() { return $this->directMembersCount; @@ -3369,7 +3273,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3378,7 +3281,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3387,7 +3289,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3396,7 +3297,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3405,7 +3305,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3414,12 +3313,10 @@ public function setNonEditableAliases($nonEditableAliases) { $this->nonEditableAliases = $nonEditableAliases; } - public function getNonEditableAliases() { return $this->nonEditableAliases; } - } class Google_Service_Directory_Groups extends Google_Collection @@ -3433,11 +3330,11 @@ class Google_Service_Directory_Groups extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3446,7 +3343,6 @@ public function setGroups($groups) { $this->groups = $groups; } - public function getGroups() { return $this->groups; @@ -3455,7 +3351,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3464,12 +3359,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Directory_Member extends Google_Model @@ -3483,11 +3376,11 @@ class Google_Service_Directory_Member extends Google_Model public $role; public $type; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3496,7 +3389,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3505,7 +3397,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3514,7 +3405,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3523,7 +3413,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -3532,12 +3421,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_Members extends Google_Collection @@ -3551,11 +3438,11 @@ class Google_Service_Directory_Members extends Google_Collection protected $membersDataType = 'array'; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3564,7 +3451,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3573,7 +3459,6 @@ public function setMembers($members) { $this->members = $members; } - public function getMembers() { return $this->members; @@ -3582,12 +3467,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Directory_MobileDevice extends Google_Collection @@ -3623,11 +3506,11 @@ class Google_Service_Directory_MobileDevice extends Google_Collection public $userAgent; public $wifiMacAddress; + public function setApplications($applications) { $this->applications = $applications; } - public function getApplications() { return $this->applications; @@ -3636,7 +3519,6 @@ public function setBasebandVersion($basebandVersion) { $this->basebandVersion = $basebandVersion; } - public function getBasebandVersion() { return $this->basebandVersion; @@ -3645,7 +3527,6 @@ public function setBuildNumber($buildNumber) { $this->buildNumber = $buildNumber; } - public function getBuildNumber() { return $this->buildNumber; @@ -3654,7 +3535,6 @@ public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; } - public function getDefaultLanguage() { return $this->defaultLanguage; @@ -3663,7 +3543,6 @@ public function setDeviceCompromisedStatus($deviceCompromisedStatus) { $this->deviceCompromisedStatus = $deviceCompromisedStatus; } - public function getDeviceCompromisedStatus() { return $this->deviceCompromisedStatus; @@ -3672,7 +3551,6 @@ public function setDeviceId($deviceId) { $this->deviceId = $deviceId; } - public function getDeviceId() { return $this->deviceId; @@ -3681,7 +3559,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -3690,7 +3567,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3699,7 +3575,6 @@ public function setFirstSync($firstSync) { $this->firstSync = $firstSync; } - public function getFirstSync() { return $this->firstSync; @@ -3708,7 +3583,6 @@ public function setHardwareId($hardwareId) { $this->hardwareId = $hardwareId; } - public function getHardwareId() { return $this->hardwareId; @@ -3717,7 +3591,6 @@ public function setImei($imei) { $this->imei = $imei; } - public function getImei() { return $this->imei; @@ -3726,7 +3599,6 @@ public function setKernelVersion($kernelVersion) { $this->kernelVersion = $kernelVersion; } - public function getKernelVersion() { return $this->kernelVersion; @@ -3735,7 +3607,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3744,7 +3615,6 @@ public function setLastSync($lastSync) { $this->lastSync = $lastSync; } - public function getLastSync() { return $this->lastSync; @@ -3753,7 +3623,6 @@ public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfil { $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; } - public function getManagedAccountIsOnOwnerProfile() { return $this->managedAccountIsOnOwnerProfile; @@ -3762,7 +3631,6 @@ public function setMeid($meid) { $this->meid = $meid; } - public function getMeid() { return $this->meid; @@ -3771,7 +3639,6 @@ public function setModel($model) { $this->model = $model; } - public function getModel() { return $this->model; @@ -3780,7 +3647,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3789,7 +3655,6 @@ public function setNetworkOperator($networkOperator) { $this->networkOperator = $networkOperator; } - public function getNetworkOperator() { return $this->networkOperator; @@ -3798,7 +3663,6 @@ public function setOs($os) { $this->os = $os; } - public function getOs() { return $this->os; @@ -3807,7 +3671,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -3816,7 +3679,6 @@ public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; } - public function getSerialNumber() { return $this->serialNumber; @@ -3825,7 +3687,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -3834,7 +3695,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -3843,7 +3703,6 @@ public function setUserAgent($userAgent) { $this->userAgent = $userAgent; } - public function getUserAgent() { return $this->userAgent; @@ -3852,12 +3711,10 @@ public function setWifiMacAddress($wifiMacAddress) { $this->wifiMacAddress = $wifiMacAddress; } - public function getWifiMacAddress() { return $this->wifiMacAddress; } - } class Google_Service_Directory_MobileDeviceAction extends Google_Model @@ -3866,16 +3723,15 @@ class Google_Service_Directory_MobileDeviceAction extends Google_Model ); public $action; + public function setAction($action) { $this->action = $action; } - public function getAction() { return $this->action; } - } class Google_Service_Directory_MobileDeviceApplications extends Google_Collection @@ -3889,11 +3745,11 @@ class Google_Service_Directory_MobileDeviceApplications extends Google_Collectio public $versionCode; public $versionName; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3902,7 +3758,6 @@ public function setPackageName($packageName) { $this->packageName = $packageName; } - public function getPackageName() { return $this->packageName; @@ -3911,7 +3766,6 @@ public function setPermission($permission) { $this->permission = $permission; } - public function getPermission() { return $this->permission; @@ -3920,7 +3774,6 @@ public function setVersionCode($versionCode) { $this->versionCode = $versionCode; } - public function getVersionCode() { return $this->versionCode; @@ -3929,12 +3782,10 @@ public function setVersionName($versionName) { $this->versionName = $versionName; } - public function getVersionName() { return $this->versionName; } - } class Google_Service_Directory_MobileDevices extends Google_Collection @@ -3948,11 +3799,11 @@ class Google_Service_Directory_MobileDevices extends Google_Collection protected $mobiledevicesDataType = 'array'; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3961,7 +3812,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3970,7 +3820,6 @@ public function setMobiledevices($mobiledevices) { $this->mobiledevices = $mobiledevices; } - public function getMobiledevices() { return $this->mobiledevices; @@ -3979,12 +3828,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Directory_Notification extends Google_Model @@ -4000,11 +3847,11 @@ class Google_Service_Directory_Notification extends Google_Model public $sendTime; public $subject; + public function setBody($body) { $this->body = $body; } - public function getBody() { return $this->body; @@ -4013,7 +3860,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4022,7 +3868,6 @@ public function setFromAddress($fromAddress) { $this->fromAddress = $fromAddress; } - public function getFromAddress() { return $this->fromAddress; @@ -4031,7 +3876,6 @@ public function setIsUnread($isUnread) { $this->isUnread = $isUnread; } - public function getIsUnread() { return $this->isUnread; @@ -4040,7 +3884,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4049,7 +3892,6 @@ public function setNotificationId($notificationId) { $this->notificationId = $notificationId; } - public function getNotificationId() { return $this->notificationId; @@ -4058,7 +3900,6 @@ public function setSendTime($sendTime) { $this->sendTime = $sendTime; } - public function getSendTime() { return $this->sendTime; @@ -4067,12 +3908,10 @@ public function setSubject($subject) { $this->subject = $subject; } - public function getSubject() { return $this->subject; } - } class Google_Service_Directory_Notifications extends Google_Collection @@ -4087,11 +3926,11 @@ class Google_Service_Directory_Notifications extends Google_Collection public $nextPageToken; public $unreadNotificationsCount; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4100,7 +3939,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4109,7 +3947,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4118,7 +3955,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4127,12 +3963,10 @@ public function setUnreadNotificationsCount($unreadNotificationsCount) { $this->unreadNotificationsCount = $unreadNotificationsCount; } - public function getUnreadNotificationsCount() { return $this->unreadNotificationsCount; } - } class Google_Service_Directory_OrgUnit extends Google_Model @@ -4147,11 +3981,11 @@ class Google_Service_Directory_OrgUnit extends Google_Model public $orgUnitPath; public $parentOrgUnitPath; + public function setBlockInheritance($blockInheritance) { $this->blockInheritance = $blockInheritance; } - public function getBlockInheritance() { return $this->blockInheritance; @@ -4160,7 +3994,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4169,7 +4002,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4178,7 +4010,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4187,7 +4018,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4196,7 +4026,6 @@ public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; } - public function getOrgUnitPath() { return $this->orgUnitPath; @@ -4205,12 +4034,10 @@ public function setParentOrgUnitPath($parentOrgUnitPath) { $this->parentOrgUnitPath = $parentOrgUnitPath; } - public function getParentOrgUnitPath() { return $this->parentOrgUnitPath; } - } class Google_Service_Directory_OrgUnits extends Google_Collection @@ -4223,11 +4050,11 @@ class Google_Service_Directory_OrgUnits extends Google_Collection protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; protected $organizationUnitsDataType = 'array'; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4236,7 +4063,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4245,12 +4071,10 @@ public function setOrganizationUnits($organizationUnits) { $this->organizationUnits = $organizationUnits; } - public function getOrganizationUnits() { return $this->organizationUnits; } - } class Google_Service_Directory_Schema extends Google_Collection @@ -4265,11 +4089,11 @@ class Google_Service_Directory_Schema extends Google_Collection public $schemaId; public $schemaName; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4278,7 +4102,6 @@ public function setFields($fields) { $this->fields = $fields; } - public function getFields() { return $this->fields; @@ -4287,7 +4110,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4296,7 +4118,6 @@ public function setSchemaId($schemaId) { $this->schemaId = $schemaId; } - public function getSchemaId() { return $this->schemaId; @@ -4305,12 +4126,10 @@ public function setSchemaName($schemaName) { $this->schemaName = $schemaName; } - public function getSchemaName() { return $this->schemaName; } - } class Google_Service_Directory_SchemaFieldSpec extends Google_Model @@ -4328,11 +4147,11 @@ class Google_Service_Directory_SchemaFieldSpec extends Google_Model protected $numericIndexingSpecDataType = ''; public $readAccessType; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4341,7 +4160,6 @@ public function setFieldId($fieldId) { $this->fieldId = $fieldId; } - public function getFieldId() { return $this->fieldId; @@ -4350,7 +4168,6 @@ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } - public function getFieldName() { return $this->fieldName; @@ -4359,7 +4176,6 @@ public function setFieldType($fieldType) { $this->fieldType = $fieldType; } - public function getFieldType() { return $this->fieldType; @@ -4368,7 +4184,6 @@ public function setIndexed($indexed) { $this->indexed = $indexed; } - public function getIndexed() { return $this->indexed; @@ -4377,7 +4192,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4386,7 +4200,6 @@ public function setMultiValued($multiValued) { $this->multiValued = $multiValued; } - public function getMultiValued() { return $this->multiValued; @@ -4395,7 +4208,6 @@ public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecN { $this->numericIndexingSpec = $numericIndexingSpec; } - public function getNumericIndexingSpec() { return $this->numericIndexingSpec; @@ -4404,12 +4216,10 @@ public function setReadAccessType($readAccessType) { $this->readAccessType = $readAccessType; } - public function getReadAccessType() { return $this->readAccessType; } - } class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model @@ -4419,11 +4229,11 @@ class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google public $maxValue; public $minValue; + public function setMaxValue($maxValue) { $this->maxValue = $maxValue; } - public function getMaxValue() { return $this->maxValue; @@ -4432,12 +4242,10 @@ public function setMinValue($minValue) { $this->minValue = $minValue; } - public function getMinValue() { return $this->minValue; } - } class Google_Service_Directory_Schemas extends Google_Collection @@ -4450,11 +4258,11 @@ class Google_Service_Directory_Schemas extends Google_Collection protected $schemasType = 'Google_Service_Directory_Schema'; protected $schemasDataType = 'array'; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4463,7 +4271,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4472,12 +4279,10 @@ public function setSchemas($schemas) { $this->schemas = $schemas; } - public function getSchemas() { return $this->schemas; } - } class Google_Service_Directory_Token extends Google_Collection @@ -4494,11 +4299,11 @@ class Google_Service_Directory_Token extends Google_Collection public $scopes; public $userKey; + public function setAnonymous($anonymous) { $this->anonymous = $anonymous; } - public function getAnonymous() { return $this->anonymous; @@ -4507,7 +4312,6 @@ public function setClientId($clientId) { $this->clientId = $clientId; } - public function getClientId() { return $this->clientId; @@ -4516,7 +4320,6 @@ public function setDisplayText($displayText) { $this->displayText = $displayText; } - public function getDisplayText() { return $this->displayText; @@ -4525,7 +4328,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4534,7 +4336,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4543,7 +4344,6 @@ public function setNativeApp($nativeApp) { $this->nativeApp = $nativeApp; } - public function getNativeApp() { return $this->nativeApp; @@ -4552,7 +4352,6 @@ public function setScopes($scopes) { $this->scopes = $scopes; } - public function getScopes() { return $this->scopes; @@ -4561,12 +4360,10 @@ public function setUserKey($userKey) { $this->userKey = $userKey; } - public function getUserKey() { return $this->userKey; } - } class Google_Service_Directory_Tokens extends Google_Collection @@ -4579,11 +4376,11 @@ class Google_Service_Directory_Tokens extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4592,7 +4389,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4601,12 +4397,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Directory_User extends Google_Collection @@ -4648,11 +4442,11 @@ class Google_Service_Directory_User extends Google_Collection public $suspensionReason; public $thumbnailPhotoUrl; + public function setAddresses($addresses) { $this->addresses = $addresses; } - public function getAddresses() { return $this->addresses; @@ -4661,7 +4455,6 @@ public function setAgreedToTerms($agreedToTerms) { $this->agreedToTerms = $agreedToTerms; } - public function getAgreedToTerms() { return $this->agreedToTerms; @@ -4670,7 +4463,6 @@ public function setAliases($aliases) { $this->aliases = $aliases; } - public function getAliases() { return $this->aliases; @@ -4679,7 +4471,6 @@ public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) { $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; } - public function getChangePasswordAtNextLogin() { return $this->changePasswordAtNextLogin; @@ -4688,7 +4479,6 @@ public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -4697,7 +4487,6 @@ public function setCustomSchemas($customSchemas) { $this->customSchemas = $customSchemas; } - public function getCustomSchemas() { return $this->customSchemas; @@ -4706,7 +4495,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -4715,7 +4503,6 @@ public function setDeletionTime($deletionTime) { $this->deletionTime = $deletionTime; } - public function getDeletionTime() { return $this->deletionTime; @@ -4724,7 +4511,6 @@ public function setEmails($emails) { $this->emails = $emails; } - public function getEmails() { return $this->emails; @@ -4733,7 +4519,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4742,7 +4527,6 @@ public function setExternalIds($externalIds) { $this->externalIds = $externalIds; } - public function getExternalIds() { return $this->externalIds; @@ -4751,7 +4535,6 @@ public function setHashFunction($hashFunction) { $this->hashFunction = $hashFunction; } - public function getHashFunction() { return $this->hashFunction; @@ -4760,7 +4543,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4769,7 +4551,6 @@ public function setIms($ims) { $this->ims = $ims; } - public function getIms() { return $this->ims; @@ -4778,7 +4559,6 @@ public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { $this->includeInGlobalAddressList = $includeInGlobalAddressList; } - public function getIncludeInGlobalAddressList() { return $this->includeInGlobalAddressList; @@ -4787,7 +4567,6 @@ public function setIpWhitelisted($ipWhitelisted) { $this->ipWhitelisted = $ipWhitelisted; } - public function getIpWhitelisted() { return $this->ipWhitelisted; @@ -4796,7 +4575,6 @@ public function setIsAdmin($isAdmin) { $this->isAdmin = $isAdmin; } - public function getIsAdmin() { return $this->isAdmin; @@ -4805,7 +4583,6 @@ public function setIsDelegatedAdmin($isDelegatedAdmin) { $this->isDelegatedAdmin = $isDelegatedAdmin; } - public function getIsDelegatedAdmin() { return $this->isDelegatedAdmin; @@ -4814,7 +4591,6 @@ public function setIsMailboxSetup($isMailboxSetup) { $this->isMailboxSetup = $isMailboxSetup; } - public function getIsMailboxSetup() { return $this->isMailboxSetup; @@ -4823,7 +4599,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4832,7 +4607,6 @@ public function setLastLoginTime($lastLoginTime) { $this->lastLoginTime = $lastLoginTime; } - public function getLastLoginTime() { return $this->lastLoginTime; @@ -4841,7 +4615,6 @@ public function setName(Google_Service_Directory_UserName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4850,7 +4623,6 @@ public function setNonEditableAliases($nonEditableAliases) { $this->nonEditableAliases = $nonEditableAliases; } - public function getNonEditableAliases() { return $this->nonEditableAliases; @@ -4859,7 +4631,6 @@ public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; } - public function getOrgUnitPath() { return $this->orgUnitPath; @@ -4868,7 +4639,6 @@ public function setOrganizations($organizations) { $this->organizations = $organizations; } - public function getOrganizations() { return $this->organizations; @@ -4877,7 +4647,6 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; @@ -4886,7 +4655,6 @@ public function setPhones($phones) { $this->phones = $phones; } - public function getPhones() { return $this->phones; @@ -4895,7 +4663,6 @@ public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; } - public function getPrimaryEmail() { return $this->primaryEmail; @@ -4904,7 +4671,6 @@ public function setRelations($relations) { $this->relations = $relations; } - public function getRelations() { return $this->relations; @@ -4913,7 +4679,6 @@ public function setSuspended($suspended) { $this->suspended = $suspended; } - public function getSuspended() { return $this->suspended; @@ -4922,7 +4687,6 @@ public function setSuspensionReason($suspensionReason) { $this->suspensionReason = $suspensionReason; } - public function getSuspensionReason() { return $this->suspensionReason; @@ -4931,12 +4695,10 @@ public function setThumbnailPhotoUrl($thumbnailPhotoUrl) { $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; } - public function getThumbnailPhotoUrl() { return $this->thumbnailPhotoUrl; } - } class Google_Service_Directory_UserAddress extends Google_Model @@ -4957,11 +4719,11 @@ class Google_Service_Directory_UserAddress extends Google_Model public $streetAddress; public $type; + public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -4970,7 +4732,6 @@ public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } - public function getCountryCode() { return $this->countryCode; @@ -4979,7 +4740,6 @@ public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -4988,7 +4748,6 @@ public function setExtendedAddress($extendedAddress) { $this->extendedAddress = $extendedAddress; } - public function getExtendedAddress() { return $this->extendedAddress; @@ -4997,7 +4756,6 @@ public function setFormatted($formatted) { $this->formatted = $formatted; } - public function getFormatted() { return $this->formatted; @@ -5006,7 +4764,6 @@ public function setLocality($locality) { $this->locality = $locality; } - public function getLocality() { return $this->locality; @@ -5015,7 +4772,6 @@ public function setPoBox($poBox) { $this->poBox = $poBox; } - public function getPoBox() { return $this->poBox; @@ -5024,7 +4780,6 @@ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } - public function getPostalCode() { return $this->postalCode; @@ -5033,7 +4788,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -5042,7 +4796,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -5051,7 +4804,6 @@ public function setSourceIsStructured($sourceIsStructured) { $this->sourceIsStructured = $sourceIsStructured; } - public function getSourceIsStructured() { return $this->sourceIsStructured; @@ -5060,7 +4812,6 @@ public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; } - public function getStreetAddress() { return $this->streetAddress; @@ -5069,28 +4820,18 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_UserCustomProperties extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Directory_UserCustomSchemas extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Directory_UserEmail extends Google_Model @@ -5102,11 +4843,11 @@ class Google_Service_Directory_UserEmail extends Google_Model public $primary; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -5115,7 +4856,6 @@ public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5124,7 +4864,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -5133,12 +4872,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_UserExternalId extends Google_Model @@ -5149,11 +4886,11 @@ class Google_Service_Directory_UserExternalId extends Google_Model public $type; public $value; + public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5162,7 +4899,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5171,12 +4907,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Directory_UserIm extends Google_Model @@ -5190,11 +4924,11 @@ class Google_Service_Directory_UserIm extends Google_Model public $protocol; public $type; + public function setCustomProtocol($customProtocol) { $this->customProtocol = $customProtocol; } - public function getCustomProtocol() { return $this->customProtocol; @@ -5203,7 +4937,6 @@ public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5212,7 +4945,6 @@ public function setIm($im) { $this->im = $im; } - public function getIm() { return $this->im; @@ -5221,7 +4953,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -5230,7 +4961,6 @@ public function setProtocol($protocol) { $this->protocol = $protocol; } - public function getProtocol() { return $this->protocol; @@ -5239,12 +4969,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_UserMakeAdmin extends Google_Model @@ -5253,16 +4981,15 @@ class Google_Service_Directory_UserMakeAdmin extends Google_Model ); public $status; + public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Directory_UserName extends Google_Model @@ -5273,11 +5000,11 @@ class Google_Service_Directory_UserName extends Google_Model public $fullName; public $givenName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -5286,7 +5013,6 @@ public function setFullName($fullName) { $this->fullName = $fullName; } - public function getFullName() { return $this->fullName; @@ -5295,12 +5021,10 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; } - } class Google_Service_Directory_UserOrganization extends Google_Model @@ -5319,11 +5043,11 @@ class Google_Service_Directory_UserOrganization extends Google_Model public $title; public $type; + public function setCostCenter($costCenter) { $this->costCenter = $costCenter; } - public function getCostCenter() { return $this->costCenter; @@ -5332,7 +5056,6 @@ public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5341,7 +5064,6 @@ public function setDepartment($department) { $this->department = $department; } - public function getDepartment() { return $this->department; @@ -5350,7 +5072,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5359,7 +5080,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -5368,7 +5088,6 @@ public function setLocation($location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -5377,7 +5096,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5386,7 +5104,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -5395,7 +5112,6 @@ public function setSymbol($symbol) { $this->symbol = $symbol; } - public function getSymbol() { return $this->symbol; @@ -5404,7 +5120,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -5413,12 +5128,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Directory_UserPhone extends Google_Model @@ -5430,11 +5143,11 @@ class Google_Service_Directory_UserPhone extends Google_Model public $type; public $value; + public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5443,7 +5156,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -5452,7 +5164,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5461,12 +5172,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Directory_UserPhoto extends Google_Model @@ -5482,11 +5191,11 @@ class Google_Service_Directory_UserPhoto extends Google_Model public $primaryEmail; public $width; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5495,7 +5204,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -5504,7 +5212,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5513,7 +5220,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5522,7 +5228,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -5531,7 +5236,6 @@ public function setPhotoData($photoData) { $this->photoData = $photoData; } - public function getPhotoData() { return $this->photoData; @@ -5540,7 +5244,6 @@ public function setPrimaryEmail($primaryEmail) { $this->primaryEmail = $primaryEmail; } - public function getPrimaryEmail() { return $this->primaryEmail; @@ -5549,12 +5252,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Directory_UserRelation extends Google_Model @@ -5565,11 +5266,11 @@ class Google_Service_Directory_UserRelation extends Google_Model public $type; public $value; + public function setCustomType($customType) { $this->customType = $customType; } - public function getCustomType() { return $this->customType; @@ -5578,7 +5279,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5587,12 +5287,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Directory_UserUndelete extends Google_Model @@ -5601,16 +5299,15 @@ class Google_Service_Directory_UserUndelete extends Google_Model ); public $orgUnitPath; + public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; } - public function getOrgUnitPath() { return $this->orgUnitPath; } - } class Google_Service_Directory_Users extends Google_Collection @@ -5626,11 +5323,11 @@ class Google_Service_Directory_Users extends Google_Collection protected $usersType = 'Google_Service_Directory_User'; protected $usersDataType = 'array'; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5639,7 +5336,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5648,7 +5344,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5657,7 +5352,6 @@ public function setTriggerEvent($triggerEvent) { $this->triggerEvent = $triggerEvent; } - public function getTriggerEvent() { return $this->triggerEvent; @@ -5666,12 +5360,10 @@ public function setUsers($users) { $this->users = $users; } - public function getUsers() { return $this->users; } - } class Google_Service_Directory_VerificationCode extends Google_Model @@ -5683,11 +5375,11 @@ class Google_Service_Directory_VerificationCode extends Google_Model public $userId; public $verificationCode; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5696,7 +5388,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5705,7 +5396,6 @@ public function setUserId($userId) { $this->userId = $userId; } - public function getUserId() { return $this->userId; @@ -5714,12 +5404,10 @@ public function setVerificationCode($verificationCode) { $this->verificationCode = $verificationCode; } - public function getVerificationCode() { return $this->verificationCode; } - } class Google_Service_Directory_VerificationCodes extends Google_Collection @@ -5732,11 +5420,11 @@ class Google_Service_Directory_VerificationCodes extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5745,7 +5433,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5754,10 +5441,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From bb93bf57840b7f6cb92e31550f5028726827da2b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:47 -0800 Subject: [PATCH 0494/1274] Updated Games.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Games.php | 1281 +++++++++++----------------------- 1 file changed, 394 insertions(+), 887 deletions(-) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 6ac8824e5..1d467ca6e 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -19,8 +19,7 @@ * Service definition for Games (v1). * *

- * The API for Google Play Game Services. - *

+ * The API for Google Play Game Services.

* *

* For more information about this service, see the API @@ -32,11 +31,14 @@ class Google_Service_Games extends Google_Service { /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; + const DRIVE_APPDATA = + "https://www.googleapis.com/auth/drive.appdata"; /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = "https://www.googleapis.com/auth/games"; + const GAMES = + "https://www.googleapis.com/auth/games"; /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; public $achievementDefinitions; public $achievements; @@ -1066,14 +1068,12 @@ class Google_Service_Games_AchievementDefinitions_Resource extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of achievement resources to return in the response, used for paging. For any - * response, the actual number of achievement resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of achievement resources to + * return in the response, used for paging. For any response, the actual number + * of achievement resources returned may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_AchievementDefinitionsListResponse */ public function listAchievementDefinitions($optParams = array()) @@ -1099,15 +1099,13 @@ class Google_Service_Games_Achievements_Resource extends Google_Service_Resource * Increments the steps of the achievement with the given ID for the currently * authenticated player. (achievements.increment) * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param int $stepsToIncrement - * The number of steps to increment. + * @param string $achievementId The ID of the achievement used by this method. + * @param int $stepsToIncrement The number of steps to increment. * @param array $optParams Optional parameters. * - * @opt_param string requestId - * A randomly generated numeric ID for each request specified by the caller. This number is used at - * the server to ensure that the request is handled correctly across retries. + * @opt_param string requestId A randomly generated numeric ID for each request + * specified by the caller. This number is used at the server to ensure that the + * request is handled correctly across retries. * @return Google_Service_Games_AchievementIncrementResponse */ public function increment($achievementId, $stepsToIncrement, $optParams = array()) @@ -1116,25 +1114,24 @@ public function increment($achievementId, $stepsToIncrement, $optParams = array( $params = array_merge($params, $optParams); return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse"); } + /** * Lists the progress for all your application's achievements for the currently * authenticated player. (achievements.listAchievements) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string state - * Tells the server to return only achievements with the specified state. If this parameter isn't - * specified, all achievements are returned. - * @opt_param int maxResults - * The maximum number of achievement resources to return in the response, used for paging. For any - * response, the actual number of achievement resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string state Tells the server to return only achievements with the + * specified state. If this parameter isn't specified, all achievements are + * returned. + * @opt_param int maxResults The maximum number of achievement resources to + * return in the response, used for paging. For any response, the actual number + * of achievement resources returned may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_PlayerAchievementListResponse */ public function listAchievements($playerId, $optParams = array()) @@ -1143,12 +1140,12 @@ public function listAchievements($playerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse"); } + /** * Sets the state of the achievement with the given ID to REVEALED for the * currently authenticated player. (achievements.reveal) * - * @param string $achievementId - * The ID of the achievement used by this method. + * @param string $achievementId The ID of the achievement used by this method. * @param array $optParams Optional parameters. * @return Google_Service_Games_AchievementRevealResponse */ @@ -1158,16 +1155,15 @@ public function reveal($achievementId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse"); } + /** * Sets the steps for the currently authenticated player towards unlocking an * achievement. If the steps parameter is less than the current number of steps * that the player already gained for the achievement, the achievement is not * modified. (achievements.setStepsAtLeast) * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param int $steps - * The minimum value to set the steps to. + * @param string $achievementId The ID of the achievement used by this method. + * @param int $steps The minimum value to set the steps to. * @param array $optParams Optional parameters. * @return Google_Service_Games_AchievementSetStepsAtLeastResponse */ @@ -1177,12 +1173,12 @@ public function setStepsAtLeast($achievementId, $steps, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse"); } + /** * Unlocks this achievement for the currently authenticated player. * (achievements.unlock) * - * @param string $achievementId - * The ID of the achievement used by this method. + * @param string $achievementId The ID of the achievement used by this method. * @param array $optParams Optional parameters. * @return Google_Service_Games_AchievementUnlockResponse */ @@ -1192,6 +1188,7 @@ public function unlock($achievementId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse"); } + /** * Updates multiple achievements for the currently authenticated player. * (achievements.updateMultiple) @@ -1224,14 +1221,14 @@ class Google_Service_Games_Applications_Resource extends Google_Service_Resource * application is not available for the specified platformType, the returned * response will not include any instance data. (applications.get) * - * @param string $applicationId - * The application ID from the Google Play developer console. + * @param string $applicationId The application ID from the Google Play + * developer console. * @param array $optParams Optional parameters. * - * @opt_param string platformType - * Restrict application details returned to the specific platform. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string platformType Restrict application details returned to the + * specific platform. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Application */ public function get($applicationId, $optParams = array()) @@ -1240,6 +1237,7 @@ public function get($applicationId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_Application"); } + /** * Indicate that the the currently authenticated user is playing your * application. (applications.played) @@ -1271,13 +1269,12 @@ class Google_Service_Games_Events_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of events to return in the response, used for paging. For any response, the - * actual number of events to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of events to return in the + * response, used for paging. For any response, the actual number of events to + * return may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_PlayerEventListResponse */ public function listByPlayer($optParams = array()) @@ -1286,20 +1283,19 @@ public function listByPlayer($optParams = array()) $params = array_merge($params, $optParams); return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse"); } + /** * Returns a list of the event definitions in this application. * (events.listDefinitions) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of event definitions to return in the response, used for paging. For any - * response, the actual number of event definitions to return may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of event definitions to return + * in the response, used for paging. For any response, the actual number of + * event definitions to return may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_EventDefinitionListResponse */ public function listDefinitions($optParams = array()) @@ -1308,6 +1304,7 @@ public function listDefinitions($optParams = array()) $params = array_merge($params, $optParams); return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); } + /** * Records a batch of changes to the number of times events have occurred for * the currently authenticated user of this application. (events.record) @@ -1315,8 +1312,8 @@ public function listDefinitions($optParams = array()) * @param Google_EventRecordRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_EventUpdateResponse */ public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array()) @@ -1342,12 +1339,11 @@ class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource * Retrieves the metadata of the leaderboard with the given ID. * (leaderboards.get) * - * @param string $leaderboardId - * The ID of the leaderboard. + * @param string $leaderboardId The ID of the leaderboard. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Leaderboard */ public function get($leaderboardId, $optParams = array()) @@ -1356,19 +1352,19 @@ public function get($leaderboardId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_Leaderboard"); } + /** * Lists all the leaderboard metadata for your application. * (leaderboards.listLeaderboards) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of leaderboards to return in the response. For any response, the actual - * number of leaderboards returned may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of leaderboards to return in the + * response. For any response, the actual number of leaderboards returned may be + * less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_LeaderboardListResponse */ public function listLeaderboards($optParams = array()) @@ -1403,24 +1399,23 @@ public function getMetagameConfig($optParams = array()) $params = array_merge($params, $optParams); return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); } + /** * List play data aggregated per category for the player corresponding to * playerId. (metagame.listCategoriesByPlayer) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param string $collection - * The collection of categories for which data will be returned. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. + * @param string $collection The collection of categories for which data will be + * returned. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of category resources to return in the response, used for paging. For any - * response, the actual number of category resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of category resources to return + * in the response, used for paging. For any response, the actual number of + * category resources returned may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_CategoryListResponse */ public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) @@ -1446,12 +1441,12 @@ class Google_Service_Games_Players_Resource extends Google_Service_Resource * Retrieves the Player resource with the given ID. To retrieve the player for * the currently authenticated user, set playerId to me. (players.get) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Player */ public function get($playerId, $optParams = array()) @@ -1460,22 +1455,20 @@ public function get($playerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_Player"); } + /** * Get the collection of players for the currently authenticated user. * (players.listPlayers) * - * @param string $collection - * Collection of players being retrieved + * @param string $collection Collection of players being retrieved * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of player resources to return in the response, used for paging. For any - * response, the actual number of player resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of player resources to return in + * the response, used for paging. For any response, the actual number of player + * resources returned may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_PlayerListResponse */ public function listPlayers($collection, $optParams = array()) @@ -1510,6 +1503,7 @@ public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('remove', array($params)); } + /** * Registers a push token for the current user and application. * (pushtokens.update) @@ -1541,13 +1535,11 @@ class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resou * quest corresponding to questId has been claimed by the currently authorized * user. (questMilestones.claim) * - * @param string $questId - * The ID of the quest. - * @param string $milestoneId - * The ID of the milestone. - * @param string $requestId - * A numeric ID to ensure that the request is handled correctly across retries. Your client - * application must generate this ID randomly. + * @param string $questId The ID of the quest. + * @param string $milestoneId The ID of the milestone. + * @param string $requestId A numeric ID to ensure that the request is handled + * correctly across retries. Your client application must generate this ID + * randomly. * @param array $optParams Optional parameters. */ public function claim($questId, $milestoneId, $requestId, $optParams = array()) @@ -1573,12 +1565,11 @@ class Google_Service_Games_Quests_Resource extends Google_Service_Resource * Indicates that the currently authorized user will participate in the quest. * (quests.accept) * - * @param string $questId - * The ID of the quest. + * @param string $questId The ID of the quest. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Quest */ public function accept($questId, $optParams = array()) @@ -1587,22 +1578,22 @@ public function accept($questId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('accept', array($params), "Google_Service_Games_Quest"); } + /** * Get a list of quests for your application and the currently authenticated * player. (quests.listQuests) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of quest resources to return in the response, used for paging. For any - * response, the actual number of quest resources returned may be less than the specified - * maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50). - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of quest resources to return in + * the response, used for paging. For any response, the actual number of quest + * resources returned may be less than the specified maxResults. Acceptable + * values are 1 to 50, inclusive. (Default: 50). + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_QuestListResponse */ public function listQuests($playerId, $optParams = array()) @@ -1627,14 +1618,11 @@ class Google_Service_Games_Revisions_Resource extends Google_Service_Resource /** * Checks whether the games client is out of date. (revisions.check) * - * @param string $clientRevision - * The revision of the client SDK used by your application. Format: - * [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: - - "ANDROID" - Client - * is running the Android SDK. - - "IOS" - Client is running the iOS SDK. - - "WEB_APP" - Client is - * running as a Web App. + * @param string $clientRevision The revision of the client SDK used by your + * application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of + * PLATFORM_TYPE are: - "ANDROID" - Client is running the Android SDK. - + * "IOS" - Client is running the iOS SDK. - "WEB_APP" - Client is running as a + * Web App. * @param array $optParams Optional parameters. * @return Google_Service_Games_RevisionCheckResponse */ @@ -1664,8 +1652,8 @@ class Google_Service_Games_Rooms_Resource extends Google_Service_Resource * @param Google_RoomCreateRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Room */ public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array()) @@ -1674,16 +1662,16 @@ public function create(Google_Service_Games_RoomCreateRequest $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Games_Room"); } + /** * Decline an invitation to join a room. For internal use by the Games SDK only. * Calling this method directly is unsupported. (rooms.decline) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Room */ public function decline($roomId, $optParams = array()) @@ -1692,12 +1680,12 @@ public function decline($roomId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('decline', array($params), "Google_Service_Games_Room"); } + /** * Dismiss an invitation to join a room. For internal use by the Games SDK only. * Calling this method directly is unsupported. (rooms.dismiss) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param array $optParams Optional parameters. */ public function dismiss($roomId, $optParams = array()) @@ -1706,15 +1694,15 @@ public function dismiss($roomId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('dismiss', array($params)); } + /** * Get the data for a room. (rooms.get) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Room */ public function get($roomId, $optParams = array()) @@ -1723,17 +1711,17 @@ public function get($roomId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_Room"); } + /** * Join a room. For internal use by the Games SDK only. Calling this method * directly is unsupported. (rooms.join) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param Google_RoomJoinRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Room */ public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array()) @@ -1742,17 +1730,17 @@ public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $o $params = array_merge($params, $optParams); return $this->call('join', array($params), "Google_Service_Games_Room"); } + /** * Leave a room. For internal use by the Games SDK only. Calling this method * directly is unsupported. (rooms.leave) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param Google_RoomLeaveRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Room */ public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array()) @@ -1761,18 +1749,18 @@ public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $params = array_merge($params, $optParams); return $this->call('leave', array($params), "Google_Service_Games_Room"); } + /** * Returns invitations to join rooms. (rooms.listRooms) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of rooms to return in the response, used for paging. For any response, the - * actual number of rooms to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of rooms to return in the + * response, used for paging. For any response, the actual number of rooms to + * return may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_RoomList */ public function listRooms($optParams = array()) @@ -1781,18 +1769,18 @@ public function listRooms($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Games_RoomList"); } + /** * Updates sent by a client reporting the status of peers in a room. For * internal use by the Games SDK only. Calling this method directly is * unsupported. (rooms.reportStatus) * - * @param string $roomId - * The ID of the room. + * @param string $roomId The ID of the room. * @param Google_RoomP2PStatuses $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_RoomStatus */ public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array()) @@ -1821,24 +1809,22 @@ class Google_Service_Games_Scores_Resource extends Google_Service_Resource * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; * only one parameter may be set to 'ALL'. (scores.get) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param string $leaderboardId - * The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this - * application. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. + * @param string $leaderboardId The ID of the leaderboard. Can be set to 'ALL' + * to retrieve data for all leaderboards for this application. + * @param string $timeSpan The time span for the scores and ranks you're + * requesting. * @param array $optParams Optional parameters. * - * @opt_param string includeRankType - * The types of ranks to return. If the parameter is omitted, no ranks will be returned. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. + * @opt_param string includeRankType The types of ranks to return. If the + * parameter is omitted, no ranks will be returned. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param int maxResults The maximum number of leaderboard scores to return + * in the response. For any response, the actual number of leaderboard scores + * returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_PlayerLeaderboardScoreListResponse */ public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) @@ -1847,24 +1833,22 @@ public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse"); } + /** * Lists the scores in a leaderboard, starting from the top. (scores.listScores) * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $collection - * The collection of scores you're requesting. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. + * @param string $leaderboardId The ID of the leaderboard. + * @param string $collection The collection of scores you're requesting. + * @param string $timeSpan The time span for the scores and ranks you're + * requesting. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param int maxResults The maximum number of leaderboard scores to return + * in the response. For any response, the actual number of leaderboard scores + * returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_LeaderboardScores */ public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array()) @@ -1873,32 +1857,29 @@ public function listScores($leaderboardId, $collection, $timeSpan, $optParams = $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores"); } + /** * Lists the scores in a leaderboard around (and including) a player's score. * (scores.listWindow) * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $collection - * The collection of scores you're requesting. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. + * @param string $leaderboardId The ID of the leaderboard. + * @param string $collection The collection of scores you're requesting. + * @param string $timeSpan The time span for the scores and ranks you're + * requesting. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool returnTopIfAbsent - * True if the top scores should be returned when the player is not in the leaderboard. Defaults to - * true. - * @opt_param int resultsAbove - * The preferred number of scores to return above the player's score. More scores may be returned - * if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the - * top. Must be less than or equal to maxResults. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param bool returnTopIfAbsent True if the top scores should be returned + * when the player is not in the leaderboard. Defaults to true. + * @opt_param int resultsAbove The preferred number of scores to return above + * the player's score. More scores may be returned if the player is at the + * bottom of the leaderboard; fewer may be returned if the player is at the top. + * Must be less than or equal to maxResults. + * @opt_param int maxResults The maximum number of leaderboard scores to return + * in the response. For any response, the actual number of leaderboard scores + * returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_LeaderboardScores */ public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array()) @@ -1907,24 +1888,24 @@ public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = $params = array_merge($params, $optParams); return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores"); } + /** * Submits a score to the specified leaderboard. (scores.submit) * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $score - * The score you're submitting. The submitted score is ignored if it is worse than a previously - * submitted score, where worse depends on the leaderboard sort order. The meaning of the score - * value depends on the leaderboard format type. For fixed-point, the score represents the raw - * value. For time, the score represents elapsed time in milliseconds. For currency, the score - * represents a value in micro units. + * @param string $leaderboardId The ID of the leaderboard. + * @param string $score The score you're submitting. The submitted score is + * ignored if it is worse than a previously submitted score, where worse depends + * on the leaderboard sort order. The meaning of the score value depends on the + * leaderboard format type. For fixed-point, the score represents the raw value. + * For time, the score represents elapsed time in milliseconds. For currency, + * the score represents a value in micro units. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param string scoreTag - * Additional information about the score you're submitting. Values must contain no more than 64 - * URI-safe characters as defined by section 2.3 of RFC 3986. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param string scoreTag Additional information about the score you're + * submitting. Values must contain no more than 64 URI-safe characters as + * defined by section 2.3 of RFC 3986. * @return Google_Service_Games_PlayerScoreResponse */ public function submit($leaderboardId, $score, $optParams = array()) @@ -1933,14 +1914,15 @@ public function submit($leaderboardId, $score, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse"); } + /** * Submits multiple scores to leaderboards. (scores.submitMultiple) * * @param Google_PlayerScoreSubmissionList $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_PlayerScoreListResponse */ public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array()) @@ -1965,12 +1947,11 @@ class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource /** * Retrieves the metadata for a given snapshot ID. (snapshots.get) * - * @param string $snapshotId - * The ID of the snapshot. + * @param string $snapshotId The ID of the snapshot. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_Snapshot */ public function get($snapshotId, $optParams = array()) @@ -1979,22 +1960,21 @@ public function get($snapshotId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_Snapshot"); } + /** * Retrieves a list of snapshots created by your application for the player * corresponding to the player ID. (snapshots.listSnapshots) * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $playerId A player ID. A value of me may be used in place of + * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of snapshot resources to return in the response, used for paging. For any - * response, the actual number of snapshot resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of snapshot resources to return + * in the response, used for paging. For any response, the actual number of + * snapshot resources returned may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_SnapshotListResponse */ public function listSnapshots($playerId, $optParams = array()) @@ -2019,8 +1999,7 @@ class Google_Service_Games_TurnBasedMatches_Resource extends Google_Service_Reso /** * Cancel a turn-based match. (turnBasedMatches.cancel) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. */ public function cancel($matchId, $optParams = array()) @@ -2029,14 +2008,15 @@ public function cancel($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } + /** * Create a turn-based match. (turnBasedMatches.create) * * @param Google_TurnBasedMatchCreateRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array()) @@ -2045,15 +2025,15 @@ public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBod $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Decline an invitation to play a turn-based match. (turnBasedMatches.decline) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function decline($matchId, $optParams = array()) @@ -2062,13 +2042,13 @@ public function decline($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Dismiss a turn-based match from the match list. The match will no longer show * up in the list and will not generate notifications. * (turnBasedMatches.dismiss) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. */ public function dismiss($matchId, $optParams = array()) @@ -2077,18 +2057,18 @@ public function dismiss($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('dismiss', array($params)); } + /** * Finish a turn-based match. Each player should make this call once, after all * results are in. Only the player whose turn it is may make the first call to * Finish, and can pass in the final match state. (turnBasedMatches.finish) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param Google_TurnBasedMatchResults $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array()) @@ -2097,17 +2077,16 @@ public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $pos $params = array_merge($params, $optParams); return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Get the data for a turn-based match. (turnBasedMatches.get) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * Get match data along with metadata. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param bool includeMatchData Get match data along with metadata. * @return Google_Service_Games_TurnBasedMatch */ public function get($matchId, $optParams = array()) @@ -2116,15 +2095,15 @@ public function get($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Join a turn-based match. (turnBasedMatches.join) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function join($matchId, $optParams = array()) @@ -2133,16 +2112,16 @@ public function join($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Leave a turn-based match when it is not the current player's turn, without * canceling the match. (turnBasedMatches.leave) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function leave($matchId, $optParams = array()) @@ -2151,22 +2130,21 @@ public function leave($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Leave a turn-based match during the current player's turn, without canceling * the match. (turnBasedMatches.leaveTurn) * - * @param string $matchId - * The ID of the match. - * @param int $matchVersion - * The version of the match being updated. + * @param string $matchId The ID of the match. + * @param int $matchVersion The version of the match being updated. * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param string pendingParticipantId - * The ID of another participant who should take their turn next. If not set, the match will wait - * for other player(s) to join via automatching; this is only valid if automatch criteria is set on - * the match with remaining slots for automatched players. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param string pendingParticipantId The ID of another participant who + * should take their turn next. If not set, the match will wait for other + * player(s) to join via automatching; this is only valid if automatch criteria + * is set on the match with remaining slots for automatched players. * @return Google_Service_Games_TurnBasedMatch */ public function leaveTurn($matchId, $matchVersion, $optParams = array()) @@ -2175,27 +2153,27 @@ public function leaveTurn($matchId, $matchVersion, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch"); } + /** * Returns turn-based matches the player is or was involved in. * (turnBasedMatches.listTurnBasedMatches) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxCompletedMatches - * The maximum number of completed or canceled matches to return in the response. If not set, all - * matches returned could be completed or canceled. - * @opt_param int maxResults - * The maximum number of matches to return in the response, used for paging. For any response, the - * actual number of matches to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * True if match data should be returned in the response. Note that not all data will necessarily - * be returned if include_match_data is true; the server may decide to only return data for some of - * the matches to limit download size for the client. The remainder of the data for these matches - * will be retrievable on request. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxCompletedMatches The maximum number of completed or + * canceled matches to return in the response. If not set, all matches returned + * could be completed or canceled. + * @opt_param int maxResults The maximum number of matches to return in the + * response, used for paging. For any response, the actual number of matches to + * return may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param bool includeMatchData True if match data should be returned in the + * response. Note that not all data will necessarily be returned if + * include_match_data is true; the server may decide to only return data for + * some of the matches to limit download size for the client. The remainder of + * the data for these matches will be retrievable on request. * @return Google_Service_Games_TurnBasedMatchList */ public function listTurnBasedMatches($optParams = array()) @@ -2204,21 +2182,21 @@ public function listTurnBasedMatches($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList"); } + /** * Create a rematch of a match that was previously completed, with the same * participants. This can be called by only one player on a match still in their * list; the player must have called Finish first. Returns the newly created * match; it will be the caller's turn. (turnBasedMatches.rematch) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * - * @opt_param string requestId - * A randomly generated numeric ID for each request specified by the caller. This number is used at - * the server to ensure that the request is handled correctly across retries. - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string requestId A randomly generated numeric ID for each request + * specified by the caller. This number is used at the server to ensure that the + * request is handled correctly across retries. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatchRematch */ public function rematch($matchId, $optParams = array()) @@ -2227,6 +2205,7 @@ public function rematch($matchId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch"); } + /** * Returns turn-based matches the player is or was involved in that changed * since the last sync call, with the least recent changes coming first. Matches @@ -2235,21 +2214,20 @@ public function rematch($matchId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxCompletedMatches - * The maximum number of completed or canceled matches to return in the response. If not set, all - * matches returned could be completed or canceled. - * @opt_param int maxResults - * The maximum number of matches to return in the response, used for paging. For any response, the - * actual number of matches to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * True if match data should be returned in the response. Note that not all data will necessarily - * be returned if include_match_data is true; the server may decide to only return data for some of - * the matches to limit download size for the client. The remainder of the data for these matches - * will be retrievable on request. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxCompletedMatches The maximum number of completed or + * canceled matches to return in the response. If not set, all matches returned + * could be completed or canceled. + * @opt_param int maxResults The maximum number of matches to return in the + * response, used for paging. For any response, the actual number of matches to + * return may be less than the specified maxResults. + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param bool includeMatchData True if match data should be returned in the + * response. Note that not all data will necessarily be returned if + * include_match_data is true; the server may decide to only return data for + * some of the matches to limit download size for the client. The remainder of + * the data for these matches will be retrievable on request. * @return Google_Service_Games_TurnBasedMatchSync */ public function sync($optParams = array()) @@ -2258,16 +2236,16 @@ public function sync($optParams = array()) $params = array_merge($params, $optParams); return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync"); } + /** * Commit the results of a player turn. (turnBasedMatches.takeTurn) * - * @param string $matchId - * The ID of the match. + * @param string $matchId The ID of the match. * @param Google_TurnBasedMatchTurn $postBody * @param array $optParams Optional parameters. * - * @opt_param string language - * The preferred language to use for strings returned by this method. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @return Google_Service_Games_TurnBasedMatch */ public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array()) @@ -2299,11 +2277,11 @@ class Google_Service_Games_AchievementDefinition extends Google_Model public $totalSteps; public $unlockedIconUrl; + public function setAchievementType($achievementType) { $this->achievementType = $achievementType; } - public function getAchievementType() { return $this->achievementType; @@ -2312,7 +2290,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2321,7 +2298,6 @@ public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; } - public function getExperiencePoints() { return $this->experiencePoints; @@ -2330,7 +2306,6 @@ public function setFormattedTotalSteps($formattedTotalSteps) { $this->formattedTotalSteps = $formattedTotalSteps; } - public function getFormattedTotalSteps() { return $this->formattedTotalSteps; @@ -2339,7 +2314,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2348,7 +2322,6 @@ public function setInitialState($initialState) { $this->initialState = $initialState; } - public function getInitialState() { return $this->initialState; @@ -2357,7 +2330,6 @@ public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault) { $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault; } - public function getIsRevealedIconUrlDefault() { return $this->isRevealedIconUrlDefault; @@ -2366,7 +2338,6 @@ public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault) { $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault; } - public function getIsUnlockedIconUrlDefault() { return $this->isUnlockedIconUrlDefault; @@ -2375,7 +2346,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2384,7 +2354,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2393,7 +2362,6 @@ public function setRevealedIconUrl($revealedIconUrl) { $this->revealedIconUrl = $revealedIconUrl; } - public function getRevealedIconUrl() { return $this->revealedIconUrl; @@ -2402,7 +2370,6 @@ public function setTotalSteps($totalSteps) { $this->totalSteps = $totalSteps; } - public function getTotalSteps() { return $this->totalSteps; @@ -2411,12 +2378,10 @@ public function setUnlockedIconUrl($unlockedIconUrl) { $this->unlockedIconUrl = $unlockedIconUrl; } - public function getUnlockedIconUrl() { return $this->unlockedIconUrl; } - } class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection @@ -2429,11 +2394,11 @@ class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Col public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2442,7 +2407,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2451,12 +2415,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_AchievementIncrementResponse extends Google_Model @@ -2467,11 +2429,11 @@ class Google_Service_Games_AchievementIncrementResponse extends Google_Model public $kind; public $newlyUnlocked; + public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; } - public function getCurrentSteps() { return $this->currentSteps; @@ -2480,7 +2442,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2489,12 +2450,10 @@ public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; } - public function getNewlyUnlocked() { return $this->newlyUnlocked; } - } class Google_Service_Games_AchievementRevealResponse extends Google_Model @@ -2504,11 +2463,11 @@ class Google_Service_Games_AchievementRevealResponse extends Google_Model public $currentState; public $kind; + public function setCurrentState($currentState) { $this->currentState = $currentState; } - public function getCurrentState() { return $this->currentState; @@ -2517,12 +2476,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model @@ -2533,11 +2490,11 @@ class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Mod public $kind; public $newlyUnlocked; + public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; } - public function getCurrentSteps() { return $this->currentSteps; @@ -2546,7 +2503,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2555,12 +2511,10 @@ public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; } - public function getNewlyUnlocked() { return $this->newlyUnlocked; } - } class Google_Service_Games_AchievementUnlockResponse extends Google_Model @@ -2570,11 +2524,11 @@ class Google_Service_Games_AchievementUnlockResponse extends Google_Model public $kind; public $newlyUnlocked; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2583,12 +2537,10 @@ public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; } - public function getNewlyUnlocked() { return $this->newlyUnlocked; } - } class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection @@ -2600,11 +2552,11 @@ class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Colle protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; protected $updatesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2613,12 +2565,10 @@ public function setUpdates($updates) { $this->updates = $updates; } - public function getUpdates() { return $this->updates; } - } class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection @@ -2630,11 +2580,11 @@ class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Coll protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; protected $updatedAchievementsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2643,12 +2593,10 @@ public function setUpdatedAchievements($updatedAchievements) { $this->updatedAchievements = $updatedAchievements; } - public function getUpdatedAchievements() { return $this->updatedAchievements; } - } class Google_Service_Games_AchievementUpdateRequest extends Google_Model @@ -2663,11 +2611,11 @@ class Google_Service_Games_AchievementUpdateRequest extends Google_Model protected $setStepsAtLeastPayloadDataType = ''; public $updateType; + public function setAchievementId($achievementId) { $this->achievementId = $achievementId; } - public function getAchievementId() { return $this->achievementId; @@ -2676,7 +2624,6 @@ public function setIncrementPayload(Google_Service_Games_GamesAchievementIncreme { $this->incrementPayload = $incrementPayload; } - public function getIncrementPayload() { return $this->incrementPayload; @@ -2685,7 +2632,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2694,7 +2640,6 @@ public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementS { $this->setStepsAtLeastPayload = $setStepsAtLeastPayload; } - public function getSetStepsAtLeastPayload() { return $this->setStepsAtLeastPayload; @@ -2703,12 +2648,10 @@ public function setUpdateType($updateType) { $this->updateType = $updateType; } - public function getUpdateType() { return $this->updateType; } - } class Google_Service_Games_AchievementUpdateResponse extends Google_Model @@ -2722,11 +2665,11 @@ class Google_Service_Games_AchievementUpdateResponse extends Google_Model public $newlyUnlocked; public $updateOccurred; + public function setAchievementId($achievementId) { $this->achievementId = $achievementId; } - public function getAchievementId() { return $this->achievementId; @@ -2735,7 +2678,6 @@ public function setCurrentState($currentState) { $this->currentState = $currentState; } - public function getCurrentState() { return $this->currentState; @@ -2744,7 +2686,6 @@ public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; } - public function getCurrentSteps() { return $this->currentSteps; @@ -2753,7 +2694,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2762,7 +2702,6 @@ public function setNewlyUnlocked($newlyUnlocked) { $this->newlyUnlocked = $newlyUnlocked; } - public function getNewlyUnlocked() { return $this->newlyUnlocked; @@ -2771,12 +2710,10 @@ public function setUpdateOccurred($updateOccurred) { $this->updateOccurred = $updateOccurred; } - public function getUpdateOccurred() { return $this->updateOccurred; } - } class Google_Service_Games_AggregateStats extends Google_Model @@ -2789,11 +2726,11 @@ class Google_Service_Games_AggregateStats extends Google_Model public $min; public $sum; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -2802,7 +2739,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2811,7 +2747,6 @@ public function setMax($max) { $this->max = $max; } - public function getMax() { return $this->max; @@ -2820,7 +2755,6 @@ public function setMin($min) { $this->min = $min; } - public function getMin() { return $this->min; @@ -2829,12 +2763,10 @@ public function setSum($sum) { $this->sum = $sum; } - public function getSum() { return $this->sum; } - } class Google_Service_Games_AnonymousPlayer extends Google_Model @@ -2845,11 +2777,11 @@ class Google_Service_Games_AnonymousPlayer extends Google_Model public $displayName; public $kind; + public function setAvatarImageUrl($avatarImageUrl) { $this->avatarImageUrl = $avatarImageUrl; } - public function getAvatarImageUrl() { return $this->avatarImageUrl; @@ -2858,7 +2790,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -2867,12 +2798,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_Application extends Google_Collection @@ -2899,11 +2828,11 @@ class Google_Service_Games_Application extends Google_Collection public $name; public $themeColor; + public function setAchievementCount($achievementCount) { $this->achievementCount = $achievementCount; } - public function getAchievementCount() { return $this->achievementCount; @@ -2912,7 +2841,6 @@ public function setAssets($assets) { $this->assets = $assets; } - public function getAssets() { return $this->assets; @@ -2921,7 +2849,6 @@ public function setAuthor($author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -2930,7 +2857,6 @@ public function setCategory(Google_Service_Games_ApplicationCategory $category) { $this->category = $category; } - public function getCategory() { return $this->category; @@ -2939,7 +2865,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -2948,7 +2873,6 @@ public function setEnabledFeatures($enabledFeatures) { $this->enabledFeatures = $enabledFeatures; } - public function getEnabledFeatures() { return $this->enabledFeatures; @@ -2957,7 +2881,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -2966,7 +2889,6 @@ public function setInstances($instances) { $this->instances = $instances; } - public function getInstances() { return $this->instances; @@ -2975,7 +2897,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2984,7 +2905,6 @@ public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; } - public function getLastUpdatedTimestamp() { return $this->lastUpdatedTimestamp; @@ -2993,7 +2913,6 @@ public function setLeaderboardCount($leaderboardCount) { $this->leaderboardCount = $leaderboardCount; } - public function getLeaderboardCount() { return $this->leaderboardCount; @@ -3002,7 +2921,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3011,12 +2929,10 @@ public function setThemeColor($themeColor) { $this->themeColor = $themeColor; } - public function getThemeColor() { return $this->themeColor; } - } class Google_Service_Games_ApplicationCategory extends Google_Model @@ -3027,11 +2943,11 @@ class Google_Service_Games_ApplicationCategory extends Google_Model public $primary; public $secondary; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3040,7 +2956,6 @@ public function setPrimary($primary) { $this->primary = $primary; } - public function getPrimary() { return $this->primary; @@ -3049,12 +2964,10 @@ public function setSecondary($secondary) { $this->secondary = $secondary; } - public function getSecondary() { return $this->secondary; } - } class Google_Service_Games_Category extends Google_Model @@ -3065,11 +2978,11 @@ class Google_Service_Games_Category extends Google_Model public $experiencePoints; public $kind; + public function setCategory($category) { $this->category = $category; } - public function getCategory() { return $this->category; @@ -3078,7 +2991,6 @@ public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; } - public function getExperiencePoints() { return $this->experiencePoints; @@ -3087,12 +2999,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_CategoryListResponse extends Google_Collection @@ -3105,11 +3015,11 @@ class Google_Service_Games_CategoryListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3118,7 +3028,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3127,12 +3036,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_EventBatchRecordFailure extends Google_Model @@ -3144,11 +3051,11 @@ class Google_Service_Games_EventBatchRecordFailure extends Google_Model protected $rangeType = 'Google_Service_Games_EventPeriodRange'; protected $rangeDataType = ''; + public function setFailureCause($failureCause) { $this->failureCause = $failureCause; } - public function getFailureCause() { return $this->failureCause; @@ -3157,7 +3064,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3166,12 +3072,10 @@ public function setRange(Google_Service_Games_EventPeriodRange $range) { $this->range = $range; } - public function getRange() { return $this->range; } - } class Google_Service_Games_EventChild extends Google_Model @@ -3181,11 +3085,11 @@ class Google_Service_Games_EventChild extends Google_Model public $childId; public $kind; + public function setChildId($childId) { $this->childId = $childId; } - public function getChildId() { return $this->childId; @@ -3194,12 +3098,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_EventDefinition extends Google_Collection @@ -3217,11 +3119,11 @@ class Google_Service_Games_EventDefinition extends Google_Collection public $kind; public $visibility; + public function setChildEvents($childEvents) { $this->childEvents = $childEvents; } - public function getChildEvents() { return $this->childEvents; @@ -3230,7 +3132,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -3239,7 +3140,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -3248,7 +3148,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3257,7 +3156,6 @@ public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; } - public function getImageUrl() { return $this->imageUrl; @@ -3266,7 +3164,6 @@ public function setIsDefaultImageUrl($isDefaultImageUrl) { $this->isDefaultImageUrl = $isDefaultImageUrl; } - public function getIsDefaultImageUrl() { return $this->isDefaultImageUrl; @@ -3275,7 +3172,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3284,12 +3180,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_Games_EventDefinitionListResponse extends Google_Collection @@ -3302,11 +3196,11 @@ class Google_Service_Games_EventDefinitionListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3315,7 +3209,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3324,12 +3217,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_EventPeriodRange extends Google_Model @@ -3340,11 +3231,11 @@ class Google_Service_Games_EventPeriodRange extends Google_Model public $periodEndMillis; public $periodStartMillis; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3353,7 +3244,6 @@ public function setPeriodEndMillis($periodEndMillis) { $this->periodEndMillis = $periodEndMillis; } - public function getPeriodEndMillis() { return $this->periodEndMillis; @@ -3362,12 +3252,10 @@ public function setPeriodStartMillis($periodStartMillis) { $this->periodStartMillis = $periodStartMillis; } - public function getPeriodStartMillis() { return $this->periodStartMillis; } - } class Google_Service_Games_EventPeriodUpdate extends Google_Collection @@ -3381,11 +3269,11 @@ class Google_Service_Games_EventPeriodUpdate extends Google_Collection protected $updatesType = 'Google_Service_Games_EventUpdateRequest'; protected $updatesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3394,7 +3282,6 @@ public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) { $this->timePeriod = $timePeriod; } - public function getTimePeriod() { return $this->timePeriod; @@ -3403,12 +3290,10 @@ public function setUpdates($updates) { $this->updates = $updates; } - public function getUpdates() { return $this->updates; } - } class Google_Service_Games_EventRecordFailure extends Google_Model @@ -3419,11 +3304,11 @@ class Google_Service_Games_EventRecordFailure extends Google_Model public $failureCause; public $kind; + public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -3432,7 +3317,6 @@ public function setFailureCause($failureCause) { $this->failureCause = $failureCause; } - public function getFailureCause() { return $this->failureCause; @@ -3441,12 +3325,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_EventRecordRequest extends Google_Collection @@ -3460,11 +3342,11 @@ class Google_Service_Games_EventRecordRequest extends Google_Collection protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate'; protected $timePeriodsDataType = 'array'; + public function setCurrentTimeMillis($currentTimeMillis) { $this->currentTimeMillis = $currentTimeMillis; } - public function getCurrentTimeMillis() { return $this->currentTimeMillis; @@ -3473,7 +3355,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3482,7 +3363,6 @@ public function setRequestId($requestId) { $this->requestId = $requestId; } - public function getRequestId() { return $this->requestId; @@ -3491,12 +3371,10 @@ public function setTimePeriods($timePeriods) { $this->timePeriods = $timePeriods; } - public function getTimePeriods() { return $this->timePeriods; } - } class Google_Service_Games_EventUpdateRequest extends Google_Model @@ -3507,11 +3385,11 @@ class Google_Service_Games_EventUpdateRequest extends Google_Model public $kind; public $updateCount; + public function setDefinitionId($definitionId) { $this->definitionId = $definitionId; } - public function getDefinitionId() { return $this->definitionId; @@ -3520,7 +3398,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3529,12 +3406,10 @@ public function setUpdateCount($updateCount) { $this->updateCount = $updateCount; } - public function getUpdateCount() { return $this->updateCount; } - } class Google_Service_Games_EventUpdateResponse extends Google_Collection @@ -3550,11 +3425,11 @@ class Google_Service_Games_EventUpdateResponse extends Google_Collection protected $playerEventsType = 'Google_Service_Games_PlayerEvent'; protected $playerEventsDataType = 'array'; + public function setBatchFailures($batchFailures) { $this->batchFailures = $batchFailures; } - public function getBatchFailures() { return $this->batchFailures; @@ -3563,7 +3438,6 @@ public function setEventFailures($eventFailures) { $this->eventFailures = $eventFailures; } - public function getEventFailures() { return $this->eventFailures; @@ -3572,7 +3446,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3581,12 +3454,10 @@ public function setPlayerEvents($playerEvents) { $this->playerEvents = $playerEvents; } - public function getPlayerEvents() { return $this->playerEvents; } - } class Google_Service_Games_GamesAchievementIncrement extends Google_Model @@ -3597,11 +3468,11 @@ class Google_Service_Games_GamesAchievementIncrement extends Google_Model public $requestId; public $steps; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3610,7 +3481,6 @@ public function setRequestId($requestId) { $this->requestId = $requestId; } - public function getRequestId() { return $this->requestId; @@ -3619,12 +3489,10 @@ public function setSteps($steps) { $this->steps = $steps; } - public function getSteps() { return $this->steps; } - } class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model @@ -3634,11 +3502,11 @@ class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model public $kind; public $steps; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3647,12 +3515,10 @@ public function setSteps($steps) { $this->steps = $steps; } - public function getSteps() { return $this->steps; } - } class Google_Service_Games_ImageAsset extends Google_Model @@ -3665,11 +3531,11 @@ class Google_Service_Games_ImageAsset extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -3678,7 +3544,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3687,7 +3552,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3696,7 +3560,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -3705,12 +3568,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Games_Instance extends Google_Model @@ -3730,11 +3591,11 @@ class Google_Service_Games_Instance extends Google_Model protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; protected $webInstanceDataType = ''; + public function setAcquisitionUri($acquisitionUri) { $this->acquisitionUri = $acquisitionUri; } - public function getAcquisitionUri() { return $this->acquisitionUri; @@ -3743,7 +3604,6 @@ public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $ { $this->androidInstance = $androidInstance; } - public function getAndroidInstance() { return $this->androidInstance; @@ -3752,7 +3612,6 @@ public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInsta { $this->iosInstance = $iosInstance; } - public function getIosInstance() { return $this->iosInstance; @@ -3761,7 +3620,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3770,7 +3628,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3779,7 +3636,6 @@ public function setPlatformType($platformType) { $this->platformType = $platformType; } - public function getPlatformType() { return $this->platformType; @@ -3788,7 +3644,6 @@ public function setRealtimePlay($realtimePlay) { $this->realtimePlay = $realtimePlay; } - public function getRealtimePlay() { return $this->realtimePlay; @@ -3797,7 +3652,6 @@ public function setTurnBasedPlay($turnBasedPlay) { $this->turnBasedPlay = $turnBasedPlay; } - public function getTurnBasedPlay() { return $this->turnBasedPlay; @@ -3806,12 +3660,10 @@ public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInsta { $this->webInstance = $webInstance; } - public function getWebInstance() { return $this->webInstance; } - } class Google_Service_Games_InstanceAndroidDetails extends Google_Model @@ -3823,11 +3675,11 @@ class Google_Service_Games_InstanceAndroidDetails extends Google_Model public $packageName; public $preferred; + public function setEnablePiracyCheck($enablePiracyCheck) { $this->enablePiracyCheck = $enablePiracyCheck; } - public function getEnablePiracyCheck() { return $this->enablePiracyCheck; @@ -3836,7 +3688,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3845,7 +3696,6 @@ public function setPackageName($packageName) { $this->packageName = $packageName; } - public function getPackageName() { return $this->packageName; @@ -3854,12 +3704,10 @@ public function setPreferred($preferred) { $this->preferred = $preferred; } - public function getPreferred() { return $this->preferred; } - } class Google_Service_Games_InstanceIosDetails extends Google_Model @@ -3874,11 +3722,11 @@ class Google_Service_Games_InstanceIosDetails extends Google_Model public $supportIpad; public $supportIphone; + public function setBundleIdentifier($bundleIdentifier) { $this->bundleIdentifier = $bundleIdentifier; } - public function getBundleIdentifier() { return $this->bundleIdentifier; @@ -3887,7 +3735,6 @@ public function setItunesAppId($itunesAppId) { $this->itunesAppId = $itunesAppId; } - public function getItunesAppId() { return $this->itunesAppId; @@ -3896,7 +3743,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3905,7 +3751,6 @@ public function setPreferredForIpad($preferredForIpad) { $this->preferredForIpad = $preferredForIpad; } - public function getPreferredForIpad() { return $this->preferredForIpad; @@ -3914,7 +3759,6 @@ public function setPreferredForIphone($preferredForIphone) { $this->preferredForIphone = $preferredForIphone; } - public function getPreferredForIphone() { return $this->preferredForIphone; @@ -3923,7 +3767,6 @@ public function setSupportIpad($supportIpad) { $this->supportIpad = $supportIpad; } - public function getSupportIpad() { return $this->supportIpad; @@ -3932,12 +3775,10 @@ public function setSupportIphone($supportIphone) { $this->supportIphone = $supportIphone; } - public function getSupportIphone() { return $this->supportIphone; } - } class Google_Service_Games_InstanceWebDetails extends Google_Model @@ -3948,11 +3789,11 @@ class Google_Service_Games_InstanceWebDetails extends Google_Model public $launchUrl; public $preferred; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3961,7 +3802,6 @@ public function setLaunchUrl($launchUrl) { $this->launchUrl = $launchUrl; } - public function getLaunchUrl() { return $this->launchUrl; @@ -3970,12 +3810,10 @@ public function setPreferred($preferred) { $this->preferred = $preferred; } - public function getPreferred() { return $this->preferred; } - } class Google_Service_Games_Leaderboard extends Google_Model @@ -3989,11 +3827,11 @@ class Google_Service_Games_Leaderboard extends Google_Model public $name; public $order; + public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; } - public function getIconUrl() { return $this->iconUrl; @@ -4002,7 +3840,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4011,7 +3848,6 @@ public function setIsIconUrlDefault($isIconUrlDefault) { $this->isIconUrlDefault = $isIconUrlDefault; } - public function getIsIconUrlDefault() { return $this->isIconUrlDefault; @@ -4020,7 +3856,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4029,7 +3864,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4038,12 +3872,10 @@ public function setOrder($order) { $this->order = $order; } - public function getOrder() { return $this->order; } - } class Google_Service_Games_LeaderboardEntry extends Google_Model @@ -4061,11 +3893,11 @@ class Google_Service_Games_LeaderboardEntry extends Google_Model public $timeSpan; public $writeTimestampMillis; + public function setFormattedScore($formattedScore) { $this->formattedScore = $formattedScore; } - public function getFormattedScore() { return $this->formattedScore; @@ -4074,7 +3906,6 @@ public function setFormattedScoreRank($formattedScoreRank) { $this->formattedScoreRank = $formattedScoreRank; } - public function getFormattedScoreRank() { return $this->formattedScoreRank; @@ -4083,7 +3914,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4092,7 +3922,6 @@ public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; } - public function getPlayer() { return $this->player; @@ -4101,7 +3930,6 @@ public function setScoreRank($scoreRank) { $this->scoreRank = $scoreRank; } - public function getScoreRank() { return $this->scoreRank; @@ -4110,7 +3938,6 @@ public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; } - public function getScoreTag() { return $this->scoreTag; @@ -4119,7 +3946,6 @@ public function setScoreValue($scoreValue) { $this->scoreValue = $scoreValue; } - public function getScoreValue() { return $this->scoreValue; @@ -4128,7 +3954,6 @@ public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; } - public function getTimeSpan() { return $this->timeSpan; @@ -4137,12 +3962,10 @@ public function setWriteTimestampMillis($writeTimestampMillis) { $this->writeTimestampMillis = $writeTimestampMillis; } - public function getWriteTimestampMillis() { return $this->writeTimestampMillis; } - } class Google_Service_Games_LeaderboardListResponse extends Google_Collection @@ -4155,11 +3978,11 @@ class Google_Service_Games_LeaderboardListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4168,7 +3991,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4177,12 +3999,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_LeaderboardScoreRank extends Google_Model @@ -4195,11 +4015,11 @@ class Google_Service_Games_LeaderboardScoreRank extends Google_Model public $numScores; public $rank; + public function setFormattedNumScores($formattedNumScores) { $this->formattedNumScores = $formattedNumScores; } - public function getFormattedNumScores() { return $this->formattedNumScores; @@ -4208,7 +4028,6 @@ public function setFormattedRank($formattedRank) { $this->formattedRank = $formattedRank; } - public function getFormattedRank() { return $this->formattedRank; @@ -4217,7 +4036,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4226,7 +4044,6 @@ public function setNumScores($numScores) { $this->numScores = $numScores; } - public function getNumScores() { return $this->numScores; @@ -4235,12 +4052,10 @@ public function setRank($rank) { $this->rank = $rank; } - public function getRank() { return $this->rank; } - } class Google_Service_Games_LeaderboardScores extends Google_Collection @@ -4257,11 +4072,11 @@ class Google_Service_Games_LeaderboardScores extends Google_Collection protected $playerScoreDataType = ''; public $prevPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4270,7 +4085,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4279,7 +4093,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4288,7 +4101,6 @@ public function setNumScores($numScores) { $this->numScores = $numScores; } - public function getNumScores() { return $this->numScores; @@ -4297,7 +4109,6 @@ public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScor { $this->playerScore = $playerScore; } - public function getPlayerScore() { return $this->playerScore; @@ -4306,12 +4117,10 @@ public function setPrevPageToken($prevPageToken) { $this->prevPageToken = $prevPageToken; } - public function getPrevPageToken() { return $this->prevPageToken; } - } class Google_Service_Games_MetagameConfig extends Google_Collection @@ -4324,11 +4133,11 @@ class Google_Service_Games_MetagameConfig extends Google_Collection protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; protected $playerLevelsDataType = 'array'; + public function setCurrentVersion($currentVersion) { $this->currentVersion = $currentVersion; } - public function getCurrentVersion() { return $this->currentVersion; @@ -4337,7 +4146,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4346,12 +4154,10 @@ public function setPlayerLevels($playerLevels) { $this->playerLevels = $playerLevels; } - public function getPlayerLevels() { return $this->playerLevels; } - } class Google_Service_Games_NetworkDiagnostics extends Google_Model @@ -4366,11 +4172,11 @@ class Google_Service_Games_NetworkDiagnostics extends Google_Model public $networkOperatorName; public $registrationLatencyMillis; + public function setAndroidNetworkSubtype($androidNetworkSubtype) { $this->androidNetworkSubtype = $androidNetworkSubtype; } - public function getAndroidNetworkSubtype() { return $this->androidNetworkSubtype; @@ -4379,7 +4185,6 @@ public function setAndroidNetworkType($androidNetworkType) { $this->androidNetworkType = $androidNetworkType; } - public function getAndroidNetworkType() { return $this->androidNetworkType; @@ -4388,7 +4193,6 @@ public function setIosNetworkType($iosNetworkType) { $this->iosNetworkType = $iosNetworkType; } - public function getIosNetworkType() { return $this->iosNetworkType; @@ -4397,7 +4201,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4406,7 +4209,6 @@ public function setNetworkOperatorCode($networkOperatorCode) { $this->networkOperatorCode = $networkOperatorCode; } - public function getNetworkOperatorCode() { return $this->networkOperatorCode; @@ -4415,7 +4217,6 @@ public function setNetworkOperatorName($networkOperatorName) { $this->networkOperatorName = $networkOperatorName; } - public function getNetworkOperatorName() { return $this->networkOperatorName; @@ -4424,12 +4225,10 @@ public function setRegistrationLatencyMillis($registrationLatencyMillis) { $this->registrationLatencyMillis = $registrationLatencyMillis; } - public function getRegistrationLatencyMillis() { return $this->registrationLatencyMillis; } - } class Google_Service_Games_ParticipantResult extends Google_Model @@ -4441,11 +4240,11 @@ class Google_Service_Games_ParticipantResult extends Google_Model public $placing; public $result; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4454,7 +4253,6 @@ public function setParticipantId($participantId) { $this->participantId = $participantId; } - public function getParticipantId() { return $this->participantId; @@ -4463,7 +4261,6 @@ public function setPlacing($placing) { $this->placing = $placing; } - public function getPlacing() { return $this->placing; @@ -4472,12 +4269,10 @@ public function setResult($result) { $this->result = $result; } - public function getResult() { return $this->result; } - } class Google_Service_Games_PeerChannelDiagnostics extends Google_Model @@ -4496,11 +4291,11 @@ class Google_Service_Games_PeerChannelDiagnostics extends Google_Model protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; protected $roundtripLatencyMillisDataType = ''; + public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) { $this->bytesReceived = $bytesReceived; } - public function getBytesReceived() { return $this->bytesReceived; @@ -4509,7 +4304,6 @@ public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) { $this->bytesSent = $bytesSent; } - public function getBytesSent() { return $this->bytesSent; @@ -4518,7 +4312,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4527,7 +4320,6 @@ public function setNumMessagesLost($numMessagesLost) { $this->numMessagesLost = $numMessagesLost; } - public function getNumMessagesLost() { return $this->numMessagesLost; @@ -4536,7 +4328,6 @@ public function setNumMessagesReceived($numMessagesReceived) { $this->numMessagesReceived = $numMessagesReceived; } - public function getNumMessagesReceived() { return $this->numMessagesReceived; @@ -4545,7 +4336,6 @@ public function setNumMessagesSent($numMessagesSent) { $this->numMessagesSent = $numMessagesSent; } - public function getNumMessagesSent() { return $this->numMessagesSent; @@ -4554,7 +4344,6 @@ public function setNumSendFailures($numSendFailures) { $this->numSendFailures = $numSendFailures; } - public function getNumSendFailures() { return $this->numSendFailures; @@ -4563,12 +4352,10 @@ public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $r { $this->roundtripLatencyMillis = $roundtripLatencyMillis; } - public function getRoundtripLatencyMillis() { return $this->roundtripLatencyMillis; } - } class Google_Service_Games_PeerSessionDiagnostics extends Google_Model @@ -4583,11 +4370,11 @@ class Google_Service_Games_PeerSessionDiagnostics extends Google_Model protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; protected $unreliableChannelDataType = ''; + public function setConnectedTimestampMillis($connectedTimestampMillis) { $this->connectedTimestampMillis = $connectedTimestampMillis; } - public function getConnectedTimestampMillis() { return $this->connectedTimestampMillis; @@ -4596,7 +4383,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4605,7 +4391,6 @@ public function setParticipantId($participantId) { $this->participantId = $participantId; } - public function getParticipantId() { return $this->participantId; @@ -4614,7 +4399,6 @@ public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $ { $this->reliableChannel = $reliableChannel; } - public function getReliableChannel() { return $this->reliableChannel; @@ -4623,12 +4407,10 @@ public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics { $this->unreliableChannel = $unreliableChannel; } - public function getUnreliableChannel() { return $this->unreliableChannel; } - } class Google_Service_Games_Played extends Google_Model @@ -4639,11 +4421,11 @@ class Google_Service_Games_Played extends Google_Model public $kind; public $timeMillis; + public function setAutoMatched($autoMatched) { $this->autoMatched = $autoMatched; } - public function getAutoMatched() { return $this->autoMatched; @@ -4652,7 +4434,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4661,12 +4442,10 @@ public function setTimeMillis($timeMillis) { $this->timeMillis = $timeMillis; } - public function getTimeMillis() { return $this->timeMillis; } - } class Google_Service_Games_Player extends Google_Model @@ -4685,11 +4464,11 @@ class Google_Service_Games_Player extends Google_Model public $playerId; public $title; + public function setAvatarImageUrl($avatarImageUrl) { $this->avatarImageUrl = $avatarImageUrl; } - public function getAvatarImageUrl() { return $this->avatarImageUrl; @@ -4698,7 +4477,6 @@ public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -4707,7 +4485,6 @@ public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $exp { $this->experienceInfo = $experienceInfo; } - public function getExperienceInfo() { return $this->experienceInfo; @@ -4716,7 +4493,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4725,7 +4501,6 @@ public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) { $this->lastPlayedWith = $lastPlayedWith; } - public function getLastPlayedWith() { return $this->lastPlayedWith; @@ -4734,7 +4509,6 @@ public function setName(Google_Service_Games_PlayerName $name) { $this->name = $name; } - public function getName() { return $this->name; @@ -4743,7 +4517,6 @@ public function setPlayerId($playerId) { $this->playerId = $playerId; } - public function getPlayerId() { return $this->playerId; @@ -4752,12 +4525,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Games_PlayerAchievement extends Google_Model @@ -4772,11 +4543,11 @@ class Google_Service_Games_PlayerAchievement extends Google_Model public $kind; public $lastUpdatedTimestamp; + public function setAchievementState($achievementState) { $this->achievementState = $achievementState; } - public function getAchievementState() { return $this->achievementState; @@ -4785,7 +4556,6 @@ public function setCurrentSteps($currentSteps) { $this->currentSteps = $currentSteps; } - public function getCurrentSteps() { return $this->currentSteps; @@ -4794,7 +4564,6 @@ public function setExperiencePoints($experiencePoints) { $this->experiencePoints = $experiencePoints; } - public function getExperiencePoints() { return $this->experiencePoints; @@ -4803,7 +4572,6 @@ public function setFormattedCurrentStepsString($formattedCurrentStepsString) { $this->formattedCurrentStepsString = $formattedCurrentStepsString; } - public function getFormattedCurrentStepsString() { return $this->formattedCurrentStepsString; @@ -4812,7 +4580,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4821,7 +4588,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4830,12 +4596,10 @@ public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; } - public function getLastUpdatedTimestamp() { return $this->lastUpdatedTimestamp; } - } class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection @@ -4848,11 +4612,11 @@ class Google_Service_Games_PlayerAchievementListResponse extends Google_Collecti public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4861,7 +4625,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4870,12 +4633,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_PlayerEvent extends Google_Model @@ -4888,11 +4649,11 @@ class Google_Service_Games_PlayerEvent extends Google_Model public $numEvents; public $playerId; + public function setDefinitionId($definitionId) { $this->definitionId = $definitionId; } - public function getDefinitionId() { return $this->definitionId; @@ -4901,7 +4662,6 @@ public function setFormattedNumEvents($formattedNumEvents) { $this->formattedNumEvents = $formattedNumEvents; } - public function getFormattedNumEvents() { return $this->formattedNumEvents; @@ -4910,7 +4670,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4919,7 +4678,6 @@ public function setNumEvents($numEvents) { $this->numEvents = $numEvents; } - public function getNumEvents() { return $this->numEvents; @@ -4928,12 +4686,10 @@ public function setPlayerId($playerId) { $this->playerId = $playerId; } - public function getPlayerId() { return $this->playerId; } - } class Google_Service_Games_PlayerEventListResponse extends Google_Collection @@ -4946,11 +4702,11 @@ class Google_Service_Games_PlayerEventListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4959,7 +4715,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4968,12 +4723,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_PlayerExperienceInfo extends Google_Model @@ -4988,11 +4741,11 @@ class Google_Service_Games_PlayerExperienceInfo extends Google_Model protected $nextLevelType = 'Google_Service_Games_PlayerLevel'; protected $nextLevelDataType = ''; + public function setCurrentExperiencePoints($currentExperiencePoints) { $this->currentExperiencePoints = $currentExperiencePoints; } - public function getCurrentExperiencePoints() { return $this->currentExperiencePoints; @@ -5001,7 +4754,6 @@ public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) { $this->currentLevel = $currentLevel; } - public function getCurrentLevel() { return $this->currentLevel; @@ -5010,7 +4762,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5019,7 +4770,6 @@ public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; } - public function getLastLevelUpTimestampMillis() { return $this->lastLevelUpTimestampMillis; @@ -5028,12 +4778,10 @@ public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) { $this->nextLevel = $nextLevel; } - public function getNextLevel() { return $this->nextLevel; } - } class Google_Service_Games_PlayerLeaderboardScore extends Google_Model @@ -5053,11 +4801,11 @@ class Google_Service_Games_PlayerLeaderboardScore extends Google_Model public $timeSpan; public $writeTimestamp; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5066,7 +4814,6 @@ public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; } - public function getLeaderboardId() { return $this->leaderboardId; @@ -5075,7 +4822,6 @@ public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicR { $this->publicRank = $publicRank; } - public function getPublicRank() { return $this->publicRank; @@ -5084,7 +4830,6 @@ public function setScoreString($scoreString) { $this->scoreString = $scoreString; } - public function getScoreString() { return $this->scoreString; @@ -5093,7 +4838,6 @@ public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; } - public function getScoreTag() { return $this->scoreTag; @@ -5102,7 +4846,6 @@ public function setScoreValue($scoreValue) { $this->scoreValue = $scoreValue; } - public function getScoreValue() { return $this->scoreValue; @@ -5111,7 +4854,6 @@ public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialR { $this->socialRank = $socialRank; } - public function getSocialRank() { return $this->socialRank; @@ -5120,7 +4862,6 @@ public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; } - public function getTimeSpan() { return $this->timeSpan; @@ -5129,12 +4870,10 @@ public function setWriteTimestamp($writeTimestamp) { $this->writeTimestamp = $writeTimestamp; } - public function getWriteTimestamp() { return $this->writeTimestamp; } - } class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection @@ -5149,11 +4888,11 @@ class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Col protected $playerType = 'Google_Service_Games_Player'; protected $playerDataType = ''; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5162,7 +4901,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5171,7 +4909,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5180,12 +4917,10 @@ public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; } - public function getPlayer() { return $this->player; } - } class Google_Service_Games_PlayerLevel extends Google_Model @@ -5197,11 +4932,11 @@ class Google_Service_Games_PlayerLevel extends Google_Model public $maxExperiencePoints; public $minExperiencePoints; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5210,7 +4945,6 @@ public function setLevel($level) { $this->level = $level; } - public function getLevel() { return $this->level; @@ -5219,7 +4953,6 @@ public function setMaxExperiencePoints($maxExperiencePoints) { $this->maxExperiencePoints = $maxExperiencePoints; } - public function getMaxExperiencePoints() { return $this->maxExperiencePoints; @@ -5228,12 +4961,10 @@ public function setMinExperiencePoints($minExperiencePoints) { $this->minExperiencePoints = $minExperiencePoints; } - public function getMinExperiencePoints() { return $this->minExperiencePoints; } - } class Google_Service_Games_PlayerListResponse extends Google_Collection @@ -5246,11 +4977,11 @@ class Google_Service_Games_PlayerListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5259,7 +4990,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5268,12 +4998,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_PlayerName extends Google_Model @@ -5283,11 +5011,11 @@ class Google_Service_Games_PlayerName extends Google_Model public $familyName; public $givenName; + public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -5296,12 +5024,10 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; } - } class Google_Service_Games_PlayerScore extends Google_Model @@ -5314,11 +5040,11 @@ class Google_Service_Games_PlayerScore extends Google_Model public $scoreTag; public $timeSpan; + public function setFormattedScore($formattedScore) { $this->formattedScore = $formattedScore; } - public function getFormattedScore() { return $this->formattedScore; @@ -5327,7 +5053,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5336,7 +5061,6 @@ public function setScore($score) { $this->score = $score; } - public function getScore() { return $this->score; @@ -5345,7 +5069,6 @@ public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; } - public function getScoreTag() { return $this->scoreTag; @@ -5354,12 +5077,10 @@ public function setTimeSpan($timeSpan) { $this->timeSpan = $timeSpan; } - public function getTimeSpan() { return $this->timeSpan; } - } class Google_Service_Games_PlayerScoreListResponse extends Google_Collection @@ -5371,11 +5092,11 @@ class Google_Service_Games_PlayerScoreListResponse extends Google_Collection protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; protected $submittedScoresDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5384,12 +5105,10 @@ public function setSubmittedScores($submittedScores) { $this->submittedScores = $submittedScores; } - public function getSubmittedScores() { return $this->submittedScores; } - } class Google_Service_Games_PlayerScoreResponse extends Google_Collection @@ -5405,11 +5124,11 @@ class Google_Service_Games_PlayerScoreResponse extends Google_Collection protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; protected $unbeatenScoresDataType = 'array'; + public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) { $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; } - public function getBeatenScoreTimeSpans() { return $this->beatenScoreTimeSpans; @@ -5418,7 +5137,6 @@ public function setFormattedScore($formattedScore) { $this->formattedScore = $formattedScore; } - public function getFormattedScore() { return $this->formattedScore; @@ -5427,7 +5145,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5436,7 +5153,6 @@ public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; } - public function getLeaderboardId() { return $this->leaderboardId; @@ -5445,7 +5161,6 @@ public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; } - public function getScoreTag() { return $this->scoreTag; @@ -5454,12 +5169,10 @@ public function setUnbeatenScores($unbeatenScores) { $this->unbeatenScores = $unbeatenScores; } - public function getUnbeatenScores() { return $this->unbeatenScores; } - } class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection @@ -5471,11 +5184,11 @@ class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection protected $scoresType = 'Google_Service_Games_ScoreSubmission'; protected $scoresDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5484,12 +5197,10 @@ public function setScores($scores) { $this->scores = $scores; } - public function getScores() { return $this->scores; } - } class Google_Service_Games_PushToken extends Google_Model @@ -5502,11 +5213,11 @@ class Google_Service_Games_PushToken extends Google_Model public $kind; public $language; + public function setClientRevision($clientRevision) { $this->clientRevision = $clientRevision; } - public function getClientRevision() { return $this->clientRevision; @@ -5515,7 +5226,6 @@ public function setId(Google_Service_Games_PushTokenId $id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5524,7 +5234,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5533,12 +5242,10 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; } - } class Google_Service_Games_PushTokenId extends Google_Model @@ -5549,11 +5256,11 @@ class Google_Service_Games_PushTokenId extends Google_Model protected $iosDataType = ''; public $kind; + public function setIos(Google_Service_Games_PushTokenIdIos $ios) { $this->ios = $ios; } - public function getIos() { return $this->ios; @@ -5562,12 +5269,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_PushTokenIdIos extends Google_Model @@ -5579,11 +5284,11 @@ class Google_Service_Games_PushTokenIdIos extends Google_Model public $apnsDeviceToken; public $apnsEnvironment; + public function setApnsDeviceToken($apnsDeviceToken) { $this->apnsDeviceToken = $apnsDeviceToken; } - public function getApnsDeviceToken() { return $this->apnsDeviceToken; @@ -5592,12 +5297,10 @@ public function setApnsEnvironment($apnsEnvironment) { $this->apnsEnvironment = $apnsEnvironment; } - public function getApnsEnvironment() { return $this->apnsEnvironment; } - } class Google_Service_Games_Quest extends Google_Collection @@ -5623,11 +5326,11 @@ class Google_Service_Games_Quest extends Google_Collection public $startTimestampMillis; public $state; + public function setAcceptedTimestampMillis($acceptedTimestampMillis) { $this->acceptedTimestampMillis = $acceptedTimestampMillis; } - public function getAcceptedTimestampMillis() { return $this->acceptedTimestampMillis; @@ -5636,7 +5339,6 @@ public function setApplicationId($applicationId) { $this->applicationId = $applicationId; } - public function getApplicationId() { return $this->applicationId; @@ -5645,7 +5347,6 @@ public function setBannerUrl($bannerUrl) { $this->bannerUrl = $bannerUrl; } - public function getBannerUrl() { return $this->bannerUrl; @@ -5654,7 +5355,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -5663,7 +5363,6 @@ public function setEndTimestampMillis($endTimestampMillis) { $this->endTimestampMillis = $endTimestampMillis; } - public function getEndTimestampMillis() { return $this->endTimestampMillis; @@ -5672,7 +5371,6 @@ public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; } - public function getIconUrl() { return $this->iconUrl; @@ -5681,7 +5379,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5690,7 +5387,6 @@ public function setIsDefaultBannerUrl($isDefaultBannerUrl) { $this->isDefaultBannerUrl = $isDefaultBannerUrl; } - public function getIsDefaultBannerUrl() { return $this->isDefaultBannerUrl; @@ -5699,7 +5395,6 @@ public function setIsDefaultIconUrl($isDefaultIconUrl) { $this->isDefaultIconUrl = $isDefaultIconUrl; } - public function getIsDefaultIconUrl() { return $this->isDefaultIconUrl; @@ -5708,7 +5403,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5717,7 +5411,6 @@ public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) { $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; } - public function getLastUpdatedTimestampMillis() { return $this->lastUpdatedTimestampMillis; @@ -5726,7 +5419,6 @@ public function setMilestones($milestones) { $this->milestones = $milestones; } - public function getMilestones() { return $this->milestones; @@ -5735,7 +5427,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5744,7 +5435,6 @@ public function setNotifyTimestampMillis($notifyTimestampMillis) { $this->notifyTimestampMillis = $notifyTimestampMillis; } - public function getNotifyTimestampMillis() { return $this->notifyTimestampMillis; @@ -5753,7 +5443,6 @@ public function setStartTimestampMillis($startTimestampMillis) { $this->startTimestampMillis = $startTimestampMillis; } - public function getStartTimestampMillis() { return $this->startTimestampMillis; @@ -5762,12 +5451,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Games_QuestContribution extends Google_Model @@ -5778,11 +5465,11 @@ class Google_Service_Games_QuestContribution extends Google_Model public $kind; public $value; + public function setFormattedValue($formattedValue) { $this->formattedValue = $formattedValue; } - public function getFormattedValue() { return $this->formattedValue; @@ -5791,7 +5478,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5800,12 +5486,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Games_QuestCriterion extends Google_Model @@ -5821,11 +5505,11 @@ class Google_Service_Games_QuestCriterion extends Google_Model protected $initialPlayerProgressDataType = ''; public $kind; + public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution) { $this->completionContribution = $completionContribution; } - public function getCompletionContribution() { return $this->completionContribution; @@ -5834,7 +5518,6 @@ public function setCurrentContribution(Google_Service_Games_QuestContribution $c { $this->currentContribution = $currentContribution; } - public function getCurrentContribution() { return $this->currentContribution; @@ -5843,7 +5526,6 @@ public function setEventId($eventId) { $this->eventId = $eventId; } - public function getEventId() { return $this->eventId; @@ -5852,7 +5534,6 @@ public function setInitialPlayerProgress(Google_Service_Games_QuestContribution { $this->initialPlayerProgress = $initialPlayerProgress; } - public function getInitialPlayerProgress() { return $this->initialPlayerProgress; @@ -5861,12 +5542,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_QuestListResponse extends Google_Collection @@ -5879,11 +5558,11 @@ class Google_Service_Games_QuestListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5892,7 +5571,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5901,12 +5579,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_QuestMilestone extends Google_Collection @@ -5921,11 +5597,11 @@ class Google_Service_Games_QuestMilestone extends Google_Collection public $kind; public $state; + public function setCompletionRewardData($completionRewardData) { $this->completionRewardData = $completionRewardData; } - public function getCompletionRewardData() { return $this->completionRewardData; @@ -5934,7 +5610,6 @@ public function setCriteria($criteria) { $this->criteria = $criteria; } - public function getCriteria() { return $this->criteria; @@ -5943,7 +5618,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5952,7 +5626,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5961,12 +5634,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Games_RevisionCheckResponse extends Google_Model @@ -5977,11 +5648,11 @@ class Google_Service_Games_RevisionCheckResponse extends Google_Model public $kind; public $revisionStatus; + public function setApiVersion($apiVersion) { $this->apiVersion = $apiVersion; } - public function getApiVersion() { return $this->apiVersion; @@ -5990,7 +5661,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5999,12 +5669,10 @@ public function setRevisionStatus($revisionStatus) { $this->revisionStatus = $revisionStatus; } - public function getRevisionStatus() { return $this->revisionStatus; } - } class Google_Service_Games_Room extends Google_Collection @@ -6031,11 +5699,11 @@ class Google_Service_Games_Room extends Google_Collection public $status; public $variant; + public function setApplicationId($applicationId) { $this->applicationId = $applicationId; } - public function getApplicationId() { return $this->applicationId; @@ -6044,7 +5712,6 @@ public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCri { $this->autoMatchingCriteria = $autoMatchingCriteria; } - public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; @@ -6053,7 +5720,6 @@ public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $ { $this->autoMatchingStatus = $autoMatchingStatus; } - public function getAutoMatchingStatus() { return $this->autoMatchingStatus; @@ -6062,7 +5728,6 @@ public function setCreationDetails(Google_Service_Games_RoomModification $creati { $this->creationDetails = $creationDetails; } - public function getCreationDetails() { return $this->creationDetails; @@ -6071,7 +5736,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6080,7 +5744,6 @@ public function setInviterId($inviterId) { $this->inviterId = $inviterId; } - public function getInviterId() { return $this->inviterId; @@ -6089,7 +5752,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6098,7 +5760,6 @@ public function setLastUpdateDetails(Google_Service_Games_RoomModification $last { $this->lastUpdateDetails = $lastUpdateDetails; } - public function getLastUpdateDetails() { return $this->lastUpdateDetails; @@ -6107,7 +5768,6 @@ public function setParticipants($participants) { $this->participants = $participants; } - public function getParticipants() { return $this->participants; @@ -6116,7 +5776,6 @@ public function setRoomId($roomId) { $this->roomId = $roomId; } - public function getRoomId() { return $this->roomId; @@ -6125,7 +5784,6 @@ public function setRoomStatusVersion($roomStatusVersion) { $this->roomStatusVersion = $roomStatusVersion; } - public function getRoomStatusVersion() { return $this->roomStatusVersion; @@ -6134,7 +5792,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -6143,12 +5800,10 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; } - } class Google_Service_Games_RoomAutoMatchStatus extends Google_Model @@ -6158,11 +5813,11 @@ class Google_Service_Games_RoomAutoMatchStatus extends Google_Model public $kind; public $waitEstimateSeconds; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6171,12 +5826,10 @@ public function setWaitEstimateSeconds($waitEstimateSeconds) { $this->waitEstimateSeconds = $waitEstimateSeconds; } - public function getWaitEstimateSeconds() { return $this->waitEstimateSeconds; } - } class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model @@ -6188,11 +5841,11 @@ class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model public $maxAutoMatchingPlayers; public $minAutoMatchingPlayers; + public function setExclusiveBitmask($exclusiveBitmask) { $this->exclusiveBitmask = $exclusiveBitmask; } - public function getExclusiveBitmask() { return $this->exclusiveBitmask; @@ -6201,7 +5854,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6210,7 +5862,6 @@ public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; } - public function getMaxAutoMatchingPlayers() { return $this->maxAutoMatchingPlayers; @@ -6219,12 +5870,10 @@ public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; } - public function getMinAutoMatchingPlayers() { return $this->minAutoMatchingPlayers; } - } class Google_Service_Games_RoomClientAddress extends Google_Model @@ -6234,11 +5883,11 @@ class Google_Service_Games_RoomClientAddress extends Google_Model public $kind; public $xmppAddress; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6247,12 +5896,10 @@ public function setXmppAddress($xmppAddress) { $this->xmppAddress = $xmppAddress; } - public function getXmppAddress() { return $this->xmppAddress; } - } class Google_Service_Games_RoomCreateRequest extends Google_Collection @@ -6272,11 +5919,11 @@ class Google_Service_Games_RoomCreateRequest extends Google_Collection public $requestId; public $variant; + public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) { $this->autoMatchingCriteria = $autoMatchingCriteria; } - public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; @@ -6285,7 +5932,6 @@ public function setCapabilities($capabilities) { $this->capabilities = $capabilities; } - public function getCapabilities() { return $this->capabilities; @@ -6294,7 +5940,6 @@ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientA { $this->clientAddress = $clientAddress; } - public function getClientAddress() { return $this->clientAddress; @@ -6303,7 +5948,6 @@ public function setInvitedPlayerIds($invitedPlayerIds) { $this->invitedPlayerIds = $invitedPlayerIds; } - public function getInvitedPlayerIds() { return $this->invitedPlayerIds; @@ -6312,7 +5956,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6321,7 +5964,6 @@ public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $n { $this->networkDiagnostics = $networkDiagnostics; } - public function getNetworkDiagnostics() { return $this->networkDiagnostics; @@ -6330,7 +5972,6 @@ public function setRequestId($requestId) { $this->requestId = $requestId; } - public function getRequestId() { return $this->requestId; @@ -6339,12 +5980,10 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; } - } class Google_Service_Games_RoomJoinRequest extends Google_Collection @@ -6359,11 +5998,11 @@ class Google_Service_Games_RoomJoinRequest extends Google_Collection protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; protected $networkDiagnosticsDataType = ''; + public function setCapabilities($capabilities) { $this->capabilities = $capabilities; } - public function getCapabilities() { return $this->capabilities; @@ -6372,7 +6011,6 @@ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientA { $this->clientAddress = $clientAddress; } - public function getClientAddress() { return $this->clientAddress; @@ -6381,7 +6019,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6390,12 +6027,10 @@ public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $n { $this->networkDiagnostics = $networkDiagnostics; } - public function getNetworkDiagnostics() { return $this->networkDiagnostics; } - } class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection @@ -6413,11 +6048,11 @@ class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection protected $peerSessionDataType = 'array'; public $socketsUsed; + public function setAndroidNetworkSubtype($androidNetworkSubtype) { $this->androidNetworkSubtype = $androidNetworkSubtype; } - public function getAndroidNetworkSubtype() { return $this->androidNetworkSubtype; @@ -6426,7 +6061,6 @@ public function setAndroidNetworkType($androidNetworkType) { $this->androidNetworkType = $androidNetworkType; } - public function getAndroidNetworkType() { return $this->androidNetworkType; @@ -6435,7 +6069,6 @@ public function setIosNetworkType($iosNetworkType) { $this->iosNetworkType = $iosNetworkType; } - public function getIosNetworkType() { return $this->iosNetworkType; @@ -6444,7 +6077,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6453,7 +6085,6 @@ public function setNetworkOperatorCode($networkOperatorCode) { $this->networkOperatorCode = $networkOperatorCode; } - public function getNetworkOperatorCode() { return $this->networkOperatorCode; @@ -6462,7 +6093,6 @@ public function setNetworkOperatorName($networkOperatorName) { $this->networkOperatorName = $networkOperatorName; } - public function getNetworkOperatorName() { return $this->networkOperatorName; @@ -6471,7 +6101,6 @@ public function setPeerSession($peerSession) { $this->peerSession = $peerSession; } - public function getPeerSession() { return $this->peerSession; @@ -6480,12 +6109,10 @@ public function setSocketsUsed($socketsUsed) { $this->socketsUsed = $socketsUsed; } - public function getSocketsUsed() { return $this->socketsUsed; } - } class Google_Service_Games_RoomLeaveRequest extends Google_Model @@ -6497,11 +6124,11 @@ class Google_Service_Games_RoomLeaveRequest extends Google_Model protected $leaveDiagnosticsDataType = ''; public $reason; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6510,7 +6137,6 @@ public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $l { $this->leaveDiagnostics = $leaveDiagnostics; } - public function getLeaveDiagnostics() { return $this->leaveDiagnostics; @@ -6519,12 +6145,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_Games_RoomList extends Google_Collection @@ -6537,11 +6161,11 @@ class Google_Service_Games_RoomList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -6550,7 +6174,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6559,12 +6182,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_RoomModification extends Google_Model @@ -6575,11 +6196,11 @@ class Google_Service_Games_RoomModification extends Google_Model public $modifiedTimestampMillis; public $participantId; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6588,7 +6209,6 @@ public function setModifiedTimestampMillis($modifiedTimestampMillis) { $this->modifiedTimestampMillis = $modifiedTimestampMillis; } - public function getModifiedTimestampMillis() { return $this->modifiedTimestampMillis; @@ -6597,12 +6217,10 @@ public function setParticipantId($participantId) { $this->participantId = $participantId; } - public function getParticipantId() { return $this->participantId; } - } class Google_Service_Games_RoomP2PStatus extends Google_Model @@ -6618,11 +6236,11 @@ class Google_Service_Games_RoomP2PStatus extends Google_Model public $status; public $unreliableRoundtripLatencyMillis; + public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis) { $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis; } - public function getConnectionSetupLatencyMillis() { return $this->connectionSetupLatencyMillis; @@ -6631,7 +6249,6 @@ public function setError($error) { $this->error = $error; } - public function getError() { return $this->error; @@ -6640,7 +6257,6 @@ public function setErrorReason($errorReason) { $this->errorReason = $errorReason; } - public function getErrorReason() { return $this->errorReason; @@ -6649,7 +6265,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6658,7 +6273,6 @@ public function setParticipantId($participantId) { $this->participantId = $participantId; } - public function getParticipantId() { return $this->participantId; @@ -6667,7 +6281,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -6676,12 +6289,10 @@ public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyM { $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis; } - public function getUnreliableRoundtripLatencyMillis() { return $this->unreliableRoundtripLatencyMillis; } - } class Google_Service_Games_RoomP2PStatuses extends Google_Collection @@ -6693,11 +6304,11 @@ class Google_Service_Games_RoomP2PStatuses extends Google_Collection protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; protected $updatesDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6706,12 +6317,10 @@ public function setUpdates($updates) { $this->updates = $updates; } - public function getUpdates() { return $this->updates; } - } class Google_Service_Games_RoomParticipant extends Google_Collection @@ -6733,11 +6342,11 @@ class Google_Service_Games_RoomParticipant extends Google_Collection protected $playerDataType = ''; public $status; + public function setAutoMatched($autoMatched) { $this->autoMatched = $autoMatched; } - public function getAutoMatched() { return $this->autoMatched; @@ -6746,7 +6355,6 @@ public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoM { $this->autoMatchedPlayer = $autoMatchedPlayer; } - public function getAutoMatchedPlayer() { return $this->autoMatchedPlayer; @@ -6755,7 +6363,6 @@ public function setCapabilities($capabilities) { $this->capabilities = $capabilities; } - public function getCapabilities() { return $this->capabilities; @@ -6764,7 +6371,6 @@ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientA { $this->clientAddress = $clientAddress; } - public function getClientAddress() { return $this->clientAddress; @@ -6773,7 +6379,6 @@ public function setConnected($connected) { $this->connected = $connected; } - public function getConnected() { return $this->connected; @@ -6782,7 +6387,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -6791,7 +6395,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6800,7 +6403,6 @@ public function setLeaveReason($leaveReason) { $this->leaveReason = $leaveReason; } - public function getLeaveReason() { return $this->leaveReason; @@ -6809,7 +6411,6 @@ public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; } - public function getPlayer() { return $this->player; @@ -6818,12 +6419,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Games_RoomStatus extends Google_Collection @@ -6840,11 +6439,11 @@ class Google_Service_Games_RoomStatus extends Google_Collection public $status; public $statusVersion; + public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) { $this->autoMatchingStatus = $autoMatchingStatus; } - public function getAutoMatchingStatus() { return $this->autoMatchingStatus; @@ -6853,7 +6452,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6862,7 +6460,6 @@ public function setParticipants($participants) { $this->participants = $participants; } - public function getParticipants() { return $this->participants; @@ -6871,7 +6468,6 @@ public function setRoomId($roomId) { $this->roomId = $roomId; } - public function getRoomId() { return $this->roomId; @@ -6880,7 +6476,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -6889,12 +6484,10 @@ public function setStatusVersion($statusVersion) { $this->statusVersion = $statusVersion; } - public function getStatusVersion() { return $this->statusVersion; } - } class Google_Service_Games_ScoreSubmission extends Google_Model @@ -6907,11 +6500,11 @@ class Google_Service_Games_ScoreSubmission extends Google_Model public $scoreTag; public $signature; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -6920,7 +6513,6 @@ public function setLeaderboardId($leaderboardId) { $this->leaderboardId = $leaderboardId; } - public function getLeaderboardId() { return $this->leaderboardId; @@ -6929,7 +6521,6 @@ public function setScore($score) { $this->score = $score; } - public function getScore() { return $this->score; @@ -6938,7 +6529,6 @@ public function setScoreTag($scoreTag) { $this->scoreTag = $scoreTag; } - public function getScoreTag() { return $this->scoreTag; @@ -6947,12 +6537,10 @@ public function setSignature($signature) { $this->signature = $signature; } - public function getSignature() { return $this->signature; } - } class Google_Service_Games_Snapshot extends Google_Model @@ -6972,11 +6560,11 @@ class Google_Service_Games_Snapshot extends Google_Model public $type; public $uniqueName; + public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage) { $this->coverImage = $coverImage; } - public function getCoverImage() { return $this->coverImage; @@ -6985,7 +6573,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -6994,7 +6581,6 @@ public function setDriveId($driveId) { $this->driveId = $driveId; } - public function getDriveId() { return $this->driveId; @@ -7003,7 +6589,6 @@ public function setDurationMillis($durationMillis) { $this->durationMillis = $durationMillis; } - public function getDurationMillis() { return $this->durationMillis; @@ -7012,7 +6597,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7021,7 +6605,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7030,7 +6613,6 @@ public function setLastModifiedMillis($lastModifiedMillis) { $this->lastModifiedMillis = $lastModifiedMillis; } - public function getLastModifiedMillis() { return $this->lastModifiedMillis; @@ -7039,7 +6621,6 @@ public function setProgressValue($progressValue) { $this->progressValue = $progressValue; } - public function getProgressValue() { return $this->progressValue; @@ -7048,7 +6629,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -7057,7 +6637,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -7066,12 +6645,10 @@ public function setUniqueName($uniqueName) { $this->uniqueName = $uniqueName; } - public function getUniqueName() { return $this->uniqueName; } - } class Google_Service_Games_SnapshotImage extends Google_Model @@ -7085,11 +6662,11 @@ class Google_Service_Games_SnapshotImage extends Google_Model public $url; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -7098,7 +6675,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7107,7 +6683,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -7116,7 +6691,6 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; @@ -7125,12 +6699,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Games_SnapshotListResponse extends Google_Collection @@ -7143,11 +6715,11 @@ class Google_Service_Games_SnapshotListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7156,7 +6728,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7165,12 +6736,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model @@ -7182,11 +6751,11 @@ class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model public $maxAutoMatchingPlayers; public $minAutoMatchingPlayers; + public function setExclusiveBitmask($exclusiveBitmask) { $this->exclusiveBitmask = $exclusiveBitmask; } - public function getExclusiveBitmask() { return $this->exclusiveBitmask; @@ -7195,7 +6764,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7204,7 +6772,6 @@ public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; } - public function getMaxAutoMatchingPlayers() { return $this->maxAutoMatchingPlayers; @@ -7213,12 +6780,10 @@ public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; } - public function getMinAutoMatchingPlayers() { return $this->minAutoMatchingPlayers; } - } class Google_Service_Games_TurnBasedMatch extends Google_Collection @@ -7254,11 +6819,11 @@ class Google_Service_Games_TurnBasedMatch extends Google_Collection public $variant; public $withParticipantId; + public function setApplicationId($applicationId) { $this->applicationId = $applicationId; } - public function getApplicationId() { return $this->applicationId; @@ -7267,7 +6832,6 @@ public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchi { $this->autoMatchingCriteria = $autoMatchingCriteria; } - public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; @@ -7276,7 +6840,6 @@ public function setCreationDetails(Google_Service_Games_TurnBasedMatchModificati { $this->creationDetails = $creationDetails; } - public function getCreationDetails() { return $this->creationDetails; @@ -7285,7 +6848,6 @@ public function setData(Google_Service_Games_TurnBasedMatchData $data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7294,7 +6856,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -7303,7 +6864,6 @@ public function setInviterId($inviterId) { $this->inviterId = $inviterId; } - public function getInviterId() { return $this->inviterId; @@ -7312,7 +6872,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7321,7 +6880,6 @@ public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModifica { $this->lastUpdateDetails = $lastUpdateDetails; } - public function getLastUpdateDetails() { return $this->lastUpdateDetails; @@ -7330,7 +6888,6 @@ public function setMatchId($matchId) { $this->matchId = $matchId; } - public function getMatchId() { return $this->matchId; @@ -7339,7 +6896,6 @@ public function setMatchNumber($matchNumber) { $this->matchNumber = $matchNumber; } - public function getMatchNumber() { return $this->matchNumber; @@ -7348,7 +6904,6 @@ public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; } - public function getMatchVersion() { return $this->matchVersion; @@ -7357,7 +6912,6 @@ public function setParticipants($participants) { $this->participants = $participants; } - public function getParticipants() { return $this->participants; @@ -7366,7 +6920,6 @@ public function setPendingParticipantId($pendingParticipantId) { $this->pendingParticipantId = $pendingParticipantId; } - public function getPendingParticipantId() { return $this->pendingParticipantId; @@ -7375,7 +6928,6 @@ public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $pr { $this->previousMatchData = $previousMatchData; } - public function getPreviousMatchData() { return $this->previousMatchData; @@ -7384,7 +6936,6 @@ public function setRematchId($rematchId) { $this->rematchId = $rematchId; } - public function getRematchId() { return $this->rematchId; @@ -7393,7 +6944,6 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; @@ -7402,7 +6952,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -7411,7 +6960,6 @@ public function setUserMatchStatus($userMatchStatus) { $this->userMatchStatus = $userMatchStatus; } - public function getUserMatchStatus() { return $this->userMatchStatus; @@ -7420,7 +6968,6 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; @@ -7429,12 +6976,10 @@ public function setWithParticipantId($withParticipantId) { $this->withParticipantId = $withParticipantId; } - public function getWithParticipantId() { return $this->withParticipantId; } - } class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection @@ -7449,11 +6994,11 @@ class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection public $requestId; public $variant; + public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) { $this->autoMatchingCriteria = $autoMatchingCriteria; } - public function getAutoMatchingCriteria() { return $this->autoMatchingCriteria; @@ -7462,7 +7007,6 @@ public function setInvitedPlayerIds($invitedPlayerIds) { $this->invitedPlayerIds = $invitedPlayerIds; } - public function getInvitedPlayerIds() { return $this->invitedPlayerIds; @@ -7471,7 +7015,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7480,7 +7023,6 @@ public function setRequestId($requestId) { $this->requestId = $requestId; } - public function getRequestId() { return $this->requestId; @@ -7489,12 +7031,10 @@ public function setVariant($variant) { $this->variant = $variant; } - public function getVariant() { return $this->variant; } - } class Google_Service_Games_TurnBasedMatchData extends Google_Model @@ -7505,11 +7045,11 @@ class Google_Service_Games_TurnBasedMatchData extends Google_Model public $dataAvailable; public $kind; + public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7518,7 +7058,6 @@ public function setDataAvailable($dataAvailable) { $this->dataAvailable = $dataAvailable; } - public function getDataAvailable() { return $this->dataAvailable; @@ -7527,12 +7066,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model @@ -7542,11 +7079,11 @@ class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model public $data; public $kind; + public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7555,12 +7092,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Games_TurnBasedMatchList extends Google_Collection @@ -7573,11 +7108,11 @@ class Google_Service_Games_TurnBasedMatchList extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7586,7 +7121,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7595,12 +7129,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_TurnBasedMatchModification extends Google_Model @@ -7611,11 +7143,11 @@ class Google_Service_Games_TurnBasedMatchModification extends Google_Model public $modifiedTimestampMillis; public $participantId; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7624,7 +7156,6 @@ public function setModifiedTimestampMillis($modifiedTimestampMillis) { $this->modifiedTimestampMillis = $modifiedTimestampMillis; } - public function getModifiedTimestampMillis() { return $this->modifiedTimestampMillis; @@ -7633,12 +7164,10 @@ public function setParticipantId($participantId) { $this->participantId = $participantId; } - public function getParticipantId() { return $this->participantId; } - } class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model @@ -7654,11 +7183,11 @@ class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model protected $playerDataType = ''; public $status; + public function setAutoMatched($autoMatched) { $this->autoMatched = $autoMatched; } - public function getAutoMatched() { return $this->autoMatched; @@ -7667,7 +7196,6 @@ public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoM { $this->autoMatchedPlayer = $autoMatchedPlayer; } - public function getAutoMatchedPlayer() { return $this->autoMatchedPlayer; @@ -7676,7 +7204,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -7685,7 +7212,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7694,7 +7220,6 @@ public function setPlayer(Google_Service_Games_Player $player) { $this->player = $player; } - public function getPlayer() { return $this->player; @@ -7703,12 +7228,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Games_TurnBasedMatchRematch extends Google_Model @@ -7721,11 +7244,11 @@ class Google_Service_Games_TurnBasedMatchRematch extends Google_Model protected $rematchType = 'Google_Service_Games_TurnBasedMatch'; protected $rematchDataType = ''; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7734,7 +7257,6 @@ public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMa { $this->previousMatch = $previousMatch; } - public function getPreviousMatch() { return $this->previousMatch; @@ -7743,12 +7265,10 @@ public function setRematch(Google_Service_Games_TurnBasedMatch $rematch) { $this->rematch = $rematch; } - public function getRematch() { return $this->rematch; } - } class Google_Service_Games_TurnBasedMatchResults extends Google_Collection @@ -7763,11 +7283,11 @@ class Google_Service_Games_TurnBasedMatchResults extends Google_Collection protected $resultsType = 'Google_Service_Games_ParticipantResult'; protected $resultsDataType = 'array'; + public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7776,7 +7296,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7785,7 +7304,6 @@ public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; } - public function getMatchVersion() { return $this->matchVersion; @@ -7794,12 +7312,10 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; } - } class Google_Service_Games_TurnBasedMatchSync extends Google_Collection @@ -7813,11 +7329,11 @@ class Google_Service_Games_TurnBasedMatchSync extends Google_Collection public $moreAvailable; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -7826,7 +7342,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7835,7 +7350,6 @@ public function setMoreAvailable($moreAvailable) { $this->moreAvailable = $moreAvailable; } - public function getMoreAvailable() { return $this->moreAvailable; @@ -7844,12 +7358,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection @@ -7865,11 +7377,11 @@ class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection protected $resultsType = 'Google_Service_Games_ParticipantResult'; protected $resultsDataType = 'array'; + public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) { $this->data = $data; } - public function getData() { return $this->data; @@ -7878,7 +7390,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -7887,7 +7398,6 @@ public function setMatchVersion($matchVersion) { $this->matchVersion = $matchVersion; } - public function getMatchVersion() { return $this->matchVersion; @@ -7896,7 +7406,6 @@ public function setPendingParticipantId($pendingParticipantId) { $this->pendingParticipantId = $pendingParticipantId; } - public function getPendingParticipantId() { return $this->pendingParticipantId; @@ -7905,10 +7414,8 @@ public function setResults($results) { $this->results = $results; } - public function getResults() { return $this->results; } - } From d0f4935c357cee00669895b7a875e403f23f1d45 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:47 -0800 Subject: [PATCH 0495/1274] Updated Spectrum.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Spectrum.php | 210 ++++++-------------------------- 1 file changed, 39 insertions(+), 171 deletions(-) diff --git a/src/Google/Service/Spectrum.php b/src/Google/Service/Spectrum.php index 09f239084..24fcd2460 100644 --- a/src/Google/Service/Spectrum.php +++ b/src/Google/Service/Spectrum.php @@ -19,8 +19,7 @@ * Service definition for Spectrum (v1explorer). * *

- * API for spectrum-management functions. - *

+ * API for spectrum-management functions.

* *

* For more information about this service, see the API @@ -112,6 +111,7 @@ public function getSpectrum(Google_Service_Spectrum_PawsGetSpectrumRequest $post $params = array_merge($params, $optParams); return $this->call('getSpectrum', array($params), "Google_Service_Spectrum_PawsGetSpectrumResponse"); } + /** * The Google Spectrum Database does not support batch requests, so this method * always yields an UNIMPLEMENTED error. (paws.getSpectrumBatch) @@ -126,6 +126,7 @@ public function getSpectrumBatch(Google_Service_Spectrum_PawsGetSpectrumBatchReq $params = array_merge($params, $optParams); return $this->call('getSpectrumBatch', array($params), "Google_Service_Spectrum_PawsGetSpectrumBatchResponse"); } + /** * Initializes the connection between a white space device and the database. * (paws.init) @@ -140,6 +141,7 @@ public function init(Google_Service_Spectrum_PawsInitRequest $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('init', array($params), "Google_Service_Spectrum_PawsInitResponse"); } + /** * Notifies the database that the device has selected certain frequency ranges * for transmission. Only to be invoked when required by the regulator. The @@ -157,6 +159,7 @@ public function notifySpectrumUse(Google_Service_Spectrum_PawsNotifySpectrumUseR $params = array_merge($params, $optParams); return $this->call('notifySpectrumUse', array($params), "Google_Service_Spectrum_PawsNotifySpectrumUseResponse"); } + /** * The Google Spectrum Database implements registration in the getSpectrum * method. As such this always returns an UNIMPLEMENTED error. (paws.register) @@ -171,6 +174,7 @@ public function register(Google_Service_Spectrum_PawsRegisterRequest $postBody, $params = array_merge($params, $optParams); return $this->call('register', array($params), "Google_Service_Spectrum_PawsRegisterResponse"); } + /** * Validates a device for white space use in accordance with regulatory rules. * The Google Spectrum Database does not support master/slave configurations, so @@ -199,11 +203,11 @@ class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model public $heightType; public $heightUncertainty; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -212,7 +216,6 @@ public function setHeightType($heightType) { $this->heightType = $heightType; } - public function getHeightType() { return $this->heightType; @@ -221,12 +224,10 @@ public function setHeightUncertainty($heightUncertainty) { $this->heightUncertainty = $heightUncertainty; } - public function getHeightUncertainty() { return $this->heightUncertainty; } - } class Google_Service_Spectrum_DatabaseSpec extends Google_Model @@ -236,11 +237,11 @@ class Google_Service_Spectrum_DatabaseSpec extends Google_Model public $name; public $uri; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -249,12 +250,10 @@ public function setUri($uri) { $this->uri = $uri; } - public function getUri() { return $this->uri; } - } class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection @@ -265,16 +264,15 @@ class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; protected $databasesDataType = 'array'; + public function setDatabases($databases) { $this->databases = $databases; } - public function getDatabases() { return $this->databases; } - } class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection @@ -285,16 +283,15 @@ class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; + public function setFrequencyRanges($frequencyRanges) { $this->frequencyRanges = $frequencyRanges; } - public function getFrequencyRanges() { return $this->frequencyRanges; } - } class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection @@ -313,11 +310,11 @@ class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection public $rulesetIds; public $serialNumber; + public function setEtsiEnDeviceCategory($etsiEnDeviceCategory) { $this->etsiEnDeviceCategory = $etsiEnDeviceCategory; } - public function getEtsiEnDeviceCategory() { return $this->etsiEnDeviceCategory; @@ -326,7 +323,6 @@ public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass) { $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass; } - public function getEtsiEnDeviceEmissionsClass() { return $this->etsiEnDeviceEmissionsClass; @@ -335,7 +331,6 @@ public function setEtsiEnDeviceType($etsiEnDeviceType) { $this->etsiEnDeviceType = $etsiEnDeviceType; } - public function getEtsiEnDeviceType() { return $this->etsiEnDeviceType; @@ -344,7 +339,6 @@ public function setEtsiEnTechnologyId($etsiEnTechnologyId) { $this->etsiEnTechnologyId = $etsiEnTechnologyId; } - public function getEtsiEnTechnologyId() { return $this->etsiEnTechnologyId; @@ -353,7 +347,6 @@ public function setFccId($fccId) { $this->fccId = $fccId; } - public function getFccId() { return $this->fccId; @@ -362,7 +355,6 @@ public function setFccTvbdDeviceType($fccTvbdDeviceType) { $this->fccTvbdDeviceType = $fccTvbdDeviceType; } - public function getFccTvbdDeviceType() { return $this->fccTvbdDeviceType; @@ -371,7 +363,6 @@ public function setManufacturerId($manufacturerId) { $this->manufacturerId = $manufacturerId; } - public function getManufacturerId() { return $this->manufacturerId; @@ -380,7 +371,6 @@ public function setModelId($modelId) { $this->modelId = $modelId; } - public function getModelId() { return $this->modelId; @@ -389,7 +379,6 @@ public function setRulesetIds($rulesetIds) { $this->rulesetIds = $rulesetIds; } - public function getRulesetIds() { return $this->rulesetIds; @@ -398,12 +387,10 @@ public function setSerialNumber($serialNumber) { $this->serialNumber = $serialNumber; } - public function getSerialNumber() { return $this->serialNumber; } - } class Google_Service_Spectrum_DeviceOwner extends Google_Model @@ -415,11 +402,11 @@ class Google_Service_Spectrum_DeviceOwner extends Google_Model protected $ownerType = 'Google_Service_Spectrum_Vcard'; protected $ownerDataType = ''; + public function setOperator(Google_Service_Spectrum_Vcard $operator) { $this->operator = $operator; } - public function getOperator() { return $this->operator; @@ -428,12 +415,10 @@ public function setOwner(Google_Service_Spectrum_Vcard $owner) { $this->owner = $owner; } - public function getOwner() { return $this->owner; } - } class Google_Service_Spectrum_DeviceValidity extends Google_Model @@ -445,11 +430,11 @@ class Google_Service_Spectrum_DeviceValidity extends Google_Model public $isValid; public $reason; + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -458,7 +443,6 @@ public function setIsValid($isValid) { $this->isValid = $isValid; } - public function getIsValid() { return $this->isValid; @@ -467,12 +451,10 @@ public function setReason($reason) { $this->reason = $reason; } - public function getReason() { return $this->reason; } - } class Google_Service_Spectrum_EventTime extends Google_Model @@ -482,11 +464,11 @@ class Google_Service_Spectrum_EventTime extends Google_Model public $startTime; public $stopTime; + public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -495,12 +477,10 @@ public function setStopTime($stopTime) { $this->stopTime = $stopTime; } - public function getStopTime() { return $this->stopTime; } - } class Google_Service_Spectrum_FrequencyRange extends Google_Model @@ -512,11 +492,11 @@ class Google_Service_Spectrum_FrequencyRange extends Google_Model public $startHz; public $stopHz; + public function setChannelId($channelId) { $this->channelId = $channelId; } - public function getChannelId() { return $this->channelId; @@ -525,7 +505,6 @@ public function setMaxPowerDBm($maxPowerDBm) { $this->maxPowerDBm = $maxPowerDBm; } - public function getMaxPowerDBm() { return $this->maxPowerDBm; @@ -534,7 +513,6 @@ public function setStartHz($startHz) { $this->startHz = $startHz; } - public function getStartHz() { return $this->startHz; @@ -543,12 +521,10 @@ public function setStopHz($stopHz) { $this->stopHz = $stopHz; } - public function getStopHz() { return $this->stopHz; } - } class Google_Service_Spectrum_GeoLocation extends Google_Model @@ -561,11 +537,11 @@ class Google_Service_Spectrum_GeoLocation extends Google_Model protected $regionType = 'Google_Service_Spectrum_GeoLocationPolygon'; protected $regionDataType = ''; + public function setConfidence($confidence) { $this->confidence = $confidence; } - public function getConfidence() { return $this->confidence; @@ -574,7 +550,6 @@ public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point) { $this->point = $point; } - public function getPoint() { return $this->point; @@ -583,12 +558,10 @@ public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region) { $this->region = $region; } - public function getRegion() { return $this->region; } - } class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model @@ -601,11 +574,11 @@ class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model public $semiMajorAxis; public $semiMinorAxis; + public function setCenter(Google_Service_Spectrum_GeoLocationPoint $center) { $this->center = $center; } - public function getCenter() { return $this->center; @@ -614,7 +587,6 @@ public function setOrientation($orientation) { $this->orientation = $orientation; } - public function getOrientation() { return $this->orientation; @@ -623,7 +595,6 @@ public function setSemiMajorAxis($semiMajorAxis) { $this->semiMajorAxis = $semiMajorAxis; } - public function getSemiMajorAxis() { return $this->semiMajorAxis; @@ -632,12 +603,10 @@ public function setSemiMinorAxis($semiMinorAxis) { $this->semiMinorAxis = $semiMinorAxis; } - public function getSemiMinorAxis() { return $this->semiMinorAxis; } - } class Google_Service_Spectrum_GeoLocationPoint extends Google_Model @@ -647,11 +616,11 @@ class Google_Service_Spectrum_GeoLocationPoint extends Google_Model public $latitude; public $longitude; + public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -660,12 +629,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection @@ -676,16 +643,15 @@ class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; protected $exteriorDataType = 'array'; + public function setExterior($exterior) { $this->exterior = $exterior; } - public function getExterior() { return $this->exterior; } - } class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection @@ -698,11 +664,11 @@ class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; protected $spectrumSchedulesDataType = 'array'; + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -711,12 +677,10 @@ public function setSpectrumSchedules($spectrumSchedules) { $this->spectrumSchedules = $spectrumSchedules; } - public function getSpectrumSchedules() { return $this->spectrumSchedules; } - } class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection @@ -740,11 +704,11 @@ class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collect public $type; public $version; + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { $this->antenna = $antenna; } - public function getAntenna() { return $this->antenna; @@ -753,7 +717,6 @@ public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capa { $this->capabilities = $capabilities; } - public function getCapabilities() { return $this->capabilities; @@ -762,7 +725,6 @@ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDe { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -771,7 +733,6 @@ public function setLocations($locations) { $this->locations = $locations; } - public function getLocations() { return $this->locations; @@ -780,7 +741,6 @@ public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $ma { $this->masterDeviceDesc = $masterDeviceDesc; } - public function getMasterDeviceDesc() { return $this->masterDeviceDesc; @@ -789,7 +749,6 @@ public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { $this->owner = $owner; } - public function getOwner() { return $this->owner; @@ -798,7 +757,6 @@ public function setRequestType($requestType) { $this->requestType = $requestType; } - public function getRequestType() { return $this->requestType; @@ -807,7 +765,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -816,12 +773,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection @@ -845,11 +800,11 @@ class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collec public $type; public $version; + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { $this->databaseChange = $databaseChange; } - public function getDatabaseChange() { return $this->databaseChange; @@ -858,7 +813,6 @@ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDe { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -867,7 +821,6 @@ public function setGeoSpectrumSchedules($geoSpectrumSchedules) { $this->geoSpectrumSchedules = $geoSpectrumSchedules; } - public function getGeoSpectrumSchedules() { return $this->geoSpectrumSchedules; @@ -876,7 +829,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -885,7 +837,6 @@ public function setMaxContiguousBwHz($maxContiguousBwHz) { $this->maxContiguousBwHz = $maxContiguousBwHz; } - public function getMaxContiguousBwHz() { return $this->maxContiguousBwHz; @@ -894,7 +845,6 @@ public function setMaxTotalBwHz($maxTotalBwHz) { $this->maxTotalBwHz = $maxTotalBwHz; } - public function getMaxTotalBwHz() { return $this->maxTotalBwHz; @@ -903,7 +853,6 @@ public function setNeedsSpectrumReport($needsSpectrumReport) { $this->needsSpectrumReport = $needsSpectrumReport; } - public function getNeedsSpectrumReport() { return $this->needsSpectrumReport; @@ -912,7 +861,6 @@ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; } - public function getRulesetInfo() { return $this->rulesetInfo; @@ -921,7 +869,6 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; @@ -930,7 +877,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -939,12 +885,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model @@ -967,11 +911,11 @@ class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model public $type; public $version; + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { $this->antenna = $antenna; } - public function getAntenna() { return $this->antenna; @@ -980,7 +924,6 @@ public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capa { $this->capabilities = $capabilities; } - public function getCapabilities() { return $this->capabilities; @@ -989,7 +932,6 @@ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDe { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -998,7 +940,6 @@ public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1007,7 +948,6 @@ public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $ma { $this->masterDeviceDesc = $masterDeviceDesc; } - public function getMasterDeviceDesc() { return $this->masterDeviceDesc; @@ -1016,7 +956,6 @@ public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { $this->owner = $owner; } - public function getOwner() { return $this->owner; @@ -1025,7 +964,6 @@ public function setRequestType($requestType) { $this->requestType = $requestType; } - public function getRequestType() { return $this->requestType; @@ -1034,7 +972,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1043,12 +980,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection @@ -1072,11 +1007,11 @@ class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection public $type; public $version; + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { $this->databaseChange = $databaseChange; } - public function getDatabaseChange() { return $this->databaseChange; @@ -1085,7 +1020,6 @@ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDe { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -1094,7 +1028,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1103,7 +1036,6 @@ public function setMaxContiguousBwHz($maxContiguousBwHz) { $this->maxContiguousBwHz = $maxContiguousBwHz; } - public function getMaxContiguousBwHz() { return $this->maxContiguousBwHz; @@ -1112,7 +1044,6 @@ public function setMaxTotalBwHz($maxTotalBwHz) { $this->maxTotalBwHz = $maxTotalBwHz; } - public function getMaxTotalBwHz() { return $this->maxTotalBwHz; @@ -1121,7 +1052,6 @@ public function setNeedsSpectrumReport($needsSpectrumReport) { $this->needsSpectrumReport = $needsSpectrumReport; } - public function getNeedsSpectrumReport() { return $this->needsSpectrumReport; @@ -1130,7 +1060,6 @@ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; } - public function getRulesetInfo() { return $this->rulesetInfo; @@ -1139,7 +1068,6 @@ public function setSpectrumSchedules($spectrumSchedules) { $this->spectrumSchedules = $spectrumSchedules; } - public function getSpectrumSchedules() { return $this->spectrumSchedules; @@ -1148,7 +1076,6 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; @@ -1157,7 +1084,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1166,12 +1092,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsInitRequest extends Google_Model @@ -1185,11 +1109,11 @@ class Google_Service_Spectrum_PawsInitRequest extends Google_Model public $type; public $version; + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -1198,7 +1122,6 @@ public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1207,7 +1130,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1216,12 +1138,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsInitResponse extends Google_Model @@ -1236,11 +1156,11 @@ class Google_Service_Spectrum_PawsInitResponse extends Google_Model public $type; public $version; + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { $this->databaseChange = $databaseChange; } - public function getDatabaseChange() { return $this->databaseChange; @@ -1249,7 +1169,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1258,7 +1177,6 @@ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { $this->rulesetInfo = $rulesetInfo; } - public function getRulesetInfo() { return $this->rulesetInfo; @@ -1267,7 +1185,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1276,12 +1193,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection @@ -1298,11 +1213,11 @@ class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collec public $type; public $version; + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -1311,7 +1226,6 @@ public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1320,7 +1234,6 @@ public function setSpectra($spectra) { $this->spectra = $spectra; } - public function getSpectra() { return $this->spectra; @@ -1329,7 +1242,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1338,12 +1250,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model @@ -1354,11 +1264,11 @@ class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model public $type; public $version; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1367,7 +1277,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1376,12 +1285,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model @@ -1399,11 +1306,11 @@ class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model public $type; public $version; + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { $this->antenna = $antenna; } - public function getAntenna() { return $this->antenna; @@ -1412,7 +1319,6 @@ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDe { $this->deviceDesc = $deviceDesc; } - public function getDeviceDesc() { return $this->deviceDesc; @@ -1421,7 +1327,6 @@ public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner) { $this->deviceOwner = $deviceOwner; } - public function getDeviceOwner() { return $this->deviceOwner; @@ -1430,7 +1335,6 @@ public function setLocation(Google_Service_Spectrum_GeoLocation $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1439,7 +1343,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1448,12 +1351,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model @@ -1466,11 +1367,11 @@ class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model public $type; public $version; + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { $this->databaseChange = $databaseChange; } - public function getDatabaseChange() { return $this->databaseChange; @@ -1479,7 +1380,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1488,7 +1388,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1497,12 +1396,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection @@ -1515,11 +1412,11 @@ class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection public $type; public $version; + public function setDeviceDescs($deviceDescs) { $this->deviceDescs = $deviceDescs; } - public function getDeviceDescs() { return $this->deviceDescs; @@ -1528,7 +1425,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1537,12 +1433,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection @@ -1558,11 +1452,11 @@ class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection public $type; public $version; + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { $this->databaseChange = $databaseChange; } - public function getDatabaseChange() { return $this->databaseChange; @@ -1571,7 +1465,6 @@ public function setDeviceValidities($deviceValidities) { $this->deviceValidities = $deviceValidities; } - public function getDeviceValidities() { return $this->deviceValidities; @@ -1580,7 +1473,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1589,7 +1481,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -1598,12 +1489,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Spectrum_RulesetInfo extends Google_Collection @@ -1616,11 +1505,11 @@ class Google_Service_Spectrum_RulesetInfo extends Google_Collection public $maxPollingSecs; public $rulesetIds; + public function setAuthority($authority) { $this->authority = $authority; } - public function getAuthority() { return $this->authority; @@ -1629,7 +1518,6 @@ public function setMaxLocationChange($maxLocationChange) { $this->maxLocationChange = $maxLocationChange; } - public function getMaxLocationChange() { return $this->maxLocationChange; @@ -1638,7 +1526,6 @@ public function setMaxPollingSecs($maxPollingSecs) { $this->maxPollingSecs = $maxPollingSecs; } - public function getMaxPollingSecs() { return $this->maxPollingSecs; @@ -1647,12 +1534,10 @@ public function setRulesetIds($rulesetIds) { $this->rulesetIds = $rulesetIds; } - public function getRulesetIds() { return $this->rulesetIds; } - } class Google_Service_Spectrum_SpectrumMessage extends Google_Collection @@ -1664,11 +1549,11 @@ class Google_Service_Spectrum_SpectrumMessage extends Google_Collection protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; protected $frequencyRangesDataType = 'array'; + public function setBandwidth($bandwidth) { $this->bandwidth = $bandwidth; } - public function getBandwidth() { return $this->bandwidth; @@ -1677,12 +1562,10 @@ public function setFrequencyRanges($frequencyRanges) { $this->frequencyRanges = $frequencyRanges; } - public function getFrequencyRanges() { return $this->frequencyRanges; } - } class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection @@ -1695,11 +1578,11 @@ class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; protected $spectraDataType = 'array'; + public function setEventTime(Google_Service_Spectrum_EventTime $eventTime) { $this->eventTime = $eventTime; } - public function getEventTime() { return $this->eventTime; @@ -1708,12 +1591,10 @@ public function setSpectra($spectra) { $this->spectra = $spectra; } - public function getSpectra() { return $this->spectra; } - } class Google_Service_Spectrum_Vcard extends Google_Model @@ -1730,11 +1611,11 @@ class Google_Service_Spectrum_Vcard extends Google_Model protected $telType = 'Google_Service_Spectrum_VcardTelephone'; protected $telDataType = ''; + public function setAdr(Google_Service_Spectrum_VcardAddress $adr) { $this->adr = $adr; } - public function getAdr() { return $this->adr; @@ -1743,7 +1624,6 @@ public function setEmail(Google_Service_Spectrum_VcardTypedText $email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -1752,7 +1632,6 @@ public function setFn($fn) { $this->fn = $fn; } - public function getFn() { return $this->fn; @@ -1761,7 +1640,6 @@ public function setOrg(Google_Service_Spectrum_VcardTypedText $org) { $this->org = $org; } - public function getOrg() { return $this->org; @@ -1770,12 +1648,10 @@ public function setTel(Google_Service_Spectrum_VcardTelephone $tel) { $this->tel = $tel; } - public function getTel() { return $this->tel; } - } class Google_Service_Spectrum_VcardAddress extends Google_Model @@ -1789,11 +1665,11 @@ class Google_Service_Spectrum_VcardAddress extends Google_Model public $region; public $street; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1802,7 +1678,6 @@ public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -1811,7 +1686,6 @@ public function setLocality($locality) { $this->locality = $locality; } - public function getLocality() { return $this->locality; @@ -1820,7 +1694,6 @@ public function setPobox($pobox) { $this->pobox = $pobox; } - public function getPobox() { return $this->pobox; @@ -1829,7 +1702,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1838,12 +1710,10 @@ public function setStreet($street) { $this->street = $street; } - public function getStreet() { return $this->street; } - } class Google_Service_Spectrum_VcardTelephone extends Google_Model @@ -1852,16 +1722,15 @@ class Google_Service_Spectrum_VcardTelephone extends Google_Model ); public $uri; + public function setUri($uri) { $this->uri = $uri; } - public function getUri() { return $this->uri; } - } class Google_Service_Spectrum_VcardTypedText extends Google_Model @@ -1870,14 +1739,13 @@ class Google_Service_Spectrum_VcardTypedText extends Google_Model ); public $text; + public function setText($text) { $this->text = $text; } - public function getText() { return $this->text; } - } From 9b3477aa4d245a81e09b6bea8fea61767ebd3f9e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:47 -0800 Subject: [PATCH 0496/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 198 ++++++++++++-------------------- 1 file changed, 72 insertions(+), 126 deletions(-) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 4329b7914..3073b0e05 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -19,8 +19,7 @@ * Service definition for Reseller (v1). * *

- * Lets you create and manage your customers and their subscriptions. - *

+ * Lets you create and manage your customers and their subscriptions.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Reseller extends Google_Service { /** Manage users on your domain. */ - const APPS_ORDER = "https://www.googleapis.com/auth/apps.order"; + const APPS_ORDER = + "https://www.googleapis.com/auth/apps.order"; /** Manage users on your domain. */ - const APPS_ORDER_READONLY = "https://www.googleapis.com/auth/apps.order.readonly"; + const APPS_ORDER_READONLY = + "https://www.googleapis.com/auth/apps.order.readonly"; public $customers; public $subscriptions; @@ -294,8 +295,7 @@ 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 string $customerId Id of the Customer * @param array $optParams Optional parameters. * @return Google_Service_Reseller_Customer */ @@ -305,15 +305,16 @@ public function get($customerId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Reseller_Customer"); } + /** * Creates a customer resource if one does not already exist. (customers.insert) * * @param Google_Customer $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerAuthToken - * An auth token needed for inserting a customer for which domain already exists. Can be generated - * at https://www.google.com/a/cpanel//TransferToken. Optional. + * @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()) @@ -322,12 +323,12 @@ public function insert(Google_Service_Reseller_Customer $postBody, $optParams = $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); } + /** * Update a customer resource if one it exists and is owned by the reseller. * This method supports patch semantics. (customers.patch) * - * @param string $customerId - * Id of the Customer + * @param string $customerId Id of the Customer * @param Google_Customer $postBody * @param array $optParams Optional parameters. * @return Google_Service_Reseller_Customer @@ -338,12 +339,12 @@ public function patch($customerId, Google_Service_Reseller_Customer $postBody, $ $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); } + /** * Update a customer resource if one it exists and is owned by the reseller. * (customers.update) * - * @param string $customerId - * Id of the Customer + * @param string $customerId Id of the Customer * @param Google_Customer $postBody * @param array $optParams Optional parameters. * @return Google_Service_Reseller_Customer @@ -371,10 +372,9 @@ class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Reso * Activates a subscription previously suspended by the reseller * (subscriptions.activate) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @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 */ @@ -384,13 +384,13 @@ public function activate($customerId, $subscriptionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('activate', array($params), "Google_Service_Reseller_Subscription"); } + /** * Changes the plan of a subscription (subscriptions.changePlan) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @param 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 @@ -401,14 +401,14 @@ public function changePlan($customerId, $subscriptionId, Google_Service_Reseller $params = array_merge($params, $optParams); return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription"); } + /** * Changes the renewal settings of a subscription * (subscriptions.changeRenewalSettings) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @param 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 @@ -419,13 +419,13 @@ public function changeRenewalSettings($customerId, $subscriptionId, Google_Servi $params = array_merge($params, $optParams); return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription"); } + /** * Changes the seats configuration of a subscription (subscriptions.changeSeats) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @param 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 @@ -436,15 +436,15 @@ public function changeSeats($customerId, $subscriptionId, Google_Service_Reselle $params = array_merge($params, $optParams); return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); } + /** * Cancels/Downgrades a subscription. (subscriptions.delete) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param string $deletionType - * Whether the subscription is to be fully cancelled or downgraded + * @param 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()) @@ -453,13 +453,13 @@ public function delete($customerId, $subscriptionId, $deletionType, $optParams = $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a subscription of the customer. (subscriptions.get) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @param 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 */ @@ -469,17 +469,17 @@ public function get($customerId, $subscriptionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Reseller_Subscription"); } + /** * Creates/Transfers a subscription for the customer. (subscriptions.insert) * - * @param string $customerId - * Id of the Customer + * @param 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. + * @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()) @@ -488,23 +488,21 @@ public function insert($customerId, Google_Service_Reseller_Subscription $postBo $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Reseller_Subscription"); } + /** * Lists subscriptions of a reseller, optionally filtered by a customer name * prefix. (subscriptions.listSubscriptions) * * @param array $optParams Optional parameters. * - * @opt_param string customerAuthToken - * An auth token needed if the customer is not a resold customer of this reseller. Can be generated - * at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string customerId - * Id of the Customer - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string customerNamePrefix - * Prefix of the customer's domain name by which the subscriptions should be filtered. Optional + * @opt_param string customerAuthToken An auth token needed if the customer is + * not a resold customer of this reseller. Can be generated at + * https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string customerId Id of the Customer + * @opt_param string maxResults Maximum number of results to return + * @opt_param string customerNamePrefix Prefix of the customer's domain name by + * which the subscriptions should be filtered. Optional * @return Google_Service_Reseller_Subscriptions */ public function listSubscriptions($optParams = array()) @@ -513,13 +511,13 @@ public function listSubscriptions($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions"); } + /** * Starts paid service of a trial subscription (subscriptions.startPaidService) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @param 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 */ @@ -529,13 +527,13 @@ public function startPaidService($customerId, $subscriptionId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); } + /** * Suspends an active subscription (subscriptions.suspend) * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer + * @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 */ @@ -565,11 +563,11 @@ class Google_Service_Reseller_Address extends Google_Model public $postalCode; public $region; + public function setAddressLine1($addressLine1) { $this->addressLine1 = $addressLine1; } - public function getAddressLine1() { return $this->addressLine1; @@ -578,7 +576,6 @@ public function setAddressLine2($addressLine2) { $this->addressLine2 = $addressLine2; } - public function getAddressLine2() { return $this->addressLine2; @@ -587,7 +584,6 @@ public function setAddressLine3($addressLine3) { $this->addressLine3 = $addressLine3; } - public function getAddressLine3() { return $this->addressLine3; @@ -596,7 +592,6 @@ public function setContactName($contactName) { $this->contactName = $contactName; } - public function getContactName() { return $this->contactName; @@ -605,7 +600,6 @@ public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } - public function getCountryCode() { return $this->countryCode; @@ -614,7 +608,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -623,7 +616,6 @@ public function setLocality($locality) { $this->locality = $locality; } - public function getLocality() { return $this->locality; @@ -632,7 +624,6 @@ public function setOrganizationName($organizationName) { $this->organizationName = $organizationName; } - public function getOrganizationName() { return $this->organizationName; @@ -641,7 +632,6 @@ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } - public function getPostalCode() { return $this->postalCode; @@ -650,12 +640,10 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; } - } class Google_Service_Reseller_ChangePlanRequest extends Google_Model @@ -668,11 +656,11 @@ class Google_Service_Reseller_ChangePlanRequest extends Google_Model protected $seatsType = 'Google_Service_Reseller_Seats'; protected $seatsDataType = ''; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -681,7 +669,6 @@ public function setPlanName($planName) { $this->planName = $planName; } - public function getPlanName() { return $this->planName; @@ -690,7 +677,6 @@ public function setPurchaseOrderId($purchaseOrderId) { $this->purchaseOrderId = $purchaseOrderId; } - public function getPurchaseOrderId() { return $this->purchaseOrderId; @@ -699,12 +685,10 @@ 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 @@ -720,11 +704,11 @@ class Google_Service_Reseller_Customer extends Google_Model protected $postalAddressDataType = ''; public $resourceUiUrl; + public function setAlternateEmail($alternateEmail) { $this->alternateEmail = $alternateEmail; } - public function getAlternateEmail() { return $this->alternateEmail; @@ -733,7 +717,6 @@ public function setCustomerDomain($customerDomain) { $this->customerDomain = $customerDomain; } - public function getCustomerDomain() { return $this->customerDomain; @@ -742,7 +725,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -751,7 +733,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -760,7 +741,6 @@ public function setPhoneNumber($phoneNumber) { $this->phoneNumber = $phoneNumber; } - public function getPhoneNumber() { return $this->phoneNumber; @@ -769,7 +749,6 @@ public function setPostalAddress(Google_Service_Reseller_Address $postalAddress) { $this->postalAddress = $postalAddress; } - public function getPostalAddress() { return $this->postalAddress; @@ -778,12 +757,10 @@ public function setResourceUiUrl($resourceUiUrl) { $this->resourceUiUrl = $resourceUiUrl; } - public function getResourceUiUrl() { return $this->resourceUiUrl; } - } class Google_Service_Reseller_RenewalSettings extends Google_Model @@ -793,11 +770,11 @@ 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; @@ -806,12 +783,10 @@ public function setRenewalType($renewalType) { $this->renewalType = $renewalType; } - public function getRenewalType() { return $this->renewalType; } - } class Google_Service_Reseller_Seats extends Google_Model @@ -823,11 +798,11 @@ class Google_Service_Reseller_Seats extends Google_Model public $maximumNumberOfSeats; public $numberOfSeats; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -836,7 +811,6 @@ public function setLicensedNumberOfSeats($licensedNumberOfSeats) { $this->licensedNumberOfSeats = $licensedNumberOfSeats; } - public function getLicensedNumberOfSeats() { return $this->licensedNumberOfSeats; @@ -845,7 +819,6 @@ public function setMaximumNumberOfSeats($maximumNumberOfSeats) { $this->maximumNumberOfSeats = $maximumNumberOfSeats; } - public function getMaximumNumberOfSeats() { return $this->maximumNumberOfSeats; @@ -854,12 +827,10 @@ public function setNumberOfSeats($numberOfSeats) { $this->numberOfSeats = $numberOfSeats; } - public function getNumberOfSeats() { return $this->numberOfSeats; } - } class Google_Service_Reseller_Subscription extends Google_Model @@ -885,11 +856,11 @@ class Google_Service_Reseller_Subscription extends Google_Model protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; protected $trialSettingsDataType = ''; + public function setCreationTime($creationTime) { $this->creationTime = $creationTime; } - public function getCreationTime() { return $this->creationTime; @@ -898,7 +869,6 @@ public function setCustomerId($customerId) { $this->customerId = $customerId; } - public function getCustomerId() { return $this->customerId; @@ -907,7 +877,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -916,7 +885,6 @@ public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan) { $this->plan = $plan; } - public function getPlan() { return $this->plan; @@ -925,7 +893,6 @@ public function setPurchaseOrderId($purchaseOrderId) { $this->purchaseOrderId = $purchaseOrderId; } - public function getPurchaseOrderId() { return $this->purchaseOrderId; @@ -934,7 +901,6 @@ public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $rene { $this->renewalSettings = $renewalSettings; } - public function getRenewalSettings() { return $this->renewalSettings; @@ -943,7 +909,6 @@ public function setResourceUiUrl($resourceUiUrl) { $this->resourceUiUrl = $resourceUiUrl; } - public function getResourceUiUrl() { return $this->resourceUiUrl; @@ -952,7 +917,6 @@ public function setSeats(Google_Service_Reseller_Seats $seats) { $this->seats = $seats; } - public function getSeats() { return $this->seats; @@ -961,7 +925,6 @@ public function setSkuId($skuId) { $this->skuId = $skuId; } - public function getSkuId() { return $this->skuId; @@ -970,7 +933,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -979,7 +941,6 @@ public function setSubscriptionId($subscriptionId) { $this->subscriptionId = $subscriptionId; } - public function getSubscriptionId() { return $this->subscriptionId; @@ -988,7 +949,6 @@ public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo { $this->transferInfo = $transferInfo; } - public function getTransferInfo() { return $this->transferInfo; @@ -997,12 +957,10 @@ public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettin { $this->trialSettings = $trialSettings; } - public function getTrialSettings() { return $this->trialSettings; } - } class Google_Service_Reseller_SubscriptionPlan extends Google_Model @@ -1014,11 +972,11 @@ class Google_Service_Reseller_SubscriptionPlan extends Google_Model public $isCommitmentPlan; public $planName; + public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval) { $this->commitmentInterval = $commitmentInterval; } - public function getCommitmentInterval() { return $this->commitmentInterval; @@ -1027,7 +985,6 @@ public function setIsCommitmentPlan($isCommitmentPlan) { $this->isCommitmentPlan = $isCommitmentPlan; } - public function getIsCommitmentPlan() { return $this->isCommitmentPlan; @@ -1036,12 +993,10 @@ public function setPlanName($planName) { $this->planName = $planName; } - public function getPlanName() { return $this->planName; } - } class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model @@ -1051,11 +1006,11 @@ class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_ public $endTime; public $startTime; + public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1064,12 +1019,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model @@ -1079,11 +1032,11 @@ class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model public $minimumTransferableSeats; public $transferabilityExpirationTime; + public function setMinimumTransferableSeats($minimumTransferableSeats) { $this->minimumTransferableSeats = $minimumTransferableSeats; } - public function getMinimumTransferableSeats() { return $this->minimumTransferableSeats; @@ -1092,12 +1045,10 @@ public function setTransferabilityExpirationTime($transferabilityExpirationTime) { $this->transferabilityExpirationTime = $transferabilityExpirationTime; } - public function getTransferabilityExpirationTime() { return $this->transferabilityExpirationTime; } - } class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model @@ -1107,11 +1058,11 @@ 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; @@ -1120,12 +1071,10 @@ public function setTrialEndTime($trialEndTime) { $this->trialEndTime = $trialEndTime; } - public function getTrialEndTime() { return $this->trialEndTime; } - } class Google_Service_Reseller_Subscriptions extends Google_Collection @@ -1138,11 +1087,11 @@ class Google_Service_Reseller_Subscriptions extends Google_Collection protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; protected $subscriptionsDataType = 'array'; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1151,7 +1100,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1160,10 +1108,8 @@ public function setSubscriptions($subscriptions) { $this->subscriptions = $subscriptions; } - public function getSubscriptions() { return $this->subscriptions; } - } From bee753ed94055137d2a7ab85709808855c3201b5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:48 -0800 Subject: [PATCH 0497/1274] Updated Tasks.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tasks.php | 194 ++++++++++++++--------------------- 1 file changed, 76 insertions(+), 118 deletions(-) diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php index 5d84ba47e..48c04d8a9 100644 --- a/src/Google/Service/Tasks.php +++ b/src/Google/Service/Tasks.php @@ -19,8 +19,7 @@ * Service definition for Tasks (v1). * *

- * Lets you manage your tasks and task lists. - *

+ * Lets you manage your tasks and task lists.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Tasks extends Google_Service { /** Manage your tasks. */ - const TASKS = "https://www.googleapis.com/auth/tasks"; + const TASKS = + "https://www.googleapis.com/auth/tasks"; /** View your tasks. */ - const TASKS_READONLY = "https://www.googleapis.com/auth/tasks.readonly"; + const TASKS_READONLY = + "https://www.googleapis.com/auth/tasks.readonly"; public $tasklists; public $tasks; @@ -308,8 +309,7 @@ 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 string $tasklist Task list identifier. * @param array $optParams Optional parameters. */ public function delete($tasklist, $optParams = array()) @@ -318,11 +318,11 @@ public function delete($tasklist, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the authenticated user's specified task list. (tasklists.get) * - * @param string $tasklist - * Task list identifier. + * @param string $tasklist Task list identifier. * @param array $optParams Optional parameters. * @return Google_Service_Tasks_TaskList */ @@ -332,6 +332,7 @@ public function get($tasklist, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); } + /** * Creates a new task list and adds it to the authenticated user's task lists. * (tasklists.insert) @@ -346,15 +347,16 @@ public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = arr $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); } + /** * Returns all the authenticated user's task lists. (tasklists.listTasklists) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Token specifying the result page to return. Optional. - * @opt_param string maxResults - * Maximum number of task lists returned on one page. Optional. The default is 100. + * @opt_param string pageToken Token specifying the result page to return. + * Optional. + * @opt_param string maxResults Maximum number of task lists returned on one + * page. Optional. The default is 100. * @return Google_Service_Tasks_TaskLists */ public function listTasklists($optParams = array()) @@ -363,12 +365,12 @@ public function listTasklists($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); } + /** * Updates the authenticated user's specified task list. This method supports * patch semantics. (tasklists.patch) * - * @param string $tasklist - * Task list identifier. + * @param string $tasklist Task list identifier. * @param Google_TaskList $postBody * @param array $optParams Optional parameters. * @return Google_Service_Tasks_TaskList @@ -379,11 +381,11 @@ public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); } + /** * Updates the authenticated user's specified task list. (tasklists.update) * - * @param string $tasklist - * Task list identifier. + * @param string $tasklist Task list identifier. * @param Google_TaskList $postBody * @param array $optParams Optional parameters. * @return Google_Service_Tasks_TaskList @@ -412,8 +414,7 @@ class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource * 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 string $tasklist Task list identifier. * @param array $optParams Optional parameters. */ public function clear($tasklist, $optParams = array()) @@ -422,13 +423,12 @@ public function clear($tasklist, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('clear', array($params)); } + /** * Deletes the specified task from the task list. (tasks.delete) * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. + * @param string $tasklist Task list identifier. + * @param string $task Task identifier. * @param array $optParams Optional parameters. */ public function delete($tasklist, $task, $optParams = array()) @@ -437,13 +437,12 @@ public function delete($tasklist, $task, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns the specified task. (tasks.get) * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. + * @param string $tasklist Task list identifier. + * @param string $task Task identifier. * @param array $optParams Optional parameters. * @return Google_Service_Tasks_Task */ @@ -453,20 +452,19 @@ public function get($tasklist, $task, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Tasks_Task"); } + /** * Creates a new task on the specified task list. (tasks.insert) * - * @param string $tasklist - * Task list identifier. + * @param 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. + * @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()) @@ -475,40 +473,36 @@ public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Tasks_Task"); } + /** * Returns all tasks in the specified task list. (tasks.listTasks) * - * @param string $tasklist - * Task list identifier. + * @param string $tasklist Task list identifier. * @param array $optParams Optional parameters. * - * @opt_param string dueMax - * Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default - * is not to filter by due date. - * @opt_param bool showDeleted - * Flag indicating whether deleted tasks are returned in the result. Optional. The default is - * False. - * @opt_param string updatedMin - * Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. - * Optional. The default is not to filter by last modification time. - * @opt_param string completedMin - * Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The - * default is not to filter by completion date. - * @opt_param string maxResults - * Maximum number of task lists returned on one page. Optional. The default is 100. - * @opt_param bool showCompleted - * Flag indicating whether completed tasks are returned in the result. Optional. The default is - * True. - * @opt_param string pageToken - * Token specifying the result page to return. Optional. - * @opt_param string completedMax - * Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The - * default is not to filter by completion date. - * @opt_param bool showHidden - * Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. - * @opt_param string dueMin - * Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default - * is not to filter by due date. + * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 + * timestamp) to filter by. Optional. The default is not to filter by due date. + * @opt_param bool showDeleted Flag indicating whether deleted tasks are + * returned in the result. Optional. The default is False. + * @opt_param string updatedMin Lower bound for a task's last modification time + * (as a RFC 3339 timestamp) to filter by. Optional. The default is not to + * filter by last modification time. + * @opt_param string completedMin Lower bound for a task's completion date (as a + * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by + * completion date. + * @opt_param string maxResults Maximum number of task lists returned on one + * page. Optional. The default is 100. + * @opt_param bool showCompleted Flag indicating whether completed tasks are + * returned in the result. Optional. The default is True. + * @opt_param string pageToken Token specifying the result page to return. + * Optional. + * @opt_param string completedMax Upper bound for a task's completion date (as a + * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by + * completion date. + * @opt_param bool showHidden Flag indicating whether hidden tasks are returned + * in the result. Optional. The default is False. + * @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 + * timestamp) to filter by. Optional. The default is not to filter by due date. * @return Google_Service_Tasks_Tasks */ public function listTasks($tasklist, $optParams = array()) @@ -517,23 +511,21 @@ public function listTasks($tasklist, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); } + /** * Moves the specified task to another position in the task list. This can * include putting it as a child task under a new parent and/or move it to a * different position among its sibling tasks. (tasks.move) * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. + * @param 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. + * @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()) @@ -542,14 +534,13 @@ public function move($tasklist, $task, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('move', array($params), "Google_Service_Tasks_Task"); } + /** * Updates the specified task. This method supports patch semantics. * (tasks.patch) * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. + * @param string $tasklist Task list identifier. + * @param string $task Task identifier. * @param Google_Task $postBody * @param array $optParams Optional parameters. * @return Google_Service_Tasks_Task @@ -560,13 +551,12 @@ public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $op $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Tasks_Task"); } + /** * Updates the specified task. (tasks.update) * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. + * @param string $tasklist Task list identifier. + * @param string $task Task identifier. * @param Google_Task $postBody * @param array $optParams Optional parameters. * @return Google_Service_Tasks_Task @@ -604,11 +594,11 @@ class Google_Service_Tasks_Task extends Google_Collection public $title; public $updated; + public function setCompleted($completed) { $this->completed = $completed; } - public function getCompleted() { return $this->completed; @@ -617,7 +607,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -626,7 +615,6 @@ public function setDue($due) { $this->due = $due; } - public function getDue() { return $this->due; @@ -635,7 +623,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -644,7 +631,6 @@ public function setHidden($hidden) { $this->hidden = $hidden; } - public function getHidden() { return $this->hidden; @@ -653,7 +639,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -662,7 +647,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -671,7 +655,6 @@ public function setLinks($links) { $this->links = $links; } - public function getLinks() { return $this->links; @@ -680,7 +663,6 @@ public function setNotes($notes) { $this->notes = $notes; } - public function getNotes() { return $this->notes; @@ -689,7 +671,6 @@ public function setParent($parent) { $this->parent = $parent; } - public function getParent() { return $this->parent; @@ -698,7 +679,6 @@ public function setPosition($position) { $this->position = $position; } - public function getPosition() { return $this->position; @@ -707,7 +687,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -716,7 +695,6 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; @@ -725,7 +703,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -734,12 +711,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Tasks_TaskLinks extends Google_Model @@ -750,11 +725,11 @@ class Google_Service_Tasks_TaskLinks extends Google_Model public $link; public $type; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -763,7 +738,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -772,12 +746,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Tasks_TaskList extends Google_Model @@ -791,11 +763,11 @@ class Google_Service_Tasks_TaskList extends Google_Model public $title; public $updated; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -804,7 +776,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -813,7 +784,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -822,7 +792,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -831,7 +800,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -840,12 +808,10 @@ public function setUpdated($updated) { $this->updated = $updated; } - public function getUpdated() { return $this->updated; } - } class Google_Service_Tasks_TaskLists extends Google_Collection @@ -859,11 +825,11 @@ class Google_Service_Tasks_TaskLists extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -872,7 +838,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -881,7 +846,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -890,12 +854,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Tasks_Tasks extends Google_Collection @@ -909,11 +871,11 @@ class Google_Service_Tasks_Tasks extends Google_Collection public $kind; public $nextPageToken; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -922,7 +884,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -931,7 +892,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -940,10 +900,8 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } From 9c6a9c76176ff601ddfd6d41dbf7d43f36ca939a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:48 -0800 Subject: [PATCH 0498/1274] Updated Customsearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Customsearch.php | 259 +++++++--------------------- 1 file changed, 66 insertions(+), 193 deletions(-) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index d86094170..362330a93 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -19,8 +19,7 @@ * Service definition for Customsearch (v1). * *

- * Lets you search over a website or collection of websites - *

+ * Lets you search over a website or collection of websites

* *

* For more information about this service, see the API @@ -211,78 +210,60 @@ class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource * Returns metadata about the search performed, metadata about the custom search * engine used for the search, and the search results. (cse.listCse) * - * @param string $q - * Query + * @param string $q Query * @param array $optParams Optional parameters. * - * @opt_param string sort - * The sort expression to apply to the results - * @opt_param string orTerms - * Provides additional search terms to check for in a document, where each document in the search - * results must contain at least one of the additional search terms - * @opt_param string highRange - * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query - * @opt_param string num - * Number of search results to return - * @opt_param string cr - * Country restrict(s). - * @opt_param string imgType - * Returns images of a type, which can be one of: clipart, face, lineart, news, and photo. - * @opt_param string gl - * Geolocation of end user. - * @opt_param string relatedSite - * Specifies that all search results should be pages that are related to the specified URL - * @opt_param string searchType - * Specifies the search type: image. - * @opt_param string fileType - * Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, - * pdf, ... - * @opt_param string start - * The index of the first result to return - * @opt_param string imgDominantColor - * Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, - * gray, black and brown. - * @opt_param string lr - * The language restriction for the search results - * @opt_param string siteSearch - * Specifies all search results should be pages from a given site - * @opt_param string cref - * The URL of a linked custom search engine - * @opt_param string dateRestrict - * Specifies all search results are from a time period - * @opt_param string safe - * Search safety level - * @opt_param string c2coff - * Turns off the translation between zh-CN and zh-TW. - * @opt_param string googlehost - * The local Google domain to use to perform the search. - * @opt_param string hq - * Appends the extra query terms to the query. - * @opt_param string exactTerms - * Identifies a phrase that all documents in the search results must contain - * @opt_param string hl - * Sets the user interface language. - * @opt_param string lowRange - * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query - * @opt_param string imgSize - * Returns images of a specified size, where size can be one of: icon, small, medium, large, - * xlarge, xxlarge, and huge. - * @opt_param string imgColorType - * Returns black and white, grayscale, or color images: mono, gray, and color. - * @opt_param string rights - * Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, - * cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these. - * @opt_param string excludeTerms - * Identifies a word or phrase that should not appear in any documents in the search results - * @opt_param string filter - * Controls turning on or off the duplicate content filter. - * @opt_param string linkSite - * Specifies that all search results should contain a link to a particular URL - * @opt_param string cx - * The custom search engine ID to scope this search query - * @opt_param string siteSearchFilter - * Controls whether to include or exclude results from the site named in the as_sitesearch - * parameter + * @opt_param string sort The sort expression to apply to the results + * @opt_param string orTerms Provides additional search terms to check for in a + * document, where each document in the search results must contain at least one + * of the additional search terms + * @opt_param string highRange Creates a range in form as_nlo value..as_nhi + * value and attempts to append it to query + * @opt_param string num Number of search results to return + * @opt_param string cr Country restrict(s). + * @opt_param string imgType Returns images of a type, which can be one of: + * clipart, face, lineart, news, and photo. + * @opt_param string gl Geolocation of end user. + * @opt_param string relatedSite Specifies that all search results should be + * pages that are related to the specified URL + * @opt_param string searchType Specifies the search type: image. + * @opt_param string fileType Returns images of a specified type. Some of the + * allowed values are: bmp, gif, png, jpg, svg, pdf, ... + * @opt_param string start The index of the first result to return + * @opt_param string imgDominantColor Returns images of a specific dominant + * color: yellow, green, teal, blue, purple, pink, white, gray, black and brown. + * @opt_param string lr The language restriction for the search results + * @opt_param string siteSearch Specifies all search results should be pages + * from a given site + * @opt_param string cref The URL of a linked custom search engine + * @opt_param string dateRestrict Specifies all search results are from a time + * period + * @opt_param string safe Search safety level + * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW. + * @opt_param string googlehost The local Google domain to use to perform the + * search. + * @opt_param string hq Appends the extra query terms to the query. + * @opt_param string exactTerms Identifies a phrase that all documents in the + * search results must contain + * @opt_param string hl Sets the user interface language. + * @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value + * and attempts to append it to query + * @opt_param string imgSize Returns images of a specified size, where size can + * be one of: icon, small, medium, large, xlarge, xxlarge, and huge. + * @opt_param string imgColorType Returns black and white, grayscale, or color + * images: mono, gray, and color. + * @opt_param string rights Filters based on licensing. Supported values + * include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, + * cc_nonderived and combinations of these. + * @opt_param string excludeTerms Identifies a word or phrase that should not + * appear in any documents in the search results + * @opt_param string filter Controls turning on or off the duplicate content + * filter. + * @opt_param string linkSite Specifies that all search results should contain a + * link to a particular URL + * @opt_param string cx The custom search engine ID to scope this search query + * @opt_param string siteSearchFilter Controls whether to include or exclude + * results from the site named in the as_sitesearch parameter * @return Google_Service_Customsearch_Search */ public function listCse($q, $optParams = array()) @@ -305,11 +286,11 @@ class Google_Service_Customsearch_Context extends Google_Collection protected $facetsDataType = 'array'; public $title; + public function setFacets($facets) { $this->facets = $facets; } - public function getFacets() { return $this->facets; @@ -318,12 +299,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Customsearch_ContextFacets extends Google_Model @@ -335,11 +314,11 @@ class Google_Service_Customsearch_ContextFacets extends Google_Model public $label; public $labelWithOp; + public function setAnchor($anchor) { $this->anchor = $anchor; } - public function getAnchor() { return $this->anchor; @@ -348,7 +327,6 @@ public function setLabel($label) { $this->label = $label; } - public function getLabel() { return $this->label; @@ -357,12 +335,10 @@ public function setLabelWithOp($labelWithOp) { $this->labelWithOp = $labelWithOp; } - public function getLabelWithOp() { return $this->labelWithOp; } - } class Google_Service_Customsearch_Promotion extends Google_Collection @@ -379,11 +355,11 @@ class Google_Service_Customsearch_Promotion extends Google_Collection public $link; public $title; + public function setBodyLines($bodyLines) { $this->bodyLines = $bodyLines; } - public function getBodyLines() { return $this->bodyLines; @@ -392,7 +368,6 @@ public function setDisplayLink($displayLink) { $this->displayLink = $displayLink; } - public function getDisplayLink() { return $this->displayLink; @@ -401,7 +376,6 @@ public function setHtmlTitle($htmlTitle) { $this->htmlTitle = $htmlTitle; } - public function getHtmlTitle() { return $this->htmlTitle; @@ -410,7 +384,6 @@ public function setImage(Google_Service_Customsearch_PromotionImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -419,7 +392,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -428,12 +400,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Customsearch_PromotionBodyLines extends Google_Model @@ -445,11 +415,11 @@ class Google_Service_Customsearch_PromotionBodyLines extends Google_Model public $title; public $url; + public function setHtmlTitle($htmlTitle) { $this->htmlTitle = $htmlTitle; } - public function getHtmlTitle() { return $this->htmlTitle; @@ -458,7 +428,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -467,7 +436,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -476,12 +444,10 @@ public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Customsearch_PromotionImage extends Google_Model @@ -492,11 +458,11 @@ class Google_Service_Customsearch_PromotionImage extends Google_Model public $source; public $width; + public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -505,7 +471,6 @@ public function setSource($source) { $this->source = $source; } - public function getSource() { return $this->source; @@ -514,12 +479,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Customsearch_Query extends Google_Model @@ -564,11 +527,11 @@ class Google_Service_Customsearch_Query extends Google_Model public $title; public $totalResults; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -577,7 +540,6 @@ public function setCr($cr) { $this->cr = $cr; } - public function getCr() { return $this->cr; @@ -586,7 +548,6 @@ public function setCref($cref) { $this->cref = $cref; } - public function getCref() { return $this->cref; @@ -595,7 +556,6 @@ public function setCx($cx) { $this->cx = $cx; } - public function getCx() { return $this->cx; @@ -604,7 +564,6 @@ public function setDateRestrict($dateRestrict) { $this->dateRestrict = $dateRestrict; } - public function getDateRestrict() { return $this->dateRestrict; @@ -613,7 +572,6 @@ public function setDisableCnTwTranslation($disableCnTwTranslation) { $this->disableCnTwTranslation = $disableCnTwTranslation; } - public function getDisableCnTwTranslation() { return $this->disableCnTwTranslation; @@ -622,7 +580,6 @@ public function setExactTerms($exactTerms) { $this->exactTerms = $exactTerms; } - public function getExactTerms() { return $this->exactTerms; @@ -631,7 +588,6 @@ public function setExcludeTerms($excludeTerms) { $this->excludeTerms = $excludeTerms; } - public function getExcludeTerms() { return $this->excludeTerms; @@ -640,7 +596,6 @@ public function setFileType($fileType) { $this->fileType = $fileType; } - public function getFileType() { return $this->fileType; @@ -649,7 +604,6 @@ public function setFilter($filter) { $this->filter = $filter; } - public function getFilter() { return $this->filter; @@ -658,7 +612,6 @@ public function setGl($gl) { $this->gl = $gl; } - public function getGl() { return $this->gl; @@ -667,7 +620,6 @@ public function setGoogleHost($googleHost) { $this->googleHost = $googleHost; } - public function getGoogleHost() { return $this->googleHost; @@ -676,7 +628,6 @@ public function setHighRange($highRange) { $this->highRange = $highRange; } - public function getHighRange() { return $this->highRange; @@ -685,7 +636,6 @@ public function setHl($hl) { $this->hl = $hl; } - public function getHl() { return $this->hl; @@ -694,7 +644,6 @@ public function setHq($hq) { $this->hq = $hq; } - public function getHq() { return $this->hq; @@ -703,7 +652,6 @@ public function setImgColorType($imgColorType) { $this->imgColorType = $imgColorType; } - public function getImgColorType() { return $this->imgColorType; @@ -712,7 +660,6 @@ public function setImgDominantColor($imgDominantColor) { $this->imgDominantColor = $imgDominantColor; } - public function getImgDominantColor() { return $this->imgDominantColor; @@ -721,7 +668,6 @@ public function setImgSize($imgSize) { $this->imgSize = $imgSize; } - public function getImgSize() { return $this->imgSize; @@ -730,7 +676,6 @@ public function setImgType($imgType) { $this->imgType = $imgType; } - public function getImgType() { return $this->imgType; @@ -739,7 +684,6 @@ public function setInputEncoding($inputEncoding) { $this->inputEncoding = $inputEncoding; } - public function getInputEncoding() { return $this->inputEncoding; @@ -748,7 +692,6 @@ public function setLanguage($language) { $this->language = $language; } - public function getLanguage() { return $this->language; @@ -757,7 +700,6 @@ public function setLinkSite($linkSite) { $this->linkSite = $linkSite; } - public function getLinkSite() { return $this->linkSite; @@ -766,7 +708,6 @@ public function setLowRange($lowRange) { $this->lowRange = $lowRange; } - public function getLowRange() { return $this->lowRange; @@ -775,7 +716,6 @@ public function setOrTerms($orTerms) { $this->orTerms = $orTerms; } - public function getOrTerms() { return $this->orTerms; @@ -784,7 +724,6 @@ public function setOutputEncoding($outputEncoding) { $this->outputEncoding = $outputEncoding; } - public function getOutputEncoding() { return $this->outputEncoding; @@ -793,7 +732,6 @@ public function setRelatedSite($relatedSite) { $this->relatedSite = $relatedSite; } - public function getRelatedSite() { return $this->relatedSite; @@ -802,7 +740,6 @@ public function setRights($rights) { $this->rights = $rights; } - public function getRights() { return $this->rights; @@ -811,7 +748,6 @@ public function setSafe($safe) { $this->safe = $safe; } - public function getSafe() { return $this->safe; @@ -820,7 +756,6 @@ public function setSearchTerms($searchTerms) { $this->searchTerms = $searchTerms; } - public function getSearchTerms() { return $this->searchTerms; @@ -829,7 +764,6 @@ public function setSearchType($searchType) { $this->searchType = $searchType; } - public function getSearchType() { return $this->searchType; @@ -838,7 +772,6 @@ public function setSiteSearch($siteSearch) { $this->siteSearch = $siteSearch; } - public function getSiteSearch() { return $this->siteSearch; @@ -847,7 +780,6 @@ public function setSiteSearchFilter($siteSearchFilter) { $this->siteSearchFilter = $siteSearchFilter; } - public function getSiteSearchFilter() { return $this->siteSearchFilter; @@ -856,7 +788,6 @@ public function setSort($sort) { $this->sort = $sort; } - public function getSort() { return $this->sort; @@ -865,7 +796,6 @@ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } - public function getStartIndex() { return $this->startIndex; @@ -874,7 +804,6 @@ public function setStartPage($startPage) { $this->startPage = $startPage; } - public function getStartPage() { return $this->startPage; @@ -883,7 +812,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -892,12 +820,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Customsearch_Result extends Google_Collection @@ -923,11 +849,11 @@ class Google_Service_Customsearch_Result extends Google_Collection public $snippet; public $title; + public function setCacheId($cacheId) { $this->cacheId = $cacheId; } - public function getCacheId() { return $this->cacheId; @@ -936,7 +862,6 @@ public function setDisplayLink($displayLink) { $this->displayLink = $displayLink; } - public function getDisplayLink() { return $this->displayLink; @@ -945,7 +870,6 @@ public function setFileFormat($fileFormat) { $this->fileFormat = $fileFormat; } - public function getFileFormat() { return $this->fileFormat; @@ -954,7 +878,6 @@ public function setFormattedUrl($formattedUrl) { $this->formattedUrl = $formattedUrl; } - public function getFormattedUrl() { return $this->formattedUrl; @@ -963,7 +886,6 @@ public function setHtmlFormattedUrl($htmlFormattedUrl) { $this->htmlFormattedUrl = $htmlFormattedUrl; } - public function getHtmlFormattedUrl() { return $this->htmlFormattedUrl; @@ -972,7 +894,6 @@ public function setHtmlSnippet($htmlSnippet) { $this->htmlSnippet = $htmlSnippet; } - public function getHtmlSnippet() { return $this->htmlSnippet; @@ -981,7 +902,6 @@ public function setHtmlTitle($htmlTitle) { $this->htmlTitle = $htmlTitle; } - public function getHtmlTitle() { return $this->htmlTitle; @@ -990,7 +910,6 @@ public function setImage(Google_Service_Customsearch_ResultImage $image) { $this->image = $image; } - public function getImage() { return $this->image; @@ -999,7 +918,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1008,7 +926,6 @@ public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -1017,7 +934,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -1026,7 +942,6 @@ public function setMime($mime) { $this->mime = $mime; } - public function getMime() { return $this->mime; @@ -1035,7 +950,6 @@ public function setPagemap($pagemap) { $this->pagemap = $pagemap; } - public function getPagemap() { return $this->pagemap; @@ -1044,7 +958,6 @@ public function setSnippet($snippet) { $this->snippet = $snippet; } - public function getSnippet() { return $this->snippet; @@ -1053,12 +966,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Customsearch_ResultImage extends Google_Model @@ -1073,11 +984,11 @@ class Google_Service_Customsearch_ResultImage extends Google_Model public $thumbnailWidth; public $width; + public function setByteSize($byteSize) { $this->byteSize = $byteSize; } - public function getByteSize() { return $this->byteSize; @@ -1086,7 +997,6 @@ public function setContextLink($contextLink) { $this->contextLink = $contextLink; } - public function getContextLink() { return $this->contextLink; @@ -1095,7 +1005,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -1104,7 +1013,6 @@ public function setThumbnailHeight($thumbnailHeight) { $this->thumbnailHeight = $thumbnailHeight; } - public function getThumbnailHeight() { return $this->thumbnailHeight; @@ -1113,7 +1021,6 @@ public function setThumbnailLink($thumbnailLink) { $this->thumbnailLink = $thumbnailLink; } - public function getThumbnailLink() { return $this->thumbnailLink; @@ -1122,7 +1029,6 @@ public function setThumbnailWidth($thumbnailWidth) { $this->thumbnailWidth = $thumbnailWidth; } - public function getThumbnailWidth() { return $this->thumbnailWidth; @@ -1131,12 +1037,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Customsearch_ResultLabels extends Google_Model @@ -1148,11 +1052,11 @@ class Google_Service_Customsearch_ResultLabels extends Google_Model public $labelWithOp; public $name; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -1161,7 +1065,6 @@ public function setLabelWithOp($labelWithOp) { $this->labelWithOp = $labelWithOp; } - public function getLabelWithOp() { return $this->labelWithOp; @@ -1170,28 +1073,18 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Customsearch_ResultPagemap extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Customsearch_Search extends Google_Collection @@ -1215,11 +1108,11 @@ class Google_Service_Customsearch_Search extends Google_Collection protected $urlType = 'Google_Service_Customsearch_SearchUrl'; protected $urlDataType = ''; + public function setContext(Google_Service_Customsearch_Context $context) { $this->context = $context; } - public function getContext() { return $this->context; @@ -1228,7 +1121,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1237,7 +1129,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1246,7 +1137,6 @@ public function setPromotions($promotions) { $this->promotions = $promotions; } - public function getPromotions() { return $this->promotions; @@ -1255,7 +1145,6 @@ public function setQueries($queries) { $this->queries = $queries; } - public function getQueries() { return $this->queries; @@ -1264,7 +1153,6 @@ public function setSearchInformation(Google_Service_Customsearch_SearchSearchInf { $this->searchInformation = $searchInformation; } - public function getSearchInformation() { return $this->searchInformation; @@ -1273,7 +1161,6 @@ public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling { $this->spelling = $spelling; } - public function getSpelling() { return $this->spelling; @@ -1282,20 +1169,14 @@ public function setUrl(Google_Service_Customsearch_SearchUrl $url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } class Google_Service_Customsearch_SearchQueries extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Customsearch_SearchSearchInformation extends Google_Model @@ -1307,11 +1188,11 @@ class Google_Service_Customsearch_SearchSearchInformation extends Google_Model public $searchTime; public $totalResults; + public function setFormattedSearchTime($formattedSearchTime) { $this->formattedSearchTime = $formattedSearchTime; } - public function getFormattedSearchTime() { return $this->formattedSearchTime; @@ -1320,7 +1201,6 @@ public function setFormattedTotalResults($formattedTotalResults) { $this->formattedTotalResults = $formattedTotalResults; } - public function getFormattedTotalResults() { return $this->formattedTotalResults; @@ -1329,7 +1209,6 @@ public function setSearchTime($searchTime) { $this->searchTime = $searchTime; } - public function getSearchTime() { return $this->searchTime; @@ -1338,12 +1217,10 @@ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } - public function getTotalResults() { return $this->totalResults; } - } class Google_Service_Customsearch_SearchSpelling extends Google_Model @@ -1353,11 +1230,11 @@ 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; @@ -1366,12 +1243,10 @@ public function setHtmlCorrectedQuery($htmlCorrectedQuery) { $this->htmlCorrectedQuery = $htmlCorrectedQuery; } - public function getHtmlCorrectedQuery() { return $this->htmlCorrectedQuery; } - } class Google_Service_Customsearch_SearchUrl extends Google_Model @@ -1381,11 +1256,11 @@ 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; @@ -1394,10 +1269,8 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } From e79e896a67d403ea09b242c7f4cd5d71ea67ef37 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:48 -0800 Subject: [PATCH 0499/1274] Updated Datastore.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Datastore.php | 212 ++++++++----------------------- 1 file changed, 52 insertions(+), 160 deletions(-) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index b9d983ddc..e627d9d0e 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -19,8 +19,7 @@ * Service definition for Datastore (v1beta2). * *

- * API for accessing Google Cloud Datastore. - *

+ * API for accessing Google Cloud Datastore.

* *

* For more information about this service, see the API @@ -32,11 +31,14 @@ class Google_Service_Datastore extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Cloud Datastore data. */ - const DATASTORE = "https://www.googleapis.com/auth/datastore"; + const DATASTORE = + "https://www.googleapis.com/auth/datastore"; /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; public $datasets; @@ -142,8 +144,7 @@ class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource * Allocate IDs for incomplete keys (useful for referencing an entity before it * is inserted). (datasets.allocateIds) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_AllocateIdsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_AllocateIdsResponse @@ -154,11 +155,11 @@ public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequ $params = array_merge($params, $optParams); return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse"); } + /** * Begin a new transaction. (datasets.beginTransaction) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_BeginTransactionRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_BeginTransactionResponse @@ -169,12 +170,12 @@ public function beginTransaction($datasetId, Google_Service_Datastore_BeginTrans $params = array_merge($params, $optParams); return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse"); } + /** * Commit a transaction, optionally creating, deleting or modifying some * entities. (datasets.commit) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_CommitRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_CommitResponse @@ -185,11 +186,11 @@ public function commit($datasetId, Google_Service_Datastore_CommitRequest $postB $params = array_merge($params, $optParams); return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse"); } + /** * Look up some entities by key. (datasets.lookup) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_LookupRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_LookupResponse @@ -200,11 +201,11 @@ public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postB $params = array_merge($params, $optParams); return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse"); } + /** * Roll back a transaction. (datasets.rollback) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_RollbackRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_RollbackResponse @@ -215,11 +216,11 @@ public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $p $params = array_merge($params, $optParams); return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse"); } + /** * Query for entities. (datasets.runQuery) * - * @param string $datasetId - * Identifies the dataset. + * @param string $datasetId Identifies the dataset. * @param Google_RunQueryRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Datastore_RunQueryResponse @@ -243,16 +244,15 @@ class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; + public function setKeys($keys) { $this->keys = $keys; } - public function getKeys() { return $this->keys; } - } class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection @@ -265,11 +265,11 @@ class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection protected $keysType = 'Google_Service_Datastore_Key'; protected $keysDataType = 'array'; + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; @@ -278,12 +278,10 @@ public function setKeys($keys) { $this->keys = $keys; } - public function getKeys() { return $this->keys; } - } class Google_Service_Datastore_BeginTransactionRequest extends Google_Model @@ -292,16 +290,15 @@ class Google_Service_Datastore_BeginTransactionRequest extends Google_Model ); public $isolationLevel; + public function setIsolationLevel($isolationLevel) { $this->isolationLevel = $isolationLevel; } - public function getIsolationLevel() { return $this->isolationLevel; } - } class Google_Service_Datastore_BeginTransactionResponse extends Google_Model @@ -312,11 +309,11 @@ class Google_Service_Datastore_BeginTransactionResponse extends Google_Model protected $headerDataType = ''; public $transaction; + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; @@ -325,12 +322,10 @@ public function setTransaction($transaction) { $this->transaction = $transaction; } - public function getTransaction() { return $this->transaction; } - } class Google_Service_Datastore_CommitRequest extends Google_Model @@ -343,11 +338,11 @@ class Google_Service_Datastore_CommitRequest extends Google_Model protected $mutationDataType = ''; public $transaction; + public function setIgnoreReadOnly($ignoreReadOnly) { $this->ignoreReadOnly = $ignoreReadOnly; } - public function getIgnoreReadOnly() { return $this->ignoreReadOnly; @@ -356,7 +351,6 @@ public function setMode($mode) { $this->mode = $mode; } - public function getMode() { return $this->mode; @@ -365,7 +359,6 @@ public function setMutation(Google_Service_Datastore_Mutation $mutation) { $this->mutation = $mutation; } - public function getMutation() { return $this->mutation; @@ -374,12 +367,10 @@ public function setTransaction($transaction) { $this->transaction = $transaction; } - public function getTransaction() { return $this->transaction; } - } class Google_Service_Datastore_CommitResponse extends Google_Model @@ -391,11 +382,11 @@ class Google_Service_Datastore_CommitResponse extends Google_Model protected $mutationResultType = 'Google_Service_Datastore_MutationResult'; protected $mutationResultDataType = ''; + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; @@ -404,12 +395,10 @@ public function setMutationResult(Google_Service_Datastore_MutationResult $mutat { $this->mutationResult = $mutationResult; } - public function getMutationResult() { return $this->mutationResult; } - } class Google_Service_Datastore_CompositeFilter extends Google_Collection @@ -421,11 +410,11 @@ class Google_Service_Datastore_CompositeFilter extends Google_Collection protected $filtersDataType = 'array'; public $operator; + public function setFilters($filters) { $this->filters = $filters; } - public function getFilters() { return $this->filters; @@ -434,12 +423,10 @@ public function setOperator($operator) { $this->operator = $operator; } - public function getOperator() { return $this->operator; } - } class Google_Service_Datastore_Entity extends Google_Model @@ -451,11 +438,11 @@ class Google_Service_Datastore_Entity extends Google_Model protected $propertiesType = 'Google_Service_Datastore_Property'; protected $propertiesDataType = 'map'; + public function setKey(Google_Service_Datastore_Key $key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -464,20 +451,14 @@ public function setProperties($properties) { $this->properties = $properties; } - public function getProperties() { return $this->properties; } - } class Google_Service_Datastore_EntityProperties extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Datastore_EntityResult extends Google_Model @@ -487,16 +468,15 @@ class Google_Service_Datastore_EntityResult extends Google_Model protected $entityType = 'Google_Service_Datastore_Entity'; protected $entityDataType = ''; + public function setEntity(Google_Service_Datastore_Entity $entity) { $this->entity = $entity; } - public function getEntity() { return $this->entity; } - } class Google_Service_Datastore_Filter extends Google_Model @@ -508,11 +488,11 @@ class Google_Service_Datastore_Filter extends Google_Model protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter'; protected $propertyFilterDataType = ''; + public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter) { $this->compositeFilter = $compositeFilter; } - public function getCompositeFilter() { return $this->compositeFilter; @@ -521,12 +501,10 @@ public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $prope { $this->propertyFilter = $propertyFilter; } - public function getPropertyFilter() { return $this->propertyFilter; } - } class Google_Service_Datastore_GqlQuery extends Google_Collection @@ -541,11 +519,11 @@ class Google_Service_Datastore_GqlQuery extends Google_Collection protected $numberArgsDataType = 'array'; public $queryString; + public function setAllowLiteral($allowLiteral) { $this->allowLiteral = $allowLiteral; } - public function getAllowLiteral() { return $this->allowLiteral; @@ -554,7 +532,6 @@ public function setNameArgs($nameArgs) { $this->nameArgs = $nameArgs; } - public function getNameArgs() { return $this->nameArgs; @@ -563,7 +540,6 @@ public function setNumberArgs($numberArgs) { $this->numberArgs = $numberArgs; } - public function getNumberArgs() { return $this->numberArgs; @@ -572,12 +548,10 @@ public function setQueryString($queryString) { $this->queryString = $queryString; } - public function getQueryString() { return $this->queryString; } - } class Google_Service_Datastore_GqlQueryArg extends Google_Model @@ -589,11 +563,11 @@ class Google_Service_Datastore_GqlQueryArg extends Google_Model protected $valueType = 'Google_Service_Datastore_Value'; protected $valueDataType = ''; + public function setCursor($cursor) { $this->cursor = $cursor; } - public function getCursor() { return $this->cursor; @@ -602,7 +576,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -611,12 +584,10 @@ public function setValue(Google_Service_Datastore_Value $value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Datastore_Key extends Google_Collection @@ -629,11 +600,11 @@ class Google_Service_Datastore_Key extends Google_Collection protected $pathType = 'Google_Service_Datastore_KeyPathElement'; protected $pathDataType = 'array'; + public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) { $this->partitionId = $partitionId; } - public function getPartitionId() { return $this->partitionId; @@ -642,12 +613,10 @@ public function setPath($path) { $this->path = $path; } - public function getPath() { return $this->path; } - } class Google_Service_Datastore_KeyPathElement extends Google_Model @@ -658,11 +627,11 @@ class Google_Service_Datastore_KeyPathElement extends Google_Model public $kind; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -671,7 +640,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -680,12 +648,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Datastore_KindExpression extends Google_Model @@ -694,16 +660,15 @@ class Google_Service_Datastore_KindExpression extends Google_Model ); public $name; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Datastore_LookupRequest extends Google_Collection @@ -716,11 +681,11 @@ class Google_Service_Datastore_LookupRequest extends Google_Collection protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; protected $readOptionsDataType = ''; + public function setKeys($keys) { $this->keys = $keys; } - public function getKeys() { return $this->keys; @@ -729,12 +694,10 @@ public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions { $this->readOptions = $readOptions; } - public function getReadOptions() { return $this->readOptions; } - } class Google_Service_Datastore_LookupResponse extends Google_Collection @@ -751,11 +714,11 @@ class Google_Service_Datastore_LookupResponse extends Google_Collection protected $missingType = 'Google_Service_Datastore_EntityResult'; protected $missingDataType = 'array'; + public function setDeferred($deferred) { $this->deferred = $deferred; } - public function getDeferred() { return $this->deferred; @@ -764,7 +727,6 @@ public function setFound($found) { $this->found = $found; } - public function getFound() { return $this->found; @@ -773,7 +735,6 @@ public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; @@ -782,12 +743,10 @@ public function setMissing($missing) { $this->missing = $missing; } - public function getMissing() { return $this->missing; } - } class Google_Service_Datastore_Mutation extends Google_Collection @@ -807,11 +766,11 @@ class Google_Service_Datastore_Mutation extends Google_Collection protected $upsertType = 'Google_Service_Datastore_Entity'; protected $upsertDataType = 'array'; + public function setDelete($delete) { $this->delete = $delete; } - public function getDelete() { return $this->delete; @@ -820,7 +779,6 @@ public function setForce($force) { $this->force = $force; } - public function getForce() { return $this->force; @@ -829,7 +787,6 @@ public function setInsert($insert) { $this->insert = $insert; } - public function getInsert() { return $this->insert; @@ -838,7 +795,6 @@ public function setInsertAutoId($insertAutoId) { $this->insertAutoId = $insertAutoId; } - public function getInsertAutoId() { return $this->insertAutoId; @@ -847,7 +803,6 @@ public function setUpdate($update) { $this->update = $update; } - public function getUpdate() { return $this->update; @@ -856,12 +811,10 @@ public function setUpsert($upsert) { $this->upsert = $upsert; } - public function getUpsert() { return $this->upsert; } - } class Google_Service_Datastore_MutationResult extends Google_Collection @@ -873,11 +826,11 @@ class Google_Service_Datastore_MutationResult extends Google_Collection protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; protected $insertAutoIdKeysDataType = 'array'; + public function setIndexUpdates($indexUpdates) { $this->indexUpdates = $indexUpdates; } - public function getIndexUpdates() { return $this->indexUpdates; @@ -886,12 +839,10 @@ public function setInsertAutoIdKeys($insertAutoIdKeys) { $this->insertAutoIdKeys = $insertAutoIdKeys; } - public function getInsertAutoIdKeys() { return $this->insertAutoIdKeys; } - } class Google_Service_Datastore_PartitionId extends Google_Model @@ -901,11 +852,11 @@ class Google_Service_Datastore_PartitionId extends Google_Model public $datasetId; public $namespace; + public function setDatasetId($datasetId) { $this->datasetId = $datasetId; } - public function getDatasetId() { return $this->datasetId; @@ -914,12 +865,10 @@ public function setNamespace($namespace) { $this->namespace = $namespace; } - public function getNamespace() { return $this->namespace; } - } class Google_Service_Datastore_Property extends Google_Collection @@ -943,11 +892,11 @@ class Google_Service_Datastore_Property extends Google_Collection public $meaning; public $stringValue; + public function setBlobKeyValue($blobKeyValue) { $this->blobKeyValue = $blobKeyValue; } - public function getBlobKeyValue() { return $this->blobKeyValue; @@ -956,7 +905,6 @@ public function setBlobValue($blobValue) { $this->blobValue = $blobValue; } - public function getBlobValue() { return $this->blobValue; @@ -965,7 +913,6 @@ public function setBooleanValue($booleanValue) { $this->booleanValue = $booleanValue; } - public function getBooleanValue() { return $this->booleanValue; @@ -974,7 +921,6 @@ public function setDateTimeValue($dateTimeValue) { $this->dateTimeValue = $dateTimeValue; } - public function getDateTimeValue() { return $this->dateTimeValue; @@ -983,7 +929,6 @@ public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } - public function getDoubleValue() { return $this->doubleValue; @@ -992,7 +937,6 @@ public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { $this->entityValue = $entityValue; } - public function getEntityValue() { return $this->entityValue; @@ -1001,7 +945,6 @@ public function setIndexed($indexed) { $this->indexed = $indexed; } - public function getIndexed() { return $this->indexed; @@ -1010,7 +953,6 @@ public function setIntegerValue($integerValue) { $this->integerValue = $integerValue; } - public function getIntegerValue() { return $this->integerValue; @@ -1019,7 +961,6 @@ public function setKeyValue(Google_Service_Datastore_Key $keyValue) { $this->keyValue = $keyValue; } - public function getKeyValue() { return $this->keyValue; @@ -1028,7 +969,6 @@ public function setListValue($listValue) { $this->listValue = $listValue; } - public function getListValue() { return $this->listValue; @@ -1037,7 +977,6 @@ public function setMeaning($meaning) { $this->meaning = $meaning; } - public function getMeaning() { return $this->meaning; @@ -1046,12 +985,10 @@ public function setStringValue($stringValue) { $this->stringValue = $stringValue; } - public function getStringValue() { return $this->stringValue; } - } class Google_Service_Datastore_PropertyExpression extends Google_Model @@ -1062,11 +999,11 @@ class Google_Service_Datastore_PropertyExpression extends Google_Model protected $propertyType = 'Google_Service_Datastore_PropertyReference'; protected $propertyDataType = ''; + public function setAggregationFunction($aggregationFunction) { $this->aggregationFunction = $aggregationFunction; } - public function getAggregationFunction() { return $this->aggregationFunction; @@ -1075,12 +1012,10 @@ public function setProperty(Google_Service_Datastore_PropertyReference $property { $this->property = $property; } - public function getProperty() { return $this->property; } - } class Google_Service_Datastore_PropertyFilter extends Google_Model @@ -1093,11 +1028,11 @@ class Google_Service_Datastore_PropertyFilter extends Google_Model protected $valueType = 'Google_Service_Datastore_Value'; protected $valueDataType = ''; + public function setOperator($operator) { $this->operator = $operator; } - public function getOperator() { return $this->operator; @@ -1106,7 +1041,6 @@ public function setProperty(Google_Service_Datastore_PropertyReference $property { $this->property = $property; } - public function getProperty() { return $this->property; @@ -1115,12 +1049,10 @@ public function setValue(Google_Service_Datastore_Value $value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Datastore_PropertyOrder extends Google_Model @@ -1131,11 +1063,11 @@ class Google_Service_Datastore_PropertyOrder extends Google_Model protected $propertyType = 'Google_Service_Datastore_PropertyReference'; protected $propertyDataType = ''; + public function setDirection($direction) { $this->direction = $direction; } - public function getDirection() { return $this->direction; @@ -1144,12 +1076,10 @@ public function setProperty(Google_Service_Datastore_PropertyReference $property { $this->property = $property; } - public function getProperty() { return $this->property; } - } class Google_Service_Datastore_PropertyReference extends Google_Model @@ -1158,16 +1088,15 @@ class Google_Service_Datastore_PropertyReference extends Google_Model ); public $name; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Datastore_Query extends Google_Collection @@ -1190,11 +1119,11 @@ class Google_Service_Datastore_Query extends Google_Collection protected $projectionDataType = 'array'; public $startCursor; + public function setEndCursor($endCursor) { $this->endCursor = $endCursor; } - public function getEndCursor() { return $this->endCursor; @@ -1203,7 +1132,6 @@ public function setFilter(Google_Service_Datastore_Filter $filter) { $this->filter = $filter; } - public function getFilter() { return $this->filter; @@ -1212,7 +1140,6 @@ public function setGroupBy($groupBy) { $this->groupBy = $groupBy; } - public function getGroupBy() { return $this->groupBy; @@ -1221,7 +1148,6 @@ public function setKinds($kinds) { $this->kinds = $kinds; } - public function getKinds() { return $this->kinds; @@ -1230,7 +1156,6 @@ public function setLimit($limit) { $this->limit = $limit; } - public function getLimit() { return $this->limit; @@ -1239,7 +1164,6 @@ public function setOffset($offset) { $this->offset = $offset; } - public function getOffset() { return $this->offset; @@ -1248,7 +1172,6 @@ public function setOrder($order) { $this->order = $order; } - public function getOrder() { return $this->order; @@ -1257,7 +1180,6 @@ public function setProjection($projection) { $this->projection = $projection; } - public function getProjection() { return $this->projection; @@ -1266,12 +1188,10 @@ public function setStartCursor($startCursor) { $this->startCursor = $startCursor; } - public function getStartCursor() { return $this->startCursor; } - } class Google_Service_Datastore_QueryResultBatch extends Google_Collection @@ -1286,11 +1206,11 @@ class Google_Service_Datastore_QueryResultBatch extends Google_Collection public $moreResults; public $skippedResults; + public function setEndCursor($endCursor) { $this->endCursor = $endCursor; } - public function getEndCursor() { return $this->endCursor; @@ -1299,7 +1219,6 @@ public function setEntityResultType($entityResultType) { $this->entityResultType = $entityResultType; } - public function getEntityResultType() { return $this->entityResultType; @@ -1308,7 +1227,6 @@ public function setEntityResults($entityResults) { $this->entityResults = $entityResults; } - public function getEntityResults() { return $this->entityResults; @@ -1317,7 +1235,6 @@ public function setMoreResults($moreResults) { $this->moreResults = $moreResults; } - public function getMoreResults() { return $this->moreResults; @@ -1326,12 +1243,10 @@ public function setSkippedResults($skippedResults) { $this->skippedResults = $skippedResults; } - public function getSkippedResults() { return $this->skippedResults; } - } class Google_Service_Datastore_ReadOptions extends Google_Model @@ -1341,11 +1256,11 @@ class Google_Service_Datastore_ReadOptions extends Google_Model public $readConsistency; public $transaction; + public function setReadConsistency($readConsistency) { $this->readConsistency = $readConsistency; } - public function getReadConsistency() { return $this->readConsistency; @@ -1354,12 +1269,10 @@ public function setTransaction($transaction) { $this->transaction = $transaction; } - public function getTransaction() { return $this->transaction; } - } class Google_Service_Datastore_ResponseHeader extends Google_Model @@ -1368,16 +1281,15 @@ class Google_Service_Datastore_ResponseHeader extends Google_Model ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Datastore_RollbackRequest extends Google_Model @@ -1386,16 +1298,15 @@ class Google_Service_Datastore_RollbackRequest extends Google_Model ); public $transaction; + public function setTransaction($transaction) { $this->transaction = $transaction; } - public function getTransaction() { return $this->transaction; } - } class Google_Service_Datastore_RollbackResponse extends Google_Model @@ -1405,16 +1316,15 @@ class Google_Service_Datastore_RollbackResponse extends Google_Model protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; } - } class Google_Service_Datastore_RunQueryRequest extends Google_Model @@ -1430,11 +1340,11 @@ class Google_Service_Datastore_RunQueryRequest extends Google_Model protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; protected $readOptionsDataType = ''; + public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery) { $this->gqlQuery = $gqlQuery; } - public function getGqlQuery() { return $this->gqlQuery; @@ -1443,7 +1353,6 @@ public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId { $this->partitionId = $partitionId; } - public function getPartitionId() { return $this->partitionId; @@ -1452,7 +1361,6 @@ public function setQuery(Google_Service_Datastore_Query $query) { $this->query = $query; } - public function getQuery() { return $this->query; @@ -1461,12 +1369,10 @@ public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions { $this->readOptions = $readOptions; } - public function getReadOptions() { return $this->readOptions; } - } class Google_Service_Datastore_RunQueryResponse extends Google_Model @@ -1478,11 +1384,11 @@ class Google_Service_Datastore_RunQueryResponse extends Google_Model protected $headerType = 'Google_Service_Datastore_ResponseHeader'; protected $headerDataType = ''; + public function setBatch(Google_Service_Datastore_QueryResultBatch $batch) { $this->batch = $batch; } - public function getBatch() { return $this->batch; @@ -1491,12 +1397,10 @@ public function setHeader(Google_Service_Datastore_ResponseHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; } - } class Google_Service_Datastore_Value extends Google_Collection @@ -1520,11 +1424,11 @@ class Google_Service_Datastore_Value extends Google_Collection public $meaning; public $stringValue; + public function setBlobKeyValue($blobKeyValue) { $this->blobKeyValue = $blobKeyValue; } - public function getBlobKeyValue() { return $this->blobKeyValue; @@ -1533,7 +1437,6 @@ public function setBlobValue($blobValue) { $this->blobValue = $blobValue; } - public function getBlobValue() { return $this->blobValue; @@ -1542,7 +1445,6 @@ public function setBooleanValue($booleanValue) { $this->booleanValue = $booleanValue; } - public function getBooleanValue() { return $this->booleanValue; @@ -1551,7 +1453,6 @@ public function setDateTimeValue($dateTimeValue) { $this->dateTimeValue = $dateTimeValue; } - public function getDateTimeValue() { return $this->dateTimeValue; @@ -1560,7 +1461,6 @@ public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } - public function getDoubleValue() { return $this->doubleValue; @@ -1569,7 +1469,6 @@ public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { $this->entityValue = $entityValue; } - public function getEntityValue() { return $this->entityValue; @@ -1578,7 +1477,6 @@ public function setIndexed($indexed) { $this->indexed = $indexed; } - public function getIndexed() { return $this->indexed; @@ -1587,7 +1485,6 @@ public function setIntegerValue($integerValue) { $this->integerValue = $integerValue; } - public function getIntegerValue() { return $this->integerValue; @@ -1596,7 +1493,6 @@ public function setKeyValue(Google_Service_Datastore_Key $keyValue) { $this->keyValue = $keyValue; } - public function getKeyValue() { return $this->keyValue; @@ -1605,7 +1501,6 @@ public function setListValue($listValue) { $this->listValue = $listValue; } - public function getListValue() { return $this->listValue; @@ -1614,7 +1509,6 @@ public function setMeaning($meaning) { $this->meaning = $meaning; } - public function getMeaning() { return $this->meaning; @@ -1623,10 +1517,8 @@ public function setStringValue($stringValue) { $this->stringValue = $stringValue; } - public function getStringValue() { return $this->stringValue; } - } From 553616b71694633385df5e3291ae717773c79c63 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:49 -0800 Subject: [PATCH 0500/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 254 +++++++++++++-------------------- 1 file changed, 101 insertions(+), 153 deletions(-) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index dbfb8b47c..baecaa773 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -19,8 +19,7 @@ * Service definition for Fitness (v1). * *

- * Google Fit API - *

+ * Google Fit API

* *

* For more information about this service, see the API @@ -32,17 +31,23 @@ class Google_Service_Fitness extends Google_Service { /** View your activity information in Google Fit. */ - const FITNESS_ACTIVITY_READ = "https://www.googleapis.com/auth/fitness.activity.read"; + const FITNESS_ACTIVITY_READ = + "https://www.googleapis.com/auth/fitness.activity.read"; /** View and store your activity information in Google Fit. */ - const FITNESS_ACTIVITY_WRITE = "https://www.googleapis.com/auth/fitness.activity.write"; + const FITNESS_ACTIVITY_WRITE = + "https://www.googleapis.com/auth/fitness.activity.write"; /** View body sensor information in Google Fit. */ - const FITNESS_BODY_READ = "https://www.googleapis.com/auth/fitness.body.read"; + const FITNESS_BODY_READ = + "https://www.googleapis.com/auth/fitness.body.read"; /** View and store body sensor data in Google Fit. */ - const FITNESS_BODY_WRITE = "https://www.googleapis.com/auth/fitness.body.write"; + const FITNESS_BODY_WRITE = + "https://www.googleapis.com/auth/fitness.body.write"; /** View your stored location data in Google Fit. */ - const FITNESS_LOCATION_READ = "https://www.googleapis.com/auth/fitness.location.read"; + const FITNESS_LOCATION_READ = + "https://www.googleapis.com/auth/fitness.location.read"; /** View and store your location data in Google Fit. */ - const FITNESS_LOCATION_WRITE = "https://www.googleapis.com/auth/fitness.location.write"; + const FITNESS_LOCATION_WRITE = + "https://www.googleapis.com/auth/fitness.location.write"; public $users_dataSources; public $users_dataSources_datasets; @@ -311,7 +316,6 @@ public function __construct(Google_Client $client) */ class Google_Service_Fitness_Users_Resource extends Google_Service_Resource { - } /** @@ -335,9 +339,8 @@ class Google_Service_Fitness_UsersDataSources_Resource extends Google_Service_Re * developer project number is obfuscated when read by any other developer * reading public data types. (dataSources.create) * - * @param string $userId - * Create the data source for the person identified. Use me to indicate the authenticated user. - * Only me is supported at this time. + * @param string $userId Create the data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. * @param Google_DataSource $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fitness_DataSource @@ -348,14 +351,14 @@ public function create($userId, Google_Service_Fitness_DataSource $postBody, $op $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Fitness_DataSource"); } + /** * Returns a data source identified by a data stream ID. (dataSources.get) * - * @param string $userId - * Retrieve a data source for the person identified. Use me to indicate the authenticated user. - * Only me is supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source to retrieve. + * @param string $userId Retrieve a data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source to + * retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Fitness_DataSource */ @@ -365,20 +368,19 @@ public function get($userId, $dataSourceId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fitness_DataSource"); } + /** * Lists all data sources that are visible to the developer, using the OAuth * scopes provided. The list is not exhaustive: the user may have private data * sources that are only visible to other developers or calls using other * scopes. (dataSources.listUsersDataSources) * - * @param string $userId - * List data sources for the person identified. Use me to indicate the authenticated user. Only me - * is supported at this time. + * @param string $userId List data sources for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. * @param array $optParams Optional parameters. * - * @opt_param string dataTypeName - * The names of data types to include in the list. If not specified, all data sources will be - * returned. + * @opt_param string dataTypeName The names of data types to include in the + * list. If not specified, all data sources will be returned. * @return Google_Service_Fitness_ListDataSourcesResponse */ public function listUsersDataSources($userId, $optParams = array()) @@ -387,6 +389,7 @@ public function listUsersDataSources($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse"); } + /** * Updates a given data source. It is an error to modify the data source's data * stream ID, data type, type, stream name or device information apart from the @@ -396,11 +399,9 @@ public function listUsersDataSources($userId, $optParams = array()) * Data sources are identified by their data stream ID. This method supports * patch semantics. (dataSources.patch) * - * @param string $userId - * Update the data source for the person identified. Use me to indicate the authenticated user. - * Only me is supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source to update. + * @param string $userId Update the data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source to update. * @param Google_DataSource $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fitness_DataSource @@ -411,6 +412,7 @@ public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fitness_DataSource"); } + /** * Updates a given data source. It is an error to modify the data source's data * stream ID, data type, type, stream name or device information apart from the @@ -419,11 +421,9 @@ public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource * * Data sources are identified by their data stream ID. (dataSources.update) * - * @param string $userId - * Update the data source for the person identified. Use me to indicate the authenticated user. - * Only me is supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source to update. + * @param string $userId Update the data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source to update. * @param Google_DataSource $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fitness_DataSource @@ -456,21 +456,20 @@ class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Se * the dataset, only the overlapping portion of the data point will be deleted. * (datasets.delete) * - * @param string $userId - * Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me - * is supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source that created the dataset. - * @param string $datasetId - * Dataset identifier that is a composite of the minimum data point start time and maximum data - * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- - * endTime" where startTime and endTime are 64 bit integers. + * @param string $userId Delete a dataset for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source that + * created the dataset. + * @param string $datasetId Dataset identifier that is a composite of the + * minimum data point start time and maximum data point end time represented as + * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" + * where startTime and endTime are 64 bit integers. * @param array $optParams Optional parameters. * - * @opt_param string modifiedTimeMillis - * When the operation was performed on the client. - * @opt_param string currentTimeMillis - * The client's current time in milliseconds since epoch. + * @opt_param string modifiedTimeMillis When the operation was performed on the + * client. + * @opt_param string currentTimeMillis The client's current time in milliseconds + * since epoch. */ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) { @@ -478,6 +477,7 @@ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Returns a dataset containing all data points whose start and end times * overlap with the specified range of the dataset minimum start time and @@ -485,15 +485,14 @@ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) * or equal to the dataset end time and whose end time is greater than or equal * to the dataset start time. (datasets.get) * - * @param string $userId - * Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me - * is supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source that created the dataset. - * @param string $datasetId - * Dataset identifier that is a composite of the minimum data point start time and maximum data - * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- - * endTime" where startTime and endTime are 64 bit integers. + * @param string $userId Retrieve a dataset for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source that + * created the dataset. + * @param string $datasetId Dataset identifier that is a composite of the + * minimum data point start time and maximum data point end time represented as + * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" + * where startTime and endTime are 64 bit integers. * @param array $optParams Optional parameters. * @return Google_Service_Fitness_Dataset */ @@ -503,27 +502,27 @@ public function get($userId, $dataSourceId, $datasetId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fitness_Dataset"); } + /** * Adds data points to a dataset. The dataset need not be previously created. * All points within the given dataset will be returned with subsquent calls to * retrieve this dataset. Data points can belong to more than one dataset. This * method does not use patch semantics. (datasets.patch) * - * @param string $userId - * Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is - * supported at this time. - * @param string $dataSourceId - * The data stream ID of the data source that created the dataset. - * @param string $datasetId - * Dataset identifier that is a composite of the minimum data point start time and maximum data - * point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime- - * endTime" where startTime and endTime are 64 bit integers. + * @param string $userId Patch a dataset for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source that + * created the dataset. + * @param string $datasetId Dataset identifier that is a composite of the + * minimum data point start time and maximum data point end time represented as + * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" + * where startTime and endTime are 64 bit integers. * @param Google_Dataset $postBody * @param array $optParams Optional parameters. * - * @opt_param string currentTimeMillis - * The client's current time in milliseconds since epoch. Note that the minStartTimeNs and - * maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. + * @opt_param string currentTimeMillis The client's current time in milliseconds + * since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the + * request body are in nanoseconds instead of milliseconds. * @return Google_Service_Fitness_Dataset */ public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness_Dataset $postBody, $optParams = array()) @@ -547,15 +546,13 @@ class Google_Service_Fitness_UsersSessions_Resource extends Google_Service_Resou /** * Deletes a session specified by the given session ID. (sessions.delete) * - * @param string $userId - * Delete a session for the person identified. Use me to indicate the authenticated user. Only me - * is supported at this time. - * @param string $sessionId - * The ID of the session to be deleted. + * @param string $userId Delete a session for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. + * @param string $sessionId The ID of the session to be deleted. * @param array $optParams Optional parameters. * - * @opt_param string currentTimeMillis - * The client's current time in milliseconds since epoch. + * @opt_param string currentTimeMillis The client's current time in milliseconds + * since epoch. */ public function delete($userId, $sessionId, $optParams = array()) { @@ -563,26 +560,24 @@ public function delete($userId, $sessionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Lists sessions previously created. (sessions.listUsersSessions) * - * @param string $userId - * List sessions for the person identified. Use me to indicate the authenticated user. Only me is - * supported at this time. + * @param string $userId List sessions for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of nextPageToken from the previous response. - * @opt_param string endTime - * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in - * the response. - * @opt_param bool includeDeleted - * If true, deleted sessions will be returned. When set to true, sessions returned in this response - * will only have an ID and will not have any other fields. - * @opt_param string startTime - * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in - * the response. + * @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 endTime An RFC3339 timestamp. Only sessions ending between + * the start and end times will be included in the response. + * @opt_param bool includeDeleted If true, deleted sessions will be returned. + * When set to true, sessions returned in this response will only have an ID and + * will not have any other fields. + * @opt_param string startTime An RFC3339 timestamp. Only sessions ending + * between the start and end times will be included in the response. * @return Google_Service_Fitness_ListSessionsResponse */ public function listUsersSessions($userId, $optParams = array()) @@ -591,19 +586,18 @@ public function listUsersSessions($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fitness_ListSessionsResponse"); } + /** * Updates or insert a given session. (sessions.update) * - * @param string $userId - * Create sessions for the person identified. Use me to indicate the authenticated user. Only me is - * supported at this time. - * @param string $sessionId - * The ID of the session to be created. + * @param string $userId Create sessions for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. + * @param string $sessionId The ID of the session to be created. * @param Google_Session $postBody * @param array $optParams Optional parameters. * - * @opt_param string currentTimeMillis - * The client's current time in milliseconds since epoch. + * @opt_param string currentTimeMillis The client's current time in milliseconds + * since epoch. * @return Google_Service_Fitness_Session */ public function update($userId, $sessionId, Google_Service_Fitness_Session $postBody, $optParams = array()) @@ -626,11 +620,11 @@ class Google_Service_Fitness_Application extends Google_Model public $packageName; public $version; + public function setDetailsUrl($detailsUrl) { $this->detailsUrl = $detailsUrl; } - public function getDetailsUrl() { return $this->detailsUrl; @@ -639,7 +633,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -648,7 +641,6 @@ public function setPackageName($packageName) { $this->packageName = $packageName; } - public function getPackageName() { return $this->packageName; @@ -657,12 +649,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Fitness_DataPoint extends Google_Collection @@ -680,11 +670,11 @@ class Google_Service_Fitness_DataPoint extends Google_Collection protected $valueType = 'Google_Service_Fitness_Value'; protected $valueDataType = 'array'; + public function setComputationTimeMillis($computationTimeMillis) { $this->computationTimeMillis = $computationTimeMillis; } - public function getComputationTimeMillis() { return $this->computationTimeMillis; @@ -693,7 +683,6 @@ public function setDataTypeName($dataTypeName) { $this->dataTypeName = $dataTypeName; } - public function getDataTypeName() { return $this->dataTypeName; @@ -702,7 +691,6 @@ public function setEndTimeNanos($endTimeNanos) { $this->endTimeNanos = $endTimeNanos; } - public function getEndTimeNanos() { return $this->endTimeNanos; @@ -711,7 +699,6 @@ public function setModifiedTimeMillis($modifiedTimeMillis) { $this->modifiedTimeMillis = $modifiedTimeMillis; } - public function getModifiedTimeMillis() { return $this->modifiedTimeMillis; @@ -720,7 +707,6 @@ public function setOriginDataSourceId($originDataSourceId) { $this->originDataSourceId = $originDataSourceId; } - public function getOriginDataSourceId() { return $this->originDataSourceId; @@ -729,7 +715,6 @@ public function setRawTimestampNanos($rawTimestampNanos) { $this->rawTimestampNanos = $rawTimestampNanos; } - public function getRawTimestampNanos() { return $this->rawTimestampNanos; @@ -738,7 +723,6 @@ public function setStartTimeNanos($startTimeNanos) { $this->startTimeNanos = $startTimeNanos; } - public function getStartTimeNanos() { return $this->startTimeNanos; @@ -747,12 +731,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Fitness_DataSource extends Google_Model @@ -770,11 +752,11 @@ class Google_Service_Fitness_DataSource extends Google_Model public $name; public $type; + public function setApplication(Google_Service_Fitness_Application $application) { $this->application = $application; } - public function getApplication() { return $this->application; @@ -783,7 +765,6 @@ public function setDataStreamId($dataStreamId) { $this->dataStreamId = $dataStreamId; } - public function getDataStreamId() { return $this->dataStreamId; @@ -792,7 +773,6 @@ public function setDataStreamName($dataStreamName) { $this->dataStreamName = $dataStreamName; } - public function getDataStreamName() { return $this->dataStreamName; @@ -801,7 +781,6 @@ public function setDataType(Google_Service_Fitness_DataType $dataType) { $this->dataType = $dataType; } - public function getDataType() { return $this->dataType; @@ -810,7 +789,6 @@ public function setDevice(Google_Service_Fitness_Device $device) { $this->device = $device; } - public function getDevice() { return $this->device; @@ -819,7 +797,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -828,12 +805,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Fitness_DataType extends Google_Collection @@ -845,11 +820,11 @@ class Google_Service_Fitness_DataType extends Google_Collection protected $fieldDataType = 'array'; public $name; + public function setField($field) { $this->field = $field; } - public function getField() { return $this->field; @@ -858,12 +833,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Fitness_DataTypeField extends Google_Model @@ -873,11 +846,11 @@ class Google_Service_Fitness_DataTypeField extends Google_Model public $format; public $name; + public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; @@ -886,12 +859,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_Fitness_Dataset extends Google_Collection @@ -905,11 +876,11 @@ class Google_Service_Fitness_Dataset extends Google_Collection protected $pointType = 'Google_Service_Fitness_DataPoint'; protected $pointDataType = 'array'; + public function setDataSourceId($dataSourceId) { $this->dataSourceId = $dataSourceId; } - public function getDataSourceId() { return $this->dataSourceId; @@ -918,7 +889,6 @@ public function setMaxEndTimeNs($maxEndTimeNs) { $this->maxEndTimeNs = $maxEndTimeNs; } - public function getMaxEndTimeNs() { return $this->maxEndTimeNs; @@ -927,7 +897,6 @@ public function setMinStartTimeNs($minStartTimeNs) { $this->minStartTimeNs = $minStartTimeNs; } - public function getMinStartTimeNs() { return $this->minStartTimeNs; @@ -936,12 +905,10 @@ public function setPoint($point) { $this->point = $point; } - public function getPoint() { return $this->point; } - } class Google_Service_Fitness_Device extends Google_Model @@ -954,11 +921,11 @@ class Google_Service_Fitness_Device extends Google_Model public $uid; public $version; + public function setManufacturer($manufacturer) { $this->manufacturer = $manufacturer; } - public function getManufacturer() { return $this->manufacturer; @@ -967,7 +934,6 @@ public function setModel($model) { $this->model = $model; } - public function getModel() { return $this->model; @@ -976,7 +942,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -985,7 +950,6 @@ public function setUid($uid) { $this->uid = $uid; } - public function getUid() { return $this->uid; @@ -994,12 +958,10 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; } - } class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection @@ -1010,16 +972,15 @@ class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection protected $dataSourceType = 'Google_Service_Fitness_DataSource'; protected $dataSourceDataType = 'array'; + public function setDataSource($dataSource) { $this->dataSource = $dataSource; } - public function getDataSource() { return $this->dataSource; } - } class Google_Service_Fitness_ListSessionsResponse extends Google_Collection @@ -1033,11 +994,11 @@ class Google_Service_Fitness_ListSessionsResponse extends Google_Collection protected $sessionType = 'Google_Service_Fitness_Session'; protected $sessionDataType = 'array'; + public function setDeletedSession($deletedSession) { $this->deletedSession = $deletedSession; } - public function getDeletedSession() { return $this->deletedSession; @@ -1046,7 +1007,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1055,12 +1015,10 @@ public function setSession($session) { $this->session = $session; } - public function getSession() { return $this->session; } - } class Google_Service_Fitness_Session extends Google_Model @@ -1077,11 +1035,11 @@ class Google_Service_Fitness_Session extends Google_Model public $name; public $startTimeMillis; + public function setActivityType($activityType) { $this->activityType = $activityType; } - public function getActivityType() { return $this->activityType; @@ -1090,7 +1048,6 @@ public function setApplication(Google_Service_Fitness_Application $application) { $this->application = $application; } - public function getApplication() { return $this->application; @@ -1099,7 +1056,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -1108,7 +1064,6 @@ public function setEndTimeMillis($endTimeMillis) { $this->endTimeMillis = $endTimeMillis; } - public function getEndTimeMillis() { return $this->endTimeMillis; @@ -1117,7 +1072,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1126,7 +1080,6 @@ public function setModifiedTimeMillis($modifiedTimeMillis) { $this->modifiedTimeMillis = $modifiedTimeMillis; } - public function getModifiedTimeMillis() { return $this->modifiedTimeMillis; @@ -1135,7 +1088,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1144,12 +1096,10 @@ public function setStartTimeMillis($startTimeMillis) { $this->startTimeMillis = $startTimeMillis; } - public function getStartTimeMillis() { return $this->startTimeMillis; } - } class Google_Service_Fitness_Value extends Google_Model @@ -1159,11 +1109,11 @@ class Google_Service_Fitness_Value extends Google_Model public $fpVal; public $intVal; + public function setFpVal($fpVal) { $this->fpVal = $fpVal; } - public function getFpVal() { return $this->fpVal; @@ -1172,10 +1122,8 @@ public function setIntVal($intVal) { $this->intVal = $intVal; } - public function getIntVal() { return $this->intVal; } - } From a2c5494dff911a8eb61a4562811fb7bebe9eaa0f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:49 -0800 Subject: [PATCH 0501/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 107 ++++++------------------- 1 file changed, 25 insertions(+), 82 deletions(-) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 48abb51ce..02883eece 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -19,8 +19,8 @@ * Service definition for Pagespeedonline (v1). * *

- * Lets you analyze the performance of a web page and get tailored suggestions to make that page faster. - *

+ * 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 @@ -109,20 +109,17 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic * 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 string $url The URL to fetch and analyze * @param array $optParams Optional parameters. * - * @opt_param bool screenshot - * Indicates if binary data containing a screenshot should be included - * @opt_param string locale - * The locale used to localize formatted results - * @opt_param string rule - * A Page Speed rule to run; if none are given, all rules are run - * @opt_param string strategy - * The analysis strategy to use - * @opt_param bool filter_third_party_resources - * Indicates if third party resources should be filtered out before PageSpeed analysis. + * @opt_param bool screenshot Indicates if binary data containing a screenshot + * should be included + * @opt_param string locale The locale used to localize formatted results + * @opt_param string rule A Page Speed rule to run; if none are given, all rules + * are run + * @opt_param string strategy The analysis strategy to use + * @opt_param bool filter_third_party_resources Indicates if third party + * resources should be filtered out before PageSpeed analysis. * @return Google_Service_Pagespeedonline_Result */ public function runpagespeed($url, $optParams = array()) @@ -156,11 +153,11 @@ class Google_Service_Pagespeedonline_Result extends Google_Collection protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; protected $versionDataType = ''; + public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults) { $this->formattedResults = $formattedResults; } - public function getFormattedResults() { return $this->formattedResults; @@ -169,7 +166,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -178,7 +174,6 @@ public function setInvalidRules($invalidRules) { $this->invalidRules = $invalidRules; } - public function getInvalidRules() { return $this->invalidRules; @@ -187,7 +182,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -196,7 +190,6 @@ public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pag { $this->pageStats = $pageStats; } - public function getPageStats() { return $this->pageStats; @@ -205,7 +198,6 @@ public function setResponseCode($responseCode) { $this->responseCode = $responseCode; } - public function getResponseCode() { return $this->responseCode; @@ -214,7 +206,6 @@ public function setScore($score) { $this->score = $score; } - public function getScore() { return $this->score; @@ -223,7 +214,6 @@ public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $s { $this->screenshot = $screenshot; } - public function getScreenshot() { return $this->screenshot; @@ -232,7 +222,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -241,12 +230,10 @@ 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 @@ -257,11 +244,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement'; protected $ruleResultsDataType = 'map'; + public function setLocale($locale) { $this->locale = $locale; } - public function getLocale() { return $this->locale; @@ -270,20 +257,14 @@ public function setRuleResults($ruleResults) { $this->ruleResults = $ruleResults; } - public function getRuleResults() { return $this->ruleResults; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection @@ -296,11 +277,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement ex protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; protected $urlBlocksDataType = 'array'; + public function setLocalizedRuleName($localizedRuleName) { $this->localizedRuleName = $localizedRuleName; } - public function getLocalizedRuleName() { return $this->localizedRuleName; @@ -309,7 +290,6 @@ public function setRuleImpact($ruleImpact) { $this->ruleImpact = $ruleImpact; } - public function getRuleImpact() { return $this->ruleImpact; @@ -318,12 +298,10 @@ public function setUrlBlocks($urlBlocks) { $this->urlBlocks = $urlBlocks; } - public function getUrlBlocks() { return $this->urlBlocks; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection @@ -336,11 +314,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; protected $urlsDataType = 'array'; + public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header) { $this->header = $header; } - public function getHeader() { return $this->header; @@ -349,12 +327,10 @@ public function setUrls($urls) { $this->urls = $urls; } - public function getUrls() { return $this->urls; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection @@ -366,11 +342,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $argsDataType = 'array'; public $format; + public function setArgs($args) { $this->args = $args; } - public function getArgs() { return $this->args; @@ -379,12 +355,10 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model @@ -394,11 +368,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -407,12 +381,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection @@ -425,11 +397,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; protected $resultDataType = ''; + public function setDetails($details) { $this->details = $details; } - public function getDetails() { return $this->details; @@ -438,12 +410,10 @@ public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsR { $this->result = $result; } - public function getResult() { return $this->result; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection @@ -455,11 +425,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $argsDataType = 'array'; public $format; + public function setArgs($args) { $this->args = $args; } - public function getArgs() { return $this->args; @@ -468,12 +438,10 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model @@ -483,11 +451,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -496,12 +464,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection @@ -513,11 +479,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $argsDataType = 'array'; public $format; + public function setArgs($args) { $this->args = $args; } - public function getArgs() { return $this->args; @@ -526,12 +492,10 @@ public function setFormat($format) { $this->format = $format; } - public function getFormat() { return $this->format; } - } class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model @@ -541,11 +505,11 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl public $type; public $value; + public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -554,12 +518,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model @@ -580,11 +542,11 @@ class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model public $textResponseBytes; public $totalRequestBytes; + public function setCssResponseBytes($cssResponseBytes) { $this->cssResponseBytes = $cssResponseBytes; } - public function getCssResponseBytes() { return $this->cssResponseBytes; @@ -593,7 +555,6 @@ public function setFlashResponseBytes($flashResponseBytes) { $this->flashResponseBytes = $flashResponseBytes; } - public function getFlashResponseBytes() { return $this->flashResponseBytes; @@ -602,7 +563,6 @@ public function setHtmlResponseBytes($htmlResponseBytes) { $this->htmlResponseBytes = $htmlResponseBytes; } - public function getHtmlResponseBytes() { return $this->htmlResponseBytes; @@ -611,7 +571,6 @@ public function setImageResponseBytes($imageResponseBytes) { $this->imageResponseBytes = $imageResponseBytes; } - public function getImageResponseBytes() { return $this->imageResponseBytes; @@ -620,7 +579,6 @@ public function setJavascriptResponseBytes($javascriptResponseBytes) { $this->javascriptResponseBytes = $javascriptResponseBytes; } - public function getJavascriptResponseBytes() { return $this->javascriptResponseBytes; @@ -629,7 +587,6 @@ public function setNumberCssResources($numberCssResources) { $this->numberCssResources = $numberCssResources; } - public function getNumberCssResources() { return $this->numberCssResources; @@ -638,7 +595,6 @@ public function setNumberHosts($numberHosts) { $this->numberHosts = $numberHosts; } - public function getNumberHosts() { return $this->numberHosts; @@ -647,7 +603,6 @@ public function setNumberJsResources($numberJsResources) { $this->numberJsResources = $numberJsResources; } - public function getNumberJsResources() { return $this->numberJsResources; @@ -656,7 +611,6 @@ public function setNumberResources($numberResources) { $this->numberResources = $numberResources; } - public function getNumberResources() { return $this->numberResources; @@ -665,7 +619,6 @@ public function setNumberStaticResources($numberStaticResources) { $this->numberStaticResources = $numberStaticResources; } - public function getNumberStaticResources() { return $this->numberStaticResources; @@ -674,7 +627,6 @@ public function setOtherResponseBytes($otherResponseBytes) { $this->otherResponseBytes = $otherResponseBytes; } - public function getOtherResponseBytes() { return $this->otherResponseBytes; @@ -683,7 +635,6 @@ public function setTextResponseBytes($textResponseBytes) { $this->textResponseBytes = $textResponseBytes; } - public function getTextResponseBytes() { return $this->textResponseBytes; @@ -692,12 +643,10 @@ public function setTotalRequestBytes($totalRequestBytes) { $this->totalRequestBytes = $totalRequestBytes; } - public function getTotalRequestBytes() { return $this->totalRequestBytes; } - } class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model @@ -710,11 +659,11 @@ class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model public $mimeType; public $width; + public function setData($data) { $this->data = $data; } - public function getData() { return $this->data; @@ -723,7 +672,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -732,7 +680,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -741,12 +688,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Pagespeedonline_ResultVersion extends Google_Model @@ -756,11 +701,11 @@ 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; @@ -769,10 +714,8 @@ public function setMinor($minor) { $this->minor = $minor; } - public function getMinor() { return $this->minor; } - } From 87a4a28063ca0f716f3e10a535334ea69218d5b5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:49 -0800 Subject: [PATCH 0502/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 259 +++++++++---------------- 1 file changed, 92 insertions(+), 167 deletions(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index bd22b6de7..32e3cd201 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -19,8 +19,7 @@ * Service definition for CloudMonitoring (v2beta1). * *

- * API for accessing Google Cloud and API monitoring data. - *

+ * API for accessing Google Cloud and API monitoring data.

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_CloudMonitoring extends Google_Service { /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; + const MONITORING_READONLY = + "https://www.googleapis.com/auth/monitoring.readonly"; public $metricDescriptors; public $timeseries; @@ -207,21 +207,20 @@ class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_S * subsequent pages of results by setting the pageToken query parameter to the * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) * - * @param string $project - * The project id. The value can be the numeric project ID or string-based project name. + * @param string $project The project id. The value can be the numeric project + * ID or string-based project name. * @param array $optParams Optional parameters. * - * @opt_param int count - * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = - * 100. - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string query - * The query used to search against existing metrics. Separate keywords with a space; the service - * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. - * If this field is omitted, all metrics are returned. If an empty string is passed with this - * field, no metrics are returned. + * @opt_param int count Maximum number of metric descriptors per page. Used for + * pagination. If not specified, count = 100. + * @opt_param string pageToken The pagination token, which is used to page + * through large result sets. Set this value to the value of the nextPageToken + * to retrieve the next page of results. + * @opt_param string query The query used to search against existing metrics. + * Separate keywords with a space; the service joins all keywords with AND, + * meaning that all keywords must match for a metric to be returned. If this + * field is omitted, all metrics are returned. If an empty string is passed with + * this field, no metrics are returned. * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse */ public function listMetricDescriptors($project, $optParams = array()) @@ -250,48 +249,38 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * subsequent pages of results by setting the pageToken query parameter to the * value of the nextPageToken. (timeseries.listTimeseries) * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param string $project The project ID to which this time series belongs. The + * value can be the numeric project ID or string-based project name. + * @param string $metric Metric names are protocol-free URLs as listed in the + * Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest End of the time interval (inclusive), which is + * expressed as an RFC 3339 timestamp. * @param array $optParams Optional parameters. * - * @opt_param int count - * Maximum number of data points per page, which is used for pagination of results. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] + * @opt_param int count Maximum number of data points per page, which is used + * for pagination of results. + * @opt_param string timespan Length of the time interval to query, which is an + * alternative way to declare the interval: (youngest - timespan, youngest]. The + * timespan and oldest parameters should not be used together. Units: - s: + * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. + * Only one unit is allowed, for example: 2w3d is not allowed; you should use + * 17d instead. + * + * If neither oldest nor timespan is specified, the default time interval will + * be (youngest - 4 hours, youngest]. + * @opt_param string labels A collection of labels for the matching time series, + * which are represented as: - key==value: key equals the value - key=~value: + * key regex matches the value - key!=value: key does not equal the value - + * key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken The pagination token, which is used to page + * through large result sets. Set this value to the value of the nextPageToken + * to retrieve the next page of results. + * @opt_param string oldest Start of the time interval (exclusive), which is + * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is + * specified, the default time interval will be (youngest - 4 hours, youngest] * @return Google_Service_CloudMonitoring_ListTimeseriesResponse */ public function listTimeseries($project, $metric, $youngest, $optParams = array()) @@ -320,49 +309,38 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * subsequent pages of results by setting the pageToken query parameter to the * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param string $project The project ID to which this time series belongs. The + * value can be the numeric project ID or string-based project name. + * @param string $metric Metric names are protocol-free URLs as listed in the + * Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest End of the time interval (inclusive), which is + * expressed as an RFC 3339 timestamp. * @param array $optParams Optional parameters. * - * @opt_param int count - * Maximum number of time series descriptors per page. Used for pagination. If not specified, count - * = 100. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] + * @opt_param int count Maximum number of time series descriptors per page. Used + * for pagination. If not specified, count = 100. + * @opt_param string timespan Length of the time interval to query, which is an + * alternative way to declare the interval: (youngest - timespan, youngest]. The + * timespan and oldest parameters should not be used together. Units: - s: + * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. + * Only one unit is allowed, for example: 2w3d is not allowed; you should use + * 17d instead. + * + * If neither oldest nor timespan is specified, the default time interval will + * be (youngest - 4 hours, youngest]. + * @opt_param string labels A collection of labels for the matching time series, + * which are represented as: - key==value: key equals the value - key=~value: + * key regex matches the value - key!=value: key does not equal the value - + * key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken The pagination token, which is used to page + * through large result sets. Set this value to the value of the nextPageToken + * to retrieve the next page of results. + * @opt_param string oldest Start of the time interval (exclusive), which is + * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is + * specified, the default time interval will be (youngest - 4 hours, youngest] * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse */ public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) @@ -382,16 +360,15 @@ class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection @@ -404,11 +381,11 @@ class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Googl protected $metricsDataType = 'array'; public $nextPageToken; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -417,7 +394,6 @@ public function setMetrics($metrics) { $this->metrics = $metrics; } - public function getMetrics() { return $this->metrics; @@ -426,12 +402,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model @@ -440,16 +414,15 @@ class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Go ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection @@ -464,11 +437,11 @@ class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends G protected $timeseriesDataType = 'array'; public $youngest; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -477,7 +450,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -486,7 +458,6 @@ public function setOldest($oldest) { $this->oldest = $oldest; } - public function getOldest() { return $this->oldest; @@ -495,7 +466,6 @@ public function setTimeseries($timeseries) { $this->timeseries = $timeseries; } - public function getTimeseries() { return $this->timeseries; @@ -504,12 +474,10 @@ public function setYoungest($youngest) { $this->youngest = $youngest; } - public function getYoungest() { return $this->youngest; } - } class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model @@ -518,16 +486,15 @@ class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model ); public $kind; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection @@ -542,11 +509,11 @@ class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Colle protected $timeseriesDataType = 'array'; public $youngest; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -555,7 +522,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -564,7 +530,6 @@ public function setOldest($oldest) { $this->oldest = $oldest; } - public function getOldest() { return $this->oldest; @@ -573,7 +538,6 @@ public function setTimeseries($timeseries) { $this->timeseries = $timeseries; } - public function getTimeseries() { return $this->timeseries; @@ -582,12 +546,10 @@ public function setYoungest($youngest) { $this->youngest = $youngest; } - public function getYoungest() { return $this->youngest; } - } class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection @@ -603,11 +565,11 @@ class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor'; protected $typeDescriptorDataType = ''; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -616,7 +578,6 @@ public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -625,7 +586,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -634,7 +594,6 @@ public function setProject($project) { $this->project = $project; } - public function getProject() { return $this->project; @@ -643,12 +602,10 @@ public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescripto { $this->typeDescriptor = $typeDescriptor; } - public function getTypeDescriptor() { return $this->typeDescriptor; } - } class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model @@ -658,11 +615,11 @@ class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Goo public $description; public $key; + public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -671,12 +628,10 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; } - } class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model @@ -686,11 +641,11 @@ class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Goog public $metricType; public $valueType; + public function setMetricType($metricType) { $this->metricType = $metricType; } - public function getMetricType() { return $this->metricType; @@ -699,12 +654,10 @@ public function setValueType($valueType) { $this->valueType = $valueType; } - public function getValueType() { return $this->valueType; } - } class Google_Service_CloudMonitoring_Point extends Google_Model @@ -720,11 +673,11 @@ class Google_Service_CloudMonitoring_Point extends Google_Model public $start; public $stringValue; + public function setBoolValue($boolValue) { $this->boolValue = $boolValue; } - public function getBoolValue() { return $this->boolValue; @@ -733,7 +686,6 @@ public function setDistributionValue(Google_Service_CloudMonitoring_PointDistrib { $this->distributionValue = $distributionValue; } - public function getDistributionValue() { return $this->distributionValue; @@ -742,7 +694,6 @@ public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } - public function getDoubleValue() { return $this->doubleValue; @@ -751,7 +702,6 @@ public function setEnd($end) { $this->end = $end; } - public function getEnd() { return $this->end; @@ -760,7 +710,6 @@ public function setInt64Value($int64Value) { $this->int64Value = $int64Value; } - public function getInt64Value() { return $this->int64Value; @@ -769,7 +718,6 @@ public function setStart($start) { $this->start = $start; } - public function getStart() { return $this->start; @@ -778,12 +726,10 @@ public function setStringValue($stringValue) { $this->stringValue = $stringValue; } - public function getStringValue() { return $this->stringValue; } - } class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection @@ -798,11 +744,11 @@ class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket'; protected $underflowBucketDataType = ''; + public function setBuckets($buckets) { $this->buckets = $buckets; } - public function getBuckets() { return $this->buckets; @@ -811,7 +757,6 @@ public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributi { $this->overflowBucket = $overflowBucket; } - public function getOverflowBucket() { return $this->overflowBucket; @@ -820,12 +765,10 @@ public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistribut { $this->underflowBucket = $underflowBucket; } - public function getUnderflowBucket() { return $this->underflowBucket; } - } class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model @@ -836,11 +779,11 @@ class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Mode public $lowerBound; public $upperBound; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -849,7 +792,6 @@ public function setLowerBound($lowerBound) { $this->lowerBound = $lowerBound; } - public function getLowerBound() { return $this->lowerBound; @@ -858,12 +800,10 @@ public function setUpperBound($upperBound) { $this->upperBound = $upperBound; } - public function getUpperBound() { return $this->upperBound; } - } class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model @@ -873,11 +813,11 @@ class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Goo public $count; public $lowerBound; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -886,12 +826,10 @@ public function setLowerBound($lowerBound) { $this->lowerBound = $lowerBound; } - public function getLowerBound() { return $this->lowerBound; } - } class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model @@ -901,11 +839,11 @@ class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Go public $count; public $upperBound; + public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -914,12 +852,10 @@ public function setUpperBound($upperBound) { $this->upperBound = $upperBound; } - public function getUpperBound() { return $this->upperBound; } - } class Google_Service_CloudMonitoring_Timeseries extends Google_Collection @@ -932,11 +868,11 @@ class Google_Service_CloudMonitoring_Timeseries extends Google_Collection protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; protected $timeseriesDescDataType = ''; + public function setPoints($points) { $this->points = $points; } - public function getPoints() { return $this->points; @@ -945,12 +881,10 @@ public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescr { $this->timeseriesDesc = $timeseriesDesc; } - public function getTimeseriesDesc() { return $this->timeseriesDesc; } - } class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model @@ -961,11 +895,11 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model public $metric; public $project; + public function setLabels($labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -974,7 +908,6 @@ public function setMetric($metric) { $this->metric = $metric; } - public function getMetric() { return $this->metric; @@ -983,12 +916,10 @@ public function setProject($project) { $this->project = $project; } - public function getProject() { return $this->project; } - } class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model @@ -998,11 +929,11 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Mo public $key; public $value; + public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -1011,18 +942,12 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } From 9f5aaa6a66c68210cbe7ef79ab369ce42798210d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 6 Nov 2014 01:58:49 -0800 Subject: [PATCH 0503/1274] Updated Coordinate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Coordinate.php | 297 ++++++++++-------------------- 1 file changed, 97 insertions(+), 200 deletions(-) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index f89a95cf8..2dcd1a8ac 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -19,8 +19,7 @@ * Service definition for Coordinate (v1). * *

- * Lets you view and manage jobs in a Coordinate team. - *

+ * Lets you view and manage jobs in a Coordinate team.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_Coordinate extends Google_Service { /** View and manage your Google Maps Coordinate jobs. */ - const COORDINATE = "https://www.googleapis.com/auth/coordinate"; + const COORDINATE = + "https://www.googleapis.com/auth/coordinate"; /** View your Google Coordinate jobs. */ - const COORDINATE_READONLY = "https://www.googleapis.com/auth/coordinate.readonly"; + const COORDINATE_READONLY = + "https://www.googleapis.com/auth/coordinate.readonly"; public $customFieldDef; public $jobs; @@ -449,8 +450,7 @@ class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_R * Retrieves a list of custom field definitions for a team. * (customFieldDef.listCustomFieldDef) * - * @param string $teamId - * Team ID + * @param string $teamId Team ID * @param array $optParams Optional parameters. * @return Google_Service_Coordinate_CustomFieldDefListResponse */ @@ -476,10 +476,8 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource /** * Retrieves a job, including all the changes made to the job. (jobs.get) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param array $optParams Optional parameters. * @return Google_Service_Coordinate_Job */ @@ -489,33 +487,26 @@ public function get($teamId, $jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Coordinate_Job"); } + /** * Inserts a new job. Only the state field of the job should be set. * (jobs.insert) * - * @param string $teamId - * Team ID - * @param string $address - * Job address as newline (Unix) separated string - * @param double $lat - * The latitude coordinate of this job's location. - * @param double $lng - * The longitude coordinate of this job's location. - * @param string $title - * Job title + * @param string $teamId Team ID + * @param string $address Job address as newline (Unix) separated string + * @param double $lat The latitude coordinate of this job's location. + * @param double $lng The longitude coordinate of this job's location. + * @param string $title Job title * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName - * Customer name - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customerName Customer name + * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string assignee Assignee email address, or empty string to + * unassign. + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param string customField Map from custom field id (from + * /team//custom_fields) to the field value. For example '123=Alice' * @return Google_Service_Coordinate_Job */ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -524,19 +515,17 @@ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coo $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Coordinate_Job"); } + /** * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs) * - * @param string $teamId - * Team ID + * @param string $teamId Team ID * @param array $optParams Optional parameters. * - * @opt_param string minModifiedTimestampMs - * Minimum time a job was modified in milliseconds since epoch. - * @opt_param string maxResults - * Maximum number of results to return in one page. - * @opt_param string pageToken - * Continuation token + * @opt_param string minModifiedTimestampMs Minimum time a job was modified in + * milliseconds since epoch. + * @opt_param string maxResults Maximum number of results to return in one page. + * @opt_param string pageToken Continuation token * @return Google_Service_Coordinate_JobListResponse */ public function listJobs($teamId, $optParams = array()) @@ -545,37 +534,28 @@ public function listJobs($teamId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse"); } + /** * Updates a job. Fields that are set in the job state will be updated. This * method supports patch semantics. (jobs.patch) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName - * Customer name - * @opt_param string title - * Job title - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string address - * Job address as newline (Unix) separated string - * @opt_param double lat - * The latitude coordinate of this job's location. - * @opt_param string progress - * Job progress - * @opt_param double lng - * The longitude coordinate of this job's location. - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customerName Customer name + * @opt_param string title Job title + * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string assignee Assignee email address, or empty string to + * unassign. + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param string address Job address as newline (Unix) separated string + * @opt_param double lat The latitude coordinate of this job's location. + * @opt_param string progress Job progress + * @opt_param double lng The longitude coordinate of this job's location. + * @opt_param string customField Map from custom field id (from + * /team//custom_fields) to the field value. For example '123=Alice' * @return Google_Service_Coordinate_Job */ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -584,37 +564,28 @@ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Coordinate_Job"); } + /** * Updates a job. Fields that are set in the job state will be updated. * (jobs.update) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName - * Customer name - * @opt_param string title - * Job title - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string address - * Job address as newline (Unix) separated string - * @opt_param double lat - * The latitude coordinate of this job's location. - * @opt_param string progress - * Job progress - * @opt_param double lng - * The longitude coordinate of this job's location. - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customerName Customer name + * @opt_param string title Job title + * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string assignee Assignee email address, or empty string to + * unassign. + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param string address Job address as newline (Unix) separated string + * @opt_param double lat The latitude coordinate of this job's location. + * @opt_param string progress Job progress + * @opt_param double lng The longitude coordinate of this job's location. + * @opt_param string customField Map from custom field id (from + * /team//custom_fields) to the field value. For example '123=Alice' * @return Google_Service_Coordinate_Job */ public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -639,18 +610,14 @@ class Google_Service_Coordinate_Location_Resource extends Google_Service_Resourc /** * Retrieves a list of locations for a worker. (location.listLocation) * - * @param string $teamId - * Team ID - * @param string $workerEmail - * Worker email address. - * @param string $startTimestampMs - * Start timestamp in milliseconds since the epoch. + * @param string $teamId Team ID + * @param string $workerEmail Worker email address. + * @param string $startTimestampMs Start timestamp in milliseconds since the + * epoch. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * Continuation token - * @opt_param string maxResults - * Maximum number of results to return in one page. + * @opt_param string pageToken Continuation token + * @opt_param string maxResults Maximum number of results to return in one page. * @return Google_Service_Coordinate_LocationListResponse */ public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) @@ -675,10 +642,8 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc /** * Retrieves the schedule for a job. (schedule.get) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param array $optParams Optional parameters. * @return Google_Service_Coordinate_Schedule */ @@ -688,26 +653,21 @@ public function get($teamId, $jobId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Coordinate_Schedule"); } + /** * Replaces the schedule of a job with the provided schedule. This method * supports patch semantics. (schedule.patch) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param Google_Schedule $postBody * @param array $optParams Optional parameters. * - * @opt_param bool allDay - * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if - * this is true. - * @opt_param string startTime - * Scheduled start time in milliseconds since epoch. - * @opt_param string duration - * Job duration in milliseconds. - * @opt_param string endTime - * Scheduled end time in milliseconds since epoch. + * @opt_param bool allDay Whether the job is scheduled for the whole day. Time + * of day in start/end times is ignored if this is true. + * @opt_param string startTime Scheduled start time in milliseconds since epoch. + * @opt_param string duration Job duration in milliseconds. + * @opt_param string endTime Scheduled end time in milliseconds since epoch. * @return Google_Service_Coordinate_Schedule */ public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) @@ -716,25 +676,20 @@ public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postB $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule"); } + /** * Replaces the schedule of a job with the provided schedule. (schedule.update) * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number + * @param string $teamId Team ID + * @param string $jobId Job number * @param Google_Schedule $postBody * @param array $optParams Optional parameters. * - * @opt_param bool allDay - * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if - * this is true. - * @opt_param string startTime - * Scheduled start time in milliseconds since epoch. - * @opt_param string duration - * Job duration in milliseconds. - * @opt_param string endTime - * Scheduled end time in milliseconds since epoch. + * @opt_param bool allDay Whether the job is scheduled for the whole day. Time + * of day in start/end times is ignored if this is true. + * @opt_param string startTime Scheduled start time in milliseconds since epoch. + * @opt_param string duration Job duration in milliseconds. + * @opt_param string endTime Scheduled end time in milliseconds since epoch. * @return Google_Service_Coordinate_Schedule */ public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) @@ -759,8 +714,7 @@ class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource /** * Retrieves a list of workers in a team. (worker.listWorker) * - * @param string $teamId - * Team ID + * @param string $teamId Team ID * @param array $optParams Optional parameters. * @return Google_Service_Coordinate_WorkerListResponse */ @@ -783,11 +737,11 @@ class Google_Service_Coordinate_CustomField extends Google_Model public $kind; public $value; + public function setCustomFieldId($customFieldId) { $this->customFieldId = $customFieldId; } - public function getCustomFieldId() { return $this->customFieldId; @@ -796,7 +750,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -805,12 +758,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Coordinate_CustomFieldDef extends Google_Model @@ -824,11 +775,11 @@ class Google_Service_Coordinate_CustomFieldDef extends Google_Model public $requiredForCheckout; public $type; + public function setEnabled($enabled) { $this->enabled = $enabled; } - public function getEnabled() { return $this->enabled; @@ -837,7 +788,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -846,7 +796,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -855,7 +804,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -864,7 +812,6 @@ public function setRequiredForCheckout($requiredForCheckout) { $this->requiredForCheckout = $requiredForCheckout; } - public function getRequiredForCheckout() { return $this->requiredForCheckout; @@ -873,12 +820,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection @@ -890,11 +835,11 @@ class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collec protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -903,12 +848,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Coordinate_CustomFields extends Google_Collection @@ -920,11 +863,11 @@ class Google_Service_Coordinate_CustomFields extends Google_Collection protected $customFieldDataType = 'array'; public $kind; + public function setCustomField($customField) { $this->customField = $customField; } - public function getCustomField() { return $this->customField; @@ -933,12 +876,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Coordinate_Job extends Google_Collection @@ -953,11 +894,11 @@ class Google_Service_Coordinate_Job extends Google_Collection protected $stateType = 'Google_Service_Coordinate_JobState'; protected $stateDataType = ''; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -966,7 +907,6 @@ public function setJobChange($jobChange) { $this->jobChange = $jobChange; } - public function getJobChange() { return $this->jobChange; @@ -975,7 +915,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -984,12 +923,10 @@ public function setState(Google_Service_Coordinate_JobState $state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_Coordinate_JobChange extends Google_Model @@ -1001,11 +938,11 @@ class Google_Service_Coordinate_JobChange extends Google_Model protected $stateDataType = ''; public $timestamp; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1014,7 +951,6 @@ public function setState(Google_Service_Coordinate_JobState $state) { $this->state = $state; } - public function getState() { return $this->state; @@ -1023,12 +959,10 @@ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } - public function getTimestamp() { return $this->timestamp; } - } class Google_Service_Coordinate_JobListResponse extends Google_Collection @@ -1041,11 +975,11 @@ class Google_Service_Coordinate_JobListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1054,7 +988,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1063,12 +996,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_Coordinate_JobState extends Google_Collection @@ -1088,11 +1019,11 @@ class Google_Service_Coordinate_JobState extends Google_Collection public $progress; public $title; + public function setAssignee($assignee) { $this->assignee = $assignee; } - public function getAssignee() { return $this->assignee; @@ -1101,7 +1032,6 @@ public function setCustomFields(Google_Service_Coordinate_CustomFields $customFi { $this->customFields = $customFields; } - public function getCustomFields() { return $this->customFields; @@ -1110,7 +1040,6 @@ public function setCustomerName($customerName) { $this->customerName = $customerName; } - public function getCustomerName() { return $this->customerName; @@ -1119,7 +1048,6 @@ public function setCustomerPhoneNumber($customerPhoneNumber) { $this->customerPhoneNumber = $customerPhoneNumber; } - public function getCustomerPhoneNumber() { return $this->customerPhoneNumber; @@ -1128,7 +1056,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1137,7 +1064,6 @@ public function setLocation(Google_Service_Coordinate_Location $location) { $this->location = $location; } - public function getLocation() { return $this->location; @@ -1146,7 +1072,6 @@ public function setNote($note) { $this->note = $note; } - public function getNote() { return $this->note; @@ -1155,7 +1080,6 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() { return $this->progress; @@ -1164,12 +1088,10 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; } - } class Google_Service_Coordinate_Location extends Google_Collection @@ -1182,11 +1104,11 @@ class Google_Service_Coordinate_Location extends Google_Collection public $lat; public $lng; + public function setAddressLine($addressLine) { $this->addressLine = $addressLine; } - public function getAddressLine() { return $this->addressLine; @@ -1195,7 +1117,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1204,7 +1125,6 @@ public function setLat($lat) { $this->lat = $lat; } - public function getLat() { return $this->lat; @@ -1213,12 +1133,10 @@ public function setLng($lng) { $this->lng = $lng; } - public function getLng() { return $this->lng; } - } class Google_Service_Coordinate_LocationListResponse extends Google_Collection @@ -1233,11 +1151,11 @@ class Google_Service_Coordinate_LocationListResponse extends Google_Collection protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination'; protected $tokenPaginationDataType = ''; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1246,7 +1164,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1255,7 +1172,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1264,12 +1180,10 @@ public function setTokenPagination(Google_Service_Coordinate_TokenPagination $to { $this->tokenPagination = $tokenPagination; } - public function getTokenPagination() { return $this->tokenPagination; } - } class Google_Service_Coordinate_LocationRecord extends Google_Model @@ -1282,11 +1196,11 @@ class Google_Service_Coordinate_LocationRecord extends Google_Model public $latitude; public $longitude; + public function setCollectionTime($collectionTime) { $this->collectionTime = $collectionTime; } - public function getCollectionTime() { return $this->collectionTime; @@ -1295,7 +1209,6 @@ public function setConfidenceRadius($confidenceRadius) { $this->confidenceRadius = $confidenceRadius; } - public function getConfidenceRadius() { return $this->confidenceRadius; @@ -1304,7 +1217,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1313,7 +1225,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -1322,12 +1233,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Coordinate_Schedule extends Google_Model @@ -1340,11 +1249,11 @@ class Google_Service_Coordinate_Schedule extends Google_Model public $kind; public $startTime; + public function setAllDay($allDay) { $this->allDay = $allDay; } - public function getAllDay() { return $this->allDay; @@ -1353,7 +1262,6 @@ public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -1362,7 +1270,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1371,7 +1278,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1380,12 +1286,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_Coordinate_TokenPagination extends Google_Model @@ -1396,11 +1300,11 @@ class Google_Service_Coordinate_TokenPagination extends Google_Model public $nextPageToken; public $previousPageToken; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1409,7 +1313,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -1418,12 +1321,10 @@ public function setPreviousPageToken($previousPageToken) { $this->previousPageToken = $previousPageToken; } - public function getPreviousPageToken() { return $this->previousPageToken; } - } class Google_Service_Coordinate_Worker extends Google_Model @@ -1433,11 +1334,11 @@ class Google_Service_Coordinate_Worker extends Google_Model public $id; public $kind; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1446,12 +1347,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Coordinate_WorkerListResponse extends Google_Collection @@ -1463,11 +1362,11 @@ class Google_Service_Coordinate_WorkerListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1476,10 +1375,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From d33ea1841dfb374b581c35b908c595ee01a96c42 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 7 Nov 2014 14:19:49 +0000 Subject: [PATCH 0504/1274] Add descriptive comment for #360 --- src/Google/IO/Curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index c53d522b3..7395acfd9 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -61,6 +61,7 @@ public function executeRequest(Google_Http_Request $request) curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); + // 1 is CURL_SSLVERSION_TLSv1_0, which is not always defined in PHP. curl_setopt($curl, CURLOPT_SSLVERSION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); From ce9255b68b33e8ec2216d82871958adc19d023bd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:24 -0800 Subject: [PATCH 0505/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 0b1859f97..98bdb341c 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From 27b74dabc414eefef5ac16375718d0fccf5a3253 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:25 -0800 Subject: [PATCH 0506/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 477 +++++++++++--------------------- 1 file changed, 161 insertions(+), 316 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index fb224fd88..06840d5f0 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -19,8 +19,7 @@ * Service definition for SQLAdmin (v1beta3). * *

- * API for Cloud SQL database instance management. - *

+ * API for Cloud SQL database instance management.

* *

* For more information about this service, see the API @@ -32,9 +31,11 @@ class Google_Service_SQLAdmin extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = "https://www.googleapis.com/auth/sqlservice.admin"; + const SQLSERVICE_ADMIN = + "https://www.googleapis.com/auth/sqlservice.admin"; public $backupRuns; public $flags; @@ -528,16 +529,14 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc * Retrieves information about a specified backup run for a Cloud SQL instance. * (backupRuns.get) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * Identifier for the backup configuration. This gets generated automatically when a backup - * configuration is created. - * @param string $dueTime - * The start time of the four-hour backup window. The backup can occur any time in the window. The - * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $backupConfiguration Identifier for the backup configuration. + * This gets generated automatically when a backup configuration is created. + * @param string $dueTime The start time of the four-hour backup window. The + * backup can occur any time in the window. The time is in RFC 3339 format, for + * example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ @@ -547,23 +546,21 @@ public function get($project, $instance, $backupConfiguration, $dueTime, $optPar $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); } + /** * Lists all backup runs associated with a Cloud SQL instance. * (backupRuns.listBackupRuns) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * Identifier for the backup configuration. This gets generated automatically when a backup - * configuration is created. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $backupConfiguration Identifier for the backup configuration. + * This gets generated automatically when a backup configuration is created. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param int maxResults - * Maximum number of backup runs per response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param int maxResults Maximum number of backup runs per response. * @return Google_Service_SQLAdmin_BackupRunsListResponse */ public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) @@ -615,8 +612,8 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * Creates a Cloud SQL instance as a clone of a source instance. * (instances.cloneInstances) * - * @param string $project - * Project ID of the source as well as the clone Cloud SQL instance. + * @param string $project Project ID of the source as well as the clone Cloud + * SQL instance. * @param Google_InstancesCloneRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesCloneResponse @@ -627,13 +624,14 @@ public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneR $params = array_merge($params, $optParams); return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse"); } + /** * Deletes a Cloud SQL instance. (instances.delete) * - * @param string $project - * Project ID of the project that contains the instance to be deleted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance + * to be deleted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesDeleteResponse */ @@ -643,14 +641,15 @@ public function delete($project, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse"); } + /** * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a * MySQL dump file. (instances.export) * - * @param string $project - * Project ID of the project that contains the instance to be exported. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance + * to be exported. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_InstancesExportRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesExportResponse @@ -661,13 +660,13 @@ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExp $params = array_merge($params, $optParams); return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); } + /** * Retrieves information about a Cloud SQL instance. (instances.get) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Database instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_DatabaseInstance */ @@ -677,14 +676,14 @@ public function get($project, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); } + /** * Imports data into a Cloud SQL instance from a MySQL dump file stored in a * Google Cloud Storage bucket. (instances.import) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_InstancesImportRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesImportResponse @@ -695,11 +694,12 @@ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImp $params = array_merge($params, $optParams); return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse"); } + /** * Creates a new Cloud SQL instance. (instances.insert) * - * @param string $project - * Project ID of the project to which the newly created Cloud SQL instances should belong. + * @param string $project Project ID of the project to which the newly created + * Cloud SQL instances should belong. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesInsertResponse @@ -710,18 +710,19 @@ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postB $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); } + /** * Lists instances for a given project, in alphabetical order by instance name. * (instances.listInstances) * - * @param string $project - * Project ID of the project for which to list Cloud SQL instances. + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string maxResults - * The maximum number of results to return per response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param string maxResults The maximum number of results to return per + * response. * @return Google_Service_SQLAdmin_InstancesListResponse */ public function listInstances($project, $optParams = array()) @@ -730,14 +731,14 @@ public function listInstances($project, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); } + /** * Updates the settings of a Cloud SQL instance. This method supports patch * semantics. (instances.patch) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesUpdateResponse @@ -748,14 +749,13 @@ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInsta $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); } + /** * Promotes the read replica instance to be a stand-alone Cloud SQL instance. * (instances.promoteReplica) * - * @param string $project - * ID of the project that contains the read replica. - * @param string $instance - * Cloud SQL read replica instance name. + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesPromoteReplicaResponse */ @@ -765,14 +765,14 @@ public function promoteReplica($project, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_InstancesPromoteReplicaResponse"); } + /** * Deletes all client certificates and generates a new server SSL certificate * for a Cloud SQL instance. (instances.resetSslConfig) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse */ @@ -782,13 +782,14 @@ public function resetSslConfig($project, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); } + /** * Restarts a Cloud SQL instance. (instances.restart) * - * @param string $project - * Project ID of the project that contains the instance to be restarted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance + * to be restarted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesRestartResponse */ @@ -798,19 +799,19 @@ public function restart($project, $instance, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse"); } + /** * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * The identifier of the backup configuration. This gets generated automatically when a backup - * configuration is created. - * @param string $dueTime - * The start time of the four-hour backup window. The backup can occur any time in the window. The - * time is in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $backupConfiguration The identifier of the backup + * configuration. This gets generated automatically when a backup configuration + * is created. + * @param string $dueTime The start time of the four-hour backup window. The + * backup can occur any time in the window. The time is in RFC 3339 format, for + * example 2012-11-15T16:19:00.094Z. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse */ @@ -820,14 +821,14 @@ public function restoreBackup($project, $instance, $backupConfiguration, $dueTim $params = array_merge($params, $optParams); return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); } + /** * Sets the password for the root user of the specified Cloud SQL instance. * (instances.setRootPassword) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_InstanceSetRootPasswordRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse @@ -838,13 +839,13 @@ public function setRootPassword($project, $instance, Google_Service_SQLAdmin_Ins $params = array_merge($params, $optParams); return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); } + /** * Updates the settings of a Cloud SQL instance. (instances.update) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstancesUpdateResponse @@ -872,12 +873,10 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc * Retrieves information about a specific operation that was performed on a * Cloud SQL instance. (operations.get) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $operation - * Instance operation ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $operation Instance operation ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_InstanceOperation */ @@ -887,20 +886,19 @@ public function get($project, $instance, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); } + /** * Lists all operations that have been performed on a Cloud SQL instance. * (operations.listOperations) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * - * @opt_param string maxResults - * Maximum number of operations per response. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. + * @opt_param string maxResults Maximum number of operations per response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. * @return Google_Service_SQLAdmin_OperationsListResponse */ public function listOperations($project, $instance, $optParams = array()) @@ -925,12 +923,11 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource /** * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete) * - * @param string $project - * Project ID of the project that contains the instance to be deleted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $sha1Fingerprint - * Sha1 FingerPrint. + * @param string $project Project ID of the project that contains the instance + * to be deleted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $sha1Fingerprint Sha1 FingerPrint. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_SslCertsDeleteResponse */ @@ -940,16 +937,15 @@ public function delete($project, $instance, $sha1Fingerprint, $optParams = array $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); } + /** * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. * (sslCerts.get) * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $sha1Fingerprint - * Sha1 FingerPrint. + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $sha1Fingerprint Sha1 FingerPrint. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_SslCert */ @@ -959,14 +955,15 @@ public function get($project, $instance, $sha1Fingerprint, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); } + /** * Creates an SSL certificate and returns the certificate, the associated * private key, and the server certificate authority. (sslCerts.insert) * - * @param string $project - * Project ID of the project to which the newly created Cloud SQL instances should belong. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project to which the newly created + * Cloud SQL instances should belong. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param Google_SslCertsInsertRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_SslCertsInsertResponse @@ -977,14 +974,15 @@ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInse $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); } + /** * Lists all of the current SSL certificates defined for a Cloud SQL instance. * (sslCerts.listSslCerts) * - * @param string $project - * Project ID of the project for which to list Cloud SQL instances. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_SslCertsListResponse */ @@ -1011,8 +1009,7 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource * Lists service tiers that can be used to create Google Cloud SQL instances. * (tiers.listTiers) * - * @param string $project - * Project ID of the project for which to list tiers. + * @param string $project Project ID of the project for which to list tiers. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_TiersListResponse */ @@ -1037,11 +1034,11 @@ class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model public $kind; public $startTime; + public function setBinaryLogEnabled($binaryLogEnabled) { $this->binaryLogEnabled = $binaryLogEnabled; } - public function getBinaryLogEnabled() { return $this->binaryLogEnabled; @@ -1050,7 +1047,6 @@ public function setEnabled($enabled) { $this->enabled = $enabled; } - public function getEnabled() { return $this->enabled; @@ -1059,7 +1055,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1068,7 +1063,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1077,12 +1071,10 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; } - } class Google_Service_SQLAdmin_BackupRun extends Google_Model @@ -1100,11 +1092,11 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model public $startTime; public $status; + public function setBackupConfiguration($backupConfiguration) { $this->backupConfiguration = $backupConfiguration; } - public function getBackupConfiguration() { return $this->backupConfiguration; @@ -1113,7 +1105,6 @@ public function setDueTime($dueTime) { $this->dueTime = $dueTime; } - public function getDueTime() { return $this->dueTime; @@ -1122,7 +1113,6 @@ public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1131,7 +1121,6 @@ public function setEnqueuedTime($enqueuedTime) { $this->enqueuedTime = $enqueuedTime; } - public function getEnqueuedTime() { return $this->enqueuedTime; @@ -1140,7 +1129,6 @@ public function setError(Google_Service_SQLAdmin_OperationError $error) { $this->error = $error; } - public function getError() { return $this->error; @@ -1149,7 +1137,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -1158,7 +1145,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1167,7 +1153,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -1176,12 +1161,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection @@ -1194,11 +1177,11 @@ class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1207,7 +1190,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1216,12 +1198,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model @@ -1232,11 +1212,11 @@ class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model public $binLogPosition; public $kind; + public function setBinLogFileName($binLogFileName) { $this->binLogFileName = $binLogFileName; } - public function getBinLogFileName() { return $this->binLogFileName; @@ -1245,7 +1225,6 @@ public function setBinLogPosition($binLogPosition) { $this->binLogPosition = $binLogPosition; } - public function getBinLogPosition() { return $this->binLogPosition; @@ -1254,12 +1233,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_SQLAdmin_CloneContext extends Google_Model @@ -1272,11 +1249,11 @@ class Google_Service_SQLAdmin_CloneContext extends Google_Model public $kind; public $sourceInstanceName; + public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) { $this->binLogCoordinates = $binLogCoordinates; } - public function getBinLogCoordinates() { return $this->binLogCoordinates; @@ -1285,7 +1262,6 @@ public function setDestinationInstanceName($destinationInstanceName) { $this->destinationInstanceName = $destinationInstanceName; } - public function getDestinationInstanceName() { return $this->destinationInstanceName; @@ -1294,7 +1270,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1303,12 +1278,10 @@ public function setSourceInstanceName($sourceInstanceName) { $this->sourceInstanceName = $sourceInstanceName; } - public function getSourceInstanceName() { return $this->sourceInstanceName; } - } class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model @@ -1318,11 +1291,11 @@ class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model public $name; public $value; + public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1331,12 +1304,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection @@ -1364,11 +1335,11 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection protected $settingsDataType = ''; public $state; + public function setCurrentDiskSize($currentDiskSize) { $this->currentDiskSize = $currentDiskSize; } - public function getCurrentDiskSize() { return $this->currentDiskSize; @@ -1377,7 +1348,6 @@ public function setDatabaseVersion($databaseVersion) { $this->databaseVersion = $databaseVersion; } - public function getDatabaseVersion() { return $this->databaseVersion; @@ -1386,7 +1356,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -1395,7 +1364,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -1404,7 +1372,6 @@ public function setInstanceType($instanceType) { $this->instanceType = $instanceType; } - public function getInstanceType() { return $this->instanceType; @@ -1413,7 +1380,6 @@ public function setIpAddresses($ipAddresses) { $this->ipAddresses = $ipAddresses; } - public function getIpAddresses() { return $this->ipAddresses; @@ -1422,7 +1388,6 @@ public function setIpv6Address($ipv6Address) { $this->ipv6Address = $ipv6Address; } - public function getIpv6Address() { return $this->ipv6Address; @@ -1431,7 +1396,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1440,7 +1404,6 @@ public function setMasterInstanceName($masterInstanceName) { $this->masterInstanceName = $masterInstanceName; } - public function getMasterInstanceName() { return $this->masterInstanceName; @@ -1449,7 +1412,6 @@ public function setMaxDiskSize($maxDiskSize) { $this->maxDiskSize = $maxDiskSize; } - public function getMaxDiskSize() { return $this->maxDiskSize; @@ -1458,7 +1420,6 @@ public function setProject($project) { $this->project = $project; } - public function getProject() { return $this->project; @@ -1467,7 +1428,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -1476,7 +1436,6 @@ public function setReplicaNames($replicaNames) { $this->replicaNames = $replicaNames; } - public function getReplicaNames() { return $this->replicaNames; @@ -1485,7 +1444,6 @@ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; } - public function getServerCaCert() { return $this->serverCaCert; @@ -1494,7 +1452,6 @@ public function setSettings(Google_Service_SQLAdmin_Settings $settings) { $this->settings = $settings; } - public function getSettings() { return $this->settings; @@ -1503,12 +1460,10 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; } - } class Google_Service_SQLAdmin_ExportContext extends Google_Collection @@ -1521,11 +1476,11 @@ class Google_Service_SQLAdmin_ExportContext extends Google_Collection public $table; public $uri; + public function setDatabase($database) { $this->database = $database; } - public function getDatabase() { return $this->database; @@ -1534,7 +1489,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1543,7 +1497,6 @@ public function setTable($table) { $this->table = $table; } - public function getTable() { return $this->table; @@ -1552,12 +1505,10 @@ public function setUri($uri) { $this->uri = $uri; } - public function getUri() { return $this->uri; } - } class Google_Service_SQLAdmin_Flag extends Google_Collection @@ -1573,11 +1524,11 @@ class Google_Service_SQLAdmin_Flag extends Google_Collection public $name; public $type; + public function setAllowedStringValues($allowedStringValues) { $this->allowedStringValues = $allowedStringValues; } - public function getAllowedStringValues() { return $this->allowedStringValues; @@ -1586,7 +1537,6 @@ public function setAppliesTo($appliesTo) { $this->appliesTo = $appliesTo; } - public function getAppliesTo() { return $this->appliesTo; @@ -1595,7 +1545,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1604,7 +1553,6 @@ public function setMaxValue($maxValue) { $this->maxValue = $maxValue; } - public function getMaxValue() { return $this->maxValue; @@ -1613,7 +1561,6 @@ public function setMinValue($minValue) { $this->minValue = $minValue; } - public function getMinValue() { return $this->minValue; @@ -1622,7 +1569,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -1631,12 +1577,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection @@ -1648,11 +1592,11 @@ class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -1661,12 +1605,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_SQLAdmin_ImportContext extends Google_Collection @@ -1678,11 +1620,11 @@ class Google_Service_SQLAdmin_ImportContext extends Google_Collection public $kind; public $uri; + public function setDatabase($database) { $this->database = $database; } - public function getDatabase() { return $this->database; @@ -1691,7 +1633,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1700,12 +1641,10 @@ public function setUri($uri) { $this->uri = $uri; } - public function getUri() { return $this->uri; } - } class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection @@ -1729,11 +1668,11 @@ class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection public $state; public $userEmailAddress; + public function setEndTime($endTime) { $this->endTime = $endTime; } - public function getEndTime() { return $this->endTime; @@ -1742,7 +1681,6 @@ public function setEnqueuedTime($enqueuedTime) { $this->enqueuedTime = $enqueuedTime; } - public function getEnqueuedTime() { return $this->enqueuedTime; @@ -1751,7 +1689,6 @@ public function setError($error) { $this->error = $error; } - public function getError() { return $this->error; @@ -1760,7 +1697,6 @@ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportCo { $this->exportContext = $exportContext; } - public function getExportContext() { return $this->exportContext; @@ -1769,7 +1705,6 @@ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importCo { $this->importContext = $importContext; } - public function getImportContext() { return $this->importContext; @@ -1778,7 +1713,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -1787,7 +1721,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1796,7 +1729,6 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; @@ -1805,7 +1737,6 @@ public function setOperationType($operationType) { $this->operationType = $operationType; } - public function getOperationType() { return $this->operationType; @@ -1814,7 +1745,6 @@ public function setStartTime($startTime) { $this->startTime = $startTime; } - public function getStartTime() { return $this->startTime; @@ -1823,7 +1753,6 @@ public function setState($state) { $this->state = $state; } - public function getState() { return $this->state; @@ -1832,12 +1761,10 @@ public function setUserEmailAddress($userEmailAddress) { $this->userEmailAddress = $userEmailAddress; } - public function getUserEmailAddress() { return $this->userEmailAddress; } - } class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model @@ -1847,16 +1774,15 @@ class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Mode protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; protected $setRootPasswordContextDataType = ''; + public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) { $this->setRootPasswordContext = $setRootPasswordContext; } - public function getSetRootPasswordContext() { return $this->setRootPasswordContext; } - } class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model @@ -1866,16 +1792,15 @@ class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; protected $cloneContextDataType = ''; + public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) { $this->cloneContext = $cloneContext; } - public function getCloneContext() { return $this->cloneContext; } - } class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model @@ -1885,11 +1810,11 @@ class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1898,12 +1823,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model @@ -1913,11 +1836,11 @@ class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1926,12 +1849,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model @@ -1941,16 +1862,15 @@ class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; protected $exportContextDataType = ''; + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) { $this->exportContext = $exportContext; } - public function getExportContext() { return $this->exportContext; } - } class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model @@ -1960,11 +1880,11 @@ class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1973,12 +1893,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model @@ -1988,16 +1906,15 @@ class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; protected $importContextDataType = ''; + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) { $this->importContext = $importContext; } - public function getImportContext() { return $this->importContext; } - } class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model @@ -2007,11 +1924,11 @@ class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2020,12 +1937,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model @@ -2035,11 +1950,11 @@ class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2048,12 +1963,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection @@ -2066,11 +1979,11 @@ class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2079,7 +1992,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2088,12 +2000,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model @@ -2103,11 +2013,11 @@ class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Mod public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2116,12 +2026,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model @@ -2131,11 +2039,11 @@ class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Mod public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2144,12 +2052,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model @@ -2159,11 +2065,11 @@ class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2172,12 +2078,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model @@ -2187,11 +2091,11 @@ class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Mode public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2200,12 +2104,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model @@ -2215,11 +2117,11 @@ class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Mo public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2228,12 +2130,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model @@ -2243,11 +2143,11 @@ class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2256,12 +2156,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection @@ -2274,11 +2172,11 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection public $kind; public $requireSsl; + public function setAuthorizedNetworks($authorizedNetworks) { $this->authorizedNetworks = $authorizedNetworks; } - public function getAuthorizedNetworks() { return $this->authorizedNetworks; @@ -2287,7 +2185,6 @@ public function setEnabled($enabled) { $this->enabled = $enabled; } - public function getEnabled() { return $this->enabled; @@ -2296,7 +2193,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2305,12 +2201,10 @@ public function setRequireSsl($requireSsl) { $this->requireSsl = $requireSsl; } - public function getRequireSsl() { return $this->requireSsl; } - } class Google_Service_SQLAdmin_IpMapping extends Google_Model @@ -2320,11 +2214,11 @@ class Google_Service_SQLAdmin_IpMapping extends Google_Model public $ipAddress; public $timeToRetire; + public function setIpAddress($ipAddress) { $this->ipAddress = $ipAddress; } - public function getIpAddress() { return $this->ipAddress; @@ -2333,12 +2227,10 @@ public function setTimeToRetire($timeToRetire) { $this->timeToRetire = $timeToRetire; } - public function getTimeToRetire() { return $this->timeToRetire; } - } class Google_Service_SQLAdmin_LocationPreference extends Google_Model @@ -2349,11 +2241,11 @@ class Google_Service_SQLAdmin_LocationPreference extends Google_Model public $kind; public $zone; + public function setFollowGaeApplication($followGaeApplication) { $this->followGaeApplication = $followGaeApplication; } - public function getFollowGaeApplication() { return $this->followGaeApplication; @@ -2362,7 +2254,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2371,12 +2262,10 @@ public function setZone($zone) { $this->zone = $zone; } - public function getZone() { return $this->zone; } - } class Google_Service_SQLAdmin_OperationError extends Google_Model @@ -2386,11 +2275,11 @@ class Google_Service_SQLAdmin_OperationError extends Google_Model public $code; public $kind; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -2399,12 +2288,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection @@ -2417,11 +2304,11 @@ class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection public $kind; public $nextPageToken; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2430,7 +2317,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2439,12 +2325,10 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; } - } class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model @@ -2454,11 +2338,11 @@ class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model public $kind; public $password; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2467,12 +2351,10 @@ public function setPassword($password) { $this->password = $password; } - public function getPassword() { return $this->password; } - } class Google_Service_SQLAdmin_Settings extends Google_Collection @@ -2497,11 +2379,11 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection public $settingsVersion; public $tier; + public function setActivationPolicy($activationPolicy) { $this->activationPolicy = $activationPolicy; } - public function getActivationPolicy() { return $this->activationPolicy; @@ -2510,7 +2392,6 @@ public function setAuthorizedGaeApplications($authorizedGaeApplications) { $this->authorizedGaeApplications = $authorizedGaeApplications; } - public function getAuthorizedGaeApplications() { return $this->authorizedGaeApplications; @@ -2519,7 +2400,6 @@ public function setBackupConfiguration($backupConfiguration) { $this->backupConfiguration = $backupConfiguration; } - public function getBackupConfiguration() { return $this->backupConfiguration; @@ -2528,7 +2408,6 @@ public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; } - public function getDatabaseFlags() { return $this->databaseFlags; @@ -2537,7 +2416,6 @@ public function setDatabaseReplicationEnabled($databaseReplicationEnabled) { $this->databaseReplicationEnabled = $databaseReplicationEnabled; } - public function getDatabaseReplicationEnabled() { return $this->databaseReplicationEnabled; @@ -2546,7 +2424,6 @@ public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipCo { $this->ipConfiguration = $ipConfiguration; } - public function getIpConfiguration() { return $this->ipConfiguration; @@ -2555,7 +2432,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2564,7 +2440,6 @@ public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference { $this->locationPreference = $locationPreference; } - public function getLocationPreference() { return $this->locationPreference; @@ -2573,7 +2448,6 @@ public function setPricingPlan($pricingPlan) { $this->pricingPlan = $pricingPlan; } - public function getPricingPlan() { return $this->pricingPlan; @@ -2582,7 +2456,6 @@ public function setReplicationType($replicationType) { $this->replicationType = $replicationType; } - public function getReplicationType() { return $this->replicationType; @@ -2591,7 +2464,6 @@ public function setSettingsVersion($settingsVersion) { $this->settingsVersion = $settingsVersion; } - public function getSettingsVersion() { return $this->settingsVersion; @@ -2600,12 +2472,10 @@ public function setTier($tier) { $this->tier = $tier; } - public function getTier() { return $this->tier; } - } class Google_Service_SQLAdmin_SslCert extends Google_Model @@ -2621,11 +2491,11 @@ class Google_Service_SQLAdmin_SslCert extends Google_Model public $kind; public $sha1Fingerprint; + public function setCert($cert) { $this->cert = $cert; } - public function getCert() { return $this->cert; @@ -2634,7 +2504,6 @@ public function setCertSerialNumber($certSerialNumber) { $this->certSerialNumber = $certSerialNumber; } - public function getCertSerialNumber() { return $this->certSerialNumber; @@ -2643,7 +2512,6 @@ public function setCommonName($commonName) { $this->commonName = $commonName; } - public function getCommonName() { return $this->commonName; @@ -2652,7 +2520,6 @@ public function setCreateTime($createTime) { $this->createTime = $createTime; } - public function getCreateTime() { return $this->createTime; @@ -2661,7 +2528,6 @@ public function setExpirationTime($expirationTime) { $this->expirationTime = $expirationTime; } - public function getExpirationTime() { return $this->expirationTime; @@ -2670,7 +2536,6 @@ public function setInstance($instance) { $this->instance = $instance; } - public function getInstance() { return $this->instance; @@ -2679,7 +2544,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2688,12 +2552,10 @@ public function setSha1Fingerprint($sha1Fingerprint) { $this->sha1Fingerprint = $sha1Fingerprint; } - public function getSha1Fingerprint() { return $this->sha1Fingerprint; } - } class Google_Service_SQLAdmin_SslCertDetail extends Google_Model @@ -2704,11 +2566,11 @@ class Google_Service_SQLAdmin_SslCertDetail extends Google_Model protected $certInfoDataType = ''; public $certPrivateKey; + public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) { $this->certInfo = $certInfo; } - public function getCertInfo() { return $this->certInfo; @@ -2717,12 +2579,10 @@ public function setCertPrivateKey($certPrivateKey) { $this->certPrivateKey = $certPrivateKey; } - public function getCertPrivateKey() { return $this->certPrivateKey; } - } class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model @@ -2732,11 +2592,11 @@ class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model public $kind; public $operation; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2745,12 +2605,10 @@ public function setOperation($operation) { $this->operation = $operation; } - public function getOperation() { return $this->operation; } - } class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model @@ -2759,16 +2617,15 @@ class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model ); public $commonName; + public function setCommonName($commonName) { $this->commonName = $commonName; } - public function getCommonName() { return $this->commonName; } - } class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model @@ -2781,11 +2638,11 @@ class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; protected $serverCaCertDataType = ''; + public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) { $this->clientCert = $clientCert; } - public function getClientCert() { return $this->clientCert; @@ -2794,7 +2651,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2803,12 +2659,10 @@ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; } - public function getServerCaCert() { return $this->serverCaCert; } - } class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection @@ -2820,11 +2674,11 @@ class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2833,12 +2687,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_SQLAdmin_Tier extends Google_Collection @@ -2854,11 +2706,11 @@ class Google_Service_SQLAdmin_Tier extends Google_Collection public $region; public $tier; + public function setDiskQuota($diskQuota) { $this->diskQuota = $diskQuota; } - public function getDiskQuota() { return $this->diskQuota; @@ -2867,7 +2719,6 @@ public function setRAM($rAM) { $this->rAM = $rAM; } - public function getRAM() { return $this->rAM; @@ -2876,7 +2727,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2885,7 +2735,6 @@ public function setRegion($region) { $this->region = $region; } - public function getRegion() { return $this->region; @@ -2894,12 +2743,10 @@ public function setTier($tier) { $this->tier = $tier; } - public function getTier() { return $this->tier; } - } class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection @@ -2911,11 +2758,11 @@ class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection protected $itemsDataType = 'array'; public $kind; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -2924,10 +2771,8 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } From 5bf7b43640b3f7053c4cd1bb0be43cc0de849363 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:25 -0800 Subject: [PATCH 0507/1274] Updated GroupsMigration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GroupsMigration.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index 231443f9d..4c7ce4aab 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -19,8 +19,7 @@ * Service definition for GroupsMigration (v1). * *

- * Groups Migration Api. - *

+ * Groups Migration Api.

* *

* For more information about this service, see the API @@ -86,8 +85,7 @@ class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Res /** * Inserts a new mail into the archive of the Google group. (archive.insert) * - * @param string $groupId - * The group ID + * @param string $groupId The group ID * @param array $optParams Optional parameters. * @return Google_Service_GroupsMigration_Groups */ @@ -109,11 +107,11 @@ class Google_Service_GroupsMigration_Groups extends Google_Model public $kind; public $responseCode; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -122,10 +120,8 @@ public function setResponseCode($responseCode) { $this->responseCode = $responseCode; } - public function getResponseCode() { return $this->responseCode; } - } From 4e395cb1639661ab70c3e2d7bf4669beff43bee0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:25 -0800 Subject: [PATCH 0508/1274] Updated QPXExpress.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/QPXExpress.php | 187 +++++------------------------- 1 file changed, 26 insertions(+), 161 deletions(-) diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index 5526f07ab..b38fd13c4 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -19,8 +19,8 @@ * Service definition for QPXExpress (v1). * *

- * Lets you find the least expensive flights between an origin and a destination. - *

+ * Lets you find the least expensive flights between an origin and a + * destination.

* *

* For more information about this service, see the API @@ -103,11 +103,11 @@ class Google_Service_QPXExpress_AircraftData extends Google_Model public $kind; public $name; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -116,7 +116,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -125,12 +124,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_QPXExpress_AirportData extends Google_Model @@ -142,11 +139,11 @@ class Google_Service_QPXExpress_AirportData extends Google_Model public $kind; public $name; + public function setCity($city) { $this->city = $city; } - public function getCity() { return $this->city; @@ -155,7 +152,6 @@ public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -164,7 +160,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -173,12 +168,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_QPXExpress_BagDescriptor extends Google_Collection @@ -192,11 +185,11 @@ class Google_Service_QPXExpress_BagDescriptor extends Google_Collection public $kind; public $subcode; + public function setCommercialName($commercialName) { $this->commercialName = $commercialName; } - public function getCommercialName() { return $this->commercialName; @@ -205,7 +198,6 @@ public function setCount($count) { $this->count = $count; } - public function getCount() { return $this->count; @@ -214,7 +206,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -223,7 +214,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -232,12 +222,10 @@ public function setSubcode($subcode) { $this->subcode = $subcode; } - public function getSubcode() { return $this->subcode; } - } class Google_Service_QPXExpress_CarrierData extends Google_Model @@ -248,11 +236,11 @@ class Google_Service_QPXExpress_CarrierData extends Google_Model public $kind; public $name; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -261,7 +249,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -270,12 +257,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_QPXExpress_CityData extends Google_Model @@ -287,11 +272,11 @@ class Google_Service_QPXExpress_CityData extends Google_Model public $kind; public $name; + public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -300,7 +285,6 @@ public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -309,7 +293,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -318,12 +301,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_QPXExpress_Data extends Google_Collection @@ -343,11 +324,11 @@ class Google_Service_QPXExpress_Data extends Google_Collection protected $taxType = 'Google_Service_QPXExpress_TaxData'; protected $taxDataType = 'array'; + public function setAircraft($aircraft) { $this->aircraft = $aircraft; } - public function getAircraft() { return $this->aircraft; @@ -356,7 +337,6 @@ public function setAirport($airport) { $this->airport = $airport; } - public function getAirport() { return $this->airport; @@ -365,7 +345,6 @@ public function setCarrier($carrier) { $this->carrier = $carrier; } - public function getCarrier() { return $this->carrier; @@ -374,7 +353,6 @@ public function setCity($city) { $this->city = $city; } - public function getCity() { return $this->city; @@ -383,7 +361,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -392,12 +369,10 @@ public function setTax($tax) { $this->tax = $tax; } - public function getTax() { return $this->tax; } - } class Google_Service_QPXExpress_FareInfo extends Google_Model @@ -412,11 +387,11 @@ class Google_Service_QPXExpress_FareInfo extends Google_Model public $origin; public $private; + public function setBasisCode($basisCode) { $this->basisCode = $basisCode; } - public function getBasisCode() { return $this->basisCode; @@ -425,7 +400,6 @@ public function setCarrier($carrier) { $this->carrier = $carrier; } - public function getCarrier() { return $this->carrier; @@ -434,7 +408,6 @@ public function setDestination($destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -443,7 +416,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -452,7 +424,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -461,7 +432,6 @@ public function setOrigin($origin) { $this->origin = $origin; } - public function getOrigin() { return $this->origin; @@ -470,12 +440,10 @@ public function setPrivate($private) { $this->private = $private; } - public function getPrivate() { return $this->private; } - } class Google_Service_QPXExpress_FlightInfo extends Google_Model @@ -485,11 +453,11 @@ class Google_Service_QPXExpress_FlightInfo extends Google_Model public $carrier; public $number; + public function setCarrier($carrier) { $this->carrier = $carrier; } - public function getCarrier() { return $this->carrier; @@ -498,12 +466,10 @@ public function setNumber($number) { $this->number = $number; } - public function getNumber() { return $this->number; } - } class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection @@ -519,11 +485,11 @@ class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection public $pieces; public $pounds; + public function setBagDescriptor($bagDescriptor) { $this->bagDescriptor = $bagDescriptor; } - public function getBagDescriptor() { return $this->bagDescriptor; @@ -532,7 +498,6 @@ public function setKilos($kilos) { $this->kilos = $kilos; } - public function getKilos() { return $this->kilos; @@ -541,7 +506,6 @@ public function setKilosPerPiece($kilosPerPiece) { $this->kilosPerPiece = $kilosPerPiece; } - public function getKilosPerPiece() { return $this->kilosPerPiece; @@ -550,7 +514,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -559,7 +522,6 @@ public function setPieces($pieces) { $this->pieces = $pieces; } - public function getPieces() { return $this->pieces; @@ -568,12 +530,10 @@ public function setPounds($pounds) { $this->pounds = $pounds; } - public function getPounds() { return $this->pounds; } - } class Google_Service_QPXExpress_LegInfo extends Google_Model @@ -598,11 +558,11 @@ class Google_Service_QPXExpress_LegInfo extends Google_Model public $originTerminal; public $secure; + public function setAircraft($aircraft) { $this->aircraft = $aircraft; } - public function getAircraft() { return $this->aircraft; @@ -611,7 +571,6 @@ public function setArrivalTime($arrivalTime) { $this->arrivalTime = $arrivalTime; } - public function getArrivalTime() { return $this->arrivalTime; @@ -620,7 +579,6 @@ public function setChangePlane($changePlane) { $this->changePlane = $changePlane; } - public function getChangePlane() { return $this->changePlane; @@ -629,7 +587,6 @@ public function setConnectionDuration($connectionDuration) { $this->connectionDuration = $connectionDuration; } - public function getConnectionDuration() { return $this->connectionDuration; @@ -638,7 +595,6 @@ public function setDepartureTime($departureTime) { $this->departureTime = $departureTime; } - public function getDepartureTime() { return $this->departureTime; @@ -647,7 +603,6 @@ public function setDestination($destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -656,7 +611,6 @@ public function setDestinationTerminal($destinationTerminal) { $this->destinationTerminal = $destinationTerminal; } - public function getDestinationTerminal() { return $this->destinationTerminal; @@ -665,7 +619,6 @@ public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -674,7 +627,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -683,7 +635,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -692,7 +643,6 @@ public function setMeal($meal) { $this->meal = $meal; } - public function getMeal() { return $this->meal; @@ -701,7 +651,6 @@ public function setMileage($mileage) { $this->mileage = $mileage; } - public function getMileage() { return $this->mileage; @@ -710,7 +659,6 @@ public function setOnTimePerformance($onTimePerformance) { $this->onTimePerformance = $onTimePerformance; } - public function getOnTimePerformance() { return $this->onTimePerformance; @@ -719,7 +667,6 @@ public function setOperatingDisclosure($operatingDisclosure) { $this->operatingDisclosure = $operatingDisclosure; } - public function getOperatingDisclosure() { return $this->operatingDisclosure; @@ -728,7 +675,6 @@ public function setOrigin($origin) { $this->origin = $origin; } - public function getOrigin() { return $this->origin; @@ -737,7 +683,6 @@ public function setOriginTerminal($originTerminal) { $this->originTerminal = $originTerminal; } - public function getOriginTerminal() { return $this->originTerminal; @@ -746,12 +691,10 @@ public function setSecure($secure) { $this->secure = $secure; } - public function getSecure() { return $this->secure; } - } class Google_Service_QPXExpress_PassengerCounts extends Google_Model @@ -765,11 +708,11 @@ class Google_Service_QPXExpress_PassengerCounts extends Google_Model public $kind; public $seniorCount; + public function setAdultCount($adultCount) { $this->adultCount = $adultCount; } - public function getAdultCount() { return $this->adultCount; @@ -778,7 +721,6 @@ public function setChildCount($childCount) { $this->childCount = $childCount; } - public function getChildCount() { return $this->childCount; @@ -787,7 +729,6 @@ public function setInfantInLapCount($infantInLapCount) { $this->infantInLapCount = $infantInLapCount; } - public function getInfantInLapCount() { return $this->infantInLapCount; @@ -796,7 +737,6 @@ public function setInfantInSeatCount($infantInSeatCount) { $this->infantInSeatCount = $infantInSeatCount; } - public function getInfantInSeatCount() { return $this->infantInSeatCount; @@ -805,7 +745,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -814,12 +753,10 @@ public function setSeniorCount($seniorCount) { $this->seniorCount = $seniorCount; } - public function getSeniorCount() { return $this->seniorCount; } - } class Google_Service_QPXExpress_PricingInfo extends Google_Collection @@ -845,11 +782,11 @@ class Google_Service_QPXExpress_PricingInfo extends Google_Collection protected $taxType = 'Google_Service_QPXExpress_TaxInfo'; protected $taxDataType = 'array'; + public function setBaseFareTotal($baseFareTotal) { $this->baseFareTotal = $baseFareTotal; } - public function getBaseFareTotal() { return $this->baseFareTotal; @@ -858,7 +795,6 @@ public function setFare($fare) { $this->fare = $fare; } - public function getFare() { return $this->fare; @@ -867,7 +803,6 @@ public function setFareCalculation($fareCalculation) { $this->fareCalculation = $fareCalculation; } - public function getFareCalculation() { return $this->fareCalculation; @@ -876,7 +811,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -885,7 +819,6 @@ public function setLatestTicketingTime($latestTicketingTime) { $this->latestTicketingTime = $latestTicketingTime; } - public function getLatestTicketingTime() { return $this->latestTicketingTime; @@ -894,7 +827,6 @@ public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passeng { $this->passengers = $passengers; } - public function getPassengers() { return $this->passengers; @@ -903,7 +835,6 @@ public function setPtc($ptc) { $this->ptc = $ptc; } - public function getPtc() { return $this->ptc; @@ -912,7 +843,6 @@ public function setRefundable($refundable) { $this->refundable = $refundable; } - public function getRefundable() { return $this->refundable; @@ -921,7 +851,6 @@ public function setSaleFareTotal($saleFareTotal) { $this->saleFareTotal = $saleFareTotal; } - public function getSaleFareTotal() { return $this->saleFareTotal; @@ -930,7 +859,6 @@ public function setSaleTaxTotal($saleTaxTotal) { $this->saleTaxTotal = $saleTaxTotal; } - public function getSaleTaxTotal() { return $this->saleTaxTotal; @@ -939,7 +867,6 @@ public function setSaleTotal($saleTotal) { $this->saleTotal = $saleTotal; } - public function getSaleTotal() { return $this->saleTotal; @@ -948,7 +875,6 @@ public function setSegmentPricing($segmentPricing) { $this->segmentPricing = $segmentPricing; } - public function getSegmentPricing() { return $this->segmentPricing; @@ -957,12 +883,10 @@ public function setTax($tax) { $this->tax = $tax; } - public function getTax() { return $this->tax; } - } class Google_Service_QPXExpress_SegmentInfo extends Google_Collection @@ -984,11 +908,11 @@ class Google_Service_QPXExpress_SegmentInfo extends Google_Collection public $marriedSegmentGroup; public $subjectToGovernmentApproval; + public function setBookingCode($bookingCode) { $this->bookingCode = $bookingCode; } - public function getBookingCode() { return $this->bookingCode; @@ -997,7 +921,6 @@ public function setBookingCodeCount($bookingCodeCount) { $this->bookingCodeCount = $bookingCodeCount; } - public function getBookingCodeCount() { return $this->bookingCodeCount; @@ -1006,7 +929,6 @@ public function setCabin($cabin) { $this->cabin = $cabin; } - public function getCabin() { return $this->cabin; @@ -1015,7 +937,6 @@ public function setConnectionDuration($connectionDuration) { $this->connectionDuration = $connectionDuration; } - public function getConnectionDuration() { return $this->connectionDuration; @@ -1024,7 +945,6 @@ public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -1033,7 +953,6 @@ public function setFlight(Google_Service_QPXExpress_FlightInfo $flight) { $this->flight = $flight; } - public function getFlight() { return $this->flight; @@ -1042,7 +961,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1051,7 +969,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1060,7 +977,6 @@ public function setLeg($leg) { $this->leg = $leg; } - public function getLeg() { return $this->leg; @@ -1069,7 +985,6 @@ public function setMarriedSegmentGroup($marriedSegmentGroup) { $this->marriedSegmentGroup = $marriedSegmentGroup; } - public function getMarriedSegmentGroup() { return $this->marriedSegmentGroup; @@ -1078,12 +993,10 @@ public function setSubjectToGovernmentApproval($subjectToGovernmentApproval) { $this->subjectToGovernmentApproval = $subjectToGovernmentApproval; } - public function getSubjectToGovernmentApproval() { return $this->subjectToGovernmentApproval; } - } class Google_Service_QPXExpress_SegmentPricing extends Google_Collection @@ -1097,11 +1010,11 @@ class Google_Service_QPXExpress_SegmentPricing extends Google_Collection public $kind; public $segmentId; + public function setFareId($fareId) { $this->fareId = $fareId; } - public function getFareId() { return $this->fareId; @@ -1110,7 +1023,6 @@ public function setFreeBaggageOption($freeBaggageOption) { $this->freeBaggageOption = $freeBaggageOption; } - public function getFreeBaggageOption() { return $this->freeBaggageOption; @@ -1119,7 +1031,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1128,12 +1039,10 @@ public function setSegmentId($segmentId) { $this->segmentId = $segmentId; } - public function getSegmentId() { return $this->segmentId; } - } class Google_Service_QPXExpress_SliceInfo extends Google_Collection @@ -1146,11 +1055,11 @@ class Google_Service_QPXExpress_SliceInfo extends Google_Collection protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; protected $segmentDataType = 'array'; + public function setDuration($duration) { $this->duration = $duration; } - public function getDuration() { return $this->duration; @@ -1159,7 +1068,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1168,12 +1076,10 @@ public function setSegment($segment) { $this->segment = $segment; } - public function getSegment() { return $this->segment; } - } class Google_Service_QPXExpress_SliceInput extends Google_Collection @@ -1194,11 +1100,11 @@ class Google_Service_QPXExpress_SliceInput extends Google_Collection public $preferredCabin; public $prohibitedCarrier; + public function setAlliance($alliance) { $this->alliance = $alliance; } - public function getAlliance() { return $this->alliance; @@ -1207,7 +1113,6 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -1216,7 +1121,6 @@ public function setDestination($destination) { $this->destination = $destination; } - public function getDestination() { return $this->destination; @@ -1225,7 +1129,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1234,7 +1137,6 @@ public function setMaxConnectionDuration($maxConnectionDuration) { $this->maxConnectionDuration = $maxConnectionDuration; } - public function getMaxConnectionDuration() { return $this->maxConnectionDuration; @@ -1243,7 +1145,6 @@ public function setMaxStops($maxStops) { $this->maxStops = $maxStops; } - public function getMaxStops() { return $this->maxStops; @@ -1252,7 +1153,6 @@ public function setOrigin($origin) { $this->origin = $origin; } - public function getOrigin() { return $this->origin; @@ -1261,7 +1161,6 @@ public function setPermittedCarrier($permittedCarrier) { $this->permittedCarrier = $permittedCarrier; } - public function getPermittedCarrier() { return $this->permittedCarrier; @@ -1270,7 +1169,6 @@ public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRan { $this->permittedDepartureTime = $permittedDepartureTime; } - public function getPermittedDepartureTime() { return $this->permittedDepartureTime; @@ -1279,7 +1177,6 @@ public function setPreferredCabin($preferredCabin) { $this->preferredCabin = $preferredCabin; } - public function getPreferredCabin() { return $this->preferredCabin; @@ -1288,12 +1185,10 @@ public function setProhibitedCarrier($prohibitedCarrier) { $this->prohibitedCarrier = $prohibitedCarrier; } - public function getProhibitedCarrier() { return $this->prohibitedCarrier; } - } class Google_Service_QPXExpress_TaxData extends Google_Model @@ -1304,11 +1199,11 @@ class Google_Service_QPXExpress_TaxData extends Google_Model public $kind; public $name; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1317,7 +1212,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1326,12 +1220,10 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; } - } class Google_Service_QPXExpress_TaxInfo extends Google_Model @@ -1345,11 +1237,11 @@ class Google_Service_QPXExpress_TaxInfo extends Google_Model public $kind; public $salePrice; + public function setChargeType($chargeType) { $this->chargeType = $chargeType; } - public function getChargeType() { return $this->chargeType; @@ -1358,7 +1250,6 @@ public function setCode($code) { $this->code = $code; } - public function getCode() { return $this->code; @@ -1367,7 +1258,6 @@ public function setCountry($country) { $this->country = $country; } - public function getCountry() { return $this->country; @@ -1376,7 +1266,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1385,7 +1274,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1394,12 +1282,10 @@ public function setSalePrice($salePrice) { $this->salePrice = $salePrice; } - public function getSalePrice() { return $this->salePrice; } - } class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model @@ -1410,11 +1296,11 @@ class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model public $kind; public $latestTime; + public function setEarliestTime($earliestTime) { $this->earliestTime = $earliestTime; } - public function getEarliestTime() { return $this->earliestTime; @@ -1423,7 +1309,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1432,12 +1317,10 @@ public function setLatestTime($latestTime) { $this->latestTime = $latestTime; } - public function getLatestTime() { return $this->latestTime; } - } class Google_Service_QPXExpress_TripOption extends Google_Collection @@ -1453,11 +1336,11 @@ class Google_Service_QPXExpress_TripOption extends Google_Collection protected $sliceType = 'Google_Service_QPXExpress_SliceInfo'; protected $sliceDataType = 'array'; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -1466,7 +1349,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1475,7 +1357,6 @@ public function setPricing($pricing) { $this->pricing = $pricing; } - public function getPricing() { return $this->pricing; @@ -1484,7 +1365,6 @@ public function setSaleTotal($saleTotal) { $this->saleTotal = $saleTotal; } - public function getSaleTotal() { return $this->saleTotal; @@ -1493,12 +1373,10 @@ public function setSlice($slice) { $this->slice = $slice; } - public function getSlice() { return $this->slice; } - } class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection @@ -1515,11 +1393,11 @@ class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection protected $sliceDataType = 'array'; public $solutions; + public function setMaxPrice($maxPrice) { $this->maxPrice = $maxPrice; } - public function getMaxPrice() { return $this->maxPrice; @@ -1528,7 +1406,6 @@ public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passeng { $this->passengers = $passengers; } - public function getPassengers() { return $this->passengers; @@ -1537,7 +1414,6 @@ public function setRefundable($refundable) { $this->refundable = $refundable; } - public function getRefundable() { return $this->refundable; @@ -1546,7 +1422,6 @@ public function setSaleCountry($saleCountry) { $this->saleCountry = $saleCountry; } - public function getSaleCountry() { return $this->saleCountry; @@ -1555,7 +1430,6 @@ public function setSlice($slice) { $this->slice = $slice; } - public function getSlice() { return $this->slice; @@ -1564,12 +1438,10 @@ public function setSolutions($solutions) { $this->solutions = $solutions; } - public function getSolutions() { return $this->solutions; } - } class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection @@ -1584,11 +1456,11 @@ class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection protected $tripOptionType = 'Google_Service_QPXExpress_TripOption'; protected $tripOptionDataType = 'array'; + public function setData(Google_Service_QPXExpress_Data $data) { $this->data = $data; } - public function getData() { return $this->data; @@ -1597,7 +1469,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1606,7 +1477,6 @@ public function setRequestId($requestId) { $this->requestId = $requestId; } - public function getRequestId() { return $this->requestId; @@ -1615,12 +1485,10 @@ public function setTripOption($tripOption) { $this->tripOption = $tripOption; } - public function getTripOption() { return $this->tripOption; } - } class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model @@ -1630,16 +1498,15 @@ class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest'; protected $requestDataType = ''; + public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request) { $this->request = $request; } - public function getRequest() { return $this->request; } - } class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model @@ -1650,11 +1517,11 @@ class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse'; protected $tripsDataType = ''; + public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -1663,10 +1530,8 @@ public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips) { $this->trips = $trips; } - public function getTrips() { return $this->trips; } - } From 8ff1036fe5954f37ef724ad58077919b8c4f491e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:26 -0800 Subject: [PATCH 0509/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 41 ++++++++++------------------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 96272a71d..8a42c1b45 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -19,8 +19,7 @@ * Service definition for Oauth2 (v2). * *

- * Lets you access OAuth2 protocol related APIs. - *

+ * Lets you access OAuth2 protocol related APIs.

* *

* For more information about this service, see the API @@ -32,13 +31,17 @@ class Google_Service_Oauth2 extends Google_Service { /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + const PLUS_ME = + "https://www.googleapis.com/auth/plus.me"; /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; + const USERINFO_PROFILE = + "https://www.googleapis.com/auth/userinfo.profile"; public $userinfo; public $userinfo_v2_me; @@ -114,9 +117,7 @@ public function __construct(Google_Client $client) * @param array $optParams Optional parameters. * * @opt_param string access_token - * * @opt_param string id_token - * * @return Google_Service_Oauth2_Tokeninfo */ public function tokeninfo($optParams = array()) @@ -163,7 +164,6 @@ public function get($optParams = array()) */ class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource { - } /** @@ -212,11 +212,11 @@ class Google_Service_Oauth2_Tokeninfo extends Google_Model public $userId; public $verifiedEmail; + public function setAccessType($accessType) { $this->accessType = $accessType; } - public function getAccessType() { return $this->accessType; @@ -225,7 +225,6 @@ public function setAudience($audience) { $this->audience = $audience; } - public function getAudience() { return $this->audience; @@ -234,7 +233,6 @@ public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -243,7 +241,6 @@ public function setExpiresIn($expiresIn) { $this->expiresIn = $expiresIn; } - public function getExpiresIn() { return $this->expiresIn; @@ -252,7 +249,6 @@ public function setIssuedTo($issuedTo) { $this->issuedTo = $issuedTo; } - public function getIssuedTo() { return $this->issuedTo; @@ -261,7 +257,6 @@ public function setScope($scope) { $this->scope = $scope; } - public function getScope() { return $this->scope; @@ -270,7 +265,6 @@ public function setUserId($userId) { $this->userId = $userId; } - public function getUserId() { return $this->userId; @@ -279,12 +273,10 @@ public function setVerifiedEmail($verifiedEmail) { $this->verifiedEmail = $verifiedEmail; } - public function getVerifiedEmail() { return $this->verifiedEmail; } - } class Google_Service_Oauth2_Userinfoplus extends Google_Model @@ -306,11 +298,11 @@ class Google_Service_Oauth2_Userinfoplus extends Google_Model public $picture; public $verifiedEmail; + public function setEmail($email) { $this->email = $email; } - public function getEmail() { return $this->email; @@ -319,7 +311,6 @@ public function setFamilyName($familyName) { $this->familyName = $familyName; } - public function getFamilyName() { return $this->familyName; @@ -328,7 +319,6 @@ public function setGender($gender) { $this->gender = $gender; } - public function getGender() { return $this->gender; @@ -337,7 +327,6 @@ public function setGivenName($givenName) { $this->givenName = $givenName; } - public function getGivenName() { return $this->givenName; @@ -346,7 +335,6 @@ public function setHd($hd) { $this->hd = $hd; } - public function getHd() { return $this->hd; @@ -355,7 +343,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -364,7 +351,6 @@ public function setLink($link) { $this->link = $link; } - public function getLink() { return $this->link; @@ -373,7 +359,6 @@ public function setLocale($locale) { $this->locale = $locale; } - public function getLocale() { return $this->locale; @@ -382,7 +367,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -391,7 +375,6 @@ public function setPicture($picture) { $this->picture = $picture; } - public function getPicture() { return $this->picture; @@ -400,10 +383,8 @@ public function setVerifiedEmail($verifiedEmail) { $this->verifiedEmail = $verifiedEmail; } - public function getVerifiedEmail() { return $this->verifiedEmail; } - } From 09957473939dd46ec590e0023e74fd2e8b20b8e8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:26 -0800 Subject: [PATCH 0510/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 1089 +++++++++++----------------------- 1 file changed, 359 insertions(+), 730 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 865c2522b..6c3972747 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -19,8 +19,7 @@ * Service definition for Drive (v2). * *

- * The API to interact with Drive. - *

+ * The API to interact with Drive.

* *

* For more information about this service, see the API @@ -32,19 +31,26 @@ class Google_Service_Drive extends Google_Service { /** View and manage the files and documents in your Google Drive. */ - const DRIVE = "https://www.googleapis.com/auth/drive"; + const DRIVE = + "https://www.googleapis.com/auth/drive"; /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; + const DRIVE_APPDATA = + "https://www.googleapis.com/auth/drive.appdata"; /** View your Google Drive apps. */ - const DRIVE_APPS_READONLY = "https://www.googleapis.com/auth/drive.apps.readonly"; + const DRIVE_APPS_READONLY = + "https://www.googleapis.com/auth/drive.apps.readonly"; /** View and manage Google Drive files that you have opened or created with this app. */ - const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; + const DRIVE_FILE = + "https://www.googleapis.com/auth/drive.file"; /** View metadata for files and documents in your Google Drive. */ - const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + const DRIVE_METADATA_READONLY = + "https://www.googleapis.com/auth/drive.metadata.readonly"; /** View the files and documents in your Google Drive. */ - const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; + const DRIVE_READONLY = + "https://www.googleapis.com/auth/drive.readonly"; /** Modify your Google Apps Script scripts' behavior. */ - const DRIVE_SCRIPTS = "https://www.googleapis.com/auth/drive.scripts"; + const DRIVE_SCRIPTS = + "https://www.googleapis.com/auth/drive.scripts"; public $about; public $apps; @@ -1274,14 +1280,15 @@ class Google_Service_Drive_About_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param bool includeSubscribed - * When calculating the number of remaining change IDs, whether to include public files the user - * has opened and shared files. When set to false, this counts only change IDs for owned files and - * any shared or public files that the user has explicitly added to a folder they own. - * @opt_param string maxChangeIdCount - * Maximum number of remaining change IDs to count - * @opt_param string startChangeId - * Change ID to start counting from when calculating number of remaining change IDs + * @opt_param bool includeSubscribed When calculating the number of remaining + * change IDs, whether to include public files the user has opened and shared + * files. When set to false, this counts only change IDs for owned files and any + * shared or public files that the user has explicitly added to a folder they + * own. + * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to + * count + * @opt_param string startChangeId Change ID to start counting from when + * calculating number of remaining change IDs * @return Google_Service_Drive_About */ public function get($optParams = array()) @@ -1306,8 +1313,7 @@ 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 string $appId The ID of the app. * @param array $optParams Optional parameters. * @return Google_Service_Drive_App */ @@ -1317,22 +1323,25 @@ public function get($appId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_App"); } + /** * Lists a user's installed apps. (apps.listApps) * * @param array $optParams Optional parameters. * - * @opt_param string languageCode - * A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format - * (http://www.unicode.org/reports/tr35/). - * @opt_param string appFilterExtensions - * A comma-separated list of file extensions for open with filtering. All apps within the given app - * query scope which can open any of the given file extensions will be included in the response. If - * appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists. - * @opt_param string appFilterMimeTypes - * A comma-separated list of MIME types for open with filtering. All apps within the given app - * query scope which can open any of the given MIME types will be included in the response. If - * appFilterExtensions are provided as well, the result is a union of the two resulting app lists. + * @opt_param string languageCode A language or locale code, as defined by BCP + * 47, with some extensions from Unicode's LDML format + * (http://www.unicode.org/reports/tr35/). + * @opt_param string appFilterExtensions A comma-separated list of file + * extensions for open with filtering. All apps within the given app query scope + * which can open any of the given file extensions will be included in the + * response. If appFilterMimeTypes are provided as well, the result is a union + * of the two resulting app lists. + * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for + * open with filtering. All apps within the given app query scope which can open + * any of the given MIME types will be included in the response. If + * appFilterExtensions are provided as well, the result is a union of the two + * resulting app lists. * @return Google_Service_Drive_AppList */ public function listApps($optParams = array()) @@ -1357,8 +1366,7 @@ 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 string $changeId The ID of the change. * @param array $optParams Optional parameters. * @return Google_Service_Drive_Change */ @@ -1368,23 +1376,20 @@ public function get($changeId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_Change"); } + /** * Lists the changes for a user. (changes.listChanges) * * @param array $optParams Optional parameters. * - * @opt_param bool includeSubscribed - * Whether to include public files the user has opened and shared files. When set to false, the - * list only includes owned files plus any shared or public files the user has explicitly added to - * a folder they own. - * @opt_param string startChangeId - * Change ID to start listing changes from. - * @opt_param bool includeDeleted - * Whether to include deleted items. - * @opt_param int maxResults - * Maximum number of changes to return. - * @opt_param string pageToken - * Page token for changes. + * @opt_param bool includeSubscribed Whether to include public files the user + * has opened and shared files. When set to false, the list only includes owned + * files plus any shared or public files the user has explicitly added to a + * folder they own. + * @opt_param string startChangeId Change ID to start listing changes from. + * @opt_param bool includeDeleted Whether to include deleted items. + * @opt_param int maxResults Maximum number of changes to return. + * @opt_param string pageToken Page token for changes. * @return Google_Service_Drive_ChangeList */ public function listChanges($optParams = array()) @@ -1393,24 +1398,21 @@ public function listChanges($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); } + /** * Subscribe to changes for a user. (changes.watch) * * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param bool includeSubscribed - * Whether to include public files the user has opened and shared files. When set to false, the - * list only includes owned files plus any shared or public files the user has explicitly added to - * a folder they own. - * @opt_param string startChangeId - * Change ID to start listing changes from. - * @opt_param bool includeDeleted - * Whether to include deleted items. - * @opt_param int maxResults - * Maximum number of changes to return. - * @opt_param string pageToken - * Page token for changes. + * @opt_param bool includeSubscribed Whether to include public files the user + * has opened and shared files. When set to false, the list only includes owned + * files plus any shared or public files the user has explicitly added to a + * folder they own. + * @opt_param string startChangeId Change ID to start listing changes from. + * @opt_param bool includeDeleted Whether to include deleted items. + * @opt_param int maxResults Maximum number of changes to return. + * @opt_param string pageToken Page token for changes. * @return Google_Service_Drive_Channel */ public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) @@ -1460,10 +1462,8 @@ 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 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()) @@ -1472,13 +1472,12 @@ public function delete($folderId, $childId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a specific child reference. (children.get) * - * @param string $folderId - * The ID of the folder. - * @param string $childId - * The ID of the child. + * @param 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 */ @@ -1488,11 +1487,11 @@ public function get($folderId, $childId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); } + /** * Inserts a file into a folder. (children.insert) * - * @param string $folderId - * The ID of the folder. + * @param string $folderId The ID of the folder. * @param Google_ChildReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Drive_ChildReference @@ -1503,19 +1502,16 @@ public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); } + /** * Lists a folder's children. (children.listChildren) * - * @param string $folderId - * The ID of the folder. + * @param string $folderId The ID of the folder. * @param array $optParams Optional parameters. * - * @opt_param string q - * Query string for searching children. - * @opt_param string pageToken - * Page token for children. - * @opt_param int maxResults - * Maximum number of children to return. + * @opt_param string q Query string for searching children. + * @opt_param string pageToken Page token for children. + * @opt_param int maxResults Maximum number of children to return. * @return Google_Service_Drive_ChildList */ public function listChildren($folderId, $optParams = array()) @@ -1540,10 +1536,8 @@ 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 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()) @@ -1552,18 +1546,16 @@ public function delete($fileId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a comment by ID. (comments.get) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. + * @param 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. + * @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()) @@ -1572,11 +1564,11 @@ public function get($fileId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_Comment"); } + /** * Creates a new comment on the given file. (comments.insert) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param Google_Comment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Drive_Comment @@ -1587,24 +1579,22 @@ public function insert($fileId, Google_Service_Drive_Comment $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_Comment"); } + /** * Lists a file's comments. (comments.listComments) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string updatedMin - * Only discussions that were updated after this timestamp will be returned. Formatted as an RFC - * 3339 timestamp. - * @opt_param bool includeDeleted - * If set, all comments and replies, including deleted comments and replies (with content stripped) - * will be returned. - * @opt_param int maxResults - * The maximum number of discussions to include in the response, used for paging. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of "nextPageToken" from the previous response. + * @opt_param string updatedMin Only discussions that were updated after this + * timestamp will be returned. Formatted as an RFC 3339 timestamp. + * @opt_param bool includeDeleted If set, all comments and replies, including + * deleted comments and replies (with content stripped) will be returned. + * @opt_param int maxResults The maximum number of discussions to include in the + * response, used for paging. * @return Google_Service_Drive_CommentList */ public function listComments($fileId, $optParams = array()) @@ -1613,14 +1603,13 @@ public function listComments($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_CommentList"); } + /** * Updates an existing comment. This method supports patch semantics. * (comments.patch) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. + * @param 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 @@ -1631,13 +1620,12 @@ public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBod $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_Comment"); } + /** * Updates an existing comment. (comments.update) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. + * @param 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 @@ -1664,27 +1652,23 @@ 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 string $fileId The ID of the file to copy. * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param string visibility - * The visibility of the new file. This parameter is only relevant when the source is not a native - * Google Doc and convert=false. - * @opt_param bool pinned - * Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned - * revisions. - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextTrackName - * The timed text track name. - * @opt_param string timedTextLanguage - * The language of the timed text. + * @opt_param bool convert Whether to convert this file to the corresponding + * Google Docs format. + * @opt_param string ocrLanguage If ocr is true, hints at the language to use. + * Valid values are ISO 639-1 codes. + * @opt_param string visibility The visibility of the new file. This parameter + * is only relevant when the source is not a native Google Doc and + * convert=false. + * @opt_param bool pinned Whether to pin the head revision of the new copy. A + * file can have a maximum of 200 pinned revisions. + * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + * @opt_param string timedTextTrackName The timed text track name. + * @opt_param string timedTextLanguage The language of the timed text. * @return Google_Service_Drive_DriveFile */ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -1693,11 +1677,11 @@ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optPara $params = array_merge($params, $optParams); return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); } + /** * Permanently deletes a file by ID. Skips the trash. (files.delete) * - * @param string $fileId - * The ID of the file to delete. + * @param string $fileId The ID of the file to delete. * @param array $optParams Optional parameters. */ public function delete($fileId, $optParams = array()) @@ -1706,6 +1690,7 @@ public function delete($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Permanently deletes all of the user's trashed files. (files.emptyTrash) * @@ -1717,19 +1702,19 @@ public function emptyTrash($optParams = array()) $params = array_merge($params, $optParams); return $this->call('emptyTrash', array($params)); } + /** * Gets a file's metadata by ID. (files.get) * - * @param string $fileId - * The ID for the file in question. + * @param string $fileId The ID for the file in question. * @param array $optParams Optional parameters. * - * @opt_param bool acknowledgeAbuse - * Whether the user is acknowledging the risk of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully retrieving the file. - * @opt_param string projection - * This parameter is deprecated and has no function. + * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk + * of downloading known malware or other abusive files. + * @opt_param bool updateViewedDate Whether to update the view date after + * successfully retrieving the file. + * @opt_param string projection This parameter is deprecated and has no + * function. * @return Google_Service_Drive_DriveFile */ public function get($fileId, $optParams = array()) @@ -1738,29 +1723,27 @@ public function get($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); } + /** * Insert a new file. (files.insert) * * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param string visibility - * The visibility of the new file. This parameter is only relevant when convert=false. - * @opt_param bool pinned - * Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned - * revisions. - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextTrackName - * The timed text track name. - * @opt_param string timedTextLanguage - * The language of the timed text. + * @opt_param bool convert Whether to convert this file to the corresponding + * Google Docs format. + * @opt_param bool useContentAsIndexableText Whether to use the content as + * indexable text. + * @opt_param string ocrLanguage If ocr is true, hints at the language to use. + * Valid values are ISO 639-1 codes. + * @opt_param string visibility The visibility of the new file. This parameter + * is only relevant when convert=false. + * @opt_param bool pinned Whether to pin the head revision of the uploaded file. + * A file can have a maximum of 200 pinned revisions. + * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + * @opt_param string timedTextTrackName The timed text track name. + * @opt_param string timedTextLanguage The language of the timed text. * @return Google_Service_Drive_DriveFile */ public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -1769,21 +1752,19 @@ public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = ar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); } + /** * Lists the user's files. (files.listFiles) * * @param array $optParams Optional parameters. * - * @opt_param string q - * Query string for searching files. - * @opt_param string pageToken - * Page token for files. - * @opt_param string corpus - * The body of items (files/documents) to which the query applies. - * @opt_param string projection - * This parameter is deprecated and has no function. - * @opt_param int maxResults - * Maximum number of files to return. + * @opt_param string q Query string for searching files. + * @opt_param string pageToken Page token for files. + * @opt_param string corpus The body of items (files/documents) to which the + * query applies. + * @opt_param string projection This parameter is deprecated and has no + * function. + * @opt_param int maxResults Maximum number of files to return. * @return Google_Service_Drive_FileList */ public function listFiles($optParams = array()) @@ -1792,41 +1773,38 @@ public function listFiles($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_FileList"); } + /** * Updates file metadata and/or content. This method supports patch semantics. * (files.patch) * - * @param string $fileId - * The ID of the file to update. + * @param string $fileId The ID of the file to update. * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param string addParents - * Comma-separated list of parent IDs to add. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully updating the file. - * @opt_param string removeParents - * Comma-separated list of parent IDs to remove. - * @opt_param bool setModifiedDate - * Whether to set the modified date with the supplied modified date. - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param bool pinned - * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. - * @opt_param bool newRevision - * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage quota). - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @opt_param string timedTextTrackName - * The timed text track name. + * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param bool updateViewedDate Whether to update the view date after + * successfully updating the file. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. + * @opt_param bool setModifiedDate Whether to set the modified date with the + * supplied modified date. + * @opt_param bool convert Whether to convert this file to the corresponding + * Google Docs format. + * @opt_param bool useContentAsIndexableText Whether to use the content as + * indexable text. + * @opt_param string ocrLanguage If ocr is true, hints at the language to use. + * Valid values are ISO 639-1 codes. + * @opt_param bool pinned Whether to pin the new revision. A file can have a + * maximum of 200 pinned revisions. + * @opt_param bool newRevision Whether a blob upload should create a new + * revision. If false, the blob data in the current head revision is replaced. + * If true or not set, a new blob is created as head revision, and previous + * revisions are preserved (causing increased use of the user's data storage + * quota). + * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + * @opt_param string timedTextLanguage The language of the timed text. + * @opt_param string timedTextTrackName The timed text track name. * @return Google_Service_Drive_DriveFile */ public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -1835,11 +1813,11 @@ public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); } + /** * Set the file's updated time to the current server time. (files.touch) * - * @param string $fileId - * The ID of the file to update. + * @param string $fileId The ID of the file to update. * @param array $optParams Optional parameters. * @return Google_Service_Drive_DriveFile */ @@ -1849,11 +1827,11 @@ public function touch($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); } + /** * Moves a file to the trash. (files.trash) * - * @param string $fileId - * The ID of the file to trash. + * @param string $fileId The ID of the file to trash. * @param array $optParams Optional parameters. * @return Google_Service_Drive_DriveFile */ @@ -1863,11 +1841,11 @@ public function trash($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); } + /** * Restores a file from the trash. (files.untrash) * - * @param string $fileId - * The ID of the file to untrash. + * @param string $fileId The ID of the file to untrash. * @param array $optParams Optional parameters. * @return Google_Service_Drive_DriveFile */ @@ -1877,40 +1855,37 @@ public function untrash($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); } + /** * Updates file metadata and/or content. (files.update) * - * @param string $fileId - * The ID of the file to update. + * @param string $fileId The ID of the file to update. * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param string addParents - * Comma-separated list of parent IDs to add. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully updating the file. - * @opt_param string removeParents - * Comma-separated list of parent IDs to remove. - * @opt_param bool setModifiedDate - * Whether to set the modified date with the supplied modified date. - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param bool pinned - * Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. - * @opt_param bool newRevision - * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage quota). - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @opt_param string timedTextTrackName - * The timed text track name. + * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param bool updateViewedDate Whether to update the view date after + * successfully updating the file. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. + * @opt_param bool setModifiedDate Whether to set the modified date with the + * supplied modified date. + * @opt_param bool convert Whether to convert this file to the corresponding + * Google Docs format. + * @opt_param bool useContentAsIndexableText Whether to use the content as + * indexable text. + * @opt_param string ocrLanguage If ocr is true, hints at the language to use. + * Valid values are ISO 639-1 codes. + * @opt_param bool pinned Whether to pin the new revision. A file can have a + * maximum of 200 pinned revisions. + * @opt_param bool newRevision Whether a blob upload should create a new + * revision. If false, the blob data in the current head revision is replaced. + * If true or not set, a new blob is created as head revision, and previous + * revisions are preserved (causing increased use of the user's data storage + * quota). + * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + * @opt_param string timedTextLanguage The language of the timed text. + * @opt_param string timedTextTrackName The timed text track name. * @return Google_Service_Drive_DriveFile */ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -1919,20 +1894,20 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); } + /** * Subscribe to changes on a file (files.watch) * - * @param string $fileId - * The ID for the file in question. + * @param string $fileId The ID for the file in question. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param bool acknowledgeAbuse - * Whether the user is acknowledging the risk of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully retrieving the file. - * @opt_param string projection - * This parameter is deprecated and has no function. + * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk + * of downloading known malware or other abusive files. + * @opt_param bool updateViewedDate Whether to update the view date after + * successfully retrieving the file. + * @opt_param string projection This parameter is deprecated and has no + * function. * @return Google_Service_Drive_Channel */ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) @@ -1957,10 +1932,8 @@ 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 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()) @@ -1969,13 +1942,12 @@ public function delete($fileId, $parentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a specific parent reference. (parents.get) * - * @param string $fileId - * The ID of the file. - * @param string $parentId - * The ID of the parent. + * @param 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 */ @@ -1985,11 +1957,11 @@ public function get($fileId, $parentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); } + /** * Adds a parent folder for a file. (parents.insert) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param Google_ParentReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Drive_ParentReference @@ -2000,11 +1972,11 @@ public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); } + /** * Lists a file's parents. (parents.listParents) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * @return Google_Service_Drive_ParentList */ @@ -2030,10 +2002,8 @@ 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 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()) @@ -2042,13 +2012,12 @@ public function delete($fileId, $permissionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a permission by ID. (permissions.get) * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. + * @param 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 */ @@ -2058,11 +2027,11 @@ public function get($fileId, $permissionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_Permission"); } + /** * Returns the permission ID for an email address. (permissions.getIdForEmail) * - * @param string $email - * The email address for which to return a permission ID + * @param string $email The email address for which to return a permission ID * @param array $optParams Optional parameters. * @return Google_Service_Drive_PermissionId */ @@ -2072,19 +2041,19 @@ public function getIdForEmail($email, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); } + /** * Inserts a permission for a file. (permissions.insert) * - * @param string $fileId - * The ID for the file. + * @param string $fileId The ID for the file. * @param Google_Permission $postBody * @param array $optParams Optional parameters. * - * @opt_param string emailMessage - * A custom message to include in notification emails. - * @opt_param bool sendNotificationEmails - * Whether to send notification emails when sharing to users or groups. This parameter is ignored - * and an email is sent if the role is owner. + * @opt_param string emailMessage A custom message to include in notification + * emails. + * @opt_param bool sendNotificationEmails Whether to send notification emails + * when sharing to users or groups. This parameter is ignored and an email is + * sent if the role is owner. * @return Google_Service_Drive_Permission */ public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) @@ -2093,11 +2062,11 @@ public function insert($fileId, Google_Service_Drive_Permission $postBody, $optP $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_Permission"); } + /** * Lists a file's permissions. (permissions.listPermissions) * - * @param string $fileId - * The ID for the file. + * @param string $fileId The ID for the file. * @param array $optParams Optional parameters. * @return Google_Service_Drive_PermissionList */ @@ -2107,19 +2076,18 @@ public function listPermissions($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); } + /** * Updates a permission. This method supports patch semantics. * (permissions.patch) * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. + * @param 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. + * @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()) @@ -2128,18 +2096,17 @@ public function patch($fileId, $permissionId, Google_Service_Drive_Permission $p $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_Permission"); } + /** * Updates a permission. (permissions.update) * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. + * @param 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. + * @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()) @@ -2164,14 +2131,11 @@ 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 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. + * @opt_param string visibility The visibility of the property. */ public function delete($fileId, $propertyKey, $optParams = array()) { @@ -2179,17 +2143,15 @@ public function delete($fileId, $propertyKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a property by its key. (properties.get) * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. + * @param 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. + * @opt_param string visibility The visibility of the property. * @return Google_Service_Drive_Property */ public function get($fileId, $propertyKey, $optParams = array()) @@ -2198,11 +2160,11 @@ public function get($fileId, $propertyKey, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_Property"); } + /** * Adds a property to a file. (properties.insert) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param Google_Property $postBody * @param array $optParams Optional parameters. * @return Google_Service_Drive_Property @@ -2213,11 +2175,11 @@ public function insert($fileId, Google_Service_Drive_Property $postBody, $optPar $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_Property"); } + /** * Lists a file's properties. (properties.listProperties) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * @return Google_Service_Drive_PropertyList */ @@ -2227,18 +2189,16 @@ public function listProperties($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); } + /** * Updates a property. This method supports patch semantics. (properties.patch) * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. + * @param 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. + * @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()) @@ -2247,18 +2207,16 @@ public function patch($fileId, $propertyKey, Google_Service_Drive_Property $post $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_Property"); } + /** * Updates a property. (properties.update) * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. + * @param 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. + * @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()) @@ -2284,14 +2242,14 @@ class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource * Exports the contents of the Realtime API data model associated with this file * as JSON. (realtime.get) * - * @param string $fileId - * The ID of the file that the Realtime API data model is associated with. + * @param string $fileId The ID of the file that the Realtime API data model is + * associated with. * @param array $optParams Optional parameters. * - * @opt_param int revision - * The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty - * data model) and are incremented with each change. If this parameter is excluded, the most recent - * data model will be returned. + * @opt_param int revision The revision of the Realtime API data model to + * export. Revisions start at 1 (the initial empty data model) and are + * incremented with each change. If this parameter is excluded, the most recent + * data model will be returned. */ public function get($fileId, $optParams = array()) { @@ -2299,19 +2257,20 @@ public function get($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params)); } + /** * Overwrites the Realtime API data model associated with this file with the * provided JSON data model. (realtime.update) * - * @param string $fileId - * The ID of the file that the Realtime API data model is associated with. + * @param string $fileId The ID of the file that the Realtime API data model is + * associated with. * @param array $optParams Optional parameters. * - * @opt_param string baseRevision - * The revision of the model to diff the uploaded model against. If set, the uploaded model is - * diffed against the provided revision and those differences are merged with any changes made to - * the model after the provided revision. If not set, the uploaded model replaces the current model - * on the server. + * @opt_param string baseRevision The revision of the model to diff the uploaded + * model against. If set, the uploaded model is diffed against the provided + * revision and those differences are merged with any changes made to the model + * after the provided revision. If not set, the uploaded model replaces the + * current model on the server. */ public function update($fileId, $optParams = array()) { @@ -2335,12 +2294,9 @@ 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 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()) @@ -2349,19 +2305,17 @@ public function delete($fileId, $commentId, $replyId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a reply. (replies.get) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. + * @param 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. + * @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()) @@ -2370,13 +2324,12 @@ public function get($fileId, $commentId, $replyId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); } + /** * Creates a new reply to the given comment. (replies.insert) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. + * @param 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 @@ -2387,22 +2340,21 @@ public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $p $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); } + /** * Lists all of the replies to a comment. (replies.listReplies) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. + * @param string $fileId The ID of the file. + * @param string $commentId The ID of the comment. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param bool includeDeleted - * If set, all replies, including deleted replies (with content stripped) will be returned. - * @opt_param int maxResults - * The maximum number of replies to include in the response, used for paging. + * @opt_param string pageToken The continuation token, used to page through + * large result sets. To get the next page of results, set this parameter to the + * value of "nextPageToken" from the previous response. + * @opt_param bool includeDeleted If set, all replies, including deleted replies + * (with content stripped) will be returned. + * @opt_param int maxResults The maximum number of replies to include in the + * response, used for paging. * @return Google_Service_Drive_CommentReplyList */ public function listReplies($fileId, $commentId, $optParams = array()) @@ -2411,16 +2363,14 @@ public function listReplies($fileId, $commentId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); } + /** * Updates an existing reply. This method supports patch semantics. * (replies.patch) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. + * @param 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 @@ -2431,15 +2381,13 @@ public function patch($fileId, $commentId, $replyId, Google_Service_Drive_Commen $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); } + /** * Updates an existing reply. (replies.update) * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. + * @param 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 @@ -2466,10 +2414,8 @@ 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 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()) @@ -2478,13 +2424,12 @@ public function delete($fileId, $revisionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } + /** * Gets a specific revision. (revisions.get) * - * @param string $fileId - * The ID of the file. - * @param string $revisionId - * The ID of the revision. + * @param 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 */ @@ -2494,11 +2439,11 @@ public function get($fileId, $revisionId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Drive_Revision"); } + /** * Lists a file's revisions. (revisions.listRevisions) * - * @param string $fileId - * The ID of the file. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * @return Google_Service_Drive_RevisionList */ @@ -2508,13 +2453,12 @@ public function listRevisions($fileId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); } + /** * Updates a revision. This method supports patch semantics. (revisions.patch) * - * @param string $fileId - * The ID for the file. - * @param string $revisionId - * The ID for the revision. + * @param 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 @@ -2525,13 +2469,12 @@ public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postB $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Drive_Revision"); } + /** * Updates a revision. (revisions.update) * - * @param string $fileId - * The ID for the file. - * @param string $revisionId - * The ID for the revision. + * @param 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 @@ -2583,11 +2526,11 @@ class Google_Service_Drive_About extends Google_Collection protected $userType = 'Google_Service_Drive_User'; protected $userDataType = ''; + public function setAdditionalRoleInfo($additionalRoleInfo) { $this->additionalRoleInfo = $additionalRoleInfo; } - public function getAdditionalRoleInfo() { return $this->additionalRoleInfo; @@ -2596,7 +2539,6 @@ public function setDomainSharingPolicy($domainSharingPolicy) { $this->domainSharingPolicy = $domainSharingPolicy; } - public function getDomainSharingPolicy() { return $this->domainSharingPolicy; @@ -2605,7 +2547,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -2614,7 +2555,6 @@ public function setExportFormats($exportFormats) { $this->exportFormats = $exportFormats; } - public function getExportFormats() { return $this->exportFormats; @@ -2623,7 +2563,6 @@ public function setFeatures($features) { $this->features = $features; } - public function getFeatures() { return $this->features; @@ -2632,7 +2571,6 @@ public function setImportFormats($importFormats) { $this->importFormats = $importFormats; } - public function getImportFormats() { return $this->importFormats; @@ -2641,7 +2579,6 @@ public function setIsCurrentAppInstalled($isCurrentAppInstalled) { $this->isCurrentAppInstalled = $isCurrentAppInstalled; } - public function getIsCurrentAppInstalled() { return $this->isCurrentAppInstalled; @@ -2650,7 +2587,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -2659,7 +2595,6 @@ public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; } - public function getLanguageCode() { return $this->languageCode; @@ -2668,7 +2603,6 @@ public function setLargestChangeId($largestChangeId) { $this->largestChangeId = $largestChangeId; } - public function getLargestChangeId() { return $this->largestChangeId; @@ -2677,7 +2611,6 @@ public function setMaxUploadSizes($maxUploadSizes) { $this->maxUploadSizes = $maxUploadSizes; } - public function getMaxUploadSizes() { return $this->maxUploadSizes; @@ -2686,7 +2619,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -2695,7 +2627,6 @@ public function setPermissionId($permissionId) { $this->permissionId = $permissionId; } - public function getPermissionId() { return $this->permissionId; @@ -2704,7 +2635,6 @@ public function setQuotaBytesByService($quotaBytesByService) { $this->quotaBytesByService = $quotaBytesByService; } - public function getQuotaBytesByService() { return $this->quotaBytesByService; @@ -2713,7 +2643,6 @@ public function setQuotaBytesTotal($quotaBytesTotal) { $this->quotaBytesTotal = $quotaBytesTotal; } - public function getQuotaBytesTotal() { return $this->quotaBytesTotal; @@ -2722,7 +2651,6 @@ public function setQuotaBytesUsed($quotaBytesUsed) { $this->quotaBytesUsed = $quotaBytesUsed; } - public function getQuotaBytesUsed() { return $this->quotaBytesUsed; @@ -2731,7 +2659,6 @@ public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) { $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; } - public function getQuotaBytesUsedAggregate() { return $this->quotaBytesUsedAggregate; @@ -2740,7 +2667,6 @@ public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) { $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; } - public function getQuotaBytesUsedInTrash() { return $this->quotaBytesUsedInTrash; @@ -2749,7 +2675,6 @@ public function setQuotaType($quotaType) { $this->quotaType = $quotaType; } - public function getQuotaType() { return $this->quotaType; @@ -2758,7 +2683,6 @@ public function setRemainingChangeIds($remainingChangeIds) { $this->remainingChangeIds = $remainingChangeIds; } - public function getRemainingChangeIds() { return $this->remainingChangeIds; @@ -2767,7 +2691,6 @@ public function setRootFolderId($rootFolderId) { $this->rootFolderId = $rootFolderId; } - public function getRootFolderId() { return $this->rootFolderId; @@ -2776,7 +2699,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -2785,12 +2707,10 @@ 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 @@ -2802,11 +2722,11 @@ class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection protected $roleSetsDataType = 'array'; public $type; + public function setRoleSets($roleSets) { $this->roleSets = $roleSets; } - public function getRoleSets() { return $this->roleSets; @@ -2815,12 +2735,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection @@ -2831,11 +2749,11 @@ class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collec public $additionalRoles; public $primaryRole; + public function setAdditionalRoles($additionalRoles) { $this->additionalRoles = $additionalRoles; } - public function getAdditionalRoles() { return $this->additionalRoles; @@ -2844,12 +2762,10 @@ public function setPrimaryRole($primaryRole) { $this->primaryRole = $primaryRole; } - public function getPrimaryRole() { return $this->primaryRole; } - } class Google_Service_Drive_AboutExportFormats extends Google_Collection @@ -2860,11 +2776,11 @@ 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; @@ -2873,12 +2789,10 @@ public function setTargets($targets) { $this->targets = $targets; } - public function getTargets() { return $this->targets; } - } class Google_Service_Drive_AboutFeatures extends Google_Model @@ -2888,11 +2802,11 @@ 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; @@ -2901,12 +2815,10 @@ public function setFeatureRate($featureRate) { $this->featureRate = $featureRate; } - public function getFeatureRate() { return $this->featureRate; } - } class Google_Service_Drive_AboutImportFormats extends Google_Collection @@ -2917,11 +2829,11 @@ 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; @@ -2930,12 +2842,10 @@ public function setTargets($targets) { $this->targets = $targets; } - public function getTargets() { return $this->targets; } - } class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model @@ -2945,11 +2855,11 @@ 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; @@ -2958,12 +2868,10 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model @@ -2973,11 +2881,11 @@ class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model public $bytesUsed; public $serviceName; + public function setBytesUsed($bytesUsed) { $this->bytesUsed = $bytesUsed; } - public function getBytesUsed() { return $this->bytesUsed; @@ -2986,12 +2894,10 @@ public function setServiceName($serviceName) { $this->serviceName = $serviceName; } - public function getServiceName() { return $this->serviceName; } - } class Google_Service_Drive_App extends Google_Collection @@ -3025,11 +2931,11 @@ class Google_Service_Drive_App extends Google_Collection public $supportsOfflineCreate; public $useByDefault; + public function setAuthorized($authorized) { $this->authorized = $authorized; } - public function getAuthorized() { return $this->authorized; @@ -3038,7 +2944,6 @@ public function setCreateInFolderTemplate($createInFolderTemplate) { $this->createInFolderTemplate = $createInFolderTemplate; } - public function getCreateInFolderTemplate() { return $this->createInFolderTemplate; @@ -3047,7 +2952,6 @@ public function setCreateUrl($createUrl) { $this->createUrl = $createUrl; } - public function getCreateUrl() { return $this->createUrl; @@ -3056,7 +2960,6 @@ public function setHasDriveWideScope($hasDriveWideScope) { $this->hasDriveWideScope = $hasDriveWideScope; } - public function getHasDriveWideScope() { return $this->hasDriveWideScope; @@ -3065,7 +2968,6 @@ public function setIcons($icons) { $this->icons = $icons; } - public function getIcons() { return $this->icons; @@ -3074,7 +2976,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3083,7 +2984,6 @@ public function setInstalled($installed) { $this->installed = $installed; } - public function getInstalled() { return $this->installed; @@ -3092,7 +2992,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3101,7 +3000,6 @@ public function setLongDescription($longDescription) { $this->longDescription = $longDescription; } - public function getLongDescription() { return $this->longDescription; @@ -3110,7 +3008,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -3119,7 +3016,6 @@ public function setObjectType($objectType) { $this->objectType = $objectType; } - public function getObjectType() { return $this->objectType; @@ -3128,7 +3024,6 @@ public function setOpenUrlTemplate($openUrlTemplate) { $this->openUrlTemplate = $openUrlTemplate; } - public function getOpenUrlTemplate() { return $this->openUrlTemplate; @@ -3137,7 +3032,6 @@ public function setPrimaryFileExtensions($primaryFileExtensions) { $this->primaryFileExtensions = $primaryFileExtensions; } - public function getPrimaryFileExtensions() { return $this->primaryFileExtensions; @@ -3146,7 +3040,6 @@ public function setPrimaryMimeTypes($primaryMimeTypes) { $this->primaryMimeTypes = $primaryMimeTypes; } - public function getPrimaryMimeTypes() { return $this->primaryMimeTypes; @@ -3155,7 +3048,6 @@ public function setProductId($productId) { $this->productId = $productId; } - public function getProductId() { return $this->productId; @@ -3164,7 +3056,6 @@ public function setProductUrl($productUrl) { $this->productUrl = $productUrl; } - public function getProductUrl() { return $this->productUrl; @@ -3173,7 +3064,6 @@ public function setSecondaryFileExtensions($secondaryFileExtensions) { $this->secondaryFileExtensions = $secondaryFileExtensions; } - public function getSecondaryFileExtensions() { return $this->secondaryFileExtensions; @@ -3182,7 +3072,6 @@ public function setSecondaryMimeTypes($secondaryMimeTypes) { $this->secondaryMimeTypes = $secondaryMimeTypes; } - public function getSecondaryMimeTypes() { return $this->secondaryMimeTypes; @@ -3191,7 +3080,6 @@ public function setShortDescription($shortDescription) { $this->shortDescription = $shortDescription; } - public function getShortDescription() { return $this->shortDescription; @@ -3200,7 +3088,6 @@ public function setSupportsCreate($supportsCreate) { $this->supportsCreate = $supportsCreate; } - public function getSupportsCreate() { return $this->supportsCreate; @@ -3209,7 +3096,6 @@ public function setSupportsImport($supportsImport) { $this->supportsImport = $supportsImport; } - public function getSupportsImport() { return $this->supportsImport; @@ -3218,7 +3104,6 @@ public function setSupportsMultiOpen($supportsMultiOpen) { $this->supportsMultiOpen = $supportsMultiOpen; } - public function getSupportsMultiOpen() { return $this->supportsMultiOpen; @@ -3227,7 +3112,6 @@ public function setSupportsOfflineCreate($supportsOfflineCreate) { $this->supportsOfflineCreate = $supportsOfflineCreate; } - public function getSupportsOfflineCreate() { return $this->supportsOfflineCreate; @@ -3236,12 +3120,10 @@ public function setUseByDefault($useByDefault) { $this->useByDefault = $useByDefault; } - public function getUseByDefault() { return $this->useByDefault; } - } class Google_Service_Drive_AppIcons extends Google_Model @@ -3252,11 +3134,11 @@ class Google_Service_Drive_AppIcons extends Google_Model public $iconUrl; public $size; + public function setCategory($category) { $this->category = $category; } - public function getCategory() { return $this->category; @@ -3265,7 +3147,6 @@ public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; } - public function getIconUrl() { return $this->iconUrl; @@ -3274,12 +3155,10 @@ public function setSize($size) { $this->size = $size; } - public function getSize() { return $this->size; } - } class Google_Service_Drive_AppList extends Google_Collection @@ -3294,11 +3173,11 @@ class Google_Service_Drive_AppList extends Google_Collection public $kind; public $selfLink; + public function setDefaultAppIds($defaultAppIds) { $this->defaultAppIds = $defaultAppIds; } - public function getDefaultAppIds() { return $this->defaultAppIds; @@ -3307,7 +3186,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3316,7 +3194,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3325,7 +3202,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3334,12 +3210,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Change extends Google_Model @@ -3355,11 +3229,11 @@ class Google_Service_Drive_Change extends Google_Model public $modificationDate; public $selfLink; + public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -3368,7 +3242,6 @@ public function setFile(Google_Service_Drive_DriveFile $file) { $this->file = $file; } - public function getFile() { return $this->file; @@ -3377,7 +3250,6 @@ public function setFileId($fileId) { $this->fileId = $fileId; } - public function getFileId() { return $this->fileId; @@ -3386,7 +3258,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3395,7 +3266,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3404,7 +3274,6 @@ public function setModificationDate($modificationDate) { $this->modificationDate = $modificationDate; } - public function getModificationDate() { return $this->modificationDate; @@ -3413,12 +3282,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_ChangeList extends Google_Collection @@ -3435,11 +3302,11 @@ class Google_Service_Drive_ChangeList extends Google_Collection public $nextPageToken; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3448,7 +3315,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3457,7 +3323,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3466,7 +3331,6 @@ public function setLargestChangeId($largestChangeId) { $this->largestChangeId = $largestChangeId; } - public function getLargestChangeId() { return $this->largestChangeId; @@ -3475,7 +3339,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -3484,7 +3347,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3493,12 +3355,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Channel extends Google_Model @@ -3516,11 +3376,11 @@ class Google_Service_Drive_Channel extends Google_Model public $token; public $type; + public function setAddress($address) { $this->address = $address; } - public function getAddress() { return $this->address; @@ -3529,7 +3389,6 @@ public function setExpiration($expiration) { $this->expiration = $expiration; } - public function getExpiration() { return $this->expiration; @@ -3538,7 +3397,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3547,7 +3405,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3556,7 +3413,6 @@ public function setParams($params) { $this->params = $params; } - public function getParams() { return $this->params; @@ -3565,7 +3421,6 @@ public function setPayload($payload) { $this->payload = $payload; } - public function getPayload() { return $this->payload; @@ -3574,7 +3429,6 @@ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } - public function getResourceId() { return $this->resourceId; @@ -3583,7 +3437,6 @@ public function setResourceUri($resourceUri) { $this->resourceUri = $resourceUri; } - public function getResourceUri() { return $this->resourceUri; @@ -3592,7 +3445,6 @@ public function setToken($token) { $this->token = $token; } - public function getToken() { return $this->token; @@ -3601,20 +3453,14 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; } - } class Google_Service_Drive_ChannelParams extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Drive_ChildList extends Google_Collection @@ -3630,11 +3476,11 @@ class Google_Service_Drive_ChildList extends Google_Collection public $nextPageToken; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -3643,7 +3489,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3652,7 +3497,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3661,7 +3505,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -3670,7 +3513,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3679,12 +3521,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_ChildReference extends Google_Model @@ -3696,11 +3536,11 @@ class Google_Service_Drive_ChildReference extends Google_Model public $kind; public $selfLink; + public function setChildLink($childLink) { $this->childLink = $childLink; } - public function getChildLink() { return $this->childLink; @@ -3709,7 +3549,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -3718,7 +3557,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3727,12 +3565,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Comment extends Google_Collection @@ -3759,11 +3595,11 @@ class Google_Service_Drive_Comment extends Google_Collection public $selfLink; public $status; + public function setAnchor($anchor) { $this->anchor = $anchor; } - public function getAnchor() { return $this->anchor; @@ -3772,7 +3608,6 @@ public function setAuthor(Google_Service_Drive_User $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -3781,7 +3616,6 @@ public function setCommentId($commentId) { $this->commentId = $commentId; } - public function getCommentId() { return $this->commentId; @@ -3790,7 +3624,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -3799,7 +3632,6 @@ public function setContext(Google_Service_Drive_CommentContext $context) { $this->context = $context; } - public function getContext() { return $this->context; @@ -3808,7 +3640,6 @@ public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } - public function getCreatedDate() { return $this->createdDate; @@ -3817,7 +3648,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -3826,7 +3656,6 @@ public function setFileId($fileId) { $this->fileId = $fileId; } - public function getFileId() { return $this->fileId; @@ -3835,7 +3664,6 @@ public function setFileTitle($fileTitle) { $this->fileTitle = $fileTitle; } - public function getFileTitle() { return $this->fileTitle; @@ -3844,7 +3672,6 @@ public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } - public function getHtmlContent() { return $this->htmlContent; @@ -3853,7 +3680,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3862,7 +3688,6 @@ public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; } - public function getModifiedDate() { return $this->modifiedDate; @@ -3871,7 +3696,6 @@ public function setReplies($replies) { $this->replies = $replies; } - public function getReplies() { return $this->replies; @@ -3880,7 +3704,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -3889,12 +3712,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Drive_CommentContext extends Google_Model @@ -3904,11 +3725,11 @@ 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; @@ -3917,12 +3738,10 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; } - } class Google_Service_Drive_CommentList extends Google_Collection @@ -3937,11 +3756,11 @@ class Google_Service_Drive_CommentList extends Google_Collection public $nextPageToken; public $selfLink; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -3950,7 +3769,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -3959,7 +3777,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -3968,7 +3785,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -3977,12 +3793,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_CommentReply extends Google_Model @@ -4000,11 +3814,11 @@ class Google_Service_Drive_CommentReply extends Google_Model public $replyId; public $verb; + public function setAuthor(Google_Service_Drive_User $author) { $this->author = $author; } - public function getAuthor() { return $this->author; @@ -4013,7 +3827,6 @@ public function setContent($content) { $this->content = $content; } - public function getContent() { return $this->content; @@ -4022,7 +3835,6 @@ public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } - public function getCreatedDate() { return $this->createdDate; @@ -4031,7 +3843,6 @@ public function setDeleted($deleted) { $this->deleted = $deleted; } - public function getDeleted() { return $this->deleted; @@ -4040,7 +3851,6 @@ public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } - public function getHtmlContent() { return $this->htmlContent; @@ -4049,7 +3859,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4058,7 +3867,6 @@ public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; } - public function getModifiedDate() { return $this->modifiedDate; @@ -4067,7 +3875,6 @@ public function setReplyId($replyId) { $this->replyId = $replyId; } - public function getReplyId() { return $this->replyId; @@ -4076,12 +3883,10 @@ public function setVerb($verb) { $this->verb = $verb; } - public function getVerb() { return $this->verb; } - } class Google_Service_Drive_CommentReplyList extends Google_Collection @@ -4096,11 +3901,11 @@ class Google_Service_Drive_CommentReplyList extends Google_Collection public $nextPageToken; public $selfLink; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -4109,7 +3914,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4118,7 +3922,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -4127,7 +3930,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -4136,12 +3938,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_DriveFile extends Google_Collection @@ -4212,11 +4012,11 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $webViewLink; public $writersCanShare; + public function setAlternateLink($alternateLink) { $this->alternateLink = $alternateLink; } - public function getAlternateLink() { return $this->alternateLink; @@ -4225,7 +4025,6 @@ public function setAppDataContents($appDataContents) { $this->appDataContents = $appDataContents; } - public function getAppDataContents() { return $this->appDataContents; @@ -4234,7 +4033,6 @@ public function setCopyable($copyable) { $this->copyable = $copyable; } - public function getCopyable() { return $this->copyable; @@ -4243,7 +4041,6 @@ public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } - public function getCreatedDate() { return $this->createdDate; @@ -4252,7 +4049,6 @@ public function setDefaultOpenWithLink($defaultOpenWithLink) { $this->defaultOpenWithLink = $defaultOpenWithLink; } - public function getDefaultOpenWithLink() { return $this->defaultOpenWithLink; @@ -4261,7 +4057,6 @@ public function setDescription($description) { $this->description = $description; } - public function getDescription() { return $this->description; @@ -4270,7 +4065,6 @@ public function setDownloadUrl($downloadUrl) { $this->downloadUrl = $downloadUrl; } - public function getDownloadUrl() { return $this->downloadUrl; @@ -4279,7 +4073,6 @@ public function setEditable($editable) { $this->editable = $editable; } - public function getEditable() { return $this->editable; @@ -4288,7 +4081,6 @@ public function setEmbedLink($embedLink) { $this->embedLink = $embedLink; } - public function getEmbedLink() { return $this->embedLink; @@ -4297,7 +4089,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -4306,7 +4097,6 @@ public function setExplicitlyTrashed($explicitlyTrashed) { $this->explicitlyTrashed = $explicitlyTrashed; } - public function getExplicitlyTrashed() { return $this->explicitlyTrashed; @@ -4315,7 +4105,6 @@ public function setExportLinks($exportLinks) { $this->exportLinks = $exportLinks; } - public function getExportLinks() { return $this->exportLinks; @@ -4324,7 +4113,6 @@ public function setFileExtension($fileExtension) { $this->fileExtension = $fileExtension; } - public function getFileExtension() { return $this->fileExtension; @@ -4333,7 +4121,6 @@ public function setFileSize($fileSize) { $this->fileSize = $fileSize; } - public function getFileSize() { return $this->fileSize; @@ -4342,7 +4129,6 @@ public function setHeadRevisionId($headRevisionId) { $this->headRevisionId = $headRevisionId; } - public function getHeadRevisionId() { return $this->headRevisionId; @@ -4351,7 +4137,6 @@ public function setIconLink($iconLink) { $this->iconLink = $iconLink; } - public function getIconLink() { return $this->iconLink; @@ -4360,7 +4145,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -4369,7 +4153,6 @@ public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMe { $this->imageMediaMetadata = $imageMediaMetadata; } - public function getImageMediaMetadata() { return $this->imageMediaMetadata; @@ -4378,7 +4161,6 @@ public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $in { $this->indexableText = $indexableText; } - public function getIndexableText() { return $this->indexableText; @@ -4387,7 +4169,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -4396,7 +4177,6 @@ public function setLabels(Google_Service_Drive_DriveFileLabels $labels) { $this->labels = $labels; } - public function getLabels() { return $this->labels; @@ -4405,7 +4185,6 @@ public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUse { $this->lastModifyingUser = $lastModifyingUser; } - public function getLastModifyingUser() { return $this->lastModifyingUser; @@ -4414,7 +4193,6 @@ public function setLastModifyingUserName($lastModifyingUserName) { $this->lastModifyingUserName = $lastModifyingUserName; } - public function getLastModifyingUserName() { return $this->lastModifyingUserName; @@ -4423,7 +4201,6 @@ public function setLastViewedByMeDate($lastViewedByMeDate) { $this->lastViewedByMeDate = $lastViewedByMeDate; } - public function getLastViewedByMeDate() { return $this->lastViewedByMeDate; @@ -4432,7 +4209,6 @@ public function setMarkedViewedByMeDate($markedViewedByMeDate) { $this->markedViewedByMeDate = $markedViewedByMeDate; } - public function getMarkedViewedByMeDate() { return $this->markedViewedByMeDate; @@ -4441,7 +4217,6 @@ public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; } - public function getMd5Checksum() { return $this->md5Checksum; @@ -4450,7 +4225,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -4459,7 +4233,6 @@ public function setModifiedByMeDate($modifiedByMeDate) { $this->modifiedByMeDate = $modifiedByMeDate; } - public function getModifiedByMeDate() { return $this->modifiedByMeDate; @@ -4468,7 +4241,6 @@ public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; } - public function getModifiedDate() { return $this->modifiedDate; @@ -4477,7 +4249,6 @@ public function setOpenWithLinks($openWithLinks) { $this->openWithLinks = $openWithLinks; } - public function getOpenWithLinks() { return $this->openWithLinks; @@ -4486,7 +4257,6 @@ public function setOriginalFilename($originalFilename) { $this->originalFilename = $originalFilename; } - public function getOriginalFilename() { return $this->originalFilename; @@ -4495,7 +4265,6 @@ public function setOwnerNames($ownerNames) { $this->ownerNames = $ownerNames; } - public function getOwnerNames() { return $this->ownerNames; @@ -4504,7 +4273,6 @@ public function setOwners($owners) { $this->owners = $owners; } - public function getOwners() { return $this->owners; @@ -4513,7 +4281,6 @@ public function setParents($parents) { $this->parents = $parents; } - public function getParents() { return $this->parents; @@ -4522,7 +4289,6 @@ public function setPermissions($permissions) { $this->permissions = $permissions; } - public function getPermissions() { return $this->permissions; @@ -4531,7 +4297,6 @@ public function setProperties($properties) { $this->properties = $properties; } - public function getProperties() { return $this->properties; @@ -4540,7 +4305,6 @@ public function setQuotaBytesUsed($quotaBytesUsed) { $this->quotaBytesUsed = $quotaBytesUsed; } - public function getQuotaBytesUsed() { return $this->quotaBytesUsed; @@ -4549,7 +4313,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -4558,7 +4321,6 @@ public function setShared($shared) { $this->shared = $shared; } - public function getShared() { return $this->shared; @@ -4567,7 +4329,6 @@ public function setSharedWithMeDate($sharedWithMeDate) { $this->sharedWithMeDate = $sharedWithMeDate; } - public function getSharedWithMeDate() { return $this->sharedWithMeDate; @@ -4576,7 +4337,6 @@ public function setSharingUser(Google_Service_Drive_User $sharingUser) { $this->sharingUser = $sharingUser; } - public function getSharingUser() { return $this->sharingUser; @@ -4585,7 +4345,6 @@ public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) { $this->thumbnail = $thumbnail; } - public function getThumbnail() { return $this->thumbnail; @@ -4594,7 +4353,6 @@ public function setThumbnailLink($thumbnailLink) { $this->thumbnailLink = $thumbnailLink; } - public function getThumbnailLink() { return $this->thumbnailLink; @@ -4603,7 +4361,6 @@ public function setTitle($title) { $this->title = $title; } - public function getTitle() { return $this->title; @@ -4612,7 +4369,6 @@ public function setUserPermission(Google_Service_Drive_Permission $userPermissio { $this->userPermission = $userPermission; } - public function getUserPermission() { return $this->userPermission; @@ -4621,7 +4377,6 @@ public function setVersion($version) { $this->version = $version; } - public function getVersion() { return $this->version; @@ -4630,7 +4385,6 @@ public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMe { $this->videoMediaMetadata = $videoMediaMetadata; } - public function getVideoMediaMetadata() { return $this->videoMediaMetadata; @@ -4639,7 +4393,6 @@ public function setWebContentLink($webContentLink) { $this->webContentLink = $webContentLink; } - public function getWebContentLink() { return $this->webContentLink; @@ -4648,7 +4401,6 @@ public function setWebViewLink($webViewLink) { $this->webViewLink = $webViewLink; } - public function getWebViewLink() { return $this->webViewLink; @@ -4657,20 +4409,14 @@ public function setWritersCanShare($writersCanShare) { $this->writersCanShare = $writersCanShare; } - public function getWritersCanShare() { return $this->writersCanShare; } - } class Google_Service_Drive_DriveFileExportLinks extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model @@ -4700,11 +4446,11 @@ class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model public $whiteBalance; public $width; + public function setAperture($aperture) { $this->aperture = $aperture; } - public function getAperture() { return $this->aperture; @@ -4713,7 +4459,6 @@ public function setCameraMake($cameraMake) { $this->cameraMake = $cameraMake; } - public function getCameraMake() { return $this->cameraMake; @@ -4722,7 +4467,6 @@ public function setCameraModel($cameraModel) { $this->cameraModel = $cameraModel; } - public function getCameraModel() { return $this->cameraModel; @@ -4731,7 +4475,6 @@ public function setColorSpace($colorSpace) { $this->colorSpace = $colorSpace; } - public function getColorSpace() { return $this->colorSpace; @@ -4740,7 +4483,6 @@ public function setDate($date) { $this->date = $date; } - public function getDate() { return $this->date; @@ -4749,7 +4491,6 @@ public function setExposureBias($exposureBias) { $this->exposureBias = $exposureBias; } - public function getExposureBias() { return $this->exposureBias; @@ -4758,7 +4499,6 @@ public function setExposureMode($exposureMode) { $this->exposureMode = $exposureMode; } - public function getExposureMode() { return $this->exposureMode; @@ -4767,7 +4507,6 @@ public function setExposureTime($exposureTime) { $this->exposureTime = $exposureTime; } - public function getExposureTime() { return $this->exposureTime; @@ -4776,7 +4515,6 @@ public function setFlashUsed($flashUsed) { $this->flashUsed = $flashUsed; } - public function getFlashUsed() { return $this->flashUsed; @@ -4785,7 +4523,6 @@ public function setFocalLength($focalLength) { $this->focalLength = $focalLength; } - public function getFocalLength() { return $this->focalLength; @@ -4794,7 +4531,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -4803,7 +4539,6 @@ public function setIsoSpeed($isoSpeed) { $this->isoSpeed = $isoSpeed; } - public function getIsoSpeed() { return $this->isoSpeed; @@ -4812,7 +4547,6 @@ public function setLens($lens) { $this->lens = $lens; } - public function getLens() { return $this->lens; @@ -4821,7 +4555,6 @@ public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLoca { $this->location = $location; } - public function getLocation() { return $this->location; @@ -4830,7 +4563,6 @@ public function setMaxApertureValue($maxApertureValue) { $this->maxApertureValue = $maxApertureValue; } - public function getMaxApertureValue() { return $this->maxApertureValue; @@ -4839,7 +4571,6 @@ public function setMeteringMode($meteringMode) { $this->meteringMode = $meteringMode; } - public function getMeteringMode() { return $this->meteringMode; @@ -4848,7 +4579,6 @@ public function setRotation($rotation) { $this->rotation = $rotation; } - public function getRotation() { return $this->rotation; @@ -4857,7 +4587,6 @@ public function setSensor($sensor) { $this->sensor = $sensor; } - public function getSensor() { return $this->sensor; @@ -4866,7 +4595,6 @@ public function setSubjectDistance($subjectDistance) { $this->subjectDistance = $subjectDistance; } - public function getSubjectDistance() { return $this->subjectDistance; @@ -4875,7 +4603,6 @@ public function setWhiteBalance($whiteBalance) { $this->whiteBalance = $whiteBalance; } - public function getWhiteBalance() { return $this->whiteBalance; @@ -4884,12 +4611,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model @@ -4900,11 +4625,11 @@ class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Mo public $latitude; public $longitude; + public function setAltitude($altitude) { $this->altitude = $altitude; } - public function getAltitude() { return $this->altitude; @@ -4913,7 +4638,6 @@ public function setLatitude($latitude) { $this->latitude = $latitude; } - public function getLatitude() { return $this->latitude; @@ -4922,12 +4646,10 @@ public function setLongitude($longitude) { $this->longitude = $longitude; } - public function getLongitude() { return $this->longitude; } - } class Google_Service_Drive_DriveFileIndexableText extends Google_Model @@ -4936,16 +4658,15 @@ 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 @@ -4958,11 +4679,11 @@ class Google_Service_Drive_DriveFileLabels extends Google_Model public $trashed; public $viewed; + public function setHidden($hidden) { $this->hidden = $hidden; } - public function getHidden() { return $this->hidden; @@ -4971,7 +4692,6 @@ public function setRestricted($restricted) { $this->restricted = $restricted; } - public function getRestricted() { return $this->restricted; @@ -4980,7 +4700,6 @@ public function setStarred($starred) { $this->starred = $starred; } - public function getStarred() { return $this->starred; @@ -4989,7 +4708,6 @@ public function setTrashed($trashed) { $this->trashed = $trashed; } - public function getTrashed() { return $this->trashed; @@ -4998,20 +4716,14 @@ public function setViewed($viewed) { $this->viewed = $viewed; } - public function getViewed() { return $this->viewed; } - } class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Drive_DriveFileThumbnail extends Google_Model @@ -5021,11 +4733,11 @@ 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; @@ -5034,12 +4746,10 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; } - } class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model @@ -5050,11 +4760,11 @@ class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model public $height; public $width; + public function setDurationMillis($durationMillis) { $this->durationMillis = $durationMillis; } - public function getDurationMillis() { return $this->durationMillis; @@ -5063,7 +4773,6 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() { return $this->height; @@ -5072,12 +4781,10 @@ public function setWidth($width) { $this->width = $width; } - public function getWidth() { return $this->width; } - } class Google_Service_Drive_FileList extends Google_Collection @@ -5093,11 +4800,11 @@ class Google_Service_Drive_FileList extends Google_Collection public $nextPageToken; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5106,7 +4813,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5115,7 +4821,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5124,7 +4829,6 @@ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } - public function getNextLink() { return $this->nextLink; @@ -5133,7 +4837,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -5142,12 +4845,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_ParentList extends Google_Collection @@ -5161,11 +4862,11 @@ class Google_Service_Drive_ParentList extends Google_Collection public $kind; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5174,7 +4875,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5183,7 +4883,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5192,12 +4891,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_ParentReference extends Google_Model @@ -5210,11 +4907,11 @@ class Google_Service_Drive_ParentReference extends Google_Model public $parentLink; public $selfLink; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5223,7 +4920,6 @@ public function setIsRoot($isRoot) { $this->isRoot = $isRoot; } - public function getIsRoot() { return $this->isRoot; @@ -5232,7 +4928,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5241,7 +4936,6 @@ public function setParentLink($parentLink) { $this->parentLink = $parentLink; } - public function getParentLink() { return $this->parentLink; @@ -5250,12 +4944,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Permission extends Google_Collection @@ -5278,11 +4970,11 @@ class Google_Service_Drive_Permission extends Google_Collection public $value; public $withLink; + public function setAdditionalRoles($additionalRoles) { $this->additionalRoles = $additionalRoles; } - public function getAdditionalRoles() { return $this->additionalRoles; @@ -5291,7 +4983,6 @@ public function setAuthKey($authKey) { $this->authKey = $authKey; } - public function getAuthKey() { return $this->authKey; @@ -5300,7 +4991,6 @@ public function setDomain($domain) { $this->domain = $domain; } - public function getDomain() { return $this->domain; @@ -5309,7 +4999,6 @@ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; @@ -5318,7 +5007,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5327,7 +5015,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5336,7 +5023,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5345,7 +5031,6 @@ public function setName($name) { $this->name = $name; } - public function getName() { return $this->name; @@ -5354,7 +5039,6 @@ public function setPhotoLink($photoLink) { $this->photoLink = $photoLink; } - public function getPhotoLink() { return $this->photoLink; @@ -5363,7 +5047,6 @@ public function setRole($role) { $this->role = $role; } - public function getRole() { return $this->role; @@ -5372,7 +5055,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5381,7 +5063,6 @@ public function setType($type) { $this->type = $type; } - public function getType() { return $this->type; @@ -5390,7 +5071,6 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; @@ -5399,12 +5079,10 @@ public function setWithLink($withLink) { $this->withLink = $withLink; } - public function getWithLink() { return $this->withLink; } - } class Google_Service_Drive_PermissionId extends Google_Model @@ -5414,11 +5092,11 @@ class Google_Service_Drive_PermissionId extends Google_Model public $id; public $kind; + public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5427,12 +5105,10 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; } - } class Google_Service_Drive_PermissionList extends Google_Collection @@ -5446,11 +5122,11 @@ class Google_Service_Drive_PermissionList extends Google_Collection public $kind; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5459,7 +5135,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5468,7 +5143,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5477,12 +5151,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Property extends Google_Model @@ -5496,11 +5168,11 @@ class Google_Service_Drive_Property extends Google_Model public $value; public $visibility; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5509,7 +5181,6 @@ public function setKey($key) { $this->key = $key; } - public function getKey() { return $this->key; @@ -5518,7 +5189,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5527,7 +5197,6 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; @@ -5536,7 +5205,6 @@ public function setValue($value) { $this->value = $value; } - public function getValue() { return $this->value; @@ -5545,12 +5213,10 @@ public function setVisibility($visibility) { $this->visibility = $visibility; } - public function getVisibility() { return $this->visibility; } - } class Google_Service_Drive_PropertyList extends Google_Collection @@ -5564,11 +5230,11 @@ class Google_Service_Drive_PropertyList extends Google_Collection public $kind; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5577,7 +5243,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5586,7 +5251,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5595,12 +5259,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_Revision extends Google_Model @@ -5627,11 +5289,11 @@ class Google_Service_Drive_Revision extends Google_Model public $publishedOutsideDomain; public $selfLink; + public function setDownloadUrl($downloadUrl) { $this->downloadUrl = $downloadUrl; } - public function getDownloadUrl() { return $this->downloadUrl; @@ -5640,7 +5302,6 @@ public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5649,7 +5310,6 @@ public function setExportLinks($exportLinks) { $this->exportLinks = $exportLinks; } - public function getExportLinks() { return $this->exportLinks; @@ -5658,7 +5318,6 @@ public function setFileSize($fileSize) { $this->fileSize = $fileSize; } - public function getFileSize() { return $this->fileSize; @@ -5667,7 +5326,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -5676,7 +5334,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5685,7 +5342,6 @@ public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUse { $this->lastModifyingUser = $lastModifyingUser; } - public function getLastModifyingUser() { return $this->lastModifyingUser; @@ -5694,7 +5350,6 @@ public function setLastModifyingUserName($lastModifyingUserName) { $this->lastModifyingUserName = $lastModifyingUserName; } - public function getLastModifyingUserName() { return $this->lastModifyingUserName; @@ -5703,7 +5358,6 @@ public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; } - public function getMd5Checksum() { return $this->md5Checksum; @@ -5712,7 +5366,6 @@ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } - public function getMimeType() { return $this->mimeType; @@ -5721,7 +5374,6 @@ public function setModifiedDate($modifiedDate) { $this->modifiedDate = $modifiedDate; } - public function getModifiedDate() { return $this->modifiedDate; @@ -5730,7 +5382,6 @@ public function setOriginalFilename($originalFilename) { $this->originalFilename = $originalFilename; } - public function getOriginalFilename() { return $this->originalFilename; @@ -5739,7 +5390,6 @@ public function setPinned($pinned) { $this->pinned = $pinned; } - public function getPinned() { return $this->pinned; @@ -5748,7 +5398,6 @@ public function setPublishAuto($publishAuto) { $this->publishAuto = $publishAuto; } - public function getPublishAuto() { return $this->publishAuto; @@ -5757,7 +5406,6 @@ public function setPublished($published) { $this->published = $published; } - public function getPublished() { return $this->published; @@ -5766,7 +5414,6 @@ public function setPublishedLink($publishedLink) { $this->publishedLink = $publishedLink; } - public function getPublishedLink() { return $this->publishedLink; @@ -5775,7 +5422,6 @@ public function setPublishedOutsideDomain($publishedOutsideDomain) { $this->publishedOutsideDomain = $publishedOutsideDomain; } - public function getPublishedOutsideDomain() { return $this->publishedOutsideDomain; @@ -5784,20 +5430,14 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_RevisionExportLinks extends Google_Model { - protected $internal_gapi_mappings = array( - ); - - } class Google_Service_Drive_RevisionList extends Google_Collection @@ -5811,11 +5451,11 @@ class Google_Service_Drive_RevisionList extends Google_Collection public $kind; public $selfLink; + public function setEtag($etag) { $this->etag = $etag; } - public function getEtag() { return $this->etag; @@ -5824,7 +5464,6 @@ public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -5833,7 +5472,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5842,12 +5480,10 @@ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } - public function getSelfLink() { return $this->selfLink; } - } class Google_Service_Drive_User extends Google_Model @@ -5862,11 +5498,11 @@ class Google_Service_Drive_User extends Google_Model protected $pictureType = 'Google_Service_Drive_UserPicture'; protected $pictureDataType = ''; + public function setDisplayName($displayName) { $this->displayName = $displayName; } - public function getDisplayName() { return $this->displayName; @@ -5875,7 +5511,6 @@ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } - public function getEmailAddress() { return $this->emailAddress; @@ -5884,7 +5519,6 @@ public function setIsAuthenticatedUser($isAuthenticatedUser) { $this->isAuthenticatedUser = $isAuthenticatedUser; } - public function getIsAuthenticatedUser() { return $this->isAuthenticatedUser; @@ -5893,7 +5527,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -5902,7 +5535,6 @@ public function setPermissionId($permissionId) { $this->permissionId = $permissionId; } - public function getPermissionId() { return $this->permissionId; @@ -5911,12 +5543,10 @@ 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 @@ -5925,14 +5555,13 @@ class Google_Service_Drive_UserPicture extends Google_Model ); public $url; + public function setUrl($url) { $this->url = $url; } - public function getUrl() { return $this->url; } - } From bb11b52dc1bf8c6911a66f6ac1edff63ceeb175a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 8 Nov 2014 02:00:26 -0800 Subject: [PATCH 0511/1274] Updated Urlshortener.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Urlshortener.php | 55 ++++++++--------------------- 1 file changed, 15 insertions(+), 40 deletions(-) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index 8a7bc7046..a733bfa64 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -19,8 +19,7 @@ * Service definition for Urlshortener (v1). * *

- * Lets you create, inspect, and manage goo.gl short URLs - *

+ * Lets you create, inspect, and manage goo.gl short URLs

* *

* For more information about this service, see the API @@ -32,7 +31,8 @@ class Google_Service_Urlshortener extends Google_Service { /** Manage your goo.gl short URLs. */ - const URLSHORTENER = "https://www.googleapis.com/auth/urlshortener"; + const URLSHORTENER = + "https://www.googleapis.com/auth/urlshortener"; public $url; @@ -108,12 +108,10 @@ 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 string $shortUrl The short URL, including the protocol. * @param array $optParams Optional parameters. * - * @opt_param string projection - * Additional information to return. + * @opt_param string projection Additional information to return. * @return Google_Service_Urlshortener_Url */ public function get($shortUrl, $optParams = array()) @@ -122,6 +120,7 @@ public function get($shortUrl, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); } + /** * Creates a new short URL. (url.insert) * @@ -135,15 +134,15 @@ public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = a $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); } + /** * Retrieves a list of URLs shortened by a user. (url.listUrl) * * @param array $optParams Optional parameters. * - * @opt_param string start-token - * Token for requesting successive pages of results. - * @opt_param string projection - * Additional information to return. + * @opt_param string start-token Token for requesting successive pages of + * results. + * @opt_param string projection Additional information to return. * @return Google_Service_Urlshortener_UrlHistory */ public function listUrl($optParams = array()) @@ -173,11 +172,11 @@ class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection protected $referrersDataType = 'array'; public $shortUrlClicks; + public function setBrowsers($browsers) { $this->browsers = $browsers; } - public function getBrowsers() { return $this->browsers; @@ -186,7 +185,6 @@ public function setCountries($countries) { $this->countries = $countries; } - public function getCountries() { return $this->countries; @@ -195,7 +193,6 @@ public function setLongUrlClicks($longUrlClicks) { $this->longUrlClicks = $longUrlClicks; } - public function getLongUrlClicks() { return $this->longUrlClicks; @@ -204,7 +201,6 @@ public function setPlatforms($platforms) { $this->platforms = $platforms; } - public function getPlatforms() { return $this->platforms; @@ -213,7 +209,6 @@ public function setReferrers($referrers) { $this->referrers = $referrers; } - public function getReferrers() { return $this->referrers; @@ -222,12 +217,10 @@ public function setShortUrlClicks($shortUrlClicks) { $this->shortUrlClicks = $shortUrlClicks; } - public function getShortUrlClicks() { return $this->shortUrlClicks; } - } class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model @@ -245,11 +238,11 @@ class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; protected $weekDataType = ''; + public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime) { $this->allTime = $allTime; } - public function getAllTime() { return $this->allTime; @@ -258,7 +251,6 @@ public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day) { $this->day = $day; } - public function getDay() { return $this->day; @@ -267,7 +259,6 @@ public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month) { $this->month = $month; } - public function getMonth() { return $this->month; @@ -276,7 +267,6 @@ public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHo { $this->twoHours = $twoHours; } - public function getTwoHours() { return $this->twoHours; @@ -285,12 +275,10 @@ 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 @@ -300,11 +288,11 @@ 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; @@ -313,12 +301,10 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; } - } class Google_Service_Urlshortener_Url extends Google_Model @@ -333,11 +319,11 @@ class Google_Service_Urlshortener_Url extends Google_Model public $longUrl; public $status; + public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics) { $this->analytics = $analytics; } - public function getAnalytics() { return $this->analytics; @@ -346,7 +332,6 @@ public function setCreated($created) { $this->created = $created; } - public function getCreated() { return $this->created; @@ -355,7 +340,6 @@ public function setId($id) { $this->id = $id; } - public function getId() { return $this->id; @@ -364,7 +348,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -373,7 +356,6 @@ public function setLongUrl($longUrl) { $this->longUrl = $longUrl; } - public function getLongUrl() { return $this->longUrl; @@ -382,12 +364,10 @@ public function setStatus($status) { $this->status = $status; } - public function getStatus() { return $this->status; } - } class Google_Service_Urlshortener_UrlHistory extends Google_Collection @@ -402,11 +382,11 @@ class Google_Service_Urlshortener_UrlHistory extends Google_Collection public $nextPageToken; public $totalItems; + public function setItems($items) { $this->items = $items; } - public function getItems() { return $this->items; @@ -415,7 +395,6 @@ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } - public function getItemsPerPage() { return $this->itemsPerPage; @@ -424,7 +403,6 @@ public function setKind($kind) { $this->kind = $kind; } - public function getKind() { return $this->kind; @@ -433,7 +411,6 @@ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } - public function getNextPageToken() { return $this->nextPageToken; @@ -442,10 +419,8 @@ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } - public function getTotalItems() { return $this->totalItems; } - } From 213f24c9e2d38473776e7f2fe3d20e2aaed85496 Mon Sep 17 00:00:00 2001 From: Veres Lajos Date: Sat, 8 Nov 2014 22:47:18 +0000 Subject: [PATCH 0512/1274] typo fixes - https://github.com/vlajos/misspell_fixer --- src/Google/Http/Batch.php | 2 +- src/Google/Service/Audit.php | 4 ++-- src/Google/Service/Books.php | 2 +- src/Google/Service/Calendar.php | 4 ++-- src/Google/Service/Reports.php | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 6a1b6678e..03aceb381 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -126,7 +126,7 @@ public function parseResponse(Google_Http_Request $response) $response = Google_Http_REST::decodeHttpResponse($response); $responses[$key] = $response; } catch (Google_Service_Exception $e) { - // Store the exception as the response, so succesful responses + // Store the exception as the response, so successful responses // can be processed. $responses[$key] = $e; } diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 60672ecc3..51f88fa59 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -144,9 +144,9 @@ class Google_Service_Audit_Activities_Resource extends Google_Service_Resource * @opt_param int maxResults Number of activity records to be shown in each * page. * @opt_param string eventName Name of the event being queried. - * @opt_param string startTime Return events which occured at or after this + * @opt_param string startTime Return events which occurred at or after this * time. - * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string endTime Return events which occurred at or before this time. * @opt_param string continuationToken Next page URL. * @return Google_Service_Audit_Activities */ diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 328a32cb8..c7d006843 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -2255,7 +2255,7 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour * 0) * @opt_param string maxResults Maximum number of results to return. * @opt_param string source String to identify the originator of this request. - * @opt_param string acquireMethod How the book was aquired + * @opt_param string acquireMethod How the book was acquired * @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. diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 8ad5c0b9e..425fbed66 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1103,7 +1103,7 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1182,7 +1182,7 @@ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $p * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index a459861d2..14bac1f69 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -277,7 +277,7 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * be retrieved. * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occured at or after this + * @opt_param string startTime Return events which occurred at or after this * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. @@ -288,7 +288,7 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string endTime Return events which occurred at or before this time. * @opt_param string customerId Represents the customer for which the data is to * be fetched. * @return Google_Service_Reports_Activities @@ -311,7 +311,7 @@ public function listActivities($userKey, $applicationName, $optParams = array()) * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occured at or after this + * @opt_param string startTime Return events which occurred at or after this * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. @@ -322,7 +322,7 @@ public function listActivities($userKey, $applicationName, $optParams = array()) * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string endTime Return events which occurred at or before this time. * @opt_param string customerId Represents the customer for which the data is to * be fetched. * @return Google_Service_Reports_Channel From 2f48b5018adea3628a899f0731e61e9472d27f13 Mon Sep 17 00:00:00 2001 From: Mario Young Date: Sun, 9 Nov 2014 01:00:32 -0300 Subject: [PATCH 0513/1274] Add a little spaces to the PHP example --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e799f6725..7508aeb52 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,13 @@ For the latest installation and setup instructions, see [the documentation](http See the examples/ directory for examples of the key client features. ```PHP setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); + $service = new Google_Service_Books($client); $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); @@ -36,6 +39,7 @@ See the examples/ directory for examples of the key client features. foreach ($results as $item) { echo $item['volumeInfo']['title'], "
\n"; } + ``` ## Frequently Asked Questions ## From ba940794f406811c06aa9277d19dea2d2eaac08f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 10 Nov 2014 02:02:37 -0800 Subject: [PATCH 0514/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index baecaa773..403c21c20 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -199,6 +199,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', @@ -494,6 +498,12 @@ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" * where startTime and endTime are 64 bit integers. * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The continuation token, which is used to page + * through large datasets. To get the next page of a dataset, set this parameter + * to the value of nextPageToken from the previous response. Each subsequent + * call will yield a partial dataset with data point end timestamps that are + * strictly smaller than those in the previous partial response. * @return Google_Service_Fitness_Dataset */ public function get($userId, $dataSourceId, $datasetId, $optParams = array()) @@ -873,6 +883,7 @@ class Google_Service_Fitness_Dataset extends Google_Collection public $dataSourceId; public $maxEndTimeNs; public $minStartTimeNs; + public $nextPageToken; protected $pointType = 'Google_Service_Fitness_DataPoint'; protected $pointDataType = 'array'; @@ -901,6 +912,14 @@ public function getMinStartTimeNs() { return $this->minStartTimeNs; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } public function setPoint($point) { $this->point = $point; From b659a4095d38b989e4b8365854639b0a01701825 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 12 Nov 2014 02:04:29 -0800 Subject: [PATCH 0515/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 4d73280c2..3f4cc057c 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -1272,6 +1272,7 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection protected $rowsDataType = 'array'; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; + public $totalBytesProcessed; public $totalRows; @@ -1339,6 +1340,14 @@ 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; From c9ec1895199e481e5a1909b800b943b5e73a89dd Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Wed, 12 Nov 2014 18:49:09 -0500 Subject: [PATCH 0516/1274] Fugbix typo. For reference: https://github.com/bagder/curl/blob/e7bcfb368c3f9145e89e1fa85c94edcb381c3e72/packages/OS400/curl.inc.in#L233-L240 --- src/Google/IO/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 7395acfd9..6e8854b68 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -61,7 +61,7 @@ public function executeRequest(Google_Http_Request $request) curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); - // 1 is CURL_SSLVERSION_TLSv1_0, which is not always defined in PHP. + // 1 is CURL_SSLVERSION_TLSv1, which is not always defined in PHP. curl_setopt($curl, CURLOPT_SSLVERSION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); From f2896b1a96c3e83cefb87dc91fc5be88795884d6 Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Wed, 12 Nov 2014 22:35:42 -0500 Subject: [PATCH 0517/1274] Use PHPUnit's built-in `@requires` annotation. --- tests/general/ApiClientTest.php | 6 +++--- tests/general/CacheTest.php | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index eab31507a..c0b82c07f 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -123,11 +123,11 @@ public function testSettersGetters() $this->assertEquals($token, $client->getAccessToken()); } + /** + * @requires extension Memcached + */ public function testAppEngineAutoConfig() { - if (!class_exists("Memcached")) { - $this->markTestSkipped('Test requires memcache'); - } $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; $client = new Google_Client(); $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); diff --git a/tests/general/CacheTest.php b/tests/general/CacheTest.php index cf190cace..281db648a 100644 --- a/tests/general/CacheTest.php +++ b/tests/general/CacheTest.php @@ -39,11 +39,11 @@ public function testFile() $this->getSetDelete($cache); } + /** + * @requires extension Memcache + */ public function testNull() { - if (!function_exists('memcache_connect')) { - $this->markTestSkipped('Test requires memcache'); - } $client = $this->getClient(); $cache = new Google_Cache_Null($client); $client->setCache($cache); @@ -63,11 +63,11 @@ public function testNull() $this->assertEquals($cache->get('foo'), false); } + /** + * @requires extension Memcache + */ public function testMemcache() { - if (!function_exists('memcache_connect')) { - $this->markTestSkipped('Test requires memcache'); - } $client = $this->getClient(); if (!$client->getClassConfig('Google_Cache_Memcache', 'host')) { $this->markTestSkipped('Test requires memcache host specified'); @@ -78,11 +78,11 @@ public function testMemcache() $this->getSetDelete($cache); } + /** + * @requires extension APC + */ public function testAPC() { - if (!function_exists('apc_add')) { - $this->markTestSkipped('Test requires APC'); - } if (!ini_get('apc.enable_cli')) { $this->markTestSkipped('Test requires APC enabled for CLI'); } From 9c6d681bf8e7cef9d80d33c11b559858a1fdfdcd Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Thu, 13 Nov 2014 01:29:26 -0500 Subject: [PATCH 0518/1274] Prevent overriding all default class configs when using a custom ini. --- src/Google/Config.php | 6 +++++- tests/general/ApiClientTest.php | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index 136fb1f47..fe21e07ca 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -98,7 +98,11 @@ public function __construct($ini_file_location = null) if ($ini_file_location) { $ini = parse_ini_file($ini_file_location, true); if (is_array($ini) && count($ini)) { - $this->configuration = array_merge($this->configuration, $ini); + $merged_configuration = $ini + $this->configuration; + if (isset($ini['classes']) && isset($this->configuration['classes'])) { + $merged_configuration['classes'] = $ini['classes'] + $this->configuration['classes']; + } + $this->configuration = $merged_configuration; } } } diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index eab31507a..505230cbf 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -177,5 +177,13 @@ public function testIniConfig() 'gjfiwnGinpena3', $config->getClassConfig('Google_Auth_OAuth2', 'client_secret') ); + $this->assertInternalType( + 'array', + $config->getClassConfig('Google_IO_Abstract') + ); + $this->assertEquals( + 100, + $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') + ); } } From 7e09f611b827df2a733f1d90aabe9609af108534 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 13 Nov 2014 02:05:58 -0800 Subject: [PATCH 0519/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index c7d006843..328a32cb8 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -2255,7 +2255,7 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour * 0) * @opt_param string maxResults Maximum number of results to return. * @opt_param string source String to identify the originator of this request. - * @opt_param string acquireMethod How the book was acquired + * @opt_param string acquireMethod How the book was aquired * @opt_param string processingState The processing state of the user uploaded * volumes to be returned. Applicable only if the UPLOADED is specified in the * acquireMethod. From 72b3f07316f1d7f99f5f7171d3ec36751914d0e5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 13 Nov 2014 02:05:58 -0800 Subject: [PATCH 0520/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 425fbed66..8ad5c0b9e 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1103,7 +1103,7 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. + * returned entires. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1182,7 +1182,7 @@ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $p * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. + * returned entires. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. From 43103f0c0852a8e66f25454b5c4cdd0b590d3ed0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 13 Nov 2014 02:05:59 -0800 Subject: [PATCH 0521/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 46 +++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index b477b701b..e445efcff 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -173,6 +173,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'insert' => array( 'path' => 'channelSections', @@ -227,6 +231,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1466,6 +1474,19 @@ class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Res * for the resource that is being deleted. In a channelSection resource, the id * property specifies the YouTube channelSection ID. * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function delete($id, $optParams = array()) { @@ -1583,6 +1604,19 @@ public function listChannelSections($part, $optParams = array()) * contentDetails. * @param Google_ChannelSection $postBody * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_ChannelSection */ public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) @@ -5222,8 +5256,9 @@ public function getTopicIds() } } -class Google_Service_YouTube_ContentRating extends Google_Model +class Google_Service_YouTube_ContentRating extends Google_Collection { + protected $collection_key = 'djctqRatingReasons'; protected $internal_gapi_mappings = array( ); public $acbRating; @@ -5245,6 +5280,7 @@ class Google_Service_YouTube_ContentRating extends Google_Model public $cscfRating; public $czfilmRating; public $djctqRating; + public $djctqRatingReasons; public $eefilmRating; public $egfilmRating; public $eirinRating; @@ -5443,6 +5479,14 @@ public function getDjctqRating() { return $this->djctqRating; } + public function setDjctqRatingReasons($djctqRatingReasons) + { + $this->djctqRatingReasons = $djctqRatingReasons; + } + public function getDjctqRatingReasons() + { + return $this->djctqRatingReasons; + } public function setEefilmRating($eefilmRating) { $this->eefilmRating = $eefilmRating; From 04af69af4036db1d72f143a1022576a422317377 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 13 Nov 2014 02:05:59 -0800 Subject: [PATCH 0522/1274] Updated Audit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Audit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php index 51f88fa59..60672ecc3 100644 --- a/src/Google/Service/Audit.php +++ b/src/Google/Service/Audit.php @@ -144,9 +144,9 @@ class Google_Service_Audit_Activities_Resource extends Google_Service_Resource * @opt_param int maxResults Number of activity records to be shown in each * page. * @opt_param string eventName Name of the event being queried. - * @opt_param string startTime Return events which occurred at or after this + * @opt_param string startTime Return events which occured at or after this * time. - * @opt_param string endTime Return events which occurred at or before this time. + * @opt_param string endTime Return events which occured at or before this time. * @opt_param string continuationToken Next page URL. * @return Google_Service_Audit_Activities */ From 60af35cde5dcac23bf90e79a7797fb4c63332ca6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 13 Nov 2014 02:06:00 -0800 Subject: [PATCH 0523/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index 14bac1f69..a459861d2 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -277,7 +277,7 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * be retrieved. * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occurred at or after this + * @opt_param string startTime Return events which occured at or after this * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. @@ -288,7 +288,7 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occurred at or before this time. + * @opt_param string endTime Return events which occured at or before this time. * @opt_param string customerId Represents the customer for which the data is to * be fetched. * @return Google_Service_Reports_Activities @@ -311,7 +311,7 @@ public function listActivities($userKey, $applicationName, $optParams = array()) * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occurred at or after this + * @opt_param string startTime Return events which occured at or after this * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. @@ -322,7 +322,7 @@ public function listActivities($userKey, $applicationName, $optParams = array()) * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occurred at or before this time. + * @opt_param string endTime Return events which occured at or before this time. * @opt_param string customerId Represents the customer for which the data is to * be fetched. * @return Google_Service_Reports_Channel From 8fc4e176cbc6b83cef8f6f0ef92d2f6f37e6623a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 18 Nov 2014 02:11:00 -0800 Subject: [PATCH 0524/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 93f451837..5aa303961 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -522,11 +522,13 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection public $adId; public $advertiserId; public $agencyId; + public $attributionModel; public $campaignId; public $clickId; public $conversionId; public $conversionModifiedTimestamp; public $conversionTimestamp; + public $countMillis; public $criterionId; public $currencyCode; protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension'; @@ -577,6 +579,14 @@ public function getAgencyId() { return $this->agencyId; } + public function setAttributionModel($attributionModel) + { + $this->attributionModel = $attributionModel; + } + public function getAttributionModel() + { + return $this->attributionModel; + } public function setCampaignId($campaignId) { $this->campaignId = $campaignId; @@ -617,6 +627,14 @@ public function getConversionTimestamp() { return $this->conversionTimestamp; } + public function setCountMillis($countMillis) + { + $this->countMillis = $countMillis; + } + public function getCountMillis() + { + return $this->countMillis; + } public function setCriterionId($criterionId) { $this->criterionId = $criterionId; From 50b1a6e379346f57832cbbfeed7be7467f7a6bdd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 18 Nov 2014 02:11:01 -0800 Subject: [PATCH 0525/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 186 +++++++++++++++++++++++++ 1 file changed, 186 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 115e30825..223f1f1bb 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -37,6 +37,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $accounts; public $billingInfo; + public $budget; public $creatives; public $directDeals; public $performanceReport; @@ -123,6 +124,61 @@ public function __construct(Google_Client $client) ) ) ); + $this->budget = new Google_Service_AdExchangeBuyer_Budget_Resource( + $this, + $this->serviceName, + 'budget', + array( + 'methods' => array( + 'get' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -446,6 +502,74 @@ public function listBillingInfo($optParams = array()) } } +/** + * The "budget" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $budget = $adexchangebuyerService->budget; + * + */ +class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource +{ + + /** + * Returns the budget information for the adgroup specified by the accountId and + * billingId. (budget.get) + * + * @param string $accountId The account id to get the budget information for. + * @param string $billingId The billing id to get the budget information for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function get($accountId, $billingId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. This method + * supports patch semantics. (budget.patch) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. + * (budget.update) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } +} + /** * The "creatives" collection of methods. * Typical usage is: @@ -920,6 +1044,68 @@ public function getKind() } } +class Google_Service_AdExchangeBuyer_Budget extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $billingId; + public $budgetAmount; + public $currencyCode; + public $id; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + public function getBillingId() + { + return $this->billingId; + } + public function setBudgetAmount($budgetAmount) + { + $this->budgetAmount = $budgetAmount; + } + public function getBudgetAmount() + { + return $this->budgetAmount; + } + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + 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_AdExchangeBuyer_Creative extends Google_Collection { protected $collection_key = 'vendorType'; From fd19c50e224fbaa2062e1a9e5d9db7803d9275eb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 19 Nov 2014 02:12:18 -0800 Subject: [PATCH 0526/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index e96262ed4..728b10d89 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -31,10 +31,10 @@ */ class Google_Service_MapsEngine extends Google_Service { - /** View and manage your Google Maps Engine data. */ + /** View and manage your Google My Maps data. */ const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; - /** View your Google Maps Engine data. */ + /** View your Google My Maps data. */ const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; From d4ad92e959b420eecc987a61493261fe4359843a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 19 Nov 2014 02:12:19 -0800 Subject: [PATCH 0527/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 140 ++++++++++++++++---------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 9a261eaf5..7cb3d35c0 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -947,13 +947,13 @@ public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBod /** * Calls variants on read data from existing read group sets or files from * Google Cloud Storage. See the alignment and variant calling documentation - * for more details. (readgroupsets.call) + * for more details. (readgroupsets.callReadgroupsets) * * @param Google_CallReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_CallReadGroupSetsResponse */ - public function call(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $optParams = array()) + public function callReadgroupsets(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); @@ -1611,73 +1611,6 @@ public function getJobId() } } -class Google_Service_Genomics_Call extends Google_Collection -{ - protected $collection_key = 'genotypeLikelihood'; - protected $internal_gapi_mappings = array( - ); - public $callSetId; - public $callSetName; - public $genotype; - public $genotypeLikelihood; - public $info; - public $phaseset; - - - public function setCallSetId($callSetId) - { - $this->callSetId = $callSetId; - } - public function getCallSetId() - { - return $this->callSetId; - } - public function setCallSetName($callSetName) - { - $this->callSetName = $callSetName; - } - public function getCallSetName() - { - return $this->callSetName; - } - public function setGenotype($genotype) - { - $this->genotype = $genotype; - } - public function getGenotype() - { - return $this->genotype; - } - public function setGenotypeLikelihood($genotypeLikelihood) - { - $this->genotypeLikelihood = $genotypeLikelihood; - } - public function getGenotypeLikelihood() - { - return $this->genotypeLikelihood; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setPhaseset($phaseset) - { - $this->phaseset = $phaseset; - } - public function getPhaseset() - { - return $this->phaseset; - } -} - -class Google_Service_Genomics_CallInfo extends Google_Model -{ -} - class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; @@ -2170,6 +2103,73 @@ public function getSampleName() } } +class Google_Service_Genomics_GenomicsCall extends Google_Collection +{ + protected $collection_key = 'genotypeLikelihood'; + protected $internal_gapi_mappings = array( + ); + public $callSetId; + public $callSetName; + public $genotype; + public $genotypeLikelihood; + public $info; + public $phaseset; + + + public function setCallSetId($callSetId) + { + $this->callSetId = $callSetId; + } + public function getCallSetId() + { + return $this->callSetId; + } + public function setCallSetName($callSetName) + { + $this->callSetName = $callSetName; + } + public function getCallSetName() + { + return $this->callSetName; + } + public function setGenotype($genotype) + { + $this->genotype = $genotype; + } + public function getGenotype() + { + return $this->genotype; + } + public function setGenotypeLikelihood($genotypeLikelihood) + { + $this->genotypeLikelihood = $genotypeLikelihood; + } + public function getGenotypeLikelihood() + { + return $this->genotypeLikelihood; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setPhaseset($phaseset) + { + $this->phaseset = $phaseset; + } + public function getPhaseset() + { + return $this->phaseset; + } +} + +class Google_Service_Genomics_GenomicsCallInfo extends Google_Model +{ +} + class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; @@ -4054,7 +4054,7 @@ class Google_Service_Genomics_Variant extends Google_Collection protected $internal_gapi_mappings = array( ); public $alternateBases; - protected $callsType = 'Google_Service_Genomics_Call'; + protected $callsType = 'Google_Service_Genomics_GenomicsCall'; protected $callsDataType = 'array'; public $created; public $end; From 7e23669c1afd2fd0bb121644bff0ca1953d97eba Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 19 Nov 2014 02:12:19 -0800 Subject: [PATCH 0528/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index 403c21c20..a0792f622 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -199,6 +199,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -499,6 +503,9 @@ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) * where startTime and endTime are 64 bit integers. * @param array $optParams Optional parameters. * + * @opt_param int limit If specified, no more than this many data points will be + * included in the dataset. If the there are more data points in the dataset, + * nextPageToken will be set in the dataset response. * @opt_param string pageToken The continuation token, which is used to page * through large datasets. To get the next page of a dataset, set this parameter * to the value of nextPageToken from the previous response. Each subsequent From 3a11151965488124f79901b73a500aa48e3d72fc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 20 Nov 2014 02:13:41 -0800 Subject: [PATCH 0529/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 140 ++++++++++++++++++++++++++++++++++- 1 file changed, 138 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 328a32cb8..d27b6e3c9 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -37,6 +37,7 @@ class Google_Service_Books extends Google_Service public $bookshelves; public $bookshelves_volumes; public $cloudloading; + public $dictionary; public $layers; public $layers_annotationData; public $layers_volumeAnnotations; @@ -194,6 +195,26 @@ public function __construct(Google_Client $client) ) ) ); + $this->dictionary = new Google_Service_Books_Dictionary_Resource( + $this, + $this->serviceName, + 'dictionary', + array( + 'methods' => array( + 'listOfflineMetadata' => array( + 'path' => 'dictionary/listOfflineMetadata', + 'httpMethod' => 'GET', + 'parameters' => array( + 'cpksver' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->layers = new Google_Service_Books_Layers_Resource( $this, $this->serviceName, @@ -622,7 +643,7 @@ public function __construct(Google_Client $client) 'path' => 'mylibrary/annotations', 'httpMethod' => 'POST', 'parameters' => array( - 'source' => array( + 'country' => array( 'location' => 'query', 'type' => 'string', ), @@ -630,6 +651,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => 'mylibrary/annotations', @@ -1446,6 +1471,33 @@ public function updateBook(Google_Service_Books_BooksCloudloadingResource $postB } } +/** + * The "dictionary" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $dictionary = $booksService->dictionary; + * + */ +class Google_Service_Books_Dictionary_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of offline dictionary meatadata available + * (dictionary.listOfflineMetadata) + * + * @param string $cpksver The device/version ID from which to request the data. + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Metadata + */ + public function listOfflineMetadata($cpksver, $optParams = array()) + { + $params = array('cpksver' => $cpksver); + $params = array_merge($params, $optParams); + return $this->call('listOfflineMetadata', array($params), "Google_Service_Books_Metadata"); + } +} + /** * The "layers" collection of methods. * Typical usage is: @@ -1786,9 +1838,10 @@ public function get($annotationId, $optParams = array()) * @param Google_Annotation $postBody * @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 bool showOnlySummaryInResponse Requests that only the summary of * the specified layer be provided in the response. + * @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()) @@ -4419,6 +4472,89 @@ public function getVolumeId() } } +class Google_Service_Books_Metadata extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Books_MetadataItems'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Books_MetadataItems extends Google_Model +{ + protected $internal_gapi_mappings = array( + "downloadUrl" => "download_url", + "encryptedKey" => "encrypted_key", + ); + public $downloadUrl; + public $encryptedKey; + public $language; + public $size; + public $version; + + + public function setDownloadUrl($downloadUrl) + { + $this->downloadUrl = $downloadUrl; + } + public function getDownloadUrl() + { + return $this->downloadUrl; + } + public function setEncryptedKey($encryptedKey) + { + $this->encryptedKey = $encryptedKey; + } + public function getEncryptedKey() + { + return $this->encryptedKey; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + class Google_Service_Books_Offers extends Google_Collection { protected $collection_key = 'items'; From c72f6e4c7be0d805d6e35ad1aa333d2ae7b23844 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 20 Nov 2014 02:13:41 -0800 Subject: [PATCH 0530/1274] Updated TagManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/TagManager.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index aaaf5511e..d09db631f 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -1919,6 +1919,7 @@ class Google_Service_TagManager_Container extends Google_Collection public $accountId; public $containerId; public $domainName; + public $enabledBuiltInVariable; public $fingerprint; public $name; public $notes; @@ -1952,6 +1953,14 @@ public function getDomainName() { return $this->domainName; } + public function setEnabledBuiltInVariable($enabledBuiltInVariable) + { + $this->enabledBuiltInVariable = $enabledBuiltInVariable; + } + public function getEnabledBuiltInVariable() + { + return $this->enabledBuiltInVariable; + } public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -2793,8 +2802,6 @@ class Google_Service_TagManager_Tag extends Google_Collection public $blockingRuleId; public $blockingTriggerId; public $containerId; - protected $dependenciesType = 'Google_Service_TagManager_Parameter'; - protected $dependenciesDataType = ''; public $fingerprint; public $firingRuleId; public $firingTriggerId; @@ -2843,14 +2850,6 @@ public function getContainerId() { return $this->containerId; } - public function setDependencies(Google_Service_TagManager_Parameter $dependencies) - { - $this->dependencies = $dependencies; - } - public function getDependencies() - { - return $this->dependencies; - } public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; From 0022c35967c4152a5eb8321bcb398eaebd5239fb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 20 Nov 2014 02:13:42 -0800 Subject: [PATCH 0531/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 90392302a..670d1f896 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -4334,7 +4334,7 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * Retrieves the list of machine type resources grouped by scope. * (machineTypes.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4355,7 +4355,7 @@ public function aggregatedList($project, $optParams = array()) /** * Returns the specified machine type resource. (machineTypes.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $machineType Name of the machine type resource to return. * @param array $optParams Optional parameters. @@ -4372,7 +4372,7 @@ public function get($project, $zone, $machineType, $optParams = array()) * Retrieves the list of machine type resources available to the specified * project. (machineTypes.listMachineTypes) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * From 8c7b276ca6c827ebf7f2f4e6f56b0e55e862f18e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 20 Nov 2014 02:13:42 -0800 Subject: [PATCH 0532/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 157 +++++++++++++++++++++++++--- 1 file changed, 145 insertions(+), 12 deletions(-) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 654bf6105..4ee1497ab 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Fusiontables (v1). + * Service definition for Fusiontables (v2). * *

* API for working with Fusion Tables data.

@@ -53,8 +53,8 @@ class Google_Service_Fusiontables extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'fusiontables/v1/'; - $this->version = 'v1'; + $this->servicePath = 'fusiontables/v2/'; + $this->version = 'v2'; $this->serviceName = 'fusiontables'; $this->column = new Google_Service_Fusiontables_Column_Resource( @@ -418,6 +418,36 @@ public function __construct(Google_Client $client) 'type' => 'boolean', ), ), + ),'replaceRows' => array( + 'path' => 'tables/{tableId}/replace', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startLine' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'isStrict' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'encoding' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'delimiter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endLine' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), ),'update' => array( 'path' => 'tables/{tableId}', 'httpMethod' => 'PUT', @@ -663,9 +693,9 @@ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $ * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token specifying which result page - * to return. Optional. - * @opt_param string maxResults Maximum number of columns to return. Optional. - * Default is 5. + * to return. + * @opt_param string maxResults Maximum number of columns to return. Default is + * 5. * @return Google_Service_Fusiontables_ColumnList */ public function listColumn($tableId, $optParams = array()) @@ -1032,6 +1062,36 @@ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $op return $this->call('patch', array($params), "Google_Service_Fusiontables_Table"); } + /** + * Replaces rows of an existing table. Current rows remain visible until all + * replacement rows are ready. (table.replaceRows) + * + * @param string $tableId Table whose rows will be replaced. + * @param array $optParams Optional parameters. + * + * @opt_param int startLine The index of the first line from which to start + * importing, inclusive. Default is 0. + * @opt_param bool isStrict Whether the CSV must have the same number of column + * values for each row. If true, throws an exception if the CSV does not not + * have the same number of columns. If false, rows with fewer column values will + * be padded with empty values. Default is true. + * @opt_param string encoding The encoding of the content. Default is UTF-8. Use + * 'auto-detect' if you are unsure of the encoding. + * @opt_param string delimiter The delimiter used to separate cell values. This + * can only consist of a single character. Default is ','. + * @opt_param int endLine The index of the last line to import, exclusive. + * 'endLine - startLine' rows will be imported. Default is to import through the + * end of the file. If endLine is negative, it is an offset from the end of the + * file; the imported content will exclude the last endLine lines. + * @return Google_Service_Fusiontables_Task + */ + public function replaceRows($tableId, $optParams = array()) + { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('replaceRows', array($params), "Google_Service_Fusiontables_Task"); + } + /** * Updates an existing table. Unless explicitly requested, only the name, * description, and attribution will be updated. (table.update) @@ -1099,10 +1159,11 @@ public function get($tableId, $taskId, $optParams = array()) * @param string $tableId Table whose tasks are being listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * @opt_param string startIndex - * @opt_param string maxResults Maximum number of columns to return. Optional. - * Default is 5. + * @opt_param string pageToken Continuation token specifying which result page + * to return. + * @opt_param string startIndex Index of the first result returned in the + * current page. + * @opt_param string maxResults Maximum number of tasks to return. Default is 5. * @return Google_Service_Fusiontables_TaskList */ public function listTask($tableId, $optParams = array()) @@ -1287,19 +1348,24 @@ public function getWeight() } } -class Google_Service_Fusiontables_Column extends Google_Model +class Google_Service_Fusiontables_Column extends Google_Collection { + protected $collection_key = 'validValues'; protected $internal_gapi_mappings = array( - "graphPredicate" => "graph_predicate", ); protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; protected $baseColumnDataType = ''; public $columnId; + public $columnJsonSchema; + public $columnPropertiesJson; public $description; + public $formatPattern; public $graphPredicate; public $kind; public $name; public $type; + public $validValues; + public $validateData; public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn) @@ -1318,6 +1384,22 @@ public function getColumnId() { return $this->columnId; } + public function setColumnJsonSchema($columnJsonSchema) + { + $this->columnJsonSchema = $columnJsonSchema; + } + public function getColumnJsonSchema() + { + return $this->columnJsonSchema; + } + public function setColumnPropertiesJson($columnPropertiesJson) + { + $this->columnPropertiesJson = $columnPropertiesJson; + } + public function getColumnPropertiesJson() + { + return $this->columnPropertiesJson; + } public function setDescription($description) { $this->description = $description; @@ -1326,6 +1408,14 @@ public function getDescription() { return $this->description; } + public function setFormatPattern($formatPattern) + { + $this->formatPattern = $formatPattern; + } + public function getFormatPattern() + { + return $this->formatPattern; + } public function setGraphPredicate($graphPredicate) { $this->graphPredicate = $graphPredicate; @@ -1358,6 +1448,22 @@ public function getType() { return $this->type; } + public function setValidValues($validValues) + { + $this->validValues = $validValues; + } + public function getValidValues() + { + return $this->validValues; + } + public function setValidateData($validateData) + { + $this->validateData = $validateData; + } + public function getValidateData() + { + return $this->validateData; + } } class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model @@ -2014,6 +2120,7 @@ class Google_Service_Fusiontables_Table extends Google_Collection public $attribution; public $attributionLink; public $baseTableIds; + public $columnPropertiesJsonSchema; protected $columnsType = 'Google_Service_Fusiontables_Column'; protected $columnsDataType = 'array'; public $description; @@ -2022,6 +2129,8 @@ class Google_Service_Fusiontables_Table extends Google_Collection public $name; public $sql; public $tableId; + public $tablePropertiesJson; + public $tablePropertiesJsonSchema; public function setAttribution($attribution) @@ -2048,6 +2157,14 @@ public function getBaseTableIds() { return $this->baseTableIds; } + public function setColumnPropertiesJsonSchema($columnPropertiesJsonSchema) + { + $this->columnPropertiesJsonSchema = $columnPropertiesJsonSchema; + } + public function getColumnPropertiesJsonSchema() + { + return $this->columnPropertiesJsonSchema; + } public function setColumns($columns) { $this->columns = $columns; @@ -2104,6 +2221,22 @@ public function getTableId() { return $this->tableId; } + public function setTablePropertiesJson($tablePropertiesJson) + { + $this->tablePropertiesJson = $tablePropertiesJson; + } + public function getTablePropertiesJson() + { + return $this->tablePropertiesJson; + } + public function setTablePropertiesJsonSchema($tablePropertiesJsonSchema) + { + $this->tablePropertiesJsonSchema = $tablePropertiesJsonSchema; + } + public function getTablePropertiesJsonSchema() + { + return $this->tablePropertiesJsonSchema; + } } class Google_Service_Fusiontables_TableList extends Google_Collection From f985b38158efe4c55c90b90443311f792c919a59 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 20 Nov 2014 02:13:43 -0800 Subject: [PATCH 0533/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 186 ------------------------- 1 file changed, 186 deletions(-) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 223f1f1bb..115e30825 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -37,7 +37,6 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $accounts; public $billingInfo; - public $budget; public $creatives; public $directDeals; public $performanceReport; @@ -124,61 +123,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->budget = new Google_Service_AdExchangeBuyer_Budget_Resource( - $this, - $this->serviceName, - 'budget', - array( - 'methods' => array( - 'get' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -502,74 +446,6 @@ public function listBillingInfo($optParams = array()) } } -/** - * The "budget" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $budget = $adexchangebuyerService->budget; - * - */ -class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource -{ - - /** - * Returns the budget information for the adgroup specified by the accountId and - * billingId. (budget.get) - * - * @param string $accountId The account id to get the budget information for. - * @param string $billingId The billing id to get the budget information for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function get($accountId, $billingId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } - - /** - * Updates the budget amount for the budget of the adgroup specified by the - * accountId and billingId, with the budget amount in the request. This method - * supports patch semantics. (budget.patch) - * - * @param string $accountId The account id associated with the budget being - * updated. - * @param string $billingId The billing id associated with the budget being - * updated. - * @param Google_Budget $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } - - /** - * Updates the budget amount for the budget of the adgroup specified by the - * accountId and billingId, with the budget amount in the request. - * (budget.update) - * - * @param string $accountId The account id associated with the budget being - * updated. - * @param string $billingId The billing id associated with the budget being - * updated. - * @param Google_Budget $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } -} - /** * The "creatives" collection of methods. * Typical usage is: @@ -1044,68 +920,6 @@ public function getKind() } } -class Google_Service_AdExchangeBuyer_Budget extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $billingId; - public $budgetAmount; - public $currencyCode; - public $id; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBillingId($billingId) - { - $this->billingId = $billingId; - } - public function getBillingId() - { - return $this->billingId; - } - public function setBudgetAmount($budgetAmount) - { - $this->budgetAmount = $budgetAmount; - } - public function getBudgetAmount() - { - return $this->budgetAmount; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - 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_AdExchangeBuyer_Creative extends Google_Collection { protected $collection_key = 'vendorType'; From 1319b2f66ced815effbfc07243ae8eb0132bf598 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 22 Nov 2014 05:16:02 -0500 Subject: [PATCH 0534/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 34 +++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 98bdb341c..e67538490 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -336,8 +336,8 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = } /** - * Called on the particular Update endpoint. Pauses the update in state from { - * ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state PAUSED. + * Called on the particular Update endpoint. Pauses the update in state + * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. * (updates.pause) * * @param string $project Project ID for this request. @@ -355,9 +355,9 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam } /** - * Called on the particular Update endpoint. Rolls back the update in state from - * { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state - * ROLLED_BACK. (updates.rollback) + * Called on the particular Update endpoint. Rolls back the update in state + * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or + * ROLLING_BACK. (updates.rollback) * * @param string $project Project ID for this request. * @param string $zone Zone for the instance group manager. @@ -375,8 +375,8 @@ public function rollback($project, $zone, $instanceGroupManager, $update, $optPa /** * Called on the particular Update endpoint. Rolls forward the update in state - * from { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state - * ROLLED_OUT. (updates.rollforward) + * ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or + * ROLLING_FORWARD. (updates.rollforward) * * @param string $project Project ID for this request. * @param string $zone Zone for the instance group manager. @@ -444,6 +444,7 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection protected $collection_key = 'instanceUpdates'; protected $internal_gapi_mappings = array( ); + public $creationTimestamp; public $details; public $handle; public $instanceTemplate; @@ -455,8 +456,17 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection public $selfLink; public $state; public $targetState; + public $user; + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } public function setDetails($details) { $this->details = $details; @@ -529,6 +539,14 @@ public function getTargetState() { return $this->targetState; } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } } class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection From 144cba23050effc85a0ce99c6878328a792c58c4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 22 Nov 2014 05:16:02 -0500 Subject: [PATCH 0535/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 3f4cc057c..71692fd53 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -2122,6 +2122,8 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model ); public $creationTime; public $endTime; + protected $extractType = 'Google_Service_Bigquery_JobStatistics4'; + protected $extractDataType = ''; protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; protected $loadDataType = ''; protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; @@ -2146,6 +2148,14 @@ public function getEndTime() { return $this->endTime; } + public function setExtract(Google_Service_Bigquery_JobStatistics4 $extract) + { + $this->extract = $extract; + } + public function getExtract() + { + return $this->extract; + } public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) { $this->load = $load; @@ -2250,6 +2260,24 @@ public function getOutputRows() } } +class Google_Service_Bigquery_JobStatistics4 extends Google_Collection +{ + protected $collection_key = 'destinationUriFileCounts'; + protected $internal_gapi_mappings = array( + ); + public $destinationUriFileCounts; + + + public function setDestinationUriFileCounts($destinationUriFileCounts) + { + $this->destinationUriFileCounts = $destinationUriFileCounts; + } + public function getDestinationUriFileCounts() + { + return $this->destinationUriFileCounts; + } +} + class Google_Service_Bigquery_JobStatus extends Google_Collection { protected $collection_key = 'errors'; From de7802824c82ae75b2f6ab8690036f6f4266ea64 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 22 Nov 2014 05:16:02 -0500 Subject: [PATCH 0536/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 188707880..8e6307c82 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -39,6 +39,9 @@ class Google_Service_Analytics extends Google_Service /** Manage Google Analytics Account users by email address. */ const ANALYTICS_MANAGE_USERS = "https://www.googleapis.com/auth/analytics.manage.users"; + /** View Google Analytics user permissions. */ + const ANALYTICS_MANAGE_USERS_READONLY = + "https://www.googleapis.com/auth/analytics.manage.users.readonly"; /** Create a new Google Analytics account along with its default property and view. */ const ANALYTICS_PROVISION = "https://www.googleapis.com/auth/analytics.provision"; From 336c03472cd8b3d95602a44bb26a7dce63207145 Mon Sep 17 00:00:00 2001 From: Stuart Langley Date: Sun, 23 Nov 2014 20:52:30 +1100 Subject: [PATCH 0537/1274] Update Client.php Never use cURL on App Engine, even if it is available. --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 22a100a8a..a17a89c67 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -87,7 +87,7 @@ public function __construct($config = null) } if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { - if (function_exists('curl_version') && function_exists('curl_exec')) { + if (function_exists('curl_version') && function_exists('curl_exec') && !$this->isAppEngine()) { $config->setIoClass("Google_IO_Curl"); } else { $config->setIoClass("Google_IO_Stream"); From f21a7f0377b99de45dc2e1b7024fdb0b08dbc81e Mon Sep 17 00:00:00 2001 From: Stuart Langley Date: Sun, 23 Nov 2014 21:01:13 +1100 Subject: [PATCH 0538/1274] Update ApiClientTest.php Add test that the IO class on App Engine is always Google_Io_Stream. --- tests/general/ApiClientTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index b35b2e707..a4e2d33dd 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -131,6 +131,7 @@ public function testAppEngineAutoConfig() $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; $client = new Google_Client(); $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); + $this->assertInstanceOf('Google_Io_Stream', $client->getIo()); unset($_SERVER['SERVER_SOFTWARE']); } From 648ebcd28bf527d109fb8a22eed49221bdec0aec Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sun, 23 Nov 2014 11:20:10 -0500 Subject: [PATCH 0539/1274] Simplify PHPUnit setup. * Use the much more succinct style of composing suites with XML configurations. * Remove all unnecessary includes/requires. All test runs should load the bootstrap which includes the appropriate autoloader. * Move the XML configuration file to a more standard location so that PHPUnit can run from the root directory with no arguments. * Allow for local phpunit.xml files. * Use the version of PHPUnit that's installed by composer. --- .gitignore | 1 + .travis.yml | 4 +- phpunit.xml.dist | 34 +++++++++++++ tests/AllTests.php | 49 ------------------ tests/BaseTest.php | 16 +++--- tests/OAuthHelper.php | 3 +- tests/adsense/AdSenseTest.php | 13 ----- tests/bootstrap.php | 24 +++++++-- tests/general/ApiBatchRequestTest.php | 3 -- tests/general/ApiCacheParserTest.php | 3 -- tests/general/ApiClientTest.php | 3 -- tests/general/ApiMediaFileUploadTest.php | 17 +++---- tests/general/ApiModelTest.php | 3 -- tests/general/ApiOAuth2Test.php | 3 -- tests/general/AuthTest.php | 3 -- tests/general/CacheTest.php | 3 -- tests/general/GeneralTests.php | 56 --------------------- tests/general/IoTest.php | 3 -- tests/general/RequestTest.php | 11 ++-- tests/general/RestTest.php | 13 ++--- tests/general/ServiceTest.php | 3 -- tests/general/URITemplateTest.php | 3 -- tests/pagespeed/AllPageSpeedTests.php | 32 ------------ tests/pagespeed/PageSpeedTest.php | 2 - tests/phpunit.xml | 7 --- tests/plus/PlusTest.php | 19 ++----- tests/tasks/AllTasksTests.php | 32 ------------ tests/tasks/TasksTest.php | 4 +- tests/urlshortener/AllUrlShortenerTests.php | 32 ------------ tests/urlshortener/UrlShortenerTests.php | 2 - tests/youtube/YouTubeTest.php | 13 ----- 31 files changed, 83 insertions(+), 331 deletions(-) create mode 100644 .gitignore create mode 100644 phpunit.xml.dist delete mode 100644 tests/AllTests.php delete mode 100644 tests/general/GeneralTests.php delete mode 100644 tests/pagespeed/AllPageSpeedTests.php delete mode 100644 tests/phpunit.xml delete mode 100644 tests/tasks/AllTasksTests.php delete mode 100644 tests/urlshortener/AllUrlShortenerTests.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..ce3aa6521 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +phpunit.xml diff --git a/.travis.yml b/.travis.yml index cb9199c7f..8503d6ba2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ php: - 5.5 - 5.6 - hhvm - + before_script: - composer install - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' @@ -23,4 +23,4 @@ before_script: - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true script: - - cd tests ; phpunit . + - vendor/bin/phpunit diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 000000000..bb8e834bf --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,34 @@ + + + + + tests/youtube + + + tests/tasks + + + tests/pagespeed + + + tests/urlshortener + + + tests/plus + + + tests/adsense + + + tests/general + + + + + tests + + + diff --git a/tests/AllTests.php b/tests/AllTests.php deleted file mode 100644 index 232a656dc..000000000 --- a/tests/AllTests.php +++ /dev/null @@ -1,49 +0,0 @@ -setName('All Google API PHP Client tests'); - $suite->addTestSuite(YouTubeTests::suite()); - $suite->addTestSuite(AllTasksTests::suite()); - $suite->addTestSuite(AllPageSpeedTests::suite()); - $suite->addTestSuite(AllUrlShortenerTests::suite()); - $suite->addTestSuite(AllPlusTests::suite()); - $suite->addTestSuite(AdsenseTests::suite()); - $suite->addTestSuite(GeneralTests::suite()); - return $suite; - } -} diff --git a/tests/BaseTest.php b/tests/BaseTest.php index d113718e7..c893581a3 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -14,8 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -require_once 'bootstrap.php'; -require_once 'Google/Client.php'; class BaseTest extends PHPUnit_Framework_TestCase { @@ -23,7 +21,7 @@ class BaseTest extends PHPUnit_Framework_TestCase private $token; private $memcacheHost; private $memcachePort; - + public function __construct() { parent::__construct(); @@ -34,7 +32,7 @@ public function __construct() $this->memcacheHost = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null; $this->memcachePort = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; } - + public function getClient() { $client = new Google_Client(); @@ -48,22 +46,20 @@ public function getClient() } return $client; } - + public function testClientConstructor() { $this->assertInstanceOf('Google_Client', $this->getClient()); } - + public function testIncludes() { - $prefix = dirname(dirname(__FILE__)) . '/src/'; $path = dirname(dirname(__FILE__)) . '/src/Google/Service'; foreach (glob($path . "/*.php") as $file) { - // Munge prefix so we don't double require. - $this->assertEquals(1, require_once(str_replace($prefix, '', $file))); + $this->assertEquals(1, require_once($file)); } } - + public function checkToken() { if (!strlen($this->token)) { diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 708afd67b..e83e3e55f 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -14,8 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -include_once 'bootstrap.php'; -require_once 'Google/Client.php'; +require_once dirname(__FILE__) . '/../autoload.php'; $client = new Google_Client(); $client->setScopes( diff --git a/tests/adsense/AdSenseTest.php b/tests/adsense/AdSenseTest.php index 9152976e6..4033ed276 100644 --- a/tests/adsense/AdSenseTest.php +++ b/tests/adsense/AdSenseTest.php @@ -15,19 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - -class AdsenseTests extends PHPUnit_Framework_TestSuite -{ - public static function suite() - { - $suite = new PHPUnit_Framework_TestSuite(); - $suite->setName('AdSense Management API tests'); - $suite->addTestSuite('AdSenseManagementTest'); - return $suite; - } -} - class AdSenseManagementTest extends BaseTest { public $adsense; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index c08ec087e..e1783a057 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,7 +1,21 @@ array('value' => $media)); $this->assertEquals('resumable', $media->getUploadType(null)); - + // Test data *only* uploads $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); $this->assertEquals('media', $media->getUploadType(null)); - + // Test multipart uploads $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); } - + public function testResultCode() { $client = $this->getClient(); @@ -66,24 +63,24 @@ public function testResultCode() $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); $this->assertEquals(null, $media->getHttpResultCode()); } - + public function testProcess() { $client = $this->getClient(); $data = 'foo'; - + // Test data *only* uploads. $request = new Google_Http_Request('http://www.example.com', 'POST'); $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); $this->assertEquals($data, $request->getPostBody()); - + // Test resumable (meta data) - we want to send the metadata, not the app data. $request = new Google_Http_Request('http://www.example.com', 'POST'); $reqData = json_encode("hello"); $request->setPostBody($reqData); $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, true); $this->assertEquals(json_decode($reqData), $request->getPostBody()); - + // Test multipart - we are sending encoded meta data and post data $request = new Google_Http_Request('http://www.example.com', 'POST'); $reqData = json_encode("hello"); diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index b3ef5891b..8eb7ee2a1 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class ApiModelTest extends BaseTest { public function testModelMutation() diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index eaa66cf8d..768478cf9 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -18,9 +18,6 @@ * under the License. */ -require_once "BaseTest.php"; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class ApiOAuth2Test extends BaseTest { diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index fb5df5193..9832a34dc 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class AuthTest extends BaseTest { const PRIVATE_KEY_FILE = "testdata/cert.p12"; diff --git a/tests/general/CacheTest.php b/tests/general/CacheTest.php index 281db648a..8a61a9a3e 100644 --- a/tests/general/CacheTest.php +++ b/tests/general/CacheTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class CacheTest extends BaseTest { public function testFile() diff --git a/tests/general/GeneralTests.php b/tests/general/GeneralTests.php deleted file mode 100644 index 4ab9bc871..000000000 --- a/tests/general/GeneralTests.php +++ /dev/null @@ -1,56 +0,0 @@ -addTestSuite('AuthTest'); - $suite->addTestSuite('CacheTest'); - $suite->addTestSuite('IoTest'); - $suite->addTestSuite('ServiceTest'); - $suite->addTestSuite('ApiBatchRequestTest'); - $suite->addTestSuite('ApiClientTest'); - $suite->addTestSuite('ApiModelTest'); - $suite->addTestSuite('ApiOAuth2Test'); - $suite->addTestSuite('ApiCacheParserTest'); - $suite->addTestSuite('ApiMediaFileUploadTest'); - $suite->addTestSuite('RestTest'); - $suite->addTestSuite('RequestTest'); - $suite->addTestSuite('ServiceTest'); - $suite->addTestSuite('URITemplateTest'); - return $suite; - } -} diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index cf0482943..53233bab8 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class IoTest extends BaseTest { diff --git a/tests/general/RequestTest.php b/tests/general/RequestTest.php index e75d963c1..68476cdb1 100644 --- a/tests/general/RequestTest.php +++ b/tests/general/RequestTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class RequestTest extends BaseTest { public function testRequestParameters() @@ -33,13 +30,13 @@ public function testRequestParameters() $request->setQueryParam("hi", "there"); $this->assertEquals($url2, $request->getUrl()); $this->assertEquals("Google_Client", $request->getExpectedClass()); - + $urlPath = "/foo/bar"; $request = new Google_Http_Request($urlPath); $this->assertEquals($urlPath, $request->getUrl()); $request->setBaseComponent("http://example.com"); $this->assertEquals("http://example.com" . $urlPath, $request->getUrl()); - + $url3a = 'http://localhost:8080/foo/bar'; $url3b = 'foo=a&foo=b&wowee=oh+my'; $url3c = 'foo=a&foo=b&wowee=oh+my&hi=there'; @@ -48,7 +45,7 @@ public function testRequestParameters() $request->maybeMoveParametersToBody(); $this->assertEquals($url3a, $request->getUrl()); $this->assertEquals($url3c, $request->getPostBody()); - + $url4 = 'http://localhost:8080/upload/foo/bar?foo=a&foo=b&wowee=oh+my&hi=there'; $request = new Google_Http_Request($url); $this->assertEquals(2, count($request->getQueryParams())); @@ -57,7 +54,7 @@ public function testRequestParameters() $request->setBaseComponent($base . '/upload'); $this->assertEquals($url4, $request->getUrl()); } - + public function testGzipSupport() { $url = 'http://localhost:8080/foo/bar?foo=a&foo=b&wowee=oh+my'; diff --git a/tests/general/RestTest.php b/tests/general/RestTest.php index 8474619f9..60ddf75ec 100644 --- a/tests/general/RestTest.php +++ b/tests/general/RestTest.php @@ -15,16 +15,13 @@ * limitations under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class RestTest extends BaseTest { /** * @var Google_Http_REST $rest */ private $rest; - + public function setUp() { $this->rest = new Google_Http_REST(); @@ -80,7 +77,7 @@ public function testCreateRequestUri() { $basePath = "http://localhost"; $restPath = "/plus/{u}"; - + // Test Path $params = array(); $params['u']['type'] = 'string'; @@ -108,7 +105,7 @@ public function testCreateRequestUri() $params['u']['location'] = 'query'; $value = $this->rest->createRequestUri($basePath, '/plus', $params); $this->assertEquals("http://localhost/plus?u=true", $value); - + // Test encoding $params = array(); $params['u']['type'] = 'string'; @@ -117,7 +114,7 @@ public function testCreateRequestUri() $value = $this->rest->createRequestUri($basePath, '/plus', $params); $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } - + /** * @expectedException Google_Service_Exception */ @@ -135,7 +132,7 @@ public function testBadErrorFormatting() ); Google_Http_Rest::decodeHttpResponse($request); } - + /** * @expectedException Google_Service_Exception */ diff --git a/tests/general/ServiceTest.php b/tests/general/ServiceTest.php index be40cc01a..9aedc4f82 100644 --- a/tests/general/ServiceTest.php +++ b/tests/general/ServiceTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class TestModel extends Google_Model { public function mapTypes($array) diff --git a/tests/general/URITemplateTest.php b/tests/general/URITemplateTest.php index 0a7c48054..a525f1216 100644 --- a/tests/general/URITemplateTest.php +++ b/tests/general/URITemplateTest.php @@ -18,9 +18,6 @@ * under the License. */ -require_once 'BaseTest.php'; -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class URITemplateTest extends BaseTest { public function testLevelOne() diff --git a/tests/pagespeed/AllPageSpeedTests.php b/tests/pagespeed/AllPageSpeedTests.php deleted file mode 100644 index c30d9d7cb..000000000 --- a/tests/pagespeed/AllPageSpeedTests.php +++ /dev/null @@ -1,32 +0,0 @@ -setName('Google PageSpeed API tests'); - $suite->addTestSuite('PageSpeedTest'); - return $suite; - } -} diff --git a/tests/pagespeed/PageSpeedTest.php b/tests/pagespeed/PageSpeedTest.php index 3874c94dd..507fbf494 100644 --- a/tests/pagespeed/PageSpeedTest.php +++ b/tests/pagespeed/PageSpeedTest.php @@ -15,8 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class PageSpeedTest extends BaseTest { public $service; diff --git a/tests/phpunit.xml b/tests/phpunit.xml deleted file mode 100644 index 21b5cd8e0..000000000 --- a/tests/phpunit.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - ./ - - - diff --git a/tests/plus/PlusTest.php b/tests/plus/PlusTest.php index 707c5b908..98f042e48 100644 --- a/tests/plus/PlusTest.php +++ b/tests/plus/PlusTest.php @@ -15,19 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - -class AllPlusTests extends PHPUnit_Framework_TestSuite -{ - public static function suite() - { - $suite = new PHPUnit_Framework_TestSuite(); - $suite->setName('Google Plus API tests'); - $suite->addTestSuite('PlusTest'); - return $suite; - } -} - class PlusTest extends BaseTest { /** @var Google_PlusService */ @@ -53,10 +40,10 @@ public function testListActivities() $this->checkToken(); $activities = $this->plus->activities ->listActivities("118051310819094153327", "public"); - + $this->assertArrayHasKey('kind', $activities); $this->assertGreaterThan(0, count($activities)); - + // Test a variety of access methods. $this->assertItem($activities['items'][0]); $this->assertItem($activities[0]); @@ -68,7 +55,7 @@ public function testListActivities() // Test deeper type transformations $this->assertGreaterThan(0, strlen($activities[0]->actor->displayName)); } - + public function assertItem($item) { // assertArrayHasKey uses array_key_exists, which is not great: diff --git a/tests/tasks/AllTasksTests.php b/tests/tasks/AllTasksTests.php deleted file mode 100644 index 6c9fa9739..000000000 --- a/tests/tasks/AllTasksTests.php +++ /dev/null @@ -1,32 +0,0 @@ -setName('Google Tasks API tests'); - $suite->addTestSuite('TasksTest'); - return $suite; - } -} diff --git a/tests/tasks/TasksTest.php b/tests/tasks/TasksTest.php index c66a333e8..a0ba58ef4 100644 --- a/tests/tasks/TasksTest.php +++ b/tests/tasks/TasksTest.php @@ -15,8 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class TasksTest extends BaseTest { /** @var Google_TasksService */ @@ -27,7 +25,7 @@ public function __construct() parent::__construct(); $this->taskService = new Google_Service_Tasks($this->getClient()); } - + public function testInsertTask() { if (!$this->checkToken()) { diff --git a/tests/urlshortener/AllUrlShortenerTests.php b/tests/urlshortener/AllUrlShortenerTests.php deleted file mode 100644 index 23daf6435..000000000 --- a/tests/urlshortener/AllUrlShortenerTests.php +++ /dev/null @@ -1,32 +0,0 @@ -setName('Google UrlShortener API tests'); - $suite->addTestSuite('UrlShortenerTests'); - return $suite; - } -} diff --git a/tests/urlshortener/UrlShortenerTests.php b/tests/urlshortener/UrlShortenerTests.php index b4ae7a34c..08422bc77 100644 --- a/tests/urlshortener/UrlShortenerTests.php +++ b/tests/urlshortener/UrlShortenerTests.php @@ -15,8 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - class UrlShortenerTests extends BaseTest { /** @var Google_UrlshortenerService */ diff --git a/tests/youtube/YouTubeTest.php b/tests/youtube/YouTubeTest.php index 373f812f1..252ef0476 100644 --- a/tests/youtube/YouTubeTest.php +++ b/tests/youtube/YouTubeTest.php @@ -15,19 +15,6 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); - -class YouTubeTests extends PHPUnit_Framework_TestSuite -{ - public static function suite() - { - $suite = new PHPUnit_Framework_TestSuite(); - $suite->setName('Google YouTube API tests'); - $suite->addTestSuite('YouTubeTest'); - return $suite; - } -} - class YouTubeTest extends BaseTest { /** @var Google_PlusService */ From 4a0aa72a6414535c1725ba4df0f53f8a6af534fb Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sun, 16 Nov 2014 16:41:17 -0500 Subject: [PATCH 0540/1274] Add a PSR-3 style logging system that should be compatible with PHP 5.2+. More information on PSR-3 here: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md This logging system roughly complies with the requirements for PSR-3, but does not actually extend/implement/reuse any of the PSR namespaces, classes or interfaces. This decision was made in an effort to maintain compatibility with PHP 5.2+ and to be consistent with the current style of this library. Four new logging classes are available out of the box: 1. Google_Logger_Abstract: This abstract class implements most of the functionality required for a logger. The only detail that is left to the concrete classes is the `write()` method. If you want to create a custom logger, you should extend this class. 2. Google_Logger_Null: This logger simply discards all messages. You can use this logger to ensure that no messages will be logged. This is the default logger. 3. Google_Logger_File: This logger will write messages to just about any writable stream resource you give it. 4. Google_Logger_Psr: This logger exists to allow for interoperability with other PSR-3 logging systems. All you need to do is provide this logger with and instance of another logger and you're done. Below is an example of integrating with Monolog: ~~~php use Monolog\Logger; use Monolog\Handler\StreamHandler; $monolog = new Logger('Google API'); $monolog->pushHandler(new StreamHandler('php://output', Logger::INFO)); $config = new Google_Config(); $config->setLoggerClass('Google_Logger_Psr'); $client = new Google_Client($config); $client->getLogger()->setLogger($monolog); // Logs: [2014-11-16 16:28:21] Google API.INFO: Service Call {"service":"books"... $service = new Google_Service_Books($client); $service->volumes->listVolumes('Henry David Thoreau'); // Logs: [2014-11-16 16:28:21] Google API.ERROR: My custom error $client->getLogger()->error('My custom error'); ~~~ --- src/Google/Auth/AppIdentity.php | 3 + src/Google/Auth/OAuth2.php | 23 +- src/Google/Auth/Simple.php | 3 + src/Google/Cache/Apc.php | 45 ++- src/Google/Cache/File.php | 64 +++- src/Google/Cache/Memcache.php | 60 +++- src/Google/Client.php | 27 ++ src/Google/Config.php | 37 +++ src/Google/Http/Batch.php | 2 +- src/Google/Http/MediaFileUpload.php | 7 +- src/Google/Http/REST.php | 17 +- src/Google/IO/Curl.php | 28 +- src/Google/IO/Stream.php | 41 ++- src/Google/Logger/Abstract.php | 406 +++++++++++++++++++++++++ src/Google/Logger/Exception.php | 22 ++ src/Google/Logger/File.php | 156 ++++++++++ src/Google/Logger/Null.php | 41 +++ src/Google/Logger/Psr.php | 91 ++++++ src/Google/Service/Resource.php | 37 +++ tests/general/LoggerTest.php | 445 ++++++++++++++++++++++++++++ tests/general/RestTest.php | 6 +- 21 files changed, 1513 insertions(+), 48 deletions(-) create mode 100644 src/Google/Logger/Abstract.php create mode 100644 src/Google/Logger/Exception.php create mode 100644 src/Google/Logger/File.php create mode 100644 src/Google/Logger/Null.php create mode 100644 src/Google/Logger/Psr.php create mode 100644 tests/general/LoggerTest.php diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 94b832e3e..ff96a9d4a 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -92,6 +92,9 @@ public function sign(Google_Http_Request $request) // No token, so nothing to do. return $request; } + + $this->client->getLogger()->debug('App Identity authentication'); + // Add the OAuth2 header to the request $request->setRequestHeaders( array('Authorization' => 'Bearer ' . $this->token['access_token']) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index f717c4ccb..58e86e5fb 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -233,17 +233,21 @@ public function sign(Google_Http_Request $request) if ($this->assertionCredentials) { $this->refreshTokenWithAssertion(); } else { + $this->client->getLogger()->debug('OAuth2 access token expired'); if (! array_key_exists('refresh_token', $this->token)) { - throw new Google_Auth_Exception( - "The OAuth 2.0 access token has expired," - ." and a refresh token is not available. Refresh tokens" - ." are not returned for responses that were auto-approved." - ); + $error = "The OAuth 2.0 access token has expired," + ." and a refresh token is not available. Refresh tokens" + ." are not returned for responses that were auto-approved."; + + $this->client->getLogger()->error($error); + throw new Google_Auth_Exception($error); } $this->refreshToken($this->token['refresh_token']); } } + $this->client->getLogger()->debug('OAuth2 authentication'); + // Add the OAuth2 header to the request $request->setRequestHeaders( array('Authorization' => 'Bearer ' . $this->token['access_token']) @@ -295,6 +299,7 @@ public function refreshTokenWithAssertion($assertionCredentials = null) } } + $this->client->getLogger()->debug('OAuth2 access token expired'); $this->refreshTokenRequest( array( 'grant_type' => 'assertion', @@ -314,6 +319,14 @@ public function refreshTokenWithAssertion($assertionCredentials = null) private function refreshTokenRequest($params) { + if (isset($params['assertion'])) { + $this->client->getLogger()->info( + 'OAuth2 access token refresh with Signed JWT assertion grants.' + ); + } else { + $this->client->getLogger()->info('OAuth2 access token refresh'); + } + $http = new Google_Http_Request( self::OAUTH2_TOKEN_URI, 'POST', diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index e80ca6a7d..3c85ae33c 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -54,6 +54,9 @@ public function sign(Google_Http_Request $request) { $key = $this->client->getClassConfig($this, 'developer_key'); if ($key) { + $this->client->getLogger()->debug( + 'Simple API Access developer key authentication' + ); $request->setQueryParam('key', $key); } return $request; diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php index 953f20236..7c9a0754d 100644 --- a/src/Google/Cache/Apc.php +++ b/src/Google/Cache/Apc.php @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** @@ -27,11 +27,21 @@ */ class Google_Cache_Apc extends Google_Cache_Abstract { + /** + * @var Google_Client the current client + */ + private $client; + public function __construct(Google_Client $client) { if (! function_exists('apc_add') ) { - throw new Google_Cache_Exception("Apc functions not available"); + $error = "Apc functions not available"; + + $client->getLogger()->error($error); + throw new Google_Cache_Exception($error); } + + $this->client = $client; } /** @@ -41,12 +51,26 @@ public function get($key, $expiration = false) { $ret = apc_fetch($key); if ($ret === false) { + $this->client->getLogger()->debug( + 'APC cache miss', + array('key' => $key) + ); return false; } if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { + $this->client->getLogger()->debug( + 'APC cache miss (expired)', + array('key' => $key, 'var' => $ret) + ); $this->delete($key); return false; } + + $this->client->getLogger()->debug( + 'APC cache hit', + array('key' => $key, 'var' => $ret) + ); + return $ret['data']; } @@ -55,10 +79,21 @@ public function get($key, $expiration = false) */ public function set($key, $value) { - $rc = apc_store($key, array('time' => time(), 'data' => $value)); + $var = array('time' => time(), 'data' => $value); + $rc = apc_store($key, $var); + if ($rc == false) { + $this->client->getLogger()->error( + 'APC cache set failed', + array('key' => $key, 'var' => $var) + ); throw new Google_Cache_Exception("Couldn't store data"); } + + $this->client->getLogger()->debug( + 'APC cache set', + array('key' => $key, 'var' => $var) + ); } /** @@ -67,6 +102,10 @@ public function set($key, $value) */ public function delete($key) { + $this->client->getLogger()->debug( + 'APC cache delete', + array('key' => $key) + ); apc_delete($key); } } diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 6fddbe3fa..e4c99ad0c 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -31,23 +31,37 @@ class Google_Cache_File extends Google_Cache_Abstract private $path; private $fh; + /** + * @var Google_Client the current client + */ + private $client; + public function __construct(Google_Client $client) { - $this->path = $client->getClassConfig($this, 'directory'); + $this->client = $client; + $this->path = $this->client->getClassConfig($this, 'directory'); } - + public function get($key, $expiration = false) { $storageFile = $this->getCacheFile($key); $data = false; - + if (!file_exists($storageFile)) { + $this->client->getLogger()->debug( + 'File cache miss', + array('key' => $key, 'file' => $storageFile) + ); return false; } if ($expiration) { $mtime = filemtime($storageFile); if ((time() - $mtime) >= $expiration) { + $this->client->getLogger()->debug( + 'File cache miss (expired)', + array('key' => $key, 'file' => $storageFile) + ); $this->delete($key); return false; } @@ -59,6 +73,11 @@ public function get($key, $expiration = false) $this->unlock($storageFile); } + $this->client->getLogger()->debug( + 'File cache hit', + array('key' => $key, 'file' => $storageFile, 'var' => $data) + ); + return $data; } @@ -71,6 +90,16 @@ public function set($key, $value) $data = serialize($value); $result = fwrite($this->fh, $data); $this->unlock($storageFile); + + $this->client->getLogger()->debug( + 'File cache set', + array('key' => $key, 'file' => $storageFile, 'var' => $value) + ); + } else { + $this->client->getLogger()->notice( + 'File cache set failed', + array('key' => $key, 'file' => $storageFile) + ); } } @@ -78,10 +107,19 @@ public function delete($key) { $file = $this->getCacheFile($key); if (file_exists($file) && !unlink($file)) { + $this->client->getLogger()->error( + 'File cache delete failed', + array('key' => $key, 'file' => $file) + ); throw new Google_Cache_Exception("Cache file could not be deleted"); } + + $this->client->getLogger()->debug( + 'File cache delete', + array('key' => $key, 'file' => $file) + ); } - + private function getWriteableCacheFile($file) { return $this->getCacheFile($file, true); @@ -91,7 +129,7 @@ private function getCacheFile($file, $forWrite = false) { return $this->getCacheDir($file, $forWrite) . '/' . md5($file); } - + private function getCacheDir($file, $forWrite) { // use the first 2 characters of the hash as a directory prefix @@ -100,26 +138,34 @@ private function getCacheDir($file, $forWrite) $storageDir = $this->path . '/' . substr(md5($file), 0, 2); if ($forWrite && ! is_dir($storageDir)) { if (! mkdir($storageDir, 0755, true)) { + $this->client->getLogger()->error( + 'File cache creation failed', + array('dir' => $storageDir) + ); throw new Google_Cache_Exception("Could not create storage directory: $storageDir"); } } return $storageDir; } - + private function acquireReadLock($storageFile) { return $this->acquireLock(LOCK_SH, $storageFile); } - + private function acquireWriteLock($storageFile) { $rc = $this->acquireLock(LOCK_EX, $storageFile); if (!$rc) { + $this->client->getLogger()->notice( + 'File cache write lock failed', + array('file' => $storageFile) + ); $this->delete($storageFile); } return $rc; } - + private function acquireLock($type, $storageFile) { $mode = $type == LOCK_EX ? "w" : "r"; @@ -134,7 +180,7 @@ private function acquireLock($type, $storageFile) } return true; } - + public function unlock($storageFile) { if ($this->fh) { diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index e4a4713ec..c9fb4bc75 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -34,11 +34,22 @@ class Google_Cache_Memcache extends Google_Cache_Abstract private $host; private $port; + /** + * @var Google_Client the current client + */ + private $client; + public function __construct(Google_Client $client) { if (!function_exists('memcache_connect') && !class_exists("Memcached")) { - throw new Google_Cache_Exception("Memcache functions not available"); + $error = "Memcache functions not available"; + + $client->getLogger()->error($error); + throw new Google_Cache_Exception($error); } + + $this->client = $client; + if ($client->isAppEngine()) { // No credentials needed for GAE. $this->mc = new Memcached(); @@ -47,11 +58,14 @@ public function __construct(Google_Client $client) $this->host = $client->getClassConfig($this, 'host'); $this->port = $client->getClassConfig($this, 'port'); if (empty($this->host) || (empty($this->port) && (string) $this->port != "0")) { - throw new Google_Cache_Exception("You need to supply a valid memcache host and port"); + $error = "You need to supply a valid memcache host and port"; + + $client->getLogger()->error($error); + throw new Google_Cache_Exception($error); } } } - + /** * @inheritDoc */ @@ -65,12 +79,26 @@ public function get($key, $expiration = false) $ret = memcache_get($this->connection, $key); } if ($ret === false) { + $this->client->getLogger()->debug( + 'Memcache cache miss', + array('key' => $key) + ); return false; } if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { + $this->client->getLogger()->debug( + 'Memcache cache miss (expired)', + array('key' => $key, 'var' => $ret) + ); $this->delete($key); return false; } + + $this->client->getLogger()->debug( + 'Memcache cache hit', + array('key' => $key, 'var' => $ret) + ); + return $ret['data']; } @@ -93,8 +121,18 @@ public function set($key, $value) $rc = memcache_set($this->connection, $key, $data, false); } if ($rc == false) { + $this->client->getLogger()->error( + 'Memcache cache set failed', + array('key' => $key, 'var' => $data) + ); + throw new Google_Cache_Exception("Couldn't store data in cache"); } + + $this->client->getLogger()->debug( + 'Memcache cache set', + array('key' => $key, 'var' => $data) + ); } /** @@ -109,11 +147,16 @@ public function delete($key) } else { memcache_delete($this->connection, $key, 0); } + + $this->client->getLogger()->debug( + 'Memcache cache delete', + array('key' => $key) + ); } /** - * Lazy initialiser for memcache connection. Uses pconnect for to take - * advantage of the persistence pool where possible. + * Lazy initialiser for memcache connection. Uses pconnect for to take + * advantage of the persistence pool where possible. */ private function connect() { @@ -128,9 +171,12 @@ private function connect() } else { $this->connection = memcache_pconnect($this->host, $this->port); } - + if (! $this->connection) { - throw new Google_Cache_Exception("Couldn't connect to memcache server"); + $error = "Couldn't connect to memcache server"; + + $this->client->getLogger()->error($error); + throw new Google_Cache_Exception($error); } } } diff --git a/src/Google/Client.php b/src/Google/Client.php index a17a89c67..d1cfaafd6 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -48,6 +48,11 @@ class Google_Client */ private $config; + /** + * @var Google_Logger_Abstract $logger + */ + private $logger; + /** * @var boolean $deferExecution */ @@ -215,6 +220,16 @@ public function setCache(Google_Cache_Abstract $cache) $this->cache = $cache; } + /** + * Set the Logger object + * @param Google_Logger_Abstract $logger + */ + public function setLogger(Google_Logger_Abstract $logger) + { + $this->config->setLoggerClass(get_class($logger)); + $this->logger = $logger; + } + /** * Construct the OAuth 2.0 authorization request URI. * @return string @@ -598,6 +613,18 @@ public function getCache() return $this->cache; } + /** + * @return Google_Logger_Abstract Logger implementation + */ + public function getLogger() + { + if (!isset($this->logger)) { + $class = $this->config->getLoggerClass(); + $this->logger = new $class($this); + } + return $this->logger; + } + /** * Retrieve custom configuration for a specific class. * @param $class string|object - class or instance of class to retrieve diff --git a/src/Google/Config.php b/src/Google/Config.php index fe21e07ca..555f9ce1e 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -44,6 +44,7 @@ public function __construct($ini_file_location = null) 'auth_class' => 'Google_Auth_OAuth2', 'io_class' => self::USE_AUTO_IO_SELECTION, 'cache_class' => 'Google_Cache_File', + 'logger_class' => 'Google_Logger_Null', // Don't change these unless you're working against a special development // or testing environment. @@ -54,6 +55,17 @@ public function __construct($ini_file_location = null) 'Google_IO_Abstract' => array( 'request_timeout_seconds' => 100, ), + 'Google_Logger_Abstract' => array( + 'level' => 'debug', + 'log_format' => "[%datetime%] %level%: %message% %context%\n", + 'date_format' => 'd/M/Y:H:i:s O', + 'allow_newlines' => true + ), + 'Google_Logger_File' => array( + 'file' => 'php://stdout', + 'mode' => 0640, + 'lock' => false, + ), 'Google_Http_Request' => array( // Disable the use of gzip on calls if set to true. Defaults to false. 'disable_gzip' => self::GZIP_ENABLED, @@ -148,6 +160,15 @@ public function getCacheClass() return $this->configuration['cache_class']; } + /** + * Return the configured logger class. + * @return string + */ + public function getLoggerClass() + { + return $this->configuration['logger_class']; + } + /** * Return the configured Auth class. * @return string @@ -205,6 +226,22 @@ public function setCacheClass($class) $this->configuration['cache_class'] = $class; } + /** + * Set the logger class. + * + * @param $class string the class name to set + */ + public function setLoggerClass($class) + { + $prev = $this->configuration['logger_class']; + if (!isset($this->configuration['classes'][$class]) && + isset($this->configuration['classes'][$prev])) { + $this->configuration['classes'][$class] = + $this->configuration['classes'][$prev]; + } + $this->configuration['logger_class'] = $class; + } + /** * Return the configured IO class. * diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 03aceb381..543ac579b 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -123,7 +123,7 @@ public function parseResponse(Google_Http_Request $response) } try { - $response = Google_Http_REST::decodeHttpResponse($response); + $response = Google_Http_REST::decodeHttpResponse($response, $this->client); $responses[$key] = $response; } catch (Google_Service_Exception $e) { // Store the exception as the response, so successful responses diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 3df859e97..87f376293 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -178,7 +178,7 @@ public function nextChunk($chunk = false) // No problems, but upload not complete. return false; } else { - return Google_Http_REST::decodeHttpResponse($response); + return Google_Http_REST::decodeHttpResponse($response, $this->client); } } @@ -292,6 +292,9 @@ private function getResumeUri() } $message = rtrim($message, ';'); } - throw new Google_Exception("Failed to start the resumable upload (HTTP {$message})"); + + $error = "Failed to start the resumable upload (HTTP {$message})"; + $this->client->getLogger()->error($error); + throw new Google_Exception($error); } } diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 1cf09a141..6ac9f078e 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -38,7 +38,7 @@ public static function execute(Google_Client $client, Google_Http_Request $req) { $httpRequest = $client->getIo()->makeRequest($req); $httpRequest->setExpectedClass($req->getExpectedClass()); - return self::decodeHttpResponse($httpRequest); + return self::decodeHttpResponse($httpRequest, $client); } /** @@ -46,9 +46,10 @@ public static function execute(Google_Client $client, Google_Http_Request $req) * @static * @throws Google_Service_Exception * @param Google_Http_Request $response The http response to be decoded. + * @param Google_Client $client * @return mixed|null */ - public static function decodeHttpResponse($response) + public static function decodeHttpResponse($response, Google_Client $client = null) { $code = $response->getResponseHttpCode(); $body = $response->getResponseBody(); @@ -73,6 +74,12 @@ public static function decodeHttpResponse($response) $errors = $decoded['error']['errors']; } + if ($client) { + $client->getLogger()->error( + $err, + array('code' => $code, 'errors' => $errors) + ); + } throw new Google_Service_Exception($err, $code, null, $errors); } @@ -80,7 +87,11 @@ public static function decodeHttpResponse($response) if ($code != '204') { $decoded = json_decode($body, true); if ($decoded === null || $decoded === "") { - throw new Google_Service_Exception("Invalid json in service response: $body"); + $error = "Invalid json in service response: $body"; + if ($client) { + $client->getLogger()->error($error); + } + throw new Google_Service_Exception($error); } if ($response->getExpectedClass()) { diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 6e8854b68..8bd673869 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -53,9 +53,8 @@ public function executeRequest(Google_Http_Request $request) } curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders); } - curl_setopt($curl, CURLOPT_URL, $request->getUrl()); - + curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod()); curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent()); @@ -78,16 +77,37 @@ public function executeRequest(Google_Http_Request $request) curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacerts.pem'); } + $this->client->getLogger()->debug( + 'cURL request', + array( + 'url' => $request->getUrl(), + 'method' => $request->getRequestMethod(), + 'headers' => $requestHeaders, + 'body' => $request->getPostBody() + ) + ); + $response = curl_exec($curl); if ($response === false) { - throw new Google_IO_Exception(curl_error($curl)); + $error = curl_error($curl); + + $this->client->getLogger()->error('cURL ' . $error); + throw new Google_IO_Exception($error); } $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); list($responseHeaders, $responseBody) = $this->parseHttpResponse($response, $headerSize); - $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); + $this->client->getLogger()->debug( + 'cURL response', + array( + 'code' => $responseCode, + 'headers' => $responseHeaders, + 'body' => $responseBody, + ) + ); + return array($responseBody, $responseHeaders, $responseCode); } diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index d270b2d35..35f9d903c 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -97,6 +97,16 @@ public function executeRequest(Google_Http_Request $request) $url = self::ZLIB . $url; } + $this->client->getLogger()->debug( + 'Stream request', + array( + 'url' => $url, + 'method' => $request->getRequestMethod(), + 'headers' => $requestHeaders, + 'body' => $request->getPostBody() + ) + ); + // We are trapping any thrown errors in this method only and // throwing an exception. $this->trappedErrorNumber = null; @@ -109,13 +119,13 @@ public function executeRequest(Google_Http_Request $request) // END - error trap. if ($this->trappedErrorNumber) { - throw new Google_IO_Exception( - sprintf( - "HTTP Error: Unable to connect: '%s'", - $this->trappedErrorString - ), - $this->trappedErrorNumber + $error = sprintf( + "HTTP Error: Unable to connect: '%s'", + $this->trappedErrorString ); + + $this->client->getLogger()->error('Stream ' . $error); + throw new Google_IO_Exception($error, $this->trappedErrorNumber); } $response_data = false; @@ -132,17 +142,26 @@ public function executeRequest(Google_Http_Request $request) } if (false === $response_data) { - throw new Google_IO_Exception( - sprintf( - "HTTP Error: Unable to connect: '%s'", - $respHttpCode - ), + $error = sprintf( + "HTTP Error: Unable to connect: '%s'", $respHttpCode ); + + $this->client->getLogger()->error('Stream ' . $error); + throw new Google_IO_Exception($error, $respHttpCode); } $responseHeaders = $this->getHttpResponseHeaders($http_response_header); + $this->client->getLogger()->debug( + 'Stream response', + array( + 'code' => $respHttpCode, + 'headers' => $responseHeaders, + 'body' => $response_data, + ) + ); + return array($response_data, $responseHeaders, $respHttpCode); } diff --git a/src/Google/Logger/Abstract.php b/src/Google/Logger/Abstract.php new file mode 100644 index 000000000..571918c58 --- /dev/null +++ b/src/Google/Logger/Abstract.php @@ -0,0 +1,406 @@ + 600, + self::ALERT => 550, + self::CRITICAL => 500, + self::ERROR => 400, + self::WARNING => 300, + self::NOTICE => 250, + self::INFO => 200, + self::DEBUG => 100, + ); + + /** + * @var integer $level The minimum logging level + */ + protected $level = self::DEBUG; + + /** + * @var string $logFormat The current log format + */ + protected $logFormat = self::DEFAULT_LOG_FORMAT; + /** + * @var string $dateFormat The current date format + */ + protected $dateFormat = self::DEFAULT_DATE_FORMAT; + + /** + * @var boolean $allowNewLines If newlines are allowed + */ + protected $allowNewLines = false; + + /** + * @param Google_Client $client The current Google client + */ + public function __construct(Google_Client $client) + { + $this->setLevel( + $client->getClassConfig('Google_Logger_Abstract', 'level') + ); + + $format = $client->getClassConfig('Google_Logger_Abstract', 'log_format'); + $this->logFormat = $format ? $format : self::DEFAULT_LOG_FORMAT; + + $format = $client->getClassConfig('Google_Logger_Abstract', 'date_format'); + $this->dateFormat = $format ? $format : self::DEFAULT_DATE_FORMAT; + + $this->allowNewLines = (bool) $client->getClassConfig( + 'Google_Logger_Abstract', + 'allow_newlines' + ); + } + + /** + * Sets the minimum logging level that this logger handles. + * + * @param integer $level + */ + public function setLevel($level) + { + $this->level = $this->normalizeLevel($level); + } + + /** + * Checks if the logger should handle messages at the provided level. + * + * @param integer $level + * @return boolean + */ + public function shouldHandle($level) + { + return $this->normalizeLevel($level) >= $this->level; + } + + /** + * System is unusable. + * + * @param string $message The log message + * @param array $context The log context + */ + public function emergency($message, array $context = array()) + { + $this->log(self::EMERGENCY, $message, $context); + } + + /** + * Action must be taken immediately. + * + * Example: Entire website down, database unavailable, etc. This should + * trigger the SMS alerts and wake you up. + * + * @param string $message The log message + * @param array $context The log context + */ + public function alert($message, array $context = array()) + { + $this->log(self::ALERT, $message, $context); + } + + /** + * Critical conditions. + * + * Example: Application component unavailable, unexpected exception. + * + * @param string $message The log message + * @param array $context The log context + */ + public function critical($message, array $context = array()) + { + $this->log(self::CRITICAL, $message, $context); + } + + /** + * Runtime errors that do not require immediate action but should typically + * be logged and monitored. + * + * @param string $message The log message + * @param array $context The log context + */ + public function error($message, array $context = array()) + { + $this->log(self::ERROR, $message, $context); + } + + /** + * Exceptional occurrences that are not errors. + * + * Example: Use of deprecated APIs, poor use of an API, undesirable things + * that are not necessarily wrong. + * + * @param string $message The log message + * @param array $context The log context + */ + public function warning($message, array $context = array()) + { + $this->log(self::WARNING, $message, $context); + } + + /** + * Normal but significant events. + * + * @param string $message The log message + * @param array $context The log context + */ + public function notice($message, array $context = array()) + { + $this->log(self::NOTICE, $message, $context); + } + + /** + * Interesting events. + * + * Example: User logs in, SQL logs. + * + * @param string $message The log message + * @param array $context The log context + */ + public function info($message, array $context = array()) + { + $this->log(self::INFO, $message, $context); + } + + /** + * Detailed debug information. + * + * @param string $message The log message + * @param array $context The log context + */ + public function debug($message, array $context = array()) + { + $this->log(self::DEBUG, $message, $context); + } + + /** + * Logs with an arbitrary level. + * + * @param mixed $level The log level + * @param string $message The log message + * @param array $context The log context + */ + public function log($level, $message, array $context = array()) + { + if (!$this->shouldHandle($level)) { + return false; + } + + $levelName = is_int($level) ? array_search($level, self::$levels) : $level; + $message = $this->interpolate( + array( + 'message' => $message, + 'context' => $context, + 'level' => strtoupper($levelName), + 'datetime' => new DateTime(), + ) + ); + + $this->write($message); + } + + /** + * Interpolates log variables into the defined log format. + * + * @param array $variables The log variables. + * @return string + */ + protected function interpolate(array $variables = array()) + { + $template = $this->logFormat; + + if (!$variables['context']) { + $template = str_replace('%context%', '', $template); + unset($variables['context']); + } else { + $this->reverseJsonInContext($variables['context']); + } + + foreach ($variables as $key => $value) { + if (strpos($template, '%'. $key .'%') !== false) { + $template = str_replace( + '%' . $key . '%', + $this->export($value), + $template + ); + } + } + + return $template; + } + + /** + * Reverses JSON encoded PHP arrays and objects so that they log better. + * + * @param array $context The log context + */ + protected function reverseJsonInContext(array &$context) + { + if (!$context) { + return; + } + + foreach ($context as $key => $val) { + if (!$val || !is_string($val) || !($val[0] == '{' || $val[0] == '[')) { + continue; + } + + $json = @json_decode($val); + if (is_object($json) || is_array($json)) { + $context[$key] = $json; + } + } + } + + /** + * Exports a PHP value for logging to a string. + * + * @param mixed $value The value to + */ + protected function export($value) + { + if (is_string($value)) { + if ($this->allowNewLines) { + return $value; + } + + return preg_replace('/[\r\n]+/', ' ', $value); + } + + if (is_resource($value)) { + return sprintf( + 'resource(%d) of type (%s)', + $value, + get_resource_type($value) + ); + } + + if ($value instanceof DateTime) { + return $value->format($this->dateFormat); + } + + if (version_compare(PHP_VERSION, '5.4.0', '>=')) { + $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; + + if ($this->allowNewLines) { + $options |= JSON_PRETTY_PRINT; + } + + return @json_encode($value, $options); + } + + return str_replace('\\/', '/', @json_encode($value)); + } + + /** + * Converts a given log level to the integer form. + * + * @param mixed $level The logging level + * @return integer $level The normalized level + * @throws Google_Logger_Exception If $level is invalid + */ + protected function normalizeLevel($level) + { + if (is_int($level) && array_search($level, self::$levels) !== false) { + return $level; + } + + if (is_string($level) && isset(self::$levels[$level])) { + return self::$levels[$level]; + } + + throw new Google_Logger_Exception( + sprintf("Unknown LogLevel: '%s'", $level) + ); + } + + /** + * Writes a message to the current log implementation. + * + * @param string $message The message + */ + abstract protected function write($message); +} diff --git a/src/Google/Logger/Exception.php b/src/Google/Logger/Exception.php new file mode 100644 index 000000000..7c828e65a --- /dev/null +++ b/src/Google/Logger/Exception.php @@ -0,0 +1,22 @@ +getClassConfig('Google_Logger_File', 'file'); + if (!is_string($file) && !is_resource($file)) { + throw new Google_Logger_Exception( + 'File logger requires a filename or a valid file pointer' + ); + } + + $mode = $client->getClassConfig('Google_Logger_File', 'mode'); + if (!$mode) { + $this->mode = $mode; + } + + $this->lock = (bool) $client->getClassConfig('Google_Logger_File', 'lock'); + $this->file = $file; + } + + /** + * {@inheritdoc} + */ + protected function write($message) + { + if (is_string($this->file)) { + $this->open(); + } elseif (!is_resource($this->file)) { + throw new Google_Logger_Exception('File pointer is no longer available'); + } + + if ($this->lock) { + flock($this->file, LOCK_EX); + } + + fwrite($this->file, (string) $message); + + if ($this->lock) { + flock($this->file, LOCK_UN); + } + } + + /** + * Opens the log for writing. + * + * @return resource + */ + private function open() + { + // Used for trapping `fopen()` errors. + $this->trappedErrorNumber = null; + $this->trappedErrorString = null; + + $old = set_error_handler(array($this, 'trapError')); + + $needsChmod = !file_exists($this->file); + $fh = fopen($this->file, 'a'); + + restore_error_handler(); + + // Handles trapped `fopen()` errors. + if ($this->trappedErrorNumber) { + throw new Google_Logger_Exception( + sprintf( + "Logger Error: '%s'", + $this->trappedErrorString + ), + $this->trappedErrorNumber + ); + } + + if ($needsChmod) { + @chmod($this->file, $this->mode & ~umask()); + } + + return $this->file = $fh; + } + + /** + * Closes the log stream resource. + */ + private function close() + { + if (is_resource($this->file)) { + fclose($this->file); + } + } + + /** + * Traps `fopen()` errors. + * + * @param integer $errno The error number + * @param string $errstr The error string + */ + private function trapError($errno, $errstr) + { + $this->trappedErrorNumber = $errno; + $this->trappedErrorString = $errstr; + } + + public function __destruct() + { + $this->close(); + } +} diff --git a/src/Google/Logger/Null.php b/src/Google/Logger/Null.php new file mode 100644 index 000000000..9c5f64a23 --- /dev/null +++ b/src/Google/Logger/Null.php @@ -0,0 +1,41 @@ +setLogger($logger); + } + } + + /** + * Sets the PSR-3 logger where logging will be delegated. + * + * NOTE: The `$logger` should technically implement + * `Psr\Log\LoggerInterface`, but we don't explicitly require this so that + * we can be compatible with PHP 5.2. + * + * @param Psr\Log\LoggerInterface $logger The PSR-3 logger + */ + public function setLogger(/*Psr\Log\LoggerInterface*/ $logger) + { + $this->logger = $logger; + } + + /** + * {@inheritdoc} + */ + public function shouldHandle($level) + { + return isset($this->logger) && parent::shouldHandle($level); + } + + /** + * {@inheritdoc} + */ + public function log($level, $message, array $context = array()) + { + if (!$this->shouldHandle($level)) { + return false; + } + + if ($context) { + $this->reverseJsonInContext($context); + } + + $levelName = is_int($level) ? array_search($level, self::$levels) : $level; + $this->logger->log($levelName, $message, $context); + } + + /** + * {@inheritdoc} + */ + protected function write($message, array $context = array()) + { + } +} diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 1940f9951..29bc06e96 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -79,6 +79,15 @@ public function __construct($service, $serviceName, $resourceName, $resource) public function call($name, $arguments, $expected_class = null) { if (! isset($this->methods[$name])) { + $this->client->getLogger()->error( + 'Service method unknown', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name + ) + ); + throw new Google_Exception( "Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()" @@ -124,6 +133,15 @@ public function call($name, $arguments, $expected_class = null) ); foreach ($parameters as $key => $val) { if ($key != 'postBody' && ! isset($method['parameters'][$key])) { + $this->client->getLogger()->error( + 'Service parameter unknown', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name, + 'parameter' => $key + ) + ); throw new Google_Exception("($name) unknown parameter: '$key'"); } } @@ -133,6 +151,15 @@ public function call($name, $arguments, $expected_class = null) $paramSpec['required'] && ! isset($parameters[$paramName]) ) { + $this->client->getLogger()->error( + 'Service parameter missing', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name, + 'parameter' => $paramName + ) + ); throw new Google_Exception("($name) missing required param: '$paramName'"); } if (isset($parameters[$paramName])) { @@ -148,6 +175,16 @@ public function call($name, $arguments, $expected_class = null) $servicePath = $this->service->servicePath; + $this->client->getLogger()->info( + 'Service Call', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name, + 'arguments' => $parameters, + ) + ); + $url = Google_Http_REST::createRequestUri( $servicePath, $method['path'], diff --git a/tests/general/LoggerTest.php b/tests/general/LoggerTest.php new file mode 100644 index 000000000..cfdf8d4f8 --- /dev/null +++ b/tests/general/LoggerTest.php @@ -0,0 +1,445 @@ +client = new Google_Client(); + } + + /** + * @dataProvider logLevelsProvider + */ + public function testPsrMethods($key) + { + $message = 'This is my log message'; + $context = array('some'=>'context'); + + $logger = $this->getLogger('log'); + $logger->expects($this->once()) + ->method('log') + ->with($key, $message, $context); + + call_user_func(array($logger, $key), $message, $context); + } + + /** + * @dataProvider invalidLevelsProvider + * @expectedException Google_Logger_Exception + * @expectedExceptionMessage Unknown LogLevel + */ + public function testSetLabelWithBadValue($level) + { + $this->getLogger()->setLevel($level); + } + + /** + * @dataProvider invalidLevelsProvider + * @expectedException Google_Logger_Exception + * @expectedExceptionMessage Unknown LogLevel + */ + public function testSetLabelWithBadValueFromConfig($level) + { + $this->client->setClassConfig('Google_Logger_Abstract', 'level', $level); + $this->getLogger(); + } + + /** + * @dataProvider filterProvider + */ + public function testShouldHandle($setLevel, $handleLevel, $expected) + { + $logger = $this->getLogger(); + $logger->setLevel($setLevel); + + $this->assertEquals($expected, $logger->shouldHandle($handleLevel)); + } + + /** + * @dataProvider filterProvider + */ + public function testShouldHandleFromConfig($config, $handleLevel, $expected) + { + $this->client->setClassConfig('Google_Logger_Abstract', 'level', $config); + $logger = $this->getLogger(); + + $this->assertEquals($expected, $logger->shouldHandle($handleLevel)); + } + + /** + * @dataProvider filterProvider + */ + public function testShouldWrite($setLevel, $logLevel, $expected) + { + $logger = $this->getLogger(); + $logger->expects($expected ? $this->once() : $this->never()) + ->method('write'); + + $logger->setLevel($setLevel); + $logger->log($logLevel, 'This is my log message'); + } + + /** + * @dataProvider filterProvider + */ + public function testShouldWriteFromConfig($config, $logLevel, $expected) + { + $this->client->setClassConfig('Google_Logger_Abstract', 'level', $config); + $logger = $this->getLogger(); + $logger->expects($expected ? $this->once() : $this->never()) + ->method('write'); + + $logger->log($logLevel, 'This is my log message'); + } + + /** + * @dataProvider formattingProvider + */ + public function testMessageFormatting( + $format, + $date_format, + $newlines, + $message, + $context, + $expected + ) { + $this->client->setClassConfig( + 'Google_Logger_Abstract', + 'log_format', + $format + ); + $this->client->setClassConfig( + 'Google_Logger_Abstract', + 'date_format', + $date_format + ); + $this->client->setClassConfig( + 'Google_Logger_Abstract', + 'allow_newlines', + $newlines + ); + + $logger = $this->getLogger(); + $logger->expects($this->once()) + ->method('write') + ->with($expected); + + $logger->log('debug', $message, $context); + } + + public function testNullLoggerNeverWrites() + { + $logger = $this->getLogger('write', 'Google_Logger_Null'); + $logger->expects($this->never()) + ->method('write'); + + $logger->log( + 'emergency', + 'Should not be written', + array('same' => 'for this') + ); + } + + public function testNullLoggerNeverHandles() + { + $logger = $this->getLogger('write', 'Google_Logger_Null'); + $this->assertFalse($logger->shouldHandle('emergency')); + $this->assertFalse($logger->shouldHandle(600)); + } + + public function testPsrNeverWrites() + { + $logger = $this->getLogger('write', 'Google_Logger_Psr'); + $logger->expects($this->never()) + ->method('write'); + + $logger->log( + 'emergency', + 'Should not be written', + array('same' => 'for this') + ); + + $logger->setLogger($this->getLogger()); + + $logger->log( + 'emergency', + 'Should not be written', + array('same' => 'for this') + ); + } + + public function testPsrNeverShouldHandleWhenNoLoggerSet() + { + $logger = $this->getLogger(null, 'Google_Logger_Psr'); + $this->assertFalse($logger->shouldHandle('emergency')); + $this->assertFalse($logger->shouldHandle(600)); + } + + public function testPsrShouldHandleWhenLoggerSet() + { + $logger = $this->getLogger(null, 'Google_Logger_Psr'); + $logger->setLogger($this->getLogger()); + + $this->assertTrue($logger->shouldHandle('emergency')); + $this->assertTrue($logger->shouldHandle(600)); + } + + /** + * @dataProvider logLevelsProvider + */ + public function testPsrDelegates($key) + { + $message = 'This is my log message'; + $context = array('some'=>'context'); + + $delegate = $this->getLogger('log'); + $delegate->expects($this->once()) + ->method('log') + ->with($key, $message, $context); + + $logger = $this->getLogger(null, 'Google_Logger_Psr'); + $logger->setLogger($delegate); + + call_user_func(array($logger, $key), $message, $context); + } + + /** + * @expectedException Google_Logger_Exception + * @expectedExceptionMessage File logger requires a filename or a valid file pointer + */ + public function testLoggerWithBadFileType() + { + $this->client->setClassConfig('Google_Logger_File', 'file', false); + $logger = $this->getLogger(null, 'Google_Logger_File'); + } + + /** + * @expectedException Google_Logger_Exception + * @expectedExceptionMessage Logger Error + */ + public function testLoggerWithBadFileValue() + { + $this->client->setClassConfig('Google_Logger_File', 'file', 'not://exist'); + + $logger = $this->getLogger(null, 'Google_Logger_File'); + $logger->log('emergency', 'will fail'); + } + + /** + * @expectedException Google_Logger_Exception + * @expectedExceptionMessage File pointer is no longer available + */ + public function testLoggerWithClosedFileReference() + { + $fp = fopen('php://memory', 'r+'); + + $this->client->setClassConfig('Google_Logger_File', 'file', $fp); + $logger = $this->getLogger(null, 'Google_Logger_File'); + + fclose($fp); + + $logger->log('emergency', 'will fail'); + } + + public function testLoggerWithFileReference() + { + $fp = fopen('php://memory', 'r+'); + + $this->client->setClassConfig('Google_Logger_File', 'file', $fp); + $this->client->setClassConfig( + 'Google_Logger_Abstract', + 'log_format', + "%level% - %message%\n" + ); + + $logger = $this->getLogger(null, 'Google_Logger_File'); + $logger->log('emergency', 'test one'); + $logger->log('alert', 'test two'); + $logger->log(500, 'test three'); + + rewind($fp); + $this->assertEquals( + "EMERGENCY - test one\nALERT - test two\nCRITICAL - test three\n", + stream_get_contents($fp) + ); + + fclose($fp); + } + + public function testLoggerWithFile() + { + $this->expectOutputString( + "EMERGENCY - test one\nALERT - test two\nCRITICAL - test three\n" + ); + + $this->client->setClassConfig( + 'Google_Logger_File', + 'file', + 'php://output' + ); + $this->client->setClassConfig( + 'Google_Logger_Abstract', + 'log_format', + "%level% - %message%\n" + ); + + $logger = $this->getLogger(null, 'Google_Logger_File'); + $logger->log('emergency', 'test one'); + $logger->log('alert', 'test two'); + $logger->log(500, 'test three'); + } + + public function formattingProvider() + { + return array( + 'no interpolation' => array( + 'this is my format', + 'd/M/Y:H:i:s O', + false, + 'you wont see this', + array('or' => 'this'), + 'this is my format', + ), + 'only message interpolation' => array( + 'my format: %message%', + 'd/M/Y:H:i:s O', + false, + 'you will see this', + array('but not' => 'this'), + 'my format: you will see this', + ), + 'message and level interpolation' => array( + '%level% - my format: %message%', + 'd/M/Y:H:i:s O', + false, + 'you will see this', + array('but not' => 'this'), + 'DEBUG - my format: you will see this', + ), + 'message, level, datetime interpolation' => array( + '[%datetime%] %level% - my format: %message%', + '\T\I\M\E', + false, + 'you will see this', + array('but not' => 'this'), + '[TIME] DEBUG - my format: you will see this', + ), + 'message, level, datetime, context interpolation' => array( + '[%datetime%] %level% - my format: %message%: %context%', + '\T\I\M\E', + false, + 'you will see this', + array('and' => 'this'), + '[TIME] DEBUG - my format: you will see this: {"and":"this"}', + ), + 'reverse JSON in context' => array( + '%context%', + 'd/M/Y:H:i:s O', + false, + 'you will not see this', + array('reverse' => json_encode(array('this' => 'is cool'))), + '{"reverse":{"this":"is cool"}}', + ), + 'remove newlines in message' => array( + '%message%', + 'd/M/Y:H:i:s O', + false, + "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", + array('you wont' => 'see this'), + 'This is my newlines message', + ), + 'allow newlines in message' => array( + '%message%', + 'd/M/Y:H:i:s O', + true, + "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", + array('you wont' => 'see this'), + "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", + ), + 'allow newlines in JSON' => array( + '%context%', + 'd/M/Y:H:i:s O', + true, + "wont see this", + array('you will' => 'see this'), + version_compare(PHP_VERSION, '5.4.0', '>=') ? + "{\n \"you will\": \"see this\"\n}" : + '{"you will":"see this"}' + ), + ); + } + + public function filterProvider() + { + return array( + array('debug', 'debug', true), + array(100, 'debug', true), + array('info', 'debug', false), + array('info', 'notice', true), + array('notice', 'notice', true), + array(250, 'notice', true), + array('notice', 'debug', false), + array(250, 'alert', true), + array('error', 'error', true), + array('error', 'warning', false), + array('error', 'critical', true), + array(600, 'alert', false), + array(600, 'critical', false), + array(600, 'emergency', true), + array('emergency', 'emergency', true), + ); + } + + public function invalidLevelsProvider() + { + return array( + array('100'), + array('DEBUG'), + array(100.0), + array(''), + array(0), + ); + } + + public function logLevelsProvider() + { + return array( + array('emergency', 600), + array('alert', 550), + array('critical', 500), + array('error', 400), + array('warning', 300), + array('notice', 250), + array('info', 200), + array('debug', 100), + ); + } + + private function getLogger($methods = null, $type = 'Google_Logger_Abstract') + { + return $this->getMockBuilder($type) + ->setMethods((array) $methods) + ->setConstructorArgs(array($this->client)) + ->getMockForAbstractClass(); + } +} diff --git a/tests/general/RestTest.php b/tests/general/RestTest.php index 60ddf75ec..caed12953 100644 --- a/tests/general/RestTest.php +++ b/tests/general/RestTest.php @@ -33,7 +33,7 @@ public function testDecodeResponse() $client = $this->getClient(); $response = new Google_Http_Request($url); $response->setResponseHttpCode(204); - $decoded = $this->rest->decodeHttpResponse($response); + $decoded = $this->rest->decodeHttpResponse($response, $client); $this->assertEquals(null, $decoded); @@ -43,7 +43,7 @@ public function testDecodeResponse() $response->setResponseBody('{"a": 1}'); $response->setResponseHttpCode($code); - $decoded = $this->rest->decodeHttpResponse($response); + $decoded = $this->rest->decodeHttpResponse($response, $client); $this->assertEquals(array("a" => 1), $decoded); } @@ -52,7 +52,7 @@ public function testDecodeResponse() $error = ""; try { - $this->rest->decodeHttpResponse($response); + $this->rest->decodeHttpResponse($response, $client); } catch (Exception $e) { $error = $e->getMessage(); From a98cb88e6611241c8a1d1909b19c2fba9ea7c86c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 24 Nov 2014 19:36:05 -0500 Subject: [PATCH 0541/1274] Fix line too long. --- src/Google/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index d1cfaafd6..d293f4598 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -92,7 +92,8 @@ public function __construct($config = null) } if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { - if (function_exists('curl_version') && function_exists('curl_exec') && !$this->isAppEngine()) { + if (function_exists('curl_version') && function_exists('curl_exec') + && !$this->isAppEngine()) { $config->setIoClass("Google_IO_Curl"); } else { $config->setIoClass("Google_IO_Stream"); From 58c4a6cebcf6e7105c3243fb9c37b85e00bb4fb6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 25 Nov 2014 02:20:05 -0800 Subject: [PATCH 0542/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index e445efcff..498e9ff26 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -9661,9 +9661,11 @@ class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection protected $internal_gapi_mappings = array( ); public $etag; + public $eventId; protected $itemsType = 'Google_Service_YouTube_VideoRating'; protected $itemsDataType = 'array'; public $kind; + public $visitorId; public function setEtag($etag) @@ -9674,6 +9676,14 @@ 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; @@ -9690,6 +9700,14 @@ public function getKind() { return $this->kind; } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } } class Google_Service_YouTube_VideoListResponse extends Google_Collection From 4ed4a1f05c596828e87e0753747163adfa8aaebc Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 25 Nov 2014 12:30:58 +0000 Subject: [PATCH 0543/1274] Bump version to 1.1.2 --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index d293f4598..1de6c59be 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -26,7 +26,7 @@ */ class Google_Client { - const LIBVER = "1.1.1"; + const LIBVER = "1.1.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From d1b80a373ca21b3d51f0db4b6a70c48edcf65901 Mon Sep 17 00:00:00 2001 From: Gabriel PREDA Date: Thu, 27 Nov 2014 16:58:20 +0200 Subject: [PATCH 0544/1274] + Delete expired tokens from cache and generate new ones, fixes #377 --- src/Google/Auth/AppIdentity.php | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index ff96a9d4a..4287a21c9 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -58,18 +58,33 @@ public function authenticateForScope($scopes) $this->token = $this->client->getCache()->get($cacheKey); if (!$this->token) { - $this->token = AppIdentityService::getAccessToken($scopes); - if ($this->token) { - $this->client->getCache()->set( - $cacheKey, - $this->token - ); - } + $this->retrieveToken($scopes, $cacheKey); + } + else if ($this->token['expiration_time'] < time()) { + $this->client->getCache()->delete($cacheKey); + $this->retrieveToken($scopes, $cacheKey); } + $this->tokenScopes = $scopes; return $this->token; } + /** + * Retrieve a new access token and store it in cache + * @param mixed $scopes + * @param string $cacheKey + */ + private function retrieveToken($scopes, $cacheKey) + { + $this->token = AppIdentityService::getAccessToken($scopes); + if ($this->token) { + $this->client->getCache()->set( + $cacheKey, + $this->token + ); + } + } + /** * Perform an authenticated / signed apiHttpRequest. * This function takes the apiHttpRequest, calls apiAuth->sign on it From 391b9166635c1eb4509be99f76a5a31181bc028e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 28 Nov 2014 02:23:03 -0800 Subject: [PATCH 0545/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index e416d37ed..68af188ce 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -461,6 +461,7 @@ class Google_Service_Container_Cluster extends Google_Model protected $masterAuthType = 'Google_Service_Container_MasterAuth'; protected $masterAuthDataType = ''; public $name; + public $network; protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; protected $nodeConfigDataType = ''; public $nodeRoutingPrefixSize; @@ -527,6 +528,14 @@ public function getName() { return $this->name; } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig) { $this->nodeConfig = $nodeConfig; @@ -738,6 +747,7 @@ class Google_Service_Container_Operation extends Google_Model public $errorMessage; public $name; public $operationType; + public $selfLink; public $status; public $target; public $zone; @@ -767,6 +777,14 @@ public function getOperationType() { return $this->operationType; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setStatus($status) { $this->status = $status; From 5f56c06d800d5f775f509d2e1124eb53e41fa297 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 28 Nov 2014 02:23:03 -0800 Subject: [PATCH 0546/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 8ad5c0b9e..ceddd960d 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -2880,19 +2880,6 @@ public function getVisibility() class Google_Service_Calendar_EventAttachment extends Google_Model { - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } } class Google_Service_Calendar_EventAttendee extends Google_Model From 9e4fdcb9f17de2539a69e39fab0ef0b4b7d1bc91 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 28 Nov 2014 02:23:03 -0800 Subject: [PATCH 0547/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 162 +++++++++++------------- 1 file changed, 71 insertions(+), 91 deletions(-) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 49c681e7c..e3de6a3d3 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -280,23 +280,28 @@ public function query($ids, $startDate, $endDate, $metrics, $optParams = array() -class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReport extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'outputs'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; - protected $itemsDataType = 'array'; + public $id; public $kind; + protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportOutputs'; + protected $outputsDataType = 'array'; + public $reportId; + protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTimeSpan'; + protected $timeSpanDataType = ''; + public $timeUpdated; - public function setItems($items) + public function setId($id) { - $this->items = $items; + $this->id = $id; } - public function getItems() + public function getId() { - return $this->items; + return $this->id; } public function setKind($kind) { @@ -306,29 +311,51 @@ public function getKind() { return $this->kind; } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } + public function setReportId($reportId) + { + $this->reportId = $reportId; + } + public function getReportId() + { + return $this->reportId; + } + public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTimeSpan $timeSpan) + { + $this->timeSpan = $timeSpan; + } + public function getTimeSpan() + { + return $this->timeSpan; + } + public function setTimeUpdated($timeUpdated) + { + $this->timeUpdated = $timeUpdated; + } + public function getTimeUpdated() + { + return $this->timeUpdated; + } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReportDefinition extends Google_Model { - protected $collection_key = 'defaultOutput'; protected $internal_gapi_mappings = array( ); - protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; - protected $defaultOutputDataType = 'array'; public $id; + public $kind; public $name; public $status; public $type; - public function setDefaultOutput($defaultOutput) - { - $this->defaultOutput = $defaultOutput; - } - public function getDefaultOutput() - { - return $this->defaultOutput; - } public function setId($id) { $this->id = $id; @@ -337,6 +364,14 @@ 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; @@ -363,29 +398,31 @@ public function getType() } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model +class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $format; - public $type; + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinition'; + protected $itemsDataType = 'array'; + public $kind; - public function setFormat($format) + public function setItems($items) { - $this->format = $format; + $this->items = $items; } - public function getFormat() + public function getItems() { - return $this->format; + return $this->items; } - public function setType($type) + public function setKind($kind) { - $this->type = $type; + $this->kind = $kind; } - public function getType() + public function getKind() { - return $this->type; + return $this->kind; } } @@ -394,7 +431,7 @@ class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReport'; protected $itemsDataType = 'array'; public $kind; @@ -417,64 +454,7 @@ public function getKind() } } -class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection -{ - protected $collection_key = 'outputs'; - protected $internal_gapi_mappings = array( - "reportId" => "report_id", - ); - public $id; - protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; - protected $outputsDataType = 'array'; - public $reportId; - protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan'; - protected $timeSpanDataType = ''; - public $timeUpdated; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } - public function getReportId() - { - return $this->reportId; - } - public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } - public function setTimeUpdated($timeUpdated) - { - $this->timeUpdated = $timeUpdated; - } - public function getTimeUpdated() - { - return $this->timeUpdated; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model +class Google_Service_YouTubeAnalytics_BatchReportOutputs extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -509,7 +489,7 @@ public function getType() } } -class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model +class Google_Service_YouTubeAnalytics_BatchReportTimeSpan extends Google_Model { protected $internal_gapi_mappings = array( ); From 285e370a5ab584ed05cf68b8066dfde4006aa1b3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 2 Dec 2014 02:27:19 -0800 Subject: [PATCH 0548/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 670d1f896..b309f1def 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -1615,6 +1615,46 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'start' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/start', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'stop' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -4290,6 +4330,38 @@ public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $params = array_merge($params, $optParams); return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); } + + /** + * Starts an instance (instances.start) + * + * @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 start. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function start($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('start', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Stops an instance (instances.stop) + * + * @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 start. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function stop($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params), "Google_Service_Compute_Operation"); + } } /** From e2ab3314814a3eff4889c62884a2dffad10ca4c7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 2 Dec 2014 02:27:19 -0800 Subject: [PATCH 0549/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 3073b0e05..653720e32 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -837,6 +837,7 @@ class Google_Service_Reseller_Subscription extends Google_Model { protected $internal_gapi_mappings = array( ); + public $billingMethod; public $creationTime; public $customerId; public $kind; @@ -857,6 +858,14 @@ class Google_Service_Reseller_Subscription extends Google_Model protected $trialSettingsDataType = ''; + public function setBillingMethod($billingMethod) + { + $this->billingMethod = $billingMethod; + } + public function getBillingMethod() + { + return $this->billingMethod; + } public function setCreationTime($creationTime) { $this->creationTime = $creationTime; From 11443be508bf91a2bb95940df4b2c78fc3164837 Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Tue, 2 Dec 2014 15:11:57 -0500 Subject: [PATCH 0550/1274] Refs #369: Fix header handling during cache revalidation. --- src/Google/IO/Abstract.php | 46 +++++++++++++++--------- tests/general/IoTest.php | 74 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 17 deletions(-) diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index fc8edbe87..15cc327ec 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -30,6 +30,17 @@ abstract class Google_IO_Abstract "HTTP/1.1 200 Connection established\r\n\r\n", ); private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null); + private static $HOP_BY_HOP = array( + 'connection' => true, + 'keep-alive' => true, + 'proxy-authenticate' => true, + 'proxy-authorization' => true, + 'te' => true, + 'trailers' => true, + 'transfer-encoding' => true, + 'upgrade' => true + ); + /** @var Google_Client */ protected $client; @@ -55,13 +66,13 @@ abstract public function executeRequest(Google_Http_Request $request); * @param $options */ abstract public function setOptions($options); - + /** * Set the maximum request time in seconds. * @param $timeout in seconds */ abstract public function setTimeout($timeout); - + /** * Get the maximum request time in seconds. * @return timeout in seconds @@ -96,7 +107,7 @@ public function setCachedRequest(Google_Http_Request $request) return false; } - + /** * Execute an HTTP Request * @@ -128,7 +139,7 @@ public function makeRequest(Google_Http_Request $request) } if (!isset($responseHeaders['Date']) && !isset($responseHeaders['date'])) { - $responseHeaders['Date'] = date("r"); + $responseHeaders['date'] = date("r"); } $request->setResponseHttpCode($respHttpCode); @@ -221,23 +232,24 @@ protected function checkMustRevalidateCachedRequest($cached, $request) */ protected function updateCachedRequest($cached, $responseHeaders) { - if (isset($responseHeaders['connection'])) { - $hopByHop = array_merge( - self::$HOP_BY_HOP, - explode( - ',', - $responseHeaders['connection'] + $hopByHop = self::$HOP_BY_HOP; + if (!empty($responseHeaders['connection'])) { + $connectionHeaders = array_map( + 'strtolower', + array_filter( + array_map('trim', explode(',', $responseHeaders['connection'])) ) ); + $hopByHop += array_fill_keys($connectionHeaders, true); + } - $endToEnd = array(); - foreach ($hopByHop as $key) { - if (isset($responseHeaders[$key])) { - $endToEnd[$key] = $responseHeaders[$key]; - } + $endToEnd = array(); + foreach ($responseHeaders as $key => $val) { + if (empty($hopByHop[$key])) { + $endToEnd[$key] = $val; } - $cached->setResponseHeaders($endToEnd); } + $cached->setResponseHeaders($endToEnd); } /** @@ -320,7 +332,7 @@ private function parseArrayHeaders($rawHeaders) // Times will have colons in - so we just want the first match. $header_parts = explode(': ', $header, 2); if (count($header_parts) == 2) { - $headers[$header_parts[0]] = $header_parts[1]; + $headers[strtolower($header_parts[0])] = $header_parts[1]; } } diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index 53233bab8..212219e98 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -134,6 +134,80 @@ public function testCurlInvalidRequest() $this->invalidRequest($io); } + public function testCacheRevalidate() + { + $client = $this->getClient(); + + $req = new Google_Http_Request('/test', 'GET'); + $req->setRequestHeaders(array('Accept' => '*/*')); + $req->setResponseBody('{"a": "foo"}'); + $req->setResponseHttpCode(200); + $req->setResponseHeaders( + array( + 'cache-control' => 'private', + 'etag' => '"this-is-an-etag"', + 'expires' => '-1', + 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', + 'content-type' => 'application/json; charset=UTF-8', + ) + ); + + $io = $this->getMockBuilder('Google_IO_Abstract') + ->setConstructorArgs(array($client)) + ->setMethods( + array( + 'getCachedRequest', + 'checkMustRevalidateCachedRequest' + ) + ) + ->getMockForAbstractClass(); + + $io->expects($this->once()) + ->method('getCachedRequest') + ->will($this->returnValue($req)); + + $io->expects($this->once()) + ->method('checkMustRevalidateCachedRequest') + ->will($this->returnValue(true)); + + $io->expects($this->once()) + ->method('executeRequest') + ->will( + $this->returnValue( + array( + '{"a": "foo"}', + array( + 'te' => 'gzip', + 'connection' => 'Keep-Alive, Foo, Bar', + 'foo' => '123', + 'keep-alive' => 'timeout=30', + 'cache-control' => 'private', + 'eTag' => '"this-is-a-new-etag"', + "expires" => 'Sun, 22 Jan 2022 09:00:56 GMT', + 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', + 'content-type' => 'application/json; charset=UTF-8', + ), + 304 + ) + ) + ); + + $res = $io->makeRequest(new Google_Http_Request('/test', 'GET')); + + $this->assertEquals('{"a": "foo"}', $res->getResponseBody()); + $this->assertEquals(200, $res->getResponseHttpCode()); + $this->assertEquals( + array( + 'cache-control' => 'private', + 'etag' => '"this-is-a-new-etag"', + "expires" => 'Sun, 22 Jan 2022 09:00:56 GMT', + 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', + 'content-type' => 'application/json; charset=UTF-8', + ), + $res->getResponseHeaders() + ); + } + // Asserting Functions public function timeoutChecker($io) From aaaa179d037b7832d62ed7d6bcef967da3afebbc Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Mon, 1 Dec 2014 12:58:26 -0500 Subject: [PATCH 0551/1274] Add support for retrying failed requests with exponential backoff. This feature can be enabled by setting the `retries` configuration for the `Google_Task_Runner` class: ~~~php $client = new Google_Client(); $client->setClassConfig('Google_Task_Runner', 'retries', 5); ~~~ Once `retries` is configured, the following error types will be retried by default: * Errors with a `500` or a `503` HTTP status code. * Errors with a `rateLimitExceeded` or a `userRateLimitExceeded` reason type. * cURL errors: * `CURLE_COULDNT_RESOLVE_HOST` * `CURLE_COULDNT_CONNECT` * `CURLE_OPERATION_TIMEOUTED` * `CURLE_SSL_CONNECT_ERROR` * `CURLE_GOT_NOTHING` These error types can be configured using the `retry_map` configurations for the `Google_IO_Exception` and `Google_Service_Exception` classes. The retry map is an associative array which maps errors types to the number of times each error can be retried (-1 can be used to retry an error indefinitely). For example: ~~~php $client = new Google_Client(); $client->setClassConfig( 'Google_Service_Exception', 'retry_map', array( // Don't retry 500 errors '500' => 0, // Retry 503 errors once '503' => 1, // Retry rate limit errors until we hit `retries` 'rateLimitExceeded' => -1, 'userRateLimitExceeded' => -1 ) ); ~~~ For convenience, `Google_Config` provides three constants for configuring retry limits: `Google_Config::TASK_RETRY_NEVER`, `Google_Config::TASK_RETRY_ONCE`, and `Google_Config::TASK_RETRY_ALWAYS`. --- src/Google/Config.php | 33 ++ src/Google/Http/REST.php | 32 +- src/Google/IO/Curl.php | 4 +- src/Google/IO/Exception.php | 47 +- src/Google/Service/Exception.php | 56 ++- src/Google/Task/Exception.php | 22 + src/Google/Task/Retryable.php | 34 ++ src/Google/Task/Runner.php | 255 +++++++++++ tests/general/TaskTest.php | 754 +++++++++++++++++++++++++++++++ 9 files changed, 1230 insertions(+), 7 deletions(-) create mode 100644 src/Google/Task/Exception.php create mode 100644 src/Google/Task/Retryable.php create mode 100644 src/Google/Task/Runner.php create mode 100644 tests/general/TaskTest.php diff --git a/src/Google/Config.php b/src/Google/Config.php index 555f9ce1e..ec551baa0 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -25,6 +25,9 @@ class Google_Config const GZIP_UPLOADS_ENABLED = true; const GZIP_UPLOADS_DISABLED = false; const USE_AUTO_IO_SELECTION = "auto"; + const TASK_RETRY_NEVER = 0; + const TASK_RETRY_ONCE = 1; + const TASK_RETRY_ALWAYS = -1; protected $configuration; /** @@ -101,6 +104,36 @@ public function __construct($ini_file_location = null) 'federated_signon_certs_url' => 'https://www.googleapis.com/oauth2/v1/certs', ), + 'Google_Task_Runner' => array( + // Delays are specified in seconds + 'initial_delay' => 1, + 'max_delay' => 60, + // Base number for exponential backoff + 'factor' => 2, + // A random number between -jitter and jitter will be added to the + // factor on each iteration to allow for better distribution of + // retries. + 'jitter' => .5, + // Maximum number of retries allowed + 'retries' => 0 + ), + 'Google_Service_Exception' => array( + 'retry_map' => array( + '500' => self::TASK_RETRY_ALWAYS, + '503' => self::TASK_RETRY_ALWAYS, + 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS + ) + ), + 'Google_IO_Exception' => array( + 'retry_map' => array( + CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, + CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, + CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, + CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, + CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS + ) + ), // Set a default directory for the file cache. 'Google_Cache_File' => array( 'directory' => sys_get_temp_dir() . '/Google_Client' diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 6ac9f078e..7f579ac7a 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -26,7 +26,8 @@ class Google_Http_REST { /** - * Executes a Google_Http_Request + * Executes a Google_Http_Request and (if applicable) automatically retries + * when errors occur. * * @param Google_Client $client * @param Google_Http_Request $req @@ -35,6 +36,27 @@ class Google_Http_REST * invalid or malformed post body, invalid url) */ public static function execute(Google_Client $client, Google_Http_Request $req) + { + $runner = new Google_Task_Runner( + $client, + sprintf('%s %s', $req->getRequestMethod(), $req->getUrl()), + array(get_class(), 'doExecute'), + array($client, $req) + ); + + return $runner->run(); + } + + /** + * Executes a Google_Http_Request + * + * @param Google_Client $client + * @param Google_Http_Request $req + * @return array decoded result + * @throws Google_Service_Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function doExecute(Google_Client $client, Google_Http_Request $req) { $httpRequest = $client->getIo()->makeRequest($req); $httpRequest->setExpectedClass($req->getExpectedClass()); @@ -74,13 +96,19 @@ public static function decodeHttpResponse($response, Google_Client $client = nul $errors = $decoded['error']['errors']; } + $map = null; if ($client) { $client->getLogger()->error( $err, array('code' => $code, 'errors' => $errors) ); + + $map = $client->getClassConfig( + 'Google_Service_Exception', + 'retry_map' + ); } - throw new Google_Service_Exception($err, $code, null, $errors); + throw new Google_Service_Exception($err, $code, null, $errors, $map); } // Only attempt to decode the response, if the response code wasn't (204) 'no content' diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 8bd673869..84e106ba4 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -90,9 +90,11 @@ public function executeRequest(Google_Http_Request $request) $response = curl_exec($curl); if ($response === false) { $error = curl_error($curl); + $code = curl_errno($curl); + $map = $this->client->getClassConfig('Google_IO_Exception', 'retry_map'); $this->client->getLogger()->error('cURL ' . $error); - throw new Google_IO_Exception($error); + throw new Google_IO_Exception($error, $code, null, $map); } $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php index 98e9d255d..81925d066 100644 --- a/src/Google/IO/Exception.php +++ b/src/Google/IO/Exception.php @@ -17,6 +17,51 @@ require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); -class Google_IO_Exception extends Google_Exception +class Google_IO_Exception extends Google_Exception implements Google_Task_Retryable { + /** + * @var array $retryMap Map of errors with retry counts. + */ + private $retryMap = array(); + + /** + * Creates a new IO exception with an optional retry map. + * + * @param string $message + * @param int $code + * @param Exception|null $previous + * @param array|null $retryMap Map of errors with retry counts. + */ + public function __construct( + $message, + $code = 0, + Exception $previous = null, + array $retryMap = null + ) { + if (version_compare(PHP_VERSION, '5.3.0') >= 0) { + parent::__construct($message, $code, $previous); + } else { + parent::__construct($message, $code); + } + + if (is_array($retryMap)) { + $this->retryMap = $retryMap; + } + } + + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries() + { + if (isset($this->retryMap[$this->code])) { + return $this->retryMap[$this->code]; + } + + return 0; + } } diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index 65c1fccc6..41fbf480d 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -1,8 +1,23 @@ = 0) { parent::__construct($message, $code, $previous); @@ -31,6 +54,10 @@ public function __construct( } $this->errors = $errors; + + if (is_array($retryMap)) { + $this->retryMap = $retryMap; + } } /** @@ -50,4 +77,27 @@ public function getErrors() { return $this->errors; } + + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries() + { + if (isset($this->retryMap[$this->code])) { + return $this->retryMap[$this->code]; + } + + $errors = $this->getErrors(); + + if (!empty($errors) && isset($errors[0]['reason']) && + isset($this->retryMap[$errors[0]['reason']])) { + return $this->retryMap[$errors[0]['reason']]; + } + + return 0; + } } diff --git a/src/Google/Task/Exception.php b/src/Google/Task/Exception.php new file mode 100644 index 000000000..963877111 --- /dev/null +++ b/src/Google/Task/Exception.php @@ -0,0 +1,22 @@ +getClassConfig('Google_Task_Runner'); + + if (isset($config['initial_delay'])) { + if ($config['initial_delay'] < 0) { + throw new Google_Task_Exception( + 'Task configuration `initial_delay` must not be negative.' + ); + } + + $this->delay = $config['initial_delay']; + } + + if (isset($config['max_delay'])) { + if ($config['max_delay'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `max_delay` must be greater than 0.' + ); + } + + $this->maxDelay = $config['max_delay']; + } + + if (isset($config['factor'])) { + if ($config['factor'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `factor` must be greater than 0.' + ); + } + + $this->factor = $config['factor']; + } + + if (isset($config['jitter'])) { + if ($config['jitter'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `jitter` must be greater than 0.' + ); + } + + $this->jitter = $config['jitter']; + } + + if (isset($config['retries'])) { + if ($config['retries'] < 0) { + throw new Google_Task_Exception( + 'Task configuration `retries` must not be negative.' + ); + } + $this->maxAttempts += $config['retries']; + } + + if (!is_callable($action)) { + throw new Google_Task_Exception( + 'Task argument `$action` must be a valid callable.' + ); + } + + $this->name = $name; + $this->client = $client; + $this->action = $action; + $this->arguments = $arguments; + } + + /** + * Checks if a retry can be attempted. + * + * @return boolean + */ + public function canAttmpt() + { + return $this->attempts < $this->maxAttempts; + } + + /** + * Runs the task and (if applicable) automatically retries when errors occur. + * + * @return mixed + * @throws Google_Task_Retryable on failure when no retries are available. + */ + public function run() + { + while ($this->attempt()) { + try { + return call_user_func_array($this->action, $this->arguments); + } catch (Google_Task_Retryable $exception) { + $allowedRetries = $exception->allowedRetries(); + + if (!$this->canAttmpt() || !$allowedRetries) { + throw $exception; + } + + if ($allowedRetries > 0) { + $this->maxAttempts = min( + $this->maxAttempts, + $this->attempts + $allowedRetries + ); + } + } + } + } + + /** + * Runs a task once, if possible. This is useful for bypassing the `run()` + * loop. + * + * NOTE: If this is not the first attempt, this function will sleep in + * accordance to the backoff configurations before running the task. + * + * @return boolean + */ + public function attempt() + { + if (!$this->canAttmpt()) { + return false; + } + + if ($this->attempts > 0) { + $this->backOff(); + } + + $this->attempts++; + return true; + } + + /** + * Sleeps in accordance to the backoff configurations. + */ + private function backOff() + { + $delay = $this->getDelay(); + + $this->client->getLogger()->debug( + 'Retrying task with backoff', + array( + 'request' => $this->name, + 'retry' => $this->attempts, + 'backoff_seconds' => $delay + ) + ); + + usleep($delay * 1000000); + } + + /** + * Gets the delay (in seconds) for the current backoff period. + * + * @return float + */ + private function getDelay() + { + $jitter = $this->getJitter(); + $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter); + + return $this->delay = min($this->maxDelay, $this->delay * $factor); + } + + /** + * Gets the current jitter (random number between -$this->jitter and + * $this->jitter). + * + * @return float + */ + private function getJitter() + { + return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; + } +} diff --git a/tests/general/TaskTest.php b/tests/general/TaskTest.php new file mode 100644 index 000000000..2ef419bd0 --- /dev/null +++ b/tests/general/TaskTest.php @@ -0,0 +1,754 @@ +client = new Google_Client(); + } + + /** + * @dataProvider defaultRestErrorProvider + * @expectedException Google_Service_Exception + */ + public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') + { + $this->setNextResponse($errorCode, $errorBody)->makeRequest(); + } + + /** + * @dataProvider defaultRestErrorProvider + * @expectedException Google_Service_Exception + */ + public function testOneRestRetryWithError($errorCode, $errorBody = '{}') + { + $this->setTaskConfig(array('retries' => 1)); + $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); + } + + /** + * @dataProvider defaultRestErrorProvider + * @expectedException Google_Service_Exception + */ + public function testMultipleRestRetriesWithErrors( + $errorCode, + $errorBody = '{}' + ) { + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); + } + + /** + * @dataProvider defaultRestErrorProvider + */ + public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') + { + $this->setTaskConfig(array('retries' => 1)); + $result = $this->setNextResponse($errorCode, $errorBody) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @dataProvider defaultRestErrorProvider + */ + public function testMultipleRestRetriesWithSuccess( + $errorCode, + $errorBody = '{}' + ) { + $this->setTaskConfig(array('retries' => 5)); + $result = $this->setNextResponses(2, $errorCode, $errorBody) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @dataProvider defaultRestErrorProvider + * @expectedException Google_Service_Exception + */ + public function testCustomRestRetryMapReplacesDefaults( + $errorCode, + $errorBody = '{}' + ) { + $this->client->setClassConfig( + 'Google_Service_Exception', + array('retry_map' => array()) + ); + + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponse($errorCode, $errorBody)->makeRequest(); + } + + public function testCustomRestRetryMapAddsNewHandlers() + { + $this->client->setClassConfig( + 'Google_Service_Exception', + array('retry_map' => array('403' => Google_Config::TASK_RETRY_ALWAYS)) + ); + + $this->setTaskConfig(array('retries' => 5)); + $result = $this->setNextResponses(2, 403) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @expectedException Google_Service_Exception + * @dataProvider customLimitsProvider + */ + public function testCustomRestRetryMapWithCustomLimits($limit) + { + $this->client->setClassConfig( + 'Google_Service_Exception', + array('retry_map' => array('403' => $limit)) + ); + + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponses($limit + 1, 403)->makeRequest(); + } + + /** + * @dataProvider timeoutProvider + */ + public function testRestTimeouts($config, $minTime) + { + $this->setTaskConfig($config); + $this->setNextResponses($config['retries'], 500) + ->setNextResponse(200, '{"success": true}'); + + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'makeRequest'), + $config['initial_delay'] / 10 + ); + } + + /** + * @dataProvider defaultCurlErrorProvider + * @expectedException Google_IO_Exception + */ + public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') + { + $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); + } + + /** + * @dataProvider defaultCurlErrorProvider + * @expectedException Google_IO_Exception + */ + public function testOneCurlRetryWithError($errorCode, $errorMessage = '') + { + $this->setTaskConfig(array('retries' => 1)); + $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); + } + + /** + * @dataProvider defaultCurlErrorProvider + * @expectedException Google_IO_Exception + */ + public function testMultipleCurlRetriesWithErrors( + $errorCode, + $errorMessage = '' + ) { + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); + } + + /** + * @dataProvider defaultCurlErrorProvider + */ + public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') + { + $this->setTaskConfig(array('retries' => 1)); + $result = $this->setNextResponseThrows($errorMessage, $errorCode) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @dataProvider defaultCurlErrorProvider + */ + public function testMultipleCurlRetriesWithSuccess( + $errorCode, + $errorMessage = '' + ) { + $this->setTaskConfig(array('retries' => 5)); + $result = $this->setNextResponsesThrow(2, $errorMessage, $errorCode) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @dataProvider defaultCurlErrorProvider + * @expectedException Google_IO_Exception + */ + public function testCustomCurlRetryMapReplacesDefaults( + $errorCode, + $errorMessage = '' + ) { + $this->client->setClassConfig( + 'Google_IO_Exception', + array('retry_map' => array()) + ); + + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); + } + + public function testCustomCurlRetryMapAddsNewHandlers() + { + $this->client->setClassConfig( + 'Google_IO_Exception', + array('retry_map' => array( + CURLE_COULDNT_RESOLVE_PROXY => Google_Config::TASK_RETRY_ALWAYS + )) + ); + + $this->setTaskConfig(array('retries' => 5)); + $result = $this->setNextResponsesThrow(2, '', CURLE_COULDNT_RESOLVE_PROXY) + ->setNextResponse(200, '{"success": true}') + ->makeRequest(); + + $this->assertEquals(array("success" => true), $result); + } + + /** + * @expectedException Google_IO_Exception + * @dataProvider customLimitsProvider + */ + public function testCustomCurlRetryMapWithCustomLimits($limit) + { + $this->client->setClassConfig( + 'Google_IO_Exception', + array('retry_map' => array( + CURLE_COULDNT_RESOLVE_PROXY => $limit + )) + ); + + $this->setTaskConfig(array('retries' => 5)); + $this->setNextResponsesThrow($limit + 1, '', CURLE_COULDNT_RESOLVE_PROXY) + ->makeRequest(); + } + + /** + * @dataProvider timeoutProvider + */ + public function testCurlTimeouts($config, $minTime) + { + $this->setTaskConfig($config); + $this->setNextResponsesThrow($config['retries'], '', CURLE_GOT_NOTHING) + ->setNextResponse(200, '{"success": true}'); + + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'makeRequest'), + $config['initial_delay'] / 10 + ); + } + + /** + * @dataProvider badTaskConfigProvider + */ + public function testBadTaskConfig($config, $message) + { + $this->setExpectedException('Google_Task_Exception', $message); + $this->setTaskConfig($config); + + new Google_Task_Runner( + $this->client, + '', + array($this, 'testBadTaskConfig') + ); + } + + /** + * @expectedException Google_Task_Exception + * @expectedExceptionMessage must be a valid callable + */ + public function testBadTaskCallback() + { + new Google_Task_Runner($this->client, '', 5); + } + + /** + * @expectedException Google_IO_Exception + */ + public function testTaskRetryOffByDefault() + { + $this->setNextTaskAllowedRetries(Google_Config::TASK_RETRY_ALWAYS) + ->runTask(); + } + + /** + * @expectedException Google_IO_Exception + */ + public function testOneTaskRetryWithError() + { + $this->setTaskConfig(array('retries' => 1)); + $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS) + ->runTask(); + } + + /** + * @expectedException Google_IO_Exception + */ + public function testMultipleTaskRetriesWithErrors() + { + $this->setTaskConfig(array('retries' => 5)); + $this->setNextTasksAllowedRetries(6, Google_Config::TASK_RETRY_ALWAYS) + ->runTask(); + } + + public function testOneTaskRetryWithSuccess() + { + $this->setTaskConfig(array('retries' => 1)); + $result = $this->setNextTaskAllowedRetries(Google_Config::TASK_RETRY_ALWAYS) + ->setNextTaskReturnValue('success') + ->runTask(); + + $this->assertEquals('success', $result); + } + + public function testMultipleTaskRetriesWithSuccess() + { + $this->setTaskConfig(array('retries' => 5)); + $result = $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS) + ->setNextTaskReturnValue('success') + ->runTask(); + + $this->assertEquals('success', $result); + } + + /** + * @expectedException Google_IO_Exception + * @dataProvider customLimitsProvider + */ + public function testTaskRetryWithCustomLimits($limit) + { + $this->setTaskConfig(array('retries' => 5)); + $this->setNextTasksAllowedRetries($limit + 1, $limit) + ->runTask(); + } + + /** + * @dataProvider timeoutProvider + */ + public function testTaskTimeouts($config, $minTime) + { + $this->setTaskConfig($config); + $this->setNextTasksAllowedRetries($config['retries'], $config['retries'] + 1) + ->setNextTaskReturnValue('success'); + + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'runTask'), + $config['initial_delay'] / 10 + ); + } + + public function testTaskWithManualRetries() + { + $this->setTaskConfig(array('retries' => 2)); + $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS); + + $task = new Google_Task_Runner( + $this->client, + '', + array($this, 'runNextTask') + ); + + $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->attempt()); + + $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->attempt()); + + $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->attempt()); + + $this->assertFalse($task->canAttmpt()); + $this->assertFalse($task->attempt()); + } + + /** + * Provider for backoff configurations and expected minimum runtimes. + * + * @return array + */ + public function timeoutProvider() + { + $config = array('initial_delay' => .001, 'max_delay' => .01); + + return array( + array(array_merge($config, array('retries' => 1)), .001), + array(array_merge($config, array('retries' => 2)), .0015), + array(array_merge($config, array('retries' => 3)), .00225), + array(array_merge($config, array('retries' => 4)), .00375), + array(array_merge($config, array('retries' => 5)), .005625) + ); + } + + /** + * Provider for custom retry limits. + * + * @return array + */ + public function customLimitsProvider() + { + return array( + array(Google_Config::TASK_RETRY_NEVER), + array(Google_Config::TASK_RETRY_ONCE), + ); + } + + /** + * Provider for invalid task configurations. + * + * @return array + */ + public function badTaskConfigProvider() + { + return array( + array(array('initial_delay' => -1), 'must not be negative'), + array(array('max_delay' => 0), 'must be greater than 0'), + array(array('factor' => 0), 'must be greater than 0'), + array(array('jitter' => 0), 'must be greater than 0'), + array(array('retries' => -1), 'must not be negative') + ); + } + + /** + * Provider for the default REST errors. + * + * @return array + */ + public function defaultRestErrorProvider() + { + return array( + array(500), + array(503), + array(403, '{"error":{"errors":[{"reason":"rateLimitExceeded"}]}}'), + array(403, '{"error":{"errors":[{"reason":"userRateLimitExceeded"}]}}'), + ); + } + + /** + * Provider for the default cURL errors. + * + * @return array + */ + public function defaultCurlErrorProvider() + { + return array( + array(CURLE_COULDNT_RESOLVE_HOST), + array(CURLE_COULDNT_CONNECT), + array(CURLE_OPERATION_TIMEOUTED), + array(CURLE_SSL_CONNECT_ERROR), + array(CURLE_GOT_NOTHING), + ); + } + + /** + * Assert the minimum amount of time required to run a task. + * + * NOTE: Intentionally crude for brevity. + * + * @param float $expected The expected minimum execution time + * @param callable $callback The task to time + * @param float $delta Allowable relative error + * + * @throws PHPUnit_Framework_ExpectationFailedException + */ + public static function assertTaskTimeGreaterThanOrEqual( + $expected, + $callback, + $delta = 0.0 + ) { + $time = microtime(true); + + call_user_func($callback); + + self::assertThat( + microtime(true) - $time, + self::logicalOr( + self::greaterThan($expected), + self::equalTo($expected, $delta) + ) + ); + } + + /** + * Sets the task runner configurations. + * + * @param array $config The task runner configurations + */ + private function setTaskConfig(array $config) + { + $config += array( + 'initial_delay' => .0001, + 'max_delay' => .001, + 'factor' => 2, + 'jitter' => .5, + 'retries' => 1 + ); + $this->client->setClassConfig('Google_Task_Runner', $config); + } + + /** + * Sets the next responses. + * + * @param integer $count The number of responses + * @param string $code The response code + * @param string $body The response body + * @param array $headers The response headers + * + * @return TaskTest + */ + private function setNextResponses( + $count, + $code = '200', + $body = '{}', + array $headers = array() + ) { + while ($count-- > 0) { + $this->setNextResponse($code, $body, $headers); + } + + return $this; + } + + /** + * Sets the next response. + * + * @param string $code The response code + * @param string $body The response body + * @param array $headers The response headers + * + * @return TaskTest + */ + private function setNextResponse( + $code = '200', + $body = '{}', + array $headers = array() + ) { + $this->mockedCalls[$this->mockedCallsCount++] = array( + 'code' => (string) $code, + 'headers' => $headers, + 'body' => is_string($body) ? $body : json_encode($body) + ); + + return $this; + } + + /** + * Forces the next responses to throw an IO exception. + * + * @param integer $count The number of responses + * @param string $message The exception messages + * @param string $code The exception code + * + * @return TaskTest + */ + private function setNextResponsesThrow($count, $message, $code) + { + while ($count-- > 0) { + $this->setNextResponseThrows($message, $code); + } + + return $this; + } + + /** + * Forces the next response to throw an IO exception. + * + * @param string $message The exception messages + * @param string $code The exception code + * + * @return TaskTest + */ + private function setNextResponseThrows($message, $code) + { + $map = $this->client->getClassConfig('Google_IO_Exception', 'retry_map'); + $this->mockedCalls[$this->mockedCallsCount++] = new Google_IO_Exception( + $message, + $code, + null, + $map + ); + + return $this; + } + + /** + * Runs the defined request. + * + * @return array + */ + private function makeRequest() + { + $request = new Google_Http_Request('/test'); + + $io = $this->getMockBuilder('Google_IO_Abstract') + ->disableOriginalConstructor() + ->setMethods(array('makeRequest')) + ->getMockForAbstractClass(); + + $io->expects($this->exactly($this->mockedCallsCount)) + ->method('makeRequest') + ->will($this->returnCallback(array($this, 'getNextMockedCall'))); + + $this->client->setIo($io); + + return Google_Http_REST::execute($this->client, $request); + } + + /** + * Gets the next mocked response. + * + * @param Google_Http_Request $request The mocked request + * + * @return Google_Http_Request + */ + public function getNextMockedCall($request) + { + $current = $this->mockedCalls[$this->currentMockedCall++]; + + if ($current instanceof Exception) { + throw $current; + } + + $request->setResponseHttpCode($current['code']); + $request->setResponseHeaders($current['headers']); + $request->setResponseBody($current['body']); + + return $request; + } + + /** + * Sets the next task return value. + * + * @param mixed $value The next return value + * + * @return TaskTest + */ + private function setNextTaskReturnValue($value) + { + $this->mockedCalls[$this->mockedCallsCount++] = $value; + return $this; + } + + /** + * Sets the next exception `allowedRetries()` return value. + * + * @param boolean $allowedRetries The next `allowedRetries()` return value. + * + * @return TaskTest + */ + private function setNextTaskAllowedRetries($allowedRetries) + { + $this->mockedCalls[$this->mockedCallsCount++] = $allowedRetries; + return $this; + } + + /** + * Sets multiple exception `allowedRetries()` return value. + * + * @param integer $count The number of `allowedRetries()` return values. + * @param boolean $allowedRetries The `allowedRetries()` return value. + * + * @return TaskTest + */ + private function setNextTasksAllowedRetries($count, $allowedRetries) + { + while ($count-- > 0) { + $this->setNextTaskAllowedRetries($allowedRetries); + } + + return $this; + } + + /** + * Runs the defined task. + * + * @return mixed + */ + private function runTask() + { + $task = new Google_Task_Runner( + $this->client, + '', + array($this, 'runNextTask') + ); + + $exception = $this->getMockBuilder('Google_IO_Exception') + ->disableOriginalConstructor() + ->setMethods(array('allowedRetries')) + ->getMock(); + $exceptionCount = 0; + $exceptionCalls = array(); + + for ($i = 0; $i < $this->mockedCallsCount; $i++) { + if (is_int($this->mockedCalls[$i])) { + $exceptionCalls[$exceptionCount++] = $this->mockedCalls[$i]; + $this->mockedCalls[$i] = $exception; + } + } + + $exception->expects($this->exactly($exceptionCount)) + ->method('allowedRetries') + ->will( + new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls( + $exceptionCalls + ) + ); + + return $task->run(); + } + + /** + * Gets the next task return value. + * + * @return mixed + */ + public function runNextTask() + { + $current = $this->mockedCalls[$this->currentMockedCall++]; + + if ($current instanceof Exception) { + throw $current; + } + + return $current; + } +} From 940c78b076c487fda8b8b0c5262781ebefd5be1f Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Wed, 3 Dec 2014 01:08:53 -0500 Subject: [PATCH 0552/1274] Tame redundant tests. All 18 test classes that extend `BaseTest` inherit the same two tests. A side effect of this is that more than half of the assertions reported by PHPUnit are from the same two test methods running over and over again. I've refactored these test methods to live in more appropriate test classes. I've also updated the `testIncludes` method to: * Use a data provider so all failures will be printed at once. * Give a nice error message instead of triggering a fatal error. * Use the autoloader since that's the preferred method for including classes. --- tests/BaseTest.php | 13 ------------- tests/general/ApiClientTest.php | 5 +++++ tests/general/ServiceTest.php | 24 +++++++++++++++++++++++- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index c893581a3..7558bf18f 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -47,19 +47,6 @@ public function getClient() return $client; } - public function testClientConstructor() - { - $this->assertInstanceOf('Google_Client', $this->getClient()); - } - - public function testIncludes() - { - $path = dirname(dirname(__FILE__)) . '/src/Google/Service'; - foreach (glob($path . "/*.php") as $file) { - $this->assertEquals(1, require_once($file)); - } - } - public function checkToken() { if (!strlen($this->token)) { diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index 343f25414..2c5d06b1f 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -34,6 +34,11 @@ public function testClient() $this->assertEquals("{\"access_token\":\"1\"}", $client->getAccessToken()); } + public function testClientConstructor() + { + $this->assertInstanceOf('Google_Client', $this->getClient()); + } + /** * @expectedException Google_Auth_Exception */ diff --git a/tests/general/ServiceTest.php b/tests/general/ServiceTest.php index 9aedc4f82..306c4a27a 100644 --- a/tests/general/ServiceTest.php +++ b/tests/general/ServiceTest.php @@ -31,7 +31,7 @@ public function isAssociativeArray($array) } } -class ServiceTest extends BaseTest +class ServiceTest extends PHPUnit_Framework_TestCase { public function testModel() { @@ -71,6 +71,28 @@ public function testModel() $this->assertEquals(true, $model->isAssociativeArray(array("a", "b" => 2))); } + /** + * @dataProvider serviceProvider + */ + public function testIncludes($class) + { + $this->assertTrue( + class_exists($class), + sprintf('Failed asserting class %s exists.', $class) + ); + } + + public function serviceProvider() + { + $classes = array(); + $path = dirname(dirname(dirname(__FILE__))) . '/src/Google/Service'; + foreach (glob($path . "/*.php") as $file) { + $classes[] = array('Google_Service_' . basename($file, '.php')); + } + + return $classes; + } + public function testStrLen() { $this->assertEquals(0, Google_Utils::getStrLen(null)); From 19b5739d01b2f66b0404dfd4b51dbcdcda5fed9d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 3 Dec 2014 02:28:53 -0800 Subject: [PATCH 0553/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 186 +++++++++++++++++++++++++ 1 file changed, 186 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 115e30825..223f1f1bb 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -37,6 +37,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $accounts; public $billingInfo; + public $budget; public $creatives; public $directDeals; public $performanceReport; @@ -123,6 +124,61 @@ public function __construct(Google_Client $client) ) ) ); + $this->budget = new Google_Service_AdExchangeBuyer_Budget_Resource( + $this, + $this->serviceName, + 'budget', + array( + 'methods' => array( + 'get' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -446,6 +502,74 @@ public function listBillingInfo($optParams = array()) } } +/** + * The "budget" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $budget = $adexchangebuyerService->budget; + * + */ +class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource +{ + + /** + * Returns the budget information for the adgroup specified by the accountId and + * billingId. (budget.get) + * + * @param string $accountId The account id to get the budget information for. + * @param string $billingId The billing id to get the budget information for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function get($accountId, $billingId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. This method + * supports patch semantics. (budget.patch) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. + * (budget.update) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } +} + /** * The "creatives" collection of methods. * Typical usage is: @@ -920,6 +1044,68 @@ public function getKind() } } +class Google_Service_AdExchangeBuyer_Budget extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $billingId; + public $budgetAmount; + public $currencyCode; + public $id; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + public function getBillingId() + { + return $this->billingId; + } + public function setBudgetAmount($budgetAmount) + { + $this->budgetAmount = $budgetAmount; + } + public function getBudgetAmount() + { + return $this->budgetAmount; + } + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + 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_AdExchangeBuyer_Creative extends Google_Collection { protected $collection_key = 'vendorType'; From c0afacd55a976800894f4daa704b57ef51dc9de5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Dec 2014 02:30:24 -0800 Subject: [PATCH 0554/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 283 ++++++++++++++++++++++++++++++++++- 1 file changed, 282 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index d27b6e3c9..b24dbc9f2 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -46,6 +46,7 @@ class Google_Service_Books extends Google_Service public $mylibrary_bookshelves; public $mylibrary_bookshelves_volumes; public $mylibrary_readingpositions; + public $onboarding; public $promooffer; public $volumes; public $volumes_associated; @@ -506,7 +507,11 @@ public function __construct(Google_Client $client) 'myconfig', array( 'methods' => array( - 'releaseDownloadAccess' => array( + 'getUserSettings' => array( + 'path' => 'myconfig/getUserSettings', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'releaseDownloadAccess' => array( 'path' => 'myconfig/releaseDownloadAccess', 'httpMethod' => 'POST', 'parameters' => array( @@ -601,6 +606,10 @@ public function __construct(Google_Client $client) 'repeated' => true, ), ), + ),'updateUserSettings' => array( + 'path' => 'myconfig/updateUserSettings', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -962,6 +971,47 @@ public function __construct(Google_Client $client) ) ) ); + $this->onboarding = new Google_Service_Books_Onboarding_Resource( + $this, + $this->serviceName, + 'onboarding', + array( + 'methods' => array( + 'listCategories' => array( + 'path' => 'onboarding/listCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listCategoryVolumes' => array( + 'path' => 'onboarding/listCategoryVolumes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'categoryId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->promooffer = new Google_Service_Books_Promooffer_Resource( $this, $this->serviceName, @@ -1705,6 +1755,19 @@ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource { + /** + * Gets the current settings for the user. (myconfig.getUserSettings) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Usersettings + */ + public function getUserSettings($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getUserSettings', array($params), "Google_Service_Books_Usersettings"); + } + /** * Release downloaded content access restriction. * (myconfig.releaseDownloadAccess) @@ -1776,6 +1839,21 @@ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array $params = array_merge($params, $optParams); return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes"); } + + /** + * Sets the settings for the user. Unspecified sub-objects will retain the + * existing value. (myconfig.updateUserSettings) + * + * @param Google_Usersettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Usersettings + */ + public function updateUserSettings(Google_Service_Books_Usersettings $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateUserSettings', array($params), "Google_Service_Books_Usersettings"); + } } /** @@ -2120,6 +2198,56 @@ public function setPosition($volumeId, $timestamp, $position, $optParams = array } } +/** + * The "onboarding" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $onboarding = $booksService->onboarding; + * + */ +class Google_Service_Books_Onboarding_Resource extends Google_Service_Resource +{ + + /** + * List categories for onboarding experience. (onboarding.listCategories) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. + * Default is en-US if unset. + * @return Google_Service_Books_Category + */ + public function listCategories($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listCategories', array($params), "Google_Service_Books_Category"); + } + + /** + * List available volumes under categories for onboarding experience. + * (onboarding.listCategoryVolumes) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. + * Default is en-US if unset. + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param string categoryId List of category ids requested. + * @opt_param string pageSize Number of maximum results per page to be included + * in the response. + * @return Google_Service_Books_Volume2 + */ + public function listCategoryVolumes($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listCategoryVolumes', array($params), "Google_Service_Books_Volume2"); + } +} + /** * The "promooffer" collection of methods. * Typical usage is: @@ -3218,6 +3346,69 @@ public function getKind() } } +class Google_Service_Books_Category extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Books_CategoryItems'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Books_CategoryItems extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $badgeUrl; + public $categoryId; + public $name; + + + public function setBadgeUrl($badgeUrl) + { + $this->badgeUrl = $badgeUrl; + } + public function getBadgeUrl() + { + return $this->badgeUrl; + } + public function setCategoryId($categoryId) + { + $this->categoryId = $categoryId; + } + public function getCategoryId() + { + return $this->categoryId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model { protected $internal_gapi_mappings = array( @@ -4942,6 +5133,59 @@ public function getUrl() } } +class Google_Service_Books_Usersettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $notesExportType = 'Google_Service_Books_UsersettingsNotesExport'; + protected $notesExportDataType = ''; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNotesExport(Google_Service_Books_UsersettingsNotesExport $notesExport) + { + $this->notesExport = $notesExport; + } + public function getNotesExport() + { + return $this->notesExport; + } +} + +class Google_Service_Books_UsersettingsNotesExport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $folderName; + public $isEnabled; + + + public function setFolderName($folderName) + { + $this->folderName = $folderName; + } + public function getFolderName() + { + return $this->folderName; + } + public function setIsEnabled($isEnabled) + { + $this->isEnabled = $isEnabled; + } + public function getIsEnabled() + { + return $this->isEnabled; + } +} + class Google_Service_Books_Volume extends Google_Model { protected $internal_gapi_mappings = array( @@ -5056,6 +5300,43 @@ public function getVolumeInfo() } } +class Google_Service_Books_Volume2 extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Books_Volume'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Books_VolumeAccessInfo extends Google_Model { protected $internal_gapi_mappings = array( From 8a9bd13d9a6f7b4b1d07e5e989051cb681ded48c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 4 Dec 2014 02:30:24 -0800 Subject: [PATCH 0555/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 126 +++++++++++++++++++--- 1 file changed, 109 insertions(+), 17 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index e67538490..57bc10e2b 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -160,6 +160,39 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), + ),'listInstanceUpdates' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/instanceUpdates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'update' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'pause' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/pause', 'httpMethod' => 'POST', @@ -335,6 +368,30 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList"); } + /** + * Lists instance updates for a given update. (updates.listInstanceUpdates) + * + * @param string $project Project ID for this request. + * @param string $zone Zone for the instance group manager. + * @param string $instanceGroupManager Name of the instance group manager for + * this request. + * @param string $update Unique (in the context of a group) handle of an update. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 1 to 100, inclusive. (Default: 50) + * @opt_param string pageToken Set this to the nextPageToken value returned by a + * previous list request to obtain the next page of results from the previous + * list request. + * @return Google_Service_Replicapoolupdater_InstanceUpdateList + */ + public function listInstanceUpdates($project, $zone, $instanceGroupManager, $update, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array_merge($params, $optParams); + return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList"); + } + /** * Called on the particular Update endpoint. Pauses the update in state * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. @@ -417,17 +474,17 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); - public $instanceName; + public $instance; public $state; - public function setInstanceName($instanceName) + public function setInstance($instance) { - $this->instanceName = $instanceName; + $this->instance = $instance; } - public function getInstanceName() + public function getInstance() { - return $this->instanceName; + return $this->instance; } public function setState($state) { @@ -439,20 +496,47 @@ public function getState() } } -class Google_Service_Replicapoolupdater_Update extends Google_Collection +class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; + protected $itemsDataType = 'array'; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Replicapoolupdater_Update extends Google_Model { - protected $collection_key = 'instanceUpdates'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; public $details; public $handle; + public $instanceGroupManager; public $instanceTemplate; - protected $instanceUpdatesType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; - protected $instanceUpdatesDataType = 'array'; public $kind; protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy'; protected $policyDataType = ''; + public $progress; public $selfLink; public $state; public $targetState; @@ -483,21 +567,21 @@ public function getHandle() { return $this->handle; } - public function setInstanceTemplate($instanceTemplate) + public function setInstanceGroupManager($instanceGroupManager) { - $this->instanceTemplate = $instanceTemplate; + $this->instanceGroupManager = $instanceGroupManager; } - public function getInstanceTemplate() + public function getInstanceGroupManager() { - return $this->instanceTemplate; + return $this->instanceGroupManager; } - public function setInstanceUpdates($instanceUpdates) + public function setInstanceTemplate($instanceTemplate) { - $this->instanceUpdates = $instanceUpdates; + $this->instanceTemplate = $instanceTemplate; } - public function getInstanceUpdates() + public function getInstanceTemplate() { - return $this->instanceUpdates; + return $this->instanceTemplate; } public function setKind($kind) { @@ -515,6 +599,14 @@ public function getPolicy() { return $this->policy; } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; From a5284cce6017577221937cb6d318d266dc34442d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Od=C3=ADn=20del=20R=C3=ADo?= Date: Thu, 4 Dec 2014 18:15:38 +0100 Subject: [PATCH 0556/1274] Add the close quote to the href attribute, HTML wans't display properly. --- examples/simplefileupload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index 1d8fbdaa7..025b81890 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -107,7 +107,7 @@
Connect Me!"; + echo ""; } ?>
From fb722d66b42bd4569a0268bade011e4f2187c3a0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 5 Dec 2014 02:31:44 -0800 Subject: [PATCH 0557/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 06840d5f0..0d1bd4872 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -1331,6 +1331,7 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $replicaNames; protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; protected $serverCaCertDataType = ''; + public $serviceAccountEmailAddress; protected $settingsType = 'Google_Service_SQLAdmin_Settings'; protected $settingsDataType = ''; public $state; @@ -1448,6 +1449,14 @@ public function getServerCaCert() { return $this->serverCaCert; } + public function setServiceAccountEmailAddress($serviceAccountEmailAddress) + { + $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; + } + public function getServiceAccountEmailAddress() + { + return $this->serviceAccountEmailAddress; + } public function setSettings(Google_Service_SQLAdmin_Settings $settings) { $this->settings = $settings; From 1a40d03185804dc77bb8abf2082ed1e6bd495bf6 Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sat, 6 Dec 2014 02:24:47 -0500 Subject: [PATCH 0558/1274] Ignore composer files and generated example files. --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index ce3aa6521..b357486a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ phpunit.xml +composer.lock +vendor +examples/testfile-small.txt +examples/testfile.txt From 49b7797343f97dd2696e63b612c97cef523e7afa Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sat, 6 Dec 2014 02:27:43 -0500 Subject: [PATCH 0559/1274] Remove p12 key. --- examples/key.p12 | Bin 1732 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/key.p12 diff --git a/examples/key.p12 b/examples/key.p12 deleted file mode 100644 index 9eb42294909ecd003a4ebb51fa68ef9ec4cbeef1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1732 zcmY+Dc{J1u8^?dM;tI(Ojl_&C%U~>VGqwiTGMpyaBFP>`CJnNM87bE?b9FCoq-1DB z45O$}_=*wrezAo%6o;p8Lo5Jm-AB-{<-3`QT{q4loFUqrsEmQhM3W z*&8w-2~ar=9u1|zBX;c&91WuLuLy#I(jdrPTYgtEaOwYT?fC%&E~kOHI2yPfrvv}t z|Mu>2Whf$~%Ej&Lk72a8m4_@VRfOvP?PXD5Fcg5&z!^&xsqER%Igq?$D(RSx|2E%i zaPMUjkc6G7vw50!&QG$YVAG~_(B^H8KvqtB$1u53?3%n!>GmmVd-w1>^Z;|xy+s2;ct_U;LvLU5U>ROM$xfutF>ghSMx&!I|v0gpw%KNy` zd~w>gQNzjM+WMz}*OeR6YpD7{8K)y#bZ9){18P=<9o_-dQ0^34D^VUVlfd%{qe)fvdD9 zGk>z}G0%`Mrantl2*!s8{`Kk**PB1p79@n}+CF|oI;L^q-2LrkwA(GDumEJ(URoSO zZjbkJM5*KN4c>Q0R9hQNO9^P(Z88@}9Ch_F?g9$w`E^!H@pS}w=mM)P`1&HNXJh;( zA+#{wfd!CF^E0On{5jLl1F-KyvM~>8ODr(47^^$uCM|>!^ibtTx1yi@E@~VjJO1Xl zKWn?}xdW=_jVOZdvFfQfC7Y0)XcB$N${%v|+=;}~lH!UNKI|(tneWWXhpW3V2kVNY zi4~WXFdO2#-PECqEzy^H%L|&_^$ekLTwN_x&3f+&*y|`Lok&rfx??a`!YF?BtrI;P z+7}$%@Fa;67g_Ccw}qvIrvopBm} zf4CIFSWy)LP=Gif5=a1o04fj$MDHpIhxw<3G)6%8c}B*Bp^Z%~Ow7zo&2Wd!Ob_n@ zVfuGT0$xsoXzp5QFbLQksDBdBzW{-M2L#J2nj@C2y&rDGv-i69682XUnBM`(pn)gv zvc`9y5r&tf#vXhza(VV3Y7iZNy?C*c)`+Ph;LpF7Lz=8>y-it4G6gSbtLFz1xK+Ar z66K(NTl4Si#H=x5vsDu{)jwX#Htfx7^Jp(FV~2T>-P);?$eW7Ph(;W52rCGbxGLFCSn7qrsS1OYI{qc6V24t@6vNmIWub-+|j~W*S OMIOzK%T1#1i2N7LmkuKU From 6ce7fb66a20939966fdf05afc8388bc89177c661 Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sat, 6 Dec 2014 23:15:52 -0500 Subject: [PATCH 0560/1274] Refs #395: Verify IO requirements. --- src/Google/IO/Curl.php | 12 ++++++++++++ src/Google/IO/Stream.php | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 84e106ba4..926a1dbf4 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -29,6 +29,18 @@ class Google_IO_Curl extends Google_IO_Abstract const NO_QUIRK_VERSION = 0x071E00; private $options = array(); + + public function __construct(Google_Client $client) + { + if (!extension_loaded('curl')) { + $error = 'The cURL IO handler requires the cURL extension to be enabled'; + $client->getLogger()->critical($error); + throw new Google_IO_Exception($error); + } + + parent::__construct($client); + } + /** * Execute an HTTP Request * diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index 35f9d903c..41b5c0fec 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -40,6 +40,18 @@ class Google_IO_Stream extends Google_IO_Abstract "verify_peer" => true, ); + public function __construct(Google_Client $client) + { + if (!ini_get('allow_url_fopen')) { + $error = 'The stream IO handler requires the allow_url_fopen runtime ' . + 'configuration to be enabled'; + $client->getLogger()->critical($error); + throw new Google_IO_Exception($error); + } + + parent::__construct($client); + } + /** * Execute an HTTP Request * From caa6f6c9650a33bec69aa553b6895c3006c64031 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 8 Dec 2014 02:35:42 -0800 Subject: [PATCH 0561/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 139 +++++++++++++++++----- 1 file changed, 106 insertions(+), 33 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 57bc10e2b..309b6213b 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -291,10 +291,10 @@ class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_ * Called on the particular Update endpoint. Cancels the update in state PAUSED. * No-op if invoked in state CANCELLED. (updates.cancel) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ @@ -309,10 +309,10 @@ public function cancel($project, $zone, $instanceGroupManager, $update, $optPara * Called on the particular Update endpoint. Returns the Update resource. * (updates.get) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_Update @@ -328,10 +328,10 @@ public function get($project, $zone, $instanceGroupManager, $update, $optParams * Called on the collection endpoint. Inserts the new Update resource and starts * the update. (updates.insert) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param Google_Update $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_InsertResponse @@ -348,10 +348,10 @@ public function insert($project, $zone, $instanceGroupManager, Google_Service_Re * in reverse chronological order. Pagination is supported, see * ListRequestHeader. (updates.listUpdates) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param array $optParams Optional parameters. * * @opt_param string pageToken Set this to the nextPageToken value returned by a @@ -369,12 +369,13 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = } /** - * Lists instance updates for a given update. (updates.listInstanceUpdates) + * Called on the particular Update endpoint. Lists instance updates for a given + * update. (updates.listInstanceUpdates) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. * @@ -397,10 +398,10 @@ public function listInstanceUpdates($project, $zone, $instanceGroupManager, $upd * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. * (updates.pause) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ @@ -416,10 +417,10 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or * ROLLING_BACK. (updates.rollback) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ @@ -435,10 +436,10 @@ public function rollback($project, $zone, $instanceGroupManager, $update, $optPa * ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or * ROLLING_FORWARD. (updates.rollforward) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. * @param string $update Unique (in the context of a group) handle of an update. * @param array $optParams Optional parameters. */ @@ -476,6 +477,7 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model ); public $instance; public $state; + public $status; public function setInstance($instance) @@ -494,6 +496,14 @@ public function getState() { return $this->state; } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } } class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection @@ -503,7 +513,9 @@ class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collec ); protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; protected $itemsDataType = 'array'; + public $kind; public $nextPageToken; + public $selfLink; public function setItems($items) @@ -514,6 +526,14 @@ 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; @@ -522,6 +542,14 @@ public function getNextPageToken() { return $this->nextPageToken; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } } class Google_Service_Replicapoolupdater_Update extends Google_Model @@ -531,6 +559,7 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model public $creationTimestamp; public $details; public $handle; + public $id; public $instanceGroupManager; public $instanceTemplate; public $kind; @@ -539,6 +568,8 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model public $progress; public $selfLink; public $state; + public $status; + public $statusMessage; public $targetState; public $user; @@ -567,6 +598,14 @@ public function getHandle() { return $this->handle; } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } public function setInstanceGroupManager($instanceGroupManager) { $this->instanceGroupManager = $instanceGroupManager; @@ -623,6 +662,22 @@ public function getState() { return $this->state; } + 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 setTargetState($targetState) { $this->targetState = $targetState; @@ -648,7 +703,9 @@ class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection ); protected $itemsType = 'Google_Service_Replicapoolupdater_Update'; protected $itemsDataType = 'array'; + public $kind; public $nextPageToken; + public $selfLink; public function setItems($items) @@ -659,6 +716,14 @@ 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; @@ -667,6 +732,14 @@ public function getNextPageToken() { return $this->nextPageToken; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } } class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model From 4241f3dafadb96c0b893904ecccf1d993f526412 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 8 Dec 2014 02:35:43 -0800 Subject: [PATCH 0562/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 88 ++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index fd21860ce..a65d673ac 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -4432,6 +4432,7 @@ class Google_Service_Directory_User extends Google_Collection protected $nameType = 'Google_Service_Directory_UserName'; protected $nameDataType = ''; public $nonEditableAliases; + public $notes; public $orgUnitPath; public $organizations; public $password; @@ -4441,6 +4442,7 @@ class Google_Service_Directory_User extends Google_Collection public $suspended; public $suspensionReason; public $thumbnailPhotoUrl; + public $websites; public function setAddresses($addresses) @@ -4627,6 +4629,14 @@ public function getNonEditableAliases() { return $this->nonEditableAliases; } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -4699,6 +4709,40 @@ public function getThumbnailPhotoUrl() { return $this->thumbnailPhotoUrl; } + public function setWebsites($websites) + { + $this->websites = $websites; + } + public function getWebsites() + { + return $this->websites; + } +} + +class Google_Service_Directory_UserAbout extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contentType; + public $value; + + + public function setContentType($contentType) + { + $this->contentType = $contentType; + } + public function getContentType() + { + return $this->contentType; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } } class Google_Service_Directory_UserAddress extends Google_Model @@ -5310,6 +5354,50 @@ public function getOrgUnitPath() } } +class Google_Service_Directory_UserWebsite extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customType; + public $primary; + public $type; + public $value; + + + public function setCustomType($customType) + { + $this->customType = $customType; + } + public function getCustomType() + { + return $this->customType; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + 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_Directory_Users extends Google_Collection { protected $collection_key = 'users'; From 009f457855d7bb1d33145ff362d09b183b32752f Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Tue, 9 Dec 2014 01:42:46 -0500 Subject: [PATCH 0563/1274] Fix #424: Account for installs without the cURL extension enabled. --- src/Google/Config.php | 2 +- tests/general/TaskTest.php | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index ec551baa0..a924659a8 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -126,7 +126,7 @@ public function __construct($ini_file_location = null) ) ), 'Google_IO_Exception' => array( - 'retry_map' => array( + 'retry_map' => !extension_loaded('curl') ? array() : array( CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, diff --git a/tests/general/TaskTest.php b/tests/general/TaskTest.php index 2ef419bd0..4aca13897 100644 --- a/tests/general/TaskTest.php +++ b/tests/general/TaskTest.php @@ -151,6 +151,7 @@ public function testRestTimeouts($config, $minTime) } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider * @expectedException Google_IO_Exception */ @@ -160,6 +161,7 @@ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider * @expectedException Google_IO_Exception */ @@ -170,6 +172,7 @@ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider * @expectedException Google_IO_Exception */ @@ -182,6 +185,7 @@ public function testMultipleCurlRetriesWithErrors( } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider */ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') @@ -195,6 +199,7 @@ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider */ public function testMultipleCurlRetriesWithSuccess( @@ -210,6 +215,7 @@ public function testMultipleCurlRetriesWithSuccess( } /** + * @requires extension curl * @dataProvider defaultCurlErrorProvider * @expectedException Google_IO_Exception */ @@ -226,6 +232,9 @@ public function testCustomCurlRetryMapReplacesDefaults( $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); } + /** + * @requires extension curl + */ public function testCustomCurlRetryMapAddsNewHandlers() { $this->client->setClassConfig( @@ -244,6 +253,7 @@ public function testCustomCurlRetryMapAddsNewHandlers() } /** + * @requires extension curl * @expectedException Google_IO_Exception * @dataProvider customLimitsProvider */ @@ -262,6 +272,7 @@ public function testCustomCurlRetryMapWithCustomLimits($limit) } /** + * @requires extension curl * @dataProvider timeoutProvider */ public function testCurlTimeouts($config, $minTime) @@ -471,11 +482,11 @@ public function defaultRestErrorProvider() public function defaultCurlErrorProvider() { return array( - array(CURLE_COULDNT_RESOLVE_HOST), - array(CURLE_COULDNT_CONNECT), - array(CURLE_OPERATION_TIMEOUTED), - array(CURLE_SSL_CONNECT_ERROR), - array(CURLE_GOT_NOTHING), + array(6), // CURLE_COULDNT_RESOLVE_HOST + array(7), // CURLE_COULDNT_CONNECT + array(28), // CURLE_OPERATION_TIMEOUTED + array(35), // CURLE_SSL_CONNECT_ERROR + array(52), // CURLE_GOT_NOTHING ); } From 9fba046ee1f08bd8dc899282277aeb1c78346b6b Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Tue, 9 Dec 2014 19:08:46 +0100 Subject: [PATCH 0564/1274] Use the new build env on Travis more ram, dedicated cpus, faster vm boot times, improved networking --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8503d6ba2..576503dd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,11 @@ services: - memcached env: - - MEMCACHE_HOST=127.0.0.1 MEMCACHE_PORT=11211 + global: + - MEMCACHE_HOST=127.0.0.1 + - MEMCACHE_PORT=11211 + +sudo: false php: # Can't test against 5.2; openssl is not available: From ef74105ffc5648d9803690ebe03b4aa42d2cde5a Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sat, 13 Dec 2014 09:54:41 -0500 Subject: [PATCH 0565/1274] Simplify. --- src/Google/IO/Abstract.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index 15cc327ec..e7e9f9b79 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -243,12 +243,7 @@ protected function updateCachedRequest($cached, $responseHeaders) $hopByHop += array_fill_keys($connectionHeaders, true); } - $endToEnd = array(); - foreach ($responseHeaders as $key => $val) { - if (empty($hopByHop[$key])) { - $endToEnd[$key] = $val; - } - } + $endToEnd = array_diff_key($responseHeaders, $hopByHop); $cached->setResponseHeaders($endToEnd); } From 6f40479d8a555372af868485284a4aa75283e75f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:48 -0500 Subject: [PATCH 0566/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index b24dbc9f2..10c1e4a44 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -770,6 +770,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'reason' => array( + 'location' => 'query', + 'type' => 'string', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -2011,6 +2015,8 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_ * @param string $volumeId ID of volume to add. * @param array $optParams Optional parameters. * + * @opt_param string reason The reason for which the book is added to the + * library. * @opt_param string source String to identify the originator of this request. */ public function addVolume($shelf, $volumeId, $optParams = array()) From 8610d1b7c3de6a09669da12a5a2617d3c0a604be Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:49 -0500 Subject: [PATCH 0567/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 68af188ce..4fb3e0ef8 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -466,6 +466,7 @@ class Google_Service_Container_Cluster extends Google_Model protected $nodeConfigDataType = ''; public $nodeRoutingPrefixSize; public $numNodes; + public $selfLink; public $servicesIpv4Cidr; public $status; public $statusMessage; @@ -560,6 +561,14 @@ public function getNumNodes() { return $this->numNodes; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setServicesIpv4Cidr($servicesIpv4Cidr) { $this->servicesIpv4Cidr = $servicesIpv4Cidr; @@ -750,6 +759,7 @@ class Google_Service_Container_Operation extends Google_Model public $selfLink; public $status; public $target; + public $targetLink; public $zone; @@ -801,6 +811,14 @@ public function getTarget() { return $this->target; } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } public function setZone($zone) { $this->zone = $zone; From 40f4090ed6818d2e0c00d3fae2db6aa4bf368b4b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:49 -0500 Subject: [PATCH 0568/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 7cb3d35c0..70d9e30f7 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -2176,6 +2176,7 @@ class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collecti protected $internal_gapi_mappings = array( ); public $datasetId; + public $partitionStrategy; public $referenceSetId; public $sourceUris; @@ -2188,6 +2189,14 @@ public function getDatasetId() { return $this->datasetId; } + public function setPartitionStrategy($partitionStrategy) + { + $this->partitionStrategy = $partitionStrategy; + } + public function getPartitionStrategy() + { + return $this->partitionStrategy; + } public function setReferenceSetId($referenceSetId) { $this->referenceSetId = $referenceSetId; From b63c97bfcae1eeb6f52c7f263506c290d2b7d62c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:49 -0500 Subject: [PATCH 0569/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index 9be971943..9ae6717ea 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -601,6 +601,7 @@ class Google_Service_Dns_ManagedZone extends Google_Collection public $id; public $kind; public $name; + public $nameServerSet; public $nameServers; @@ -652,6 +653,14 @@ public function getName() { return $this->name; } + public function setNameServerSet($nameServerSet) + { + $this->nameServerSet = $nameServerSet; + } + public function getNameServerSet() + { + return $this->nameServerSet; + } public function setNameServers($nameServers) { $this->nameServers = $nameServers; From 2fec31903e77003f5a7f8dc0b954256c087f96df Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:50 -0500 Subject: [PATCH 0570/1274] Added service Dataflow.php --- src/Google/Service/Dataflow.php | 3112 +++++++++++++++++++++++++++++++ 1 file changed, 3112 insertions(+) create mode 100644 src/Google/Service/Dataflow.php diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php new file mode 100644 index 000000000..e394698d6 --- /dev/null +++ b/src/Google/Service/Dataflow.php @@ -0,0 +1,3112 @@ + + * Google Dataflow API.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Dataflow extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $v1b3_projects_jobs; + public $v1b3_projects_jobs_messages; + public $v1b3_projects_jobs_workItems; + + + /** + * Constructs the internal representation of the Dataflow service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'dataflow/v1b3/projects/'; + $this->version = 'v1beta3'; + $this->serviceName = 'dataflow'; + + $this->v1b3_projects_jobs = new Google_Service_Dataflow_V1b3ProjectsJobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getMetrics' => array( + 'path' => '{projectId}/jobs/{jobId}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->v1b3_projects_jobs_messages = new Google_Service_Dataflow_V1b3ProjectsJobsMessages_Resource( + $this, + $this->serviceName, + 'messages', + array( + 'methods' => array( + 'list' => array( + 'path' => '{projectId}/jobs/{jobId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minimumImportance' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->v1b3_projects_jobs_workItems = new Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource( + $this, + $this->serviceName, + 'workItems', + array( + 'methods' => array( + 'lease' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:lease', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'reportStatus' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:reportStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "v1b3" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $v1b3 = $dataflowService->v1b3; + * + */ +class Google_Service_Dataflow_V1b3_Resource extends Google_Service_Resource +{ +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $projects = $dataflowService->projects; + * + */ +class Google_Service_Dataflow_V1b3Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "jobs" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $jobs = $dataflowService->jobs; + * + */ +class Google_Service_Dataflow_V1b3ProjectsJobs_Resource extends Google_Service_Resource +{ + + /** + * Creates a dataflow job. (jobs.create) + * + * @param string $projectId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Gets the state of the specified dataflow job. (jobs.get) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function get($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Request the job status. (jobs.getMetrics) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string startTime + * @return Google_Service_Dataflow_JobMetrics + */ + public function getMetrics($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); + } + + /** + * List the jobs of a project (jobs.listV1b3ProjectsJobs) + * + * @param string $projectId + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * @opt_param string view + * @opt_param int pageSize + * @return Google_Service_Dataflow_ListJobsResponse + */ + public function listV1b3ProjectsJobs($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); + } + + /** + * Updates the state of an existing dataflow job. This method supports patch + * semantics. (jobs.patch) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Updates the state of an existing dataflow job. (jobs.update) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dataflow_Job"); + } +} + +/** + * The "messages" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $messages = $dataflowService->messages; + * + */ +class Google_Service_Dataflow_V1b3ProjectsJobsMessages_Resource extends Google_Service_Resource +{ + + /** + * Request the job status. (messages.listV1b3ProjectsJobsMessages) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize + * @opt_param string pageToken + * @opt_param string startTime + * @opt_param string endTime + * @opt_param string minimumImportance + * @return Google_Service_Dataflow_ListJobMessagesResponse + */ + public function listV1b3ProjectsJobsMessages($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse"); + } +} +/** + * The "workItems" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $workItems = $dataflowService->workItems; + * + */ +class Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource extends Google_Service_Resource +{ + + /** + * Leases a dataflow WorkItem to run. (workItems.lease) + * + * @param string $projectId + * @param string $jobId + * @param Google_LeaseWorkItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_LeaseWorkItemResponse + */ + public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); + } + + /** + * Reports the status of dataflow WorkItems leased by a worker. + * (workItems.reportStatus) + * + * @param string $projectId + * @param string $jobId + * @param Google_ReportWorkItemStatusRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_ReportWorkItemStatusResponse + */ + public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse"); + } +} + + + + +class Google_Service_Dataflow_ApproximateProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $percentComplete; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + public $remainingTime; + + + public function setPercentComplete($percentComplete) + { + $this->percentComplete = $percentComplete; + } + public function getPercentComplete() + { + return $this->percentComplete; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setRemainingTime($remainingTime) + { + $this->remainingTime = $remainingTime; + } + public function getRemainingTime() + { + return $this->remainingTime; + } +} + +class Google_Service_Dataflow_AutoscalingSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $algorithm; + public $maxNumWorkers; + + + public function setAlgorithm($algorithm) + { + $this->algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + public function setMaxNumWorkers($maxNumWorkers) + { + $this->maxNumWorkers = $maxNumWorkers; + } + public function getMaxNumWorkers() + { + return $this->maxNumWorkers; + } +} + +class Google_Service_Dataflow_ComputationTopology extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + public $computationId; + protected $inputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $inputsDataType = 'array'; + protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation'; + protected $keyRangesDataType = 'array'; + protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $outputsDataType = 'array'; + + + public function setComputationId($computationId) + { + $this->computationId = $computationId; + } + public function getComputationId() + { + return $this->computationId; + } + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setKeyRanges($keyRanges) + { + $this->keyRanges = $keyRanges; + } + public function getKeyRanges() + { + return $this->keyRanges; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } +} + +class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection +{ + protected $collection_key = 'dataDisks'; + protected $internal_gapi_mappings = array( + ); + public $dataDisks; + public $vmInstance; + + + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setVmInstance($vmInstance) + { + $this->vmInstance = $vmInstance; + } + public function getVmInstance() + { + return $this->vmInstance; + } +} + +class Google_Service_Dataflow_Disk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $diskType; + public $mountPoint; + public $sizeGb; + + + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setMountPoint($mountPoint) + { + $this->mountPoint = $mountPoint; + } + public function getMountPoint() + { + return $this->mountPoint; + } + public function setSizeGb($sizeGb) + { + $this->sizeGb = $sizeGb; + } + public function getSizeGb() + { + return $this->sizeGb; + } +} + +class Google_Service_Dataflow_Environment extends Google_Collection +{ + protected $collection_key = 'workerPools'; + protected $internal_gapi_mappings = array( + ); + public $clusterManagerApiService; + public $dataset; + public $experiments; + public $tempStoragePrefix; + public $userAgent; + public $version; + protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool'; + protected $workerPoolsDataType = 'array'; + + + public function setClusterManagerApiService($clusterManagerApiService) + { + $this->clusterManagerApiService = $clusterManagerApiService; + } + public function getClusterManagerApiService() + { + return $this->clusterManagerApiService; + } + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setExperiments($experiments) + { + $this->experiments = $experiments; + } + public function getExperiments() + { + return $this->experiments; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setWorkerPools($workerPools) + { + $this->workerPools = $workerPools; + } + public function getWorkerPools() + { + return $this->workerPools; + } +} + +class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model +{ +} + +class Google_Service_Dataflow_EnvironmentVersion extends Google_Model +{ +} + +class Google_Service_Dataflow_FlattenInstruction extends Google_Collection +{ + protected $collection_key = 'inputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputsDataType = 'array'; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } +} + +class Google_Service_Dataflow_InstructionInput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputNum; + public $producerInstructionIndex; + + + public function setOutputNum($outputNum) + { + $this->outputNum = $outputNum; + } + public function getOutputNum() + { + return $this->outputNum; + } + public function setProducerInstructionIndex($producerInstructionIndex) + { + $this->producerInstructionIndex = $producerInstructionIndex; + } + public function getProducerInstructionIndex() + { + return $this->producerInstructionIndex; + } +} + +class Google_Service_Dataflow_InstructionOutput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $name; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_Job extends Google_Collection +{ + protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $currentState; + public $currentStateTime; + protected $environmentType = 'Google_Service_Dataflow_Environment'; + protected $environmentDataType = ''; + protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; + protected $executionInfoDataType = ''; + public $id; + public $name; + public $projectId; + public $requestedState; + protected $stepsType = 'Google_Service_Dataflow_Step'; + protected $stepsDataType = 'array'; + public $type; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setCurrentState($currentState) + { + $this->currentState = $currentState; + } + public function getCurrentState() + { + return $this->currentState; + } + public function setCurrentStateTime($currentStateTime) + { + $this->currentStateTime = $currentStateTime; + } + public function getCurrentStateTime() + { + return $this->currentStateTime; + } + public function setEnvironment(Google_Service_Dataflow_Environment $environment) + { + $this->environment = $environment; + } + public function getEnvironment() + { + return $this->environment; + } + public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo) + { + $this->executionInfo = $executionInfo; + } + public function getExecutionInfo() + { + return $this->executionInfo; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRequestedState($requestedState) + { + $this->requestedState = $requestedState; + } + public function getRequestedState() + { + return $this->requestedState; + } + public function setSteps($steps) + { + $this->steps = $steps; + } + public function getSteps() + { + return $this->steps; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dataflow_JobExecutionInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo'; + protected $stagesDataType = 'map'; + + + public function setStages($stages) + { + $this->stages = $stages; + } + public function getStages() + { + return $this->stages; + } +} + +class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model +{ +} + +class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection +{ + protected $collection_key = 'stepName'; + protected $internal_gapi_mappings = array( + ); + public $stepName; + + + public function setStepName($stepName) + { + $this->stepName = $stepName; + } + public function getStepName() + { + return $this->stepName; + } +} + +class Google_Service_Dataflow_JobMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $messageImportance; + public $messageText; + public $time; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMessageImportance($messageImportance) + { + $this->messageImportance = $messageImportance; + } + public function getMessageImportance() + { + return $this->messageImportance; + } + public function setMessageText($messageText) + { + $this->messageText = $messageText; + } + public function getMessageText() + { + return $this->messageText; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dataflow_JobMetrics extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + public $metricTime; + protected $metricsType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricsDataType = 'array'; + + + public function setMetricTime($metricTime) + { + $this->metricTime = $metricTime; + } + public function getMetricTime() + { + return $this->metricTime; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } +} + +class Google_Service_Dataflow_KeyRangeLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + public $deliveryEndpoint; + public $end; + public $persistentDirectory; + public $start; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } + public function setDeliveryEndpoint($deliveryEndpoint) + { + $this->deliveryEndpoint = $deliveryEndpoint; + } + public function getDeliveryEndpoint() + { + return $this->deliveryEndpoint; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setPersistentDirectory($persistentDirectory) + { + $this->persistentDirectory = $persistentDirectory; + } + public function getPersistentDirectory() + { + return $this->persistentDirectory; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection +{ + protected $collection_key = 'workerCapabilities'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + public $requestedLeaseDuration; + public $workItemTypes; + public $workerCapabilities; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setWorkItemTypes($workItemTypes) + { + $this->workItemTypes = $workItemTypes; + } + public function getWorkItemTypes() + { + return $this->workItemTypes; + } + public function setWorkerCapabilities($workerCapabilities) + { + $this->workerCapabilities = $workerCapabilities; + } + public function getWorkerCapabilities() + { + return $this->workerCapabilities; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection +{ + protected $collection_key = 'workItems'; + protected $internal_gapi_mappings = array( + ); + protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; + protected $workItemsDataType = 'array'; + + + public function setWorkItems($workItems) + { + $this->workItems = $workItems; + } + public function getWorkItems() + { + return $this->workItems; + } +} + +class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection +{ + protected $collection_key = 'jobMessages'; + protected $internal_gapi_mappings = array( + ); + protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage'; + protected $jobMessagesDataType = 'array'; + public $nextPageToken; + + + public function setJobMessages($jobMessages) + { + $this->jobMessages = $jobMessages; + } + public function getJobMessages() + { + return $this->jobMessages; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_ListJobsResponse extends Google_Collection +{ + protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); + protected $jobsType = 'Google_Service_Dataflow_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_MapTask extends Google_Collection +{ + protected $collection_key = 'instructions'; + protected $internal_gapi_mappings = array( + ); + protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; + protected $instructionsDataType = 'array'; + public $stageName; + public $systemName; + + + public function setInstructions($instructions) + { + $this->instructions = $instructions; + } + public function getInstructions() + { + return $this->instructions; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } +} + +class Google_Service_Dataflow_MetricStructuredName extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $context; + public $name; + public $origin; + + + public function setContext($context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOrigin($origin) + { + $this->origin = $origin; + } + public function getOrigin() + { + return $this->origin; + } +} + +class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model +{ +} + +class Google_Service_Dataflow_MetricUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cumulative; + public $internal; + public $kind; + public $meanCount; + public $meanSum; + protected $nameType = 'Google_Service_Dataflow_MetricStructuredName'; + protected $nameDataType = ''; + public $scalar; + public $set; + public $updateTime; + + + public function setCumulative($cumulative) + { + $this->cumulative = $cumulative; + } + public function getCumulative() + { + return $this->cumulative; + } + public function setInternal($internal) + { + $this->internal = $internal; + } + public function getInternal() + { + return $this->internal; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMeanCount($meanCount) + { + $this->meanCount = $meanCount; + } + public function getMeanCount() + { + return $this->meanCount; + } + public function setMeanSum($meanSum) + { + $this->meanSum = $meanSum; + } + public function getMeanSum() + { + return $this->meanSum; + } + public function setName(Google_Service_Dataflow_MetricStructuredName $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScalar($scalar) + { + $this->scalar = $scalar; + } + public function getScalar() + { + return $this->scalar; + } + public function setSet($set) + { + $this->set = $set; + } + public function getSet() + { + return $this->set; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_Dataflow_MultiOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tag; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_Package extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $location; + public $name; + + + 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; + } +} + +class Google_Service_Dataflow_ParDoInstruction extends Google_Collection +{ + protected $collection_key = 'sideInputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo'; + protected $multiOutputInfosDataType = 'array'; + public $numOutputs; + protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $sideInputsDataType = 'array'; + public $userFn; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setMultiOutputInfos($multiOutputInfos) + { + $this->multiOutputInfos = $multiOutputInfos; + } + public function getMultiOutputInfos() + { + return $this->multiOutputInfos; + } + public function setNumOutputs($numOutputs) + { + $this->numOutputs = $numOutputs; + } + public function getNumOutputs() + { + return $this->numOutputs; + } + public function setSideInputs($sideInputs) + { + $this->sideInputs = $sideInputs; + } + public function getSideInputs() + { + return $this->sideInputs; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ParallelInstruction extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction'; + protected $flattenDataType = ''; + public $name; + protected $outputsType = 'Google_Service_Dataflow_InstructionOutput'; + protected $outputsDataType = 'array'; + protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction'; + protected $parDoDataType = ''; + protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction'; + protected $partialGroupByKeyDataType = ''; + protected $readType = 'Google_Service_Dataflow_ReadInstruction'; + protected $readDataType = ''; + public $systemName; + protected $writeType = 'Google_Service_Dataflow_WriteInstruction'; + protected $writeDataType = ''; + + + public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten) + { + $this->flatten = $flatten; + } + public function getFlatten() + { + return $this->flatten; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } + public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo) + { + $this->parDo = $parDo; + } + public function getParDo() + { + return $this->parDo; + } + public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey) + { + $this->partialGroupByKey = $partialGroupByKey; + } + public function getPartialGroupByKey() + { + return $this->partialGroupByKey; + } + public function setRead(Google_Service_Dataflow_ReadInstruction $read) + { + $this->read = $read; + } + public function getRead() + { + return $this->read; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setWrite(Google_Service_Dataflow_WriteInstruction $write) + { + $this->write = $write; + } + public function getWrite() + { + return $this->write; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + public $inputElementCodec; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setInputElementCodec($inputElementCodec) + { + $this->inputElementCodec = $inputElementCodec; + } + public function getInputElementCodec() + { + return $this->inputElementCodec; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_Position extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $byteOffset; + public $end; + public $key; + public $recordIndex; + public $shufflePosition; + + + public function setByteOffset($byteOffset) + { + $this->byteOffset = $byteOffset; + } + public function getByteOffset() + { + return $this->byteOffset; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRecordIndex($recordIndex) + { + $this->recordIndex = $recordIndex; + } + public function getRecordIndex() + { + return $this->recordIndex; + } + public function setShufflePosition($shufflePosition) + { + $this->shufflePosition = $shufflePosition; + } + public function getShufflePosition() + { + return $this->shufflePosition; + } +} + +class Google_Service_Dataflow_PubsubLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $subscription; + public $topic; + + + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} + +class Google_Service_Dataflow_ReadInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection +{ + protected $collection_key = 'workItemStatuses'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; + protected $workItemStatusesDataType = 'array'; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setWorkItemStatuses($workItemStatuses) + { + $this->workItemStatuses = $workItemStatuses; + } + public function getWorkItemStatuses() + { + return $this->workItemStatuses; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection +{ + protected $collection_key = 'workItemServiceStates'; + protected $internal_gapi_mappings = array( + ); + protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; + protected $workItemServiceStatesDataType = 'array'; + + + public function setWorkItemServiceStates($workItemServiceStates) + { + $this->workItemServiceStates = $workItemServiceStates; + } + public function getWorkItemServiceStates() + { + return $this->workItemServiceStates; + } +} + +class Google_Service_Dataflow_SeqMapTask extends Google_Collection +{ + protected $collection_key = 'outputInfos'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $inputsDataType = 'array'; + public $name; + protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo'; + protected $outputInfosDataType = 'array'; + public $stageName; + public $systemName; + public $userFn; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputInfos($outputInfos) + { + $this->outputInfos = $outputInfos; + } + public function getOutputInfos() + { + return $this->outputInfos; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + public $tag; + + + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ShellTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $command; + public $exitCode; + + + public function setCommand($command) + { + $this->command = $command; + } + public function getCommand() + { + return $this->command; + } + public function setExitCode($exitCode) + { + $this->exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } +} + +class Google_Service_Dataflow_SideInputInfo extends Google_Collection +{ + protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sourcesType = 'Google_Service_Dataflow_Source'; + protected $sourcesDataType = 'array'; + public $tag; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSources($sources) + { + $this->sources = $sources; + } + public function getSources() + { + return $this->sources; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SideInputInfoKind extends Google_Model +{ +} + +class Google_Service_Dataflow_Sink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $spec; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SinkCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SinkSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_Source extends Google_Collection +{ + protected $collection_key = 'baseSpecs'; + protected $internal_gapi_mappings = array( + ); + public $baseSpecs; + public $codec; + public $doesNotNeedSplitting; + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + public $spec; + + + public function setBaseSpecs($baseSpecs) + { + $this->baseSpecs = $baseSpecs; + } + public function getBaseSpecs() + { + return $this->baseSpecs; + } + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setDoesNotNeedSplitting($doesNotNeedSplitting) + { + $this->doesNotNeedSplitting = $doesNotNeedSplitting; + } + public function getDoesNotNeedSplitting() + { + return $this->doesNotNeedSplitting; + } + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + + + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } +} + +class Google_Service_Dataflow_SourceMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $estimatedSizeBytes; + public $infinite; + public $producesSortedKeys; + + + public function setEstimatedSizeBytes($estimatedSizeBytes) + { + $this->estimatedSizeBytes = $estimatedSizeBytes; + } + public function getEstimatedSizeBytes() + { + return $this->estimatedSizeBytes; + } + public function setInfinite($infinite) + { + $this->infinite = $infinite; + } + public function getInfinite() + { + return $this->infinite; + } + public function setProducesSortedKeys($producesSortedKeys) + { + $this->producesSortedKeys = $producesSortedKeys; + } + public function getProducesSortedKeys() + { + return $this->producesSortedKeys; + } +} + +class Google_Service_Dataflow_SourceOperationRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceOperationResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceSplitOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $desiredShardSizeBytes; + + + public function setDesiredShardSizeBytes($desiredShardSizeBytes) + { + $this->desiredShardSizeBytes = $desiredShardSizeBytes; + } + public function getDesiredShardSizeBytes() + { + return $this->desiredShardSizeBytes; + } +} + +class Google_Service_Dataflow_SourceSplitRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions'; + protected $optionsDataType = ''; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options) + { + $this->options = $options; + } + public function getOptions() + { + return $this->options; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection +{ + protected $collection_key = 'shards'; + protected $internal_gapi_mappings = array( + ); + public $outcome; + protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $shardsDataType = 'array'; + + + public function setOutcome($outcome) + { + $this->outcome = $outcome; + } + public function getOutcome() + { + return $this->outcome; + } + public function setShards($shards) + { + $this->shards = $shards; + } + public function getShards() + { + return $this->shards; + } +} + +class Google_Service_Dataflow_SourceSplitShard extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $derivationMode; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setDerivationMode($derivationMode) + { + $this->derivationMode = $derivationMode; + } + public function getDerivationMode() + { + return $this->derivationMode; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Dataflow_StatusDetails extends Google_Model +{ +} + +class Google_Service_Dataflow_Step extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + public $properties; + + + 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 setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataflow_StepProperties extends Google_Model +{ +} + +class Google_Service_Dataflow_StreamLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; + protected $pubsubLocationDataType = ''; + protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation'; + protected $streamingStageLocationDataType = ''; + + + public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) + { + $this->pubsubLocation = $pubsubLocation; + } + public function getPubsubLocation() + { + return $this->pubsubLocation; + } + public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation) + { + $this->streamingStageLocation = $streamingStageLocation; + } + public function getStreamingStageLocation() + { + return $this->streamingStageLocation; + } +} + +class Google_Service_Dataflow_StreamingSetupTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $receiveWorkPort; + protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; + protected $streamingComputationTopologyDataType = ''; + public $workerHarnessPort; + + + public function setReceiveWorkPort($receiveWorkPort) + { + $this->receiveWorkPort = $receiveWorkPort; + } + public function getReceiveWorkPort() + { + return $this->receiveWorkPort; + } + public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology) + { + $this->streamingComputationTopology = $streamingComputationTopology; + } + public function getStreamingComputationTopology() + { + return $this->streamingComputationTopology; + } + public function setWorkerHarnessPort($workerHarnessPort) + { + $this->workerHarnessPort = $workerHarnessPort; + } + public function getWorkerHarnessPort() + { + return $this->workerHarnessPort; + } +} + +class Google_Service_Dataflow_StreamingStageLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $streamId; + + + public function setStreamId($streamId) + { + $this->streamId = $streamId; + } + public function getStreamId() + { + return $this->streamId; + } +} + +class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection +{ + protected $collection_key = 'oauthScopes'; + protected $internal_gapi_mappings = array( + ); + public $alsologtostderr; + public $baseTaskDir; + public $baseUrl; + public $commandlinesFileName; + public $continueOnException; + public $dataflowApiVersion; + public $harnessCommand; + public $languageHint; + public $logDir; + public $logToSerialconsole; + public $logUploadLocation; + public $oauthScopes; + protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; + protected $parallelWorkerSettingsDataType = ''; + public $taskGroup; + public $taskUser; + public $tempStoragePrefix; + public $vmId; + public $workflowFileName; + + + public function setAlsologtostderr($alsologtostderr) + { + $this->alsologtostderr = $alsologtostderr; + } + public function getAlsologtostderr() + { + return $this->alsologtostderr; + } + public function setBaseTaskDir($baseTaskDir) + { + $this->baseTaskDir = $baseTaskDir; + } + public function getBaseTaskDir() + { + return $this->baseTaskDir; + } + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setCommandlinesFileName($commandlinesFileName) + { + $this->commandlinesFileName = $commandlinesFileName; + } + public function getCommandlinesFileName() + { + return $this->commandlinesFileName; + } + public function setContinueOnException($continueOnException) + { + $this->continueOnException = $continueOnException; + } + public function getContinueOnException() + { + return $this->continueOnException; + } + public function setDataflowApiVersion($dataflowApiVersion) + { + $this->dataflowApiVersion = $dataflowApiVersion; + } + public function getDataflowApiVersion() + { + return $this->dataflowApiVersion; + } + public function setHarnessCommand($harnessCommand) + { + $this->harnessCommand = $harnessCommand; + } + public function getHarnessCommand() + { + return $this->harnessCommand; + } + public function setLanguageHint($languageHint) + { + $this->languageHint = $languageHint; + } + public function getLanguageHint() + { + return $this->languageHint; + } + public function setLogDir($logDir) + { + $this->logDir = $logDir; + } + public function getLogDir() + { + return $this->logDir; + } + public function setLogToSerialconsole($logToSerialconsole) + { + $this->logToSerialconsole = $logToSerialconsole; + } + public function getLogToSerialconsole() + { + return $this->logToSerialconsole; + } + public function setLogUploadLocation($logUploadLocation) + { + $this->logUploadLocation = $logUploadLocation; + } + public function getLogUploadLocation() + { + return $this->logUploadLocation; + } + public function setOauthScopes($oauthScopes) + { + $this->oauthScopes = $oauthScopes; + } + public function getOauthScopes() + { + return $this->oauthScopes; + } + public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings) + { + $this->parallelWorkerSettings = $parallelWorkerSettings; + } + public function getParallelWorkerSettings() + { + return $this->parallelWorkerSettings; + } + public function setTaskGroup($taskGroup) + { + $this->taskGroup = $taskGroup; + } + public function getTaskGroup() + { + return $this->taskGroup; + } + public function setTaskUser($taskUser) + { + $this->taskUser = $taskUser; + } + public function getTaskUser() + { + return $this->taskUser; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setVmId($vmId) + { + $this->vmId = $vmId; + } + public function getVmId() + { + return $this->vmId; + } + public function setWorkflowFileName($workflowFileName) + { + $this->workflowFileName = $workflowFileName; + } + public function getWorkflowFileName() + { + return $this->workflowFileName; + } +} + +class Google_Service_Dataflow_TopologyConfig extends Google_Collection +{ + protected $collection_key = 'dataDiskAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $computationsType = 'Google_Service_Dataflow_ComputationTopology'; + protected $computationsDataType = 'array'; + protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; + protected $dataDiskAssignmentsDataType = 'array'; + + + public function setComputations($computations) + { + $this->computations = $computations; + } + public function getComputations() + { + return $this->computations; + } + public function setDataDiskAssignments($dataDiskAssignments) + { + $this->dataDiskAssignments = $dataDiskAssignments; + } + public function getDataDiskAssignments() + { + return $this->dataDiskAssignments; + } +} + +class Google_Service_Dataflow_WorkItem extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + public $configuration; + public $id; + public $jobId; + public $leaseExpireTime; + protected $mapTaskType = 'Google_Service_Dataflow_MapTask'; + protected $mapTaskDataType = ''; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + public $projectId; + public $reportStatusInterval; + protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask'; + protected $seqMapTaskDataType = ''; + protected $shellTaskType = 'Google_Service_Dataflow_ShellTask'; + protected $shellTaskDataType = ''; + protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest'; + protected $sourceOperationTaskDataType = ''; + protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask'; + protected $streamingSetupTaskDataType = ''; + + + public function setConfiguration($configuration) + { + $this->configuration = $configuration; + } + public function getConfiguration() + { + return $this->configuration; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() + { + return $this->jobId; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setMapTask(Google_Service_Dataflow_MapTask $mapTask) + { + $this->mapTask = $mapTask; + } + public function getMapTask() + { + return $this->mapTask; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask) + { + $this->seqMapTask = $seqMapTask; + } + public function getSeqMapTask() + { + return $this->seqMapTask; + } + public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask) + { + $this->shellTask = $shellTask; + } + public function getShellTask() + { + return $this->shellTask; + } + public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask) + { + $this->sourceOperationTask = $sourceOperationTask; + } + public function getSourceOperationTask() + { + return $this->sourceOperationTask; + } + public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask) + { + $this->streamingSetupTask = $streamingSetupTask; + } + public function getStreamingSetupTask() + { + return $this->streamingSetupTask; + } +} + +class Google_Service_Dataflow_WorkItemServiceState extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $harnessData; + public $leaseExpireTime; + public $reportStatusInterval; + protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $suggestedStopPointDataType = ''; + protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; + protected $suggestedStopPositionDataType = ''; + + + public function setHarnessData($harnessData) + { + $this->harnessData = $harnessData; + } + public function getHarnessData() + { + return $this->harnessData; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) + { + $this->suggestedStopPoint = $suggestedStopPoint; + } + public function getSuggestedStopPoint() + { + return $this->suggestedStopPoint; + } + public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition) + { + $this->suggestedStopPosition = $suggestedStopPosition; + } + public function getSuggestedStopPosition() + { + return $this->suggestedStopPosition; + } +} + +class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkItemStatus extends Google_Collection +{ + protected $collection_key = 'metricUpdates'; + protected $internal_gapi_mappings = array( + ); + public $completed; + protected $errorsType = 'Google_Service_Dataflow_Status'; + protected $errorsDataType = 'array'; + protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricUpdatesDataType = 'array'; + protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $progressDataType = ''; + public $reportIndex; + public $requestedLeaseDuration; + protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse'; + protected $sourceOperationResponseDataType = ''; + protected $stopPositionType = 'Google_Service_Dataflow_Position'; + protected $stopPositionDataType = ''; + public $workItemId; + + + public function setCompleted($completed) + { + $this->completed = $completed; + } + public function getCompleted() + { + return $this->completed; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setMetricUpdates($metricUpdates) + { + $this->metricUpdates = $metricUpdates; + } + public function getMetricUpdates() + { + return $this->metricUpdates; + } + public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setReportIndex($reportIndex) + { + $this->reportIndex = $reportIndex; + } + public function getReportIndex() + { + return $this->reportIndex; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse) + { + $this->sourceOperationResponse = $sourceOperationResponse; + } + public function getSourceOperationResponse() + { + return $this->sourceOperationResponse; + } + public function setStopPosition(Google_Service_Dataflow_Position $stopPosition) + { + $this->stopPosition = $stopPosition; + } + public function getStopPosition() + { + return $this->stopPosition; + } + public function setWorkItemId($workItemId) + { + $this->workItemId = $workItemId; + } + public function getWorkItemId() + { + return $this->workItemId; + } +} + +class Google_Service_Dataflow_WorkerPool extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings'; + protected $autoscalingSettingsDataType = ''; + protected $dataDisksType = 'Google_Service_Dataflow_Disk'; + protected $dataDisksDataType = 'array'; + public $defaultPackageSet; + public $diskSizeGb; + public $diskSourceImage; + public $kind; + public $machineType; + public $metadata; + public $numWorkers; + public $onHostMaintenance; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; + protected $taskrunnerSettingsDataType = ''; + public $teardownPolicy; + public $zone; + + + public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings) + { + $this->autoscalingSettings = $autoscalingSettings; + } + public function getAutoscalingSettings() + { + return $this->autoscalingSettings; + } + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setDefaultPackageSet($defaultPackageSet) + { + $this->defaultPackageSet = $defaultPackageSet; + } + public function getDefaultPackageSet() + { + return $this->defaultPackageSet; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskSourceImage($diskSourceImage) + { + $this->diskSourceImage = $diskSourceImage; + } + public function getDiskSourceImage() + { + return $this->diskSourceImage; + } + 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($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setNumWorkers($numWorkers) + { + $this->numWorkers = $numWorkers; + } + public function getNumWorkers() + { + return $this->numWorkers; + } + public function setOnHostMaintenance($onHostMaintenance) + { + $this->onHostMaintenance = $onHostMaintenance; + } + public function getOnHostMaintenance() + { + return $this->onHostMaintenance; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) + { + $this->taskrunnerSettings = $taskrunnerSettings; + } + public function getTaskrunnerSettings() + { + return $this->taskrunnerSettings; + } + public function setTeardownPolicy($teardownPolicy) + { + $this->teardownPolicy = $teardownPolicy; + } + public function getTeardownPolicy() + { + return $this->teardownPolicy; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkerSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $baseUrl; + public $reportingEnabled; + public $servicePath; + public $shuffleServicePath; + public $tempStoragePrefix; + public $workerId; + + + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setReportingEnabled($reportingEnabled) + { + $this->reportingEnabled = $reportingEnabled; + } + public function getReportingEnabled() + { + return $this->reportingEnabled; + } + public function setServicePath($servicePath) + { + $this->servicePath = $servicePath; + } + public function getServicePath() + { + return $this->servicePath; + } + public function setShuffleServicePath($shuffleServicePath) + { + $this->shuffleServicePath = $shuffleServicePath; + } + public function getShuffleServicePath() + { + return $this->shuffleServicePath; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_WriteInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } +} From 52987e328d4633ca8ddfd8c426f8ac505f702bf3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:50 -0500 Subject: [PATCH 0571/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 95 ++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 498e9ff26..97c89d836 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -4310,6 +4310,8 @@ class Google_Service_YouTube_Channel extends Google_Model protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; protected $invideoPromotionDataType = ''; public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizationsDataType = 'map'; protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; protected $snippetDataType = ''; protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; @@ -4392,6 +4394,14 @@ public function getKind() { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) { $this->snippet = $snippet; @@ -4798,6 +4808,36 @@ public function getVisitorId() } } +class Google_Service_YouTube_ChannelLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_ChannelSection extends Google_Model { protected $internal_gapi_mappings = array( @@ -4993,6 +5033,7 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection protected $collection_key = 'featuredChannelsUrls'; protected $internal_gapi_mappings = array( ); + public $defaultLanguage; public $defaultTab; public $description; public $featuredChannelsTitle; @@ -5007,6 +5048,14 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection public $unsubscribedTrailer; + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDefaultTab($defaultTab) { $this->defaultTab = $defaultTab; @@ -5109,13 +5158,24 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); + public $defaultLanguage; public $description; + protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizedDataType = ''; public $publishedAt; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; protected $thumbnailsDataType = ''; public $title; + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -5124,6 +5184,14 @@ public function getDescription() { return $this->description; } + public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -6702,6 +6770,23 @@ public function getType() } } +class Google_Service_YouTube_LanguageTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_YouTube_LiveBroadcast extends Google_Model { protected $internal_gapi_mappings = array( @@ -7336,6 +7421,8 @@ class Google_Service_YouTube_LocalizedProperty extends Google_Collection protected $internal_gapi_mappings = array( ); public $default; + protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; + protected $defaultLanguageDataType = ''; protected $localizedType = 'Google_Service_YouTube_LocalizedString'; protected $localizedDataType = 'array'; @@ -7348,6 +7435,14 @@ public function getDefault() { return $this->default; } + public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setLocalized($localized) { $this->localized = $localized; From 13a4e0bb5e7a992cf489190e34b935c790e8c02f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:51 -0500 Subject: [PATCH 0572/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 18484 ++++++++++++++++++++++++-- 1 file changed, 17168 insertions(+), 1316 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 0e7325d3f..fdc138a09 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -16,10 +16,10 @@ */ /** - * Service definition for Dfareporting (v1.3). + * Service definition for Dfareporting (v2.0). * *

- * Lets you create, run and download reports.

+ * Manage your DoubleClick Campaign Manager ad campaigns and reports.

* *

* For more information about this service, see the API @@ -33,13 +33,60 @@ class Google_Service_Dfareporting extends Google_Service /** View and manage DoubleClick for Advertisers reports. */ const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting"; + /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */ + const DFATRAFFICKING = + "https://www.googleapis.com/auth/dfatrafficking"; + public $accountActiveAdSummaries; + public $accountPermissionGroups; + public $accountPermissions; + public $accountUserProfiles; + public $accounts; + public $ads; + public $advertiserGroups; + public $advertisers; + public $browsers; + public $campaignCreativeAssociations; + public $campaigns; + public $changeLogs; + public $cities; + public $connectionTypes; + public $contentCategories; + public $countries; + public $creativeAssets; + public $creativeFieldValues; + public $creativeFields; + public $creativeGroups; + public $creatives; public $dimensionValues; + public $directorySiteContacts; + public $directorySites; + public $eventTags; public $files; + public $floodlightActivities; + public $floodlightActivityGroups; + public $floodlightConfigurations; + public $landingPages; + public $metros; + public $mobileCarriers; + public $operatingSystemVersions; + public $operatingSystems; + public $placementGroups; + public $placementStrategies; + public $placements; + public $platformTypes; + public $postalCodes; + public $regions; public $reports; public $reports_compatibleFields; public $reports_files; + public $sites; + public $sizes; + public $subaccounts; public $userProfiles; + public $userRolePermissionGroups; + public $userRolePermissions; + public $userRoles; /** @@ -50,61 +97,58 @@ class Google_Service_Dfareporting extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dfareporting/v1.3/'; - $this->version = 'v1.3'; + $this->servicePath = 'dfareporting/v2.0/'; + $this->version = 'v2.0'; $this->serviceName = 'dfareporting'; - $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( + $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( $this, $this->serviceName, - 'dimensionValues', + 'accountActiveAdSummaries', array( 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/dimensionvalues/query', - 'httpMethod' => 'POST', + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', + 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + 'summaryAccountId' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), ), ) ) ); - $this->files = new Google_Service_Dfareporting_Files_Resource( + $this->accountPermissionGroups = new Google_Service_Dfareporting_AccountPermissionGroups_Resource( $this, $this->serviceName, - 'files', + 'accountPermissionGroups', array( 'methods' => array( 'get' => array( - 'path' => 'reports/{reportId}/files/{fileId}', + 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}', 'httpMethod' => 'GET', 'parameters' => array( - 'reportId' => array( + 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'fileId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'userprofiles/{profileId}/files', + 'path' => 'userprofiles/{profileId}/accountPermissionGroups', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -112,54 +156,34 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) ) ); - $this->reports = new Google_Service_Dfareporting_Reports_Resource( + $this->accountPermissions = new Google_Service_Dfareporting_AccountPermissions_Resource( $this, $this->serviceName, - 'reports', + 'accountPermissions', array( 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'DELETE', + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions/{id}', + 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'reportId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -167,24 +191,34 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'reportId' => array( + ), + ), + ) + ) + ); + $this->accountUserProfiles = new Google_Service_Dfareporting_AccountUserProfiles_Resource( + $this, + $this->serviceName, + 'accountUserProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports', + 'path' => 'userprofiles/{profileId}/accountUserProfiles', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -192,10 +226,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortField' => array( 'location' => 'query', 'type' => 'string', ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -204,17 +251,21 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'userRoleId' => array( 'location' => 'query', 'type' => 'string', ), - 'scope' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'patch' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'path' => 'userprofiles/{profileId}/accountUserProfiles', 'httpMethod' => 'PATCH', 'parameters' => array( 'profileId' => array( @@ -222,59 +273,104 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'reportId' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'run' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', - 'httpMethod' => 'POST', + ), + ) + ) + ); + $this->accounts = new Google_Service_Dfareporting_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accounts/{id}', + 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'reportId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'synchronous' => array( + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( 'location' => 'query', 'type' => 'boolean', ), ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PUT', + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PATCH', 'parameters' => array( 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'reportId' => array( - 'location' => 'path', + 'id' => array( + 'location' => 'query', 'type' => 'string', 'required' => true, ), ), - ), - ) - ) - ); - $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( - $this, - $this->serviceName, - 'compatibleFields', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', - 'httpMethod' => 'POST', + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PUT', 'parameters' => array( 'profileId' => array( 'location' => 'path', @@ -286,14 +382,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( + $this->ads = new Google_Service_Dfareporting_Ads_Resource( $this, $this->serviceName, - 'files', + 'ads', array( 'methods' => array( 'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', + 'path' => 'userprofiles/{profileId}/ads/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -301,19 +397,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'reportId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'fileId' => array( + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', + 'path' => 'userprofiles/{profileId}/ads', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -321,18 +422,37 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'reportId' => array( - 'location' => 'path', + 'landingPageIds' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + 'repeated' => true, ), - 'sortField' => array( + 'overriddenEventTagId' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'campaignIds' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeOptimizationConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sslCompliant' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, ), 'pageToken' => array( 'location' => 'query', @@ -342,385 +462,15342 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - ), - ), - ) - ) - ); - $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( - $this, - $this->serviceName, - 'userProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', + 'type' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + 'repeated' => true, ), - ), - ),'list' => array( - 'path' => 'userprofiles', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "dimensionValues" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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 string pageToken The value of the nextToken from the previous - * result page. - * @opt_param int maxResults Maximum number of results to return. - * @return Google_Service_Dfareporting_DimensionValueList - */ + 'sslRequired' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'creativeType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'compatibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'audienceSegmentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'remarketingListIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'dynamicClickTracker' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertiserGroups = new Google_Service_Dfareporting_AdvertiserGroups_Resource( + $this, + $this->serviceName, + 'advertiserGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertisers = new Google_Service_Dfareporting_Advertisers_Resource( + $this, + $this->serviceName, + 'advertisers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/advertisers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeAdvertisersWithoutGroupsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onlyParent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->browsers = new Google_Service_Dfareporting_Browsers_Resource( + $this, + $this->serviceName, + 'browsers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/browsers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->campaignCreativeAssociations = new Google_Service_Dfareporting_CampaignCreativeAssociations_Resource( + $this, + $this->serviceName, + 'campaignCreativeAssociations', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->campaigns = new Google_Service_Dfareporting_Campaigns_Resource( + $this, + $this->serviceName, + 'campaigns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageUrl' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'excludedIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'overriddenEventTagId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'atLeastOneOptimizationActivity' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->changeLogs = new Google_Service_Dfareporting_ChangeLogs_Resource( + $this, + $this->serviceName, + 'changeLogs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/changeLogs/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/changeLogs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'minChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProfileIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'objectIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'action' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'objectType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->cities = new Google_Service_Dfareporting_Cities_Resource( + $this, + $this->serviceName, + 'cities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/cities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'namePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'countryDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->connectionTypes = new Google_Service_Dfareporting_ConnectionTypes_Resource( + $this, + $this->serviceName, + 'connectionTypes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->contentCategories = new Google_Service_Dfareporting_ContentCategories_Resource( + $this, + $this->serviceName, + 'contentCategories', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->countries = new Google_Service_Dfareporting_Countries_Resource( + $this, + $this->serviceName, + 'countries', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/countries/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/countries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeAssets = new Google_Service_Dfareporting_CreativeAssets_Resource( + $this, + $this->serviceName, + 'creativeAssets', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFieldValues = new Google_Service_Dfareporting_CreativeFieldValues_Resource( + $this, + $this->serviceName, + 'creativeFieldValues', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFields = new Google_Service_Dfareporting_CreativeFields_Resource( + $this, + $this->serviceName, + 'creativeFields', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeGroups = new Google_Service_Dfareporting_CreativeGroups_Resource( + $this, + $this->serviceName, + 'creativeGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupNumber' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creatives = new Google_Service_Dfareporting_Creatives_Resource( + $this, + $this->serviceName, + 'creatives', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creatives/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'renderingIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'studioCreativeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companionCreativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeFieldIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'types' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( + $this, + $this->serviceName, + 'dimensionValues', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/dimensionvalues/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->directorySiteContacts = new Google_Service_Dfareporting_DirectorySiteContacts_Resource( + $this, + $this->serviceName, + 'directorySiteContacts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->directorySites = new Google_Service_Dfareporting_DirectorySites_Resource( + $this, + $this->serviceName, + 'directorySites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'countryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dfp_network_code' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->eventTags = new Google_Service_Dfareporting_EventTags_Resource( + $this, + $this->serviceName, + 'eventTags', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'enabled' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'eventTagTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'definitionsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->files = new Google_Service_Dfareporting_Files_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->floodlightActivities = new Google_Service_Dfareporting_FloodlightActivities_Resource( + $this, + $this->serviceName, + 'floodlightActivities', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generatetag' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'floodlightActivityGroupName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'tagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupTagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightActivityGroups = new Google_Service_Dfareporting_FloodlightActivityGroups_Resource( + $this, + $this->serviceName, + 'floodlightActivityGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightConfigurations = new Google_Service_Dfareporting_FloodlightConfigurations_Resource( + $this, + $this->serviceName, + 'floodlightConfigurations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( + $this, + $this->serviceName, + 'landingPages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->metros = new Google_Service_Dfareporting_Metros_Resource( + $this, + $this->serviceName, + 'metros', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/metros', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->mobileCarriers = new Google_Service_Dfareporting_MobileCarriers_Resource( + $this, + $this->serviceName, + 'mobileCarriers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystemVersions = new Google_Service_Dfareporting_OperatingSystemVersions_Resource( + $this, + $this->serviceName, + 'operatingSystemVersions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystems = new Google_Service_Dfareporting_OperatingSystems_Resource( + $this, + $this->serviceName, + 'operatingSystems', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( + $this, + $this->serviceName, + 'placementGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/placementGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( + $this, + $this->serviceName, + 'placementStrategies', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placements = new Google_Service_Dfareporting_Placements_Resource( + $this, + $this->serviceName, + 'placements', + array( + 'methods' => array( + 'generatetags' => array( + 'path' => 'userprofiles/{profileId}/placements/generatetags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagFormats' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placements/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'paymentSource' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'compatibilities' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->platformTypes = new Google_Service_Dfareporting_PlatformTypes_Resource( + $this, + $this->serviceName, + 'platformTypes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/platformTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->postalCodes = new Google_Service_Dfareporting_PostalCodes_Resource( + $this, + $this->serviceName, + 'postalCodes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/postalCodes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Dfareporting_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_Dfareporting_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'run' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'synchronous' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( + $this, + $this->serviceName, + 'compatibleFields', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sites = new Google_Service_Dfareporting_Sites_Resource( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adWordsSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'unmappedSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'approved' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sizes = new Google_Service_Dfareporting_Sizes_Resource( + $this, + $this->serviceName, + 'sizes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sizes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'iabStandard' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'width' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'height' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->subaccounts = new Google_Service_Dfareporting_Subaccounts_Resource( + $this, + $this->serviceName, + 'subaccounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/subaccounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( + $this, + $this->serviceName, + 'userProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->userRolePermissionGroups = new Google_Service_Dfareporting_UserRolePermissionGroups_Resource( + $this, + $this->serviceName, + 'userRolePermissionGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->userRolePermissions = new Google_Service_Dfareporting_UserRolePermissions_Resource( + $this, + $this->serviceName, + 'userRolePermissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->userRoles = new Google_Service_Dfareporting_UserRoles_Resource( + $this, + $this->serviceName, + 'userRoles', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'accountUserRoleOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accountActiveAdSummaries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries; + * + */ +class Google_Service_Dfareporting_AccountActiveAdSummaries_Resource extends Google_Service_Resource +{ + + /** + * Gets the account's active ad summary by account ID. + * (accountActiveAdSummaries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $summaryAccountId Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountActiveAdSummary + */ + public function get($profileId, $summaryAccountId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary"); + } +} + +/** + * The "accountPermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; + * + */ +class Google_Service_Dfareporting_AccountPermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission group by ID. (accountPermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup"); + } + + /** + * Retrieves the list of account permission groups. + * (accountPermissionGroups.listAccountPermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse + */ + public function listAccountPermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse"); + } +} + +/** + * The "accountPermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissions = $dfareportingService->accountPermissions; + * + */ +class Google_Service_Dfareporting_AccountPermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission by ID. (accountPermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission"); + } + + /** + * Retrieves the list of account permissions. + * (accountPermissions.listAccountPermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionsListResponse + */ + public function listAccountPermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse"); + } +} + +/** + * The "accountUserProfiles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountUserProfiles = $dfareportingService->accountUserProfiles; + * + */ +class Google_Service_Dfareporting_AccountUserProfiles_Resource extends Google_Service_Resource +{ + + /** + * Gets one account user profile by ID. (accountUserProfiles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Retrieves a list of account user profiles, possibly filtered. + * (accountUserProfiles.listAccountUserProfiles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "user profile*2010" will + * return objects with names like "user profile June 2010", "user profile April + * 2010" or simply "user profile 2010". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "user profile" will match objects with name "my user + * profile", "user profile 2010" or simply "user profile". + * @opt_param string subaccountId Select only user profiles with the specified + * subaccount ID. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Select only user profiles with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string userRoleId Select only user profiles with the specified + * user role ID. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active user profiles. + * @return Google_Service_Dfareporting_AccountUserProfilesListResponse + */ + public function listAccountUserProfiles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse"); + } + + /** + * Updates an existing account user profile. This method supports patch + * semantics. (accountUserProfiles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Updates an existing account user profile. (accountUserProfiles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } +} + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accounts = $dfareportingService->accounts; + * + */ +class Google_Service_Dfareporting_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one account by ID. (accounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Retrieves the list of accounts, possibly filtered. (accounts.listAccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "account*2010" will return objects + * with names like "account June 2010", "account April 2010" or simply "account + * 2010". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "account" will + * match objects with name "my account", "account 2010" or simply "account". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Select only accounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active accounts. Don't set this field to + * select both active and non-active accounts. + * @return Google_Service_Dfareporting_AccountsListResponse + */ + public function listAccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse"); + } + + /** + * Updates an existing account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Updates an existing account. (accounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Account"); + } +} + +/** + * The "ads" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $ads = $dfareportingService->ads; + * + */ +class Google_Service_Dfareporting_Ads_Resource extends Google_Service_Resource +{ + + /** + * Gets one ad by ID. (ads.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Inserts a new ad. (ads.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Retrieves a list of ads, possibly filtered. (ads.listAds) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string landingPageIds Select only ads with these landing page IDs. + * @opt_param string overriddenEventTagId Select only ads with this event tag + * override ID. + * @opt_param string campaignIds Select only ads with these campaign IDs. + * @opt_param bool archived Select only archived ads. + * @opt_param string creativeOptimizationConfigurationIds Select only ads with + * these creative optimization configuration IDs. + * @opt_param bool sslCompliant Select only ads that are ssl compliant. + * @opt_param string sizeIds Select only ads with these size IDs. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only ads with these types. + * @opt_param bool sslRequired Select only ads that require ssl. + * @opt_param string creativeIds Select only ads with these creative IDs + * assigned. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string creativeType Select only ads with the specified + * CreativeType. + * @opt_param string placementIds Select only ads with these placement IDs + * assigned. + * @opt_param bool active Select only active ads. + * @opt_param string compatibility Applicable when type is + * AD_SERVING_DEFAULT_AD. Select default ads with the specified compatibility. + * WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile + * devices for regular or interstitial ads respectively. APP and + * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to + * rendering in in-stream video ads developed with the VAST standard. + * @opt_param string advertiserId Select only ads with this advertiser ID. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "ad*2010" will return objects with + * names like "ad June 2010", "ad April 2010" or simply "ad 2010". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "ad" will match objects with name "my + * ad", "ad 2010" or simply "ad". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string audienceSegmentIds Select only ads with these audience + * segment IDs. + * @opt_param string ids Select only ads with these IDs. + * @opt_param string remarketingListIds Select only ads whose list targeting + * expression use these remarketing list IDs. + * @opt_param bool dynamicClickTracker Applicable when type is + * AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, + * select static click trackers. Leave unset to select both. + * @return Google_Service_Dfareporting_AdsListResponse + */ + public function listAds($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse"); + } + + /** + * Updates an existing ad. This method supports patch semantics. (ads.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Updates an existing ad. (ads.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Ad"); + } +} + +/** + * The "advertiserGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertiserGroups = $dfareportingService->advertiserGroups; + * + */ +class Google_Service_Dfareporting_AdvertiserGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing advertiser group. (advertiserGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one advertiser group by ID. (advertiserGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Inserts a new advertiser group. (advertiserGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Retrieves a list of advertiser groups, possibly filtered. + * (advertiserGroups.listAdvertiserGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2010" will return objects + * with names like "advertiser group June 2010", "advertiser group April 2010" + * or simply "advertiser group 2010". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "advertisergroup" will match objects with name "my + * advertisergroup", "advertisergroup 2010" or simply "advertisergroup". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified advertiser groups to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse + */ + public function listAdvertiserGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse"); + } + + /** + * Updates an existing advertiser group. This method supports patch semantics. + * (advertiserGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Updates an existing advertiser group. (advertiserGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } +} + +/** + * The "advertisers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertisers = $dfareportingService->advertisers; + * + */ +class Google_Service_Dfareporting_Advertisers_Resource extends Google_Service_Resource +{ + + /** + * Gets one advertiser by ID. (advertisers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Inserts a new advertiser. (advertisers.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Retrieves a list of advertisers, possibly filtered. + * (advertisers.listAdvertisers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string status Specifies the status of retrieved advertisers. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2010" will return objects + * with names like "advertiser June 2010", "advertiser April 2010" or simply + * "advertiser 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "advertiser" will match objects with name "my advertiser", "advertiser 2010" + * or simply "advertiser". + * @opt_param string subaccountId Subaccount ID of advertisers to retrieve. + * @opt_param bool includeAdvertisersWithoutGroupsOnly If true, will return only + * advertisers which do not belong to any advertiser group. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified advertisers to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param bool onlyParent If true, will return only advertisers which use + * another advertiser's floodlight configuration. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string floodlightConfigurationIds Set of floodlight configuration + * IDs of advertisers to retrieve. + * @opt_param string advertiserGroupIds Set of advertiser group IDs of + * advertisers to retrieve. + * @return Google_Service_Dfareporting_AdvertisersListResponse + */ + public function listAdvertisers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse"); + } + + /** + * Updates an existing advertiser. This method supports patch semantics. + * (advertisers.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Updates an existing advertiser. (advertisers.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser"); + } +} + +/** + * The "browsers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $browsers = $dfareportingService->browsers; + * + */ +class Google_Service_Dfareporting_Browsers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of browsers. (browsers.listBrowsers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_BrowsersListResponse + */ + public function listBrowsers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse"); + } +} + +/** + * The "campaignCreativeAssociations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations; + * + */ +class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends Google_Service_Resource +{ + + /** + * Associates a creative with this campaign. This method creates a default ad + * with dimensions matching the creative in this campaign if such a default ad + * does not exist already. (campaignCreativeAssociations.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param Google_CampaignCreativeAssociation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CampaignCreativeAssociation + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation"); + } + + /** + * Retrieves the list of creative IDs associated with this campaign. + * (campaignCreativeAssociations.listCampaignCreativeAssociations) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse + */ + public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse"); + } +} + +/** + * The "campaigns" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaigns = $dfareportingService->campaigns; + * + */ +class Google_Service_Dfareporting_Campaigns_Resource extends Google_Service_Resource +{ + + /** + * Gets one campaign by ID. (campaigns.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Inserts a new campaign. (campaigns.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $defaultLandingPageName Default landing page name for this new + * campaign. + * @param string $defaultLandingPageUrl Default landing page URL for this new + * campaign. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Retrieves a list of campaigns, possibly filtered. (campaigns.listCampaigns) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool archived Select only archived campaigns. Don't set this field + * to select both archived and non-archived campaigns. + * @opt_param string searchString Allows searching for campaigns by name or ID. + * Wildcards (*) are allowed. For example, "campaign*2010" will return campaigns + * with names like "campaign June 2010", "campaign April 2010" or simply + * "campaign 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "campaign" will match campaigns with name "my campaign", "campaign 2010" or + * simply "campaign". + * @opt_param string subaccountId Select only campaigns that belong to this + * subaccount. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string advertiserIds Select only campaigns that belong to these + * advertisers. + * @opt_param string ids Select only campaigns with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string excludedIds Exclude campaigns with these IDs. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string advertiserGroupIds Select only campaigns whose advertisers + * belong to these advertiser groups. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string overriddenEventTagId Select only campaigns that have + * overridden this event tag ID. + * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that + * have at least one optimization activity. + * @return Google_Service_Dfareporting_CampaignsListResponse + */ + public function listCampaigns($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse"); + } + + /** + * Updates an existing campaign. This method supports patch semantics. + * (campaigns.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Updates an existing campaign. (campaigns.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign"); + } +} + +/** + * The "changeLogs" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $changeLogs = $dfareportingService->changeLogs; + * + */ +class Google_Service_Dfareporting_ChangeLogs_Resource extends Google_Service_Resource +{ + + /** + * Gets one change log by ID. (changeLogs.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Change log ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ChangeLog + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog"); + } + + /** + * Retrieves a list of change logs. (changeLogs.listChangeLogs) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string minChangeTime Select only change logs whose change time is + * before the specified minChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2014, in the + * America/New York time zone, the format is "2014-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string searchString Select only change logs whose object ID, user + * name, old or new values match the search string. + * @opt_param string maxChangeTime Select only change logs whose change time is + * before the specified maxChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2014, in the + * America/New York time zone, the format is "2014-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string userProfileIds Select only change logs with these user + * profile IDs. + * @opt_param string ids Select only change logs with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string objectIds Select only change logs with these object IDs. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string action Select only change logs with the specified action. + * @opt_param string objectType Select only change logs with the specified + * object type. + * @return Google_Service_Dfareporting_ChangeLogsListResponse + */ + public function listChangeLogs($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse"); + } +} + +/** + * The "cities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $cities = $dfareportingService->cities; + * + */ +class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of cities, possibly filtered. (cities.listCities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string dartIds Return cities with these IDs. + * @opt_param string namePrefix Select cities with names starting with this + * prefix. + * @opt_param string regionDartIds Select cities from these regions. + * @opt_param string countryDartIds Select cities from these countries. + * @return Google_Service_Dfareporting_CitiesListResponse + */ + public function listCities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse"); + } +} + +/** + * The "connectionTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $connectionTypes = $dfareportingService->connectionTypes; + * + */ +class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionTypesListResponse + */ + public function listConnectionTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse"); + } +} + +/** + * The "contentCategories" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $contentCategories = $dfareportingService->contentCategories; + * + */ +class Google_Service_Dfareporting_ContentCategories_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing content category. (contentCategories.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one content category by ID. (contentCategories.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Inserts a new content category. (contentCategories.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Retrieves a list of content categories, possibly filtered. + * (contentCategories.listContentCategories) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "contentcategory*2010" will return + * objects with names like "contentcategory June 2010", "contentcategory April + * 2010" or simply "contentcategory 2010". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "contentcategory" will match objects with name + * "my contentcategory", "contentcategory 2010" or simply "contentcategory". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified content categories to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ContentCategoriesListResponse + */ + public function listContentCategories($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse"); + } + + /** + * Updates an existing content category. This method supports patch semantics. + * (contentCategories.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Updates an existing content category. (contentCategories.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory"); + } +} + +/** + * The "countries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $countries = $dfareportingService->countries; + * + */ +class Google_Service_Dfareporting_Countries_Resource extends Google_Service_Resource +{ + + /** + * Gets one country by ID. (countries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Country DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Country + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Country"); + } + + /** + * Retrieves a list of countries. (countries.listCountries) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CountriesListResponse + */ + public function listCountries($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse"); + } +} + +/** + * The "creativeAssets" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeAssets = $dfareportingService->creativeAssets; + * + */ +class Google_Service_Dfareporting_CreativeAssets_Resource extends Google_Service_Resource +{ + + /** + * Inserts a new creative asset. (creativeAssets.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Advertiser ID of this creative. This is a + * required field. + * @param Google_CreativeAssetMetadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeAssetMetadata + */ + public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata"); + } +} + +/** + * The "creativeFieldValues" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFieldValues = $dfareportingService->creativeFieldValues; + * + */ +class Google_Service_Dfareporting_CreativeFieldValues_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field value. (creativeFieldValues.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field value by ID. (creativeFieldValues.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function get($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Inserts a new creative field value. (creativeFieldValues.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Retrieves a list of creative field values, possibly filtered. + * (creativeFieldValues.listCreativeFieldValues) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative field values by + * their values. Wildcards (e.g. *) are not allowed. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Select only creative field values with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse + */ + public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse"); + } + + /** + * Updates an existing creative field value. This method supports patch + * semantics. (creativeFieldValues.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Updates an existing creative field value. (creativeFieldValues.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } +} + +/** + * The "creativeFields" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFields = $dfareportingService->creativeFields; + * + */ +class Google_Service_Dfareporting_CreativeFields_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field. (creativeFields.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field by ID. (creativeFields.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Inserts a new creative field. (creativeFields.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Retrieves a list of creative fields, possibly filtered. + * (creativeFields.listCreativeFields) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative fields by name + * or ID. Wildcards (*) are allowed. For example, "creativefield*2010" will + * return creative fields with names like "creativefield June 2010", + * "creativefield April 2010" or simply "creativefield 2010". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativefield" will match + * creative fields with the name "my creativefield", "creativefield 2010" or + * simply "creativefield". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string advertiserIds Select only creative fields that belong to + * these advertisers. + * @opt_param string ids Select only creative fields with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldsListResponse + */ + public function listCreativeFields($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse"); + } + + /** + * Updates an existing creative field. This method supports patch semantics. + * (creativeFields.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Updates an existing creative field. (creativeFields.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField"); + } +} + +/** + * The "creativeGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeGroups = $dfareportingService->creativeGroups; + * + */ +class Google_Service_Dfareporting_CreativeGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative group by ID. (creativeGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Inserts a new creative group. (creativeGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Retrieves a list of creative groups, possibly filtered. + * (creativeGroups.listCreativeGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative groups by name + * or ID. Wildcards (*) are allowed. For example, "creativegroup*2010" will + * return creative groups with names like "creativegroup June 2010", + * "creativegroup April 2010" or simply "creativegroup 2010". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativegroup" will match + * creative groups with the name "my creativegroup", "creativegroup 2010" or + * simply "creativegroup". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string advertiserIds Select only creative groups that belong to + * these advertisers. + * @opt_param int groupNumber Select only creative groups that belong to this + * subgroup. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string ids Select only creative groups with these IDs. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeGroupsListResponse + */ + public function listCreativeGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse"); + } + + /** + * Updates an existing creative group. This method supports patch semantics. + * (creativeGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Updates an existing creative group. (creativeGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } +} + +/** + * The "creatives" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creatives = $dfareportingService->creatives; + * + */ +class Google_Service_Dfareporting_Creatives_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative by ID. (creatives.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Inserts a new creative. (creatives.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Retrieves a list of creatives, possibly filtered. (creatives.listCreatives) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string sizeIds Select only creatives with specified size. + * @opt_param bool archived Select only archived creatives. Leave blank to + * select archived and unarchived creatives. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "creative*2010" will return objects + * with names like "creative June 2010", "creative April 2010" or simply + * "creative 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "creative" will match objects with name "my creative", "creative 2010" or + * simply "creative". + * @opt_param string campaignId Campaign ID of creatives to retrieve. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string renderingIds Select only creatives with specified rendering + * IDs. + * @opt_param string ids List of creative IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Advertiser ID. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string studioCreativeId Studio creative ID associated with DCM + * creatives. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string companionCreativeIds Select only in-stream video creatives + * with specified companion IDs. + * @opt_param bool active Select only active creatives. Leave blank to select + * active and inactive creatives. + * @opt_param string creativeFieldIds Select only creatives with specified + * creative field IDs. + * @opt_param string types Select only creatives with specified type of + * creative. + * @return Google_Service_Dfareporting_CreativesListResponse + */ + public function listCreatives($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse"); + } + + /** + * Updates an existing creative. This method supports patch semantics. + * (creatives.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Updates an existing creative. (creatives.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Creative"); + } +} + +/** + * The "dimensionValues" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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 string pageToken The value of the nextToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Dfareporting_DimensionValueList + */ public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); + } +} + +/** + * The "directorySiteContacts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySiteContacts = $dfareportingService->directorySiteContacts; + * + */ +class Google_Service_Dfareporting_DirectorySiteContacts_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site contact by ID. (directorySiteContacts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site contact ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySiteContact + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); + } + + /** + * Retrieves a list of directory site contacts, possibly filtered. + * (directorySiteContacts.listDirectorySiteContacts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "directory site contact*2010" + * will return objects with names like "directory site contact June 2010", + * "directory site contact April 2010" or simply "directory site contact 2010". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "directory site + * contact" will match objects with name "my directory site contact", "directory + * site contact 2010" or simply "directory site contact". + * @opt_param string directorySiteIds Retrieve contacts of directory sites with + * this set of IDs. This is a required field. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified directory site contacts to + * retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse + */ + public function listDirectorySiteContacts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); + } +} + +/** + * The "directorySites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySites = $dfareportingService->directorySites; + * + */ +class Google_Service_Dfareporting_DirectorySites_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site by ID. (directorySites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + + /** + * Retrieves a list of directory sites, possibly filtered. + * (directorySites.listDirectorySites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements Select only sites that accept + * interstitial placements. This field be left blank. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * URL. Wildcards (*) are allowed. For example, "directory site*2010" will + * return objects with names like "directory site June 2010", "directory site + * April 2010" or simply "directory site 2010". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "directory site" will match objects with name "my + * directory site", "directory site 2010" or simply "directory site". + * @opt_param string countryId Country ID of directory sites to retrieve. + * @opt_param string sortField The field by which to sort the list. + * @opt_param bool acceptsInStreamVideoPlacements Select only sites that accept + * in-stream video placements. This field can be left blank. + * @opt_param string ids Set of IDs of specified directory sites to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites + * that accept publisher paid placements. This field can be left blank. + * @opt_param string parentId Parent ID of directory sites to retrieve. + * @opt_param bool active Whether to retrieve active directory sites. Leave + * blank to retrieve both active and inactive directory sites. + * @opt_param string dfp_network_code DFP network code of directory sites to + * retrieve. + * @return Google_Service_Dfareporting_DirectorySitesListResponse + */ + public function listDirectorySites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse"); + } +} + +/** + * The "eventTags" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $eventTags = $dfareportingService->eventTags; + * + */ +class Google_Service_Dfareporting_EventTags_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing event tag. (eventTags.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one event tag by ID. (eventTags.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Inserts a new event tag. (eventTags.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "eventtag*2010" will return objects + * with names like "eventtag June 2010", "eventtag April 2010" or simply + * "eventtag 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "eventtag" will match objects with name "my eventtag", "eventtag 2010" or + * simply "eventtag". + * @opt_param string campaignId Select only event tags that belong to this + * campaign. + * @opt_param string sortField The field by which to sort the list. + * @opt_param bool enabled Select only enabled event tags. When definitionsOnly + * is set to true, only the specified advertiser or campaign's event tags' + * enabledByDefault field is examined. When definitionsOnly is set to false, the + * specified ad or specified campaign's parent advertiser's or parent campaign's + * event tags' enabledByDefault and status fields are examined as well. + * @opt_param string ids Set of IDs of specified event tags to retrieve. + * @opt_param string advertiserId Select only event tags that belong to this + * advertiser. + * @opt_param string adId Select only event tags that belong to this ad. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string eventTagTypes Select only event tags with the specified + * event tag types. Event tag types can be used to specify whether to use a + * third-party pixel, a third-party JavaScript URL, or a third-party click- + * through URL for either impression or click tracking. + * @opt_param bool definitionsOnly Examine only the specified ad or campaign or + * advertiser's event tags for matching selector criteria. When set to false, + * the parent advertiser and parent campaign is examined as well. In addition, + * when set to false, the status field is examined as well along with the + * enabledByDefault field. + * @return Google_Service_Dfareporting_EventTagsListResponse + */ + public function listEventTags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse"); + } + + /** + * Updates an existing event tag. This method supports patch semantics. + * (eventTags.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Updates an existing event tag. (eventTags.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag"); + } +} + +/** + * The "files" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $files = $dfareportingService->files; + * + */ +class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a report file by its report ID and file ID. (files.get) + * + * @param string $reportId The ID of the report. + * @param string $fileId The ID of the report file. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function get($reportId, $fileId, $optParams = array()) + { + $params = array('reportId' => $reportId, 'fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a user profile. (files.listFiles) + * + * @param string $profileId The DFA profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. + * @return Google_Service_Dfareporting_FileList + */ + public function listFiles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } +} + +/** + * The "floodlightActivities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivities = $dfareportingService->floodlightActivities; + * + */ +class Google_Service_Dfareporting_FloodlightActivities_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity. (floodlightActivities.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Generates a tag for a floodlight activity. (floodlightActivities.generatetag) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityId Floodlight activity ID for which we + * want to generate a tag. + * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse + */ + public function generatetag($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse"); + } + + /** + * Gets one floodlight activity by ID. (floodlightActivities.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Inserts a new floodlight activity. (floodlightActivities.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Retrieves a list of floodlight activities, possibly filtered. + * (floodlightActivities.listFloodlightActivities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityGroupIds Retrieve Floodlight activities + * with the specified Floodlight activity group IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivity*2010" will return + * objects with names like "floodlightactivity June 2010", "floodlightactivity + * April 2010" or simply "floodlightactivity 2010". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name + * "my floodlightactivity activity", "floodlightactivity 2010" or simply + * "floodlightactivity". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string floodlightConfigurationId Retrieve Floodlight activities + * for the specified Floodlight configuration ID. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Retrieve Floodlight activities with the specified IDs. + * Must specify either ids, advertiserId, or floodlightConfigurationId for a + * non-empty result. + * @opt_param string floodlightActivityGroupName Retrieve Floodlight activities + * with the specified Floodlight activity group name. + * @opt_param string advertiserId Retrieve Floodlight activities for the + * specified advertiser ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string tagString Retrieve Floodlight activities with the specified + * tag string. + * @opt_param string floodlightActivityGroupTagString Retrieve Floodlight + * activities with the specified Floodlight activity group tag string. + * @opt_param string floodlightActivityGroupType Retrieve Floodlight activities + * with the specified Floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse + */ + public function listFloodlightActivities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse"); + } + + /** + * Updates an existing floodlight activity. This method supports patch + * semantics. (floodlightActivities.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Updates an existing floodlight activity. (floodlightActivities.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } +} + +/** + * The "floodlightActivityGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups; + * + */ +class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity group. + * (floodlightActivityGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Inserts a new floodlight activity group. (floodlightActivityGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Retrieves a list of floodlight activity groups, possibly filtered. + * (floodlightActivityGroups.listFloodlightActivityGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2010" will + * return objects with names like "floodlightactivitygroup June 2010", + * "floodlightactivitygroup April 2010" or simply "floodlightactivitygroup + * 2010". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of + * "floodlightactivitygroup" will match objects with name "my + * floodlightactivitygroup activity", "floodlightactivitygroup 2010" or simply + * "floodlightactivitygroup". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string floodlightConfigurationId Retrieve Floodlight activity + * groups with the specified Floodlight configuration ID. Must specify either + * ids, advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Retrieve Floodlight activity groups with the specified + * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for + * a non-empty result. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Retrieve Floodlight activity groups with the + * specified advertiser ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Retrieve Floodlight activity groups with the specified + * Floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse + */ + public function listFloodlightActivityGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse"); + } + + /** + * Updates an existing floodlight activity group. This method supports patch + * semantics. (floodlightActivityGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Updates an existing floodlight activity group. + * (floodlightActivityGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } +} + +/** + * The "floodlightConfigurations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightConfigurations = $dfareportingService->floodlightConfigurations; + * + */ +class Google_Service_Dfareporting_FloodlightConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Gets one floodlight configuration by ID. (floodlightConfigurations.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Retrieves a list of floodlight configurations, possibly filtered. + * (floodlightConfigurations.listFloodlightConfigurations) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Set of IDs of floodlight configurations to retrieve. + * Required field; otherwise an empty list will be returned. + * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse + */ + public function listFloodlightConfigurations($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse"); + } + + /** + * Updates an existing floodlight configuration. This method supports patch + * semantics. (floodlightConfigurations.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Updates an existing floodlight configuration. + * (floodlightConfigurations.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } +} + +/** + * The "landingPages" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $landingPages = $dfareportingService->landingPages; + * + */ +class Google_Service_Dfareporting_LandingPages_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing campaign landing page. (landingPages.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one campaign landing page by ID. (landingPages.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function get($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Inserts a new landing page for this campaign. (landingPages.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Retrieves the list of landing pages for this campaign. + * (landingPages.listLandingPages) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPagesListResponse + */ + public function listLandingPages($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse"); + } + + /** + * Updates an existing campaign landing page. This method supports patch + * semantics. (landingPages.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Updates an existing campaign landing page. (landingPages.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage"); + } +} + +/** + * The "metros" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $metros = $dfareportingService->metros; + * + */ +class Google_Service_Dfareporting_Metros_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of metros. (metros.listMetros) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MetrosListResponse + */ + public function listMetros($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse"); + } +} + +/** + * The "mobileCarriers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $mobileCarriers = $dfareportingService->mobileCarriers; + * + */ +class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarriersListResponse + */ + public function listMobileCarriers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse"); + } +} + +/** + * The "operatingSystemVersions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystemVersions = $dfareportingService->operatingSystemVersions; + * + */ +class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of operating system versions. + * (operatingSystemVersions.listOperatingSystemVersions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse + */ + public function listOperatingSystemVersions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse"); + } +} + +/** + * The "operatingSystems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystems = $dfareportingService->operatingSystems; + * + */ +class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of operating systems. + * (operatingSystems.listOperatingSystems) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemsListResponse + */ + public function listOperatingSystems($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse"); + } +} + +/** + * The "placementGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementGroups = $dfareportingService->placementGroups; + * + */ +class Google_Service_Dfareporting_PlacementGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one placement group by ID. (placementGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Inserts a new placement group. (placementGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Retrieves a list of placement groups, possibly filtered. + * (placementGroups.listPlacementGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placement groups that are + * associated with these placement strategies. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placement groups by name + * or ID. Wildcards (*) are allowed. For example, "placement*2010" will return + * placement groups with names like "placement group June 2010", "placement + * group May 2010" or simply "placements 2010". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementgroup" will match placement groups with + * name "my placementgroup", "placementgroup 2010" or simply "placementgroup". + * @opt_param string contentCategoryIds Select only placement groups that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placement groups that are + * associated with these directory sites. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string advertiserIds Select only placement groups that belong to + * these advertisers. + * @opt_param string ids Select only placement groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string placementGroupType Select only placement groups belonging + * with this group type. A package is a simple group of placements that acts as + * a single pricing point for a group of tags. A roadblock is a group of + * placements that not only acts as a single pricing point but also assumes that + * all the tags in it will be served at the same time. A roadblock requires one + * of its assigned placements to be marked as primary for reporting. + * @opt_param string pricingTypes Select only placement groups with these + * pricing types. + * @opt_param string siteIds Select only placement groups that are associated + * with these sites. + * @opt_param string campaignIds Select only placement groups that belong to + * these campaigns. + * @return Google_Service_Dfareporting_PlacementGroupsListResponse + */ + public function listPlacementGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse"); + } + + /** + * Updates an existing placement group. This method supports patch semantics. + * (placementGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Updates an existing placement group. (placementGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } +} + +/** + * The "placementStrategies" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementStrategies = $dfareportingService->placementStrategies; + * + */ +class Google_Service_Dfareporting_PlacementStrategies_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing placement strategy. (placementStrategies.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one placement strategy by ID. (placementStrategies.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Inserts a new placement strategy. (placementStrategies.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Retrieves a list of placement strategies, possibly filtered. + * (placementStrategies.listPlacementStrategies) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "placementstrategy*2010" will return + * objects with names like "placementstrategy June 2010", "placementstrategy + * April 2010" or simply "placementstrategy 2010". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementstrategy" will match objects with name + * "my placementstrategy", "placementstrategy 2010" or simply + * "placementstrategy". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified placement strategies to + * retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_PlacementStrategiesListResponse + */ + public function listPlacementStrategies($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse"); + } + + /** + * Updates an existing placement strategy. This method supports patch semantics. + * (placementStrategies.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Updates an existing placement strategy. (placementStrategies.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } +} + +/** + * The "placements" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placements = $dfareportingService->placements; + * + */ +class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Resource +{ + + /** + * Generates tags for a placement. (placements.generatetags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string tagFormats Tag formats to generate for these placements. + * @opt_param string placementIds Generate tags for these placements. + * @opt_param string campaignId Generate placements belonging to this campaign. + * This is a required field. + * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse + */ + public function generatetags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse"); + } + + /** + * Gets one placement by ID. (placements.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Inserts a new placement. (placements.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Retrieves a list of placements, possibly filtered. + * (placements.listPlacements) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placements that are + * associated with these placement strategies. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placements by name or ID. + * Wildcards (*) are allowed. For example, "placement*2010" will return + * placements with names like "placement June 2010", "placement May 2010" or + * simply "placements 2010". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string + * of "placement" will match placements with name "my placement", "placement + * 2010" or simply "placement". + * @opt_param string contentCategoryIds Select only placements that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placements that are associated + * with these directory sites. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string advertiserIds Select only placements that belong to these + * advertisers. + * @opt_param string paymentSource Select only placements with this payment + * source. + * @opt_param string ids Select only placements with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sizeIds Select only placements that are associated with + * these sizes. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string compatibilities Select only placements that are associated + * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering + * either on desktop or on mobile devices for regular or interstitial ads + * respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed + * with the VAST standard. + * @opt_param string groupIds Select only placements that belong to these + * placement groups. + * @opt_param string pricingTypes Select only placements with these pricing + * types. + * @opt_param string siteIds Select only placements that are associated with + * these sites. + * @opt_param string campaignIds Select only placements that belong to these + * campaigns. + * @return Google_Service_Dfareporting_PlacementsListResponse + */ + public function listPlacements($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse"); + } + + /** + * Updates an existing placement. This method supports patch semantics. + * (placements.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Updates an existing placement. (placements.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Placement"); + } +} + +/** + * The "platformTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $platformTypes = $dfareportingService->platformTypes; + * + */ +class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of platform types. (platformTypes.listPlatformTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformTypesListResponse + */ + public function listPlatformTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse"); + } +} + +/** + * The "postalCodes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $postalCodes = $dfareportingService->postalCodes; + * + */ +class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of postal codes. (postalCodes.listPostalCodes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCodesListResponse + */ + public function listPostalCodes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse"); + } +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $regions = $dfareportingService->regions; + * + */ +class Google_Service_Dfareporting_Regions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of regions. (regions.listRegions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RegionsListResponse + */ + public function listRegions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse"); + } +} + +/** + * The "reports" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a report by its ID. (reports.get) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function get($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Creates a report. (reports.insert) + * + * @param string $profileId The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Retrieves list of reports. (reports.listReports) + * + * @param string $profileId The DFA user profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. + * @return Google_Service_Dfareporting_ReportList + */ + public function listReports($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); + } + + /** + * Updates a report. This method supports patch semantics. (reports.patch) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Runs a report. (reports.run) + * + * @param string $profileId The DFA profile ID. + * @param string $reportId The ID of the report. + * @param array $optParams Optional parameters. + * + * @opt_param bool synchronous If set and true, tries to run the report + * synchronously. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function run($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Updates a report. (reports.update) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); + } +} + +/** + * The "compatibleFields" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $compatibleFields = $dfareportingService->compatibleFields; + * + */ +class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource +{ + + /** + * Returns the fields that are compatible to be selected in the respective + * sections of a report criteria, given the fields already selected in the input + * report and user permissions. (compatibleFields.query) + * + * @param string $profileId The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CompatibleFields + */ + public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); + } +} +/** + * The "files" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a report. (files.listReportsFiles) + * + * @param string $profileId The DFA profile ID. + * @param string $reportId The ID of the parent report. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @return Google_Service_Dfareporting_FileList + */ + public function listReportsFiles($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } +} + +/** + * The "sites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sites = $dfareportingService->sites; + * + */ +class Google_Service_Dfareporting_Sites_Resource extends Google_Service_Resource +{ + + /** + * Gets one site by ID. (sites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Inserts a new site. (sites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Retrieves a list of sites, possibly filtered. (sites.listSites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements Select only sites that accept + * interstitial placements. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * keyName. Wildcards (*) are allowed. For example, "site*2010" will return + * objects with names like "site June 2010", "site April 2010" or simply "site + * 2010". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "site" will + * match objects with name "my site", "site 2010" or simply "site". + * @opt_param string subaccountId Subaccount ID of sites to retrieve. + * @opt_param string directorySiteIds Directory site IDs of sites to retrieve. + * @opt_param bool acceptsInStreamVideoPlacements Select only sites that accept + * in-stream video placements. + * @opt_param string ids Set of IDs of specified sites to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept + * publisher paid placements. + * @opt_param string sortField The field by which to sort the list. + * @opt_param bool adWordsSite Select only AdWords sites. + * @opt_param bool unmappedSite Select only sites that have not been mapped to a + * directory site. + * @opt_param bool approved Select only approved sites. + * @opt_param string campaignIds Campaign IDs of sites to retrieve. + * @return Google_Service_Dfareporting_SitesListResponse + */ + public function listSites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse"); + } + + /** + * Updates an existing site. This method supports patch semantics. (sites.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Updates an existing site. (sites.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Site"); + } +} + +/** + * The "sizes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sizes = $dfareportingService->sizes; + * + */ +class Google_Service_Dfareporting_Sizes_Resource extends Google_Service_Resource +{ + + /** + * Gets one size by ID. (sizes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Size ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Inserts a new size. (sizes.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Size $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool iabStandard Whether only IAB standard sizes should be + * retrieved. + * @opt_param int width Width of sizes to retrieve. + * @opt_param string ids Set of IDs of specified sizes to retrieve. + * @opt_param int height Height of sizes to retrieve. + * @return Google_Service_Dfareporting_SizesListResponse + */ + public function listSizes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse"); + } +} + +/** + * The "subaccounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $subaccounts = $dfareportingService->subaccounts; + * + */ +class Google_Service_Dfareporting_Subaccounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one subaccount by ID. (subaccounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Inserts a new subaccount. (subaccounts.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Gets a list of subaccounts, possibly filtered. (subaccounts.listSubaccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "subaccount*2010" will return objects + * with names like "subaccount June 2010", "subaccount April 2010" or simply + * "subaccount 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "subaccount" will match objects with name "my subaccount", "subaccount 2010" + * or simply "subaccount". + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids The set of IDs of the subaccounts to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_SubaccountsListResponse + */ + public function listSubaccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse"); + } + + /** + * Updates an existing subaccount. This method supports patch semantics. + * (subaccounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Updates an existing subaccount. (subaccounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount"); + } +} + +/** + * The "userProfiles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); + } + + /** + * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserProfileList + */ + public function listUserProfiles($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); + } +} + +/** + * The "userRolePermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups; + * + */ +class Google_Service_Dfareporting_UserRolePermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission group by ID. (userRolePermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup"); + } + + /** + * Gets a list of all supported user role permission groups. + * (userRolePermissionGroups.listUserRolePermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse + */ + public function listUserRolePermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse"); + } +} + +/** + * The "userRolePermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissions = $dfareportingService->userRolePermissions; + * + */ +class Google_Service_Dfareporting_UserRolePermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission by ID. (userRolePermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission"); + } + + /** + * Gets a list of user role permissions, possibly filtered. + * (userRolePermissions.listUserRolePermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Set of IDs of specified user role permissions to + * retrieve. + * @return Google_Service_Dfareporting_UserRolePermissionsListResponse + */ + public function listUserRolePermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse"); + } +} + +/** + * The "userRoles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRoles = $dfareportingService->userRoles; + * + */ +class Google_Service_Dfareporting_UserRoles_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing user role. (userRoles.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one user role by ID. (userRoles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Inserts a new user role. (userRoles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Retrieves a list of user roles, possibly filtered. (userRoles.listUserRoles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "userrole*2010" will return objects + * with names like "userrole June 2010", "userrole April 2010" or simply + * "userrole 2010". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "userrole" will match objects with name "my userrole", "userrole 2010" or + * simply "userrole". + * @opt_param string subaccountId Select only user roles that belong to this + * subaccount. + * @opt_param string sortField The field by which to sort the list. + * @opt_param string ids Set of IDs of specified user roles to retrieve. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool accountUserRoleOnly If true, select only account level user + * roles not associated with any specific subaccount. + * @return Google_Service_Dfareporting_UserRolesListResponse + */ + public function listUserRoles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse"); + } + + /** + * Updates an existing user role. This method supports patch semantics. + * (userRoles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Updates an existing user role. (userRoles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole"); + } +} + + + + +class Google_Service_Dfareporting_Account extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountPermissionIds; + public $accountProfile; + public $active; + public $activeAdsLimitTier; + public $activeViewOptOut; + public $availablePermissionIds; + public $comscoreVceEnabled; + public $countryId; + public $currencyId; + public $defaultCreativeSizeId; + public $description; + public $id; + public $kind; + public $locale; + public $maximumImageSize; + public $name; + public $nielsenOcrEnabled; + protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration'; + protected $reportsConfigurationDataType = ''; + public $teaserSizeLimit; + + + public function setAccountPermissionIds($accountPermissionIds) + { + $this->accountPermissionIds = $accountPermissionIds; + } + public function getAccountPermissionIds() + { + return $this->accountPermissionIds; + } + public function setAccountProfile($accountProfile) + { + $this->accountProfile = $accountProfile; + } + public function getAccountProfile() + { + return $this->accountProfile; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setAvailablePermissionIds($availablePermissionIds) + { + $this->availablePermissionIds = $availablePermissionIds; + } + public function getAvailablePermissionIds() + { + return $this->availablePermissionIds; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + public function setDefaultCreativeSizeId($defaultCreativeSizeId) + { + $this->defaultCreativeSizeId = $defaultCreativeSizeId; + } + public function getDefaultCreativeSizeId() + { + return $this->defaultCreativeSizeId; + } + 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($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setMaximumImageSize($maximumImageSize) + { + $this->maximumImageSize = $maximumImageSize; + } + public function getMaximumImageSize() + { + return $this->maximumImageSize; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration) + { + $this->reportsConfiguration = $reportsConfiguration; + } + public function getReportsConfiguration() + { + return $this->reportsConfiguration; + } + public function setTeaserSizeLimit($teaserSizeLimit) + { + $this->teaserSizeLimit = $teaserSizeLimit; + } + public function getTeaserSizeLimit() + { + return $this->teaserSizeLimit; + } +} + +class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $activeAds; + public $activeAdsLimitTier; + public $availableAds; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActiveAds($activeAds) + { + $this->activeAds = $activeAds; + } + public function getActiveAds() + { + return $this->activeAds; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setAvailableAds($availableAds) + { + $this->availableAds = $availableAds; + } + public function getAvailableAds() + { + return $this->availableAds; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermission extends Google_Collection +{ + protected $collection_key = 'accountProfiles'; + protected $internal_gapi_mappings = array( + ); + public $accountProfiles; + public $id; + public $kind; + public $level; + public $name; + public $permissionGroupId; + + + public function setAccountProfiles($accountProfiles) + { + $this->accountProfiles = $accountProfiles; + } + public function getAccountProfiles() + { + return $this->accountProfiles; + } + 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 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 setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissionGroups'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup'; + protected $accountPermissionGroupsDataType = 'array'; + public $kind; + + + public function setAccountPermissionGroups($accountPermissionGroups) + { + $this->accountPermissionGroups = $accountPermissionGroups; + } + public function getAccountPermissionGroups() + { + return $this->accountPermissionGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissions'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission'; + protected $accountPermissionsDataType = 'array'; + public $kind; + + + public function setAccountPermissions($accountPermissions) + { + $this->accountPermissions = $accountPermissions; + } + public function getAccountPermissions() + { + return $this->accountPermissions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountUserProfile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $advertiserFilterDataType = ''; + protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $campaignFilterDataType = ''; + public $comments; + public $email; + public $id; + public $kind; + public $locale; + public $name; + protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $siteFilterDataType = ''; + public $subaccountId; + public $traffickerType; + public $userAccessType; + protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $userRoleFilterDataType = ''; + public $userRoleId; + + + 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 setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter) + { + $this->advertiserFilter = $advertiserFilter; + } + public function getAdvertiserFilter() + { + return $this->advertiserFilter; + } + public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter) + { + $this->campaignFilter = $campaignFilter; + } + public function getCampaignFilter() + { + return $this->campaignFilter; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocale($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 setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter) + { + $this->siteFilter = $siteFilter; + } + public function getSiteFilter() + { + return $this->siteFilter; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerType($traffickerType) + { + $this->traffickerType = $traffickerType; + } + public function getTraffickerType() + { + return $this->traffickerType; + } + public function setUserAccessType($userAccessType) + { + $this->userAccessType = $userAccessType; + } + public function getUserAccessType() + { + return $this->userAccessType; + } + public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter) + { + $this->userRoleFilter = $userRoleFilter; + } + public function getUserRoleFilter() + { + return $this->userRoleFilter; + } + public function setUserRoleId($userRoleId) + { + $this->userRoleId = $userRoleId; + } + public function getUserRoleId() + { + return $this->userRoleId; + } +} + +class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection +{ + protected $collection_key = 'accountUserProfiles'; + protected $internal_gapi_mappings = array( + ); + protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile'; + protected $accountUserProfilesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccountUserProfiles($accountUserProfiles) + { + $this->accountUserProfiles = $accountUserProfiles; + } + public function getAccountUserProfiles() + { + return $this->accountUserProfiles; + } + 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_AccountsListResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_Dfareporting_Account'; + protected $accountsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + public function getAccounts() + { + return $this->accounts; + } + 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_Activities extends Google_Collection +{ + protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); + protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filtersDataType = 'array'; + 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_Ad extends Google_Collection +{ + protected $collection_key = 'placementAssignments'; + protected $internal_gapi_mappings = array( + "remarketingListExpression" => "remarketing_list_expression", + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $audienceSegmentId; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comments; + public $compatibility; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation'; + protected $creativeRotationDataType = ''; + protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting'; + protected $dayPartTargetingDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule'; + protected $deliveryScheduleDataType = ''; + public $dynamicClickTracker; + public $endTime; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting'; + protected $geoTargetingDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression'; + protected $keyValueTargetingExpressionDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment'; + protected $placementAssignmentsDataType = 'array'; + protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression'; + protected $remarketingListExpressionDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $sslRequired; + public $startTime; + public $subaccountId; + protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting'; + protected $technologyTargetingDataType = ''; + public $type; + + + 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 setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentId($audienceSegmentId) + { + $this->audienceSegmentId = $audienceSegmentId; + } + public function getAudienceSegmentId() + { + return $this->audienceSegmentId; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation) + { + $this->creativeRotation = $creativeRotation; + } + public function getCreativeRotation() + { + return $this->creativeRotation; + } + public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting) + { + $this->dayPartTargeting = $dayPartTargeting; + } + public function getDayPartTargeting() + { + return $this->dayPartTargeting; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule) + { + $this->deliverySchedule = $deliverySchedule; + } + public function getDeliverySchedule() + { + return $this->deliverySchedule; + } + public function setDynamicClickTracker($dynamicClickTracker) + { + $this->dynamicClickTracker = $dynamicClickTracker; + } + public function getDynamicClickTracker() + { + return $this->dynamicClickTracker; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting) + { + $this->geoTargeting = $geoTargeting; + } + public function getGeoTargeting() + { + return $this->geoTargeting; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression) + { + $this->keyValueTargetingExpression = $keyValueTargetingExpression; + } + public function getKeyValueTargetingExpression() + { + return $this->keyValueTargetingExpression; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementAssignments($placementAssignments) + { + $this->placementAssignments = $placementAssignments; + } + public function getPlacementAssignments() + { + return $this->placementAssignments; + } + public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression) + { + $this->remarketingListExpression = $remarketingListExpression; + } + public function getRemarketingListExpression() + { + return $this->remarketingListExpression; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting) + { + $this->technologyTargeting = $technologyTargeting; + } + public function getTechnologyTargeting() + { + return $this->technologyTargeting; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_AdsListResponse extends Google_Collection +{ + protected $collection_key = 'ads'; + protected $internal_gapi_mappings = array( + ); + protected $adsType = 'Google_Service_Dfareporting_Ad'; + protected $adsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAds($ads) + { + $this->ads = $ads; + } + public function getAds() + { + return $this->ads; + } + 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_Advertiser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserGroupId; + public $clickThroughUrlSuffix; + public $defaultClickThroughEventTagId; + public $defaultEmail; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $status; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setDefaultEmail($defaultEmail) + { + $this->defaultEmail = $defaultEmail; + } + public function getDefaultEmail() + { + return $this->defaultEmail; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + 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; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'advertiserGroups'; + protected $internal_gapi_mappings = array( + ); + protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup'; + protected $advertiserGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertiserGroups($advertiserGroups) + { + $this->advertiserGroups = $advertiserGroups; + } + public function getAdvertiserGroups() + { + return $this->advertiserGroups; + } + 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_AdvertisersListResponse extends Google_Collection +{ + protected $collection_key = 'advertisers'; + protected $internal_gapi_mappings = array( + ); + protected $advertisersType = 'Google_Service_Dfareporting_Advertiser'; + protected $advertisersDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertisers($advertisers) + { + $this->advertisers = $advertisers; + } + public function getAdvertisers() + { + return $this->advertisers; + } + 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_AudienceSegment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allocation; + public $id; + public $name; + + + public function setAllocation($allocation) + { + $this->allocation = $allocation; + } + public function getAllocation() + { + return $this->allocation; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection +{ + protected $collection_key = 'audienceSegments'; + protected $internal_gapi_mappings = array( + ); + protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment'; + protected $audienceSegmentsDataType = 'array'; + public $id; + public $name; + + + public function setAudienceSegments($audienceSegments) + { + $this->audienceSegments = $audienceSegments; + } + public function getAudienceSegments() + { + return $this->audienceSegments; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_Browser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $browserVersionId; + public $dartId; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + + + public function setBrowserVersionId($browserVersionId) + { + $this->browserVersionId = $browserVersionId; + } + public function getBrowserVersionId() + { + return $this->browserVersionId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection +{ + protected $collection_key = 'browsers'; + protected $internal_gapi_mappings = array( + ); + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + public $kind; + + + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() + { + return $this->browsers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Campaign extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $additionalCreativeOptimizationConfigurationsDataType = 'array'; + public $advertiserGroupId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup'; + protected $audienceSegmentGroupsDataType = 'array'; + public $billingInvoiceCode; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comment; + public $comscoreVceEnabled; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $creativeGroupIds; + protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $creativeOptimizationConfigurationDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + public $endDate; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $nielsenOcrEnabled; + public $startDate; + public $subaccountId; + public $traffickerEmails; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations) + { + $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations; + } + public function getAdditionalCreativeOptimizationConfigurations() + { + return $this->additionalCreativeOptimizationConfigurations; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentGroups($audienceSegmentGroups) + { + $this->audienceSegmentGroups = $audienceSegmentGroups; + } + public function getAudienceSegmentGroups() + { + return $this->audienceSegmentGroups; + } + public function setBillingInvoiceCode($billingInvoiceCode) + { + $this->billingInvoiceCode = $billingInvoiceCode; + } + public function getBillingInvoiceCode() + { + return $this->billingInvoiceCode; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupIds($creativeGroupIds) + { + $this->creativeGroupIds = $creativeGroupIds; + } + public function getCreativeGroupIds() + { + return $this->creativeGroupIds; + } + public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration) + { + $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration; + } + public function getCreativeOptimizationConfiguration() + { + return $this->creativeOptimizationConfiguration; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeId; + public $kind; + + + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection +{ + protected $collection_key = 'campaignCreativeAssociations'; + protected $internal_gapi_mappings = array( + ); + protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation'; + protected $campaignCreativeAssociationsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaignCreativeAssociations($campaignCreativeAssociations) + { + $this->campaignCreativeAssociations = $campaignCreativeAssociations; + } + public function getCampaignCreativeAssociations() + { + return $this->campaignCreativeAssociations; + } + 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_CampaignsListResponse extends Google_Collection +{ + protected $collection_key = 'campaigns'; + protected $internal_gapi_mappings = array( + ); + protected $campaignsType = 'Google_Service_Dfareporting_Campaign'; + protected $campaignsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaigns($campaigns) + { + $this->campaigns = $campaigns; + } + public function getCampaigns() + { + return $this->campaigns; + } + 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_ChangeLog extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $action; + public $changeTime; + public $fieldName; + public $id; + public $kind; + public $newValue; + public $objectId; + public $objectType; + public $oldValue; + public $subaccountId; + public $transactionId; + public $userProfileId; + public $userProfileName; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setChangeTime($changeTime) + { + $this->changeTime = $changeTime; + } + public function getChangeTime() + { + return $this->changeTime; + } + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + public function getFieldName() + { + return $this->fieldName; + } + 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 setNewValue($newValue) + { + $this->newValue = $newValue; + } + public function getNewValue() + { + return $this->newValue; + } + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setOldValue($oldValue) + { + $this->oldValue = $oldValue; + } + public function getOldValue() + { + return $this->oldValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTransactionId($transactionId) + { + $this->transactionId = $transactionId; + } + public function getTransactionId() + { + return $this->transactionId; + } + public function setUserProfileId($userProfileId) + { + $this->userProfileId = $userProfileId; + } + public function getUserProfileId() + { + return $this->userProfileId; + } + public function setUserProfileName($userProfileName) + { + $this->userProfileName = $userProfileName; + } + public function getUserProfileName() + { + return $this->userProfileName; + } +} + +class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection +{ + protected $collection_key = 'changeLogs'; + protected $internal_gapi_mappings = array( + ); + protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog'; + protected $changeLogsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setChangeLogs($changeLogs) + { + $this->changeLogs = $changeLogs; + } + public function getChangeLogs() + { + return $this->changeLogs; + } + 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_CitiesListResponse extends Google_Collection +{ + protected $collection_key = 'cities'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + public $kind; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_City extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $metroCode; + public $metroDmaId; + public $name; + public $regionCode; + public $regionDartId; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setMetroDmaId($metroDmaId) + { + $this->metroDmaId = $metroDmaId; + } + public function getMetroDmaId() + { + return $this->metroDmaId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setRegionDartId($regionDartId) + { + $this->regionDartId = $regionDartId; + } + public function getRegionDartId() + { + return $this->regionDartId; + } +} + +class Google_Service_Dfareporting_ClickTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $eventName; + public $name; + public $value; + + + public function setEventName($eventName) + { + $this->eventName = $eventName; + } + public function getEventName() + { + return $this->eventName; + } + 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_Dfareporting_ClickThroughUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customClickThroughUrl; + public $defaultLandingPage; + public $landingPageId; + + + public function setCustomClickThroughUrl($customClickThroughUrl) + { + $this->customClickThroughUrl = $customClickThroughUrl; + } + public function getCustomClickThroughUrl() + { + return $this->customClickThroughUrl; + } + public function setDefaultLandingPage($defaultLandingPage) + { + $this->defaultLandingPage = $defaultLandingPage; + } + public function getDefaultLandingPage() + { + return $this->defaultLandingPage; + } + public function setLandingPageId($landingPageId) + { + $this->landingPageId = $landingPageId; + } + public function getLandingPageId() + { + return $this->landingPageId; + } +} + +class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThroughUrlSuffix; + public $overrideInheritedSuffix; + + + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setOverrideInheritedSuffix($overrideInheritedSuffix) + { + $this->overrideInheritedSuffix = $overrideInheritedSuffix; + } + public function getOverrideInheritedSuffix() + { + return $this->overrideInheritedSuffix; + } +} + +class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + public $creativeId; + + + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } +} + +class Google_Service_Dfareporting_CompatibleFields extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; + protected $crossDimensionReachReportCompatibleFieldsDataType = ''; + protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; + protected $floodlightReportCompatibleFieldsDataType = ''; + public $kind; + protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; + protected $pathToConversionReportCompatibleFieldsDataType = ''; + protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; + protected $reachReportCompatibleFieldsDataType = ''; + protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; + protected $reportCompatibleFieldsDataType = ''; + + + public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) + { + $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; + } + public function getCrossDimensionReachReportCompatibleFields() + { + return $this->crossDimensionReachReportCompatibleFields; + } + public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) + { + $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; + } + public function getFloodlightReportCompatibleFields() + { + return $this->floodlightReportCompatibleFields; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) + { + $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; + } + public function getPathToConversionReportCompatibleFields() + { + return $this->pathToConversionReportCompatibleFields; + } + public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) + { + $this->reachReportCompatibleFields = $reachReportCompatibleFields; + } + public function getReachReportCompatibleFields() + { + return $this->reachReportCompatibleFields; + } + public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) + { + $this->reportCompatibleFields = $reportCompatibleFields; + } + public function getReportCompatibleFields() + { + return $this->reportCompatibleFields; + } +} + +class Google_Service_Dfareporting_ConnectionType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_ConnectionTypesListResponse extends Google_Collection +{ + protected $collection_key = 'connectionTypes'; + protected $internal_gapi_mappings = array( + ); + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + public $kind; + + + public function setConnectionTypes($connectionTypes) + { + $this->connectionTypes = $connectionTypes; + } + public function getConnectionTypes() + { + return $this->connectionTypes; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection +{ + protected $collection_key = 'contentCategories'; + protected $internal_gapi_mappings = array( + ); + protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory'; + protected $contentCategoriesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setContentCategories($contentCategories) + { + $this->contentCategories = $contentCategories; + } + public function getContentCategories() + { + return $this->contentCategories; + } + 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_ContentCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $description; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + 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; + } +} + +class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection +{ + protected $collection_key = 'countries'; + protected $internal_gapi_mappings = array( + ); + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $kind; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Country extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $dartId; + public $kind; + public $name; + public $sslEnabled; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + 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 setSslEnabled($sslEnabled) + { + $this->sslEnabled = $sslEnabled; + } + public function getSslEnabled() + { + return $this->sslEnabled; + } +} + +class Google_Service_Dfareporting_Creative extends Google_Collection +{ + protected $collection_key = 'timerCustomEvents'; + protected $internal_gapi_mappings = array( + "autoAdvanceImages" => "auto_advance_images", + ); + public $accountId; + public $active; + public $adParameters; + public $adTagKeys; + public $advertiserId; + public $allowScriptAccess; + public $archived; + public $artworkType; + public $authoringTool; + public $autoAdvanceImages; + public $backgroundColor; + public $backupImageClickThroughUrl; + public $backupImageFeatures; + public $backupImageReportingLabel; + protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow'; + protected $backupImageTargetWindowDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $commercialId; + public $companionCreatives; + public $compatibility; + protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $counterCustomEventsDataType = 'array'; + protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; + protected $creativeAssetsDataType = 'array'; + protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment'; + protected $creativeFieldAssignmentsDataType = 'array'; + public $customKeyValues; + protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $exitCustomEventsDataType = 'array'; + protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand'; + protected $fsCommandDataType = ''; + public $htmlCode; + public $htmlCodeLocked; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $latestTraffickedCreativeId; + public $name; + public $overrideCss; + public $redirectUrl; + public $renderingId; + protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $renderingIdDimensionValueDataType = ''; + public $requiredFlashPluginVersion; + public $requiredFlashVersion; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $skippable; + public $sslCompliant; + public $studioAdvertiserId; + public $studioCreativeId; + public $studioTraffickedCreativeId; + public $subaccountId; + public $thirdPartyBackupImageImpressionsUrl; + public $thirdPartyRichMediaImpressionsUrl; + protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl'; + protected $thirdPartyUrlsDataType = 'array'; + protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $timerCustomEventsDataType = 'array'; + public $totalFileSize; + public $type; + public $version; + public $videoDescription; + public $videoDuration; + + + 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 setAdParameters($adParameters) + { + $this->adParameters = $adParameters; + } + public function getAdParameters() + { + return $this->adParameters; + } + public function setAdTagKeys($adTagKeys) + { + $this->adTagKeys = $adTagKeys; + } + public function getAdTagKeys() + { + return $this->adTagKeys; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAllowScriptAccess($allowScriptAccess) + { + $this->allowScriptAccess = $allowScriptAccess; + } + public function getAllowScriptAccess() + { + return $this->allowScriptAccess; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAuthoringTool($authoringTool) + { + $this->authoringTool = $authoringTool; + } + public function getAuthoringTool() + { + return $this->authoringTool; + } + public function setAutoAdvanceImages($autoAdvanceImages) + { + $this->autoAdvanceImages = $autoAdvanceImages; + } + public function getAutoAdvanceImages() + { + return $this->autoAdvanceImages; + } + public function setBackgroundColor($backgroundColor) + { + $this->backgroundColor = $backgroundColor; + } + public function getBackgroundColor() + { + return $this->backgroundColor; + } + public function setBackupImageClickThroughUrl($backupImageClickThroughUrl) + { + $this->backupImageClickThroughUrl = $backupImageClickThroughUrl; + } + public function getBackupImageClickThroughUrl() + { + return $this->backupImageClickThroughUrl; + } + public function setBackupImageFeatures($backupImageFeatures) + { + $this->backupImageFeatures = $backupImageFeatures; + } + public function getBackupImageFeatures() + { + return $this->backupImageFeatures; + } + public function setBackupImageReportingLabel($backupImageReportingLabel) + { + $this->backupImageReportingLabel = $backupImageReportingLabel; + } + public function getBackupImageReportingLabel() + { + return $this->backupImageReportingLabel; + } + public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow) + { + $this->backupImageTargetWindow = $backupImageTargetWindow; + } + public function getBackupImageTargetWindow() + { + return $this->backupImageTargetWindow; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setCommercialId($commercialId) + { + $this->commercialId = $commercialId; + } + public function getCommercialId() + { + return $this->commercialId; + } + public function setCompanionCreatives($companionCreatives) + { + $this->companionCreatives = $companionCreatives; + } + public function getCompanionCreatives() + { + return $this->companionCreatives; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setCounterCustomEvents($counterCustomEvents) + { + $this->counterCustomEvents = $counterCustomEvents; + } + public function getCounterCustomEvents() + { + return $this->counterCustomEvents; + } + public function setCreativeAssets($creativeAssets) + { + $this->creativeAssets = $creativeAssets; + } + public function getCreativeAssets() + { + return $this->creativeAssets; + } + public function setCreativeFieldAssignments($creativeFieldAssignments) + { + $this->creativeFieldAssignments = $creativeFieldAssignments; + } + public function getCreativeFieldAssignments() + { + return $this->creativeFieldAssignments; + } + public function setCustomKeyValues($customKeyValues) + { + $this->customKeyValues = $customKeyValues; + } + public function getCustomKeyValues() + { + return $this->customKeyValues; + } + public function setExitCustomEvents($exitCustomEvents) + { + $this->exitCustomEvents = $exitCustomEvents; + } + public function getExitCustomEvents() + { + return $this->exitCustomEvents; + } + public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand) + { + $this->fsCommand = $fsCommand; + } + public function getFsCommand() + { + return $this->fsCommand; + } + public function setHtmlCode($htmlCode) + { + $this->htmlCode = $htmlCode; + } + public function getHtmlCode() + { + return $this->htmlCode; + } + public function setHtmlCodeLocked($htmlCodeLocked) + { + $this->htmlCodeLocked = $htmlCodeLocked; + } + public function getHtmlCodeLocked() + { + return $this->htmlCodeLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLatestTraffickedCreativeId($latestTraffickedCreativeId) + { + $this->latestTraffickedCreativeId = $latestTraffickedCreativeId; + } + public function getLatestTraffickedCreativeId() + { + return $this->latestTraffickedCreativeId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverrideCss($overrideCss) + { + $this->overrideCss = $overrideCss; + } + public function getOverrideCss() + { + return $this->overrideCss; + } + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + } + public function getRedirectUrl() + { + return $this->redirectUrl; + } + public function setRenderingId($renderingId) + { + $this->renderingId = $renderingId; + } + public function getRenderingId() + { + return $this->renderingId; + } + public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue) + { + $this->renderingIdDimensionValue = $renderingIdDimensionValue; + } + public function getRenderingIdDimensionValue() + { + return $this->renderingIdDimensionValue; + } + public function setRequiredFlashPluginVersion($requiredFlashPluginVersion) + { + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + } + public function getRequiredFlashPluginVersion() + { + return $this->requiredFlashPluginVersion; + } + public function setRequiredFlashVersion($requiredFlashVersion) + { + $this->requiredFlashVersion = $requiredFlashVersion; + } + public function getRequiredFlashVersion() + { + return $this->requiredFlashVersion; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSkippable($skippable) + { + $this->skippable = $skippable; + } + public function getSkippable() + { + return $this->skippable; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStudioAdvertiserId($studioAdvertiserId) + { + $this->studioAdvertiserId = $studioAdvertiserId; + } + public function getStudioAdvertiserId() + { + return $this->studioAdvertiserId; + } + public function setStudioCreativeId($studioCreativeId) + { + $this->studioCreativeId = $studioCreativeId; + } + public function getStudioCreativeId() + { + return $this->studioCreativeId; + } + public function setStudioTraffickedCreativeId($studioTraffickedCreativeId) + { + $this->studioTraffickedCreativeId = $studioTraffickedCreativeId; + } + public function getStudioTraffickedCreativeId() + { + return $this->studioTraffickedCreativeId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl) + { + $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl; + } + public function getThirdPartyBackupImageImpressionsUrl() + { + return $this->thirdPartyBackupImageImpressionsUrl; + } + public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl) + { + $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl; + } + public function getThirdPartyRichMediaImpressionsUrl() + { + return $this->thirdPartyRichMediaImpressionsUrl; + } + public function setThirdPartyUrls($thirdPartyUrls) + { + $this->thirdPartyUrls = $thirdPartyUrls; + } + public function getThirdPartyUrls() + { + return $this->thirdPartyUrls; + } + public function setTimerCustomEvents($timerCustomEvents) + { + $this->timerCustomEvents = $timerCustomEvents; + } + public function getTimerCustomEvents() + { + return $this->timerCustomEvents; + } + public function setTotalFileSize($totalFileSize) + { + $this->totalFileSize = $totalFileSize; + } + public function getTotalFileSize() + { + return $this->totalFileSize; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setVideoDescription($videoDescription) + { + $this->videoDescription = $videoDescription; + } + public function getVideoDescription() + { + return $this->videoDescription; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } +} + +class Google_Service_Dfareporting_CreativeAsset extends Google_Collection +{ + protected $collection_key = 'detectedFeatures'; + protected $internal_gapi_mappings = array( + ); + public $actionScript3; + public $active; + public $alignment; + public $artworkType; + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $backupImageExitDataType = ''; + public $bitRate; + public $childAssetType; + protected $collapsedSizeType = 'Google_Service_Dfareporting_Size'; + protected $collapsedSizeDataType = ''; + public $customStartTimeValue; + public $detectedFeatures; + public $displayType; + public $duration; + public $durationType; + protected $expandedDimensionType = 'Google_Service_Dfareporting_Size'; + protected $expandedDimensionDataType = ''; + public $fileSize; + public $flashVersion; + public $hideFlashObjects; + public $hideSelectionBoxes; + public $horizontallyLocked; + public $id; + public $mimeType; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $originalBackup; + protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $positionDataType = ''; + public $positionLeftUnit; + public $positionTopUnit; + public $progressiveServingUrl; + public $pushdown; + public $pushdownDuration; + public $role; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $startTimeType; + public $streamingServingUrl; + public $transparency; + public $verticallyLocked; + public $videoDuration; + public $windowMode; + public $zIndex; + public $zipFilename; + public $zipFilesize; + + + public function setActionScript3($actionScript3) + { + $this->actionScript3 = $actionScript3; + } + public function getActionScript3() + { + return $this->actionScript3; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAlignment($alignment) + { + $this->alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit) + { + $this->backupImageExit = $backupImageExit; + } + public function getBackupImageExit() + { + return $this->backupImageExit; + } + public function setBitRate($bitRate) + { + $this->bitRate = $bitRate; + } + public function getBitRate() + { + return $this->bitRate; + } + public function setChildAssetType($childAssetType) + { + $this->childAssetType = $childAssetType; + } + public function getChildAssetType() + { + return $this->childAssetType; + } + public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize) + { + $this->collapsedSize = $collapsedSize; + } + public function getCollapsedSize() + { + return $this->collapsedSize; + } + public function setCustomStartTimeValue($customStartTimeValue) + { + $this->customStartTimeValue = $customStartTimeValue; + } + public function getCustomStartTimeValue() + { + return $this->customStartTimeValue; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setDisplayType($displayType) + { + $this->displayType = $displayType; + } + public function getDisplayType() + { + return $this->displayType; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setDurationType($durationType) + { + $this->durationType = $durationType; + } + public function getDurationType() + { + return $this->durationType; + } + public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension) + { + $this->expandedDimension = $expandedDimension; + } + public function getExpandedDimension() + { + return $this->expandedDimension; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setFlashVersion($flashVersion) + { + $this->flashVersion = $flashVersion; + } + public function getFlashVersion() + { + return $this->flashVersion; + } + public function setHideFlashObjects($hideFlashObjects) + { + $this->hideFlashObjects = $hideFlashObjects; + } + public function getHideFlashObjects() + { + return $this->hideFlashObjects; + } + public function setHideSelectionBoxes($hideSelectionBoxes) + { + $this->hideSelectionBoxes = $hideSelectionBoxes; + } + public function getHideSelectionBoxes() + { + return $this->hideSelectionBoxes; + } + public function setHorizontallyLocked($horizontallyLocked) + { + $this->horizontallyLocked = $horizontallyLocked; + } + public function getHorizontallyLocked() + { + return $this->horizontallyLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setOriginalBackup($originalBackup) + { + $this->originalBackup = $originalBackup; + } + public function getOriginalBackup() + { + return $this->originalBackup; + } + public function setPosition(Google_Service_Dfareporting_OffsetPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setPositionLeftUnit($positionLeftUnit) + { + $this->positionLeftUnit = $positionLeftUnit; + } + public function getPositionLeftUnit() + { + return $this->positionLeftUnit; + } + public function setPositionTopUnit($positionTopUnit) + { + $this->positionTopUnit = $positionTopUnit; + } + public function getPositionTopUnit() + { + return $this->positionTopUnit; + } + public function setProgressiveServingUrl($progressiveServingUrl) + { + $this->progressiveServingUrl = $progressiveServingUrl; + } + public function getProgressiveServingUrl() + { + return $this->progressiveServingUrl; + } + public function setPushdown($pushdown) + { + $this->pushdown = $pushdown; + } + public function getPushdown() + { + return $this->pushdown; + } + public function setPushdownDuration($pushdownDuration) + { + $this->pushdownDuration = $pushdownDuration; + } + public function getPushdownDuration() + { + return $this->pushdownDuration; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTimeType($startTimeType) + { + $this->startTimeType = $startTimeType; + } + public function getStartTimeType() + { + return $this->startTimeType; + } + public function setStreamingServingUrl($streamingServingUrl) + { + $this->streamingServingUrl = $streamingServingUrl; + } + public function getStreamingServingUrl() + { + return $this->streamingServingUrl; + } + public function setTransparency($transparency) + { + $this->transparency = $transparency; + } + public function getTransparency() + { + return $this->transparency; + } + public function setVerticallyLocked($verticallyLocked) + { + $this->verticallyLocked = $verticallyLocked; + } + public function getVerticallyLocked() + { + return $this->verticallyLocked; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } + public function setWindowMode($windowMode) + { + $this->windowMode = $windowMode; + } + public function getWindowMode() + { + return $this->windowMode; + } + public function setZIndex($zIndex) + { + $this->zIndex = $zIndex; + } + public function getZIndex() + { + return $this->zIndex; + } + public function setZipFilename($zipFilename) + { + $this->zipFilename = $zipFilename; + } + public function getZipFilename() + { + return $this->zipFilename; + } + public function setZipFilesize($zipFilesize) + { + $this->zipFilesize = $zipFilesize; + } + public function getZipFilesize() + { + return $this->zipFilesize; + } +} + +class Google_Service_Dfareporting_CreativeAssetId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $type; + + + 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_Dfareporting_CreativeAssetMetadata extends Google_Collection +{ + protected $collection_key = 'warnedValidationRules'; + protected $internal_gapi_mappings = array( + ); + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $detectedFeatures; + public $kind; + public $warnedValidationRules; + + + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setWarnedValidationRules($warnedValidationRules) + { + $this->warnedValidationRules = $warnedValidationRules; + } + public function getWarnedValidationRules() + { + return $this->warnedValidationRules; + } +} + +class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection +{ + protected $collection_key = 'richMediaExitOverrides'; + protected $internal_gapi_mappings = array( + ); + public $active; + public $applyEventTags; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride'; + protected $companionCreativeOverridesDataType = 'array'; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + public $creativeId; + protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $creativeIdDimensionValueDataType = ''; + public $endTime; + protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride'; + protected $richMediaExitOverridesDataType = 'array'; + public $sequence; + public $sslCompliant; + public $startTime; + public $weight; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setApplyEventTags($applyEventTags) + { + $this->applyEventTags = $applyEventTags; + } + public function getApplyEventTags() + { + return $this->applyEventTags; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCompanionCreativeOverrides($companionCreativeOverrides) + { + $this->companionCreativeOverrides = $companionCreativeOverrides; + } + public function getCompanionCreativeOverrides() + { + return $this->companionCreativeOverrides; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue) + { + $this->creativeIdDimensionValue = $creativeIdDimensionValue; + } + public function getCreativeIdDimensionValue() + { + return $this->creativeIdDimensionValue; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setRichMediaExitOverrides($richMediaExitOverrides) + { + $this->richMediaExitOverrides = $richMediaExitOverrides; + } + public function getRichMediaExitOverrides() + { + return $this->richMediaExitOverrides; + } + public function setSequence($sequence) + { + $this->sequence = $sequence; + } + public function getSequence() + { + return $this->sequence; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $advertiserCustomEventName; + public $advertiserCustomEventType; + public $artworkLabel; + public $artworkType; + public $exitUrl; + public $id; + protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties'; + protected $popupWindowPropertiesDataType = ''; + public $targetType; + public $videoReportingId; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserCustomEventName($advertiserCustomEventName) + { + $this->advertiserCustomEventName = $advertiserCustomEventName; + } + public function getAdvertiserCustomEventName() + { + return $this->advertiserCustomEventName; + } + public function setAdvertiserCustomEventType($advertiserCustomEventType) + { + $this->advertiserCustomEventType = $advertiserCustomEventType; + } + public function getAdvertiserCustomEventType() + { + return $this->advertiserCustomEventType; + } + public function setArtworkLabel($artworkLabel) + { + $this->artworkLabel = $artworkLabel; + } + public function getArtworkLabel() + { + return $this->artworkLabel; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setExitUrl($exitUrl) + { + $this->exitUrl = $exitUrl; + } + public function getExitUrl() + { + return $this->exitUrl; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties) + { + $this->popupWindowProperties = $popupWindowProperties; + } + public function getPopupWindowProperties() + { + return $this->popupWindowProperties; + } + public function setTargetType($targetType) + { + $this->targetType = $targetType; + } + public function getTargetType() + { + return $this->targetType; + } + public function setVideoReportingId($videoReportingId) + { + $this->videoReportingId = $videoReportingId; + } + public function getVideoReportingId() + { + return $this->videoReportingId; + } +} + +class Google_Service_Dfareporting_CreativeField extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $id; + public $kind; + public $name; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeFieldId; + public $creativeFieldValueId; + + + public function setCreativeFieldId($creativeFieldId) + { + $this->creativeFieldId = $creativeFieldId; + } + public function getCreativeFieldId() + { + return $this->creativeFieldId; + } + public function setCreativeFieldValueId($creativeFieldValueId) + { + $this->creativeFieldValueId = $creativeFieldValueId; + } + public function getCreativeFieldValueId() + { + return $this->creativeFieldValueId; + } +} + +class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $value; + + + 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_CreativeFieldValuesListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFieldValues'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue'; + protected $creativeFieldValuesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFieldValues($creativeFieldValues) + { + $this->creativeFieldValues = $creativeFieldValues; + } + public function getCreativeFieldValues() + { + return $this->creativeFieldValues; + } + 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_CreativeFieldsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFields'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField'; + protected $creativeFieldsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFields($creativeFields) + { + $this->creativeFields = $creativeFields; + } + public function getCreativeFields() + { + return $this->creativeFields; + } + 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_CreativeGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $groupNumber; + public $id; + public $kind; + public $name; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setGroupNumber($groupNumber) + { + $this->groupNumber = $groupNumber; + } + public function getGroupNumber() + { + return $this->groupNumber; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeGroupId; + public $creativeGroupNumber; + + + public function setCreativeGroupId($creativeGroupId) + { + $this->creativeGroupId = $creativeGroupId; + } + public function getCreativeGroupId() + { + return $this->creativeGroupId; + } + public function setCreativeGroupNumber($creativeGroupNumber) + { + $this->creativeGroupNumber = $creativeGroupNumber; + } + public function getCreativeGroupNumber() + { + return $this->creativeGroupNumber; + } +} + +class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeGroups'; + protected $internal_gapi_mappings = array( + ); + protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup'; + protected $creativeGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeGroups($creativeGroups) + { + $this->creativeGroups = $creativeGroups; + } + public function getCreativeGroups() + { + return $this->creativeGroups; + } + 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_CreativeOptimizationConfiguration extends Google_Collection +{ + protected $collection_key = 'optimizationActivitys'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity'; + protected $optimizationActivitysDataType = 'array'; + public $optimizationModel; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOptimizationActivitys($optimizationActivitys) + { + $this->optimizationActivitys = $optimizationActivitys; + } + public function getOptimizationActivitys() + { + return $this->optimizationActivitys; + } + public function setOptimizationModel($optimizationModel) + { + $this->optimizationModel = $optimizationModel; + } + public function getOptimizationModel() + { + return $this->optimizationModel; + } +} + +class Google_Service_Dfareporting_CreativeRotation extends Google_Collection +{ + protected $collection_key = 'creativeAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment'; + protected $creativeAssignmentsDataType = 'array'; + public $creativeOptimizationConfigurationId; + public $type; + public $weightCalculationStrategy; + + + public function setCreativeAssignments($creativeAssignments) + { + $this->creativeAssignments = $creativeAssignments; + } + public function getCreativeAssignments() + { + return $this->creativeAssignments; + } + public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId) + { + $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId; + } + public function getCreativeOptimizationConfigurationId() + { + return $this->creativeOptimizationConfigurationId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setWeightCalculationStrategy($weightCalculationStrategy) + { + $this->weightCalculationStrategy = $weightCalculationStrategy; + } + public function getWeightCalculationStrategy() + { + return $this->weightCalculationStrategy; + } +} + +class Google_Service_Dfareporting_CreativeSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $iFrameFooter; + public $iFrameHeader; + + + public function setIFrameFooter($iFrameFooter) + { + $this->iFrameFooter = $iFrameFooter; + } + public function getIFrameFooter() + { + return $this->iFrameFooter; + } + public function setIFrameHeader($iFrameHeader) + { + $this->iFrameHeader = $iFrameHeader; + } + public function getIFrameHeader() + { + return $this->iFrameHeader; + } +} + +class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection +{ + protected $collection_key = 'creatives'; + protected $internal_gapi_mappings = array( + ); + protected $creativesType = 'Google_Service_Dfareporting_Creative'; + protected $creativesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreatives($creatives) + { + $this->creatives = $creatives; + } + public function getCreatives() + { + return $this->creatives; + } + 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_CrossDimensionReachReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'overlapMetrics'; + protected $internal_gapi_mappings = array( + ); + protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; + protected $breakdownDataType = 'array'; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $overlapMetricsDataType = 'array'; + + + public function setBreakdown($breakdown) + { + $this->breakdown = $breakdown; + } + public function getBreakdown() + { + return $this->breakdown; + } + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setOverlapMetrics($overlapMetrics) + { + $this->overlapMetrics = $overlapMetrics; + } + public function getOverlapMetrics() + { + return $this->overlapMetrics; + } +} + +class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection +{ + protected $collection_key = 'filteredEventIds'; + protected $internal_gapi_mappings = array( + ); + protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filteredEventIdsDataType = 'array'; + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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_DayPartTargeting extends Google_Collection +{ + protected $collection_key = 'hoursOfDay'; + protected $internal_gapi_mappings = array( + ); + public $daysOfWeek; + public $hoursOfDay; + public $userLocalTime; + + + public function setDaysOfWeek($daysOfWeek) + { + $this->daysOfWeek = $daysOfWeek; + } + public function getDaysOfWeek() + { + return $this->daysOfWeek; + } + public function setHoursOfDay($hoursOfDay) + { + $this->hoursOfDay = $hoursOfDay; + } + public function getHoursOfDay() + { + return $this->hoursOfDay; + } + public function setUserLocalTime($userLocalTime) + { + $this->userLocalTime = $userLocalTime; + } + public function getUserLocalTime() + { + return $this->userLocalTime; + } +} + +class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $defaultClickThroughEventTagId; + public $overrideInheritedEventTag; + + + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setOverrideInheritedEventTag($overrideInheritedEventTag) + { + $this->overrideInheritedEventTag = $overrideInheritedEventTag; + } + public function getOverrideInheritedEventTag() + { + return $this->overrideInheritedEventTag; + } +} + +class Google_Service_Dfareporting_DeliverySchedule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap'; + protected $frequencyCapDataType = ''; + public $hardCutoff; + public $impressionRatio; + public $priority; + + + public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap) + { + $this->frequencyCap = $frequencyCap; + } + public function getFrequencyCap() + { + return $this->frequencyCap; + } + public function setHardCutoff($hardCutoff) + { + $this->hardCutoff = $hardCutoff; + } + public function getHardCutoff() + { + return $this->hardCutoff; + } + public function setImpressionRatio($impressionRatio) + { + $this->impressionRatio = $impressionRatio; + } + public function getImpressionRatio() + { + return $this->impressionRatio; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} + +class Google_Service_Dfareporting_DfareportingFile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $etag; + public $fileName; + public $format; + public $id; + public $kind; + public $lastModifiedTime; + public $reportId; + public $status; + protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; + protected $urlsDataType = ''; + + + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + { + $this->dateRange = $dateRange; + } + public function 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 +{ + protected $internal_gapi_mappings = array( + ); + 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_DfpSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpNetworkCode" => "dfp_network_code", + "dfpNetworkName" => "dfp_network_name", + ); + public $dfpNetworkCode; + public $dfpNetworkName; + public $programmaticPlacementAccepted; + public $pubPaidPlacementAccepted; + public $publisherPortalOnly; + + + public function setDfpNetworkCode($dfpNetworkCode) + { + $this->dfpNetworkCode = $dfpNetworkCode; + } + public function getDfpNetworkCode() + { + return $this->dfpNetworkCode; + } + public function setDfpNetworkName($dfpNetworkName) + { + $this->dfpNetworkName = $dfpNetworkName; + } + public function getDfpNetworkName() + { + return $this->dfpNetworkName; + } + public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted) + { + $this->programmaticPlacementAccepted = $programmaticPlacementAccepted; + } + public function getProgrammaticPlacementAccepted() + { + return $this->programmaticPlacementAccepted; + } + public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted) + { + $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted; + } + public function getPubPaidPlacementAccepted() + { + return $this->pubPaidPlacementAccepted; + } + public function setPublisherPortalOnly($publisherPortalOnly) + { + $this->publisherPortalOnly = $publisherPortalOnly; + } + public function getPublisherPortalOnly() + { + return $this->publisherPortalOnly; + } +} + +class Google_Service_Dfareporting_Dimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Dfareporting_DimensionFilter extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $dimensionName; + public $etag; + public $id; + public $kind; + public $matchType; + 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 setMatchType($matchType) + { + $this->matchType = $matchType; + } + public function getMatchType() + { + return $this->matchType; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Dfareporting_DimensionValueList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $itemsDataType = 'array'; + 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 +{ + protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); + public $dimensionName; + public $endDate; + protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; + protected $filtersDataType = 'array'; + public $kind; + public $startDate; + + + public function setDimensionName($dimensionName) + { + $this->dimensionName = $dimensionName; + } + public function 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_DirectorySite extends Google_Collection +{ + protected $collection_key = 'interstitialTagFormats'; + protected $internal_gapi_mappings = array( + ); + public $active; + protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; + protected $contactAssignmentsDataType = 'array'; + public $countryId; + public $currencyId; + public $description; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $inpageTagFormats; + public $interstitialTagFormats; + public $kind; + public $name; + public $parentId; + protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; + protected $settingsDataType = ''; + public $url; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setContactAssignments($contactAssignments) + { + $this->contactAssignments = $contactAssignments; + } + public function getContactAssignments() + { + return $this->contactAssignments; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setInpageTagFormats($inpageTagFormats) + { + $this->inpageTagFormats = $inpageTagFormats; + } + public function getInpageTagFormats() + { + return $this->inpageTagFormats; + } + public function setInterstitialTagFormats($interstitialTagFormats) + { + $this->interstitialTagFormats = $interstitialTagFormats; + } + public function getInterstitialTagFormats() + { + return $this->interstitialTagFormats; + } + 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 setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings) + { + $this->settings = $settings; + } + public function getSettings() + { + return $this->settings; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $email; + public $firstName; + public $id; + public $kind; + public $lastName; + public $role; + public $type; + + + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + public function getFirstName() + { + return $this->firstName; + } + 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 setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_DirectorySiteContactAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactId; + public $visibility; + + + public function setContactId($contactId) + { + $this->contactId = $contactId; + } + public function getContactId() + { + return $this->contactId; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection +{ + protected $collection_key = 'directorySiteContacts'; + protected $internal_gapi_mappings = array( + ); + protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; + protected $directorySiteContactsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySiteContacts($directorySiteContacts) + { + $this->directorySiteContacts = $directorySiteContacts; + } + public function getDirectorySiteContacts() + { + return $this->directorySiteContacts; + } + 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_DirectorySiteSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpSettings" => "dfp_settings", + "instreamVideoPlacementAccepted" => "instream_video_placement_accepted", + ); + public $activeViewOptOut; + protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings'; + protected $dfpSettingsDataType = ''; + public $instreamVideoPlacementAccepted; + public $interstitialPlacementAccepted; + public $nielsenOcrOptOut; + public $verificationTagOptOut; + public $videoActiveViewOptOut; + + + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings) + { + $this->dfpSettings = $dfpSettings; + } + public function getDfpSettings() + { + return $this->dfpSettings; + } + public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted) + { + $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted; + } + public function getInstreamVideoPlacementAccepted() + { + return $this->instreamVideoPlacementAccepted; + } + public function setInterstitialPlacementAccepted($interstitialPlacementAccepted) + { + $this->interstitialPlacementAccepted = $interstitialPlacementAccepted; + } + public function getInterstitialPlacementAccepted() + { + return $this->interstitialPlacementAccepted; + } + public function setNielsenOcrOptOut($nielsenOcrOptOut) + { + $this->nielsenOcrOptOut = $nielsenOcrOptOut; + } + public function getNielsenOcrOptOut() + { + return $this->nielsenOcrOptOut; + } + public function setVerificationTagOptOut($verificationTagOptOut) + { + $this->verificationTagOptOut = $verificationTagOptOut; + } + public function getVerificationTagOptOut() + { + return $this->verificationTagOptOut; + } + public function setVideoActiveViewOptOut($videoActiveViewOptOut) + { + $this->videoActiveViewOptOut = $videoActiveViewOptOut; + } + public function getVideoActiveViewOptOut() + { + return $this->videoActiveViewOptOut; + } +} + +class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection +{ + protected $collection_key = 'directorySites'; + protected $internal_gapi_mappings = array( + ); + protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite'; + protected $directorySitesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySites($directorySites) + { + $this->directorySites = $directorySites; + } + public function getDirectorySites() + { + return $this->directorySites; + } + 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_EventTag extends Google_Collection +{ + protected $collection_key = 'siteIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $enabledByDefault; + public $id; + public $kind; + public $name; + public $siteFilterType; + public $siteIds; + public $sslCompliant; + public $status; + public $subaccountId; + public $type; + public $url; + public $urlEscapeLevels; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setEnabledByDefault($enabledByDefault) + { + $this->enabledByDefault = $enabledByDefault; + } + public function getEnabledByDefault() + { + return $this->enabledByDefault; + } + 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 setSiteFilterType($siteFilterType) + { + $this->siteFilterType = $siteFilterType; + } + public function getSiteFilterType() + { + return $this->siteFilterType; + } + public function setSiteIds($siteIds) + { + $this->siteIds = $siteIds; + } + public function getSiteIds() + { + return $this->siteIds; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + 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; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } + public function setUrlEscapeLevels($urlEscapeLevels) + { + $this->urlEscapeLevels = $urlEscapeLevels; + } + public function getUrlEscapeLevels() + { + return $this->urlEscapeLevels; + } +} + +class Google_Service_Dfareporting_EventTagOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $enabled; + public $id; + + + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} + +class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection +{ + protected $collection_key = 'eventTags'; + protected $internal_gapi_mappings = array( + ); + protected $eventTagsType = 'Google_Service_Dfareporting_EventTag'; + protected $eventTagsDataType = 'array'; + public $kind; + + + public function setEventTags($eventTags) + { + $this->eventTags = $eventTags; + } + public function getEventTags() + { + return $this->eventTags; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FileList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; + protected $itemsDataType = 'array'; + 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_FloodlightActivitiesGenerateTagResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityTag; + public $kind; + + + public function setFloodlightActivityTag($floodlightActivityTag) + { + $this->floodlightActivityTag = $floodlightActivityTag; + } + public function getFloodlightActivityTag() + { + return $this->floodlightActivityTag; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivities'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity'; + protected $floodlightActivitiesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivities($floodlightActivities) + { + $this->floodlightActivities = $floodlightActivities; + } + public function getFloodlightActivities() + { + return $this->floodlightActivities; + } + 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_FloodlightActivity extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableTypes'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $cacheBustingType; + public $countingMethod; + protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $defaultTagsDataType = 'array'; + public $expectedUrl; + public $floodlightActivityGroupId; + public $floodlightActivityGroupName; + public $floodlightActivityGroupTagString; + public $floodlightActivityGroupType; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $hidden; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $imageTagEnabled; + public $kind; + public $name; + public $notes; + protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag'; + protected $publisherTagsDataType = 'array'; + public $secure; + public $sslCompliant; + public $sslRequired; + public $subaccountId; + public $tagFormat; + public $tagString; + public $userDefinedVariableTypes; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCacheBustingType($cacheBustingType) + { + $this->cacheBustingType = $cacheBustingType; + } + public function getCacheBustingType() + { + return $this->cacheBustingType; + } + public function setCountingMethod($countingMethod) + { + $this->countingMethod = $countingMethod; + } + public function getCountingMethod() + { + return $this->countingMethod; + } + public function setDefaultTags($defaultTags) + { + $this->defaultTags = $defaultTags; + } + public function getDefaultTags() + { + return $this->defaultTags; + } + public function setExpectedUrl($expectedUrl) + { + $this->expectedUrl = $expectedUrl; + } + public function getExpectedUrl() + { + return $this->expectedUrl; + } + public function setFloodlightActivityGroupId($floodlightActivityGroupId) + { + $this->floodlightActivityGroupId = $floodlightActivityGroupId; + } + public function getFloodlightActivityGroupId() + { + return $this->floodlightActivityGroupId; + } + public function setFloodlightActivityGroupName($floodlightActivityGroupName) + { + $this->floodlightActivityGroupName = $floodlightActivityGroupName; + } + public function getFloodlightActivityGroupName() + { + return $this->floodlightActivityGroupName; + } + public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString) + { + $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString; + } + public function getFloodlightActivityGroupTagString() + { + return $this->floodlightActivityGroupTagString; + } + public function setFloodlightActivityGroupType($floodlightActivityGroupType) + { + $this->floodlightActivityGroupType = $floodlightActivityGroupType; + } + public function getFloodlightActivityGroupType() + { + return $this->floodlightActivityGroupType; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setImageTagEnabled($imageTagEnabled) + { + $this->imageTagEnabled = $imageTagEnabled; + } + public function getImageTagEnabled() + { + return $this->imageTagEnabled; + } + 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 setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setPublisherTags($publisherTags) + { + $this->publisherTags = $publisherTags; + } + public function getPublisherTags() + { + return $this->publisherTags; + } + public function setSecure($secure) + { + $this->secure = $secure; + } + public function getSecure() + { + return $this->secure; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormat($tagFormat) + { + $this->tagFormat = $tagFormat; + } + public function getTagFormat() + { + return $this->tagFormat; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setUserDefinedVariableTypes($userDefinedVariableTypes) + { + $this->userDefinedVariableTypes = $userDefinedVariableTypes; + } + public function getUserDefinedVariableTypes() + { + return $this->userDefinedVariableTypes; + } +} + +class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + public $tag; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $subaccountId; + public $tagString; + public $type; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivityGroups'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup'; + protected $floodlightActivityGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivityGroups($floodlightActivityGroups) + { + $this->floodlightActivityGroups = $floodlightActivityGroups; + } + public function getFloodlightActivityGroups() + { + return $this->floodlightActivityGroups; + } + 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_FloodlightActivityPublisherDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThrough; + public $directorySiteId; + protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $dynamicTagDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $viewThrough; + + + public function setClickThrough($clickThrough) + { + $this->clickThrough = $clickThrough; + } + public function getClickThrough() + { + return $this->clickThrough; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag) + { + $this->dynamicTag = $dynamicTag; + } + public function getDynamicTag() + { + return $this->dynamicTag; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setViewThrough($viewThrough) + { + $this->viewThrough = $viewThrough; + } + public function getViewThrough() + { + return $this->viewThrough; + } +} + +class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableConfigurations'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $analyticsDataSharingEnabled; + public $exposureToConversionEnabled; + public $firstDayOfWeek; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $naturalSearchConversionAttributionOption; + protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; + protected $omnitureSettingsDataType = ''; + public $sslRequired; + public $standardVariableTypes; + public $subaccountId; + protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; + protected $tagSettingsDataType = ''; + protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; + protected $userDefinedVariableConfigurationsDataType = 'array'; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled) + { + $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled; + } + public function getAnalyticsDataSharingEnabled() + { + return $this->analyticsDataSharingEnabled; + } + public function setExposureToConversionEnabled($exposureToConversionEnabled) + { + $this->exposureToConversionEnabled = $exposureToConversionEnabled; + } + public function getExposureToConversionEnabled() + { + return $this->exposureToConversionEnabled; + } + public function setFirstDayOfWeek($firstDayOfWeek) + { + $this->firstDayOfWeek = $firstDayOfWeek; + } + public function getFirstDayOfWeek() + { + return $this->firstDayOfWeek; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption) + { + $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption; + } + public function getNaturalSearchConversionAttributionOption() + { + return $this->naturalSearchConversionAttributionOption; + } + public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings) + { + $this->omnitureSettings = $omnitureSettings; + } + public function getOmnitureSettings() + { + return $this->omnitureSettings; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStandardVariableTypes($standardVariableTypes) + { + $this->standardVariableTypes = $standardVariableTypes; + } + public function getStandardVariableTypes() + { + return $this->standardVariableTypes; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings) + { + $this->tagSettings = $tagSettings; + } + public function getTagSettings() + { + return $this->tagSettings; + } + public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) + { + $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; + } + public function getUserDefinedVariableConfigurations() + { + return $this->userDefinedVariableConfigurations; + } +} + +class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightConfigurations'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration'; + protected $floodlightConfigurationsDataType = 'array'; + public $kind; + + + public function setFloodlightConfigurations($floodlightConfigurations) + { + $this->floodlightConfigurations = $floodlightConfigurations; + } + public function getFloodlightConfigurations() + { + return $this->floodlightConfigurations; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + + + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } +} + +class Google_Service_Dfareporting_FrequencyCap extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $duration; + public $impressions; + + + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } +} + +class Google_Service_Dfareporting_FsCommand extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $positionOption; + public $top; + public $windowHeight; + public $windowWidth; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setPositionOption($positionOption) + { + $this->positionOption = $positionOption; + } + public function getPositionOption() + { + return $this->positionOption; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWindowHeight($windowHeight) + { + $this->windowHeight = $windowHeight; + } + public function getWindowHeight() + { + return $this->windowHeight; + } + public function setWindowWidth($windowWidth) + { + $this->windowWidth = $windowWidth; + } + public function getWindowWidth() + { + return $this->windowWidth; + } +} + +class Google_Service_Dfareporting_GeoTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $excludeCountries; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setExcludeCountries($excludeCountries) + { + $this->excludeCountries = $excludeCountries; + } + public function getExcludeCountries() + { + return $this->excludeCountries; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_Dfareporting_KeyValueTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LandingPage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $default; + public $id; + public $kind; + public $name; + public $url; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + 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 setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection +{ + protected $collection_key = 'landingPages'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage'; + protected $landingPagesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLandingPages($landingPages) + { + $this->landingPages = $landingPages; + } + public function getLandingPages() + { + return $this->landingPages; + } +} + +class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $time; + + + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickDuration; + public $postImpressionActivitiesDuration; + + + public function setClickDuration($clickDuration) + { + $this->clickDuration = $clickDuration; + } + public function getClickDuration() + { + return $this->clickDuration; + } + public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) + { + $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; + } + public function getPostImpressionActivitiesDuration() + { + return $this->postImpressionActivitiesDuration; + } +} + +class Google_Service_Dfareporting_Metric extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Dfareporting_Metro extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $dmaId; + public $kind; + public $metroCode; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDmaId($dmaId) + { + $this->dmaId = $dmaId; + } + public function getDmaId() + { + return $this->dmaId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection +{ + protected $collection_key = 'metros'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } +} + +class Google_Service_Dfareporting_MobileCarrier extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $id; + public $kind; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + 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_Dfareporting_MobileCarriersListResponse extends Google_Collection +{ + protected $collection_key = 'mobileCarriers'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } +} + +class Google_Service_Dfareporting_ObjectFilter extends Google_Collection +{ + protected $collection_key = 'objectIds'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $objectIds; + public $status; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setObjectIds($objectIds) + { + $this->objectIds = $objectIds; + } + public function getObjectIds() + { + return $this->objectIds; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Dfareporting_OffsetPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $top; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} + +class Google_Service_Dfareporting_OmnitureSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $omnitureCostDataEnabled; + public $omnitureIntegrationEnabled; + + + public function setOmnitureCostDataEnabled($omnitureCostDataEnabled) + { + $this->omnitureCostDataEnabled = $omnitureCostDataEnabled; + } + public function getOmnitureCostDataEnabled() + { + return $this->omnitureCostDataEnabled; + } + public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled) + { + $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled; + } + public function getOmnitureIntegrationEnabled() + { + return $this->omnitureIntegrationEnabled; + } +} + +class Google_Service_Dfareporting_OperatingSystem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dartId; + public $desktop; + public $kind; + public $mobile; + public $name; + + + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDesktop($desktop) + { + $this->desktop = $desktop; + } + public function getDesktop() + { + return $this->desktop; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + public function getMobile() + { + return $this->mobile; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemDataType = ''; + + + 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 setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem) + { + $this->operatingSystem = $operatingSystem; + } + public function getOperatingSystem() + { + return $this->operatingSystem; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystemVersions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystemVersions($operatingSystemVersions) + { + $this->operatingSystemVersions = $operatingSystemVersions; + } + public function getOperatingSystemVersions() + { + return $this->operatingSystemVersions; + } +} + +class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystems'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystems($operatingSystems) + { + $this->operatingSystems = $operatingSystems; + } + public function getOperatingSystems() + { + return $this->operatingSystems; + } +} + +class Google_Service_Dfareporting_OptimizationActivity extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityId; + protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightActivityIdDimensionValueDataType = ''; + public $weight; + + + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue) + { + $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue; + } + public function getFloodlightActivityIdDimensionValue() + { + return $this->floodlightActivityIdDimensionValue; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'perInteractionDimensions'; + protected $internal_gapi_mappings = array( + ); + protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; + protected $customFloodlightVariablesDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $perInteractionDimensionsDataType = 'array'; + + + public function setConversionDimensions($conversionDimensions) + { + $this->conversionDimensions = $conversionDimensions; + } + public function getConversionDimensions() + { + return $this->conversionDimensions; + } + public function setCustomFloodlightVariables($customFloodlightVariables) + { + $this->customFloodlightVariables = $customFloodlightVariables; + } + public function getCustomFloodlightVariables() + { + return $this->customFloodlightVariables; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setPerInteractionDimensions($perInteractionDimensions) + { + $this->perInteractionDimensions = $perInteractionDimensions; + } + public function getPerInteractionDimensions() + { + return $this->perInteractionDimensions; + } +} + +class Google_Service_Dfareporting_Placement extends Google_Collection +{ + protected $collection_key = 'tagFormats'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $comment; + public $compatibility; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $paymentApproved; + public $paymentSource; + public $placementGroupId; + protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementGroupIdDimensionValueDataType = ''; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primary; + protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $publisherUpdateInfoDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslRequired; + public $status; + public $subaccountId; + public $tagFormats; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentApproved($paymentApproved) + { + $this->paymentApproved = $paymentApproved; + } + public function getPaymentApproved() + { + return $this->paymentApproved; + } + public function setPaymentSource($paymentSource) + { + $this->paymentSource = $paymentSource; + } + public function getPaymentSource() + { + return $this->paymentSource; + } + public function setPlacementGroupId($placementGroupId) + { + $this->placementGroupId = $placementGroupId; + } + public function getPlacementGroupId() + { + return $this->placementGroupId; + } + public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) + { + $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; + } + public function getPlacementGroupIdDimensionValue() + { + return $this->placementGroupIdDimensionValue; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) + { + $this->publisherUpdateInfo = $publisherUpdateInfo; + } + public function getPublisherUpdateInfo() + { + return $this->publisherUpdateInfo; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormats($tagFormats) + { + $this->tagFormats = $tagFormats; + } + public function getTagFormats() + { + return $this->tagFormats; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } +} + +class Google_Service_Dfareporting_PlacementAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $placementId; + protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementIdDimensionValueDataType = ''; + public $sslRequired; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) + { + $this->placementIdDimensionValue = $placementIdDimensionValue; + } + public function getPlacementIdDimensionValue() + { + return $this->placementIdDimensionValue; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; } } -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $files = $dfareportingService->files; - * - */ -class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource +class Google_Service_Dfareporting_PlacementGroup extends Google_Collection { + protected $collection_key = 'childPlacementIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $childPlacementIds; + public $comment; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $placementGroupType; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primaryPlacementId; + protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $primaryPlacementIdDimensionValueDataType = ''; + protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; + protected $programmaticSettingDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $subaccountId; - /** - * Retrieves a report file by its report ID and file ID. (files.get) - * - * @param string $reportId The ID of the report. - * @param string $fileId The ID of the report file. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function get($reportId, $fileId, $optParams = array()) + + public function setAccountId($accountId) { - $params = array('reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setChildPlacementIds($childPlacementIds) + { + $this->childPlacementIds = $childPlacementIds; + } + public function getChildPlacementIds() + { + return $this->childPlacementIds; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementGroupType($placementGroupType) + { + $this->placementGroupType = $placementGroupType; + } + public function getPlacementGroupType() + { + return $this->placementGroupType; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimaryPlacementId($primaryPlacementId) + { + $this->primaryPlacementId = $primaryPlacementId; + } + public function getPrimaryPlacementId() + { + return $this->primaryPlacementId; + } + public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) + { + $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; + } + public function getPrimaryPlacementIdDimensionValue() + { + return $this->primaryPlacementIdDimensionValue; + } + public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) + { + $this->programmaticSetting = $programmaticSetting; + } + public function getProgrammaticSetting() + { + return $this->programmaticSetting; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; } +} - /** - * Lists files for a user profile. (files.listFiles) - * - * @param string $profileId The DFA profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope The scope that defines which results are returned, - * default is 'MINE'. - * @return Google_Service_Dfareporting_FileList - */ - public function listFiles($profileId, $optParams = array()) +class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'placementGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; + protected $placementGroupsDataType = 'array'; + + + public function setKind($kind) { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementGroups($placementGroups) + { + $this->placementGroups = $placementGroups; + } + public function getPlacementGroups() + { + return $this->placementGroups; } } -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $reports = $dfareportingService->reports; - * - */ -class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource +class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection { + protected $collection_key = 'placementStrategies'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; + protected $placementStrategiesDataType = 'array'; - /** - * 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()) + + 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 setPlacementStrategies($placementStrategies) { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + $this->placementStrategies = $placementStrategies; } - - /** - * 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()) + public function getPlacementStrategies() { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + return $this->placementStrategies; } +} - /** - * 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()) +class Google_Service_Dfareporting_PlacementStrategy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + $this->accountId = $accountId; } - - /** - * Retrieves list of reports. (reports.listReports) - * - * @param string $profileId The DFA user profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope The scope that defines which results are returned, - * default is 'MINE'. - * @return Google_Service_Dfareporting_ReportList - */ - public function listReports($profileId, $optParams = array()) + public function getAccountId() { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); + return $this->accountId; } - - /** - * 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()) + public function setId($id) { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); + $this->id = $id; } - - /** - * 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()) + public function getId() { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); + return $this->id; } - - /** - * 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()) + public function setKind($kind) { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; } } -/** - * The "compatibleFields" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $compatibleFields = $dfareportingService->compatibleFields; - * - */ -class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource +class Google_Service_Dfareporting_PlacementTag extends Google_Collection { + protected $collection_key = 'tagDatas'; + protected $internal_gapi_mappings = array( + ); + public $placementId; + protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; + protected $tagDatasDataType = 'array'; - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the input - * report and user permissions. (compatibleFields.query) - * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CompatibleFields - */ - public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + + public function setPlacementId($placementId) { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setTagDatas($tagDatas) + { + $this->tagDatas = $tagDatas; + } + public function getTagDatas() + { + return $this->tagDatas; } } -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $files = $dfareportingService->files; - * - */ -class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_Resource + +class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection { + protected $collection_key = 'placementTags'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; + protected $placementTagsDataType = 'array'; - /** - * 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()) + + public function setKind($kind) { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + $this->kind = $kind; } - - /** - * Lists files for a report. (files.listReportsFiles) - * - * @param string $profileId The DFA profile ID. - * @param string $reportId The ID of the parent report. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @return Google_Service_Dfareporting_FileList - */ - public function listReportsFiles($profileId, $reportId, $optParams = array()) + public function getKind() { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + return $this->kind; + } + public function setPlacementTags($placementTags) + { + $this->placementTags = $placementTags; + } + public function getPlacementTags() + { + return $this->placementTags; } } -/** - * The "userProfiles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userProfiles = $dfareportingService->userProfiles; - * - */ -class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_Resource +class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection { + protected $collection_key = 'placements'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementsType = 'Google_Service_Dfareporting_Placement'; + protected $placementsDataType = 'array'; - /** - * 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()) + + public function setKind($kind) { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); + $this->kind = $kind; } - - /** - * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserProfileList - */ - public function listUserProfiles($optParams = array()) + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacements($placements) { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); + $this->placements = $placements; + } + public function getPlacements() + { + return $this->placements; } } - - - -class Google_Service_Dfareporting_Activities extends Google_Collection +class Google_Service_Dfareporting_PlatformType extends Google_Model { - protected $collection_key = 'metricNames'; protected $internal_gapi_mappings = array( ); - protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filtersDataType = 'array'; + public $id; public $kind; - public $metricNames; + public $name; - public function setFilters($filters) + public function setId($id) { - $this->filters = $filters; + $this->id = $id; } - public function getFilters() + public function getId() { - return $this->filters; + return $this->id; } public function setKind($kind) { @@ -730,114 +15807,168 @@ public function getKind() { return $this->kind; } - public function setMetricNames($metricNames) + public function setName($name) { - $this->metricNames = $metricNames; + $this->name = $name; } - public function getMetricNames() + public function getName() { - return $this->metricNames; + return $this->name; } } -class Google_Service_Dfareporting_CompatibleFields extends Google_Model +class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection { + protected $collection_key = 'platformTypes'; protected $internal_gapi_mappings = array( ); - protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; - protected $crossDimensionReachReportCompatibleFieldsDataType = ''; - protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; - protected $floodlightReportCompatibleFieldsDataType = ''; public $kind; - protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; - protected $pathToConversionReportCompatibleFieldsDataType = ''; - protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; - protected $reachReportCompatibleFieldsDataType = ''; - protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; - protected $reportCompatibleFieldsDataType = ''; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; - public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) + public function setKind($kind) { - $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; + $this->kind = $kind; } - public function getCrossDimensionReachReportCompatibleFields() + public function getKind() { - return $this->crossDimensionReachReportCompatibleFields; + return $this->kind; } - public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) + public function setPlatformTypes($platformTypes) { - $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; + $this->platformTypes = $platformTypes; } - public function getFloodlightReportCompatibleFields() + public function getPlatformTypes() { - return $this->floodlightReportCompatibleFields; + return $this->platformTypes; } - public function setKind($kind) +} + +class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dimensionType = 'Google_Service_Dfareporting_Size'; + protected $dimensionDataType = ''; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $positionType; + public $showAddressBar; + public $showMenuBar; + public $showScrollBar; + public $showStatusBar; + public $showToolBar; + public $title; + + + public function setDimension(Google_Service_Dfareporting_Size $dimension) { - $this->kind = $kind; + $this->dimension = $dimension; } - public function getKind() + public function getDimension() { - return $this->kind; + return $this->dimension; } - public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) { - $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; + $this->offset = $offset; } - public function getPathToConversionReportCompatibleFields() + public function getOffset() { - return $this->pathToConversionReportCompatibleFields; + return $this->offset; } - public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) + public function setPositionType($positionType) { - $this->reachReportCompatibleFields = $reachReportCompatibleFields; + $this->positionType = $positionType; } - public function getReachReportCompatibleFields() + public function getPositionType() { - return $this->reachReportCompatibleFields; + return $this->positionType; } - public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) + public function setShowAddressBar($showAddressBar) { - $this->reportCompatibleFields = $reportCompatibleFields; + $this->showAddressBar = $showAddressBar; } - public function getReportCompatibleFields() + public function getShowAddressBar() { - return $this->reportCompatibleFields; + return $this->showAddressBar; + } + public function setShowMenuBar($showMenuBar) + { + $this->showMenuBar = $showMenuBar; + } + public function getShowMenuBar() + { + return $this->showMenuBar; + } + public function setShowScrollBar($showScrollBar) + { + $this->showScrollBar = $showScrollBar; + } + public function getShowScrollBar() + { + return $this->showScrollBar; + } + public function setShowStatusBar($showStatusBar) + { + $this->showStatusBar = $showStatusBar; + } + public function getShowStatusBar() + { + return $this->showStatusBar; + } + public function setShowToolBar($showToolBar) + { + $this->showToolBar = $showToolBar; + } + public function getShowToolBar() + { + return $this->showToolBar; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; } } -class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection +class Google_Service_Dfareporting_PostalCode extends Google_Model { - protected $collection_key = 'overlapMetrics'; protected $internal_gapi_mappings = array( ); - protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; - protected $breakdownDataType = 'array'; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; + public $countryCode; + public $countryDartId; + public $id; public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $overlapMetricsDataType = 'array'; - public function setBreakdown($breakdown) + public function setCountryCode($countryCode) { - $this->breakdown = $breakdown; + $this->countryCode = $countryCode; } - public function getBreakdown() + public function getCountryCode() { - return $this->breakdown; + return $this->countryCode; } - public function setDimensionFilters($dimensionFilters) + public function setCountryDartId($countryDartId) { - $this->dimensionFilters = $dimensionFilters; + $this->countryDartId = $countryDartId; } - public function getDimensionFilters() + public function getCountryDartId() { - return $this->dimensionFilters; + return $this->countryDartId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; } public function setKind($kind) { @@ -847,60 +15978,136 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) +} + +class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection +{ + protected $collection_key = 'postalCodes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + + + public function setKind($kind) { - $this->metrics = $metrics; + $this->kind = $kind; } - public function getMetrics() + public function getKind() { - return $this->metrics; + return $this->kind; } - public function setOverlapMetrics($overlapMetrics) + public function setPostalCodes($postalCodes) { - $this->overlapMetrics = $overlapMetrics; + $this->postalCodes = $postalCodes; } - public function getOverlapMetrics() + public function getPostalCodes() { - return $this->overlapMetrics; + return $this->postalCodes; } } -class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection +class Google_Service_Dfareporting_PricingSchedule extends Google_Collection { - protected $collection_key = 'filteredEventIds'; + protected $collection_key = 'pricingPeriods'; protected $internal_gapi_mappings = array( ); - protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filteredEventIdsDataType = 'array'; - public $kind; + public $capCostOption; + public $disregardOverdelivery; + public $endDate; + public $flighted; + public $floodlightActivityId; + protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; + protected $pricingPeriodsDataType = 'array'; + public $pricingType; + public $startDate; + public $testingStartDate; - public function setFilteredEventIds($filteredEventIds) + public function setCapCostOption($capCostOption) { - $this->filteredEventIds = $filteredEventIds; + $this->capCostOption = $capCostOption; } - public function getFilteredEventIds() + public function getCapCostOption() { - return $this->filteredEventIds; + return $this->capCostOption; } - public function setKind($kind) + public function setDisregardOverdelivery($disregardOverdelivery) { - $this->kind = $kind; + $this->disregardOverdelivery = $disregardOverdelivery; } - public function getKind() + public function getDisregardOverdelivery() { - return $this->kind; + return $this->disregardOverdelivery; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlighted($flighted) + { + $this->flighted = $flighted; + } + public function getFlighted() + { + return $this->flighted; + } + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setPricingPeriods($pricingPeriods) + { + $this->pricingPeriods = $pricingPeriods; + } + public function getPricingPeriods() + { + return $this->pricingPeriods; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setTestingStartDate($testingStartDate) + { + $this->testingStartDate = $testingStartDate; + } + public function getTestingStartDate() + { + return $this->testingStartDate; } } -class Google_Service_Dfareporting_DateRange extends Google_Model +class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model { protected $internal_gapi_mappings = array( ); public $endDate; - public $kind; - public $relativeDateRange; + public $pricingComment; + public $rateOrCostNanos; public $startDate; + public $units; public function setEndDate($endDate) @@ -911,21 +16118,21 @@ public function getEndDate() { return $this->endDate; } - public function setKind($kind) + public function setPricingComment($pricingComment) { - $this->kind = $kind; + $this->pricingComment = $pricingComment; } - public function getKind() + public function getPricingComment() { - return $this->kind; + return $this->pricingComment; } - public function setRelativeDateRange($relativeDateRange) + public function setRateOrCostNanos($rateOrCostNanos) { - $this->relativeDateRange = $relativeDateRange; + $this->rateOrCostNanos = $rateOrCostNanos; } - public function getRelativeDateRange() + public function getRateOrCostNanos() { - return $this->relativeDateRange; + return $this->rateOrCostNanos; } public function setStartDate($startDate) { @@ -935,65 +16142,112 @@ public function getStartDate() { return $this->startDate; } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } } -class Google_Service_Dfareporting_DfareportingFile extends Google_Model +class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection { + protected $collection_key = 'traffickerEmails'; protected $internal_gapi_mappings = array( ); - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $etag; - public $fileName; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $reportId; - public $status; - protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; - protected $urlsDataType = ''; + public $adxDealIds; + public $insertionOrderId; + public $insertionOrderIdStatus; + public $mediaCostNanos; + public $programmatic; + public $traffickerEmails; - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + public function setAdxDealIds($adxDealIds) { - $this->dateRange = $dateRange; + $this->adxDealIds = $adxDealIds; } - public function getDateRange() + public function getAdxDealIds() { - return $this->dateRange; + return $this->adxDealIds; } - public function setEtag($etag) + public function setInsertionOrderId($insertionOrderId) { - $this->etag = $etag; + $this->insertionOrderId = $insertionOrderId; } - public function getEtag() + public function getInsertionOrderId() { - return $this->etag; + return $this->insertionOrderId; } - public function setFileName($fileName) + public function setInsertionOrderIdStatus($insertionOrderIdStatus) { - $this->fileName = $fileName; + $this->insertionOrderIdStatus = $insertionOrderIdStatus; } - public function getFileName() + public function getInsertionOrderIdStatus() { - return $this->fileName; + return $this->insertionOrderIdStatus; } - public function setFormat($format) + public function setMediaCostNanos($mediaCostNanos) + { + $this->mediaCostNanos = $mediaCostNanos; + } + public function getMediaCostNanos() + { + return $this->mediaCostNanos; + } + public function setProgrammatic($programmatic) + { + $this->programmatic = $programmatic; + } + public function getProgrammatic() + { + return $this->programmatic; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'reachByFrequencyMetrics'; + protected $internal_gapi_mappings = array( + ); + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; + protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $reachByFrequencyMetricsDataType = 'array'; + + + public function setDimensionFilters($dimensionFilters) { - $this->format = $format; + $this->dimensionFilters = $dimensionFilters; } - public function getFormat() + public function getDimensionFilters() { - return $this->format; + return $this->dimensionFilters; } - public function setId($id) + public function setDimensions($dimensions) { - $this->id = $id; + $this->dimensions = $dimensions; } - public function getId() + public function getDimensions() { - return $this->id; + return $this->dimensions; } public function setKind($kind) { @@ -1003,74 +16257,103 @@ public function getKind() { return $this->kind; } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setReportId($reportId) + public function setMetrics($metrics) { - $this->reportId = $reportId; + $this->metrics = $metrics; } - public function getReportId() + public function getMetrics() { - return $this->reportId; + return $this->metrics; } - public function setStatus($status) + public function setPivotedActivityMetrics($pivotedActivityMetrics) { - $this->status = $status; + $this->pivotedActivityMetrics = $pivotedActivityMetrics; } - public function getStatus() + public function getPivotedActivityMetrics() { - return $this->status; + return $this->pivotedActivityMetrics; } - public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls) + public function setReachByFrequencyMetrics($reachByFrequencyMetrics) { - $this->urls = $urls; + $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; } - public function getUrls() + public function getReachByFrequencyMetrics() { - return $this->urls; + return $this->reachByFrequencyMetrics; } } -class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model +class Google_Service_Dfareporting_Recipient extends Google_Model { protected $internal_gapi_mappings = array( ); - public $apiUrl; - public $browserUrl; + public $deliveryType; + public $email; + public $kind; - public function setApiUrl($apiUrl) + public function setDeliveryType($deliveryType) { - $this->apiUrl = $apiUrl; + $this->deliveryType = $deliveryType; } - public function getApiUrl() + public function getDeliveryType() { - return $this->apiUrl; + return $this->deliveryType; } - public function setBrowserUrl($browserUrl) + public function setEmail($email) { - $this->browserUrl = $browserUrl; + $this->email = $email; } - public function getBrowserUrl() + public function getEmail() { - return $this->browserUrl; + return $this->email; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; } } -class Google_Service_Dfareporting_Dimension extends Google_Model +class Google_Service_Dfareporting_Region extends Google_Model { protected $internal_gapi_mappings = array( ); + public $countryCode; + public $countryDartId; + public $dartId; public $kind; public $name; + public $regionCode; + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } public function setKind($kind) { $this->kind = $kind; @@ -1087,25 +16370,26 @@ public function getName() { return $this->name; } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } } -class Google_Service_Dfareporting_DimensionFilter extends Google_Model +class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection { + protected $collection_key = 'regions'; protected $internal_gapi_mappings = array( ); - public $dimensionName; public $kind; - public $value; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } - public function getDimensionName() - { - return $this->dimensionName; - } public function setKind($kind) { $this->kind = $kind; @@ -1114,35 +16398,78 @@ public function getKind() { return $this->kind; } - public function setValue($value) + public function setRegions($regions) { - $this->value = $value; + $this->regions = $regions; } - public function getValue() + public function getRegions() { - return $this->value; + return $this->regions; } } -class Google_Service_Dfareporting_DimensionValue extends Google_Model +class Google_Service_Dfareporting_Report extends Google_Model { protected $internal_gapi_mappings = array( ); - public $dimensionName; + public $accountId; + protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; + protected $criteriaDataType = ''; + protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; + protected $crossDimensionReachCriteriaDataType = ''; + protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; + protected $deliveryDataType = ''; public $etag; + public $fileName; + protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; + protected $floodlightCriteriaDataType = ''; + public $format; public $id; public $kind; - public $matchType; - public $value; + public $lastModifiedTime; + public $name; + public $ownerProfileId; + protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; + protected $pathToConversionCriteriaDataType = ''; + protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; + protected $reachCriteriaDataType = ''; + protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; + protected $scheduleDataType = ''; + public $subAccountId; + public $type; - public function setDimensionName($dimensionName) + public function setAccountId($accountId) { - $this->dimensionName = $dimensionName; + $this->accountId = $accountId; } - public function getDimensionName() + public function getAccountId() { - return $this->dimensionName; + return $this->accountId; + } + 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) { @@ -1152,6 +16479,30 @@ 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; @@ -1168,106 +16519,103 @@ public function getKind() { return $this->kind; } - public function setMatchType($matchType) + public function setLastModifiedTime($lastModifiedTime) { - $this->matchType = $matchType; + $this->lastModifiedTime = $lastModifiedTime; } - public function getMatchType() + public function getLastModifiedTime() { - return $this->matchType; + return $this->lastModifiedTime; } - public function setValue($value) + public function setName($name) { - $this->value = $value; + $this->name = $name; } - public function getValue() + public function getName() { - return $this->value; + return $this->name; } -} - -class Google_Service_Dfareporting_DimensionValueList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setEtag($etag) + 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->etag = $etag; + $this->reachCriteria = $reachCriteria; } - public function getEtag() + public function getReachCriteria() { - return $this->etag; + return $this->reachCriteria; } - public function setItems($items) + public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule) { - $this->items = $items; + $this->schedule = $schedule; } - public function getItems() + public function getSchedule() { - return $this->items; + return $this->schedule; } - public function setKind($kind) + public function setSubAccountId($subAccountId) { - $this->kind = $kind; + $this->subAccountId = $subAccountId; } - public function getKind() + public function getSubAccountId() { - return $this->kind; + return $this->subAccountId; } - public function setNextPageToken($nextPageToken) + public function setType($type) { - $this->nextPageToken = $nextPageToken; + $this->type = $type; } - public function getNextPageToken() + public function getType() { - return $this->nextPageToken; + return $this->type; } } -class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection +class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection { - protected $collection_key = 'filters'; + protected $collection_key = 'pivotedActivityMetrics'; protected $internal_gapi_mappings = array( ); - public $dimensionName; - public $endDate; - protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; - protected $filtersDataType = 'array'; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; public $kind; - public $startDate; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } - public function getDimensionName() - { - return $this->dimensionName; - } - public function setEndDate($endDate) + public function setDimensionFilters($dimensionFilters) { - $this->endDate = $endDate; + $this->dimensionFilters = $dimensionFilters; } - public function getEndDate() + public function getDimensionFilters() { - return $this->endDate; + return $this->dimensionFilters; } - public function setFilters($filters) + public function setDimensions($dimensions) { - $this->filters = $filters; + $this->dimensions = $dimensions; } - public function getFilters() + public function getDimensions() { - return $this->filters; + return $this->dimensions; } public function setKind($kind) { @@ -1277,212 +16625,249 @@ public function getKind() { return $this->kind; } - public function setStartDate($startDate) + public function setMetrics($metrics) { - $this->startDate = $startDate; + $this->metrics = $metrics; } - public function getStartDate() + public function getMetrics() { - return $this->startDate; + return $this->metrics; + } + public function setPivotedActivityMetrics($pivotedActivityMetrics) + { + $this->pivotedActivityMetrics = $pivotedActivityMetrics; + } + public function getPivotedActivityMetrics() + { + return $this->pivotedActivityMetrics; } } -class Google_Service_Dfareporting_FileList extends Google_Collection +class Google_Service_Dfareporting_ReportCriteria extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'metricNames'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $metricNames; - public function setEtag($etag) + public function setActivities(Google_Service_Dfareporting_Activities $activities) { - $this->etag = $etag; + $this->activities = $activities; } - public function getEtag() + public function getActivities() { - return $this->etag; + return $this->activities; } - public function setItems($items) + public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) { - $this->items = $items; + $this->customRichMediaEvents = $customRichMediaEvents; } - public function getItems() + public function getCustomRichMediaEvents() { - return $this->items; + return $this->customRichMediaEvents; } - public function setKind($kind) + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { - $this->kind = $kind; + $this->dateRange = $dateRange; } - public function getKind() + public function getDateRange() { - return $this->kind; + return $this->dateRange; } - public function setNextPageToken($nextPageToken) + public function setDimensionFilters($dimensionFilters) { - $this->nextPageToken = $nextPageToken; + $this->dimensionFilters = $dimensionFilters; } - public function getNextPageToken() + public function getDimensionFilters() { - return $this->nextPageToken; + 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_FloodlightReportCompatibleFields extends Google_Collection +class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection { - protected $collection_key = 'metrics'; + protected $collection_key = 'overlapMetricNames'; protected $internal_gapi_mappings = array( ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; + protected $breakdownDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $dimension; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; + public $metricNames; + public $overlapMetricNames; + public $pivoted; - public function setDimensionFilters($dimensionFilters) + public function setBreakdown($breakdown) { - $this->dimensionFilters = $dimensionFilters; + $this->breakdown = $breakdown; } - public function getDimensionFilters() + public function getBreakdown() { - return $this->dimensionFilters; + return $this->breakdown; } - public function setDimensions($dimensions) + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { - $this->dimensions = $dimensions; + $this->dateRange = $dateRange; } - public function getDimensions() + public function getDateRange() { - return $this->dimensions; + return $this->dateRange; } - public function setKind($kind) + public function setDimension($dimension) { - $this->kind = $kind; + $this->dimension = $dimension; } - public function getKind() + public function getDimension() { - return $this->kind; + return $this->dimension; } - public function setMetrics($metrics) + public function setDimensionFilters($dimensionFilters) { - $this->metrics = $metrics; + $this->dimensionFilters = $dimensionFilters; } - public function getMetrics() + public function getDimensionFilters() { - return $this->metrics; + return $this->dimensionFilters; } -} - -class Google_Service_Dfareporting_Metric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - public function setKind($kind) + public function setMetricNames($metricNames) { - $this->kind = $kind; + $this->metricNames = $metricNames; } - public function getKind() + public function getMetricNames() { - return $this->kind; + return $this->metricNames; } - public function setName($name) + public function setOverlapMetricNames($overlapMetricNames) { - $this->name = $name; + $this->overlapMetricNames = $overlapMetricNames; } - public function getName() + public function getOverlapMetricNames() { - return $this->name; + return $this->overlapMetricNames; + } + public function setPivoted($pivoted) + { + $this->pivoted = $pivoted; + } + public function getPivoted() + { + return $this->pivoted; } } -class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection +class Google_Service_Dfareporting_ReportDelivery extends Google_Collection { - protected $collection_key = 'perInteractionDimensions'; + protected $collection_key = 'recipients'; protected $internal_gapi_mappings = array( ); - protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; - protected $customFloodlightVariablesDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $perInteractionDimensionsDataType = 'array'; + public $emailOwner; + public $emailOwnerDeliveryType; + public $message; + protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; + protected $recipientsDataType = 'array'; - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } - public function setCustomFloodlightVariables($customFloodlightVariables) + public function setEmailOwner($emailOwner) { - $this->customFloodlightVariables = $customFloodlightVariables; + $this->emailOwner = $emailOwner; } - public function getCustomFloodlightVariables() + public function getEmailOwner() { - return $this->customFloodlightVariables; + return $this->emailOwner; } - public function setKind($kind) + public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) { - $this->kind = $kind; + $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; } - public function getKind() + public function getEmailOwnerDeliveryType() { - return $this->kind; + return $this->emailOwnerDeliveryType; } - public function setMetrics($metrics) + public function setMessage($message) { - $this->metrics = $metrics; + $this->message = $message; } - public function getMetrics() + public function getMessage() { - return $this->metrics; + return $this->message; } - public function setPerInteractionDimensions($perInteractionDimensions) + public function setRecipients($recipients) { - $this->perInteractionDimensions = $perInteractionDimensions; + $this->recipients = $recipients; } - public function getPerInteractionDimensions() + public function getRecipients() { - return $this->perInteractionDimensions; + return $this->recipients; } } -class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection +class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection { - protected $collection_key = 'reachByFrequencyMetrics'; + protected $collection_key = 'metricNames'; protected $internal_gapi_mappings = array( ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $reachByFrequencyMetricsDataType = 'array'; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; + public function setCustomRichMediaEvents($customRichMediaEvents) + { + $this->customRichMediaEvents = $customRichMediaEvents; + } + public function 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; @@ -1499,64 +16884,94 @@ public function getDimensions() { return $this->dimensions; } - public function setKind($kind) + public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { - $this->kind = $kind; + $this->floodlightConfigId = $floodlightConfigId; } - public function getKind() + public function getFloodlightConfigId() { - return $this->kind; + return $this->floodlightConfigId; } - public function setMetrics($metrics) + public function setMetricNames($metricNames) { - $this->metrics = $metrics; + $this->metricNames = $metricNames; } - public function getMetrics() + public function getMetricNames() { - return $this->metrics; + return $this->metricNames; } - public function setPivotedActivityMetrics($pivotedActivityMetrics) + public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties) { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; + $this->reportProperties = $reportProperties; } - public function getPivotedActivityMetrics() + public function getReportProperties() { - return $this->pivotedActivityMetrics; + return $this->reportProperties; } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) +} + +class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $includeAttributedIPConversions; + public $includeUnattributedCookieConversions; + public $includeUnattributedIPConversions; + + + public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { - $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; + $this->includeAttributedIPConversions = $includeAttributedIPConversions; } - public function getReachByFrequencyMetrics() + public function getIncludeAttributedIPConversions() { - return $this->reachByFrequencyMetrics; + 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_Recipient extends Google_Model +class Google_Service_Dfareporting_ReportList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $deliveryType; - public $email; + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_Report'; + protected $itemsDataType = 'array'; public $kind; + public $nextPageToken; - public function setDeliveryType($deliveryType) + public function setEtag($etag) { - $this->deliveryType = $deliveryType; + $this->etag = $etag; } - public function getDeliveryType() + public function getEtag() { - return $this->deliveryType; + return $this->etag; } - public function setEmail($email) + public function setItems($items) { - $this->email = $email; + $this->items = $items; } - public function getEmail() + public function getItems() { - return $this->email; + return $this->items; } public function setKind($kind) { @@ -1566,209 +16981,239 @@ public function getKind() { return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } } -class Google_Service_Dfareporting_Report extends Google_Model +class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection { + protected $collection_key = 'perInteractionDimensions'; protected $internal_gapi_mappings = array( ); - public $accountId; - protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria'; - protected $activeGrpCriteriaDataType = ''; - protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; - protected $criteriaDataType = ''; - protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; - protected $crossDimensionReachCriteriaDataType = ''; - protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; - protected $deliveryDataType = ''; - public $etag; - public $fileName; - protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; - protected $floodlightCriteriaDataType = ''; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $name; - public $ownerProfileId; - protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; - protected $pathToConversionCriteriaDataType = ''; - protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; - protected $reachCriteriaDataType = ''; - protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; - protected $scheduleDataType = ''; - public $subAccountId; - public $type; + protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $activityFiltersDataType = 'array'; + protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; + protected $customFloodlightVariablesDataType = 'array'; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $perInteractionDimensionsDataType = 'array'; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria) + public function setActivityFilters($activityFilters) { - $this->activeGrpCriteria = $activeGrpCriteria; + $this->activityFilters = $activityFilters; } - public function getActiveGrpCriteria() + public function getActivityFilters() { - return $this->activeGrpCriteria; + return $this->activityFilters; } - public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria) + public function setConversionDimensions($conversionDimensions) { - $this->criteria = $criteria; + $this->conversionDimensions = $conversionDimensions; } - public function getCriteria() + public function getConversionDimensions() { - return $this->criteria; + return $this->conversionDimensions; } - public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria) + public function setCustomFloodlightVariables($customFloodlightVariables) { - $this->crossDimensionReachCriteria = $crossDimensionReachCriteria; + $this->customFloodlightVariables = $customFloodlightVariables; } - public function getCrossDimensionReachCriteria() + public function getCustomFloodlightVariables() { - return $this->crossDimensionReachCriteria; + return $this->customFloodlightVariables; } - public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery) + public function setCustomRichMediaEvents($customRichMediaEvents) { - $this->delivery = $delivery; + $this->customRichMediaEvents = $customRichMediaEvents; } - public function getDelivery() + public function getCustomRichMediaEvents() { - return $this->delivery; + return $this->customRichMediaEvents; } - public function setEtag($etag) + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { - $this->etag = $etag; + $this->dateRange = $dateRange; } - public function getEtag() + public function getDateRange() { - return $this->etag; + return $this->dateRange; } - public function setFileName($fileName) + public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { - $this->fileName = $fileName; + $this->floodlightConfigId = $floodlightConfigId; } - public function getFileName() + public function getFloodlightConfigId() { - return $this->fileName; + return $this->floodlightConfigId; } - public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria) + public function setMetricNames($metricNames) { - $this->floodlightCriteria = $floodlightCriteria; + $this->metricNames = $metricNames; } - public function getFloodlightCriteria() + public function getMetricNames() { - return $this->floodlightCriteria; + return $this->metricNames; } - public function setFormat($format) + public function setPerInteractionDimensions($perInteractionDimensions) { - $this->format = $format; + $this->perInteractionDimensions = $perInteractionDimensions; } - public function getFormat() + public function getPerInteractionDimensions() { - return $this->format; + return $this->perInteractionDimensions; } - public function setId($id) + public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties) { - $this->id = $id; + $this->reportProperties = $reportProperties; } - public function getId() + public function getReportProperties() { - return $this->id; + return $this->reportProperties; } - public function setKind($kind) +} + +class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clicksLookbackWindow; + public $impressionsLookbackWindow; + public $includeAttributedIPConversions; + public $includeUnattributedCookieConversions; + public $includeUnattributedIPConversions; + public $maximumClickInteractions; + public $maximumImpressionInteractions; + public $maximumInteractionGap; + public $pivotOnInteractionPath; + + + public function setClicksLookbackWindow($clicksLookbackWindow) { - $this->kind = $kind; + $this->clicksLookbackWindow = $clicksLookbackWindow; } - public function getKind() + public function getClicksLookbackWindow() { - return $this->kind; + return $this->clicksLookbackWindow; } - public function setLastModifiedTime($lastModifiedTime) + public function setImpressionsLookbackWindow($impressionsLookbackWindow) { - $this->lastModifiedTime = $lastModifiedTime; + $this->impressionsLookbackWindow = $impressionsLookbackWindow; } - public function getLastModifiedTime() + public function getImpressionsLookbackWindow() { - return $this->lastModifiedTime; + return $this->impressionsLookbackWindow; } - public function setName($name) + public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { - $this->name = $name; + $this->includeAttributedIPConversions = $includeAttributedIPConversions; } - public function getName() + public function getIncludeAttributedIPConversions() { - return $this->name; + return $this->includeAttributedIPConversions; } - public function setOwnerProfileId($ownerProfileId) + public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) { - $this->ownerProfileId = $ownerProfileId; + $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; } - public function getOwnerProfileId() + public function getIncludeUnattributedCookieConversions() { - return $this->ownerProfileId; + return $this->includeUnattributedCookieConversions; } - public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria) + public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) { - $this->pathToConversionCriteria = $pathToConversionCriteria; + $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; } - public function getPathToConversionCriteria() + public function getIncludeUnattributedIPConversions() { - return $this->pathToConversionCriteria; + return $this->includeUnattributedIPConversions; } - public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria) + public function setMaximumClickInteractions($maximumClickInteractions) { - $this->reachCriteria = $reachCriteria; + $this->maximumClickInteractions = $maximumClickInteractions; } - public function getReachCriteria() + public function getMaximumClickInteractions() { - return $this->reachCriteria; + return $this->maximumClickInteractions; } - public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule) + public function setMaximumImpressionInteractions($maximumImpressionInteractions) { - $this->schedule = $schedule; + $this->maximumImpressionInteractions = $maximumImpressionInteractions; } - public function getSchedule() + public function getMaximumImpressionInteractions() { - return $this->schedule; + return $this->maximumImpressionInteractions; } - public function setSubAccountId($subAccountId) + public function setMaximumInteractionGap($maximumInteractionGap) { - $this->subAccountId = $subAccountId; + $this->maximumInteractionGap = $maximumInteractionGap; } - public function getSubAccountId() + public function getMaximumInteractionGap() { - return $this->subAccountId; + return $this->maximumInteractionGap; } - public function setType($type) + public function setPivotOnInteractionPath($pivotOnInteractionPath) { - $this->type = $type; + $this->pivotOnInteractionPath = $pivotOnInteractionPath; } - public function getType() + public function getPivotOnInteractionPath() { - return $this->type; + return $this->pivotOnInteractionPath; } } -class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection +class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection { - protected $collection_key = 'metricNames'; + protected $collection_key = 'reachByFrequencyMetricNames'; protected $internal_gapi_mappings = array( ); + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; protected $dateRangeDataType = ''; protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; protected $dimensionsDataType = 'array'; + public $enableAllDimensionCombinations; 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; @@ -1793,6 +17238,14 @@ public function getDimensions() { return $this->dimensions; } + public function setEnableAllDimensionCombinations($enableAllDimensionCombinations) + { + $this->enableAllDimensionCombinations = $enableAllDimensionCombinations; + } + public function getEnableAllDimensionCombinations() + { + return $this->enableAllDimensionCombinations; + } public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -1801,396 +17254,498 @@ public function getMetricNames() { return $this->metricNames; } + public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) + { + $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; + } + public function getReachByFrequencyMetricNames() + { + return $this->reachByFrequencyMetricNames; + } } -class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection +class Google_Service_Dfareporting_ReportSchedule extends Google_Collection { - protected $collection_key = 'pivotedActivityMetrics'; + protected $collection_key = 'repeatsOnWeekDays'; protected $internal_gapi_mappings = array( ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; + public $active; + public $every; + public $expirationDate; + public $repeats; + public $repeatsOnWeekDays; + public $runsOnDayOfMonth; + public $startDate; - public function setDimensionFilters($dimensionFilters) + public function setActive($active) { - $this->dimensionFilters = $dimensionFilters; + $this->active = $active; } - public function getDimensionFilters() + public function getActive() { - return $this->dimensionFilters; + return $this->active; } - public function setDimensions($dimensions) + public function setEvery($every) { - $this->dimensions = $dimensions; + $this->every = $every; } - public function getDimensions() + public function getEvery() { - return $this->dimensions; + return $this->every; } - public function setKind($kind) + public function setExpirationDate($expirationDate) { - $this->kind = $kind; + $this->expirationDate = $expirationDate; } - public function getKind() + public function getExpirationDate() { - return $this->kind; + return $this->expirationDate; } - public function setMetrics($metrics) + public function setRepeats($repeats) { - $this->metrics = $metrics; + $this->repeats = $repeats; } - public function getMetrics() + public function getRepeats() { - return $this->metrics; + return $this->repeats; } - public function setPivotedActivityMetrics($pivotedActivityMetrics) + public function setRepeatsOnWeekDays($repeatsOnWeekDays) { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; + $this->repeatsOnWeekDays = $repeatsOnWeekDays; } - public function getPivotedActivityMetrics() + public function getRepeatsOnWeekDays() { - return $this->pivotedActivityMetrics; + 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_ReportCriteria extends Google_Collection +class Google_Service_Dfareporting_ReportsConfiguration extends Google_Model { - protected $collection_key = 'metricNames'; protected $internal_gapi_mappings = array( ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; + public $exposureToConversionEnabled; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $reportGenerationTimeZoneId; - public function setActivities(Google_Service_Dfareporting_Activities $activities) + public function setExposureToConversionEnabled($exposureToConversionEnabled) { - $this->activities = $activities; + $this->exposureToConversionEnabled = $exposureToConversionEnabled; } - public function getActivities() + public function getExposureToConversionEnabled() { - return $this->activities; + return $this->exposureToConversionEnabled; } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) { - $this->customRichMediaEvents = $customRichMediaEvents; + $this->lookbackConfiguration = $lookbackConfiguration; } - public function getCustomRichMediaEvents() + public function getLookbackConfiguration() { - return $this->customRichMediaEvents; + return $this->lookbackConfiguration; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId) { - $this->dateRange = $dateRange; + $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId; } - public function getDateRange() + public function getReportGenerationTimeZoneId() { - return $this->dateRange; + return $this->reportGenerationTimeZoneId; } - public function setDimensionFilters($dimensionFilters) +} + +class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customExitUrl; + public $exitId; + public $useCustomExitUrl; + + + public function setCustomExitUrl($customExitUrl) { - $this->dimensionFilters = $dimensionFilters; + $this->customExitUrl = $customExitUrl; } - public function getDimensionFilters() + public function getCustomExitUrl() { - return $this->dimensionFilters; + return $this->customExitUrl; } - public function setDimensions($dimensions) + public function setExitId($exitId) { - $this->dimensions = $dimensions; + $this->exitId = $exitId; } - public function getDimensions() + public function getExitId() { - return $this->dimensions; + return $this->exitId; } - public function setMetricNames($metricNames) + public function setUseCustomExitUrl($useCustomExitUrl) { - $this->metricNames = $metricNames; + $this->useCustomExitUrl = $useCustomExitUrl; } - public function getMetricNames() + public function getUseCustomExitUrl() { - return $this->metricNames; + return $this->useCustomExitUrl; } } -class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection +class Google_Service_Dfareporting_Site extends Google_Collection { - protected $collection_key = 'overlapMetricNames'; + protected $collection_key = 'siteContacts'; protected $internal_gapi_mappings = array( ); - protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; - protected $breakdownDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $dimension; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - public $metricNames; - public $overlapMetricNames; - public $pivoted; + public $accountId; + public $approved; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + public $name; + protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact'; + protected $siteContactsDataType = 'array'; + protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; + protected $siteSettingsDataType = ''; + public $subaccountId; - public function setBreakdown($breakdown) + public function setAccountId($accountId) { - $this->breakdown = $breakdown; + $this->accountId = $accountId; } - public function getBreakdown() + public function getAccountId() { - return $this->breakdown; + return $this->accountId; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + public function setApproved($approved) { - $this->dateRange = $dateRange; + $this->approved = $approved; } - public function getDateRange() + public function getApproved() { - return $this->dateRange; + return $this->approved; } - public function setDimension($dimension) + public function setDirectorySiteId($directorySiteId) { - $this->dimension = $dimension; + $this->directorySiteId = $directorySiteId; } - public function getDimension() + public function getDirectorySiteId() { - return $this->dimension; + return $this->directorySiteId; } - public function setDimensionFilters($dimensionFilters) + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) { - $this->dimensionFilters = $dimensionFilters; + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; } - public function getDimensionFilters() + public function getDirectorySiteIdDimensionValue() { - return $this->dimensionFilters; + return $this->directorySiteIdDimensionValue; } - public function setMetricNames($metricNames) + public function setId($id) { - $this->metricNames = $metricNames; + $this->id = $id; } - public function getMetricNames() + public function getId() { - return $this->metricNames; + return $this->id; } - public function setOverlapMetricNames($overlapMetricNames) + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) { - $this->overlapMetricNames = $overlapMetricNames; + $this->idDimensionValue = $idDimensionValue; } - public function getOverlapMetricNames() + public function getIdDimensionValue() { - return $this->overlapMetricNames; + return $this->idDimensionValue; } - public function setPivoted($pivoted) + public function setKeyName($keyName) { - $this->pivoted = $pivoted; + $this->keyName = $keyName; } - public function getPivoted() + public function getKeyName() { - return $this->pivoted; + return $this->keyName; + } + 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 setSiteContacts($siteContacts) + { + $this->siteContacts = $siteContacts; + } + public function getSiteContacts() + { + return $this->siteContacts; + } + public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings) + { + $this->siteSettings = $siteSettings; + } + public function getSiteSettings() + { + return $this->siteSettings; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; } } -class Google_Service_Dfareporting_ReportDelivery extends Google_Collection +class Google_Service_Dfareporting_SiteContact extends Google_Model { - protected $collection_key = 'recipients'; protected $internal_gapi_mappings = array( ); - public $emailOwner; - public $emailOwnerDeliveryType; - public $message; - protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; - protected $recipientsDataType = 'array'; + public $contactType; + public $email; + public $firstName; + public $id; + public $lastName; - public function setEmailOwner($emailOwner) + public function setContactType($contactType) { - $this->emailOwner = $emailOwner; + $this->contactType = $contactType; } - public function getEmailOwner() + public function getContactType() { - return $this->emailOwner; + return $this->contactType; } - public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) + public function setEmail($email) { - $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; + $this->email = $email; } - public function getEmailOwnerDeliveryType() + public function getEmail() { - return $this->emailOwnerDeliveryType; + return $this->email; } - public function setMessage($message) + public function setFirstName($firstName) { - $this->message = $message; + $this->firstName = $firstName; } - public function getMessage() + public function getFirstName() { - return $this->message; + return $this->firstName; } - public function setRecipients($recipients) + public function setId($id) { - $this->recipients = $recipients; + $this->id = $id; } - public function getRecipients() + public function getId() { - return $this->recipients; + return $this->id; + } + public function setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; } } -class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection +class Google_Service_Dfareporting_SiteSettings extends Google_Model { - protected $collection_key = 'metricNames'; protected $internal_gapi_mappings = array( ); - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; + public $activeViewOptOut; + protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; + protected $creativeSettingsDataType = ''; + public $disableBrandSafeAds; + public $disableNewCookie; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; - public function setCustomRichMediaEvents($customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } - public function getCustomRichMediaEvents() - { - return $this->customRichMediaEvents; - } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + public function setActiveViewOptOut($activeViewOptOut) { - $this->dateRange = $dateRange; + $this->activeViewOptOut = $activeViewOptOut; } - public function getDateRange() + public function getActiveViewOptOut() { - return $this->dateRange; + return $this->activeViewOptOut; } - public function setDimensionFilters($dimensionFilters) + public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) { - $this->dimensionFilters = $dimensionFilters; + $this->creativeSettings = $creativeSettings; } - public function getDimensionFilters() + public function getCreativeSettings() { - return $this->dimensionFilters; + return $this->creativeSettings; } - public function setDimensions($dimensions) + public function setDisableBrandSafeAds($disableBrandSafeAds) { - $this->dimensions = $dimensions; + $this->disableBrandSafeAds = $disableBrandSafeAds; } - public function getDimensions() + public function getDisableBrandSafeAds() { - return $this->dimensions; + return $this->disableBrandSafeAds; } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) + public function setDisableNewCookie($disableNewCookie) { - $this->floodlightConfigId = $floodlightConfigId; + $this->disableNewCookie = $disableNewCookie; } - public function getFloodlightConfigId() + public function getDisableNewCookie() { - return $this->floodlightConfigId; + return $this->disableNewCookie; } - public function setMetricNames($metricNames) + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) { - $this->metricNames = $metricNames; + $this->lookbackConfiguration = $lookbackConfiguration; } - public function getMetricNames() + public function getLookbackConfiguration() { - return $this->metricNames; + return $this->lookbackConfiguration; } - public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties) + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) { - $this->reportProperties = $reportProperties; + $this->tagSetting = $tagSetting; } - public function getReportProperties() + public function getTagSetting() { - return $this->reportProperties; + return $this->tagSetting; } } -class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model +class Google_Service_Dfareporting_SitesListResponse extends Google_Collection { + protected $collection_key = 'sites'; protected $internal_gapi_mappings = array( ); - public $includeAttributedIPConversions; - public $includeUnattributedCookieConversions; - public $includeUnattributedIPConversions; + public $kind; + public $nextPageToken; + protected $sitesType = 'Google_Service_Dfareporting_Site'; + protected $sitesDataType = 'array'; - public function setIncludeAttributedIPConversions($includeAttributedIPConversions) + public function setKind($kind) { - $this->includeAttributedIPConversions = $includeAttributedIPConversions; + $this->kind = $kind; } - public function getIncludeAttributedIPConversions() + public function getKind() { - return $this->includeAttributedIPConversions; + return $this->kind; } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) + public function setNextPageToken($nextPageToken) { - $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; + $this->nextPageToken = $nextPageToken; } - public function getIncludeUnattributedCookieConversions() + public function getNextPageToken() { - return $this->includeUnattributedCookieConversions; + return $this->nextPageToken; } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) + public function setSites($sites) { - $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; + $this->sites = $sites; } - public function getIncludeUnattributedIPConversions() + public function getSites() { - return $this->includeUnattributedIPConversions; + return $this->sites; } } -class Google_Service_Dfareporting_ReportList extends Google_Collection +class Google_Service_Dfareporting_Size extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_Report'; - protected $itemsDataType = 'array'; + public $height; + public $iab; + public $id; public $kind; - public $nextPageToken; + public $width; - public function setEtag($etag) + public function setHeight($height) { - $this->etag = $etag; + $this->height = $height; } - public function getEtag() + public function getHeight() { - return $this->etag; + return $this->height; } - public function setItems($items) + public function setIab($iab) { - $this->items = $items; + $this->iab = $iab; } - public function getItems() + public function getIab() { - return $this->items; + return $this->iab; + } + 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 setWidth($width) + { + $this->width = $width; } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Dfareporting_SizesListResponse extends Google_Collection +{ + protected $collection_key = 'sizes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sizesType = 'Google_Service_Dfareporting_Size'; + protected $sizesDataType = 'array'; + + public function setKind($kind) { $this->kind = $kind; @@ -2199,384 +17754,418 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) + public function setSizes($sizes) { - $this->nextPageToken = $nextPageToken; + $this->sizes = $sizes; } - public function getNextPageToken() + public function getSizes() { - return $this->nextPageToken; + return $this->sizes; } } -class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection +class Google_Service_Dfareporting_SortedDimension extends Google_Model { - protected $collection_key = 'perInteractionDimensions'; protected $internal_gapi_mappings = array( ); - protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $activityFiltersDataType = 'array'; - protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; - protected $customFloodlightVariablesDataType = 'array'; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $perInteractionDimensionsDataType = 'array'; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; + public $kind; + public $name; + public $sortOrder; - public function setActivityFilters($activityFilters) - { - $this->activityFilters = $activityFilters; - } - public function getActivityFilters() - { - return $this->activityFilters; - } - public function setConversionDimensions($conversionDimensions) + public function setKind($kind) { - $this->conversionDimensions = $conversionDimensions; + $this->kind = $kind; } - public function getConversionDimensions() + public function getKind() { - return $this->conversionDimensions; + return $this->kind; } - public function setCustomFloodlightVariables($customFloodlightVariables) + public function setName($name) { - $this->customFloodlightVariables = $customFloodlightVariables; + $this->name = $name; } - public function getCustomFloodlightVariables() + public function getName() { - return $this->customFloodlightVariables; + return $this->name; } - public function setCustomRichMediaEvents($customRichMediaEvents) + public function setSortOrder($sortOrder) { - $this->customRichMediaEvents = $customRichMediaEvents; + $this->sortOrder = $sortOrder; } - public function getCustomRichMediaEvents() + public function getSortOrder() { - return $this->customRichMediaEvents; + return $this->sortOrder; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) +} + +class Google_Service_Dfareporting_Subaccount extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $availablePermissionIds; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) { - $this->dateRange = $dateRange; + $this->accountId = $accountId; } - public function getDateRange() + public function getAccountId() { - return $this->dateRange; + return $this->accountId; } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) + public function setAvailablePermissionIds($availablePermissionIds) { - $this->floodlightConfigId = $floodlightConfigId; + $this->availablePermissionIds = $availablePermissionIds; } - public function getFloodlightConfigId() + public function getAvailablePermissionIds() { - return $this->floodlightConfigId; + return $this->availablePermissionIds; } - public function setMetricNames($metricNames) + public function setId($id) { - $this->metricNames = $metricNames; + $this->id = $id; } - public function getMetricNames() + public function getId() { - return $this->metricNames; + return $this->id; } - public function setPerInteractionDimensions($perInteractionDimensions) + public function setKind($kind) { - $this->perInteractionDimensions = $perInteractionDimensions; + $this->kind = $kind; } - public function getPerInteractionDimensions() + public function getKind() { - return $this->perInteractionDimensions; + return $this->kind; } - public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties) + public function setName($name) { - $this->reportProperties = $reportProperties; + $this->name = $name; } - public function getReportProperties() + public function getName() { - return $this->reportProperties; + return $this->name; } } -class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model +class Google_Service_Dfareporting_SubaccountsListResponse extends Google_Collection { + protected $collection_key = 'subaccounts'; protected $internal_gapi_mappings = array( ); - public $clicksLookbackWindow; - public $impressionsLookbackWindow; - public $includeAttributedIPConversions; - public $includeUnattributedCookieConversions; - public $includeUnattributedIPConversions; - public $maximumClickInteractions; - public $maximumImpressionInteractions; - public $maximumInteractionGap; - public $pivotOnInteractionPath; + public $kind; + public $nextPageToken; + protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount'; + protected $subaccountsDataType = 'array'; - public function setClicksLookbackWindow($clicksLookbackWindow) - { - $this->clicksLookbackWindow = $clicksLookbackWindow; - } - public function getClicksLookbackWindow() - { - return $this->clicksLookbackWindow; - } - public function setImpressionsLookbackWindow($impressionsLookbackWindow) + public function setKind($kind) { - $this->impressionsLookbackWindow = $impressionsLookbackWindow; + $this->kind = $kind; } - public function getImpressionsLookbackWindow() + public function getKind() { - return $this->impressionsLookbackWindow; + return $this->kind; } - public function setIncludeAttributedIPConversions($includeAttributedIPConversions) + public function setNextPageToken($nextPageToken) { - $this->includeAttributedIPConversions = $includeAttributedIPConversions; + $this->nextPageToken = $nextPageToken; } - public function getIncludeAttributedIPConversions() + public function getNextPageToken() { - return $this->includeAttributedIPConversions; + return $this->nextPageToken; } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) + public function setSubaccounts($subaccounts) { - $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; + $this->subaccounts = $subaccounts; } - public function getIncludeUnattributedCookieConversions() + public function getSubaccounts() { - return $this->includeUnattributedCookieConversions; + return $this->subaccounts; } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) +} + +class Google_Service_Dfareporting_TagData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adId; + public $clickTag; + public $creativeId; + public $format; + public $impressionTag; + + + public function setAdId($adId) { - $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; + $this->adId = $adId; } - public function getIncludeUnattributedIPConversions() + public function getAdId() { - return $this->includeUnattributedIPConversions; + return $this->adId; } - public function setMaximumClickInteractions($maximumClickInteractions) + public function setClickTag($clickTag) { - $this->maximumClickInteractions = $maximumClickInteractions; + $this->clickTag = $clickTag; } - public function getMaximumClickInteractions() + public function getClickTag() { - return $this->maximumClickInteractions; + return $this->clickTag; } - public function setMaximumImpressionInteractions($maximumImpressionInteractions) + public function setCreativeId($creativeId) { - $this->maximumImpressionInteractions = $maximumImpressionInteractions; + $this->creativeId = $creativeId; } - public function getMaximumImpressionInteractions() + public function getCreativeId() { - return $this->maximumImpressionInteractions; + return $this->creativeId; } - public function setMaximumInteractionGap($maximumInteractionGap) + public function setFormat($format) { - $this->maximumInteractionGap = $maximumInteractionGap; + $this->format = $format; } - public function getMaximumInteractionGap() + public function getFormat() { - return $this->maximumInteractionGap; + return $this->format; } - public function setPivotOnInteractionPath($pivotOnInteractionPath) + public function setImpressionTag($impressionTag) { - $this->pivotOnInteractionPath = $pivotOnInteractionPath; + $this->impressionTag = $impressionTag; } - public function getPivotOnInteractionPath() + public function getImpressionTag() { - return $this->pivotOnInteractionPath; + return $this->impressionTag; } } -class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection +class Google_Service_Dfareporting_TagSetting extends Google_Model { - protected $collection_key = 'reachByFrequencyMetricNames'; protected $internal_gapi_mappings = array( ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; - public $reachByFrequencyMetricNames; + public $additionalKeyValues; + public $includeClickThroughUrls; + public $includeClickTracking; + public $keywordOption; - public function setActivities(Google_Service_Dfareporting_Activities $activities) + public function setAdditionalKeyValues($additionalKeyValues) { - $this->activities = $activities; + $this->additionalKeyValues = $additionalKeyValues; } - public function getActivities() + public function getAdditionalKeyValues() { - return $this->activities; + return $this->additionalKeyValues; } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) + public function setIncludeClickThroughUrls($includeClickThroughUrls) { - $this->customRichMediaEvents = $customRichMediaEvents; + $this->includeClickThroughUrls = $includeClickThroughUrls; } - public function getCustomRichMediaEvents() + public function getIncludeClickThroughUrls() { - return $this->customRichMediaEvents; + return $this->includeClickThroughUrls; } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + public function setIncludeClickTracking($includeClickTracking) { - $this->dateRange = $dateRange; + $this->includeClickTracking = $includeClickTracking; } - public function getDateRange() + public function getIncludeClickTracking() { - return $this->dateRange; + return $this->includeClickTracking; } - public function setDimensionFilters($dimensionFilters) + public function setKeywordOption($keywordOption) { - $this->dimensionFilters = $dimensionFilters; + $this->keywordOption = $keywordOption; } - public function getDimensionFilters() + public function getKeywordOption() { - return $this->dimensionFilters; + return $this->keywordOption; } - public function setDimensions($dimensions) +} + +class Google_Service_Dfareporting_TagSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dynamicTagEnabled; + public $imageTagEnabled; + + + public function setDynamicTagEnabled($dynamicTagEnabled) { - $this->dimensions = $dimensions; + $this->dynamicTagEnabled = $dynamicTagEnabled; } - public function getDimensions() + public function getDynamicTagEnabled() { - return $this->dimensions; + return $this->dynamicTagEnabled; } - public function setMetricNames($metricNames) + public function setImageTagEnabled($imageTagEnabled) { - $this->metricNames = $metricNames; + $this->imageTagEnabled = $imageTagEnabled; } - public function getMetricNames() + public function getImageTagEnabled() { - return $this->metricNames; + return $this->imageTagEnabled; } - public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) +} + +class Google_Service_Dfareporting_TargetWindow extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customHtml; + public $targetWindowOption; + + + public function setCustomHtml($customHtml) { - $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; + $this->customHtml = $customHtml; } - public function getReachByFrequencyMetricNames() + public function getCustomHtml() { - return $this->reachByFrequencyMetricNames; + return $this->customHtml; + } + public function setTargetWindowOption($targetWindowOption) + { + $this->targetWindowOption = $targetWindowOption; + } + public function getTargetWindowOption() + { + return $this->targetWindowOption; } } -class Google_Service_Dfareporting_ReportSchedule extends Google_Collection +class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection { - protected $collection_key = 'repeatsOnWeekDays'; + protected $collection_key = 'platformTypes'; protected $internal_gapi_mappings = array( ); - public $active; - public $every; - public $expirationDate; - public $repeats; - public $repeatsOnWeekDays; - public $runsOnDayOfMonth; - public $startDate; + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; - public function setActive($active) + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() { - $this->active = $active; + return $this->browsers; } - public function getActive() + public function setConnectionTypes($connectionTypes) { - return $this->active; + $this->connectionTypes = $connectionTypes; } - public function setEvery($every) + public function getConnectionTypes() { - $this->every = $every; + return $this->connectionTypes; } - public function getEvery() + public function setMobileCarriers($mobileCarriers) { - return $this->every; + $this->mobileCarriers = $mobileCarriers; } - public function setExpirationDate($expirationDate) + public function getMobileCarriers() { - $this->expirationDate = $expirationDate; + return $this->mobileCarriers; } - public function getExpirationDate() + public function setOperatingSystemVersions($operatingSystemVersions) { - return $this->expirationDate; + $this->operatingSystemVersions = $operatingSystemVersions; } - public function setRepeats($repeats) + public function getOperatingSystemVersions() { - $this->repeats = $repeats; + return $this->operatingSystemVersions; } - public function getRepeats() + public function setOperatingSystems($operatingSystems) { - return $this->repeats; + $this->operatingSystems = $operatingSystems; } - public function setRepeatsOnWeekDays($repeatsOnWeekDays) + public function getOperatingSystems() { - $this->repeatsOnWeekDays = $repeatsOnWeekDays; + return $this->operatingSystems; } - public function getRepeatsOnWeekDays() + public function setPlatformTypes($platformTypes) { - return $this->repeatsOnWeekDays; + $this->platformTypes = $platformTypes; } - public function setRunsOnDayOfMonth($runsOnDayOfMonth) + public function getPlatformTypes() { - $this->runsOnDayOfMonth = $runsOnDayOfMonth; + return $this->platformTypes; } - public function getRunsOnDayOfMonth() +} + +class Google_Service_Dfareporting_ThirdPartyTrackingUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $thirdPartyUrlType; + public $url; + + + public function setThirdPartyUrlType($thirdPartyUrlType) { - return $this->runsOnDayOfMonth; + $this->thirdPartyUrlType = $thirdPartyUrlType; } - public function setStartDate($startDate) + public function getThirdPartyUrlType() { - $this->startDate = $startDate; + return $this->thirdPartyUrlType; } - public function getStartDate() + public function setUrl($url) { - return $this->startDate; + $this->url = $url; + } + public function getUrl() + { + return $this->url; } } -class Google_Service_Dfareporting_SortedDimension extends Google_Model +class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $name; - public $sortOrder; + public $dataType; + public $reportName; + public $variableType; - public function setKind($kind) + public function setDataType($dataType) { - $this->kind = $kind; + $this->dataType = $dataType; } - public function getKind() + public function getDataType() { - return $this->kind; + return $this->dataType; } - public function setName($name) + public function setReportName($reportName) { - $this->name = $name; + $this->reportName = $reportName; } - public function getName() + public function getReportName() { - return $this->name; + return $this->reportName; } - public function setSortOrder($sortOrder) + public function setVariableType($variableType) { - $this->sortOrder = $sortOrder; + $this->variableType = $variableType; } - public function getSortOrder() + public function getVariableType() { - return $this->sortOrder; + return $this->variableType; } } @@ -2696,3 +18285,266 @@ public function getKind() return $this->kind; } } + +class Google_Service_Dfareporting_UserRole extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $defaultUserRole; + public $id; + public $kind; + public $name; + public $parentUserRoleId; + protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $permissionsDataType = 'array'; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setDefaultUserRole($defaultUserRole) + { + $this->defaultUserRole = $defaultUserRole; + } + public function getDefaultUserRole() + { + return $this->defaultUserRole; + } + 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 setParentUserRoleId($parentUserRoleId) + { + $this->parentUserRoleId = $parentUserRoleId; + } + public function getParentUserRoleId() + { + return $this->parentUserRoleId; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_UserRolePermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $availability; + public $id; + public $kind; + public $name; + public $permissionGroupId; + + + public function setAvailability($availability) + { + $this->availability = $availability; + } + public function getAvailability() + { + return $this->availability; + } + 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 setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissionGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup'; + protected $userRolePermissionGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissionGroups($userRolePermissionGroups) + { + $this->userRolePermissionGroups = $userRolePermissionGroups; + } + public function getUserRolePermissionGroups() + { + return $this->userRolePermissionGroups; + } +} + +class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $userRolePermissionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissions($userRolePermissions) + { + $this->userRolePermissions = $userRolePermissions; + } + public function getUserRolePermissions() + { + return $this->userRolePermissions; + } +} + +class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection +{ + protected $collection_key = 'userRoles'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $userRolesType = 'Google_Service_Dfareporting_UserRole'; + protected $userRolesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUserRoles($userRoles) + { + $this->userRoles = $userRoles; + } + public function getUserRoles() + { + return $this->userRoles; + } +} From 3d71d93dc7bf86117932fc6426871054dda479e1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:51 -0500 Subject: [PATCH 0573/1274] Added service Deploymentmanager.php --- src/Google/Service/Deploymentmanager.php | 1194 ++++++++++++++++++++++ 1 file changed, 1194 insertions(+) create mode 100644 src/Google/Service/Deploymentmanager.php diff --git a/src/Google/Service/Deploymentmanager.php b/src/Google/Service/Deploymentmanager.php new file mode 100644 index 000000000..554fe0e13 --- /dev/null +++ b/src/Google/Service/Deploymentmanager.php @@ -0,0 +1,1194 @@ + + * The Deployment Manager API allows users to declaratively configure, deploy + * and run complex solutions on the Google Cloud Platform.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Deploymentmanager extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + + public $deployments; + public $manifests; + public $operations; + public $resources; + public $types; + + + /** + * Constructs the internal representation of the Deploymentmanager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'deploymentmanager/v2beta1/projects/'; + $this->version = 'v2beta1'; + $this->serviceName = 'deploymentmanager'; + + $this->deployments = new Google_Service_Deploymentmanager_Deployments_Resource( + $this, + $this->serviceName, + 'deployments', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->manifests = new Google_Service_Deploymentmanager_Manifests_Resource( + $this, + $this->serviceName, + 'manifests', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'manifest' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_Deploymentmanager_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->resources = new Google_Service_Deploymentmanager_Resources_Resource( + $this, + $this->serviceName, + 'resources', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/resources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->types = new Google_Service_Deploymentmanager_Types_Resource( + $this, + $this->serviceName, + 'types', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/global/types', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "deployments" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); + * $deployments = $deploymentmanagerService->deployments; + * + */ +class Google_Service_Deploymentmanager_Deployments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a deployment and all of the resources in the deployment. + * (deployments.delete) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_Operation + */ + public function delete($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Deploymentmanager_Operation"); + } + + /** + * Gets information about a specific deployment. (deployments.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_Deployment + */ + public function get($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Deploymentmanager_Deployment"); + } + + /** + * Creates a deployment and all of the resources described by the deployment + * manifest. (deployments.insert) + * + * @param string $project The project ID for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_Operation + */ + public function insert($project, Google_Service_Deploymentmanager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Deploymentmanager_Operation"); + } + + /** + * Lists all deployments for a given project. (deployments.listDeployments) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @return Google_Service_Deploymentmanager_DeploymentsListResponse + */ + public function listDeployments($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Deploymentmanager_DeploymentsListResponse"); + } +} + +/** + * The "manifests" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); + * $manifests = $deploymentmanagerService->manifests; + * + */ +class Google_Service_Deploymentmanager_Manifests_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific manifest. (manifests.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $manifest The name of the manifest for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_Manifest + */ + public function get($project, $deployment, $manifest, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Deploymentmanager_Manifest"); + } + + /** + * Lists all manifests for a given deployment. (manifests.listManifests) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @return Google_Service_Deploymentmanager_ManifestsListResponse + */ + public function listManifests($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Deploymentmanager_ManifestsListResponse"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); + * $operations = $deploymentmanagerService->operations; + * + */ +class Google_Service_Deploymentmanager_Operations_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific Operation. (operations.get) + * + * @param string $project The project ID for this request. + * @param string $operation The name of the operation for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Deploymentmanager_Operation"); + } + + /** + * Lists all Operations for a project. (operations.listOperations) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @return Google_Service_Deploymentmanager_OperationsListResponse + */ + public function listOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Deploymentmanager_OperationsListResponse"); + } +} + +/** + * The "resources" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); + * $resources = $deploymentmanagerService->resources; + * + */ +class Google_Service_Deploymentmanager_Resources_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a single resource. (resources.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $resource The name of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Deploymentmanager_DeploymentmanagerResource + */ + public function get($project, $deployment, $resource, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Deploymentmanager_DeploymentmanagerResource"); + } + + /** + * Lists all resources in a given deployment. (resources.listResources) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @return Google_Service_Deploymentmanager_ResourcesListResponse + */ + public function listResources($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Deploymentmanager_ResourcesListResponse"); + } +} + +/** + * The "types" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); + * $types = $deploymentmanagerService->types; + * + */ +class Google_Service_Deploymentmanager_Types_Resource extends Google_Service_Resource +{ + + /** + * Lists all Types for Deployment Manager. (types.listTypes) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Specifies a nextPageToken returned by a previous + * list request. This token can be used to request the next page of results from + * a previous list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @return Google_Service_Deploymentmanager_TypesListResponse + */ + public function listTypes($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Deploymentmanager_TypesListResponse"); + } +} + + + + +class Google_Service_Deploymentmanager_Deployment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $id; + public $manifest; + public $name; + public $targetConfig; + + + 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 setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setTargetConfig($targetConfig) + { + $this->targetConfig = $targetConfig; + } + public function getTargetConfig() + { + return $this->targetConfig; + } +} + +class Google_Service_Deploymentmanager_DeploymentmanagerResource extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $errors; + public $id; + public $intent; + public $manifest; + public $name; + public $state; + public $type; + public $url; + + + 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 setIntent($intent) + { + $this->intent = $intent; + } + public function getIntent() + { + return $this->intent; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + 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_Deploymentmanager_DeploymentsListResponse extends Google_Collection +{ + protected $collection_key = 'deployments'; + protected $internal_gapi_mappings = array( + ); + protected $deploymentsType = 'Google_Service_Deploymentmanager_Deployment'; + protected $deploymentsDataType = 'array'; + public $nextPageToken; + + + public function setDeployments($deployments) + { + $this->deployments = $deployments; + } + public function getDeployments() + { + return $this->deployments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Deploymentmanager_Manifest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $config; + public $evaluatedConfig; + public $id; + public $name; + public $selfLink; + + + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setEvaluatedConfig($evaluatedConfig) + { + $this->evaluatedConfig = $evaluatedConfig; + } + public function getEvaluatedConfig() + { + return $this->evaluatedConfig; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + 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_Deploymentmanager_ManifestsListResponse extends Google_Collection +{ + protected $collection_key = 'manifests'; + protected $internal_gapi_mappings = array( + ); + protected $manifestsType = 'Google_Service_Deploymentmanager_Manifest'; + protected $manifestsDataType = 'array'; + public $nextPageToken; + + + public function setManifests($manifests) + { + $this->manifests = $manifests; + } + public function getManifests() + { + return $this->manifests; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Deploymentmanager_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Deploymentmanager_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $name; + public $operationType; + public $progress; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Deploymentmanager_OperationWarnings'; + protected $warningsDataType = 'array'; + + + 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_Deploymentmanager_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 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; + } +} + +class Google_Service_Deploymentmanager_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Deploymentmanager_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Deploymentmanager_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Deploymentmanager_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Deploymentmanager_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Deploymentmanager_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Deploymentmanager_OperationsListResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Deploymentmanager_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Deploymentmanager_ResourcesListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $resourcesType = 'Google_Service_Deploymentmanager_DeploymentmanagerResource'; + protected $resourcesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_Deploymentmanager_Type extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Deploymentmanager_TypesListResponse extends Google_Collection +{ + protected $collection_key = 'types'; + protected $internal_gapi_mappings = array( + ); + protected $typesType = 'Google_Service_Deploymentmanager_Type'; + protected $typesDataType = 'array'; + + + public function setTypes($types) + { + $this->types = $types; + } + public function getTypes() + { + return $this->types; + } +} From cea3e8db54ee19676c32547ecff76ec1ba734f23 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:52 -0500 Subject: [PATCH 0574/1274] Updated Urlshortener.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Urlshortener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index a733bfa64..083b13dd2 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From 8f16edf37728ecf49e6ad6242cc47ce7bf5cc6c3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 18 Dec 2014 05:43:52 -0500 Subject: [PATCH 0575/1274] Updated Coordinate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Coordinate.php | 219 +++++++++++++++++++++++++++--- 1 file changed, 200 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index 2dcd1a8ac..44b572dd5 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -41,6 +41,7 @@ class Google_Service_Coordinate extends Google_Service public $jobs; public $location; public $schedule; + public $team; public $worker; @@ -52,7 +53,7 @@ class Google_Service_Coordinate extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'coordinate/v1/teams/'; + $this->servicePath = 'coordinate/v1/'; $this->version = 'v1'; $this->serviceName = 'coordinate'; @@ -63,7 +64,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/custom_fields', + 'path' => 'teams/{teamId}/custom_fields', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -83,7 +84,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -98,7 +99,7 @@ public function __construct(Google_Client $client) ), ), ),'insert' => array( - 'path' => '{teamId}/jobs', + 'path' => 'teams/{teamId}/jobs', 'httpMethod' => 'POST', 'parameters' => array( 'teamId' => array( @@ -149,7 +150,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{teamId}/jobs', + 'path' => 'teams/{teamId}/jobs', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -171,7 +172,7 @@ public function __construct(Google_Client $client) ), ), ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'PATCH', 'parameters' => array( 'teamId' => array( @@ -227,7 +228,7 @@ public function __construct(Google_Client $client) ), ), ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'PUT', 'parameters' => array( 'teamId' => array( @@ -293,7 +294,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/workers/{workerEmail}/locations', + 'path' => 'teams/{teamId}/workers/{workerEmail}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -331,7 +332,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -346,7 +347,7 @@ public function __construct(Google_Client $client) ), ), ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'PATCH', 'parameters' => array( 'teamId' => array( @@ -377,7 +378,7 @@ public function __construct(Google_Client $client) ), ), ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'PUT', 'parameters' => array( 'teamId' => array( @@ -411,6 +412,33 @@ public function __construct(Google_Client $client) ) ) ); + $this->team = new Google_Service_Coordinate_Team_Resource( + $this, + $this->serviceName, + 'team', + array( + 'methods' => array( + 'list' => array( + 'path' => 'teams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'admin' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'worker' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dispatcher' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->worker = new Google_Service_Coordinate_Worker_Resource( $this, $this->serviceName, @@ -418,7 +446,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/workers', + 'path' => 'teams/{teamId}/workers', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -505,8 +533,12 @@ public function get($teamId, $jobId, $optParams = array()) * @opt_param string assignee Assignee email address, or empty string to * unassign. * @opt_param string customerPhoneNumber Customer phone number - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -554,8 +586,12 @@ public function listJobs($teamId, $optParams = array()) * @opt_param double lat The latitude coordinate of this job's location. * @opt_param string progress Job progress * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -584,8 +620,12 @@ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, * @opt_param double lat The latitude coordinate of this job's location. * @opt_param string progress Job progress * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -700,6 +740,38 @@ public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $post } } +/** + * The "team" collection of methods. + * Typical usage is: + * + * $coordinateService = new Google_Service_Coordinate(...); + * $team = $coordinateService->team; + * + */ +class Google_Service_Coordinate_Team_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of teams for a user. (team.listTeam) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool admin Whether to include teams for which the user has the + * Admin role. + * @opt_param bool worker Whether to include teams for which the user has the + * Worker role. + * @opt_param bool dispatcher Whether to include teams for which the user has + * the Dispatcher role. + * @return Google_Service_Coordinate_TeamListResponse + */ + public function listTeam($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_TeamListResponse"); + } +} + /** * The "worker" collection of methods. * Typical usage is: @@ -764,11 +836,14 @@ public function getValue() } } -class Google_Service_Coordinate_CustomFieldDef extends Google_Model +class Google_Service_Coordinate_CustomFieldDef extends Google_Collection { + protected $collection_key = 'enumitems'; protected $internal_gapi_mappings = array( ); public $enabled; + protected $enumitemsType = 'Google_Service_Coordinate_EnumItemDef'; + protected $enumitemsDataType = 'array'; public $id; public $kind; public $name; @@ -784,6 +859,14 @@ public function getEnabled() { return $this->enabled; } + public function setEnumitems($enumitems) + { + $this->enumitems = $enumitems; + } + public function getEnumitems() + { + return $this->enumitems; + } public function setId($id) { $this->id = $id; @@ -882,6 +965,41 @@ public function getKind() } } +class Google_Service_Coordinate_EnumItemDef extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $kind; + public $value; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + 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_Coordinate_Job extends Google_Collection { protected $collection_key = 'jobChange'; @@ -1292,6 +1410,69 @@ public function getStartTime() } } +class Google_Service_Coordinate_Team extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Coordinate_TeamListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Coordinate_Team'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_Coordinate_TokenPagination extends Google_Model { protected $internal_gapi_mappings = array( From 0d4a67029c159e784f7cc62a066beb31095e533f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 19 Dec 2014 02:44:43 -0800 Subject: [PATCH 0576/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index a0a674309..4223920ec 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -216,6 +216,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'predefinedDefaultObjectAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => 'b', @@ -248,19 +252,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedAcl' => array( + 'predefinedDefaultObjectAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -274,19 +282,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedAcl' => array( + 'predefinedDefaultObjectAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -1109,6 +1121,8 @@ public function get($bucket, $optParams = array()) * @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. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @return Google_Service_Storage_Bucket */ public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1144,15 +1158,17 @@ public function listBuckets($project, $optParams = array()) * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * + * @opt_param string projection Set of properties to return. Defaults to full. * @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 predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. - * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1169,15 +1185,17 @@ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optPara * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * + * @opt_param string projection Set of properties to return. Defaults to full. * @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 predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. - * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) From 021b58e8707b2a82212f620976144059aed8f814 Mon Sep 17 00:00:00 2001 From: Jeff Welch Date: Sat, 20 Dec 2014 23:48:14 -0500 Subject: [PATCH 0577/1274] Fix dead code. --- examples/simplefileupload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index 025b81890..b9e715bc6 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -23,7 +23,7 @@ We'll setup an empty 1MB file to upload. ************************************************/ DEFINE("TESTFILE", 'testfile-small.txt'); -if (true || !file_exists(TESTFILE)) { +if (!file_exists(TESTFILE)) { $fh = fopen(TESTFILE, 'w'); fseek($fh, 1024 * 1024); fwrite($fh, "!", 1); From 3dfefdefe86f40efcbf42daf25bc086830df0c9b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 20 Dec 2014 12:40:59 -0800 Subject: [PATCH 0578/1274] Fix #400: move autoloader to src/Google This makes system-wide installation of the library more viable. For backward compatibility, an autoload.php is preserved in the old location, which prints a deprecation warning and then includes the autoloader from the new location. --- README.md | 2 +- autoload.php | 21 ++++++---------- examples/appengineauth.php | 2 +- examples/batch.php | 2 +- examples/fileupload.php | 2 +- examples/idtoken.php | 2 +- examples/multi-api.php | 2 +- examples/service-account.php | 2 +- examples/simple-query.php | 2 +- examples/simplefileupload.php | 2 +- examples/user-example.php | 2 +- src/Google/Auth/Abstract.php | 2 +- src/Google/Auth/AppIdentity.php | 2 +- src/Google/Auth/AssertionCredentials.php | 2 +- src/Google/Auth/Exception.php | 2 +- src/Google/Auth/LoginTicket.php | 2 +- src/Google/Auth/OAuth2.php | 2 +- src/Google/Auth/Simple.php | 2 +- src/Google/Cache/Apc.php | 2 +- src/Google/Cache/Exception.php | 2 +- src/Google/Cache/File.php | 2 +- src/Google/Cache/Memcache.php | 2 +- src/Google/Cache/Null.php | 2 +- src/Google/Client.php | 2 +- src/Google/Collection.php | 2 +- src/Google/Http/Batch.php | 2 +- src/Google/Http/CacheParser.php | 2 +- src/Google/Http/MediaFileUpload.php | 2 +- src/Google/Http/REST.php | 2 +- src/Google/Http/Request.php | 2 +- src/Google/IO/Abstract.php | 2 +- src/Google/IO/Curl.php | 2 +- src/Google/IO/Exception.php | 2 +- src/Google/IO/Stream.php | 2 +- src/Google/Logger/Abstract.php | 2 +- src/Google/Logger/Exception.php | 2 +- src/Google/Logger/File.php | 2 +- src/Google/Logger/Null.php | 2 +- src/Google/Logger/Psr.php | 2 +- src/Google/Service/Exception.php | 2 +- src/Google/Service/Resource.php | 2 +- src/Google/Signer/P12.php | 2 +- src/Google/Task/Exception.php | 2 +- src/Google/Task/Retryable.php | 2 +- src/Google/Task/Runner.php | 2 +- src/Google/Verifier/Pem.php | 2 +- src/Google/autoload.php | 32 ++++++++++++++++++++++++ tests/OAuthHelper.php | 2 +- tests/bootstrap.php | 2 +- 49 files changed, 86 insertions(+), 61 deletions(-) create mode 100644 src/Google/autoload.php diff --git a/README.md b/README.md index 7508aeb52..752dad9da 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ See the examples/ directory for examples of the key client features. ```PHP setApplicationName("Client_Library_Examples"); diff --git a/autoload.php b/autoload.php index 3815c5262..25af272d5 100644 --- a/autoload.php +++ b/autoload.php @@ -15,19 +15,12 @@ * limitations under the License. */ -function google_api_php_client_autoload($className) { - $classPath = explode('_', $className); - if ($classPath[0] != 'Google') { - return; - } - if (count($classPath) > 3) { - // Maximum class file path depth in this project is 3. - $classPath = array_slice($classPath, 0, 3); - } - $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; - if (file_exists($filePath)) { - require_once($filePath); - } +// PHP 5.2 compatibility: E_USER_DEPRECATED was added in 5.3 +if (!defined('E_USER_DEPRECATED')) { + define('E_USER_DEPRECATED', E_USER_WARNING); } -spl_autoload_register('google_api_php_client_autoload'); +$error = "google-api-php-client's autoloader was moved to src/Google/autoload.php in 1.1.3. This "; +$error .= "redirect will be removed in 1.2. Please adjust your code to use the new location."; +trigger_error($error, E_USER_DEPRECATED); +require_once 'src/Google/autoload.php'; diff --git a/examples/appengineauth.php b/examples/appengineauth.php index 4300c70bb..7b147e9e5 100644 --- a/examples/appengineauth.php +++ b/examples/appengineauth.php @@ -21,7 +21,7 @@ Make an API request authenticated via the AppIdentity service on AppEngine. ************************************************/ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); echo pageHeader("AppIdentity Account Access"); diff --git a/examples/batch.php b/examples/batch.php index 3a51ab9fc..5183e586a 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -22,7 +22,7 @@ books API again as an example, but this time we will batch up two queries into a single call. ************************************************/ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ We create the client and set the simple API diff --git a/examples/fileupload.php b/examples/fileupload.php index 0940e1c03..6a20390d9 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -17,7 +17,7 @@ include_once "templates/base.php"; session_start(); -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ We'll setup an empty 20MB file to upload. diff --git a/examples/idtoken.php b/examples/idtoken.php index 963f35b68..e3991e984 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -17,7 +17,7 @@ include_once "templates/base.php"; session_start(); -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/examples/multi-api.php b/examples/multi-api.php index 37802873e..86f682cba 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -17,7 +17,7 @@ include_once "templates/base.php"; session_start(); -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/examples/service-account.php b/examples/service-account.php index 4cc084048..45dc75c05 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -21,7 +21,7 @@ Make an API request authenticated with a service account. ************************************************/ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ ATTENTION: Fill in these values! You can get diff --git a/examples/simple-query.php b/examples/simple-query.php index e22790be5..b3fd12806 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -25,7 +25,7 @@ should use our quota, which is higher than the anonymous quota (which is limited per IP). ************************************************/ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ We create the client and set the simple API diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index 025b81890..7b63fd281 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -17,7 +17,7 @@ include_once "templates/base.php"; session_start(); -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ We'll setup an empty 1MB file to upload. diff --git a/examples/user-example.php b/examples/user-example.php index 4370b0850..9cfd3d20a 100644 --- a/examples/user-example.php +++ b/examples/user-example.php @@ -17,7 +17,7 @@ include_once "templates/base.php"; session_start(); -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure diff --git a/src/Google/Auth/Abstract.php b/src/Google/Auth/Abstract.php index c1e36dc4c..d0999374c 100644 --- a/src/Google/Auth/Abstract.php +++ b/src/Google/Auth/Abstract.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Abstract class for the Authentication in the API client diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 4287a21c9..25d1271d0 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -22,7 +22,7 @@ */ use google\appengine\api\app_identity\AppIdentityService; -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Authentication via the Google App Engine App Identity service. diff --git a/src/Google/Auth/AssertionCredentials.php b/src/Google/Auth/AssertionCredentials.php index 2b92c5731..97ef4e0a1 100644 --- a/src/Google/Auth/AssertionCredentials.php +++ b/src/Google/Auth/AssertionCredentials.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Credentials object used for OAuth 2.0 Signed JWT assertion grants. diff --git a/src/Google/Auth/Exception.php b/src/Google/Auth/Exception.php index 81c795aec..be439552b 100644 --- a/src/Google/Auth/Exception.php +++ b/src/Google/Auth/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_Auth_Exception extends Google_Exception { diff --git a/src/Google/Auth/LoginTicket.php b/src/Google/Auth/LoginTicket.php index b29abdffd..6415533df 100644 --- a/src/Google/Auth/LoginTicket.php +++ b/src/Google/Auth/LoginTicket.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Class to hold information about an authenticated login. diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 58e86e5fb..0c72a643e 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Authentication class that deals with the OAuth 2 web-server authentication flow diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index 3c85ae33c..5514cf533 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Simple API access implementation. Can either be used to make requests diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php index 7c9a0754d..72eeb105f 100644 --- a/src/Google/Cache/Apc.php +++ b/src/Google/Cache/Apc.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * A persistent storage class based on the APC cache, which is not diff --git a/src/Google/Cache/Exception.php b/src/Google/Cache/Exception.php index a1d2d7adc..9a73a8264 100644 --- a/src/Google/Cache/Exception.php +++ b/src/Google/Cache/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_Cache_Exception extends Google_Exception { diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index e4c99ad0c..4ad53bf43 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /* * This class implements a basic on disk storage. While that does diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index c9fb4bc75..2afce6713 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * A persistent storage class based on the memcache, which is not diff --git a/src/Google/Cache/Null.php b/src/Google/Cache/Null.php index 0cd24c578..56c6edbb9 100644 --- a/src/Google/Cache/Null.php +++ b/src/Google/Cache/Null.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * A blank storage class, for cases where caching is not diff --git a/src/Google/Client.php b/src/Google/Client.php index 1de6c59be..98794b275 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/autoload.php'); /** * The Google API Client diff --git a/src/Google/Collection.php b/src/Google/Collection.php index dbb2855e9..eebe56b89 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,6 +1,6 @@ diff --git a/src/Google/Http/CacheParser.php b/src/Google/Http/CacheParser.php index 298317c82..2fea46fe0 100644 --- a/src/Google/Http/CacheParser.php +++ b/src/Google/Http/CacheParser.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Implement the caching directives specified in rfc2616. This diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 87f376293..7d6d5f1a1 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * @author Chirag Shah diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 7f579ac7a..bc926962b 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * This class implements the RESTful transport of apiServiceRequest()'s diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php index 9811c146a..1c302a70c 100644 --- a/src/Google/Http/Request.php +++ b/src/Google/Http/Request.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * HTTP Request to be executed by IO classes. Upon execution, the diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index e7e9f9b79..7895a75f3 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -19,7 +19,7 @@ * Abstract IO base class */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); abstract class Google_IO_Abstract { diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 926a1dbf4..b93e09a15 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -21,7 +21,7 @@ * @author Stuart Langley */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_IO_Curl extends Google_IO_Abstract { diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php index 81925d066..45effafec 100644 --- a/src/Google/IO/Exception.php +++ b/src/Google/IO/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_IO_Exception extends Google_Exception implements Google_Task_Retryable { diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index 41b5c0fec..28740bad8 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -21,7 +21,7 @@ * @author Stuart Langley */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_IO_Stream extends Google_IO_Abstract { diff --git a/src/Google/Logger/Abstract.php b/src/Google/Logger/Abstract.php index 571918c58..9d07e58b9 100644 --- a/src/Google/Logger/Abstract.php +++ b/src/Google/Logger/Abstract.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Abstract logging class based on the PSR-3 standard. diff --git a/src/Google/Logger/Exception.php b/src/Google/Logger/Exception.php index 7c828e65a..f1a792725 100644 --- a/src/Google/Logger/Exception.php +++ b/src/Google/Logger/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_Logger_Exception extends Google_Exception { diff --git a/src/Google/Logger/File.php b/src/Google/Logger/File.php index f337471a5..a9efa4d02 100644 --- a/src/Google/Logger/File.php +++ b/src/Google/Logger/File.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * File logging class based on the PSR-3 standard. diff --git a/src/Google/Logger/Null.php b/src/Google/Logger/Null.php index 9c5f64a23..0feb24ff0 100644 --- a/src/Google/Logger/Null.php +++ b/src/Google/Logger/Null.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Null logger based on the PSR-3 standard. diff --git a/src/Google/Logger/Psr.php b/src/Google/Logger/Psr.php index d5772440d..da565ca62 100644 --- a/src/Google/Logger/Psr.php +++ b/src/Google/Logger/Psr.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Psr logging class based on the PSR-3 standard. diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index 41fbf480d..fa6f4f05e 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_Service_Exception extends Google_Exception implements Google_Task_Retryable { diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 29bc06e96..3d64942b3 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Implements the actual methods/resources of the discovered Google API using magic function diff --git a/src/Google/Signer/P12.php b/src/Google/Signer/P12.php index 92ccbc8b1..ae0e047b3 100644 --- a/src/Google/Signer/P12.php +++ b/src/Google/Signer/P12.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Signs data. diff --git a/src/Google/Task/Exception.php b/src/Google/Task/Exception.php index 963877111..f4390d737 100644 --- a/src/Google/Task/Exception.php +++ b/src/Google/Task/Exception.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); class Google_Task_Exception extends Google_Exception { diff --git a/src/Google/Task/Retryable.php b/src/Google/Task/Retryable.php index 4911d2732..432a638ef 100644 --- a/src/Google/Task/Retryable.php +++ b/src/Google/Task/Retryable.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Interface for checking how many times a given task can be retried following diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index e63983418..11a68075a 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * A task runner with exponential backoff support. diff --git a/src/Google/Verifier/Pem.php b/src/Google/Verifier/Pem.php index 563553b46..f217c92fc 100644 --- a/src/Google/Verifier/Pem.php +++ b/src/Google/Verifier/Pem.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Verifies signatures using PEM encoded certificates. diff --git a/src/Google/autoload.php b/src/Google/autoload.php new file mode 100644 index 000000000..debdd2739 --- /dev/null +++ b/src/Google/autoload.php @@ -0,0 +1,32 @@ +setScopes( diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e1783a057..327b974f9 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once dirname(__FILE__) . '/../autoload.php'; +require_once dirname(__FILE__) . '/../src/Google/autoload.php'; require_once dirname(__FILE__) . '/BaseTest.php'; date_default_timezone_set('UTC'); From 57efa2735364e09a95485946b825180665ecdb27 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 7 Jan 2015 03:03:15 -0800 Subject: [PATCH 0579/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 104 +++++++++++----------- 1 file changed, 51 insertions(+), 53 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 309b6213b..04d2d4df3 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -218,6 +218,31 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'resume' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/resume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'update' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'rollback' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollback', 'httpMethod' => 'POST', @@ -295,7 +320,7 @@ class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_ * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. */ public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -313,7 +338,7 @@ public function cancel($project, $zone, $instanceGroupManager, $update, $optPara * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_Update */ @@ -376,7 +401,7 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams = * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. * * @opt_param int maxResults Maximum count of results to be returned. Acceptable @@ -402,7 +427,7 @@ public function listInstanceUpdates($project, $zone, $instanceGroupManager, $upd * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. */ public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -412,6 +437,24 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam return $this->call('pause', array($params)); } + /** + * Called on the particular Update endpoint. Resumes the update in state PAUSED. + * No-op if invoked in state ROLLING_FORWARD or ROLLING_BACK. (updates.resume) + * + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $instanceGroupManager The name of the instance group manager. + * @param string $update The id of the update. + * @param array $optParams Optional parameters. + */ + public function resume($project, $zone, $instanceGroupManager, $update, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array_merge($params, $optParams); + return $this->call('resume', array($params)); + } + /** * Called on the particular Update endpoint. Rolls back the update in state * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or @@ -421,7 +464,7 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. */ public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -433,14 +476,14 @@ public function rollback($project, $zone, $instanceGroupManager, $update, $optPa /** * Called on the particular Update endpoint. Rolls forward the update in state - * ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or - * ROLLING_FORWARD. (updates.rollforward) + * PAUSED before ordering it to roll back. No-op if invoked in state ROLLED_OUT + * or ROLLING_FORWARD. (updates.rollforward) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $update The id of the update. * @param array $optParams Optional parameters. */ public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array()) @@ -476,7 +519,6 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model protected $internal_gapi_mappings = array( ); public $instance; - public $state; public $status; @@ -488,14 +530,6 @@ public function getInstance() { return $this->instance; } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } public function setStatus($status) { $this->status = $status; @@ -557,8 +591,6 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model protected $internal_gapi_mappings = array( ); public $creationTimestamp; - public $details; - public $handle; public $id; public $instanceGroupManager; public $instanceTemplate; @@ -567,10 +599,8 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model protected $policyDataType = ''; public $progress; public $selfLink; - public $state; public $status; public $statusMessage; - public $targetState; public $user; @@ -582,22 +612,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setHandle($handle) - { - $this->handle = $handle; - } - public function getHandle() - { - return $this->handle; - } public function setId($id) { $this->id = $id; @@ -654,14 +668,6 @@ public function getSelfLink() { return $this->selfLink; } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } public function setStatus($status) { $this->status = $status; @@ -678,14 +684,6 @@ public function getStatusMessage() { return $this->statusMessage; } - public function setTargetState($targetState) - { - $this->targetState = $targetState; - } - public function getTargetState() - { - return $this->targetState; - } public function setUser($user) { $this->user = $user; From f07769e15dc0fdc30056e488e84bc042bd6a1c2d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 7 Jan 2015 03:03:15 -0800 Subject: [PATCH 0580/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 70d9e30f7..9b1551c49 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -980,8 +980,9 @@ public function delete($readGroupSetId, $optParams = array()) * * Note that currently there may be some differences between exported BAM files * and the original BAM file at the time of import. In particular, comments in - * the input file header will not be preserved, and some custom tags will be - * converted to strings. (readgroupsets.export) + * the input file header will not be preserved, some custom tags will be + * converted to strings, and original reference sequence order is not + * necessarily preserved. (readgroupsets.export) * * @param Google_ExportReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -3144,6 +3145,7 @@ class Google_Service_Genomics_ReadGroupSet extends Google_Collection public $datasetId; public $filename; public $id; + public $info; public $name; protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; protected $readGroupsDataType = 'array'; @@ -3174,6 +3176,14 @@ public function getId() { return $this->id; } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } public function setName($name) { $this->name = $name; @@ -3200,6 +3210,10 @@ public function getReferenceSetId() } } +class Google_Service_Genomics_ReadGroupSetInfo extends Google_Model +{ +} + class Google_Service_Genomics_ReadInfo extends Google_Model { } From 36ebd3f9002343beb194c04c2fce47872b5fb085 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 9 Jan 2015 03:05:10 -0800 Subject: [PATCH 0581/1274] Added service GamesConfiguration.php --- src/Google/Service/GamesConfiguration.php | 1067 +++++++++++++++++++++ 1 file changed, 1067 insertions(+) create mode 100644 src/Google/Service/GamesConfiguration.php diff --git a/src/Google/Service/GamesConfiguration.php b/src/Google/Service/GamesConfiguration.php new file mode 100644 index 000000000..a0a1811f0 --- /dev/null +++ b/src/Google/Service/GamesConfiguration.php @@ -0,0 +1,1067 @@ + + * The Publishing API for Google Play Game Services.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_GamesConfiguration extends Google_Service +{ + /** View and manage your Google Play Android Developer account. */ + const ANDROIDPUBLISHER = + "https://www.googleapis.com/auth/androidpublisher"; + + public $achievementConfigurations; + public $imageConfigurations; + public $leaderboardConfigurations; + + + /** + * Constructs the internal representation of the GamesConfiguration service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'games/v1configuration/'; + $this->version = 'v1configuration'; + $this->serviceName = 'gamesConfiguration'; + + $this->achievementConfigurations = new Google_Service_GamesConfiguration_AchievementConfigurations_Resource( + $this, + $this->serviceName, + 'achievementConfigurations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'applications/{applicationId}/achievements', + 'httpMethod' => 'POST', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'applications/{applicationId}/achievements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->imageConfigurations = new Google_Service_GamesConfiguration_ImageConfigurations_Resource( + $this, + $this->serviceName, + 'imageConfigurations', + array( + 'methods' => array( + 'upload' => array( + 'path' => 'images/{resourceId}/imageType/{imageType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource( + $this, + $this->serviceName, + 'leaderboardConfigurations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'applications/{applicationId}/leaderboards', + 'httpMethod' => 'POST', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'applications/{applicationId}/leaderboards', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "achievementConfigurations" collection of methods. + * Typical usage is: + * + * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); + * $achievementConfigurations = $gamesConfigurationService->achievementConfigurations; + * + */ +class Google_Service_GamesConfiguration_AchievementConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Delete the achievement configuration with the given ID. + * (achievementConfigurations.delete) + * + * @param string $achievementId The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + */ + public function delete($achievementId, $optParams = array()) + { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the metadata of the achievement configuration with the given ID. + * (achievementConfigurations.get) + * + * @param string $achievementId The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_AchievementConfiguration + */ + public function get($achievementId, $optParams = array()) + { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); + } + + /** + * Insert a new achievement configuration in this application. + * (achievementConfigurations.insert) + * + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param Google_AchievementConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_AchievementConfiguration + */ + public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) + { + $params = array('applicationId' => $applicationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); + } + + /** + * Returns a list of the achievement configurations in this application. + * (achievementConfigurations.listAchievementConfigurations) + * + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of resource configurations to + * return in the response, used for paging. For any response, the actual number + * of resources returned may be less than the specified maxResults. + * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse + */ + public function listAchievementConfigurations($applicationId, $optParams = array()) + { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse"); + } + + /** + * Update the metadata of the achievement configuration with the given ID. This + * method supports patch semantics. (achievementConfigurations.patch) + * + * @param string $achievementId The ID of the achievement used by this method. + * @param Google_AchievementConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_AchievementConfiguration + */ + public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) + { + $params = array('achievementId' => $achievementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); + } + + /** + * Update the metadata of the achievement configuration with the given ID. + * (achievementConfigurations.update) + * + * @param string $achievementId The ID of the achievement used by this method. + * @param Google_AchievementConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_AchievementConfiguration + */ + public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) + { + $params = array('achievementId' => $achievementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); + } +} + +/** + * The "imageConfigurations" collection of methods. + * Typical usage is: + * + * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); + * $imageConfigurations = $gamesConfigurationService->imageConfigurations; + * + */ +class Google_Service_GamesConfiguration_ImageConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Uploads an image for a resource with the given ID and image type. + * (imageConfigurations.upload) + * + * @param string $resourceId The ID of the resource used by this method. + * @param string $imageType Selects which image in a resource for this method. + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_ImageConfiguration + */ + public function upload($resourceId, $imageType, $optParams = array()) + { + $params = array('resourceId' => $resourceId, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_GamesConfiguration_ImageConfiguration"); + } +} + +/** + * The "leaderboardConfigurations" collection of methods. + * Typical usage is: + * + * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); + * $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations; + * + */ +class Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Delete the leaderboard configuration with the given ID. + * (leaderboardConfigurations.delete) + * + * @param string $leaderboardId The ID of the leaderboard. + * @param array $optParams Optional parameters. + */ + public function delete($leaderboardId, $optParams = array()) + { + $params = array('leaderboardId' => $leaderboardId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the metadata of the leaderboard configuration with the given ID. + * (leaderboardConfigurations.get) + * + * @param string $leaderboardId The ID of the leaderboard. + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_LeaderboardConfiguration + */ + public function get($leaderboardId, $optParams = array()) + { + $params = array('leaderboardId' => $leaderboardId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); + } + + /** + * Insert a new leaderboard configuration in this application. + * (leaderboardConfigurations.insert) + * + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param Google_LeaderboardConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_LeaderboardConfiguration + */ + public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) + { + $params = array('applicationId' => $applicationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); + } + + /** + * Returns a list of the leaderboard configurations in this application. + * (leaderboardConfigurations.listLeaderboardConfigurations) + * + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param int maxResults The maximum number of resource configurations to + * return in the response, used for paging. For any response, the actual number + * of resources returned may be less than the specified maxResults. + * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse + */ + public function listLeaderboardConfigurations($applicationId, $optParams = array()) + { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse"); + } + + /** + * Update the metadata of the leaderboard configuration with the given ID. This + * method supports patch semantics. (leaderboardConfigurations.patch) + * + * @param string $leaderboardId The ID of the leaderboard. + * @param Google_LeaderboardConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_LeaderboardConfiguration + */ + public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) + { + $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); + } + + /** + * Update the metadata of the leaderboard configuration with the given ID. + * (leaderboardConfigurations.update) + * + * @param string $leaderboardId The ID of the leaderboard. + * @param Google_LeaderboardConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_GamesConfiguration_LeaderboardConfiguration + */ + public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) + { + $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); + } +} + + + + +class Google_Service_GamesConfiguration_AchievementConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $achievementType; + protected $draftType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail'; + protected $draftDataType = ''; + public $id; + public $initialState; + public $kind; + protected $publishedType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail'; + protected $publishedDataType = ''; + public $stepsToUnlock; + public $token; + + + public function setAchievementType($achievementType) + { + $this->achievementType = $achievementType; + } + public function getAchievementType() + { + return $this->achievementType; + } + public function setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft) + { + $this->draft = $draft; + } + public function getDraft() + { + return $this->draft; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInitialState($initialState) + { + $this->initialState = $initialState; + } + public function getInitialState() + { + return $this->initialState; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published) + { + $this->published = $published; + } + public function getPublished() + { + return $this->published; + } + public function setStepsToUnlock($stepsToUnlock) + { + $this->stepsToUnlock = $stepsToUnlock; + } + public function getStepsToUnlock() + { + return $this->stepsToUnlock; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + +class Google_Service_GamesConfiguration_AchievementConfigurationDetail extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $descriptionType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $descriptionDataType = ''; + public $iconUrl; + public $kind; + protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $nameDataType = ''; + public $pointValue; + public $sortRank; + + + public function setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + public function getIconUrl() + { + return $this->iconUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPointValue($pointValue) + { + $this->pointValue = $pointValue; + } + public function getPointValue() + { + return $this->pointValue; + } + public function setSortRank($sortRank) + { + $this->sortRank = $sortRank; + } + public function getSortRank() + { + return $this->sortRank; + } +} + +class Google_Service_GamesConfiguration_AchievementConfigurationListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_GamesConfiguration_AchievementConfiguration'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_GamesConfiguration_GamesNumberAffixConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $fewType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $fewDataType = ''; + protected $manyType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $manyDataType = ''; + protected $oneType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $oneDataType = ''; + protected $otherType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $otherDataType = ''; + protected $twoType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $twoDataType = ''; + protected $zeroType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $zeroDataType = ''; + + + public function setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few) + { + $this->few = $few; + } + public function getFew() + { + return $this->few; + } + public function setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many) + { + $this->many = $many; + } + public function getMany() + { + return $this->many; + } + public function setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one) + { + $this->one = $one; + } + public function getOne() + { + return $this->one; + } + public function setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other) + { + $this->other = $other; + } + public function getOther() + { + return $this->other; + } + public function setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two) + { + $this->two = $two; + } + public function getTwo() + { + return $this->two; + } + public function setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero) + { + $this->zero = $zero; + } + public function getZero() + { + return $this->zero; + } +} + +class Google_Service_GamesConfiguration_GamesNumberFormatConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $currencyCode; + public $numDecimalPlaces; + public $numberFormatType; + protected $suffixType = 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration'; + protected $suffixDataType = ''; + + + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setNumDecimalPlaces($numDecimalPlaces) + { + $this->numDecimalPlaces = $numDecimalPlaces; + } + public function getNumDecimalPlaces() + { + return $this->numDecimalPlaces; + } + public function setNumberFormatType($numberFormatType) + { + $this->numberFormatType = $numberFormatType; + } + public function getNumberFormatType() + { + return $this->numberFormatType; + } + public function setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix) + { + $this->suffix = $suffix; + } + public function getSuffix() + { + return $this->suffix; + } +} + +class Google_Service_GamesConfiguration_ImageConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $imageType; + public $kind; + public $resourceId; + public $url; + + + public function setImageType($imageType) + { + $this->imageType = $imageType; + } + public function getImageType() + { + return $this->imageType; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setResourceId($resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_GamesConfiguration_LeaderboardConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $draftType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail'; + protected $draftDataType = ''; + public $id; + public $kind; + protected $publishedType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail'; + protected $publishedDataType = ''; + public $scoreMax; + public $scoreMin; + public $scoreOrder; + public $token; + + + public function setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft) + { + $this->draft = $draft; + } + public function getDraft() + { + return $this->draft; + } + 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(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published) + { + $this->published = $published; + } + public function getPublished() + { + return $this->published; + } + public function setScoreMax($scoreMax) + { + $this->scoreMax = $scoreMax; + } + public function getScoreMax() + { + return $this->scoreMax; + } + public function setScoreMin($scoreMin) + { + $this->scoreMin = $scoreMin; + } + public function getScoreMin() + { + return $this->scoreMin; + } + public function setScoreOrder($scoreOrder) + { + $this->scoreOrder = $scoreOrder; + } + public function getScoreOrder() + { + return $this->scoreOrder; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + +class Google_Service_GamesConfiguration_LeaderboardConfigurationDetail extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $iconUrl; + public $kind; + protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; + protected $nameDataType = ''; + protected $scoreFormatType = 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration'; + protected $scoreFormatDataType = ''; + public $sortRank; + + + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + public function getIconUrl() + { + return $this->iconUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat) + { + $this->scoreFormat = $scoreFormat; + } + public function getScoreFormat() + { + return $this->scoreFormat; + } + public function setSortRank($sortRank) + { + $this->sortRank = $sortRank; + } + public function getSortRank() + { + return $this->sortRank; + } +} + +class Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_GamesConfiguration_LeaderboardConfiguration'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_GamesConfiguration_LocalizedString extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $locale; + public $value; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_GamesConfiguration_LocalizedStringBundle extends Google_Collection +{ + protected $collection_key = 'translations'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $translationsType = 'Google_Service_GamesConfiguration_LocalizedString'; + protected $translationsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setTranslations($translations) + { + $this->translations = $translations; + } + public function getTranslations() + { + return $this->translations; + } +} From 9c0cedd51cd780c2a6c235655f981abc041e02c3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 10 Jan 2015 03:06:06 -0800 Subject: [PATCH 0582/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 544 +++++++++++++++---------- 1 file changed, 330 insertions(+), 214 deletions(-) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 02883eece..89d20e962 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Pagespeedonline (v1). + * Service definition for Pagespeedonline (v2). * *

* Lets you analyze the performance of a web page and get tailored suggestions @@ -44,8 +44,8 @@ class Google_Service_Pagespeedonline extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'pagespeedonline/v1/'; - $this->version = 'v1'; + $this->servicePath = 'pagespeedonline/v2/'; + $this->version = 'v2'; $this->serviceName = 'pagespeedonline'; $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource( @@ -105,8 +105,8 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic { /** - * 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 + * Runs PageSpeed analysis on the page at the specified URL, and returns + * PageSpeed scores, a list of suggestions to make that page faster, and other * information. (pagespeedapi.runpagespeed) * * @param string $url The URL to fetch and analyze @@ -115,7 +115,7 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic * @opt_param bool screenshot Indicates if binary data containing a screenshot * should be included * @opt_param string locale The locale used to localize formatted results - * @opt_param string rule A Page Speed rule to run; if none are given, all rules + * @opt_param string rule A PageSpeed rule to run; if none are given, all rules * are run * @opt_param string strategy The analysis strategy to use * @opt_param bool filter_third_party_resources Indicates if third party @@ -133,6 +133,288 @@ public function runpagespeed($url, $optParams = array()) +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection +{ + protected $collection_key = 'args'; + protected $internal_gapi_mappings = array( + ); + protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args'; + protected $argsDataType = 'array'; + 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_PagespeedApiFormatStringV2Args extends Google_Collection +{ + protected $collection_key = 'secondary_rects'; + protected $internal_gapi_mappings = array( + "secondaryRects" => "secondary_rects", + ); + public $key; + protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects'; + protected $rectsDataType = 'array'; + protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects'; + protected $secondaryRectsDataType = 'array'; + public $type; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRects($rects) + { + $this->rects = $rects; + } + public function getRects() + { + return $this->rects; + } + public function setSecondaryRects($secondaryRects) + { + $this->secondaryRects = $secondaryRects; + } + public function getSecondaryRects() + { + return $this->secondaryRects; + } + 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_PagespeedApiFormatStringV2ArgsRects extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model +{ + protected $internal_gapi_mappings = array( + "mimeType" => "mime_type", + "pageRect" => "page_rect", + ); + public $data; + public $height; + public $key; + public $mimeType; + protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect'; + protected $pageRectDataType = ''; + 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 setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect) + { + $this->pageRect = $pageRect; + } + public function getPageRect() + { + return $this->pageRect; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + class Google_Service_Pagespeedonline_Result extends Google_Collection { protected $collection_key = 'invalidRules'; @@ -146,8 +428,9 @@ class Google_Service_Pagespeedonline_Result extends Google_Collection protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats'; protected $pageStatsDataType = ''; public $responseCode; - public $score; - protected $screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot'; + protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement'; + protected $ruleGroupsDataType = 'map'; + protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2'; protected $screenshotDataType = ''; public $title; protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; @@ -202,15 +485,15 @@ public function getResponseCode() { return $this->responseCode; } - public function setScore($score) + public function setRuleGroups($ruleGroups) { - $this->score = $score; + $this->ruleGroups = $ruleGroups; } - public function getScore() + public function getRuleGroups() { - return $this->score; + return $this->ruleGroups; } - public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot) + public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot) { $this->screenshot = $screenshot; } @@ -272,12 +555,23 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement ex protected $collection_key = 'urlBlocks'; protected $internal_gapi_mappings = array( ); + public $groups; public $localizedRuleName; public $ruleImpact; + protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; + protected $summaryDataType = ''; protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; protected $urlBlocksDataType = 'array'; + public function setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } public function setLocalizedRuleName($localizedRuleName) { $this->localizedRuleName = $localizedRuleName; @@ -294,6 +588,14 @@ public function getRuleImpact() { return $this->ruleImpact; } + public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary) + { + $this->summary = $summary; + } + public function getSummary() + { + return $this->summary; + } public function setUrlBlocks($urlBlocks) { $this->urlBlocks = $urlBlocks; @@ -309,13 +611,13 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $collection_key = 'urls'; protected $internal_gapi_mappings = array( ); - protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; + protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $headerDataType = ''; protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; protected $urlsDataType = 'array'; - public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header) + public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header) { $this->header = $header; } @@ -333,68 +635,14 @@ public function getUrls() } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; - protected $argsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'details'; protected $internal_gapi_mappings = array( ); - protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; + protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $detailsDataType = 'array'; - protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; + protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $resultDataType = ''; @@ -406,7 +654,7 @@ public function getDetails() { return $this->details; } - public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result) + public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result) { $this->result = $result; } @@ -416,114 +664,6 @@ public function getResult() } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; - protected $argsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; - protected $argsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 { protected $internal_gapi_mappings = array( @@ -649,48 +789,24 @@ public function getTotalRequestBytes() } } -class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model +class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model +{ +} + +class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model { protected $internal_gapi_mappings = array( - "mimeType" => "mime_type", ); - public $data; - public $height; - public $mimeType; - public $width; + public $score; - 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 setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setWidth($width) + public function setScore($score) { - $this->width = $width; + $this->score = $score; } - public function getWidth() + public function getScore() { - return $this->width; + return $this->score; } } From c631d8679bc0acbdb3a333a216073c304cb94a76 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 13 Jan 2015 03:09:41 -0800 Subject: [PATCH 0583/1274] Added service Cloudlatencytest.php --- src/Google/Service/Cloudlatencytest.php | 294 ++++++++++++++++++++++++ 1 file changed, 294 insertions(+) create mode 100644 src/Google/Service/Cloudlatencytest.php diff --git a/src/Google/Service/Cloudlatencytest.php b/src/Google/Service/Cloudlatencytest.php new file mode 100644 index 000000000..aef31fe55 --- /dev/null +++ b/src/Google/Service/Cloudlatencytest.php @@ -0,0 +1,294 @@ + + * A Test API to report latency data.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudlatencytest extends Google_Service +{ + /** View monitoring data for all of your Google Cloud and API projects. */ + const MONITORING_READONLY = + "https://www.googleapis.com/auth/monitoring.readonly"; + + public $statscollection; + + + /** + * Constructs the internal representation of the Cloudlatencytest service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'v2/statscollection/'; + $this->version = 'v2'; + $this->serviceName = 'cloudlatencytest'; + + $this->statscollection = new Google_Service_Cloudlatencytest_Statscollection_Resource( + $this, + $this->serviceName, + 'statscollection', + array( + 'methods' => array( + 'updateaggregatedstats' => array( + 'path' => 'updateaggregatedstats', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'updatestats' => array( + 'path' => 'updatestats', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "statscollection" collection of methods. + * Typical usage is: + * + * $cloudlatencytestService = new Google_Service_Cloudlatencytest(...); + * $statscollection = $cloudlatencytestService->statscollection; + * + */ +class Google_Service_Cloudlatencytest_Statscollection_Resource extends Google_Service_Resource +{ + + /** + * RPC to update the new TCP stats. (statscollection.updateaggregatedstats) + * + * @param Google_AggregatedStats $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudlatencytest_AggregatedStatsReply + */ + public function updateaggregatedstats(Google_Service_Cloudlatencytest_AggregatedStats $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateaggregatedstats', array($params), "Google_Service_Cloudlatencytest_AggregatedStatsReply"); + } + + /** + * RPC to update the new TCP stats. (statscollection.updatestats) + * + * @param Google_Stats $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudlatencytest_StatsReply + */ + public function updatestats(Google_Service_Cloudlatencytest_Stats $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatestats', array($params), "Google_Service_Cloudlatencytest_StatsReply"); + } +} + + + + +class Google_Service_Cloudlatencytest_AggregatedStats extends Google_Collection +{ + protected $collection_key = 'stats'; + protected $internal_gapi_mappings = array( + ); + protected $statsType = 'Google_Service_Cloudlatencytest_Stats'; + protected $statsDataType = 'array'; + + + public function setStats($stats) + { + $this->stats = $stats; + } + public function getStats() + { + return $this->stats; + } +} + +class Google_Service_Cloudlatencytest_AggregatedStatsReply extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $testValue; + + + public function setTestValue($testValue) + { + $this->testValue = $testValue; + } + public function getTestValue() + { + return $this->testValue; + } +} + +class Google_Service_Cloudlatencytest_DoubleValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $label; + public $value; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Cloudlatencytest_IntValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $label; + public $value; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Cloudlatencytest_Stats extends Google_Collection +{ + protected $collection_key = 'stringValues'; + protected $internal_gapi_mappings = array( + ); + protected $doubleValuesType = 'Google_Service_Cloudlatencytest_DoubleValue'; + protected $doubleValuesDataType = 'array'; + protected $intValuesType = 'Google_Service_Cloudlatencytest_IntValue'; + protected $intValuesDataType = 'array'; + protected $stringValuesType = 'Google_Service_Cloudlatencytest_StringValue'; + protected $stringValuesDataType = 'array'; + public $time; + + + public function setDoubleValues($doubleValues) + { + $this->doubleValues = $doubleValues; + } + public function getDoubleValues() + { + return $this->doubleValues; + } + public function setIntValues($intValues) + { + $this->intValues = $intValues; + } + public function getIntValues() + { + return $this->intValues; + } + public function setStringValues($stringValues) + { + $this->stringValues = $stringValues; + } + public function getStringValues() + { + return $this->stringValues; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Cloudlatencytest_StatsReply extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $testValue; + + + public function setTestValue($testValue) + { + $this->testValue = $testValue; + } + public function getTestValue() + { + return $this->testValue; + } +} + +class Google_Service_Cloudlatencytest_StringValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $label; + public $value; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} From 782b1b25b703165db616eb75b8accfec2e3d6220 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 15 Jan 2015 03:11:44 -0800 Subject: [PATCH 0584/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 263 +++++++--------------- 1 file changed, 87 insertions(+), 176 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 04d2d4df3..0af960b52 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -41,7 +41,7 @@ class Google_Service_Replicapoolupdater extends Google_Service const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; - public $updates; + public $rollingUpdates; /** @@ -56,14 +56,14 @@ public function __construct(Google_Client $client) $this->version = 'v1beta1'; $this->serviceName = 'replicapoolupdater'; - $this->updates = new Google_Service_Replicapoolupdater_Updates_Resource( + $this->rollingUpdates = new Google_Service_Replicapoolupdater_RollingUpdates_Resource( $this, $this->serviceName, - 'updates', + 'rollingUpdates', array( 'methods' => array( 'cancel' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/cancel', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -76,19 +76,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -101,19 +96,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'path' => '{project}/zones/{zone}/rollingUpdates', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -126,14 +116,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'path' => '{project}/zones/{zone}/rollingUpdates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -146,11 +131,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -159,9 +139,13 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'instanceGroupManager' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listInstanceUpdates' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/instanceUpdates', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -174,27 +158,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'update' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'pause' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/pause', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -207,19 +186,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'resume' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/resume', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -232,19 +206,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'rollback' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollback', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -257,37 +226,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'rollforward' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollforward', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -302,81 +241,74 @@ public function __construct(Google_Client $client) /** - * The "updates" collection of methods. + * The "rollingUpdates" collection of methods. * Typical usage is: * * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); - * $updates = $replicapoolupdaterService->updates; + * $rollingUpdates = $replicapoolupdaterService->rollingUpdates; * */ -class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_Resource +class Google_Service_Replicapoolupdater_RollingUpdates_Resource extends Google_Service_Resource { /** - * Called on the particular Update endpoint. Cancels the update in state PAUSED. - * No-op if invoked in state CANCELLED. (updates.cancel) + * Cancels an update. The update must be PAUSED before it can be cancelled. This + * has no effect if the update is already CANCELLED. (rollingUpdates.cancel) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. */ - public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function cancel($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); return $this->call('cancel', array($params)); } /** - * Called on the particular Update endpoint. Returns the Update resource. - * (updates.get) + * Returns information about an update. (rollingUpdates.get) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Update + * @return Google_Service_Replicapoolupdater_RollingUpdate */ - public function get($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function get($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update"); + return $this->call('get', array($params), "Google_Service_Replicapoolupdater_RollingUpdate"); } /** - * Called on the collection endpoint. Inserts the new Update resource and starts - * the update. (updates.insert) + * Inserts and starts a new update. (rollingUpdates.insert) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Update $postBody + * @param Google_RollingUpdate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Replicapoolupdater_InsertResponse */ - public function insert($project, $zone, $instanceGroupManager, Google_Service_Replicapoolupdater_Update $postBody, $optParams = array()) + public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse"); } /** - * Called on the collection endpoint. Lists updates for a given instance group, - * in reverse chronological order. Pagination is supported, see - * ListRequestHeader. (updates.listUpdates) + * Lists recent updates for a given managed instance group, in reverse + * chronological order and paginated format. (rollingUpdates.listRollingUpdates) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. * @param array $optParams Optional parameters. * * @opt_param string pageToken Set this to the nextPageToken value returned by a @@ -384,114 +316,93 @@ public function insert($project, $zone, $instanceGroupManager, Google_Service_Re * list request. * @opt_param int maxResults Maximum count of results to be returned. Acceptable * values are 1 to 100, inclusive. (Default: 50) - * @return Google_Service_Replicapoolupdater_UpdateList + * @opt_param string instanceGroupManager The name of the instance group + * manager. + * @return Google_Service_Replicapoolupdater_RollingUpdateList */ - public function listUpdates($project, $zone, $instanceGroupManager, $optParams = array()) + public function listRollingUpdates($project, $zone, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList"); + return $this->call('list', array($params), "Google_Service_Replicapoolupdater_RollingUpdateList"); } /** - * Called on the particular Update endpoint. Lists instance updates for a given - * update. (updates.listInstanceUpdates) + * Lists the current status for each instance within a given update. + * (rollingUpdates.listInstanceUpdates) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. * - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 1 to 100, inclusive. (Default: 50) * @opt_param string pageToken Set this to the nextPageToken value returned by a * previous list request to obtain the next page of results from the previous * list request. + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 1 to 100, inclusive. (Default: 50) * @return Google_Service_Replicapoolupdater_InstanceUpdateList */ - public function listInstanceUpdates($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList"); } /** - * Called on the particular Update endpoint. Pauses the update in state - * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. - * (updates.pause) + * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no + * effect if invoked when the state of the update is PAUSED. + * (rollingUpdates.pause) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. */ - public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function pause($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); return $this->call('pause', array($params)); } /** - * Called on the particular Update endpoint. Resumes the update in state PAUSED. - * No-op if invoked in state ROLLING_FORWARD or ROLLING_BACK. (updates.resume) + * Continues an update in PAUSED state. Has no effect if invoked when the state + * of the update is ROLLED_OUT. (rollingUpdates.resume) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. */ - public function resume($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function resume($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); return $this->call('resume', array($params)); } /** - * Called on the particular Update endpoint. Rolls back the update in state - * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or - * ROLLING_BACK. (updates.rollback) + * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect + * if invoked when the state of the update is ROLLED_BACK. + * (rollingUpdates.rollback) * * @param string $project The Google Developers Console project name. * @param string $zone The name of the zone in which the update's target * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. */ - public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function rollback($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); return $this->call('rollback', array($params)); } - - /** - * Called on the particular Update endpoint. Rolls forward the update in state - * PAUSED before ordering it to roll back. No-op if invoked in state ROLLED_OUT - * or ROLLING_FORWARD. (updates.rollforward) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param string $update The id of the update. - * @param array $optParams Optional parameters. - */ - public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); - $params = array_merge($params, $optParams); - return $this->call('rollforward', array($params)); - } } @@ -501,16 +412,16 @@ class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model { protected $internal_gapi_mappings = array( ); - public $update; + public $rollingUpdate; - public function setUpdate($update) + public function setRollingUpdate($rollingUpdate) { - $this->update = $update; + $this->rollingUpdate = $rollingUpdate; } - public function getUpdate() + public function getRollingUpdate() { - return $this->update; + return $this->rollingUpdate; } } @@ -586,7 +497,7 @@ public function getSelfLink() } } -class Google_Service_Replicapoolupdater_Update extends Google_Model +class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -595,7 +506,7 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model public $instanceGroupManager; public $instanceTemplate; public $kind; - protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy'; + protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; protected $policyDataType = ''; public $progress; public $selfLink; @@ -644,7 +555,7 @@ public function getKind() { return $this->kind; } - public function setPolicy(Google_Service_Replicapoolupdater_UpdatePolicy $policy) + public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy) { $this->policy = $policy; } @@ -694,12 +605,12 @@ public function getUser() } } -class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection +class Google_Service_Replicapoolupdater_RollingUpdateList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_Replicapoolupdater_Update'; + protected $itemsType = 'Google_Service_Replicapoolupdater_RollingUpdate'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -740,17 +651,17 @@ public function getSelfLink() } } -class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model +class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $canaryType = 'Google_Service_Replicapoolupdater_UpdatePolicyCanary'; + protected $canaryType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary'; protected $canaryDataType = ''; public $maxNumConcurrentInstances; public $sleepAfterInstanceRestartSec; - public function setCanary(Google_Service_Replicapoolupdater_UpdatePolicyCanary $canary) + public function setCanary(Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary $canary) { $this->canary = $canary; } @@ -776,7 +687,7 @@ public function getSleepAfterInstanceRestartSec() } } -class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model +class Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary extends Google_Model { protected $internal_gapi_mappings = array( ); From bf58f98b5ee2ae14139792d921fb84de01c97a85 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 15 Jan 2015 03:11:44 -0800 Subject: [PATCH 0585/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index 40150e6c6..f37f8970e 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -299,7 +299,7 @@ public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest /** * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an end point by clearing the PushConfig + * to suspend the flow of messages to an endpoint by clearing the PushConfig * field in the request. Messages will be accumulated for delivery even if no * push configuration is defined or while the configuration is modified. * (subscriptions.modifyPushConfig) @@ -335,7 +335,7 @@ public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = a /** * Pulls messages from the server. Returns an empty list if there are no * messages available in the backlog. The system is free to return UNAVAILABLE - * if there too many pull requests outstanding for a given subscription. + * if there are too many pull requests outstanding for the given subscription. * (subscriptions.pullBatch) * * @param Google_PullBatchRequest $postBody From 09173dcc89e19667b49b709d78c551f56c158027 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 16 Jan 2015 03:12:44 -0800 Subject: [PATCH 0586/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 40 +++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 4fb3e0ef8..5be0c7409 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -723,11 +723,14 @@ public function getUser() } } -class Google_Service_Container_NodeConfig extends Google_Model +class Google_Service_Container_NodeConfig extends Google_Collection { + protected $collection_key = 'serviceAccounts'; protected $internal_gapi_mappings = array( ); public $machineType; + protected $serviceAccountsType = 'Google_Service_Container_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; public $sourceImage; @@ -739,6 +742,14 @@ public function getMachineType() { return $this->machineType; } + public function setServiceAccounts($serviceAccounts) + { + $this->serviceAccounts = $serviceAccounts; + } + public function getServiceAccounts() + { + return $this->serviceAccounts; + } public function setSourceImage($sourceImage) { $this->sourceImage = $sourceImage; @@ -828,3 +839,30 @@ public function getZone() return $this->zone; } } + +class Google_Service_Container_ServiceAccount extends Google_Collection +{ + protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); + 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; + } +} From 6dc11f7c26f13c4b733a0424d2ea96c7cadd3ccc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 16 Jan 2015 03:12:44 -0800 Subject: [PATCH 0587/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 9b1551c49..361d3f587 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1541,7 +1541,7 @@ public function update($variantSetId, Google_Service_Genomics_VariantSet $postBo class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collection { - protected $collection_key = 'readGroupSetIds'; + protected $collection_key = 'bamSourceUris'; protected $internal_gapi_mappings = array( ); public $bamSourceUris; @@ -1550,7 +1550,7 @@ class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collectio protected $interleavedFastqSourceDataType = ''; protected $pairedFastqSourceType = 'Google_Service_Genomics_PairedFastqSource'; protected $pairedFastqSourceDataType = ''; - public $readGroupSetIds; + public $readGroupSetId; public function setBamSourceUris($bamSourceUris) @@ -1585,13 +1585,13 @@ public function getPairedFastqSource() { return $this->pairedFastqSource; } - public function setReadGroupSetIds($readGroupSetIds) + public function setReadGroupSetId($readGroupSetId) { - $this->readGroupSetIds = $readGroupSetIds; + $this->readGroupSetId = $readGroupSetId; } - public function getReadGroupSetIds() + public function getReadGroupSetId() { - return $this->readGroupSetIds; + return $this->readGroupSetId; } } @@ -1618,7 +1618,7 @@ class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection protected $internal_gapi_mappings = array( ); public $datasetId; - public $readGroupSetIds; + public $readGroupSetId; public $sourceUris; @@ -1630,13 +1630,13 @@ public function getDatasetId() { return $this->datasetId; } - public function setReadGroupSetIds($readGroupSetIds) + public function setReadGroupSetId($readGroupSetId) { - $this->readGroupSetIds = $readGroupSetIds; + $this->readGroupSetId = $readGroupSetId; } - public function getReadGroupSetIds() + public function getReadGroupSetId() { - return $this->readGroupSetIds; + return $this->readGroupSetId; } public function setSourceUris($sourceUris) { From 21dff96e9c3201c6eff1f60660c977035046bfad Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 16 Jan 2015 03:12:45 -0800 Subject: [PATCH 0588/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 6c3972747..474c146d2 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -2503,6 +2503,7 @@ class Google_Service_Drive_About extends Google_Collection protected $exportFormatsDataType = 'array'; protected $featuresType = 'Google_Service_Drive_AboutFeatures'; protected $featuresDataType = 'array'; + public $folderColorPalette; protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; protected $importFormatsDataType = 'array'; public $isCurrentAppInstalled; @@ -2567,6 +2568,14 @@ public function getFeatures() { return $this->features; } + public function setFolderColorPalette($folderColorPalette) + { + $this->folderColorPalette = $folderColorPalette; + } + public function getFolderColorPalette() + { + return $this->folderColorPalette; + } public function setImportFormats($importFormats) { $this->importFormats = $importFormats; @@ -3963,6 +3972,7 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $exportLinks; public $fileExtension; public $fileSize; + public $folderColorRgb; public $headRevisionId; public $iconLink; public $id; @@ -4125,6 +4135,14 @@ public function getFileSize() { return $this->fileSize; } + public function setFolderColorRgb($folderColorRgb) + { + $this->folderColorRgb = $folderColorRgb; + } + public function getFolderColorRgb() + { + return $this->folderColorRgb; + } public function setHeadRevisionId($headRevisionId) { $this->headRevisionId = $headRevisionId; From 84d525b8fcebc2b295f67b59025764c295faba98 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 21 Jan 2015 03:17:11 -0800 Subject: [PATCH 0589/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 51 ++++++++++++++++------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 0af960b52..f7f36247a 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -131,13 +131,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'instanceGroupManager' => array( 'location' => 'query', @@ -163,13 +167,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'pause' => array( @@ -311,11 +319,12 @@ public function insert($project, $zone, Google_Service_Replicapoolupdater_Rollin * resides. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Set this to the nextPageToken value returned by a - * previous list request to obtain the next page of results from the previous - * list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 1 to 100, inclusive. (Default: 50) + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. * @opt_param string instanceGroupManager The name of the instance group * manager. * @return Google_Service_Replicapoolupdater_RollingUpdateList @@ -337,11 +346,12 @@ public function listRollingUpdates($project, $zone, $optParams = array()) * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Set this to the nextPageToken value returned by a - * previous list request to obtain the next page of results from the previous - * list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 1 to 100, inclusive. (Default: 50) + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. * @return Google_Service_Replicapoolupdater_InstanceUpdateList */ public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array()) @@ -501,6 +511,7 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); + public $actionType; public $creationTimestamp; public $id; public $instanceGroupManager; @@ -515,6 +526,14 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model public $user; + public function setActionType($actionType) + { + $this->actionType = $actionType; + } + public function getActionType() + { + return $this->actionType; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; From 4f6133f005530d6354b966789f24e90e5ff3c64b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 21 Jan 2015 03:17:12 -0800 Subject: [PATCH 0590/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 1154 +++++++++++++++++++++++++++++-- 1 file changed, 1087 insertions(+), 67 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 361d3f587..36e868db3 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -43,6 +43,8 @@ class Google_Service_Genomics extends Google_Service const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; + public $annotationSets; + public $annotations; public $callsets; public $datasets; public $experimental_jobs; @@ -69,6 +71,122 @@ public function __construct(Google_Client $client) $this->version = 'v1beta2'; $this->serviceName = 'genomics'; + $this->annotationSets = new Google_Service_Genomics_AnnotationSets_Resource( + $this, + $this->serviceName, + 'annotationSets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'annotationSets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'annotationSets/{annotationSetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'annotationSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'annotationSets/{annotationSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'annotationSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'annotationSets/{annotationSetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'annotationSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'annotationSets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'update' => array( + 'path' => 'annotationSets/{annotationSetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'annotationSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->annotations = new Google_Service_Genomics_Annotations_Resource( + $this, + $this->serviceName, + 'annotations', + array( + 'methods' => array( + 'create' => array( + 'path' => 'annotations', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'annotations/{annotationId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'annotations/{annotationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'annotations/{annotationId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'annotations/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'update' => array( + 'path' => 'annotations/{annotationId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->callsets = new Google_Service_Genomics_Callsets_Resource( $this, $this->serviceName, @@ -604,6 +722,222 @@ public function __construct(Google_Client $client) } +/** + * The "annotationSets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $annotationSets = $genomicsService->annotationSets; + * + */ +class Google_Service_Genomics_AnnotationSets_Resource extends Google_Service_Resource +{ + + /** + * Creates a new annotation set. Caller must have WRITE permission for the + * associated dataset. (annotationSets.create) + * + * @param Google_AnnotationSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_AnnotationSet + */ + public function create(Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_AnnotationSet"); + } + + /** + * Deletes an annotation set. Caller must have WRITE permission for the + * associated annotation set. (annotationSets.delete) + * + * @param string $annotationSetId The ID of the annotation set to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($annotationSetId, $optParams = array()) + { + $params = array('annotationSetId' => $annotationSetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets an annotation set. Caller must have READ permission for the associated + * dataset. (annotationSets.get) + * + * @param string $annotationSetId The ID of the annotation set to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_AnnotationSet + */ + public function get($annotationSetId, $optParams = array()) + { + $params = array('annotationSetId' => $annotationSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_AnnotationSet"); + } + + /** + * Updates an annotation set. The update must respect all mutability + * restrictions and other invariants described on the annotation set resource. + * Caller must have WRITE permission for the associated dataset. This method + * supports patch semantics. (annotationSets.patch) + * + * @param string $annotationSetId The ID of the annotation set to be updated. + * @param Google_AnnotationSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_AnnotationSet + */ + public function patch($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) + { + $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_AnnotationSet"); + } + + /** + * Searches for annotation sets which match the given criteria. Results are + * returned in a deterministic order. Caller must have READ permission for the + * queried datasets. (annotationSets.search) + * + * @param Google_SearchAnnotationSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchAnnotationSetsResponse + */ + public function search(Google_Service_Genomics_SearchAnnotationSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationSetsResponse"); + } + + /** + * Updates an annotation set. The update must respect all mutability + * restrictions and other invariants described on the annotation set resource. + * Caller must have WRITE permission for the associated dataset. + * (annotationSets.update) + * + * @param string $annotationSetId The ID of the annotation set to be updated. + * @param Google_AnnotationSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_AnnotationSet + */ + public function update($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) + { + $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_AnnotationSet"); + } +} + +/** + * The "annotations" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $annotations = $genomicsService->annotations; + * + */ +class Google_Service_Genomics_Annotations_Resource extends Google_Service_Resource +{ + + /** + * Creates a new annotation. Caller must have WRITE permission for the + * associated annotation set. (annotations.create) + * + * @param Google_Annotation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Annotation + */ + public function create(Google_Service_Genomics_Annotation $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Annotation"); + } + + /** + * Deletes an annotation. Caller must have WRITE permission for the associated + * annotation set. (annotations.delete) + * + * @param string $annotationId The ID of the annotation set to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($annotationId, $optParams = array()) + { + $params = array('annotationId' => $annotationId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets an annotation. Caller must have READ permission for the associated + * annotation set. (annotations.get) + * + * @param string $annotationId The ID of the annotation set to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Annotation + */ + public function get($annotationId, $optParams = array()) + { + $params = array('annotationId' => $annotationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Annotation"); + } + + /** + * Updates an annotation. The update must respect all mutability restrictions + * and other invariants described on the annotation resource. Caller must have + * WRITE permission for the associated dataset. This method supports patch + * semantics. (annotations.patch) + * + * @param string $annotationId The ID of the annotation set to be updated. + * @param Google_Annotation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Annotation + */ + public function patch($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array()) + { + $params = array('annotationId' => $annotationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Annotation"); + } + + /** + * Searches for annotations which match the given criteria. Results are returned + * ordered by start position. Annotations which have matching start positions + * are ordered deterministically. Caller must have READ permission for the + * queried annotation sets. (annotations.search) + * + * @param Google_SearchAnnotationsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchAnnotationsResponse + */ + public function search(Google_Service_Genomics_SearchAnnotationsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationsResponse"); + } + + /** + * Updates an annotation. The update must respect all mutability restrictions + * and other invariants described on the annotation resource. Caller must have + * WRITE permission for the associated dataset. (annotations.update) + * + * @param string $annotationId The ID of the annotation set to be updated. + * @param Google_Annotation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Annotation + */ + public function update($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array()) + { + $params = array('annotationId' => $annotationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_Annotation"); + } +} + /** * The "callsets" collection of methods. * Typical usage is: @@ -1612,54 +1946,216 @@ public function getJobId() } } -class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection +class Google_Service_Genomics_Annotation extends Google_Model { - protected $collection_key = 'sourceUris'; protected $internal_gapi_mappings = array( ); - public $datasetId; - public $readGroupSetId; - public $sourceUris; + public $annotationSetId; + public $id; + public $info; + public $name; + protected $positionType = 'Google_Service_Genomics_RangePosition'; + protected $positionDataType = ''; + protected $transcriptType = 'Google_Service_Genomics_Transcript'; + protected $transcriptDataType = ''; + public $type; + protected $variantType = 'Google_Service_Genomics_VariantAnnotation'; + protected $variantDataType = ''; - public function setDatasetId($datasetId) + public function setAnnotationSetId($annotationSetId) { - $this->datasetId = $datasetId; + $this->annotationSetId = $annotationSetId; } - public function getDatasetId() + public function getAnnotationSetId() { - return $this->datasetId; + return $this->annotationSetId; } - public function setReadGroupSetId($readGroupSetId) + public function setId($id) { - $this->readGroupSetId = $readGroupSetId; + $this->id = $id; } - public function getReadGroupSetId() + public function getId() { - return $this->readGroupSetId; + return $this->id; } - public function setSourceUris($sourceUris) + public function setInfo($info) { - $this->sourceUris = $sourceUris; + $this->info = $info; } - public function getSourceUris() + public function getInfo() { - return $this->sourceUris; + return $this->info; } -} - -class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) + public function setName($name) { - $this->jobId = $jobId; + $this->name = $name; } - public function getJobId() + public function getName() + { + return $this->name; + } + public function setPosition(Google_Service_Genomics_RangePosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setTranscript(Google_Service_Genomics_Transcript $transcript) + { + $this->transcript = $transcript; + } + public function getTranscript() + { + return $this->transcript; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVariant(Google_Service_Genomics_VariantAnnotation $variant) + { + $this->variant = $variant; + } + public function getVariant() + { + return $this->variant; + } +} + +class Google_Service_Genomics_AnnotationInfo extends Google_Model +{ +} + +class Google_Service_Genomics_AnnotationSet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $id; + public $info; + public $name; + public $referenceSetId; + public $sourceUri; + public $type; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } + public function setSourceUri($sourceUri) + { + $this->sourceUri = $sourceUri; + } + public function getSourceUri() + { + return $this->sourceUri; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Genomics_AnnotationSetInfo extends Google_Model +{ +} + +class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $readGroupSetId; + public $sourceUris; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setReadGroupSetId($readGroupSetId) + { + $this->readGroupSetId = $readGroupSetId; + } + public function getReadGroupSetId() + { + return $this->readGroupSetId; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + public function getSourceUris() + { + return $this->sourceUris; + } +} + +class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $jobId; + + + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() { return $this->jobId; } @@ -2051,6 +2547,32 @@ public function getJobId() } } +class Google_Service_Genomics_ExternalId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $sourceName; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setSourceName($sourceName) + { + $this->sourceName = $sourceName; + } + public function getSourceName() + { + return $this->sourceName; + } +} + class Google_Service_Genomics_FastqMetadata extends Google_Model { protected $internal_gapi_mappings = array( @@ -2277,6 +2799,23 @@ public function getJobId() } } +class Google_Service_Genomics_Int32Value extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection { protected $collection_key = 'sourceUris'; @@ -2736,11 +3275,12 @@ public function getReverseStrand() } } -class Google_Service_Genomics_Range extends Google_Model +class Google_Service_Genomics_QueryRange extends Google_Model { protected $internal_gapi_mappings = array( ); public $end; + public $referenceId; public $referenceName; public $start; @@ -2753,6 +3293,14 @@ public function getEnd() { return $this->end; } + public function setReferenceId($referenceId) + { + $this->referenceId = $referenceId; + } + public function getReferenceId() + { + return $this->referenceId; + } public function setReferenceName($referenceName) { $this->referenceName = $referenceName; @@ -2771,63 +3319,151 @@ public function getStart() } } -class Google_Service_Genomics_Read extends Google_Collection +class Google_Service_Genomics_Range extends Google_Model { - protected $collection_key = 'alignedQuality'; protected $internal_gapi_mappings = array( ); - public $alignedQuality; - public $alignedSequence; - protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; - protected $alignmentDataType = ''; - public $duplicateFragment; - public $failedVendorQualityChecks; - public $fragmentLength; - public $fragmentName; - public $id; - public $info; - protected $nextMatePositionType = 'Google_Service_Genomics_Position'; - protected $nextMatePositionDataType = ''; - public $numberReads; - public $properPlacement; - public $readGroupId; - public $readGroupSetId; - public $readNumber; - public $secondaryAlignment; - public $supplementaryAlignment; + public $end; + public $referenceName; + public $start; - public function setAlignedQuality($alignedQuality) + public function setEnd($end) { - $this->alignedQuality = $alignedQuality; + $this->end = $end; } - public function getAlignedQuality() + public function getEnd() { - return $this->alignedQuality; + return $this->end; } - public function setAlignedSequence($alignedSequence) + public function setReferenceName($referenceName) { - $this->alignedSequence = $alignedSequence; + $this->referenceName = $referenceName; } - public function getAlignedSequence() + public function getReferenceName() { - return $this->alignedSequence; + return $this->referenceName; } - public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) + public function setStart($start) { - $this->alignment = $alignment; + $this->start = $start; } - public function getAlignment() + public function getStart() { - return $this->alignment; + return $this->start; } - public function setDuplicateFragment($duplicateFragment) +} + +class Google_Service_Genomics_RangePosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $end; + public $referenceId; + public $referenceName; + public $reverseStrand; + public $start; + + + public function setEnd($end) { - $this->duplicateFragment = $duplicateFragment; + $this->end = $end; } - public function getDuplicateFragment() + public function getEnd() { - return $this->duplicateFragment; + return $this->end; + } + public function setReferenceId($referenceId) + { + $this->referenceId = $referenceId; + } + public function getReferenceId() + { + return $this->referenceId; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setReverseStrand($reverseStrand) + { + $this->reverseStrand = $reverseStrand; + } + public function getReverseStrand() + { + return $this->reverseStrand; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Genomics_Read extends Google_Collection +{ + protected $collection_key = 'alignedQuality'; + protected $internal_gapi_mappings = array( + ); + public $alignedQuality; + public $alignedSequence; + protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; + protected $alignmentDataType = ''; + public $duplicateFragment; + public $failedVendorQualityChecks; + public $fragmentLength; + public $fragmentName; + public $id; + public $info; + protected $nextMatePositionType = 'Google_Service_Genomics_Position'; + protected $nextMatePositionDataType = ''; + public $numberReads; + public $properPlacement; + public $readGroupId; + public $readGroupSetId; + public $readNumber; + public $secondaryAlignment; + public $supplementaryAlignment; + + + public function setAlignedQuality($alignedQuality) + { + $this->alignedQuality = $alignedQuality; + } + public function getAlignedQuality() + { + return $this->alignedQuality; + } + public function setAlignedSequence($alignedSequence) + { + $this->alignedSequence = $alignedSequence; + } + public function getAlignedSequence() + { + return $this->alignedSequence; + } + public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) + { + $this->alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setDuplicateFragment($duplicateFragment) + { + $this->duplicateFragment = $duplicateFragment; + } + public function getDuplicateFragment() + { + return $this->duplicateFragment; } public function setFailedVendorQualityChecks($failedVendorQualityChecks) { @@ -3397,6 +4033,171 @@ public function getSourceURI() } } +class Google_Service_Genomics_SearchAnnotationSetsRequest extends Google_Collection +{ + protected $collection_key = 'types'; + protected $internal_gapi_mappings = array( + ); + public $datasetIds; + public $name; + public $pageSize; + public $pageToken; + public $referenceSetId; + public $types; + + + public function setDatasetIds($datasetIds) + { + $this->datasetIds = $datasetIds; + } + public function getDatasetIds() + { + return $this->datasetIds; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } + public function setTypes($types) + { + $this->types = $types; + } + public function getTypes() + { + return $this->types; + } +} + +class Google_Service_Genomics_SearchAnnotationSetsResponse extends Google_Collection +{ + protected $collection_key = 'annotationSets'; + protected $internal_gapi_mappings = array( + ); + protected $annotationSetsType = 'Google_Service_Genomics_AnnotationSet'; + protected $annotationSetsDataType = 'array'; + public $nextPageToken; + + + public function setAnnotationSets($annotationSets) + { + $this->annotationSets = $annotationSets; + } + public function getAnnotationSets() + { + return $this->annotationSets; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Genomics_SearchAnnotationsRequest extends Google_Collection +{ + protected $collection_key = 'annotationSetIds'; + protected $internal_gapi_mappings = array( + ); + public $annotationSetIds; + public $pageSize; + public $pageToken; + protected $rangeType = 'Google_Service_Genomics_QueryRange'; + protected $rangeDataType = ''; + + + public function setAnnotationSetIds($annotationSetIds) + { + $this->annotationSetIds = $annotationSetIds; + } + public function getAnnotationSetIds() + { + return $this->annotationSetIds; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setRange(Google_Service_Genomics_QueryRange $range) + { + $this->range = $range; + } + public function getRange() + { + return $this->range; + } +} + +class Google_Service_Genomics_SearchAnnotationsResponse extends Google_Collection +{ + protected $collection_key = 'annotations'; + protected $internal_gapi_mappings = array( + ); + protected $annotationsType = 'Google_Service_Genomics_Annotation'; + protected $annotationsDataType = 'array'; + public $nextPageToken; + + + public function setAnnotations($annotations) + { + $this->annotations = $annotations; + } + public function getAnnotations() + { + return $this->annotations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; @@ -4071,6 +4872,106 @@ public function getVariants() } } +class Google_Service_Genomics_Transcript extends Google_Collection +{ + protected $collection_key = 'exons'; + protected $internal_gapi_mappings = array( + ); + protected $codingSequenceType = 'Google_Service_Genomics_TranscriptCodingSequence'; + protected $codingSequenceDataType = ''; + protected $exonsType = 'Google_Service_Genomics_TranscriptExon'; + protected $exonsDataType = 'array'; + public $geneId; + + + public function setCodingSequence(Google_Service_Genomics_TranscriptCodingSequence $codingSequence) + { + $this->codingSequence = $codingSequence; + } + public function getCodingSequence() + { + return $this->codingSequence; + } + public function setExons($exons) + { + $this->exons = $exons; + } + public function getExons() + { + return $this->exons; + } + public function setGeneId($geneId) + { + $this->geneId = $geneId; + } + public function getGeneId() + { + return $this->geneId; + } +} + +class Google_Service_Genomics_TranscriptCodingSequence extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} + +class Google_Service_Genomics_TranscriptExon extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $end; + protected $frameType = 'Google_Service_Genomics_Int32Value'; + protected $frameDataType = ''; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setFrame(Google_Service_Genomics_Int32Value $frame) + { + $this->frame = $frame; + } + public function getFrame() + { + return $this->frame; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + class Google_Service_Genomics_Variant extends Google_Collection { protected $collection_key = 'names'; @@ -4198,6 +5099,125 @@ public function getVariantSetId() } } +class Google_Service_Genomics_VariantAnnotation extends Google_Collection +{ + protected $collection_key = 'transcriptIds'; + protected $internal_gapi_mappings = array( + ); + public $alternateBases; + public $clinicalSignificance; + protected $conditionsType = 'Google_Service_Genomics_VariantAnnotationCondition'; + protected $conditionsDataType = 'array'; + public $effect; + public $geneId; + public $transcriptIds; + public $type; + + + public function setAlternateBases($alternateBases) + { + $this->alternateBases = $alternateBases; + } + public function getAlternateBases() + { + return $this->alternateBases; + } + public function setClinicalSignificance($clinicalSignificance) + { + $this->clinicalSignificance = $clinicalSignificance; + } + public function getClinicalSignificance() + { + return $this->clinicalSignificance; + } + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + public function getConditions() + { + return $this->conditions; + } + public function setEffect($effect) + { + $this->effect = $effect; + } + public function getEffect() + { + return $this->effect; + } + public function setGeneId($geneId) + { + $this->geneId = $geneId; + } + public function getGeneId() + { + return $this->geneId; + } + public function setTranscriptIds($transcriptIds) + { + $this->transcriptIds = $transcriptIds; + } + public function getTranscriptIds() + { + return $this->transcriptIds; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Genomics_VariantAnnotationCondition extends Google_Collection +{ + protected $collection_key = 'names'; + protected $internal_gapi_mappings = array( + ); + public $conceptId; + protected $externalIdsType = 'Google_Service_Genomics_ExternalId'; + protected $externalIdsDataType = 'array'; + public $names; + public $omimId; + + + public function setConceptId($conceptId) + { + $this->conceptId = $conceptId; + } + public function getConceptId() + { + return $this->conceptId; + } + public function setExternalIds($externalIds) + { + $this->externalIds = $externalIds; + } + public function getExternalIds() + { + return $this->externalIds; + } + public function setNames($names) + { + $this->names = $names; + } + public function getNames() + { + return $this->names; + } + public function setOmimId($omimId) + { + $this->omimId = $omimId; + } + public function getOmimId() + { + return $this->omimId; + } +} + class Google_Service_Genomics_VariantInfo extends Google_Model { } From f4b74e2b9385b09affda625f9c1ccdb6ff8b1a1d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 21 Jan 2015 03:17:12 -0800 Subject: [PATCH 0591/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 1724 +++++++++++++++++++++--- 1 file changed, 1546 insertions(+), 178 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 92ce06590..373d0058b 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -36,7 +36,9 @@ class Google_Service_ShoppingContent extends Google_Service "https://www.googleapis.com/auth/content"; public $accounts; + public $accountshipping; public $accountstatuses; + public $accounttax; public $datafeeds; public $datafeedstatuses; public $inventory; @@ -158,6 +160,83 @@ public function __construct(Google_Client $client) ) ) ); + $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource( + $this, + $this->serviceName, + 'accountshipping', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accountshipping/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accountshipping', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( $this, $this->serviceName, @@ -205,6 +284,83 @@ public function __construct(Google_Client $client) ) ) ); + $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource( + $this, + $this->serviceName, + 'accounttax', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accounttax/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accounttax', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( $this, $this->serviceName, @@ -647,6 +803,103 @@ public function update($merchantId, $accountId, Google_Service_ShoppingContent_A } } +/** + * The "accountshipping" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accountshipping = $contentService->accountshipping; + * + */ +class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource +{ + + /** + * Retrieves and updates the shipping settings of multiple accounts in a single + * request. (accountshipping.custombatch) + * + * @param Google_AccountshippingCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse"); + } + + /** + * Retrieves the shipping settings of the account. (accountshipping.get) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } + + /** + * Lists the shipping settings of the sub-accounts in your Merchant Center + * account. (accountshipping.listAccountshipping) + * + * @param string $merchantId The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of shipping settings to + * return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountshippingListResponse + */ + public function listAccountshipping($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse"); + } + + /** + * Updates the shipping settings of the account. This method supports patch + * semantics. (accountshipping.patch) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param Google_AccountShipping $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } + + /** + * Updates the shipping settings of the account. (accountshipping.update) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param Google_AccountShipping $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } +} + /** * The "accountstatuses" collection of methods. * Typical usage is: @@ -708,99 +961,196 @@ public function listAccountstatuses($merchantId, $optParams = array()) } /** - * The "datafeeds" collection of methods. + * The "accounttax" collection of methods. * Typical usage is: * * $contentService = new Google_Service_ShoppingContent(...); - * $datafeeds = $contentService->datafeeds; + * $accounttax = $contentService->accounttax; * */ -class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource +class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource { /** - * (datafeeds.custombatch) + * Retrieves and updates tax settings of multiple accounts in a single request. + * (accounttax.custombatch) * - * @param Google_DatafeedsCustomBatchRequest $postBody + * @param Google_AccounttaxCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse + * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse */ - public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) + public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse"); } /** - * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) + * Retrieves the tax settings of the account. (accounttax.get) * - * @param string $merchantId - * @param string $datafeedId + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountTax */ - public function delete($merchantId, $datafeedId, $optParams = array()) + public function get($merchantId, $accountId, $optParams = array()) { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax"); } /** - * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) + * Lists the tax settings of the sub-accounts in your Merchant Center account. + * (accounttax.listAccounttax) * - * @param string $merchantId - * @param string $datafeedId + * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of tax settings to return in + * the response, used for paging. + * @return Google_Service_ShoppingContent_AccounttaxListResponse */ - public function get($merchantId, $datafeedId, $optParams = array()) + public function listAccounttax($merchantId, $optParams = array()) { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array('merchantId' => $merchantId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse"); } /** - * Registers a datafeed with your Merchant Center account. (datafeeds.insert) + * Updates the tax settings of the account. This method supports patch + * semantics. (accounttax.patch) * - * @param string $merchantId - * @param Google_Datafeed $postBody + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. + * @param Google_AccountTax $postBody * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed + * @return Google_Service_ShoppingContent_AccountTax */ - public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); } /** - * Lists the datafeeds in your Merchant Center account. - * (datafeeds.listDatafeeds) + * Updates the tax settings of the account. (accounttax.update) * * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. + * @param Google_AccountTax $postBody * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The token returned by the previous request. - * @opt_param string maxResults The maximum number of products to return in the - * response, used for paging. - * @return Google_Service_ShoppingContent_DatafeedsListResponse + * @return Google_Service_ShoppingContent_AccountTax */ - public function listDatafeeds($merchantId, $optParams = array()) + public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) { - $params = array('merchantId' => $merchantId); + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); + return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountTax"); } +} - /** - * Updates a datafeed of your Merchant Center account. This method supports - * patch semantics. (datafeeds.patch) - * - * @param string $merchantId - * @param string $datafeedId +/** + * The "datafeeds" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $datafeeds = $contentService->datafeeds; + * + */ +class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource +{ + + /** + * (datafeeds.custombatch) + * + * @param Google_DatafeedsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); + } + + /** + * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) + * + * @param string $merchantId + * @param string $datafeedId + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) + * + * @param string $merchantId + * @param string $datafeedId + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function get($merchantId, $datafeedId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + + /** + * Registers a datafeed with your Merchant Center account. (datafeeds.insert) + * + * @param string $merchantId + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + + /** + * Lists the datafeeds in your Merchant Center account. + * (datafeeds.listDatafeeds) + * + * @param string $merchantId The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of products to return in the + * response, used for paging. + * @return Google_Service_ShoppingContent_DatafeedsListResponse + */ + public function listDatafeeds($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); + } + + /** + * Updates a datafeed of your Merchant Center account. This method supports + * patch semantics. (datafeeds.patch) + * + * @param string $merchantId + * @param string $datafeedId * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. * @return Google_Service_ShoppingContent_Datafeed @@ -1216,15 +1566,21 @@ public function getStatus() } } -class Google_Service_ShoppingContent_AccountStatus extends Google_Collection +class Google_Service_ShoppingContent_AccountShipping extends Google_Collection { - protected $collection_key = 'dataQualityIssues'; + protected $collection_key = 'services'; protected $internal_gapi_mappings = array( ); public $accountId; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; + protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate'; + protected $carrierRatesDataType = 'array'; public $kind; + protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup'; + protected $locationGroupsDataType = 'array'; + protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable'; + protected $rateTablesDataType = 'array'; + protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService'; + protected $servicesDataType = 'array'; public function setAccountId($accountId) @@ -1235,13 +1591,13 @@ public function getAccountId() { return $this->accountId; } - public function setDataQualityIssues($dataQualityIssues) + public function setCarrierRates($carrierRates) { - $this->dataQualityIssues = $dataQualityIssues; + $this->carrierRates = $carrierRates; } - public function getDataQualityIssues() + public function getCarrierRates() { - return $this->dataQualityIssues; + return $this->carrierRates; } public function setKind($kind) { @@ -1251,22 +1607,189 @@ public function getKind() { return $this->kind; } + public function setLocationGroups($locationGroups) + { + $this->locationGroups = $locationGroups; + } + public function getLocationGroups() + { + return $this->locationGroups; + } + public function setRateTables($rateTables) + { + $this->rateTables = $rateTables; + } + public function getRateTables() + { + return $this->rateTables; + } + public function setServices($services) + { + $this->services = $services; + } + public function getServices() + { + return $this->services; + } } -class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection +class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model { - protected $collection_key = 'exampleItems'; + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $carrierService; + protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price'; + protected $modifierFlatRateDataType = ''; + public $modifierPercent; + public $name; + public $saleCountry; + public $shippingOrigin; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setCarrierService($carrierService) + { + $this->carrierService = $carrierService; + } + public function getCarrierService() + { + return $this->carrierService; + } + public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate) + { + $this->modifierFlatRate = $modifierFlatRate; + } + public function getModifierFlatRate() + { + return $this->modifierFlatRate; + } + public function setModifierPercent($modifierPercent) + { + $this->modifierPercent = $modifierPercent; + } + public function getModifierPercent() + { + return $this->modifierPercent; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } + public function setShippingOrigin($shippingOrigin) + { + $this->shippingOrigin = $shippingOrigin; + } + public function getShippingOrigin() + { + return $this->shippingOrigin; + } +} + +class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deliveryLocationGroup; + public $deliveryLocationId; + public $deliveryPostalCode; + protected $deliveryPostalCodeRangeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $deliveryPostalCodeRangeDataType = ''; + protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; + protected $priceMaxDataType = ''; + public $shippingLabel; + protected $weightMaxType = 'Google_Service_ShoppingContent_Weight'; + protected $weightMaxDataType = ''; + + + public function setDeliveryLocationGroup($deliveryLocationGroup) + { + $this->deliveryLocationGroup = $deliveryLocationGroup; + } + public function getDeliveryLocationGroup() + { + return $this->deliveryLocationGroup; + } + public function setDeliveryLocationId($deliveryLocationId) + { + $this->deliveryLocationId = $deliveryLocationId; + } + public function getDeliveryLocationId() + { + return $this->deliveryLocationId; + } + public function setDeliveryPostalCode($deliveryPostalCode) + { + $this->deliveryPostalCode = $deliveryPostalCode; + } + public function getDeliveryPostalCode() + { + return $this->deliveryPostalCode; + } + public function setDeliveryPostalCodeRange(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCodeRange) + { + $this->deliveryPostalCodeRange = $deliveryPostalCodeRange; + } + public function getDeliveryPostalCodeRange() + { + return $this->deliveryPostalCodeRange; + } + public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax) + { + $this->priceMax = $priceMax; + } + public function getPriceMax() + { + return $this->priceMax; + } + public function setShippingLabel($shippingLabel) + { + $this->shippingLabel = $shippingLabel; + } + public function getShippingLabel() + { + return $this->shippingLabel; + } + public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax) + { + $this->weightMax = $weightMax; + } + public function getWeightMax() + { + return $this->weightMax; + } +} + +class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection +{ + protected $collection_key = 'postalCodes'; protected $internal_gapi_mappings = array( ); public $country; - public $displayedValue; - protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; - protected $exampleItemsDataType = 'array'; - public $id; - public $lastChecked; - public $numItems; - public $severity; - public $submittedValue; + public $locationIds; + public $name; + protected $postalCodeRangesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $postalCodeRangesDataType = 'array'; + public $postalCodes; public function setCountry($country) @@ -1277,149 +1800,941 @@ public function getCountry() { return $this->country; } - public function setDisplayedValue($displayedValue) + public function setLocationIds($locationIds) + { + $this->locationIds = $locationIds; + } + public function getLocationIds() + { + return $this->locationIds; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPostalCodeRanges($postalCodeRanges) + { + $this->postalCodeRanges = $postalCodeRanges; + } + public function getPostalCodeRanges() + { + return $this->postalCodeRanges; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } +} + +class Google_Service_ShoppingContent_AccountShippingPostalCodeRange extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection +{ + protected $collection_key = 'content'; + protected $internal_gapi_mappings = array( + ); + protected $contentType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; + protected $contentDataType = 'array'; + public $name; + public $saleCountry; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; + protected $conditionDataType = ''; + protected $rateType = 'Google_Service_ShoppingContent_Price'; + protected $rateDataType = ''; + + + public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } + public function setRate(Google_Service_ShoppingContent_Price $rate) + { + $this->rate = $rate; + } + public function getRate() + { + return $this->rate; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; + protected $calculationMethodDataType = ''; + protected $costRuleTreeType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; + protected $costRuleTreeDataType = ''; + public $name; + public $saleCountry; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) + { + $this->calculationMethod = $calculationMethod; + } + public function getCalculationMethod() + { + return $this->calculationMethod; + } + public function setCostRuleTree(Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule $costRuleTree) + { + $this->costRuleTree = $costRuleTree; + } + public function getCostRuleTree() + { + return $this->costRuleTree; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrierRate; + public $excluded; + protected $flatRateType = 'Google_Service_ShoppingContent_Price'; + protected $flatRateDataType = ''; + public $percentageRate; + public $rateTable; + + + public function setCarrierRate($carrierRate) + { + $this->carrierRate = $carrierRate; + } + public function getCarrierRate() + { + return $this->carrierRate; + } + public function setExcluded($excluded) + { + $this->excluded = $excluded; + } + public function getExcluded() + { + return $this->excluded; + } + public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate) + { + $this->flatRate = $flatRate; + } + public function getFlatRate() + { + return $this->flatRate; + } + public function setPercentageRate($percentageRate) + { + $this->percentageRate = $percentageRate; + } + public function getPercentageRate() + { + return $this->percentageRate; + } + public function setRateTable($rateTable) + { + $this->rateTable = $rateTable; + } + public function getRateTable() + { + return $this->rateTable; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule extends Google_Collection +{ + protected $collection_key = 'children'; + protected $internal_gapi_mappings = array( + ); + protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; + protected $calculationMethodDataType = ''; + protected $childrenType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; + protected $childrenDataType = 'array'; + protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; + protected $conditionDataType = ''; + + + public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) + { + $this->calculationMethod = $calculationMethod; + } + public function getCalculationMethod() + { + return $this->calculationMethod; + } + public function setChildren($children) + { + $this->children = $children; + } + public function getChildren() + { + return $this->children; + } + public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } +} + +class Google_Service_ShoppingContent_AccountStatus extends Google_Collection +{ + protected $collection_key = 'dataQualityIssues'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setDataQualityIssues($dataQualityIssues) + { + $this->dataQualityIssues = $dataQualityIssues; + } + public function getDataQualityIssues() + { + return $this->dataQualityIssues; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection +{ + protected $collection_key = 'exampleItems'; + protected $internal_gapi_mappings = array( + ); + public $country; + public $displayedValue; + protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; + protected $exampleItemsDataType = 'array'; + public $id; + public $lastChecked; + public $numItems; + public $severity; + public $submittedValue; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDisplayedValue($displayedValue) + { + $this->displayedValue = $displayedValue; + } + public function getDisplayedValue() + { + return $this->displayedValue; + } + public function setExampleItems($exampleItems) + { + $this->exampleItems = $exampleItems; + } + public function getExampleItems() + { + return $this->exampleItems; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLastChecked($lastChecked) + { + $this->lastChecked = $lastChecked; + } + public function getLastChecked() + { + return $this->lastChecked; + } + public function setNumItems($numItems) + { + $this->numItems = $numItems; + } + public function getNumItems() + { + return $this->numItems; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + public function getSubmittedValue() + { + return $this->submittedValue; + } +} + +class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $itemId; + public $link; + public $submittedValue; + public $title; + public $valueOnLandingPage; + + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + public function getItemId() + { + return $this->itemId; + } + public function setLink($link) + { + $this->link = $link; + } + public function getLink() + { + return $this->link; + } + public function setSubmittedValue($submittedValue) + { + $this->submittedValue = $submittedValue; + } + public function getSubmittedValue() + { + return $this->submittedValue; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setValueOnLandingPage($valueOnLandingPage) + { + $this->valueOnLandingPage = $valueOnLandingPage; + } + public function getValueOnLandingPage() + { + return $this->valueOnLandingPage; + } +} + +class Google_Service_ShoppingContent_AccountTax extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $kind; + protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule'; + protected $rulesDataType = 'array'; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRules($rules) + { + $this->rules = $rules; + } + public function getRules() + { + return $this->rules; + } +} + +class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $country; + public $locationId; + public $ratePercent; + public $shippingTaxed; + public $useGlobalRate; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setRatePercent($ratePercent) + { + $this->ratePercent = $ratePercent; + } + public function getRatePercent() + { + return $this->ratePercent; + } + public function setShippingTaxed($shippingTaxed) + { + $this->shippingTaxed = $shippingTaxed; + } + public function getShippingTaxed() + { + return $this->shippingTaxed; + } + public function setUseGlobalRate($useGlobalRate) + { + $this->useGlobalRate = $useGlobalRate; + } + public function getUseGlobalRate() + { + return $this->useGlobalRate; + } +} + +class Google_Service_ShoppingContent_AccountUser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $admin; + public $emailAddress; + + + public function setAdmin($admin) + { + $this->admin = $admin; + } + public function getAdmin() + { + return $this->admin; + } + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + public function getEmailAddress() + { + return $this->emailAddress; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $accountId; + public $batchId; + public $merchantId; + public $method; + + + public function setAccount(Google_Service_ShoppingContent_Account $account) + { + $this->account = $account; + } + public function getAccount() + { + return $this->account; + } + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + + public function setAccount(Google_Service_ShoppingContent_Account $account) + { + $this->account = $account; + } + public function getAccount() + { + return $this->account; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Account'; + protected $resourcesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $accountShippingDataType = ''; + public $batchId; + public $merchantId; + public $method; + + + public function setAccountId($accountId) { - $this->displayedValue = $displayedValue; + $this->accountId = $accountId; } - public function getDisplayedValue() + public function getAccountId() { - return $this->displayedValue; + return $this->accountId; } - public function setExampleItems($exampleItems) + public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) { - $this->exampleItems = $exampleItems; + $this->accountShipping = $accountShipping; } - public function getExampleItems() + public function getAccountShipping() { - return $this->exampleItems; + return $this->accountShipping; } - public function setId($id) + public function setBatchId($batchId) { - $this->id = $id; + $this->batchId = $batchId; } - public function getId() + public function getBatchId() { - return $this->id; + return $this->batchId; } - public function setLastChecked($lastChecked) + public function setMerchantId($merchantId) { - $this->lastChecked = $lastChecked; + $this->merchantId = $merchantId; } - public function getLastChecked() + public function getMerchantId() { - return $this->lastChecked; + return $this->merchantId; } - public function setNumItems($numItems) + public function setMethod($method) { - $this->numItems = $numItems; + $this->method = $method; } - public function getNumItems() + public function getMethod() { - return $this->numItems; + return $this->method; } - public function setSeverity($severity) +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + + public function setEntries($entries) { - $this->severity = $severity; + $this->entries = $entries; } - public function getSeverity() + public function getEntries() { - return $this->severity; + return $this->entries; } - public function setSubmittedValue($submittedValue) + public function setKind($kind) { - $this->submittedValue = $submittedValue; + $this->kind = $kind; } - public function getSubmittedValue() + public function getKind() { - return $this->submittedValue; + return $this->kind; } } -class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model +class Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry extends Google_Model { protected $internal_gapi_mappings = array( ); - public $itemId; - public $link; - public $submittedValue; - public $title; - public $valueOnLandingPage; + protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $accountShippingDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - public function getItemId() - { - return $this->itemId; - } - public function setLink($link) + public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) { - $this->link = $link; + $this->accountShipping = $accountShipping; } - public function getLink() + public function getAccountShipping() { - return $this->link; + return $this->accountShipping; } - public function setSubmittedValue($submittedValue) + public function setBatchId($batchId) { - $this->submittedValue = $submittedValue; + $this->batchId = $batchId; } - public function getSubmittedValue() + public function getBatchId() { - return $this->submittedValue; + return $this->batchId; } - public function setTitle($title) + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { - $this->title = $title; + $this->errors = $errors; } - public function getTitle() + public function getErrors() { - return $this->title; + return $this->errors; } - public function setValueOnLandingPage($valueOnLandingPage) + public function setKind($kind) { - $this->valueOnLandingPage = $valueOnLandingPage; + $this->kind = $kind; } - public function getValueOnLandingPage() + public function getKind() { - return $this->valueOnLandingPage; + return $this->kind; } } -class Google_Service_ShoppingContent_AccountUser extends Google_Model +class Google_Service_ShoppingContent_AccountshippingListResponse extends Google_Collection { + protected $collection_key = 'resources'; protected $internal_gapi_mappings = array( ); - public $admin; - public $emailAddress; + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $resourcesDataType = 'array'; - public function setAdmin($admin) + public function setKind($kind) { - $this->admin = $admin; + $this->kind = $kind; } - public function getAdmin() + public function getKind() { - return $this->admin; + return $this->kind; } - public function setEmailAddress($emailAddress) + public function setNextPageToken($nextPageToken) { - $this->emailAddress = $emailAddress; + $this->nextPageToken = $nextPageToken; } - public function getEmailAddress() + public function getNextPageToken() { - return $this->emailAddress; + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; } } -class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; protected $internal_gapi_mappings = array( ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1433,26 +2748,16 @@ public function getEntries() } } -class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; public $accountId; public $batchId; public $merchantId; public $method; - public function setAccount(Google_Service_ShoppingContent_Account $account) - { - $this->account = $account; - } - public function getAccount() - { - return $this->account; - } public function setAccountId($accountId) { $this->accountId = $accountId; @@ -1487,12 +2792,12 @@ public function getMethod() } } -class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; protected $internal_gapi_mappings = array( ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1515,25 +2820,24 @@ public function getKind() } } -class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; + protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $accountStatusDataType = ''; public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; - public $kind; - public function setAccount(Google_Service_ShoppingContent_Account $account) + public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) { - $this->account = $account; + $this->accountStatus = $accountStatus; } - public function getAccount() + public function getAccountStatus() { - return $this->account; + return $this->accountStatus; } public function setBatchId($batchId) { @@ -1551,24 +2855,16 @@ public function getErrors() { return $this->errors; } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } } -class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection +class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection { protected $collection_key = 'resources'; protected $internal_gapi_mappings = array( ); public $kind; public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Account'; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; protected $resourcesDataType = 'array'; @@ -1598,12 +2894,12 @@ public function getResources() } } -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection +class Google_Service_ShoppingContent_AccounttaxCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; protected $internal_gapi_mappings = array( ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry'; protected $entriesDataType = 'array'; @@ -1617,11 +2913,13 @@ public function getEntries() } } -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model +class Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry extends Google_Model { protected $internal_gapi_mappings = array( ); public $accountId; + protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; + protected $accountTaxDataType = ''; public $batchId; public $merchantId; public $method; @@ -1635,6 +2933,14 @@ public function getAccountId() { return $this->accountId; } + public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) + { + $this->accountTax = $accountTax; + } + public function getAccountTax() + { + return $this->accountTax; + } public function setBatchId($batchId) { $this->batchId = $batchId; @@ -1661,12 +2967,12 @@ public function getMethod() } } -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection +class Google_Service_ShoppingContent_AccounttaxCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; protected $internal_gapi_mappings = array( ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; @@ -1689,24 +2995,25 @@ public function getKind() } } -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model +class Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; - protected $accountStatusDataType = ''; + protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; + protected $accountTaxDataType = ''; public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; + public $kind; - public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) + public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) { - $this->accountStatus = $accountStatus; + $this->accountTax = $accountTax; } - public function getAccountStatus() + public function getAccountTax() { - return $this->accountStatus; + return $this->accountTax; } public function setBatchId($batchId) { @@ -1724,16 +3031,24 @@ public function getErrors() { return $this->errors; } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } } -class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection +class Google_Service_ShoppingContent_AccounttaxListResponse extends Google_Collection { protected $collection_key = 'resources'; protected $internal_gapi_mappings = array( ); public $kind; public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountTax'; protected $resourcesDataType = 'array'; @@ -3670,16 +4985,27 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection protected $collection_key = 'destinationStatuses'; protected $internal_gapi_mappings = array( ); + public $creationDate; protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; protected $destinationStatusesDataType = 'array'; + public $googleExpirationDate; public $kind; + public $lastUpdateDate; public $link; public $productId; public $title; + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } public function setDataQualityIssues($dataQualityIssues) { $this->dataQualityIssues = $dataQualityIssues; @@ -3696,6 +5022,14 @@ public function getDestinationStatuses() { return $this->destinationStatuses; } + public function setGoogleExpirationDate($googleExpirationDate) + { + $this->googleExpirationDate = $googleExpirationDate; + } + public function getGoogleExpirationDate() + { + return $this->googleExpirationDate; + } public function setKind($kind) { $this->kind = $kind; @@ -3704,6 +5038,14 @@ public function getKind() { return $this->kind; } + public function setLastUpdateDate($lastUpdateDate) + { + $this->lastUpdateDate = $lastUpdateDate; + } + public function getLastUpdateDate() + { + return $this->lastUpdateDate; + } public function setLink($link) { $this->link = $link; @@ -4307,3 +5649,29 @@ public function getResources() return $this->resources; } } + +class Google_Service_ShoppingContent_Weight extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $unit; + public $value; + + + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} From e89d061b203d204c04254ae529ff6a2d8919f965 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 21 Jan 2015 03:17:12 -0800 Subject: [PATCH 0592/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 99 ++++++++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 8a42c1b45..6e6735215 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -93,7 +93,11 @@ public function __construct(Google_Client $client) '', array( 'methods' => array( - 'tokeninfo' => array( + 'getCertForOpenIdConnect' => array( + 'path' => 'oauth2/v2/certs', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'tokeninfo' => array( 'path' => 'oauth2/v2/tokeninfo', 'httpMethod' => 'POST', 'parameters' => array( @@ -111,6 +115,18 @@ public function __construct(Google_Client $client) ) ); } + /** + * (getCertForOpenIdConnect) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Oauth2_Jwk + */ + public function getCertForOpenIdConnect($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk"); + } /** * (tokeninfo) * @@ -194,6 +210,87 @@ public function get($optParams = array()) +class Google_Service_Oauth2_Jwk extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + protected $keysType = 'Google_Service_Oauth2_JwkKeys'; + protected $keysDataType = 'array'; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_Oauth2_JwkKeys extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alg; + public $e; + public $kid; + public $kty; + public $n; + public $use; + + + public function setAlg($alg) + { + $this->alg = $alg; + } + public function getAlg() + { + return $this->alg; + } + public function setE($e) + { + $this->e = $e; + } + public function getE() + { + return $this->e; + } + public function setKid($kid) + { + $this->kid = $kid; + } + public function getKid() + { + return $this->kid; + } + public function setKty($kty) + { + $this->kty = $kty; + } + public function getKty() + { + return $this->kty; + } + public function setN($n) + { + $this->n = $n; + } + public function getN() + { + return $this->n; + } + public function setUse($use) + { + $this->use = $use; + } + public function getUse() + { + return $this->use; + } +} + class Google_Service_Oauth2_Tokeninfo extends Google_Model { protected $internal_gapi_mappings = array( From a61a28db008224dba76ea295eb8f332c7a23d24f Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Wed, 21 Jan 2015 16:04:28 -0500 Subject: [PATCH 0593/1274] Initial Compute Engine credentials for #457. --- src/Google/Auth/ComputeEngine.php | 142 ++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/Google/Auth/ComputeEngine.php diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php new file mode 100644 index 000000000..dec39d3d4 --- /dev/null +++ b/src/Google/Auth/ComputeEngine.php @@ -0,0 +1,142 @@ + + */ +class Google_Auth_ComputeEngine extends Google_Auth_Abstract +{ + const METADATA_AUTH_URL = 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; + private $client; + private $token; + + public function __construct(Google_Client $client, $config = null) + { + $this->client = $client; + } + + /** + * Perform an authenticated / signed apiHttpRequest. + * This function takes the apiHttpRequest, calls apiAuth->sign on it + * (which can modify the request in what ever way fits the auth mechanism) + * and then calls apiCurlIO::makeRequest on the signed request + * + * @param Google_Http_Request $request + * @return Google_Http_Request The resulting HTTP response including the + * responseHttpCode, responseHeaders and responseBody. + */ + public function authenticatedRequest(Google_Http_Request $request) + { + $request = $this->sign($request); + return $this->client->getIo()->makeRequest($request); + } + + /** + * @param string $token + * @throws Google_Auth_Exception + */ + public function setAccessToken($token) + { + $token = json_decode($token, true); + if ($token == null) { + throw new Google_Auth_Exception('Could not json decode the token'); + } + if (! isset($token['access_token'])) { + throw new Google_Auth_Exception("Invalid token format"); + } + $token['created'] = time(); + $this->token = $token; + } + + public function getAccessToken() + { + return json_encode($this->token); + } + + /** + * Acquires a new access token from the compute engine metadata server. + * @throws Google_Auth_Exception + */ + public function acquireAccessToken(){ + $request = new Google_Http_Request( + self::METADATA_AUTH_URL, + 'GET', + array( + 'Metadata-Flavor' => 'Google' + ) + ); + $request->disableGzip(); + $response = $this->client->getIo()->makeRequest($request); + + if ($response->getResponseHttpCode() == 200) { + $this->setAccessToken($response->getResponseBody()); + $this->token['created'] = time(); + return $this->getAccessToken(); + } else { + throw new Google_Auth_Exception( + sprintf( + "Error fetching service account access token, message: '%s'", + $response->getResponseBody() + ), + $response->getResponseHttpCode() + ); + } + } + + /** + * Include an accessToken in a given apiHttpRequest. + * @param Google_Http_Request $request + * @return Google_Http_Request + * @throws Google_Auth_Exception + */ + public function sign(Google_Http_Request $request) + { + if($this->isAccessTokenExpired()) { + $this->acquireAccessToken(); + } + + $this->client->getLogger()->debug('Compute engine service account authentication'); + + $request->setRequestHeaders( + array('Authorization' => 'Bearer ' . $this->token['access_token']) + ); + + return $request; + } + + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() + { + if (!$this->token || !isset($this->token['created'])) { + return true; + } + + // If the token is set to expire in the next 30 seconds. + $expired = ($this->token['created'] + + ($this->token['expires_in'] - 30)) < time(); + + return $expired; + } +} From a00a5a42fc5f1ba212fe20c5c4a8862bcc64a5d1 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Thu, 22 Jan 2015 15:20:52 -0500 Subject: [PATCH 0594/1274] Adding tests for Compute Engine auth class --- .../testdata/ComputeEngineAuthTest.php | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 tests/general/testdata/ComputeEngineAuthTest.php diff --git a/tests/general/testdata/ComputeEngineAuthTest.php b/tests/general/testdata/ComputeEngineAuthTest.php new file mode 100644 index 000000000..755ab9f68 --- /dev/null +++ b/tests/general/testdata/ComputeEngineAuthTest.php @@ -0,0 +1,82 @@ + "ACCESS_TOKEN", + 'expires_in' => "12345" + ) + ); + $response = $this->getMock("Google_Http_Request", array(), array('')); + $response->expects($this->any()) + ->method('getResponseHttpCode') + ->will($this->returnValue(200)); + $response->expects($this->any()) + ->method('getResponseBody') + ->will($this->returnValue($response_data)); + $io = $this->getMock("Google_IO_Stream", array(), array($client)); + $client->setIo($io);$io->expects($this->any()) + ->method('makeRequest') + ->will( + $this->returnCallback( + function ($request) use ($response) { + return $response; + } + ) + ); + + /* Run method */ + $oauth = new Google_Auth_ComputeEngine($client); + $oauth->acquireAccessToken(); + $token = json_decode($oauth->getAccessToken(), true); + + /* Check results */ + $this->assertEquals($token['access_token'], "ACCESS_TOKEN"); + $this->assertEquals($token['expires_in'], "12345"); + $this->assertTrue($token['created'] > 0); + } + + public function testSign() + { + $client = new Google_Client(); + $oauth = new Google_Auth_ComputeEngine($client); + + /* Load mock access token */ + $oauth->setAccessToken(json_encode( + array( + 'access_token' => "ACCESS_TOKEN", + 'expires_in' => "12345" + ) + )); + + /* Sign a URL and verify auth header is correctly set */ + $req = new Google_Http_Request('http://localhost'); + $req = $oauth->sign($req); + $auth = $req->getRequestHeader('authorization'); + $this->assertEquals('Bearer ACCESS_TOKEN', $auth); + } +} From baa9157d2cf1d6ba8c9393d39b69d4722cf4d4ed Mon Sep 17 00:00:00 2001 From: Alin Marcu Date: Thu, 22 Jan 2015 23:18:37 +0200 Subject: [PATCH 0595/1274] Allow cURL options to be set through setClassConfig Will allow developers to set additional cURL options when needed. For example, googleapis.com resolves to both IPv4 and IPv6 addresses now. Some hosting providers don't have IPv6 support and a cURL request will fail when trying to connect to an IPv6 address. Being able to set cURL options, developers can handle this issue using CURLOPT_IPRESOLVE to force IPv4, IPv6 or Both. --- src/Google/IO/Curl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 926a1dbf4..548ed0ba7 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -80,7 +80,12 @@ public function executeRequest(Google_Http_Request $request) if ($request->canGzip()) { curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); } - + + $options = $this->client->getClassConfig('Google_IO_Curl', 'options'); + if (is_array($options)){ + $this->setOptions($options); + } + foreach ($this->options as $key => $var) { curl_setopt($curl, $key, $var); } From a77ad074ec22a6fb11188c6b253e95c3b24be34b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 23 Jan 2015 03:19:35 -0800 Subject: [PATCH 0596/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 10c1e4a44..de43c23d3 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -4786,6 +4786,7 @@ class Google_Service_Books_OffersItems extends Google_Collection protected $internal_gapi_mappings = array( ); public $artUrl; + public $gservicesKey; public $id; protected $itemsType = 'Google_Service_Books_OffersItemsItems'; protected $itemsDataType = 'array'; @@ -4799,6 +4800,14 @@ public function getArtUrl() { return $this->artUrl; } + public function setGservicesKey($gservicesKey) + { + $this->gservicesKey = $gservicesKey; + } + public function getGservicesKey() + { + return $this->gservicesKey; + } public function setId($id) { $this->id = $id; From 5d5152f26fde850f6497f171caf0d477f43c5376 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 23 Jan 2015 03:19:36 -0800 Subject: [PATCH 0597/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 1029 ++++++++++++++++++++++++++++-- 1 file changed, 984 insertions(+), 45 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 8e6307c82..9ba0861ec 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -56,6 +56,8 @@ class Google_Service_Analytics extends Google_Service public $management_accountUserLinks; public $management_accounts; public $management_customDataSources; + public $management_customDimensions; + public $management_customMetrics; public $management_dailyUploads; public $management_experiments; public $management_filters; @@ -399,6 +401,238 @@ public function __construct(Google_Client $client) ) ) ); + $this->management_customDimensions = new Google_Service_Analytics_ManagementCustomDimensions_Resource( + $this, + $this->serviceName, + 'customDimensions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDimensionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDimensionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDimensionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->management_customMetrics = new Google_Service_Analytics_ManagementCustomMetrics_Resource( + $this, + $this->serviceName, + 'customMetrics', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource( $this, $this->serviceName, @@ -2198,78 +2432,304 @@ public function listManagementCustomDataSources($accountId, $webPropertyId, $opt } } /** - * The "dailyUploads" collection of methods. + * The "customDimensions" collection of methods. * Typical usage is: * * $analyticsService = new Google_Service_Analytics(...); - * $dailyUploads = $analyticsService->dailyUploads; + * $customDimensions = $analyticsService->customDimensions; * */ -class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource +class Google_Service_Analytics_ManagementCustomDimensions_Resource extends Google_Service_Resource { /** - * Delete uploaded data for the given date. (dailyUploads.delete) + * Get a custom dimension to which the user has access. (customDimensions.get) * - * @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 string $accountId Account ID for the custom dimension to retrieve. + * @param string $webPropertyId Web property ID for the custom dimension to + * retrieve. + * @param string $customDimensionId The ID of the custom dimension to retrieve. * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomDimension */ - public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) + public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array()) { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension"); } /** - * List daily uploads to which the user has access. - * (dailyUploads.listManagementDailyUploads) + * Create a new custom dimension. (customDimensions.insert) * - * @param string $accountId Account Id for the daily uploads to retrieve. - * @param string $webPropertyId Web property Id for the daily uploads to - * retrieve. - * @param string $customDataSourceId Custom data source Id for daily uploads to - * retrieve. - * @param string $startDate Start date of the form YYYY-MM-DD. - * @param string $endDate End date of the form YYYY-MM-DD. + * @param string $accountId Account ID for the custom dimension to create. + * @param string $webPropertyId Web property ID for the custom dimension to + * create. + * @param Google_CustomDimension $postBody * @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 + * @return Google_Service_Analytics_CustomDimension */ - public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) + public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); + return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension"); } /** - * Update/Overwrite data for a custom data source. (dailyUploads.upload) + * Lists custom dimensions to which the user has access. + * (customDimensions.listManagementCustomDimensions) * - * @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 string $accountId Account ID for the custom dimensions to retrieve. + * @param string $webPropertyId Web property ID for the custom dimensions to + * retrieve. * @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. + * @opt_param int max-results The maximum number of custom dimensions 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_CustomDimensions + */ + public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions"); + } + + /** + * Updates an existing custom dimension. This method supports patch semantics. + * (customDimensions.patch) + * + * @param string $accountId Account ID for the custom dimension to update. + * @param string $webPropertyId Web property ID for the custom dimension to + * update. + * @param string $customDimensionId Custom dimension ID for the custom dimension + * to update. + * @param Google_CustomDimension $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom dimension being linked to a custom data source + * / data set. + * @return Google_Service_Analytics_CustomDimension + */ + public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension"); + } + + /** + * Updates an existing custom dimension. (customDimensions.update) + * + * @param string $accountId Account ID for the custom dimension to update. + * @param string $webPropertyId Web property ID for the custom dimension to + * update. + * @param string $customDimensionId Custom dimension ID for the custom dimension + * to update. + * @param Google_CustomDimension $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom dimension being linked to a custom data source + * / data set. + * @return Google_Service_Analytics_CustomDimension + */ + public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension"); + } +} +/** + * The "customMetrics" collection of methods. + * Typical usage is: + * + * $analyticsService = new Google_Service_Analytics(...); + * $customMetrics = $analyticsService->customMetrics; + * + */ +class Google_Service_Analytics_ManagementCustomMetrics_Resource extends Google_Service_Resource +{ + + /** + * Get a custom metric to which the user has access. (customMetrics.get) + * + * @param string $accountId Account ID for the custom metric to retrieve. + * @param string $webPropertyId Web property ID for the custom metric to + * retrieve. + * @param string $customMetricId The ID of the custom metric to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomMetric + */ + public function get($accountId, $webPropertyId, $customMetricId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Create a new custom metric. (customMetrics.insert) + * + * @param string $accountId Account ID for the custom metric to create. + * @param string $webPropertyId Web property ID for the custom dimension to + * create. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomMetric + */ + public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Lists custom metrics to which the user has access. + * (customMetrics.listManagementCustomMetrics) + * + * @param string $accountId Account ID for the custom metrics to retrieve. + * @param string $webPropertyId Web property ID for the custom metrics to + * retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results The maximum number of custom metrics 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_CustomMetrics + */ + public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics"); + } + + /** + * Updates an existing custom metric. This method supports patch semantics. + * (customMetrics.patch) + * + * @param string $accountId Account ID for the custom metric to update. + * @param string $webPropertyId Web property ID for the custom metric to update. + * @param string $customMetricId Custom metric ID for the custom metric to + * update. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom metric being linked to a custom data source / + * data set. + * @return Google_Service_Analytics_CustomMetric + */ + public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Updates an existing custom metric. (customMetrics.update) + * + * @param string $accountId Account ID for the custom metric to update. + * @param string $webPropertyId Web property ID for the custom metric to update. + * @param string $customMetricId Custom metric ID for the custom metric to + * update. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom metric being linked to a custom data source / + * data set. + * @return Google_Service_Analytics_CustomMetric + */ + public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric"); + } +} +/** + * The "dailyUploads" collection of methods. + * Typical usage is: + * + * $analyticsService = new Google_Service_Analytics(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * List daily uploads to which the user has access. + * (dailyUploads.listManagementDailyUploads) + * + * @param string $accountId Account Id for the daily uploads to retrieve. + * @param string $webPropertyId Web property Id for the daily uploads to + * retrieve. + * @param string $customDataSourceId Custom data source Id for daily uploads to + * retrieve. + * @param string $startDate Start date of the form YYYY-MM-DD. + * @param string $endDate End date of the form YYYY-MM-DD. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results The maximum number of custom data sources to + * include in this response. + * @opt_param int start-index A 1-based index of the first daily upload to + * retrieve. Use this parameter as a pagination mechanism along with the max- + * results parameter. + * @return Google_Service_Analytics_DailyUploads + */ + public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); + } + + /** + * Update/Overwrite data for a custom data source. (dailyUploads.upload) + * + * @param string $accountId Account Id associated with daily upload. + * @param string $webPropertyId Web property Id associated with daily upload. + * @param string $customDataSourceId Custom data source Id to which the data + * being uploaded belongs. + * @param string $date Date for which data is uploaded. Date should be formatted + * as YYYY-MM-DD. + * @param int $appendNumber Append number for this upload indexed from 1. + * @param string $type Type of data for this upload. + * @param array $optParams Optional parameters. + * + * @opt_param bool reset Reset/Overwrite all previous appends for this date and + * start over with this file as the first upload. * @return Google_Service_Analytics_DailyUploadAppend */ public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) @@ -4418,6 +4878,485 @@ public function getUsername() } } +class Google_Service_Analytics_CustomDimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $created; + public $id; + public $index; + public $kind; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_CustomDimensionParentLink'; + protected $parentLinkDataType = ''; + public $scope; + public $selfLink; + public $updated; + 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 setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentLink(Google_Service_Analytics_CustomDimensionParentLink $parentLink) + { + $this->parentLink = $parentLink; + } + public function getParentLink() + { + return $this->parentLink; + } + public function setScope($scope) + { + $this->scope = $scope; + } + public function getScope() + { + return $this->scope; + } + 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_CustomDimensionParentLink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CustomDimensions extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Analytics_CustomDimension'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setItemsPerPage($itemsPerPage) + { + $this->itemsPerPage = $itemsPerPage; + } + public function getItemsPerPage() + { + return $this->itemsPerPage; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextLink($nextLink) + { + $this->nextLink = $nextLink; + } + public function getNextLink() + { + return $this->nextLink; + } + public function setPreviousLink($previousLink) + { + $this->previousLink = $previousLink; + } + public function getPreviousLink() + { + return $this->previousLink; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + public function setTotalResults($totalResults) + { + $this->totalResults = $totalResults; + } + public function getTotalResults() + { + return $this->totalResults; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_Analytics_CustomMetric extends Google_Model +{ + protected $internal_gapi_mappings = array( + "maxValue" => "max_value", + "minValue" => "min_value", + ); + public $accountId; + public $active; + public $created; + public $id; + public $index; + public $kind; + public $maxValue; + public $minValue; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_CustomMetricParentLink'; + protected $parentLinkDataType = ''; + public $scope; + public $selfLink; + public $type; + public $updated; + 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 setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + 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 setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + public function getMaxValue() + { + return $this->maxValue; + } + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + public function getMinValue() + { + return $this->minValue; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentLink(Google_Service_Analytics_CustomMetricParentLink $parentLink) + { + $this->parentLink = $parentLink; + } + public function getParentLink() + { + return $this->parentLink; + } + public function setScope($scope) + { + $this->scope = $scope; + } + public function getScope() + { + return $this->scope; + } + 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 setWebPropertyId($webPropertyId) + { + $this->webPropertyId = $webPropertyId; + } + public function getWebPropertyId() + { + return $this->webPropertyId; + } +} + +class Google_Service_Analytics_CustomMetricParentLink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CustomMetrics extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Analytics_CustomMetric'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setItemsPerPage($itemsPerPage) + { + $this->itemsPerPage = $itemsPerPage; + } + public function getItemsPerPage() + { + return $this->itemsPerPage; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextLink($nextLink) + { + $this->nextLink = $nextLink; + } + public function getNextLink() + { + return $this->nextLink; + } + public function setPreviousLink($previousLink) + { + $this->previousLink = $previousLink; + } + public function getPreviousLink() + { + return $this->previousLink; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + public function setTotalResults($totalResults) + { + $this->totalResults = $totalResults; + } + public function getTotalResults() + { + return $this->totalResults; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + class Google_Service_Analytics_DailyUpload extends Google_Collection { protected $collection_key = 'recentChanges'; From e599e06be60a6ad3b9a34af3e343a600c8e63747 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 23 Jan 2015 03:19:36 -0800 Subject: [PATCH 0598/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 32e3cd201..d2cf0b101 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -116,6 +116,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'aggregator' => array( + 'location' => 'query', + 'type' => 'string', + ), 'labels' => array( 'location' => 'query', 'type' => 'string', @@ -125,6 +129,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'window' => array( + 'location' => 'query', + 'type' => 'string', + ), 'oldest' => array( 'location' => 'query', 'type' => 'string', @@ -167,6 +175,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'aggregator' => array( + 'location' => 'query', + 'type' => 'string', + ), 'labels' => array( 'location' => 'query', 'type' => 'string', @@ -176,6 +188,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'window' => array( + 'location' => 'query', + 'type' => 'string', + ), 'oldest' => array( 'location' => 'query', 'type' => 'string', @@ -269,6 +285,9 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * * If neither oldest nor timespan is specified, the default time interval will * be (youngest - 4 hours, youngest]. + * @opt_param string aggregator The aggregation function that will reduce the + * data points in each window to a single point. This parameter is only valid + * for non-cumulative metric types. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - @@ -278,6 +297,11 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string window The sampling window. At most one data point will be + * returned for each window in the requested time interval. This parameter is + * only valid for non-cumulative metric types. Units: - m: minute - h: hour - + * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: + * 2w3d is not allowed; you should use 17d instead. * @opt_param string oldest Start of the time interval (exclusive), which is * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is * specified, the default time interval will be (youngest - 4 hours, youngest] @@ -329,6 +353,9 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * * If neither oldest nor timespan is specified, the default time interval will * be (youngest - 4 hours, youngest]. + * @opt_param string aggregator The aggregation function that will reduce the + * data points in each window to a single point. This parameter is only valid + * for non-cumulative metric types. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - @@ -338,6 +365,11 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string window The sampling window. At most one data point will be + * returned for each window in the requested time interval. This parameter is + * only valid for non-cumulative metric types. Units: - m: minute - h: hour - + * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: + * 2w3d is not allowed; you should use 17d instead. * @opt_param string oldest Start of the time interval (exclusive), which is * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is * specified, the default time interval will be (youngest - 4 hours, youngest] From c7c812122dbf2e34b15a3a9b83bfae737f676c99 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 24 Jan 2015 03:20:40 -0800 Subject: [PATCH 0599/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 4223920ec..96f9c8bfb 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -234,6 +234,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'prefix' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -1140,6 +1144,8 @@ public function insert($project, Google_Service_Storage_Bucket $postBody, $optPa * * @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 buckets whose names begin with + * this prefix. * @opt_param string projection Set of properties to return. Defaults to noAcl. * @opt_param string maxResults Maximum number of buckets to return. * @return Google_Service_Storage_Buckets From 60c05d95ba7d5ef2b8ca50fbd5a46aca2cd6abdc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 28 Jan 2015 03:24:52 -0800 Subject: [PATCH 0600/1274] Updated Dataflow.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dataflow.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index e394698d6..92e6d48fa 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -2419,6 +2419,7 @@ class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection public $oauthScopes; protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; protected $parallelWorkerSettingsDataType = ''; + public $streamingWorkerMainClass; public $taskGroup; public $taskUser; public $tempStoragePrefix; @@ -2530,6 +2531,14 @@ public function getParallelWorkerSettings() { return $this->parallelWorkerSettings; } + public function setStreamingWorkerMainClass($streamingWorkerMainClass) + { + $this->streamingWorkerMainClass = $streamingWorkerMainClass; + } + public function getStreamingWorkerMainClass() + { + return $this->streamingWorkerMainClass; + } public function setTaskGroup($taskGroup) { $this->taskGroup = $taskGroup; From 8c540a298b60ea9ef0000bce5f59abea0ec0aac0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 29 Jan 2015 03:25:54 -0800 Subject: [PATCH 0601/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 499 +++++++++++++++++++++- 1 file changed, 477 insertions(+), 22 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index f7f36247a..e4b857b49 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -42,6 +42,7 @@ class Google_Service_Replicapoolupdater extends Google_Service "https://www.googleapis.com/auth/replicapool.readonly"; public $rollingUpdates; + public $zoneOperations; /** @@ -244,6 +245,36 @@ public function __construct(Google_Client $client) ) ) ); + $this->zoneOperations = new Google_Service_Replicapoolupdater_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -268,12 +299,13 @@ class Google_Service_Replicapoolupdater_RollingUpdates_Resource extends Google_S * resides. * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ public function cancel($project, $zone, $rollingUpdate, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); + return $this->call('cancel', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** @@ -301,13 +333,13 @@ public function get($project, $zone, $rollingUpdate, $optParams = array()) * resides. * @param Google_RollingUpdate $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_InsertResponse + * @return Google_Service_Replicapoolupdater_Operation */ public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse"); + return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** @@ -325,8 +357,8 @@ public function insert($project, $zone, Google_Service_Replicapoolupdater_Rollin * resources. * @opt_param string pageToken Optional. Tag returned by a previous list request * truncated by maxResults. Used to continue a previous list request. - * @opt_param string instanceGroupManager The name of the instance group - * manager. + * @opt_param string instanceGroupManager The name of the instance group manager + * used for filtering. * @return Google_Service_Replicapoolupdater_RollingUpdateList */ public function listRollingUpdates($project, $zone, $optParams = array()) @@ -371,12 +403,13 @@ public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams * resides. * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ public function pause($project, $zone, $rollingUpdate, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('pause', array($params)); + return $this->call('pause', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** @@ -388,12 +421,13 @@ public function pause($project, $zone, $rollingUpdate, $optParams = array()) * resides. * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ public function resume($project, $zone, $rollingUpdate, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('resume', array($params)); + return $this->call('resume', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** @@ -406,43 +440,66 @@ public function resume($project, $zone, $rollingUpdate, $optParams = array()) * resides. * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ public function rollback($project, $zone, $rollingUpdate, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('rollback', array($params)); + return $this->call('rollback', array($params), "Google_Service_Replicapoolupdater_Operation"); } } - - - -class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); + * $zoneOperations = $replicapoolupdaterService->zoneOperations; + * + */ +class Google_Service_Replicapoolupdater_ZoneOperations_Resource extends Google_Service_Resource { - protected $internal_gapi_mappings = array( - ); - public $rollingUpdate; - - public function setRollingUpdate($rollingUpdate) - { - $this->rollingUpdate = $rollingUpdate; - } - public function getRollingUpdate() + /** + * 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_Replicapoolupdater_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) { - return $this->rollingUpdate; + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation"); } } + + + class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $errorType = 'Google_Service_Replicapoolupdater_InstanceUpdateError'; + protected $errorDataType = ''; public $instance; public $status; + public function setError(Google_Service_Replicapoolupdater_InstanceUpdateError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } public function setInstance($instance) { $this->instance = $instance; @@ -461,6 +518,60 @@ public function getStatus() } } +class Google_Service_Replicapoolupdater_InstanceUpdateError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Replicapoolupdater_InstanceUpdateList extends Google_Collection { protected $collection_key = 'items'; @@ -507,13 +618,341 @@ public function getSelfLink() } } +class Google_Service_Replicapoolupdater_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Replicapoolupdater_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Replicapoolupdater_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_Replicapoolupdater_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Replicapoolupdater_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Replicapoolupdater_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Replicapoolupdater_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Replicapoolupdater_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Replicapoolupdater_RollingUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); public $actionType; public $creationTimestamp; + public $description; public $id; + public $instanceGroup; public $instanceGroupManager; public $instanceTemplate; public $kind; @@ -542,6 +981,14 @@ 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; @@ -550,6 +997,14 @@ public function getId() { return $this->id; } + public function setInstanceGroup($instanceGroup) + { + $this->instanceGroup = $instanceGroup; + } + public function getInstanceGroup() + { + return $this->instanceGroup; + } public function setInstanceGroupManager($instanceGroupManager) { $this->instanceGroupManager = $instanceGroupManager; From 152ac4cd8ddb9986967a55539465de6590944047 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 29 Jan 2015 03:25:54 -0800 Subject: [PATCH 0602/1274] Updated Dataflow.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dataflow.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index 92e6d48fa..e87a35f0f 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dataflow (v1beta3). + * Service definition for Dataflow (v1b4). * *

* Google Dataflow API.

@@ -50,8 +50,8 @@ class Google_Service_Dataflow extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dataflow/v1b3/projects/'; - $this->version = 'v1beta3'; + $this->servicePath = 'v1b3/projects/'; + $this->version = 'v1b4'; $this->serviceName = 'dataflow'; $this->v1b3_projects_jobs = new Google_Service_Dataflow_V1b3ProjectsJobs_Resource( From 6c46dda0b33765bd051d8fb9b25265b136d27f14 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 29 Jan 2015 03:25:55 -0800 Subject: [PATCH 0603/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 97c89d836..6f2b8ea0e 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -8993,6 +8993,8 @@ class Google_Service_YouTube_Video extends Google_Model public $kind; protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; protected $liveStreamingDetailsDataType = ''; + protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizationsDataType = 'map'; protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; protected $monetizationDetailsDataType = ''; protected $playerType = 'Google_Service_YouTube_VideoPlayer'; @@ -9079,6 +9081,14 @@ public function getLiveStreamingDetails() { return $this->liveStreamingDetails; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails) { $this->monetizationDetails = $monetizationDetails; @@ -9951,6 +9961,36 @@ public function getScheduledStartTime() } } +class Google_Service_YouTube_VideoLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model { protected $internal_gapi_mappings = array( @@ -10190,8 +10230,12 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection public $categoryId; public $channelId; public $channelTitle; + protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; + protected $defaultLanguageDataType = ''; public $description; public $liveBroadcastContent; + protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizedDataType = ''; public $publishedAt; public $tags; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -10223,6 +10267,14 @@ public function getChannelTitle() { return $this->channelTitle; } + public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -10239,6 +10291,14 @@ public function getLiveBroadcastContent() { return $this->liveBroadcastContent; } + public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; From f653533760c2eacd4bf16964dd8003b2c336f1f1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 30 Jan 2015 03:26:51 -0800 Subject: [PATCH 0604/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 373d0058b..91138af25 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -4256,9 +4256,15 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $salePriceEffectiveDate; protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; protected $shippingDataType = 'array'; + protected $shippingHeightType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingHeightDataType = ''; public $shippingLabel; + protected $shippingLengthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingLengthDataType = ''; protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; protected $shippingWeightDataType = ''; + protected $shippingWidthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingWidthDataType = ''; public $sizeSystem; public $sizeType; public $sizes; @@ -4659,6 +4665,14 @@ public function getShipping() { return $this->shipping; } + public function setShippingHeight(Google_Service_ShoppingContent_ProductShippingDimension $shippingHeight) + { + $this->shippingHeight = $shippingHeight; + } + public function getShippingHeight() + { + return $this->shippingHeight; + } public function setShippingLabel($shippingLabel) { $this->shippingLabel = $shippingLabel; @@ -4667,6 +4681,14 @@ public function getShippingLabel() { return $this->shippingLabel; } + public function setShippingLength(Google_Service_ShoppingContent_ProductShippingDimension $shippingLength) + { + $this->shippingLength = $shippingLength; + } + public function getShippingLength() + { + return $this->shippingLength; + } public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) { $this->shippingWeight = $shippingWeight; @@ -4675,6 +4697,14 @@ public function getShippingWeight() { return $this->shippingWeight; } + public function setShippingWidth(Google_Service_ShoppingContent_ProductShippingDimension $shippingWidth) + { + $this->shippingWidth = $shippingWidth; + } + public function getShippingWidth() + { + return $this->shippingWidth; + } public function setSizeSystem($sizeSystem) { $this->sizeSystem = $sizeSystem; @@ -4954,6 +4984,32 @@ public function getService() } } +class Google_Service_ShoppingContent_ProductShippingDimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $unit; + public $value; + + + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model { protected $internal_gapi_mappings = array( From 9408ef318990468a9b93477dcbc4c9360c9ebf96 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 30 Jan 2015 03:26:52 -0800 Subject: [PATCH 0605/1274] Updated DoubleClickBidManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DoubleClickBidManager.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 9fae00944..fdb3f1776 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -573,6 +573,7 @@ class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collecti public $googleCloudStoragePathForLatestReport; public $googleDrivePathForLatestReport; public $latestReportRunTimeMs; + public $locale; public $reportCount; public $running; public $sendNotification; @@ -620,6 +621,14 @@ public function getLatestReportRunTimeMs() { return $this->latestReportRunTimeMs; } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } public function setReportCount($reportCount) { $this->reportCount = $reportCount; From 8df4e40bae9ca57826bab6be5d8e6e125e915634 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 3 Feb 2015 03:30:31 -0800 Subject: [PATCH 0606/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 61eacf9d3..6f82e0e20 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -281,6 +281,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'startDate' => array( 'location' => 'query', 'type' => 'string', @@ -1119,6 +1124,7 @@ public function listComments($blogId, $postId, $optParams = array()) * @param string $blogId ID of the blog to fetch comments from. * @param array $optParams Optional parameters. * + * @opt_param string status * @opt_param string startDate Earliest date of comment to fetch, a date-time * with RFC 3339 formatting. * @opt_param string endDate Latest date of comment to fetch, a date-time with From c7695ebcf2517fc5c79a44510c81b9839d009da7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 3 Feb 2015 03:30:31 -0800 Subject: [PATCH 0607/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 484 ++++++++++++++-------------- 1 file changed, 241 insertions(+), 243 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index fdc138a09..7658c2d45 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -4053,18 +4053,18 @@ public function get($profileId, $id, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "user profile*2010" will - * return objects with names like "user profile June 2010", "user profile April - * 2010" or simply "user profile 2010". Most of the searches also add wildcards + * email. Wildcards (*) are allowed. For example, "user profile*2015" will + * return objects with names like "user profile June 2015", "user profile April + * 2015" or simply "user profile 2015". Most of the searches also add wildcards * implicitly at the start and the end of the search string. For example, a * search string of "user profile" will match objects with name "my user - * profile", "user profile 2010" or simply "user profile". + * profile", "user profile 2015" or simply "user profile". * @opt_param string subaccountId Select only user profiles with the specified * subaccount ID. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only user profiles with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string userRoleId Select only user profiles with the specified * user role ID. @@ -4145,15 +4145,15 @@ public function get($profileId, $id, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "account*2010" will return objects - * with names like "account June 2010", "account April 2010" or simply "account - * 2010". Most of the searches also add wildcards implicitly at the start and + * Wildcards (*) are allowed. For example, "account*2015" will return objects + * with names like "account June 2015", "account April 2015" or simply "account + * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of "account" will - * match objects with name "my account", "account 2010" or simply "account". - * @opt_param string sortField The field by which to sort the list. + * match objects with name "my account", "account 2015" or simply "account". + * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only accounts with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param bool active Select only active accounts. Don't set this field to @@ -4254,43 +4254,44 @@ public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $op * @opt_param bool archived Select only archived ads. * @opt_param string creativeOptimizationConfigurationIds Select only ads with * these creative optimization configuration IDs. - * @opt_param bool sslCompliant Select only ads that are ssl compliant. + * @opt_param bool sslCompliant Select only ads that are SSL-compliant. * @opt_param string sizeIds Select only ads with these size IDs. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string type Select only ads with these types. - * @opt_param bool sslRequired Select only ads that require ssl. + * @opt_param bool sslRequired Select only ads that require SSL. * @opt_param string creativeIds Select only ads with these creative IDs * assigned. * @opt_param int maxResults Maximum number of results to return. * @opt_param string creativeType Select only ads with the specified - * CreativeType. + * creativeType. * @opt_param string placementIds Select only ads with these placement IDs * assigned. * @opt_param bool active Select only active ads. - * @opt_param string compatibility Applicable when type is - * AD_SERVING_DEFAULT_AD. Select default ads with the specified compatibility. - * WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile - * devices for regular or interstitial ads respectively. APP and - * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to - * rendering in in-stream video ads developed with the VAST standard. + * @opt_param string compatibility Select default ads with the specified + * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and + * WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices + * for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are + * for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in- + * stream video ads developed with the VAST standard. * @opt_param string advertiserId Select only ads with this advertiser ID. * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "ad*2010" will return objects with - * names like "ad June 2010", "ad April 2010" or simply "ad 2010". Most of the + * Wildcards (*) are allowed. For example, "ad*2015" will return objects with + * names like "ad June 2015", "ad April 2015" or simply "ad 2015". Most of the * searches also add wildcards implicitly at the start and the end of the search * string. For example, a search string of "ad" will match objects with name "my - * ad", "ad 2010" or simply "ad". - * @opt_param string sortField The field by which to sort the list. + * ad", "ad 2015" or simply "ad". + * @opt_param string sortField Field by which to sort the list. * @opt_param string audienceSegmentIds Select only ads with these audience * segment IDs. * @opt_param string ids Select only ads with these IDs. * @opt_param string remarketingListIds Select only ads whose list targeting * expression use these remarketing list IDs. - * @opt_param bool dynamicClickTracker Applicable when type is - * AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, - * select static click trackers. Leave unset to select both. + * @opt_param bool dynamicClickTracker Select only dynamic click trackers. + * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic + * click trackers. If false, select static click trackers. Leave unset to select + * both. * @return Google_Service_Dfareporting_AdsListResponse */ public function listAds($profileId, $optParams = array()) @@ -4395,16 +4396,16 @@ public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $ * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2010" will return objects - * with names like "advertiser group June 2010", "advertiser group April 2010" - * or simply "advertiser group 2010". Most of the searches also add wildcards + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser group June 2015", "advertiser group April 2015" + * or simply "advertiser group 2015". Most of the searches also add wildcards * implicitly at the start and the end of the search string. For example, a * search string of "advertisergroup" will match objects with name "my - * advertisergroup", "advertisergroup 2010" or simply "advertisergroup". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified advertiser groups to retrieve. + * advertisergroup", "advertisergroup 2015" or simply "advertisergroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertiser groups with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse @@ -4497,29 +4498,30 @@ public function insert($profileId, Google_Service_Dfareporting_Advertiser $postB * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string status Specifies the status of retrieved advertisers. + * @opt_param string status Select only advertisers with the specified status. * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2010" will return objects - * with names like "advertiser June 2010", "advertiser April 2010" or simply - * "advertiser 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser June 2015", "advertiser April 2015" or simply + * "advertiser 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "advertiser" will match objects with name "my advertiser", "advertiser 2010" + * "advertiser" will match objects with name "my advertiser", "advertiser 2015" * or simply "advertiser". - * @opt_param string subaccountId Subaccount ID of advertisers to retrieve. - * @opt_param bool includeAdvertisersWithoutGroupsOnly If true, will return only - * advertisers which do not belong to any advertiser group. - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified advertisers to retrieve. + * @opt_param string subaccountId Select only advertisers with these subaccount + * IDs. + * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers + * which do not belong to any advertiser group. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertisers with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param bool onlyParent If true, will return only advertisers which use - * another advertiser's floodlight configuration. + * @opt_param bool onlyParent Select only advertisers which use another + * advertiser's floodlight configuration. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string floodlightConfigurationIds Set of floodlight configuration - * IDs of advertisers to retrieve. - * @opt_param string advertiserGroupIds Set of advertiser group IDs of - * advertisers to retrieve. + * @opt_param string floodlightConfigurationIds Select only advertisers with + * these floodlight configuration IDs. + * @opt_param string advertiserGroupIds Select only advertisers with these + * advertiser group IDs. * @return Google_Service_Dfareporting_AdvertisersListResponse */ public function listAdvertisers($profileId, $optParams = array()) @@ -4600,9 +4602,9 @@ class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends { /** - * Associates a creative with this campaign. This method creates a default ad - * with dimensions matching the creative in this campaign if such a default ad - * does not exist already. (campaignCreativeAssociations.insert) + * Associates a creative with the specified campaign. This method creates a + * default ad with dimensions matching the creative in the campaign if such a + * default ad does not exist already. (campaignCreativeAssociations.insert) * * @param string $profileId User profile ID associated with this request. * @param string $campaignId Campaign ID in this association. @@ -4618,14 +4620,14 @@ public function insert($profileId, $campaignId, Google_Service_Dfareporting_Camp } /** - * Retrieves the list of creative IDs associated with this campaign. + * Retrieves the list of creative IDs associated with the specified campaign. * (campaignCreativeAssociations.listCampaignCreativeAssociations) * * @param string $profileId User profile ID associated with this request. * @param string $campaignId Campaign ID in this association. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param int maxResults Maximum number of results to return. @@ -4670,7 +4672,7 @@ public function get($profileId, $id, $optParams = array()) * * @param string $profileId User profile ID associated with this request. * @param string $defaultLandingPageName Default landing page name for this new - * campaign. + * campaign. Must be less than 256 characters long. * @param string $defaultLandingPageUrl Default landing page URL for this new * campaign. * @param Google_Campaign $postBody @@ -4693,21 +4695,21 @@ public function insert($profileId, $defaultLandingPageName, $defaultLandingPageU * @opt_param bool archived Select only archived campaigns. Don't set this field * to select both archived and non-archived campaigns. * @opt_param string searchString Allows searching for campaigns by name or ID. - * Wildcards (*) are allowed. For example, "campaign*2010" will return campaigns - * with names like "campaign June 2010", "campaign April 2010" or simply - * "campaign 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns + * with names like "campaign June 2015", "campaign April 2015" or simply + * "campaign 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "campaign" will match campaigns with name "my campaign", "campaign 2010" or + * "campaign" will match campaigns with name "my campaign", "campaign 2015" or * simply "campaign". * @opt_param string subaccountId Select only campaigns that belong to this * subaccount. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only campaigns that belong to these * advertisers. * @opt_param string ids Select only campaigns with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string excludedIds Exclude campaigns with these IDs. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string advertiserGroupIds Select only campaigns whose advertisers * belong to these advertiser groups. @@ -4792,16 +4794,16 @@ public function get($profileId, $id, $optParams = array()) * * @opt_param string minChangeTime Select only change logs whose change time is * before the specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2014, in the - * America/New York time zone, the format is "2014-07-18T22:54:00-04:00". In + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In * other words, the year, month, day, the letter T, the hour (24-hour clock * system), minute, second, and then the time zone offset. * @opt_param string searchString Select only change logs whose object ID, user * name, old or new values match the search string. * @opt_param string maxChangeTime Select only change logs whose change time is * before the specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2014, in the - * America/New York time zone, the format is "2014-07-18T22:54:00-04:00". In + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In * other words, the year, month, day, the letter T, the hour (24-hour clock * system), minute, second, and then the time zone offset. * @opt_param string userProfileIds Select only change logs with these user @@ -4809,7 +4811,7 @@ public function get($profileId, $id, $optParams = array()) * @opt_param string ids Select only change logs with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string objectIds Select only change logs with these object IDs. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string action Select only change logs with the specified action. * @opt_param string objectType Select only change logs with the specified @@ -4841,11 +4843,11 @@ class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resourc * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string dartIds Return cities with these IDs. - * @opt_param string namePrefix Select cities with names starting with this + * @opt_param string dartIds Select only cities with these DART IDs. + * @opt_param string namePrefix Select only cities with names starting with this * prefix. - * @opt_param string regionDartIds Select cities from these regions. - * @opt_param string countryDartIds Select cities from these countries. + * @opt_param string regionDartIds Select only cities from these regions. + * @opt_param string countryDartIds Select only cities from these countries. * @return Google_Service_Dfareporting_CitiesListResponse */ public function listCities($profileId, $optParams = array()) @@ -4945,16 +4947,16 @@ public function insert($profileId, Google_Service_Dfareporting_ContentCategory $ * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "contentcategory*2010" will return - * objects with names like "contentcategory June 2010", "contentcategory April - * 2010" or simply "contentcategory 2010". Most of the searches also add + * Wildcards (*) are allowed. For example, "contentcategory*2015" will return + * objects with names like "contentcategory June 2015", "contentcategory April + * 2015" or simply "contentcategory 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "contentcategory" will match objects with name - * "my contentcategory", "contentcategory 2010" or simply "contentcategory". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified content categories to retrieve. + * "my contentcategory", "contentcategory 2015" or simply "contentcategory". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only content categories with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_ContentCategoriesListResponse @@ -5141,9 +5143,9 @@ public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting * * @opt_param string searchString Allows searching for creative field values by * their values. Wildcards (e.g. *) are not allowed. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only creative field values with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. @@ -5256,19 +5258,19 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeField $po * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for creative fields by name - * or ID. Wildcards (*) are allowed. For example, "creativefield*2010" will - * return creative fields with names like "creativefield June 2010", - * "creativefield April 2010" or simply "creativefield 2010". Most of the + * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will + * return creative fields with names like "creativefield June 2015", + * "creativefield April 2015" or simply "creativefield 2015". Most of the * searches also add wild-cards implicitly at the start and the end of the * search string. For example, a search string of "creativefield" will match - * creative fields with the name "my creativefield", "creativefield 2010" or + * creative fields with the name "my creativefield", "creativefield 2015" or * simply "creativefield". - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only creative fields that belong to * these advertisers. * @opt_param string ids Select only creative fields with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_CreativeFieldsListResponse @@ -5362,21 +5364,21 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $po * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for creative groups by name - * or ID. Wildcards (*) are allowed. For example, "creativegroup*2010" will - * return creative groups with names like "creativegroup June 2010", - * "creativegroup April 2010" or simply "creativegroup 2010". Most of the + * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will + * return creative groups with names like "creativegroup June 2015", + * "creativegroup April 2015" or simply "creativegroup 2015". Most of the * searches also add wild-cards implicitly at the start and the end of the * search string. For example, a search string of "creativegroup" will match - * creative groups with the name "my creativegroup", "creativegroup 2010" or + * creative groups with the name "my creativegroup", "creativegroup 2015" or * simply "creativegroup". - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only creative groups that belong to * these advertisers. * @opt_param int groupNumber Select only creative groups that belong to this * subgroup. * @opt_param int maxResults Maximum number of results to return. * @opt_param string ids Select only creative groups with these IDs. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_CreativeGroupsListResponse @@ -5468,36 +5470,35 @@ public function insert($profileId, Google_Service_Dfareporting_Creative $postBod * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string sizeIds Select only creatives with specified size. + * @opt_param string sizeIds Select only creatives with these size IDs. * @opt_param bool archived Select only archived creatives. Leave blank to * select archived and unarchived creatives. * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "creative*2010" will return objects - * with names like "creative June 2010", "creative April 2010" or simply - * "creative 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "creative*2015" will return objects + * with names like "creative June 2015", "creative April 2015" or simply + * "creative 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "creative" will match objects with name "my creative", "creative 2010" or + * "creative" will match objects with name "my creative", "creative 2015" or * simply "creative". - * @opt_param string campaignId Campaign ID of creatives to retrieve. - * @opt_param string sortField The field by which to sort the list. - * @opt_param string renderingIds Select only creatives with specified rendering + * @opt_param string campaignId Select only creatives with this campaign ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string renderingIds Select only creatives with these rendering * IDs. - * @opt_param string ids List of creative IDs. + * @opt_param string ids Select only creatives with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Advertiser ID. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string advertiserId Select only creatives with this advertiser ID. + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param string studioCreativeId Studio creative ID associated with DCM - * creatives. + * @opt_param string studioCreativeId Select only creatives corresponding to + * this Studio creative ID. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string companionCreativeIds Select only in-stream video creatives - * with specified companion IDs. + * with these companion IDs. * @opt_param bool active Select only active creatives. Leave blank to select * active and inactive creatives. - * @opt_param string creativeFieldIds Select only creatives with specified - * creative field IDs. - * @opt_param string types Select only creatives with specified type of - * creative. + * @opt_param string creativeFieldIds Select only creatives with these creative + * field IDs. + * @opt_param string types Select only creatives with these creative types. * @return Google_Service_Dfareporting_CreativesListResponse */ public function listCreatives($profileId, $optParams = array()) @@ -5606,20 +5607,19 @@ public function get($profileId, $id, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "directory site contact*2010" - * will return objects with names like "directory site contact June 2010", - * "directory site contact April 2010" or simply "directory site contact 2010". + * email. Wildcards (*) are allowed. For example, "directory site contact*2015" + * will return objects with names like "directory site contact June 2015", + * "directory site contact April 2015" or simply "directory site contact 2015". * Most of the searches also add wildcards implicitly at the start and the end * of the search string. For example, a search string of "directory site * contact" will match objects with name "my directory site contact", "directory - * site contact 2010" or simply "directory site contact". - * @opt_param string directorySiteIds Retrieve contacts of directory sites with - * this set of IDs. This is a required field. - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified directory site contacts to - * retrieve. + * site contact 2015" or simply "directory site contact". + * @opt_param string directorySiteIds Select only directory site contacts with + * these directory site IDs. This is a required field. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only directory site contacts with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse @@ -5665,31 +5665,31 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param bool acceptsInterstitialPlacements Select only sites that accept - * interstitial placements. This field be left blank. + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string searchString Allows searching for objects by name, ID or - * URL. Wildcards (*) are allowed. For example, "directory site*2010" will - * return objects with names like "directory site June 2010", "directory site - * April 2010" or simply "directory site 2010". Most of the searches also add + * URL. Wildcards (*) are allowed. For example, "directory site*2015" will + * return objects with names like "directory site June 2015", "directory site + * April 2015" or simply "directory site 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "directory site" will match objects with name "my - * directory site", "directory site 2010" or simply "directory site". - * @opt_param string countryId Country ID of directory sites to retrieve. - * @opt_param string sortField The field by which to sort the list. - * @opt_param bool acceptsInStreamVideoPlacements Select only sites that accept - * in-stream video placements. This field can be left blank. - * @opt_param string ids Set of IDs of specified directory sites to retrieve. + * directory site", "directory site 2015" or simply "directory site". + * @opt_param string countryId Select only directory sites with this country ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only directory sites with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites * that accept publisher paid placements. This field can be left blank. - * @opt_param string parentId Parent ID of directory sites to retrieve. - * @opt_param bool active Whether to retrieve active directory sites. Leave - * blank to retrieve both active and inactive directory sites. - * @opt_param string dfp_network_code DFP network code of directory sites to - * retrieve. + * @opt_param string parentId Select only directory sites with this parent ID. + * @opt_param bool active Select only active directory sites. Leave blank to + * retrieve both active and inactive directory sites. + * @opt_param string dfp_network_code Select only directory sites with this DFP + * network code. * @return Google_Service_Dfareporting_DirectorySitesListResponse */ public function listDirectorySites($profileId, $optParams = array()) @@ -5762,21 +5762,21 @@ public function insert($profileId, Google_Service_Dfareporting_EventTag $postBod * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "eventtag*2010" will return objects - * with names like "eventtag June 2010", "eventtag April 2010" or simply - * "eventtag 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects + * with names like "eventtag June 2015", "eventtag April 2015" or simply + * "eventtag 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "eventtag" will match objects with name "my eventtag", "eventtag 2010" or + * "eventtag" will match objects with name "my eventtag", "eventtag 2015" or * simply "eventtag". * @opt_param string campaignId Select only event tags that belong to this * campaign. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param bool enabled Select only enabled event tags. When definitionsOnly * is set to true, only the specified advertiser or campaign's event tags' * enabledByDefault field is examined. When definitionsOnly is set to false, the * specified ad or specified campaign's parent advertiser's or parent campaign's * event tags' enabledByDefault and status fields are examined as well. - * @opt_param string ids Set of IDs of specified event tags to retrieve. + * @opt_param string ids Select only event tags with these IDs. * @opt_param string advertiserId Select only event tags that belong to this * advertiser. * @opt_param string adId Select only event tags that belong to this ad. @@ -5960,38 +5960,38 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string floodlightActivityGroupIds Retrieve Floodlight activities - * with the specified Floodlight activity group IDs. + * @opt_param string floodlightActivityGroupIds Select only floodlight + * activities with the specified floodlight activity group IDs. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivity*2010" will return - * objects with names like "floodlightactivity June 2010", "floodlightactivity - * April 2010" or simply "floodlightactivity 2010". Most of the searches also + * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return + * objects with names like "floodlightactivity June 2015", "floodlightactivity + * April 2015" or simply "floodlightactivity 2015". Most of the searches also * add wildcards implicitly at the start and the end of the search string. For * example, a search string of "floodlightactivity" will match objects with name - * "my floodlightactivity activity", "floodlightactivity 2010" or simply + * "my floodlightactivity activity", "floodlightactivity 2015" or simply * "floodlightactivity". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string floodlightConfigurationId Retrieve Floodlight activities - * for the specified Floodlight configuration ID. Must specify either ids, + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activities + * for the specified floodlight configuration ID. Must specify either ids, * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Retrieve Floodlight activities with the specified IDs. - * Must specify either ids, advertiserId, or floodlightConfigurationId for a - * non-empty result. - * @opt_param string floodlightActivityGroupName Retrieve Floodlight activities - * with the specified Floodlight activity group name. - * @opt_param string advertiserId Retrieve Floodlight activities for the + * @opt_param string ids Select only floodlight activities with the specified + * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for + * a non-empty result. + * @opt_param string floodlightActivityGroupName Select only floodlight + * activities with the specified floodlight activity group name. + * @opt_param string advertiserId Select only floodlight activities for the * specified advertiser ID. Must specify either ids, advertiserId, or * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string tagString Retrieve Floodlight activities with the specified - * tag string. - * @opt_param string floodlightActivityGroupTagString Retrieve Floodlight - * activities with the specified Floodlight activity group tag string. - * @opt_param string floodlightActivityGroupType Retrieve Floodlight activities - * with the specified Floodlight activity group type. + * @opt_param string tagString Select only floodlight activities with the + * specified tag string. + * @opt_param string floodlightActivityGroupTagString Select only floodlight + * activities with the specified floodlight activity group tag string. + * @opt_param string floodlightActivityGroupType Select only floodlight + * activities with the specified floodlight activity group type. * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse */ public function listFloodlightActivities($profileId, $optParams = array()) @@ -6098,30 +6098,30 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2010" will - * return objects with names like "floodlightactivitygroup June 2010", - * "floodlightactivitygroup April 2010" or simply "floodlightactivitygroup - * 2010". Most of the searches also add wildcards implicitly at the start and + * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will + * return objects with names like "floodlightactivitygroup June 2015", + * "floodlightactivitygroup April 2015" or simply "floodlightactivitygroup + * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2010" or simply + * floodlightactivitygroup activity", "floodlightactivitygroup 2015" or simply * "floodlightactivitygroup". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string floodlightConfigurationId Retrieve Floodlight activity - * groups with the specified Floodlight configuration ID. Must specify either + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activity + * groups with the specified floodlight configuration ID. Must specify either * ids, advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Retrieve Floodlight activity groups with the specified - * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for - * a non-empty result. + * @opt_param string ids Select only floodlight activity groups with the + * specified IDs. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Retrieve Floodlight activity groups with the - * specified advertiser ID. Must specify either ids, advertiserId, or + * @opt_param string advertiserId Select only floodlight activity groups with + * the specified advertiser ID. Must specify either ids, advertiserId, or * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Retrieve Floodlight activity groups with the specified - * Floodlight activity group type. + * @opt_param string type Select only floodlight activity groups with the + * specified floodlight activity group type. * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse */ public function listFloodlightActivityGroups($profileId, $optParams = array()) @@ -6286,7 +6286,7 @@ public function get($profileId, $campaignId, $id, $optParams = array()) } /** - * Inserts a new landing page for this campaign. (landingPages.insert) + * Inserts a new landing page for the specified campaign. (landingPages.insert) * * @param string $profileId User profile ID associated with this request. * @param string $campaignId Landing page campaign ID. @@ -6302,7 +6302,7 @@ public function insert($profileId, $campaignId, Google_Service_Dfareporting_Land } /** - * Retrieves the list of landing pages for this campaign. + * Retrieves the list of landing pages for the specified campaign. * (landingPages.listLandingPages) * * @param string $profileId User profile ID associated with this request. @@ -6511,22 +6511,22 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $p * @opt_param bool archived Select only archived placements. Don't set this * field to select both archived and non-archived placements. * @opt_param string searchString Allows searching for placement groups by name - * or ID. Wildcards (*) are allowed. For example, "placement*2010" will return - * placement groups with names like "placement group June 2010", "placement - * group May 2010" or simply "placements 2010". Most of the searches also add + * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return + * placement groups with names like "placement group June 2015", "placement + * group May 2015" or simply "placements 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "placementgroup" will match placement groups with - * name "my placementgroup", "placementgroup 2010" or simply "placementgroup". + * name "my placementgroup", "placementgroup 2015" or simply "placementgroup". * @opt_param string contentCategoryIds Select only placement groups that are * associated with these content categories. * @opt_param string directorySiteIds Select only placement groups that are * associated with these directory sites. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only placement groups that belong to * these advertisers. * @opt_param string ids Select only placement groups with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string placementGroupType Select only placement groups belonging @@ -6646,18 +6646,17 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "placementstrategy*2010" will return - * objects with names like "placementstrategy June 2010", "placementstrategy - * April 2010" or simply "placementstrategy 2010". Most of the searches also add + * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return + * objects with names like "placementstrategy June 2015", "placementstrategy + * April 2015" or simply "placementstrategy 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "placementstrategy" will match objects with name - * "my placementstrategy", "placementstrategy 2010" or simply + * "my placementstrategy", "placementstrategy 2015" or simply * "placementstrategy". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified placement strategies to - * retrieve. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only placement strategies with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_PlacementStrategiesListResponse @@ -6775,17 +6774,17 @@ public function insert($profileId, Google_Service_Dfareporting_Placement $postBo * @opt_param bool archived Select only archived placements. Don't set this * field to select both archived and non-archived placements. * @opt_param string searchString Allows searching for placements by name or ID. - * Wildcards (*) are allowed. For example, "placement*2010" will return - * placements with names like "placement June 2010", "placement May 2010" or - * simply "placements 2010". Most of the searches also add wildcards implicitly + * Wildcards (*) are allowed. For example, "placement*2015" will return + * placements with names like "placement June 2015", "placement May 2015" or + * simply "placements 2015". Most of the searches also add wildcards implicitly * at the start and the end of the search string. For example, a search string * of "placement" will match placements with name "my placement", "placement - * 2010" or simply "placement". + * 2015" or simply "placement". * @opt_param string contentCategoryIds Select only placements that are * associated with these content categories. * @opt_param string directorySiteIds Select only placements that are associated * with these directory sites. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only placements that belong to these * advertisers. * @opt_param string paymentSource Select only placements with this payment @@ -6794,7 +6793,7 @@ public function insert($profileId, Google_Service_Dfareporting_Placement $postBo * @opt_param int maxResults Maximum number of results to return. * @opt_param string sizeIds Select only placements that are associated with * these sizes. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string compatibilities Select only placements that are associated * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering @@ -7182,31 +7181,32 @@ public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param bool acceptsInterstitialPlacements Select only sites that accept - * interstitial placements. + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string searchString Allows searching for objects by name, ID or - * keyName. Wildcards (*) are allowed. For example, "site*2010" will return - * objects with names like "site June 2010", "site April 2010" or simply "site - * 2010". Most of the searches also add wildcards implicitly at the start and + * keyName. Wildcards (*) are allowed. For example, "site*2015" will return + * objects with names like "site June 2015", "site April 2015" or simply "site + * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of "site" will - * match objects with name "my site", "site 2010" or simply "site". - * @opt_param string subaccountId Subaccount ID of sites to retrieve. - * @opt_param string directorySiteIds Directory site IDs of sites to retrieve. - * @opt_param bool acceptsInStreamVideoPlacements Select only sites that accept - * in-stream video placements. - * @opt_param string ids Set of IDs of specified sites to retrieve. + * match objects with name "my site", "site 2015" or simply "site". + * @opt_param string subaccountId Select only sites with this subaccount ID. + * @opt_param string directorySiteIds Select only sites with these directory + * site IDs. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only sites with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept * publisher paid placements. - * @opt_param string sortField The field by which to sort the list. + * @opt_param string sortField Field by which to sort the list. * @opt_param bool adWordsSite Select only AdWords sites. * @opt_param bool unmappedSite Select only sites that have not been mapped to a * directory site. * @opt_param bool approved Select only approved sites. - * @opt_param string campaignIds Campaign IDs of sites to retrieve. + * @opt_param string campaignIds Select only sites with these campaign IDs. * @return Google_Service_Dfareporting_SitesListResponse */ public function listSites($profileId, $optParams = array()) @@ -7295,11 +7295,10 @@ public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param bool iabStandard Whether only IAB standard sizes should be - * retrieved. - * @opt_param int width Width of sizes to retrieve. - * @opt_param string ids Set of IDs of specified sizes to retrieve. - * @opt_param int height Height of sizes to retrieve. + * @opt_param bool iabStandard Select only IAB standard sizes. + * @opt_param int width Select only sizes with this width. + * @opt_param string ids Select only sizes with these IDs. + * @opt_param int height Select only sizes with this height. * @return Google_Service_Dfareporting_SizesListResponse */ public function listSizes($profileId, $optParams = array()) @@ -7358,16 +7357,16 @@ public function insert($profileId, Google_Service_Dfareporting_Subaccount $postB * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "subaccount*2010" will return objects - * with names like "subaccount June 2010", "subaccount April 2010" or simply - * "subaccount 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects + * with names like "subaccount June 2015", "subaccount April 2015" or simply + * "subaccount 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "subaccount" will match objects with name "my subaccount", "subaccount 2010" + * "subaccount" will match objects with name "my subaccount", "subaccount 2015" * or simply "subaccount". - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids The set of IDs of the subaccounts to retrieve. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only subaccounts with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_SubaccountsListResponse @@ -7526,8 +7525,7 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string ids Set of IDs of specified user role permissions to - * retrieve. + * @opt_param string ids Select only user role permissions with these IDs. * @return Google_Service_Dfareporting_UserRolePermissionsListResponse */ public function listUserRolePermissions($profileId, $optParams = array()) @@ -7600,22 +7598,22 @@ public function insert($profileId, Google_Service_Dfareporting_UserRole $postBod * @param array $optParams Optional parameters. * * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "userrole*2010" will return objects - * with names like "userrole June 2010", "userrole April 2010" or simply - * "userrole 2010". Most of the searches also add wildcards implicitly at the + * Wildcards (*) are allowed. For example, "userrole*2015" will return objects + * with names like "userrole June 2015", "userrole April 2015" or simply + * "userrole 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "userrole" will match objects with name "my userrole", "userrole 2010" or + * "userrole" will match objects with name "my userrole", "userrole 2015" or * simply "userrole". * @opt_param string subaccountId Select only user roles that belong to this * subaccount. - * @opt_param string sortField The field by which to sort the list. - * @opt_param string ids Set of IDs of specified user roles to retrieve. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only user roles with the specified IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextPageToken from the previous + * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool accountUserRoleOnly If true, select only account level user - * roles not associated with any specific subaccount. + * @opt_param bool accountUserRoleOnly Select only account level user roles not + * associated with any specific subaccount. * @return Google_Service_Dfareporting_UserRolesListResponse */ public function listUserRoles($profileId, $optParams = array()) From f6f8d7460e90bce1e0af9337a5dcb1f1dc02ff1f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 5 Feb 2015 03:32:28 -0800 Subject: [PATCH 0608/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 18713213a..45b7fd219 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -33,13 +33,13 @@ class Google_Service_Appsactivity extends Google_Service /** View the activity history of your Google Apps. */ const ACTIVITY = "https://www.googleapis.com/auth/activity"; - /** View and manage the files and documents in your Google Drive. */ + /** View and manage the files in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; - /** View metadata for files and documents in your Google Drive. */ + /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ + /** View the files in your Google Drive. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; From 0875bb7323005703e4fc91924cdcfc660810d0b6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 5 Feb 2015 03:32:29 -0800 Subject: [PATCH 0609/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 474c146d2..457b3e72a 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -30,7 +30,7 @@ */ class Google_Service_Drive extends Google_Service { - /** View and manage the files and documents in your Google Drive. */ + /** View and manage the files in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage its own configuration data in your Google Drive. */ @@ -42,10 +42,10 @@ class Google_Service_Drive extends Google_Service /** View and manage Google Drive files that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; - /** View metadata for files and documents in your Google Drive. */ + /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ + /** View the files in your Google Drive. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; /** Modify your Google Apps Script scripts' behavior. */ From 2b097c27c39bb9e88b99e781c1b7ad052be49ea5 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 5 Feb 2015 12:20:19 -0800 Subject: [PATCH 0610/1274] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 7508aeb52..b45b86d45 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ See the examples/ directory for examples of the key client features. ``` +### Service Specific Examples ### + +YouTube: https://github.com/youtube/api-samples/tree/master/php + ## Frequently Asked Questions ## ### What do I do if something isn't working? ### @@ -54,6 +58,10 @@ If there is a specific bug with the library, please file a issue in the Github i We accept contributions via Github Pull Requests, but all contributors need to be covered by the standard Google Contributor License Agreement. You can find links, and more instructions, in the documentation: https://developers.google.com/api-client-library/php/contribute +### I want an example of X! ### + +If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! + ### Why do you still support 5.2? ### When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: http://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible. @@ -72,6 +80,10 @@ $opt_params = array( ); ``` +## Notes For Distributors ## + +To avoid clashes with the autoloader, its best to update the function inside autoload.php to `google_api_php_client_autoload_MyProject`. + ## Code Quality ## Copy the ruleset.xml in style/ into a new directory named GAPI/ in your From 3990db930cb55272eee9c43fbbc2312cb809a64c Mon Sep 17 00:00:00 2001 From: Alin Marcu Date: Thu, 5 Feb 2015 22:23:02 +0200 Subject: [PATCH 0611/1274] Update Curl.php --- src/Google/IO/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 548ed0ba7..f464fc44e 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -82,7 +82,7 @@ public function executeRequest(Google_Http_Request $request) } $options = $this->client->getClassConfig('Google_IO_Curl', 'options'); - if (is_array($options)){ + if (is_array($options)) { $this->setOptions($options); } From f0e642183355ed744da441a53a124bd5d156c16d Mon Sep 17 00:00:00 2001 From: Alin Marcu Date: Thu, 5 Feb 2015 22:42:04 +0200 Subject: [PATCH 0612/1274] Update Curl.php --- src/Google/IO/Curl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index f464fc44e..9c06bb8a0 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -82,8 +82,8 @@ public function executeRequest(Google_Http_Request $request) } $options = $this->client->getClassConfig('Google_IO_Curl', 'options'); - if (is_array($options)) { - $this->setOptions($options); + if (is_array($options)) { + $this->setOptions($options); } foreach ($this->options as $key => $var) { From 55fa0975ab02ba9cd212343679426fc3c184e719 Mon Sep 17 00:00:00 2001 From: Kyle Farris Date: Thu, 5 Feb 2015 16:15:55 -0500 Subject: [PATCH 0613/1274] flock() not getting file handle all the time Removed the assumption of successful file handle acquisition while trying obtain a lock on a cache file. This has caused the following errors to pop up in my logs: `flock() expects parameter 1 to be resource, boolean given` In other words we shouldn't try and get a lock on a file we can't open. I suppose the eventual solution would be to find why the file can't be opened in the first place, but, this only happens occasionally so it might be some kind of race condition or something. --- src/Google/Cache/File.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index e4c99ad0c..4020cb22c 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -170,6 +170,13 @@ private function acquireLock($type, $storageFile) { $mode = $type == LOCK_EX ? "w" : "r"; $this->fh = fopen($storageFile, $mode); + if (!$this->fh) { + $this->client->getLogger()->error( + 'Failed to open file during lock acquisition', + array('file' => $storageFile) + ); + return false; + } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { // Sleep for 10ms. From 43b5d2382b1b0e60aa44c2debf343bca796a6195 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Feb 2015 03:33:46 -0800 Subject: [PATCH 0614/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index de43c23d3..ab4dad7f6 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -854,6 +854,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'reason' => array( + 'location' => 'query', + 'type' => 'string', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -2100,6 +2104,8 @@ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = arra * @param string $volumeId ID of volume to remove. * @param array $optParams Optional parameters. * + * @opt_param string reason The reason for which the book is removed from the + * library. * @opt_param string source String to identify the originator of this request. */ public function removeVolume($shelf, $volumeId, $optParams = array()) @@ -6126,6 +6132,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $publisher; public $ratingsCount; public $readingModes; + public $samplePageCount; public $subtitle; public $title; @@ -6290,6 +6297,14 @@ public function getReadingModes() { return $this->readingModes; } + public function setSamplePageCount($samplePageCount) + { + $this->samplePageCount = $samplePageCount; + } + public function getSamplePageCount() + { + return $this->samplePageCount; + } public function setSubtitle($subtitle) { $this->subtitle = $subtitle; From b71311044e7638eaf8d8b8f455869dadb56535ee Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Feb 2015 03:33:47 -0800 Subject: [PATCH 0615/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index b309f1def..dfef858ca 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -30,6 +30,9 @@ */ class Google_Service_Compute extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Compute Engine resources. */ const COMPUTE = "https://www.googleapis.com/auth/compute"; From b18a39cdccf7247a3888e19129121b78cf591521 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Feb 2015 03:33:47 -0800 Subject: [PATCH 0616/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 36e868db3..d7225c2c4 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -4541,6 +4541,7 @@ class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collecti protected $internal_gapi_mappings = array( ); public $accessions; + public $assemblyId; public $md5checksums; public $pageSize; public $pageToken; @@ -4554,6 +4555,14 @@ public function getAccessions() { return $this->accessions; } + public function setAssemblyId($assemblyId) + { + $this->assemblyId = $assemblyId; + } + public function getAssemblyId() + { + return $this->assemblyId; + } public function setMd5checksums($md5checksums) { $this->md5checksums = $md5checksums; From bf616abec5c34d1ba04962141893ca0576826a1a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Feb 2015 03:33:47 -0800 Subject: [PATCH 0617/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 1779 ++++++++++++++++++++----------- 1 file changed, 1153 insertions(+), 626 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 0d1bd4872..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -16,7 +16,7 @@ */ /** - * Service definition for SQLAdmin (v1beta3). + * Service definition for SQLAdmin (v1beta4). * *

* API for Cloud SQL database instance management.

@@ -38,11 +38,13 @@ class Google_Service_SQLAdmin extends Google_Service "https://www.googleapis.com/auth/sqlservice.admin"; public $backupRuns; + public $databases; public $flags; public $instances; public $operations; public $sslCerts; public $tiers; + public $users; /** @@ -53,8 +55,8 @@ class Google_Service_SQLAdmin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'sql/v1beta3/'; - $this->version = 'v1beta3'; + $this->servicePath = 'sql/v1beta4/'; + $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( @@ -64,7 +66,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -77,19 +79,102 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->databases = new Google_Service_SQLAdmin_Databases_Resource( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'path' => 'projects/{project}/instances/{instance}/databases', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -102,18 +187,45 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( - 'location' => 'query', + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ), @@ -141,7 +253,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'clone' => array( - 'path' => 'projects/{project}/instances/clone', + 'path' => 'projects/{project}/instances/{instance}/clone', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -149,6 +261,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'delete' => array( 'path' => 'projects/{project}/instances/{instance}', @@ -312,19 +429,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( - 'location' => 'query', + ), + ),'startReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/startReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setRootPassword' => array( - 'path' => 'projects/{project}/instances/{instance}/setRootPassword', + ),'stopReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/stopReplica', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -364,7 +486,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', + 'path' => 'projects/{project}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -372,11 +494,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'operation' => array( 'location' => 'path', 'type' => 'string', @@ -384,7 +501,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/operations', + 'path' => 'projects/{project}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -393,7 +510,7 @@ public function __construct(Google_Client $client) 'required' => true, ), 'instance' => array( - 'location' => 'path', + 'location' => 'query', 'type' => 'string', 'required' => true, ), @@ -510,6 +627,96 @@ public function __construct(Google_Client $client) ) ) ); + $this->users = new Google_Service_SQLAdmin_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -526,120 +733,239 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc { /** - * Retrieves information about a specified backup run for a Cloud SQL instance. + * Retrieves a resource containing information about a backup run. * (backupRuns.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. + * @param string $id The ID of this Backup Run. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ - public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) + public function get($project, $instance, $id, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array('project' => $project, 'instance' => $instance, 'id' => $id); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); } /** - * Lists all backup runs associated with a Cloud SQL instance. + * Lists all backup runs associated with a given instance and configuration in + * the reverse chronological order of the enqueued time. * (backupRuns.listBackupRuns) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of backup runs per response. * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. - * @opt_param int maxResults Maximum number of backup runs per response. * @return Google_Service_SQLAdmin_BackupRunsListResponse */ - public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) + public function listBackupRuns($project, $instance, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); + $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); } } /** - * The "flags" collection of methods. + * The "databases" collection of methods. * Typical usage is: * * $sqladminService = new Google_Service_SQLAdmin(...); - * $flags = $sqladminService->flags; + * $databases = $sqladminService->databases; * */ -class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource +class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource { /** - * Lists all database flags that can be set for Google Cloud SQL instances. - * (flags.listFlags) + * Deletes a resource containing information about a database inside a Cloud SQL + * instance. (databases.delete) * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be deleted in the instance. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_FlagsListResponse + * @return Google_Service_SQLAdmin_Operation */ - public function listFlags($optParams = array()) + public function delete($project, $instance, $database, $optParams = array()) { - $params = array(); + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $instances = $sqladminService->instances; - * - */ -class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource -{ /** - * Creates a Cloud SQL instance as a clone of a source instance. - * (instances.cloneInstances) + * Retrieves a resource containing information about a database inside a Cloud + * SQL instance. (databases.get) * - * @param string $project Project ID of the source as well as the clone Cloud - * SQL instance. - * @param Google_InstancesCloneRequest $postBody + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database in the instance. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesCloneResponse + * @return Google_Service_SQLAdmin_Database */ - public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) + public function get($project, $instance, $database, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse"); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); } /** - * Deletes a Cloud SQL instance. (instances.delete) + * Inserts a resource containing information about a database inside a Cloud SQL + * instance. (databases.insert) * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the * project ID. + * @param Google_Database $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesDeleteResponse + * @return Google_Service_SQLAdmin_Operation */ - public function delete($project, $instance, $optParams = array()) + public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists databases in the specified Cloud SQL instance. + * (databases.listDatabases) + * + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_DatabasesListResponse + */ + public function listDatabases($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. This method supports patch semantics. (databases.patch) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. (databases.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + +/** + * The "flags" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $flags = $sqladminService->flags; + * + */ +class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource +{ + + /** + * List all available database flags for Google Cloud SQL instances. + * (flags.listFlags) + * + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_FlagsListResponse + */ + public function listFlags($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); + } +} + +/** + * The "instances" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $instances = $sqladminService->instances; + * + */ +class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource +{ + + /** + * Creates a Cloud SQL instance as a clone of the source instance. + * (instances.cloneInstances) + * + * @param string $project Project ID of the source as well as the clone Cloud + * SQL instance. + * @param string $instance The ID of the Cloud SQL instance to be cloned + * (source). This does not include the project ID. + * @param Google_InstancesCloneRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Deletes a Cloud SQL instance. (instances.delete) + * + * @param string $project Project ID of the project that contains the instance + * to be deleted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse"); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -652,17 +978,18 @@ public function delete($project, $instance, $optParams = array()) * project ID. * @param Google_InstancesExportRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesExportResponse + * @return Google_Service_SQLAdmin_Operation */ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); + return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Retrieves information about a Cloud SQL instance. (instances.get) + * Retrieves a resource containing information about a Cloud SQL instance. + * (instances.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Database instance ID. This does not include the @@ -678,21 +1005,21 @@ public function get($project, $instance, $optParams = array()) } /** - * Imports data into a Cloud SQL instance from a MySQL dump file stored in a - * Google Cloud Storage bucket. (instances.import) + * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + * Storage. (instances.import) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param Google_InstancesImportRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesImportResponse + * @return Google_Service_SQLAdmin_Operation */ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse"); + return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -702,18 +1029,18 @@ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImp * Cloud SQL instances should belong. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesInsertResponse + * @return Google_Service_SQLAdmin_Operation */ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Lists instances for a given project, in alphabetical order by instance name. - * (instances.listInstances) + * Lists instances under a given project in the alphabetical order of the + * instance name. (instances.listInstances) * * @param string $project Project ID of the project for which to list Cloud SQL * instances. @@ -733,7 +1060,9 @@ public function listInstances($project, $optParams = array()) } /** - * Updates the settings of a Cloud SQL instance. This method supports patch + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch.. This method supports patch * semantics. (instances.patch) * * @param string $project Project ID of the project that contains the instance. @@ -741,13 +1070,13 @@ public function listInstances($project, $optParams = array()) * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse + * @return Google_Service_SQLAdmin_Operation */ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -757,30 +1086,32 @@ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInsta * @param string $project ID of the project that contains the read replica. * @param string $instance Cloud SQL read replica instance name. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesPromoteReplicaResponse + * @return Google_Service_SQLAdmin_Operation */ public function promoteReplica($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_InstancesPromoteReplicaResponse"); + return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); } /** * Deletes all client certificates and generates a new server SSL certificate - * for a Cloud SQL instance. (instances.resetSslConfig) + * for the instance. The changes will not take effect until the instance is + * restarted. Existing instances without a server certificate will need to call + * this once to set a server certificate. (instances.resetSslConfig) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse + * @return Google_Service_SQLAdmin_Operation */ public function resetSslConfig($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); + return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -791,13 +1122,13 @@ public function resetSslConfig($project, $instance, $optParams = array()) * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestartResponse + * @return Google_Service_SQLAdmin_Operation */ public function restart($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse"); + return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -806,55 +1137,64 @@ public function restart($project, $instance, $optParams = array()) * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration The identifier of the backup - * configuration. This gets generated automatically when a backup configuration - * is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. + * @param Google_InstancesRestoreBackupRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse + * @return Google_Service_SQLAdmin_Operation */ - public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) + public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); + return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Sets the password for the root user of the specified Cloud SQL instance. - * (instances.setRootPassword) + * Starts the replication in the read replica instance. (instances.startReplica) * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstanceSetRootPasswordRequest $postBody + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse + * @return Google_Service_SQLAdmin_Operation */ - public function setRootPassword($project, $instance, Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array()) + public function startReplica($project, $instance, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Stops the replication in the read replica instance. (instances.stopReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function stopReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); + return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Updates the settings of a Cloud SQL instance. (instances.update) + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch. (instances.update) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse + * @return Google_Service_SQLAdmin_Operation */ public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); } } @@ -870,25 +1210,24 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc { /** - * Retrieves information about a specific operation that was performed on a - * Cloud SQL instance. (operations.get) + * Retrieves an instance operation that has been performed on an instance. + * (operations.get) * * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. * @param string $operation Instance operation ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstanceOperation + * @return Google_Service_SQLAdmin_Operation */ - public function get($project, $instance, $operation, $optParams = array()) + public function get($project, $operation, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); + $params = array('project' => $project, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Lists all operations that have been performed on a Cloud SQL instance. + * Lists all instance operations that have been performed on the given Cloud SQL + * instance in the reverse chronological order of the start time. * (operations.listOperations) * * @param string $project Project ID of the project that contains the instance. @@ -921,7 +1260,8 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource { /** - * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete) + * Deletes the SSL certificate. The change will not take effect until the + * instance is restarted. (sslCerts.delete) * * @param string $project Project ID of the project that contains the instance * to be deleted. @@ -929,18 +1269,19 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource * project ID. * @param string $sha1Fingerprint Sha1 FingerPrint. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsDeleteResponse + * @return Google_Service_SQLAdmin_Operation */ public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. - * (sslCerts.get) + * Retrieves a particular SSL certificate. Does not include the private key + * (required for usage). The private key must be saved from the response to + * initial creation. (sslCerts.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the @@ -957,8 +1298,9 @@ public function get($project, $instance, $sha1Fingerprint, $optParams = array()) } /** - * Creates an SSL certificate and returns the certificate, the associated - * private key, and the server certificate authority. (sslCerts.insert) + * Creates an SSL certificate and returns it along with the private key and + * server certificate authority. The new certificate will not be usable until + * the instance is restarted. (sslCerts.insert) * * @param string $project Project ID of the project to which the newly created * Cloud SQL instances should belong. @@ -976,7 +1318,7 @@ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInse } /** - * Lists all of the current SSL certificates defined for a Cloud SQL instance. + * Lists all of the current SSL certificates for the instance. * (sslCerts.listSslCerts) * * @param string $project Project ID of the project for which to list Cloud SQL @@ -1006,8 +1348,8 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource { /** - * Lists service tiers that can be used to create Google Cloud SQL instances. - * (tiers.listTiers) + * Lists all available service tiers for Google Cloud SQL, for example D1, D2. + * For related information, see Pricing. (tiers.listTiers) * * @param string $project Project ID of the project for which to list tiers. * @param array $optParams Optional parameters. @@ -1021,16 +1363,141 @@ public function listTiers($project, $optParams = array()) } } +/** + * The "users" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $users = $sqladminService->users; + * + */ +class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource +{ + + /** + * Deletes a user from a Cloud SQL instance. (users.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $host, $name, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Creates a new user in a Cloud SQL instance. (users.insert) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists users in the specified Cloud SQL instance. (users.listUsers) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_UsersListResponse + */ + public function listUsers($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); + } + + /** + * Updates an existing user in a Cloud SQL instance. (users.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + +class Google_Service_SQLAdmin_AclEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expirationTime; + public $kind; + public $name; + public $value; + + + public function setExpirationTime($expirationTime) + { + $this->expirationTime = $expirationTime; + } + public function getExpirationTime() + { + return $this->expirationTime; + } + 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 setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model { protected $internal_gapi_mappings = array( ); public $binaryLogEnabled; public $enabled; - public $id; public $kind; public $startTime; @@ -1051,14 +1518,6 @@ public function getEnabled() { return $this->enabled; } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } public function setKind($kind) { $this->kind = $kind; @@ -1081,34 +1540,19 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model { protected $internal_gapi_mappings = array( ); - public $backupConfiguration; - public $dueTime; public $endTime; public $enqueuedTime; protected $errorType = 'Google_Service_SQLAdmin_OperationError'; protected $errorDataType = ''; + public $id; public $instance; public $kind; + public $selfLink; public $startTime; public $status; + public $windowStartTime; - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDueTime($dueTime) - { - $this->dueTime = $dueTime; - } - public function getDueTime() - { - return $this->dueTime; - } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1133,6 +1577,14 @@ public function getError() { return $this->error; } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } public function setInstance($instance) { $this->instance = $instance; @@ -1149,6 +1601,14 @@ public function getKind() { return $this->kind; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1165,6 +1625,14 @@ public function getStatus() { return $this->status; } + public function setWindowStartTime($windowStartTime) + { + $this->windowStartTime = $windowStartTime; + } + public function getWindowStartTime() + { + return $this->windowStartTime; + } } class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection @@ -1247,7 +1715,6 @@ class Google_Service_SQLAdmin_CloneContext extends Google_Model protected $binLogCoordinatesDataType = ''; public $destinationInstanceName; public $kind; - public $sourceInstanceName; public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) @@ -1274,13 +1741,85 @@ public function getKind() { return $this->kind; } - public function setSourceInstanceName($sourceInstanceName) +} + +class Google_Service_SQLAdmin_Database extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $charset; + public $collation; + public $etag; + public $instance; + public $kind; + public $name; + public $project; + public $selfLink; + + + public function setCharset($charset) { - $this->sourceInstanceName = $sourceInstanceName; + $this->charset = $charset; } - public function getSourceInstanceName() + public function getCharset() { - return $this->sourceInstanceName; + return $this->charset; + } + public function setCollation($collation) + { + $this->collation = $collation; + } + public function getCollation() + { + return $this->collation; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } @@ -1318,7 +1857,6 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $currentDiskSize; public $databaseVersion; public $etag; - public $instance; public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; @@ -1326,9 +1864,11 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $kind; public $masterInstanceName; public $maxDiskSize; + public $name; public $project; public $region; public $replicaNames; + public $selfLink; protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; protected $serverCaCertDataType = ''; public $serviceAccountEmailAddress; @@ -1361,14 +1901,6 @@ public function getEtag() { return $this->etag; } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } public function setInstanceType($instanceType) { $this->instanceType = $instanceType; @@ -1417,6 +1949,14 @@ public function getMaxDiskSize() { return $this->maxDiskSize; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } public function setProject($project) { $this->project = $project; @@ -1441,6 +1981,14 @@ public function getReplicaNames() { return $this->replicaNames; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; @@ -1475,24 +2023,72 @@ public function getState() } } +class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_Database'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_SQLAdmin_ExportContext extends Google_Collection { - protected $collection_key = 'table'; + protected $collection_key = 'databases'; protected $internal_gapi_mappings = array( ); - public $database; + protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; + protected $csvExportOptionsDataType = ''; + public $databases; + public $fileType; public $kind; - public $table; + protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; + protected $sqlExportOptionsDataType = ''; public $uri; - public function setDatabase($database) + public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) { - $this->database = $database; + $this->csvExportOptions = $csvExportOptions; } - public function getDatabase() + public function getCsvExportOptions() { - return $this->database; + return $this->csvExportOptions; + } + public function setDatabases($databases) + { + $this->databases = $databases; + } + public function getDatabases() + { + return $this->databases; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; } public function setKind($kind) { @@ -1502,13 +2098,13 @@ public function getKind() { return $this->kind; } - public function setTable($table) + public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) { - $this->table = $table; + $this->sqlExportOptions = $sqlExportOptions; } - public function getTable() + public function getSqlExportOptions() { - return $this->table; + return $this->sqlExportOptions; } public function setUri($uri) { @@ -1520,6 +2116,41 @@ public function getUri() } } +class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $selectQuery; + + + public function setSelectQuery($selectQuery) + { + $this->selectQuery = $selectQuery; + } + public function getSelectQuery() + { + return $this->selectQuery; + } +} + +class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection +{ + protected $collection_key = 'tables'; + protected $internal_gapi_mappings = array( + ); + public $tables; + + + public function setTables($tables) + { + $this->tables = $tables; + } + public function getTables() + { + return $this->tables; + } +} + class Google_Service_SQLAdmin_Flag extends Google_Collection { protected $collection_key = 'appliesTo'; @@ -1620,16 +2251,26 @@ public function getKind() } } -class Google_Service_SQLAdmin_ImportContext extends Google_Collection +class Google_Service_SQLAdmin_ImportContext extends Google_Model { - protected $collection_key = 'uri'; protected $internal_gapi_mappings = array( ); + protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; + protected $csvImportOptionsDataType = ''; public $database; + public $fileType; public $kind; public $uri; + public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) + { + $this->csvImportOptions = $csvImportOptions; + } + public function getCsvImportOptions() + { + return $this->csvImportOptions; + } public function setDatabase($database) { $this->database = $database; @@ -1638,6 +2279,14 @@ public function getDatabase() { return $this->database; } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } public function setKind($kind) { $this->kind = $kind; @@ -1656,141 +2305,30 @@ public function getUri() } } -class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection +class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection { - protected $collection_key = 'error'; + protected $collection_key = 'columns'; protected $internal_gapi_mappings = array( ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = 'array'; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $instance; - public $kind; - public $operation; - public $operationType; - public $startTime; - public $state; - public $userEmailAddress; + public $columns; + public $table; - public function setEndTime($endTime) + public function setColumns($columns) { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError($error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; + $this->columns = $columns; } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() + public function getColumns() { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; + return $this->columns; } - public function getOperation() - { - return $this->operation; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setUserEmailAddress($userEmailAddress) - { - $this->userEmailAddress = $userEmailAddress; - } - public function getUserEmailAddress() - { - return $this->userEmailAddress; - } -} - -class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; - protected $setRootPasswordContextDataType = ''; - - - public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) + public function setTable($table) { - $this->setRootPasswordContext = $setRootPasswordContext; + $this->table = $table; } - public function getSetRootPasswordContext() + public function getTable() { - return $this->setRootPasswordContext; + return $this->table; } } @@ -1812,58 +2350,6 @@ public function getCloneContext() } } -class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -1882,32 +2368,6 @@ public function getExportContext() } } -class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -1926,14 +2386,25 @@ public function getImportContext() } } -class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model +class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; + protected $itemsDataType = 'array'; public $kind; - public $operation; + public $nextPageToken; + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } public function setKind($kind) { $this->kind = $kind; @@ -1942,113 +2413,114 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) + public function setNextPageToken($nextPageToken) { - $this->operation = $operation; + $this->nextPageToken = $nextPageToken; } - public function getOperation() + public function getNextPageToken() { - return $this->operation; + return $this->nextPageToken; } } -class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model +class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $operation; + protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; + protected $restoreBackupContextDataType = ''; - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() + public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; + $this->restoreBackupContext = $restoreBackupContext; } - public function getOperation() + public function getRestoreBackupContext() { - return $this->operation; + return $this->restoreBackupContext; } } -class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection +class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'authorizedNetworks'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; + protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; + protected $authorizedNetworksDataType = 'array'; + public $ipv4Enabled; + public $requireSsl; - public function setItems($items) + public function setAuthorizedNetworks($authorizedNetworks) { - $this->items = $items; + $this->authorizedNetworks = $authorizedNetworks; } - public function getItems() + public function getAuthorizedNetworks() { - return $this->items; + return $this->authorizedNetworks; } - public function setKind($kind) + public function setIpv4Enabled($ipv4Enabled) { - $this->kind = $kind; + $this->ipv4Enabled = $ipv4Enabled; } - public function getKind() + public function getIpv4Enabled() { - return $this->kind; + return $this->ipv4Enabled; } - public function setNextPageToken($nextPageToken) + public function setRequireSsl($requireSsl) { - $this->nextPageToken = $nextPageToken; + $this->requireSsl = $requireSsl; } - public function getNextPageToken() + public function getRequireSsl() { - return $this->nextPageToken; + return $this->requireSsl; } } -class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model +class Google_Service_SQLAdmin_IpMapping extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $operation; + public $ipAddress; + public $timeToRetire; - public function setKind($kind) + public function setIpAddress($ipAddress) { - $this->kind = $kind; + $this->ipAddress = $ipAddress; } - public function getKind() + public function getIpAddress() { - return $this->kind; + return $this->ipAddress; } - public function setOperation($operation) + public function setTimeToRetire($timeToRetire) { - $this->operation = $operation; + $this->timeToRetire = $timeToRetire; } - public function getOperation() + public function getTimeToRetire() { - return $this->operation; + return $this->timeToRetire; } } -class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model +class Google_Service_SQLAdmin_LocationPreference extends Google_Model { protected $internal_gapi_mappings = array( ); + public $followGaeApplication; public $kind; - public $operation; + public $zone; + public function setFollowGaeApplication($followGaeApplication) + { + $this->followGaeApplication = $followGaeApplication; + } + public function getFollowGaeApplication() + { + return $this->followGaeApplication; + } public function setKind($kind) { $this->kind = $kind; @@ -2057,76 +2529,80 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) + public function setZone($zone) { - $this->operation = $operation; + $this->zone = $zone; } - public function getOperation() + public function getZone() { - return $this->operation; + return $this->zone; } } -class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model +class Google_Service_SQLAdmin_Operation extends Google_Model { protected $internal_gapi_mappings = array( ); + public $endTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorDataType = ''; + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; + public $insertTime; public $kind; - public $operation; + public $name; + public $operationType; + public $selfLink; + public $startTime; + public $status; + public $targetId; + public $targetLink; + public $targetProject; + public $user; - public function setKind($kind) + public function setEndTime($endTime) { - $this->kind = $kind; + $this->endTime = $endTime; } - public function getKind() + public function getEndTime() { - return $this->kind; + return $this->endTime; } - public function setOperation($operation) + public function setError(Google_Service_SQLAdmin_OperationError $error) { - $this->operation = $operation; + $this->error = $error; } - public function getOperation() + public function getError() { - return $this->operation; + return $this->error; } -} - -class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) { - $this->kind = $kind; + $this->exportContext = $exportContext; + } + public function getExportContext() + { + return $this->exportContext; + } + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) + { + $this->importContext = $importContext; } - public function getKind() + public function getImportContext() { - return $this->kind; + return $this->importContext; } - public function setOperation($operation) + public function setInsertTime($insertTime) { - $this->operation = $operation; + $this->insertTime = $insertTime; } - public function getOperation() + public function getInsertTime() { - return $this->operation; + return $this->insertTime; } -} - -class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - public function setKind($kind) { $this->kind = $kind; @@ -2135,129 +2611,96 @@ public function getKind() { return $this->kind; } - public function setOperation($operation) + public function setName($name) { - $this->operation = $operation; + $this->name = $name; } - public function getOperation() + public function getName() { - return $this->operation; + return $this->name; } -} - -class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) + public function setOperationType($operationType) { - $this->kind = $kind; + $this->operationType = $operationType; } - public function getKind() + public function getOperationType() { - return $this->kind; + return $this->operationType; } - public function setOperation($operation) + public function setSelfLink($selfLink) { - $this->operation = $operation; + $this->selfLink = $selfLink; } - public function getOperation() + public function getSelfLink() { - return $this->operation; + return $this->selfLink; } -} - -class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection -{ - protected $collection_key = 'authorizedNetworks'; - protected $internal_gapi_mappings = array( - ); - public $authorizedNetworks; - public $enabled; - public $kind; - public $requireSsl; - - - public function setAuthorizedNetworks($authorizedNetworks) + public function setStartTime($startTime) { - $this->authorizedNetworks = $authorizedNetworks; + $this->startTime = $startTime; } - public function getAuthorizedNetworks() + public function getStartTime() { - return $this->authorizedNetworks; + return $this->startTime; } - public function setEnabled($enabled) + public function setStatus($status) { - $this->enabled = $enabled; + $this->status = $status; } - public function getEnabled() + public function getStatus() { - return $this->enabled; + return $this->status; } - public function setKind($kind) + public function setTargetId($targetId) { - $this->kind = $kind; + $this->targetId = $targetId; } - public function getKind() + public function getTargetId() { - return $this->kind; + return $this->targetId; } - public function setRequireSsl($requireSsl) + public function setTargetLink($targetLink) { - $this->requireSsl = $requireSsl; + $this->targetLink = $targetLink; } - public function getRequireSsl() + public function getTargetLink() { - return $this->requireSsl; + return $this->targetLink; } -} - -class Google_Service_SQLAdmin_IpMapping extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $timeToRetire; - - - public function setIpAddress($ipAddress) + public function setTargetProject($targetProject) { - $this->ipAddress = $ipAddress; + $this->targetProject = $targetProject; } - public function getIpAddress() + public function getTargetProject() { - return $this->ipAddress; + return $this->targetProject; } - public function setTimeToRetire($timeToRetire) + public function setUser($user) { - $this->timeToRetire = $timeToRetire; + $this->user = $user; } - public function getTimeToRetire() + public function getUser() { - return $this->timeToRetire; + return $this->user; } } -class Google_Service_SQLAdmin_LocationPreference extends Google_Model +class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( ); - public $followGaeApplication; + public $code; public $kind; - public $zone; + public $message; - public function setFollowGaeApplication($followGaeApplication) + public function setCode($code) { - $this->followGaeApplication = $followGaeApplication; + $this->code = $code; } - public function getFollowGaeApplication() + public function getCode() { - return $this->followGaeApplication; + return $this->code; } public function setKind($kind) { @@ -2267,39 +2710,32 @@ public function getKind() { return $this->kind; } - public function setZone($zone) + public function setMessage($message) { - $this->zone = $zone; + $this->message = $message; } - public function getZone() + public function getMessage() { - return $this->zone; + return $this->message; } } -class Google_Service_SQLAdmin_OperationError extends Google_Model +class Google_Service_SQLAdmin_OperationError extends Google_Collection { + protected $collection_key = 'errors'; protected $internal_gapi_mappings = array( ); - public $code; - public $kind; + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; - public function setCode($code) - { - $this->code = $code; - } - public function getCode() + public function setErrors($errors) { - return $this->code; - } - public function setKind($kind) - { - $this->kind = $kind; + $this->errors = $errors; } - public function getKind() + public function getErrors() { - return $this->kind; + return $this->errors; } } @@ -2308,7 +2744,7 @@ class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; + protected $itemsType = 'Google_Service_SQLAdmin_Operation'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -2340,29 +2776,29 @@ public function getNextPageToken() } } -class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model +class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model { protected $internal_gapi_mappings = array( ); + public $backupRunId; public $kind; - public $password; - public function setKind($kind) + public function setBackupRunId($backupRunId) { - $this->kind = $kind; + $this->backupRunId = $backupRunId; } - public function getKind() + public function getBackupRunId() { - return $this->kind; + return $this->backupRunId; } - public function setPassword($password) + public function setKind($kind) { - $this->password = $password; + $this->kind = $kind; } - public function getPassword() + public function getKind() { - return $this->password; + return $this->kind; } } @@ -2374,7 +2810,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection public $activationPolicy; public $authorizedGaeApplications; protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = 'array'; + protected $backupConfigurationDataType = ''; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; public $databaseReplicationEnabled; @@ -2405,7 +2841,7 @@ public function getAuthorizedGaeApplications() { return $this->authorizedGaeApplications; } - public function setBackupConfiguration($backupConfiguration) + public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) { $this->backupConfiguration = $backupConfiguration; } @@ -2498,6 +2934,7 @@ class Google_Service_SQLAdmin_SslCert extends Google_Model public $expirationTime; public $instance; public $kind; + public $selfLink; public $sha1Fingerprint; @@ -2557,6 +2994,14 @@ public function getKind() { return $this->kind; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setSha1Fingerprint($sha1Fingerprint) { $this->sha1Fingerprint = $sha1Fingerprint; @@ -2594,32 +3039,6 @@ public function getCertPrivateKey() } } -class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -2785,3 +3204,111 @@ public function getKind() return $this->kind; } } + +class Google_Service_SQLAdmin_User extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $host; + public $instance; + public $kind; + public $name; + public $password; + public $project; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } +} + +class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} From 1a2a14ad9a89f517d40419bf9121d2189e5fd8cf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 7 Feb 2015 03:34:49 -0800 Subject: [PATCH 0618/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 250e013cc70b9305caf42b7fe43cf9618543cf45 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 8 Feb 2015 03:35:46 -0800 Subject: [PATCH 0619/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From cf392b83d484f752e9bbd4504619c3c456ca188a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 9 Feb 2015 03:36:41 -0800 Subject: [PATCH 0620/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From f63b9c1c10361a9bb7b537f6ecbefb70b80a8cc8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 10 Feb 2015 03:37:47 -0800 Subject: [PATCH 0621/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 6f82e0e20..8ae06ac35 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -444,6 +444,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'fetchBodies' => array( 'location' => 'query', 'type' => 'boolean', @@ -1268,10 +1276,12 @@ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParam * Retrieves the pages for a blog, optionally including non-LIVE statuses. * (pages.listPages) * - * @param string $blogId ID of the blog to fetch pages from. + * @param string $blogId ID of the blog to fetch Pages from. * @param array $optParams Optional parameters. * * @opt_param string status + * @opt_param string maxResults Maximum number of Pages to fetch. + * @opt_param string pageToken Continuation token if the request is paged. * @opt_param bool fetchBodies Whether to retrieve the Page bodies. * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. @@ -2529,6 +2539,7 @@ class Google_Service_Blogger_PageList extends Google_Collection protected $itemsType = 'Google_Service_Blogger_Page'; protected $itemsDataType = 'array'; public $kind; + public $nextPageToken; public function setItems($items) @@ -2547,6 +2558,14 @@ public function getKind() { return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } } class Google_Service_Blogger_Pageviews extends Google_Collection From b16c6e2be3a574cd04f1b5d806bab0747e3671a0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 10 Feb 2015 03:37:48 -0800 Subject: [PATCH 0622/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 254 +++++++++++++++++++++++- 1 file changed, 250 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index c3e4a5887..43fb329ff 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -296,7 +296,22 @@ public function __construct(Google_Client $client) 'apks', array( 'methods' => array( - 'list' => array( + 'addexternallyhosted' => array( + 'path' => '{packageName}/edits/{editId}/apks/externallyHosted', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => '{packageName}/edits/{editId}/apks', 'httpMethod' => 'GET', 'parameters' => array( @@ -1391,6 +1406,26 @@ public function update($packageName, $editId, $apkVersionCode, $language, Google class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource { + /** + * Creates a new APK without uploading the APK itself to Google Play, instead + * hosting the APK at a specified URL. This function is only available to + * enterprises using Android for Work, for applications distributed within the + * enterprise Private Channel. (apks.addexternallyhosted) + * + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param Google_ApksAddExternallyHostedRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse + */ + public function addexternallyhosted($packageName, $editId, Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addexternallyhosted', array($params), "Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse"); + } + /** * (apks.listEditsApks) * @@ -1907,8 +1942,10 @@ public function listEditsTracks($packageName, $editId, $optParams = array()) } /** - * Updates the track configuration for the specified track type. This method - * supports patch semantics. (tracks.patch) + * Updates the track configuration for the specified track type. When halted, + * the rollout track cannot be updated without adding new APKs, and adding new + * APKs will cause it to resume. This method supports patch semantics. + * (tracks.patch) * * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". @@ -1926,7 +1963,9 @@ public function patch($packageName, $editId, $track, Google_Service_AndroidPubli } /** - * Updates the track configuration for the specified track type. (tracks.update) + * Updates the track configuration for the specified track type. When halted, + * the rollout track cannot be updated without adding new APKs, and adding new + * APKs will cause it to resume. (tracks.update) * * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". @@ -2341,6 +2380,42 @@ public function getListings() } } +class Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; + protected $externallyHostedApkDataType = ''; + + + public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) + { + $this->externallyHostedApk = $externallyHostedApk; + } + public function getExternallyHostedApk() + { + return $this->externallyHostedApk; + } +} + +class Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; + protected $externallyHostedApkDataType = ''; + + + public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) + { + $this->externallyHostedApk = $externallyHostedApk; + } + public function getExternallyHostedApk() + { + return $this->externallyHostedApk; + } +} + class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection { protected $collection_key = 'apks'; @@ -2483,6 +2558,177 @@ public function getExpansionFile() } } +class Google_Service_AndroidPublisher_ExternallyHostedApk extends Google_Collection +{ + protected $collection_key = 'usesPermissions'; + protected $internal_gapi_mappings = array( + ); + public $applicationLabel; + public $certificateBase64s; + public $externallyHostedUrl; + public $fileSha1Base64; + public $fileSha256Base64; + public $fileSize; + public $iconBase64; + public $maximumSdk; + public $minimumSdk; + public $nativeCodes; + public $packageName; + public $usesFeatures; + protected $usesPermissionsType = 'Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission'; + protected $usesPermissionsDataType = 'array'; + public $versionCode; + public $versionName; + + + public function setApplicationLabel($applicationLabel) + { + $this->applicationLabel = $applicationLabel; + } + public function getApplicationLabel() + { + return $this->applicationLabel; + } + public function setCertificateBase64s($certificateBase64s) + { + $this->certificateBase64s = $certificateBase64s; + } + public function getCertificateBase64s() + { + return $this->certificateBase64s; + } + public function setExternallyHostedUrl($externallyHostedUrl) + { + $this->externallyHostedUrl = $externallyHostedUrl; + } + public function getExternallyHostedUrl() + { + return $this->externallyHostedUrl; + } + public function setFileSha1Base64($fileSha1Base64) + { + $this->fileSha1Base64 = $fileSha1Base64; + } + public function getFileSha1Base64() + { + return $this->fileSha1Base64; + } + public function setFileSha256Base64($fileSha256Base64) + { + $this->fileSha256Base64 = $fileSha256Base64; + } + public function getFileSha256Base64() + { + return $this->fileSha256Base64; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setIconBase64($iconBase64) + { + $this->iconBase64 = $iconBase64; + } + public function getIconBase64() + { + return $this->iconBase64; + } + public function setMaximumSdk($maximumSdk) + { + $this->maximumSdk = $maximumSdk; + } + public function getMaximumSdk() + { + return $this->maximumSdk; + } + public function setMinimumSdk($minimumSdk) + { + $this->minimumSdk = $minimumSdk; + } + public function getMinimumSdk() + { + return $this->minimumSdk; + } + public function setNativeCodes($nativeCodes) + { + $this->nativeCodes = $nativeCodes; + } + public function getNativeCodes() + { + return $this->nativeCodes; + } + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + public function getPackageName() + { + return $this->packageName; + } + public function setUsesFeatures($usesFeatures) + { + $this->usesFeatures = $usesFeatures; + } + public function getUsesFeatures() + { + return $this->usesFeatures; + } + public function setUsesPermissions($usesPermissions) + { + $this->usesPermissions = $usesPermissions; + } + public function getUsesPermissions() + { + return $this->usesPermissions; + } + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } + public function setVersionName($versionName) + { + $this->versionName = $versionName; + } + public function getVersionName() + { + return $this->versionName; + } +} + +class Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $maxSdkVersion; + public $name; + + + public function setMaxSdkVersion($maxSdkVersion) + { + $this->maxSdkVersion = $maxSdkVersion; + } + public function getMaxSdkVersion() + { + return $this->maxSdkVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_AndroidPublisher_Image extends Google_Model { protected $internal_gapi_mappings = array( From b3853aa242dabf8f4b8e343d986f9368632c4eb6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 11 Feb 2015 03:38:54 -0800 Subject: [PATCH 0623/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 69dbdac5e3322041dbcdab19939c8b541c06f239 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Feb 2015 03:40:55 -0800 Subject: [PATCH 0624/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 151 +++++++++++++++++++++++++++++---- 1 file changed, 136 insertions(+), 15 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 6f2b8ea0e..1759a827b 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1221,6 +1221,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'myRating' => array( 'location' => 'query', 'type' => 'string', @@ -3260,14 +3264,14 @@ public function getRating($id, $optParams = array()) * properties that the API response will include. * * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. However, - * not all of those parts contain properties that can be set when setting or - * updating a video's metadata. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values - * that you can set or modify. If the parameter value specifies a part that does - * not contain mutable values, that part will still be included in the API - * response. + * contentDetails, fileDetails, liveStreamingDetails, localizations, player, + * processingDetails, recordingDetails, statistics, status, suggestions, and + * topicDetails. However, not all of those parts contain properties that can be + * set when setting or updating a video's metadata. For example, the statistics + * object encapsulates statistics that YouTube calculates for a video and does + * not contain values that you can set or modify. If the parameter value + * specifies a part that does not contain mutable values, that part will still + * be included in the API response. * @param Google_Video $postBody * @param array $optParams Optional parameters. * @@ -3325,8 +3329,9 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * @param string $part The part parameter specifies a comma-separated list of * one or more video resource properties that the API response will include. The * part names that you can include in the parameter value are id, snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. + * contentDetails, fileDetails, liveStreamingDetails, localizations, player, + * processingDetails, recordingDetails, statistics, status, suggestions, and + * topicDetails. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a video @@ -3372,6 +3377,13 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * Note: This parameter is supported for use in conjunction with the myRating * parameter, but it is not supported for use in conjunction with the id * parameter. + * @opt_param string hl The hl parameter instructs the API to return a localized + * version of the video details. If localized text is nor available for the + * requested language, the localizations object in the API response will contain + * the requested information in the default language instead. The parameter + * value is a BCP-47 language code. Your application can determine whether the + * requested localization was returned by checking the value of the + * snippet.localized.language property in the API response. * @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. @@ -3424,8 +3436,9 @@ public function rate($id, $rating, $optParams = array()) * properties that the API response will include. * * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. + * contentDetails, fileDetails, liveStreamingDetails, localizations, player, + * processingDetails, recordingDetails, statistics, status, suggestions, and + * topicDetails. * * Note that this method will override the existing values for all of the * mutable properties that are contained in any parts that the parameter value @@ -4847,6 +4860,8 @@ class Google_Service_YouTube_ChannelSection extends Google_Model public $etag; public $id; public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizationsDataType = 'map'; protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; protected $snippetDataType = ''; @@ -4883,6 +4898,14 @@ public function getKind() { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) { $this->snippet = $snippet; @@ -4975,11 +4998,35 @@ public function getVisitorId() } } +class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $title; + + + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); public $channelId; + public $defaultLanguage; + protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizedDataType = ''; public $position; public $style; public $title; @@ -4994,6 +5041,22 @@ public function getChannelId() { return $this->channelId; } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPosition($position) { $this->position = $position; @@ -7549,6 +7612,8 @@ class Google_Service_YouTube_Playlist extends Google_Model public $etag; public $id; public $kind; + protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizationsDataType = 'map'; protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; protected $playerDataType = ''; protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; @@ -7589,6 +7654,14 @@ public function getKind() { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) { $this->player = $player; @@ -8035,6 +8108,36 @@ public function getVisitorId() } } +class Google_Service_YouTube_PlaylistLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_PlaylistPlayer extends Google_Model { protected $internal_gapi_mappings = array( @@ -8059,7 +8162,10 @@ class Google_Service_YouTube_PlaylistSnippet extends Google_Collection ); public $channelId; public $channelTitle; + public $defaultLanguage; public $description; + protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizedDataType = ''; public $publishedAt; public $tags; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -8083,6 +8189,14 @@ public function getChannelTitle() { return $this->channelTitle; } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -8091,6 +8205,14 @@ public function getDescription() { return $this->description; } + public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -10230,8 +10352,7 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection public $categoryId; public $channelId; public $channelTitle; - protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; - protected $defaultLanguageDataType = ''; + public $defaultLanguage; public $description; public $liveBroadcastContent; protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; @@ -10267,7 +10388,7 @@ public function getChannelTitle() { return $this->channelTitle; } - public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; } From ae396782151c77fc068156685f3a9cb44d58f0e4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Feb 2015 03:40:55 -0800 Subject: [PATCH 0625/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 71692fd53..250a40b04 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -1361,6 +1361,7 @@ public function getTotalRows() class Google_Service_Bigquery_Job extends Google_Model { protected $internal_gapi_mappings = array( + "userEmail" => "user_email", ); protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; protected $configurationDataType = ''; @@ -1374,6 +1375,7 @@ class Google_Service_Bigquery_Job extends Google_Model protected $statisticsDataType = ''; protected $statusType = 'Google_Service_Bigquery_JobStatus'; protected $statusDataType = ''; + public $userEmail; public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) @@ -1440,6 +1442,14 @@ public function getStatus() { return $this->status; } + public function setUserEmail($userEmail) + { + $this->userEmail = $userEmail; + } + public function getUserEmail() + { + return $this->userEmail; + } } class Google_Service_Bigquery_JobConfiguration extends Google_Model From 55e82dcac8d5337f75c8bb6a56128c75e7574a24 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Feb 2015 03:40:55 -0800 Subject: [PATCH 0626/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 5fcd7ad2c..dbea4d341 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -361,10 +361,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'deleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'processForCalendar' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'internalDateSource' => array( 'location' => 'query', 'type' => 'string', ), + 'neverMarkSpam' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'insert' => array( 'path' => '{userId}/messages', @@ -979,8 +991,15 @@ public function get($userId, $id, $optParams = array()) * @param Google_Message $postBody * @param array $optParams Optional parameters. * + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Apps Vault to a Vault administrator. Only used for + * Google Apps for Work accounts. + * @opt_param bool processForCalendar Process calendar invites in the email and + * add any extracted meetings to the Google Calendar for this user. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. + * @opt_param bool neverMarkSpam Ignore the Gmail spam classifer decision and + * never mark this email as SPAM in the mailbox. * @return Google_Service_Gmail_Message */ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) From 51c4c055fd98c45b996ebddb976f7fff4596d2a3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Feb 2015 03:40:56 -0800 Subject: [PATCH 0627/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 198 ++++++++++++++++++++++++- 1 file changed, 190 insertions(+), 8 deletions(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index d2cf0b101..e39c77715 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -16,23 +16,23 @@ */ /** - * Service definition for CloudMonitoring (v2beta1). + * Service definition for CloudMonitoring (v2beta2). * *

* API for accessing Google Cloud and API monitoring data.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. */ class Google_Service_CloudMonitoring extends Google_Service { - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = - "https://www.googleapis.com/auth/monitoring.readonly"; + /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ + const MONITORING = + "https://www.googleapis.com/auth/monitoring"; public $metricDescriptors; public $timeseries; @@ -47,8 +47,8 @@ class Google_Service_CloudMonitoring extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; - $this->version = 'v2beta1'; + $this->servicePath = 'cloudmonitoring/v2beta2/projects/'; + $this->version = 'v2beta2'; $this->serviceName = 'cloudmonitoring'; $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( @@ -57,7 +57,32 @@ public function __construct(Google_Client $client) 'metricDescriptors', array( 'methods' => array( - 'list' => array( + 'create' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/metricDescriptors/{metric}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => '{project}/metricDescriptors', 'httpMethod' => 'GET', 'parameters' => array( @@ -138,6 +163,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'write' => array( + 'path' => '{project}/timeseries:write', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -216,6 +251,37 @@ public function __construct(Google_Client $client) class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource { + /** + * Create a new metric. (metricDescriptors.create) + * + * @param string $project The project id. The value can be the numeric project + * ID or string-based project name. + * @param Google_MetricDescriptor $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_MetricDescriptor + */ + public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor"); + } + + /** + * Delete an existing metric. (metricDescriptors.delete) + * + * @param string $project The project ID to which the metric belongs. + * @param string $metric Name of the metric. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse + */ + public function delete($project, $metric, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse"); + } + /** * List metric descriptors that match the query. If the query is not set, then * all of the metric descriptors will be returned. Large responses will be @@ -313,6 +379,28 @@ public function listTimeseries($project, $metric, $youngest, $optParams = array( $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); } + + /** + * Put data points to one or more time series for one or more metrics. If a time + * series does not exist, a new time series will be created. It is not allowed + * to write a time series point that is older than the existing youngest point + * of that time series. Points that are older than the existing youngest point + * of that time series will be discarded silently. Therefore, users should make + * sure that points of a time series are written sequentially in the order of + * their end time. (timeseries.write) + * + * @param string $project The project ID. The value can be the numeric project + * ID or string-based project name. + * @param Google_WriteTimeseriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse + */ + public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse"); + } } /** @@ -386,6 +474,23 @@ public function listTimeseriesDescriptors($project, $metric, $youngest, $optPara +class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -983,3 +1088,80 @@ public function getValue() class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { } + +class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pointType = 'Google_Service_CloudMonitoring_Point'; + protected $pointDataType = ''; + protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; + + + public function setPoint(Google_Service_CloudMonitoring_Point $point) + { + $this->point = $point; + } + public function getPoint() + { + return $this->point; + } + public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) + { + $this->timeseriesDesc = $timeseriesDesc; + } + public function getTimeseriesDesc() + { + return $this->timeseriesDesc; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection +{ + protected $collection_key = 'timeseries'; + protected $internal_gapi_mappings = array( + ); + public $commonLabels; + protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint'; + protected $timeseriesDataType = 'array'; + + + public function setCommonLabels($commonLabels) + { + $this->commonLabels = $commonLabels; + } + public function getCommonLabels() + { + return $this->commonLabels; + } + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + public function getTimeseries() + { + return $this->timeseries; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequestCommonLabels extends Google_Model +{ +} + +class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} From f719b85f88ea00e11a9a795322e7277d02a549d6 Mon Sep 17 00:00:00 2001 From: pulkit Date: Sat, 14 Feb 2015 06:26:44 +0000 Subject: [PATCH 0628/1274] added raw response for alt media --- src/Google/Http/REST.php | 4 ++++ src/Google/Http/Request.php | 26 ++++++++++++++++++++++++++ src/Google/Service/Resource.php | 4 ++++ 3 files changed, 34 insertions(+) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 7f579ac7a..3a6654ef1 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -113,6 +113,10 @@ public static function decodeHttpResponse($response, Google_Client $client = nul // Only attempt to decode the response, if the response code wasn't (204) 'no content' if ($code != '204') { + if ($response->getExpectedRaw()) { + return $body; + } + $decoded = json_decode($body, true); if ($decoded === null || $decoded === "") { $error = "Invalid json in service response: $body"; diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php index 9811c146a..fb6759f5c 100644 --- a/src/Google/Http/Request.php +++ b/src/Google/Http/Request.php @@ -49,6 +49,7 @@ class Google_Http_Request protected $responseBody; protected $expectedClass; + protected $expectedRaw = false; public $accessKey; @@ -188,6 +189,31 @@ public function getExpectedClass() return $this->expectedClass; } + /** + * Enable expected raw response + */ + public function enableExpectedRaw() + { + $this->expectedRaw = true; + } + + /** + * Disable expected raw response + */ + public function disableExpectedRaw() + { + $this->expectedRaw = false; + } + + /** + * Expected raw response or not. + * @return boolean expected raw response + */ + public function getExpectedRaw() + { + return $this->expectedRaw; + } + /** * @param array $headers The HTTP response headers * to be normalized. diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 29bc06e96..6d68391ed 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -219,6 +219,10 @@ public function call($name, $arguments, $expected_class = null) ); } + if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { + $httpRequest->enableExpectedRaw(); + } + if ($this->client->shouldDefer()) { // If we are in batch or upload mode, return the raw request. return $httpRequest; From ccfdedb8b2ab2b999435c06a6ac8a6c2aa60d4aa Mon Sep 17 00:00:00 2001 From: Chris Sachs Date: Tue, 17 Feb 2015 16:21:53 +0100 Subject: [PATCH 0629/1274] no notice for count on empty collections --- src/Google/Collection.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Collection.php b/src/Google/Collection.php index dbb2855e9..4f53da652 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -48,6 +48,9 @@ public function valid() public function count() { + if(!isset($this->modelData[$this->collection_key])) { + return 0; + } return count($this->modelData[$this->collection_key]); } From bb2942ed6cc9ca7f78a3679e3c4c0ac665ba197e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Feb 2015 03:45:21 -0800 Subject: [PATCH 0630/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index ab4dad7f6..5b4387ce1 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -1144,7 +1144,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'source' => array( + 'user_library_consistent_read' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -1152,7 +1156,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -2350,10 +2354,11 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource * @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 bool user_library_consistent_read * @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 string source String to identify the originator of this request. * @opt_param string partner Brand results for partner ID. * @return Google_Service_Books_Volume */ From ba818aede33193dbecb7694932aaecfdcbbd0046 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Feb 2015 03:45:22 -0800 Subject: [PATCH 0631/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 57a3b880b4c1c9caed14fe7f20e2e42f42cf2d66 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Feb 2015 03:45:22 -0800 Subject: [PATCH 0632/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 600 ++++++++++++++++++++++++ 1 file changed, 600 insertions(+) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index e3de6a3d3..3dc918178 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -30,6 +30,15 @@ */ class Google_Service_YouTubeAnalytics extends Google_Service { + /** Manage your YouTube account. */ + const YOUTUBE = + "https://www.googleapis.com/auth/youtube"; + /** View your YouTube account. */ + const YOUTUBE_READONLY = + "https://www.googleapis.com/auth/youtube.readonly"; + /** View and manage your assets and associated content on YouTube. */ + const YOUTUBEPARTNER = + "https://www.googleapis.com/auth/youtubepartner"; /** View YouTube Analytics monetary reports for your YouTube content. */ const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; @@ -39,6 +48,8 @@ class Google_Service_YouTubeAnalytics extends Google_Service public $batchReportDefinitions; public $batchReports; + public $groupItems; + public $groups; public $reports; @@ -99,6 +110,112 @@ public function __construct(Google_Client $client) ) ) ); + $this->groupItems = new Google_Service_YouTubeAnalytics_GroupItems_Resource( + $this, + $this->serviceName, + 'groupItems', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groupItems', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'groupItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'groupItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_YouTubeAnalytics_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groups', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'groups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( $this, $this->serviceName, @@ -216,6 +333,228 @@ public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwn } } +/** + * The "groupItems" collection of methods. + * Typical usage is: + * + * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); + * $groupItems = $youtubeAnalyticsService->groupItems; + * + */ +class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource +{ + + /** + * Removes an item from a group. (groupItems.delete) + * + * @param string $id The id parameter specifies the YouTube group item ID for + * the group that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a group item. (groupItems.insert) + * + * @param Google_GroupItem $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_GroupItem + */ + public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem"); + } + + /** + * Returns a collection of group items that match the API request parameters. + * (groupItems.listGroupItems) + * + * @param string $groupId The id parameter specifies the unique ID of the group + * for which you want to retrieve group items. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_GroupItemListResponse + */ + public function listGroupItems($groupId, $optParams = array()) + { + $params = array('groupId' => $groupId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); + * $groups = $youtubeAnalyticsService->groups; + * + */ +class Google_Service_YouTubeAnalytics_Groups_Resource extends Google_Service_Resource +{ + + /** + * Deletes a group. (groups.delete) + * + * @param string $id The id parameter specifies the YouTube group ID for the + * group that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a group. (groups.insert) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_Group + */ + public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group"); + } + + /** + * Returns a collection of groups that match the API request parameters. For + * example, you can retrieve all groups that the authenticated user owns, or you + * can retrieve one or more groups by their unique IDs. (groups.listGroups) + * + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube group ID(s) for the resource(s) that are being retrieved. In a group + * resource, the id property specifies the group's YouTube group ID. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return groups owned by the authenticated user. + * @return Google_Service_YouTubeAnalytics_GroupListResponse + */ + public function listGroups($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse"); + } + + /** + * Modifies a group. For example, you could change a group's title. + * (groups.update) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_Group + */ + public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group"); + } +} + /** * The "reports" collection of methods. * Typical usage is: @@ -515,6 +854,267 @@ public function getStartTime() } } +class Google_Service_YouTubeAnalytics_Group extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet'; + protected $snippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $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_YouTubeAnalytics_GroupSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $itemCount; + public $itemType; + + + public function setItemCount($itemCount) + { + $this->itemCount = $itemCount; + } + public function getItemCount() + { + return $this->itemCount; + } + public function setItemType($itemType) + { + $this->itemType = $itemType; + } + public function getItemType() + { + return $this->itemType; + } +} + +class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $groupId; + public $id; + public $kind; + protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource'; + protected $resourceDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + public function getGroupId() + { + return $this->groupId; + } + 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 setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + + + 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_YouTubeAnalytics_GroupListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_YouTubeAnalytics_Group'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $publishedAt; + public $title; + + + 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_YouTubeAnalytics_ResultTable extends Google_Collection { protected $collection_key = 'rows'; From dbb292dbbe25d9910b2e6f020502102a84085310 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 20 Feb 2015 03:47:21 -0800 Subject: [PATCH 0633/1274] Updated Dataflow.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dataflow.php | 3072 +------------------------------ 1 file changed, 3 insertions(+), 3069 deletions(-) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index e87a35f0f..04383be95 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -30,16 +30,9 @@ */ class Google_Service_Dataflow extends Google_Service { - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - public $v1b3_projects_jobs; - public $v1b3_projects_jobs_messages; - public $v1b3_projects_jobs_workItems; + + /** @@ -50,3072 +43,13 @@ class Google_Service_Dataflow extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'v1b3/projects/'; + $this->servicePath = ''; $this->version = 'v1b4'; $this->serviceName = 'dataflow'; - $this->v1b3_projects_jobs = new Google_Service_Dataflow_V1b3ProjectsJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => '{projectId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => '{projectId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getMetrics' => array( - 'path' => '{projectId}/jobs/{jobId}/metrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{projectId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{projectId}/jobs/{jobId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{projectId}/jobs/{jobId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->v1b3_projects_jobs_messages = new Google_Service_Dataflow_V1b3ProjectsJobsMessages_Resource( - $this, - $this->serviceName, - 'messages', - array( - 'methods' => array( - 'list' => array( - 'path' => '{projectId}/jobs/{jobId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minimumImportance' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->v1b3_projects_jobs_workItems = new Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource( - $this, - $this->serviceName, - 'workItems', - array( - 'methods' => array( - 'lease' => array( - 'path' => '{projectId}/jobs/{jobId}/workItems:lease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reportStatus' => array( - 'path' => '{projectId}/jobs/{jobId}/workItems:reportStatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "v1b3" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $v1b3 = $dataflowService->v1b3; - * - */ -class Google_Service_Dataflow_V1b3_Resource extends Google_Service_Resource -{ -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $projects = $dataflowService->projects; - * - */ -class Google_Service_Dataflow_V1b3Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $jobs = $dataflowService->jobs; - * - */ -class Google_Service_Dataflow_V1b3ProjectsJobs_Resource extends Google_Service_Resource -{ - - /** - * Creates a dataflow job. (jobs.create) - * - * @param string $projectId - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string view - * @return Google_Service_Dataflow_Job - */ - public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dataflow_Job"); - } - - /** - * Gets the state of the specified dataflow job. (jobs.get) - * - * @param string $projectId - * @param string $jobId - * @param array $optParams Optional parameters. - * - * @opt_param string view - * @return Google_Service_Dataflow_Job - */ - public function get($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dataflow_Job"); - } - - /** - * Request the job status. (jobs.getMetrics) - * - * @param string $projectId - * @param string $jobId - * @param array $optParams Optional parameters. - * - * @opt_param string startTime - * @return Google_Service_Dataflow_JobMetrics - */ - public function getMetrics($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); - } - - /** - * List the jobs of a project (jobs.listV1b3ProjectsJobs) - * - * @param string $projectId - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * @opt_param string view - * @opt_param int pageSize - * @return Google_Service_Dataflow_ListJobsResponse - */ - public function listV1b3ProjectsJobs($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); - } - - /** - * Updates the state of an existing dataflow job. This method supports patch - * semantics. (jobs.patch) - * - * @param string $projectId - * @param string $jobId - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_Job - */ - public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); - } - - /** - * Updates the state of an existing dataflow job. (jobs.update) - * - * @param string $projectId - * @param string $jobId - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_Job - */ - public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dataflow_Job"); - } -} - -/** - * The "messages" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $messages = $dataflowService->messages; - * - */ -class Google_Service_Dataflow_V1b3ProjectsJobsMessages_Resource extends Google_Service_Resource -{ - - /** - * Request the job status. (messages.listV1b3ProjectsJobsMessages) - * - * @param string $projectId - * @param string $jobId - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize - * @opt_param string pageToken - * @opt_param string startTime - * @opt_param string endTime - * @opt_param string minimumImportance - * @return Google_Service_Dataflow_ListJobMessagesResponse - */ - public function listV1b3ProjectsJobsMessages($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse"); - } -} -/** - * The "workItems" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $workItems = $dataflowService->workItems; - * - */ -class Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource extends Google_Service_Resource -{ - - /** - * Leases a dataflow WorkItem to run. (workItems.lease) - * - * @param string $projectId - * @param string $jobId - * @param Google_LeaseWorkItemRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_LeaseWorkItemResponse - */ - public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); - } - - /** - * Reports the status of dataflow WorkItems leased by a worker. - * (workItems.reportStatus) - * - * @param string $projectId - * @param string $jobId - * @param Google_ReportWorkItemStatusRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_ReportWorkItemStatusResponse - */ - public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse"); - } -} - - - - -class Google_Service_Dataflow_ApproximateProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $percentComplete; - protected $positionType = 'Google_Service_Dataflow_Position'; - protected $positionDataType = ''; - public $remainingTime; - - - public function setPercentComplete($percentComplete) - { - $this->percentComplete = $percentComplete; - } - public function getPercentComplete() - { - return $this->percentComplete; - } - public function setPosition(Google_Service_Dataflow_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setRemainingTime($remainingTime) - { - $this->remainingTime = $remainingTime; - } - public function getRemainingTime() - { - return $this->remainingTime; - } -} - -class Google_Service_Dataflow_AutoscalingSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $algorithm; - public $maxNumWorkers; - - - public function setAlgorithm($algorithm) - { - $this->algorithm = $algorithm; - } - public function getAlgorithm() - { - return $this->algorithm; - } - public function setMaxNumWorkers($maxNumWorkers) - { - $this->maxNumWorkers = $maxNumWorkers; - } - public function getMaxNumWorkers() - { - return $this->maxNumWorkers; - } -} - -class Google_Service_Dataflow_ComputationTopology extends Google_Collection -{ - protected $collection_key = 'outputs'; - protected $internal_gapi_mappings = array( - ); - public $computationId; - protected $inputsType = 'Google_Service_Dataflow_StreamLocation'; - protected $inputsDataType = 'array'; - protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation'; - protected $keyRangesDataType = 'array'; - protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; - protected $outputsDataType = 'array'; - - - public function setComputationId($computationId) - { - $this->computationId = $computationId; - } - public function getComputationId() - { - return $this->computationId; - } - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } - public function setKeyRanges($keyRanges) - { - $this->keyRanges = $keyRanges; - } - public function getKeyRanges() - { - return $this->keyRanges; - } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } -} - -class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection -{ - protected $collection_key = 'dataDisks'; - protected $internal_gapi_mappings = array( - ); - public $dataDisks; - public $vmInstance; - - - public function setDataDisks($dataDisks) - { - $this->dataDisks = $dataDisks; - } - public function getDataDisks() - { - return $this->dataDisks; - } - public function setVmInstance($vmInstance) - { - $this->vmInstance = $vmInstance; - } - public function getVmInstance() - { - return $this->vmInstance; - } -} - -class Google_Service_Dataflow_Disk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskType; - public $mountPoint; - public $sizeGb; - - - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - public function setMountPoint($mountPoint) - { - $this->mountPoint = $mountPoint; - } - public function getMountPoint() - { - return $this->mountPoint; - } - public function setSizeGb($sizeGb) - { - $this->sizeGb = $sizeGb; - } - public function getSizeGb() - { - return $this->sizeGb; - } -} - -class Google_Service_Dataflow_Environment extends Google_Collection -{ - protected $collection_key = 'workerPools'; - protected $internal_gapi_mappings = array( - ); - public $clusterManagerApiService; - public $dataset; - public $experiments; - public $tempStoragePrefix; - public $userAgent; - public $version; - protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool'; - protected $workerPoolsDataType = 'array'; - - - public function setClusterManagerApiService($clusterManagerApiService) - { - $this->clusterManagerApiService = $clusterManagerApiService; - } - public function getClusterManagerApiService() - { - return $this->clusterManagerApiService; - } - public function setDataset($dataset) - { - $this->dataset = $dataset; - } - public function getDataset() - { - return $this->dataset; - } - public function setExperiments($experiments) - { - $this->experiments = $experiments; - } - public function getExperiments() - { - return $this->experiments; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - public function getUserAgent() - { - return $this->userAgent; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - public function setWorkerPools($workerPools) - { - $this->workerPools = $workerPools; - } - public function getWorkerPools() - { - return $this->workerPools; - } -} - -class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model -{ -} - -class Google_Service_Dataflow_EnvironmentVersion extends Google_Model -{ -} - -class Google_Service_Dataflow_FlattenInstruction extends Google_Collection -{ - protected $collection_key = 'inputs'; - protected $internal_gapi_mappings = array( - ); - protected $inputsType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputsDataType = 'array'; - - - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } -} - -class Google_Service_Dataflow_InstructionInput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $outputNum; - public $producerInstructionIndex; - - - public function setOutputNum($outputNum) - { - $this->outputNum = $outputNum; - } - public function getOutputNum() - { - return $this->outputNum; - } - public function setProducerInstructionIndex($producerInstructionIndex) - { - $this->producerInstructionIndex = $producerInstructionIndex; - } - public function getProducerInstructionIndex() - { - return $this->producerInstructionIndex; - } -} - -class Google_Service_Dataflow_InstructionOutput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $codec; - public $name; - - - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; } } -class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model -{ -} -class Google_Service_Dataflow_Job extends Google_Collection -{ - protected $collection_key = 'steps'; - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $currentState; - public $currentStateTime; - protected $environmentType = 'Google_Service_Dataflow_Environment'; - protected $environmentDataType = ''; - protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; - protected $executionInfoDataType = ''; - public $id; - public $name; - public $projectId; - public $requestedState; - protected $stepsType = 'Google_Service_Dataflow_Step'; - protected $stepsDataType = 'array'; - public $type; - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - public function getCurrentState() - { - return $this->currentState; - } - public function setCurrentStateTime($currentStateTime) - { - $this->currentStateTime = $currentStateTime; - } - public function getCurrentStateTime() - { - return $this->currentStateTime; - } - public function setEnvironment(Google_Service_Dataflow_Environment $environment) - { - $this->environment = $environment; - } - public function getEnvironment() - { - return $this->environment; - } - public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo) - { - $this->executionInfo = $executionInfo; - } - public function getExecutionInfo() - { - return $this->executionInfo; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRequestedState($requestedState) - { - $this->requestedState = $requestedState; - } - public function getRequestedState() - { - return $this->requestedState; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dataflow_JobExecutionInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo'; - protected $stagesDataType = 'map'; - - - public function setStages($stages) - { - $this->stages = $stages; - } - public function getStages() - { - return $this->stages; - } -} - -class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model -{ -} - -class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection -{ - protected $collection_key = 'stepName'; - protected $internal_gapi_mappings = array( - ); - public $stepName; - - - public function setStepName($stepName) - { - $this->stepName = $stepName; - } - public function getStepName() - { - return $this->stepName; - } -} - -class Google_Service_Dataflow_JobMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $messageImportance; - public $messageText; - public $time; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMessageImportance($messageImportance) - { - $this->messageImportance = $messageImportance; - } - public function getMessageImportance() - { - return $this->messageImportance; - } - public function setMessageText($messageText) - { - $this->messageText = $messageText; - } - public function getMessageText() - { - return $this->messageText; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Dataflow_JobMetrics extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - public $metricTime; - protected $metricsType = 'Google_Service_Dataflow_MetricUpdate'; - protected $metricsDataType = 'array'; - - - public function setMetricTime($metricTime) - { - $this->metricTime = $metricTime; - } - public function getMetricTime() - { - return $this->metricTime; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } -} - -class Google_Service_Dataflow_KeyRangeLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataDisk; - public $deliveryEndpoint; - public $end; - public $persistentDirectory; - public $start; - - - public function setDataDisk($dataDisk) - { - $this->dataDisk = $dataDisk; - } - public function getDataDisk() - { - return $this->dataDisk; - } - public function setDeliveryEndpoint($deliveryEndpoint) - { - $this->deliveryEndpoint = $deliveryEndpoint; - } - public function getDeliveryEndpoint() - { - return $this->deliveryEndpoint; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPersistentDirectory($persistentDirectory) - { - $this->persistentDirectory = $persistentDirectory; - } - public function getPersistentDirectory() - { - return $this->persistentDirectory; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection -{ - protected $collection_key = 'workerCapabilities'; - protected $internal_gapi_mappings = array( - ); - public $currentWorkerTime; - public $requestedLeaseDuration; - public $workItemTypes; - public $workerCapabilities; - public $workerId; - - - public function setCurrentWorkerTime($currentWorkerTime) - { - $this->currentWorkerTime = $currentWorkerTime; - } - public function getCurrentWorkerTime() - { - return $this->currentWorkerTime; - } - public function setRequestedLeaseDuration($requestedLeaseDuration) - { - $this->requestedLeaseDuration = $requestedLeaseDuration; - } - public function getRequestedLeaseDuration() - { - return $this->requestedLeaseDuration; - } - public function setWorkItemTypes($workItemTypes) - { - $this->workItemTypes = $workItemTypes; - } - public function getWorkItemTypes() - { - return $this->workItemTypes; - } - public function setWorkerCapabilities($workerCapabilities) - { - $this->workerCapabilities = $workerCapabilities; - } - public function getWorkerCapabilities() - { - return $this->workerCapabilities; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection -{ - protected $collection_key = 'workItems'; - protected $internal_gapi_mappings = array( - ); - protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; - protected $workItemsDataType = 'array'; - - - public function setWorkItems($workItems) - { - $this->workItems = $workItems; - } - public function getWorkItems() - { - return $this->workItems; - } -} - -class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection -{ - protected $collection_key = 'jobMessages'; - protected $internal_gapi_mappings = array( - ); - protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage'; - protected $jobMessagesDataType = 'array'; - public $nextPageToken; - - - public function setJobMessages($jobMessages) - { - $this->jobMessages = $jobMessages; - } - public function getJobMessages() - { - return $this->jobMessages; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataflow_ListJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_Dataflow_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataflow_MapTask extends Google_Collection -{ - protected $collection_key = 'instructions'; - protected $internal_gapi_mappings = array( - ); - protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; - protected $instructionsDataType = 'array'; - public $stageName; - public $systemName; - - - public function setInstructions($instructions) - { - $this->instructions = $instructions; - } - public function getInstructions() - { - return $this->instructions; - } - public function setStageName($stageName) - { - $this->stageName = $stageName; - } - public function getStageName() - { - return $this->stageName; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } -} - -class Google_Service_Dataflow_MetricStructuredName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $context; - public $name; - public $origin; - - - public function setContext($context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOrigin($origin) - { - $this->origin = $origin; - } - public function getOrigin() - { - return $this->origin; - } -} - -class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model -{ -} - -class Google_Service_Dataflow_MetricUpdate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cumulative; - public $internal; - public $kind; - public $meanCount; - public $meanSum; - protected $nameType = 'Google_Service_Dataflow_MetricStructuredName'; - protected $nameDataType = ''; - public $scalar; - public $set; - public $updateTime; - - - public function setCumulative($cumulative) - { - $this->cumulative = $cumulative; - } - public function getCumulative() - { - return $this->cumulative; - } - public function setInternal($internal) - { - $this->internal = $internal; - } - public function getInternal() - { - return $this->internal; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMeanCount($meanCount) - { - $this->meanCount = $meanCount; - } - public function getMeanCount() - { - return $this->meanCount; - } - public function setMeanSum($meanSum) - { - $this->meanSum = $meanSum; - } - public function getMeanSum() - { - return $this->meanSum; - } - public function setName(Google_Service_Dataflow_MetricStructuredName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScalar($scalar) - { - $this->scalar = $scalar; - } - public function getScalar() - { - return $this->scalar; - } - public function setSet($set) - { - $this->set = $set; - } - public function getSet() - { - return $this->set; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } -} - -class Google_Service_Dataflow_MultiOutputInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $tag; - - - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_Package extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $location; - public $name; - - - 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; - } -} - -class Google_Service_Dataflow_ParDoInstruction extends Google_Collection -{ - protected $collection_key = 'sideInputs'; - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo'; - protected $multiOutputInfosDataType = 'array'; - public $numOutputs; - protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; - protected $sideInputsDataType = 'array'; - public $userFn; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setMultiOutputInfos($multiOutputInfos) - { - $this->multiOutputInfos = $multiOutputInfos; - } - public function getMultiOutputInfos() - { - return $this->multiOutputInfos; - } - public function setNumOutputs($numOutputs) - { - $this->numOutputs = $numOutputs; - } - public function getNumOutputs() - { - return $this->numOutputs; - } - public function setSideInputs($sideInputs) - { - $this->sideInputs = $sideInputs; - } - public function getSideInputs() - { - return $this->sideInputs; - } - public function setUserFn($userFn) - { - $this->userFn = $userFn; - } - public function getUserFn() - { - return $this->userFn; - } -} - -class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model -{ -} - -class Google_Service_Dataflow_ParallelInstruction extends Google_Collection -{ - protected $collection_key = 'outputs'; - protected $internal_gapi_mappings = array( - ); - protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction'; - protected $flattenDataType = ''; - public $name; - protected $outputsType = 'Google_Service_Dataflow_InstructionOutput'; - protected $outputsDataType = 'array'; - protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction'; - protected $parDoDataType = ''; - protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction'; - protected $partialGroupByKeyDataType = ''; - protected $readType = 'Google_Service_Dataflow_ReadInstruction'; - protected $readDataType = ''; - public $systemName; - protected $writeType = 'Google_Service_Dataflow_WriteInstruction'; - protected $writeDataType = ''; - - - public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten) - { - $this->flatten = $flatten; - } - public function getFlatten() - { - return $this->flatten; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } - public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo) - { - $this->parDo = $parDo; - } - public function getParDo() - { - return $this->parDo; - } - public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey) - { - $this->partialGroupByKey = $partialGroupByKey; - } - public function getPartialGroupByKey() - { - return $this->partialGroupByKey; - } - public function setRead(Google_Service_Dataflow_ReadInstruction $read) - { - $this->read = $read; - } - public function getRead() - { - return $this->read; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } - public function setWrite(Google_Service_Dataflow_WriteInstruction $write) - { - $this->write = $write; - } - public function getWrite() - { - return $this->write; - } -} - -class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - public $inputElementCodec; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setInputElementCodec($inputElementCodec) - { - $this->inputElementCodec = $inputElementCodec; - } - public function getInputElementCodec() - { - return $this->inputElementCodec; - } -} - -class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model -{ -} - -class Google_Service_Dataflow_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $byteOffset; - public $end; - public $key; - public $recordIndex; - public $shufflePosition; - - - public function setByteOffset($byteOffset) - { - $this->byteOffset = $byteOffset; - } - public function getByteOffset() - { - return $this->byteOffset; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setRecordIndex($recordIndex) - { - $this->recordIndex = $recordIndex; - } - public function getRecordIndex() - { - return $this->recordIndex; - } - public function setShufflePosition($shufflePosition) - { - $this->shufflePosition = $shufflePosition; - } - public function getShufflePosition() - { - return $this->shufflePosition; - } -} - -class Google_Service_Dataflow_PubsubLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $subscription; - public $topic; - - - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } -} - -class Google_Service_Dataflow_ReadInstruction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection -{ - protected $collection_key = 'workItemStatuses'; - protected $internal_gapi_mappings = array( - ); - public $currentWorkerTime; - protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; - protected $workItemStatusesDataType = 'array'; - public $workerId; - - - public function setCurrentWorkerTime($currentWorkerTime) - { - $this->currentWorkerTime = $currentWorkerTime; - } - public function getCurrentWorkerTime() - { - return $this->currentWorkerTime; - } - public function setWorkItemStatuses($workItemStatuses) - { - $this->workItemStatuses = $workItemStatuses; - } - public function getWorkItemStatuses() - { - return $this->workItemStatuses; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection -{ - protected $collection_key = 'workItemServiceStates'; - protected $internal_gapi_mappings = array( - ); - protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; - protected $workItemServiceStatesDataType = 'array'; - - - public function setWorkItemServiceStates($workItemServiceStates) - { - $this->workItemServiceStates = $workItemServiceStates; - } - public function getWorkItemServiceStates() - { - return $this->workItemServiceStates; - } -} - -class Google_Service_Dataflow_SeqMapTask extends Google_Collection -{ - protected $collection_key = 'outputInfos'; - protected $internal_gapi_mappings = array( - ); - protected $inputsType = 'Google_Service_Dataflow_SideInputInfo'; - protected $inputsDataType = 'array'; - public $name; - protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo'; - protected $outputInfosDataType = 'array'; - public $stageName; - public $systemName; - public $userFn; - - - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOutputInfos($outputInfos) - { - $this->outputInfos = $outputInfos; - } - public function getOutputInfos() - { - return $this->outputInfos; - } - public function setStageName($stageName) - { - $this->stageName = $stageName; - } - public function getStageName() - { - return $this->stageName; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } - public function setUserFn($userFn) - { - $this->userFn = $userFn; - } - public function getUserFn() - { - return $this->userFn; - } -} - -class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sinkType = 'Google_Service_Dataflow_Sink'; - protected $sinkDataType = ''; - public $tag; - - - public function setSink(Google_Service_Dataflow_Sink $sink) - { - $this->sink = $sink; - } - public function getSink() - { - return $this->sink; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model -{ -} - -class Google_Service_Dataflow_ShellTask extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $command; - public $exitCode; - - - public function setCommand($command) - { - $this->command = $command; - } - public function getCommand() - { - return $this->command; - } - public function setExitCode($exitCode) - { - $this->exitCode = $exitCode; - } - public function getExitCode() - { - return $this->exitCode; - } -} - -class Google_Service_Dataflow_SideInputInfo extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $sourcesType = 'Google_Service_Dataflow_Source'; - protected $sourcesDataType = 'array'; - public $tag; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_SideInputInfoKind extends Google_Model -{ -} - -class Google_Service_Dataflow_Sink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $codec; - public $spec; - - - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setSpec($spec) - { - $this->spec = $spec; - } - public function getSpec() - { - return $this->spec; - } -} - -class Google_Service_Dataflow_SinkCodec extends Google_Model -{ -} - -class Google_Service_Dataflow_SinkSpec extends Google_Model -{ -} - -class Google_Service_Dataflow_Source extends Google_Collection -{ - protected $collection_key = 'baseSpecs'; - protected $internal_gapi_mappings = array( - ); - public $baseSpecs; - public $codec; - public $doesNotNeedSplitting; - protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; - protected $metadataDataType = ''; - public $spec; - - - public function setBaseSpecs($baseSpecs) - { - $this->baseSpecs = $baseSpecs; - } - public function getBaseSpecs() - { - return $this->baseSpecs; - } - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setDoesNotNeedSplitting($doesNotNeedSplitting) - { - $this->doesNotNeedSplitting = $doesNotNeedSplitting; - } - public function getDoesNotNeedSplitting() - { - return $this->doesNotNeedSplitting; - } - public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSpec($spec) - { - $this->spec = $spec; - } - public function getSpec() - { - return $this->spec; - } -} - -class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model -{ -} - -class Google_Service_Dataflow_SourceCodec extends Google_Model -{ -} - -class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; - protected $metadataDataType = ''; - - - public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } -} - -class Google_Service_Dataflow_SourceMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $estimatedSizeBytes; - public $infinite; - public $producesSortedKeys; - - - public function setEstimatedSizeBytes($estimatedSizeBytes) - { - $this->estimatedSizeBytes = $estimatedSizeBytes; - } - public function getEstimatedSizeBytes() - { - return $this->estimatedSizeBytes; - } - public function setInfinite($infinite) - { - $this->infinite = $infinite; - } - public function getInfinite() - { - return $this->infinite; - } - public function setProducesSortedKeys($producesSortedKeys) - { - $this->producesSortedKeys = $producesSortedKeys; - } - public function getProducesSortedKeys() - { - return $this->producesSortedKeys; - } -} - -class Google_Service_Dataflow_SourceOperationRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest'; - protected $getMetadataDataType = ''; - protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest'; - protected $splitDataType = ''; - - - public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata) - { - $this->getMetadata = $getMetadata; - } - public function getGetMetadata() - { - return $this->getMetadata; - } - public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split) - { - $this->split = $split; - } - public function getSplit() - { - return $this->split; - } -} - -class Google_Service_Dataflow_SourceOperationResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse'; - protected $getMetadataDataType = ''; - protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse'; - protected $splitDataType = ''; - - - public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata) - { - $this->getMetadata = $getMetadata; - } - public function getGetMetadata() - { - return $this->getMetadata; - } - public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split) - { - $this->split = $split; - } - public function getSplit() - { - return $this->split; - } -} - -class Google_Service_Dataflow_SourceSpec extends Google_Model -{ -} - -class Google_Service_Dataflow_SourceSplitOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $desiredShardSizeBytes; - - - public function setDesiredShardSizeBytes($desiredShardSizeBytes) - { - $this->desiredShardSizeBytes = $desiredShardSizeBytes; - } - public function getDesiredShardSizeBytes() - { - return $this->desiredShardSizeBytes; - } -} - -class Google_Service_Dataflow_SourceSplitRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions'; - protected $optionsDataType = ''; - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options) - { - $this->options = $options; - } - public function getOptions() - { - return $this->options; - } - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection -{ - protected $collection_key = 'shards'; - protected $internal_gapi_mappings = array( - ); - public $outcome; - protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard'; - protected $shardsDataType = 'array'; - - - public function setOutcome($outcome) - { - $this->outcome = $outcome; - } - public function getOutcome() - { - return $this->outcome; - } - public function setShards($shards) - { - $this->shards = $shards; - } - public function getShards() - { - return $this->shards; - } -} - -class Google_Service_Dataflow_SourceSplitShard extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $derivationMode; - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setDerivationMode($derivationMode) - { - $this->derivationMode = $derivationMode; - } - public function getDerivationMode() - { - return $this->derivationMode; - } - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Dataflow_StatusDetails extends Google_Model -{ -} - -class Google_Service_Dataflow_Step extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - public $properties; - - - 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 setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Dataflow_StepProperties extends Google_Model -{ -} - -class Google_Service_Dataflow_StreamLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; - protected $pubsubLocationDataType = ''; - protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation'; - protected $streamingStageLocationDataType = ''; - - - public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) - { - $this->pubsubLocation = $pubsubLocation; - } - public function getPubsubLocation() - { - return $this->pubsubLocation; - } - public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation) - { - $this->streamingStageLocation = $streamingStageLocation; - } - public function getStreamingStageLocation() - { - return $this->streamingStageLocation; - } -} - -class Google_Service_Dataflow_StreamingSetupTask extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $receiveWorkPort; - protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; - protected $streamingComputationTopologyDataType = ''; - public $workerHarnessPort; - - - public function setReceiveWorkPort($receiveWorkPort) - { - $this->receiveWorkPort = $receiveWorkPort; - } - public function getReceiveWorkPort() - { - return $this->receiveWorkPort; - } - public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology) - { - $this->streamingComputationTopology = $streamingComputationTopology; - } - public function getStreamingComputationTopology() - { - return $this->streamingComputationTopology; - } - public function setWorkerHarnessPort($workerHarnessPort) - { - $this->workerHarnessPort = $workerHarnessPort; - } - public function getWorkerHarnessPort() - { - return $this->workerHarnessPort; - } -} - -class Google_Service_Dataflow_StreamingStageLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $streamId; - - - public function setStreamId($streamId) - { - $this->streamId = $streamId; - } - public function getStreamId() - { - return $this->streamId; - } -} - -class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection -{ - protected $collection_key = 'oauthScopes'; - protected $internal_gapi_mappings = array( - ); - public $alsologtostderr; - public $baseTaskDir; - public $baseUrl; - public $commandlinesFileName; - public $continueOnException; - public $dataflowApiVersion; - public $harnessCommand; - public $languageHint; - public $logDir; - public $logToSerialconsole; - public $logUploadLocation; - public $oauthScopes; - protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; - protected $parallelWorkerSettingsDataType = ''; - public $streamingWorkerMainClass; - public $taskGroup; - public $taskUser; - public $tempStoragePrefix; - public $vmId; - public $workflowFileName; - - - public function setAlsologtostderr($alsologtostderr) - { - $this->alsologtostderr = $alsologtostderr; - } - public function getAlsologtostderr() - { - return $this->alsologtostderr; - } - public function setBaseTaskDir($baseTaskDir) - { - $this->baseTaskDir = $baseTaskDir; - } - public function getBaseTaskDir() - { - return $this->baseTaskDir; - } - public function setBaseUrl($baseUrl) - { - $this->baseUrl = $baseUrl; - } - public function getBaseUrl() - { - return $this->baseUrl; - } - public function setCommandlinesFileName($commandlinesFileName) - { - $this->commandlinesFileName = $commandlinesFileName; - } - public function getCommandlinesFileName() - { - return $this->commandlinesFileName; - } - public function setContinueOnException($continueOnException) - { - $this->continueOnException = $continueOnException; - } - public function getContinueOnException() - { - return $this->continueOnException; - } - public function setDataflowApiVersion($dataflowApiVersion) - { - $this->dataflowApiVersion = $dataflowApiVersion; - } - public function getDataflowApiVersion() - { - return $this->dataflowApiVersion; - } - public function setHarnessCommand($harnessCommand) - { - $this->harnessCommand = $harnessCommand; - } - public function getHarnessCommand() - { - return $this->harnessCommand; - } - public function setLanguageHint($languageHint) - { - $this->languageHint = $languageHint; - } - public function getLanguageHint() - { - return $this->languageHint; - } - public function setLogDir($logDir) - { - $this->logDir = $logDir; - } - public function getLogDir() - { - return $this->logDir; - } - public function setLogToSerialconsole($logToSerialconsole) - { - $this->logToSerialconsole = $logToSerialconsole; - } - public function getLogToSerialconsole() - { - return $this->logToSerialconsole; - } - public function setLogUploadLocation($logUploadLocation) - { - $this->logUploadLocation = $logUploadLocation; - } - public function getLogUploadLocation() - { - return $this->logUploadLocation; - } - public function setOauthScopes($oauthScopes) - { - $this->oauthScopes = $oauthScopes; - } - public function getOauthScopes() - { - return $this->oauthScopes; - } - public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings) - { - $this->parallelWorkerSettings = $parallelWorkerSettings; - } - public function getParallelWorkerSettings() - { - return $this->parallelWorkerSettings; - } - public function setStreamingWorkerMainClass($streamingWorkerMainClass) - { - $this->streamingWorkerMainClass = $streamingWorkerMainClass; - } - public function getStreamingWorkerMainClass() - { - return $this->streamingWorkerMainClass; - } - public function setTaskGroup($taskGroup) - { - $this->taskGroup = $taskGroup; - } - public function getTaskGroup() - { - return $this->taskGroup; - } - public function setTaskUser($taskUser) - { - $this->taskUser = $taskUser; - } - public function getTaskUser() - { - return $this->taskUser; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setVmId($vmId) - { - $this->vmId = $vmId; - } - public function getVmId() - { - return $this->vmId; - } - public function setWorkflowFileName($workflowFileName) - { - $this->workflowFileName = $workflowFileName; - } - public function getWorkflowFileName() - { - return $this->workflowFileName; - } -} - -class Google_Service_Dataflow_TopologyConfig extends Google_Collection -{ - protected $collection_key = 'dataDiskAssignments'; - protected $internal_gapi_mappings = array( - ); - protected $computationsType = 'Google_Service_Dataflow_ComputationTopology'; - protected $computationsDataType = 'array'; - protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; - protected $dataDiskAssignmentsDataType = 'array'; - - - public function setComputations($computations) - { - $this->computations = $computations; - } - public function getComputations() - { - return $this->computations; - } - public function setDataDiskAssignments($dataDiskAssignments) - { - $this->dataDiskAssignments = $dataDiskAssignments; - } - public function getDataDiskAssignments() - { - return $this->dataDiskAssignments; - } -} - -class Google_Service_Dataflow_WorkItem extends Google_Collection -{ - protected $collection_key = 'packages'; - protected $internal_gapi_mappings = array( - ); - public $configuration; - public $id; - public $jobId; - public $leaseExpireTime; - protected $mapTaskType = 'Google_Service_Dataflow_MapTask'; - protected $mapTaskDataType = ''; - protected $packagesType = 'Google_Service_Dataflow_Package'; - protected $packagesDataType = 'array'; - public $projectId; - public $reportStatusInterval; - protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask'; - protected $seqMapTaskDataType = ''; - protected $shellTaskType = 'Google_Service_Dataflow_ShellTask'; - protected $shellTaskDataType = ''; - protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest'; - protected $sourceOperationTaskDataType = ''; - protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask'; - protected $streamingSetupTaskDataType = ''; - - - public function setConfiguration($configuration) - { - $this->configuration = $configuration; - } - public function getConfiguration() - { - return $this->configuration; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } - public function setLeaseExpireTime($leaseExpireTime) - { - $this->leaseExpireTime = $leaseExpireTime; - } - public function getLeaseExpireTime() - { - return $this->leaseExpireTime; - } - public function setMapTask(Google_Service_Dataflow_MapTask $mapTask) - { - $this->mapTask = $mapTask; - } - public function getMapTask() - { - return $this->mapTask; - } - public function setPackages($packages) - { - $this->packages = $packages; - } - public function getPackages() - { - return $this->packages; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReportStatusInterval($reportStatusInterval) - { - $this->reportStatusInterval = $reportStatusInterval; - } - public function getReportStatusInterval() - { - return $this->reportStatusInterval; - } - public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask) - { - $this->seqMapTask = $seqMapTask; - } - public function getSeqMapTask() - { - return $this->seqMapTask; - } - public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask) - { - $this->shellTask = $shellTask; - } - public function getShellTask() - { - return $this->shellTask; - } - public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask) - { - $this->sourceOperationTask = $sourceOperationTask; - } - public function getSourceOperationTask() - { - return $this->sourceOperationTask; - } - public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask) - { - $this->streamingSetupTask = $streamingSetupTask; - } - public function getStreamingSetupTask() - { - return $this->streamingSetupTask; - } -} - -class Google_Service_Dataflow_WorkItemServiceState extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $harnessData; - public $leaseExpireTime; - public $reportStatusInterval; - protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; - protected $suggestedStopPointDataType = ''; - protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; - protected $suggestedStopPositionDataType = ''; - - - public function setHarnessData($harnessData) - { - $this->harnessData = $harnessData; - } - public function getHarnessData() - { - return $this->harnessData; - } - public function setLeaseExpireTime($leaseExpireTime) - { - $this->leaseExpireTime = $leaseExpireTime; - } - public function getLeaseExpireTime() - { - return $this->leaseExpireTime; - } - public function setReportStatusInterval($reportStatusInterval) - { - $this->reportStatusInterval = $reportStatusInterval; - } - public function getReportStatusInterval() - { - return $this->reportStatusInterval; - } - public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) - { - $this->suggestedStopPoint = $suggestedStopPoint; - } - public function getSuggestedStopPoint() - { - return $this->suggestedStopPoint; - } - public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition) - { - $this->suggestedStopPosition = $suggestedStopPosition; - } - public function getSuggestedStopPosition() - { - return $this->suggestedStopPosition; - } -} - -class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model -{ -} - -class Google_Service_Dataflow_WorkItemStatus extends Google_Collection -{ - protected $collection_key = 'metricUpdates'; - protected $internal_gapi_mappings = array( - ); - public $completed; - protected $errorsType = 'Google_Service_Dataflow_Status'; - protected $errorsDataType = 'array'; - protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate'; - protected $metricUpdatesDataType = 'array'; - protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; - protected $progressDataType = ''; - public $reportIndex; - public $requestedLeaseDuration; - protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse'; - protected $sourceOperationResponseDataType = ''; - protected $stopPositionType = 'Google_Service_Dataflow_Position'; - protected $stopPositionDataType = ''; - public $workItemId; - - - public function setCompleted($completed) - { - $this->completed = $completed; - } - public function getCompleted() - { - return $this->completed; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setMetricUpdates($metricUpdates) - { - $this->metricUpdates = $metricUpdates; - } - public function getMetricUpdates() - { - return $this->metricUpdates; - } - public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setReportIndex($reportIndex) - { - $this->reportIndex = $reportIndex; - } - public function getReportIndex() - { - return $this->reportIndex; - } - public function setRequestedLeaseDuration($requestedLeaseDuration) - { - $this->requestedLeaseDuration = $requestedLeaseDuration; - } - public function getRequestedLeaseDuration() - { - return $this->requestedLeaseDuration; - } - public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse) - { - $this->sourceOperationResponse = $sourceOperationResponse; - } - public function getSourceOperationResponse() - { - return $this->sourceOperationResponse; - } - public function setStopPosition(Google_Service_Dataflow_Position $stopPosition) - { - $this->stopPosition = $stopPosition; - } - public function getStopPosition() - { - return $this->stopPosition; - } - public function setWorkItemId($workItemId) - { - $this->workItemId = $workItemId; - } - public function getWorkItemId() - { - return $this->workItemId; - } -} - -class Google_Service_Dataflow_WorkerPool extends Google_Collection -{ - protected $collection_key = 'packages'; - protected $internal_gapi_mappings = array( - ); - protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings'; - protected $autoscalingSettingsDataType = ''; - protected $dataDisksType = 'Google_Service_Dataflow_Disk'; - protected $dataDisksDataType = 'array'; - public $defaultPackageSet; - public $diskSizeGb; - public $diskSourceImage; - public $kind; - public $machineType; - public $metadata; - public $numWorkers; - public $onHostMaintenance; - protected $packagesType = 'Google_Service_Dataflow_Package'; - protected $packagesDataType = 'array'; - protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; - protected $taskrunnerSettingsDataType = ''; - public $teardownPolicy; - public $zone; - - - public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings) - { - $this->autoscalingSettings = $autoscalingSettings; - } - public function getAutoscalingSettings() - { - return $this->autoscalingSettings; - } - public function setDataDisks($dataDisks) - { - $this->dataDisks = $dataDisks; - } - public function getDataDisks() - { - return $this->dataDisks; - } - public function setDefaultPackageSet($defaultPackageSet) - { - $this->defaultPackageSet = $defaultPackageSet; - } - public function getDefaultPackageSet() - { - return $this->defaultPackageSet; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setDiskSourceImage($diskSourceImage) - { - $this->diskSourceImage = $diskSourceImage; - } - public function getDiskSourceImage() - { - return $this->diskSourceImage; - } - 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($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setNumWorkers($numWorkers) - { - $this->numWorkers = $numWorkers; - } - public function getNumWorkers() - { - return $this->numWorkers; - } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } - public function setPackages($packages) - { - $this->packages = $packages; - } - public function getPackages() - { - return $this->packages; - } - public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) - { - $this->taskrunnerSettings = $taskrunnerSettings; - } - public function getTaskrunnerSettings() - { - return $this->taskrunnerSettings; - } - public function setTeardownPolicy($teardownPolicy) - { - $this->teardownPolicy = $teardownPolicy; - } - public function getTeardownPolicy() - { - return $this->teardownPolicy; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model -{ -} - -class Google_Service_Dataflow_WorkerSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $baseUrl; - public $reportingEnabled; - public $servicePath; - public $shuffleServicePath; - public $tempStoragePrefix; - public $workerId; - - - public function setBaseUrl($baseUrl) - { - $this->baseUrl = $baseUrl; - } - public function getBaseUrl() - { - return $this->baseUrl; - } - public function setReportingEnabled($reportingEnabled) - { - $this->reportingEnabled = $reportingEnabled; - } - public function getReportingEnabled() - { - return $this->reportingEnabled; - } - public function setServicePath($servicePath) - { - $this->servicePath = $servicePath; - } - public function getServicePath() - { - return $this->servicePath; - } - public function setShuffleServicePath($shuffleServicePath) - { - $this->shuffleServicePath = $shuffleServicePath; - } - public function getShuffleServicePath() - { - return $this->shuffleServicePath; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_WriteInstruction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - protected $sinkType = 'Google_Service_Dataflow_Sink'; - protected $sinkDataType = ''; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setSink(Google_Service_Dataflow_Sink $sink) - { - $this->sink = $sink; - } - public function getSink() - { - return $this->sink; - } -} From a1cf8a561139ee97a3314061ccc2d90fb28e5494 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 20 Feb 2015 03:47:22 -0800 Subject: [PATCH 0634/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From c7c1b3722e3e521e77da6cb9cfa6d9b5e68ca15e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 21 Feb 2015 03:48:19 -0800 Subject: [PATCH 0635/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 1759a827b..2e23a435f 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -955,6 +955,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'relevanceLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), 'forMine' => array( 'location' => 'query', 'type' => 'boolean', @@ -2966,6 +2970,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * 720p, though higher resolutions, like 1080p, might also be available. * @opt_param string videoDuration The videoDuration parameter filters video * search results based on their duration. + * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs + * the API to return search results that are most relevant to the specified + * language. The parameter value is typically an ISO 639-1 two-letter language + * code. However, you should use the values zh-Hans for simplified Chinese and + * zh-Hant for traditional Chinese. Please note that results in other languages + * will still be returned if they are highly relevant to the search query term. * @opt_param bool forMine The forMine parameter restricts the search to only * retrieve videos owned by the authenticated user. If you set this parameter to * true, then the type parameter's value must also be set to video. From 82c16d0654cdbfd784bcca53b39d9d834fb8bd7a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 21 Feb 2015 03:48:19 -0800 Subject: [PATCH 0636/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 29b648375885427c7b6dc0db1678cfb80dfd50ce Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 23 Feb 2015 03:50:07 -0800 Subject: [PATCH 0637/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index e4b857b49..28f400301 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -951,6 +951,8 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model public $actionType; public $creationTimestamp; public $description; + protected $errorType = 'Google_Service_Replicapoolupdater_RollingUpdateError'; + protected $errorDataType = ''; public $id; public $instanceGroup; public $instanceGroupManager; @@ -989,6 +991,14 @@ public function getDescription() { return $this->description; } + public function setError(Google_Service_Replicapoolupdater_RollingUpdateError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } public function setId($id) { $this->id = $id; @@ -1079,6 +1089,60 @@ public function getUser() } } +class Google_Service_Replicapoolupdater_RollingUpdateError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Replicapoolupdater_RollingUpdateErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_RollingUpdateErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Replicapoolupdater_RollingUpdateList extends Google_Collection { protected $collection_key = 'items'; @@ -1129,12 +1193,24 @@ class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model { protected $internal_gapi_mappings = array( ); + public $autoPauseAfterInstances; protected $canaryType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary'; protected $canaryDataType = ''; + public $instanceStartupTimeoutSec; public $maxNumConcurrentInstances; + public $maxNumFailedInstances; + public $minInstanceUpdateTimeSec; public $sleepAfterInstanceRestartSec; + public function setAutoPauseAfterInstances($autoPauseAfterInstances) + { + $this->autoPauseAfterInstances = $autoPauseAfterInstances; + } + public function getAutoPauseAfterInstances() + { + return $this->autoPauseAfterInstances; + } public function setCanary(Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary $canary) { $this->canary = $canary; @@ -1143,6 +1219,14 @@ public function getCanary() { return $this->canary; } + public function setInstanceStartupTimeoutSec($instanceStartupTimeoutSec) + { + $this->instanceStartupTimeoutSec = $instanceStartupTimeoutSec; + } + public function getInstanceStartupTimeoutSec() + { + return $this->instanceStartupTimeoutSec; + } public function setMaxNumConcurrentInstances($maxNumConcurrentInstances) { $this->maxNumConcurrentInstances = $maxNumConcurrentInstances; @@ -1151,6 +1235,22 @@ public function getMaxNumConcurrentInstances() { return $this->maxNumConcurrentInstances; } + public function setMaxNumFailedInstances($maxNumFailedInstances) + { + $this->maxNumFailedInstances = $maxNumFailedInstances; + } + public function getMaxNumFailedInstances() + { + return $this->maxNumFailedInstances; + } + public function setMinInstanceUpdateTimeSec($minInstanceUpdateTimeSec) + { + $this->minInstanceUpdateTimeSec = $minInstanceUpdateTimeSec; + } + public function getMinInstanceUpdateTimeSec() + { + return $this->minInstanceUpdateTimeSec; + } public function setSleepAfterInstanceRestartSec($sleepAfterInstanceRestartSec) { $this->sleepAfterInstanceRestartSec = $sleepAfterInstanceRestartSec; From 53c76c490f6ed525da7d206b6a1f77d0739a76d0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 23 Feb 2015 03:50:07 -0800 Subject: [PATCH 0638/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 91138af25..15071958b 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -4225,6 +4225,11 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $description; protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; protected $destinationsDataType = 'array'; + public $displayAdsId; + public $displayAdsLink; + public $displayAdsSimilarIds; + public $displayAdsTitle; + public $displayAdsValue; public $energyEfficiencyClass; public $expirationDate; public $gender; @@ -4457,6 +4462,46 @@ public function getDestinations() { return $this->destinations; } + public function setDisplayAdsId($displayAdsId) + { + $this->displayAdsId = $displayAdsId; + } + public function getDisplayAdsId() + { + return $this->displayAdsId; + } + public function setDisplayAdsLink($displayAdsLink) + { + $this->displayAdsLink = $displayAdsLink; + } + public function getDisplayAdsLink() + { + return $this->displayAdsLink; + } + public function setDisplayAdsSimilarIds($displayAdsSimilarIds) + { + $this->displayAdsSimilarIds = $displayAdsSimilarIds; + } + public function getDisplayAdsSimilarIds() + { + return $this->displayAdsSimilarIds; + } + public function setDisplayAdsTitle($displayAdsTitle) + { + $this->displayAdsTitle = $displayAdsTitle; + } + public function getDisplayAdsTitle() + { + return $this->displayAdsTitle; + } + public function setDisplayAdsValue($displayAdsValue) + { + $this->displayAdsValue = $displayAdsValue; + } + public function getDisplayAdsValue() + { + return $this->displayAdsValue; + } public function setEnergyEfficiencyClass($energyEfficiencyClass) { $this->energyEfficiencyClass = $energyEfficiencyClass; @@ -5136,6 +5181,7 @@ class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Googl public $fetchStatus; public $id; public $location; + public $severity; public $timestamp; public $valueOnLandingPage; public $valueProvided; @@ -5173,6 +5219,14 @@ public function getLocation() { return $this->location; } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } public function setTimestamp($timestamp) { $this->timestamp = $timestamp; From b0cbb0124789c4c47aea0c61200d969dabaae2bd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 23 Feb 2015 03:50:08 -0800 Subject: [PATCH 0639/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 5862448e5f21c5c0fc2575a640098604ff0c1c6a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 23 Feb 2015 03:50:08 -0800 Subject: [PATCH 0640/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index a0792f622..71e75ef7a 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -862,6 +862,7 @@ class Google_Service_Fitness_DataTypeField extends Google_Model ); public $format; public $name; + public $optional; public function setFormat($format) @@ -880,6 +881,14 @@ public function getName() { return $this->name; } + public function setOptional($optional) + { + $this->optional = $optional; + } + public function getOptional() + { + return $this->optional; + } } class Google_Service_Fitness_Dataset extends Google_Collection From 7aa60bbcefdf62ff4c6d82291f1ab29290fa7389 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 11:16:00 -0800 Subject: [PATCH 0641/1274] Temp deletion of sql admin --- src/Google/Service/SQLAdmin.php | 3314 ------------------------------- 1 file changed, 3314 deletions(-) delete mode 100644 src/Google/Service/SQLAdmin.php diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php deleted file mode 100644 index 915c8a5dc..000000000 --- a/src/Google/Service/SQLAdmin.php +++ /dev/null @@ -1,3314 +0,0 @@ - - * API for Cloud SQL database instance management.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $databases; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - public $users; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta4/'; - $this->version = 'v1beta4'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->databases = new Google_Service_SQLAdmin_Databases_Resource( - $this, - $this->serviceName, - 'databases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/{instance}/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'startReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/startReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stopReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/stopReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_SQLAdmin_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $backupRuns = $sqladminService->backupRuns; - * - */ -class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a resource containing information about a backup run. - * (backupRuns.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $id The ID of this Backup Run. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_BackupRun - */ - public function get($project, $instance, $id, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); - } - - /** - * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. - * (backupRuns.listBackupRuns) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of backup runs per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_BackupRunsListResponse - */ - public function listBackupRuns($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); - } -} - -/** - * The "databases" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $databases = $sqladminService->databases; - * - */ -class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource -{ - - /** - * Deletes a resource containing information about a database inside a Cloud SQL - * instance. (databases.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be deleted in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a database inside a Cloud - * SQL instance. (databases.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Database - */ - public function get($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); - } - - /** - * Inserts a resource containing information about a database inside a Cloud SQL - * instance. (databases.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists databases in the specified Cloud SQL instance. - * (databases.listDatabases) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabasesListResponse - */ - public function listDatabases($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. This method supports patch semantics. (databases.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. (databases.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "flags" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $flags = $sqladminService->flags; - * - */ -class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource -{ - - /** - * List all available database flags for Google Cloud SQL instances. - * (flags.listFlags) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_FlagsListResponse - */ - public function listFlags($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $instances = $sqladminService->instances; - * - */ -class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource -{ - - /** - * Creates a Cloud SQL instance as a clone of the source instance. - * (instances.cloneInstances) - * - * @param string $project Project ID of the source as well as the clone Cloud - * SQL instance. - * @param string $instance The ID of the Cloud SQL instance to be cloned - * (source). This does not include the project ID. - * @param Google_InstancesCloneRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes a Cloud SQL instance. (instances.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) - * - * @param string $project Project ID of the project that contains the instance - * to be exported. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesExportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a Cloud SQL instance. - * (instances.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabaseInstance - */ - public function get($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); - } - - /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud - * Storage. (instances.import) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesImportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new Cloud SQL instance. (instances.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists instances under a given project in the alphabetical order of the - * instance name. (instances.listInstances) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @opt_param string maxResults The maximum number of results to return per - * response. - * @return Google_Service_SQLAdmin_InstancesListResponse - */ - public function listInstances($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch.. This method supports patch - * semantics. (instances.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Promotes the read replica instance to be a stand-alone Cloud SQL instance. - * (instances.promoteReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function promoteReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function resetSslConfig($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restarts a Cloud SQL instance. (instances.restart) - * - * @param string $project Project ID of the project that contains the instance - * to be restarted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restart($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesRestoreBackupRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Starts the replication in the read replica instance. (instances.startReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function startReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Stops the replication in the read replica instance. (instances.stopReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function stopReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch. (instances.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $operations = $sqladminService->operations; - * - */ -class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an instance operation that has been performed on an instance. - * (operations.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $operation Instance operation ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists all instance operations that have been performed on the given Cloud SQL - * instance in the reverse chronological order of the start time. - * (operations.listOperations) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of operations per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_OperationsListResponse - */ - public function listOperations($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); - } -} - -/** - * The "sslCerts" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $sslCerts = $sqladminService->sslCerts; - * - */ -class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource -{ - - /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a particular SSL certificate. Does not include the private key - * (required for usage). The private key must be saved from the response to - * initial creation. (sslCerts.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCert - */ - public function get($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); - } - - /** - * Creates an SSL certificate and returns it along with the private key and - * server certificate authority. The new certificate will not be usable until - * the instance is restarted. (sslCerts.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_SslCertsInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsInsertResponse - */ - public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); - } - - /** - * Lists all of the current SSL certificates for the instance. - * (sslCerts.listSslCerts) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsListResponse - */ - public function listSslCerts($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); - } -} - -/** - * The "tiers" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $tiers = $sqladminService->tiers; - * - */ -class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource -{ - - /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) - * - * @param string $project Project ID of the project for which to list tiers. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_TiersListResponse - */ - public function listTiers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $users = $sqladminService->users; - * - */ -class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource -{ - - /** - * Deletes a user from a Cloud SQL instance. (users.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $host, $name, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new user in a Cloud SQL instance. (users.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists users in the specified Cloud SQL instance. (users.listUsers) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_UsersListResponse - */ - public function listUsers($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); - } - - /** - * Updates an existing user in a Cloud SQL instance. (users.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - - - - -class Google_Service_SQLAdmin_AclEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expirationTime; - public $kind; - public $name; - public $value; - - - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - 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 setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binaryLogEnabled; - public $enabled; - public $kind; - public $startTime; - - - public function setBinaryLogEnabled($binaryLogEnabled) - { - $this->binaryLogEnabled = $binaryLogEnabled; - } - public function getBinaryLogEnabled() - { - return $this->binaryLogEnabled; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_SQLAdmin_BackupRun extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - public $id; - public $instance; - public $kind; - public $selfLink; - public $startTime; - public $status; - public $windowStartTime; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function 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 setWindowStartTime($windowStartTime) - { - $this->windowStartTime = $windowStartTime; - } - public function getWindowStartTime() - { - return $this->windowStartTime; - } -} - -class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binLogFileName; - public $binLogPosition; - public $kind; - - - public function setBinLogFileName($binLogFileName) - { - $this->binLogFileName = $binLogFileName; - } - public function getBinLogFileName() - { - return $this->binLogFileName; - } - public function setBinLogPosition($binLogPosition) - { - $this->binLogPosition = $binLogPosition; - } - public function getBinLogPosition() - { - return $this->binLogPosition; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_CloneContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; - protected $binLogCoordinatesDataType = ''; - public $destinationInstanceName; - public $kind; - - - public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) - { - $this->binLogCoordinates = $binLogCoordinates; - } - public function getBinLogCoordinates() - { - return $this->binLogCoordinates; - } - public function setDestinationInstanceName($destinationInstanceName) - { - $this->destinationInstanceName = $destinationInstanceName; - } - public function getDestinationInstanceName() - { - return $this->destinationInstanceName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Database extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $charset; - public $collation; - public $etag; - public $instance; - public $kind; - public $name; - public $project; - public $selfLink; - - - public function setCharset($charset) - { - $this->charset = $charset; - } - public function getCharset() - { - return $this->charset; - } - public function setCollation($collation) - { - $this->collation = $collation; - } - public function getCollation() - { - return $this->collation; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_SQLAdmin_DatabaseInstance extends Google_Collection -{ - protected $collection_key = 'replicaNames'; - protected $internal_gapi_mappings = array( - ); - public $currentDiskSize; - public $databaseVersion; - public $etag; - public $instanceType; - protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; - protected $ipAddressesDataType = 'array'; - public $ipv6Address; - public $kind; - public $masterInstanceName; - public $maxDiskSize; - public $name; - public $project; - public $region; - public $replicaNames; - public $selfLink; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - public $serviceAccountEmailAddress; - protected $settingsType = 'Google_Service_SQLAdmin_Settings'; - protected $settingsDataType = ''; - public $state; - - - public function setCurrentDiskSize($currentDiskSize) - { - $this->currentDiskSize = $currentDiskSize; - } - public function getCurrentDiskSize() - { - return $this->currentDiskSize; - } - public function setDatabaseVersion($databaseVersion) - { - $this->databaseVersion = $databaseVersion; - } - public function getDatabaseVersion() - { - return $this->databaseVersion; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstanceType($instanceType) - { - $this->instanceType = $instanceType; - } - public function getInstanceType() - { - return $this->instanceType; - } - public function setIpAddresses($ipAddresses) - { - $this->ipAddresses = $ipAddresses; - } - public function getIpAddresses() - { - return $this->ipAddresses; - } - public function setIpv6Address($ipv6Address) - { - $this->ipv6Address = $ipv6Address; - } - public function getIpv6Address() - { - return $this->ipv6Address; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMasterInstanceName($masterInstanceName) - { - $this->masterInstanceName = $masterInstanceName; - } - public function getMasterInstanceName() - { - return $this->masterInstanceName; - } - public function setMaxDiskSize($maxDiskSize) - { - $this->maxDiskSize = $maxDiskSize; - } - public function getMaxDiskSize() - { - return $this->maxDiskSize; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setReplicaNames($replicaNames) - { - $this->replicaNames = $replicaNames; - } - public function getReplicaNames() - { - return $this->replicaNames; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } - public function setServiceAccountEmailAddress($serviceAccountEmailAddress) - { - $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; - } - public function getServiceAccountEmailAddress() - { - return $this->serviceAccountEmailAddress; - } - public function setSettings(Google_Service_SQLAdmin_Settings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Database'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ExportContext extends Google_Collection -{ - protected $collection_key = 'databases'; - protected $internal_gapi_mappings = array( - ); - protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; - protected $csvExportOptionsDataType = ''; - public $databases; - public $fileType; - public $kind; - protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; - protected $sqlExportOptionsDataType = ''; - public $uri; - - - public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) - { - $this->csvExportOptions = $csvExportOptions; - } - public function getCsvExportOptions() - { - return $this->csvExportOptions; - } - public function setDatabases($databases) - { - $this->databases = $databases; - } - public function getDatabases() - { - return $this->databases; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) - { - $this->sqlExportOptions = $sqlExportOptions; - } - public function getSqlExportOptions() - { - return $this->sqlExportOptions; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $selectQuery; - - - public function setSelectQuery($selectQuery) - { - $this->selectQuery = $selectQuery; - } - public function getSelectQuery() - { - return $this->selectQuery; - } -} - -class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection -{ - protected $collection_key = 'tables'; - protected $internal_gapi_mappings = array( - ); - public $tables; - - - public function setTables($tables) - { - $this->tables = $tables; - } - public function getTables() - { - return $this->tables; - } -} - -class Google_Service_SQLAdmin_Flag extends Google_Collection -{ - protected $collection_key = 'appliesTo'; - protected $internal_gapi_mappings = array( - ); - public $allowedStringValues; - public $appliesTo; - public $kind; - public $maxValue; - public $minValue; - public $name; - public $type; - - - public function setAllowedStringValues($allowedStringValues) - { - $this->allowedStringValues = $allowedStringValues; - } - public function getAllowedStringValues() - { - return $this->allowedStringValues; - } - public function setAppliesTo($appliesTo) - { - $this->appliesTo = $appliesTo; - } - public function getAppliesTo() - { - return $this->appliesTo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } - 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_SQLAdmin_FlagsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Flag'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ImportContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; - protected $csvImportOptionsDataType = ''; - public $database; - public $fileType; - public $kind; - public $uri; - - - public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) - { - $this->csvImportOptions = $csvImportOptions; - } - public function getCsvImportOptions() - { - return $this->csvImportOptions; - } - public function setDatabase($database) - { - $this->database = $database; - } - public function getDatabase() - { - return $this->database; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - public $columns; - public $table; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setTable($table) - { - $this->table = $table; - } - public function getTable() - { - return $this->table; - } -} - -class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; - protected $cloneContextDataType = ''; - - - public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) - { - $this->cloneContext = $cloneContext; - } - public function getCloneContext() - { - return $this->cloneContext; - } -} - -class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - - - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } -} - -class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - - - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } -} - -class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; - protected $restoreBackupContextDataType = ''; - - - public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) - { - $this->restoreBackupContext = $restoreBackupContext; - } - public function getRestoreBackupContext() - { - return $this->restoreBackupContext; - } -} - -class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection -{ - protected $collection_key = 'authorizedNetworks'; - protected $internal_gapi_mappings = array( - ); - protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; - protected $authorizedNetworksDataType = 'array'; - public $ipv4Enabled; - public $requireSsl; - - - public function setAuthorizedNetworks($authorizedNetworks) - { - $this->authorizedNetworks = $authorizedNetworks; - } - public function getAuthorizedNetworks() - { - return $this->authorizedNetworks; - } - public function setIpv4Enabled($ipv4Enabled) - { - $this->ipv4Enabled = $ipv4Enabled; - } - public function getIpv4Enabled() - { - return $this->ipv4Enabled; - } - public function setRequireSsl($requireSsl) - { - $this->requireSsl = $requireSsl; - } - public function getRequireSsl() - { - return $this->requireSsl; - } -} - -class Google_Service_SQLAdmin_IpMapping extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $timeToRetire; - - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setTimeToRetire($timeToRetire) - { - $this->timeToRetire = $timeToRetire; - } - public function getTimeToRetire() - { - return $this->timeToRetire; - } -} - -class Google_Service_SQLAdmin_LocationPreference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $followGaeApplication; - public $kind; - public $zone; - - - public function setFollowGaeApplication($followGaeApplication) - { - $this->followGaeApplication = $followGaeApplication; - } - public function getFollowGaeApplication() - { - return $this->followGaeApplication; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_SQLAdmin_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $selfLink; - public $startTime; - public $status; - public $targetId; - public $targetLink; - public $targetProject; - public $user; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - 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 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 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 setTargetProject($targetProject) - { - $this->targetProject = $targetProject; - } - public function getTargetProject() - { - return $this->targetProject; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_SQLAdmin_OperationError extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupRunId; - public $kind; - - - public function setBackupRunId($backupRunId) - { - $this->backupRunId = $backupRunId; - } - public function getBackupRunId() - { - return $this->backupRunId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Settings extends Google_Collection -{ - protected $collection_key = 'databaseFlags'; - protected $internal_gapi_mappings = array( - ); - public $activationPolicy; - public $authorizedGaeApplications; - protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = ''; - protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; - protected $databaseFlagsDataType = 'array'; - public $databaseReplicationEnabled; - protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; - protected $ipConfigurationDataType = ''; - public $kind; - protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; - protected $locationPreferenceDataType = ''; - public $pricingPlan; - public $replicationType; - public $settingsVersion; - public $tier; - - - public function setActivationPolicy($activationPolicy) - { - $this->activationPolicy = $activationPolicy; - } - public function getActivationPolicy() - { - return $this->activationPolicy; - } - public function setAuthorizedGaeApplications($authorizedGaeApplications) - { - $this->authorizedGaeApplications = $authorizedGaeApplications; - } - public function getAuthorizedGaeApplications() - { - return $this->authorizedGaeApplications; - } - public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDatabaseFlags($databaseFlags) - { - $this->databaseFlags = $databaseFlags; - } - public function getDatabaseFlags() - { - return $this->databaseFlags; - } - public function setDatabaseReplicationEnabled($databaseReplicationEnabled) - { - $this->databaseReplicationEnabled = $databaseReplicationEnabled; - } - public function getDatabaseReplicationEnabled() - { - return $this->databaseReplicationEnabled; - } - public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) - { - $this->ipConfiguration = $ipConfiguration; - } - public function getIpConfiguration() - { - return $this->ipConfiguration; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) - { - $this->locationPreference = $locationPreference; - } - public function getLocationPreference() - { - return $this->locationPreference; - } - public function setPricingPlan($pricingPlan) - { - $this->pricingPlan = $pricingPlan; - } - public function getPricingPlan() - { - return $this->pricingPlan; - } - public function setReplicationType($replicationType) - { - $this->replicationType = $replicationType; - } - public function getReplicationType() - { - return $this->replicationType; - } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } - public function getSettingsVersion() - { - return $this->settingsVersion; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_SslCert extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cert; - public $certSerialNumber; - public $commonName; - public $createTime; - public $expirationTime; - public $instance; - public $kind; - public $selfLink; - public $sha1Fingerprint; - - - public function setCert($cert) - { - $this->cert = $cert; - } - public function getCert() - { - return $this->cert; - } - public function setCertSerialNumber($certSerialNumber) - { - $this->certSerialNumber = $certSerialNumber; - } - public function getCertSerialNumber() - { - return $this->certSerialNumber; - } - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSha1Fingerprint($sha1Fingerprint) - { - $this->sha1Fingerprint = $sha1Fingerprint; - } - public function getSha1Fingerprint() - { - return $this->sha1Fingerprint; - } -} - -class Google_Service_SQLAdmin_SslCertDetail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; - protected $certInfoDataType = ''; - public $certPrivateKey; - - - public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) - { - $this->certInfo = $certInfo; - } - public function getCertInfo() - { - return $this->certInfo; - } - public function setCertPrivateKey($certPrivateKey) - { - $this->certPrivateKey = $certPrivateKey; - } - public function getCertPrivateKey() - { - return $this->certPrivateKey; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commonName; - - - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; - protected $clientCertDataType = ''; - public $kind; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - - - public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) - { - $this->clientCert = $clientCert; - } - public function getClientCert() - { - return $this->clientCert; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } -} - -class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Tier extends Google_Collection -{ - protected $collection_key = 'region'; - protected $internal_gapi_mappings = array( - "diskQuota" => "DiskQuota", - "rAM" => "RAM", - ); - public $diskQuota; - public $rAM; - public $kind; - public $region; - public $tier; - - - public function setDiskQuota($diskQuota) - { - $this->diskQuota = $diskQuota; - } - public function getDiskQuota() - { - return $this->diskQuota; - } - public function setRAM($rAM) - { - $this->rAM = $rAM; - } - public function getRAM() - { - return $this->rAM; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Tier'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $host; - public $instance; - public $kind; - public $name; - public $password; - public $project; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } -} - -class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} From 89df9a568750bce1f30c1121aabcc1e8337332b1 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 11:50:29 -0800 Subject: [PATCH 0642/1274] Tidy up Add note about tests to README Fix compute engine autoload reference Bump client version --- README.md | 4 ++++ src/Google/Auth/ComputeEngine.php | 2 +- src/Google/Client.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d43e8846a..5a5858f7c 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,10 @@ To avoid clashes with the autoloader, its best to update the function inside aut ## Code Quality ## +Run the PHPUnit tests with PHPUnit. You can configure and API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console. + + phpunit tests/ + Copy the ruleset.xml in style/ into a new directory named GAPI/ in your /usr/share/php/PHP/CodeSniffer/Standards (or appropriate equivalent directory), and run code sniffs with: diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php index dec39d3d4..0a392af8d 100644 --- a/src/Google/Auth/ComputeEngine.php +++ b/src/Google/Auth/ComputeEngine.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** * Authentication via built-in Compute Engine service accounts. diff --git a/src/Google/Client.php b/src/Google/Client.php index 98794b275..43700296d 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -26,7 +26,7 @@ */ class Google_Client { - const LIBVER = "1.1.2"; + const LIBVER = "1.1.3"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From c02f9658ec57c3f34ecd859ebdadf269adcc4cf3 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 11:52:15 -0800 Subject: [PATCH 0643/1274] Add prettyPrint standard param Fixes #396 --- src/Google/Service/Resource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 14b460717..f6e38e01b 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -40,6 +40,7 @@ class Google_Service_Resource 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), + 'prettyPrint' => array('type' => 'string', 'location' => 'query'), ); /** @var Google_Service $service */ From 2ef7c819d1f50473c7590bfa03441afc33e957ff Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 11:55:13 -0800 Subject: [PATCH 0644/1274] Remove stale authors Primarily to stop support requests from going to the wrong place (please use the github issue tracker or product support forum for API specific issues). --- src/Google/Auth/Simple.php | 2 -- src/Google/Client.php | 3 --- src/Google/Http/Batch.php | 2 +- src/Google/Http/CacheParser.php | 1 - src/Google/Http/MediaFileUpload.php | 4 ++-- src/Google/Http/REST.php | 3 --- src/Google/Service/Resource.php | 3 --- src/Google/Utils.php | 2 -- 8 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index 5514cf533..70c0d34b8 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -21,8 +21,6 @@ * Simple API access implementation. Can either be used to make requests * completely unauthenticated, or by using a Simple API Access developer * key. - * @author Chris Chabot - * @author Chirag Shah */ class Google_Auth_Simple extends Google_Auth_Abstract { diff --git a/src/Google/Client.php b/src/Google/Client.php index 43700296d..4326e9905 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -20,9 +20,6 @@ /** * The Google API Client * http://code.google.com/p/google-api-php-client/ - * - * @author Chris Chabot - * @author Chirag Shah */ class Google_Client { diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index a78c38d7c..00f2d5e64 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -18,7 +18,7 @@ require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** - * @author Chirag Shah + * Class to handle batched requests to the Google API service. */ class Google_Http_Batch { diff --git a/src/Google/Http/CacheParser.php b/src/Google/Http/CacheParser.php index 2fea46fe0..f1f0bad35 100644 --- a/src/Google/Http/CacheParser.php +++ b/src/Google/Http/CacheParser.php @@ -20,7 +20,6 @@ /** * Implement the caching directives specified in rfc2616. This * implementation is guided by the guidance offered in rfc2616-sec13. - * @author Chirag Shah */ class Google_Http_CacheParser { diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 7d6d5f1a1..abe030c02 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -18,8 +18,8 @@ require_once realpath(dirname(__FILE__) . '/../autoload.php'); /** - * @author Chirag Shah - * + * Manage large file uploads, which may be media but can be any type + * of sizable data. */ class Google_Http_MediaFileUpload { diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 05cc9f134..403b24788 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -19,9 +19,6 @@ /** * This class implements the RESTful transport of apiServiceRequest()'s - * - * @author Chris Chabot - * @author Chirag Shah */ class Google_Http_REST { diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index f6e38e01b..465db1582 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -22,9 +22,6 @@ * calling overloading (__call()), which on call will see if the method name (plus.activities.list) * is available in this service, and if so construct an apiHttpRequest representing it. * - * @author Chris Chabot - * @author Chirag Shah - * */ class Google_Service_Resource { diff --git a/src/Google/Utils.php b/src/Google/Utils.php index f5ef32cd4..2803daaa1 100644 --- a/src/Google/Utils.php +++ b/src/Google/Utils.php @@ -18,8 +18,6 @@ /** * Collection of static utility methods used for convenience across * the client library. - * - * @author Chirag Shah */ class Google_Utils { From be5c476e8df54a836a01f5c83203e2014eaf5d7a Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 12:00:09 -0800 Subject: [PATCH 0645/1274] Add note on hd param security Always prefer and ID token hd value rather than relying solely on setting the hd param during auth. --- src/Google/Auth/AssertionCredentials.php | 2 -- src/Google/Auth/OAuth2.php | 3 --- src/Google/Config.php | 7 ++++++- src/Google/Model.php | 2 -- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Google/Auth/AssertionCredentials.php b/src/Google/Auth/AssertionCredentials.php index 97ef4e0a1..39962b07d 100644 --- a/src/Google/Auth/AssertionCredentials.php +++ b/src/Google/Auth/AssertionCredentials.php @@ -19,8 +19,6 @@ /** * Credentials object used for OAuth 2.0 Signed JWT assertion grants. - * - * @author Chirag Shah */ class Google_Auth_AssertionCredentials { diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 0c72a643e..1a722dc7f 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -20,9 +20,6 @@ /** * Authentication class that deals with the OAuth 2 web-server authentication flow * - * @author Chris Chabot - * @author Chirag Shah - * */ class Google_Auth_OAuth2 extends Google_Auth_Abstract { diff --git a/src/Google/Config.php b/src/Google/Config.php index a924659a8..357a7fcff 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -380,7 +380,12 @@ public function setDeveloperKey($key) /** * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. + * restrict sign-in to accounts at that domain. + * + * This should not be used to ensure security on your application - check + * the hd values within an id token (@see Google_Auth_LoginTicket) after sign + * in to ensure that the user is from the domain you were expecting. + * * @param $hd string - the domain to use. */ public function setHostedDomain($hd) diff --git a/src/Google/Model.php b/src/Google/Model.php index 52e30d67c..3ef8f2ace 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -20,8 +20,6 @@ * from a given json schema. * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5 * - * @author Chirag Shah - * */ class Google_Model implements ArrayAccess { From 2b2db655601fd102235c7467075e1cd946de3446 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Tue, 24 Feb 2015 12:07:35 -0800 Subject: [PATCH 0646/1274] Update PageSpeed test to match API --- tests/pagespeed/PageSpeedTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pagespeed/PageSpeedTest.php b/tests/pagespeed/PageSpeedTest.php index 507fbf494..c912d64e9 100644 --- a/tests/pagespeed/PageSpeedTest.php +++ b/tests/pagespeed/PageSpeedTest.php @@ -33,7 +33,7 @@ public function testPageSpeed() $this->assertArrayHasKey('id', $result); $this->assertArrayHasKey('responseCode', $result); $this->assertArrayHasKey('title', $result); - $this->assertArrayHasKey('score', $result); + $this->assertArrayHasKey('score', $result->ruleGroups['SPEED']); $this->assertInstanceOf('Google_Service_Pagespeedonline_ResultPageStats', $result->pageStats); $this->assertArrayHasKey('minor', $result['version']); } From 857ffcefbfa7a25cd2230cb5bb04d691e42097c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 24 Feb 2015 22:56:05 +0200 Subject: [PATCH 0647/1274] avoid searching include path --- autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload.php b/autoload.php index 25af272d5..4e50f135f 100644 --- a/autoload.php +++ b/autoload.php @@ -23,4 +23,4 @@ $error = "google-api-php-client's autoloader was moved to src/Google/autoload.php in 1.1.3. This "; $error .= "redirect will be removed in 1.2. Please adjust your code to use the new location."; trigger_error($error, E_USER_DEPRECATED); -require_once 'src/Google/autoload.php'; +require_once dirname(__FILE__) . '/src/Google/autoload.php'; From d8de3185f9af19305e924cea7d5b127420515fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 24 Feb 2015 23:03:28 +0200 Subject: [PATCH 0648/1274] setup autoloader from classes only if no autoloader detected --- src/Google/Auth/Abstract.php | 4 +++- src/Google/Auth/AppIdentity.php | 4 +++- src/Google/Auth/AssertionCredentials.php | 4 +++- src/Google/Auth/ComputeEngine.php | 4 +++- src/Google/Auth/Exception.php | 4 +++- src/Google/Auth/LoginTicket.php | 4 +++- src/Google/Auth/OAuth2.php | 4 +++- src/Google/Auth/Simple.php | 4 +++- src/Google/Cache/Apc.php | 4 +++- src/Google/Cache/Exception.php | 4 +++- src/Google/Cache/File.php | 4 +++- src/Google/Cache/Memcache.php | 4 +++- src/Google/Cache/Null.php | 4 +++- src/Google/Client.php | 4 +++- src/Google/Collection.php | 4 +++- src/Google/Http/Batch.php | 4 +++- src/Google/Http/CacheParser.php | 4 +++- src/Google/Http/MediaFileUpload.php | 4 +++- src/Google/Http/REST.php | 4 +++- src/Google/Http/Request.php | 4 +++- src/Google/IO/Abstract.php | 4 +++- src/Google/IO/Curl.php | 4 +++- src/Google/IO/Exception.php | 4 +++- src/Google/IO/Stream.php | 4 +++- src/Google/Logger/Abstract.php | 4 +++- src/Google/Logger/Exception.php | 4 +++- src/Google/Logger/File.php | 4 +++- src/Google/Logger/Null.php | 4 +++- src/Google/Logger/Psr.php | 4 +++- src/Google/Service/Exception.php | 4 +++- src/Google/Service/Resource.php | 4 +++- src/Google/Signer/P12.php | 4 +++- src/Google/Task/Exception.php | 4 +++- src/Google/Task/Retryable.php | 4 +++- src/Google/Task/Runner.php | 4 +++- src/Google/Verifier/Pem.php | 4 +++- 36 files changed, 108 insertions(+), 36 deletions(-) diff --git a/src/Google/Auth/Abstract.php b/src/Google/Auth/Abstract.php index d0999374c..4cd7b551a 100644 --- a/src/Google/Auth/Abstract.php +++ b/src/Google/Auth/Abstract.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Abstract class for the Authentication in the API client diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 25d1271d0..0a437655c 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -22,7 +22,9 @@ */ use google\appengine\api\app_identity\AppIdentityService; -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Authentication via the Google App Engine App Identity service. diff --git a/src/Google/Auth/AssertionCredentials.php b/src/Google/Auth/AssertionCredentials.php index 39962b07d..831d374eb 100644 --- a/src/Google/Auth/AssertionCredentials.php +++ b/src/Google/Auth/AssertionCredentials.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Credentials object used for OAuth 2.0 Signed JWT assertion grants. diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php index 0a392af8d..608ffbd0d 100644 --- a/src/Google/Auth/ComputeEngine.php +++ b/src/Google/Auth/ComputeEngine.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Authentication via built-in Compute Engine service accounts. diff --git a/src/Google/Auth/Exception.php b/src/Google/Auth/Exception.php index be439552b..e4b75c14b 100644 --- a/src/Google/Auth/Exception.php +++ b/src/Google/Auth/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Auth_Exception extends Google_Exception { diff --git a/src/Google/Auth/LoginTicket.php b/src/Google/Auth/LoginTicket.php index 6415533df..371b3ce18 100644 --- a/src/Google/Auth/LoginTicket.php +++ b/src/Google/Auth/LoginTicket.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Class to hold information about an authenticated login. diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 1a722dc7f..5206e3b0b 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Authentication class that deals with the OAuth 2 web-server authentication flow diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index 70c0d34b8..69476c714 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Simple API access implementation. Can either be used to make requests diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php index 72eeb105f..67a64ddb0 100644 --- a/src/Google/Cache/Apc.php +++ b/src/Google/Cache/Apc.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A persistent storage class based on the APC cache, which is not diff --git a/src/Google/Cache/Exception.php b/src/Google/Cache/Exception.php index 9a73a8264..2d751d583 100644 --- a/src/Google/Cache/Exception.php +++ b/src/Google/Cache/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Cache_Exception extends Google_Exception { diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index b6d631a00..719a45e0c 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /* * This class implements a basic on disk storage. While that does diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index 2afce6713..4a415afa7 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A persistent storage class based on the memcache, which is not diff --git a/src/Google/Cache/Null.php b/src/Google/Cache/Null.php index 56c6edbb9..21b6a1cb3 100644 --- a/src/Google/Cache/Null.php +++ b/src/Google/Cache/Null.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A blank storage class, for cases where caching is not diff --git a/src/Google/Client.php b/src/Google/Client.php index 4326e9905..0bb597f3b 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * The Google API Client diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 639120a9e..01c24053f 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,6 +1,8 @@ */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_IO_Curl extends Google_IO_Abstract { diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php index 45effafec..da9342df3 100644 --- a/src/Google/IO/Exception.php +++ b/src/Google/IO/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_IO_Exception extends Google_Exception implements Google_Task_Retryable { diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index 28740bad8..5023d5308 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -21,7 +21,9 @@ * @author Stuart Langley */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_IO_Stream extends Google_IO_Abstract { diff --git a/src/Google/Logger/Abstract.php b/src/Google/Logger/Abstract.php index 9d07e58b9..d759b9579 100644 --- a/src/Google/Logger/Abstract.php +++ b/src/Google/Logger/Abstract.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Abstract logging class based on the PSR-3 standard. diff --git a/src/Google/Logger/Exception.php b/src/Google/Logger/Exception.php index f1a792725..6b0e87370 100644 --- a/src/Google/Logger/Exception.php +++ b/src/Google/Logger/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Logger_Exception extends Google_Exception { diff --git a/src/Google/Logger/File.php b/src/Google/Logger/File.php index a9efa4d02..78d761935 100644 --- a/src/Google/Logger/File.php +++ b/src/Google/Logger/File.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * File logging class based on the PSR-3 standard. diff --git a/src/Google/Logger/Null.php b/src/Google/Logger/Null.php index 0feb24ff0..62fa890c0 100644 --- a/src/Google/Logger/Null.php +++ b/src/Google/Logger/Null.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Null logger based on the PSR-3 standard. diff --git a/src/Google/Logger/Psr.php b/src/Google/Logger/Psr.php index da565ca62..20104e47f 100644 --- a/src/Google/Logger/Psr.php +++ b/src/Google/Logger/Psr.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Psr logging class based on the PSR-3 standard. diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index fa6f4f05e..65c945b73 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Service_Exception extends Google_Exception implements Google_Task_Retryable { diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 465db1582..0f7c44eb2 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Implements the actual methods/resources of the discovered Google API using magic function diff --git a/src/Google/Signer/P12.php b/src/Google/Signer/P12.php index ae0e047b3..ea007ec1d 100644 --- a/src/Google/Signer/P12.php +++ b/src/Google/Signer/P12.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Signs data. diff --git a/src/Google/Task/Exception.php b/src/Google/Task/Exception.php index f4390d737..231bf2b1d 100644 --- a/src/Google/Task/Exception.php +++ b/src/Google/Task/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Task_Exception extends Google_Exception { diff --git a/src/Google/Task/Retryable.php b/src/Google/Task/Retryable.php index 432a638ef..cd8bdec7b 100644 --- a/src/Google/Task/Retryable.php +++ b/src/Google/Task/Retryable.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Interface for checking how many times a given task can be retried following diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index 11a68075a..8851f5f41 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A task runner with exponential backoff support. diff --git a/src/Google/Verifier/Pem.php b/src/Google/Verifier/Pem.php index f217c92fc..3d6e0fd2d 100644 --- a/src/Google/Verifier/Pem.php +++ b/src/Google/Verifier/Pem.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Verifies signatures using PEM encoded certificates. From b29bd0d4b645bfd2a58acb9cf98cdc07d123d927 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Feb 2015 03:51:59 -0800 Subject: [PATCH 0649/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 43fb329ff..3e70e8a11 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -1409,8 +1409,8 @@ class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_ /** * Creates a new APK without uploading the APK itself to Google Play, instead * hosting the APK at a specified URL. This function is only available to - * enterprises using Android for Work, for applications distributed within the - * enterprise Private Channel. (apks.addexternallyhosted) + * enterprises using Google Play for work whose application is configured to + * restrict distribution to the enterprise domain. (apks.addexternallyhosted) * * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". From 4b1b666e6365a3d78649782d1a0f0dede08f8777 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Feb 2015 03:51:59 -0800 Subject: [PATCH 0650/1274] Added service SQLAdmin.php --- src/Google/Service/SQLAdmin.php | 3314 +++++++++++++++++++++++++++++++ 1 file changed, 3314 insertions(+) create mode 100644 src/Google/Service/SQLAdmin.php diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php new file mode 100644 index 000000000..3585349e9 --- /dev/null +++ b/src/Google/Service/SQLAdmin.php @@ -0,0 +1,3314 @@ + + * API for Cloud SQL database instance management.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_SQLAdmin extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google SQL Service instances. */ + const SQLSERVICE_ADMIN = + "https://www.googleapis.com/auth/sqlservice.admin"; + + public $backupRuns; + public $databases; + public $flags; + public $instances; + public $operations; + public $sslCerts; + public $tiers; + public $users; + + + /** + * Constructs the internal representation of the SQLAdmin service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'sql/v1beta4/'; + $this->version = 'v1beta4'; + $this->serviceName = 'sqladmin'; + + $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( + $this, + $this->serviceName, + 'backupRuns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->databases = new Google_Service_SQLAdmin_Databases_Resource( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->flags = new Google_Service_SQLAdmin_Flags_Resource( + $this, + $this->serviceName, + 'flags', + array( + 'methods' => array( + 'list' => array( + 'path' => 'flags', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->instances = new Google_Service_SQLAdmin_Instances_Resource( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'clone' => array( + 'path' => 'projects/{project}/instances/{instance}/clone', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'export' => array( + 'path' => 'projects/{project}/instances/{instance}/export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'import' => array( + 'path' => 'projects/{project}/instances/{instance}/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'promoteReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/promoteReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resetSslConfig' => array( + 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'restart' => array( + 'path' => 'projects/{project}/instances/{instance}/restart', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'restoreBackup' => array( + 'path' => 'projects/{project}/instances/{instance}/restoreBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'startReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/startReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'stopReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/stopReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_SQLAdmin_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( + $this, + $this->serviceName, + 'sslCerts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( + $this, + $this->serviceName, + 'tiers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects/{project}/tiers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_SQLAdmin_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "backupRuns" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $backupRuns = $sqladminService->backupRuns; + * + */ +class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a resource containing information about a backup run. + * (backupRuns.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $id The ID of this Backup Run. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_BackupRun + */ + public function get($project, $instance, $id, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); + } + + /** + * Lists all backup runs associated with a given instance and configuration in + * the reverse chronological order of the enqueued time. + * (backupRuns.listBackupRuns) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum number of backup runs per response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @return Google_Service_SQLAdmin_BackupRunsListResponse + */ + public function listBackupRuns($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); + } +} + +/** + * The "databases" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $databases = $sqladminService->databases; + * + */ +class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource +{ + + /** + * Deletes a resource containing information about a database inside a Cloud SQL + * instance. (databases.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be deleted in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $database, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Retrieves a resource containing information about a database inside a Cloud + * SQL instance. (databases.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Database + */ + public function get($project, $instance, $database, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); + } + + /** + * Inserts a resource containing information about a database inside a Cloud SQL + * instance. (databases.insert) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists databases in the specified Cloud SQL instance. + * (databases.listDatabases) + * + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_DatabasesListResponse + */ + public function listDatabases($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. This method supports patch semantics. (databases.patch) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. (databases.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + +/** + * The "flags" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $flags = $sqladminService->flags; + * + */ +class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource +{ + + /** + * List all available database flags for Google Cloud SQL instances. + * (flags.listFlags) + * + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_FlagsListResponse + */ + public function listFlags($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); + } +} + +/** + * The "instances" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $instances = $sqladminService->instances; + * + */ +class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource +{ + + /** + * Creates a Cloud SQL instance as a clone of the source instance. + * (instances.cloneInstances) + * + * @param string $project Project ID of the source as well as the clone Cloud + * SQL instance. + * @param string $instance The ID of the Cloud SQL instance to be cloned + * (source). This does not include the project ID. + * @param Google_InstancesCloneRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Deletes a Cloud SQL instance. (instances.delete) + * + * @param string $project Project ID of the project that contains the instance + * to be deleted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a + * MySQL dump file. (instances.export) + * + * @param string $project Project ID of the project that contains the instance + * to be exported. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_InstancesExportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Retrieves a resource containing information about a Cloud SQL instance. + * (instances.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_DatabaseInstance + */ + public function get($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); + } + + /** + * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + * Storage. (instances.import) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_InstancesImportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Creates a new Cloud SQL instance. (instances.insert) + * + * @param string $project Project ID of the project to which the newly created + * Cloud SQL instances should belong. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists instances under a given project in the alphabetical order of the + * instance name. (instances.listInstances) + * + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @opt_param string maxResults The maximum number of results to return per + * response. + * @return Google_Service_SQLAdmin_InstancesListResponse + */ + public function listInstances($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); + } + + /** + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch.. This method supports patch + * semantics. (instances.patch) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Promotes the read replica instance to be a stand-alone Cloud SQL instance. + * (instances.promoteReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function promoteReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Deletes all client certificates and generates a new server SSL certificate + * for the instance. The changes will not take effect until the instance is + * restarted. Existing instances without a server certificate will need to call + * this once to set a server certificate. (instances.resetSslConfig) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function resetSslConfig($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Restarts a Cloud SQL instance. (instances.restart) + * + * @param string $project Project ID of the project that contains the instance + * to be restarted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function restart($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_InstancesRestoreBackupRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Starts the replication in the read replica instance. (instances.startReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function startReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Stops the replication in the read replica instance. (instances.stopReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function stopReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch. (instances.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $operations = $sqladminService->operations; + * + */ +class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves an instance operation that has been performed on an instance. + * (operations.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $operation Instance operation ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists all instance operations that have been performed on the given Cloud SQL + * instance in the reverse chronological order of the start time. + * (operations.listOperations) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults Maximum number of operations per response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. + * @return Google_Service_SQLAdmin_OperationsListResponse + */ + public function listOperations($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); + } +} + +/** + * The "sslCerts" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $sslCerts = $sqladminService->sslCerts; + * + */ +class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource +{ + + /** + * Deletes the SSL certificate. The change will not take effect until the + * instance is restarted. (sslCerts.delete) + * + * @param string $project Project ID of the project that contains the instance + * to be deleted. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $sha1Fingerprint Sha1 FingerPrint. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Retrieves a particular SSL certificate. Does not include the private key + * (required for usage). The private key must be saved from the response to + * initial creation. (sslCerts.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $sha1Fingerprint Sha1 FingerPrint. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCert + */ + public function get($project, $instance, $sha1Fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); + } + + /** + * Creates an SSL certificate and returns it along with the private key and + * server certificate authority. The new certificate will not be usable until + * the instance is restarted. (sslCerts.insert) + * + * @param string $project Project ID of the project to which the newly created + * Cloud SQL instances should belong. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_SslCertsInsertRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCertsInsertResponse + */ + public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); + } + + /** + * Lists all of the current SSL certificates for the instance. + * (sslCerts.listSslCerts) + * + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCertsListResponse + */ + public function listSslCerts($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); + } +} + +/** + * The "tiers" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $tiers = $sqladminService->tiers; + * + */ +class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource +{ + + /** + * Lists all available service tiers for Google Cloud SQL, for example D1, D2. + * For related information, see Pricing. (tiers.listTiers) + * + * @param string $project Project ID of the project for which to list tiers. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_TiersListResponse + */ + public function listTiers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $users = $sqladminService->users; + * + */ +class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource +{ + + /** + * Deletes a user from a Cloud SQL instance. (users.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $host, $name, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Creates a new user in a Cloud SQL instance. (users.insert) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists users in the specified Cloud SQL instance. (users.listUsers) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_UsersListResponse + */ + public function listUsers($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); + } + + /** + * Updates an existing user in a Cloud SQL instance. (users.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + + + + +class Google_Service_SQLAdmin_AclEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expirationTime; + public $kind; + public $name; + public $value; + + + public function setExpirationTime($expirationTime) + { + $this->expirationTime = $expirationTime; + } + public function getExpirationTime() + { + return $this->expirationTime; + } + 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 setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $binaryLogEnabled; + public $enabled; + public $kind; + public $startTime; + + + public function setBinaryLogEnabled($binaryLogEnabled) + { + $this->binaryLogEnabled = $binaryLogEnabled; + } + public function getBinaryLogEnabled() + { + return $this->binaryLogEnabled; + } + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} + +class Google_Service_SQLAdmin_BackupRun extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endTime; + public $enqueuedTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorDataType = ''; + public $id; + public $instance; + public $kind; + public $selfLink; + public $startTime; + public $status; + public $windowStartTime; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setEnqueuedTime($enqueuedTime) + { + $this->enqueuedTime = $enqueuedTime; + } + public function getEnqueuedTime() + { + return $this->enqueuedTime; + } + public function setError(Google_Service_SQLAdmin_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function 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 setWindowStartTime($windowStartTime) + { + $this->windowStartTime = $windowStartTime; + } + public function getWindowStartTime() + { + return $this->windowStartTime; + } +} + +class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $binLogFileName; + public $binLogPosition; + public $kind; + + + public function setBinLogFileName($binLogFileName) + { + $this->binLogFileName = $binLogFileName; + } + public function getBinLogFileName() + { + return $this->binLogFileName; + } + public function setBinLogPosition($binLogPosition) + { + $this->binLogPosition = $binLogPosition; + } + public function getBinLogPosition() + { + return $this->binLogPosition; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_CloneContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; + protected $binLogCoordinatesDataType = ''; + public $destinationInstanceName; + public $kind; + + + public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) + { + $this->binLogCoordinates = $binLogCoordinates; + } + public function getBinLogCoordinates() + { + return $this->binLogCoordinates; + } + public function setDestinationInstanceName($destinationInstanceName) + { + $this->destinationInstanceName = $destinationInstanceName; + } + public function getDestinationInstanceName() + { + return $this->destinationInstanceName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_Database extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $charset; + public $collation; + public $etag; + public $instance; + public $kind; + public $name; + public $project; + public $selfLink; + + + public function setCharset($charset) + { + $this->charset = $charset; + } + public function getCharset() + { + return $this->charset; + } + public function setCollation($collation) + { + $this->collation = $collation; + } + public function getCollation() + { + return $this->collation; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_SQLAdmin_DatabaseInstance extends Google_Collection +{ + protected $collection_key = 'replicaNames'; + protected $internal_gapi_mappings = array( + ); + public $currentDiskSize; + public $databaseVersion; + public $etag; + public $instanceType; + protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; + protected $ipAddressesDataType = 'array'; + public $ipv6Address; + public $kind; + public $masterInstanceName; + public $maxDiskSize; + public $name; + public $project; + public $region; + public $replicaNames; + public $selfLink; + protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; + protected $serverCaCertDataType = ''; + public $serviceAccountEmailAddress; + protected $settingsType = 'Google_Service_SQLAdmin_Settings'; + protected $settingsDataType = ''; + public $state; + + + public function setCurrentDiskSize($currentDiskSize) + { + $this->currentDiskSize = $currentDiskSize; + } + public function getCurrentDiskSize() + { + return $this->currentDiskSize; + } + public function setDatabaseVersion($databaseVersion) + { + $this->databaseVersion = $databaseVersion; + } + public function getDatabaseVersion() + { + return $this->databaseVersion; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setInstanceType($instanceType) + { + $this->instanceType = $instanceType; + } + public function getInstanceType() + { + return $this->instanceType; + } + public function setIpAddresses($ipAddresses) + { + $this->ipAddresses = $ipAddresses; + } + public function getIpAddresses() + { + return $this->ipAddresses; + } + public function setIpv6Address($ipv6Address) + { + $this->ipv6Address = $ipv6Address; + } + public function getIpv6Address() + { + return $this->ipv6Address; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMasterInstanceName($masterInstanceName) + { + $this->masterInstanceName = $masterInstanceName; + } + public function getMasterInstanceName() + { + return $this->masterInstanceName; + } + public function setMaxDiskSize($maxDiskSize) + { + $this->maxDiskSize = $maxDiskSize; + } + public function getMaxDiskSize() + { + return $this->maxDiskSize; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setReplicaNames($replicaNames) + { + $this->replicaNames = $replicaNames; + } + public function getReplicaNames() + { + return $this->replicaNames; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) + { + $this->serverCaCert = $serverCaCert; + } + public function getServerCaCert() + { + return $this->serverCaCert; + } + public function setServiceAccountEmailAddress($serviceAccountEmailAddress) + { + $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; + } + public function getServiceAccountEmailAddress() + { + return $this->serviceAccountEmailAddress; + } + public function setSettings(Google_Service_SQLAdmin_Settings $settings) + { + $this->settings = $settings; + } + public function getSettings() + { + return $this->settings; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_Database'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_ExportContext extends Google_Collection +{ + protected $collection_key = 'databases'; + protected $internal_gapi_mappings = array( + ); + protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; + protected $csvExportOptionsDataType = ''; + public $databases; + public $fileType; + public $kind; + protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; + protected $sqlExportOptionsDataType = ''; + public $uri; + + + public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) + { + $this->csvExportOptions = $csvExportOptions; + } + public function getCsvExportOptions() + { + return $this->csvExportOptions; + } + public function setDatabases($databases) + { + $this->databases = $databases; + } + public function getDatabases() + { + return $this->databases; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) + { + $this->sqlExportOptions = $sqlExportOptions; + } + public function getSqlExportOptions() + { + return $this->sqlExportOptions; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} + +class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $selectQuery; + + + public function setSelectQuery($selectQuery) + { + $this->selectQuery = $selectQuery; + } + public function getSelectQuery() + { + return $this->selectQuery; + } +} + +class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection +{ + protected $collection_key = 'tables'; + protected $internal_gapi_mappings = array( + ); + public $tables; + + + public function setTables($tables) + { + $this->tables = $tables; + } + public function getTables() + { + return $this->tables; + } +} + +class Google_Service_SQLAdmin_Flag extends Google_Collection +{ + protected $collection_key = 'appliesTo'; + protected $internal_gapi_mappings = array( + ); + public $allowedStringValues; + public $appliesTo; + public $kind; + public $maxValue; + public $minValue; + public $name; + public $type; + + + public function setAllowedStringValues($allowedStringValues) + { + $this->allowedStringValues = $allowedStringValues; + } + public function getAllowedStringValues() + { + return $this->allowedStringValues; + } + public function setAppliesTo($appliesTo) + { + $this->appliesTo = $appliesTo; + } + public function getAppliesTo() + { + return $this->appliesTo; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + public function getMaxValue() + { + return $this->maxValue; + } + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + public function getMinValue() + { + return $this->minValue; + } + 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_SQLAdmin_FlagsListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_Flag'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_ImportContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; + protected $csvImportOptionsDataType = ''; + public $database; + public $fileType; + public $kind; + public $uri; + + + public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) + { + $this->csvImportOptions = $csvImportOptions; + } + public function getCsvImportOptions() + { + return $this->csvImportOptions; + } + public function setDatabase($database) + { + $this->database = $database; + } + public function getDatabase() + { + return $this->database; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} + +class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection +{ + protected $collection_key = 'columns'; + protected $internal_gapi_mappings = array( + ); + public $columns; + public $table; + + + public function setColumns($columns) + { + $this->columns = $columns; + } + public function getColumns() + { + return $this->columns; + } + public function setTable($table) + { + $this->table = $table; + } + public function getTable() + { + return $this->table; + } +} + +class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; + protected $cloneContextDataType = ''; + + + public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) + { + $this->cloneContext = $cloneContext; + } + public function getCloneContext() + { + return $this->cloneContext; + } +} + +class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; + + + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) + { + $this->exportContext = $exportContext; + } + public function getExportContext() + { + return $this->exportContext; + } +} + +class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; + + + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) + { + $this->importContext = $importContext; + } + public function getImportContext() + { + return $this->importContext; + } +} + +class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; + protected $restoreBackupContextDataType = ''; + + + public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) + { + $this->restoreBackupContext = $restoreBackupContext; + } + public function getRestoreBackupContext() + { + return $this->restoreBackupContext; + } +} + +class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection +{ + protected $collection_key = 'authorizedNetworks'; + protected $internal_gapi_mappings = array( + ); + protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; + protected $authorizedNetworksDataType = 'array'; + public $ipv4Enabled; + public $requireSsl; + + + public function setAuthorizedNetworks($authorizedNetworks) + { + $this->authorizedNetworks = $authorizedNetworks; + } + public function getAuthorizedNetworks() + { + return $this->authorizedNetworks; + } + public function setIpv4Enabled($ipv4Enabled) + { + $this->ipv4Enabled = $ipv4Enabled; + } + public function getIpv4Enabled() + { + return $this->ipv4Enabled; + } + public function setRequireSsl($requireSsl) + { + $this->requireSsl = $requireSsl; + } + public function getRequireSsl() + { + return $this->requireSsl; + } +} + +class Google_Service_SQLAdmin_IpMapping extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $ipAddress; + public $timeToRetire; + + + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + public function getIpAddress() + { + return $this->ipAddress; + } + public function setTimeToRetire($timeToRetire) + { + $this->timeToRetire = $timeToRetire; + } + public function getTimeToRetire() + { + return $this->timeToRetire; + } +} + +class Google_Service_SQLAdmin_LocationPreference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $followGaeApplication; + public $kind; + public $zone; + + + public function setFollowGaeApplication($followGaeApplication) + { + $this->followGaeApplication = $followGaeApplication; + } + public function getFollowGaeApplication() + { + return $this->followGaeApplication; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_SQLAdmin_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorDataType = ''; + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $selfLink; + public $startTime; + public $status; + public $targetId; + public $targetLink; + public $targetProject; + public $user; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_SQLAdmin_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) + { + $this->exportContext = $exportContext; + } + public function getExportContext() + { + return $this->exportContext; + } + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) + { + $this->importContext = $importContext; + } + public function getImportContext() + { + return $this->importContext; + } + 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 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 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 setTargetProject($targetProject) + { + $this->targetProject = $targetProject; + } + public function getTargetProject() + { + return $this->targetProject; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_SQLAdmin_OperationError extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $kind; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $backupRunId; + public $kind; + + + public function setBackupRunId($backupRunId) + { + $this->backupRunId = $backupRunId; + } + public function getBackupRunId() + { + return $this->backupRunId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_Settings extends Google_Collection +{ + protected $collection_key = 'databaseFlags'; + protected $internal_gapi_mappings = array( + ); + public $activationPolicy; + public $authorizedGaeApplications; + protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; + protected $backupConfigurationDataType = ''; + protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; + protected $databaseFlagsDataType = 'array'; + public $databaseReplicationEnabled; + protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; + protected $ipConfigurationDataType = ''; + public $kind; + protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; + protected $locationPreferenceDataType = ''; + public $pricingPlan; + public $replicationType; + public $settingsVersion; + public $tier; + + + public function setActivationPolicy($activationPolicy) + { + $this->activationPolicy = $activationPolicy; + } + public function getActivationPolicy() + { + return $this->activationPolicy; + } + public function setAuthorizedGaeApplications($authorizedGaeApplications) + { + $this->authorizedGaeApplications = $authorizedGaeApplications; + } + public function getAuthorizedGaeApplications() + { + return $this->authorizedGaeApplications; + } + public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) + { + $this->backupConfiguration = $backupConfiguration; + } + public function getBackupConfiguration() + { + return $this->backupConfiguration; + } + public function setDatabaseFlags($databaseFlags) + { + $this->databaseFlags = $databaseFlags; + } + public function getDatabaseFlags() + { + return $this->databaseFlags; + } + public function setDatabaseReplicationEnabled($databaseReplicationEnabled) + { + $this->databaseReplicationEnabled = $databaseReplicationEnabled; + } + public function getDatabaseReplicationEnabled() + { + return $this->databaseReplicationEnabled; + } + public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) + { + $this->ipConfiguration = $ipConfiguration; + } + public function getIpConfiguration() + { + return $this->ipConfiguration; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) + { + $this->locationPreference = $locationPreference; + } + public function getLocationPreference() + { + return $this->locationPreference; + } + public function setPricingPlan($pricingPlan) + { + $this->pricingPlan = $pricingPlan; + } + public function getPricingPlan() + { + return $this->pricingPlan; + } + public function setReplicationType($replicationType) + { + $this->replicationType = $replicationType; + } + public function getReplicationType() + { + return $this->replicationType; + } + public function setSettingsVersion($settingsVersion) + { + $this->settingsVersion = $settingsVersion; + } + public function getSettingsVersion() + { + return $this->settingsVersion; + } + public function setTier($tier) + { + $this->tier = $tier; + } + public function getTier() + { + return $this->tier; + } +} + +class Google_Service_SQLAdmin_SslCert extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cert; + public $certSerialNumber; + public $commonName; + public $createTime; + public $expirationTime; + public $instance; + public $kind; + public $selfLink; + public $sha1Fingerprint; + + + public function setCert($cert) + { + $this->cert = $cert; + } + public function getCert() + { + return $this->cert; + } + public function setCertSerialNumber($certSerialNumber) + { + $this->certSerialNumber = $certSerialNumber; + } + public function getCertSerialNumber() + { + return $this->certSerialNumber; + } + public function setCommonName($commonName) + { + $this->commonName = $commonName; + } + public function getCommonName() + { + return $this->commonName; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setExpirationTime($expirationTime) + { + $this->expirationTime = $expirationTime; + } + public function getExpirationTime() + { + return $this->expirationTime; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSha1Fingerprint($sha1Fingerprint) + { + $this->sha1Fingerprint = $sha1Fingerprint; + } + public function getSha1Fingerprint() + { + return $this->sha1Fingerprint; + } +} + +class Google_Service_SQLAdmin_SslCertDetail extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; + protected $certInfoDataType = ''; + public $certPrivateKey; + + + public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) + { + $this->certInfo = $certInfo; + } + public function getCertInfo() + { + return $this->certInfo; + } + public function setCertPrivateKey($certPrivateKey) + { + $this->certPrivateKey = $certPrivateKey; + } + public function getCertPrivateKey() + { + return $this->certPrivateKey; + } +} + +class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $commonName; + + + public function setCommonName($commonName) + { + $this->commonName = $commonName; + } + public function getCommonName() + { + return $this->commonName; + } +} + +class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; + protected $clientCertDataType = ''; + public $kind; + protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; + protected $serverCaCertDataType = ''; + + + public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) + { + $this->clientCert = $clientCert; + } + public function getClientCert() + { + return $this->clientCert; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) + { + $this->serverCaCert = $serverCaCert; + } + public function getServerCaCert() + { + return $this->serverCaCert; + } +} + +class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_Tier extends Google_Collection +{ + protected $collection_key = 'region'; + protected $internal_gapi_mappings = array( + "diskQuota" => "DiskQuota", + "rAM" => "RAM", + ); + public $diskQuota; + public $rAM; + public $kind; + public $region; + public $tier; + + + public function setDiskQuota($diskQuota) + { + $this->diskQuota = $diskQuota; + } + public function getDiskQuota() + { + return $this->diskQuota; + } + public function setRAM($rAM) + { + $this->rAM = $rAM; + } + public function getRAM() + { + return $this->rAM; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setTier($tier) + { + $this->tier = $tier; + } + public function getTier() + { + return $this->tier; + } +} + +class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_Tier'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_User extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $host; + public $instance; + public $kind; + public $name; + public $password; + public $project; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } +} + +class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} From fb3e048f9c8b21d90be02c638af6c342cfdc9c3c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Feb 2015 03:53:01 -0800 Subject: [PATCH 0651/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 250a40b04..3c3989107 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -1652,6 +1652,7 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection public $fieldDelimiter; public $ignoreUnknownValues; public $maxBadRecords; + public $projectionFields; public $quote; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; @@ -1727,6 +1728,14 @@ public function getMaxBadRecords() { return $this->maxBadRecords; } + public function setProjectionFields($projectionFields) + { + $this->projectionFields = $projectionFields; + } + public function getProjectionFields() + { + return $this->projectionFields; + } public function setQuote($quote) { $this->quote = $quote; From 98b4fa95b553b6fb904a03bc66e738d181071fde Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Feb 2015 03:53:02 -0800 Subject: [PATCH 0652/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 136 ++++++++++++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index dbea4d341..ac7eedf46 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -998,7 +998,7 @@ public function get($userId, $id, $optParams = array()) * add any extracted meetings to the Google Calendar for this user. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. - * @opt_param bool neverMarkSpam Ignore the Gmail spam classifer decision and + * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and * never mark this email as SPAM in the mailbox. * @return Google_Service_Gmail_Message */ @@ -1307,12 +1307,20 @@ public function getMessage() class Google_Service_Gmail_History extends Google_Collection { - protected $collection_key = 'messages'; + protected $collection_key = 'messagesDeleted'; protected $internal_gapi_mappings = array( ); public $id; + protected $labelsAddedType = 'Google_Service_Gmail_HistoryLabelAdded'; + protected $labelsAddedDataType = 'array'; + protected $labelsRemovedType = 'Google_Service_Gmail_HistoryLabelRemoved'; + protected $labelsRemovedDataType = 'array'; protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; + protected $messagesAddedType = 'Google_Service_Gmail_HistoryMessageAdded'; + protected $messagesAddedDataType = 'array'; + protected $messagesDeletedType = 'Google_Service_Gmail_HistoryMessageDeleted'; + protected $messagesDeletedDataType = 'array'; public function setId($id) @@ -1323,6 +1331,22 @@ public function getId() { return $this->id; } + public function setLabelsAdded($labelsAdded) + { + $this->labelsAdded = $labelsAdded; + } + public function getLabelsAdded() + { + return $this->labelsAdded; + } + public function setLabelsRemoved($labelsRemoved) + { + $this->labelsRemoved = $labelsRemoved; + } + public function getLabelsRemoved() + { + return $this->labelsRemoved; + } public function setMessages($messages) { $this->messages = $messages; @@ -1331,6 +1355,114 @@ public function getMessages() { return $this->messages; } + public function setMessagesAdded($messagesAdded) + { + $this->messagesAdded = $messagesAdded; + } + public function getMessagesAdded() + { + return $this->messagesAdded; + } + public function setMessagesDeleted($messagesDeleted) + { + $this->messagesDeleted = $messagesDeleted; + } + public function getMessagesDeleted() + { + return $this->messagesDeleted; + } +} + +class Google_Service_Gmail_HistoryLabelAdded extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelIds; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryLabelRemoved extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelIds; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryMessageAdded extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryMessageDeleted extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } } class Google_Service_Gmail_Label extends Google_Model From 644c9b71ed5eb423a114d6776187d9c0cc025ab4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Feb 2015 03:53:02 -0800 Subject: [PATCH 0653/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index e39c77715..0cb75b11d 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From 5e759a61679a9b9b2aa87e47cd5a66eef67e7e21 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Feb 2015 03:54:26 -0800 Subject: [PATCH 0654/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 121 +++++++++++++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index d7225c2c4..dd02b5c8b 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -135,7 +135,11 @@ public function __construct(Google_Client $client) 'annotations', array( 'methods' => array( - 'create' => array( + 'batchCreate' => array( + 'path' => 'annotations:batchCreate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'create' => array( 'path' => 'annotations', 'httpMethod' => 'POST', 'parameters' => array(), @@ -841,6 +845,29 @@ public function update($annotationSetId, Google_Service_Genomics_AnnotationSet $ class Google_Service_Genomics_Annotations_Resource extends Google_Service_Resource { + /** + * Creates one or more new annotations atomically. All annotations must belong + * to the same annotation set. Caller must have WRITE permission for this + * annotation set. For optimal performance, batch positionally adjacent + * annotations together. + * + * If the request has a systemic issue, such as an attempt to write to an + * inaccessible annotation set, the entire RPC will fail accordingly. For lesser + * data issues, when possible an error will be isolated to the corresponding + * batch entry in the response; the remaining well formed annotations will be + * created normally. (annotations.batchCreate) + * + * @param Google_BatchCreateAnnotationsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_BatchAnnotationsResponse + */ + public function batchCreate(Google_Service_Genomics_BatchCreateAnnotationsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchCreate', array($params), "Google_Service_Genomics_BatchAnnotationsResponse"); + } + /** * Creates a new annotation. Caller must have WRITE permission for the * associated annotation set. (annotations.create) @@ -2108,6 +2135,98 @@ class Google_Service_Genomics_AnnotationSetInfo extends Google_Model { } +class Google_Service_Genomics_BatchAnnotationsResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_Genomics_BatchAnnotationsResponseEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Genomics_BatchAnnotationsResponseEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $annotationType = 'Google_Service_Genomics_Annotation'; + protected $annotationDataType = ''; + protected $statusType = 'Google_Service_Genomics_BatchAnnotationsResponseEntryStatus'; + protected $statusDataType = ''; + + + public function setAnnotation(Google_Service_Genomics_Annotation $annotation) + { + $this->annotation = $annotation; + } + public function getAnnotation() + { + return $this->annotation; + } + public function setStatus(Google_Service_Genomics_BatchAnnotationsResponseEntryStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Genomics_BatchAnnotationsResponseEntryStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Genomics_BatchCreateAnnotationsRequest extends Google_Collection +{ + protected $collection_key = 'annotations'; + protected $internal_gapi_mappings = array( + ); + protected $annotationsType = 'Google_Service_Genomics_Annotation'; + protected $annotationsDataType = 'array'; + + + public function setAnnotations($annotations) + { + $this->annotations = $annotations; + } + public function getAnnotations() + { + return $this->annotations; + } +} + class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection { protected $collection_key = 'sourceUris'; From 46560ef6602e5b5c35969d6f84c4f860a907b66e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 1 Mar 2015 03:55:24 -0800 Subject: [PATCH 0655/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 9886fdada94948fbcd8e446e0f2e4745d75080b1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 2 Mar 2015 03:56:26 -0800 Subject: [PATCH 0656/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 247fa4c3e080b7a12c5dc078d4fcfa7b9337fce4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 3 Mar 2015 03:57:23 -0800 Subject: [PATCH 0657/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 39 +++++++---------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 28f400301..e763a4a95 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -944,8 +944,9 @@ public function getValue() } } -class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model +class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Collection { + protected $collection_key = 'instances'; protected $internal_gapi_mappings = array( ); public $actionType; @@ -957,6 +958,7 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model public $instanceGroup; public $instanceGroupManager; public $instanceTemplate; + public $instances; public $kind; protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; protected $policyDataType = ''; @@ -1031,6 +1033,14 @@ public function getInstanceTemplate() { return $this->instanceTemplate; } + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } public function setKind($kind) { $this->kind = $kind; @@ -1194,8 +1204,6 @@ class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model protected $internal_gapi_mappings = array( ); public $autoPauseAfterInstances; - protected $canaryType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary'; - protected $canaryDataType = ''; public $instanceStartupTimeoutSec; public $maxNumConcurrentInstances; public $maxNumFailedInstances; @@ -1211,14 +1219,6 @@ public function getAutoPauseAfterInstances() { return $this->autoPauseAfterInstances; } - public function setCanary(Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary $canary) - { - $this->canary = $canary; - } - public function getCanary() - { - return $this->canary; - } public function setInstanceStartupTimeoutSec($instanceStartupTimeoutSec) { $this->instanceStartupTimeoutSec = $instanceStartupTimeoutSec; @@ -1260,20 +1260,3 @@ public function getSleepAfterInstanceRestartSec() return $this->sleepAfterInstanceRestartSec; } } - -class Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $numInstances; - - - public function setNumInstances($numInstances) - { - $this->numInstances = $numInstances; - } - public function getNumInstances() - { - return $this->numInstances; - } -} From 467d96494713ec2eec3905c8062599c3cec91420 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Mar 2015 03:58:20 -0800 Subject: [PATCH 0658/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 270 +++++++++++++++++++++++---------- 1 file changed, 192 insertions(+), 78 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index dfef858ca..7cf3811e0 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -1854,6 +1854,26 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'moveDisk' => array( + 'path' => '{project}/moveDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'moveInstance' => array( + 'path' => '{project}/moveInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setCommonInstanceMetadata' => array( 'path' => '{project}/setCommonInstanceMetadata', 'httpMethod' => 'POST', @@ -2834,7 +2854,7 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource /** * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -2855,8 +2875,8 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified address resource. (addresses.delete) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2871,8 +2891,8 @@ public function delete($project, $region, $address, $optParams = array()) /** * Returns the specified address resource. (addresses.get) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address @@ -2888,8 +2908,8 @@ public function get($project, $region, $address, $optParams = array()) * Creates an address resource in the specified project using the data included * in the request. (addresses.insert) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2905,8 +2925,8 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * Retrieves the list of address resources contained within the specified * region. (addresses.listAddresses) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3072,7 +3092,7 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * Retrieves the list of disk type resources grouped by scope. * (diskTypes.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3093,8 +3113,8 @@ public function aggregatedList($project, $optParams = array()) /** * Returns the specified disk type resource. (diskTypes.get) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $diskType Name of the disk type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_DiskType @@ -3110,8 +3130,8 @@ public function get($project, $zone, $diskType, $optParams = array()) * Retrieves the list of disk type resources available to the specified project. * (diskTypes.listDiskTypes) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3506,7 +3526,7 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res /** * Deletes the specified address resource. (globalAddresses.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3521,7 +3541,7 @@ public function delete($project, $address, $optParams = array()) /** * Returns the specified address resource. (globalAddresses.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address @@ -3537,7 +3557,7 @@ public function get($project, $address, $optParams = array()) * Creates an address resource in the specified project using the data included * in the request. (globalAddresses.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3553,7 +3573,7 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP * Retrieves the list of global address resources. * (globalAddresses.listGlobalAddresses) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3684,7 +3704,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * Retrieves the list of all operations grouped by scope. * (globalOperations.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3705,7 +3725,7 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified operation resource. (globalOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. */ @@ -3719,7 +3739,7 @@ public function delete($project, $operation, $optParams = array()) /** * Retrieves the specified operation resource. (globalOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3735,7 +3755,7 @@ public function get($project, $operation, $optParams = array()) * Retrieves the list of operation resources contained within the specified * project. (globalOperations.listGlobalOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4067,10 +4087,11 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Adds an access config to an instance's network interface. * (instances.addAccessConfig) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. - * @param string $networkInterface Network interface name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $networkInterface The name of the network interface to add to + * this instance. * @param Google_AccessConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4085,7 +4106,7 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G /** * (instances.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4104,10 +4125,10 @@ public function aggregatedList($project, $optParams = array()) } /** - * Attaches a disk resource to an instance. (instances.attachDisk) + * 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 $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param Google_AttachedDisk $postBody * @param array $optParams Optional parameters. @@ -4121,10 +4142,11 @@ public function attachDisk($project, $zone, $instance, Google_Service_Compute_At } /** - * Deletes the specified instance resource. (instances.delete) + * Deletes the specified Instance resource. For more information, see Shutting + * down an instance. (instances.delete) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4140,11 +4162,11 @@ public function delete($project, $zone, $instance, $optParams = array()) * Deletes an access config from an instance's network interface. * (instances.deleteAccessConfig) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. - * @param string $accessConfig Access config name. - * @param string $networkInterface Network interface name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $accessConfig The name of the access config to delete. + * @param string $networkInterface The name of the network interface. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4158,8 +4180,8 @@ public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $n /** * 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 $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param string $deviceName Disk device name to detach. * @param array $optParams Optional parameters. @@ -4175,8 +4197,8 @@ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = /** * 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 $project Project ID for this request. + * @param string $zone The name of the The name of the zone for this request.. * @param string $instance Name of the instance resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Instance @@ -4192,8 +4214,8 @@ public function get($project, $zone, $instance, $optParams = array()) * 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 $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_SerialPortOutput @@ -4209,8 +4231,8 @@ public function getSerialPortOutput($project, $zone, $instance, $optParams = arr * 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 string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param Google_Instance $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4226,8 +4248,8 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod * Retrieves the list of instance resources contained within the specified zone. * (instances.listInstances) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4248,8 +4270,8 @@ public function listInstances($project, $zone, $optParams = array()) /** * Performs a hard reset on the instance. (instances.reset) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4262,15 +4284,15 @@ public function reset($project, $zone, $instance, $optParams = array()) } /** - * Sets the auto-delete flag for a disk attached to an instance + * Sets the auto-delete flag for a disk attached to an instance. * (instances.setDiskAutoDelete) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name. * @param bool $autoDelete Whether to auto-delete the disk when the instance is * deleted. - * @param string $deviceName Disk device name to modify. + * @param string $deviceName The device name of the disk to modify. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4285,8 +4307,8 @@ public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $devi * 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 $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param Google_Metadata $postBody * @param array $optParams Optional parameters. @@ -4302,8 +4324,8 @@ public function setMetadata($project, $zone, $instance, Google_Service_Compute_M /** * Sets an instance's scheduling options. (instances.setScheduling) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param Google_Scheduling $postBody * @param array $optParams Optional parameters. @@ -4320,8 +4342,8 @@ public function setScheduling($project, $zone, $instance, Google_Service_Compute * 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 $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param Google_Tags $postBody * @param array $optParams Optional parameters. @@ -4335,10 +4357,12 @@ public function setTags($project, $zone, $instance, Google_Service_Compute_Tags } /** - * Starts an instance (instances.start) + * This method starts an instance that was stopped using the using the + * instances().stop method. For more information, see Restart an instance. + * (instances.start) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance resource to start. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4351,10 +4375,15 @@ public function start($project, $zone, $instance, $optParams = array()) } /** - * Stops an instance (instances.stop) + * This method stops a running instance, shutting it down cleanly, and allows + * you to restart the instance at a later time. Stopped instances do not incur + * per-minute, virtual machine usage charges while they are stopped, but any + * resources that the virtual machine is using, such as persistent disks and + * static IP addresses,will continue to be charged until they are deleted. For + * more information, see Stopping an instance. (instances.stop) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance resource to start. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4381,7 +4410,7 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource /** * Returns the specified license resource. (licenses.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $license Name of the license resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_License @@ -4561,7 +4590,7 @@ 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 string $project Project ID for this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Project */ @@ -4572,11 +4601,42 @@ public function get($project, $optParams = array()) return $this->call('get', array($params), "Google_Service_Compute_Project"); } + /** + * Moves a persistent disk from one zone to another. (projects.moveDisk) + * + * @param string $project Project ID for this request. + * @param Google_DiskMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Moves an instance and its attached persistent disks from one zone to another. + * (projects.moveInstance) + * + * @param string $project Project ID for this request. + * @param Google_InstanceMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + } + /** * 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 string $project Project ID for this request. * @param Google_Metadata $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4589,9 +4649,11 @@ public function setCommonInstanceMetadata($project, Google_Service_Compute_Metad } /** - * Sets usage export location (projects.setUsageExportBucket) + * Enables the usage export feature and sets the usage export bucket where + * reports are stored. If you provide an empty request body using this method, + * the usage export feature will be disabled. (projects.setUsageExportBucket) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_UsageExportLocation $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4619,7 +4681,7 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * Deletes the specified region-specific operation resource. * (regionOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. @@ -4635,7 +4697,7 @@ public function delete($project, $region, $operation, $optParams = array()) * Retrieves the specified region-specific operation resource. * (regionOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the zone scoping this request. * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. @@ -4652,7 +4714,7 @@ public function get($project, $region, $operation, $optParams = array()) * Retrieves the list of operation resources contained within the specified * region. (regionOperations.listRegionOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * @@ -5436,7 +5498,7 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * Deletes the specified zone-specific operation resource. * (zoneOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for 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. @@ -5452,7 +5514,7 @@ public function delete($project, $zone, $operation, $optParams = array()) * Retrieves the specified zone-specific operation resource. * (zoneOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for 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. @@ -5469,7 +5531,7 @@ public function get($project, $zone, $operation, $optParams = array()) * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * @@ -6642,6 +6704,32 @@ public function getSelfLink() } } +class Google_Service_Compute_DiskMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetDisk; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetDisk($targetDisk) + { + $this->targetDisk = $targetDisk; + } + public function getTargetDisk() + { + return $this->targetDisk; + } +} + class Google_Service_Compute_DiskType extends Google_Model { protected $internal_gapi_mappings = array( @@ -8338,6 +8426,32 @@ public function getSelfLink() } } +class Google_Service_Compute_InstanceMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetInstance; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetInstance($targetInstance) + { + $this->targetInstance = $targetInstance; + } + public function getTargetInstance() + { + return $this->targetInstance; + } +} + class Google_Service_Compute_InstanceProperties extends Google_Collection { protected $collection_key = 'serviceAccounts'; From 4f4ca8a67ff653b42cbdd2739ab49144ef22ef1d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Mar 2015 03:58:20 -0800 Subject: [PATCH 0659/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 86b2c7add5084961e0143e54767598e534a077c5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Mar 2015 03:58:20 -0800 Subject: [PATCH 0660/1274] Updated Licensing.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Licensing.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 40d4c477d..701967237 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -30,7 +30,9 @@ */ class Google_Service_Licensing extends Google_Service { - + /** View and manage Google Apps licenses for your domain. */ + const APPS_LICENSING = + "https://www.googleapis.com/auth/apps.licensing"; public $licenseAssignments; From 6373d42b5add56c4af9576b0eaa7880cf0a7b839 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 4 Mar 2015 03:58:21 -0800 Subject: [PATCH 0661/1274] Added service AndroidEnterprise.php --- src/Google/Service/AndroidEnterprise.php | 2755 ++++++++++++++++++++++ 1 file changed, 2755 insertions(+) create mode 100644 src/Google/Service/AndroidEnterprise.php diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php new file mode 100644 index 000000000..a0fbedb56 --- /dev/null +++ b/src/Google/Service/AndroidEnterprise.php @@ -0,0 +1,2755 @@ + + * Allows MDMs and corporations to manage Android corp devices.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_AndroidEnterprise extends Google_Service +{ + /** Manage corporate Android devices. */ + const ANDROIDENTERPRISE = + "https://www.googleapis.com/auth/androidenterprise"; + + public $collections; + public $collectionviewers; + public $devices; + public $enterprises; + public $entitlements; + public $grouplicenses; + public $grouplicenseusers; + public $installs; + public $permissions; + public $products; + public $users; + + + /** + * Constructs the internal representation of the AndroidEnterprise service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'androidenterprise/v1/'; + $this->version = 'v1'; + $this->serviceName = 'androidenterprise'; + + $this->collections = new Google_Service_AndroidEnterprise_Collections_Resource( + $this, + $this->serviceName, + 'collections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->collectionviewers = new Google_Service_AndroidEnterprise_Collectionviewers_Resource( + $this, + $this->serviceName, + 'collectionviewers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->devices = new Google_Service_AndroidEnterprise_Devices_Resource( + $this, + $this->serviceName, + 'devices', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->enterprises = new Google_Service_AndroidEnterprise_Enterprises_Resource( + $this, + $this->serviceName, + 'enterprises', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'enroll' => array( + 'path' => 'enterprises/enroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises', + 'httpMethod' => 'GET', + 'parameters' => array( + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setAccount' => array( + 'path' => 'enterprises/{enterpriseId}/account', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unenroll' => array( + 'path' => 'enterprises/{enterpriseId}/unenroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->entitlements = new Google_Service_AndroidEnterprise_Entitlements_Resource( + $this, + $this->serviceName, + 'entitlements', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->grouplicenses = new Google_Service_AndroidEnterprise_Grouplicenses_Resource( + $this, + $this->serviceName, + 'grouplicenses', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Grouplicenseusers_Resource( + $this, + $this->serviceName, + 'grouplicenseusers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->installs = new Google_Service_AndroidEnterprise_Installs_Resource( + $this, + $this->serviceName, + 'installs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->permissions = new Google_Service_AndroidEnterprise_Permissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_AndroidEnterprise_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getAppRestrictionsSchema' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getPermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updatePermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_AndroidEnterprise_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'generateToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'email' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'revokeToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "collections" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $collections = $androidenterpriseService->collections; + * + */ +class Google_Service_AndroidEnterprise_Collections_Resource extends Google_Service_Resource +{ + + /** + * Deletes a collection. (collections.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the details of a collection. (collections.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function get($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Creates a new collection. (collections.insert) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Retrieves the IDs of all the collections for an enterprise. + * (collections.listCollections) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_CollectionsListResponse + */ + public function listCollections($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse"); + } + + /** + * Updates a collection. This method supports patch semantics. + * (collections.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Updates a collection. (collections.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection"); + } +} + +/** + * The "collectionviewers" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $collectionviewers = $androidenterpriseService->collectionviewers; + * + */ +class Google_Service_AndroidEnterprise_Collectionviewers_Resource extends Google_Service_Resource +{ + + /** + * Removes the user from the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. (collectionviewers.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $collectionId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the ID of the user if they have been specifically allowed to see + * the collection. If the collection's visibility is set to viewersOnly then + * only these users will see the collection. (collectionviewers.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function get($enterpriseId, $collectionId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Retrieves the IDs of the users who have been specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * these users will see the collection. + * (collectionviewers.listCollectionviewers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse + */ + public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse"); + } + + /** + * Adds the user to the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. This method supports patch semantics. + * (collectionviewers.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Adds the user to the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. (collectionviewers.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User"); + } +} + +/** + * The "devices" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $devices = $androidenterpriseService->devices; + * + */ +class Google_Service_AndroidEnterprise_Devices_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the details of a device. (devices.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Device + */ + public function get($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device"); + } + + /** + * Retrieves whether a device is enabled or disabled for access by the user to + * Google services. The device state takes effect only if enforcing EMM policies + * on Android devices is enabled in the Google Admin Console. Otherwise, the + * device state is ignored and all devices are allowed access to Google + * services. (devices.getState) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DeviceState + */ + public function getState($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); + } + + /** + * Retrieves the IDs of all of a user's devices. (devices.listDevices) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DevicesListResponse + */ + public function listDevices($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse"); + } + + /** + * Sets whether a device is enabled or disabled for access by the user to Google + * services. The device state takes effect only if enforcing EMM policies on + * Android devices is enabled in the Google Admin Console. Otherwise, the device + * state is ignored and all devices are allowed access to Google services. + * (devices.setState) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param Google_DeviceState $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DeviceState + */ + public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); + } +} + +/** + * The "enterprises" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $enterprises = $androidenterpriseService->enterprises; + * + */ +class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Service_Resource +{ + + /** + * Deletes the binding between the MDM and enterprise. This is now deprecated; + * use this to unenroll customers that were previously enrolled with the + * 'insert' call, then enroll them again with the 'enroll' call. + * (enterprises.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Enrolls an enterprise with the calling MDM. (enterprises.enroll) + * + * @param string $token The token provided by the enterprise to register the + * MDM. + * @param Google_Enterprise $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) + { + $params = array('token' => $token, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Retrieves the name and domain of an enterprise. (enterprises.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function get($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Establishes the binding between the MDM and an enterprise. This is now + * deprecated; use enroll instead. (enterprises.insert) + * + * @param string $token The token provided by the enterprise to register the + * MDM. + * @param Google_Enterprise $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) + { + $params = array('token' => $token, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Looks up an enterprise by domain name. (enterprises.listEnterprises) + * + * @param string $domain The exact primary domain name of the enterprise to look + * up. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EnterprisesListResponse + */ + public function listEnterprises($domain, $optParams = array()) + { + $params = array('domain' => $domain); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse"); + } + + /** + * Set the account that will be used to authenticate to the API as the + * enterprise. (enterprises.setAccount) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_EnterpriseAccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EnterpriseAccount + */ + public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount"); + } + + /** + * Unenrolls an enterprise from the calling MDM. (enterprises.unenroll) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + */ + public function unenroll($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('unenroll', array($params)); + } +} + +/** + * The "entitlements" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $entitlements = $androidenterpriseService->entitlements; + * + */ +class Google_Service_AndroidEnterprise_Entitlements_Resource extends Google_Service_Resource +{ + + /** + * Removes an entitlement to an app for a user and uninstalls it. + * (entitlements.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $userId, $entitlementId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of an entitlement. (entitlements.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function get($enterpriseId, $userId, $entitlementId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } + + /** + * List of all entitlements for the specified user. Only the ID is set. + * (entitlements.listEntitlements) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EntitlementsListResponse + */ + public function listEntitlements($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse"); + } + + /** + * Adds or updates an entitlement to an app for a user. This method supports + * patch semantics. (entitlements.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param Google_Entitlement $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool install Set to true to also install the product on all the + * user's devices where possible. Failure to install on one or more devices will + * not prevent this operation from returning successfully, as long as the + * entitlement was successfully assigned to the user. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } + + /** + * Adds or updates an entitlement to an app for a user. (entitlements.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param Google_Entitlement $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool install Set to true to also install the product on all the + * user's devices where possible. Failure to install on one or more devices will + * not prevent this operation from returning successfully, as long as the + * entitlement was successfully assigned to the user. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } +} + +/** + * The "grouplicenses" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $grouplicenses = $androidenterpriseService->grouplicenses; + * + */ +class Google_Service_AndroidEnterprise_Grouplicenses_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details of an enterprise's group license for a product. + * (grouplicenses.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $groupLicenseId The ID of the product the group license is for, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicense + */ + public function get($enterpriseId, $groupLicenseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense"); + } + + /** + * Retrieves IDs of all products for which the enterprise has a group license. + * (grouplicenses.listGrouplicenses) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse + */ + public function listGrouplicenses($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse"); + } +} + +/** + * The "grouplicenseusers" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $grouplicenseusers = $androidenterpriseService->grouplicenseusers; + * + */ +class Google_Service_AndroidEnterprise_Grouplicenseusers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the IDs of the users who have been granted entitlements under the + * license. (grouplicenseusers.listGrouplicenseusers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $groupLicenseId The ID of the product the group license is for, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse + */ + public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse"); + } +} + +/** + * The "installs" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $installs = $androidenterpriseService->installs; + * + */ +class Google_Service_AndroidEnterprise_Installs_Resource extends Google_Service_Resource +{ + + /** + * Requests to remove an app from a device. A call to get or list will still + * show the app as installed on the device until it is actually removed. + * (installs.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of an installation of an app on a device. (installs.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install"); + } + + /** + * Retrieves the details of all apps installed on the specified device. + * (installs.listInstalls) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_InstallsListResponse + */ + public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse"); + } + + /** + * Requests to install the latest version of an app to a device. If the app is + * already installed then it is updated to the latest version if necessary. This + * method supports patch semantics. (installs.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param Google_Install $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install"); + } + + /** + * Requests to install the latest version of an app to a device. If the app is + * already installed then it is updated to the latest version if necessary. + * (installs.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param Google_Install $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install"); + } +} + +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $permissions = $androidenterpriseService->permissions; + * + */ +class Google_Service_AndroidEnterprise_Permissions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details of an Android app permission for display to an enterprise + * admin. (permissions.get) + * + * @param string $permissionId The ID of the permission. + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de") + * @return Google_Service_AndroidEnterprise_Permission + */ + public function get($permissionId, $optParams = array()) + { + $params = array('permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission"); + } +} + +/** + * The "products" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $products = $androidenterpriseService->products; + * + */ +class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details of a product for display to an enterprise admin. + * (products.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de"). + * @return Google_Service_AndroidEnterprise_Product + */ + public function get($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product"); + } + + /** + * Retrieves the schema defining app restrictions configurable for this product. + * All products have a schema, but this may be empty if no app restrictions are + * defined. (products.getAppRestrictionsSchema) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de"). + * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema + */ + public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema"); + } + + /** + * Retrieves the Android app permissions required by this app. + * (products.getPermissions) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductPermissions + */ + public function getPermissions($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); + } + + /** + * Updates the set of Android app permissions for this app that have been + * accepted by the enterprise. (products.updatePermissions) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param Google_ProductPermissions $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductPermissions + */ + public function updatePermissions($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductPermissions $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatePermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $users = $androidenterpriseService->users; + * + */ +class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Resource +{ + + /** + * Generates a token (activation code) to allow this user to configure their + * work account in the Android Setup Wizard. Revokes any previously generated + * token. (users.generateToken) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_UserToken + */ + public function generateToken($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken"); + } + + /** + * Retrieves a user's details. (users.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function get($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Looks up a user by email address. (users.listUsers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $email The exact primary email address of the user to look up. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_UsersListResponse + */ + public function listUsers($enterpriseId, $email, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'email' => $email); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse"); + } + + /** + * Revokes a previously generated token (activation code) for the user. + * (users.revokeToken) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + */ + public function revokeToken($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('revokeToken', array($params)); + } +} + + + + +class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection +{ + protected $collection_key = 'restrictions'; + protected $internal_gapi_mappings = array( + ); + protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction'; + protected $restrictionsDataType = 'array'; + + + public function setRestrictions($restrictions) + { + $this->restrictions = $restrictions; + } + public function getRestrictions() + { + return $this->restrictions; + } +} + +class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection +{ + protected $collection_key = 'entryValue'; + protected $internal_gapi_mappings = array( + ); + protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue'; + protected $defaultValueDataType = ''; + public $description; + public $entry; + public $entryValue; + public $key; + public $restrictionType; + public $title; + + + public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue) + { + $this->defaultValue = $defaultValue; + } + public function getDefaultValue() + { + return $this->defaultValue; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntry($entry) + { + $this->entry = $entry; + } + public function getEntry() + { + return $this->entry; + } + public function setEntryValue($entryValue) + { + $this->entryValue = $entryValue; + } + public function getEntryValue() + { + return $this->entryValue; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRestrictionType($restrictionType) + { + $this->restrictionType = $restrictionType; + } + public function getRestrictionType() + { + return $this->restrictionType; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection +{ + protected $collection_key = 'valueMultiselect'; + protected $internal_gapi_mappings = array( + ); + public $type; + public $valueBool; + public $valueInteger; + public $valueMultiselect; + public $valueString; + + + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValueBool($valueBool) + { + $this->valueBool = $valueBool; + } + public function getValueBool() + { + return $this->valueBool; + } + public function setValueInteger($valueInteger) + { + $this->valueInteger = $valueInteger; + } + public function getValueInteger() + { + return $this->valueInteger; + } + public function setValueMultiselect($valueMultiselect) + { + $this->valueMultiselect = $valueMultiselect; + } + public function getValueMultiselect() + { + return $this->valueMultiselect; + } + public function setValueString($valueString) + { + $this->valueString = $valueString; + } + public function getValueString() + { + return $this->valueString; + } +} + +class Google_Service_AndroidEnterprise_Collection extends Google_Collection +{ + protected $collection_key = 'productId'; + protected $internal_gapi_mappings = array( + ); + public $collectionId; + public $kind; + public $name; + public $productId; + public $visibility; + + + public function setCollectionId($collectionId) + { + $this->collectionId = $collectionId; + } + public function getCollectionId() + { + return $this->collectionId; + } + 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 setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection +{ + protected $collection_key = 'collection'; + protected $internal_gapi_mappings = array( + ); + protected $collectionType = 'Google_Service_AndroidEnterprise_Collection'; + protected $collectionDataType = 'array'; + public $kind; + + + public function setCollection($collection) + { + $this->collection = $collection; + } + public function getCollection() + { + return $this->collection; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Device extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $androidId; + public $kind; + + + public function setAndroidId($androidId) + { + $this->androidId = $androidId; + } + public function getAndroidId() + { + return $this->androidId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_DeviceState extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountState; + public $kind; + + + public function setAccountState($accountState) + { + $this->accountState = $accountState; + } + public function getAccountState() + { + return $this->accountState; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection +{ + protected $collection_key = 'device'; + protected $internal_gapi_mappings = array( + ); + protected $deviceType = 'Google_Service_AndroidEnterprise_Device'; + protected $deviceDataType = 'array'; + public $kind; + + + public function setDevice($device) + { + $this->device = $device; + } + public function getDevice() + { + return $this->device; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Enterprise extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + public $primaryDomain; + + + 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 setPrimaryDomain($primaryDomain) + { + $this->primaryDomain = $primaryDomain; + } + public function getPrimaryDomain() + { + return $this->primaryDomain; + } +} + +class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountEmail; + public $kind; + + + public function setAccountEmail($accountEmail) + { + $this->accountEmail = $accountEmail; + } + public function getAccountEmail() + { + return $this->accountEmail; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection +{ + protected $collection_key = 'enterprise'; + protected $internal_gapi_mappings = array( + ); + protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise'; + protected $enterpriseDataType = 'array'; + public $kind; + + + public function setEnterprise($enterprise) + { + $this->enterprise = $enterprise; + } + public function getEnterprise() + { + return $this->enterprise; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Entitlement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $productId; + public $reason; + + + 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 setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } +} + +class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection +{ + protected $collection_key = 'entitlement'; + protected $internal_gapi_mappings = array( + ); + protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement'; + protected $entitlementDataType = 'array'; + public $kind; + + + public function setEntitlement($entitlement) + { + $this->entitlement = $entitlement; + } + public function getEntitlement() + { + return $this->entitlement; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $acquisitionKind; + public $approval; + public $kind; + public $numProvisioned; + public $numPurchased; + public $productId; + + + public function setAcquisitionKind($acquisitionKind) + { + $this->acquisitionKind = $acquisitionKind; + } + public function getAcquisitionKind() + { + return $this->acquisitionKind; + } + public function setApproval($approval) + { + $this->approval = $approval; + } + public function getApproval() + { + return $this->approval; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNumProvisioned($numProvisioned) + { + $this->numProvisioned = $numProvisioned; + } + public function getNumProvisioned() + { + return $this->numProvisioned; + } + public function setNumPurchased($numPurchased) + { + $this->numPurchased = $numPurchased; + } + public function getNumPurchased() + { + return $this->numPurchased; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection +{ + protected $collection_key = 'groupLicense'; + protected $internal_gapi_mappings = array( + ); + protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense'; + protected $groupLicenseDataType = 'array'; + public $kind; + + + public function setGroupLicense($groupLicense) + { + $this->groupLicense = $groupLicense; + } + public function getGroupLicense() + { + return $this->groupLicense; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Install extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $installState; + public $kind; + public $productId; + public $versionCode; + + + public function setInstallState($installState) + { + $this->installState = $installState; + } + public function getInstallState() + { + return $this->installState; + } + 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 setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } +} + +class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection +{ + protected $collection_key = 'install'; + protected $internal_gapi_mappings = array( + ); + protected $installType = 'Google_Service_AndroidEnterprise_Install'; + protected $installDataType = 'array'; + public $kind; + + + public function setInstall($install) + { + $this->install = $install; + } + public function getInstall() + { + return $this->install; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Permission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $kind; + public $name; + public $permissionId; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + 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 setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + public function getPermissionId() + { + return $this->permissionId; + } +} + +class Google_Service_AndroidEnterprise_Product extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $authorName; + public $detailsUrl; + public $iconUrl; + public $kind; + public $productId; + public $title; + public $workDetailsUrl; + + + public function setAuthorName($authorName) + { + $this->authorName = $authorName; + } + public function getAuthorName() + { + return $this->authorName; + } + public function setDetailsUrl($detailsUrl) + { + $this->detailsUrl = $detailsUrl; + } + public function getDetailsUrl() + { + return $this->detailsUrl; + } + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + public function getIconUrl() + { + return $this->iconUrl; + } + 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 setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setWorkDetailsUrl($workDetailsUrl) + { + $this->workDetailsUrl = $workDetailsUrl; + } + public function getWorkDetailsUrl() + { + return $this->workDetailsUrl; + } +} + +class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $permissionId; + public $state; + + + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + public function getPermissionId() + { + return $this->permissionId; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission'; + protected $permissionDataType = 'array'; + public $productId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPermission($permission) + { + $this->permission = $permission; + } + public function getPermission() + { + return $this->permission; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_AndroidEnterprise_User extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $primaryEmail; + + + 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 setPrimaryEmail($primaryEmail) + { + $this->primaryEmail = $primaryEmail; + } + public function getPrimaryEmail() + { + return $this->primaryEmail; + } +} + +class Google_Service_AndroidEnterprise_UserToken extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $token; + public $userId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} From 016a8d69a6755cb94fac147daa663941f0f17ea1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 5 Mar 2015 03:59:14 -0800 Subject: [PATCH 0662/1274] Updated AndroidEnterprise.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidEnterprise.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php index a0fbedb56..a0fb94386 100644 --- a/src/Google/Service/AndroidEnterprise.php +++ b/src/Google/Service/AndroidEnterprise.php @@ -19,11 +19,12 @@ * Service definition for AndroidEnterprise (v1). * *

- * Allows MDMs and corporations to manage Android corp devices.

+ * Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android + * for Work users.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From 5456aa42f94829859802cffe34ae2cdf0b3cc194 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 5 Mar 2015 20:26:46 -0800 Subject: [PATCH 0663/1274] Fix doc comments and add checking for 0 size cache Fixes #472 and #489 --- src/Google/Cache/File.php | 11 +++++++++-- src/Google/IO/Abstract.php | 7 ++++--- src/Google/IO/Curl.php | 5 ++--- src/Google/IO/Stream.php | 5 ++--- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 719a45e0c..43a886c2b 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -70,8 +70,15 @@ public function get($key, $expiration = false) } if ($this->acquireReadLock($storageFile)) { - $data = fread($this->fh, filesize($storageFile)); - $data = unserialize($data); + if (filesize($storageFile) > 0) { + $data = fread($this->fh, filesize($storageFile)); + $data = unserialize($data); + } else { + $this->client->getLogger()->debug( + 'Cache file was empty', + array('file' => $storageFile) + ); + } $this->unlock($storageFile); } diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index 5c6a4b2de..ea89ca57e 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -57,9 +57,10 @@ public function __construct(Google_Client $client) } /** - * Executes a Google_Http_Request and returns the resulting populated Google_Http_Request - * @param Google_Http_Request $request - * @return Google_Http_Request $request + * Executes a Google_Http_Request + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code + * @throws Google_IO_Exception on curl or IO error */ abstract public function executeRequest(Google_Http_Request $request); diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 60a8e8706..6dcec2646 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -46,9 +46,8 @@ public function __construct(Google_Client $client) /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code * @throws Google_IO_Exception on curl or IO error */ public function executeRequest(Google_Http_Request $request) diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index 5023d5308..e79da102a 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -57,9 +57,8 @@ public function __construct(Google_Client $client) /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code * @throws Google_IO_Exception on curl or IO error */ public function executeRequest(Google_Http_Request $request) From 31229360472c3e9b2f125676532c1899ab30a6f5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Mar 2015 04:00:17 -0800 Subject: [PATCH 0664/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 2e23a435f..e4c22de08 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -33,6 +33,9 @@ class Google_Service_YouTube extends Google_Service /** Manage your YouTube account. */ const YOUTUBE = "https://www.googleapis.com/auth/youtube"; + /** Manage your YouTube account. */ + const YOUTUBE_FORCE_SSL = + "https://www.googleapis.com/auth/youtube.force-ssl"; /** View your YouTube account. */ const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; From 0a935fb4607c22fe5b4278358e59b7e4fd78e7f4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 6 Mar 2015 04:00:17 -0800 Subject: [PATCH 0665/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 82da936b6e29daf54ba0843d6d88e0b0ed5b4802 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 6 Mar 2015 08:43:43 -0800 Subject: [PATCH 0666/1274] Add null placeholder and service account json Fixes #445 by adding a method for decoding the new service account JSON format. Offers a workaround for #441 --- src/Google/Client.php | 27 + src/Google/Model.php | 23 +- src/Google/Service/SQLAdmin.php | 3314 --------------------- tests/general/ApiClientTest.php | 10 + tests/general/ApiModelTest.php | 86 +- tests/general/testdata/service-12345.json | 7 + 6 files changed, 112 insertions(+), 3355 deletions(-) delete mode 100644 src/Google/Service/SQLAdmin.php create mode 100644 tests/general/testdata/service-12345.json diff --git a/src/Google/Client.php b/src/Google/Client.php index 0bb597f3b..f948db7db 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -124,6 +124,33 @@ public function authenticate($code) $this->authenticated = true; return $this->getAuth()->authenticate($code); } + + /** + * Loads a service account key and parameters from a JSON + * file from the Google Developer Console. Uses that and the + * given array of scopes to return an assertion credential for + * use with refreshTokenWithAssertionCredential. + * + * @param string $jsonLocation File location of the project-key.json. + * @param array $scopes The scopes to assert. + * @return Google_Auth_AssertionCredentials. + * @ + */ + public function loadServiceAccountJson($jsonLocation, $scopes) + { + $data = json_decode(file_get_contents($jsonLocation)); + if (isset($data->type) && $data->type == 'service_account') { + // Service Account format. + $cred = new Google_Auth_AssertionCredentials( + $data->client_email, + $scopes, + $data->private_key + ); + return $cred; + } else { + throw new Google_Exception("Invalid service account JSON file."); + } + } /** * Set the auth config from the JSON string provided. diff --git a/src/Google/Model.php b/src/Google/Model.php index 3ef8f2ace..d2c76da85 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -23,6 +23,11 @@ */ class Google_Model implements ArrayAccess { + /** + * If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE + * instead - it will be replaced when converting to JSON with a real null. + */ + const NULL_VALUE = "{}gapi-php-null"; protected $internal_gapi_mappings = array(); protected $modelData = array(); protected $processed = array(); @@ -91,7 +96,7 @@ public function __get($key) */ protected function mapTypes($array) { - // Hard initilise simple types, lazy load more complex ones. + // Hard initialise simple types, lazy load more complex ones. foreach ($array as $key => $val) { if ( !property_exists($this, $this->keyType($key)) && property_exists($this, $key)) { @@ -130,7 +135,7 @@ public function toSimpleObject() foreach ($this->modelData as $key => $val) { $result = $this->getSimpleValue($val); if ($result !== null) { - $object->$key = $result; + $object->$key = $this->nullPlaceholderCheck($result); } } @@ -142,7 +147,7 @@ public function toSimpleObject() $result = $this->getSimpleValue($this->$name); if ($result !== null) { $name = $this->getMappedName($name); - $object->$name = $result; + $object->$name = $this->nullPlaceholderCheck($result); } } @@ -163,13 +168,23 @@ private function getSimpleValue($value) $a_value = $this->getSimpleValue($a_value); if ($a_value !== null) { $key = $this->getMappedName($key); - $return[$key] = $a_value; + $return[$key] = $this->nullPlaceholderCheck($a_value); } } return $return; } return $value; } + + /** + * Check whether the value is the null placeholder and return true null. + */ + private function nullPlaceholderCheck($value) { + if ($value === self::NULL_VALUE) { + return null; + } + return $value; + } /** * If there is an internal name mapping, use that. diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php deleted file mode 100644 index 915c8a5dc..000000000 --- a/src/Google/Service/SQLAdmin.php +++ /dev/null @@ -1,3314 +0,0 @@ - - * API for Cloud SQL database instance management.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $databases; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - public $users; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta4/'; - $this->version = 'v1beta4'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->databases = new Google_Service_SQLAdmin_Databases_Resource( - $this, - $this->serviceName, - 'databases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/{instance}/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'startReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/startReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stopReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/stopReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_SQLAdmin_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $backupRuns = $sqladminService->backupRuns; - * - */ -class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a resource containing information about a backup run. - * (backupRuns.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $id The ID of this Backup Run. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_BackupRun - */ - public function get($project, $instance, $id, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); - } - - /** - * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. - * (backupRuns.listBackupRuns) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of backup runs per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_BackupRunsListResponse - */ - public function listBackupRuns($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); - } -} - -/** - * The "databases" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $databases = $sqladminService->databases; - * - */ -class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource -{ - - /** - * Deletes a resource containing information about a database inside a Cloud SQL - * instance. (databases.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be deleted in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a database inside a Cloud - * SQL instance. (databases.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Database - */ - public function get($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); - } - - /** - * Inserts a resource containing information about a database inside a Cloud SQL - * instance. (databases.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists databases in the specified Cloud SQL instance. - * (databases.listDatabases) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabasesListResponse - */ - public function listDatabases($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. This method supports patch semantics. (databases.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. (databases.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "flags" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $flags = $sqladminService->flags; - * - */ -class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource -{ - - /** - * List all available database flags for Google Cloud SQL instances. - * (flags.listFlags) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_FlagsListResponse - */ - public function listFlags($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $instances = $sqladminService->instances; - * - */ -class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource -{ - - /** - * Creates a Cloud SQL instance as a clone of the source instance. - * (instances.cloneInstances) - * - * @param string $project Project ID of the source as well as the clone Cloud - * SQL instance. - * @param string $instance The ID of the Cloud SQL instance to be cloned - * (source). This does not include the project ID. - * @param Google_InstancesCloneRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes a Cloud SQL instance. (instances.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) - * - * @param string $project Project ID of the project that contains the instance - * to be exported. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesExportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a Cloud SQL instance. - * (instances.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabaseInstance - */ - public function get($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); - } - - /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud - * Storage. (instances.import) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesImportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new Cloud SQL instance. (instances.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists instances under a given project in the alphabetical order of the - * instance name. (instances.listInstances) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @opt_param string maxResults The maximum number of results to return per - * response. - * @return Google_Service_SQLAdmin_InstancesListResponse - */ - public function listInstances($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch.. This method supports patch - * semantics. (instances.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Promotes the read replica instance to be a stand-alone Cloud SQL instance. - * (instances.promoteReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function promoteReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function resetSslConfig($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restarts a Cloud SQL instance. (instances.restart) - * - * @param string $project Project ID of the project that contains the instance - * to be restarted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restart($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesRestoreBackupRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Starts the replication in the read replica instance. (instances.startReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function startReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Stops the replication in the read replica instance. (instances.stopReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function stopReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch. (instances.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $operations = $sqladminService->operations; - * - */ -class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an instance operation that has been performed on an instance. - * (operations.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $operation Instance operation ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists all instance operations that have been performed on the given Cloud SQL - * instance in the reverse chronological order of the start time. - * (operations.listOperations) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of operations per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_OperationsListResponse - */ - public function listOperations($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); - } -} - -/** - * The "sslCerts" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $sslCerts = $sqladminService->sslCerts; - * - */ -class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource -{ - - /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a particular SSL certificate. Does not include the private key - * (required for usage). The private key must be saved from the response to - * initial creation. (sslCerts.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCert - */ - public function get($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); - } - - /** - * Creates an SSL certificate and returns it along with the private key and - * server certificate authority. The new certificate will not be usable until - * the instance is restarted. (sslCerts.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_SslCertsInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsInsertResponse - */ - public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); - } - - /** - * Lists all of the current SSL certificates for the instance. - * (sslCerts.listSslCerts) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsListResponse - */ - public function listSslCerts($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); - } -} - -/** - * The "tiers" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $tiers = $sqladminService->tiers; - * - */ -class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource -{ - - /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) - * - * @param string $project Project ID of the project for which to list tiers. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_TiersListResponse - */ - public function listTiers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $users = $sqladminService->users; - * - */ -class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource -{ - - /** - * Deletes a user from a Cloud SQL instance. (users.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $host, $name, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new user in a Cloud SQL instance. (users.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists users in the specified Cloud SQL instance. (users.listUsers) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_UsersListResponse - */ - public function listUsers($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); - } - - /** - * Updates an existing user in a Cloud SQL instance. (users.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - - - - -class Google_Service_SQLAdmin_AclEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expirationTime; - public $kind; - public $name; - public $value; - - - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - 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 setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binaryLogEnabled; - public $enabled; - public $kind; - public $startTime; - - - public function setBinaryLogEnabled($binaryLogEnabled) - { - $this->binaryLogEnabled = $binaryLogEnabled; - } - public function getBinaryLogEnabled() - { - return $this->binaryLogEnabled; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_SQLAdmin_BackupRun extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - public $id; - public $instance; - public $kind; - public $selfLink; - public $startTime; - public $status; - public $windowStartTime; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function 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 setWindowStartTime($windowStartTime) - { - $this->windowStartTime = $windowStartTime; - } - public function getWindowStartTime() - { - return $this->windowStartTime; - } -} - -class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binLogFileName; - public $binLogPosition; - public $kind; - - - public function setBinLogFileName($binLogFileName) - { - $this->binLogFileName = $binLogFileName; - } - public function getBinLogFileName() - { - return $this->binLogFileName; - } - public function setBinLogPosition($binLogPosition) - { - $this->binLogPosition = $binLogPosition; - } - public function getBinLogPosition() - { - return $this->binLogPosition; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_CloneContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; - protected $binLogCoordinatesDataType = ''; - public $destinationInstanceName; - public $kind; - - - public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) - { - $this->binLogCoordinates = $binLogCoordinates; - } - public function getBinLogCoordinates() - { - return $this->binLogCoordinates; - } - public function setDestinationInstanceName($destinationInstanceName) - { - $this->destinationInstanceName = $destinationInstanceName; - } - public function getDestinationInstanceName() - { - return $this->destinationInstanceName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Database extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $charset; - public $collation; - public $etag; - public $instance; - public $kind; - public $name; - public $project; - public $selfLink; - - - public function setCharset($charset) - { - $this->charset = $charset; - } - public function getCharset() - { - return $this->charset; - } - public function setCollation($collation) - { - $this->collation = $collation; - } - public function getCollation() - { - return $this->collation; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_SQLAdmin_DatabaseInstance extends Google_Collection -{ - protected $collection_key = 'replicaNames'; - protected $internal_gapi_mappings = array( - ); - public $currentDiskSize; - public $databaseVersion; - public $etag; - public $instanceType; - protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; - protected $ipAddressesDataType = 'array'; - public $ipv6Address; - public $kind; - public $masterInstanceName; - public $maxDiskSize; - public $name; - public $project; - public $region; - public $replicaNames; - public $selfLink; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - public $serviceAccountEmailAddress; - protected $settingsType = 'Google_Service_SQLAdmin_Settings'; - protected $settingsDataType = ''; - public $state; - - - public function setCurrentDiskSize($currentDiskSize) - { - $this->currentDiskSize = $currentDiskSize; - } - public function getCurrentDiskSize() - { - return $this->currentDiskSize; - } - public function setDatabaseVersion($databaseVersion) - { - $this->databaseVersion = $databaseVersion; - } - public function getDatabaseVersion() - { - return $this->databaseVersion; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstanceType($instanceType) - { - $this->instanceType = $instanceType; - } - public function getInstanceType() - { - return $this->instanceType; - } - public function setIpAddresses($ipAddresses) - { - $this->ipAddresses = $ipAddresses; - } - public function getIpAddresses() - { - return $this->ipAddresses; - } - public function setIpv6Address($ipv6Address) - { - $this->ipv6Address = $ipv6Address; - } - public function getIpv6Address() - { - return $this->ipv6Address; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMasterInstanceName($masterInstanceName) - { - $this->masterInstanceName = $masterInstanceName; - } - public function getMasterInstanceName() - { - return $this->masterInstanceName; - } - public function setMaxDiskSize($maxDiskSize) - { - $this->maxDiskSize = $maxDiskSize; - } - public function getMaxDiskSize() - { - return $this->maxDiskSize; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setReplicaNames($replicaNames) - { - $this->replicaNames = $replicaNames; - } - public function getReplicaNames() - { - return $this->replicaNames; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } - public function setServiceAccountEmailAddress($serviceAccountEmailAddress) - { - $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; - } - public function getServiceAccountEmailAddress() - { - return $this->serviceAccountEmailAddress; - } - public function setSettings(Google_Service_SQLAdmin_Settings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Database'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ExportContext extends Google_Collection -{ - protected $collection_key = 'databases'; - protected $internal_gapi_mappings = array( - ); - protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; - protected $csvExportOptionsDataType = ''; - public $databases; - public $fileType; - public $kind; - protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; - protected $sqlExportOptionsDataType = ''; - public $uri; - - - public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) - { - $this->csvExportOptions = $csvExportOptions; - } - public function getCsvExportOptions() - { - return $this->csvExportOptions; - } - public function setDatabases($databases) - { - $this->databases = $databases; - } - public function getDatabases() - { - return $this->databases; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) - { - $this->sqlExportOptions = $sqlExportOptions; - } - public function getSqlExportOptions() - { - return $this->sqlExportOptions; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $selectQuery; - - - public function setSelectQuery($selectQuery) - { - $this->selectQuery = $selectQuery; - } - public function getSelectQuery() - { - return $this->selectQuery; - } -} - -class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection -{ - protected $collection_key = 'tables'; - protected $internal_gapi_mappings = array( - ); - public $tables; - - - public function setTables($tables) - { - $this->tables = $tables; - } - public function getTables() - { - return $this->tables; - } -} - -class Google_Service_SQLAdmin_Flag extends Google_Collection -{ - protected $collection_key = 'appliesTo'; - protected $internal_gapi_mappings = array( - ); - public $allowedStringValues; - public $appliesTo; - public $kind; - public $maxValue; - public $minValue; - public $name; - public $type; - - - public function setAllowedStringValues($allowedStringValues) - { - $this->allowedStringValues = $allowedStringValues; - } - public function getAllowedStringValues() - { - return $this->allowedStringValues; - } - public function setAppliesTo($appliesTo) - { - $this->appliesTo = $appliesTo; - } - public function getAppliesTo() - { - return $this->appliesTo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } - 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_SQLAdmin_FlagsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Flag'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ImportContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; - protected $csvImportOptionsDataType = ''; - public $database; - public $fileType; - public $kind; - public $uri; - - - public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) - { - $this->csvImportOptions = $csvImportOptions; - } - public function getCsvImportOptions() - { - return $this->csvImportOptions; - } - public function setDatabase($database) - { - $this->database = $database; - } - public function getDatabase() - { - return $this->database; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - public $columns; - public $table; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setTable($table) - { - $this->table = $table; - } - public function getTable() - { - return $this->table; - } -} - -class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; - protected $cloneContextDataType = ''; - - - public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) - { - $this->cloneContext = $cloneContext; - } - public function getCloneContext() - { - return $this->cloneContext; - } -} - -class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - - - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } -} - -class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - - - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } -} - -class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; - protected $restoreBackupContextDataType = ''; - - - public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) - { - $this->restoreBackupContext = $restoreBackupContext; - } - public function getRestoreBackupContext() - { - return $this->restoreBackupContext; - } -} - -class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection -{ - protected $collection_key = 'authorizedNetworks'; - protected $internal_gapi_mappings = array( - ); - protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; - protected $authorizedNetworksDataType = 'array'; - public $ipv4Enabled; - public $requireSsl; - - - public function setAuthorizedNetworks($authorizedNetworks) - { - $this->authorizedNetworks = $authorizedNetworks; - } - public function getAuthorizedNetworks() - { - return $this->authorizedNetworks; - } - public function setIpv4Enabled($ipv4Enabled) - { - $this->ipv4Enabled = $ipv4Enabled; - } - public function getIpv4Enabled() - { - return $this->ipv4Enabled; - } - public function setRequireSsl($requireSsl) - { - $this->requireSsl = $requireSsl; - } - public function getRequireSsl() - { - return $this->requireSsl; - } -} - -class Google_Service_SQLAdmin_IpMapping extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $timeToRetire; - - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setTimeToRetire($timeToRetire) - { - $this->timeToRetire = $timeToRetire; - } - public function getTimeToRetire() - { - return $this->timeToRetire; - } -} - -class Google_Service_SQLAdmin_LocationPreference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $followGaeApplication; - public $kind; - public $zone; - - - public function setFollowGaeApplication($followGaeApplication) - { - $this->followGaeApplication = $followGaeApplication; - } - public function getFollowGaeApplication() - { - return $this->followGaeApplication; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_SQLAdmin_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $selfLink; - public $startTime; - public $status; - public $targetId; - public $targetLink; - public $targetProject; - public $user; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - 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 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 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 setTargetProject($targetProject) - { - $this->targetProject = $targetProject; - } - public function getTargetProject() - { - return $this->targetProject; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_SQLAdmin_OperationError extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupRunId; - public $kind; - - - public function setBackupRunId($backupRunId) - { - $this->backupRunId = $backupRunId; - } - public function getBackupRunId() - { - return $this->backupRunId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Settings extends Google_Collection -{ - protected $collection_key = 'databaseFlags'; - protected $internal_gapi_mappings = array( - ); - public $activationPolicy; - public $authorizedGaeApplications; - protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = ''; - protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; - protected $databaseFlagsDataType = 'array'; - public $databaseReplicationEnabled; - protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; - protected $ipConfigurationDataType = ''; - public $kind; - protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; - protected $locationPreferenceDataType = ''; - public $pricingPlan; - public $replicationType; - public $settingsVersion; - public $tier; - - - public function setActivationPolicy($activationPolicy) - { - $this->activationPolicy = $activationPolicy; - } - public function getActivationPolicy() - { - return $this->activationPolicy; - } - public function setAuthorizedGaeApplications($authorizedGaeApplications) - { - $this->authorizedGaeApplications = $authorizedGaeApplications; - } - public function getAuthorizedGaeApplications() - { - return $this->authorizedGaeApplications; - } - public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDatabaseFlags($databaseFlags) - { - $this->databaseFlags = $databaseFlags; - } - public function getDatabaseFlags() - { - return $this->databaseFlags; - } - public function setDatabaseReplicationEnabled($databaseReplicationEnabled) - { - $this->databaseReplicationEnabled = $databaseReplicationEnabled; - } - public function getDatabaseReplicationEnabled() - { - return $this->databaseReplicationEnabled; - } - public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) - { - $this->ipConfiguration = $ipConfiguration; - } - public function getIpConfiguration() - { - return $this->ipConfiguration; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) - { - $this->locationPreference = $locationPreference; - } - public function getLocationPreference() - { - return $this->locationPreference; - } - public function setPricingPlan($pricingPlan) - { - $this->pricingPlan = $pricingPlan; - } - public function getPricingPlan() - { - return $this->pricingPlan; - } - public function setReplicationType($replicationType) - { - $this->replicationType = $replicationType; - } - public function getReplicationType() - { - return $this->replicationType; - } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } - public function getSettingsVersion() - { - return $this->settingsVersion; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_SslCert extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cert; - public $certSerialNumber; - public $commonName; - public $createTime; - public $expirationTime; - public $instance; - public $kind; - public $selfLink; - public $sha1Fingerprint; - - - public function setCert($cert) - { - $this->cert = $cert; - } - public function getCert() - { - return $this->cert; - } - public function setCertSerialNumber($certSerialNumber) - { - $this->certSerialNumber = $certSerialNumber; - } - public function getCertSerialNumber() - { - return $this->certSerialNumber; - } - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSha1Fingerprint($sha1Fingerprint) - { - $this->sha1Fingerprint = $sha1Fingerprint; - } - public function getSha1Fingerprint() - { - return $this->sha1Fingerprint; - } -} - -class Google_Service_SQLAdmin_SslCertDetail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; - protected $certInfoDataType = ''; - public $certPrivateKey; - - - public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) - { - $this->certInfo = $certInfo; - } - public function getCertInfo() - { - return $this->certInfo; - } - public function setCertPrivateKey($certPrivateKey) - { - $this->certPrivateKey = $certPrivateKey; - } - public function getCertPrivateKey() - { - return $this->certPrivateKey; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commonName; - - - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; - protected $clientCertDataType = ''; - public $kind; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - - - public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) - { - $this->clientCert = $clientCert; - } - public function getClientCert() - { - return $this->clientCert; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } -} - -class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Tier extends Google_Collection -{ - protected $collection_key = 'region'; - protected $internal_gapi_mappings = array( - "diskQuota" => "DiskQuota", - "rAM" => "RAM", - ); - public $diskQuota; - public $rAM; - public $kind; - public $region; - public $tier; - - - public function setDiskQuota($diskQuota) - { - $this->diskQuota = $diskQuota; - } - public function getDiskQuota() - { - return $this->diskQuota; - } - public function setRAM($rAM) - { - $this->rAM = $rAM; - } - public function getRAM() - { - return $this->rAM; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Tier'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $host; - public $instance; - public $kind; - public $name; - public $password; - public $project; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } -} - -class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index 2c5d06b1f..58c3e5066 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -189,4 +189,14 @@ public function testIniConfig() $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') ); } + + public function testServiceAccountJson() + { + $client = new Google_Client(); + $c = $client->loadServiceAccountJson( + __DIR__ . "/testdata/service-12345.json", + array() + ); + $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c); + } } diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php index 8eb7ee2a1..9a81e714e 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/general/ApiModelTest.php @@ -20,45 +20,57 @@ class ApiModelTest extends BaseTest { + private $calendarData = '{ + "kind": "calendar#event", + "etag": "\"-kteSF26GsdKQ5bfmcd4H3_-u3g/MTE0NTUyNTAxOTk0MjAwMA\"", + "id": "1234566", + "status": "confirmed", + "htmlLink": "https://www.google.com/calendar/event?eid=N", + "created": "2006-04-13T14:22:08.000Z", + "updated": "2006-04-20T09:23:39.942Z", + "summary": "Evening Jolt Q3 CTFL", + "description": "6.30 - Adminning\n9.30 - Game", + "creator": { + "email": "ian@example.com", + "displayName": "Ian Test", + "self": true + }, + "organizer": { + "email": "ian@example.com", + "displayName": "Ian Test", + "self": true + }, + "start": { + "date": "2006-04-23" + }, + "end": { + "date": "2006-04-24" + }, + "iCalUID": "5gi2ac493nnrfdfd7jhesafget8@google.com", + "sequence": 0, + "reminders": { + "useDefault": false + } + }'; + + public function testIntentionalNulls() + { + $data = json_decode($this->calendarData, true); + $event = new Google_Service_Calendar_Event($data); + $obj = json_decode(json_encode($event->toSimpleObject()), true); + $this->assertArrayHasKey('date', $obj['start']); + $this->assertArrayNotHasKey('dateTime', $obj['start']); + $date = new Google_Service_Calendar_EventDateTime(); + $date->setDate(Google_Model::NULL_VALUE); + $event->setStart($date); + $obj = json_decode(json_encode($event->toSimpleObject()), true); + $this->assertNull($obj['start']['date']); + $this->assertArrayHasKey('date', $obj['start']); + $this->assertArrayNotHasKey('dateTime', $obj['start']); + } public function testModelMutation() { - $htmlLink = 'https://www.google.com/calendar/event?' - . 'eid=NWdpMmFjNDkzbm5yZzh2N2poZXNhZmdldDggaWFuLmJhcmJlckBt'; - $data = json_decode( - '{ - "kind": "calendar#event", - "etag": "\"-kteSF26GsdKQ5bfmcd4H3_-u3g/MTE0NTUyNTAxOTk0MjAwMA\"", - "id": "1234566", - "status": "confirmed", - "htmlLink": "' . $htmlLink . '", - "created": "2006-04-13T14:22:08.000Z", - "updated": "2006-04-20T09:23:39.942Z", - "summary": "Evening Jolt Q3 CTFL", - "description": "6.30 - Adminning\n9.30 - Game", - "creator": { - "email": "ian@example.com", - "displayName": "Ian Test", - "self": true - }, - "organizer": { - "email": "ian@example.com", - "displayName": "Ian Test", - "self": true - }, - "start": { - "date": "2006-04-23" - }, - "end": { - "date": "2006-04-24" - }, - "iCalUID": "5gi2ac493nnrfdfd7jhesafget8@google.com", - "sequence": 0, - "reminders": { - "useDefault": false - } - }', - true - ); + $data = json_decode($this->calendarData, true); $event = new Google_Service_Calendar_Event($data); $date = new Google_Service_Calendar_EventDateTime(); date_default_timezone_set('UTC'); diff --git a/tests/general/testdata/service-12345.json b/tests/general/testdata/service-12345.json new file mode 100644 index 000000000..a6a2df0ed --- /dev/null +++ b/tests/general/testdata/service-12345.json @@ -0,0 +1,7 @@ +{ + "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75", + "private_key": "-----BEGIN RSA PRIVATE KEY-----MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqFUJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+roOHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA==-----END RSA PRIVATE KEY-----", + "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com", + "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com", + "type": "service_account" +} \ No newline at end of file From 04a9df4763c25c9a46a8dcef60c7241d7f951b54 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Fri, 6 Mar 2015 09:08:21 -0800 Subject: [PATCH 0667/1274] Fix code style, update README --- README.md | 4 ++++ src/Google/Auth/AppIdentity.php | 9 ++++----- src/Google/Auth/ComputeEngine.php | 10 ++++++---- src/Google/Cache/File.php | 4 ++-- src/Google/Client.php | 10 +++++----- src/Google/Collection.php | 2 +- src/Google/Model.php | 3 ++- src/Google/autoload.php | 3 ++- .../general/{testdata => }/ComputeEngineAuthTest.php | 12 +++++++----- 9 files changed, 33 insertions(+), 24 deletions(-) rename tests/general/{testdata => }/ComputeEngineAuthTest.php (93%) diff --git a/README.md b/README.md index 5a5858f7c..c5564e45d 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ $opt_params = array( ); ``` +### How do I set a field to null? ### + +The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to Google_Model::NULL_VALUE. This is a placeholder that will be replaced with a true null when sent over the wire. + ## Notes For Distributors ## To avoid clashes with the autoloader, its best to update the function inside autoload.php to `google_api_php_client_autoload_MyProject`. diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 0a437655c..ba7e720b7 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -61,8 +61,7 @@ public function authenticateForScope($scopes) $this->token = $this->client->getCache()->get($cacheKey); if (!$this->token) { $this->retrieveToken($scopes, $cacheKey); - } - else if ($this->token['expiration_time'] < time()) { + } else if ($this->token['expiration_time'] < time()) { $this->client->getCache()->delete($cacheKey); $this->retrieveToken($scopes, $cacheKey); } @@ -81,9 +80,9 @@ private function retrieveToken($scopes, $cacheKey) $this->token = AppIdentityService::getAccessToken($scopes); if ($this->token) { $this->client->getCache()->set( - $cacheKey, - $this->token - ); + $cacheKey, + $this->token + ); } } diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php index 608ffbd0d..88ff6ff89 100644 --- a/src/Google/Auth/ComputeEngine.php +++ b/src/Google/Auth/ComputeEngine.php @@ -27,7 +27,8 @@ */ class Google_Auth_ComputeEngine extends Google_Auth_Abstract { - const METADATA_AUTH_URL = 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; + const METADATA_AUTH_URL = + 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; private $client; private $token; @@ -78,7 +79,8 @@ public function getAccessToken() * Acquires a new access token from the compute engine metadata server. * @throws Google_Auth_Exception */ - public function acquireAccessToken(){ + public function acquireAccessToken() + { $request = new Google_Http_Request( self::METADATA_AUTH_URL, 'GET', @@ -112,14 +114,14 @@ public function acquireAccessToken(){ */ public function sign(Google_Http_Request $request) { - if($this->isAccessTokenExpired()) { + if ($this->isAccessTokenExpired()) { $this->acquireAccessToken(); } $this->client->getLogger()->debug('Compute engine service account authentication'); $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) + array('Authorization' => 'Bearer ' . $this->token['access_token']) ); return $request; diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 43a886c2b..30cbeab83 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -181,8 +181,8 @@ private function acquireLock($type, $storageFile) $this->fh = fopen($storageFile, $mode); if (!$this->fh) { $this->client->getLogger()->error( - 'Failed to open file during lock acquisition', - array('file' => $storageFile) + 'Failed to open file during lock acquisition', + array('file' => $storageFile) ); return false; } diff --git a/src/Google/Client.php b/src/Google/Client.php index f948db7db..aef442f61 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -136,20 +136,20 @@ public function authenticate($code) * @return Google_Auth_AssertionCredentials. * @ */ - public function loadServiceAccountJson($jsonLocation, $scopes) + public function loadServiceAccountJson($jsonLocation, $scopes) { $data = json_decode(file_get_contents($jsonLocation)); if (isset($data->type) && $data->type == 'service_account') { // Service Account format. $cred = new Google_Auth_AssertionCredentials( - $data->client_email, - $scopes, - $data->private_key + $data->client_email, + $scopes, + $data->private_key ); return $cred; } else { throw new Google_Exception("Invalid service account JSON file."); - } + } } /** diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 01c24053f..3f4c3011a 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -50,7 +50,7 @@ public function valid() public function count() { - if(!isset($this->modelData[$this->collection_key])) { + if (!isset($this->modelData[$this->collection_key])) { return 0; } return count($this->modelData[$this->collection_key]); diff --git a/src/Google/Model.php b/src/Google/Model.php index d2c76da85..5ebe59da2 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -179,7 +179,8 @@ private function getSimpleValue($value) /** * Check whether the value is the null placeholder and return true null. */ - private function nullPlaceholderCheck($value) { + private function nullPlaceholderCheck($value) + { if ($value === self::NULL_VALUE) { return null; } diff --git a/src/Google/autoload.php b/src/Google/autoload.php index debdd2739..1cfccca57 100644 --- a/src/Google/autoload.php +++ b/src/Google/autoload.php @@ -15,7 +15,8 @@ * limitations under the License. */ -function google_api_php_client_autoload($className) { +function google_api_php_client_autoload($className) +{ $classPath = explode('_', $className); if ($classPath[0] != 'Google') { return; diff --git a/tests/general/testdata/ComputeEngineAuthTest.php b/tests/general/ComputeEngineAuthTest.php similarity index 93% rename from tests/general/testdata/ComputeEngineAuthTest.php rename to tests/general/ComputeEngineAuthTest.php index 755ab9f68..5f198f9f0 100644 --- a/tests/general/testdata/ComputeEngineAuthTest.php +++ b/tests/general/ComputeEngineAuthTest.php @@ -66,12 +66,14 @@ public function testSign() $oauth = new Google_Auth_ComputeEngine($client); /* Load mock access token */ - $oauth->setAccessToken(json_encode( - array( - 'access_token' => "ACCESS_TOKEN", - 'expires_in' => "12345" + $oauth->setAccessToken( + json_encode( + array( + 'access_token' => "ACCESS_TOKEN", + 'expires_in' => "12345" + ) ) - )); + ); /* Sign a URL and verify auth header is correctly set */ $req = new Google_Http_Request('http://localhost'); From f95e7ff42f6b96d21570e0de51e73be9a2faee99 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 7 Mar 2015 04:01:13 -0800 Subject: [PATCH 0668/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 73 +++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 15071958b..c3957ce6f 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -64,7 +64,11 @@ public function __construct(Google_Client $client) 'accounts', array( 'methods' => array( - 'custombatch' => array( + 'authinfo' => array( + 'path' => 'accounts/authinfo', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'custombatch' => array( 'path' => 'accounts/batch', 'httpMethod' => 'POST', 'parameters' => array(), @@ -691,6 +695,19 @@ public function __construct(Google_Client $client) class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource { + /** + * Returns information about the authenticated user. (accounts.authinfo) + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse + */ + public function authinfo($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse"); + } + /** * Retrieves, inserts, updates, and deletes multiple Merchant Center * (sub-)accounts in a single request. (accounts.custombatch) @@ -1566,6 +1583,32 @@ public function getStatus() } } +class Google_Service_ShoppingContent_AccountIdentifier extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aggregatorId; + public $merchantId; + + + public function setAggregatorId($aggregatorId) + { + $this->aggregatorId = $aggregatorId; + } + public function getAggregatorId() + { + return $this->aggregatorId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } +} + class Google_Service_ShoppingContent_AccountShipping extends Google_Collection { protected $collection_key = 'services'; @@ -2361,6 +2404,34 @@ public function getEmailAddress() } } +class Google_Service_ShoppingContent_AccountsAuthInfoResponse extends Google_Collection +{ + protected $collection_key = 'accountIdentifiers'; + protected $internal_gapi_mappings = array( + ); + protected $accountIdentifiersType = 'Google_Service_ShoppingContent_AccountIdentifier'; + protected $accountIdentifiersDataType = 'array'; + public $kind; + + + public function setAccountIdentifiers($accountIdentifiers) + { + $this->accountIdentifiers = $accountIdentifiers; + } + public function getAccountIdentifiers() + { + return $this->accountIdentifiers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; From cff3673f91d67695da562f58c0c812a054844f1a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 7 Mar 2015 04:01:14 -0800 Subject: [PATCH 0669/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From c9eb74a5e24e5eb81c552c44d33ac77c39c94a85 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 8 Mar 2015 05:02:11 -0700 Subject: [PATCH 0670/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From b195e6c5999c2c31e7393228d2e2dbccb3b6750d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 11 Mar 2015 05:05:05 -0700 Subject: [PATCH 0671/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 88 +++++++++++++++++----------------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 7cf3811e0..c61e25481 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -3164,7 +3164,7 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource /** * Retrieves the list of disks grouped by scope. (disks.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3185,9 +3185,9 @@ public function aggregatedList($project, $optParams = array()) /** * (disks.createSnapshot) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $disk Name of the persistent disk resource to snapshot. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to snapshot. * @param Google_Snapshot $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3200,11 +3200,11 @@ public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Sn } /** - * Deletes the specified persistent disk resource. (disks.delete) + * Deletes the specified persistent disk. (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 string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3216,11 +3216,11 @@ public function delete($project, $zone, $disk, $optParams = array()) } /** - * Returns the specified persistent disk resource. (disks.get) + * Returns a specified persistent disk. (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 string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Disk */ @@ -3232,11 +3232,11 @@ public function get($project, $zone, $disk, $optParams = array()) } /** - * Creates a persistent disk resource in the specified project using the data - * included in the request. (disks.insert) + * Creates a persistent disk 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 string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param Google_Disk $postBody * @param array $optParams Optional parameters. * @@ -3251,11 +3251,11 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ } /** - * Retrieves the list of persistent disk resources contained within the - * specified zone. (disks.listDisks) + * Retrieves the list of persistent disks contained within the specified zone. + * (disks.listDisks) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3288,7 +3288,7 @@ 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 $project Project ID for this request. * @param string $firewall Name of the firewall resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3303,7 +3303,7 @@ public function delete($project, $firewall, $optParams = array()) /** * Returns the specified firewall resource. (firewalls.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $firewall Name of the firewall resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Firewall @@ -3319,7 +3319,7 @@ public function get($project, $firewall, $optParams = array()) * 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 string $project Project ID for this request. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3335,7 +3335,7 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt * Retrieves the list of firewall resources available to the specified project. * (firewalls.listFirewalls) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -3357,7 +3357,7 @@ public function listFirewalls($project, $optParams = array()) * 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 $project Project ID for this request. * @param string $firewall Name of the firewall resource to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. @@ -3374,7 +3374,7 @@ public function patch($project, $firewall, Google_Service_Compute_Firewall $post * 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 $project Project ID for this request. * @param string $firewall Name of the firewall resource to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. @@ -3907,7 +3907,7 @@ 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 $project Project ID for this request. * @param string $image Name of the image resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3920,10 +3920,12 @@ public function delete($project, $image, $optParams = array()) } /** - * Sets the deprecation status of an image. If no message body is given, clears - * the deprecation status instead. (images.deprecate) + * Sets the deprecation status of an image. * - * @param string $project Name of the project scoping this request. + * If an empty request body is given, clears the deprecation status instead. + * (images.deprecate) + * + * @param string $project Project ID for this request. * @param string $image Image name. * @param Google_DeprecationStatus $postBody * @param array $optParams Optional parameters. @@ -3939,7 +3941,7 @@ public function deprecate($project, $image, Google_Service_Compute_DeprecationSt /** * Returns the specified image resource. (images.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $image Name of the image resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Image @@ -3955,7 +3957,7 @@ public function get($project, $image, $optParams = array()) * 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 string $project Project ID for this request. * @param Google_Image $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3971,7 +3973,7 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar * Retrieves the list of image resources available to the specified project. * (images.listImages) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4460,7 +4462,7 @@ public function aggregatedList($project, $optParams = array()) * Returns the specified machine type resource. (machineTypes.get) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone The name of the zone for this request. * @param string $machineType Name of the machine type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_MachineType @@ -4477,7 +4479,7 @@ public function get($project, $zone, $machineType, $optParams = array()) * project. (machineTypes.listMachineTypes) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4510,7 +4512,7 @@ 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 $project Project ID for this request. * @param string $network Name of the network resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4525,7 +4527,7 @@ public function delete($project, $network, $optParams = array()) /** * Returns the specified network resource. (networks.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $network Name of the network resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Network @@ -4541,7 +4543,7 @@ public function get($project, $network, $optParams = array()) * 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 string $project Project ID for this request. * @param Google_Network $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4557,7 +4559,7 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP * Retrieves the list of network resources available to the specified project. * (networks.listNetworks) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -4748,7 +4750,7 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource /** * Returns the specified region resource. (regions.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Region @@ -4764,7 +4766,7 @@ public function get($project, $region, $optParams = array()) * Retrieves the list of region resources available to the specified project. * (regions.listRegions) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -5565,7 +5567,7 @@ 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 $project Project ID for this request. * @param string $zone Name of the zone resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Zone @@ -5581,7 +5583,7 @@ public function get($project, $zone, $optParams = array()) * Retrieves the list of zone resources available to the specified project. * (zones.listZones) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed From eb9c21866f364f813623269d449644663f7265c4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 11 Mar 2015 05:05:05 -0700 Subject: [PATCH 0672/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index ceddd960d..bccc5796f 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1212,8 +1212,8 @@ 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) + * Clears a primary calendar. This operation deletes all events associated with + * the primary calendar of an account. (calendars.clear) * * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. @@ -1226,7 +1226,8 @@ public function clear($calendarId, $optParams = array()) } /** - * Deletes a secondary calendar. (calendars.delete) + * Deletes a secondary calendar. Use calendars.clear for clearing all events on + * primary calendars. (calendars.delete) * * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. From 11af4277478d48c54ae4139d9adbf7f2cd380943 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 11 Mar 2015 05:05:05 -0700 Subject: [PATCH 0673/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From b6975d34a2967c0e477bf7d43dd75db1776a09d3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 11 Mar 2015 05:05:06 -0700 Subject: [PATCH 0674/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 551 ------------------------------- 1 file changed, 551 deletions(-) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 9ba0861ec..8e9ea1566 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -58,7 +58,6 @@ class Google_Service_Analytics extends Google_Service public $management_customDataSources; public $management_customDimensions; public $management_customMetrics; - public $management_dailyUploads; public $management_experiments; public $management_filters; public $management_goals; @@ -633,123 +632,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource( - $this, - $this->serviceName, - 'dailyUploads', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'upload' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'appendNumber' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'reset' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource( $this, $this->serviceName, @@ -1718,26 +1600,6 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'migrateDataImport' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'uploadData' => array( 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', @@ -2657,88 +2519,6 @@ public function update($accountId, $webPropertyId, $customMetricId, Google_Servi return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric"); } } -/** - * The "dailyUploads" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * List daily uploads to which the user has access. - * (dailyUploads.listManagementDailyUploads) - * - * @param string $accountId Account Id for the daily uploads to retrieve. - * @param string $webPropertyId Web property Id for the daily uploads to - * retrieve. - * @param string $customDataSourceId Custom data source Id for daily uploads to - * retrieve. - * @param string $startDate Start date of the form YYYY-MM-DD. - * @param string $endDate End date of the form YYYY-MM-DD. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of custom data sources to - * include in this response. - * @opt_param int start-index A 1-based index of the first daily upload to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_DailyUploads - */ - public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); - } - - /** - * Update/Overwrite data for a custom data source. (dailyUploads.upload) - * - * @param string $accountId Account Id associated with daily upload. - * @param string $webPropertyId Web property Id associated with daily upload. - * @param string $customDataSourceId Custom data source Id to which the data - * being uploaded belongs. - * @param string $date Date for which data is uploaded. Date should be formatted - * as YYYY-MM-DD. - * @param int $appendNumber Append number for this upload indexed from 1. - * @param string $type Type of data for this upload. - * @param array $optParams Optional parameters. - * - * @opt_param bool reset Reset/Overwrite all previous appends for this date and - * start over with this file as the first upload. - * @return Google_Service_Analytics_DailyUploadAppend - */ - public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend"); - } -} /** * The "experiments" collection of methods. * Typical usage is: @@ -3593,22 +3373,6 @@ public function listManagementUploads($accountId, $webPropertyId, $customDataSou return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); } - /** - * Migrate custom data source and data imports to latest version. - * (uploads.migrateDataImport) - * - * @param string $accountId Account Id for migration. - * @param string $webPropertyId Web property Id for migration. - * @param string $customDataSourceId Custom data source Id for migration. - * @param array $optParams Optional parameters. - */ - public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('migrateDataImport', array($params)); - } - /** * Upload data for a custom data source. (uploads.uploadData) * @@ -5357,321 +5121,6 @@ public function getUsername() } } -class Google_Service_Analytics_DailyUpload extends Google_Collection -{ - protected $collection_key = 'recentChanges'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $appendCount; - public $createdTime; - public $customDataSourceId; - public $date; - public $kind; - public $modifiedTime; - protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink'; - protected $parentLinkDataType = ''; - protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges'; - protected $recentChangesDataType = 'array'; - public $selfLink; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAppendCount($appendCount) - { - $this->appendCount = $appendCount; - } - public function getAppendCount() - { - return $this->appendCount; - } - public function setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - public function getCreatedTime() - { - return $this->createdTime; - } - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - public function getModifiedTime() - { - return $this->modifiedTime; - } - public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setRecentChanges($recentChanges) - { - $this->recentChanges = $recentChanges; - } - public function getRecentChanges() - { - return $this->recentChanges; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_DailyUploadAppend extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_DailyUpload'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection { protected $collection_key = 'profileIds'; From 1b3d897b6fbc4cc9c544744e08bfa48d4f90a945 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Mar 2015 05:06:19 -0700 Subject: [PATCH 0675/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index dd02b5c8b..917c2bdd7 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1124,9 +1124,7 @@ public function get($datasetId, $optParams = array()) * @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 projectNumber Only return datasets which belong to this - * Google Developers Console project. Only accepts project numbers. Returns all - * public projects if no project number is specified. + * @opt_param string projectNumber The project to list datasets for. * @opt_param int pageSize The maximum number of results returned by this * request. * @return Google_Service_Genomics_ListDatasetsResponse From 45e6d50605574e48a30f0b116ff18509bf26d52f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 13 Mar 2015 05:06:19 -0700 Subject: [PATCH 0676/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 457b3e72a..f19ccb5d6 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -1679,7 +1679,8 @@ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optPara } /** - * Permanently deletes a file by ID. Skips the trash. (files.delete) + * Permanently deletes a file by ID. Skips the trash. The currently + * authenticated user must own the file. (files.delete) * * @param string $fileId The ID of the file to delete. * @param array $optParams Optional parameters. @@ -2086,8 +2087,9 @@ public function listPermissions($fileId, $optParams = array()) * @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. + * @opt_param bool transferOwnership Whether changing a role to 'owner' + * downgrades the current owners to writers. Does nothing if the specified role + * is not 'owner'. * @return Google_Service_Drive_Permission */ public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) @@ -2105,8 +2107,9 @@ public function patch($fileId, $permissionId, Google_Service_Drive_Permission $p * @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. + * @opt_param bool transferOwnership Whether changing a role to 'owner' + * downgrades the current owners to writers. Does nothing if the specified role + * is not 'owner'. * @return Google_Service_Drive_Permission */ public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) From 19f76bcf576a40be10337eb0ea41bc3fece3453a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 14 Mar 2015 05:07:26 -0700 Subject: [PATCH 0677/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From e22e43a24363e03aeb8c36ba0bf20a76d7b233b2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 15 Mar 2015 05:08:34 -0700 Subject: [PATCH 0678/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 9b3889c4ee58f14547d55d7e35b0145525544795 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 16 Mar 2015 05:09:30 -0700 Subject: [PATCH 0679/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From db2b1df83c94d8c73b01530149418abb8930f594 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 16 Mar 2015 05:09:31 -0700 Subject: [PATCH 0680/1274] Updated GroupsMigration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GroupsMigration.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index 4c7ce4aab..6aea31cfa 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -30,7 +30,9 @@ */ class Google_Service_GroupsMigration extends Google_Service { - + /** Manage messages in groups on your domain. */ + const APPS_GROUPS_MIGRATION = + "https://www.googleapis.com/auth/apps.groups.migration"; public $archive; From 03a468b9ebf9dfec735592dbe8a12ba73d65845b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Mar 2015 05:11:19 -0700 Subject: [PATCH 0681/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 43 +++--------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 5b4387ce1..35573aad2 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -634,20 +634,6 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), - ),'get' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'insert' => array( 'path' => 'mylibrary/annotations', 'httpMethod' => 'POST', @@ -694,10 +680,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageIds' => array( + 'updatedMax' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'contentVersion' => array( 'location' => 'query', @@ -711,10 +696,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'summary' => array( 'path' => 'mylibrary/annotations/summary', @@ -1906,22 +1887,6 @@ public function delete($annotationId, $optParams = array()) return $this->call('delete', array($params)); } - /** - * Gets an annotation by its ID. (annotations.get) - * - * @param string $annotationId The ID for the annotation to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Annotation - */ - public function get($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Annotation"); - } - /** * Inserts a new annotation. (annotations.insert) * @@ -1956,14 +1921,12 @@ public function insert(Google_Service_Books_Annotation $postBody, $optParams = a * @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 updatedMax RFC 3339 timestamp to restrict to items updated + * prior to this timestamp (exclusive). * @opt_param string contentVersion The content version for the requested * volume. * @opt_param string source String to identify the originator of this request. * @opt_param string layerId The layer ID to limit annotation by. - * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated - * prior to this timestamp (exclusive). * @return Google_Service_Books_Annotations */ public function listMylibraryAnnotations($optParams = array()) From e768148f92ff371bd59790b9af8b58564e3408a0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Mar 2015 05:11:19 -0700 Subject: [PATCH 0682/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index c61e25481..c006ee8ab 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -3183,7 +3183,7 @@ public function aggregatedList($project, $optParams = array()) } /** - * (disks.createSnapshot) + * Creates a snapshot of this disk. (disks.createSnapshot) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. From 64f3482d9be2e0191afaf9c16c97901db072404d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Mar 2015 05:11:19 -0700 Subject: [PATCH 0683/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 3c3989107..d4f1bcbc7 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -2807,11 +2807,21 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio protected $collection_key = 'rows'; protected $internal_gapi_mappings = array( ); + public $ignoreUnknownValues; public $kind; protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; + public $skipInvalidRows; + public function setIgnoreUnknownValues($ignoreUnknownValues) + { + $this->ignoreUnknownValues = $ignoreUnknownValues; + } + public function getIgnoreUnknownValues() + { + return $this->ignoreUnknownValues; + } public function setKind($kind) { $this->kind = $kind; @@ -2828,6 +2838,14 @@ public function getRows() { return $this->rows; } + public function setSkipInvalidRows($skipInvalidRows) + { + $this->skipInvalidRows = $skipInvalidRows; + } + public function getSkipInvalidRows() + { + return $this->skipInvalidRows; + } } class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model From e381dba8f9018958b11722b7a3adef4b6153fdb4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Mar 2015 05:11:20 -0700 Subject: [PATCH 0684/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 3dc918178..d95d06bab 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -262,6 +262,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'currency' => array( + 'location' => 'query', + 'type' => 'string', + ), 'filters' => array( 'location' => 'query', 'type' => 'string', @@ -598,6 +602,10 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter * (one-based, inclusive). + * @opt_param string currency The currency to which financial metrics should be + * converted. The default is US Dollar (USD). If the result contains no + * financial metrics, this flag will be ignored. Responds with an error if the + * specified currency is not recognized. * @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 From 23f459c65dcc1a8f0dccdd6326061fb70fc4ff08 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 18 Mar 2015 05:11:20 -0700 Subject: [PATCH 0685/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index ac7eedf46..bed814dfb 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -387,6 +387,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'deleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'internalDateSource' => array( 'location' => 'query', 'type' => 'string', @@ -1019,6 +1023,9 @@ public function import($userId, Google_Service_Gmail_Message $postBody, $optPara * @param Google_Message $postBody * @param array $optParams Optional parameters. * + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Apps Vault to a Vault administrator. Only used for + * Google Apps for Work accounts. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. * @return Google_Service_Gmail_Message From eef028eb14adeee76169900a72dc8f29d0693687 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 19 Mar 2015 05:12:25 -0700 Subject: [PATCH 0686/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 917c2bdd7..78d114656 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1117,7 +1117,7 @@ public function get($datasetId, $optParams = array()) } /** - * Lists all datasets. (datasets.listDatasets) + * Lists datasets within a project. (datasets.listDatasets) * * @param array $optParams Optional parameters. * @@ -1126,7 +1126,7 @@ public function get($datasetId, $optParams = array()) * parameter to the value of nextPageToken from the previous response. * @opt_param string projectNumber The project to list datasets for. * @opt_param int pageSize The maximum number of results returned by this - * request. + * request. If unspecified, defaults to 50. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) From 788b4a417c9604030c68c49fa2d4d8c9fe77ebd3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 20 Mar 2015 05:13:26 -0700 Subject: [PATCH 0687/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index c3957ce6f..512e8e8cb 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -4277,6 +4277,8 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $adwordsLabels; public $adwordsRedirect; public $ageGroup; + protected $aspectsType = 'Google_Service_ShoppingContent_ProductAspect'; + protected $aspectsDataType = 'array'; public $availability; public $availabilityDate; public $brand; @@ -4405,6 +4407,14 @@ public function getAgeGroup() { return $this->ageGroup; } + public function setAspects($aspects) + { + $this->aspects = $aspects; + } + public function getAspects() + { + return $this->aspects; + } public function setAvailability($availability) { $this->availability = $availability; @@ -4903,6 +4913,41 @@ public function getWarnings() } } +class Google_Service_ShoppingContent_ProductAspect extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aspectName; + public $destinationName; + public $intention; + + + public function setAspectName($aspectName) + { + $this->aspectName = $aspectName; + } + public function getAspectName() + { + return $this->aspectName; + } + public function setDestinationName($destinationName) + { + $this->destinationName = $destinationName; + } + public function getDestinationName() + { + return $this->destinationName; + } + public function setIntention($intention) + { + $this->intention = $intention; + } + public function getIntention() + { + return $this->intention; + } +} + class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model { protected $internal_gapi_mappings = array( From c4deda9f2d2d4ba2d2ad2c398567dcb0df274852 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 22 Mar 2015 05:14:37 -0700 Subject: [PATCH 0688/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 78d114656..7fca62e22 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -800,7 +800,7 @@ public function patch($annotationSetId, Google_Service_Genomics_AnnotationSet $p } /** - * Searches for annotation sets which match the given criteria. Results are + * Searches for annotation sets that match the given criteria. Results are * returned in a deterministic order. Caller must have READ permission for the * queried datasets. (annotationSets.search) * @@ -931,10 +931,10 @@ public function patch($annotationId, Google_Service_Genomics_Annotation $postBod } /** - * Searches for annotations which match the given criteria. Results are returned - * ordered by start position. Annotations which have matching start positions - * are ordered deterministically. Caller must have READ permission for the - * queried annotation sets. (annotations.search) + * Searches for annotations that match the given criteria. Results are returned + * ordered by start position. Annotations that have matching start positions are + * ordered deterministically. Caller must have READ permission for the queried + * annotation sets. (annotations.search) * * @param Google_SearchAnnotationsRequest $postBody * @param array $optParams Optional parameters. From 9c304dbbeccb769a446c57228e0c78561f4eab0a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 22 Mar 2015 05:14:37 -0700 Subject: [PATCH 0689/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 111 ++++++++++++++-------------- 1 file changed, 55 insertions(+), 56 deletions(-) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 4ee1497ab..f2368f7ac 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -642,7 +642,7 @@ class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resourc { /** - * Deletes the column. (column.delete) + * Deletes the specified 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. @@ -656,7 +656,7 @@ public function delete($tableId, $columnId, $optParams = array()) } /** - * Retrieves a specific column by its id. (column.get) + * 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 @@ -753,17 +753,17 @@ class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource { /** - * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. - * (query.sql) + * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT + * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql) * - * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE - * statement. + * @param string $sql A Fusion Tables SQL statement, which can be any of - + * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE * @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)?. + * @opt_param bool typed Whether typed values are returned in the (JSON) + * response: numbers for numeric values and parsed geometries for KML values. + * Default is true. + * @opt_param bool hdrs Whether column names are included in the first row. * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ @@ -775,15 +775,17 @@ public function sql($sql, $optParams = array()) } /** - * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) + * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE + * (query.sqlGet) * - * @param string $sql An SQL SELECT/SHOW/DESCRIBE statement. + * @param string $sql A SQL statement which can be any of - SELECT - SHOW - + * DESCRIBE * @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)?. + * @opt_param bool typed Whether typed values are returned in the (JSON) + * response: numbers for numeric values and parsed geometries for KML values. + * Default is true. + * @opt_param bool hdrs Whether column names are included (in the first row). * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ @@ -934,7 +936,7 @@ public function copy($tableId, $optParams = array()) /** * Deletes a table. (table.delete) * - * @param string $tableId ID of the table that is being deleted. + * @param string $tableId ID of the table to be deleted. * @param array $optParams Optional parameters. */ public function delete($tableId, $optParams = array()) @@ -945,9 +947,9 @@ public function delete($tableId, $optParams = array()) } /** - * Retrieves a specific table by its id. (table.get) + * Retrieves a specific table by its ID. (table.get) * - * @param string $tableId Identifier(ID) for the table being requested. + * @param string $tableId Identifier for the table being requested. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Table */ @@ -959,28 +961,24 @@ public function get($tableId, $optParams = array()) } /** - * Import more rows into a table. (table.importRows) + * Imports more rows into a table. (table.importRows) * * @param string $tableId The table into which new rows are being imported. * @param array $optParams Optional parameters. * * @opt_param int startLine The index of the first line from which to start * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the CSV must have the same number of values - * for each row. If false, rows with fewer values will be padded with empty - * values. Default is true. + * @opt_param bool isStrict Whether the imported CSV must have the same number + * of values for each row. If false, rows with fewer values will be padded with + * empty values. Default is true. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * 'auto-detect' if you are unsure of the encoding. + * auto-detect if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ','. - * @opt_param int endLine The index of the last line from which to start - * importing, exclusive. Thus, the number of imported lines is endLine - - * startLine. If this parameter is not provided, the file will be imported until - * the last line of the file. If endLine is negative, then the imported content - * will exclude the last endLine lines. That is, if endline is negative, no line - * will be imported whose index is greater than N + endLine where N is the - * number of lines in the file, and the number of imported lines will be N + - * endLine - startLine. + * can only consist of a single character. Default is ,. + * @opt_param int endLine The index of the line up to which data will be + * imported. Default is to import the entire file. If endLine is negative, it is + * an offset from the end of the file; the imported content will exclude the + * last endLine lines. * @return Google_Service_Fusiontables_Import */ public function importRows($tableId, $optParams = array()) @@ -991,15 +989,15 @@ public function importRows($tableId, $optParams = array()) } /** - * Import a new table. (table.importTable) + * Imports 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 ','. + * 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. + * auto-detect if you are unsure of the encoding. * @return Google_Service_Fusiontables_Table */ public function importTable($name, $optParams = array()) @@ -1029,9 +1027,9 @@ public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = * @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. + * to return. + * @opt_param string maxResults Maximum number of tables to return. Default is + * 5. * @return Google_Service_Fusiontables_TableList */ public function listTable($optParams = array()) @@ -1050,8 +1048,8 @@ public function listTable($optParams = array()) * @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 + * @opt_param bool replaceViewDefinition Whether the view definition is also + * updated. The specified view definition replaces the existing one. Only a view * can be updated with a new definition. * @return Google_Service_Fusiontables_Table */ @@ -1071,18 +1069,18 @@ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $op * * @opt_param int startLine The index of the first line from which to start * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the CSV must have the same number of column - * values for each row. If true, throws an exception if the CSV does not not - * have the same number of columns. If false, rows with fewer column values will - * be padded with empty values. Default is true. + * @opt_param bool isStrict Whether the imported CSV must have the same number + * of column values for each row. If true, throws an exception if the CSV does + * not have the same number of columns. If false, rows with fewer column values + * will be padded with empty values. Default is true. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use * 'auto-detect' if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ','. - * @opt_param int endLine The index of the last line to import, exclusive. - * 'endLine - startLine' rows will be imported. Default is to import through the - * end of the file. If endLine is negative, it is an offset from the end of the - * file; the imported content will exclude the last endLine lines. + * can only consist of a single character. Default is ,. + * @opt_param int endLine The index of the line up to which data will be + * imported. Default is to import the entire file. If endLine is negative, it is + * an offset from the end of the file; the imported content will exclude the + * last endLine lines. * @return Google_Service_Fusiontables_Task */ public function replaceRows($tableId, $optParams = array()) @@ -1100,8 +1098,8 @@ public function replaceRows($tableId, $optParams = array()) * @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 + * @opt_param bool replaceViewDefinition Whether the view definition is also + * updated. The specified view definition replaces the existing one. Only a view * can be updated with a new definition. * @return Google_Service_Fusiontables_Table */ @@ -1125,10 +1123,11 @@ class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource { /** - * Deletes the task, unless already started. (task.delete) + * Deletes a specific task by its ID, unless that task has already started + * running. (task.delete) * * @param string $tableId Table from which the task is being deleted. - * @param string $taskId + * @param string $taskId The identifier of the task to delete. * @param array $optParams Optional parameters. */ public function delete($tableId, $taskId, $optParams = array()) @@ -1139,10 +1138,10 @@ public function delete($tableId, $taskId, $optParams = array()) } /** - * Retrieves a specific task by its id. (task.get) + * Retrieves a specific task by its ID. (task.get) * * @param string $tableId Table to which the task belongs. - * @param string $taskId + * @param string $taskId The identifier of the task to get. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Task */ From bbb2ee665e5ca0446192ea78eed58bb742453049 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 22 Mar 2015 05:14:38 -0700 Subject: [PATCH 0690/1274] Updated AndroidEnterprise.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidEnterprise.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php index a0fb94386..3b781f9b5 100644 --- a/src/Google/Service/AndroidEnterprise.php +++ b/src/Google/Service/AndroidEnterprise.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From 9bb73ea0c19585e0d946b50c4236aaafa9c0ecd3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 22 Mar 2015 05:14:38 -0700 Subject: [PATCH 0691/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 89d20e962..46e0e0d84 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. From cc043239aa0cbb77acdc19d9478aebdffd4ebc06 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 23 Mar 2015 05:15:42 -0700 Subject: [PATCH 0692/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..915c8a5dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,25 +2685,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2739,6 +2720,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From d014337e2ea9e06ac9a8d525d9513ff687bd2491 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 24 Mar 2015 05:16:53 -0700 Subject: [PATCH 0693/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 6e6735215..6a88dada8 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -109,6 +109,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'token_handle' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -134,6 +138,7 @@ public function getCertForOpenIdConnect($optParams = array()) * * @opt_param string access_token * @opt_param string id_token + * @opt_param string token_handle * @return Google_Service_Oauth2_Tokeninfo */ public function tokeninfo($optParams = array()) @@ -297,6 +302,7 @@ class Google_Service_Oauth2_Tokeninfo extends Google_Model "accessType" => "access_type", "expiresIn" => "expires_in", "issuedTo" => "issued_to", + "tokenHandle" => "token_handle", "userId" => "user_id", "verifiedEmail" => "verified_email", ); @@ -306,6 +312,7 @@ class Google_Service_Oauth2_Tokeninfo extends Google_Model public $expiresIn; public $issuedTo; public $scope; + public $tokenHandle; public $userId; public $verifiedEmail; @@ -358,6 +365,14 @@ public function getScope() { return $this->scope; } + public function setTokenHandle($tokenHandle) + { + $this->tokenHandle = $tokenHandle; + } + public function getTokenHandle() + { + return $this->tokenHandle; + } public function setUserId($userId) { $this->userId = $userId; From 07646aa0b7ae9274b3459517f80236473559058b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Mar 2015 05:17:53 -0700 Subject: [PATCH 0694/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 1513 +++++++++++++++++++++++++++----- 1 file changed, 1314 insertions(+), 199 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index c006ee8ab..da3f3bd79 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -73,7 +73,9 @@ class Google_Service_Compute extends Google_Service public $targetHttpProxies; public $targetInstances; public $targetPools; + public $targetVpnGateways; public $urlMaps; + public $vpnTunnels; public $zoneOperations; public $zones; @@ -2595,6 +2597,120 @@ public function __construct(Google_Client $client) ) ) ); + $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( + $this, + $this->serviceName, + 'targetVpnGateways', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( $this, $this->serviceName, @@ -2712,6 +2828,120 @@ public function __construct(Google_Client $client) ) ) ); + $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( + $this, + $this->serviceName, + 'vpnTunnels', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( $this, $this->serviceName, @@ -5355,67 +5585,175 @@ public function setBackup($project, $region, $targetPool, Google_Service_Compute } /** - * The "urlMaps" collection of methods. + * The "targetVpnGateways" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $urlMaps = $computeService->urlMaps; + * $targetVpnGateways = $computeService->targetVpnGateways; * */ -class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource { /** - * Deletes the specified UrlMap resource. (urlMaps.delete) + * Retrieves the list of target VPN gateways grouped by scope. + * (targetVpnGateways.aggregatedList) * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to delete. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Compute_TargetVpnGatewayAggregatedList */ - public function delete($project, $urlMap, $optParams = array()) + public function aggregatedList($project, $optParams = array()) { - $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); } /** - * Returns the specified UrlMap resource. (urlMaps.get) + * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to return. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * delete. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMap + * @return Google_Service_Compute_Operation */ - public function get($project, $urlMap, $optParams = array()) + public function delete($project, $region, $targetVpnGateway, $optParams = array()) { - $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Creates a UrlMap resource in the specified project using the data included in - * the request. (urlMaps.insert) + * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) * - * @param string $project Name of the project scoping this request. - * @param Google_UrlMap $postBody + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * @return Google_Service_Compute_TargetVpnGateway */ - public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + public function get($project, $region, $targetVpnGateway, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); } /** - * Retrieves the list of UrlMap resources available to the specified project. - * (urlMaps.listUrlMaps) + * Creates a TargetVpnGateway resource in the specified project and region using + * the data included in the request. (targetVpnGateways.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_TargetVpnGateway $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetVpnGateway resources available to the specified + * project and region. (targetVpnGateways.listTargetVpnGateways) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Compute_TargetVpnGatewayList + */ + public function listTargetVpnGateways($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + } +} + +/** + * The "urlMaps" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $urlMaps = $computeService->urlMaps; + * + */ +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified UrlMap resource. (urlMaps.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified UrlMap resource. (urlMaps.get) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMap + */ + public function get($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + } + + /** + * Creates a UrlMap resource in the specified project using the data included in + * the request. (urlMaps.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of UrlMap resources available to the specified project. + * (urlMaps.listUrlMaps) + * + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Filter expression for filtering listed @@ -5485,6 +5823,112 @@ public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValida } } +/** + * The "vpnTunnels" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $vpnTunnels = $computeService->vpnTunnels; + * + */ +class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of VPN tunnels grouped by scope. + * (vpnTunnels.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Compute_VpnTunnelAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + } + + /** + * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified VpnTunnel resource. (vpnTunnels.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_VpnTunnel + */ + public function get($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + } + + /** + * Creates a VpnTunnel resource in the specified project and region using the + * data included in the request. (vpnTunnels.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_VpnTunnel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of VpnTunnel resources contained in the specified project + * and region. (vpnTunnels.listVpnTunnels) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Compute_VpnTunnelList + */ + public function listVpnTunnels($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + } +} + /** * The "zoneOperations" collection of methods. * Typical usage is: @@ -8153,6 +8597,7 @@ class Google_Service_Compute_Instance extends Google_Collection protected $internal_gapi_mappings = array( ); public $canIpForward; + public $cpuPlatform; public $creationTimestamp; public $description; protected $disksType = 'Google_Service_Compute_AttachedDisk'; @@ -8185,6 +8630,14 @@ public function getCanIpForward() { return $this->canIpForward; } + public function setCpuPlatform($cpuPlatform) + { + $this->cpuPlatform = $cpuPlatform; + } + public function getCpuPlatform() + { + return $this->cpuPlatform; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -11761,69 +12214,22 @@ public function getTarget() } } -class Google_Service_Compute_TestFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualService; - public $expectedService; - public $host; - public $path; - - - public function setActualService($actualService) - { - $this->actualService = $actualService; - } - public function getActualService() - { - return $this->actualService; - } - public function setExpectedService($expectedService) - { - $this->expectedService = $expectedService; - } - public function getExpectedService() - { - return $this->expectedService; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Compute_UrlMap extends Google_Collection +class Google_Service_Compute_TargetVpnGateway extends Google_Collection { - protected $collection_key = 'tests'; + protected $collection_key = 'tunnels'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; - public $defaultService; public $description; - public $fingerprint; - protected $hostRulesType = 'Google_Service_Compute_HostRule'; - protected $hostRulesDataType = 'array'; + public $forwardingRules; public $id; public $kind; public $name; - protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; - protected $pathMatchersDataType = 'array'; + public $network; + public $region; public $selfLink; - protected $testsType = 'Google_Service_Compute_UrlMapTest'; - protected $testsDataType = 'array'; + public $status; + public $tunnels; public function setCreationTimestamp($creationTimestamp) @@ -11834,14 +12240,6 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - public function getDefaultService() - { - return $this->defaultService; - } public function setDescription($description) { $this->description = $description; @@ -11850,27 +12248,19 @@ public function getDescription() { return $this->description; } - public function setFingerprint($fingerprint) + public function setForwardingRules($forwardingRules) { - $this->fingerprint = $fingerprint; + $this->forwardingRules = $forwardingRules; } - public function getFingerprint() + public function getForwardingRules() { - return $this->fingerprint; + return $this->forwardingRules; } - public function setHostRules($hostRules) + public function setId($id) { - $this->hostRules = $hostRules; + $this->id = $id; } - public function getHostRules() - { - return $this->hostRules; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() + public function getId() { return $this->id; } @@ -11890,13 +12280,21 @@ public function getName() { return $this->name; } - public function setPathMatchers($pathMatchers) + public function setNetwork($network) { - $this->pathMatchers = $pathMatchers; + $this->network = $network; } - public function getPathMatchers() + public function getNetwork() { - return $this->pathMatchers; + return $this->network; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; } public function setSelfLink($selfLink) { @@ -11906,24 +12304,31 @@ public function getSelfLink() { return $this->selfLink; } - public function setTests($tests) + public function setStatus($status) { - $this->tests = $tests; + $this->status = $status; } - public function getTests() + public function getStatus() { - return $this->tests; + return $this->status; + } + public function setTunnels($tunnels) + { + $this->tunnels = $tunnels; + } + public function getTunnels() + { + return $this->tunnels; } } -class Google_Service_Compute_UrlMapList extends Google_Collection +class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_UrlMap'; - protected $itemsDataType = 'array'; + protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList'; + protected $itemsDataType = 'map'; public $kind; public $nextPageToken; public $selfLink; @@ -11971,172 +12376,882 @@ public function getSelfLink() } } -class Google_Service_Compute_UrlMapReference extends Google_Model +class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $urlMap; + public $id; + protected $itemsType = 'Google_Service_Compute_TargetVpnGateway'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setUrlMap($urlMap) + public function setId($id) { - $this->urlMap = $urlMap; + $this->id = $id; } - public function getUrlMap() + public function getId() { - return $this->urlMap; + return $this->id; } -} - -class Google_Service_Compute_UrlMapTest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $host; - public $path; - public $service; - - - public function setDescription($description) + public function setItems($items) { - $this->description = $description; + $this->items = $items; } - public function getDescription() + public function getItems() { - return $this->description; + return $this->items; } - public function setHost($host) + public function setKind($kind) { - $this->host = $host; + $this->kind = $kind; } - public function getHost() + public function getKind() { - return $this->host; + return $this->kind; } - public function setPath($path) + public function setNextPageToken($nextPageToken) { - $this->path = $path; + $this->nextPageToken = $nextPageToken; } - public function getPath() + public function getNextPageToken() { - return $this->path; + return $this->nextPageToken; } - public function setService($service) + public function setSelfLink($selfLink) { - $this->service = $service; + $this->selfLink = $selfLink; } - public function getService() + public function getSelfLink() { - return $this->service; + return $this->selfLink; } } -class Google_Service_Compute_UrlMapValidationResult extends Google_Collection +class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection { - protected $collection_key = 'testFailures'; + protected $collection_key = 'targetVpnGateways'; protected $internal_gapi_mappings = array( ); - public $loadErrors; - public $loadSucceeded; - protected $testFailuresType = 'Google_Service_Compute_TestFailure'; - protected $testFailuresDataType = 'array'; - public $testPassed; + protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway'; + protected $targetVpnGatewaysDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning'; + protected $warningDataType = ''; - public function setLoadErrors($loadErrors) + public function setTargetVpnGateways($targetVpnGateways) { - $this->loadErrors = $loadErrors; + $this->targetVpnGateways = $targetVpnGateways; } - public function getLoadErrors() + public function getTargetVpnGateways() { - return $this->loadErrors; + return $this->targetVpnGateways; } - public function setLoadSucceeded($loadSucceeded) + public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning) { - $this->loadSucceeded = $loadSucceeded; + $this->warning = $warning; } - public function getLoadSucceeded() + public function getWarning() { - return $this->loadSucceeded; + return $this->warning; } - public function setTestFailures($testFailures) +} + +class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) { - $this->testFailures = $testFailures; + $this->code = $code; } - public function getTestFailures() + public function getCode() { - return $this->testFailures; + return $this->code; } - public function setTestPassed($testPassed) + public function setData($data) { - $this->testPassed = $testPassed; + $this->data = $data; } - public function getTestPassed() + public function getData() { - return $this->testPassed; + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; } } -class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model +class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $resourceType = 'Google_Service_Compute_UrlMap'; - protected $resourceDataType = ''; + public $key; + public $value; - public function setResource(Google_Service_Compute_UrlMap $resource) + public function setKey($key) { - $this->resource = $resource; + $this->key = $key; } - public function getResource() + public function getKey() { - return $this->resource; + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; } } -class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model +class Google_Service_Compute_TestFailure extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; - protected $resultDataType = ''; + public $actualService; + public $expectedService; + public $host; + public $path; - public function setResult(Google_Service_Compute_UrlMapValidationResult $result) + public function setActualService($actualService) { - $this->result = $result; + $this->actualService = $actualService; } - public function getResult() + public function getActualService() { - return $this->result; + return $this->actualService; + } + public function setExpectedService($expectedService) + { + $this->expectedService = $expectedService; + } + public function getExpectedService() + { + return $this->expectedService; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; } } -class Google_Service_Compute_UsageExportLocation extends Google_Model +class Google_Service_Compute_UrlMap extends Google_Collection { + protected $collection_key = 'tests'; protected $internal_gapi_mappings = array( ); - public $bucketName; - public $reportNamePrefix; + public $creationTimestamp; + public $defaultService; + public $description; + public $fingerprint; + protected $hostRulesType = 'Google_Service_Compute_HostRule'; + protected $hostRulesDataType = 'array'; + public $id; + public $kind; + public $name; + protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; + protected $pathMatchersDataType = 'array'; + public $selfLink; + protected $testsType = 'Google_Service_Compute_UrlMapTest'; + protected $testsDataType = 'array'; - public function setBucketName($bucketName) + public function setCreationTimestamp($creationTimestamp) { - $this->bucketName = $bucketName; + $this->creationTimestamp = $creationTimestamp; } - public function getBucketName() + public function getCreationTimestamp() { - return $this->bucketName; + return $this->creationTimestamp; } - public function setReportNamePrefix($reportNamePrefix) + public function setDefaultService($defaultService) { - $this->reportNamePrefix = $reportNamePrefix; + $this->defaultService = $defaultService; } - public function getReportNamePrefix() + public function getDefaultService() { - return $this->reportNamePrefix; + return $this->defaultService; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setHostRules($hostRules) + { + $this->hostRules = $hostRules; + } + public function getHostRules() + { + return $this->hostRules; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPathMatchers($pathMatchers) + { + $this->pathMatchers = $pathMatchers; + } + public function getPathMatchers() + { + return $this->pathMatchers; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTests($tests) + { + $this->tests = $tests; + } + public function getTests() + { + return $this->tests; + } +} + +class Google_Service_Compute_UrlMapList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_UrlMap'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_UrlMapReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $urlMap; + + + public function setUrlMap($urlMap) + { + $this->urlMap = $urlMap; + } + public function getUrlMap() + { + return $this->urlMap; + } +} + +class Google_Service_Compute_UrlMapTest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $host; + public $path; + public $service; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} + +class Google_Service_Compute_UrlMapValidationResult extends Google_Collection +{ + protected $collection_key = 'testFailures'; + protected $internal_gapi_mappings = array( + ); + public $loadErrors; + public $loadSucceeded; + protected $testFailuresType = 'Google_Service_Compute_TestFailure'; + protected $testFailuresDataType = 'array'; + public $testPassed; + + + public function setLoadErrors($loadErrors) + { + $this->loadErrors = $loadErrors; + } + public function getLoadErrors() + { + return $this->loadErrors; + } + public function setLoadSucceeded($loadSucceeded) + { + $this->loadSucceeded = $loadSucceeded; + } + public function getLoadSucceeded() + { + return $this->loadSucceeded; + } + public function setTestFailures($testFailures) + { + $this->testFailures = $testFailures; + } + public function getTestFailures() + { + return $this->testFailures; + } + public function setTestPassed($testPassed) + { + $this->testPassed = $testPassed; + } + public function getTestPassed() + { + return $this->testPassed; + } +} + +class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Compute_UrlMap'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Compute_UrlMap $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; + protected $resultDataType = ''; + + + public function setResult(Google_Service_Compute_UrlMapValidationResult $result) + { + $this->result = $result; + } + public function getResult() + { + return $this->result; + } +} + +class Google_Service_Compute_UsageExportLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bucketName; + public $reportNamePrefix; + + + public function setBucketName($bucketName) + { + $this->bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } + public function setReportNamePrefix($reportNamePrefix) + { + $this->reportNamePrefix = $reportNamePrefix; + } + public function getReportNamePrefix() + { + return $this->reportNamePrefix; + } +} + +class Google_Service_Compute_VpnTunnel extends Google_Collection +{ + protected $collection_key = 'ikeNetworks'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $detailedStatus; + public $id; + public $ikeNetworks; + public $ikeVersion; + public $kind; + public $name; + public $peerIp; + public $region; + public $selfLink; + public $sharedSecret; + public $sharedSecretHash; + public $status; + public $targetVpnGateway; + + + 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 setDetailedStatus($detailedStatus) + { + $this->detailedStatus = $detailedStatus; + } + public function getDetailedStatus() + { + return $this->detailedStatus; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIkeNetworks($ikeNetworks) + { + $this->ikeNetworks = $ikeNetworks; + } + public function getIkeNetworks() + { + return $this->ikeNetworks; + } + public function setIkeVersion($ikeVersion) + { + $this->ikeVersion = $ikeVersion; + } + public function getIkeVersion() + { + return $this->ikeVersion; + } + 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 setPeerIp($peerIp) + { + $this->peerIp = $peerIp; + } + public function getPeerIp() + { + return $this->peerIp; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSharedSecret($sharedSecret) + { + $this->sharedSecret = $sharedSecret; + } + public function getSharedSecret() + { + return $this->sharedSecret; + } + public function setSharedSecretHash($sharedSecretHash) + { + $this->sharedSecretHash = $sharedSecretHash; + } + public function getSharedSecretHash() + { + return $this->sharedSecretHash; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTargetVpnGateway($targetVpnGateway) + { + $this->targetVpnGateway = $targetVpnGateway; + } + public function getTargetVpnGateway() + { + return $this->targetVpnGateway; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_VpnTunnelList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection +{ + protected $collection_key = 'vpnTunnels'; + protected $internal_gapi_mappings = array( + ); + protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel'; + protected $vpnTunnelsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning'; + protected $warningDataType = ''; + + + public function setVpnTunnels($vpnTunnels) + { + $this->vpnTunnels = $vpnTunnels; + } + public function getVpnTunnels() + { + return $this->vpnTunnels; + } + public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; } } From 67a61f0bfef708466bc5c17333232e1a727fb6fb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Mar 2015 05:17:53 -0700 Subject: [PATCH 0695/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 96 +++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 7fca62e22..34789ba10 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -55,6 +55,7 @@ class Google_Service_Genomics extends Google_Service public $references; public $references_bases; public $referencesets; + public $streamingVariantStore; public $variants; public $variantsets; @@ -590,6 +591,20 @@ public function __construct(Google_Client $client) ) ) ); + $this->streamingVariantStore = new Google_Service_Genomics_StreamingVariantStore_Resource( + $this, + $this->serviceName, + 'streamingVariantStore', + array( + 'methods' => array( + 'streamvariants' => array( + 'path' => 'streamingVariantStore/streamvariants', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); $this->variants = new Google_Service_Genomics_Variants_Resource( $this, $this->serviceName, @@ -1659,6 +1674,33 @@ public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postB } } +/** + * The "streamingVariantStore" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $streamingVariantStore = $genomicsService->streamingVariantStore; + * + */ +class Google_Service_Genomics_StreamingVariantStore_Resource extends Google_Service_Resource +{ + + /** + * Returns a stream of all the variants matching the search request, ordered by + * reference name, position, and ID. (streamingVariantStore.streamvariants) + * + * @param Google_StreamVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function streamvariants(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('streamvariants', array($params), "Google_Service_Genomics_Variant"); + } +} + /** * The "variants" collection of methods. * Typical usage is: @@ -4998,6 +5040,60 @@ public function getVariants() } } +class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection +{ + protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); + public $callSetIds; + public $end; + public $referenceName; + public $start; + public $variantSetIds; + + + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + public function getVariantSetIds() + { + return $this->variantSetIds; + } +} + class Google_Service_Genomics_Transcript extends Google_Collection { protected $collection_key = 'exons'; From f3aad4382a8bf23b0fe311cc425831dcfb214033 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Mar 2015 05:17:53 -0700 Subject: [PATCH 0696/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 5aa303961..61d466e27 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -392,7 +392,7 @@ public function get($reportId, $optParams = array()) } /** - * Downloads a report file. (reports.getFile) + * Downloads a report file encoded in UTF-8. (reports.getFile) * * @param string $reportId ID of the report. * @param int $reportFragment The index of the report fragment to download. From 37bce4164b8f1367f3bb0b7e85896b17a1e84a79 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Mar 2015 05:17:54 -0700 Subject: [PATCH 0697/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 159 ++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index d4f1bcbc7..f2da854b4 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -931,6 +931,68 @@ public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery +class Google_Service_Bigquery_CsvOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allowJaggedRows; + public $allowQuotedNewlines; + public $encoding; + public $fieldDelimiter; + public $quote; + public $skipLeadingRows; + + + public function setAllowJaggedRows($allowJaggedRows) + { + $this->allowJaggedRows = $allowJaggedRows; + } + public function getAllowJaggedRows() + { + return $this->allowJaggedRows; + } + public function setAllowQuotedNewlines($allowQuotedNewlines) + { + $this->allowQuotedNewlines = $allowQuotedNewlines; + } + public function getAllowQuotedNewlines() + { + return $this->allowQuotedNewlines; + } + 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 setQuote($quote) + { + $this->quote = $quote; + } + public function getQuote() + { + return $this->quote; + } + public function setSkipLeadingRows($skipLeadingRows) + { + $this->skipLeadingRows = $skipLeadingRows; + } + public function getSkipLeadingRows() + { + return $this->skipLeadingRows; + } +} + class Google_Service_Bigquery_Dataset extends Google_Collection { protected $collection_key = 'access'; @@ -941,6 +1003,7 @@ class Google_Service_Bigquery_Dataset extends Google_Collection public $creationTime; protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; protected $datasetReferenceDataType = ''; + public $defaultTableExpirationMs; public $description; public $etag; public $friendlyName; @@ -974,6 +1037,14 @@ public function getDatasetReference() { return $this->datasetReference; } + public function setDefaultTableExpirationMs($defaultTableExpirationMs) + { + $this->defaultTableExpirationMs = $defaultTableExpirationMs; + } + public function getDefaultTableExpirationMs() + { + return $this->defaultTableExpirationMs; + } public function setDescription($description) { $this->description = $description; @@ -1256,6 +1327,80 @@ public function getReason() } } +class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $compression; + protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions'; + protected $csvOptionsDataType = ''; + public $ignoreUnknownValues; + public $maxBadRecords; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $sourceFormat; + public $sourceUris; + + + public function setCompression($compression) + { + $this->compression = $compression; + } + public function getCompression() + { + return $this->compression; + } + public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions) + { + $this->csvOptions = $csvOptions; + } + public function getCsvOptions() + { + return $this->csvOptions; + } + public function setIgnoreUnknownValues($ignoreUnknownValues) + { + $this->ignoreUnknownValues = $ignoreUnknownValues; + } + public function getIgnoreUnknownValues() + { + return $this->ignoreUnknownValues; + } + public function setMaxBadRecords($maxBadRecords) + { + $this->maxBadRecords = $maxBadRecords; + } + public function getMaxBadRecords() + { + return $this->maxBadRecords; + } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) + { + $this->schema = $schema; + } + public function getSchema() + { + return $this->schema; + } + 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; + } +} + class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { protected $collection_key = 'rows'; @@ -1816,6 +1961,8 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model public $preserveNulls; public $priority; public $query; + protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; + protected $tableDefinitionsDataType = 'map'; public $useQueryCache; public $writeDisposition; @@ -1884,6 +2031,14 @@ public function getQuery() { return $this->query; } + public function setTableDefinitions($tableDefinitions) + { + $this->tableDefinitions = $tableDefinitions; + } + public function getTableDefinitions() + { + return $this->tableDefinitions; + } public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -1902,6 +2057,10 @@ public function getWriteDisposition() } } +class Google_Service_Bigquery_JobConfigurationQueryTableDefinitions extends Google_Model +{ +} + class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { protected $collection_key = 'sourceTables'; From 98bdb5beac6b8c6c7ba54924078186a51ddde34f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 25 Mar 2015 05:17:54 -0700 Subject: [PATCH 0698/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 915c8a5dc..3585349e9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2685,6 +2685,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2720,25 +2739,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From f922b44bbcce2fcb8f26ee0094a778ae1077314f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Mar 2015 05:18:59 -0700 Subject: [PATCH 0699/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 5be0c7409..5cc6b7896 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -457,6 +457,7 @@ class Google_Service_Container_Cluster extends Google_Model public $containerIpv4Cidr; public $creationTimestamp; public $description; + public $enableCloudLogging; public $endpoint; protected $masterAuthType = 'Google_Service_Container_MasterAuth'; protected $masterAuthDataType = ''; @@ -505,6 +506,14 @@ public function getDescription() { return $this->description; } + public function setEnableCloudLogging($enableCloudLogging) + { + $this->enableCloudLogging = $enableCloudLogging; + } + public function getEnableCloudLogging() + { + return $this->enableCloudLogging; + } public function setEndpoint($endpoint) { $this->endpoint = $endpoint; From fc3f8c978e87b2fa96e3e8b30e21a03461f8b8c4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Mar 2015 05:19:00 -0700 Subject: [PATCH 0700/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 189 ++++++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 3585349e9..2c794bb46 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -1865,8 +1865,12 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $masterInstanceName; public $maxDiskSize; public $name; + protected $onPremisesConfigurationType = 'Google_Service_SQLAdmin_OnPremisesConfiguration'; + protected $onPremisesConfigurationDataType = ''; public $project; public $region; + protected $replicaConfigurationType = 'Google_Service_SQLAdmin_ReplicaConfiguration'; + protected $replicaConfigurationDataType = ''; public $replicaNames; public $selfLink; protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; @@ -1957,6 +1961,14 @@ public function getName() { return $this->name; } + public function setOnPremisesConfiguration(Google_Service_SQLAdmin_OnPremisesConfiguration $onPremisesConfiguration) + { + $this->onPremisesConfiguration = $onPremisesConfiguration; + } + public function getOnPremisesConfiguration() + { + return $this->onPremisesConfiguration; + } public function setProject($project) { $this->project = $project; @@ -1973,6 +1985,14 @@ public function getRegion() { return $this->region; } + public function setReplicaConfiguration(Google_Service_SQLAdmin_ReplicaConfiguration $replicaConfiguration) + { + $this->replicaConfiguration = $replicaConfiguration; + } + public function getReplicaConfiguration() + { + return $this->replicaConfiguration; + } public function setReplicaNames($replicaNames) { $this->replicaNames = $replicaNames; @@ -2539,6 +2559,139 @@ public function getZone() } } +class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $caCertificate; + public $clientCertificate; + public $clientKey; + public $connectRetryInterval; + public $dumpFilePath; + public $kind; + public $masterHeartbeatPeriod; + public $password; + public $sslCipher; + public $username; + public $verifyServerCertificate; + + + public function setCaCertificate($caCertificate) + { + $this->caCertificate = $caCertificate; + } + public function getCaCertificate() + { + return $this->caCertificate; + } + public function setClientCertificate($clientCertificate) + { + $this->clientCertificate = $clientCertificate; + } + public function getClientCertificate() + { + return $this->clientCertificate; + } + public function setClientKey($clientKey) + { + $this->clientKey = $clientKey; + } + public function getClientKey() + { + return $this->clientKey; + } + public function setConnectRetryInterval($connectRetryInterval) + { + $this->connectRetryInterval = $connectRetryInterval; + } + public function getConnectRetryInterval() + { + return $this->connectRetryInterval; + } + public function setDumpFilePath($dumpFilePath) + { + $this->dumpFilePath = $dumpFilePath; + } + public function getDumpFilePath() + { + return $this->dumpFilePath; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMasterHeartbeatPeriod($masterHeartbeatPeriod) + { + $this->masterHeartbeatPeriod = $masterHeartbeatPeriod; + } + public function getMasterHeartbeatPeriod() + { + return $this->masterHeartbeatPeriod; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setSslCipher($sslCipher) + { + $this->sslCipher = $sslCipher; + } + public function getSslCipher() + { + return $this->sslCipher; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } + public function setVerifyServerCertificate($verifyServerCertificate) + { + $this->verifyServerCertificate = $verifyServerCertificate; + } + public function getVerifyServerCertificate() + { + return $this->verifyServerCertificate; + } +} + +class Google_Service_SQLAdmin_OnPremisesConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hostPort; + public $kind; + + + public function setHostPort($hostPort) + { + $this->hostPort = $hostPort; + } + public function getHostPort() + { + return $this->hostPort; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_SQLAdmin_Operation extends Google_Model { protected $internal_gapi_mappings = array( @@ -2776,6 +2929,33 @@ public function getNextPageToken() } } +class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration'; + protected $mysqlReplicaConfigurationDataType = ''; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMysqlReplicaConfiguration(Google_Service_SQLAdmin_MySqlReplicaConfiguration $mysqlReplicaConfiguration) + { + $this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration; + } + public function getMysqlReplicaConfiguration() + { + return $this->mysqlReplicaConfiguration; + } +} + class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model { protected $internal_gapi_mappings = array( @@ -2811,6 +2991,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection public $authorizedGaeApplications; protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; protected $backupConfigurationDataType = ''; + public $crashSafeReplicationEnabled; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; public $databaseReplicationEnabled; @@ -2849,6 +3030,14 @@ public function getBackupConfiguration() { return $this->backupConfiguration; } + public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled) + { + $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled; + } + public function getCrashSafeReplicationEnabled() + { + return $this->crashSafeReplicationEnabled; + } public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; From 5d379890f63c1427bb5222f596886b9e0225511a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 26 Mar 2015 05:19:00 -0700 Subject: [PATCH 0701/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 170 ++++++++++++++++++++++++++++----- 1 file changed, 148 insertions(+), 22 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 96f9c8bfb..786eef4a0 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -587,10 +587,18 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -599,6 +607,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'encryptionKey' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'copy' => array( 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', @@ -624,7 +636,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifSourceGenerationNotMatch' => array( + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -632,10 +648,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifSourceMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -656,11 +680,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifSourceGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'encryptionKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -718,14 +742,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -734,7 +770,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'encryptionKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -752,6 +788,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -764,6 +804,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -776,7 +824,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'encryptionKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -833,6 +881,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -841,10 +893,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -853,7 +913,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'encryptionKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -876,6 +936,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'encryptionKeyHash' => array( + 'location' => 'query', + 'type' => 'string', + ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -884,10 +948,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), + 'encryptionAlgorithm' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -896,7 +968,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'encryptionKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -1519,12 +1591,21 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * @param Google_ComposeRequest $postBody * @param array $optParams Optional parameters. * + * @opt_param string encryptionKeyHash Provides the digest of the key for error- + * checking transmission. A digest is in the format of '='. Algorithm, key, and + * key hash must be supplied together. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. + * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that + * was used to encrypt the object, if any. Only 'AES256' is supported currently. + * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string destinationPredefinedAcl Apply a predefined set of access * controls to the destination object. + * @opt_param string encryptionKey Provides a base64-encoded 256-bit key that + * was used to encrypt the object, if any. Algorithm, key, and key hash must be + * supplied together. * @return Google_Service_Storage_StorageObject */ public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) @@ -1549,14 +1630,23 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional - * on whether the source object's generation does not match the given value. + * @opt_param string encryptionKeyHash Provides the digest of the key for error- + * checking transmission. A digest is in the format of '='. Algorithm, key, and + * key hash must be supplied together. + * @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 ifMetagenerationNotMatch Makes the operation conditional on + * whether the destination object's current metageneration does not match the + * given value. * @opt_param string ifSourceMetagenerationNotMatch Makes the operation * conditional on whether the source object's current metageneration does not * match the given value. + * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that + * was used to encrypt the object, if any. Only 'AES256' is supported currently. + * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the destination object's current metageneration matches the given * value. @@ -1569,11 +1659,11 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional * on whether the source object's current metageneration matches the given * value. - * @opt_param string ifGenerationMatch Makes the operation conditional on - * whether the destination object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the destination object's current metageneration does not match the - * given value. + * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional + * on whether the source object's generation does not match the given value. + * @opt_param string encryptionKey Provides a base64-encoded 256-bit key that + * was used to encrypt the object, if any. Algorithm, key, and key hash must be + * supplied together. * @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. @@ -1620,16 +1710,24 @@ public function delete($bucket, $object, $optParams = array()) * @param string $object Name of the object. * @param array $optParams Optional parameters. * + * @opt_param string encryptionKeyHash Provides the digest of the key for error- + * checking transmission. A digest is in the format of '='. Algorithm, key, and + * key hash must be supplied together. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's generation does not match 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 generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). + * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that + * would be used to decrypt the object. Only 'AES256' is supported currently. + * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. + * @opt_param string encryptionKey Provides a base64-encoded 256-bit key to + * decrypt the object. Algorithm, key, and key hash must be supplied together. * @opt_param string projection Set of properties to return. Defaults to noAcl. * @return Google_Service_Storage_StorageObject */ @@ -1648,6 +1746,9 @@ public function get($bucket, $object, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * + * @opt_param string encryptionKeyHash Provides the digest of the key for error- + * checking transmission. A digest is in the format of '='. Algorithm, key, and + * key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string projection Set of properties to return. Defaults to noAcl, @@ -1655,6 +1756,11 @@ public function get($bucket, $object, $optParams = array()) * full. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. + * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that + * would be used to encrypt the object. Only 'AES256' is supported currently. + * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string contentEncoding If set, sets the contentEncoding property @@ -1664,8 +1770,8 @@ public function get($bucket, $object, $optParams = array()) * content being uploaded. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. + * @opt_param string encryptionKey Provides a base64-encoded 256-bit key to + * encrypt the object. Algorithm, key, and key hash must be supplied together. * @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. @@ -1717,18 +1823,28 @@ public function listObjects($bucket, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * + * @opt_param string encryptionKeyHash For downloading encrypted objects, + * provides the digest of the key for error-checking transmission. A digest is + * in the format of '='. Algorithm, key, and key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). + * @opt_param string encryptionAlgorithm For downloading encrypted objects, + * specifies the encryption algorithm that would be used to decrypt the object. + * Only 'AES256' is supported currently. Algorithm, key, and key hash must be + * supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. + * @opt_param string encryptionKey For downloading encrypted objects, provides a + * base64-encoded 256-bit key to decrypt the object. Algorithm, key, and key + * hash must be supplied together. * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ @@ -1747,18 +1863,28 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * + * @opt_param string encryptionKeyHash For downloading encrypted objects, + * provides the digest of the key for error-checking transmission. A digest is + * in the format of '='. Algorithm, key, and key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the object's current metageneration does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). + * @opt_param string encryptionAlgorithm For downloading encrypted objects, + * specifies the encryption algorithm that would be used to decrypt the object. + * Only 'AES256' is supported currently. Algorithm, key, and key hash must be + * supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. + * @opt_param string encryptionKey For downloading encrypted objects, provides a + * base64-encoded 256-bit key to decrypt the object. Algorithm, key, and key + * hash must be supplied together. * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ From c4cfa24e80dd2bbc930acc71d396f7544ced9048 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Mar 2015 05:20:41 -0700 Subject: [PATCH 0702/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index da3f3bd79..866e1f574 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -10808,6 +10808,7 @@ class Google_Service_Compute_Route extends Google_Collection public $nextHopInstance; public $nextHopIp; public $nextHopNetwork; + public $nextHopVpnTunnel; public $priority; public $selfLink; public $tags; @@ -10903,6 +10904,14 @@ public function getNextHopNetwork() { return $this->nextHopNetwork; } + public function setNextHopVpnTunnel($nextHopVpnTunnel) + { + $this->nextHopVpnTunnel = $nextHopVpnTunnel; + } + public function getNextHopVpnTunnel() + { + return $this->nextHopVpnTunnel; + } public function setPriority($priority) { $this->priority = $priority; From f1214fdb3edd1fdffe1ad70294d77b64f4aff9ff Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Mar 2015 05:20:41 -0700 Subject: [PATCH 0703/1274] Added service Cloudsearch.php --- src/Google/Service/Cloudsearch.php | 817 +++++++++++++++++++++++++++++ 1 file changed, 817 insertions(+) create mode 100644 src/Google/Service/Cloudsearch.php diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php new file mode 100644 index 000000000..5552207a1 --- /dev/null +++ b/src/Google/Service/Cloudsearch.php @@ -0,0 +1,817 @@ + + * The Google Cloud Search API defines an application interface to index + * documents that contain structured data and to search those indexes. It + * supports full text search.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudsearch extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** FOR TESTING ONLY. */ + const CLOUDSEARCH = + "https://www.googleapis.com/auth/cloudsearch"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $projects_indexes; + public $projects_indexes_documents; + + + /** + * Constructs the internal representation of the Cloudsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudsearch'; + + $this->projects_indexes = new Google_Service_Cloudsearch_ProjectsIndexes_Resource( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/projects/{projectId}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexNamePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fieldExpressions' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offset' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'matchedCountAccuracy' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scorer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scorerSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'returnFields' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->projects_indexes_documents = new Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource( + $this, + $this->serviceName, + 'documents', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'docId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'docId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudsearchService = new Google_Service_Cloudsearch(...); + * $projects = $cloudsearchService->projects; + * + */ +class Google_Service_Cloudsearch_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "indexes" collection of methods. + * Typical usage is: + * + * $cloudsearchService = new Google_Service_Cloudsearch(...); + * $indexes = $cloudsearchService->indexes; + * + */ +class Google_Service_Cloudsearch_ProjectsIndexes_Resource extends Google_Service_Resource +{ + + /** + * Lists search indexes belonging to the specified project. + * (indexes.listProjectsIndexes) + * + * @param string $projectId The project from which to retrieve indexes. It + * cannot be the empty string. + * @param array $optParams Optional parameters. + * + * @opt_param string indexNamePrefix The prefix of the index name. It is used to + * list all indexes with names that have this prefix. + * @opt_param int pageSize The maximum number of indexes to return per page. If + * not specified, 100 indexes are returned per page. + * @opt_param string pageToken A `nextPageToken` returned from previous list + * indexes call as the starting point for this call. If not specified, list + * indexes from the beginning. + * @opt_param string view Specifies which parts of the IndexInfo resource is + * returned in the response. If not specified, `ID_ONLY` is used. + * @return Google_Service_Cloudsearch_ListIndexesResponse + */ + public function listProjectsIndexes($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudsearch_ListIndexesResponse"); + } + + /** + * Lists the documents in the named index that match the query. (indexes.search) + * + * @param string $projectId The project associated with the index for searching + * document. It cannot be the empty string. + * @param string $indexId The index to search. It cannot be the empty string. + * @param array $optParams Optional parameters. + * + * @opt_param string query The query string in search query syntax. If the query + * is missing or empty, all documents are returned. + * @opt_param string fieldExpressions Customized expressions used in `orderBy` + * or `returnFields`. The expression can contain fields in `Document`, the + * built-in fields ( `_rank`, the document rank, and `_score` if scoring is + * enabled) and fields defined in `fieldExpressions`. Each field expression is + * represented in a json object with the following fields: * `name`: the name of + * the field expression in string. * `expression`: the expression to be + * computed. It can be a combination of supported functions encoded in string. + * Expressions involving number fields can use the arithmetical operators (`+`, + * `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`, + * `count`, `log`, `abs`). Expressions involving geopoint fields can use the + * `geopoint` and `distance` functions. Expressions for text and html fields can + * use the `snippet` function. For example: ``` fieldExpressions={name: + * "TotalPrice", expression: "(Price+Tax)"} ``` ``` fieldExpressions={name: + * "snippet", expression: "snippet('good times', content)"} ``` The field + * expression names can be used in `orderBy` and `returnFields` after they are + * defined in `fieldExpressions`. + * @opt_param int pageSize The maximum number of search results to return per + * page. Searches perform best when the `pageSize` is kept as small as possible. + * If not specified, 10 results are returned per page. + * @opt_param string pageToken A `nextPageToken` returned from previous Search + * call as the starting point for this call. Pagination tokens provide better + * performance and consistency than offsets, and they cannot be used in + * combination with offsets. + * @opt_param int offset Offset is used to move to an arbitrary result, + * independent of the previous results. Offsets are inefficient when compared to + * `pageToken`. `pageToken` and `offset` cannot be both set. The default value + * of `offset` is 0. + * @opt_param int matchedCountAccuracy Minimum accuracy requirement for + * `matchedCount` in search response. If specified, `matchedCount` will be + * accurate up to at least that number. For example, when set to 100, any + * `matchedCount <= 100` is accurate. This option may add considerable + * latency/expense. By default (when it is not specified or set to 0), the + * accuracy is the same as `pageSize`. + * @opt_param string orderBy Comma-separated list of fields for sorting on the + * search result, including fields from `Document`, the built-in fields (`_rank` + * and `_score`), and fields defined in `fieldExpressions`. For example: + * `orderBy="foo,bar"`. The default sorting order is ascending. To specify + * descending order for a field, a suffix `" desc"` should be appended to the + * field name. For example: `orderBy="foo desc,bar"`. The default value for text + * sort is the empty string, and the default value for numeric sort is 0. If not + * specified, the search results are automatically sorted by descending `_rank`. + * Sorting by ascending `_rank` is not allowed. + * @opt_param string scorer The scoring function to invoke on a search result + * for this query. If `scorer` is not set, scoring is disabled and `_score` is 0 + * for all documents in the search result. To enable document relevancy score + * based on term frequency, set `"scorer=generic"`. + * @opt_param int scorerSize Maximum number of top retrieved results to score. + * It is valid only when `scorer` is set. If not specified, 100 retrieved + * results are scored. + * @opt_param string returnFields List of fields to return in `SearchResult` + * objects. It can be fields from `Document`, the built-in fields `_rank` and + * `_score`, and fields defined in `fieldExpressions`. Use `"*"` to return all + * fields from `Document`. + * @return Google_Service_Cloudsearch_SearchResponse + */ + public function search($projectId, $indexId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Cloudsearch_SearchResponse"); + } +} + +/** + * The "documents" collection of methods. + * Typical usage is: + * + * $cloudsearchService = new Google_Service_Cloudsearch(...); + * $documents = $cloudsearchService->documents; + * + */ +class Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource extends Google_Service_Resource +{ + + /** + * Inserts a document for indexing or updates an indexed document. The returned + * document contains only the ID of the new document. When `docId` is absent + * from the document, it is provided by the server. (documents.create) + * + * @param string $projectId The project associated with the index for adding + * document. It cannot be the empty string. + * @param string $indexId The index to add document to. It cannot be the empty + * string. + * @param Google_Document $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudsearch_Document + */ + public function create($projectId, $indexId, Google_Service_Cloudsearch_Document $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Cloudsearch_Document"); + } + + /** + * Deletes a document from an index. (documents.delete) + * + * @param string $projectId The project associated with the index for deleting + * document. It cannot be the empty string. + * @param string $indexId The index from which to delete the document. It cannot + * be the empty string. + * @param string $docId The document to be deleted. It cannot be the empty + * string. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudsearch_Empty + */ + public function delete($projectId, $indexId, $docId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Cloudsearch_Empty"); + } + + /** + * Retrieves a document from an index. (documents.get) + * + * @param string $projectId The project associated with the index for retrieving + * the document. It cannot be the empty string. + * @param string $indexId The index from which to retrieve the document. It + * cannot be the empty string. + * @param string $docId The identifier of the document to retrieve. It cannot be + * the empty string. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudsearch_Document + */ + public function get($projectId, $indexId, $docId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudsearch_Document"); + } + + /** + * Lists documents in the specified search index. Intended for batch processing. + * (documents.listProjectsIndexesDocuments) + * + * @param string $projectId The project associated with the index for listing + * documents. It cannot be the empty string. + * @param string $indexId The index from which to list the documents. It cannot + * be the empty string. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The maximum number of documents to return per page. + * If not specified, 100 documents are returned per page. + * @opt_param string pageToken A `nextPageToken` returned from previous list + * documents call as the starting point for this call. If not specified, list + * documents from the beginning. + * @opt_param string view Specifies which part of the document resource is + * returned in the response. If not specified, `ID_ONLY` is used. + * @return Google_Service_Cloudsearch_ListDocumentsResponse + */ + public function listProjectsIndexesDocuments($projectId, $indexId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudsearch_ListDocumentsResponse"); + } +} + + + + +class Google_Service_Cloudsearch_Document extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $docId; + protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList'; + protected $fieldsDataType = 'map'; + public $rank; + + + public function setDocId($docId) + { + $this->docId = $docId; + } + public function getDocId() + { + return $this->docId; + } + public function setFields($fields) + { + $this->fields = $fields; + } + public function getFields() + { + return $this->fields; + } + public function setRank($rank) + { + $this->rank = $rank; + } + public function getRank() + { + return $this->rank; + } +} + +class Google_Service_Cloudsearch_DocumentFields extends Google_Model +{ +} + +class Google_Service_Cloudsearch_Empty extends Google_Model +{ +} + +class Google_Service_Cloudsearch_FieldNames extends Google_Collection +{ + protected $collection_key = 'textFields'; + protected $internal_gapi_mappings = array( + ); + public $atomFields; + public $dateFields; + public $geoFields; + public $htmlFields; + public $numberFields; + public $textFields; + + + public function setAtomFields($atomFields) + { + $this->atomFields = $atomFields; + } + public function getAtomFields() + { + return $this->atomFields; + } + public function setDateFields($dateFields) + { + $this->dateFields = $dateFields; + } + public function getDateFields() + { + return $this->dateFields; + } + public function setGeoFields($geoFields) + { + $this->geoFields = $geoFields; + } + public function getGeoFields() + { + return $this->geoFields; + } + public function setHtmlFields($htmlFields) + { + $this->htmlFields = $htmlFields; + } + public function getHtmlFields() + { + return $this->htmlFields; + } + public function setNumberFields($numberFields) + { + $this->numberFields = $numberFields; + } + public function getNumberFields() + { + return $this->numberFields; + } + public function setTextFields($textFields) + { + $this->textFields = $textFields; + } + public function getTextFields() + { + return $this->textFields; + } +} + +class Google_Service_Cloudsearch_FieldValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $geoValue; + public $lang; + public $numberValue; + public $stringFormat; + public $stringValue; + public $timestampValue; + + + public function setGeoValue($geoValue) + { + $this->geoValue = $geoValue; + } + public function getGeoValue() + { + return $this->geoValue; + } + public function setLang($lang) + { + $this->lang = $lang; + } + public function getLang() + { + return $this->lang; + } + public function setNumberValue($numberValue) + { + $this->numberValue = $numberValue; + } + public function getNumberValue() + { + return $this->numberValue; + } + public function setStringFormat($stringFormat) + { + $this->stringFormat = $stringFormat; + } + public function getStringFormat() + { + return $this->stringFormat; + } + public function setStringValue($stringValue) + { + $this->stringValue = $stringValue; + } + public function getStringValue() + { + return $this->stringValue; + } + public function setTimestampValue($timestampValue) + { + $this->timestampValue = $timestampValue; + } + public function getTimestampValue() + { + return $this->timestampValue; + } +} + +class Google_Service_Cloudsearch_FieldValueList extends Google_Collection +{ + protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); + protected $valuesType = 'Google_Service_Cloudsearch_FieldValue'; + protected $valuesDataType = 'array'; + + + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} + +class Google_Service_Cloudsearch_IndexInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $indexId; + protected $indexedFieldType = 'Google_Service_Cloudsearch_FieldNames'; + protected $indexedFieldDataType = ''; + public $projectId; + + + public function setIndexId($indexId) + { + $this->indexId = $indexId; + } + public function getIndexId() + { + return $this->indexId; + } + public function setIndexedField(Google_Service_Cloudsearch_FieldNames $indexedField) + { + $this->indexedField = $indexedField; + } + public function getIndexedField() + { + return $this->indexedField; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_Cloudsearch_ListDocumentsResponse extends Google_Collection +{ + protected $collection_key = 'documents'; + protected $internal_gapi_mappings = array( + ); + protected $documentsType = 'Google_Service_Cloudsearch_Document'; + protected $documentsDataType = 'array'; + public $nextPageToken; + + + public function setDocuments($documents) + { + $this->documents = $documents; + } + public function getDocuments() + { + return $this->documents; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudsearch_ListIndexesResponse extends Google_Collection +{ + protected $collection_key = 'indexes'; + protected $internal_gapi_mappings = array( + ); + protected $indexesType = 'Google_Service_Cloudsearch_IndexInfo'; + protected $indexesDataType = 'array'; + public $nextPageToken; + + + public function setIndexes($indexes) + { + $this->indexes = $indexes; + } + public function getIndexes() + { + return $this->indexes; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudsearch_SearchResponse extends Google_Collection +{ + protected $collection_key = 'results'; + protected $internal_gapi_mappings = array( + ); + public $matchedCount; + protected $resultsType = 'Google_Service_Cloudsearch_SearchResult'; + protected $resultsDataType = 'array'; + + + public function setMatchedCount($matchedCount) + { + $this->matchedCount = $matchedCount; + } + public function getMatchedCount() + { + return $this->matchedCount; + } + public function setResults($results) + { + $this->results = $results; + } + public function getResults() + { + return $this->results; + } +} + +class Google_Service_Cloudsearch_SearchResult extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $docId; + protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList'; + protected $fieldsDataType = 'map'; + public $nextPageToken; + + + public function setDocId($docId) + { + $this->docId = $docId; + } + public function getDocId() + { + return $this->docId; + } + public function setFields($fields) + { + $this->fields = $fields; + } + public function getFields() + { + return $this->fields; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudsearch_SearchResultFields extends Google_Model +{ +} From 177f9ddacde46e717c1de854f2ae5ed86fc1bc4d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Mar 2015 05:20:41 -0700 Subject: [PATCH 0704/1274] Updated Deploymentmanager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Deploymentmanager.php | 112 +++++++++++------------ 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/src/Google/Service/Deploymentmanager.php b/src/Google/Service/Deploymentmanager.php index 554fe0e13..71e1b699c 100644 --- a/src/Google/Service/Deploymentmanager.php +++ b/src/Google/Service/Deploymentmanager.php @@ -321,11 +321,11 @@ class Google_Service_Deploymentmanager_Deployments_Resource extends Google_Servi { /** - * Deletes a deployment and all of the resources in the deployment. + * ! Deletes a deployment and all of the resources in the deployment. * (deployments.delete) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_Operation */ @@ -337,10 +337,10 @@ public function delete($project, $deployment, $optParams = array()) } /** - * Gets information about a specific deployment. (deployments.get) + * ! Gets information about a specific deployment. (deployments.get) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_Deployment */ @@ -352,10 +352,10 @@ public function get($project, $deployment, $optParams = array()) } /** - * Creates a deployment and all of the resources described by the deployment + * ! Creates a deployment and all of the resources described by the ! deployment * manifest. (deployments.insert) * - * @param string $project The project ID for this request. + * @param string $project ! The project ID for this request. * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_Operation @@ -368,16 +368,16 @@ public function insert($project, Google_Service_Deploymentmanager_Deployment $po } /** - * Lists all deployments for a given project. (deployments.listDeployments) + * ! Lists all deployments for a given project. (deployments.listDeployments) * - * @param string $project The project ID for this request. + * @param string $project ! The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken ! Specifies a nextPageToken returned by a + * previous list request. This ! token can be used to request the next page of + * results from a previous ! list request. + * @opt_param int maxResults ! Maximum count of results to be returned. ! + * Acceptable values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Deploymentmanager_DeploymentsListResponse */ public function listDeployments($project, $optParams = array()) @@ -400,11 +400,11 @@ class Google_Service_Deploymentmanager_Manifests_Resource extends Google_Service { /** - * Gets information about a specific manifest. (manifests.get) + * ! Gets information about a specific manifest. (manifests.get) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $manifest The name of the manifest for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. + * @param string $manifest ! The name of the manifest for this request. * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_Manifest */ @@ -416,17 +416,17 @@ public function get($project, $deployment, $manifest, $optParams = array()) } /** - * Lists all manifests for a given deployment. (manifests.listManifests) + * ! Lists all manifests for a given deployment. (manifests.listManifests) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken ! Specifies a nextPageToken returned by a + * previous list request. This ! token can be used to request the next page of + * results from a previous ! list request. + * @opt_param int maxResults ! Maximum count of results to be returned. ! + * Acceptable values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Deploymentmanager_ManifestsListResponse */ public function listManifests($project, $deployment, $optParams = array()) @@ -449,10 +449,10 @@ class Google_Service_Deploymentmanager_Operations_Resource extends Google_Servic { /** - * Gets information about a specific Operation. (operations.get) + * ! Gets information about a specific Operation. (operations.get) * - * @param string $project The project ID for this request. - * @param string $operation The name of the operation for this request. + * @param string $project ! The project ID for this request. + * @param string $operation ! The name of the operation for this request. * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_Operation */ @@ -464,16 +464,16 @@ public function get($project, $operation, $optParams = array()) } /** - * Lists all Operations for a project. (operations.listOperations) + * ! Lists all Operations for a project. (operations.listOperations) * - * @param string $project The project ID for this request. + * @param string $project ! The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken ! Specifies a nextPageToken returned by a + * previous list request. This ! token can be used to request the next page of + * results from a previous ! list request. + * @opt_param int maxResults ! Maximum count of results to be returned. ! + * Acceptable values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Deploymentmanager_OperationsListResponse */ public function listOperations($project, $optParams = array()) @@ -496,11 +496,11 @@ class Google_Service_Deploymentmanager_Resources_Resource extends Google_Service { /** - * Gets information about a single resource. (resources.get) + * ! Gets information about a single resource. (resources.get) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $resource The name of the resource for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. + * @param string $resource ! The name of the resource for this request. * @param array $optParams Optional parameters. * @return Google_Service_Deploymentmanager_DeploymentmanagerResource */ @@ -512,17 +512,17 @@ public function get($project, $deployment, $resource, $optParams = array()) } /** - * Lists all resources in a given deployment. (resources.listResources) + * ! Lists all resources in a given deployment. (resources.listResources) * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. + * @param string $project ! The project ID for this request. + * @param string $deployment ! The name of the deployment for this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken ! Specifies a nextPageToken returned by a + * previous list request. This ! token can be used to request the next page of + * results from a previous ! list request. + * @opt_param int maxResults ! Maximum count of results to be returned. ! + * Acceptable values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Deploymentmanager_ResourcesListResponse */ public function listResources($project, $deployment, $optParams = array()) @@ -545,16 +545,16 @@ class Google_Service_Deploymentmanager_Types_Resource extends Google_Service_Res { /** - * Lists all Types for Deployment Manager. (types.listTypes) + * ! Lists all Types for Deployment Manager. (types.listTypes) * - * @param string $project The project ID for this request. + * @param string $project ! The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken ! Specifies a nextPageToken returned by a + * previous list request. This ! token can be used to request the next page of + * results from a previous ! list request. + * @opt_param int maxResults ! Maximum count of results to be returned. ! + * Acceptable values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Deploymentmanager_TypesListResponse */ public function listTypes($project, $optParams = array()) From 562945d9b1ea9120df61c9fb60a30f40f66d8aed Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Mar 2015 05:20:42 -0700 Subject: [PATCH 0705/1274] Added service Logging.php --- src/Google/Service/Logging.php | 1666 ++++++++++++++++++++++++++++++++ 1 file changed, 1666 insertions(+) create mode 100644 src/Google/Service/Logging.php diff --git a/src/Google/Service/Logging.php b/src/Google/Service/Logging.php new file mode 100644 index 000000000..32c84e15c --- /dev/null +++ b/src/Google/Service/Logging.php @@ -0,0 +1,1666 @@ + + * Google Cloud Logging API lets you manage logs, ingest and retrieve log + * entries within a log, and manage log sinks and metrics.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Logging extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_logEntries; + public $projects_logServices; + public $projects_logServices_indexes; + public $projects_logServices_sinks; + public $projects_logs; + public $projects_logs_entries; + public $projects_logs_sinks; + public $projects_metrics; + + + /** + * Constructs the internal representation of the Logging service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1beta3'; + $this->serviceName = 'logging'; + + $this->projects_logEntries = new Google_Service_Logging_ProjectsLogEntries_Resource( + $this, + $this->serviceName, + 'logEntries', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logEntries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource( + $this, + $this->serviceName, + 'logServices', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'log' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices_indexes = new Google_Service_Logging_ProjectsLogServicesIndexes_Resource( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexPrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'depth' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'log' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices_sinks = new Google_Service_Logging_ProjectsLogServicesSinks_Resource( + $this, + $this->serviceName, + 'sinks', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( + $this, + $this->serviceName, + 'logs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'serviceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serviceIndexPrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logs_entries = new Google_Service_Logging_ProjectsLogsEntries_Resource( + $this, + $this->serviceName, + 'entries', + array( + 'methods' => array( + 'write' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_logs_sinks = new Google_Service_Logging_ProjectsLogsSinks_Resource( + $this, + $this->serviceName, + 'sinks', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( + $this, + $this->serviceName, + 'metrics', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $projects = $loggingService->projects; + * + */ +class Google_Service_Logging_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "logEntries" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $logEntries = $loggingService->logEntries; + * + */ +class Google_Service_Logging_ProjectsLogEntries_Resource extends Google_Service_Resource +{ + + /** + * Lists log entries in the specified project. + * (logEntries.listProjectsLogEntries) + * + * @param string $projectsId Part of `projectName`. The project resource from + * which to retrieve log entries, for example: "projects/my_project_id". + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter specification. Response includes only entries + * which are selected by this filter. If empty, response is unfiltered. + * @opt_param string orderBy Sort order. The only LogEntry field supported for + * sorting is metadata.timestamp and the default order is ascending (from older + * to newer). To have entries returned in the opposite (descending) order, + * specify order_by="metadata.timestamp desc". + * @opt_param int pageSize Maximum number of entries to return per request. + * Fewer entries may be returned. + * @opt_param string pageToken An opaque token obtained from a prior + * ListLogEntries response (in next_page_token). If this is supplied, other + * parameters in this request are ignored, in favor of the corresponding + * parameters in the original request. + * @return Google_Service_Logging_ListLogEntriesResponse + */ + public function listProjectsLogEntries($projectsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); + } +} +/** + * The "logServices" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $logServices = $loggingService->logServices; + * + */ +class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service_Resource +{ + + /** + * Lists log services associated with log entries ingested for a project. + * (logServices.listProjectsLogServices) + * + * @param string $projectsId Part of `projectName`. The project resource for + * which to list the services. + * @param array $optParams Optional parameters. + * + * @opt_param string log A log resource like /projects/project_id/logs/log_name + * identifying the log for which to list services. When empty, all services will + * be listed. + * @opt_param int pageSize The maximum number of LogService objects to return. + * @opt_param string pageToken An optional next_page_token from a previous + * ListLogServicesResult. Other fields are ignored when the page_token is not + * empty. + * @return Google_Service_Logging_ListLogServicesResponse + */ + public function listProjectsLogServices($projectsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogServicesResponse"); + } +} + +/** + * The "indexes" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $indexes = $loggingService->indexes; + * + */ +class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_Service_Resource +{ + + /** + * Lists log service indexes associated with a log service. + * (indexes.listProjectsLogServicesIndexes) + * + * @param string $projectsId Part of `serviceName`. A log service resource whose + * service indexes to return (e.g. + * /projects/myProj/logServices/appengine.googleapis.com). + * @param string $logServicesId Part of `serviceName`. See documentation of + * `projectsId`. + * @param array $optParams Optional parameters. + * + * @opt_param string indexPrefix A prefix of the log service indexes to be + * returned. The prefix is a slash separated list of the label values in order + * corresponding to the [LogService + * index_keys][google.logging.v1.LogService.index_keys]. For example use + * "/myModule/" to retrieve App Engine versions associated with myModule. The + * trailing slash terminates the value, while "/myModule" would allow retrieval + * of App Engine modules with names beginning with myModule. An prefix component + * matches all log service indexes. A non-empty prefix must begin with "/". + * @opt_param int depth A limit to the number of levels of the index hierarchy + * that will be expanded. If the depth is 0, it will default to the level + * specified by the prefix field (the number of slash separators). The default + * empty prefix implies a depth of 1. It is an error for depth to be any non- + * zero value less than the number of components in index_prefix. + * @opt_param string log A log resource like /projects/project_id/logs/log_name + * identifying the log for which to list services indexes. + * @opt_param int pageSize The maximum number of log service index resources to + * return. + * @opt_param string pageToken An optional next_page_token from a previous + * ListLogServicesIndexesResult. Other fields are ignored when the page_token is + * not empty. + * @return Google_Service_Logging_ListLogServiceIndexesResponse + */ + public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceIndexesResponse"); + } +} +/** + * The "sinks" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $sinks = $loggingService->sinks; + * + */ +class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Service_Resource +{ + + /** + * Create the specified log service sink resource. (sinks.create) + * + * @param string $projectsId Part of `serviceName`. The service in which to + * create a sink. + * @param string $logServicesId Part of `serviceName`. See documentation of + * `projectsId`. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function create($projectsId, $logServicesId, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * Deletes the specified log service sink. (sinks.delete) + * + * @param string $projectsId Part of `sinkName`. The sink to delete. + * @param string $logServicesId Part of `sinkName`. See documentation of + * `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($projectsId, $logServicesId, $sinksId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Get the specified log service sink resource. (sinks.get) + * + * @param string $projectsId Part of `sinkName`. The sink to return. + * @param string $logServicesId Part of `sinkName`. See documentation of + * `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function get($projectsId, $logServicesId, $sinksId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * List log service sinks associated with the specified service. + * (sinks.listProjectsLogServicesSinks) + * + * @param string $projectsId Part of `serviceName`. The service for which to + * list sinks. + * @param string $logServicesId Part of `serviceName`. See documentation of + * `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_ListLogServiceSinksResponse + */ + public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceSinksResponse"); + } + + /** + * Create or update the specified log service sink resource. (sinks.update) + * + * @param string $projectsId Part of `sinkName`. The sink to update. + * @param string $logServicesId Part of `sinkName`. See documentation of + * `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function update($projectsId, $logServicesId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Logging_LogSink"); + } +} +/** + * The "logs" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $logs = $loggingService->logs; + * + */ +class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified log resource and all log entries contained in it. + * (logs.delete) + * + * @param string $projectsId Part of `logName`. The log resource to delete. + * @param string $logsId Part of `logName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($projectsId, $logsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Lists log resources belonging to the specified project. + * (logs.listProjectsLogs) + * + * @param string $projectsId Part of `projectName`. The project name for which + * to list the log resources. + * @param array $optParams Optional parameters. + * + * @opt_param string serviceName A service name for which to list logs. Only + * logs containing entries whose metadata included this service name will be + * returned. If empty and service_index_prefix is also empty then all log names + * are returned. To list all log names (regardless of service) leave both the + * service_name and service_index_prefix empty. To list log names containing + * entries with a particular service name (or explicitly empty service name) set + * service_name to the desired value and service_index_prefix to "/". + * @opt_param string serviceIndexPrefix A log service index prefix for which to + * list logs. Only logs containing entries whose metadata included these label + * values (associated with index keys) will be returned. The prefix is a slash + * separated list of values, and need not specify all index labels. An empty + * index (or a single slash) matches all log service indexes. + * @opt_param int pageSize The maximum number of results to return. + * @opt_param string pageToken An optional next_page_token from a previous + * ListLogsResponse. Other query parameters are ignored when page_token is not + * empty. + * @return Google_Service_Logging_ListLogsResponse + */ + public function listProjectsLogs($projectsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse"); + } +} + +/** + * The "entries" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $entries = $loggingService->entries; + * + */ +class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service_Resource +{ + + /** + * Creates several log entries in a log. (entries.write) + * + * @param string $projectsId Part of `logName`. The log resource into which to + * insert the log entries. If the log resource name contains characters that are + * illegal in a URL (for example, "/") they must be URL-encoded (for example, as + * "%2F"). + * @param string $logsId Part of `logName`. See documentation of `projectsId`. + * @param Google_WriteLogEntriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_WriteLogEntriesResponse + */ + public function write($projectsId, $logsId, Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); + } +} +/** + * The "sinks" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $sinks = $loggingService->sinks; + * + */ +class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_Resource +{ + + /** + * Create the specified log sink resource. (sinks.create) + * + * @param string $projectsId Part of `logName`. The log in which to create a + * sink + * @param string $logsId Part of `logName`. See documentation of `projectsId`. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function create($projectsId, $logsId, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * Deletes the specified log sink. (sinks.delete) + * + * @param string $projectsId Part of `sinkName`. The sink to delete. + * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($projectsId, $logsId, $sinksId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Get the specified log sink resource. (sinks.get) + * + * @param string $projectsId Part of `sinkName`. The sink to return. + * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function get($projectsId, $logsId, $sinksId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * List log sinks associated with the specified log. + * (sinks.listProjectsLogsSinks) + * + * @param string $projectsId Part of `logName`. The log for which to list sinks. + * @param string $logsId Part of `logName`. See documentation of `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_ListLogSinksResponse + */ + public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogSinksResponse"); + } + + /** + * Create or update the specified log sink resource. (sinks.update) + * + * @param string $projectsId Part of `sinkName`. The sink to update. + * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. + * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Logging_LogSink"); + } +} +/** + * The "metrics" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $metrics = $loggingService->metrics; + * + */ +class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource +{ + + /** + * Create the specified log metric resource. (metrics.create) + * + * @param string $projectsId Part of `projectName`. The project in which to + * create a metric. + * @param Google_LogMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function create($projectsId, Google_Service_Logging_LogMetric $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Logging_LogMetric"); + } + + /** + * Deletes the specified log metric. (metrics.delete) + * + * @param string $projectsId Part of `metricName`. The metric to delete. + * @param string $metricsId Part of `metricName`. See documentation of + * `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($projectsId, $metricsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Get the specified log metric resource. (metrics.get) + * + * @param string $projectsId Part of `metricName`. The metric to return. + * @param string $metricsId Part of `metricName`. See documentation of + * `projectsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function get($projectsId, $metricsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogMetric"); + } + + /** + * List log metrics associated with the specified project. + * (metrics.listProjectsMetrics) + * + * @param string $projectsId Part of `projectName`. The project name for which + * to list metrics. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken If non-empty, specifies from where to start + * returning results. This page_token is from a previous call to + * ListLogsMetrics. + * @opt_param int pageSize Maximum number of results to return. + * @return Google_Service_Logging_ListLogMetricsResponse + */ + public function listProjectsMetrics($projectsId, $optParams = array()) + { + $params = array('projectsId' => $projectsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse"); + } + + /** + * Create or update the specified log metric resource. (metrics.update) + * + * @param string $projectsId Part of `metricName`. The metric to update. + * @param string $metricsId Part of `metricName`. See documentation of + * `projectsId`. + * @param Google_LogMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function update($projectsId, $metricsId, Google_Service_Logging_LogMetric $postBody, $optParams = array()) + { + $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Logging_LogMetric"); + } +} + + + + +class Google_Service_Logging_Empty extends Google_Model +{ +} + +class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_Logging_LogEntry'; + protected $entriesDataType = 'array'; + public $nextPageToken; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + protected $metricsType = 'Google_Service_Logging_LogMetric'; + protected $metricsDataType = 'array'; + public $nextPageToken; + + + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection +{ + protected $collection_key = 'serviceIndexPrefixes'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + public $serviceIndexPrefixes; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setServiceIndexPrefixes($serviceIndexPrefixes) + { + $this->serviceIndexPrefixes = $serviceIndexPrefixes; + } + public function getServiceIndexPrefixes() + { + return $this->serviceIndexPrefixes; + } +} + +class Google_Service_Logging_ListLogServiceSinksResponse extends Google_Collection +{ + protected $collection_key = 'sinks'; + protected $internal_gapi_mappings = array( + ); + protected $sinksType = 'Google_Service_Logging_LogSink'; + protected $sinksDataType = 'array'; + + + public function setSinks($sinks) + { + $this->sinks = $sinks; + } + public function getSinks() + { + return $this->sinks; + } +} + +class Google_Service_Logging_ListLogServicesResponse extends Google_Collection +{ + protected $collection_key = 'logServices'; + protected $internal_gapi_mappings = array( + ); + protected $logServicesType = 'Google_Service_Logging_LogService'; + protected $logServicesDataType = 'array'; + public $nextPageToken; + + + public function setLogServices($logServices) + { + $this->logServices = $logServices; + } + public function getLogServices() + { + return $this->logServices; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListLogSinksResponse extends Google_Collection +{ + protected $collection_key = 'sinks'; + protected $internal_gapi_mappings = array( + ); + protected $sinksType = 'Google_Service_Logging_LogSink'; + protected $sinksDataType = 'array'; + + + public function setSinks($sinks) + { + $this->sinks = $sinks; + } + public function getSinks() + { + return $this->sinks; + } +} + +class Google_Service_Logging_ListLogsResponse extends Google_Collection +{ + protected $collection_key = 'logs'; + protected $internal_gapi_mappings = array( + ); + protected $logsType = 'Google_Service_Logging_Log'; + protected $logsDataType = 'array'; + public $nextPageToken; + + + public function setLogs($logs) + { + $this->logs = $logs; + } + public function getLogs() + { + return $this->logs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_Log extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $name; + public $payloadType; + + + 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 setPayloadType($payloadType) + { + $this->payloadType = $payloadType; + } + public function getPayloadType() + { + return $this->payloadType; + } +} + +class Google_Service_Logging_LogEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $insertId; + public $log; + protected $metadataType = 'Google_Service_Logging_LogEntryMetadata'; + protected $metadataDataType = ''; + public $protoPayload; + public $structPayload; + public $textPayload; + + + public function setInsertId($insertId) + { + $this->insertId = $insertId; + } + public function getInsertId() + { + return $this->insertId; + } + public function setLog($log) + { + $this->log = $log; + } + public function getLog() + { + return $this->log; + } + public function setMetadata(Google_Service_Logging_LogEntryMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setProtoPayload($protoPayload) + { + $this->protoPayload = $protoPayload; + } + public function getProtoPayload() + { + return $this->protoPayload; + } + public function setStructPayload($structPayload) + { + $this->structPayload = $structPayload; + } + public function getStructPayload() + { + return $this->structPayload; + } + public function setTextPayload($textPayload) + { + $this->textPayload = $textPayload; + } + public function getTextPayload() + { + return $this->textPayload; + } +} + +class Google_Service_Logging_LogEntryMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $labels; + public $projectId; + public $projectNumber; + public $region; + public $serviceName; + public $severity; + public $timeNanos; + public $timestamp; + public $userId; + public $zone; + + + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setProjectNumber($projectNumber) + { + $this->projectNumber = $projectNumber; + } + public function getProjectNumber() + { + return $this->projectNumber; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setServiceName($serviceName) + { + $this->serviceName = $serviceName; + } + public function getServiceName() + { + return $this->serviceName; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setTimeNanos($timeNanos) + { + $this->timeNanos = $timeNanos; + } + public function getTimeNanos() + { + return $this->timeNanos; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Logging_LogEntryMetadataLabels extends Google_Model +{ +} + +class Google_Service_Logging_LogEntryProtoPayload extends Google_Model +{ +} + +class Google_Service_Logging_LogEntryStructPayload extends Google_Model +{ +} + +class Google_Service_Logging_LogError extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $resource; + protected $statusType = 'Google_Service_Logging_Status'; + protected $statusDataType = ''; + public $timeNanos; + + + public function setResource($resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } + public function setStatus(Google_Service_Logging_Status $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTimeNanos($timeNanos) + { + $this->timeNanos = $timeNanos; + } + public function getTimeNanos() + { + return $this->timeNanos; + } +} + +class Google_Service_Logging_LogMetric extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $filter; + public $name; + public $projectId; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_Logging_LogService extends Google_Collection +{ + protected $collection_key = 'indexKeys'; + protected $internal_gapi_mappings = array( + ); + public $indexKeys; + public $name; + + + public function setIndexKeys($indexKeys) + { + $this->indexKeys = $indexKeys; + } + public function getIndexKeys() + { + return $this->indexKeys; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Logging_LogSink extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $destination; + protected $errorsType = 'Google_Service_Logging_LogError'; + protected $errorsDataType = 'array'; + public $name; + + + public function setDestination($destination) + { + $this->destination = $destination; + } + public function getDestination() + { + return $this->destination; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Logging_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Logging_StatusDetails extends Google_Model +{ +} + +class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + public $commonLabels; + protected $entriesType = 'Google_Service_Logging_LogEntry'; + protected $entriesDataType = 'array'; + + + public function setCommonLabels($commonLabels) + { + $this->commonLabels = $commonLabels; + } + public function getCommonLabels() + { + return $this->commonLabels; + } + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Logging_WriteLogEntriesRequestCommonLabels extends Google_Model +{ +} + +class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model +{ +} From e190c5b2ed586eaef431d4d0e5f7d6e72c0deb71 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 28 Mar 2015 05:20:42 -0700 Subject: [PATCH 0706/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 42 ++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index f19ccb5d6..3b7e53d28 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -476,6 +476,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'acknowledgeAbuse' => array( 'location' => 'query', 'type' => 'boolean', @@ -484,10 +492,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'insert' => array( 'path' => 'files', @@ -706,6 +710,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'acknowledgeAbuse' => array( 'location' => 'query', 'type' => 'boolean', @@ -714,10 +726,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -1710,12 +1718,15 @@ public function emptyTrash($optParams = array()) * @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 string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. + * of downloading known malware or other abusive files. Ignored unless alt=media + * is specified. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. - * @opt_param string projection This parameter is deprecated and has no - * function. * @return Google_Service_Drive_DriveFile */ public function get($fileId, $optParams = array()) @@ -1903,12 +1914,15 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa * @param Google_Channel $postBody * @param array $optParams Optional parameters. * + * @opt_param string projection This parameter is deprecated and has no + * function. + * @opt_param string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. + * of downloading known malware or other abusive files. Ignored unless alt=media + * is specified. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. - * @opt_param string projection This parameter is deprecated and has no - * function. * @return Google_Service_Drive_Channel */ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) From f90005ae637fc6fa214d7125e2b582018cf838d1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 29 Mar 2015 05:21:43 -0700 Subject: [PATCH 0707/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 2c794bb46..a24d3ecd9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2838,25 +2838,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2892,6 +2873,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 01af3972ee743bdfa61ac3f425c921389773bbdf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 30 Mar 2015 05:22:43 -0700 Subject: [PATCH 0708/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index a24d3ecd9..2c794bb46 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2838,6 +2838,25 @@ public function getUser() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2873,25 +2892,6 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 19d239a4acb4f2223fc72b30ae34b87ede086b74 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 30 Mar 2015 05:22:43 -0700 Subject: [PATCH 0709/1274] Updated Logging.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Logging.php | 548 ++++++--------------------------- 1 file changed, 91 insertions(+), 457 deletions(-) diff --git a/src/Google/Service/Logging.php b/src/Google/Service/Logging.php index 32c84e15c..8fc2d3e36 100644 --- a/src/Google/Service/Logging.php +++ b/src/Google/Service/Logging.php @@ -19,8 +19,8 @@ * Service definition for Logging (v1beta3). * *

- * Google Cloud Logging API lets you manage logs, ingest and retrieve log - * entries within a log, and manage log sinks and metrics.

+ * Google Cloud Logging API lets you create logs, ingest log entries, and manage + * log sinks.

* *

* For more information about this service, see the API @@ -35,14 +35,12 @@ class Google_Service_Logging extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - public $projects_logEntries; public $projects_logServices; public $projects_logServices_indexes; public $projects_logServices_sinks; public $projects_logs; public $projects_logs_entries; public $projects_logs_sinks; - public $projects_metrics; /** @@ -57,14 +55,14 @@ public function __construct(Google_Client $client) $this->version = 'v1beta3'; $this->serviceName = 'logging'; - $this->projects_logEntries = new Google_Service_Logging_ProjectsLogEntries_Resource( + $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource( $this, $this->serviceName, - 'logEntries', + 'logServices', array( 'methods' => array( 'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logEntries', + 'path' => 'v1beta3/projects/{projectsId}/logServices', 'httpMethod' => 'GET', 'parameters' => array( 'projectsId' => array( @@ -72,42 +70,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - ), - ), - ) - ) - ); - $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource( - $this, - $this->serviceName, - 'logServices', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'log' => array( 'location' => 'query', 'type' => 'string', @@ -116,10 +82,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -145,23 +107,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'indexPrefix' => array( + 'log' => array( 'location' => 'query', 'type' => 'string', ), - 'depth' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'log' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'depth' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'indexPrefix' => array( 'location' => 'query', 'type' => 'string', ), @@ -300,6 +262,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'serviceName' => array( 'location' => 'query', 'type' => 'string', @@ -312,10 +278,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -446,89 +408,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1beta3/projects/{projectsId}/metrics', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metricsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metricsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/metrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metricsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); } } @@ -545,46 +424,6 @@ class Google_Service_Logging_Projects_Resource extends Google_Service_Resource { } -/** - * The "logEntries" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $logEntries = $loggingService->logEntries; - * - */ -class Google_Service_Logging_ProjectsLogEntries_Resource extends Google_Service_Resource -{ - - /** - * Lists log entries in the specified project. - * (logEntries.listProjectsLogEntries) - * - * @param string $projectsId Part of `projectName`. The project resource from - * which to retrieve log entries, for example: "projects/my_project_id". - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter specification. Response includes only entries - * which are selected by this filter. If empty, response is unfiltered. - * @opt_param string orderBy Sort order. The only LogEntry field supported for - * sorting is metadata.timestamp and the default order is ascending (from older - * to newer). To have entries returned in the opposite (descending) order, - * specify order_by="metadata.timestamp desc". - * @opt_param int pageSize Maximum number of entries to return per request. - * Fewer entries may be returned. - * @opt_param string pageToken An opaque token obtained from a prior - * ListLogEntries response (in next_page_token). If this is supplied, other - * parameters in this request are ignored, in favor of the corresponding - * parameters in the original request. - * @return Google_Service_Logging_ListLogEntriesResponse - */ - public function listProjectsLogEntries($projectsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); - } -} /** * The "logServices" collection of methods. * Typical usage is: @@ -600,17 +439,18 @@ class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service * Lists log services associated with log entries ingested for a project. * (logServices.listProjectsLogServices) * - * @param string $projectsId Part of `projectName`. The project resource for - * which to list the services. + * @param string $projectsId Part of `projectName`. The project resource whose + * services are to be listed. * @param array $optParams Optional parameters. * - * @opt_param string log A log resource like /projects/project_id/logs/log_name - * identifying the log for which to list services. When empty, all services will - * be listed. - * @opt_param int pageSize The maximum number of LogService objects to return. - * @opt_param string pageToken An optional next_page_token from a previous - * ListLogServicesResult. Other fields are ignored when the page_token is not - * empty. + * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a + * prior `ListLogServices` operation. If `pageToken` is supplied, then the other + * fields of this request are ignored, and instead the previous + * `ListLogServices` operation is continued. + * @opt_param string log The name of the log resource whose services are to be + * listed. log for which to list services. When empty, all services are listed. + * @opt_param int pageSize The maximum number of `LogService` objects to return + * in one operation. * @return Google_Service_Logging_ListLogServicesResponse */ public function listProjectsLogServices($projectsId, $optParams = array()) @@ -636,33 +476,35 @@ class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_ * Lists log service indexes associated with a log service. * (indexes.listProjectsLogServicesIndexes) * - * @param string $projectsId Part of `serviceName`. A log service resource whose - * service indexes to return (e.g. - * /projects/myProj/logServices/appengine.googleapis.com). + * @param string $projectsId Part of `serviceName`. A log service resource of + * the form `/projects/logServices`. The service indexes of the log service are + * returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`. * @param string $logServicesId Part of `serviceName`. See documentation of * `projectsId`. * @param array $optParams Optional parameters. * - * @opt_param string indexPrefix A prefix of the log service indexes to be - * returned. The prefix is a slash separated list of the label values in order - * corresponding to the [LogService - * index_keys][google.logging.v1.LogService.index_keys]. For example use - * "/myModule/" to retrieve App Engine versions associated with myModule. The - * trailing slash terminates the value, while "/myModule" would allow retrieval - * of App Engine modules with names beginning with myModule. An prefix component - * matches all log service indexes. A non-empty prefix must begin with "/". - * @opt_param int depth A limit to the number of levels of the index hierarchy - * that will be expanded. If the depth is 0, it will default to the level - * specified by the prefix field (the number of slash separators). The default - * empty prefix implies a depth of 1. It is an error for depth to be any non- - * zero value less than the number of components in index_prefix. - * @opt_param string log A log resource like /projects/project_id/logs/log_name - * identifying the log for which to list services indexes. + * @opt_param string log A log resource like + * `/projects/project_id/logs/log_name`, identifying the log for which to list + * service indexes. * @opt_param int pageSize The maximum number of log service index resources to - * return. - * @opt_param string pageToken An optional next_page_token from a previous - * ListLogServicesIndexesResult. Other fields are ignored when the page_token is - * not empty. + * return in one operation. + * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a + * prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the + * other fields of this request are ignored, and instead the previous + * `ListLogServiceIndexes` operation is continued. + * @opt_param int depth A limit to the number of levels of the index hierarchy + * that are expanded. If `depth` is 0, it defaults to the level specified by the + * prefix field (the number of slash separators). The default empty prefix + * implies a `depth` of 1. It is an error for `depth` to be any non-zero value + * less than the number of components in `indexPrefix`. + * @opt_param string indexPrefix Restricts the indexes returned to be those with + * a specified prefix. The prefix has the form `"/label_value/label_value/..."`, + * in order corresponding to the [`LogService + * indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must + * begin with `/` . Example prefixes: + `"/myModule/"` retrieves App Engine + * versions associated with `myModule`. The trailing slash terminates the value. + * + `"/myModule"` retrieves App Engine modules with names beginning with + * `myModule`. + `""` retrieves all indexes. * @return Google_Service_Logging_ListLogServiceIndexesResponse */ public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array()) @@ -684,10 +526,10 @@ class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Se { /** - * Create the specified log service sink resource. (sinks.create) + * Creates the specified log service sink resource. (sinks.create) * - * @param string $projectsId Part of `serviceName`. The service in which to - * create a sink. + * @param string $projectsId Part of `serviceName`. The name of the service in + * which to create a sink. * @param string $logServicesId Part of `serviceName`. See documentation of * `projectsId`. * @param Google_LogSink $postBody @@ -704,7 +546,7 @@ public function create($projectsId, $logServicesId, Google_Service_Logging_LogSi /** * Deletes the specified log service sink. (sinks.delete) * - * @param string $projectsId Part of `sinkName`. The sink to delete. + * @param string $projectsId Part of `sinkName`. The name of the sink to delete. * @param string $logServicesId Part of `sinkName`. See documentation of * `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. @@ -719,9 +561,9 @@ public function delete($projectsId, $logServicesId, $sinksId, $optParams = array } /** - * Get the specified log service sink resource. (sinks.get) + * Gets the specified log service sink resource. (sinks.get) * - * @param string $projectsId Part of `sinkName`. The sink to return. + * @param string $projectsId Part of `sinkName`. The name of the sink to return. * @param string $logServicesId Part of `sinkName`. See documentation of * `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. @@ -736,11 +578,11 @@ public function get($projectsId, $logServicesId, $sinksId, $optParams = array()) } /** - * List log service sinks associated with the specified service. + * Lists log service sinks associated with the specified service. * (sinks.listProjectsLogServicesSinks) * - * @param string $projectsId Part of `serviceName`. The service for which to - * list sinks. + * @param string $projectsId Part of `serviceName`. The name of the service for + * which to list sinks. * @param string $logServicesId Part of `serviceName`. See documentation of * `projectsId`. * @param array $optParams Optional parameters. @@ -754,9 +596,9 @@ public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optPa } /** - * Create or update the specified log service sink resource. (sinks.update) + * Creates or update the specified log service sink resource. (sinks.update) * - * @param string $projectsId Part of `sinkName`. The sink to update. + * @param string $projectsId Part of `sinkName`. The name of the sink to update. * @param string $logServicesId Part of `sinkName`. See documentation of * `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. @@ -806,22 +648,24 @@ public function delete($projectsId, $logsId, $optParams = array()) * to list the log resources. * @param array $optParams Optional parameters. * + * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a + * prior `ListLogs` operation. If `pageToken` is supplied, then the other fields + * of this request are ignored, and instead the previous `ListLogs` operation is + * continued. * @opt_param string serviceName A service name for which to list logs. Only - * logs containing entries whose metadata included this service name will be - * returned. If empty and service_index_prefix is also empty then all log names - * are returned. To list all log names (regardless of service) leave both the - * service_name and service_index_prefix empty. To list log names containing - * entries with a particular service name (or explicitly empty service name) set - * service_name to the desired value and service_index_prefix to "/". + * logs containing entries whose metadata includes this service name are + * returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all + * log names are returned. To list all log names, regardless of service, leave + * both the `serviceName` and `serviceIndexPrefix` empty. To list log names + * containing entries with a particular service name (or explicitly empty + * service name) set `serviceName` to the desired value and `serviceIndexPrefix` + * to `"/"`. * @opt_param string serviceIndexPrefix A log service index prefix for which to - * list logs. Only logs containing entries whose metadata included these label - * values (associated with index keys) will be returned. The prefix is a slash + * list logs. Only logs containing entries whose metadata that includes these + * label values (associated with index keys) are returned. The prefix is a slash * separated list of values, and need not specify all index labels. An empty * index (or a single slash) matches all log service indexes. * @opt_param int pageSize The maximum number of results to return. - * @opt_param string pageToken An optional next_page_token from a previous - * ListLogsResponse. Other query parameters are ignored when page_token is not - * empty. * @return Google_Service_Logging_ListLogsResponse */ public function listProjectsLogs($projectsId, $optParams = array()) @@ -844,12 +688,16 @@ class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service { /** - * Creates several log entries in a log. (entries.write) + * Creates one or more log entries in a log. You must supply a list of + * `LogEntry` objects, named `entries`. Each `LogEntry` object must contain a + * payload object and a `LogEntryMetadata` object that describes the entry. You + * must fill in all the fields of the entry, metadata, and payload. You can also + * supply a map, `commonLabels`, that supplies default (key, value) data for the + * `entries[].metadata.labels` maps, saving you the trouble of creating + * identical copies for each entry. (entries.write) * - * @param string $projectsId Part of `logName`. The log resource into which to - * insert the log entries. If the log resource name contains characters that are - * illegal in a URL (for example, "/") they must be URL-encoded (for example, as - * "%2F"). + * @param string $projectsId Part of `logName`. The name of the log resource + * into which to insert the log entries. * @param string $logsId Part of `logName`. See documentation of `projectsId`. * @param Google_WriteLogEntriesRequest $postBody * @param array $optParams Optional parameters. @@ -874,10 +722,10 @@ class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_R { /** - * Create the specified log sink resource. (sinks.create) + * Creates the specified log sink resource. (sinks.create) * * @param string $projectsId Part of `logName`. The log in which to create a - * sink + * sink resource. * @param string $logsId Part of `logName`. See documentation of `projectsId`. * @param Google_LogSink $postBody * @param array $optParams Optional parameters. @@ -891,9 +739,9 @@ public function create($projectsId, $logsId, Google_Service_Logging_LogSink $pos } /** - * Deletes the specified log sink. (sinks.delete) + * Deletes the specified log sink resource. (sinks.delete) * - * @param string $projectsId Part of `sinkName`. The sink to delete. + * @param string $projectsId Part of `sinkName`. The name of the sink to delete. * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. * @param array $optParams Optional parameters. @@ -907,9 +755,10 @@ public function delete($projectsId, $logsId, $sinksId, $optParams = array()) } /** - * Get the specified log sink resource. (sinks.get) + * Gets the specified log sink resource. (sinks.get) * - * @param string $projectsId Part of `sinkName`. The sink to return. + * @param string $projectsId Part of `sinkName`. The name of the sink resource + * to return. * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. * @param array $optParams Optional parameters. @@ -923,7 +772,7 @@ public function get($projectsId, $logsId, $sinksId, $optParams = array()) } /** - * List log sinks associated with the specified log. + * Lists log sinks associated with the specified log. * (sinks.listProjectsLogsSinks) * * @param string $projectsId Part of `logName`. The log for which to list sinks. @@ -939,9 +788,9 @@ public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array() } /** - * Create or update the specified log sink resource. (sinks.update) + * Creates or updates the specified log sink resource. (sinks.update) * - * @param string $projectsId Part of `sinkName`. The sink to update. + * @param string $projectsId Part of `sinkName`. The name of the sink to update. * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. * @param Google_LogSink $postBody @@ -955,103 +804,6 @@ public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_Lo return $this->call('update', array($params), "Google_Service_Logging_LogSink"); } } -/** - * The "metrics" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $metrics = $loggingService->metrics; - * - */ -class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource -{ - - /** - * Create the specified log metric resource. (metrics.create) - * - * @param string $projectsId Part of `projectName`. The project in which to - * create a metric. - * @param Google_LogMetric $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function create($projectsId, Google_Service_Logging_LogMetric $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Logging_LogMetric"); - } - - /** - * Deletes the specified log metric. (metrics.delete) - * - * @param string $projectsId Part of `metricName`. The metric to delete. - * @param string $metricsId Part of `metricName`. See documentation of - * `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($projectsId, $metricsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } - - /** - * Get the specified log metric resource. (metrics.get) - * - * @param string $projectsId Part of `metricName`. The metric to return. - * @param string $metricsId Part of `metricName`. See documentation of - * `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function get($projectsId, $metricsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Logging_LogMetric"); - } - - /** - * List log metrics associated with the specified project. - * (metrics.listProjectsMetrics) - * - * @param string $projectsId Part of `projectName`. The project name for which - * to list metrics. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken If non-empty, specifies from where to start - * returning results. This page_token is from a previous call to - * ListLogsMetrics. - * @opt_param int pageSize Maximum number of results to return. - * @return Google_Service_Logging_ListLogMetricsResponse - */ - public function listProjectsMetrics($projectsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse"); - } - - /** - * Create or update the specified log metric resource. (metrics.update) - * - * @param string $projectsId Part of `metricName`. The metric to update. - * @param string $metricsId Part of `metricName`. See documentation of - * `projectsId`. - * @param Google_LogMetric $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function update($projectsId, $metricsId, Google_Service_Logging_LogMetric $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Logging_LogMetric"); - } -} @@ -1060,62 +812,6 @@ class Google_Service_Logging_Empty extends Google_Model { } -class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_Logging_LogEntry'; - protected $entriesDataType = 'array'; - public $nextPageToken; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - protected $metricsType = 'Google_Service_Logging_LogMetric'; - protected $metricsDataType = 'array'; - public $nextPageToken; - - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection { protected $collection_key = 'serviceIndexPrefixes'; @@ -1341,11 +1037,9 @@ class Google_Service_Logging_LogEntryMetadata extends Google_Model ); public $labels; public $projectId; - public $projectNumber; public $region; public $serviceName; public $severity; - public $timeNanos; public $timestamp; public $userId; public $zone; @@ -1367,14 +1061,6 @@ public function getProjectId() { return $this->projectId; } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } public function setRegion($region) { $this->region = $region; @@ -1399,14 +1085,6 @@ public function getSeverity() { return $this->severity; } - public function setTimeNanos($timeNanos) - { - $this->timeNanos = $timeNanos; - } - public function getTimeNanos() - { - return $this->timeNanos; - } public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1481,50 +1159,6 @@ public function getTimeNanos() } } -class Google_Service_Logging_LogMetric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $filter; - public $name; - public $projectId; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - class Google_Service_Logging_LogService extends Google_Collection { protected $collection_key = 'indexKeys'; From 2803454dd00a6fa999b8ec573ba62be6b04a8b46 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 31 Mar 2015 05:23:55 -0700 Subject: [PATCH 0710/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index bed814dfb..b7f721bf7 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -36,6 +36,12 @@ class Google_Service_Gmail extends Google_Service /** Manage drafts and send emails. */ const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + /** Gmail. */ + const GMAIL_INSERT = + "https://www.googleapis.com/auth/gmail.insert"; + /** Gmail. */ + const GMAIL_LABELS = + "https://www.googleapis.com/auth/gmail.labels"; /** View and modify but not delete your email. */ const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; From c72aae1e2cfa7479c26160a3af7827d729c9a35b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 31 Mar 2015 05:23:56 -0700 Subject: [PATCH 0711/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index a65d673ac..1ec525b7c 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -1936,7 +1936,7 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * Remove Organization Unit (orgunits.delete) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param array $optParams Optional parameters. */ public function delete($customerId, $orgUnitPath, $optParams = array()) @@ -1950,7 +1950,7 @@ public function delete($customerId, $orgUnitPath, $optParams = array()) * Retrieve Organization Unit (orgunits.get) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit */ @@ -1984,7 +1984,8 @@ public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, * * @opt_param string type Whether to return all sub-organizations or just * immediate children - * @opt_param string orgUnitPath the URL-encoded organization unit + * @opt_param string orgUnitPath the URL-encoded organization unit's path or its + * Id * @return Google_Service_Directory_OrgUnits */ public function listOrgunits($customerId, $optParams = array()) @@ -1999,7 +2000,7 @@ public function listOrgunits($customerId, $optParams = array()) * (orgunits.patch) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -2015,7 +2016,7 @@ public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUni * Update Organization Unit (orgunits.update) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -3978,7 +3979,9 @@ class Google_Service_Directory_OrgUnit extends Google_Model public $etag; public $kind; public $name; + public $orgUnitId; public $orgUnitPath; + public $parentOrgUnitId; public $parentOrgUnitPath; @@ -4022,6 +4025,14 @@ public function getName() { return $this->name; } + public function setOrgUnitId($orgUnitId) + { + $this->orgUnitId = $orgUnitId; + } + public function getOrgUnitId() + { + return $this->orgUnitId; + } public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -4030,6 +4041,14 @@ public function getOrgUnitPath() { return $this->orgUnitPath; } + public function setParentOrgUnitId($parentOrgUnitId) + { + $this->parentOrgUnitId = $parentOrgUnitId; + } + public function getParentOrgUnitId() + { + return $this->parentOrgUnitId; + } public function setParentOrgUnitPath($parentOrgUnitPath) { $this->parentOrgUnitPath = $parentOrgUnitPath; From 39846d4ce988d9daee30f5589ab5911c814e6cd6 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 1 Apr 2015 05:24:53 -0700 Subject: [PATCH 0712/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 3e70e8a11..c19190b64 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -1409,7 +1409,7 @@ class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_ /** * Creates a new APK without uploading the APK itself to Google Play, instead * hosting the APK at a specified URL. This function is only available to - * enterprises using Google Play for work whose application is configured to + * enterprises using Google Play for Work whose application is configured to * restrict distribution to the enterprise domain. (apks.addexternallyhosted) * * @param string $packageName Unique identifier for the Android app that is From 454f4f9f2d0c34ad7ec5faaff0c73070ff75dab4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Apr 2015 05:26:13 -0700 Subject: [PATCH 0713/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 681 ++++++++++++++++------------------ 1 file changed, 317 insertions(+), 364 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index f37f8970e..d4a3605de 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -16,14 +16,14 @@ */ /** - * Service definition for Pubsub (v1beta1). + * Service definition for Pubsub (v1beta2). * *

* Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,8 +37,9 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $subscriptions; - public $topics; + public $projects_subscriptions; + public $projects_topics; + public $projects_topics_subscriptions; /** @@ -49,26 +50,38 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'pubsub/v1beta1/'; - $this->version = 'v1beta1'; + $this->servicePath = 'v1beta2/'; + $this->version = 'v1beta2'; $this->serviceName = 'pubsub'; - $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => 'subscriptions/acknowledge', + 'path' => '{+subscription}:acknowledge', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'create' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => '{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => '{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -78,7 +91,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => '{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -88,54 +101,75 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'subscriptions', + 'path' => '{+project}/subscriptions', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'modifyAckDeadline' => array( - 'path' => 'subscriptions/modifyAckDeadline', + 'path' => '{+subscription}:modifyAckDeadline', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'modifyPushConfig' => array( - 'path' => 'subscriptions/modifyPushConfig', + 'path' => '{+subscription}:modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'pull' => array( - 'path' => 'subscriptions/pull', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'pullBatch' => array( - 'path' => 'subscriptions/pullBatch', + 'path' => '{+subscription}:pull', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => 'topics', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => '{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'topics/{+topic}', + 'path' => '{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -145,7 +179,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'topics/{+topic}', + 'path' => '{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -155,30 +189,61 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'topics', + 'path' => '{+project}/topics', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( + ), + ),'publish' => array( + 'path' => '{+topic}:publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'list' => array( + 'path' => '{+topic}/subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), - ),'publish' => array( - 'path' => 'topics/publish', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'publishBatch' => array( - 'path' => 'topics/publishBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), ), ) ) @@ -187,6 +252,18 @@ public function __construct(Google_Client $client) } +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $projects = $pubsubService->projects; + * + */ +class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource +{ +} + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -195,43 +272,43 @@ public function __construct(Google_Client $client) * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges a particular received message: the Pub/Sub system can remove the - * given message from the subscription. Acknowledging a message whose Ack - * deadline has expired may succeed, but the message could have been already - * redelivered. Acknowledging a message more than once will not result in an - * error. This is only used for messages received via pull. - * (subscriptions.acknowledge) + * Acknowledges the messages associated with the ack tokens in the + * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from + * the subscription. Acknowledging a message whose ack deadline has expired may + * succeed, but such a message may be redelivered later. Acknowledging a message + * more than once will not result in an error. (subscriptions.acknowledge) * + * @param string $subscription * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params)); + return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); } /** - * Creates a subscription on a given topic for a given subscriber. If the + * Creates a subscription to a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. - * - * If the name is not provided in the request, the server will assign a random - * name for this subscription on the same project as the topic. - * (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the + * request, the server will assign a random name for this subscription on the + * same project as the topic. (subscriptions.create) * + * @param string $name * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } @@ -239,22 +316,25 @@ public function create(Google_Service_Pubsub_Subscription $postBody, $optParams /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * (subscriptions.delete) + * After a subscription is deleted, a new one may be created with the same name, + * but the new one has no association with the old subscription, or its topic + * unless the same topic is specified. (subscriptions.delete) * - * @param string $subscription The subscription to delete. + * @param string $subscription * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** * Gets the configuration details of a subscription. (subscriptions.get) * - * @param string $subscription The name of the subscription to get. + * @param string $subscription * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ @@ -266,90 +346,78 @@ public function get($subscription, $optParams = array()) } /** - * Lists matching subscriptions. (subscriptions.listSubscriptions) + * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) * + * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last - * ListSubscriptionsResponse for continuation. - * @opt_param int maxResults Maximum number of subscriptions to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken + * @opt_param int pageSize * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listSubscriptions($optParams = array()) + public function listProjectsSubscriptions($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the Ack deadline for a message received from a pull request. - * (subscriptions.modifyAckDeadline) + * Modifies the ack deadline for a specific message. This method is useful to + * indicate that more time is needed to process a message by the subscriber, or + * to make the message available for redelivery if the processing was + * interrupted. (subscriptions.modifyAckDeadline) * + * @param string $subscription * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params)); + return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); } /** - * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an endpoint by clearing the PushConfig - * field in the request. Messages will be accumulated for delivery even if no - * push configuration is defined or while the configuration is modified. + * Modifies the PushConfig for a specified subscription. This may be used to + * change a push subscription to a pull one (signified by an empty PushConfig) + * or vice versa, or change the endpoint URL and other attributes of a push + * subscription. Messages will accumulate for delivery continuously through the + * call regardless of changes to the PushConfig. * (subscriptions.modifyPushConfig) * + * @param string $subscription * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params)); + return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); } /** - * Pulls a single message from the server. If return_immediately is true, and no - * messages are available in the subscription, this method returns - * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no - * messages are available in a reasonable amount of time (to reduce system - * load). (subscriptions.pull) + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The server may return UNAVAILABLE if there + * are too many concurrent pull requests pending for the given subscription. + * (subscriptions.pull) * + * @param string $subscription * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } - - /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The system is free to return UNAVAILABLE - * if there are too many pull requests outstanding for the given subscription. - * (subscriptions.pullBatch) - * - * @param Google_PullBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullBatchResponse - */ - public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); - } } - /** * The "topics" collection of methods. * Typical usage is: @@ -358,45 +426,46 @@ public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $opt * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * + * @param string $name * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } /** - * Deletes the topic with the given name. All subscriptions to this topic are - * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is - * deleted, a new topic may be created with the same name. (topics.delete) + * Deletes the topic with the given name. Returns NOT_FOUND if the topic does + * not exist. After a topic is deleted, a new topic may be created with the same + * name; this is an entirely new topic with none of the old configuration or + * subscriptions. Existing subscriptions to this topic are not deleted. + * (topics.delete) * - * @param string $topic Name of the topic to delete. + * @param string $topic * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** - * Gets the configuration of a topic. Since the topic only has the name - * attribute, this method is only useful to check the existence of a topic. If - * other attributes are added in the future, they will be returned here. - * (topics.get) + * Gets the configuration of a topic. (topics.get) * - * @param string $topic The name of the topic to get. + * @param string $topic * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ @@ -408,50 +477,66 @@ public function get($topic, $optParams = array()) } /** - * Lists matching topics. (topics.listTopics) + * Lists matching topics. (topics.listProjectsTopics) * + * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last ListTopicsResponse - * for continuation. - * @opt_param int maxResults Maximum number of topics to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken + * @opt_param int pageSize * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listTopics($optParams = array()) + public function listProjectsTopics($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. - * (topics.publish) + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. (topics.publish) * + * @param string $topic * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PublishResponse */ - public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publish', array($params)); + return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $subscriptions = $pubsubService->subscriptions; + * + */ +class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource +{ /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. (topics.publishBatch) + * Lists the name of the subscriptions for this topic. + * (subscriptions.listProjectsTopicsSubscriptions) * - * @param Google_PublishBatchRequest $postBody + * @param string $topic * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishBatchResponse + * + * @opt_param string pageToken + * @opt_param int pageSize + * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse */ - public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) + public function listProjectsTopicsSubscriptions($topic, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); } } @@ -460,74 +545,61 @@ public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackId'; + protected $collection_key = 'ackIds'; protected $internal_gapi_mappings = array( ); - public $ackId; - public $subscription; + public $ackIds; - public function setAckId($ackId) + public function setAckIds($ackIds) { - $this->ackId = $ackId; + $this->ackIds = $ackIds; } - public function getAckId() + public function getAckIds() { - return $this->ackId; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; + return $this->ackIds; } } -class Google_Service_Pubsub_Label extends Google_Model +class Google_Service_Pubsub_Empty extends Google_Model +{ +} + +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); - public $key; - public $numValue; - public $strValue; + public $nextPageToken; + protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionsDataType = 'array'; - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setNumValue($numValue) + public function setNextPageToken($nextPageToken) { - $this->numValue = $numValue; + $this->nextPageToken = $nextPageToken; } - public function getNumValue() + public function getNextPageToken() { - return $this->numValue; + return $this->nextPageToken; } - public function setStrValue($strValue) + public function setSubscriptions($subscriptions) { - $this->strValue = $strValue; + $this->subscriptions = $subscriptions; } - public function getStrValue() + public function getSubscriptions() { - return $this->strValue; + return $this->subscriptions; } } -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscription'; + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionDataType = 'array'; + public $subscriptions; public function setNextPageToken($nextPageToken) @@ -538,24 +610,24 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscription($subscription) + public function setSubscriptions($subscriptions) { - $this->subscription = $subscription; + $this->subscriptions = $subscriptions; } - public function getSubscription() + public function getSubscriptions() { - return $this->subscription; + return $this->subscriptions; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topic'; + protected $collection_key = 'topics'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicType = 'Google_Service_Pubsub_Topic'; - protected $topicDataType = 'array'; + protected $topicsType = 'Google_Service_Pubsub_Topic'; + protected $topicsDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -566,13 +638,13 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopic($topic) + public function setTopics($topics) { - $this->topic = $topic; + $this->topics = $topics; } - public function getTopic() + public function getTopics() { - return $this->topic; + return $this->topics; } } @@ -582,7 +654,6 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model ); public $ackDeadlineSeconds; public $ackId; - public $subscription; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -601,14 +672,6 @@ public function getAckId() { return $this->ackId; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -617,7 +680,6 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; - public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -628,24 +690,15 @@ public function getPushConfig() { return $this->pushConfig; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection +class Google_Service_Pubsub_PublishRequest extends Google_Collection { protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; protected $messagesDataType = 'array'; - public $topic; public function setMessages($messages) @@ -656,17 +709,9 @@ public function getMessages() { return $this->messages; } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } } -class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection +class Google_Service_Pubsub_PublishResponse extends Google_Collection { protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( @@ -684,89 +729,23 @@ public function getMessageIds() } } -class Google_Service_Pubsub_PublishRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessage extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $topic; - - - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } -} - -class Google_Service_Pubsub_PubsubEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $subscription; - public $truncated; + public $attributes; + public $data; + public $messageId; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() + public function setAttributes($attributes) { - return $this->deleted; + $this->attributes = $attributes; } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + public function getAttributes() { - $this->message = $message; + return $this->attributes; } - public function getMessage() - { - return $this->message; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTruncated($truncated) - { - $this->truncated = $truncated; - } - public function getTruncated() - { - return $this->truncated; - } -} - -class Google_Service_Pubsub_PubsubMessage extends Google_Collection -{ - protected $collection_key = 'label'; - protected $internal_gapi_mappings = array( - ); - public $data; - protected $labelType = 'Google_Service_Pubsub_Label'; - protected $labelDataType = 'array'; - public $messageId; - - public function setData($data) { $this->data = $data; @@ -775,14 +754,6 @@ public function getData() { return $this->data; } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } public function setMessageId($messageId) { $this->messageId = $messageId; @@ -793,22 +764,25 @@ public function getMessageId() } } -class Google_Service_Pubsub_PullBatchRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $maxEvents; + public $maxMessages; public $returnImmediately; - public $subscription; - public function setMaxEvents($maxEvents) + public function setMaxMessages($maxMessages) { - $this->maxEvents = $maxEvents; + $this->maxMessages = $maxMessages; } - public function getMaxEvents() + public function getMaxMessages() { - return $this->maxEvents; + return $this->maxMessages; } public function setReturnImmediately($returnImmediately) { @@ -818,68 +792,64 @@ public function getReturnImmediately() { return $this->returnImmediately; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PullBatchResponse extends Google_Collection +class Google_Service_Pubsub_PullResponse extends Google_Collection { - protected $collection_key = 'pullResponses'; + protected $collection_key = 'receivedMessages'; protected $internal_gapi_mappings = array( ); - protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; - protected $pullResponsesDataType = 'array'; + protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; + protected $receivedMessagesDataType = 'array'; - public function setPullResponses($pullResponses) + public function setReceivedMessages($receivedMessages) { - $this->pullResponses = $pullResponses; + $this->receivedMessages = $receivedMessages; } - public function getPullResponses() + public function getReceivedMessages() { - return $this->pullResponses; + return $this->receivedMessages; } } -class Google_Service_Pubsub_PullRequest extends Google_Model +class Google_Service_Pubsub_PushConfig extends Google_Model { protected $internal_gapi_mappings = array( ); - public $returnImmediately; - public $subscription; + public $attributes; + public $pushEndpoint; - public function setReturnImmediately($returnImmediately) + public function setAttributes($attributes) { - $this->returnImmediately = $returnImmediately; + $this->attributes = $attributes; } - public function getReturnImmediately() + public function getAttributes() { - return $this->returnImmediately; + return $this->attributes; } - public function setSubscription($subscription) + public function setPushEndpoint($pushEndpoint) { - $this->subscription = $subscription; + $this->pushEndpoint = $pushEndpoint; } - public function getSubscription() + public function getPushEndpoint() { - return $this->subscription; + return $this->pushEndpoint; } } -class Google_Service_Pubsub_PullResponse extends Google_Model +class Google_Service_Pubsub_PushConfigAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_ReceivedMessage extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; - protected $pubsubEventDataType = ''; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; public function setAckId($ackId) @@ -890,30 +860,13 @@ public function getAckId() { return $this->ackId; } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) - { - $this->pubsubEvent = $pubsubEvent; - } - public function getPubsubEvent() - { - return $this->pubsubEvent; - } -} - -class Google_Service_Pubsub_PushConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $pushEndpoint; - - - public function setPushEndpoint($pushEndpoint) + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { - $this->pushEndpoint = $pushEndpoint; + $this->message = $message; } - public function getPushEndpoint() + public function getMessage() { - return $this->pushEndpoint; + return $this->message; } } From c9235e8e7d28d7f0b45928fbf6251148f288f2a8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Apr 2015 05:26:13 -0700 Subject: [PATCH 0714/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 548 ++++++++++++++++++++++++++++++++- 1 file changed, 543 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index e4c22de08..22dae0915 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -50,6 +50,7 @@ class Google_Service_YouTube extends Google_Service "https://www.googleapis.com/auth/youtubepartner-channel-audit"; public $activities; + public $captions; public $channelBanners; public $channelSections; public $channels; @@ -142,6 +143,131 @@ public function __construct(Google_Client $client) ) ) ); + $this->captions = new Google_Service_YouTube_Captions_Resource( + $this, + $this->serviceName, + 'captions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'captions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'download' => array( + 'path' => 'captions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tfmt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tlang' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'captions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'captions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'captions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( $this, $this->serviceName, @@ -216,13 +342,17 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'mine' => array( + 'id' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ),'update' => array( @@ -290,6 +420,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'categoryId' => array( 'location' => 'query', 'type' => 'string', @@ -832,6 +966,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'id' => array( 'location' => 'query', 'type' => 'string', @@ -878,6 +1016,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'forDeveloper' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'videoSyndicated' => array( 'location' => 'query', 'type' => 'string', @@ -1420,6 +1562,159 @@ public function listActivities($part, $optParams = array()) } } +/** + * The "captions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $captions = $youtubeService->captions; + * + */ +class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource +{ + + /** + * Deletes a specified caption track. (captions.delete) + * + * @param string $id The id parameter identifies the caption track that is being + * deleted. The value is a caption track ID as identified by the id property in + * a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Downloads a caption track. The caption track is returned in its original + * format unless the request specifies a value for the tfmt parameter and in its + * original language unless the request specifies a value for the tlang + * parameter. (captions.download) + * + * @param string $id The id parameter identifies the caption track that is being + * retrieved. The value is a caption track ID as identified by the id property + * in a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + */ + public function download($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('download', array($params)); + } + + /** + * Uploads a caption track. (captions.insert) + * + * @param string $part The part parameter specifies the caption resource parts + * that the API response will include. Set the parameter value to snippet. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param bool sync The sync parameter indicates whether YouTube should + * automatically synchronize the caption file with the audio track of the video. + * If you set the value to true, YouTube will disregard any time codes that are + * in the uploaded caption file and generate new time codes for the captions. + * + * You should set the sync parameter to true if you are uploading a transcript, + * which has no time codes, or if you suspect the time codes in your file are + * incorrect and want YouTube to try to fix them. + * @return Google_Service_YouTube_Caption + */ + public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); + } + + /** + * Returns a list of caption tracks that are associated with a specified video. + * Note that the API response does not contain the actual captions and that the + * captions.download method provides the ability to retrieve a caption track. + * (captions.listCaptions) + * + * @param string $part The part parameter specifies the caption resource parts + * that the API response will include. + * @param string $videoId The videoId parameter specifies the YouTube video ID + * of the video for which the API should return caption tracks. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string id The id parameter specifies a comma-separated list of IDs + * that identify the caption resources that should be retrieved. Each ID must + * identify a caption track associated with the specified video. + * @return Google_Service_YouTube_CaptionListResponse + */ + public function listCaptions($part, $videoId, $optParams = array()) + { + $params = array('part' => $part, 'videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); + } + + /** + * Updates a caption track. When updating a caption track, you can change the + * track's draft status, upload a new caption file for the track, or both. + * (captions.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. Set the property value to + * snippet if you are updating the track's draft status. Otherwise, set the + * property value to id. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param bool sync Note: The API server only processes the parameter value + * if the request contains an updated caption file. + * + * The sync parameter indicates whether YouTube should automatically synchronize + * the caption file with the audio track of the video. If you set the value to + * true, YouTube will automatically synchronize the caption track with the audio + * track. + * @return Google_Service_YouTube_Caption + */ + public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Caption"); + } +} + /** * The "channelBanners" collection of methods. * Typical usage is: @@ -1589,12 +1884,19 @@ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $ * owner. * @opt_param string channelId The channelId parameter specifies a YouTube * channel ID. The API will only return that channel's channelSections. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. + * @opt_param string hl The hl parameter indicates that the snippet.localized + * property values in the returned channelSection resources should be in the + * specified language if localized values for that language are available. For + * example, if the API request specifies hl=de, the snippet.localized properties + * in the API response will contain German titles if German titles are + * available. Channel owners can provide localized channel section titles using + * either the channelSections.insert or channelSections.update method. * @opt_param string id The id parameter specifies a comma-separated list of the * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In * a channelSection resource, the id property specifies the YouTube * channelSection ID. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. * @return Google_Service_YouTube_ChannelSectionListResponse */ public function listChannelSections($part, $optParams = array()) @@ -1693,6 +1995,9 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * retrieved. * @opt_param bool mySubscribers Set this parameter's value to true to retrieve * a list of channels that subscribed to the authenticated user's channel. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the brandingSettings + * part. * @opt_param string categoryId The categoryId parameter specifies a YouTube * guide category, thereby requesting YouTube channels associated with that * category. @@ -2804,6 +3109,8 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the snippet part. * @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 @@ -2894,6 +3201,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * broadcast events. * @opt_param string channelId The channelId parameter indicates that the API * response should only contain resources created by the channel + * @opt_param bool forDeveloper The forDeveloper parameter restricts the search + * to only retrieve videos uploaded via the developer's application or website. + * The API server uses the request's authorization credentials to identify the + * developer. Therefore, a developer can restrict results to videos uploaded + * through the developer's own app or website but not to videos uploaded through + * other apps or sites. * @opt_param string videoSyndicated The videoSyndicated parameter lets you to * restrict a search to only videos that can be played outside youtube.com. * @opt_param string channelType The channelType parameter lets you restrict a @@ -4281,6 +4594,231 @@ public function getType() } } +class Google_Service_YouTube_Caption extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CaptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Caption'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CaptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $audioTrackType; + public $failureReason; + public $isAutoSynced; + public $isCC; + public $isDraft; + public $isEasyReader; + public $isLarge; + public $language; + public $lastUpdated; + public $name; + public $status; + public $trackKind; + public $videoId; + + + public function setAudioTrackType($audioTrackType) + { + $this->audioTrackType = $audioTrackType; + } + public function getAudioTrackType() + { + return $this->audioTrackType; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setIsAutoSynced($isAutoSynced) + { + $this->isAutoSynced = $isAutoSynced; + } + public function getIsAutoSynced() + { + return $this->isAutoSynced; + } + public function setIsCC($isCC) + { + $this->isCC = $isCC; + } + public function getIsCC() + { + return $this->isCC; + } + public function setIsDraft($isDraft) + { + $this->isDraft = $isDraft; + } + public function getIsDraft() + { + return $this->isDraft; + } + public function setIsEasyReader($isEasyReader) + { + $this->isEasyReader = $isEasyReader; + } + public function getIsEasyReader() + { + return $this->isEasyReader; + } + public function setIsLarge($isLarge) + { + $this->isLarge = $isLarge; + } + public function getIsLarge() + { + return $this->isLarge; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setLastUpdated($lastUpdated) + { + $this->lastUpdated = $lastUpdated; + } + public function getLastUpdated() + { + return $this->lastUpdated; + } + 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 setTrackKind($trackKind) + { + $this->trackKind = $trackKind; + } + public function getTrackKind() + { + return $this->trackKind; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + class Google_Service_YouTube_CdnSettings extends Google_Model { protected $internal_gapi_mappings = array( From d03954e7c6540f5abc5e53183eed20024c7adf6e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Apr 2015 05:26:14 -0700 Subject: [PATCH 0715/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index b51680bcb..7c743ee70 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -393,8 +393,8 @@ public function delete($project, $zone, $instanceGroupManager, $optParams = arra } /** - * Deletes the specified instances. The instances are removed from the instance - * group and any target pools of which they are a member, then deleted. The + * Deletes the specified instances. The instances are deleted, then removed from + * the instance group and any target pools of which they were a member. The * targetSize of the instance group manager is reduced by the number of * instances deleted. (instanceGroupManagers.deleteInstances) * From 2003a4bf704216742bfbe0709c7300fbbda6320b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Apr 2015 05:26:14 -0700 Subject: [PATCH 0716/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index b7f721bf7..3c5ea499c 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -36,10 +36,10 @@ class Google_Service_Gmail extends Google_Service /** Manage drafts and send emails. */ const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; - /** Gmail. */ + /** Insert mail into your mailbox. */ const GMAIL_INSERT = "https://www.googleapis.com/auth/gmail.insert"; - /** Gmail. */ + /** Manage mailbox labels. */ const GMAIL_LABELS = "https://www.googleapis.com/auth/gmail.labels"; /** View and modify but not delete your email. */ From 306bf45f9961f8e8bb8799d91ea54c0080ecc99f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 3 Apr 2015 05:26:14 -0700 Subject: [PATCH 0717/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 0cb75b11d..80d2056ce 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -353,7 +353,7 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * be (youngest - 4 hours, youngest]. * @opt_param string aggregator The aggregation function that will reduce the * data points in each window to a single point. This parameter is only valid - * for non-cumulative metric types. + * for non-cumulative metrics with a value type of INT64 or DOUBLE. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - @@ -443,7 +443,7 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * be (youngest - 4 hours, youngest]. * @opt_param string aggregator The aggregation function that will reduce the * data points in each window to a single point. This parameter is only valid - * for non-cumulative metric types. + * for non-cumulative metrics with a value type of INT64 or DOUBLE. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - From aaff0f4dde6cee26b8edc994aef34f8e1e34f15a Mon Sep 17 00:00:00 2001 From: John Bacon Date: Fri, 3 Apr 2015 14:46:27 -0400 Subject: [PATCH 0718/1274] Fix typo in comment "tigher" becomes "higher" --- src/Google/IO/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 6dcec2646..7eb681e9f 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -148,7 +148,7 @@ public function setTimeout($timeout) { // Since this timeout is really for putting a bound on the time // we'll set them both to the same. If you need to specify a longer - // CURLOPT_TIMEOUT, or a tigher CONNECTTIMEOUT, the best thing to + // CURLOPT_TIMEOUT, or a higher CONNECTTIMEOUT, the best thing to // do is use the setOptions method for the values individually. $this->options[CURLOPT_CONNECTTIMEOUT] = $timeout; $this->options[CURLOPT_TIMEOUT] = $timeout; From d7ffd617090d0eb3fc3947402637a20b23372a53 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 7 Apr 2015 05:29:32 -0700 Subject: [PATCH 0719/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 94 ++++++++++++++--------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 7658c2d45..b19497484 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -4055,10 +4055,10 @@ public function get($profileId, $id, $optParams = array()) * @opt_param string searchString Allows searching for objects by name, ID or * email. Wildcards (*) are allowed. For example, "user profile*2015" will * return objects with names like "user profile June 2015", "user profile April - * 2015" or simply "user profile 2015". Most of the searches also add wildcards + * 2015", or simply "user profile 2015". Most of the searches also add wildcards * implicitly at the start and the end of the search string. For example, a * search string of "user profile" will match objects with name "my user - * profile", "user profile 2015" or simply "user profile". + * profile", "user profile 2015", or simply "user profile". * @opt_param string subaccountId Select only user profiles with the specified * subaccount ID. * @opt_param string sortField Field by which to sort the list. @@ -4146,10 +4146,10 @@ public function get($profileId, $id, $optParams = array()) * * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "account*2015" will return objects - * with names like "account June 2015", "account April 2015" or simply "account + * with names like "account June 2015", "account April 2015", or simply "account * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of "account" will - * match objects with name "my account", "account 2015" or simply "account". + * match objects with name "my account", "account 2015", or simply "account". * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only accounts with these IDs. * @opt_param int maxResults Maximum number of results to return. @@ -4278,10 +4278,10 @@ public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $op * @opt_param string advertiserId Select only ads with this advertiser ID. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "ad*2015" will return objects with - * names like "ad June 2015", "ad April 2015" or simply "ad 2015". Most of the + * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the * searches also add wildcards implicitly at the start and the end of the search * string. For example, a search string of "ad" will match objects with name "my - * ad", "ad 2015" or simply "ad". + * ad", "ad 2015", or simply "ad". * @opt_param string sortField Field by which to sort the list. * @opt_param string audienceSegmentIds Select only ads with these audience * segment IDs. @@ -4397,11 +4397,11 @@ public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $ * * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser group June 2015", "advertiser group April 2015" + * with names like "advertiser group June 2015", "advertiser group April 2015", * or simply "advertiser group 2015". Most of the searches also add wildcards * implicitly at the start and the end of the search string. For example, a * search string of "advertisergroup" will match objects with name "my - * advertisergroup", "advertisergroup 2015" or simply "advertisergroup". + * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only advertiser groups with these IDs. * @opt_param int maxResults Maximum number of results to return. @@ -4501,10 +4501,10 @@ public function insert($profileId, Google_Service_Dfareporting_Advertiser $postB * @opt_param string status Select only advertisers with the specified status. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser June 2015", "advertiser April 2015" or simply + * with names like "advertiser June 2015", "advertiser April 2015", or simply * "advertiser 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "advertiser" will match objects with name "my advertiser", "advertiser 2015" + * "advertiser" will match objects with name "my advertiser", "advertiser 2015", * or simply "advertiser". * @opt_param string subaccountId Select only advertisers with these subaccount * IDs. @@ -4696,10 +4696,10 @@ public function insert($profileId, $defaultLandingPageName, $defaultLandingPageU * to select both archived and non-archived campaigns. * @opt_param string searchString Allows searching for campaigns by name or ID. * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns - * with names like "campaign June 2015", "campaign April 2015" or simply + * with names like "campaign June 2015", "campaign April 2015", or simply * "campaign 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "campaign" will match campaigns with name "my campaign", "campaign 2015" or + * "campaign" will match campaigns with name "my campaign", "campaign 2015", or * simply "campaign". * @opt_param string subaccountId Select only campaigns that belong to this * subaccount. @@ -4949,10 +4949,10 @@ public function insert($profileId, Google_Service_Dfareporting_ContentCategory $ * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "contentcategory*2015" will return * objects with names like "contentcategory June 2015", "contentcategory April - * 2015" or simply "contentcategory 2015". Most of the searches also add + * 2015", or simply "contentcategory 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "contentcategory" will match objects with name - * "my contentcategory", "contentcategory 2015" or simply "contentcategory". + * "my contentcategory", "contentcategory 2015", or simply "contentcategory". * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only content categories with these IDs. * @opt_param int maxResults Maximum number of results to return. @@ -5260,10 +5260,10 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeField $po * @opt_param string searchString Allows searching for creative fields by name * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will * return creative fields with names like "creativefield June 2015", - * "creativefield April 2015" or simply "creativefield 2015". Most of the + * "creativefield April 2015", or simply "creativefield 2015". Most of the * searches also add wild-cards implicitly at the start and the end of the * search string. For example, a search string of "creativefield" will match - * creative fields with the name "my creativefield", "creativefield 2015" or + * creative fields with the name "my creativefield", "creativefield 2015", or * simply "creativefield". * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only creative fields that belong to @@ -5366,10 +5366,10 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $po * @opt_param string searchString Allows searching for creative groups by name * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will * return creative groups with names like "creativegroup June 2015", - * "creativegroup April 2015" or simply "creativegroup 2015". Most of the + * "creativegroup April 2015", or simply "creativegroup 2015". Most of the * searches also add wild-cards implicitly at the start and the end of the * search string. For example, a search string of "creativegroup" will match - * creative groups with the name "my creativegroup", "creativegroup 2015" or + * creative groups with the name "my creativegroup", "creativegroup 2015", or * simply "creativegroup". * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only creative groups that belong to @@ -5475,10 +5475,10 @@ public function insert($profileId, Google_Service_Dfareporting_Creative $postBod * select archived and unarchived creatives. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "creative*2015" will return objects - * with names like "creative June 2015", "creative April 2015" or simply + * with names like "creative June 2015", "creative April 2015", or simply * "creative 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "creative" will match objects with name "my creative", "creative 2015" or + * "creative" will match objects with name "my creative", "creative 2015", or * simply "creative". * @opt_param string campaignId Select only creatives with this campaign ID. * @opt_param string sortField Field by which to sort the list. @@ -5609,11 +5609,11 @@ public function get($profileId, $id, $optParams = array()) * @opt_param string searchString Allows searching for objects by name, ID or * email. Wildcards (*) are allowed. For example, "directory site contact*2015" * will return objects with names like "directory site contact June 2015", - * "directory site contact April 2015" or simply "directory site contact 2015". + * "directory site contact April 2015", or simply "directory site contact 2015". * Most of the searches also add wildcards implicitly at the start and the end * of the search string. For example, a search string of "directory site * contact" will match objects with name "my directory site contact", "directory - * site contact 2015" or simply "directory site contact". + * site contact 2015", or simply "directory site contact". * @opt_param string directorySiteIds Select only directory site contacts with * these directory site IDs. This is a required field. * @opt_param string sortField Field by which to sort the list. @@ -5671,10 +5671,10 @@ public function get($profileId, $id, $optParams = array()) * @opt_param string searchString Allows searching for objects by name, ID or * URL. Wildcards (*) are allowed. For example, "directory site*2015" will * return objects with names like "directory site June 2015", "directory site - * April 2015" or simply "directory site 2015". Most of the searches also add + * April 2015", or simply "directory site 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply "directory site". + * directory site", "directory site 2015" or simply, "directory site". * @opt_param string countryId Select only directory sites with this country ID. * @opt_param string sortField Field by which to sort the list. * @opt_param bool acceptsInStreamVideoPlacements This search filter is no @@ -5763,10 +5763,10 @@ public function insert($profileId, Google_Service_Dfareporting_EventTag $postBod * * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects - * with names like "eventtag June 2015", "eventtag April 2015" or simply + * with names like "eventtag June 2015", "eventtag April 2015", or simply * "eventtag 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "eventtag" will match objects with name "my eventtag", "eventtag 2015" or + * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or * simply "eventtag". * @opt_param string campaignId Select only event tags that belong to this * campaign. @@ -5966,10 +5966,10 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return * objects with names like "floodlightactivity June 2015", "floodlightactivity - * April 2015" or simply "floodlightactivity 2015". Most of the searches also + * April 2015", or simply "floodlightactivity 2015". Most of the searches also * add wildcards implicitly at the start and the end of the search string. For * example, a search string of "floodlightactivity" will match objects with name - * "my floodlightactivity activity", "floodlightactivity 2015" or simply + * "my floodlightactivity activity", "floodlightactivity 2015", or simply * "floodlightactivity". * @opt_param string sortField Field by which to sort the list. * @opt_param string floodlightConfigurationId Select only floodlight activities @@ -6100,22 +6100,22 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will * return objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015" or simply "floodlightactivitygroup + * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015" or simply + * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply * "floodlightactivitygroup". * @opt_param string sortField Field by which to sort the list. * @opt_param string floodlightConfigurationId Select only floodlight activity * groups with the specified floodlight configuration ID. Must specify either - * ids, advertiserId, or floodlightConfigurationId for a non-empty result. + * advertiserId, or floodlightConfigurationId for a non-empty result. * @opt_param string ids Select only floodlight activity groups with the - * specified IDs. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. + * specified IDs. Must specify either advertiserId or floodlightConfigurationId + * for a non-empty result. * @opt_param int maxResults Maximum number of results to return. * @opt_param string advertiserId Select only floodlight activity groups with - * the specified advertiser ID. Must specify either ids, advertiserId, or + * the specified advertiser ID. Must specify either advertiserId or * floodlightConfigurationId for a non-empty result. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. @@ -6513,10 +6513,10 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $p * @opt_param string searchString Allows searching for placement groups by name * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return * placement groups with names like "placement group June 2015", "placement - * group May 2015" or simply "placements 2015". Most of the searches also add + * group May 2015", or simply "placements 2015". Most of the searches also add * wildcards implicitly at the start and the end of the search string. For * example, a search string of "placementgroup" will match placement groups with - * name "my placementgroup", "placementgroup 2015" or simply "placementgroup". + * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". * @opt_param string contentCategoryIds Select only placement groups that are * associated with these content categories. * @opt_param string directorySiteIds Select only placement groups that are @@ -6648,10 +6648,10 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return * objects with names like "placementstrategy June 2015", "placementstrategy - * April 2015" or simply "placementstrategy 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For + * April 2015", or simply "placementstrategy 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For * example, a search string of "placementstrategy" will match objects with name - * "my placementstrategy", "placementstrategy 2015" or simply + * "my placementstrategy", "placementstrategy 2015", or simply * "placementstrategy". * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only placement strategies with these IDs. @@ -6775,11 +6775,11 @@ public function insert($profileId, Google_Service_Dfareporting_Placement $postBo * field to select both archived and non-archived placements. * @opt_param string searchString Allows searching for placements by name or ID. * Wildcards (*) are allowed. For example, "placement*2015" will return - * placements with names like "placement June 2015", "placement May 2015" or + * placements with names like "placement June 2015", "placement May 2015", or * simply "placements 2015". Most of the searches also add wildcards implicitly * at the start and the end of the search string. For example, a search string * of "placement" will match placements with name "my placement", "placement - * 2015" or simply "placement". + * 2015", or simply "placement". * @opt_param string contentCategoryIds Select only placements that are * associated with these content categories. * @opt_param string directorySiteIds Select only placements that are associated @@ -7186,10 +7186,10 @@ public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $ * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string searchString Allows searching for objects by name, ID or * keyName. Wildcards (*) are allowed. For example, "site*2015" will return - * objects with names like "site June 2015", "site April 2015" or simply "site + * objects with names like "site June 2015", "site April 2015", or simply "site * 2015". Most of the searches also add wildcards implicitly at the start and * the end of the search string. For example, a search string of "site" will - * match objects with name "my site", "site 2015" or simply "site". + * match objects with name "my site", "site 2015", or simply "site". * @opt_param string subaccountId Select only sites with this subaccount ID. * @opt_param string directorySiteIds Select only sites with these directory * site IDs. @@ -7358,10 +7358,10 @@ public function insert($profileId, Google_Service_Dfareporting_Subaccount $postB * * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects - * with names like "subaccount June 2015", "subaccount April 2015" or simply + * with names like "subaccount June 2015", "subaccount April 2015", or simply * "subaccount 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "subaccount" will match objects with name "my subaccount", "subaccount 2015" + * "subaccount" will match objects with name "my subaccount", "subaccount 2015", * or simply "subaccount". * @opt_param string sortField Field by which to sort the list. * @opt_param string ids Select only subaccounts with these IDs. @@ -7599,10 +7599,10 @@ public function insert($profileId, Google_Service_Dfareporting_UserRole $postBod * * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "userrole*2015" will return objects - * with names like "userrole June 2015", "userrole April 2015" or simply + * with names like "userrole June 2015", "userrole April 2015", or simply * "userrole 2015". Most of the searches also add wildcards implicitly at the * start and the end of the search string. For example, a search string of - * "userrole" will match objects with name "my userrole", "userrole 2015" or + * "userrole" will match objects with name "my userrole", "userrole 2015", or * simply "userrole". * @opt_param string subaccountId Select only user roles that belong to this * subaccount. From 6908e87e5e56a58281beafed3af0b14c595df7cf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 7 Apr 2015 05:29:32 -0700 Subject: [PATCH 0720/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 2c794bb46..a24d3ecd9 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2838,25 +2838,6 @@ public function getUser() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( @@ -2892,6 +2873,25 @@ public function getMessage() } } +class Google_Service_SQLAdmin_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { protected $collection_key = 'items'; From 490a16fa831b42c128dc197333f62954d61da971 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 8 Apr 2015 05:30:44 -0700 Subject: [PATCH 0721/1274] Updated Dfareporting.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dfareporting.php | 4733 +++++++++++++++++++++------ 1 file changed, 3814 insertions(+), 919 deletions(-) diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index b19497484..11e14e2ca 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dfareporting (v2.0). + * Service definition for Dfareporting (v2.1). * *

* Manage your DoubleClick Campaign Manager ad campaigns and reports.

@@ -66,23 +66,30 @@ class Google_Service_Dfareporting extends Google_Service public $floodlightActivities; public $floodlightActivityGroups; public $floodlightConfigurations; + public $inventoryItems; public $landingPages; public $metros; public $mobileCarriers; public $operatingSystemVersions; public $operatingSystems; + public $orderDocuments; + public $orders; public $placementGroups; public $placementStrategies; public $placements; public $platformTypes; public $postalCodes; + public $projects; public $regions; + public $remarketingListShares; + public $remarketingLists; public $reports; public $reports_compatibleFields; public $reports_files; public $sites; public $sizes; public $subaccounts; + public $targetableRemarketingLists; public $userProfiles; public $userRolePermissionGroups; public $userRolePermissions; @@ -97,8 +104,8 @@ class Google_Service_Dfareporting extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dfareporting/v2.0/'; - $this->version = 'v2.0'; + $this->servicePath = 'dfareporting/v2.1/'; + $this->version = 'v2.1'; $this->serviceName = 'dfareporting'; $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( @@ -217,6 +224,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'userprofiles/{profileId}/accountUserProfiles', 'httpMethod' => 'GET', @@ -1120,7 +1137,22 @@ public function __construct(Google_Client $client) 'connectionTypes', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/connectionTypes', 'httpMethod' => 'GET', 'parameters' => array( @@ -1917,6 +1949,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'userprofiles/{profileId}/directorySites', 'httpMethod' => 'GET', @@ -2506,6 +2548,86 @@ public function __construct(Google_Client $client) ) ) ); + $this->inventoryItems = new Google_Service_Dfareporting_InventoryItems_Resource( + $this, + $this->serviceName, + 'inventoryItems', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'inPlan' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( $this, $this->serviceName, @@ -2647,7 +2769,22 @@ public function __construct(Google_Client $client) 'mobileCarriers', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/mobileCarriers', 'httpMethod' => 'GET', 'parameters' => array( @@ -2667,7 +2804,22 @@ public function __construct(Google_Client $client) 'operatingSystemVersions', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/operatingSystemVersions', 'httpMethod' => 'GET', 'parameters' => array( @@ -2687,7 +2839,22 @@ public function __construct(Google_Client $client) 'operatingSystems', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/operatingSystems', 'httpMethod' => 'GET', 'parameters' => array( @@ -2701,14 +2868,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( + $this->orderDocuments = new Google_Service_Dfareporting_OrderDocuments_Resource( $this, $this->serviceName, - 'placementGroups', + 'orderDocuments', array( 'methods' => array( 'get' => array( - 'path' => 'userprofiles/{profileId}/placementGroups/{id}', + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -2716,24 +2883,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'id' => array( + 'projectId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -2741,37 +2903,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'placementStrategyIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentCategoryIds' => array( - 'location' => 'query', + 'projectId' => array( + 'location' => 'path', 'type' => 'string', - 'repeated' => true, + 'required' => true, ), - 'directorySiteIds' => array( + 'orderId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'ids' => array( 'location' => 'query', @@ -2786,82 +2930,56 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementGroupType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pricingTypes' => array( + 'siteId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'siteIds' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'campaignIds' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, ), - 'id' => array( + 'approved' => array( 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, + 'type' => 'boolean', ), ), ), ) ) ); - $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( + $this->orders = new Google_Service_Dfareporting_Orders_Resource( $this, $this->serviceName, - 'placementStrategies', + 'orders', array( 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', - 'httpMethod' => 'DELETE', + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', + 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders', 'httpMethod' => 'GET', 'parameters' => array( 'profileId' => array( @@ -2869,19 +2987,227 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'id' => array( + 'projectId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( + $this, + $this->serviceName, + 'placementGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/placementGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( + $this, + $this->serviceName, + 'placementStrategies', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', 'required' => true, ), ), @@ -3132,7 +3458,22 @@ public function __construct(Google_Client $client) 'platformTypes', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/platformTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/platformTypes', 'httpMethod' => 'GET', 'parameters' => array( @@ -3152,7 +3493,22 @@ public function __construct(Google_Client $client) 'postalCodes', array( 'methods' => array( - 'list' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/postalCodes/{code}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'code' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => 'userprofiles/{profileId}/postalCodes', 'httpMethod' => 'GET', 'parameters' => array( @@ -3166,15 +3522,233 @@ public function __construct(Google_Client $client) ) ) ); - $this->regions = new Google_Service_Dfareporting_Regions_Resource( + $this->projects = new Google_Service_Dfareporting_Projects_Resource( $this, $this->serviceName, - 'regions', + 'projects', array( 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/regions', + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{id}', 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Dfareporting_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingListShares = new Google_Service_Dfareporting_RemarketingListShares_Resource( + $this, + $this->serviceName, + 'remarketingListShares', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingLists = new Google_Service_Dfareporting_RemarketingLists_Resource( + $this, + $this->serviceName, + 'remarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PUT', 'parameters' => array( 'profileId' => array( 'location' => 'path', @@ -3686,6 +4260,70 @@ public function __construct(Google_Client $client) ) ) ); + $this->targetableRemarketingLists = new Google_Service_Dfareporting_TargetableRemarketingLists_Resource( + $this, + $this->serviceName, + 'targetableRemarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( $this, $this->serviceName, @@ -4045,6 +4683,21 @@ public function get($profileId, $id, $optParams = array()) return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); } + /** + * Inserts a new account user profile. (accountUserProfiles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + /** * Retrieves a list of account user profiles, possibly filtered. * (accountUserProfiles.listAccountUserProfiles) @@ -4869,6 +5522,21 @@ public function listCities($profileId, $optParams = array()) class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource { + /** + * Gets one connection type by ID. (connectionTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Connection type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType"); + } + /** * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) * @@ -5658,6 +6326,21 @@ public function get($profileId, $id, $optParams = array()) return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); } + /** + * Inserts a new directory site. (directorySites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_DirectorySite $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + /** * Retrieves a list of directory sites, possibly filtered. * (directorySites.listDirectorySites) @@ -6243,6 +6926,62 @@ public function update($profileId, Google_Service_Dfareporting_FloodlightConfigu } } +/** + * The "inventoryItems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $inventoryItems = $dfareportingService->inventoryItems; + * + */ +class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource +{ + + /** + * Gets one inventory item by ID. (inventoryItems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Inventory item ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_InventoryItem + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem"); + } + + /** + * Retrieves a list of inventory items, possibly filtered. + * (inventoryItems.listInventoryItems) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only inventory items that belong to + * specified orders. + * @opt_param string ids Select only inventory items with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only inventory items that are associated with + * these sites. + * @opt_param bool inPlan Select only inventory items that are in plan. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_InventoryItemsListResponse + */ + public function listInventoryItems($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse"); + } +} + /** * The "landingPages" collection of methods. * Typical usage is: @@ -6389,6 +7128,21 @@ public function listMetros($profileId, $optParams = array()) class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource { + /** + * Gets one mobile carrier by ID. (mobileCarriers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Mobile carrier ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarrier + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier"); + } + /** * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) * @@ -6415,6 +7169,21 @@ public function listMobileCarriers($profileId, $optParams = array()) class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource { + /** + * Gets one operating system version by ID. (operatingSystemVersions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Operating system version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersion + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion"); + } + /** * Retrieves a list of operating system versions. * (operatingSystemVersions.listOperatingSystemVersions) @@ -6442,6 +7211,21 @@ public function listOperatingSystemVersions($profileId, $optParams = array()) class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource { + /** + * Gets one operating system by DART ID. (operatingSystems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Operating system DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystem + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem"); + } + /** * Retrieves a list of operating systems. * (operatingSystems.listOperatingSystems) @@ -6458,6 +7242,128 @@ public function listOperatingSystems($profileId, $optParams = array()) } } +/** + * The "orderDocuments" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orderDocuments = $dfareportingService->orderDocuments; + * + */ +class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource +{ + + /** + * Gets one order document by ID. (orderDocuments.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Order document ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OrderDocument + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument"); + } + + /** + * Retrieves a list of order documents, possibly filtered. + * (orderDocuments.listOrderDocuments) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only order documents for specified orders. + * @opt_param string searchString Allows searching for order documents by name + * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will + * return order documents with names like "orderdocument June 2015", + * "orderdocument April 2015", or simply "orderdocument 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "orderdocument" will match order + * documents with name "my orderdocument", "orderdocument 2015", or simply + * "orderdocument". + * @opt_param string ids Select only order documents with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only order documents that are associated with + * these sites. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool approved Select only order documents that have been approved + * by at least one user. + * @return Google_Service_Dfareporting_OrderDocumentsListResponse + */ + public function listOrderDocuments($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse"); + } +} + +/** + * The "orders" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orders = $dfareportingService->orders; + * + */ +class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource +{ + + /** + * Gets one order by ID. (orders.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param string $id Order ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Order + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Order"); + } + + /** + * Retrieves a list of orders, possibly filtered. (orders.listOrders) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for orders by name or ID. + * Wildcards (*) are allowed. For example, "order*2015" will return orders with + * names like "order June 2015", "order April 2015", or simply "order 2015". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "order" will match + * orders with name "my order", "order 2015", or simply "order". + * @opt_param string ids Select only orders with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only orders that are associated with these + * site IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @return Google_Service_Dfareporting_OrdersListResponse + */ + public function listOrders($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse"); + } +} + /** * The "placementGroups" collection of methods. * Typical usage is: @@ -6862,6 +7768,21 @@ public function update($profileId, Google_Service_Dfareporting_Placement $postBo class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource { + /** + * Gets one platform type by ID. (platformTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Platform type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType"); + } + /** * Retrieves a list of platform types. (platformTypes.listPlatformTypes) * @@ -6888,6 +7809,21 @@ public function listPlatformTypes($profileId, $optParams = array()) class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource { + /** + * Gets one postal code by ID. (postalCodes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $code Postal code ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCode + */ + public function get($profileId, $code, $optParams = array()) + { + $params = array('profileId' => $profileId, 'code' => $code); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode"); + } + /** * Retrieves a list of postal codes. (postalCodes.listPostalCodes) * @@ -6903,6 +7839,62 @@ public function listPostalCodes($profileId, $optParams = array()) } } +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $projects = $dfareportingService->projects; + * + */ +class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource +{ + + /** + * Gets one project by ID. (projects.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Project + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Project"); + } + + /** + * Retrieves a list of projects, possibly filtered. (projects.listProjects) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for projects by name or ID. + * Wildcards (*) are allowed. For example, "project*2015" will return projects + * with names like "project June 2015", "project April 2015", or simply "project + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "project" will + * match projects with name "my project", "project 2015", or simply "project". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only projects with these advertiser + * IDs. + * @opt_param string ids Select only projects with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ProjectsListResponse + */ + public function listProjects($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse"); + } +} + /** * The "regions" collection of methods. * Typical usage is: @@ -6930,61 +7922,228 @@ public function listRegions($profileId, $optParams = array()) } /** - * The "reports" collection of methods. + * The "remarketingListShares" collection of methods. * Typical usage is: * * $dfareportingService = new Google_Service_Dfareporting(...); - * $reports = $dfareportingService->reports; + * $remarketingListShares = $dfareportingService->remarketingListShares; * */ -class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource +class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource { /** - * Deletes a report by its ID. (reports.delete) + * Gets one remarketing list share by remarketing list ID. + * (remarketingListShares.get) * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare */ - public function delete($profileId, $reportId, $optParams = array()) + public function get($profileId, $remarketingListId, $optParams = array()) { - $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare"); } /** - * Retrieves a report by its ID. (reports.get) + * Updates an existing remarketing list share. This method supports patch + * semantics. (remarketingListShares.patch) * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. + * @param Google_RemarketingListShare $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report + * @return Google_Service_Dfareporting_RemarketingListShare */ - public function get($profileId, $reportId, $optParams = array()) + public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) { - $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare"); } /** - * Creates a report. (reports.insert) + * Updates an existing remarketing list share. (remarketingListShares.update) * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingListShare $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report + * @return Google_Service_Dfareporting_RemarketingListShare */ - public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) { $params = array('profileId' => $profileId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare"); } +} - /** +/** + * The "remarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $remarketingLists = $dfareportingService->remarketingLists; + * + */ +class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (remarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Inserts a new remarketing list. (remarketingLists.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Retrieves a list of remarketing lists, possibly filtered. + * (remarketingLists.listRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only remarketing lists owned by this + * advertiser. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive remarketing lists. + * @opt_param string floodlightActivityId Select only remarketing lists that + * have this floodlight activity ID. + * @return Google_Service_Dfareporting_RemarketingListsListResponse + */ + public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse"); + } + + /** + * Updates an existing remarketing list. This method supports patch semantics. + * (remarketingLists.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Updates an existing remarketing list. (remarketingLists.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList"); + } +} + +/** + * The "reports" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a report by its ID. (reports.get) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function get($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Creates a report. (reports.insert) + * + * @param string $profileId The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + } + + /** * Retrieves list of reports. (reports.listReports) * * @param string $profileId The DFA user profile ID. @@ -7411,6 +8570,65 @@ public function update($profileId, Google_Service_Dfareporting_Subaccount $postB } } +/** + * The "targetableRemarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists; + * + */ +class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (targetableRemarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_TargetableRemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList"); + } + + /** + * Retrieves a list of targetable remarketing lists, possibly filtered. + * (targetableRemarketingLists.listTargetableRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only targetable remarketing lists + * targetable by these advertisers. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive targetable + * remarketing lists. + * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse + */ + public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse"); + } +} + /** * The "userProfiles" collection of methods. * Typical usage is: @@ -8676,6 +9894,86 @@ public function getType() } } +class Google_Service_Dfareporting_AdSlot extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comment; + public $compatibility; + public $height; + public $linkedPlacementId; + public $name; + public $paymentSourceType; + public $primary; + public $width; + + + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLinkedPlacementId($linkedPlacementId) + { + $this->linkedPlacementId = $linkedPlacementId; + } + public function getLinkedPlacementId() + { + return $this->linkedPlacementId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentSourceType($paymentSourceType) + { + $this->paymentSourceType = $paymentSourceType; + } + public function getPaymentSourceType() + { + return $this->paymentSourceType; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + class Google_Service_Dfareporting_AdsListResponse extends Google_Collection { protected $collection_key = 'ads'; @@ -8730,6 +10028,7 @@ class Google_Service_Dfareporting_Advertiser extends Google_Model protected $idDimensionValueDataType = ''; public $kind; public $name; + public $originalFloodlightConfigurationId; public $status; public $subaccountId; @@ -8822,6 +10121,14 @@ public function getName() { return $this->name; } + public function setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId) + { + $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId; + } + public function getOriginalFloodlightConfigurationId() + { + return $this->originalFloodlightConfigurationId; + } public function setStatus($status) { $this->status = $status; @@ -10075,7 +11382,6 @@ class Google_Service_Dfareporting_ContentCategory extends Google_Model protected $internal_gapi_mappings = array( ); public $accountId; - public $description; public $id; public $kind; public $name; @@ -10089,14 +11395,6 @@ public function getAccountId() { return $this->accountId; } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } public function setId($id) { $this->id = $id; @@ -10231,6 +11529,7 @@ class Google_Service_Dfareporting_Creative extends Google_Collection public $commercialId; public $companionCreatives; public $compatibility; + public $convertFlashToHtml5; protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; protected $counterCustomEventsDataType = 'array'; protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; @@ -10432,6 +11731,14 @@ public function getCompatibility() { return $this->compatibility; } + public function setConvertFlashToHtml5($convertFlashToHtml5) + { + $this->convertFlashToHtml5 = $convertFlashToHtml5; + } + public function getConvertFlashToHtml5() + { + return $this->convertFlashToHtml5; + } public function setCounterCustomEvents($counterCustomEvents) { $this->counterCustomEvents = $counterCustomEvents; @@ -12718,15 +14025,26 @@ class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model { protected $internal_gapi_mappings = array( ); + public $address; public $email; public $firstName; public $id; public $kind; public $lastName; + public $phone; public $role; + public $title; public $type; + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } public function setEmail($email) { $this->email = $email; @@ -12767,6 +14085,14 @@ public function getLastName() { return $this->lastName; } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } public function setRole($role) { $this->role = $role; @@ -12775,7 +14101,15 @@ public function getRole() { return $this->role; } - public function setType($type) + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) { $this->type = $type; } @@ -13223,6 +14557,50 @@ public function getNextPageToken() } } +class Google_Service_Dfareporting_Flight extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endDate; + public $rateOrCost; + public $startDate; + public $units; + + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRateOrCost($rateOrCost) + { + $this->rateOrCost = $rateOrCost; + } + public function getRateOrCost() + { + return $this->rateOrCost; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model { protected $internal_gapi_mappings = array( @@ -14198,6 +15576,226 @@ public function getRegions() } } +class Google_Service_Dfareporting_InventoryItem extends Google_Collection +{ + protected $collection_key = 'adSlots'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot'; + protected $adSlotsDataType = 'array'; + public $advertiserId; + public $contentCategoryId; + public $estimatedClickThroughRate; + public $estimatedConversionRate; + public $id; + public $inPlan; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $negotiationChannelId; + public $orderId; + public $placementStrategyId; + protected $pricingType = 'Google_Service_Dfareporting_Pricing'; + protected $pricingDataType = ''; + public $projectId; + public $rfpId; + public $siteId; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdSlots($adSlots) + { + $this->adSlots = $adSlots; + } + public function getAdSlots() + { + return $this->adSlots; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setEstimatedClickThroughRate($estimatedClickThroughRate) + { + $this->estimatedClickThroughRate = $estimatedClickThroughRate; + } + public function getEstimatedClickThroughRate() + { + return $this->estimatedClickThroughRate; + } + public function setEstimatedConversionRate($estimatedConversionRate) + { + $this->estimatedConversionRate = $estimatedConversionRate; + } + public function getEstimatedConversionRate() + { + return $this->estimatedConversionRate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInPlan($inPlan) + { + $this->inPlan = $inPlan; + } + public function getInPlan() + { + return $this->inPlan; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNegotiationChannelId($negotiationChannelId) + { + $this->negotiationChannelId = $negotiationChannelId; + } + public function getNegotiationChannelId() + { + return $this->negotiationChannelId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricing(Google_Service_Dfareporting_Pricing $pricing) + { + $this->pricing = $pricing; + } + public function getPricing() + { + return $this->pricing; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRfpId($rfpId) + { + $this->rfpId = $rfpId; + } + public function getRfpId() + { + return $this->rfpId; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection +{ + protected $collection_key = 'inventoryItems'; + protected $internal_gapi_mappings = array( + ); + protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem'; + protected $inventoryItemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setInventoryItems($inventoryItems) + { + $this->inventoryItems = $inventoryItems; + } + public function getInventoryItems() + { + return $this->inventoryItems; + } + 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_KeyValueTargetingExpression extends Google_Model { protected $internal_gapi_mappings = array( @@ -14313,81 +15911,217 @@ public function getTime() } } -class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model +class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection { + protected $collection_key = 'terms'; protected $internal_gapi_mappings = array( ); - public $expression; + protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm'; + protected $termsDataType = 'array'; - public function setExpression($expression) + public function setTerms($terms) { - $this->expression = $expression; + $this->terms = $terms; } - public function getExpression() + public function getTerms() { - return $this->expression; + return $this->terms; } } -class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model +class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection { + protected $collection_key = 'listPopulationClauses'; protected $internal_gapi_mappings = array( ); - public $clickDuration; - public $postImpressionActivitiesDuration; + public $floodlightActivityId; + public $floodlightActivityName; + protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause'; + protected $listPopulationClausesDataType = 'array'; - public function setClickDuration($clickDuration) + public function setFloodlightActivityId($floodlightActivityId) { - $this->clickDuration = $clickDuration; + $this->floodlightActivityId = $floodlightActivityId; } - public function getClickDuration() + public function getFloodlightActivityId() { - return $this->clickDuration; + return $this->floodlightActivityId; } - public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) + public function setFloodlightActivityName($floodlightActivityName) { - $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; + $this->floodlightActivityName = $floodlightActivityName; } - public function getPostImpressionActivitiesDuration() + public function getFloodlightActivityName() { - return $this->postImpressionActivitiesDuration; + return $this->floodlightActivityName; + } + public function setListPopulationClauses($listPopulationClauses) + { + $this->listPopulationClauses = $listPopulationClauses; + } + public function getListPopulationClauses() + { + return $this->listPopulationClauses; } } -class Google_Service_Dfareporting_Metric extends Google_Model +class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $name; + public $contains; + public $negation; + public $operator; + public $remarketingListId; + public $type; + public $value; + public $variableFriendlyName; + public $variableName; - public function setKind($kind) + public function setContains($contains) { - $this->kind = $kind; + $this->contains = $contains; } - public function getKind() + public function getContains() { - return $this->kind; + return $this->contains; } - public function setName($name) + public function setNegation($negation) { - $this->name = $name; + $this->negation = $negation; } - public function getName() + public function getNegation() { - return $this->name; + return $this->negation; } -} - -class Google_Service_Dfareporting_Metro extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } + public function setRemarketingListId($remarketingListId) + { + $this->remarketingListId = $remarketingListId; + } + public function getRemarketingListId() + { + return $this->remarketingListId; + } + 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 setVariableFriendlyName($variableFriendlyName) + { + $this->variableFriendlyName = $variableFriendlyName; + } + public function getVariableFriendlyName() + { + return $this->variableFriendlyName; + } + public function setVariableName($variableName) + { + $this->variableName = $variableName; + } + public function getVariableName() + { + return $this->variableName; + } +} + +class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickDuration; + public $postImpressionActivitiesDuration; + + + public function setClickDuration($clickDuration) + { + $this->clickDuration = $clickDuration; + } + public function getClickDuration() + { + return $this->clickDuration; + } + public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) + { + $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; + } + public function getPostImpressionActivitiesDuration() + { + return $this->postImpressionActivitiesDuration; + } +} + +class Google_Service_Dfareporting_Metric extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Dfareporting_Metro extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; public $dartId; public $dmaId; public $kind; @@ -14858,118 +16592,33 @@ public function getWeight() } } -class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'perInteractionDimensions'; - protected $internal_gapi_mappings = array( - ); - protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; - protected $customFloodlightVariablesDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $perInteractionDimensionsDataType = 'array'; - - - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } - public function setCustomFloodlightVariables($customFloodlightVariables) - { - $this->customFloodlightVariables = $customFloodlightVariables; - } - public function getCustomFloodlightVariables() - { - return $this->customFloodlightVariables; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPerInteractionDimensions($perInteractionDimensions) - { - $this->perInteractionDimensions = $perInteractionDimensions; - } - public function getPerInteractionDimensions() - { - return $this->perInteractionDimensions; - } -} - -class Google_Service_Dfareporting_Placement extends Google_Collection +class Google_Service_Dfareporting_Order extends Google_Collection { - protected $collection_key = 'tagFormats'; + protected $collection_key = 'siteNames'; protected $internal_gapi_mappings = array( ); public $accountId; public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $comment; - public $compatibility; - public $contentCategoryId; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $externalId; + public $approverUserProfileIds; + public $buyerInvoiceId; + public $buyerOrganizationName; + public $comments; + protected $contactsType = 'Google_Service_Dfareporting_OrderContact'; + protected $contactsDataType = 'array'; public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $keyName; public $kind; protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; public $name; - public $paymentApproved; - public $paymentSource; - public $placementGroupId; - protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementGroupIdDimensionValueDataType = ''; - public $placementStrategyId; - protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; - protected $pricingScheduleDataType = ''; - public $primary; - protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $publisherUpdateInfoDataType = ''; + public $notes; + public $planningTermId; + public $projectId; + public $sellerOrderId; + public $sellerOrganizationName; public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslRequired; - public $status; + public $siteNames; public $subaccountId; - public $tagFormats; - protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; - protected $tagSettingDataType = ''; + public $termsAndConditions; public function setAccountId($accountId) @@ -14988,253 +16637,323 @@ public function getAdvertiserId() { return $this->advertiserId; } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + public function setApproverUserProfileIds($approverUserProfileIds) { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + $this->approverUserProfileIds = $approverUserProfileIds; } - public function getAdvertiserIdDimensionValue() + public function getApproverUserProfileIds() { - return $this->advertiserIdDimensionValue; + return $this->approverUserProfileIds; } - public function setArchived($archived) + public function setBuyerInvoiceId($buyerInvoiceId) { - $this->archived = $archived; + $this->buyerInvoiceId = $buyerInvoiceId; } - public function getArchived() + public function getBuyerInvoiceId() { - return $this->archived; + return $this->buyerInvoiceId; } - public function setCampaignId($campaignId) + public function setBuyerOrganizationName($buyerOrganizationName) { - $this->campaignId = $campaignId; + $this->buyerOrganizationName = $buyerOrganizationName; } - public function getCampaignId() + public function getBuyerOrganizationName() { - return $this->campaignId; + return $this->buyerOrganizationName; } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + public function setComments($comments) { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; + $this->comments = $comments; } - public function getCampaignIdDimensionValue() + public function getComments() { - return $this->campaignIdDimensionValue; + return $this->comments; } - public function setComment($comment) + public function setContacts($contacts) { - $this->comment = $comment; + $this->contacts = $contacts; } - public function getComment() + public function getContacts() { - return $this->comment; + return $this->contacts; } - public function setCompatibility($compatibility) + public function setId($id) { - $this->compatibility = $compatibility; + $this->id = $id; } - public function getCompatibility() + public function getId() { - return $this->compatibility; + return $this->id; } - public function setContentCategoryId($contentCategoryId) + public function setKind($kind) { - $this->contentCategoryId = $contentCategoryId; + $this->kind = $kind; } - public function getContentCategoryId() + public function getKind() { - return $this->contentCategoryId; + return $this->kind; } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) { - $this->createInfo = $createInfo; + $this->lastModifiedInfo = $lastModifiedInfo; } - public function getCreateInfo() + public function getLastModifiedInfo() { - return $this->createInfo; + return $this->lastModifiedInfo; } - public function setDirectorySiteId($directorySiteId) + public function setName($name) { - $this->directorySiteId = $directorySiteId; + $this->name = $name; } - public function getDirectorySiteId() + public function getName() { - return $this->directorySiteId; + return $this->name; } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + public function setNotes($notes) { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + $this->notes = $notes; } - public function getDirectorySiteIdDimensionValue() + public function getNotes() { - return $this->directorySiteIdDimensionValue; + return $this->notes; } - public function setExternalId($externalId) + public function setPlanningTermId($planningTermId) { - $this->externalId = $externalId; + $this->planningTermId = $planningTermId; } - public function getExternalId() + public function getPlanningTermId() { - return $this->externalId; + return $this->planningTermId; } - public function setId($id) + public function setProjectId($projectId) { - $this->id = $id; + $this->projectId = $projectId; } - public function getId() + public function getProjectId() { - return $this->id; + return $this->projectId; } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + public function setSellerOrderId($sellerOrderId) { - $this->idDimensionValue = $idDimensionValue; + $this->sellerOrderId = $sellerOrderId; } - public function getIdDimensionValue() + public function getSellerOrderId() { - return $this->idDimensionValue; + return $this->sellerOrderId; } - public function setKeyName($keyName) + public function setSellerOrganizationName($sellerOrganizationName) { - $this->keyName = $keyName; + $this->sellerOrganizationName = $sellerOrganizationName; } - public function getKeyName() + public function getSellerOrganizationName() { - return $this->keyName; + return $this->sellerOrganizationName; } - public function setKind($kind) + public function setSiteId($siteId) { - $this->kind = $kind; + $this->siteId = $siteId; } - public function getKind() + public function getSiteId() { - return $this->kind; + return $this->siteId; } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + public function setSiteNames($siteNames) { - $this->lastModifiedInfo = $lastModifiedInfo; + $this->siteNames = $siteNames; } - public function getLastModifiedInfo() + public function getSiteNames() { - return $this->lastModifiedInfo; + return $this->siteNames; } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + public function setSubaccountId($subaccountId) { - $this->lookbackConfiguration = $lookbackConfiguration; + $this->subaccountId = $subaccountId; } - public function getLookbackConfiguration() + public function getSubaccountId() { - return $this->lookbackConfiguration; + return $this->subaccountId; } - public function setName($name) + public function setTermsAndConditions($termsAndConditions) { - $this->name = $name; + $this->termsAndConditions = $termsAndConditions; } - public function getName() + public function getTermsAndConditions() { - return $this->name; + return $this->termsAndConditions; } - public function setPaymentApproved($paymentApproved) +} + +class Google_Service_Dfareporting_OrderContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactInfo; + public $contactName; + public $contactTitle; + public $contactType; + public $signatureUserProfileId; + + + public function setContactInfo($contactInfo) { - $this->paymentApproved = $paymentApproved; + $this->contactInfo = $contactInfo; } - public function getPaymentApproved() + public function getContactInfo() { - return $this->paymentApproved; + return $this->contactInfo; } - public function setPaymentSource($paymentSource) + public function setContactName($contactName) { - $this->paymentSource = $paymentSource; + $this->contactName = $contactName; } - public function getPaymentSource() + public function getContactName() { - return $this->paymentSource; + return $this->contactName; } - public function setPlacementGroupId($placementGroupId) + public function setContactTitle($contactTitle) { - $this->placementGroupId = $placementGroupId; + $this->contactTitle = $contactTitle; } - public function getPlacementGroupId() + public function getContactTitle() { - return $this->placementGroupId; + return $this->contactTitle; } - public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) + public function setContactType($contactType) { - $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; + $this->contactType = $contactType; } - public function getPlacementGroupIdDimensionValue() + public function getContactType() { - return $this->placementGroupIdDimensionValue; + return $this->contactType; } - public function setPlacementStrategyId($placementStrategyId) + public function setSignatureUserProfileId($signatureUserProfileId) { - $this->placementStrategyId = $placementStrategyId; + $this->signatureUserProfileId = $signatureUserProfileId; } - public function getPlacementStrategyId() + public function getSignatureUserProfileId() { - return $this->placementStrategyId; + return $this->signatureUserProfileId; } - public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) +} + +class Google_Service_Dfareporting_OrderDocument extends Google_Collection +{ + protected $collection_key = 'approvedByUserProfileIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $amendedOrderDocumentId; + public $approvedByUserProfileIds; + public $cancelled; + protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createdInfoDataType = ''; + public $effectiveDate; + public $id; + public $kind; + public $orderId; + public $projectId; + public $signed; + public $subaccountId; + public $title; + public $type; + + + public function setAccountId($accountId) { - $this->pricingSchedule = $pricingSchedule; + $this->accountId = $accountId; } - public function getPricingSchedule() + public function getAccountId() { - return $this->pricingSchedule; + return $this->accountId; } - public function setPrimary($primary) + public function setAdvertiserId($advertiserId) { - $this->primary = $primary; + $this->advertiserId = $advertiserId; } - public function getPrimary() + public function getAdvertiserId() { - return $this->primary; + return $this->advertiserId; } - public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) + public function setAmendedOrderDocumentId($amendedOrderDocumentId) { - $this->publisherUpdateInfo = $publisherUpdateInfo; + $this->amendedOrderDocumentId = $amendedOrderDocumentId; } - public function getPublisherUpdateInfo() + public function getAmendedOrderDocumentId() { - return $this->publisherUpdateInfo; + return $this->amendedOrderDocumentId; } - public function setSiteId($siteId) + public function setApprovedByUserProfileIds($approvedByUserProfileIds) { - $this->siteId = $siteId; + $this->approvedByUserProfileIds = $approvedByUserProfileIds; } - public function getSiteId() + public function getApprovedByUserProfileIds() { - return $this->siteId; + return $this->approvedByUserProfileIds; } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + public function setCancelled($cancelled) { - $this->siteIdDimensionValue = $siteIdDimensionValue; + $this->cancelled = $cancelled; } - public function getSiteIdDimensionValue() + public function getCancelled() { - return $this->siteIdDimensionValue; + return $this->cancelled; } - public function setSize(Google_Service_Dfareporting_Size $size) + public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo) { - $this->size = $size; + $this->createdInfo = $createdInfo; } - public function getSize() + public function getCreatedInfo() { - return $this->size; + return $this->createdInfo; } - public function setSslRequired($sslRequired) + public function setEffectiveDate($effectiveDate) { - $this->sslRequired = $sslRequired; + $this->effectiveDate = $effectiveDate; } - public function getSslRequired() + public function getEffectiveDate() { - return $this->sslRequired; + return $this->effectiveDate; } - public function setStatus($status) + public function setId($id) { - $this->status = $status; + $this->id = $id; } - public function getStatus() + public function getId() { - return $this->status; + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSigned($signed) + { + $this->signed = $signed; + } + public function getSigned() + { + return $this->signed; } public function setSubaccountId($subaccountId) { @@ -15244,84 +16963,171 @@ public function getSubaccountId() { return $this->subaccountId; } - public function setTagFormats($tagFormats) + public function setTitle($title) { - $this->tagFormats = $tagFormats; + $this->title = $title; } - public function getTagFormats() + public function getTitle() { - return $this->tagFormats; + return $this->title; } - public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + public function setType($type) { - $this->tagSetting = $tagSetting; + $this->type = $type; } - public function getTagSetting() + public function getType() { - return $this->tagSetting; + return $this->type; } } -class Google_Service_Dfareporting_PlacementAssignment extends Google_Model +class Google_Service_Dfareporting_OrderDocumentsListResponse extends Google_Collection { + protected $collection_key = 'orderDocuments'; protected $internal_gapi_mappings = array( ); - public $active; - public $placementId; - protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementIdDimensionValueDataType = ''; - public $sslRequired; + public $kind; + public $nextPageToken; + protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument'; + protected $orderDocumentsDataType = 'array'; - public function setActive($active) + public function setKind($kind) { - $this->active = $active; + $this->kind = $kind; } - public function getActive() + public function getKind() { - return $this->active; + return $this->kind; } - public function setPlacementId($placementId) + public function setNextPageToken($nextPageToken) { - $this->placementId = $placementId; + $this->nextPageToken = $nextPageToken; } - public function getPlacementId() + public function getNextPageToken() { - return $this->placementId; + return $this->nextPageToken; } - public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) + public function setOrderDocuments($orderDocuments) { - $this->placementIdDimensionValue = $placementIdDimensionValue; + $this->orderDocuments = $orderDocuments; } - public function getPlacementIdDimensionValue() + public function getOrderDocuments() { - return $this->placementIdDimensionValue; + return $this->orderDocuments; } - public function setSslRequired($sslRequired) +} + +class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $ordersType = 'Google_Service_Dfareporting_Order'; + protected $ordersDataType = 'array'; + + + public function setKind($kind) { - $this->sslRequired = $sslRequired; + $this->kind = $kind; } - public function getSslRequired() + public function getKind() { - return $this->sslRequired; + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; } } -class Google_Service_Dfareporting_PlacementGroup extends Google_Collection +class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection { - protected $collection_key = 'childPlacementIds'; + protected $collection_key = 'perInteractionDimensions'; protected $internal_gapi_mappings = array( ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $childPlacementIds; - public $comment; + protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; + protected $customFloodlightVariablesDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $perInteractionDimensionsDataType = 'array'; + + + public function setConversionDimensions($conversionDimensions) + { + $this->conversionDimensions = $conversionDimensions; + } + public function getConversionDimensions() + { + return $this->conversionDimensions; + } + public function setCustomFloodlightVariables($customFloodlightVariables) + { + $this->customFloodlightVariables = $customFloodlightVariables; + } + public function getCustomFloodlightVariables() + { + return $this->customFloodlightVariables; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setPerInteractionDimensions($perInteractionDimensions) + { + $this->perInteractionDimensions = $perInteractionDimensions; + } + public function getPerInteractionDimensions() + { + return $this->perInteractionDimensions; + } +} + +class Google_Service_Dfareporting_Placement extends Google_Collection +{ + protected $collection_key = 'tagFormats'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $comment; + public $compatibility; public $contentCategoryId; protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; protected $createInfoDataType = ''; @@ -15332,23 +17138,35 @@ class Google_Service_Dfareporting_PlacementGroup extends Google_Collection public $id; protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $idDimensionValueDataType = ''; + public $keyName; public $kind; protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; public $name; - public $placementGroupType; + public $paymentApproved; + public $paymentSource; + public $placementGroupId; + protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementGroupIdDimensionValueDataType = ''; public $placementStrategyId; protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; protected $pricingScheduleDataType = ''; - public $primaryPlacementId; - protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $primaryPlacementIdDimensionValueDataType = ''; - protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; - protected $programmaticSettingDataType = ''; + public $primary; + protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $publisherUpdateInfoDataType = ''; public $siteId; protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $siteIdDimensionValueDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslRequired; + public $status; public $subaccountId; + public $tagFormats; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; public function setAccountId($accountId) @@ -15399,14 +17217,6 @@ public function getCampaignIdDimensionValue() { return $this->campaignIdDimensionValue; } - public function setChildPlacementIds($childPlacementIds) - { - $this->childPlacementIds = $childPlacementIds; - } - public function getChildPlacementIds() - { - return $this->childPlacementIds; - } public function setComment($comment) { $this->comment = $comment; @@ -15415,6 +17225,14 @@ public function getComment() { return $this->comment; } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } public function setContentCategoryId($contentCategoryId) { $this->contentCategoryId = $contentCategoryId; @@ -15471,6 +17289,14 @@ public function getIdDimensionValue() { return $this->idDimensionValue; } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } public function setKind($kind) { $this->kind = $kind; @@ -15487,6 +17313,14 @@ public function getLastModifiedInfo() { return $this->lastModifiedInfo; } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } public function setName($name) { $this->name = $name; @@ -15495,13 +17329,37 @@ public function getName() { return $this->name; } - public function setPlacementGroupType($placementGroupType) + public function setPaymentApproved($paymentApproved) { - $this->placementGroupType = $placementGroupType; + $this->paymentApproved = $paymentApproved; } - public function getPlacementGroupType() + public function getPaymentApproved() { - return $this->placementGroupType; + return $this->paymentApproved; + } + public function setPaymentSource($paymentSource) + { + $this->paymentSource = $paymentSource; + } + public function getPaymentSource() + { + return $this->paymentSource; + } + public function setPlacementGroupId($placementGroupId) + { + $this->placementGroupId = $placementGroupId; + } + public function getPlacementGroupId() + { + return $this->placementGroupId; + } + public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) + { + $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; + } + public function getPlacementGroupIdDimensionValue() + { + return $this->placementGroupIdDimensionValue; } public function setPlacementStrategyId($placementStrategyId) { @@ -15519,29 +17377,21 @@ public function getPricingSchedule() { return $this->pricingSchedule; } - public function setPrimaryPlacementId($primaryPlacementId) - { - $this->primaryPlacementId = $primaryPlacementId; - } - public function getPrimaryPlacementId() - { - return $this->primaryPlacementId; - } - public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) + public function setPrimary($primary) { - $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; + $this->primary = $primary; } - public function getPrimaryPlacementIdDimensionValue() + public function getPrimary() { - return $this->primaryPlacementIdDimensionValue; + return $this->primary; } - public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) + public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) { - $this->programmaticSetting = $programmaticSetting; + $this->publisherUpdateInfo = $publisherUpdateInfo; } - public function getProgrammaticSetting() + public function getPublisherUpdateInfo() { - return $this->programmaticSetting; + return $this->publisherUpdateInfo; } public function setSiteId($siteId) { @@ -15559,6 +17409,30 @@ public function getSiteIdDimensionValue() { return $this->siteIdDimensionValue; } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } public function setSubaccountId($subaccountId) { $this->subaccountId = $subaccountId; @@ -15567,54 +17441,757 @@ public function getSubaccountId() { return $this->subaccountId; } + public function setTagFormats($tagFormats) + { + $this->tagFormats = $tagFormats; + } + public function getTagFormats() + { + return $this->tagFormats; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } } -class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection +class Google_Service_Dfareporting_PlacementAssignment extends Google_Model { - protected $collection_key = 'placementGroups'; protected $internal_gapi_mappings = array( ); - public $kind; - public $nextPageToken; - protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; - protected $placementGroupsDataType = 'array'; + public $active; + public $placementId; + protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementIdDimensionValueDataType = ''; + public $sslRequired; - public function setKind($kind) + public function setActive($active) { - $this->kind = $kind; + $this->active = $active; } - public function getKind() + public function getActive() { - return $this->kind; + return $this->active; } - public function setNextPageToken($nextPageToken) + public function setPlacementId($placementId) { - $this->nextPageToken = $nextPageToken; + $this->placementId = $placementId; } - public function getNextPageToken() + public function getPlacementId() { - return $this->nextPageToken; + return $this->placementId; } - public function setPlacementGroups($placementGroups) + public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) { - $this->placementGroups = $placementGroups; + $this->placementIdDimensionValue = $placementIdDimensionValue; } - public function getPlacementGroups() + public function getPlacementIdDimensionValue() { - return $this->placementGroups; + return $this->placementIdDimensionValue; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } +} + +class Google_Service_Dfareporting_PlacementGroup extends Google_Collection +{ + protected $collection_key = 'childPlacementIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $childPlacementIds; + public $comment; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $placementGroupType; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primaryPlacementId; + protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $primaryPlacementIdDimensionValueDataType = ''; + protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; + protected $programmaticSettingDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setChildPlacementIds($childPlacementIds) + { + $this->childPlacementIds = $childPlacementIds; + } + public function getChildPlacementIds() + { + return $this->childPlacementIds; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementGroupType($placementGroupType) + { + $this->placementGroupType = $placementGroupType; + } + public function getPlacementGroupType() + { + return $this->placementGroupType; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimaryPlacementId($primaryPlacementId) + { + $this->primaryPlacementId = $primaryPlacementId; + } + public function getPrimaryPlacementId() + { + return $this->primaryPlacementId; + } + public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) + { + $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; + } + public function getPrimaryPlacementIdDimensionValue() + { + return $this->primaryPlacementIdDimensionValue; + } + public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) + { + $this->programmaticSetting = $programmaticSetting; + } + public function getProgrammaticSetting() + { + return $this->programmaticSetting; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'placementGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; + protected $placementGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementGroups($placementGroups) + { + $this->placementGroups = $placementGroups; + } + public function getPlacementGroups() + { + return $this->placementGroups; + } +} + +class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection +{ + protected $collection_key = 'placementStrategies'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; + protected $placementStrategiesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementStrategies($placementStrategies) + { + $this->placementStrategies = $placementStrategies; + } + public function getPlacementStrategies() + { + return $this->placementStrategies; + } +} + +class Google_Service_Dfareporting_PlacementStrategy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_PlacementTag extends Google_Collection +{ + protected $collection_key = 'tagDatas'; + protected $internal_gapi_mappings = array( + ); + public $placementId; + protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; + protected $tagDatasDataType = 'array'; + + + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setTagDatas($tagDatas) + { + $this->tagDatas = $tagDatas; + } + public function getTagDatas() + { + return $this->tagDatas; + } +} + +class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection +{ + protected $collection_key = 'placementTags'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; + protected $placementTagsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlacementTags($placementTags) + { + $this->placementTags = $placementTags; + } + public function getPlacementTags() + { + return $this->placementTags; + } +} + +class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection +{ + protected $collection_key = 'placements'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementsType = 'Google_Service_Dfareporting_Placement'; + protected $placementsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacements($placements) + { + $this->placements = $placements; + } + public function getPlacements() + { + return $this->placements; + } +} + +class Google_Service_Dfareporting_PlatformType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_PlatformTypesListResponse extends Google_Collection +{ + protected $collection_key = 'platformTypes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlatformTypes($platformTypes) + { + $this->platformTypes = $platformTypes; + } + public function getPlatformTypes() + { + return $this->platformTypes; + } +} + +class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dimensionType = 'Google_Service_Dfareporting_Size'; + protected $dimensionDataType = ''; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $positionType; + public $showAddressBar; + public $showMenuBar; + public $showScrollBar; + public $showStatusBar; + public $showToolBar; + public $title; + + + public function setDimension(Google_Service_Dfareporting_Size $dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setPositionType($positionType) + { + $this->positionType = $positionType; + } + public function getPositionType() + { + return $this->positionType; + } + public function setShowAddressBar($showAddressBar) + { + $this->showAddressBar = $showAddressBar; + } + public function getShowAddressBar() + { + return $this->showAddressBar; + } + public function setShowMenuBar($showMenuBar) + { + $this->showMenuBar = $showMenuBar; + } + public function getShowMenuBar() + { + return $this->showMenuBar; + } + public function setShowScrollBar($showScrollBar) + { + $this->showScrollBar = $showScrollBar; + } + public function getShowScrollBar() + { + return $this->showScrollBar; + } + public function setShowStatusBar($showStatusBar) + { + $this->showStatusBar = $showStatusBar; + } + public function getShowStatusBar() + { + return $this->showStatusBar; + } + public function setShowToolBar($showToolBar) + { + $this->showToolBar = $showToolBar; + } + public function getShowToolBar() + { + return $this->showToolBar; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Dfareporting_PostalCode extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $countryCode; + public $countryDartId; + public $id; + public $kind; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + 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_Dfareporting_PlacementStrategiesListResponse extends Google_Collection +class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection { - protected $collection_key = 'placementStrategies'; + protected $collection_key = 'postalCodes'; protected $internal_gapi_mappings = array( ); public $kind; - public $nextPageToken; - protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; - protected $placementStrategiesDataType = 'array'; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; public function setKind($kind) @@ -15625,367 +18202,494 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) + public function setPostalCodes($postalCodes) { - $this->nextPageToken = $nextPageToken; + $this->postalCodes = $postalCodes; } - public function getNextPageToken() + public function getPostalCodes() { - return $this->nextPageToken; + return $this->postalCodes; } - public function setPlacementStrategies($placementStrategies) +} + +class Google_Service_Dfareporting_Pricing extends Google_Collection +{ + protected $collection_key = 'flights'; + protected $internal_gapi_mappings = array( + ); + public $capCostType; + public $endDate; + protected $flightsType = 'Google_Service_Dfareporting_Flight'; + protected $flightsDataType = 'array'; + public $groupType; + public $pricingType; + public $startDate; + + + public function setCapCostType($capCostType) { - $this->placementStrategies = $placementStrategies; + $this->capCostType = $capCostType; } - public function getPlacementStrategies() + public function getCapCostType() { - return $this->placementStrategies; + return $this->capCostType; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlights($flights) + { + $this->flights = $flights; + } + public function getFlights() + { + return $this->flights; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; } } -class Google_Service_Dfareporting_PlacementStrategy extends Google_Model +class Google_Service_Dfareporting_PricingSchedule extends Google_Collection { + protected $collection_key = 'pricingPeriods'; protected $internal_gapi_mappings = array( ); - public $accountId; - public $id; - public $kind; - public $name; + public $capCostOption; + public $disregardOverdelivery; + public $endDate; + public $flighted; + public $floodlightActivityId; + protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; + protected $pricingPeriodsDataType = 'array'; + public $pricingType; + public $startDate; + public $testingStartDate; - public function setAccountId($accountId) + public function setCapCostOption($capCostOption) { - $this->accountId = $accountId; + $this->capCostOption = $capCostOption; } - public function getAccountId() + public function getCapCostOption() { - return $this->accountId; + return $this->capCostOption; } - public function setId($id) + public function setDisregardOverdelivery($disregardOverdelivery) { - $this->id = $id; + $this->disregardOverdelivery = $disregardOverdelivery; } - public function getId() + public function getDisregardOverdelivery() { - return $this->id; + return $this->disregardOverdelivery; } - public function setKind($kind) + public function setEndDate($endDate) { - $this->kind = $kind; + $this->endDate = $endDate; } - public function getKind() + public function getEndDate() { - return $this->kind; + return $this->endDate; } - public function setName($name) + public function setFlighted($flighted) { - $this->name = $name; + $this->flighted = $flighted; } - public function getName() + public function getFlighted() { - return $this->name; + return $this->flighted; + } + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setPricingPeriods($pricingPeriods) + { + $this->pricingPeriods = $pricingPeriods; + } + public function getPricingPeriods() + { + return $this->pricingPeriods; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setTestingStartDate($testingStartDate) + { + $this->testingStartDate = $testingStartDate; + } + public function getTestingStartDate() + { + return $this->testingStartDate; } } -class Google_Service_Dfareporting_PlacementTag extends Google_Collection +class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model { - protected $collection_key = 'tagDatas'; protected $internal_gapi_mappings = array( ); - public $placementId; - protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; - protected $tagDatasDataType = 'array'; + public $endDate; + public $pricingComment; + public $rateOrCostNanos; + public $startDate; + public $units; - public function setPlacementId($placementId) + public function setEndDate($endDate) { - $this->placementId = $placementId; + $this->endDate = $endDate; } - public function getPlacementId() + public function getEndDate() { - return $this->placementId; + return $this->endDate; } - public function setTagDatas($tagDatas) + public function setPricingComment($pricingComment) { - $this->tagDatas = $tagDatas; + $this->pricingComment = $pricingComment; } - public function getTagDatas() + public function getPricingComment() + { + return $this->pricingComment; + } + public function setRateOrCostNanos($rateOrCostNanos) + { + $this->rateOrCostNanos = $rateOrCostNanos; + } + public function getRateOrCostNanos() + { + return $this->rateOrCostNanos; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $adxDealIds; + public $insertionOrderId; + public $insertionOrderIdStatus; + public $mediaCostNanos; + public $programmatic; + public $traffickerEmails; + + + public function setAdxDealIds($adxDealIds) + { + $this->adxDealIds = $adxDealIds; + } + public function getAdxDealIds() + { + return $this->adxDealIds; + } + public function setInsertionOrderId($insertionOrderId) + { + $this->insertionOrderId = $insertionOrderId; + } + public function getInsertionOrderId() + { + return $this->insertionOrderId; + } + public function setInsertionOrderIdStatus($insertionOrderIdStatus) + { + $this->insertionOrderIdStatus = $insertionOrderIdStatus; + } + public function getInsertionOrderIdStatus() + { + return $this->insertionOrderIdStatus; + } + public function setMediaCostNanos($mediaCostNanos) + { + $this->mediaCostNanos = $mediaCostNanos; + } + public function getMediaCostNanos() { - return $this->tagDatas; + return $this->mediaCostNanos; } -} - -class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection -{ - protected $collection_key = 'placementTags'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; - protected $placementTagsDataType = 'array'; - - - public function setKind($kind) + public function setProgrammatic($programmatic) { - $this->kind = $kind; + $this->programmatic = $programmatic; } - public function getKind() + public function getProgrammatic() { - return $this->kind; + return $this->programmatic; } - public function setPlacementTags($placementTags) + public function setTraffickerEmails($traffickerEmails) { - $this->placementTags = $placementTags; + $this->traffickerEmails = $traffickerEmails; } - public function getPlacementTags() + public function getTraffickerEmails() { - return $this->placementTags; + return $this->traffickerEmails; } } -class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection +class Google_Service_Dfareporting_Project extends Google_Model { - protected $collection_key = 'placements'; protected $internal_gapi_mappings = array( ); + public $accountId; + public $advertiserId; + public $audienceAgeGroup; + public $audienceGender; + public $budget; + public $clientBillingCode; + public $clientName; + public $endDate; + public $id; public $kind; - public $nextPageToken; - protected $placementsType = 'Google_Service_Dfareporting_Placement'; - protected $placementsDataType = 'array'; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $overview; + public $startDate; + public $subaccountId; + public $targetClicks; + public $targetConversions; + public $targetCpaNanos; + public $targetCpcNanos; + public $targetCpmNanos; + public $targetImpressions; - public function setKind($kind) + public function setAccountId($accountId) { - $this->kind = $kind; + $this->accountId = $accountId; } - public function getKind() + public function getAccountId() { - return $this->kind; + return $this->accountId; } - public function setNextPageToken($nextPageToken) + public function setAdvertiserId($advertiserId) { - $this->nextPageToken = $nextPageToken; + $this->advertiserId = $advertiserId; } - public function getNextPageToken() + public function getAdvertiserId() { - return $this->nextPageToken; + return $this->advertiserId; } - public function setPlacements($placements) + public function setAudienceAgeGroup($audienceAgeGroup) { - $this->placements = $placements; + $this->audienceAgeGroup = $audienceAgeGroup; } - public function getPlacements() + public function getAudienceAgeGroup() { - return $this->placements; + return $this->audienceAgeGroup; } -} - -class Google_Service_Dfareporting_PlatformType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $name; - - - public function setId($id) + public function setAudienceGender($audienceGender) { - $this->id = $id; + $this->audienceGender = $audienceGender; } - public function getId() + public function getAudienceGender() { - return $this->id; + return $this->audienceGender; } - public function setKind($kind) + public function setBudget($budget) { - $this->kind = $kind; + $this->budget = $budget; } - public function getKind() + public function getBudget() { - return $this->kind; + return $this->budget; } - public function setName($name) + public function setClientBillingCode($clientBillingCode) { - $this->name = $name; + $this->clientBillingCode = $clientBillingCode; } - public function getName() + public function getClientBillingCode() { - return $this->name; + return $this->clientBillingCode; } -} - -class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection -{ - protected $collection_key = 'platformTypes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; - protected $platformTypesDataType = 'array'; - - - public function setKind($kind) + public function setClientName($clientName) { - $this->kind = $kind; + $this->clientName = $clientName; } - public function getKind() + public function getClientName() { - return $this->kind; + return $this->clientName; } - public function setPlatformTypes($platformTypes) + public function setEndDate($endDate) { - $this->platformTypes = $platformTypes; + $this->endDate = $endDate; } - public function getPlatformTypes() + public function getEndDate() { - return $this->platformTypes; + return $this->endDate; } -} - -class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dimensionType = 'Google_Service_Dfareporting_Size'; - protected $dimensionDataType = ''; - protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $offsetDataType = ''; - public $positionType; - public $showAddressBar; - public $showMenuBar; - public $showScrollBar; - public $showStatusBar; - public $showToolBar; - public $title; - - - public function setDimension(Google_Service_Dfareporting_Size $dimension) + public function setId($id) { - $this->dimension = $dimension; + $this->id = $id; } - public function getDimension() + public function getId() { - return $this->dimension; + return $this->id; } - public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + public function setKind($kind) { - $this->offset = $offset; + $this->kind = $kind; } - public function getOffset() + public function getKind() { - return $this->offset; + return $this->kind; } - public function setPositionType($positionType) + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) { - $this->positionType = $positionType; + $this->lastModifiedInfo = $lastModifiedInfo; } - public function getPositionType() + public function getLastModifiedInfo() { - return $this->positionType; + return $this->lastModifiedInfo; } - public function setShowAddressBar($showAddressBar) + public function setName($name) { - $this->showAddressBar = $showAddressBar; + $this->name = $name; } - public function getShowAddressBar() + public function getName() { - return $this->showAddressBar; + return $this->name; } - public function setShowMenuBar($showMenuBar) + public function setOverview($overview) { - $this->showMenuBar = $showMenuBar; + $this->overview = $overview; } - public function getShowMenuBar() + public function getOverview() { - return $this->showMenuBar; + return $this->overview; } - public function setShowScrollBar($showScrollBar) + public function setStartDate($startDate) { - $this->showScrollBar = $showScrollBar; + $this->startDate = $startDate; } - public function getShowScrollBar() + public function getStartDate() { - return $this->showScrollBar; + return $this->startDate; } - public function setShowStatusBar($showStatusBar) + public function setSubaccountId($subaccountId) { - $this->showStatusBar = $showStatusBar; + $this->subaccountId = $subaccountId; } - public function getShowStatusBar() + public function getSubaccountId() { - return $this->showStatusBar; + return $this->subaccountId; } - public function setShowToolBar($showToolBar) + public function setTargetClicks($targetClicks) { - $this->showToolBar = $showToolBar; + $this->targetClicks = $targetClicks; } - public function getShowToolBar() + public function getTargetClicks() { - return $this->showToolBar; + return $this->targetClicks; } - public function setTitle($title) + public function setTargetConversions($targetConversions) { - $this->title = $title; + $this->targetConversions = $targetConversions; } - public function getTitle() + public function getTargetConversions() { - return $this->title; + return $this->targetConversions; } -} - -class Google_Service_Dfareporting_PostalCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $id; - public $kind; - - - public function setCountryCode($countryCode) + public function setTargetCpaNanos($targetCpaNanos) { - $this->countryCode = $countryCode; + $this->targetCpaNanos = $targetCpaNanos; } - public function getCountryCode() + public function getTargetCpaNanos() { - return $this->countryCode; + return $this->targetCpaNanos; } - public function setCountryDartId($countryDartId) + public function setTargetCpcNanos($targetCpcNanos) { - $this->countryDartId = $countryDartId; + $this->targetCpcNanos = $targetCpcNanos; } - public function getCountryDartId() + public function getTargetCpcNanos() { - return $this->countryDartId; + return $this->targetCpcNanos; } - public function setId($id) + public function setTargetCpmNanos($targetCpmNanos) { - $this->id = $id; + $this->targetCpmNanos = $targetCpmNanos; } - public function getId() + public function getTargetCpmNanos() { - return $this->id; + return $this->targetCpmNanos; } - public function setKind($kind) + public function setTargetImpressions($targetImpressions) { - $this->kind = $kind; + $this->targetImpressions = $targetImpressions; } - public function getKind() + public function getTargetImpressions() { - return $this->kind; + return $this->targetImpressions; } } -class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection +class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection { - protected $collection_key = 'postalCodes'; + protected $collection_key = 'projects'; protected $internal_gapi_mappings = array( ); public $kind; - protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; - protected $postalCodesDataType = 'array'; + public $nextPageToken; + protected $projectsType = 'Google_Service_Dfareporting_Project'; + protected $projectsDataType = 'array'; public function setKind($kind) @@ -15996,256 +18700,285 @@ public function getKind() { return $this->kind; } - public function setPostalCodes($postalCodes) + public function setNextPageToken($nextPageToken) { - $this->postalCodes = $postalCodes; + $this->nextPageToken = $nextPageToken; } - public function getPostalCodes() + public function getNextPageToken() { - return $this->postalCodes; + return $this->nextPageToken; + } + public function setProjects($projects) + { + $this->projects = $projects; + } + public function getProjects() + { + return $this->projects; } } -class Google_Service_Dfareporting_PricingSchedule extends Google_Collection +class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection { - protected $collection_key = 'pricingPeriods'; + protected $collection_key = 'reachByFrequencyMetrics'; protected $internal_gapi_mappings = array( ); - public $capCostOption; - public $disregardOverdelivery; - public $endDate; - public $flighted; - public $floodlightActivityId; - protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; - protected $pricingPeriodsDataType = 'array'; - public $pricingType; - public $startDate; - public $testingStartDate; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; + protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $reachByFrequencyMetricsDataType = 'array'; - public function setCapCostOption($capCostOption) + public function setDimensionFilters($dimensionFilters) { - $this->capCostOption = $capCostOption; + $this->dimensionFilters = $dimensionFilters; } - public function getCapCostOption() + public function getDimensionFilters() { - return $this->capCostOption; + return $this->dimensionFilters; } - public function setDisregardOverdelivery($disregardOverdelivery) + public function setDimensions($dimensions) { - $this->disregardOverdelivery = $disregardOverdelivery; + $this->dimensions = $dimensions; } - public function getDisregardOverdelivery() + public function getDimensions() { - return $this->disregardOverdelivery; + return $this->dimensions; } - public function setEndDate($endDate) + public function setKind($kind) { - $this->endDate = $endDate; + $this->kind = $kind; } - public function getEndDate() + public function getKind() { - return $this->endDate; + return $this->kind; } - public function setFlighted($flighted) + public function setMetrics($metrics) { - $this->flighted = $flighted; + $this->metrics = $metrics; } - public function getFlighted() + public function getMetrics() { - return $this->flighted; + return $this->metrics; } - public function setFloodlightActivityId($floodlightActivityId) + public function setPivotedActivityMetrics($pivotedActivityMetrics) { - $this->floodlightActivityId = $floodlightActivityId; + $this->pivotedActivityMetrics = $pivotedActivityMetrics; } - public function getFloodlightActivityId() + public function getPivotedActivityMetrics() { - return $this->floodlightActivityId; + return $this->pivotedActivityMetrics; } - public function setPricingPeriods($pricingPeriods) + public function setReachByFrequencyMetrics($reachByFrequencyMetrics) { - $this->pricingPeriods = $pricingPeriods; + $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; } - public function getPricingPeriods() + public function getReachByFrequencyMetrics() { - return $this->pricingPeriods; + return $this->reachByFrequencyMetrics; } - public function setPricingType($pricingType) +} + +class Google_Service_Dfareporting_Recipient extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deliveryType; + public $email; + public $kind; + + + public function setDeliveryType($deliveryType) { - $this->pricingType = $pricingType; + $this->deliveryType = $deliveryType; } - public function getPricingType() + public function getDeliveryType() { - return $this->pricingType; + return $this->deliveryType; } - public function setStartDate($startDate) + public function setEmail($email) { - $this->startDate = $startDate; + $this->email = $email; } - public function getStartDate() + public function getEmail() { - return $this->startDate; + return $this->email; } - public function setTestingStartDate($testingStartDate) + public function setKind($kind) { - $this->testingStartDate = $testingStartDate; + $this->kind = $kind; } - public function getTestingStartDate() + public function getKind() { - return $this->testingStartDate; + return $this->kind; } } -class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model +class Google_Service_Dfareporting_Region extends Google_Model { protected $internal_gapi_mappings = array( ); - public $endDate; - public $pricingComment; - public $rateOrCostNanos; - public $startDate; - public $units; + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $name; + public $regionCode; - public function setEndDate($endDate) + public function setCountryCode($countryCode) { - $this->endDate = $endDate; + $this->countryCode = $countryCode; } - public function getEndDate() + public function getCountryCode() { - return $this->endDate; + return $this->countryCode; } - public function setPricingComment($pricingComment) + public function setCountryDartId($countryDartId) { - $this->pricingComment = $pricingComment; + $this->countryDartId = $countryDartId; } - public function getPricingComment() + public function getCountryDartId() { - return $this->pricingComment; + return $this->countryDartId; } - public function setRateOrCostNanos($rateOrCostNanos) + public function setDartId($dartId) { - $this->rateOrCostNanos = $rateOrCostNanos; + $this->dartId = $dartId; } - public function getRateOrCostNanos() + public function getDartId() { - return $this->rateOrCostNanos; + return $this->dartId; } - public function setStartDate($startDate) + public function setKind($kind) { - $this->startDate = $startDate; + $this->kind = $kind; } - public function getStartDate() + public function getKind() { - return $this->startDate; + return $this->kind; } - public function setUnits($units) + public function setName($name) { - $this->units = $units; + $this->name = $name; } - public function getUnits() + public function getName() { - return $this->units; + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; } } -class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection +class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection { - protected $collection_key = 'traffickerEmails'; + protected $collection_key = 'regions'; protected $internal_gapi_mappings = array( ); - public $adxDealIds; - public $insertionOrderId; - public $insertionOrderIdStatus; - public $mediaCostNanos; - public $programmatic; - public $traffickerEmails; + public $kind; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; - public function setAdxDealIds($adxDealIds) + public function setKind($kind) { - $this->adxDealIds = $adxDealIds; + $this->kind = $kind; } - public function getAdxDealIds() + public function getKind() { - return $this->adxDealIds; + return $this->kind; } - public function setInsertionOrderId($insertionOrderId) + public function setRegions($regions) { - $this->insertionOrderId = $insertionOrderId; + $this->regions = $regions; } - public function getInsertionOrderId() + public function getRegions() { - return $this->insertionOrderId; + return $this->regions; } - public function setInsertionOrderIdStatus($insertionOrderIdStatus) +} + +class Google_Service_Dfareporting_RemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule'; + protected $listPopulationRuleDataType = ''; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + public function setAccountId($accountId) { - $this->insertionOrderIdStatus = $insertionOrderIdStatus; + $this->accountId = $accountId; } - public function getInsertionOrderIdStatus() + public function getAccountId() { - return $this->insertionOrderIdStatus; + return $this->accountId; } - public function setMediaCostNanos($mediaCostNanos) + public function setActive($active) { - $this->mediaCostNanos = $mediaCostNanos; + $this->active = $active; } - public function getMediaCostNanos() + public function getActive() { - return $this->mediaCostNanos; + return $this->active; } - public function setProgrammatic($programmatic) + public function setAdvertiserId($advertiserId) { - $this->programmatic = $programmatic; + $this->advertiserId = $advertiserId; } - public function getProgrammatic() + public function getAdvertiserId() { - return $this->programmatic; + return $this->advertiserId; } - public function setTraffickerEmails($traffickerEmails) + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) { - $this->traffickerEmails = $traffickerEmails; + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; } - public function getTraffickerEmails() + public function getAdvertiserIdDimensionValue() { - return $this->traffickerEmails; + return $this->advertiserIdDimensionValue; } -} - -class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'reachByFrequencyMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $reachByFrequencyMetricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) + public function setDescription($description) { - $this->dimensionFilters = $dimensionFilters; + $this->description = $description; } - public function getDimensionFilters() + public function getDescription() { - return $this->dimensionFilters; + return $this->description; } - public function setDimensions($dimensions) + public function setId($id) { - $this->dimensions = $dimensions; + $this->id = $id; } - public function getDimensions() + public function getId() { - return $this->dimensions; + return $this->id; } public function setKind($kind) { @@ -16255,103 +18988,67 @@ public function getKind() { return $this->kind; } - public function setMetrics($metrics) + public function setLifeSpan($lifeSpan) { - $this->metrics = $metrics; + $this->lifeSpan = $lifeSpan; } - public function getMetrics() + public function getLifeSpan() { - return $this->metrics; + return $this->lifeSpan; } - public function setPivotedActivityMetrics($pivotedActivityMetrics) + public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule) { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; + $this->listPopulationRule = $listPopulationRule; } - public function getPivotedActivityMetrics() + public function getListPopulationRule() { - return $this->pivotedActivityMetrics; + return $this->listPopulationRule; } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) + public function setListSize($listSize) { - $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; + $this->listSize = $listSize; } - public function getReachByFrequencyMetrics() + public function getListSize() { - return $this->reachByFrequencyMetrics; + return $this->listSize; } -} - -class Google_Service_Dfareporting_Recipient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deliveryType; - public $email; - public $kind; - - - public function setDeliveryType($deliveryType) + public function setListSource($listSource) { - $this->deliveryType = $deliveryType; + $this->listSource = $listSource; } - public function getDeliveryType() + public function getListSource() { - return $this->deliveryType; + return $this->listSource; } - public function setEmail($email) + public function setName($name) { - $this->email = $email; + $this->name = $name; } - public function getEmail() + public function getName() { - return $this->email; + return $this->name; } - public function setKind($kind) + public function setSubaccountId($subaccountId) { - $this->kind = $kind; + $this->subaccountId = $subaccountId; } - public function getKind() + public function getSubaccountId() { - return $this->kind; + return $this->subaccountId; } } -class Google_Service_Dfareporting_Region extends Google_Model +class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection { + protected $collection_key = 'sharedAdvertiserIds'; protected $internal_gapi_mappings = array( ); - public $countryCode; - public $countryDartId; - public $dartId; public $kind; - public $name; - public $regionCode; + public $remarketingListId; + public $sharedAccountIds; + public $sharedAdvertiserIds; - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } public function setKind($kind) { $this->kind = $kind; @@ -16360,32 +19057,41 @@ public function getKind() { return $this->kind; } - public function setName($name) + public function setRemarketingListId($remarketingListId) { - $this->name = $name; + $this->remarketingListId = $remarketingListId; } - public function getName() + public function getRemarketingListId() { - return $this->name; + return $this->remarketingListId; } - public function setRegionCode($regionCode) + public function setSharedAccountIds($sharedAccountIds) { - $this->regionCode = $regionCode; + $this->sharedAccountIds = $sharedAccountIds; } - public function getRegionCode() + public function getSharedAccountIds() { - return $this->regionCode; + return $this->sharedAccountIds; + } + public function setSharedAdvertiserIds($sharedAdvertiserIds) + { + $this->sharedAdvertiserIds = $sharedAdvertiserIds; + } + public function getSharedAdvertiserIds() + { + return $this->sharedAdvertiserIds; } } -class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection +class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection { - protected $collection_key = 'regions'; + protected $collection_key = 'remarketingLists'; protected $internal_gapi_mappings = array( ); public $kind; - protected $regionsType = 'Google_Service_Dfareporting_Region'; - protected $regionsDataType = 'array'; + public $nextPageToken; + protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList'; + protected $remarketingListsDataType = 'array'; public function setKind($kind) @@ -16396,13 +19102,21 @@ public function getKind() { return $this->kind; } - public function setRegions($regions) + public function setNextPageToken($nextPageToken) { - $this->regions = $regions; + $this->nextPageToken = $nextPageToken; } - public function getRegions() + public function getNextPageToken() { - return $this->regions; + return $this->nextPageToken; + } + public function setRemarketingLists($remarketingLists) + { + $this->remarketingLists = $remarketingLists; + } + public function getRemarketingLists() + { + return $this->remarketingLists; } } @@ -17530,13 +20244,24 @@ class Google_Service_Dfareporting_SiteContact extends Google_Model { protected $internal_gapi_mappings = array( ); + public $address; public $contactType; public $email; public $firstName; public $id; public $lastName; + public $phone; + public $title; + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } public function setContactType($contactType) { $this->contactType = $contactType; @@ -17577,6 +20302,22 @@ public function getLastName() { return $this->lastName; } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } } class Google_Service_Dfareporting_SiteSettings extends Google_Model @@ -18037,6 +20778,160 @@ public function getTargetWindowOption() } } +class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + 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 setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + 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 setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + public function getLifeSpan() + { + return $this->lifeSpan; + } + public function setListSize($listSize) + { + $this->listSize = $listSize; + } + public function getListSize() + { + return $this->listSize; + } + public function setListSource($listSource) + { + $this->listSource = $listSource; + } + public function getListSource() + { + return $this->listSource; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection +{ + protected $collection_key = 'targetableRemarketingLists'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList'; + protected $targetableRemarketingListsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTargetableRemarketingLists($targetableRemarketingLists) + { + $this->targetableRemarketingLists = $targetableRemarketingLists; + } + public function getTargetableRemarketingLists() + { + return $this->targetableRemarketingLists; + } +} + class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection { protected $collection_key = 'platformTypes'; From 8a316b7c6ed12be7b292e00e8efecb4ab40a1bd2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 8 Apr 2015 05:30:44 -0700 Subject: [PATCH 0722/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index a24d3ecd9..199a6ead2 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -2697,7 +2697,7 @@ class Google_Service_SQLAdmin_Operation extends Google_Model protected $internal_gapi_mappings = array( ); public $endTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorType = 'Google_Service_SQLAdmin_OperationErrors'; protected $errorDataType = ''; protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; protected $exportContextDataType = ''; @@ -2724,7 +2724,7 @@ public function getEndTime() { return $this->endTime; } - public function setError(Google_Service_SQLAdmin_OperationError $error) + public function setError(Google_Service_SQLAdmin_OperationErrors $error) { $this->error = $error; } @@ -2873,13 +2873,14 @@ public function getMessage() } } -class Google_Service_SQLAdmin_OperationError extends Google_Collection +class Google_Service_SQLAdmin_OperationErrors extends Google_Collection { protected $collection_key = 'errors'; protected $internal_gapi_mappings = array( ); protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; protected $errorsDataType = 'array'; + public $kind; public function setErrors($errors) @@ -2890,6 +2891,14 @@ public function getErrors() { return $this->errors; } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } } class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection From 729447ccd23caa6527022f88528f4e5156fe8022 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 8 Apr 2015 16:59:23 -0700 Subject: [PATCH 0723/1274] Fix missing value errors to be more helpful Fixes #517 --- .gitignore | 1 + examples/batch.php | 3 ++- examples/fileupload.php | 6 ++---- examples/idtoken.php | 6 ++---- examples/multi-api.php | 6 ++---- examples/service-account.php | 3 ++- examples/simple-query.php | 3 ++- examples/simplefileupload.php | 6 ++---- examples/templates/base.php | 6 +++--- examples/user-example.php | 6 ++---- 10 files changed, 20 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index b357486a2..fc02bd481 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store phpunit.xml composer.lock vendor diff --git a/examples/batch.php b/examples/batch.php index 5183e586a..3c8812f51 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -34,8 +34,9 @@ $client->setApplicationName("Client_Library_Examples"); $apiKey = ""; // Change to your API key. // Warn if the API key isn't changed! -if ($apiKey == '') { +if (strpos($apiKey, "<") !== false) { echo missingApiKeyWarning(); + exit; } else { $client->setDeveloperKey($apiKey); diff --git a/examples/fileupload.php b/examples/fileupload.php index 6a20390d9..03a928e57 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -109,11 +109,9 @@ fclose($handle); } echo pageHeader("File Upload - Uploading a large file"); -if ( - $client_id == '' - || $client_secret == '' - || $redirect_uri == '') { +if (strpos($client_id, "googleusercontent") == false) { echo missingClientSecretsWarning(); + exit; } ?>
diff --git a/examples/idtoken.php b/examples/idtoken.php index e3991e984..af21b8d6f 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -79,11 +79,9 @@ function. We store the resultant access token } echo pageHeader("User Query - Retrieving An Id Token"); -if ( - $client_id == '' - || $client_secret == '' - || $redirect_uri == '') { +if (strpos($client_id, "googleusercontent") == false) { echo missingClientSecretsWarning(); + exit; } ?>
diff --git a/examples/multi-api.php b/examples/multi-api.php index 86f682cba..e518b5da7 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -88,11 +88,9 @@ } echo pageHeader("User Query - Multiple APIs"); -if ( - $client_id == '' - || $client_secret == '' - || $redirect_uri == '') { +if (strpos($client_id, "googleusercontent") == false) { echo missingClientSecretsWarning(); + exit; } ?>
diff --git a/examples/service-account.php b/examples/service-account.php index 45dc75c05..46005f5e7 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -41,10 +41,11 @@ $key_file_location = ''; //key.p12 echo pageHeader("Service Account Access"); -if ($client_id == '' +if (strpos($client_id, "googleusercontent") == false || !strlen($service_account_name) || !strlen($key_file_location)) { echo missingServiceAccountDetailsWarning(); + exit; } $client = new Google_Client(); diff --git a/examples/simple-query.php b/examples/simple-query.php index b3fd12806..c0f1149cf 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -37,8 +37,9 @@ $client->setApplicationName("Client_Library_Examples"); $apiKey = ""; // Change this line. // Warn if the API key isn't changed. -if ($apiKey == '') { +if (strpos($apiKey, "<") !== false) { echo missingApiKeyWarning(); + exit; } $client->setDeveloperKey($apiKey); diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php index 23b964f22..452599878 100644 --- a/examples/simplefileupload.php +++ b/examples/simplefileupload.php @@ -96,11 +96,9 @@ } echo pageHeader("File Upload - Uploading a small file"); -if ( - $client_id == '' - || $client_secret == '' - || $redirect_uri == '') { +if (strpos($client_id, "googleusercontent") == false) { echo missingClientSecretsWarning(); + exit; } ?>
diff --git a/examples/templates/base.php b/examples/templates/base.php index 32643247a..34241e9e4 100644 --- a/examples/templates/base.php +++ b/examples/templates/base.php @@ -52,7 +52,7 @@ function missingApiKeyWarning() "; } else { $ret = "Warning: You need to set a Simple API Access key from the Google API console:"; - $ret .= "\nhttp://developers.google.com/console"; + $ret .= "\nhttp://developers.google.com/console\n"; } return $ret; } @@ -68,7 +68,7 @@ function missingClientSecretsWarning() "; } else { $ret = "Warning: You need to set Client ID, Client Secret and Redirect URI from the"; - $ret .= "Google API console:\nhttp://developers.google.com/console"; + $ret .= " Google API console:\nhttp://developers.google.com/console\n"; } return $ret; } @@ -84,7 +84,7 @@ function missingServiceAccountDetailsWarning() "; } else { $ret = "Warning: You need to set Client ID, Email address and the location of the Key from the"; - $ret .= "Google API console:\nhttp://developers.google.com/console"; + $ret .= " Google API console:\nhttp://developers.google.com/console\n"; } return $ret; } diff --git a/examples/user-example.php b/examples/user-example.php index 9cfd3d20a..df09e456e 100644 --- a/examples/user-example.php +++ b/examples/user-example.php @@ -98,11 +98,9 @@ function. We store the resultant access token } echo pageHeader("User Query - URL Shortener"); -if ( - $client_id == '' - || $client_secret == '' - || $redirect_uri == '') { +if (strpos($client_id, "googleusercontent") == false) { echo missingClientSecretsWarning(); + exit; } ?>
From d636c4775a99453ddb87f5dd60bbc207bdf3713f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:39 -0700 Subject: [PATCH 0724/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 95 ++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 5cc6b7896..879c0e751 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -39,6 +39,7 @@ class Google_Service_Container extends Google_Service public $projects_operations; public $projects_zones_clusters; public $projects_zones_operations; + public $projects_zones_tokens; /** @@ -218,6 +219,41 @@ public function __construct(Google_Client $client) ) ) ); + $this->projects_zones_tokens = new Google_Service_Container_ProjectsZonesTokens_Resource( + $this, + $this->serviceName, + 'tokens', + array( + 'methods' => array( + 'get' => array( + 'path' => '{masterProjectId}/zones/{zoneId}/tokens/{projectNumber}/{clusterName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'masterProjectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectNumber' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -445,6 +481,39 @@ public function listProjectsZonesOperations($projectId, $zoneId, $optParams = ar return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse"); } } +/** + * The "tokens" collection of methods. + * Typical usage is: + * + * $containerService = new Google_Service_Container(...); + * $tokens = $containerService->tokens; + * + */ +class Google_Service_Container_ProjectsZonesTokens_Resource extends Google_Service_Resource +{ + + /** + * Gets a compute-rw scoped OAuth2 access token for . Authentication is + * performed to ensure that the caller is a member of and that the request is + * coming from the expected master VM for the specified cluster. See go/gke- + * cross-project-auth for more details. (tokens.get) + * + * @param string $masterProjectId The hosted master project from which this + * request is coming. + * @param string $zoneId The zone of the specified cluster. + * @param string $projectNumber The project number for which the access token is + * being requested. + * @param string $clusterName The name of the specified cluster. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Token + */ + public function get($masterProjectId, $zoneId, $projectNumber, $clusterName, $optParams = array()) + { + $params = array('masterProjectId' => $masterProjectId, 'zoneId' => $zoneId, 'projectNumber' => $projectNumber, 'clusterName' => $clusterName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Container_Token"); + } +} @@ -875,3 +944,29 @@ public function getScopes() return $this->scopes; } } + +class Google_Service_Container_Token extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accessToken; + public $expiryTimeSeconds; + + + public function setAccessToken($accessToken) + { + $this->accessToken = $accessToken; + } + public function getAccessToken() + { + return $this->accessToken; + } + public function setExpiryTimeSeconds($expiryTimeSeconds) + { + $this->expiryTimeSeconds = $expiryTimeSeconds; + } + public function getExpiryTimeSeconds() + { + return $this->expiryTimeSeconds; + } +} From d2e026bd778f93a38d0bbe440c74f9fd4a018c89 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:39 -0700 Subject: [PATCH 0725/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 866e1f574..6c6f03239 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -1467,6 +1467,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'port' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'insert' => array( 'path' => '{project}/zones/{zone}/instances', @@ -4450,6 +4454,8 @@ public function get($project, $zone, $instance, $optParams = array()) * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. + * + * @opt_param int port Which COM port to retrieve data from. * @return Google_Service_Compute_SerialPortOutput */ public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) From 6fc4028862e8916d2f93f7ce3fb9b9a5de02596c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:40 -0700 Subject: [PATCH 0726/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 96 --------------------------------- 1 file changed, 96 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 34789ba10..7fca62e22 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -55,7 +55,6 @@ class Google_Service_Genomics extends Google_Service public $references; public $references_bases; public $referencesets; - public $streamingVariantStore; public $variants; public $variantsets; @@ -591,20 +590,6 @@ public function __construct(Google_Client $client) ) ) ); - $this->streamingVariantStore = new Google_Service_Genomics_StreamingVariantStore_Resource( - $this, - $this->serviceName, - 'streamingVariantStore', - array( - 'methods' => array( - 'streamvariants' => array( - 'path' => 'streamingVariantStore/streamvariants', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); $this->variants = new Google_Service_Genomics_Variants_Resource( $this, $this->serviceName, @@ -1674,33 +1659,6 @@ public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postB } } -/** - * The "streamingVariantStore" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $streamingVariantStore = $genomicsService->streamingVariantStore; - * - */ -class Google_Service_Genomics_StreamingVariantStore_Resource extends Google_Service_Resource -{ - - /** - * Returns a stream of all the variants matching the search request, ordered by - * reference name, position, and ID. (streamingVariantStore.streamvariants) - * - * @param Google_StreamVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function streamvariants(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('streamvariants', array($params), "Google_Service_Genomics_Variant"); - } -} - /** * The "variants" collection of methods. * Typical usage is: @@ -5040,60 +4998,6 @@ public function getVariants() } } -class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $callSetIds; - public $end; - public $referenceName; - public $start; - public $variantSetIds; - - - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - class Google_Service_Genomics_Transcript extends Google_Collection { protected $collection_key = 'exons'; From af453b5244e0ebb4d5b2c5ffaa156c7a674aa94d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:40 -0700 Subject: [PATCH 0727/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 1091 ++++++++++++++++++++++++++++++-- 1 file changed, 1025 insertions(+), 66 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 22dae0915..0ecc5f9fc 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -54,6 +54,8 @@ class Google_Service_YouTube extends Google_Service public $channelBanners; public $channelSections; public $channels; + public $commentThreads; + public $comments; public $guideCategories; public $i18nLanguages; public $i18nRegions; @@ -447,6 +449,185 @@ public function __construct(Google_Client $client) ) ) ); + $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( + $this, + $this->serviceName, + 'commentThreads', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'shareOnGooglePlus' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'searchTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allThreadsRelatedToChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_YouTube_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'comments', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'markAsSpam' => array( + 'path' => 'comments/markAsSpam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setModerationStatus' => array( + 'path' => 'comments/setModerationStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'banAuthor' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'comments', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( $this, $this->serviceName, @@ -1659,8 +1840,9 @@ public function insert($part, Google_Service_YouTube_Caption $postBody, $optPara * captions.download method provides the ability to retrieve a caption track. * (captions.listCaptions) * - * @param string $part The part parameter specifies the caption resource parts - * that the API response will include. + * @param string $part The part parameter specifies a comma-separated list of + * one or more caption resource parts that the API response will include. The + * part names that you can include in the parameter value are id and snippet. * @param string $videoId The videoId parameter specifies the YouTube video ID * of the video for which the API should return caption tracks. * @param array $optParams Optional parameters. @@ -2045,112 +2227,369 @@ public function update($part, Google_Service_YouTube_Channel $postBody, $optPara } /** - * The "guideCategories" collection of methods. + * The "commentThreads" collection of methods. * Typical usage is: * * $youtubeService = new Google_Service_YouTube(...); - * $guideCategories = $youtubeService->guideCategories; + * $commentThreads = $youtubeService->commentThreads; * */ -class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource +class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource { /** - * Returns a list of categories that can be associated with YouTube channels. - * (guideCategories.listGuideCategories) + * Creates a new comment thread and top level comment. (commentThreads.insert) * - * @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. + * @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. * - * 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. + * The part names that you can include in the parameter value are id and + * snippet. However only snippet contains properties that can be set. + * @param Google_CommentThread $postBody * @param array $optParams Optional parameters. * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of guide categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel category ID(s) for the resource(s) that are being retrieved. - * In a guideCategory resource, the id property specifies the YouTube channel - * category ID. - * @opt_param string hl The hl parameter specifies the language that will be - * used for text values in the API response. - * @return Google_Service_YouTube_GuideCategoryListResponse + * @opt_param bool shareOnGooglePlus The shareOnGooglePlus determines whether + * this thread should also be posted on Google+. + * @return Google_Service_YouTube_CommentThread */ - public function listGuideCategories($part, $optParams = array()) + public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) { - $params = array('part' => $part); + $params = array('part' => $part, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); + return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); } -} - -/** - * The "i18nLanguages" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nLanguages = $youtubeService->i18nLanguages; - * - */ -class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource -{ /** - * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) + * Returns a list of comment threads that match the API request parameters. + * (commentThreads.listCommentThreads) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nLanguage resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $part The part parameter specifies the commentThread resource + * parts that the API response will include. Supported values are id, snippet + * and replies. * @param array $optParams Optional parameters. * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nLanguageListResponse + * @opt_param string searchTerms The searchTerms parameter instructs the API to + * limit the returned comments to those which contain the specified search + * terms. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string allThreadsRelatedToChannelId The + * allThreadsRelatedToChannelId parameter instructs the API to return the + * comment threads of all videos of the channel and the channel comments as + * well. + * @opt_param string channelId The channelId parameter instructs the API to + * return the comment threads for all the channel comments (not including + * comments left on videos). + * @opt_param string videoId The videoId parameter instructs the API to return + * the comment threads for the video specified by the video id. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string moderationStatus Set this parameter to limit the returned + * comment threads to a particular moderation state. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string textFormat Set this parameter's value to html or plainText + * to instruct the API to return the comments left by users in html formatted or + * in plain text. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. + * @return Google_Service_YouTube_CommentThreadListResponse */ - public function listI18nLanguages($part, $optParams = array()) + public function listCommentThreads($part, $optParams = array()) { $params = array('part' => $part); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); + return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); + } + + /** + * Modifies an existing comment. (commentThreads.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 + * and replies. However only snippet contains properties that can be updated. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_CommentThread + */ + public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); } } /** - * The "i18nRegions" collection of methods. + * The "comments" collection of methods. * Typical usage is: * * $youtubeService = new Google_Service_YouTube(...); - * $i18nRegions = $youtubeService->i18nRegions; + * $comments = $youtubeService->comments; * */ -class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource +class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource { /** - * Returns a list of supported regions. (i18nRegions.listI18nRegions) + * Deletes a comment. (comments.delete) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nRegion resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $id The id parameter specifies the comment ID for the resource + * that should be deleted. * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nRegionListResponse */ - public function listI18nRegions($part, $optParams = array()) + public function delete($id, $optParams = array()) { - $params = array('part' => $part); + $params = array('id' => $id); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); + return $this->call('delete', array($params)); + } + + /** + * Creates a new comment. + * + * Note: to create a top level comment it is also necessary to create a comment + * thread. Both are accomplished through the commentThreads resource. + * (comments.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 id and + * snippet. However only snippet contains properties that can be set. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); + } + + /** + * Returns a list of comments that match the API request parameters. + * (comments.listComments) + * + * @param string $part The part parameter specifies the comment resource parts + * that the API response will include. Supported values are id and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string parentId The parentId parameter specifies the ID of the + * comment for which replies should be retrieved. + * + * Note: Currently YouTube features only one level of replies (ie replies to top + * level comments). However replies to replies may be supported in the future. + * @opt_param string textFormat Set this parameter's value to html or plainText + * to instruct the API to return the comments left by users formatted as HTML or + * as plain text. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment IDs for the resources that should be retrieved. + * @return Google_Service_YouTube_CommentListResponse + */ + public function listComments($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); + } + + /** + * Expresses the caller's opinion that a comment is spam. (comments.markAsSpam) + * + * @param string $id The id parameter specifies a comma-separated list of IDs of + * comments which should get flagged as spam. + * @param array $optParams Optional parameters. + */ + public function markAsSpam($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params)); + } + + /** + * Sets the moderation status of one or more comments. + * (comments.setModerationStatus) + * + * @param string $id The id parameter specifies a comma-separated list of IDs of + * comments whose moderation status should be updated. + * @param string $moderationStatus Determines the new moderation status of the + * specified comments. + * @param array $optParams Optional parameters. + * + * @opt_param bool banAuthor The banAuthor paramter, if set to true, adds the + * author of the comment to the ban list. This means all future comments of the + * author will autmomatically be rejected. + * + * Note: This parameter is only valid in combination with moderationStatus + * 'rejected'. + */ + public function setModerationStatus($id, $moderationStatus, $optParams = array()) + { + $params = array('id' => $id, 'moderationStatus' => $moderationStatus); + $params = array_merge($params, $optParams); + return $this->call('setModerationStatus', array($params)); + } + + /** + * Modifies an existing comment. (comments.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 + * snippet. However only snippet contains properties that can be updated. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Comment"); + } +} + +/** + * The "guideCategories" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listGuideCategories) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more guideCategory resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * guideCategory resource, the snippet property contains other properties, such + * as the category's title. If you set part=snippet, the API response will also + * contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of guide categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel category ID(s) for the resource(s) that are being retrieved. + * In a guideCategory resource, the id property specifies the YouTube channel + * category ID. + * @opt_param string hl The hl parameter specifies the language that will be + * used for text values in the API response. + * @return Google_Service_YouTube_GuideCategoryListResponse + */ + public function listGuideCategories($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); + } +} + +/** + * The "i18nLanguages" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nLanguages = $youtubeService->i18nLanguages; + * + */ +class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more i18nLanguage resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nLanguageListResponse + */ + public function listI18nLanguages($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); + } +} + +/** + * The "i18nRegions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nRegions = $youtubeService->i18nRegions; + * + */ +class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of supported regions. (i18nRegions.listI18nRegions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more i18nRegion resource properties that the API response will + * include. The part names that you can include in the parameter value are id + * and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nRegionListResponse + */ + public function listI18nRegions($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); } } @@ -5279,6 +5718,23 @@ public function getPings() } } +class Google_Service_YouTube_ChannelId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_YouTube_ChannelListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -5938,6 +6394,509 @@ public function getTopicIds() } } +class Google_Service_YouTube_Comment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; + protected $authorChannelIdDataType = ''; + public $authorChannelUrl; + public $authorDisplayName; + public $authorGoogleplusProfileUrl; + public $authorProfileImageUrl; + public $canRate; + public $channelId; + public $likeCount; + public $moderationStatus; + public $parentId; + public $publishedAt; + public $textDisplay; + public $textOriginal; + public $updatedAt; + public $videoId; + public $viewerRating; + + + public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) + { + $this->authorChannelId = $authorChannelId; + } + public function getAuthorChannelId() + { + return $this->authorChannelId; + } + public function setAuthorChannelUrl($authorChannelUrl) + { + $this->authorChannelUrl = $authorChannelUrl; + } + public function getAuthorChannelUrl() + { + return $this->authorChannelUrl; + } + public function setAuthorDisplayName($authorDisplayName) + { + $this->authorDisplayName = $authorDisplayName; + } + public function getAuthorDisplayName() + { + return $this->authorDisplayName; + } + public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) + { + $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; + } + public function getAuthorGoogleplusProfileUrl() + { + return $this->authorGoogleplusProfileUrl; + } + public function setAuthorProfileImageUrl($authorProfileImageUrl) + { + $this->authorProfileImageUrl = $authorProfileImageUrl; + } + public function getAuthorProfileImageUrl() + { + return $this->authorProfileImageUrl; + } + public function setCanRate($canRate) + { + $this->canRate = $canRate; + } + public function getCanRate() + { + return $this->canRate; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setLikeCount($likeCount) + { + $this->likeCount = $likeCount; + } + public function getLikeCount() + { + return $this->likeCount; + } + public function setModerationStatus($moderationStatus) + { + $this->moderationStatus = $moderationStatus; + } + public function getModerationStatus() + { + return $this->moderationStatus; + } + public function setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTextDisplay($textDisplay) + { + $this->textDisplay = $textDisplay; + } + public function getTextDisplay() + { + return $this->textDisplay; + } + public function setTextOriginal($textOriginal) + { + $this->textOriginal = $textOriginal; + } + public function getTextOriginal() + { + return $this->textOriginal; + } + public function setUpdatedAt($updatedAt) + { + $this->updatedAt = $updatedAt; + } + public function getUpdatedAt() + { + return $this->updatedAt; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setViewerRating($viewerRating) + { + $this->viewerRating = $viewerRating; + } + public function getViewerRating() + { + return $this->viewerRating; + } +} + +class Google_Service_YouTube_CommentThread extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; + protected $repliesDataType = ''; + protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) + { + $this->replies = $replies; + } + public function getReplies() + { + return $this->replies; + } + public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_CommentThread'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentThreadReplies extends Google_Collection +{ + protected $collection_key = 'comments'; + protected $internal_gapi_mappings = array( + ); + protected $commentsType = 'Google_Service_YouTube_Comment'; + protected $commentsDataType = 'array'; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } +} + +class Google_Service_YouTube_CommentThreadSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canReply; + public $channelId; + public $isPublic; + protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; + protected $topLevelCommentDataType = ''; + public $totalReplyCount; + public $videoId; + + + public function setCanReply($canReply) + { + $this->canReply = $canReply; + } + public function getCanReply() + { + return $this->canReply; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setIsPublic($isPublic) + { + $this->isPublic = $isPublic; + } + public function getIsPublic() + { + return $this->isPublic; + } + public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) + { + $this->topLevelComment = $topLevelComment; + } + public function getTopLevelComment() + { + return $this->topLevelComment; + } + public function setTotalReplyCount($totalReplyCount) + { + $this->totalReplyCount = $totalReplyCount; + } + public function getTotalReplyCount() + { + return $this->totalReplyCount; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + class Google_Service_YouTube_ContentRating extends Google_Collection { protected $collection_key = 'djctqRatingReasons'; From 9fd172612036f8282289ce0e6d3e18a4ece5dbea Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:40 -0700 Subject: [PATCH 0728/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 512e8e8cb..892caf5c4 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -3376,6 +3376,7 @@ class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection public $itemsTotal; public $itemsValid; public $kind; + public $lastUploadDate; public $processingStatus; protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; protected $warningsDataType = 'array'; @@ -3421,6 +3422,14 @@ public function getKind() { return $this->kind; } + public function setLastUploadDate($lastUploadDate) + { + $this->lastUploadDate = $lastUploadDate; + } + public function getLastUploadDate() + { + return $this->lastUploadDate; + } public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; From 173c0743a27fc639423c7dfb901e2e8abfe27373 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:41 -0700 Subject: [PATCH 0729/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 1ec525b7c..f0fac34fe 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -2903,6 +2903,7 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection ); protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; protected $activeTimeRangesDataType = 'array'; + public $annotatedAssetId; public $annotatedLocation; public $annotatedUser; public $bootMode; @@ -2937,6 +2938,14 @@ public function getActiveTimeRanges() { return $this->activeTimeRanges; } + public function setAnnotatedAssetId($annotatedAssetId) + { + $this->annotatedAssetId = $annotatedAssetId; + } + public function getAnnotatedAssetId() + { + return $this->annotatedAssetId; + } public function setAnnotatedLocation($annotatedLocation) { $this->annotatedLocation = $annotatedLocation; From 25f0645485cc50cdd48c749ed9d17fc66d5451d7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 10 Apr 2015 05:32:41 -0700 Subject: [PATCH 0730/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 125 ++++++++++++++++++++++++++++++++- 1 file changed, 124 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index 71e75ef7a..c39b10ae1 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -82,6 +82,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'delete' => array( + 'path' => '{userId}/dataSources/{dataSourceId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => '{userId}/dataSources/{dataSourceId}', 'httpMethod' => 'GET', @@ -360,6 +375,23 @@ public function create($userId, Google_Service_Fitness_DataSource $postBody, $op return $this->call('create', array($params), "Google_Service_Fitness_DataSource"); } + /** + * Delete the data source if there are no datapoints associated with it + * (dataSources.delete) + * + * @param string $userId Retrieve a data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function delete($userId, $dataSourceId, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Fitness_DataSource"); + } + /** * Returns a data source identified by a data stream ID. (dataSources.get) * @@ -1056,10 +1088,28 @@ public function getSession() } } +class Google_Service_Fitness_MapValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fpVal; + + + public function setFpVal($fpVal) + { + $this->fpVal = $fpVal; + } + public function getFpVal() + { + return $this->fpVal; + } +} + class Google_Service_Fitness_Session extends Google_Model { protected $internal_gapi_mappings = array( ); + public $activeTimeMillis; public $activityType; protected $applicationType = 'Google_Service_Fitness_Application'; protected $applicationDataType = ''; @@ -1071,6 +1121,14 @@ class Google_Service_Fitness_Session extends Google_Model public $startTimeMillis; + public function setActiveTimeMillis($activeTimeMillis) + { + $this->activeTimeMillis = $activeTimeMillis; + } + public function getActiveTimeMillis() + { + return $this->activeTimeMillis; + } public function setActivityType($activityType) { $this->activityType = $activityType; @@ -1137,14 +1195,28 @@ public function getStartTimeMillis() } } -class Google_Service_Fitness_Value extends Google_Model +class Google_Service_Fitness_Value extends Google_Collection { + protected $collection_key = 'mapVal'; protected $internal_gapi_mappings = array( ); + public $floatListVal; public $fpVal; + public $int64ListVal; public $intVal; + protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry'; + protected $mapValDataType = 'array'; + public $stringVal; + public function setFloatListVal($floatListVal) + { + $this->floatListVal = $floatListVal; + } + public function getFloatListVal() + { + return $this->floatListVal; + } public function setFpVal($fpVal) { $this->fpVal = $fpVal; @@ -1153,6 +1225,14 @@ public function getFpVal() { return $this->fpVal; } + public function setInt64ListVal($int64ListVal) + { + $this->int64ListVal = $int64ListVal; + } + public function getInt64ListVal() + { + return $this->int64ListVal; + } public function setIntVal($intVal) { $this->intVal = $intVal; @@ -1161,4 +1241,47 @@ public function getIntVal() { return $this->intVal; } + public function setMapVal($mapVal) + { + $this->mapVal = $mapVal; + } + public function getMapVal() + { + return $this->mapVal; + } + public function setStringVal($stringVal) + { + $this->stringVal = $stringVal; + } + public function getStringVal() + { + return $this->stringVal; + } +} + +class Google_Service_Fitness_ValueMapValEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + protected $valueType = 'Google_Service_Fitness_MapValue'; + protected $valueDataType = ''; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue(Google_Service_Fitness_MapValue $value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } } From 75cefee0e490ddfedbb39178c151db9db7f78d71 Mon Sep 17 00:00:00 2001 From: Nebez Briefkani Date: Fri, 10 Apr 2015 12:33:23 -0400 Subject: [PATCH 0731/1274] Added support for newer json service accounts Left old json service account functionality untouched to ensure backwards compatibility isn't broken. Added test for both formats of json service files. --- src/Google/Signer/P12.php | 2 ++ tests/general/ApiClientTest.php | 12 +++++++++++- tests/general/testdata/service-12345.json | 2 +- tests/general/testdata/service-rsa-12345.json | 7 +++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tests/general/testdata/service-rsa-12345.json diff --git a/src/Google/Signer/P12.php b/src/Google/Signer/P12.php index ea007ec1d..7d3c167ff 100644 --- a/src/Google/Signer/P12.php +++ b/src/Google/Signer/P12.php @@ -46,6 +46,8 @@ public function __construct($p12, $password) // at the time. if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { $this->privateKey = openssl_pkey_get_private($p12); + } elseif($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) { + $this->privateKey = openssl_pkey_get_private($p12); } else { // This throws on error $certs = array(); diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index 58c3e5066..5d455c245 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -189,7 +189,7 @@ public function testIniConfig() $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') ); } - + public function testServiceAccountJson() { $client = new Google_Client(); @@ -199,4 +199,14 @@ public function testServiceAccountJson() ); $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c); } + + public function testRsaServiceAccountJson() + { + $client = new Google_Client(); + $c = $client->loadServiceAccountJson( + __DIR__ . "/testdata/service-rsa-12345.json", + array() + ); + $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c); + } } diff --git a/tests/general/testdata/service-12345.json b/tests/general/testdata/service-12345.json index a6a2df0ed..4160d93f5 100644 --- a/tests/general/testdata/service-12345.json +++ b/tests/general/testdata/service-12345.json @@ -1,6 +1,6 @@ { "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75", - "private_key": "-----BEGIN RSA PRIVATE KEY-----MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqFUJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+roOHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA==-----END RSA PRIVATE KEY-----", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALatQBvyVfVxdKFT\n3jMHUk0hSEs9Z3WaEw1q+597Fo+f2j5xOIzzzHKX4twWtSYWpSNTaVsFBX7cYpKu\nxYD8oiFnb/Djmud36h4yZsinmoTAi8tn7ldHMi3VICt05IKNRYPU14AQ/FANBvzZ\nxPUxVmf2Q8qZ1/HhXRGE0GLhJGMtAgMBAAECgYAB1BogLXzOyCPyuXQv7pLUUtD2\nb9bpRnGKYNfD8Od46JC2r0txnb8eJocOzOtjRjbA88TKNHKpomsaLMWtVNoKlzMX\n4DdWk0we4knIa2ZNc3rHYQIHVTESYUa3fH/I/t2XBmbiwyYdegfXl7OmxHb9kekk\nQ1HBKq2SA2LRHWydwQJBAPIdT6s1KvUVsdW7JVu3MxMSlSc2dyQV9ay44wuxYaVV\nfvV7BM/J+/oHSh4GU2Os+kqRHOuouHm2TQ3gsQlBsqcCQQDBJ0iDoYZozVQB36eE\nlPAzoK6H+U21rx5EErFNYu97OKWn+z8kwbGtBU8CSJhkY/OQGmpg6MpoJO/Md03Y\nxVoLAkAFeZg1nOwtwqHU3XiIzGnBQqhQzLCBBmYZ08x+lTJKFNbcIj4HnN+v1b5d\nU3NLS7wVN5bZ1WTmi7LOX4hhVzT9AkBBbQQECleT8lENXWvJ3gVLB5d22Xx4GTxA\nRLCoDOYfr/103Ab0dWOwvsaXeG2eO7kJy9jSwKenBTPw50yIK7knAkBC2J/z6X7l\nB/dDRTxdd0gCG7JIy9N3cUgHBmDH2eycmPncWGJ+aZrK1p9NmAytP+Ksi4AGMJX5\nH5cT1I/UOEn1\n-----END PRIVATE KEY-----\n", "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com", "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com", "type": "service_account" diff --git a/tests/general/testdata/service-rsa-12345.json b/tests/general/testdata/service-rsa-12345.json new file mode 100644 index 000000000..a6a2df0ed --- /dev/null +++ b/tests/general/testdata/service-rsa-12345.json @@ -0,0 +1,7 @@ +{ + "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75", + "private_key": "-----BEGIN RSA PRIVATE KEY-----MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqFUJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+roOHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA==-----END RSA PRIVATE KEY-----", + "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com", + "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com", + "type": "service_account" +} \ No newline at end of file From 06768a4ab08026b2d2b1ebca185a93818e08eb1b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 11 Apr 2015 05:33:40 -0700 Subject: [PATCH 0732/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index 9ae6717ea..209a95732 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dns (v1beta1). + * Service definition for Dns (v1). * *

* The Google Cloud DNS API provides services for configuring and serving @@ -55,8 +55,8 @@ class Google_Service_Dns extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dns/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->servicePath = 'dns/v1/projects/'; + $this->version = 'v1'; $this->serviceName = 'dns'; $this->changes = new Google_Service_Dns_Changes_Resource( From ca2e3d5bd6d71860bd089ef148341f15330bda08 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 11 Apr 2015 05:33:40 -0700 Subject: [PATCH 0733/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 170 +++++---------------------------- 1 file changed, 22 insertions(+), 148 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 786eef4a0..96f9c8bfb 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -587,18 +587,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -607,10 +599,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'copy' => array( 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', @@ -636,11 +624,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( + 'ifSourceGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -648,18 +632,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifSourceMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -680,11 +656,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifSourceGenerationNotMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -742,26 +718,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -770,7 +734,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -788,10 +752,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -804,14 +764,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -824,7 +776,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -881,10 +833,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -893,18 +841,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -913,7 +853,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -936,10 +876,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'encryptionKeyHash' => array( - 'location' => 'query', - 'type' => 'string', - ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -948,18 +884,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'encryptionAlgorithm' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', @@ -968,7 +896,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'encryptionKey' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -1591,21 +1519,12 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * @param Google_ComposeRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash Provides the digest of the key for error- - * checking transmission. A digest is in the format of '='. Algorithm, key, and - * key hash must be supplied together. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that - * was used to encrypt the object, if any. Only 'AES256' is supported currently. - * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string destinationPredefinedAcl Apply a predefined set of access * controls to the destination object. - * @opt_param string encryptionKey Provides a base64-encoded 256-bit key that - * was used to encrypt the object, if any. Algorithm, key, and key hash must be - * supplied together. * @return Google_Service_Storage_StorageObject */ public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) @@ -1630,23 +1549,14 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash Provides the digest of the key for error- - * checking transmission. A digest is in the format of '='. Algorithm, key, and - * key hash must be supplied together. - * @opt_param string ifGenerationMatch Makes the operation conditional on - * whether the destination object's current 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 ifGenerationNotMatch Makes the operation conditional on * whether the destination object's current generation does not match 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 ifSourceMetagenerationNotMatch Makes the operation * conditional on whether the source object's current metageneration does not * match the given value. - * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that - * was used to encrypt the object, if any. Only 'AES256' is supported currently. - * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the destination object's current metageneration matches the given * value. @@ -1659,11 +1569,11 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional * on whether the source object's current metageneration 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 encryptionKey Provides a base64-encoded 256-bit key that - * was used to encrypt the object, if any. Algorithm, key, and key hash must be - * supplied together. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the destination object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the destination object's current metageneration does not match the + * given value. * @opt_param string projection Set of properties to return. Defaults to noAcl, * unless the object resource specifies the acl property, when it defaults to * full. @@ -1710,24 +1620,16 @@ public function delete($bucket, $object, $optParams = array()) * @param string $object Name of the object. * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash Provides the digest of the key for error- - * checking transmission. A digest is in the format of '='. Algorithm, key, and - * key hash must be supplied together. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's generation does not match 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 generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that - * would be used to decrypt the object. Only 'AES256' is supported currently. - * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's generation matches the given value. - * @opt_param string encryptionKey Provides a base64-encoded 256-bit key to - * decrypt the object. Algorithm, key, and key hash must be supplied together. + * @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 */ @@ -1746,9 +1648,6 @@ public function get($bucket, $object, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash Provides the digest of the key for error- - * checking transmission. A digest is in the format of '='. Algorithm, key, and - * key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string projection Set of properties to return. Defaults to noAcl, @@ -1756,11 +1655,6 @@ public function get($bucket, $object, $optParams = array()) * full. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. - * @opt_param string encryptionAlgorithm Specifies the encryption algorithm that - * would be used to encrypt the object. Only 'AES256' is supported currently. - * Algorithm, key, and key hash must be supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string contentEncoding If set, sets the contentEncoding property @@ -1770,8 +1664,8 @@ public function get($bucket, $object, $optParams = array()) * content being uploaded. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string encryptionKey Provides a base64-encoded 256-bit key to - * encrypt the object. Algorithm, key, and key hash must be supplied together. + * @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. @@ -1823,28 +1717,18 @@ public function listObjects($bucket, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash For downloading encrypted objects, - * provides the digest of the key for error-checking transmission. A digest is - * in the format of '='. Algorithm, key, and key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string encryptionAlgorithm For downloading encrypted objects, - * specifies the encryption algorithm that would be used to decrypt the object. - * Only 'AES256' is supported currently. Algorithm, key, and key hash must be - * supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string encryptionKey For downloading encrypted objects, provides a - * base64-encoded 256-bit key to decrypt the object. Algorithm, key, and key - * hash must be supplied together. + * @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 */ @@ -1863,28 +1747,18 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string encryptionKeyHash For downloading encrypted objects, - * provides the digest of the key for error-checking transmission. A digest is - * in the format of '='. Algorithm, key, and key hash must be supplied together. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this object. * @opt_param string ifGenerationNotMatch Makes the operation conditional on * whether the object's current generation does not match the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the object's current metageneration does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string encryptionAlgorithm For downloading encrypted objects, - * specifies the encryption algorithm that would be used to decrypt the object. - * Only 'AES256' is supported currently. Algorithm, key, and key hash must be - * supplied together. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. - * @opt_param string encryptionKey For downloading encrypted objects, provides a - * base64-encoded 256-bit key to decrypt the object. Algorithm, key, and key - * hash must be supplied together. + * @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 */ From 9625110d6641a7a0a78af7c12c733257b893bac1 Mon Sep 17 00:00:00 2001 From: Cesar Rodriguez Date: Mon, 13 Apr 2015 20:26:00 +0200 Subject: [PATCH 0734/1274] removed unused variables in IoTest --- tests/general/IoTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php index 212219e98..2097cb490 100644 --- a/tests/general/IoTest.php +++ b/tests/general/IoTest.php @@ -48,21 +48,21 @@ public function testStreamProcessEntityRequest() { $client = $this->getClient(); $io = new Google_IO_Stream($client); - $this->processEntityRequest($io, $client); + $this->processEntityRequest($io); } public function testStreamCacheHit() { $client = $this->getClient(); $io = new Google_IO_Stream($client); - $this->cacheHit($io, $client); + $this->cacheHit($io); } public function testStreamAuthCache() { $client = $this->getClient(); $io = new Google_IO_Stream($client); - $this->authCache($io, $client); + $this->authCache($io); } /** @@ -99,7 +99,7 @@ public function testCurlProcessEntityRequest() } $client = $this->getClient(); $io = new Google_IO_Curl($client); - $this->processEntityRequest($io, $client); + $this->processEntityRequest($io); } public function testCurlCacheHit() @@ -109,7 +109,7 @@ public function testCurlCacheHit() } $client = $this->getClient(); $io = new Google_IO_Curl($client); - $this->cacheHit($io, $client); + $this->cacheHit($io); } public function testCurlAuthCache() @@ -119,7 +119,7 @@ public function testCurlAuthCache() } $client = $this->getClient(); $io = new Google_IO_Curl($client); - $this->authCache($io, $client); + $this->authCache($io); } /** @@ -224,7 +224,7 @@ public function invalidRequest($io) $io->makeRequest($req); } - public function cacheHit($io, $client) + public function cacheHit($io) { $url = "http://www.googleapis.com"; // Create a cacheable request/response. @@ -254,7 +254,7 @@ public function cacheHit($io, $client) $this->assertEquals(200, $res->getResponseHttpCode()); } - public function authCache($io, $client) + public function authCache($io) { $url = "http://www.googleapis.com/protected/resource"; @@ -337,7 +337,7 @@ public function responseChecker($io) } } - public function processEntityRequest($io, $client) + public function processEntityRequest($io) { $req = new Google_Http_Request("http://localhost.com"); $req->setRequestMethod("POST"); From c619552916d3238f2b79d1218246147131b66eee Mon Sep 17 00:00:00 2001 From: Cesar Rodriguez Date: Mon, 13 Apr 2015 21:50:52 +0200 Subject: [PATCH 0735/1274] unused private variables --- src/Google/Auth/AppIdentity.php | 1 - src/Google/Auth/Simple.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index ba7e720b7..5fb66999d 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -32,7 +32,6 @@ class Google_Auth_AppIdentity extends Google_Auth_Abstract { const CACHE_PREFIX = "Google_Auth_AppIdentity::"; - private $key = null; private $client; private $token = false; private $tokenScopes = false; diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index 69476c714..9a8e58c05 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -26,7 +26,6 @@ */ class Google_Auth_Simple extends Google_Auth_Abstract { - private $key = null; private $client; public function __construct(Google_Client $client, $config = null) From b10075d531db375ed75e0bd8ec871ceba081303b Mon Sep 17 00:00:00 2001 From: Cesar Rodriguez Date: Mon, 13 Apr 2015 22:23:44 +0200 Subject: [PATCH 0736/1274] fixed documentation --- src/Google/IO/Abstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php index ea89ca57e..34a3fc5cd 100644 --- a/src/Google/IO/Abstract.php +++ b/src/Google/IO/Abstract.php @@ -114,8 +114,8 @@ public function setCachedRequest(Google_Http_Request $request) /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, + * @param Google_Http_Request $request the http request to be executed + * @return Google_Http_Request http request with the response http code, * response headers and response body filled in * @throws Google_IO_Exception on curl or IO error */ @@ -230,7 +230,7 @@ protected function checkMustRevalidateCachedRequest($cached, $request) /** * Update a cached request, using the headers from the last response. - * @param Google_HttpRequest $cached A previously cached response. + * @param Google_Http_Request $cached A previously cached response. * @param mixed Associative array of response headers from the last request. */ protected function updateCachedRequest($cached, $responseHeaders) From 31b5127a3900975df556f30dacbc5378a6108ad7 Mon Sep 17 00:00:00 2001 From: Cesar Rodriguez Date: Tue, 14 Apr 2015 20:36:18 +0200 Subject: [PATCH 0737/1274] removed duplicated parameter --- src/Google/Service/Resource.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 0f7c44eb2..a50afcf23 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -33,7 +33,6 @@ class Google_Service_Resource 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), - 'userip' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), From e62fab380bf30a6092f2f277d427c1f6cb4a53fb Mon Sep 17 00:00:00 2001 From: Cesar Rodriguez Date: Tue, 14 Apr 2015 21:27:29 +0200 Subject: [PATCH 0738/1274] removed service and added servicePath --- src/Google/Service/Resource.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 0f7c44eb2..c86df373f 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -42,15 +42,15 @@ class Google_Service_Resource 'prettyPrint' => array('type' => 'string', 'location' => 'query'), ); - /** @var Google_Service $service */ - private $service; - /** @var Google_Client $client */ private $client; /** @var string $serviceName */ private $serviceName; + /** @var string $servicePath */ + private $servicePath; + /** @var string $resourceName */ private $resourceName; @@ -59,8 +59,8 @@ class Google_Service_Resource public function __construct($service, $serviceName, $resourceName, $resource) { - $this->service = $service; $this->client = $service->getClient(); + $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; $this->resourceName = $resourceName; $this->methods = isset($resource['methods']) ? @@ -173,8 +173,6 @@ public function call($name, $arguments, $expected_class = null) } } - $servicePath = $this->service->servicePath; - $this->client->getLogger()->info( 'Service Call', array( @@ -186,7 +184,7 @@ public function call($name, $arguments, $expected_class = null) ); $url = Google_Http_REST::createRequestUri( - $servicePath, + $this->servicePath, $method['path'], $parameters ); From 186afd75378f10e0d1c2672d31db28bfd173d4e4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 15 Apr 2015 05:37:20 -0700 Subject: [PATCH 0739/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 35573aad2..3700bd282 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -1834,8 +1834,9 @@ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array } /** - * Sets the settings for the user. Unspecified sub-objects will retain the - * existing value. (myconfig.updateUserSettings) + * Sets the settings for the user. If a sub-object is specified, it will + * overwrite the existing sub-object stored in the server. Unspecified sub- + * objects will retain the existing value. (myconfig.updateUserSettings) * * @param Google_Usersettings $postBody * @param array $optParams Optional parameters. @@ -6092,6 +6093,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $infoLink; public $language; public $mainCategory; + public $maturityRating; public $pageCount; public $previewLink; public $printType; @@ -6201,6 +6203,14 @@ public function getMainCategory() { return $this->mainCategory; } + public function setMaturityRating($maturityRating) + { + $this->maturityRating = $maturityRating; + } + public function getMaturityRating() + { + return $this->maturityRating; + } public function setPageCount($pageCount) { $this->pageCount = $pageCount; From 9d6b1bb22f9719af5685edbaae09f349b1c5ffa3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 15 Apr 2015 05:37:21 -0700 Subject: [PATCH 0740/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 114 ++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 7fca62e22..255162623 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -55,6 +55,7 @@ class Google_Service_Genomics extends Google_Service public $references; public $references_bases; public $referencesets; + public $streamingReadstore; public $variants; public $variantsets; @@ -590,6 +591,20 @@ public function __construct(Google_Client $client) ) ) ); + $this->streamingReadstore = new Google_Service_Genomics_StreamingReadstore_Resource( + $this, + $this->serviceName, + 'streamingReadstore', + array( + 'methods' => array( + 'streamreads' => array( + 'path' => 'streamingReadstore/streamreads', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); $this->variants = new Google_Service_Genomics_Variants_Resource( $this, $this->serviceName, @@ -1659,6 +1674,41 @@ public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postB } } +/** + * The "streamingReadstore" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $streamingReadstore = $genomicsService->streamingReadstore; + * + */ +class Google_Service_Genomics_StreamingReadstore_Resource extends Google_Service_Resource +{ + + /** + * Gets a stream of reads for one or more read group sets. Reads search operates + * over a genomic coordinate space of reference sequence & position defined over + * the reference sequences to which the requested read group sets are aligned. + * + * If a target positional range is specified, all reads whose alignment to the + * reference genome overlap the range are returned. + * + * All reads returned are ordered by genomic coordinate (reference sequence & + * position). Reads with equivalent genomic coordinates are returned in a + * deterministic order. (streamingReadstore.streamreads) + * + * @param Google_StreamReadsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_StreamReadsResponse + */ + public function streamreads(Google_Service_Genomics_StreamReadsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('streamreads', array($params), "Google_Service_Genomics_StreamReadsResponse"); + } +} + /** * The "variants" collection of methods. * Typical usage is: @@ -4998,6 +5048,70 @@ public function getVariants() } } +class Google_Service_Genomics_StreamReadsRequest extends Google_Collection +{ + protected $collection_key = 'readGroupSetIds'; + protected $internal_gapi_mappings = array( + ); + public $end; + public $readGroupSetIds; + public $referenceName; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setReadGroupSetIds($readGroupSetIds) + { + $this->readGroupSetIds = $readGroupSetIds; + } + public function getReadGroupSetIds() + { + return $this->readGroupSetIds; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Genomics_StreamReadsResponse extends Google_Collection +{ + protected $collection_key = 'alignments'; + protected $internal_gapi_mappings = array( + ); + protected $alignmentsType = 'Google_Service_Genomics_Read'; + protected $alignmentsDataType = 'array'; + + + public function setAlignments($alignments) + { + $this->alignments = $alignments; + } + public function getAlignments() + { + return $this->alignments; + } +} + class Google_Service_Genomics_Transcript extends Google_Collection { protected $collection_key = 'exons'; From 6c120db2b95f75dc4eae8d141407c762d698f3c0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 15 Apr 2015 05:37:21 -0700 Subject: [PATCH 0741/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 204 +++++++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 96f9c8bfb..398da7aa6 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -862,6 +862,83 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'rewrite' => array( + 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'sourceBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sourceObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifSourceGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'rewriteToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sourceGeneration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'destinationPredefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxBytesRewrittenPerCall' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'update' => array( 'path' => 'b/{bucket}/o/{object}', 'httpMethod' => 'PUT', @@ -1739,6 +1816,70 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); } + /** + * Rewrites a source object to a destination object. Optionally overrides + * metadata. (objects.rewrite) + * + * @param string $sourceBucket Name of the bucket in which to find the source + * object. + * @param string $sourceObject Name of the source object. + * @param string $destinationBucket Name of the bucket in which to store the new + * object. Overrides the provided object metadata's bucket value, if any. + * @param string $destinationObject Name of the new object. Required when the + * object metadata is not otherwise provided. Overrides the object metadata's + * name value, if any. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional + * on whether the source object's generation does not match the given value. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the destination object's current generation does not match the given + * value. + * @opt_param string rewriteToken Include this field (from the previous Rewrite + * response) on each Rewrite request after the first one, until the Rewrite + * response 'done' flag is true. Calls that provide a rewriteToken can omit all + * other request fields, but if included those fields must match the values + * provided in the first rewrite request. + * @opt_param string ifSourceMetagenerationNotMatch Makes the operation + * conditional on whether the source object's current metageneration does not + * match the given value. + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the destination object's current metageneration matches the given + * value. + * @opt_param string sourceGeneration If present, selects a specific revision of + * the source object (as opposed to the latest version, the default). + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. + * @opt_param string ifSourceGenerationMatch Makes the operation conditional on + * whether the source object's generation matches the given value. + * @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that + * will be rewritten per Rewrite request. Most callers shouldn't need to specify + * this parameter - it is primarily in place to support testing. If specified + * the value must be an integral multiple of 1 MiB (1048576). Also, this only + * applies to requests where the source and destination span locations and/or + * storage classes. Finally, this value must not change across Rewrite calls + * else you'll get an error that the rewrite token is invalid. + * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional + * on whether the source object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the destination object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the destination object's current metageneration does not match the + * given value. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the object resource specifies the acl property, when it defaults to + * full. + * @return Google_Service_Storage_RewriteResponse + */ + public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) + { + $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse"); + } + /** * Updates an object's metadata. (objects.update) * @@ -2848,6 +2989,69 @@ public function getPrefixes() } } +class Google_Service_Storage_RewriteResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + public $kind; + public $objectSize; + protected $resourceType = 'Google_Service_Storage_StorageObject'; + protected $resourceDataType = ''; + public $rewriteToken; + public $totalBytesRewritten; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setObjectSize($objectSize) + { + $this->objectSize = $objectSize; + } + public function getObjectSize() + { + return $this->objectSize; + } + public function setResource(Google_Service_Storage_StorageObject $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } + public function setRewriteToken($rewriteToken) + { + $this->rewriteToken = $rewriteToken; + } + public function getRewriteToken() + { + return $this->rewriteToken; + } + public function setTotalBytesRewritten($totalBytesRewritten) + { + $this->totalBytesRewritten = $totalBytesRewritten; + } + public function getTotalBytesRewritten() + { + return $this->totalBytesRewritten; + } +} + class Google_Service_Storage_StorageObject extends Google_Collection { protected $collection_key = 'acl'; From c4187c90531b34f0276c811ce04689968d482a88 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 15 Apr 2015 05:37:21 -0700 Subject: [PATCH 0742/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 106 +++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 9d39016a1..7bfb2f944 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -77,6 +77,10 @@ public function __construct(Google_Client $client) 'path' => 'publicKeys', 'httpMethod' => 'GET', 'parameters' => array(), + ),'getRecaptchaParam' => array( + 'path' => 'getRecaptchaParam', + 'httpMethod' => 'GET', + 'parameters' => array(), ),'resetPassword' => array( 'path' => 'resetPassword', 'httpMethod' => 'POST', @@ -201,6 +205,19 @@ public function getPublicKeys($optParams = array()) return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); } + /** + * Get recaptcha secure param. (relyingparty.getRecaptchaParam) + * + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_GetRecaptchaParamResponse + */ + public function getRecaptchaParam($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getRecaptchaParam', array($params), "Google_Service_IdentityToolkit_GetRecaptchaParamResponse"); + } + /** * Reset password for a user. (relyingparty.resetPassword) * @@ -445,6 +462,41 @@ public function getOobCode() } } +class Google_Service_IdentityToolkit_GetRecaptchaParamResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $recaptchaSiteKey; + public $recaptchaStoken; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRecaptchaSiteKey($recaptchaSiteKey) + { + $this->recaptchaSiteKey = $recaptchaSiteKey; + } + public function getRecaptchaSiteKey() + { + return $this->recaptchaSiteKey; + } + public function setRecaptchaStoken($recaptchaStoken) + { + $this->recaptchaStoken = $recaptchaStoken; + } + public function getRecaptchaStoken() + { + return $this->recaptchaStoken; + } +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -454,6 +506,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq public $context; public $continueUri; public $identifier; + public $oauthConsumerKey; + public $oauthScope; public $openidRealm; public $otaApp; public $providerId; @@ -499,6 +553,22 @@ public function getIdentifier() { return $this->identifier; } + public function setOauthConsumerKey($oauthConsumerKey) + { + $this->oauthConsumerKey = $oauthConsumerKey; + } + public function getOauthConsumerKey() + { + return $this->oauthConsumerKey; + } + public function setOauthScope($oauthScope) + { + $this->oauthScope = $oauthScope; + } + public function getOauthScope() + { + return $this->oauthScope; + } public function setOpenidRealm($openidRealm) { $this->openidRealm = $openidRealm; @@ -831,6 +901,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR public $pendingIdToken; public $postBody; public $requestUri; + public $returnRefreshToken; public function setPendingIdToken($pendingIdToken) @@ -857,6 +928,14 @@ public function getRequestUri() { return $this->requestUri; } + public function setReturnRefreshToken($returnRefreshToken) + { + $this->returnRefreshToken = $returnRefreshToken; + } + public function getReturnRefreshToken() + { + return $this->returnRefreshToken; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model @@ -1331,6 +1410,9 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $localId; public $needConfirmation; public $nickName; + public $oauthAccessToken; + public $oauthAuthorizationCode; + public $oauthExpireIn; public $oauthRequestToken; public $oauthScope; public $originalEmail; @@ -1500,6 +1582,30 @@ public function getNickName() { return $this->nickName; } + public function setOauthAccessToken($oauthAccessToken) + { + $this->oauthAccessToken = $oauthAccessToken; + } + public function getOauthAccessToken() + { + return $this->oauthAccessToken; + } + public function setOauthAuthorizationCode($oauthAuthorizationCode) + { + $this->oauthAuthorizationCode = $oauthAuthorizationCode; + } + public function getOauthAuthorizationCode() + { + return $this->oauthAuthorizationCode; + } + public function setOauthExpireIn($oauthExpireIn) + { + $this->oauthExpireIn = $oauthExpireIn; + } + public function getOauthExpireIn() + { + return $this->oauthExpireIn; + } public function setOauthRequestToken($oauthRequestToken) { $this->oauthRequestToken = $oauthRequestToken; From f3189b1a1f09557e774a9421560d0753266e3854 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 15 Apr 2015 05:37:22 -0700 Subject: [PATCH 0743/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index c39b10ae1..67f3712f4 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -1202,7 +1202,7 @@ class Google_Service_Fitness_Value extends Google_Collection ); public $floatListVal; public $fpVal; - public $int64ListVal; + public $intListVal; public $intVal; protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry'; protected $mapValDataType = 'array'; @@ -1225,13 +1225,13 @@ public function getFpVal() { return $this->fpVal; } - public function setInt64ListVal($int64ListVal) + public function setIntListVal($intListVal) { - $this->int64ListVal = $int64ListVal; + $this->intListVal = $intListVal; } - public function getInt64ListVal() + public function getIntListVal() { - return $this->int64ListVal; + return $this->intListVal; } public function setIntVal($intVal) { From 2376b3c86aa4942e6f1f1530af0a6562adf9befe Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:02 -0700 Subject: [PATCH 0744/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 879c0e751..ac409b70a 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -779,10 +779,19 @@ class Google_Service_Container_MasterAuth extends Google_Model { protected $internal_gapi_mappings = array( ); + public $bearerToken; public $password; public $user; + public function setBearerToken($bearerToken) + { + $this->bearerToken = $bearerToken; + } + public function getBearerToken() + { + return $this->bearerToken; + } public function setPassword($password) { $this->password = $password; From b10a656b542b741291c5c327cc378f72ac93ec40 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:02 -0700 Subject: [PATCH 0745/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 26 ++++------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index e763a4a95..9bc2337d9 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -357,8 +357,9 @@ public function insert($project, $zone, Google_Service_Replicapoolupdater_Rollin * resources. * @opt_param string pageToken Optional. Tag returned by a previous list request * truncated by maxResults. Used to continue a previous list request. - * @opt_param string instanceGroupManager The name of the instance group manager - * used for filtering. + * @opt_param string instanceGroupManager The name of the instance group + * manager. Use this parameter to return only updates to instances that are part + * of a specific instance group. * @return Google_Service_Replicapoolupdater_RollingUpdateList */ public function listRollingUpdates($project, $zone, $optParams = array()) @@ -944,9 +945,8 @@ public function getValue() } } -class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Collection +class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model { - protected $collection_key = 'instances'; protected $internal_gapi_mappings = array( ); public $actionType; @@ -958,7 +958,6 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Collection public $instanceGroup; public $instanceGroupManager; public $instanceTemplate; - public $instances; public $kind; protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; protected $policyDataType = ''; @@ -1033,14 +1032,6 @@ public function getInstanceTemplate() { return $this->instanceTemplate; } - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } public function setKind($kind) { $this->kind = $kind; @@ -1208,7 +1199,6 @@ class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model public $maxNumConcurrentInstances; public $maxNumFailedInstances; public $minInstanceUpdateTimeSec; - public $sleepAfterInstanceRestartSec; public function setAutoPauseAfterInstances($autoPauseAfterInstances) @@ -1251,12 +1241,4 @@ public function getMinInstanceUpdateTimeSec() { return $this->minInstanceUpdateTimeSec; } - public function setSleepAfterInstanceRestartSec($sleepAfterInstanceRestartSec) - { - $this->sleepAfterInstanceRestartSec = $sleepAfterInstanceRestartSec; - } - public function getSleepAfterInstanceRestartSec() - { - return $this->sleepAfterInstanceRestartSec; - } } From 8f6c63fb0f13372a9626d031f36c6866d704d9d9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:02 -0700 Subject: [PATCH 0746/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index c19190b64..8d1b60298 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -30,7 +30,7 @@ */ class Google_Service_AndroidPublisher extends Google_Service { - /** View and manage your Google Play Android Developer account. */ + /** View and manage your Google Play Developer account. */ const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; From 6e4a12f3b52aa6de1931e943f706d95e40a4dbb7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:03 -0700 Subject: [PATCH 0747/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 366 +++++++++++++++++++++++++++++++++ 1 file changed, 366 insertions(+) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 0ecc5f9fc..0458735ba 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -66,6 +66,7 @@ class Google_Service_YouTube extends Google_Service public $search; public $subscriptions; public $thumbnails; + public $videoAbuseReportReasons; public $videoCategories; public $videos; public $watermarks; @@ -1418,6 +1419,30 @@ public function __construct(Google_Client $client) ) ) ); + $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( + $this, + $this->serviceName, + 'videoAbuseReportReasons', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoAbuseReportReasons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( $this, $this->serviceName, @@ -1583,6 +1608,15 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'reportAbuse' => array( + 'path' => 'videos/reportAbuse', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'update' => array( 'path' => 'videos', 'httpMethod' => 'PUT', @@ -3914,6 +3948,38 @@ public function set($videoId, $optParams = array()) } } +/** + * The "videoAbuseReportReasons" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; + * + */ +class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of abuse reasons that can be used for reporting abusive + * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) + * + * @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. + * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse + */ + public function listVideoAbuseReportReasons($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); + } +} + /** * The "videoCategories" collection of methods. * Typical usage is: @@ -4193,6 +4259,32 @@ public function rate($id, $rating, $optParams = array()) return $this->call('rate', array($params)); } + /** + * Report abuse for a video. (videos.reportAbuse) + * + * @param Google_VideoAbuseReport $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportAbuse', array($params)); + } + /** * Updates a video's metadata. (videos.update) * @@ -5871,6 +5963,8 @@ class Google_Service_YouTube_ChannelSection extends Google_Model protected $localizationsDataType = 'map'; protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; protected $snippetDataType = ''; + protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; + protected $targetingDataType = ''; public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) @@ -5921,6 +6015,14 @@ public function getSnippet() { return $this->snippet; } + public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) + { + $this->targeting = $targeting; + } + public function getTargeting() + { + return $this->targeting; + } } class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection @@ -6098,6 +6200,42 @@ public function getType() } } +class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $countrys; + public $languages; + public $regions; + + + public function setCountrys($countrys) + { + $this->countrys = $countrys; + } + public function getCountrys() + { + return $this->countrys; + } + public function setLanguages($languages) + { + $this->languages = $languages; + } + public function getLanguages() + { + return $this->languages; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + class Google_Service_YouTube_ChannelSettings extends Google_Collection { protected $collection_key = 'featuredChannelsUrls'; @@ -10803,6 +10941,234 @@ public function getTopicDetails() } } +class Google_Service_YouTube_VideoAbuseReport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comments; + protected $languageType = 'Google_Service_YouTube_LanguageTag'; + protected $languageDataType = ''; + protected $reasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; + protected $reasonIdDataType = ''; + protected $secondaryReasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; + protected $secondaryReasonIdDataType = ''; + public $videoId; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setLanguage(Google_Service_YouTube_LanguageTag $language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $reasonId) + { + $this->reasonId = $reasonId; + } + public function getReasonId() + { + return $this->reasonId; + } + public function setSecondaryReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $secondaryReasonId) + { + $this->secondaryReasonId = $secondaryReasonId; + } + public function getSecondaryReasonId() + { + return $this->secondaryReasonId; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection +{ + protected $collection_key = 'secondaryReasons'; + protected $internal_gapi_mappings = array( + ); + public $label; + protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; + protected $secondaryReasonsDataType = 'array'; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setSecondaryReasons($secondaryReasons) + { + $this->secondaryReasons = $secondaryReasons; + } + public function getSecondaryReasons() + { + return $this->secondaryReasons; + } +} + +class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $idType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; + protected $idDataType = ''; + public $label; + + + public function setId(Google_Service_YouTube_VideoAbuseReportReasonId $id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } +} + class Google_Service_YouTube_VideoAgeGating extends Google_Model { protected $internal_gapi_mappings = array( From 13ab4fa8d3d2f2cab8e0d96085e5ec4c058966b9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:03 -0700 Subject: [PATCH 0748/1274] Updated GamesConfiguration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/GamesConfiguration.php b/src/Google/Service/GamesConfiguration.php index a0a1811f0..74d26616c 100644 --- a/src/Google/Service/GamesConfiguration.php +++ b/src/Google/Service/GamesConfiguration.php @@ -30,7 +30,7 @@ */ class Google_Service_GamesConfiguration extends Google_Service { - /** View and manage your Google Play Android Developer account. */ + /** View and manage your Google Play Developer account. */ const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; From 08da00f2cbdb9b561fc5b7cdd6185828e77b800e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 17 Apr 2015 05:39:03 -0700 Subject: [PATCH 0749/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 3b7e53d28..fe90e8033 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -42,6 +42,9 @@ class Google_Service_Drive extends Google_Service /** View and manage Google Drive files that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; + /** View and manage metadata of files in your Google Drive. */ + const DRIVE_METADATA = + "https://www.googleapis.com/auth/drive.metadata"; /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; From 5f7ad78ac7e5723b43f1ca369215c559c05355e0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 18 Apr 2015 05:40:00 -0700 Subject: [PATCH 0750/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 84 +--------------------------------- 1 file changed, 1 insertion(+), 83 deletions(-) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index 67f3712f4..d0da067be 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -1088,23 +1088,6 @@ public function getSession() } } -class Google_Service_Fitness_MapValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fpVal; - - - public function setFpVal($fpVal) - { - $this->fpVal = $fpVal; - } - public function getFpVal() - { - return $this->fpVal; - } -} - class Google_Service_Fitness_Session extends Google_Model { protected $internal_gapi_mappings = array( @@ -1195,28 +1178,14 @@ public function getStartTimeMillis() } } -class Google_Service_Fitness_Value extends Google_Collection +class Google_Service_Fitness_Value extends Google_Model { - protected $collection_key = 'mapVal'; protected $internal_gapi_mappings = array( ); - public $floatListVal; public $fpVal; - public $intListVal; public $intVal; - protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry'; - protected $mapValDataType = 'array'; - public $stringVal; - public function setFloatListVal($floatListVal) - { - $this->floatListVal = $floatListVal; - } - public function getFloatListVal() - { - return $this->floatListVal; - } public function setFpVal($fpVal) { $this->fpVal = $fpVal; @@ -1225,14 +1194,6 @@ public function getFpVal() { return $this->fpVal; } - public function setIntListVal($intListVal) - { - $this->intListVal = $intListVal; - } - public function getIntListVal() - { - return $this->intListVal; - } public function setIntVal($intVal) { $this->intVal = $intVal; @@ -1241,47 +1202,4 @@ public function getIntVal() { return $this->intVal; } - public function setMapVal($mapVal) - { - $this->mapVal = $mapVal; - } - public function getMapVal() - { - return $this->mapVal; - } - public function setStringVal($stringVal) - { - $this->stringVal = $stringVal; - } - public function getStringVal() - { - return $this->stringVal; - } -} - -class Google_Service_Fitness_ValueMapValEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - protected $valueType = 'Google_Service_Fitness_MapValue'; - protected $valueDataType = ''; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue(Google_Service_Fitness_MapValue $value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } } From 006453e97bf754f893ba91b049ca6f58edda7481 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 21 Apr 2015 05:43:05 -0700 Subject: [PATCH 0751/1274] Updated Cloudsearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Cloudsearch.php | 764 +---------------------------- 1 file changed, 2 insertions(+), 762 deletions(-) diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php index 5552207a1..a48878c92 100644 --- a/src/Google/Service/Cloudsearch.php +++ b/src/Google/Service/Cloudsearch.php @@ -32,18 +32,9 @@ */ class Google_Service_Cloudsearch extends Google_Service { - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** FOR TESTING ONLY. */ - const CLOUDSEARCH = - "https://www.googleapis.com/auth/cloudsearch"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - public $projects_indexes; - public $projects_indexes_documents; + + /** @@ -58,760 +49,9 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'cloudsearch'; - $this->projects_indexes = new Google_Service_Cloudsearch_ProjectsIndexes_Resource( - $this, - $this->serviceName, - 'indexes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/projects/{projectId}/indexes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexNamePrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'v1/projects/{projectId}/indexes/{indexId}/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fieldExpressions' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offset' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'matchedCountAccuracy' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scorer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scorerSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'returnFields' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->projects_indexes_documents = new Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource( - $this, - $this->serviceName, - 'documents', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'docId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'docId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'indexId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudsearchService = new Google_Service_Cloudsearch(...); - * $projects = $cloudsearchService->projects; - * - */ -class Google_Service_Cloudsearch_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "indexes" collection of methods. - * Typical usage is: - * - * $cloudsearchService = new Google_Service_Cloudsearch(...); - * $indexes = $cloudsearchService->indexes; - * - */ -class Google_Service_Cloudsearch_ProjectsIndexes_Resource extends Google_Service_Resource -{ - - /** - * Lists search indexes belonging to the specified project. - * (indexes.listProjectsIndexes) - * - * @param string $projectId The project from which to retrieve indexes. It - * cannot be the empty string. - * @param array $optParams Optional parameters. - * - * @opt_param string indexNamePrefix The prefix of the index name. It is used to - * list all indexes with names that have this prefix. - * @opt_param int pageSize The maximum number of indexes to return per page. If - * not specified, 100 indexes are returned per page. - * @opt_param string pageToken A `nextPageToken` returned from previous list - * indexes call as the starting point for this call. If not specified, list - * indexes from the beginning. - * @opt_param string view Specifies which parts of the IndexInfo resource is - * returned in the response. If not specified, `ID_ONLY` is used. - * @return Google_Service_Cloudsearch_ListIndexesResponse - */ - public function listProjectsIndexes($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudsearch_ListIndexesResponse"); - } - - /** - * Lists the documents in the named index that match the query. (indexes.search) - * - * @param string $projectId The project associated with the index for searching - * document. It cannot be the empty string. - * @param string $indexId The index to search. It cannot be the empty string. - * @param array $optParams Optional parameters. - * - * @opt_param string query The query string in search query syntax. If the query - * is missing or empty, all documents are returned. - * @opt_param string fieldExpressions Customized expressions used in `orderBy` - * or `returnFields`. The expression can contain fields in `Document`, the - * built-in fields ( `_rank`, the document rank, and `_score` if scoring is - * enabled) and fields defined in `fieldExpressions`. Each field expression is - * represented in a json object with the following fields: * `name`: the name of - * the field expression in string. * `expression`: the expression to be - * computed. It can be a combination of supported functions encoded in string. - * Expressions involving number fields can use the arithmetical operators (`+`, - * `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`, - * `count`, `log`, `abs`). Expressions involving geopoint fields can use the - * `geopoint` and `distance` functions. Expressions for text and html fields can - * use the `snippet` function. For example: ``` fieldExpressions={name: - * "TotalPrice", expression: "(Price+Tax)"} ``` ``` fieldExpressions={name: - * "snippet", expression: "snippet('good times', content)"} ``` The field - * expression names can be used in `orderBy` and `returnFields` after they are - * defined in `fieldExpressions`. - * @opt_param int pageSize The maximum number of search results to return per - * page. Searches perform best when the `pageSize` is kept as small as possible. - * If not specified, 10 results are returned per page. - * @opt_param string pageToken A `nextPageToken` returned from previous Search - * call as the starting point for this call. Pagination tokens provide better - * performance and consistency than offsets, and they cannot be used in - * combination with offsets. - * @opt_param int offset Offset is used to move to an arbitrary result, - * independent of the previous results. Offsets are inefficient when compared to - * `pageToken`. `pageToken` and `offset` cannot be both set. The default value - * of `offset` is 0. - * @opt_param int matchedCountAccuracy Minimum accuracy requirement for - * `matchedCount` in search response. If specified, `matchedCount` will be - * accurate up to at least that number. For example, when set to 100, any - * `matchedCount <= 100` is accurate. This option may add considerable - * latency/expense. By default (when it is not specified or set to 0), the - * accuracy is the same as `pageSize`. - * @opt_param string orderBy Comma-separated list of fields for sorting on the - * search result, including fields from `Document`, the built-in fields (`_rank` - * and `_score`), and fields defined in `fieldExpressions`. For example: - * `orderBy="foo,bar"`. The default sorting order is ascending. To specify - * descending order for a field, a suffix `" desc"` should be appended to the - * field name. For example: `orderBy="foo desc,bar"`. The default value for text - * sort is the empty string, and the default value for numeric sort is 0. If not - * specified, the search results are automatically sorted by descending `_rank`. - * Sorting by ascending `_rank` is not allowed. - * @opt_param string scorer The scoring function to invoke on a search result - * for this query. If `scorer` is not set, scoring is disabled and `_score` is 0 - * for all documents in the search result. To enable document relevancy score - * based on term frequency, set `"scorer=generic"`. - * @opt_param int scorerSize Maximum number of top retrieved results to score. - * It is valid only when `scorer` is set. If not specified, 100 retrieved - * results are scored. - * @opt_param string returnFields List of fields to return in `SearchResult` - * objects. It can be fields from `Document`, the built-in fields `_rank` and - * `_score`, and fields defined in `fieldExpressions`. Use `"*"` to return all - * fields from `Document`. - * @return Google_Service_Cloudsearch_SearchResponse - */ - public function search($projectId, $indexId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'indexId' => $indexId); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Cloudsearch_SearchResponse"); - } -} - -/** - * The "documents" collection of methods. - * Typical usage is: - * - * $cloudsearchService = new Google_Service_Cloudsearch(...); - * $documents = $cloudsearchService->documents; - * - */ -class Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource extends Google_Service_Resource -{ - - /** - * Inserts a document for indexing or updates an indexed document. The returned - * document contains only the ID of the new document. When `docId` is absent - * from the document, it is provided by the server. (documents.create) - * - * @param string $projectId The project associated with the index for adding - * document. It cannot be the empty string. - * @param string $indexId The index to add document to. It cannot be the empty - * string. - * @param Google_Document $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudsearch_Document - */ - public function create($projectId, $indexId, Google_Service_Cloudsearch_Document $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'indexId' => $indexId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Cloudsearch_Document"); - } - - /** - * Deletes a document from an index. (documents.delete) - * - * @param string $projectId The project associated with the index for deleting - * document. It cannot be the empty string. - * @param string $indexId The index from which to delete the document. It cannot - * be the empty string. - * @param string $docId The document to be deleted. It cannot be the empty - * string. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudsearch_Empty - */ - public function delete($projectId, $indexId, $docId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Cloudsearch_Empty"); - } - - /** - * Retrieves a document from an index. (documents.get) - * - * @param string $projectId The project associated with the index for retrieving - * the document. It cannot be the empty string. - * @param string $indexId The index from which to retrieve the document. It - * cannot be the empty string. - * @param string $docId The identifier of the document to retrieve. It cannot be - * the empty string. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudsearch_Document - */ - public function get($projectId, $indexId, $docId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudsearch_Document"); - } - - /** - * Lists documents in the specified search index. Intended for batch processing. - * (documents.listProjectsIndexesDocuments) - * - * @param string $projectId The project associated with the index for listing - * documents. It cannot be the empty string. - * @param string $indexId The index from which to list the documents. It cannot - * be the empty string. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The maximum number of documents to return per page. - * If not specified, 100 documents are returned per page. - * @opt_param string pageToken A `nextPageToken` returned from previous list - * documents call as the starting point for this call. If not specified, list - * documents from the beginning. - * @opt_param string view Specifies which part of the document resource is - * returned in the response. If not specified, `ID_ONLY` is used. - * @return Google_Service_Cloudsearch_ListDocumentsResponse - */ - public function listProjectsIndexesDocuments($projectId, $indexId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'indexId' => $indexId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudsearch_ListDocumentsResponse"); - } -} - - - - -class Google_Service_Cloudsearch_Document extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $docId; - protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList'; - protected $fieldsDataType = 'map'; - public $rank; - - - public function setDocId($docId) - { - $this->docId = $docId; - } - public function getDocId() - { - return $this->docId; - } - public function setFields($fields) - { - $this->fields = $fields; - } - public function getFields() - { - return $this->fields; - } - public function setRank($rank) - { - $this->rank = $rank; - } - public function getRank() - { - return $this->rank; - } -} - -class Google_Service_Cloudsearch_DocumentFields extends Google_Model -{ -} - -class Google_Service_Cloudsearch_Empty extends Google_Model -{ -} - -class Google_Service_Cloudsearch_FieldNames extends Google_Collection -{ - protected $collection_key = 'textFields'; - protected $internal_gapi_mappings = array( - ); - public $atomFields; - public $dateFields; - public $geoFields; - public $htmlFields; - public $numberFields; - public $textFields; - - - public function setAtomFields($atomFields) - { - $this->atomFields = $atomFields; - } - public function getAtomFields() - { - return $this->atomFields; - } - public function setDateFields($dateFields) - { - $this->dateFields = $dateFields; - } - public function getDateFields() - { - return $this->dateFields; - } - public function setGeoFields($geoFields) - { - $this->geoFields = $geoFields; - } - public function getGeoFields() - { - return $this->geoFields; - } - public function setHtmlFields($htmlFields) - { - $this->htmlFields = $htmlFields; - } - public function getHtmlFields() - { - return $this->htmlFields; - } - public function setNumberFields($numberFields) - { - $this->numberFields = $numberFields; - } - public function getNumberFields() - { - return $this->numberFields; - } - public function setTextFields($textFields) - { - $this->textFields = $textFields; - } - public function getTextFields() - { - return $this->textFields; - } -} - -class Google_Service_Cloudsearch_FieldValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $geoValue; - public $lang; - public $numberValue; - public $stringFormat; - public $stringValue; - public $timestampValue; - - - public function setGeoValue($geoValue) - { - $this->geoValue = $geoValue; - } - public function getGeoValue() - { - return $this->geoValue; - } - public function setLang($lang) - { - $this->lang = $lang; - } - public function getLang() - { - return $this->lang; - } - public function setNumberValue($numberValue) - { - $this->numberValue = $numberValue; - } - public function getNumberValue() - { - return $this->numberValue; - } - public function setStringFormat($stringFormat) - { - $this->stringFormat = $stringFormat; - } - public function getStringFormat() - { - return $this->stringFormat; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } - public function setTimestampValue($timestampValue) - { - $this->timestampValue = $timestampValue; - } - public function getTimestampValue() - { - return $this->timestampValue; - } -} - -class Google_Service_Cloudsearch_FieldValueList extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - protected $valuesType = 'Google_Service_Cloudsearch_FieldValue'; - protected $valuesDataType = 'array'; - - - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; } } -class Google_Service_Cloudsearch_IndexInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $indexId; - protected $indexedFieldType = 'Google_Service_Cloudsearch_FieldNames'; - protected $indexedFieldDataType = ''; - public $projectId; - - - public function setIndexId($indexId) - { - $this->indexId = $indexId; - } - public function getIndexId() - { - return $this->indexId; - } - public function setIndexedField(Google_Service_Cloudsearch_FieldNames $indexedField) - { - $this->indexedField = $indexedField; - } - public function getIndexedField() - { - return $this->indexedField; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} -class Google_Service_Cloudsearch_ListDocumentsResponse extends Google_Collection -{ - protected $collection_key = 'documents'; - protected $internal_gapi_mappings = array( - ); - protected $documentsType = 'Google_Service_Cloudsearch_Document'; - protected $documentsDataType = 'array'; - public $nextPageToken; - public function setDocuments($documents) - { - $this->documents = $documents; - } - public function getDocuments() - { - return $this->documents; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Cloudsearch_ListIndexesResponse extends Google_Collection -{ - protected $collection_key = 'indexes'; - protected $internal_gapi_mappings = array( - ); - protected $indexesType = 'Google_Service_Cloudsearch_IndexInfo'; - protected $indexesDataType = 'array'; - public $nextPageToken; - - - public function setIndexes($indexes) - { - $this->indexes = $indexes; - } - public function getIndexes() - { - return $this->indexes; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Cloudsearch_SearchResponse extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - public $matchedCount; - protected $resultsType = 'Google_Service_Cloudsearch_SearchResult'; - protected $resultsDataType = 'array'; - - - public function setMatchedCount($matchedCount) - { - $this->matchedCount = $matchedCount; - } - public function getMatchedCount() - { - return $this->matchedCount; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} - -class Google_Service_Cloudsearch_SearchResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $docId; - protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList'; - protected $fieldsDataType = 'map'; - public $nextPageToken; - - - public function setDocId($docId) - { - $this->docId = $docId; - } - public function getDocId() - { - return $this->docId; - } - public function setFields($fields) - { - $this->fields = $fields; - } - public function getFields() - { - return $this->fields; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Cloudsearch_SearchResultFields extends Google_Model -{ -} From 14077a8a9ff0c93c52d59960b0426343904b4027 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:09 -0700 Subject: [PATCH 0752/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 8ae06ac35..8328c66b5 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -2276,6 +2276,7 @@ class Google_Service_Blogger_CommentList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2283,6 +2284,14 @@ class Google_Service_Blogger_CommentList extends Google_Collection public $prevPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; @@ -2536,12 +2545,21 @@ class Google_Service_Blogger_PageList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Page'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; @@ -2917,12 +2935,21 @@ class Google_Service_Blogger_PostList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; From bda3541571e319aa8f410aae9aeed09568f0121b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:09 -0700 Subject: [PATCH 0753/1274] Updated Dataflow.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dataflow.php | 3454 ++++++++++++++++++++++++++++++- 1 file changed, 3449 insertions(+), 5 deletions(-) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index 04383be95..b5d36b280 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dataflow (v1b4). + * Service definition for Dataflow (v1b3). * *

* Google Dataflow API.

@@ -30,9 +30,16 @@ */ class Google_Service_Dataflow extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; - - + public $projects_jobs; + public $projects_jobs_messages; + public $projects_jobs_workItems; /** @@ -43,13 +50,3450 @@ class Google_Service_Dataflow extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = ''; - $this->version = 'v1b4'; + $this->servicePath = 'v1b3/projects/'; + $this->version = 'v1b3'; $this->serviceName = 'dataflow'; + $this->projects_jobs = new Google_Service_Dataflow_ProjectsJobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getMetrics' => array( + 'path' => '{projectId}/jobs/{jobId}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_jobs_messages = new Google_Service_Dataflow_ProjectsJobsMessages_Resource( + $this, + $this->serviceName, + 'messages', + array( + 'methods' => array( + 'list' => array( + 'path' => '{projectId}/jobs/{jobId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minimumImportance' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_jobs_workItems = new Google_Service_Dataflow_ProjectsJobsWorkItems_Resource( + $this, + $this->serviceName, + 'workItems', + array( + 'methods' => array( + 'lease' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:lease', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'reportStatus' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:reportStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $projects = $dataflowService->projects; + * + */ +class Google_Service_Dataflow_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "jobs" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $jobs = $dataflowService->jobs; + * + */ +class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resource +{ + + /** + * Creates a dataflow job. (jobs.create) + * + * @param string $projectId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Gets the state of the specified dataflow job. (jobs.get) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function get($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Request the job status. (jobs.getMetrics) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string startTime + * @return Google_Service_Dataflow_JobMetrics + */ + public function getMetrics($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); + } + + /** + * List the jobs of a project (jobs.listProjectsJobs) + * + * @param string $projectId + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * @opt_param string view + * @opt_param int pageSize + * @return Google_Service_Dataflow_ListJobsResponse + */ + public function listProjectsJobs($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); + } + + /** + * Updates the state of an existing dataflow job. This method supports patch + * semantics. (jobs.patch) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Updates the state of an existing dataflow job. (jobs.update) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dataflow_Job"); + } +} + +/** + * The "messages" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $messages = $dataflowService->messages; + * + */ +class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Service_Resource +{ + + /** + * Request the job status. (messages.listProjectsJobsMessages) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize + * @opt_param string pageToken + * @opt_param string startTime + * @opt_param string endTime + * @opt_param string minimumImportance + * @return Google_Service_Dataflow_ListJobMessagesResponse + */ + public function listProjectsJobsMessages($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse"); + } +} +/** + * The "workItems" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $workItems = $dataflowService->workItems; + * + */ +class Google_Service_Dataflow_ProjectsJobsWorkItems_Resource extends Google_Service_Resource +{ + + /** + * Leases a dataflow WorkItem to run. (workItems.lease) + * + * @param string $projectId + * @param string $jobId + * @param Google_LeaseWorkItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_LeaseWorkItemResponse + */ + public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); + } + + /** + * Reports the status of dataflow WorkItems leased by a worker. + * (workItems.reportStatus) + * + * @param string $projectId + * @param string $jobId + * @param Google_ReportWorkItemStatusRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_ReportWorkItemStatusResponse + */ + public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse"); + } +} + + + + +class Google_Service_Dataflow_ApproximateProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $percentComplete; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + public $remainingTime; + + + public function setPercentComplete($percentComplete) + { + $this->percentComplete = $percentComplete; + } + public function getPercentComplete() + { + return $this->percentComplete; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setRemainingTime($remainingTime) + { + $this->remainingTime = $remainingTime; + } + public function getRemainingTime() + { + return $this->remainingTime; + } +} + +class Google_Service_Dataflow_AutoscalingSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $algorithm; + public $maxNumWorkers; + + + public function setAlgorithm($algorithm) + { + $this->algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + public function setMaxNumWorkers($maxNumWorkers) + { + $this->maxNumWorkers = $maxNumWorkers; + } + public function getMaxNumWorkers() + { + return $this->maxNumWorkers; + } +} + +class Google_Service_Dataflow_ComputationTopology extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + public $computationId; + protected $inputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $inputsDataType = 'array'; + protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation'; + protected $keyRangesDataType = 'array'; + protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $outputsDataType = 'array'; + + + public function setComputationId($computationId) + { + $this->computationId = $computationId; + } + public function getComputationId() + { + return $this->computationId; + } + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setKeyRanges($keyRanges) + { + $this->keyRanges = $keyRanges; + } + public function getKeyRanges() + { + return $this->keyRanges; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } +} + +class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection +{ + protected $collection_key = 'dataDisks'; + protected $internal_gapi_mappings = array( + ); + public $dataDisks; + public $vmInstance; + + + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setVmInstance($vmInstance) + { + $this->vmInstance = $vmInstance; + } + public function getVmInstance() + { + return $this->vmInstance; + } +} + +class Google_Service_Dataflow_DerivedSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $derivationMode; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setDerivationMode($derivationMode) + { + $this->derivationMode = $derivationMode; + } + public function getDerivationMode() + { + return $this->derivationMode; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_Disk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $diskType; + public $mountPoint; + public $sizeGb; + + + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setMountPoint($mountPoint) + { + $this->mountPoint = $mountPoint; + } + public function getMountPoint() + { + return $this->mountPoint; + } + public function setSizeGb($sizeGb) + { + $this->sizeGb = $sizeGb; + } + public function getSizeGb() + { + return $this->sizeGb; + } +} + +class Google_Service_Dataflow_DynamicSourceSplit extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $primaryType = 'Google_Service_Dataflow_DerivedSource'; + protected $primaryDataType = ''; + protected $residualType = 'Google_Service_Dataflow_DerivedSource'; + protected $residualDataType = ''; + + + public function setPrimary(Google_Service_Dataflow_DerivedSource $primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setResidual(Google_Service_Dataflow_DerivedSource $residual) + { + $this->residual = $residual; + } + public function getResidual() + { + return $this->residual; + } +} + +class Google_Service_Dataflow_Environment extends Google_Collection +{ + protected $collection_key = 'workerPools'; + protected $internal_gapi_mappings = array( + ); + public $clusterManagerApiService; + public $dataset; + public $experiments; + public $sdkPipelineOptions; + public $tempStoragePrefix; + public $userAgent; + public $version; + protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool'; + protected $workerPoolsDataType = 'array'; + + + public function setClusterManagerApiService($clusterManagerApiService) + { + $this->clusterManagerApiService = $clusterManagerApiService; + } + public function getClusterManagerApiService() + { + return $this->clusterManagerApiService; + } + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setExperiments($experiments) + { + $this->experiments = $experiments; + } + public function getExperiments() + { + return $this->experiments; + } + public function setSdkPipelineOptions($sdkPipelineOptions) + { + $this->sdkPipelineOptions = $sdkPipelineOptions; + } + public function getSdkPipelineOptions() + { + return $this->sdkPipelineOptions; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setWorkerPools($workerPools) + { + $this->workerPools = $workerPools; + } + public function getWorkerPools() + { + return $this->workerPools; + } +} + +class Google_Service_Dataflow_EnvironmentSdkPipelineOptions extends Google_Model +{ +} + +class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model +{ +} + +class Google_Service_Dataflow_EnvironmentVersion extends Google_Model +{ +} + +class Google_Service_Dataflow_FlattenInstruction extends Google_Collection +{ + protected $collection_key = 'inputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputsDataType = 'array'; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; } } +class Google_Service_Dataflow_InstructionInput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputNum; + public $producerInstructionIndex; + public function setOutputNum($outputNum) + { + $this->outputNum = $outputNum; + } + public function getOutputNum() + { + return $this->outputNum; + } + public function setProducerInstructionIndex($producerInstructionIndex) + { + $this->producerInstructionIndex = $producerInstructionIndex; + } + public function getProducerInstructionIndex() + { + return $this->producerInstructionIndex; + } +} +class Google_Service_Dataflow_InstructionOutput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $name; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_Job extends Google_Collection +{ + protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $currentState; + public $currentStateTime; + protected $environmentType = 'Google_Service_Dataflow_Environment'; + protected $environmentDataType = ''; + protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; + protected $executionInfoDataType = ''; + public $id; + public $name; + public $projectId; + public $requestedState; + protected $stepsType = 'Google_Service_Dataflow_Step'; + protected $stepsDataType = 'array'; + public $type; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setCurrentState($currentState) + { + $this->currentState = $currentState; + } + public function getCurrentState() + { + return $this->currentState; + } + public function setCurrentStateTime($currentStateTime) + { + $this->currentStateTime = $currentStateTime; + } + public function getCurrentStateTime() + { + return $this->currentStateTime; + } + public function setEnvironment(Google_Service_Dataflow_Environment $environment) + { + $this->environment = $environment; + } + public function getEnvironment() + { + return $this->environment; + } + public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo) + { + $this->executionInfo = $executionInfo; + } + public function getExecutionInfo() + { + return $this->executionInfo; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRequestedState($requestedState) + { + $this->requestedState = $requestedState; + } + public function getRequestedState() + { + return $this->requestedState; + } + public function setSteps($steps) + { + $this->steps = $steps; + } + public function getSteps() + { + return $this->steps; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dataflow_JobExecutionInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo'; + protected $stagesDataType = 'map'; + + + public function setStages($stages) + { + $this->stages = $stages; + } + public function getStages() + { + return $this->stages; + } +} + +class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model +{ +} + +class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection +{ + protected $collection_key = 'stepName'; + protected $internal_gapi_mappings = array( + ); + public $stepName; + + + public function setStepName($stepName) + { + $this->stepName = $stepName; + } + public function getStepName() + { + return $this->stepName; + } +} + +class Google_Service_Dataflow_JobMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $messageImportance; + public $messageText; + public $time; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMessageImportance($messageImportance) + { + $this->messageImportance = $messageImportance; + } + public function getMessageImportance() + { + return $this->messageImportance; + } + public function setMessageText($messageText) + { + $this->messageText = $messageText; + } + public function getMessageText() + { + return $this->messageText; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dataflow_JobMetrics extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + public $metricTime; + protected $metricsType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricsDataType = 'array'; + + + public function setMetricTime($metricTime) + { + $this->metricTime = $metricTime; + } + public function getMetricTime() + { + return $this->metricTime; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } +} + +class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + public $end; + public $start; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } + 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; + } +} + +class Google_Service_Dataflow_KeyRangeLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + public $deliveryEndpoint; + public $end; + public $persistentDirectory; + public $start; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } + public function setDeliveryEndpoint($deliveryEndpoint) + { + $this->deliveryEndpoint = $deliveryEndpoint; + } + public function getDeliveryEndpoint() + { + return $this->deliveryEndpoint; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setPersistentDirectory($persistentDirectory) + { + $this->persistentDirectory = $persistentDirectory; + } + public function getPersistentDirectory() + { + return $this->persistentDirectory; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection +{ + protected $collection_key = 'workerCapabilities'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + public $requestedLeaseDuration; + public $workItemTypes; + public $workerCapabilities; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setWorkItemTypes($workItemTypes) + { + $this->workItemTypes = $workItemTypes; + } + public function getWorkItemTypes() + { + return $this->workItemTypes; + } + public function setWorkerCapabilities($workerCapabilities) + { + $this->workerCapabilities = $workerCapabilities; + } + public function getWorkerCapabilities() + { + return $this->workerCapabilities; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection +{ + protected $collection_key = 'workItems'; + protected $internal_gapi_mappings = array( + ); + protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; + protected $workItemsDataType = 'array'; + + + public function setWorkItems($workItems) + { + $this->workItems = $workItems; + } + public function getWorkItems() + { + return $this->workItems; + } +} + +class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection +{ + protected $collection_key = 'jobMessages'; + protected $internal_gapi_mappings = array( + ); + protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage'; + protected $jobMessagesDataType = 'array'; + public $nextPageToken; + + + public function setJobMessages($jobMessages) + { + $this->jobMessages = $jobMessages; + } + public function getJobMessages() + { + return $this->jobMessages; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_ListJobsResponse extends Google_Collection +{ + protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); + protected $jobsType = 'Google_Service_Dataflow_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_MapTask extends Google_Collection +{ + protected $collection_key = 'instructions'; + protected $internal_gapi_mappings = array( + ); + protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; + protected $instructionsDataType = 'array'; + public $stageName; + public $systemName; + + + public function setInstructions($instructions) + { + $this->instructions = $instructions; + } + public function getInstructions() + { + return $this->instructions; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } +} + +class Google_Service_Dataflow_MetricStructuredName extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $context; + public $name; + public $origin; + + + public function setContext($context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOrigin($origin) + { + $this->origin = $origin; + } + public function getOrigin() + { + return $this->origin; + } +} + +class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model +{ +} + +class Google_Service_Dataflow_MetricUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cumulative; + public $internal; + public $kind; + public $meanCount; + public $meanSum; + protected $nameType = 'Google_Service_Dataflow_MetricStructuredName'; + protected $nameDataType = ''; + public $scalar; + public $set; + public $updateTime; + + + public function setCumulative($cumulative) + { + $this->cumulative = $cumulative; + } + public function getCumulative() + { + return $this->cumulative; + } + public function setInternal($internal) + { + $this->internal = $internal; + } + public function getInternal() + { + return $this->internal; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMeanCount($meanCount) + { + $this->meanCount = $meanCount; + } + public function getMeanCount() + { + return $this->meanCount; + } + public function setMeanSum($meanSum) + { + $this->meanSum = $meanSum; + } + public function getMeanSum() + { + return $this->meanSum; + } + public function setName(Google_Service_Dataflow_MetricStructuredName $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScalar($scalar) + { + $this->scalar = $scalar; + } + public function getScalar() + { + return $this->scalar; + } + public function setSet($set) + { + $this->set = $set; + } + public function getSet() + { + return $this->set; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_Dataflow_MountedDataDisk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } +} + +class Google_Service_Dataflow_MultiOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tag; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_Package extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $location; + public $name; + + + 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; + } +} + +class Google_Service_Dataflow_ParDoInstruction extends Google_Collection +{ + protected $collection_key = 'sideInputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo'; + protected $multiOutputInfosDataType = 'array'; + public $numOutputs; + protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $sideInputsDataType = 'array'; + public $userFn; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setMultiOutputInfos($multiOutputInfos) + { + $this->multiOutputInfos = $multiOutputInfos; + } + public function getMultiOutputInfos() + { + return $this->multiOutputInfos; + } + public function setNumOutputs($numOutputs) + { + $this->numOutputs = $numOutputs; + } + public function getNumOutputs() + { + return $this->numOutputs; + } + public function setSideInputs($sideInputs) + { + $this->sideInputs = $sideInputs; + } + public function getSideInputs() + { + return $this->sideInputs; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ParallelInstruction extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction'; + protected $flattenDataType = ''; + public $name; + protected $outputsType = 'Google_Service_Dataflow_InstructionOutput'; + protected $outputsDataType = 'array'; + protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction'; + protected $parDoDataType = ''; + protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction'; + protected $partialGroupByKeyDataType = ''; + protected $readType = 'Google_Service_Dataflow_ReadInstruction'; + protected $readDataType = ''; + public $systemName; + protected $writeType = 'Google_Service_Dataflow_WriteInstruction'; + protected $writeDataType = ''; + + + public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten) + { + $this->flatten = $flatten; + } + public function getFlatten() + { + return $this->flatten; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } + public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo) + { + $this->parDo = $parDo; + } + public function getParDo() + { + return $this->parDo; + } + public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey) + { + $this->partialGroupByKey = $partialGroupByKey; + } + public function getPartialGroupByKey() + { + return $this->partialGroupByKey; + } + public function setRead(Google_Service_Dataflow_ReadInstruction $read) + { + $this->read = $read; + } + public function getRead() + { + return $this->read; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setWrite(Google_Service_Dataflow_WriteInstruction $write) + { + $this->write = $write; + } + public function getWrite() + { + return $this->write; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + public $inputElementCodec; + public $valueCombiningFn; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setInputElementCodec($inputElementCodec) + { + $this->inputElementCodec = $inputElementCodec; + } + public function getInputElementCodec() + { + return $this->inputElementCodec; + } + public function setValueCombiningFn($valueCombiningFn) + { + $this->valueCombiningFn = $valueCombiningFn; + } + public function getValueCombiningFn() + { + return $this->valueCombiningFn; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_PartialGroupByKeyInstructionValueCombiningFn extends Google_Model +{ +} + +class Google_Service_Dataflow_Position extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $byteOffset; + public $end; + public $key; + public $recordIndex; + public $shufflePosition; + + + public function setByteOffset($byteOffset) + { + $this->byteOffset = $byteOffset; + } + public function getByteOffset() + { + return $this->byteOffset; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRecordIndex($recordIndex) + { + $this->recordIndex = $recordIndex; + } + public function getRecordIndex() + { + return $this->recordIndex; + } + public function setShufflePosition($shufflePosition) + { + $this->shufflePosition = $shufflePosition; + } + public function getShufflePosition() + { + return $this->shufflePosition; + } +} + +class Google_Service_Dataflow_PubsubLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dropLateData; + public $idLabel; + public $subscription; + public $timestampLabel; + public $topic; + public $trackingSubscription; + + + public function setDropLateData($dropLateData) + { + $this->dropLateData = $dropLateData; + } + public function getDropLateData() + { + return $this->dropLateData; + } + public function setIdLabel($idLabel) + { + $this->idLabel = $idLabel; + } + public function getIdLabel() + { + return $this->idLabel; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setTimestampLabel($timestampLabel) + { + $this->timestampLabel = $timestampLabel; + } + public function getTimestampLabel() + { + return $this->timestampLabel; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } + public function setTrackingSubscription($trackingSubscription) + { + $this->trackingSubscription = $trackingSubscription; + } + public function getTrackingSubscription() + { + return $this->trackingSubscription; + } +} + +class Google_Service_Dataflow_ReadInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection +{ + protected $collection_key = 'workItemStatuses'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; + protected $workItemStatusesDataType = 'array'; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setWorkItemStatuses($workItemStatuses) + { + $this->workItemStatuses = $workItemStatuses; + } + public function getWorkItemStatuses() + { + return $this->workItemStatuses; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection +{ + protected $collection_key = 'workItemServiceStates'; + protected $internal_gapi_mappings = array( + ); + protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; + protected $workItemServiceStatesDataType = 'array'; + + + public function setWorkItemServiceStates($workItemServiceStates) + { + $this->workItemServiceStates = $workItemServiceStates; + } + public function getWorkItemServiceStates() + { + return $this->workItemServiceStates; + } +} + +class Google_Service_Dataflow_SeqMapTask extends Google_Collection +{ + protected $collection_key = 'outputInfos'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $inputsDataType = 'array'; + public $name; + protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo'; + protected $outputInfosDataType = 'array'; + public $stageName; + public $systemName; + public $userFn; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputInfos($outputInfos) + { + $this->outputInfos = $outputInfos; + } + public function getOutputInfos() + { + return $this->outputInfos; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + public $tag; + + + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ShellTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $command; + public $exitCode; + + + public function setCommand($command) + { + $this->command = $command; + } + public function getCommand() + { + return $this->command; + } + public function setExitCode($exitCode) + { + $this->exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } +} + +class Google_Service_Dataflow_SideInputInfo extends Google_Collection +{ + protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sourcesType = 'Google_Service_Dataflow_Source'; + protected $sourcesDataType = 'array'; + public $tag; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSources($sources) + { + $this->sources = $sources; + } + public function getSources() + { + return $this->sources; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SideInputInfoKind extends Google_Model +{ +} + +class Google_Service_Dataflow_Sink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $spec; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SinkCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SinkSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_Source extends Google_Collection +{ + protected $collection_key = 'baseSpecs'; + protected $internal_gapi_mappings = array( + ); + public $baseSpecs; + public $codec; + public $doesNotNeedSplitting; + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + public $spec; + + + public function setBaseSpecs($baseSpecs) + { + $this->baseSpecs = $baseSpecs; + } + public function getBaseSpecs() + { + return $this->baseSpecs; + } + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setDoesNotNeedSplitting($doesNotNeedSplitting) + { + $this->doesNotNeedSplitting = $doesNotNeedSplitting; + } + public function getDoesNotNeedSplitting() + { + return $this->doesNotNeedSplitting; + } + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceFork extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $primaryType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $primaryDataType = ''; + protected $primarySourceType = 'Google_Service_Dataflow_DerivedSource'; + protected $primarySourceDataType = ''; + protected $residualType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $residualDataType = ''; + protected $residualSourceType = 'Google_Service_Dataflow_DerivedSource'; + protected $residualSourceDataType = ''; + + + public function setPrimary(Google_Service_Dataflow_SourceSplitShard $primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setPrimarySource(Google_Service_Dataflow_DerivedSource $primarySource) + { + $this->primarySource = $primarySource; + } + public function getPrimarySource() + { + return $this->primarySource; + } + public function setResidual(Google_Service_Dataflow_SourceSplitShard $residual) + { + $this->residual = $residual; + } + public function getResidual() + { + return $this->residual; + } + public function setResidualSource(Google_Service_Dataflow_DerivedSource $residualSource) + { + $this->residualSource = $residualSource; + } + public function getResidualSource() + { + return $this->residualSource; + } +} + +class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + + + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } +} + +class Google_Service_Dataflow_SourceMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $estimatedSizeBytes; + public $infinite; + public $producesSortedKeys; + + + public function setEstimatedSizeBytes($estimatedSizeBytes) + { + $this->estimatedSizeBytes = $estimatedSizeBytes; + } + public function getEstimatedSizeBytes() + { + return $this->estimatedSizeBytes; + } + public function setInfinite($infinite) + { + $this->infinite = $infinite; + } + public function getInfinite() + { + return $this->infinite; + } + public function setProducesSortedKeys($producesSortedKeys) + { + $this->producesSortedKeys = $producesSortedKeys; + } + public function getProducesSortedKeys() + { + return $this->producesSortedKeys; + } +} + +class Google_Service_Dataflow_SourceOperationRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceOperationResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceSplitOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $desiredBundleSizeBytes; + public $desiredShardSizeBytes; + + + public function setDesiredBundleSizeBytes($desiredBundleSizeBytes) + { + $this->desiredBundleSizeBytes = $desiredBundleSizeBytes; + } + public function getDesiredBundleSizeBytes() + { + return $this->desiredBundleSizeBytes; + } + public function setDesiredShardSizeBytes($desiredShardSizeBytes) + { + $this->desiredShardSizeBytes = $desiredShardSizeBytes; + } + public function getDesiredShardSizeBytes() + { + return $this->desiredShardSizeBytes; + } +} + +class Google_Service_Dataflow_SourceSplitRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions'; + protected $optionsDataType = ''; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options) + { + $this->options = $options; + } + public function getOptions() + { + return $this->options; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection +{ + protected $collection_key = 'shards'; + protected $internal_gapi_mappings = array( + ); + protected $bundlesType = 'Google_Service_Dataflow_DerivedSource'; + protected $bundlesDataType = 'array'; + public $outcome; + protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $shardsDataType = 'array'; + + + public function setBundles($bundles) + { + $this->bundles = $bundles; + } + public function getBundles() + { + return $this->bundles; + } + public function setOutcome($outcome) + { + $this->outcome = $outcome; + } + public function getOutcome() + { + return $this->outcome; + } + public function setShards($shards) + { + $this->shards = $shards; + } + public function getShards() + { + return $this->shards; + } +} + +class Google_Service_Dataflow_SourceSplitShard extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $derivationMode; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setDerivationMode($derivationMode) + { + $this->derivationMode = $derivationMode; + } + public function getDerivationMode() + { + return $this->derivationMode; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Dataflow_StatusDetails extends Google_Model +{ +} + +class Google_Service_Dataflow_Step extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + public $properties; + + + 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 setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataflow_StepProperties extends Google_Model +{ +} + +class Google_Service_Dataflow_StreamLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; + protected $pubsubLocationDataType = ''; + protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation'; + protected $sideInputLocationDataType = ''; + protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation'; + protected $streamingStageLocationDataType = ''; + + + public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) + { + $this->pubsubLocation = $pubsubLocation; + } + public function getPubsubLocation() + { + return $this->pubsubLocation; + } + public function setSideInputLocation(Google_Service_Dataflow_StreamingSideInputLocation $sideInputLocation) + { + $this->sideInputLocation = $sideInputLocation; + } + public function getSideInputLocation() + { + return $this->sideInputLocation; + } + public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation) + { + $this->streamingStageLocation = $streamingStageLocation; + } + public function getStreamingStageLocation() + { + return $this->streamingStageLocation; + } +} + +class Google_Service_Dataflow_StreamingComputationRanges extends Google_Collection +{ + protected $collection_key = 'rangeAssignments'; + protected $internal_gapi_mappings = array( + ); + public $computationId; + protected $rangeAssignmentsType = 'Google_Service_Dataflow_KeyRangeDataDiskAssignment'; + protected $rangeAssignmentsDataType = 'array'; + + + public function setComputationId($computationId) + { + $this->computationId = $computationId; + } + public function getComputationId() + { + return $this->computationId; + } + public function setRangeAssignments($rangeAssignments) + { + $this->rangeAssignments = $rangeAssignments; + } + public function getRangeAssignments() + { + return $this->rangeAssignments; + } +} + +class Google_Service_Dataflow_StreamingComputationTask extends Google_Collection +{ + protected $collection_key = 'dataDisks'; + protected $internal_gapi_mappings = array( + ); + protected $computationRangesType = 'Google_Service_Dataflow_StreamingComputationRanges'; + protected $computationRangesDataType = 'array'; + protected $dataDisksType = 'Google_Service_Dataflow_MountedDataDisk'; + protected $dataDisksDataType = 'array'; + public $taskType; + + + public function setComputationRanges($computationRanges) + { + $this->computationRanges = $computationRanges; + } + public function getComputationRanges() + { + return $this->computationRanges; + } + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setTaskType($taskType) + { + $this->taskType = $taskType; + } + public function getTaskType() + { + return $this->taskType; + } +} + +class Google_Service_Dataflow_StreamingSetupTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $receiveWorkPort; + protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; + protected $streamingComputationTopologyDataType = ''; + public $workerHarnessPort; + + + public function setReceiveWorkPort($receiveWorkPort) + { + $this->receiveWorkPort = $receiveWorkPort; + } + public function getReceiveWorkPort() + { + return $this->receiveWorkPort; + } + public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology) + { + $this->streamingComputationTopology = $streamingComputationTopology; + } + public function getStreamingComputationTopology() + { + return $this->streamingComputationTopology; + } + public function setWorkerHarnessPort($workerHarnessPort) + { + $this->workerHarnessPort = $workerHarnessPort; + } + public function getWorkerHarnessPort() + { + return $this->workerHarnessPort; + } +} + +class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tag; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_StreamingStageLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $streamId; + + + public function setStreamId($streamId) + { + $this->streamId = $streamId; + } + public function getStreamId() + { + return $this->streamId; + } +} + +class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection +{ + protected $collection_key = 'oauthScopes'; + protected $internal_gapi_mappings = array( + ); + public $alsologtostderr; + public $baseTaskDir; + public $baseUrl; + public $commandlinesFileName; + public $continueOnException; + public $dataflowApiVersion; + public $harnessCommand; + public $languageHint; + public $logDir; + public $logToSerialconsole; + public $logUploadLocation; + public $oauthScopes; + protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; + protected $parallelWorkerSettingsDataType = ''; + public $streamingWorkerMainClass; + public $taskGroup; + public $taskUser; + public $tempStoragePrefix; + public $vmId; + public $workflowFileName; + + + public function setAlsologtostderr($alsologtostderr) + { + $this->alsologtostderr = $alsologtostderr; + } + public function getAlsologtostderr() + { + return $this->alsologtostderr; + } + public function setBaseTaskDir($baseTaskDir) + { + $this->baseTaskDir = $baseTaskDir; + } + public function getBaseTaskDir() + { + return $this->baseTaskDir; + } + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setCommandlinesFileName($commandlinesFileName) + { + $this->commandlinesFileName = $commandlinesFileName; + } + public function getCommandlinesFileName() + { + return $this->commandlinesFileName; + } + public function setContinueOnException($continueOnException) + { + $this->continueOnException = $continueOnException; + } + public function getContinueOnException() + { + return $this->continueOnException; + } + public function setDataflowApiVersion($dataflowApiVersion) + { + $this->dataflowApiVersion = $dataflowApiVersion; + } + public function getDataflowApiVersion() + { + return $this->dataflowApiVersion; + } + public function setHarnessCommand($harnessCommand) + { + $this->harnessCommand = $harnessCommand; + } + public function getHarnessCommand() + { + return $this->harnessCommand; + } + public function setLanguageHint($languageHint) + { + $this->languageHint = $languageHint; + } + public function getLanguageHint() + { + return $this->languageHint; + } + public function setLogDir($logDir) + { + $this->logDir = $logDir; + } + public function getLogDir() + { + return $this->logDir; + } + public function setLogToSerialconsole($logToSerialconsole) + { + $this->logToSerialconsole = $logToSerialconsole; + } + public function getLogToSerialconsole() + { + return $this->logToSerialconsole; + } + public function setLogUploadLocation($logUploadLocation) + { + $this->logUploadLocation = $logUploadLocation; + } + public function getLogUploadLocation() + { + return $this->logUploadLocation; + } + public function setOauthScopes($oauthScopes) + { + $this->oauthScopes = $oauthScopes; + } + public function getOauthScopes() + { + return $this->oauthScopes; + } + public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings) + { + $this->parallelWorkerSettings = $parallelWorkerSettings; + } + public function getParallelWorkerSettings() + { + return $this->parallelWorkerSettings; + } + public function setStreamingWorkerMainClass($streamingWorkerMainClass) + { + $this->streamingWorkerMainClass = $streamingWorkerMainClass; + } + public function getStreamingWorkerMainClass() + { + return $this->streamingWorkerMainClass; + } + public function setTaskGroup($taskGroup) + { + $this->taskGroup = $taskGroup; + } + public function getTaskGroup() + { + return $this->taskGroup; + } + public function setTaskUser($taskUser) + { + $this->taskUser = $taskUser; + } + public function getTaskUser() + { + return $this->taskUser; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setVmId($vmId) + { + $this->vmId = $vmId; + } + public function getVmId() + { + return $this->vmId; + } + public function setWorkflowFileName($workflowFileName) + { + $this->workflowFileName = $workflowFileName; + } + public function getWorkflowFileName() + { + return $this->workflowFileName; + } +} + +class Google_Service_Dataflow_TopologyConfig extends Google_Collection +{ + protected $collection_key = 'dataDiskAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $computationsType = 'Google_Service_Dataflow_ComputationTopology'; + protected $computationsDataType = 'array'; + protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; + protected $dataDiskAssignmentsDataType = 'array'; + + + public function setComputations($computations) + { + $this->computations = $computations; + } + public function getComputations() + { + return $this->computations; + } + public function setDataDiskAssignments($dataDiskAssignments) + { + $this->dataDiskAssignments = $dataDiskAssignments; + } + public function getDataDiskAssignments() + { + return $this->dataDiskAssignments; + } +} + +class Google_Service_Dataflow_WorkItem extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + public $configuration; + public $id; + public $initialReportIndex; + public $jobId; + public $leaseExpireTime; + protected $mapTaskType = 'Google_Service_Dataflow_MapTask'; + protected $mapTaskDataType = ''; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + public $projectId; + public $reportStatusInterval; + protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask'; + protected $seqMapTaskDataType = ''; + protected $shellTaskType = 'Google_Service_Dataflow_ShellTask'; + protected $shellTaskDataType = ''; + protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest'; + protected $sourceOperationTaskDataType = ''; + protected $streamingComputationTaskType = 'Google_Service_Dataflow_StreamingComputationTask'; + protected $streamingComputationTaskDataType = ''; + protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask'; + protected $streamingSetupTaskDataType = ''; + + + public function setConfiguration($configuration) + { + $this->configuration = $configuration; + } + public function getConfiguration() + { + return $this->configuration; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInitialReportIndex($initialReportIndex) + { + $this->initialReportIndex = $initialReportIndex; + } + public function getInitialReportIndex() + { + return $this->initialReportIndex; + } + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() + { + return $this->jobId; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setMapTask(Google_Service_Dataflow_MapTask $mapTask) + { + $this->mapTask = $mapTask; + } + public function getMapTask() + { + return $this->mapTask; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask) + { + $this->seqMapTask = $seqMapTask; + } + public function getSeqMapTask() + { + return $this->seqMapTask; + } + public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask) + { + $this->shellTask = $shellTask; + } + public function getShellTask() + { + return $this->shellTask; + } + public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask) + { + $this->sourceOperationTask = $sourceOperationTask; + } + public function getSourceOperationTask() + { + return $this->sourceOperationTask; + } + public function setStreamingComputationTask(Google_Service_Dataflow_StreamingComputationTask $streamingComputationTask) + { + $this->streamingComputationTask = $streamingComputationTask; + } + public function getStreamingComputationTask() + { + return $this->streamingComputationTask; + } + public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask) + { + $this->streamingSetupTask = $streamingSetupTask; + } + public function getStreamingSetupTask() + { + return $this->streamingSetupTask; + } +} + +class Google_Service_Dataflow_WorkItemServiceState extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $harnessData; + public $leaseExpireTime; + public $nextReportIndex; + public $reportStatusInterval; + protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $suggestedStopPointDataType = ''; + protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; + protected $suggestedStopPositionDataType = ''; + + + public function setHarnessData($harnessData) + { + $this->harnessData = $harnessData; + } + public function getHarnessData() + { + return $this->harnessData; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setNextReportIndex($nextReportIndex) + { + $this->nextReportIndex = $nextReportIndex; + } + public function getNextReportIndex() + { + return $this->nextReportIndex; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) + { + $this->suggestedStopPoint = $suggestedStopPoint; + } + public function getSuggestedStopPoint() + { + return $this->suggestedStopPoint; + } + public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition) + { + $this->suggestedStopPosition = $suggestedStopPosition; + } + public function getSuggestedStopPosition() + { + return $this->suggestedStopPosition; + } +} + +class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkItemStatus extends Google_Collection +{ + protected $collection_key = 'metricUpdates'; + protected $internal_gapi_mappings = array( + ); + public $completed; + protected $dynamicSourceSplitType = 'Google_Service_Dataflow_DynamicSourceSplit'; + protected $dynamicSourceSplitDataType = ''; + protected $errorsType = 'Google_Service_Dataflow_Status'; + protected $errorsDataType = 'array'; + protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricUpdatesDataType = 'array'; + protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $progressDataType = ''; + public $reportIndex; + public $requestedLeaseDuration; + protected $sourceForkType = 'Google_Service_Dataflow_SourceFork'; + protected $sourceForkDataType = ''; + protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse'; + protected $sourceOperationResponseDataType = ''; + protected $stopPositionType = 'Google_Service_Dataflow_Position'; + protected $stopPositionDataType = ''; + public $workItemId; + + + public function setCompleted($completed) + { + $this->completed = $completed; + } + public function getCompleted() + { + return $this->completed; + } + public function setDynamicSourceSplit(Google_Service_Dataflow_DynamicSourceSplit $dynamicSourceSplit) + { + $this->dynamicSourceSplit = $dynamicSourceSplit; + } + public function getDynamicSourceSplit() + { + return $this->dynamicSourceSplit; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setMetricUpdates($metricUpdates) + { + $this->metricUpdates = $metricUpdates; + } + public function getMetricUpdates() + { + return $this->metricUpdates; + } + public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setReportIndex($reportIndex) + { + $this->reportIndex = $reportIndex; + } + public function getReportIndex() + { + return $this->reportIndex; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setSourceFork(Google_Service_Dataflow_SourceFork $sourceFork) + { + $this->sourceFork = $sourceFork; + } + public function getSourceFork() + { + return $this->sourceFork; + } + public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse) + { + $this->sourceOperationResponse = $sourceOperationResponse; + } + public function getSourceOperationResponse() + { + return $this->sourceOperationResponse; + } + public function setStopPosition(Google_Service_Dataflow_Position $stopPosition) + { + $this->stopPosition = $stopPosition; + } + public function getStopPosition() + { + return $this->stopPosition; + } + public function setWorkItemId($workItemId) + { + $this->workItemId = $workItemId; + } + public function getWorkItemId() + { + return $this->workItemId; + } +} + +class Google_Service_Dataflow_WorkerPool extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings'; + protected $autoscalingSettingsDataType = ''; + protected $dataDisksType = 'Google_Service_Dataflow_Disk'; + protected $dataDisksDataType = 'array'; + public $defaultPackageSet; + public $diskSizeGb; + public $diskSourceImage; + public $kind; + public $machineType; + public $metadata; + public $numWorkers; + public $onHostMaintenance; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + public $poolArgs; + protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; + protected $taskrunnerSettingsDataType = ''; + public $teardownPolicy; + public $zone; + + + public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings) + { + $this->autoscalingSettings = $autoscalingSettings; + } + public function getAutoscalingSettings() + { + return $this->autoscalingSettings; + } + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setDefaultPackageSet($defaultPackageSet) + { + $this->defaultPackageSet = $defaultPackageSet; + } + public function getDefaultPackageSet() + { + return $this->defaultPackageSet; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskSourceImage($diskSourceImage) + { + $this->diskSourceImage = $diskSourceImage; + } + public function getDiskSourceImage() + { + return $this->diskSourceImage; + } + 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($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setNumWorkers($numWorkers) + { + $this->numWorkers = $numWorkers; + } + public function getNumWorkers() + { + return $this->numWorkers; + } + public function setOnHostMaintenance($onHostMaintenance) + { + $this->onHostMaintenance = $onHostMaintenance; + } + public function getOnHostMaintenance() + { + return $this->onHostMaintenance; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setPoolArgs($poolArgs) + { + $this->poolArgs = $poolArgs; + } + public function getPoolArgs() + { + return $this->poolArgs; + } + public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) + { + $this->taskrunnerSettings = $taskrunnerSettings; + } + public function getTaskrunnerSettings() + { + return $this->taskrunnerSettings; + } + public function setTeardownPolicy($teardownPolicy) + { + $this->teardownPolicy = $teardownPolicy; + } + public function getTeardownPolicy() + { + return $this->teardownPolicy; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkerPoolPoolArgs extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkerSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $baseUrl; + public $reportingEnabled; + public $servicePath; + public $shuffleServicePath; + public $tempStoragePrefix; + public $workerId; + + + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setReportingEnabled($reportingEnabled) + { + $this->reportingEnabled = $reportingEnabled; + } + public function getReportingEnabled() + { + return $this->reportingEnabled; + } + public function setServicePath($servicePath) + { + $this->servicePath = $servicePath; + } + public function getServicePath() + { + return $this->servicePath; + } + public function setShuffleServicePath($shuffleServicePath) + { + $this->shuffleServicePath = $shuffleServicePath; + } + public function getShuffleServicePath() + { + return $this->shuffleServicePath; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_WriteInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } +} From bd93ed4f58712f67a6019fb0f17b6e1d5ce471e0 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:09 -0700 Subject: [PATCH 0754/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 61 ++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 0458735ba..7a29c91e1 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -6205,18 +6205,18 @@ class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection protected $collection_key = 'regions'; protected $internal_gapi_mappings = array( ); - public $countrys; + public $countries; public $languages; public $regions; - public function setCountrys($countrys) + public function setCountries($countries) { - $this->countrys = $countrys; + $this->countries = $countries; } - public function getCountrys() + public function getCountries() { - return $this->countrys; + return $this->countries; } public function setLanguages($languages) { @@ -6241,6 +6241,7 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection protected $collection_key = 'featuredChannelsUrls'; protected $internal_gapi_mappings = array( ); + public $country; public $defaultLanguage; public $defaultTab; public $description; @@ -6256,6 +6257,14 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection public $unsubscribedTrailer; + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; @@ -6366,6 +6375,7 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); + public $country; public $defaultLanguage; public $description; protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; @@ -6376,6 +6386,14 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model public $title; + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; @@ -8831,12 +8849,21 @@ class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { protected $internal_gapi_mappings = array( ); + public $isDefaultBroadcast; public $lifeCycleStatus; public $liveBroadcastPriority; public $privacyStatus; public $recordingStatus; + public function setIsDefaultBroadcast($isDefaultBroadcast) + { + $this->isDefaultBroadcast = $isDefaultBroadcast; + } + public function getIsDefaultBroadcast() + { + return $this->isDefaultBroadcast; + } public function setLifeCycleStatus($lifeCycleStatus) { $this->lifeCycleStatus = $lifeCycleStatus; @@ -9113,9 +9140,18 @@ class Google_Service_YouTube_LiveStreamStatus extends Google_Model { protected $internal_gapi_mappings = array( ); + public $isDefaultStream; public $streamStatus; + public function setIsDefaultStream($isDefaultStream) + { + $this->isDefaultStream = $isDefaultStream; + } + public function getIsDefaultStream() + { + return $this->isDefaultStream; + } public function setStreamStatus($streamStatus) { $this->streamStatus = $streamStatus; @@ -10946,12 +10982,9 @@ class Google_Service_YouTube_VideoAbuseReport extends Google_Model protected $internal_gapi_mappings = array( ); public $comments; - protected $languageType = 'Google_Service_YouTube_LanguageTag'; - protected $languageDataType = ''; - protected $reasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; - protected $reasonIdDataType = ''; - protected $secondaryReasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; - protected $secondaryReasonIdDataType = ''; + public $language; + public $reasonId; + public $secondaryReasonId; public $videoId; @@ -10963,7 +10996,7 @@ public function getComments() { return $this->comments; } - public function setLanguage(Google_Service_YouTube_LanguageTag $language) + public function setLanguage($language) { $this->language = $language; } @@ -10971,7 +11004,7 @@ public function getLanguage() { return $this->language; } - public function setReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $reasonId) + public function setReasonId($reasonId) { $this->reasonId = $reasonId; } @@ -10979,7 +11012,7 @@ public function getReasonId() { return $this->reasonId; } - public function setSecondaryReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $secondaryReasonId) + public function setSecondaryReasonId($secondaryReasonId) { $this->secondaryReasonId = $secondaryReasonId; } From 2790c8c1a6713ab146b5a2b2942182f65bb10d7c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:09 -0700 Subject: [PATCH 0755/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 42 ++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 892caf5c4..142fd4e15 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -173,7 +173,12 @@ public function __construct(Google_Client $client) 'custombatch' => array( 'path' => 'accountshipping/batch', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), ),'get' => array( 'path' => '{merchantId}/accountshipping/{accountId}', 'httpMethod' => 'GET', @@ -221,6 +226,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => '{merchantId}/accountshipping/{accountId}', @@ -236,6 +245,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -297,7 +310,12 @@ public function __construct(Google_Client $client) 'custombatch' => array( 'path' => 'accounttax/batch', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), ),'get' => array( 'path' => '{merchantId}/accounttax/{accountId}', 'httpMethod' => 'GET', @@ -345,6 +363,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => '{merchantId}/accounttax/{accountId}', @@ -360,6 +382,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -837,6 +863,8 @@ class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Ser * * @param Google_AccountshippingCustomBatchRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array()) @@ -890,6 +918,8 @@ public function listAccountshipping($merchantId, $optParams = array()) * account shipping settings. * @param Google_AccountShipping $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountShipping */ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) @@ -907,6 +937,8 @@ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Ac * account shipping settings. * @param Google_AccountShipping $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountShipping */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) @@ -994,6 +1026,8 @@ class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_ * * @param Google_AccounttaxCustomBatchRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array()) @@ -1047,6 +1081,8 @@ public function listAccounttax($merchantId, $optParams = array()) * account tax settings. * @param Google_AccountTax $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountTax */ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) @@ -1064,6 +1100,8 @@ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Ac * account tax settings. * @param Google_AccountTax $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountTax */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) From 148688894e87804e5c6bc30774ee8f29b90b79ae Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:10 -0700 Subject: [PATCH 0756/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index f2da854b4..3002d37f0 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -561,9 +561,8 @@ public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $o } /** - * Lists all the datasets in the specified project to which the caller has read - * access; however, a project owner can list (but not necessarily get) all - * datasets in his project. (datasets.listDatasets) + * Lists all datasets in the specified project to which you have been granted + * the READER dataset role. (datasets.listDatasets) * * @param string $projectId Project ID of the datasets to be listed * @param array $optParams Optional parameters. @@ -631,7 +630,9 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource { /** - * Retrieves the specified job by ID. (jobs.get) + * Returns information about a specific job. Job information is available for a + * six month period after creation. Requires that you're the person who ran the + * job, or have the Is Owner project role. (jobs.get) * * @param string $projectId Project ID of the requested job * @param string $jobId Job ID of the requested job @@ -670,7 +671,8 @@ public function getQueryResults($projectId, $jobId, $optParams = array()) } /** - * Starts a new asynchronous job. (jobs.insert) + * Starts a new asynchronous job. Requires the Can View project role. + * (jobs.insert) * * @param string $projectId Project ID of the project that will be billed for * the job @@ -686,9 +688,11 @@ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optPa } /** - * Lists all the Jobs in the specified project that were started by the user. - * The job list returns in reverse chronological order of when the jobs were - * created, starting with the most recent job created. (jobs.listJobs) + * Lists all jobs that you started in the specified project. The job list + * returns in reverse chronological order of when the jobs were created, + * starting with the most recent job created. Requires the Can View project + * role, or the Is Owner project role if you set the allUsers property. + * (jobs.listJobs) * * @param string $projectId Project ID of the jobs to list * @param array $optParams Optional parameters. @@ -739,7 +743,7 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource { /** - * Lists the projects to which you have at least read access. + * Lists all projects to which you have been granted any project role. * (projects.listProjects) * * @param array $optParams Optional parameters. @@ -770,7 +774,7 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource /** * Streams data into BigQuery one record at a time without needing to run a load - * job. (tabledata.insertAll) + * job. Requires the WRITER dataset role. (tabledata.insertAll) * * @param string $projectId Project ID of the destination table. * @param string $datasetId Dataset ID of the destination table. @@ -787,7 +791,8 @@ public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigqu } /** - * Retrieves table data from a specified set of rows. (tabledata.listTabledata) + * Retrieves table data from a specified set of rows. Requires the READER + * dataset role. (tabledata.listTabledata) * * @param string $projectId Project ID of the table to read * @param string $datasetId Dataset ID of the table to read @@ -870,7 +875,8 @@ public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $po } /** - * Lists all tables in the specified dataset. (tables.listTables) + * Lists all tables in the specified dataset. Requires the READER dataset role. + * (tables.listTables) * * @param string $projectId Project ID of the tables to list * @param string $datasetId Dataset ID of the tables to list From 754f6cb1577dd4a9664ba9fdac01634621252ac3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:10 -0700 Subject: [PATCH 0757/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 398da7aa6..0140ee797 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -1762,13 +1762,13 @@ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, * @param array $optParams Optional parameters. * * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of a file as distinct - * results. + * @opt_param bool versions If true, lists all versions of an object as distinct + * results. The default is false. For more information, see Object Versioning. * @opt_param string prefix Filter results to objects whose names begin with * this prefix. * @opt_param string maxResults Maximum number of items plus prefixes to return. * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. + * requested. The default value of this parameter is 1,000 items. * @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 @@ -1918,13 +1918,13 @@ public function update($bucket, $object, Google_Service_Storage_StorageObject $p * @param array $optParams Optional parameters. * * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of a file as distinct - * results. + * @opt_param bool versions If true, lists all versions of an object as distinct + * results. The default is false. For more information, see Object Versioning. * @opt_param string prefix Filter results to objects whose names begin with * this prefix. * @opt_param string maxResults Maximum number of items plus prefixes to return. * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. + * requested. The default value of this parameter is 1,000 items. * @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 From 4ed94b2793f669d61e4d2b78d6fda925d1e9ffe2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 24 Apr 2015 05:45:10 -0700 Subject: [PATCH 0758/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 54 +++++++++++++++++------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index fe90e8033..a6a67b083 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -479,14 +479,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'revisionId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'acknowledgeAbuse' => array( 'location' => 'query', 'type' => 'boolean', @@ -495,6 +487,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'insert' => array( 'path' => 'files', @@ -713,14 +713,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'revisionId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'acknowledgeAbuse' => array( 'location' => 'query', 'type' => 'boolean', @@ -729,6 +721,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1721,15 +1721,14 @@ public function emptyTrash($optParams = array()) * @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 string revisionId Specifies the Revision ID that should be - * downloaded. Ignored unless alt=media is specified. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. Ignored unless alt=media - * is specified. + * of downloading known malware or other abusive files. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. + * @opt_param string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. + * @opt_param string projection This parameter is deprecated and has no + * function. * @return Google_Service_Drive_DriveFile */ public function get($fileId, $optParams = array()) @@ -1917,15 +1916,14 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection This parameter is deprecated and has no - * function. - * @opt_param string revisionId Specifies the Revision ID that should be - * downloaded. Ignored unless alt=media is specified. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. Ignored unless alt=media - * is specified. + * of downloading known malware or other abusive files. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. + * @opt_param string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. + * @opt_param string projection This parameter is deprecated and has no + * function. * @return Google_Service_Drive_Channel */ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) From 1db3e929502e1fba4f74c929e4b4986a538a159c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 25 Apr 2015 05:46:03 -0700 Subject: [PATCH 0759/1274] Added service Computeaccounts.php --- src/Google/Service/Computeaccounts.php | 1689 ++++++++++++++++++++++++ 1 file changed, 1689 insertions(+) create mode 100644 src/Google/Service/Computeaccounts.php diff --git a/src/Google/Service/Computeaccounts.php b/src/Google/Service/Computeaccounts.php new file mode 100644 index 000000000..35eacaf47 --- /dev/null +++ b/src/Google/Service/Computeaccounts.php @@ -0,0 +1,1689 @@ + + * API for the Google Compute Accounts service.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Computeaccounts extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** New Service: https://www.googleapis.com/auth/computeaccounts. */ + const COMPUTEACCOUNTS = + "https://www.googleapis.com/auth/computeaccounts"; + /** New Service: https://www.googleapis.com/auth/computeaccounts.readonly. */ + const COMPUTEACCOUNTS_READONLY = + "https://www.googleapis.com/auth/computeaccounts.readonly"; + + public $globalAccountsOperations; + public $groups; + public $linux; + public $users; + + + /** + * Constructs the internal representation of the Computeaccounts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'computeaccounts/alpha/projects/'; + $this->version = 'alpha'; + $this->serviceName = 'computeaccounts'; + + $this->globalAccountsOperations = new Google_Service_Computeaccounts_GlobalAccountsOperations_Resource( + $this, + $this->serviceName, + 'globalAccountsOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_Computeaccounts_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'addMember' => array( + 'path' => '{project}/global/groups/{groupName}/addMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removeMember' => array( + 'path' => '{project}/global/groups/{groupName}/removeMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->linux = new Google_Service_Computeaccounts_Linux_Resource( + $this, + $this->serviceName, + 'linux', + array( + 'methods' => array( + 'getAuthorizedKeysView' => array( + 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getLinuxAccountViews' => array( + 'path' => '{project}/zones/{zone}/linuxAccountViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'user' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_Computeaccounts_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'addPublicKey' => array( + 'path' => '{project}/global/users/{user}/addPublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removePublicKey' => array( + 'path' => '{project}/global/users/{user}/removePublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "globalAccountsOperations" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; + * + */ +class Google_Service_Computeaccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified operation resource. (globalAccountsOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalAccountsOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalAccountsOperations.listGlobalAccountsOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_OperationList + */ + public function listGlobalAccountsOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_OperationList"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $groups = $computeaccountsService->groups; + * + */ +class Google_Service_Computeaccounts_Groups_Resource extends Google_Service_Resource +{ + + /** + * Adds users to the specified group. (groups.addMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsAddMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function addMember($project, $groupName, Google_Service_Computeaccounts_GroupsAddMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addMember', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Deletes the specified group resource. (groups.delete) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function delete($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Returns the specified group resource. (groups.get) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Group + */ + public function get($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_Group"); + } + + /** + * Creates a group resource in the specified project using the data included in + * the request. (groups.insert) + * + * @param string $project Project ID for this request. + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function insert($project, Google_Service_Computeaccounts_Group $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of groups contained within the specified project. + * (groups.listGroups) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_GroupList + */ + public function listGroups($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_GroupList"); + } + + /** + * Removes users from the specified group. (groups.removeMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsRemoveMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function removeMember($project, $groupName, Google_Service_Computeaccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeMember', array($params), "Google_Service_Computeaccounts_Operation"); + } +} + +/** + * The "linux" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $linux = $computeaccountsService->linux; + * + */ +class Google_Service_Computeaccounts_Linux_Resource extends Google_Service_Resource +{ + + /** + * Returns the AuthorizedKeysView of the specified user. + * (linux.getAuthorizedKeysView) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $user Username of the AuthorizedKeysView to return. + * @param string $instance The fully-qualified URL of the instance requesting + * the view. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse + */ + public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getAuthorizedKeysView', array($params), "Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse"); + } + + /** + * Retrieves the Linux views for an instance contained within the specified + * project. (linux.getLinuxAccountViews) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $instance The fully-qualified URL of the instance requesting + * the views. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string user If provided, the user whose login is triggering an + * immediate refresh of the views. + * @return Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse + */ + public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getLinuxAccountViews', array($params), "Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $users = $computeaccountsService->users; + * + */ +class Google_Service_Computeaccounts_Users_Resource extends Google_Service_Resource +{ + + /** + * Adds a public key to the specified user using the data included in the + * request. (users.addPublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param Google_PublicKey $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function addPublicKey($project, $user, Google_Service_Computeaccounts_PublicKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addPublicKey', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Deletes the specified user resource. (users.delete) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function delete($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Returns the specified user resource. (users.get) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_User + */ + public function get($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_User"); + } + + /** + * Creates a user resource in the specified project using the data included in + * the request. (users.insert) + * + * @param string $project Project ID for this request. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function insert($project, Google_Service_Computeaccounts_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of users contained within the specified project. + * (users.listUsers) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_UserList + */ + public function listUsers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_UserList"); + } + + /** + * Removes the specified public key from the user. (users.removePublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param string $fingerprint The fingerprint of the public key to delete. + * Public keys are identified by their fingerprint, which is defined by RFC4716 + * to be the MD5 digest of the public key. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function removePublicKey($project, $user, $fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); + $params = array_merge($params, $optParams); + return $this->call('removePublicKey', array($params), "Google_Service_Computeaccounts_Operation"); + } +} + + + + +class Google_Service_Computeaccounts_AuthorizedKeysView extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $keys; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_Computeaccounts_Group extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $members; + public $name; + public $selfLink; + + + 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 setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + 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_Computeaccounts_GroupList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_Group'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_GroupsAddMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Computeaccounts_GroupsRemoveMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Computeaccounts_LinuxAccountViews extends Google_Collection +{ + protected $collection_key = 'userViews'; + protected $internal_gapi_mappings = array( + ); + protected $groupViewsType = 'Google_Service_Computeaccounts_LinuxGroupView'; + protected $groupViewsDataType = 'array'; + public $kind; + protected $userViewsType = 'Google_Service_Computeaccounts_LinuxUserView'; + protected $userViewsDataType = 'array'; + + + public function setGroupViews($groupViews) + { + $this->groupViews = $groupViews; + } + public function getGroupViews() + { + return $this->groupViews; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserViews($userViews) + { + $this->userViews = $userViews; + } + public function getUserViews() + { + return $this->userViews; + } +} + +class Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Computeaccounts_AuthorizedKeysView'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Computeaccounts_AuthorizedKeysView $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Computeaccounts_LinuxAccountViews'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Computeaccounts_LinuxAccountViews $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Computeaccounts_LinuxGroupView extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $gid; + public $groupName; + public $members; + + + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setGroupName($groupName) + { + $this->groupName = $groupName; + } + public function getGroupName() + { + return $this->groupName; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } +} + +class Google_Service_Computeaccounts_LinuxUserView extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gecos; + public $gid; + public $homeDirectory; + public $shell; + public $uid; + public $username; + + + public function setGecos($gecos) + { + $this->gecos = $gecos; + } + public function getGecos() + { + return $this->gecos; + } + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setHomeDirectory($homeDirectory) + { + $this->homeDirectory = $homeDirectory; + } + public function getHomeDirectory() + { + return $this->homeDirectory; + } + public function setShell($shell) + { + $this->shell = $shell; + } + public function getShell() + { + return $this->shell; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_Computeaccounts_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Computeaccounts_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Computeaccounts_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_Computeaccounts_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Computeaccounts_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Computeaccounts_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Computeaccounts_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Computeaccounts_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Computeaccounts_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Computeaccounts_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Computeaccounts_PublicKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $expirationTimestamp; + public $fingerprint; + public $key; + + + 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 setExpirationTimestamp($expirationTimestamp) + { + $this->expirationTimestamp = $expirationTimestamp; + } + public function getExpirationTimestamp() + { + return $this->expirationTimestamp; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } +} + +class Google_Service_Computeaccounts_User extends Google_Collection +{ + protected $collection_key = 'publicKeys'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $groups; + public $id; + public $kind; + public $name; + public $owner; + protected $publicKeysType = 'Google_Service_Computeaccounts_PublicKey'; + protected $publicKeysDataType = 'array'; + public $selfLink; + + + 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 setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } + 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 setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + public function getPublicKeys() + { + return $this->publicKeys; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_UserList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} From a73b5b2d4e71890ed6ada2881fefb0c3405ff648 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 27 Apr 2015 13:28:16 -0400 Subject: [PATCH 0760/1274] More efficient file upload from URL --- examples/fileupload.php | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/examples/fileupload.php b/examples/fileupload.php index 03a928e57..b371bb64d 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -95,7 +95,10 @@ $status = false; $handle = fopen(TESTFILE, "rb"); while (!$status && !feof($handle)) { - $chunk = fread($handle, $chunkSizeBytes); + // read until you get $chunkSizeBytes from TESTFILE + // fread will never return more than 8192 bytes if the stream is read buffered and it does not represent a plain file + // An example of a read buffered file is when reading from a URL + $chunk = readVideoChunk($handle, $chunkSizeBytes); $status = $media->nextChunk($chunk); } @@ -113,10 +116,26 @@ echo missingClientSecretsWarning(); exit; } +function readVideoChunk ($handle, $chunkSize) +{ + $byteCount = 0; + $giantChunk = ""; + while (!feof($handle)) { + // fread will never return more than 8192 bytes if the stream is read buffered and it does not represent a plain file + $chunk = fread($handle, 8192); + $byteCount += strlen($chunk); + $giantChunk .= $chunk; + if ($byteCount >= $chunkSize) + { + return $giantChunk; + } + } + return $giantChunk; +} ?>
-Connect Me!"; } @@ -124,7 +143,7 @@
- Date: Fri, 1 May 2015 10:52:34 +0300 Subject: [PATCH 0761/1274] Avoid double URL encoding for params MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to documentation, for filters, URL-reserved characters — Characters such as & must be url-encoded in the usual way, see https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filterExpressions If in a filter such as ga:pagePath an URI is used, which needs to be url-encoded, the createRequestUri method will apply an additional rawurlencode() on it resulting in a double URL encoding. --- src/Google/Http/REST.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 7f579ac7a..9f09f462a 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -153,10 +153,10 @@ public static function createRequestUri($servicePath, $restPath, $params) } else if ($paramSpec['location'] == 'query') { if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode($value); + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); } } else { - $queryVars[] = $paramName . '=' . rawurlencode($paramSpec['value']); + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); } } } From ca81cc93bcffee27da99234e8dbfbbef15a19e4e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 19 May 2015 19:54:37 +0300 Subject: [PATCH 0762/1274] Allow for valid cross client authentication requests --- src/Google/Auth/OAuth2.php | 22 ++++++++++++++-------- src/Google/Client.php | 7 +++++-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 5206e3b0b..ca3468f52 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -78,28 +78,34 @@ public function authenticatedRequest(Google_Http_Request $request) /** * @param string $code + * @param boolean $crossClient * @throws Google_Auth_Exception * @return string */ - public function authenticate($code) + public function authenticate($code, $crossClient) { if (strlen($code) == 0) { throw new Google_Auth_Exception("Invalid code"); } + $arguments = array( + 'code' => $code, + 'grant_type' => 'authorization_code', + 'client_id' => $this->client->getClassConfig($this, 'client_id'), + 'client_secret' => $this->client->getClassConfig($this, 'client_secret') + ); + + if($crossClient !== true) { + $arguments['redirect_uri'] = $this->client->getClassConfig($this, 'redirect_uri'); + } + // We got here from the redirect from a successful authorization grant, // fetch the access token $request = new Google_Http_Request( self::OAUTH2_TOKEN_URI, 'POST', array(), - array( - 'code' => $code, - 'grant_type' => 'authorization_code', - 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret') - ) + $arguments ); $request->disableGzip(); $response = $this->client->getIo()->makeRequest($request); diff --git a/src/Google/Client.php b/src/Google/Client.php index aef442f61..df3f5a2bb 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -114,15 +114,18 @@ public function getLibraryVersion() /** * Attempt to exchange a code for an valid authentication token. + * If $crossClient is set to true, the request body will not include + * the request_uri argument * Helper wrapped around the OAuth 2.0 implementation. * * @param $code string code from accounts.google.com + * @param $crossIdentity boolean, whether this is a cross-client authentication * @return string token */ - public function authenticate($code) + public function authenticate($code, $crossClient = false) { $this->authenticated = true; - return $this->getAuth()->authenticate($code); + return $this->getAuth()->authenticate($code, $crossClient); } /** From 3ff583a31078bfe8d2fc012a92e242e294353718 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 May 2015 13:13:49 +0300 Subject: [PATCH 0763/1274] Optional parameter in OAuth2 --- src/Google/Auth/OAuth2.php | 2 +- src/Google/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index ca3468f52..578e35878 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -82,7 +82,7 @@ public function authenticatedRequest(Google_Http_Request $request) * @throws Google_Auth_Exception * @return string */ - public function authenticate($code, $crossClient) + public function authenticate($code, $crossClient = false) { if (strlen($code) == 0) { throw new Google_Auth_Exception("Invalid code"); diff --git a/src/Google/Client.php b/src/Google/Client.php index df3f5a2bb..1bcb7208d 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -119,7 +119,7 @@ public function getLibraryVersion() * Helper wrapped around the OAuth 2.0 implementation. * * @param $code string code from accounts.google.com - * @param $crossIdentity boolean, whether this is a cross-client authentication + * @param $crossClient boolean, whether this is a cross-client authentication * @return string token */ public function authenticate($code, $crossClient = false) From c27df1089b92a561c0ac348b32ab60e694d71ede Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Tue, 19 May 2015 17:00:03 -0400 Subject: [PATCH 0764/1274] Support the usage of per-service root urls. This allows the specification of a separate URL on a per-service basis to accommodate for different endpoints. --- src/Google/Service.php | 1 + src/Google/Service/Resource.php | 13 ++- tests/general/ResourceTest.php | 140 ++++++++++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 tests/general/ResourceTest.php diff --git a/src/Google/Service.php b/src/Google/Service.php index 2e0b6c522..be75eb7ff 100644 --- a/src/Google/Service.php +++ b/src/Google/Service.php @@ -17,6 +17,7 @@ class Google_Service { + public $rootUrl; public $version; public $servicePath; public $availableScopes; diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 5921c35d6..537da520a 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -41,6 +41,9 @@ class Google_Service_Resource 'prettyPrint' => array('type' => 'string', 'location' => 'query'), ); + /** @var string $rootUrl */ + private $rootUrl; + /** @var Google_Client $client */ private $client; @@ -58,11 +61,12 @@ class Google_Service_Resource public function __construct($service, $serviceName, $resourceName, $resource) { + $this->rootUrl = $service->rootUrl; $this->client = $service->getClient(); $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; $this->resourceName = $resourceName; - $this->methods = isset($resource['methods']) ? + $this->methods = is_array($resource) && isset($resource['methods']) ? $resource['methods'] : array($resourceName => $resource); } @@ -193,7 +197,12 @@ public function call($name, $arguments, $expected_class = null) null, $postBody ); - $httpRequest->setBaseComponent($this->client->getBasePath()); + + if ($this->rootUrl) { + $httpRequest->setBaseComponent($this->rootUrl); + } else { + $httpRequest->setBaseComponent($this->client->getBasePath()); + } if ($postBody) { $contentTypeHeader = array(); diff --git a/tests/general/ResourceTest.php b/tests/general/ResourceTest.php new file mode 100644 index 000000000..b521fdf33 --- /dev/null +++ b/tests/general/ResourceTest.php @@ -0,0 +1,140 @@ +rootUrl = ""; + $this->servicePath = ""; + $this->version = "v1beta1"; + $this->serviceName = "test"; + } +} + +class ResourceTest extends PHPUnit_Framework_TestCase +{ + private $client; + private $service; + private $logger; + + public function setUp() + { + $this->client = $this->getMockBuilder("Google_Client") + ->disableOriginalConstructor() + ->getMock(); + $this->logger = $this->getMockBuilder("Google_Logger_Null") + ->disableOriginalConstructor() + ->getMock(); + $this->client->expects($this->any()) + ->method("getClassConfig") + ->will($this->returnCallback(function($class, $type) { + if (!is_string($class)) { + $class = get_class($class); + } + $configMap = array( + "Google_Auth_Simple" => array( + "developer_key" => "testKey" + ), + ); + return isset($configMap[$class][$type]) ? $configMap[$class][$type] : null; + })); + $this->client->expects($this->any()) + ->method("getLogger") + ->will($this->returnValue($this->logger)); + $this->client->expects($this->any()) + ->method("shouldDefer") + ->will($this->returnValue(true)); + $this->client->expects($this->any()) + ->method("getBasePath") + ->will($this->returnValue("https://test.example.com")); + $this->client->expects($this->any()) + ->method("getAuth") + ->will($this->returnValue(new Google_Auth_Simple($this->client))); + $this->service = new Test_Google_Service($this->client); + } + + public function testCallFailure() + { + $resource = new Google_Service_Resource( + $this->service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $this->setExpectedException( + "Google_Exception", + "Unknown function: test->testResource->someothermethod()" + ); + $resource->call("someothermethod", array()); + } + + public function testCallSimple() + { + $resource = new Google_Service_Resource( + $this->service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $request = $resource->call("testMethod", array(array())); + $this->assertEquals("https://test.example.com/method/path?key=testKey", $request->getUrl()); + $this->assertEquals("POST", $request->getRequestMethod()); + } + + public function testCallServiceDefinedRoot() + { + $this->service->rootUrl = "https://sample.example.com"; + $resource = new Google_Service_Resource( + $this->service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $request = $resource->call("testMethod", array(array())); + $this->assertEquals("https://sample.example.com/method/path?key=testKey", $request->getUrl()); + $this->assertEquals("POST", $request->getRequestMethod()); + } +} From a64b216fc637eca0d18185efe7409a9c6b541f17 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 21 May 2015 12:35:22 -0700 Subject: [PATCH 0765/1274] Bump dev version string. --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index aef442f61..5044da32a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -25,7 +25,7 @@ */ class Google_Client { - const LIBVER = "1.1.3"; + const LIBVER = "1.1.4"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From 7169724bbe8a1327cc9d1314af357f0192cae6e8 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Thu, 21 May 2015 12:39:50 -0700 Subject: [PATCH 0766/1274] Bump version for dev master. Update to 1.1.5 --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 5044da32a..e699352dc 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -25,7 +25,7 @@ */ class Google_Client { - const LIBVER = "1.1.4"; + const LIBVER = "1.1.5"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth From 69704f981ea14ecdb603f2f875ec262a148706d2 Mon Sep 17 00:00:00 2001 From: Minimax42 Date: Sat, 23 May 2015 21:39:50 +0200 Subject: [PATCH 0767/1274] Corrected path to autoload.php --- src/Google/Client.php | 2 +- src/Google/Collection.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index e699352dc..5c9235c19 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -16,7 +16,7 @@ */ if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; + require_once dirname(__FILE__) . '/autoload.php'; } /** diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 3f4c3011a..deed7111b 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,7 +1,7 @@ Date: Wed, 10 Jun 2015 13:23:27 -0700 Subject: [PATCH 0768/1274] Fixing a minor typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c5564e45d..fc79b3beb 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ To avoid clashes with the autoloader, its best to update the function inside aut ## Code Quality ## -Run the PHPUnit tests with PHPUnit. You can configure and API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console. +Run the PHPUnit tests with PHPUnit. You can configure an API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console. phpunit tests/ From 872d016c19ff8c1395978c4ccbe988389ed9869a Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Wed, 17 Jun 2015 11:28:40 -0400 Subject: [PATCH 0769/1274] Add separate createBatch method to propagate batch URLs properly on a per-service basis. Fix newline stripping in batching --- src/Google/Http/Batch.php | 16 ++-- src/Google/Service.php | 17 +++++ tests/general/Http/BatchTest.php | 121 +++++++++++++++++++++++++++++++ tests/general/ServiceTest.php | 1 + 4 files changed, 148 insertions(+), 7 deletions(-) create mode 100644 tests/general/Http/BatchTest.php diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 6286f317d..039b4dd32 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -35,12 +35,15 @@ class Google_Http_Batch private $expected_classes = array(); - private $base_path; + private $root_url; - public function __construct(Google_Client $client, $boundary = false) + private $batch_path; + + public function __construct(Google_Client $client, $boundary = false, $rootUrl = '', $batchPath = '') { $this->client = $client; - $this->base_path = $this->client->getBasePath(); + $this->root_url = rtrim($rootUrl ? $rootUrl : $this->client->getBasePath(), '/'); + $this->batch_path = $batchPath ? $batchPath : 'batch'; $this->expected_classes = array(); $boundary = (false == $boundary) ? mt_rand() : $boundary; $this->boundary = str_replace('"', '', $boundary); @@ -62,14 +65,13 @@ public function execute() /** @var Google_Http_Request $req */ foreach ($this->requests as $key => $req) { $body .= "--{$this->boundary}\n"; - $body .= $req->toBatchString($key) . "\n"; + $body .= $req->toBatchString($key) . "\n\n"; $this->expected_classes["response-" . $key] = $req->getExpectedClass(); } - $body = rtrim($body); - $body .= "\n--{$this->boundary}--"; + $body .= "--{$this->boundary}--"; - $url = $this->base_path . '/batch'; + $url = $this->root_url . '/' . $this->batch_path; $httpRequest = new Google_Http_Request($url, 'POST'); $httpRequest->setRequestHeaders( array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary) diff --git a/src/Google/Service.php b/src/Google/Service.php index be75eb7ff..418dd1833 100644 --- a/src/Google/Service.php +++ b/src/Google/Service.php @@ -17,6 +17,7 @@ class Google_Service { + public $batchPath; public $rootUrl; public $version; public $servicePath; @@ -37,4 +38,20 @@ public function getClient() { return $this->client; } + + /** + * Create a new HTTP Batch handler for this service + * + * @return Google_Http_Batch + */ + public function createBatch() + { + return new Google_Http_Batch( + $this->client, + false, + $this->rootUrl, + $this->batchPath + ); + } + } diff --git a/tests/general/Http/BatchTest.php b/tests/general/Http/BatchTest.php new file mode 100644 index 000000000..e53361f36 --- /dev/null +++ b/tests/general/Http/BatchTest.php @@ -0,0 +1,121 @@ +client = $this->getMockBuilder("Google_Client") + ->disableOriginalConstructor() + ->getMock(); + } + + public function testBasicFunctionality() + { + $this->client->expects($this->once()) + ->method("getBasePath") + ->will($this->returnValue("base_path")); + $batch = new Google_Http_Batch($this->client); + $this->assertAttributeEquals("base_path", "root_url", $batch); + $this->assertAttributeEquals("batch", "batch_path", $batch); + } + + public function testExtractionOfRootUrlFromService() + { + $this->client->expects($this->never()) + ->method("getBasePath"); + $service = new Google_Service($this->client); + $service->rootUrl = "root_url_dummy"; + $service->batchPath = "batch_path_dummy"; + $batch = $service->createBatch(); + $this->assertInstanceOf("Google_Http_Batch", $batch); + $this->assertAttributeEquals("root_url_dummy", "root_url", $batch); + $this->assertAttributeEquals("batch_path_dummy", "batch_path", $batch); + } + + public function testExecuteCustomRootUrlBatchPath() + { + $io = $this->getMockBuilder('Google_IO_Abstract') + ->disableOriginalConstructor() + ->setMethods(['makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout']) + ->getMock(); + $req = null; + $io->expects($this->once()) + ->method("makeRequest") + ->will($this->returnCallback(function($request) use (&$req) { + $req = $request; + return $request; + })); + $this->client->expects($this->once()) + ->method("getIo") + ->will($this->returnValue($io)); + $batch = new Google_Http_Batch($this->client, false, 'https://www.example.com/', 'bat'); + $this->assertNull($batch->execute()); + $this->assertInstanceOf("Google_Http_Request", $req); + $this->assertEquals("https://www.example.com/bat", $req->getUrl()); + } + + public function testExecuteBodySerialization() + { + $io = $this->getMockBuilder('Google_IO_Abstract') + ->disableOriginalConstructor() + ->setMethods(['makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout']) + ->getMock(); + $req = null; + $io->expects($this->once()) + ->method("makeRequest") + ->will($this->returnCallback(function($request) use (&$req) { + $req = $request; + return $request; + })); + $this->client->expects($this->once()) + ->method("getIo") + ->will($this->returnValue($io)); + $batch = new Google_Http_Batch($this->client, "BOUNDARY_TEXT", 'https://www.example.com/', 'bat'); + $req1 = new Google_Http_Request("https://www.example.com/req1"); + $req2 = new Google_Http_Request("https://www.example.com/req2", 'POST', array(), 'POSTBODY'); + $batch->add($req1, '1'); + $batch->add($req2, '2'); + $this->assertNull($batch->execute()); + $this->assertInstanceOf("Google_Http_Request", $req); + $format = <<<'EOF' +--BOUNDARY_TEXT +Content-Type: application/http +Content-Transfer-Encoding: binary +MIME-Version: 1.0 +Content-ID: 1 + +GET /req1? HTTP/1.1 + + +--BOUNDARY_TEXT +Content-Type: application/http +Content-Transfer-Encoding: binary +MIME-Version: 1.0 +Content-ID: 2 + +POST /req2? HTTP/1.1 + +POSTBODY + +--BOUNDARY_TEXT-- +EOF; + $this->assertEquals($format, $req->getPostBody()); + } + +} \ No newline at end of file diff --git a/tests/general/ServiceTest.php b/tests/general/ServiceTest.php index 306c4a27a..b3963b158 100644 --- a/tests/general/ServiceTest.php +++ b/tests/general/ServiceTest.php @@ -33,6 +33,7 @@ public function isAssociativeArray($array) class ServiceTest extends PHPUnit_Framework_TestCase { + public function testModel() { $model = new TestModel(); From 2b53f9809f685fae5bdbebc6873a2a50e267e366 Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Wed, 17 Jun 2015 11:37:54 -0400 Subject: [PATCH 0770/1274] Fix PHP 5.3 compatibility --- tests/general/Http/BatchTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/general/Http/BatchTest.php b/tests/general/Http/BatchTest.php index e53361f36..04246006a 100644 --- a/tests/general/Http/BatchTest.php +++ b/tests/general/Http/BatchTest.php @@ -52,7 +52,7 @@ public function testExecuteCustomRootUrlBatchPath() { $io = $this->getMockBuilder('Google_IO_Abstract') ->disableOriginalConstructor() - ->setMethods(['makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout']) + ->setMethods(array('makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout')) ->getMock(); $req = null; $io->expects($this->once()) @@ -74,7 +74,7 @@ public function testExecuteBodySerialization() { $io = $this->getMockBuilder('Google_IO_Abstract') ->disableOriginalConstructor() - ->setMethods(['makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout']) + ->setMethods(array('makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout')) ->getMock(); $req = null; $io->expects($this->once()) From b9a3b4bc0d1dde01a70bdc31d3079a13f83f8429 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:28 -0700 Subject: [PATCH 0771/1274] Updated Compute.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Compute.php | 443 +++++++++++++++------------------ 1 file changed, 201 insertions(+), 242 deletions(-) diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 6c6f03239..6cc848b16 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -88,6 +88,7 @@ class Google_Service_Compute extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'compute/v1/projects/'; $this->version = 'v1'; $this->serviceName = 'compute'; @@ -3091,12 +3092,10 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3163,12 +3162,10 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressList */ public function listAddresses($project, $region, $optParams = array()) @@ -3261,12 +3258,10 @@ public function insert($project, Google_Service_Compute_BackendService $postBody * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_BackendServiceList */ public function listBackendServices($project, $optParams = array()) @@ -3329,12 +3324,10 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3368,12 +3361,10 @@ public function get($project, $zone, $diskType, $optParams = array()) * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskTypeList */ public function listDiskTypes($project, $zone, $optParams = array()) @@ -3401,12 +3392,10 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3492,12 +3481,10 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskList */ public function listDisks($project, $zone, $optParams = array()) @@ -3572,12 +3559,10 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_FirewallList */ public function listFirewalls($project, $optParams = array()) @@ -3640,12 +3625,10 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3712,12 +3695,10 @@ public function insert($project, $region, Google_Service_Compute_ForwardingRule * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleList */ public function listForwardingRules($project, $region, $optParams = array()) @@ -3810,12 +3791,10 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressList */ public function listGlobalAddresses($project, $optParams = array()) @@ -3890,12 +3869,10 @@ public function insert($project, Google_Service_Compute_ForwardingRule $postBody * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleList */ public function listGlobalForwardingRules($project, $optParams = array()) @@ -3941,12 +3918,10 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3992,12 +3967,10 @@ public function get($project, $operation, $optParams = array()) * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listGlobalOperations($project, $optParams = array()) @@ -4074,12 +4047,10 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_HttpHealthCheckList */ public function listHttpHealthChecks($project, $optParams = array()) @@ -4210,12 +4181,10 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ImageList */ public function listImages($project, $optParams = array()) @@ -4238,11 +4207,10 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R { /** - * Deletes the specified instance template resource. (instanceTemplates.delete) + * Deletes the specified instance template. (instanceTemplates.delete) * - * @param string $project Name of the project scoping this request. - * @param string $instanceTemplate Name of the instance template resource to - * delete. + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4256,9 +4224,8 @@ public function delete($project, $instanceTemplate, $optParams = array()) /** * Returns the specified instance template resource. (instanceTemplates.get) * - * @param string $project Name of the project scoping this request. - * @param string $instanceTemplate Name of the instance template resource to - * return. + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template. * @param array $optParams Optional parameters. * @return Google_Service_Compute_InstanceTemplate */ @@ -4270,10 +4237,10 @@ public function get($project, $instanceTemplate, $optParams = array()) } /** - * Creates an instance template resource in the specified project using the data + * Creates an instance template in the specified project using the data that is * included in the request. (instanceTemplates.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project The project ID for this request. * @param Google_InstanceTemplate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4286,18 +4253,16 @@ public function insert($project, Google_Service_Compute_InstanceTemplate $postBo } /** - * Retrieves the list of instance template resources contained within the - * specified project. (instanceTemplates.listInstanceTemplates) + * Retrieves a list of instance templates that are contained within the + * specified project and zone. (instanceTemplates.listInstanceTemplates) * - * @param string $project Name of the project scoping this request. + * @param string $project The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceTemplateList */ public function listInstanceTemplates($project, $optParams = array()) @@ -4345,12 +4310,10 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4490,12 +4453,10 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceList */ public function listInstances($project, $zone, $optParams = array()) @@ -4622,7 +4583,7 @@ public function start($project, $zone, $instance, $optParams = array()) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to start. + * @param string $instance Name of the instance resource to stop. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4679,12 +4640,10 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_MachineTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4718,12 +4677,10 @@ public function get($project, $zone, $machineType, $optParams = array()) * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_MachineTypeList */ public function listMachineTypes($project, $zone, $optParams = array()) @@ -4798,12 +4755,10 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_NetworkList */ public function listNetworks($project, $optParams = array()) @@ -4956,12 +4911,10 @@ public function get($project, $region, $operation, $optParams = array()) * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listRegionOperations($project, $region, $optParams = array()) @@ -5005,12 +4958,10 @@ public function get($project, $region, $optParams = array()) * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_RegionList */ public function listRegions($project, $optParams = array()) @@ -5085,12 +5036,10 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_RouteList */ public function listRoutes($project, $optParams = array()) @@ -5151,12 +5100,10 @@ public function get($project, $snapshot, $optParams = array()) * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_SnapshotList */ public function listSnapshots($project, $optParams = array()) @@ -5233,12 +5180,10 @@ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBod * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetHttpProxyList */ public function listTargetHttpProxies($project, $optParams = array()) @@ -5284,12 +5229,10 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetInstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5356,12 +5299,10 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetInstanceList */ public function listTargetInstances($project, $zone, $optParams = array()) @@ -5426,12 +5367,10 @@ public function addInstance($project, $region, $targetPool, Google_Service_Compu * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetPoolAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5517,12 +5456,10 @@ public function insert($project, $region, Google_Service_Compute_TargetPool $pos * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetPoolList */ public function listTargetPools($project, $region, $optParams = array()) @@ -5608,12 +5545,10 @@ class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_R * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetVpnGatewayAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5682,12 +5617,10 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetVpnGatewayList */ public function listTargetVpnGateways($project, $region, $optParams = array()) @@ -5762,12 +5695,10 @@ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optPa * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_UrlMapList */ public function listUrlMaps($project, $optParams = array()) @@ -5847,12 +5778,10 @@ class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_VpnTunnelAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5919,12 +5848,10 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_VpnTunnelList */ public function listVpnTunnels($project, $region, $optParams = array()) @@ -5987,12 +5914,10 @@ public function get($project, $zone, $operation, $optParams = array()) * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -6036,12 +5961,10 @@ public function get($project, $zone, $optParams = array()) * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ZoneList */ public function listZones($project, $optParams = array()) @@ -6892,13 +6815,15 @@ public function getState() class Google_Service_Compute_Disk extends Google_Collection { - protected $collection_key = 'licenses'; + protected $collection_key = 'users'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; public $description; public $id; public $kind; + public $lastAttachTimestamp; + public $lastDetachTimestamp; public $licenses; public $name; public $options; @@ -6910,6 +6835,7 @@ class Google_Service_Compute_Disk extends Google_Collection public $sourceSnapshotId; public $status; public $type; + public $users; public $zone; @@ -6945,6 +6871,22 @@ public function getKind() { return $this->kind; } + public function setLastAttachTimestamp($lastAttachTimestamp) + { + $this->lastAttachTimestamp = $lastAttachTimestamp; + } + public function getLastAttachTimestamp() + { + return $this->lastAttachTimestamp; + } + public function setLastDetachTimestamp($lastDetachTimestamp) + { + $this->lastDetachTimestamp = $lastDetachTimestamp; + } + public function getLastDetachTimestamp() + { + return $this->lastDetachTimestamp; + } public function setLicenses($licenses) { $this->licenses = $licenses; @@ -7033,6 +6975,14 @@ public function getType() { return $this->type; } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } public function setZone($zone) { $this->zone = $zone; @@ -11076,6 +11026,7 @@ class Google_Service_Compute_Scheduling extends Google_Model ); public $automaticRestart; public $onHostMaintenance; + public $preemptible; public function setAutomaticRestart($automaticRestart) @@ -11094,6 +11045,14 @@ public function getOnHostMaintenance() { return $this->onHostMaintenance; } + public function setPreemptible($preemptible) + { + $this->preemptible = $preemptible; + } + public function getPreemptible() + { + return $this->preemptible; + } } class Google_Service_Compute_SerialPortOutput extends Google_Model From d764d2308c685fa8d675943fbd24d1771deec7ba Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:29 -0700 Subject: [PATCH 0772/1274] Updated YouTube.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTube.php | 924 ++++++++++++++++++++++----------- 1 file changed, 608 insertions(+), 316 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 7a29c91e1..386936097 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -80,6 +80,7 @@ class Google_Service_YouTube extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'youtube/v3/'; $this->version = 'v3'; $this->serviceName = 'youtube'; @@ -161,6 +162,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', @@ -179,7 +184,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'tfmt' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), @@ -187,11 +192,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'tlang' => array( + 'debugProjectIdOverride' => array( 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( + 'tfmt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tlang' => array( 'location' => 'query', 'type' => 'string', ), @@ -205,6 +214,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', @@ -213,9 +226,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sync' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ),'list' => array( @@ -232,6 +245,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', @@ -254,6 +271,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', @@ -262,9 +283,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sync' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ), @@ -499,6 +520,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -511,7 +536,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'order' => array( 'location' => 'query', 'type' => 'string', ), @@ -1576,6 +1601,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), 'hl' => array( 'location' => 'query', 'type' => 'string', @@ -1603,10 +1632,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'reportAbuse' => array( 'path' => 'videos/reportAbuse', @@ -1702,9 +1727,6 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource * @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 @@ -1725,15 +1747,13 @@ public function insert($part, Google_Service_YouTube_Activity $postBody, $optPar * * @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. + * child properties will be included in the response. For example, in an + * activity resource, the snippet property contains other properties that + * identify the type of activity, a display title for the activity, and so + * forth. If you set part=snippet, the API response will also contain all of + * those nested properties. * @param array $optParams Optional parameters. * * @opt_param string regionCode The regionCode parameter instructs the API to @@ -1796,6 +1816,18 @@ class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource * a caption resource. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the * request is be on behalf of * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter @@ -1819,18 +1851,30 @@ public function delete($id, $optParams = array()) * in a caption resource. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID * @opt_param string tfmt The tfmt parameter specifies that the caption track * should be returned in a specific format. If the parameter is not included in * the request, the track is returned in its original format. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of * @opt_param string tlang The tlang parameter specifies that the API response * should return a translation of the specified caption track. The parameter * value is an ISO 639-1 two-letter language code that identifies the desired * caption language. The translation is generated by using machine translation, * such as Google Translate. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID */ public function download($id, $optParams = array()) { @@ -1847,10 +1891,6 @@ public function download($id, $optParams = array()) * @param Google_Caption $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. * @opt_param bool sync The sync parameter indicates whether YouTube should * automatically synchronize the caption file with the audio track of the video. * If you set the value to true, YouTube will disregard any time codes that are @@ -1859,6 +1899,22 @@ public function download($id, $optParams = array()) * You should set the sync parameter to true if you are uploading a transcript, * which has no time codes, or if you suspect the time codes in your file are * incorrect and want YouTube to try to fix them. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @return Google_Service_YouTube_Caption */ public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) @@ -1881,6 +1937,18 @@ public function insert($part, Google_Service_YouTube_Caption $postBody, $optPara * of the video for which the API should return caption tracks. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the * request is on behalf of. * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter @@ -1910,10 +1978,6 @@ public function listCaptions($part, $videoId, $optParams = array()) * @param Google_Caption $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. * @opt_param bool sync Note: The API server only processes the parameter value * if the request contains an updated caption file. * @@ -1921,6 +1985,22 @@ public function listCaptions($part, $videoId, $optParams = array()) * the caption file with the audio track of the video. If you set the value to * true, YouTube will automatically synchronize the caption track with the audio * track. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @return Google_Service_YouTube_Caption */ public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) @@ -2173,8 +2253,6 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * * @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 @@ -2183,19 +2261,25 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param bool managedByMe Set this parameter's value to true to instruct - * the API to only return channels managed by the content owner that the - * onBehalfOfContentOwner parameter specifies. The user must be authenticated as - * a CMS account linked to the specified content owner and - * onBehalfOfContentOwner must be provided. - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param bool managedByMe Note: This parameter is intended exclusively for + * YouTube content partners. + * + * Set this parameter's value to true to instruct the API to only return + * channels managed by the content owner that the onBehalfOfContentOwner + * parameter specifies. The user must be authenticated as a CMS account linked + * to the specified content owner and onBehalfOfContentOwner must be provided. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string forUsername The forUsername parameter specifies a YouTube * username, thereby requesting the channel associated with that username. * @opt_param bool mine Set this parameter's value to true to instruct the API @@ -2209,8 +2293,9 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param bool mySubscribers Set this parameter's value to true to retrieve - * a list of channels that subscribed to the authenticated user's channel. + * @opt_param bool mySubscribers Use the subscriptions.list method and its + * mySubscribers parameter to retrieve a list of subscribers to the + * authenticated user's channel. * @opt_param string hl The hl parameter should be used for filter out the * properties that are not in the given language. Used for the brandingSettings * part. @@ -2227,17 +2312,20 @@ public function listChannels($part, $optParams = array()) } /** - * Updates a channel's metadata. (channels.update) + * Updates a channel's metadata. Note that this method currently only supports + * updates to the channel resource's brandingSettings and invideoPromotion + * objects and their child properties. (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. + * The API currently only allows the parameter value to be set to either + * brandingSettings or invideoPromotion. (You cannot update both of those parts + * with a single request.) * - * 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 + * Note that this method overrides 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. @@ -2272,19 +2360,18 @@ class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Reso { /** - * Creates a new comment thread and top level comment. (commentThreads.insert) + * Creates a new top-level comment. To add a reply to an existing comment, use + * the comments.insert method instead. (commentThreads.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 id and - * snippet. However only snippet contains properties that can be set. + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. * @param Google_CommentThread $postBody * @param array $optParams Optional parameters. * - * @opt_param bool shareOnGooglePlus The shareOnGooglePlus determines whether - * this thread should also be posted on Google+. + * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates + * whether the top-level comment and any replies that are made to that comment + * should also be posted to the author's Google+ profile. * @return Google_Service_YouTube_CommentThread */ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) @@ -2298,31 +2385,33 @@ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $o * Returns a list of comment threads that match the API request parameters. * (commentThreads.listCommentThreads) * - * @param string $part The part parameter specifies the commentThread resource - * parts that the API response will include. Supported values are id, snippet - * and replies. + * @param string $part The part parameter specifies a comma-separated list of + * one or more commentThread resource properties that the API response will + * include. * @param array $optParams Optional parameters. * * @opt_param string searchTerms The searchTerms parameter instructs the API to - * limit the returned comments to those which contain the specified search - * terms. + * limit the API response to only contain comments that contain the specified + * search terms. * * Note: This parameter is not supported for use in conjunction with the id * parameter. * @opt_param string allThreadsRelatedToChannelId The - * allThreadsRelatedToChannelId parameter instructs the API to return the - * comment threads of all videos of the channel and the channel comments as - * well. + * allThreadsRelatedToChannelId parameter instructs the API to return all + * comment threads associated with the specified channel. The response can + * include comments about the channel or about the channel's videos. * @opt_param string channelId The channelId parameter instructs the API to - * return the comment threads for all the channel comments (not including - * comments left on videos). + * return comment threads containing comments about the specified channel. (The + * response will not include comments left on videos that the channel uploaded.) * @opt_param string videoId The videoId parameter instructs the API to return - * the comment threads for the video specified by the video id. + * comment threads associated with the specified video ID. * @opt_param string maxResults The maxResults parameter specifies the maximum * number of items that should be returned in the result set. * * Note: This parameter is not supported for use in conjunction with the id * parameter. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. * @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 property identifies the next page of the result that can be @@ -2338,8 +2427,11 @@ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $o * @opt_param string textFormat Set this parameter's value to html or plainText * to instruct the API to return the comments left by users in html formatted or * in plain text. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment thread IDs for the resources that should be retrieved. + * @opt_param string order The order parameter specifies the order in which the + * API response should list comment threads. Valid values are: - time - Comment + * threads are ordered by time. This is the default behavior. - relevance - + * Comment threads are ordered by relevance.Note: This parameter is not + * supported for use in conjunction with the id parameter. * @return Google_Service_YouTube_CommentThreadListResponse */ public function listCommentThreads($part, $optParams = array()) @@ -2350,14 +2442,12 @@ public function listCommentThreads($part, $optParams = array()) } /** - * Modifies an existing comment. (commentThreads.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. + * Modifies the top-level comment in a comment thread. (commentThreads.update) * - * The part names that you can include in the parameter value are id, snippet - * and replies. However only snippet contains properties that can be updated. + * @param string $part The part parameter specifies a comma-separated list of + * commentThread resource properties that the API response will include. You + * must at least include the snippet part in the parameter value since that part + * contains all of the properties that the API request can update. * @param Google_CommentThread $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_CommentThread @@ -2385,7 +2475,7 @@ class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource * Deletes a comment. (comments.delete) * * @param string $id The id parameter specifies the comment ID for the resource - * that should be deleted. + * that is being deleted. * @param array $optParams Optional parameters. */ public function delete($id, $optParams = array()) @@ -2396,18 +2486,12 @@ public function delete($id, $optParams = array()) } /** - * Creates a new comment. - * - * Note: to create a top level comment it is also necessary to create a comment - * thread. Both are accomplished through the commentThreads resource. - * (comments.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. + * Creates a reply to an existing comment. Note: To create a top-level comment, + * use the commentThreads.insert method. (comments.insert) * - * The part names that you can include in the parameter value are id and - * snippet. However only snippet contains properties that can be set. + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. * @param Google_Comment $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_Comment @@ -2423,8 +2507,8 @@ public function insert($part, Google_Service_YouTube_Comment $postBody, $optPara * Returns a list of comments that match the API request parameters. * (comments.listComments) * - * @param string $part The part parameter specifies the comment resource parts - * that the API response will include. Supported values are id and snippet. + * @param string $part The part parameter specifies a comma-separated list of + * one or more comment resource properties that the API response will include. * @param array $optParams Optional parameters. * * @opt_param string maxResults The maxResults parameter specifies the maximum @@ -2442,13 +2526,13 @@ public function insert($part, Google_Service_YouTube_Comment $postBody, $optPara * @opt_param string parentId The parentId parameter specifies the ID of the * comment for which replies should be retrieved. * - * Note: Currently YouTube features only one level of replies (ie replies to top - * level comments). However replies to replies may be supported in the future. - * @opt_param string textFormat Set this parameter's value to html or plainText - * to instruct the API to return the comments left by users formatted as HTML or - * as plain text. + * Note: YouTube currently supports replies only for top-level comments. + * However, replies to replies may be supported in the future. + * @opt_param string textFormat This parameter indicates whether the API should + * return comments formatted as HTML or as plain text. * @opt_param string id The id parameter specifies a comma-separated list of - * comment IDs for the resources that should be retrieved. + * comment IDs for the resources that are being retrieved. In a comment + * resource, the id property specifies the comment's ID. * @return Google_Service_YouTube_CommentListResponse */ public function listComments($part, $optParams = array()) @@ -2459,10 +2543,11 @@ public function listComments($part, $optParams = array()) } /** - * Expresses the caller's opinion that a comment is spam. (comments.markAsSpam) + * Expresses the caller's opinion that one or more comments should be flagged as + * spam. (comments.markAsSpam) * * @param string $id The id parameter specifies a comma-separated list of IDs of - * comments which should get flagged as spam. + * comments that the caller believes should be classified as spam. * @param array $optParams Optional parameters. */ public function markAsSpam($id, $optParams = array()) @@ -2473,21 +2558,22 @@ public function markAsSpam($id, $optParams = array()) } /** - * Sets the moderation status of one or more comments. + * Sets the moderation status of one or more comments. The API request must be + * authorized by the owner of the channel or video associated with the comments. * (comments.setModerationStatus) * - * @param string $id The id parameter specifies a comma-separated list of IDs of - * comments whose moderation status should be updated. - * @param string $moderationStatus Determines the new moderation status of the + * @param string $id The id parameter specifies a comma-separated list of IDs + * that identify the comments for which you are updating the moderation status. + * @param string $moderationStatus Identifies the new moderation status of the * specified comments. * @param array $optParams Optional parameters. * - * @opt_param bool banAuthor The banAuthor paramter, if set to true, adds the - * author of the comment to the ban list. This means all future comments of the - * author will autmomatically be rejected. + * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you + * want to automatically reject any additional comments written by the comment's + * author. Set the parameter value to true to ban the author. * - * Note: This parameter is only valid in combination with moderationStatus - * 'rejected'. + * Note: This parameter is only valid if the moderationStatus parameter is also + * set to rejected. */ public function setModerationStatus($id, $moderationStatus, $optParams = array()) { @@ -2497,14 +2583,12 @@ public function setModerationStatus($id, $moderationStatus, $optParams = array() } /** - * Modifies an existing comment. (comments.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. + * Modifies a comment. (comments.update) * - * The part names that you can include in the parameter value are id and - * snippet. However only snippet contains properties that can be updated. + * @param string $part The part parameter identifies the properties that the API + * response will include. You must at least include the snippet part in the + * parameter value since that part contains all of the properties that the API + * request can update. * @param Google_Comment $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_Comment @@ -2532,16 +2616,9 @@ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Res * Returns a list of categories that can be associated with YouTube channels. * (guideCategories.listGuideCategories) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more guideCategory resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * guideCategory resource, the snippet property contains other properties, such - * as the category's title. If you set part=snippet, the API response will also - * contain all of those nested properties. + * @param string $part The part parameter specifies the guideCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string regionCode The regionCode parameter instructs the API to @@ -2575,12 +2652,12 @@ class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resou { /** - * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) + * Returns a list of application languages that the YouTube website supports. + * (i18nLanguages.listI18nLanguages) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nLanguage resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $part The part parameter specifies the i18nLanguage resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string hl The hl parameter specifies the language that should be @@ -2607,12 +2684,12 @@ class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resourc { /** - * Returns a list of supported regions. (i18nRegions.listI18nRegions) + * Returns a list of content regions that the YouTube website supports. + * (i18nRegions.listI18nRegions) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nRegion resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $part The part parameter specifies the i18nRegion resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string hl The hl parameter specifies the language that should be @@ -2640,7 +2717,8 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso /** * 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. + * a broadcast and a stream. A broadcast can only be bound to one video stream, + * though a video stream may be bound to more than one broadcast. * (liveBroadcasts.bind) * * @param string $id The id parameter specifies the unique ID of the broadcast @@ -3207,8 +3285,7 @@ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optP * only return streams owned by the authenticated user. Set the parameter value * to true to only retrieve your own streams. * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. Acceptable values - * are 0 to 50, inclusive. The default value is 5. + * number of items that should be returned in the result set. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be @@ -3317,9 +3394,6 @@ public function delete($id, $optParams = array()) * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet, - * contentDetails, and status. * @param Google_PlaylistItem $postBody * @param array $optParams Optional parameters. * @@ -3352,8 +3426,7 @@ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $op * * @param string $part The part parameter specifies a comma-separated list of * one or more playlistItem resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. + * include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a @@ -3407,9 +3480,6 @@ public function listPlaylistItems($part, $optParams = array()) * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, and status. - * * Note that this method will override the existing values for all of the * mutable properties that are contained in any parts that the parameter value * specifies. For example, a playlist item can specify a start time and end @@ -3477,9 +3547,6 @@ public function delete($id, $optParams = array()) * @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. * @@ -3531,8 +3598,6 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar * * @param string $part The part parameter specifies a comma-separated list of * one or more playlist resource properties that the API response will include. - * The part names that you can include in the parameter value are id, snippet, - * status, and contentDetails. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a playlist @@ -3605,17 +3670,12 @@ public function listPlaylists($part, $optParams = array()) * 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. + * Note that this method will override the existing values for mutable + * properties that are contained in any parts that the request body specifies. + * For example, a playlist's description is contained in the snippet part, which + * must be included in the request body. If the request does not specify a value + * for the snippet.description property, the playlist's existing description + * will be deleted. * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * @@ -3660,18 +3720,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * * @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. + * Set the parameter value to snippet. * @param array $optParams Optional parameters. * * @opt_param string eventType The eventType parameter restricts a search to - * broadcast events. + * broadcast events. If you specify a value for this parameter, you must also + * set the type parameter's value to video. * @opt_param string channelId The channelId parameter indicates that the API * response should only contain resources created by the channel * @opt_param bool forDeveloper The forDeveloper parameter restricts the search @@ -3681,12 +3735,15 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * through the developer's own app or website but not to videos uploaded through * other apps or sites. * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. + * restrict a search to only videos that can be played outside youtube.com. If + * you specify a value for this parameter, you must also set the type + * parameter's value to video. * @opt_param string channelType The channelType parameter lets you restrict a * search to a particular type of channel. * @opt_param string videoCaption The videoCaption parameter indicates whether * the API should filter video search results based on whether they have - * captions. + * captions. If you specify a value for this parameter, you must also set the + * type parameter's value to video. * @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 @@ -3717,20 +3774,30 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * @opt_param string regionCode The regionCode parameter instructs the API to * return search results for the specified country. The parameter value is an * ISO 3166-1 alpha-2 country code. - * @opt_param string location The location parameter restricts a search to - * videos that have a geographical location specified in their metadata. The - * value is a string that specifies geographic latitude/longitude coordinates - * e.g. (37.42307,-122.08427) - * @opt_param string locationRadius The locationRadius, in conjunction with the - * location parameter, defines a geographic area. If the geographic coordinates - * associated with a video fall within that area, then the video may be included - * in search results. This parameter value must be a floating point number - * followed by a measurement unit. Valid measurement units are m, km, ft, and - * mi. For example, valid parameter values include 1500m, 5km, 10000ft, and - * 0.75mi. The API does not support locationRadius parameter values larger than - * 1000 kilometers. + * @opt_param string location The location parameter, in conjunction with the + * locationRadius parameter, defines a circular geographic area and also + * restricts a search to videos that specify, in their metadata, a geographic + * location that falls within that area. The parameter value is a string that + * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). + * + * - The location parameter value identifies the point at the center of the + * area. - The locationRadius parameter specifies the maximum distance that the + * location associated with a video can be from that point for the video to + * still be included in the search results.The API returns an error if your + * request specifies a value for the location parameter but does not also + * specify a value for the locationRadius parameter. + * @opt_param string locationRadius The locationRadius parameter, in conjunction + * with the location parameter, defines a circular geographic area. + * + * The parameter value must be a floating point number followed by a measurement + * unit. Valid measurement units are m, km, ft, and mi. For example, valid + * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not + * support locationRadius parameter values larger than 1000 kilometers. + * + * Note: See the definition of the location parameter for more information. * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. + * search to a particular type of videos. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string type The type parameter restricts a search query to only * retrieve a particular type of resource. The value is a comma-separated list * of resource types. @@ -3742,11 +3809,13 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * specified time. The value is an RFC 3339 formatted date-time value * (1970-01-01T00:00:00Z). * @opt_param string videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. + * restrict a search to only retrieve 2D or 3D videos. If you specify a value + * for this parameter, you must also set the type parameter's value to video. * @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. + * standard YouTube license to each of their videos. If you specify a value for + * this parameter, you must also set the type parameter's value to video. * @opt_param string maxResults The maxResults parameter specifies the maximum * number of items that should be returned in the result set. * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a @@ -3756,9 +3825,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * @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. + * 720p, though higher resolutions, like 1080p, might also be available. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. * @opt_param string videoDuration The videoDuration parameter filters video - * search results based on their duration. + * search results based on their duration. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs * the API to return search results that are most relevant to the specified * language. The parameter value is typically an ISO 639-1 two-letter language @@ -3769,12 +3841,24 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * retrieve videos owned by the authenticated user. If you set this parameter to * true, then the type parameter's value must also be set to video. * @opt_param string q The q parameter specifies the query term to search for. + * + * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude + * videos or to find videos that are associated with one of several search + * terms. For example, to search for videos matching either "boating" or + * "sailing", set the q parameter value to boating|sailing. Similarly, to search + * for videos matching either "boating" or "sailing" but not "fishing", set the + * q parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. * @opt_param string safeSearch The safeSearch parameter indicates whether the * search results should include restricted content as well as standard content. * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to - * restrict a search to only videos that can be embedded into a webpage. + * restrict a search to only videos that can be embedded into a webpage. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. + * search results based on their category. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string order The order parameter specifies the method that will be * used to order resources in the API response. * @return Google_Service_YouTube_SearchListResponse @@ -3820,9 +3904,6 @@ public function delete($id, $optParams = array()) * @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 @@ -3840,8 +3921,7 @@ public function insert($part, Google_Service_YouTube_Subscription $postBody, $op * * @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. + * include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a @@ -3930,14 +4010,18 @@ class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource * which the custom video thumbnail is being provided. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @return Google_Service_YouTube_ThumbnailSetResponse */ public function set($videoId, $optParams = array()) @@ -3996,7 +4080,7 @@ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Res * (videoCategories.listVideoCategories) * * @param string $part The part parameter specifies the videoCategory resource - * parts that the API response will include. Supported values are id and + * properties that the API response will include. Set the parameter value to * snippet. * @param array $optParams Optional parameters. * @@ -4094,15 +4178,11 @@ public function getRating($id, $optParams = array()) * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, localizations, player, - * processingDetails, recordingDetails, statistics, status, suggestions, and - * topicDetails. However, not all of those parts contain properties that can be - * set when setting or updating a video's metadata. For example, the statistics - * object encapsulates statistics that YouTube calculates for a video and does - * not contain values that you can set or modify. If the parameter value - * specifies a part that does not contain mutable values, that part will still - * be included in the API response. + * Note that not all parts contain properties that can be set when inserting or + * updating a video. 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. * @@ -4140,8 +4220,12 @@ public function getRating($id, $optParams = array()) * value, without having to provide authentication credentials for each separate * channel. * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send notification to subscribers about the inserted - * video. + * whether YouTube should send a notification about the new video to users who + * subscribe to the video's channel. A parameter value of True indicates that + * subscribers will be notified of newly uploaded videos. However, a channel + * owner who is uploading many videos might prefer to set the value to False to + * avoid sending a notification about each new video to the channel's + * subscribers. * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube * should automatically enhance the video's lighting and color. * @return Google_Service_YouTube_Video @@ -4158,11 +4242,7 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * (videos.listVideos) * * @param string $part The part parameter specifies a comma-separated list of - * one or more video resource properties that the API response will include. The - * part names that you can include in the parameter value are id, snippet, - * contentDetails, fileDetails, liveStreamingDetails, localizations, player, - * processingDetails, recordingDetails, statistics, status, suggestions, and - * topicDetails. + * one or more video resource properties that the API response will include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a video @@ -4208,13 +4288,17 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * Note: This parameter is supported for use in conjunction with the myRating * parameter, but it is not supported for use in conjunction with the id * parameter. - * @opt_param string hl The hl parameter instructs the API to return a localized - * version of the video details. If localized text is nor available for the - * requested language, the localizations object in the API response will contain - * the requested information in the default language instead. The parameter - * value is a BCP-47 language code. Your application can determine whether the - * requested localization was returned by checking the value of the - * snippet.localized.language property in the API response. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string hl The hl parameter instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. * @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. @@ -4238,19 +4322,6 @@ public function listVideos($part, $optParams = array()) * video that is being rated or having its rating removed. * @param string $rating Specifies the rating to record. * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. */ public function rate($id, $rating, $optParams = array()) { @@ -4292,11 +4363,6 @@ public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $ * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, localizations, player, - * processingDetails, recordingDetails, statistics, status, suggestions, and - * topicDetails. - * * Note that this method will override the existing values for all of the * mutable properties that are contained in any parts that the parameter value * specifies. For example, a video's privacy setting is contained in the status @@ -4306,12 +4372,12 @@ public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $ * 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. + * In addition, not all parts contain properties that can be set when inserting + * or updating a video. 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. * @@ -4352,19 +4418,23 @@ class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource * Uploads a watermark image to YouTube and sets it for a channel. * (watermarks.set) * - * @param string $channelId The channelId parameter specifies a YouTube channel - * ID for which the watermark is being provided. + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being provided. * @param Google_InvideoBranding $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) { @@ -4374,20 +4444,24 @@ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody } /** - * Deletes a watermark. (watermarks.unsetWatermarks) + * Deletes a channel's watermark image. (watermarks.unsetWatermarks) * - * @param string $channelId The channelId parameter specifies a YouTube channel - * ID for which the watermark is being unset. + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being unset. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function unsetWatermarks($channelId, $optParams = array()) { @@ -8527,8 +8601,12 @@ class Google_Service_YouTube_LiveBroadcast extends Google_Model public $kind; protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; + protected $statisticsDataType = ''; protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; + protected $topicDetailsDataType = ''; public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails) @@ -8571,6 +8649,14 @@ public function getSnippet() { return $this->snippet; } + public function setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) { $this->status = $status; @@ -8579,6 +8665,14 @@ public function getStatus() { return $this->status; } + public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } } class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model @@ -8590,6 +8684,7 @@ class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model public $enableContentEncryption; public $enableDvr; public $enableEmbed; + public $enableLowLatency; protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; protected $monitorStreamDataType = ''; public $recordFromStart; @@ -8636,6 +8731,14 @@ public function getEnableEmbed() { return $this->enableEmbed; } + public function setEnableLowLatency($enableLowLatency) + { + $this->enableLowLatency = $enableLowLatency; + } + public function getEnableLowLatency() + { + return $this->enableLowLatency; + } public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) { $this->monitorStream = $monitorStream; @@ -8763,6 +8866,7 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model public $actualStartTime; public $channelId; public $description; + public $isDefaultBroadcast; public $publishedAt; public $scheduledEndTime; public $scheduledStartTime; @@ -8803,6 +8907,14 @@ public function getDescription() { return $this->description; } + public function setIsDefaultBroadcast($isDefaultBroadcast) + { + $this->isDefaultBroadcast = $isDefaultBroadcast; + } + public function getIsDefaultBroadcast() + { + return $this->isDefaultBroadcast; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -8845,25 +8957,42 @@ public function getTitle() } } +class Google_Service_YouTube_LiveBroadcastStatistics extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $concurrentViewers; + public $totalChatCount; + + + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setTotalChatCount($totalChatCount) + { + $this->totalChatCount = $totalChatCount; + } + public function getTotalChatCount() + { + return $this->totalChatCount; + } +} + class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { protected $internal_gapi_mappings = array( ); - public $isDefaultBroadcast; public $lifeCycleStatus; public $liveBroadcastPriority; public $privacyStatus; public $recordingStatus; - public function setIsDefaultBroadcast($isDefaultBroadcast) - { - $this->isDefaultBroadcast = $isDefaultBroadcast; - } - public function getIsDefaultBroadcast() - { - return $this->isDefaultBroadcast; - } public function setLifeCycleStatus($lifeCycleStatus) { $this->lifeCycleStatus = $lifeCycleStatus; @@ -8898,6 +9027,87 @@ public function getRecordingStatus() } } +class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; + protected $snippetDataType = ''; + public $type; + public $unmatched; + + + public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnmatched($unmatched) + { + $this->unmatched = $unmatched; + } + public function getUnmatched() + { + return $this->unmatched; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +{ + protected $collection_key = 'topics'; + protected $internal_gapi_mappings = array( + ); + protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; + protected $topicsDataType = 'array'; + + + public function setTopics($topics) + { + $this->topics = $topics; + } + public function getTopics() + { + return $this->topics; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $releaseDate; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } +} + class Google_Service_YouTube_LiveStream extends Google_Model { protected $internal_gapi_mappings = array( @@ -8973,6 +9183,50 @@ public function getStatus() } } +class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $reason; + public $severity; + public $type; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model { protected $internal_gapi_mappings = array( @@ -8999,6 +9253,43 @@ public function getIsReusable() } } +class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection +{ + protected $collection_key = 'configurationIssues'; + protected $internal_gapi_mappings = array( + ); + protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; + protected $configurationIssuesDataType = 'array'; + public $lastUpdateTimeS; + public $status; + + + public function setConfigurationIssues($configurationIssues) + { + $this->configurationIssues = $configurationIssues; + } + public function getConfigurationIssues() + { + return $this->configurationIssues; + } + public function setLastUpdateTimeS($lastUpdateTimeS) + { + $this->lastUpdateTimeS = $lastUpdateTimeS; + } + public function getLastUpdateTimeS() + { + return $this->lastUpdateTimeS; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -9098,6 +9389,7 @@ class Google_Service_YouTube_LiveStreamSnippet extends Google_Model ); public $channelId; public $description; + public $isDefaultStream; public $publishedAt; public $title; @@ -9118,6 +9410,14 @@ public function getDescription() { return $this->description; } + public function setIsDefaultStream($isDefaultStream) + { + $this->isDefaultStream = $isDefaultStream; + } + public function getIsDefaultStream() + { + return $this->isDefaultStream; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -9140,17 +9440,18 @@ class Google_Service_YouTube_LiveStreamStatus extends Google_Model { protected $internal_gapi_mappings = array( ); - public $isDefaultStream; + protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; + protected $healthStatusDataType = ''; public $streamStatus; - public function setIsDefaultStream($isDefaultStream) + public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) { - $this->isDefaultStream = $isDefaultStream; + $this->healthStatus = $healthStatus; } - public function getIsDefaultStream() + public function getHealthStatus() { - return $this->isDefaultStream; + return $this->healthStatus; } public function setStreamStatus($streamStatus) { @@ -11075,23 +11376,6 @@ public function getSnippet() } } -class Google_Service_YouTube_VideoAbuseReportReasonId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -11179,12 +11463,11 @@ class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Mode { protected $internal_gapi_mappings = array( ); - protected $idType = 'Google_Service_YouTube_VideoAbuseReportReasonId'; - protected $idDataType = ''; + public $id; public $label; - public function setId(Google_Service_YouTube_VideoAbuseReportReasonId $id) + public function setId($id) { $this->id = $id; } @@ -12261,6 +12544,7 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection public $categoryId; public $channelId; public $channelTitle; + public $defaultAudioLanguage; public $defaultLanguage; public $description; public $liveBroadcastContent; @@ -12297,6 +12581,14 @@ public function getChannelTitle() { return $this->channelTitle; } + public function setDefaultAudioLanguage($defaultAudioLanguage) + { + $this->defaultAudioLanguage = $defaultAudioLanguage; + } + public function getDefaultAudioLanguage() + { + return $this->defaultAudioLanguage; + } public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; From eedd7b1367aae6c4a243c8c06260d350aeaabb8e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:30 -0700 Subject: [PATCH 0773/1274] Updated Doubleclicksearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Doubleclicksearch.php | 73 ++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 61d466e27..a0bf15d7f 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -48,6 +48,7 @@ class Google_Service_Doubleclicksearch extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclicksearch/v2/'; $this->version = 'v2'; $this->serviceName = 'doubleclicksearch'; @@ -524,6 +525,7 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection public $agencyId; public $attributionModel; public $campaignId; + public $channel; public $clickId; public $conversionId; public $conversionModifiedTimestamp; @@ -535,15 +537,22 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection protected $customDimensionDataType = 'array'; protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; protected $customMetricDataType = 'array'; + public $deviceType; public $dsConversionId; public $engineAccountId; public $floodlightOrderId; + public $inventoryAccountId; + public $productCountry; + public $productGroupId; + public $productId; + public $productLanguage; public $quantityMillis; public $revenueMicros; public $segmentationId; public $segmentationName; public $segmentationType; public $state; + public $storeId; public $type; @@ -595,6 +604,14 @@ public function getCampaignId() { return $this->campaignId; } + public function setChannel($channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } public function setClickId($clickId) { $this->clickId = $clickId; @@ -667,6 +684,14 @@ public function getCustomMetric() { return $this->customMetric; } + public function setDeviceType($deviceType) + { + $this->deviceType = $deviceType; + } + public function getDeviceType() + { + return $this->deviceType; + } public function setDsConversionId($dsConversionId) { $this->dsConversionId = $dsConversionId; @@ -691,6 +716,46 @@ public function getFloodlightOrderId() { return $this->floodlightOrderId; } + public function setInventoryAccountId($inventoryAccountId) + { + $this->inventoryAccountId = $inventoryAccountId; + } + public function getInventoryAccountId() + { + return $this->inventoryAccountId; + } + public function setProductCountry($productCountry) + { + $this->productCountry = $productCountry; + } + public function getProductCountry() + { + return $this->productCountry; + } + public function setProductGroupId($productGroupId) + { + $this->productGroupId = $productGroupId; + } + public function getProductGroupId() + { + return $this->productGroupId; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setProductLanguage($productLanguage) + { + $this->productLanguage = $productLanguage; + } + public function getProductLanguage() + { + return $this->productLanguage; + } public function setQuantityMillis($quantityMillis) { $this->quantityMillis = $quantityMillis; @@ -739,6 +804,14 @@ public function getState() { return $this->state; } + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + public function getStoreId() + { + return $this->storeId; + } public function setType($type) { $this->type = $type; From 6d7c97fd3519477050a9ddf67774fb5bce10e89b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:30 -0700 Subject: [PATCH 0774/1274] Updated CloudMonitoring.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudMonitoring.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index 80d2056ce..ddc65a607 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -47,6 +47,7 @@ class Google_Service_CloudMonitoring extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'cloudmonitoring/v2beta2/projects/'; $this->version = 'v2beta2'; $this->serviceName = 'cloudmonitoring'; From 674c00a9eea7c5ed335f0045b840f65afbf94a7b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:31 -0700 Subject: [PATCH 0775/1274] Updated Gmail.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Gmail.php | 132 +++++++++++++++++++++++++++++++++-- 1 file changed, 128 insertions(+), 4 deletions(-) diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 3c5ea499c..bd38677de 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -66,6 +66,7 @@ class Google_Service_Gmail extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'gmail/v1/users/'; $this->version = 'v1'; $this->serviceName = 'gmail'; @@ -86,6 +87,26 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'stop' => array( + 'path' => '{userId}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'watch' => array( + 'path' => '{userId}/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -676,6 +697,37 @@ public function getProfile($userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); } + + /** + * Stop receiving push notifications for the given user mailbox. (users.stop) + * + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + */ + public function stop($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } + + /** + * Set up or update a push notification watch on the given user mailbox. + * (users.watch) + * + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param Google_WatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_WatchResponse + */ + public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); + } } /** @@ -822,10 +874,11 @@ class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource * increase chronologically but are not contiguous with random gaps in between * valid IDs. Supplying an invalid or out of date startHistoryId typically * returns an HTTP 404 error code. A historyId is typically valid for at least a - * week, but in some circumstances may be valid for only a few hours. If you - * receive an HTTP 404 error response, your application should perform a full - * sync. If you receive no nextPageToken in the response, there are no updates - * to retrieve and you can store the returned historyId for a future request. + * week, but in some rare circumstances may be valid for only a few hours. If + * you receive an HTTP 404 error response, your application should perform a + * full sync. If you receive no nextPageToken in the response, there are no + * updates to retrieve and you can store the returned historyId for a future + * request. * @return Google_Service_Gmail_ListHistoryResponse */ public function listUsersHistory($userId, $optParams = array()) @@ -1741,6 +1794,7 @@ class Google_Service_Gmail_Message extends Google_Collection ); public $historyId; public $id; + public $internalDate; public $labelIds; protected $payloadType = 'Google_Service_Gmail_MessagePart'; protected $payloadDataType = ''; @@ -1766,6 +1820,14 @@ public function getId() { return $this->id; } + public function setInternalDate($internalDate) + { + $this->internalDate = $internalDate; + } + public function getInternalDate() + { + return $this->internalDate; + } public function setLabelIds($labelIds) { $this->labelIds = $labelIds; @@ -2086,3 +2148,65 @@ public function getSnippet() return $this->snippet; } } + +class Google_Service_Gmail_WatchRequest extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelFilterAction; + public $labelIds; + public $topicName; + + + public function setLabelFilterAction($labelFilterAction) + { + $this->labelFilterAction = $labelFilterAction; + } + public function getLabelFilterAction() + { + return $this->labelFilterAction; + } + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setTopicName($topicName) + { + $this->topicName = $topicName; + } + public function getTopicName() + { + return $this->topicName; + } +} + +class Google_Service_Gmail_WatchResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expiration; + public $historyId; + + + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } +} From d058d06bae272675f647c012c0a4bf733c275c9c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:32 -0700 Subject: [PATCH 0776/1274] Updated Mirror.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Mirror.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index d49b0564e..cd1268395 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -54,6 +54,7 @@ class Google_Service_Mirror extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'mirror/v1/'; $this->version = 'v1'; $this->serviceName = 'mirror'; From 39ad0cbeef0031635e92d8d207ac892fb4d0eaed Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:32 -0700 Subject: [PATCH 0777/1274] Updated AdExchangeBuyer.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 223f1f1bb..8a607f8b1 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -52,6 +52,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adexchangebuyer/v1.3/'; $this->version = 'v1.3'; $this->serviceName = 'adexchangebuyer'; @@ -1593,10 +1594,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection protected $collection_key = 'hostedMatchStatusRate'; protected $internal_gapi_mappings = array( ); + public $bidRate; + public $bidRequestRate; public $calloutStatusRate; public $cookieMatcherStatusRate; public $creativeStatusRate; + public $filteredBidRate; public $hostedMatchStatusRate; + public $inventoryMatchRate; public $kind; public $latency50thPercentile; public $latency85thPercentile; @@ -1608,9 +1613,27 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection public $quotaConfiguredLimit; public $quotaThrottledLimit; public $region; + public $successfulRequestRate; public $timestamp; + public $unsuccessfulRequestRate; + public function setBidRate($bidRate) + { + $this->bidRate = $bidRate; + } + public function getBidRate() + { + return $this->bidRate; + } + public function setBidRequestRate($bidRequestRate) + { + $this->bidRequestRate = $bidRequestRate; + } + public function getBidRequestRate() + { + return $this->bidRequestRate; + } public function setCalloutStatusRate($calloutStatusRate) { $this->calloutStatusRate = $calloutStatusRate; @@ -1635,6 +1658,14 @@ public function getCreativeStatusRate() { return $this->creativeStatusRate; } + public function setFilteredBidRate($filteredBidRate) + { + $this->filteredBidRate = $filteredBidRate; + } + public function getFilteredBidRate() + { + return $this->filteredBidRate; + } public function setHostedMatchStatusRate($hostedMatchStatusRate) { $this->hostedMatchStatusRate = $hostedMatchStatusRate; @@ -1643,6 +1674,14 @@ public function getHostedMatchStatusRate() { return $this->hostedMatchStatusRate; } + public function setInventoryMatchRate($inventoryMatchRate) + { + $this->inventoryMatchRate = $inventoryMatchRate; + } + public function getInventoryMatchRate() + { + return $this->inventoryMatchRate; + } public function setKind($kind) { $this->kind = $kind; @@ -1731,6 +1770,14 @@ public function getRegion() { return $this->region; } + public function setSuccessfulRequestRate($successfulRequestRate) + { + $this->successfulRequestRate = $successfulRequestRate; + } + public function getSuccessfulRequestRate() + { + return $this->successfulRequestRate; + } public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1739,6 +1786,14 @@ public function getTimestamp() { return $this->timestamp; } + public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) + { + $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; + } + public function getUnsuccessfulRequestRate() + { + return $this->unsuccessfulRequestRate; + } } class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection From 747b153d5fdc1f19e9eaa87a3908ba85b170d065 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:33 -0700 Subject: [PATCH 0778/1274] Updated Prediction.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Prediction.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index 2e77ad2e4..c57b41d0b 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -56,6 +56,7 @@ class Google_Service_Prediction extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'prediction/v1.6/projects/'; $this->version = 'v1.6'; $this->serviceName = 'prediction'; From 34185d1d441a5610a438265b799642cda20d0f1c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:34 -0700 Subject: [PATCH 0779/1274] Updated GamesManagement.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesManagement.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 44ed37b87..1d6853e4b 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -55,6 +55,7 @@ class Google_Service_GamesManagement extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1management/'; $this->version = 'v1management'; $this->serviceName = 'gamesManagement'; From 8e2240845497d5aca90a6043024246f9885da06b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:34 -0700 Subject: [PATCH 0780/1274] Updated Manager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Manager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 98c3eb5d3..5e4edb2c2 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -62,6 +62,7 @@ class Google_Service_Manager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'manager/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'manager'; From 079f71fd058ae14df58eb83f389b8019200cd536 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:35 -0700 Subject: [PATCH 0781/1274] Updated Books.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Books.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 3700bd282..6f2c1675f 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -63,6 +63,7 @@ class Google_Service_Books extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'books/v1/'; $this->version = 'v1'; $this->serviceName = 'books'; @@ -987,6 +988,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), 'categoryId' => array( 'location' => 'query', 'type' => 'string', @@ -1231,6 +1236,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), 'association' => array( 'location' => 'query', 'type' => 'string', @@ -1299,6 +1308,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'rate' => array( 'path' => 'volumes/recommended/rate', @@ -2215,6 +2228,9 @@ public function listCategories($optParams = array()) * Default is en-US if unset. * @opt_param string pageToken The value of the nextToken from the previous * page. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned volumes. Books with a higher maturity rating are filtered + * out. * @opt_param string categoryId List of category ids requested. * @opt_param string pageSize Number of maximum results per page to be included * in the response. @@ -2385,6 +2401,9 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. * @opt_param string source String to identify the originator of this request. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned recommendations. Books with a higher maturity rating are + * filtered out. * @opt_param string association Association type. * @return Google_Service_Books_Volumes */ @@ -2450,6 +2469,9 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. * @opt_param string source String to identify the originator of this request. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned recommendations. Books with a higher maturity rating are + * filtered out. * @return Google_Service_Books_Volumes */ public function listVolumesRecommended($optParams = array()) @@ -6078,6 +6100,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection protected $collection_key = 'industryIdentifiers'; protected $internal_gapi_mappings = array( ); + public $allowAnonLogging; public $authors; public $averageRating; public $canonicalVolumeLink; @@ -6107,6 +6130,14 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $title; + public function setAllowAnonLogging($allowAnonLogging) + { + $this->allowAnonLogging = $allowAnonLogging; + } + public function getAllowAnonLogging() + { + return $this->allowAnonLogging; + } public function setAuthors($authors) { $this->authors = $authors; From eee34fdad9889f4be8065427146c5eaae51c8b05 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:36 -0700 Subject: [PATCH 0782/1274] Added service ComputeAccounts.php --- src/Google/Service/ComputeAccounts.php | 1805 ++++++++++++++++++++++++ 1 file changed, 1805 insertions(+) create mode 100644 src/Google/Service/ComputeAccounts.php diff --git a/src/Google/Service/ComputeAccounts.php b/src/Google/Service/ComputeAccounts.php new file mode 100644 index 000000000..e80b3c483 --- /dev/null +++ b/src/Google/Service/ComputeAccounts.php @@ -0,0 +1,1805 @@ + + * API for the Google Compute Accounts service.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_ComputeAccounts extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS = + "https://www.googleapis.com/auth/cloud.useraccounts"; + /** View your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS_READONLY = + "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; + /** Manage your Google Compute Accounts. */ + const COMPUTEACCOUNTS = + "https://www.googleapis.com/auth/computeaccounts"; + /** View your Google Compute Accounts. */ + const COMPUTEACCOUNTS_READONLY = + "https://www.googleapis.com/auth/computeaccounts.readonly"; + + public $globalAccountsOperations; + public $groups; + public $linux; + public $users; + + + /** + * Constructs the internal representation of the ComputeAccounts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'computeaccounts/alpha/projects/'; + $this->version = 'alpha'; + $this->serviceName = 'computeaccounts'; + + $this->globalAccountsOperations = new Google_Service_ComputeAccounts_GlobalAccountsOperations_Resource( + $this, + $this->serviceName, + 'globalAccountsOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_ComputeAccounts_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'addMember' => array( + 'path' => '{project}/global/groups/{groupName}/addMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removeMember' => array( + 'path' => '{project}/global/groups/{groupName}/removeMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->linux = new Google_Service_ComputeAccounts_Linux_Resource( + $this, + $this->serviceName, + 'linux', + array( + 'methods' => array( + 'getAuthorizedKeysView' => array( + 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getLinuxAccountViews' => array( + 'path' => '{project}/zones/{zone}/linuxAccountViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'user' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_ComputeAccounts_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'addPublicKey' => array( + 'path' => '{project}/global/users/{user}/addPublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removePublicKey' => array( + 'path' => '{project}/global/users/{user}/removePublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "globalAccountsOperations" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_ComputeAccounts(...); + * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; + * + */ +class Google_Service_ComputeAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified operation resource. (globalAccountsOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalAccountsOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalAccountsOperations.listGlobalAccountsOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_ComputeAccounts_OperationList + */ + public function listGlobalAccountsOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ComputeAccounts_OperationList"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_ComputeAccounts(...); + * $groups = $computeaccountsService->groups; + * + */ +class Google_Service_ComputeAccounts_Groups_Resource extends Google_Service_Resource +{ + + /** + * Adds users to the specified group. (groups.addMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsAddMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function addMember($project, $groupName, Google_Service_ComputeAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addMember', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Deletes the specified Group resource. (groups.delete) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function delete($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Returns the specified Group resource. (groups.get) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Group + */ + public function get($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ComputeAccounts_Group"); + } + + /** + * Creates a Group resource in the specified project using the data included in + * the request. (groups.insert) + * + * @param string $project Project ID for this request. + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function insert($project, Google_Service_ComputeAccounts_Group $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Retrieves the list of groups contained within the specified project. + * (groups.listGroups) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_ComputeAccounts_GroupList + */ + public function listGroups($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ComputeAccounts_GroupList"); + } + + /** + * Removes users from the specified group. (groups.removeMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsRemoveMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function removeMember($project, $groupName, Google_Service_ComputeAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeMember', array($params), "Google_Service_ComputeAccounts_Operation"); + } +} + +/** + * The "linux" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_ComputeAccounts(...); + * $linux = $computeaccountsService->linux; + * + */ +class Google_Service_ComputeAccounts_Linux_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of authorized public keys for a specific user account. + * (linux.getAuthorizedKeysView) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $user The user account for which you want to get a list of + * authorized public keys. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the view. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse + */ + public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getAuthorizedKeysView', array($params), "Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse"); + } + + /** + * Retrieves a list of user accounts for an instance within a specific project. + * (linux.getLinuxAccountViews) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the views. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string user If provided, the user requesting the views. If left + * blank, the system is requesting the views, instead of a particular user. + * @return Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse + */ + public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getLinuxAccountViews', array($params), "Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_ComputeAccounts(...); + * $users = $computeaccountsService->users; + * + */ +class Google_Service_ComputeAccounts_Users_Resource extends Google_Service_Resource +{ + + /** + * Adds a public key to the specified User resource with the data included in + * the request. (users.addPublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param Google_PublicKey $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function addPublicKey($project, $user, Google_Service_ComputeAccounts_PublicKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addPublicKey', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Deletes the specified User resource. (users.delete) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function delete($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Returns the specified User resource. (users.get) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_User + */ + public function get($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ComputeAccounts_User"); + } + + /** + * Creates a User resource in the specified project using the data included in + * the request. (users.insert) + * + * @param string $project Project ID for this request. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function insert($project, Google_Service_ComputeAccounts_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation"); + } + + /** + * Retrieves a list of users contained within the specified project. + * (users.listUsers) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_ComputeAccounts_UserList + */ + public function listUsers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ComputeAccounts_UserList"); + } + + /** + * Removes the specified public key from the user. (users.removePublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param string $fingerprint The fingerprint of the public key to delete. + * Public keys are identified by their fingerprint, which is defined by RFC4716 + * to be the MD5 digest of the public key. + * @param array $optParams Optional parameters. + * @return Google_Service_ComputeAccounts_Operation + */ + public function removePublicKey($project, $user, $fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); + $params = array_merge($params, $optParams); + return $this->call('removePublicKey', array($params), "Google_Service_ComputeAccounts_Operation"); + } +} + + + + +class Google_Service_ComputeAccounts_AuthorizedKeysView extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $keys; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_ComputeAccounts_Group extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $members; + public $name; + public $selfLink; + + + 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 setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + 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_ComputeAccounts_GroupList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_ComputeAccounts_Group'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_ComputeAccounts_GroupsAddMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_ComputeAccounts_GroupsRemoveMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_ComputeAccounts_LinuxAccountViews extends Google_Collection +{ + protected $collection_key = 'userViews'; + protected $internal_gapi_mappings = array( + ); + protected $groupViewsType = 'Google_Service_ComputeAccounts_LinuxGroupView'; + protected $groupViewsDataType = 'array'; + public $kind; + protected $userViewsType = 'Google_Service_ComputeAccounts_LinuxUserView'; + protected $userViewsDataType = 'array'; + + + public function setGroupViews($groupViews) + { + $this->groupViews = $groupViews; + } + public function getGroupViews() + { + return $this->groupViews; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserViews($userViews) + { + $this->userViews = $userViews; + } + public function getUserViews() + { + return $this->userViews; + } +} + +class Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_ComputeAccounts_AuthorizedKeysView'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_ComputeAccounts_AuthorizedKeysView $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_ComputeAccounts_LinuxAccountViews'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_ComputeAccounts_LinuxAccountViews $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_ComputeAccounts_LinuxGroupView extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $gid; + public $groupName; + public $members; + + + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setGroupName($groupName) + { + $this->groupName = $groupName; + } + public function getGroupName() + { + return $this->groupName; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } +} + +class Google_Service_ComputeAccounts_LinuxUserView extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gecos; + public $gid; + public $homeDirectory; + public $shell; + public $uid; + public $username; + + + public function setGecos($gecos) + { + $this->gecos = $gecos; + } + public function getGecos() + { + return $this->gecos; + } + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setHomeDirectory($homeDirectory) + { + $this->homeDirectory = $homeDirectory; + } + public function getHomeDirectory() + { + return $this->homeDirectory; + } + public function setShell($shell) + { + $this->shell = $shell; + } + public function getShell() + { + return $this->shell; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_ComputeAccounts_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_ComputeAccounts_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_ComputeAccounts_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_ComputeAccounts_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_ComputeAccounts_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_ComputeAccounts_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_ComputeAccounts_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_ComputeAccounts_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_ComputeAccounts_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_ComputeAccounts_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_ComputeAccounts_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_ComputeAccounts_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_ComputeAccounts_PublicKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $expirationTimestamp; + public $fingerprint; + public $key; + + + 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 setExpirationTimestamp($expirationTimestamp) + { + $this->expirationTimestamp = $expirationTimestamp; + } + public function getExpirationTimestamp() + { + return $this->expirationTimestamp; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } +} + +class Google_Service_ComputeAccounts_User extends Google_Collection +{ + protected $collection_key = 'publicKeys'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $groups; + public $id; + public $kind; + public $name; + public $owner; + protected $publicKeysType = 'Google_Service_ComputeAccounts_PublicKey'; + protected $publicKeysDataType = 'array'; + public $selfLink; + + + 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 setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } + 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 setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + public function getPublicKeys() + { + return $this->publicKeys; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_ComputeAccounts_UserList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_ComputeAccounts_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} From ae45e02ae9152e72b1756594bfe7f556543fe369 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:36 -0700 Subject: [PATCH 0783/1274] Updated Licensing.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Licensing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 701967237..5aa111b4b 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -45,6 +45,7 @@ class Google_Service_Licensing extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/licensing/v1/product/'; $this->version = 'v1'; $this->serviceName = 'licensing'; From 778821bac452f8578bdbafd860c88c4215a6a326 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:37 -0700 Subject: [PATCH 0784/1274] Updated Logging.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Logging.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Logging.php b/src/Google/Service/Logging.php index 8fc2d3e36..7eeaa8f39 100644 --- a/src/Google/Service/Logging.php +++ b/src/Google/Service/Logging.php @@ -51,6 +51,7 @@ class Google_Service_Logging extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://logging.googleapis.com/'; $this->servicePath = ''; $this->version = 'v1beta3'; $this->serviceName = 'logging'; From cf3d4c7edc59fee4953eee2978e6fc8d798aa3c5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:37 -0700 Subject: [PATCH 0785/1274] Updated Reseller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reseller.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 653720e32..e95a737d3 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -49,6 +49,7 @@ class Google_Service_Reseller extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/reseller/v1/'; $this->version = 'v1'; $this->serviceName = 'reseller'; @@ -833,8 +834,9 @@ public function getNumberOfSeats() } } -class Google_Service_Reseller_Subscription extends Google_Model +class Google_Service_Reseller_Subscription extends Google_Collection { + protected $collection_key = 'suspensionReasons'; protected $internal_gapi_mappings = array( ); public $billingMethod; @@ -852,6 +854,7 @@ class Google_Service_Reseller_Subscription extends Google_Model public $skuId; public $status; public $subscriptionId; + public $suspensionReasons; protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; protected $transferInfoDataType = ''; protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; @@ -954,6 +957,14 @@ public function getSubscriptionId() { return $this->subscriptionId; } + public function setSuspensionReasons($suspensionReasons) + { + $this->suspensionReasons = $suspensionReasons; + } + public function getSuspensionReasons() + { + return $this->suspensionReasons; + } public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) { $this->transferInfo = $transferInfo; From aefacdcbfca7ac79604c50c7f591491426dfa7d5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:38 -0700 Subject: [PATCH 0786/1274] Updated Drive.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Drive.php | 115 ++++++++++++++++++++++++++--------- 1 file changed, 86 insertions(+), 29 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index a6a67b083..69c693601 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -39,7 +39,7 @@ class Google_Service_Drive extends Google_Service /** View your Google Drive apps. */ const DRIVE_APPS_READONLY = "https://www.googleapis.com/auth/drive.apps.readonly"; - /** View and manage Google Drive files that you have opened or created with this app. */ + /** View and manage Google Drive files and folders that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; /** View and manage metadata of files in your Google Drive. */ @@ -78,6 +78,7 @@ class Google_Service_Drive extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'drive/v2/'; $this->version = 'v2'; $this->serviceName = 'drive'; @@ -170,10 +171,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', @@ -186,6 +183,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'spaces' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'watch' => array( 'path' => 'changes/watch', @@ -195,10 +200,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', @@ -211,6 +212,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'spaces' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -537,25 +546,29 @@ public function __construct(Google_Client $client) 'path' => 'files', 'httpMethod' => 'GET', 'parameters' => array( - 'q' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( 'location' => 'query', 'type' => 'string', ), - 'corpus' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'spaces' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'corpus' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'patch' => array( @@ -1397,10 +1410,12 @@ public function get($changeId, $optParams = array()) * has opened and shared files. When set to false, the list only includes owned * files plus any shared or public files the user has explicitly added to a * folder they own. - * @opt_param string startChangeId Change ID to start listing changes from. * @opt_param bool includeDeleted Whether to include deleted items. * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive' and 'appDataFolder'. + * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_ChangeList */ public function listChanges($optParams = array()) @@ -1420,10 +1435,12 @@ public function listChanges($optParams = array()) * has opened and shared files. When set to false, the list only includes owned * files plus any shared or public files the user has explicitly added to a * folder they own. - * @opt_param string startChangeId Change ID to start listing changes from. * @opt_param bool includeDeleted Whether to include deleted items. * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive' and 'appDataFolder'. + * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_Channel */ public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) @@ -1670,7 +1687,7 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * @opt_param bool convert Whether to convert this file to the corresponding * Google Docs format. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param string visibility The visibility of the new file. This parameter * is only relevant when the source is not a native Google Doc and * convert=false. @@ -1749,7 +1766,7 @@ public function get($fileId, $optParams = array()) * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param string visibility The visibility of the new file. This parameter * is only relevant when convert=false. * @opt_param bool pinned Whether to pin the head revision of the uploaded file. @@ -1772,13 +1789,15 @@ public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = ar * * @param array $optParams Optional parameters. * + * @opt_param string projection This parameter is deprecated and has no + * function. + * @opt_param int maxResults Maximum number of files to return. * @opt_param string q Query string for searching files. * @opt_param string pageToken Page token for files. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive' and 'appDataFolder'. * @opt_param string corpus The body of items (files/documents) to which the * query applies. - * @opt_param string projection This parameter is deprecated and has no - * function. - * @opt_param int maxResults Maximum number of files to return. * @return Google_Service_Drive_FileList */ public function listFiles($optParams = array()) @@ -1807,14 +1826,15 @@ public function listFiles($optParams = array()) * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a * maximum of 200 pinned revisions. * @opt_param bool newRevision Whether a blob upload should create a new * revision. If false, the blob data in the current head revision is replaced. * If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage - * quota). + * unpinned revisions are preserved for a short period of time. Pinned revisions + * are stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -1888,14 +1908,15 @@ public function untrash($fileId, $optParams = array()) * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a * maximum of 200 pinned revisions. * @opt_param bool newRevision Whether a blob upload should create a new * revision. If false, the blob data in the current head revision is replaced. * If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage - * quota). + * unpinned revisions are preserved for a short period of time. Pinned revisions + * are stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -3973,11 +3994,12 @@ public function getSelfLink() class Google_Service_Drive_DriveFile extends Google_Collection { - protected $collection_key = 'properties'; + protected $collection_key = 'spaces'; protected $internal_gapi_mappings = array( ); public $alternateLink; public $appDataContents; + public $canComment; public $copyable; public $createdDate; public $defaultOpenWithLink; @@ -4012,6 +4034,7 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $modifiedDate; public $openWithLinks; public $originalFilename; + public $ownedByMe; public $ownerNames; protected $ownersType = 'Google_Service_Drive_User'; protected $ownersDataType = 'array'; @@ -4023,10 +4046,12 @@ class Google_Service_Drive_DriveFile extends Google_Collection protected $propertiesDataType = 'array'; public $quotaBytesUsed; public $selfLink; + public $shareable; public $shared; public $sharedWithMeDate; protected $sharingUserType = 'Google_Service_Drive_User'; protected $sharingUserDataType = ''; + public $spaces; protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; protected $thumbnailDataType = ''; public $thumbnailLink; @@ -4057,6 +4082,14 @@ public function getAppDataContents() { return $this->appDataContents; } + public function setCanComment($canComment) + { + $this->canComment = $canComment; + } + public function getCanComment() + { + return $this->canComment; + } public function setCopyable($copyable) { $this->copyable = $copyable; @@ -4297,6 +4330,14 @@ public function getOriginalFilename() { return $this->originalFilename; } + public function setOwnedByMe($ownedByMe) + { + $this->ownedByMe = $ownedByMe; + } + public function getOwnedByMe() + { + return $this->ownedByMe; + } public function setOwnerNames($ownerNames) { $this->ownerNames = $ownerNames; @@ -4353,6 +4394,14 @@ public function getSelfLink() { return $this->selfLink; } + public function setShareable($shareable) + { + $this->shareable = $shareable; + } + public function getShareable() + { + return $this->shareable; + } public function setShared($shared) { $this->shared = $shared; @@ -4377,6 +4426,14 @@ public function getSharingUser() { return $this->sharingUser; } + public function setSpaces($spaces) + { + $this->spaces = $spaces; + } + public function getSpaces() + { + return $this->spaces; + } public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) { $this->thumbnail = $thumbnail; From 1b1a6f10b29f8d3296a7ced68bbf248028777224 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:39 -0700 Subject: [PATCH 0787/1274] Updated Dataflow.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dataflow.php | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index b5d36b280..92148cfeb 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -50,6 +50,7 @@ class Google_Service_Dataflow extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://dataflow.googleapis.com/'; $this->servicePath = 'v1b3/projects/'; $this->version = 'v1b3'; $this->serviceName = 'dataflow'; @@ -69,6 +70,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'replaceJobId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'view' => array( 'location' => 'query', 'type' => 'string', @@ -287,6 +292,7 @@ class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resou * @param Google_Job $postBody * @param array $optParams Optional parameters. * + * @opt_param string replaceJobId * @opt_param string view * @return Google_Service_Dataflow_Job */ @@ -864,6 +870,7 @@ class Google_Service_Dataflow_Job extends Google_Collection protected $collection_key = 'steps'; protected $internal_gapi_mappings = array( ); + public $clientRequestId; public $createTime; public $currentState; public $currentStateTime; @@ -874,12 +881,22 @@ class Google_Service_Dataflow_Job extends Google_Collection public $id; public $name; public $projectId; + public $replaceJobId; public $requestedState; protected $stepsType = 'Google_Service_Dataflow_Step'; protected $stepsDataType = 'array'; + public $transformNameMapping; public $type; + public function setClientRequestId($clientRequestId) + { + $this->clientRequestId = $clientRequestId; + } + public function getClientRequestId() + { + return $this->clientRequestId; + } public function setCreateTime($createTime) { $this->createTime = $createTime; @@ -944,6 +961,14 @@ public function getProjectId() { return $this->projectId; } + public function setReplaceJobId($replaceJobId) + { + $this->replaceJobId = $replaceJobId; + } + public function getReplaceJobId() + { + return $this->replaceJobId; + } public function setRequestedState($requestedState) { $this->requestedState = $requestedState; @@ -960,6 +985,14 @@ public function getSteps() { return $this->steps; } + public function setTransformNameMapping($transformNameMapping) + { + $this->transformNameMapping = $transformNameMapping; + } + public function getTransformNameMapping() + { + return $this->transformNameMapping; + } public function setType($type) { $this->type = $type; @@ -1082,6 +1115,10 @@ public function getMetrics() } } +class Google_Service_Dataflow_JobTransformNameMapping extends Google_Model +{ +} + class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model { protected $internal_gapi_mappings = array( @@ -3264,9 +3301,11 @@ class Google_Service_Dataflow_WorkerPool extends Google_Collection public $defaultPackageSet; public $diskSizeGb; public $diskSourceImage; + public $diskType; public $kind; public $machineType; public $metadata; + public $network; public $numWorkers; public $onHostMaintenance; protected $packagesType = 'Google_Service_Dataflow_Package'; @@ -3318,6 +3357,14 @@ public function getDiskSourceImage() { return $this->diskSourceImage; } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } public function setKind($kind) { $this->kind = $kind; @@ -3342,6 +3389,14 @@ public function getMetadata() { return $this->metadata; } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } public function setNumWorkers($numWorkers) { $this->numWorkers = $numWorkers; From 2bd0af36b4c4bdd5146db1764d647402d8609f1c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:40 -0700 Subject: [PATCH 0788/1274] Updated SiteVerification.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SiteVerification.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 3ba2f2d7b..1b9cb6731 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -48,6 +48,7 @@ class Google_Service_SiteVerification extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'siteVerification/v1/'; $this->version = 'v1'; $this->serviceName = 'siteVerification'; From 841ea984cdc8176b983e445eaba22bc1484f8793 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:40 -0700 Subject: [PATCH 0789/1274] Updated Translate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Translate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index 67d0ed256..c7f027daa 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -45,6 +45,7 @@ class Google_Service_Translate extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'language/translate/'; $this->version = 'v2'; $this->serviceName = 'translate'; From 6ea9862710e6eae70a225cee43598170760b88f2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:41 -0700 Subject: [PATCH 0790/1274] Updated Blogger.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Blogger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 8328c66b5..1f86ac3c4 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -55,6 +55,7 @@ class Google_Service_Blogger extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'blogger/v3/'; $this->version = 'v3'; $this->serviceName = 'blogger'; From 58766f37b4f7b4ec0c56e762eaf0cf56bd144c3f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:41 -0700 Subject: [PATCH 0791/1274] Updated Fitness.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fitness.php | 313 +++++++++++++++++++++++++++++++++ 1 file changed, 313 insertions(+) diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index d0da067be..513528478 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -51,6 +51,7 @@ class Google_Service_Fitness extends Google_Service public $users_dataSources; public $users_dataSources_datasets; + public $users_dataset; public $users_sessions; @@ -62,6 +63,7 @@ class Google_Service_Fitness extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fitness/v1/users/'; $this->version = 'v1'; $this->serviceName = 'fitness'; @@ -251,6 +253,26 @@ public function __construct(Google_Client $client) ) ) ); + $this->users_dataset = new Google_Service_Fitness_UsersDataset_Resource( + $this, + $this->serviceName, + 'dataset', + array( + 'methods' => array( + 'aggregate' => array( + 'path' => '{userId}/dataset:aggregate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->users_sessions = new Google_Service_Fitness_UsersSessions_Resource( $this, $this->serviceName, @@ -581,6 +603,32 @@ public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness return $this->call('patch', array($params), "Google_Service_Fitness_Dataset"); } } +/** + * The "dataset" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $dataset = $fitnessService->dataset; + * + */ +class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resource +{ + + /** + * (dataset.aggregate) + * + * @param string $userId + * @param Google_AggregateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_AggregateResponse + */ + public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse"); + } +} /** * The "sessions" collection of methods. * Typical usage is: @@ -660,6 +708,211 @@ public function update($userId, $sessionId, Google_Service_Fitness_Session $post +class Google_Service_Fitness_AggregateBucket extends Google_Collection +{ + protected $collection_key = 'dataset'; + protected $internal_gapi_mappings = array( + ); + public $activity; + protected $datasetType = 'Google_Service_Fitness_Dataset'; + protected $datasetDataType = 'array'; + public $endTimeMillis; + protected $sessionType = 'Google_Service_Fitness_Session'; + protected $sessionDataType = ''; + public $startTimeMillis; + public $type; + + + public function setActivity($activity) + { + $this->activity = $activity; + } + public function getActivity() + { + return $this->activity; + } + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setEndTimeMillis($endTimeMillis) + { + $this->endTimeMillis = $endTimeMillis; + } + public function getEndTimeMillis() + { + return $this->endTimeMillis; + } + public function setSession(Google_Service_Fitness_Session $session) + { + $this->session = $session; + } + public function getSession() + { + return $this->session; + } + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Fitness_AggregateBy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataSourceId; + public $dataTypeName; + public $outputDataSourceId; + public $outputDataTypeName; + + + public function setDataSourceId($dataSourceId) + { + $this->dataSourceId = $dataSourceId; + } + public function getDataSourceId() + { + return $this->dataSourceId; + } + public function setDataTypeName($dataTypeName) + { + $this->dataTypeName = $dataTypeName; + } + public function getDataTypeName() + { + return $this->dataTypeName; + } + public function setOutputDataSourceId($outputDataSourceId) + { + $this->outputDataSourceId = $outputDataSourceId; + } + public function getOutputDataSourceId() + { + return $this->outputDataSourceId; + } + public function setOutputDataTypeName($outputDataTypeName) + { + $this->outputDataTypeName = $outputDataTypeName; + } + public function getOutputDataTypeName() + { + return $this->outputDataTypeName; + } +} + +class Google_Service_Fitness_AggregateRequest extends Google_Collection +{ + protected $collection_key = 'aggregateBy'; + protected $internal_gapi_mappings = array( + ); + protected $aggregateByType = 'Google_Service_Fitness_AggregateBy'; + protected $aggregateByDataType = 'array'; + protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity'; + protected $bucketByActivitySegmentDataType = ''; + protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity'; + protected $bucketByActivityTypeDataType = ''; + protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession'; + protected $bucketBySessionDataType = ''; + protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime'; + protected $bucketByTimeDataType = ''; + public $endTimeMillis; + public $startTimeMillis; + + + public function setAggregateBy($aggregateBy) + { + $this->aggregateBy = $aggregateBy; + } + public function getAggregateBy() + { + return $this->aggregateBy; + } + public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment) + { + $this->bucketByActivitySegment = $bucketByActivitySegment; + } + public function getBucketByActivitySegment() + { + return $this->bucketByActivitySegment; + } + public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType) + { + $this->bucketByActivityType = $bucketByActivityType; + } + public function getBucketByActivityType() + { + return $this->bucketByActivityType; + } + public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession) + { + $this->bucketBySession = $bucketBySession; + } + public function getBucketBySession() + { + return $this->bucketBySession; + } + public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime) + { + $this->bucketByTime = $bucketByTime; + } + public function getBucketByTime() + { + return $this->bucketByTime; + } + public function setEndTimeMillis($endTimeMillis) + { + $this->endTimeMillis = $endTimeMillis; + } + public function getEndTimeMillis() + { + return $this->endTimeMillis; + } + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } +} + +class Google_Service_Fitness_AggregateResponse extends Google_Collection +{ + protected $collection_key = 'bucket'; + protected $internal_gapi_mappings = array( + ); + protected $bucketType = 'Google_Service_Fitness_AggregateBucket'; + protected $bucketDataType = 'array'; + + + public function setBucket($bucket) + { + $this->bucket = $bucket; + } + public function getBucket() + { + return $this->bucket; + } +} + class Google_Service_Fitness_Application extends Google_Model { protected $internal_gapi_mappings = array( @@ -704,6 +957,66 @@ public function getVersion() } } +class Google_Service_Fitness_BucketByActivity extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activityDataSourceId; + public $minDurationMillis; + + + public function setActivityDataSourceId($activityDataSourceId) + { + $this->activityDataSourceId = $activityDataSourceId; + } + public function getActivityDataSourceId() + { + return $this->activityDataSourceId; + } + public function setMinDurationMillis($minDurationMillis) + { + $this->minDurationMillis = $minDurationMillis; + } + public function getMinDurationMillis() + { + return $this->minDurationMillis; + } +} + +class Google_Service_Fitness_BucketBySession extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $minDurationMillis; + + + public function setMinDurationMillis($minDurationMillis) + { + $this->minDurationMillis = $minDurationMillis; + } + public function getMinDurationMillis() + { + return $this->minDurationMillis; + } +} + +class Google_Service_Fitness_BucketByTime extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $durationMillis; + + + public function setDurationMillis($durationMillis) + { + $this->durationMillis = $durationMillis; + } + public function getDurationMillis() + { + return $this->durationMillis; + } +} + class Google_Service_Fitness_DataPoint extends Google_Collection { protected $collection_key = 'value'; From 9ba0437c90243593ec628042a2e61339351b0cd1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:42 -0700 Subject: [PATCH 0792/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 690 ++++++++++++++++++---------------- 1 file changed, 374 insertions(+), 316 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index d4a3605de..e4fc97c33 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -16,14 +16,14 @@ */ /** - * Service definition for Pubsub (v1beta2). + * Service definition for Pubsub (v1beta1). * *

* Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,9 +37,8 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $projects_subscriptions; - public $projects_topics; - public $projects_topics_subscriptions; + public $subscriptions; + public $topics; /** @@ -50,38 +49,27 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'v1beta2/'; - $this->version = 'v1beta2'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'pubsub/v1beta1/'; + $this->version = 'v1beta1'; $this->serviceName = 'pubsub'; - $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( + $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => '{+subscription}:acknowledge', + 'path' => 'subscriptions/acknowledge', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ),'create' => array( - 'path' => '{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'delete' => array( - 'path' => '{+subscription}', + 'path' => 'subscriptions/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -91,7 +79,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => '{+subscription}', + 'path' => 'subscriptions/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -101,75 +89,54 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{+project}/subscriptions', + 'path' => 'subscriptions', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'modifyAckDeadline' => array( - 'path' => '{+subscription}:modifyAckDeadline', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', + 'query' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), + ),'modifyAckDeadline' => array( + 'path' => 'subscriptions/modifyAckDeadline', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'modifyPushConfig' => array( - 'path' => '{+subscription}:modifyPushConfig', + 'path' => 'subscriptions/modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ),'pull' => array( - 'path' => '{+subscription}:pull', + 'path' => 'subscriptions/pull', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), + ),'pullBatch' => array( + 'path' => 'subscriptions/pullBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) ); - $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( + $this->topics = new Google_Service_Pubsub_Topics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => '{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'path' => 'topics', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'delete' => array( - 'path' => '{+topic}', + 'path' => 'topics/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -179,7 +146,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => '{+topic}', + 'path' => 'topics/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -189,61 +156,30 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{+project}/topics', + 'path' => 'topics', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'publish' => array( - 'path' => '{+topic}:publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'list' => array( - 'path' => '{+topic}/subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( + 'query' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), + ),'publish' => array( + 'path' => 'topics/publish', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'publishBatch' => array( + 'path' => 'topics/publishBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -252,18 +188,6 @@ public function __construct(Google_Client $client) } -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $projects = $pubsubService->projects; - * - */ -class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource -{ -} - /** * The "subscriptions" collection of methods. * Typical usage is: @@ -272,43 +196,43 @@ class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges the messages associated with the ack tokens in the - * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from - * the subscription. Acknowledging a message whose ack deadline has expired may - * succeed, but such a message may be redelivered later. Acknowledging a message - * more than once will not result in an error. (subscriptions.acknowledge) + * Acknowledges a particular received message: the Pub/Sub system can remove the + * given message from the subscription. Acknowledging a message whose Ack + * deadline has expired may succeed, but the message could have been already + * redelivered. Acknowledging a message more than once will not result in an + * error. This is only used for messages received via pull. + * (subscriptions.acknowledge) * - * @param string $subscription * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('acknowledge', array($params)); } /** - * Creates a subscription to a given topic for a given subscriber. If the + * Creates a subscription on a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the - * request, the server will assign a random name for this subscription on the - * same project as the topic. (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. + * + * If the name is not provided in the request, the server will assign a random + * name for this subscription on the same project as the topic. + * (subscriptions.create) * - * @param string $name * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('name' => $name, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } @@ -316,25 +240,22 @@ public function create($name, Google_Service_Pubsub_Subscription $postBody, $opt /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * After a subscription is deleted, a new one may be created with the same name, - * but the new one has no association with the old subscription, or its topic - * unless the same topic is specified. (subscriptions.delete) + * (subscriptions.delete) * - * @param string $subscription + * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('delete', array($params)); } /** * Gets the configuration details of a subscription. (subscriptions.get) * - * @param string $subscription + * @param string $subscription The name of the subscription to get. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ @@ -346,78 +267,90 @@ public function get($subscription, $optParams = array()) } /** - * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) + * Lists matching subscriptions. (subscriptions.listSubscriptions) * - * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * @opt_param int pageSize + * @opt_param string pageToken The value obtained in the last + * ListSubscriptionsResponse for continuation. + * @opt_param int maxResults Maximum number of subscriptions to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listProjectsSubscriptions($project, $optParams = array()) + public function listSubscriptions($optParams = array()) { - $params = array('project' => $project); + $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the ack deadline for a specific message. This method is useful to - * indicate that more time is needed to process a message by the subscriber, or - * to make the message available for redelivery if the processing was - * interrupted. (subscriptions.modifyAckDeadline) + * Modifies the Ack deadline for a message received from a pull request. + * (subscriptions.modifyAckDeadline) * - * @param string $subscription * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('modifyAckDeadline', array($params)); } /** - * Modifies the PushConfig for a specified subscription. This may be used to - * change a push subscription to a pull one (signified by an empty PushConfig) - * or vice versa, or change the endpoint URL and other attributes of a push - * subscription. Messages will accumulate for delivery continuously through the - * call regardless of changes to the PushConfig. + * Modifies the PushConfig for a specified subscription. This method can be used + * to suspend the flow of messages to an endpoint by clearing the PushConfig + * field in the request. Messages will be accumulated for delivery even if no + * push configuration is defined or while the configuration is modified. * (subscriptions.modifyPushConfig) * - * @param string $subscription * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('modifyPushConfig', array($params)); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The server may return UNAVAILABLE if there - * are too many concurrent pull requests pending for the given subscription. - * (subscriptions.pull) + * Pulls a single message from the server. If return_immediately is true, and no + * messages are available in the subscription, this method returns + * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no + * messages are available in a reasonable amount of time (to reduce system + * load). (subscriptions.pull) * - * @param string $subscription * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } + + /** + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The system is free to return UNAVAILABLE + * if there are too many pull requests outstanding for the given subscription. + * (subscriptions.pullBatch) + * + * @param Google_PullBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PullBatchResponse + */ + public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); + } } + /** * The "topics" collection of methods. * Typical usage is: @@ -426,20 +359,19 @@ public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * - * @param string $name * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('name' => $name, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } @@ -447,25 +379,25 @@ public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams /** * Deletes the topic with the given name. Returns NOT_FOUND if the topic does * not exist. After a topic is deleted, a new topic may be created with the same - * name; this is an entirely new topic with none of the old configuration or - * subscriptions. Existing subscriptions to this topic are not deleted. - * (topics.delete) + * name. (topics.delete) * - * @param string $topic + * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('delete', array($params)); } /** - * Gets the configuration of a topic. (topics.get) + * Gets the configuration of a topic. Since the topic only has the name + * attribute, this method is only useful to check the existence of a topic. If + * other attributes are added in the future, they will be returned here. + * (topics.get) * - * @param string $topic + * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ @@ -477,66 +409,50 @@ public function get($topic, $optParams = array()) } /** - * Lists matching topics. (topics.listProjectsTopics) + * Lists matching topics. (topics.listTopics) * - * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * @opt_param int pageSize + * @opt_param string pageToken The value obtained in the last ListTopicsResponse + * for continuation. + * @opt_param int maxResults Maximum number of topics to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listProjectsTopics($project, $optParams = array()) + public function listTopics($optParams = array()) { - $params = array('project' => $project); + $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. (topics.publish) + * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. + * (topics.publish) * - * @param string $topic * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishResponse */ - public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { - $params = array('topic' => $topic, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); + return $this->call('publish', array($params)); } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $subscriptions = $pubsubService->subscriptions; - * - */ -class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource -{ /** - * Lists the name of the subscriptions for this topic. - * (subscriptions.listProjectsTopicsSubscriptions) + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. (topics.publishBatch) * - * @param string $topic + * @param Google_PublishBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * @opt_param int pageSize - * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse + * @return Google_Service_Pubsub_PublishBatchResponse */ - public function listProjectsTopicsSubscriptions($topic, $optParams = array()) + public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) { - $params = array('topic' => $topic); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); + return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); } } @@ -545,61 +461,74 @@ public function listProjectsTopicsSubscriptions($topic, $optParams = array()) class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackIds'; + protected $collection_key = 'ackId'; protected $internal_gapi_mappings = array( ); - public $ackIds; + public $ackId; + public $subscription; - public function setAckIds($ackIds) + public function setAckId($ackId) { - $this->ackIds = $ackIds; + $this->ackId = $ackId; } - public function getAckIds() + public function getAckId() { - return $this->ackIds; + return $this->ackId; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; } } -class Google_Service_Pubsub_Empty extends Google_Model -{ -} - -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_Label extends Google_Model { - protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); - public $nextPageToken; - protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionsDataType = 'array'; + public $key; + public $numValue; + public $strValue; - public function setNextPageToken($nextPageToken) + public function setKey($key) { - $this->nextPageToken = $nextPageToken; + $this->key = $key; } - public function getNextPageToken() + public function getKey() { - return $this->nextPageToken; + return $this->key; + } + public function setNumValue($numValue) + { + $this->numValue = $numValue; } - public function setSubscriptions($subscriptions) + public function getNumValue() { - $this->subscriptions = $subscriptions; + return $this->numValue; } - public function getSubscriptions() + public function setStrValue($strValue) { - return $this->subscriptions; + $this->strValue = $strValue; + } + public function getStrValue() + { + return $this->strValue; } } -class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscriptions'; + protected $collection_key = 'subscription'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - public $subscriptions; + protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -610,24 +539,24 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscriptions($subscriptions) + public function setSubscription($subscription) { - $this->subscriptions = $subscriptions; + $this->subscription = $subscription; } - public function getSubscriptions() + public function getSubscription() { - return $this->subscriptions; + return $this->subscription; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topics'; + protected $collection_key = 'topic'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicsType = 'Google_Service_Pubsub_Topic'; - protected $topicsDataType = 'array'; + protected $topicType = 'Google_Service_Pubsub_Topic'; + protected $topicDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -638,22 +567,25 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopics($topics) + public function setTopic($topic) { - $this->topics = $topics; + $this->topic = $topic; } - public function getTopics() + public function getTopic() { - return $this->topics; + return $this->topic; } } -class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model +class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection { + protected $collection_key = 'ackIds'; protected $internal_gapi_mappings = array( ); public $ackDeadlineSeconds; public $ackId; + public $ackIds; + public $subscription; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -672,6 +604,22 @@ public function getAckId() { return $this->ackId; } + public function setAckIds($ackIds) + { + $this->ackIds = $ackIds; + } + public function getAckIds() + { + return $this->ackIds; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -680,6 +628,7 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; + public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -690,15 +639,24 @@ public function getPushConfig() { return $this->pushConfig; } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } } -class Google_Service_Pubsub_PublishRequest extends Google_Collection +class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection { protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; protected $messagesDataType = 'array'; + public $topic; public function setMessages($messages) @@ -709,9 +667,17 @@ public function getMessages() { return $this->messages; } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } } -class Google_Service_Pubsub_PublishResponse extends Google_Collection +class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection { protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( @@ -729,23 +695,89 @@ public function getMessageIds() } } -class Google_Service_Pubsub_PubsubMessage extends Google_Model +class Google_Service_Pubsub_PublishRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $attributes; - public $data; - public $messageId; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $topic; + + + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} +class Google_Service_Pubsub_PubsubEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deleted; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $subscription; + public $truncated; - public function setAttributes($attributes) + + public function setDeleted($deleted) { - $this->attributes = $attributes; + $this->deleted = $deleted; } - public function getAttributes() + public function getDeleted() { - return $this->attributes; + return $this->deleted; } + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setTruncated($truncated) + { + $this->truncated = $truncated; + } + public function getTruncated() + { + return $this->truncated; + } +} + +class Google_Service_Pubsub_PubsubMessage extends Google_Collection +{ + protected $collection_key = 'label'; + protected $internal_gapi_mappings = array( + ); + public $data; + protected $labelType = 'Google_Service_Pubsub_Label'; + protected $labelDataType = 'array'; + public $messageId; + + public function setData($data) { $this->data = $data; @@ -754,6 +786,14 @@ public function getData() { return $this->data; } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } public function setMessageId($messageId) { $this->messageId = $messageId; @@ -764,25 +804,22 @@ public function getMessageId() } } -class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model -{ -} - -class Google_Service_Pubsub_PullRequest extends Google_Model +class Google_Service_Pubsub_PullBatchRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $maxMessages; + public $maxEvents; public $returnImmediately; + public $subscription; - public function setMaxMessages($maxMessages) + public function setMaxEvents($maxEvents) { - $this->maxMessages = $maxMessages; + $this->maxEvents = $maxEvents; } - public function getMaxMessages() + public function getMaxEvents() { - return $this->maxMessages; + return $this->maxEvents; } public function setReturnImmediately($returnImmediately) { @@ -792,64 +829,68 @@ public function getReturnImmediately() { return $this->returnImmediately; } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } } -class Google_Service_Pubsub_PullResponse extends Google_Collection +class Google_Service_Pubsub_PullBatchResponse extends Google_Collection { - protected $collection_key = 'receivedMessages'; + protected $collection_key = 'pullResponses'; protected $internal_gapi_mappings = array( ); - protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; - protected $receivedMessagesDataType = 'array'; + protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; + protected $pullResponsesDataType = 'array'; - public function setReceivedMessages($receivedMessages) + public function setPullResponses($pullResponses) { - $this->receivedMessages = $receivedMessages; + $this->pullResponses = $pullResponses; } - public function getReceivedMessages() + public function getPullResponses() { - return $this->receivedMessages; + return $this->pullResponses; } } -class Google_Service_Pubsub_PushConfig extends Google_Model +class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $attributes; - public $pushEndpoint; + public $returnImmediately; + public $subscription; - public function setAttributes($attributes) + public function setReturnImmediately($returnImmediately) { - $this->attributes = $attributes; + $this->returnImmediately = $returnImmediately; } - public function getAttributes() + public function getReturnImmediately() { - return $this->attributes; + return $this->returnImmediately; } - public function setPushEndpoint($pushEndpoint) + public function setSubscription($subscription) { - $this->pushEndpoint = $pushEndpoint; + $this->subscription = $subscription; } - public function getPushEndpoint() + public function getSubscription() { - return $this->pushEndpoint; + return $this->subscription; } } -class Google_Service_Pubsub_PushConfigAttributes extends Google_Model -{ -} - -class Google_Service_Pubsub_ReceivedMessage extends Google_Model +class Google_Service_Pubsub_PullResponse extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; + protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; + protected $pubsubEventDataType = ''; public function setAckId($ackId) @@ -860,13 +901,30 @@ public function getAckId() { return $this->ackId; } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) { - $this->message = $message; + $this->pubsubEvent = $pubsubEvent; } - public function getMessage() + public function getPubsubEvent() { - return $this->message; + return $this->pubsubEvent; + } +} + +class Google_Service_Pubsub_PushConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $pushEndpoint; + + + public function setPushEndpoint($pushEndpoint) + { + $this->pushEndpoint = $pushEndpoint; + } + public function getPushEndpoint() + { + return $this->pushEndpoint; } } From f2d811e9cb364fe28ba6ebb72ccc188630c8854d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:43 -0700 Subject: [PATCH 0793/1274] Updated Datastore.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Datastore.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index e627d9d0e..a7c58dbc2 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -51,6 +51,7 @@ class Google_Service_Datastore extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'datastore/v1beta2/datasets/'; $this->version = 'v1beta2'; $this->serviceName = 'datastore'; From 3ca78efdefa53cf6bba198842fb217c7577f0fc7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:43 -0700 Subject: [PATCH 0794/1274] Updated CivicInfo.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CivicInfo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 961fd30c0..5d6964262 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -45,6 +45,7 @@ class Google_Service_CivicInfo extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'civicinfo/v2/'; $this->version = 'v2'; $this->serviceName = 'civicinfo'; From e23aa4d471ff4e906255fefe3a2442b992311e10 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:44 -0700 Subject: [PATCH 0795/1274] Updated Reports.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Reports.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index a459861d2..76941827a 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -52,6 +52,7 @@ class Google_Service_Reports extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/reports/v1/'; $this->version = 'reports_v1'; $this->serviceName = 'admin'; From 2ed531c48bbf388710ea77ffdc5406cb8ba5042a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:44 -0700 Subject: [PATCH 0796/1274] Updated Spectrum.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Spectrum.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Spectrum.php b/src/Google/Service/Spectrum.php index 24fcd2460..e71de15f5 100644 --- a/src/Google/Service/Spectrum.php +++ b/src/Google/Service/Spectrum.php @@ -43,6 +43,7 @@ class Google_Service_Spectrum extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'spectrum/v1explorer/paws/'; $this->version = 'v1explorer'; $this->serviceName = 'spectrum'; From 2d3ffaf1e7f4deed7d0311e3144fbc69c655209a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:45 -0700 Subject: [PATCH 0797/1274] Updated Taskqueue.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Taskqueue.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index 84fb3ca41..1fee8b35a 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -49,6 +49,7 @@ class Google_Service_Taskqueue extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'taskqueue/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'taskqueue'; From bd35750da11cc78cb37d5aba98655f8371c69799 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:46 -0700 Subject: [PATCH 0798/1274] Updated MapsEngine.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/MapsEngine.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php index 728b10d89..88a982c29 100644 --- a/src/Google/Service/MapsEngine.php +++ b/src/Google/Service/MapsEngine.php @@ -71,6 +71,7 @@ class Google_Service_MapsEngine extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'mapsengine/v1/'; $this->version = 'v1'; $this->serviceName = 'mapsengine'; From 335ca5f7ee1c2a57664ba3b7dc5dfabd1d1bde98 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:46 -0700 Subject: [PATCH 0799/1274] Added service Cloudresourcemanager.php --- src/Google/Service/Cloudresourcemanager.php | 388 ++++++++++++++++++++ 1 file changed, 388 insertions(+) create mode 100644 src/Google/Service/Cloudresourcemanager.php diff --git a/src/Google/Service/Cloudresourcemanager.php b/src/Google/Service/Cloudresourcemanager.php new file mode 100644 index 000000000..edb58e90e --- /dev/null +++ b/src/Google/Service/Cloudresourcemanager.php @@ -0,0 +1,388 @@ + + * The Google Cloud Resource Manager API provides methods for creating, reading, + * and updating of project metadata, including IAM policies, and will shortly + * provide the same for other high-level entities (e.g. customers and resource + * groups). Longer term, we expect the cloudresourcemanager API to encompass + * other Cloud resources as well.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudresourcemanager extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects; + + + /** + * Constructs the internal representation of the Cloudresourcemanager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1beta1'; + $this->serviceName = 'cloudresourcemanager'; + + $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/projects', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'undelete' => array( + 'path' => 'v1beta1/projects/{projectId}:undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...); + * $projects = $cloudresourcemanagerService->projects; + * + */ +class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource +{ + + /** + * Creates a project resource. Initially, the project resource is owned by its + * creator exclusively. The creator can later grant permission to others to read + * or update the project. Several APIs are activated automatically for the + * project, including Google Cloud Storage. (projects.create) + * + * @param Google_Project $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project"); + } + + /** + * Marks the project identified by the specified `project_id` (for example, `my- + * project-123`) for deletion. This method will only affect the project if it + * has a lifecycle state of + * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when + * this method is called. Otherwise this method does nothing (since all other + * states are phases of deletion). This method changes the project's lifecycle + * state from + * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to + * [DELETE_REQUESTED] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The + * deletion starts at an unspecified time, at which point the lifecycle state + * changes to [DELETE_IN_PROGRESS] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS]. + * Until the deletion completes, you can check the lifecycle state checked by + * retrieving the project with [GetProject] + * [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project + * remains visible to [ListProjects] + * [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you + * cannot update the project. After the deletion completes, the project is not + * retrievable by the [GetProject] + * [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and + * [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] + * methods. The caller must have modify permissions for this project. + * (projects.delete) + * + * @param string $projectId The project ID (for example, `foo-bar-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Empty + */ + public function delete($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty"); + } + + /** + * Retrieves the project identified by the specified `project_id` (for example, + * `my-project-123`). The caller must have read permissions for this project. + * (projects.get) + * + * @param string $projectId The project ID (for example, `my-project-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function get($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project"); + } + + /** + * Lists projects that are visible to the user and satisfy the specified filter. + * This method returns projects in an unspecified order. New projects do not + * necessarily appear at the end of the list. (projects.listProjects) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter An expression for filtering the results of the + * request. Filter rules are case insensitive. The fields eligible for filtering + * are: name id labels. where is a the name of a label Examples: name:* ==> The + * project has a name. name:Howl ==> The project’s name is `Howl` or 'howl'. + * name:HOWL ==> Equivalent to above. NAME:howl ==> Equivalent to above. + * labels.color:* ==> The project has the label "color". labels.color:red ==> + * The project’s label `color` has the value `red`. labels.color:red + * label.size:big ==> The project's label `color` has the value `red` and its + * label `size` has the value `big`. Optional. + * @opt_param string pageToken A pagination token returned from a previous call + * to ListProject that indicates from where listing should continue. Note: + * pagination is not yet supported; the server ignores this field. Optional. + * @opt_param int pageSize The maximum number of Projects to return in the + * response. The server can return fewer projects than requested. If + * unspecified, server picks an appropriate default. Note: pagination is not yet + * supported; the server ignores this field. Optional. + * @return Google_Service_Cloudresourcemanager_ListProjectsResponse + */ + public function listProjects($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse"); + } + + /** + * Restores the project identified by the specified `project_id` (for example, + * `my-project-123`). You can only use this method for a project that has a + * lifecycle state of [DELETE_REQUESTED] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. + * After deletion starts, as indicated by a lifecycle state of + * [DELETE_IN_PROGRESS] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS], + * the project cannot be restored. The caller must have modify permissions for + * this project. (projects.undelete) + * + * @param string $projectId The project ID (for example, `foo-bar-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Empty + */ + public function undelete($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty"); + } + + /** + * Updates the attributes of the project identified by the specified + * `project_id` (for example, `my-project-123`). The caller must have modify + * permissions for this project. (projects.update) + * + * @param string $projectId The project ID (for example, `my-project-123`). + * Required. + * @param Google_Project $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project"); + } +} + + + + +class Google_Service_Cloudresourcemanager_Empty extends Google_Model +{ +} + +class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection +{ + protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $projectsType = 'Google_Service_Cloudresourcemanager_Project'; + protected $projectsDataType = 'array'; + + + 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; + } +} + +class Google_Service_Cloudresourcemanager_Project extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $labels; + public $lifecycleState; + public $name; + public $projectId; + public $projectNumber; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLifecycleState($lifecycleState) + { + $this->lifecycleState = $lifecycleState; + } + public function getLifecycleState() + { + return $this->lifecycleState; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setProjectNumber($projectNumber) + { + $this->projectNumber = $projectNumber; + } + public function getProjectNumber() + { + return $this->projectNumber; + } +} + +class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model +{ +} From da350e19472f5711703a68a77c6df8d1f5ed4fd4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:47 -0700 Subject: [PATCH 0800/1274] Updated Directory.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Directory.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index f0fac34fe..9d8629454 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -115,6 +115,7 @@ class Google_Service_Directory extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/directory/v1/'; $this->version = 'directory_v1'; $this->serviceName = 'admin'; @@ -4469,6 +4470,7 @@ class Google_Service_Directory_User extends Google_Collection public $relations; public $suspended; public $suspensionReason; + public $thumbnailPhotoEtag; public $thumbnailPhotoUrl; public $websites; @@ -4729,6 +4731,14 @@ public function getSuspensionReason() { return $this->suspensionReason; } + public function setThumbnailPhotoEtag($thumbnailPhotoEtag) + { + $this->thumbnailPhotoEtag = $thumbnailPhotoEtag; + } + public function getThumbnailPhotoEtag() + { + return $this->thumbnailPhotoEtag; + } public function setThumbnailPhotoUrl($thumbnailPhotoUrl) { $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; From 83543baf8d881c1cf73cb4434ede006f98d9eaf1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:48 -0700 Subject: [PATCH 0801/1274] Updated Replicapoolupdater.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapoolupdater.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 9bc2337d9..44cf2df3c 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -53,6 +53,7 @@ class Google_Service_Replicapoolupdater extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'replicapoolupdater/v1beta1/projects/'; $this->version = 'v1beta1'; $this->serviceName = 'replicapoolupdater'; From 2513304c631677093c2ed5e497a71bc3aa50bad9 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:48 -0700 Subject: [PATCH 0802/1274] Updated Webfonts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webfonts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index 4bf7bb207..85b56b919 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -43,6 +43,7 @@ class Google_Service_Webfonts extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webfonts/v1/'; $this->version = 'v1'; $this->serviceName = 'webfonts'; From ae24bc9ef302751afb7186939cb1d78cba36a822 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:49 -0700 Subject: [PATCH 0803/1274] Updated Container.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Container.php | 645 ++++++++++++------------------- 1 file changed, 256 insertions(+), 389 deletions(-) diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index ac409b70a..5b48a0353 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Container (v1beta1). + * Service definition for Container (v1). * *

* The Google Container Engine API is used for building and managing container @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -35,11 +35,8 @@ class Google_Service_Container extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - public $projects_clusters; - public $projects_operations; public $projects_zones_clusters; public $projects_zones_operations; - public $projects_zones_tokens; /** @@ -50,50 +47,11 @@ class Google_Service_Container extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'container/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://container.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'container'; - $this->projects_clusters = new Google_Service_Container_ProjectsClusters_Resource( - $this, - $this->serviceName, - 'clusters', - array( - 'methods' => array( - 'list' => array( - 'path' => '{projectId}/clusters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_operations = new Google_Service_Container_ProjectsOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'list' => array( - 'path' => '{projectId}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource( $this, $this->serviceName, @@ -101,7 +59,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'create' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -109,14 +67,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'projectId' => array( @@ -124,7 +82,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -136,7 +94,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -144,7 +102,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -156,7 +114,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -164,52 +122,27 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ), - ) - ) - ); - $this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{projectId}/zones/{zoneId}/operations/{operationId}', - 'httpMethod' => 'GET', + ),'update' => array( + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', + 'httpMethod' => 'PUT', 'parameters' => array( 'projectId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zoneId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectId}/zones/{zoneId}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'clusterId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -219,32 +152,42 @@ public function __construct(Google_Client $client) ) ) ); - $this->projects_zones_tokens = new Google_Service_Container_ProjectsZonesTokens_Resource( + $this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource( $this, $this->serviceName, - 'tokens', + 'operations', array( 'methods' => array( 'get' => array( - 'path' => '{masterProjectId}/zones/{zoneId}/tokens/{projectNumber}/{clusterName}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', 'httpMethod' => 'GET', 'parameters' => array( - 'masterProjectId' => array( + 'projectId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'projectNumber' => array( + 'operationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'clusterName' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -270,60 +213,6 @@ class Google_Service_Container_Projects_Resource extends Google_Service_Resource { } -/** - * The "clusters" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $clusters = $containerService->clusters; - * - */ -class Google_Service_Container_ProjectsClusters_Resource extends Google_Service_Resource -{ - - /** - * Lists all clusters owned by a project across all zones. - * (clusters.listProjectsClusters) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListAggregatedClustersResponse - */ - public function listProjectsClusters($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListAggregatedClustersResponse"); - } -} -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $operations = $containerService->operations; - * - */ -class Google_Service_Container_ProjectsOperations_Resource extends Google_Service_Resource -{ - - /** - * Lists all operations in a project, across all zones. - * (operations.listProjectsOperations) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListAggregatedOperationsResponse - */ - public function listProjectsOperations($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListAggregatedOperationsResponse"); - } -} /** * The "zones" collection of methods. * Typical usage is: @@ -349,50 +238,47 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser /** * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances, plus a Kubernetes master instance. - * - * The cluster is created in the project's default network. - * - * A firewall is added that allows traffic into port 443 on the master, which - * enables HTTPS. A firewall and a route is added for each node to allow the - * containers on that node to communicate with all other instances in the - * cluster. + * Compute Engine instances, plus a Kubernetes master endpoint. By default, the + * cluster is created in the project's [default + * network]('/compute/docs/networking#networks_1'). One firewall is added for + * the cluster. After cluster creation, the cluster creates routes for each node + * to allow the containers on that node to communicate with all other instances + * in the cluster. Finally, an entry is added to the project's global metadata + * indicating which CIDR range is being used by the cluster. (clusters.create) * - * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the - * cluster's 10.xx.0.0/16 CIDR has been assigned. (clusters.create) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param Google_CreateClusterRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function create($projectId, $zoneId, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) + public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'postBody' => $postBody); + $params = array('projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Container_Operation"); } /** - * Deletes the cluster, including the Kubernetes master and all worker nodes. - * - * Firewalls and routes that were configured at cluster creation are also + * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. + * Firewalls and routes that were configured during cluster creation are also * deleted. (clusters.delete) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to delete. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function delete($projectId, $zoneId, $clusterId, $optParams = array()) + public function delete($projectId, $zone, $clusterId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Container_Operation"); } @@ -400,38 +286,61 @@ public function delete($projectId, $zoneId, $clusterId, $optParams = array()) /** * Gets a specific cluster. (clusters.get) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console A [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Container_Cluster */ - public function get($projectId, $zoneId, $clusterId, $optParams = array()) + public function get($projectId, $zone, $clusterId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Cluster"); } /** - * Lists all clusters owned by a project in the specified zone. - * (clusters.listProjectsZonesClusters) + * Lists all clusters owned by a project in either the specified zone or all + * zones. (clusters.listProjectsZonesClusters) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" + * for all zones. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListClustersResponse */ - public function listProjectsZonesClusters($projectId, $zoneId, $optParams = array()) + public function listProjectsZonesClusters($projectId, $zone, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array('projectId' => $projectId, 'zone' => $zone); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); } + + /** + * Update settings of a specific cluster. (clusters.update) + * + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + * @param string $clusterId The name of the cluster to upgrade. + * @param Google_UpdateClusterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Operation + */ + public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Container_Operation"); + } } /** * The "operations" collection of methods. @@ -447,95 +356,69 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S /** * Gets the specified operation. (operations.get) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * operation resides. This is always the same zone as the cluster with which the - * operation is associated. - * @param string $operationId The server-assigned name of the operation. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + * @param string $operationId The server-assigned `name` of the operation. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function get($projectId, $zoneId, $operationId, $optParams = array()) + public function get($projectId, $zone, $operationId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'operationId' => $operationId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Operation"); } /** - * Lists all operations in a project in a specific zone. + * Lists all operations in a project in a specific zone or all zones. * (operations.listProjectsZonesOperations) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone to return - * operations for. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or "-" for + * all zones. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListOperationsResponse */ - public function listProjectsZonesOperations($projectId, $zoneId, $optParams = array()) + public function listProjectsZonesOperations($projectId, $zone, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array('projectId' => $projectId, 'zone' => $zone); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse"); } } -/** - * The "tokens" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $tokens = $containerService->tokens; - * - */ -class Google_Service_Container_ProjectsZonesTokens_Resource extends Google_Service_Resource -{ - - /** - * Gets a compute-rw scoped OAuth2 access token for . Authentication is - * performed to ensure that the caller is a member of and that the request is - * coming from the expected master VM for the specified cluster. See go/gke- - * cross-project-auth for more details. (tokens.get) - * - * @param string $masterProjectId The hosted master project from which this - * request is coming. - * @param string $zoneId The zone of the specified cluster. - * @param string $projectNumber The project number for which the access token is - * being requested. - * @param string $clusterName The name of the specified cluster. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Token - */ - public function get($masterProjectId, $zoneId, $projectNumber, $clusterName, $optParams = array()) - { - $params = array('masterProjectId' => $masterProjectId, 'zoneId' => $zoneId, 'projectNumber' => $projectNumber, 'clusterName' => $clusterName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Container_Token"); - } -} -class Google_Service_Container_Cluster extends Google_Model +class Google_Service_Container_Cluster extends Google_Collection { + protected $collection_key = 'instanceGroupUrls'; protected $internal_gapi_mappings = array( ); - public $clusterApiVersion; - public $containerIpv4Cidr; - public $creationTimestamp; + public $clusterIpv4Cidr; + public $createTime; + public $currentMasterVersion; + public $currentNodeVersion; public $description; - public $enableCloudLogging; public $endpoint; + public $initialClusterVersion; + public $initialNodeCount; + public $instanceGroupUrls; + public $loggingService; protected $masterAuthType = 'Google_Service_Container_MasterAuth'; protected $masterAuthDataType = ''; + public $monitoringService; public $name; public $network; protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; protected $nodeConfigDataType = ''; - public $nodeRoutingPrefixSize; - public $numNodes; + public $nodeIpv4CidrSize; public $selfLink; public $servicesIpv4Cidr; public $status; @@ -543,45 +426,45 @@ class Google_Service_Container_Cluster extends Google_Model public $zone; - public function setClusterApiVersion($clusterApiVersion) + public function setClusterIpv4Cidr($clusterIpv4Cidr) { - $this->clusterApiVersion = $clusterApiVersion; + $this->clusterIpv4Cidr = $clusterIpv4Cidr; } - public function getClusterApiVersion() + public function getClusterIpv4Cidr() { - return $this->clusterApiVersion; + return $this->clusterIpv4Cidr; } - public function setContainerIpv4Cidr($containerIpv4Cidr) + public function setCreateTime($createTime) { - $this->containerIpv4Cidr = $containerIpv4Cidr; + $this->createTime = $createTime; } - public function getContainerIpv4Cidr() + public function getCreateTime() { - return $this->containerIpv4Cidr; + return $this->createTime; } - public function setCreationTimestamp($creationTimestamp) + public function setCurrentMasterVersion($currentMasterVersion) { - $this->creationTimestamp = $creationTimestamp; + $this->currentMasterVersion = $currentMasterVersion; } - public function getCreationTimestamp() + public function getCurrentMasterVersion() { - return $this->creationTimestamp; + return $this->currentMasterVersion; } - public function setDescription($description) + public function setCurrentNodeVersion($currentNodeVersion) { - $this->description = $description; + $this->currentNodeVersion = $currentNodeVersion; } - public function getDescription() + public function getCurrentNodeVersion() { - return $this->description; + return $this->currentNodeVersion; } - public function setEnableCloudLogging($enableCloudLogging) + public function setDescription($description) { - $this->enableCloudLogging = $enableCloudLogging; + $this->description = $description; } - public function getEnableCloudLogging() + public function getDescription() { - return $this->enableCloudLogging; + return $this->description; } public function setEndpoint($endpoint) { @@ -591,6 +474,38 @@ public function getEndpoint() { return $this->endpoint; } + public function setInitialClusterVersion($initialClusterVersion) + { + $this->initialClusterVersion = $initialClusterVersion; + } + public function getInitialClusterVersion() + { + return $this->initialClusterVersion; + } + public function setInitialNodeCount($initialNodeCount) + { + $this->initialNodeCount = $initialNodeCount; + } + public function getInitialNodeCount() + { + return $this->initialNodeCount; + } + public function setInstanceGroupUrls($instanceGroupUrls) + { + $this->instanceGroupUrls = $instanceGroupUrls; + } + public function getInstanceGroupUrls() + { + return $this->instanceGroupUrls; + } + public function setLoggingService($loggingService) + { + $this->loggingService = $loggingService; + } + public function getLoggingService() + { + return $this->loggingService; + } public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth) { $this->masterAuth = $masterAuth; @@ -599,6 +514,14 @@ public function getMasterAuth() { return $this->masterAuth; } + public function setMonitoringService($monitoringService) + { + $this->monitoringService = $monitoringService; + } + public function getMonitoringService() + { + return $this->monitoringService; + } public function setName($name) { $this->name = $name; @@ -623,21 +546,13 @@ public function getNodeConfig() { return $this->nodeConfig; } - public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize) + public function setNodeIpv4CidrSize($nodeIpv4CidrSize) { - $this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize; + $this->nodeIpv4CidrSize = $nodeIpv4CidrSize; } - public function getNodeRoutingPrefixSize() + public function getNodeIpv4CidrSize() { - return $this->nodeRoutingPrefixSize; - } - public function setNumNodes($numNodes) - { - $this->numNodes = $numNodes; - } - public function getNumNodes() - { - return $this->numNodes; + return $this->nodeIpv4CidrSize; } public function setSelfLink($selfLink) { @@ -681,59 +596,38 @@ public function getZone() } } -class Google_Service_Container_CreateClusterRequest extends Google_Model +class Google_Service_Container_ClusterUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $clusterType = 'Google_Service_Container_Cluster'; - protected $clusterDataType = ''; + public $desiredNodeVersion; - public function setCluster(Google_Service_Container_Cluster $cluster) + public function setDesiredNodeVersion($desiredNodeVersion) { - $this->cluster = $cluster; + $this->desiredNodeVersion = $desiredNodeVersion; } - public function getCluster() + public function getDesiredNodeVersion() { - return $this->cluster; + return $this->desiredNodeVersion; } } -class Google_Service_Container_ListAggregatedClustersResponse extends Google_Collection -{ - protected $collection_key = 'clusters'; - protected $internal_gapi_mappings = array( - ); - protected $clustersType = 'Google_Service_Container_Cluster'; - protected $clustersDataType = 'array'; - - - public function setClusters($clusters) - { - $this->clusters = $clusters; - } - public function getClusters() - { - return $this->clusters; - } -} - -class Google_Service_Container_ListAggregatedOperationsResponse extends Google_Collection +class Google_Service_Container_CreateClusterRequest extends Google_Model { - protected $collection_key = 'operations'; protected $internal_gapi_mappings = array( ); - protected $operationsType = 'Google_Service_Container_Operation'; - protected $operationsDataType = 'array'; + protected $clusterType = 'Google_Service_Container_Cluster'; + protected $clusterDataType = ''; - public function setOperations($operations) + public function setCluster(Google_Service_Container_Cluster $cluster) { - $this->operations = $operations; + $this->cluster = $cluster; } - public function getOperations() + public function getCluster() { - return $this->operations; + return $this->cluster; } } @@ -779,18 +673,36 @@ class Google_Service_Container_MasterAuth extends Google_Model { protected $internal_gapi_mappings = array( ); - public $bearerToken; + public $clientCertificate; + public $clientKey; + public $clusterCaCertificate; public $password; - public $user; + public $username; - public function setBearerToken($bearerToken) + public function setClientCertificate($clientCertificate) + { + $this->clientCertificate = $clientCertificate; + } + public function getClientCertificate() + { + return $this->clientCertificate; + } + public function setClientKey($clientKey) + { + $this->clientKey = $clientKey; + } + public function getClientKey() + { + return $this->clientKey; + } + public function setClusterCaCertificate($clusterCaCertificate) { - $this->bearerToken = $bearerToken; + $this->clusterCaCertificate = $clusterCaCertificate; } - public function getBearerToken() + public function getClusterCaCertificate() { - return $this->bearerToken; + return $this->clusterCaCertificate; } public function setPassword($password) { @@ -800,50 +712,49 @@ public function getPassword() { return $this->password; } - public function setUser($user) + public function setUsername($username) { - $this->user = $user; + $this->username = $username; } - public function getUser() + public function getUsername() { - return $this->user; + return $this->username; } } class Google_Service_Container_NodeConfig extends Google_Collection { - protected $collection_key = 'serviceAccounts'; + protected $collection_key = 'oauthScopes'; protected $internal_gapi_mappings = array( ); + public $diskSizeGb; public $machineType; - protected $serviceAccountsType = 'Google_Service_Container_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $sourceImage; + public $oauthScopes; - public function setMachineType($machineType) + public function setDiskSizeGb($diskSizeGb) { - $this->machineType = $machineType; + $this->diskSizeGb = $diskSizeGb; } - public function getMachineType() + public function getDiskSizeGb() { - return $this->machineType; + return $this->diskSizeGb; } - public function setServiceAccounts($serviceAccounts) + public function setMachineType($machineType) { - $this->serviceAccounts = $serviceAccounts; + $this->machineType = $machineType; } - public function getServiceAccounts() + public function getMachineType() { - return $this->serviceAccounts; + return $this->machineType; } - public function setSourceImage($sourceImage) + public function setOauthScopes($oauthScopes) { - $this->sourceImage = $sourceImage; + $this->oauthScopes = $oauthScopes; } - public function getSourceImage() + public function getOauthScopes() { - return $this->sourceImage; + return $this->oauthScopes; } } @@ -851,24 +762,15 @@ class Google_Service_Container_Operation extends Google_Model { protected $internal_gapi_mappings = array( ); - public $errorMessage; public $name; public $operationType; public $selfLink; public $status; - public $target; + public $statusMessage; public $targetLink; public $zone; - public function setErrorMessage($errorMessage) - { - $this->errorMessage = $errorMessage; - } - public function getErrorMessage() - { - return $this->errorMessage; - } public function setName($name) { $this->name = $name; @@ -901,13 +803,13 @@ public function getStatus() { return $this->status; } - public function setTarget($target) + public function setStatusMessage($statusMessage) { - $this->target = $target; + $this->statusMessage = $statusMessage; } - public function getTarget() + public function getStatusMessage() { - return $this->target; + return $this->statusMessage; } public function setTargetLink($targetLink) { @@ -927,55 +829,20 @@ public function getZone() } } -class Google_Service_Container_ServiceAccount extends Google_Collection +class Google_Service_Container_UpdateClusterRequest extends Google_Model { - protected $collection_key = 'scopes'; protected $internal_gapi_mappings = array( ); - public $email; - public $scopes; + protected $updateType = 'Google_Service_Container_ClusterUpdate'; + protected $updateDataType = ''; - 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_Container_Token extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accessToken; - public $expiryTimeSeconds; - - - public function setAccessToken($accessToken) - { - $this->accessToken = $accessToken; - } - public function getAccessToken() - { - return $this->accessToken; - } - public function setExpiryTimeSeconds($expiryTimeSeconds) + public function setUpdate(Google_Service_Container_ClusterUpdate $update) { - $this->expiryTimeSeconds = $expiryTimeSeconds; + $this->update = $update; } - public function getExpiryTimeSeconds() + public function getUpdate() { - return $this->expiryTimeSeconds; + return $this->update; } } From e43459288bfb34960cfca888e79288dfa3c39b99 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:49 -0700 Subject: [PATCH 0804/1274] Added service DeploymentManager.php --- src/Google/Service/DeploymentManager.php | 1600 ++++++++++++++++++++++ 1 file changed, 1600 insertions(+) create mode 100644 src/Google/Service/DeploymentManager.php diff --git a/src/Google/Service/DeploymentManager.php b/src/Google/Service/DeploymentManager.php new file mode 100644 index 000000000..30d74421b --- /dev/null +++ b/src/Google/Service/DeploymentManager.php @@ -0,0 +1,1600 @@ + + * The Deployment Manager API allows users to declaratively configure, deploy + * and run complex solutions on the Google Cloud Platform.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_DeploymentManager extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + + public $deployments; + public $manifests; + public $operations; + public $resources; + public $types; + + + /** + * Constructs the internal representation of the DeploymentManager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'deploymentmanager/v2beta2/projects/'; + $this->version = 'v2beta2'; + $this->serviceName = 'deploymentmanager'; + + $this->deployments = new Google_Service_DeploymentManager_Deployments_Resource( + $this, + $this->serviceName, + 'deployments', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deletePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createPolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deletePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createPolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->manifests = new Google_Service_DeploymentManager_Manifests_Resource( + $this, + $this->serviceName, + 'manifests', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'manifest' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_DeploymentManager_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->resources = new Google_Service_DeploymentManager_Resources_Resource( + $this, + $this->serviceName, + 'resources', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/resources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->types = new Google_Service_DeploymentManager_Types_Resource( + $this, + $this->serviceName, + 'types', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/global/types', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "deployments" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $deployments = $deploymentmanagerService->deployments; + * + */ +class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a deployment and all of the resources in the deployment. + * (deployments.delete) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function delete($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Gets information about a specific deployment. (deployments.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Deployment + */ + public function get($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment"); + } + + /** + * Creates a deployment and all of the resources described by the deployment + * manifest. (deployments.insert) + * + * @param string $project The project ID for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Lists all deployments for a given project. (deployments.listDeployments) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_DeploymentsListResponse + */ + public function listDeployments($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse"); + } + + /** + * Updates a deployment and all of the resources described by the deployment + * manifest. This method supports patch semantics. (deployments.patch) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string deletePolicy Sets the policy to use for deleting resources. + * @opt_param string updatePolicy Sets the policy to use for updating resources. + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @return Google_Service_DeploymentManager_Operation + */ + public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Updates a deployment and all of the resources described by the deployment + * manifest. (deployments.update) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string deletePolicy Sets the policy to use for deleting resources. + * @opt_param string updatePolicy Sets the policy to use for updating resources. + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @return Google_Service_DeploymentManager_Operation + */ + public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation"); + } +} + +/** + * The "manifests" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $manifests = $deploymentmanagerService->manifests; + * + */ +class Google_Service_DeploymentManager_Manifests_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific manifest. (manifests.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $manifest The name of the manifest for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Manifest + */ + public function get($project, $deployment, $manifest, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest"); + } + + /** + * Lists all manifests for a given deployment. (manifests.listManifests) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_ManifestsListResponse + */ + public function listManifests($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $operations = $deploymentmanagerService->operations; + * + */ +class Google_Service_DeploymentManager_Operations_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific operation. (operations.get) + * + * @param string $project The project ID for this request. + * @param string $operation The name of the operation for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Lists all operations for a project. (operations.listOperations) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_OperationsListResponse + */ + public function listOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse"); + } +} + +/** + * The "resources" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $resources = $deploymentmanagerService->resources; + * + */ +class Google_Service_DeploymentManager_Resources_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a single resource. (resources.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $resource The name of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_DeploymentmanagerResource + */ + public function get($project, $deployment, $resource, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource"); + } + + /** + * Lists all resources in a given deployment. (resources.listResources) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_ResourcesListResponse + */ + public function listResources($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse"); + } +} + +/** + * The "types" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $types = $deploymentmanagerService->types; + * + */ +class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Resource +{ + + /** + * Lists all resource types for Deployment Manager. (types.listTypes) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_TypesListResponse + */ + public function listTypes($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse"); + } +} + + + + +class Google_Service_DeploymentManager_Deployment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $fingerprint; + public $id; + public $insertTime; + public $intent; + public $manifest; + public $name; + public $state; + protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration'; + protected $targetDataType = ''; + protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; + protected $updateDataType = ''; + public $updateTime; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function 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 setIntent($intent) + { + $this->intent = $intent; + } + public function getIntent() + { + return $this->intent; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update) + { + $this->update = $update; + } + public function getUpdate() + { + return $this->update; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $errors; + public $manifest; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } +} + +class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $finalProperties; + public $id; + public $insertTime; + public $manifest; + public $name; + public $properties; + public $type; + protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate'; + protected $updateDataType = ''; + public $updateTime; + public $url; + + + public function setFinalProperties($finalProperties) + { + $this->finalProperties = $finalProperties; + } + public function getFinalProperties() + { + return $this->finalProperties; + } + 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 setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update) + { + $this->update = $update; + } + public function getUpdate() + { + return $this->update; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection +{ + protected $collection_key = 'deployments'; + protected $internal_gapi_mappings = array( + ); + protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment'; + protected $deploymentsDataType = 'array'; + public $nextPageToken; + + + public function setDeployments($deployments) + { + $this->deployments = $deployments; + } + public function getDeployments() + { + return $this->deployments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_DeploymentManager_ImportFile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $content; + public $name; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_DeploymentManager_Manifest extends Google_Collection +{ + protected $collection_key = 'imports'; + protected $internal_gapi_mappings = array( + ); + public $config; + public $evaluatedConfig; + public $id; + protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; + protected $importsDataType = 'array'; + public $insertTime; + public $layout; + public $name; + public $selfLink; + + + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setEvaluatedConfig($evaluatedConfig) + { + $this->evaluatedConfig = $evaluatedConfig; + } + public function getEvaluatedConfig() + { + return $this->evaluatedConfig; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setImports($imports) + { + $this->imports = $imports; + } + public function getImports() + { + return $this->imports; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setLayout($layout) + { + $this->layout = $layout; + } + public function getLayout() + { + return $this->layout; + } + 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_DeploymentManager_ManifestsListResponse extends Google_Collection +{ + protected $collection_key = 'manifests'; + protected $internal_gapi_mappings = array( + ); + protected $manifestsType = 'Google_Service_DeploymentManager_Manifest'; + protected $manifestsDataType = 'array'; + public $nextPageToken; + + + public function setManifests($manifests) + { + $this->manifests = $manifests; + } + public function getManifests() + { + return $this->manifests; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_DeploymentManager_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_DeploymentManager_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_DeploymentManager_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_DeploymentManager_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_OperationsListResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_DeploymentManager_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $errors; + public $finalProperties; + public $intent; + public $manifest; + public $properties; + public $state; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setFinalProperties($finalProperties) + { + $this->finalProperties = $finalProperties; + } + public function getFinalProperties() + { + return $this->finalProperties; + } + public function setIntent($intent) + { + $this->intent = $intent; + } + public function getIntent() + { + return $this->intent; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_DeploymentManager_ResourcesListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource'; + protected $resourcesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection +{ + protected $collection_key = 'imports'; + protected $internal_gapi_mappings = array( + ); + public $config; + protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; + protected $importsDataType = 'array'; + + + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setImports($imports) + { + $this->imports = $imports; + } + public function getImports() + { + return $this->imports; + } +} + +class Google_Service_DeploymentManager_Type extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection +{ + protected $collection_key = 'types'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $typesType = 'Google_Service_DeploymentManager_Type'; + protected $typesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTypes($types) + { + $this->types = $types; + } + public function getTypes() + { + return $this->types; + } +} From 6beb497f7b6ccb7cae2f1a43722ee34c39a75555 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:50 -0700 Subject: [PATCH 0805/1274] Added service CloudUserAccounts.php --- src/Google/Service/CloudUserAccounts.php | 1805 ++++++++++++++++++++++ 1 file changed, 1805 insertions(+) create mode 100644 src/Google/Service/CloudUserAccounts.php diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php new file mode 100644 index 000000000..4bc63e9c3 --- /dev/null +++ b/src/Google/Service/CloudUserAccounts.php @@ -0,0 +1,1805 @@ + + * API for the Google Cloud User Accounts service.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_CloudUserAccounts extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS = + "https://www.googleapis.com/auth/cloud.useraccounts"; + /** View your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS_READONLY = + "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; + /** Manage your Google Compute Accounts. */ + const COMPUTEACCOUNTS = + "https://www.googleapis.com/auth/computeaccounts"; + /** View your Google Compute Accounts. */ + const COMPUTEACCOUNTS_READONLY = + "https://www.googleapis.com/auth/computeaccounts.readonly"; + + public $globalAccountsOperations; + public $groups; + public $linux; + public $users; + + + /** + * Constructs the internal representation of the CloudUserAccounts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'clouduseraccounts/vm_alpha/projects/'; + $this->version = 'vm_alpha'; + $this->serviceName = 'clouduseraccounts'; + + $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource( + $this, + $this->serviceName, + 'globalAccountsOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_CloudUserAccounts_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'addMember' => array( + 'path' => '{project}/global/groups/{groupName}/addMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removeMember' => array( + 'path' => '{project}/global/groups/{groupName}/removeMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->linux = new Google_Service_CloudUserAccounts_Linux_Resource( + $this, + $this->serviceName, + 'linux', + array( + 'methods' => array( + 'getAuthorizedKeysView' => array( + 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getLinuxAccountViews' => array( + 'path' => '{project}/zones/{zone}/linuxAccountViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'user' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_CloudUserAccounts_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'addPublicKey' => array( + 'path' => '{project}/global/users/{user}/addPublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removePublicKey' => array( + 'path' => '{project}/global/users/{user}/removePublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "globalAccountsOperations" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations; + * + */ +class Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified operation resource. (globalAccountsOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalAccountsOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalAccountsOperations.listGlobalAccountsOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_OperationList + */ + public function listGlobalAccountsOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $groups = $clouduseraccountsService->groups; + * + */ +class Google_Service_CloudUserAccounts_Groups_Resource extends Google_Service_Resource +{ + + /** + * Adds users to the specified group. (groups.addMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsAddMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Deletes the specified Group resource. (groups.delete) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function delete($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Returns the specified Group resource. (groups.get) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Group + */ + public function get($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group"); + } + + /** + * Creates a Group resource in the specified project using the data included in + * the request. (groups.insert) + * + * @param string $project Project ID for this request. + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves the list of groups contained within the specified project. + * (groups.listGroups) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_GroupList + */ + public function listGroups($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList"); + } + + /** + * Removes users from the specified group. (groups.removeMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsRemoveMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation"); + } +} + +/** + * The "linux" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $linux = $clouduseraccountsService->linux; + * + */ +class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of authorized public keys for a specific user account. + * (linux.getAuthorizedKeysView) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $user The user account for which you want to get a list of + * authorized public keys. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the view. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse + */ + public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse"); + } + + /** + * Retrieves a list of user accounts for an instance within a specific project. + * (linux.getLinuxAccountViews) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the views. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string user If provided, the user requesting the views. If left + * blank, the system is requesting the views, instead of a particular user. + * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse + */ + public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $users = $clouduseraccountsService->users; + * + */ +class Google_Service_CloudUserAccounts_Users_Resource extends Google_Service_Resource +{ + + /** + * Adds a public key to the specified User resource with the data included in + * the request. (users.addPublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param Google_PublicKey $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Deletes the specified User resource. (users.delete) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function delete($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Returns the specified User resource. (users.get) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_User + */ + public function get($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User"); + } + + /** + * Creates a User resource in the specified project using the data included in + * the request. (users.insert) + * + * @param string $project Project ID for this request. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves a list of users contained within the specified project. + * (users.listUsers) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_UserList + */ + public function listUsers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList"); + } + + /** + * Removes the specified public key from the user. (users.removePublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param string $fingerprint The fingerprint of the public key to delete. + * Public keys are identified by their fingerprint, which is defined by RFC4716 + * to be the MD5 digest of the public key. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function removePublicKey($project, $user, $fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); + $params = array_merge($params, $optParams); + return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); + } +} + + + + +class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $keys; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_CloudUserAccounts_Group extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $members; + public $name; + public $selfLink; + + + 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 setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + 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_CloudUserAccounts_GroupList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_Group'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection +{ + protected $collection_key = 'userViews'; + protected $internal_gapi_mappings = array( + ); + protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView'; + protected $groupViewsDataType = 'array'; + public $kind; + protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView'; + protected $userViewsDataType = 'array'; + + + public function setGroupViews($groupViews) + { + $this->groupViews = $groupViews; + } + public function getGroupViews() + { + return $this->groupViews; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserViews($userViews) + { + $this->userViews = $userViews; + } + public function getUserViews() + { + return $this->userViews; + } +} + +class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $gid; + public $groupName; + public $members; + + + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setGroupName($groupName) + { + $this->groupName = $groupName; + } + public function getGroupName() + { + return $this->groupName; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } +} + +class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gecos; + public $gid; + public $homeDirectory; + public $shell; + public $uid; + public $username; + + + public function setGecos($gecos) + { + $this->gecos = $gecos; + } + public function getGecos() + { + return $this->gecos; + } + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setHomeDirectory($homeDirectory) + { + $this->homeDirectory = $homeDirectory; + } + public function getHomeDirectory() + { + return $this->homeDirectory; + } + public function setShell($shell) + { + $this->shell = $shell; + } + public function getShell() + { + return $this->shell; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_CloudUserAccounts_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_CloudUserAccounts_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_CloudUserAccounts_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_CloudUserAccounts_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CloudUserAccounts_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CloudUserAccounts_PublicKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $expirationTimestamp; + public $fingerprint; + public $key; + + + 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 setExpirationTimestamp($expirationTimestamp) + { + $this->expirationTimestamp = $expirationTimestamp; + } + public function getExpirationTimestamp() + { + return $this->expirationTimestamp; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } +} + +class Google_Service_CloudUserAccounts_User extends Google_Collection +{ + protected $collection_key = 'publicKeys'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $groups; + public $id; + public $kind; + public $name; + public $owner; + protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey'; + protected $publicKeysDataType = 'array'; + public $selfLink; + + + 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 setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } + 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 setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + public function getPublicKeys() + { + return $this->publicKeys; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_UserList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} From 1a397a5222477a3d4033a2e5709a651ebf4fec3b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:51 -0700 Subject: [PATCH 0806/1274] Updated Coordinate.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Coordinate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index 44b572dd5..80b5ebbd2 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -53,6 +53,7 @@ class Google_Service_Coordinate extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'coordinate/v1/'; $this->version = 'v1'; $this->serviceName = 'coordinate'; From cf66aa0fd4ded7221511d09b6a0127f1c20760dd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:51 -0700 Subject: [PATCH 0807/1274] Updated ShoppingContent.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/ShoppingContent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 142fd4e15..44840eef8 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -54,6 +54,7 @@ class Google_Service_ShoppingContent extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'content/v2/'; $this->version = 'v2'; $this->serviceName = 'content'; From e1d5e39df07e3bb428e4360e05f8e7cb477e3f0d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:52 -0700 Subject: [PATCH 0808/1274] Updated Cloudlatencytest.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Cloudlatencytest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Cloudlatencytest.php b/src/Google/Service/Cloudlatencytest.php index aef31fe55..3af58bb8b 100644 --- a/src/Google/Service/Cloudlatencytest.php +++ b/src/Google/Service/Cloudlatencytest.php @@ -45,6 +45,7 @@ class Google_Service_Cloudlatencytest extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://cloudlatencytest-pa.googleapis.com/'; $this->servicePath = 'v2/statscollection/'; $this->version = 'v2'; $this->serviceName = 'cloudlatencytest'; From 5b407d0c238b7b185f6f9112329914ad157f4566 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:52 -0700 Subject: [PATCH 0809/1274] Added service Playmoviespartner.php --- src/Google/Service/Playmoviespartner.php | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/Google/Service/Playmoviespartner.php diff --git a/src/Google/Service/Playmoviespartner.php b/src/Google/Service/Playmoviespartner.php new file mode 100644 index 000000000..42426c79c --- /dev/null +++ b/src/Google/Service/Playmoviespartner.php @@ -0,0 +1,57 @@ + + * An API providing Google Play Movies Partners a way to get the delivery status + * of their titles.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Playmoviespartner extends Google_Service +{ + + + + + + /** + * Constructs the internal representation of the Playmoviespartner service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://playmoviespartner.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'playmoviespartner'; + + } +} + + + + From d9adb08535e3dfb8d9fd10eda939e3b1bf9f8449 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:53 -0700 Subject: [PATCH 0810/1274] Updated DoubleClickBidManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DoubleClickBidManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index fdb3f1776..4191ef6e1 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -46,6 +46,7 @@ class Google_Service_DoubleClickBidManager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclickbidmanager/v1/'; $this->version = 'v1'; $this->serviceName = 'doubleclickbidmanager'; From 6d6bc7333470d6a5298da4134b62de8a460210d3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:54 -0700 Subject: [PATCH 0811/1274] Updated Appsactivity.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Appsactivity.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 45b7fd219..9a7de2ac6 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -36,6 +36,9 @@ class Google_Service_Appsactivity extends Google_Service /** View and manage the files in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; + /** View and manage metadata of files in your Google Drive. */ + const DRIVE_METADATA = + "https://www.googleapis.com/auth/drive.metadata"; /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; @@ -54,6 +57,7 @@ class Google_Service_Appsactivity extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appsactivity/v1/'; $this->version = 'v1'; $this->serviceName = 'appsactivity'; From 130a9ab5ec4e8e1bf0ce97e7f525ba82479f5b84 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:54 -0700 Subject: [PATCH 0812/1274] Updated AppState.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AppState.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index 7f3da5d65..33edce5de 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -45,6 +45,7 @@ class Google_Service_AppState extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appstate/v1/'; $this->version = 'v1'; $this->serviceName = 'appstate'; From 78e28d4f7831e5cab79ad26faf8c1f293a3e6d77 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:55 -0700 Subject: [PATCH 0813/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 7c743ee70..9168b4ad5 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -53,6 +53,7 @@ class Google_Service_Replicapool extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'replicapool/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'replicapool'; @@ -617,6 +618,8 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); + protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy'; + protected $autoHealingPoliciesDataType = 'array'; public $baseInstanceName; public $creationTimestamp; public $currentSize; @@ -632,6 +635,14 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection public $targetSize; + public function setAutoHealingPolicies($autoHealingPolicies) + { + $this->autoHealingPolicies = $autoHealingPolicies; + } + public function getAutoHealingPolicies() + { + return $this->autoHealingPolicies; + } public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; @@ -1271,3 +1282,20 @@ public function getValue() return $this->value; } } + +class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $healthCheck; + + + public function setHealthCheck($healthCheck) + { + $this->healthCheck = $healthCheck; + } + public function getHealthCheck() + { + return $this->healthCheck; + } +} From e0b9b620330e0a5c8da4c712bae481512bb56c19 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:55 -0700 Subject: [PATCH 0814/1274] Updated Resourceviews.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Resourceviews.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 10eb4b115..4420a7525 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -59,6 +59,7 @@ class Google_Service_Resourceviews extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'resourceviews/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'resourceviews'; From fded239f010bf0db5e75d0efa71ebc963460f05a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:56 -0700 Subject: [PATCH 0815/1274] Updated AdExchangeSeller.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeSeller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index 2be68865c..d48dbaf6c 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -58,6 +58,7 @@ class Google_Service_AdExchangeSeller extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adexchangeseller/v2.0/'; $this->version = 'v2.0'; $this->serviceName = 'adexchangeseller'; From b59c1a2d10d27f555fa912200e8217f07c15ffe8 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:57 -0700 Subject: [PATCH 0816/1274] Updated Games.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Games.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index 1d467ca6e..a41082e4b 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -65,6 +65,7 @@ class Google_Service_Games extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1/'; $this->version = 'v1'; $this->serviceName = 'games'; From f2f05142617d21c48cc97eb63f24df0cfb99d78a Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:58 -0700 Subject: [PATCH 0817/1274] Updated PlusDomains.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/PlusDomains.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index ad5955044..90b199403 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -77,6 +77,7 @@ class Google_Service_PlusDomains extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plusDomains/v1/'; $this->version = 'v1'; $this->serviceName = 'plusDomains'; From e89727774873dcf90812e64aea6f928a21013170 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:58 -0700 Subject: [PATCH 0818/1274] Updated Oauth2.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Oauth2.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index 6a88dada8..f69c353f7 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -55,6 +55,7 @@ class Google_Service_Oauth2 extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = ''; $this->version = 'v2'; $this->serviceName = 'oauth2'; From 8a1959276223944e7c92d70f9a345b17ebc3654d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:44:59 -0700 Subject: [PATCH 0819/1274] Updated Customsearch.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Customsearch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index 362330a93..0f181af0b 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -43,6 +43,7 @@ class Google_Service_Customsearch extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'customsearch/'; $this->version = 'v1'; $this->serviceName = 'customsearch'; From 6baf5f9fdda36d21125a04c51cef2e1bd63852be Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:00 -0700 Subject: [PATCH 0820/1274] Updated Storage.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Storage.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index 0140ee797..ca6ccb263 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -59,6 +59,7 @@ class Google_Service_Storage extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'storage/v1/'; $this->version = 'v1'; $this->serviceName = 'storage'; @@ -1612,8 +1613,8 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S } /** - * Copies an object to a specified location. Optionally overrides metadata. - * (objects.copy) + * Copies a source object to a destination object. Optionally overrides + * metadata. (objects.copy) * * @param string $sourceBucket Name of the bucket in which to find the source * object. @@ -1836,8 +1837,8 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * @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 rewriteToken Include this field (from the previous Rewrite - * response) on each Rewrite request after the first one, until the Rewrite + * @opt_param string rewriteToken Include this field (from the previous rewrite + * response) on each rewrite request after the first one, until the rewrite * response 'done' flag is true. Calls that provide a rewriteToken can omit all * other request fields, but if included those fields must match the values * provided in the first rewrite request. @@ -1854,12 +1855,12 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * @opt_param string ifSourceGenerationMatch Makes the operation conditional on * whether the source object's generation matches the given value. * @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that - * will be rewritten per Rewrite request. Most callers shouldn't need to specify + * will be rewritten per rewrite request. Most callers shouldn't need to specify * this parameter - it is primarily in place to support testing. If specified * the value must be an integral multiple of 1 MiB (1048576). Also, this only * applies to requests where the source and destination span locations and/or - * storage classes. Finally, this value must not change across Rewrite calls - * else you'll get an error that the rewrite token is invalid. + * storage classes. Finally, this value must not change across rewrite calls + * else you'll get an error that the rewriteToken is invalid. * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional * on whether the source object's current metageneration matches the given * value. From 872b8bd00533ce722e80a818f946f4a8dc2b23c4 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:00 -0700 Subject: [PATCH 0821/1274] Updated Genomics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Genomics.php | 5471 +------------------------------ 1 file changed, 9 insertions(+), 5462 deletions(-) diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 255162623..3165001f1 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -16,48 +16,24 @@ */ /** - * Service definition for Genomics (v1beta2). + * Service definition for Genomics (v1). * *

- * Provides access to Genomics data.

+ * An API to store, process, explore, and share DNA sequence reads, reference- + * based alignments, and variant calls.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. */ class Google_Service_Genomics extends Google_Service { - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = - "https://www.googleapis.com/auth/bigquery"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage Genomics data. */ - const GENOMICS = - "https://www.googleapis.com/auth/genomics"; - /** View Genomics data. */ - const GENOMICS_READONLY = - "https://www.googleapis.com/auth/genomics.readonly"; - public $annotationSets; - public $annotations; - public $callsets; - public $datasets; - public $experimental_jobs; - public $jobs; - public $readgroupsets; - public $readgroupsets_coveragebuckets; - public $reads; - public $references; - public $references_bases; - public $referencesets; - public $streamingReadstore; - public $variants; - public $variantsets; + + /** @@ -68,5443 +44,14 @@ class Google_Service_Genomics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'genomics/v1beta2/'; - $this->version = 'v1beta2'; + $this->rootUrl = 'https://genomics.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'genomics'; - $this->annotationSets = new Google_Service_Genomics_AnnotationSets_Resource( - $this, - $this->serviceName, - 'annotationSets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'annotationSets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'annotationSets/{annotationSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'annotationSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'annotationSets/{annotationSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'annotationSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'annotationSets/{annotationSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'annotationSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'annotationSets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'annotationSets/{annotationSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'annotationSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->annotations = new Google_Service_Genomics_Annotations_Resource( - $this, - $this->serviceName, - 'annotations', - array( - 'methods' => array( - 'batchCreate' => array( - 'path' => 'annotations:batchCreate', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'create' => array( - 'path' => 'annotations', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'annotations/{annotationId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'annotations/{annotationId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'annotations/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'annotations/{annotationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->callsets = new Google_Service_Genomics_Callsets_Resource( - $this, - $this->serviceName, - 'callsets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'callsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'callsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->datasets = new Google_Service_Genomics_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'datasets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'datasets/{datasetId}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->experimental_jobs = new Google_Service_Genomics_ExperimentalJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'experimental/jobs/create', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->jobs = new Google_Service_Genomics_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'jobs/{jobId}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'jobs/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->readgroupsets = new Google_Service_Genomics_Readgroupsets_Resource( - $this, - $this->serviceName, - 'readgroupsets', - array( - 'methods' => array( - 'align' => array( - 'path' => 'readgroupsets/align', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'call' => array( - 'path' => 'readgroupsets/call', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'readgroupsets/export', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'readgroupsets/import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'readgroupsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource( - $this, - $this->serviceName, - 'coveragebuckets', - array( - 'methods' => array( - 'list' => array( - 'path' => 'readgroupsets/{readGroupSetId}/coveragebuckets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'range.start' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.referenceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'targetBucketWidth' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->reads = new Google_Service_Genomics_Reads_Resource( - $this, - $this->serviceName, - 'reads', - array( - 'methods' => array( - 'search' => array( - 'path' => 'reads/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references = new Google_Service_Genomics_References_Resource( - $this, - $this->serviceName, - 'references', - array( - 'methods' => array( - 'get' => array( - 'path' => 'references/{referenceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'references/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references_bases = new Google_Service_Genomics_ReferencesBases_Resource( - $this, - $this->serviceName, - 'bases', - array( - 'methods' => array( - 'list' => array( - 'path' => 'references/{referenceId}/bases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->referencesets = new Google_Service_Genomics_Referencesets_Resource( - $this, - $this->serviceName, - 'referencesets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'referencesets/{referenceSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'referencesets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->streamingReadstore = new Google_Service_Genomics_StreamingReadstore_Resource( - $this, - $this->serviceName, - 'streamingReadstore', - array( - 'methods' => array( - 'streamreads' => array( - 'path' => 'streamingReadstore/streamreads', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->variants = new Google_Service_Genomics_Variants_Resource( - $this, - $this->serviceName, - 'variants', - array( - 'methods' => array( - 'create' => array( - 'path' => 'variants', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'variants/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->variantsets = new Google_Service_Genomics_Variantsets_Resource( - $this, - $this->serviceName, - 'variantsets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'variantsets/{variantSetId}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'importVariants' => array( - 'path' => 'variantsets/{variantSetId}/importVariants', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'mergeVariants' => array( - 'path' => 'variantsets/{variantSetId}/mergeVariants', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'variantsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "annotationSets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $annotationSets = $genomicsService->annotationSets; - * - */ -class Google_Service_Genomics_AnnotationSets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new annotation set. Caller must have WRITE permission for the - * associated dataset. (annotationSets.create) - * - * @param Google_AnnotationSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AnnotationSet - */ - public function create(Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_AnnotationSet"); - } - - /** - * Deletes an annotation set. Caller must have WRITE permission for the - * associated annotation set. (annotationSets.delete) - * - * @param string $annotationSetId The ID of the annotation set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($annotationSetId, $optParams = array()) - { - $params = array('annotationSetId' => $annotationSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets an annotation set. Caller must have READ permission for the associated - * dataset. (annotationSets.get) - * - * @param string $annotationSetId The ID of the annotation set to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AnnotationSet - */ - public function get($annotationSetId, $optParams = array()) - { - $params = array('annotationSetId' => $annotationSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_AnnotationSet"); - } - - /** - * Updates an annotation set. The update must respect all mutability - * restrictions and other invariants described on the annotation set resource. - * Caller must have WRITE permission for the associated dataset. This method - * supports patch semantics. (annotationSets.patch) - * - * @param string $annotationSetId The ID of the annotation set to be updated. - * @param Google_AnnotationSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AnnotationSet - */ - public function patch($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) - { - $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_AnnotationSet"); - } - - /** - * Searches for annotation sets that match the given criteria. Results are - * returned in a deterministic order. Caller must have READ permission for the - * queried datasets. (annotationSets.search) - * - * @param Google_SearchAnnotationSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchAnnotationSetsResponse - */ - public function search(Google_Service_Genomics_SearchAnnotationSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationSetsResponse"); - } - - /** - * Updates an annotation set. The update must respect all mutability - * restrictions and other invariants described on the annotation set resource. - * Caller must have WRITE permission for the associated dataset. - * (annotationSets.update) - * - * @param string $annotationSetId The ID of the annotation set to be updated. - * @param Google_AnnotationSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AnnotationSet - */ - public function update($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array()) - { - $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_AnnotationSet"); - } -} - -/** - * The "annotations" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $annotations = $genomicsService->annotations; - * - */ -class Google_Service_Genomics_Annotations_Resource extends Google_Service_Resource -{ - - /** - * Creates one or more new annotations atomically. All annotations must belong - * to the same annotation set. Caller must have WRITE permission for this - * annotation set. For optimal performance, batch positionally adjacent - * annotations together. - * - * If the request has a systemic issue, such as an attempt to write to an - * inaccessible annotation set, the entire RPC will fail accordingly. For lesser - * data issues, when possible an error will be isolated to the corresponding - * batch entry in the response; the remaining well formed annotations will be - * created normally. (annotations.batchCreate) - * - * @param Google_BatchCreateAnnotationsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_BatchAnnotationsResponse - */ - public function batchCreate(Google_Service_Genomics_BatchCreateAnnotationsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchCreate', array($params), "Google_Service_Genomics_BatchAnnotationsResponse"); - } - - /** - * Creates a new annotation. Caller must have WRITE permission for the - * associated annotation set. (annotations.create) - * - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Annotation - */ - public function create(Google_Service_Genomics_Annotation $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Annotation"); - } - - /** - * Deletes an annotation. Caller must have WRITE permission for the associated - * annotation set. (annotations.delete) - * - * @param string $annotationId The ID of the annotation set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets an annotation. Caller must have READ permission for the associated - * annotation set. (annotations.get) - * - * @param string $annotationId The ID of the annotation set to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Annotation - */ - public function get($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Annotation"); - } - - /** - * Updates an annotation. The update must respect all mutability restrictions - * and other invariants described on the annotation resource. Caller must have - * WRITE permission for the associated dataset. This method supports patch - * semantics. (annotations.patch) - * - * @param string $annotationId The ID of the annotation set to be updated. - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Annotation - */ - public function patch($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array()) - { - $params = array('annotationId' => $annotationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Annotation"); - } - - /** - * Searches for annotations that match the given criteria. Results are returned - * ordered by start position. Annotations that have matching start positions are - * ordered deterministically. Caller must have READ permission for the queried - * annotation sets. (annotations.search) - * - * @param Google_SearchAnnotationsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchAnnotationsResponse - */ - public function search(Google_Service_Genomics_SearchAnnotationsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationsResponse"); - } - - /** - * Updates an annotation. The update must respect all mutability restrictions - * and other invariants described on the annotation resource. Caller must have - * WRITE permission for the associated dataset. (annotations.update) - * - * @param string $annotationId The ID of the annotation set to be updated. - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Annotation - */ - public function update($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array()) - { - $params = array('annotationId' => $annotationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Annotation"); - } -} - -/** - * The "callsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $callsets = $genomicsService->callsets; - * - */ -class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new call set. (callsets.create) - * - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Deletes a call set. (callsets.delete) - * - * @param string $callSetId The ID of the call set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a call set by ID. (callsets.get) - * - * @param string $callSetId The ID of the call set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function get($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Updates a call set. This method supports patch semantics. (callsets.patch) - * - * @param string $callSetId The ID of the call set to be updated. - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('callSetId' => $callSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Gets a list of call sets matching the criteria. - * - * Implements GlobalAllianceApi.searchCallSets. (callsets.search) - * - * @param Google_SearchCallSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchCallSetsResponse - */ - public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); - } - - /** - * Updates a call set. (callsets.update) - * - * @param string $callSetId The ID of the call set to be updated. - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function update($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('callSetId' => $callSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_CallSet"); - } -} - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $datasets = $genomicsService->datasets; - * - */ -class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new dataset. (datasets.create) - * - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Deletes a dataset. (datasets.delete) - * - * @param string $datasetId The ID of the dataset to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a dataset by ID. (datasets.get) - * - * @param string $datasetId The ID of the dataset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function get($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Lists datasets within a project. (datasets.listDatasets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string projectNumber The project to list datasets for. - * @opt_param int pageSize The maximum number of results returned by this - * request. If unspecified, defaults to 50. - * @return Google_Service_Genomics_ListDatasetsResponse - */ - public function listDatasets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); - } - - /** - * Updates a dataset. This method supports patch semantics. (datasets.patch) - * - * @param string $datasetId The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Undeletes a dataset by restoring a dataset which was deleted via this API. - * This operation is only possible for a week after the deletion occurred. - * (datasets.undelete) - * - * @param string $datasetId The ID of the dataset to be undeleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function undelete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Updates a dataset. (datasets.update) - * - * @param string $datasetId The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Dataset"); - } -} - -/** - * The "experimental" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $experimental = $genomicsService->experimental; - * - */ -class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resource -{ -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $jobs = $genomicsService->jobs; - * - */ -class Google_Service_Genomics_ExperimentalJobs_Resource extends Google_Service_Resource -{ - - /** - * Creates and asynchronously runs an ad-hoc job. This is an experimental call - * and may be removed or changed at any time. (jobs.create) - * - * @param Google_ExperimentalCreateJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExperimentalCreateJobResponse - */ - public function create(Google_Service_Genomics_ExperimentalCreateJobRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_ExperimentalCreateJobResponse"); - } -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $jobs = $genomicsService->jobs; - * - */ -class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource -{ - - /** - * Cancels a job by ID. Note that it is possible for partial results to be - * generated and stored for cancelled jobs. (jobs.cancel) - * - * @param string $jobId Required. The ID of the job. - * @param array $optParams Optional parameters. - */ - public function cancel($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - - /** - * Gets a job by ID. (jobs.get) - * - * @param string $jobId Required. The ID of the job. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Job - */ - public function get($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Job"); - } - - /** - * Gets a list of jobs matching the criteria. (jobs.search) - * - * @param Google_SearchJobsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchJobsResponse - */ - public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchJobsResponse"); } } -/** - * The "readgroupsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $readgroupsets = $genomicsService->readgroupsets; - * - */ -class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Resource -{ - - /** - * Aligns read data from existing read group sets or files from Google Cloud - * Storage. See the alignment and variant calling documentation for more - * details. (readgroupsets.align) - * - * @param Google_AlignReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AlignReadGroupSetsResponse - */ - public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('align', array($params), "Google_Service_Genomics_AlignReadGroupSetsResponse"); - } - - /** - * Calls variants on read data from existing read group sets or files from - * Google Cloud Storage. See the alignment and variant calling documentation - * for more details. (readgroupsets.callReadgroupsets) - * - * @param Google_CallReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallReadGroupSetsResponse - */ - public function callReadgroupsets(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('call', array($params), "Google_Service_Genomics_CallReadGroupSetsResponse"); - } - - /** - * Deletes a read group set. (readgroupsets.delete) - * - * @param string $readGroupSetId The ID of the read group set to be deleted. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param array $optParams Optional parameters. - */ - public function delete($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Exports read group sets to a BAM file in Google Cloud Storage. - * - * Note that currently there may be some differences between exported BAM files - * and the original BAM file at the time of import. In particular, comments in - * the input file header will not be preserved, some custom tags will be - * converted to strings, and original reference sequence order is not - * necessarily preserved. (readgroupsets.export) - * - * @param Google_ExportReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportReadGroupSetsResponse - */ - public function export(Google_Service_Genomics_ExportReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportReadGroupSetsResponse"); - } - /** - * Gets a read group set by ID. (readgroupsets.get) - * - * @param string $readGroupSetId The ID of the read group set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function get($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - /** - * Creates read group sets by asynchronously importing the provided information. - * - * Note that currently comments in the input file header are not imported and - * some custom tags will be converted to strings, rather than preserving tag - * types. The caller must have WRITE permissions to the dataset. - * (readgroupsets.import) - * - * @param Google_ImportReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportReadGroupSetsResponse - */ - public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportReadGroupSetsResponse"); - } - - /** - * Updates a read group set. This method supports patch semantics. - * (readgroupsets.patch) - * - * @param string $readGroupSetId The ID of the read group set to be updated. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param Google_ReadGroupSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - - /** - * Searches for read group sets matching the criteria. - * - * Implements GlobalAllianceApi.searchReadGroupSets. (readgroupsets.search) - * - * @param Google_SearchReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadGroupSetsResponse - */ - public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); - } - - /** - * Updates a read group set. (readgroupsets.update) - * - * @param string $readGroupSetId The ID of the read group set to be updated. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param Google_ReadGroupSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function update($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_ReadGroupSet"); - } -} - -/** - * The "coveragebuckets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $coveragebuckets = $genomicsService->coveragebuckets; - * - */ -class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Google_Service_Resource -{ - - /** - * Lists fixed width coverage buckets for a read group set, each of which - * correspond to a range of a reference sequence. Each bucket summarizes - * coverage information across its corresponding genomic range. - * - * Coverage is defined as the number of reads which are aligned to a given base - * in the reference sequence. Coverage buckets are available at several - * precomputed bucket widths, enabling retrieval of various coverage 'zoom - * levels'. The caller must have READ permissions for the target read group set. - * (coveragebuckets.listReadgroupsetsCoveragebuckets) - * - * @param string $readGroupSetId Required. The ID of the read group set over - * which coverage is requested. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The maximum number of results to return in a single - * page. If unspecified, defaults to 1024. The maximum value is 2048. - * @opt_param string range.start The start position of the range on the - * reference, 0-based inclusive. If specified, referenceName must also be - * specified. - * @opt_param string range.end The end position of the range on the reference, - * 0-based exclusive. If specified, referenceName must also be specified. - * @opt_param string range.referenceName The reference sequence name, for - * example chr1, 1, or chrX. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string targetBucketWidth The desired width of each reported - * coverage bucket in base pairs. This will be rounded down to the nearest - * precomputed bucket width; the value of which is returned as bucketWidth in - * the response. Defaults to infinity (each bucket spans an entire reference - * sequence) or the length of the target range, if specified. The smallest - * precomputed bucketWidth is currently 2048 base pairs; this is subject to - * change. - * @return Google_Service_Genomics_ListCoverageBucketsResponse - */ - public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); - } -} - -/** - * The "reads" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $reads = $genomicsService->reads; - * - */ -class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource -{ - - /** - * Gets a list of reads for one or more read group sets. Reads search operates - * over a genomic coordinate space of reference sequence & position defined over - * the reference sequences to which the requested read group sets are aligned. - * - * If a target positional range is specified, search returns all reads whose - * alignment to the reference genome overlap the range. A query which specifies - * only read group set IDs yields all reads in those read group sets, including - * unmapped reads. - * - * All reads returned (including reads on subsequent pages) are ordered by - * genomic coordinate (reference sequence & position). Reads with equivalent - * genomic coordinates are returned in a deterministic order. - * - * Implements GlobalAllianceApi.searchReads. (reads.search) - * - * @param Google_SearchReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsResponse - */ - public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); - } -} - -/** - * The "references" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $references = $genomicsService->references; - * - */ -class Google_Service_Genomics_References_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference. - * - * Implements GlobalAllianceApi.getReference. (references.get) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Reference - */ - public function get($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Reference"); - } - - /** - * Searches for references which match the given criteria. - * - * Implements GlobalAllianceApi.searchReferences. (references.search) - * - * @param Google_SearchReferencesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferencesResponse - */ - public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse"); - } -} - -/** - * The "bases" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $bases = $genomicsService->bases; - * - */ -class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Resource -{ - - /** - * Lists the bases in a reference, optionally restricted to a range. - * - * Implements GlobalAllianceApi.getReferenceBases. (bases.listReferencesBases) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string end The end position (0-based, exclusive) of this query. - * Defaults to the length of this reference. - * @opt_param int pageSize Specifies the maximum number of bases to return in a - * single page. - * @opt_param string start The start position (0-based) of this query. Defaults - * to 0. - * @return Google_Service_Genomics_ListBasesResponse - */ - public function listReferencesBases($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse"); - } -} - -/** - * The "referencesets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $referencesets = $genomicsService->referencesets; - * - */ -class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference set. - * - * Implements GlobalAllianceApi.getReferenceSet. (referencesets.get) - * - * @param string $referenceSetId The ID of the reference set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReferenceSet - */ - public function get($referenceSetId, $optParams = array()) - { - $params = array('referenceSetId' => $referenceSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); - } - - /** - * Searches for reference sets which match the given criteria. - * - * Implements GlobalAllianceApi.searchReferenceSets. (referencesets.search) - * - * @param Google_SearchReferenceSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferenceSetsResponse - */ - public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse"); - } -} - -/** - * The "streamingReadstore" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $streamingReadstore = $genomicsService->streamingReadstore; - * - */ -class Google_Service_Genomics_StreamingReadstore_Resource extends Google_Service_Resource -{ - - /** - * Gets a stream of reads for one or more read group sets. Reads search operates - * over a genomic coordinate space of reference sequence & position defined over - * the reference sequences to which the requested read group sets are aligned. - * - * If a target positional range is specified, all reads whose alignment to the - * reference genome overlap the range are returned. - * - * All reads returned are ordered by genomic coordinate (reference sequence & - * position). Reads with equivalent genomic coordinates are returned in a - * deterministic order. (streamingReadstore.streamreads) - * - * @param Google_StreamReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_StreamReadsResponse - */ - public function streamreads(Google_Service_Genomics_StreamReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('streamreads', array($params), "Google_Service_Genomics_StreamReadsResponse"); - } -} - -/** - * The "variants" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variants = $genomicsService->variants; - * - */ -class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource -{ - - /** - * Creates a new variant. (variants.create) - * - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Deletes a variant. (variants.delete) - * - * @param string $variantId The ID of the variant to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a variant by ID. (variants.get) - * - * @param string $variantId The ID of the variant. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function get($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Gets a list of variants matching the criteria. - * - * Implements GlobalAllianceApi.searchVariants. (variants.search) - * - * @param Google_SearchVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantsResponse - */ - public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); - } - - /** - * Updates a variant's names and info fields. All other modifications are - * silently ignored. Returns the modified variant without its calls. - * (variants.update) - * - * @param string $variantId The ID of the variant to be updated. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function update($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Variant"); - } -} - -/** - * The "variantsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variantsets = $genomicsService->variantsets; - * - */ -class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resource -{ - - /** - * Deletes the contents of a variant set. The variant set object is not deleted. - * (variantsets.delete) - * - * @param string $variantSetId The ID of the variant set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Exports variant set data to an external destination. (variantsets.export) - * - * @param string $variantSetId Required. The ID of the variant set that contains - * variant data which should be exported. The caller must have READ access to - * this variant set. - * @param Google_ExportVariantSetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportVariantSetResponse - */ - public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantSetResponse"); - } - - /** - * Gets a variant set by ID. (variantsets.get) - * - * @param string $variantSetId Required. The ID of the variant set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function get($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Creates variant data by asynchronously importing the provided information. - * - * The variants for import will be merged with any existing data and each other - * according to the behavior of mergeVariants. In particular, this means for - * merged VCF variants that have conflicting INFO fields, some data will be - * arbitrarily discarded. As a special case, for single-sample VCF files, QUAL - * and FILTER fields will be moved to the call level; these are sometimes - * interpreted in a call-specific context. Imported VCF headers are appended to - * the metadata already in a variant set. (variantsets.importVariants) - * - * @param string $variantSetId Required. The variant set to which variant data - * should be imported. - * @param Google_ImportVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportVariantsResponse - */ - public function importVariants($variantSetId, Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('importVariants', array($params), "Google_Service_Genomics_ImportVariantsResponse"); - } - - /** - * Merges the given variants with existing variants. Each variant will be merged - * with an existing variant that matches its reference sequence, start, end, - * reference bases, and alternative bases. If no such variant exists, a new one - * will be created. - * - * When variants are merged, the call information from the new variant is added - * to the existing variant, and other fields (such as key/value pairs) are - * discarded. (variantsets.mergeVariants) - * - * @param string $variantSetId The destination variant set. - * @param Google_MergeVariantsRequest $postBody - * @param array $optParams Optional parameters. - */ - public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('mergeVariants', array($params)); - } - - /** - * Updates a variant set's metadata. All other modifications are silently - * ignored. This method supports patch semantics. (variantsets.patch) - * - * @param string $variantSetId The ID of the variant to be updated. - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Returns a list of all variant sets matching search criteria. - * - * Implements GlobalAllianceApi.searchVariantSets. (variantsets.search) - * - * @param Google_SearchVariantSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantSetsResponse - */ - public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); - } - - /** - * Updates a variant set's metadata. All other modifications are silently - * ignored. (variantsets.update) - * - * @param string $variantSetId The ID of the variant to be updated. - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function update($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_VariantSet"); - } -} - - - - -class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'bamSourceUris'; - protected $internal_gapi_mappings = array( - ); - public $bamSourceUris; - public $datasetId; - protected $interleavedFastqSourceType = 'Google_Service_Genomics_InterleavedFastqSource'; - protected $interleavedFastqSourceDataType = ''; - protected $pairedFastqSourceType = 'Google_Service_Genomics_PairedFastqSource'; - protected $pairedFastqSourceDataType = ''; - public $readGroupSetId; - - - public function setBamSourceUris($bamSourceUris) - { - $this->bamSourceUris = $bamSourceUris; - } - public function getBamSourceUris() - { - return $this->bamSourceUris; - } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setInterleavedFastqSource(Google_Service_Genomics_InterleavedFastqSource $interleavedFastqSource) - { - $this->interleavedFastqSource = $interleavedFastqSource; - } - public function getInterleavedFastqSource() - { - return $this->interleavedFastqSource; - } - public function setPairedFastqSource(Google_Service_Genomics_PairedFastqSource $pairedFastqSource) - { - $this->pairedFastqSource = $pairedFastqSource; - } - public function getPairedFastqSource() - { - return $this->pairedFastqSource; - } - public function setReadGroupSetId($readGroupSetId) - { - $this->readGroupSetId = $readGroupSetId; - } - public function getReadGroupSetId() - { - return $this->readGroupSetId; - } -} - -class Google_Service_Genomics_AlignReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_Annotation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $annotationSetId; - public $id; - public $info; - public $name; - protected $positionType = 'Google_Service_Genomics_RangePosition'; - protected $positionDataType = ''; - protected $transcriptType = 'Google_Service_Genomics_Transcript'; - protected $transcriptDataType = ''; - public $type; - protected $variantType = 'Google_Service_Genomics_VariantAnnotation'; - protected $variantDataType = ''; - - - public function setAnnotationSetId($annotationSetId) - { - $this->annotationSetId = $annotationSetId; - } - public function getAnnotationSetId() - { - return $this->annotationSetId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPosition(Google_Service_Genomics_RangePosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setTranscript(Google_Service_Genomics_Transcript $transcript) - { - $this->transcript = $transcript; - } - public function getTranscript() - { - return $this->transcript; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVariant(Google_Service_Genomics_VariantAnnotation $variant) - { - $this->variant = $variant; - } - public function getVariant() - { - return $this->variant; - } -} - -class Google_Service_Genomics_AnnotationInfo extends Google_Model -{ -} - -class Google_Service_Genomics_AnnotationSet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $id; - public $info; - public $name; - public $referenceSetId; - public $sourceUri; - public $type; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSourceUri($sourceUri) - { - $this->sourceUri = $sourceUri; - } - public function getSourceUri() - { - return $this->sourceUri; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Genomics_AnnotationSetInfo extends Google_Model -{ -} - -class Google_Service_Genomics_BatchAnnotationsResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_Genomics_BatchAnnotationsResponseEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_Genomics_BatchAnnotationsResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $annotationType = 'Google_Service_Genomics_Annotation'; - protected $annotationDataType = ''; - protected $statusType = 'Google_Service_Genomics_BatchAnnotationsResponseEntryStatus'; - protected $statusDataType = ''; - - - public function setAnnotation(Google_Service_Genomics_Annotation $annotation) - { - $this->annotation = $annotation; - } - public function getAnnotation() - { - return $this->annotation; - } - public function setStatus(Google_Service_Genomics_BatchAnnotationsResponseEntryStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Genomics_BatchAnnotationsResponseEntryStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Genomics_BatchCreateAnnotationsRequest extends Google_Collection -{ - protected $collection_key = 'annotations'; - protected $internal_gapi_mappings = array( - ); - protected $annotationsType = 'Google_Service_Genomics_Annotation'; - protected $annotationsDataType = 'array'; - - - public function setAnnotations($annotations) - { - $this->annotations = $annotations; - } - public function getAnnotations() - { - return $this->annotations; - } -} - -class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $readGroupSetId; - public $sourceUris; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setReadGroupSetId($readGroupSetId) - { - $this->readGroupSetId = $readGroupSetId; - } - public function getReadGroupSetId() - { - return $this->readGroupSetId; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_CallSet extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $created; - public $id; - public $info; - public $name; - public $sampleId; - public $variantSetIds; - - - 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 setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_CallSetInfo extends Google_Model -{ -} - -class Google_Service_Genomics_CigarUnit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operation; - public $operationLength; - public $referenceSequence; - - - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setOperationLength($operationLength) - { - $this->operationLength = $operationLength; - } - public function getOperationLength() - { - return $this->operationLength; - } - public function setReferenceSequence($referenceSequence) - { - $this->referenceSequence = $referenceSequence; - } - public function getReferenceSequence() - { - return $this->referenceSequence; - } -} - -class Google_Service_Genomics_CoverageBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $meanCoverage; - protected $rangeType = 'Google_Service_Genomics_Range'; - protected $rangeDataType = ''; - - - public function setMeanCoverage($meanCoverage) - { - $this->meanCoverage = $meanCoverage; - } - public function getMeanCoverage() - { - return $this->meanCoverage; - } - public function setRange(Google_Service_Genomics_Range $range) - { - $this->range = $range; - } - public function getRange() - { - return $this->range; - } -} - -class Google_Service_Genomics_Dataset extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $isPublic; - public $name; - public $projectNumber; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } - public function getIsPublic() - { - return $this->isPublic; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } -} - -class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $align; - public $callVariants; - public $gcsOutputPath; - public $pairedSourceUris; - public $projectNumber; - public $sourceUris; - - - public function setAlign($align) - { - $this->align = $align; - } - public function getAlign() - { - return $this->align; - } - public function setCallVariants($callVariants) - { - $this->callVariants = $callVariants; - } - public function getCallVariants() - { - return $this->callVariants; - } - public function setGcsOutputPath($gcsOutputPath) - { - $this->gcsOutputPath = $gcsOutputPath; - } - public function getGcsOutputPath() - { - return $this->gcsOutputPath; - } - public function setPairedSourceUris($pairedSourceUris) - { - $this->pairedSourceUris = $pairedSourceUris; - } - public function getPairedSourceUris() - { - return $this->pairedSourceUris; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ExportReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'referenceNames'; - protected $internal_gapi_mappings = array( - ); - public $exportUri; - public $projectNumber; - public $readGroupSetIds; - public $referenceNames; - - - public function setExportUri($exportUri) - { - $this->exportUri = $exportUri; - } - public function getExportUri() - { - return $this->exportUri; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceNames($referenceNames) - { - $this->referenceNames = $referenceNames; - } - public function getReferenceNames() - { - return $this->referenceNames; - } -} - -class Google_Service_Genomics_ExportReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection -{ - protected $collection_key = 'callSetIds'; - protected $internal_gapi_mappings = array( - ); - public $bigqueryDataset; - public $bigqueryTable; - public $callSetIds; - public $format; - public $projectNumber; - - - public function setBigqueryDataset($bigqueryDataset) - { - $this->bigqueryDataset = $bigqueryDataset; - } - public function getBigqueryDataset() - { - return $this->bigqueryDataset; - } - public function setBigqueryTable($bigqueryTable) - { - $this->bigqueryTable = $bigqueryTable; - } - public function getBigqueryTable() - { - return $this->bigqueryTable; - } - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } -} - -class Google_Service_Genomics_ExportVariantSetResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ExternalId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $sourceName; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setSourceName($sourceName) - { - $this->sourceName = $sourceName; - } - public function getSourceName() - { - return $this->sourceName; - } -} - -class Google_Service_Genomics_FastqMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $libraryName; - public $platformName; - public $platformUnit; - public $readGroupName; - public $sampleName; - - - public function setLibraryName($libraryName) - { - $this->libraryName = $libraryName; - } - public function getLibraryName() - { - return $this->libraryName; - } - public function setPlatformName($platformName) - { - $this->platformName = $platformName; - } - public function getPlatformName() - { - return $this->platformName; - } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setReadGroupName($readGroupName) - { - $this->readGroupName = $readGroupName; - } - public function getReadGroupName() - { - return $this->readGroupName; - } - public function setSampleName($sampleName) - { - $this->sampleName = $sampleName; - } - public function getSampleName() - { - return $this->sampleName; - } -} - -class Google_Service_Genomics_GenomicsCall extends Google_Collection -{ - protected $collection_key = 'genotypeLikelihood'; - protected $internal_gapi_mappings = array( - ); - public $callSetId; - public $callSetName; - public $genotype; - public $genotypeLikelihood; - public $info; - public $phaseset; - - - public function setCallSetId($callSetId) - { - $this->callSetId = $callSetId; - } - public function getCallSetId() - { - return $this->callSetId; - } - public function setCallSetName($callSetName) - { - $this->callSetName = $callSetName; - } - public function getCallSetName() - { - return $this->callSetName; - } - public function setGenotype($genotype) - { - $this->genotype = $genotype; - } - public function getGenotype() - { - return $this->genotype; - } - public function setGenotypeLikelihood($genotypeLikelihood) - { - $this->genotypeLikelihood = $genotypeLikelihood; - } - public function getGenotypeLikelihood() - { - return $this->genotypeLikelihood; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setPhaseset($phaseset) - { - $this->phaseset = $phaseset; - } - public function getPhaseset() - { - return $this->phaseset; - } -} - -class Google_Service_Genomics_GenomicsCallInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $partitionStrategy; - public $referenceSetId; - public $sourceUris; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setPartitionStrategy($partitionStrategy) - { - $this->partitionStrategy = $partitionStrategy; - } - public function getPartitionStrategy() - { - return $this->partitionStrategy; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $format; - public $sourceUris; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ImportVariantsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_Int32Value extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; - protected $metadataDataType = ''; - public $sourceUris; - - - public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_Job extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $created; - public $detailedStatus; - public $errors; - public $id; - public $importedIds; - public $projectNumber; - protected $requestType = 'Google_Service_Genomics_JobRequest'; - protected $requestDataType = ''; - public $status; - public $warnings; - - - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDetailedStatus($detailedStatus) - { - $this->detailedStatus = $detailedStatus; - } - public function getDetailedStatus() - { - return $this->detailedStatus; - } - 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 setImportedIds($importedIds) - { - $this->importedIds = $importedIds; - } - public function getImportedIds() - { - return $this->importedIds; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setRequest(Google_Service_Genomics_JobRequest $request) - { - $this->request = $request; - } - public function getRequest() - { - return $this->request; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Genomics_JobRequest extends Google_Collection -{ - protected $collection_key = 'source'; - protected $internal_gapi_mappings = array( - ); - public $destination; - public $source; - public $type; - - - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - 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_Genomics_LinearAlignment extends Google_Collection -{ - protected $collection_key = 'cigar'; - protected $internal_gapi_mappings = array( - ); - protected $cigarType = 'Google_Service_Genomics_CigarUnit'; - protected $cigarDataType = 'array'; - public $mappingQuality; - protected $positionType = 'Google_Service_Genomics_Position'; - protected $positionDataType = ''; - - - public function setCigar($cigar) - { - $this->cigar = $cigar; - } - public function getCigar() - { - return $this->cigar; - } - public function setMappingQuality($mappingQuality) - { - $this->mappingQuality = $mappingQuality; - } - public function getMappingQuality() - { - return $this->mappingQuality; - } - public function setPosition(Google_Service_Genomics_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Genomics_ListBasesResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $offset; - public $sequence; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOffset($offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - public function getSequence() - { - return $this->sequence; - } -} - -class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection -{ - protected $collection_key = 'coverageBuckets'; - protected $internal_gapi_mappings = array( - ); - public $bucketWidth; - protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; - protected $coverageBucketsDataType = 'array'; - public $nextPageToken; - - - public function setBucketWidth($bucketWidth) - { - $this->bucketWidth = $bucketWidth; - } - public function getBucketWidth() - { - return $this->bucketWidth; - } - public function setCoverageBuckets($coverageBuckets) - { - $this->coverageBuckets = $coverageBuckets; - } - public function getCoverageBuckets() - { - return $this->coverageBuckets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection -{ - protected $collection_key = 'datasets'; - protected $internal_gapi_mappings = array( - ); - protected $datasetsType = 'Google_Service_Genomics_Dataset'; - protected $datasetsDataType = 'array'; - public $nextPageToken; - - - public function setDatasets($datasets) - { - $this->datasets = $datasets; - } - public function getDatasets() - { - return $this->datasets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_Metadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $info; - public $key; - public $number; - public $type; - public $value; - - - 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 setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setNumber($number) - { - $this->number = $number; - } - public function getNumber() - { - return $this->number; - } - 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_Genomics_MetadataInfo extends Google_Model -{ -} - -class Google_Service_Genomics_PairedFastqSource extends Google_Collection -{ - protected $collection_key = 'secondSourceUris'; - protected $internal_gapi_mappings = array( - ); - public $firstSourceUris; - protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; - protected $metadataDataType = ''; - public $secondSourceUris; - - - public function setFirstSourceUris($firstSourceUris) - { - $this->firstSourceUris = $firstSourceUris; - } - public function getFirstSourceUris() - { - return $this->firstSourceUris; - } - public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSecondSourceUris($secondSourceUris) - { - $this->secondSourceUris = $secondSourceUris; - } - public function getSecondSourceUris() - { - return $this->secondSourceUris; - } -} - -class Google_Service_Genomics_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $position; - public $referenceName; - public $reverseStrand; - - - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setReverseStrand($reverseStrand) - { - $this->reverseStrand = $reverseStrand; - } - public function getReverseStrand() - { - return $this->reverseStrand; - } -} - -class Google_Service_Genomics_QueryRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $referenceId; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReferenceId($referenceId) - { - $this->referenceId = $referenceId; - } - public function getReferenceId() - { - return $this->referenceId; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_Range extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_RangePosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $referenceId; - public $referenceName; - public $reverseStrand; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReferenceId($referenceId) - { - $this->referenceId = $referenceId; - } - public function getReferenceId() - { - return $this->referenceId; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setReverseStrand($reverseStrand) - { - $this->reverseStrand = $reverseStrand; - } - public function getReverseStrand() - { - return $this->reverseStrand; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_Read extends Google_Collection -{ - protected $collection_key = 'alignedQuality'; - protected $internal_gapi_mappings = array( - ); - public $alignedQuality; - public $alignedSequence; - protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; - protected $alignmentDataType = ''; - public $duplicateFragment; - public $failedVendorQualityChecks; - public $fragmentLength; - public $fragmentName; - public $id; - public $info; - protected $nextMatePositionType = 'Google_Service_Genomics_Position'; - protected $nextMatePositionDataType = ''; - public $numberReads; - public $properPlacement; - public $readGroupId; - public $readGroupSetId; - public $readNumber; - public $secondaryAlignment; - public $supplementaryAlignment; - - - public function setAlignedQuality($alignedQuality) - { - $this->alignedQuality = $alignedQuality; - } - public function getAlignedQuality() - { - return $this->alignedQuality; - } - public function setAlignedSequence($alignedSequence) - { - $this->alignedSequence = $alignedSequence; - } - public function getAlignedSequence() - { - return $this->alignedSequence; - } - public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) - { - $this->alignment = $alignment; - } - public function getAlignment() - { - return $this->alignment; - } - public function setDuplicateFragment($duplicateFragment) - { - $this->duplicateFragment = $duplicateFragment; - } - public function getDuplicateFragment() - { - return $this->duplicateFragment; - } - public function setFailedVendorQualityChecks($failedVendorQualityChecks) - { - $this->failedVendorQualityChecks = $failedVendorQualityChecks; - } - public function getFailedVendorQualityChecks() - { - return $this->failedVendorQualityChecks; - } - public function setFragmentLength($fragmentLength) - { - $this->fragmentLength = $fragmentLength; - } - public function getFragmentLength() - { - return $this->fragmentLength; - } - public function setFragmentName($fragmentName) - { - $this->fragmentName = $fragmentName; - } - public function getFragmentName() - { - return $this->fragmentName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePosition) - { - $this->nextMatePosition = $nextMatePosition; - } - public function getNextMatePosition() - { - return $this->nextMatePosition; - } - public function setNumberReads($numberReads) - { - $this->numberReads = $numberReads; - } - public function getNumberReads() - { - return $this->numberReads; - } - public function setProperPlacement($properPlacement) - { - $this->properPlacement = $properPlacement; - } - public function getProperPlacement() - { - return $this->properPlacement; - } - public function setReadGroupId($readGroupId) - { - $this->readGroupId = $readGroupId; - } - public function getReadGroupId() - { - return $this->readGroupId; - } - public function setReadGroupSetId($readGroupSetId) - { - $this->readGroupSetId = $readGroupSetId; - } - public function getReadGroupSetId() - { - return $this->readGroupSetId; - } - public function setReadNumber($readNumber) - { - $this->readNumber = $readNumber; - } - public function getReadNumber() - { - return $this->readNumber; - } - public function setSecondaryAlignment($secondaryAlignment) - { - $this->secondaryAlignment = $secondaryAlignment; - } - public function getSecondaryAlignment() - { - return $this->secondaryAlignment; - } - public function setSupplementaryAlignment($supplementaryAlignment) - { - $this->supplementaryAlignment = $supplementaryAlignment; - } - public function getSupplementaryAlignment() - { - return $this->supplementaryAlignment; - } -} - -class Google_Service_Genomics_ReadGroup extends Google_Collection -{ - protected $collection_key = 'programs'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $description; - protected $experimentType = 'Google_Service_Genomics_ReadGroupExperiment'; - protected $experimentDataType = ''; - public $id; - public $info; - public $name; - public $predictedInsertSize; - protected $programsType = 'Google_Service_Genomics_ReadGroupProgram'; - protected $programsDataType = 'array'; - public $referenceSetId; - public $sampleId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExperiment(Google_Service_Genomics_ReadGroupExperiment $experiment) - { - $this->experiment = $experiment; - } - public function getExperiment() - { - return $this->experiment; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPredictedInsertSize($predictedInsertSize) - { - $this->predictedInsertSize = $predictedInsertSize; - } - public function getPredictedInsertSize() - { - return $this->predictedInsertSize; - } - public function setPrograms($programs) - { - $this->programs = $programs; - } - public function getPrograms() - { - return $this->programs; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } -} - -class Google_Service_Genomics_ReadGroupExperiment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instrumentModel; - public $libraryId; - public $platformUnit; - public $sequencingCenter; - - - public function setInstrumentModel($instrumentModel) - { - $this->instrumentModel = $instrumentModel; - } - public function getInstrumentModel() - { - return $this->instrumentModel; - } - public function setLibraryId($libraryId) - { - $this->libraryId = $libraryId; - } - public function getLibraryId() - { - return $this->libraryId; - } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setSequencingCenter($sequencingCenter) - { - $this->sequencingCenter = $sequencingCenter; - } - public function getSequencingCenter() - { - return $this->sequencingCenter; - } -} - -class Google_Service_Genomics_ReadGroupInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ReadGroupProgram extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commandLine; - public $id; - public $name; - public $prevProgramId; - public $version; - - - public function setCommandLine($commandLine) - { - $this->commandLine = $commandLine; - } - public function getCommandLine() - { - return $this->commandLine; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPrevProgramId($prevProgramId) - { - $this->prevProgramId = $prevProgramId; - } - public function getPrevProgramId() - { - return $this->prevProgramId; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Genomics_ReadGroupSet extends Google_Collection -{ - protected $collection_key = 'readGroups'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $filename; - public $id; - public $info; - public $name; - protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; - protected $readGroupsDataType = 'array'; - public $referenceSetId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReadGroups($readGroups) - { - $this->readGroups = $readGroups; - } - public function getReadGroups() - { - return $this->readGroups; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } -} - -class Google_Service_Genomics_ReadGroupSetInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ReadInfo extends Google_Model -{ -} - -class Google_Service_Genomics_Reference extends Google_Collection -{ - protected $collection_key = 'sourceAccessions'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $length; - public $md5checksum; - public $name; - public $ncbiTaxonId; - public $sourceAccessions; - public $sourceURI; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLength($length) - { - $this->length = $length; - } - public function getLength() - { - return $this->length; - } - public function setMd5checksum($md5checksum) - { - $this->md5checksum = $md5checksum; - } - public function getMd5checksum() - { - return $this->md5checksum; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNcbiTaxonId($ncbiTaxonId) - { - $this->ncbiTaxonId = $ncbiTaxonId; - } - public function getNcbiTaxonId() - { - return $this->ncbiTaxonId; - } - public function setSourceAccessions($sourceAccessions) - { - $this->sourceAccessions = $sourceAccessions; - } - public function getSourceAccessions() - { - return $this->sourceAccessions; - } - public function setSourceURI($sourceURI) - { - $this->sourceURI = $sourceURI; - } - public function getSourceURI() - { - return $this->sourceURI; - } -} - -class Google_Service_Genomics_ReferenceBound extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $referenceName; - public $upperBound; - - - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_Genomics_ReferenceSet extends Google_Collection -{ - protected $collection_key = 'sourceAccessions'; - protected $internal_gapi_mappings = array( - ); - public $assemblyId; - public $description; - public $id; - public $md5checksum; - public $ncbiTaxonId; - public $referenceIds; - public $sourceAccessions; - public $sourceURI; - - - public function setAssemblyId($assemblyId) - { - $this->assemblyId = $assemblyId; - } - public function getAssemblyId() - { - return $this->assemblyId; - } - 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 setMd5checksum($md5checksum) - { - $this->md5checksum = $md5checksum; - } - public function getMd5checksum() - { - return $this->md5checksum; - } - public function setNcbiTaxonId($ncbiTaxonId) - { - $this->ncbiTaxonId = $ncbiTaxonId; - } - public function getNcbiTaxonId() - { - return $this->ncbiTaxonId; - } - public function setReferenceIds($referenceIds) - { - $this->referenceIds = $referenceIds; - } - public function getReferenceIds() - { - return $this->referenceIds; - } - public function setSourceAccessions($sourceAccessions) - { - $this->sourceAccessions = $sourceAccessions; - } - public function getSourceAccessions() - { - return $this->sourceAccessions; - } - public function setSourceURI($sourceURI) - { - $this->sourceURI = $sourceURI; - } - public function getSourceURI() - { - return $this->sourceURI; - } -} - -class Google_Service_Genomics_SearchAnnotationSetsRequest extends Google_Collection -{ - protected $collection_key = 'types'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $name; - public $pageSize; - public $pageToken; - public $referenceSetId; - public $types; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setTypes($types) - { - $this->types = $types; - } - public function getTypes() - { - return $this->types; - } -} - -class Google_Service_Genomics_SearchAnnotationSetsResponse extends Google_Collection -{ - protected $collection_key = 'annotationSets'; - protected $internal_gapi_mappings = array( - ); - protected $annotationSetsType = 'Google_Service_Genomics_AnnotationSet'; - protected $annotationSetsDataType = 'array'; - public $nextPageToken; - - - public function setAnnotationSets($annotationSets) - { - $this->annotationSets = $annotationSets; - } - public function getAnnotationSets() - { - return $this->annotationSets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchAnnotationsRequest extends Google_Collection -{ - protected $collection_key = 'annotationSetIds'; - protected $internal_gapi_mappings = array( - ); - public $annotationSetIds; - public $pageSize; - public $pageToken; - protected $rangeType = 'Google_Service_Genomics_QueryRange'; - protected $rangeDataType = ''; - - - public function setAnnotationSetIds($annotationSetIds) - { - $this->annotationSetIds = $annotationSetIds; - } - public function getAnnotationSetIds() - { - return $this->annotationSetIds; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setRange(Google_Service_Genomics_QueryRange $range) - { - $this->range = $range; - } - public function getRange() - { - return $this->range; - } -} - -class Google_Service_Genomics_SearchAnnotationsResponse extends Google_Collection -{ - protected $collection_key = 'annotations'; - protected $internal_gapi_mappings = array( - ); - protected $annotationsType = 'Google_Service_Genomics_Annotation'; - protected $annotationsDataType = 'array'; - public $nextPageToken; - - - public function setAnnotations($annotations) - { - $this->annotations = $annotations; - } - public function getAnnotations() - { - return $this->annotations; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $name; - public $pageSize; - public $pageToken; - public $variantSetIds; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection -{ - protected $collection_key = 'callSets'; - protected $internal_gapi_mappings = array( - ); - protected $callSetsType = 'Google_Service_Genomics_CallSet'; - protected $callSetsDataType = 'array'; - public $nextPageToken; - - - public function setCallSets($callSets) - { - $this->callSets = $callSets; - } - public function getCallSets() - { - return $this->callSets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchJobsRequest extends Google_Collection -{ - protected $collection_key = 'status'; - protected $internal_gapi_mappings = array( - ); - public $createdAfter; - public $createdBefore; - public $pageSize; - public $pageToken; - public $projectNumber; - public $status; - - - public function setCreatedAfter($createdAfter) - { - $this->createdAfter = $createdAfter; - } - public function getCreatedAfter() - { - return $this->createdAfter; - } - public function setCreatedBefore($createdBefore) - { - $this->createdBefore = $createdBefore; - } - public function getCreatedBefore() - { - return $this->createdBefore; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Genomics_SearchJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_Genomics_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'datasetIds'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $name; - public $pageSize; - public $pageToken; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection -{ - protected $collection_key = 'readGroupSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; - protected $readGroupSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReadGroupSets($readGroupSets) - { - $this->readGroupSets = $readGroupSets; - } - public function getReadGroupSets() - { - return $this->readGroupSets; - } -} - -class Google_Service_Genomics_SearchReadsRequest extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $end; - public $pageSize; - public $pageToken; - public $readGroupIds; - public $readGroupSetIds; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReadGroupIds($readGroupIds) - { - $this->readGroupIds = $readGroupIds; - } - public function getReadGroupIds() - { - return $this->readGroupIds; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_SearchReadsResponse extends Google_Collection -{ - protected $collection_key = 'alignments'; - protected $internal_gapi_mappings = array( - ); - protected $alignmentsType = 'Google_Service_Genomics_Read'; - protected $alignmentsDataType = 'array'; - public $nextPageToken; - - - public function setAlignments($alignments) - { - $this->alignments = $alignments; - } - public function getAlignments() - { - return $this->alignments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection -{ - protected $collection_key = 'md5checksums'; - protected $internal_gapi_mappings = array( - ); - public $accessions; - public $assemblyId; - public $md5checksums; - public $pageSize; - public $pageToken; - - - public function setAccessions($accessions) - { - $this->accessions = $accessions; - } - public function getAccessions() - { - return $this->accessions; - } - public function setAssemblyId($assemblyId) - { - $this->assemblyId = $assemblyId; - } - public function getAssemblyId() - { - return $this->assemblyId; - } - public function setMd5checksums($md5checksums) - { - $this->md5checksums = $md5checksums; - } - public function getMd5checksums() - { - return $this->md5checksums; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection -{ - protected $collection_key = 'referenceSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet'; - protected $referenceSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReferenceSets($referenceSets) - { - $this->referenceSets = $referenceSets; - } - public function getReferenceSets() - { - return $this->referenceSets; - } -} - -class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection -{ - protected $collection_key = 'md5checksums'; - protected $internal_gapi_mappings = array( - ); - public $accessions; - public $md5checksums; - public $pageSize; - public $pageToken; - public $referenceSetId; - - - public function setAccessions($accessions) - { - $this->accessions = $accessions; - } - public function getAccessions() - { - return $this->accessions; - } - public function setMd5checksums($md5checksums) - { - $this->md5checksums = $md5checksums; - } - public function getMd5checksums() - { - return $this->md5checksums; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } -} - -class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection -{ - protected $collection_key = 'references'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $referencesType = 'Google_Service_Genomics_Reference'; - protected $referencesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReferences($references) - { - $this->references = $references; - } - public function getReferences() - { - return $this->references; - } -} - -class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection -{ - protected $collection_key = 'datasetIds'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $pageSize; - public $pageToken; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection -{ - protected $collection_key = 'variantSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; - protected $variantSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setVariantSets($variantSets) - { - $this->variantSets = $variantSets; - } - public function getVariantSets() - { - return $this->variantSets; - } -} - -class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $callSetIds; - public $end; - public $maxCalls; - public $pageSize; - public $pageToken; - public $referenceName; - public $start; - public $variantName; - public $variantSetIds; - - - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setMaxCalls($maxCalls) - { - $this->maxCalls = $maxCalls; - } - public function getMaxCalls() - { - return $this->maxCalls; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantName($variantName) - { - $this->variantName = $variantName; - } - public function getVariantName() - { - return $this->variantName; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_StreamReadsRequest extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $end; - public $readGroupSetIds; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_StreamReadsResponse extends Google_Collection -{ - protected $collection_key = 'alignments'; - protected $internal_gapi_mappings = array( - ); - protected $alignmentsType = 'Google_Service_Genomics_Read'; - protected $alignmentsDataType = 'array'; - - - public function setAlignments($alignments) - { - $this->alignments = $alignments; - } - public function getAlignments() - { - return $this->alignments; - } -} - -class Google_Service_Genomics_Transcript extends Google_Collection -{ - protected $collection_key = 'exons'; - protected $internal_gapi_mappings = array( - ); - protected $codingSequenceType = 'Google_Service_Genomics_TranscriptCodingSequence'; - protected $codingSequenceDataType = ''; - protected $exonsType = 'Google_Service_Genomics_TranscriptExon'; - protected $exonsDataType = 'array'; - public $geneId; - - - public function setCodingSequence(Google_Service_Genomics_TranscriptCodingSequence $codingSequence) - { - $this->codingSequence = $codingSequence; - } - public function getCodingSequence() - { - return $this->codingSequence; - } - public function setExons($exons) - { - $this->exons = $exons; - } - public function getExons() - { - return $this->exons; - } - public function setGeneId($geneId) - { - $this->geneId = $geneId; - } - public function getGeneId() - { - return $this->geneId; - } -} - -class Google_Service_Genomics_TranscriptCodingSequence extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} - -class Google_Service_Genomics_TranscriptExon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - protected $frameType = 'Google_Service_Genomics_Int32Value'; - protected $frameDataType = ''; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setFrame(Google_Service_Genomics_Int32Value $frame) - { - $this->frame = $frame; - } - public function getFrame() - { - return $this->frame; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_Variant extends Google_Collection -{ - protected $collection_key = 'names'; - protected $internal_gapi_mappings = array( - ); - public $alternateBases; - protected $callsType = 'Google_Service_Genomics_GenomicsCall'; - protected $callsDataType = 'array'; - public $created; - public $end; - public $filter; - public $id; - public $info; - public $names; - public $quality; - public $referenceBases; - public $referenceName; - public $start; - public $variantSetId; - - - public function setAlternateBases($alternateBases) - { - $this->alternateBases = $alternateBases; - } - public function getAlternateBases() - { - return $this->alternateBases; - } - public function setCalls($calls) - { - $this->calls = $calls; - } - public function getCalls() - { - return $this->calls; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setNames($names) - { - $this->names = $names; - } - public function getNames() - { - return $this->names; - } - public function setQuality($quality) - { - $this->quality = $quality; - } - public function getQuality() - { - return $this->quality; - } - public function setReferenceBases($referenceBases) - { - $this->referenceBases = $referenceBases; - } - public function getReferenceBases() - { - return $this->referenceBases; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } -} - -class Google_Service_Genomics_VariantAnnotation extends Google_Collection -{ - protected $collection_key = 'transcriptIds'; - protected $internal_gapi_mappings = array( - ); - public $alternateBases; - public $clinicalSignificance; - protected $conditionsType = 'Google_Service_Genomics_VariantAnnotationCondition'; - protected $conditionsDataType = 'array'; - public $effect; - public $geneId; - public $transcriptIds; - public $type; - - - public function setAlternateBases($alternateBases) - { - $this->alternateBases = $alternateBases; - } - public function getAlternateBases() - { - return $this->alternateBases; - } - public function setClinicalSignificance($clinicalSignificance) - { - $this->clinicalSignificance = $clinicalSignificance; - } - public function getClinicalSignificance() - { - return $this->clinicalSignificance; - } - public function setConditions($conditions) - { - $this->conditions = $conditions; - } - public function getConditions() - { - return $this->conditions; - } - public function setEffect($effect) - { - $this->effect = $effect; - } - public function getEffect() - { - return $this->effect; - } - public function setGeneId($geneId) - { - $this->geneId = $geneId; - } - public function getGeneId() - { - return $this->geneId; - } - public function setTranscriptIds($transcriptIds) - { - $this->transcriptIds = $transcriptIds; - } - public function getTranscriptIds() - { - return $this->transcriptIds; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Genomics_VariantAnnotationCondition extends Google_Collection -{ - protected $collection_key = 'names'; - protected $internal_gapi_mappings = array( - ); - public $conceptId; - protected $externalIdsType = 'Google_Service_Genomics_ExternalId'; - protected $externalIdsDataType = 'array'; - public $names; - public $omimId; - - - public function setConceptId($conceptId) - { - $this->conceptId = $conceptId; - } - public function getConceptId() - { - return $this->conceptId; - } - public function setExternalIds($externalIds) - { - $this->externalIds = $externalIds; - } - public function getExternalIds() - { - return $this->externalIds; - } - public function setNames($names) - { - $this->names = $names; - } - public function getNames() - { - return $this->names; - } - public function setOmimId($omimId) - { - $this->omimId = $omimId; - } - public function getOmimId() - { - return $this->omimId; - } -} - -class Google_Service_Genomics_VariantInfo extends Google_Model -{ -} - -class Google_Service_Genomics_VariantSet extends Google_Collection -{ - protected $collection_key = 'referenceBounds'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $id; - protected $metadataType = 'Google_Service_Genomics_Metadata'; - protected $metadataDataType = 'array'; - protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; - protected $referenceBoundsDataType = 'array'; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setReferenceBounds($referenceBounds) - { - $this->referenceBounds = $referenceBounds; - } - public function getReferenceBounds() - { - return $this->referenceBounds; - } -} From f42fccb053a6b9b2ae252ae844f514d0e621d3cd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:01 -0700 Subject: [PATCH 0822/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 381 ++++++++++++++++++++++++++---- 1 file changed, 333 insertions(+), 48 deletions(-) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 8e6f015b8..8f332cad2 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,6 +37,7 @@ class Google_Service_Webmasters extends Google_Service const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; + public $searchanalytics; public $sitemaps; public $sites; public $urlcrawlerrorscounts; @@ -51,10 +52,31 @@ class Google_Service_Webmasters extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webmasters/v3/'; $this->version = 'v3'; $this->serviceName = 'webmasters'; + $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( + $this, + $this->serviceName, + 'searchanalytics', + array( + 'methods' => array( + 'query' => array( + 'path' => 'sites/{siteUrl}/searchAnalytics/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( $this, $this->serviceName, @@ -284,6 +306,43 @@ public function __construct(Google_Client $client) } +/** + * The "searchanalytics" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $searchanalytics = $webmastersService->searchanalytics; + * + */ +class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource +{ + + /** + * [LIMITED ACCESS] + * + * Query your data with filters and parameters that you define. Returns zero or + * more rows grouped by the row keys that you define. You must define a date + * range of one or more days. + * + * When date is one of the group by values, any days without data are omitted + * from the result list. If you need to know which days have data, issue a broad + * date range query grouped by date for any metric, and see which day rows are + * returned. (searchanalytics.query) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param Google_SearchAnalyticsQueryRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse + */ + public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); + } +} + /** * The "sitemaps" collection of methods. * Typical usage is: @@ -298,10 +357,10 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc /** * Deletes a sitemap from this site. (sitemaps.delete) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the actual sitemap (for example - * http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. */ public function delete($siteUrl, $feedpath, $optParams = array()) @@ -314,10 +373,10 @@ public function delete($siteUrl, $feedpath, $optParams = array()) /** * Retrieves information about a specific sitemap. (sitemaps.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the actual sitemap (for example - * http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSitemap */ @@ -329,13 +388,16 @@ public function get($siteUrl, $feedpath, $optParams = array()) } /** - * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) + * Lists the sitemaps-entries submitted for this site, or included in the + * sitemap index file (if sitemapIndex is specified in the request). + * (sitemaps.listSitemaps) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ * @param array $optParams Optional parameters. * - * @opt_param string sitemapIndex A URL of a site's sitemap index. + * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: + * http://www.example.com/sitemapindex.xml * @return Google_Service_Webmasters_SitemapsListResponse */ public function listSitemaps($siteUrl, $optParams = array()) @@ -348,9 +410,10 @@ public function listSitemaps($siteUrl, $optParams = array()) /** * Submits a sitemap for a site. (sitemaps.submit) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the sitemap to add. + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the sitemap to add. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. */ public function submit($siteUrl, $feedpath, $optParams = array()) @@ -389,8 +452,8 @@ public function add($siteUrl, $optParams = array()) * Removes a site from the set of the user's Webmaster Tools sites. * (sites.delete) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ * @param array $optParams Optional parameters. */ public function delete($siteUrl, $optParams = array()) @@ -403,8 +466,8 @@ public function delete($siteUrl, $optParams = array()) /** * Retrieves information about specific site. (sites.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSite */ @@ -416,7 +479,7 @@ public function get($siteUrl, $optParams = array()) } /** - * Lists your Webmaster Tools sites. (sites.listSites) + * Lists the user's Webmaster Tools sites. (sites.listSites) * * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_SitesListResponse @@ -444,14 +507,14 @@ class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Ser * Retrieves a time series of the number of URL crawl errors per error category * and platform. (urlcrawlerrorscounts.query) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ * @param array $optParams Optional parameters. * - * @opt_param string category The crawl error category, for example - * 'serverError'. If not specified, we return results for all categories. + * @opt_param string category The crawl error category. For example: + * serverError. If not specified, returns results for all categories. * @opt_param string platform The user agent type (platform) that made the - * request, for example 'web'. If not specified, we return results for all + * request. For example: web. If not specified, returns results for all * platforms. * @opt_param bool latestCountsOnly If true, returns only the latest crawl error * counts. @@ -480,14 +543,16 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se * Retrieves details about crawl errors for a site's sample URL. * (urlcrawlerrorssamples.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $url The relative path (without the site) of the sample URL; - * must be one of the URLs returned by list - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSample */ @@ -502,12 +567,12 @@ public function get($siteUrl, $url, $category, $platform, $optParams = array()) * Lists a site's sample URLs for the specified crawl error category and * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse */ @@ -522,14 +587,16 @@ public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optPa * Marks the provided site's sample URL as fixed, and removes it from the * samples list. (urlcrawlerrorssamples.markAsFixed) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $url The relative path (without the site) of the sample URL; - * must be one of the URLs returned by list - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. */ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) @@ -543,6 +610,224 @@ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = a +class Google_Service_Webmasters_ApiDataRow extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $clicks; + public $ctr; + public $impressions; + public $keys; + public $position; + + + public function setClicks($clicks) + { + $this->clicks = $clicks; + } + public function getClicks() + { + return $this->clicks; + } + public function setCtr($ctr) + { + $this->ctr = $ctr; + } + public function getCtr() + { + return $this->ctr; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + +class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dimension; + public $expression; + public $operator; + + + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } +} + +class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection +{ + protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); + protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter'; + protected $filtersDataType = 'array'; + public $groupType; + + + public function setFilters($filters) + { + $this->filters = $filters; + } + public function getFilters() + { + return $this->filters; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection +{ + protected $collection_key = 'dimensions'; + protected $internal_gapi_mappings = array( + ); + public $aggregationType; + protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup'; + protected $dimensionFilterGroupsDataType = 'array'; + public $dimensions; + public $endDate; + public $rowLimit; + public $searchType; + public $startDate; + + + public function setAggregationType($aggregationType) + { + $this->aggregationType = $aggregationType; + } + public function getAggregationType() + { + return $this->aggregationType; + } + public function setDimensionFilterGroups($dimensionFilterGroups) + { + $this->dimensionFilterGroups = $dimensionFilterGroups; + } + public function getDimensionFilterGroups() + { + return $this->dimensionFilterGroups; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRowLimit($rowLimit) + { + $this->rowLimit = $rowLimit; + } + public function getRowLimit() + { + return $this->rowLimit; + } + public function setSearchType($searchType) + { + $this->searchType = $searchType; + } + public function getSearchType() + { + return $this->searchType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection +{ + protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); + public $responseAggregationType; + protected $rowsType = 'Google_Service_Webmasters_ApiDataRow'; + protected $rowsDataType = 'array'; + + + public function setResponseAggregationType($responseAggregationType) + { + $this->responseAggregationType = $responseAggregationType; + } + public function getResponseAggregationType() + { + return $this->responseAggregationType; + } + public function setRows($rows) + { + $this->rows = $rows; + } + public function getRows() + { + return $this->rows; + } +} + class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection { protected $collection_key = 'sitemap'; From a0a4b725ef111f76ddb4cebe580914a8df2c1949 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:01 -0700 Subject: [PATCH 0823/1274] Updated QPXExpress.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/QPXExpress.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index b38fd13c4..dad951827 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -44,6 +44,7 @@ class Google_Service_QPXExpress extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'qpxExpress/v1/trips/'; $this->version = 'v1'; $this->serviceName = 'qpxExpress'; From b704b9a41b6e2b5d86fff0c09f5395ff44c966c3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:02 -0700 Subject: [PATCH 0824/1274] Updated Calendar.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Calendar.php | 80 ++++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index bccc5796f..377357f28 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -55,6 +55,7 @@ class Google_Service_Calendar extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'calendar/v3/'; $this->version = 'v3'; $this->serviceName = 'calendar'; @@ -469,6 +470,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'insert' => array( 'path' => 'calendars/{calendarId}/events', @@ -479,6 +484,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'sendNotifications' => array( 'location' => 'query', 'type' => 'boolean', @@ -665,6 +674,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxAttendees' => array( 'location' => 'query', 'type' => 'integer', @@ -711,6 +724,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxAttendees' => array( 'location' => 'query', 'type' => 'integer', @@ -1103,7 +1120,7 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1182,7 +1199,7 @@ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $p * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1411,6 +1428,9 @@ public function get($calendarId, $eventId, $optParams = array()) * @param string $calendarId Calendar identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event */ public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1427,6 +1447,8 @@ public function import($calendarId, Google_Service_Calendar_Event $postBody, $op * @param Google_Event $postBody * @param array $optParams Optional parameters. * + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @opt_param bool sendNotifications Whether to send notifications about the * creation of the new event. Optional. The default is False. * @opt_param int maxAttendees The maximum number of attendees to include in the @@ -1601,6 +1623,8 @@ public function move($calendarId, $eventId, $destination, $optParams = array()) * 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 supportsAttachments Whether API client performing operation + * supports event attachments. 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. @@ -1648,6 +1672,8 @@ public function quickAdd($calendarId, $text, $optParams = array()) * 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 supportsAttachments Whether API client performing operation + * supports event attachments. 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. @@ -2542,6 +2568,8 @@ class Google_Service_Calendar_Event extends Google_Collection protected $internal_gapi_mappings = array( ); public $anyoneCanAddSelf; + protected $attachmentsType = 'Google_Service_Calendar_EventAttachment'; + protected $attachmentsDataType = 'array'; protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; protected $attendeesDataType = 'array'; public $attendeesOmitted; @@ -2597,6 +2625,14 @@ public function getAnyoneCanAddSelf() { return $this->anyoneCanAddSelf; } + public function setAttachments($attachments) + { + $this->attachments = $attachments; + } + public function getAttachments() + { + return $this->attachments; + } public function setAttendees($attendees) { $this->attendees = $attendees; @@ -2881,6 +2917,46 @@ public function getVisibility() class Google_Service_Calendar_EventAttachment extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $fileUrl; + public $iconLink; + public $mimeType; + public $title; + + + public function setFileUrl($fileUrl) + { + $this->fileUrl = $fileUrl; + } + public function getFileUrl() + { + return $this->fileUrl; + } + public function setIconLink($iconLink) + { + $this->iconLink = $iconLink; + } + public function getIconLink() + { + return $this->iconLink; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } } class Google_Service_Calendar_EventAttendee extends Google_Model From 97454bf4f9285074dcd4bd757917e4ba40289d67 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:03 -0700 Subject: [PATCH 0825/1274] Updated TagManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/TagManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index d09db631f..ebc9228ea 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -71,6 +71,7 @@ class Google_Service_TagManager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tagmanager/v1/'; $this->version = 'v1'; $this->serviceName = 'tagmanager'; From 14b0c138d1501807acf7f3f8c0154e7d1482dcdf Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:03 -0700 Subject: [PATCH 0826/1274] Updated Dns.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Dns.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index 209a95732..5c62e189d 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -55,6 +55,7 @@ class Google_Service_Dns extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'dns/v1/projects/'; $this->version = 'v1'; $this->serviceName = 'dns'; From 3a947490495540f4413dfd99fe1ba3e6dccd3275 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:04 -0700 Subject: [PATCH 0827/1274] Updated Tasks.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Tasks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php index 48c04d8a9..39986322e 100644 --- a/src/Google/Service/Tasks.php +++ b/src/Google/Service/Tasks.php @@ -49,6 +49,7 @@ class Google_Service_Tasks extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tasks/v1/'; $this->version = 'v1'; $this->serviceName = 'tasks'; From 289690f7c943aef5e123d967b05c3fe2b472d0cb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:05 -0700 Subject: [PATCH 0828/1274] Updated SQLAdmin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/SQLAdmin.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 199a6ead2..12882d356 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -55,6 +55,7 @@ class Google_Service_SQLAdmin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'sql/v1beta4/'; $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; @@ -2970,6 +2971,7 @@ class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model protected $internal_gapi_mappings = array( ); public $backupRunId; + public $instanceId; public $kind; @@ -2981,6 +2983,14 @@ public function getBackupRunId() { return $this->backupRunId; } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } public function setKind($kind) { $this->kind = $kind; From 7252a9b0966ca9f6fb1dcfb7d4a5fa796e54c747 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:05 -0700 Subject: [PATCH 0829/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 80 ++++++++++++++++++++++++++++----- 1 file changed, 70 insertions(+), 10 deletions(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 3002d37f0..f76da045d 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -64,6 +64,7 @@ class Google_Service_Bigquery extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'bigquery/v2/'; $this->version = 'v2'; $this->serviceName = 'bigquery'; @@ -180,7 +181,22 @@ public function __construct(Google_Client $client) 'jobs', array( 'methods' => array( - 'get' => array( + 'cancel' => array( + 'path' => 'project/{projectId}/jobs/{jobId}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'projects/{projectId}/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -629,6 +645,23 @@ public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource { + /** + * Requests that a job be cancelled. This call will return immediately, and the + * client will need to poll for the job status to see if the cancel completed + * successfully. (jobs.cancel) + * + * @param string $projectId Project ID of the job to cancel + * @param string $jobId Job ID of the job to cancel + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_JobCancelResponse + */ + public function cancel($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse"); + } + /** * Returns information about a specific job. Job information is available for a * six month period after creation. Requires that you're the person who ran the @@ -1016,6 +1049,7 @@ class Google_Service_Bigquery_Dataset extends Google_Collection public $id; public $kind; public $lastModifiedTime; + public $location; public $selfLink; @@ -1099,6 +1133,14 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1603,6 +1645,33 @@ public function getUserEmail() } } +class Google_Service_Bigquery_JobCancelResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $jobType = 'Google_Service_Bigquery_Job'; + protected $jobDataType = ''; + public $kind; + + + public function setJob(Google_Service_Bigquery_Job $job) + { + $this->job = $job; + } + public function getJob() + { + return $this->job; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_Bigquery_JobConfiguration extends Google_Model { protected $internal_gapi_mappings = array( @@ -2134,7 +2203,6 @@ class Google_Service_Bigquery_JobList extends Google_Collection protected $jobsDataType = 'array'; public $kind; public $nextPageToken; - public $totalItems; public function setEtag($etag) @@ -2169,14 +2237,6 @@ 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 From 033c6b35c76e0c57899471783d734400867e4355 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:06 -0700 Subject: [PATCH 0830/1274] Updated GamesConfiguration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GamesConfiguration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/GamesConfiguration.php b/src/Google/Service/GamesConfiguration.php index 74d26616c..a873b0198 100644 --- a/src/Google/Service/GamesConfiguration.php +++ b/src/Google/Service/GamesConfiguration.php @@ -47,6 +47,7 @@ class Google_Service_GamesConfiguration extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1configuration/'; $this->version = 'v1configuration'; $this->serviceName = 'gamesConfiguration'; From aecdd6ce54e91cb40ed0cbb1edf750cd389a3489 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:07 -0700 Subject: [PATCH 0831/1274] Updated Groupssettings.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Groupssettings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php index c8c3dfed5..b358bf0da 100644 --- a/src/Google/Service/Groupssettings.php +++ b/src/Google/Service/Groupssettings.php @@ -45,6 +45,7 @@ class Google_Service_Groupssettings extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; $this->version = 'v1'; $this->serviceName = 'groupssettings'; From 9884882dffb5b89aaacddcd8889e70b013ebb23d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:07 -0700 Subject: [PATCH 0832/1274] Updated AndroidEnterprise.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidEnterprise.php | 201 ++++++++++++++++++++++- 1 file changed, 199 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php index 3b781f9b5..541b765de 100644 --- a/src/Google/Service/AndroidEnterprise.php +++ b/src/Google/Service/AndroidEnterprise.php @@ -56,6 +56,7 @@ class Google_Service_AndroidEnterprise extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'androidenterprise/v1/'; $this->version = 'v1'; $this->serviceName = 'androidenterprise'; @@ -753,7 +754,41 @@ public function __construct(Google_Client $client) 'products', array( 'methods' => array( - 'get' => array( + 'approve' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/approve', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generateApprovalUrl' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( 'path' => 'enterprises/{enterpriseId}/products/{productId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -1641,6 +1676,43 @@ public function get($permissionId, $optParams = array()) class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource { + /** + * Approves the specified product (and the relevant app permissions, if any). + * (products.approve) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param Google_ProductsApproveRequest $postBody + * @param array $optParams Optional parameters. + */ + public function approve($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('approve', array($params)); + } + + /** + * Generates a URL that can be used to display an iframe to view the product's + * permissions (if any) and approve the product. This URL can be used to approve + * the product for a limited time (currently 1 hour) using the Products.approve + * call. (products.generateApprovalUrl) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param string languageCode The language code that will be used for + * permission names and descriptions in the returned iframe. + * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse + */ + public function generateApprovalUrl($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('generateApprovalUrl', array($params), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse"); + } + /** * Retrieves details of a product for display to an enterprise admin. * (products.get) @@ -1938,6 +2010,58 @@ public function getValueString() } } +class Google_Service_AndroidEnterprise_AppVersion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $versionCode; + public $versionString; + + + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } + public function setVersionString($versionString) + { + $this->versionString = $versionString; + } + public function getVersionString() + { + return $this->versionString; + } +} + +class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $approvalUrl; + public $kind; + + + public function setApprovalUrl($approvalUrl) + { + $this->approvalUrl = $approvalUrl; + } + public function getApprovalUrl() + { + return $this->approvalUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_AndroidEnterprise_Collection extends Google_Collection { protected $collection_key = 'productId'; @@ -2054,6 +2178,7 @@ class Google_Service_AndroidEnterprise_Device extends Google_Model ); public $androidId; public $kind; + public $managementType; public function setAndroidId($androidId) @@ -2072,6 +2197,14 @@ public function getKind() { return $this->kind; } + public function setManagementType($managementType) + { + $this->managementType = $managementType; + } + public function getManagementType() + { + return $this->managementType; + } } class Google_Service_AndroidEnterprise_DeviceState extends Google_Model @@ -2523,19 +2656,32 @@ public function getPermissionId() } } -class Google_Service_AndroidEnterprise_Product extends Google_Model +class Google_Service_AndroidEnterprise_Product extends Google_Collection { + protected $collection_key = 'appVersion'; protected $internal_gapi_mappings = array( ); + protected $appVersionType = 'Google_Service_AndroidEnterprise_AppVersion'; + protected $appVersionDataType = 'array'; public $authorName; public $detailsUrl; + public $distributionChannel; public $iconUrl; public $kind; public $productId; + public $requiresContainerApp; public $title; public $workDetailsUrl; + public function setAppVersion($appVersion) + { + $this->appVersion = $appVersion; + } + public function getAppVersion() + { + return $this->appVersion; + } public function setAuthorName($authorName) { $this->authorName = $authorName; @@ -2552,6 +2698,14 @@ public function getDetailsUrl() { return $this->detailsUrl; } + public function setDistributionChannel($distributionChannel) + { + $this->distributionChannel = $distributionChannel; + } + public function getDistributionChannel() + { + return $this->distributionChannel; + } public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; @@ -2576,6 +2730,14 @@ public function getProductId() { return $this->productId; } + public function setRequiresContainerApp($requiresContainerApp) + { + $this->requiresContainerApp = $requiresContainerApp; + } + public function getRequiresContainerApp() + { + return $this->requiresContainerApp; + } public function setTitle($title) { $this->title = $title; @@ -2657,6 +2819,41 @@ public function getProductId() } } +class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo'; + protected $approvalUrlInfoDataType = ''; + + + public function setApprovalUrlInfo(Google_Service_AndroidEnterprise_ApprovalUrlInfo $approvalUrlInfo) + { + $this->approvalUrlInfo = $approvalUrlInfo; + } + public function getApprovalUrlInfo() + { + return $this->approvalUrlInfo; + } +} + +class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $url; + + + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + class Google_Service_AndroidEnterprise_User extends Google_Model { protected $internal_gapi_mappings = array( From 29655b4a3a686ae33abe8c1a97b398d1de2a1bfd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:08 -0700 Subject: [PATCH 0833/1274] Updated Autoscaler.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Autoscaler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index 8d483329e..c3d1c1938 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -51,6 +51,7 @@ class Google_Service_Autoscaler extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'autoscaler/v1beta2/'; $this->version = 'v1beta2'; $this->serviceName = 'autoscaler'; From 2a5b4516bcc00dc9a03634e785299ba7bd2a0866 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:09 -0700 Subject: [PATCH 0834/1274] Updated Plus.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Plus.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index e28783b74..9aa65c439 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -57,6 +57,7 @@ class Google_Service_Plus extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plus/v1/'; $this->version = 'v1'; $this->serviceName = 'plus'; From fb9c0b0b8e038787928f1e89f8851a4b09dbdd98 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:09 -0700 Subject: [PATCH 0835/1274] Updated AdSense.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSense.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index 04b4d3668..8e36a132f 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -73,6 +73,7 @@ class Google_Service_AdSense extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adsense/v1.4/'; $this->version = 'v1.4'; $this->serviceName = 'adsense'; From e09c9babef12141cd246d1207b6506a391b3950f Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:10 -0700 Subject: [PATCH 0836/1274] Updated Analytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Analytics.php | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 8e9ea1566..954ca0f08 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -82,6 +82,7 @@ class Google_Service_Analytics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'analytics/v3/'; $this->version = 'v3'; $this->serviceName = 'analytics'; @@ -6071,11 +6072,14 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model public $extractA; public $extractB; public $fieldA; + public $fieldAIndex; public $fieldARequired; public $fieldB; + public $fieldBIndex; public $fieldBRequired; public $outputConstructor; public $outputToField; + public $outputToFieldIndex; public $overrideOutputField; @@ -6111,6 +6115,14 @@ public function getFieldA() { return $this->fieldA; } + public function setFieldAIndex($fieldAIndex) + { + $this->fieldAIndex = $fieldAIndex; + } + public function getFieldAIndex() + { + return $this->fieldAIndex; + } public function setFieldARequired($fieldARequired) { $this->fieldARequired = $fieldARequired; @@ -6127,6 +6139,14 @@ public function getFieldB() { return $this->fieldB; } + public function setFieldBIndex($fieldBIndex) + { + $this->fieldBIndex = $fieldBIndex; + } + public function getFieldBIndex() + { + return $this->fieldBIndex; + } public function setFieldBRequired($fieldBRequired) { $this->fieldBRequired = $fieldBRequired; @@ -6151,6 +6171,14 @@ public function getOutputToField() { return $this->outputToField; } + public function setOutputToFieldIndex($outputToFieldIndex) + { + $this->outputToFieldIndex = $outputToFieldIndex; + } + public function getOutputToFieldIndex() + { + return $this->outputToFieldIndex; + } public function setOverrideOutputField($overrideOutputField) { $this->overrideOutputField = $overrideOutputField; @@ -6168,6 +6196,7 @@ class Google_Service_Analytics_FilterExpression extends Google_Model public $caseSensitive; public $expressionValue; public $field; + public $fieldIndex; public $kind; public $matchType; @@ -6196,6 +6225,14 @@ public function getField() { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } public function setKind($kind) { $this->kind = $kind; @@ -6219,6 +6256,7 @@ class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model protected $internal_gapi_mappings = array( ); public $field; + public $fieldIndex; public function setField($field) @@ -6229,6 +6267,14 @@ public function getField() { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } } class Google_Service_Analytics_FilterParentLink extends Google_Model @@ -6316,6 +6362,7 @@ class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Mode ); public $caseSensitive; public $field; + public $fieldIndex; public $replaceString; public $searchString; @@ -6336,6 +6383,14 @@ public function getField() { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } public function setReplaceString($replaceString) { $this->replaceString = $replaceString; @@ -6359,6 +6414,7 @@ class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model protected $internal_gapi_mappings = array( ); public $field; + public $fieldIndex; public function setField($field) @@ -6369,6 +6425,14 @@ public function getField() { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } } class Google_Service_Analytics_Filters extends Google_Collection From 8afd478f00b7d633ce012a7ffcb554b0424cf8da Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:11 -0700 Subject: [PATCH 0837/1274] Updated Admin.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Admin.php b/src/Google/Service/Admin.php index 05807f2a1..3ed749973 100644 --- a/src/Google/Service/Admin.php +++ b/src/Google/Service/Admin.php @@ -45,6 +45,7 @@ class Google_Service_Admin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'email/v2/users/'; $this->version = 'email_migration_v2'; $this->serviceName = 'admin'; From f153af2687e6d9a8667b166ccad816e0fe44d927 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:11 -0700 Subject: [PATCH 0838/1274] Updated YouTubeAnalytics.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/YouTubeAnalytics.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index d95d06bab..2f6a80aa3 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -61,6 +61,7 @@ class Google_Service_YouTubeAnalytics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'youtube/analytics/v1/'; $this->version = 'v1'; $this->serviceName = 'youtubeAnalytics'; From 7bfefe8d5c3ad5be0ebf2fce302cfe0bcfb18f0d Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:12 -0700 Subject: [PATCH 0839/1274] Updated Urlshortener.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Urlshortener.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index 083b13dd2..d46bb8c43 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -45,6 +45,7 @@ class Google_Service_Urlshortener extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'urlshortener/v1/'; $this->version = 'v1'; $this->serviceName = 'urlshortener'; From 91dabd46dddfd0ace563d5522f04fe6cf5fa2f59 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:13 -0700 Subject: [PATCH 0840/1274] Updated AndroidPublisher.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AndroidPublisher.php | 155 ++++++++++++++++++++++++ 1 file changed, 155 insertions(+) diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 8d1b60298..8b211a277 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -43,6 +43,7 @@ class Google_Service_AndroidPublisher extends Google_Service public $edits_listings; public $edits_testers; public $edits_tracks; + public $entitlements; public $inappproducts; public $purchases_products; public $purchases_subscriptions; @@ -56,6 +57,7 @@ class Google_Service_AndroidPublisher extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'androidpublisher/v2/applications/'; $this->version = 'v2'; $this->serviceName = 'androidpublisher'; @@ -900,6 +902,42 @@ public function __construct(Google_Client $client) ) ) ); + $this->entitlements = new Google_Service_AndroidPublisher_Entitlements_Resource( + $this, + $this->serviceName, + 'entitlements', + array( + 'methods' => array( + 'list' => array( + 'path' => '{packageName}/entitlements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'productId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( $this, $this->serviceName, @@ -1983,6 +2021,40 @@ public function update($packageName, $editId, $track, Google_Service_AndroidPubl } } +/** + * The "entitlements" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $entitlements = $androidpublisherService->entitlements; + * + */ +class Google_Service_AndroidPublisher_Entitlements_Resource extends Google_Service_Resource +{ + + /** + * Lists the user's current inapp item or subscription entitlements + * (entitlements.listEntitlements) + * + * @param string $packageName The package name of the application the inapp + * product was sold in (for example, 'com.some.thing'). + * @param array $optParams Optional parameters. + * + * @opt_param string token + * @opt_param string startIndex + * @opt_param string maxResults + * @opt_param string productId The product id of the inapp product (for example, + * 'sku1'). This can be used to restrict the result set. + * @return Google_Service_AndroidPublisher_EntitlementsListResponse + */ + public function listEntitlements($packageName, $optParams = array()) + { + $params = array('packageName' => $packageName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_EntitlementsListResponse"); + } +} + /** * The "inappproducts" collection of methods. * Typical usage is: @@ -2514,6 +2586,89 @@ public function getId() } } +class Google_Service_AndroidPublisher_Entitlement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $productId; + public $productType; + public $token; + + + 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 setProductType($productType) + { + $this->productType = $productType; + } + public function getProductType() + { + return $this->productType; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + +class Google_Service_AndroidPublisher_EntitlementsListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; + protected $pageInfoDataType = ''; + protected $resourcesType = 'Google_Service_AndroidPublisher_Entitlement'; + protected $resourcesDataType = 'array'; + protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; + protected $tokenPaginationDataType = ''; + + + public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } + public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } +} + class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model { protected $internal_gapi_mappings = array( From 200926a708d927ab29ad866f10ac49a1093c2857 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:13 -0700 Subject: [PATCH 0841/1274] Updated AdSenseHost.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdSenseHost.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index cf9e353c1..101eab225 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -54,6 +54,7 @@ class Google_Service_AdSenseHost extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adsensehost/v4.1/'; $this->version = 'v4.1'; $this->serviceName = 'adsensehost'; From ff9b503f0f465ed5cb814f0ff56a802cec8212bd Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:14 -0700 Subject: [PATCH 0842/1274] Updated Freebase.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Freebase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index 81a2c911c..1fe07a053 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -43,6 +43,7 @@ class Google_Service_Freebase extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'freebase/v1/'; $this->version = 'v1'; $this->serviceName = 'freebase'; From e39b50db3aaa15160158124c838b23304afd2fbb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:15 -0700 Subject: [PATCH 0843/1274] Updated GroupsMigration.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/GroupsMigration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index 6aea31cfa..a1354e140 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -45,6 +45,7 @@ class Google_Service_GroupsMigration extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; $this->version = 'v1'; $this->serviceName = 'groupsmigration'; From d76bb34b6c9d64d5836e8e25af3661fff3ff7022 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:15 -0700 Subject: [PATCH 0844/1274] Updated Fusiontables.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Fusiontables.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index f2368f7ac..16b48288a 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -53,6 +53,7 @@ class Google_Service_Fusiontables extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fusiontables/v2/'; $this->version = 'v2'; $this->serviceName = 'fusiontables'; From 054518399cc52f592dbaa93b7c645b2d141ed799 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:16 -0700 Subject: [PATCH 0845/1274] Updated Pagespeedonline.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pagespeedonline.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php index 46e0e0d84..ec16620b6 100644 --- a/src/Google/Service/Pagespeedonline.php +++ b/src/Google/Service/Pagespeedonline.php @@ -44,6 +44,7 @@ class Google_Service_Pagespeedonline extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'pagespeedonline/v2/'; $this->version = 'v2'; $this->serviceName = 'pagespeedonline'; From b043a7b664b7903c0127a3a6696df265be7e8055 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:16 -0700 Subject: [PATCH 0846/1274] Updated IdentityToolkit.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/IdentityToolkit.php | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 7bfb2f944..32cf66f29 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -43,6 +43,7 @@ class Google_Service_IdentityToolkit extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'identitytoolkit/v3/relyingparty/'; $this->version = 'v3'; $this->serviceName = 'identitytoolkit'; @@ -729,6 +730,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe ); public $captchaChallenge; public $captchaResponse; + public $disableUser; public $displayName; public $email; public $emailVerified; @@ -738,6 +740,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe public $password; public $provider; public $upgradeToFederatedLogin; + public $validSince; public function setCaptchaChallenge($captchaChallenge) @@ -756,6 +759,14 @@ public function getCaptchaResponse() { return $this->captchaResponse; } + public function setDisableUser($disableUser) + { + $this->disableUser = $disableUser; + } + public function getDisableUser() + { + return $this->disableUser; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -828,6 +839,14 @@ public function getUpgradeToFederatedLogin() { return $this->upgradeToFederatedLogin; } + public function setValidSince($validSince) + { + $this->validSince = $validSince; + } + public function getValidSince() + { + return $this->validSince; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection @@ -1246,6 +1265,7 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection protected $collection_key = 'providerUserInfo'; protected $internal_gapi_mappings = array( ); + public $disabled; public $displayName; public $email; public $emailVerified; @@ -1256,9 +1276,18 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo'; protected $providerUserInfoDataType = 'array'; public $salt; + public $validSince; public $version; + public function setDisabled($disabled) + { + $this->disabled = $disabled; + } + public function getDisabled() + { + return $this->disabled; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1331,6 +1360,14 @@ public function getSalt() { return $this->salt; } + public function setValidSince($validSince) + { + $this->validSince = $validSince; + } + public function getValidSince() + { + return $this->validSince; + } public function setVersion($version) { $this->version = $version; From 6b26f5ca6c161700153eafa1c298601b29a7747c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:17 -0700 Subject: [PATCH 0847/1274] Removed Cloudsearch.php --- src/Google/Service/Cloudsearch.php | 57 ------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 src/Google/Service/Cloudsearch.php diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php deleted file mode 100644 index a48878c92..000000000 --- a/src/Google/Service/Cloudsearch.php +++ /dev/null @@ -1,57 +0,0 @@ - - * The Google Cloud Search API defines an application interface to index - * documents that contain structured data and to search those indexes. It - * supports full text search.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Cloudsearch extends Google_Service -{ - - - - - - /** - * Constructs the internal representation of the Cloudsearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudsearch'; - - } -} - - - - From 49dd7d7bcbad1b76b4116969037a8b71cd2370fb Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:17 -0700 Subject: [PATCH 0848/1274] Removed Audit.php --- src/Google/Service/Audit.php | 416 ----------------------------------- 1 file changed, 416 deletions(-) delete mode 100644 src/Google/Service/Audit.php diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php deleted file mode 100644 index 60672ecc3..000000000 --- a/src/Google/Service/Audit.php +++ /dev/null @@ -1,416 +0,0 @@ - - * 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) - { - parent::__construct($client); - $this->servicePath = 'apps/reporting/audit/v1/'; - $this->version = 'v1'; - $this->serviceName = 'audit'; - - $this->activities = new Google_Service_Audit_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => '{customerId}/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'actorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorApplicationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'caller' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'continuationToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $auditService = new Google_Service_Audit(...); - * $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.listActivities) - * - * @param string $customerId Represents the customer who is the owner of target - * object on which action was performed. - * @param string $applicationId Application ID of the application on which the - * event was performed. - * @param array $optParams Optional parameters. - * - * @opt_param string actorEmail Email address of the user who performed the - * action. - * @opt_param string actorApplicationId Application ID of the application which - * interacted on behalf of the user while performing the event. - * @opt_param string actorIpAddress IP Address of host where the event was - * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string caller Type of the caller. - * @opt_param int maxResults Number of activity records to be shown in each - * page. - * @opt_param string eventName Name of the event being queried. - * @opt_param string startTime Return events which occured at or after this - * time. - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string continuationToken Next page URL. - * @return Google_Service_Audit_Activities - */ - public function listActivities($customerId, $applicationId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Audit_Activities"); - } -} - - - - -class Google_Service_Audit_Activities extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Audit_Activity'; - protected $itemsDataType = 'array'; - 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 $collection_key = 'events'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Audit_ActivityActor'; - protected $actorDataType = ''; - protected $eventsType = 'Google_Service_Audit_ActivityEvents'; - protected $eventsDataType = 'array'; - protected $idType = 'Google_Service_Audit_ActivityId'; - protected $idDataType = ''; - public $ipAddress; - public $kind; - public $ownerDomain; - - - public function setActor(Google_Service_Audit_ActivityActor $actor) - { - $this->actor = $actor; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $eventType; - public $name; - protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; - protected $parametersDataType = 'array'; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} From bd2ff62f2bada75402981d94511b99f8b23c4d23 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Fri, 26 Jun 2015 13:45:19 -0700 Subject: [PATCH 0849/1274] Removed Deploymentmanager.php --- src/Google/Service/Deploymentmanager.php | 1194 ---------------------- 1 file changed, 1194 deletions(-) delete mode 100644 src/Google/Service/Deploymentmanager.php diff --git a/src/Google/Service/Deploymentmanager.php b/src/Google/Service/Deploymentmanager.php deleted file mode 100644 index 71e1b699c..000000000 --- a/src/Google/Service/Deploymentmanager.php +++ /dev/null @@ -1,1194 +0,0 @@ - - * The Deployment Manager API allows users to declaratively configure, deploy - * and run complex solutions on the Google Cloud Platform.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Deploymentmanager extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $deployments; - public $manifests; - public $operations; - public $resources; - public $types; - - - /** - * Constructs the internal representation of the Deploymentmanager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'deploymentmanager/v2beta1/projects/'; - $this->version = 'v2beta1'; - $this->serviceName = 'deploymentmanager'; - - $this->deployments = new Google_Service_Deploymentmanager_Deployments_Resource( - $this, - $this->serviceName, - 'deployments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->manifests = new Google_Service_Deploymentmanager_Manifests_Resource( - $this, - $this->serviceName, - 'manifests', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'manifest' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_Deploymentmanager_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->resources = new Google_Service_Deploymentmanager_Resources_Resource( - $this, - $this->serviceName, - 'resources', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/resources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->types = new Google_Service_Deploymentmanager_Types_Resource( - $this, - $this->serviceName, - 'types', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/global/types', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "deployments" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); - * $deployments = $deploymentmanagerService->deployments; - * - */ -class Google_Service_Deploymentmanager_Deployments_Resource extends Google_Service_Resource -{ - - /** - * ! Deletes a deployment and all of the resources in the deployment. - * (deployments.delete) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_Operation - */ - public function delete($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Deploymentmanager_Operation"); - } - - /** - * ! Gets information about a specific deployment. (deployments.get) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_Deployment - */ - public function get($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Deploymentmanager_Deployment"); - } - - /** - * ! Creates a deployment and all of the resources described by the ! deployment - * manifest. (deployments.insert) - * - * @param string $project ! The project ID for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_Operation - */ - public function insert($project, Google_Service_Deploymentmanager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Deploymentmanager_Operation"); - } - - /** - * ! Lists all deployments for a given project. (deployments.listDeployments) - * - * @param string $project ! The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken ! Specifies a nextPageToken returned by a - * previous list request. This ! token can be used to request the next page of - * results from a previous ! list request. - * @opt_param int maxResults ! Maximum count of results to be returned. ! - * Acceptable values are 0 to 100, inclusive. (Default: 50) - * @return Google_Service_Deploymentmanager_DeploymentsListResponse - */ - public function listDeployments($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Deploymentmanager_DeploymentsListResponse"); - } -} - -/** - * The "manifests" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); - * $manifests = $deploymentmanagerService->manifests; - * - */ -class Google_Service_Deploymentmanager_Manifests_Resource extends Google_Service_Resource -{ - - /** - * ! Gets information about a specific manifest. (manifests.get) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param string $manifest ! The name of the manifest for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_Manifest - */ - public function get($project, $deployment, $manifest, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Deploymentmanager_Manifest"); - } - - /** - * ! Lists all manifests for a given deployment. (manifests.listManifests) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken ! Specifies a nextPageToken returned by a - * previous list request. This ! token can be used to request the next page of - * results from a previous ! list request. - * @opt_param int maxResults ! Maximum count of results to be returned. ! - * Acceptable values are 0 to 100, inclusive. (Default: 50) - * @return Google_Service_Deploymentmanager_ManifestsListResponse - */ - public function listManifests($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Deploymentmanager_ManifestsListResponse"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); - * $operations = $deploymentmanagerService->operations; - * - */ -class Google_Service_Deploymentmanager_Operations_Resource extends Google_Service_Resource -{ - - /** - * ! Gets information about a specific Operation. (operations.get) - * - * @param string $project ! The project ID for this request. - * @param string $operation ! The name of the operation for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Deploymentmanager_Operation"); - } - - /** - * ! Lists all Operations for a project. (operations.listOperations) - * - * @param string $project ! The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken ! Specifies a nextPageToken returned by a - * previous list request. This ! token can be used to request the next page of - * results from a previous ! list request. - * @opt_param int maxResults ! Maximum count of results to be returned. ! - * Acceptable values are 0 to 100, inclusive. (Default: 50) - * @return Google_Service_Deploymentmanager_OperationsListResponse - */ - public function listOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Deploymentmanager_OperationsListResponse"); - } -} - -/** - * The "resources" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); - * $resources = $deploymentmanagerService->resources; - * - */ -class Google_Service_Deploymentmanager_Resources_Resource extends Google_Service_Resource -{ - - /** - * ! Gets information about a single resource. (resources.get) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param string $resource ! The name of the resource for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Deploymentmanager_DeploymentmanagerResource - */ - public function get($project, $deployment, $resource, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Deploymentmanager_DeploymentmanagerResource"); - } - - /** - * ! Lists all resources in a given deployment. (resources.listResources) - * - * @param string $project ! The project ID for this request. - * @param string $deployment ! The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken ! Specifies a nextPageToken returned by a - * previous list request. This ! token can be used to request the next page of - * results from a previous ! list request. - * @opt_param int maxResults ! Maximum count of results to be returned. ! - * Acceptable values are 0 to 100, inclusive. (Default: 50) - * @return Google_Service_Deploymentmanager_ResourcesListResponse - */ - public function listResources($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Deploymentmanager_ResourcesListResponse"); - } -} - -/** - * The "types" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_Deploymentmanager(...); - * $types = $deploymentmanagerService->types; - * - */ -class Google_Service_Deploymentmanager_Types_Resource extends Google_Service_Resource -{ - - /** - * ! Lists all Types for Deployment Manager. (types.listTypes) - * - * @param string $project ! The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken ! Specifies a nextPageToken returned by a - * previous list request. This ! token can be used to request the next page of - * results from a previous ! list request. - * @opt_param int maxResults ! Maximum count of results to be returned. ! - * Acceptable values are 0 to 100, inclusive. (Default: 50) - * @return Google_Service_Deploymentmanager_TypesListResponse - */ - public function listTypes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Deploymentmanager_TypesListResponse"); - } -} - - - - -class Google_Service_Deploymentmanager_Deployment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $manifest; - public $name; - public $targetConfig; - - - 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 setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setTargetConfig($targetConfig) - { - $this->targetConfig = $targetConfig; - } - public function getTargetConfig() - { - return $this->targetConfig; - } -} - -class Google_Service_Deploymentmanager_DeploymentmanagerResource extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $errors; - public $id; - public $intent; - public $manifest; - public $name; - public $state; - public $type; - public $url; - - - 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 setIntent($intent) - { - $this->intent = $intent; - } - public function getIntent() - { - return $this->intent; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - 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_Deploymentmanager_DeploymentsListResponse extends Google_Collection -{ - protected $collection_key = 'deployments'; - protected $internal_gapi_mappings = array( - ); - protected $deploymentsType = 'Google_Service_Deploymentmanager_Deployment'; - protected $deploymentsDataType = 'array'; - public $nextPageToken; - - - public function setDeployments($deployments) - { - $this->deployments = $deployments; - } - public function getDeployments() - { - return $this->deployments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Deploymentmanager_Manifest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $config; - public $evaluatedConfig; - public $id; - public $name; - public $selfLink; - - - public function setConfig($config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setEvaluatedConfig($evaluatedConfig) - { - $this->evaluatedConfig = $evaluatedConfig; - } - public function getEvaluatedConfig() - { - return $this->evaluatedConfig; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - 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_Deploymentmanager_ManifestsListResponse extends Google_Collection -{ - protected $collection_key = 'manifests'; - protected $internal_gapi_mappings = array( - ); - protected $manifestsType = 'Google_Service_Deploymentmanager_Manifest'; - protected $manifestsDataType = 'array'; - public $nextPageToken; - - - public function setManifests($manifests) - { - $this->manifests = $manifests; - } - public function getManifests() - { - return $this->manifests; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Deploymentmanager_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Deploymentmanager_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $name; - public $operationType; - public $progress; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Deploymentmanager_OperationWarnings'; - protected $warningsDataType = 'array'; - - - 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_Deploymentmanager_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 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; - } -} - -class Google_Service_Deploymentmanager_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Deploymentmanager_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Deploymentmanager_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Deploymentmanager_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Deploymentmanager_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Deploymentmanager_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Deploymentmanager_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_Deploymentmanager_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Deploymentmanager_ResourcesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_Deploymentmanager_DeploymentmanagerResource'; - protected $resourcesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Deploymentmanager_Type extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Deploymentmanager_TypesListResponse extends Google_Collection -{ - protected $collection_key = 'types'; - protected $internal_gapi_mappings = array( - ); - protected $typesType = 'Google_Service_Deploymentmanager_Type'; - protected $typesDataType = 'array'; - - - public function setTypes($types) - { - $this->types = $types; - } - public function getTypes() - { - return $this->types; - } -} From a19081e4a2b5622fb4abdf2ef2e641e454ac64b5 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Jun 2015 05:59:03 -0700 Subject: [PATCH 0850/1274] Updated Bigquery.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Bigquery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index f76da045d..7076ac914 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -2876,6 +2876,7 @@ class Google_Service_Bigquery_Table extends Google_Model public $id; public $kind; public $lastModifiedTime; + public $location; public $numBytes; public $numRows; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; @@ -2952,6 +2953,14 @@ public function getLastModifiedTime() { return $this->lastModifiedTime; } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } public function setNumBytes($numBytes) { $this->numBytes = $numBytes; From e905f7fea81b382bc47eeebd29dc533e22515a01 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Jun 2015 05:59:03 -0700 Subject: [PATCH 0851/1274] Removed Compute.php --- src/Google/Service/Compute.php | 13430 ------------------------------- 1 file changed, 13430 deletions(-) delete mode 100644 src/Google/Service/Compute.php diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php deleted file mode 100644 index 6cc848b16..000000000 --- a/src/Google/Service/Compute.php +++ /dev/null @@ -1,13430 +0,0 @@ - - * 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 -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = - "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = - "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - - public $addresses; - public $backendServices; - public $diskTypes; - public $disks; - public $firewalls; - public $forwardingRules; - public $globalAddresses; - public $globalForwardingRules; - public $globalOperations; - public $httpHealthChecks; - public $images; - public $instanceTemplates; - public $instances; - public $licenses; - public $machineTypes; - public $networks; - public $projects; - public $regionOperations; - public $regions; - public $routes; - public $snapshots; - public $targetHttpProxies; - public $targetInstances; - public $targetPools; - public $targetVpnGateways; - public $urlMaps; - public $vpnTunnels; - public $zoneOperations; - public $zones; - - - /** - * Constructs the internal representation of the Compute service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'compute/v1/projects/'; - $this->version = 'v1'; - $this->serviceName = 'compute'; - - $this->addresses = new Google_Service_Compute_Addresses_Resource( - $this, - $this->serviceName, - 'addresses', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->backendServices = new Google_Service_Compute_BackendServices_Resource( - $this, - $this->serviceName, - 'backendServices', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/global/backendServices/{backendService}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( - $this, - $this->serviceName, - 'diskTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'diskType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->disks = new Google_Service_Compute_Disks_Resource( - $this, - $this->serviceName, - 'disks', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'createSnapshot' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceImage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->firewalls = new Google_Service_Compute_Firewalls_Resource( - $this, - $this->serviceName, - 'firewalls', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource( - $this, - $this->serviceName, - 'forwardingRules', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( - $this, - $this->serviceName, - 'globalAddresses', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( - $this, - $this->serviceName, - 'globalForwardingRules', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( - $this, - $this->serviceName, - 'globalOperations', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource( - $this, - $this->serviceName, - 'httpHealthChecks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->images = new Google_Service_Compute_Images_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deprecate' => array( - 'path' => '{project}/global/images/{image}/deprecate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( - $this, - $this->serviceName, - 'instanceTemplates', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceTemplate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceTemplate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/instanceTemplates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/instanceTemplates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->instances = new Google_Service_Compute_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'addAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'attachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accessConfig' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'detachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getSerialPortOutput' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'port' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'reset' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setDiskAutoDelete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoDelete' => array( - 'location' => 'query', - 'type' => 'boolean', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setMetadata' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setScheduling' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTags' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'start' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/start', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stop' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/stop', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->licenses = new Google_Service_Compute_Licenses_Resource( - $this, - $this->serviceName, - 'licenses', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/licenses/{license}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'license' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( - $this, - $this->serviceName, - 'machineTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'machineType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->networks = new Google_Service_Compute_Networks_Resource( - $this, - $this->serviceName, - 'networks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Compute_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'moveDisk' => array( - 'path' => '{project}/moveDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'moveInstance' => array( - 'path' => '{project}/moveInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setCommonInstanceMetadata' => array( - 'path' => '{project}/setCommonInstanceMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setUsageExportBucket' => array( - 'path' => '{project}/setUsageExportBucket', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( - $this, - $this->serviceName, - 'regionOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->regions = new Google_Service_Compute_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/regions/{region}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->routes = new Google_Service_Compute_Routes_Resource( - $this, - $this->serviceName, - 'routes', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Compute_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( - $this, - $this->serviceName, - 'targetHttpProxies', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( - $this, - $this->serviceName, - 'targetInstances', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->targetPools = new Google_Service_Compute_TargetPools_Resource( - $this, - $this->serviceName, - 'targetPools', - array( - 'methods' => array( - 'addHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'addInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setBackup' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'failoverRatio' => array( - 'location' => 'query', - 'type' => 'number', - ), - ), - ), - ) - ) - ); - $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( - $this, - $this->serviceName, - 'targetVpnGateways', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetVpnGateways', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( - $this, - $this->serviceName, - 'urlMaps', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'validate' => array( - 'path' => '{project}/global/urlMaps/{urlMap}/validate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( - $this, - $this->serviceName, - 'vpnTunnels', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/vpnTunnels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->zones = new Google_Service_Compute_Zones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "addresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $addresses = $computeService->addresses; - * - */ -class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); - } - - /** - * Deletes the specified address resource. (addresses.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified address resource. (addresses.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (addresses.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of address resources contained within the specified - * region. (addresses.listAddresses) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressList - */ - public function listAddresses($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } -} - -/** - * The "backendServices" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $backendServices = $computeService->backendServices; - * - */ -class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified BackendService resource. (backendServices.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified BackendService resource. (backendServices.get) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendService - */ - public function get($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_BackendService"); - } - - /** - * Gets the most recent health check results for this BackendService. - * (backendServices.getHealth) - * - * @param string $project - * @param string $backendService Name of the BackendService resource to which - * the queried instance belongs. - * @param Google_ResourceGroupReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendServiceGroupHealth - */ - public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); - } - - /** - * Creates a BackendService resource in the specified project using the data - * included in the request. (backendServices.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of BackendService resources available to the specified - * project. (backendServices.listBackendServices) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_BackendServiceList - */ - public function listBackendServices($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); - } - - /** - * Update the entire content of the BackendService resource. This method - * supports patch semantics. (backendServices.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Update the entire content of the BackendService resource. - * (backendServices.update) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "diskTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $diskTypes = $computeService->diskTypes; - * - */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); - } - - /** - * Returns the specified disk type resource. (diskTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $diskType Name of the disk type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType - */ - public function get($project, $zone, $diskType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); - } - - /** - * Retrieves the list of disk type resources available to the specified project. - * (diskTypes.listDiskTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskTypeList - */ - public function listDiskTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); - } -} - -/** - * The "disks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $disks = $computeService->disks; - * - */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); - } - - /** - * Creates a snapshot of this disk. (disks.createSnapshot) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to snapshot. - * @param Google_Snapshot $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes the specified persistent disk. (disks.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns a specified persistent disk. (disks.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Disk - */ - public function get($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Disk"); - } - - /** - * Creates a persistent disk in the specified project using the data included in - * the request. (disks.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param Google_Disk $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string sourceImage Optional. Source image to restore onto a disk. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of persistent disks contained within the specified zone. - * (disks.listDisks) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskList - */ - public function listDisks($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskList"); - } -} - -/** - * The "firewalls" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $firewalls = $computeService->firewalls; - * - */ -class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified firewall resource. (firewalls.delete) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified firewall resource. (firewalls.get) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Firewall - */ - public function get($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Firewall"); - } - - /** - * Creates a firewall resource in the specified project using the data included - * in the request. (firewalls.insert) - * - * @param string $project Project ID for this request. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of firewall resources available to the specified project. - * (firewalls.listFirewalls) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_FirewallList - */ - public function listFirewalls($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); - } - - /** - * Updates the specified firewall resource with the data included in the - * request. This method supports patch semantics. (firewalls.patch) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates the specified firewall resource with the data included in the - * request. (firewalls.update) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "forwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $forwardingRules = $computeService->forwardingRules; - * - */ -class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of forwarding rules grouped by scope. - * (forwardingRules.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); - } - - /** - * Deletes the specified ForwardingRule resource. (forwardingRules.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified ForwardingRule resource. (forwardingRules.get) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (forwardingRules.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project and region. (forwardingRules.listForwardingRules) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listForwardingRules($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - - /** - * Changes target url for forwarding rule. (forwardingRules.setTarget) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "globalAddresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalAddresses = $computeService->globalAddresses; - * - */ -class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified address resource. (globalAddresses.delete) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified address resource. (globalAddresses.get) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (globalAddresses.insert) - * - * @param string $project Project ID for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of global address resources. - * (globalAddresses.listGlobalAddresses) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressList - */ - public function listGlobalAddresses($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } -} - -/** - * The "globalForwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalForwardingRules = $computeService->globalForwardingRules; - * - */ -class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified ForwardingRule resource. (globalForwardingRules.get) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (globalForwardingRules.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project. (globalForwardingRules.listGlobalForwardingRules) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listGlobalForwardingRules($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - - /** - * Changes target url for forwarding rule. (globalForwardingRules.setTarget) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "globalOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalOperations = $computeService->globalOperations; - * - */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of all operations grouped by scope. - * (globalOperations.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); - } - - /** - * Deletes the specified operation resource. (globalOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalOperations.listGlobalOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listGlobalOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "httpHealthChecks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $httpHealthChecks = $computeService->httpHealthChecks; - * - */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck - */ - public function get($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); - } - - /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_HttpHealthCheckList - */ - public function listHttpHealthChecks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); - } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.update) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "images" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $images = $computeService->images; - * - */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified image resource. (images.delete) - * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. - * (images.deprecate) - * - * @param string $project Project ID for this request. - * @param string $image Image name. - * @param Google_DeprecationStatus $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified image resource. (images.get) - * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Image - */ - public function get($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Image"); - } - - /** - * Creates an image resource in the specified project using the data included in - * the request. (images.insert) - * - * @param string $project Project ID for this request. - * @param Google_Image $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of image resources available to the specified project. - * (images.listImages) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ImageList - */ - public function listImages($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ImageList"); - } -} - -/** - * The "instanceTemplates" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instanceTemplates = $computeService->instanceTemplates; - * - */ -class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified instance template. (instanceTemplates.delete) - * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $instanceTemplate, $optParams = array()) - { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified instance template resource. (instanceTemplates.get) - * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceTemplate - */ - public function get($project, $instanceTemplate, $optParams = array()) - { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); - } - - /** - * Creates an instance template in the specified project using the data that is - * included in the request. (instanceTemplates.insert) - * - * @param string $project The project ID for this request. - * @param Google_InstanceTemplate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of instance templates that are contained within the - * specified project and zone. (instanceTemplates.listInstanceTemplates) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceTemplateList - */ - public function listInstanceTemplates($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $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 ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $networkInterface The name of the network interface to add to - * this instance. - * @param Google_AccessConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - - /** - * (instances.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); - } - - /** - * Attaches a Disk resource to an instance. (instances.attachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param Google_AttachedDisk $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes the specified Instance resource. For more information, see Shutting - * down an instance. (instances.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes an access config from an instance's network interface. - * (instances.deleteAccessConfig) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $accessConfig The name of the access config to delete. - * @param string $networkInterface The name of the network interface. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); - $params = array_merge($params, $optParams); - return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Detaches a disk from an instance. (instances.detachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param string $deviceName Disk device name to detach. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified instance resource. (instances.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the The name of the zone for this request.. - * @param string $instance Name of the instance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Instance - */ - public function get($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Instance"); - } - - /** - * Returns the specified instance's serial port output. - * (instances.getSerialPortOutput) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param int port Which COM port to retrieve data from. - * @return Google_Service_Compute_SerialPortOutput - */ - public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); - } - - /** - * Creates an instance resource in the specified project using the data included - * in the request. (instances.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param Google_Instance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of instance resources contained within the specified zone. - * (instances.listInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceList - */ - public function listInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); - } - - /** - * Performs a hard reset on the instance. (instances.reset) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function reset($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets the auto-delete flag for a disk attached to an instance. - * (instances.setDiskAutoDelete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name. - * @param bool $autoDelete Whether to auto-delete the disk when the instance is - * deleted. - * @param string $deviceName The device name of the disk to modify. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets metadata for the specified instance to the data included in the request. - * (instances.setMetadata) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets an instance's scheduling options. (instances.setScheduling) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param Google_Scheduling $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets tags for the specified instance to the data included in the request. - * (instances.setTags) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param Google_Tags $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); - } - - /** - * This method starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * (instances.start) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to start. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function start($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('start', array($params), "Google_Service_Compute_Operation"); - } - - /** - * This method stops a running instance, shutting it down cleanly, and allows - * you to restart the instance at a later time. Stopped instances do not incur - * per-minute, virtual machine usage charges while they are stopped, but any - * resources that the virtual machine is using, such as persistent disks and - * static IP addresses,will continue to be charged until they are deleted. For - * more information, see Stopping an instance. (instances.stop) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to stop. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function stop($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "licenses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $licenses = $computeService->licenses; - * - */ -class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified license resource. (licenses.get) - * - * @param string $project Project ID for this request. - * @param string $license Name of the license resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_License - */ - public function get($project, $license, $optParams = array()) - { - $params = array('project' => $project, 'license' => $license); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_License"); - } -} - -/** - * The "machineTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $machineTypes = $computeService->machineTypes; - * - */ -class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of machine type resources grouped by scope. - * (machineTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_MachineTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); - } - - /** - * Returns the specified machine type resource. (machineTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $machineType Name of the machine type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_MachineType - */ - public function get($project, $zone, $machineType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_MachineType"); - } - - /** - * Retrieves the list of machine type resources available to the specified - * project. (machineTypes.listMachineTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_MachineTypeList - */ - public function listMachineTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); - } -} - -/** - * The "networks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $networks = $computeService->networks; - * - */ -class Google_Service_Compute_Networks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified network resource. (networks.delete) - * - * @param string $project Project ID for this request. - * @param string $network Name of the network resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified network resource. (networks.get) - * - * @param string $project Project ID for this request. - * @param string $network Name of the network resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Network - */ - public function get($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Network"); - } - - /** - * Creates a network resource in the specified project using the data included - * in the request. (networks.insert) - * - * @param string $project Project ID for this request. - * @param Google_Network $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of network resources available to the specified project. - * (networks.listNetworks) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_NetworkList - */ - public function listNetworks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $projects = $computeService->projects; - * - */ -class Google_Service_Compute_Projects_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified project resource. (projects.get) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Project - */ - public function get($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Project"); - } - - /** - * Moves a persistent disk from one zone to another. (projects.moveDisk) - * - * @param string $project Project ID for this request. - * @param Google_DiskMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Moves an instance and its attached persistent disks from one zone to another. - * (projects.moveInstance) - * - * @param string $project Project ID for this request. - * @param Google_InstanceMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets metadata common to all instances within the specified project using the - * data included in the request. (projects.setCommonInstanceMetadata) - * - * @param string $project Project ID for this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Enables the usage export feature and sets the usage export bucket where - * reports are stored. If you provide an empty request body using this method, - * the usage export feature will be disabled. (projects.setUsageExportBucket) - * - * @param string $project Project ID for this request. - * @param Google_UsageExportLocation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "regionOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regionOperations = $computeService->regionOperations; - * - */ -class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified region-specific operation resource. - * (regionOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified region-specific operation resource. - * (regionOperations.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the zone scoping this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * region. (regionOperations.listRegionOperations) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listRegionOperations($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regions = $computeService->regions; - * - */ -class Google_Service_Compute_Regions_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified region resource. (regions.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Region - */ - public function get($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Region"); - } - - /** - * Retrieves the list of region resources available to the specified project. - * (regions.listRegions) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_RegionList - */ - public function listRegions($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RegionList"); - } -} - -/** - * The "routes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $routes = $computeService->routes; - * - */ -class Google_Service_Compute_Routes_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified route resource. (routes.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $route Name of the route resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified route resource. (routes.get) - * - * @param string $project Name of the project scoping this request. - * @param string $route Name of the route resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Route - */ - public function get($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Route"); - } - - /** - * Creates a route resource in the specified project using the data included in - * the request. (routes.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_Route $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of route resources available to the specified project. - * (routes.listRoutes) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_RouteList - */ - public function listRoutes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RouteList"); - } -} - -/** - * The "snapshots" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $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); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified persistent disk snapshot resource. (snapshots.get) - * - * @param string $project Name of the project scoping this request. - * @param string $snapshot Name of the persistent disk snapshot resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Snapshot - */ - public function get($project, $snapshot, $optParams = array()) - { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); - } - - /** - * Retrieves the list of persistent disk snapshot resources contained within the - * specified project. (snapshots.listSnapshots) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_SnapshotList - */ - public function listSnapshots($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); - } -} - -/** - * The "targetHttpProxies" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetHttpProxies = $computeService->targetHttpProxies; - * - */ -class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetHttpProxy - */ - public function get($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); - } - - /** - * Creates a TargetHttpProxy resource in the specified project using the data - * included in the request. (targetHttpProxies.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_TargetHttpProxy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetHttpProxy resources available to the specified - * project. (targetHttpProxies.listTargetHttpProxies) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetHttpProxyList - */ - public function listTargetHttpProxies($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); - } - - /** - * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL - * map is to be set. - * @param Google_UrlMapReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "targetInstances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetInstances = $computeService->targetInstances; - * - */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of target instances grouped by scope. - * (targetInstances.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); - } - - /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetInstance resource. (targetInstances.get) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance - */ - public function get($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); - } - - /** - * Creates a TargetInstance resource in the specified project and zone using the - * data included in the request. (targetInstances.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param Google_TargetInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetInstance resources available to the specified - * project and zone. (targetInstances.listTargetInstances) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceList - */ - public function listTargetInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); - } -} - -/** - * The "targetPools" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetPools = $computeService->targetPools; - * - */ -class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource -{ - - /** - * Adds health check URL to targetPool. (targetPools.addHealthCheck) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be added. - * @param Google_TargetPoolsAddHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Adds instance url to targetPool. (targetPools.addInstance) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be added. - * @param Google_TargetPoolsAddInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of target pools grouped by scope. - * (targetPools.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetPoolAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); - } - - /** - * Deletes the specified TargetPool resource. (targetPools.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetPool resource. (targetPools.get) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPool - */ - public function get($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); - } - - /** - * Gets the most recent health check results for each IP for the given instance - * that is referenced by given TargetPool. (targetPools.getHealth) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which the - * queried instance belongs. - * @param Google_InstanceReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPoolInstanceHealth - */ - public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); - } - - /** - * Creates a TargetPool resource in the specified project and region using the - * data included in the request. (targetPools.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param Google_TargetPool $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetPool resources available to the specified project - * and region. (targetPools.listTargetPools) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetPoolList - */ - public function listTargetPools($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); - } - - /** - * Removes health check URL from targetPool. (targetPools.removeHealthCheck) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be removed. - * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Removes instance URL from targetPool. (targetPools.removeInstance) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be removed. - * @param Google_TargetPoolsRemoveInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Changes backup pool configurations. (targetPools.setBackup) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource for which the - * backup is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * - * @opt_param float failoverRatio New failoverRatio value for the containing - * target pool. - * @return Google_Service_Compute_Operation - */ - public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "targetVpnGateways" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetVpnGateways = $computeService->targetVpnGateways; - * - */ -class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of target VPN gateways grouped by scope. - * (targetVpnGateways.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetVpnGatewayAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); - } - - /** - * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetVpnGateway, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetVpnGateway - */ - public function get($project, $region, $targetVpnGateway, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); - } - - /** - * Creates a TargetVpnGateway resource in the specified project and region using - * the data included in the request. (targetVpnGateways.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_TargetVpnGateway $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetVpnGateway resources available to the specified - * project and region. (targetVpnGateways.listTargetVpnGateways) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetVpnGatewayList - */ - public function listTargetVpnGateways($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); - } -} - -/** - * The "urlMaps" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $urlMaps = $computeService->urlMaps; - * - */ -class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified UrlMap resource. (urlMaps.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified UrlMap resource. (urlMaps.get) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMap - */ - public function get($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); - } - - /** - * Creates a UrlMap resource in the specified project using the data included in - * the request. (urlMaps.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of UrlMap resources available to the specified project. - * (urlMaps.listUrlMaps) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_UrlMapList - */ - public function listUrlMaps($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); - } - - /** - * Update the entire content of the UrlMap resource. This method supports patch - * semantics. (urlMaps.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Update the entire content of the UrlMap resource. (urlMaps.update) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Run static validation for the UrlMap. In particular, the tests of the - * provided UrlMap will be run. Calling this method does NOT create the UrlMap. - * (urlMaps.validate) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to be validated as. - * @param Google_UrlMapsValidateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMapsValidateResponse - */ - public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); - } -} - -/** - * The "vpnTunnels" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $vpnTunnels = $computeService->vpnTunnels; - * - */ -class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of VPN tunnels grouped by scope. - * (vpnTunnels.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_VpnTunnelAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); - } - - /** - * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $vpnTunnel, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified VpnTunnel resource. (vpnTunnels.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_VpnTunnel - */ - public function get($project, $region, $vpnTunnel, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); - } - - /** - * Creates a VpnTunnel resource in the specified project and region using the - * data included in the request. (vpnTunnels.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_VpnTunnel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of VpnTunnel resources contained in the specified project - * and region. (vpnTunnels.listVpnTunnels) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_VpnTunnelList - */ - public function listVpnTunnels($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); - } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $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 Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "zones" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $zones = $computeService->zones; - * - */ -class Google_Service_Compute_Zones_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified zone resource. (zones.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Zone - */ - public function get($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Zone"); - } - - /** - * Retrieves the list of zone resources available to the specified project. - * (zones.listZones) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ZoneList - */ - public function listZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); - } -} - - - - -class Google_Service_Compute_AccessConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - public $natIP; - public $type; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNatIP($natIP) - { - $this->natIP = $natIP; - } - public function getNatIP() - { - return $this->natIP; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_Address extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $address; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $region; - public $selfLink; - public $status; - public $users; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Compute_AddressAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_AddressList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Address'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressesScopedList extends Google_Collection -{ - protected $collection_key = 'addresses'; - protected $internal_gapi_mappings = array( - ); - protected $addressesType = 'Google_Service_Compute_Address'; - protected $addressesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; - protected $warningDataType = ''; - - - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } - public function getAddresses() - { - return $this->addresses; - } - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_AttachedDisk extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $autoDelete; - public $boot; - public $deviceName; - public $index; - protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; - protected $initializeParamsDataType = ''; - public $interface; - public $kind; - public $licenses; - public $mode; - public $source; - public $type; - - - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } - public function getAutoDelete() - { - return $this->autoDelete; - } - public function setBoot($boot) - { - $this->boot = $boot; - } - public function getBoot() - { - return $this->boot; - } - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } - public function getDeviceName() - { - return $this->deviceName; - } - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } - public function getInitializeParams() - { - return $this->initializeParams; - } - public function setInterface($interface) - { - $this->interface = $interface; - } - public function getInterface() - { - return $this->interface; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setMode($mode) - { - $this->mode = $mode; - } - public function getMode() - { - return $this->mode; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskName; - public $diskSizeGb; - public $diskType; - public $sourceImage; - - - public function setDiskName($diskName) - { - $this->diskName = $diskName; - } - public function getDiskName() - { - return $this->diskName; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - public function getSourceImage() - { - return $this->sourceImage; - } -} - -class Google_Service_Compute_Backend extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $balancingMode; - public $capacityScaler; - public $description; - public $group; - public $maxRate; - public $maxRatePerInstance; - public $maxUtilization; - - - public function setBalancingMode($balancingMode) - { - $this->balancingMode = $balancingMode; - } - public function getBalancingMode() - { - return $this->balancingMode; - } - public function setCapacityScaler($capacityScaler) - { - $this->capacityScaler = $capacityScaler; - } - public function getCapacityScaler() - { - return $this->capacityScaler; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } - public function setMaxRate($maxRate) - { - $this->maxRate = $maxRate; - } - public function getMaxRate() - { - return $this->maxRate; - } - public function setMaxRatePerInstance($maxRatePerInstance) - { - $this->maxRatePerInstance = $maxRatePerInstance; - } - public function getMaxRatePerInstance() - { - return $this->maxRatePerInstance; - } - public function setMaxUtilization($maxUtilization) - { - $this->maxUtilization = $maxUtilization; - } - public function getMaxUtilization() - { - return $this->maxUtilization; - } -} - -class Google_Service_Compute_BackendService extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $backendsType = 'Google_Service_Compute_Backend'; - protected $backendsDataType = 'array'; - public $creationTimestamp; - public $description; - public $fingerprint; - public $healthChecks; - public $id; - public $kind; - public $name; - public $port; - public $portName; - public $protocol; - public $selfLink; - public $timeoutSec; - - - public function setBackends($backends) - { - $this->backends = $backends; - } - public function getBackends() - { - return $this->backends; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setPortName($portName) - { - $this->portName = $portName; - } - public function getPortName() - { - return $this->portName; - } - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } - public function getProtocol() - { - return $this->protocol; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } -} - -class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection -{ - protected $collection_key = 'healthStatus'; - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_BackendServiceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_BackendService'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DeprecationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setDeprecated($deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setObsolete($obsolete) - { - $this->obsolete = $obsolete; - } - public function getObsolete() - { - return $this->obsolete; - } - public function setReplacement($replacement) - { - $this->replacement = $replacement; - } - public function getReplacement() - { - return $this->replacement; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Compute_Disk extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $lastAttachTimestamp; - public $lastDetachTimestamp; - public $licenses; - public $name; - public $options; - public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $users; - 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 setLastAttachTimestamp($lastAttachTimestamp) - { - $this->lastAttachTimestamp = $lastAttachTimestamp; - } - public function getLastAttachTimestamp() - { - return $this->lastAttachTimestamp; - } - public function setLastDetachTimestamp($lastDetachTimestamp) - { - $this->lastDetachTimestamp = $lastDetachTimestamp; - } - public function getLastDetachTimestamp() - { - return $this->lastDetachTimestamp; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptions($options) - { - $this->options = $options; - } - public function getOptions() - { - return $this->options; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSizeGb($sizeGb) - { - $this->sizeGb = $sizeGb; - } - public function getSizeGb() - { - return $this->sizeGb; - } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - public function getSourceImage() - { - return $this->sourceImage; - } - public function setSourceImageId($sourceImageId) - { - $this->sourceImageId = $sourceImageId; - } - public function getSourceImageId() - { - return $this->sourceImageId; - } - public function setSourceSnapshot($sourceSnapshot) - { - $this->sourceSnapshot = $sourceSnapshot; - } - public function getSourceSnapshot() - { - return $this->sourceSnapshot; - } - public function setSourceSnapshotId($sourceSnapshotId) - { - $this->sourceSnapshotId = $sourceSnapshotId; - } - public function getSourceSnapshotId() - { - return $this->sourceSnapshotId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_DiskList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Disk'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskMoveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destinationZone; - public $targetDisk; - - - public function setDestinationZone($destinationZone) - { - $this->destinationZone = $destinationZone; - } - public function getDestinationZone() - { - return $this->destinationZone; - } - public function setTargetDisk($targetDisk) - { - $this->targetDisk = $targetDisk; - } - public function getTargetDisk() - { - return $this->targetDisk; - } -} - -class Google_Service_Compute_DiskType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $defaultDiskSizeGb; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $validDiskSize; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDefaultDiskSizeGb($defaultDiskSizeGb) - { - $this->defaultDiskSizeGb = $defaultDiskSizeGb; - } - public function getDefaultDiskSizeGb() - { - return $this->defaultDiskSizeGb; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setValidDiskSize($validDiskSize) - { - $this->validDiskSize = $validDiskSize; - } - public function getValidDiskSize() - { - return $this->validDiskSize; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_DiskTypeList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DiskType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypesScopedList extends Google_Collection -{ - protected $collection_key = 'diskTypes'; - protected $internal_gapi_mappings = array( - ); - protected $diskTypesType = 'Google_Service_Compute_DiskType'; - protected $diskTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; - protected $warningDataType = ''; - - - public function setDiskTypes($diskTypes) - { - $this->diskTypes = $diskTypes; - } - public function getDiskTypes() - { - return $this->diskTypes; - } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_DisksScopedList extends Google_Collection -{ - protected $collection_key = 'disks'; - protected $internal_gapi_mappings = array( - ); - protected $disksType = 'Google_Service_Compute_Disk'; - protected $disksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; - protected $warningDataType = ''; - - - public function setDisks($disks) - { - $this->disks = $disks; - } - public function getDisks() - { - return $this->disks; - } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Firewall extends Google_Collection -{ - protected $collection_key = 'targetTags'; - protected $internal_gapi_mappings = array( - ); - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $network; - public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; - - - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } - public function getAllowed() - { - return $this->allowed; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceRanges($sourceRanges) - { - $this->sourceRanges = $sourceRanges; - } - public function getSourceRanges() - { - return $this->sourceRanges; - } - public function setSourceTags($sourceTags) - { - $this->sourceTags = $sourceTags; - } - public function getSourceTags() - { - return $this->sourceTags; - } - public function setTargetTags($targetTags) - { - $this->targetTags = $targetTags; - } - public function getTargetTags() - { - return $this->targetTags; - } -} - -class Google_Service_Compute_FirewallAllowed extends Google_Collection -{ - protected $collection_key = 'ports'; - protected $internal_gapi_mappings = array( - "iPProtocol" => "IPProtocol", - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Firewall'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - "iPAddress" => "IPAddress", - "iPProtocol" => "IPProtocol", - ); - public $iPAddress; - public $iPProtocol; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $portRange; - public $region; - public $selfLink; - public $target; - - - public function setIPAddress($iPAddress) - { - $this->iPAddress = $iPAddress; - } - public function getIPAddress() - { - return $this->iPAddress; - } - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } - public function getIPProtocol() - { - return $this->iPProtocol; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPortRange($portRange) - { - $this->portRange = $portRange; - } - public function getPortRange() - { - return $this->portRange; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_ForwardingRuleList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRule'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection -{ - protected $collection_key = 'forwardingRules'; - protected $internal_gapi_mappings = array( - ); - protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; - protected $forwardingRulesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; - protected $warningDataType = ''; - - - public function setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - public function getForwardingRules() - { - return $this->forwardingRules; - } - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_HealthCheckReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthCheck; - - - public function setHealthCheck($healthCheck) - { - $this->healthCheck = $healthCheck; - } - public function getHealthCheck() - { - return $this->healthCheck; - } -} - -class Google_Service_Compute_HealthStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthState; - public $instance; - public $ipAddress; - public $port; - - - public function setHealthState($healthState) - { - $this->healthState = $healthState; - } - public function getHealthState() - { - return $this->healthState; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } -} - -class Google_Service_Compute_HostRule extends Google_Collection -{ - protected $collection_key = 'hosts'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $hosts; - public $pathMatcher; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHosts($hosts) - { - $this->hosts = $hosts; - } - public function getHosts() - { - return $this->hosts; - } - public function setPathMatcher($pathMatcher) - { - $this->pathMatcher = $pathMatcher; - } - public function getPathMatcher() - { - return $this->pathMatcher; - } -} - -class Google_Service_Compute_HttpHealthCheck extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $checkIntervalSec; - public $creationTimestamp; - public $description; - public $healthyThreshold; - public $host; - public $id; - public $kind; - public $name; - public $port; - public $requestPath; - public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; - - - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setRequestPath($requestPath) - { - $this->requestPath = $requestPath; - } - public function getRequestPath() - { - return $this->requestPath; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Image extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $archiveSizeBytes; - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $sourceType; - public $status; - - - public function setArchiveSizeBytes($archiveSizeBytes) - { - $this->archiveSizeBytes = $archiveSizeBytes; - } - public function getArchiveSizeBytes() - { - return $this->archiveSizeBytes; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) - { - $this->rawDisk = $rawDisk; - } - public function getRawDisk() - { - return $this->rawDisk; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - public function getSourceDisk() - { - return $this->sourceDisk; - } - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - public function setSourceType($sourceType) - { - $this->sourceType = $sourceType; - } - public function getSourceType() - { - return $this->sourceType; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ImageList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Image'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ImageRawDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'serviceAccounts'; - protected $internal_gapi_mappings = array( - ); - public $canIpForward; - public $cpuPlatform; - public $creationTimestamp; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $id; - public $kind; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - public $name; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - public $selfLink; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $status; - public $statusMessage; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - public $zone; - - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - public function setCpuPlatform($cpuPlatform) - { - $this->cpuPlatform = $cpuPlatform; - } - public function getCpuPlatform() - { - return $this->cpuPlatform; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisks($disks) - { - $this->disks = $disks; - } - public function getDisks() - { - return $this->disks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } - public function setMetadata(Google_Service_Compute_Metadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - public function getScheduling() - { - return $this->scheduling; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTags(Google_Service_Compute_Tags $tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_InstanceAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_InstanceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Instance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceMoveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destinationZone; - public $targetInstance; - - - public function setDestinationZone($destinationZone) - { - $this->destinationZone = $destinationZone; - } - public function getDestinationZone() - { - return $this->destinationZone; - } - public function setTargetInstance($targetInstance) - { - $this->targetInstance = $targetInstance; - } - public function getTargetInstance() - { - return $this->targetInstance; - } -} - -class Google_Service_Compute_InstanceProperties extends Google_Collection -{ - protected $collection_key = 'serviceAccounts'; - protected $internal_gapi_mappings = array( - ); - public $canIpForward; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - 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 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 setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - public function getScheduling() - { - return $this->scheduling; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setTags(Google_Service_Compute_Tags $tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_Compute_InstanceReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instance; - - - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } -} - -class Google_Service_Compute_InstanceTemplate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - protected $propertiesType = 'Google_Service_Compute_InstanceProperties'; - protected $propertiesDataType = ''; - public $selfLink; - - - 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 setProperties(Google_Service_Compute_InstanceProperties $properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceTemplateList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceTemplate'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstancesScopedList extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_Instance'; - protected $instancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; - protected $warningDataType = ''; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } - public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_License extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $chargesUseFee; - public $kind; - public $name; - public $selfLink; - - - public function setChargesUseFee($chargesUseFee) - { - $this->chargesUseFee = $chargesUseFee; - } - public function getChargesUseFee() - { - return $this->chargesUseFee; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineType extends Google_Collection -{ - protected $collection_key = 'scratchDisks'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $guestCpus; - public $id; - public $imageSpaceGb; - public $kind; - public $maximumPersistentDisks; - public $maximumPersistentDisksSizeGb; - public $memoryMb; - public $name; - protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; - protected $scratchDisksDataType = 'array'; - public $selfLink; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGuestCpus($guestCpus) - { - $this->guestCpus = $guestCpus; - } - public function getGuestCpus() - { - return $this->guestCpus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImageSpaceGb($imageSpaceGb) - { - $this->imageSpaceGb = $imageSpaceGb; - } - public function getImageSpaceGb() - { - return $this->imageSpaceGb; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaximumPersistentDisks($maximumPersistentDisks) - { - $this->maximumPersistentDisks = $maximumPersistentDisks; - } - public function getMaximumPersistentDisks() - { - return $this->maximumPersistentDisks; - } - public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) - { - $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; - } - public function getMaximumPersistentDisksSizeGb() - { - return $this->maximumPersistentDisksSizeGb; - } - public function setMemoryMb($memoryMb) - { - $this->memoryMb = $memoryMb; - } - public function getMemoryMb() - { - return $this->memoryMb; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScratchDisks($scratchDisks) - { - $this->scratchDisks = $scratchDisks; - } - public function getScratchDisks() - { - return $this->scratchDisks; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_MachineTypeList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_MachineType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskGb; - - - public function setDiskGb($diskGb) - { - $this->diskGb = $diskGb; - } - public function getDiskGb() - { - return $this->diskGb; - } -} - -class Google_Service_Compute_MachineTypesScopedList extends Google_Collection -{ - protected $collection_key = 'machineTypes'; - protected $internal_gapi_mappings = array( - ); - protected $machineTypesType = 'Google_Service_Compute_MachineType'; - protected $machineTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; - protected $warningDataType = ''; - - - public function setMachineTypes($machineTypes) - { - $this->machineTypes = $machineTypes; - } - public function getMachineTypes() - { - return $this->machineTypes; - } - public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - protected $itemsType = 'Google_Service_Compute_MetadataItems'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_MetadataItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - "iPv4Range" => "IPv4Range", - ); - 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 $collection_key = 'accessConfigs'; - protected $internal_gapi_mappings = array( - ); - protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIP; - - - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } - public function getAccessConfigs() - { - return $this->accessConfigs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNetworkIP($networkIP) - { - $this->networkIP = $networkIP; - } - public function getNetworkIP() - { - return $this->networkIP; - } -} - -class Google_Service_Compute_NetworkList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Network'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Compute_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Compute_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Compute_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_OperationAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Compute_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_OperationsScopedList extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - protected $operationsType = 'Google_Service_Compute_Operation'; - protected $operationsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; - protected $warningDataType = ''; - - - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } - public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_PathMatcher extends Google_Collection -{ - protected $collection_key = 'pathRules'; - protected $internal_gapi_mappings = array( - ); - public $defaultService; - public $description; - public $name; - protected $pathRulesType = 'Google_Service_Compute_PathRule'; - protected $pathRulesDataType = 'array'; - - - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - public function getDefaultService() - { - return $this->defaultService; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPathRules($pathRules) - { - $this->pathRules = $pathRules; - } - public function getPathRules() - { - return $this->pathRules; - } -} - -class Google_Service_Compute_PathRule extends Google_Collection -{ - protected $collection_key = 'paths'; - protected $internal_gapi_mappings = array( - ); - public $paths; - public $service; - - - public function setPaths($paths) - { - $this->paths = $paths; - } - public function getPaths() - { - return $this->paths; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_Project extends Google_Collection -{ - protected $collection_key = 'quotas'; - protected $internal_gapi_mappings = array( - ); - protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; - protected $commonInstanceMetadataDataType = ''; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; - protected $usageExportLocationDataType = ''; - - - public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) - { - $this->commonInstanceMetadata = $commonInstanceMetadata; - } - public function getCommonInstanceMetadata() - { - return $this->commonInstanceMetadata; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - public function getQuotas() - { - return $this->quotas; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) - { - $this->usageExportLocation = $usageExportLocation; - } - public function getUsageExportLocation() - { - return $this->usageExportLocation; - } -} - -class Google_Service_Compute_Quota extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $limit; - public $metric; - public $usage; - - - public function setLimit($limit) - { - $this->limit = $limit; - } - public function getLimit() - { - return $this->limit; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } - public function setUsage($usage) - { - $this->usage = $usage; - } - public function getUsage() - { - return $this->usage; - } -} - -class Google_Service_Compute_Region extends Google_Collection -{ - protected $collection_key = 'zones'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - public $status; - public $zones; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - public function getQuotas() - { - return $this->quotas; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setZones($zones) - { - $this->zones = $zones; - } - public function getZones() - { - return $this->zones; - } -} - -class Google_Service_Compute_RegionList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Region'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ResourceGroupReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $group; - - - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } -} - -class Google_Service_Compute_Route extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $destRange; - public $id; - public $kind; - public $name; - public $network; - public $nextHopGateway; - public $nextHopInstance; - public $nextHopIp; - public $nextHopNetwork; - public $nextHopVpnTunnel; - public $priority; - public $selfLink; - public $tags; - protected $warningsType = 'Google_Service_Compute_RouteWarnings'; - protected $warningsDataType = 'array'; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDestRange($destRange) - { - $this->destRange = $destRange; - } - public function getDestRange() - { - return $this->destRange; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNextHopGateway($nextHopGateway) - { - $this->nextHopGateway = $nextHopGateway; - } - public function getNextHopGateway() - { - return $this->nextHopGateway; - } - public function setNextHopInstance($nextHopInstance) - { - $this->nextHopInstance = $nextHopInstance; - } - public function getNextHopInstance() - { - return $this->nextHopInstance; - } - public function setNextHopIp($nextHopIp) - { - $this->nextHopIp = $nextHopIp; - } - public function getNextHopIp() - { - return $this->nextHopIp; - } - public function setNextHopNetwork($nextHopNetwork) - { - $this->nextHopNetwork = $nextHopNetwork; - } - public function getNextHopNetwork() - { - return $this->nextHopNetwork; - } - public function setNextHopVpnTunnel($nextHopVpnTunnel) - { - $this->nextHopVpnTunnel = $nextHopVpnTunnel; - } - public function getNextHopVpnTunnel() - { - return $this->nextHopVpnTunnel; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Compute_RouteList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Route'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_RouteWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_RouteWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_RouteWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Scheduling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $automaticRestart; - public $onHostMaintenance; - public $preemptible; - - - public function setAutomaticRestart($automaticRestart) - { - $this->automaticRestart = $automaticRestart; - } - public function getAutomaticRestart() - { - return $this->automaticRestart; - } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } - public function setPreemptible($preemptible) - { - $this->preemptible = $preemptible; - } - public function getPreemptible() - { - return $this->preemptible; - } -} - -class Google_Service_Compute_SerialPortOutput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'scopes'; - protected $internal_gapi_mappings = array( - ); - public $email; - public $scopes; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } - public function getScopes() - { - return $this->scopes; - } -} - -class Google_Service_Compute_Snapshot extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $status; - public $storageBytes; - public $storageBytesStatus; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - public function getSourceDisk() - { - return $this->sourceDisk; - } - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStorageBytes($storageBytes) - { - $this->storageBytes = $storageBytes; - } - public function getStorageBytes() - { - return $this->storageBytes; - } - public function setStorageBytesStatus($storageBytesStatus) - { - $this->storageBytesStatus = $storageBytesStatus; - } - public function getStorageBytesStatus() - { - return $this->storageBytesStatus; - } -} - -class Google_Service_Compute_SnapshotList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Snapshot'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Tags extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - public $items; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } -} - -class Google_Service_Compute_TargetHttpProxy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $urlMap; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_TargetHttpProxyList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstance extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $instance; - public $kind; - public $name; - public $natPolicy; - public $selfLink; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNatPolicy($natPolicy) - { - $this->natPolicy = $natPolicy; - } - public function getNatPolicy() - { - return $this->natPolicy; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_TargetInstanceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection -{ - protected $collection_key = 'targetInstances'; - protected $internal_gapi_mappings = array( - ); - protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; - protected $targetInstancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetInstances($targetInstances) - { - $this->targetInstances = $targetInstances; - } - public function getTargetInstances() - { - return $this->targetInstances; - } - public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetPool extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $backupPool; - public $creationTimestamp; - public $description; - public $failoverRatio; - public $healthChecks; - public $id; - public $instances; - public $kind; - public $name; - public $region; - public $selfLink; - public $sessionAffinity; - - - public function setBackupPool($backupPool) - { - $this->backupPool = $backupPool; - } - public function getBackupPool() - { - return $this->backupPool; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFailoverRatio($failoverRatio) - { - $this->failoverRatio = $failoverRatio; - } - public function getFailoverRatio() - { - return $this->failoverRatio; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSessionAffinity($sessionAffinity) - { - $this->sessionAffinity = $sessionAffinity; - } - public function getSessionAffinity() - { - return $this->sessionAffinity; - } -} - -class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection -{ - protected $collection_key = 'healthStatus'; - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_TargetPoolList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPool'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; - protected $targetPoolsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } - public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $target; - - - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_TargetVpnGateway extends Google_Collection -{ - protected $collection_key = 'tunnels'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $forwardingRules; - public $id; - public $kind; - public $name; - public $network; - public $region; - public $selfLink; - public $status; - public $tunnels; - - - 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 setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - public function getForwardingRules() - { - return $this->forwardingRules; - } - 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 setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTunnels($tunnels) - { - $this->tunnels = $tunnels; - } - public function getTunnels() - { - return $this->tunnels; - } -} - -class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetVpnGateway'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection -{ - protected $collection_key = 'targetVpnGateways'; - protected $internal_gapi_mappings = array( - ); - protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway'; - protected $targetVpnGatewaysDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetVpnGateways($targetVpnGateways) - { - $this->targetVpnGateways = $targetVpnGateways; - } - public function getTargetVpnGateways() - { - return $this->targetVpnGateways; - } - public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_TestFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualService; - public $expectedService; - public $host; - public $path; - - - public function setActualService($actualService) - { - $this->actualService = $actualService; - } - public function getActualService() - { - return $this->actualService; - } - public function setExpectedService($expectedService) - { - $this->expectedService = $expectedService; - } - public function getExpectedService() - { - return $this->expectedService; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Compute_UrlMap extends Google_Collection -{ - protected $collection_key = 'tests'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $defaultService; - public $description; - public $fingerprint; - protected $hostRulesType = 'Google_Service_Compute_HostRule'; - protected $hostRulesDataType = 'array'; - public $id; - public $kind; - public $name; - protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; - protected $pathMatchersDataType = 'array'; - public $selfLink; - protected $testsType = 'Google_Service_Compute_UrlMapTest'; - protected $testsDataType = 'array'; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - public function getDefaultService() - { - return $this->defaultService; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setHostRules($hostRules) - { - $this->hostRules = $hostRules; - } - public function getHostRules() - { - return $this->hostRules; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPathMatchers($pathMatchers) - { - $this->pathMatchers = $pathMatchers; - } - public function getPathMatchers() - { - return $this->pathMatchers; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTests($tests) - { - $this->tests = $tests; - } - public function getTests() - { - return $this->tests; - } -} - -class Google_Service_Compute_UrlMapList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_UrlMap'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_UrlMapReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $urlMap; - - - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_UrlMapTest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $host; - public $path; - public $service; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_UrlMapValidationResult extends Google_Collection -{ - protected $collection_key = 'testFailures'; - protected $internal_gapi_mappings = array( - ); - public $loadErrors; - public $loadSucceeded; - protected $testFailuresType = 'Google_Service_Compute_TestFailure'; - protected $testFailuresDataType = 'array'; - public $testPassed; - - - public function setLoadErrors($loadErrors) - { - $this->loadErrors = $loadErrors; - } - public function getLoadErrors() - { - return $this->loadErrors; - } - public function setLoadSucceeded($loadSucceeded) - { - $this->loadSucceeded = $loadSucceeded; - } - public function getLoadSucceeded() - { - return $this->loadSucceeded; - } - public function setTestFailures($testFailures) - { - $this->testFailures = $testFailures; - } - public function getTestFailures() - { - return $this->testFailures; - } - public function setTestPassed($testPassed) - { - $this->testPassed = $testPassed; - } - public function getTestPassed() - { - return $this->testPassed; - } -} - -class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Compute_UrlMap'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Compute_UrlMap $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; - protected $resultDataType = ''; - - - public function setResult(Google_Service_Compute_UrlMapValidationResult $result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Compute_UsageExportLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucketName; - public $reportNamePrefix; - - - public function setBucketName($bucketName) - { - $this->bucketName = $bucketName; - } - public function getBucketName() - { - return $this->bucketName; - } - public function setReportNamePrefix($reportNamePrefix) - { - $this->reportNamePrefix = $reportNamePrefix; - } - public function getReportNamePrefix() - { - return $this->reportNamePrefix; - } -} - -class Google_Service_Compute_VpnTunnel extends Google_Collection -{ - protected $collection_key = 'ikeNetworks'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $detailedStatus; - public $id; - public $ikeNetworks; - public $ikeVersion; - public $kind; - public $name; - public $peerIp; - public $region; - public $selfLink; - public $sharedSecret; - public $sharedSecretHash; - public $status; - public $targetVpnGateway; - - - 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 setDetailedStatus($detailedStatus) - { - $this->detailedStatus = $detailedStatus; - } - public function getDetailedStatus() - { - return $this->detailedStatus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIkeNetworks($ikeNetworks) - { - $this->ikeNetworks = $ikeNetworks; - } - public function getIkeNetworks() - { - return $this->ikeNetworks; - } - public function setIkeVersion($ikeVersion) - { - $this->ikeVersion = $ikeVersion; - } - public function getIkeVersion() - { - return $this->ikeVersion; - } - 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 setPeerIp($peerIp) - { - $this->peerIp = $peerIp; - } - public function getPeerIp() - { - return $this->peerIp; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSharedSecret($sharedSecret) - { - $this->sharedSecret = $sharedSecret; - } - public function getSharedSecret() - { - return $this->sharedSecret; - } - public function setSharedSecretHash($sharedSecretHash) - { - $this->sharedSecretHash = $sharedSecretHash; - } - public function getSharedSecretHash() - { - return $this->sharedSecretHash; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTargetVpnGateway($targetVpnGateway) - { - $this->targetVpnGateway = $targetVpnGateway; - } - public function getTargetVpnGateway() - { - return $this->targetVpnGateway; - } -} - -class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_VpnTunnelList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_VpnTunnel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection -{ - protected $collection_key = 'vpnTunnels'; - protected $internal_gapi_mappings = array( - ); - protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel'; - protected $vpnTunnelsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning'; - protected $warningDataType = ''; - - - public function setVpnTunnels($vpnTunnels) - { - $this->vpnTunnels = $vpnTunnels; - } - public function getVpnTunnels() - { - return $this->vpnTunnels; - } - public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Zone extends Google_Collection -{ - protected $collection_key = 'maintenanceWindows'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows'; - protected $maintenanceWindowsDataType = 'array'; - public $name; - public $region; - public $selfLink; - public $status; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaintenanceWindows($maintenanceWindows) - { - $this->maintenanceWindows = $maintenanceWindows; - } - public function getMaintenanceWindows() - { - return $this->maintenanceWindows; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ZoneList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Zone'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} From 48039724a2d3c9b173767506c4c9a3237f4c173c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Jun 2015 05:59:03 -0700 Subject: [PATCH 0852/1274] Removed Computeaccounts.php --- src/Google/Service/Computeaccounts.php | 1689 ------------------------ 1 file changed, 1689 deletions(-) delete mode 100644 src/Google/Service/Computeaccounts.php diff --git a/src/Google/Service/Computeaccounts.php b/src/Google/Service/Computeaccounts.php deleted file mode 100644 index 35eacaf47..000000000 --- a/src/Google/Service/Computeaccounts.php +++ /dev/null @@ -1,1689 +0,0 @@ - - * API for the Google Compute Accounts service.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Computeaccounts extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** New Service: https://www.googleapis.com/auth/computeaccounts. */ - const COMPUTEACCOUNTS = - "https://www.googleapis.com/auth/computeaccounts"; - /** New Service: https://www.googleapis.com/auth/computeaccounts.readonly. */ - const COMPUTEACCOUNTS_READONLY = - "https://www.googleapis.com/auth/computeaccounts.readonly"; - - public $globalAccountsOperations; - public $groups; - public $linux; - public $users; - - - /** - * Constructs the internal representation of the Computeaccounts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'computeaccounts/alpha/projects/'; - $this->version = 'alpha'; - $this->serviceName = 'computeaccounts'; - - $this->globalAccountsOperations = new Google_Service_Computeaccounts_GlobalAccountsOperations_Resource( - $this, - $this->serviceName, - 'globalAccountsOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_Computeaccounts_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'addMember' => array( - 'path' => '{project}/global/groups/{groupName}/addMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeMember' => array( - 'path' => '{project}/global/groups/{groupName}/removeMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->linux = new Google_Service_Computeaccounts_Linux_Resource( - $this, - $this->serviceName, - 'linux', - array( - 'methods' => array( - 'getAuthorizedKeysView' => array( - 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getLinuxAccountViews' => array( - 'path' => '{project}/zones/{zone}/linuxAccountViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'user' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Computeaccounts_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'addPublicKey' => array( - 'path' => '{project}/global/users/{user}/addPublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removePublicKey' => array( - 'path' => '{project}/global/users/{user}/removePublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "globalAccountsOperations" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; - * - */ -class Google_Service_Computeaccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified operation resource. (globalAccountsOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalAccountsOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalAccountsOperations.listGlobalAccountsOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_OperationList - */ - public function listGlobalAccountsOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_OperationList"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $groups = $computeaccountsService->groups; - * - */ -class Google_Service_Computeaccounts_Groups_Resource extends Google_Service_Resource -{ - - /** - * Adds users to the specified group. (groups.addMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsAddMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function addMember($project, $groupName, Google_Service_Computeaccounts_GroupsAddMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addMember', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Deletes the specified group resource. (groups.delete) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function delete($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Returns the specified group resource. (groups.get) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Group - */ - public function get($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_Group"); - } - - /** - * Creates a group resource in the specified project using the data included in - * the request. (groups.insert) - * - * @param string $project Project ID for this request. - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function insert($project, Google_Service_Computeaccounts_Group $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of groups contained within the specified project. - * (groups.listGroups) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_GroupList - */ - public function listGroups($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_GroupList"); - } - - /** - * Removes users from the specified group. (groups.removeMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsRemoveMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function removeMember($project, $groupName, Google_Service_Computeaccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeMember', array($params), "Google_Service_Computeaccounts_Operation"); - } -} - -/** - * The "linux" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $linux = $computeaccountsService->linux; - * - */ -class Google_Service_Computeaccounts_Linux_Resource extends Google_Service_Resource -{ - - /** - * Returns the AuthorizedKeysView of the specified user. - * (linux.getAuthorizedKeysView) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $user Username of the AuthorizedKeysView to return. - * @param string $instance The fully-qualified URL of the instance requesting - * the view. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse - */ - public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getAuthorizedKeysView', array($params), "Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse"); - } - - /** - * Retrieves the Linux views for an instance contained within the specified - * project. (linux.getLinuxAccountViews) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $instance The fully-qualified URL of the instance requesting - * the views. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string user If provided, the user whose login is triggering an - * immediate refresh of the views. - * @return Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse - */ - public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getLinuxAccountViews', array($params), "Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $users = $computeaccountsService->users; - * - */ -class Google_Service_Computeaccounts_Users_Resource extends Google_Service_Resource -{ - - /** - * Adds a public key to the specified user using the data included in the - * request. (users.addPublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param Google_PublicKey $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function addPublicKey($project, $user, Google_Service_Computeaccounts_PublicKey $postBody, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addPublicKey', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Deletes the specified user resource. (users.delete) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function delete($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Returns the specified user resource. (users.get) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_User - */ - public function get($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_User"); - } - - /** - * Creates a user resource in the specified project using the data included in - * the request. (users.insert) - * - * @param string $project Project ID for this request. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function insert($project, Google_Service_Computeaccounts_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of users contained within the specified project. - * (users.listUsers) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_UserList - */ - public function listUsers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_UserList"); - } - - /** - * Removes the specified public key from the user. (users.removePublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param string $fingerprint The fingerprint of the public key to delete. - * Public keys are identified by their fingerprint, which is defined by RFC4716 - * to be the MD5 digest of the public key. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function removePublicKey($project, $user, $fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); - $params = array_merge($params, $optParams); - return $this->call('removePublicKey', array($params), "Google_Service_Computeaccounts_Operation"); - } -} - - - - -class Google_Service_Computeaccounts_AuthorizedKeysView extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $keys; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Computeaccounts_Group extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $members; - public $name; - public $selfLink; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - 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_Computeaccounts_GroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_Group'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_GroupsAddMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Computeaccounts_GroupsRemoveMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Computeaccounts_LinuxAccountViews extends Google_Collection -{ - protected $collection_key = 'userViews'; - protected $internal_gapi_mappings = array( - ); - protected $groupViewsType = 'Google_Service_Computeaccounts_LinuxGroupView'; - protected $groupViewsDataType = 'array'; - public $kind; - protected $userViewsType = 'Google_Service_Computeaccounts_LinuxUserView'; - protected $userViewsDataType = 'array'; - - - public function setGroupViews($groupViews) - { - $this->groupViews = $groupViews; - } - public function getGroupViews() - { - return $this->groupViews; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserViews($userViews) - { - $this->userViews = $userViews; - } - public function getUserViews() - { - return $this->userViews; - } -} - -class Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Computeaccounts_AuthorizedKeysView'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Computeaccounts_AuthorizedKeysView $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Computeaccounts_LinuxAccountViews'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Computeaccounts_LinuxAccountViews $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Computeaccounts_LinuxGroupView extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $gid; - public $groupName; - public $members; - - - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setGroupName($groupName) - { - $this->groupName = $groupName; - } - public function getGroupName() - { - return $this->groupName; - } - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } -} - -class Google_Service_Computeaccounts_LinuxUserView extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gecos; - public $gid; - public $homeDirectory; - public $shell; - public $uid; - public $username; - - - public function setGecos($gecos) - { - $this->gecos = $gecos; - } - public function getGecos() - { - return $this->gecos; - } - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setHomeDirectory($homeDirectory) - { - $this->homeDirectory = $homeDirectory; - } - public function getHomeDirectory() - { - return $this->homeDirectory; - } - public function setShell($shell) - { - $this->shell = $shell; - } - public function getShell() - { - return $this->shell; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Computeaccounts_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Computeaccounts_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Computeaccounts_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Computeaccounts_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Computeaccounts_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Computeaccounts_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Computeaccounts_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Computeaccounts_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Computeaccounts_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Computeaccounts_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Computeaccounts_PublicKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $expirationTimestamp; - public $fingerprint; - public $key; - - - 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 setExpirationTimestamp($expirationTimestamp) - { - $this->expirationTimestamp = $expirationTimestamp; - } - public function getExpirationTimestamp() - { - return $this->expirationTimestamp; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_Computeaccounts_User extends Google_Collection -{ - protected $collection_key = 'publicKeys'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $groups; - public $id; - public $kind; - public $name; - public $owner; - protected $publicKeysType = 'Google_Service_Computeaccounts_PublicKey'; - protected $publicKeysDataType = 'array'; - public $selfLink; - - - 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 setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setOwner($owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setPublicKeys($publicKeys) - { - $this->publicKeys = $publicKeys; - } - public function getPublicKeys() - { - return $this->publicKeys; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_UserList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} From 9c083d0a012e9fd024269781f315b92b00cb2a56 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Jun 2015 05:59:03 -0700 Subject: [PATCH 0853/1274] Removed YouTube.php --- src/Google/Service/YouTube.php | 12933 ------------------------------- 1 file changed, 12933 deletions(-) delete mode 100644 src/Google/Service/YouTube.php diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php deleted file mode 100644 index 386936097..000000000 --- a/src/Google/Service/YouTube.php +++ /dev/null @@ -1,12933 +0,0 @@ - - * 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 -{ - /** Manage your YouTube account. */ - const YOUTUBE = - "https://www.googleapis.com/auth/youtube"; - /** Manage your YouTube account. */ - const YOUTUBE_FORCE_SSL = - "https://www.googleapis.com/auth/youtube.force-ssl"; - /** View your YouTube account. */ - const YOUTUBE_READONLY = - "https://www.googleapis.com/auth/youtube.readonly"; - /** Manage your YouTube videos. */ - const YOUTUBE_UPLOAD = - "https://www.googleapis.com/auth/youtube.upload"; - /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = - "https://www.googleapis.com/auth/youtubepartner"; - /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ - const YOUTUBEPARTNER_CHANNEL_AUDIT = - "https://www.googleapis.com/auth/youtubepartner-channel-audit"; - - public $activities; - public $captions; - public $channelBanners; - public $channelSections; - public $channels; - public $commentThreads; - public $comments; - public $guideCategories; - public $i18nLanguages; - public $i18nRegions; - public $liveBroadcasts; - public $liveStreams; - public $playlistItems; - public $playlists; - public $search; - public $subscriptions; - public $thumbnails; - public $videoAbuseReportReasons; - public $videoCategories; - public $videos; - public $watermarks; - - - /** - * Constructs the internal representation of the YouTube service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'youtube/v3/'; - $this->version = 'v3'; - $this->serviceName = 'youtube'; - - $this->activities = new Google_Service_YouTube_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'home' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->captions = new Google_Service_YouTube_Captions_Resource( - $this, - $this->serviceName, - 'captions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'captions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'download' => array( - 'path' => 'captions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tfmt' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tlang' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'captions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'captions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'captions', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( - $this, - $this->serviceName, - 'channelBanners', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'channelBanners/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( - $this, - $this->serviceName, - 'channelSections', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'channelSections', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'channelSections', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'channelSections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channelSections', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_YouTube_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'channels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'managedByMe' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forUsername' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( - $this, - $this->serviceName, - 'commentThreads', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'shareOnGooglePlus' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'searchTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'allThreadsRelatedToChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_YouTube_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'comments', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'markAsSpam' => array( - 'path' => 'comments/markAsSpam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setModerationStatus' => array( - 'path' => 'comments/setModerationStatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'banAuthor' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'comments', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( - $this, - $this->serviceName, - 'guideCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'guideCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( - $this, - $this->serviceName, - 'i18nLanguages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nLanguages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( - $this, - $this->serviceName, - 'i18nRegions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nRegions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( - $this, - $this->serviceName, - 'liveBroadcasts', - array( - 'methods' => array( - 'bind' => array( - 'path' => 'liveBroadcasts/bind', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'control' => array( - 'path' => 'liveBroadcasts/control', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'displaySlate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offsetTimeMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'walltime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'transition' => array( - 'path' => 'liveBroadcasts/transition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( - $this, - $this->serviceName, - 'liveStreams', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( - $this, - $this->serviceName, - 'playlistItems', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'playlistId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->playlists = new Google_Service_YouTube_Playlists_Resource( - $this, - $this->serviceName, - 'playlists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlists', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'playlists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->search = new Google_Service_YouTube_Search_Resource( - $this, - $this->serviceName, - 'search', - array( - 'methods' => array( - 'list' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'eventType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forDeveloper' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'videoSyndicated' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCaption' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forContentOwner' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locationRadius' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'topicId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDimension' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoLicense' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'relatedToVideoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDefinition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDuration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relevanceLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forMine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safeSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoEmbeddable' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'forChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( - $this, - $this->serviceName, - 'thumbnails', - array( - 'methods' => array( - 'set' => array( - 'path' => 'thumbnails/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( - $this, - $this->serviceName, - 'videoAbuseReportReasons', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoAbuseReportReasons', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( - $this, - $this->serviceName, - 'videoCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videos = new Google_Service_YouTube_Videos_Resource( - $this, - $this->serviceName, - 'videos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'videos', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getRating' => array( - 'path' => 'videos/getRating', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'videos', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stabilize' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'notifySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'autoLevels' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'videos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'chart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'myRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'videos/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reportAbuse' => array( - 'path' => 'videos/reportAbuse', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'videos', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( - $this, - $this->serviceName, - 'watermarks', - array( - 'methods' => array( - 'set' => array( - 'path' => 'watermarks/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'unset' => array( - 'path' => 'watermarks/unset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.) - * - * Note: Even though an activity resource can contain information about actions - * like a user rating a video or marking a video as a favorite, you need to use - * other API methods to generate those activity resources. For example, you - * would use the API's videos.rate() method to rate a video and the - * playlistItems.insert() method to mark a video as a favorite. - * (activities.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Activity - */ - public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); - } - - /** - * Returns a list of channel activity events that match the request criteria. - * For example, you can retrieve events associated with a particular channel, - * events associated with the user's subscriptions and Google+ friends, or the - * YouTube home page feed, which is customized for each user. - * (activities.listActivities) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more activity resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in an - * activity resource, the snippet property contains other properties that - * identify the type of activity, a display title for the activity, and so - * forth. If you set part=snippet, the API response will also contain all of - * those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return results for the specified country. The parameter value is an ISO - * 3166-1 alpha-2 country code. YouTube uses this value when the authorized - * user's previous activity on YouTube does not provide enough information to - * generate the activity feed. - * @opt_param string publishedBefore The publishedBefore parameter specifies the - * date and time before which an activity must have occurred for that activity - * to be included in the API response. If the parameter value specifies a day, - * but not a time, then any activities that occurred that day will be excluded - * from the result set. The value is specified in ISO 8601 (YYYY-MM- - * DDThh:mm:ss.sZ) format. - * @opt_param string channelId The channelId parameter specifies a unique - * YouTube channel ID. The API will then return a list of that channel's - * activities. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's activities. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool home Set this parameter's value to true to retrieve the - * activity feed that displays on the YouTube home page for the currently - * authenticated user. - * @opt_param string publishedAfter The publishedAfter parameter specifies the - * earliest date and time that an activity could have occurred for that activity - * to be included in the API response. If the parameter value specifies a day, - * but not a time, then any activities that occurred that day will be included - * in the result set. The value is specified in ISO 8601 (YYYY-MM- - * DDThh:mm:ss.sZ) format. - * @return Google_Service_YouTube_ActivityListResponse - */ - public function listActivities($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); - } -} - -/** - * The "captions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $captions = $youtubeService->captions; - * - */ -class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource -{ - - /** - * Deletes a specified caption track. (captions.delete) - * - * @param string $id The id parameter identifies the caption track that is being - * deleted. The value is a caption track ID as identified by the id property in - * a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Downloads a caption track. The caption track is returned in its original - * format unless the request specifies a value for the tfmt parameter and in its - * original language unless the request specifies a value for the tlang - * parameter. (captions.download) - * - * @param string $id The id parameter identifies the caption track that is being - * retrieved. The value is a caption track ID as identified by the id property - * in a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - * @opt_param string tfmt The tfmt parameter specifies that the caption track - * should be returned in a specific format. If the parameter is not included in - * the request, the track is returned in its original format. - * @opt_param string tlang The tlang parameter specifies that the API response - * should return a translation of the specified caption track. The parameter - * value is an ISO 639-1 two-letter language code that identifies the desired - * caption language. The translation is generated by using machine translation, - * such as Google Translate. - */ - public function download($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('download', array($params)); - } - - /** - * Uploads a caption track. (captions.insert) - * - * @param string $part The part parameter specifies the caption resource parts - * that the API response will include. Set the parameter value to snippet. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool sync The sync parameter indicates whether YouTube should - * automatically synchronize the caption file with the audio track of the video. - * If you set the value to true, YouTube will disregard any time codes that are - * in the uploaded caption file and generate new time codes for the captions. - * - * You should set the sync parameter to true if you are uploading a transcript, - * which has no time codes, or if you suspect the time codes in your file are - * incorrect and want YouTube to try to fix them. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Caption - */ - public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); - } - - /** - * Returns a list of caption tracks that are associated with a specified video. - * Note that the API response does not contain the actual captions and that the - * captions.download method provides the ability to retrieve a caption track. - * (captions.listCaptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more caption resource parts that the API response will include. The - * part names that you can include in the parameter value are id and snippet. - * @param string $videoId The videoId parameter specifies the YouTube video ID - * of the video for which the API should return caption tracks. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is on behalf of. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string id The id parameter specifies a comma-separated list of IDs - * that identify the caption resources that should be retrieved. Each ID must - * identify a caption track associated with the specified video. - * @return Google_Service_YouTube_CaptionListResponse - */ - public function listCaptions($part, $videoId, $optParams = array()) - { - $params = array('part' => $part, 'videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); - } - - /** - * Updates a caption track. When updating a caption track, you can change the - * track's draft status, upload a new caption file for the track, or both. - * (captions.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. Set the property value to - * snippet if you are updating the track's draft status. Otherwise, set the - * property value to id. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool sync Note: The API server only processes the parameter value - * if the request contains an updated caption file. - * - * The sync parameter indicates whether YouTube should automatically synchronize - * the caption file with the audio track of the video. If you set the value to - * true, YouTube will automatically synchronize the caption track with the audio - * track. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Caption - */ - public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Caption"); - } -} - -/** - * The "channelBanners" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelBanners = $youtubeService->channelBanners; - * - */ -class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource -{ - - /** - * Uploads a channel banner image to YouTube. This method represents the first - * two steps in a three-step process to update the banner image for a channel: - * - * - Call the channelBanners.insert method to upload the binary image data to - * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 - * pixels. - Extract the url property's value from the response that the API - * returns for step 1. - Call the channels.update method to update the channel's - * branding settings. Set the brandingSettings.image.bannerExternalUrl - * property's value to the URL obtained in step 2. (channelBanners.insert) - * - * @param Google_ChannelBannerResource $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelBannerResource - */ - public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); - } -} - -/** - * The "channelSections" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelSections = $youtubeService->channelSections; - * - */ -class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource -{ - - /** - * Deletes a channelSection. (channelSections.delete) - * - * @param string $id The id parameter specifies the YouTube channelSection ID - * for the resource that is being deleted. In a channelSection resource, the id - * property specifies the YouTube channelSection ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a channelSection for the authenticated user's channel. - * (channelSections.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); - } - - /** - * Returns channelSection resources that match the API request criteria. - * (channelSections.listChannelSections) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channelSection resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, and contentDetails. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * channelSection resource, the snippet property contains other properties, such - * as a display title for the channelSection. If you set part=snippet, the API - * response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's channelSections. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. - * @opt_param string hl The hl parameter indicates that the snippet.localized - * property values in the returned channelSection resources should be in the - * specified language if localized values for that language are available. For - * example, if the API request specifies hl=de, the snippet.localized properties - * in the API response will contain German titles if German titles are - * available. Channel owners can provide localized channel section titles using - * either the channelSections.insert or channelSections.update method. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In - * a channelSection resource, the id property specifies the YouTube - * channelSection ID. - * @return Google_Service_YouTube_ChannelSectionListResponse - */ - public function listChannelSections($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); - } - - /** - * Update a channelSection. (channelSections.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listChannels) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channel resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a channel - * resource, the contentDetails property contains other properties, such as the - * uploads properties. As such, if you set part=contentDetails, the API response - * will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param bool managedByMe Note: This parameter is intended exclusively for - * YouTube content partners. - * - * Set this parameter's value to true to instruct the API to only return - * channels managed by the content owner that the onBehalfOfContentOwner - * parameter specifies. The user must be authenticated as a CMS account linked - * to the specified content owner and onBehalfOfContentOwner must be provided. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string forUsername The forUsername parameter specifies a YouTube - * username, thereby requesting the channel associated with that username. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return channels owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel ID(s) for the resource(s) that are being retrieved. In a - * channel resource, the id property specifies the channel's YouTube channel ID. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool mySubscribers Use the subscriptions.list method and its - * mySubscribers parameter to retrieve a list of subscribers to the - * authenticated user's channel. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the brandingSettings - * part. - * @opt_param string categoryId The categoryId parameter specifies a YouTube - * guide category, thereby requesting YouTube channels associated with that - * category. - * @return Google_Service_YouTube_ChannelListResponse - */ - public function listChannels($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); - } - - /** - * Updates a channel's metadata. Note that this method currently only supports - * updates to the channel resource's brandingSettings and invideoPromotion - * objects and their child properties. (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 API currently only allows the parameter value to be set to either - * brandingSettings or invideoPromotion. (You cannot update both of those parts - * with a single request.) - * - * Note that this method overrides the existing values for all of the mutable - * properties that are contained in any parts that the parameter value - * specifies. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. - * @return Google_Service_YouTube_Channel - */ - public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Channel"); - } -} - -/** - * The "commentThreads" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $commentThreads = $youtubeService->commentThreads; - * - */ -class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource -{ - - /** - * Creates a new top-level comment. To add a reply to an existing comment, use - * the comments.insert method instead. (commentThreads.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates - * whether the top-level comment and any replies that are made to that comment - * should also be posted to the author's Google+ profile. - * @return Google_Service_YouTube_CommentThread - */ - public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); - } - - /** - * Returns a list of comment threads that match the API request parameters. - * (commentThreads.listCommentThreads) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more commentThread resource properties that the API response will - * include. - * @param array $optParams Optional parameters. - * - * @opt_param string searchTerms The searchTerms parameter instructs the API to - * limit the API response to only contain comments that contain the specified - * search terms. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string allThreadsRelatedToChannelId The - * allThreadsRelatedToChannelId parameter instructs the API to return all - * comment threads associated with the specified channel. The response can - * include comments about the channel or about the channel's videos. - * @opt_param string channelId The channelId parameter instructs the API to - * return comment threads containing comments about the specified channel. (The - * response will not include comments left on videos that the channel uploaded.) - * @opt_param string videoId The videoId parameter instructs the API to return - * comment threads associated with the specified video ID. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment thread IDs for the resources that should be retrieved. - * @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 property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string moderationStatus Set this parameter to limit the returned - * comment threads to a particular moderation state. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string textFormat Set this parameter's value to html or plainText - * to instruct the API to return the comments left by users in html formatted or - * in plain text. - * @opt_param string order The order parameter specifies the order in which the - * API response should list comment threads. Valid values are: - time - Comment - * threads are ordered by time. This is the default behavior. - relevance - - * Comment threads are ordered by relevance.Note: This parameter is not - * supported for use in conjunction with the id parameter. - * @return Google_Service_YouTube_CommentThreadListResponse - */ - public function listCommentThreads($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); - } - - /** - * Modifies the top-level comment in a comment thread. (commentThreads.update) - * - * @param string $part The part parameter specifies a comma-separated list of - * commentThread resource properties that the API response will include. You - * must at least include the snippet part in the parameter value since that part - * contains all of the properties that the API request can update. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_CommentThread - */ - public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $comments = $youtubeService->comments; - * - */ -class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource -{ - - /** - * Deletes a comment. (comments.delete) - * - * @param string $id The id parameter specifies the comment 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); - return $this->call('delete', array($params)); - } - - /** - * Creates a reply to an existing comment. Note: To create a top-level comment, - * use the commentThreads.insert method. (comments.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); - } - - /** - * Returns a list of comments that match the API request parameters. - * (comments.listComments) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more comment resource properties that the API response will include. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string parentId The parentId parameter specifies the ID of the - * comment for which replies should be retrieved. - * - * Note: YouTube currently supports replies only for top-level comments. - * However, replies to replies may be supported in the future. - * @opt_param string textFormat This parameter indicates whether the API should - * return comments formatted as HTML or as plain text. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment IDs for the resources that are being retrieved. In a comment - * resource, the id property specifies the comment's ID. - * @return Google_Service_YouTube_CommentListResponse - */ - public function listComments($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); - } - - /** - * Expresses the caller's opinion that one or more comments should be flagged as - * spam. (comments.markAsSpam) - * - * @param string $id The id parameter specifies a comma-separated list of IDs of - * comments that the caller believes should be classified as spam. - * @param array $optParams Optional parameters. - */ - public function markAsSpam($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params)); - } - - /** - * Sets the moderation status of one or more comments. The API request must be - * authorized by the owner of the channel or video associated with the comments. - * (comments.setModerationStatus) - * - * @param string $id The id parameter specifies a comma-separated list of IDs - * that identify the comments for which you are updating the moderation status. - * @param string $moderationStatus Identifies the new moderation status of the - * specified comments. - * @param array $optParams Optional parameters. - * - * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you - * want to automatically reject any additional comments written by the comment's - * author. Set the parameter value to true to ban the author. - * - * Note: This parameter is only valid if the moderationStatus parameter is also - * set to rejected. - */ - public function setModerationStatus($id, $moderationStatus, $optParams = array()) - { - $params = array('id' => $id, 'moderationStatus' => $moderationStatus); - $params = array_merge($params, $optParams); - return $this->call('setModerationStatus', array($params)); - } - - /** - * Modifies a comment. (comments.update) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. You must at least include the snippet part in the - * parameter value since that part contains all of the properties that the API - * request can update. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Comment"); - } -} - -/** - * The "guideCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listGuideCategories) - * - * @param string $part The part parameter specifies the guideCategory resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of guide categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel category ID(s) for the resource(s) that are being retrieved. - * In a guideCategory resource, the id property specifies the YouTube channel - * category ID. - * @opt_param string hl The hl parameter specifies the language that will be - * used for text values in the API response. - * @return Google_Service_YouTube_GuideCategoryListResponse - */ - public function listGuideCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); - } -} - -/** - * The "i18nLanguages" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nLanguages = $youtubeService->i18nLanguages; - * - */ -class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of application languages that the YouTube website supports. - * (i18nLanguages.listI18nLanguages) - * - * @param string $part The part parameter specifies the i18nLanguage resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nLanguageListResponse - */ - public function listI18nLanguages($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); - } -} - -/** - * The "i18nRegions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nRegions = $youtubeService->i18nRegions; - * - */ -class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of content regions that the YouTube website supports. - * (i18nRegions.listI18nRegions) - * - * @param string $part The part parameter specifies the i18nRegion resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nRegionListResponse - */ - public function listI18nRegions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); - } -} - -/** - * The "liveBroadcasts" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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, - * though a video stream may be bound to more than one broadcast. - * (liveBroadcasts.bind) - * - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is being bound to a video stream. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string streamId The streamId parameter specifies the unique ID of - * the video stream that is being bound to a broadcast. If this parameter is - * omitted, the API will remove any existing binding between the broadcast and a - * video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Controls the settings for a slate that can be displayed in the broadcast - * stream. (liveBroadcasts.control) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * that uniquely identifies the broadcast in which the slate is being updated. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param bool displaySlate The displaySlate parameter specifies whether the - * slate is being enabled or disabled. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a - * positive time offset when the specified slate change will occur. The value is - * measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. - * Even though it is specified in milliseconds, the value is actually an - * approximation, and YouTube completes the requested action as closely as - * possible to that time. - * - * If you do not specify a value for this parameter, then YouTube performs the - * action as soon as possible. See the Getting started guide for more details. - * - * Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. - * @opt_param string walltime The walltime parameter specifies the wall clock - * time at which the specified slate change will occur. The value is specified - * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function control($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Deletes a broadcast. (liveBroadcasts.delete) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * for the resource that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a broadcast. (liveBroadcasts.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Returns a list of YouTube broadcasts that match the API request parameters. - * (liveBroadcasts.listLiveBroadcasts) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string broadcastStatus The broadcastStatus parameter filters the - * API response to only include broadcasts with the specified status. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return broadcasts owned by the authenticated user. Set the parameter - * value to true to only retrieve your own broadcasts. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube broadcast IDs that identify the broadcasts being retrieved. In a - * liveBroadcast resource, the id property specifies the broadcast's ID. - * @return Google_Service_YouTube_LiveBroadcastListResponse - */ - public function listLiveBroadcasts($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); - } - - /** - * Changes the status of a YouTube live broadcast and initiates any processes - * associated with the new status. For example, when you transition a - * broadcast's status to testing, YouTube starts to transmit video to that - * broadcast's monitor stream. Before calling this method, you should confirm - * that the value of the status.streamStatus property for the stream bound to - * your broadcast is active. (liveBroadcasts.transition) - * - * @param string $broadcastStatus The broadcastStatus parameter identifies the - * state to which the broadcast is changing. Note that to transition a broadcast - * to either the testing or live state, the status.streamStatus must be active - * for the stream that the broadcast is bound to. - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is transitioning to another status. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function transition($broadcastStatus, $id, $part, $optParams = array()) - { - $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Updates a broadcast. For example, you could modify the broadcast settings - * defined in the liveBroadcast resource's contentDetails object. - * (liveBroadcasts.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a broadcast's privacy status is defined in the status - * part. As such, if your request is updating a private or unlisted broadcast, - * and the request's part parameter value includes the status part, the - * broadcast's privacy setting will be updated to whatever value the request - * body specifies. If the request body does not specify a value, the existing - * privacy setting will be removed and the broadcast will revert to the default - * privacy setting. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); - } -} - -/** - * The "liveStreams" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a video stream. The stream enables you to send your video to YouTube, - * which can then broadcast the video to your audience. (liveStreams.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveStream - */ - public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); - } - - /** - * Returns a list of video streams that match the API request parameters. - * (liveStreams.listLiveStreams) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveStream resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return streams owned by the authenticated user. Set the parameter value - * to true to only retrieve your own streams. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube stream IDs that identify the streams being retrieved. In a liveStream - * resource, the id property specifies the stream's ID. - * @return Google_Service_YouTube_LiveStreamListResponse - */ - public function listLiveStreams($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); - } - - /** - * Updates a video stream. If the properties that you want to change cannot be - * updated, then you need to create a new stream with the proper settings. - * (liveStreams.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. If the request body does not specify a value for a mutable - * property, the existing value for that property will be removed. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveStream - */ - public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); - } -} - -/** - * The "playlistItems" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a resource to a playlist. (playlistItems.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_PlaylistItem - */ - public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); - } - - /** - * Returns a collection of playlist items that match the API request parameters. - * You can retrieve all of the playlist items in a specified playlist or - * retrieve one or more playlist items by their unique IDs. - * (playlistItems.listPlaylistItems) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlistItem resource properties that the API response will - * include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * playlistItem resource, the snippet property contains numerous fields, - * including the title, description, position, and resourceId properties. As - * such, if you set part=snippet, the API response will contain all of those - * properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string playlistId The playlistId parameter specifies the unique ID - * of the playlist for which you want to retrieve playlist items. Note that even - * though this is an optional parameter, every request to retrieve playlist - * items must specify a value for either the id parameter or the playlistId - * parameter. - * @opt_param string videoId The videoId parameter specifies that the request - * should return only the playlist items that contain the specified video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of one - * or more unique playlist item IDs. - * @return Google_Service_YouTube_PlaylistItemListResponse - */ - public function listPlaylistItems($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); - } - - /** - * Modifies a playlist item. For example, you could update the item's position - * in the playlist. (playlistItems.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a playlist item can specify a start time and end - * time, which identify the times portion of the video that should play when - * users watch the video in the playlist. If your request is updating a playlist - * item that sets these values, and the request's part parameter value includes - * the contentDetails part, the playlist item's start and end times will be - * updated to whatever value the request body specifies. If the request body - * does not specify values, the existing start and end times will be removed and - * replaced with the default settings. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_PlaylistItem - */ - public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); - } -} - -/** - * The "playlists" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a playlist. (playlists.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_Playlist - */ - public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); - } - - /** - * Returns a collection of playlists that match the API request parameters. For - * example, you can retrieve all playlists that the authenticated user owns, or - * you can retrieve one or more playlists by their unique IDs. - * (playlists.listPlaylists) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlist resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a playlist - * resource, the snippet property contains properties like author, title, - * description, tags, and timeCreated. As such, if you set part=snippet, the API - * response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string channelId This value indicates that the API should only - * return the specified channel's playlists. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return playlists owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the snippet part. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a - * playlist resource, the id property specifies the playlist's YouTube playlist - * ID. - * @return Google_Service_YouTube_PlaylistListResponse - */ - public function listPlaylists($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); - } - - /** - * Modifies a playlist. For example, you could change a playlist's title, - * description, or privacy status. (playlists.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for mutable - * properties that are contained in any parts that the request body specifies. - * For example, a playlist's description is contained in the snippet part, which - * must be included in the request body. If the request does not specify a value - * for the snippet.description property, the playlist's existing description - * will be deleted. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_Playlist - */ - public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); - } -} - -/** - * The "search" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listSearch) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more search resource properties that the API response will include. - * Set the parameter value to snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string eventType The eventType parameter restricts a search to - * broadcast events. If you specify a value for this parameter, you must also - * set the type parameter's value to video. - * @opt_param string channelId The channelId parameter indicates that the API - * response should only contain resources created by the channel - * @opt_param bool forDeveloper The forDeveloper parameter restricts the search - * to only retrieve videos uploaded via the developer's application or website. - * The API server uses the request's authorization credentials to identify the - * developer. Therefore, a developer can restrict results to videos uploaded - * through the developer's own app or website but not to videos uploaded through - * other apps or sites. - * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. If - * you specify a value for this parameter, you must also set the type - * parameter's value to video. - * @opt_param string channelType The channelType parameter lets you restrict a - * search to a particular type of channel. - * @opt_param string videoCaption The videoCaption parameter indicates whether - * the API should filter video search results based on whether they have - * captions. If you specify a value for this parameter, you must also set the - * type parameter's value to video. - * @opt_param string publishedAfter The publishedAfter parameter indicates that - * the API response should only contain resources created after the specified - * time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool forContentOwner Note: This parameter is intended exclusively - * for YouTube content partners. - * - * The forContentOwner parameter restricts the search to only retrieve resources - * owned by the content owner specified by the onBehalfOfContentOwner parameter. - * The user must be authenticated using a CMS account linked to the specified - * content owner and onBehalfOfContentOwner must be provided. - * @opt_param string regionCode The regionCode parameter instructs the API to - * return search results for the specified country. The parameter value is an - * ISO 3166-1 alpha-2 country code. - * @opt_param string location The location parameter, in conjunction with the - * locationRadius parameter, defines a circular geographic area and also - * restricts a search to videos that specify, in their metadata, a geographic - * location that falls within that area. The parameter value is a string that - * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). - * - * - The location parameter value identifies the point at the center of the - * area. - The locationRadius parameter specifies the maximum distance that the - * location associated with a video can be from that point for the video to - * still be included in the search results.The API returns an error if your - * request specifies a value for the location parameter but does not also - * specify a value for the locationRadius parameter. - * @opt_param string locationRadius The locationRadius parameter, in conjunction - * with the location parameter, defines a circular geographic area. - * - * The parameter value must be a floating point number followed by a measurement - * unit. Valid measurement units are m, km, ft, and mi. For example, valid - * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not - * support locationRadius parameter values larger than 1000 kilometers. - * - * Note: See the definition of the location parameter for more information. - * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string type The type parameter restricts a search query to only - * retrieve a particular type of resource. The value is a comma-separated list - * of resource types. - * @opt_param string topicId The topicId parameter indicates that the API - * response should only contain resources associated with the specified topic. - * The value identifies a Freebase topic ID. - * @opt_param string publishedBefore The publishedBefore parameter indicates - * that the API response should only contain resources created before the - * specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. If you specify a value - * for this parameter, you must also set the type parameter's value to video. - * @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. If you specify a value for - * this parameter, you must also set the type parameter's value to video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a - * list of videos that are related to the video that the parameter value - * identifies. The parameter value must be set to a YouTube video ID and, if you - * are using this parameter, the type parameter must be set to video. - * @opt_param string videoDefinition The videoDefinition parameter lets you - * restrict a search to only include either high definition (HD) or standard - * definition (SD) videos. HD videos are available for playback in at least - * 720p, though higher resolutions, like 1080p, might also be available. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @opt_param string videoDuration The videoDuration parameter filters video - * search results based on their duration. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs - * the API to return search results that are most relevant to the specified - * language. The parameter value is typically an ISO 639-1 two-letter language - * code. However, you should use the values zh-Hans for simplified Chinese and - * zh-Hant for traditional Chinese. Please note that results in other languages - * will still be returned if they are highly relevant to the search query term. - * @opt_param bool forMine The forMine parameter restricts the search to only - * retrieve videos owned by the authenticated user. If you set this parameter to - * true, then the type parameter's value must also be set to video. - * @opt_param string q The q parameter specifies the query term to search for. - * - * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude - * videos or to find videos that are associated with one of several search - * terms. For example, to search for videos matching either "boating" or - * "sailing", set the q parameter value to boating|sailing. Similarly, to search - * for videos matching either "boating" or "sailing" but not "fishing", set the - * q parameter value to boating|sailing -fishing. Note that the pipe character - * must be URL-escaped when it is sent in your API request. The URL-escaped - * value for the pipe character is %7C. - * @opt_param string safeSearch The safeSearch parameter indicates whether the - * search results should include restricted content as well as standard content. - * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to - * restrict a search to only videos that can be embedded into a webpage. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string order The order parameter specifies the method that will be - * used to order resources in the API response. - * @return Google_Service_YouTube_SearchListResponse - */ - public function listSearch($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a subscription for the authenticated user's channel. - * (subscriptions.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Subscription - */ - public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); - } - - /** - * Returns subscription resources that match the API request criteria. - * (subscriptions.listSubscriptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more subscription resource properties that the API response will - * include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * subscription resource, the snippet property contains other properties, such - * as a display title for the subscription. If you set part=snippet, the API - * response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's subscriptions. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's subscriptions. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string forChannelId The forChannelId parameter specifies a comma- - * separated list of channel IDs. The API response will then only contain - * subscriptions matching those channels. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool mySubscribers Set this parameter's value to true to retrieve - * a feed of the subscribers of the authenticated user. - * @opt_param string order The order parameter specifies the method that will be - * used to sort resources in the API response. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a - * subscription resource, the id property specifies the YouTube subscription ID. - * @return Google_Service_YouTube_SubscriptionListResponse - */ - public function listSubscriptions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); - } -} - -/** - * The "thumbnails" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_ThumbnailSetResponse - */ - public function set($videoId, $optParams = array()) - { - $params = array('videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); - } -} - -/** - * The "videoAbuseReportReasons" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; - * - */ -class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of abuse reasons that can be used for reporting abusive - * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) - * - * @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. - * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse - */ - public function listVideoAbuseReportReasons($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); - } -} - -/** - * The "videoCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listVideoCategories) - * - * @param string $part The part parameter specifies the videoCategory resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of video categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id The id parameter specifies a comma-separated list of - * video category IDs for the resources that you are retrieving. - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_VideoCategoryListResponse - */ - public function listVideoCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); - } -} - -/** - * The "videos" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the ratings that the authorized user gave to a list of specified - * videos. (videos.getRating) - * - * @param string $id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) for which you are retrieving rating - * data. In a video resource, the id property specifies the video's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_VideoGetRatingResponse - */ - public function getRating($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); - } - - /** - * Uploads a video to YouTube and optionally sets the video's metadata. - * (videos.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that not all parts contain properties that can be set when inserting or - * updating a video. For example, the statistics object encapsulates statistics - * that YouTube calculates for a video and does not contain values that you can - * set or modify. If the parameter value specifies a part that does not contain - * mutable values, that part will still be included in the API response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param bool stabilize The stabilize parameter indicates whether YouTube - * should adjust the video to remove shaky camera motions. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send a notification about the new video to users who - * subscribe to the video's channel. A parameter value of True indicates that - * subscribers will be notified of newly uploaded videos. However, a channel - * owner who is uploading many videos might prefer to set the value to False to - * avoid sending a notification about each new video to the channel's - * subscribers. - * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube - * should automatically enhance the video's lighting and color. - * @return Google_Service_YouTube_Video - */ - public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Video"); - } - - /** - * Returns a list of videos that match the API request parameters. - * (videos.listVideos) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more video resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a video - * resource, the snippet property contains the channelId, title, description, - * tags, and categoryId properties. As such, if you set part=snippet, the API - * response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string regionCode The regionCode parameter instructs the API to - * select a video chart available in the specified region. This parameter can - * only be used in conjunction with the chart parameter. The parameter value is - * an ISO 3166-1 alpha-2 country code. - * @opt_param string locale DEPRECATED - * @opt_param string videoCategoryId The videoCategoryId parameter identifies - * the video category for which the chart should be retrieved. This parameter - * can only be used in conjunction with the chart parameter. By default, charts - * are not restricted to a particular category. - * @opt_param string chart The chart parameter identifies the chart that you - * want to retrieve. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - * @opt_param string hl The hl parameter instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string myRating Set this parameter's value to like or dislike to - * instruct the API to only return videos liked or disliked by the authenticated - * user. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) that are being retrieved. In a video - * resource, the id property specifies the video's ID. - * @return Google_Service_YouTube_VideoListResponse - */ - public function listVideos($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); - } - - /** - * Add a like or dislike rating to a video or remove a rating from a video. - * (videos.rate) - * - * @param string $id The id parameter specifies the YouTube video ID of the - * video that is being rated or having its rating removed. - * @param string $rating Specifies the rating to record. - * @param array $optParams Optional parameters. - */ - public function rate($id, $rating, $optParams = array()) - { - $params = array('id' => $id, 'rating' => $rating); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params)); - } - - /** - * Report abuse for a video. (videos.reportAbuse) - * - * @param Google_VideoAbuseReport $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportAbuse', array($params)); - } - - /** - * Updates a video's metadata. (videos.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * 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 parts contain properties that can be set when inserting - * or updating a video. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values - * that you can set or modify. If the parameter value specifies a part that does - * not contain mutable values, that part will still be included in the API - * response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Video - */ - public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Video"); - } -} - -/** - * The "watermarks" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $watermarks = $youtubeService->watermarks; - * - */ -class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource -{ - - /** - * Uploads a watermark image to YouTube and sets it for a channel. - * (watermarks.set) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being provided. - * @param Google_InvideoBranding $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) - { - $params = array('channelId' => $channelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params)); - } - - /** - * Deletes a channel's watermark image. (watermarks.unsetWatermarks) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being unset. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function unsetWatermarks($channelId, $optParams = array()) - { - $params = array('channelId' => $channelId); - $params = array_merge($params, $optParams); - return $this->call('unset', array($params)); - } -} - - - - -class Google_Service_YouTube_AccessPolicy extends Google_Collection -{ - protected $collection_key = 'exception'; - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; - protected $snippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_ActivityContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; - protected $bulletinDataType = ''; - protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; - protected $channelItemDataType = ''; - protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; - protected $commentDataType = ''; - protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; - protected $favoriteDataType = ''; - protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; - protected $likeDataType = ''; - protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; - protected $playlistItemDataType = ''; - protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; - protected $promotedItemDataType = ''; - protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; - protected $recommendationDataType = ''; - protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; - protected $socialDataType = ''; - protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; - protected $subscriptionDataType = ''; - protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; - protected $uploadDataType = ''; - - - public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) - { - $this->bulletin = $bulletin; - } - public function getBulletin() - { - return $this->bulletin; - } - public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) - { - $this->channelItem = $channelItem; - } - public function getChannelItem() - { - return $this->channelItem; - } - public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) - { - $this->favorite = $favorite; - } - public function getFavorite() - { - return $this->favorite; - } - public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) - { - $this->like = $like; - } - public function getLike() - { - return $this->like; - } - public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) - { - $this->playlistItem = $playlistItem; - } - public function getPlaylistItem() - { - return $this->playlistItem; - } - public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) - { - $this->promotedItem = $promotedItem; - } - public function getPromotedItem() - { - return $this->promotedItem; - } - public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) - { - $this->recommendation = $recommendation; - } - public function getRecommendation() - { - return $this->recommendation; - } - public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) - { - $this->social = $social; - } - public function getSocial() - { - return $this->social; - } - public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) - { - $this->upload = $upload; - } - public function getUpload() - { - return $this->upload; - } -} - -class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $playlistId; - public $playlistItemId; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPlaylistItemId($playlistItemId) - { - $this->playlistItemId = $playlistItemId; - } - public function getPlaylistItemId() - { - return $this->playlistItemId; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection -{ - protected $collection_key = 'impressionUrl'; - protected $internal_gapi_mappings = array( - ); - public $adTag; - public $clickTrackingUrl; - public $creativeViewUrl; - public $ctaType; - public $customCtaButtonText; - public $descriptionText; - public $destinationUrl; - public $forecastingUrl; - public $impressionUrl; - public $videoId; - - - public function setAdTag($adTag) - { - $this->adTag = $adTag; - } - public function getAdTag() - { - return $this->adTag; - } - public function setClickTrackingUrl($clickTrackingUrl) - { - $this->clickTrackingUrl = $clickTrackingUrl; - } - public function getClickTrackingUrl() - { - return $this->clickTrackingUrl; - } - public function setCreativeViewUrl($creativeViewUrl) - { - $this->creativeViewUrl = $creativeViewUrl; - } - public function getCreativeViewUrl() - { - return $this->creativeViewUrl; - } - public function setCtaType($ctaType) - { - $this->ctaType = $ctaType; - } - public function getCtaType() - { - return $this->ctaType; - } - public function setCustomCtaButtonText($customCtaButtonText) - { - $this->customCtaButtonText = $customCtaButtonText; - } - public function getCustomCtaButtonText() - { - return $this->customCtaButtonText; - } - public function setDescriptionText($descriptionText) - { - $this->descriptionText = $descriptionText; - } - public function getDescriptionText() - { - return $this->descriptionText; - } - public function setDestinationUrl($destinationUrl) - { - $this->destinationUrl = $destinationUrl; - } - public function getDestinationUrl() - { - return $this->destinationUrl; - } - public function setForecastingUrl($forecastingUrl) - { - $this->forecastingUrl = $forecastingUrl; - } - public function getForecastingUrl() - { - return $this->forecastingUrl; - } - public function setImpressionUrl($impressionUrl) - { - $this->impressionUrl = $impressionUrl; - } - public function getImpressionUrl() - { - return $this->impressionUrl; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $reason; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $seedResourceIdDataType = ''; - - - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) - { - $this->seedResourceId = $seedResourceId; - } - public function getSeedResourceId() - { - return $this->seedResourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $author; - public $imageUrl; - public $referenceUrl; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - public $type; - - - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setReferenceUrl($referenceUrl) - { - $this->referenceUrl = $referenceUrl; - } - public function getReferenceUrl() - { - return $this->referenceUrl; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $videoId; - - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ActivitySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $groupId; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - public function getGroupId() - { - return $this->groupId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_Caption extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CaptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Caption'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CaptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $audioTrackType; - public $failureReason; - public $isAutoSynced; - public $isCC; - public $isDraft; - public $isEasyReader; - public $isLarge; - public $language; - public $lastUpdated; - public $name; - public $status; - public $trackKind; - public $videoId; - - - public function setAudioTrackType($audioTrackType) - { - $this->audioTrackType = $audioTrackType; - } - public function getAudioTrackType() - { - return $this->audioTrackType; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setIsAutoSynced($isAutoSynced) - { - $this->isAutoSynced = $isAutoSynced; - } - public function getIsAutoSynced() - { - return $this->isAutoSynced; - } - public function setIsCC($isCC) - { - $this->isCC = $isCC; - } - public function getIsCC() - { - return $this->isCC; - } - public function setIsDraft($isDraft) - { - $this->isDraft = $isDraft; - } - public function getIsDraft() - { - return $this->isDraft; - } - public function setIsEasyReader($isEasyReader) - { - $this->isEasyReader = $isEasyReader; - } - public function getIsEasyReader() - { - return $this->isEasyReader; - } - public function setIsLarge($isLarge) - { - $this->isLarge = $isLarge; - } - public function getIsLarge() - { - return $this->isLarge; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setLastUpdated($lastUpdated) - { - $this->lastUpdated = $lastUpdated; - } - public function getLastUpdated() - { - return $this->lastUpdated; - } - 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 setTrackKind($trackKind) - { - $this->trackKind = $trackKind; - } - public function getTrackKind() - { - return $this->trackKind; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_CdnSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $format; - protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; - protected $ingestionInfoDataType = ''; - public $ingestionType; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) - { - $this->ingestionInfo = $ingestionInfo; - } - public function getIngestionInfo() - { - return $this->ingestionInfo; - } - public function setIngestionType($ingestionType) - { - $this->ingestionType = $ingestionType; - } - public function getIngestionType() - { - return $this->ingestionType; - } -} - -class Google_Service_YouTube_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; - protected $auditDetailsDataType = ''; - protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; - protected $brandingSettingsDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; - protected $contentDetailsDataType = ''; - protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; - protected $contentOwnerDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - public $id; - protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; - protected $invideoPromotionDataType = ''; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_ChannelStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) - { - $this->auditDetails = $auditDetails; - } - public function getAuditDetails() - { - return $this->auditDetails; - } - public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) - { - $this->brandingSettings = $brandingSettings; - } - public function getBrandingSettings() - { - return $this->brandingSettings; - } - public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) - { - $this->contentOwnerDetails = $contentOwnerDetails; - } - public function getContentOwnerDetails() - { - return $this->contentOwnerDetails; - } - public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - public function getConversionPings() - { - return $this->conversionPings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) - { - $this->invideoPromotion = $invideoPromotion; - } - public function getInvideoPromotion() - { - return $this->invideoPromotion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_ChannelStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_ChannelAuditDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $communityGuidelinesGoodStanding; - public $contentIdClaimsGoodStanding; - public $copyrightStrikesGoodStanding; - public $overallGoodStanding; - - - public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) - { - $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; - } - public function getCommunityGuidelinesGoodStanding() - { - return $this->communityGuidelinesGoodStanding; - } - public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) - { - $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; - } - public function getContentIdClaimsGoodStanding() - { - return $this->contentIdClaimsGoodStanding; - } - public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) - { - $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; - } - public function getCopyrightStrikesGoodStanding() - { - return $this->copyrightStrikesGoodStanding; - } - public function setOverallGoodStanding($overallGoodStanding) - { - $this->overallGoodStanding = $overallGoodStanding; - } - public function getOverallGoodStanding() - { - return $this->overallGoodStanding; - } -} - -class Google_Service_YouTube_ChannelBannerResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $url; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection -{ - protected $collection_key = 'hints'; - protected $internal_gapi_mappings = array( - ); - protected $channelType = 'Google_Service_YouTube_ChannelSettings'; - protected $channelDataType = ''; - protected $hintsType = 'Google_Service_YouTube_PropertyValue'; - protected $hintsDataType = 'array'; - protected $imageType = 'Google_Service_YouTube_ImageSettings'; - protected $imageDataType = ''; - protected $watchType = 'Google_Service_YouTube_WatchSettings'; - protected $watchDataType = ''; - - - public function setChannel(Google_Service_YouTube_ChannelSettings $channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setHints($hints) - { - $this->hints = $hints; - } - public function getHints() - { - return $this->hints; - } - public function setImage(Google_Service_YouTube_ImageSettings $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setWatch(Google_Service_YouTube_WatchSettings $watch) - { - $this->watch = $watch; - } - public function getWatch() - { - return $this->watch; - } -} - -class Google_Service_YouTube_ChannelContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $googlePlusUserId; - protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; - protected $relatedPlaylistsDataType = ''; - - - public function setGooglePlusUserId($googlePlusUserId) - { - $this->googlePlusUserId = $googlePlusUserId; - } - public function getGooglePlusUserId() - { - return $this->googlePlusUserId; - } - public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) - { - $this->relatedPlaylists = $relatedPlaylists; - } - public function getRelatedPlaylists() - { - return $this->relatedPlaylists; - } -} - -class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $favorites; - public $likes; - public $uploads; - public $watchHistory; - public $watchLater; - - - public function setFavorites($favorites) - { - $this->favorites = $favorites; - } - public function getFavorites() - { - return $this->favorites; - } - public function setLikes($likes) - { - $this->likes = $likes; - } - public function getLikes() - { - return $this->likes; - } - public function setUploads($uploads) - { - $this->uploads = $uploads; - } - public function getUploads() - { - return $this->uploads; - } - public function setWatchHistory($watchHistory) - { - $this->watchHistory = $watchHistory; - } - public function getWatchHistory() - { - return $this->watchHistory; - } - public function setWatchLater($watchLater) - { - $this->watchLater = $watchLater; - } - public function getWatchLater() - { - return $this->watchLater; - } -} - -class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contentOwner; - public $timeLinked; - - - public function setContentOwner($contentOwner) - { - $this->contentOwner = $contentOwner; - } - public function getContentOwner() - { - return $this->contentOwner; - } - public function setTimeLinked($timeLinked) - { - $this->timeLinked = $timeLinked; - } - public function getTimeLinked() - { - return $this->timeLinked; - } -} - -class Google_Service_YouTube_ChannelConversionPing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - -class Google_Service_YouTube_ChannelId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_ChannelListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Channel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_ChannelSection extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; - protected $snippetDataType = ''; - protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; - protected $targetingDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) - { - $this->targeting = $targeting; - } - public function getTargeting() - { - return $this->targeting; - } -} - -class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection -{ - protected $collection_key = 'playlists'; - protected $internal_gapi_mappings = array( - ); - public $channels; - public $playlists; - - - public function setChannels($channels) - { - $this->channels = $channels; - } - public function getChannels() - { - return $this->channels; - } - public function setPlaylists($playlists) - { - $this->playlists = $playlists; - } - public function getPlaylists() - { - return $this->playlists; - } -} - -class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ChannelSection'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $defaultLanguage; - protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizedDataType = ''; - public $position; - public $style; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setStyle($style) - { - $this->style = $style; - } - public function getStyle() - { - return $this->style; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - public $countries; - public $languages; - public $regions; - - - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_YouTube_ChannelSettings extends Google_Collection -{ - protected $collection_key = 'featuredChannelsUrls'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $defaultLanguage; - public $defaultTab; - public $description; - public $featuredChannelsTitle; - public $featuredChannelsUrls; - public $keywords; - public $moderateComments; - public $profileColor; - public $showBrowseView; - public $showRelatedChannels; - public $title; - public $trackingAnalyticsAccountId; - public $unsubscribedTrailer; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDefaultTab($defaultTab) - { - $this->defaultTab = $defaultTab; - } - public function getDefaultTab() - { - return $this->defaultTab; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFeaturedChannelsTitle($featuredChannelsTitle) - { - $this->featuredChannelsTitle = $featuredChannelsTitle; - } - public function getFeaturedChannelsTitle() - { - return $this->featuredChannelsTitle; - } - public function setFeaturedChannelsUrls($featuredChannelsUrls) - { - $this->featuredChannelsUrls = $featuredChannelsUrls; - } - public function getFeaturedChannelsUrls() - { - return $this->featuredChannelsUrls; - } - public function setKeywords($keywords) - { - $this->keywords = $keywords; - } - public function getKeywords() - { - return $this->keywords; - } - public function setModerateComments($moderateComments) - { - $this->moderateComments = $moderateComments; - } - public function getModerateComments() - { - return $this->moderateComments; - } - public function setProfileColor($profileColor) - { - $this->profileColor = $profileColor; - } - public function getProfileColor() - { - return $this->profileColor; - } - public function setShowBrowseView($showBrowseView) - { - $this->showBrowseView = $showBrowseView; - } - public function getShowBrowseView() - { - return $this->showBrowseView; - } - public function setShowRelatedChannels($showRelatedChannels) - { - $this->showRelatedChannels = $showRelatedChannels; - } - public function getShowRelatedChannels() - { - return $this->showRelatedChannels; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) - { - $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; - } - public function getTrackingAnalyticsAccountId() - { - return $this->trackingAnalyticsAccountId; - } - public function setUnsubscribedTrailer($unsubscribedTrailer) - { - $this->unsubscribedTrailer = $unsubscribedTrailer; - } - public function getUnsubscribedTrailer() - { - return $this->unsubscribedTrailer; - } -} - -class Google_Service_YouTube_ChannelSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $commentCount; - public $hiddenSubscriberCount; - public $subscriberCount; - public $videoCount; - public $viewCount; - - - public function setCommentCount($commentCount) - { - $this->commentCount = $commentCount; - } - public function getCommentCount() - { - return $this->commentCount; - } - public function setHiddenSubscriberCount($hiddenSubscriberCount) - { - $this->hiddenSubscriberCount = $hiddenSubscriberCount; - } - public function getHiddenSubscriberCount() - { - return $this->hiddenSubscriberCount; - } - public function setSubscriberCount($subscriberCount) - { - $this->subscriberCount = $subscriberCount; - } - public function getSubscriberCount() - { - return $this->subscriberCount; - } - public function setVideoCount($videoCount) - { - $this->videoCount = $videoCount; - } - public function getVideoCount() - { - return $this->videoCount; - } - public function setViewCount($viewCount) - { - $this->viewCount = $viewCount; - } - public function getViewCount() - { - return $this->viewCount; - } -} - -class Google_Service_YouTube_ChannelStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isLinked; - public $longUploadsStatus; - public $privacyStatus; - - - public function setIsLinked($isLinked) - { - $this->isLinked = $isLinked; - } - public function getIsLinked() - { - return $this->isLinked; - } - public function setLongUploadsStatus($longUploadsStatus) - { - $this->longUploadsStatus = $longUploadsStatus; - } - public function getLongUploadsStatus() - { - return $this->longUploadsStatus; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $topicIds; - - - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_Comment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; - protected $authorChannelIdDataType = ''; - public $authorChannelUrl; - public $authorDisplayName; - public $authorGoogleplusProfileUrl; - public $authorProfileImageUrl; - public $canRate; - public $channelId; - public $likeCount; - public $moderationStatus; - public $parentId; - public $publishedAt; - public $textDisplay; - public $textOriginal; - public $updatedAt; - public $videoId; - public $viewerRating; - - - public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) - { - $this->authorChannelId = $authorChannelId; - } - public function getAuthorChannelId() - { - return $this->authorChannelId; - } - public function setAuthorChannelUrl($authorChannelUrl) - { - $this->authorChannelUrl = $authorChannelUrl; - } - public function getAuthorChannelUrl() - { - return $this->authorChannelUrl; - } - public function setAuthorDisplayName($authorDisplayName) - { - $this->authorDisplayName = $authorDisplayName; - } - public function getAuthorDisplayName() - { - return $this->authorDisplayName; - } - public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) - { - $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; - } - public function getAuthorGoogleplusProfileUrl() - { - return $this->authorGoogleplusProfileUrl; - } - public function setAuthorProfileImageUrl($authorProfileImageUrl) - { - $this->authorProfileImageUrl = $authorProfileImageUrl; - } - public function getAuthorProfileImageUrl() - { - return $this->authorProfileImageUrl; - } - public function setCanRate($canRate) - { - $this->canRate = $canRate; - } - public function getCanRate() - { - return $this->canRate; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setLikeCount($likeCount) - { - $this->likeCount = $likeCount; - } - public function getLikeCount() - { - return $this->likeCount; - } - public function setModerationStatus($moderationStatus) - { - $this->moderationStatus = $moderationStatus; - } - public function getModerationStatus() - { - return $this->moderationStatus; - } - public function setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTextDisplay($textDisplay) - { - $this->textDisplay = $textDisplay; - } - public function getTextDisplay() - { - return $this->textDisplay; - } - public function setTextOriginal($textOriginal) - { - $this->textOriginal = $textOriginal; - } - public function getTextOriginal() - { - return $this->textOriginal; - } - public function setUpdatedAt($updatedAt) - { - $this->updatedAt = $updatedAt; - } - public function getUpdatedAt() - { - return $this->updatedAt; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setViewerRating($viewerRating) - { - $this->viewerRating = $viewerRating; - } - public function getViewerRating() - { - return $this->viewerRating; - } -} - -class Google_Service_YouTube_CommentThread extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; - protected $repliesDataType = ''; - protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_CommentThread'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentThreadReplies extends Google_Collection -{ - protected $collection_key = 'comments'; - protected $internal_gapi_mappings = array( - ); - protected $commentsType = 'Google_Service_YouTube_Comment'; - protected $commentsDataType = 'array'; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } -} - -class Google_Service_YouTube_CommentThreadSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canReply; - public $channelId; - public $isPublic; - protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; - protected $topLevelCommentDataType = ''; - public $totalReplyCount; - public $videoId; - - - public function setCanReply($canReply) - { - $this->canReply = $canReply; - } - public function getCanReply() - { - return $this->canReply; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } - public function getIsPublic() - { - return $this->isPublic; - } - public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) - { - $this->topLevelComment = $topLevelComment; - } - public function getTopLevelComment() - { - return $this->topLevelComment; - } - public function setTotalReplyCount($totalReplyCount) - { - $this->totalReplyCount = $totalReplyCount; - } - public function getTotalReplyCount() - { - return $this->totalReplyCount; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ContentRating extends Google_Collection -{ - protected $collection_key = 'djctqRatingReasons'; - protected $internal_gapi_mappings = array( - ); - public $acbRating; - public $agcomRating; - public $anatelRating; - public $bbfcRating; - public $bfvcRating; - public $bmukkRating; - public $catvRating; - public $catvfrRating; - public $cbfcRating; - public $cccRating; - public $cceRating; - public $chfilmRating; - public $chvrsRating; - public $cicfRating; - public $cnaRating; - public $csaRating; - public $cscfRating; - public $czfilmRating; - public $djctqRating; - public $djctqRatingReasons; - public $eefilmRating; - public $egfilmRating; - public $eirinRating; - public $fcbmRating; - public $fcoRating; - public $fmocRating; - public $fpbRating; - public $fskRating; - public $grfilmRating; - public $icaaRating; - public $ifcoRating; - public $ilfilmRating; - public $incaaRating; - public $kfcbRating; - public $kijkwijzerRating; - public $kmrbRating; - public $lsfRating; - public $mccaaRating; - public $mccypRating; - public $mdaRating; - public $medietilsynetRating; - public $mekuRating; - public $mibacRating; - public $mocRating; - public $moctwRating; - public $mpaaRating; - public $mtrcbRating; - public $nbcRating; - public $nbcplRating; - public $nfrcRating; - public $nfvcbRating; - public $nkclvRating; - public $oflcRating; - public $pefilmRating; - public $rcnofRating; - public $resorteviolenciaRating; - public $rtcRating; - public $rteRating; - public $russiaRating; - public $skfilmRating; - public $smaisRating; - public $smsaRating; - public $tvpgRating; - public $ytRating; - - - public function setAcbRating($acbRating) - { - $this->acbRating = $acbRating; - } - public function getAcbRating() - { - return $this->acbRating; - } - public function setAgcomRating($agcomRating) - { - $this->agcomRating = $agcomRating; - } - public function getAgcomRating() - { - return $this->agcomRating; - } - public function setAnatelRating($anatelRating) - { - $this->anatelRating = $anatelRating; - } - public function getAnatelRating() - { - return $this->anatelRating; - } - public function setBbfcRating($bbfcRating) - { - $this->bbfcRating = $bbfcRating; - } - public function getBbfcRating() - { - return $this->bbfcRating; - } - public function setBfvcRating($bfvcRating) - { - $this->bfvcRating = $bfvcRating; - } - public function getBfvcRating() - { - return $this->bfvcRating; - } - public function setBmukkRating($bmukkRating) - { - $this->bmukkRating = $bmukkRating; - } - public function getBmukkRating() - { - return $this->bmukkRating; - } - public function setCatvRating($catvRating) - { - $this->catvRating = $catvRating; - } - public function getCatvRating() - { - return $this->catvRating; - } - public function setCatvfrRating($catvfrRating) - { - $this->catvfrRating = $catvfrRating; - } - public function getCatvfrRating() - { - return $this->catvfrRating; - } - public function setCbfcRating($cbfcRating) - { - $this->cbfcRating = $cbfcRating; - } - public function getCbfcRating() - { - return $this->cbfcRating; - } - public function setCccRating($cccRating) - { - $this->cccRating = $cccRating; - } - public function getCccRating() - { - return $this->cccRating; - } - public function setCceRating($cceRating) - { - $this->cceRating = $cceRating; - } - public function getCceRating() - { - return $this->cceRating; - } - public function setChfilmRating($chfilmRating) - { - $this->chfilmRating = $chfilmRating; - } - public function getChfilmRating() - { - return $this->chfilmRating; - } - public function setChvrsRating($chvrsRating) - { - $this->chvrsRating = $chvrsRating; - } - public function getChvrsRating() - { - return $this->chvrsRating; - } - public function setCicfRating($cicfRating) - { - $this->cicfRating = $cicfRating; - } - public function getCicfRating() - { - return $this->cicfRating; - } - public function setCnaRating($cnaRating) - { - $this->cnaRating = $cnaRating; - } - public function getCnaRating() - { - return $this->cnaRating; - } - public function setCsaRating($csaRating) - { - $this->csaRating = $csaRating; - } - public function getCsaRating() - { - return $this->csaRating; - } - public function setCscfRating($cscfRating) - { - $this->cscfRating = $cscfRating; - } - public function getCscfRating() - { - return $this->cscfRating; - } - public function setCzfilmRating($czfilmRating) - { - $this->czfilmRating = $czfilmRating; - } - public function getCzfilmRating() - { - return $this->czfilmRating; - } - public function setDjctqRating($djctqRating) - { - $this->djctqRating = $djctqRating; - } - public function getDjctqRating() - { - return $this->djctqRating; - } - public function setDjctqRatingReasons($djctqRatingReasons) - { - $this->djctqRatingReasons = $djctqRatingReasons; - } - public function getDjctqRatingReasons() - { - return $this->djctqRatingReasons; - } - public function setEefilmRating($eefilmRating) - { - $this->eefilmRating = $eefilmRating; - } - public function getEefilmRating() - { - return $this->eefilmRating; - } - public function setEgfilmRating($egfilmRating) - { - $this->egfilmRating = $egfilmRating; - } - public function getEgfilmRating() - { - return $this->egfilmRating; - } - public function setEirinRating($eirinRating) - { - $this->eirinRating = $eirinRating; - } - public function getEirinRating() - { - return $this->eirinRating; - } - public function setFcbmRating($fcbmRating) - { - $this->fcbmRating = $fcbmRating; - } - public function getFcbmRating() - { - return $this->fcbmRating; - } - public function setFcoRating($fcoRating) - { - $this->fcoRating = $fcoRating; - } - public function getFcoRating() - { - return $this->fcoRating; - } - public function setFmocRating($fmocRating) - { - $this->fmocRating = $fmocRating; - } - public function getFmocRating() - { - return $this->fmocRating; - } - public function setFpbRating($fpbRating) - { - $this->fpbRating = $fpbRating; - } - public function getFpbRating() - { - return $this->fpbRating; - } - public function setFskRating($fskRating) - { - $this->fskRating = $fskRating; - } - public function getFskRating() - { - return $this->fskRating; - } - public function setGrfilmRating($grfilmRating) - { - $this->grfilmRating = $grfilmRating; - } - public function getGrfilmRating() - { - return $this->grfilmRating; - } - public function setIcaaRating($icaaRating) - { - $this->icaaRating = $icaaRating; - } - public function getIcaaRating() - { - return $this->icaaRating; - } - public function setIfcoRating($ifcoRating) - { - $this->ifcoRating = $ifcoRating; - } - public function getIfcoRating() - { - return $this->ifcoRating; - } - public function setIlfilmRating($ilfilmRating) - { - $this->ilfilmRating = $ilfilmRating; - } - public function getIlfilmRating() - { - return $this->ilfilmRating; - } - public function setIncaaRating($incaaRating) - { - $this->incaaRating = $incaaRating; - } - public function getIncaaRating() - { - return $this->incaaRating; - } - public function setKfcbRating($kfcbRating) - { - $this->kfcbRating = $kfcbRating; - } - public function getKfcbRating() - { - return $this->kfcbRating; - } - public function setKijkwijzerRating($kijkwijzerRating) - { - $this->kijkwijzerRating = $kijkwijzerRating; - } - public function getKijkwijzerRating() - { - return $this->kijkwijzerRating; - } - public function setKmrbRating($kmrbRating) - { - $this->kmrbRating = $kmrbRating; - } - public function getKmrbRating() - { - return $this->kmrbRating; - } - public function setLsfRating($lsfRating) - { - $this->lsfRating = $lsfRating; - } - public function getLsfRating() - { - return $this->lsfRating; - } - public function setMccaaRating($mccaaRating) - { - $this->mccaaRating = $mccaaRating; - } - public function getMccaaRating() - { - return $this->mccaaRating; - } - public function setMccypRating($mccypRating) - { - $this->mccypRating = $mccypRating; - } - public function getMccypRating() - { - return $this->mccypRating; - } - public function setMdaRating($mdaRating) - { - $this->mdaRating = $mdaRating; - } - public function getMdaRating() - { - return $this->mdaRating; - } - public function setMedietilsynetRating($medietilsynetRating) - { - $this->medietilsynetRating = $medietilsynetRating; - } - public function getMedietilsynetRating() - { - return $this->medietilsynetRating; - } - public function setMekuRating($mekuRating) - { - $this->mekuRating = $mekuRating; - } - public function getMekuRating() - { - return $this->mekuRating; - } - public function setMibacRating($mibacRating) - { - $this->mibacRating = $mibacRating; - } - public function getMibacRating() - { - return $this->mibacRating; - } - public function setMocRating($mocRating) - { - $this->mocRating = $mocRating; - } - public function getMocRating() - { - return $this->mocRating; - } - public function setMoctwRating($moctwRating) - { - $this->moctwRating = $moctwRating; - } - public function getMoctwRating() - { - return $this->moctwRating; - } - public function setMpaaRating($mpaaRating) - { - $this->mpaaRating = $mpaaRating; - } - public function getMpaaRating() - { - return $this->mpaaRating; - } - public function setMtrcbRating($mtrcbRating) - { - $this->mtrcbRating = $mtrcbRating; - } - public function getMtrcbRating() - { - return $this->mtrcbRating; - } - public function setNbcRating($nbcRating) - { - $this->nbcRating = $nbcRating; - } - public function getNbcRating() - { - return $this->nbcRating; - } - public function setNbcplRating($nbcplRating) - { - $this->nbcplRating = $nbcplRating; - } - public function getNbcplRating() - { - return $this->nbcplRating; - } - public function setNfrcRating($nfrcRating) - { - $this->nfrcRating = $nfrcRating; - } - public function getNfrcRating() - { - return $this->nfrcRating; - } - public function setNfvcbRating($nfvcbRating) - { - $this->nfvcbRating = $nfvcbRating; - } - public function getNfvcbRating() - { - return $this->nfvcbRating; - } - public function setNkclvRating($nkclvRating) - { - $this->nkclvRating = $nkclvRating; - } - public function getNkclvRating() - { - return $this->nkclvRating; - } - public function setOflcRating($oflcRating) - { - $this->oflcRating = $oflcRating; - } - public function getOflcRating() - { - return $this->oflcRating; - } - public function setPefilmRating($pefilmRating) - { - $this->pefilmRating = $pefilmRating; - } - public function getPefilmRating() - { - return $this->pefilmRating; - } - public function setRcnofRating($rcnofRating) - { - $this->rcnofRating = $rcnofRating; - } - public function getRcnofRating() - { - return $this->rcnofRating; - } - public function setResorteviolenciaRating($resorteviolenciaRating) - { - $this->resorteviolenciaRating = $resorteviolenciaRating; - } - public function getResorteviolenciaRating() - { - return $this->resorteviolenciaRating; - } - public function setRtcRating($rtcRating) - { - $this->rtcRating = $rtcRating; - } - public function getRtcRating() - { - return $this->rtcRating; - } - public function setRteRating($rteRating) - { - $this->rteRating = $rteRating; - } - public function getRteRating() - { - return $this->rteRating; - } - public function setRussiaRating($russiaRating) - { - $this->russiaRating = $russiaRating; - } - public function getRussiaRating() - { - return $this->russiaRating; - } - public function setSkfilmRating($skfilmRating) - { - $this->skfilmRating = $skfilmRating; - } - public function getSkfilmRating() - { - return $this->skfilmRating; - } - public function setSmaisRating($smaisRating) - { - $this->smaisRating = $smaisRating; - } - public function getSmaisRating() - { - return $this->smaisRating; - } - public function setSmsaRating($smsaRating) - { - $this->smsaRating = $smsaRating; - } - public function getSmsaRating() - { - return $this->smsaRating; - } - public function setTvpgRating($tvpgRating) - { - $this->tvpgRating = $tvpgRating; - } - public function getTvpgRating() - { - return $this->tvpgRating; - } - public function setYtRating($ytRating) - { - $this->ytRating = $ytRating; - } - public function getYtRating() - { - return $this->ytRating; - } -} - -class Google_Service_YouTube_GeoPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $altitude; - public $latitude; - public $longitude; - - - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } - public function getAltitude() - { - return $this->altitude; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } -} - -class Google_Service_YouTube_GuideCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_GuideCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_GuideCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_I18nLanguage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hl; - public $name; - - - public function setHl($hl) - { - $this->hl = $hl; - } - public function getHl() - { - return $this->hl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_I18nRegion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nRegion'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nRegionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gl; - public $name; - - - public function setGl($gl) - { - $this->gl = $gl; - } - public function getGl() - { - return $this->gl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_ImageSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $backgroundImageUrlDataType = ''; - public $bannerExternalUrl; - public $bannerImageUrl; - public $bannerMobileExtraHdImageUrl; - public $bannerMobileHdImageUrl; - public $bannerMobileImageUrl; - public $bannerMobileLowImageUrl; - public $bannerMobileMediumHdImageUrl; - public $bannerTabletExtraHdImageUrl; - public $bannerTabletHdImageUrl; - public $bannerTabletImageUrl; - public $bannerTabletLowImageUrl; - public $bannerTvHighImageUrl; - public $bannerTvImageUrl; - public $bannerTvLowImageUrl; - public $bannerTvMediumImageUrl; - protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageImapScriptDataType = ''; - protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageUrlDataType = ''; - protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageImapScriptDataType = ''; - protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageUrlDataType = ''; - public $trackingImageUrl; - public $watchIconImageUrl; - - - public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) - { - $this->backgroundImageUrl = $backgroundImageUrl; - } - public function getBackgroundImageUrl() - { - return $this->backgroundImageUrl; - } - public function setBannerExternalUrl($bannerExternalUrl) - { - $this->bannerExternalUrl = $bannerExternalUrl; - } - public function getBannerExternalUrl() - { - return $this->bannerExternalUrl; - } - public function setBannerImageUrl($bannerImageUrl) - { - $this->bannerImageUrl = $bannerImageUrl; - } - public function getBannerImageUrl() - { - return $this->bannerImageUrl; - } - public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) - { - $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; - } - public function getBannerMobileExtraHdImageUrl() - { - return $this->bannerMobileExtraHdImageUrl; - } - public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) - { - $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; - } - public function getBannerMobileHdImageUrl() - { - return $this->bannerMobileHdImageUrl; - } - public function setBannerMobileImageUrl($bannerMobileImageUrl) - { - $this->bannerMobileImageUrl = $bannerMobileImageUrl; - } - public function getBannerMobileImageUrl() - { - return $this->bannerMobileImageUrl; - } - public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) - { - $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; - } - public function getBannerMobileLowImageUrl() - { - return $this->bannerMobileLowImageUrl; - } - public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) - { - $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; - } - public function getBannerMobileMediumHdImageUrl() - { - return $this->bannerMobileMediumHdImageUrl; - } - public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) - { - $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; - } - public function getBannerTabletExtraHdImageUrl() - { - return $this->bannerTabletExtraHdImageUrl; - } - public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) - { - $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; - } - public function getBannerTabletHdImageUrl() - { - return $this->bannerTabletHdImageUrl; - } - public function setBannerTabletImageUrl($bannerTabletImageUrl) - { - $this->bannerTabletImageUrl = $bannerTabletImageUrl; - } - public function getBannerTabletImageUrl() - { - return $this->bannerTabletImageUrl; - } - public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) - { - $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; - } - public function getBannerTabletLowImageUrl() - { - return $this->bannerTabletLowImageUrl; - } - public function setBannerTvHighImageUrl($bannerTvHighImageUrl) - { - $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; - } - public function getBannerTvHighImageUrl() - { - return $this->bannerTvHighImageUrl; - } - public function setBannerTvImageUrl($bannerTvImageUrl) - { - $this->bannerTvImageUrl = $bannerTvImageUrl; - } - public function getBannerTvImageUrl() - { - return $this->bannerTvImageUrl; - } - public function setBannerTvLowImageUrl($bannerTvLowImageUrl) - { - $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; - } - public function getBannerTvLowImageUrl() - { - return $this->bannerTvLowImageUrl; - } - public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) - { - $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; - } - public function getBannerTvMediumImageUrl() - { - return $this->bannerTvMediumImageUrl; - } - public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) - { - $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; - } - public function getLargeBrandedBannerImageImapScript() - { - return $this->largeBrandedBannerImageImapScript; - } - public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) - { - $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; - } - public function getLargeBrandedBannerImageUrl() - { - return $this->largeBrandedBannerImageUrl; - } - public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) - { - $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; - } - public function getSmallBrandedBannerImageImapScript() - { - return $this->smallBrandedBannerImageImapScript; - } - public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) - { - $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; - } - public function getSmallBrandedBannerImageUrl() - { - return $this->smallBrandedBannerImageUrl; - } - public function setTrackingImageUrl($trackingImageUrl) - { - $this->trackingImageUrl = $trackingImageUrl; - } - public function getTrackingImageUrl() - { - return $this->trackingImageUrl; - } - public function setWatchIconImageUrl($watchIconImageUrl) - { - $this->watchIconImageUrl = $watchIconImageUrl; - } - public function getWatchIconImageUrl() - { - return $this->watchIconImageUrl; - } -} - -class Google_Service_YouTube_IngestionInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupIngestionAddress; - public $ingestionAddress; - public $streamName; - - - public function setBackupIngestionAddress($backupIngestionAddress) - { - $this->backupIngestionAddress = $backupIngestionAddress; - } - public function getBackupIngestionAddress() - { - return $this->backupIngestionAddress; - } - public function setIngestionAddress($ingestionAddress) - { - $this->ingestionAddress = $ingestionAddress; - } - public function getIngestionAddress() - { - return $this->ingestionAddress; - } - public function setStreamName($streamName) - { - $this->streamName = $streamName; - } - public function getStreamName() - { - return $this->streamName; - } -} - -class Google_Service_YouTube_InvideoBranding extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $imageBytes; - public $imageUrl; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $targetChannelId; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setImageBytes($imageBytes) - { - $this->imageBytes = $imageBytes; - } - public function getImageBytes() - { - return $this->imageBytes; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setTargetChannelId($targetChannelId) - { - $this->targetChannelId = $targetChannelId; - } - public function getTargetChannelId() - { - return $this->targetChannelId; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_InvideoPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cornerPosition; - public $type; - - - public function setCornerPosition($cornerPosition) - { - $this->cornerPosition = $cornerPosition; - } - public function getCornerPosition() - { - return $this->cornerPosition; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_InvideoPromotion extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; - protected $defaultTimingDataType = ''; - protected $itemsType = 'Google_Service_YouTube_PromotedItem'; - protected $itemsDataType = 'array'; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $useSmartTiming; - - - public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) - { - $this->defaultTiming = $defaultTiming; - } - public function getDefaultTiming() - { - return $this->defaultTiming; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setUseSmartTiming($useSmartTiming) - { - $this->useSmartTiming = $useSmartTiming; - } - public function getUseSmartTiming() - { - return $this->useSmartTiming; - } -} - -class Google_Service_YouTube_InvideoTiming extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $durationMs; - public $offsetMs; - public $type; - - - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setOffsetMs($offsetMs) - { - $this->offsetMs = $offsetMs; - } - public function getOffsetMs() - { - return $this->offsetMs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LanguageTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_LiveBroadcast extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; - protected $topicDetailsDataType = ''; - - - 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 setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $boundStreamId; - public $enableClosedCaptions; - public $enableContentEncryption; - public $enableDvr; - public $enableEmbed; - public $enableLowLatency; - protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; - protected $monitorStreamDataType = ''; - public $recordFromStart; - public $startWithSlate; - - - public function setBoundStreamId($boundStreamId) - { - $this->boundStreamId = $boundStreamId; - } - public function getBoundStreamId() - { - return $this->boundStreamId; - } - public function setEnableClosedCaptions($enableClosedCaptions) - { - $this->enableClosedCaptions = $enableClosedCaptions; - } - public function getEnableClosedCaptions() - { - return $this->enableClosedCaptions; - } - public function setEnableContentEncryption($enableContentEncryption) - { - $this->enableContentEncryption = $enableContentEncryption; - } - public function getEnableContentEncryption() - { - return $this->enableContentEncryption; - } - public function setEnableDvr($enableDvr) - { - $this->enableDvr = $enableDvr; - } - public function getEnableDvr() - { - return $this->enableDvr; - } - public function setEnableEmbed($enableEmbed) - { - $this->enableEmbed = $enableEmbed; - } - public function getEnableEmbed() - { - return $this->enableEmbed; - } - public function setEnableLowLatency($enableLowLatency) - { - $this->enableLowLatency = $enableLowLatency; - } - public function getEnableLowLatency() - { - return $this->enableLowLatency; - } - public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) - { - $this->monitorStream = $monitorStream; - } - public function getMonitorStream() - { - return $this->monitorStream; - } - public function setRecordFromStart($recordFromStart) - { - $this->recordFromStart = $recordFromStart; - } - public function getRecordFromStart() - { - return $this->recordFromStart; - } - public function setStartWithSlate($startWithSlate) - { - $this->startWithSlate = $startWithSlate; - } - public function getStartWithSlate() - { - return $this->startWithSlate; - } -} - -class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualEndTime; - public $actualStartTime; - public $channelId; - public $description; - public $isDefaultBroadcast; - public $publishedAt; - public $scheduledEndTime; - public $scheduledStartTime; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIsDefaultBroadcast($isDefaultBroadcast) - { - $this->isDefaultBroadcast = $isDefaultBroadcast; - } - public function getIsDefaultBroadcast() - { - return $this->isDefaultBroadcast; - } - 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_LiveBroadcastStatistics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $concurrentViewers; - public $totalChatCount; - - - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setTotalChatCount($totalChatCount) - { - $this->totalChatCount = $totalChatCount; - } - public function getTotalChatCount() - { - return $this->totalChatCount; - } -} - -class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lifeCycleStatus; - public $liveBroadcastPriority; - public $privacyStatus; - public $recordingStatus; - - - public function setLifeCycleStatus($lifeCycleStatus) - { - $this->lifeCycleStatus = $lifeCycleStatus; - } - public function getLifeCycleStatus() - { - return $this->lifeCycleStatus; - } - public function setLiveBroadcastPriority($liveBroadcastPriority) - { - $this->liveBroadcastPriority = $liveBroadcastPriority; - } - public function getLiveBroadcastPriority() - { - return $this->liveBroadcastPriority; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setRecordingStatus($recordingStatus) - { - $this->recordingStatus = $recordingStatus; - } - public function getRecordingStatus() - { - return $this->recordingStatus; - } -} - -class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; - protected $snippetDataType = ''; - public $type; - public $unmatched; - - - public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnmatched($unmatched) - { - $this->unmatched = $unmatched; - } - public function getUnmatched() - { - return $this->unmatched; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection -{ - protected $collection_key = 'topics'; - protected $internal_gapi_mappings = array( - ); - protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; - protected $topicsDataType = 'array'; - - - public function setTopics($topics) - { - $this->topics = $topics; - } - public function getTopics() - { - return $this->topics; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $releaseDate; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReleaseDate($releaseDate) - { - $this->releaseDate = $releaseDate; - } - public function getReleaseDate() - { - return $this->releaseDate; - } -} - -class Google_Service_YouTube_LiveStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cdnType = 'Google_Service_YouTube_CdnSettings'; - protected $cdnDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; - protected $statusDataType = ''; - - - public function setCdn(Google_Service_YouTube_CdnSettings $cdn) - { - $this->cdn = $cdn; - } - public function getCdn() - { - return $this->cdn; - } - public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $reason; - public $severity; - public $type; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $closedCaptionsIngestionUrl; - public $isReusable; - - - public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) - { - $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; - } - public function getClosedCaptionsIngestionUrl() - { - return $this->closedCaptionsIngestionUrl; - } - public function setIsReusable($isReusable) - { - $this->isReusable = $isReusable; - } - public function getIsReusable() - { - return $this->isReusable; - } -} - -class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection -{ - protected $collection_key = 'configurationIssues'; - protected $internal_gapi_mappings = array( - ); - protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; - protected $configurationIssuesDataType = 'array'; - public $lastUpdateTimeS; - public $status; - - - public function setConfigurationIssues($configurationIssues) - { - $this->configurationIssues = $configurationIssues; - } - public function getConfigurationIssues() - { - return $this->configurationIssues; - } - public function setLastUpdateTimeS($lastUpdateTimeS) - { - $this->lastUpdateTimeS = $lastUpdateTimeS; - } - public function getLastUpdateTimeS() - { - return $this->lastUpdateTimeS; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveStream'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveStreamSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - public $isDefaultStream; - 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 setIsDefaultStream($isDefaultStream) - { - $this->isDefaultStream = $isDefaultStream; - } - public function getIsDefaultStream() - { - return $this->isDefaultStream; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; - protected $healthStatusDataType = ''; - public $streamStatus; - - - public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setStreamStatus($streamStatus) - { - $this->streamStatus = $streamStatus; - } - public function getStreamStatus() - { - return $this->streamStatus; - } -} - -class Google_Service_YouTube_LocalizedProperty extends Google_Collection -{ - protected $collection_key = 'localized'; - protected $internal_gapi_mappings = array( - ); - public $default; - protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; - protected $defaultLanguageDataType = ''; - protected $localizedType = 'Google_Service_YouTube_LocalizedString'; - protected $localizedDataType = 'array'; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized($localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } -} - -class Google_Service_YouTube_LocalizedString extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $language; - public $value; - - - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_MonitorStreamInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $broadcastStreamDelayMs; - public $embedHtml; - public $enableMonitorStream; - - - public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) - { - $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; - } - public function getBroadcastStreamDelayMs() - { - return $this->broadcastStreamDelayMs; - } - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } - public function setEnableMonitorStream($enableMonitorStream) - { - $this->enableMonitorStream = $enableMonitorStream; - } - public function getEnableMonitorStream() - { - return $this->enableMonitorStream; - } -} - -class Google_Service_YouTube_PageInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizationsDataType = 'map'; - protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; - protected $playerDataType = ''; - protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $itemCount; - - - public function setItemCount($itemCount) - { - $this->itemCount = $itemCount; - } - public function getItemCount() - { - return $this->itemCount; - } -} - -class Google_Service_YouTube_PlaylistItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $playlistId; - public $position; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistItemStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PlaylistListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Playlist'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_PlaylistPlayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_PlaylistSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PromotedItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customMessage; - protected $idType = 'Google_Service_YouTube_PromotedItemId'; - protected $idDataType = ''; - public $promotedByContentOwner; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setCustomMessage($customMessage) - { - $this->customMessage = $customMessage; - } - public function getCustomMessage() - { - return $this->customMessage; - } - public function setId(Google_Service_YouTube_PromotedItemId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPromotedByContentOwner($promotedByContentOwner) - { - $this->promotedByContentOwner = $promotedByContentOwner; - } - public function getPromotedByContentOwner() - { - return $this->promotedByContentOwner; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_PromotedItemId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $recentlyUploadedBy; - public $type; - public $videoId; - public $websiteUrl; - - - public function setRecentlyUploadedBy($recentlyUploadedBy) - { - $this->recentlyUploadedBy = $recentlyUploadedBy; - } - public function getRecentlyUploadedBy() - { - return $this->recentlyUploadedBy; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_YouTube_PropertyValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_SearchResult'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SearchResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $idType = 'Google_Service_YouTube_ResourceId'; - protected $idDataType = ''; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId(Google_Service_YouTube_ResourceId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_SearchResultSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $liveBroadcastContent; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Subscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; - protected $snippetDataType = ''; - protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; - protected $subscriberSnippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) - { - $this->subscriberSnippet = $subscriberSnippet; - } - public function getSubscriberSnippet() - { - return $this->subscriberSnippet; - } -} - -class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activityType; - public $newItemCount; - public $totalItemCount; - - - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - public function getActivityType() - { - return $this->activityType; - } - public function setNewItemCount($newItemCount) - { - $this->newItemCount = $newItemCount; - } - public function getNewItemCount() - { - return $this->newItemCount; - } - public function setTotalItemCount($totalItemCount) - { - $this->totalItemCount = $totalItemCount; - } - public function getTotalItemCount() - { - return $this->totalItemCount; - } -} - -class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Subscription'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SubscriptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Thumbnail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $defaultType = 'Google_Service_YouTube_Thumbnail'; - protected $defaultDataType = ''; - protected $highType = 'Google_Service_YouTube_Thumbnail'; - protected $highDataType = ''; - protected $maxresType = 'Google_Service_YouTube_Thumbnail'; - protected $maxresDataType = ''; - protected $mediumType = 'Google_Service_YouTube_Thumbnail'; - protected $mediumDataType = ''; - protected $standardType = 'Google_Service_YouTube_Thumbnail'; - protected $standardDataType = ''; - - - public function setDefault(Google_Service_YouTube_Thumbnail $default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setHigh(Google_Service_YouTube_Thumbnail $high) - { - $this->high = $high; - } - public function getHigh() - { - return $this->high; - } - public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) - { - $this->maxres = $maxres; - } - public function getMaxres() - { - return $this->maxres; - } - public function setMedium(Google_Service_YouTube_Thumbnail $medium) - { - $this->medium = $medium; - } - public function getMedium() - { - return $this->medium; - } - public function setStandard(Google_Service_YouTube_Thumbnail $standard) - { - $this->standard = $standard; - } - public function getStandard() - { - return $this->standard; - } -} - -class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_TokenPagination extends Google_Model -{ -} - -class Google_Service_YouTube_Video extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; - protected $ageGatingDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; - protected $contentDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; - protected $fileDetailsDataType = ''; - public $id; - public $kind; - protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; - protected $liveStreamingDetailsDataType = ''; - protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizationsDataType = 'map'; - protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; - protected $monetizationDetailsDataType = ''; - protected $playerType = 'Google_Service_YouTube_VideoPlayer'; - protected $playerDataType = ''; - protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; - protected $processingDetailsDataType = ''; - protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; - protected $projectDetailsDataType = ''; - protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; - protected $recordingDetailsDataType = ''; - protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_VideoStatus'; - protected $statusDataType = ''; - protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; - protected $suggestionsDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) - { - $this->ageGating = $ageGating; - } - public function getAgeGating() - { - return $this->ageGating; - } - public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - public function getConversionPings() - { - return $this->conversionPings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) - { - $this->fileDetails = $fileDetails; - } - public function getFileDetails() - { - return $this->fileDetails; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) - { - $this->liveStreamingDetails = $liveStreamingDetails; - } - public function getLiveStreamingDetails() - { - return $this->liveStreamingDetails; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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_VideoAbuseReport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $comments; - public $language; - public $reasonId; - public $secondaryReasonId; - public $videoId; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setReasonId($reasonId) - { - $this->reasonId = $reasonId; - } - public function getReasonId() - { - return $this->reasonId; - } - public function setSecondaryReasonId($secondaryReasonId) - { - $this->secondaryReasonId = $secondaryReasonId; - } - public function getSecondaryReasonId() - { - return $this->secondaryReasonId; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection -{ - protected $collection_key = 'secondaryReasons'; - protected $internal_gapi_mappings = array( - ); - public $label; - protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; - protected $secondaryReasonsDataType = 'array'; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setSecondaryReasons($secondaryReasons) - { - $this->secondaryReasons = $secondaryReasons; - } - public function getSecondaryReasons() - { - return $this->secondaryReasons; - } -} - -class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $label; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_YouTube_VideoAgeGating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $assignable; - public $channelId; - public $title; - - - public function setAssignable($assignable) - { - $this->assignable = $assignable; - } - public function getAssignable() - { - return $this->assignable; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caption; - protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; - protected $contentRatingDataType = ''; - protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; - protected $countryRestrictionDataType = ''; - public $definition; - public $dimension; - public $duration; - public $licensedContent; - protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; - protected $regionRestrictionDataType = ''; - - - public function setCaption($caption) - { - $this->caption = $caption; - } - public function getCaption() - { - return $this->caption; - } - public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) - { - $this->contentRating = $contentRating; - } - public function getContentRating() - { - return $this->contentRating; - } - public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) - { - $this->countryRestriction = $countryRestriction; - } - public function getCountryRestriction() - { - return $this->countryRestriction; - } - public function setDefinition($definition) - { - $this->definition = $definition; - } - public function getDefinition() - { - return $this->definition; - } - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setLicensedContent($licensedContent) - { - $this->licensedContent = $licensedContent; - } - public function getLicensedContent() - { - return $this->licensedContent; - } - public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) - { - $this->regionRestriction = $regionRestriction; - } - public function getRegionRestriction() - { - return $this->regionRestriction; - } -} - -class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection -{ - protected $collection_key = 'blocked'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - -class Google_Service_YouTube_VideoFileDetails extends Google_Collection -{ - protected $collection_key = 'videoStreams'; - protected $internal_gapi_mappings = array( - ); - protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; - protected $audioStreamsDataType = 'array'; - public $bitrateBps; - public $container; - public $creationTime; - public $durationMs; - public $fileName; - public $fileSize; - public $fileType; - protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; - protected $recordingLocationDataType = ''; - protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; - protected $videoStreamsDataType = 'array'; - - - public function setAudioStreams($audioStreams) - { - $this->audioStreams = $audioStreams; - } - public function getAudioStreams() - { - return $this->audioStreams; - } - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - public function getBitrateBps() - { - return $this->bitrateBps; - } - public function setContainer($container) - { - $this->container = $container; - } - public function getContainer() - { - return $this->container; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - public function getFileName() - { - return $this->fileName; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) - { - $this->recordingLocation = $recordingLocation; - } - public function getRecordingLocation() - { - return $this->recordingLocation; - } - public function setVideoStreams($videoStreams) - { - $this->videoStreams = $videoStreams; - } - public function getVideoStreams() - { - return $this->videoStreams; - } -} - -class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoRating'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Video'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualEndTime; - public $actualStartTime; - public $concurrentViewers; - public $scheduledEndTime; - public $scheduledStartTime; - - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setScheduledEndTime($scheduledEndTime) - { - $this->scheduledEndTime = $scheduledEndTime; - } - public function getScheduledEndTime() - { - return $this->scheduledEndTime; - } - public function setScheduledStartTime($scheduledStartTime) - { - $this->scheduledStartTime = $scheduledStartTime; - } - public function getScheduledStartTime() - { - return $this->scheduledStartTime; - } -} - -class Google_Service_YouTube_VideoLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_YouTube_AccessPolicy'; - protected $accessDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_VideoProcessingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $editorSuggestionsAvailability; - public $fileDetailsAvailability; - public $processingFailureReason; - public $processingIssuesAvailability; - protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; - protected $processingProgressDataType = ''; - public $processingStatus; - public $tagSuggestionsAvailability; - public $thumbnailsAvailability; - - - public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) - { - $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; - } - public function getEditorSuggestionsAvailability() - { - return $this->editorSuggestionsAvailability; - } - public function setFileDetailsAvailability($fileDetailsAvailability) - { - $this->fileDetailsAvailability = $fileDetailsAvailability; - } - public function getFileDetailsAvailability() - { - return $this->fileDetailsAvailability; - } - public function setProcessingFailureReason($processingFailureReason) - { - $this->processingFailureReason = $processingFailureReason; - } - public function getProcessingFailureReason() - { - return $this->processingFailureReason; - } - public function setProcessingIssuesAvailability($processingIssuesAvailability) - { - $this->processingIssuesAvailability = $processingIssuesAvailability; - } - public function getProcessingIssuesAvailability() - { - return $this->processingIssuesAvailability; - } - public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) - { - $this->processingProgress = $processingProgress; - } - public function getProcessingProgress() - { - return $this->processingProgress; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setTagSuggestionsAvailability($tagSuggestionsAvailability) - { - $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; - } - public function getTagSuggestionsAvailability() - { - return $this->tagSuggestionsAvailability; - } - public function setThumbnailsAvailability($thumbnailsAvailability) - { - $this->thumbnailsAvailability = $thumbnailsAvailability; - } - public function getThumbnailsAvailability() - { - return $this->thumbnailsAvailability; - } -} - -class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $tags; - - - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_YouTube_VideoRating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $locationType = 'Google_Service_YouTube_GeoPoint'; - protected $locationDataType = ''; - public $locationDescription; - public $recordingDate; - - - public function setLocation(Google_Service_YouTube_GeoPoint $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setLocationDescription($locationDescription) - { - $this->locationDescription = $locationDescription; - } - public function getLocationDescription() - { - return $this->locationDescription; - } - public function setRecordingDate($recordingDate) - { - $this->recordingDate = $recordingDate; - } - public function getRecordingDate() - { - return $this->recordingDate; - } -} - -class Google_Service_YouTube_VideoSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $categoryId; - public $channelId; - public $channelTitle; - public $defaultAudioLanguage; - public $defaultLanguage; - public $description; - public $liveBroadcastContent; - protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - public function getCategoryId() - { - return $this->categoryId; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultAudioLanguage($defaultAudioLanguage) - { - $this->defaultAudioLanguage = $defaultAudioLanguage; - } - public function getDefaultAudioLanguage() - { - return $this->defaultAudioLanguage; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embeddable; - public $failureReason; - public $license; - public $privacyStatus; - public $publicStatsViewable; - public $publishAt; - public $rejectionReason; - public $uploadStatus; - - - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - public function getEmbeddable() - { - return $this->embeddable; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setLicense($license) - { - $this->license = $license; - } - public function getLicense() - { - return $this->license; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setPublicStatsViewable($publicStatsViewable) - { - $this->publicStatsViewable = $publicStatsViewable; - } - public function getPublicStatsViewable() - { - return $this->publicStatsViewable; - } - public function setPublishAt($publishAt) - { - $this->publishAt = $publishAt; - } - public function getPublishAt() - { - return $this->publishAt; - } - public function setRejectionReason($rejectionReason) - { - $this->rejectionReason = $rejectionReason; - } - public function getRejectionReason() - { - return $this->rejectionReason; - } - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_YouTube_VideoSuggestions extends Google_Collection -{ - protected $collection_key = 'tagSuggestions'; - protected $internal_gapi_mappings = array( - ); - public $editorSuggestions; - public $processingErrors; - public $processingHints; - public $processingWarnings; - protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; - protected $tagSuggestionsDataType = 'array'; - - - public function setEditorSuggestions($editorSuggestions) - { - $this->editorSuggestions = $editorSuggestions; - } - public function getEditorSuggestions() - { - return $this->editorSuggestions; - } - public function setProcessingErrors($processingErrors) - { - $this->processingErrors = $processingErrors; - } - public function getProcessingErrors() - { - return $this->processingErrors; - } - public function setProcessingHints($processingHints) - { - $this->processingHints = $processingHints; - } - public function getProcessingHints() - { - return $this->processingHints; - } - public function setProcessingWarnings($processingWarnings) - { - $this->processingWarnings = $processingWarnings; - } - public function getProcessingWarnings() - { - return $this->processingWarnings; - } - public function setTagSuggestions($tagSuggestions) - { - $this->tagSuggestions = $tagSuggestions; - } - public function getTagSuggestions() - { - return $this->tagSuggestions; - } -} - -class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection -{ - protected $collection_key = 'categoryRestricts'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $relevantTopicIds; - public $topicIds; - - - public function setRelevantTopicIds($relevantTopicIds) - { - $this->relevantTopicIds = $relevantTopicIds; - } - public function getRelevantTopicIds() - { - return $this->relevantTopicIds; - } - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_WatchSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} From b81d706eddb13e06db6b4c987b18fe634c1a73aa Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sat, 27 Jun 2015 05:59:04 -0700 Subject: [PATCH 0854/1274] Removed Dfareporting.php --- src/Google/Service/Dfareporting.php | 21443 -------------------------- 1 file changed, 21443 deletions(-) delete mode 100644 src/Google/Service/Dfareporting.php diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php deleted file mode 100644 index 11e14e2ca..000000000 --- a/src/Google/Service/Dfareporting.php +++ /dev/null @@ -1,21443 +0,0 @@ - - * Manage your DoubleClick Campaign Manager ad campaigns and reports.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Dfareporting extends Google_Service -{ - /** View and manage DoubleClick for Advertisers reports. */ - const DFAREPORTING = - "https://www.googleapis.com/auth/dfareporting"; - /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */ - const DFATRAFFICKING = - "https://www.googleapis.com/auth/dfatrafficking"; - - public $accountActiveAdSummaries; - public $accountPermissionGroups; - public $accountPermissions; - public $accountUserProfiles; - public $accounts; - public $ads; - public $advertiserGroups; - public $advertisers; - public $browsers; - public $campaignCreativeAssociations; - public $campaigns; - public $changeLogs; - public $cities; - public $connectionTypes; - public $contentCategories; - public $countries; - public $creativeAssets; - public $creativeFieldValues; - public $creativeFields; - public $creativeGroups; - public $creatives; - public $dimensionValues; - public $directorySiteContacts; - public $directorySites; - public $eventTags; - public $files; - public $floodlightActivities; - public $floodlightActivityGroups; - public $floodlightConfigurations; - public $inventoryItems; - public $landingPages; - public $metros; - public $mobileCarriers; - public $operatingSystemVersions; - public $operatingSystems; - public $orderDocuments; - public $orders; - public $placementGroups; - public $placementStrategies; - public $placements; - public $platformTypes; - public $postalCodes; - public $projects; - public $regions; - public $remarketingListShares; - public $remarketingLists; - public $reports; - public $reports_compatibleFields; - public $reports_files; - public $sites; - public $sizes; - public $subaccounts; - public $targetableRemarketingLists; - public $userProfiles; - public $userRolePermissionGroups; - public $userRolePermissions; - public $userRoles; - - - /** - * Constructs the internal representation of the Dfareporting service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'dfareporting/v2.1/'; - $this->version = 'v2.1'; - $this->serviceName = 'dfareporting'; - - $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( - $this, - $this->serviceName, - 'accountActiveAdSummaries', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'summaryAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountPermissionGroups = new Google_Service_Dfareporting_AccountPermissionGroups_Resource( - $this, - $this->serviceName, - 'accountPermissionGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountPermissionGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountPermissions = new Google_Service_Dfareporting_AccountPermissions_Resource( - $this, - $this->serviceName, - 'accountPermissions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountPermissions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountPermissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountUserProfiles = new Google_Service_Dfareporting_AccountUserProfiles_Resource( - $this, - $this->serviceName, - 'accountUserProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userRoleId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts = new Google_Service_Dfareporting_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->ads = new Google_Service_Dfareporting_Ads_Resource( - $this, - $this->serviceName, - 'ads', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/ads/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'landingPageIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'overriddenEventTagId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'creativeOptimizationConfigurationIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sslCompliant' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sslRequired' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'creativeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'creativeType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'compatibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'audienceSegmentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'remarketingListIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'dynamicClickTracker' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->advertiserGroups = new Google_Service_Dfareporting_AdvertiserGroups_Resource( - $this, - $this->serviceName, - 'advertiserGroups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->advertisers = new Google_Service_Dfareporting_Advertisers_Resource( - $this, - $this->serviceName, - 'advertisers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/advertisers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeAdvertisersWithoutGroupsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onlyParent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightConfigurationIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'advertiserGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->browsers = new Google_Service_Dfareporting_Browsers_Resource( - $this, - $this->serviceName, - 'browsers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/browsers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->campaignCreativeAssociations = new Google_Service_Dfareporting_CampaignCreativeAssociations_Resource( - $this, - $this->serviceName, - 'campaignCreativeAssociations', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->campaigns = new Google_Service_Dfareporting_Campaigns_Resource( - $this, - $this->serviceName, - 'campaigns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'defaultLandingPageName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'defaultLandingPageUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'excludedIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'overriddenEventTagId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'atLeastOneOptimizationActivity' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->changeLogs = new Google_Service_Dfareporting_ChangeLogs_Resource( - $this, - $this->serviceName, - 'changeLogs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/changeLogs/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/changeLogs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'minChangeTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxChangeTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProfileIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'objectIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'action' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'objectType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->cities = new Google_Service_Dfareporting_Cities_Resource( - $this, - $this->serviceName, - 'cities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/cities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'namePrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionDartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'countryDartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->connectionTypes = new Google_Service_Dfareporting_ConnectionTypes_Resource( - $this, - $this->serviceName, - 'connectionTypes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/connectionTypes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/connectionTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->contentCategories = new Google_Service_Dfareporting_ContentCategories_Resource( - $this, - $this->serviceName, - 'contentCategories', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/contentCategories/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/contentCategories/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->countries = new Google_Service_Dfareporting_Countries_Resource( - $this, - $this->serviceName, - 'countries', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/countries/{dartId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dartId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/countries', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeAssets = new Google_Service_Dfareporting_CreativeAssets_Resource( - $this, - $this->serviceName, - 'creativeAssets', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeFieldValues = new Google_Service_Dfareporting_CreativeFieldValues_Resource( - $this, - $this->serviceName, - 'creativeFieldValues', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeFields = new Google_Service_Dfareporting_CreativeFields_Resource( - $this, - $this->serviceName, - 'creativeFields', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeGroups = new Google_Service_Dfareporting_CreativeGroups_Resource( - $this, - $this->serviceName, - 'creativeGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'groupNumber' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creatives = new Google_Service_Dfareporting_Creatives_Resource( - $this, - $this->serviceName, - 'creatives', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/creatives/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'renderingIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'studioCreativeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'companionCreativeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'creativeFieldIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'types' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( - $this, - $this->serviceName, - 'dimensionValues', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/dimensionvalues/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->directorySiteContacts = new Google_Service_Dfareporting_DirectorySiteContacts_Resource( - $this, - $this->serviceName, - 'directorySiteContacts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->directorySites = new Google_Service_Dfareporting_DirectorySites_Resource( - $this, - $this->serviceName, - 'directorySites', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/directorySites/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/directorySites', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/directorySites', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acceptsInterstitialPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'countryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'acceptsInStreamVideoPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'acceptsPublisherPaidPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dfp_network_code' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->eventTags = new Google_Service_Dfareporting_EventTags_Resource( - $this, - $this->serviceName, - 'eventTags', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/eventTags/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/eventTags/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'enabled' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'adId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'eventTagTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'definitionsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->files = new Google_Service_Dfareporting_Files_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->floodlightActivities = new Google_Service_Dfareporting_FloodlightActivities_Resource( - $this, - $this->serviceName, - 'floodlightActivities', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'generatetag' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'floodlightActivityId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'floodlightActivityGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightConfigurationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'floodlightActivityGroupName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'tagString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightActivityGroupTagString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightActivityGroupType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->floodlightActivityGroups = new Google_Service_Dfareporting_FloodlightActivityGroups_Resource( - $this, - $this->serviceName, - 'floodlightActivityGroups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightConfigurationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->floodlightConfigurations = new Google_Service_Dfareporting_FloodlightConfigurations_Resource( - $this, - $this->serviceName, - 'floodlightConfigurations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->inventoryItems = new Google_Service_Dfareporting_InventoryItems_Resource( - $this, - $this->serviceName, - 'inventoryItems', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'inPlan' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( - $this, - $this->serviceName, - 'landingPages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->metros = new Google_Service_Dfareporting_Metros_Resource( - $this, - $this->serviceName, - 'metros', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/metros', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->mobileCarriers = new Google_Service_Dfareporting_MobileCarriers_Resource( - $this, - $this->serviceName, - 'mobileCarriers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/mobileCarriers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operatingSystemVersions = new Google_Service_Dfareporting_OperatingSystemVersions_Resource( - $this, - $this->serviceName, - 'operatingSystemVersions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/operatingSystemVersions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operatingSystems = new Google_Service_Dfareporting_OperatingSystems_Resource( - $this, - $this->serviceName, - 'operatingSystems', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dartId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/operatingSystems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->orderDocuments = new Google_Service_Dfareporting_OrderDocuments_Resource( - $this, - $this->serviceName, - 'orderDocuments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'approved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->orders = new Google_Service_Dfareporting_Orders_Resource( - $this, - $this->serviceName, - 'orders', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( - $this, - $this->serviceName, - 'placementGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/placementGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'placementStrategyIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentCategoryIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementGroupType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pricingTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'siteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( - $this, - $this->serviceName, - 'placementStrategies', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->placements = new Google_Service_Dfareporting_Placements_Resource( - $this, - $this->serviceName, - 'placements', - array( - 'methods' => array( - 'generatetags' => array( - 'path' => 'userprofiles/{profileId}/placements/generatetags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagFormats' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'placementIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/placements/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'placementStrategyIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentCategoryIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'paymentSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'compatibilities' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'groupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pricingTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'siteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->platformTypes = new Google_Service_Dfareporting_PlatformTypes_Resource( - $this, - $this->serviceName, - 'platformTypes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/platformTypes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/platformTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->postalCodes = new Google_Service_Dfareporting_PostalCodes_Resource( - $this, - $this->serviceName, - 'postalCodes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/postalCodes/{code}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'code' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/postalCodes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Dfareporting_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->regions = new Google_Service_Dfareporting_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->remarketingListShares = new Google_Service_Dfareporting_RemarketingListShares_Resource( - $this, - $this->serviceName, - 'remarketingListShares', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'remarketingListId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'remarketingListId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->remarketingLists = new Google_Service_Dfareporting_RemarketingLists_Resource( - $this, - $this->serviceName, - 'remarketingLists', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'floodlightActivityId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_Dfareporting_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'run' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'synchronous' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( - $this, - $this->serviceName, - 'compatibleFields', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sites = new Google_Service_Dfareporting_Sites_Resource( - $this, - $this->serviceName, - 'sites', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/sites/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acceptsInterstitialPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'acceptsInStreamVideoPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'acceptsPublisherPaidPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'adWordsSite' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'unmappedSite' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'approved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sizes = new Google_Service_Dfareporting_Sizes_Resource( - $this, - $this->serviceName, - 'sizes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/sizes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/sizes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/sizes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'iabStandard' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'width' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'height' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->subaccounts = new Google_Service_Dfareporting_Subaccounts_Resource( - $this, - $this->serviceName, - 'subaccounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/subaccounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetableRemarketingLists = new Google_Service_Dfareporting_TargetableRemarketingLists_Resource( - $this, - $this->serviceName, - 'targetableRemarketingLists', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/targetableRemarketingLists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( - $this, - $this->serviceName, - 'userProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->userRolePermissionGroups = new Google_Service_Dfareporting_UserRolePermissionGroups_Resource( - $this, - $this->serviceName, - 'userRolePermissionGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissionGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->userRolePermissions = new Google_Service_Dfareporting_UserRolePermissions_Resource( - $this, - $this->serviceName, - 'userRolePermissions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->userRoles = new Google_Service_Dfareporting_UserRoles_Resource( - $this, - $this->serviceName, - 'userRoles', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/userRoles/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/userRoles/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'accountUserRoleOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accountActiveAdSummaries" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries; - * - */ -class Google_Service_Dfareporting_AccountActiveAdSummaries_Resource extends Google_Service_Resource -{ - - /** - * Gets the account's active ad summary by account ID. - * (accountActiveAdSummaries.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $summaryAccountId Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountActiveAdSummary - */ - public function get($profileId, $summaryAccountId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary"); - } -} - -/** - * The "accountPermissionGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; - * - */ -class Google_Service_Dfareporting_AccountPermissionGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one account permission group by ID. (accountPermissionGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account permission group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup"); - } - - /** - * Retrieves the list of account permission groups. - * (accountPermissionGroups.listAccountPermissionGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse - */ - public function listAccountPermissionGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse"); - } -} - -/** - * The "accountPermissions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountPermissions = $dfareportingService->accountPermissions; - * - */ -class Google_Service_Dfareporting_AccountPermissions_Resource extends Google_Service_Resource -{ - - /** - * Gets one account permission by ID. (accountPermissions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account permission ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermission - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission"); - } - - /** - * Retrieves the list of account permissions. - * (accountPermissions.listAccountPermissions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionsListResponse - */ - public function listAccountPermissions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse"); - } -} - -/** - * The "accountUserProfiles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountUserProfiles = $dfareportingService->accountUserProfiles; - * - */ -class Google_Service_Dfareporting_AccountUserProfiles_Resource extends Google_Service_Resource -{ - - /** - * Gets one account user profile by ID. (accountUserProfiles.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User profile ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Inserts a new account user profile. (accountUserProfiles.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Retrieves a list of account user profiles, possibly filtered. - * (accountUserProfiles.listAccountUserProfiles) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "user profile*2015" will - * return objects with names like "user profile June 2015", "user profile April - * 2015", or simply "user profile 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "user profile" will match objects with name "my user - * profile", "user profile 2015", or simply "user profile". - * @opt_param string subaccountId Select only user profiles with the specified - * subaccount ID. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only user profiles with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string userRoleId Select only user profiles with the specified - * user role ID. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active user profiles. - * @return Google_Service_Dfareporting_AccountUserProfilesListResponse - */ - public function listAccountUserProfiles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse"); - } - - /** - * Updates an existing account user profile. This method supports patch - * semantics. (accountUserProfiles.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User profile ID. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Updates an existing account user profile. (accountUserProfiles.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } -} - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accounts = $dfareportingService->accounts; - * - */ -class Google_Service_Dfareporting_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Gets one account by ID. (accounts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Account"); - } - - /** - * Retrieves the list of accounts, possibly filtered. (accounts.listAccounts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "account*2015" will return objects - * with names like "account June 2015", "account April 2015", or simply "account - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "account" will - * match objects with name "my account", "account 2015", or simply "account". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only accounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active accounts. Don't set this field to - * select both active and non-active accounts. - * @return Google_Service_Dfareporting_AccountsListResponse - */ - public function listAccounts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse"); - } - - /** - * Updates an existing account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account ID. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Account"); - } - - /** - * Updates an existing account. (accounts.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Account"); - } -} - -/** - * The "ads" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $ads = $dfareportingService->ads; - * - */ -class Google_Service_Dfareporting_Ads_Resource extends Google_Service_Resource -{ - - /** - * Gets one ad by ID. (ads.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Ad ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Inserts a new ad. (ads.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Retrieves a list of ads, possibly filtered. (ads.listAds) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string landingPageIds Select only ads with these landing page IDs. - * @opt_param string overriddenEventTagId Select only ads with this event tag - * override ID. - * @opt_param string campaignIds Select only ads with these campaign IDs. - * @opt_param bool archived Select only archived ads. - * @opt_param string creativeOptimizationConfigurationIds Select only ads with - * these creative optimization configuration IDs. - * @opt_param bool sslCompliant Select only ads that are SSL-compliant. - * @opt_param string sizeIds Select only ads with these size IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Select only ads with these types. - * @opt_param bool sslRequired Select only ads that require SSL. - * @opt_param string creativeIds Select only ads with these creative IDs - * assigned. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string creativeType Select only ads with the specified - * creativeType. - * @opt_param string placementIds Select only ads with these placement IDs - * assigned. - * @opt_param bool active Select only active ads. - * @opt_param string compatibility Select default ads with the specified - * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and - * WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices - * for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are - * for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in- - * stream video ads developed with the VAST standard. - * @opt_param string advertiserId Select only ads with this advertiser ID. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "ad*2015" will return objects with - * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "ad" will match objects with name "my - * ad", "ad 2015", or simply "ad". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string audienceSegmentIds Select only ads with these audience - * segment IDs. - * @opt_param string ids Select only ads with these IDs. - * @opt_param string remarketingListIds Select only ads whose list targeting - * expression use these remarketing list IDs. - * @opt_param bool dynamicClickTracker Select only dynamic click trackers. - * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic - * click trackers. If false, select static click trackers. Leave unset to select - * both. - * @return Google_Service_Dfareporting_AdsListResponse - */ - public function listAds($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse"); - } - - /** - * Updates an existing ad. This method supports patch semantics. (ads.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Ad ID. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Updates an existing ad. (ads.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Ad"); - } -} - -/** - * The "advertiserGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $advertiserGroups = $dfareportingService->advertiserGroups; - * - */ -class Google_Service_Dfareporting_AdvertiserGroups_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing advertiser group. (advertiserGroups.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one advertiser group by ID. (advertiserGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Inserts a new advertiser group. (advertiserGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Retrieves a list of advertiser groups, possibly filtered. - * (advertiserGroups.listAdvertiserGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser group June 2015", "advertiser group April 2015", - * or simply "advertiser group 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "advertisergroup" will match objects with name "my - * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only advertiser groups with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse - */ - public function listAdvertiserGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse"); - } - - /** - * Updates an existing advertiser group. This method supports patch semantics. - * (advertiserGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Updates an existing advertiser group. (advertiserGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } -} - -/** - * The "advertisers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $advertisers = $dfareportingService->advertisers; - * - */ -class Google_Service_Dfareporting_Advertisers_Resource extends Google_Service_Resource -{ - - /** - * Gets one advertiser by ID. (advertisers.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Inserts a new advertiser. (advertisers.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Retrieves a list of advertisers, possibly filtered. - * (advertisers.listAdvertisers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string status Select only advertisers with the specified status. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser June 2015", "advertiser April 2015", or simply - * "advertiser 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "advertiser" will match objects with name "my advertiser", "advertiser 2015", - * or simply "advertiser". - * @opt_param string subaccountId Select only advertisers with these subaccount - * IDs. - * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers - * which do not belong to any advertiser group. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only advertisers with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param bool onlyParent Select only advertisers which use another - * advertiser's floodlight configuration. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string floodlightConfigurationIds Select only advertisers with - * these floodlight configuration IDs. - * @opt_param string advertiserGroupIds Select only advertisers with these - * advertiser group IDs. - * @return Google_Service_Dfareporting_AdvertisersListResponse - */ - public function listAdvertisers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse"); - } - - /** - * Updates an existing advertiser. This method supports patch semantics. - * (advertisers.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser ID. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Updates an existing advertiser. (advertisers.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser"); - } -} - -/** - * The "browsers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $browsers = $dfareportingService->browsers; - * - */ -class Google_Service_Dfareporting_Browsers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of browsers. (browsers.listBrowsers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_BrowsersListResponse - */ - public function listBrowsers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse"); - } -} - -/** - * The "campaignCreativeAssociations" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations; - * - */ -class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends Google_Service_Resource -{ - - /** - * Associates a creative with the specified campaign. This method creates a - * default ad with dimensions matching the creative in the campaign if such a - * default ad does not exist already. (campaignCreativeAssociations.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Campaign ID in this association. - * @param Google_CampaignCreativeAssociation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CampaignCreativeAssociation - */ - public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation"); - } - - /** - * Retrieves the list of creative IDs associated with the specified campaign. - * (campaignCreativeAssociations.listCampaignCreativeAssociations) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Campaign ID in this association. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param int maxResults Maximum number of results to return. - * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse - */ - public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse"); - } -} - -/** - * The "campaigns" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $campaigns = $dfareportingService->campaigns; - * - */ -class Google_Service_Dfareporting_Campaigns_Resource extends Google_Service_Resource -{ - - /** - * Gets one campaign by ID. (campaigns.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Campaign ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Inserts a new campaign. (campaigns.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $defaultLandingPageName Default landing page name for this new - * campaign. Must be less than 256 characters long. - * @param string $defaultLandingPageUrl Default landing page URL for this new - * campaign. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Retrieves a list of campaigns, possibly filtered. (campaigns.listCampaigns) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool archived Select only archived campaigns. Don't set this field - * to select both archived and non-archived campaigns. - * @opt_param string searchString Allows searching for campaigns by name or ID. - * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns - * with names like "campaign June 2015", "campaign April 2015", or simply - * "campaign 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "campaign" will match campaigns with name "my campaign", "campaign 2015", or - * simply "campaign". - * @opt_param string subaccountId Select only campaigns that belong to this - * subaccount. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only campaigns that belong to these - * advertisers. - * @opt_param string ids Select only campaigns with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string excludedIds Exclude campaigns with these IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string advertiserGroupIds Select only campaigns whose advertisers - * belong to these advertiser groups. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string overriddenEventTagId Select only campaigns that have - * overridden this event tag ID. - * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that - * have at least one optimization activity. - * @return Google_Service_Dfareporting_CampaignsListResponse - */ - public function listCampaigns($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse"); - } - - /** - * Updates an existing campaign. This method supports patch semantics. - * (campaigns.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Campaign ID. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Updates an existing campaign. (campaigns.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign"); - } -} - -/** - * The "changeLogs" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $changeLogs = $dfareportingService->changeLogs; - * - */ -class Google_Service_Dfareporting_ChangeLogs_Resource extends Google_Service_Resource -{ - - /** - * Gets one change log by ID. (changeLogs.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Change log ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ChangeLog - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog"); - } - - /** - * Retrieves a list of change logs. (changeLogs.listChangeLogs) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string minChangeTime Select only change logs whose change time is - * before the specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * @opt_param string searchString Select only change logs whose object ID, user - * name, old or new values match the search string. - * @opt_param string maxChangeTime Select only change logs whose change time is - * before the specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * @opt_param string userProfileIds Select only change logs with these user - * profile IDs. - * @opt_param string ids Select only change logs with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string objectIds Select only change logs with these object IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string action Select only change logs with the specified action. - * @opt_param string objectType Select only change logs with the specified - * object type. - * @return Google_Service_Dfareporting_ChangeLogsListResponse - */ - public function listChangeLogs($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse"); - } -} - -/** - * The "cities" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $cities = $dfareportingService->cities; - * - */ -class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of cities, possibly filtered. (cities.listCities) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string dartIds Select only cities with these DART IDs. - * @opt_param string namePrefix Select only cities with names starting with this - * prefix. - * @opt_param string regionDartIds Select only cities from these regions. - * @opt_param string countryDartIds Select only cities from these countries. - * @return Google_Service_Dfareporting_CitiesListResponse - */ - public function listCities($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse"); - } -} - -/** - * The "connectionTypes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $connectionTypes = $dfareportingService->connectionTypes; - * - */ -class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource -{ - - /** - * Gets one connection type by ID. (connectionTypes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Connection type ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ConnectionType - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType"); - } - - /** - * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ConnectionTypesListResponse - */ - public function listConnectionTypes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse"); - } -} - -/** - * The "contentCategories" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $contentCategories = $dfareportingService->contentCategories; - * - */ -class Google_Service_Dfareporting_ContentCategories_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing content category. (contentCategories.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one content category by ID. (contentCategories.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Inserts a new content category. (contentCategories.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Retrieves a list of content categories, possibly filtered. - * (contentCategories.listContentCategories) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "contentcategory*2015" will return - * objects with names like "contentcategory June 2015", "contentcategory April - * 2015", or simply "contentcategory 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "contentcategory" will match objects with name - * "my contentcategory", "contentcategory 2015", or simply "contentcategory". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only content categories with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_ContentCategoriesListResponse - */ - public function listContentCategories($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse"); - } - - /** - * Updates an existing content category. This method supports patch semantics. - * (contentCategories.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Updates an existing content category. (contentCategories.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory"); - } -} - -/** - * The "countries" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $countries = $dfareportingService->countries; - * - */ -class Google_Service_Dfareporting_Countries_Resource extends Google_Service_Resource -{ - - /** - * Gets one country by ID. (countries.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $dartId Country DART ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Country - */ - public function get($profileId, $dartId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'dartId' => $dartId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Country"); - } - - /** - * Retrieves a list of countries. (countries.listCountries) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CountriesListResponse - */ - public function listCountries($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse"); - } -} - -/** - * The "creativeAssets" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeAssets = $dfareportingService->creativeAssets; - * - */ -class Google_Service_Dfareporting_CreativeAssets_Resource extends Google_Service_Resource -{ - - /** - * Inserts a new creative asset. (creativeAssets.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Advertiser ID of this creative. This is a - * required field. - * @param Google_CreativeAssetMetadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeAssetMetadata - */ - public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata"); - } -} - -/** - * The "creativeFieldValues" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeFieldValues = $dfareportingService->creativeFieldValues; - * - */ -class Google_Service_Dfareporting_CreativeFieldValues_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing creative field value. (creativeFieldValues.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $creativeFieldId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one creative field value by ID. (creativeFieldValues.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function get($profileId, $creativeFieldId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Inserts a new creative field value. (creativeFieldValues.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Retrieves a list of creative field values, possibly filtered. - * (creativeFieldValues.listCreativeFieldValues) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for creative field values by - * their values. Wildcards (e.g. *) are not allowed. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only creative field values with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse - */ - public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse"); - } - - /** - * Updates an existing creative field value. This method supports patch - * semantics. (creativeFieldValues.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Updates an existing creative field value. (creativeFieldValues.update) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } -} - -/** - * The "creativeFields" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeFields = $dfareportingService->creativeFields; - * - */ -class Google_Service_Dfareporting_CreativeFields_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing creative field. (creativeFields.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one creative field by ID. (creativeFields.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Inserts a new creative field. (creativeFields.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Retrieves a list of creative fields, possibly filtered. - * (creativeFields.listCreativeFields) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for creative fields by name - * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will - * return creative fields with names like "creativefield June 2015", - * "creativefield April 2015", or simply "creativefield 2015". Most of the - * searches also add wild-cards implicitly at the start and the end of the - * search string. For example, a search string of "creativefield" will match - * creative fields with the name "my creativefield", "creativefield 2015", or - * simply "creativefield". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only creative fields that belong to - * these advertisers. - * @opt_param string ids Select only creative fields with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeFieldsListResponse - */ - public function listCreativeFields($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse"); - } - - /** - * Updates an existing creative field. This method supports patch semantics. - * (creativeFields.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Updates an existing creative field. (creativeFields.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField"); - } -} - -/** - * The "creativeGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeGroups = $dfareportingService->creativeGroups; - * - */ -class Google_Service_Dfareporting_CreativeGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one creative group by ID. (creativeGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Inserts a new creative group. (creativeGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Retrieves a list of creative groups, possibly filtered. - * (creativeGroups.listCreativeGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for creative groups by name - * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will - * return creative groups with names like "creativegroup June 2015", - * "creativegroup April 2015", or simply "creativegroup 2015". Most of the - * searches also add wild-cards implicitly at the start and the end of the - * search string. For example, a search string of "creativegroup" will match - * creative groups with the name "my creativegroup", "creativegroup 2015", or - * simply "creativegroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only creative groups that belong to - * these advertisers. - * @opt_param int groupNumber Select only creative groups that belong to this - * subgroup. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string ids Select only creative groups with these IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeGroupsListResponse - */ - public function listCreativeGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse"); - } - - /** - * Updates an existing creative group. This method supports patch semantics. - * (creativeGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative group ID. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Updates an existing creative group. (creativeGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } -} - -/** - * The "creatives" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creatives = $dfareportingService->creatives; - * - */ -class Google_Service_Dfareporting_Creatives_Resource extends Google_Service_Resource -{ - - /** - * Gets one creative by ID. (creatives.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Inserts a new creative. (creatives.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Retrieves a list of creatives, possibly filtered. (creatives.listCreatives) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string sizeIds Select only creatives with these size IDs. - * @opt_param bool archived Select only archived creatives. Leave blank to - * select archived and unarchived creatives. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "creative*2015" will return objects - * with names like "creative June 2015", "creative April 2015", or simply - * "creative 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "creative" will match objects with name "my creative", "creative 2015", or - * simply "creative". - * @opt_param string campaignId Select only creatives with this campaign ID. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string renderingIds Select only creatives with these rendering - * IDs. - * @opt_param string ids Select only creatives with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Select only creatives with this advertiser ID. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string studioCreativeId Select only creatives corresponding to - * this Studio creative ID. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string companionCreativeIds Select only in-stream video creatives - * with these companion IDs. - * @opt_param bool active Select only active creatives. Leave blank to select - * active and inactive creatives. - * @opt_param string creativeFieldIds Select only creatives with these creative - * field IDs. - * @opt_param string types Select only creatives with these creative types. - * @return Google_Service_Dfareporting_CreativesListResponse - */ - public function listCreatives($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse"); - } - - /** - * Updates an existing creative. This method supports patch semantics. - * (creatives.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative ID. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Updates an existing creative. (creatives.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Creative"); - } -} - -/** - * The "dimensionValues" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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 string pageToken The value of the nextToken from the previous - * result page. - * @opt_param int maxResults Maximum number of results to return. - * @return Google_Service_Dfareporting_DimensionValueList - */ - public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); - } -} - -/** - * The "directorySiteContacts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $directorySiteContacts = $dfareportingService->directorySiteContacts; - * - */ -class Google_Service_Dfareporting_DirectorySiteContacts_Resource extends Google_Service_Resource -{ - - /** - * Gets one directory site contact by ID. (directorySiteContacts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Directory site contact ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySiteContact - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); - } - - /** - * Retrieves a list of directory site contacts, possibly filtered. - * (directorySiteContacts.listDirectorySiteContacts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "directory site contact*2015" - * will return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "directory site - * contact" will match objects with name "my directory site contact", "directory - * site contact 2015", or simply "directory site contact". - * @opt_param string directorySiteIds Select only directory site contacts with - * these directory site IDs. This is a required field. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only directory site contacts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse - */ - public function listDirectorySiteContacts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); - } -} - -/** - * The "directorySites" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $directorySites = $dfareportingService->directorySites; - * - */ -class Google_Service_Dfareporting_DirectorySites_Resource extends Google_Service_Resource -{ - - /** - * Gets one directory site by ID. (directorySites.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Directory site ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySite - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); - } - - /** - * Inserts a new directory site. (directorySites.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_DirectorySite $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySite - */ - public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite"); - } - - /** - * Retrieves a list of directory sites, possibly filtered. - * (directorySites.listDirectorySites) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool acceptsInterstitialPlacements This search filter is no longer - * supported and will have no effect on the results returned. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string searchString Allows searching for objects by name, ID or - * URL. Wildcards (*) are allowed. For example, "directory site*2015" will - * return objects with names like "directory site June 2015", "directory site - * April 2015", or simply "directory site 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply, "directory site". - * @opt_param string countryId Select only directory sites with this country ID. - * @opt_param string sortField Field by which to sort the list. - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. - * @opt_param string ids Select only directory sites with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites - * that accept publisher paid placements. This field can be left blank. - * @opt_param string parentId Select only directory sites with this parent ID. - * @opt_param bool active Select only active directory sites. Leave blank to - * retrieve both active and inactive directory sites. - * @opt_param string dfp_network_code Select only directory sites with this DFP - * network code. - * @return Google_Service_Dfareporting_DirectorySitesListResponse - */ - public function listDirectorySites($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse"); - } -} - -/** - * The "eventTags" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $eventTags = $dfareportingService->eventTags; - * - */ -class Google_Service_Dfareporting_EventTags_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing event tag. (eventTags.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one event tag by ID. (eventTags.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Inserts a new event tag. (eventTags.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects - * with names like "eventtag June 2015", "eventtag April 2015", or simply - * "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or - * simply "eventtag". - * @opt_param string campaignId Select only event tags that belong to this - * campaign. - * @opt_param string sortField Field by which to sort the list. - * @opt_param bool enabled Select only enabled event tags. When definitionsOnly - * is set to true, only the specified advertiser or campaign's event tags' - * enabledByDefault field is examined. When definitionsOnly is set to false, the - * specified ad or specified campaign's parent advertiser's or parent campaign's - * event tags' enabledByDefault and status fields are examined as well. - * @opt_param string ids Select only event tags with these IDs. - * @opt_param string advertiserId Select only event tags that belong to this - * advertiser. - * @opt_param string adId Select only event tags that belong to this ad. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string eventTagTypes Select only event tags with the specified - * event tag types. Event tag types can be used to specify whether to use a - * third-party pixel, a third-party JavaScript URL, or a third-party click- - * through URL for either impression or click tracking. - * @opt_param bool definitionsOnly Examine only the specified ad or campaign or - * advertiser's event tags for matching selector criteria. When set to false, - * the parent advertiser and parent campaign is examined as well. In addition, - * when set to false, the status field is examined as well along with the - * enabledByDefault field. - * @return Google_Service_Dfareporting_EventTagsListResponse - */ - public function listEventTags($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse"); - } - - /** - * Updates an existing event tag. This method supports patch semantics. - * (eventTags.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Updates an existing event tag. (eventTags.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag"); - } -} - -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $files = $dfareportingService->files; - * - */ -class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a report file by its report ID and file ID. (files.get) - * - * @param string $reportId The ID of the report. - * @param string $fileId The ID of the report file. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function get($reportId, $fileId, $optParams = array()) - { - $params = array('reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Lists files for a user profile. (files.listFiles) - * - * @param string $profileId The DFA profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope The scope that defines which results are returned, - * default is 'MINE'. - * @return Google_Service_Dfareporting_FileList - */ - public function listFiles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } -} - -/** - * The "floodlightActivities" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightActivities = $dfareportingService->floodlightActivities; - * - */ -class Google_Service_Dfareporting_FloodlightActivities_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing floodlight activity. (floodlightActivities.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Generates a tag for a floodlight activity. (floodlightActivities.generatetag) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string floodlightActivityId Floodlight activity ID for which we - * want to generate a tag. - * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse - */ - public function generatetag($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse"); - } - - /** - * Gets one floodlight activity by ID. (floodlightActivities.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Inserts a new floodlight activity. (floodlightActivities.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Retrieves a list of floodlight activities, possibly filtered. - * (floodlightActivities.listFloodlightActivities) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string floodlightActivityGroupIds Select only floodlight - * activities with the specified floodlight activity group IDs. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return - * objects with names like "floodlightactivity June 2015", "floodlightactivity - * April 2015", or simply "floodlightactivity 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name - * "my floodlightactivity activity", "floodlightactivity 2015", or simply - * "floodlightactivity". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string floodlightConfigurationId Select only floodlight activities - * for the specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activities with the specified - * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for - * a non-empty result. - * @opt_param string floodlightActivityGroupName Select only floodlight - * activities with the specified floodlight activity group name. - * @opt_param string advertiserId Select only floodlight activities for the - * specified advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string tagString Select only floodlight activities with the - * specified tag string. - * @opt_param string floodlightActivityGroupTagString Select only floodlight - * activities with the specified floodlight activity group tag string. - * @opt_param string floodlightActivityGroupType Select only floodlight - * activities with the specified floodlight activity group type. - * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse - */ - public function listFloodlightActivities($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse"); - } - - /** - * Updates an existing floodlight activity. This method supports patch - * semantics. (floodlightActivities.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Updates an existing floodlight activity. (floodlightActivities.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } -} - -/** - * The "floodlightActivityGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups; - * - */ -class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing floodlight activity group. - * (floodlightActivityGroups.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Inserts a new floodlight activity group. (floodlightActivityGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Retrieves a list of floodlight activity groups, possibly filtered. - * (floodlightActivityGroups.listFloodlightActivityGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will - * return objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of - * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string floodlightConfigurationId Select only floodlight activity - * groups with the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activity groups with the - * specified IDs. Must specify either advertiserId or floodlightConfigurationId - * for a non-empty result. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Select only floodlight activity groups with - * the specified advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Select only floodlight activity groups with the - * specified floodlight activity group type. - * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse - */ - public function listFloodlightActivityGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse"); - } - - /** - * Updates an existing floodlight activity group. This method supports patch - * semantics. (floodlightActivityGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Updates an existing floodlight activity group. - * (floodlightActivityGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } -} - -/** - * The "floodlightConfigurations" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightConfigurations = $dfareportingService->floodlightConfigurations; - * - */ -class Google_Service_Dfareporting_FloodlightConfigurations_Resource extends Google_Service_Resource -{ - - /** - * Gets one floodlight configuration by ID. (floodlightConfigurations.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight configuration ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } - - /** - * Retrieves a list of floodlight configurations, possibly filtered. - * (floodlightConfigurations.listFloodlightConfigurations) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Set of IDs of floodlight configurations to retrieve. - * Required field; otherwise an empty list will be returned. - * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse - */ - public function listFloodlightConfigurations($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse"); - } - - /** - * Updates an existing floodlight configuration. This method supports patch - * semantics. (floodlightConfigurations.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight configuration ID. - * @param Google_FloodlightConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } - - /** - * Updates an existing floodlight configuration. - * (floodlightConfigurations.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } -} - -/** - * The "inventoryItems" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $inventoryItems = $dfareportingService->inventoryItems; - * - */ -class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource -{ - - /** - * Gets one inventory item by ID. (inventoryItems.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param string $id Inventory item ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_InventoryItem - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem"); - } - - /** - * Retrieves a list of inventory items, possibly filtered. - * (inventoryItems.listInventoryItems) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param array $optParams Optional parameters. - * - * @opt_param string orderId Select only inventory items that belong to - * specified orders. - * @opt_param string ids Select only inventory items with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string siteId Select only inventory items that are associated with - * these sites. - * @opt_param bool inPlan Select only inventory items that are in plan. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_InventoryItemsListResponse - */ - public function listInventoryItems($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse"); - } -} - -/** - * The "landingPages" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $landingPages = $dfareportingService->landingPages; - * - */ -class Google_Service_Dfareporting_LandingPages_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing campaign landing page. (landingPages.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $campaignId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one campaign landing page by ID. (landingPages.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function get($profileId, $campaignId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Inserts a new landing page for the specified campaign. (landingPages.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Retrieves the list of landing pages for the specified campaign. - * (landingPages.listLandingPages) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPagesListResponse - */ - public function listLandingPages($profileId, $campaignId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse"); - } - - /** - * Updates an existing campaign landing page. This method supports patch - * semantics. (landingPages.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Updates an existing campaign landing page. (landingPages.update) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage"); - } -} - -/** - * The "metros" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $metros = $dfareportingService->metros; - * - */ -class Google_Service_Dfareporting_Metros_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of metros. (metros.listMetros) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MetrosListResponse - */ - public function listMetros($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse"); - } -} - -/** - * The "mobileCarriers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $mobileCarriers = $dfareportingService->mobileCarriers; - * - */ -class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource -{ - - /** - * Gets one mobile carrier by ID. (mobileCarriers.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Mobile carrier ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MobileCarrier - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier"); - } - - /** - * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MobileCarriersListResponse - */ - public function listMobileCarriers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse"); - } -} - -/** - * The "operatingSystemVersions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $operatingSystemVersions = $dfareportingService->operatingSystemVersions; - * - */ -class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource -{ - - /** - * Gets one operating system version by ID. (operatingSystemVersions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Operating system version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemVersion - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion"); - } - - /** - * Retrieves a list of operating system versions. - * (operatingSystemVersions.listOperatingSystemVersions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse - */ - public function listOperatingSystemVersions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse"); - } -} - -/** - * The "operatingSystems" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $operatingSystems = $dfareportingService->operatingSystems; - * - */ -class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource -{ - - /** - * Gets one operating system by DART ID. (operatingSystems.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $dartId Operating system DART ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystem - */ - public function get($profileId, $dartId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'dartId' => $dartId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem"); - } - - /** - * Retrieves a list of operating systems. - * (operatingSystems.listOperatingSystems) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemsListResponse - */ - public function listOperatingSystems($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse"); - } -} - -/** - * The "orderDocuments" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $orderDocuments = $dfareportingService->orderDocuments; - * - */ -class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource -{ - - /** - * Gets one order document by ID. (orderDocuments.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param string $id Order document ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OrderDocument - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument"); - } - - /** - * Retrieves a list of order documents, possibly filtered. - * (orderDocuments.listOrderDocuments) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param array $optParams Optional parameters. - * - * @opt_param string orderId Select only order documents for specified orders. - * @opt_param string searchString Allows searching for order documents by name - * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will - * return order documents with names like "orderdocument June 2015", - * "orderdocument April 2015", or simply "orderdocument 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "orderdocument" will match order - * documents with name "my orderdocument", "orderdocument 2015", or simply - * "orderdocument". - * @opt_param string ids Select only order documents with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string siteId Select only order documents that are associated with - * these sites. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string sortField Field by which to sort the list. - * @opt_param bool approved Select only order documents that have been approved - * by at least one user. - * @return Google_Service_Dfareporting_OrderDocumentsListResponse - */ - public function listOrderDocuments($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse"); - } -} - -/** - * The "orders" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $orders = $dfareportingService->orders; - * - */ -class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource -{ - - /** - * Gets one order by ID. (orders.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for orders. - * @param string $id Order ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Order - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Order"); - } - - /** - * Retrieves a list of orders, possibly filtered. (orders.listOrders) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for orders. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for orders by name or ID. - * Wildcards (*) are allowed. For example, "order*2015" will return orders with - * names like "order June 2015", "order April 2015", or simply "order 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "order" will match - * orders with name "my order", "order 2015", or simply "order". - * @opt_param string ids Select only orders with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string siteId Select only orders that are associated with these - * site IDs. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string sortField Field by which to sort the list. - * @return Google_Service_Dfareporting_OrdersListResponse - */ - public function listOrders($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse"); - } -} - -/** - * The "placementGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placementGroups = $dfareportingService->placementGroups; - * - */ -class Google_Service_Dfareporting_PlacementGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one placement group by ID. (placementGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Inserts a new placement group. (placementGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Retrieves a list of placement groups, possibly filtered. - * (placementGroups.listPlacementGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string placementStrategyIds Select only placement groups that are - * associated with these placement strategies. - * @opt_param bool archived Select only archived placements. Don't set this - * field to select both archived and non-archived placements. - * @opt_param string searchString Allows searching for placement groups by name - * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups with - * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". - * @opt_param string contentCategoryIds Select only placement groups that are - * associated with these content categories. - * @opt_param string directorySiteIds Select only placement groups that are - * associated with these directory sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only placement groups that belong to - * these advertisers. - * @opt_param string ids Select only placement groups with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string placementGroupType Select only placement groups belonging - * with this group type. A package is a simple group of placements that acts as - * a single pricing point for a group of tags. A roadblock is a group of - * placements that not only acts as a single pricing point but also assumes that - * all the tags in it will be served at the same time. A roadblock requires one - * of its assigned placements to be marked as primary for reporting. - * @opt_param string pricingTypes Select only placement groups with these - * pricing types. - * @opt_param string siteIds Select only placement groups that are associated - * with these sites. - * @opt_param string campaignIds Select only placement groups that belong to - * these campaigns. - * @return Google_Service_Dfareporting_PlacementGroupsListResponse - */ - public function listPlacementGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse"); - } - - /** - * Updates an existing placement group. This method supports patch semantics. - * (placementGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement group ID. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Updates an existing placement group. (placementGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } -} - -/** - * The "placementStrategies" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placementStrategies = $dfareportingService->placementStrategies; - * - */ -class Google_Service_Dfareporting_PlacementStrategies_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing placement strategy. (placementStrategies.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one placement strategy by ID. (placementStrategies.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Inserts a new placement strategy. (placementStrategies.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Retrieves a list of placement strategies, possibly filtered. - * (placementStrategies.listPlacementStrategies) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return - * objects with names like "placementstrategy June 2015", "placementstrategy - * April 2015", or simply "placementstrategy 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementstrategy" will match objects with name - * "my placementstrategy", "placementstrategy 2015", or simply - * "placementstrategy". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only placement strategies with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_PlacementStrategiesListResponse - */ - public function listPlacementStrategies($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse"); - } - - /** - * Updates an existing placement strategy. This method supports patch semantics. - * (placementStrategies.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Updates an existing placement strategy. (placementStrategies.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } -} - -/** - * The "placements" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placements = $dfareportingService->placements; - * - */ -class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Resource -{ - - /** - * Generates tags for a placement. (placements.generatetags) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string tagFormats Tag formats to generate for these placements. - * @opt_param string placementIds Generate tags for these placements. - * @opt_param string campaignId Generate placements belonging to this campaign. - * This is a required field. - * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse - */ - public function generatetags($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse"); - } - - /** - * Gets one placement by ID. (placements.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Inserts a new placement. (placements.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Retrieves a list of placements, possibly filtered. - * (placements.listPlacements) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string placementStrategyIds Select only placements that are - * associated with these placement strategies. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool archived Select only archived placements. Don't set this - * field to select both archived and non-archived placements. - * @opt_param string searchString Allows searching for placements by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placements with names like "placement June 2015", "placement May 2015", or - * simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * @opt_param string contentCategoryIds Select only placements that are - * associated with these content categories. - * @opt_param string directorySiteIds Select only placements that are associated - * with these directory sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only placements that belong to these - * advertisers. - * @opt_param string paymentSource Select only placements with this payment - * source. - * @opt_param string ids Select only placements with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string sizeIds Select only placements that are associated with - * these sizes. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string compatibilities Select only placements that are associated - * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering - * either on desktop or on mobile devices for regular or interstitial ads - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - * with the VAST standard. - * @opt_param string groupIds Select only placements that belong to these - * placement groups. - * @opt_param string pricingTypes Select only placements with these pricing - * types. - * @opt_param string siteIds Select only placements that are associated with - * these sites. - * @opt_param string campaignIds Select only placements that belong to these - * campaigns. - * @return Google_Service_Dfareporting_PlacementsListResponse - */ - public function listPlacements($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse"); - } - - /** - * Updates an existing placement. This method supports patch semantics. - * (placements.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement ID. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Updates an existing placement. (placements.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Placement"); - } -} - -/** - * The "platformTypes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $platformTypes = $dfareportingService->platformTypes; - * - */ -class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource -{ - - /** - * Gets one platform type by ID. (platformTypes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Platform type ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlatformType - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType"); - } - - /** - * Retrieves a list of platform types. (platformTypes.listPlatformTypes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlatformTypesListResponse - */ - public function listPlatformTypes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse"); - } -} - -/** - * The "postalCodes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $postalCodes = $dfareportingService->postalCodes; - * - */ -class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource -{ - - /** - * Gets one postal code by ID. (postalCodes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $code Postal code ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PostalCode - */ - public function get($profileId, $code, $optParams = array()) - { - $params = array('profileId' => $profileId, 'code' => $code); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode"); - } - - /** - * Retrieves a list of postal codes. (postalCodes.listPostalCodes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PostalCodesListResponse - */ - public function listPostalCodes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $projects = $dfareportingService->projects; - * - */ -class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource -{ - - /** - * Gets one project by ID. (projects.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Project - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Project"); - } - - /** - * Retrieves a list of projects, possibly filtered. (projects.listProjects) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for projects by name or ID. - * Wildcards (*) are allowed. For example, "project*2015" will return projects - * with names like "project June 2015", "project April 2015", or simply "project - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "project" will - * match projects with name "my project", "project 2015", or simply "project". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only projects with these advertiser - * IDs. - * @opt_param string ids Select only projects with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_ProjectsListResponse - */ - public function listProjects($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse"); - } -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $regions = $dfareportingService->regions; - * - */ -class Google_Service_Dfareporting_Regions_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of regions. (regions.listRegions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RegionsListResponse - */ - public function listRegions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse"); - } -} - -/** - * The "remarketingListShares" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $remarketingListShares = $dfareportingService->remarketingListShares; - * - */ -class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list share by remarketing list ID. - * (remarketingListShares.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $remarketingListId Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function get($profileId, $remarketingListId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } - - /** - * Updates an existing remarketing list share. This method supports patch - * semantics. (remarketingListShares.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $remarketingListId Remarketing list ID. - * @param Google_RemarketingListShare $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } - - /** - * Updates an existing remarketing list share. (remarketingListShares.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingListShare $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } -} - -/** - * The "remarketingLists" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $remarketingLists = $dfareportingService->remarketingLists; - * - */ -class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list by ID. (remarketingLists.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Inserts a new remarketing list. (remarketingLists.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Retrieves a list of remarketing lists, possibly filtered. - * (remarketingLists.listRemarketingLists) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Select only remarketing lists owned by this - * advertiser. - * @param array $optParams Optional parameters. - * - * @opt_param string name Allows searching for objects by name or ID. Wildcards - * (*) are allowed. For example, "remarketing list*2015" will return objects - * with names like "remarketing list June 2015", "remarketing list April 2015", - * or simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string sortField Field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active or only inactive remarketing lists. - * @opt_param string floodlightActivityId Select only remarketing lists that - * have this floodlight activity ID. - * @return Google_Service_Dfareporting_RemarketingListsListResponse - */ - public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse"); - } - - /** - * Updates an existing remarketing list. This method supports patch semantics. - * (remarketingLists.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Updates an existing remarketing list. (remarketingLists.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a report by its ID. (reports.get) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function get($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Creates a report. (reports.insert) - * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Retrieves list of reports. (reports.listReports) - * - * @param string $profileId The DFA user profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope The scope that defines which results are returned, - * default is 'MINE'. - * @return Google_Service_Dfareporting_ReportList - */ - public function listReports($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); - } - - /** - * Updates a report. This method supports patch semantics. (reports.patch) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Runs a report. (reports.run) - * - * @param string $profileId The DFA profile ID. - * @param string $reportId The ID of the report. - * @param array $optParams Optional parameters. - * - * @opt_param bool synchronous If set and true, tries to run the report - * synchronously. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function run($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Updates a report. (reports.update) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); - } -} - -/** - * The "compatibleFields" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $compatibleFields = $dfareportingService->compatibleFields; - * - */ -class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource -{ - - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the input - * report and user permissions. (compatibleFields.query) - * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CompatibleFields - */ - public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); - } -} -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Lists files for a report. (files.listReportsFiles) - * - * @param string $profileId The DFA profile ID. - * @param string $reportId The ID of the parent report. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField The field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken The value of the nextToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. - * @return Google_Service_Dfareporting_FileList - */ - public function listReportsFiles($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } -} - -/** - * The "sites" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $sites = $dfareportingService->sites; - * - */ -class Google_Service_Dfareporting_Sites_Resource extends Google_Service_Resource -{ - - /** - * Gets one site by ID. (sites.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Site ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Inserts a new site. (sites.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Retrieves a list of sites, possibly filtered. (sites.listSites) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool acceptsInterstitialPlacements This search filter is no longer - * supported and will have no effect on the results returned. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string searchString Allows searching for objects by name, ID or - * keyName. Wildcards (*) are allowed. For example, "site*2015" will return - * objects with names like "site June 2015", "site April 2015", or simply "site - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "site" will - * match objects with name "my site", "site 2015", or simply "site". - * @opt_param string subaccountId Select only sites with this subaccount ID. - * @opt_param string directorySiteIds Select only sites with these directory - * site IDs. - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. - * @opt_param string ids Select only sites with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept - * publisher paid placements. - * @opt_param string sortField Field by which to sort the list. - * @opt_param bool adWordsSite Select only AdWords sites. - * @opt_param bool unmappedSite Select only sites that have not been mapped to a - * directory site. - * @opt_param bool approved Select only approved sites. - * @opt_param string campaignIds Select only sites with these campaign IDs. - * @return Google_Service_Dfareporting_SitesListResponse - */ - public function listSites($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse"); - } - - /** - * Updates an existing site. This method supports patch semantics. (sites.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Site ID. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Updates an existing site. (sites.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Site"); - } -} - -/** - * The "sizes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $sizes = $dfareportingService->sizes; - * - */ -class Google_Service_Dfareporting_Sizes_Resource extends Google_Service_Resource -{ - - /** - * Gets one size by ID. (sizes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Size ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Size - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Size"); - } - - /** - * Inserts a new size. (sizes.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Size $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Size - */ - public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); - } - - /** - * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool iabStandard Select only IAB standard sizes. - * @opt_param int width Select only sizes with this width. - * @opt_param string ids Select only sizes with these IDs. - * @opt_param int height Select only sizes with this height. - * @return Google_Service_Dfareporting_SizesListResponse - */ - public function listSizes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse"); - } -} - -/** - * The "subaccounts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $subaccounts = $dfareportingService->subaccounts; - * - */ -class Google_Service_Dfareporting_Subaccounts_Resource extends Google_Service_Resource -{ - - /** - * Gets one subaccount by ID. (subaccounts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Subaccount ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Inserts a new subaccount. (subaccounts.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Gets a list of subaccounts, possibly filtered. (subaccounts.listSubaccounts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects - * with names like "subaccount June 2015", "subaccount April 2015", or simply - * "subaccount 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "subaccount" will match objects with name "my subaccount", "subaccount 2015", - * or simply "subaccount". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only subaccounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_SubaccountsListResponse - */ - public function listSubaccounts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse"); - } - - /** - * Updates an existing subaccount. This method supports patch semantics. - * (subaccounts.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Subaccount ID. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Updates an existing subaccount. (subaccounts.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount"); - } -} - -/** - * The "targetableRemarketingLists" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists; - * - */ -class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list by ID. (targetableRemarketingLists.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_TargetableRemarketingList - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList"); - } - - /** - * Retrieves a list of targetable remarketing lists, possibly filtered. - * (targetableRemarketingLists.listTargetableRemarketingLists) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Select only targetable remarketing lists - * targetable by these advertisers. - * @param array $optParams Optional parameters. - * - * @opt_param string name Allows searching for objects by name or ID. Wildcards - * (*) are allowed. For example, "remarketing list*2015" will return objects - * with names like "remarketing list June 2015", "remarketing list April 2015", - * or simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string sortField Field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active or only inactive targetable - * remarketing lists. - * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse - */ - public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse"); - } -} - -/** - * The "userProfiles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); - } - - /** - * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserProfileList - */ - public function listUserProfiles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); - } -} - -/** - * The "userRolePermissionGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups; - * - */ -class Google_Service_Dfareporting_UserRolePermissionGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one user role permission group by ID. (userRolePermissionGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role permission group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermissionGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup"); - } - - /** - * Gets a list of all supported user role permission groups. - * (userRolePermissionGroups.listUserRolePermissionGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse - */ - public function listUserRolePermissionGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse"); - } -} - -/** - * The "userRolePermissions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRolePermissions = $dfareportingService->userRolePermissions; - * - */ -class Google_Service_Dfareporting_UserRolePermissions_Resource extends Google_Service_Resource -{ - - /** - * Gets one user role permission by ID. (userRolePermissions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role permission ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermission - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission"); - } - - /** - * Gets a list of user role permissions, possibly filtered. - * (userRolePermissions.listUserRolePermissions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only user role permissions with these IDs. - * @return Google_Service_Dfareporting_UserRolePermissionsListResponse - */ - public function listUserRolePermissions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse"); - } -} - -/** - * The "userRoles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRoles = $dfareportingService->userRoles; - * - */ -class Google_Service_Dfareporting_UserRoles_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing user role. (userRoles.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one user role by ID. (userRoles.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Inserts a new user role. (userRoles.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Retrieves a list of user roles, possibly filtered. (userRoles.listUserRoles) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "userrole*2015" will return objects - * with names like "userrole June 2015", "userrole April 2015", or simply - * "userrole 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "userrole" will match objects with name "my userrole", "userrole 2015", or - * simply "userrole". - * @opt_param string subaccountId Select only user roles that belong to this - * subaccount. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only user roles with the specified IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool accountUserRoleOnly Select only account level user roles not - * associated with any specific subaccount. - * @return Google_Service_Dfareporting_UserRolesListResponse - */ - public function listUserRoles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse"); - } - - /** - * Updates an existing user role. This method supports patch semantics. - * (userRoles.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Updates an existing user role. (userRoles.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole"); - } -} - - - - -class Google_Service_Dfareporting_Account extends Google_Collection -{ - protected $collection_key = 'availablePermissionIds'; - protected $internal_gapi_mappings = array( - ); - public $accountPermissionIds; - public $accountProfile; - public $active; - public $activeAdsLimitTier; - public $activeViewOptOut; - public $availablePermissionIds; - public $comscoreVceEnabled; - public $countryId; - public $currencyId; - public $defaultCreativeSizeId; - public $description; - public $id; - public $kind; - public $locale; - public $maximumImageSize; - public $name; - public $nielsenOcrEnabled; - protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration'; - protected $reportsConfigurationDataType = ''; - public $teaserSizeLimit; - - - public function setAccountPermissionIds($accountPermissionIds) - { - $this->accountPermissionIds = $accountPermissionIds; - } - public function getAccountPermissionIds() - { - return $this->accountPermissionIds; - } - public function setAccountProfile($accountProfile) - { - $this->accountProfile = $accountProfile; - } - public function getAccountProfile() - { - return $this->accountProfile; - } - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setActiveAdsLimitTier($activeAdsLimitTier) - { - $this->activeAdsLimitTier = $activeAdsLimitTier; - } - public function getActiveAdsLimitTier() - { - return $this->activeAdsLimitTier; - } - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setAvailablePermissionIds($availablePermissionIds) - { - $this->availablePermissionIds = $availablePermissionIds; - } - public function getAvailablePermissionIds() - { - return $this->availablePermissionIds; - } - public function setComscoreVceEnabled($comscoreVceEnabled) - { - $this->comscoreVceEnabled = $comscoreVceEnabled; - } - public function getComscoreVceEnabled() - { - return $this->comscoreVceEnabled; - } - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - public function getCountryId() - { - return $this->countryId; - } - public function setCurrencyId($currencyId) - { - $this->currencyId = $currencyId; - } - public function getCurrencyId() - { - return $this->currencyId; - } - public function setDefaultCreativeSizeId($defaultCreativeSizeId) - { - $this->defaultCreativeSizeId = $defaultCreativeSizeId; - } - public function getDefaultCreativeSizeId() - { - return $this->defaultCreativeSizeId; - } - 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($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setMaximumImageSize($maximumImageSize) - { - $this->maximumImageSize = $maximumImageSize; - } - public function getMaximumImageSize() - { - return $this->maximumImageSize; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNielsenOcrEnabled($nielsenOcrEnabled) - { - $this->nielsenOcrEnabled = $nielsenOcrEnabled; - } - public function getNielsenOcrEnabled() - { - return $this->nielsenOcrEnabled; - } - public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration) - { - $this->reportsConfiguration = $reportsConfiguration; - } - public function getReportsConfiguration() - { - return $this->reportsConfiguration; - } - public function setTeaserSizeLimit($teaserSizeLimit) - { - $this->teaserSizeLimit = $teaserSizeLimit; - } - public function getTeaserSizeLimit() - { - return $this->teaserSizeLimit; - } -} - -class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $activeAds; - public $activeAdsLimitTier; - public $availableAds; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setActiveAds($activeAds) - { - $this->activeAds = $activeAds; - } - public function getActiveAds() - { - return $this->activeAds; - } - public function setActiveAdsLimitTier($activeAdsLimitTier) - { - $this->activeAdsLimitTier = $activeAdsLimitTier; - } - public function getActiveAdsLimitTier() - { - return $this->activeAdsLimitTier; - } - public function setAvailableAds($availableAds) - { - $this->availableAds = $availableAds; - } - public function getAvailableAds() - { - return $this->availableAds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountPermission extends Google_Collection -{ - protected $collection_key = 'accountProfiles'; - protected $internal_gapi_mappings = array( - ); - public $accountProfiles; - public $id; - public $kind; - public $level; - public $name; - public $permissionGroupId; - - - public function setAccountProfiles($accountProfiles) - { - $this->accountProfiles = $accountProfiles; - } - public function getAccountProfiles() - { - return $this->accountProfiles; - } - 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 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 setPermissionGroupId($permissionGroupId) - { - $this->permissionGroupId = $permissionGroupId; - } - public function getPermissionGroupId() - { - return $this->permissionGroupId; - } -} - -class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'accountPermissionGroups'; - protected $internal_gapi_mappings = array( - ); - protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup'; - protected $accountPermissionGroupsDataType = 'array'; - public $kind; - - - public function setAccountPermissionGroups($accountPermissionGroups) - { - $this->accountPermissionGroups = $accountPermissionGroups; - } - public function getAccountPermissionGroups() - { - return $this->accountPermissionGroups; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection -{ - protected $collection_key = 'accountPermissions'; - protected $internal_gapi_mappings = array( - ); - protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission'; - protected $accountPermissionsDataType = 'array'; - public $kind; - - - public function setAccountPermissions($accountPermissions) - { - $this->accountPermissions = $accountPermissions; - } - public function getAccountPermissions() - { - return $this->accountPermissions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountUserProfile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $advertiserFilterDataType = ''; - protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $campaignFilterDataType = ''; - public $comments; - public $email; - public $id; - public $kind; - public $locale; - public $name; - protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $siteFilterDataType = ''; - public $subaccountId; - public $traffickerType; - public $userAccessType; - protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $userRoleFilterDataType = ''; - public $userRoleId; - - - 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 setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter) - { - $this->advertiserFilter = $advertiserFilter; - } - public function getAdvertiserFilter() - { - return $this->advertiserFilter; - } - public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter) - { - $this->campaignFilter = $campaignFilter; - } - public function getCampaignFilter() - { - return $this->campaignFilter; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocale($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 setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter) - { - $this->siteFilter = $siteFilter; - } - public function getSiteFilter() - { - return $this->siteFilter; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTraffickerType($traffickerType) - { - $this->traffickerType = $traffickerType; - } - public function getTraffickerType() - { - return $this->traffickerType; - } - public function setUserAccessType($userAccessType) - { - $this->userAccessType = $userAccessType; - } - public function getUserAccessType() - { - return $this->userAccessType; - } - public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter) - { - $this->userRoleFilter = $userRoleFilter; - } - public function getUserRoleFilter() - { - return $this->userRoleFilter; - } - public function setUserRoleId($userRoleId) - { - $this->userRoleId = $userRoleId; - } - public function getUserRoleId() - { - return $this->userRoleId; - } -} - -class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection -{ - protected $collection_key = 'accountUserProfiles'; - protected $internal_gapi_mappings = array( - ); - protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile'; - protected $accountUserProfilesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAccountUserProfiles($accountUserProfiles) - { - $this->accountUserProfiles = $accountUserProfiles; - } - public function getAccountUserProfiles() - { - return $this->accountUserProfiles; - } - 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_AccountsListResponse extends Google_Collection -{ - protected $collection_key = 'accounts'; - protected $internal_gapi_mappings = array( - ); - protected $accountsType = 'Google_Service_Dfareporting_Account'; - protected $accountsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAccounts($accounts) - { - $this->accounts = $accounts; - } - public function getAccounts() - { - return $this->accounts; - } - 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_Activities extends Google_Collection -{ - protected $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filtersDataType = 'array'; - 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_Ad extends Google_Collection -{ - protected $collection_key = 'placementAssignments'; - protected $internal_gapi_mappings = array( - "remarketingListExpression" => "remarketing_list_expression", - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $audienceSegmentId; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; - protected $clickThroughUrlSuffixPropertiesDataType = ''; - public $comments; - public $compatibility; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; - protected $creativeGroupAssignmentsDataType = 'array'; - protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation'; - protected $creativeRotationDataType = ''; - protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting'; - protected $dayPartTargetingDataType = ''; - protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; - protected $defaultClickThroughEventTagPropertiesDataType = ''; - protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule'; - protected $deliveryScheduleDataType = ''; - public $dynamicClickTracker; - public $endTime; - protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; - protected $eventTagOverridesDataType = 'array'; - protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting'; - protected $geoTargetingDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression'; - protected $keyValueTargetingExpressionDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment'; - protected $placementAssignmentsDataType = 'array'; - protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression'; - protected $remarketingListExpressionDataType = ''; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslCompliant; - public $sslRequired; - public $startTime; - public $subaccountId; - protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting'; - protected $technologyTargetingDataType = ''; - public $type; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setAudienceSegmentId($audienceSegmentId) - { - $this->audienceSegmentId = $audienceSegmentId; - } - public function getAudienceSegmentId() - { - return $this->audienceSegmentId; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) - { - $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; - } - public function getClickThroughUrlSuffixProperties() - { - return $this->clickThroughUrlSuffixProperties; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setCreativeGroupAssignments($creativeGroupAssignments) - { - $this->creativeGroupAssignments = $creativeGroupAssignments; - } - public function getCreativeGroupAssignments() - { - return $this->creativeGroupAssignments; - } - public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation) - { - $this->creativeRotation = $creativeRotation; - } - public function getCreativeRotation() - { - return $this->creativeRotation; - } - public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting) - { - $this->dayPartTargeting = $dayPartTargeting; - } - public function getDayPartTargeting() - { - return $this->dayPartTargeting; - } - public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) - { - $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; - } - public function getDefaultClickThroughEventTagProperties() - { - return $this->defaultClickThroughEventTagProperties; - } - public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule) - { - $this->deliverySchedule = $deliverySchedule; - } - public function getDeliverySchedule() - { - return $this->deliverySchedule; - } - public function setDynamicClickTracker($dynamicClickTracker) - { - $this->dynamicClickTracker = $dynamicClickTracker; - } - public function getDynamicClickTracker() - { - return $this->dynamicClickTracker; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEventTagOverrides($eventTagOverrides) - { - $this->eventTagOverrides = $eventTagOverrides; - } - public function getEventTagOverrides() - { - return $this->eventTagOverrides; - } - public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting) - { - $this->geoTargeting = $geoTargeting; - } - public function getGeoTargeting() - { - return $this->geoTargeting; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression) - { - $this->keyValueTargetingExpression = $keyValueTargetingExpression; - } - public function getKeyValueTargetingExpression() - { - return $this->keyValueTargetingExpression; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPlacementAssignments($placementAssignments) - { - $this->placementAssignments = $placementAssignments; - } - public function getPlacementAssignments() - { - return $this->placementAssignments; - } - public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression) - { - $this->remarketingListExpression = $remarketingListExpression; - } - public function getRemarketingListExpression() - { - return $this->remarketingListExpression; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting) - { - $this->technologyTargeting = $technologyTargeting; - } - public function getTechnologyTargeting() - { - return $this->technologyTargeting; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dfareporting_AdSlot extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $comment; - public $compatibility; - public $height; - public $linkedPlacementId; - public $name; - public $paymentSourceType; - public $primary; - public $width; - - - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setLinkedPlacementId($linkedPlacementId) - { - $this->linkedPlacementId = $linkedPlacementId; - } - public function getLinkedPlacementId() - { - return $this->linkedPlacementId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPaymentSourceType($paymentSourceType) - { - $this->paymentSourceType = $paymentSourceType; - } - public function getPaymentSourceType() - { - return $this->paymentSourceType; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Dfareporting_AdsListResponse extends Google_Collection -{ - protected $collection_key = 'ads'; - protected $internal_gapi_mappings = array( - ); - protected $adsType = 'Google_Service_Dfareporting_Ad'; - protected $adsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAds($ads) - { - $this->ads = $ads; - } - public function getAds() - { - return $this->ads; - } - 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_Advertiser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserGroupId; - public $clickThroughUrlSuffix; - public $defaultClickThroughEventTagId; - public $defaultEmail; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - public $name; - public $originalFloodlightConfigurationId; - public $status; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdvertiserGroupId($advertiserGroupId) - { - $this->advertiserGroupId = $advertiserGroupId; - } - public function getAdvertiserGroupId() - { - return $this->advertiserGroupId; - } - public function setClickThroughUrlSuffix($clickThroughUrlSuffix) - { - $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; - } - public function getClickThroughUrlSuffix() - { - return $this->clickThroughUrlSuffix; - } - public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) - { - $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; - } - public function getDefaultClickThroughEventTagId() - { - return $this->defaultClickThroughEventTagId; - } - public function setDefaultEmail($defaultEmail) - { - $this->defaultEmail = $defaultEmail; - } - public function getDefaultEmail() - { - return $this->defaultEmail; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - 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 setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId) - { - $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId; - } - public function getOriginalFloodlightConfigurationId() - { - return $this->originalFloodlightConfigurationId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'advertiserGroups'; - protected $internal_gapi_mappings = array( - ); - protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup'; - protected $advertiserGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAdvertiserGroups($advertiserGroups) - { - $this->advertiserGroups = $advertiserGroups; - } - public function getAdvertiserGroups() - { - return $this->advertiserGroups; - } - 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_AdvertisersListResponse extends Google_Collection -{ - protected $collection_key = 'advertisers'; - protected $internal_gapi_mappings = array( - ); - protected $advertisersType = 'Google_Service_Dfareporting_Advertiser'; - protected $advertisersDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAdvertisers($advertisers) - { - $this->advertisers = $advertisers; - } - public function getAdvertisers() - { - return $this->advertisers; - } - 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_AudienceSegment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allocation; - public $id; - public $name; - - - public function setAllocation($allocation) - { - $this->allocation = $allocation; - } - public function getAllocation() - { - return $this->allocation; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection -{ - protected $collection_key = 'audienceSegments'; - protected $internal_gapi_mappings = array( - ); - protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment'; - protected $audienceSegmentsDataType = 'array'; - public $id; - public $name; - - - public function setAudienceSegments($audienceSegments) - { - $this->audienceSegments = $audienceSegments; - } - public function getAudienceSegments() - { - return $this->audienceSegments; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_Browser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $browserVersionId; - public $dartId; - public $kind; - public $majorVersion; - public $minorVersion; - public $name; - - - public function setBrowserVersionId($browserVersionId) - { - $this->browserVersionId = $browserVersionId; - } - public function getBrowserVersionId() - { - return $this->browserVersionId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMajorVersion($majorVersion) - { - $this->majorVersion = $majorVersion; - } - public function getMajorVersion() - { - return $this->majorVersion; - } - public function setMinorVersion($minorVersion) - { - $this->minorVersion = $minorVersion; - } - public function getMinorVersion() - { - return $this->minorVersion; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection -{ - protected $collection_key = 'browsers'; - protected $internal_gapi_mappings = array( - ); - protected $browsersType = 'Google_Service_Dfareporting_Browser'; - protected $browsersDataType = 'array'; - public $kind; - - - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } - public function getBrowsers() - { - return $this->browsers; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_Campaign extends Google_Collection -{ - protected $collection_key = 'traffickerEmails'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; - protected $additionalCreativeOptimizationConfigurationsDataType = 'array'; - public $advertiserGroupId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup'; - protected $audienceSegmentGroupsDataType = 'array'; - public $billingInvoiceCode; - protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; - protected $clickThroughUrlSuffixPropertiesDataType = ''; - public $comment; - public $comscoreVceEnabled; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $creativeGroupIds; - protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; - protected $creativeOptimizationConfigurationDataType = ''; - protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; - protected $defaultClickThroughEventTagPropertiesDataType = ''; - public $endDate; - protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; - protected $eventTagOverridesDataType = 'array'; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $name; - public $nielsenOcrEnabled; - public $startDate; - public $subaccountId; - public $traffickerEmails; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations) - { - $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations; - } - public function getAdditionalCreativeOptimizationConfigurations() - { - return $this->additionalCreativeOptimizationConfigurations; - } - public function setAdvertiserGroupId($advertiserGroupId) - { - $this->advertiserGroupId = $advertiserGroupId; - } - public function getAdvertiserGroupId() - { - return $this->advertiserGroupId; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setAudienceSegmentGroups($audienceSegmentGroups) - { - $this->audienceSegmentGroups = $audienceSegmentGroups; - } - public function getAudienceSegmentGroups() - { - return $this->audienceSegmentGroups; - } - public function setBillingInvoiceCode($billingInvoiceCode) - { - $this->billingInvoiceCode = $billingInvoiceCode; - } - public function getBillingInvoiceCode() - { - return $this->billingInvoiceCode; - } - public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) - { - $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; - } - public function getClickThroughUrlSuffixProperties() - { - return $this->clickThroughUrlSuffixProperties; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setComscoreVceEnabled($comscoreVceEnabled) - { - $this->comscoreVceEnabled = $comscoreVceEnabled; - } - public function getComscoreVceEnabled() - { - return $this->comscoreVceEnabled; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setCreativeGroupIds($creativeGroupIds) - { - $this->creativeGroupIds = $creativeGroupIds; - } - public function getCreativeGroupIds() - { - return $this->creativeGroupIds; - } - public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration) - { - $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration; - } - public function getCreativeOptimizationConfiguration() - { - return $this->creativeOptimizationConfiguration; - } - public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) - { - $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; - } - public function getDefaultClickThroughEventTagProperties() - { - return $this->defaultClickThroughEventTagProperties; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setEventTagOverrides($eventTagOverrides) - { - $this->eventTagOverrides = $eventTagOverrides; - } - public function getEventTagOverrides() - { - return $this->eventTagOverrides; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNielsenOcrEnabled($nielsenOcrEnabled) - { - $this->nielsenOcrEnabled = $nielsenOcrEnabled; - } - public function getNielsenOcrEnabled() - { - return $this->nielsenOcrEnabled; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTraffickerEmails($traffickerEmails) - { - $this->traffickerEmails = $traffickerEmails; - } - public function getTraffickerEmails() - { - return $this->traffickerEmails; - } -} - -class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeId; - public $kind; - - - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection -{ - protected $collection_key = 'campaignCreativeAssociations'; - protected $internal_gapi_mappings = array( - ); - protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation'; - protected $campaignCreativeAssociationsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCampaignCreativeAssociations($campaignCreativeAssociations) - { - $this->campaignCreativeAssociations = $campaignCreativeAssociations; - } - public function getCampaignCreativeAssociations() - { - return $this->campaignCreativeAssociations; - } - 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_CampaignsListResponse extends Google_Collection -{ - protected $collection_key = 'campaigns'; - protected $internal_gapi_mappings = array( - ); - protected $campaignsType = 'Google_Service_Dfareporting_Campaign'; - protected $campaignsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCampaigns($campaigns) - { - $this->campaigns = $campaigns; - } - public function getCampaigns() - { - return $this->campaigns; - } - 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_ChangeLog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $action; - public $changeTime; - public $fieldName; - public $id; - public $kind; - public $newValue; - public $objectId; - public $objectType; - public $oldValue; - public $subaccountId; - public $transactionId; - public $userProfileId; - public $userProfileName; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setChangeTime($changeTime) - { - $this->changeTime = $changeTime; - } - public function getChangeTime() - { - return $this->changeTime; - } - public function setFieldName($fieldName) - { - $this->fieldName = $fieldName; - } - public function getFieldName() - { - return $this->fieldName; - } - 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 setNewValue($newValue) - { - $this->newValue = $newValue; - } - public function getNewValue() - { - return $this->newValue; - } - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - public function getObjectId() - { - return $this->objectId; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOldValue($oldValue) - { - $this->oldValue = $oldValue; - } - public function getOldValue() - { - return $this->oldValue; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTransactionId($transactionId) - { - $this->transactionId = $transactionId; - } - public function getTransactionId() - { - return $this->transactionId; - } - public function setUserProfileId($userProfileId) - { - $this->userProfileId = $userProfileId; - } - public function getUserProfileId() - { - return $this->userProfileId; - } - public function setUserProfileName($userProfileName) - { - $this->userProfileName = $userProfileName; - } - public function getUserProfileName() - { - return $this->userProfileName; - } -} - -class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection -{ - protected $collection_key = 'changeLogs'; - protected $internal_gapi_mappings = array( - ); - protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog'; - protected $changeLogsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setChangeLogs($changeLogs) - { - $this->changeLogs = $changeLogs; - } - public function getChangeLogs() - { - return $this->changeLogs; - } - 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_CitiesListResponse extends Google_Collection -{ - protected $collection_key = 'cities'; - protected $internal_gapi_mappings = array( - ); - protected $citiesType = 'Google_Service_Dfareporting_City'; - protected $citiesDataType = 'array'; - public $kind; - - - public function setCities($cities) - { - $this->cities = $cities; - } - public function getCities() - { - return $this->cities; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_City extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $kind; - public $metroCode; - public $metroDmaId; - public $name; - public $regionCode; - public $regionDartId; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetroCode($metroCode) - { - $this->metroCode = $metroCode; - } - public function getMetroCode() - { - return $this->metroCode; - } - public function setMetroDmaId($metroDmaId) - { - $this->metroDmaId = $metroDmaId; - } - public function getMetroDmaId() - { - return $this->metroDmaId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegionCode($regionCode) - { - $this->regionCode = $regionCode; - } - public function getRegionCode() - { - return $this->regionCode; - } - public function setRegionDartId($regionDartId) - { - $this->regionDartId = $regionDartId; - } - public function getRegionDartId() - { - return $this->regionDartId; - } -} - -class Google_Service_Dfareporting_ClickTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $eventName; - public $name; - public $value; - - - public function setEventName($eventName) - { - $this->eventName = $eventName; - } - public function getEventName() - { - return $this->eventName; - } - 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_Dfareporting_ClickThroughUrl extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customClickThroughUrl; - public $defaultLandingPage; - public $landingPageId; - - - public function setCustomClickThroughUrl($customClickThroughUrl) - { - $this->customClickThroughUrl = $customClickThroughUrl; - } - public function getCustomClickThroughUrl() - { - return $this->customClickThroughUrl; - } - public function setDefaultLandingPage($defaultLandingPage) - { - $this->defaultLandingPage = $defaultLandingPage; - } - public function getDefaultLandingPage() - { - return $this->defaultLandingPage; - } - public function setLandingPageId($landingPageId) - { - $this->landingPageId = $landingPageId; - } - public function getLandingPageId() - { - return $this->landingPageId; - } -} - -class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickThroughUrlSuffix; - public $overrideInheritedSuffix; - - - public function setClickThroughUrlSuffix($clickThroughUrlSuffix) - { - $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; - } - public function getClickThroughUrlSuffix() - { - return $this->clickThroughUrlSuffix; - } - public function setOverrideInheritedSuffix($overrideInheritedSuffix) - { - $this->overrideInheritedSuffix = $overrideInheritedSuffix; - } - public function getOverrideInheritedSuffix() - { - return $this->overrideInheritedSuffix; - } -} - -class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - public $creativeId; - - - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } -} - -class Google_Service_Dfareporting_CompatibleFields extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; - protected $crossDimensionReachReportCompatibleFieldsDataType = ''; - protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; - protected $floodlightReportCompatibleFieldsDataType = ''; - public $kind; - protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; - protected $pathToConversionReportCompatibleFieldsDataType = ''; - protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; - protected $reachReportCompatibleFieldsDataType = ''; - protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; - protected $reportCompatibleFieldsDataType = ''; - - - public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) - { - $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; - } - public function getCrossDimensionReachReportCompatibleFields() - { - return $this->crossDimensionReachReportCompatibleFields; - } - public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) - { - $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; - } - public function getFloodlightReportCompatibleFields() - { - return $this->floodlightReportCompatibleFields; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) - { - $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; - } - public function getPathToConversionReportCompatibleFields() - { - return $this->pathToConversionReportCompatibleFields; - } - public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) - { - $this->reachReportCompatibleFields = $reachReportCompatibleFields; - } - public function getReachReportCompatibleFields() - { - return $this->reachReportCompatibleFields; - } - public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) - { - $this->reportCompatibleFields = $reportCompatibleFields; - } - public function getReportCompatibleFields() - { - return $this->reportCompatibleFields; - } -} - -class Google_Service_Dfareporting_ConnectionType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_ConnectionTypesListResponse extends Google_Collection -{ - protected $collection_key = 'connectionTypes'; - protected $internal_gapi_mappings = array( - ); - protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; - protected $connectionTypesDataType = 'array'; - public $kind; - - - public function setConnectionTypes($connectionTypes) - { - $this->connectionTypes = $connectionTypes; - } - public function getConnectionTypes() - { - return $this->connectionTypes; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection -{ - protected $collection_key = 'contentCategories'; - protected $internal_gapi_mappings = array( - ); - protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory'; - protected $contentCategoriesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setContentCategories($contentCategories) - { - $this->contentCategories = $contentCategories; - } - public function getContentCategories() - { - return $this->contentCategories; - } - 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_ContentCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection -{ - protected $collection_key = 'countries'; - protected $internal_gapi_mappings = array( - ); - protected $countriesType = 'Google_Service_Dfareporting_Country'; - protected $countriesDataType = 'array'; - public $kind; - - - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_Country extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $dartId; - public $kind; - public $name; - public $sslEnabled; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - 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 setSslEnabled($sslEnabled) - { - $this->sslEnabled = $sslEnabled; - } - public function getSslEnabled() - { - return $this->sslEnabled; - } -} - -class Google_Service_Dfareporting_Creative extends Google_Collection -{ - protected $collection_key = 'timerCustomEvents'; - protected $internal_gapi_mappings = array( - "autoAdvanceImages" => "auto_advance_images", - ); - public $accountId; - public $active; - public $adParameters; - public $adTagKeys; - public $advertiserId; - public $allowScriptAccess; - public $archived; - public $artworkType; - public $authoringTool; - public $autoAdvanceImages; - public $backgroundColor; - public $backupImageClickThroughUrl; - public $backupImageFeatures; - public $backupImageReportingLabel; - protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow'; - protected $backupImageTargetWindowDataType = ''; - protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; - protected $clickTagsDataType = 'array'; - public $commercialId; - public $companionCreatives; - public $compatibility; - public $convertFlashToHtml5; - protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $counterCustomEventsDataType = 'array'; - protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; - protected $creativeAssetsDataType = 'array'; - protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment'; - protected $creativeFieldAssignmentsDataType = 'array'; - public $customKeyValues; - protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $exitCustomEventsDataType = 'array'; - protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand'; - protected $fsCommandDataType = ''; - public $htmlCode; - public $htmlCodeLocked; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $latestTraffickedCreativeId; - public $name; - public $overrideCss; - public $redirectUrl; - public $renderingId; - protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $renderingIdDimensionValueDataType = ''; - public $requiredFlashPluginVersion; - public $requiredFlashVersion; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $skippable; - public $sslCompliant; - public $studioAdvertiserId; - public $studioCreativeId; - public $studioTraffickedCreativeId; - public $subaccountId; - public $thirdPartyBackupImageImpressionsUrl; - public $thirdPartyRichMediaImpressionsUrl; - protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl'; - protected $thirdPartyUrlsDataType = 'array'; - protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $timerCustomEventsDataType = 'array'; - public $totalFileSize; - public $type; - public $version; - public $videoDescription; - public $videoDuration; - - - 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 setAdParameters($adParameters) - { - $this->adParameters = $adParameters; - } - public function getAdParameters() - { - return $this->adParameters; - } - public function setAdTagKeys($adTagKeys) - { - $this->adTagKeys = $adTagKeys; - } - public function getAdTagKeys() - { - return $this->adTagKeys; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAllowScriptAccess($allowScriptAccess) - { - $this->allowScriptAccess = $allowScriptAccess; - } - public function getAllowScriptAccess() - { - return $this->allowScriptAccess; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setAuthoringTool($authoringTool) - { - $this->authoringTool = $authoringTool; - } - public function getAuthoringTool() - { - return $this->authoringTool; - } - public function setAutoAdvanceImages($autoAdvanceImages) - { - $this->autoAdvanceImages = $autoAdvanceImages; - } - public function getAutoAdvanceImages() - { - return $this->autoAdvanceImages; - } - public function setBackgroundColor($backgroundColor) - { - $this->backgroundColor = $backgroundColor; - } - public function getBackgroundColor() - { - return $this->backgroundColor; - } - public function setBackupImageClickThroughUrl($backupImageClickThroughUrl) - { - $this->backupImageClickThroughUrl = $backupImageClickThroughUrl; - } - public function getBackupImageClickThroughUrl() - { - return $this->backupImageClickThroughUrl; - } - public function setBackupImageFeatures($backupImageFeatures) - { - $this->backupImageFeatures = $backupImageFeatures; - } - public function getBackupImageFeatures() - { - return $this->backupImageFeatures; - } - public function setBackupImageReportingLabel($backupImageReportingLabel) - { - $this->backupImageReportingLabel = $backupImageReportingLabel; - } - public function getBackupImageReportingLabel() - { - return $this->backupImageReportingLabel; - } - public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow) - { - $this->backupImageTargetWindow = $backupImageTargetWindow; - } - public function getBackupImageTargetWindow() - { - return $this->backupImageTargetWindow; - } - public function setClickTags($clickTags) - { - $this->clickTags = $clickTags; - } - public function getClickTags() - { - return $this->clickTags; - } - public function setCommercialId($commercialId) - { - $this->commercialId = $commercialId; - } - public function getCommercialId() - { - return $this->commercialId; - } - public function setCompanionCreatives($companionCreatives) - { - $this->companionCreatives = $companionCreatives; - } - public function getCompanionCreatives() - { - return $this->companionCreatives; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setConvertFlashToHtml5($convertFlashToHtml5) - { - $this->convertFlashToHtml5 = $convertFlashToHtml5; - } - public function getConvertFlashToHtml5() - { - return $this->convertFlashToHtml5; - } - public function setCounterCustomEvents($counterCustomEvents) - { - $this->counterCustomEvents = $counterCustomEvents; - } - public function getCounterCustomEvents() - { - return $this->counterCustomEvents; - } - public function setCreativeAssets($creativeAssets) - { - $this->creativeAssets = $creativeAssets; - } - public function getCreativeAssets() - { - return $this->creativeAssets; - } - public function setCreativeFieldAssignments($creativeFieldAssignments) - { - $this->creativeFieldAssignments = $creativeFieldAssignments; - } - public function getCreativeFieldAssignments() - { - return $this->creativeFieldAssignments; - } - public function setCustomKeyValues($customKeyValues) - { - $this->customKeyValues = $customKeyValues; - } - public function getCustomKeyValues() - { - return $this->customKeyValues; - } - public function setExitCustomEvents($exitCustomEvents) - { - $this->exitCustomEvents = $exitCustomEvents; - } - public function getExitCustomEvents() - { - return $this->exitCustomEvents; - } - public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand) - { - $this->fsCommand = $fsCommand; - } - public function getFsCommand() - { - return $this->fsCommand; - } - public function setHtmlCode($htmlCode) - { - $this->htmlCode = $htmlCode; - } - public function getHtmlCode() - { - return $this->htmlCode; - } - public function setHtmlCodeLocked($htmlCodeLocked) - { - $this->htmlCodeLocked = $htmlCodeLocked; - } - public function getHtmlCodeLocked() - { - return $this->htmlCodeLocked; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLatestTraffickedCreativeId($latestTraffickedCreativeId) - { - $this->latestTraffickedCreativeId = $latestTraffickedCreativeId; - } - public function getLatestTraffickedCreativeId() - { - return $this->latestTraffickedCreativeId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverrideCss($overrideCss) - { - $this->overrideCss = $overrideCss; - } - public function getOverrideCss() - { - return $this->overrideCss; - } - public function setRedirectUrl($redirectUrl) - { - $this->redirectUrl = $redirectUrl; - } - public function getRedirectUrl() - { - return $this->redirectUrl; - } - public function setRenderingId($renderingId) - { - $this->renderingId = $renderingId; - } - public function getRenderingId() - { - return $this->renderingId; - } - public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue) - { - $this->renderingIdDimensionValue = $renderingIdDimensionValue; - } - public function getRenderingIdDimensionValue() - { - return $this->renderingIdDimensionValue; - } - public function setRequiredFlashPluginVersion($requiredFlashPluginVersion) - { - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - } - public function getRequiredFlashPluginVersion() - { - return $this->requiredFlashPluginVersion; - } - public function setRequiredFlashVersion($requiredFlashVersion) - { - $this->requiredFlashVersion = $requiredFlashVersion; - } - public function getRequiredFlashVersion() - { - return $this->requiredFlashVersion; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSkippable($skippable) - { - $this->skippable = $skippable; - } - public function getSkippable() - { - return $this->skippable; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStudioAdvertiserId($studioAdvertiserId) - { - $this->studioAdvertiserId = $studioAdvertiserId; - } - public function getStudioAdvertiserId() - { - return $this->studioAdvertiserId; - } - public function setStudioCreativeId($studioCreativeId) - { - $this->studioCreativeId = $studioCreativeId; - } - public function getStudioCreativeId() - { - return $this->studioCreativeId; - } - public function setStudioTraffickedCreativeId($studioTraffickedCreativeId) - { - $this->studioTraffickedCreativeId = $studioTraffickedCreativeId; - } - public function getStudioTraffickedCreativeId() - { - return $this->studioTraffickedCreativeId; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl) - { - $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl; - } - public function getThirdPartyBackupImageImpressionsUrl() - { - return $this->thirdPartyBackupImageImpressionsUrl; - } - public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl) - { - $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl; - } - public function getThirdPartyRichMediaImpressionsUrl() - { - return $this->thirdPartyRichMediaImpressionsUrl; - } - public function setThirdPartyUrls($thirdPartyUrls) - { - $this->thirdPartyUrls = $thirdPartyUrls; - } - public function getThirdPartyUrls() - { - return $this->thirdPartyUrls; - } - public function setTimerCustomEvents($timerCustomEvents) - { - $this->timerCustomEvents = $timerCustomEvents; - } - public function getTimerCustomEvents() - { - return $this->timerCustomEvents; - } - public function setTotalFileSize($totalFileSize) - { - $this->totalFileSize = $totalFileSize; - } - public function getTotalFileSize() - { - return $this->totalFileSize; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - public function setVideoDescription($videoDescription) - { - $this->videoDescription = $videoDescription; - } - public function getVideoDescription() - { - return $this->videoDescription; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } -} - -class Google_Service_Dfareporting_CreativeAsset extends Google_Collection -{ - protected $collection_key = 'detectedFeatures'; - protected $internal_gapi_mappings = array( - ); - public $actionScript3; - public $active; - public $alignment; - public $artworkType; - protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; - protected $assetIdentifierDataType = ''; - protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $backupImageExitDataType = ''; - public $bitRate; - public $childAssetType; - protected $collapsedSizeType = 'Google_Service_Dfareporting_Size'; - protected $collapsedSizeDataType = ''; - public $customStartTimeValue; - public $detectedFeatures; - public $displayType; - public $duration; - public $durationType; - protected $expandedDimensionType = 'Google_Service_Dfareporting_Size'; - protected $expandedDimensionDataType = ''; - public $fileSize; - public $flashVersion; - public $hideFlashObjects; - public $hideSelectionBoxes; - public $horizontallyLocked; - public $id; - public $mimeType; - protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $offsetDataType = ''; - public $originalBackup; - protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $positionDataType = ''; - public $positionLeftUnit; - public $positionTopUnit; - public $progressiveServingUrl; - public $pushdown; - public $pushdownDuration; - public $role; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslCompliant; - public $startTimeType; - public $streamingServingUrl; - public $transparency; - public $verticallyLocked; - public $videoDuration; - public $windowMode; - public $zIndex; - public $zipFilename; - public $zipFilesize; - - - public function setActionScript3($actionScript3) - { - $this->actionScript3 = $actionScript3; - } - public function getActionScript3() - { - return $this->actionScript3; - } - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setAlignment($alignment) - { - $this->alignment = $alignment; - } - public function getAlignment() - { - return $this->alignment; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) - { - $this->assetIdentifier = $assetIdentifier; - } - public function getAssetIdentifier() - { - return $this->assetIdentifier; - } - public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit) - { - $this->backupImageExit = $backupImageExit; - } - public function getBackupImageExit() - { - return $this->backupImageExit; - } - public function setBitRate($bitRate) - { - $this->bitRate = $bitRate; - } - public function getBitRate() - { - return $this->bitRate; - } - public function setChildAssetType($childAssetType) - { - $this->childAssetType = $childAssetType; - } - public function getChildAssetType() - { - return $this->childAssetType; - } - public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize) - { - $this->collapsedSize = $collapsedSize; - } - public function getCollapsedSize() - { - return $this->collapsedSize; - } - public function setCustomStartTimeValue($customStartTimeValue) - { - $this->customStartTimeValue = $customStartTimeValue; - } - public function getCustomStartTimeValue() - { - return $this->customStartTimeValue; - } - public function setDetectedFeatures($detectedFeatures) - { - $this->detectedFeatures = $detectedFeatures; - } - public function getDetectedFeatures() - { - return $this->detectedFeatures; - } - public function setDisplayType($displayType) - { - $this->displayType = $displayType; - } - public function getDisplayType() - { - return $this->displayType; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setDurationType($durationType) - { - $this->durationType = $durationType; - } - public function getDurationType() - { - return $this->durationType; - } - public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension) - { - $this->expandedDimension = $expandedDimension; - } - public function getExpandedDimension() - { - return $this->expandedDimension; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setFlashVersion($flashVersion) - { - $this->flashVersion = $flashVersion; - } - public function getFlashVersion() - { - return $this->flashVersion; - } - public function setHideFlashObjects($hideFlashObjects) - { - $this->hideFlashObjects = $hideFlashObjects; - } - public function getHideFlashObjects() - { - return $this->hideFlashObjects; - } - public function setHideSelectionBoxes($hideSelectionBoxes) - { - $this->hideSelectionBoxes = $hideSelectionBoxes; - } - public function getHideSelectionBoxes() - { - return $this->hideSelectionBoxes; - } - public function setHorizontallyLocked($horizontallyLocked) - { - $this->horizontallyLocked = $horizontallyLocked; - } - public function getHorizontallyLocked() - { - return $this->horizontallyLocked; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setOriginalBackup($originalBackup) - { - $this->originalBackup = $originalBackup; - } - public function getOriginalBackup() - { - return $this->originalBackup; - } - public function setPosition(Google_Service_Dfareporting_OffsetPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setPositionLeftUnit($positionLeftUnit) - { - $this->positionLeftUnit = $positionLeftUnit; - } - public function getPositionLeftUnit() - { - return $this->positionLeftUnit; - } - public function setPositionTopUnit($positionTopUnit) - { - $this->positionTopUnit = $positionTopUnit; - } - public function getPositionTopUnit() - { - return $this->positionTopUnit; - } - public function setProgressiveServingUrl($progressiveServingUrl) - { - $this->progressiveServingUrl = $progressiveServingUrl; - } - public function getProgressiveServingUrl() - { - return $this->progressiveServingUrl; - } - public function setPushdown($pushdown) - { - $this->pushdown = $pushdown; - } - public function getPushdown() - { - return $this->pushdown; - } - public function setPushdownDuration($pushdownDuration) - { - $this->pushdownDuration = $pushdownDuration; - } - public function getPushdownDuration() - { - return $this->pushdownDuration; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStartTimeType($startTimeType) - { - $this->startTimeType = $startTimeType; - } - public function getStartTimeType() - { - return $this->startTimeType; - } - public function setStreamingServingUrl($streamingServingUrl) - { - $this->streamingServingUrl = $streamingServingUrl; - } - public function getStreamingServingUrl() - { - return $this->streamingServingUrl; - } - public function setTransparency($transparency) - { - $this->transparency = $transparency; - } - public function getTransparency() - { - return $this->transparency; - } - public function setVerticallyLocked($verticallyLocked) - { - $this->verticallyLocked = $verticallyLocked; - } - public function getVerticallyLocked() - { - return $this->verticallyLocked; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } - public function setWindowMode($windowMode) - { - $this->windowMode = $windowMode; - } - public function getWindowMode() - { - return $this->windowMode; - } - public function setZIndex($zIndex) - { - $this->zIndex = $zIndex; - } - public function getZIndex() - { - return $this->zIndex; - } - public function setZipFilename($zipFilename) - { - $this->zipFilename = $zipFilename; - } - public function getZipFilename() - { - return $this->zipFilename; - } - public function setZipFilesize($zipFilesize) - { - $this->zipFilesize = $zipFilesize; - } - public function getZipFilesize() - { - return $this->zipFilesize; - } -} - -class Google_Service_Dfareporting_CreativeAssetId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $type; - - - 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_Dfareporting_CreativeAssetMetadata extends Google_Collection -{ - protected $collection_key = 'warnedValidationRules'; - protected $internal_gapi_mappings = array( - ); - protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; - protected $assetIdentifierDataType = ''; - protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; - protected $clickTagsDataType = 'array'; - public $detectedFeatures; - public $kind; - public $warnedValidationRules; - - - public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) - { - $this->assetIdentifier = $assetIdentifier; - } - public function getAssetIdentifier() - { - return $this->assetIdentifier; - } - public function setClickTags($clickTags) - { - $this->clickTags = $clickTags; - } - public function getClickTags() - { - return $this->clickTags; - } - public function setDetectedFeatures($detectedFeatures) - { - $this->detectedFeatures = $detectedFeatures; - } - public function getDetectedFeatures() - { - return $this->detectedFeatures; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setWarnedValidationRules($warnedValidationRules) - { - $this->warnedValidationRules = $warnedValidationRules; - } - public function getWarnedValidationRules() - { - return $this->warnedValidationRules; - } -} - -class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection -{ - protected $collection_key = 'richMediaExitOverrides'; - protected $internal_gapi_mappings = array( - ); - public $active; - public $applyEventTags; - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride'; - protected $companionCreativeOverridesDataType = 'array'; - protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; - protected $creativeGroupAssignmentsDataType = 'array'; - public $creativeId; - protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $creativeIdDimensionValueDataType = ''; - public $endTime; - protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride'; - protected $richMediaExitOverridesDataType = 'array'; - public $sequence; - public $sslCompliant; - public $startTime; - public $weight; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setApplyEventTags($applyEventTags) - { - $this->applyEventTags = $applyEventTags; - } - public function getApplyEventTags() - { - return $this->applyEventTags; - } - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setCompanionCreativeOverrides($companionCreativeOverrides) - { - $this->companionCreativeOverrides = $companionCreativeOverrides; - } - public function getCompanionCreativeOverrides() - { - return $this->companionCreativeOverrides; - } - public function setCreativeGroupAssignments($creativeGroupAssignments) - { - $this->creativeGroupAssignments = $creativeGroupAssignments; - } - public function getCreativeGroupAssignments() - { - return $this->creativeGroupAssignments; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue) - { - $this->creativeIdDimensionValue = $creativeIdDimensionValue; - } - public function getCreativeIdDimensionValue() - { - return $this->creativeIdDimensionValue; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setRichMediaExitOverrides($richMediaExitOverrides) - { - $this->richMediaExitOverrides = $richMediaExitOverrides; - } - public function getRichMediaExitOverrides() - { - return $this->richMediaExitOverrides; - } - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - public function getSequence() - { - return $this->sequence; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setWeight($weight) - { - $this->weight = $weight; - } - public function getWeight() - { - return $this->weight; - } -} - -class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $active; - public $advertiserCustomEventName; - public $advertiserCustomEventType; - public $artworkLabel; - public $artworkType; - public $exitUrl; - public $id; - protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties'; - protected $popupWindowPropertiesDataType = ''; - public $targetType; - public $videoReportingId; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setAdvertiserCustomEventName($advertiserCustomEventName) - { - $this->advertiserCustomEventName = $advertiserCustomEventName; - } - public function getAdvertiserCustomEventName() - { - return $this->advertiserCustomEventName; - } - public function setAdvertiserCustomEventType($advertiserCustomEventType) - { - $this->advertiserCustomEventType = $advertiserCustomEventType; - } - public function getAdvertiserCustomEventType() - { - return $this->advertiserCustomEventType; - } - public function setArtworkLabel($artworkLabel) - { - $this->artworkLabel = $artworkLabel; - } - public function getArtworkLabel() - { - return $this->artworkLabel; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setExitUrl($exitUrl) - { - $this->exitUrl = $exitUrl; - } - public function getExitUrl() - { - return $this->exitUrl; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties) - { - $this->popupWindowProperties = $popupWindowProperties; - } - public function getPopupWindowProperties() - { - return $this->popupWindowProperties; - } - public function setTargetType($targetType) - { - $this->targetType = $targetType; - } - public function getTargetType() - { - return $this->targetType; - } - public function setVideoReportingId($videoReportingId) - { - $this->videoReportingId = $videoReportingId; - } - public function getVideoReportingId() - { - return $this->videoReportingId; - } -} - -class Google_Service_Dfareporting_CreativeField extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $id; - public $kind; - public $name; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeFieldId; - public $creativeFieldValueId; - - - public function setCreativeFieldId($creativeFieldId) - { - $this->creativeFieldId = $creativeFieldId; - } - public function getCreativeFieldId() - { - return $this->creativeFieldId; - } - public function setCreativeFieldValueId($creativeFieldValueId) - { - $this->creativeFieldValueId = $creativeFieldValueId; - } - public function getCreativeFieldValueId() - { - return $this->creativeFieldValueId; - } -} - -class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $value; - - - 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_CreativeFieldValuesListResponse extends Google_Collection -{ - protected $collection_key = 'creativeFieldValues'; - protected $internal_gapi_mappings = array( - ); - protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue'; - protected $creativeFieldValuesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeFieldValues($creativeFieldValues) - { - $this->creativeFieldValues = $creativeFieldValues; - } - public function getCreativeFieldValues() - { - return $this->creativeFieldValues; - } - 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_CreativeFieldsListResponse extends Google_Collection -{ - protected $collection_key = 'creativeFields'; - protected $internal_gapi_mappings = array( - ); - protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField'; - protected $creativeFieldsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeFields($creativeFields) - { - $this->creativeFields = $creativeFields; - } - public function getCreativeFields() - { - return $this->creativeFields; - } - 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_CreativeGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $groupNumber; - public $id; - public $kind; - public $name; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setGroupNumber($groupNumber) - { - $this->groupNumber = $groupNumber; - } - public function getGroupNumber() - { - return $this->groupNumber; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeGroupId; - public $creativeGroupNumber; - - - public function setCreativeGroupId($creativeGroupId) - { - $this->creativeGroupId = $creativeGroupId; - } - public function getCreativeGroupId() - { - return $this->creativeGroupId; - } - public function setCreativeGroupNumber($creativeGroupNumber) - { - $this->creativeGroupNumber = $creativeGroupNumber; - } - public function getCreativeGroupNumber() - { - return $this->creativeGroupNumber; - } -} - -class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'creativeGroups'; - protected $internal_gapi_mappings = array( - ); - protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup'; - protected $creativeGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeGroups($creativeGroups) - { - $this->creativeGroups = $creativeGroups; - } - public function getCreativeGroups() - { - return $this->creativeGroups; - } - 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_CreativeOptimizationConfiguration extends Google_Collection -{ - protected $collection_key = 'optimizationActivitys'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity'; - protected $optimizationActivitysDataType = 'array'; - public $optimizationModel; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptimizationActivitys($optimizationActivitys) - { - $this->optimizationActivitys = $optimizationActivitys; - } - public function getOptimizationActivitys() - { - return $this->optimizationActivitys; - } - public function setOptimizationModel($optimizationModel) - { - $this->optimizationModel = $optimizationModel; - } - public function getOptimizationModel() - { - return $this->optimizationModel; - } -} - -class Google_Service_Dfareporting_CreativeRotation extends Google_Collection -{ - protected $collection_key = 'creativeAssignments'; - protected $internal_gapi_mappings = array( - ); - protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment'; - protected $creativeAssignmentsDataType = 'array'; - public $creativeOptimizationConfigurationId; - public $type; - public $weightCalculationStrategy; - - - public function setCreativeAssignments($creativeAssignments) - { - $this->creativeAssignments = $creativeAssignments; - } - public function getCreativeAssignments() - { - return $this->creativeAssignments; - } - public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId) - { - $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId; - } - public function getCreativeOptimizationConfigurationId() - { - return $this->creativeOptimizationConfigurationId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWeightCalculationStrategy($weightCalculationStrategy) - { - $this->weightCalculationStrategy = $weightCalculationStrategy; - } - public function getWeightCalculationStrategy() - { - return $this->weightCalculationStrategy; - } -} - -class Google_Service_Dfareporting_CreativeSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $iFrameFooter; - public $iFrameHeader; - - - public function setIFrameFooter($iFrameFooter) - { - $this->iFrameFooter = $iFrameFooter; - } - public function getIFrameFooter() - { - return $this->iFrameFooter; - } - public function setIFrameHeader($iFrameHeader) - { - $this->iFrameHeader = $iFrameHeader; - } - public function getIFrameHeader() - { - return $this->iFrameHeader; - } -} - -class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection -{ - protected $collection_key = 'creatives'; - protected $internal_gapi_mappings = array( - ); - protected $creativesType = 'Google_Service_Dfareporting_Creative'; - protected $creativesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreatives($creatives) - { - $this->creatives = $creatives; - } - public function getCreatives() - { - return $this->creatives; - } - 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_CrossDimensionReachReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'overlapMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; - protected $breakdownDataType = 'array'; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $overlapMetricsDataType = 'array'; - - - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } - public function getBreakdown() - { - return $this->breakdown; - } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setOverlapMetrics($overlapMetrics) - { - $this->overlapMetrics = $overlapMetrics; - } - public function getOverlapMetrics() - { - return $this->overlapMetrics; - } -} - -class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection -{ - protected $collection_key = 'filteredEventIds'; - protected $internal_gapi_mappings = array( - ); - protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filteredEventIdsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_DayPartTargeting extends Google_Collection -{ - protected $collection_key = 'hoursOfDay'; - protected $internal_gapi_mappings = array( - ); - public $daysOfWeek; - public $hoursOfDay; - public $userLocalTime; - - - public function setDaysOfWeek($daysOfWeek) - { - $this->daysOfWeek = $daysOfWeek; - } - public function getDaysOfWeek() - { - return $this->daysOfWeek; - } - public function setHoursOfDay($hoursOfDay) - { - $this->hoursOfDay = $hoursOfDay; - } - public function getHoursOfDay() - { - return $this->hoursOfDay; - } - public function setUserLocalTime($userLocalTime) - { - $this->userLocalTime = $userLocalTime; - } - public function getUserLocalTime() - { - return $this->userLocalTime; - } -} - -class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $defaultClickThroughEventTagId; - public $overrideInheritedEventTag; - - - public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) - { - $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; - } - public function getDefaultClickThroughEventTagId() - { - return $this->defaultClickThroughEventTagId; - } - public function setOverrideInheritedEventTag($overrideInheritedEventTag) - { - $this->overrideInheritedEventTag = $overrideInheritedEventTag; - } - public function getOverrideInheritedEventTag() - { - return $this->overrideInheritedEventTag; - } -} - -class Google_Service_Dfareporting_DeliverySchedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap'; - protected $frequencyCapDataType = ''; - public $hardCutoff; - public $impressionRatio; - public $priority; - - - public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap) - { - $this->frequencyCap = $frequencyCap; - } - public function getFrequencyCap() - { - return $this->frequencyCap; - } - public function setHardCutoff($hardCutoff) - { - $this->hardCutoff = $hardCutoff; - } - public function getHardCutoff() - { - return $this->hardCutoff; - } - public function setImpressionRatio($impressionRatio) - { - $this->impressionRatio = $impressionRatio; - } - public function getImpressionRatio() - { - return $this->impressionRatio; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } -} - -class Google_Service_Dfareporting_DfareportingFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $etag; - public $fileName; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $reportId; - public $status; - protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; - protected $urlsDataType = ''; - - - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_DfpSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - "dfpNetworkCode" => "dfp_network_code", - "dfpNetworkName" => "dfp_network_name", - ); - public $dfpNetworkCode; - public $dfpNetworkName; - public $programmaticPlacementAccepted; - public $pubPaidPlacementAccepted; - public $publisherPortalOnly; - - - public function setDfpNetworkCode($dfpNetworkCode) - { - $this->dfpNetworkCode = $dfpNetworkCode; - } - public function getDfpNetworkCode() - { - return $this->dfpNetworkCode; - } - public function setDfpNetworkName($dfpNetworkName) - { - $this->dfpNetworkName = $dfpNetworkName; - } - public function getDfpNetworkName() - { - return $this->dfpNetworkName; - } - public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted) - { - $this->programmaticPlacementAccepted = $programmaticPlacementAccepted; - } - public function getProgrammaticPlacementAccepted() - { - return $this->programmaticPlacementAccepted; - } - public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted) - { - $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted; - } - public function getPubPaidPlacementAccepted() - { - return $this->pubPaidPlacementAccepted; - } - public function setPublisherPortalOnly($publisherPortalOnly) - { - $this->publisherPortalOnly = $publisherPortalOnly; - } - public function getPublisherPortalOnly() - { - return $this->publisherPortalOnly; - } -} - -class Google_Service_Dfareporting_Dimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - 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_Dfareporting_DimensionFilter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $dimensionName; - public $etag; - public $id; - public $kind; - public $matchType; - 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 setMatchType($matchType) - { - $this->matchType = $matchType; - } - public function getMatchType() - { - return $this->matchType; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Dfareporting_DimensionValueList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - public $dimensionName; - public $endDate; - protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; - protected $filtersDataType = 'array'; - public $kind; - public $startDate; - - - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } - public function 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_DirectorySite extends Google_Collection -{ - protected $collection_key = 'interstitialTagFormats'; - protected $internal_gapi_mappings = array( - ); - public $active; - protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; - protected $contactAssignmentsDataType = 'array'; - public $countryId; - public $currencyId; - public $description; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $inpageTagFormats; - public $interstitialTagFormats; - public $kind; - public $name; - public $parentId; - protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; - protected $settingsDataType = ''; - public $url; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setContactAssignments($contactAssignments) - { - $this->contactAssignments = $contactAssignments; - } - public function getContactAssignments() - { - return $this->contactAssignments; - } - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - public function getCountryId() - { - return $this->countryId; - } - public function setCurrencyId($currencyId) - { - $this->currencyId = $currencyId; - } - public function getCurrencyId() - { - return $this->currencyId; - } - 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setInpageTagFormats($inpageTagFormats) - { - $this->inpageTagFormats = $inpageTagFormats; - } - public function getInpageTagFormats() - { - return $this->inpageTagFormats; - } - public function setInterstitialTagFormats($interstitialTagFormats) - { - $this->interstitialTagFormats = $interstitialTagFormats; - } - public function getInterstitialTagFormats() - { - return $this->interstitialTagFormats; - } - 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 setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } - public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $email; - public $firstName; - public $id; - public $kind; - public $lastName; - public $phone; - public $role; - public $title; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - 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 setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - 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_Dfareporting_DirectorySiteContactAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactId; - public $visibility; - - - public function setContactId($contactId) - { - $this->contactId = $contactId; - } - public function getContactId() - { - return $this->contactId; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection -{ - protected $collection_key = 'directorySiteContacts'; - protected $internal_gapi_mappings = array( - ); - protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; - protected $directorySiteContactsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setDirectorySiteContacts($directorySiteContacts) - { - $this->directorySiteContacts = $directorySiteContacts; - } - public function getDirectorySiteContacts() - { - return $this->directorySiteContacts; - } - 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_DirectorySiteSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - "dfpSettings" => "dfp_settings", - "instreamVideoPlacementAccepted" => "instream_video_placement_accepted", - ); - public $activeViewOptOut; - protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings'; - protected $dfpSettingsDataType = ''; - public $instreamVideoPlacementAccepted; - public $interstitialPlacementAccepted; - public $nielsenOcrOptOut; - public $verificationTagOptOut; - public $videoActiveViewOptOut; - - - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings) - { - $this->dfpSettings = $dfpSettings; - } - public function getDfpSettings() - { - return $this->dfpSettings; - } - public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted) - { - $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted; - } - public function getInstreamVideoPlacementAccepted() - { - return $this->instreamVideoPlacementAccepted; - } - public function setInterstitialPlacementAccepted($interstitialPlacementAccepted) - { - $this->interstitialPlacementAccepted = $interstitialPlacementAccepted; - } - public function getInterstitialPlacementAccepted() - { - return $this->interstitialPlacementAccepted; - } - public function setNielsenOcrOptOut($nielsenOcrOptOut) - { - $this->nielsenOcrOptOut = $nielsenOcrOptOut; - } - public function getNielsenOcrOptOut() - { - return $this->nielsenOcrOptOut; - } - public function setVerificationTagOptOut($verificationTagOptOut) - { - $this->verificationTagOptOut = $verificationTagOptOut; - } - public function getVerificationTagOptOut() - { - return $this->verificationTagOptOut; - } - public function setVideoActiveViewOptOut($videoActiveViewOptOut) - { - $this->videoActiveViewOptOut = $videoActiveViewOptOut; - } - public function getVideoActiveViewOptOut() - { - return $this->videoActiveViewOptOut; - } -} - -class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection -{ - protected $collection_key = 'directorySites'; - protected $internal_gapi_mappings = array( - ); - protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite'; - protected $directorySitesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setDirectorySites($directorySites) - { - $this->directorySites = $directorySites; - } - public function getDirectorySites() - { - return $this->directorySites; - } - 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_EventTag extends Google_Collection -{ - protected $collection_key = 'siteIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $enabledByDefault; - public $id; - public $kind; - public $name; - public $siteFilterType; - public $siteIds; - public $sslCompliant; - public $status; - public $subaccountId; - public $type; - public $url; - public $urlEscapeLevels; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setEnabledByDefault($enabledByDefault) - { - $this->enabledByDefault = $enabledByDefault; - } - public function getEnabledByDefault() - { - return $this->enabledByDefault; - } - 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 setSiteFilterType($siteFilterType) - { - $this->siteFilterType = $siteFilterType; - } - public function getSiteFilterType() - { - return $this->siteFilterType; - } - public function setSiteIds($siteIds) - { - $this->siteIds = $siteIds; - } - public function getSiteIds() - { - return $this->siteIds; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - 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; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setUrlEscapeLevels($urlEscapeLevels) - { - $this->urlEscapeLevels = $urlEscapeLevels; - } - public function getUrlEscapeLevels() - { - return $this->urlEscapeLevels; - } -} - -class Google_Service_Dfareporting_EventTagOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $enabled; - public $id; - - - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection -{ - protected $collection_key = 'eventTags'; - protected $internal_gapi_mappings = array( - ); - protected $eventTagsType = 'Google_Service_Dfareporting_EventTag'; - protected $eventTagsDataType = 'array'; - public $kind; - - - public function setEventTags($eventTags) - { - $this->eventTags = $eventTags; - } - public function getEventTags() - { - return $this->eventTags; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FileList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; - protected $itemsDataType = 'array'; - 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_Flight extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endDate; - public $rateOrCost; - public $startDate; - public $units; - - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setRateOrCost($rateOrCost) - { - $this->rateOrCost = $rateOrCost; - } - public function getRateOrCost() - { - return $this->rateOrCost; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setUnits($units) - { - $this->units = $units; - } - public function getUnits() - { - return $this->units; - } -} - -class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityTag; - public $kind; - - - public function setFloodlightActivityTag($floodlightActivityTag) - { - $this->floodlightActivityTag = $floodlightActivityTag; - } - public function getFloodlightActivityTag() - { - return $this->floodlightActivityTag; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightActivities'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity'; - protected $floodlightActivitiesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setFloodlightActivities($floodlightActivities) - { - $this->floodlightActivities = $floodlightActivities; - } - public function getFloodlightActivities() - { - return $this->floodlightActivities; - } - 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_FloodlightActivity extends Google_Collection -{ - protected $collection_key = 'userDefinedVariableTypes'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $cacheBustingType; - public $countingMethod; - protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; - protected $defaultTagsDataType = 'array'; - public $expectedUrl; - public $floodlightActivityGroupId; - public $floodlightActivityGroupName; - public $floodlightActivityGroupTagString; - public $floodlightActivityGroupType; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $hidden; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $imageTagEnabled; - public $kind; - public $name; - public $notes; - protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag'; - protected $publisherTagsDataType = 'array'; - public $secure; - public $sslCompliant; - public $sslRequired; - public $subaccountId; - public $tagFormat; - public $tagString; - public $userDefinedVariableTypes; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setCacheBustingType($cacheBustingType) - { - $this->cacheBustingType = $cacheBustingType; - } - public function getCacheBustingType() - { - return $this->cacheBustingType; - } - public function setCountingMethod($countingMethod) - { - $this->countingMethod = $countingMethod; - } - public function getCountingMethod() - { - return $this->countingMethod; - } - public function setDefaultTags($defaultTags) - { - $this->defaultTags = $defaultTags; - } - public function getDefaultTags() - { - return $this->defaultTags; - } - public function setExpectedUrl($expectedUrl) - { - $this->expectedUrl = $expectedUrl; - } - public function getExpectedUrl() - { - return $this->expectedUrl; - } - public function setFloodlightActivityGroupId($floodlightActivityGroupId) - { - $this->floodlightActivityGroupId = $floodlightActivityGroupId; - } - public function getFloodlightActivityGroupId() - { - return $this->floodlightActivityGroupId; - } - public function setFloodlightActivityGroupName($floodlightActivityGroupName) - { - $this->floodlightActivityGroupName = $floodlightActivityGroupName; - } - public function getFloodlightActivityGroupName() - { - return $this->floodlightActivityGroupName; - } - public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString) - { - $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString; - } - public function getFloodlightActivityGroupTagString() - { - return $this->floodlightActivityGroupTagString; - } - public function setFloodlightActivityGroupType($floodlightActivityGroupType) - { - $this->floodlightActivityGroupType = $floodlightActivityGroupType; - } - public function getFloodlightActivityGroupType() - { - return $this->floodlightActivityGroupType; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setImageTagEnabled($imageTagEnabled) - { - $this->imageTagEnabled = $imageTagEnabled; - } - public function getImageTagEnabled() - { - return $this->imageTagEnabled; - } - 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 setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPublisherTags($publisherTags) - { - $this->publisherTags = $publisherTags; - } - public function getPublisherTags() - { - return $this->publisherTags; - } - public function setSecure($secure) - { - $this->secure = $secure; - } - public function getSecure() - { - return $this->secure; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagFormat($tagFormat) - { - $this->tagFormat = $tagFormat; - } - public function getTagFormat() - { - return $this->tagFormat; - } - public function setTagString($tagString) - { - $this->tagString = $tagString; - } - public function getTagString() - { - return $this->tagString; - } - public function setUserDefinedVariableTypes($userDefinedVariableTypes) - { - $this->userDefinedVariableTypes = $userDefinedVariableTypes; - } - public function getUserDefinedVariableTypes() - { - return $this->userDefinedVariableTypes; - } -} - -class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - public $tag; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - public $name; - public $subaccountId; - public $tagString; - public $type; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagString($tagString) - { - $this->tagString = $tagString; - } - public function getTagString() - { - return $this->tagString; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightActivityGroups'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup'; - protected $floodlightActivityGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setFloodlightActivityGroups($floodlightActivityGroups) - { - $this->floodlightActivityGroups = $floodlightActivityGroups; - } - public function getFloodlightActivityGroups() - { - return $this->floodlightActivityGroups; - } - 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_FloodlightActivityPublisherDynamicTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickThrough; - public $directorySiteId; - protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; - protected $dynamicTagDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - public $viewThrough; - - - public function setClickThrough($clickThrough) - { - $this->clickThrough = $clickThrough; - } - public function getClickThrough() - { - return $this->clickThrough; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag) - { - $this->dynamicTag = $dynamicTag; - } - public function getDynamicTag() - { - return $this->dynamicTag; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setViewThrough($viewThrough) - { - $this->viewThrough = $viewThrough; - } - public function getViewThrough() - { - return $this->viewThrough; - } -} - -class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection -{ - protected $collection_key = 'userDefinedVariableConfigurations'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $analyticsDataSharingEnabled; - public $exposureToConversionEnabled; - public $firstDayOfWeek; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $naturalSearchConversionAttributionOption; - protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; - protected $omnitureSettingsDataType = ''; - public $sslRequired; - public $standardVariableTypes; - public $subaccountId; - protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; - protected $tagSettingsDataType = ''; - protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; - protected $userDefinedVariableConfigurationsDataType = 'array'; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled) - { - $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled; - } - public function getAnalyticsDataSharingEnabled() - { - return $this->analyticsDataSharingEnabled; - } - public function setExposureToConversionEnabled($exposureToConversionEnabled) - { - $this->exposureToConversionEnabled = $exposureToConversionEnabled; - } - public function getExposureToConversionEnabled() - { - return $this->exposureToConversionEnabled; - } - public function setFirstDayOfWeek($firstDayOfWeek) - { - $this->firstDayOfWeek = $firstDayOfWeek; - } - public function getFirstDayOfWeek() - { - return $this->firstDayOfWeek; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption) - { - $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption; - } - public function getNaturalSearchConversionAttributionOption() - { - return $this->naturalSearchConversionAttributionOption; - } - public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings) - { - $this->omnitureSettings = $omnitureSettings; - } - public function getOmnitureSettings() - { - return $this->omnitureSettings; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setStandardVariableTypes($standardVariableTypes) - { - $this->standardVariableTypes = $standardVariableTypes; - } - public function getStandardVariableTypes() - { - return $this->standardVariableTypes; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings) - { - $this->tagSettings = $tagSettings; - } - public function getTagSettings() - { - return $this->tagSettings; - } - public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) - { - $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; - } - public function getUserDefinedVariableConfigurations() - { - return $this->userDefinedVariableConfigurations; - } -} - -class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightConfigurations'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration'; - protected $floodlightConfigurationsDataType = 'array'; - public $kind; - - - public function setFloodlightConfigurations($floodlightConfigurations) - { - $this->floodlightConfigurations = $floodlightConfigurations; - } - public function getFloodlightConfigurations() - { - return $this->floodlightConfigurations; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } -} - -class Google_Service_Dfareporting_FrequencyCap extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $duration; - public $impressions; - - - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setImpressions($impressions) - { - $this->impressions = $impressions; - } - public function getImpressions() - { - return $this->impressions; - } -} - -class Google_Service_Dfareporting_FsCommand extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $left; - public $positionOption; - public $top; - public $windowHeight; - public $windowWidth; - - - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setPositionOption($positionOption) - { - $this->positionOption = $positionOption; - } - public function getPositionOption() - { - return $this->positionOption; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } - public function setWindowHeight($windowHeight) - { - $this->windowHeight = $windowHeight; - } - public function getWindowHeight() - { - return $this->windowHeight; - } - public function setWindowWidth($windowWidth) - { - $this->windowWidth = $windowWidth; - } - public function getWindowWidth() - { - return $this->windowWidth; - } -} - -class Google_Service_Dfareporting_GeoTargeting extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - protected $citiesType = 'Google_Service_Dfareporting_City'; - protected $citiesDataType = 'array'; - protected $countriesType = 'Google_Service_Dfareporting_Country'; - protected $countriesDataType = 'array'; - public $excludeCountries; - protected $metrosType = 'Google_Service_Dfareporting_Metro'; - protected $metrosDataType = 'array'; - protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; - protected $postalCodesDataType = 'array'; - protected $regionsType = 'Google_Service_Dfareporting_Region'; - protected $regionsDataType = 'array'; - - - public function setCities($cities) - { - $this->cities = $cities; - } - public function getCities() - { - return $this->cities; - } - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setExcludeCountries($excludeCountries) - { - $this->excludeCountries = $excludeCountries; - } - public function getExcludeCountries() - { - return $this->excludeCountries; - } - public function setMetros($metros) - { - $this->metros = $metros; - } - public function getMetros() - { - return $this->metros; - } - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - public function getPostalCodes() - { - return $this->postalCodes; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_Dfareporting_InventoryItem extends Google_Collection -{ - protected $collection_key = 'adSlots'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot'; - protected $adSlotsDataType = 'array'; - public $advertiserId; - public $contentCategoryId; - public $estimatedClickThroughRate; - public $estimatedConversionRate; - public $id; - public $inPlan; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $negotiationChannelId; - public $orderId; - public $placementStrategyId; - protected $pricingType = 'Google_Service_Dfareporting_Pricing'; - protected $pricingDataType = ''; - public $projectId; - public $rfpId; - public $siteId; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdSlots($adSlots) - { - $this->adSlots = $adSlots; - } - public function getAdSlots() - { - return $this->adSlots; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setEstimatedClickThroughRate($estimatedClickThroughRate) - { - $this->estimatedClickThroughRate = $estimatedClickThroughRate; - } - public function getEstimatedClickThroughRate() - { - return $this->estimatedClickThroughRate; - } - public function setEstimatedConversionRate($estimatedConversionRate) - { - $this->estimatedConversionRate = $estimatedConversionRate; - } - public function getEstimatedConversionRate() - { - return $this->estimatedConversionRate; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInPlan($inPlan) - { - $this->inPlan = $inPlan; - } - public function getInPlan() - { - return $this->inPlan; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNegotiationChannelId($negotiationChannelId) - { - $this->negotiationChannelId = $negotiationChannelId; - } - public function getNegotiationChannelId() - { - return $this->negotiationChannelId; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricing(Google_Service_Dfareporting_Pricing $pricing) - { - $this->pricing = $pricing; - } - public function getPricing() - { - return $this->pricing; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRfpId($rfpId) - { - $this->rfpId = $rfpId; - } - public function getRfpId() - { - return $this->rfpId; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection -{ - protected $collection_key = 'inventoryItems'; - protected $internal_gapi_mappings = array( - ); - protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem'; - protected $inventoryItemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setInventoryItems($inventoryItems) - { - $this->inventoryItems = $inventoryItems; - } - public function getInventoryItems() - { - return $this->inventoryItems; - } - 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_KeyValueTargetingExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expression; - - - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } -} - -class Google_Service_Dfareporting_LandingPage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $default; - public $id; - public $kind; - public $name; - public $url; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - 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 setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection -{ - protected $collection_key = 'landingPages'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage'; - protected $landingPagesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLandingPages($landingPages) - { - $this->landingPages = $landingPages; - } - public function getLandingPages() - { - return $this->landingPages; - } -} - -class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $time; - - - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection -{ - protected $collection_key = 'terms'; - protected $internal_gapi_mappings = array( - ); - protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm'; - protected $termsDataType = 'array'; - - - public function setTerms($terms) - { - $this->terms = $terms; - } - public function getTerms() - { - return $this->terms; - } -} - -class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection -{ - protected $collection_key = 'listPopulationClauses'; - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityId; - public $floodlightActivityName; - protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause'; - protected $listPopulationClausesDataType = 'array'; - - - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setFloodlightActivityName($floodlightActivityName) - { - $this->floodlightActivityName = $floodlightActivityName; - } - public function getFloodlightActivityName() - { - return $this->floodlightActivityName; - } - public function setListPopulationClauses($listPopulationClauses) - { - $this->listPopulationClauses = $listPopulationClauses; - } - public function getListPopulationClauses() - { - return $this->listPopulationClauses; - } -} - -class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contains; - public $negation; - public $operator; - public $remarketingListId; - public $type; - public $value; - public $variableFriendlyName; - public $variableName; - - - public function setContains($contains) - { - $this->contains = $contains; - } - public function getContains() - { - return $this->contains; - } - public function setNegation($negation) - { - $this->negation = $negation; - } - public function getNegation() - { - return $this->negation; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setRemarketingListId($remarketingListId) - { - $this->remarketingListId = $remarketingListId; - } - public function getRemarketingListId() - { - return $this->remarketingListId; - } - 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 setVariableFriendlyName($variableFriendlyName) - { - $this->variableFriendlyName = $variableFriendlyName; - } - public function getVariableFriendlyName() - { - return $this->variableFriendlyName; - } - public function setVariableName($variableName) - { - $this->variableName = $variableName; - } - public function getVariableName() - { - return $this->variableName; - } -} - -class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expression; - - - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } -} - -class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickDuration; - public $postImpressionActivitiesDuration; - - - public function setClickDuration($clickDuration) - { - $this->clickDuration = $clickDuration; - } - public function getClickDuration() - { - return $this->clickDuration; - } - public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) - { - $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; - } - public function getPostImpressionActivitiesDuration() - { - return $this->postImpressionActivitiesDuration; - } -} - -class Google_Service_Dfareporting_Metric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - 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_Dfareporting_Metro extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $dmaId; - public $kind; - public $metroCode; - public $name; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setDmaId($dmaId) - { - $this->dmaId = $dmaId; - } - public function getDmaId() - { - return $this->dmaId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetroCode($metroCode) - { - $this->metroCode = $metroCode; - } - public function getMetroCode() - { - return $this->metroCode; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection -{ - protected $collection_key = 'metros'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $metrosType = 'Google_Service_Dfareporting_Metro'; - protected $metrosDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetros($metros) - { - $this->metros = $metros; - } - public function getMetros() - { - return $this->metros; - } -} - -class Google_Service_Dfareporting_MobileCarrier extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $id; - public $kind; - public $name; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - 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_Dfareporting_MobileCarriersListResponse extends Google_Collection -{ - protected $collection_key = 'mobileCarriers'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; - protected $mobileCarriersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } -} - -class Google_Service_Dfareporting_ObjectFilter extends Google_Collection -{ - protected $collection_key = 'objectIds'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $objectIds; - public $status; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setObjectIds($objectIds) - { - $this->objectIds = $objectIds; - } - public function getObjectIds() - { - return $this->objectIds; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Dfareporting_OffsetPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $left; - public $top; - - - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } -} - -class Google_Service_Dfareporting_OmnitureSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $omnitureCostDataEnabled; - public $omnitureIntegrationEnabled; - - - public function setOmnitureCostDataEnabled($omnitureCostDataEnabled) - { - $this->omnitureCostDataEnabled = $omnitureCostDataEnabled; - } - public function getOmnitureCostDataEnabled() - { - return $this->omnitureCostDataEnabled; - } - public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled) - { - $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled; - } - public function getOmnitureIntegrationEnabled() - { - return $this->omnitureIntegrationEnabled; - } -} - -class Google_Service_Dfareporting_OperatingSystem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dartId; - public $desktop; - public $kind; - public $mobile; - public $name; - - - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setDesktop($desktop) - { - $this->desktop = $desktop; - } - public function getDesktop() - { - return $this->desktop; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - public function getMobile() - { - return $this->mobile; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $majorVersion; - public $minorVersion; - public $name; - protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemDataType = ''; - - - 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 setMajorVersion($majorVersion) - { - $this->majorVersion = $majorVersion; - } - public function getMajorVersion() - { - return $this->majorVersion; - } - public function setMinorVersion($minorVersion) - { - $this->minorVersion = $minorVersion; - } - public function getMinorVersion() - { - return $this->minorVersion; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem) - { - $this->operatingSystem = $operatingSystem; - } - public function getOperatingSystem() - { - return $this->operatingSystem; - } -} - -class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection -{ - protected $collection_key = 'operatingSystemVersions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; - protected $operatingSystemVersionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperatingSystemVersions($operatingSystemVersions) - { - $this->operatingSystemVersions = $operatingSystemVersions; - } - public function getOperatingSystemVersions() - { - return $this->operatingSystemVersions; - } -} - -class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection -{ - protected $collection_key = 'operatingSystems'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperatingSystems($operatingSystems) - { - $this->operatingSystems = $operatingSystems; - } - public function getOperatingSystems() - { - return $this->operatingSystems; - } -} - -class Google_Service_Dfareporting_OptimizationActivity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityId; - protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightActivityIdDimensionValueDataType = ''; - public $weight; - - - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue) - { - $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue; - } - public function getFloodlightActivityIdDimensionValue() - { - return $this->floodlightActivityIdDimensionValue; - } - public function setWeight($weight) - { - $this->weight = $weight; - } - public function getWeight() - { - return $this->weight; - } -} - -class Google_Service_Dfareporting_Order extends Google_Collection -{ - protected $collection_key = 'siteNames'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $approverUserProfileIds; - public $buyerInvoiceId; - public $buyerOrganizationName; - public $comments; - protected $contactsType = 'Google_Service_Dfareporting_OrderContact'; - protected $contactsDataType = 'array'; - public $id; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $notes; - public $planningTermId; - public $projectId; - public $sellerOrderId; - public $sellerOrganizationName; - public $siteId; - public $siteNames; - public $subaccountId; - public $termsAndConditions; - - - 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 setApproverUserProfileIds($approverUserProfileIds) - { - $this->approverUserProfileIds = $approverUserProfileIds; - } - public function getApproverUserProfileIds() - { - return $this->approverUserProfileIds; - } - public function setBuyerInvoiceId($buyerInvoiceId) - { - $this->buyerInvoiceId = $buyerInvoiceId; - } - public function getBuyerInvoiceId() - { - return $this->buyerInvoiceId; - } - public function setBuyerOrganizationName($buyerOrganizationName) - { - $this->buyerOrganizationName = $buyerOrganizationName; - } - public function getBuyerOrganizationName() - { - return $this->buyerOrganizationName; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setContacts($contacts) - { - $this->contacts = $contacts; - } - public function getContacts() - { - return $this->contacts; - } - 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPlanningTermId($planningTermId) - { - $this->planningTermId = $planningTermId; - } - public function getPlanningTermId() - { - return $this->planningTermId; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSellerOrderId($sellerOrderId) - { - $this->sellerOrderId = $sellerOrderId; - } - public function getSellerOrderId() - { - return $this->sellerOrderId; - } - public function setSellerOrganizationName($sellerOrganizationName) - { - $this->sellerOrganizationName = $sellerOrganizationName; - } - public function getSellerOrganizationName() - { - return $this->sellerOrganizationName; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteNames($siteNames) - { - $this->siteNames = $siteNames; - } - public function getSiteNames() - { - return $this->siteNames; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTermsAndConditions($termsAndConditions) - { - $this->termsAndConditions = $termsAndConditions; - } - public function getTermsAndConditions() - { - return $this->termsAndConditions; - } -} - -class Google_Service_Dfareporting_OrderContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactInfo; - public $contactName; - public $contactTitle; - public $contactType; - public $signatureUserProfileId; - - - public function setContactInfo($contactInfo) - { - $this->contactInfo = $contactInfo; - } - public function getContactInfo() - { - return $this->contactInfo; - } - public function setContactName($contactName) - { - $this->contactName = $contactName; - } - public function getContactName() - { - return $this->contactName; - } - public function setContactTitle($contactTitle) - { - $this->contactTitle = $contactTitle; - } - public function getContactTitle() - { - return $this->contactTitle; - } - public function setContactType($contactType) - { - $this->contactType = $contactType; - } - public function getContactType() - { - return $this->contactType; - } - public function setSignatureUserProfileId($signatureUserProfileId) - { - $this->signatureUserProfileId = $signatureUserProfileId; - } - public function getSignatureUserProfileId() - { - return $this->signatureUserProfileId; - } -} - -class Google_Service_Dfareporting_OrderDocument extends Google_Collection -{ - protected $collection_key = 'approvedByUserProfileIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $amendedOrderDocumentId; - public $approvedByUserProfileIds; - public $cancelled; - protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createdInfoDataType = ''; - public $effectiveDate; - public $id; - public $kind; - public $orderId; - public $projectId; - public $signed; - public $subaccountId; - public $title; - public $type; - - - 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 setAmendedOrderDocumentId($amendedOrderDocumentId) - { - $this->amendedOrderDocumentId = $amendedOrderDocumentId; - } - public function getAmendedOrderDocumentId() - { - return $this->amendedOrderDocumentId; - } - public function setApprovedByUserProfileIds($approvedByUserProfileIds) - { - $this->approvedByUserProfileIds = $approvedByUserProfileIds; - } - public function getApprovedByUserProfileIds() - { - return $this->approvedByUserProfileIds; - } - public function setCancelled($cancelled) - { - $this->cancelled = $cancelled; - } - public function getCancelled() - { - return $this->cancelled; - } - public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo) - { - $this->createdInfo = $createdInfo; - } - public function getCreatedInfo() - { - return $this->createdInfo; - } - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - public function getEffectiveDate() - { - return $this->effectiveDate; - } - 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 setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSigned($signed) - { - $this->signed = $signed; - } - public function getSigned() - { - return $this->signed; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - 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_Dfareporting_OrderDocumentsListResponse extends Google_Collection -{ - protected $collection_key = 'orderDocuments'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument'; - protected $orderDocumentsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrderDocuments($orderDocuments) - { - $this->orderDocuments = $orderDocuments; - } - public function getOrderDocuments() - { - return $this->orderDocuments; - } -} - -class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection -{ - protected $collection_key = 'orders'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $ordersType = 'Google_Service_Dfareporting_Order'; - protected $ordersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrders($orders) - { - $this->orders = $orders; - } - public function getOrders() - { - return $this->orders; - } -} - -class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'perInteractionDimensions'; - protected $internal_gapi_mappings = array( - ); - protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; - protected $customFloodlightVariablesDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $perInteractionDimensionsDataType = 'array'; - - - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } - public function setCustomFloodlightVariables($customFloodlightVariables) - { - $this->customFloodlightVariables = $customFloodlightVariables; - } - public function getCustomFloodlightVariables() - { - return $this->customFloodlightVariables; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPerInteractionDimensions($perInteractionDimensions) - { - $this->perInteractionDimensions = $perInteractionDimensions; - } - public function getPerInteractionDimensions() - { - return $this->perInteractionDimensions; - } -} - -class Google_Service_Dfareporting_Placement extends Google_Collection -{ - protected $collection_key = 'tagFormats'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $comment; - public $compatibility; - public $contentCategoryId; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $keyName; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $name; - public $paymentApproved; - public $paymentSource; - public $placementGroupId; - protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementGroupIdDimensionValueDataType = ''; - public $placementStrategyId; - protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; - protected $pricingScheduleDataType = ''; - public $primary; - protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $publisherUpdateInfoDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslRequired; - public $status; - public $subaccountId; - public $tagFormats; - protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; - protected $tagSettingDataType = ''; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyName($keyName) - { - $this->keyName = $keyName; - } - public function getKeyName() - { - return $this->keyName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPaymentApproved($paymentApproved) - { - $this->paymentApproved = $paymentApproved; - } - public function getPaymentApproved() - { - return $this->paymentApproved; - } - public function setPaymentSource($paymentSource) - { - $this->paymentSource = $paymentSource; - } - public function getPaymentSource() - { - return $this->paymentSource; - } - public function setPlacementGroupId($placementGroupId) - { - $this->placementGroupId = $placementGroupId; - } - public function getPlacementGroupId() - { - return $this->placementGroupId; - } - public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) - { - $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; - } - public function getPlacementGroupIdDimensionValue() - { - return $this->placementGroupIdDimensionValue; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) - { - $this->pricingSchedule = $pricingSchedule; - } - public function getPricingSchedule() - { - return $this->pricingSchedule; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) - { - $this->publisherUpdateInfo = $publisherUpdateInfo; - } - public function getPublisherUpdateInfo() - { - return $this->publisherUpdateInfo; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagFormats($tagFormats) - { - $this->tagFormats = $tagFormats; - } - public function getTagFormats() - { - return $this->tagFormats; - } - public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) - { - $this->tagSetting = $tagSetting; - } - public function getTagSetting() - { - return $this->tagSetting; - } -} - -class Google_Service_Dfareporting_PlacementAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $active; - public $placementId; - protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementIdDimensionValueDataType = ''; - public $sslRequired; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setPlacementId($placementId) - { - $this->placementId = $placementId; - } - public function getPlacementId() - { - return $this->placementId; - } - public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) - { - $this->placementIdDimensionValue = $placementIdDimensionValue; - } - public function getPlacementIdDimensionValue() - { - return $this->placementIdDimensionValue; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } -} - -class Google_Service_Dfareporting_PlacementGroup extends Google_Collection -{ - protected $collection_key = 'childPlacementIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $childPlacementIds; - public $comment; - public $contentCategoryId; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $placementGroupType; - public $placementStrategyId; - protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; - protected $pricingScheduleDataType = ''; - public $primaryPlacementId; - protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $primaryPlacementIdDimensionValueDataType = ''; - protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; - protected $programmaticSettingDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setChildPlacementIds($childPlacementIds) - { - $this->childPlacementIds = $childPlacementIds; - } - public function getChildPlacementIds() - { - return $this->childPlacementIds; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPlacementGroupType($placementGroupType) - { - $this->placementGroupType = $placementGroupType; - } - public function getPlacementGroupType() - { - return $this->placementGroupType; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) - { - $this->pricingSchedule = $pricingSchedule; - } - public function getPricingSchedule() - { - return $this->pricingSchedule; - } - public function setPrimaryPlacementId($primaryPlacementId) - { - $this->primaryPlacementId = $primaryPlacementId; - } - public function getPrimaryPlacementId() - { - return $this->primaryPlacementId; - } - public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) - { - $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; - } - public function getPrimaryPlacementIdDimensionValue() - { - return $this->primaryPlacementIdDimensionValue; - } - public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) - { - $this->programmaticSetting = $programmaticSetting; - } - public function getProgrammaticSetting() - { - return $this->programmaticSetting; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'placementGroups'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; - protected $placementGroupsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacementGroups($placementGroups) - { - $this->placementGroups = $placementGroups; - } - public function getPlacementGroups() - { - return $this->placementGroups; - } -} - -class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection -{ - protected $collection_key = 'placementStrategies'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; - protected $placementStrategiesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacementStrategies($placementStrategies) - { - $this->placementStrategies = $placementStrategies; - } - public function getPlacementStrategies() - { - return $this->placementStrategies; - } -} - -class Google_Service_Dfareporting_PlacementStrategy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_PlacementTag extends Google_Collection -{ - protected $collection_key = 'tagDatas'; - protected $internal_gapi_mappings = array( - ); - public $placementId; - protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; - protected $tagDatasDataType = 'array'; - - - public function setPlacementId($placementId) - { - $this->placementId = $placementId; - } - public function getPlacementId() - { - return $this->placementId; - } - public function setTagDatas($tagDatas) - { - $this->tagDatas = $tagDatas; - } - public function getTagDatas() - { - return $this->tagDatas; - } -} - -class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection -{ - protected $collection_key = 'placementTags'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; - protected $placementTagsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlacementTags($placementTags) - { - $this->placementTags = $placementTags; - } - public function getPlacementTags() - { - return $this->placementTags; - } -} - -class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection -{ - protected $collection_key = 'placements'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementsType = 'Google_Service_Dfareporting_Placement'; - protected $placementsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacements($placements) - { - $this->placements = $placements; - } - public function getPlacements() - { - return $this->placements; - } -} - -class Google_Service_Dfareporting_PlatformType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_PlatformTypesListResponse extends Google_Collection -{ - protected $collection_key = 'platformTypes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; - protected $platformTypesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlatformTypes($platformTypes) - { - $this->platformTypes = $platformTypes; - } - public function getPlatformTypes() - { - return $this->platformTypes; - } -} - -class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dimensionType = 'Google_Service_Dfareporting_Size'; - protected $dimensionDataType = ''; - protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $offsetDataType = ''; - public $positionType; - public $showAddressBar; - public $showMenuBar; - public $showScrollBar; - public $showStatusBar; - public $showToolBar; - public $title; - - - public function setDimension(Google_Service_Dfareporting_Size $dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setPositionType($positionType) - { - $this->positionType = $positionType; - } - public function getPositionType() - { - return $this->positionType; - } - public function setShowAddressBar($showAddressBar) - { - $this->showAddressBar = $showAddressBar; - } - public function getShowAddressBar() - { - return $this->showAddressBar; - } - public function setShowMenuBar($showMenuBar) - { - $this->showMenuBar = $showMenuBar; - } - public function getShowMenuBar() - { - return $this->showMenuBar; - } - public function setShowScrollBar($showScrollBar) - { - $this->showScrollBar = $showScrollBar; - } - public function getShowScrollBar() - { - return $this->showScrollBar; - } - public function setShowStatusBar($showStatusBar) - { - $this->showStatusBar = $showStatusBar; - } - public function getShowStatusBar() - { - return $this->showStatusBar; - } - public function setShowToolBar($showToolBar) - { - $this->showToolBar = $showToolBar; - } - public function getShowToolBar() - { - return $this->showToolBar; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Dfareporting_PostalCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $countryCode; - public $countryDartId; - public $id; - public $kind; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - 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_Dfareporting_PostalCodesListResponse extends Google_Collection -{ - protected $collection_key = 'postalCodes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; - protected $postalCodesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - public function getPostalCodes() - { - return $this->postalCodes; - } -} - -class Google_Service_Dfareporting_Pricing extends Google_Collection -{ - protected $collection_key = 'flights'; - protected $internal_gapi_mappings = array( - ); - public $capCostType; - public $endDate; - protected $flightsType = 'Google_Service_Dfareporting_Flight'; - protected $flightsDataType = 'array'; - public $groupType; - public $pricingType; - public $startDate; - - - public function setCapCostType($capCostType) - { - $this->capCostType = $capCostType; - } - public function getCapCostType() - { - return $this->capCostType; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFlights($flights) - { - $this->flights = $flights; - } - public function getFlights() - { - return $this->flights; - } - public function setGroupType($groupType) - { - $this->groupType = $groupType; - } - public function getGroupType() - { - return $this->groupType; - } - public function setPricingType($pricingType) - { - $this->pricingType = $pricingType; - } - public function getPricingType() - { - return $this->pricingType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Dfareporting_PricingSchedule extends Google_Collection -{ - protected $collection_key = 'pricingPeriods'; - protected $internal_gapi_mappings = array( - ); - public $capCostOption; - public $disregardOverdelivery; - public $endDate; - public $flighted; - public $floodlightActivityId; - protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; - protected $pricingPeriodsDataType = 'array'; - public $pricingType; - public $startDate; - public $testingStartDate; - - - public function setCapCostOption($capCostOption) - { - $this->capCostOption = $capCostOption; - } - public function getCapCostOption() - { - return $this->capCostOption; - } - public function setDisregardOverdelivery($disregardOverdelivery) - { - $this->disregardOverdelivery = $disregardOverdelivery; - } - public function getDisregardOverdelivery() - { - return $this->disregardOverdelivery; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFlighted($flighted) - { - $this->flighted = $flighted; - } - public function getFlighted() - { - return $this->flighted; - } - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setPricingPeriods($pricingPeriods) - { - $this->pricingPeriods = $pricingPeriods; - } - public function getPricingPeriods() - { - return $this->pricingPeriods; - } - public function setPricingType($pricingType) - { - $this->pricingType = $pricingType; - } - public function getPricingType() - { - return $this->pricingType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setTestingStartDate($testingStartDate) - { - $this->testingStartDate = $testingStartDate; - } - public function getTestingStartDate() - { - return $this->testingStartDate; - } -} - -class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endDate; - public $pricingComment; - public $rateOrCostNanos; - public $startDate; - public $units; - - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setPricingComment($pricingComment) - { - $this->pricingComment = $pricingComment; - } - public function getPricingComment() - { - return $this->pricingComment; - } - public function setRateOrCostNanos($rateOrCostNanos) - { - $this->rateOrCostNanos = $rateOrCostNanos; - } - public function getRateOrCostNanos() - { - return $this->rateOrCostNanos; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setUnits($units) - { - $this->units = $units; - } - public function getUnits() - { - return $this->units; - } -} - -class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection -{ - protected $collection_key = 'traffickerEmails'; - protected $internal_gapi_mappings = array( - ); - public $adxDealIds; - public $insertionOrderId; - public $insertionOrderIdStatus; - public $mediaCostNanos; - public $programmatic; - public $traffickerEmails; - - - public function setAdxDealIds($adxDealIds) - { - $this->adxDealIds = $adxDealIds; - } - public function getAdxDealIds() - { - return $this->adxDealIds; - } - public function setInsertionOrderId($insertionOrderId) - { - $this->insertionOrderId = $insertionOrderId; - } - public function getInsertionOrderId() - { - return $this->insertionOrderId; - } - public function setInsertionOrderIdStatus($insertionOrderIdStatus) - { - $this->insertionOrderIdStatus = $insertionOrderIdStatus; - } - public function getInsertionOrderIdStatus() - { - return $this->insertionOrderIdStatus; - } - public function setMediaCostNanos($mediaCostNanos) - { - $this->mediaCostNanos = $mediaCostNanos; - } - public function getMediaCostNanos() - { - return $this->mediaCostNanos; - } - public function setProgrammatic($programmatic) - { - $this->programmatic = $programmatic; - } - public function getProgrammatic() - { - return $this->programmatic; - } - public function setTraffickerEmails($traffickerEmails) - { - $this->traffickerEmails = $traffickerEmails; - } - public function getTraffickerEmails() - { - return $this->traffickerEmails; - } -} - -class Google_Service_Dfareporting_Project extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $audienceAgeGroup; - public $audienceGender; - public $budget; - public $clientBillingCode; - public $clientName; - public $endDate; - public $id; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $overview; - public $startDate; - public $subaccountId; - public $targetClicks; - public $targetConversions; - public $targetCpaNanos; - public $targetCpcNanos; - public $targetCpmNanos; - public $targetImpressions; - - - 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 setAudienceAgeGroup($audienceAgeGroup) - { - $this->audienceAgeGroup = $audienceAgeGroup; - } - public function getAudienceAgeGroup() - { - return $this->audienceAgeGroup; - } - public function setAudienceGender($audienceGender) - { - $this->audienceGender = $audienceGender; - } - public function getAudienceGender() - { - return $this->audienceGender; - } - public function setBudget($budget) - { - $this->budget = $budget; - } - public function getBudget() - { - return $this->budget; - } - public function setClientBillingCode($clientBillingCode) - { - $this->clientBillingCode = $clientBillingCode; - } - public function getClientBillingCode() - { - return $this->clientBillingCode; - } - public function setClientName($clientName) - { - $this->clientName = $clientName; - } - public function getClientName() - { - return $this->clientName; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverview($overview) - { - $this->overview = $overview; - } - public function getOverview() - { - return $this->overview; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTargetClicks($targetClicks) - { - $this->targetClicks = $targetClicks; - } - public function getTargetClicks() - { - return $this->targetClicks; - } - public function setTargetConversions($targetConversions) - { - $this->targetConversions = $targetConversions; - } - public function getTargetConversions() - { - return $this->targetConversions; - } - public function setTargetCpaNanos($targetCpaNanos) - { - $this->targetCpaNanos = $targetCpaNanos; - } - public function getTargetCpaNanos() - { - return $this->targetCpaNanos; - } - public function setTargetCpcNanos($targetCpcNanos) - { - $this->targetCpcNanos = $targetCpcNanos; - } - public function getTargetCpcNanos() - { - return $this->targetCpcNanos; - } - public function setTargetCpmNanos($targetCpmNanos) - { - $this->targetCpmNanos = $targetCpmNanos; - } - public function getTargetCpmNanos() - { - return $this->targetCpmNanos; - } - public function setTargetImpressions($targetImpressions) - { - $this->targetImpressions = $targetImpressions; - } - public function getTargetImpressions() - { - return $this->targetImpressions; - } -} - -class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection -{ - protected $collection_key = 'projects'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $projectsType = 'Google_Service_Dfareporting_Project'; - protected $projectsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setProjects($projects) - { - $this->projects = $projects; - } - public function getProjects() - { - return $this->projects; - } -} - -class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'reachByFrequencyMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $reachByFrequencyMetricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) - { - $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; - } - public function getReachByFrequencyMetrics() - { - return $this->reachByFrequencyMetrics; - } -} - -class Google_Service_Dfareporting_Recipient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Region extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $kind; - public $name; - public $regionCode; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - 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 setRegionCode($regionCode) - { - $this->regionCode = $regionCode; - } - public function getRegionCode() - { - return $this->regionCode; - } -} - -class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $regionsType = 'Google_Service_Dfareporting_Region'; - protected $regionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_Dfareporting_RemarketingList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $description; - public $id; - public $kind; - public $lifeSpan; - protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule'; - protected $listPopulationRuleDataType = ''; - public $listSize; - public $listSource; - public $name; - public $subaccountId; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - public function getLifeSpan() - { - return $this->lifeSpan; - } - public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule) - { - $this->listPopulationRule = $listPopulationRule; - } - public function getListPopulationRule() - { - return $this->listPopulationRule; - } - public function setListSize($listSize) - { - $this->listSize = $listSize; - } - public function getListSize() - { - return $this->listSize; - } - public function setListSource($listSource) - { - $this->listSource = $listSource; - } - public function getListSource() - { - return $this->listSource; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection -{ - protected $collection_key = 'sharedAdvertiserIds'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $remarketingListId; - public $sharedAccountIds; - public $sharedAdvertiserIds; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRemarketingListId($remarketingListId) - { - $this->remarketingListId = $remarketingListId; - } - public function getRemarketingListId() - { - return $this->remarketingListId; - } - public function setSharedAccountIds($sharedAccountIds) - { - $this->sharedAccountIds = $sharedAccountIds; - } - public function getSharedAccountIds() - { - return $this->sharedAccountIds; - } - public function setSharedAdvertiserIds($sharedAdvertiserIds) - { - $this->sharedAdvertiserIds = $sharedAdvertiserIds; - } - public function getSharedAdvertiserIds() - { - return $this->sharedAdvertiserIds; - } -} - -class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection -{ - protected $collection_key = 'remarketingLists'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList'; - protected $remarketingListsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRemarketingLists($remarketingLists) - { - $this->remarketingLists = $remarketingLists; - } - public function getRemarketingLists() - { - return $this->remarketingLists; - } -} - -class Google_Service_Dfareporting_Report extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; - protected $criteriaDataType = ''; - protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; - protected $crossDimensionReachCriteriaDataType = ''; - protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; - protected $deliveryDataType = ''; - public $etag; - public $fileName; - protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; - protected $floodlightCriteriaDataType = ''; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $name; - public $ownerProfileId; - protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; - protected $pathToConversionCriteriaDataType = ''; - protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; - protected $reachCriteriaDataType = ''; - protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; - protected $scheduleDataType = ''; - public $subAccountId; - public $type; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - 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_ReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'pivotedActivityMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } -} - -class Google_Service_Dfareporting_ReportCriteria extends Google_Collection -{ - protected $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; - - - public function setActivities(Google_Service_Dfareporting_Activities $activities) - { - $this->activities = $activities; - } - public function 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 $collection_key = 'overlapMetricNames'; - protected $internal_gapi_mappings = array( - ); - protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; - protected $breakdownDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $dimension; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - public $metricNames; - public $overlapMetricNames; - public $pivoted; - - - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } - public function 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 -{ - protected $collection_key = 'recipients'; - protected $internal_gapi_mappings = array( - ); - public $emailOwner; - public $emailOwnerDeliveryType; - public $message; - protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; - protected $recipientsDataType = 'array'; - - - 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 $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; - - - public function setCustomRichMediaEvents($customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } - public function 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 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_Report'; - protected $itemsDataType = 'array'; - 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 $collection_key = 'perInteractionDimensions'; - protected $internal_gapi_mappings = array( - ); - protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $activityFiltersDataType = 'array'; - protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; - protected $customFloodlightVariablesDataType = 'array'; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $perInteractionDimensionsDataType = 'array'; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; - - - public function setActivityFilters($activityFilters) - { - $this->activityFilters = $activityFilters; - } - public function 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 setCustomRichMediaEvents($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 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'reachByFrequencyMetricNames'; - protected $internal_gapi_mappings = array( - ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $enableAllDimensionCombinations; - 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 setEnableAllDimensionCombinations($enableAllDimensionCombinations) - { - $this->enableAllDimensionCombinations = $enableAllDimensionCombinations; - } - public function getEnableAllDimensionCombinations() - { - return $this->enableAllDimensionCombinations; - } - 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 -{ - protected $collection_key = 'repeatsOnWeekDays'; - protected $internal_gapi_mappings = array( - ); - 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_ReportsConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $exposureToConversionEnabled; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $reportGenerationTimeZoneId; - - - public function setExposureToConversionEnabled($exposureToConversionEnabled) - { - $this->exposureToConversionEnabled = $exposureToConversionEnabled; - } - public function getExposureToConversionEnabled() - { - return $this->exposureToConversionEnabled; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId) - { - $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId; - } - public function getReportGenerationTimeZoneId() - { - return $this->reportGenerationTimeZoneId; - } -} - -class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customExitUrl; - public $exitId; - public $useCustomExitUrl; - - - public function setCustomExitUrl($customExitUrl) - { - $this->customExitUrl = $customExitUrl; - } - public function getCustomExitUrl() - { - return $this->customExitUrl; - } - public function setExitId($exitId) - { - $this->exitId = $exitId; - } - public function getExitId() - { - return $this->exitId; - } - public function setUseCustomExitUrl($useCustomExitUrl) - { - $this->useCustomExitUrl = $useCustomExitUrl; - } - public function getUseCustomExitUrl() - { - return $this->useCustomExitUrl; - } -} - -class Google_Service_Dfareporting_Site extends Google_Collection -{ - protected $collection_key = 'siteContacts'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $approved; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $keyName; - public $kind; - public $name; - protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact'; - protected $siteContactsDataType = 'array'; - protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; - protected $siteSettingsDataType = ''; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setApproved($approved) - { - $this->approved = $approved; - } - public function getApproved() - { - return $this->approved; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyName($keyName) - { - $this->keyName = $keyName; - } - public function getKeyName() - { - return $this->keyName; - } - 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 setSiteContacts($siteContacts) - { - $this->siteContacts = $siteContacts; - } - public function getSiteContacts() - { - return $this->siteContacts; - } - public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings) - { - $this->siteSettings = $siteSettings; - } - public function getSiteSettings() - { - return $this->siteSettings; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_SiteContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $contactType; - public $email; - public $firstName; - public $id; - public $lastName; - public $phone; - public $title; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setContactType($contactType) - { - $this->contactType = $contactType; - } - public function getContactType() - { - return $this->contactType; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Dfareporting_SiteSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activeViewOptOut; - protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; - protected $creativeSettingsDataType = ''; - public $disableBrandSafeAds; - public $disableNewCookie; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; - protected $tagSettingDataType = ''; - - - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) - { - $this->creativeSettings = $creativeSettings; - } - public function getCreativeSettings() - { - return $this->creativeSettings; - } - public function setDisableBrandSafeAds($disableBrandSafeAds) - { - $this->disableBrandSafeAds = $disableBrandSafeAds; - } - public function getDisableBrandSafeAds() - { - return $this->disableBrandSafeAds; - } - public function setDisableNewCookie($disableNewCookie) - { - $this->disableNewCookie = $disableNewCookie; - } - public function getDisableNewCookie() - { - return $this->disableNewCookie; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) - { - $this->tagSetting = $tagSetting; - } - public function getTagSetting() - { - return $this->tagSetting; - } -} - -class Google_Service_Dfareporting_SitesListResponse extends Google_Collection -{ - protected $collection_key = 'sites'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $sitesType = 'Google_Service_Dfareporting_Site'; - protected $sitesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSites($sites) - { - $this->sites = $sites; - } - public function getSites() - { - return $this->sites; - } -} - -class Google_Service_Dfareporting_Size extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $iab; - public $id; - public $kind; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setIab($iab) - { - $this->iab = $iab; - } - public function getIab() - { - return $this->iab; - } - 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 setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Dfareporting_SizesListResponse extends Google_Collection -{ - protected $collection_key = 'sizes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $sizesType = 'Google_Service_Dfareporting_Size'; - protected $sizesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSizes($sizes) - { - $this->sizes = $sizes; - } - public function getSizes() - { - return $this->sizes; - } -} - -class Google_Service_Dfareporting_SortedDimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Subaccount extends Google_Collection -{ - protected $collection_key = 'availablePermissionIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $availablePermissionIds; - public $id; - public $kind; - public $name; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAvailablePermissionIds($availablePermissionIds) - { - $this->availablePermissionIds = $availablePermissionIds; - } - public function getAvailablePermissionIds() - { - return $this->availablePermissionIds; - } - 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_Dfareporting_SubaccountsListResponse extends Google_Collection -{ - protected $collection_key = 'subaccounts'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount'; - protected $subaccountsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSubaccounts($subaccounts) - { - $this->subaccounts = $subaccounts; - } - public function getSubaccounts() - { - return $this->subaccounts; - } -} - -class Google_Service_Dfareporting_TagData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adId; - public $clickTag; - public $creativeId; - public $format; - public $impressionTag; - - - public function setAdId($adId) - { - $this->adId = $adId; - } - public function getAdId() - { - return $this->adId; - } - public function setClickTag($clickTag) - { - $this->clickTag = $clickTag; - } - public function getClickTag() - { - return $this->clickTag; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setImpressionTag($impressionTag) - { - $this->impressionTag = $impressionTag; - } - public function getImpressionTag() - { - return $this->impressionTag; - } -} - -class Google_Service_Dfareporting_TagSetting extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $additionalKeyValues; - public $includeClickThroughUrls; - public $includeClickTracking; - public $keywordOption; - - - public function setAdditionalKeyValues($additionalKeyValues) - { - $this->additionalKeyValues = $additionalKeyValues; - } - public function getAdditionalKeyValues() - { - return $this->additionalKeyValues; - } - public function setIncludeClickThroughUrls($includeClickThroughUrls) - { - $this->includeClickThroughUrls = $includeClickThroughUrls; - } - public function getIncludeClickThroughUrls() - { - return $this->includeClickThroughUrls; - } - public function setIncludeClickTracking($includeClickTracking) - { - $this->includeClickTracking = $includeClickTracking; - } - public function getIncludeClickTracking() - { - return $this->includeClickTracking; - } - public function setKeywordOption($keywordOption) - { - $this->keywordOption = $keywordOption; - } - public function getKeywordOption() - { - return $this->keywordOption; - } -} - -class Google_Service_Dfareporting_TagSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dynamicTagEnabled; - public $imageTagEnabled; - - - public function setDynamicTagEnabled($dynamicTagEnabled) - { - $this->dynamicTagEnabled = $dynamicTagEnabled; - } - public function getDynamicTagEnabled() - { - return $this->dynamicTagEnabled; - } - public function setImageTagEnabled($imageTagEnabled) - { - $this->imageTagEnabled = $imageTagEnabled; - } - public function getImageTagEnabled() - { - return $this->imageTagEnabled; - } -} - -class Google_Service_Dfareporting_TargetWindow extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customHtml; - public $targetWindowOption; - - - public function setCustomHtml($customHtml) - { - $this->customHtml = $customHtml; - } - public function getCustomHtml() - { - return $this->customHtml; - } - public function setTargetWindowOption($targetWindowOption) - { - $this->targetWindowOption = $targetWindowOption; - } - public function getTargetWindowOption() - { - return $this->targetWindowOption; - } -} - -class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $description; - public $id; - public $kind; - public $lifeSpan; - public $listSize; - public $listSource; - public $name; - public $subaccountId; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - public function getLifeSpan() - { - return $this->lifeSpan; - } - public function setListSize($listSize) - { - $this->listSize = $listSize; - } - public function getListSize() - { - return $this->listSize; - } - public function setListSource($listSource) - { - $this->listSource = $listSource; - } - public function getListSource() - { - return $this->listSource; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection -{ - protected $collection_key = 'targetableRemarketingLists'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList'; - protected $targetableRemarketingListsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTargetableRemarketingLists($targetableRemarketingLists) - { - $this->targetableRemarketingLists = $targetableRemarketingLists; - } - public function getTargetableRemarketingLists() - { - return $this->targetableRemarketingLists; - } -} - -class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection -{ - protected $collection_key = 'platformTypes'; - protected $internal_gapi_mappings = array( - ); - protected $browsersType = 'Google_Service_Dfareporting_Browser'; - protected $browsersDataType = 'array'; - protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; - protected $connectionTypesDataType = 'array'; - protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; - protected $mobileCarriersDataType = 'array'; - protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; - protected $operatingSystemVersionsDataType = 'array'; - protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemsDataType = 'array'; - protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; - protected $platformTypesDataType = 'array'; - - - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } - public function getBrowsers() - { - return $this->browsers; - } - public function setConnectionTypes($connectionTypes) - { - $this->connectionTypes = $connectionTypes; - } - public function getConnectionTypes() - { - return $this->connectionTypes; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } - public function setOperatingSystemVersions($operatingSystemVersions) - { - $this->operatingSystemVersions = $operatingSystemVersions; - } - public function getOperatingSystemVersions() - { - return $this->operatingSystemVersions; - } - public function setOperatingSystems($operatingSystems) - { - $this->operatingSystems = $operatingSystems; - } - public function getOperatingSystems() - { - return $this->operatingSystems; - } - public function setPlatformTypes($platformTypes) - { - $this->platformTypes = $platformTypes; - } - public function getPlatformTypes() - { - return $this->platformTypes; - } -} - -class Google_Service_Dfareporting_ThirdPartyTrackingUrl extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $thirdPartyUrlType; - public $url; - - - public function setThirdPartyUrlType($thirdPartyUrlType) - { - $this->thirdPartyUrlType = $thirdPartyUrlType; - } - public function getThirdPartyUrlType() - { - return $this->thirdPartyUrlType; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataType; - public $reportName; - public $variableType; - - - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - public function getDataType() - { - return $this->dataType; - } - public function setReportName($reportName) - { - $this->reportName = $reportName; - } - public function getReportName() - { - return $this->reportName; - } - public function setVariableType($variableType) - { - $this->variableType = $variableType; - } - public function getVariableType() - { - return $this->variableType; - } -} - -class Google_Service_Dfareporting_UserProfile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_UserRole extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $defaultUserRole; - public $id; - public $kind; - public $name; - public $parentUserRoleId; - protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission'; - protected $permissionsDataType = 'array'; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setDefaultUserRole($defaultUserRole) - { - $this->defaultUserRole = $defaultUserRole; - } - public function getDefaultUserRole() - { - return $this->defaultUserRole; - } - 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 setParentUserRoleId($parentUserRoleId) - { - $this->parentUserRoleId = $parentUserRoleId; - } - public function getParentUserRoleId() - { - return $this->parentUserRoleId; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_UserRolePermission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $availability; - public $id; - public $kind; - public $name; - public $permissionGroupId; - - - public function setAvailability($availability) - { - $this->availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - 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 setPermissionGroupId($permissionGroupId) - { - $this->permissionGroupId = $permissionGroupId; - } - public function getPermissionGroupId() - { - return $this->permissionGroupId; - } -} - -class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'userRolePermissionGroups'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup'; - protected $userRolePermissionGroupsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserRolePermissionGroups($userRolePermissionGroups) - { - $this->userRolePermissionGroups = $userRolePermissionGroups; - } - public function getUserRolePermissionGroups() - { - return $this->userRolePermissionGroups; - } -} - -class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection -{ - protected $collection_key = 'userRolePermissions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission'; - protected $userRolePermissionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserRolePermissions($userRolePermissions) - { - $this->userRolePermissions = $userRolePermissions; - } - public function getUserRolePermissions() - { - return $this->userRolePermissions; - } -} - -class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection -{ - protected $collection_key = 'userRoles'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $userRolesType = 'Google_Service_Dfareporting_UserRole'; - protected $userRolesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setUserRoles($userRoles) - { - $this->userRoles = $userRoles; - } - public function getUserRoles() - { - return $this->userRoles; - } -} From 6bd358c5a7e5ec84c4751f32b8a3d666d8ab1d24 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 28 Jun 2015 06:00:45 -0700 Subject: [PATCH 0855/1274] Added service YouTube.php --- src/Google/Service/YouTube.php | 12933 +++++++++++++++++++++++++++++++ 1 file changed, 12933 insertions(+) create mode 100644 src/Google/Service/YouTube.php diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php new file mode 100644 index 000000000..386936097 --- /dev/null +++ b/src/Google/Service/YouTube.php @@ -0,0 +1,12933 @@ + + * 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 +{ + /** Manage your YouTube account. */ + const YOUTUBE = + "https://www.googleapis.com/auth/youtube"; + /** Manage your YouTube account. */ + const YOUTUBE_FORCE_SSL = + "https://www.googleapis.com/auth/youtube.force-ssl"; + /** View your YouTube account. */ + const YOUTUBE_READONLY = + "https://www.googleapis.com/auth/youtube.readonly"; + /** Manage your YouTube videos. */ + const YOUTUBE_UPLOAD = + "https://www.googleapis.com/auth/youtube.upload"; + /** View and manage your assets and associated content on YouTube. */ + const YOUTUBEPARTNER = + "https://www.googleapis.com/auth/youtubepartner"; + /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ + const YOUTUBEPARTNER_CHANNEL_AUDIT = + "https://www.googleapis.com/auth/youtubepartner-channel-audit"; + + public $activities; + public $captions; + public $channelBanners; + public $channelSections; + public $channels; + public $commentThreads; + public $comments; + public $guideCategories; + public $i18nLanguages; + public $i18nRegions; + public $liveBroadcasts; + public $liveStreams; + public $playlistItems; + public $playlists; + public $search; + public $subscriptions; + public $thumbnails; + public $videoAbuseReportReasons; + public $videoCategories; + public $videos; + public $watermarks; + + + /** + * Constructs the internal representation of the YouTube service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'youtube/v3/'; + $this->version = 'v3'; + $this->serviceName = 'youtube'; + + $this->activities = new Google_Service_YouTube_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'activities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'home' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->captions = new Google_Service_YouTube_Captions_Resource( + $this, + $this->serviceName, + 'captions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'captions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'download' => array( + 'path' => 'captions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tfmt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tlang' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'captions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'captions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'captions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( + $this, + $this->serviceName, + 'channelBanners', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'channelBanners/insert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( + $this, + $this->serviceName, + 'channelSections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'channelSections', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'channelSections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'channelSections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'channelSections', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_YouTube_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'channels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'managedByMe' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forUsername' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'categoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'channels', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( + $this, + $this->serviceName, + 'commentThreads', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'shareOnGooglePlus' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'searchTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allThreadsRelatedToChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_YouTube_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'comments', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'markAsSpam' => array( + 'path' => 'comments/markAsSpam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setModerationStatus' => array( + 'path' => 'comments/setModerationStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'banAuthor' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'comments', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( + $this, + $this->serviceName, + 'guideCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'guideCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( + $this, + $this->serviceName, + 'i18nLanguages', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nLanguages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( + $this, + $this->serviceName, + 'i18nRegions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nRegions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( + $this, + $this->serviceName, + 'liveBroadcasts', + array( + 'methods' => array( + 'bind' => array( + 'path' => 'liveBroadcasts/bind', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'streamId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'control' => array( + 'path' => 'liveBroadcasts/control', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'displaySlate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offsetTimeMs' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'walltime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'transition' => array( + 'path' => 'liveBroadcasts/transition', + 'httpMethod' => 'POST', + 'parameters' => array( + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( + $this, + $this->serviceName, + 'liveStreams', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( + $this, + $this->serviceName, + 'playlistItems', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'playlistId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->playlists = new Google_Service_YouTube_Playlists_Resource( + $this, + $this->serviceName, + 'playlists', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlists', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'playlists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'playlists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'playlists', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->search = new Google_Service_YouTube_Search_Resource( + $this, + $this->serviceName, + 'search', + array( + 'methods' => array( + 'list' => array( + 'path' => 'search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'eventType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forDeveloper' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'videoSyndicated' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCaption' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forContentOwner' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'location' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locationRadius' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'topicId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDimension' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoLicense' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'relatedToVideoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDefinition' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDuration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'relevanceLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forMine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'safeSearch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoEmbeddable' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'forChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( + $this, + $this->serviceName, + 'thumbnails', + array( + 'methods' => array( + 'set' => array( + 'path' => 'thumbnails/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( + $this, + $this->serviceName, + 'videoAbuseReportReasons', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoAbuseReportReasons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( + $this, + $this->serviceName, + 'videoCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videos = new Google_Service_YouTube_Videos_Resource( + $this, + $this->serviceName, + 'videos', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'videos', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getRating' => array( + 'path' => 'videos/getRating', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'videos', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stabilize' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'notifySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'autoLevels' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'videos', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'chart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'myRating' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'rate' => array( + 'path' => 'videos/rate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'rating' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'reportAbuse' => array( + 'path' => 'videos/reportAbuse', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'videos', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( + $this, + $this->serviceName, + 'watermarks', + array( + 'methods' => array( + 'set' => array( + 'path' => 'watermarks/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'unset' => array( + 'path' => 'watermarks/unset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "activities" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.) + * + * Note: Even though an activity resource can contain information about actions + * like a user rating a video or marking a video as a favorite, you need to use + * other API methods to generate those activity resources. For example, you + * would use the API's videos.rate() method to rate a video and the + * playlistItems.insert() method to mark a video as a favorite. + * (activities.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Activity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Activity + */ + public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); + } + + /** + * Returns a list of channel activity events that match the request criteria. + * For example, you can retrieve events associated with a particular channel, + * events associated with the user's subscriptions and Google+ friends, or the + * YouTube home page feed, which is customized for each user. + * (activities.listActivities) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more activity resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in an + * activity resource, the snippet property contains other properties that + * identify the type of activity, a display title for the activity, and so + * forth. If you set part=snippet, the API response will also contain all of + * those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return results for the specified country. The parameter value is an ISO + * 3166-1 alpha-2 country code. YouTube uses this value when the authorized + * user's previous activity on YouTube does not provide enough information to + * generate the activity feed. + * @opt_param string publishedBefore The publishedBefore parameter specifies the + * date and time before which an activity must have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be excluded + * from the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @opt_param string channelId The channelId parameter specifies a unique + * YouTube channel ID. The API will then return a list of that channel's + * activities. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's activities. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool home Set this parameter's value to true to retrieve the + * activity feed that displays on the YouTube home page for the currently + * authenticated user. + * @opt_param string publishedAfter The publishedAfter parameter specifies the + * earliest date and time that an activity could have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be included + * in the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @return Google_Service_YouTube_ActivityListResponse + */ + public function listActivities($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); + } +} + +/** + * The "captions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $captions = $youtubeService->captions; + * + */ +class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource +{ + + /** + * Deletes a specified caption track. (captions.delete) + * + * @param string $id The id parameter identifies the caption track that is being + * deleted. The value is a caption track ID as identified by the id property in + * a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Downloads a caption track. The caption track is returned in its original + * format unless the request specifies a value for the tfmt parameter and in its + * original language unless the request specifies a value for the tlang + * parameter. (captions.download) + * + * @param string $id The id parameter identifies the caption track that is being + * retrieved. The value is a caption track ID as identified by the id property + * in a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. + */ + public function download($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('download', array($params)); + } + + /** + * Uploads a caption track. (captions.insert) + * + * @param string $part The part parameter specifies the caption resource parts + * that the API response will include. Set the parameter value to snippet. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync The sync parameter indicates whether YouTube should + * automatically synchronize the caption file with the audio track of the video. + * If you set the value to true, YouTube will disregard any time codes that are + * in the uploaded caption file and generate new time codes for the captions. + * + * You should set the sync parameter to true if you are uploading a transcript, + * which has no time codes, or if you suspect the time codes in your file are + * incorrect and want YouTube to try to fix them. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); + } + + /** + * Returns a list of caption tracks that are associated with a specified video. + * Note that the API response does not contain the actual captions and that the + * captions.download method provides the ability to retrieve a caption track. + * (captions.listCaptions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more caption resource parts that the API response will include. The + * part names that you can include in the parameter value are id and snippet. + * @param string $videoId The videoId parameter specifies the YouTube video ID + * of the video for which the API should return caption tracks. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string id The id parameter specifies a comma-separated list of IDs + * that identify the caption resources that should be retrieved. Each ID must + * identify a caption track associated with the specified video. + * @return Google_Service_YouTube_CaptionListResponse + */ + public function listCaptions($part, $videoId, $optParams = array()) + { + $params = array('part' => $part, 'videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); + } + + /** + * Updates a caption track. When updating a caption track, you can change the + * track's draft status, upload a new caption file for the track, or both. + * (captions.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. Set the property value to + * snippet if you are updating the track's draft status. Otherwise, set the + * property value to id. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync Note: The API server only processes the parameter value + * if the request contains an updated caption file. + * + * The sync parameter indicates whether YouTube should automatically synchronize + * the caption file with the audio track of the video. If you set the value to + * true, YouTube will automatically synchronize the caption track with the audio + * track. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Caption"); + } +} + +/** + * The "channelBanners" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $channelBanners = $youtubeService->channelBanners; + * + */ +class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource +{ + + /** + * Uploads a channel banner image to YouTube. This method represents the first + * two steps in a three-step process to update the banner image for a channel: + * + * - Call the channelBanners.insert method to upload the binary image data to + * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 + * pixels. - Extract the url property's value from the response that the API + * returns for step 1. - Call the channels.update method to update the channel's + * branding settings. Set the brandingSettings.image.bannerExternalUrl + * property's value to the URL obtained in step 2. (channelBanners.insert) + * + * @param Google_ChannelBannerResource $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelBannerResource + */ + public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); + } +} + +/** + * The "channelSections" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $channelSections = $youtubeService->channelSections; + * + */ +class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource +{ + + /** + * Deletes a channelSection. (channelSections.delete) + * + * @param string $id The id parameter specifies the YouTube channelSection ID + * for the resource that is being deleted. In a channelSection resource, the id + * property specifies the YouTube channelSection ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a channelSection for the authenticated user's channel. + * (channelSections.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelSection + */ + public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); + } + + /** + * Returns channelSection resources that match the API request criteria. + * (channelSections.listChannelSections) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more channelSection resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * channelSection resource, the snippet property contains other properties, such + * as a display title for the channelSection. If you set part=snippet, the API + * response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's channelSections. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. + * @opt_param string hl The hl parameter indicates that the snippet.localized + * property values in the returned channelSection resources should be in the + * specified language if localized values for that language are available. For + * example, if the API request specifies hl=de, the snippet.localized properties + * in the API response will contain German titles if German titles are + * available. Channel owners can provide localized channel section titles using + * either the channelSections.insert or channelSections.update method. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In + * a channelSection resource, the id property specifies the YouTube + * channelSection ID. + * @return Google_Service_YouTube_ChannelSectionListResponse + */ + public function listChannelSections($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); + } + + /** + * Update a channelSection. (channelSections.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelSection + */ + public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); + } +} + +/** + * The "channels" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listChannels) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more channel resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a channel + * resource, the contentDetails property contains other properties, such as the + * uploads properties. As such, if you set part=contentDetails, the API response + * will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param bool managedByMe Note: This parameter is intended exclusively for + * YouTube content partners. + * + * Set this parameter's value to true to instruct the API to only return + * channels managed by the content owner that the onBehalfOfContentOwner + * parameter specifies. The user must be authenticated as a CMS account linked + * to the specified content owner and onBehalfOfContentOwner must be provided. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string forUsername The forUsername parameter specifies a YouTube + * username, thereby requesting the channel associated with that username. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return channels owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel ID(s) for the resource(s) that are being retrieved. In a + * channel resource, the id property specifies the channel's YouTube channel ID. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Use the subscriptions.list method and its + * mySubscribers parameter to retrieve a list of subscribers to the + * authenticated user's channel. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the brandingSettings + * part. + * @opt_param string categoryId The categoryId parameter specifies a YouTube + * guide category, thereby requesting YouTube channels associated with that + * category. + * @return Google_Service_YouTube_ChannelListResponse + */ + public function listChannels($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); + } + + /** + * Updates a channel's metadata. Note that this method currently only supports + * updates to the channel resource's brandingSettings and invideoPromotion + * objects and their child properties. (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 API currently only allows the parameter value to be set to either + * brandingSettings or invideoPromotion. (You cannot update both of those parts + * with a single request.) + * + * Note that this method overrides the existing values for all of the mutable + * properties that are contained in any parts that the parameter value + * specifies. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. + * @return Google_Service_YouTube_Channel + */ + public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Channel"); + } +} + +/** + * The "commentThreads" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $commentThreads = $youtubeService->commentThreads; + * + */ +class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource +{ + + /** + * Creates a new top-level comment. To add a reply to an existing comment, use + * the comments.insert method instead. (commentThreads.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates + * whether the top-level comment and any replies that are made to that comment + * should also be posted to the author's Google+ profile. + * @return Google_Service_YouTube_CommentThread + */ + public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); + } + + /** + * Returns a list of comment threads that match the API request parameters. + * (commentThreads.listCommentThreads) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more commentThread resource properties that the API response will + * include. + * @param array $optParams Optional parameters. + * + * @opt_param string searchTerms The searchTerms parameter instructs the API to + * limit the API response to only contain comments that contain the specified + * search terms. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string allThreadsRelatedToChannelId The + * allThreadsRelatedToChannelId parameter instructs the API to return all + * comment threads associated with the specified channel. The response can + * include comments about the channel or about the channel's videos. + * @opt_param string channelId The channelId parameter instructs the API to + * return comment threads containing comments about the specified channel. (The + * response will not include comments left on videos that the channel uploaded.) + * @opt_param string videoId The videoId parameter instructs the API to return + * comment threads associated with the specified video ID. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. + * @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 property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string moderationStatus Set this parameter to limit the returned + * comment threads to a particular moderation state. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string textFormat Set this parameter's value to html or plainText + * to instruct the API to return the comments left by users in html formatted or + * in plain text. + * @opt_param string order The order parameter specifies the order in which the + * API response should list comment threads. Valid values are: - time - Comment + * threads are ordered by time. This is the default behavior. - relevance - + * Comment threads are ordered by relevance.Note: This parameter is not + * supported for use in conjunction with the id parameter. + * @return Google_Service_YouTube_CommentThreadListResponse + */ + public function listCommentThreads($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); + } + + /** + * Modifies the top-level comment in a comment thread. (commentThreads.update) + * + * @param string $part The part parameter specifies a comma-separated list of + * commentThread resource properties that the API response will include. You + * must at least include the snippet part in the parameter value since that part + * contains all of the properties that the API request can update. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_CommentThread + */ + public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); + } +} + +/** + * The "comments" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $comments = $youtubeService->comments; + * + */ +class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a comment. (comments.delete) + * + * @param string $id The id parameter specifies the comment 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); + return $this->call('delete', array($params)); + } + + /** + * Creates a reply to an existing comment. Note: To create a top-level comment, + * use the commentThreads.insert method. (comments.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); + } + + /** + * Returns a list of comments that match the API request parameters. + * (comments.listComments) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more comment resource properties that the API response will include. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string parentId The parentId parameter specifies the ID of the + * comment for which replies should be retrieved. + * + * Note: YouTube currently supports replies only for top-level comments. + * However, replies to replies may be supported in the future. + * @opt_param string textFormat This parameter indicates whether the API should + * return comments formatted as HTML or as plain text. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment IDs for the resources that are being retrieved. In a comment + * resource, the id property specifies the comment's ID. + * @return Google_Service_YouTube_CommentListResponse + */ + public function listComments($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); + } + + /** + * Expresses the caller's opinion that one or more comments should be flagged as + * spam. (comments.markAsSpam) + * + * @param string $id The id parameter specifies a comma-separated list of IDs of + * comments that the caller believes should be classified as spam. + * @param array $optParams Optional parameters. + */ + public function markAsSpam($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params)); + } + + /** + * Sets the moderation status of one or more comments. The API request must be + * authorized by the owner of the channel or video associated with the comments. + * (comments.setModerationStatus) + * + * @param string $id The id parameter specifies a comma-separated list of IDs + * that identify the comments for which you are updating the moderation status. + * @param string $moderationStatus Identifies the new moderation status of the + * specified comments. + * @param array $optParams Optional parameters. + * + * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you + * want to automatically reject any additional comments written by the comment's + * author. Set the parameter value to true to ban the author. + * + * Note: This parameter is only valid if the moderationStatus parameter is also + * set to rejected. + */ + public function setModerationStatus($id, $moderationStatus, $optParams = array()) + { + $params = array('id' => $id, 'moderationStatus' => $moderationStatus); + $params = array_merge($params, $optParams); + return $this->call('setModerationStatus', array($params)); + } + + /** + * Modifies a comment. (comments.update) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. You must at least include the snippet part in the + * parameter value since that part contains all of the properties that the API + * request can update. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Comment"); + } +} + +/** + * The "guideCategories" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listGuideCategories) + * + * @param string $part The part parameter specifies the guideCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of guide categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel category ID(s) for the resource(s) that are being retrieved. + * In a guideCategory resource, the id property specifies the YouTube channel + * category ID. + * @opt_param string hl The hl parameter specifies the language that will be + * used for text values in the API response. + * @return Google_Service_YouTube_GuideCategoryListResponse + */ + public function listGuideCategories($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); + } +} + +/** + * The "i18nLanguages" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nLanguages = $youtubeService->i18nLanguages; + * + */ +class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of application languages that the YouTube website supports. + * (i18nLanguages.listI18nLanguages) + * + * @param string $part The part parameter specifies the i18nLanguage resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nLanguageListResponse + */ + public function listI18nLanguages($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); + } +} + +/** + * The "i18nRegions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nRegions = $youtubeService->i18nRegions; + * + */ +class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of content regions that the YouTube website supports. + * (i18nRegions.listI18nRegions) + * + * @param string $part The part parameter specifies the i18nRegion resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nRegionListResponse + */ + public function listI18nRegions($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); + } +} + +/** + * The "liveBroadcasts" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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, + * though a video stream may be bound to more than one broadcast. + * (liveBroadcasts.bind) + * + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is being bound to a video stream. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string streamId The streamId parameter specifies the unique ID of + * the video stream that is being bound to a broadcast. If this parameter is + * omitted, the API will remove any existing binding between the broadcast and a + * video stream. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function bind($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Controls the settings for a slate that can be displayed in the broadcast + * stream. (liveBroadcasts.control) + * + * @param string $id The id parameter specifies the YouTube live broadcast ID + * that uniquely identifies the broadcast in which the slate is being updated. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool displaySlate The displaySlate parameter specifies whether the + * slate is being enabled or disabled. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a + * positive time offset when the specified slate change will occur. The value is + * measured in milliseconds from the beginning of the broadcast's monitor + * stream, which is the time that the testing phase for the broadcast began. + * Even though it is specified in milliseconds, the value is actually an + * approximation, and YouTube completes the requested action as closely as + * possible to that time. + * + * If you do not specify a value for this parameter, then YouTube performs the + * action as soon as possible. See the Getting started guide for more details. + * + * Important: You should only specify a value for this parameter if your + * broadcast stream is delayed. + * @opt_param string walltime The walltime parameter specifies the wall clock + * time at which the specified slate change will occur. The value is specified + * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function control($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Deletes a broadcast. (liveBroadcasts.delete) + * + * @param string $id The id parameter specifies the YouTube live broadcast ID + * for the resource that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a broadcast. (liveBroadcasts.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Returns a list of YouTube broadcasts that match the API request parameters. + * (liveBroadcasts.listLiveBroadcasts) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string broadcastStatus The broadcastStatus parameter filters the + * API response to only include broadcasts with the specified status. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return broadcasts owned by the authenticated user. Set the parameter + * value to true to only retrieve your own broadcasts. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube broadcast IDs that identify the broadcasts being retrieved. In a + * liveBroadcast resource, the id property specifies the broadcast's ID. + * @return Google_Service_YouTube_LiveBroadcastListResponse + */ + public function listLiveBroadcasts($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); + } + + /** + * Changes the status of a YouTube live broadcast and initiates any processes + * associated with the new status. For example, when you transition a + * broadcast's status to testing, YouTube starts to transmit video to that + * broadcast's monitor stream. Before calling this method, you should confirm + * that the value of the status.streamStatus property for the stream bound to + * your broadcast is active. (liveBroadcasts.transition) + * + * @param string $broadcastStatus The broadcastStatus parameter identifies the + * state to which the broadcast is changing. Note that to transition a broadcast + * to either the testing or live state, the status.streamStatus must be active + * for the stream that the broadcast is bound to. + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is transitioning to another status. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function transition($broadcastStatus, $id, $part, $optParams = array()) + { + $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Updates a broadcast. For example, you could modify the broadcast settings + * defined in the liveBroadcast resource's contentDetails object. + * (liveBroadcasts.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a broadcast's privacy status is defined in the status + * part. As such, if your request is updating a private or unlisted broadcast, + * and the request's part parameter value includes the status part, the + * broadcast's privacy setting will be updated to whatever value the request + * body specifies. If the request body does not specify a value, the existing + * privacy setting will be removed and the broadcast will revert to the default + * privacy setting. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); + } +} + +/** + * The "liveStreams" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a video stream. The stream enables you to send your video to YouTube, + * which can then broadcast the video to your audience. (liveStreams.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveStream + */ + public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); + } + + /** + * Returns a list of video streams that match the API request parameters. + * (liveStreams.listLiveStreams) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveStream resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, cdn, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return streams owned by the authenticated user. Set the parameter value + * to true to only retrieve your own streams. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube stream IDs that identify the streams being retrieved. In a liveStream + * resource, the id property specifies the stream's ID. + * @return Google_Service_YouTube_LiveStreamListResponse + */ + public function listLiveStreams($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); + } + + /** + * Updates a video stream. If the properties that you want to change cannot be + * updated, then you need to create a new stream with the proper settings. + * (liveStreams.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. If the request body does not specify a value for a mutable + * property, the existing value for that property will be removed. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveStream + */ + public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); + } +} + +/** + * The "playlistItems" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Adds a resource to a playlist. (playlistItems.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_PlaylistItem + */ + public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); + } + + /** + * Returns a collection of playlist items that match the API request parameters. + * You can retrieve all of the playlist items in a specified playlist or + * retrieve one or more playlist items by their unique IDs. + * (playlistItems.listPlaylistItems) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlistItem resource properties that the API response will + * include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * playlistItem resource, the snippet property contains numerous fields, + * including the title, description, position, and resourceId properties. As + * such, if you set part=snippet, the API response will contain all of those + * properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string playlistId The playlistId parameter specifies the unique ID + * of the playlist for which you want to retrieve playlist items. Note that even + * though this is an optional parameter, every request to retrieve playlist + * items must specify a value for either the id parameter or the playlistId + * parameter. + * @opt_param string videoId The videoId parameter specifies that the request + * should return only the playlist items that contain the specified video. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of one + * or more unique playlist item IDs. + * @return Google_Service_YouTube_PlaylistItemListResponse + */ + public function listPlaylistItems($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); + } + + /** + * Modifies a playlist item. For example, you could update the item's position + * in the playlist. (playlistItems.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a playlist item can specify a start time and end + * time, which identify the times portion of the video that should play when + * users watch the video in the playlist. If your request is updating a playlist + * item that sets these values, and the request's part parameter value includes + * the contentDetails part, the playlist item's start and end times will be + * updated to whatever value the request body specifies. If the request body + * does not specify values, the existing start and end times will be removed and + * replaced with the default settings. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_PlaylistItem + */ + public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); + } +} + +/** + * The "playlists" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a playlist. (playlists.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_Playlist + */ + public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); + } + + /** + * Returns a collection of playlists that match the API request parameters. For + * example, you can retrieve all playlists that the authenticated user owns, or + * you can retrieve one or more playlists by their unique IDs. + * (playlists.listPlaylists) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlist resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a playlist + * resource, the snippet property contains properties like author, title, + * description, tags, and timeCreated. As such, if you set part=snippet, the API + * response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId This value indicates that the API should only + * return the specified channel's playlists. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return playlists owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the snippet part. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a + * playlist resource, the id property specifies the playlist's YouTube playlist + * ID. + * @return Google_Service_YouTube_PlaylistListResponse + */ + public function listPlaylists($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); + } + + /** + * Modifies a playlist. For example, you could change a playlist's title, + * description, or privacy status. (playlists.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that this method will override the existing values for mutable + * properties that are contained in any parts that the request body specifies. + * For example, a playlist's description is contained in the snippet part, which + * must be included in the request body. If the request does not specify a value + * for the snippet.description property, the playlist's existing description + * will be deleted. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_Playlist + */ + public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); + } +} + +/** + * The "search" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listSearch) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more search resource properties that the API response will include. + * Set the parameter value to snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string eventType The eventType parameter restricts a search to + * broadcast events. If you specify a value for this parameter, you must also + * set the type parameter's value to video. + * @opt_param string channelId The channelId parameter indicates that the API + * response should only contain resources created by the channel + * @opt_param bool forDeveloper The forDeveloper parameter restricts the search + * to only retrieve videos uploaded via the developer's application or website. + * The API server uses the request's authorization credentials to identify the + * developer. Therefore, a developer can restrict results to videos uploaded + * through the developer's own app or website but not to videos uploaded through + * other apps or sites. + * @opt_param string videoSyndicated The videoSyndicated parameter lets you to + * restrict a search to only videos that can be played outside youtube.com. If + * you specify a value for this parameter, you must also set the type + * parameter's value to video. + * @opt_param string channelType The channelType parameter lets you restrict a + * search to a particular type of channel. + * @opt_param string videoCaption The videoCaption parameter indicates whether + * the API should filter video search results based on whether they have + * captions. If you specify a value for this parameter, you must also set the + * type parameter's value to video. + * @opt_param string publishedAfter The publishedAfter parameter indicates that + * the API response should only contain resources created after the specified + * time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool forContentOwner Note: This parameter is intended exclusively + * for YouTube content partners. + * + * The forContentOwner parameter restricts the search to only retrieve resources + * owned by the content owner specified by the onBehalfOfContentOwner parameter. + * The user must be authenticated using a CMS account linked to the specified + * content owner and onBehalfOfContentOwner must be provided. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return search results for the specified country. The parameter value is an + * ISO 3166-1 alpha-2 country code. + * @opt_param string location The location parameter, in conjunction with the + * locationRadius parameter, defines a circular geographic area and also + * restricts a search to videos that specify, in their metadata, a geographic + * location that falls within that area. The parameter value is a string that + * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). + * + * - The location parameter value identifies the point at the center of the + * area. - The locationRadius parameter specifies the maximum distance that the + * location associated with a video can be from that point for the video to + * still be included in the search results.The API returns an error if your + * request specifies a value for the location parameter but does not also + * specify a value for the locationRadius parameter. + * @opt_param string locationRadius The locationRadius parameter, in conjunction + * with the location parameter, defines a circular geographic area. + * + * The parameter value must be a floating point number followed by a measurement + * unit. Valid measurement units are m, km, ft, and mi. For example, valid + * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not + * support locationRadius parameter values larger than 1000 kilometers. + * + * Note: See the definition of the location parameter for more information. + * @opt_param string videoType The videoType parameter lets you restrict a + * search to a particular type of videos. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string type The type parameter restricts a search query to only + * retrieve a particular type of resource. The value is a comma-separated list + * of resource types. + * @opt_param string topicId The topicId parameter indicates that the API + * response should only contain resources associated with the specified topic. + * The value identifies a Freebase topic ID. + * @opt_param string publishedBefore The publishedBefore parameter indicates + * that the API response should only contain resources created before the + * specified time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string videoDimension The videoDimension parameter lets you + * restrict a search to only retrieve 2D or 3D videos. If you specify a value + * for this parameter, you must also set the type parameter's value to video. + * @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. If you specify a value for + * this parameter, you must also set the type parameter's value to video. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a + * list of videos that are related to the video that the parameter value + * identifies. The parameter value must be set to a YouTube video ID and, if you + * are using this parameter, the type parameter must be set to video. + * @opt_param string videoDefinition The videoDefinition parameter lets you + * restrict a search to only include either high definition (HD) or standard + * definition (SD) videos. HD videos are available for playback in at least + * 720p, though higher resolutions, like 1080p, might also be available. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. + * @opt_param string videoDuration The videoDuration parameter filters video + * search results based on their duration. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs + * the API to return search results that are most relevant to the specified + * language. The parameter value is typically an ISO 639-1 two-letter language + * code. However, you should use the values zh-Hans for simplified Chinese and + * zh-Hant for traditional Chinese. Please note that results in other languages + * will still be returned if they are highly relevant to the search query term. + * @opt_param bool forMine The forMine parameter restricts the search to only + * retrieve videos owned by the authenticated user. If you set this parameter to + * true, then the type parameter's value must also be set to video. + * @opt_param string q The q parameter specifies the query term to search for. + * + * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude + * videos or to find videos that are associated with one of several search + * terms. For example, to search for videos matching either "boating" or + * "sailing", set the q parameter value to boating|sailing. Similarly, to search + * for videos matching either "boating" or "sailing" but not "fishing", set the + * q parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. + * @opt_param string safeSearch The safeSearch parameter indicates whether the + * search results should include restricted content as well as standard content. + * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to + * restrict a search to only videos that can be embedded into a webpage. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. + * @opt_param string videoCategoryId The videoCategoryId parameter filters video + * search results based on their category. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string order The order parameter specifies the method that will be + * used to order resources in the API response. + * @return Google_Service_YouTube_SearchListResponse + */ + public function listSearch($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); + } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Adds a subscription for the authenticated user's channel. + * (subscriptions.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Subscription + */ + public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); + } + + /** + * Returns subscription resources that match the API request criteria. + * (subscriptions.listSubscriptions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more subscription resource properties that the API response will + * include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * subscription resource, the snippet property contains other properties, such + * as a display title for the subscription. If you set part=snippet, the API + * response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's subscriptions. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's subscriptions. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string forChannelId The forChannelId parameter specifies a comma- + * separated list of channel IDs. The API response will then only contain + * subscriptions matching those channels. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Set this parameter's value to true to retrieve + * a feed of the subscribers of the authenticated user. + * @opt_param string order The order parameter specifies the method that will be + * used to sort resources in the API response. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a + * subscription resource, the id property specifies the YouTube subscription ID. + * @return Google_Service_YouTube_SubscriptionListResponse + */ + public function listSubscriptions($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); + } +} + +/** + * The "thumbnails" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_ThumbnailSetResponse + */ + public function set($videoId, $optParams = array()) + { + $params = array('videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); + } +} + +/** + * The "videoAbuseReportReasons" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; + * + */ +class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of abuse reasons that can be used for reporting abusive + * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) + * + * @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. + * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse + */ + public function listVideoAbuseReportReasons($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); + } +} + +/** + * The "videoCategories" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listVideoCategories) + * + * @param string $part The part parameter specifies the videoCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of video categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of + * video category IDs for the resources that you are retrieving. + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_VideoCategoryListResponse + */ + public function listVideoCategories($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); + } +} + +/** + * The "videos" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the ratings that the authorized user gave to a list of specified + * videos. (videos.getRating) + * + * @param string $id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) for which you are retrieving rating + * data. In a video resource, the id property specifies the video's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_VideoGetRatingResponse + */ + public function getRating($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); + } + + /** + * Uploads a video to YouTube and optionally sets the video's metadata. + * (videos.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that not all parts contain properties that can be set when inserting or + * updating a video. For example, the statistics object encapsulates statistics + * that YouTube calculates for a video and does not contain values that you can + * set or modify. If the parameter value specifies a part that does not contain + * mutable values, that part will still be included in the API response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool stabilize The stabilize parameter indicates whether YouTube + * should adjust the video to remove shaky camera motions. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool notifySubscribers The notifySubscribers parameter indicates + * whether YouTube should send a notification about the new video to users who + * subscribe to the video's channel. A parameter value of True indicates that + * subscribers will be notified of newly uploaded videos. However, a channel + * owner who is uploading many videos might prefer to set the value to False to + * avoid sending a notification about each new video to the channel's + * subscribers. + * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube + * should automatically enhance the video's lighting and color. + * @return Google_Service_YouTube_Video + */ + public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Video"); + } + + /** + * Returns a list of videos that match the API request parameters. + * (videos.listVideos) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more video resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a video + * resource, the snippet property contains the channelId, title, description, + * tags, and categoryId properties. As such, if you set part=snippet, the API + * response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string regionCode The regionCode parameter instructs the API to + * select a video chart available in the specified region. This parameter can + * only be used in conjunction with the chart parameter. The parameter value is + * an ISO 3166-1 alpha-2 country code. + * @opt_param string locale DEPRECATED + * @opt_param string videoCategoryId The videoCategoryId parameter identifies + * the video category for which the chart should be retrieved. This parameter + * can only be used in conjunction with the chart parameter. By default, charts + * are not restricted to a particular category. + * @opt_param string chart The chart parameter identifies the chart that you + * want to retrieve. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string hl The hl parameter instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. + * @opt_param string myRating Set this parameter's value to like or dislike to + * instruct the API to only return videos liked or disliked by the authenticated + * user. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) that are being retrieved. In a video + * resource, the id property specifies the video's ID. + * @return Google_Service_YouTube_VideoListResponse + */ + public function listVideos($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); + } + + /** + * Add a like or dislike rating to a video or remove a rating from a video. + * (videos.rate) + * + * @param string $id The id parameter specifies the YouTube video ID of the + * video that is being rated or having its rating removed. + * @param string $rating Specifies the rating to record. + * @param array $optParams Optional parameters. + */ + public function rate($id, $rating, $optParams = array()) + { + $params = array('id' => $id, 'rating' => $rating); + $params = array_merge($params, $optParams); + return $this->call('rate', array($params)); + } + + /** + * Report abuse for a video. (videos.reportAbuse) + * + * @param Google_VideoAbuseReport $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportAbuse', array($params)); + } + + /** + * Updates a video's metadata. (videos.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * 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 parts contain properties that can be set when inserting + * or updating a video. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain values + * that you can set or modify. If the parameter value specifies a part that does + * not contain mutable values, that part will still be included in the API + * response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Video + */ + public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Video"); + } +} + +/** + * The "watermarks" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $watermarks = $youtubeService->watermarks; + * + */ +class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource +{ + + /** + * Uploads a watermark image to YouTube and sets it for a channel. + * (watermarks.set) + * + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being provided. + * @param Google_InvideoBranding $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) + { + $params = array('channelId' => $channelId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params)); + } + + /** + * Deletes a channel's watermark image. (watermarks.unsetWatermarks) + * + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being unset. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function unsetWatermarks($channelId, $optParams = array()) + { + $params = array('channelId' => $channelId); + $params = array_merge($params, $optParams); + return $this->call('unset', array($params)); + } +} + + + + +class Google_Service_YouTube_AccessPolicy extends Google_Collection +{ + protected $collection_key = 'exception'; + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; + protected $snippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_ActivityContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; + protected $bulletinDataType = ''; + protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; + protected $channelItemDataType = ''; + protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; + protected $commentDataType = ''; + protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; + protected $favoriteDataType = ''; + protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; + protected $likeDataType = ''; + protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; + protected $playlistItemDataType = ''; + protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; + protected $promotedItemDataType = ''; + protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; + protected $recommendationDataType = ''; + protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; + protected $socialDataType = ''; + protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; + protected $subscriptionDataType = ''; + protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; + protected $uploadDataType = ''; + + + public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) + { + $this->bulletin = $bulletin; + } + public function getBulletin() + { + return $this->bulletin; + } + public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) + { + $this->channelItem = $channelItem; + } + public function getChannelItem() + { + return $this->channelItem; + } + public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) + { + $this->favorite = $favorite; + } + public function getFavorite() + { + return $this->favorite; + } + public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) + { + $this->like = $like; + } + public function getLike() + { + return $this->like; + } + public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) + { + $this->playlistItem = $playlistItem; + } + public function getPlaylistItem() + { + return $this->playlistItem; + } + public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) + { + $this->promotedItem = $promotedItem; + } + public function getPromotedItem() + { + return $this->promotedItem; + } + public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) + { + $this->recommendation = $recommendation; + } + public function getRecommendation() + { + return $this->recommendation; + } + public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) + { + $this->social = $social; + } + public function getSocial() + { + return $this->social; + } + public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) + { + $this->upload = $upload; + } + public function getUpload() + { + return $this->upload; + } +} + +class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $playlistId; + public $playlistItemId; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + public function setPlaylistId($playlistId) + { + $this->playlistId = $playlistId; + } + public function getPlaylistId() + { + return $this->playlistId; + } + public function setPlaylistItemId($playlistItemId) + { + $this->playlistItemId = $playlistItemId; + } + public function getPlaylistItemId() + { + return $this->playlistItemId; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection +{ + protected $collection_key = 'impressionUrl'; + protected $internal_gapi_mappings = array( + ); + public $adTag; + public $clickTrackingUrl; + public $creativeViewUrl; + public $ctaType; + public $customCtaButtonText; + public $descriptionText; + public $destinationUrl; + public $forecastingUrl; + public $impressionUrl; + public $videoId; + + + public function setAdTag($adTag) + { + $this->adTag = $adTag; + } + public function getAdTag() + { + return $this->adTag; + } + public function setClickTrackingUrl($clickTrackingUrl) + { + $this->clickTrackingUrl = $clickTrackingUrl; + } + public function getClickTrackingUrl() + { + return $this->clickTrackingUrl; + } + public function setCreativeViewUrl($creativeViewUrl) + { + $this->creativeViewUrl = $creativeViewUrl; + } + public function getCreativeViewUrl() + { + return $this->creativeViewUrl; + } + public function setCtaType($ctaType) + { + $this->ctaType = $ctaType; + } + public function getCtaType() + { + return $this->ctaType; + } + public function setCustomCtaButtonText($customCtaButtonText) + { + $this->customCtaButtonText = $customCtaButtonText; + } + public function getCustomCtaButtonText() + { + return $this->customCtaButtonText; + } + public function setDescriptionText($descriptionText) + { + $this->descriptionText = $descriptionText; + } + public function getDescriptionText() + { + return $this->descriptionText; + } + public function setDestinationUrl($destinationUrl) + { + $this->destinationUrl = $destinationUrl; + } + public function getDestinationUrl() + { + return $this->destinationUrl; + } + public function setForecastingUrl($forecastingUrl) + { + $this->forecastingUrl = $forecastingUrl; + } + public function getForecastingUrl() + { + return $this->forecastingUrl; + } + public function setImpressionUrl($impressionUrl) + { + $this->impressionUrl = $impressionUrl; + } + public function getImpressionUrl() + { + return $this->impressionUrl; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $reason; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $seedResourceIdDataType = ''; + + + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) + { + $this->seedResourceId = $seedResourceId; + } + public function getSeedResourceId() + { + return $this->seedResourceId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $author; + public $imageUrl; + public $referenceUrl; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + public $type; + + + public function setAuthor($author) + { + $this->author = $author; + } + public function getAuthor() + { + return $this->author; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setReferenceUrl($referenceUrl) + { + $this->referenceUrl = $referenceUrl; + } + public function getReferenceUrl() + { + return $this->referenceUrl; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $videoId; + + + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ActivityListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ActivitySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $groupId; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + public $type; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + public function getGroupId() + { + return $this->groupId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_Caption extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CaptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Caption'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CaptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $audioTrackType; + public $failureReason; + public $isAutoSynced; + public $isCC; + public $isDraft; + public $isEasyReader; + public $isLarge; + public $language; + public $lastUpdated; + public $name; + public $status; + public $trackKind; + public $videoId; + + + public function setAudioTrackType($audioTrackType) + { + $this->audioTrackType = $audioTrackType; + } + public function getAudioTrackType() + { + return $this->audioTrackType; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setIsAutoSynced($isAutoSynced) + { + $this->isAutoSynced = $isAutoSynced; + } + public function getIsAutoSynced() + { + return $this->isAutoSynced; + } + public function setIsCC($isCC) + { + $this->isCC = $isCC; + } + public function getIsCC() + { + return $this->isCC; + } + public function setIsDraft($isDraft) + { + $this->isDraft = $isDraft; + } + public function getIsDraft() + { + return $this->isDraft; + } + public function setIsEasyReader($isEasyReader) + { + $this->isEasyReader = $isEasyReader; + } + public function getIsEasyReader() + { + return $this->isEasyReader; + } + public function setIsLarge($isLarge) + { + $this->isLarge = $isLarge; + } + public function getIsLarge() + { + return $this->isLarge; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setLastUpdated($lastUpdated) + { + $this->lastUpdated = $lastUpdated; + } + public function getLastUpdated() + { + return $this->lastUpdated; + } + 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 setTrackKind($trackKind) + { + $this->trackKind = $trackKind; + } + public function getTrackKind() + { + return $this->trackKind; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_CdnSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $format; + protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; + protected $ingestionInfoDataType = ''; + public $ingestionType; + + + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) + { + $this->ingestionInfo = $ingestionInfo; + } + public function getIngestionInfo() + { + return $this->ingestionInfo; + } + public function setIngestionType($ingestionType) + { + $this->ingestionType = $ingestionType; + } + public function getIngestionType() + { + return $this->ingestionType; + } +} + +class Google_Service_YouTube_Channel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; + protected $auditDetailsDataType = ''; + protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; + protected $brandingSettingsDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; + protected $contentDetailsDataType = ''; + protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; + protected $contentOwnerDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + public $id; + protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; + protected $invideoPromotionDataType = ''; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizationsDataType = 'map'; + protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_ChannelStatus'; + protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; + protected $topicDetailsDataType = ''; + + + public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) + { + $this->auditDetails = $auditDetails; + } + public function getAuditDetails() + { + return $this->auditDetails; + } + public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) + { + $this->brandingSettings = $brandingSettings; + } + public function getBrandingSettings() + { + return $this->brandingSettings; + } + public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) + { + $this->contentOwnerDetails = $contentOwnerDetails; + } + public function getContentOwnerDetails() + { + return $this->contentOwnerDetails; + } + public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) + { + $this->conversionPings = $conversionPings; + } + public function getConversionPings() + { + return $this->conversionPings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) + { + $this->invideoPromotion = $invideoPromotion; + } + public function getInvideoPromotion() + { + return $this->invideoPromotion; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } + public function setStatus(Google_Service_YouTube_ChannelStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } +} + +class Google_Service_YouTube_ChannelAuditDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $communityGuidelinesGoodStanding; + public $contentIdClaimsGoodStanding; + public $copyrightStrikesGoodStanding; + public $overallGoodStanding; + + + public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) + { + $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; + } + public function getCommunityGuidelinesGoodStanding() + { + return $this->communityGuidelinesGoodStanding; + } + public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) + { + $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; + } + public function getContentIdClaimsGoodStanding() + { + return $this->contentIdClaimsGoodStanding; + } + public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) + { + $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; + } + public function getCopyrightStrikesGoodStanding() + { + return $this->copyrightStrikesGoodStanding; + } + public function setOverallGoodStanding($overallGoodStanding) + { + $this->overallGoodStanding = $overallGoodStanding; + } + public function getOverallGoodStanding() + { + return $this->overallGoodStanding; + } +} + +class Google_Service_YouTube_ChannelBannerResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $kind; + public $url; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection +{ + protected $collection_key = 'hints'; + protected $internal_gapi_mappings = array( + ); + protected $channelType = 'Google_Service_YouTube_ChannelSettings'; + protected $channelDataType = ''; + protected $hintsType = 'Google_Service_YouTube_PropertyValue'; + protected $hintsDataType = 'array'; + protected $imageType = 'Google_Service_YouTube_ImageSettings'; + protected $imageDataType = ''; + protected $watchType = 'Google_Service_YouTube_WatchSettings'; + protected $watchDataType = ''; + + + public function setChannel(Google_Service_YouTube_ChannelSettings $channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } + public function setHints($hints) + { + $this->hints = $hints; + } + public function getHints() + { + return $this->hints; + } + public function setImage(Google_Service_YouTube_ImageSettings $image) + { + $this->image = $image; + } + public function getImage() + { + return $this->image; + } + public function setWatch(Google_Service_YouTube_WatchSettings $watch) + { + $this->watch = $watch; + } + public function getWatch() + { + return $this->watch; + } +} + +class Google_Service_YouTube_ChannelContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $googlePlusUserId; + protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; + protected $relatedPlaylistsDataType = ''; + + + public function setGooglePlusUserId($googlePlusUserId) + { + $this->googlePlusUserId = $googlePlusUserId; + } + public function getGooglePlusUserId() + { + return $this->googlePlusUserId; + } + public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) + { + $this->relatedPlaylists = $relatedPlaylists; + } + public function getRelatedPlaylists() + { + return $this->relatedPlaylists; + } +} + +class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $favorites; + public $likes; + public $uploads; + public $watchHistory; + public $watchLater; + + + public function setFavorites($favorites) + { + $this->favorites = $favorites; + } + public function getFavorites() + { + return $this->favorites; + } + public function setLikes($likes) + { + $this->likes = $likes; + } + public function getLikes() + { + return $this->likes; + } + public function setUploads($uploads) + { + $this->uploads = $uploads; + } + public function getUploads() + { + return $this->uploads; + } + public function setWatchHistory($watchHistory) + { + $this->watchHistory = $watchHistory; + } + public function getWatchHistory() + { + return $this->watchHistory; + } + public function setWatchLater($watchLater) + { + $this->watchLater = $watchLater; + } + public function getWatchLater() + { + return $this->watchLater; + } +} + +class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contentOwner; + public $timeLinked; + + + public function setContentOwner($contentOwner) + { + $this->contentOwner = $contentOwner; + } + public function getContentOwner() + { + return $this->contentOwner; + } + public function setTimeLinked($timeLinked) + { + $this->timeLinked = $timeLinked; + } + public function getTimeLinked() + { + return $this->timeLinked; + } +} + +class Google_Service_YouTube_ChannelConversionPing extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); + protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; + protected $pingsDataType = 'array'; + + + public function setPings($pings) + { + $this->pings = $pings; + } + public function getPings() + { + return $this->pings; + } +} + +class Google_Service_YouTube_ChannelId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_ChannelListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Channel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ChannelLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_ChannelSection extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizationsDataType = 'map'; + protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; + protected $snippetDataType = ''; + protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; + protected $targetingDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) + { + $this->targeting = $targeting; + } + public function getTargeting() + { + return $this->targeting; + } +} + +class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection +{ + protected $collection_key = 'playlists'; + protected $internal_gapi_mappings = array( + ); + public $channels; + public $playlists; + + + public function setChannels($channels) + { + $this->channels = $channels; + } + public function getChannels() + { + return $this->channels; + } + public function setPlaylists($playlists) + { + $this->playlists = $playlists; + } + public function getPlaylists() + { + return $this->playlists; + } +} + +class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ChannelSection'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $title; + + + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $defaultLanguage; + protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizedDataType = ''; + public $position; + public $style; + public $title; + public $type; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setStyle($style) + { + $this->style = $style; + } + public function getStyle() + { + return $this->style; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $countries; + public $languages; + public $regions; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setLanguages($languages) + { + $this->languages = $languages; + } + public function getLanguages() + { + return $this->languages; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_YouTube_ChannelSettings extends Google_Collection +{ + protected $collection_key = 'featuredChannelsUrls'; + protected $internal_gapi_mappings = array( + ); + public $country; + public $defaultLanguage; + public $defaultTab; + public $description; + public $featuredChannelsTitle; + public $featuredChannelsUrls; + public $keywords; + public $moderateComments; + public $profileColor; + public $showBrowseView; + public $showRelatedChannels; + public $title; + public $trackingAnalyticsAccountId; + public $unsubscribedTrailer; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDefaultTab($defaultTab) + { + $this->defaultTab = $defaultTab; + } + public function getDefaultTab() + { + return $this->defaultTab; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFeaturedChannelsTitle($featuredChannelsTitle) + { + $this->featuredChannelsTitle = $featuredChannelsTitle; + } + public function getFeaturedChannelsTitle() + { + return $this->featuredChannelsTitle; + } + public function setFeaturedChannelsUrls($featuredChannelsUrls) + { + $this->featuredChannelsUrls = $featuredChannelsUrls; + } + public function getFeaturedChannelsUrls() + { + return $this->featuredChannelsUrls; + } + public function setKeywords($keywords) + { + $this->keywords = $keywords; + } + public function getKeywords() + { + return $this->keywords; + } + public function setModerateComments($moderateComments) + { + $this->moderateComments = $moderateComments; + } + public function getModerateComments() + { + return $this->moderateComments; + } + public function setProfileColor($profileColor) + { + $this->profileColor = $profileColor; + } + public function getProfileColor() + { + return $this->profileColor; + } + public function setShowBrowseView($showBrowseView) + { + $this->showBrowseView = $showBrowseView; + } + public function getShowBrowseView() + { + return $this->showBrowseView; + } + public function setShowRelatedChannels($showRelatedChannels) + { + $this->showRelatedChannels = $showRelatedChannels; + } + public function getShowRelatedChannels() + { + return $this->showRelatedChannels; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) + { + $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; + } + public function getTrackingAnalyticsAccountId() + { + return $this->trackingAnalyticsAccountId; + } + public function setUnsubscribedTrailer($unsubscribedTrailer) + { + $this->unsubscribedTrailer = $unsubscribedTrailer; + } + public function getUnsubscribedTrailer() + { + return $this->unsubscribedTrailer; + } +} + +class Google_Service_YouTube_ChannelSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $country; + public $defaultLanguage; + public $description; + protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $commentCount; + public $hiddenSubscriberCount; + public $subscriberCount; + public $videoCount; + public $viewCount; + + + public function setCommentCount($commentCount) + { + $this->commentCount = $commentCount; + } + public function getCommentCount() + { + return $this->commentCount; + } + public function setHiddenSubscriberCount($hiddenSubscriberCount) + { + $this->hiddenSubscriberCount = $hiddenSubscriberCount; + } + public function getHiddenSubscriberCount() + { + return $this->hiddenSubscriberCount; + } + public function setSubscriberCount($subscriberCount) + { + $this->subscriberCount = $subscriberCount; + } + public function getSubscriberCount() + { + return $this->subscriberCount; + } + public function setVideoCount($videoCount) + { + $this->videoCount = $videoCount; + } + public function getVideoCount() + { + return $this->videoCount; + } + public function setViewCount($viewCount) + { + $this->viewCount = $viewCount; + } + public function getViewCount() + { + return $this->viewCount; + } +} + +class Google_Service_YouTube_ChannelStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $isLinked; + public $longUploadsStatus; + public $privacyStatus; + + + public function setIsLinked($isLinked) + { + $this->isLinked = $isLinked; + } + public function getIsLinked() + { + return $this->isLinked; + } + public function setLongUploadsStatus($longUploadsStatus) + { + $this->longUploadsStatus = $longUploadsStatus; + } + public function getLongUploadsStatus() + { + return $this->longUploadsStatus; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection +{ + protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); + public $topicIds; + + + public function setTopicIds($topicIds) + { + $this->topicIds = $topicIds; + } + public function getTopicIds() + { + return $this->topicIds; + } +} + +class Google_Service_YouTube_Comment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; + protected $authorChannelIdDataType = ''; + public $authorChannelUrl; + public $authorDisplayName; + public $authorGoogleplusProfileUrl; + public $authorProfileImageUrl; + public $canRate; + public $channelId; + public $likeCount; + public $moderationStatus; + public $parentId; + public $publishedAt; + public $textDisplay; + public $textOriginal; + public $updatedAt; + public $videoId; + public $viewerRating; + + + public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) + { + $this->authorChannelId = $authorChannelId; + } + public function getAuthorChannelId() + { + return $this->authorChannelId; + } + public function setAuthorChannelUrl($authorChannelUrl) + { + $this->authorChannelUrl = $authorChannelUrl; + } + public function getAuthorChannelUrl() + { + return $this->authorChannelUrl; + } + public function setAuthorDisplayName($authorDisplayName) + { + $this->authorDisplayName = $authorDisplayName; + } + public function getAuthorDisplayName() + { + return $this->authorDisplayName; + } + public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) + { + $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; + } + public function getAuthorGoogleplusProfileUrl() + { + return $this->authorGoogleplusProfileUrl; + } + public function setAuthorProfileImageUrl($authorProfileImageUrl) + { + $this->authorProfileImageUrl = $authorProfileImageUrl; + } + public function getAuthorProfileImageUrl() + { + return $this->authorProfileImageUrl; + } + public function setCanRate($canRate) + { + $this->canRate = $canRate; + } + public function getCanRate() + { + return $this->canRate; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setLikeCount($likeCount) + { + $this->likeCount = $likeCount; + } + public function getLikeCount() + { + return $this->likeCount; + } + public function setModerationStatus($moderationStatus) + { + $this->moderationStatus = $moderationStatus; + } + public function getModerationStatus() + { + return $this->moderationStatus; + } + public function setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTextDisplay($textDisplay) + { + $this->textDisplay = $textDisplay; + } + public function getTextDisplay() + { + return $this->textDisplay; + } + public function setTextOriginal($textOriginal) + { + $this->textOriginal = $textOriginal; + } + public function getTextOriginal() + { + return $this->textOriginal; + } + public function setUpdatedAt($updatedAt) + { + $this->updatedAt = $updatedAt; + } + public function getUpdatedAt() + { + return $this->updatedAt; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setViewerRating($viewerRating) + { + $this->viewerRating = $viewerRating; + } + public function getViewerRating() + { + return $this->viewerRating; + } +} + +class Google_Service_YouTube_CommentThread extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; + protected $repliesDataType = ''; + protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) + { + $this->replies = $replies; + } + public function getReplies() + { + return $this->replies; + } + public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_CommentThread'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentThreadReplies extends Google_Collection +{ + protected $collection_key = 'comments'; + protected $internal_gapi_mappings = array( + ); + protected $commentsType = 'Google_Service_YouTube_Comment'; + protected $commentsDataType = 'array'; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } +} + +class Google_Service_YouTube_CommentThreadSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canReply; + public $channelId; + public $isPublic; + protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; + protected $topLevelCommentDataType = ''; + public $totalReplyCount; + public $videoId; + + + public function setCanReply($canReply) + { + $this->canReply = $canReply; + } + public function getCanReply() + { + return $this->canReply; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setIsPublic($isPublic) + { + $this->isPublic = $isPublic; + } + public function getIsPublic() + { + return $this->isPublic; + } + public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) + { + $this->topLevelComment = $topLevelComment; + } + public function getTopLevelComment() + { + return $this->topLevelComment; + } + public function setTotalReplyCount($totalReplyCount) + { + $this->totalReplyCount = $totalReplyCount; + } + public function getTotalReplyCount() + { + return $this->totalReplyCount; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ContentRating extends Google_Collection +{ + protected $collection_key = 'djctqRatingReasons'; + protected $internal_gapi_mappings = array( + ); + public $acbRating; + public $agcomRating; + public $anatelRating; + public $bbfcRating; + public $bfvcRating; + public $bmukkRating; + public $catvRating; + public $catvfrRating; + public $cbfcRating; + public $cccRating; + public $cceRating; + public $chfilmRating; + public $chvrsRating; + public $cicfRating; + public $cnaRating; + public $csaRating; + public $cscfRating; + public $czfilmRating; + public $djctqRating; + public $djctqRatingReasons; + public $eefilmRating; + public $egfilmRating; + public $eirinRating; + public $fcbmRating; + public $fcoRating; + public $fmocRating; + public $fpbRating; + public $fskRating; + public $grfilmRating; + public $icaaRating; + public $ifcoRating; + public $ilfilmRating; + public $incaaRating; + public $kfcbRating; + public $kijkwijzerRating; + public $kmrbRating; + public $lsfRating; + public $mccaaRating; + public $mccypRating; + public $mdaRating; + public $medietilsynetRating; + public $mekuRating; + public $mibacRating; + public $mocRating; + public $moctwRating; + public $mpaaRating; + public $mtrcbRating; + public $nbcRating; + public $nbcplRating; + public $nfrcRating; + public $nfvcbRating; + public $nkclvRating; + public $oflcRating; + public $pefilmRating; + public $rcnofRating; + public $resorteviolenciaRating; + public $rtcRating; + public $rteRating; + public $russiaRating; + public $skfilmRating; + public $smaisRating; + public $smsaRating; + public $tvpgRating; + public $ytRating; + + + public function setAcbRating($acbRating) + { + $this->acbRating = $acbRating; + } + public function getAcbRating() + { + return $this->acbRating; + } + public function setAgcomRating($agcomRating) + { + $this->agcomRating = $agcomRating; + } + public function getAgcomRating() + { + return $this->agcomRating; + } + public function setAnatelRating($anatelRating) + { + $this->anatelRating = $anatelRating; + } + public function getAnatelRating() + { + return $this->anatelRating; + } + public function setBbfcRating($bbfcRating) + { + $this->bbfcRating = $bbfcRating; + } + public function getBbfcRating() + { + return $this->bbfcRating; + } + public function setBfvcRating($bfvcRating) + { + $this->bfvcRating = $bfvcRating; + } + public function getBfvcRating() + { + return $this->bfvcRating; + } + public function setBmukkRating($bmukkRating) + { + $this->bmukkRating = $bmukkRating; + } + public function getBmukkRating() + { + return $this->bmukkRating; + } + public function setCatvRating($catvRating) + { + $this->catvRating = $catvRating; + } + public function getCatvRating() + { + return $this->catvRating; + } + public function setCatvfrRating($catvfrRating) + { + $this->catvfrRating = $catvfrRating; + } + public function getCatvfrRating() + { + return $this->catvfrRating; + } + public function setCbfcRating($cbfcRating) + { + $this->cbfcRating = $cbfcRating; + } + public function getCbfcRating() + { + return $this->cbfcRating; + } + public function setCccRating($cccRating) + { + $this->cccRating = $cccRating; + } + public function getCccRating() + { + return $this->cccRating; + } + public function setCceRating($cceRating) + { + $this->cceRating = $cceRating; + } + public function getCceRating() + { + return $this->cceRating; + } + public function setChfilmRating($chfilmRating) + { + $this->chfilmRating = $chfilmRating; + } + public function getChfilmRating() + { + return $this->chfilmRating; + } + public function setChvrsRating($chvrsRating) + { + $this->chvrsRating = $chvrsRating; + } + public function getChvrsRating() + { + return $this->chvrsRating; + } + public function setCicfRating($cicfRating) + { + $this->cicfRating = $cicfRating; + } + public function getCicfRating() + { + return $this->cicfRating; + } + public function setCnaRating($cnaRating) + { + $this->cnaRating = $cnaRating; + } + public function getCnaRating() + { + return $this->cnaRating; + } + public function setCsaRating($csaRating) + { + $this->csaRating = $csaRating; + } + public function getCsaRating() + { + return $this->csaRating; + } + public function setCscfRating($cscfRating) + { + $this->cscfRating = $cscfRating; + } + public function getCscfRating() + { + return $this->cscfRating; + } + public function setCzfilmRating($czfilmRating) + { + $this->czfilmRating = $czfilmRating; + } + public function getCzfilmRating() + { + return $this->czfilmRating; + } + public function setDjctqRating($djctqRating) + { + $this->djctqRating = $djctqRating; + } + public function getDjctqRating() + { + return $this->djctqRating; + } + public function setDjctqRatingReasons($djctqRatingReasons) + { + $this->djctqRatingReasons = $djctqRatingReasons; + } + public function getDjctqRatingReasons() + { + return $this->djctqRatingReasons; + } + public function setEefilmRating($eefilmRating) + { + $this->eefilmRating = $eefilmRating; + } + public function getEefilmRating() + { + return $this->eefilmRating; + } + public function setEgfilmRating($egfilmRating) + { + $this->egfilmRating = $egfilmRating; + } + public function getEgfilmRating() + { + return $this->egfilmRating; + } + public function setEirinRating($eirinRating) + { + $this->eirinRating = $eirinRating; + } + public function getEirinRating() + { + return $this->eirinRating; + } + public function setFcbmRating($fcbmRating) + { + $this->fcbmRating = $fcbmRating; + } + public function getFcbmRating() + { + return $this->fcbmRating; + } + public function setFcoRating($fcoRating) + { + $this->fcoRating = $fcoRating; + } + public function getFcoRating() + { + return $this->fcoRating; + } + public function setFmocRating($fmocRating) + { + $this->fmocRating = $fmocRating; + } + public function getFmocRating() + { + return $this->fmocRating; + } + public function setFpbRating($fpbRating) + { + $this->fpbRating = $fpbRating; + } + public function getFpbRating() + { + return $this->fpbRating; + } + public function setFskRating($fskRating) + { + $this->fskRating = $fskRating; + } + public function getFskRating() + { + return $this->fskRating; + } + public function setGrfilmRating($grfilmRating) + { + $this->grfilmRating = $grfilmRating; + } + public function getGrfilmRating() + { + return $this->grfilmRating; + } + public function setIcaaRating($icaaRating) + { + $this->icaaRating = $icaaRating; + } + public function getIcaaRating() + { + return $this->icaaRating; + } + public function setIfcoRating($ifcoRating) + { + $this->ifcoRating = $ifcoRating; + } + public function getIfcoRating() + { + return $this->ifcoRating; + } + public function setIlfilmRating($ilfilmRating) + { + $this->ilfilmRating = $ilfilmRating; + } + public function getIlfilmRating() + { + return $this->ilfilmRating; + } + public function setIncaaRating($incaaRating) + { + $this->incaaRating = $incaaRating; + } + public function getIncaaRating() + { + return $this->incaaRating; + } + public function setKfcbRating($kfcbRating) + { + $this->kfcbRating = $kfcbRating; + } + public function getKfcbRating() + { + return $this->kfcbRating; + } + public function setKijkwijzerRating($kijkwijzerRating) + { + $this->kijkwijzerRating = $kijkwijzerRating; + } + public function getKijkwijzerRating() + { + return $this->kijkwijzerRating; + } + public function setKmrbRating($kmrbRating) + { + $this->kmrbRating = $kmrbRating; + } + public function getKmrbRating() + { + return $this->kmrbRating; + } + public function setLsfRating($lsfRating) + { + $this->lsfRating = $lsfRating; + } + public function getLsfRating() + { + return $this->lsfRating; + } + public function setMccaaRating($mccaaRating) + { + $this->mccaaRating = $mccaaRating; + } + public function getMccaaRating() + { + return $this->mccaaRating; + } + public function setMccypRating($mccypRating) + { + $this->mccypRating = $mccypRating; + } + public function getMccypRating() + { + return $this->mccypRating; + } + public function setMdaRating($mdaRating) + { + $this->mdaRating = $mdaRating; + } + public function getMdaRating() + { + return $this->mdaRating; + } + public function setMedietilsynetRating($medietilsynetRating) + { + $this->medietilsynetRating = $medietilsynetRating; + } + public function getMedietilsynetRating() + { + return $this->medietilsynetRating; + } + public function setMekuRating($mekuRating) + { + $this->mekuRating = $mekuRating; + } + public function getMekuRating() + { + return $this->mekuRating; + } + public function setMibacRating($mibacRating) + { + $this->mibacRating = $mibacRating; + } + public function getMibacRating() + { + return $this->mibacRating; + } + public function setMocRating($mocRating) + { + $this->mocRating = $mocRating; + } + public function getMocRating() + { + return $this->mocRating; + } + public function setMoctwRating($moctwRating) + { + $this->moctwRating = $moctwRating; + } + public function getMoctwRating() + { + return $this->moctwRating; + } + public function setMpaaRating($mpaaRating) + { + $this->mpaaRating = $mpaaRating; + } + public function getMpaaRating() + { + return $this->mpaaRating; + } + public function setMtrcbRating($mtrcbRating) + { + $this->mtrcbRating = $mtrcbRating; + } + public function getMtrcbRating() + { + return $this->mtrcbRating; + } + public function setNbcRating($nbcRating) + { + $this->nbcRating = $nbcRating; + } + public function getNbcRating() + { + return $this->nbcRating; + } + public function setNbcplRating($nbcplRating) + { + $this->nbcplRating = $nbcplRating; + } + public function getNbcplRating() + { + return $this->nbcplRating; + } + public function setNfrcRating($nfrcRating) + { + $this->nfrcRating = $nfrcRating; + } + public function getNfrcRating() + { + return $this->nfrcRating; + } + public function setNfvcbRating($nfvcbRating) + { + $this->nfvcbRating = $nfvcbRating; + } + public function getNfvcbRating() + { + return $this->nfvcbRating; + } + public function setNkclvRating($nkclvRating) + { + $this->nkclvRating = $nkclvRating; + } + public function getNkclvRating() + { + return $this->nkclvRating; + } + public function setOflcRating($oflcRating) + { + $this->oflcRating = $oflcRating; + } + public function getOflcRating() + { + return $this->oflcRating; + } + public function setPefilmRating($pefilmRating) + { + $this->pefilmRating = $pefilmRating; + } + public function getPefilmRating() + { + return $this->pefilmRating; + } + public function setRcnofRating($rcnofRating) + { + $this->rcnofRating = $rcnofRating; + } + public function getRcnofRating() + { + return $this->rcnofRating; + } + public function setResorteviolenciaRating($resorteviolenciaRating) + { + $this->resorteviolenciaRating = $resorteviolenciaRating; + } + public function getResorteviolenciaRating() + { + return $this->resorteviolenciaRating; + } + public function setRtcRating($rtcRating) + { + $this->rtcRating = $rtcRating; + } + public function getRtcRating() + { + return $this->rtcRating; + } + public function setRteRating($rteRating) + { + $this->rteRating = $rteRating; + } + public function getRteRating() + { + return $this->rteRating; + } + public function setRussiaRating($russiaRating) + { + $this->russiaRating = $russiaRating; + } + public function getRussiaRating() + { + return $this->russiaRating; + } + public function setSkfilmRating($skfilmRating) + { + $this->skfilmRating = $skfilmRating; + } + public function getSkfilmRating() + { + return $this->skfilmRating; + } + public function setSmaisRating($smaisRating) + { + $this->smaisRating = $smaisRating; + } + public function getSmaisRating() + { + return $this->smaisRating; + } + public function setSmsaRating($smsaRating) + { + $this->smsaRating = $smsaRating; + } + public function getSmsaRating() + { + return $this->smsaRating; + } + public function setTvpgRating($tvpgRating) + { + $this->tvpgRating = $tvpgRating; + } + public function getTvpgRating() + { + return $this->tvpgRating; + } + public function setYtRating($ytRating) + { + $this->ytRating = $ytRating; + } + public function getYtRating() + { + return $this->ytRating; + } +} + +class Google_Service_YouTube_GeoPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $altitude; + public $latitude; + public $longitude; + + + public function setAltitude($altitude) + { + $this->altitude = $altitude; + } + public function getAltitude() + { + return $this->altitude; + } + public function setLatitude($latitude) + { + $this->latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} + +class Google_Service_YouTube_GuideCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_GuideCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_GuideCategorySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_I18nLanguage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hl; + public $name; + + + public function setHl($hl) + { + $this->hl = $hl; + } + public function getHl() + { + return $this->hl; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_YouTube_I18nRegion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nRegion'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_I18nRegionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gl; + public $name; + + + public function setGl($gl) + { + $this->gl = $gl; + } + public function getGl() + { + return $this->gl; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_YouTube_ImageSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $backgroundImageUrlDataType = ''; + public $bannerExternalUrl; + public $bannerImageUrl; + public $bannerMobileExtraHdImageUrl; + public $bannerMobileHdImageUrl; + public $bannerMobileImageUrl; + public $bannerMobileLowImageUrl; + public $bannerMobileMediumHdImageUrl; + public $bannerTabletExtraHdImageUrl; + public $bannerTabletHdImageUrl; + public $bannerTabletImageUrl; + public $bannerTabletLowImageUrl; + public $bannerTvHighImageUrl; + public $bannerTvImageUrl; + public $bannerTvLowImageUrl; + public $bannerTvMediumImageUrl; + protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageImapScriptDataType = ''; + protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageUrlDataType = ''; + protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageImapScriptDataType = ''; + protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageUrlDataType = ''; + public $trackingImageUrl; + public $watchIconImageUrl; + + + public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) + { + $this->backgroundImageUrl = $backgroundImageUrl; + } + public function getBackgroundImageUrl() + { + return $this->backgroundImageUrl; + } + public function setBannerExternalUrl($bannerExternalUrl) + { + $this->bannerExternalUrl = $bannerExternalUrl; + } + public function getBannerExternalUrl() + { + return $this->bannerExternalUrl; + } + public function setBannerImageUrl($bannerImageUrl) + { + $this->bannerImageUrl = $bannerImageUrl; + } + public function getBannerImageUrl() + { + return $this->bannerImageUrl; + } + public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) + { + $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; + } + public function getBannerMobileExtraHdImageUrl() + { + return $this->bannerMobileExtraHdImageUrl; + } + public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) + { + $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; + } + public function getBannerMobileHdImageUrl() + { + return $this->bannerMobileHdImageUrl; + } + public function setBannerMobileImageUrl($bannerMobileImageUrl) + { + $this->bannerMobileImageUrl = $bannerMobileImageUrl; + } + public function getBannerMobileImageUrl() + { + return $this->bannerMobileImageUrl; + } + public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) + { + $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; + } + public function getBannerMobileLowImageUrl() + { + return $this->bannerMobileLowImageUrl; + } + public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) + { + $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; + } + public function getBannerMobileMediumHdImageUrl() + { + return $this->bannerMobileMediumHdImageUrl; + } + public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) + { + $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; + } + public function getBannerTabletExtraHdImageUrl() + { + return $this->bannerTabletExtraHdImageUrl; + } + public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) + { + $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; + } + public function getBannerTabletHdImageUrl() + { + return $this->bannerTabletHdImageUrl; + } + public function setBannerTabletImageUrl($bannerTabletImageUrl) + { + $this->bannerTabletImageUrl = $bannerTabletImageUrl; + } + public function getBannerTabletImageUrl() + { + return $this->bannerTabletImageUrl; + } + public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) + { + $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; + } + public function getBannerTabletLowImageUrl() + { + return $this->bannerTabletLowImageUrl; + } + public function setBannerTvHighImageUrl($bannerTvHighImageUrl) + { + $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; + } + public function getBannerTvHighImageUrl() + { + return $this->bannerTvHighImageUrl; + } + public function setBannerTvImageUrl($bannerTvImageUrl) + { + $this->bannerTvImageUrl = $bannerTvImageUrl; + } + public function getBannerTvImageUrl() + { + return $this->bannerTvImageUrl; + } + public function setBannerTvLowImageUrl($bannerTvLowImageUrl) + { + $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; + } + public function getBannerTvLowImageUrl() + { + return $this->bannerTvLowImageUrl; + } + public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) + { + $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; + } + public function getBannerTvMediumImageUrl() + { + return $this->bannerTvMediumImageUrl; + } + public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) + { + $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; + } + public function getLargeBrandedBannerImageImapScript() + { + return $this->largeBrandedBannerImageImapScript; + } + public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) + { + $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; + } + public function getLargeBrandedBannerImageUrl() + { + return $this->largeBrandedBannerImageUrl; + } + public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) + { + $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; + } + public function getSmallBrandedBannerImageImapScript() + { + return $this->smallBrandedBannerImageImapScript; + } + public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) + { + $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; + } + public function getSmallBrandedBannerImageUrl() + { + return $this->smallBrandedBannerImageUrl; + } + public function setTrackingImageUrl($trackingImageUrl) + { + $this->trackingImageUrl = $trackingImageUrl; + } + public function getTrackingImageUrl() + { + return $this->trackingImageUrl; + } + public function setWatchIconImageUrl($watchIconImageUrl) + { + $this->watchIconImageUrl = $watchIconImageUrl; + } + public function getWatchIconImageUrl() + { + return $this->watchIconImageUrl; + } +} + +class Google_Service_YouTube_IngestionInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $backupIngestionAddress; + public $ingestionAddress; + public $streamName; + + + public function setBackupIngestionAddress($backupIngestionAddress) + { + $this->backupIngestionAddress = $backupIngestionAddress; + } + public function getBackupIngestionAddress() + { + return $this->backupIngestionAddress; + } + public function setIngestionAddress($ingestionAddress) + { + $this->ingestionAddress = $ingestionAddress; + } + public function getIngestionAddress() + { + return $this->ingestionAddress; + } + public function setStreamName($streamName) + { + $this->streamName = $streamName; + } + public function getStreamName() + { + return $this->streamName; + } +} + +class Google_Service_YouTube_InvideoBranding extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $imageBytes; + public $imageUrl; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + public $targetChannelId; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + + public function setImageBytes($imageBytes) + { + $this->imageBytes = $imageBytes; + } + public function getImageBytes() + { + return $this->imageBytes; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setPosition(Google_Service_YouTube_InvideoPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setTargetChannelId($targetChannelId) + { + $this->targetChannelId = $targetChannelId; + } + public function getTargetChannelId() + { + return $this->targetChannelId; + } + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) + { + $this->timing = $timing; + } + public function getTiming() + { + return $this->timing; + } +} + +class Google_Service_YouTube_InvideoPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cornerPosition; + public $type; + + + public function setCornerPosition($cornerPosition) + { + $this->cornerPosition = $cornerPosition; + } + public function getCornerPosition() + { + return $this->cornerPosition; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_InvideoPromotion extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; + protected $defaultTimingDataType = ''; + protected $itemsType = 'Google_Service_YouTube_PromotedItem'; + protected $itemsDataType = 'array'; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + public $useSmartTiming; + + + public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) + { + $this->defaultTiming = $defaultTiming; + } + public function getDefaultTiming() + { + return $this->defaultTiming; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setPosition(Google_Service_YouTube_InvideoPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setUseSmartTiming($useSmartTiming) + { + $this->useSmartTiming = $useSmartTiming; + } + public function getUseSmartTiming() + { + return $this->useSmartTiming; + } +} + +class Google_Service_YouTube_InvideoTiming extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $durationMs; + public $offsetMs; + public $type; + + + public function setDurationMs($durationMs) + { + $this->durationMs = $durationMs; + } + public function getDurationMs() + { + return $this->durationMs; + } + public function setOffsetMs($offsetMs) + { + $this->offsetMs = $offsetMs; + } + public function getOffsetMs() + { + return $this->offsetMs; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LanguageTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_LiveBroadcast extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; + protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; + protected $topicDetailsDataType = ''; + + + 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 setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } + public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } +} + +class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $boundStreamId; + public $enableClosedCaptions; + public $enableContentEncryption; + public $enableDvr; + public $enableEmbed; + public $enableLowLatency; + protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; + protected $monitorStreamDataType = ''; + public $recordFromStart; + public $startWithSlate; + + + public function setBoundStreamId($boundStreamId) + { + $this->boundStreamId = $boundStreamId; + } + public function getBoundStreamId() + { + return $this->boundStreamId; + } + public function setEnableClosedCaptions($enableClosedCaptions) + { + $this->enableClosedCaptions = $enableClosedCaptions; + } + public function getEnableClosedCaptions() + { + return $this->enableClosedCaptions; + } + public function setEnableContentEncryption($enableContentEncryption) + { + $this->enableContentEncryption = $enableContentEncryption; + } + public function getEnableContentEncryption() + { + return $this->enableContentEncryption; + } + public function setEnableDvr($enableDvr) + { + $this->enableDvr = $enableDvr; + } + public function getEnableDvr() + { + return $this->enableDvr; + } + public function setEnableEmbed($enableEmbed) + { + $this->enableEmbed = $enableEmbed; + } + public function getEnableEmbed() + { + return $this->enableEmbed; + } + public function setEnableLowLatency($enableLowLatency) + { + $this->enableLowLatency = $enableLowLatency; + } + public function getEnableLowLatency() + { + return $this->enableLowLatency; + } + public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) + { + $this->monitorStream = $monitorStream; + } + public function getMonitorStream() + { + return $this->monitorStream; + } + public function setRecordFromStart($recordFromStart) + { + $this->recordFromStart = $recordFromStart; + } + public function getRecordFromStart() + { + return $this->recordFromStart; + } + public function setStartWithSlate($startWithSlate) + { + $this->startWithSlate = $startWithSlate; + } + public function getStartWithSlate() + { + return $this->startWithSlate; + } +} + +class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actualEndTime; + public $actualStartTime; + public $channelId; + public $description; + public $isDefaultBroadcast; + public $publishedAt; + public $scheduledEndTime; + public $scheduledStartTime; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setActualEndTime($actualEndTime) + { + $this->actualEndTime = $actualEndTime; + } + public function getActualEndTime() + { + return $this->actualEndTime; + } + public function setActualStartTime($actualStartTime) + { + $this->actualStartTime = $actualStartTime; + } + public function getActualStartTime() + { + return $this->actualStartTime; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIsDefaultBroadcast($isDefaultBroadcast) + { + $this->isDefaultBroadcast = $isDefaultBroadcast; + } + public function getIsDefaultBroadcast() + { + return $this->isDefaultBroadcast; + } + 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_LiveBroadcastStatistics extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $concurrentViewers; + public $totalChatCount; + + + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setTotalChatCount($totalChatCount) + { + $this->totalChatCount = $totalChatCount; + } + public function getTotalChatCount() + { + return $this->totalChatCount; + } +} + +class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lifeCycleStatus; + public $liveBroadcastPriority; + public $privacyStatus; + public $recordingStatus; + + + public function setLifeCycleStatus($lifeCycleStatus) + { + $this->lifeCycleStatus = $lifeCycleStatus; + } + public function getLifeCycleStatus() + { + return $this->lifeCycleStatus; + } + public function setLiveBroadcastPriority($liveBroadcastPriority) + { + $this->liveBroadcastPriority = $liveBroadcastPriority; + } + public function getLiveBroadcastPriority() + { + return $this->liveBroadcastPriority; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } + public function setRecordingStatus($recordingStatus) + { + $this->recordingStatus = $recordingStatus; + } + public function getRecordingStatus() + { + return $this->recordingStatus; + } +} + +class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; + protected $snippetDataType = ''; + public $type; + public $unmatched; + + + public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnmatched($unmatched) + { + $this->unmatched = $unmatched; + } + public function getUnmatched() + { + return $this->unmatched; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +{ + protected $collection_key = 'topics'; + protected $internal_gapi_mappings = array( + ); + protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; + protected $topicsDataType = 'array'; + + + public function setTopics($topics) + { + $this->topics = $topics; + } + public function getTopics() + { + return $this->topics; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $releaseDate; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } +} + +class Google_Service_YouTube_LiveStream extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cdnType = 'Google_Service_YouTube_CdnSettings'; + protected $cdnDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; + protected $statusDataType = ''; + + + public function setCdn(Google_Service_YouTube_CdnSettings $cdn) + { + $this->cdn = $cdn; + } + public function getCdn() + { + return $this->cdn; + } + public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $reason; + public $severity; + public $type; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $closedCaptionsIngestionUrl; + public $isReusable; + + + public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) + { + $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; + } + public function getClosedCaptionsIngestionUrl() + { + return $this->closedCaptionsIngestionUrl; + } + public function setIsReusable($isReusable) + { + $this->isReusable = $isReusable; + } + public function getIsReusable() + { + return $this->isReusable; + } +} + +class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection +{ + protected $collection_key = 'configurationIssues'; + protected $internal_gapi_mappings = array( + ); + protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; + protected $configurationIssuesDataType = 'array'; + public $lastUpdateTimeS; + public $status; + + + public function setConfigurationIssues($configurationIssues) + { + $this->configurationIssues = $configurationIssues; + } + public function getConfigurationIssues() + { + return $this->configurationIssues; + } + public function setLastUpdateTimeS($lastUpdateTimeS) + { + $this->lastUpdateTimeS = $lastUpdateTimeS; + } + public function getLastUpdateTimeS() + { + return $this->lastUpdateTimeS; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveStream'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_LiveStreamSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $description; + public $isDefaultStream; + 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 setIsDefaultStream($isDefaultStream) + { + $this->isDefaultStream = $isDefaultStream; + } + public function getIsDefaultStream() + { + return $this->isDefaultStream; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; + protected $healthStatusDataType = ''; + public $streamStatus; + + + public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) + { + $this->healthStatus = $healthStatus; + } + public function getHealthStatus() + { + return $this->healthStatus; + } + public function setStreamStatus($streamStatus) + { + $this->streamStatus = $streamStatus; + } + public function getStreamStatus() + { + return $this->streamStatus; + } +} + +class Google_Service_YouTube_LocalizedProperty extends Google_Collection +{ + protected $collection_key = 'localized'; + protected $internal_gapi_mappings = array( + ); + public $default; + protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; + protected $defaultLanguageDataType = ''; + protected $localizedType = 'Google_Service_YouTube_LocalizedString'; + protected $localizedDataType = 'array'; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized($localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } +} + +class Google_Service_YouTube_LocalizedString extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $language; + public $value; + + + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_MonitorStreamInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $broadcastStreamDelayMs; + public $embedHtml; + public $enableMonitorStream; + + + public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) + { + $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; + } + public function getBroadcastStreamDelayMs() + { + return $this->broadcastStreamDelayMs; + } + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } + public function setEnableMonitorStream($enableMonitorStream) + { + $this->enableMonitorStream = $enableMonitorStream; + } + public function getEnableMonitorStream() + { + return $this->enableMonitorStream; + } +} + +class Google_Service_YouTube_PageInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizationsDataType = 'map'; + protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; + protected $playerDataType = ''; + protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; + protected $statusDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $itemCount; + + + public function setItemCount($itemCount) + { + $this->itemCount = $itemCount; + } + public function getItemCount() + { + return $this->itemCount; + } +} + +class Google_Service_YouTube_PlaylistItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; + protected $statusDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $playlistId; + public $position; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setPlaylistId($playlistId) + { + $this->playlistId = $playlistId; + } + public function getPlaylistId() + { + return $this->playlistId; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistItemStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privacyStatus; + + + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_PlaylistListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Playlist'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_PlaylistLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_PlaylistPlayer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $embedHtml; + + + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } +} + +class Google_Service_YouTube_PlaylistSnippet extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $defaultLanguage; + public $description; + protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privacyStatus; + + + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_PromotedItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customMessage; + protected $idType = 'Google_Service_YouTube_PromotedItemId'; + protected $idDataType = ''; + public $promotedByContentOwner; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + + public function setCustomMessage($customMessage) + { + $this->customMessage = $customMessage; + } + public function getCustomMessage() + { + return $this->customMessage; + } + public function setId(Google_Service_YouTube_PromotedItemId $id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPromotedByContentOwner($promotedByContentOwner) + { + $this->promotedByContentOwner = $promotedByContentOwner; + } + public function getPromotedByContentOwner() + { + return $this->promotedByContentOwner; + } + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) + { + $this->timing = $timing; + } + public function getTiming() + { + return $this->timing; + } +} + +class Google_Service_YouTube_PromotedItemId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $recentlyUploadedBy; + public $type; + public $videoId; + public $websiteUrl; + + + public function setRecentlyUploadedBy($recentlyUploadedBy) + { + $this->recentlyUploadedBy = $recentlyUploadedBy; + } + public function getRecentlyUploadedBy() + { + return $this->recentlyUploadedBy; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_YouTube_PropertyValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_SearchResult'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_SearchResult extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $idType = 'Google_Service_YouTube_ResourceId'; + protected $idDataType = ''; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId(Google_Service_YouTube_ResourceId $id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_SearchResultSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $liveBroadcastContent; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLiveBroadcastContent($liveBroadcastContent) + { + $this->liveBroadcastContent = $liveBroadcastContent; + } + public function getLiveBroadcastContent() + { + return $this->liveBroadcastContent; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_Subscription extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; + protected $snippetDataType = ''; + protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; + protected $subscriberSnippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) + { + $this->subscriberSnippet = $subscriberSnippet; + } + public function getSubscriberSnippet() + { + return $this->subscriberSnippet; + } +} + +class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activityType; + public $newItemCount; + public $totalItemCount; + + + public function setActivityType($activityType) + { + $this->activityType = $activityType; + } + public function getActivityType() + { + return $this->activityType; + } + public function setNewItemCount($newItemCount) + { + $this->newItemCount = $newItemCount; + } + public function getNewItemCount() + { + return $this->newItemCount; + } + public function setTotalItemCount($totalItemCount) + { + $this->totalItemCount = $totalItemCount; + } + public function getTotalItemCount() + { + return $this->totalItemCount; + } +} + +class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Subscription'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_SubscriptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $description; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_Thumbnail extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $defaultType = 'Google_Service_YouTube_Thumbnail'; + protected $defaultDataType = ''; + protected $highType = 'Google_Service_YouTube_Thumbnail'; + protected $highDataType = ''; + protected $maxresType = 'Google_Service_YouTube_Thumbnail'; + protected $maxresDataType = ''; + protected $mediumType = 'Google_Service_YouTube_Thumbnail'; + protected $mediumDataType = ''; + protected $standardType = 'Google_Service_YouTube_Thumbnail'; + protected $standardDataType = ''; + + + public function setDefault(Google_Service_YouTube_Thumbnail $default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setHigh(Google_Service_YouTube_Thumbnail $high) + { + $this->high = $high; + } + public function getHigh() + { + return $this->high; + } + public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) + { + $this->maxres = $maxres; + } + public function getMaxres() + { + return $this->maxres; + } + public function setMedium(Google_Service_YouTube_Thumbnail $medium) + { + $this->medium = $medium; + } + public function getMedium() + { + return $this->medium; + } + public function setStandard(Google_Service_YouTube_Thumbnail $standard) + { + $this->standard = $standard; + } + public function getStandard() + { + return $this->standard; + } +} + +class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_TokenPagination extends Google_Model +{ +} + +class Google_Service_YouTube_Video extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; + protected $ageGatingDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; + protected $contentDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; + protected $fileDetailsDataType = ''; + public $id; + public $kind; + protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; + protected $liveStreamingDetailsDataType = ''; + protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizationsDataType = 'map'; + protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; + protected $monetizationDetailsDataType = ''; + protected $playerType = 'Google_Service_YouTube_VideoPlayer'; + protected $playerDataType = ''; + protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; + protected $processingDetailsDataType = ''; + protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; + protected $projectDetailsDataType = ''; + protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; + protected $recordingDetailsDataType = ''; + protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_VideoStatus'; + protected $statusDataType = ''; + protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; + protected $suggestionsDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; + protected $topicDetailsDataType = ''; + + + public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) + { + $this->ageGating = $ageGating; + } + public function getAgeGating() + { + return $this->ageGating; + } + public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) + { + $this->conversionPings = $conversionPings; + } + public function getConversionPings() + { + return $this->conversionPings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) + { + $this->fileDetails = $fileDetails; + } + public function getFileDetails() + { + return $this->fileDetails; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) + { + $this->liveStreamingDetails = $liveStreamingDetails; + } + public function getLiveStreamingDetails() + { + return $this->liveStreamingDetails; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + 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_VideoAbuseReport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comments; + public $language; + public $reasonId; + public $secondaryReasonId; + public $videoId; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setReasonId($reasonId) + { + $this->reasonId = $reasonId; + } + public function getReasonId() + { + return $this->reasonId; + } + public function setSecondaryReasonId($secondaryReasonId) + { + $this->secondaryReasonId = $secondaryReasonId; + } + public function getSecondaryReasonId() + { + return $this->secondaryReasonId; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection +{ + protected $collection_key = 'secondaryReasons'; + protected $internal_gapi_mappings = array( + ); + public $label; + protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; + protected $secondaryReasonsDataType = 'array'; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setSecondaryReasons($secondaryReasons) + { + $this->secondaryReasons = $secondaryReasons; + } + public function getSecondaryReasons() + { + return $this->secondaryReasons; + } +} + +class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $label; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } +} + +class Google_Service_YouTube_VideoAgeGating extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoCategorySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $assignable; + public $channelId; + public $title; + + + public function setAssignable($assignable) + { + $this->assignable = $assignable; + } + public function getAssignable() + { + return $this->assignable; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $caption; + protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; + protected $contentRatingDataType = ''; + protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; + protected $countryRestrictionDataType = ''; + public $definition; + public $dimension; + public $duration; + public $licensedContent; + protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; + protected $regionRestrictionDataType = ''; + + + public function setCaption($caption) + { + $this->caption = $caption; + } + public function getCaption() + { + return $this->caption; + } + public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) + { + $this->contentRating = $contentRating; + } + public function getContentRating() + { + return $this->contentRating; + } + public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) + { + $this->countryRestriction = $countryRestriction; + } + public function getCountryRestriction() + { + return $this->countryRestriction; + } + public function setDefinition($definition) + { + $this->definition = $definition; + } + public function getDefinition() + { + return $this->definition; + } + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setLicensedContent($licensedContent) + { + $this->licensedContent = $licensedContent; + } + public function getLicensedContent() + { + return $this->licensedContent; + } + public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) + { + $this->regionRestriction = $regionRestriction; + } + public function getRegionRestriction() + { + return $this->regionRestriction; + } +} + +class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection +{ + protected $collection_key = 'blocked'; + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); + protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; + protected $pingsDataType = 'array'; + + + public function setPings($pings) + { + $this->pings = $pings; + } + public function getPings() + { + return $this->pings; + } +} + +class Google_Service_YouTube_VideoFileDetails extends Google_Collection +{ + protected $collection_key = 'videoStreams'; + protected $internal_gapi_mappings = array( + ); + protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; + protected $audioStreamsDataType = 'array'; + public $bitrateBps; + public $container; + public $creationTime; + public $durationMs; + public $fileName; + public $fileSize; + public $fileType; + protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; + protected $recordingLocationDataType = ''; + protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; + protected $videoStreamsDataType = 'array'; + + + public function setAudioStreams($audioStreams) + { + $this->audioStreams = $audioStreams; + } + public function getAudioStreams() + { + return $this->audioStreams; + } + public function setBitrateBps($bitrateBps) + { + $this->bitrateBps = $bitrateBps; + } + public function getBitrateBps() + { + return $this->bitrateBps; + } + public function setContainer($container) + { + $this->container = $container; + } + public function getContainer() + { + return $this->container; + } + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDurationMs($durationMs) + { + $this->durationMs = $durationMs; + } + public function getDurationMs() + { + return $this->durationMs; + } + public function setFileName($fileName) + { + $this->fileName = $fileName; + } + public function getFileName() + { + return $this->fileName; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } + public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) + { + $this->recordingLocation = $recordingLocation; + } + public function getRecordingLocation() + { + return $this->recordingLocation; + } + public function setVideoStreams($videoStreams) + { + $this->videoStreams = $videoStreams; + } + public function getVideoStreams() + { + return $this->videoStreams; + } +} + +class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoRating'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Video'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actualEndTime; + public $actualStartTime; + public $concurrentViewers; + public $scheduledEndTime; + public $scheduledStartTime; + + + public function setActualEndTime($actualEndTime) + { + $this->actualEndTime = $actualEndTime; + } + public function getActualEndTime() + { + return $this->actualEndTime; + } + public function setActualStartTime($actualStartTime) + { + $this->actualStartTime = $actualStartTime; + } + public function getActualStartTime() + { + return $this->actualStartTime; + } + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setScheduledEndTime($scheduledEndTime) + { + $this->scheduledEndTime = $scheduledEndTime; + } + public function getScheduledEndTime() + { + return $this->scheduledEndTime; + } + public function setScheduledStartTime($scheduledStartTime) + { + $this->scheduledStartTime = $scheduledStartTime; + } + public function getScheduledStartTime() + { + return $this->scheduledStartTime; + } +} + +class Google_Service_YouTube_VideoLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accessType = 'Google_Service_YouTube_AccessPolicy'; + protected $accessDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $embedHtml; + + + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } +} + +class Google_Service_YouTube_VideoProcessingDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $editorSuggestionsAvailability; + public $fileDetailsAvailability; + public $processingFailureReason; + public $processingIssuesAvailability; + protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; + protected $processingProgressDataType = ''; + public $processingStatus; + public $tagSuggestionsAvailability; + public $thumbnailsAvailability; + + + public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) + { + $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; + } + public function getEditorSuggestionsAvailability() + { + return $this->editorSuggestionsAvailability; + } + public function setFileDetailsAvailability($fileDetailsAvailability) + { + $this->fileDetailsAvailability = $fileDetailsAvailability; + } + public function getFileDetailsAvailability() + { + return $this->fileDetailsAvailability; + } + public function setProcessingFailureReason($processingFailureReason) + { + $this->processingFailureReason = $processingFailureReason; + } + public function getProcessingFailureReason() + { + return $this->processingFailureReason; + } + public function setProcessingIssuesAvailability($processingIssuesAvailability) + { + $this->processingIssuesAvailability = $processingIssuesAvailability; + } + public function getProcessingIssuesAvailability() + { + return $this->processingIssuesAvailability; + } + public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) + { + $this->processingProgress = $processingProgress; + } + public function getProcessingProgress() + { + return $this->processingProgress; + } + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + public function getProcessingStatus() + { + return $this->processingStatus; + } + public function setTagSuggestionsAvailability($tagSuggestionsAvailability) + { + $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; + } + public function getTagSuggestionsAvailability() + { + return $this->tagSuggestionsAvailability; + } + public function setThumbnailsAvailability($thumbnailsAvailability) + { + $this->thumbnailsAvailability = $thumbnailsAvailability; + } + public function getThumbnailsAvailability() + { + return $this->thumbnailsAvailability; + } +} + +class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $tags; + + + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_YouTube_VideoRating extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $locationType = 'Google_Service_YouTube_GeoPoint'; + protected $locationDataType = ''; + public $locationDescription; + public $recordingDate; + + + public function setLocation(Google_Service_YouTube_GeoPoint $location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setLocationDescription($locationDescription) + { + $this->locationDescription = $locationDescription; + } + public function getLocationDescription() + { + return $this->locationDescription; + } + public function setRecordingDate($recordingDate) + { + $this->recordingDate = $recordingDate; + } + public function getRecordingDate() + { + return $this->recordingDate; + } +} + +class Google_Service_YouTube_VideoSnippet extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $categoryId; + public $channelId; + public $channelTitle; + public $defaultAudioLanguage; + public $defaultLanguage; + public $description; + public $liveBroadcastContent; + protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setCategoryId($categoryId) + { + $this->categoryId = $categoryId; + } + public function getCategoryId() + { + return $this->categoryId; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDefaultAudioLanguage($defaultAudioLanguage) + { + $this->defaultAudioLanguage = $defaultAudioLanguage; + } + public function getDefaultAudioLanguage() + { + return $this->defaultAudioLanguage; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLiveBroadcastContent($liveBroadcastContent) + { + $this->liveBroadcastContent = $liveBroadcastContent; + } + public function getLiveBroadcastContent() + { + return $this->liveBroadcastContent; + } + public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $embeddable; + public $failureReason; + public $license; + public $privacyStatus; + public $publicStatsViewable; + public $publishAt; + public $rejectionReason; + public $uploadStatus; + + + public function setEmbeddable($embeddable) + { + $this->embeddable = $embeddable; + } + public function getEmbeddable() + { + return $this->embeddable; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setLicense($license) + { + $this->license = $license; + } + public function getLicense() + { + return $this->license; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } + public function setPublicStatsViewable($publicStatsViewable) + { + $this->publicStatsViewable = $publicStatsViewable; + } + public function getPublicStatsViewable() + { + return $this->publicStatsViewable; + } + public function setPublishAt($publishAt) + { + $this->publishAt = $publishAt; + } + public function getPublishAt() + { + return $this->publishAt; + } + public function setRejectionReason($rejectionReason) + { + $this->rejectionReason = $rejectionReason; + } + public function getRejectionReason() + { + return $this->rejectionReason; + } + public function setUploadStatus($uploadStatus) + { + $this->uploadStatus = $uploadStatus; + } + public function getUploadStatus() + { + return $this->uploadStatus; + } +} + +class Google_Service_YouTube_VideoSuggestions extends Google_Collection +{ + protected $collection_key = 'tagSuggestions'; + protected $internal_gapi_mappings = array( + ); + public $editorSuggestions; + public $processingErrors; + public $processingHints; + public $processingWarnings; + protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; + protected $tagSuggestionsDataType = 'array'; + + + public function setEditorSuggestions($editorSuggestions) + { + $this->editorSuggestions = $editorSuggestions; + } + public function getEditorSuggestions() + { + return $this->editorSuggestions; + } + public function setProcessingErrors($processingErrors) + { + $this->processingErrors = $processingErrors; + } + public function getProcessingErrors() + { + return $this->processingErrors; + } + public function setProcessingHints($processingHints) + { + $this->processingHints = $processingHints; + } + public function getProcessingHints() + { + return $this->processingHints; + } + public function setProcessingWarnings($processingWarnings) + { + $this->processingWarnings = $processingWarnings; + } + public function getProcessingWarnings() + { + return $this->processingWarnings; + } + public function setTagSuggestions($tagSuggestions) + { + $this->tagSuggestions = $tagSuggestions; + } + public function getTagSuggestions() + { + return $this->tagSuggestions; + } +} + +class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection +{ + protected $collection_key = 'categoryRestricts'; + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); + public $relevantTopicIds; + public $topicIds; + + + public function setRelevantTopicIds($relevantTopicIds) + { + $this->relevantTopicIds = $relevantTopicIds; + } + public function getRelevantTopicIds() + { + return $this->relevantTopicIds; + } + public function setTopicIds($topicIds) + { + $this->topicIds = $topicIds; + } + public function getTopicIds() + { + return $this->topicIds; + } +} + +class Google_Service_YouTube_WatchSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} From 6dc8de145634c2b9d4cf971a8e1020d446f53bc2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 28 Jun 2015 10:53:47 -0700 Subject: [PATCH 0856/1274] Updated CloudUserAccounts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudUserAccounts.php | 1806 +--------------------- 1 file changed, 1 insertion(+), 1805 deletions(-) diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php index 4bc63e9c3..e197b7c61 100644 --- a/src/Google/Service/CloudUserAccounts.php +++ b/src/Google/Service/CloudUserAccounts.php @@ -1,1805 +1 @@ - - * API for the Google Cloud User Accounts service.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_CloudUserAccounts extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS = - "https://www.googleapis.com/auth/cloud.useraccounts"; - /** View your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS_READONLY = - "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; - /** Manage your Google Compute Accounts. */ - const COMPUTEACCOUNTS = - "https://www.googleapis.com/auth/computeaccounts"; - /** View your Google Compute Accounts. */ - const COMPUTEACCOUNTS_READONLY = - "https://www.googleapis.com/auth/computeaccounts.readonly"; - - public $globalAccountsOperations; - public $groups; - public $linux; - public $users; - - - /** - * Constructs the internal representation of the CloudUserAccounts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'clouduseraccounts/vm_alpha/projects/'; - $this->version = 'vm_alpha'; - $this->serviceName = 'clouduseraccounts'; - - $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource( - $this, - $this->serviceName, - 'globalAccountsOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_CloudUserAccounts_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'addMember' => array( - 'path' => '{project}/global/groups/{groupName}/addMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeMember' => array( - 'path' => '{project}/global/groups/{groupName}/removeMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->linux = new Google_Service_CloudUserAccounts_Linux_Resource( - $this, - $this->serviceName, - 'linux', - array( - 'methods' => array( - 'getAuthorizedKeysView' => array( - 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getLinuxAccountViews' => array( - 'path' => '{project}/zones/{zone}/linuxAccountViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'user' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_CloudUserAccounts_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'addPublicKey' => array( - 'path' => '{project}/global/users/{user}/addPublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removePublicKey' => array( - 'path' => '{project}/global/users/{user}/removePublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "globalAccountsOperations" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations; - * - */ -class Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified operation resource. (globalAccountsOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalAccountsOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalAccountsOperations.listGlobalAccountsOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_CloudUserAccounts_OperationList - */ - public function listGlobalAccountsOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $groups = $clouduseraccountsService->groups; - * - */ -class Google_Service_CloudUserAccounts_Groups_Resource extends Google_Service_Resource -{ - - /** - * Adds users to the specified group. (groups.addMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsAddMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Deletes the specified Group resource. (groups.delete) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function delete($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Returns the specified Group resource. (groups.get) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Group - */ - public function get($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group"); - } - - /** - * Creates a Group resource in the specified project using the data included in - * the request. (groups.insert) - * - * @param string $project Project ID for this request. - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves the list of groups contained within the specified project. - * (groups.listGroups) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_CloudUserAccounts_GroupList - */ - public function listGroups($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList"); - } - - /** - * Removes users from the specified group. (groups.removeMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsRemoveMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation"); - } -} - -/** - * The "linux" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $linux = $clouduseraccountsService->linux; - * - */ -class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of authorized public keys for a specific user account. - * (linux.getAuthorizedKeysView) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $user The user account for which you want to get a list of - * authorized public keys. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the view. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse - */ - public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse"); - } - - /** - * Retrieves a list of user accounts for an instance within a specific project. - * (linux.getLinuxAccountViews) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the views. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string user If provided, the user requesting the views. If left - * blank, the system is requesting the views, instead of a particular user. - * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse - */ - public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $users = $clouduseraccountsService->users; - * - */ -class Google_Service_CloudUserAccounts_Users_Resource extends Google_Service_Resource -{ - - /** - * Adds a public key to the specified User resource with the data included in - * the request. (users.addPublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param Google_PublicKey $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Deletes the specified User resource. (users.delete) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function delete($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Returns the specified User resource. (users.get) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_User - */ - public function get($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User"); - } - - /** - * Creates a User resource in the specified project using the data included in - * the request. (users.insert) - * - * @param string $project Project ID for this request. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves a list of users contained within the specified project. - * (users.listUsers) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_CloudUserAccounts_UserList - */ - public function listUsers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList"); - } - - /** - * Removes the specified public key from the user. (users.removePublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param string $fingerprint The fingerprint of the public key to delete. - * Public keys are identified by their fingerprint, which is defined by RFC4716 - * to be the MD5 digest of the public key. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function removePublicKey($project, $user, $fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); - $params = array_merge($params, $optParams); - return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); - } -} - - - - -class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $keys; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_CloudUserAccounts_Group extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $members; - public $name; - public $selfLink; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - 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_CloudUserAccounts_GroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_Group'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection -{ - protected $collection_key = 'userViews'; - protected $internal_gapi_mappings = array( - ); - protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView'; - protected $groupViewsDataType = 'array'; - public $kind; - protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView'; - protected $userViewsDataType = 'array'; - - - public function setGroupViews($groupViews) - { - $this->groupViews = $groupViews; - } - public function getGroupViews() - { - return $this->groupViews; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserViews($userViews) - { - $this->userViews = $userViews; - } - public function getUserViews() - { - return $this->userViews; - } -} - -class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $gid; - public $groupName; - public $members; - - - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setGroupName($groupName) - { - $this->groupName = $groupName; - } - public function getGroupName() - { - return $this->groupName; - } - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } -} - -class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gecos; - public $gid; - public $homeDirectory; - public $shell; - public $uid; - public $username; - - - public function setGecos($gecos) - { - $this->gecos = $gecos; - } - public function getGecos() - { - return $this->gecos; - } - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setHomeDirectory($homeDirectory) - { - $this->homeDirectory = $homeDirectory; - } - public function getHomeDirectory() - { - return $this->homeDirectory; - } - public function setShell($shell) - { - $this->shell = $shell; - } - public function getShell() - { - return $this->shell; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_CloudUserAccounts_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_CloudUserAccounts_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_CloudUserAccounts_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_CloudUserAccounts_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CloudUserAccounts_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CloudUserAccounts_PublicKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $expirationTimestamp; - public $fingerprint; - public $key; - - - 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 setExpirationTimestamp($expirationTimestamp) - { - $this->expirationTimestamp = $expirationTimestamp; - } - public function getExpirationTimestamp() - { - return $this->expirationTimestamp; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_CloudUserAccounts_User extends Google_Collection -{ - protected $collection_key = 'publicKeys'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $groups; - public $id; - public $kind; - public $name; - public $owner; - protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey'; - protected $publicKeysDataType = 'array'; - public $selfLink; - - - 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 setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setOwner($owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setPublicKeys($publicKeys) - { - $this->publicKeys = $publicKeys; - } - public function getPublicKeys() - { - return $this->publicKeys; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_UserList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} +skipped \ No newline at end of file From 8c0895ae6c093c769f530926909d197a45e75509 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Sun, 28 Jun 2015 10:53:48 -0700 Subject: [PATCH 0857/1274] Updated DeploymentManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DeploymentManager.php | 1601 +--------------------- 1 file changed, 1 insertion(+), 1600 deletions(-) diff --git a/src/Google/Service/DeploymentManager.php b/src/Google/Service/DeploymentManager.php index 30d74421b..e197b7c61 100644 --- a/src/Google/Service/DeploymentManager.php +++ b/src/Google/Service/DeploymentManager.php @@ -1,1600 +1 @@ - - * The Deployment Manager API allows users to declaratively configure, deploy - * and run complex solutions on the Google Cloud Platform.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_DeploymentManager extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $deployments; - public $manifests; - public $operations; - public $resources; - public $types; - - - /** - * Constructs the internal representation of the DeploymentManager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'deploymentmanager/v2beta2/projects/'; - $this->version = 'v2beta2'; - $this->serviceName = 'deploymentmanager'; - - $this->deployments = new Google_Service_DeploymentManager_Deployments_Resource( - $this, - $this->serviceName, - 'deployments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deletePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createPolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deletePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createPolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->manifests = new Google_Service_DeploymentManager_Manifests_Resource( - $this, - $this->serviceName, - 'manifests', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'manifest' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_DeploymentManager_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->resources = new Google_Service_DeploymentManager_Resources_Resource( - $this, - $this->serviceName, - 'resources', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/resources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->types = new Google_Service_DeploymentManager_Types_Resource( - $this, - $this->serviceName, - 'types', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/global/types', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "deployments" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $deployments = $deploymentmanagerService->deployments; - * - */ -class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource -{ - - /** - * Deletes a deployment and all of the resources in the deployment. - * (deployments.delete) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function delete($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Gets information about a specific deployment. (deployments.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Deployment - */ - public function get($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment"); - } - - /** - * Creates a deployment and all of the resources described by the deployment - * manifest. (deployments.insert) - * - * @param string $project The project ID for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Lists all deployments for a given project. (deployments.listDeployments) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_DeploymentManager_DeploymentsListResponse - */ - public function listDeployments($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse"); - } - - /** - * Updates a deployment and all of the resources described by the deployment - * manifest. This method supports patch semantics. (deployments.patch) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string updatePolicy Sets the policy to use for updating resources. - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. - * @return Google_Service_DeploymentManager_Operation - */ - public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Updates a deployment and all of the resources described by the deployment - * manifest. (deployments.update) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string updatePolicy Sets the policy to use for updating resources. - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. - * @return Google_Service_DeploymentManager_Operation - */ - public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation"); - } -} - -/** - * The "manifests" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $manifests = $deploymentmanagerService->manifests; - * - */ -class Google_Service_DeploymentManager_Manifests_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a specific manifest. (manifests.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $manifest The name of the manifest for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Manifest - */ - public function get($project, $deployment, $manifest, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest"); - } - - /** - * Lists all manifests for a given deployment. (manifests.listManifests) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_DeploymentManager_ManifestsListResponse - */ - public function listManifests($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $operations = $deploymentmanagerService->operations; - * - */ -class Google_Service_DeploymentManager_Operations_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a specific operation. (operations.get) - * - * @param string $project The project ID for this request. - * @param string $operation The name of the operation for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Lists all operations for a project. (operations.listOperations) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_DeploymentManager_OperationsListResponse - */ - public function listOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse"); - } -} - -/** - * The "resources" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $resources = $deploymentmanagerService->resources; - * - */ -class Google_Service_DeploymentManager_Resources_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a single resource. (resources.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $resource The name of the resource for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_DeploymentmanagerResource - */ - public function get($project, $deployment, $resource, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource"); - } - - /** - * Lists all resources in a given deployment. (resources.listResources) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_DeploymentManager_ResourcesListResponse - */ - public function listResources($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse"); - } -} - -/** - * The "types" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $types = $deploymentmanagerService->types; - * - */ -class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Resource -{ - - /** - * Lists all resource types for Deployment Manager. (types.listTypes) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_DeploymentManager_TypesListResponse - */ - public function listTypes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse"); - } -} - - - - -class Google_Service_DeploymentManager_Deployment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $fingerprint; - public $id; - public $insertTime; - public $intent; - public $manifest; - public $name; - public $state; - protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration'; - protected $targetDataType = ''; - protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; - protected $updateDataType = ''; - public $updateTime; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function 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 setIntent($intent) - { - $this->intent = $intent; - } - public function getIntent() - { - return $this->intent; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } -} - -class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $errors; - public $manifest; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } -} - -class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $finalProperties; - public $id; - public $insertTime; - public $manifest; - public $name; - public $properties; - public $type; - protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate'; - protected $updateDataType = ''; - public $updateTime; - public $url; - - - public function setFinalProperties($finalProperties) - { - $this->finalProperties = $finalProperties; - } - public function getFinalProperties() - { - return $this->finalProperties; - } - 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 setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection -{ - protected $collection_key = 'deployments'; - protected $internal_gapi_mappings = array( - ); - protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment'; - protected $deploymentsDataType = 'array'; - public $nextPageToken; - - - public function setDeployments($deployments) - { - $this->deployments = $deployments; - } - public function getDeployments() - { - return $this->deployments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_DeploymentManager_ImportFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - public $name; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_DeploymentManager_Manifest extends Google_Collection -{ - protected $collection_key = 'imports'; - protected $internal_gapi_mappings = array( - ); - public $config; - public $evaluatedConfig; - public $id; - protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; - protected $importsDataType = 'array'; - public $insertTime; - public $layout; - public $name; - public $selfLink; - - - public function setConfig($config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setEvaluatedConfig($evaluatedConfig) - { - $this->evaluatedConfig = $evaluatedConfig; - } - public function getEvaluatedConfig() - { - return $this->evaluatedConfig; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImports($imports) - { - $this->imports = $imports; - } - public function getImports() - { - return $this->imports; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setLayout($layout) - { - $this->layout = $layout; - } - public function getLayout() - { - return $this->layout; - } - 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_DeploymentManager_ManifestsListResponse extends Google_Collection -{ - protected $collection_key = 'manifests'; - protected $internal_gapi_mappings = array( - ); - protected $manifestsType = 'Google_Service_DeploymentManager_Manifest'; - protected $manifestsDataType = 'array'; - public $nextPageToken; - - - public function setManifests($manifests) - { - $this->manifests = $manifests; - } - public function getManifests() - { - return $this->manifests; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_DeploymentManager_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_DeploymentManager_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_DeploymentManager_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_DeploymentManager_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_DeploymentManager_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $errors; - public $finalProperties; - public $intent; - public $manifest; - public $properties; - public $state; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setFinalProperties($finalProperties) - { - $this->finalProperties = $finalProperties; - } - public function getFinalProperties() - { - return $this->finalProperties; - } - public function setIntent($intent) - { - $this->intent = $intent; - } - public function getIntent() - { - return $this->intent; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_DeploymentManager_ResourcesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource'; - protected $resourcesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection -{ - protected $collection_key = 'imports'; - protected $internal_gapi_mappings = array( - ); - public $config; - protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; - protected $importsDataType = 'array'; - - - public function setConfig($config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setImports($imports) - { - $this->imports = $imports; - } - public function getImports() - { - return $this->imports; - } -} - -class Google_Service_DeploymentManager_Type extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection -{ - protected $collection_key = 'types'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $typesType = 'Google_Service_DeploymentManager_Type'; - protected $typesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTypes($types) - { - $this->types = $types; - } - public function getTypes() - { - return $this->types; - } -} +skipped \ No newline at end of file From 3b9d7faec33455b4b1389e24c3f13f2aa7f2523c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 06:02:04 -0700 Subject: [PATCH 0858/1274] Updated Replicapool.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Replicapool.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index 9168b4ad5..a4ba6d8a5 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -1287,9 +1287,18 @@ class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Mod { protected $internal_gapi_mappings = array( ); + public $actionType; public $healthCheck; + public function setActionType($actionType) + { + $this->actionType = $actionType; + } + public function getActionType() + { + return $this->actionType; + } public function setHealthCheck($healthCheck) { $this->healthCheck = $healthCheck; From 9acc90f2daaecc61edb0ec99c06914c785f0a0ae Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 06:02:04 -0700 Subject: [PATCH 0859/1274] Added service Classroom.php --- src/Google/Service/Classroom.php | 1518 ++++++++++++++++++++++++++++++ 1 file changed, 1518 insertions(+) create mode 100644 src/Google/Service/Classroom.php diff --git a/src/Google/Service/Classroom.php b/src/Google/Service/Classroom.php new file mode 100644 index 000000000..109fb83bd --- /dev/null +++ b/src/Google/Service/Classroom.php @@ -0,0 +1,1518 @@ + + * Google Classroom API

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Classroom extends Google_Service +{ + /** Manage your Google Classroom classes. */ + const CLASSROOM_COURSES = + "https://www.googleapis.com/auth/classroom.courses"; + /** View your Google Classroom classes. */ + const CLASSROOM_COURSES_READONLY = + "https://www.googleapis.com/auth/classroom.courses.readonly"; + /** View the email addresses of people in your classes. */ + const CLASSROOM_PROFILE_EMAILS = + "https://www.googleapis.com/auth/classroom.profile.emails"; + /** View the profile photos of people in your classes. */ + const CLASSROOM_PROFILE_PHOTOS = + "https://www.googleapis.com/auth/classroom.profile.photos"; + /** Manage your Google Classroom class rosters. */ + const CLASSROOM_ROSTERS = + "https://www.googleapis.com/auth/classroom.rosters"; + /** View your Google Classroom class rosters. */ + const CLASSROOM_ROSTERS_READONLY = + "https://www.googleapis.com/auth/classroom.rosters.readonly"; + + public $courses; + public $courses_aliases; + public $courses_students; + public $courses_teachers; + public $invitations; + public $userProfiles; + + + /** + * Constructs the internal representation of the Classroom service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://classroom.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'classroom'; + + $this->courses = new Google_Service_Classroom_Courses_Resource( + $this, + $this->serviceName, + 'courses', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/courses', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/courses/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/courses/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/courses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teacherId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'studentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/courses/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'v1/courses/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->courses_aliases = new Google_Service_Classroom_CoursesAliases_Resource( + $this, + $this->serviceName, + 'aliases', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/courses/{courseId}/aliases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/courses/{courseId}/aliases/{alias}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'alias' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/courses/{courseId}/aliases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->courses_students = new Google_Service_Classroom_CoursesStudents_Resource( + $this, + $this->serviceName, + 'students', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/courses/{courseId}/students', + 'httpMethod' => 'POST', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'enrollmentCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/courses/{courseId}/students/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/courses/{courseId}/students/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/courses/{courseId}/students', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->courses_teachers = new Google_Service_Classroom_CoursesTeachers_Resource( + $this, + $this->serviceName, + 'teachers', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/courses/{courseId}/teachers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/courses/{courseId}/teachers/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/courses/{courseId}/teachers/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/courses/{courseId}/teachers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->invitations = new Google_Service_Classroom_Invitations_Resource( + $this, + $this->serviceName, + 'invitations', + array( + 'methods' => array( + 'accept' => array( + 'path' => 'v1/invitations/{id}:accept', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v1/invitations', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/invitations/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/invitations/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/invitations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'courseId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->userProfiles = new Google_Service_Classroom_UserProfiles_Resource( + $this, + $this->serviceName, + 'userProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/userProfiles/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "courses" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $courses = $classroomService->courses; + * + */ +class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource +{ + + /** + * Creates a course. The user specified as the primary teacher in + * `primary_teacher_id` is the owner of the created course and added as a + * teacher. This method returns the following error codes: * `PERMISSION_DENIED` + * if the requesting user is not permitted to create courses. * `NOT_FOUND` if + * the primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was + * specified and already exists. (courses.create) + * + * @param Google_Course $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Course + */ + public function create(Google_Service_Classroom_Course $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Classroom_Course"); + } + + /** + * Deletes a course. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to delete the + * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * (courses.delete) + * + * @param string $id Identifier of the course to delete. This may either be the + * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Returns a course. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to access the + * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * (courses.get) + * + * @param string $id Identifier of the course to return. This may either be the + * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Course + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Classroom_Course"); + } + + /** + * Returns a list of courses that the requesting user is permitted to view, + * restricted to those that match the request. This method returns the following + * error codes: * `INVALID_ARGUMENT` if the query argument is malformed. * + * `NOT_FOUND` if any users specified in the query arguments do not exist. + * (courses.listCourses) + * + * @param array $optParams Optional parameters. + * + * @opt_param string teacherId Restricts returned courses to those having a + * teacher with the specified identifier, or an alias that identifies a teacher. + * The following aliases are supported: * the e-mail address of the user * the + * string literal `"me"`, indicating that the requesting user + * @opt_param string pageToken + * [nextPageToken][google.classroom.v1.ListCoursesResponse.next_page_token] + * value returned from a previous + * [list][google.classroom.v1.Courses.ListCourses] call, indicating that the + * subsequent page of results should be returned. The + * [list][google.classroom.v1.Courses.ListCourses] request must be identical to + * the one which resulted in this token. + * @opt_param string studentId Restricts returned courses to those having a + * student with the specified identifier, or an alias that identifies a student. + * The following aliases are supported: * the e-mail address of the user * the + * string literal `"me"`, indicating that the requesting user + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. The server may + * return fewer than the specified number of results. + * @return Google_Service_Classroom_ListCoursesResponse + */ + public function listCourses($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Classroom_ListCoursesResponse"); + } + + /** + * Updates one or more fields a course. This method returns the following error + * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + * modify the requested course. * `NOT_FOUND` if no course exists with the + * requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the + * update mask or if no update mask is supplied. (courses.patch) + * + * @param string $id Identifier of the course to update. This may either be the + * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param Google_Course $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Mask which identifies which fields on the course + * to update. This field is required to do an update. The update will fail if + * invalid fields are specified. Valid fields are listed below: * `name` * + * `section` * `descriptionHeading` * `description` * `room` * `courseState` + * When set in a query parameter, this should be specified as `updateMask=,,...` + * @return Google_Service_Classroom_Course + */ + public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Classroom_Course"); + } + + /** + * Updates a course. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to modify the + * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * (courses.update) + * + * @param string $id Identifier of the course to update. This may either be the + * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param Google_Course $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Course + */ + public function update($id, Google_Service_Classroom_Course $postBody, $optParams = array()) + { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Classroom_Course"); + } +} + +/** + * The "aliases" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $aliases = $classroomService->aliases; + * + */ +class Google_Service_Classroom_CoursesAliases_Resource extends Google_Service_Resource +{ + + /** + * Creates an alias to a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to create the + * alias. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the + * alias already exists. (aliases.create) + * + * @param string $courseId The identifier of the course to alias. This may + * either be the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param Google_CourseAlias $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_CourseAlias + */ + public function create($courseId, Google_Service_Classroom_CourseAlias $postBody, $optParams = array()) + { + $params = array('courseId' => $courseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Classroom_CourseAlias"); + } + + /** + * Deletes an alias of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to remove the + * alias. * `NOT_FOUND` if the alias does not exist. (aliases.delete) + * + * @param string $courseId The identifier of the course whose alias should be + * deleted. This may either be the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param string $alias The alias to delete. This may not be the Classroom- + * assigned identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function delete($courseId, $alias, $optParams = array()) + { + $params = array('courseId' => $courseId, 'alias' => $alias); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Lists the aliases of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to access the + * course. * `NOT_FOUND` if the course does not exist. + * (aliases.listCoursesAliases) + * + * @param string $courseId The identifier of the course. This may either be the + * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken [nextPageToken][google.classroom.v1.ListCourseAli + * asesResponse.next_page_token] value returned from a previous + * [list][google.classroom.v1.Courses.ListCourseAliases] call, indicating that + * the subsequent page of results should be returned. The + * [list][google.classroom.v1.Courses.ListCourseAliases] request must be + * identical to the one which resulted in this token. + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. The server may + * return fewer than the specified number of results. + * @return Google_Service_Classroom_ListCourseAliasesResponse + */ + public function listCoursesAliases($courseId, $optParams = array()) + { + $params = array('courseId' => $courseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Classroom_ListCourseAliasesResponse"); + } +} +/** + * The "students" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $students = $classroomService->students; + * + */ +class Google_Service_Classroom_CoursesStudents_Resource extends Google_Service_Resource +{ + + /** + * Adds a user as a student of a course. This method returns the following error + * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + * create students in this course. * `NOT_FOUND` if the requested course ID does + * not exist. * `ALREADY_EXISTS` if the user is already a student or student in + * the course. (students.create) + * + * @param string $courseId Identifier of the course to create the student in. + * This may either be the Classroom-assigned identifier or an alias. + * @param Google_Student $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string enrollmentCode Enrollment code of the course to create the + * student in. This is required if [userId][google.classroom.v1.Student.user_id] + * corresponds to the requesting user; this may be omitted if the requesting + * user has administrative permissions to create students for any user. + * @return Google_Service_Classroom_Student + */ + public function create($courseId, Google_Service_Classroom_Student $postBody, $optParams = array()) + { + $params = array('courseId' => $courseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Classroom_Student"); + } + + /** + * Deletes a student of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to delete + * students of this course. * `NOT_FOUND` if no student of this course has the + * requested ID or if the course does not exist. (students.delete) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param string $userId Identifier of the student to delete, or an alias the + * identifies the user. The following aliases are supported: * the e-mail + * address of the user * the string literal `"me"`, indicating that the + * requesting user + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function delete($courseId, $userId, $optParams = array()) + { + $params = array('courseId' => $courseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Returns a student of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to view + * students of this course. * `NOT_FOUND` if no student of this course has the + * requested ID or if the course does not exist. (students.get) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param string $userId Identifier of the student to return, or an alias the + * identifies the user. The following aliases are supported: * the e-mail + * address of the user * the string literal `"me"`, indicating that the + * requesting user + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Student + */ + public function get($courseId, $userId, $optParams = array()) + { + $params = array('courseId' => $courseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Classroom_Student"); + } + + /** + * Returns a list of students of this course that the requester is permitted to + * view. Fails with `NOT_FOUND` if the course does not exist. + * (students.listCoursesStudents) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * [nextPageToken][google.classroom.v1.ListStudentsResponse.next_page_token] + * value returned from a previous [list][google.classroom.v1.Users.ListStudents] + * call, indicating that the subsequent page of results should be returned. The + * [list][google.classroom.v1.Users.ListStudents] request must be identical to + * the one which resulted in this token. + * @opt_param int pageSize Maximum number of items to return. Zero means no + * maximum. The server may return fewer than the specified number of results. + * @return Google_Service_Classroom_ListStudentsResponse + */ + public function listCoursesStudents($courseId, $optParams = array()) + { + $params = array('courseId' => $courseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Classroom_ListStudentsResponse"); + } +} +/** + * The "teachers" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $teachers = $classroomService->teachers; + * + */ +class Google_Service_Classroom_CoursesTeachers_Resource extends Google_Service_Resource +{ + + /** + * Creates a teacher of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to create + * teachers in this course. * `NOT_FOUND` if the requested course ID does not + * exist. * `ALREADY_EXISTS` if the user is already a teacher or student in the + * course. (teachers.create) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param Google_Teacher $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Teacher + */ + public function create($courseId, Google_Service_Classroom_Teacher $postBody, $optParams = array()) + { + $params = array('courseId' => $courseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Classroom_Teacher"); + } + + /** + * Deletes a teacher of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to delete + * teachers of this course. * `NOT_FOUND` if no teacher of this course has the + * requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the + * requested ID belongs to the primary teacher of this course. (teachers.delete) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param string $userId Identifier of the teacher to delete, or an alias the + * identifies the user. the following aliases are supported: * the e-mail + * address of the user * the string literal `"me"`, indicating that the + * requesting user + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function delete($courseId, $userId, $optParams = array()) + { + $params = array('courseId' => $courseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Returns a teacher of a course. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to view + * teachers of this course. * `NOT_FOUND` if no teacher of this course has the + * requested ID or if the course does not exist. (teachers.get) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param string $userId Identifier of the teacher to return, or an alias the + * identifies the user. the following aliases are supported: * the e-mail + * address of the user * the string literal `"me"`, indicating that the + * requesting user + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Teacher + */ + public function get($courseId, $userId, $optParams = array()) + { + $params = array('courseId' => $courseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Classroom_Teacher"); + } + + /** + * Returns a list of teachers of this course that the requester is permitted to + * view. Fails with `NOT_FOUND` if the course does not exist. + * (teachers.listCoursesTeachers) + * + * @param string $courseId Unique identifier of the course. This may either be + * the Classroom-assigned identifier or an alias. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * [nextPageToken][google.classroom.v1.ListTeachersResponse.next_page_token] + * value returned from a previous [list][google.classroom.v1.Users.ListTeachers] + * call, indicating that the subsequent page of results should be returned. The + * [list][google.classroom.v1.Users.ListTeachers] request must be identical to + * the one which resulted in this token. + * @opt_param int pageSize Maximum number of items to return. Zero means no + * maximum. The server may return fewer than the specified number of results. + * @return Google_Service_Classroom_ListTeachersResponse + */ + public function listCoursesTeachers($courseId, $optParams = array()) + { + $params = array('courseId' => $courseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Classroom_ListTeachersResponse"); + } +} + +/** + * The "invitations" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $invitations = $classroomService->invitations; + * + */ +class Google_Service_Classroom_Invitations_Resource extends Google_Service_Resource +{ + + /** + * Accepts an invitation, removing it and adding the invited user to the + * teachers or students (as appropriate) of the specified course. Only the + * invited user may accept an invitation. This method returns the following + * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + * accept the requested invitation. * `NOT_FOUND` if no invitation exists with + * the requested ID. (invitations.accept) + * + * @param string $id Identifier of the invitation to accept. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function accept($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('accept', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Creates a invitation. Only one invitation for a user and course may exist at + * a time. Delete and recreate an invitation to make changes. This method + * returns the following error codes: * `PERMISSION_DENIED` if the requesting + * user is not permitted to create invitations for this course. * `NOT_FOUND` if + * the course or the user does not exist. * `ALREADY_EXISTS` if an invitation + * for the specified user and course already exists. (invitations.create) + * + * @param Google_Invitation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Invitation + */ + public function create(Google_Service_Classroom_Invitation $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Classroom_Invitation"); + } + + /** + * Deletes a invitation. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to delete the + * requested invitation. * `NOT_FOUND` if no invitation exists with the + * requested ID. (invitations.delete) + * + * @param string $id Identifier of the invitation to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Empty + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); + } + + /** + * Returns a invitation. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to view the + * requested invitation. * `NOT_FOUND` if no invitation exists with the + * requested ID. (invitations.get) + * + * @param string $id Identifier of the invitation to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_Invitation + */ + public function get($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Classroom_Invitation"); + } + + /** + * Returns a list of invitations that the requesting user is permitted to view, + * restricted to those that match the request. *Note:* At least one of `user_id` + * or `course_id` must be supplied. (invitations.listInvitations) + * + * @param array $optParams Optional parameters. + * + * @opt_param string courseId Restricts returned invitations to those for a + * course with the specified identifier. + * @opt_param string pageToken + * [nextPageToken][google.classroom.v1.ListInvitationsRespnse.next_page_token] + * value returned from a previous + * [list][google.classroom.v1.Users.ListInvitations] call, indicating that the + * subsequent page of results should be returned. The + * [list][google.classroom.v1.Users.ListInvitations] request must be identical + * to the one which resulted in this token. + * @opt_param string userId Restricts returned invitations to those for a + * specific user. This may be the unique identifier for the user or an alias. + * The supported aliases are: * the e-mail address of the user * the string + * literal `"me"`, indicating the requesting user + * @opt_param int pageSize The maximum number of items to return. Zero means no + * maximum. The server may return fewer than the specified number of results. + * @return Google_Service_Classroom_ListInvitationsResponse + */ + public function listInvitations($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Classroom_ListInvitationsResponse"); + } +} + +/** + * The "userProfiles" collection of methods. + * Typical usage is: + * + * $classroomService = new Google_Service_Classroom(...); + * $userProfiles = $classroomService->userProfiles; + * + */ +class Google_Service_Classroom_UserProfiles_Resource extends Google_Service_Resource +{ + + /** + * Returns a user profile. This method returns the following error codes: * + * `PERMISSION_DENIED` if the requesting user is not permitted to access this + * user profile. * `NOT_FOUND` if the profile does not exist. (userProfiles.get) + * + * @param string $userId Identifier of the profile to return, or an alias the + * identifies the user. The following aliases are supported: * the e-mail + * address of the user * the string literal `"me"`, indicating the requesting + * user + * @param array $optParams Optional parameters. + * @return Google_Service_Classroom_UserProfile + */ + public function get($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Classroom_UserProfile"); + } +} + + + + +class Google_Service_Classroom_Course extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alternateLink; + public $courseState; + public $creationTime; + public $description; + public $descriptionHeading; + public $enrollmentCode; + public $id; + public $name; + public $ownerId; + public $room; + public $section; + public $updateTime; + + + public function setAlternateLink($alternateLink) + { + $this->alternateLink = $alternateLink; + } + public function getAlternateLink() + { + return $this->alternateLink; + } + public function setCourseState($courseState) + { + $this->courseState = $courseState; + } + public function getCourseState() + { + return $this->courseState; + } + 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 setDescriptionHeading($descriptionHeading) + { + $this->descriptionHeading = $descriptionHeading; + } + public function getDescriptionHeading() + { + return $this->descriptionHeading; + } + public function setEnrollmentCode($enrollmentCode) + { + $this->enrollmentCode = $enrollmentCode; + } + public function getEnrollmentCode() + { + return $this->enrollmentCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + } + public function getOwnerId() + { + return $this->ownerId; + } + public function setRoom($room) + { + $this->room = $room; + } + public function getRoom() + { + return $this->room; + } + public function setSection($section) + { + $this->section = $section; + } + public function getSection() + { + return $this->section; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_Classroom_CourseAlias extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alias; + + + public function setAlias($alias) + { + $this->alias = $alias; + } + public function getAlias() + { + return $this->alias; + } +} + +class Google_Service_Classroom_Empty extends Google_Model +{ +} + +class Google_Service_Classroom_GlobalPermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $permission; + + + public function setPermission($permission) + { + $this->permission = $permission; + } + public function getPermission() + { + return $this->permission; + } +} + +class Google_Service_Classroom_Invitation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $courseId; + public $id; + public $role; + public $userId; + + + public function setCourseId($courseId) + { + $this->courseId = $courseId; + } + public function getCourseId() + { + return $this->courseId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_Classroom_ListCourseAliasesResponse extends Google_Collection +{ + protected $collection_key = 'aliases'; + protected $internal_gapi_mappings = array( + ); + protected $aliasesType = 'Google_Service_Classroom_CourseAlias'; + protected $aliasesDataType = 'array'; + public $nextPageToken; + + + public function setAliases($aliases) + { + $this->aliases = $aliases; + } + public function getAliases() + { + return $this->aliases; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Classroom_ListCoursesResponse extends Google_Collection +{ + protected $collection_key = 'courses'; + protected $internal_gapi_mappings = array( + ); + protected $coursesType = 'Google_Service_Classroom_Course'; + protected $coursesDataType = 'array'; + public $nextPageToken; + + + public function setCourses($courses) + { + $this->courses = $courses; + } + public function getCourses() + { + return $this->courses; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Classroom_ListInvitationsResponse extends Google_Collection +{ + protected $collection_key = 'invitations'; + protected $internal_gapi_mappings = array( + ); + protected $invitationsType = 'Google_Service_Classroom_Invitation'; + protected $invitationsDataType = 'array'; + public $nextPageToken; + + + public function setInvitations($invitations) + { + $this->invitations = $invitations; + } + public function getInvitations() + { + return $this->invitations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Classroom_ListStudentsResponse extends Google_Collection +{ + protected $collection_key = 'students'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $studentsType = 'Google_Service_Classroom_Student'; + protected $studentsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setStudents($students) + { + $this->students = $students; + } + public function getStudents() + { + return $this->students; + } +} + +class Google_Service_Classroom_ListTeachersResponse extends Google_Collection +{ + protected $collection_key = 'teachers'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $teachersType = 'Google_Service_Classroom_Teacher'; + protected $teachersDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTeachers($teachers) + { + $this->teachers = $teachers; + } + public function getTeachers() + { + return $this->teachers; + } +} + +class Google_Service_Classroom_Name extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $familyName; + public $fullName; + public $givenName; + + + public function setFamilyName($familyName) + { + $this->familyName = $familyName; + } + public function getFamilyName() + { + return $this->familyName; + } + public function setFullName($fullName) + { + $this->fullName = $fullName; + } + public function getFullName() + { + return $this->fullName; + } + public function setGivenName($givenName) + { + $this->givenName = $givenName; + } + public function getGivenName() + { + return $this->givenName; + } +} + +class Google_Service_Classroom_Student extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $courseId; + protected $profileType = 'Google_Service_Classroom_UserProfile'; + protected $profileDataType = ''; + public $userId; + + + public function setCourseId($courseId) + { + $this->courseId = $courseId; + } + public function getCourseId() + { + return $this->courseId; + } + public function setProfile(Google_Service_Classroom_UserProfile $profile) + { + $this->profile = $profile; + } + public function getProfile() + { + return $this->profile; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_Classroom_Teacher extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $courseId; + protected $profileType = 'Google_Service_Classroom_UserProfile'; + protected $profileDataType = ''; + public $userId; + + + public function setCourseId($courseId) + { + $this->courseId = $courseId; + } + public function getCourseId() + { + return $this->courseId; + } + public function setProfile(Google_Service_Classroom_UserProfile $profile) + { + $this->profile = $profile; + } + public function getProfile() + { + return $this->profile; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_Classroom_UserProfile extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $emailAddress; + public $id; + protected $nameType = 'Google_Service_Classroom_Name'; + protected $nameDataType = ''; + protected $permissionsType = 'Google_Service_Classroom_GlobalPermission'; + protected $permissionsDataType = 'array'; + public $photoUrl; + + + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + public function getEmailAddress() + { + return $this->emailAddress; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName(Google_Service_Classroom_Name $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } + public function setPhotoUrl($photoUrl) + { + $this->photoUrl = $photoUrl; + } + public function getPhotoUrl() + { + return $this->photoUrl; + } +} From 6d9f692ced9ecf6fc6f39d8025da626b978775e7 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 06:02:04 -0700 Subject: [PATCH 0860/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 1204 +---------------------------- 1 file changed, 1 insertion(+), 1203 deletions(-) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 8f332cad2..e197b7c61 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -1,1203 +1 @@ - - * Lets you view Google Webmaster Tools data for your verified sites.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Webmasters extends Google_Service -{ - /** View and modify Webmaster Tools data for your verified sites. */ - const WEBMASTERS = - "https://www.googleapis.com/auth/webmasters"; - /** View Webmaster Tools data for your verified sites. */ - const WEBMASTERS_READONLY = - "https://www.googleapis.com/auth/webmasters.readonly"; - - public $searchanalytics; - public $sitemaps; - public $sites; - public $urlcrawlerrorscounts; - public $urlcrawlerrorssamples; - - - /** - * Constructs the internal representation of the Webmasters service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'webmasters/v3/'; - $this->version = 'v3'; - $this->serviceName = 'webmasters'; - - $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( - $this, - $this->serviceName, - 'searchanalytics', - array( - 'methods' => array( - 'query' => array( - 'path' => 'sites/{siteUrl}/searchAnalytics/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( - $this, - $this->serviceName, - 'sitemaps', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites/{siteUrl}/sitemaps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sitemapIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submit' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sites = new Google_Service_Webmasters_Sites_Resource( - $this, - $this->serviceName, - 'sites', - array( - 'methods' => array( - 'add' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( - $this, - $this->serviceName, - 'urlcrawlerrorscounts', - array( - 'methods' => array( - 'query' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'latestCountsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( - $this, - $this->serviceName, - 'urlcrawlerrorssamples', - array( - 'methods' => array( - 'get' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'url' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'markAsFixed' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'url' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "searchanalytics" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $searchanalytics = $webmastersService->searchanalytics; - * - */ -class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource -{ - - /** - * [LIMITED ACCESS] - * - * Query your data with filters and parameters that you define. Returns zero or - * more rows grouped by the row keys that you define. You must define a date - * range of one or more days. - * - * When date is one of the group by values, any days without data are omitted - * from the result list. If you need to know which days have data, issue a broad - * date range query grouped by date for any metric, and see which day rows are - * returned. (searchanalytics.query) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param Google_SearchAnalyticsQueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse - */ - public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); - } -} - -/** - * The "sitemaps" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $sitemaps = $webmastersService->sitemaps; - * - */ -class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource -{ - - /** - * Deletes a sitemap from this site. (sitemaps.delete) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the actual sitemap. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - */ - public function delete($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves information about a specific sitemap. (sitemaps.get) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the actual sitemap. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_WmxSitemap - */ - public function get($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); - } - - /** - * Lists the sitemaps-entries submitted for this site, or included in the - * sitemap index file (if sitemapIndex is specified in the request). - * (sitemaps.listSitemaps) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param array $optParams Optional parameters. - * - * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: - * http://www.example.com/sitemapindex.xml - * @return Google_Service_Webmasters_SitemapsListResponse - */ - public function listSitemaps($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); - } - - /** - * Submits a sitemap for a site. (sitemaps.submit) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the sitemap to add. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - */ - public function submit($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('submit', array($params)); - } -} - -/** - * The "sites" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $sites = $webmastersService->sites; - * - */ -class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource -{ - - /** - * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) - * - * @param string $siteUrl The URL of the site to add. - * @param array $optParams Optional parameters. - */ - public function add($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('add', array($params)); - } - - /** - * Removes a site from the set of the user's Webmaster Tools sites. - * (sites.delete) - * - * @param string $siteUrl The URI of the property as defined in Search Console. - * Examples: http://www.example.com/ or android-app://com.example/ - * @param array $optParams Optional parameters. - */ - public function delete($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves information about specific site. (sites.get) - * - * @param string $siteUrl The URI of the property as defined in Search Console. - * Examples: http://www.example.com/ or android-app://com.example/ - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_WmxSite - */ - public function get($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); - } - - /** - * Lists the user's Webmaster Tools sites. (sites.listSites) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_SitesListResponse - */ - public function listSites($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); - } -} - -/** - * The "urlcrawlerrorscounts" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts; - * - */ -class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a time series of the number of URL crawl errors per error category - * and platform. (urlcrawlerrorscounts.query) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param array $optParams Optional parameters. - * - * @opt_param string category The crawl error category. For example: - * serverError. If not specified, returns results for all categories. - * @opt_param string platform The user agent type (platform) that made the - * request. For example: web. If not specified, returns results for all - * platforms. - * @opt_param bool latestCountsOnly If true, returns only the latest crawl error - * counts. - * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse - */ - public function query($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); - } -} - -/** - * The "urlcrawlerrorssamples" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples; - * - */ -class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource -{ - - /** - * Retrieves details about crawl errors for a site's sample URL. - * (urlcrawlerrorssamples.get) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $url The relative path (without the site) of the sample URL. It - * must be one of the URLs returned by list(). For example, for the URL - * https://www.example.com/pagename on the site https://www.example.com/, the - * url value is pagename - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_UrlCrawlErrorsSample - */ - public function get($siteUrl, $url, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); - } - - /** - * Lists a site's sample URLs for the specified crawl error category and - * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse - */ - public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); - } - - /** - * Marks the provided site's sample URL as fixed, and removes it from the - * samples list. (urlcrawlerrorssamples.markAsFixed) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $url The relative path (without the site) of the sample URL. It - * must be one of the URLs returned by list(). For example, for the URL - * https://www.example.com/pagename on the site https://www.example.com/, the - * url value is pagename - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - */ - public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('markAsFixed', array($params)); - } -} - - - - -class Google_Service_Webmasters_ApiDataRow extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $clicks; - public $ctr; - public $impressions; - public $keys; - public $position; - - - public function setClicks($clicks) - { - $this->clicks = $clicks; - } - public function getClicks() - { - return $this->clicks; - } - public function setCtr($ctr) - { - $this->ctr = $ctr; - } - public function getCtr() - { - return $this->ctr; - } - public function setImpressions($impressions) - { - $this->impressions = $impressions; - } - public function getImpressions() - { - return $this->impressions; - } - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dimension; - public $expression; - public $operator; - - - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } -} - -class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter'; - protected $filtersDataType = 'array'; - public $groupType; - - - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setGroupType($groupType) - { - $this->groupType = $groupType; - } - public function getGroupType() - { - return $this->groupType; - } -} - -class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection -{ - protected $collection_key = 'dimensions'; - protected $internal_gapi_mappings = array( - ); - public $aggregationType; - protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup'; - protected $dimensionFilterGroupsDataType = 'array'; - public $dimensions; - public $endDate; - public $rowLimit; - public $searchType; - public $startDate; - - - public function setAggregationType($aggregationType) - { - $this->aggregationType = $aggregationType; - } - public function getAggregationType() - { - return $this->aggregationType; - } - public function setDimensionFilterGroups($dimensionFilterGroups) - { - $this->dimensionFilterGroups = $dimensionFilterGroups; - } - public function getDimensionFilterGroups() - { - return $this->dimensionFilterGroups; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setRowLimit($rowLimit) - { - $this->rowLimit = $rowLimit; - } - public function getRowLimit() - { - return $this->rowLimit; - } - public function setSearchType($searchType) - { - $this->searchType = $searchType; - } - public function getSearchType() - { - return $this->searchType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $responseAggregationType; - protected $rowsType = 'Google_Service_Webmasters_ApiDataRow'; - protected $rowsDataType = 'array'; - - - public function setResponseAggregationType($responseAggregationType) - { - $this->responseAggregationType = $responseAggregationType; - } - public function getResponseAggregationType() - { - return $this->responseAggregationType; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } -} - -class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection -{ - protected $collection_key = 'sitemap'; - protected $internal_gapi_mappings = array( - ); - protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; - protected $sitemapDataType = 'array'; - - - public function setSitemap($sitemap) - { - $this->sitemap = $sitemap; - } - public function getSitemap() - { - return $this->sitemap; - } -} - -class Google_Service_Webmasters_SitesListResponse extends Google_Collection -{ - protected $collection_key = 'siteEntry'; - protected $internal_gapi_mappings = array( - ); - protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; - protected $siteEntryDataType = 'array'; - - - public function setSiteEntry($siteEntry) - { - $this->siteEntry = $siteEntry; - } - public function getSiteEntry() - { - return $this->siteEntry; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $timestamp; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - public $category; - protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; - protected $entriesDataType = 'array'; - public $platform; - - - public function setCategory($category) - { - $this->category = $category; - } - public function getCategory() - { - return $this->category; - } - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setPlatform($platform) - { - $this->platform = $platform; - } - public function getPlatform() - { - return $this->platform; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection -{ - protected $collection_key = 'countPerTypes'; - protected $internal_gapi_mappings = array( - ); - protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; - protected $countPerTypesDataType = 'array'; - - - public function setCountPerTypes($countPerTypes) - { - $this->countPerTypes = $countPerTypes; - } - public function getCountPerTypes() - { - return $this->countPerTypes; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model -{ - protected $internal_gapi_mappings = array( - "firstDetected" => "first_detected", - "lastCrawled" => "last_crawled", - ); - public $firstDetected; - public $lastCrawled; - public $pageUrl; - public $responseCode; - protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; - protected $urlDetailsDataType = ''; - - - public function setFirstDetected($firstDetected) - { - $this->firstDetected = $firstDetected; - } - public function getFirstDetected() - { - return $this->firstDetected; - } - public function setLastCrawled($lastCrawled) - { - $this->lastCrawled = $lastCrawled; - } - public function getLastCrawled() - { - return $this->lastCrawled; - } - public function setPageUrl($pageUrl) - { - $this->pageUrl = $pageUrl; - } - public function getPageUrl() - { - return $this->pageUrl; - } - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } - public function getResponseCode() - { - return $this->responseCode; - } - public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) - { - $this->urlDetails = $urlDetails; - } - public function getUrlDetails() - { - return $this->urlDetails; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection -{ - protected $collection_key = 'urlCrawlErrorSample'; - protected $internal_gapi_mappings = array( - ); - protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; - protected $urlCrawlErrorSampleDataType = 'array'; - - - public function setUrlCrawlErrorSample($urlCrawlErrorSample) - { - $this->urlCrawlErrorSample = $urlCrawlErrorSample; - } - public function getUrlCrawlErrorSample() - { - return $this->urlCrawlErrorSample; - } -} - -class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection -{ - protected $collection_key = 'linkedFromUrls'; - protected $internal_gapi_mappings = array( - ); - public $containingSitemaps; - public $linkedFromUrls; - - - public function setContainingSitemaps($containingSitemaps) - { - $this->containingSitemaps = $containingSitemaps; - } - public function getContainingSitemaps() - { - return $this->containingSitemaps; - } - public function setLinkedFromUrls($linkedFromUrls) - { - $this->linkedFromUrls = $linkedFromUrls; - } - public function getLinkedFromUrls() - { - return $this->linkedFromUrls; - } -} - -class Google_Service_Webmasters_WmxSite extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $permissionLevel; - public $siteUrl; - - - public function setPermissionLevel($permissionLevel) - { - $this->permissionLevel = $permissionLevel; - } - public function getPermissionLevel() - { - return $this->permissionLevel; - } - public function setSiteUrl($siteUrl) - { - $this->siteUrl = $siteUrl; - } - public function getSiteUrl() - { - return $this->siteUrl; - } -} - -class Google_Service_Webmasters_WmxSitemap extends Google_Collection -{ - protected $collection_key = 'contents'; - protected $internal_gapi_mappings = array( - ); - protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; - protected $contentsDataType = 'array'; - public $errors; - public $isPending; - public $isSitemapsIndex; - public $lastDownloaded; - public $lastSubmitted; - public $path; - public $type; - public $warnings; - - - public function setContents($contents) - { - $this->contents = $contents; - } - public function getContents() - { - return $this->contents; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setIsPending($isPending) - { - $this->isPending = $isPending; - } - public function getIsPending() - { - return $this->isPending; - } - public function setIsSitemapsIndex($isSitemapsIndex) - { - $this->isSitemapsIndex = $isSitemapsIndex; - } - public function getIsSitemapsIndex() - { - return $this->isSitemapsIndex; - } - public function setLastDownloaded($lastDownloaded) - { - $this->lastDownloaded = $lastDownloaded; - } - public function getLastDownloaded() - { - return $this->lastDownloaded; - } - public function setLastSubmitted($lastSubmitted) - { - $this->lastSubmitted = $lastSubmitted; - } - public function getLastSubmitted() - { - return $this->lastSubmitted; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Webmasters_WmxSitemapContent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $indexed; - public $submitted; - public $type; - - - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } - public function getIndexed() - { - return $this->indexed; - } - public function setSubmitted($submitted) - { - $this->submitted = $submitted; - } - public function getSubmitted() - { - return $this->submitted; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} +skipped \ No newline at end of file From 23a08e8e7370de1555734434fee86685af072bc2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 06:02:04 -0700 Subject: [PATCH 0861/1274] Removed YouTube.php --- src/Google/Service/YouTube.php | 12933 ------------------------------- 1 file changed, 12933 deletions(-) delete mode 100644 src/Google/Service/YouTube.php diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php deleted file mode 100644 index 386936097..000000000 --- a/src/Google/Service/YouTube.php +++ /dev/null @@ -1,12933 +0,0 @@ - - * 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 -{ - /** Manage your YouTube account. */ - const YOUTUBE = - "https://www.googleapis.com/auth/youtube"; - /** Manage your YouTube account. */ - const YOUTUBE_FORCE_SSL = - "https://www.googleapis.com/auth/youtube.force-ssl"; - /** View your YouTube account. */ - const YOUTUBE_READONLY = - "https://www.googleapis.com/auth/youtube.readonly"; - /** Manage your YouTube videos. */ - const YOUTUBE_UPLOAD = - "https://www.googleapis.com/auth/youtube.upload"; - /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = - "https://www.googleapis.com/auth/youtubepartner"; - /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ - const YOUTUBEPARTNER_CHANNEL_AUDIT = - "https://www.googleapis.com/auth/youtubepartner-channel-audit"; - - public $activities; - public $captions; - public $channelBanners; - public $channelSections; - public $channels; - public $commentThreads; - public $comments; - public $guideCategories; - public $i18nLanguages; - public $i18nRegions; - public $liveBroadcasts; - public $liveStreams; - public $playlistItems; - public $playlists; - public $search; - public $subscriptions; - public $thumbnails; - public $videoAbuseReportReasons; - public $videoCategories; - public $videos; - public $watermarks; - - - /** - * Constructs the internal representation of the YouTube service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'youtube/v3/'; - $this->version = 'v3'; - $this->serviceName = 'youtube'; - - $this->activities = new Google_Service_YouTube_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'home' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->captions = new Google_Service_YouTube_Captions_Resource( - $this, - $this->serviceName, - 'captions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'captions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'download' => array( - 'path' => 'captions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tfmt' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tlang' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'captions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'captions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'captions', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( - $this, - $this->serviceName, - 'channelBanners', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'channelBanners/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( - $this, - $this->serviceName, - 'channelSections', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'channelSections', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'channelSections', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'channelSections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channelSections', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_YouTube_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'channels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'managedByMe' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forUsername' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( - $this, - $this->serviceName, - 'commentThreads', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'shareOnGooglePlus' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'searchTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'allThreadsRelatedToChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_YouTube_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'comments', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'markAsSpam' => array( - 'path' => 'comments/markAsSpam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setModerationStatus' => array( - 'path' => 'comments/setModerationStatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'banAuthor' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'comments', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( - $this, - $this->serviceName, - 'guideCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'guideCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( - $this, - $this->serviceName, - 'i18nLanguages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nLanguages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( - $this, - $this->serviceName, - 'i18nRegions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nRegions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( - $this, - $this->serviceName, - 'liveBroadcasts', - array( - 'methods' => array( - 'bind' => array( - 'path' => 'liveBroadcasts/bind', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'control' => array( - 'path' => 'liveBroadcasts/control', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'displaySlate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offsetTimeMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'walltime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'transition' => array( - 'path' => 'liveBroadcasts/transition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( - $this, - $this->serviceName, - 'liveStreams', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( - $this, - $this->serviceName, - 'playlistItems', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'playlistId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->playlists = new Google_Service_YouTube_Playlists_Resource( - $this, - $this->serviceName, - 'playlists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlists', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'playlists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->search = new Google_Service_YouTube_Search_Resource( - $this, - $this->serviceName, - 'search', - array( - 'methods' => array( - 'list' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'eventType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forDeveloper' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'videoSyndicated' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCaption' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forContentOwner' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locationRadius' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'topicId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDimension' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoLicense' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'relatedToVideoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDefinition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDuration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relevanceLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forMine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safeSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoEmbeddable' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'forChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( - $this, - $this->serviceName, - 'thumbnails', - array( - 'methods' => array( - 'set' => array( - 'path' => 'thumbnails/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( - $this, - $this->serviceName, - 'videoAbuseReportReasons', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoAbuseReportReasons', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( - $this, - $this->serviceName, - 'videoCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videos = new Google_Service_YouTube_Videos_Resource( - $this, - $this->serviceName, - 'videos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'videos', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getRating' => array( - 'path' => 'videos/getRating', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'videos', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stabilize' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'notifySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'autoLevels' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'videos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'chart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'myRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'videos/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reportAbuse' => array( - 'path' => 'videos/reportAbuse', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'videos', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( - $this, - $this->serviceName, - 'watermarks', - array( - 'methods' => array( - 'set' => array( - 'path' => 'watermarks/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'unset' => array( - 'path' => 'watermarks/unset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.) - * - * Note: Even though an activity resource can contain information about actions - * like a user rating a video or marking a video as a favorite, you need to use - * other API methods to generate those activity resources. For example, you - * would use the API's videos.rate() method to rate a video and the - * playlistItems.insert() method to mark a video as a favorite. - * (activities.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Activity - */ - public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); - } - - /** - * Returns a list of channel activity events that match the request criteria. - * For example, you can retrieve events associated with a particular channel, - * events associated with the user's subscriptions and Google+ friends, or the - * YouTube home page feed, which is customized for each user. - * (activities.listActivities) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more activity resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in an - * activity resource, the snippet property contains other properties that - * identify the type of activity, a display title for the activity, and so - * forth. If you set part=snippet, the API response will also contain all of - * those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return results for the specified country. The parameter value is an ISO - * 3166-1 alpha-2 country code. YouTube uses this value when the authorized - * user's previous activity on YouTube does not provide enough information to - * generate the activity feed. - * @opt_param string publishedBefore The publishedBefore parameter specifies the - * date and time before which an activity must have occurred for that activity - * to be included in the API response. If the parameter value specifies a day, - * but not a time, then any activities that occurred that day will be excluded - * from the result set. The value is specified in ISO 8601 (YYYY-MM- - * DDThh:mm:ss.sZ) format. - * @opt_param string channelId The channelId parameter specifies a unique - * YouTube channel ID. The API will then return a list of that channel's - * activities. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's activities. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool home Set this parameter's value to true to retrieve the - * activity feed that displays on the YouTube home page for the currently - * authenticated user. - * @opt_param string publishedAfter The publishedAfter parameter specifies the - * earliest date and time that an activity could have occurred for that activity - * to be included in the API response. If the parameter value specifies a day, - * but not a time, then any activities that occurred that day will be included - * in the result set. The value is specified in ISO 8601 (YYYY-MM- - * DDThh:mm:ss.sZ) format. - * @return Google_Service_YouTube_ActivityListResponse - */ - public function listActivities($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); - } -} - -/** - * The "captions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $captions = $youtubeService->captions; - * - */ -class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource -{ - - /** - * Deletes a specified caption track. (captions.delete) - * - * @param string $id The id parameter identifies the caption track that is being - * deleted. The value is a caption track ID as identified by the id property in - * a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Downloads a caption track. The caption track is returned in its original - * format unless the request specifies a value for the tfmt parameter and in its - * original language unless the request specifies a value for the tlang - * parameter. (captions.download) - * - * @param string $id The id parameter identifies the caption track that is being - * retrieved. The value is a caption track ID as identified by the id property - * in a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - * @opt_param string tfmt The tfmt parameter specifies that the caption track - * should be returned in a specific format. If the parameter is not included in - * the request, the track is returned in its original format. - * @opt_param string tlang The tlang parameter specifies that the API response - * should return a translation of the specified caption track. The parameter - * value is an ISO 639-1 two-letter language code that identifies the desired - * caption language. The translation is generated by using machine translation, - * such as Google Translate. - */ - public function download($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('download', array($params)); - } - - /** - * Uploads a caption track. (captions.insert) - * - * @param string $part The part parameter specifies the caption resource parts - * that the API response will include. Set the parameter value to snippet. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool sync The sync parameter indicates whether YouTube should - * automatically synchronize the caption file with the audio track of the video. - * If you set the value to true, YouTube will disregard any time codes that are - * in the uploaded caption file and generate new time codes for the captions. - * - * You should set the sync parameter to true if you are uploading a transcript, - * which has no time codes, or if you suspect the time codes in your file are - * incorrect and want YouTube to try to fix them. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Caption - */ - public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); - } - - /** - * Returns a list of caption tracks that are associated with a specified video. - * Note that the API response does not contain the actual captions and that the - * captions.download method provides the ability to retrieve a caption track. - * (captions.listCaptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more caption resource parts that the API response will include. The - * part names that you can include in the parameter value are id and snippet. - * @param string $videoId The videoId parameter specifies the YouTube video ID - * of the video for which the API should return caption tracks. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is on behalf of. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string id The id parameter specifies a comma-separated list of IDs - * that identify the caption resources that should be retrieved. Each ID must - * identify a caption track associated with the specified video. - * @return Google_Service_YouTube_CaptionListResponse - */ - public function listCaptions($part, $videoId, $optParams = array()) - { - $params = array('part' => $part, 'videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); - } - - /** - * Updates a caption track. When updating a caption track, you can change the - * track's draft status, upload a new caption file for the track, or both. - * (captions.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. Set the property value to - * snippet if you are updating the track's draft status. Otherwise, set the - * property value to id. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool sync Note: The API server only processes the parameter value - * if the request contains an updated caption file. - * - * The sync parameter indicates whether YouTube should automatically synchronize - * the caption file with the audio track of the video. If you set the value to - * true, YouTube will automatically synchronize the caption track with the audio - * track. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Caption - */ - public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Caption"); - } -} - -/** - * The "channelBanners" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelBanners = $youtubeService->channelBanners; - * - */ -class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource -{ - - /** - * Uploads a channel banner image to YouTube. This method represents the first - * two steps in a three-step process to update the banner image for a channel: - * - * - Call the channelBanners.insert method to upload the binary image data to - * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 - * pixels. - Extract the url property's value from the response that the API - * returns for step 1. - Call the channels.update method to update the channel's - * branding settings. Set the brandingSettings.image.bannerExternalUrl - * property's value to the URL obtained in step 2. (channelBanners.insert) - * - * @param Google_ChannelBannerResource $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelBannerResource - */ - public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); - } -} - -/** - * The "channelSections" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelSections = $youtubeService->channelSections; - * - */ -class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource -{ - - /** - * Deletes a channelSection. (channelSections.delete) - * - * @param string $id The id parameter specifies the YouTube channelSection ID - * for the resource that is being deleted. In a channelSection resource, the id - * property specifies the YouTube channelSection ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a channelSection for the authenticated user's channel. - * (channelSections.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); - } - - /** - * Returns channelSection resources that match the API request criteria. - * (channelSections.listChannelSections) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channelSection resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, and contentDetails. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * channelSection resource, the snippet property contains other properties, such - * as a display title for the channelSection. If you set part=snippet, the API - * response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's channelSections. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. - * @opt_param string hl The hl parameter indicates that the snippet.localized - * property values in the returned channelSection resources should be in the - * specified language if localized values for that language are available. For - * example, if the API request specifies hl=de, the snippet.localized properties - * in the API response will contain German titles if German titles are - * available. Channel owners can provide localized channel section titles using - * either the channelSections.insert or channelSections.update method. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In - * a channelSection resource, the id property specifies the YouTube - * channelSection ID. - * @return Google_Service_YouTube_ChannelSectionListResponse - */ - public function listChannelSections($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); - } - - /** - * Update a channelSection. (channelSections.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listChannels) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channel resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a channel - * resource, the contentDetails property contains other properties, such as the - * uploads properties. As such, if you set part=contentDetails, the API response - * will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param bool managedByMe Note: This parameter is intended exclusively for - * YouTube content partners. - * - * Set this parameter's value to true to instruct the API to only return - * channels managed by the content owner that the onBehalfOfContentOwner - * parameter specifies. The user must be authenticated as a CMS account linked - * to the specified content owner and onBehalfOfContentOwner must be provided. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string forUsername The forUsername parameter specifies a YouTube - * username, thereby requesting the channel associated with that username. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return channels owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel ID(s) for the resource(s) that are being retrieved. In a - * channel resource, the id property specifies the channel's YouTube channel ID. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool mySubscribers Use the subscriptions.list method and its - * mySubscribers parameter to retrieve a list of subscribers to the - * authenticated user's channel. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the brandingSettings - * part. - * @opt_param string categoryId The categoryId parameter specifies a YouTube - * guide category, thereby requesting YouTube channels associated with that - * category. - * @return Google_Service_YouTube_ChannelListResponse - */ - public function listChannels($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); - } - - /** - * Updates a channel's metadata. Note that this method currently only supports - * updates to the channel resource's brandingSettings and invideoPromotion - * objects and their child properties. (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 API currently only allows the parameter value to be set to either - * brandingSettings or invideoPromotion. (You cannot update both of those parts - * with a single request.) - * - * Note that this method overrides the existing values for all of the mutable - * properties that are contained in any parts that the parameter value - * specifies. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. - * @return Google_Service_YouTube_Channel - */ - public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Channel"); - } -} - -/** - * The "commentThreads" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $commentThreads = $youtubeService->commentThreads; - * - */ -class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource -{ - - /** - * Creates a new top-level comment. To add a reply to an existing comment, use - * the comments.insert method instead. (commentThreads.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates - * whether the top-level comment and any replies that are made to that comment - * should also be posted to the author's Google+ profile. - * @return Google_Service_YouTube_CommentThread - */ - public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); - } - - /** - * Returns a list of comment threads that match the API request parameters. - * (commentThreads.listCommentThreads) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more commentThread resource properties that the API response will - * include. - * @param array $optParams Optional parameters. - * - * @opt_param string searchTerms The searchTerms parameter instructs the API to - * limit the API response to only contain comments that contain the specified - * search terms. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string allThreadsRelatedToChannelId The - * allThreadsRelatedToChannelId parameter instructs the API to return all - * comment threads associated with the specified channel. The response can - * include comments about the channel or about the channel's videos. - * @opt_param string channelId The channelId parameter instructs the API to - * return comment threads containing comments about the specified channel. (The - * response will not include comments left on videos that the channel uploaded.) - * @opt_param string videoId The videoId parameter instructs the API to return - * comment threads associated with the specified video ID. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment thread IDs for the resources that should be retrieved. - * @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 property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string moderationStatus Set this parameter to limit the returned - * comment threads to a particular moderation state. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string textFormat Set this parameter's value to html or plainText - * to instruct the API to return the comments left by users in html formatted or - * in plain text. - * @opt_param string order The order parameter specifies the order in which the - * API response should list comment threads. Valid values are: - time - Comment - * threads are ordered by time. This is the default behavior. - relevance - - * Comment threads are ordered by relevance.Note: This parameter is not - * supported for use in conjunction with the id parameter. - * @return Google_Service_YouTube_CommentThreadListResponse - */ - public function listCommentThreads($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); - } - - /** - * Modifies the top-level comment in a comment thread. (commentThreads.update) - * - * @param string $part The part parameter specifies a comma-separated list of - * commentThread resource properties that the API response will include. You - * must at least include the snippet part in the parameter value since that part - * contains all of the properties that the API request can update. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_CommentThread - */ - public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $comments = $youtubeService->comments; - * - */ -class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource -{ - - /** - * Deletes a comment. (comments.delete) - * - * @param string $id The id parameter specifies the comment 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); - return $this->call('delete', array($params)); - } - - /** - * Creates a reply to an existing comment. Note: To create a top-level comment, - * use the commentThreads.insert method. (comments.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); - } - - /** - * Returns a list of comments that match the API request parameters. - * (comments.listComments) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more comment resource properties that the API response will include. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string parentId The parentId parameter specifies the ID of the - * comment for which replies should be retrieved. - * - * Note: YouTube currently supports replies only for top-level comments. - * However, replies to replies may be supported in the future. - * @opt_param string textFormat This parameter indicates whether the API should - * return comments formatted as HTML or as plain text. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment IDs for the resources that are being retrieved. In a comment - * resource, the id property specifies the comment's ID. - * @return Google_Service_YouTube_CommentListResponse - */ - public function listComments($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); - } - - /** - * Expresses the caller's opinion that one or more comments should be flagged as - * spam. (comments.markAsSpam) - * - * @param string $id The id parameter specifies a comma-separated list of IDs of - * comments that the caller believes should be classified as spam. - * @param array $optParams Optional parameters. - */ - public function markAsSpam($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params)); - } - - /** - * Sets the moderation status of one or more comments. The API request must be - * authorized by the owner of the channel or video associated with the comments. - * (comments.setModerationStatus) - * - * @param string $id The id parameter specifies a comma-separated list of IDs - * that identify the comments for which you are updating the moderation status. - * @param string $moderationStatus Identifies the new moderation status of the - * specified comments. - * @param array $optParams Optional parameters. - * - * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you - * want to automatically reject any additional comments written by the comment's - * author. Set the parameter value to true to ban the author. - * - * Note: This parameter is only valid if the moderationStatus parameter is also - * set to rejected. - */ - public function setModerationStatus($id, $moderationStatus, $optParams = array()) - { - $params = array('id' => $id, 'moderationStatus' => $moderationStatus); - $params = array_merge($params, $optParams); - return $this->call('setModerationStatus', array($params)); - } - - /** - * Modifies a comment. (comments.update) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. You must at least include the snippet part in the - * parameter value since that part contains all of the properties that the API - * request can update. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Comment"); - } -} - -/** - * The "guideCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listGuideCategories) - * - * @param string $part The part parameter specifies the guideCategory resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of guide categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel category ID(s) for the resource(s) that are being retrieved. - * In a guideCategory resource, the id property specifies the YouTube channel - * category ID. - * @opt_param string hl The hl parameter specifies the language that will be - * used for text values in the API response. - * @return Google_Service_YouTube_GuideCategoryListResponse - */ - public function listGuideCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); - } -} - -/** - * The "i18nLanguages" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nLanguages = $youtubeService->i18nLanguages; - * - */ -class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of application languages that the YouTube website supports. - * (i18nLanguages.listI18nLanguages) - * - * @param string $part The part parameter specifies the i18nLanguage resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nLanguageListResponse - */ - public function listI18nLanguages($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); - } -} - -/** - * The "i18nRegions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nRegions = $youtubeService->i18nRegions; - * - */ -class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of content regions that the YouTube website supports. - * (i18nRegions.listI18nRegions) - * - * @param string $part The part parameter specifies the i18nRegion resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nRegionListResponse - */ - public function listI18nRegions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); - } -} - -/** - * The "liveBroadcasts" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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, - * though a video stream may be bound to more than one broadcast. - * (liveBroadcasts.bind) - * - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is being bound to a video stream. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string streamId The streamId parameter specifies the unique ID of - * the video stream that is being bound to a broadcast. If this parameter is - * omitted, the API will remove any existing binding between the broadcast and a - * video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Controls the settings for a slate that can be displayed in the broadcast - * stream. (liveBroadcasts.control) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * that uniquely identifies the broadcast in which the slate is being updated. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param bool displaySlate The displaySlate parameter specifies whether the - * slate is being enabled or disabled. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a - * positive time offset when the specified slate change will occur. The value is - * measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. - * Even though it is specified in milliseconds, the value is actually an - * approximation, and YouTube completes the requested action as closely as - * possible to that time. - * - * If you do not specify a value for this parameter, then YouTube performs the - * action as soon as possible. See the Getting started guide for more details. - * - * Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. - * @opt_param string walltime The walltime parameter specifies the wall clock - * time at which the specified slate change will occur. The value is specified - * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function control($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Deletes a broadcast. (liveBroadcasts.delete) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * for the resource that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a broadcast. (liveBroadcasts.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Returns a list of YouTube broadcasts that match the API request parameters. - * (liveBroadcasts.listLiveBroadcasts) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string broadcastStatus The broadcastStatus parameter filters the - * API response to only include broadcasts with the specified status. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return broadcasts owned by the authenticated user. Set the parameter - * value to true to only retrieve your own broadcasts. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube broadcast IDs that identify the broadcasts being retrieved. In a - * liveBroadcast resource, the id property specifies the broadcast's ID. - * @return Google_Service_YouTube_LiveBroadcastListResponse - */ - public function listLiveBroadcasts($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); - } - - /** - * Changes the status of a YouTube live broadcast and initiates any processes - * associated with the new status. For example, when you transition a - * broadcast's status to testing, YouTube starts to transmit video to that - * broadcast's monitor stream. Before calling this method, you should confirm - * that the value of the status.streamStatus property for the stream bound to - * your broadcast is active. (liveBroadcasts.transition) - * - * @param string $broadcastStatus The broadcastStatus parameter identifies the - * state to which the broadcast is changing. Note that to transition a broadcast - * to either the testing or live state, the status.streamStatus must be active - * for the stream that the broadcast is bound to. - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is transitioning to another status. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function transition($broadcastStatus, $id, $part, $optParams = array()) - { - $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Updates a broadcast. For example, you could modify the broadcast settings - * defined in the liveBroadcast resource's contentDetails object. - * (liveBroadcasts.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a broadcast's privacy status is defined in the status - * part. As such, if your request is updating a private or unlisted broadcast, - * and the request's part parameter value includes the status part, the - * broadcast's privacy setting will be updated to whatever value the request - * body specifies. If the request body does not specify a value, the existing - * privacy setting will be removed and the broadcast will revert to the default - * privacy setting. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); - } -} - -/** - * The "liveStreams" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a video stream. The stream enables you to send your video to YouTube, - * which can then broadcast the video to your audience. (liveStreams.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveStream - */ - public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); - } - - /** - * Returns a list of video streams that match the API request parameters. - * (liveStreams.listLiveStreams) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveStream resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return streams owned by the authenticated user. Set the parameter value - * to true to only retrieve your own streams. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube stream IDs that identify the streams being retrieved. In a liveStream - * resource, the id property specifies the stream's ID. - * @return Google_Service_YouTube_LiveStreamListResponse - */ - public function listLiveStreams($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); - } - - /** - * Updates a video stream. If the properties that you want to change cannot be - * updated, then you need to create a new stream with the proper settings. - * (liveStreams.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. If the request body does not specify a value for a mutable - * property, the existing value for that property will be removed. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_LiveStream - */ - public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); - } -} - -/** - * The "playlistItems" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a resource to a playlist. (playlistItems.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_PlaylistItem - */ - public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); - } - - /** - * Returns a collection of playlist items that match the API request parameters. - * You can retrieve all of the playlist items in a specified playlist or - * retrieve one or more playlist items by their unique IDs. - * (playlistItems.listPlaylistItems) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlistItem resource properties that the API response will - * include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * playlistItem resource, the snippet property contains numerous fields, - * including the title, description, position, and resourceId properties. As - * such, if you set part=snippet, the API response will contain all of those - * properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string playlistId The playlistId parameter specifies the unique ID - * of the playlist for which you want to retrieve playlist items. Note that even - * though this is an optional parameter, every request to retrieve playlist - * items must specify a value for either the id parameter or the playlistId - * parameter. - * @opt_param string videoId The videoId parameter specifies that the request - * should return only the playlist items that contain the specified video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of one - * or more unique playlist item IDs. - * @return Google_Service_YouTube_PlaylistItemListResponse - */ - public function listPlaylistItems($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); - } - - /** - * Modifies a playlist item. For example, you could update the item's position - * in the playlist. (playlistItems.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a playlist item can specify a start time and end - * time, which identify the times portion of the video that should play when - * users watch the video in the playlist. If your request is updating a playlist - * item that sets these values, and the request's part parameter value includes - * the contentDetails part, the playlist item's start and end times will be - * updated to whatever value the request body specifies. If the request body - * does not specify values, the existing start and end times will be removed and - * replaced with the default settings. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_PlaylistItem - */ - public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); - } -} - -/** - * The "playlists" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a playlist. (playlists.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_Playlist - */ - public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); - } - - /** - * Returns a collection of playlists that match the API request parameters. For - * example, you can retrieve all playlists that the authenticated user owns, or - * you can retrieve one or more playlists by their unique IDs. - * (playlists.listPlaylists) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlist resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a playlist - * resource, the snippet property contains properties like author, title, - * description, tags, and timeCreated. As such, if you set part=snippet, the API - * response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string channelId This value indicates that the API should only - * return the specified channel's playlists. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return playlists owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the snippet part. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a - * playlist resource, the id property specifies the playlist's YouTube playlist - * ID. - * @return Google_Service_YouTube_PlaylistListResponse - */ - public function listPlaylists($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); - } - - /** - * Modifies a playlist. For example, you could change a playlist's title, - * description, or privacy status. (playlists.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for mutable - * properties that are contained in any parts that the request body specifies. - * For example, a playlist's description is contained in the snippet part, which - * must be included in the request body. If the request does not specify a value - * for the snippet.description property, the playlist's existing description - * will be deleted. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_Playlist - */ - public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); - } -} - -/** - * The "search" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listSearch) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more search resource properties that the API response will include. - * Set the parameter value to snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string eventType The eventType parameter restricts a search to - * broadcast events. If you specify a value for this parameter, you must also - * set the type parameter's value to video. - * @opt_param string channelId The channelId parameter indicates that the API - * response should only contain resources created by the channel - * @opt_param bool forDeveloper The forDeveloper parameter restricts the search - * to only retrieve videos uploaded via the developer's application or website. - * The API server uses the request's authorization credentials to identify the - * developer. Therefore, a developer can restrict results to videos uploaded - * through the developer's own app or website but not to videos uploaded through - * other apps or sites. - * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. If - * you specify a value for this parameter, you must also set the type - * parameter's value to video. - * @opt_param string channelType The channelType parameter lets you restrict a - * search to a particular type of channel. - * @opt_param string videoCaption The videoCaption parameter indicates whether - * the API should filter video search results based on whether they have - * captions. If you specify a value for this parameter, you must also set the - * type parameter's value to video. - * @opt_param string publishedAfter The publishedAfter parameter indicates that - * the API response should only contain resources created after the specified - * time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool forContentOwner Note: This parameter is intended exclusively - * for YouTube content partners. - * - * The forContentOwner parameter restricts the search to only retrieve resources - * owned by the content owner specified by the onBehalfOfContentOwner parameter. - * The user must be authenticated using a CMS account linked to the specified - * content owner and onBehalfOfContentOwner must be provided. - * @opt_param string regionCode The regionCode parameter instructs the API to - * return search results for the specified country. The parameter value is an - * ISO 3166-1 alpha-2 country code. - * @opt_param string location The location parameter, in conjunction with the - * locationRadius parameter, defines a circular geographic area and also - * restricts a search to videos that specify, in their metadata, a geographic - * location that falls within that area. The parameter value is a string that - * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). - * - * - The location parameter value identifies the point at the center of the - * area. - The locationRadius parameter specifies the maximum distance that the - * location associated with a video can be from that point for the video to - * still be included in the search results.The API returns an error if your - * request specifies a value for the location parameter but does not also - * specify a value for the locationRadius parameter. - * @opt_param string locationRadius The locationRadius parameter, in conjunction - * with the location parameter, defines a circular geographic area. - * - * The parameter value must be a floating point number followed by a measurement - * unit. Valid measurement units are m, km, ft, and mi. For example, valid - * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not - * support locationRadius parameter values larger than 1000 kilometers. - * - * Note: See the definition of the location parameter for more information. - * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string type The type parameter restricts a search query to only - * retrieve a particular type of resource. The value is a comma-separated list - * of resource types. - * @opt_param string topicId The topicId parameter indicates that the API - * response should only contain resources associated with the specified topic. - * The value identifies a Freebase topic ID. - * @opt_param string publishedBefore The publishedBefore parameter indicates - * that the API response should only contain resources created before the - * specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. If you specify a value - * for this parameter, you must also set the type parameter's value to video. - * @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. If you specify a value for - * this parameter, you must also set the type parameter's value to video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a - * list of videos that are related to the video that the parameter value - * identifies. The parameter value must be set to a YouTube video ID and, if you - * are using this parameter, the type parameter must be set to video. - * @opt_param string videoDefinition The videoDefinition parameter lets you - * restrict a search to only include either high definition (HD) or standard - * definition (SD) videos. HD videos are available for playback in at least - * 720p, though higher resolutions, like 1080p, might also be available. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @opt_param string videoDuration The videoDuration parameter filters video - * search results based on their duration. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs - * the API to return search results that are most relevant to the specified - * language. The parameter value is typically an ISO 639-1 two-letter language - * code. However, you should use the values zh-Hans for simplified Chinese and - * zh-Hant for traditional Chinese. Please note that results in other languages - * will still be returned if they are highly relevant to the search query term. - * @opt_param bool forMine The forMine parameter restricts the search to only - * retrieve videos owned by the authenticated user. If you set this parameter to - * true, then the type parameter's value must also be set to video. - * @opt_param string q The q parameter specifies the query term to search for. - * - * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude - * videos or to find videos that are associated with one of several search - * terms. For example, to search for videos matching either "boating" or - * "sailing", set the q parameter value to boating|sailing. Similarly, to search - * for videos matching either "boating" or "sailing" but not "fishing", set the - * q parameter value to boating|sailing -fishing. Note that the pipe character - * must be URL-escaped when it is sent in your API request. The URL-escaped - * value for the pipe character is %7C. - * @opt_param string safeSearch The safeSearch parameter indicates whether the - * search results should include restricted content as well as standard content. - * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to - * restrict a search to only videos that can be embedded into a webpage. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string order The order parameter specifies the method that will be - * used to order resources in the API response. - * @return Google_Service_YouTube_SearchListResponse - */ - public function listSearch($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a subscription for the authenticated user's channel. - * (subscriptions.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Subscription - */ - public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); - } - - /** - * Returns subscription resources that match the API request criteria. - * (subscriptions.listSubscriptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more subscription resource properties that the API response will - * include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * subscription resource, the snippet property contains other properties, such - * as a display title for the subscription. If you set part=snippet, the API - * response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's subscriptions. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's subscriptions. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string forChannelId The forChannelId parameter specifies a comma- - * separated list of channel IDs. The API response will then only contain - * subscriptions matching those channels. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param bool mySubscribers Set this parameter's value to true to retrieve - * a feed of the subscribers of the authenticated user. - * @opt_param string order The order parameter specifies the method that will be - * used to sort resources in the API response. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a - * subscription resource, the id property specifies the YouTube subscription ID. - * @return Google_Service_YouTube_SubscriptionListResponse - */ - public function listSubscriptions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); - } -} - -/** - * The "thumbnails" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_ThumbnailSetResponse - */ - public function set($videoId, $optParams = array()) - { - $params = array('videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); - } -} - -/** - * The "videoAbuseReportReasons" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; - * - */ -class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of abuse reasons that can be used for reporting abusive - * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) - * - * @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. - * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse - */ - public function listVideoAbuseReportReasons($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); - } -} - -/** - * The "videoCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listVideoCategories) - * - * @param string $part The part parameter specifies the videoCategory resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of video categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id The id parameter specifies a comma-separated list of - * video category IDs for the resources that you are retrieving. - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_VideoCategoryListResponse - */ - public function listVideoCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); - } -} - -/** - * The "videos" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the ratings that the authorized user gave to a list of specified - * videos. (videos.getRating) - * - * @param string $id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) for which you are retrieving rating - * data. In a video resource, the id property specifies the video's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_VideoGetRatingResponse - */ - public function getRating($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); - } - - /** - * Uploads a video to YouTube and optionally sets the video's metadata. - * (videos.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that not all parts contain properties that can be set when inserting or - * updating a video. For example, the statistics object encapsulates statistics - * that YouTube calculates for a video and does not contain values that you can - * set or modify. If the parameter value specifies a part that does not contain - * mutable values, that part will still be included in the API response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param bool stabilize The stabilize parameter indicates whether YouTube - * should adjust the video to remove shaky camera motions. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send a notification about the new video to users who - * subscribe to the video's channel. A parameter value of True indicates that - * subscribers will be notified of newly uploaded videos. However, a channel - * owner who is uploading many videos might prefer to set the value to False to - * avoid sending a notification about each new video to the channel's - * subscribers. - * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube - * should automatically enhance the video's lighting and color. - * @return Google_Service_YouTube_Video - */ - public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Video"); - } - - /** - * Returns a list of videos that match the API request parameters. - * (videos.listVideos) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more video resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a video - * resource, the snippet property contains the channelId, title, description, - * tags, and categoryId properties. As such, if you set part=snippet, the API - * response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string regionCode The regionCode parameter instructs the API to - * select a video chart available in the specified region. This parameter can - * only be used in conjunction with the chart parameter. The parameter value is - * an ISO 3166-1 alpha-2 country code. - * @opt_param string locale DEPRECATED - * @opt_param string videoCategoryId The videoCategoryId parameter identifies - * the video category for which the chart should be retrieved. This parameter - * can only be used in conjunction with the chart parameter. By default, charts - * are not restricted to a particular category. - * @opt_param string chart The chart parameter identifies the chart that you - * want to retrieve. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - * @opt_param string hl The hl parameter instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string myRating Set this parameter's value to like or dislike to - * instruct the API to only return videos liked or disliked by the authenticated - * user. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) that are being retrieved. In a video - * resource, the id property specifies the video's ID. - * @return Google_Service_YouTube_VideoListResponse - */ - public function listVideos($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); - } - - /** - * Add a like or dislike rating to a video or remove a rating from a video. - * (videos.rate) - * - * @param string $id The id parameter specifies the YouTube video ID of the - * video that is being rated or having its rating removed. - * @param string $rating Specifies the rating to record. - * @param array $optParams Optional parameters. - */ - public function rate($id, $rating, $optParams = array()) - { - $params = array('id' => $id, 'rating' => $rating); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params)); - } - - /** - * Report abuse for a video. (videos.reportAbuse) - * - * @param Google_VideoAbuseReport $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportAbuse', array($params)); - } - - /** - * Updates a video's metadata. (videos.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * 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 parts contain properties that can be set when inserting - * or updating a video. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values - * that you can set or modify. If the parameter value specifies a part that does - * not contain mutable values, that part will still be included in the API - * response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Video - */ - public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Video"); - } -} - -/** - * The "watermarks" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $watermarks = $youtubeService->watermarks; - * - */ -class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource -{ - - /** - * Uploads a watermark image to YouTube and sets it for a channel. - * (watermarks.set) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being provided. - * @param Google_InvideoBranding $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) - { - $params = array('channelId' => $channelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params)); - } - - /** - * Deletes a channel's watermark image. (watermarks.unsetWatermarks) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being unset. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function unsetWatermarks($channelId, $optParams = array()) - { - $params = array('channelId' => $channelId); - $params = array_merge($params, $optParams); - return $this->call('unset', array($params)); - } -} - - - - -class Google_Service_YouTube_AccessPolicy extends Google_Collection -{ - protected $collection_key = 'exception'; - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; - protected $snippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_ActivityContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; - protected $bulletinDataType = ''; - protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; - protected $channelItemDataType = ''; - protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; - protected $commentDataType = ''; - protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; - protected $favoriteDataType = ''; - protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; - protected $likeDataType = ''; - protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; - protected $playlistItemDataType = ''; - protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; - protected $promotedItemDataType = ''; - protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; - protected $recommendationDataType = ''; - protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; - protected $socialDataType = ''; - protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; - protected $subscriptionDataType = ''; - protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; - protected $uploadDataType = ''; - - - public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) - { - $this->bulletin = $bulletin; - } - public function getBulletin() - { - return $this->bulletin; - } - public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) - { - $this->channelItem = $channelItem; - } - public function getChannelItem() - { - return $this->channelItem; - } - public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) - { - $this->favorite = $favorite; - } - public function getFavorite() - { - return $this->favorite; - } - public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) - { - $this->like = $like; - } - public function getLike() - { - return $this->like; - } - public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) - { - $this->playlistItem = $playlistItem; - } - public function getPlaylistItem() - { - return $this->playlistItem; - } - public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) - { - $this->promotedItem = $promotedItem; - } - public function getPromotedItem() - { - return $this->promotedItem; - } - public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) - { - $this->recommendation = $recommendation; - } - public function getRecommendation() - { - return $this->recommendation; - } - public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) - { - $this->social = $social; - } - public function getSocial() - { - return $this->social; - } - public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) - { - $this->upload = $upload; - } - public function getUpload() - { - return $this->upload; - } -} - -class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $playlistId; - public $playlistItemId; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPlaylistItemId($playlistItemId) - { - $this->playlistItemId = $playlistItemId; - } - public function getPlaylistItemId() - { - return $this->playlistItemId; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection -{ - protected $collection_key = 'impressionUrl'; - protected $internal_gapi_mappings = array( - ); - public $adTag; - public $clickTrackingUrl; - public $creativeViewUrl; - public $ctaType; - public $customCtaButtonText; - public $descriptionText; - public $destinationUrl; - public $forecastingUrl; - public $impressionUrl; - public $videoId; - - - public function setAdTag($adTag) - { - $this->adTag = $adTag; - } - public function getAdTag() - { - return $this->adTag; - } - public function setClickTrackingUrl($clickTrackingUrl) - { - $this->clickTrackingUrl = $clickTrackingUrl; - } - public function getClickTrackingUrl() - { - return $this->clickTrackingUrl; - } - public function setCreativeViewUrl($creativeViewUrl) - { - $this->creativeViewUrl = $creativeViewUrl; - } - public function getCreativeViewUrl() - { - return $this->creativeViewUrl; - } - public function setCtaType($ctaType) - { - $this->ctaType = $ctaType; - } - public function getCtaType() - { - return $this->ctaType; - } - public function setCustomCtaButtonText($customCtaButtonText) - { - $this->customCtaButtonText = $customCtaButtonText; - } - public function getCustomCtaButtonText() - { - return $this->customCtaButtonText; - } - public function setDescriptionText($descriptionText) - { - $this->descriptionText = $descriptionText; - } - public function getDescriptionText() - { - return $this->descriptionText; - } - public function setDestinationUrl($destinationUrl) - { - $this->destinationUrl = $destinationUrl; - } - public function getDestinationUrl() - { - return $this->destinationUrl; - } - public function setForecastingUrl($forecastingUrl) - { - $this->forecastingUrl = $forecastingUrl; - } - public function getForecastingUrl() - { - return $this->forecastingUrl; - } - public function setImpressionUrl($impressionUrl) - { - $this->impressionUrl = $impressionUrl; - } - public function getImpressionUrl() - { - return $this->impressionUrl; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $reason; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $seedResourceIdDataType = ''; - - - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) - { - $this->seedResourceId = $seedResourceId; - } - public function getSeedResourceId() - { - return $this->seedResourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $author; - public $imageUrl; - public $referenceUrl; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - public $type; - - - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setReferenceUrl($referenceUrl) - { - $this->referenceUrl = $referenceUrl; - } - public function getReferenceUrl() - { - return $this->referenceUrl; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $videoId; - - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ActivitySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $groupId; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - public function getGroupId() - { - return $this->groupId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_Caption extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CaptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Caption'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CaptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $audioTrackType; - public $failureReason; - public $isAutoSynced; - public $isCC; - public $isDraft; - public $isEasyReader; - public $isLarge; - public $language; - public $lastUpdated; - public $name; - public $status; - public $trackKind; - public $videoId; - - - public function setAudioTrackType($audioTrackType) - { - $this->audioTrackType = $audioTrackType; - } - public function getAudioTrackType() - { - return $this->audioTrackType; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setIsAutoSynced($isAutoSynced) - { - $this->isAutoSynced = $isAutoSynced; - } - public function getIsAutoSynced() - { - return $this->isAutoSynced; - } - public function setIsCC($isCC) - { - $this->isCC = $isCC; - } - public function getIsCC() - { - return $this->isCC; - } - public function setIsDraft($isDraft) - { - $this->isDraft = $isDraft; - } - public function getIsDraft() - { - return $this->isDraft; - } - public function setIsEasyReader($isEasyReader) - { - $this->isEasyReader = $isEasyReader; - } - public function getIsEasyReader() - { - return $this->isEasyReader; - } - public function setIsLarge($isLarge) - { - $this->isLarge = $isLarge; - } - public function getIsLarge() - { - return $this->isLarge; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setLastUpdated($lastUpdated) - { - $this->lastUpdated = $lastUpdated; - } - public function getLastUpdated() - { - return $this->lastUpdated; - } - 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 setTrackKind($trackKind) - { - $this->trackKind = $trackKind; - } - public function getTrackKind() - { - return $this->trackKind; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_CdnSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $format; - protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; - protected $ingestionInfoDataType = ''; - public $ingestionType; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) - { - $this->ingestionInfo = $ingestionInfo; - } - public function getIngestionInfo() - { - return $this->ingestionInfo; - } - public function setIngestionType($ingestionType) - { - $this->ingestionType = $ingestionType; - } - public function getIngestionType() - { - return $this->ingestionType; - } -} - -class Google_Service_YouTube_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; - protected $auditDetailsDataType = ''; - protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; - protected $brandingSettingsDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; - protected $contentDetailsDataType = ''; - protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; - protected $contentOwnerDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - public $id; - protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; - protected $invideoPromotionDataType = ''; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_ChannelStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) - { - $this->auditDetails = $auditDetails; - } - public function getAuditDetails() - { - return $this->auditDetails; - } - public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) - { - $this->brandingSettings = $brandingSettings; - } - public function getBrandingSettings() - { - return $this->brandingSettings; - } - public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) - { - $this->contentOwnerDetails = $contentOwnerDetails; - } - public function getContentOwnerDetails() - { - return $this->contentOwnerDetails; - } - public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - public function getConversionPings() - { - return $this->conversionPings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) - { - $this->invideoPromotion = $invideoPromotion; - } - public function getInvideoPromotion() - { - return $this->invideoPromotion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_ChannelStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_ChannelAuditDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $communityGuidelinesGoodStanding; - public $contentIdClaimsGoodStanding; - public $copyrightStrikesGoodStanding; - public $overallGoodStanding; - - - public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) - { - $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; - } - public function getCommunityGuidelinesGoodStanding() - { - return $this->communityGuidelinesGoodStanding; - } - public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) - { - $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; - } - public function getContentIdClaimsGoodStanding() - { - return $this->contentIdClaimsGoodStanding; - } - public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) - { - $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; - } - public function getCopyrightStrikesGoodStanding() - { - return $this->copyrightStrikesGoodStanding; - } - public function setOverallGoodStanding($overallGoodStanding) - { - $this->overallGoodStanding = $overallGoodStanding; - } - public function getOverallGoodStanding() - { - return $this->overallGoodStanding; - } -} - -class Google_Service_YouTube_ChannelBannerResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $url; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection -{ - protected $collection_key = 'hints'; - protected $internal_gapi_mappings = array( - ); - protected $channelType = 'Google_Service_YouTube_ChannelSettings'; - protected $channelDataType = ''; - protected $hintsType = 'Google_Service_YouTube_PropertyValue'; - protected $hintsDataType = 'array'; - protected $imageType = 'Google_Service_YouTube_ImageSettings'; - protected $imageDataType = ''; - protected $watchType = 'Google_Service_YouTube_WatchSettings'; - protected $watchDataType = ''; - - - public function setChannel(Google_Service_YouTube_ChannelSettings $channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setHints($hints) - { - $this->hints = $hints; - } - public function getHints() - { - return $this->hints; - } - public function setImage(Google_Service_YouTube_ImageSettings $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setWatch(Google_Service_YouTube_WatchSettings $watch) - { - $this->watch = $watch; - } - public function getWatch() - { - return $this->watch; - } -} - -class Google_Service_YouTube_ChannelContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $googlePlusUserId; - protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; - protected $relatedPlaylistsDataType = ''; - - - public function setGooglePlusUserId($googlePlusUserId) - { - $this->googlePlusUserId = $googlePlusUserId; - } - public function getGooglePlusUserId() - { - return $this->googlePlusUserId; - } - public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) - { - $this->relatedPlaylists = $relatedPlaylists; - } - public function getRelatedPlaylists() - { - return $this->relatedPlaylists; - } -} - -class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $favorites; - public $likes; - public $uploads; - public $watchHistory; - public $watchLater; - - - public function setFavorites($favorites) - { - $this->favorites = $favorites; - } - public function getFavorites() - { - return $this->favorites; - } - public function setLikes($likes) - { - $this->likes = $likes; - } - public function getLikes() - { - return $this->likes; - } - public function setUploads($uploads) - { - $this->uploads = $uploads; - } - public function getUploads() - { - return $this->uploads; - } - public function setWatchHistory($watchHistory) - { - $this->watchHistory = $watchHistory; - } - public function getWatchHistory() - { - return $this->watchHistory; - } - public function setWatchLater($watchLater) - { - $this->watchLater = $watchLater; - } - public function getWatchLater() - { - return $this->watchLater; - } -} - -class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contentOwner; - public $timeLinked; - - - public function setContentOwner($contentOwner) - { - $this->contentOwner = $contentOwner; - } - public function getContentOwner() - { - return $this->contentOwner; - } - public function setTimeLinked($timeLinked) - { - $this->timeLinked = $timeLinked; - } - public function getTimeLinked() - { - return $this->timeLinked; - } -} - -class Google_Service_YouTube_ChannelConversionPing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - -class Google_Service_YouTube_ChannelId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_ChannelListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Channel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_ChannelSection extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; - protected $snippetDataType = ''; - protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; - protected $targetingDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) - { - $this->targeting = $targeting; - } - public function getTargeting() - { - return $this->targeting; - } -} - -class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection -{ - protected $collection_key = 'playlists'; - protected $internal_gapi_mappings = array( - ); - public $channels; - public $playlists; - - - public function setChannels($channels) - { - $this->channels = $channels; - } - public function getChannels() - { - return $this->channels; - } - public function setPlaylists($playlists) - { - $this->playlists = $playlists; - } - public function getPlaylists() - { - return $this->playlists; - } -} - -class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ChannelSection'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $defaultLanguage; - protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizedDataType = ''; - public $position; - public $style; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setStyle($style) - { - $this->style = $style; - } - public function getStyle() - { - return $this->style; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - public $countries; - public $languages; - public $regions; - - - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_YouTube_ChannelSettings extends Google_Collection -{ - protected $collection_key = 'featuredChannelsUrls'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $defaultLanguage; - public $defaultTab; - public $description; - public $featuredChannelsTitle; - public $featuredChannelsUrls; - public $keywords; - public $moderateComments; - public $profileColor; - public $showBrowseView; - public $showRelatedChannels; - public $title; - public $trackingAnalyticsAccountId; - public $unsubscribedTrailer; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDefaultTab($defaultTab) - { - $this->defaultTab = $defaultTab; - } - public function getDefaultTab() - { - return $this->defaultTab; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFeaturedChannelsTitle($featuredChannelsTitle) - { - $this->featuredChannelsTitle = $featuredChannelsTitle; - } - public function getFeaturedChannelsTitle() - { - return $this->featuredChannelsTitle; - } - public function setFeaturedChannelsUrls($featuredChannelsUrls) - { - $this->featuredChannelsUrls = $featuredChannelsUrls; - } - public function getFeaturedChannelsUrls() - { - return $this->featuredChannelsUrls; - } - public function setKeywords($keywords) - { - $this->keywords = $keywords; - } - public function getKeywords() - { - return $this->keywords; - } - public function setModerateComments($moderateComments) - { - $this->moderateComments = $moderateComments; - } - public function getModerateComments() - { - return $this->moderateComments; - } - public function setProfileColor($profileColor) - { - $this->profileColor = $profileColor; - } - public function getProfileColor() - { - return $this->profileColor; - } - public function setShowBrowseView($showBrowseView) - { - $this->showBrowseView = $showBrowseView; - } - public function getShowBrowseView() - { - return $this->showBrowseView; - } - public function setShowRelatedChannels($showRelatedChannels) - { - $this->showRelatedChannels = $showRelatedChannels; - } - public function getShowRelatedChannels() - { - return $this->showRelatedChannels; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) - { - $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; - } - public function getTrackingAnalyticsAccountId() - { - return $this->trackingAnalyticsAccountId; - } - public function setUnsubscribedTrailer($unsubscribedTrailer) - { - $this->unsubscribedTrailer = $unsubscribedTrailer; - } - public function getUnsubscribedTrailer() - { - return $this->unsubscribedTrailer; - } -} - -class Google_Service_YouTube_ChannelSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $commentCount; - public $hiddenSubscriberCount; - public $subscriberCount; - public $videoCount; - public $viewCount; - - - public function setCommentCount($commentCount) - { - $this->commentCount = $commentCount; - } - public function getCommentCount() - { - return $this->commentCount; - } - public function setHiddenSubscriberCount($hiddenSubscriberCount) - { - $this->hiddenSubscriberCount = $hiddenSubscriberCount; - } - public function getHiddenSubscriberCount() - { - return $this->hiddenSubscriberCount; - } - public function setSubscriberCount($subscriberCount) - { - $this->subscriberCount = $subscriberCount; - } - public function getSubscriberCount() - { - return $this->subscriberCount; - } - public function setVideoCount($videoCount) - { - $this->videoCount = $videoCount; - } - public function getVideoCount() - { - return $this->videoCount; - } - public function setViewCount($viewCount) - { - $this->viewCount = $viewCount; - } - public function getViewCount() - { - return $this->viewCount; - } -} - -class Google_Service_YouTube_ChannelStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isLinked; - public $longUploadsStatus; - public $privacyStatus; - - - public function setIsLinked($isLinked) - { - $this->isLinked = $isLinked; - } - public function getIsLinked() - { - return $this->isLinked; - } - public function setLongUploadsStatus($longUploadsStatus) - { - $this->longUploadsStatus = $longUploadsStatus; - } - public function getLongUploadsStatus() - { - return $this->longUploadsStatus; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $topicIds; - - - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_Comment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; - protected $authorChannelIdDataType = ''; - public $authorChannelUrl; - public $authorDisplayName; - public $authorGoogleplusProfileUrl; - public $authorProfileImageUrl; - public $canRate; - public $channelId; - public $likeCount; - public $moderationStatus; - public $parentId; - public $publishedAt; - public $textDisplay; - public $textOriginal; - public $updatedAt; - public $videoId; - public $viewerRating; - - - public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) - { - $this->authorChannelId = $authorChannelId; - } - public function getAuthorChannelId() - { - return $this->authorChannelId; - } - public function setAuthorChannelUrl($authorChannelUrl) - { - $this->authorChannelUrl = $authorChannelUrl; - } - public function getAuthorChannelUrl() - { - return $this->authorChannelUrl; - } - public function setAuthorDisplayName($authorDisplayName) - { - $this->authorDisplayName = $authorDisplayName; - } - public function getAuthorDisplayName() - { - return $this->authorDisplayName; - } - public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) - { - $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; - } - public function getAuthorGoogleplusProfileUrl() - { - return $this->authorGoogleplusProfileUrl; - } - public function setAuthorProfileImageUrl($authorProfileImageUrl) - { - $this->authorProfileImageUrl = $authorProfileImageUrl; - } - public function getAuthorProfileImageUrl() - { - return $this->authorProfileImageUrl; - } - public function setCanRate($canRate) - { - $this->canRate = $canRate; - } - public function getCanRate() - { - return $this->canRate; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setLikeCount($likeCount) - { - $this->likeCount = $likeCount; - } - public function getLikeCount() - { - return $this->likeCount; - } - public function setModerationStatus($moderationStatus) - { - $this->moderationStatus = $moderationStatus; - } - public function getModerationStatus() - { - return $this->moderationStatus; - } - public function setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTextDisplay($textDisplay) - { - $this->textDisplay = $textDisplay; - } - public function getTextDisplay() - { - return $this->textDisplay; - } - public function setTextOriginal($textOriginal) - { - $this->textOriginal = $textOriginal; - } - public function getTextOriginal() - { - return $this->textOriginal; - } - public function setUpdatedAt($updatedAt) - { - $this->updatedAt = $updatedAt; - } - public function getUpdatedAt() - { - return $this->updatedAt; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setViewerRating($viewerRating) - { - $this->viewerRating = $viewerRating; - } - public function getViewerRating() - { - return $this->viewerRating; - } -} - -class Google_Service_YouTube_CommentThread extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; - protected $repliesDataType = ''; - protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_CommentThread'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentThreadReplies extends Google_Collection -{ - protected $collection_key = 'comments'; - protected $internal_gapi_mappings = array( - ); - protected $commentsType = 'Google_Service_YouTube_Comment'; - protected $commentsDataType = 'array'; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } -} - -class Google_Service_YouTube_CommentThreadSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canReply; - public $channelId; - public $isPublic; - protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; - protected $topLevelCommentDataType = ''; - public $totalReplyCount; - public $videoId; - - - public function setCanReply($canReply) - { - $this->canReply = $canReply; - } - public function getCanReply() - { - return $this->canReply; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } - public function getIsPublic() - { - return $this->isPublic; - } - public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) - { - $this->topLevelComment = $topLevelComment; - } - public function getTopLevelComment() - { - return $this->topLevelComment; - } - public function setTotalReplyCount($totalReplyCount) - { - $this->totalReplyCount = $totalReplyCount; - } - public function getTotalReplyCount() - { - return $this->totalReplyCount; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ContentRating extends Google_Collection -{ - protected $collection_key = 'djctqRatingReasons'; - protected $internal_gapi_mappings = array( - ); - public $acbRating; - public $agcomRating; - public $anatelRating; - public $bbfcRating; - public $bfvcRating; - public $bmukkRating; - public $catvRating; - public $catvfrRating; - public $cbfcRating; - public $cccRating; - public $cceRating; - public $chfilmRating; - public $chvrsRating; - public $cicfRating; - public $cnaRating; - public $csaRating; - public $cscfRating; - public $czfilmRating; - public $djctqRating; - public $djctqRatingReasons; - public $eefilmRating; - public $egfilmRating; - public $eirinRating; - public $fcbmRating; - public $fcoRating; - public $fmocRating; - public $fpbRating; - public $fskRating; - public $grfilmRating; - public $icaaRating; - public $ifcoRating; - public $ilfilmRating; - public $incaaRating; - public $kfcbRating; - public $kijkwijzerRating; - public $kmrbRating; - public $lsfRating; - public $mccaaRating; - public $mccypRating; - public $mdaRating; - public $medietilsynetRating; - public $mekuRating; - public $mibacRating; - public $mocRating; - public $moctwRating; - public $mpaaRating; - public $mtrcbRating; - public $nbcRating; - public $nbcplRating; - public $nfrcRating; - public $nfvcbRating; - public $nkclvRating; - public $oflcRating; - public $pefilmRating; - public $rcnofRating; - public $resorteviolenciaRating; - public $rtcRating; - public $rteRating; - public $russiaRating; - public $skfilmRating; - public $smaisRating; - public $smsaRating; - public $tvpgRating; - public $ytRating; - - - public function setAcbRating($acbRating) - { - $this->acbRating = $acbRating; - } - public function getAcbRating() - { - return $this->acbRating; - } - public function setAgcomRating($agcomRating) - { - $this->agcomRating = $agcomRating; - } - public function getAgcomRating() - { - return $this->agcomRating; - } - public function setAnatelRating($anatelRating) - { - $this->anatelRating = $anatelRating; - } - public function getAnatelRating() - { - return $this->anatelRating; - } - public function setBbfcRating($bbfcRating) - { - $this->bbfcRating = $bbfcRating; - } - public function getBbfcRating() - { - return $this->bbfcRating; - } - public function setBfvcRating($bfvcRating) - { - $this->bfvcRating = $bfvcRating; - } - public function getBfvcRating() - { - return $this->bfvcRating; - } - public function setBmukkRating($bmukkRating) - { - $this->bmukkRating = $bmukkRating; - } - public function getBmukkRating() - { - return $this->bmukkRating; - } - public function setCatvRating($catvRating) - { - $this->catvRating = $catvRating; - } - public function getCatvRating() - { - return $this->catvRating; - } - public function setCatvfrRating($catvfrRating) - { - $this->catvfrRating = $catvfrRating; - } - public function getCatvfrRating() - { - return $this->catvfrRating; - } - public function setCbfcRating($cbfcRating) - { - $this->cbfcRating = $cbfcRating; - } - public function getCbfcRating() - { - return $this->cbfcRating; - } - public function setCccRating($cccRating) - { - $this->cccRating = $cccRating; - } - public function getCccRating() - { - return $this->cccRating; - } - public function setCceRating($cceRating) - { - $this->cceRating = $cceRating; - } - public function getCceRating() - { - return $this->cceRating; - } - public function setChfilmRating($chfilmRating) - { - $this->chfilmRating = $chfilmRating; - } - public function getChfilmRating() - { - return $this->chfilmRating; - } - public function setChvrsRating($chvrsRating) - { - $this->chvrsRating = $chvrsRating; - } - public function getChvrsRating() - { - return $this->chvrsRating; - } - public function setCicfRating($cicfRating) - { - $this->cicfRating = $cicfRating; - } - public function getCicfRating() - { - return $this->cicfRating; - } - public function setCnaRating($cnaRating) - { - $this->cnaRating = $cnaRating; - } - public function getCnaRating() - { - return $this->cnaRating; - } - public function setCsaRating($csaRating) - { - $this->csaRating = $csaRating; - } - public function getCsaRating() - { - return $this->csaRating; - } - public function setCscfRating($cscfRating) - { - $this->cscfRating = $cscfRating; - } - public function getCscfRating() - { - return $this->cscfRating; - } - public function setCzfilmRating($czfilmRating) - { - $this->czfilmRating = $czfilmRating; - } - public function getCzfilmRating() - { - return $this->czfilmRating; - } - public function setDjctqRating($djctqRating) - { - $this->djctqRating = $djctqRating; - } - public function getDjctqRating() - { - return $this->djctqRating; - } - public function setDjctqRatingReasons($djctqRatingReasons) - { - $this->djctqRatingReasons = $djctqRatingReasons; - } - public function getDjctqRatingReasons() - { - return $this->djctqRatingReasons; - } - public function setEefilmRating($eefilmRating) - { - $this->eefilmRating = $eefilmRating; - } - public function getEefilmRating() - { - return $this->eefilmRating; - } - public function setEgfilmRating($egfilmRating) - { - $this->egfilmRating = $egfilmRating; - } - public function getEgfilmRating() - { - return $this->egfilmRating; - } - public function setEirinRating($eirinRating) - { - $this->eirinRating = $eirinRating; - } - public function getEirinRating() - { - return $this->eirinRating; - } - public function setFcbmRating($fcbmRating) - { - $this->fcbmRating = $fcbmRating; - } - public function getFcbmRating() - { - return $this->fcbmRating; - } - public function setFcoRating($fcoRating) - { - $this->fcoRating = $fcoRating; - } - public function getFcoRating() - { - return $this->fcoRating; - } - public function setFmocRating($fmocRating) - { - $this->fmocRating = $fmocRating; - } - public function getFmocRating() - { - return $this->fmocRating; - } - public function setFpbRating($fpbRating) - { - $this->fpbRating = $fpbRating; - } - public function getFpbRating() - { - return $this->fpbRating; - } - public function setFskRating($fskRating) - { - $this->fskRating = $fskRating; - } - public function getFskRating() - { - return $this->fskRating; - } - public function setGrfilmRating($grfilmRating) - { - $this->grfilmRating = $grfilmRating; - } - public function getGrfilmRating() - { - return $this->grfilmRating; - } - public function setIcaaRating($icaaRating) - { - $this->icaaRating = $icaaRating; - } - public function getIcaaRating() - { - return $this->icaaRating; - } - public function setIfcoRating($ifcoRating) - { - $this->ifcoRating = $ifcoRating; - } - public function getIfcoRating() - { - return $this->ifcoRating; - } - public function setIlfilmRating($ilfilmRating) - { - $this->ilfilmRating = $ilfilmRating; - } - public function getIlfilmRating() - { - return $this->ilfilmRating; - } - public function setIncaaRating($incaaRating) - { - $this->incaaRating = $incaaRating; - } - public function getIncaaRating() - { - return $this->incaaRating; - } - public function setKfcbRating($kfcbRating) - { - $this->kfcbRating = $kfcbRating; - } - public function getKfcbRating() - { - return $this->kfcbRating; - } - public function setKijkwijzerRating($kijkwijzerRating) - { - $this->kijkwijzerRating = $kijkwijzerRating; - } - public function getKijkwijzerRating() - { - return $this->kijkwijzerRating; - } - public function setKmrbRating($kmrbRating) - { - $this->kmrbRating = $kmrbRating; - } - public function getKmrbRating() - { - return $this->kmrbRating; - } - public function setLsfRating($lsfRating) - { - $this->lsfRating = $lsfRating; - } - public function getLsfRating() - { - return $this->lsfRating; - } - public function setMccaaRating($mccaaRating) - { - $this->mccaaRating = $mccaaRating; - } - public function getMccaaRating() - { - return $this->mccaaRating; - } - public function setMccypRating($mccypRating) - { - $this->mccypRating = $mccypRating; - } - public function getMccypRating() - { - return $this->mccypRating; - } - public function setMdaRating($mdaRating) - { - $this->mdaRating = $mdaRating; - } - public function getMdaRating() - { - return $this->mdaRating; - } - public function setMedietilsynetRating($medietilsynetRating) - { - $this->medietilsynetRating = $medietilsynetRating; - } - public function getMedietilsynetRating() - { - return $this->medietilsynetRating; - } - public function setMekuRating($mekuRating) - { - $this->mekuRating = $mekuRating; - } - public function getMekuRating() - { - return $this->mekuRating; - } - public function setMibacRating($mibacRating) - { - $this->mibacRating = $mibacRating; - } - public function getMibacRating() - { - return $this->mibacRating; - } - public function setMocRating($mocRating) - { - $this->mocRating = $mocRating; - } - public function getMocRating() - { - return $this->mocRating; - } - public function setMoctwRating($moctwRating) - { - $this->moctwRating = $moctwRating; - } - public function getMoctwRating() - { - return $this->moctwRating; - } - public function setMpaaRating($mpaaRating) - { - $this->mpaaRating = $mpaaRating; - } - public function getMpaaRating() - { - return $this->mpaaRating; - } - public function setMtrcbRating($mtrcbRating) - { - $this->mtrcbRating = $mtrcbRating; - } - public function getMtrcbRating() - { - return $this->mtrcbRating; - } - public function setNbcRating($nbcRating) - { - $this->nbcRating = $nbcRating; - } - public function getNbcRating() - { - return $this->nbcRating; - } - public function setNbcplRating($nbcplRating) - { - $this->nbcplRating = $nbcplRating; - } - public function getNbcplRating() - { - return $this->nbcplRating; - } - public function setNfrcRating($nfrcRating) - { - $this->nfrcRating = $nfrcRating; - } - public function getNfrcRating() - { - return $this->nfrcRating; - } - public function setNfvcbRating($nfvcbRating) - { - $this->nfvcbRating = $nfvcbRating; - } - public function getNfvcbRating() - { - return $this->nfvcbRating; - } - public function setNkclvRating($nkclvRating) - { - $this->nkclvRating = $nkclvRating; - } - public function getNkclvRating() - { - return $this->nkclvRating; - } - public function setOflcRating($oflcRating) - { - $this->oflcRating = $oflcRating; - } - public function getOflcRating() - { - return $this->oflcRating; - } - public function setPefilmRating($pefilmRating) - { - $this->pefilmRating = $pefilmRating; - } - public function getPefilmRating() - { - return $this->pefilmRating; - } - public function setRcnofRating($rcnofRating) - { - $this->rcnofRating = $rcnofRating; - } - public function getRcnofRating() - { - return $this->rcnofRating; - } - public function setResorteviolenciaRating($resorteviolenciaRating) - { - $this->resorteviolenciaRating = $resorteviolenciaRating; - } - public function getResorteviolenciaRating() - { - return $this->resorteviolenciaRating; - } - public function setRtcRating($rtcRating) - { - $this->rtcRating = $rtcRating; - } - public function getRtcRating() - { - return $this->rtcRating; - } - public function setRteRating($rteRating) - { - $this->rteRating = $rteRating; - } - public function getRteRating() - { - return $this->rteRating; - } - public function setRussiaRating($russiaRating) - { - $this->russiaRating = $russiaRating; - } - public function getRussiaRating() - { - return $this->russiaRating; - } - public function setSkfilmRating($skfilmRating) - { - $this->skfilmRating = $skfilmRating; - } - public function getSkfilmRating() - { - return $this->skfilmRating; - } - public function setSmaisRating($smaisRating) - { - $this->smaisRating = $smaisRating; - } - public function getSmaisRating() - { - return $this->smaisRating; - } - public function setSmsaRating($smsaRating) - { - $this->smsaRating = $smsaRating; - } - public function getSmsaRating() - { - return $this->smsaRating; - } - public function setTvpgRating($tvpgRating) - { - $this->tvpgRating = $tvpgRating; - } - public function getTvpgRating() - { - return $this->tvpgRating; - } - public function setYtRating($ytRating) - { - $this->ytRating = $ytRating; - } - public function getYtRating() - { - return $this->ytRating; - } -} - -class Google_Service_YouTube_GeoPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $altitude; - public $latitude; - public $longitude; - - - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } - public function getAltitude() - { - return $this->altitude; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } -} - -class Google_Service_YouTube_GuideCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_GuideCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_GuideCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_I18nLanguage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hl; - public $name; - - - public function setHl($hl) - { - $this->hl = $hl; - } - public function getHl() - { - return $this->hl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_I18nRegion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nRegion'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nRegionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gl; - public $name; - - - public function setGl($gl) - { - $this->gl = $gl; - } - public function getGl() - { - return $this->gl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_ImageSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $backgroundImageUrlDataType = ''; - public $bannerExternalUrl; - public $bannerImageUrl; - public $bannerMobileExtraHdImageUrl; - public $bannerMobileHdImageUrl; - public $bannerMobileImageUrl; - public $bannerMobileLowImageUrl; - public $bannerMobileMediumHdImageUrl; - public $bannerTabletExtraHdImageUrl; - public $bannerTabletHdImageUrl; - public $bannerTabletImageUrl; - public $bannerTabletLowImageUrl; - public $bannerTvHighImageUrl; - public $bannerTvImageUrl; - public $bannerTvLowImageUrl; - public $bannerTvMediumImageUrl; - protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageImapScriptDataType = ''; - protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageUrlDataType = ''; - protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageImapScriptDataType = ''; - protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageUrlDataType = ''; - public $trackingImageUrl; - public $watchIconImageUrl; - - - public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) - { - $this->backgroundImageUrl = $backgroundImageUrl; - } - public function getBackgroundImageUrl() - { - return $this->backgroundImageUrl; - } - public function setBannerExternalUrl($bannerExternalUrl) - { - $this->bannerExternalUrl = $bannerExternalUrl; - } - public function getBannerExternalUrl() - { - return $this->bannerExternalUrl; - } - public function setBannerImageUrl($bannerImageUrl) - { - $this->bannerImageUrl = $bannerImageUrl; - } - public function getBannerImageUrl() - { - return $this->bannerImageUrl; - } - public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) - { - $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; - } - public function getBannerMobileExtraHdImageUrl() - { - return $this->bannerMobileExtraHdImageUrl; - } - public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) - { - $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; - } - public function getBannerMobileHdImageUrl() - { - return $this->bannerMobileHdImageUrl; - } - public function setBannerMobileImageUrl($bannerMobileImageUrl) - { - $this->bannerMobileImageUrl = $bannerMobileImageUrl; - } - public function getBannerMobileImageUrl() - { - return $this->bannerMobileImageUrl; - } - public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) - { - $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; - } - public function getBannerMobileLowImageUrl() - { - return $this->bannerMobileLowImageUrl; - } - public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) - { - $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; - } - public function getBannerMobileMediumHdImageUrl() - { - return $this->bannerMobileMediumHdImageUrl; - } - public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) - { - $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; - } - public function getBannerTabletExtraHdImageUrl() - { - return $this->bannerTabletExtraHdImageUrl; - } - public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) - { - $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; - } - public function getBannerTabletHdImageUrl() - { - return $this->bannerTabletHdImageUrl; - } - public function setBannerTabletImageUrl($bannerTabletImageUrl) - { - $this->bannerTabletImageUrl = $bannerTabletImageUrl; - } - public function getBannerTabletImageUrl() - { - return $this->bannerTabletImageUrl; - } - public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) - { - $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; - } - public function getBannerTabletLowImageUrl() - { - return $this->bannerTabletLowImageUrl; - } - public function setBannerTvHighImageUrl($bannerTvHighImageUrl) - { - $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; - } - public function getBannerTvHighImageUrl() - { - return $this->bannerTvHighImageUrl; - } - public function setBannerTvImageUrl($bannerTvImageUrl) - { - $this->bannerTvImageUrl = $bannerTvImageUrl; - } - public function getBannerTvImageUrl() - { - return $this->bannerTvImageUrl; - } - public function setBannerTvLowImageUrl($bannerTvLowImageUrl) - { - $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; - } - public function getBannerTvLowImageUrl() - { - return $this->bannerTvLowImageUrl; - } - public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) - { - $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; - } - public function getBannerTvMediumImageUrl() - { - return $this->bannerTvMediumImageUrl; - } - public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) - { - $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; - } - public function getLargeBrandedBannerImageImapScript() - { - return $this->largeBrandedBannerImageImapScript; - } - public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) - { - $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; - } - public function getLargeBrandedBannerImageUrl() - { - return $this->largeBrandedBannerImageUrl; - } - public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) - { - $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; - } - public function getSmallBrandedBannerImageImapScript() - { - return $this->smallBrandedBannerImageImapScript; - } - public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) - { - $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; - } - public function getSmallBrandedBannerImageUrl() - { - return $this->smallBrandedBannerImageUrl; - } - public function setTrackingImageUrl($trackingImageUrl) - { - $this->trackingImageUrl = $trackingImageUrl; - } - public function getTrackingImageUrl() - { - return $this->trackingImageUrl; - } - public function setWatchIconImageUrl($watchIconImageUrl) - { - $this->watchIconImageUrl = $watchIconImageUrl; - } - public function getWatchIconImageUrl() - { - return $this->watchIconImageUrl; - } -} - -class Google_Service_YouTube_IngestionInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupIngestionAddress; - public $ingestionAddress; - public $streamName; - - - public function setBackupIngestionAddress($backupIngestionAddress) - { - $this->backupIngestionAddress = $backupIngestionAddress; - } - public function getBackupIngestionAddress() - { - return $this->backupIngestionAddress; - } - public function setIngestionAddress($ingestionAddress) - { - $this->ingestionAddress = $ingestionAddress; - } - public function getIngestionAddress() - { - return $this->ingestionAddress; - } - public function setStreamName($streamName) - { - $this->streamName = $streamName; - } - public function getStreamName() - { - return $this->streamName; - } -} - -class Google_Service_YouTube_InvideoBranding extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $imageBytes; - public $imageUrl; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $targetChannelId; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setImageBytes($imageBytes) - { - $this->imageBytes = $imageBytes; - } - public function getImageBytes() - { - return $this->imageBytes; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setTargetChannelId($targetChannelId) - { - $this->targetChannelId = $targetChannelId; - } - public function getTargetChannelId() - { - return $this->targetChannelId; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_InvideoPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cornerPosition; - public $type; - - - public function setCornerPosition($cornerPosition) - { - $this->cornerPosition = $cornerPosition; - } - public function getCornerPosition() - { - return $this->cornerPosition; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_InvideoPromotion extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; - protected $defaultTimingDataType = ''; - protected $itemsType = 'Google_Service_YouTube_PromotedItem'; - protected $itemsDataType = 'array'; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $useSmartTiming; - - - public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) - { - $this->defaultTiming = $defaultTiming; - } - public function getDefaultTiming() - { - return $this->defaultTiming; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setUseSmartTiming($useSmartTiming) - { - $this->useSmartTiming = $useSmartTiming; - } - public function getUseSmartTiming() - { - return $this->useSmartTiming; - } -} - -class Google_Service_YouTube_InvideoTiming extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $durationMs; - public $offsetMs; - public $type; - - - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setOffsetMs($offsetMs) - { - $this->offsetMs = $offsetMs; - } - public function getOffsetMs() - { - return $this->offsetMs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LanguageTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_LiveBroadcast extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; - protected $topicDetailsDataType = ''; - - - 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 setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $boundStreamId; - public $enableClosedCaptions; - public $enableContentEncryption; - public $enableDvr; - public $enableEmbed; - public $enableLowLatency; - protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; - protected $monitorStreamDataType = ''; - public $recordFromStart; - public $startWithSlate; - - - public function setBoundStreamId($boundStreamId) - { - $this->boundStreamId = $boundStreamId; - } - public function getBoundStreamId() - { - return $this->boundStreamId; - } - public function setEnableClosedCaptions($enableClosedCaptions) - { - $this->enableClosedCaptions = $enableClosedCaptions; - } - public function getEnableClosedCaptions() - { - return $this->enableClosedCaptions; - } - public function setEnableContentEncryption($enableContentEncryption) - { - $this->enableContentEncryption = $enableContentEncryption; - } - public function getEnableContentEncryption() - { - return $this->enableContentEncryption; - } - public function setEnableDvr($enableDvr) - { - $this->enableDvr = $enableDvr; - } - public function getEnableDvr() - { - return $this->enableDvr; - } - public function setEnableEmbed($enableEmbed) - { - $this->enableEmbed = $enableEmbed; - } - public function getEnableEmbed() - { - return $this->enableEmbed; - } - public function setEnableLowLatency($enableLowLatency) - { - $this->enableLowLatency = $enableLowLatency; - } - public function getEnableLowLatency() - { - return $this->enableLowLatency; - } - public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) - { - $this->monitorStream = $monitorStream; - } - public function getMonitorStream() - { - return $this->monitorStream; - } - public function setRecordFromStart($recordFromStart) - { - $this->recordFromStart = $recordFromStart; - } - public function getRecordFromStart() - { - return $this->recordFromStart; - } - public function setStartWithSlate($startWithSlate) - { - $this->startWithSlate = $startWithSlate; - } - public function getStartWithSlate() - { - return $this->startWithSlate; - } -} - -class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualEndTime; - public $actualStartTime; - public $channelId; - public $description; - public $isDefaultBroadcast; - public $publishedAt; - public $scheduledEndTime; - public $scheduledStartTime; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIsDefaultBroadcast($isDefaultBroadcast) - { - $this->isDefaultBroadcast = $isDefaultBroadcast; - } - public function getIsDefaultBroadcast() - { - return $this->isDefaultBroadcast; - } - 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_LiveBroadcastStatistics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $concurrentViewers; - public $totalChatCount; - - - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setTotalChatCount($totalChatCount) - { - $this->totalChatCount = $totalChatCount; - } - public function getTotalChatCount() - { - return $this->totalChatCount; - } -} - -class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lifeCycleStatus; - public $liveBroadcastPriority; - public $privacyStatus; - public $recordingStatus; - - - public function setLifeCycleStatus($lifeCycleStatus) - { - $this->lifeCycleStatus = $lifeCycleStatus; - } - public function getLifeCycleStatus() - { - return $this->lifeCycleStatus; - } - public function setLiveBroadcastPriority($liveBroadcastPriority) - { - $this->liveBroadcastPriority = $liveBroadcastPriority; - } - public function getLiveBroadcastPriority() - { - return $this->liveBroadcastPriority; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setRecordingStatus($recordingStatus) - { - $this->recordingStatus = $recordingStatus; - } - public function getRecordingStatus() - { - return $this->recordingStatus; - } -} - -class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; - protected $snippetDataType = ''; - public $type; - public $unmatched; - - - public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnmatched($unmatched) - { - $this->unmatched = $unmatched; - } - public function getUnmatched() - { - return $this->unmatched; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection -{ - protected $collection_key = 'topics'; - protected $internal_gapi_mappings = array( - ); - protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; - protected $topicsDataType = 'array'; - - - public function setTopics($topics) - { - $this->topics = $topics; - } - public function getTopics() - { - return $this->topics; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $releaseDate; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReleaseDate($releaseDate) - { - $this->releaseDate = $releaseDate; - } - public function getReleaseDate() - { - return $this->releaseDate; - } -} - -class Google_Service_YouTube_LiveStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cdnType = 'Google_Service_YouTube_CdnSettings'; - protected $cdnDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; - protected $statusDataType = ''; - - - public function setCdn(Google_Service_YouTube_CdnSettings $cdn) - { - $this->cdn = $cdn; - } - public function getCdn() - { - return $this->cdn; - } - public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $reason; - public $severity; - public $type; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $closedCaptionsIngestionUrl; - public $isReusable; - - - public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) - { - $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; - } - public function getClosedCaptionsIngestionUrl() - { - return $this->closedCaptionsIngestionUrl; - } - public function setIsReusable($isReusable) - { - $this->isReusable = $isReusable; - } - public function getIsReusable() - { - return $this->isReusable; - } -} - -class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection -{ - protected $collection_key = 'configurationIssues'; - protected $internal_gapi_mappings = array( - ); - protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; - protected $configurationIssuesDataType = 'array'; - public $lastUpdateTimeS; - public $status; - - - public function setConfigurationIssues($configurationIssues) - { - $this->configurationIssues = $configurationIssues; - } - public function getConfigurationIssues() - { - return $this->configurationIssues; - } - public function setLastUpdateTimeS($lastUpdateTimeS) - { - $this->lastUpdateTimeS = $lastUpdateTimeS; - } - public function getLastUpdateTimeS() - { - return $this->lastUpdateTimeS; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveStream'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveStreamSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - public $isDefaultStream; - 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 setIsDefaultStream($isDefaultStream) - { - $this->isDefaultStream = $isDefaultStream; - } - public function getIsDefaultStream() - { - return $this->isDefaultStream; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; - protected $healthStatusDataType = ''; - public $streamStatus; - - - public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setStreamStatus($streamStatus) - { - $this->streamStatus = $streamStatus; - } - public function getStreamStatus() - { - return $this->streamStatus; - } -} - -class Google_Service_YouTube_LocalizedProperty extends Google_Collection -{ - protected $collection_key = 'localized'; - protected $internal_gapi_mappings = array( - ); - public $default; - protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; - protected $defaultLanguageDataType = ''; - protected $localizedType = 'Google_Service_YouTube_LocalizedString'; - protected $localizedDataType = 'array'; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized($localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } -} - -class Google_Service_YouTube_LocalizedString extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $language; - public $value; - - - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_MonitorStreamInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $broadcastStreamDelayMs; - public $embedHtml; - public $enableMonitorStream; - - - public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) - { - $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; - } - public function getBroadcastStreamDelayMs() - { - return $this->broadcastStreamDelayMs; - } - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } - public function setEnableMonitorStream($enableMonitorStream) - { - $this->enableMonitorStream = $enableMonitorStream; - } - public function getEnableMonitorStream() - { - return $this->enableMonitorStream; - } -} - -class Google_Service_YouTube_PageInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizationsDataType = 'map'; - protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; - protected $playerDataType = ''; - protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $itemCount; - - - public function setItemCount($itemCount) - { - $this->itemCount = $itemCount; - } - public function getItemCount() - { - return $this->itemCount; - } -} - -class Google_Service_YouTube_PlaylistItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $playlistId; - public $position; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistItemStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PlaylistListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Playlist'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_PlaylistPlayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_PlaylistSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PromotedItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customMessage; - protected $idType = 'Google_Service_YouTube_PromotedItemId'; - protected $idDataType = ''; - public $promotedByContentOwner; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setCustomMessage($customMessage) - { - $this->customMessage = $customMessage; - } - public function getCustomMessage() - { - return $this->customMessage; - } - public function setId(Google_Service_YouTube_PromotedItemId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPromotedByContentOwner($promotedByContentOwner) - { - $this->promotedByContentOwner = $promotedByContentOwner; - } - public function getPromotedByContentOwner() - { - return $this->promotedByContentOwner; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_PromotedItemId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $recentlyUploadedBy; - public $type; - public $videoId; - public $websiteUrl; - - - public function setRecentlyUploadedBy($recentlyUploadedBy) - { - $this->recentlyUploadedBy = $recentlyUploadedBy; - } - public function getRecentlyUploadedBy() - { - return $this->recentlyUploadedBy; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_YouTube_PropertyValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_SearchResult'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SearchResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $idType = 'Google_Service_YouTube_ResourceId'; - protected $idDataType = ''; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId(Google_Service_YouTube_ResourceId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_SearchResultSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $liveBroadcastContent; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Subscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; - protected $snippetDataType = ''; - protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; - protected $subscriberSnippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) - { - $this->subscriberSnippet = $subscriberSnippet; - } - public function getSubscriberSnippet() - { - return $this->subscriberSnippet; - } -} - -class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activityType; - public $newItemCount; - public $totalItemCount; - - - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - public function getActivityType() - { - return $this->activityType; - } - public function setNewItemCount($newItemCount) - { - $this->newItemCount = $newItemCount; - } - public function getNewItemCount() - { - return $this->newItemCount; - } - public function setTotalItemCount($totalItemCount) - { - $this->totalItemCount = $totalItemCount; - } - public function getTotalItemCount() - { - return $this->totalItemCount; - } -} - -class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Subscription'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SubscriptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Thumbnail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $defaultType = 'Google_Service_YouTube_Thumbnail'; - protected $defaultDataType = ''; - protected $highType = 'Google_Service_YouTube_Thumbnail'; - protected $highDataType = ''; - protected $maxresType = 'Google_Service_YouTube_Thumbnail'; - protected $maxresDataType = ''; - protected $mediumType = 'Google_Service_YouTube_Thumbnail'; - protected $mediumDataType = ''; - protected $standardType = 'Google_Service_YouTube_Thumbnail'; - protected $standardDataType = ''; - - - public function setDefault(Google_Service_YouTube_Thumbnail $default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setHigh(Google_Service_YouTube_Thumbnail $high) - { - $this->high = $high; - } - public function getHigh() - { - return $this->high; - } - public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) - { - $this->maxres = $maxres; - } - public function getMaxres() - { - return $this->maxres; - } - public function setMedium(Google_Service_YouTube_Thumbnail $medium) - { - $this->medium = $medium; - } - public function getMedium() - { - return $this->medium; - } - public function setStandard(Google_Service_YouTube_Thumbnail $standard) - { - $this->standard = $standard; - } - public function getStandard() - { - return $this->standard; - } -} - -class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_TokenPagination extends Google_Model -{ -} - -class Google_Service_YouTube_Video extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; - protected $ageGatingDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; - protected $contentDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; - protected $fileDetailsDataType = ''; - public $id; - public $kind; - protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; - protected $liveStreamingDetailsDataType = ''; - protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizationsDataType = 'map'; - protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; - protected $monetizationDetailsDataType = ''; - protected $playerType = 'Google_Service_YouTube_VideoPlayer'; - protected $playerDataType = ''; - protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; - protected $processingDetailsDataType = ''; - protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; - protected $projectDetailsDataType = ''; - protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; - protected $recordingDetailsDataType = ''; - protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_VideoStatus'; - protected $statusDataType = ''; - protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; - protected $suggestionsDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) - { - $this->ageGating = $ageGating; - } - public function getAgeGating() - { - return $this->ageGating; - } - public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - public function getConversionPings() - { - return $this->conversionPings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) - { - $this->fileDetails = $fileDetails; - } - public function getFileDetails() - { - return $this->fileDetails; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) - { - $this->liveStreamingDetails = $liveStreamingDetails; - } - public function getLiveStreamingDetails() - { - return $this->liveStreamingDetails; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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_VideoAbuseReport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $comments; - public $language; - public $reasonId; - public $secondaryReasonId; - public $videoId; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setReasonId($reasonId) - { - $this->reasonId = $reasonId; - } - public function getReasonId() - { - return $this->reasonId; - } - public function setSecondaryReasonId($secondaryReasonId) - { - $this->secondaryReasonId = $secondaryReasonId; - } - public function getSecondaryReasonId() - { - return $this->secondaryReasonId; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection -{ - protected $collection_key = 'secondaryReasons'; - protected $internal_gapi_mappings = array( - ); - public $label; - protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; - protected $secondaryReasonsDataType = 'array'; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setSecondaryReasons($secondaryReasons) - { - $this->secondaryReasons = $secondaryReasons; - } - public function getSecondaryReasons() - { - return $this->secondaryReasons; - } -} - -class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $label; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_YouTube_VideoAgeGating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $assignable; - public $channelId; - public $title; - - - public function setAssignable($assignable) - { - $this->assignable = $assignable; - } - public function getAssignable() - { - return $this->assignable; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caption; - protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; - protected $contentRatingDataType = ''; - protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; - protected $countryRestrictionDataType = ''; - public $definition; - public $dimension; - public $duration; - public $licensedContent; - protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; - protected $regionRestrictionDataType = ''; - - - public function setCaption($caption) - { - $this->caption = $caption; - } - public function getCaption() - { - return $this->caption; - } - public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) - { - $this->contentRating = $contentRating; - } - public function getContentRating() - { - return $this->contentRating; - } - public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) - { - $this->countryRestriction = $countryRestriction; - } - public function getCountryRestriction() - { - return $this->countryRestriction; - } - public function setDefinition($definition) - { - $this->definition = $definition; - } - public function getDefinition() - { - return $this->definition; - } - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setLicensedContent($licensedContent) - { - $this->licensedContent = $licensedContent; - } - public function getLicensedContent() - { - return $this->licensedContent; - } - public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) - { - $this->regionRestriction = $regionRestriction; - } - public function getRegionRestriction() - { - return $this->regionRestriction; - } -} - -class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection -{ - protected $collection_key = 'blocked'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - -class Google_Service_YouTube_VideoFileDetails extends Google_Collection -{ - protected $collection_key = 'videoStreams'; - protected $internal_gapi_mappings = array( - ); - protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; - protected $audioStreamsDataType = 'array'; - public $bitrateBps; - public $container; - public $creationTime; - public $durationMs; - public $fileName; - public $fileSize; - public $fileType; - protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; - protected $recordingLocationDataType = ''; - protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; - protected $videoStreamsDataType = 'array'; - - - public function setAudioStreams($audioStreams) - { - $this->audioStreams = $audioStreams; - } - public function getAudioStreams() - { - return $this->audioStreams; - } - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - public function getBitrateBps() - { - return $this->bitrateBps; - } - public function setContainer($container) - { - $this->container = $container; - } - public function getContainer() - { - return $this->container; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - public function getFileName() - { - return $this->fileName; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) - { - $this->recordingLocation = $recordingLocation; - } - public function getRecordingLocation() - { - return $this->recordingLocation; - } - public function setVideoStreams($videoStreams) - { - $this->videoStreams = $videoStreams; - } - public function getVideoStreams() - { - return $this->videoStreams; - } -} - -class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoRating'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Video'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualEndTime; - public $actualStartTime; - public $concurrentViewers; - public $scheduledEndTime; - public $scheduledStartTime; - - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setScheduledEndTime($scheduledEndTime) - { - $this->scheduledEndTime = $scheduledEndTime; - } - public function getScheduledEndTime() - { - return $this->scheduledEndTime; - } - public function setScheduledStartTime($scheduledStartTime) - { - $this->scheduledStartTime = $scheduledStartTime; - } - public function getScheduledStartTime() - { - return $this->scheduledStartTime; - } -} - -class Google_Service_YouTube_VideoLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoLocalizations extends Google_Model -{ -} - -class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_YouTube_AccessPolicy'; - protected $accessDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_VideoProcessingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $editorSuggestionsAvailability; - public $fileDetailsAvailability; - public $processingFailureReason; - public $processingIssuesAvailability; - protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; - protected $processingProgressDataType = ''; - public $processingStatus; - public $tagSuggestionsAvailability; - public $thumbnailsAvailability; - - - public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) - { - $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; - } - public function getEditorSuggestionsAvailability() - { - return $this->editorSuggestionsAvailability; - } - public function setFileDetailsAvailability($fileDetailsAvailability) - { - $this->fileDetailsAvailability = $fileDetailsAvailability; - } - public function getFileDetailsAvailability() - { - return $this->fileDetailsAvailability; - } - public function setProcessingFailureReason($processingFailureReason) - { - $this->processingFailureReason = $processingFailureReason; - } - public function getProcessingFailureReason() - { - return $this->processingFailureReason; - } - public function setProcessingIssuesAvailability($processingIssuesAvailability) - { - $this->processingIssuesAvailability = $processingIssuesAvailability; - } - public function getProcessingIssuesAvailability() - { - return $this->processingIssuesAvailability; - } - public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) - { - $this->processingProgress = $processingProgress; - } - public function getProcessingProgress() - { - return $this->processingProgress; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setTagSuggestionsAvailability($tagSuggestionsAvailability) - { - $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; - } - public function getTagSuggestionsAvailability() - { - return $this->tagSuggestionsAvailability; - } - public function setThumbnailsAvailability($thumbnailsAvailability) - { - $this->thumbnailsAvailability = $thumbnailsAvailability; - } - public function getThumbnailsAvailability() - { - return $this->thumbnailsAvailability; - } -} - -class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $tags; - - - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_YouTube_VideoRating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $locationType = 'Google_Service_YouTube_GeoPoint'; - protected $locationDataType = ''; - public $locationDescription; - public $recordingDate; - - - public function setLocation(Google_Service_YouTube_GeoPoint $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setLocationDescription($locationDescription) - { - $this->locationDescription = $locationDescription; - } - public function getLocationDescription() - { - return $this->locationDescription; - } - public function setRecordingDate($recordingDate) - { - $this->recordingDate = $recordingDate; - } - public function getRecordingDate() - { - return $this->recordingDate; - } -} - -class Google_Service_YouTube_VideoSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $categoryId; - public $channelId; - public $channelTitle; - public $defaultAudioLanguage; - public $defaultLanguage; - public $description; - public $liveBroadcastContent; - protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - public function getCategoryId() - { - return $this->categoryId; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultAudioLanguage($defaultAudioLanguage) - { - $this->defaultAudioLanguage = $defaultAudioLanguage; - } - public function getDefaultAudioLanguage() - { - return $this->defaultAudioLanguage; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embeddable; - public $failureReason; - public $license; - public $privacyStatus; - public $publicStatsViewable; - public $publishAt; - public $rejectionReason; - public $uploadStatus; - - - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - public function getEmbeddable() - { - return $this->embeddable; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setLicense($license) - { - $this->license = $license; - } - public function getLicense() - { - return $this->license; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setPublicStatsViewable($publicStatsViewable) - { - $this->publicStatsViewable = $publicStatsViewable; - } - public function getPublicStatsViewable() - { - return $this->publicStatsViewable; - } - public function setPublishAt($publishAt) - { - $this->publishAt = $publishAt; - } - public function getPublishAt() - { - return $this->publishAt; - } - public function setRejectionReason($rejectionReason) - { - $this->rejectionReason = $rejectionReason; - } - public function getRejectionReason() - { - return $this->rejectionReason; - } - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_YouTube_VideoSuggestions extends Google_Collection -{ - protected $collection_key = 'tagSuggestions'; - protected $internal_gapi_mappings = array( - ); - public $editorSuggestions; - public $processingErrors; - public $processingHints; - public $processingWarnings; - protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; - protected $tagSuggestionsDataType = 'array'; - - - public function setEditorSuggestions($editorSuggestions) - { - $this->editorSuggestions = $editorSuggestions; - } - public function getEditorSuggestions() - { - return $this->editorSuggestions; - } - public function setProcessingErrors($processingErrors) - { - $this->processingErrors = $processingErrors; - } - public function getProcessingErrors() - { - return $this->processingErrors; - } - public function setProcessingHints($processingHints) - { - $this->processingHints = $processingHints; - } - public function getProcessingHints() - { - return $this->processingHints; - } - public function setProcessingWarnings($processingWarnings) - { - $this->processingWarnings = $processingWarnings; - } - public function getProcessingWarnings() - { - return $this->processingWarnings; - } - public function setTagSuggestions($tagSuggestions) - { - $this->tagSuggestions = $tagSuggestions; - } - public function getTagSuggestions() - { - return $this->tagSuggestions; - } -} - -class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection -{ - protected $collection_key = 'categoryRestricts'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $relevantTopicIds; - public $topicIds; - - - public function setRelevantTopicIds($relevantTopicIds) - { - $this->relevantTopicIds = $relevantTopicIds; - } - public function getRelevantTopicIds() - { - return $this->relevantTopicIds; - } - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_WatchSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} From a1f1b60e19f298426f2c645d2048ff4dec84fbea Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:20:29 -0700 Subject: [PATCH 0862/1274] Revert "Removed YouTube.php" This reverts commit 23a08e8e7370de1555734434fee86685af072bc2. --- src/Google/Service/YouTube.php | 12933 +++++++++++++++++++++++++++++++ 1 file changed, 12933 insertions(+) create mode 100644 src/Google/Service/YouTube.php diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php new file mode 100644 index 000000000..386936097 --- /dev/null +++ b/src/Google/Service/YouTube.php @@ -0,0 +1,12933 @@ + + * 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 +{ + /** Manage your YouTube account. */ + const YOUTUBE = + "https://www.googleapis.com/auth/youtube"; + /** Manage your YouTube account. */ + const YOUTUBE_FORCE_SSL = + "https://www.googleapis.com/auth/youtube.force-ssl"; + /** View your YouTube account. */ + const YOUTUBE_READONLY = + "https://www.googleapis.com/auth/youtube.readonly"; + /** Manage your YouTube videos. */ + const YOUTUBE_UPLOAD = + "https://www.googleapis.com/auth/youtube.upload"; + /** View and manage your assets and associated content on YouTube. */ + const YOUTUBEPARTNER = + "https://www.googleapis.com/auth/youtubepartner"; + /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ + const YOUTUBEPARTNER_CHANNEL_AUDIT = + "https://www.googleapis.com/auth/youtubepartner-channel-audit"; + + public $activities; + public $captions; + public $channelBanners; + public $channelSections; + public $channels; + public $commentThreads; + public $comments; + public $guideCategories; + public $i18nLanguages; + public $i18nRegions; + public $liveBroadcasts; + public $liveStreams; + public $playlistItems; + public $playlists; + public $search; + public $subscriptions; + public $thumbnails; + public $videoAbuseReportReasons; + public $videoCategories; + public $videos; + public $watermarks; + + + /** + * Constructs the internal representation of the YouTube service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'youtube/v3/'; + $this->version = 'v3'; + $this->serviceName = 'youtube'; + + $this->activities = new Google_Service_YouTube_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'activities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'home' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->captions = new Google_Service_YouTube_Captions_Resource( + $this, + $this->serviceName, + 'captions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'captions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'download' => array( + 'path' => 'captions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tfmt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tlang' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'captions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'captions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'captions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( + $this, + $this->serviceName, + 'channelBanners', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'channelBanners/insert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( + $this, + $this->serviceName, + 'channelSections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'channelSections', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'channelSections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'channelSections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'channelSections', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_YouTube_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'channels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'managedByMe' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forUsername' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'categoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'channels', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( + $this, + $this->serviceName, + 'commentThreads', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'shareOnGooglePlus' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'searchTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allThreadsRelatedToChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_YouTube_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'comments', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'markAsSpam' => array( + 'path' => 'comments/markAsSpam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setModerationStatus' => array( + 'path' => 'comments/setModerationStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'banAuthor' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'comments', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( + $this, + $this->serviceName, + 'guideCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'guideCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( + $this, + $this->serviceName, + 'i18nLanguages', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nLanguages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( + $this, + $this->serviceName, + 'i18nRegions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nRegions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( + $this, + $this->serviceName, + 'liveBroadcasts', + array( + 'methods' => array( + 'bind' => array( + 'path' => 'liveBroadcasts/bind', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'streamId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'control' => array( + 'path' => 'liveBroadcasts/control', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'displaySlate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offsetTimeMs' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'walltime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'transition' => array( + 'path' => 'liveBroadcasts/transition', + 'httpMethod' => 'POST', + 'parameters' => array( + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( + $this, + $this->serviceName, + 'liveStreams', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( + $this, + $this->serviceName, + 'playlistItems', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'playlistId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->playlists = new Google_Service_YouTube_Playlists_Resource( + $this, + $this->serviceName, + 'playlists', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlists', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'playlists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'playlists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'playlists', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->search = new Google_Service_YouTube_Search_Resource( + $this, + $this->serviceName, + 'search', + array( + 'methods' => array( + 'list' => array( + 'path' => 'search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'eventType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forDeveloper' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'videoSyndicated' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCaption' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forContentOwner' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'location' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locationRadius' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'topicId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDimension' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoLicense' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'relatedToVideoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDefinition' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDuration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'relevanceLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forMine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'safeSearch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoEmbeddable' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'forChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( + $this, + $this->serviceName, + 'thumbnails', + array( + 'methods' => array( + 'set' => array( + 'path' => 'thumbnails/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( + $this, + $this->serviceName, + 'videoAbuseReportReasons', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoAbuseReportReasons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( + $this, + $this->serviceName, + 'videoCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videos = new Google_Service_YouTube_Videos_Resource( + $this, + $this->serviceName, + 'videos', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'videos', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getRating' => array( + 'path' => 'videos/getRating', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'videos', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stabilize' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'notifySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'autoLevels' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'videos', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'chart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'myRating' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'rate' => array( + 'path' => 'videos/rate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'rating' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'reportAbuse' => array( + 'path' => 'videos/reportAbuse', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'videos', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( + $this, + $this->serviceName, + 'watermarks', + array( + 'methods' => array( + 'set' => array( + 'path' => 'watermarks/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'unset' => array( + 'path' => 'watermarks/unset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "activities" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.) + * + * Note: Even though an activity resource can contain information about actions + * like a user rating a video or marking a video as a favorite, you need to use + * other API methods to generate those activity resources. For example, you + * would use the API's videos.rate() method to rate a video and the + * playlistItems.insert() method to mark a video as a favorite. + * (activities.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Activity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Activity + */ + public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); + } + + /** + * Returns a list of channel activity events that match the request criteria. + * For example, you can retrieve events associated with a particular channel, + * events associated with the user's subscriptions and Google+ friends, or the + * YouTube home page feed, which is customized for each user. + * (activities.listActivities) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more activity resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in an + * activity resource, the snippet property contains other properties that + * identify the type of activity, a display title for the activity, and so + * forth. If you set part=snippet, the API response will also contain all of + * those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return results for the specified country. The parameter value is an ISO + * 3166-1 alpha-2 country code. YouTube uses this value when the authorized + * user's previous activity on YouTube does not provide enough information to + * generate the activity feed. + * @opt_param string publishedBefore The publishedBefore parameter specifies the + * date and time before which an activity must have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be excluded + * from the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @opt_param string channelId The channelId parameter specifies a unique + * YouTube channel ID. The API will then return a list of that channel's + * activities. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's activities. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool home Set this parameter's value to true to retrieve the + * activity feed that displays on the YouTube home page for the currently + * authenticated user. + * @opt_param string publishedAfter The publishedAfter parameter specifies the + * earliest date and time that an activity could have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be included + * in the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @return Google_Service_YouTube_ActivityListResponse + */ + public function listActivities($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); + } +} + +/** + * The "captions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $captions = $youtubeService->captions; + * + */ +class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource +{ + + /** + * Deletes a specified caption track. (captions.delete) + * + * @param string $id The id parameter identifies the caption track that is being + * deleted. The value is a caption track ID as identified by the id property in + * a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Downloads a caption track. The caption track is returned in its original + * format unless the request specifies a value for the tfmt parameter and in its + * original language unless the request specifies a value for the tlang + * parameter. (captions.download) + * + * @param string $id The id parameter identifies the caption track that is being + * retrieved. The value is a caption track ID as identified by the id property + * in a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. + */ + public function download($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('download', array($params)); + } + + /** + * Uploads a caption track. (captions.insert) + * + * @param string $part The part parameter specifies the caption resource parts + * that the API response will include. Set the parameter value to snippet. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync The sync parameter indicates whether YouTube should + * automatically synchronize the caption file with the audio track of the video. + * If you set the value to true, YouTube will disregard any time codes that are + * in the uploaded caption file and generate new time codes for the captions. + * + * You should set the sync parameter to true if you are uploading a transcript, + * which has no time codes, or if you suspect the time codes in your file are + * incorrect and want YouTube to try to fix them. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); + } + + /** + * Returns a list of caption tracks that are associated with a specified video. + * Note that the API response does not contain the actual captions and that the + * captions.download method provides the ability to retrieve a caption track. + * (captions.listCaptions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more caption resource parts that the API response will include. The + * part names that you can include in the parameter value are id and snippet. + * @param string $videoId The videoId parameter specifies the YouTube video ID + * of the video for which the API should return caption tracks. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string id The id parameter specifies a comma-separated list of IDs + * that identify the caption resources that should be retrieved. Each ID must + * identify a caption track associated with the specified video. + * @return Google_Service_YouTube_CaptionListResponse + */ + public function listCaptions($part, $videoId, $optParams = array()) + { + $params = array('part' => $part, 'videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); + } + + /** + * Updates a caption track. When updating a caption track, you can change the + * track's draft status, upload a new caption file for the track, or both. + * (captions.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. Set the property value to + * snippet if you are updating the track's draft status. Otherwise, set the + * property value to id. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync Note: The API server only processes the parameter value + * if the request contains an updated caption file. + * + * The sync parameter indicates whether YouTube should automatically synchronize + * the caption file with the audio track of the video. If you set the value to + * true, YouTube will automatically synchronize the caption track with the audio + * track. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Caption"); + } +} + +/** + * The "channelBanners" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $channelBanners = $youtubeService->channelBanners; + * + */ +class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource +{ + + /** + * Uploads a channel banner image to YouTube. This method represents the first + * two steps in a three-step process to update the banner image for a channel: + * + * - Call the channelBanners.insert method to upload the binary image data to + * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 + * pixels. - Extract the url property's value from the response that the API + * returns for step 1. - Call the channels.update method to update the channel's + * branding settings. Set the brandingSettings.image.bannerExternalUrl + * property's value to the URL obtained in step 2. (channelBanners.insert) + * + * @param Google_ChannelBannerResource $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelBannerResource + */ + public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); + } +} + +/** + * The "channelSections" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $channelSections = $youtubeService->channelSections; + * + */ +class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource +{ + + /** + * Deletes a channelSection. (channelSections.delete) + * + * @param string $id The id parameter specifies the YouTube channelSection ID + * for the resource that is being deleted. In a channelSection resource, the id + * property specifies the YouTube channelSection ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a channelSection for the authenticated user's channel. + * (channelSections.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelSection + */ + public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); + } + + /** + * Returns channelSection resources that match the API request criteria. + * (channelSections.listChannelSections) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more channelSection resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, and contentDetails. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * channelSection resource, the snippet property contains other properties, such + * as a display title for the channelSection. If you set part=snippet, the API + * response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's channelSections. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. + * @opt_param string hl The hl parameter indicates that the snippet.localized + * property values in the returned channelSection resources should be in the + * specified language if localized values for that language are available. For + * example, if the API request specifies hl=de, the snippet.localized properties + * in the API response will contain German titles if German titles are + * available. Channel owners can provide localized channel section titles using + * either the channelSections.insert or channelSections.update method. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In + * a channelSection resource, the id property specifies the YouTube + * channelSection ID. + * @return Google_Service_YouTube_ChannelSectionListResponse + */ + public function listChannelSections($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); + } + + /** + * Update a channelSection. (channelSections.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part names that you can include in the parameter value are snippet and + * contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_ChannelSection + */ + public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); + } +} + +/** + * The "channels" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listChannels) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more channel resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a channel + * resource, the contentDetails property contains other properties, such as the + * uploads properties. As such, if you set part=contentDetails, the API response + * will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param bool managedByMe Note: This parameter is intended exclusively for + * YouTube content partners. + * + * Set this parameter's value to true to instruct the API to only return + * channels managed by the content owner that the onBehalfOfContentOwner + * parameter specifies. The user must be authenticated as a CMS account linked + * to the specified content owner and onBehalfOfContentOwner must be provided. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string forUsername The forUsername parameter specifies a YouTube + * username, thereby requesting the channel associated with that username. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return channels owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel ID(s) for the resource(s) that are being retrieved. In a + * channel resource, the id property specifies the channel's YouTube channel ID. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Use the subscriptions.list method and its + * mySubscribers parameter to retrieve a list of subscribers to the + * authenticated user's channel. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the brandingSettings + * part. + * @opt_param string categoryId The categoryId parameter specifies a YouTube + * guide category, thereby requesting YouTube channels associated with that + * category. + * @return Google_Service_YouTube_ChannelListResponse + */ + public function listChannels($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); + } + + /** + * Updates a channel's metadata. Note that this method currently only supports + * updates to the channel resource's brandingSettings and invideoPromotion + * objects and their child properties. (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 API currently only allows the parameter value to be set to either + * brandingSettings or invideoPromotion. (You cannot update both of those parts + * with a single request.) + * + * Note that this method overrides the existing values for all of the mutable + * properties that are contained in any parts that the parameter value + * specifies. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter + * indicates that the authenticated user is acting on behalf of the content + * owner specified in the parameter value. This parameter is intended for + * YouTube content partners that own and manage many different YouTube channels. + * It allows content owners to authenticate once and get access to all their + * video and channel data, without having to provide authentication credentials + * for each individual channel. The actual CMS account that the user + * authenticates with needs to be linked to the specified YouTube content owner. + * @return Google_Service_YouTube_Channel + */ + public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Channel"); + } +} + +/** + * The "commentThreads" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $commentThreads = $youtubeService->commentThreads; + * + */ +class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource +{ + + /** + * Creates a new top-level comment. To add a reply to an existing comment, use + * the comments.insert method instead. (commentThreads.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates + * whether the top-level comment and any replies that are made to that comment + * should also be posted to the author's Google+ profile. + * @return Google_Service_YouTube_CommentThread + */ + public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); + } + + /** + * Returns a list of comment threads that match the API request parameters. + * (commentThreads.listCommentThreads) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more commentThread resource properties that the API response will + * include. + * @param array $optParams Optional parameters. + * + * @opt_param string searchTerms The searchTerms parameter instructs the API to + * limit the API response to only contain comments that contain the specified + * search terms. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string allThreadsRelatedToChannelId The + * allThreadsRelatedToChannelId parameter instructs the API to return all + * comment threads associated with the specified channel. The response can + * include comments about the channel or about the channel's videos. + * @opt_param string channelId The channelId parameter instructs the API to + * return comment threads containing comments about the specified channel. (The + * response will not include comments left on videos that the channel uploaded.) + * @opt_param string videoId The videoId parameter instructs the API to return + * comment threads associated with the specified video ID. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. + * @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 property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string moderationStatus Set this parameter to limit the returned + * comment threads to a particular moderation state. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string textFormat Set this parameter's value to html or plainText + * to instruct the API to return the comments left by users in html formatted or + * in plain text. + * @opt_param string order The order parameter specifies the order in which the + * API response should list comment threads. Valid values are: - time - Comment + * threads are ordered by time. This is the default behavior. - relevance - + * Comment threads are ordered by relevance.Note: This parameter is not + * supported for use in conjunction with the id parameter. + * @return Google_Service_YouTube_CommentThreadListResponse + */ + public function listCommentThreads($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); + } + + /** + * Modifies the top-level comment in a comment thread. (commentThreads.update) + * + * @param string $part The part parameter specifies a comma-separated list of + * commentThread resource properties that the API response will include. You + * must at least include the snippet part in the parameter value since that part + * contains all of the properties that the API request can update. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_CommentThread + */ + public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); + } +} + +/** + * The "comments" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $comments = $youtubeService->comments; + * + */ +class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a comment. (comments.delete) + * + * @param string $id The id parameter specifies the comment 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); + return $this->call('delete', array($params)); + } + + /** + * Creates a reply to an existing comment. Note: To create a top-level comment, + * use the commentThreads.insert method. (comments.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); + } + + /** + * Returns a list of comments that match the API request parameters. + * (comments.listComments) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more comment resource properties that the API response will include. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string parentId The parentId parameter specifies the ID of the + * comment for which replies should be retrieved. + * + * Note: YouTube currently supports replies only for top-level comments. + * However, replies to replies may be supported in the future. + * @opt_param string textFormat This parameter indicates whether the API should + * return comments formatted as HTML or as plain text. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment IDs for the resources that are being retrieved. In a comment + * resource, the id property specifies the comment's ID. + * @return Google_Service_YouTube_CommentListResponse + */ + public function listComments($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); + } + + /** + * Expresses the caller's opinion that one or more comments should be flagged as + * spam. (comments.markAsSpam) + * + * @param string $id The id parameter specifies a comma-separated list of IDs of + * comments that the caller believes should be classified as spam. + * @param array $optParams Optional parameters. + */ + public function markAsSpam($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params)); + } + + /** + * Sets the moderation status of one or more comments. The API request must be + * authorized by the owner of the channel or video associated with the comments. + * (comments.setModerationStatus) + * + * @param string $id The id parameter specifies a comma-separated list of IDs + * that identify the comments for which you are updating the moderation status. + * @param string $moderationStatus Identifies the new moderation status of the + * specified comments. + * @param array $optParams Optional parameters. + * + * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you + * want to automatically reject any additional comments written by the comment's + * author. Set the parameter value to true to ban the author. + * + * Note: This parameter is only valid if the moderationStatus parameter is also + * set to rejected. + */ + public function setModerationStatus($id, $moderationStatus, $optParams = array()) + { + $params = array('id' => $id, 'moderationStatus' => $moderationStatus); + $params = array_merge($params, $optParams); + return $this->call('setModerationStatus', array($params)); + } + + /** + * Modifies a comment. (comments.update) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. You must at least include the snippet part in the + * parameter value since that part contains all of the properties that the API + * request can update. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Comment"); + } +} + +/** + * The "guideCategories" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listGuideCategories) + * + * @param string $part The part parameter specifies the guideCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of guide categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube channel category ID(s) for the resource(s) that are being retrieved. + * In a guideCategory resource, the id property specifies the YouTube channel + * category ID. + * @opt_param string hl The hl parameter specifies the language that will be + * used for text values in the API response. + * @return Google_Service_YouTube_GuideCategoryListResponse + */ + public function listGuideCategories($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); + } +} + +/** + * The "i18nLanguages" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nLanguages = $youtubeService->i18nLanguages; + * + */ +class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of application languages that the YouTube website supports. + * (i18nLanguages.listI18nLanguages) + * + * @param string $part The part parameter specifies the i18nLanguage resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nLanguageListResponse + */ + public function listI18nLanguages($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); + } +} + +/** + * The "i18nRegions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $i18nRegions = $youtubeService->i18nRegions; + * + */ +class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of content regions that the YouTube website supports. + * (i18nRegions.listI18nRegions) + * + * @param string $part The part parameter specifies the i18nRegion resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_I18nRegionListResponse + */ + public function listI18nRegions($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); + } +} + +/** + * The "liveBroadcasts" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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, + * though a video stream may be bound to more than one broadcast. + * (liveBroadcasts.bind) + * + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is being bound to a video stream. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string streamId The streamId parameter specifies the unique ID of + * the video stream that is being bound to a broadcast. If this parameter is + * omitted, the API will remove any existing binding between the broadcast and a + * video stream. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function bind($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Controls the settings for a slate that can be displayed in the broadcast + * stream. (liveBroadcasts.control) + * + * @param string $id The id parameter specifies the YouTube live broadcast ID + * that uniquely identifies the broadcast in which the slate is being updated. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool displaySlate The displaySlate parameter specifies whether the + * slate is being enabled or disabled. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a + * positive time offset when the specified slate change will occur. The value is + * measured in milliseconds from the beginning of the broadcast's monitor + * stream, which is the time that the testing phase for the broadcast began. + * Even though it is specified in milliseconds, the value is actually an + * approximation, and YouTube completes the requested action as closely as + * possible to that time. + * + * If you do not specify a value for this parameter, then YouTube performs the + * action as soon as possible. See the Getting started guide for more details. + * + * Important: You should only specify a value for this parameter if your + * broadcast stream is delayed. + * @opt_param string walltime The walltime parameter specifies the wall clock + * time at which the specified slate change will occur. The value is specified + * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function control($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Deletes a broadcast. (liveBroadcasts.delete) + * + * @param string $id The id parameter specifies the YouTube live broadcast ID + * for the resource that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a broadcast. (liveBroadcasts.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Returns a list of YouTube broadcasts that match the API request parameters. + * (liveBroadcasts.listLiveBroadcasts) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string broadcastStatus The broadcastStatus parameter filters the + * API response to only include broadcasts with the specified status. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return broadcasts owned by the authenticated user. Set the parameter + * value to true to only retrieve your own broadcasts. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube broadcast IDs that identify the broadcasts being retrieved. In a + * liveBroadcast resource, the id property specifies the broadcast's ID. + * @return Google_Service_YouTube_LiveBroadcastListResponse + */ + public function listLiveBroadcasts($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); + } + + /** + * Changes the status of a YouTube live broadcast and initiates any processes + * associated with the new status. For example, when you transition a + * broadcast's status to testing, YouTube starts to transmit video to that + * broadcast's monitor stream. Before calling this method, you should confirm + * that the value of the status.streamStatus property for the stream bound to + * your broadcast is active. (liveBroadcasts.transition) + * + * @param string $broadcastStatus The broadcastStatus parameter identifies the + * state to which the broadcast is changing. Note that to transition a broadcast + * to either the testing or live state, the status.streamStatus must be active + * for the stream that the broadcast is bound to. + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is transitioning to another status. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function transition($broadcastStatus, $id, $part, $optParams = array()) + { + $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Updates a broadcast. For example, you could modify the broadcast settings + * defined in the liveBroadcast resource's contentDetails object. + * (liveBroadcasts.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a broadcast's privacy status is defined in the status + * part. As such, if your request is updating a private or unlisted broadcast, + * and the request's part parameter value includes the status part, the + * broadcast's privacy setting will be updated to whatever value the request + * body specifies. If the request body does not specify a value, the existing + * privacy setting will be removed and the broadcast will revert to the default + * privacy setting. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); + } +} + +/** + * The "liveStreams" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a video stream. The stream enables you to send your video to YouTube, + * which can then broadcast the video to your audience. (liveStreams.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveStream + */ + public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); + } + + /** + * Returns a list of video streams that match the API request parameters. + * (liveStreams.listLiveStreams) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveStream resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, cdn, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool mine The mine parameter can be used to instruct the API to + * only return streams owned by the authenticated user. Set the parameter value + * to true to only retrieve your own streams. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of + * YouTube stream IDs that identify the streams being retrieved. In a liveStream + * resource, the id property specifies the stream's ID. + * @return Google_Service_YouTube_LiveStreamListResponse + */ + public function listLiveStreams($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); + } + + /** + * Updates a video stream. If the properties that you want to change cannot be + * updated, then you need to create a new stream with the proper settings. + * (liveStreams.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * The part properties that you can include in the parameter value are id, + * snippet, cdn, and status. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. If the request body does not specify a value for a mutable + * property, the existing value for that property will be removed. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_LiveStream + */ + public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); + } +} + +/** + * The "playlistItems" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Adds a resource to a playlist. (playlistItems.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_PlaylistItem + */ + public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); + } + + /** + * Returns a collection of playlist items that match the API request parameters. + * You can retrieve all of the playlist items in a specified playlist or + * retrieve one or more playlist items by their unique IDs. + * (playlistItems.listPlaylistItems) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlistItem resource properties that the API response will + * include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * playlistItem resource, the snippet property contains numerous fields, + * including the title, description, position, and resourceId properties. As + * such, if you set part=snippet, the API response will contain all of those + * properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string playlistId The playlistId parameter specifies the unique ID + * of the playlist for which you want to retrieve playlist items. Note that even + * though this is an optional parameter, every request to retrieve playlist + * items must specify a value for either the id parameter or the playlistId + * parameter. + * @opt_param string videoId The videoId parameter specifies that the request + * should return only the playlist items that contain the specified video. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string id The id parameter specifies a comma-separated list of one + * or more unique playlist item IDs. + * @return Google_Service_YouTube_PlaylistItemListResponse + */ + public function listPlaylistItems($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); + } + + /** + * Modifies a playlist item. For example, you could update the item's position + * in the playlist. (playlistItems.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter value + * specifies. For example, a playlist item can specify a start time and end + * time, which identify the times portion of the video that should play when + * users watch the video in the playlist. If your request is updating a playlist + * item that sets these values, and the request's part parameter value includes + * the contentDetails part, the playlist item's start and end times will be + * updated to whatever value the request body specifies. If the request body + * does not specify values, the existing start and end times will be removed and + * replaced with the default settings. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_PlaylistItem + */ + public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); + } +} + +/** + * The "playlists" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a playlist. (playlists.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_Playlist + */ + public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); + } + + /** + * Returns a collection of playlists that match the API request parameters. For + * example, you can retrieve all playlists that the authenticated user owns, or + * you can retrieve one or more playlists by their unique IDs. + * (playlists.listPlaylists) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more playlist resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a playlist + * resource, the snippet property contains properties like author, title, + * description, tags, and timeCreated. As such, if you set part=snippet, the API + * response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId This value indicates that the API should only + * return the specified channel's playlists. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return playlists owned by the authenticated user. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the snippet part. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a + * playlist resource, the id property specifies the playlist's YouTube playlist + * ID. + * @return Google_Service_YouTube_PlaylistListResponse + */ + public function listPlaylists($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); + } + + /** + * Modifies a playlist. For example, you could change a playlist's title, + * description, or privacy status. (playlists.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that this method will override the existing values for mutable + * properties that are contained in any parts that the request body specifies. + * For example, a playlist's description is contained in the snippet part, which + * must be included in the request body. If the request does not specify a value + * for the snippet.description property, the playlist's existing description + * will be deleted. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_Playlist + */ + public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); + } +} + +/** + * The "search" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listSearch) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more search resource properties that the API response will include. + * Set the parameter value to snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string eventType The eventType parameter restricts a search to + * broadcast events. If you specify a value for this parameter, you must also + * set the type parameter's value to video. + * @opt_param string channelId The channelId parameter indicates that the API + * response should only contain resources created by the channel + * @opt_param bool forDeveloper The forDeveloper parameter restricts the search + * to only retrieve videos uploaded via the developer's application or website. + * The API server uses the request's authorization credentials to identify the + * developer. Therefore, a developer can restrict results to videos uploaded + * through the developer's own app or website but not to videos uploaded through + * other apps or sites. + * @opt_param string videoSyndicated The videoSyndicated parameter lets you to + * restrict a search to only videos that can be played outside youtube.com. If + * you specify a value for this parameter, you must also set the type + * parameter's value to video. + * @opt_param string channelType The channelType parameter lets you restrict a + * search to a particular type of channel. + * @opt_param string videoCaption The videoCaption parameter indicates whether + * the API should filter video search results based on whether they have + * captions. If you specify a value for this parameter, you must also set the + * type parameter's value to video. + * @opt_param string publishedAfter The publishedAfter parameter indicates that + * the API response should only contain resources created after the specified + * time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool forContentOwner Note: This parameter is intended exclusively + * for YouTube content partners. + * + * The forContentOwner parameter restricts the search to only retrieve resources + * owned by the content owner specified by the onBehalfOfContentOwner parameter. + * The user must be authenticated using a CMS account linked to the specified + * content owner and onBehalfOfContentOwner must be provided. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return search results for the specified country. The parameter value is an + * ISO 3166-1 alpha-2 country code. + * @opt_param string location The location parameter, in conjunction with the + * locationRadius parameter, defines a circular geographic area and also + * restricts a search to videos that specify, in their metadata, a geographic + * location that falls within that area. The parameter value is a string that + * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). + * + * - The location parameter value identifies the point at the center of the + * area. - The locationRadius parameter specifies the maximum distance that the + * location associated with a video can be from that point for the video to + * still be included in the search results.The API returns an error if your + * request specifies a value for the location parameter but does not also + * specify a value for the locationRadius parameter. + * @opt_param string locationRadius The locationRadius parameter, in conjunction + * with the location parameter, defines a circular geographic area. + * + * The parameter value must be a floating point number followed by a measurement + * unit. Valid measurement units are m, km, ft, and mi. For example, valid + * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not + * support locationRadius parameter values larger than 1000 kilometers. + * + * Note: See the definition of the location parameter for more information. + * @opt_param string videoType The videoType parameter lets you restrict a + * search to a particular type of videos. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string type The type parameter restricts a search query to only + * retrieve a particular type of resource. The value is a comma-separated list + * of resource types. + * @opt_param string topicId The topicId parameter indicates that the API + * response should only contain resources associated with the specified topic. + * The value identifies a Freebase topic ID. + * @opt_param string publishedBefore The publishedBefore parameter indicates + * that the API response should only contain resources created before the + * specified time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string videoDimension The videoDimension parameter lets you + * restrict a search to only retrieve 2D or 3D videos. If you specify a value + * for this parameter, you must also set the type parameter's value to video. + * @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. If you specify a value for + * this parameter, you must also set the type parameter's value to video. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a + * list of videos that are related to the video that the parameter value + * identifies. The parameter value must be set to a YouTube video ID and, if you + * are using this parameter, the type parameter must be set to video. + * @opt_param string videoDefinition The videoDefinition parameter lets you + * restrict a search to only include either high definition (HD) or standard + * definition (SD) videos. HD videos are available for playback in at least + * 720p, though higher resolutions, like 1080p, might also be available. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. + * @opt_param string videoDuration The videoDuration parameter filters video + * search results based on their duration. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs + * the API to return search results that are most relevant to the specified + * language. The parameter value is typically an ISO 639-1 two-letter language + * code. However, you should use the values zh-Hans for simplified Chinese and + * zh-Hant for traditional Chinese. Please note that results in other languages + * will still be returned if they are highly relevant to the search query term. + * @opt_param bool forMine The forMine parameter restricts the search to only + * retrieve videos owned by the authenticated user. If you set this parameter to + * true, then the type parameter's value must also be set to video. + * @opt_param string q The q parameter specifies the query term to search for. + * + * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude + * videos or to find videos that are associated with one of several search + * terms. For example, to search for videos matching either "boating" or + * "sailing", set the q parameter value to boating|sailing. Similarly, to search + * for videos matching either "boating" or "sailing" but not "fishing", set the + * q parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. + * @opt_param string safeSearch The safeSearch parameter indicates whether the + * search results should include restricted content as well as standard content. + * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to + * restrict a search to only videos that can be embedded into a webpage. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. + * @opt_param string videoCategoryId The videoCategoryId parameter filters video + * search results based on their category. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string order The order parameter specifies the method that will be + * used to order resources in the API response. + * @return Google_Service_YouTube_SearchListResponse + */ + public function listSearch($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); + } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Adds a subscription for the authenticated user's channel. + * (subscriptions.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Subscription + */ + public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); + } + + /** + * Returns subscription resources that match the API request criteria. + * (subscriptions.listSubscriptions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more subscription resource properties that the API response will + * include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * subscription resource, the snippet property contains other properties, such + * as a display title for the subscription. If you set part=snippet, the API + * response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's subscriptions. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's subscriptions. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string forChannelId The forChannelId parameter specifies a comma- + * separated list of channel IDs. The API response will then only contain + * subscriptions matching those channels. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param bool mySubscribers Set this parameter's value to true to retrieve + * a feed of the subscribers of the authenticated user. + * @opt_param string order The order parameter specifies the method that will be + * used to sort resources in the API response. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a + * subscription resource, the id property specifies the YouTube subscription ID. + * @return Google_Service_YouTube_SubscriptionListResponse + */ + public function listSubscriptions($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); + } +} + +/** + * The "thumbnails" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_ThumbnailSetResponse + */ + public function set($videoId, $optParams = array()) + { + $params = array('videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); + } +} + +/** + * The "videoAbuseReportReasons" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; + * + */ +class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of abuse reasons that can be used for reporting abusive + * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) + * + * @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. + * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse + */ + public function listVideoAbuseReportReasons($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); + } +} + +/** + * The "videoCategories" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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.listVideoCategories) + * + * @param string $part The part parameter specifies the videoCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode The regionCode parameter instructs the API to + * return the list of video categories available in the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id The id parameter specifies a comma-separated list of + * video category IDs for the resources that you are retrieving. + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_VideoCategoryListResponse + */ + public function listVideoCategories($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); + } +} + +/** + * The "videos" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $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. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the ratings that the authorized user gave to a list of specified + * videos. (videos.getRating) + * + * @param string $id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) for which you are retrieving rating + * data. In a video resource, the id property specifies the video's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTube_VideoGetRatingResponse + */ + public function getRating($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); + } + + /** + * Uploads a video to YouTube and optionally sets the video's metadata. + * (videos.insert) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * Note that not all parts contain properties that can be set when inserting or + * updating a video. For example, the statistics object encapsulates statistics + * that YouTube calculates for a video and does not contain values that you can + * set or modify. If the parameter value specifies a part that does not contain + * mutable values, that part will still be included in the API response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param bool stabilize The stabilize parameter indicates whether YouTube + * should adjust the video to remove shaky camera motions. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param bool notifySubscribers The notifySubscribers parameter indicates + * whether YouTube should send a notification about the new video to users who + * subscribe to the video's channel. A parameter value of True indicates that + * subscribers will be notified of newly uploaded videos. However, a channel + * owner who is uploading many videos might prefer to set the value to False to + * avoid sending a notification about each new video to the channel's + * subscribers. + * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube + * should automatically enhance the video's lighting and color. + * @return Google_Service_YouTube_Video + */ + public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Video"); + } + + /** + * Returns a list of videos that match the API request parameters. + * (videos.listVideos) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more video resource properties that the API response will include. + * + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a video + * resource, the snippet property contains the channelId, title, description, + * tags, and categoryId properties. As such, if you set part=snippet, the API + * response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string regionCode The regionCode parameter instructs the API to + * select a video chart available in the specified region. This parameter can + * only be used in conjunction with the chart parameter. The parameter value is + * an ISO 3166-1 alpha-2 country code. + * @opt_param string locale DEPRECATED + * @opt_param string videoCategoryId The videoCategoryId parameter identifies + * the video category for which the chart should be retrieved. This parameter + * can only be used in conjunction with the chart parameter. By default, charts + * are not restricted to a particular category. + * @opt_param string chart The chart parameter identifies the chart that you + * want to retrieve. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string hl The hl parameter instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. + * @opt_param string myRating Set this parameter's value to like or dislike to + * instruct the API to only return videos liked or disliked by the authenticated + * user. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube video ID(s) for the resource(s) that are being retrieved. In a video + * resource, the id property specifies the video's ID. + * @return Google_Service_YouTube_VideoListResponse + */ + public function listVideos($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); + } + + /** + * Add a like or dislike rating to a video or remove a rating from a video. + * (videos.rate) + * + * @param string $id The id parameter specifies the YouTube video ID of the + * video that is being rated or having its rating removed. + * @param string $rating Specifies the rating to record. + * @param array $optParams Optional parameters. + */ + public function rate($id, $rating, $optParams = array()) + { + $params = array('id' => $id, 'rating' => $rating); + $params = array_merge($params, $optParams); + return $this->call('rate', array($params)); + } + + /** + * Report abuse for a video. (videos.reportAbuse) + * + * @param Google_VideoAbuseReport $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportAbuse', array($params)); + } + + /** + * Updates a video's metadata. (videos.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. + * + * 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 parts contain properties that can be set when inserting + * or updating a video. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain values + * that you can set or modify. If the parameter value specifies a part that does + * not contain mutable values, that part will still be included in the API + * response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Video + */ + public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Video"); + } +} + +/** + * The "watermarks" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $watermarks = $youtubeService->watermarks; + * + */ +class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource +{ + + /** + * Uploads a watermark image to YouTube and sets it for a channel. + * (watermarks.set) + * + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being provided. + * @param Google_InvideoBranding $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) + { + $params = array('channelId' => $channelId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params)); + } + + /** + * Deletes a channel's watermark image. (watermarks.unsetWatermarks) + * + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being unset. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function unsetWatermarks($channelId, $optParams = array()) + { + $params = array('channelId' => $channelId); + $params = array_merge($params, $optParams); + return $this->call('unset', array($params)); + } +} + + + + +class Google_Service_YouTube_AccessPolicy extends Google_Collection +{ + protected $collection_key = 'exception'; + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; + protected $snippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_ActivityContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; + protected $bulletinDataType = ''; + protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; + protected $channelItemDataType = ''; + protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; + protected $commentDataType = ''; + protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; + protected $favoriteDataType = ''; + protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; + protected $likeDataType = ''; + protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; + protected $playlistItemDataType = ''; + protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; + protected $promotedItemDataType = ''; + protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; + protected $recommendationDataType = ''; + protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; + protected $socialDataType = ''; + protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; + protected $subscriptionDataType = ''; + protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; + protected $uploadDataType = ''; + + + public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) + { + $this->bulletin = $bulletin; + } + public function getBulletin() + { + return $this->bulletin; + } + public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) + { + $this->channelItem = $channelItem; + } + public function getChannelItem() + { + return $this->channelItem; + } + public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) + { + $this->favorite = $favorite; + } + public function getFavorite() + { + return $this->favorite; + } + public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) + { + $this->like = $like; + } + public function getLike() + { + return $this->like; + } + public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) + { + $this->playlistItem = $playlistItem; + } + public function getPlaylistItem() + { + return $this->playlistItem; + } + public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) + { + $this->promotedItem = $promotedItem; + } + public function getPromotedItem() + { + return $this->promotedItem; + } + public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) + { + $this->recommendation = $recommendation; + } + public function getRecommendation() + { + return $this->recommendation; + } + public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) + { + $this->social = $social; + } + public function getSocial() + { + return $this->social; + } + public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) + { + $this->upload = $upload; + } + public function getUpload() + { + return $this->upload; + } +} + +class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $playlistId; + public $playlistItemId; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + public function setPlaylistId($playlistId) + { + $this->playlistId = $playlistId; + } + public function getPlaylistId() + { + return $this->playlistId; + } + public function setPlaylistItemId($playlistItemId) + { + $this->playlistItemId = $playlistItemId; + } + public function getPlaylistItemId() + { + return $this->playlistItemId; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection +{ + protected $collection_key = 'impressionUrl'; + protected $internal_gapi_mappings = array( + ); + public $adTag; + public $clickTrackingUrl; + public $creativeViewUrl; + public $ctaType; + public $customCtaButtonText; + public $descriptionText; + public $destinationUrl; + public $forecastingUrl; + public $impressionUrl; + public $videoId; + + + public function setAdTag($adTag) + { + $this->adTag = $adTag; + } + public function getAdTag() + { + return $this->adTag; + } + public function setClickTrackingUrl($clickTrackingUrl) + { + $this->clickTrackingUrl = $clickTrackingUrl; + } + public function getClickTrackingUrl() + { + return $this->clickTrackingUrl; + } + public function setCreativeViewUrl($creativeViewUrl) + { + $this->creativeViewUrl = $creativeViewUrl; + } + public function getCreativeViewUrl() + { + return $this->creativeViewUrl; + } + public function setCtaType($ctaType) + { + $this->ctaType = $ctaType; + } + public function getCtaType() + { + return $this->ctaType; + } + public function setCustomCtaButtonText($customCtaButtonText) + { + $this->customCtaButtonText = $customCtaButtonText; + } + public function getCustomCtaButtonText() + { + return $this->customCtaButtonText; + } + public function setDescriptionText($descriptionText) + { + $this->descriptionText = $descriptionText; + } + public function getDescriptionText() + { + return $this->descriptionText; + } + public function setDestinationUrl($destinationUrl) + { + $this->destinationUrl = $destinationUrl; + } + public function getDestinationUrl() + { + return $this->destinationUrl; + } + public function setForecastingUrl($forecastingUrl) + { + $this->forecastingUrl = $forecastingUrl; + } + public function getForecastingUrl() + { + return $this->forecastingUrl; + } + public function setImpressionUrl($impressionUrl) + { + $this->impressionUrl = $impressionUrl; + } + public function getImpressionUrl() + { + return $this->impressionUrl; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $reason; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $seedResourceIdDataType = ''; + + + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) + { + $this->seedResourceId = $seedResourceId; + } + public function getSeedResourceId() + { + return $this->seedResourceId; + } +} + +class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $author; + public $imageUrl; + public $referenceUrl; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + public $type; + + + public function setAuthor($author) + { + $this->author = $author; + } + public function getAuthor() + { + return $this->author; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setReferenceUrl($referenceUrl) + { + $this->referenceUrl = $referenceUrl; + } + public function getReferenceUrl() + { + return $this->referenceUrl; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $videoId; + + + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ActivityListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ActivitySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $groupId; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + public $type; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + public function getGroupId() + { + return $this->groupId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_Caption extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CaptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Caption'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CaptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $audioTrackType; + public $failureReason; + public $isAutoSynced; + public $isCC; + public $isDraft; + public $isEasyReader; + public $isLarge; + public $language; + public $lastUpdated; + public $name; + public $status; + public $trackKind; + public $videoId; + + + public function setAudioTrackType($audioTrackType) + { + $this->audioTrackType = $audioTrackType; + } + public function getAudioTrackType() + { + return $this->audioTrackType; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setIsAutoSynced($isAutoSynced) + { + $this->isAutoSynced = $isAutoSynced; + } + public function getIsAutoSynced() + { + return $this->isAutoSynced; + } + public function setIsCC($isCC) + { + $this->isCC = $isCC; + } + public function getIsCC() + { + return $this->isCC; + } + public function setIsDraft($isDraft) + { + $this->isDraft = $isDraft; + } + public function getIsDraft() + { + return $this->isDraft; + } + public function setIsEasyReader($isEasyReader) + { + $this->isEasyReader = $isEasyReader; + } + public function getIsEasyReader() + { + return $this->isEasyReader; + } + public function setIsLarge($isLarge) + { + $this->isLarge = $isLarge; + } + public function getIsLarge() + { + return $this->isLarge; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setLastUpdated($lastUpdated) + { + $this->lastUpdated = $lastUpdated; + } + public function getLastUpdated() + { + return $this->lastUpdated; + } + 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 setTrackKind($trackKind) + { + $this->trackKind = $trackKind; + } + public function getTrackKind() + { + return $this->trackKind; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_CdnSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $format; + protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; + protected $ingestionInfoDataType = ''; + public $ingestionType; + + + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) + { + $this->ingestionInfo = $ingestionInfo; + } + public function getIngestionInfo() + { + return $this->ingestionInfo; + } + public function setIngestionType($ingestionType) + { + $this->ingestionType = $ingestionType; + } + public function getIngestionType() + { + return $this->ingestionType; + } +} + +class Google_Service_YouTube_Channel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; + protected $auditDetailsDataType = ''; + protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; + protected $brandingSettingsDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; + protected $contentDetailsDataType = ''; + protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; + protected $contentOwnerDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + public $id; + protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; + protected $invideoPromotionDataType = ''; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizationsDataType = 'map'; + protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_ChannelStatus'; + protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; + protected $topicDetailsDataType = ''; + + + public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) + { + $this->auditDetails = $auditDetails; + } + public function getAuditDetails() + { + return $this->auditDetails; + } + public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) + { + $this->brandingSettings = $brandingSettings; + } + public function getBrandingSettings() + { + return $this->brandingSettings; + } + public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) + { + $this->contentOwnerDetails = $contentOwnerDetails; + } + public function getContentOwnerDetails() + { + return $this->contentOwnerDetails; + } + public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) + { + $this->conversionPings = $conversionPings; + } + public function getConversionPings() + { + return $this->conversionPings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) + { + $this->invideoPromotion = $invideoPromotion; + } + public function getInvideoPromotion() + { + return $this->invideoPromotion; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } + public function setStatus(Google_Service_YouTube_ChannelStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } +} + +class Google_Service_YouTube_ChannelAuditDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $communityGuidelinesGoodStanding; + public $contentIdClaimsGoodStanding; + public $copyrightStrikesGoodStanding; + public $overallGoodStanding; + + + public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) + { + $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; + } + public function getCommunityGuidelinesGoodStanding() + { + return $this->communityGuidelinesGoodStanding; + } + public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) + { + $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; + } + public function getContentIdClaimsGoodStanding() + { + return $this->contentIdClaimsGoodStanding; + } + public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) + { + $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; + } + public function getCopyrightStrikesGoodStanding() + { + return $this->copyrightStrikesGoodStanding; + } + public function setOverallGoodStanding($overallGoodStanding) + { + $this->overallGoodStanding = $overallGoodStanding; + } + public function getOverallGoodStanding() + { + return $this->overallGoodStanding; + } +} + +class Google_Service_YouTube_ChannelBannerResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $kind; + public $url; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection +{ + protected $collection_key = 'hints'; + protected $internal_gapi_mappings = array( + ); + protected $channelType = 'Google_Service_YouTube_ChannelSettings'; + protected $channelDataType = ''; + protected $hintsType = 'Google_Service_YouTube_PropertyValue'; + protected $hintsDataType = 'array'; + protected $imageType = 'Google_Service_YouTube_ImageSettings'; + protected $imageDataType = ''; + protected $watchType = 'Google_Service_YouTube_WatchSettings'; + protected $watchDataType = ''; + + + public function setChannel(Google_Service_YouTube_ChannelSettings $channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } + public function setHints($hints) + { + $this->hints = $hints; + } + public function getHints() + { + return $this->hints; + } + public function setImage(Google_Service_YouTube_ImageSettings $image) + { + $this->image = $image; + } + public function getImage() + { + return $this->image; + } + public function setWatch(Google_Service_YouTube_WatchSettings $watch) + { + $this->watch = $watch; + } + public function getWatch() + { + return $this->watch; + } +} + +class Google_Service_YouTube_ChannelContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $googlePlusUserId; + protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; + protected $relatedPlaylistsDataType = ''; + + + public function setGooglePlusUserId($googlePlusUserId) + { + $this->googlePlusUserId = $googlePlusUserId; + } + public function getGooglePlusUserId() + { + return $this->googlePlusUserId; + } + public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) + { + $this->relatedPlaylists = $relatedPlaylists; + } + public function getRelatedPlaylists() + { + return $this->relatedPlaylists; + } +} + +class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $favorites; + public $likes; + public $uploads; + public $watchHistory; + public $watchLater; + + + public function setFavorites($favorites) + { + $this->favorites = $favorites; + } + public function getFavorites() + { + return $this->favorites; + } + public function setLikes($likes) + { + $this->likes = $likes; + } + public function getLikes() + { + return $this->likes; + } + public function setUploads($uploads) + { + $this->uploads = $uploads; + } + public function getUploads() + { + return $this->uploads; + } + public function setWatchHistory($watchHistory) + { + $this->watchHistory = $watchHistory; + } + public function getWatchHistory() + { + return $this->watchHistory; + } + public function setWatchLater($watchLater) + { + $this->watchLater = $watchLater; + } + public function getWatchLater() + { + return $this->watchLater; + } +} + +class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contentOwner; + public $timeLinked; + + + public function setContentOwner($contentOwner) + { + $this->contentOwner = $contentOwner; + } + public function getContentOwner() + { + return $this->contentOwner; + } + public function setTimeLinked($timeLinked) + { + $this->timeLinked = $timeLinked; + } + public function getTimeLinked() + { + return $this->timeLinked; + } +} + +class Google_Service_YouTube_ChannelConversionPing extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); + protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; + protected $pingsDataType = 'array'; + + + public function setPings($pings) + { + $this->pings = $pings; + } + public function getPings() + { + return $this->pings; + } +} + +class Google_Service_YouTube_ChannelId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_ChannelListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Channel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ChannelLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_ChannelSection extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizationsDataType = 'map'; + protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; + protected $snippetDataType = ''; + protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; + protected $targetingDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) + { + $this->targeting = $targeting; + } + public function getTargeting() + { + return $this->targeting; + } +} + +class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection +{ + protected $collection_key = 'playlists'; + protected $internal_gapi_mappings = array( + ); + public $channels; + public $playlists; + + + public function setChannels($channels) + { + $this->channels = $channels; + } + public function getChannels() + { + return $this->channels; + } + public function setPlaylists($playlists) + { + $this->playlists = $playlists; + } + public function getPlaylists() + { + return $this->playlists; + } +} + +class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ChannelSection'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $title; + + + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $defaultLanguage; + protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizedDataType = ''; + public $position; + public $style; + public $title; + public $type; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setStyle($style) + { + $this->style = $style; + } + public function getStyle() + { + return $this->style; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $countries; + public $languages; + public $regions; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setLanguages($languages) + { + $this->languages = $languages; + } + public function getLanguages() + { + return $this->languages; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_YouTube_ChannelSettings extends Google_Collection +{ + protected $collection_key = 'featuredChannelsUrls'; + protected $internal_gapi_mappings = array( + ); + public $country; + public $defaultLanguage; + public $defaultTab; + public $description; + public $featuredChannelsTitle; + public $featuredChannelsUrls; + public $keywords; + public $moderateComments; + public $profileColor; + public $showBrowseView; + public $showRelatedChannels; + public $title; + public $trackingAnalyticsAccountId; + public $unsubscribedTrailer; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDefaultTab($defaultTab) + { + $this->defaultTab = $defaultTab; + } + public function getDefaultTab() + { + return $this->defaultTab; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFeaturedChannelsTitle($featuredChannelsTitle) + { + $this->featuredChannelsTitle = $featuredChannelsTitle; + } + public function getFeaturedChannelsTitle() + { + return $this->featuredChannelsTitle; + } + public function setFeaturedChannelsUrls($featuredChannelsUrls) + { + $this->featuredChannelsUrls = $featuredChannelsUrls; + } + public function getFeaturedChannelsUrls() + { + return $this->featuredChannelsUrls; + } + public function setKeywords($keywords) + { + $this->keywords = $keywords; + } + public function getKeywords() + { + return $this->keywords; + } + public function setModerateComments($moderateComments) + { + $this->moderateComments = $moderateComments; + } + public function getModerateComments() + { + return $this->moderateComments; + } + public function setProfileColor($profileColor) + { + $this->profileColor = $profileColor; + } + public function getProfileColor() + { + return $this->profileColor; + } + public function setShowBrowseView($showBrowseView) + { + $this->showBrowseView = $showBrowseView; + } + public function getShowBrowseView() + { + return $this->showBrowseView; + } + public function setShowRelatedChannels($showRelatedChannels) + { + $this->showRelatedChannels = $showRelatedChannels; + } + public function getShowRelatedChannels() + { + return $this->showRelatedChannels; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) + { + $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; + } + public function getTrackingAnalyticsAccountId() + { + return $this->trackingAnalyticsAccountId; + } + public function setUnsubscribedTrailer($unsubscribedTrailer) + { + $this->unsubscribedTrailer = $unsubscribedTrailer; + } + public function getUnsubscribedTrailer() + { + return $this->unsubscribedTrailer; + } +} + +class Google_Service_YouTube_ChannelSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $country; + public $defaultLanguage; + public $description; + protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $commentCount; + public $hiddenSubscriberCount; + public $subscriberCount; + public $videoCount; + public $viewCount; + + + public function setCommentCount($commentCount) + { + $this->commentCount = $commentCount; + } + public function getCommentCount() + { + return $this->commentCount; + } + public function setHiddenSubscriberCount($hiddenSubscriberCount) + { + $this->hiddenSubscriberCount = $hiddenSubscriberCount; + } + public function getHiddenSubscriberCount() + { + return $this->hiddenSubscriberCount; + } + public function setSubscriberCount($subscriberCount) + { + $this->subscriberCount = $subscriberCount; + } + public function getSubscriberCount() + { + return $this->subscriberCount; + } + public function setVideoCount($videoCount) + { + $this->videoCount = $videoCount; + } + public function getVideoCount() + { + return $this->videoCount; + } + public function setViewCount($viewCount) + { + $this->viewCount = $viewCount; + } + public function getViewCount() + { + return $this->viewCount; + } +} + +class Google_Service_YouTube_ChannelStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $isLinked; + public $longUploadsStatus; + public $privacyStatus; + + + public function setIsLinked($isLinked) + { + $this->isLinked = $isLinked; + } + public function getIsLinked() + { + return $this->isLinked; + } + public function setLongUploadsStatus($longUploadsStatus) + { + $this->longUploadsStatus = $longUploadsStatus; + } + public function getLongUploadsStatus() + { + return $this->longUploadsStatus; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection +{ + protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); + public $topicIds; + + + public function setTopicIds($topicIds) + { + $this->topicIds = $topicIds; + } + public function getTopicIds() + { + return $this->topicIds; + } +} + +class Google_Service_YouTube_Comment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; + protected $authorChannelIdDataType = ''; + public $authorChannelUrl; + public $authorDisplayName; + public $authorGoogleplusProfileUrl; + public $authorProfileImageUrl; + public $canRate; + public $channelId; + public $likeCount; + public $moderationStatus; + public $parentId; + public $publishedAt; + public $textDisplay; + public $textOriginal; + public $updatedAt; + public $videoId; + public $viewerRating; + + + public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) + { + $this->authorChannelId = $authorChannelId; + } + public function getAuthorChannelId() + { + return $this->authorChannelId; + } + public function setAuthorChannelUrl($authorChannelUrl) + { + $this->authorChannelUrl = $authorChannelUrl; + } + public function getAuthorChannelUrl() + { + return $this->authorChannelUrl; + } + public function setAuthorDisplayName($authorDisplayName) + { + $this->authorDisplayName = $authorDisplayName; + } + public function getAuthorDisplayName() + { + return $this->authorDisplayName; + } + public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) + { + $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; + } + public function getAuthorGoogleplusProfileUrl() + { + return $this->authorGoogleplusProfileUrl; + } + public function setAuthorProfileImageUrl($authorProfileImageUrl) + { + $this->authorProfileImageUrl = $authorProfileImageUrl; + } + public function getAuthorProfileImageUrl() + { + return $this->authorProfileImageUrl; + } + public function setCanRate($canRate) + { + $this->canRate = $canRate; + } + public function getCanRate() + { + return $this->canRate; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setLikeCount($likeCount) + { + $this->likeCount = $likeCount; + } + public function getLikeCount() + { + return $this->likeCount; + } + public function setModerationStatus($moderationStatus) + { + $this->moderationStatus = $moderationStatus; + } + public function getModerationStatus() + { + return $this->moderationStatus; + } + public function setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTextDisplay($textDisplay) + { + $this->textDisplay = $textDisplay; + } + public function getTextDisplay() + { + return $this->textDisplay; + } + public function setTextOriginal($textOriginal) + { + $this->textOriginal = $textOriginal; + } + public function getTextOriginal() + { + return $this->textOriginal; + } + public function setUpdatedAt($updatedAt) + { + $this->updatedAt = $updatedAt; + } + public function getUpdatedAt() + { + return $this->updatedAt; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setViewerRating($viewerRating) + { + $this->viewerRating = $viewerRating; + } + public function getViewerRating() + { + return $this->viewerRating; + } +} + +class Google_Service_YouTube_CommentThread extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; + protected $repliesDataType = ''; + protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) + { + $this->replies = $replies; + } + public function getReplies() + { + return $this->replies; + } + public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_CommentThread'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentThreadReplies extends Google_Collection +{ + protected $collection_key = 'comments'; + protected $internal_gapi_mappings = array( + ); + protected $commentsType = 'Google_Service_YouTube_Comment'; + protected $commentsDataType = 'array'; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } +} + +class Google_Service_YouTube_CommentThreadSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canReply; + public $channelId; + public $isPublic; + protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; + protected $topLevelCommentDataType = ''; + public $totalReplyCount; + public $videoId; + + + public function setCanReply($canReply) + { + $this->canReply = $canReply; + } + public function getCanReply() + { + return $this->canReply; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setIsPublic($isPublic) + { + $this->isPublic = $isPublic; + } + public function getIsPublic() + { + return $this->isPublic; + } + public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) + { + $this->topLevelComment = $topLevelComment; + } + public function getTopLevelComment() + { + return $this->topLevelComment; + } + public function setTotalReplyCount($totalReplyCount) + { + $this->totalReplyCount = $totalReplyCount; + } + public function getTotalReplyCount() + { + return $this->totalReplyCount; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_ContentRating extends Google_Collection +{ + protected $collection_key = 'djctqRatingReasons'; + protected $internal_gapi_mappings = array( + ); + public $acbRating; + public $agcomRating; + public $anatelRating; + public $bbfcRating; + public $bfvcRating; + public $bmukkRating; + public $catvRating; + public $catvfrRating; + public $cbfcRating; + public $cccRating; + public $cceRating; + public $chfilmRating; + public $chvrsRating; + public $cicfRating; + public $cnaRating; + public $csaRating; + public $cscfRating; + public $czfilmRating; + public $djctqRating; + public $djctqRatingReasons; + public $eefilmRating; + public $egfilmRating; + public $eirinRating; + public $fcbmRating; + public $fcoRating; + public $fmocRating; + public $fpbRating; + public $fskRating; + public $grfilmRating; + public $icaaRating; + public $ifcoRating; + public $ilfilmRating; + public $incaaRating; + public $kfcbRating; + public $kijkwijzerRating; + public $kmrbRating; + public $lsfRating; + public $mccaaRating; + public $mccypRating; + public $mdaRating; + public $medietilsynetRating; + public $mekuRating; + public $mibacRating; + public $mocRating; + public $moctwRating; + public $mpaaRating; + public $mtrcbRating; + public $nbcRating; + public $nbcplRating; + public $nfrcRating; + public $nfvcbRating; + public $nkclvRating; + public $oflcRating; + public $pefilmRating; + public $rcnofRating; + public $resorteviolenciaRating; + public $rtcRating; + public $rteRating; + public $russiaRating; + public $skfilmRating; + public $smaisRating; + public $smsaRating; + public $tvpgRating; + public $ytRating; + + + public function setAcbRating($acbRating) + { + $this->acbRating = $acbRating; + } + public function getAcbRating() + { + return $this->acbRating; + } + public function setAgcomRating($agcomRating) + { + $this->agcomRating = $agcomRating; + } + public function getAgcomRating() + { + return $this->agcomRating; + } + public function setAnatelRating($anatelRating) + { + $this->anatelRating = $anatelRating; + } + public function getAnatelRating() + { + return $this->anatelRating; + } + public function setBbfcRating($bbfcRating) + { + $this->bbfcRating = $bbfcRating; + } + public function getBbfcRating() + { + return $this->bbfcRating; + } + public function setBfvcRating($bfvcRating) + { + $this->bfvcRating = $bfvcRating; + } + public function getBfvcRating() + { + return $this->bfvcRating; + } + public function setBmukkRating($bmukkRating) + { + $this->bmukkRating = $bmukkRating; + } + public function getBmukkRating() + { + return $this->bmukkRating; + } + public function setCatvRating($catvRating) + { + $this->catvRating = $catvRating; + } + public function getCatvRating() + { + return $this->catvRating; + } + public function setCatvfrRating($catvfrRating) + { + $this->catvfrRating = $catvfrRating; + } + public function getCatvfrRating() + { + return $this->catvfrRating; + } + public function setCbfcRating($cbfcRating) + { + $this->cbfcRating = $cbfcRating; + } + public function getCbfcRating() + { + return $this->cbfcRating; + } + public function setCccRating($cccRating) + { + $this->cccRating = $cccRating; + } + public function getCccRating() + { + return $this->cccRating; + } + public function setCceRating($cceRating) + { + $this->cceRating = $cceRating; + } + public function getCceRating() + { + return $this->cceRating; + } + public function setChfilmRating($chfilmRating) + { + $this->chfilmRating = $chfilmRating; + } + public function getChfilmRating() + { + return $this->chfilmRating; + } + public function setChvrsRating($chvrsRating) + { + $this->chvrsRating = $chvrsRating; + } + public function getChvrsRating() + { + return $this->chvrsRating; + } + public function setCicfRating($cicfRating) + { + $this->cicfRating = $cicfRating; + } + public function getCicfRating() + { + return $this->cicfRating; + } + public function setCnaRating($cnaRating) + { + $this->cnaRating = $cnaRating; + } + public function getCnaRating() + { + return $this->cnaRating; + } + public function setCsaRating($csaRating) + { + $this->csaRating = $csaRating; + } + public function getCsaRating() + { + return $this->csaRating; + } + public function setCscfRating($cscfRating) + { + $this->cscfRating = $cscfRating; + } + public function getCscfRating() + { + return $this->cscfRating; + } + public function setCzfilmRating($czfilmRating) + { + $this->czfilmRating = $czfilmRating; + } + public function getCzfilmRating() + { + return $this->czfilmRating; + } + public function setDjctqRating($djctqRating) + { + $this->djctqRating = $djctqRating; + } + public function getDjctqRating() + { + return $this->djctqRating; + } + public function setDjctqRatingReasons($djctqRatingReasons) + { + $this->djctqRatingReasons = $djctqRatingReasons; + } + public function getDjctqRatingReasons() + { + return $this->djctqRatingReasons; + } + public function setEefilmRating($eefilmRating) + { + $this->eefilmRating = $eefilmRating; + } + public function getEefilmRating() + { + return $this->eefilmRating; + } + public function setEgfilmRating($egfilmRating) + { + $this->egfilmRating = $egfilmRating; + } + public function getEgfilmRating() + { + return $this->egfilmRating; + } + public function setEirinRating($eirinRating) + { + $this->eirinRating = $eirinRating; + } + public function getEirinRating() + { + return $this->eirinRating; + } + public function setFcbmRating($fcbmRating) + { + $this->fcbmRating = $fcbmRating; + } + public function getFcbmRating() + { + return $this->fcbmRating; + } + public function setFcoRating($fcoRating) + { + $this->fcoRating = $fcoRating; + } + public function getFcoRating() + { + return $this->fcoRating; + } + public function setFmocRating($fmocRating) + { + $this->fmocRating = $fmocRating; + } + public function getFmocRating() + { + return $this->fmocRating; + } + public function setFpbRating($fpbRating) + { + $this->fpbRating = $fpbRating; + } + public function getFpbRating() + { + return $this->fpbRating; + } + public function setFskRating($fskRating) + { + $this->fskRating = $fskRating; + } + public function getFskRating() + { + return $this->fskRating; + } + public function setGrfilmRating($grfilmRating) + { + $this->grfilmRating = $grfilmRating; + } + public function getGrfilmRating() + { + return $this->grfilmRating; + } + public function setIcaaRating($icaaRating) + { + $this->icaaRating = $icaaRating; + } + public function getIcaaRating() + { + return $this->icaaRating; + } + public function setIfcoRating($ifcoRating) + { + $this->ifcoRating = $ifcoRating; + } + public function getIfcoRating() + { + return $this->ifcoRating; + } + public function setIlfilmRating($ilfilmRating) + { + $this->ilfilmRating = $ilfilmRating; + } + public function getIlfilmRating() + { + return $this->ilfilmRating; + } + public function setIncaaRating($incaaRating) + { + $this->incaaRating = $incaaRating; + } + public function getIncaaRating() + { + return $this->incaaRating; + } + public function setKfcbRating($kfcbRating) + { + $this->kfcbRating = $kfcbRating; + } + public function getKfcbRating() + { + return $this->kfcbRating; + } + public function setKijkwijzerRating($kijkwijzerRating) + { + $this->kijkwijzerRating = $kijkwijzerRating; + } + public function getKijkwijzerRating() + { + return $this->kijkwijzerRating; + } + public function setKmrbRating($kmrbRating) + { + $this->kmrbRating = $kmrbRating; + } + public function getKmrbRating() + { + return $this->kmrbRating; + } + public function setLsfRating($lsfRating) + { + $this->lsfRating = $lsfRating; + } + public function getLsfRating() + { + return $this->lsfRating; + } + public function setMccaaRating($mccaaRating) + { + $this->mccaaRating = $mccaaRating; + } + public function getMccaaRating() + { + return $this->mccaaRating; + } + public function setMccypRating($mccypRating) + { + $this->mccypRating = $mccypRating; + } + public function getMccypRating() + { + return $this->mccypRating; + } + public function setMdaRating($mdaRating) + { + $this->mdaRating = $mdaRating; + } + public function getMdaRating() + { + return $this->mdaRating; + } + public function setMedietilsynetRating($medietilsynetRating) + { + $this->medietilsynetRating = $medietilsynetRating; + } + public function getMedietilsynetRating() + { + return $this->medietilsynetRating; + } + public function setMekuRating($mekuRating) + { + $this->mekuRating = $mekuRating; + } + public function getMekuRating() + { + return $this->mekuRating; + } + public function setMibacRating($mibacRating) + { + $this->mibacRating = $mibacRating; + } + public function getMibacRating() + { + return $this->mibacRating; + } + public function setMocRating($mocRating) + { + $this->mocRating = $mocRating; + } + public function getMocRating() + { + return $this->mocRating; + } + public function setMoctwRating($moctwRating) + { + $this->moctwRating = $moctwRating; + } + public function getMoctwRating() + { + return $this->moctwRating; + } + public function setMpaaRating($mpaaRating) + { + $this->mpaaRating = $mpaaRating; + } + public function getMpaaRating() + { + return $this->mpaaRating; + } + public function setMtrcbRating($mtrcbRating) + { + $this->mtrcbRating = $mtrcbRating; + } + public function getMtrcbRating() + { + return $this->mtrcbRating; + } + public function setNbcRating($nbcRating) + { + $this->nbcRating = $nbcRating; + } + public function getNbcRating() + { + return $this->nbcRating; + } + public function setNbcplRating($nbcplRating) + { + $this->nbcplRating = $nbcplRating; + } + public function getNbcplRating() + { + return $this->nbcplRating; + } + public function setNfrcRating($nfrcRating) + { + $this->nfrcRating = $nfrcRating; + } + public function getNfrcRating() + { + return $this->nfrcRating; + } + public function setNfvcbRating($nfvcbRating) + { + $this->nfvcbRating = $nfvcbRating; + } + public function getNfvcbRating() + { + return $this->nfvcbRating; + } + public function setNkclvRating($nkclvRating) + { + $this->nkclvRating = $nkclvRating; + } + public function getNkclvRating() + { + return $this->nkclvRating; + } + public function setOflcRating($oflcRating) + { + $this->oflcRating = $oflcRating; + } + public function getOflcRating() + { + return $this->oflcRating; + } + public function setPefilmRating($pefilmRating) + { + $this->pefilmRating = $pefilmRating; + } + public function getPefilmRating() + { + return $this->pefilmRating; + } + public function setRcnofRating($rcnofRating) + { + $this->rcnofRating = $rcnofRating; + } + public function getRcnofRating() + { + return $this->rcnofRating; + } + public function setResorteviolenciaRating($resorteviolenciaRating) + { + $this->resorteviolenciaRating = $resorteviolenciaRating; + } + public function getResorteviolenciaRating() + { + return $this->resorteviolenciaRating; + } + public function setRtcRating($rtcRating) + { + $this->rtcRating = $rtcRating; + } + public function getRtcRating() + { + return $this->rtcRating; + } + public function setRteRating($rteRating) + { + $this->rteRating = $rteRating; + } + public function getRteRating() + { + return $this->rteRating; + } + public function setRussiaRating($russiaRating) + { + $this->russiaRating = $russiaRating; + } + public function getRussiaRating() + { + return $this->russiaRating; + } + public function setSkfilmRating($skfilmRating) + { + $this->skfilmRating = $skfilmRating; + } + public function getSkfilmRating() + { + return $this->skfilmRating; + } + public function setSmaisRating($smaisRating) + { + $this->smaisRating = $smaisRating; + } + public function getSmaisRating() + { + return $this->smaisRating; + } + public function setSmsaRating($smsaRating) + { + $this->smsaRating = $smsaRating; + } + public function getSmsaRating() + { + return $this->smsaRating; + } + public function setTvpgRating($tvpgRating) + { + $this->tvpgRating = $tvpgRating; + } + public function getTvpgRating() + { + return $this->tvpgRating; + } + public function setYtRating($ytRating) + { + $this->ytRating = $ytRating; + } + public function getYtRating() + { + return $this->ytRating; + } +} + +class Google_Service_YouTube_GeoPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $altitude; + public $latitude; + public $longitude; + + + public function setAltitude($altitude) + { + $this->altitude = $altitude; + } + public function getAltitude() + { + return $this->altitude; + } + public function setLatitude($latitude) + { + $this->latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} + +class Google_Service_YouTube_GuideCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_GuideCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_GuideCategorySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_I18nLanguage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hl; + public $name; + + + public function setHl($hl) + { + $this->hl = $hl; + } + public function getHl() + { + return $this->hl; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_YouTube_I18nRegion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nRegion'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_I18nRegionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gl; + public $name; + + + public function setGl($gl) + { + $this->gl = $gl; + } + public function getGl() + { + return $this->gl; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_YouTube_ImageSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $backgroundImageUrlDataType = ''; + public $bannerExternalUrl; + public $bannerImageUrl; + public $bannerMobileExtraHdImageUrl; + public $bannerMobileHdImageUrl; + public $bannerMobileImageUrl; + public $bannerMobileLowImageUrl; + public $bannerMobileMediumHdImageUrl; + public $bannerTabletExtraHdImageUrl; + public $bannerTabletHdImageUrl; + public $bannerTabletImageUrl; + public $bannerTabletLowImageUrl; + public $bannerTvHighImageUrl; + public $bannerTvImageUrl; + public $bannerTvLowImageUrl; + public $bannerTvMediumImageUrl; + protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageImapScriptDataType = ''; + protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageUrlDataType = ''; + protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageImapScriptDataType = ''; + protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageUrlDataType = ''; + public $trackingImageUrl; + public $watchIconImageUrl; + + + public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) + { + $this->backgroundImageUrl = $backgroundImageUrl; + } + public function getBackgroundImageUrl() + { + return $this->backgroundImageUrl; + } + public function setBannerExternalUrl($bannerExternalUrl) + { + $this->bannerExternalUrl = $bannerExternalUrl; + } + public function getBannerExternalUrl() + { + return $this->bannerExternalUrl; + } + public function setBannerImageUrl($bannerImageUrl) + { + $this->bannerImageUrl = $bannerImageUrl; + } + public function getBannerImageUrl() + { + return $this->bannerImageUrl; + } + public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) + { + $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; + } + public function getBannerMobileExtraHdImageUrl() + { + return $this->bannerMobileExtraHdImageUrl; + } + public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) + { + $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; + } + public function getBannerMobileHdImageUrl() + { + return $this->bannerMobileHdImageUrl; + } + public function setBannerMobileImageUrl($bannerMobileImageUrl) + { + $this->bannerMobileImageUrl = $bannerMobileImageUrl; + } + public function getBannerMobileImageUrl() + { + return $this->bannerMobileImageUrl; + } + public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) + { + $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; + } + public function getBannerMobileLowImageUrl() + { + return $this->bannerMobileLowImageUrl; + } + public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) + { + $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; + } + public function getBannerMobileMediumHdImageUrl() + { + return $this->bannerMobileMediumHdImageUrl; + } + public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) + { + $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; + } + public function getBannerTabletExtraHdImageUrl() + { + return $this->bannerTabletExtraHdImageUrl; + } + public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) + { + $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; + } + public function getBannerTabletHdImageUrl() + { + return $this->bannerTabletHdImageUrl; + } + public function setBannerTabletImageUrl($bannerTabletImageUrl) + { + $this->bannerTabletImageUrl = $bannerTabletImageUrl; + } + public function getBannerTabletImageUrl() + { + return $this->bannerTabletImageUrl; + } + public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) + { + $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; + } + public function getBannerTabletLowImageUrl() + { + return $this->bannerTabletLowImageUrl; + } + public function setBannerTvHighImageUrl($bannerTvHighImageUrl) + { + $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; + } + public function getBannerTvHighImageUrl() + { + return $this->bannerTvHighImageUrl; + } + public function setBannerTvImageUrl($bannerTvImageUrl) + { + $this->bannerTvImageUrl = $bannerTvImageUrl; + } + public function getBannerTvImageUrl() + { + return $this->bannerTvImageUrl; + } + public function setBannerTvLowImageUrl($bannerTvLowImageUrl) + { + $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; + } + public function getBannerTvLowImageUrl() + { + return $this->bannerTvLowImageUrl; + } + public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) + { + $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; + } + public function getBannerTvMediumImageUrl() + { + return $this->bannerTvMediumImageUrl; + } + public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) + { + $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; + } + public function getLargeBrandedBannerImageImapScript() + { + return $this->largeBrandedBannerImageImapScript; + } + public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) + { + $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; + } + public function getLargeBrandedBannerImageUrl() + { + return $this->largeBrandedBannerImageUrl; + } + public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) + { + $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; + } + public function getSmallBrandedBannerImageImapScript() + { + return $this->smallBrandedBannerImageImapScript; + } + public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) + { + $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; + } + public function getSmallBrandedBannerImageUrl() + { + return $this->smallBrandedBannerImageUrl; + } + public function setTrackingImageUrl($trackingImageUrl) + { + $this->trackingImageUrl = $trackingImageUrl; + } + public function getTrackingImageUrl() + { + return $this->trackingImageUrl; + } + public function setWatchIconImageUrl($watchIconImageUrl) + { + $this->watchIconImageUrl = $watchIconImageUrl; + } + public function getWatchIconImageUrl() + { + return $this->watchIconImageUrl; + } +} + +class Google_Service_YouTube_IngestionInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $backupIngestionAddress; + public $ingestionAddress; + public $streamName; + + + public function setBackupIngestionAddress($backupIngestionAddress) + { + $this->backupIngestionAddress = $backupIngestionAddress; + } + public function getBackupIngestionAddress() + { + return $this->backupIngestionAddress; + } + public function setIngestionAddress($ingestionAddress) + { + $this->ingestionAddress = $ingestionAddress; + } + public function getIngestionAddress() + { + return $this->ingestionAddress; + } + public function setStreamName($streamName) + { + $this->streamName = $streamName; + } + public function getStreamName() + { + return $this->streamName; + } +} + +class Google_Service_YouTube_InvideoBranding extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $imageBytes; + public $imageUrl; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + public $targetChannelId; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + + public function setImageBytes($imageBytes) + { + $this->imageBytes = $imageBytes; + } + public function getImageBytes() + { + return $this->imageBytes; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setPosition(Google_Service_YouTube_InvideoPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setTargetChannelId($targetChannelId) + { + $this->targetChannelId = $targetChannelId; + } + public function getTargetChannelId() + { + return $this->targetChannelId; + } + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) + { + $this->timing = $timing; + } + public function getTiming() + { + return $this->timing; + } +} + +class Google_Service_YouTube_InvideoPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cornerPosition; + public $type; + + + public function setCornerPosition($cornerPosition) + { + $this->cornerPosition = $cornerPosition; + } + public function getCornerPosition() + { + return $this->cornerPosition; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_InvideoPromotion extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; + protected $defaultTimingDataType = ''; + protected $itemsType = 'Google_Service_YouTube_PromotedItem'; + protected $itemsDataType = 'array'; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + public $useSmartTiming; + + + public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) + { + $this->defaultTiming = $defaultTiming; + } + public function getDefaultTiming() + { + return $this->defaultTiming; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setPosition(Google_Service_YouTube_InvideoPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setUseSmartTiming($useSmartTiming) + { + $this->useSmartTiming = $useSmartTiming; + } + public function getUseSmartTiming() + { + return $this->useSmartTiming; + } +} + +class Google_Service_YouTube_InvideoTiming extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $durationMs; + public $offsetMs; + public $type; + + + public function setDurationMs($durationMs) + { + $this->durationMs = $durationMs; + } + public function getDurationMs() + { + return $this->durationMs; + } + public function setOffsetMs($offsetMs) + { + $this->offsetMs = $offsetMs; + } + public function getOffsetMs() + { + return $this->offsetMs; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LanguageTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_LiveBroadcast extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; + protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; + protected $topicDetailsDataType = ''; + + + 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 setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } + public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } +} + +class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $boundStreamId; + public $enableClosedCaptions; + public $enableContentEncryption; + public $enableDvr; + public $enableEmbed; + public $enableLowLatency; + protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; + protected $monitorStreamDataType = ''; + public $recordFromStart; + public $startWithSlate; + + + public function setBoundStreamId($boundStreamId) + { + $this->boundStreamId = $boundStreamId; + } + public function getBoundStreamId() + { + return $this->boundStreamId; + } + public function setEnableClosedCaptions($enableClosedCaptions) + { + $this->enableClosedCaptions = $enableClosedCaptions; + } + public function getEnableClosedCaptions() + { + return $this->enableClosedCaptions; + } + public function setEnableContentEncryption($enableContentEncryption) + { + $this->enableContentEncryption = $enableContentEncryption; + } + public function getEnableContentEncryption() + { + return $this->enableContentEncryption; + } + public function setEnableDvr($enableDvr) + { + $this->enableDvr = $enableDvr; + } + public function getEnableDvr() + { + return $this->enableDvr; + } + public function setEnableEmbed($enableEmbed) + { + $this->enableEmbed = $enableEmbed; + } + public function getEnableEmbed() + { + return $this->enableEmbed; + } + public function setEnableLowLatency($enableLowLatency) + { + $this->enableLowLatency = $enableLowLatency; + } + public function getEnableLowLatency() + { + return $this->enableLowLatency; + } + public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) + { + $this->monitorStream = $monitorStream; + } + public function getMonitorStream() + { + return $this->monitorStream; + } + public function setRecordFromStart($recordFromStart) + { + $this->recordFromStart = $recordFromStart; + } + public function getRecordFromStart() + { + return $this->recordFromStart; + } + public function setStartWithSlate($startWithSlate) + { + $this->startWithSlate = $startWithSlate; + } + public function getStartWithSlate() + { + return $this->startWithSlate; + } +} + +class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actualEndTime; + public $actualStartTime; + public $channelId; + public $description; + public $isDefaultBroadcast; + public $publishedAt; + public $scheduledEndTime; + public $scheduledStartTime; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setActualEndTime($actualEndTime) + { + $this->actualEndTime = $actualEndTime; + } + public function getActualEndTime() + { + return $this->actualEndTime; + } + public function setActualStartTime($actualStartTime) + { + $this->actualStartTime = $actualStartTime; + } + public function getActualStartTime() + { + return $this->actualStartTime; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIsDefaultBroadcast($isDefaultBroadcast) + { + $this->isDefaultBroadcast = $isDefaultBroadcast; + } + public function getIsDefaultBroadcast() + { + return $this->isDefaultBroadcast; + } + 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_LiveBroadcastStatistics extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $concurrentViewers; + public $totalChatCount; + + + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setTotalChatCount($totalChatCount) + { + $this->totalChatCount = $totalChatCount; + } + public function getTotalChatCount() + { + return $this->totalChatCount; + } +} + +class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lifeCycleStatus; + public $liveBroadcastPriority; + public $privacyStatus; + public $recordingStatus; + + + public function setLifeCycleStatus($lifeCycleStatus) + { + $this->lifeCycleStatus = $lifeCycleStatus; + } + public function getLifeCycleStatus() + { + return $this->lifeCycleStatus; + } + public function setLiveBroadcastPriority($liveBroadcastPriority) + { + $this->liveBroadcastPriority = $liveBroadcastPriority; + } + public function getLiveBroadcastPriority() + { + return $this->liveBroadcastPriority; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } + public function setRecordingStatus($recordingStatus) + { + $this->recordingStatus = $recordingStatus; + } + public function getRecordingStatus() + { + return $this->recordingStatus; + } +} + +class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; + protected $snippetDataType = ''; + public $type; + public $unmatched; + + + public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnmatched($unmatched) + { + $this->unmatched = $unmatched; + } + public function getUnmatched() + { + return $this->unmatched; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +{ + protected $collection_key = 'topics'; + protected $internal_gapi_mappings = array( + ); + protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; + protected $topicsDataType = 'array'; + + + public function setTopics($topics) + { + $this->topics = $topics; + } + public function getTopics() + { + return $this->topics; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $releaseDate; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } +} + +class Google_Service_YouTube_LiveStream extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cdnType = 'Google_Service_YouTube_CdnSettings'; + protected $cdnDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; + protected $statusDataType = ''; + + + public function setCdn(Google_Service_YouTube_CdnSettings $cdn) + { + $this->cdn = $cdn; + } + public function getCdn() + { + return $this->cdn; + } + public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $reason; + public $severity; + public $type; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $closedCaptionsIngestionUrl; + public $isReusable; + + + public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) + { + $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; + } + public function getClosedCaptionsIngestionUrl() + { + return $this->closedCaptionsIngestionUrl; + } + public function setIsReusable($isReusable) + { + $this->isReusable = $isReusable; + } + public function getIsReusable() + { + return $this->isReusable; + } +} + +class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection +{ + protected $collection_key = 'configurationIssues'; + protected $internal_gapi_mappings = array( + ); + protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; + protected $configurationIssuesDataType = 'array'; + public $lastUpdateTimeS; + public $status; + + + public function setConfigurationIssues($configurationIssues) + { + $this->configurationIssues = $configurationIssues; + } + public function getConfigurationIssues() + { + return $this->configurationIssues; + } + public function setLastUpdateTimeS($lastUpdateTimeS) + { + $this->lastUpdateTimeS = $lastUpdateTimeS; + } + public function getLastUpdateTimeS() + { + return $this->lastUpdateTimeS; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveStream'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_LiveStreamSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $description; + public $isDefaultStream; + 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 setIsDefaultStream($isDefaultStream) + { + $this->isDefaultStream = $isDefaultStream; + } + public function getIsDefaultStream() + { + return $this->isDefaultStream; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; + protected $healthStatusDataType = ''; + public $streamStatus; + + + public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) + { + $this->healthStatus = $healthStatus; + } + public function getHealthStatus() + { + return $this->healthStatus; + } + public function setStreamStatus($streamStatus) + { + $this->streamStatus = $streamStatus; + } + public function getStreamStatus() + { + return $this->streamStatus; + } +} + +class Google_Service_YouTube_LocalizedProperty extends Google_Collection +{ + protected $collection_key = 'localized'; + protected $internal_gapi_mappings = array( + ); + public $default; + protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; + protected $defaultLanguageDataType = ''; + protected $localizedType = 'Google_Service_YouTube_LocalizedString'; + protected $localizedDataType = 'array'; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized($localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } +} + +class Google_Service_YouTube_LocalizedString extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $language; + public $value; + + + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_YouTube_MonitorStreamInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $broadcastStreamDelayMs; + public $embedHtml; + public $enableMonitorStream; + + + public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) + { + $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; + } + public function getBroadcastStreamDelayMs() + { + return $this->broadcastStreamDelayMs; + } + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } + public function setEnableMonitorStream($enableMonitorStream) + { + $this->enableMonitorStream = $enableMonitorStream; + } + public function getEnableMonitorStream() + { + return $this->enableMonitorStream; + } +} + +class Google_Service_YouTube_PageInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizationsDataType = 'map'; + protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; + protected $playerDataType = ''; + protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; + protected $statusDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $itemCount; + + + public function setItemCount($itemCount) + { + $this->itemCount = $itemCount; + } + public function getItemCount() + { + return $this->itemCount; + } +} + +class Google_Service_YouTube_PlaylistItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; + protected $statusDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $playlistId; + public $position; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setPlaylistId($playlistId) + { + $this->playlistId = $playlistId; + } + public function getPlaylistId() + { + return $this->playlistId; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistItemStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privacyStatus; + + + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_PlaylistListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Playlist'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_PlaylistLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_PlaylistPlayer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $embedHtml; + + + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } +} + +class Google_Service_YouTube_PlaylistSnippet extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $defaultLanguage; + public $description; + protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privacyStatus; + + + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } +} + +class Google_Service_YouTube_PromotedItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customMessage; + protected $idType = 'Google_Service_YouTube_PromotedItemId'; + protected $idDataType = ''; + public $promotedByContentOwner; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + + public function setCustomMessage($customMessage) + { + $this->customMessage = $customMessage; + } + public function getCustomMessage() + { + return $this->customMessage; + } + public function setId(Google_Service_YouTube_PromotedItemId $id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPromotedByContentOwner($promotedByContentOwner) + { + $this->promotedByContentOwner = $promotedByContentOwner; + } + public function getPromotedByContentOwner() + { + return $this->promotedByContentOwner; + } + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) + { + $this->timing = $timing; + } + public function getTiming() + { + return $this->timing; + } +} + +class Google_Service_YouTube_PromotedItemId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $recentlyUploadedBy; + public $type; + public $videoId; + public $websiteUrl; + + + public function setRecentlyUploadedBy($recentlyUploadedBy) + { + $this->recentlyUploadedBy = $recentlyUploadedBy; + } + public function getRecentlyUploadedBy() + { + return $this->recentlyUploadedBy; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_YouTube_PropertyValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_SearchResult'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_SearchResult extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $idType = 'Google_Service_YouTube_ResourceId'; + protected $idDataType = ''; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId(Google_Service_YouTube_ResourceId $id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_SearchResultSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $liveBroadcastContent; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLiveBroadcastContent($liveBroadcastContent) + { + $this->liveBroadcastContent = $liveBroadcastContent; + } + public function getLiveBroadcastContent() + { + return $this->liveBroadcastContent; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_Subscription extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; + protected $snippetDataType = ''; + protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; + protected $subscriberSnippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) + { + $this->subscriberSnippet = $subscriberSnippet; + } + public function getSubscriberSnippet() + { + return $this->subscriberSnippet; + } +} + +class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activityType; + public $newItemCount; + public $totalItemCount; + + + public function setActivityType($activityType) + { + $this->activityType = $activityType; + } + public function getActivityType() + { + return $this->activityType; + } + public function setNewItemCount($newItemCount) + { + $this->newItemCount = $newItemCount; + } + public function getNewItemCount() + { + return $this->newItemCount; + } + public function setTotalItemCount($totalItemCount) + { + $this->totalItemCount = $totalItemCount; + } + public function getTotalItemCount() + { + return $this->totalItemCount; + } +} + +class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Subscription'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_SubscriptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelTitle; + public $description; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $description; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) + { + $this->thumbnails = $thumbnails; + } + public function getThumbnails() + { + return $this->thumbnails; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_Thumbnail extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $defaultType = 'Google_Service_YouTube_Thumbnail'; + protected $defaultDataType = ''; + protected $highType = 'Google_Service_YouTube_Thumbnail'; + protected $highDataType = ''; + protected $maxresType = 'Google_Service_YouTube_Thumbnail'; + protected $maxresDataType = ''; + protected $mediumType = 'Google_Service_YouTube_Thumbnail'; + protected $mediumDataType = ''; + protected $standardType = 'Google_Service_YouTube_Thumbnail'; + protected $standardDataType = ''; + + + public function setDefault(Google_Service_YouTube_Thumbnail $default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setHigh(Google_Service_YouTube_Thumbnail $high) + { + $this->high = $high; + } + public function getHigh() + { + return $this->high; + } + public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) + { + $this->maxres = $maxres; + } + public function getMaxres() + { + return $this->maxres; + } + public function setMedium(Google_Service_YouTube_Thumbnail $medium) + { + $this->medium = $medium; + } + public function getMedium() + { + return $this->medium; + } + public function setStandard(Google_Service_YouTube_Thumbnail $standard) + { + $this->standard = $standard; + } + public function getStandard() + { + return $this->standard; + } +} + +class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_TokenPagination extends Google_Model +{ +} + +class Google_Service_YouTube_Video extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; + protected $ageGatingDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; + protected $contentDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; + protected $fileDetailsDataType = ''; + public $id; + public $kind; + protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; + protected $liveStreamingDetailsDataType = ''; + protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizationsDataType = 'map'; + protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; + protected $monetizationDetailsDataType = ''; + protected $playerType = 'Google_Service_YouTube_VideoPlayer'; + protected $playerDataType = ''; + protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; + protected $processingDetailsDataType = ''; + protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; + protected $projectDetailsDataType = ''; + protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; + protected $recordingDetailsDataType = ''; + protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_VideoStatus'; + protected $statusDataType = ''; + protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; + protected $suggestionsDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; + protected $topicDetailsDataType = ''; + + + public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) + { + $this->ageGating = $ageGating; + } + public function getAgeGating() + { + return $this->ageGating; + } + public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) + { + $this->conversionPings = $conversionPings; + } + public function getConversionPings() + { + return $this->conversionPings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) + { + $this->fileDetails = $fileDetails; + } + public function getFileDetails() + { + return $this->fileDetails; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) + { + $this->liveStreamingDetails = $liveStreamingDetails; + } + public function getLiveStreamingDetails() + { + return $this->liveStreamingDetails; + } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } + 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_VideoAbuseReport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comments; + public $language; + public $reasonId; + public $secondaryReasonId; + public $videoId; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setReasonId($reasonId) + { + $this->reasonId = $reasonId; + } + public function getReasonId() + { + return $this->reasonId; + } + public function setSecondaryReasonId($secondaryReasonId) + { + $this->secondaryReasonId = $secondaryReasonId; + } + public function getSecondaryReasonId() + { + return $this->secondaryReasonId; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection +{ + protected $collection_key = 'secondaryReasons'; + protected $internal_gapi_mappings = array( + ); + public $label; + protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; + protected $secondaryReasonsDataType = 'array'; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setSecondaryReasons($secondaryReasons) + { + $this->secondaryReasons = $secondaryReasons; + } + public function getSecondaryReasons() + { + return $this->secondaryReasons; + } +} + +class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $label; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } +} + +class Google_Service_YouTube_VideoAgeGating extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoCategorySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $assignable; + public $channelId; + public $title; + + + public function setAssignable($assignable) + { + $this->assignable = $assignable; + } + public function getAssignable() + { + return $this->assignable; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $caption; + protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; + protected $contentRatingDataType = ''; + protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; + protected $countryRestrictionDataType = ''; + public $definition; + public $dimension; + public $duration; + public $licensedContent; + protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; + protected $regionRestrictionDataType = ''; + + + public function setCaption($caption) + { + $this->caption = $caption; + } + public function getCaption() + { + return $this->caption; + } + public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) + { + $this->contentRating = $contentRating; + } + public function getContentRating() + { + return $this->contentRating; + } + public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) + { + $this->countryRestriction = $countryRestriction; + } + public function getCountryRestriction() + { + return $this->countryRestriction; + } + public function setDefinition($definition) + { + $this->definition = $definition; + } + public function getDefinition() + { + return $this->definition; + } + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setLicensedContent($licensedContent) + { + $this->licensedContent = $licensedContent; + } + public function getLicensedContent() + { + return $this->licensedContent; + } + public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) + { + $this->regionRestriction = $regionRestriction; + } + public function getRegionRestriction() + { + return $this->regionRestriction; + } +} + +class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection +{ + protected $collection_key = 'blocked'; + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'pings'; + protected $internal_gapi_mappings = array( + ); + protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; + protected $pingsDataType = 'array'; + + + public function setPings($pings) + { + $this->pings = $pings; + } + public function getPings() + { + return $this->pings; + } +} + +class Google_Service_YouTube_VideoFileDetails extends Google_Collection +{ + protected $collection_key = 'videoStreams'; + protected $internal_gapi_mappings = array( + ); + protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; + protected $audioStreamsDataType = 'array'; + public $bitrateBps; + public $container; + public $creationTime; + public $durationMs; + public $fileName; + public $fileSize; + public $fileType; + protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; + protected $recordingLocationDataType = ''; + protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; + protected $videoStreamsDataType = 'array'; + + + public function setAudioStreams($audioStreams) + { + $this->audioStreams = $audioStreams; + } + public function getAudioStreams() + { + return $this->audioStreams; + } + public function setBitrateBps($bitrateBps) + { + $this->bitrateBps = $bitrateBps; + } + public function getBitrateBps() + { + return $this->bitrateBps; + } + public function setContainer($container) + { + $this->container = $container; + } + public function getContainer() + { + return $this->container; + } + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDurationMs($durationMs) + { + $this->durationMs = $durationMs; + } + public function getDurationMs() + { + return $this->durationMs; + } + public function setFileName($fileName) + { + $this->fileName = $fileName; + } + public function getFileName() + { + return $this->fileName; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } + public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) + { + $this->recordingLocation = $recordingLocation; + } + public function getRecordingLocation() + { + return $this->recordingLocation; + } + public function setVideoStreams($videoStreams) + { + $this->videoStreams = $videoStreams; + } + public function getVideoStreams() + { + return $this->videoStreams; + } +} + +class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoRating'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Video'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actualEndTime; + public $actualStartTime; + public $concurrentViewers; + public $scheduledEndTime; + public $scheduledStartTime; + + + public function setActualEndTime($actualEndTime) + { + $this->actualEndTime = $actualEndTime; + } + public function getActualEndTime() + { + return $this->actualEndTime; + } + public function setActualStartTime($actualStartTime) + { + $this->actualStartTime = $actualStartTime; + } + public function getActualStartTime() + { + return $this->actualStartTime; + } + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setScheduledEndTime($scheduledEndTime) + { + $this->scheduledEndTime = $scheduledEndTime; + } + public function getScheduledEndTime() + { + return $this->scheduledEndTime; + } + public function setScheduledStartTime($scheduledStartTime) + { + $this->scheduledStartTime = $scheduledStartTime; + } + public function getScheduledStartTime() + { + return $this->scheduledStartTime; + } +} + +class Google_Service_YouTube_VideoLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoLocalizations extends Google_Model +{ +} + +class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accessType = 'Google_Service_YouTube_AccessPolicy'; + protected $accessDataType = ''; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $embedHtml; + + + public function setEmbedHtml($embedHtml) + { + $this->embedHtml = $embedHtml; + } + public function getEmbedHtml() + { + return $this->embedHtml; + } +} + +class Google_Service_YouTube_VideoProcessingDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $editorSuggestionsAvailability; + public $fileDetailsAvailability; + public $processingFailureReason; + public $processingIssuesAvailability; + protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; + protected $processingProgressDataType = ''; + public $processingStatus; + public $tagSuggestionsAvailability; + public $thumbnailsAvailability; + + + public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) + { + $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; + } + public function getEditorSuggestionsAvailability() + { + return $this->editorSuggestionsAvailability; + } + public function setFileDetailsAvailability($fileDetailsAvailability) + { + $this->fileDetailsAvailability = $fileDetailsAvailability; + } + public function getFileDetailsAvailability() + { + return $this->fileDetailsAvailability; + } + public function setProcessingFailureReason($processingFailureReason) + { + $this->processingFailureReason = $processingFailureReason; + } + public function getProcessingFailureReason() + { + return $this->processingFailureReason; + } + public function setProcessingIssuesAvailability($processingIssuesAvailability) + { + $this->processingIssuesAvailability = $processingIssuesAvailability; + } + public function getProcessingIssuesAvailability() + { + return $this->processingIssuesAvailability; + } + public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) + { + $this->processingProgress = $processingProgress; + } + public function getProcessingProgress() + { + return $this->processingProgress; + } + public function setProcessingStatus($processingStatus) + { + $this->processingStatus = $processingStatus; + } + public function getProcessingStatus() + { + return $this->processingStatus; + } + public function setTagSuggestionsAvailability($tagSuggestionsAvailability) + { + $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; + } + public function getTagSuggestionsAvailability() + { + return $this->tagSuggestionsAvailability; + } + public function setThumbnailsAvailability($thumbnailsAvailability) + { + $this->thumbnailsAvailability = $thumbnailsAvailability; + } + public function getThumbnailsAvailability() + { + return $this->thumbnailsAvailability; + } +} + +class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $tags; + + + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_YouTube_VideoRating extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 $internal_gapi_mappings = array( + ); + protected $locationType = 'Google_Service_YouTube_GeoPoint'; + protected $locationDataType = ''; + public $locationDescription; + public $recordingDate; + + + public function setLocation(Google_Service_YouTube_GeoPoint $location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setLocationDescription($locationDescription) + { + $this->locationDescription = $locationDescription; + } + public function getLocationDescription() + { + return $this->locationDescription; + } + public function setRecordingDate($recordingDate) + { + $this->recordingDate = $recordingDate; + } + public function getRecordingDate() + { + return $this->recordingDate; + } +} + +class Google_Service_YouTube_VideoSnippet extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $categoryId; + public $channelId; + public $channelTitle; + public $defaultAudioLanguage; + public $defaultLanguage; + public $description; + public $liveBroadcastContent; + protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizedDataType = ''; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + + public function setCategoryId($categoryId) + { + $this->categoryId = $categoryId; + } + public function getCategoryId() + { + return $this->categoryId; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelTitle($channelTitle) + { + $this->channelTitle = $channelTitle; + } + public function getChannelTitle() + { + return $this->channelTitle; + } + public function setDefaultAudioLanguage($defaultAudioLanguage) + { + $this->defaultAudioLanguage = $defaultAudioLanguage; + } + public function getDefaultAudioLanguage() + { + return $this->defaultAudioLanguage; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLiveBroadcastContent($liveBroadcastContent) + { + $this->liveBroadcastContent = $liveBroadcastContent; + } + public function getLiveBroadcastContent() + { + return $this->liveBroadcastContent; + } + public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $embeddable; + public $failureReason; + public $license; + public $privacyStatus; + public $publicStatsViewable; + public $publishAt; + public $rejectionReason; + public $uploadStatus; + + + public function setEmbeddable($embeddable) + { + $this->embeddable = $embeddable; + } + public function getEmbeddable() + { + return $this->embeddable; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setLicense($license) + { + $this->license = $license; + } + public function getLicense() + { + return $this->license; + } + public function setPrivacyStatus($privacyStatus) + { + $this->privacyStatus = $privacyStatus; + } + public function getPrivacyStatus() + { + return $this->privacyStatus; + } + public function setPublicStatsViewable($publicStatsViewable) + { + $this->publicStatsViewable = $publicStatsViewable; + } + public function getPublicStatsViewable() + { + return $this->publicStatsViewable; + } + public function setPublishAt($publishAt) + { + $this->publishAt = $publishAt; + } + public function getPublishAt() + { + return $this->publishAt; + } + public function setRejectionReason($rejectionReason) + { + $this->rejectionReason = $rejectionReason; + } + public function getRejectionReason() + { + return $this->rejectionReason; + } + public function setUploadStatus($uploadStatus) + { + $this->uploadStatus = $uploadStatus; + } + public function getUploadStatus() + { + return $this->uploadStatus; + } +} + +class Google_Service_YouTube_VideoSuggestions extends Google_Collection +{ + protected $collection_key = 'tagSuggestions'; + protected $internal_gapi_mappings = array( + ); + public $editorSuggestions; + public $processingErrors; + public $processingHints; + public $processingWarnings; + protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; + protected $tagSuggestionsDataType = 'array'; + + + public function setEditorSuggestions($editorSuggestions) + { + $this->editorSuggestions = $editorSuggestions; + } + public function getEditorSuggestions() + { + return $this->editorSuggestions; + } + public function setProcessingErrors($processingErrors) + { + $this->processingErrors = $processingErrors; + } + public function getProcessingErrors() + { + return $this->processingErrors; + } + public function setProcessingHints($processingHints) + { + $this->processingHints = $processingHints; + } + public function getProcessingHints() + { + return $this->processingHints; + } + public function setProcessingWarnings($processingWarnings) + { + $this->processingWarnings = $processingWarnings; + } + public function getProcessingWarnings() + { + return $this->processingWarnings; + } + public function setTagSuggestions($tagSuggestions) + { + $this->tagSuggestions = $tagSuggestions; + } + public function getTagSuggestions() + { + return $this->tagSuggestions; + } +} + +class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection +{ + protected $collection_key = 'categoryRestricts'; + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'topicIds'; + protected $internal_gapi_mappings = array( + ); + public $relevantTopicIds; + public $topicIds; + + + public function setRelevantTopicIds($relevantTopicIds) + { + $this->relevantTopicIds = $relevantTopicIds; + } + public function getRelevantTopicIds() + { + return $this->relevantTopicIds; + } + public function setTopicIds($topicIds) + { + $this->topicIds = $topicIds; + } + public function getTopicIds() + { + return $this->topicIds; + } +} + +class Google_Service_YouTube_WatchSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} From d763d22484e01018ed74aa7401917dc8564f07d3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:22:05 -0700 Subject: [PATCH 0863/1274] Revert "Removed Dfareporting.php" This reverts commit b81d706eddb13e06db6b4c987b18fe634c1a73aa. --- src/Google/Service/Dfareporting.php | 21443 ++++++++++++++++++++++++++ 1 file changed, 21443 insertions(+) create mode 100644 src/Google/Service/Dfareporting.php diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php new file mode 100644 index 000000000..11e14e2ca --- /dev/null +++ b/src/Google/Service/Dfareporting.php @@ -0,0 +1,21443 @@ + + * Manage your DoubleClick Campaign Manager ad campaigns and reports.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Dfareporting extends Google_Service +{ + /** View and manage DoubleClick for Advertisers reports. */ + const DFAREPORTING = + "https://www.googleapis.com/auth/dfareporting"; + /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */ + const DFATRAFFICKING = + "https://www.googleapis.com/auth/dfatrafficking"; + + public $accountActiveAdSummaries; + public $accountPermissionGroups; + public $accountPermissions; + public $accountUserProfiles; + public $accounts; + public $ads; + public $advertiserGroups; + public $advertisers; + public $browsers; + public $campaignCreativeAssociations; + public $campaigns; + public $changeLogs; + public $cities; + public $connectionTypes; + public $contentCategories; + public $countries; + public $creativeAssets; + public $creativeFieldValues; + public $creativeFields; + public $creativeGroups; + public $creatives; + public $dimensionValues; + public $directorySiteContacts; + public $directorySites; + public $eventTags; + public $files; + public $floodlightActivities; + public $floodlightActivityGroups; + public $floodlightConfigurations; + public $inventoryItems; + public $landingPages; + public $metros; + public $mobileCarriers; + public $operatingSystemVersions; + public $operatingSystems; + public $orderDocuments; + public $orders; + public $placementGroups; + public $placementStrategies; + public $placements; + public $platformTypes; + public $postalCodes; + public $projects; + public $regions; + public $remarketingListShares; + public $remarketingLists; + public $reports; + public $reports_compatibleFields; + public $reports_files; + public $sites; + public $sizes; + public $subaccounts; + public $targetableRemarketingLists; + public $userProfiles; + public $userRolePermissionGroups; + public $userRolePermissions; + public $userRoles; + + + /** + * Constructs the internal representation of the Dfareporting service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'dfareporting/v2.1/'; + $this->version = 'v2.1'; + $this->serviceName = 'dfareporting'; + + $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( + $this, + $this->serviceName, + 'accountActiveAdSummaries', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'summaryAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountPermissionGroups = new Google_Service_Dfareporting_AccountPermissionGroups_Resource( + $this, + $this->serviceName, + 'accountPermissionGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountPermissionGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountPermissions = new Google_Service_Dfareporting_AccountPermissions_Resource( + $this, + $this->serviceName, + 'accountPermissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountUserProfiles = new Google_Service_Dfareporting_AccountUserProfiles_Resource( + $this, + $this->serviceName, + 'accountUserProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userRoleId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts = new Google_Service_Dfareporting_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->ads = new Google_Service_Dfareporting_Ads_Resource( + $this, + $this->serviceName, + 'ads', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/ads/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'landingPageIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'overriddenEventTagId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeOptimizationConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sslCompliant' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sslRequired' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'creativeType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'compatibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'audienceSegmentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'remarketingListIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'dynamicClickTracker' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertiserGroups = new Google_Service_Dfareporting_AdvertiserGroups_Resource( + $this, + $this->serviceName, + 'advertiserGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertisers = new Google_Service_Dfareporting_Advertisers_Resource( + $this, + $this->serviceName, + 'advertisers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/advertisers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeAdvertisersWithoutGroupsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onlyParent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->browsers = new Google_Service_Dfareporting_Browsers_Resource( + $this, + $this->serviceName, + 'browsers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/browsers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->campaignCreativeAssociations = new Google_Service_Dfareporting_CampaignCreativeAssociations_Resource( + $this, + $this->serviceName, + 'campaignCreativeAssociations', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->campaigns = new Google_Service_Dfareporting_Campaigns_Resource( + $this, + $this->serviceName, + 'campaigns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageUrl' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'excludedIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'overriddenEventTagId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'atLeastOneOptimizationActivity' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->changeLogs = new Google_Service_Dfareporting_ChangeLogs_Resource( + $this, + $this->serviceName, + 'changeLogs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/changeLogs/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/changeLogs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'minChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProfileIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'objectIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'action' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'objectType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->cities = new Google_Service_Dfareporting_Cities_Resource( + $this, + $this->serviceName, + 'cities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/cities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'namePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'countryDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->connectionTypes = new Google_Service_Dfareporting_ConnectionTypes_Resource( + $this, + $this->serviceName, + 'connectionTypes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->contentCategories = new Google_Service_Dfareporting_ContentCategories_Resource( + $this, + $this->serviceName, + 'contentCategories', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->countries = new Google_Service_Dfareporting_Countries_Resource( + $this, + $this->serviceName, + 'countries', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/countries/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/countries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeAssets = new Google_Service_Dfareporting_CreativeAssets_Resource( + $this, + $this->serviceName, + 'creativeAssets', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFieldValues = new Google_Service_Dfareporting_CreativeFieldValues_Resource( + $this, + $this->serviceName, + 'creativeFieldValues', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFields = new Google_Service_Dfareporting_CreativeFields_Resource( + $this, + $this->serviceName, + 'creativeFields', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeGroups = new Google_Service_Dfareporting_CreativeGroups_Resource( + $this, + $this->serviceName, + 'creativeGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupNumber' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creatives = new Google_Service_Dfareporting_Creatives_Resource( + $this, + $this->serviceName, + 'creatives', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creatives/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'renderingIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'studioCreativeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companionCreativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeFieldIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'types' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( + $this, + $this->serviceName, + 'dimensionValues', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/dimensionvalues/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->directorySiteContacts = new Google_Service_Dfareporting_DirectorySiteContacts_Resource( + $this, + $this->serviceName, + 'directorySiteContacts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->directorySites = new Google_Service_Dfareporting_DirectorySites_Resource( + $this, + $this->serviceName, + 'directorySites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'countryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dfp_network_code' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->eventTags = new Google_Service_Dfareporting_EventTags_Resource( + $this, + $this->serviceName, + 'eventTags', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'enabled' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'eventTagTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'definitionsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->files = new Google_Service_Dfareporting_Files_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->floodlightActivities = new Google_Service_Dfareporting_FloodlightActivities_Resource( + $this, + $this->serviceName, + 'floodlightActivities', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generatetag' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'floodlightActivityGroupName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'tagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupTagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightActivityGroups = new Google_Service_Dfareporting_FloodlightActivityGroups_Resource( + $this, + $this->serviceName, + 'floodlightActivityGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightConfigurations = new Google_Service_Dfareporting_FloodlightConfigurations_Resource( + $this, + $this->serviceName, + 'floodlightConfigurations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inventoryItems = new Google_Service_Dfareporting_InventoryItems_Resource( + $this, + $this->serviceName, + 'inventoryItems', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'inPlan' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( + $this, + $this->serviceName, + 'landingPages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->metros = new Google_Service_Dfareporting_Metros_Resource( + $this, + $this->serviceName, + 'metros', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/metros', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->mobileCarriers = new Google_Service_Dfareporting_MobileCarriers_Resource( + $this, + $this->serviceName, + 'mobileCarriers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystemVersions = new Google_Service_Dfareporting_OperatingSystemVersions_Resource( + $this, + $this->serviceName, + 'operatingSystemVersions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystems = new Google_Service_Dfareporting_OperatingSystems_Resource( + $this, + $this->serviceName, + 'operatingSystems', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->orderDocuments = new Google_Service_Dfareporting_OrderDocuments_Resource( + $this, + $this->serviceName, + 'orderDocuments', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'approved' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->orders = new Google_Service_Dfareporting_Orders_Resource( + $this, + $this->serviceName, + 'orders', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( + $this, + $this->serviceName, + 'placementGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/placementGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( + $this, + $this->serviceName, + 'placementStrategies', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placements = new Google_Service_Dfareporting_Placements_Resource( + $this, + $this->serviceName, + 'placements', + array( + 'methods' => array( + 'generatetags' => array( + 'path' => 'userprofiles/{profileId}/placements/generatetags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagFormats' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placements/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'paymentSource' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'compatibilities' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->platformTypes = new Google_Service_Dfareporting_PlatformTypes_Resource( + $this, + $this->serviceName, + 'platformTypes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/platformTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/platformTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->postalCodes = new Google_Service_Dfareporting_PostalCodes_Resource( + $this, + $this->serviceName, + 'postalCodes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/postalCodes/{code}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'code' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/postalCodes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Dfareporting_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Dfareporting_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingListShares = new Google_Service_Dfareporting_RemarketingListShares_Resource( + $this, + $this->serviceName, + 'remarketingListShares', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingLists = new Google_Service_Dfareporting_RemarketingLists_Resource( + $this, + $this->serviceName, + 'remarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_Dfareporting_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'run' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'synchronous' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( + $this, + $this->serviceName, + 'compatibleFields', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sites = new Google_Service_Dfareporting_Sites_Resource( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adWordsSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'unmappedSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'approved' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sizes = new Google_Service_Dfareporting_Sizes_Resource( + $this, + $this->serviceName, + 'sizes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sizes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'iabStandard' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'width' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'height' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->subaccounts = new Google_Service_Dfareporting_Subaccounts_Resource( + $this, + $this->serviceName, + 'subaccounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/subaccounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->targetableRemarketingLists = new Google_Service_Dfareporting_TargetableRemarketingLists_Resource( + $this, + $this->serviceName, + 'targetableRemarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( + $this, + $this->serviceName, + 'userProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->userRolePermissionGroups = new Google_Service_Dfareporting_UserRolePermissionGroups_Resource( + $this, + $this->serviceName, + 'userRolePermissionGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->userRolePermissions = new Google_Service_Dfareporting_UserRolePermissions_Resource( + $this, + $this->serviceName, + 'userRolePermissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->userRoles = new Google_Service_Dfareporting_UserRoles_Resource( + $this, + $this->serviceName, + 'userRoles', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'accountUserRoleOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accountActiveAdSummaries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries; + * + */ +class Google_Service_Dfareporting_AccountActiveAdSummaries_Resource extends Google_Service_Resource +{ + + /** + * Gets the account's active ad summary by account ID. + * (accountActiveAdSummaries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $summaryAccountId Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountActiveAdSummary + */ + public function get($profileId, $summaryAccountId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary"); + } +} + +/** + * The "accountPermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; + * + */ +class Google_Service_Dfareporting_AccountPermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission group by ID. (accountPermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup"); + } + + /** + * Retrieves the list of account permission groups. + * (accountPermissionGroups.listAccountPermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse + */ + public function listAccountPermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse"); + } +} + +/** + * The "accountPermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissions = $dfareportingService->accountPermissions; + * + */ +class Google_Service_Dfareporting_AccountPermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission by ID. (accountPermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission"); + } + + /** + * Retrieves the list of account permissions. + * (accountPermissions.listAccountPermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionsListResponse + */ + public function listAccountPermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse"); + } +} + +/** + * The "accountUserProfiles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountUserProfiles = $dfareportingService->accountUserProfiles; + * + */ +class Google_Service_Dfareporting_AccountUserProfiles_Resource extends Google_Service_Resource +{ + + /** + * Gets one account user profile by ID. (accountUserProfiles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Inserts a new account user profile. (accountUserProfiles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Retrieves a list of account user profiles, possibly filtered. + * (accountUserProfiles.listAccountUserProfiles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "user profile*2015" will + * return objects with names like "user profile June 2015", "user profile April + * 2015", or simply "user profile 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "user profile" will match objects with name "my user + * profile", "user profile 2015", or simply "user profile". + * @opt_param string subaccountId Select only user profiles with the specified + * subaccount ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only user profiles with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string userRoleId Select only user profiles with the specified + * user role ID. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active user profiles. + * @return Google_Service_Dfareporting_AccountUserProfilesListResponse + */ + public function listAccountUserProfiles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse"); + } + + /** + * Updates an existing account user profile. This method supports patch + * semantics. (accountUserProfiles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Updates an existing account user profile. (accountUserProfiles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } +} + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accounts = $dfareportingService->accounts; + * + */ +class Google_Service_Dfareporting_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one account by ID. (accounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Retrieves the list of accounts, possibly filtered. (accounts.listAccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "account*2015" will return objects + * with names like "account June 2015", "account April 2015", or simply "account + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "account" will + * match objects with name "my account", "account 2015", or simply "account". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only accounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active accounts. Don't set this field to + * select both active and non-active accounts. + * @return Google_Service_Dfareporting_AccountsListResponse + */ + public function listAccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse"); + } + + /** + * Updates an existing account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Updates an existing account. (accounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Account"); + } +} + +/** + * The "ads" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $ads = $dfareportingService->ads; + * + */ +class Google_Service_Dfareporting_Ads_Resource extends Google_Service_Resource +{ + + /** + * Gets one ad by ID. (ads.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Inserts a new ad. (ads.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Retrieves a list of ads, possibly filtered. (ads.listAds) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string landingPageIds Select only ads with these landing page IDs. + * @opt_param string overriddenEventTagId Select only ads with this event tag + * override ID. + * @opt_param string campaignIds Select only ads with these campaign IDs. + * @opt_param bool archived Select only archived ads. + * @opt_param string creativeOptimizationConfigurationIds Select only ads with + * these creative optimization configuration IDs. + * @opt_param bool sslCompliant Select only ads that are SSL-compliant. + * @opt_param string sizeIds Select only ads with these size IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only ads with these types. + * @opt_param bool sslRequired Select only ads that require SSL. + * @opt_param string creativeIds Select only ads with these creative IDs + * assigned. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string creativeType Select only ads with the specified + * creativeType. + * @opt_param string placementIds Select only ads with these placement IDs + * assigned. + * @opt_param bool active Select only active ads. + * @opt_param string compatibility Select default ads with the specified + * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and + * WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices + * for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are + * for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in- + * stream video ads developed with the VAST standard. + * @opt_param string advertiserId Select only ads with this advertiser ID. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "ad*2015" will return objects with + * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "ad" will match objects with name "my + * ad", "ad 2015", or simply "ad". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string audienceSegmentIds Select only ads with these audience + * segment IDs. + * @opt_param string ids Select only ads with these IDs. + * @opt_param string remarketingListIds Select only ads whose list targeting + * expression use these remarketing list IDs. + * @opt_param bool dynamicClickTracker Select only dynamic click trackers. + * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic + * click trackers. If false, select static click trackers. Leave unset to select + * both. + * @return Google_Service_Dfareporting_AdsListResponse + */ + public function listAds($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse"); + } + + /** + * Updates an existing ad. This method supports patch semantics. (ads.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Updates an existing ad. (ads.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Ad"); + } +} + +/** + * The "advertiserGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertiserGroups = $dfareportingService->advertiserGroups; + * + */ +class Google_Service_Dfareporting_AdvertiserGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing advertiser group. (advertiserGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one advertiser group by ID. (advertiserGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Inserts a new advertiser group. (advertiserGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Retrieves a list of advertiser groups, possibly filtered. + * (advertiserGroups.listAdvertiserGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser group June 2015", "advertiser group April 2015", + * or simply "advertiser group 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "advertisergroup" will match objects with name "my + * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertiser groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse + */ + public function listAdvertiserGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse"); + } + + /** + * Updates an existing advertiser group. This method supports patch semantics. + * (advertiserGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Updates an existing advertiser group. (advertiserGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } +} + +/** + * The "advertisers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertisers = $dfareportingService->advertisers; + * + */ +class Google_Service_Dfareporting_Advertisers_Resource extends Google_Service_Resource +{ + + /** + * Gets one advertiser by ID. (advertisers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Inserts a new advertiser. (advertisers.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Retrieves a list of advertisers, possibly filtered. + * (advertisers.listAdvertisers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string status Select only advertisers with the specified status. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser June 2015", "advertiser April 2015", or simply + * "advertiser 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "advertiser" will match objects with name "my advertiser", "advertiser 2015", + * or simply "advertiser". + * @opt_param string subaccountId Select only advertisers with these subaccount + * IDs. + * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers + * which do not belong to any advertiser group. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertisers with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool onlyParent Select only advertisers which use another + * advertiser's floodlight configuration. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string floodlightConfigurationIds Select only advertisers with + * these floodlight configuration IDs. + * @opt_param string advertiserGroupIds Select only advertisers with these + * advertiser group IDs. + * @return Google_Service_Dfareporting_AdvertisersListResponse + */ + public function listAdvertisers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse"); + } + + /** + * Updates an existing advertiser. This method supports patch semantics. + * (advertisers.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Updates an existing advertiser. (advertisers.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser"); + } +} + +/** + * The "browsers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $browsers = $dfareportingService->browsers; + * + */ +class Google_Service_Dfareporting_Browsers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of browsers. (browsers.listBrowsers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_BrowsersListResponse + */ + public function listBrowsers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse"); + } +} + +/** + * The "campaignCreativeAssociations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations; + * + */ +class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends Google_Service_Resource +{ + + /** + * Associates a creative with the specified campaign. This method creates a + * default ad with dimensions matching the creative in the campaign if such a + * default ad does not exist already. (campaignCreativeAssociations.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param Google_CampaignCreativeAssociation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CampaignCreativeAssociation + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation"); + } + + /** + * Retrieves the list of creative IDs associated with the specified campaign. + * (campaignCreativeAssociations.listCampaignCreativeAssociations) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse + */ + public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse"); + } +} + +/** + * The "campaigns" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaigns = $dfareportingService->campaigns; + * + */ +class Google_Service_Dfareporting_Campaigns_Resource extends Google_Service_Resource +{ + + /** + * Gets one campaign by ID. (campaigns.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Inserts a new campaign. (campaigns.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $defaultLandingPageName Default landing page name for this new + * campaign. Must be less than 256 characters long. + * @param string $defaultLandingPageUrl Default landing page URL for this new + * campaign. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Retrieves a list of campaigns, possibly filtered. (campaigns.listCampaigns) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool archived Select only archived campaigns. Don't set this field + * to select both archived and non-archived campaigns. + * @opt_param string searchString Allows searching for campaigns by name or ID. + * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns + * with names like "campaign June 2015", "campaign April 2015", or simply + * "campaign 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "campaign" will match campaigns with name "my campaign", "campaign 2015", or + * simply "campaign". + * @opt_param string subaccountId Select only campaigns that belong to this + * subaccount. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only campaigns that belong to these + * advertisers. + * @opt_param string ids Select only campaigns with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string excludedIds Exclude campaigns with these IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string advertiserGroupIds Select only campaigns whose advertisers + * belong to these advertiser groups. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string overriddenEventTagId Select only campaigns that have + * overridden this event tag ID. + * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that + * have at least one optimization activity. + * @return Google_Service_Dfareporting_CampaignsListResponse + */ + public function listCampaigns($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse"); + } + + /** + * Updates an existing campaign. This method supports patch semantics. + * (campaigns.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Updates an existing campaign. (campaigns.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign"); + } +} + +/** + * The "changeLogs" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $changeLogs = $dfareportingService->changeLogs; + * + */ +class Google_Service_Dfareporting_ChangeLogs_Resource extends Google_Service_Resource +{ + + /** + * Gets one change log by ID. (changeLogs.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Change log ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ChangeLog + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog"); + } + + /** + * Retrieves a list of change logs. (changeLogs.listChangeLogs) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string minChangeTime Select only change logs whose change time is + * before the specified minChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string searchString Select only change logs whose object ID, user + * name, old or new values match the search string. + * @opt_param string maxChangeTime Select only change logs whose change time is + * before the specified maxChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string userProfileIds Select only change logs with these user + * profile IDs. + * @opt_param string ids Select only change logs with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string objectIds Select only change logs with these object IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string action Select only change logs with the specified action. + * @opt_param string objectType Select only change logs with the specified + * object type. + * @return Google_Service_Dfareporting_ChangeLogsListResponse + */ + public function listChangeLogs($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse"); + } +} + +/** + * The "cities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $cities = $dfareportingService->cities; + * + */ +class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of cities, possibly filtered. (cities.listCities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string dartIds Select only cities with these DART IDs. + * @opt_param string namePrefix Select only cities with names starting with this + * prefix. + * @opt_param string regionDartIds Select only cities from these regions. + * @opt_param string countryDartIds Select only cities from these countries. + * @return Google_Service_Dfareporting_CitiesListResponse + */ + public function listCities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse"); + } +} + +/** + * The "connectionTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $connectionTypes = $dfareportingService->connectionTypes; + * + */ +class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource +{ + + /** + * Gets one connection type by ID. (connectionTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Connection type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType"); + } + + /** + * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionTypesListResponse + */ + public function listConnectionTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse"); + } +} + +/** + * The "contentCategories" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $contentCategories = $dfareportingService->contentCategories; + * + */ +class Google_Service_Dfareporting_ContentCategories_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing content category. (contentCategories.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one content category by ID. (contentCategories.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Inserts a new content category. (contentCategories.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Retrieves a list of content categories, possibly filtered. + * (contentCategories.listContentCategories) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "contentcategory*2015" will return + * objects with names like "contentcategory June 2015", "contentcategory April + * 2015", or simply "contentcategory 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "contentcategory" will match objects with name + * "my contentcategory", "contentcategory 2015", or simply "contentcategory". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only content categories with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ContentCategoriesListResponse + */ + public function listContentCategories($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse"); + } + + /** + * Updates an existing content category. This method supports patch semantics. + * (contentCategories.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Updates an existing content category. (contentCategories.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory"); + } +} + +/** + * The "countries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $countries = $dfareportingService->countries; + * + */ +class Google_Service_Dfareporting_Countries_Resource extends Google_Service_Resource +{ + + /** + * Gets one country by ID. (countries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Country DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Country + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Country"); + } + + /** + * Retrieves a list of countries. (countries.listCountries) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CountriesListResponse + */ + public function listCountries($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse"); + } +} + +/** + * The "creativeAssets" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeAssets = $dfareportingService->creativeAssets; + * + */ +class Google_Service_Dfareporting_CreativeAssets_Resource extends Google_Service_Resource +{ + + /** + * Inserts a new creative asset. (creativeAssets.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Advertiser ID of this creative. This is a + * required field. + * @param Google_CreativeAssetMetadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeAssetMetadata + */ + public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata"); + } +} + +/** + * The "creativeFieldValues" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFieldValues = $dfareportingService->creativeFieldValues; + * + */ +class Google_Service_Dfareporting_CreativeFieldValues_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field value. (creativeFieldValues.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field value by ID. (creativeFieldValues.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function get($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Inserts a new creative field value. (creativeFieldValues.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Retrieves a list of creative field values, possibly filtered. + * (creativeFieldValues.listCreativeFieldValues) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative field values by + * their values. Wildcards (e.g. *) are not allowed. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only creative field values with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse + */ + public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse"); + } + + /** + * Updates an existing creative field value. This method supports patch + * semantics. (creativeFieldValues.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Updates an existing creative field value. (creativeFieldValues.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } +} + +/** + * The "creativeFields" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFields = $dfareportingService->creativeFields; + * + */ +class Google_Service_Dfareporting_CreativeFields_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field. (creativeFields.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field by ID. (creativeFields.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Inserts a new creative field. (creativeFields.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Retrieves a list of creative fields, possibly filtered. + * (creativeFields.listCreativeFields) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative fields by name + * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will + * return creative fields with names like "creativefield June 2015", + * "creativefield April 2015", or simply "creativefield 2015". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativefield" will match + * creative fields with the name "my creativefield", "creativefield 2015", or + * simply "creativefield". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only creative fields that belong to + * these advertisers. + * @opt_param string ids Select only creative fields with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldsListResponse + */ + public function listCreativeFields($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse"); + } + + /** + * Updates an existing creative field. This method supports patch semantics. + * (creativeFields.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Updates an existing creative field. (creativeFields.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField"); + } +} + +/** + * The "creativeGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeGroups = $dfareportingService->creativeGroups; + * + */ +class Google_Service_Dfareporting_CreativeGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative group by ID. (creativeGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Inserts a new creative group. (creativeGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Retrieves a list of creative groups, possibly filtered. + * (creativeGroups.listCreativeGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative groups by name + * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will + * return creative groups with names like "creativegroup June 2015", + * "creativegroup April 2015", or simply "creativegroup 2015". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativegroup" will match + * creative groups with the name "my creativegroup", "creativegroup 2015", or + * simply "creativegroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only creative groups that belong to + * these advertisers. + * @opt_param int groupNumber Select only creative groups that belong to this + * subgroup. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string ids Select only creative groups with these IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeGroupsListResponse + */ + public function listCreativeGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse"); + } + + /** + * Updates an existing creative group. This method supports patch semantics. + * (creativeGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Updates an existing creative group. (creativeGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } +} + +/** + * The "creatives" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creatives = $dfareportingService->creatives; + * + */ +class Google_Service_Dfareporting_Creatives_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative by ID. (creatives.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Inserts a new creative. (creatives.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Retrieves a list of creatives, possibly filtered. (creatives.listCreatives) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string sizeIds Select only creatives with these size IDs. + * @opt_param bool archived Select only archived creatives. Leave blank to + * select archived and unarchived creatives. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "creative*2015" will return objects + * with names like "creative June 2015", "creative April 2015", or simply + * "creative 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "creative" will match objects with name "my creative", "creative 2015", or + * simply "creative". + * @opt_param string campaignId Select only creatives with this campaign ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string renderingIds Select only creatives with these rendering + * IDs. + * @opt_param string ids Select only creatives with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Select only creatives with this advertiser ID. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string studioCreativeId Select only creatives corresponding to + * this Studio creative ID. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string companionCreativeIds Select only in-stream video creatives + * with these companion IDs. + * @opt_param bool active Select only active creatives. Leave blank to select + * active and inactive creatives. + * @opt_param string creativeFieldIds Select only creatives with these creative + * field IDs. + * @opt_param string types Select only creatives with these creative types. + * @return Google_Service_Dfareporting_CreativesListResponse + */ + public function listCreatives($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse"); + } + + /** + * Updates an existing creative. This method supports patch semantics. + * (creatives.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Updates an existing creative. (creatives.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Creative"); + } +} + +/** + * The "dimensionValues" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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 string pageToken The value of the nextToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Dfareporting_DimensionValueList + */ + public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); + } +} + +/** + * The "directorySiteContacts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySiteContacts = $dfareportingService->directorySiteContacts; + * + */ +class Google_Service_Dfareporting_DirectorySiteContacts_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site contact by ID. (directorySiteContacts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site contact ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySiteContact + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); + } + + /** + * Retrieves a list of directory site contacts, possibly filtered. + * (directorySiteContacts.listDirectorySiteContacts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "directory site contact*2015" + * will return objects with names like "directory site contact June 2015", + * "directory site contact April 2015", or simply "directory site contact 2015". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "directory site + * contact" will match objects with name "my directory site contact", "directory + * site contact 2015", or simply "directory site contact". + * @opt_param string directorySiteIds Select only directory site contacts with + * these directory site IDs. This is a required field. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only directory site contacts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse + */ + public function listDirectorySiteContacts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); + } +} + +/** + * The "directorySites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySites = $dfareportingService->directorySites; + * + */ +class Google_Service_Dfareporting_DirectorySites_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site by ID. (directorySites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + + /** + * Inserts a new directory site. (directorySites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_DirectorySite $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + + /** + * Retrieves a list of directory sites, possibly filtered. + * (directorySites.listDirectorySites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * URL. Wildcards (*) are allowed. For example, "directory site*2015" will + * return objects with names like "directory site June 2015", "directory site + * April 2015", or simply "directory site 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "directory site" will match objects with name "my + * directory site", "directory site 2015" or simply, "directory site". + * @opt_param string countryId Select only directory sites with this country ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only directory sites with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites + * that accept publisher paid placements. This field can be left blank. + * @opt_param string parentId Select only directory sites with this parent ID. + * @opt_param bool active Select only active directory sites. Leave blank to + * retrieve both active and inactive directory sites. + * @opt_param string dfp_network_code Select only directory sites with this DFP + * network code. + * @return Google_Service_Dfareporting_DirectorySitesListResponse + */ + public function listDirectorySites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse"); + } +} + +/** + * The "eventTags" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $eventTags = $dfareportingService->eventTags; + * + */ +class Google_Service_Dfareporting_EventTags_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing event tag. (eventTags.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one event tag by ID. (eventTags.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Inserts a new event tag. (eventTags.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects + * with names like "eventtag June 2015", "eventtag April 2015", or simply + * "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or + * simply "eventtag". + * @opt_param string campaignId Select only event tags that belong to this + * campaign. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool enabled Select only enabled event tags. When definitionsOnly + * is set to true, only the specified advertiser or campaign's event tags' + * enabledByDefault field is examined. When definitionsOnly is set to false, the + * specified ad or specified campaign's parent advertiser's or parent campaign's + * event tags' enabledByDefault and status fields are examined as well. + * @opt_param string ids Select only event tags with these IDs. + * @opt_param string advertiserId Select only event tags that belong to this + * advertiser. + * @opt_param string adId Select only event tags that belong to this ad. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string eventTagTypes Select only event tags with the specified + * event tag types. Event tag types can be used to specify whether to use a + * third-party pixel, a third-party JavaScript URL, or a third-party click- + * through URL for either impression or click tracking. + * @opt_param bool definitionsOnly Examine only the specified ad or campaign or + * advertiser's event tags for matching selector criteria. When set to false, + * the parent advertiser and parent campaign is examined as well. In addition, + * when set to false, the status field is examined as well along with the + * enabledByDefault field. + * @return Google_Service_Dfareporting_EventTagsListResponse + */ + public function listEventTags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse"); + } + + /** + * Updates an existing event tag. This method supports patch semantics. + * (eventTags.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Updates an existing event tag. (eventTags.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag"); + } +} + +/** + * The "files" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $files = $dfareportingService->files; + * + */ +class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a report file by its report ID and file ID. (files.get) + * + * @param string $reportId The ID of the report. + * @param string $fileId The ID of the report file. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function get($reportId, $fileId, $optParams = array()) + { + $params = array('reportId' => $reportId, 'fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a user profile. (files.listFiles) + * + * @param string $profileId The DFA profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. + * @return Google_Service_Dfareporting_FileList + */ + public function listFiles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } +} + +/** + * The "floodlightActivities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivities = $dfareportingService->floodlightActivities; + * + */ +class Google_Service_Dfareporting_FloodlightActivities_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity. (floodlightActivities.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Generates a tag for a floodlight activity. (floodlightActivities.generatetag) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityId Floodlight activity ID for which we + * want to generate a tag. + * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse + */ + public function generatetag($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse"); + } + + /** + * Gets one floodlight activity by ID. (floodlightActivities.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Inserts a new floodlight activity. (floodlightActivities.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Retrieves a list of floodlight activities, possibly filtered. + * (floodlightActivities.listFloodlightActivities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityGroupIds Select only floodlight + * activities with the specified floodlight activity group IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return + * objects with names like "floodlightactivity June 2015", "floodlightactivity + * April 2015", or simply "floodlightactivity 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name + * "my floodlightactivity activity", "floodlightactivity 2015", or simply + * "floodlightactivity". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activities + * for the specified floodlight configuration ID. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activities with the specified + * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for + * a non-empty result. + * @opt_param string floodlightActivityGroupName Select only floodlight + * activities with the specified floodlight activity group name. + * @opt_param string advertiserId Select only floodlight activities for the + * specified advertiser ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string tagString Select only floodlight activities with the + * specified tag string. + * @opt_param string floodlightActivityGroupTagString Select only floodlight + * activities with the specified floodlight activity group tag string. + * @opt_param string floodlightActivityGroupType Select only floodlight + * activities with the specified floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse + */ + public function listFloodlightActivities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse"); + } + + /** + * Updates an existing floodlight activity. This method supports patch + * semantics. (floodlightActivities.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Updates an existing floodlight activity. (floodlightActivities.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } +} + +/** + * The "floodlightActivityGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups; + * + */ +class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity group. + * (floodlightActivityGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Inserts a new floodlight activity group. (floodlightActivityGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Retrieves a list of floodlight activity groups, possibly filtered. + * (floodlightActivityGroups.listFloodlightActivityGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will + * return objects with names like "floodlightactivitygroup June 2015", + * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of + * "floodlightactivitygroup" will match objects with name "my + * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activity + * groups with the specified floodlight configuration ID. Must specify either + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activity groups with the + * specified IDs. Must specify either advertiserId or floodlightConfigurationId + * for a non-empty result. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Select only floodlight activity groups with + * the specified advertiser ID. Must specify either advertiserId or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only floodlight activity groups with the + * specified floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse + */ + public function listFloodlightActivityGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse"); + } + + /** + * Updates an existing floodlight activity group. This method supports patch + * semantics. (floodlightActivityGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Updates an existing floodlight activity group. + * (floodlightActivityGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } +} + +/** + * The "floodlightConfigurations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightConfigurations = $dfareportingService->floodlightConfigurations; + * + */ +class Google_Service_Dfareporting_FloodlightConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Gets one floodlight configuration by ID. (floodlightConfigurations.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Retrieves a list of floodlight configurations, possibly filtered. + * (floodlightConfigurations.listFloodlightConfigurations) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Set of IDs of floodlight configurations to retrieve. + * Required field; otherwise an empty list will be returned. + * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse + */ + public function listFloodlightConfigurations($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse"); + } + + /** + * Updates an existing floodlight configuration. This method supports patch + * semantics. (floodlightConfigurations.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Updates an existing floodlight configuration. + * (floodlightConfigurations.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } +} + +/** + * The "inventoryItems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $inventoryItems = $dfareportingService->inventoryItems; + * + */ +class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource +{ + + /** + * Gets one inventory item by ID. (inventoryItems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Inventory item ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_InventoryItem + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem"); + } + + /** + * Retrieves a list of inventory items, possibly filtered. + * (inventoryItems.listInventoryItems) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only inventory items that belong to + * specified orders. + * @opt_param string ids Select only inventory items with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only inventory items that are associated with + * these sites. + * @opt_param bool inPlan Select only inventory items that are in plan. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_InventoryItemsListResponse + */ + public function listInventoryItems($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse"); + } +} + +/** + * The "landingPages" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $landingPages = $dfareportingService->landingPages; + * + */ +class Google_Service_Dfareporting_LandingPages_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing campaign landing page. (landingPages.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one campaign landing page by ID. (landingPages.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function get($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Inserts a new landing page for the specified campaign. (landingPages.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Retrieves the list of landing pages for the specified campaign. + * (landingPages.listLandingPages) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPagesListResponse + */ + public function listLandingPages($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse"); + } + + /** + * Updates an existing campaign landing page. This method supports patch + * semantics. (landingPages.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Updates an existing campaign landing page. (landingPages.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage"); + } +} + +/** + * The "metros" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $metros = $dfareportingService->metros; + * + */ +class Google_Service_Dfareporting_Metros_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of metros. (metros.listMetros) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MetrosListResponse + */ + public function listMetros($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse"); + } +} + +/** + * The "mobileCarriers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $mobileCarriers = $dfareportingService->mobileCarriers; + * + */ +class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource +{ + + /** + * Gets one mobile carrier by ID. (mobileCarriers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Mobile carrier ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarrier + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier"); + } + + /** + * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarriersListResponse + */ + public function listMobileCarriers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse"); + } +} + +/** + * The "operatingSystemVersions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystemVersions = $dfareportingService->operatingSystemVersions; + * + */ +class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource +{ + + /** + * Gets one operating system version by ID. (operatingSystemVersions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Operating system version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersion + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion"); + } + + /** + * Retrieves a list of operating system versions. + * (operatingSystemVersions.listOperatingSystemVersions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse + */ + public function listOperatingSystemVersions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse"); + } +} + +/** + * The "operatingSystems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystems = $dfareportingService->operatingSystems; + * + */ +class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource +{ + + /** + * Gets one operating system by DART ID. (operatingSystems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Operating system DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystem + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem"); + } + + /** + * Retrieves a list of operating systems. + * (operatingSystems.listOperatingSystems) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemsListResponse + */ + public function listOperatingSystems($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse"); + } +} + +/** + * The "orderDocuments" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orderDocuments = $dfareportingService->orderDocuments; + * + */ +class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource +{ + + /** + * Gets one order document by ID. (orderDocuments.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Order document ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OrderDocument + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument"); + } + + /** + * Retrieves a list of order documents, possibly filtered. + * (orderDocuments.listOrderDocuments) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only order documents for specified orders. + * @opt_param string searchString Allows searching for order documents by name + * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will + * return order documents with names like "orderdocument June 2015", + * "orderdocument April 2015", or simply "orderdocument 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "orderdocument" will match order + * documents with name "my orderdocument", "orderdocument 2015", or simply + * "orderdocument". + * @opt_param string ids Select only order documents with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only order documents that are associated with + * these sites. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool approved Select only order documents that have been approved + * by at least one user. + * @return Google_Service_Dfareporting_OrderDocumentsListResponse + */ + public function listOrderDocuments($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse"); + } +} + +/** + * The "orders" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orders = $dfareportingService->orders; + * + */ +class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource +{ + + /** + * Gets one order by ID. (orders.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param string $id Order ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Order + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Order"); + } + + /** + * Retrieves a list of orders, possibly filtered. (orders.listOrders) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for orders by name or ID. + * Wildcards (*) are allowed. For example, "order*2015" will return orders with + * names like "order June 2015", "order April 2015", or simply "order 2015". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "order" will match + * orders with name "my order", "order 2015", or simply "order". + * @opt_param string ids Select only orders with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only orders that are associated with these + * site IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @return Google_Service_Dfareporting_OrdersListResponse + */ + public function listOrders($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse"); + } +} + +/** + * The "placementGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementGroups = $dfareportingService->placementGroups; + * + */ +class Google_Service_Dfareporting_PlacementGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one placement group by ID. (placementGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Inserts a new placement group. (placementGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Retrieves a list of placement groups, possibly filtered. + * (placementGroups.listPlacementGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placement groups that are + * associated with these placement strategies. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placement groups by name + * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return + * placement groups with names like "placement group June 2015", "placement + * group May 2015", or simply "placements 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementgroup" will match placement groups with + * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". + * @opt_param string contentCategoryIds Select only placement groups that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placement groups that are + * associated with these directory sites. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only placement groups that belong to + * these advertisers. + * @opt_param string ids Select only placement groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string placementGroupType Select only placement groups belonging + * with this group type. A package is a simple group of placements that acts as + * a single pricing point for a group of tags. A roadblock is a group of + * placements that not only acts as a single pricing point but also assumes that + * all the tags in it will be served at the same time. A roadblock requires one + * of its assigned placements to be marked as primary for reporting. + * @opt_param string pricingTypes Select only placement groups with these + * pricing types. + * @opt_param string siteIds Select only placement groups that are associated + * with these sites. + * @opt_param string campaignIds Select only placement groups that belong to + * these campaigns. + * @return Google_Service_Dfareporting_PlacementGroupsListResponse + */ + public function listPlacementGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse"); + } + + /** + * Updates an existing placement group. This method supports patch semantics. + * (placementGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Updates an existing placement group. (placementGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } +} + +/** + * The "placementStrategies" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementStrategies = $dfareportingService->placementStrategies; + * + */ +class Google_Service_Dfareporting_PlacementStrategies_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing placement strategy. (placementStrategies.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one placement strategy by ID. (placementStrategies.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Inserts a new placement strategy. (placementStrategies.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Retrieves a list of placement strategies, possibly filtered. + * (placementStrategies.listPlacementStrategies) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return + * objects with names like "placementstrategy June 2015", "placementstrategy + * April 2015", or simply "placementstrategy 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementstrategy" will match objects with name + * "my placementstrategy", "placementstrategy 2015", or simply + * "placementstrategy". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only placement strategies with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_PlacementStrategiesListResponse + */ + public function listPlacementStrategies($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse"); + } + + /** + * Updates an existing placement strategy. This method supports patch semantics. + * (placementStrategies.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Updates an existing placement strategy. (placementStrategies.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } +} + +/** + * The "placements" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placements = $dfareportingService->placements; + * + */ +class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Resource +{ + + /** + * Generates tags for a placement. (placements.generatetags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string tagFormats Tag formats to generate for these placements. + * @opt_param string placementIds Generate tags for these placements. + * @opt_param string campaignId Generate placements belonging to this campaign. + * This is a required field. + * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse + */ + public function generatetags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse"); + } + + /** + * Gets one placement by ID. (placements.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Inserts a new placement. (placements.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Retrieves a list of placements, possibly filtered. + * (placements.listPlacements) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placements that are + * associated with these placement strategies. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placements by name or ID. + * Wildcards (*) are allowed. For example, "placement*2015" will return + * placements with names like "placement June 2015", "placement May 2015", or + * simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string + * of "placement" will match placements with name "my placement", "placement + * 2015", or simply "placement". + * @opt_param string contentCategoryIds Select only placements that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placements that are associated + * with these directory sites. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only placements that belong to these + * advertisers. + * @opt_param string paymentSource Select only placements with this payment + * source. + * @opt_param string ids Select only placements with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sizeIds Select only placements that are associated with + * these sizes. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string compatibilities Select only placements that are associated + * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering + * either on desktop or on mobile devices for regular or interstitial ads + * respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed + * with the VAST standard. + * @opt_param string groupIds Select only placements that belong to these + * placement groups. + * @opt_param string pricingTypes Select only placements with these pricing + * types. + * @opt_param string siteIds Select only placements that are associated with + * these sites. + * @opt_param string campaignIds Select only placements that belong to these + * campaigns. + * @return Google_Service_Dfareporting_PlacementsListResponse + */ + public function listPlacements($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse"); + } + + /** + * Updates an existing placement. This method supports patch semantics. + * (placements.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Updates an existing placement. (placements.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Placement"); + } +} + +/** + * The "platformTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $platformTypes = $dfareportingService->platformTypes; + * + */ +class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource +{ + + /** + * Gets one platform type by ID. (platformTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Platform type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType"); + } + + /** + * Retrieves a list of platform types. (platformTypes.listPlatformTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformTypesListResponse + */ + public function listPlatformTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse"); + } +} + +/** + * The "postalCodes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $postalCodes = $dfareportingService->postalCodes; + * + */ +class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource +{ + + /** + * Gets one postal code by ID. (postalCodes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $code Postal code ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCode + */ + public function get($profileId, $code, $optParams = array()) + { + $params = array('profileId' => $profileId, 'code' => $code); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode"); + } + + /** + * Retrieves a list of postal codes. (postalCodes.listPostalCodes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCodesListResponse + */ + public function listPostalCodes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $projects = $dfareportingService->projects; + * + */ +class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource +{ + + /** + * Gets one project by ID. (projects.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Project + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Project"); + } + + /** + * Retrieves a list of projects, possibly filtered. (projects.listProjects) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for projects by name or ID. + * Wildcards (*) are allowed. For example, "project*2015" will return projects + * with names like "project June 2015", "project April 2015", or simply "project + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "project" will + * match projects with name "my project", "project 2015", or simply "project". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only projects with these advertiser + * IDs. + * @opt_param string ids Select only projects with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ProjectsListResponse + */ + public function listProjects($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse"); + } +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $regions = $dfareportingService->regions; + * + */ +class Google_Service_Dfareporting_Regions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of regions. (regions.listRegions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RegionsListResponse + */ + public function listRegions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse"); + } +} + +/** + * The "remarketingListShares" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $remarketingListShares = $dfareportingService->remarketingListShares; + * + */ +class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list share by remarketing list ID. + * (remarketingListShares.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function get($profileId, $remarketingListId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } + + /** + * Updates an existing remarketing list share. This method supports patch + * semantics. (remarketingListShares.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. + * @param Google_RemarketingListShare $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } + + /** + * Updates an existing remarketing list share. (remarketingListShares.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingListShare $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } +} + +/** + * The "remarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $remarketingLists = $dfareportingService->remarketingLists; + * + */ +class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (remarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Inserts a new remarketing list. (remarketingLists.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Retrieves a list of remarketing lists, possibly filtered. + * (remarketingLists.listRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only remarketing lists owned by this + * advertiser. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive remarketing lists. + * @opt_param string floodlightActivityId Select only remarketing lists that + * have this floodlight activity ID. + * @return Google_Service_Dfareporting_RemarketingListsListResponse + */ + public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse"); + } + + /** + * Updates an existing remarketing list. This method supports patch semantics. + * (remarketingLists.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Updates an existing remarketing list. (remarketingLists.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList"); + } +} + +/** + * The "reports" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a report by its ID. (reports.get) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function get($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Creates a report. (reports.insert) + * + * @param string $profileId The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Retrieves list of reports. (reports.listReports) + * + * @param string $profileId The DFA user profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope The scope that defines which results are returned, + * default is 'MINE'. + * @return Google_Service_Dfareporting_ReportList + */ + public function listReports($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); + } + + /** + * Updates a report. This method supports patch semantics. (reports.patch) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Runs a report. (reports.run) + * + * @param string $profileId The DFA profile ID. + * @param string $reportId The ID of the report. + * @param array $optParams Optional parameters. + * + * @opt_param bool synchronous If set and true, tries to run the report + * synchronously. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function run($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Updates a report. (reports.update) + * + * @param string $profileId The DFA user profile ID. + * @param string $reportId The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); + } +} + +/** + * The "compatibleFields" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $compatibleFields = $dfareportingService->compatibleFields; + * + */ +class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource +{ + + /** + * Returns the fields that are compatible to be selected in the respective + * sections of a report criteria, given the fields already selected in the input + * report and user permissions. (compatibleFields.query) + * + * @param string $profileId The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CompatibleFields + */ + public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); + } +} +/** + * The "files" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a report. (files.listReportsFiles) + * + * @param string $profileId The DFA profile ID. + * @param string $reportId The ID of the parent report. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField The field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken The value of the nextToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. + * @return Google_Service_Dfareporting_FileList + */ + public function listReportsFiles($profileId, $reportId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } +} + +/** + * The "sites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sites = $dfareportingService->sites; + * + */ +class Google_Service_Dfareporting_Sites_Resource extends Google_Service_Resource +{ + + /** + * Gets one site by ID. (sites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Inserts a new site. (sites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Retrieves a list of sites, possibly filtered. (sites.listSites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * keyName. Wildcards (*) are allowed. For example, "site*2015" will return + * objects with names like "site June 2015", "site April 2015", or simply "site + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "site" will + * match objects with name "my site", "site 2015", or simply "site". + * @opt_param string subaccountId Select only sites with this subaccount ID. + * @opt_param string directorySiteIds Select only sites with these directory + * site IDs. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only sites with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept + * publisher paid placements. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool adWordsSite Select only AdWords sites. + * @opt_param bool unmappedSite Select only sites that have not been mapped to a + * directory site. + * @opt_param bool approved Select only approved sites. + * @opt_param string campaignIds Select only sites with these campaign IDs. + * @return Google_Service_Dfareporting_SitesListResponse + */ + public function listSites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse"); + } + + /** + * Updates an existing site. This method supports patch semantics. (sites.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Updates an existing site. (sites.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Site"); + } +} + +/** + * The "sizes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sizes = $dfareportingService->sizes; + * + */ +class Google_Service_Dfareporting_Sizes_Resource extends Google_Service_Resource +{ + + /** + * Gets one size by ID. (sizes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Size ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Inserts a new size. (sizes.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Size $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool iabStandard Select only IAB standard sizes. + * @opt_param int width Select only sizes with this width. + * @opt_param string ids Select only sizes with these IDs. + * @opt_param int height Select only sizes with this height. + * @return Google_Service_Dfareporting_SizesListResponse + */ + public function listSizes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse"); + } +} + +/** + * The "subaccounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $subaccounts = $dfareportingService->subaccounts; + * + */ +class Google_Service_Dfareporting_Subaccounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one subaccount by ID. (subaccounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Inserts a new subaccount. (subaccounts.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Gets a list of subaccounts, possibly filtered. (subaccounts.listSubaccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects + * with names like "subaccount June 2015", "subaccount April 2015", or simply + * "subaccount 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "subaccount" will match objects with name "my subaccount", "subaccount 2015", + * or simply "subaccount". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only subaccounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_SubaccountsListResponse + */ + public function listSubaccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse"); + } + + /** + * Updates an existing subaccount. This method supports patch semantics. + * (subaccounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Updates an existing subaccount. (subaccounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount"); + } +} + +/** + * The "targetableRemarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists; + * + */ +class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (targetableRemarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_TargetableRemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList"); + } + + /** + * Retrieves a list of targetable remarketing lists, possibly filtered. + * (targetableRemarketingLists.listTargetableRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only targetable remarketing lists + * targetable by these advertisers. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive targetable + * remarketing lists. + * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse + */ + public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse"); + } +} + +/** + * The "userProfiles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $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); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); + } + + /** + * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserProfileList + */ + public function listUserProfiles($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); + } +} + +/** + * The "userRolePermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups; + * + */ +class Google_Service_Dfareporting_UserRolePermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission group by ID. (userRolePermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup"); + } + + /** + * Gets a list of all supported user role permission groups. + * (userRolePermissionGroups.listUserRolePermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse + */ + public function listUserRolePermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse"); + } +} + +/** + * The "userRolePermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissions = $dfareportingService->userRolePermissions; + * + */ +class Google_Service_Dfareporting_UserRolePermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission by ID. (userRolePermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission"); + } + + /** + * Gets a list of user role permissions, possibly filtered. + * (userRolePermissions.listUserRolePermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Select only user role permissions with these IDs. + * @return Google_Service_Dfareporting_UserRolePermissionsListResponse + */ + public function listUserRolePermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse"); + } +} + +/** + * The "userRoles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRoles = $dfareportingService->userRoles; + * + */ +class Google_Service_Dfareporting_UserRoles_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing user role. (userRoles.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one user role by ID. (userRoles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Inserts a new user role. (userRoles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Retrieves a list of user roles, possibly filtered. (userRoles.listUserRoles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "userrole*2015" will return objects + * with names like "userrole June 2015", "userrole April 2015", or simply + * "userrole 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "userrole" will match objects with name "my userrole", "userrole 2015", or + * simply "userrole". + * @opt_param string subaccountId Select only user roles that belong to this + * subaccount. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only user roles with the specified IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool accountUserRoleOnly Select only account level user roles not + * associated with any specific subaccount. + * @return Google_Service_Dfareporting_UserRolesListResponse + */ + public function listUserRoles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse"); + } + + /** + * Updates an existing user role. This method supports patch semantics. + * (userRoles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Updates an existing user role. (userRoles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole"); + } +} + + + + +class Google_Service_Dfareporting_Account extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountPermissionIds; + public $accountProfile; + public $active; + public $activeAdsLimitTier; + public $activeViewOptOut; + public $availablePermissionIds; + public $comscoreVceEnabled; + public $countryId; + public $currencyId; + public $defaultCreativeSizeId; + public $description; + public $id; + public $kind; + public $locale; + public $maximumImageSize; + public $name; + public $nielsenOcrEnabled; + protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration'; + protected $reportsConfigurationDataType = ''; + public $teaserSizeLimit; + + + public function setAccountPermissionIds($accountPermissionIds) + { + $this->accountPermissionIds = $accountPermissionIds; + } + public function getAccountPermissionIds() + { + return $this->accountPermissionIds; + } + public function setAccountProfile($accountProfile) + { + $this->accountProfile = $accountProfile; + } + public function getAccountProfile() + { + return $this->accountProfile; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setAvailablePermissionIds($availablePermissionIds) + { + $this->availablePermissionIds = $availablePermissionIds; + } + public function getAvailablePermissionIds() + { + return $this->availablePermissionIds; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + public function setDefaultCreativeSizeId($defaultCreativeSizeId) + { + $this->defaultCreativeSizeId = $defaultCreativeSizeId; + } + public function getDefaultCreativeSizeId() + { + return $this->defaultCreativeSizeId; + } + 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($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setMaximumImageSize($maximumImageSize) + { + $this->maximumImageSize = $maximumImageSize; + } + public function getMaximumImageSize() + { + return $this->maximumImageSize; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration) + { + $this->reportsConfiguration = $reportsConfiguration; + } + public function getReportsConfiguration() + { + return $this->reportsConfiguration; + } + public function setTeaserSizeLimit($teaserSizeLimit) + { + $this->teaserSizeLimit = $teaserSizeLimit; + } + public function getTeaserSizeLimit() + { + return $this->teaserSizeLimit; + } +} + +class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $activeAds; + public $activeAdsLimitTier; + public $availableAds; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActiveAds($activeAds) + { + $this->activeAds = $activeAds; + } + public function getActiveAds() + { + return $this->activeAds; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setAvailableAds($availableAds) + { + $this->availableAds = $availableAds; + } + public function getAvailableAds() + { + return $this->availableAds; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermission extends Google_Collection +{ + protected $collection_key = 'accountProfiles'; + protected $internal_gapi_mappings = array( + ); + public $accountProfiles; + public $id; + public $kind; + public $level; + public $name; + public $permissionGroupId; + + + public function setAccountProfiles($accountProfiles) + { + $this->accountProfiles = $accountProfiles; + } + public function getAccountProfiles() + { + return $this->accountProfiles; + } + 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 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 setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissionGroups'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup'; + protected $accountPermissionGroupsDataType = 'array'; + public $kind; + + + public function setAccountPermissionGroups($accountPermissionGroups) + { + $this->accountPermissionGroups = $accountPermissionGroups; + } + public function getAccountPermissionGroups() + { + return $this->accountPermissionGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissions'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission'; + protected $accountPermissionsDataType = 'array'; + public $kind; + + + public function setAccountPermissions($accountPermissions) + { + $this->accountPermissions = $accountPermissions; + } + public function getAccountPermissions() + { + return $this->accountPermissions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountUserProfile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $advertiserFilterDataType = ''; + protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $campaignFilterDataType = ''; + public $comments; + public $email; + public $id; + public $kind; + public $locale; + public $name; + protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $siteFilterDataType = ''; + public $subaccountId; + public $traffickerType; + public $userAccessType; + protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $userRoleFilterDataType = ''; + public $userRoleId; + + + 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 setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter) + { + $this->advertiserFilter = $advertiserFilter; + } + public function getAdvertiserFilter() + { + return $this->advertiserFilter; + } + public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter) + { + $this->campaignFilter = $campaignFilter; + } + public function getCampaignFilter() + { + return $this->campaignFilter; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocale($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 setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter) + { + $this->siteFilter = $siteFilter; + } + public function getSiteFilter() + { + return $this->siteFilter; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerType($traffickerType) + { + $this->traffickerType = $traffickerType; + } + public function getTraffickerType() + { + return $this->traffickerType; + } + public function setUserAccessType($userAccessType) + { + $this->userAccessType = $userAccessType; + } + public function getUserAccessType() + { + return $this->userAccessType; + } + public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter) + { + $this->userRoleFilter = $userRoleFilter; + } + public function getUserRoleFilter() + { + return $this->userRoleFilter; + } + public function setUserRoleId($userRoleId) + { + $this->userRoleId = $userRoleId; + } + public function getUserRoleId() + { + return $this->userRoleId; + } +} + +class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection +{ + protected $collection_key = 'accountUserProfiles'; + protected $internal_gapi_mappings = array( + ); + protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile'; + protected $accountUserProfilesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccountUserProfiles($accountUserProfiles) + { + $this->accountUserProfiles = $accountUserProfiles; + } + public function getAccountUserProfiles() + { + return $this->accountUserProfiles; + } + 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_AccountsListResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_Dfareporting_Account'; + protected $accountsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + public function getAccounts() + { + return $this->accounts; + } + 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_Activities extends Google_Collection +{ + protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); + protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filtersDataType = 'array'; + 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_Ad extends Google_Collection +{ + protected $collection_key = 'placementAssignments'; + protected $internal_gapi_mappings = array( + "remarketingListExpression" => "remarketing_list_expression", + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $audienceSegmentId; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comments; + public $compatibility; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation'; + protected $creativeRotationDataType = ''; + protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting'; + protected $dayPartTargetingDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule'; + protected $deliveryScheduleDataType = ''; + public $dynamicClickTracker; + public $endTime; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting'; + protected $geoTargetingDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression'; + protected $keyValueTargetingExpressionDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment'; + protected $placementAssignmentsDataType = 'array'; + protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression'; + protected $remarketingListExpressionDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $sslRequired; + public $startTime; + public $subaccountId; + protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting'; + protected $technologyTargetingDataType = ''; + public $type; + + + 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 setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentId($audienceSegmentId) + { + $this->audienceSegmentId = $audienceSegmentId; + } + public function getAudienceSegmentId() + { + return $this->audienceSegmentId; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation) + { + $this->creativeRotation = $creativeRotation; + } + public function getCreativeRotation() + { + return $this->creativeRotation; + } + public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting) + { + $this->dayPartTargeting = $dayPartTargeting; + } + public function getDayPartTargeting() + { + return $this->dayPartTargeting; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule) + { + $this->deliverySchedule = $deliverySchedule; + } + public function getDeliverySchedule() + { + return $this->deliverySchedule; + } + public function setDynamicClickTracker($dynamicClickTracker) + { + $this->dynamicClickTracker = $dynamicClickTracker; + } + public function getDynamicClickTracker() + { + return $this->dynamicClickTracker; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting) + { + $this->geoTargeting = $geoTargeting; + } + public function getGeoTargeting() + { + return $this->geoTargeting; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression) + { + $this->keyValueTargetingExpression = $keyValueTargetingExpression; + } + public function getKeyValueTargetingExpression() + { + return $this->keyValueTargetingExpression; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementAssignments($placementAssignments) + { + $this->placementAssignments = $placementAssignments; + } + public function getPlacementAssignments() + { + return $this->placementAssignments; + } + public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression) + { + $this->remarketingListExpression = $remarketingListExpression; + } + public function getRemarketingListExpression() + { + return $this->remarketingListExpression; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting) + { + $this->technologyTargeting = $technologyTargeting; + } + public function getTechnologyTargeting() + { + return $this->technologyTargeting; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_AdSlot extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comment; + public $compatibility; + public $height; + public $linkedPlacementId; + public $name; + public $paymentSourceType; + public $primary; + public $width; + + + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLinkedPlacementId($linkedPlacementId) + { + $this->linkedPlacementId = $linkedPlacementId; + } + public function getLinkedPlacementId() + { + return $this->linkedPlacementId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentSourceType($paymentSourceType) + { + $this->paymentSourceType = $paymentSourceType; + } + public function getPaymentSourceType() + { + return $this->paymentSourceType; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Dfareporting_AdsListResponse extends Google_Collection +{ + protected $collection_key = 'ads'; + protected $internal_gapi_mappings = array( + ); + protected $adsType = 'Google_Service_Dfareporting_Ad'; + protected $adsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAds($ads) + { + $this->ads = $ads; + } + public function getAds() + { + return $this->ads; + } + 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_Advertiser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserGroupId; + public $clickThroughUrlSuffix; + public $defaultClickThroughEventTagId; + public $defaultEmail; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $originalFloodlightConfigurationId; + public $status; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setDefaultEmail($defaultEmail) + { + $this->defaultEmail = $defaultEmail; + } + public function getDefaultEmail() + { + return $this->defaultEmail; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + 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 setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId) + { + $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId; + } + public function getOriginalFloodlightConfigurationId() + { + return $this->originalFloodlightConfigurationId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'advertiserGroups'; + protected $internal_gapi_mappings = array( + ); + protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup'; + protected $advertiserGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertiserGroups($advertiserGroups) + { + $this->advertiserGroups = $advertiserGroups; + } + public function getAdvertiserGroups() + { + return $this->advertiserGroups; + } + 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_AdvertisersListResponse extends Google_Collection +{ + protected $collection_key = 'advertisers'; + protected $internal_gapi_mappings = array( + ); + protected $advertisersType = 'Google_Service_Dfareporting_Advertiser'; + protected $advertisersDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertisers($advertisers) + { + $this->advertisers = $advertisers; + } + public function getAdvertisers() + { + return $this->advertisers; + } + 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_AudienceSegment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allocation; + public $id; + public $name; + + + public function setAllocation($allocation) + { + $this->allocation = $allocation; + } + public function getAllocation() + { + return $this->allocation; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection +{ + protected $collection_key = 'audienceSegments'; + protected $internal_gapi_mappings = array( + ); + protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment'; + protected $audienceSegmentsDataType = 'array'; + public $id; + public $name; + + + public function setAudienceSegments($audienceSegments) + { + $this->audienceSegments = $audienceSegments; + } + public function getAudienceSegments() + { + return $this->audienceSegments; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_Browser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $browserVersionId; + public $dartId; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + + + public function setBrowserVersionId($browserVersionId) + { + $this->browserVersionId = $browserVersionId; + } + public function getBrowserVersionId() + { + return $this->browserVersionId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection +{ + protected $collection_key = 'browsers'; + protected $internal_gapi_mappings = array( + ); + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + public $kind; + + + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() + { + return $this->browsers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Campaign extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $additionalCreativeOptimizationConfigurationsDataType = 'array'; + public $advertiserGroupId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup'; + protected $audienceSegmentGroupsDataType = 'array'; + public $billingInvoiceCode; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comment; + public $comscoreVceEnabled; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $creativeGroupIds; + protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $creativeOptimizationConfigurationDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + public $endDate; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $nielsenOcrEnabled; + public $startDate; + public $subaccountId; + public $traffickerEmails; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations) + { + $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations; + } + public function getAdditionalCreativeOptimizationConfigurations() + { + return $this->additionalCreativeOptimizationConfigurations; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentGroups($audienceSegmentGroups) + { + $this->audienceSegmentGroups = $audienceSegmentGroups; + } + public function getAudienceSegmentGroups() + { + return $this->audienceSegmentGroups; + } + public function setBillingInvoiceCode($billingInvoiceCode) + { + $this->billingInvoiceCode = $billingInvoiceCode; + } + public function getBillingInvoiceCode() + { + return $this->billingInvoiceCode; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupIds($creativeGroupIds) + { + $this->creativeGroupIds = $creativeGroupIds; + } + public function getCreativeGroupIds() + { + return $this->creativeGroupIds; + } + public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration) + { + $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration; + } + public function getCreativeOptimizationConfiguration() + { + return $this->creativeOptimizationConfiguration; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeId; + public $kind; + + + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection +{ + protected $collection_key = 'campaignCreativeAssociations'; + protected $internal_gapi_mappings = array( + ); + protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation'; + protected $campaignCreativeAssociationsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaignCreativeAssociations($campaignCreativeAssociations) + { + $this->campaignCreativeAssociations = $campaignCreativeAssociations; + } + public function getCampaignCreativeAssociations() + { + return $this->campaignCreativeAssociations; + } + 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_CampaignsListResponse extends Google_Collection +{ + protected $collection_key = 'campaigns'; + protected $internal_gapi_mappings = array( + ); + protected $campaignsType = 'Google_Service_Dfareporting_Campaign'; + protected $campaignsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaigns($campaigns) + { + $this->campaigns = $campaigns; + } + public function getCampaigns() + { + return $this->campaigns; + } + 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_ChangeLog extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $action; + public $changeTime; + public $fieldName; + public $id; + public $kind; + public $newValue; + public $objectId; + public $objectType; + public $oldValue; + public $subaccountId; + public $transactionId; + public $userProfileId; + public $userProfileName; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setChangeTime($changeTime) + { + $this->changeTime = $changeTime; + } + public function getChangeTime() + { + return $this->changeTime; + } + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + public function getFieldName() + { + return $this->fieldName; + } + 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 setNewValue($newValue) + { + $this->newValue = $newValue; + } + public function getNewValue() + { + return $this->newValue; + } + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setOldValue($oldValue) + { + $this->oldValue = $oldValue; + } + public function getOldValue() + { + return $this->oldValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTransactionId($transactionId) + { + $this->transactionId = $transactionId; + } + public function getTransactionId() + { + return $this->transactionId; + } + public function setUserProfileId($userProfileId) + { + $this->userProfileId = $userProfileId; + } + public function getUserProfileId() + { + return $this->userProfileId; + } + public function setUserProfileName($userProfileName) + { + $this->userProfileName = $userProfileName; + } + public function getUserProfileName() + { + return $this->userProfileName; + } +} + +class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection +{ + protected $collection_key = 'changeLogs'; + protected $internal_gapi_mappings = array( + ); + protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog'; + protected $changeLogsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setChangeLogs($changeLogs) + { + $this->changeLogs = $changeLogs; + } + public function getChangeLogs() + { + return $this->changeLogs; + } + 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_CitiesListResponse extends Google_Collection +{ + protected $collection_key = 'cities'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + public $kind; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_City extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $metroCode; + public $metroDmaId; + public $name; + public $regionCode; + public $regionDartId; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setMetroDmaId($metroDmaId) + { + $this->metroDmaId = $metroDmaId; + } + public function getMetroDmaId() + { + return $this->metroDmaId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setRegionDartId($regionDartId) + { + $this->regionDartId = $regionDartId; + } + public function getRegionDartId() + { + return $this->regionDartId; + } +} + +class Google_Service_Dfareporting_ClickTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $eventName; + public $name; + public $value; + + + public function setEventName($eventName) + { + $this->eventName = $eventName; + } + public function getEventName() + { + return $this->eventName; + } + 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_Dfareporting_ClickThroughUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customClickThroughUrl; + public $defaultLandingPage; + public $landingPageId; + + + public function setCustomClickThroughUrl($customClickThroughUrl) + { + $this->customClickThroughUrl = $customClickThroughUrl; + } + public function getCustomClickThroughUrl() + { + return $this->customClickThroughUrl; + } + public function setDefaultLandingPage($defaultLandingPage) + { + $this->defaultLandingPage = $defaultLandingPage; + } + public function getDefaultLandingPage() + { + return $this->defaultLandingPage; + } + public function setLandingPageId($landingPageId) + { + $this->landingPageId = $landingPageId; + } + public function getLandingPageId() + { + return $this->landingPageId; + } +} + +class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThroughUrlSuffix; + public $overrideInheritedSuffix; + + + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setOverrideInheritedSuffix($overrideInheritedSuffix) + { + $this->overrideInheritedSuffix = $overrideInheritedSuffix; + } + public function getOverrideInheritedSuffix() + { + return $this->overrideInheritedSuffix; + } +} + +class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + public $creativeId; + + + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } +} + +class Google_Service_Dfareporting_CompatibleFields extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; + protected $crossDimensionReachReportCompatibleFieldsDataType = ''; + protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; + protected $floodlightReportCompatibleFieldsDataType = ''; + public $kind; + protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; + protected $pathToConversionReportCompatibleFieldsDataType = ''; + protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; + protected $reachReportCompatibleFieldsDataType = ''; + protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; + protected $reportCompatibleFieldsDataType = ''; + + + public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) + { + $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; + } + public function getCrossDimensionReachReportCompatibleFields() + { + return $this->crossDimensionReachReportCompatibleFields; + } + public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) + { + $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; + } + public function getFloodlightReportCompatibleFields() + { + return $this->floodlightReportCompatibleFields; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) + { + $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; + } + public function getPathToConversionReportCompatibleFields() + { + return $this->pathToConversionReportCompatibleFields; + } + public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) + { + $this->reachReportCompatibleFields = $reachReportCompatibleFields; + } + public function getReachReportCompatibleFields() + { + return $this->reachReportCompatibleFields; + } + public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) + { + $this->reportCompatibleFields = $reportCompatibleFields; + } + public function getReportCompatibleFields() + { + return $this->reportCompatibleFields; + } +} + +class Google_Service_Dfareporting_ConnectionType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_ConnectionTypesListResponse extends Google_Collection +{ + protected $collection_key = 'connectionTypes'; + protected $internal_gapi_mappings = array( + ); + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + public $kind; + + + public function setConnectionTypes($connectionTypes) + { + $this->connectionTypes = $connectionTypes; + } + public function getConnectionTypes() + { + return $this->connectionTypes; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection +{ + protected $collection_key = 'contentCategories'; + protected $internal_gapi_mappings = array( + ); + protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory'; + protected $contentCategoriesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setContentCategories($contentCategories) + { + $this->contentCategories = $contentCategories; + } + public function getContentCategories() + { + return $this->contentCategories; + } + 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_ContentCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection +{ + protected $collection_key = 'countries'; + protected $internal_gapi_mappings = array( + ); + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $kind; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Country extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $dartId; + public $kind; + public $name; + public $sslEnabled; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + 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 setSslEnabled($sslEnabled) + { + $this->sslEnabled = $sslEnabled; + } + public function getSslEnabled() + { + return $this->sslEnabled; + } +} + +class Google_Service_Dfareporting_Creative extends Google_Collection +{ + protected $collection_key = 'timerCustomEvents'; + protected $internal_gapi_mappings = array( + "autoAdvanceImages" => "auto_advance_images", + ); + public $accountId; + public $active; + public $adParameters; + public $adTagKeys; + public $advertiserId; + public $allowScriptAccess; + public $archived; + public $artworkType; + public $authoringTool; + public $autoAdvanceImages; + public $backgroundColor; + public $backupImageClickThroughUrl; + public $backupImageFeatures; + public $backupImageReportingLabel; + protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow'; + protected $backupImageTargetWindowDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $commercialId; + public $companionCreatives; + public $compatibility; + public $convertFlashToHtml5; + protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $counterCustomEventsDataType = 'array'; + protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; + protected $creativeAssetsDataType = 'array'; + protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment'; + protected $creativeFieldAssignmentsDataType = 'array'; + public $customKeyValues; + protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $exitCustomEventsDataType = 'array'; + protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand'; + protected $fsCommandDataType = ''; + public $htmlCode; + public $htmlCodeLocked; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $latestTraffickedCreativeId; + public $name; + public $overrideCss; + public $redirectUrl; + public $renderingId; + protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $renderingIdDimensionValueDataType = ''; + public $requiredFlashPluginVersion; + public $requiredFlashVersion; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $skippable; + public $sslCompliant; + public $studioAdvertiserId; + public $studioCreativeId; + public $studioTraffickedCreativeId; + public $subaccountId; + public $thirdPartyBackupImageImpressionsUrl; + public $thirdPartyRichMediaImpressionsUrl; + protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl'; + protected $thirdPartyUrlsDataType = 'array'; + protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $timerCustomEventsDataType = 'array'; + public $totalFileSize; + public $type; + public $version; + public $videoDescription; + public $videoDuration; + + + 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 setAdParameters($adParameters) + { + $this->adParameters = $adParameters; + } + public function getAdParameters() + { + return $this->adParameters; + } + public function setAdTagKeys($adTagKeys) + { + $this->adTagKeys = $adTagKeys; + } + public function getAdTagKeys() + { + return $this->adTagKeys; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAllowScriptAccess($allowScriptAccess) + { + $this->allowScriptAccess = $allowScriptAccess; + } + public function getAllowScriptAccess() + { + return $this->allowScriptAccess; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAuthoringTool($authoringTool) + { + $this->authoringTool = $authoringTool; + } + public function getAuthoringTool() + { + return $this->authoringTool; + } + public function setAutoAdvanceImages($autoAdvanceImages) + { + $this->autoAdvanceImages = $autoAdvanceImages; + } + public function getAutoAdvanceImages() + { + return $this->autoAdvanceImages; + } + public function setBackgroundColor($backgroundColor) + { + $this->backgroundColor = $backgroundColor; + } + public function getBackgroundColor() + { + return $this->backgroundColor; + } + public function setBackupImageClickThroughUrl($backupImageClickThroughUrl) + { + $this->backupImageClickThroughUrl = $backupImageClickThroughUrl; + } + public function getBackupImageClickThroughUrl() + { + return $this->backupImageClickThroughUrl; + } + public function setBackupImageFeatures($backupImageFeatures) + { + $this->backupImageFeatures = $backupImageFeatures; + } + public function getBackupImageFeatures() + { + return $this->backupImageFeatures; + } + public function setBackupImageReportingLabel($backupImageReportingLabel) + { + $this->backupImageReportingLabel = $backupImageReportingLabel; + } + public function getBackupImageReportingLabel() + { + return $this->backupImageReportingLabel; + } + public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow) + { + $this->backupImageTargetWindow = $backupImageTargetWindow; + } + public function getBackupImageTargetWindow() + { + return $this->backupImageTargetWindow; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setCommercialId($commercialId) + { + $this->commercialId = $commercialId; + } + public function getCommercialId() + { + return $this->commercialId; + } + public function setCompanionCreatives($companionCreatives) + { + $this->companionCreatives = $companionCreatives; + } + public function getCompanionCreatives() + { + return $this->companionCreatives; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setConvertFlashToHtml5($convertFlashToHtml5) + { + $this->convertFlashToHtml5 = $convertFlashToHtml5; + } + public function getConvertFlashToHtml5() + { + return $this->convertFlashToHtml5; + } + public function setCounterCustomEvents($counterCustomEvents) + { + $this->counterCustomEvents = $counterCustomEvents; + } + public function getCounterCustomEvents() + { + return $this->counterCustomEvents; + } + public function setCreativeAssets($creativeAssets) + { + $this->creativeAssets = $creativeAssets; + } + public function getCreativeAssets() + { + return $this->creativeAssets; + } + public function setCreativeFieldAssignments($creativeFieldAssignments) + { + $this->creativeFieldAssignments = $creativeFieldAssignments; + } + public function getCreativeFieldAssignments() + { + return $this->creativeFieldAssignments; + } + public function setCustomKeyValues($customKeyValues) + { + $this->customKeyValues = $customKeyValues; + } + public function getCustomKeyValues() + { + return $this->customKeyValues; + } + public function setExitCustomEvents($exitCustomEvents) + { + $this->exitCustomEvents = $exitCustomEvents; + } + public function getExitCustomEvents() + { + return $this->exitCustomEvents; + } + public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand) + { + $this->fsCommand = $fsCommand; + } + public function getFsCommand() + { + return $this->fsCommand; + } + public function setHtmlCode($htmlCode) + { + $this->htmlCode = $htmlCode; + } + public function getHtmlCode() + { + return $this->htmlCode; + } + public function setHtmlCodeLocked($htmlCodeLocked) + { + $this->htmlCodeLocked = $htmlCodeLocked; + } + public function getHtmlCodeLocked() + { + return $this->htmlCodeLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLatestTraffickedCreativeId($latestTraffickedCreativeId) + { + $this->latestTraffickedCreativeId = $latestTraffickedCreativeId; + } + public function getLatestTraffickedCreativeId() + { + return $this->latestTraffickedCreativeId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverrideCss($overrideCss) + { + $this->overrideCss = $overrideCss; + } + public function getOverrideCss() + { + return $this->overrideCss; + } + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + } + public function getRedirectUrl() + { + return $this->redirectUrl; + } + public function setRenderingId($renderingId) + { + $this->renderingId = $renderingId; + } + public function getRenderingId() + { + return $this->renderingId; + } + public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue) + { + $this->renderingIdDimensionValue = $renderingIdDimensionValue; + } + public function getRenderingIdDimensionValue() + { + return $this->renderingIdDimensionValue; + } + public function setRequiredFlashPluginVersion($requiredFlashPluginVersion) + { + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + } + public function getRequiredFlashPluginVersion() + { + return $this->requiredFlashPluginVersion; + } + public function setRequiredFlashVersion($requiredFlashVersion) + { + $this->requiredFlashVersion = $requiredFlashVersion; + } + public function getRequiredFlashVersion() + { + return $this->requiredFlashVersion; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSkippable($skippable) + { + $this->skippable = $skippable; + } + public function getSkippable() + { + return $this->skippable; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStudioAdvertiserId($studioAdvertiserId) + { + $this->studioAdvertiserId = $studioAdvertiserId; + } + public function getStudioAdvertiserId() + { + return $this->studioAdvertiserId; + } + public function setStudioCreativeId($studioCreativeId) + { + $this->studioCreativeId = $studioCreativeId; + } + public function getStudioCreativeId() + { + return $this->studioCreativeId; + } + public function setStudioTraffickedCreativeId($studioTraffickedCreativeId) + { + $this->studioTraffickedCreativeId = $studioTraffickedCreativeId; + } + public function getStudioTraffickedCreativeId() + { + return $this->studioTraffickedCreativeId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl) + { + $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl; + } + public function getThirdPartyBackupImageImpressionsUrl() + { + return $this->thirdPartyBackupImageImpressionsUrl; + } + public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl) + { + $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl; + } + public function getThirdPartyRichMediaImpressionsUrl() + { + return $this->thirdPartyRichMediaImpressionsUrl; + } + public function setThirdPartyUrls($thirdPartyUrls) + { + $this->thirdPartyUrls = $thirdPartyUrls; + } + public function getThirdPartyUrls() + { + return $this->thirdPartyUrls; + } + public function setTimerCustomEvents($timerCustomEvents) + { + $this->timerCustomEvents = $timerCustomEvents; + } + public function getTimerCustomEvents() + { + return $this->timerCustomEvents; + } + public function setTotalFileSize($totalFileSize) + { + $this->totalFileSize = $totalFileSize; + } + public function getTotalFileSize() + { + return $this->totalFileSize; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setVideoDescription($videoDescription) + { + $this->videoDescription = $videoDescription; + } + public function getVideoDescription() + { + return $this->videoDescription; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } +} + +class Google_Service_Dfareporting_CreativeAsset extends Google_Collection +{ + protected $collection_key = 'detectedFeatures'; + protected $internal_gapi_mappings = array( + ); + public $actionScript3; + public $active; + public $alignment; + public $artworkType; + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $backupImageExitDataType = ''; + public $bitRate; + public $childAssetType; + protected $collapsedSizeType = 'Google_Service_Dfareporting_Size'; + protected $collapsedSizeDataType = ''; + public $customStartTimeValue; + public $detectedFeatures; + public $displayType; + public $duration; + public $durationType; + protected $expandedDimensionType = 'Google_Service_Dfareporting_Size'; + protected $expandedDimensionDataType = ''; + public $fileSize; + public $flashVersion; + public $hideFlashObjects; + public $hideSelectionBoxes; + public $horizontallyLocked; + public $id; + public $mimeType; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $originalBackup; + protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $positionDataType = ''; + public $positionLeftUnit; + public $positionTopUnit; + public $progressiveServingUrl; + public $pushdown; + public $pushdownDuration; + public $role; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $startTimeType; + public $streamingServingUrl; + public $transparency; + public $verticallyLocked; + public $videoDuration; + public $windowMode; + public $zIndex; + public $zipFilename; + public $zipFilesize; + + + public function setActionScript3($actionScript3) + { + $this->actionScript3 = $actionScript3; + } + public function getActionScript3() + { + return $this->actionScript3; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAlignment($alignment) + { + $this->alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit) + { + $this->backupImageExit = $backupImageExit; + } + public function getBackupImageExit() + { + return $this->backupImageExit; + } + public function setBitRate($bitRate) + { + $this->bitRate = $bitRate; + } + public function getBitRate() + { + return $this->bitRate; + } + public function setChildAssetType($childAssetType) + { + $this->childAssetType = $childAssetType; + } + public function getChildAssetType() + { + return $this->childAssetType; + } + public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize) + { + $this->collapsedSize = $collapsedSize; + } + public function getCollapsedSize() + { + return $this->collapsedSize; + } + public function setCustomStartTimeValue($customStartTimeValue) + { + $this->customStartTimeValue = $customStartTimeValue; + } + public function getCustomStartTimeValue() + { + return $this->customStartTimeValue; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setDisplayType($displayType) + { + $this->displayType = $displayType; + } + public function getDisplayType() + { + return $this->displayType; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setDurationType($durationType) + { + $this->durationType = $durationType; + } + public function getDurationType() + { + return $this->durationType; + } + public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension) + { + $this->expandedDimension = $expandedDimension; + } + public function getExpandedDimension() + { + return $this->expandedDimension; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setFlashVersion($flashVersion) + { + $this->flashVersion = $flashVersion; + } + public function getFlashVersion() + { + return $this->flashVersion; + } + public function setHideFlashObjects($hideFlashObjects) + { + $this->hideFlashObjects = $hideFlashObjects; + } + public function getHideFlashObjects() + { + return $this->hideFlashObjects; + } + public function setHideSelectionBoxes($hideSelectionBoxes) + { + $this->hideSelectionBoxes = $hideSelectionBoxes; + } + public function getHideSelectionBoxes() + { + return $this->hideSelectionBoxes; + } + public function setHorizontallyLocked($horizontallyLocked) + { + $this->horizontallyLocked = $horizontallyLocked; + } + public function getHorizontallyLocked() + { + return $this->horizontallyLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setOriginalBackup($originalBackup) + { + $this->originalBackup = $originalBackup; + } + public function getOriginalBackup() + { + return $this->originalBackup; + } + public function setPosition(Google_Service_Dfareporting_OffsetPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setPositionLeftUnit($positionLeftUnit) + { + $this->positionLeftUnit = $positionLeftUnit; + } + public function getPositionLeftUnit() + { + return $this->positionLeftUnit; + } + public function setPositionTopUnit($positionTopUnit) + { + $this->positionTopUnit = $positionTopUnit; + } + public function getPositionTopUnit() + { + return $this->positionTopUnit; + } + public function setProgressiveServingUrl($progressiveServingUrl) + { + $this->progressiveServingUrl = $progressiveServingUrl; + } + public function getProgressiveServingUrl() + { + return $this->progressiveServingUrl; + } + public function setPushdown($pushdown) + { + $this->pushdown = $pushdown; + } + public function getPushdown() + { + return $this->pushdown; + } + public function setPushdownDuration($pushdownDuration) + { + $this->pushdownDuration = $pushdownDuration; + } + public function getPushdownDuration() + { + return $this->pushdownDuration; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTimeType($startTimeType) + { + $this->startTimeType = $startTimeType; + } + public function getStartTimeType() + { + return $this->startTimeType; + } + public function setStreamingServingUrl($streamingServingUrl) + { + $this->streamingServingUrl = $streamingServingUrl; + } + public function getStreamingServingUrl() + { + return $this->streamingServingUrl; + } + public function setTransparency($transparency) + { + $this->transparency = $transparency; + } + public function getTransparency() + { + return $this->transparency; + } + public function setVerticallyLocked($verticallyLocked) + { + $this->verticallyLocked = $verticallyLocked; + } + public function getVerticallyLocked() + { + return $this->verticallyLocked; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } + public function setWindowMode($windowMode) + { + $this->windowMode = $windowMode; + } + public function getWindowMode() + { + return $this->windowMode; + } + public function setZIndex($zIndex) + { + $this->zIndex = $zIndex; + } + public function getZIndex() + { + return $this->zIndex; + } + public function setZipFilename($zipFilename) + { + $this->zipFilename = $zipFilename; + } + public function getZipFilename() + { + return $this->zipFilename; + } + public function setZipFilesize($zipFilesize) + { + $this->zipFilesize = $zipFilesize; + } + public function getZipFilesize() + { + return $this->zipFilesize; + } +} + +class Google_Service_Dfareporting_CreativeAssetId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $type; + + + 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_Dfareporting_CreativeAssetMetadata extends Google_Collection +{ + protected $collection_key = 'warnedValidationRules'; + protected $internal_gapi_mappings = array( + ); + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $detectedFeatures; + public $kind; + public $warnedValidationRules; + + + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setWarnedValidationRules($warnedValidationRules) + { + $this->warnedValidationRules = $warnedValidationRules; + } + public function getWarnedValidationRules() + { + return $this->warnedValidationRules; + } +} + +class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection +{ + protected $collection_key = 'richMediaExitOverrides'; + protected $internal_gapi_mappings = array( + ); + public $active; + public $applyEventTags; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride'; + protected $companionCreativeOverridesDataType = 'array'; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + public $creativeId; + protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $creativeIdDimensionValueDataType = ''; + public $endTime; + protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride'; + protected $richMediaExitOverridesDataType = 'array'; + public $sequence; + public $sslCompliant; + public $startTime; + public $weight; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setApplyEventTags($applyEventTags) + { + $this->applyEventTags = $applyEventTags; + } + public function getApplyEventTags() + { + return $this->applyEventTags; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCompanionCreativeOverrides($companionCreativeOverrides) + { + $this->companionCreativeOverrides = $companionCreativeOverrides; + } + public function getCompanionCreativeOverrides() + { + return $this->companionCreativeOverrides; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue) + { + $this->creativeIdDimensionValue = $creativeIdDimensionValue; + } + public function getCreativeIdDimensionValue() + { + return $this->creativeIdDimensionValue; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setRichMediaExitOverrides($richMediaExitOverrides) + { + $this->richMediaExitOverrides = $richMediaExitOverrides; + } + public function getRichMediaExitOverrides() + { + return $this->richMediaExitOverrides; + } + public function setSequence($sequence) + { + $this->sequence = $sequence; + } + public function getSequence() + { + return $this->sequence; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $advertiserCustomEventName; + public $advertiserCustomEventType; + public $artworkLabel; + public $artworkType; + public $exitUrl; + public $id; + protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties'; + protected $popupWindowPropertiesDataType = ''; + public $targetType; + public $videoReportingId; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserCustomEventName($advertiserCustomEventName) + { + $this->advertiserCustomEventName = $advertiserCustomEventName; + } + public function getAdvertiserCustomEventName() + { + return $this->advertiserCustomEventName; + } + public function setAdvertiserCustomEventType($advertiserCustomEventType) + { + $this->advertiserCustomEventType = $advertiserCustomEventType; + } + public function getAdvertiserCustomEventType() + { + return $this->advertiserCustomEventType; + } + public function setArtworkLabel($artworkLabel) + { + $this->artworkLabel = $artworkLabel; + } + public function getArtworkLabel() + { + return $this->artworkLabel; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setExitUrl($exitUrl) + { + $this->exitUrl = $exitUrl; + } + public function getExitUrl() + { + return $this->exitUrl; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties) + { + $this->popupWindowProperties = $popupWindowProperties; + } + public function getPopupWindowProperties() + { + return $this->popupWindowProperties; + } + public function setTargetType($targetType) + { + $this->targetType = $targetType; + } + public function getTargetType() + { + return $this->targetType; + } + public function setVideoReportingId($videoReportingId) + { + $this->videoReportingId = $videoReportingId; + } + public function getVideoReportingId() + { + return $this->videoReportingId; + } +} + +class Google_Service_Dfareporting_CreativeField extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $id; + public $kind; + public $name; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeFieldId; + public $creativeFieldValueId; + + + public function setCreativeFieldId($creativeFieldId) + { + $this->creativeFieldId = $creativeFieldId; + } + public function getCreativeFieldId() + { + return $this->creativeFieldId; + } + public function setCreativeFieldValueId($creativeFieldValueId) + { + $this->creativeFieldValueId = $creativeFieldValueId; + } + public function getCreativeFieldValueId() + { + return $this->creativeFieldValueId; + } +} + +class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $value; + + + 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_CreativeFieldValuesListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFieldValues'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue'; + protected $creativeFieldValuesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFieldValues($creativeFieldValues) + { + $this->creativeFieldValues = $creativeFieldValues; + } + public function getCreativeFieldValues() + { + return $this->creativeFieldValues; + } + 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_CreativeFieldsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFields'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField'; + protected $creativeFieldsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFields($creativeFields) + { + $this->creativeFields = $creativeFields; + } + public function getCreativeFields() + { + return $this->creativeFields; + } + 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_CreativeGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $groupNumber; + public $id; + public $kind; + public $name; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setGroupNumber($groupNumber) + { + $this->groupNumber = $groupNumber; + } + public function getGroupNumber() + { + return $this->groupNumber; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeGroupId; + public $creativeGroupNumber; + + + public function setCreativeGroupId($creativeGroupId) + { + $this->creativeGroupId = $creativeGroupId; + } + public function getCreativeGroupId() + { + return $this->creativeGroupId; + } + public function setCreativeGroupNumber($creativeGroupNumber) + { + $this->creativeGroupNumber = $creativeGroupNumber; + } + public function getCreativeGroupNumber() + { + return $this->creativeGroupNumber; + } +} + +class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeGroups'; + protected $internal_gapi_mappings = array( + ); + protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup'; + protected $creativeGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeGroups($creativeGroups) + { + $this->creativeGroups = $creativeGroups; + } + public function getCreativeGroups() + { + return $this->creativeGroups; + } + 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_CreativeOptimizationConfiguration extends Google_Collection +{ + protected $collection_key = 'optimizationActivitys'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity'; + protected $optimizationActivitysDataType = 'array'; + public $optimizationModel; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOptimizationActivitys($optimizationActivitys) + { + $this->optimizationActivitys = $optimizationActivitys; + } + public function getOptimizationActivitys() + { + return $this->optimizationActivitys; + } + public function setOptimizationModel($optimizationModel) + { + $this->optimizationModel = $optimizationModel; + } + public function getOptimizationModel() + { + return $this->optimizationModel; + } +} + +class Google_Service_Dfareporting_CreativeRotation extends Google_Collection +{ + protected $collection_key = 'creativeAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment'; + protected $creativeAssignmentsDataType = 'array'; + public $creativeOptimizationConfigurationId; + public $type; + public $weightCalculationStrategy; + + + public function setCreativeAssignments($creativeAssignments) + { + $this->creativeAssignments = $creativeAssignments; + } + public function getCreativeAssignments() + { + return $this->creativeAssignments; + } + public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId) + { + $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId; + } + public function getCreativeOptimizationConfigurationId() + { + return $this->creativeOptimizationConfigurationId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setWeightCalculationStrategy($weightCalculationStrategy) + { + $this->weightCalculationStrategy = $weightCalculationStrategy; + } + public function getWeightCalculationStrategy() + { + return $this->weightCalculationStrategy; + } +} + +class Google_Service_Dfareporting_CreativeSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $iFrameFooter; + public $iFrameHeader; + + + public function setIFrameFooter($iFrameFooter) + { + $this->iFrameFooter = $iFrameFooter; + } + public function getIFrameFooter() + { + return $this->iFrameFooter; + } + public function setIFrameHeader($iFrameHeader) + { + $this->iFrameHeader = $iFrameHeader; + } + public function getIFrameHeader() + { + return $this->iFrameHeader; + } +} + +class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection +{ + protected $collection_key = 'creatives'; + protected $internal_gapi_mappings = array( + ); + protected $creativesType = 'Google_Service_Dfareporting_Creative'; + protected $creativesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreatives($creatives) + { + $this->creatives = $creatives; + } + public function getCreatives() + { + return $this->creatives; + } + 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_CrossDimensionReachReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'overlapMetrics'; + protected $internal_gapi_mappings = array( + ); + protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; + protected $breakdownDataType = 'array'; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $overlapMetricsDataType = 'array'; + + + public function setBreakdown($breakdown) + { + $this->breakdown = $breakdown; + } + public function getBreakdown() + { + return $this->breakdown; + } + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setOverlapMetrics($overlapMetrics) + { + $this->overlapMetrics = $overlapMetrics; + } + public function getOverlapMetrics() + { + return $this->overlapMetrics; + } +} + +class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection +{ + protected $collection_key = 'filteredEventIds'; + protected $internal_gapi_mappings = array( + ); + protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filteredEventIdsDataType = 'array'; + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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_DayPartTargeting extends Google_Collection +{ + protected $collection_key = 'hoursOfDay'; + protected $internal_gapi_mappings = array( + ); + public $daysOfWeek; + public $hoursOfDay; + public $userLocalTime; + + + public function setDaysOfWeek($daysOfWeek) + { + $this->daysOfWeek = $daysOfWeek; + } + public function getDaysOfWeek() + { + return $this->daysOfWeek; + } + public function setHoursOfDay($hoursOfDay) + { + $this->hoursOfDay = $hoursOfDay; + } + public function getHoursOfDay() + { + return $this->hoursOfDay; + } + public function setUserLocalTime($userLocalTime) + { + $this->userLocalTime = $userLocalTime; + } + public function getUserLocalTime() + { + return $this->userLocalTime; + } +} + +class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $defaultClickThroughEventTagId; + public $overrideInheritedEventTag; + + + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setOverrideInheritedEventTag($overrideInheritedEventTag) + { + $this->overrideInheritedEventTag = $overrideInheritedEventTag; + } + public function getOverrideInheritedEventTag() + { + return $this->overrideInheritedEventTag; + } +} + +class Google_Service_Dfareporting_DeliverySchedule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap'; + protected $frequencyCapDataType = ''; + public $hardCutoff; + public $impressionRatio; + public $priority; + + + public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap) + { + $this->frequencyCap = $frequencyCap; + } + public function getFrequencyCap() + { + return $this->frequencyCap; + } + public function setHardCutoff($hardCutoff) + { + $this->hardCutoff = $hardCutoff; + } + public function getHardCutoff() + { + return $this->hardCutoff; + } + public function setImpressionRatio($impressionRatio) + { + $this->impressionRatio = $impressionRatio; + } + public function getImpressionRatio() + { + return $this->impressionRatio; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} + +class Google_Service_Dfareporting_DfareportingFile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $etag; + public $fileName; + public $format; + public $id; + public $kind; + public $lastModifiedTime; + public $reportId; + public $status; + protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; + protected $urlsDataType = ''; + + + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) + { + $this->dateRange = $dateRange; + } + public function 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 +{ + protected $internal_gapi_mappings = array( + ); + 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_DfpSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpNetworkCode" => "dfp_network_code", + "dfpNetworkName" => "dfp_network_name", + ); + public $dfpNetworkCode; + public $dfpNetworkName; + public $programmaticPlacementAccepted; + public $pubPaidPlacementAccepted; + public $publisherPortalOnly; + + + public function setDfpNetworkCode($dfpNetworkCode) + { + $this->dfpNetworkCode = $dfpNetworkCode; + } + public function getDfpNetworkCode() + { + return $this->dfpNetworkCode; + } + public function setDfpNetworkName($dfpNetworkName) + { + $this->dfpNetworkName = $dfpNetworkName; + } + public function getDfpNetworkName() + { + return $this->dfpNetworkName; + } + public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted) + { + $this->programmaticPlacementAccepted = $programmaticPlacementAccepted; + } + public function getProgrammaticPlacementAccepted() + { + return $this->programmaticPlacementAccepted; + } + public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted) + { + $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted; + } + public function getPubPaidPlacementAccepted() + { + return $this->pubPaidPlacementAccepted; + } + public function setPublisherPortalOnly($publisherPortalOnly) + { + $this->publisherPortalOnly = $publisherPortalOnly; + } + public function getPublisherPortalOnly() + { + return $this->publisherPortalOnly; + } +} + +class Google_Service_Dfareporting_Dimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Dfareporting_DimensionFilter extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + public $dimensionName; + public $etag; + public $id; + public $kind; + public $matchType; + 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 setMatchType($matchType) + { + $this->matchType = $matchType; + } + public function getMatchType() + { + return $this->matchType; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Dfareporting_DimensionValueList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $itemsDataType = 'array'; + 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 +{ + protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); + public $dimensionName; + public $endDate; + protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; + protected $filtersDataType = 'array'; + public $kind; + public $startDate; + + + public function setDimensionName($dimensionName) + { + $this->dimensionName = $dimensionName; + } + public function 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_DirectorySite extends Google_Collection +{ + protected $collection_key = 'interstitialTagFormats'; + protected $internal_gapi_mappings = array( + ); + public $active; + protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; + protected $contactAssignmentsDataType = 'array'; + public $countryId; + public $currencyId; + public $description; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $inpageTagFormats; + public $interstitialTagFormats; + public $kind; + public $name; + public $parentId; + protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; + protected $settingsDataType = ''; + public $url; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setContactAssignments($contactAssignments) + { + $this->contactAssignments = $contactAssignments; + } + public function getContactAssignments() + { + return $this->contactAssignments; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setInpageTagFormats($inpageTagFormats) + { + $this->inpageTagFormats = $inpageTagFormats; + } + public function getInpageTagFormats() + { + return $this->inpageTagFormats; + } + public function setInterstitialTagFormats($interstitialTagFormats) + { + $this->interstitialTagFormats = $interstitialTagFormats; + } + public function getInterstitialTagFormats() + { + return $this->interstitialTagFormats; + } + 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 setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings) + { + $this->settings = $settings; + } + public function getSettings() + { + return $this->settings; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + public $email; + public $firstName; + public $id; + public $kind; + public $lastName; + public $phone; + public $role; + public $title; + public $type; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + public function getFirstName() + { + return $this->firstName; + } + 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 setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; + } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + 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_Dfareporting_DirectorySiteContactAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactId; + public $visibility; + + + public function setContactId($contactId) + { + $this->contactId = $contactId; + } + public function getContactId() + { + return $this->contactId; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection +{ + protected $collection_key = 'directorySiteContacts'; + protected $internal_gapi_mappings = array( + ); + protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; + protected $directorySiteContactsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySiteContacts($directorySiteContacts) + { + $this->directorySiteContacts = $directorySiteContacts; + } + public function getDirectorySiteContacts() + { + return $this->directorySiteContacts; + } + 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_DirectorySiteSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpSettings" => "dfp_settings", + "instreamVideoPlacementAccepted" => "instream_video_placement_accepted", + ); + public $activeViewOptOut; + protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings'; + protected $dfpSettingsDataType = ''; + public $instreamVideoPlacementAccepted; + public $interstitialPlacementAccepted; + public $nielsenOcrOptOut; + public $verificationTagOptOut; + public $videoActiveViewOptOut; + + + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings) + { + $this->dfpSettings = $dfpSettings; + } + public function getDfpSettings() + { + return $this->dfpSettings; + } + public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted) + { + $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted; + } + public function getInstreamVideoPlacementAccepted() + { + return $this->instreamVideoPlacementAccepted; + } + public function setInterstitialPlacementAccepted($interstitialPlacementAccepted) + { + $this->interstitialPlacementAccepted = $interstitialPlacementAccepted; + } + public function getInterstitialPlacementAccepted() + { + return $this->interstitialPlacementAccepted; + } + public function setNielsenOcrOptOut($nielsenOcrOptOut) + { + $this->nielsenOcrOptOut = $nielsenOcrOptOut; + } + public function getNielsenOcrOptOut() + { + return $this->nielsenOcrOptOut; + } + public function setVerificationTagOptOut($verificationTagOptOut) + { + $this->verificationTagOptOut = $verificationTagOptOut; + } + public function getVerificationTagOptOut() + { + return $this->verificationTagOptOut; + } + public function setVideoActiveViewOptOut($videoActiveViewOptOut) + { + $this->videoActiveViewOptOut = $videoActiveViewOptOut; + } + public function getVideoActiveViewOptOut() + { + return $this->videoActiveViewOptOut; + } +} + +class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection +{ + protected $collection_key = 'directorySites'; + protected $internal_gapi_mappings = array( + ); + protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite'; + protected $directorySitesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySites($directorySites) + { + $this->directorySites = $directorySites; + } + public function getDirectorySites() + { + return $this->directorySites; + } + 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_EventTag extends Google_Collection +{ + protected $collection_key = 'siteIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $enabledByDefault; + public $id; + public $kind; + public $name; + public $siteFilterType; + public $siteIds; + public $sslCompliant; + public $status; + public $subaccountId; + public $type; + public $url; + public $urlEscapeLevels; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setEnabledByDefault($enabledByDefault) + { + $this->enabledByDefault = $enabledByDefault; + } + public function getEnabledByDefault() + { + return $this->enabledByDefault; + } + 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 setSiteFilterType($siteFilterType) + { + $this->siteFilterType = $siteFilterType; + } + public function getSiteFilterType() + { + return $this->siteFilterType; + } + public function setSiteIds($siteIds) + { + $this->siteIds = $siteIds; + } + public function getSiteIds() + { + return $this->siteIds; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + 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; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } + public function setUrlEscapeLevels($urlEscapeLevels) + { + $this->urlEscapeLevels = $urlEscapeLevels; + } + public function getUrlEscapeLevels() + { + return $this->urlEscapeLevels; + } +} + +class Google_Service_Dfareporting_EventTagOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $enabled; + public $id; + + + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} + +class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection +{ + protected $collection_key = 'eventTags'; + protected $internal_gapi_mappings = array( + ); + protected $eventTagsType = 'Google_Service_Dfareporting_EventTag'; + protected $eventTagsDataType = 'array'; + public $kind; + + + public function setEventTags($eventTags) + { + $this->eventTags = $eventTags; + } + public function getEventTags() + { + return $this->eventTags; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FileList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; + protected $itemsDataType = 'array'; + 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_Flight extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endDate; + public $rateOrCost; + public $startDate; + public $units; + + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRateOrCost($rateOrCost) + { + $this->rateOrCost = $rateOrCost; + } + public function getRateOrCost() + { + return $this->rateOrCost; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityTag; + public $kind; + + + public function setFloodlightActivityTag($floodlightActivityTag) + { + $this->floodlightActivityTag = $floodlightActivityTag; + } + public function getFloodlightActivityTag() + { + return $this->floodlightActivityTag; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivities'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity'; + protected $floodlightActivitiesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivities($floodlightActivities) + { + $this->floodlightActivities = $floodlightActivities; + } + public function getFloodlightActivities() + { + return $this->floodlightActivities; + } + 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_FloodlightActivity extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableTypes'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $cacheBustingType; + public $countingMethod; + protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $defaultTagsDataType = 'array'; + public $expectedUrl; + public $floodlightActivityGroupId; + public $floodlightActivityGroupName; + public $floodlightActivityGroupTagString; + public $floodlightActivityGroupType; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $hidden; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $imageTagEnabled; + public $kind; + public $name; + public $notes; + protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag'; + protected $publisherTagsDataType = 'array'; + public $secure; + public $sslCompliant; + public $sslRequired; + public $subaccountId; + public $tagFormat; + public $tagString; + public $userDefinedVariableTypes; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCacheBustingType($cacheBustingType) + { + $this->cacheBustingType = $cacheBustingType; + } + public function getCacheBustingType() + { + return $this->cacheBustingType; + } + public function setCountingMethod($countingMethod) + { + $this->countingMethod = $countingMethod; + } + public function getCountingMethod() + { + return $this->countingMethod; + } + public function setDefaultTags($defaultTags) + { + $this->defaultTags = $defaultTags; + } + public function getDefaultTags() + { + return $this->defaultTags; + } + public function setExpectedUrl($expectedUrl) + { + $this->expectedUrl = $expectedUrl; + } + public function getExpectedUrl() + { + return $this->expectedUrl; + } + public function setFloodlightActivityGroupId($floodlightActivityGroupId) + { + $this->floodlightActivityGroupId = $floodlightActivityGroupId; + } + public function getFloodlightActivityGroupId() + { + return $this->floodlightActivityGroupId; + } + public function setFloodlightActivityGroupName($floodlightActivityGroupName) + { + $this->floodlightActivityGroupName = $floodlightActivityGroupName; + } + public function getFloodlightActivityGroupName() + { + return $this->floodlightActivityGroupName; + } + public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString) + { + $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString; + } + public function getFloodlightActivityGroupTagString() + { + return $this->floodlightActivityGroupTagString; + } + public function setFloodlightActivityGroupType($floodlightActivityGroupType) + { + $this->floodlightActivityGroupType = $floodlightActivityGroupType; + } + public function getFloodlightActivityGroupType() + { + return $this->floodlightActivityGroupType; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setImageTagEnabled($imageTagEnabled) + { + $this->imageTagEnabled = $imageTagEnabled; + } + public function getImageTagEnabled() + { + return $this->imageTagEnabled; + } + 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 setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setPublisherTags($publisherTags) + { + $this->publisherTags = $publisherTags; + } + public function getPublisherTags() + { + return $this->publisherTags; + } + public function setSecure($secure) + { + $this->secure = $secure; + } + public function getSecure() + { + return $this->secure; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormat($tagFormat) + { + $this->tagFormat = $tagFormat; + } + public function getTagFormat() + { + return $this->tagFormat; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setUserDefinedVariableTypes($userDefinedVariableTypes) + { + $this->userDefinedVariableTypes = $userDefinedVariableTypes; + } + public function getUserDefinedVariableTypes() + { + return $this->userDefinedVariableTypes; + } +} + +class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + public $tag; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $subaccountId; + public $tagString; + public $type; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + 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 setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivityGroups'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup'; + protected $floodlightActivityGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivityGroups($floodlightActivityGroups) + { + $this->floodlightActivityGroups = $floodlightActivityGroups; + } + public function getFloodlightActivityGroups() + { + return $this->floodlightActivityGroups; + } + 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_FloodlightActivityPublisherDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThrough; + public $directorySiteId; + protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $dynamicTagDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $viewThrough; + + + public function setClickThrough($clickThrough) + { + $this->clickThrough = $clickThrough; + } + public function getClickThrough() + { + return $this->clickThrough; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag) + { + $this->dynamicTag = $dynamicTag; + } + public function getDynamicTag() + { + return $this->dynamicTag; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setViewThrough($viewThrough) + { + $this->viewThrough = $viewThrough; + } + public function getViewThrough() + { + return $this->viewThrough; + } +} + +class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableConfigurations'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $analyticsDataSharingEnabled; + public $exposureToConversionEnabled; + public $firstDayOfWeek; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $naturalSearchConversionAttributionOption; + protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; + protected $omnitureSettingsDataType = ''; + public $sslRequired; + public $standardVariableTypes; + public $subaccountId; + protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; + protected $tagSettingsDataType = ''; + protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; + protected $userDefinedVariableConfigurationsDataType = 'array'; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled) + { + $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled; + } + public function getAnalyticsDataSharingEnabled() + { + return $this->analyticsDataSharingEnabled; + } + public function setExposureToConversionEnabled($exposureToConversionEnabled) + { + $this->exposureToConversionEnabled = $exposureToConversionEnabled; + } + public function getExposureToConversionEnabled() + { + return $this->exposureToConversionEnabled; + } + public function setFirstDayOfWeek($firstDayOfWeek) + { + $this->firstDayOfWeek = $firstDayOfWeek; + } + public function getFirstDayOfWeek() + { + return $this->firstDayOfWeek; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption) + { + $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption; + } + public function getNaturalSearchConversionAttributionOption() + { + return $this->naturalSearchConversionAttributionOption; + } + public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings) + { + $this->omnitureSettings = $omnitureSettings; + } + public function getOmnitureSettings() + { + return $this->omnitureSettings; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStandardVariableTypes($standardVariableTypes) + { + $this->standardVariableTypes = $standardVariableTypes; + } + public function getStandardVariableTypes() + { + return $this->standardVariableTypes; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings) + { + $this->tagSettings = $tagSettings; + } + public function getTagSettings() + { + return $this->tagSettings; + } + public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) + { + $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; + } + public function getUserDefinedVariableConfigurations() + { + return $this->userDefinedVariableConfigurations; + } +} + +class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightConfigurations'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration'; + protected $floodlightConfigurationsDataType = 'array'; + public $kind; + + + public function setFloodlightConfigurations($floodlightConfigurations) + { + $this->floodlightConfigurations = $floodlightConfigurations; + } + public function getFloodlightConfigurations() + { + return $this->floodlightConfigurations; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + + + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } +} + +class Google_Service_Dfareporting_FrequencyCap extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $duration; + public $impressions; + + + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } +} + +class Google_Service_Dfareporting_FsCommand extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $positionOption; + public $top; + public $windowHeight; + public $windowWidth; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setPositionOption($positionOption) + { + $this->positionOption = $positionOption; + } + public function getPositionOption() + { + return $this->positionOption; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWindowHeight($windowHeight) + { + $this->windowHeight = $windowHeight; + } + public function getWindowHeight() + { + return $this->windowHeight; + } + public function setWindowWidth($windowWidth) + { + $this->windowWidth = $windowWidth; + } + public function getWindowWidth() + { + return $this->windowWidth; + } +} + +class Google_Service_Dfareporting_GeoTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $excludeCountries; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setExcludeCountries($excludeCountries) + { + $this->excludeCountries = $excludeCountries; + } + public function getExcludeCountries() + { + return $this->excludeCountries; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_Dfareporting_InventoryItem extends Google_Collection +{ + protected $collection_key = 'adSlots'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot'; + protected $adSlotsDataType = 'array'; + public $advertiserId; + public $contentCategoryId; + public $estimatedClickThroughRate; + public $estimatedConversionRate; + public $id; + public $inPlan; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $negotiationChannelId; + public $orderId; + public $placementStrategyId; + protected $pricingType = 'Google_Service_Dfareporting_Pricing'; + protected $pricingDataType = ''; + public $projectId; + public $rfpId; + public $siteId; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdSlots($adSlots) + { + $this->adSlots = $adSlots; + } + public function getAdSlots() + { + return $this->adSlots; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setEstimatedClickThroughRate($estimatedClickThroughRate) + { + $this->estimatedClickThroughRate = $estimatedClickThroughRate; + } + public function getEstimatedClickThroughRate() + { + return $this->estimatedClickThroughRate; + } + public function setEstimatedConversionRate($estimatedConversionRate) + { + $this->estimatedConversionRate = $estimatedConversionRate; + } + public function getEstimatedConversionRate() + { + return $this->estimatedConversionRate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInPlan($inPlan) + { + $this->inPlan = $inPlan; + } + public function getInPlan() + { + return $this->inPlan; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNegotiationChannelId($negotiationChannelId) + { + $this->negotiationChannelId = $negotiationChannelId; + } + public function getNegotiationChannelId() + { + return $this->negotiationChannelId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricing(Google_Service_Dfareporting_Pricing $pricing) + { + $this->pricing = $pricing; + } + public function getPricing() + { + return $this->pricing; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRfpId($rfpId) + { + $this->rfpId = $rfpId; + } + public function getRfpId() + { + return $this->rfpId; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection +{ + protected $collection_key = 'inventoryItems'; + protected $internal_gapi_mappings = array( + ); + protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem'; + protected $inventoryItemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setInventoryItems($inventoryItems) + { + $this->inventoryItems = $inventoryItems; + } + public function getInventoryItems() + { + return $this->inventoryItems; + } + 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_KeyValueTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LandingPage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $default; + public $id; + public $kind; + public $name; + public $url; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + 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 setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection +{ + protected $collection_key = 'landingPages'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage'; + protected $landingPagesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLandingPages($landingPages) + { + $this->landingPages = $landingPages; + } + public function getLandingPages() + { + return $this->landingPages; + } +} + +class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $time; + + + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection +{ + protected $collection_key = 'terms'; + protected $internal_gapi_mappings = array( + ); + protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm'; + protected $termsDataType = 'array'; + + + public function setTerms($terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } +} + +class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection +{ + protected $collection_key = 'listPopulationClauses'; + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityId; + public $floodlightActivityName; + protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause'; + protected $listPopulationClausesDataType = 'array'; + + + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setFloodlightActivityName($floodlightActivityName) + { + $this->floodlightActivityName = $floodlightActivityName; + } + public function getFloodlightActivityName() + { + return $this->floodlightActivityName; + } + public function setListPopulationClauses($listPopulationClauses) + { + $this->listPopulationClauses = $listPopulationClauses; + } + public function getListPopulationClauses() + { + return $this->listPopulationClauses; + } +} + +class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contains; + public $negation; + public $operator; + public $remarketingListId; + public $type; + public $value; + public $variableFriendlyName; + public $variableName; + + + public function setContains($contains) + { + $this->contains = $contains; + } + public function getContains() + { + return $this->contains; + } + public function setNegation($negation) + { + $this->negation = $negation; + } + public function getNegation() + { + return $this->negation; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } + public function setRemarketingListId($remarketingListId) + { + $this->remarketingListId = $remarketingListId; + } + public function getRemarketingListId() + { + return $this->remarketingListId; + } + 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 setVariableFriendlyName($variableFriendlyName) + { + $this->variableFriendlyName = $variableFriendlyName; + } + public function getVariableFriendlyName() + { + return $this->variableFriendlyName; + } + public function setVariableName($variableName) + { + $this->variableName = $variableName; + } + public function getVariableName() + { + return $this->variableName; + } +} + +class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickDuration; + public $postImpressionActivitiesDuration; + + + public function setClickDuration($clickDuration) + { + $this->clickDuration = $clickDuration; + } + public function getClickDuration() + { + return $this->clickDuration; + } + public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) + { + $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; + } + public function getPostImpressionActivitiesDuration() + { + return $this->postImpressionActivitiesDuration; + } +} + +class Google_Service_Dfareporting_Metric extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Dfareporting_Metro extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $dmaId; + public $kind; + public $metroCode; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDmaId($dmaId) + { + $this->dmaId = $dmaId; + } + public function getDmaId() + { + return $this->dmaId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection +{ + protected $collection_key = 'metros'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } +} + +class Google_Service_Dfareporting_MobileCarrier extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $id; + public $kind; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + 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_Dfareporting_MobileCarriersListResponse extends Google_Collection +{ + protected $collection_key = 'mobileCarriers'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } +} + +class Google_Service_Dfareporting_ObjectFilter extends Google_Collection +{ + protected $collection_key = 'objectIds'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $objectIds; + public $status; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setObjectIds($objectIds) + { + $this->objectIds = $objectIds; + } + public function getObjectIds() + { + return $this->objectIds; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Dfareporting_OffsetPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $top; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} + +class Google_Service_Dfareporting_OmnitureSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $omnitureCostDataEnabled; + public $omnitureIntegrationEnabled; + + + public function setOmnitureCostDataEnabled($omnitureCostDataEnabled) + { + $this->omnitureCostDataEnabled = $omnitureCostDataEnabled; + } + public function getOmnitureCostDataEnabled() + { + return $this->omnitureCostDataEnabled; + } + public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled) + { + $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled; + } + public function getOmnitureIntegrationEnabled() + { + return $this->omnitureIntegrationEnabled; + } +} + +class Google_Service_Dfareporting_OperatingSystem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dartId; + public $desktop; + public $kind; + public $mobile; + public $name; + + + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDesktop($desktop) + { + $this->desktop = $desktop; + } + public function getDesktop() + { + return $this->desktop; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + public function getMobile() + { + return $this->mobile; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemDataType = ''; + + + 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 setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem) + { + $this->operatingSystem = $operatingSystem; + } + public function getOperatingSystem() + { + return $this->operatingSystem; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystemVersions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystemVersions($operatingSystemVersions) + { + $this->operatingSystemVersions = $operatingSystemVersions; + } + public function getOperatingSystemVersions() + { + return $this->operatingSystemVersions; + } +} + +class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystems'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystems($operatingSystems) + { + $this->operatingSystems = $operatingSystems; + } + public function getOperatingSystems() + { + return $this->operatingSystems; + } +} + +class Google_Service_Dfareporting_OptimizationActivity extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityId; + protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightActivityIdDimensionValueDataType = ''; + public $weight; + + + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue) + { + $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue; + } + public function getFloodlightActivityIdDimensionValue() + { + return $this->floodlightActivityIdDimensionValue; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_Order extends Google_Collection +{ + protected $collection_key = 'siteNames'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $approverUserProfileIds; + public $buyerInvoiceId; + public $buyerOrganizationName; + public $comments; + protected $contactsType = 'Google_Service_Dfareporting_OrderContact'; + protected $contactsDataType = 'array'; + public $id; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $notes; + public $planningTermId; + public $projectId; + public $sellerOrderId; + public $sellerOrganizationName; + public $siteId; + public $siteNames; + public $subaccountId; + public $termsAndConditions; + + + 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 setApproverUserProfileIds($approverUserProfileIds) + { + $this->approverUserProfileIds = $approverUserProfileIds; + } + public function getApproverUserProfileIds() + { + return $this->approverUserProfileIds; + } + public function setBuyerInvoiceId($buyerInvoiceId) + { + $this->buyerInvoiceId = $buyerInvoiceId; + } + public function getBuyerInvoiceId() + { + return $this->buyerInvoiceId; + } + public function setBuyerOrganizationName($buyerOrganizationName) + { + $this->buyerOrganizationName = $buyerOrganizationName; + } + public function getBuyerOrganizationName() + { + return $this->buyerOrganizationName; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setContacts($contacts) + { + $this->contacts = $contacts; + } + public function getContacts() + { + return $this->contacts; + } + 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setPlanningTermId($planningTermId) + { + $this->planningTermId = $planningTermId; + } + public function getPlanningTermId() + { + return $this->planningTermId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSellerOrderId($sellerOrderId) + { + $this->sellerOrderId = $sellerOrderId; + } + public function getSellerOrderId() + { + return $this->sellerOrderId; + } + public function setSellerOrganizationName($sellerOrganizationName) + { + $this->sellerOrganizationName = $sellerOrganizationName; + } + public function getSellerOrganizationName() + { + return $this->sellerOrganizationName; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteNames($siteNames) + { + $this->siteNames = $siteNames; + } + public function getSiteNames() + { + return $this->siteNames; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTermsAndConditions($termsAndConditions) + { + $this->termsAndConditions = $termsAndConditions; + } + public function getTermsAndConditions() + { + return $this->termsAndConditions; + } +} + +class Google_Service_Dfareporting_OrderContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactInfo; + public $contactName; + public $contactTitle; + public $contactType; + public $signatureUserProfileId; + + + public function setContactInfo($contactInfo) + { + $this->contactInfo = $contactInfo; + } + public function getContactInfo() + { + return $this->contactInfo; + } + public function setContactName($contactName) + { + $this->contactName = $contactName; + } + public function getContactName() + { + return $this->contactName; + } + public function setContactTitle($contactTitle) + { + $this->contactTitle = $contactTitle; + } + public function getContactTitle() + { + return $this->contactTitle; + } + public function setContactType($contactType) + { + $this->contactType = $contactType; + } + public function getContactType() + { + return $this->contactType; + } + public function setSignatureUserProfileId($signatureUserProfileId) + { + $this->signatureUserProfileId = $signatureUserProfileId; + } + public function getSignatureUserProfileId() + { + return $this->signatureUserProfileId; + } +} + +class Google_Service_Dfareporting_OrderDocument extends Google_Collection +{ + protected $collection_key = 'approvedByUserProfileIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $amendedOrderDocumentId; + public $approvedByUserProfileIds; + public $cancelled; + protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createdInfoDataType = ''; + public $effectiveDate; + public $id; + public $kind; + public $orderId; + public $projectId; + public $signed; + public $subaccountId; + public $title; + public $type; + + + 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 setAmendedOrderDocumentId($amendedOrderDocumentId) + { + $this->amendedOrderDocumentId = $amendedOrderDocumentId; + } + public function getAmendedOrderDocumentId() + { + return $this->amendedOrderDocumentId; + } + public function setApprovedByUserProfileIds($approvedByUserProfileIds) + { + $this->approvedByUserProfileIds = $approvedByUserProfileIds; + } + public function getApprovedByUserProfileIds() + { + return $this->approvedByUserProfileIds; + } + public function setCancelled($cancelled) + { + $this->cancelled = $cancelled; + } + public function getCancelled() + { + return $this->cancelled; + } + public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo) + { + $this->createdInfo = $createdInfo; + } + public function getCreatedInfo() + { + return $this->createdInfo; + } + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + public function getEffectiveDate() + { + return $this->effectiveDate; + } + 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 setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSigned($signed) + { + $this->signed = $signed; + } + public function getSigned() + { + return $this->signed; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + 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_Dfareporting_OrderDocumentsListResponse extends Google_Collection +{ + protected $collection_key = 'orderDocuments'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument'; + protected $orderDocumentsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrderDocuments($orderDocuments) + { + $this->orderDocuments = $orderDocuments; + } + public function getOrderDocuments() + { + return $this->orderDocuments; + } +} + +class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $ordersType = 'Google_Service_Dfareporting_Order'; + protected $ordersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } +} + +class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'perInteractionDimensions'; + protected $internal_gapi_mappings = array( + ); + protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; + protected $customFloodlightVariablesDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $perInteractionDimensionsDataType = 'array'; + + + public function setConversionDimensions($conversionDimensions) + { + $this->conversionDimensions = $conversionDimensions; + } + public function getConversionDimensions() + { + return $this->conversionDimensions; + } + public function setCustomFloodlightVariables($customFloodlightVariables) + { + $this->customFloodlightVariables = $customFloodlightVariables; + } + public function getCustomFloodlightVariables() + { + return $this->customFloodlightVariables; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setPerInteractionDimensions($perInteractionDimensions) + { + $this->perInteractionDimensions = $perInteractionDimensions; + } + public function getPerInteractionDimensions() + { + return $this->perInteractionDimensions; + } +} + +class Google_Service_Dfareporting_Placement extends Google_Collection +{ + protected $collection_key = 'tagFormats'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $comment; + public $compatibility; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $paymentApproved; + public $paymentSource; + public $placementGroupId; + protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementGroupIdDimensionValueDataType = ''; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primary; + protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $publisherUpdateInfoDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslRequired; + public $status; + public $subaccountId; + public $tagFormats; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentApproved($paymentApproved) + { + $this->paymentApproved = $paymentApproved; + } + public function getPaymentApproved() + { + return $this->paymentApproved; + } + public function setPaymentSource($paymentSource) + { + $this->paymentSource = $paymentSource; + } + public function getPaymentSource() + { + return $this->paymentSource; + } + public function setPlacementGroupId($placementGroupId) + { + $this->placementGroupId = $placementGroupId; + } + public function getPlacementGroupId() + { + return $this->placementGroupId; + } + public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) + { + $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; + } + public function getPlacementGroupIdDimensionValue() + { + return $this->placementGroupIdDimensionValue; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) + { + $this->publisherUpdateInfo = $publisherUpdateInfo; + } + public function getPublisherUpdateInfo() + { + return $this->publisherUpdateInfo; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormats($tagFormats) + { + $this->tagFormats = $tagFormats; + } + public function getTagFormats() + { + return $this->tagFormats; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } +} + +class Google_Service_Dfareporting_PlacementAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $placementId; + protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementIdDimensionValueDataType = ''; + public $sslRequired; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) + { + $this->placementIdDimensionValue = $placementIdDimensionValue; + } + public function getPlacementIdDimensionValue() + { + return $this->placementIdDimensionValue; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } +} + +class Google_Service_Dfareporting_PlacementGroup extends Google_Collection +{ + protected $collection_key = 'childPlacementIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $childPlacementIds; + public $comment; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $placementGroupType; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primaryPlacementId; + protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $primaryPlacementIdDimensionValueDataType = ''; + protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; + protected $programmaticSettingDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $subaccountId; + + + 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setChildPlacementIds($childPlacementIds) + { + $this->childPlacementIds = $childPlacementIds; + } + public function getChildPlacementIds() + { + return $this->childPlacementIds; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementGroupType($placementGroupType) + { + $this->placementGroupType = $placementGroupType; + } + public function getPlacementGroupType() + { + return $this->placementGroupType; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimaryPlacementId($primaryPlacementId) + { + $this->primaryPlacementId = $primaryPlacementId; + } + public function getPrimaryPlacementId() + { + return $this->primaryPlacementId; + } + public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) + { + $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; + } + public function getPrimaryPlacementIdDimensionValue() + { + return $this->primaryPlacementIdDimensionValue; + } + public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) + { + $this->programmaticSetting = $programmaticSetting; + } + public function getProgrammaticSetting() + { + return $this->programmaticSetting; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'placementGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; + protected $placementGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementGroups($placementGroups) + { + $this->placementGroups = $placementGroups; + } + public function getPlacementGroups() + { + return $this->placementGroups; + } +} + +class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection +{ + protected $collection_key = 'placementStrategies'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; + protected $placementStrategiesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementStrategies($placementStrategies) + { + $this->placementStrategies = $placementStrategies; + } + public function getPlacementStrategies() + { + return $this->placementStrategies; + } +} + +class Google_Service_Dfareporting_PlacementStrategy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_PlacementTag extends Google_Collection +{ + protected $collection_key = 'tagDatas'; + protected $internal_gapi_mappings = array( + ); + public $placementId; + protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; + protected $tagDatasDataType = 'array'; + + + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setTagDatas($tagDatas) + { + $this->tagDatas = $tagDatas; + } + public function getTagDatas() + { + return $this->tagDatas; + } +} + +class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection +{ + protected $collection_key = 'placementTags'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; + protected $placementTagsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlacementTags($placementTags) + { + $this->placementTags = $placementTags; + } + public function getPlacementTags() + { + return $this->placementTags; + } +} + +class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection +{ + protected $collection_key = 'placements'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementsType = 'Google_Service_Dfareporting_Placement'; + protected $placementsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacements($placements) + { + $this->placements = $placements; + } + public function getPlacements() + { + return $this->placements; + } +} + +class Google_Service_Dfareporting_PlatformType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_PlatformTypesListResponse extends Google_Collection +{ + protected $collection_key = 'platformTypes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlatformTypes($platformTypes) + { + $this->platformTypes = $platformTypes; + } + public function getPlatformTypes() + { + return $this->platformTypes; + } +} + +class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dimensionType = 'Google_Service_Dfareporting_Size'; + protected $dimensionDataType = ''; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $positionType; + public $showAddressBar; + public $showMenuBar; + public $showScrollBar; + public $showStatusBar; + public $showToolBar; + public $title; + + + public function setDimension(Google_Service_Dfareporting_Size $dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setPositionType($positionType) + { + $this->positionType = $positionType; + } + public function getPositionType() + { + return $this->positionType; + } + public function setShowAddressBar($showAddressBar) + { + $this->showAddressBar = $showAddressBar; + } + public function getShowAddressBar() + { + return $this->showAddressBar; + } + public function setShowMenuBar($showMenuBar) + { + $this->showMenuBar = $showMenuBar; + } + public function getShowMenuBar() + { + return $this->showMenuBar; + } + public function setShowScrollBar($showScrollBar) + { + $this->showScrollBar = $showScrollBar; + } + public function getShowScrollBar() + { + return $this->showScrollBar; + } + public function setShowStatusBar($showStatusBar) + { + $this->showStatusBar = $showStatusBar; + } + public function getShowStatusBar() + { + return $this->showStatusBar; + } + public function setShowToolBar($showToolBar) + { + $this->showToolBar = $showToolBar; + } + public function getShowToolBar() + { + return $this->showToolBar; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Dfareporting_PostalCode extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $countryCode; + public $countryDartId; + public $id; + public $kind; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + 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_Dfareporting_PostalCodesListResponse extends Google_Collection +{ + protected $collection_key = 'postalCodes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } +} + +class Google_Service_Dfareporting_Pricing extends Google_Collection +{ + protected $collection_key = 'flights'; + protected $internal_gapi_mappings = array( + ); + public $capCostType; + public $endDate; + protected $flightsType = 'Google_Service_Dfareporting_Flight'; + protected $flightsDataType = 'array'; + public $groupType; + public $pricingType; + public $startDate; + + + public function setCapCostType($capCostType) + { + $this->capCostType = $capCostType; + } + public function getCapCostType() + { + return $this->capCostType; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlights($flights) + { + $this->flights = $flights; + } + public function getFlights() + { + return $this->flights; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } +} + +class Google_Service_Dfareporting_PricingSchedule extends Google_Collection +{ + protected $collection_key = 'pricingPeriods'; + protected $internal_gapi_mappings = array( + ); + public $capCostOption; + public $disregardOverdelivery; + public $endDate; + public $flighted; + public $floodlightActivityId; + protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; + protected $pricingPeriodsDataType = 'array'; + public $pricingType; + public $startDate; + public $testingStartDate; + + + public function setCapCostOption($capCostOption) + { + $this->capCostOption = $capCostOption; + } + public function getCapCostOption() + { + return $this->capCostOption; + } + public function setDisregardOverdelivery($disregardOverdelivery) + { + $this->disregardOverdelivery = $disregardOverdelivery; + } + public function getDisregardOverdelivery() + { + return $this->disregardOverdelivery; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlighted($flighted) + { + $this->flighted = $flighted; + } + public function getFlighted() + { + return $this->flighted; + } + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setPricingPeriods($pricingPeriods) + { + $this->pricingPeriods = $pricingPeriods; + } + public function getPricingPeriods() + { + return $this->pricingPeriods; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setTestingStartDate($testingStartDate) + { + $this->testingStartDate = $testingStartDate; + } + public function getTestingStartDate() + { + return $this->testingStartDate; + } +} + +class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endDate; + public $pricingComment; + public $rateOrCostNanos; + public $startDate; + public $units; + + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setPricingComment($pricingComment) + { + $this->pricingComment = $pricingComment; + } + public function getPricingComment() + { + return $this->pricingComment; + } + public function setRateOrCostNanos($rateOrCostNanos) + { + $this->rateOrCostNanos = $rateOrCostNanos; + } + public function getRateOrCostNanos() + { + return $this->rateOrCostNanos; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $adxDealIds; + public $insertionOrderId; + public $insertionOrderIdStatus; + public $mediaCostNanos; + public $programmatic; + public $traffickerEmails; + + + public function setAdxDealIds($adxDealIds) + { + $this->adxDealIds = $adxDealIds; + } + public function getAdxDealIds() + { + return $this->adxDealIds; + } + public function setInsertionOrderId($insertionOrderId) + { + $this->insertionOrderId = $insertionOrderId; + } + public function getInsertionOrderId() + { + return $this->insertionOrderId; + } + public function setInsertionOrderIdStatus($insertionOrderIdStatus) + { + $this->insertionOrderIdStatus = $insertionOrderIdStatus; + } + public function getInsertionOrderIdStatus() + { + return $this->insertionOrderIdStatus; + } + public function setMediaCostNanos($mediaCostNanos) + { + $this->mediaCostNanos = $mediaCostNanos; + } + public function getMediaCostNanos() + { + return $this->mediaCostNanos; + } + public function setProgrammatic($programmatic) + { + $this->programmatic = $programmatic; + } + public function getProgrammatic() + { + return $this->programmatic; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_Project extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $audienceAgeGroup; + public $audienceGender; + public $budget; + public $clientBillingCode; + public $clientName; + public $endDate; + public $id; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $overview; + public $startDate; + public $subaccountId; + public $targetClicks; + public $targetConversions; + public $targetCpaNanos; + public $targetCpcNanos; + public $targetCpmNanos; + public $targetImpressions; + + + 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 setAudienceAgeGroup($audienceAgeGroup) + { + $this->audienceAgeGroup = $audienceAgeGroup; + } + public function getAudienceAgeGroup() + { + return $this->audienceAgeGroup; + } + public function setAudienceGender($audienceGender) + { + $this->audienceGender = $audienceGender; + } + public function getAudienceGender() + { + return $this->audienceGender; + } + public function setBudget($budget) + { + $this->budget = $budget; + } + public function getBudget() + { + return $this->budget; + } + public function setClientBillingCode($clientBillingCode) + { + $this->clientBillingCode = $clientBillingCode; + } + public function getClientBillingCode() + { + return $this->clientBillingCode; + } + public function setClientName($clientName) + { + $this->clientName = $clientName; + } + public function getClientName() + { + return $this->clientName; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverview($overview) + { + $this->overview = $overview; + } + public function getOverview() + { + return $this->overview; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTargetClicks($targetClicks) + { + $this->targetClicks = $targetClicks; + } + public function getTargetClicks() + { + return $this->targetClicks; + } + public function setTargetConversions($targetConversions) + { + $this->targetConversions = $targetConversions; + } + public function getTargetConversions() + { + return $this->targetConversions; + } + public function setTargetCpaNanos($targetCpaNanos) + { + $this->targetCpaNanos = $targetCpaNanos; + } + public function getTargetCpaNanos() + { + return $this->targetCpaNanos; + } + public function setTargetCpcNanos($targetCpcNanos) + { + $this->targetCpcNanos = $targetCpcNanos; + } + public function getTargetCpcNanos() + { + return $this->targetCpcNanos; + } + public function setTargetCpmNanos($targetCpmNanos) + { + $this->targetCpmNanos = $targetCpmNanos; + } + public function getTargetCpmNanos() + { + return $this->targetCpmNanos; + } + public function setTargetImpressions($targetImpressions) + { + $this->targetImpressions = $targetImpressions; + } + public function getTargetImpressions() + { + return $this->targetImpressions; + } +} + +class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection +{ + protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $projectsType = 'Google_Service_Dfareporting_Project'; + protected $projectsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setProjects($projects) + { + $this->projects = $projects; + } + public function getProjects() + { + return $this->projects; + } +} + +class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'reachByFrequencyMetrics'; + protected $internal_gapi_mappings = array( + ); + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; + protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $reachByFrequencyMetricsDataType = 'array'; + + + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setPivotedActivityMetrics($pivotedActivityMetrics) + { + $this->pivotedActivityMetrics = $pivotedActivityMetrics; + } + public function getPivotedActivityMetrics() + { + return $this->pivotedActivityMetrics; + } + public function setReachByFrequencyMetrics($reachByFrequencyMetrics) + { + $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; + } + public function getReachByFrequencyMetrics() + { + return $this->reachByFrequencyMetrics; + } +} + +class Google_Service_Dfareporting_Recipient extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Region extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $name; + public $regionCode; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + 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 setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } +} + +class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_Dfareporting_RemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule'; + protected $listPopulationRuleDataType = ''; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + 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 setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + 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 setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + public function getLifeSpan() + { + return $this->lifeSpan; + } + public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule) + { + $this->listPopulationRule = $listPopulationRule; + } + public function getListPopulationRule() + { + return $this->listPopulationRule; + } + public function setListSize($listSize) + { + $this->listSize = $listSize; + } + public function getListSize() + { + return $this->listSize; + } + public function setListSource($listSource) + { + $this->listSource = $listSource; + } + public function getListSource() + { + return $this->listSource; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection +{ + protected $collection_key = 'sharedAdvertiserIds'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $remarketingListId; + public $sharedAccountIds; + public $sharedAdvertiserIds; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRemarketingListId($remarketingListId) + { + $this->remarketingListId = $remarketingListId; + } + public function getRemarketingListId() + { + return $this->remarketingListId; + } + public function setSharedAccountIds($sharedAccountIds) + { + $this->sharedAccountIds = $sharedAccountIds; + } + public function getSharedAccountIds() + { + return $this->sharedAccountIds; + } + public function setSharedAdvertiserIds($sharedAdvertiserIds) + { + $this->sharedAdvertiserIds = $sharedAdvertiserIds; + } + public function getSharedAdvertiserIds() + { + return $this->sharedAdvertiserIds; + } +} + +class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection +{ + protected $collection_key = 'remarketingLists'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList'; + protected $remarketingListsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setRemarketingLists($remarketingLists) + { + $this->remarketingLists = $remarketingLists; + } + public function getRemarketingLists() + { + return $this->remarketingLists; + } +} + +class Google_Service_Dfareporting_Report extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; + protected $criteriaDataType = ''; + protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; + protected $crossDimensionReachCriteriaDataType = ''; + protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; + protected $deliveryDataType = ''; + public $etag; + public $fileName; + protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; + protected $floodlightCriteriaDataType = ''; + public $format; + public $id; + public $kind; + public $lastModifiedTime; + public $name; + public $ownerProfileId; + protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; + protected $pathToConversionCriteriaDataType = ''; + protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; + protected $reachCriteriaDataType = ''; + protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; + protected $scheduleDataType = ''; + public $subAccountId; + public $type; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + 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_ReportCompatibleFields extends Google_Collection +{ + protected $collection_key = 'pivotedActivityMetrics'; + protected $internal_gapi_mappings = array( + ); + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; + + + public function setDimensionFilters($dimensionFilters) + { + $this->dimensionFilters = $dimensionFilters; + } + public function getDimensionFilters() + { + return $this->dimensionFilters; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setPivotedActivityMetrics($pivotedActivityMetrics) + { + $this->pivotedActivityMetrics = $pivotedActivityMetrics; + } + public function getPivotedActivityMetrics() + { + return $this->pivotedActivityMetrics; + } +} + +class Google_Service_Dfareporting_ReportCriteria extends Google_Collection +{ + protected $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $metricNames; + + + public function setActivities(Google_Service_Dfareporting_Activities $activities) + { + $this->activities = $activities; + } + public function 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 $collection_key = 'overlapMetricNames'; + protected $internal_gapi_mappings = array( + ); + protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; + protected $breakdownDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $dimension; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + public $metricNames; + public $overlapMetricNames; + public $pivoted; + + + public function setBreakdown($breakdown) + { + $this->breakdown = $breakdown; + } + public function 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 +{ + protected $collection_key = 'recipients'; + protected $internal_gapi_mappings = array( + ); + public $emailOwner; + public $emailOwnerDeliveryType; + public $message; + protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; + protected $recipientsDataType = 'array'; + + + 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 $collection_key = 'metricNames'; + protected $internal_gapi_mappings = array( + ); + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; + + + public function setCustomRichMediaEvents($customRichMediaEvents) + { + $this->customRichMediaEvents = $customRichMediaEvents; + } + public function 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 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_Report'; + protected $itemsDataType = 'array'; + 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 $collection_key = 'perInteractionDimensions'; + protected $internal_gapi_mappings = array( + ); + protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $activityFiltersDataType = 'array'; + protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; + protected $customFloodlightVariablesDataType = 'array'; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $perInteractionDimensionsDataType = 'array'; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; + + + public function setActivityFilters($activityFilters) + { + $this->activityFilters = $activityFilters; + } + public function 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 setCustomRichMediaEvents($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 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'reachByFrequencyMetricNames'; + protected $internal_gapi_mappings = array( + ); + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $enableAllDimensionCombinations; + 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 setEnableAllDimensionCombinations($enableAllDimensionCombinations) + { + $this->enableAllDimensionCombinations = $enableAllDimensionCombinations; + } + public function getEnableAllDimensionCombinations() + { + return $this->enableAllDimensionCombinations; + } + 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 +{ + protected $collection_key = 'repeatsOnWeekDays'; + protected $internal_gapi_mappings = array( + ); + 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_ReportsConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $exposureToConversionEnabled; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $reportGenerationTimeZoneId; + + + public function setExposureToConversionEnabled($exposureToConversionEnabled) + { + $this->exposureToConversionEnabled = $exposureToConversionEnabled; + } + public function getExposureToConversionEnabled() + { + return $this->exposureToConversionEnabled; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId) + { + $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId; + } + public function getReportGenerationTimeZoneId() + { + return $this->reportGenerationTimeZoneId; + } +} + +class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customExitUrl; + public $exitId; + public $useCustomExitUrl; + + + public function setCustomExitUrl($customExitUrl) + { + $this->customExitUrl = $customExitUrl; + } + public function getCustomExitUrl() + { + return $this->customExitUrl; + } + public function setExitId($exitId) + { + $this->exitId = $exitId; + } + public function getExitId() + { + return $this->exitId; + } + public function setUseCustomExitUrl($useCustomExitUrl) + { + $this->useCustomExitUrl = $useCustomExitUrl; + } + public function getUseCustomExitUrl() + { + return $this->useCustomExitUrl; + } +} + +class Google_Service_Dfareporting_Site extends Google_Collection +{ + protected $collection_key = 'siteContacts'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $approved; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + public $name; + protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact'; + protected $siteContactsDataType = 'array'; + protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; + protected $siteSettingsDataType = ''; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setApproved($approved) + { + $this->approved = $approved; + } + public function getApproved() + { + return $this->approved; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + 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 setSiteContacts($siteContacts) + { + $this->siteContacts = $siteContacts; + } + public function getSiteContacts() + { + return $this->siteContacts; + } + public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings) + { + $this->siteSettings = $siteSettings; + } + public function getSiteSettings() + { + return $this->siteSettings; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_SiteContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + public $contactType; + public $email; + public $firstName; + public $id; + public $lastName; + public $phone; + public $title; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setContactType($contactType) + { + $this->contactType = $contactType; + } + public function getContactType() + { + return $this->contactType; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + public function getFirstName() + { + return $this->firstName; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; + } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Dfareporting_SiteSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activeViewOptOut; + protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; + protected $creativeSettingsDataType = ''; + public $disableBrandSafeAds; + public $disableNewCookie; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; + + + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) + { + $this->creativeSettings = $creativeSettings; + } + public function getCreativeSettings() + { + return $this->creativeSettings; + } + public function setDisableBrandSafeAds($disableBrandSafeAds) + { + $this->disableBrandSafeAds = $disableBrandSafeAds; + } + public function getDisableBrandSafeAds() + { + return $this->disableBrandSafeAds; + } + public function setDisableNewCookie($disableNewCookie) + { + $this->disableNewCookie = $disableNewCookie; + } + public function getDisableNewCookie() + { + return $this->disableNewCookie; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } +} + +class Google_Service_Dfareporting_SitesListResponse extends Google_Collection +{ + protected $collection_key = 'sites'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $sitesType = 'Google_Service_Dfareporting_Site'; + protected $sitesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSites($sites) + { + $this->sites = $sites; + } + public function getSites() + { + return $this->sites; + } +} + +class Google_Service_Dfareporting_Size extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $iab; + public $id; + public $kind; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setIab($iab) + { + $this->iab = $iab; + } + public function getIab() + { + return $this->iab; + } + 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 setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Dfareporting_SizesListResponse extends Google_Collection +{ + protected $collection_key = 'sizes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sizesType = 'Google_Service_Dfareporting_Size'; + protected $sizesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSizes($sizes) + { + $this->sizes = $sizes; + } + public function getSizes() + { + return $this->sizes; + } +} + +class Google_Service_Dfareporting_SortedDimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Subaccount extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $availablePermissionIds; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAvailablePermissionIds($availablePermissionIds) + { + $this->availablePermissionIds = $availablePermissionIds; + } + public function getAvailablePermissionIds() + { + return $this->availablePermissionIds; + } + 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_Dfareporting_SubaccountsListResponse extends Google_Collection +{ + protected $collection_key = 'subaccounts'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount'; + protected $subaccountsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSubaccounts($subaccounts) + { + $this->subaccounts = $subaccounts; + } + public function getSubaccounts() + { + return $this->subaccounts; + } +} + +class Google_Service_Dfareporting_TagData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adId; + public $clickTag; + public $creativeId; + public $format; + public $impressionTag; + + + public function setAdId($adId) + { + $this->adId = $adId; + } + public function getAdId() + { + return $this->adId; + } + public function setClickTag($clickTag) + { + $this->clickTag = $clickTag; + } + public function getClickTag() + { + return $this->clickTag; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setImpressionTag($impressionTag) + { + $this->impressionTag = $impressionTag; + } + public function getImpressionTag() + { + return $this->impressionTag; + } +} + +class Google_Service_Dfareporting_TagSetting extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $additionalKeyValues; + public $includeClickThroughUrls; + public $includeClickTracking; + public $keywordOption; + + + public function setAdditionalKeyValues($additionalKeyValues) + { + $this->additionalKeyValues = $additionalKeyValues; + } + public function getAdditionalKeyValues() + { + return $this->additionalKeyValues; + } + public function setIncludeClickThroughUrls($includeClickThroughUrls) + { + $this->includeClickThroughUrls = $includeClickThroughUrls; + } + public function getIncludeClickThroughUrls() + { + return $this->includeClickThroughUrls; + } + public function setIncludeClickTracking($includeClickTracking) + { + $this->includeClickTracking = $includeClickTracking; + } + public function getIncludeClickTracking() + { + return $this->includeClickTracking; + } + public function setKeywordOption($keywordOption) + { + $this->keywordOption = $keywordOption; + } + public function getKeywordOption() + { + return $this->keywordOption; + } +} + +class Google_Service_Dfareporting_TagSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dynamicTagEnabled; + public $imageTagEnabled; + + + public function setDynamicTagEnabled($dynamicTagEnabled) + { + $this->dynamicTagEnabled = $dynamicTagEnabled; + } + public function getDynamicTagEnabled() + { + return $this->dynamicTagEnabled; + } + public function setImageTagEnabled($imageTagEnabled) + { + $this->imageTagEnabled = $imageTagEnabled; + } + public function getImageTagEnabled() + { + return $this->imageTagEnabled; + } +} + +class Google_Service_Dfareporting_TargetWindow extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customHtml; + public $targetWindowOption; + + + public function setCustomHtml($customHtml) + { + $this->customHtml = $customHtml; + } + public function getCustomHtml() + { + return $this->customHtml; + } + public function setTargetWindowOption($targetWindowOption) + { + $this->targetWindowOption = $targetWindowOption; + } + public function getTargetWindowOption() + { + return $this->targetWindowOption; + } +} + +class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + 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 setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + 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 setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + public function getLifeSpan() + { + return $this->lifeSpan; + } + public function setListSize($listSize) + { + $this->listSize = $listSize; + } + public function getListSize() + { + return $this->listSize; + } + public function setListSource($listSource) + { + $this->listSource = $listSource; + } + public function getListSource() + { + return $this->listSource; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection +{ + protected $collection_key = 'targetableRemarketingLists'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList'; + protected $targetableRemarketingListsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTargetableRemarketingLists($targetableRemarketingLists) + { + $this->targetableRemarketingLists = $targetableRemarketingLists; + } + public function getTargetableRemarketingLists() + { + return $this->targetableRemarketingLists; + } +} + +class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection +{ + protected $collection_key = 'platformTypes'; + protected $internal_gapi_mappings = array( + ); + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; + + + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() + { + return $this->browsers; + } + public function setConnectionTypes($connectionTypes) + { + $this->connectionTypes = $connectionTypes; + } + public function getConnectionTypes() + { + return $this->connectionTypes; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } + public function setOperatingSystemVersions($operatingSystemVersions) + { + $this->operatingSystemVersions = $operatingSystemVersions; + } + public function getOperatingSystemVersions() + { + return $this->operatingSystemVersions; + } + public function setOperatingSystems($operatingSystems) + { + $this->operatingSystems = $operatingSystems; + } + public function getOperatingSystems() + { + return $this->operatingSystems; + } + public function setPlatformTypes($platformTypes) + { + $this->platformTypes = $platformTypes; + } + public function getPlatformTypes() + { + return $this->platformTypes; + } +} + +class Google_Service_Dfareporting_ThirdPartyTrackingUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $thirdPartyUrlType; + public $url; + + + public function setThirdPartyUrlType($thirdPartyUrlType) + { + $this->thirdPartyUrlType = $thirdPartyUrlType; + } + public function getThirdPartyUrlType() + { + return $this->thirdPartyUrlType; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataType; + public $reportName; + public $variableType; + + + public function setDataType($dataType) + { + $this->dataType = $dataType; + } + public function getDataType() + { + return $this->dataType; + } + public function setReportName($reportName) + { + $this->reportName = $reportName; + } + public function getReportName() + { + return $this->reportName; + } + public function setVariableType($variableType) + { + $this->variableType = $variableType; + } + public function getVariableType() + { + return $this->variableType; + } +} + +class Google_Service_Dfareporting_UserProfile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_UserRole extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $defaultUserRole; + public $id; + public $kind; + public $name; + public $parentUserRoleId; + protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $permissionsDataType = 'array'; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setDefaultUserRole($defaultUserRole) + { + $this->defaultUserRole = $defaultUserRole; + } + public function getDefaultUserRole() + { + return $this->defaultUserRole; + } + 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 setParentUserRoleId($parentUserRoleId) + { + $this->parentUserRoleId = $parentUserRoleId; + } + public function getParentUserRoleId() + { + return $this->parentUserRoleId; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_UserRolePermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $availability; + public $id; + public $kind; + public $name; + public $permissionGroupId; + + + public function setAvailability($availability) + { + $this->availability = $availability; + } + public function getAvailability() + { + return $this->availability; + } + 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 setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissionGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup'; + protected $userRolePermissionGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissionGroups($userRolePermissionGroups) + { + $this->userRolePermissionGroups = $userRolePermissionGroups; + } + public function getUserRolePermissionGroups() + { + return $this->userRolePermissionGroups; + } +} + +class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $userRolePermissionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissions($userRolePermissions) + { + $this->userRolePermissions = $userRolePermissions; + } + public function getUserRolePermissions() + { + return $this->userRolePermissions; + } +} + +class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection +{ + protected $collection_key = 'userRoles'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $userRolesType = 'Google_Service_Dfareporting_UserRole'; + protected $userRolesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUserRoles($userRoles) + { + $this->userRoles = $userRoles; + } + public function getUserRoles() + { + return $this->userRoles; + } +} From 68a1bde14e9597f14a8effc93783c4885d528a14 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:23:07 -0700 Subject: [PATCH 0864/1274] Revert "Removed Computeaccounts.php" This reverts commit 48039724a2d3c9b173767506c4c9a3237f4c173c. --- src/Google/Service/Computeaccounts.php | 1689 ++++++++++++++++++++++++ 1 file changed, 1689 insertions(+) create mode 100644 src/Google/Service/Computeaccounts.php diff --git a/src/Google/Service/Computeaccounts.php b/src/Google/Service/Computeaccounts.php new file mode 100644 index 000000000..35eacaf47 --- /dev/null +++ b/src/Google/Service/Computeaccounts.php @@ -0,0 +1,1689 @@ + + * API for the Google Compute Accounts service.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Computeaccounts extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** New Service: https://www.googleapis.com/auth/computeaccounts. */ + const COMPUTEACCOUNTS = + "https://www.googleapis.com/auth/computeaccounts"; + /** New Service: https://www.googleapis.com/auth/computeaccounts.readonly. */ + const COMPUTEACCOUNTS_READONLY = + "https://www.googleapis.com/auth/computeaccounts.readonly"; + + public $globalAccountsOperations; + public $groups; + public $linux; + public $users; + + + /** + * Constructs the internal representation of the Computeaccounts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'computeaccounts/alpha/projects/'; + $this->version = 'alpha'; + $this->serviceName = 'computeaccounts'; + + $this->globalAccountsOperations = new Google_Service_Computeaccounts_GlobalAccountsOperations_Resource( + $this, + $this->serviceName, + 'globalAccountsOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_Computeaccounts_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'addMember' => array( + 'path' => '{project}/global/groups/{groupName}/addMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removeMember' => array( + 'path' => '{project}/global/groups/{groupName}/removeMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->linux = new Google_Service_Computeaccounts_Linux_Resource( + $this, + $this->serviceName, + 'linux', + array( + 'methods' => array( + 'getAuthorizedKeysView' => array( + 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getLinuxAccountViews' => array( + 'path' => '{project}/zones/{zone}/linuxAccountViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'user' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_Computeaccounts_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'addPublicKey' => array( + 'path' => '{project}/global/users/{user}/addPublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removePublicKey' => array( + 'path' => '{project}/global/users/{user}/removePublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "globalAccountsOperations" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; + * + */ +class Google_Service_Computeaccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified operation resource. (globalAccountsOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalAccountsOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalAccountsOperations.listGlobalAccountsOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_OperationList + */ + public function listGlobalAccountsOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_OperationList"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $groups = $computeaccountsService->groups; + * + */ +class Google_Service_Computeaccounts_Groups_Resource extends Google_Service_Resource +{ + + /** + * Adds users to the specified group. (groups.addMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsAddMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function addMember($project, $groupName, Google_Service_Computeaccounts_GroupsAddMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addMember', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Deletes the specified group resource. (groups.delete) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function delete($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Returns the specified group resource. (groups.get) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Group + */ + public function get($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_Group"); + } + + /** + * Creates a group resource in the specified project using the data included in + * the request. (groups.insert) + * + * @param string $project Project ID for this request. + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function insert($project, Google_Service_Computeaccounts_Group $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of groups contained within the specified project. + * (groups.listGroups) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_GroupList + */ + public function listGroups($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_GroupList"); + } + + /** + * Removes users from the specified group. (groups.removeMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsRemoveMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function removeMember($project, $groupName, Google_Service_Computeaccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeMember', array($params), "Google_Service_Computeaccounts_Operation"); + } +} + +/** + * The "linux" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $linux = $computeaccountsService->linux; + * + */ +class Google_Service_Computeaccounts_Linux_Resource extends Google_Service_Resource +{ + + /** + * Returns the AuthorizedKeysView of the specified user. + * (linux.getAuthorizedKeysView) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $user Username of the AuthorizedKeysView to return. + * @param string $instance The fully-qualified URL of the instance requesting + * the view. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse + */ + public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getAuthorizedKeysView', array($params), "Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse"); + } + + /** + * Retrieves the Linux views for an instance contained within the specified + * project. (linux.getLinuxAccountViews) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $instance The fully-qualified URL of the instance requesting + * the views. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string user If provided, the user whose login is triggering an + * immediate refresh of the views. + * @return Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse + */ + public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getLinuxAccountViews', array($params), "Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $computeaccountsService = new Google_Service_Computeaccounts(...); + * $users = $computeaccountsService->users; + * + */ +class Google_Service_Computeaccounts_Users_Resource extends Google_Service_Resource +{ + + /** + * Adds a public key to the specified user using the data included in the + * request. (users.addPublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param Google_PublicKey $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function addPublicKey($project, $user, Google_Service_Computeaccounts_PublicKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addPublicKey', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Deletes the specified user resource. (users.delete) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function delete($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Returns the specified user resource. (users.get) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_User + */ + public function get($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Computeaccounts_User"); + } + + /** + * Creates a user resource in the specified project using the data included in + * the request. (users.insert) + * + * @param string $project Project ID for this request. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function insert($project, Google_Service_Computeaccounts_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); + } + + /** + * Retrieves the list of users contained within the specified project. + * (users.listUsers) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Computeaccounts_UserList + */ + public function listUsers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Computeaccounts_UserList"); + } + + /** + * Removes the specified public key from the user. (users.removePublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param string $fingerprint The fingerprint of the public key to delete. + * Public keys are identified by their fingerprint, which is defined by RFC4716 + * to be the MD5 digest of the public key. + * @param array $optParams Optional parameters. + * @return Google_Service_Computeaccounts_Operation + */ + public function removePublicKey($project, $user, $fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); + $params = array_merge($params, $optParams); + return $this->call('removePublicKey', array($params), "Google_Service_Computeaccounts_Operation"); + } +} + + + + +class Google_Service_Computeaccounts_AuthorizedKeysView extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $keys; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_Computeaccounts_Group extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $members; + public $name; + public $selfLink; + + + 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 setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + 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_Computeaccounts_GroupList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_Group'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_GroupsAddMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Computeaccounts_GroupsRemoveMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Computeaccounts_LinuxAccountViews extends Google_Collection +{ + protected $collection_key = 'userViews'; + protected $internal_gapi_mappings = array( + ); + protected $groupViewsType = 'Google_Service_Computeaccounts_LinuxGroupView'; + protected $groupViewsDataType = 'array'; + public $kind; + protected $userViewsType = 'Google_Service_Computeaccounts_LinuxUserView'; + protected $userViewsDataType = 'array'; + + + public function setGroupViews($groupViews) + { + $this->groupViews = $groupViews; + } + public function getGroupViews() + { + return $this->groupViews; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserViews($userViews) + { + $this->userViews = $userViews; + } + public function getUserViews() + { + return $this->userViews; + } +} + +class Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Computeaccounts_AuthorizedKeysView'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Computeaccounts_AuthorizedKeysView $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Computeaccounts_LinuxAccountViews'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Computeaccounts_LinuxAccountViews $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Computeaccounts_LinuxGroupView extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $gid; + public $groupName; + public $members; + + + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setGroupName($groupName) + { + $this->groupName = $groupName; + } + public function getGroupName() + { + return $this->groupName; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } +} + +class Google_Service_Computeaccounts_LinuxUserView extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gecos; + public $gid; + public $homeDirectory; + public $shell; + public $uid; + public $username; + + + public function setGecos($gecos) + { + $this->gecos = $gecos; + } + public function getGecos() + { + return $this->gecos; + } + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setHomeDirectory($homeDirectory) + { + $this->homeDirectory = $homeDirectory; + } + public function getHomeDirectory() + { + return $this->homeDirectory; + } + public function setShell($shell) + { + $this->shell = $shell; + } + public function getShell() + { + return $this->shell; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_Computeaccounts_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Computeaccounts_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Computeaccounts_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_Computeaccounts_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Computeaccounts_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Computeaccounts_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Computeaccounts_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Computeaccounts_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Computeaccounts_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Computeaccounts_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Computeaccounts_PublicKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $expirationTimestamp; + public $fingerprint; + public $key; + + + 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 setExpirationTimestamp($expirationTimestamp) + { + $this->expirationTimestamp = $expirationTimestamp; + } + public function getExpirationTimestamp() + { + return $this->expirationTimestamp; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } +} + +class Google_Service_Computeaccounts_User extends Google_Collection +{ + protected $collection_key = 'publicKeys'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $groups; + public $id; + public $kind; + public $name; + public $owner; + protected $publicKeysType = 'Google_Service_Computeaccounts_PublicKey'; + protected $publicKeysDataType = 'array'; + public $selfLink; + + + 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 setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } + 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 setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + public function getPublicKeys() + { + return $this->publicKeys; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Computeaccounts_UserList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Computeaccounts_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} From 4b3a2e22e3075561a41da1284d77d789167473c2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:23:36 -0700 Subject: [PATCH 0865/1274] Revert "Removed Compute.php" This reverts commit e905f7fea81b382bc47eeebd29dc533e22515a01. --- src/Google/Service/Compute.php | 13430 +++++++++++++++++++++++++++++++ 1 file changed, 13430 insertions(+) create mode 100644 src/Google/Service/Compute.php diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php new file mode 100644 index 000000000..6cc848b16 --- /dev/null +++ b/src/Google/Service/Compute.php @@ -0,0 +1,13430 @@ + + * 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 +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = + "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = + "https://www.googleapis.com/auth/compute.readonly"; + /** Manage your data and permissions in Google Cloud Storage. */ + const DEVSTORAGE_FULL_CONTROL = + "https://www.googleapis.com/auth/devstorage.full_control"; + /** View your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_ONLY = + "https://www.googleapis.com/auth/devstorage.read_only"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; + + public $addresses; + public $backendServices; + public $diskTypes; + public $disks; + public $firewalls; + public $forwardingRules; + public $globalAddresses; + public $globalForwardingRules; + public $globalOperations; + public $httpHealthChecks; + public $images; + public $instanceTemplates; + public $instances; + public $licenses; + public $machineTypes; + public $networks; + public $projects; + public $regionOperations; + public $regions; + public $routes; + public $snapshots; + public $targetHttpProxies; + public $targetInstances; + public $targetPools; + public $targetVpnGateways; + public $urlMaps; + public $vpnTunnels; + public $zoneOperations; + public $zones; + + + /** + * Constructs the internal representation of the Compute service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'compute/v1/projects/'; + $this->version = 'v1'; + $this->serviceName = 'compute'; + + $this->addresses = new Google_Service_Compute_Addresses_Resource( + $this, + $this->serviceName, + 'addresses', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/addresses/{address}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/addresses/{address}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/addresses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->backendServices = new Google_Service_Compute_BackendServices_Resource( + $this, + $this->serviceName, + 'backendServices', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getHealth' => array( + 'path' => '{project}/global/backendServices/{backendService}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( + $this, + $this->serviceName, + 'diskTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/diskTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'diskType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/diskTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->disks = new Google_Service_Compute_Disks_Resource( + $this, + $this->serviceName, + 'disks', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/disks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'createSnapshot' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/disks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sourceImage' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/disks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->firewalls = new Google_Service_Compute_Firewalls_Resource( + $this, + $this->serviceName, + 'firewalls', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/firewalls', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/firewalls', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource( + $this, + $this->serviceName, + 'forwardingRules', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/forwardingRules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setTarget' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( + $this, + $this->serviceName, + 'globalAddresses', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( + $this, + $this->serviceName, + 'globalForwardingRules', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setTarget' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( + $this, + $this->serviceName, + 'globalOperations', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource( + $this, + $this->serviceName, + 'httpHealthChecks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/httpHealthChecks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/httpHealthChecks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->images = new Google_Service_Compute_Images_Resource( + $this, + $this->serviceName, + 'images', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/images/{image}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deprecate' => array( + 'path' => '{project}/global/images/{image}/deprecate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/images/{image}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/images', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/images', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( + $this, + $this->serviceName, + 'instanceTemplates', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/instanceTemplates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/instanceTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->instances = new Google_Service_Compute_Instances_Resource( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'addAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'attachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deleteAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accessConfig' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'detachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getSerialPortOutput' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'port' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'reset' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setDiskAutoDelete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoDelete' => array( + 'location' => 'query', + 'type' => 'boolean', + 'required' => true, + ), + 'deviceName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setMetadata' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setScheduling' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setTags' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'start' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/start', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'stop' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->licenses = new Google_Service_Compute_Licenses_Resource( + $this, + $this->serviceName, + 'licenses', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/licenses/{license}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'license' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( + $this, + $this->serviceName, + 'machineTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/machineTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'machineType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/machineTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->networks = new Google_Service_Compute_Networks_Resource( + $this, + $this->serviceName, + 'networks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'network' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'network' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/networks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/networks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Compute_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'moveDisk' => array( + 'path' => '{project}/moveDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'moveInstance' => array( + 'path' => '{project}/moveInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setCommonInstanceMetadata' => array( + 'path' => '{project}/setCommonInstanceMetadata', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setUsageExportBucket' => array( + 'path' => '{project}/setUsageExportBucket', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( + $this, + $this->serviceName, + 'regionOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Compute_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/regions/{region}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->routes = new Google_Service_Compute_Routes_Resource( + $this, + $this->serviceName, + 'routes', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'route' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'route' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/routes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/routes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->snapshots = new Google_Service_Compute_Snapshots_Resource( + $this, + $this->serviceName, + 'snapshots', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'snapshot' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'snapshot' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/snapshots', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( + $this, + $this->serviceName, + 'targetHttpProxies', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setUrlMap' => array( + 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( + $this, + $this->serviceName, + 'targetInstances', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetInstances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetInstance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetInstance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/targetInstances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/targetInstances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->targetPools = new Google_Service_Compute_TargetPools_Resource( + $this, + $this->serviceName, + 'targetPools', + array( + 'methods' => array( + 'addHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'addInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/targetPools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getHealth' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removeHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'removeInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setBackup' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'failoverRatio' => array( + 'location' => 'query', + 'type' => 'number', + ), + ), + ), + ) + ) + ); + $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( + $this, + $this->serviceName, + 'targetVpnGateways', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this, + $this->serviceName, + 'urlMaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'validate' => array( + 'path' => '{project}/global/urlMaps/{urlMap}/validate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( + $this, + $this->serviceName, + 'vpnTunnels', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->zones = new Google_Service_Compute_Zones_Resource( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "addresses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $addresses = $computeService->addresses; + * + */ +class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); + } + + /** + * Deletes the specified address resource. (addresses.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $address Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $address, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (addresses.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $address Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $region, $address, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (addresses.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of address resources contained within the specified + * region. (addresses.listAddresses) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressList + */ + public function listAddresses($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } +} + +/** + * The "backendServices" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $backendServices = $computeService->backendServices; + * + */ +class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified BackendService resource. (backendServices.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $backendService, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified BackendService resource. (backendServices.get) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendService + */ + public function get($project, $backendService, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_BackendService"); + } + + /** + * Gets the most recent health check results for this BackendService. + * (backendServices.getHealth) + * + * @param string $project + * @param string $backendService Name of the BackendService resource to which + * the queried instance belongs. + * @param Google_ResourceGroupReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendServiceGroupHealth + */ + public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + } + + /** + * Creates a BackendService resource in the specified project using the data + * included in the request. (backendServices.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of BackendService resources available to the specified + * project. (backendServices.listBackendServices) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_BackendServiceList + */ + public function listBackendServices($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + } + + /** + * Update the entire content of the BackendService resource. This method + * supports patch semantics. (backendServices.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the BackendService resource. + * (backendServices.update) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "diskTypes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $diskTypes = $computeService->diskTypes; + * + */ +class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disk type resources grouped by scope. + * (diskTypes.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + } + + /** + * Returns the specified disk type resource. (diskTypes.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $diskType Name of the disk type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_DiskType + */ + public function get($project, $zone, $diskType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + } + + /** + * Retrieves the list of disk type resources available to the specified project. + * (diskTypes.listDiskTypes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskTypeList + */ + public function listDiskTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + } +} + +/** + * The "disks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $disks = $computeService->disks; + * + */ +class Google_Service_Compute_Disks_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); + } + + /** + * Creates a snapshot of this disk. (disks.createSnapshot) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to snapshot. + * @param Google_Snapshot $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified persistent disk. (disks.delete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $disk, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns a specified persistent disk. (disks.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Disk + */ + public function get($project, $zone, $disk, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Disk"); + } + + /** + * Creates a persistent disk in the specified project using the data included in + * the request. (disks.insert) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param Google_Disk $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string sourceImage Optional. Source image to restore onto a disk. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of persistent disks contained within the specified zone. + * (disks.listDisks) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskList + */ + public function listDisks($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + } +} + +/** + * The "firewalls" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $firewalls = $computeService->firewalls; + * + */ +class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified firewall resource. (firewalls.delete) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $firewall, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified firewall resource. (firewalls.get) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Firewall + */ + public function get($project, $firewall, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Firewall"); + } + + /** + * Creates a firewall resource in the specified project using the data included + * in the request. (firewalls.insert) + * + * @param string $project Project ID for this request. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of firewall resources available to the specified project. + * (firewalls.listFirewalls) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_FirewallList + */ + public function listFirewalls($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. This method supports patch semantics. (firewalls.patch) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. (firewalls.update) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "forwardingRules" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $forwardingRules = $computeService->forwardingRules; + * + */ +class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of forwarding rules grouped by scope. + * (forwardingRules.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); + } + + /** + * Deletes the specified ForwardingRule resource. (forwardingRules.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (forwardingRules.get) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $region, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (forwardingRules.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project and region. (forwardingRules.listForwardingRules) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listForwardingRules($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (forwardingRules.setTarget) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "globalAddresses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalAddresses = $computeService->globalAddresses; + * + */ +class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified address resource. (globalAddresses.delete) + * + * @param string $project Project ID for this request. + * @param string $address Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $address, $optParams = array()) + { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (globalAddresses.get) + * + * @param string $project Project ID for this request. + * @param string $address Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $address, $optParams = array()) + { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (globalAddresses.insert) + * + * @param string $project Project ID for this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of global address resources. + * (globalAddresses.listGlobalAddresses) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressList + */ + public function listGlobalAddresses($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } +} + +/** + * The "globalForwardingRules" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalForwardingRules = $computeService->globalForwardingRules; + * + */ +class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (globalForwardingRules.get) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (globalForwardingRules.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project. (globalForwardingRules.listGlobalForwardingRules) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listGlobalForwardingRules($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (globalForwardingRules.setTarget) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "globalOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalOperations = $computeService->globalOperations; + * + */ +class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of all operations grouped by scope. + * (globalOperations.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + } + + /** + * Deletes the specified operation resource. (globalOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalOperations.listGlobalOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listGlobalOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "httpHealthChecks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $httpHealthChecks = $computeService->httpHealthChecks; + * + */ +class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_HttpHealthCheck + */ + public function get($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + } + + /** + * Creates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of HttpHealthCheck resources available to the specified + * project. (httpHealthChecks.listHttpHealthChecks) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_HttpHealthCheckList + */ + public function listHttpHealthChecks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (httpHealthChecks.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.update) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "images" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $images = $computeService->images; + * + */ +class Google_Service_Compute_Images_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified image resource. (images.delete) + * + * @param string $project Project ID for this request. + * @param string $image Name of the image resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $image, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. + * (images.deprecate) + * + * @param string $project Project ID for this request. + * @param string $image Image name. + * @param Google_DeprecationStatus $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified image resource. (images.get) + * + * @param string $project Project ID for this request. + * @param string $image Name of the image resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Image + */ + public function get($project, $image, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Image"); + } + + /** + * Creates an image resource in the specified project using the data included in + * the request. (images.insert) + * + * @param string $project Project ID for this request. + * @param Google_Image $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of image resources available to the specified project. + * (images.listImages) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ImageList + */ + public function listImages($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ImageList"); + } +} + +/** + * The "instanceTemplates" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $instanceTemplates = $computeService->instanceTemplates; + * + */ +class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified instance template. (instanceTemplates.delete) + * + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance template resource. (instanceTemplates.get) + * + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceTemplate + */ + public function get($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); + } + + /** + * Creates an instance template in the specified project using the data that is + * included in the request. (instanceTemplates.insert) + * + * @param string $project The project ID for this request. + * @param Google_InstanceTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves a list of instance templates that are contained within the + * specified project and zone. (instanceTemplates.listInstanceTemplates) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceTemplateList + */ + public function listInstanceTemplates($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); + } +} + +/** + * The "instances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $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 ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $networkInterface The name of the network interface to add to + * this instance. + * @param Google_AccessConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * (instances.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); + } + + /** + * Attaches a Disk resource to an instance. (instances.attachDisk) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param Google_AttachedDisk $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified Instance resource. For more information, see Shutting + * down an instance. (instances.delete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes an access config from an instance's network interface. + * (instances.deleteAccessConfig) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $accessConfig The name of the access config to delete. + * @param string $networkInterface The name of the network interface. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); + $params = array_merge($params, $optParams); + return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Detaches a disk from an instance. (instances.detachDisk) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param string $deviceName Disk device name to detach. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance resource. (instances.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the The name of the zone for this request.. + * @param string $instance Name of the instance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Instance + */ + public function get($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Instance"); + } + + /** + * Returns the specified instance's serial port output. + * (instances.getSerialPortOutput) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param int port Which COM port to retrieve data from. + * @return Google_Service_Compute_SerialPortOutput + */ + public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); + } + + /** + * Creates an instance resource in the specified project using the data included + * in the request. (instances.insert) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param Google_Instance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of instance resources contained within the specified zone. + * (instances.listInstances) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceList + */ + public function listInstances($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); + } + + /** + * Performs a hard reset on the instance. (instances.reset) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function reset($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the auto-delete flag for a disk attached to an instance. + * (instances.setDiskAutoDelete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name. + * @param bool $autoDelete Whether to auto-delete the disk when the instance is + * deleted. + * @param string $deviceName The device name of the disk to modify. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets metadata for the specified instance to the data included in the request. + * (instances.setMetadata) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets an instance's scheduling options. (instances.setScheduling) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param Google_Scheduling $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets tags for the specified instance to the data included in the request. + * (instances.setTags) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param Google_Tags $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); + } + + /** + * This method starts an instance that was stopped using the using the + * instances().stop method. For more information, see Restart an instance. + * (instances.start) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to start. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function start($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('start', array($params), "Google_Service_Compute_Operation"); + } + + /** + * This method stops a running instance, shutting it down cleanly, and allows + * you to restart the instance at a later time. Stopped instances do not incur + * per-minute, virtual machine usage charges while they are stopped, but any + * resources that the virtual machine is using, such as persistent disks and + * static IP addresses,will continue to be charged until they are deleted. For + * more information, see Stopping an instance. (instances.stop) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to stop. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function stop($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "licenses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $licenses = $computeService->licenses; + * + */ +class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified license resource. (licenses.get) + * + * @param string $project Project ID for this request. + * @param string $license Name of the license resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_License + */ + public function get($project, $license, $optParams = array()) + { + $params = array('project' => $project, 'license' => $license); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_License"); + } +} + +/** + * The "machineTypes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $machineTypes = $computeService->machineTypes; + * + */ +class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of machine type resources grouped by scope. + * (machineTypes.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_MachineTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); + } + + /** + * Returns the specified machine type resource. (machineTypes.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $machineType Name of the machine type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_MachineType + */ + public function get($project, $zone, $machineType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_MachineType"); + } + + /** + * Retrieves the list of machine type resources available to the specified + * project. (machineTypes.listMachineTypes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_MachineTypeList + */ + public function listMachineTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); + } +} + +/** + * The "networks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $networks = $computeService->networks; + * + */ +class Google_Service_Compute_Networks_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified network resource. (networks.delete) + * + * @param string $project Project ID for this request. + * @param string $network Name of the network resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $network, $optParams = array()) + { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified network resource. (networks.get) + * + * @param string $project Project ID for this request. + * @param string $network Name of the network resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Network + */ + public function get($project, $network, $optParams = array()) + { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Network"); + } + + /** + * Creates a network resource in the specified project using the data included + * in the request. (networks.insert) + * + * @param string $project Project ID for this request. + * @param Google_Network $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of network resources available to the specified project. + * (networks.listNetworks) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_NetworkList + */ + public function listNetworks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $projects = $computeService->projects; + * + */ +class Google_Service_Compute_Projects_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified project resource. (projects.get) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Project + */ + public function get($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Project"); + } + + /** + * Moves a persistent disk from one zone to another. (projects.moveDisk) + * + * @param string $project Project ID for this request. + * @param Google_DiskMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Moves an instance and its attached persistent disks from one zone to another. + * (projects.moveInstance) + * + * @param string $project Project ID for this request. + * @param Google_InstanceMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets metadata common to all instances within the specified project using the + * data included in the request. (projects.setCommonInstanceMetadata) + * + * @param string $project Project ID for this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Enables the usage export feature and sets the usage export bucket where + * reports are stored. If you provide an empty request body using this method, + * the usage export feature will be disabled. (projects.setUsageExportBucket) + * + * @param string $project Project ID for this request. + * @param Google_UsageExportLocation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "regionOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $regionOperations = $computeService->regionOperations; + * + */ +class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified region-specific operation resource. + * (regionOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $operation Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $region, $operation, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified region-specific operation resource. + * (regionOperations.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the zone scoping this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $region, $operation, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * region. (regionOperations.listRegionOperations) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listRegionOperations($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $regions = $computeService->regions; + * + */ +class Google_Service_Compute_Regions_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified region resource. (regions.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Region + */ + public function get($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Region"); + } + + /** + * Retrieves the list of region resources available to the specified project. + * (regions.listRegions) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_RegionList + */ + public function listRegions($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RegionList"); + } +} + +/** + * The "routes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $routes = $computeService->routes; + * + */ +class Google_Service_Compute_Routes_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified route resource. (routes.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $route, $optParams = array()) + { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified route resource. (routes.get) + * + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Route + */ + public function get($project, $route, $optParams = array()) + { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Route"); + } + + /** + * Creates a route resource in the specified project using the data included in + * the request. (routes.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_Route $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of route resources available to the specified project. + * (routes.listRoutes) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_RouteList + */ + public function listRoutes($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RouteList"); + } +} + +/** + * The "snapshots" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $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); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified persistent disk snapshot resource. (snapshots.get) + * + * @param string $project Name of the project scoping this request. + * @param string $snapshot Name of the persistent disk snapshot resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Snapshot + */ + public function get($project, $snapshot, $optParams = array()) + { + $params = array('project' => $project, 'snapshot' => $snapshot); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); + } + + /** + * Retrieves the list of persistent disk snapshot resources contained within the + * specified project. (snapshots.listSnapshots) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_SnapshotList + */ + public function listSnapshots($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); + } +} + +/** + * The "targetHttpProxies" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetHttpProxies = $computeService->targetHttpProxies; + * + */ +class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $targetHttpProxy, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetHttpProxy + */ + public function get($project, $targetHttpProxy, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); + } + + /** + * Creates a TargetHttpProxy resource in the specified project using the data + * included in the request. (targetHttpProxies.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_TargetHttpProxy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetHttpProxy resources available to the specified + * project. (targetHttpProxies.listTargetHttpProxies) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetHttpProxyList + */ + public function listTargetHttpProxies($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + } + + /** + * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL + * map is to be set. + * @param Google_UrlMapReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetInstances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetInstances = $computeService->targetInstances; + * + */ +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target instances grouped by scope. + * (targetInstances.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + } + + /** + * Deletes the specified TargetInstance resource. (targetInstances.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetInstance resource. (targetInstances.get) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetInstance + */ + public function get($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + } + + /** + * Creates a TargetInstance resource in the specified project and zone using the + * data included in the request. (targetInstances.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_TargetInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetInstance resources available to the specified + * project and zone. (targetInstances.listTargetInstances) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceList + */ + public function listTargetInstances($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + } +} + +/** + * The "targetPools" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetPools = $computeService->targetPools; + * + */ +class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource +{ + + /** + * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be added. + * @param Google_TargetPoolsAddHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Adds instance url to targetPool. (targetPools.addInstance) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be added. + * @param Google_TargetPoolsAddInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of target pools grouped by scope. + * (targetPools.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetPoolAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); + } + + /** + * Deletes the specified TargetPool resource. (targetPools.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetPool, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetPool resource. (targetPools.get) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPool + */ + public function get($project, $region, $targetPool, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); + } + + /** + * Gets the most recent health check results for each IP for the given instance + * that is referenced by given TargetPool. (targetPools.getHealth) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which the + * queried instance belongs. + * @param Google_InstanceReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPoolInstanceHealth + */ + public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); + } + + /** + * Creates a TargetPool resource in the specified project and region using the + * data included in the request. (targetPools.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param Google_TargetPool $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetPool resources available to the specified project + * and region. (targetPools.listTargetPools) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetPoolList + */ + public function listTargetPools($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); + } + + /** + * Removes health check URL from targetPool. (targetPools.removeHealthCheck) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be removed. + * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Removes instance URL from targetPool. (targetPools.removeInstance) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be removed. + * @param Google_TargetPoolsRemoveInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Changes backup pool configurations. (targetPools.setBackup) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource for which the + * backup is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * + * @opt_param float failoverRatio New failoverRatio value for the containing + * target pool. + * @return Google_Service_Compute_Operation + */ + public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetVpnGateways" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetVpnGateways = $computeService->targetVpnGateways; + * + */ +class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target VPN gateways grouped by scope. + * (targetVpnGateways.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); + } + + /** + * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetVpnGateway + */ + public function get($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); + } + + /** + * Creates a TargetVpnGateway resource in the specified project and region using + * the data included in the request. (targetVpnGateways.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_TargetVpnGateway $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetVpnGateway resources available to the specified + * project and region. (targetVpnGateways.listTargetVpnGateways) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayList + */ + public function listTargetVpnGateways($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + } +} + +/** + * The "urlMaps" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $urlMaps = $computeService->urlMaps; + * + */ +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified UrlMap resource. (urlMaps.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified UrlMap resource. (urlMaps.get) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMap + */ + public function get($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + } + + /** + * Creates a UrlMap resource in the specified project using the data included in + * the request. (urlMaps.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of UrlMap resources available to the specified project. + * (urlMaps.listUrlMaps) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_UrlMapList + */ + public function listUrlMaps($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + } + + /** + * Update the entire content of the UrlMap resource. This method supports patch + * semantics. (urlMaps.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the UrlMap resource. (urlMaps.update) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Run static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * (urlMaps.validate) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to be validated as. + * @param Google_UrlMapsValidateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMapsValidateResponse + */ + public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + } +} + +/** + * The "vpnTunnels" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $vpnTunnels = $computeService->vpnTunnels; + * + */ +class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of VPN tunnels grouped by scope. + * (vpnTunnels.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + } + + /** + * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified VpnTunnel resource. (vpnTunnels.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_VpnTunnel + */ + public function get($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + } + + /** + * Creates a VpnTunnel resource in the specified project and region using the + * data included in the request. (vpnTunnels.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_VpnTunnel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of VpnTunnel resources contained in the specified project + * and region. (vpnTunnels.listVpnTunnels) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelList + */ + public function listVpnTunnels($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + } +} + +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $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 Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param string $operation Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "zones" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $zones = $computeService->zones; + * + */ +class Google_Service_Compute_Zones_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified zone resource. (zones.get) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Zone + */ + public function get($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Zone"); + } + + /** + * Retrieves the list of zone resources available to the specified project. + * (zones.listZones) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ZoneList + */ + public function listZones($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); + } +} + + + + +class Google_Service_Compute_AccessConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + public $natIP; + public $type; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNatIP($natIP) + { + $this->natIP = $natIP; + } + public function getNatIP() + { + return $this->natIP; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Compute_Address extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $address; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $region; + public $selfLink; + public $status; + public $users; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Compute_AddressAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_AddressAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_AddressList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Address'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_AddressesScopedList extends Google_Collection +{ + protected $collection_key = 'addresses'; + protected $internal_gapi_mappings = array( + ); + protected $addressesType = 'Google_Service_Compute_Address'; + protected $addressesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; + protected $warningDataType = ''; + + + public function setAddresses($addresses) + { + $this->addresses = $addresses; + } + public function getAddresses() + { + return $this->addresses; + } + public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_AttachedDisk extends Google_Collection +{ + protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); + public $autoDelete; + public $boot; + public $deviceName; + public $index; + protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; + protected $initializeParamsDataType = ''; + public $interface; + public $kind; + public $licenses; + public $mode; + public $source; + public $type; + + + public function setAutoDelete($autoDelete) + { + $this->autoDelete = $autoDelete; + } + public function getAutoDelete() + { + return $this->autoDelete; + } + public function setBoot($boot) + { + $this->boot = $boot; + } + public function getBoot() + { + return $this->boot; + } + public function setDeviceName($deviceName) + { + $this->deviceName = $deviceName; + } + public function getDeviceName() + { + return $this->deviceName; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) + { + $this->initializeParams = $initializeParams; + } + public function getInitializeParams() + { + return $this->initializeParams; + } + public function setInterface($interface) + { + $this->interface = $interface; + } + public function getInterface() + { + return $this->interface; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setMode($mode) + { + $this->mode = $mode; + } + public function getMode() + { + return $this->mode; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $diskName; + public $diskSizeGb; + public $diskType; + public $sourceImage; + + + public function setDiskName($diskName) + { + $this->diskName = $diskName; + } + public function getDiskName() + { + return $this->diskName; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) + { + $this->sourceImage = $sourceImage; + } + public function getSourceImage() + { + return $this->sourceImage; + } +} + +class Google_Service_Compute_Backend extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $balancingMode; + public $capacityScaler; + public $description; + public $group; + public $maxRate; + public $maxRatePerInstance; + public $maxUtilization; + + + public function setBalancingMode($balancingMode) + { + $this->balancingMode = $balancingMode; + } + public function getBalancingMode() + { + return $this->balancingMode; + } + public function setCapacityScaler($capacityScaler) + { + $this->capacityScaler = $capacityScaler; + } + public function getCapacityScaler() + { + return $this->capacityScaler; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGroup($group) + { + $this->group = $group; + } + public function getGroup() + { + return $this->group; + } + public function setMaxRate($maxRate) + { + $this->maxRate = $maxRate; + } + public function getMaxRate() + { + return $this->maxRate; + } + public function setMaxRatePerInstance($maxRatePerInstance) + { + $this->maxRatePerInstance = $maxRatePerInstance; + } + public function getMaxRatePerInstance() + { + return $this->maxRatePerInstance; + } + public function setMaxUtilization($maxUtilization) + { + $this->maxUtilization = $maxUtilization; + } + public function getMaxUtilization() + { + return $this->maxUtilization; + } +} + +class Google_Service_Compute_BackendService extends Google_Collection +{ + protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); + protected $backendsType = 'Google_Service_Compute_Backend'; + protected $backendsDataType = 'array'; + public $creationTimestamp; + public $description; + public $fingerprint; + public $healthChecks; + public $id; + public $kind; + public $name; + public $port; + public $portName; + public $protocol; + public $selfLink; + public $timeoutSec; + + + public function setBackends($backends) + { + $this->backends = $backends; + } + public function getBackends() + { + return $this->backends; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + public function getHealthChecks() + { + return $this->healthChecks; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setPortName($portName) + { + $this->portName = $portName; + } + public function getPortName() + { + return $this->portName; + } + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + public function getProtocol() + { + return $this->protocol; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTimeoutSec($timeoutSec) + { + $this->timeoutSec = $timeoutSec; + } + public function getTimeoutSec() + { + return $this->timeoutSec; + } +} + +class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection +{ + protected $collection_key = 'healthStatus'; + protected $internal_gapi_mappings = array( + ); + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; + + + public function setHealthStatus($healthStatus) + { + $this->healthStatus = $healthStatus; + } + public function getHealthStatus() + { + return $this->healthStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Compute_BackendServiceList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_BackendService'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DeprecationStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deleted; + public $deprecated; + public $obsolete; + public $replacement; + public $state; + + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + public function getDeleted() + { + return $this->deleted; + } + public function setDeprecated($deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setObsolete($obsolete) + { + $this->obsolete = $obsolete; + } + public function getObsolete() + { + return $this->obsolete; + } + public function setReplacement($replacement) + { + $this->replacement = $replacement; + } + public function getReplacement() + { + return $this->replacement; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_Compute_Disk extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $lastAttachTimestamp; + public $lastDetachTimestamp; + public $licenses; + public $name; + public $options; + public $selfLink; + public $sizeGb; + public $sourceImage; + public $sourceImageId; + public $sourceSnapshot; + public $sourceSnapshotId; + public $status; + public $type; + public $users; + 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 setLastAttachTimestamp($lastAttachTimestamp) + { + $this->lastAttachTimestamp = $lastAttachTimestamp; + } + public function getLastAttachTimestamp() + { + return $this->lastAttachTimestamp; + } + public function setLastDetachTimestamp($lastDetachTimestamp) + { + $this->lastDetachTimestamp = $lastDetachTimestamp; + } + public function getLastDetachTimestamp() + { + return $this->lastDetachTimestamp; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOptions($options) + { + $this->options = $options; + } + public function getOptions() + { + return $this->options; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSizeGb($sizeGb) + { + $this->sizeGb = $sizeGb; + } + public function getSizeGb() + { + return $this->sizeGb; + } + public function setSourceImage($sourceImage) + { + $this->sourceImage = $sourceImage; + } + public function getSourceImage() + { + return $this->sourceImage; + } + public function setSourceImageId($sourceImageId) + { + $this->sourceImageId = $sourceImageId; + } + public function getSourceImageId() + { + return $this->sourceImageId; + } + public function setSourceSnapshot($sourceSnapshot) + { + $this->sourceSnapshot = $sourceSnapshot; + } + public function getSourceSnapshot() + { + return $this->sourceSnapshot; + } + public function setSourceSnapshotId($sourceSnapshotId) + { + $this->sourceSnapshotId = $sourceSnapshotId; + } + public function getSourceSnapshotId() + { + return $this->sourceSnapshotId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_DiskAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_DiskList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetDisk; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetDisk($targetDisk) + { + $this->targetDisk = $targetDisk; + } + public function getTargetDisk() + { + return $this->targetDisk; + } +} + +class Google_Service_Compute_DiskType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $defaultDiskSizeGb; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $validDiskSize; + public $zone; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDefaultDiskSizeGb($defaultDiskSizeGb) + { + $this->defaultDiskSizeGb = $defaultDiskSizeGb; + } + public function getDefaultDiskSizeGb() + { + return $this->defaultDiskSizeGb; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setValidDiskSize($validDiskSize) + { + $this->validDiskSize = $validDiskSize; + } + public function getValidDiskSize() + { + return $this->validDiskSize; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_DiskTypeList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_DiskType'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskTypesScopedList extends Google_Collection +{ + protected $collection_key = 'diskTypes'; + protected $internal_gapi_mappings = array( + ); + protected $diskTypesType = 'Google_Service_Compute_DiskType'; + protected $diskTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; + protected $warningDataType = ''; + + + public function setDiskTypes($diskTypes) + { + $this->diskTypes = $diskTypes; + } + public function getDiskTypes() + { + return $this->diskTypes; + } + public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_DisksScopedList extends Google_Collection +{ + protected $collection_key = 'disks'; + protected $internal_gapi_mappings = array( + ); + protected $disksType = 'Google_Service_Compute_Disk'; + protected $disksDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; + protected $warningDataType = ''; + + + public function setDisks($disks) + { + $this->disks = $disks; + } + public function getDisks() + { + return $this->disks; + } + public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_DisksScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_DisksScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_Firewall extends Google_Collection +{ + protected $collection_key = 'targetTags'; + protected $internal_gapi_mappings = array( + ); + protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; + protected $allowedDataType = 'array'; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $network; + public $selfLink; + public $sourceRanges; + public $sourceTags; + public $targetTags; + + + public function setAllowed($allowed) + { + $this->allowed = $allowed; + } + public function getAllowed() + { + return $this->allowed; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceRanges($sourceRanges) + { + $this->sourceRanges = $sourceRanges; + } + public function getSourceRanges() + { + return $this->sourceRanges; + } + public function setSourceTags($sourceTags) + { + $this->sourceTags = $sourceTags; + } + public function getSourceTags() + { + return $this->sourceTags; + } + public function setTargetTags($targetTags) + { + $this->targetTags = $targetTags; + } + public function getTargetTags() + { + return $this->targetTags; + } +} + +class Google_Service_Compute_FirewallAllowed extends Google_Collection +{ + protected $collection_key = 'ports'; + protected $internal_gapi_mappings = array( + "iPProtocol" => "IPProtocol", + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Firewall'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRule extends Google_Model +{ + protected $internal_gapi_mappings = array( + "iPAddress" => "IPAddress", + "iPProtocol" => "IPProtocol", + ); + public $iPAddress; + public $iPProtocol; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $portRange; + public $region; + public $selfLink; + public $target; + + + public function setIPAddress($iPAddress) + { + $this->iPAddress = $iPAddress; + } + public function getIPAddress() + { + return $this->iPAddress; + } + public function setIPProtocol($iPProtocol) + { + $this->iPProtocol = $iPProtocol; + } + public function getIPProtocol() + { + return $this->iPProtocol; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPortRange($portRange) + { + $this->portRange = $portRange; + } + public function getPortRange() + { + return $this->portRange; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } +} + +class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_ForwardingRuleList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_ForwardingRule'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection +{ + protected $collection_key = 'forwardingRules'; + protected $internal_gapi_mappings = array( + ); + protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; + protected $forwardingRulesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; + protected $warningDataType = ''; + + + public function setForwardingRules($forwardingRules) + { + $this->forwardingRules = $forwardingRules; + } + public function getForwardingRules() + { + return $this->forwardingRules; + } + public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_HealthCheckReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $healthCheck; + + + public function setHealthCheck($healthCheck) + { + $this->healthCheck = $healthCheck; + } + public function getHealthCheck() + { + return $this->healthCheck; + } +} + +class Google_Service_Compute_HealthStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $healthState; + public $instance; + public $ipAddress; + public $port; + + + public function setHealthState($healthState) + { + $this->healthState = $healthState; + } + public function getHealthState() + { + return $this->healthState; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + public function getIpAddress() + { + return $this->ipAddress; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } +} + +class Google_Service_Compute_HostRule extends Google_Collection +{ + protected $collection_key = 'hosts'; + protected $internal_gapi_mappings = array( + ); + public $description; + public $hosts; + public $pathMatcher; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setHosts($hosts) + { + $this->hosts = $hosts; + } + public function getHosts() + { + return $this->hosts; + } + public function setPathMatcher($pathMatcher) + { + $this->pathMatcher = $pathMatcher; + } + public function getPathMatcher() + { + return $this->pathMatcher; + } +} + +class Google_Service_Compute_HttpHealthCheck extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $checkIntervalSec; + public $creationTimestamp; + public $description; + public $healthyThreshold; + public $host; + public $id; + public $kind; + public $name; + public $port; + public $requestPath; + public $selfLink; + public $timeoutSec; + public $unhealthyThreshold; + + + public function setCheckIntervalSec($checkIntervalSec) + { + $this->checkIntervalSec = $checkIntervalSec; + } + public function getCheckIntervalSec() + { + return $this->checkIntervalSec; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setHealthyThreshold($healthyThreshold) + { + $this->healthyThreshold = $healthyThreshold; + } + public function getHealthyThreshold() + { + return $this->healthyThreshold; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setRequestPath($requestPath) + { + $this->requestPath = $requestPath; + } + public function getRequestPath() + { + return $this->requestPath; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTimeoutSec($timeoutSec) + { + $this->timeoutSec = $timeoutSec; + } + public function getTimeoutSec() + { + return $this->timeoutSec; + } + public function setUnhealthyThreshold($unhealthyThreshold) + { + $this->unhealthyThreshold = $unhealthyThreshold; + } + public function getUnhealthyThreshold() + { + return $this->unhealthyThreshold; + } +} + +class Google_Service_Compute_HttpHealthCheckList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_Image extends Google_Collection +{ + protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); + public $archiveSizeBytes; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $licenses; + public $name; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; + public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $sourceType; + public $status; + + + public function setArchiveSizeBytes($archiveSizeBytes) + { + $this->archiveSizeBytes = $archiveSizeBytes; + } + public function getArchiveSizeBytes() + { + return $this->archiveSizeBytes; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + { + $this->rawDisk = $rawDisk; + } + public function getRawDisk() + { + return $this->rawDisk; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + public function getSourceDisk() + { + return $this->sourceDisk; + } + public function setSourceDiskId($sourceDiskId) + { + $this->sourceDiskId = $sourceDiskId; + } + public function getSourceDiskId() + { + return $this->sourceDiskId; + } + public function setSourceType($sourceType) + { + $this->sourceType = $sourceType; + } + public function getSourceType() + { + return $this->sourceType; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Compute_ImageList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ImageRawDisk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); + public $canIpForward; + public $cpuPlatform; + public $creationTimestamp; + public $description; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; + public $id; + public $kind; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; + public $name; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; + public $selfLink; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + public $status; + public $statusMessage; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + public $zone; + + + public function setCanIpForward($canIpForward) + { + $this->canIpForward = $canIpForward; + } + public function getCanIpForward() + { + return $this->canIpForward; + } + public function setCpuPlatform($cpuPlatform) + { + $this->cpuPlatform = $cpuPlatform; + } + public function getCpuPlatform() + { + return $this->cpuPlatform; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisks($disks) + { + $this->disks = $disks; + } + public function getDisks() + { + return $this->disks; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } + public function setMetadata(Google_Service_Compute_Metadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetworkInterfaces($networkInterfaces) + { + $this->networkInterfaces = $networkInterfaces; + } + public function getNetworkInterfaces() + { + return $this->networkInterfaces; + } + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + { + $this->scheduling = $scheduling; + } + public function getScheduling() + { + return $this->scheduling; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setServiceAccounts($serviceAccounts) + { + $this->serviceAccounts = $serviceAccounts; + } + public function getServiceAccounts() + { + return $this->serviceAccounts; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTags(Google_Service_Compute_Tags $tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_InstanceAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_InstanceList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Instance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetInstance; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetInstance($targetInstance) + { + $this->targetInstance = $targetInstance; + } + public function getTargetInstance() + { + return $this->targetInstance; + } +} + +class Google_Service_Compute_InstanceProperties extends Google_Collection +{ + protected $collection_key = 'serviceAccounts'; + protected $internal_gapi_mappings = array( + ); + public $canIpForward; + public $description; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + + + public function setCanIpForward($canIpForward) + { + $this->canIpForward = $canIpForward; + } + public function getCanIpForward() + { + return $this->canIpForward; + } + 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 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 setNetworkInterfaces($networkInterfaces) + { + $this->networkInterfaces = $networkInterfaces; + } + public function getNetworkInterfaces() + { + return $this->networkInterfaces; + } + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + { + $this->scheduling = $scheduling; + } + public function getScheduling() + { + return $this->scheduling; + } + public function setServiceAccounts($serviceAccounts) + { + $this->serviceAccounts = $serviceAccounts; + } + public function getServiceAccounts() + { + return $this->serviceAccounts; + } + public function setTags(Google_Service_Compute_Tags $tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} + +class Google_Service_Compute_InstanceReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instance; + + + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } +} + +class Google_Service_Compute_InstanceTemplate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + protected $propertiesType = 'Google_Service_Compute_InstanceProperties'; + protected $propertiesDataType = ''; + public $selfLink; + + + 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 setProperties(Google_Service_Compute_InstanceProperties $properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceTemplateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_InstanceTemplate'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstancesScopedList extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + protected $instancesType = 'Google_Service_Compute_Instance'; + protected $instancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; + protected $warningDataType = ''; + + + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } + public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_License extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $chargesUseFee; + public $kind; + public $name; + public $selfLink; + + + public function setChargesUseFee($chargesUseFee) + { + $this->chargesUseFee = $chargesUseFee; + } + public function getChargesUseFee() + { + return $this->chargesUseFee; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineType extends Google_Collection +{ + protected $collection_key = 'scratchDisks'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $guestCpus; + public $id; + public $imageSpaceGb; + public $kind; + public $maximumPersistentDisks; + public $maximumPersistentDisksSizeGb; + public $memoryMb; + public $name; + protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; + protected $scratchDisksDataType = 'array'; + public $selfLink; + public $zone; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGuestCpus($guestCpus) + { + $this->guestCpus = $guestCpus; + } + public function getGuestCpus() + { + return $this->guestCpus; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setImageSpaceGb($imageSpaceGb) + { + $this->imageSpaceGb = $imageSpaceGb; + } + public function getImageSpaceGb() + { + return $this->imageSpaceGb; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMaximumPersistentDisks($maximumPersistentDisks) + { + $this->maximumPersistentDisks = $maximumPersistentDisks; + } + public function getMaximumPersistentDisks() + { + return $this->maximumPersistentDisks; + } + public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) + { + $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; + } + public function getMaximumPersistentDisksSizeGb() + { + return $this->maximumPersistentDisksSizeGb; + } + public function setMemoryMb($memoryMb) + { + $this->memoryMb = $memoryMb; + } + public function getMemoryMb() + { + return $this->memoryMb; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScratchDisks($scratchDisks) + { + $this->scratchDisks = $scratchDisks; + } + public function getScratchDisks() + { + return $this->scratchDisks; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_MachineTypeList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_MachineType'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $diskGb; + + + public function setDiskGb($diskGb) + { + $this->diskGb = $diskGb; + } + public function getDiskGb() + { + return $this->diskGb; + } +} + +class Google_Service_Compute_MachineTypesScopedList extends Google_Collection +{ + protected $collection_key = 'machineTypes'; + protected $internal_gapi_mappings = array( + ); + protected $machineTypesType = 'Google_Service_Compute_MachineType'; + protected $machineTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; + protected $warningDataType = ''; + + + public function setMachineTypes($machineTypes) + { + $this->machineTypes = $machineTypes; + } + public function getMachineTypes() + { + return $this->machineTypes; + } + public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_Metadata extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + protected $itemsType = 'Google_Service_Compute_MetadataItems'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Compute_MetadataItems extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + "iPv4Range" => "IPv4Range", + ); + 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 $collection_key = 'accessConfigs'; + protected $internal_gapi_mappings = array( + ); + protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; + protected $accessConfigsDataType = 'array'; + public $name; + public $network; + public $networkIP; + + + public function setAccessConfigs($accessConfigs) + { + $this->accessConfigs = $accessConfigs; + } + public function getAccessConfigs() + { + return $this->accessConfigs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNetworkIP($networkIP) + { + $this->networkIP = $networkIP; + } + public function getNetworkIP() + { + return $this->networkIP; + } +} + +class Google_Service_Compute_NetworkList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Network'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Compute_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Compute_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_Compute_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_OperationAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_OperationAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Compute_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_OperationsScopedList extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + protected $operationsType = 'Google_Service_Compute_Operation'; + protected $operationsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; + protected $warningDataType = ''; + + + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } + public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_PathMatcher extends Google_Collection +{ + protected $collection_key = 'pathRules'; + protected $internal_gapi_mappings = array( + ); + public $defaultService; + public $description; + public $name; + protected $pathRulesType = 'Google_Service_Compute_PathRule'; + protected $pathRulesDataType = 'array'; + + + public function setDefaultService($defaultService) + { + $this->defaultService = $defaultService; + } + public function getDefaultService() + { + return $this->defaultService; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPathRules($pathRules) + { + $this->pathRules = $pathRules; + } + public function getPathRules() + { + return $this->pathRules; + } +} + +class Google_Service_Compute_PathRule extends Google_Collection +{ + protected $collection_key = 'paths'; + protected $internal_gapi_mappings = array( + ); + public $paths; + public $service; + + + public function setPaths($paths) + { + $this->paths = $paths; + } + public function getPaths() + { + return $this->paths; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} + +class Google_Service_Compute_Project extends Google_Collection +{ + protected $collection_key = 'quotas'; + protected $internal_gapi_mappings = array( + ); + protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; + protected $commonInstanceMetadataDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; + public $selfLink; + protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; + protected $usageExportLocationDataType = ''; + + + public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) + { + $this->commonInstanceMetadata = $commonInstanceMetadata; + } + public function getCommonInstanceMetadata() + { + return $this->commonInstanceMetadata; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setQuotas($quotas) + { + $this->quotas = $quotas; + } + public function getQuotas() + { + return $this->quotas; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) + { + $this->usageExportLocation = $usageExportLocation; + } + public function getUsageExportLocation() + { + return $this->usageExportLocation; + } +} + +class Google_Service_Compute_Quota extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $limit; + public $metric; + public $usage; + + + public function setLimit($limit) + { + $this->limit = $limit; + } + public function getLimit() + { + return $this->limit; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } + public function setUsage($usage) + { + $this->usage = $usage; + } + public function getUsage() + { + return $this->usage; + } +} + +class Google_Service_Compute_Region extends Google_Collection +{ + protected $collection_key = 'zones'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; + public $selfLink; + public $status; + public $zones; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setQuotas($quotas) + { + $this->quotas = $quotas; + } + public function getQuotas() + { + return $this->quotas; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setZones($zones) + { + $this->zones = $zones; + } + public function getZones() + { + return $this->zones; + } +} + +class Google_Service_Compute_RegionList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Region'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ResourceGroupReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $group; + + + public function setGroup($group) + { + $this->group = $group; + } + public function getGroup() + { + return $this->group; + } +} + +class Google_Service_Compute_Route extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $destRange; + public $id; + public $kind; + public $name; + public $network; + public $nextHopGateway; + public $nextHopInstance; + public $nextHopIp; + public $nextHopNetwork; + public $nextHopVpnTunnel; + public $priority; + public $selfLink; + public $tags; + protected $warningsType = 'Google_Service_Compute_RouteWarnings'; + protected $warningsDataType = 'array'; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDestRange($destRange) + { + $this->destRange = $destRange; + } + public function getDestRange() + { + return $this->destRange; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNextHopGateway($nextHopGateway) + { + $this->nextHopGateway = $nextHopGateway; + } + public function getNextHopGateway() + { + return $this->nextHopGateway; + } + public function setNextHopInstance($nextHopInstance) + { + $this->nextHopInstance = $nextHopInstance; + } + public function getNextHopInstance() + { + return $this->nextHopInstance; + } + public function setNextHopIp($nextHopIp) + { + $this->nextHopIp = $nextHopIp; + } + public function getNextHopIp() + { + return $this->nextHopIp; + } + public function setNextHopNetwork($nextHopNetwork) + { + $this->nextHopNetwork = $nextHopNetwork; + } + public function getNextHopNetwork() + { + return $this->nextHopNetwork; + } + public function setNextHopVpnTunnel($nextHopVpnTunnel) + { + $this->nextHopVpnTunnel = $nextHopVpnTunnel; + } + public function getNextHopVpnTunnel() + { + return $this->nextHopVpnTunnel; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_Compute_RouteList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_RouteWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_RouteWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_RouteWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_Scheduling extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $automaticRestart; + public $onHostMaintenance; + public $preemptible; + + + public function setAutomaticRestart($automaticRestart) + { + $this->automaticRestart = $automaticRestart; + } + public function getAutomaticRestart() + { + return $this->automaticRestart; + } + public function setOnHostMaintenance($onHostMaintenance) + { + $this->onHostMaintenance = $onHostMaintenance; + } + public function getOnHostMaintenance() + { + return $this->onHostMaintenance; + } + public function setPreemptible($preemptible) + { + $this->preemptible = $preemptible; + } + public function getPreemptible() + { + return $this->preemptible; + } +} + +class Google_Service_Compute_SerialPortOutput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'scopes'; + protected $internal_gapi_mappings = array( + ); + public $email; + public $scopes; + + + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + public function getScopes() + { + return $this->scopes; + } +} + +class Google_Service_Compute_Snapshot extends Google_Collection +{ + protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $licenses; + public $name; + public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $status; + public $storageBytes; + public $storageBytesStatus; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + public function getSourceDisk() + { + return $this->sourceDisk; + } + public function setSourceDiskId($sourceDiskId) + { + $this->sourceDiskId = $sourceDiskId; + } + public function getSourceDiskId() + { + return $this->sourceDiskId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStorageBytes($storageBytes) + { + $this->storageBytes = $storageBytes; + } + public function getStorageBytes() + { + return $this->storageBytes; + } + public function setStorageBytesStatus($storageBytesStatus) + { + $this->storageBytesStatus = $storageBytesStatus; + } + public function getStorageBytesStatus() + { + return $this->storageBytesStatus; + } +} + +class Google_Service_Compute_SnapshotList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Snapshot'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_Tags extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + public $items; + + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } +} + +class Google_Service_Compute_TargetHttpProxy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $urlMap; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setUrlMap($urlMap) + { + $this->urlMap = $urlMap; + } + public function getUrlMap() + { + return $this->urlMap; + } +} + +class Google_Service_Compute_TargetHttpProxyList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstance extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $instance; + public $kind; + public $name; + public $natPolicy; + public $selfLink; + public $zone; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNatPolicy($natPolicy) + { + $this->natPolicy = $natPolicy; + } + public function getNatPolicy() + { + return $this->natPolicy; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_TargetInstanceList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetInstance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection +{ + protected $collection_key = 'targetInstances'; + protected $internal_gapi_mappings = array( + ); + protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; + protected $targetInstancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; + protected $warningDataType = ''; + + + public function setTargetInstances($targetInstances) + { + $this->targetInstances = $targetInstances; + } + public function getTargetInstances() + { + return $this->targetInstances; + } + public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_TargetPool extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $backupPool; + public $creationTimestamp; + public $description; + public $failoverRatio; + public $healthChecks; + public $id; + public $instances; + public $kind; + public $name; + public $region; + public $selfLink; + public $sessionAffinity; + + + public function setBackupPool($backupPool) + { + $this->backupPool = $backupPool; + } + public function getBackupPool() + { + return $this->backupPool; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFailoverRatio($failoverRatio) + { + $this->failoverRatio = $failoverRatio; + } + public function getFailoverRatio() + { + return $this->failoverRatio; + } + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + public function getHealthChecks() + { + return $this->healthChecks; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSessionAffinity($sessionAffinity) + { + $this->sessionAffinity = $sessionAffinity; + } + public function getSessionAffinity() + { + return $this->sessionAffinity; + } +} + +class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection +{ + protected $collection_key = 'healthStatus'; + protected $internal_gapi_mappings = array( + ); + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; + + + public function setHealthStatus($healthStatus) + { + $this->healthStatus = $healthStatus; + } + public function getHealthStatus() + { + return $this->healthStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Compute_TargetPoolList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetPool'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection +{ + protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + public function getHealthChecks() + { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection +{ + protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + public function getHealthChecks() + { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection +{ + protected $collection_key = 'targetPools'; + protected $internal_gapi_mappings = array( + ); + protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; + protected $targetPoolsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; + protected $warningDataType = ''; + + + public function setTargetPools($targetPools) + { + $this->targetPools = $targetPools; + } + public function getTargetPools() + { + return $this->targetPools; + } + public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_TargetReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $target; + + + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } +} + +class Google_Service_Compute_TargetVpnGateway extends Google_Collection +{ + protected $collection_key = 'tunnels'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $forwardingRules; + public $id; + public $kind; + public $name; + public $network; + public $region; + public $selfLink; + public $status; + public $tunnels; + + + 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 setForwardingRules($forwardingRules) + { + $this->forwardingRules = $forwardingRules; + } + public function getForwardingRules() + { + return $this->forwardingRules; + } + 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 setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTunnels($tunnels) + { + $this->tunnels = $tunnels; + } + public function getTunnels() + { + return $this->tunnels; + } +} + +class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetVpnGateway'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection +{ + protected $collection_key = 'targetVpnGateways'; + protected $internal_gapi_mappings = array( + ); + protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway'; + protected $targetVpnGatewaysDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning'; + protected $warningDataType = ''; + + + public function setTargetVpnGateways($targetVpnGateways) + { + $this->targetVpnGateways = $targetVpnGateways; + } + public function getTargetVpnGateways() + { + return $this->targetVpnGateways; + } + public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_TestFailure extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actualService; + public $expectedService; + public $host; + public $path; + + + public function setActualService($actualService) + { + $this->actualService = $actualService; + } + public function getActualService() + { + return $this->actualService; + } + public function setExpectedService($expectedService) + { + $this->expectedService = $expectedService; + } + public function getExpectedService() + { + return $this->expectedService; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} + +class Google_Service_Compute_UrlMap extends Google_Collection +{ + protected $collection_key = 'tests'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $defaultService; + public $description; + public $fingerprint; + protected $hostRulesType = 'Google_Service_Compute_HostRule'; + protected $hostRulesDataType = 'array'; + public $id; + public $kind; + public $name; + protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; + protected $pathMatchersDataType = 'array'; + public $selfLink; + protected $testsType = 'Google_Service_Compute_UrlMapTest'; + protected $testsDataType = 'array'; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDefaultService($defaultService) + { + $this->defaultService = $defaultService; + } + public function getDefaultService() + { + return $this->defaultService; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setHostRules($hostRules) + { + $this->hostRules = $hostRules; + } + public function getHostRules() + { + return $this->hostRules; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPathMatchers($pathMatchers) + { + $this->pathMatchers = $pathMatchers; + } + public function getPathMatchers() + { + return $this->pathMatchers; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTests($tests) + { + $this->tests = $tests; + } + public function getTests() + { + return $this->tests; + } +} + +class Google_Service_Compute_UrlMapList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_UrlMap'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_UrlMapReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $urlMap; + + + public function setUrlMap($urlMap) + { + $this->urlMap = $urlMap; + } + public function getUrlMap() + { + return $this->urlMap; + } +} + +class Google_Service_Compute_UrlMapTest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $host; + public $path; + public $service; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} + +class Google_Service_Compute_UrlMapValidationResult extends Google_Collection +{ + protected $collection_key = 'testFailures'; + protected $internal_gapi_mappings = array( + ); + public $loadErrors; + public $loadSucceeded; + protected $testFailuresType = 'Google_Service_Compute_TestFailure'; + protected $testFailuresDataType = 'array'; + public $testPassed; + + + public function setLoadErrors($loadErrors) + { + $this->loadErrors = $loadErrors; + } + public function getLoadErrors() + { + return $this->loadErrors; + } + public function setLoadSucceeded($loadSucceeded) + { + $this->loadSucceeded = $loadSucceeded; + } + public function getLoadSucceeded() + { + return $this->loadSucceeded; + } + public function setTestFailures($testFailures) + { + $this->testFailures = $testFailures; + } + public function getTestFailures() + { + return $this->testFailures; + } + public function setTestPassed($testPassed) + { + $this->testPassed = $testPassed; + } + public function getTestPassed() + { + return $this->testPassed; + } +} + +class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_Compute_UrlMap'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_Compute_UrlMap $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; + protected $resultDataType = ''; + + + public function setResult(Google_Service_Compute_UrlMapValidationResult $result) + { + $this->result = $result; + } + public function getResult() + { + return $this->result; + } +} + +class Google_Service_Compute_UsageExportLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bucketName; + public $reportNamePrefix; + + + public function setBucketName($bucketName) + { + $this->bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } + public function setReportNamePrefix($reportNamePrefix) + { + $this->reportNamePrefix = $reportNamePrefix; + } + public function getReportNamePrefix() + { + return $this->reportNamePrefix; + } +} + +class Google_Service_Compute_VpnTunnel extends Google_Collection +{ + protected $collection_key = 'ikeNetworks'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $detailedStatus; + public $id; + public $ikeNetworks; + public $ikeVersion; + public $kind; + public $name; + public $peerIp; + public $region; + public $selfLink; + public $sharedSecret; + public $sharedSecretHash; + public $status; + public $targetVpnGateway; + + + 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 setDetailedStatus($detailedStatus) + { + $this->detailedStatus = $detailedStatus; + } + public function getDetailedStatus() + { + return $this->detailedStatus; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIkeNetworks($ikeNetworks) + { + $this->ikeNetworks = $ikeNetworks; + } + public function getIkeNetworks() + { + return $this->ikeNetworks; + } + public function setIkeVersion($ikeVersion) + { + $this->ikeVersion = $ikeVersion; + } + public function getIkeVersion() + { + return $this->ikeVersion; + } + 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 setPeerIp($peerIp) + { + $this->peerIp = $peerIp; + } + public function getPeerIp() + { + return $this->peerIp; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSharedSecret($sharedSecret) + { + $this->sharedSecret = $sharedSecret; + } + public function getSharedSecret() + { + return $this->sharedSecret; + } + public function setSharedSecretHash($sharedSecretHash) + { + $this->sharedSecretHash = $sharedSecretHash; + } + public function getSharedSecretHash() + { + return $this->sharedSecretHash; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTargetVpnGateway($targetVpnGateway) + { + $this->targetVpnGateway = $targetVpnGateway; + } + public function getTargetVpnGateway() + { + return $this->targetVpnGateway; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_VpnTunnelList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection +{ + protected $collection_key = 'vpnTunnels'; + protected $internal_gapi_mappings = array( + ); + protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel'; + protected $vpnTunnelsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning'; + protected $warningDataType = ''; + + + public function setVpnTunnels($vpnTunnels) + { + $this->vpnTunnels = $vpnTunnels; + } + public function getVpnTunnels() + { + return $this->vpnTunnels; + } + public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Zone extends Google_Collection +{ + protected $collection_key = 'maintenanceWindows'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows'; + protected $maintenanceWindowsDataType = 'array'; + public $name; + public $region; + public $selfLink; + public $status; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMaintenanceWindows($maintenanceWindows) + { + $this->maintenanceWindows = $maintenanceWindows; + } + public function getMaintenanceWindows() + { + return $this->maintenanceWindows; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Compute_ZoneList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Zone'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} From 8ccca132a8c6d3e04aae12e9a9b5dd813499ed85 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:24:44 -0700 Subject: [PATCH 0866/1274] Revert "Removed Audit.php" This reverts commit 49dd7d7bcbad1b76b4116969037a8b71cd2370fb. --- src/Google/Service/Audit.php | 416 +++++++++++++++++++++++++++++++++++ 1 file changed, 416 insertions(+) create mode 100644 src/Google/Service/Audit.php diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php new file mode 100644 index 000000000..60672ecc3 --- /dev/null +++ b/src/Google/Service/Audit.php @@ -0,0 +1,416 @@ + + * 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) + { + parent::__construct($client); + $this->servicePath = 'apps/reporting/audit/v1/'; + $this->version = 'v1'; + $this->serviceName = 'audit'; + + $this->activities = new Google_Service_Audit_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'list' => array( + 'path' => '{customerId}/{applicationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'actorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorApplicationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorIpAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'caller' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'eventName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'continuationToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "activities" collection of methods. + * Typical usage is: + * + * $auditService = new Google_Service_Audit(...); + * $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.listActivities) + * + * @param string $customerId Represents the customer who is the owner of target + * object on which action was performed. + * @param string $applicationId Application ID of the application on which the + * event was performed. + * @param array $optParams Optional parameters. + * + * @opt_param string actorEmail Email address of the user who performed the + * action. + * @opt_param string actorApplicationId Application ID of the application which + * interacted on behalf of the user while performing the event. + * @opt_param string actorIpAddress IP Address of host where the event was + * performed. Supports both IPv4 and IPv6 addresses. + * @opt_param string caller Type of the caller. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string eventName Name of the event being queried. + * @opt_param string startTime Return events which occured at or after this + * time. + * @opt_param string endTime Return events which occured at or before this time. + * @opt_param string continuationToken Next page URL. + * @return Google_Service_Audit_Activities + */ + public function listActivities($customerId, $applicationId, $optParams = array()) + { + $params = array('customerId' => $customerId, 'applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Audit_Activities"); + } +} + + + + +class Google_Service_Audit_Activities extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Audit_Activity'; + protected $itemsDataType = 'array'; + 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 $collection_key = 'events'; + protected $internal_gapi_mappings = array( + ); + protected $actorType = 'Google_Service_Audit_ActivityActor'; + protected $actorDataType = ''; + protected $eventsType = 'Google_Service_Audit_ActivityEvents'; + protected $eventsDataType = 'array'; + protected $idType = 'Google_Service_Audit_ActivityId'; + protected $idDataType = ''; + public $ipAddress; + public $kind; + public $ownerDomain; + + + public function setActor(Google_Service_Audit_ActivityActor $actor) + { + $this->actor = $actor; + } + public function 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); + public $eventType; + public $name; + protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; + protected $parametersDataType = 'array'; + + + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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 +{ + protected $internal_gapi_mappings = array( + ); + 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; + } +} From d13ff990b44e7ab605b058d46b685978ab71b10b Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:24:53 -0700 Subject: [PATCH 0867/1274] Revert "Removed Cloudsearch.php" This reverts commit 6b26f5ca6c161700153eafa1c298601b29a7747c. --- src/Google/Service/Cloudsearch.php | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/Google/Service/Cloudsearch.php diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php new file mode 100644 index 000000000..a48878c92 --- /dev/null +++ b/src/Google/Service/Cloudsearch.php @@ -0,0 +1,57 @@ + + * The Google Cloud Search API defines an application interface to index + * documents that contain structured data and to search those indexes. It + * supports full text search.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudsearch extends Google_Service +{ + + + + + + /** + * Constructs the internal representation of the Cloudsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudsearch'; + + } +} + + + + From f4ef3ad48ab0809c7f6d94f83f07a80135ed18bc Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:35:40 -0700 Subject: [PATCH 0868/1274] Updated CloudUserAccounts.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/CloudUserAccounts.php | 1806 +++++++++++++++++++++- 1 file changed, 1805 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php index e197b7c61..4bc63e9c3 100644 --- a/src/Google/Service/CloudUserAccounts.php +++ b/src/Google/Service/CloudUserAccounts.php @@ -1 +1,1805 @@ -skipped \ No newline at end of file + + * API for the Google Cloud User Accounts service.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_CloudUserAccounts extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS = + "https://www.googleapis.com/auth/cloud.useraccounts"; + /** View your Google Cloud User Accounts. */ + const CLOUD_USERACCOUNTS_READONLY = + "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; + /** Manage your Google Compute Accounts. */ + const COMPUTEACCOUNTS = + "https://www.googleapis.com/auth/computeaccounts"; + /** View your Google Compute Accounts. */ + const COMPUTEACCOUNTS_READONLY = + "https://www.googleapis.com/auth/computeaccounts.readonly"; + + public $globalAccountsOperations; + public $groups; + public $linux; + public $users; + + + /** + * Constructs the internal representation of the CloudUserAccounts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'clouduseraccounts/vm_alpha/projects/'; + $this->version = 'vm_alpha'; + $this->serviceName = 'clouduseraccounts'; + + $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource( + $this, + $this->serviceName, + 'globalAccountsOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_CloudUserAccounts_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'addMember' => array( + 'path' => '{project}/global/groups/{groupName}/addMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/groups/{groupName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removeMember' => array( + 'path' => '{project}/global/groups/{groupName}/removeMember', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->linux = new Google_Service_CloudUserAccounts_Linux_Resource( + $this, + $this->serviceName, + 'linux', + array( + 'methods' => array( + 'getAuthorizedKeysView' => array( + 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getLinuxAccountViews' => array( + 'path' => '{project}/zones/{zone}/linuxAccountViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'user' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_CloudUserAccounts_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'addPublicKey' => array( + 'path' => '{project}/global/users/{user}/addPublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/users/{user}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removePublicKey' => array( + 'path' => '{project}/global/users/{user}/removePublicKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'user' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "globalAccountsOperations" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations; + * + */ +class Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified operation resource. (globalAccountsOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalAccountsOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalAccountsOperations.listGlobalAccountsOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_OperationList + */ + public function listGlobalAccountsOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $groups = $clouduseraccountsService->groups; + * + */ +class Google_Service_CloudUserAccounts_Groups_Resource extends Google_Service_Resource +{ + + /** + * Adds users to the specified group. (groups.addMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsAddMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Deletes the specified Group resource. (groups.delete) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function delete($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Returns the specified Group resource. (groups.get) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the Group resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Group + */ + public function get($project, $groupName, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group"); + } + + /** + * Creates a Group resource in the specified project using the data included in + * the request. (groups.insert) + * + * @param string $project Project ID for this request. + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves the list of groups contained within the specified project. + * (groups.listGroups) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_GroupList + */ + public function listGroups($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList"); + } + + /** + * Removes users from the specified group. (groups.removeMember) + * + * @param string $project Project ID for this request. + * @param string $groupName Name of the group for this request. + * @param Google_GroupsRemoveMemberRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation"); + } +} + +/** + * The "linux" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $linux = $clouduseraccountsService->linux; + * + */ +class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of authorized public keys for a specific user account. + * (linux.getAuthorizedKeysView) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $user The user account for which you want to get a list of + * authorized public keys. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the view. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse + */ + public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse"); + } + + /** + * Retrieves a list of user accounts for an instance within a specific project. + * (linux.getLinuxAccountViews) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. + * @param string $instance The fully-qualified URL of the virtual machine + * requesting the views. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string user If provided, the user requesting the views. If left + * blank, the system is requesting the views, instead of a particular user. + * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse + */ + public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); + * $users = $clouduseraccountsService->users; + * + */ +class Google_Service_CloudUserAccounts_Users_Resource extends Google_Service_Resource +{ + + /** + * Adds a public key to the specified User resource with the data included in + * the request. (users.addPublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param Google_PublicKey $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Deletes the specified User resource. (users.delete) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function delete($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Returns the specified User resource. (users.get) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_User + */ + public function get($project, $user, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User"); + } + + /** + * Creates a User resource in the specified project using the data included in + * the request. (users.insert) + * + * @param string $project Project ID for this request. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); + } + + /** + * Retrieves a list of users contained within the specified project. + * (users.listUsers) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must contain + * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: + * The name of the field you want to compare. The field name must be valid for + * the type of resource being filtered. Only atomic field types are supported + * (string, number, boolean). Array and object fields are not currently + * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or + * ne (not equals). - LITERAL_STRING: The literal string value to filter to. + * The literal value must be valid for the type of field (string, number, + * boolean). For string fields, the literal value is interpreted as a regular + * expression using RE2 syntax. The literal value must match the entire field. + * For example, you can filter by the name of a resource: filter=name ne + * example-instance The above filter returns only results whose name field does + * not equal example-instance. You can also enclose your literal string in + * single, double, or no quotes. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_CloudUserAccounts_UserList + */ + public function listUsers($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList"); + } + + /** + * Removes the specified public key from the user. (users.removePublicKey) + * + * @param string $project Project ID for this request. + * @param string $user Name of the user for this request. + * @param string $fingerprint The fingerprint of the public key to delete. + * Public keys are identified by their fingerprint, which is defined by RFC4716 + * to be the MD5 digest of the public key. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Operation + */ + public function removePublicKey($project, $user, $fingerprint, $optParams = array()) + { + $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); + $params = array_merge($params, $optParams); + return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); + } +} + + + + +class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $keys; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_CloudUserAccounts_Group extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $members; + public $name; + public $selfLink; + + + 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 setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + 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_CloudUserAccounts_GroupList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_Group'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $users; + + + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection +{ + protected $collection_key = 'userViews'; + protected $internal_gapi_mappings = array( + ); + protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView'; + protected $groupViewsDataType = 'array'; + public $kind; + protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView'; + protected $userViewsDataType = 'array'; + + + public function setGroupViews($groupViews) + { + $this->groupViews = $groupViews; + } + public function getGroupViews() + { + return $this->groupViews; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserViews($userViews) + { + $this->userViews = $userViews; + } + public function getUserViews() + { + return $this->userViews; + } +} + +class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews'; + protected $resourceDataType = ''; + + + public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $gid; + public $groupName; + public $members; + + + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setGroupName($groupName) + { + $this->groupName = $groupName; + } + public function getGroupName() + { + return $this->groupName; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } +} + +class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gecos; + public $gid; + public $homeDirectory; + public $shell; + public $uid; + public $username; + + + public function setGecos($gecos) + { + $this->gecos = $gecos; + } + public function getGecos() + { + return $this->gecos; + } + public function setGid($gid) + { + $this->gid = $gid; + } + public function getGid() + { + return $this->gid; + } + public function setHomeDirectory($homeDirectory) + { + $this->homeDirectory = $homeDirectory; + } + public function getHomeDirectory() + { + return $this->homeDirectory; + } + public function setShell($shell) + { + $this->shell = $shell; + } + public function getShell() + { + return $this->shell; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_CloudUserAccounts_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_CloudUserAccounts_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_CloudUserAccounts_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_CloudUserAccounts_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CloudUserAccounts_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_CloudUserAccounts_PublicKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $expirationTimestamp; + public $fingerprint; + public $key; + + + 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 setExpirationTimestamp($expirationTimestamp) + { + $this->expirationTimestamp = $expirationTimestamp; + } + public function getExpirationTimestamp() + { + return $this->expirationTimestamp; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } +} + +class Google_Service_CloudUserAccounts_User extends Google_Collection +{ + protected $collection_key = 'publicKeys'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $groups; + public $id; + public $kind; + public $name; + public $owner; + protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey'; + protected $publicKeysDataType = 'array'; + public $selfLink; + + + 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 setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } + 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 setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + public function getPublicKeys() + { + return $this->publicKeys; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_CloudUserAccounts_UserList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_CloudUserAccounts_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} From facfdfca9884619e73f287695a2ec7f30e4af86c Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:35:41 -0700 Subject: [PATCH 0869/1274] Updated DeploymentManager.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/DeploymentManager.php | 1601 +++++++++++++++++++++- 1 file changed, 1600 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/DeploymentManager.php b/src/Google/Service/DeploymentManager.php index e197b7c61..30d74421b 100644 --- a/src/Google/Service/DeploymentManager.php +++ b/src/Google/Service/DeploymentManager.php @@ -1 +1,1600 @@ -skipped \ No newline at end of file + + * The Deployment Manager API allows users to declaratively configure, deploy + * and run complex solutions on the Google Cloud Platform.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_DeploymentManager extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + + public $deployments; + public $manifests; + public $operations; + public $resources; + public $types; + + + /** + * Constructs the internal representation of the DeploymentManager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'deploymentmanager/v2beta2/projects/'; + $this->version = 'v2beta2'; + $this->serviceName = 'deploymentmanager'; + + $this->deployments = new Google_Service_DeploymentManager_Deployments_Resource( + $this, + $this->serviceName, + 'deployments', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deletePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createPolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => '{project}/global/deployments/{deployment}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deletePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatePolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createPolicy' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->manifests = new Google_Service_DeploymentManager_Manifests_Resource( + $this, + $this->serviceName, + 'manifests', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'manifest' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/manifests', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_DeploymentManager_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->resources = new Google_Service_DeploymentManager_Resources_Resource( + $this, + $this->serviceName, + 'resources', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/deployments/{deployment}/resources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->types = new Google_Service_DeploymentManager_Types_Resource( + $this, + $this->serviceName, + 'types', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/global/types', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "deployments" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $deployments = $deploymentmanagerService->deployments; + * + */ +class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a deployment and all of the resources in the deployment. + * (deployments.delete) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function delete($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Gets information about a specific deployment. (deployments.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Deployment + */ + public function get($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment"); + } + + /** + * Creates a deployment and all of the resources described by the deployment + * manifest. (deployments.insert) + * + * @param string $project The project ID for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Lists all deployments for a given project. (deployments.listDeployments) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_DeploymentsListResponse + */ + public function listDeployments($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse"); + } + + /** + * Updates a deployment and all of the resources described by the deployment + * manifest. This method supports patch semantics. (deployments.patch) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string deletePolicy Sets the policy to use for deleting resources. + * @opt_param string updatePolicy Sets the policy to use for updating resources. + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @return Google_Service_DeploymentManager_Operation + */ + public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Updates a deployment and all of the resources described by the deployment + * manifest. (deployments.update) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string deletePolicy Sets the policy to use for deleting resources. + * @opt_param string updatePolicy Sets the policy to use for updating resources. + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @return Google_Service_DeploymentManager_Operation + */ + public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation"); + } +} + +/** + * The "manifests" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $manifests = $deploymentmanagerService->manifests; + * + */ +class Google_Service_DeploymentManager_Manifests_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific manifest. (manifests.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $manifest The name of the manifest for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Manifest + */ + public function get($project, $deployment, $manifest, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest"); + } + + /** + * Lists all manifests for a given deployment. (manifests.listManifests) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_ManifestsListResponse + */ + public function listManifests($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $operations = $deploymentmanagerService->operations; + * + */ +class Google_Service_DeploymentManager_Operations_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific operation. (operations.get) + * + * @param string $project The project ID for this request. + * @param string $operation The name of the operation for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation"); + } + + /** + * Lists all operations for a project. (operations.listOperations) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_OperationsListResponse + */ + public function listOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse"); + } +} + +/** + * The "resources" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $resources = $deploymentmanagerService->resources; + * + */ +class Google_Service_DeploymentManager_Resources_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a single resource. (resources.get) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param string $resource The name of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_DeploymentmanagerResource + */ + public function get($project, $deployment, $resource, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource"); + } + + /** + * Lists all resources in a given deployment. (resources.listResources) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_ResourcesListResponse + */ + public function listResources($project, $deployment, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse"); + } +} + +/** + * The "types" collection of methods. + * Typical usage is: + * + * $deploymentmanagerService = new Google_Service_DeploymentManager(...); + * $types = $deploymentmanagerService->types; + * + */ +class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Resource +{ + + /** + * Lists all resource types for Deployment Manager. (types.listTypes) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_DeploymentManager_TypesListResponse + */ + public function listTypes($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse"); + } +} + + + + +class Google_Service_DeploymentManager_Deployment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $fingerprint; + public $id; + public $insertTime; + public $intent; + public $manifest; + public $name; + public $state; + protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration'; + protected $targetDataType = ''; + protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; + protected $updateDataType = ''; + public $updateTime; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function 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 setIntent($intent) + { + $this->intent = $intent; + } + public function getIntent() + { + return $this->intent; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update) + { + $this->update = $update; + } + public function getUpdate() + { + return $this->update; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $errors; + public $manifest; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } +} + +class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $finalProperties; + public $id; + public $insertTime; + public $manifest; + public $name; + public $properties; + public $type; + protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate'; + protected $updateDataType = ''; + public $updateTime; + public $url; + + + public function setFinalProperties($finalProperties) + { + $this->finalProperties = $finalProperties; + } + public function getFinalProperties() + { + return $this->finalProperties; + } + 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 setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update) + { + $this->update = $update; + } + public function getUpdate() + { + return $this->update; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection +{ + protected $collection_key = 'deployments'; + protected $internal_gapi_mappings = array( + ); + protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment'; + protected $deploymentsDataType = 'array'; + public $nextPageToken; + + + public function setDeployments($deployments) + { + $this->deployments = $deployments; + } + public function getDeployments() + { + return $this->deployments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_DeploymentManager_ImportFile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $content; + public $name; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_DeploymentManager_Manifest extends Google_Collection +{ + protected $collection_key = 'imports'; + protected $internal_gapi_mappings = array( + ); + public $config; + public $evaluatedConfig; + public $id; + protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; + protected $importsDataType = 'array'; + public $insertTime; + public $layout; + public $name; + public $selfLink; + + + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setEvaluatedConfig($evaluatedConfig) + { + $this->evaluatedConfig = $evaluatedConfig; + } + public function getEvaluatedConfig() + { + return $this->evaluatedConfig; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setImports($imports) + { + $this->imports = $imports; + } + public function getImports() + { + return $this->imports; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setLayout($layout) + { + $this->layout = $layout; + } + public function getLayout() + { + return $this->layout; + } + 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_DeploymentManager_ManifestsListResponse extends Google_Collection +{ + protected $collection_key = 'manifests'; + protected $internal_gapi_mappings = array( + ); + protected $manifestsType = 'Google_Service_DeploymentManager_Manifest'; + protected $manifestsDataType = 'array'; + public $nextPageToken; + + + public function setManifests($manifests) + { + $this->manifests = $manifests; + } + public function getManifests() + { + return $this->manifests; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_DeploymentManager_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_DeploymentManager_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_DeploymentManager_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_DeploymentManager_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_OperationsListResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_DeploymentManager_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $errors; + public $finalProperties; + public $intent; + public $manifest; + public $properties; + public $state; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setFinalProperties($finalProperties) + { + $this->finalProperties = $finalProperties; + } + public function getFinalProperties() + { + return $this->finalProperties; + } + public function setIntent($intent) + { + $this->intent = $intent; + } + public function getIntent() + { + return $this->intent; + } + public function setManifest($manifest) + { + $this->manifest = $manifest; + } + public function getManifest() + { + return $this->manifest; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_DeploymentManager_ResourcesListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource'; + protected $resourcesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection +{ + protected $collection_key = 'imports'; + protected $internal_gapi_mappings = array( + ); + public $config; + protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; + protected $importsDataType = 'array'; + + + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setImports($imports) + { + $this->imports = $imports; + } + public function getImports() + { + return $this->imports; + } +} + +class Google_Service_DeploymentManager_Type extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection +{ + protected $collection_key = 'types'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $typesType = 'Google_Service_DeploymentManager_Type'; + protected $typesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTypes($types) + { + $this->types = $types; + } + public function getTypes() + { + return $this->types; + } +} From 911c7dac41f5917d42a4ba8cc1c66d985b294cf1 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 29 Jun 2015 11:35:42 -0700 Subject: [PATCH 0870/1274] Updated Webmasters.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Webmasters.php | 1204 ++++++++++++++++++++++++++++- 1 file changed, 1203 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index e197b7c61..8f332cad2 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -1 +1,1203 @@ -skipped \ No newline at end of file + + * Lets you view Google Webmaster Tools data for your verified sites.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Webmasters extends Google_Service +{ + /** View and modify Webmaster Tools data for your verified sites. */ + const WEBMASTERS = + "https://www.googleapis.com/auth/webmasters"; + /** View Webmaster Tools data for your verified sites. */ + const WEBMASTERS_READONLY = + "https://www.googleapis.com/auth/webmasters.readonly"; + + public $searchanalytics; + public $sitemaps; + public $sites; + public $urlcrawlerrorscounts; + public $urlcrawlerrorssamples; + + + /** + * Constructs the internal representation of the Webmasters service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'webmasters/v3/'; + $this->version = 'v3'; + $this->serviceName = 'webmasters'; + + $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( + $this, + $this->serviceName, + 'searchanalytics', + array( + 'methods' => array( + 'query' => array( + 'path' => 'sites/{siteUrl}/searchAnalytics/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( + $this, + $this->serviceName, + 'sitemaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites/{siteUrl}/sitemaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sitemapIndex' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'submit' => array( + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'feedpath' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sites = new Google_Service_Webmasters_Sites_Resource( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'add' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'sites/{siteUrl}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( + $this, + $this->serviceName, + 'urlcrawlerrorscounts', + array( + 'methods' => array( + 'query' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'latestCountsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( + $this, + $this->serviceName, + 'urlcrawlerrorssamples', + array( + 'methods' => array( + 'get' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'url' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', + 'httpMethod' => 'GET', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'markAsFixed' => array( + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'url' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'category' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "searchanalytics" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $searchanalytics = $webmastersService->searchanalytics; + * + */ +class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource +{ + + /** + * [LIMITED ACCESS] + * + * Query your data with filters and parameters that you define. Returns zero or + * more rows grouped by the row keys that you define. You must define a date + * range of one or more days. + * + * When date is one of the group by values, any days without data are omitted + * from the result list. If you need to know which days have data, issue a broad + * date range query grouped by date for any metric, and see which day rows are + * returned. (searchanalytics.query) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param Google_SearchAnalyticsQueryRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse + */ + public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); + } +} + +/** + * The "sitemaps" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $sitemaps = $webmastersService->sitemaps; + * + */ +class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes a sitemap from this site. (sitemaps.delete) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml + * @param array $optParams Optional parameters. + */ + public function delete($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves information about a specific sitemap. (sitemaps.get) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_WmxSitemap + */ + public function get($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); + } + + /** + * Lists the sitemaps-entries submitted for this site, or included in the + * sitemap index file (if sitemapIndex is specified in the request). + * (sitemaps.listSitemaps) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param array $optParams Optional parameters. + * + * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: + * http://www.example.com/sitemapindex.xml + * @return Google_Service_Webmasters_SitemapsListResponse + */ + public function listSitemaps($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); + } + + /** + * Submits a sitemap for a site. (sitemaps.submit) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the sitemap to add. For example: + * http://www.example.com/sitemap.xml + * @param array $optParams Optional parameters. + */ + public function submit($siteUrl, $feedpath, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); + $params = array_merge($params, $optParams); + return $this->call('submit', array($params)); + } +} + +/** + * The "sites" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $sites = $webmastersService->sites; + * + */ +class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource +{ + + /** + * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) + * + * @param string $siteUrl The URL of the site to add. + * @param array $optParams Optional parameters. + */ + public function add($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('add', array($params)); + } + + /** + * Removes a site from the set of the user's Webmaster Tools sites. + * (sites.delete) + * + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ + * @param array $optParams Optional parameters. + */ + public function delete($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves information about specific site. (sites.get) + * + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_WmxSite + */ + public function get($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); + } + + /** + * Lists the user's Webmaster Tools sites. (sites.listSites) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_SitesListResponse + */ + public function listSites($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); + } +} + +/** + * The "urlcrawlerrorscounts" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts; + * + */ +class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a time series of the number of URL crawl errors per error category + * and platform. (urlcrawlerrorscounts.query) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param array $optParams Optional parameters. + * + * @opt_param string category The crawl error category. For example: + * serverError. If not specified, returns results for all categories. + * @opt_param string platform The user agent type (platform) that made the + * request. For example: web. If not specified, returns results for all + * platforms. + * @opt_param bool latestCountsOnly If true, returns only the latest crawl error + * counts. + * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse + */ + public function query($siteUrl, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); + } +} + +/** + * The "urlcrawlerrorssamples" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples; + * + */ +class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details about crawl errors for a site's sample URL. + * (urlcrawlerrorssamples.get) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_UrlCrawlErrorsSample + */ + public function get($siteUrl, $url, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); + } + + /** + * Lists a site's sample URLs for the specified crawl error category and + * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse + */ + public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); + } + + /** + * Marks the provided site's sample URL as fixed, and removes it from the + * samples list. (urlcrawlerrorssamples.markAsFixed) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web + * @param array $optParams Optional parameters. + */ + public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); + $params = array_merge($params, $optParams); + return $this->call('markAsFixed', array($params)); + } +} + + + + +class Google_Service_Webmasters_ApiDataRow extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $clicks; + public $ctr; + public $impressions; + public $keys; + public $position; + + + public function setClicks($clicks) + { + $this->clicks = $clicks; + } + public function getClicks() + { + return $this->clicks; + } + public function setCtr($ctr) + { + $this->ctr = $ctr; + } + public function getCtr() + { + return $this->ctr; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + +class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dimension; + public $expression; + public $operator; + + + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } +} + +class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection +{ + protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); + protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter'; + protected $filtersDataType = 'array'; + public $groupType; + + + public function setFilters($filters) + { + $this->filters = $filters; + } + public function getFilters() + { + return $this->filters; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection +{ + protected $collection_key = 'dimensions'; + protected $internal_gapi_mappings = array( + ); + public $aggregationType; + protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup'; + protected $dimensionFilterGroupsDataType = 'array'; + public $dimensions; + public $endDate; + public $rowLimit; + public $searchType; + public $startDate; + + + public function setAggregationType($aggregationType) + { + $this->aggregationType = $aggregationType; + } + public function getAggregationType() + { + return $this->aggregationType; + } + public function setDimensionFilterGroups($dimensionFilterGroups) + { + $this->dimensionFilterGroups = $dimensionFilterGroups; + } + public function getDimensionFilterGroups() + { + return $this->dimensionFilterGroups; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRowLimit($rowLimit) + { + $this->rowLimit = $rowLimit; + } + public function getRowLimit() + { + return $this->rowLimit; + } + public function setSearchType($searchType) + { + $this->searchType = $searchType; + } + public function getSearchType() + { + return $this->searchType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection +{ + protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); + public $responseAggregationType; + protected $rowsType = 'Google_Service_Webmasters_ApiDataRow'; + protected $rowsDataType = 'array'; + + + public function setResponseAggregationType($responseAggregationType) + { + $this->responseAggregationType = $responseAggregationType; + } + public function getResponseAggregationType() + { + return $this->responseAggregationType; + } + public function setRows($rows) + { + $this->rows = $rows; + } + public function getRows() + { + return $this->rows; + } +} + +class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection +{ + protected $collection_key = 'sitemap'; + protected $internal_gapi_mappings = array( + ); + protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; + protected $sitemapDataType = 'array'; + + + public function setSitemap($sitemap) + { + $this->sitemap = $sitemap; + } + public function getSitemap() + { + return $this->sitemap; + } +} + +class Google_Service_Webmasters_SitesListResponse extends Google_Collection +{ + protected $collection_key = 'siteEntry'; + protected $internal_gapi_mappings = array( + ); + protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; + protected $siteEntryDataType = 'array'; + + + public function setSiteEntry($siteEntry) + { + $this->siteEntry = $siteEntry; + } + public function getSiteEntry() + { + return $this->siteEntry; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $count; + public $timestamp; + + + public function setCount($count) + { + $this->count = $count; + } + public function getCount() + { + return $this->count; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + public $category; + protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; + protected $entriesDataType = 'array'; + public $platform; + + + public function setCategory($category) + { + $this->category = $category; + } + public function getCategory() + { + return $this->category; + } + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setPlatform($platform) + { + $this->platform = $platform; + } + public function getPlatform() + { + return $this->platform; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection +{ + protected $collection_key = 'countPerTypes'; + protected $internal_gapi_mappings = array( + ); + protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; + protected $countPerTypesDataType = 'array'; + + + public function setCountPerTypes($countPerTypes) + { + $this->countPerTypes = $countPerTypes; + } + public function getCountPerTypes() + { + return $this->countPerTypes; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model +{ + protected $internal_gapi_mappings = array( + "firstDetected" => "first_detected", + "lastCrawled" => "last_crawled", + ); + public $firstDetected; + public $lastCrawled; + public $pageUrl; + public $responseCode; + protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; + protected $urlDetailsDataType = ''; + + + public function setFirstDetected($firstDetected) + { + $this->firstDetected = $firstDetected; + } + public function getFirstDetected() + { + return $this->firstDetected; + } + public function setLastCrawled($lastCrawled) + { + $this->lastCrawled = $lastCrawled; + } + public function getLastCrawled() + { + return $this->lastCrawled; + } + public function setPageUrl($pageUrl) + { + $this->pageUrl = $pageUrl; + } + public function getPageUrl() + { + return $this->pageUrl; + } + public function setResponseCode($responseCode) + { + $this->responseCode = $responseCode; + } + public function getResponseCode() + { + return $this->responseCode; + } + public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) + { + $this->urlDetails = $urlDetails; + } + public function getUrlDetails() + { + return $this->urlDetails; + } +} + +class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection +{ + protected $collection_key = 'urlCrawlErrorSample'; + protected $internal_gapi_mappings = array( + ); + protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; + protected $urlCrawlErrorSampleDataType = 'array'; + + + public function setUrlCrawlErrorSample($urlCrawlErrorSample) + { + $this->urlCrawlErrorSample = $urlCrawlErrorSample; + } + public function getUrlCrawlErrorSample() + { + return $this->urlCrawlErrorSample; + } +} + +class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection +{ + protected $collection_key = 'linkedFromUrls'; + protected $internal_gapi_mappings = array( + ); + public $containingSitemaps; + public $linkedFromUrls; + + + public function setContainingSitemaps($containingSitemaps) + { + $this->containingSitemaps = $containingSitemaps; + } + public function getContainingSitemaps() + { + return $this->containingSitemaps; + } + public function setLinkedFromUrls($linkedFromUrls) + { + $this->linkedFromUrls = $linkedFromUrls; + } + public function getLinkedFromUrls() + { + return $this->linkedFromUrls; + } +} + +class Google_Service_Webmasters_WmxSite extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $permissionLevel; + public $siteUrl; + + + public function setPermissionLevel($permissionLevel) + { + $this->permissionLevel = $permissionLevel; + } + public function getPermissionLevel() + { + return $this->permissionLevel; + } + public function setSiteUrl($siteUrl) + { + $this->siteUrl = $siteUrl; + } + public function getSiteUrl() + { + return $this->siteUrl; + } +} + +class Google_Service_Webmasters_WmxSitemap extends Google_Collection +{ + protected $collection_key = 'contents'; + protected $internal_gapi_mappings = array( + ); + protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; + protected $contentsDataType = 'array'; + public $errors; + public $isPending; + public $isSitemapsIndex; + public $lastDownloaded; + public $lastSubmitted; + public $path; + public $type; + public $warnings; + + + public function setContents($contents) + { + $this->contents = $contents; + } + public function getContents() + { + return $this->contents; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setIsPending($isPending) + { + $this->isPending = $isPending; + } + public function getIsPending() + { + return $this->isPending; + } + public function setIsSitemapsIndex($isSitemapsIndex) + { + $this->isSitemapsIndex = $isSitemapsIndex; + } + public function getIsSitemapsIndex() + { + return $this->isSitemapsIndex; + } + public function setLastDownloaded($lastDownloaded) + { + $this->lastDownloaded = $lastDownloaded; + } + public function getLastDownloaded() + { + return $this->lastDownloaded; + } + public function setLastSubmitted($lastSubmitted) + { + $this->lastSubmitted = $lastSubmitted; + } + public function getLastSubmitted() + { + return $this->lastSubmitted; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_Webmasters_WmxSitemapContent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $indexed; + public $submitted; + public $type; + + + public function setIndexed($indexed) + { + $this->indexed = $indexed; + } + public function getIndexed() + { + return $this->indexed; + } + public function setSubmitted($submitted) + { + $this->submitted = $submitted; + } + public function getSubmitted() + { + return $this->submitted; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} From 7478eb4bd1990089779d2edd01e5f24a479ca4a2 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Wed, 1 Jul 2015 10:44:50 -0700 Subject: [PATCH 0871/1274] Remove stale authors --- src/Google/Service/Resource.php | 4 ++-- tests/general/ApiOAuth2Test.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 537da520a..b0514d722 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -72,7 +72,7 @@ public function __construct($service, $serviceName, $resourceName, $resource) } /** - * TODO(ianbarber): This function needs simplifying. + * TODO: This function needs simplifying. * @param $name * @param $arguments * @param $expected_class - optional, the expected class name @@ -118,7 +118,7 @@ public function call($name, $arguments, $expected_class = null) unset($parameters['postBody']); } - // TODO(ianbarber): optParams here probably should have been + // TODO: optParams here probably should have been // handled already - this may well be redundant code. if (isset($parameters['optParams'])) { $optParams = $parameters['optParams']; diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 768478cf9..0a3a4cad1 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -186,7 +186,7 @@ public function testValidateIdToken() ); $this->assertTrue(strlen($ticket->getUserId()) > 0); - // TODO(ianbarber): Need to be smart about testing/disabling the + // TODO: Need to be smart about testing/disabling the // caching for this test to make sense. Not sure how to do that // at the moment. $client = $this->getClient(); From fc9e70108225beb3c6d8ab404df3a84eaab2e373 Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Mon, 6 Jul 2015 11:14:00 -0400 Subject: [PATCH 0872/1274] Fix base component to trim trailing slash from the URL --- src/Google/Http/Request.php | 2 +- tests/general/Http/BatchTest.php | 2 +- tests/general/Http/RequestTest.php | 41 ++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 tests/general/Http/RequestTest.php diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php index b3113d5b6..a87404c5f 100644 --- a/src/Google/Http/Request.php +++ b/src/Google/Http/Request.php @@ -83,7 +83,7 @@ public function getBaseComponent() */ public function setBaseComponent($baseComponent) { - $this->baseComponent = $baseComponent; + $this->baseComponent = rtrim($baseComponent, '/'); } /** diff --git a/tests/general/Http/BatchTest.php b/tests/general/Http/BatchTest.php index 04246006a..64a5d65fc 100644 --- a/tests/general/Http/BatchTest.php +++ b/tests/general/Http/BatchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class BatchTest extends PHPUnit_Framework_TestCase +class Google_Http_BatchTest extends PHPUnit_Framework_TestCase { public function setUp() diff --git a/tests/general/Http/RequestTest.php b/tests/general/Http/RequestTest.php new file mode 100644 index 000000000..bfeef66a8 --- /dev/null +++ b/tests/general/Http/RequestTest.php @@ -0,0 +1,41 @@ +assertEquals("https://api.example.com", $request->getBaseComponent()); + } + + public function testBaseComponentExplicitStripsSlashes() + { + $request = new Google_Http_Request("https://api.example.com/base"); + $request->setBaseComponent("https://other.example.com/"); + $this->assertEquals("https://other.example.com", $request->getBaseComponent()); + } + + public function testBaseComponentWithPathExplicitStripsSlashes() + { + $request = new Google_Http_Request("https://api.example.com/base"); + $request->setBaseComponent("https://other.example.com/path/"); + $this->assertEquals("https://other.example.com/path", $request->getBaseComponent()); + } + +} \ No newline at end of file From 36ae1c2891bab7c194eb72063a43043b609ac591 Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Mon, 6 Jul 2015 11:18:59 -0400 Subject: [PATCH 0873/1274] Add newline at end of file --- tests/general/Http/RequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/general/Http/RequestTest.php b/tests/general/Http/RequestTest.php index bfeef66a8..4e8cb2ad7 100644 --- a/tests/general/Http/RequestTest.php +++ b/tests/general/Http/RequestTest.php @@ -38,4 +38,4 @@ public function testBaseComponentWithPathExplicitStripsSlashes() $this->assertEquals("https://other.example.com/path", $request->getBaseComponent()); } -} \ No newline at end of file +} From dc83eb43eaf405f650cb6a0c007bab259e15f69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 00:45:34 -0400 Subject: [PATCH 0874/1274] Fix: Install dependencies in install section --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 576503dd7..60fa8e37d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ services: env: global: - - MEMCACHE_HOST=127.0.0.1 + - MEMCACHE_HOST=127.0.0.1 - MEMCACHE_PORT=11211 sudo: false @@ -19,8 +19,10 @@ php: - 5.6 - hhvm -before_script: +install: - composer install + +before_script: - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true From cfda48db780124e53c349077255ed642152a356e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 00:51:16 -0400 Subject: [PATCH 0875/1274] Enhancement: Cache dependencies between builds --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 576503dd7..1aac09c3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,15 @@ services: env: global: - - MEMCACHE_HOST=127.0.0.1 + - MEMCACHE_HOST=127.0.0.1 - MEMCACHE_PORT=11211 sudo: false +cache: + directories: + - $HOME/.composer/cache + php: # Can't test against 5.2; openssl is not available: # http://docs.travis-ci.com/user/languages/php/#PHP-installation From d926f249f8c132793ba78b00b2d0aabcc1c150bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 10:22:26 -0400 Subject: [PATCH 0876/1274] Fix: Remove ComputeAccounts --- src/Google/Service/ComputeAccounts.php | 1805 ------------------------ 1 file changed, 1805 deletions(-) delete mode 100644 src/Google/Service/ComputeAccounts.php diff --git a/src/Google/Service/ComputeAccounts.php b/src/Google/Service/ComputeAccounts.php deleted file mode 100644 index e80b3c483..000000000 --- a/src/Google/Service/ComputeAccounts.php +++ /dev/null @@ -1,1805 +0,0 @@ - - * API for the Google Compute Accounts service.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_ComputeAccounts extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS = - "https://www.googleapis.com/auth/cloud.useraccounts"; - /** View your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS_READONLY = - "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; - /** Manage your Google Compute Accounts. */ - const COMPUTEACCOUNTS = - "https://www.googleapis.com/auth/computeaccounts"; - /** View your Google Compute Accounts. */ - const COMPUTEACCOUNTS_READONLY = - "https://www.googleapis.com/auth/computeaccounts.readonly"; - - public $globalAccountsOperations; - public $groups; - public $linux; - public $users; - - - /** - * Constructs the internal representation of the ComputeAccounts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'computeaccounts/alpha/projects/'; - $this->version = 'alpha'; - $this->serviceName = 'computeaccounts'; - - $this->globalAccountsOperations = new Google_Service_ComputeAccounts_GlobalAccountsOperations_Resource( - $this, - $this->serviceName, - 'globalAccountsOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_ComputeAccounts_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'addMember' => array( - 'path' => '{project}/global/groups/{groupName}/addMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeMember' => array( - 'path' => '{project}/global/groups/{groupName}/removeMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->linux = new Google_Service_ComputeAccounts_Linux_Resource( - $this, - $this->serviceName, - 'linux', - array( - 'methods' => array( - 'getAuthorizedKeysView' => array( - 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getLinuxAccountViews' => array( - 'path' => '{project}/zones/{zone}/linuxAccountViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'user' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_ComputeAccounts_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'addPublicKey' => array( - 'path' => '{project}/global/users/{user}/addPublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removePublicKey' => array( - 'path' => '{project}/global/users/{user}/removePublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "globalAccountsOperations" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_ComputeAccounts(...); - * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; - * - */ -class Google_Service_ComputeAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified operation resource. (globalAccountsOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalAccountsOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalAccountsOperations.listGlobalAccountsOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_ComputeAccounts_OperationList - */ - public function listGlobalAccountsOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ComputeAccounts_OperationList"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_ComputeAccounts(...); - * $groups = $computeaccountsService->groups; - * - */ -class Google_Service_ComputeAccounts_Groups_Resource extends Google_Service_Resource -{ - - /** - * Adds users to the specified group. (groups.addMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsAddMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function addMember($project, $groupName, Google_Service_ComputeAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addMember', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Deletes the specified Group resource. (groups.delete) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function delete($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Returns the specified Group resource. (groups.get) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Group - */ - public function get($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ComputeAccounts_Group"); - } - - /** - * Creates a Group resource in the specified project using the data included in - * the request. (groups.insert) - * - * @param string $project Project ID for this request. - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function insert($project, Google_Service_ComputeAccounts_Group $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Retrieves the list of groups contained within the specified project. - * (groups.listGroups) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_ComputeAccounts_GroupList - */ - public function listGroups($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ComputeAccounts_GroupList"); - } - - /** - * Removes users from the specified group. (groups.removeMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsRemoveMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function removeMember($project, $groupName, Google_Service_ComputeAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeMember', array($params), "Google_Service_ComputeAccounts_Operation"); - } -} - -/** - * The "linux" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_ComputeAccounts(...); - * $linux = $computeaccountsService->linux; - * - */ -class Google_Service_ComputeAccounts_Linux_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of authorized public keys for a specific user account. - * (linux.getAuthorizedKeysView) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $user The user account for which you want to get a list of - * authorized public keys. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the view. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse - */ - public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getAuthorizedKeysView', array($params), "Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse"); - } - - /** - * Retrieves a list of user accounts for an instance within a specific project. - * (linux.getLinuxAccountViews) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the views. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string user If provided, the user requesting the views. If left - * blank, the system is requesting the views, instead of a particular user. - * @return Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse - */ - public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getLinuxAccountViews', array($params), "Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_ComputeAccounts(...); - * $users = $computeaccountsService->users; - * - */ -class Google_Service_ComputeAccounts_Users_Resource extends Google_Service_Resource -{ - - /** - * Adds a public key to the specified User resource with the data included in - * the request. (users.addPublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param Google_PublicKey $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function addPublicKey($project, $user, Google_Service_ComputeAccounts_PublicKey $postBody, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addPublicKey', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Deletes the specified User resource. (users.delete) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function delete($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Returns the specified User resource. (users.get) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_User - */ - public function get($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ComputeAccounts_User"); - } - - /** - * Creates a User resource in the specified project using the data included in - * the request. (users.insert) - * - * @param string $project Project ID for this request. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function insert($project, Google_Service_ComputeAccounts_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation"); - } - - /** - * Retrieves a list of users contained within the specified project. - * (users.listUsers) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @return Google_Service_ComputeAccounts_UserList - */ - public function listUsers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ComputeAccounts_UserList"); - } - - /** - * Removes the specified public key from the user. (users.removePublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param string $fingerprint The fingerprint of the public key to delete. - * Public keys are identified by their fingerprint, which is defined by RFC4716 - * to be the MD5 digest of the public key. - * @param array $optParams Optional parameters. - * @return Google_Service_ComputeAccounts_Operation - */ - public function removePublicKey($project, $user, $fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); - $params = array_merge($params, $optParams); - return $this->call('removePublicKey', array($params), "Google_Service_ComputeAccounts_Operation"); - } -} - - - - -class Google_Service_ComputeAccounts_AuthorizedKeysView extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $keys; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_ComputeAccounts_Group extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $members; - public $name; - public $selfLink; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - 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_ComputeAccounts_GroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_ComputeAccounts_Group'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_ComputeAccounts_GroupsAddMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_ComputeAccounts_GroupsRemoveMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_ComputeAccounts_LinuxAccountViews extends Google_Collection -{ - protected $collection_key = 'userViews'; - protected $internal_gapi_mappings = array( - ); - protected $groupViewsType = 'Google_Service_ComputeAccounts_LinuxGroupView'; - protected $groupViewsDataType = 'array'; - public $kind; - protected $userViewsType = 'Google_Service_ComputeAccounts_LinuxUserView'; - protected $userViewsDataType = 'array'; - - - public function setGroupViews($groupViews) - { - $this->groupViews = $groupViews; - } - public function getGroupViews() - { - return $this->groupViews; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserViews($userViews) - { - $this->userViews = $userViews; - } - public function getUserViews() - { - return $this->userViews; - } -} - -class Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_ComputeAccounts_AuthorizedKeysView'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_ComputeAccounts_AuthorizedKeysView $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_ComputeAccounts_LinuxAccountViews'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_ComputeAccounts_LinuxAccountViews $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_ComputeAccounts_LinuxGroupView extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $gid; - public $groupName; - public $members; - - - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setGroupName($groupName) - { - $this->groupName = $groupName; - } - public function getGroupName() - { - return $this->groupName; - } - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } -} - -class Google_Service_ComputeAccounts_LinuxUserView extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gecos; - public $gid; - public $homeDirectory; - public $shell; - public $uid; - public $username; - - - public function setGecos($gecos) - { - $this->gecos = $gecos; - } - public function getGecos() - { - return $this->gecos; - } - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setHomeDirectory($homeDirectory) - { - $this->homeDirectory = $homeDirectory; - } - public function getHomeDirectory() - { - return $this->homeDirectory; - } - public function setShell($shell) - { - $this->shell = $shell; - } - public function getShell() - { - return $this->shell; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_ComputeAccounts_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_ComputeAccounts_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_ComputeAccounts_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_ComputeAccounts_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_ComputeAccounts_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_ComputeAccounts_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ComputeAccounts_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ComputeAccounts_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_ComputeAccounts_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_ComputeAccounts_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_ComputeAccounts_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ComputeAccounts_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ComputeAccounts_PublicKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $expirationTimestamp; - public $fingerprint; - public $key; - - - 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 setExpirationTimestamp($expirationTimestamp) - { - $this->expirationTimestamp = $expirationTimestamp; - } - public function getExpirationTimestamp() - { - return $this->expirationTimestamp; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_ComputeAccounts_User extends Google_Collection -{ - protected $collection_key = 'publicKeys'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $groups; - public $id; - public $kind; - public $name; - public $owner; - protected $publicKeysType = 'Google_Service_ComputeAccounts_PublicKey'; - protected $publicKeysDataType = 'array'; - public $selfLink; - - - 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 setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setOwner($owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setPublicKeys($publicKeys) - { - $this->publicKeys = $publicKeys; - } - public function getPublicKeys() - { - return $this->publicKeys; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_ComputeAccounts_UserList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_ComputeAccounts_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} From ec31ab6450601f527e4909591d80ae0f5d0cc617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 10:27:40 -0400 Subject: [PATCH 0877/1274] Fix: Update Composer itself in before_install section --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3dc4bb43f..a07515f2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,9 @@ php: - 5.6 - hhvm +before_install: + - composer self-update + install: - composer install From 4372981ceb499d794226ff46e310860118d2ab04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 10:45:25 -0400 Subject: [PATCH 0878/1274] Enhancement: Require squizlabs/php_codesniffer as a dev dependency --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a4ca07dd3..224d0b666 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,8 @@ "php": ">=5.2.1" }, "require-dev": { - "phpunit/phpunit": "3.7.*" + "phpunit/phpunit": "3.7.*", + "squizlabs/php_codesniffer": "~2.3" }, "autoload": { "classmap": [ From 61ae35ee5f26e0b8b2d4d73d42b4f948a3fa231d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 10:49:36 -0400 Subject: [PATCH 0879/1274] Enhancement: Run phpcs on Travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 3dc4bb43f..7a65e8f65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,3 +34,4 @@ before_script: script: - vendor/bin/phpunit + - vendor/bin/phpcs src --standard=style/ruleset.xml -np From 7e41e4fccb04e3f6a4076914aea4340f18905e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 10:51:27 -0400 Subject: [PATCH 0880/1274] Enhancement: Run phpcs only on PHP 5.6 --- .travis.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7a65e8f65..942d61e95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,14 +14,16 @@ cache: directories: - $HOME/.composer/cache -php: - # Can't test against 5.2; openssl is not available: - # http://docs.travis-ci.com/user/languages/php/#PHP-installation - - 5.3 - - 5.4 - - 5.5 - - 5.6 - - hhvm +matrix: + include: + # Can't test against 5.2; openssl is not available: + # http://docs.travis-ci.com/user/languages/php/#PHP-installation + - php: 5.3 + - php: 5.4 + - php: 5.5 + - php: 5.6 + env: PHPCS=true + - php: hhvm install: - composer install @@ -34,4 +36,4 @@ before_script: script: - vendor/bin/phpunit - - vendor/bin/phpcs src --standard=style/ruleset.xml -np + - if [[ "$PHPCS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi From f41c83c6ca1f4c356bab27860eb5d879318c7dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 11:09:57 -0400 Subject: [PATCH 0881/1274] Enhancement: Finish early --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 942d61e95..a0620e16b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ cache: - $HOME/.composer/cache matrix: + fast_finish: true include: # Can't test against 5.2; openssl is not available: # http://docs.travis-ci.com/user/languages/php/#PHP-installation From b90b9d530148533ecbe234c7c57c1a9010987132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 18:11:19 -0400 Subject: [PATCH 0882/1274] Fix: Run phpcbf to fix issues --- src/Google/Auth/OAuth2.php | 2 +- src/Google/Client.php | 6 +++--- src/Google/Collection.php | 2 +- src/Google/Config.php | 4 ++-- src/Google/Http/MediaFileUpload.php | 2 +- src/Google/Http/Request.php | 8 ++++---- src/Google/Model.php | 2 +- src/Google/Service.php | 9 ++++----- src/Google/Service/Cloudsearch.php | 4 ---- src/Google/Service/Genomics.php | 4 ---- src/Google/Service/Playmoviespartner.php | 4 ---- src/Google/Signer/P12.php | 2 +- src/Google/Utils/URITemplate.php | 8 ++++---- 13 files changed, 22 insertions(+), 35 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 578e35878..a6041515c 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -95,7 +95,7 @@ public function authenticate($code, $crossClient = false) 'client_secret' => $this->client->getClassConfig($this, 'client_secret') ); - if($crossClient !== true) { + if ($crossClient !== true) { $arguments['redirect_uri'] = $this->client->getClassConfig($this, 'redirect_uri'); } diff --git a/src/Google/Client.php b/src/Google/Client.php index c58431f67..fc12a7c8b 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -129,10 +129,10 @@ public function authenticate($code, $crossClient = false) } /** - * Loads a service account key and parameters from a JSON + * Loads a service account key and parameters from a JSON * file from the Google Developer Console. Uses that and the - * given array of scopes to return an assertion credential for - * use with refreshTokenWithAssertionCredential. + * given array of scopes to return an assertion credential for + * use with refreshTokenWithAssertionCredential. * * @param string $jsonLocation File location of the project-key.json. * @param array $scopes The scopes to assert. diff --git a/src/Google/Collection.php b/src/Google/Collection.php index deed7111b..b26e9e51d 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -56,7 +56,7 @@ public function count() return count($this->modelData[$this->collection_key]); } - public function offsetExists ($offset) + public function offsetExists($offset) { if (!is_numeric($offset)) { return parent::offsetExists($offset); diff --git a/src/Google/Config.php b/src/Google/Config.php index 357a7fcff..d582d8316 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -380,8 +380,8 @@ public function setDeveloperKey($key) /** * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * + * restrict sign-in to accounts at that domain. + * * This should not be used to ensure security on your application - check * the hd values within an id token (@see Google_Auth_LoginTicket) after sign * in to ensure that the user is from the domain you were expecting. diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index b7c9fea73..5ea7ad28b 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -287,7 +287,7 @@ private function getResumeUri() } $message = $code; $body = @json_decode($response->getResponseBody()); - if (!empty( $body->error->errors ) ) { + if (!empty($body->error->errors) ) { $message .= ': '; foreach ($body->error->errors as $error) { $message .= "{$error->domain}, {$error->message};"; diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php index a87404c5f..c09a9d9cb 100644 --- a/src/Google/Http/Request.php +++ b/src/Google/Http/Request.php @@ -130,7 +130,7 @@ public function getQueryParams() return $this->queryParams; } - /** + /** * Set a new query parameter. * @param $key - string to set, does not need to be URL encoded * @param $value - string to set, does not need to be URL encoded @@ -441,7 +441,7 @@ public function toBatchString($id) /** * Our own version of parse_str that allows for multiple variables - * with the same name. + * with the same name. * @param $string - the query string to parse */ private function parseQuery($string) @@ -465,7 +465,7 @@ private function parseQuery($string) /** * A version of build query that allows for multiple - * duplicate keys. + * duplicate keys. * @param $parts array of key value pairs */ private function buildQuery($parts) @@ -483,7 +483,7 @@ private function buildQuery($parts) return implode('&', $return); } - /** + /** * If we're POSTing and have no body to send, we can send the query * parameters in there, which avoids length issues with longer query * params. diff --git a/src/Google/Model.php b/src/Google/Model.php index 5ebe59da2..df8216a80 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -25,7 +25,7 @@ class Google_Model implements ArrayAccess { /** * If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE - * instead - it will be replaced when converting to JSON with a real null. + * instead - it will be replaced when converting to JSON with a real null. */ const NULL_VALUE = "{}gapi-php-null"; protected $internal_gapi_mappings = array(); diff --git a/src/Google/Service.php b/src/Google/Service.php index 418dd1833..d3fd3b49d 100644 --- a/src/Google/Service.php +++ b/src/Google/Service.php @@ -47,11 +47,10 @@ public function getClient() public function createBatch() { return new Google_Http_Batch( - $this->client, - false, - $this->rootUrl, - $this->batchPath + $this->client, + false, + $this->rootUrl, + $this->batchPath ); } - } diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php index a48878c92..4a72df8fa 100644 --- a/src/Google/Service/Cloudsearch.php +++ b/src/Google/Service/Cloudsearch.php @@ -51,7 +51,3 @@ public function __construct(Google_Client $client) } } - - - - diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 3165001f1..c92482ec0 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -51,7 +51,3 @@ public function __construct(Google_Client $client) } } - - - - diff --git a/src/Google/Service/Playmoviespartner.php b/src/Google/Service/Playmoviespartner.php index 42426c79c..fb2a33bd8 100644 --- a/src/Google/Service/Playmoviespartner.php +++ b/src/Google/Service/Playmoviespartner.php @@ -51,7 +51,3 @@ public function __construct(Google_Client $client) } } - - - - diff --git a/src/Google/Signer/P12.php b/src/Google/Signer/P12.php index 7d3c167ff..1fbed87a8 100644 --- a/src/Google/Signer/P12.php +++ b/src/Google/Signer/P12.php @@ -46,7 +46,7 @@ public function __construct($p12, $password) // at the time. if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { $this->privateKey = openssl_pkey_get_private($p12); - } elseif($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) { + } elseif ($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) { $this->privateKey = openssl_pkey_get_private($p12); } else { // This throws on error diff --git a/src/Google/Utils/URITemplate.php b/src/Google/Utils/URITemplate.php index f5ee38bb3..0e30f80c4 100644 --- a/src/Google/Utils/URITemplate.php +++ b/src/Google/Utils/URITemplate.php @@ -16,7 +16,7 @@ */ /** - * Implementation of levels 1-3 of the URI Template spec. + * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ class Google_Utils_URITemplate @@ -26,7 +26,7 @@ class Google_Utils_URITemplate const TYPE_SCALAR = "4"; /** - * @var $operators array + * @var $operators array * These are valid at the start of a template block to * modify the way in which the variables inside are * processed. @@ -64,7 +64,7 @@ public function parse($string, array $parameters) /** * This function finds the first matching {...} block and * executes the replacement. It then calls itself to find - * subsequent blocks, if any. + * subsequent blocks, if any. */ private function resolveNextSection($string, $parameters) { @@ -213,7 +213,7 @@ public function combine( if (isset($parameters[$key])) { $data_type = $this->getDataType($parameters[$key]); - switch($data_type) { + switch ($data_type) { case self::TYPE_SCALAR: $value = $this->getValue($parameters[$key], $length); break; From 9fa101ec34474765b27e6f383d40030847282af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 18:16:37 -0400 Subject: [PATCH 0883/1274] Fix: Inline autoload function to fix non-camel-caps issue --- src/Google/autoload.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Google/autoload.php b/src/Google/autoload.php index 1cfccca57..a7229b709 100644 --- a/src/Google/autoload.php +++ b/src/Google/autoload.php @@ -15,8 +15,7 @@ * limitations under the License. */ -function google_api_php_client_autoload($className) -{ +spl_autoload_register(function ($className) { $classPath = explode('_', $className); if ($classPath[0] != 'Google') { return; @@ -28,6 +27,4 @@ function google_api_php_client_autoload($className) if (file_exists($filePath)) { require_once($filePath); } -} - -spl_autoload_register('google_api_php_client_autoload'); +}); From b2b7df47259a483f0e02c78312d656f861a8dbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 19:52:40 -0400 Subject: [PATCH 0884/1274] Fix: Run phpcbf again --- src/Google/autoload.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/Google/autoload.php b/src/Google/autoload.php index a7229b709..89e2a185f 100644 --- a/src/Google/autoload.php +++ b/src/Google/autoload.php @@ -15,16 +15,18 @@ * limitations under the License. */ -spl_autoload_register(function ($className) { - $classPath = explode('_', $className); - if ($classPath[0] != 'Google') { - return; - } - // Drop 'Google', and maximum class file path depth in this project is 3. - $classPath = array_slice($classPath, 1, 2); +spl_autoload_register( + function ($className) { + $classPath = explode('_', $className); + if ($classPath[0] != 'Google') { + return; + } + // Drop 'Google', and maximum class file path depth in this project is 3. + $classPath = array_slice($classPath, 1, 2); - $filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php'; - if (file_exists($filePath)) { - require_once($filePath); - } -}); + $filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php'; + if (file_exists($filePath)) { + require_once($filePath); + } + } +); From 8718f883ede4c72f95566737baf462d3abdc3394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Mo=CC=88ller?= Date: Tue, 7 Jul 2015 18:17:35 -0400 Subject: [PATCH 0885/1274] Fix: Update README.md --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fc79b3beb..d9797b828 100644 --- a/README.md +++ b/README.md @@ -84,18 +84,22 @@ $opt_params = array( The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to Google_Model::NULL_VALUE. This is a placeholder that will be replaced with a true null when sent over the wire. -## Notes For Distributors ## - -To avoid clashes with the autoloader, its best to update the function inside autoload.php to `google_api_php_client_autoload_MyProject`. - ## Code Quality ## Run the PHPUnit tests with PHPUnit. You can configure an API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console. phpunit tests/ -Copy the ruleset.xml in style/ into a new directory named GAPI/ in your -/usr/share/php/PHP/CodeSniffer/Standards (or appropriate equivalent directory), -and run code sniffs with: +### Coding Style + +To check for coding style violations, run - phpcs --standard=GAPI src/ +``` +vendor/bin/phpcs src --standard=style/ruleset.xml -np +``` + +To automatically fix (fixable) coding style violations, run + +``` +vendor/bin/phpcbf src --standard=style/ruleset.xml +``` From 20d554f42dec917b2ee98ff789f5ccb5eb0e8852 Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Mon, 27 Jul 2015 14:28:07 +0200 Subject: [PATCH 0886/1274] Stricter unix permissions for cache files. - only allow us (user running the code) to read/write from cache files. i.e. chmod 0700 on directories i.e. chmod 0600 on files - this is especially important when caching auth tokens, where previously it was world readable by anyone on the same machine: jean@machine:~# ls -l /tmp/Google_Client/5a/ total 4 -rw-r--r-- 1 jean jean 150 Apr 30 22:00 5ac38a276884f502e08b2d0e7dffb128 --- src/Google/Cache/File.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 30cbeab83..47256b89d 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -146,7 +146,7 @@ private function getCacheDir($file, $forWrite) // and thus give some basic amount of scalability $storageDir = $this->path . '/' . substr(md5($file), 0, 2); if ($forWrite && ! is_dir($storageDir)) { - if (! mkdir($storageDir, 0755, true)) { + if (! mkdir($storageDir, 0700, true)) { $this->client->getLogger()->error( 'File cache creation failed', array('dir' => $storageDir) @@ -186,6 +186,9 @@ private function acquireLock($type, $storageFile) ); return false; } + if ($type == LOCK_EX) { + chmod($storageFile, 0600); + } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { // Sleep for 10ms. From 19a3d17df44977bc726b0bf00184789cae055fe7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 17 Aug 2015 12:49:43 -0700 Subject: [PATCH 0887/1274] updates pubsub from v1beta2 to v1 --- src/Google/Service/Pubsub.php | 930 +++++++++++++++++++++------------- 1 file changed, 591 insertions(+), 339 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index e4fc97c33..9d38e3680 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -16,14 +16,14 @@ */ /** - * Service definition for Pubsub (v1beta1). + * Service definition for Pubsub (v1). * *

* Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,8 +37,9 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $subscriptions; - public $topics; + public $projects_subscriptions; + public $projects_topics; + public $projects_topics_subscriptions; /** @@ -49,27 +50,39 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'pubsub/v1beta1/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://pubsub.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'pubsub'; - $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => 'subscriptions/acknowledge', + 'path' => 'v1/{+subscription}:acknowledge', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'create' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -79,7 +92,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -88,55 +101,106 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( - 'path' => 'subscriptions', + 'path' => 'v1/{+project}/subscriptions', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'modifyAckDeadline' => array( - 'path' => 'subscriptions/modifyAckDeadline', + 'path' => 'v1/{+subscription}:modifyAckDeadline', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'modifyPushConfig' => array( - 'path' => 'subscriptions/modifyPushConfig', + 'path' => 'v1/{+subscription}:modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'pull' => array( - 'path' => 'subscriptions/pull', + 'path' => 'v1/{+subscription}:pull', 'httpMethod' => 'POST', - 'parameters' => array(), - ),'pullBatch' => array( - 'path' => 'subscriptions/pullBatch', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => 'topics', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -146,7 +210,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -155,31 +219,92 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( - 'path' => 'topics', + 'path' => 'v1/{+project}/topics', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', + ), + ),'publish' => array( + 'path' => 'v1/{+topic}:publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), ), - ),'publish' => array( - 'path' => 'topics/publish', + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', - 'parameters' => array(), - ),'publishBatch' => array( - 'path' => 'topics/publishBatch', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+topic}/subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), ), ) ) @@ -188,6 +313,18 @@ public function __construct(Google_Client $client) } +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $projects = $pubsubService->projects; + * + */ +class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource +{ +} + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -196,43 +333,49 @@ public function __construct(Google_Client $client) * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges a particular received message: the Pub/Sub system can remove the - * given message from the subscription. Acknowledging a message whose Ack - * deadline has expired may succeed, but the message could have been already - * redelivered. Acknowledging a message more than once will not result in an - * error. This is only used for messages received via pull. - * (subscriptions.acknowledge) + * Acknowledges the messages associated with the ack tokens in the + * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from + * the subscription. Acknowledging a message whose ack deadline has expired may + * succeed, but such a message may be redelivered later. Acknowledging a message + * more than once will not result in an error. (subscriptions.acknowledge) * + * @param string $subscription The subscription whose message is being + * acknowledged. * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params)); + return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); } /** - * Creates a subscription on a given topic for a given subscriber. If the + * Creates a subscription to a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. - * - * If the name is not provided in the request, the server will assign a random - * name for this subscription on the same project as the topic. - * (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the + * request, the server will assign a random name for this subscription on the + * same project as the topic. (subscriptions.create) * + * @param string $name The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must + * start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus + * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in + * length, and it must not start with `"goog"`. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } @@ -240,16 +383,19 @@ public function create(Google_Service_Pubsub_Subscription $postBody, $optParams /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * (subscriptions.delete) + * After a subscription is deleted, a new one may be created with the same name, + * but the new one has no association with the old subscription, or its topic + * unless the same topic is specified. (subscriptions.delete) * * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** @@ -267,90 +413,136 @@ public function get($subscription, $optParams = array()) } /** - * Lists matching subscriptions. (subscriptions.listSubscriptions) + * Gets the access control policy for a resource. Is empty if the policy or the + * resource does not exist. (subscriptions.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) * + * @param string $project The name of the cloud project that subscriptions + * belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last - * ListSubscriptionsResponse for continuation. - * @opt_param int maxResults Maximum number of subscriptions to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * ListSubscriptionsResponse; indicates that this is a continuation of a prior + * ListSubscriptions call, and that the system should return the next page of + * data. + * @opt_param int pageSize Maximum number of subscriptions to return. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listSubscriptions($optParams = array()) + public function listProjectsSubscriptions($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the Ack deadline for a message received from a pull request. - * (subscriptions.modifyAckDeadline) + * Modifies the ack deadline for a specific message. This method is useful to + * indicate that more time is needed to process a message by the subscriber, or + * to make the message available for redelivery if the processing was + * interrupted. (subscriptions.modifyAckDeadline) * + * @param string $subscription The name of the subscription. * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params)); + return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); } /** - * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an endpoint by clearing the PushConfig - * field in the request. Messages will be accumulated for delivery even if no - * push configuration is defined or while the configuration is modified. + * Modifies the PushConfig for a specified subscription. This may be used to + * change a push subscription to a pull one (signified by an empty PushConfig) + * or vice versa, or change the endpoint URL and other attributes of a push + * subscription. Messages will accumulate for delivery continuously through the + * call regardless of changes to the PushConfig. * (subscriptions.modifyPushConfig) * + * @param string $subscription The name of the subscription. * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params)); + return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); } /** - * Pulls a single message from the server. If return_immediately is true, and no - * messages are available in the subscription, this method returns - * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no - * messages are available in a reasonable amount of time (to reduce system - * load). (subscriptions.pull) + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The server may return UNAVAILABLE if there + * are too many concurrent pull requests pending for the given subscription. + * (subscriptions.pull) * + * @param string $subscription The subscription from which messages should be + * pulled. * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The system is free to return UNAVAILABLE - * if there are too many pull requests outstanding for the given subscription. - * (subscriptions.pullBatch) + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (subscriptions.setIamPolicy) * - * @param Google_PullBatchRequest $postBody + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Resource is usually specified as a path, such as, + * projects/{project}/zones/{zone}/disks/{disk}. + * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullBatchResponse + * @return Google_Service_Pubsub_Policy */ - public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); } -} + /** + * Returns permissions that a caller has on the specified resource. + * (subscriptions.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + } +} /** * The "topics" collection of methods. * Typical usage is: @@ -359,19 +551,25 @@ public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $opt * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * + * @param string $name The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs + * (`%`). It must be between 3 and 255 characters in length, and it must not + * start with `"goog"`. * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } @@ -379,23 +577,23 @@ public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array /** * Deletes the topic with the given name. Returns NOT_FOUND if the topic does * not exist. After a topic is deleted, a new topic may be created with the same - * name. (topics.delete) + * name; this is an entirely new topic with none of the old configuration or + * subscriptions. Existing subscriptions to this topic are not deleted, but + * their `topic` field is set to `_deleted-topic_`. (topics.delete) * * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** - * Gets the configuration of a topic. Since the topic only has the name - * attribute, this method is only useful to check the existence of a topic. If - * other attributes are added in the future, they will be returned here. - * (topics.get) + * Gets the configuration of a topic. (topics.get) * * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. @@ -409,50 +607,127 @@ public function get($topic, $optParams = array()) } /** - * Lists matching topics. (topics.listTopics) + * Gets the access control policy for a resource. Is empty if the policy or the + * resource does not exist. (topics.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching topics. (topics.listProjectsTopics) * + * @param string $project The name of the cloud project that topics belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last ListTopicsResponse - * for continuation. - * @opt_param int maxResults Maximum number of topics to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * ListTopicsResponse; indicates that this is a continuation of a prior + * ListTopics call, and that the system should return the next page of data. + * @opt_param int pageSize Maximum number of topics to return. * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listTopics($optParams = array()) + public function listProjectsTopics($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. - * (topics.publish) + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. The message payload must not be empty; it must contain either a + * non-empty data field, or at least one attribute. (topics.publish) * + * @param string $topic The messages in the request will be published on this + * topic. * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PublishResponse */ - public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publish', array($params)); + return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); } /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. (topics.publishBatch) + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (topics.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Resource is usually specified as a path, such as, + * projects/{project}/zones/{zone}/disks/{disk}. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (topics.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $subscriptions = $pubsubService->subscriptions; + * + */ +class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource +{ + + /** + * Lists the name of the subscriptions for this topic. + * (subscriptions.listProjectsTopicsSubscriptions) * - * @param Google_PublishBatchRequest $postBody + * @param string $topic The name of the topic that subscriptions are attached + * to. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishBatchResponse + * + * @opt_param string pageToken The value returned by the last + * ListTopicSubscriptionsResponse; indicates that this is a continuation of a + * prior ListTopicSubscriptions call, and that the system should return the next + * page of data. + * @opt_param int pageSize Maximum number of subscription names to return. + * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse */ - public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) + public function listProjectsTopicsSubscriptions($topic, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); } } @@ -461,74 +736,88 @@ public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackId'; + protected $collection_key = 'ackIds'; protected $internal_gapi_mappings = array( ); - public $ackId; - public $subscription; + public $ackIds; - public function setAckId($ackId) - { - $this->ackId = $ackId; - } - public function getAckId() - { - return $this->ackId; - } - public function setSubscription($subscription) + public function setAckIds($ackIds) { - $this->subscription = $subscription; + $this->ackIds = $ackIds; } - public function getSubscription() + public function getAckIds() { - return $this->subscription; + return $this->ackIds; } } -class Google_Service_Pubsub_Label extends Google_Model +class Google_Service_Pubsub_Binding extends Google_Collection { + protected $collection_key = 'members'; protected $internal_gapi_mappings = array( ); - public $key; - public $numValue; - public $strValue; + public $members; + public $role; - public function setKey($key) + public function setMembers($members) { - $this->key = $key; + $this->members = $members; } - public function getKey() + public function getMembers() { - return $this->key; + return $this->members; } - public function setNumValue($numValue) + public function setRole($role) { - $this->numValue = $numValue; + $this->role = $role; } - public function getNumValue() + public function getRole() { - return $this->numValue; + return $this->role; } - public function setStrValue($strValue) +} + +class Google_Service_Pubsub_Empty extends Google_Model +{ +} + +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +{ + protected $collection_key = 'subscriptions'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSubscriptions($subscriptions) { - $this->strValue = $strValue; + $this->subscriptions = $subscriptions; } - public function getStrValue() + public function getSubscriptions() { - return $this->strValue; + return $this->subscriptions; } } -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscription'; + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionDataType = 'array'; + public $subscriptions; public function setNextPageToken($nextPageToken) @@ -539,24 +828,24 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscription($subscription) + public function setSubscriptions($subscriptions) { - $this->subscription = $subscription; + $this->subscriptions = $subscriptions; } - public function getSubscription() + public function getSubscriptions() { - return $this->subscription; + return $this->subscriptions; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topic'; + protected $collection_key = 'topics'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicType = 'Google_Service_Pubsub_Topic'; - protected $topicDataType = 'array'; + protected $topicsType = 'Google_Service_Pubsub_Topic'; + protected $topicsDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -567,13 +856,13 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopic($topic) + public function setTopics($topics) { - $this->topic = $topic; + $this->topics = $topics; } - public function getTopic() + public function getTopics() { - return $this->topic; + return $this->topics; } } @@ -583,9 +872,7 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection protected $internal_gapi_mappings = array( ); public $ackDeadlineSeconds; - public $ackId; public $ackIds; - public $subscription; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -596,14 +883,6 @@ public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; } - public function setAckId($ackId) - { - $this->ackId = $ackId; - } - public function getAckId() - { - return $this->ackId; - } public function setAckIds($ackIds) { $this->ackIds = $ackIds; @@ -612,14 +891,6 @@ public function getAckIds() { return $this->ackIds; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -628,7 +899,6 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; - public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -639,160 +909,106 @@ public function getPushConfig() { return $this->pushConfig; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection +class Google_Service_Pubsub_Policy extends Google_Collection { - protected $collection_key = 'messages'; + protected $collection_key = 'bindings'; protected $internal_gapi_mappings = array( ); - protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messagesDataType = 'array'; - public $topic; + protected $bindingsType = 'Google_Service_Pubsub_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + public $version; - public function setMessages($messages) + public function setBindings($bindings) { - $this->messages = $messages; + $this->bindings = $bindings; } - public function getMessages() + public function getBindings() { - return $this->messages; + return $this->bindings; } - public function setTopic($topic) + public function setEtag($etag) { - $this->topic = $topic; + $this->etag = $etag; } - public function getTopic() + public function getEtag() { - return $this->topic; + return $this->etag; } -} - -class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection -{ - protected $collection_key = 'messageIds'; - protected $internal_gapi_mappings = array( - ); - public $messageIds; - - - public function setMessageIds($messageIds) + public function setVersion($version) { - $this->messageIds = $messageIds; + $this->version = $version; } - public function getMessageIds() + public function getVersion() { - return $this->messageIds; + return $this->version; } } -class Google_Service_Pubsub_PublishRequest extends Google_Model +class Google_Service_Pubsub_PublishRequest extends Google_Collection { + protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $topic; + protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messagesDataType = 'array'; - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setTopic($topic) + public function setMessages($messages) { - $this->topic = $topic; + $this->messages = $messages; } - public function getTopic() + public function getMessages() { - return $this->topic; + return $this->messages; } } -class Google_Service_Pubsub_PubsubEvent extends Google_Model +class Google_Service_Pubsub_PublishResponse extends Google_Collection { + protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( ); - public $deleted; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $subscription; - public $truncated; + public $messageIds; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTruncated($truncated) + public function setMessageIds($messageIds) { - $this->truncated = $truncated; + $this->messageIds = $messageIds; } - public function getTruncated() + public function getMessageIds() { - return $this->truncated; + return $this->messageIds; } } -class Google_Service_Pubsub_PubsubMessage extends Google_Collection +class Google_Service_Pubsub_PubsubMessage extends Google_Model { - protected $collection_key = 'label'; protected $internal_gapi_mappings = array( ); + public $attributes; public $data; - protected $labelType = 'Google_Service_Pubsub_Label'; - protected $labelDataType = 'array'; public $messageId; - public function setData($data) + public function setAttributes($attributes) { - $this->data = $data; + $this->attributes = $attributes; } - public function getData() + public function getAttributes() { - return $this->data; + return $this->attributes; } - public function setLabel($label) + public function setData($data) { - $this->label = $label; + $this->data = $data; } - public function getLabel() + public function getData() { - return $this->label; + return $this->data; } public function setMessageId($messageId) { @@ -804,22 +1020,25 @@ public function getMessageId() } } -class Google_Service_Pubsub_PullBatchRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $maxEvents; + public $maxMessages; public $returnImmediately; - public $subscription; - public function setMaxEvents($maxEvents) + public function setMaxMessages($maxMessages) { - $this->maxEvents = $maxEvents; + $this->maxMessages = $maxMessages; } - public function getMaxEvents() + public function getMaxMessages() { - return $this->maxEvents; + return $this->maxMessages; } public function setReturnImmediately($returnImmediately) { @@ -829,68 +1048,64 @@ public function getReturnImmediately() { return $this->returnImmediately; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PullBatchResponse extends Google_Collection +class Google_Service_Pubsub_PullResponse extends Google_Collection { - protected $collection_key = 'pullResponses'; + protected $collection_key = 'receivedMessages'; protected $internal_gapi_mappings = array( ); - protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; - protected $pullResponsesDataType = 'array'; + protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; + protected $receivedMessagesDataType = 'array'; - public function setPullResponses($pullResponses) + public function setReceivedMessages($receivedMessages) { - $this->pullResponses = $pullResponses; + $this->receivedMessages = $receivedMessages; } - public function getPullResponses() + public function getReceivedMessages() { - return $this->pullResponses; + return $this->receivedMessages; } } -class Google_Service_Pubsub_PullRequest extends Google_Model +class Google_Service_Pubsub_PushConfig extends Google_Model { protected $internal_gapi_mappings = array( ); - public $returnImmediately; - public $subscription; + public $attributes; + public $pushEndpoint; - public function setReturnImmediately($returnImmediately) + public function setAttributes($attributes) { - $this->returnImmediately = $returnImmediately; + $this->attributes = $attributes; } - public function getReturnImmediately() + public function getAttributes() { - return $this->returnImmediately; + return $this->attributes; } - public function setSubscription($subscription) + public function setPushEndpoint($pushEndpoint) { - $this->subscription = $subscription; + $this->pushEndpoint = $pushEndpoint; } - public function getSubscription() + public function getPushEndpoint() { - return $this->subscription; + return $this->pushEndpoint; } } -class Google_Service_Pubsub_PullResponse extends Google_Model +class Google_Service_Pubsub_PushConfigAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_ReceivedMessage extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; - protected $pubsubEventDataType = ''; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; public function setAckId($ackId) @@ -901,30 +1116,31 @@ public function getAckId() { return $this->ackId; } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { - $this->pubsubEvent = $pubsubEvent; + $this->message = $message; } - public function getPubsubEvent() + public function getMessage() { - return $this->pubsubEvent; + return $this->message; } } -class Google_Service_Pubsub_PushConfig extends Google_Model +class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $pushEndpoint; + protected $policyType = 'Google_Service_Pubsub_Policy'; + protected $policyDataType = ''; - public function setPushEndpoint($pushEndpoint) + public function setPolicy(Google_Service_Pubsub_Policy $policy) { - $this->pushEndpoint = $pushEndpoint; + $this->policy = $policy; } - public function getPushEndpoint() + public function getPolicy() { - return $this->pushEndpoint; + return $this->policy; } } @@ -973,6 +1189,42 @@ public function getTopic() } } +class Google_Service_Pubsub_TestIamPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Pubsub_TestIamPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + class Google_Service_Pubsub_Topic extends Google_Model { protected $internal_gapi_mappings = array( From 413a68c3b38f55483ac572a3c0736c4bdc778c13 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 20 Aug 2015 11:21:38 -0700 Subject: [PATCH 0888/1274] allows fetching/storing of access tokens for testing without modifying git-controlled files --- .gitignore | 1 + tests/BaseTest.php | 18 ++++++++++++++---- tests/OAuthHelper.php | 14 ++++++++++---- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index fc02bd481..61e67f061 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ composer.lock vendor examples/testfile-small.txt examples/testfile.txt +tests/.accessToken diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 7558bf18f..6b6906ecf 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -25,10 +25,8 @@ class BaseTest extends PHPUnit_Framework_TestCase public function __construct() { parent::__construct(); - // Fill in a token JSON here and you can test the oauth token - // requiring functions. - // $this->token = ''; + $this->token = $this->loadToken(); $this->memcacheHost = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null; $this->memcachePort = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; } @@ -50,9 +48,21 @@ public function getClient() public function checkToken() { if (!strlen($this->token)) { - $this->markTestSkipped('Test requires access token'); + $this->markTestSkipped("Test requires access token\nrun \"php tests/OAuthHelper.php\""); return false; } return true; } + + public function loadToken() + { + if (file_exists($f = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.accessToken')) { + $t = file_get_contents($f); + if ($token = json_decode($t, true)) { + if ($token['expires_in'] + $token['created'] > time()) { + return $t; + } + } + } + } } diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 1e36a4f56..50afc495c 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -30,8 +30,13 @@ // Visit https://code.google.com/apis/console to // generate your oauth2_client_id, oauth2_client_secret, and to // register your oauth2_redirect_uri. -$client->setClientId(""); -$client->setClientSecret(""); +$clientId = getenv('GCLOUD_CLIENT_ID') ? getenv('GCLOUD_CLIENT_ID') : null; +$clientSecret = getenv('GCLOUD_CLIENT_SECRET') ? getenv('GCLOUD_CLIENT_SECRET') : null; +if (!($clientId && $clientSecret)) { + die("fetching a token requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set\n"); +} +$client->setClientId($clientId); +$client->setClientSecret($clientSecret); $authUrl = $client->createAuthUrl(); @@ -40,6 +45,7 @@ $authCode = trim(fgets(STDIN)); $accessToken = $client->authenticate($authCode); +$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.accessToken'; +file_put_contents($file, $accessToken); -echo "\n", 'Add the following to BaseTest.php as the $token value:', "\n\n"; -echo $accessToken, "\n\n"; +echo "successfully loaded access token\n"; \ No newline at end of file From 39808d7263a57778660b0c534bde97178b72284f Mon Sep 17 00:00:00 2001 From: Sazzad Hossain Khan Date: Thu, 27 Aug 2015 16:56:20 +0600 Subject: [PATCH 0889/1274] remove space typo from ['upload_token '] --- examples/fileupload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fileupload.php b/examples/fileupload.php index b371bb64d..2247087e9 100644 --- a/examples/fileupload.php +++ b/examples/fileupload.php @@ -47,7 +47,7 @@ $service = new Google_Service_Drive($client); if (isset($_REQUEST['logout'])) { - unset($_SESSION['upload_token ']); + unset($_SESSION['upload_token']); } if (isset($_GET['code'])) { From 6942a0d880c650d60d44f06c171928a3baf3403c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 10 Sep 2015 09:35:46 -0700 Subject: [PATCH 0890/1274] updates Drive API to add orderBy & other params --- src/Google/Service/Drive.php | 158 ++++++++++++++++++++++++++++++----- 1 file changed, 136 insertions(+), 22 deletions(-) diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index 69c693601..e30a33128 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -48,6 +48,9 @@ class Google_Service_Drive extends Google_Service /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + /** View the photos, videos and albums in your Google Photos. */ + const DRIVE_PHOTOS_READONLY = + "https://www.googleapis.com/auth/drive.photos.readonly"; /** View the files in your Google Drive. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; @@ -294,7 +297,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'q' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), @@ -302,6 +305,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -479,6 +486,19 @@ public function __construct(Google_Client $client) 'path' => 'files/trash', 'httpMethod' => 'DELETE', 'parameters' => array(), + ),'generateIds' => array( + 'path' => 'files/generateIds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'space' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'get' => array( 'path' => 'files/{fileId}', 'httpMethod' => 'GET', @@ -546,6 +566,10 @@ public function __construct(Google_Client $client) 'path' => 'files', 'httpMethod' => 'GET', 'parameters' => array( + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -584,19 +608,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'updateViewedDate' => array( + 'modifiedDateBehavior' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'removeParents' => array( 'location' => 'query', 'type' => 'string', ), - 'setModifiedDate' => array( + 'updateViewedDate' => array( 'location' => 'query', 'type' => 'boolean', ), - 'convert' => array( + 'setModifiedDate' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -604,6 +628,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'ocrLanguage' => array( 'location' => 'query', 'type' => 'string', @@ -672,19 +700,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'updateViewedDate' => array( + 'modifiedDateBehavior' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'removeParents' => array( 'location' => 'query', 'type' => 'string', ), - 'setModifiedDate' => array( + 'updateViewedDate' => array( 'location' => 'query', 'type' => 'boolean', ), - 'convert' => array( + 'setModifiedDate' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -692,6 +720,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'ocrLanguage' => array( 'location' => 'query', 'type' => 'string', @@ -1414,7 +1446,7 @@ public function get($changeId, $optParams = array()) * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive' and 'appDataFolder'. + * values are 'drive', 'appDataFolder' and 'photos'. * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_ChangeList */ @@ -1439,7 +1471,7 @@ public function listChanges($optParams = array()) * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive' and 'appDataFolder'. + * values are 'drive', 'appDataFolder' and 'photos'. * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_Channel */ @@ -1537,8 +1569,15 @@ public function insert($folderId, Google_Service_Drive_ChildReference $postBody, * @param string $folderId The ID of the folder. * @param array $optParams Optional parameters. * - * @opt_param string q Query string for searching children. + * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', + * and 'title'. Each key sorts ascending by default, but may be reversed with + * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. + * Please note that there is a current limitation for users with approximately + * one million files in which the requested sort order is ignored. * @opt_param string pageToken Page token for children. + * @opt_param string q Query string for searching children. * @opt_param int maxResults Maximum number of children to return. * @return Google_Service_Drive_ChildList */ @@ -1732,6 +1771,24 @@ public function emptyTrash($optParams = array()) return $this->call('emptyTrash', array($params)); } + /** + * Generates a set of file IDs which can be provided in insert requests. + * (files.generateIds) + * + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum number of IDs to return. + * @opt_param string space The space in which the IDs can be used to create new + * files. Supported values are 'drive' and 'appDataFolder'. + * @return Google_Service_Drive_GeneratedIds + */ + public function generateIds($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds"); + } + /** * Gets a file's metadata by ID. (files.get) * @@ -1789,13 +1846,20 @@ public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = ar * * @param array $optParams Optional parameters. * + * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', + * and 'title'. Each key sorts ascending by default, but may be reversed with + * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. + * Please note that there is a current limitation for users with approximately + * one million files in which the requested sort order is ignored. * @opt_param string projection This parameter is deprecated and has no * function. * @opt_param int maxResults Maximum number of files to return. * @opt_param string q Query string for searching files. * @opt_param string pageToken Page token for files. * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive' and 'appDataFolder'. + * values are 'drive', 'appDataFolder' and 'photos'. * @opt_param string corpus The body of items (files/documents) to which the * query applies. * @return Google_Service_Drive_FileList @@ -1816,15 +1880,16 @@ public function listFiles($optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param string modifiedDateBehavior Determines the behavior in which + * modifiedDate is updated. This overrides setModifiedDate. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool updateViewedDate Whether to update the view date after * successfully updating the file. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool setModifiedDate Whether to set the modified date with the * supplied modified date. - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. + * @opt_param bool convert This parameter is deprecated and has no function. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a @@ -1834,7 +1899,8 @@ public function listFiles($optParams = array()) * If true or not set, a new blob is created as head revision, and previous * unpinned revisions are preserved for a short period of time. Pinned revisions * are stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. + * 200 revisions. For details on how revisions are retained, see the Drive Help + * Center. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -1863,7 +1929,8 @@ public function touch($fileId, $optParams = array()) } /** - * Moves a file to the trash. (files.trash) + * Moves a file to the trash. The currently authenticated user must own the + * file. (files.trash) * * @param string $fileId The ID of the file to trash. * @param array $optParams Optional parameters. @@ -1898,15 +1965,16 @@ public function untrash($fileId, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param string modifiedDateBehavior Determines the behavior in which + * modifiedDate is updated. This overrides setModifiedDate. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool updateViewedDate Whether to update the view date after * successfully updating the file. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool setModifiedDate Whether to set the modified date with the * supplied modified date. - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. + * @opt_param bool convert This parameter is deprecated and has no function. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a @@ -1916,7 +1984,8 @@ public function untrash($fileId, $optParams = array()) * If true or not set, a new blob is created as head revision, and previous * unpinned revisions are preserved for a short period of time. Pinned revisions * are stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. + * 200 revisions. For details on how revisions are retained, see the Drive Help + * Center. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -4013,6 +4082,7 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $fileExtension; public $fileSize; public $folderColorRgb; + public $fullFileExtension; public $headRevisionId; public $iconLink; public $id; @@ -4194,6 +4264,14 @@ public function getFolderColorRgb() { return $this->folderColorRgb; } + public function setFullFileExtension($fullFileExtension) + { + $this->fullFileExtension = $fullFileExtension; + } + public function getFullFileExtension() + { + return $this->fullFileExtension; + } public function setHeadRevisionId($headRevisionId) { $this->headRevisionId = $headRevisionId; @@ -4944,6 +5022,42 @@ public function getSelfLink() } } +class Google_Service_Drive_GeneratedIds extends Google_Collection +{ + protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); + public $ids; + public $kind; + public $space; + + + public function setIds($ids) + { + $this->ids = $ids; + } + public function getIds() + { + return $this->ids; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSpace($space) + { + $this->space = $space; + } + public function getSpace() + { + return $this->space; + } +} + class Google_Service_Drive_ParentList extends Google_Collection { protected $collection_key = 'items'; From ef98476e17eee755b5bb7e712769898347348663 Mon Sep 17 00:00:00 2001 From: "d.dymarchuk" Date: Mon, 14 Sep 2015 15:52:40 +0300 Subject: [PATCH 0891/1274] Google_Http_MediaFileUpload::chunkSize make settable --- src/Google/Http/MediaFileUpload.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 5ea7ad28b..e0192ae74 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -299,4 +299,9 @@ private function getResumeUri() $this->client->getLogger()->error($error); throw new Google_Exception($error); } + + public function setChunkSize($chunkSize) + { + $this->chunkSize = $chunkSize; + } } From b66e7a2c2ec2c81ccd7987d3f48dcf316ec923a2 Mon Sep 17 00:00:00 2001 From: Till Zimmermann Date: Wed, 16 Sep 2015 01:30:34 +0200 Subject: [PATCH 0892/1274] Add methods to resume Uploads Renamed the 'getResumeUri'-Method to 'fetchResumeUri', as it's more appropriate and 'getResumeUri' is now used as a getter for the private resumeUri property. Added a 'resume'-method to be called with an resumeIri, which will fetch the upload status & setup the object. private makePutRequest method is added to avoid duplicating code from nextChunk(). --- src/Google/Http/MediaFileUpload.php | 96 +++++++++++++++++++---------- 1 file changed, 65 insertions(+), 31 deletions(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 5ea7ad28b..24cbed3a4 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -126,35 +126,16 @@ public function getHttpResultCode() } /** - * Send the next part of the file to upload. - * @param [$chunk] the next set of bytes to send. If false will used $data passed - * at construct time. - */ - public function nextChunk($chunk = false) + * Sends a PUT-Request to google drive and parses the response, + * setting the appropiate variables from the response() + * + * @param Google_Http_Request $httpRequest the Reuqest which will be send + * + * @return false|mixed false when the upload is unfinished or the decoded http response + * + */ + private function makePutRequest(Google_Http_Request $httpRequest) { - if (false == $this->resumeUri) { - $this->resumeUri = $this->getResumeUri(); - } - - if (false == $chunk) { - $chunk = substr($this->data, $this->progress, $this->chunkSize); - } - - $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( - 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-type' => $this->request->getRequestHeader('content-type'), - 'content-length' => $this->chunkSize, - 'expect' => '', - ); - - $httpRequest = new Google_Http_Request( - $this->resumeUri, - 'PUT', - $headers, - $chunk - ); - if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) { $httpRequest->enableGzip(); } else { @@ -185,8 +166,56 @@ public function nextChunk($chunk = false) } /** - * @param $meta - * @param $params + * Send the next part of the file to upload. + * @param [$chunk] the next set of bytes to send. If false will used $data passed + * at construct time. + */ + public function nextChunk($chunk = false) + { + if (false == $this->resumeUri) { + $this->resumeUri = $this->fetchResumeUri(); + } + + if (false == $chunk) { + $chunk = substr($this->data, $this->progress, $this->chunkSize); + } + $lastBytePos = $this->progress + strlen($chunk) - 1; + $headers = array( + 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", + 'content-type' => $this->request->getRequestHeader('content-type'), + 'content-length' => $this->chunkSize, + 'expect' => '', + ); + + $httpRequest = new Google_Http_Request( + $this->resumeUri, + 'PUT', + $headers, + $chunk + ); + return $this->makePutRequest($httpRequest); + } + + /** + * Resume a previously unfinished upload + * @param $resumeUri the resume-URI of the unfinished, resumable upload. + */ + public function resume($resumeUri) + { + $this->resumeUri = $resumeUri; + $headers = array( + 'content-range' => "bytes */$this->size", + 'content-length' => 0, + ); + $httpRequest = new Google_Http_Request( + $this->resumeUri, + 'PUT', + $headers + ); + return $this->makePutRequest($httpRequest); + } + + /** * @return array|bool * @visible for testing */ @@ -263,7 +292,12 @@ public function getUploadType($meta) return self::UPLOAD_MULTIPART_TYPE; } - private function getResumeUri() + public function getResumeUri() + { + return ( $this->resumeUri !== null ? $this->resumeUri : $this->fetchResumeUri() ); + } + + private function fetchResumeUri() { $result = null; $body = $this->request->getPostBody(); From 8fa19c0beea0c8293dd1fbb4f8f0687373885b44 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 17 Sep 2015 13:43:35 -0700 Subject: [PATCH 0893/1274] fix #669 - update Bigquery for UDF --- src/Google/Service/Bigquery.php | 151 ++++++++++++++++++++++++++++++-- 1 file changed, 142 insertions(+), 9 deletions(-) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 7076ac914..00836164e 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -39,6 +39,9 @@ class Google_Service_Bigquery extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** Manage your data and permissions in Google Cloud Storage. */ const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; @@ -648,7 +651,7 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource /** * Requests that a job be cancelled. This call will return immediately, and the * client will need to poll for the job status to see if the cancel completed - * successfully. (jobs.cancel) + * successfully. Cancelled jobs may still incur costs. (jobs.cancel) * * @param string $projectId Project ID of the job to cancel * @param string $jobId Job ID of the job to cancel @@ -687,9 +690,9 @@ public function get($projectId, $jobId, $optParams = array()) * @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 + * milliseconds, before returning. Default is 10 seconds. If the timeout passes + * before the job completes, the 'jobComplete' field in the response will be + * false * @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 @@ -721,10 +724,10 @@ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optPa } /** - * Lists all jobs that you started in the specified project. The job list - * returns in reverse chronological order of when the jobs were created, - * starting with the most recent job created. Requires the Can View project - * role, or the Is Owner project role if you set the allUsers property. + * Lists all jobs that you started in the specified project. Job information is + * available for a six month period after creation. The job list is sorted in + * reverse chronological order, by job creation time. Requires the Can View + * project role, or the Is Owner project role if you set the allUsers property. * (jobs.listJobs) * * @param string $projectId Project ID of the jobs to list @@ -1455,6 +1458,8 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection protected $internal_gapi_mappings = array( ); public $cacheHit; + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; public $etag; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; @@ -1477,6 +1482,14 @@ public function getCacheHit() { return $this->cacheHit; } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } public function setEtag($etag) { $this->etag = $etag; @@ -2022,8 +2035,9 @@ public function getWriteDisposition() } } -class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model +class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection { + protected $collection_key = 'userDefinedFunctionResources'; protected $internal_gapi_mappings = array( ); public $allowLargeResults; @@ -2039,6 +2053,8 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; protected $tableDefinitionsDataType = 'map'; public $useQueryCache; + protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; + protected $userDefinedFunctionResourcesDataType = 'array'; public $writeDisposition; @@ -2122,6 +2138,14 @@ public function getUseQueryCache() { return $this->useQueryCache; } + public function setUserDefinedFunctionResources($userDefinedFunctionResources) + { + $this->userDefinedFunctionResources = $userDefinedFunctionResources; + } + public function getUserDefinedFunctionResources() + { + return $this->userDefinedFunctionResources; + } public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -2438,10 +2462,20 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Model { protected $internal_gapi_mappings = array( ); + public $billingTier; public $cacheHit; + public $totalBytesBilled; public $totalBytesProcessed; + public function setBillingTier($billingTier) + { + $this->billingTier = $billingTier; + } + public function getBillingTier() + { + return $this->billingTier; + } public function setCacheHit($cacheHit) { $this->cacheHit = $cacheHit; @@ -2450,6 +2484,14 @@ public function getCacheHit() { return $this->cacheHit; } + public function setTotalBytesBilled($totalBytesBilled) + { + $this->totalBytesBilled = $totalBytesBilled; + } + public function getTotalBytesBilled() + { + return $this->totalBytesBilled; + } public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; @@ -2777,6 +2819,8 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection protected $internal_gapi_mappings = array( ); public $cacheHit; + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; protected $jobReferenceDataType = ''; @@ -2798,6 +2842,14 @@ public function getCacheHit() { return $this->cacheHit; } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; @@ -2864,6 +2916,41 @@ public function getTotalRows() } } +class Google_Service_Bigquery_Streamingbuffer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $estimatedBytes; + public $estimatedRows; + public $oldestEntryTime; + + + public function setEstimatedBytes($estimatedBytes) + { + $this->estimatedBytes = $estimatedBytes; + } + public function getEstimatedBytes() + { + return $this->estimatedBytes; + } + public function setEstimatedRows($estimatedRows) + { + $this->estimatedRows = $estimatedRows; + } + public function getEstimatedRows() + { + return $this->estimatedRows; + } + public function setOldestEntryTime($oldestEntryTime) + { + $this->oldestEntryTime = $oldestEntryTime; + } + public function getOldestEntryTime() + { + return $this->oldestEntryTime; + } +} + class Google_Service_Bigquery_Table extends Google_Model { protected $internal_gapi_mappings = array( @@ -2872,6 +2959,8 @@ class Google_Service_Bigquery_Table extends Google_Model public $description; public $etag; public $expirationTime; + protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration'; + protected $externalDataConfigurationDataType = ''; public $friendlyName; public $id; public $kind; @@ -2882,6 +2971,8 @@ class Google_Service_Bigquery_Table extends Google_Model protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; public $selfLink; + protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer'; + protected $streamingBufferDataType = ''; protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; protected $tableReferenceDataType = ''; public $type; @@ -2921,6 +3012,14 @@ public function getExpirationTime() { return $this->expirationTime; } + public function setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration) + { + $this->externalDataConfiguration = $externalDataConfiguration; + } + public function getExternalDataConfiguration() + { + return $this->externalDataConfiguration; + } public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; @@ -2993,6 +3092,14 @@ public function getSelfLink() { return $this->selfLink; } + public function setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer) + { + $this->streamingBuffer = $streamingBuffer; + } + public function getStreamingBuffer() + { + return $this->streamingBuffer; + } public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { $this->tableReference = $tableReference; @@ -3456,6 +3563,32 @@ public function getFields() } } +class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $inlineCode; + public $resourceUri; + + + public function setInlineCode($inlineCode) + { + $this->inlineCode = $inlineCode; + } + public function getInlineCode() + { + return $this->inlineCode; + } + public function setResourceUri($resourceUri) + { + $this->resourceUri = $resourceUri; + } + public function getResourceUri() + { + return $this->resourceUri; + } +} + class Google_Service_Bigquery_ViewDefinition extends Google_Model { protected $internal_gapi_mappings = array( From 62192409ad19d52d06a009bbe5f5c00db0631f8a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 22 Sep 2015 16:29:22 -0700 Subject: [PATCH 0894/1274] adds Google Apps Script Execution API --- src/Google/Service/Script.php | 368 ++++++++++++++++++++++++++++++++++ 1 file changed, 368 insertions(+) create mode 100644 src/Google/Service/Script.php diff --git a/src/Google/Service/Script.php b/src/Google/Service/Script.php new file mode 100644 index 000000000..43ddcaac5 --- /dev/null +++ b/src/Google/Service/Script.php @@ -0,0 +1,368 @@ + + * An API for executing Google Apps Script projects.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Script extends Google_Service +{ + /** View and manage your mail. */ + const MAIL_GOOGLE_COM = + "https://mail.google.com/"; + /** Manage your calendars. */ + const WWW_GOOGLE_COM_CALENDAR_FEEDS = + "https://www.google.com/calendar/feeds"; + /** Manage your contacts. */ + const WWW_GOOGLE_COM_M8_FEEDS = + "https://www.google.com/m8/feeds"; + /** View and manage the provisioning of groups on your domain. */ + const ADMIN_DIRECTORY_GROUP = + "https://www.googleapis.com/auth/admin.directory.group"; + /** View and manage the provisioning of users on your domain. */ + const ADMIN_DIRECTORY_USER = + "https://www.googleapis.com/auth/admin.directory.user"; + /** View and manage the files in your Google Drive. */ + const DRIVE = + "https://www.googleapis.com/auth/drive"; + /** View and manage your forms in Google Drive. */ + const FORMS = + "https://www.googleapis.com/auth/forms"; + /** View and manage forms that this application has been installed in. */ + const FORMS_CURRENTONLY = + "https://www.googleapis.com/auth/forms.currentonly"; + /** View and manage your Google Groups. */ + const GROUPS = + "https://www.googleapis.com/auth/groups"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $scripts; + + + /** + * Constructs the internal representation of the Script service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://script.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'script'; + + $this->scripts = new Google_Service_Script_Scripts_Resource( + $this, + $this->serviceName, + 'scripts', + array( + 'methods' => array( + 'run' => array( + 'path' => 'v1/scripts/{scriptId}:run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'scriptId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "scripts" collection of methods. + * Typical usage is: + * + * $scriptService = new Google_Service_Script(...); + * $scripts = $scriptService->scripts; + * + */ +class Google_Service_Script_Scripts_Resource extends Google_Service_Resource +{ + + /** + * Runs a function in an Apps Script project that has been deployed for use with + * the Apps Script Execution API. This method requires authorization with an + * OAuth 2.0 token that includes at least one of the scopes listed in the + * [Authentication](#authentication) section; script projects that do not + * require authorization cannot be executed through this API. To find the + * correct scopes to include in the authentication token, open the project in + * the script editor, then select **File > Project properties** and click the + * **Scopes** tab. (scripts.run) + * + * @param string $scriptId The project key of the script to be executed. To find + * the project key, open the project in the script editor, then select **File > + * Project properties**. + * @param Google_ExecutionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Script_Operation + */ + public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array()) + { + $params = array('scriptId' => $scriptId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_Script_Operation"); + } +} + + + + +class Google_Service_Script_ExecutionError extends Google_Collection +{ + protected $collection_key = 'scriptStackTraceElements'; + protected $internal_gapi_mappings = array( + ); + public $errorMessage; + public $errorType; + protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement'; + protected $scriptStackTraceElementsDataType = 'array'; + + + public function setErrorMessage($errorMessage) + { + $this->errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + public function setErrorType($errorType) + { + $this->errorType = $errorType; + } + public function getErrorType() + { + return $this->errorType; + } + public function setScriptStackTraceElements($scriptStackTraceElements) + { + $this->scriptStackTraceElements = $scriptStackTraceElements; + } + public function getScriptStackTraceElements() + { + return $this->scriptStackTraceElements; + } +} + +class Google_Service_Script_ExecutionRequest extends Google_Collection +{ + protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); + public $devMode; + public $function; + public $parameters; + public $sessionState; + + + public function setDevMode($devMode) + { + $this->devMode = $devMode; + } + public function getDevMode() + { + return $this->devMode; + } + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + public function getParameters() + { + return $this->parameters; + } + public function setSessionState($sessionState) + { + $this->sessionState = $sessionState; + } + public function getSessionState() + { + return $this->sessionState; + } +} + +class Google_Service_Script_ExecutionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $result; + + + public function setResult($result) + { + $this->result = $result; + } + public function getResult() + { + return $this->result; + } +} + +class Google_Service_Script_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Script_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Script_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Script_OperationMetadata extends Google_Model +{ +} + +class Google_Service_Script_OperationResponse extends Google_Model +{ +} + +class Google_Service_Script_ScriptStackTraceElement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $function; + public $lineNumber; + + + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setLineNumber($lineNumber) + { + $this->lineNumber = $lineNumber; + } + public function getLineNumber() + { + return $this->lineNumber; + } +} + +class Google_Service_Script_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Script_StatusDetails extends Google_Model +{ +} From 4b25c1504bbe0ebf5f61fb2a04dbf686cabf2712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Rish=C3=B8j?= Date: Wed, 9 Sep 2015 16:12:45 +0200 Subject: [PATCH 0895/1274] Fail fast if JSON encoding fails Let the `call` method fail fast in case `json_encode` fails to encode the request body, rather than proceeding with invalid data. --- src/Google/Service/Resource.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index b0514d722..0d6af8281 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -115,6 +115,9 @@ public function call($name, $arguments, $expected_class = null) $this->convertToArrayAndStripNulls($parameters['postBody']); } $postBody = json_encode($parameters['postBody']); + if ($postBody === false && $parameters['postBody'] !== false) { + throw new Google_Exception("JSON encoding failed. Ensure all strings in the request are UTF-8 encoded."); + } unset($parameters['postBody']); } From 7c191daabccdcb645fed4becb49941898480ee68 Mon Sep 17 00:00:00 2001 From: Gabriel PREDA Date: Tue, 11 Aug 2015 14:25:09 +0300 Subject: [PATCH 0896/1274] + Make IO/Stream.php be App Engine aware (The issues were discussed in Case #608 and in Case #570) --- src/Google/IO/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php index e79da102a..2c5178fdd 100644 --- a/src/Google/IO/Stream.php +++ b/src/Google/IO/Stream.php @@ -87,7 +87,7 @@ public function executeRequest(Google_Http_Request $request) $requestSslContext = array_key_exists('ssl', $default_options) ? $default_options['ssl'] : array(); - if (!array_key_exists("cafile", $requestSslContext)) { + if (!$this->client->isAppEngine() && !array_key_exists("cafile", $requestSslContext)) { $requestSslContext["cafile"] = dirname(__FILE__) . '/cacerts.pem'; } From 97e7c56ae3602f790e9134a2e851624b2205b507 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 9 Oct 2015 15:22:27 -0700 Subject: [PATCH 0897/1274] This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/AdExchangeBuyer.php | 5988 +++++++- src/Google/Service/AdSense.php | 10 + src/Google/Service/AndroidEnterprise.php | 170 +- src/Google/Service/Appengine.php | 2032 +++ src/Google/Service/Books.php | 403 +- src/Google/Service/Calendar.php | 143 +- src/Google/Service/CivicInfo.php | 81 + src/Google/Service/Classroom.php | 309 +- src/Google/Service/CloudMonitoring.php | 3 + src/Google/Service/CloudUserAccounts.php | 616 +- src/Google/Service/Cloudbilling.php | 446 + src/Google/Service/Clouddebugger.php | 1343 ++ src/Google/Service/Cloudresourcemanager.php | 600 +- src/Google/Service/Cloudtrace.php | 460 + src/Google/Service/Compute.php | 12359 +++++++++++------ src/Google/Service/Container.php | 115 +- src/Google/Service/Coordinate.php | 12 +- src/Google/Service/DataTransfer.php | 554 + src/Google/Service/Dataflow.php | 296 +- src/Google/Service/DeploymentManager.php | 575 +- src/Google/Service/Directory.php | 971 +- src/Google/Service/Dns.php | 9 + src/Google/Service/DoubleClickBidManager.php | 9 + src/Google/Service/Drive.php | 13 +- src/Google/Service/Fitness.php | 90 +- src/Google/Service/Genomics.php | 3941 +++++- src/Google/Service/Gmail.php | 5 +- src/Google/Service/IdentityToolkit.php | 36 + src/Google/Service/Logging.php | 1278 +- src/Google/Service/Manager.php | 3 + src/Google/Service/Partners.php | 1610 +++ src/Google/Service/Playmoviespartner.php | 1633 ++- src/Google/Service/Plus.php | 239 +- src/Google/Service/PlusDomains.php | 216 + src/Google/Service/Proximitybeacon.php | 1208 ++ src/Google/Service/Pubsub.php | 930 +- src/Google/Service/Replicapool.php | 3 + src/Google/Service/Replicapoolupdater.php | 132 +- src/Google/Service/Resourceviews.php | 3 + src/Google/Service/SQLAdmin.php | 189 +- src/Google/Service/ShoppingContent.php | 3243 ++++- src/Google/Service/Storage.php | 71 +- src/Google/Service/Storagetransfer.php | 1475 ++ src/Google/Service/TagManager.php | 518 +- src/Google/Service/Webmasters.php | 2 - src/Google/Service/YouTube.php | 245 +- src/Google/Service/YouTubeAnalytics.php | 2 +- src/Google/Service/YouTubeReporting.php | 674 + 48 files changed, 37476 insertions(+), 7787 deletions(-) create mode 100644 src/Google/Service/Appengine.php create mode 100644 src/Google/Service/Cloudbilling.php create mode 100644 src/Google/Service/Clouddebugger.php create mode 100644 src/Google/Service/Cloudtrace.php create mode 100644 src/Google/Service/DataTransfer.php create mode 100644 src/Google/Service/Partners.php create mode 100644 src/Google/Service/Proximitybeacon.php create mode 100644 src/Google/Service/Storagetransfer.php create mode 100644 src/Google/Service/YouTubeReporting.php diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 8a607f8b1..84d401cb5 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -16,7 +16,7 @@ */ /** - * Service definition for AdExchangeBuyer (v1.3). + * Service definition for AdExchangeBuyer (v1.4). * *

* Accesses your bidding-account information, submits creatives for validation, @@ -38,8 +38,16 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $accounts; public $billingInfo; public $budget; + public $clientaccess; public $creatives; - public $directDeals; + public $deals; + public $marketplacedeals; + public $marketplacenotes; + public $marketplaceoffers; + public $marketplaceorders; + public $negotiationrounds; + public $negotiations; + public $offers; public $performanceReport; public $pretargetingConfig; @@ -53,8 +61,8 @@ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'adexchangebuyer/v1.3/'; - $this->version = 'v1.3'; + $this->servicePath = 'adexchangebuyer/v1.4/'; + $this->version = 'v1.4'; $this->serviceName = 'adexchangebuyer'; $this->accounts = new Google_Service_AdExchangeBuyer_Accounts_Resource( @@ -180,6 +188,93 @@ public function __construct(Google_Client $client) ) ) ); + $this->clientaccess = new Google_Service_AdExchangeBuyer_Clientaccess_Resource( + $this, + $this->serviceName, + 'clientaccess', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'clientAccess/{clientAccountId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sponsorAccountId' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'clientAccess/{clientAccountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sponsorAccountId' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'clientAccess', + 'httpMethod' => 'POST', + 'parameters' => array( + 'clientAccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sponsorAccountId' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'list' => array( + 'path' => 'clientAccess', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'patch' => array( + 'path' => 'clientAccess/{clientAccountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sponsorAccountId' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'clientAccess/{clientAccountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sponsorAccountId' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -209,11 +304,7 @@ public function __construct(Google_Client $client) 'path' => 'creatives', 'httpMethod' => 'GET', 'parameters' => array( - 'statusFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'openAuctionStatusFilter' => array( 'location' => 'query', 'type' => 'string', ), @@ -221,11 +312,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'buyerCreativeId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'dealsStatusFilter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'accountId' => array( 'location' => 'query', 'type' => 'integer', @@ -236,189 +335,443 @@ public function __construct(Google_Client $client) ) ) ); - $this->directDeals = new Google_Service_AdExchangeBuyer_DirectDeals_Resource( + $this->deals = new Google_Service_AdExchangeBuyer_Deals_Resource( $this, $this->serviceName, - 'directDeals', + 'deals', array( 'methods' => array( 'get' => array( - 'path' => 'directdeals/{id}', + 'path' => 'deals/{dealId}', 'httpMethod' => 'GET', 'parameters' => array( - 'id' => array( + 'dealId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => 'directdeals', - 'httpMethod' => 'GET', - 'parameters' => array(), ), ) ) ); - $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( + $this->marketplacedeals = new Google_Service_AdExchangeBuyer_Marketplacedeals_Resource( $this, $this->serviceName, - 'performanceReport', + 'marketplacedeals', array( 'methods' => array( - 'list' => array( - 'path' => 'performancereport', - 'httpMethod' => 'GET', + 'delete' => array( + 'path' => 'marketplaceOrders/{orderId}/deals/delete', + 'httpMethod' => 'POST', 'parameters' => array( - 'accountId' => array( - 'location' => 'query', + 'orderId' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'endDateTime' => array( - 'location' => 'query', + ), + ),'insert' => array( + 'path' => 'marketplaceOrders/{orderId}/deals/insert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'orderId' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'startDateTime' => array( - 'location' => 'query', + ), + ),'list' => array( + 'path' => 'marketplaceOrders/{orderId}/deals', + 'httpMethod' => 'GET', + 'parameters' => array( + 'orderId' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + ), + ),'update' => array( + 'path' => 'marketplaceOrders/{orderId}/deals/update', + 'httpMethod' => 'POST', + 'parameters' => array( + 'orderId' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), ), ) ) ); - $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( + $this->marketplacenotes = new Google_Service_AdExchangeBuyer_Marketplacenotes_Resource( $this, $this->serviceName, - 'pretargetingConfig', + 'marketplacenotes', array( 'methods' => array( - 'delete' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'DELETE', + 'insert' => array( + 'path' => 'marketplaceOrders/{orderId}/notes/insert', + 'httpMethod' => 'POST', 'parameters' => array( - 'accountId' => array( + 'orderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( + ), + ),'list' => array( + 'path' => 'marketplaceOrders/{orderId}/notes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'orderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', + ), + ) + ) + ); + $this->marketplaceoffers = new Google_Service_AdExchangeBuyer_Marketplaceoffers_Resource( + $this, + $this->serviceName, + 'marketplaceoffers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'marketplaceOffers/{offerId}', 'httpMethod' => 'GET', 'parameters' => array( - 'accountId' => array( + 'offerId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( + ), + ),'search' => array( + 'path' => 'marketplaceOffers/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pqlQuery' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->marketplaceorders = new Google_Service_AdExchangeBuyer_Marketplaceorders_Resource( + $this, + $this->serviceName, + 'marketplaceorders', + array( + 'methods' => array( + 'get' => array( + 'path' => 'marketplaceOrders/{orderId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'orderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => 'pretargetingconfigs/{accountId}', + 'path' => 'marketplaceOrders/insert', 'httpMethod' => 'POST', + 'parameters' => array(), + ),'patch' => array( + 'path' => 'marketplaceOrders/{orderId}/{revisionNumber}/{updateAction}', + 'httpMethod' => 'PATCH', 'parameters' => array( - 'accountId' => array( + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revisionNumber' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateAction' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => 'pretargetingconfigs/{accountId}', + ),'search' => array( + 'path' => 'marketplaceOrders/search', 'httpMethod' => 'GET', 'parameters' => array( - 'accountId' => array( - 'location' => 'path', + 'pqlQuery' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), - ),'patch' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PATCH', + ),'update' => array( + 'path' => 'marketplaceOrders/{orderId}/{revisionNumber}/{updateAction}', + 'httpMethod' => 'PUT', 'parameters' => array( - 'accountId' => array( + 'orderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( + 'revisionNumber' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateAction' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'update' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PUT', + ), + ) + ) + ); + $this->negotiationrounds = new Google_Service_AdExchangeBuyer_Negotiationrounds_Resource( + $this, + $this->serviceName, + 'negotiationrounds', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'negotiations/{negotiationId}/negotiationrounds', + 'httpMethod' => 'POST', 'parameters' => array( - 'accountId' => array( + 'negotiationId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( + ), + ), + ) + ) + ); + $this->negotiations = new Google_Service_AdExchangeBuyer_Negotiations_Resource( + $this, + $this->serviceName, + 'negotiations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'negotiations/{negotiationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'negotiationId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), + ),'insert' => array( + 'path' => 'negotiations', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'list' => array( + 'path' => 'negotiations', + 'httpMethod' => 'GET', + 'parameters' => array(), ), ) ) ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); - } - - /** - * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) + $this->offers = new Google_Service_AdExchangeBuyer_Offers_Resource( + $this, + $this->serviceName, + 'offers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'offers/{offerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'offerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'offers', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'list' => array( + 'path' => 'offers', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( + $this, + $this->serviceName, + 'performanceReport', + array( + 'methods' => array( + 'list' => array( + 'path' => 'performancereport', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'startDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( + $this, + $this->serviceName, + 'pretargetingConfig', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $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); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); + } + + /** + * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) * * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_AccountsList @@ -571,6 +924,109 @@ public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Bu } } +/** + * The "clientaccess" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $clientaccess = $adexchangebuyerService->clientaccess; + * + */ +class Google_Service_AdExchangeBuyer_Clientaccess_Resource extends Google_Service_Resource +{ + + /** + * (clientaccess.delete) + * + * @param string $clientAccountId + * @param int $sponsorAccountId + * @param array $optParams Optional parameters. + */ + public function delete($clientAccountId, $sponsorAccountId, $optParams = array()) + { + $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * (clientaccess.get) + * + * @param string $clientAccountId + * @param int $sponsorAccountId + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities + */ + public function get($clientAccountId, $sponsorAccountId, $optParams = array()) + { + $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); + } + + /** + * (clientaccess.insert) + * + * @param Google_ClientAccessCapabilities $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string clientAccountId + * @opt_param int sponsorAccountId + * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities + */ + public function insert(Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); + } + + /** + * (clientaccess.listClientaccess) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse + */ + public function listClientaccess($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse"); + } + + /** + * (clientaccess.patch) + * + * @param string $clientAccountId + * @param int $sponsorAccountId + * @param Google_ClientAccessCapabilities $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities + */ + public function patch($clientAccountId, $sponsorAccountId, Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) + { + $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); + } + + /** + * (clientaccess.update) + * + * @param string $clientAccountId + * @param int $sponsorAccountId + * @param Google_ClientAccessCapabilities $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities + */ + public function update($clientAccountId, $sponsorAccountId, Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) + { + $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); + } +} + /** * The "creatives" collection of methods. * Typical usage is: @@ -618,15 +1074,17 @@ public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optPa * * @param array $optParams Optional parameters. * - * @opt_param string statusFilter When specified, only creatives having the - * given status are returned. + * @opt_param string openAuctionStatusFilter When specified, only creatives + * having the given open auction status are returned. + * @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 maxResults Maximum number of entries returned on one result - * page. If not set, the default is 100. Optional. * @opt_param string buyerCreativeId When specified, only creatives for the * given buyer creative ids are returned. + * @opt_param string dealsStatusFilter When specified, only creatives having the + * given direct deals status are returned. * @opt_param int accountId When specified, only creatives for the given account * ids are returned. * @return Google_Service_AdExchangeBuyer_CreativesList @@ -640,42 +1098,415 @@ public function listCreatives($optParams = array()) } /** - * The "directDeals" collection of methods. + * The "deals" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $directDeals = $adexchangebuyerService->directDeals; + * $deals = $adexchangebuyerService->deals; * */ -class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_Deals_Resource extends Google_Service_Resource { /** - * Gets one direct deal by ID. (directDeals.get) + * Gets the requested deal. (deals.get) * - * @param string $id The direct deal id + * @param string $dealId * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_DirectDeal + * @return Google_Service_AdExchangeBuyer_NegotiationDto */ - public function get($id, $optParams = array()) + public function get($dealId, $optParams = array()) { - $params = array('id' => $id); + $params = array('dealId' => $dealId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_DirectDeal"); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); } +} - /** - * Retrieves the authenticated user's list of direct deals. - * (directDeals.listDirectDeals) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_DirectDealsList - */ - public function listDirectDeals($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_DirectDealsList"); +/** + * The "marketplacedeals" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $marketplacedeals = $adexchangebuyerService->marketplacedeals; + * + */ +class Google_Service_AdExchangeBuyer_Marketplacedeals_Resource extends Google_Service_Resource +{ + + /** + * Delete the specified deals from the order (marketplacedeals.delete) + * + * @param string $orderId The orderId to delete deals from. + * @param Google_DeleteOrderDealsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse + */ + public function delete($orderId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse"); + } + + /** + * Add new deals for the specified order (marketplacedeals.insert) + * + * @param string $orderId OrderId for which deals need to be added. + * @param Google_AddOrderDealsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse + */ + public function insert($orderId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse"); + } + + /** + * List all the deals for a given order (marketplacedeals.listMarketplacedeals) + * + * @param string $orderId The orderId to get deals for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse + */ + public function listMarketplacedeals($orderId, $optParams = array()) + { + $params = array('orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse"); + } + + /** + * Replaces all the deals in the order with the passed in deals + * (marketplacedeals.update) + * + * @param string $orderId The orderId to edit deals on. + * @param Google_EditAllOrderDealsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse + */ + public function update($orderId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse"); + } +} + +/** + * The "marketplacenotes" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $marketplacenotes = $adexchangebuyerService->marketplacenotes; + * + */ +class Google_Service_AdExchangeBuyer_Marketplacenotes_Resource extends Google_Service_Resource +{ + + /** + * Add notes to the order (marketplacenotes.insert) + * + * @param string $orderId The orderId to add notes for. + * @param Google_AddOrderNotesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_AddOrderNotesResponse + */ + public function insert($orderId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderNotesResponse"); + } + + /** + * Get all the notes associated with an order + * (marketplacenotes.listMarketplacenotes) + * + * @param string $orderId The orderId to get notes for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_GetOrderNotesResponse + */ + public function listMarketplacenotes($orderId, $optParams = array()) + { + $params = array('orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderNotesResponse"); + } +} + +/** + * The "marketplaceoffers" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $marketplaceoffers = $adexchangebuyerService->marketplaceoffers; + * + */ +class Google_Service_AdExchangeBuyer_Marketplaceoffers_Resource extends Google_Service_Resource +{ + + /** + * Gets the requested negotiation. (marketplaceoffers.get) + * + * @param string $offerId The offerId for the offer to get the head revision + * for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_MarketplaceOffer + */ + public function get($offerId, $optParams = array()) + { + $params = array('offerId' => $offerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOffer"); + } + + /** + * Gets the requested negotiation. (marketplaceoffers.search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pqlQuery The pql query used to query for offers. + * @return Google_Service_AdExchangeBuyer_GetOffersResponse + */ + public function search($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse"); + } +} + +/** + * The "marketplaceorders" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $marketplaceorders = $adexchangebuyerService->marketplaceorders; + * + */ +class Google_Service_AdExchangeBuyer_Marketplaceorders_Resource extends Google_Service_Resource +{ + + /** + * Get an order given its id (marketplaceorders.get) + * + * @param string $orderId Id of the order to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_MarketplaceOrder + */ + public function get($orderId, $optParams = array()) + { + $params = array('orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + } + + /** + * Create the given list of orders (marketplaceorders.insert) + * + * @param Google_CreateOrdersRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_CreateOrdersResponse + */ + public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse"); + } + + /** + * Update the given order. This method supports patch semantics. + * (marketplaceorders.patch) + * + * @param string $orderId The order id to update. + * @param string $revisionNumber The last known revision number to update. If + * the head revision in the marketplace database has since changed, an error + * will be thrown. The caller should then fetch the lastest order at head + * revision and retry the update at that revision. + * @param string $updateAction The proposed action to take on the order. + * @param Google_MarketplaceOrder $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_MarketplaceOrder + */ + public function patch($orderId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_MarketplaceOrder $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + } + + /** + * Search for orders using pql query (marketplaceorders.search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pqlQuery Query string to retrieve specific orders. + * @return Google_Service_AdExchangeBuyer_GetOrdersResponse + */ + public function search($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse"); + } + + /** + * Update the given order (marketplaceorders.update) + * + * @param string $orderId The order id to update. + * @param string $revisionNumber The last known revision number to update. If + * the head revision in the marketplace database has since changed, an error + * will be thrown. The caller should then fetch the lastest order at head + * revision and retry the update at that revision. + * @param string $updateAction The proposed action to take on the order. + * @param Google_MarketplaceOrder $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_MarketplaceOrder + */ + public function update($orderId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_MarketplaceOrder $postBody, $optParams = array()) + { + $params = array('orderId' => $orderId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + } +} + +/** + * The "negotiationrounds" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $negotiationrounds = $adexchangebuyerService->negotiationrounds; + * + */ +class Google_Service_AdExchangeBuyer_Negotiationrounds_Resource extends Google_Service_Resource +{ + + /** + * Adds the requested negotiationRound to the requested negotiation. + * (negotiationrounds.insert) + * + * @param string $negotiationId + * @param Google_NegotiationRoundDto $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_NegotiationRoundDto + */ + public function insert($negotiationId, Google_Service_AdExchangeBuyer_NegotiationRoundDto $postBody, $optParams = array()) + { + $params = array('negotiationId' => $negotiationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_NegotiationRoundDto"); + } +} + +/** + * The "negotiations" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $negotiations = $adexchangebuyerService->negotiations; + * + */ +class Google_Service_AdExchangeBuyer_Negotiations_Resource extends Google_Service_Resource +{ + + /** + * Gets the requested negotiation. (negotiations.get) + * + * @param string $negotiationId + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_NegotiationDto + */ + public function get($negotiationId, $optParams = array()) + { + $params = array('negotiationId' => $negotiationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); + } + + /** + * Creates or updates the requested negotiation. (negotiations.insert) + * + * @param Google_NegotiationDto $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_NegotiationDto + */ + public function insert(Google_Service_AdExchangeBuyer_NegotiationDto $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); + } + + /** + * Lists all negotiations the authenticated user has access to. + * (negotiations.listNegotiations) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_GetNegotiationsResponse + */ + public function listNegotiations($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetNegotiationsResponse"); + } +} + +/** + * The "offers" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $offers = $adexchangebuyerService->offers; + * + */ +class Google_Service_AdExchangeBuyer_Offers_Resource extends Google_Service_Resource +{ + + /** + * Gets the requested offer. (offers.get) + * + * @param string $offerId + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_OfferDto + */ + public function get($offerId, $optParams = array()) + { + $params = array('offerId' => $offerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_OfferDto"); + } + + /** + * Creates or updates the requested offer. (offers.insert) + * + * @param Google_OfferDto $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_OfferDto + */ + public function insert(Google_Service_AdExchangeBuyer_OfferDto $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_OfferDto"); + } + + /** + * Lists all offers the authenticated user has access to. (offers.listOffers) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_ListOffersResponse + */ + public function listOffers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_ListOffersResponse"); } } @@ -972,267 +1803,321 @@ public function getKind() } } -class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection +class Google_Service_AdExchangeBuyer_AdSize extends Google_Model { - protected $collection_key = 'billingId'; protected $internal_gapi_mappings = array( ); - public $accountId; - public $accountName; - public $billingId; - public $kind; + public $height; + public $width; - public function setAccountId($accountId) + public function setHeight($height) { - $this->accountId = $accountId; + $this->height = $height; } - public function getAccountId() + public function getHeight() { - return $this->accountId; + return $this->height; } - public function setAccountName($accountName) + public function setWidth($width) { - $this->accountName = $accountName; + $this->width = $width; } - public function getAccountName() + public function getWidth() { - return $this->accountName; - } - public function setBillingId($billingId) - { - $this->billingId = $billingId; - } - public function getBillingId() - { - return $this->billingId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; + return $this->width; } } -class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection +class Google_Service_AdExchangeBuyer_AdSlotDto extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; - protected $itemsDataType = 'array'; - public $kind; + public $channelCode; + public $channelId; + public $description; + public $name; + public $size; + public $webPropertyId; - public function setItems($items) + public function setChannelCode($channelCode) { - $this->items = $items; + $this->channelCode = $channelCode; } - public function getItems() + public function getChannelCode() { - return $this->items; + return $this->channelCode; } - public function setKind($kind) + public function setChannelId($channelId) { - $this->kind = $kind; + $this->channelId = $channelId; } - public function getKind() + public function getChannelId() { - return $this->kind; + return $this->channelId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setWebPropertyId($webPropertyId) + { + $this->webPropertyId = $webPropertyId; + } + public function getWebPropertyId() + { + return $this->webPropertyId; } } -class Google_Service_AdExchangeBuyer_Budget extends Google_Model +class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collection { + protected $collection_key = 'deals'; protected $internal_gapi_mappings = array( ); - public $accountId; - public $billingId; - public $budgetAmount; - public $currencyCode; - public $id; - public $kind; + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + public $orderRevisionNumber; + public $updateAction; - public function setAccountId($accountId) + public function setDeals($deals) { - $this->accountId = $accountId; + $this->deals = $deals; } - public function getAccountId() + public function getDeals() { - return $this->accountId; + return $this->deals; } - public function setBillingId($billingId) + public function setOrderRevisionNumber($orderRevisionNumber) { - $this->billingId = $billingId; + $this->orderRevisionNumber = $orderRevisionNumber; } - public function getBillingId() + public function getOrderRevisionNumber() { - return $this->billingId; + return $this->orderRevisionNumber; } - public function setBudgetAmount($budgetAmount) + public function setUpdateAction($updateAction) { - $this->budgetAmount = $budgetAmount; + $this->updateAction = $updateAction; } - public function getBudgetAmount() + public function getUpdateAction() { - return $this->budgetAmount; + return $this->updateAction; } - public function setCurrencyCode($currencyCode) +} + +class Google_Service_AdExchangeBuyer_AddOrderDealsResponse extends Google_Collection +{ + protected $collection_key = 'deals'; + protected $internal_gapi_mappings = array( + ); + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + public $orderRevisionNumber; + + + public function setDeals($deals) { - $this->currencyCode = $currencyCode; + $this->deals = $deals; } - public function getCurrencyCode() + public function getDeals() { - return $this->currencyCode; + return $this->deals; } - public function setId($id) + public function setOrderRevisionNumber($orderRevisionNumber) { - $this->id = $id; + $this->orderRevisionNumber = $orderRevisionNumber; } - public function getId() + public function getOrderRevisionNumber() { - return $this->id; + return $this->orderRevisionNumber; } - public function setKind($kind) +} + +class Google_Service_AdExchangeBuyer_AddOrderNotesRequest extends Google_Collection +{ + protected $collection_key = 'notes'; + protected $internal_gapi_mappings = array( + ); + protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; + protected $notesDataType = 'array'; + + + public function setNotes($notes) { - $this->kind = $kind; + $this->notes = $notes; } - public function getKind() + public function getNotes() { - return $this->kind; + return $this->notes; } } -class Google_Service_AdExchangeBuyer_Creative extends Google_Collection +class Google_Service_AdExchangeBuyer_AddOrderNotesResponse extends Google_Collection { - protected $collection_key = 'vendorType'; + protected $collection_key = 'notes'; protected $internal_gapi_mappings = array( - "hTMLSnippet" => "HTMLSnippet", ); - public $hTMLSnippet; - public $accountId; - public $advertiserId; - public $advertiserName; - public $agencyId; - public $attribute; - public $buyerCreativeId; - public $clickThroughUrl; - protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections'; - protected $correctionsDataType = 'array'; - protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons'; - protected $disapprovalReasonsDataType = 'array'; - protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons'; - protected $filteringReasonsDataType = ''; - public $height; - public $kind; - public $productCategories; - public $restrictedCategories; - public $sensitiveCategories; - public $status; - public $vendorType; - public $videoURL; - public $width; + protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; + protected $notesDataType = 'array'; - public function setHTMLSnippet($hTMLSnippet) + public function setNotes($notes) { - $this->hTMLSnippet = $hTMLSnippet; + $this->notes = $notes; } - public function getHTMLSnippet() + public function getNotes() { - return $this->hTMLSnippet; + return $this->notes; } - public function setAccountId($accountId) +} + +class Google_Service_AdExchangeBuyer_AdvertiserDto extends Google_Collection +{ + protected $collection_key = 'brands'; + protected $internal_gapi_mappings = array( + ); + protected $brandsType = 'Google_Service_AdExchangeBuyer_BrandDto'; + protected $brandsDataType = 'array'; + public $id; + public $name; + public $status; + + + public function setBrands($brands) { - $this->accountId = $accountId; + $this->brands = $brands; } - public function getAccountId() + public function getBrands() { - return $this->accountId; + return $this->brands; } - public function setAdvertiserId($advertiserId) + public function setId($id) { - $this->advertiserId = $advertiserId; + $this->id = $id; } - public function getAdvertiserId() + public function getId() { - return $this->advertiserId; + return $this->id; } - public function setAdvertiserName($advertiserName) + public function setName($name) { - $this->advertiserName = $advertiserName; + $this->name = $name; } - public function getAdvertiserName() + public function getName() { - return $this->advertiserName; + return $this->name; } - public function setAgencyId($agencyId) + public function setStatus($status) { - $this->agencyId = $agencyId; + $this->status = $status; } - public function getAgencyId() + public function getStatus() { - return $this->agencyId; + return $this->status; } - public function setAttribute($attribute) +} + +class Google_Service_AdExchangeBuyer_AudienceSegment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $id; + public $name; + public $numCookies; + + + public function setDescription($description) { - $this->attribute = $attribute; + $this->description = $description; } - public function getAttribute() + public function getDescription() { - return $this->attribute; + return $this->description; } - public function setBuyerCreativeId($buyerCreativeId) + public function setId($id) { - $this->buyerCreativeId = $buyerCreativeId; + $this->id = $id; } - public function getBuyerCreativeId() + public function getId() { - return $this->buyerCreativeId; + return $this->id; } - public function setClickThroughUrl($clickThroughUrl) + public function setName($name) { - $this->clickThroughUrl = $clickThroughUrl; + $this->name = $name; } - public function getClickThroughUrl() + public function getName() { - return $this->clickThroughUrl; + return $this->name; } - public function setCorrections($corrections) + public function setNumCookies($numCookies) { - $this->corrections = $corrections; + $this->numCookies = $numCookies; } - public function getCorrections() + public function getNumCookies() { - return $this->corrections; + return $this->numCookies; } - public function setDisapprovalReasons($disapprovalReasons) +} + +class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection +{ + protected $collection_key = 'billingId'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $accountName; + public $billingId; + public $kind; + + + public function setAccountId($accountId) { - $this->disapprovalReasons = $disapprovalReasons; + $this->accountId = $accountId; } - public function getDisapprovalReasons() + public function getAccountId() { - return $this->disapprovalReasons; + return $this->accountId; } - public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) + public function setAccountName($accountName) { - $this->filteringReasons = $filteringReasons; + $this->accountName = $accountName; } - public function getFilteringReasons() + public function getAccountName() { - return $this->filteringReasons; + return $this->accountName; } - public function setHeight($height) + public function setBillingId($billingId) { - $this->height = $height; + $this->billingId = $billingId; } - public function getHeight() + public function getBillingId() { - return $this->height; + return $this->billingId; } public function setKind($kind) { @@ -1242,181 +2127,3720 @@ public function getKind() { return $this->kind; } - public function setProductCategories($productCategories) +} + +class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) { - $this->productCategories = $productCategories; + $this->items = $items; } - public function getProductCategories() + public function getItems() { - return $this->productCategories; + return $this->items; } - public function setRestrictedCategories($restrictedCategories) + public function setKind($kind) { - $this->restrictedCategories = $restrictedCategories; + $this->kind = $kind; } - public function getRestrictedCategories() + public function getKind() { - return $this->restrictedCategories; + return $this->kind; } - public function setSensitiveCategories($sensitiveCategories) +} + +class Google_Service_AdExchangeBuyer_BrandDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $advertiserId; + public $id; + public $name; + + + public function setAdvertiserId($advertiserId) { - $this->sensitiveCategories = $sensitiveCategories; + $this->advertiserId = $advertiserId; } - public function getSensitiveCategories() + public function getAdvertiserId() { - return $this->sensitiveCategories; + return $this->advertiserId; } - public function setStatus($status) + public function setId($id) { - $this->status = $status; + $this->id = $id; } - public function getStatus() + public function getId() { - return $this->status; + return $this->id; } - public function setVendorType($vendorType) + public function setName($name) { - $this->vendorType = $vendorType; + $this->name = $name; } - public function getVendorType() + public function getName() { - return $this->vendorType; + return $this->name; } - public function setVideoURL($videoURL) +} + +class Google_Service_AdExchangeBuyer_Budget extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $billingId; + public $budgetAmount; + public $currencyCode; + public $id; + public $kind; + + + public function setAccountId($accountId) { - $this->videoURL = $videoURL; + $this->accountId = $accountId; } - public function getVideoURL() + public function getAccountId() { - return $this->videoURL; + return $this->accountId; } - public function setWidth($width) + public function setBillingId($billingId) { - $this->width = $width; + $this->billingId = $billingId; } - public function getWidth() + public function getBillingId() { - return $this->width; + return $this->billingId; + } + public function setBudgetAmount($budgetAmount) + { + $this->budgetAmount = $budgetAmount; + } + public function getBudgetAmount() + { + return $this->budgetAmount; + } + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + 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_AdExchangeBuyer_CreativeCorrections extends Google_Collection +class Google_Service_AdExchangeBuyer_Buyer extends Google_Model { - protected $collection_key = 'details'; protected $internal_gapi_mappings = array( ); - public $details; - public $reason; + public $accountId; - public function setDetails($details) + public function setAccountId($accountId) { - $this->details = $details; + $this->accountId = $accountId; } - public function getDetails() + public function getAccountId() { - return $this->details; + return $this->accountId; } - public function setReason($reason) +} + +class Google_Service_AdExchangeBuyer_BuyerDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $customerId; + public $displayName; + public $enabledForInterestTargetingDeals; + public $enabledForPreferredDeals; + public $id; + public $sponsorAccountId; + + + public function setAccountId($accountId) { - $this->reason = $reason; + $this->accountId = $accountId; } - public function getReason() + public function getAccountId() { - return $this->reason; + return $this->accountId; + } + public function setCustomerId($customerId) + { + $this->customerId = $customerId; + } + public function getCustomerId() + { + return $this->customerId; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setEnabledForInterestTargetingDeals($enabledForInterestTargetingDeals) + { + $this->enabledForInterestTargetingDeals = $enabledForInterestTargetingDeals; + } + public function getEnabledForInterestTargetingDeals() + { + return $this->enabledForInterestTargetingDeals; + } + public function setEnabledForPreferredDeals($enabledForPreferredDeals) + { + $this->enabledForPreferredDeals = $enabledForPreferredDeals; + } + public function getEnabledForPreferredDeals() + { + return $this->enabledForPreferredDeals; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setSponsorAccountId($sponsorAccountId) + { + $this->sponsorAccountId = $sponsorAccountId; + } + public function getSponsorAccountId() + { + return $this->sponsorAccountId; } } -class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection +class Google_Service_AdExchangeBuyer_ClientAccessCapabilities extends Google_Collection { - protected $collection_key = 'details'; + protected $collection_key = 'capabilities'; protected $internal_gapi_mappings = array( ); - public $details; - public $reason; + public $capabilities; + public $clientAccountId; - public function setDetails($details) + public function setCapabilities($capabilities) { - $this->details = $details; + $this->capabilities = $capabilities; } - public function getDetails() + public function getCapabilities() { - return $this->details; + return $this->capabilities; } - public function setReason($reason) + public function setClientAccountId($clientAccountId) { - $this->reason = $reason; + $this->clientAccountId = $clientAccountId; } - public function getReason() + public function getClientAccountId() { - return $this->reason; + return $this->clientAccountId; } } -class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection +class Google_Service_AdExchangeBuyer_ContactInformation extends Google_Model { - protected $collection_key = 'reasons'; protected $internal_gapi_mappings = array( ); - public $date; - protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; - protected $reasonsDataType = 'array'; + public $email; + public $name; - public function setDate($date) + public function setEmail($email) { - $this->date = $date; + $this->email = $email; } - public function getDate() + public function getEmail() { - return $this->date; + return $this->email; } - public function setReasons($reasons) + public function setName($name) { - $this->reasons = $reasons; + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_AdExchangeBuyer_CreateOrdersRequest extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; + protected $ordersDataType = 'array'; + public $webPropertyCode; + + + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } + public function setWebPropertyCode($webPropertyCode) + { + $this->webPropertyCode = $webPropertyCode; + } + public function getWebPropertyCode() + { + return $this->webPropertyCode; + } +} + +class Google_Service_AdExchangeBuyer_CreateOrdersResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; + protected $ordersDataType = 'array'; + + + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } +} + +class Google_Service_AdExchangeBuyer_Creative extends Google_Collection +{ + protected $collection_key = 'vendorType'; + protected $internal_gapi_mappings = array( + "hTMLSnippet" => "HTMLSnippet", + "apiUploadTimestamp" => "api_upload_timestamp", + ); + public $hTMLSnippet; + public $accountId; + public $advertiserId; + public $advertiserName; + public $agencyId; + public $apiUploadTimestamp; + public $attribute; + public $buyerCreativeId; + public $clickThroughUrl; + protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections'; + protected $correctionsDataType = 'array'; + public $dealsStatus; + protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons'; + protected $filteringReasonsDataType = ''; + public $height; + public $impressionTrackingUrl; + public $kind; + protected $nativeAdType = 'Google_Service_AdExchangeBuyer_CreativeNativeAd'; + protected $nativeAdDataType = ''; + public $openAuctionStatus; + public $productCategories; + public $restrictedCategories; + public $sensitiveCategories; + protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictions'; + protected $servingRestrictionsDataType = 'array'; + public $vendorType; + public $version; + 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 setApiUploadTimestamp($apiUploadTimestamp) + { + $this->apiUploadTimestamp = $apiUploadTimestamp; + } + public function getApiUploadTimestamp() + { + return $this->apiUploadTimestamp; + } + 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 setCorrections($corrections) + { + $this->corrections = $corrections; + } + public function getCorrections() + { + return $this->corrections; + } + public function setDealsStatus($dealsStatus) + { + $this->dealsStatus = $dealsStatus; + } + public function getDealsStatus() + { + return $this->dealsStatus; + } + public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) + { + $this->filteringReasons = $filteringReasons; + } + public function getFilteringReasons() + { + return $this->filteringReasons; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setImpressionTrackingUrl($impressionTrackingUrl) + { + $this->impressionTrackingUrl = $impressionTrackingUrl; + } + public function getImpressionTrackingUrl() + { + return $this->impressionTrackingUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNativeAd(Google_Service_AdExchangeBuyer_CreativeNativeAd $nativeAd) + { + $this->nativeAd = $nativeAd; + } + public function getNativeAd() + { + return $this->nativeAd; + } + public function setOpenAuctionStatus($openAuctionStatus) + { + $this->openAuctionStatus = $openAuctionStatus; + } + public function getOpenAuctionStatus() + { + return $this->openAuctionStatus; + } + public function setProductCategories($productCategories) + { + $this->productCategories = $productCategories; + } + public function getProductCategories() + { + return $this->productCategories; + } + public function setRestrictedCategories($restrictedCategories) + { + $this->restrictedCategories = $restrictedCategories; + } + public function getRestrictedCategories() + { + return $this->restrictedCategories; + } + public function setSensitiveCategories($sensitiveCategories) + { + $this->sensitiveCategories = $sensitiveCategories; + } + public function getSensitiveCategories() + { + return $this->sensitiveCategories; + } + public function setServingRestrictions($servingRestrictions) + { + $this->servingRestrictions = $servingRestrictions; + } + public function getServingRestrictions() + { + return $this->servingRestrictions; + } + public function setVendorType($vendorType) + { + $this->vendorType = $vendorType; + } + public function getVendorType() + { + return $this->vendorType; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + 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_CreativeCorrections extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + 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_CreativeFilteringReasons extends Google_Collection +{ + protected $collection_key = 'reasons'; + protected $internal_gapi_mappings = array( + ); + public $date; + protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; + protected $reasonsDataType = 'array'; + + + public function setDate($date) + { + $this->date = $date; + } + public function getDate() + { + return $this->date; + } + public function setReasons($reasons) + { + $this->reasons = $reasons; + } + public function getReasons() + { + return $this->reasons; + } +} + +class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $filteringCount; + public $filteringStatus; + + + public function setFilteringCount($filteringCount) + { + $this->filteringCount = $filteringCount; + } + public function getFilteringCount() + { + return $this->filteringCount; + } + public function setFilteringStatus($filteringStatus) + { + $this->filteringStatus = $filteringStatus; + } + public function getFilteringStatus() + { + return $this->filteringStatus; + } +} + +class Google_Service_AdExchangeBuyer_CreativeNativeAd extends Google_Collection +{ + protected $collection_key = 'impressionTrackingUrl'; + protected $internal_gapi_mappings = array( + ); + public $advertiser; + protected $appIconType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon'; + protected $appIconDataType = ''; + public $body; + public $callToAction; + public $clickTrackingUrl; + public $headline; + protected $imageType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdImage'; + protected $imageDataType = ''; + public $impressionTrackingUrl; + protected $logoType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdLogo'; + protected $logoDataType = ''; + public $price; + public $starRating; + public $store; + + + public function setAdvertiser($advertiser) + { + $this->advertiser = $advertiser; + } + public function getAdvertiser() + { + return $this->advertiser; + } + public function setAppIcon(Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon $appIcon) + { + $this->appIcon = $appIcon; + } + public function getAppIcon() + { + return $this->appIcon; + } + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } + public function setCallToAction($callToAction) + { + $this->callToAction = $callToAction; + } + public function getCallToAction() + { + return $this->callToAction; + } + public function setClickTrackingUrl($clickTrackingUrl) + { + $this->clickTrackingUrl = $clickTrackingUrl; + } + public function getClickTrackingUrl() + { + return $this->clickTrackingUrl; + } + public function setHeadline($headline) + { + $this->headline = $headline; + } + public function getHeadline() + { + return $this->headline; + } + public function setImage(Google_Service_AdExchangeBuyer_CreativeNativeAdImage $image) + { + $this->image = $image; + } + public function getImage() + { + return $this->image; + } + public function setImpressionTrackingUrl($impressionTrackingUrl) + { + $this->impressionTrackingUrl = $impressionTrackingUrl; + } + public function getImpressionTrackingUrl() + { + return $this->impressionTrackingUrl; + } + public function setLogo(Google_Service_AdExchangeBuyer_CreativeNativeAdLogo $logo) + { + $this->logo = $logo; + } + public function getLogo() + { + return $this->logo; + } + public function setPrice($price) + { + $this->price = $price; + } + public function getPrice() + { + return $this->price; + } + public function setStarRating($starRating) + { + $this->starRating = $starRating; + } + public function getStarRating() + { + return $this->starRating; + } + public function setStore($store) + { + $this->store = $store; + } + public function getStore() + { + return $this->store; + } +} + +class Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_AdExchangeBuyer_CreativeNativeAdImage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_AdExchangeBuyer_CreativeNativeAdLogo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_AdExchangeBuyer_CreativeServingRestrictions extends Google_Collection +{ + protected $collection_key = 'disapprovalReasons'; + protected $internal_gapi_mappings = array( + ); + protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts'; + protected $contextsDataType = 'array'; + protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons'; + protected $disapprovalReasonsDataType = 'array'; + public $reason; + + + public function setContexts($contexts) + { + $this->contexts = $contexts; + } + public function getContexts() + { + return $this->contexts; + } + public function setDisapprovalReasons($disapprovalReasons) + { + $this->disapprovalReasons = $disapprovalReasons; + } + public function getDisapprovalReasons() + { + return $this->disapprovalReasons; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } +} + +class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts extends Google_Collection +{ + protected $collection_key = 'platform'; + protected $internal_gapi_mappings = array( + ); + public $auctionType; + public $contextType; + public $geoCriteriaId; + public $platform; + + + public function setAuctionType($auctionType) + { + $this->auctionType = $auctionType; + } + public function getAuctionType() + { + return $this->auctionType; + } + public function setContextType($contextType) + { + $this->contextType = $contextType; + } + public function getContextType() + { + return $this->contextType; + } + public function setGeoCriteriaId($geoCriteriaId) + { + $this->geoCriteriaId = $geoCriteriaId; + } + public function getGeoCriteriaId() + { + return $this->geoCriteriaId; + } + public function setPlatform($platform) + { + $this->platform = $platform; + } + public function getPlatform() + { + return $this->platform; + } +} + +class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + 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 $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_AdExchangeBuyer_DateTime extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $day; + public $hour; + public $minute; + public $month; + public $second; + public $timeZoneId; + public $year; + + + public function setDay($day) + { + $this->day = $day; + } + public function getDay() + { + return $this->day; + } + public function setHour($hour) + { + $this->hour = $hour; + } + public function getHour() + { + return $this->hour; + } + public function setMinute($minute) + { + $this->minute = $minute; + } + public function getMinute() + { + return $this->minute; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setSecond($second) + { + $this->second = $second; + } + public function getSecond() + { + return $this->second; + } + public function setTimeZoneId($timeZoneId) + { + $this->timeZoneId = $timeZoneId; + } + public function getTimeZoneId() + { + return $this->timeZoneId; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} + +class Google_Service_AdExchangeBuyer_DealPartyDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $buyerType = 'Google_Service_AdExchangeBuyer_BuyerDto'; + protected $buyerDataType = ''; + public $buyerSellerRole; + public $customerId; + public $name; + protected $webPropertyType = 'Google_Service_AdExchangeBuyer_WebPropertyDto'; + protected $webPropertyDataType = ''; + + + public function setBuyer(Google_Service_AdExchangeBuyer_BuyerDto $buyer) + { + $this->buyer = $buyer; + } + public function getBuyer() + { + return $this->buyer; + } + public function setBuyerSellerRole($buyerSellerRole) + { + $this->buyerSellerRole = $buyerSellerRole; + } + public function getBuyerSellerRole() + { + return $this->buyerSellerRole; + } + public function setCustomerId($customerId) + { + $this->customerId = $customerId; + } + public function getCustomerId() + { + return $this->customerId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setWebProperty(Google_Service_AdExchangeBuyer_WebPropertyDto $webProperty) + { + $this->webProperty = $webProperty; + } + public function getWebProperty() + { + return $this->webProperty; + } +} + +class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms'; + protected $guaranteedFixedPriceTermsDataType = ''; + protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms'; + protected $nonGuaranteedAuctionTermsDataType = ''; + protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms'; + protected $nonGuaranteedFixedPriceTermsDataType = ''; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms) + { + $this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms; + } + public function getGuaranteedFixedPriceTerms() + { + return $this->guaranteedFixedPriceTerms; + } + public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms) + { + $this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms; + } + public function getNonGuaranteedAuctionTerms() + { + return $this->nonGuaranteedAuctionTerms; + } + public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms) + { + $this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms; + } + public function getNonGuaranteedFixedPriceTerms() + { + return $this->nonGuaranteedFixedPriceTerms; + } +} + +class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection +{ + protected $collection_key = 'fixedPrices'; + protected $internal_gapi_mappings = array( + ); + protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; + protected $fixedPricesDataType = 'array'; + public $guaranteedImpressions; + public $guaranteedLooks; + + + public function setFixedPrices($fixedPrices) + { + $this->fixedPrices = $fixedPrices; + } + public function getFixedPrices() + { + return $this->fixedPrices; + } + public function setGuaranteedImpressions($guaranteedImpressions) + { + $this->guaranteedImpressions = $guaranteedImpressions; + } + public function getGuaranteedImpressions() + { + return $this->guaranteedImpressions; + } + public function setGuaranteedLooks($guaranteedLooks) + { + $this->guaranteedLooks = $guaranteedLooks; + } + public function getGuaranteedLooks() + { + return $this->guaranteedLooks; + } +} + +class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection +{ + protected $collection_key = 'reservePricePerBuyers'; + protected $internal_gapi_mappings = array( + ); + public $privateAuctionId; + protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; + protected $reservePricePerBuyersDataType = 'array'; + + + public function setPrivateAuctionId($privateAuctionId) + { + $this->privateAuctionId = $privateAuctionId; + } + public function getPrivateAuctionId() + { + return $this->privateAuctionId; + } + public function setReservePricePerBuyers($reservePricePerBuyers) + { + $this->reservePricePerBuyers = $reservePricePerBuyers; + } + public function getReservePricePerBuyers() + { + return $this->reservePricePerBuyers; + } +} + +class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection +{ + protected $collection_key = 'fixedPrices'; + protected $internal_gapi_mappings = array( + ); + protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; + protected $fixedPricesDataType = 'array'; + + + public function setFixedPrices($fixedPrices) + { + $this->fixedPrices = $fixedPrices; + } + public function getFixedPrices() + { + return $this->fixedPrices; + } +} + +class Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest extends Google_Collection +{ + protected $collection_key = 'dealIds'; + protected $internal_gapi_mappings = array( + ); + public $dealIds; + public $orderRevisionNumber; + public $updateAction; + + + public function setDealIds($dealIds) + { + $this->dealIds = $dealIds; + } + public function getDealIds() + { + return $this->dealIds; + } + public function setOrderRevisionNumber($orderRevisionNumber) + { + $this->orderRevisionNumber = $orderRevisionNumber; + } + public function getOrderRevisionNumber() + { + return $this->orderRevisionNumber; + } + public function setUpdateAction($updateAction) + { + $this->updateAction = $updateAction; + } + public function getUpdateAction() + { + return $this->updateAction; + } +} + +class Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse extends Google_Collection +{ + protected $collection_key = 'deals'; + protected $internal_gapi_mappings = array( + ); + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + public $orderRevisionNumber; + + + public function setDeals($deals) + { + $this->deals = $deals; + } + public function getDeals() + { + return $this->deals; + } + public function setOrderRevisionNumber($orderRevisionNumber) + { + $this->orderRevisionNumber = $orderRevisionNumber; + } + public function getOrderRevisionNumber() + { + return $this->orderRevisionNumber; + } +} + +class Google_Service_AdExchangeBuyer_DeliveryControl extends Google_Collection +{ + protected $collection_key = 'frequencyCaps'; + protected $internal_gapi_mappings = array( + ); + public $deliveryRateType; + protected $frequencyCapsType = 'Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap'; + protected $frequencyCapsDataType = 'array'; + + + public function setDeliveryRateType($deliveryRateType) + { + $this->deliveryRateType = $deliveryRateType; + } + public function getDeliveryRateType() + { + return $this->deliveryRateType; + } + public function setFrequencyCaps($frequencyCaps) + { + $this->frequencyCaps = $frequencyCaps; + } + public function getFrequencyCaps() + { + return $this->frequencyCaps; + } +} + +class Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $maxImpressions; + public $numTimeUnits; + public $timeUnitType; + + + public function setMaxImpressions($maxImpressions) + { + $this->maxImpressions = $maxImpressions; + } + public function getMaxImpressions() + { + return $this->maxImpressions; + } + public function setNumTimeUnits($numTimeUnits) + { + $this->numTimeUnits = $numTimeUnits; + } + public function getNumTimeUnits() + { + return $this->numTimeUnits; + } + public function setTimeUnitType($timeUnitType) + { + $this->timeUnitType = $timeUnitType; + } + public function getTimeUnitType() + { + return $this->timeUnitType; + } +} + +class Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest extends Google_Collection +{ + protected $collection_key = 'deals'; + protected $internal_gapi_mappings = array( + ); + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + protected $orderType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; + protected $orderDataType = ''; + public $orderRevisionNumber; + public $updateAction; + + + public function setDeals($deals) + { + $this->deals = $deals; + } + public function getDeals() + { + return $this->deals; + } + public function setOrder(Google_Service_AdExchangeBuyer_MarketplaceOrder $order) + { + $this->order = $order; + } + public function getOrder() + { + return $this->order; + } + public function setOrderRevisionNumber($orderRevisionNumber) + { + $this->orderRevisionNumber = $orderRevisionNumber; + } + public function getOrderRevisionNumber() + { + return $this->orderRevisionNumber; + } + public function setUpdateAction($updateAction) + { + $this->updateAction = $updateAction; + } + public function getUpdateAction() + { + return $this->updateAction; + } +} + +class Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse extends Google_Collection +{ + protected $collection_key = 'deals'; + protected $internal_gapi_mappings = array( + ); + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + + + public function setDeals($deals) + { + $this->deals = $deals; + } + public function getDeals() + { + return $this->deals; + } +} + +class Google_Service_AdExchangeBuyer_EditHistoryDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createdByLoginName; + public $createdTimeStamp; + public $lastUpdateTimeStamp; + public $lastUpdatedByLoginName; + + + public function setCreatedByLoginName($createdByLoginName) + { + $this->createdByLoginName = $createdByLoginName; + } + public function getCreatedByLoginName() + { + return $this->createdByLoginName; + } + public function setCreatedTimeStamp($createdTimeStamp) + { + $this->createdTimeStamp = $createdTimeStamp; + } + public function getCreatedTimeStamp() + { + return $this->createdTimeStamp; + } + public function setLastUpdateTimeStamp($lastUpdateTimeStamp) + { + $this->lastUpdateTimeStamp = $lastUpdateTimeStamp; + } + public function getLastUpdateTimeStamp() + { + return $this->lastUpdateTimeStamp; + } + public function setLastUpdatedByLoginName($lastUpdatedByLoginName) + { + $this->lastUpdatedByLoginName = $lastUpdatedByLoginName; + } + public function getLastUpdatedByLoginName() + { + return $this->lastUpdatedByLoginName; + } +} + +class Google_Service_AdExchangeBuyer_GetFinalizedNegotiationByExternalDealIdRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $includePrivateAuctions; + + + public function setIncludePrivateAuctions($includePrivateAuctions) + { + $this->includePrivateAuctions = $includePrivateAuctions; + } + public function getIncludePrivateAuctions() + { + return $this->includePrivateAuctions; + } +} + +class Google_Service_AdExchangeBuyer_GetNegotiationByIdRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $includePrivateAuctions; + + + public function setIncludePrivateAuctions($includePrivateAuctions) + { + $this->includePrivateAuctions = $includePrivateAuctions; + } + public function getIncludePrivateAuctions() + { + return $this->includePrivateAuctions; + } +} + +class Google_Service_AdExchangeBuyer_GetNegotiationsRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $finalized; + public $includePrivateAuctions; + public $sinceTimestampMillis; + + + public function setFinalized($finalized) + { + $this->finalized = $finalized; + } + public function getFinalized() + { + return $this->finalized; + } + public function setIncludePrivateAuctions($includePrivateAuctions) + { + $this->includePrivateAuctions = $includePrivateAuctions; + } + public function getIncludePrivateAuctions() + { + return $this->includePrivateAuctions; + } + public function setSinceTimestampMillis($sinceTimestampMillis) + { + $this->sinceTimestampMillis = $sinceTimestampMillis; + } + public function getSinceTimestampMillis() + { + return $this->sinceTimestampMillis; + } +} + +class Google_Service_AdExchangeBuyer_GetNegotiationsResponse extends Google_Collection +{ + protected $collection_key = 'negotiations'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $negotiationsType = 'Google_Service_AdExchangeBuyer_NegotiationDto'; + protected $negotiationsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNegotiations($negotiations) + { + $this->negotiations = $negotiations; + } + public function getNegotiations() + { + return $this->negotiations; + } +} + +class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection +{ + protected $collection_key = 'offers'; + protected $internal_gapi_mappings = array( + ); + protected $offersType = 'Google_Service_AdExchangeBuyer_MarketplaceOffer'; + protected $offersDataType = 'array'; + + + public function setOffers($offers) + { + $this->offers = $offers; + } + public function getOffers() + { + return $this->offers; + } +} + +class Google_Service_AdExchangeBuyer_GetOrderDealsResponse extends Google_Collection +{ + protected $collection_key = 'deals'; + protected $internal_gapi_mappings = array( + ); + protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; + protected $dealsDataType = 'array'; + + + public function setDeals($deals) + { + $this->deals = $deals; + } + public function getDeals() + { + return $this->deals; + } +} + +class Google_Service_AdExchangeBuyer_GetOrderNotesResponse extends Google_Collection +{ + protected $collection_key = 'notes'; + protected $internal_gapi_mappings = array( + ); + protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; + protected $notesDataType = 'array'; + + + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } +} + +class Google_Service_AdExchangeBuyer_GetOrdersResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; + protected $ordersDataType = 'array'; + + + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } +} + +class Google_Service_AdExchangeBuyer_InventorySegmentTargeting extends Google_Collection +{ + protected $collection_key = 'positiveXfpPlacements'; + protected $internal_gapi_mappings = array( + ); + protected $negativeAdSizesType = 'Google_Service_AdExchangeBuyer_AdSize'; + protected $negativeAdSizesDataType = 'array'; + public $negativeAdTypeSegments; + public $negativeAudienceSegments; + public $negativeDeviceCategories; + public $negativeIcmBrands; + public $negativeIcmInterests; + public $negativeInventorySlots; + protected $negativeKeyValuesType = 'Google_Service_AdExchangeBuyer_RuleKeyValuePair'; + protected $negativeKeyValuesDataType = 'array'; + public $negativeLocations; + public $negativeMobileApps; + public $negativeOperatingSystemVersions; + public $negativeOperatingSystems; + public $negativeSiteUrls; + public $negativeSizes; + public $negativeVideoAdPositionSegments; + public $negativeVideoDurationSegments; + public $negativeXfpAdSlots; + public $negativeXfpPlacements; + protected $positiveAdSizesType = 'Google_Service_AdExchangeBuyer_AdSize'; + protected $positiveAdSizesDataType = 'array'; + public $positiveAdTypeSegments; + public $positiveAudienceSegments; + public $positiveDeviceCategories; + public $positiveIcmBrands; + public $positiveIcmInterests; + public $positiveInventorySlots; + protected $positiveKeyValuesType = 'Google_Service_AdExchangeBuyer_RuleKeyValuePair'; + protected $positiveKeyValuesDataType = 'array'; + public $positiveLocations; + public $positiveMobileApps; + public $positiveOperatingSystemVersions; + public $positiveOperatingSystems; + public $positiveSiteUrls; + public $positiveSizes; + public $positiveVideoAdPositionSegments; + public $positiveVideoDurationSegments; + public $positiveXfpAdSlots; + public $positiveXfpPlacements; + + + public function setNegativeAdSizes($negativeAdSizes) + { + $this->negativeAdSizes = $negativeAdSizes; + } + public function getNegativeAdSizes() + { + return $this->negativeAdSizes; + } + public function setNegativeAdTypeSegments($negativeAdTypeSegments) + { + $this->negativeAdTypeSegments = $negativeAdTypeSegments; + } + public function getNegativeAdTypeSegments() + { + return $this->negativeAdTypeSegments; + } + public function setNegativeAudienceSegments($negativeAudienceSegments) + { + $this->negativeAudienceSegments = $negativeAudienceSegments; + } + public function getNegativeAudienceSegments() + { + return $this->negativeAudienceSegments; + } + public function setNegativeDeviceCategories($negativeDeviceCategories) + { + $this->negativeDeviceCategories = $negativeDeviceCategories; + } + public function getNegativeDeviceCategories() + { + return $this->negativeDeviceCategories; + } + public function setNegativeIcmBrands($negativeIcmBrands) + { + $this->negativeIcmBrands = $negativeIcmBrands; + } + public function getNegativeIcmBrands() + { + return $this->negativeIcmBrands; + } + public function setNegativeIcmInterests($negativeIcmInterests) + { + $this->negativeIcmInterests = $negativeIcmInterests; + } + public function getNegativeIcmInterests() + { + return $this->negativeIcmInterests; + } + public function setNegativeInventorySlots($negativeInventorySlots) + { + $this->negativeInventorySlots = $negativeInventorySlots; + } + public function getNegativeInventorySlots() + { + return $this->negativeInventorySlots; + } + public function setNegativeKeyValues($negativeKeyValues) + { + $this->negativeKeyValues = $negativeKeyValues; + } + public function getNegativeKeyValues() + { + return $this->negativeKeyValues; + } + public function setNegativeLocations($negativeLocations) + { + $this->negativeLocations = $negativeLocations; + } + public function getNegativeLocations() + { + return $this->negativeLocations; + } + public function setNegativeMobileApps($negativeMobileApps) + { + $this->negativeMobileApps = $negativeMobileApps; + } + public function getNegativeMobileApps() + { + return $this->negativeMobileApps; + } + public function setNegativeOperatingSystemVersions($negativeOperatingSystemVersions) + { + $this->negativeOperatingSystemVersions = $negativeOperatingSystemVersions; + } + public function getNegativeOperatingSystemVersions() + { + return $this->negativeOperatingSystemVersions; + } + public function setNegativeOperatingSystems($negativeOperatingSystems) + { + $this->negativeOperatingSystems = $negativeOperatingSystems; + } + public function getNegativeOperatingSystems() + { + return $this->negativeOperatingSystems; + } + public function setNegativeSiteUrls($negativeSiteUrls) + { + $this->negativeSiteUrls = $negativeSiteUrls; + } + public function getNegativeSiteUrls() + { + return $this->negativeSiteUrls; + } + public function setNegativeSizes($negativeSizes) + { + $this->negativeSizes = $negativeSizes; + } + public function getNegativeSizes() + { + return $this->negativeSizes; + } + public function setNegativeVideoAdPositionSegments($negativeVideoAdPositionSegments) + { + $this->negativeVideoAdPositionSegments = $negativeVideoAdPositionSegments; + } + public function getNegativeVideoAdPositionSegments() + { + return $this->negativeVideoAdPositionSegments; + } + public function setNegativeVideoDurationSegments($negativeVideoDurationSegments) + { + $this->negativeVideoDurationSegments = $negativeVideoDurationSegments; + } + public function getNegativeVideoDurationSegments() + { + return $this->negativeVideoDurationSegments; + } + public function setNegativeXfpAdSlots($negativeXfpAdSlots) + { + $this->negativeXfpAdSlots = $negativeXfpAdSlots; + } + public function getNegativeXfpAdSlots() + { + return $this->negativeXfpAdSlots; + } + public function setNegativeXfpPlacements($negativeXfpPlacements) + { + $this->negativeXfpPlacements = $negativeXfpPlacements; + } + public function getNegativeXfpPlacements() + { + return $this->negativeXfpPlacements; + } + public function setPositiveAdSizes($positiveAdSizes) + { + $this->positiveAdSizes = $positiveAdSizes; + } + public function getPositiveAdSizes() + { + return $this->positiveAdSizes; + } + public function setPositiveAdTypeSegments($positiveAdTypeSegments) + { + $this->positiveAdTypeSegments = $positiveAdTypeSegments; + } + public function getPositiveAdTypeSegments() + { + return $this->positiveAdTypeSegments; + } + public function setPositiveAudienceSegments($positiveAudienceSegments) + { + $this->positiveAudienceSegments = $positiveAudienceSegments; + } + public function getPositiveAudienceSegments() + { + return $this->positiveAudienceSegments; + } + public function setPositiveDeviceCategories($positiveDeviceCategories) + { + $this->positiveDeviceCategories = $positiveDeviceCategories; + } + public function getPositiveDeviceCategories() + { + return $this->positiveDeviceCategories; + } + public function setPositiveIcmBrands($positiveIcmBrands) + { + $this->positiveIcmBrands = $positiveIcmBrands; + } + public function getPositiveIcmBrands() + { + return $this->positiveIcmBrands; + } + public function setPositiveIcmInterests($positiveIcmInterests) + { + $this->positiveIcmInterests = $positiveIcmInterests; + } + public function getPositiveIcmInterests() + { + return $this->positiveIcmInterests; + } + public function setPositiveInventorySlots($positiveInventorySlots) + { + $this->positiveInventorySlots = $positiveInventorySlots; + } + public function getPositiveInventorySlots() + { + return $this->positiveInventorySlots; + } + public function setPositiveKeyValues($positiveKeyValues) + { + $this->positiveKeyValues = $positiveKeyValues; + } + public function getPositiveKeyValues() + { + return $this->positiveKeyValues; + } + public function setPositiveLocations($positiveLocations) + { + $this->positiveLocations = $positiveLocations; + } + public function getPositiveLocations() + { + return $this->positiveLocations; + } + public function setPositiveMobileApps($positiveMobileApps) + { + $this->positiveMobileApps = $positiveMobileApps; + } + public function getPositiveMobileApps() + { + return $this->positiveMobileApps; + } + public function setPositiveOperatingSystemVersions($positiveOperatingSystemVersions) + { + $this->positiveOperatingSystemVersions = $positiveOperatingSystemVersions; + } + public function getPositiveOperatingSystemVersions() + { + return $this->positiveOperatingSystemVersions; + } + public function setPositiveOperatingSystems($positiveOperatingSystems) + { + $this->positiveOperatingSystems = $positiveOperatingSystems; + } + public function getPositiveOperatingSystems() + { + return $this->positiveOperatingSystems; + } + public function setPositiveSiteUrls($positiveSiteUrls) + { + $this->positiveSiteUrls = $positiveSiteUrls; + } + public function getPositiveSiteUrls() + { + return $this->positiveSiteUrls; + } + public function setPositiveSizes($positiveSizes) + { + $this->positiveSizes = $positiveSizes; + } + public function getPositiveSizes() + { + return $this->positiveSizes; + } + public function setPositiveVideoAdPositionSegments($positiveVideoAdPositionSegments) + { + $this->positiveVideoAdPositionSegments = $positiveVideoAdPositionSegments; + } + public function getPositiveVideoAdPositionSegments() + { + return $this->positiveVideoAdPositionSegments; + } + public function setPositiveVideoDurationSegments($positiveVideoDurationSegments) + { + $this->positiveVideoDurationSegments = $positiveVideoDurationSegments; + } + public function getPositiveVideoDurationSegments() + { + return $this->positiveVideoDurationSegments; + } + public function setPositiveXfpAdSlots($positiveXfpAdSlots) + { + $this->positiveXfpAdSlots = $positiveXfpAdSlots; + } + public function getPositiveXfpAdSlots() + { + return $this->positiveXfpAdSlots; + } + public function setPositiveXfpPlacements($positiveXfpPlacements) + { + $this->positiveXfpPlacements = $positiveXfpPlacements; + } + public function getPositiveXfpPlacements() + { + return $this->positiveXfpPlacements; + } +} + +class Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $sponsorAccountId; + + + public function setSponsorAccountId($sponsorAccountId) + { + $this->sponsorAccountId = $sponsorAccountId; + } + public function getSponsorAccountId() + { + return $this->sponsorAccountId; + } +} + +class Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse extends Google_Collection +{ + protected $collection_key = 'clientAccessPermissions'; + protected $internal_gapi_mappings = array( + ); + protected $clientAccessPermissionsType = 'Google_Service_AdExchangeBuyer_ClientAccessCapabilities'; + protected $clientAccessPermissionsDataType = 'array'; + + + public function setClientAccessPermissions($clientAccessPermissions) + { + $this->clientAccessPermissions = $clientAccessPermissions; + } + public function getClientAccessPermissions() + { + return $this->clientAccessPermissions; + } +} + +class Google_Service_AdExchangeBuyer_ListOffersRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $sinceTimestampMillis; + + + public function setSinceTimestampMillis($sinceTimestampMillis) + { + $this->sinceTimestampMillis = $sinceTimestampMillis; + } + public function getSinceTimestampMillis() + { + return $this->sinceTimestampMillis; + } +} + +class Google_Service_AdExchangeBuyer_ListOffersResponse extends Google_Collection +{ + protected $collection_key = 'offers'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $offersType = 'Google_Service_AdExchangeBuyer_OfferDto'; + protected $offersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOffers($offers) + { + $this->offers = $offers; + } + public function getOffers() + { + return $this->offers; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection +{ + protected $collection_key = 'sharedTargetings'; + protected $internal_gapi_mappings = array( + ); + protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; + protected $buyerPrivateDataDataType = ''; + public $creationTimeMs; + public $dealId; + protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; + protected $deliveryControlDataType = ''; + public $externalDealId; + public $flightEndTimeMs; + public $flightStartTimeMs; + public $inventoryDescription; + public $kind; + public $lastUpdateTimeMs; + public $name; + public $offerId; + public $offerRevisionNumber; + public $orderId; + protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $sellerContactsDataType = 'array'; + protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; + protected $sharedTargetingsDataType = 'array'; + public $syndicationProduct; + protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; + protected $termsDataType = ''; + public $webPropertyCode; + + + public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) + { + $this->buyerPrivateData = $buyerPrivateData; + } + public function getBuyerPrivateData() + { + return $this->buyerPrivateData; + } + public function setCreationTimeMs($creationTimeMs) + { + $this->creationTimeMs = $creationTimeMs; + } + public function getCreationTimeMs() + { + return $this->creationTimeMs; + } + public function setDealId($dealId) + { + $this->dealId = $dealId; + } + public function getDealId() + { + return $this->dealId; + } + public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) + { + $this->deliveryControl = $deliveryControl; + } + public function getDeliveryControl() + { + return $this->deliveryControl; + } + public function setExternalDealId($externalDealId) + { + $this->externalDealId = $externalDealId; + } + public function getExternalDealId() + { + return $this->externalDealId; + } + public function setFlightEndTimeMs($flightEndTimeMs) + { + $this->flightEndTimeMs = $flightEndTimeMs; + } + public function getFlightEndTimeMs() + { + return $this->flightEndTimeMs; + } + public function setFlightStartTimeMs($flightStartTimeMs) + { + $this->flightStartTimeMs = $flightStartTimeMs; + } + public function getFlightStartTimeMs() + { + return $this->flightStartTimeMs; + } + public function setInventoryDescription($inventoryDescription) + { + $this->inventoryDescription = $inventoryDescription; + } + public function getInventoryDescription() + { + return $this->inventoryDescription; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastUpdateTimeMs($lastUpdateTimeMs) + { + $this->lastUpdateTimeMs = $lastUpdateTimeMs; + } + public function getLastUpdateTimeMs() + { + return $this->lastUpdateTimeMs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setOfferRevisionNumber($offerRevisionNumber) + { + $this->offerRevisionNumber = $offerRevisionNumber; + } + public function getOfferRevisionNumber() + { + return $this->offerRevisionNumber; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setSellerContacts($sellerContacts) + { + $this->sellerContacts = $sellerContacts; + } + public function getSellerContacts() + { + return $this->sellerContacts; + } + public function setSharedTargetings($sharedTargetings) + { + $this->sharedTargetings = $sharedTargetings; + } + public function getSharedTargetings() + { + return $this->sharedTargetings; + } + public function setSyndicationProduct($syndicationProduct) + { + $this->syndicationProduct = $syndicationProduct; + } + public function getSyndicationProduct() + { + return $this->syndicationProduct; + } + public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } + public function setWebPropertyCode($webPropertyCode) + { + $this->webPropertyCode = $webPropertyCode; + } + public function getWebPropertyCode() + { + return $this->webPropertyCode; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceDealParty extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $buyerDataType = ''; + protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; + protected $sellerDataType = ''; + + + public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) + { + $this->buyer = $buyer; + } + public function getBuyer() + { + return $this->buyer; + } + public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) + { + $this->seller = $seller; + } + public function getSeller() + { + return $this->seller; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceLabel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $createTimeMs; + protected $deprecatedMarketplaceDealPartyType = 'Google_Service_AdExchangeBuyer_MarketplaceDealParty'; + protected $deprecatedMarketplaceDealPartyDataType = ''; + public $label; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setCreateTimeMs($createTimeMs) + { + $this->createTimeMs = $createTimeMs; + } + public function getCreateTimeMs() + { + return $this->createTimeMs; + } + public function setDeprecatedMarketplaceDealParty(Google_Service_AdExchangeBuyer_MarketplaceDealParty $deprecatedMarketplaceDealParty) + { + $this->deprecatedMarketplaceDealParty = $deprecatedMarketplaceDealParty; + } + public function getDeprecatedMarketplaceDealParty() + { + return $this->deprecatedMarketplaceDealParty; + } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceNote extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creatorRole; + public $dealId; + public $kind; + public $note; + public $noteId; + public $orderId; + public $orderRevisionNumber; + public $timestampMs; + + + public function setCreatorRole($creatorRole) + { + $this->creatorRole = $creatorRole; + } + public function getCreatorRole() + { + return $this->creatorRole; + } + public function setDealId($dealId) + { + $this->dealId = $dealId; + } + public function getDealId() + { + return $this->dealId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNote($note) + { + $this->note = $note; + } + public function getNote() + { + return $this->note; + } + public function setNoteId($noteId) + { + $this->noteId = $noteId; + } + public function getNoteId() + { + return $this->noteId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setOrderRevisionNumber($orderRevisionNumber) + { + $this->orderRevisionNumber = $orderRevisionNumber; + } + public function getOrderRevisionNumber() + { + return $this->orderRevisionNumber; + } + public function setTimestampMs($timestampMs) + { + $this->timestampMs = $timestampMs; + } + public function getTimestampMs() + { + return $this->timestampMs; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceOffer extends Google_Collection +{ + protected $collection_key = 'sharedTargetings'; + protected $internal_gapi_mappings = array( + ); + public $creationTimeMs; + protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $creatorContactsDataType = 'array'; + public $flightEndTimeMs; + public $flightStartTimeMs; + public $hasCreatorSignedOff; + public $kind; + protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; + protected $labelsDataType = 'array'; + public $lastUpdateTimeMs; + public $name; + public $offerId; + public $revisionNumber; + protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; + protected $sellerDataType = ''; + protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; + protected $sharedTargetingsDataType = 'array'; + public $state; + public $syndicationProduct; + protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; + protected $termsDataType = ''; + public $webPropertyCode; + + + public function setCreationTimeMs($creationTimeMs) + { + $this->creationTimeMs = $creationTimeMs; + } + public function getCreationTimeMs() + { + return $this->creationTimeMs; + } + public function setCreatorContacts($creatorContacts) + { + $this->creatorContacts = $creatorContacts; + } + public function getCreatorContacts() + { + return $this->creatorContacts; + } + public function setFlightEndTimeMs($flightEndTimeMs) + { + $this->flightEndTimeMs = $flightEndTimeMs; + } + public function getFlightEndTimeMs() + { + return $this->flightEndTimeMs; + } + public function setFlightStartTimeMs($flightStartTimeMs) + { + $this->flightStartTimeMs = $flightStartTimeMs; + } + public function getFlightStartTimeMs() + { + return $this->flightStartTimeMs; + } + public function setHasCreatorSignedOff($hasCreatorSignedOff) + { + $this->hasCreatorSignedOff = $hasCreatorSignedOff; + } + public function getHasCreatorSignedOff() + { + return $this->hasCreatorSignedOff; + } + 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 setLastUpdateTimeMs($lastUpdateTimeMs) + { + $this->lastUpdateTimeMs = $lastUpdateTimeMs; + } + public function getLastUpdateTimeMs() + { + return $this->lastUpdateTimeMs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setRevisionNumber($revisionNumber) + { + $this->revisionNumber = $revisionNumber; + } + public function getRevisionNumber() + { + return $this->revisionNumber; + } + public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) + { + $this->seller = $seller; + } + public function getSeller() + { + return $this->seller; + } + public function setSharedTargetings($sharedTargetings) + { + $this->sharedTargetings = $sharedTargetings; + } + public function getSharedTargetings() + { + return $this->sharedTargetings; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setSyndicationProduct($syndicationProduct) + { + $this->syndicationProduct = $syndicationProduct; + } + public function getSyndicationProduct() + { + return $this->syndicationProduct; + } + public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } + public function setWebPropertyCode($webPropertyCode) + { + $this->webPropertyCode = $webPropertyCode; + } + public function getWebPropertyCode() + { + return $this->webPropertyCode; + } +} + +class Google_Service_AdExchangeBuyer_MarketplaceOrder extends Google_Collection +{ + protected $collection_key = 'sellerContacts'; + protected $internal_gapi_mappings = array( + ); + protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $billedBuyerDataType = ''; + protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $buyerDataType = ''; + protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $buyerContactsDataType = 'array'; + protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; + protected $buyerPrivateDataDataType = ''; + public $hasBuyerSignedOff; + public $hasSellerSignedOff; + public $isRenegotiating; + public $isSetupComplete; + public $kind; + protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; + protected $labelsDataType = 'array'; + public $lastUpdaterOrCommentorRole; + public $lastUpdaterRole; + public $name; + public $orderId; + public $orderState; + public $originatorRole; + public $revisionNumber; + public $revisionTimeMs; + protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; + protected $sellerDataType = ''; + protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $sellerContactsDataType = 'array'; + + + public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer) + { + $this->billedBuyer = $billedBuyer; + } + public function getBilledBuyer() + { + return $this->billedBuyer; + } + public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) + { + $this->buyer = $buyer; + } + public function getBuyer() + { + return $this->buyer; + } + public function setBuyerContacts($buyerContacts) + { + $this->buyerContacts = $buyerContacts; + } + public function getBuyerContacts() + { + return $this->buyerContacts; + } + public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) + { + $this->buyerPrivateData = $buyerPrivateData; + } + public function getBuyerPrivateData() + { + return $this->buyerPrivateData; + } + public function setHasBuyerSignedOff($hasBuyerSignedOff) + { + $this->hasBuyerSignedOff = $hasBuyerSignedOff; + } + public function getHasBuyerSignedOff() + { + return $this->hasBuyerSignedOff; + } + public function setHasSellerSignedOff($hasSellerSignedOff) + { + $this->hasSellerSignedOff = $hasSellerSignedOff; + } + public function getHasSellerSignedOff() + { + return $this->hasSellerSignedOff; + } + public function setIsRenegotiating($isRenegotiating) + { + $this->isRenegotiating = $isRenegotiating; + } + public function getIsRenegotiating() + { + return $this->isRenegotiating; + } + public function setIsSetupComplete($isSetupComplete) + { + $this->isSetupComplete = $isSetupComplete; + } + public function getIsSetupComplete() + { + return $this->isSetupComplete; + } + 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 setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole) + { + $this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole; + } + public function getLastUpdaterOrCommentorRole() + { + return $this->lastUpdaterOrCommentorRole; + } + public function setLastUpdaterRole($lastUpdaterRole) + { + $this->lastUpdaterRole = $lastUpdaterRole; + } + public function getLastUpdaterRole() + { + return $this->lastUpdaterRole; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setOrderState($orderState) + { + $this->orderState = $orderState; + } + public function getOrderState() + { + return $this->orderState; + } + public function setOriginatorRole($originatorRole) + { + $this->originatorRole = $originatorRole; + } + public function getOriginatorRole() + { + return $this->originatorRole; + } + public function setRevisionNumber($revisionNumber) + { + $this->revisionNumber = $revisionNumber; + } + public function getRevisionNumber() + { + return $this->revisionNumber; + } + public function setRevisionTimeMs($revisionTimeMs) + { + $this->revisionTimeMs = $revisionTimeMs; + } + public function getRevisionTimeMs() + { + return $this->revisionTimeMs; + } + public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) + { + $this->seller = $seller; + } + public function getSeller() + { + return $this->seller; + } + public function setSellerContacts($sellerContacts) + { + $this->sellerContacts = $sellerContacts; + } + public function getSellerContacts() + { + return $this->sellerContacts; + } +} + +class Google_Service_AdExchangeBuyer_MoneyDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $currencyCode; + public $micros; + + + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setMicros($micros) + { + $this->micros = $micros; + } + public function getMicros() + { + return $this->micros; + } +} + +class Google_Service_AdExchangeBuyer_NegotiationDto extends Google_Collection +{ + protected $collection_key = 'sellerEmailContacts'; + protected $internal_gapi_mappings = array( + ); + protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $billedBuyerDataType = ''; + protected $buyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $buyerDataType = ''; + public $buyerEmailContacts; + public $dealType; + public $externalDealId; + public $kind; + public $labelNames; + public $negotiationId; + protected $negotiationRoundsType = 'Google_Service_AdExchangeBuyer_NegotiationRoundDto'; + protected $negotiationRoundsDataType = 'array'; + public $negotiationState; + public $offerId; + protected $sellerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $sellerDataType = ''; + public $sellerEmailContacts; + protected $statsType = 'Google_Service_AdExchangeBuyer_StatsDto'; + protected $statsDataType = ''; + public $status; + + + public function setBilledBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $billedBuyer) + { + $this->billedBuyer = $billedBuyer; + } + public function getBilledBuyer() + { + return $this->billedBuyer; + } + public function setBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $buyer) + { + $this->buyer = $buyer; + } + public function getBuyer() + { + return $this->buyer; + } + public function setBuyerEmailContacts($buyerEmailContacts) + { + $this->buyerEmailContacts = $buyerEmailContacts; + } + public function getBuyerEmailContacts() + { + return $this->buyerEmailContacts; + } + public function setDealType($dealType) + { + $this->dealType = $dealType; + } + public function getDealType() + { + return $this->dealType; + } + public function setExternalDealId($externalDealId) + { + $this->externalDealId = $externalDealId; + } + public function getExternalDealId() + { + return $this->externalDealId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLabelNames($labelNames) + { + $this->labelNames = $labelNames; + } + public function getLabelNames() + { + return $this->labelNames; + } + public function setNegotiationId($negotiationId) + { + $this->negotiationId = $negotiationId; + } + public function getNegotiationId() + { + return $this->negotiationId; + } + public function setNegotiationRounds($negotiationRounds) + { + $this->negotiationRounds = $negotiationRounds; + } + public function getNegotiationRounds() + { + return $this->negotiationRounds; + } + public function setNegotiationState($negotiationState) + { + $this->negotiationState = $negotiationState; + } + public function getNegotiationState() + { + return $this->negotiationState; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setSeller(Google_Service_AdExchangeBuyer_DealPartyDto $seller) + { + $this->seller = $seller; + } + public function getSeller() + { + return $this->seller; + } + public function setSellerEmailContacts($sellerEmailContacts) + { + $this->sellerEmailContacts = $sellerEmailContacts; + } + public function getSellerEmailContacts() + { + return $this->sellerEmailContacts; + } + public function setStats(Google_Service_AdExchangeBuyer_StatsDto $stats) + { + $this->stats = $stats; + } + public function getStats() + { + return $this->stats; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_AdExchangeBuyer_NegotiationRoundDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $action; + public $dbmPartnerId; + protected $editHistoryType = 'Google_Service_AdExchangeBuyer_EditHistoryDto'; + protected $editHistoryDataType = ''; + public $kind; + public $negotiationId; + public $notes; + public $originatorRole; + public $roundNumber; + protected $termsType = 'Google_Service_AdExchangeBuyer_TermsDto'; + protected $termsDataType = ''; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setDbmPartnerId($dbmPartnerId) + { + $this->dbmPartnerId = $dbmPartnerId; + } + public function getDbmPartnerId() + { + return $this->dbmPartnerId; + } + public function setEditHistory(Google_Service_AdExchangeBuyer_EditHistoryDto $editHistory) + { + $this->editHistory = $editHistory; + } + public function getEditHistory() + { + return $this->editHistory; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNegotiationId($negotiationId) + { + $this->negotiationId = $negotiationId; + } + public function getNegotiationId() + { + return $this->negotiationId; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setOriginatorRole($originatorRole) + { + $this->originatorRole = $originatorRole; + } + public function getOriginatorRole() + { + return $this->originatorRole; + } + public function setRoundNumber($roundNumber) + { + $this->roundNumber = $roundNumber; + } + public function getRoundNumber() + { + return $this->roundNumber; + } + public function setTerms(Google_Service_AdExchangeBuyer_TermsDto $terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } +} + +class Google_Service_AdExchangeBuyer_OfferDto extends Google_Collection +{ + protected $collection_key = 'openToDealParties'; + protected $internal_gapi_mappings = array( + ); + public $anonymous; + protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $billedBuyerDataType = ''; + protected $closedToDealPartiesType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $closedToDealPartiesDataType = 'array'; + protected $creatorType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $creatorDataType = ''; + public $emailContacts; + public $isOpen; + public $kind; + public $labelNames; + public $offerId; + public $offerState; + protected $openToDealPartiesType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; + protected $openToDealPartiesDataType = 'array'; + public $pointOfContact; + public $status; + protected $termsType = 'Google_Service_AdExchangeBuyer_TermsDto'; + protected $termsDataType = ''; + + + public function setAnonymous($anonymous) + { + $this->anonymous = $anonymous; + } + public function getAnonymous() + { + return $this->anonymous; + } + public function setBilledBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $billedBuyer) + { + $this->billedBuyer = $billedBuyer; + } + public function getBilledBuyer() + { + return $this->billedBuyer; + } + public function setClosedToDealParties($closedToDealParties) + { + $this->closedToDealParties = $closedToDealParties; + } + public function getClosedToDealParties() + { + return $this->closedToDealParties; + } + public function setCreator(Google_Service_AdExchangeBuyer_DealPartyDto $creator) + { + $this->creator = $creator; + } + public function getCreator() + { + return $this->creator; + } + public function setEmailContacts($emailContacts) + { + $this->emailContacts = $emailContacts; + } + public function getEmailContacts() + { + return $this->emailContacts; + } + public function setIsOpen($isOpen) + { + $this->isOpen = $isOpen; + } + public function getIsOpen() + { + return $this->isOpen; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLabelNames($labelNames) + { + $this->labelNames = $labelNames; + } + public function getLabelNames() + { + return $this->labelNames; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setOfferState($offerState) + { + $this->offerState = $offerState; + } + public function getOfferState() + { + return $this->offerState; + } + public function setOpenToDealParties($openToDealParties) + { + $this->openToDealParties = $openToDealParties; + } + public function getOpenToDealParties() + { + return $this->openToDealParties; + } + public function setPointOfContact($pointOfContact) + { + $this->pointOfContact = $pointOfContact; + } + public function getPointOfContact() + { + return $this->pointOfContact; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTerms(Google_Service_AdExchangeBuyer_TermsDto $terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } +} + +class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection +{ + protected $collection_key = 'hostedMatchStatusRate'; + protected $internal_gapi_mappings = array( + ); + public $bidRate; + public $bidRequestRate; + public $calloutStatusRate; + public $cookieMatcherStatusRate; + public $creativeStatusRate; + public $filteredBidRate; + public $hostedMatchStatusRate; + public $inventoryMatchRate; + public $kind; + public $latency50thPercentile; + public $latency85thPercentile; + public $latency95thPercentile; + public $noQuotaInRegion; + public $outOfQuota; + public $pixelMatchRequests; + public $pixelMatchResponses; + public $quotaConfiguredLimit; + public $quotaThrottledLimit; + public $region; + public $successfulRequestRate; + public $timestamp; + public $unsuccessfulRequestRate; + + + public function setBidRate($bidRate) + { + $this->bidRate = $bidRate; + } + public function getBidRate() + { + return $this->bidRate; + } + public function setBidRequestRate($bidRequestRate) + { + $this->bidRequestRate = $bidRequestRate; + } + public function getBidRequestRate() + { + return $this->bidRequestRate; + } + public function setCalloutStatusRate($calloutStatusRate) + { + $this->calloutStatusRate = $calloutStatusRate; + } + public function getCalloutStatusRate() + { + return $this->calloutStatusRate; + } + public function setCookieMatcherStatusRate($cookieMatcherStatusRate) + { + $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; + } + public function getCookieMatcherStatusRate() + { + return $this->cookieMatcherStatusRate; + } + public function setCreativeStatusRate($creativeStatusRate) + { + $this->creativeStatusRate = $creativeStatusRate; + } + public function getCreativeStatusRate() + { + return $this->creativeStatusRate; + } + public function setFilteredBidRate($filteredBidRate) + { + $this->filteredBidRate = $filteredBidRate; + } + public function getFilteredBidRate() + { + return $this->filteredBidRate; + } + public function setHostedMatchStatusRate($hostedMatchStatusRate) + { + $this->hostedMatchStatusRate = $hostedMatchStatusRate; + } + public function getHostedMatchStatusRate() + { + return $this->hostedMatchStatusRate; + } + public function setInventoryMatchRate($inventoryMatchRate) + { + $this->inventoryMatchRate = $inventoryMatchRate; + } + public function getInventoryMatchRate() + { + return $this->inventoryMatchRate; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLatency50thPercentile($latency50thPercentile) + { + $this->latency50thPercentile = $latency50thPercentile; + } + public function getLatency50thPercentile() + { + return $this->latency50thPercentile; + } + public function setLatency85thPercentile($latency85thPercentile) + { + $this->latency85thPercentile = $latency85thPercentile; + } + public function getLatency85thPercentile() + { + return $this->latency85thPercentile; + } + public function setLatency95thPercentile($latency95thPercentile) + { + $this->latency95thPercentile = $latency95thPercentile; + } + public function getLatency95thPercentile() + { + return $this->latency95thPercentile; + } + public function setNoQuotaInRegion($noQuotaInRegion) + { + $this->noQuotaInRegion = $noQuotaInRegion; + } + public function getNoQuotaInRegion() + { + return $this->noQuotaInRegion; + } + public function setOutOfQuota($outOfQuota) + { + $this->outOfQuota = $outOfQuota; + } + public function getOutOfQuota() + { + return $this->outOfQuota; + } + public function setPixelMatchRequests($pixelMatchRequests) + { + $this->pixelMatchRequests = $pixelMatchRequests; + } + public function getPixelMatchRequests() + { + return $this->pixelMatchRequests; + } + public function setPixelMatchResponses($pixelMatchResponses) + { + $this->pixelMatchResponses = $pixelMatchResponses; + } + public function getPixelMatchResponses() + { + return $this->pixelMatchResponses; + } + public function setQuotaConfiguredLimit($quotaConfiguredLimit) + { + $this->quotaConfiguredLimit = $quotaConfiguredLimit; + } + public function getQuotaConfiguredLimit() + { + return $this->quotaConfiguredLimit; + } + public function setQuotaThrottledLimit($quotaThrottledLimit) + { + $this->quotaThrottledLimit = $quotaThrottledLimit; + } + public function getQuotaThrottledLimit() + { + return $this->quotaThrottledLimit; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSuccessfulRequestRate($successfulRequestRate) + { + $this->successfulRequestRate = $successfulRequestRate; + } + public function getSuccessfulRequestRate() + { + return $this->successfulRequestRate; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } + public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) + { + $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; + } + public function getUnsuccessfulRequestRate() + { + return $this->unsuccessfulRequestRate; + } +} + +class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection +{ + protected $collection_key = 'performanceReport'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; + protected $performanceReportDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPerformanceReport($performanceReport) + { + $this->performanceReport = $performanceReport; + } + public function getPerformanceReport() + { + return $this->performanceReport; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection +{ + protected $collection_key = 'verticals'; + protected $internal_gapi_mappings = array( + ); + public $billingId; + public $configId; + public $configName; + public $creativeType; + protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; + protected $dimensionsDataType = 'array'; + public $excludedContentLabels; + public $excludedGeoCriteriaIds; + protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; + protected $excludedPlacementsDataType = 'array'; + public $excludedUserLists; + public $excludedVerticals; + public $geoCriteriaIds; + public $isActive; + public $kind; + public $languages; + public $mobileCarriers; + public $mobileDevices; + public $mobileOperatingSystemVersions; + protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; + protected $placementsDataType = 'array'; + public $platforms; + public $supportedCreativeAttributes; + public $userLists; + public $vendorTypes; + public $verticals; + + + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + public function getBillingId() + { + return $this->billingId; + } + public function setConfigId($configId) + { + $this->configId = $configId; + } + public function getConfigId() + { + return $this->configId; + } + public function setConfigName($configName) + { + $this->configName = $configName; + } + public function getConfigName() + { + return $this->configName; + } + public function setCreativeType($creativeType) + { + $this->creativeType = $creativeType; + } + public function getCreativeType() + { + return $this->creativeType; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setExcludedContentLabels($excludedContentLabels) + { + $this->excludedContentLabels = $excludedContentLabels; + } + public function getExcludedContentLabels() + { + return $this->excludedContentLabels; + } + public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) + { + $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; + } + public function getExcludedGeoCriteriaIds() + { + return $this->excludedGeoCriteriaIds; + } + public function setExcludedPlacements($excludedPlacements) + { + $this->excludedPlacements = $excludedPlacements; + } + public function getExcludedPlacements() + { + return $this->excludedPlacements; + } + public function setExcludedUserLists($excludedUserLists) + { + $this->excludedUserLists = $excludedUserLists; + } + public function getExcludedUserLists() + { + return $this->excludedUserLists; + } + public function setExcludedVerticals($excludedVerticals) + { + $this->excludedVerticals = $excludedVerticals; + } + public function getExcludedVerticals() + { + return $this->excludedVerticals; + } + public function setGeoCriteriaIds($geoCriteriaIds) + { + $this->geoCriteriaIds = $geoCriteriaIds; + } + public function getGeoCriteriaIds() + { + return $this->geoCriteriaIds; + } + public function setIsActive($isActive) + { + $this->isActive = $isActive; + } + public function getIsActive() + { + return $this->isActive; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLanguages($languages) + { + $this->languages = $languages; + } + public function getLanguages() + { + return $this->languages; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } + public function setMobileDevices($mobileDevices) + { + $this->mobileDevices = $mobileDevices; + } + public function getMobileDevices() + { + return $this->mobileDevices; + } + public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) + { + $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; + } + public function getMobileOperatingSystemVersions() + { + return $this->mobileOperatingSystemVersions; + } + public function setPlacements($placements) + { + $this->placements = $placements; + } + public function getPlacements() + { + return $this->placements; + } + public function setPlatforms($platforms) + { + $this->platforms = $platforms; + } + public function getPlatforms() + { + return $this->platforms; + } + public function setSupportedCreativeAttributes($supportedCreativeAttributes) + { + $this->supportedCreativeAttributes = $supportedCreativeAttributes; + } + public function getSupportedCreativeAttributes() + { + return $this->supportedCreativeAttributes; + } + public function setUserLists($userLists) + { + $this->userLists = $userLists; + } + public function getUserLists() + { + return $this->userLists; + } + public function setVendorTypes($vendorTypes) + { + $this->vendorTypes = $vendorTypes; + } + public function getVendorTypes() + { + return $this->vendorTypes; + } + public function setVerticals($verticals) + { + $this->verticals = $verticals; + } + public function getVerticals() + { + return $this->verticals; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setWidth($width) + { + $this->width = $width; } - public function getReasons() + public function getWidth() { - return $this->reasons; + return $this->width; } } -class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model +class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model { protected $internal_gapi_mappings = array( ); - public $filteringCount; - public $filteringStatus; + public $token; + public $type; - public function setFilteringCount($filteringCount) + public function setToken($token) { - $this->filteringCount = $filteringCount; + $this->token = $token; } - public function getFilteringCount() + public function getToken() { - return $this->filteringCount; + return $this->token; } - public function setFilteringStatus($filteringStatus) + public function setType($type) { - $this->filteringStatus = $filteringStatus; + $this->type = $type; } - public function getFilteringStatus() + public function getType() { - return $this->filteringStatus; + return $this->type; } } -class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection +class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; + protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; public function setItems($items) @@ -1435,49 +5859,49 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $token; + public $type; + + + public function setToken($token) { - $this->nextPageToken = $nextPageToken; + $this->token = $token; } - public function getNextPageToken() + public function getToken() { - return $this->nextPageToken; + return $this->token; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; } } -class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model +class Google_Service_AdExchangeBuyer_Price extends Google_Model { protected $internal_gapi_mappings = array( ); - public $accountId; - public $advertiser; + public $amountMicros; public $currencyCode; - public $endTime; - public $fixedCpm; - public $id; - public $kind; - public $name; - public $privateExchangeMinCpm; - public $publisherBlocksOverriden; - public $sellerNetwork; - public $startTime; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdvertiser($advertiser) + public function setAmountMicros($amountMicros) { - $this->advertiser = $advertiser; + $this->amountMicros = $amountMicros; } - public function getAdvertiser() + public function getAmountMicros() { - return $this->advertiser; + return $this->amountMicros; } public function setCurrencyCode($currencyCode) { @@ -1487,664 +5911,736 @@ 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) +} + +class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $buyerDataType = ''; + protected $priceType = 'Google_Service_AdExchangeBuyer_Price'; + protected $priceDataType = ''; + + + public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) { - $this->kind = $kind; + $this->buyer = $buyer; } - public function getKind() + public function getBuyer() { - return $this->kind; + return $this->buyer; } - public function setName($name) + public function setPrice(Google_Service_AdExchangeBuyer_Price $price) { - $this->name = $name; + $this->price = $price; } - public function getName() + public function getPrice() { - return $this->name; + return $this->price; } - public function setPrivateExchangeMinCpm($privateExchangeMinCpm) +} + +class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $referenceId; + public $referencePayload; + + + public function setReferenceId($referenceId) { - $this->privateExchangeMinCpm = $privateExchangeMinCpm; + $this->referenceId = $referenceId; } - public function getPrivateExchangeMinCpm() + public function getReferenceId() { - return $this->privateExchangeMinCpm; + return $this->referenceId; } - public function setPublisherBlocksOverriden($publisherBlocksOverriden) + public function setReferencePayload($referencePayload) { - $this->publisherBlocksOverriden = $publisherBlocksOverriden; + $this->referencePayload = $referencePayload; } - public function getPublisherBlocksOverriden() + public function getReferencePayload() { - return $this->publisherBlocksOverriden; + return $this->referencePayload; } - public function setSellerNetwork($sellerNetwork) +} + +class Google_Service_AdExchangeBuyer_RuleKeyValuePair extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $keyName; + public $value; + + + public function setKeyName($keyName) { - $this->sellerNetwork = $sellerNetwork; + $this->keyName = $keyName; } - public function getSellerNetwork() + public function getKeyName() { - return $this->sellerNetwork; + return $this->keyName; } - public function setStartTime($startTime) + public function setValue($value) { - $this->startTime = $startTime; + $this->value = $value; } - public function getStartTime() + public function getValue() { - return $this->startTime; + return $this->value; } } -class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection +class Google_Service_AdExchangeBuyer_Seller extends Google_Model { - protected $collection_key = 'directDeals'; protected $internal_gapi_mappings = array( ); - protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal'; - protected $directDealsDataType = 'array'; - public $kind; + public $accountId; + public $subAccountId; - public function setDirectDeals($directDeals) + public function setAccountId($accountId) { - $this->directDeals = $directDeals; + $this->accountId = $accountId; } - public function getDirectDeals() + public function getAccountId() { - return $this->directDeals; + return $this->accountId; } - public function setKind($kind) + public function setSubAccountId($subAccountId) { - $this->kind = $kind; + $this->subAccountId = $subAccountId; } - public function getKind() + public function getSubAccountId() { - return $this->kind; + return $this->subAccountId; } } -class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection +class Google_Service_AdExchangeBuyer_SharedTargeting extends Google_Collection { - protected $collection_key = 'hostedMatchStatusRate'; + protected $collection_key = 'inclusions'; protected $internal_gapi_mappings = array( ); - public $bidRate; - public $bidRequestRate; - public $calloutStatusRate; - public $cookieMatcherStatusRate; - public $creativeStatusRate; - public $filteredBidRate; - public $hostedMatchStatusRate; - public $inventoryMatchRate; - public $kind; - public $latency50thPercentile; - public $latency85thPercentile; - public $latency95thPercentile; - public $noQuotaInRegion; - public $outOfQuota; - public $pixelMatchRequests; - public $pixelMatchResponses; - public $quotaConfiguredLimit; - public $quotaThrottledLimit; - public $region; - public $successfulRequestRate; - public $timestamp; - public $unsuccessfulRequestRate; + protected $exclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue'; + protected $exclusionsDataType = 'array'; + protected $inclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue'; + protected $inclusionsDataType = 'array'; + public $key; - public function setBidRate($bidRate) + public function setExclusions($exclusions) { - $this->bidRate = $bidRate; + $this->exclusions = $exclusions; } - public function getBidRate() + public function getExclusions() { - return $this->bidRate; + return $this->exclusions; } - public function setBidRequestRate($bidRequestRate) + public function setInclusions($inclusions) { - $this->bidRequestRate = $bidRequestRate; + $this->inclusions = $inclusions; } - public function getBidRequestRate() + public function getInclusions() { - return $this->bidRequestRate; + return $this->inclusions; } - public function setCalloutStatusRate($calloutStatusRate) + public function setKey($key) { - $this->calloutStatusRate = $calloutStatusRate; + $this->key = $key; } - public function getCalloutStatusRate() + public function getKey() { - return $this->calloutStatusRate; + return $this->key; } - public function setCookieMatcherStatusRate($cookieMatcherStatusRate) +} + +class Google_Service_AdExchangeBuyer_StatsDto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bids; + public $goodBids; + public $impressions; + public $requests; + protected $revenueType = 'Google_Service_AdExchangeBuyer_MoneyDto'; + protected $revenueDataType = ''; + protected $spendType = 'Google_Service_AdExchangeBuyer_MoneyDto'; + protected $spendDataType = ''; + + + public function setBids($bids) { - $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; + $this->bids = $bids; } - public function getCookieMatcherStatusRate() + public function getBids() { - return $this->cookieMatcherStatusRate; + return $this->bids; } - public function setCreativeStatusRate($creativeStatusRate) + public function setGoodBids($goodBids) { - $this->creativeStatusRate = $creativeStatusRate; + $this->goodBids = $goodBids; } - public function getCreativeStatusRate() + public function getGoodBids() { - return $this->creativeStatusRate; + return $this->goodBids; } - public function setFilteredBidRate($filteredBidRate) + public function setImpressions($impressions) { - $this->filteredBidRate = $filteredBidRate; + $this->impressions = $impressions; } - public function getFilteredBidRate() + public function getImpressions() { - return $this->filteredBidRate; + return $this->impressions; } - public function setHostedMatchStatusRate($hostedMatchStatusRate) + public function setRequests($requests) { - $this->hostedMatchStatusRate = $hostedMatchStatusRate; + $this->requests = $requests; } - public function getHostedMatchStatusRate() + public function getRequests() { - return $this->hostedMatchStatusRate; + return $this->requests; } - public function setInventoryMatchRate($inventoryMatchRate) + public function setRevenue(Google_Service_AdExchangeBuyer_MoneyDto $revenue) { - $this->inventoryMatchRate = $inventoryMatchRate; + $this->revenue = $revenue; } - public function getInventoryMatchRate() + public function getRevenue() { - return $this->inventoryMatchRate; + return $this->revenue; } - public function setKind($kind) + public function setSpend(Google_Service_AdExchangeBuyer_MoneyDto $spend) { - $this->kind = $kind; + $this->spend = $spend; } - public function getKind() + public function getSpend() { - return $this->kind; + return $this->spend; } - public function setLatency50thPercentile($latency50thPercentile) +} + +class Google_Service_AdExchangeBuyer_TargetingValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $creativeSizeValueType = 'Google_Service_AdExchangeBuyer_TargetingValueCreativeSize'; + protected $creativeSizeValueDataType = ''; + protected $dayPartTargetingValueType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting'; + protected $dayPartTargetingValueDataType = ''; + public $longValue; + public $stringValue; + + + public function setCreativeSizeValue(Google_Service_AdExchangeBuyer_TargetingValueCreativeSize $creativeSizeValue) { - $this->latency50thPercentile = $latency50thPercentile; + $this->creativeSizeValue = $creativeSizeValue; } - public function getLatency50thPercentile() + public function getCreativeSizeValue() { - return $this->latency50thPercentile; + return $this->creativeSizeValue; } - public function setLatency85thPercentile($latency85thPercentile) + public function setDayPartTargetingValue(Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting $dayPartTargetingValue) { - $this->latency85thPercentile = $latency85thPercentile; + $this->dayPartTargetingValue = $dayPartTargetingValue; } - public function getLatency85thPercentile() + public function getDayPartTargetingValue() { - return $this->latency85thPercentile; + return $this->dayPartTargetingValue; } - public function setLatency95thPercentile($latency95thPercentile) + public function setLongValue($longValue) { - $this->latency95thPercentile = $latency95thPercentile; + $this->longValue = $longValue; } - public function getLatency95thPercentile() + public function getLongValue() { - return $this->latency95thPercentile; + return $this->longValue; } - public function setNoQuotaInRegion($noQuotaInRegion) + public function setStringValue($stringValue) { - $this->noQuotaInRegion = $noQuotaInRegion; + $this->stringValue = $stringValue; } - public function getNoQuotaInRegion() + public function getStringValue() { - return $this->noQuotaInRegion; + return $this->stringValue; } - public function setOutOfQuota($outOfQuota) +} + +class Google_Service_AdExchangeBuyer_TargetingValueCreativeSize extends Google_Collection +{ + protected $collection_key = 'companionSizes'; + protected $internal_gapi_mappings = array( + ); + protected $companionSizesType = 'Google_Service_AdExchangeBuyer_TargetingValueSize'; + protected $companionSizesDataType = 'array'; + public $creativeSizeType; + protected $sizeType = 'Google_Service_AdExchangeBuyer_TargetingValueSize'; + protected $sizeDataType = ''; + + + public function setCompanionSizes($companionSizes) { - $this->outOfQuota = $outOfQuota; + $this->companionSizes = $companionSizes; } - public function getOutOfQuota() + public function getCompanionSizes() { - return $this->outOfQuota; + return $this->companionSizes; } - public function setPixelMatchRequests($pixelMatchRequests) + public function setCreativeSizeType($creativeSizeType) { - $this->pixelMatchRequests = $pixelMatchRequests; + $this->creativeSizeType = $creativeSizeType; } - public function getPixelMatchRequests() + public function getCreativeSizeType() { - return $this->pixelMatchRequests; + return $this->creativeSizeType; } - public function setPixelMatchResponses($pixelMatchResponses) + public function setSize(Google_Service_AdExchangeBuyer_TargetingValueSize $size) { - $this->pixelMatchResponses = $pixelMatchResponses; + $this->size = $size; } - public function getPixelMatchResponses() + public function getSize() { - return $this->pixelMatchResponses; + return $this->size; } - public function setQuotaConfiguredLimit($quotaConfiguredLimit) +} + +class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting extends Google_Collection +{ + protected $collection_key = 'dayParts'; + protected $internal_gapi_mappings = array( + ); + protected $dayPartsType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart'; + protected $dayPartsDataType = 'array'; + public $timeZoneType; + + + public function setDayParts($dayParts) { - $this->quotaConfiguredLimit = $quotaConfiguredLimit; + $this->dayParts = $dayParts; } - public function getQuotaConfiguredLimit() + public function getDayParts() { - return $this->quotaConfiguredLimit; + return $this->dayParts; } - public function setQuotaThrottledLimit($quotaThrottledLimit) + public function setTimeZoneType($timeZoneType) + { + $this->timeZoneType = $timeZoneType; + } + public function getTimeZoneType() + { + return $this->timeZoneType; + } +} + +class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dayOfWeek; + public $endHour; + public $endMinute; + public $startHour; + public $startMinute; + + + public function setDayOfWeek($dayOfWeek) { - $this->quotaThrottledLimit = $quotaThrottledLimit; + $this->dayOfWeek = $dayOfWeek; } - public function getQuotaThrottledLimit() + public function getDayOfWeek() { - return $this->quotaThrottledLimit; + return $this->dayOfWeek; } - public function setRegion($region) + public function setEndHour($endHour) { - $this->region = $region; + $this->endHour = $endHour; } - public function getRegion() + public function getEndHour() { - return $this->region; + return $this->endHour; } - public function setSuccessfulRequestRate($successfulRequestRate) + public function setEndMinute($endMinute) { - $this->successfulRequestRate = $successfulRequestRate; + $this->endMinute = $endMinute; } - public function getSuccessfulRequestRate() + public function getEndMinute() { - return $this->successfulRequestRate; + return $this->endMinute; } - public function setTimestamp($timestamp) + public function setStartHour($startHour) { - $this->timestamp = $timestamp; + $this->startHour = $startHour; } - public function getTimestamp() + public function getStartHour() { - return $this->timestamp; + return $this->startHour; } - public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) + public function setStartMinute($startMinute) { - $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; + $this->startMinute = $startMinute; } - public function getUnsuccessfulRequestRate() + public function getStartMinute() { - return $this->unsuccessfulRequestRate; + return $this->startMinute; } } -class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection +class Google_Service_AdExchangeBuyer_TargetingValueSize extends Google_Model { - protected $collection_key = 'performanceReport'; protected $internal_gapi_mappings = array( ); - public $kind; - protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; - protected $performanceReportDataType = 'array'; + public $height; + public $width; - public function setKind($kind) + public function setHeight($height) { - $this->kind = $kind; + $this->height = $height; } - public function getKind() + public function getHeight() { - return $this->kind; + return $this->height; } - public function setPerformanceReport($performanceReport) + public function setWidth($width) { - $this->performanceReport = $performanceReport; + $this->width = $width; } - public function getPerformanceReport() + public function getWidth() { - return $this->performanceReport; + return $this->width; } } -class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection +class Google_Service_AdExchangeBuyer_TermsDto extends Google_Collection { - protected $collection_key = 'verticals'; + protected $collection_key = 'urls'; protected $internal_gapi_mappings = array( ); - public $billingId; - public $configId; - public $configName; - public $creativeType; - protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; - protected $dimensionsDataType = 'array'; - public $excludedContentLabels; - public $excludedGeoCriteriaIds; - protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; - protected $excludedPlacementsDataType = 'array'; - public $excludedUserLists; - public $excludedVerticals; - public $geoCriteriaIds; - public $isActive; - public $kind; - public $languages; - public $mobileCarriers; - public $mobileDevices; - public $mobileOperatingSystemVersions; - protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; - protected $placementsDataType = 'array'; - public $platforms; - public $supportedCreativeAttributes; - public $userLists; - public $vendorTypes; - public $verticals; + protected $adSlotsType = 'Google_Service_AdExchangeBuyer_AdSlotDto'; + protected $adSlotsDataType = 'array'; + protected $advertisersType = 'Google_Service_AdExchangeBuyer_AdvertiserDto'; + protected $advertisersDataType = 'array'; + protected $audienceSegmentType = 'Google_Service_AdExchangeBuyer_AudienceSegment'; + protected $audienceSegmentDataType = ''; + public $audienceSegmentDescription; + public $billingTerms; + public $buyerBillingType; + protected $cpmType = 'Google_Service_AdExchangeBuyer_MoneyDto'; + protected $cpmDataType = ''; + public $creativeBlockingLevel; + public $creativeReviewPolicy; + protected $dealPremiumType = 'Google_Service_AdExchangeBuyer_MoneyDto'; + protected $dealPremiumDataType = ''; + public $description; + public $descriptiveName; + protected $endDateType = 'Google_Service_AdExchangeBuyer_DateTime'; + protected $endDateDataType = ''; + public $estimatedImpressionsPerDay; + protected $estimatedSpendType = 'Google_Service_AdExchangeBuyer_MoneyDto'; + protected $estimatedSpendDataType = ''; + public $finalizeAutomatically; + protected $inventorySegmentTargetingType = 'Google_Service_AdExchangeBuyer_InventorySegmentTargeting'; + protected $inventorySegmentTargetingDataType = ''; + public $isReservation; + public $minimumSpendMicros; + public $minimumTrueLooks; + public $monetizerType; + public $semiTransparent; + protected $startDateType = 'Google_Service_AdExchangeBuyer_DateTime'; + protected $startDateDataType = ''; + public $targetByDealId; + public $targetingAllAdSlots; + public $termsAttributes; + public $urls; - public function setBillingId($billingId) + public function setAdSlots($adSlots) { - $this->billingId = $billingId; + $this->adSlots = $adSlots; } - public function getBillingId() + public function getAdSlots() { - return $this->billingId; + return $this->adSlots; } - public function setConfigId($configId) + public function setAdvertisers($advertisers) { - $this->configId = $configId; + $this->advertisers = $advertisers; } - public function getConfigId() + public function getAdvertisers() { - return $this->configId; + return $this->advertisers; } - public function setConfigName($configName) + public function setAudienceSegment(Google_Service_AdExchangeBuyer_AudienceSegment $audienceSegment) { - $this->configName = $configName; + $this->audienceSegment = $audienceSegment; } - public function getConfigName() + public function getAudienceSegment() { - return $this->configName; + return $this->audienceSegment; } - public function setCreativeType($creativeType) + public function setAudienceSegmentDescription($audienceSegmentDescription) { - $this->creativeType = $creativeType; + $this->audienceSegmentDescription = $audienceSegmentDescription; } - public function getCreativeType() + public function getAudienceSegmentDescription() { - return $this->creativeType; + return $this->audienceSegmentDescription; } - public function setDimensions($dimensions) + public function setBillingTerms($billingTerms) { - $this->dimensions = $dimensions; + $this->billingTerms = $billingTerms; } - public function getDimensions() + public function getBillingTerms() { - return $this->dimensions; + return $this->billingTerms; } - public function setExcludedContentLabels($excludedContentLabels) + public function setBuyerBillingType($buyerBillingType) { - $this->excludedContentLabels = $excludedContentLabels; + $this->buyerBillingType = $buyerBillingType; } - public function getExcludedContentLabels() + public function getBuyerBillingType() { - return $this->excludedContentLabels; + return $this->buyerBillingType; } - public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) + public function setCpm(Google_Service_AdExchangeBuyer_MoneyDto $cpm) { - $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; + $this->cpm = $cpm; } - public function getExcludedGeoCriteriaIds() + public function getCpm() { - return $this->excludedGeoCriteriaIds; + return $this->cpm; } - public function setExcludedPlacements($excludedPlacements) + public function setCreativeBlockingLevel($creativeBlockingLevel) { - $this->excludedPlacements = $excludedPlacements; + $this->creativeBlockingLevel = $creativeBlockingLevel; } - public function getExcludedPlacements() + public function getCreativeBlockingLevel() { - return $this->excludedPlacements; + return $this->creativeBlockingLevel; } - public function setExcludedUserLists($excludedUserLists) + public function setCreativeReviewPolicy($creativeReviewPolicy) { - $this->excludedUserLists = $excludedUserLists; + $this->creativeReviewPolicy = $creativeReviewPolicy; } - public function getExcludedUserLists() + public function getCreativeReviewPolicy() { - return $this->excludedUserLists; + return $this->creativeReviewPolicy; } - public function setExcludedVerticals($excludedVerticals) + public function setDealPremium(Google_Service_AdExchangeBuyer_MoneyDto $dealPremium) { - $this->excludedVerticals = $excludedVerticals; + $this->dealPremium = $dealPremium; } - public function getExcludedVerticals() + public function getDealPremium() { - return $this->excludedVerticals; + return $this->dealPremium; } - public function setGeoCriteriaIds($geoCriteriaIds) + public function setDescription($description) { - $this->geoCriteriaIds = $geoCriteriaIds; + $this->description = $description; } - public function getGeoCriteriaIds() + public function getDescription() { - return $this->geoCriteriaIds; + return $this->description; } - public function setIsActive($isActive) + public function setDescriptiveName($descriptiveName) { - $this->isActive = $isActive; + $this->descriptiveName = $descriptiveName; } - public function getIsActive() + public function getDescriptiveName() { - return $this->isActive; + return $this->descriptiveName; } - public function setKind($kind) + public function setEndDate(Google_Service_AdExchangeBuyer_DateTime $endDate) { - $this->kind = $kind; + $this->endDate = $endDate; } - public function getKind() + public function getEndDate() { - return $this->kind; + return $this->endDate; } - public function setLanguages($languages) + public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay) { - $this->languages = $languages; + $this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay; } - public function getLanguages() + public function getEstimatedImpressionsPerDay() { - return $this->languages; + return $this->estimatedImpressionsPerDay; } - public function setMobileCarriers($mobileCarriers) + public function setEstimatedSpend(Google_Service_AdExchangeBuyer_MoneyDto $estimatedSpend) { - $this->mobileCarriers = $mobileCarriers; + $this->estimatedSpend = $estimatedSpend; } - public function getMobileCarriers() + public function getEstimatedSpend() { - return $this->mobileCarriers; + return $this->estimatedSpend; } - public function setMobileDevices($mobileDevices) + public function setFinalizeAutomatically($finalizeAutomatically) { - $this->mobileDevices = $mobileDevices; + $this->finalizeAutomatically = $finalizeAutomatically; } - public function getMobileDevices() + public function getFinalizeAutomatically() { - return $this->mobileDevices; + return $this->finalizeAutomatically; } - public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) + public function setInventorySegmentTargeting(Google_Service_AdExchangeBuyer_InventorySegmentTargeting $inventorySegmentTargeting) { - $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; + $this->inventorySegmentTargeting = $inventorySegmentTargeting; } - public function getMobileOperatingSystemVersions() + public function getInventorySegmentTargeting() { - return $this->mobileOperatingSystemVersions; + return $this->inventorySegmentTargeting; } - public function setPlacements($placements) + public function setIsReservation($isReservation) { - $this->placements = $placements; + $this->isReservation = $isReservation; } - public function getPlacements() + public function getIsReservation() { - return $this->placements; + return $this->isReservation; } - public function setPlatforms($platforms) + public function setMinimumSpendMicros($minimumSpendMicros) { - $this->platforms = $platforms; + $this->minimumSpendMicros = $minimumSpendMicros; } - public function getPlatforms() + public function getMinimumSpendMicros() { - return $this->platforms; + return $this->minimumSpendMicros; } - public function setSupportedCreativeAttributes($supportedCreativeAttributes) + public function setMinimumTrueLooks($minimumTrueLooks) { - $this->supportedCreativeAttributes = $supportedCreativeAttributes; + $this->minimumTrueLooks = $minimumTrueLooks; } - public function getSupportedCreativeAttributes() + public function getMinimumTrueLooks() { - return $this->supportedCreativeAttributes; + return $this->minimumTrueLooks; } - public function setUserLists($userLists) + public function setMonetizerType($monetizerType) { - $this->userLists = $userLists; + $this->monetizerType = $monetizerType; } - public function getUserLists() + public function getMonetizerType() { - return $this->userLists; + return $this->monetizerType; } - public function setVendorTypes($vendorTypes) + public function setSemiTransparent($semiTransparent) { - $this->vendorTypes = $vendorTypes; + $this->semiTransparent = $semiTransparent; } - public function getVendorTypes() + public function getSemiTransparent() { - return $this->vendorTypes; + return $this->semiTransparent; } - public function setVerticals($verticals) + public function setStartDate(Google_Service_AdExchangeBuyer_DateTime $startDate) { - $this->verticals = $verticals; + $this->startDate = $startDate; } - public function getVerticals() + public function getStartDate() { - return $this->verticals; + return $this->startDate; } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $width; - - - public function setHeight($height) + public function setTargetByDealId($targetByDealId) { - $this->height = $height; + $this->targetByDealId = $targetByDealId; } - public function getHeight() + public function getTargetByDealId() { - return $this->height; + return $this->targetByDealId; } - public function setWidth($width) + public function setTargetingAllAdSlots($targetingAllAdSlots) { - $this->width = $width; + $this->targetingAllAdSlots = $targetingAllAdSlots; } - public function getWidth() + public function getTargetingAllAdSlots() { - return $this->width; + return $this->targetingAllAdSlots; } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - public function setToken($token) + public function setTermsAttributes($termsAttributes) { - $this->token = $token; + $this->termsAttributes = $termsAttributes; } - public function getToken() + public function getTermsAttributes() { - return $this->token; + return $this->termsAttributes; } - public function setType($type) + public function setUrls($urls) { - $this->type = $type; + $this->urls = $urls; } - public function getType() + public function getUrls() { - return $this->type; + return $this->urls; } } -class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection +class Google_Service_AdExchangeBuyer_WebPropertyDto extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'siteUrls'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; - protected $itemsDataType = 'array'; - public $kind; + public $allowInterestTargetedAds; + public $enabledForPreferredDeals; + public $id; + public $name; + public $propertyCode; + public $siteUrls; + public $syndicationProduct; - public function setItems($items) + public function setAllowInterestTargetedAds($allowInterestTargetedAds) { - $this->items = $items; + $this->allowInterestTargetedAds = $allowInterestTargetedAds; } - public function getItems() + public function getAllowInterestTargetedAds() { - return $this->items; + return $this->allowInterestTargetedAds; } - public function setKind($kind) + public function setEnabledForPreferredDeals($enabledForPreferredDeals) { - $this->kind = $kind; + $this->enabledForPreferredDeals = $enabledForPreferredDeals; } - public function getKind() + public function getEnabledForPreferredDeals() { - return $this->kind; + return $this->enabledForPreferredDeals; } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - public function setToken($token) + public function setId($id) { - $this->token = $token; + $this->id = $id; } - public function getToken() + public function getId() { - return $this->token; + return $this->id; } - public function setType($type) + public function setName($name) { - $this->type = $type; + $this->name = $name; } - public function getType() + public function getName() { - return $this->type; + return $this->name; + } + public function setPropertyCode($propertyCode) + { + $this->propertyCode = $propertyCode; + } + public function getPropertyCode() + { + return $this->propertyCode; + } + public function setSiteUrls($siteUrls) + { + $this->siteUrls = $siteUrls; + } + public function getSiteUrls() + { + return $this->siteUrls; + } + public function setSyndicationProduct($syndicationProduct) + { + $this->syndicationProduct = $syndicationProduct; + } + public function getSyndicationProduct() + { + return $this->syndicationProduct; } } diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index 8e36a132f..3979ff3c6 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -2119,7 +2119,9 @@ class Google_Service_AdSense_Account extends Google_Collection { protected $collection_key = 'subAccounts'; protected $internal_gapi_mappings = array( + "creationTime" => "creation_time", ); + public $creationTime; public $id; public $kind; public $name; @@ -2129,6 +2131,14 @@ class Google_Service_AdSense_Account extends Google_Collection public $timezone; + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } public function setId($id) { $this->id = $id; diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php index 541b765de..849961970 100644 --- a/src/Google/Service/AndroidEnterprise.php +++ b/src/Google/Service/AndroidEnterprise.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -397,6 +397,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'sendTestPushNotification' => array( + 'path' => 'enterprises/{enterpriseId}/sendTestPushNotification', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setAccount' => array( 'path' => 'enterprises/{enterpriseId}/account', 'httpMethod' => 'PUT', @@ -896,6 +906,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getAvailableProductSet' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'enterprises/{enterpriseId}/users', 'httpMethod' => 'GET', @@ -926,6 +951,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setAvailableProductSet' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -1315,6 +1355,22 @@ public function listEnterprises($domain, $optParams = array()) return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse"); } + /** + * Sends a test push notification to validate the MDM integration with the + * Google Cloud Pub/Sub service for this enterprise. + * (enterprises.sendTestPushNotification) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse + */ + public function sendTestPushNotification($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('sendTestPushNotification', array($params), "Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse"); + } + /** * Set the account that will be used to authenticate to the API as the * enterprise. (enterprises.setAccount) @@ -1693,17 +1749,22 @@ public function approve($enterpriseId, $productId, Google_Service_AndroidEnterpr } /** - * Generates a URL that can be used to display an iframe to view the product's - * permissions (if any) and approve the product. This URL can be used to approve - * the product for a limited time (currently 1 hour) using the Products.approve - * call. (products.generateApprovalUrl) + * Generates a URL that can be rendered in an iframe to display the permissions + * (if any) of a product. An enterprise admin must view these permissions and + * accept them on behalf of their organization in order to approve that product. + * + * Admins should accept the displayed permissions by interacting with a separate + * UI element in the EMM console, which in turn should trigger the use of this + * URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to + * approve the product. This URL can only be used to display permissions for up + * to 1 day. (products.generateApprovalUrl) * * @param string $enterpriseId The ID of the enterprise. * @param string $productId The ID of the product. * @param array $optParams Optional parameters. * - * @opt_param string languageCode The language code that will be used for - * permission names and descriptions in the returned iframe. + * @opt_param string languageCode The BCP 47 language code used for permission + * names and descriptions in the returned iframe, for instance "en-US". * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse */ public function generateApprovalUrl($enterpriseId, $productId, $optParams = array()) @@ -1830,6 +1891,22 @@ public function get($enterpriseId, $userId, $optParams = array()) return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); } + /** + * Retrieves the set of products a user is entitled to access. + * (users.getAvailableProductSet) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductSet + */ + public function getAvailableProductSet($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('getAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet"); + } + /** * Looks up a user by email address. (users.listUsers) * @@ -1859,6 +1936,23 @@ public function revokeToken($enterpriseId, $userId, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('revokeToken', array($params)); } + + /** + * Modifies the set of products a user is entitled to access. + * (users.setAvailableProductSet) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param Google_ProductSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductSet + */ + public function setAvailableProductSet($enterpriseId, $userId, Google_Service_AndroidEnterprise_ProductSet $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet"); + } } @@ -1869,10 +1963,19 @@ class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Coll protected $collection_key = 'restrictions'; protected $internal_gapi_mappings = array( ); + public $kind; protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction'; protected $restrictionsDataType = 'array'; + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } public function setRestrictions($restrictions) { $this->restrictions = $restrictions; @@ -2359,6 +2462,32 @@ public function getKind() } } +class Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $messageId; + public $topicName; + + + public function setMessageId($messageId) + { + $this->messageId = $messageId; + } + public function getMessageId() + { + return $this->messageId; + } + public function setTopicName($topicName) + { + $this->topicName = $topicName; + } + public function getTopicName() + { + return $this->topicName; + } +} + class Google_Service_AndroidEnterprise_Entitlement extends Google_Model { protected $internal_gapi_mappings = array( @@ -2819,6 +2948,33 @@ public function getProductId() } } +class Google_Service_AndroidEnterprise_ProductSet extends Google_Collection +{ + protected $collection_key = 'productId'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $productId; + + + 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; + } +} + class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Appengine.php b/src/Google/Service/Appengine.php new file mode 100644 index 000000000..e990eb4d5 --- /dev/null +++ b/src/Google/Service/Appengine.php @@ -0,0 +1,2032 @@ + + * The Google App Engine Admin API enables developers to provision and manage + * their App Engine applications.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Appengine extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $apps; + public $apps_modules; + public $apps_modules_versions; + public $apps_operations; + + + /** + * Constructs the internal representation of the Appengine service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://appengine.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1beta4'; + $this->serviceName = 'appengine'; + + $this->apps = new Google_Service_Appengine_Apps_Resource( + $this, + $this->serviceName, + 'apps', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta4/apps/{appsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ensureResourcesExist' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->apps_modules = new Google_Service_Appengine_AppsModules_Resource( + $this, + $this->serviceName, + 'modules', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta4/apps/{appsId}/modules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'migrateTraffic' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'mask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->apps_modules_versions = new Google_Service_Appengine_AppsModulesVersions_Resource( + $this, + $this->serviceName, + 'versions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'versionsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'versionsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modulesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->apps_operations = new Google_Service_Appengine_AppsOperations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta4/apps/{appsId}/operations/{operationsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operationsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta4/apps/{appsId}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "apps" collection of methods. + * Typical usage is: + * + * $appengineService = new Google_Service_Appengine(...); + * $apps = $appengineService->apps; + * + */ +class Google_Service_Appengine_Apps_Resource extends Google_Service_Resource +{ + + /** + * Gets information about an application. (apps.get) + * + * @param string $appsId Part of `name`. Name of the application to get. For + * example: "apps/myapp". + * @param array $optParams Optional parameters. + * + * @opt_param bool ensureResourcesExist Certain resources associated with an + * application are created on-demand. Controls whether these resources should be + * created when performing the `GET` operation. If specified and any resources + * cloud not be created, the request will fail with an error code. + * @return Google_Service_Appengine_Application + */ + public function get($appsId, $optParams = array()) + { + $params = array('appsId' => $appsId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Appengine_Application"); + } +} + +/** + * The "modules" collection of methods. + * Typical usage is: + * + * $appengineService = new Google_Service_Appengine(...); + * $modules = $appengineService->modules; + * + */ +class Google_Service_Appengine_AppsModules_Resource extends Google_Service_Resource +{ + + /** + * Deletes a module and all enclosed versions. (modules.delete) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp/modules/default". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Operation + */ + public function delete($appsId, $modulesId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); + } + + /** + * Gets the current configuration of the module. (modules.get) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp/modules/default". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Module + */ + public function get($appsId, $modulesId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Appengine_Module"); + } + + /** + * Lists all the modules in the application. (modules.listAppsModules) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp". + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Maximum results to return per page. + * @opt_param string pageToken Continuation token for fetching the next page of + * results. + * @return Google_Service_Appengine_ListModulesResponse + */ + public function listAppsModules($appsId, $optParams = array()) + { + $params = array('appsId' => $appsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appengine_ListModulesResponse"); + } + + /** + * Updates the configuration of the specified module. (modules.patch) + * + * @param string $appsId Part of `name`. Name of the resource to update. For + * example: "apps/myapp/modules/default". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param Google_Module $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool migrateTraffic Whether to use Traffic Migration to shift + * traffic gradually. Traffic can only be migrated from a single version to + * another single version. + * @opt_param string mask Standard field mask for the set of fields to be + * updated. + * @return Google_Service_Appengine_Operation + */ + public function patch($appsId, $modulesId, Google_Service_Appengine_Module $postBody, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Appengine_Operation"); + } +} + +/** + * The "versions" collection of methods. + * Typical usage is: + * + * $appengineService = new Google_Service_Appengine(...); + * $versions = $appengineService->versions; + * + */ +class Google_Service_Appengine_AppsModulesVersions_Resource extends Google_Service_Resource +{ + + /** + * Deploys new code and resource files to a version. (versions.create) + * + * @param string $appsId Part of `name`. Name of the resource to update. For + * example: "apps/myapp/modules/default". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param Google_Version $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Operation + */ + public function create($appsId, $modulesId, Google_Service_Appengine_Version $postBody, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Appengine_Operation"); + } + + /** + * Deletes an existing version. (versions.delete) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp/modules/default/versions/v1". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param string $versionsId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Operation + */ + public function delete($appsId, $modulesId, $versionsId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'versionsId' => $versionsId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); + } + + /** + * Gets application deployment information. (versions.get) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp/modules/default/versions/v1". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param string $versionsId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * + * @opt_param string view Controls the set of fields returned in the `Get` + * response. + * @return Google_Service_Appengine_Version + */ + public function get($appsId, $modulesId, $versionsId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'versionsId' => $versionsId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Appengine_Version"); + } + + /** + * Lists the versions of a module. (versions.listAppsModulesVersions) + * + * @param string $appsId Part of `name`. Name of the resource requested. For + * example: "apps/myapp/modules/default". + * @param string $modulesId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Continuation token for fetching the next page of + * results. + * @opt_param int pageSize Maximum results to return per page. + * @opt_param string view Controls the set of fields returned in the `List` + * response. + * @return Google_Service_Appengine_ListVersionsResponse + */ + public function listAppsModulesVersions($appsId, $modulesId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appengine_ListVersionsResponse"); + } +} +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $appengineService = new Google_Service_Appengine(...); + * $operations = $appengineService->operations; + * + */ +class Google_Service_Appengine_AppsOperations_Resource extends Google_Service_Resource +{ + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $appsId Part of `name`. The name of the operation resource. + * @param string $operationsId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Operation + */ + public function get($appsId, $operationsId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'operationsId' => $operationsId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Appengine_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the + * `name` binding below allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. + * (operations.listAppsOperations) + * + * @param string $appsId Part of `name`. The name of the operation collection. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_Appengine_ListOperationsResponse + */ + public function listAppsOperations($appsId, $optParams = array()) + { + $params = array('appsId' => $appsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse"); + } +} + + + + +class Google_Service_Appengine_ApiConfigHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $authFailAction; + public $login; + public $script; + public $securityLevel; + public $url; + + + public function setAuthFailAction($authFailAction) + { + $this->authFailAction = $authFailAction; + } + public function getAuthFailAction() + { + return $this->authFailAction; + } + public function setLogin($login) + { + $this->login = $login; + } + public function getLogin() + { + return $this->login; + } + public function setScript($script) + { + $this->script = $script; + } + public function getScript() + { + return $this->script; + } + public function setSecurityLevel($securityLevel) + { + $this->securityLevel = $securityLevel; + } + public function getSecurityLevel() + { + return $this->securityLevel; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Appengine_ApiEndpointHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $scriptPath; + + + public function setScriptPath($scriptPath) + { + $this->scriptPath = $scriptPath; + } + public function getScriptPath() + { + return $this->scriptPath; + } +} + +class Google_Service_Appengine_Application extends Google_Collection +{ + protected $collection_key = 'dispatchRules'; + protected $internal_gapi_mappings = array( + ); + public $codeBucket; + protected $dispatchRulesType = 'Google_Service_Appengine_UrlDispatchRule'; + protected $dispatchRulesDataType = 'array'; + public $id; + public $location; + public $name; + + + public function setCodeBucket($codeBucket) + { + $this->codeBucket = $codeBucket; + } + public function getCodeBucket() + { + return $this->codeBucket; + } + public function setDispatchRules($dispatchRules) + { + $this->dispatchRules = $dispatchRules; + } + public function getDispatchRules() + { + return $this->dispatchRules; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Appengine_AutomaticScaling extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $coolDownPeriod; + protected $cpuUtilizationType = 'Google_Service_Appengine_CpuUtilization'; + protected $cpuUtilizationDataType = ''; + public $maxConcurrentRequests; + public $maxIdleInstances; + public $maxPendingLatency; + public $maxTotalInstances; + public $minIdleInstances; + public $minPendingLatency; + public $minTotalInstances; + + + public function setCoolDownPeriod($coolDownPeriod) + { + $this->coolDownPeriod = $coolDownPeriod; + } + public function getCoolDownPeriod() + { + return $this->coolDownPeriod; + } + public function setCpuUtilization(Google_Service_Appengine_CpuUtilization $cpuUtilization) + { + $this->cpuUtilization = $cpuUtilization; + } + public function getCpuUtilization() + { + return $this->cpuUtilization; + } + public function setMaxConcurrentRequests($maxConcurrentRequests) + { + $this->maxConcurrentRequests = $maxConcurrentRequests; + } + public function getMaxConcurrentRequests() + { + return $this->maxConcurrentRequests; + } + public function setMaxIdleInstances($maxIdleInstances) + { + $this->maxIdleInstances = $maxIdleInstances; + } + public function getMaxIdleInstances() + { + return $this->maxIdleInstances; + } + public function setMaxPendingLatency($maxPendingLatency) + { + $this->maxPendingLatency = $maxPendingLatency; + } + public function getMaxPendingLatency() + { + return $this->maxPendingLatency; + } + public function setMaxTotalInstances($maxTotalInstances) + { + $this->maxTotalInstances = $maxTotalInstances; + } + public function getMaxTotalInstances() + { + return $this->maxTotalInstances; + } + public function setMinIdleInstances($minIdleInstances) + { + $this->minIdleInstances = $minIdleInstances; + } + public function getMinIdleInstances() + { + return $this->minIdleInstances; + } + public function setMinPendingLatency($minPendingLatency) + { + $this->minPendingLatency = $minPendingLatency; + } + public function getMinPendingLatency() + { + return $this->minPendingLatency; + } + public function setMinTotalInstances($minTotalInstances) + { + $this->minTotalInstances = $minTotalInstances; + } + public function getMinTotalInstances() + { + return $this->minTotalInstances; + } +} + +class Google_Service_Appengine_BasicScaling extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $idleTimeout; + public $maxInstances; + + + public function setIdleTimeout($idleTimeout) + { + $this->idleTimeout = $idleTimeout; + } + public function getIdleTimeout() + { + return $this->idleTimeout; + } + public function setMaxInstances($maxInstances) + { + $this->maxInstances = $maxInstances; + } + public function getMaxInstances() + { + return $this->maxInstances; + } +} + +class Google_Service_Appengine_ContainerInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $image; + + + public function setImage($image) + { + $this->image = $image; + } + public function getImage() + { + return $this->image; + } +} + +class Google_Service_Appengine_CpuUtilization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aggregationWindowLength; + public $targetUtilization; + + + public function setAggregationWindowLength($aggregationWindowLength) + { + $this->aggregationWindowLength = $aggregationWindowLength; + } + public function getAggregationWindowLength() + { + return $this->aggregationWindowLength; + } + public function setTargetUtilization($targetUtilization) + { + $this->targetUtilization = $targetUtilization; + } + public function getTargetUtilization() + { + return $this->targetUtilization; + } +} + +class Google_Service_Appengine_Deployment extends Google_Collection +{ + protected $collection_key = 'sourceReferences'; + protected $internal_gapi_mappings = array( + ); + protected $containerType = 'Google_Service_Appengine_ContainerInfo'; + protected $containerDataType = ''; + protected $filesType = 'Google_Service_Appengine_FileInfo'; + protected $filesDataType = 'map'; + protected $sourceReferencesType = 'Google_Service_Appengine_SourceReference'; + protected $sourceReferencesDataType = 'array'; + + + public function setContainer(Google_Service_Appengine_ContainerInfo $container) + { + $this->container = $container; + } + public function getContainer() + { + return $this->container; + } + public function setFiles($files) + { + $this->files = $files; + } + public function getFiles() + { + return $this->files; + } + public function setSourceReferences($sourceReferences) + { + $this->sourceReferences = $sourceReferences; + } + public function getSourceReferences() + { + return $this->sourceReferences; + } +} + +class Google_Service_Appengine_DeploymentFiles extends Google_Model +{ +} + +class Google_Service_Appengine_ErrorHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $errorCode; + public $mimeType; + public $staticFile; + + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + public function getErrorCode() + { + return $this->errorCode; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setStaticFile($staticFile) + { + $this->staticFile = $staticFile; + } + public function getStaticFile() + { + return $this->staticFile; + } +} + +class Google_Service_Appengine_FileInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $mimeType; + public $sha1Sum; + public $sourceUrl; + + + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setSha1Sum($sha1Sum) + { + $this->sha1Sum = $sha1Sum; + } + public function getSha1Sum() + { + return $this->sha1Sum; + } + public function setSourceUrl($sourceUrl) + { + $this->sourceUrl = $sourceUrl; + } + public function getSourceUrl() + { + return $this->sourceUrl; + } +} + +class Google_Service_Appengine_HealthCheck extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $checkInterval; + public $disableHealthCheck; + public $healthyThreshold; + public $host; + public $restartThreshold; + public $timeout; + public $unhealthyThreshold; + + + public function setCheckInterval($checkInterval) + { + $this->checkInterval = $checkInterval; + } + public function getCheckInterval() + { + return $this->checkInterval; + } + public function setDisableHealthCheck($disableHealthCheck) + { + $this->disableHealthCheck = $disableHealthCheck; + } + public function getDisableHealthCheck() + { + return $this->disableHealthCheck; + } + public function setHealthyThreshold($healthyThreshold) + { + $this->healthyThreshold = $healthyThreshold; + } + public function getHealthyThreshold() + { + return $this->healthyThreshold; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setRestartThreshold($restartThreshold) + { + $this->restartThreshold = $restartThreshold; + } + public function getRestartThreshold() + { + return $this->restartThreshold; + } + public function setTimeout($timeout) + { + $this->timeout = $timeout; + } + public function getTimeout() + { + return $this->timeout; + } + public function setUnhealthyThreshold($unhealthyThreshold) + { + $this->unhealthyThreshold = $unhealthyThreshold; + } + public function getUnhealthyThreshold() + { + return $this->unhealthyThreshold; + } +} + +class Google_Service_Appengine_Library extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $version; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + +class Google_Service_Appengine_ListModulesResponse extends Google_Collection +{ + protected $collection_key = 'modules'; + protected $internal_gapi_mappings = array( + ); + protected $modulesType = 'Google_Service_Appengine_Module'; + protected $modulesDataType = 'array'; + public $nextPageToken; + + + public function setModules($modules) + { + $this->modules = $modules; + } + public function getModules() + { + return $this->modules; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Appengine_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Appengine_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Appengine_ListVersionsResponse extends Google_Collection +{ + protected $collection_key = 'versions'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $versionsType = 'Google_Service_Appengine_Version'; + protected $versionsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setVersions($versions) + { + $this->versions = $versions; + } + public function getVersions() + { + return $this->versions; + } +} + +class Google_Service_Appengine_ManualScaling extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) + { + $this->instances = $instances; + } + public function getInstances() + { + return $this->instances; + } +} + +class Google_Service_Appengine_Module extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + protected $splitType = 'Google_Service_Appengine_TrafficSplit'; + protected $splitDataType = ''; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSplit(Google_Service_Appengine_TrafficSplit $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Appengine_Network extends Google_Collection +{ + protected $collection_key = 'forwardedPorts'; + protected $internal_gapi_mappings = array( + ); + public $forwardedPorts; + public $instanceTag; + public $name; + + + public function setForwardedPorts($forwardedPorts) + { + $this->forwardedPorts = $forwardedPorts; + } + public function getForwardedPorts() + { + return $this->forwardedPorts; + } + public function setInstanceTag($instanceTag) + { + $this->instanceTag = $instanceTag; + } + public function getInstanceTag() + { + return $this->instanceTag; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Appengine_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Appengine_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Appengine_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Appengine_OperationMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endTime; + public $insertTime; + public $method; + public $operationType; + public $target; + public $user; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_Appengine_OperationResponse extends Google_Model +{ +} + +class Google_Service_Appengine_Resources extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cpu; + public $diskGb; + public $memoryGb; + + + public function setCpu($cpu) + { + $this->cpu = $cpu; + } + public function getCpu() + { + return $this->cpu; + } + public function setDiskGb($diskGb) + { + $this->diskGb = $diskGb; + } + public function getDiskGb() + { + return $this->diskGb; + } + public function setMemoryGb($memoryGb) + { + $this->memoryGb = $memoryGb; + } + public function getMemoryGb() + { + return $this->memoryGb; + } +} + +class Google_Service_Appengine_ScriptHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $scriptPath; + + + public function setScriptPath($scriptPath) + { + $this->scriptPath = $scriptPath; + } + public function getScriptPath() + { + return $this->scriptPath; + } +} + +class Google_Service_Appengine_SourceReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $repository; + public $revisionId; + + + public function setRepository($repository) + { + $this->repository = $repository; + } + public function getRepository() + { + return $this->repository; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } +} + +class Google_Service_Appengine_StaticDirectoryHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $applicationReadable; + public $directory; + public $expiration; + public $httpHeaders; + public $mimeType; + public $requireMatchingFile; + + + public function setApplicationReadable($applicationReadable) + { + $this->applicationReadable = $applicationReadable; + } + public function getApplicationReadable() + { + return $this->applicationReadable; + } + public function setDirectory($directory) + { + $this->directory = $directory; + } + public function getDirectory() + { + return $this->directory; + } + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setHttpHeaders($httpHeaders) + { + $this->httpHeaders = $httpHeaders; + } + public function getHttpHeaders() + { + return $this->httpHeaders; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setRequireMatchingFile($requireMatchingFile) + { + $this->requireMatchingFile = $requireMatchingFile; + } + public function getRequireMatchingFile() + { + return $this->requireMatchingFile; + } +} + +class Google_Service_Appengine_StaticDirectoryHandlerHttpHeaders extends Google_Model +{ +} + +class Google_Service_Appengine_StaticFilesHandler extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $applicationReadable; + public $expiration; + public $httpHeaders; + public $mimeType; + public $path; + public $requireMatchingFile; + public $uploadPathRegex; + + + public function setApplicationReadable($applicationReadable) + { + $this->applicationReadable = $applicationReadable; + } + public function getApplicationReadable() + { + return $this->applicationReadable; + } + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setHttpHeaders($httpHeaders) + { + $this->httpHeaders = $httpHeaders; + } + public function getHttpHeaders() + { + return $this->httpHeaders; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setRequireMatchingFile($requireMatchingFile) + { + $this->requireMatchingFile = $requireMatchingFile; + } + public function getRequireMatchingFile() + { + return $this->requireMatchingFile; + } + public function setUploadPathRegex($uploadPathRegex) + { + $this->uploadPathRegex = $uploadPathRegex; + } + public function getUploadPathRegex() + { + return $this->uploadPathRegex; + } +} + +class Google_Service_Appengine_StaticFilesHandlerHttpHeaders extends Google_Model +{ +} + +class Google_Service_Appengine_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Appengine_StatusDetails extends Google_Model +{ +} + +class Google_Service_Appengine_TrafficSplit extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allocations; + public $shardBy; + + + public function setAllocations($allocations) + { + $this->allocations = $allocations; + } + public function getAllocations() + { + return $this->allocations; + } + public function setShardBy($shardBy) + { + $this->shardBy = $shardBy; + } + public function getShardBy() + { + return $this->shardBy; + } +} + +class Google_Service_Appengine_TrafficSplitAllocations extends Google_Model +{ +} + +class Google_Service_Appengine_UrlDispatchRule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $domain; + public $module; + public $path; + + + public function setDomain($domain) + { + $this->domain = $domain; + } + public function getDomain() + { + return $this->domain; + } + public function setModule($module) + { + $this->module = $module; + } + public function getModule() + { + return $this->module; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} + +class Google_Service_Appengine_UrlMap extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $apiEndpointType = 'Google_Service_Appengine_ApiEndpointHandler'; + protected $apiEndpointDataType = ''; + public $authFailAction; + public $login; + public $redirectHttpResponseCode; + protected $scriptType = 'Google_Service_Appengine_ScriptHandler'; + protected $scriptDataType = ''; + public $securityLevel; + protected $staticDirectoryType = 'Google_Service_Appengine_StaticDirectoryHandler'; + protected $staticDirectoryDataType = ''; + protected $staticFilesType = 'Google_Service_Appengine_StaticFilesHandler'; + protected $staticFilesDataType = ''; + public $urlRegex; + + + public function setApiEndpoint(Google_Service_Appengine_ApiEndpointHandler $apiEndpoint) + { + $this->apiEndpoint = $apiEndpoint; + } + public function getApiEndpoint() + { + return $this->apiEndpoint; + } + public function setAuthFailAction($authFailAction) + { + $this->authFailAction = $authFailAction; + } + public function getAuthFailAction() + { + return $this->authFailAction; + } + public function setLogin($login) + { + $this->login = $login; + } + public function getLogin() + { + return $this->login; + } + public function setRedirectHttpResponseCode($redirectHttpResponseCode) + { + $this->redirectHttpResponseCode = $redirectHttpResponseCode; + } + public function getRedirectHttpResponseCode() + { + return $this->redirectHttpResponseCode; + } + public function setScript(Google_Service_Appengine_ScriptHandler $script) + { + $this->script = $script; + } + public function getScript() + { + return $this->script; + } + public function setSecurityLevel($securityLevel) + { + $this->securityLevel = $securityLevel; + } + public function getSecurityLevel() + { + return $this->securityLevel; + } + public function setStaticDirectory(Google_Service_Appengine_StaticDirectoryHandler $staticDirectory) + { + $this->staticDirectory = $staticDirectory; + } + public function getStaticDirectory() + { + return $this->staticDirectory; + } + public function setStaticFiles(Google_Service_Appengine_StaticFilesHandler $staticFiles) + { + $this->staticFiles = $staticFiles; + } + public function getStaticFiles() + { + return $this->staticFiles; + } + public function setUrlRegex($urlRegex) + { + $this->urlRegex = $urlRegex; + } + public function getUrlRegex() + { + return $this->urlRegex; + } +} + +class Google_Service_Appengine_Version extends Google_Collection +{ + protected $collection_key = 'libraries'; + protected $internal_gapi_mappings = array( + ); + protected $apiConfigType = 'Google_Service_Appengine_ApiConfigHandler'; + protected $apiConfigDataType = ''; + protected $automaticScalingType = 'Google_Service_Appengine_AutomaticScaling'; + protected $automaticScalingDataType = ''; + protected $basicScalingType = 'Google_Service_Appengine_BasicScaling'; + protected $basicScalingDataType = ''; + public $betaSettings; + public $creationTime; + public $defaultExpiration; + public $deployer; + protected $deploymentType = 'Google_Service_Appengine_Deployment'; + protected $deploymentDataType = ''; + public $env; + public $envVariables; + protected $errorHandlersType = 'Google_Service_Appengine_ErrorHandler'; + protected $errorHandlersDataType = 'array'; + protected $handlersType = 'Google_Service_Appengine_UrlMap'; + protected $handlersDataType = 'array'; + protected $healthCheckType = 'Google_Service_Appengine_HealthCheck'; + protected $healthCheckDataType = ''; + public $id; + public $inboundServices; + public $instanceClass; + protected $librariesType = 'Google_Service_Appengine_Library'; + protected $librariesDataType = 'array'; + protected $manualScalingType = 'Google_Service_Appengine_ManualScaling'; + protected $manualScalingDataType = ''; + public $name; + protected $networkType = 'Google_Service_Appengine_Network'; + protected $networkDataType = ''; + public $nobuildFilesRegex; + protected $resourcesType = 'Google_Service_Appengine_Resources'; + protected $resourcesDataType = ''; + public $runtime; + public $servingStatus; + public $threadsafe; + public $vm; + + + public function setApiConfig(Google_Service_Appengine_ApiConfigHandler $apiConfig) + { + $this->apiConfig = $apiConfig; + } + public function getApiConfig() + { + return $this->apiConfig; + } + public function setAutomaticScaling(Google_Service_Appengine_AutomaticScaling $automaticScaling) + { + $this->automaticScaling = $automaticScaling; + } + public function getAutomaticScaling() + { + return $this->automaticScaling; + } + public function setBasicScaling(Google_Service_Appengine_BasicScaling $basicScaling) + { + $this->basicScaling = $basicScaling; + } + public function getBasicScaling() + { + return $this->basicScaling; + } + public function setBetaSettings($betaSettings) + { + $this->betaSettings = $betaSettings; + } + public function getBetaSettings() + { + return $this->betaSettings; + } + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDefaultExpiration($defaultExpiration) + { + $this->defaultExpiration = $defaultExpiration; + } + public function getDefaultExpiration() + { + return $this->defaultExpiration; + } + public function setDeployer($deployer) + { + $this->deployer = $deployer; + } + public function getDeployer() + { + return $this->deployer; + } + public function setDeployment(Google_Service_Appengine_Deployment $deployment) + { + $this->deployment = $deployment; + } + public function getDeployment() + { + return $this->deployment; + } + public function setEnv($env) + { + $this->env = $env; + } + public function getEnv() + { + return $this->env; + } + public function setEnvVariables($envVariables) + { + $this->envVariables = $envVariables; + } + public function getEnvVariables() + { + return $this->envVariables; + } + public function setErrorHandlers($errorHandlers) + { + $this->errorHandlers = $errorHandlers; + } + public function getErrorHandlers() + { + return $this->errorHandlers; + } + public function setHandlers($handlers) + { + $this->handlers = $handlers; + } + public function getHandlers() + { + return $this->handlers; + } + public function setHealthCheck(Google_Service_Appengine_HealthCheck $healthCheck) + { + $this->healthCheck = $healthCheck; + } + public function getHealthCheck() + { + return $this->healthCheck; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInboundServices($inboundServices) + { + $this->inboundServices = $inboundServices; + } + public function getInboundServices() + { + return $this->inboundServices; + } + public function setInstanceClass($instanceClass) + { + $this->instanceClass = $instanceClass; + } + public function getInstanceClass() + { + return $this->instanceClass; + } + public function setLibraries($libraries) + { + $this->libraries = $libraries; + } + public function getLibraries() + { + return $this->libraries; + } + public function setManualScaling(Google_Service_Appengine_ManualScaling $manualScaling) + { + $this->manualScaling = $manualScaling; + } + public function getManualScaling() + { + return $this->manualScaling; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork(Google_Service_Appengine_Network $network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNobuildFilesRegex($nobuildFilesRegex) + { + $this->nobuildFilesRegex = $nobuildFilesRegex; + } + public function getNobuildFilesRegex() + { + return $this->nobuildFilesRegex; + } + public function setResources(Google_Service_Appengine_Resources $resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } + public function setRuntime($runtime) + { + $this->runtime = $runtime; + } + public function getRuntime() + { + return $this->runtime; + } + public function setServingStatus($servingStatus) + { + $this->servingStatus = $servingStatus; + } + public function getServingStatus() + { + return $this->servingStatus; + } + public function setThreadsafe($threadsafe) + { + $this->threadsafe = $threadsafe; + } + public function getThreadsafe() + { + return $this->threadsafe; + } + public function setVm($vm) + { + $this->vm = $vm; + } + public function getVm() + { + return $this->vm; + } +} + +class Google_Service_Appengine_VersionBetaSettings extends Google_Model +{ +} + +class Google_Service_Appengine_VersionEnvVariables extends Google_Model +{ +} diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index 6f2c1675f..c8c4c6300 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -46,7 +46,9 @@ class Google_Service_Books extends Google_Service public $mylibrary_bookshelves; public $mylibrary_bookshelves_volumes; public $mylibrary_readingpositions; + public $notification; public $onboarding; + public $personalizedstream; public $promooffer; public $volumes; public $volumes_associated; @@ -961,6 +963,34 @@ public function __construct(Google_Client $client) ) ) ); + $this->notification = new Google_Service_Books_Notification_Resource( + $this, + $this->serviceName, + 'notification', + array( + 'methods' => array( + 'get' => array( + 'path' => 'notification/get', + 'httpMethod' => 'GET', + 'parameters' => array( + 'notification_id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->onboarding = new Google_Service_Books_Onboarding_Resource( $this, $this->serviceName, @@ -1006,6 +1036,33 @@ public function __construct(Google_Client $client) ) ) ); + $this->personalizedstream = new Google_Service_Books_Personalizedstream_Resource( + $this, + $this->serviceName, + 'personalizedstream', + array( + 'methods' => array( + 'get' => array( + 'path' => 'personalizedstream/get', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->promooffer = new Google_Service_Books_Promooffer_Resource( $this, $this->serviceName, @@ -1539,7 +1596,7 @@ class Google_Service_Books_Dictionary_Resource extends Google_Service_Resource { /** - * Returns a list of offline dictionary meatadata available + * Returns a list of offline dictionary metadata available * (dictionary.listOfflineMetadata) * * @param string $cpksver The device/version ID from which to request the data. @@ -2191,6 +2248,36 @@ public function setPosition($volumeId, $timestamp, $position, $optParams = array } } +/** + * The "notification" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $notification = $booksService->notification; + * + */ +class Google_Service_Books_Notification_Resource extends Google_Service_Resource +{ + + /** + * Returns notification details for a given notification id. (notification.get) + * + * @param string $notificationId String to identify the notification. + * @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 notification title and body. + * @opt_param string source String to identify the originator of this request. + * @return Google_Service_Books_Notification + */ + public function get($notificationId, $optParams = array()) + { + $params = array('notification_id' => $notificationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Notification"); + } +} + /** * The "onboarding" collection of methods. * Typical usage is: @@ -2244,6 +2331,38 @@ public function listCategoryVolumes($optParams = array()) } } +/** + * The "personalizedstream" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $personalizedstream = $booksService->personalizedstream; + * + */ +class Google_Service_Books_Personalizedstream_Resource extends Google_Service_Resource +{ + + /** + * Returns a stream of personalized book clusters (personalizedstream.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. Used for generating recommendations. + * @opt_param string source String to identify the originator of this request. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned recommendations. Books with a higher maturity rating are + * filtered out. + * @return Google_Service_Books_Discoveryclusters + */ + public function get($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Discoveryclusters"); + } +} + /** * The "promooffer" collection of methods. * Typical usage is: @@ -4080,6 +4199,171 @@ public function getUrl() } } +class Google_Service_Books_Discoveryclusters extends Google_Collection +{ + protected $collection_key = 'clusters'; + protected $internal_gapi_mappings = array( + ); + protected $clustersType = 'Google_Service_Books_DiscoveryclustersClusters'; + protected $clustersDataType = 'array'; + public $kind; + public $totalClusters; + + + public function setClusters($clusters) + { + $this->clusters = $clusters; + } + public function getClusters() + { + return $this->clusters; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setTotalClusters($totalClusters) + { + $this->totalClusters = $totalClusters; + } + public function getTotalClusters() + { + return $this->totalClusters; + } +} + +class Google_Service_Books_DiscoveryclustersClusters extends Google_Collection +{ + protected $collection_key = 'volumes'; + protected $internal_gapi_mappings = array( + "bannerWithContentContainer" => "banner_with_content_container", + ); + protected $bannerWithContentContainerType = 'Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer'; + protected $bannerWithContentContainerDataType = ''; + public $subTitle; + public $title; + public $totalVolumes; + public $uid; + protected $volumesType = 'Google_Service_Books_Volume'; + protected $volumesDataType = 'array'; + + + public function setBannerWithContentContainer(Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer $bannerWithContentContainer) + { + $this->bannerWithContentContainer = $bannerWithContentContainer; + } + public function getBannerWithContentContainer() + { + return $this->bannerWithContentContainer; + } + 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; + } + public function setTotalVolumes($totalVolumes) + { + $this->totalVolumes = $totalVolumes; + } + public function getTotalVolumes() + { + return $this->totalVolumes; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } + public function setVolumes($volumes) + { + $this->volumes = $volumes; + } + public function getVolumes() + { + return $this->volumes; + } +} + +class Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fillColorArgb; + public $imageUrl; + public $maskColorArgb; + public $moreButtonText; + public $moreButtonUrl; + public $textColorArgb; + + + public function setFillColorArgb($fillColorArgb) + { + $this->fillColorArgb = $fillColorArgb; + } + public function getFillColorArgb() + { + return $this->fillColorArgb; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setMaskColorArgb($maskColorArgb) + { + $this->maskColorArgb = $maskColorArgb; + } + public function getMaskColorArgb() + { + return $this->maskColorArgb; + } + public function setMoreButtonText($moreButtonText) + { + $this->moreButtonText = $moreButtonText; + } + public function getMoreButtonText() + { + return $this->moreButtonText; + } + public function setMoreButtonUrl($moreButtonUrl) + { + $this->moreButtonUrl = $moreButtonUrl; + } + public function getMoreButtonUrl() + { + return $this->moreButtonUrl; + } + public function setTextColorArgb($textColorArgb) + { + $this->textColorArgb = $textColorArgb; + } + public function getTextColorArgb() + { + return $this->textColorArgb; + } +} + class Google_Service_Books_DownloadAccessRestriction extends Google_Model { protected $internal_gapi_mappings = array( @@ -4749,6 +5033,59 @@ public function getVersion() } } +class Google_Service_Books_Notification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $body; + public $iconUrl; + public $kind; + public $linkUrl; + public $title; + + + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + public function getIconUrl() + { + return $this->iconUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLinkUrl($linkUrl) + { + $this->linkUrl = $linkUrl; + } + public function getLinkUrl() + { + return $this->linkUrl; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + class Google_Service_Books_Offers extends Google_Collection { protected $collection_key = 'items'; @@ -5152,6 +5489,8 @@ class Google_Service_Books_Usersettings extends Google_Model public $kind; protected $notesExportType = 'Google_Service_Books_UsersettingsNotesExport'; protected $notesExportDataType = ''; + protected $notificationType = 'Google_Service_Books_UsersettingsNotification'; + protected $notificationDataType = ''; public function setKind($kind) @@ -5170,6 +5509,14 @@ public function getNotesExport() { return $this->notesExport; } + public function setNotification(Google_Service_Books_UsersettingsNotification $notification) + { + $this->notification = $notification; + } + public function getNotification() + { + return $this->notification; + } } class Google_Service_Books_UsersettingsNotesExport extends Google_Model @@ -5198,6 +5545,42 @@ public function getIsEnabled() } } +class Google_Service_Books_UsersettingsNotification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $moreFromAuthorsType = 'Google_Service_Books_UsersettingsNotificationMoreFromAuthors'; + protected $moreFromAuthorsDataType = ''; + + + public function setMoreFromAuthors(Google_Service_Books_UsersettingsNotificationMoreFromAuthors $moreFromAuthors) + { + $this->moreFromAuthors = $moreFromAuthors; + } + public function getMoreFromAuthors() + { + return $this->moreFromAuthors; + } +} + +class Google_Service_Books_UsersettingsNotificationMoreFromAuthors extends Google_Model +{ + protected $internal_gapi_mappings = array( + "optedState" => "opted_state", + ); + public $optedState; + + + public function setOptedState($optedState) + { + $this->optedState = $optedState; + } + public function getOptedState() + { + return $this->optedState; + } +} + class Google_Service_Books_Volume extends Google_Model { protected $internal_gapi_mappings = array( @@ -5900,8 +6283,10 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + public $acquisitionType; protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; protected $copyDataType = ''; + public $entitlementType; public $isInMyBooks; public $isPreordered; public $isPurchased; @@ -5918,6 +6303,14 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model protected $userUploadedVolumeInfoDataType = ''; + public function setAcquisitionType($acquisitionType) + { + $this->acquisitionType = $acquisitionType; + } + public function getAcquisitionType() + { + return $this->acquisitionType; + } public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy) { $this->copy = $copy; @@ -5926,6 +6319,14 @@ public function getCopy() { return $this->copy; } + public function setEntitlementType($entitlementType) + { + $this->entitlementType = $entitlementType; + } + public function getEntitlementType() + { + return $this->entitlementType; + } public function setIsInMyBooks($isInMyBooks) { $this->isInMyBooks = $isInMyBooks; diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 377357f28..5105c787d 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -903,7 +903,9 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource /** * Deletes an access control rule. (acl.delete) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $ruleId ACL rule identifier. * @param array $optParams Optional parameters. */ @@ -917,7 +919,9 @@ public function delete($calendarId, $ruleId, $optParams = array()) /** * Returns an access control rule. (acl.get) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $ruleId ACL rule identifier. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule @@ -932,7 +936,9 @@ public function get($calendarId, $ruleId, $optParams = array()) /** * Creates an access control rule. (acl.insert) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_AclRule @@ -947,7 +953,9 @@ public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $ /** * Returns the rules in the access control list for the calendar. (acl.listAcl) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. * * @opt_param string pageToken Token specifying which result page to return. @@ -980,7 +988,9 @@ public function listAcl($calendarId, $optParams = array()) * Updates an access control rule. This method supports patch semantics. * (acl.patch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $ruleId ACL rule identifier. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. @@ -996,7 +1006,9 @@ public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $pos /** * Updates an access control rule. (acl.update) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $ruleId ACL rule identifier. * @param Google_AclRule $postBody * @param array $optParams Optional parameters. @@ -1012,7 +1024,9 @@ public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $po /** * Watch for changes to ACL resources. (acl.watch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * @@ -1057,7 +1071,9 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou /** * Deletes an entry on the user's calendar list. (calendarList.delete) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. */ public function delete($calendarId, $optParams = array()) @@ -1070,7 +1086,9 @@ public function delete($calendarId, $optParams = array()) /** * Returns an entry on the user's calendar list. (calendarList.get) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_CalendarListEntry */ @@ -1141,7 +1159,9 @@ public function listCalendarList($optParams = array()) * Updates an entry on the user's calendar list. This method supports patch * semantics. (calendarList.patch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_CalendarListEntry $postBody * @param array $optParams Optional parameters. * @@ -1161,7 +1181,9 @@ public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $po /** * Updates an entry on the user's calendar list. (calendarList.update) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_CalendarListEntry $postBody * @param array $optParams Optional parameters. * @@ -1232,7 +1254,9 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource * Clears a primary calendar. This operation deletes all events associated with * the primary calendar of an account. (calendars.clear) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. */ public function clear($calendarId, $optParams = array()) @@ -1246,7 +1270,9 @@ public function clear($calendarId, $optParams = array()) * Deletes a secondary calendar. Use calendars.clear for clearing all events on * primary calendars. (calendars.delete) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. */ public function delete($calendarId, $optParams = array()) @@ -1259,7 +1285,9 @@ public function delete($calendarId, $optParams = array()) /** * Returns metadata for a calendar. (calendars.get) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar */ @@ -1288,7 +1316,9 @@ public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = * Updates metadata for a calendar. This method supports patch semantics. * (calendars.patch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Calendar $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar @@ -1303,7 +1333,9 @@ public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $ /** * Updates metadata for a calendar. (calendars.update) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Calendar $postBody * @param array $optParams Optional parameters. * @return Google_Service_Calendar_Calendar @@ -1380,7 +1412,9 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource /** * Deletes an event. (events.delete) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $eventId Event identifier. * @param array $optParams Optional parameters. * @@ -1397,7 +1431,9 @@ public function delete($calendarId, $eventId, $optParams = array()) /** * Returns an event. (events.get) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $eventId Event identifier. * @param array $optParams Optional parameters. * @@ -1425,7 +1461,9 @@ public function get($calendarId, $eventId, $optParams = array()) * Imports an event. This operation is used to add a private copy of an existing * event to a calendar. (events.import) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Event $postBody * @param array $optParams Optional parameters. * @@ -1443,7 +1481,9 @@ public function import($calendarId, Google_Service_Calendar_Event $postBody, $op /** * Creates an event. (events.insert) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Event $postBody * @param array $optParams Optional parameters. * @@ -1466,7 +1506,9 @@ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $op /** * Returns instances of the specified recurring event. (events.instances) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $eventId Recurring event identifier. * @param array $optParams Optional parameters. * @@ -1475,7 +1517,8 @@ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $op * 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. + * to filter by. Optional. The default is not to filter by start time. Must be + * an RFC3339 timestamp with mandatory time zone offset. * @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 @@ -1488,7 +1531,8 @@ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $op * @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. + * filter by. Optional. The default is not to filter by end time. Must be an + * RFC3339 timestamp with mandatory time zone offset. * @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 @@ -1508,7 +1552,9 @@ public function instances($calendarId, $eventId, $optParams = array()) /** * Returns events on the specified calendar. (events.listEvents) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. * * @opt_param string orderBy The order of the events returned in the result. @@ -1538,7 +1584,7 @@ public function instances($calendarId, $eventId, $optParams = array()) * @opt_param string iCalUID Specifies event ID in the iCalendar format to be * included in the response. Optional. * @opt_param string updatedMin Lower bound for an event's last modification - * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted + * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted * since this time will always be included regardless of showDeleted. Optional. * The default is not to filter by last modification time. * @opt_param bool singleEvents Whether to expand recurring events into @@ -1546,7 +1592,10 @@ public function instances($calendarId, $eventId, $optParams = array()) * 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. + * to filter by. Optional. The default is not to filter by start time. Must be + * an RFC3339 timestamp with mandatory time zone offset, e.g., + * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided + * but will be ignored. * @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 @@ -1561,7 +1610,10 @@ public function instances($calendarId, $eventId, $optParams = array()) * @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. + * filter by. Optional. The default is not to filter by end time. Must be an + * RFC3339 timestamp with mandatory time zone offset, e.g., + * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided + * but will be ignored. * @opt_param string timeZone Time zone used in the response. Optional. The * default is the time zone of the calendar. * @opt_param string privateExtendedProperty Extended properties constraint @@ -1609,7 +1661,9 @@ public function move($calendarId, $eventId, $destination, $optParams = array()) /** * Updates an event. This method supports patch semantics. (events.patch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $eventId Event identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. @@ -1640,7 +1694,9 @@ public function patch($calendarId, $eventId, Google_Service_Calendar_Event $post /** * Creates an event based on a simple text string. (events.quickAdd) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $text The text describing the event to be created. * @param array $optParams Optional parameters. * @@ -1658,7 +1714,9 @@ public function quickAdd($calendarId, $text, $optParams = array()) /** * Updates an event. (events.update) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param string $eventId Event identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. @@ -1689,7 +1747,9 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos /** * Watch for changes to Events resources. (events.watch) * - * @param string $calendarId Calendar identifier. + * @param string $calendarId Calendar identifier. To retrieve calendar IDs call + * the calendarList.list method. If you want to access the primary calendar of + * the currently logged in user, use the "primary" keyword. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * @@ -1720,7 +1780,7 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * @opt_param string iCalUID Specifies event ID in the iCalendar format to be * included in the response. Optional. * @opt_param string updatedMin Lower bound for an event's last modification - * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted + * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted * since this time will always be included regardless of showDeleted. Optional. * The default is not to filter by last modification time. * @opt_param bool singleEvents Whether to expand recurring events into @@ -1728,7 +1788,10 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * 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. + * to filter by. Optional. The default is not to filter by start time. Must be + * an RFC3339 timestamp with mandatory time zone offset, e.g., + * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided + * but will be ignored. * @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 @@ -1743,7 +1806,10 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * @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. + * filter by. Optional. The default is not to filter by end time. Must be an + * RFC3339 timestamp with mandatory time zone offset, e.g., + * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided + * but will be ignored. * @opt_param string timeZone Time zone used in the response. Optional. The * default is the time zone of the calendar. * @opt_param string privateExtendedProperty Extended properties constraint @@ -2919,12 +2985,21 @@ class Google_Service_Calendar_EventAttachment extends Google_Model { protected $internal_gapi_mappings = array( ); + public $fileId; public $fileUrl; public $iconLink; public $mimeType; public $title; + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + public function getFileId() + { + return $this->fileId; + } public function setFileUrl($fileUrl) { $this->fileUrl = $fileUrl; diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 5d6964262..683cefe26 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -621,7 +621,14 @@ class Google_Service_CivicInfo_Contest extends Google_Collection public $numberVotingFor; public $office; public $primaryParty; + public $referendumBallotResponses; + public $referendumBrief; + public $referendumConStatement; + public $referendumEffectOfAbstain; + public $referendumPassageThreshold; + public $referendumProStatement; public $referendumSubtitle; + public $referendumText; public $referendumTitle; public $referendumUrl; public $roles; @@ -711,6 +718,54 @@ public function getPrimaryParty() { return $this->primaryParty; } + public function setReferendumBallotResponses($referendumBallotResponses) + { + $this->referendumBallotResponses = $referendumBallotResponses; + } + public function getReferendumBallotResponses() + { + return $this->referendumBallotResponses; + } + public function setReferendumBrief($referendumBrief) + { + $this->referendumBrief = $referendumBrief; + } + public function getReferendumBrief() + { + return $this->referendumBrief; + } + public function setReferendumConStatement($referendumConStatement) + { + $this->referendumConStatement = $referendumConStatement; + } + public function getReferendumConStatement() + { + return $this->referendumConStatement; + } + public function setReferendumEffectOfAbstain($referendumEffectOfAbstain) + { + $this->referendumEffectOfAbstain = $referendumEffectOfAbstain; + } + public function getReferendumEffectOfAbstain() + { + return $this->referendumEffectOfAbstain; + } + public function setReferendumPassageThreshold($referendumPassageThreshold) + { + $this->referendumPassageThreshold = $referendumPassageThreshold; + } + public function getReferendumPassageThreshold() + { + return $this->referendumPassageThreshold; + } + public function setReferendumProStatement($referendumProStatement) + { + $this->referendumProStatement = $referendumProStatement; + } + public function getReferendumProStatement() + { + return $this->referendumProStatement; + } public function setReferendumSubtitle($referendumSubtitle) { $this->referendumSubtitle = $referendumSubtitle; @@ -719,6 +774,14 @@ public function getReferendumSubtitle() { return $this->referendumSubtitle; } + public function setReferendumText($referendumText) + { + $this->referendumText = $referendumText; + } + public function getReferendumText() + { + return $this->referendumText; + } public function setReferendumTitle($referendumTitle) { $this->referendumTitle = $referendumTitle; @@ -840,6 +903,7 @@ class Google_Service_CivicInfo_Election extends Google_Model public $electionDay; public $id; public $name; + public $ocdDivisionId; public function setElectionDay($electionDay) @@ -866,6 +930,14 @@ public function getName() { return $this->name; } + public function setOcdDivisionId($ocdDivisionId) + { + $this->ocdDivisionId = $ocdDivisionId; + } + public function getOcdDivisionId() + { + return $this->ocdDivisionId; + } } class Google_Service_CivicInfo_ElectionOfficial extends Google_Model @@ -1475,6 +1547,7 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection protected $electionType = 'Google_Service_CivicInfo_Election'; protected $electionDataType = ''; public $kind; + public $mailOnly; protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; protected $normalizedInputDataType = ''; protected $otherElectionsType = 'Google_Service_CivicInfo_Election'; @@ -1526,6 +1599,14 @@ public function getKind() { return $this->kind; } + public function setMailOnly($mailOnly) + { + $this->mailOnly = $mailOnly; + } + public function getMailOnly() + { + return $this->mailOnly; + } public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) { $this->normalizedInput = $normalizedInput; diff --git a/src/Google/Service/Classroom.php b/src/Google/Service/Classroom.php index 109fb83bd..f63b3eaec 100644 --- a/src/Google/Service/Classroom.php +++ b/src/Google/Service/Classroom.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -443,12 +443,14 @@ class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource { /** - * Creates a course. The user specified as the primary teacher in - * `primary_teacher_id` is the owner of the created course and added as a - * teacher. This method returns the following error codes: * `PERMISSION_DENIED` - * if the requesting user is not permitted to create courses. * `NOT_FOUND` if - * the primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was - * specified and already exists. (courses.create) + * Creates a course. The user specified in `ownerId` is the owner of the created + * course and added as a teacher. This method returns the following error codes: + * * `PERMISSION_DENIED` if the requesting user is not permitted to create + * courses or for [general user permission errors][User Permission Errors]. * + * `NOT_FOUND` if the primary teacher is not a valid user. * + * `FAILED_PRECONDITION` if the course owner's account is disabled. * + * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists. + * (courses.create) * * @param Google_Course $postBody * @param array $optParams Optional parameters. @@ -464,11 +466,13 @@ public function create(Google_Service_Classroom_Course $postBody, $optParams = a /** * Deletes a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * requested course or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if no course exists with the requested ID. * (courses.delete) * - * @param string $id Identifier of the course to delete. This may either be the - * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param string $id Identifier of the course to delete. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -482,11 +486,13 @@ public function delete($id, $optParams = array()) /** * Returns a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to access the - * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * requested course or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if no course exists with the requested ID. * (courses.get) * - * @param string $id Identifier of the course to return. This may either be the - * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param string $id Identifier of the course to return. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course */ @@ -500,27 +506,28 @@ public function get($id, $optParams = array()) /** * Returns a list of courses that the requesting user is permitted to view, * restricted to those that match the request. This method returns the following - * error codes: * `INVALID_ARGUMENT` if the query argument is malformed. * - * `NOT_FOUND` if any users specified in the query arguments do not exist. + * error codes: * `PERMISSION_DENIED` for [general user permission errors][User + * Permission Errors]. * `INVALID_ARGUMENT` if the query argument is malformed. + * * `NOT_FOUND` if any users specified in the query arguments do not exist. * (courses.listCourses) * * @param array $optParams Optional parameters. * * @opt_param string teacherId Restricts returned courses to those having a - * teacher with the specified identifier, or an alias that identifies a teacher. - * The following aliases are supported: * the e-mail address of the user * the - * string literal `"me"`, indicating that the requesting user + * teacher with the specified identifier. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of the + * user * the string literal `"me"`, indicating the requesting user * @opt_param string pageToken * [nextPageToken][google.classroom.v1.ListCoursesResponse.next_page_token] * value returned from a previous * [list][google.classroom.v1.Courses.ListCourses] call, indicating that the * subsequent page of results should be returned. The - * [list][google.classroom.v1.Courses.ListCourses] request must be identical to - * the one which resulted in this token. + * [list][google.classroom.v1.Courses.ListCourses] request must be otherwise + * identical to the one that resulted in this token. * @opt_param string studentId Restricts returned courses to those having a - * student with the specified identifier, or an alias that identifies a student. - * The following aliases are supported: * the e-mail address of the user * the - * string literal `"me"`, indicating that the requesting user + * student with the specified identifier. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of the + * user * the string literal `"me"`, indicating the requesting user * @opt_param int pageSize Maximum number of items to return. Zero or * unspecified indicates that the server may assign a maximum. The server may * return fewer than the specified number of results. @@ -534,22 +541,25 @@ public function listCourses($optParams = array()) } /** - * Updates one or more fields a course. This method returns the following error - * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * modify the requested course. * `NOT_FOUND` if no course exists with the - * requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the - * update mask or if no update mask is supplied. (courses.patch) + * Updates one or more fields in a course. This method returns the following + * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + * modify the requested course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no course exists with the requested ID. + * * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if + * no update mask is supplied. (courses.patch) * - * @param string $id Identifier of the course to update. This may either be the - * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param string $id Identifier of the course to update. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param Google_Course $postBody * @param array $optParams Optional parameters. * - * @opt_param string updateMask Mask which identifies which fields on the course + * @opt_param string updateMask Mask that identifies which fields on the course * to update. This field is required to do an update. The update will fail if - * invalid fields are specified. Valid fields are listed below: * `name` * + * invalid fields are specified. The following fields are valid: * `name` * * `section` * `descriptionHeading` * `description` * `room` * `courseState` - * When set in a query parameter, this should be specified as `updateMask=,,...` + * When set in a query parameter, this field should be specified as + * `updateMask=,,...` * @return Google_Service_Classroom_Course */ public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array()) @@ -562,11 +572,13 @@ public function patch($id, Google_Service_Classroom_Course $postBody, $optParams /** * Updates a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to modify the - * requested course. * `NOT_FOUND` if no course exists with the requested ID. + * requested course or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if no course exists with the requested ID. * (courses.update) * - * @param string $id Identifier of the course to update. This may either be the - * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param string $id Identifier of the course to update. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param Google_Course $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course @@ -591,13 +603,14 @@ class Google_Service_Classroom_CoursesAliases_Resource extends Google_Service_Re { /** - * Creates an alias to a course. This method returns the following error codes: + * Creates an alias for a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to create the - * alias. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the - * alias already exists. (aliases.create) + * alias or for [general user permission errors][User Permission Errors]. * + * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the alias + * already exists. (aliases.create) * - * @param string $courseId The identifier of the course to alias. This may - * either be the Classroom-assigned identifier or an + * @param string $courseId Identifier of the course to alias. This identifier + * can be either the Classroom-assigned identifier or an * [alias][google.classroom.v1.CourseAlias]. * @param Google_CourseAlias $postBody * @param array $optParams Optional parameters. @@ -613,13 +626,14 @@ public function create($courseId, Google_Service_Classroom_CourseAlias $postBody /** * Deletes an alias of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to remove the - * alias. * `NOT_FOUND` if the alias does not exist. (aliases.delete) + * alias or for [general user permission errors][User Permission Errors]. * + * `NOT_FOUND` if the alias does not exist. (aliases.delete) * - * @param string $courseId The identifier of the course whose alias should be - * deleted. This may either be the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. - * @param string $alias The alias to delete. This may not be the Classroom- - * assigned identifier. + * @param string $courseId Identifier of the course whose alias should be + * deleted. This identifier can be either the Classroom-assigned identifier or + * an [alias][google.classroom.v1.CourseAlias]. + * @param string $alias Alias to delete. This may not be the Classroom-assigned + * identifier. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -631,13 +645,15 @@ public function delete($courseId, $alias, $optParams = array()) } /** - * Lists the aliases of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to access the - * course. * `NOT_FOUND` if the course does not exist. + * Returns a list of aliases for a course. This method returns the following + * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + * access the course or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if the course does not exist. * (aliases.listCoursesAliases) * - * @param string $courseId The identifier of the course. This may either be the - * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias]. + * @param string $courseId The identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param array $optParams Optional parameters. * * @opt_param string pageToken [nextPageToken][google.classroom.v1.ListCourseAli @@ -645,7 +661,7 @@ public function delete($courseId, $alias, $optParams = array()) * [list][google.classroom.v1.Courses.ListCourseAliases] call, indicating that * the subsequent page of results should be returned. The * [list][google.classroom.v1.Courses.ListCourseAliases] request must be - * identical to the one which resulted in this token. + * otherwise identical to the one that resulted in this token. * @opt_param int pageSize Maximum number of items to return. Zero or * unspecified indicates that the server may assign a maximum. The server may * return fewer than the specified number of results. @@ -672,19 +688,23 @@ class Google_Service_Classroom_CoursesStudents_Resource extends Google_Service_R /** * Adds a user as a student of a course. This method returns the following error * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * create students in this course. * `NOT_FOUND` if the requested course ID does - * not exist. * `ALREADY_EXISTS` if the user is already a student or student in - * the course. (students.create) + * create students in this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if the requested course ID does not exist. + * * `FAILED_PRECONDITION` if the requested user's account is disabled. * + * `ALREADY_EXISTS` if the user is already a student or teacher in the course. + * (students.create) * * @param string $courseId Identifier of the course to create the student in. - * This may either be the Classroom-assigned identifier or an alias. + * This identifier can be either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param Google_Student $postBody * @param array $optParams Optional parameters. * * @opt_param string enrollmentCode Enrollment code of the course to create the - * student in. This is required if [userId][google.classroom.v1.Student.user_id] - * corresponds to the requesting user; this may be omitted if the requesting - * user has administrative permissions to create students for any user. + * student in. This code is required if + * [userId][google.classroom.v1.Student.user_id] corresponds to the requesting + * user; it may be omitted if the requesting user has administrative permissions + * to create students for any user. * @return Google_Service_Classroom_Student */ public function create($courseId, Google_Service_Classroom_Student $postBody, $optParams = array()) @@ -697,15 +717,17 @@ public function create($courseId, Google_Service_Classroom_Student $postBody, $o /** * Deletes a student of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * students of this course. * `NOT_FOUND` if no student of this course has the + * students of this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no student of this course has the * requested ID or if the course does not exist. (students.delete) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the student to delete, or an alias the - * identifies the user. The following aliases are supported: * the e-mail - * address of the user * the string literal `"me"`, indicating that the - * requesting user + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param string $userId Identifier of the student to delete. The identifier can + * be one of the following: * the numeric identifier for the user * the email + * address of the user * the string literal `"me"`, indicating the requesting + * user * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -719,15 +741,17 @@ public function delete($courseId, $userId, $optParams = array()) /** * Returns a student of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * students of this course. * `NOT_FOUND` if no student of this course has the + * students of this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no student of this course has the * requested ID or if the course does not exist. (students.get) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the student to return, or an alias the - * identifies the user. The following aliases are supported: * the e-mail - * address of the user * the string literal `"me"`, indicating that the - * requesting user + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param string $userId Identifier of the student to return. The identifier can + * be one of the following: * the numeric identifier for the user * the email + * address of the user * the string literal `"me"`, indicating the requesting + * user * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Student */ @@ -740,19 +764,21 @@ public function get($courseId, $userId, $optParams = array()) /** * Returns a list of students of this course that the requester is permitted to - * view. Fails with `NOT_FOUND` if the course does not exist. - * (students.listCoursesStudents) + * view. This method returns the following error codes: * `NOT_FOUND` if the + * course does not exist. * `PERMISSION_DENIED` for [general user permission + * errors][User Permission Errors]. (students.listCoursesStudents) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param array $optParams Optional parameters. * * @opt_param string pageToken * [nextPageToken][google.classroom.v1.ListStudentsResponse.next_page_token] * value returned from a previous [list][google.classroom.v1.Users.ListStudents] * call, indicating that the subsequent page of results should be returned. The - * [list][google.classroom.v1.Users.ListStudents] request must be identical to - * the one which resulted in this token. + * [list][google.classroom.v1.Users.ListStudents] request must be otherwise + * identical to the one that resulted in this token. * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListStudentsResponse @@ -778,12 +804,15 @@ class Google_Service_Classroom_CoursesTeachers_Resource extends Google_Service_R /** * Creates a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to create - * teachers in this course. * `NOT_FOUND` if the requested course ID does not - * exist. * `ALREADY_EXISTS` if the user is already a teacher or student in the - * course. (teachers.create) + * teachers in this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if the requested course ID does not exist. + * * `FAILED_PRECONDITION` if the requested user's account is disabled. * + * `ALREADY_EXISTS` if the user is already a teacher or student in the course. + * (teachers.create) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param Google_Teacher $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Teacher @@ -798,16 +827,18 @@ public function create($courseId, Google_Service_Classroom_Teacher $postBody, $o /** * Deletes a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * teachers of this course. * `NOT_FOUND` if no teacher of this course has the + * teachers of this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no teacher of this course has the * requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the * requested ID belongs to the primary teacher of this course. (teachers.delete) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the teacher to delete, or an alias the - * identifies the user. the following aliases are supported: * the e-mail - * address of the user * the string literal `"me"`, indicating that the - * requesting user + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param string $userId Identifier of the teacher to delete. The identifier can + * be one of the following: * the numeric identifier for the user * the email + * address of the user * the string literal `"me"`, indicating the requesting + * user * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -821,15 +852,17 @@ public function delete($courseId, $userId, $optParams = array()) /** * Returns a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * teachers of this course. * `NOT_FOUND` if no teacher of this course has the + * teachers of this course or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no teacher of this course has the * requested ID or if the course does not exist. (teachers.get) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the teacher to return, or an alias the - * identifies the user. the following aliases are supported: * the e-mail - * address of the user * the string literal `"me"`, indicating that the - * requesting user + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. + * @param string $userId Identifier of the teacher to return. The identifier can + * be one of the following: * the numeric identifier for the user * the email + * address of the user * the string literal `"me"`, indicating the requesting + * user * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Teacher */ @@ -842,19 +875,21 @@ public function get($courseId, $userId, $optParams = array()) /** * Returns a list of teachers of this course that the requester is permitted to - * view. Fails with `NOT_FOUND` if the course does not exist. - * (teachers.listCoursesTeachers) + * view. This method returns the following error codes: * `NOT_FOUND` if the + * course does not exist. * `PERMISSION_DENIED` for [general user permission + * errors][User Permission Errors]. (teachers.listCoursesTeachers) * - * @param string $courseId Unique identifier of the course. This may either be - * the Classroom-assigned identifier or an alias. + * @param string $courseId Identifier of the course. This identifier can be + * either the Classroom-assigned identifier or an + * [alias][google.classroom.v1.CourseAlias]. * @param array $optParams Optional parameters. * * @opt_param string pageToken * [nextPageToken][google.classroom.v1.ListTeachersResponse.next_page_token] * value returned from a previous [list][google.classroom.v1.Users.ListTeachers] * call, indicating that the subsequent page of results should be returned. The - * [list][google.classroom.v1.Users.ListTeachers] request must be identical to - * the one which resulted in this token. + * [list][google.classroom.v1.Users.ListTeachers] request must be otherwise + * identical to the one that resulted in this token. * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListTeachersResponse @@ -883,8 +918,9 @@ class Google_Service_Classroom_Invitations_Resource extends Google_Service_Resou * teachers or students (as appropriate) of the specified course. Only the * invited user may accept an invitation. This method returns the following * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * accept the requested invitation. * `NOT_FOUND` if no invitation exists with - * the requested ID. (invitations.accept) + * accept the requested invitation or for [general user permission errors][User + * Permission Errors]. * `NOT_FOUND` if no invitation exists with the requested + * ID. (invitations.accept) * * @param string $id Identifier of the invitation to accept. * @param array $optParams Optional parameters. @@ -898,12 +934,15 @@ public function accept($id, $optParams = array()) } /** - * Creates a invitation. Only one invitation for a user and course may exist at - * a time. Delete and recreate an invitation to make changes. This method + * Creates an invitation. Only one invitation for a user and course may exist at + * a time. Delete and re-create an invitation to make changes. This method * returns the following error codes: * `PERMISSION_DENIED` if the requesting - * user is not permitted to create invitations for this course. * `NOT_FOUND` if - * the course or the user does not exist. * `ALREADY_EXISTS` if an invitation - * for the specified user and course already exists. (invitations.create) + * user is not permitted to create invitations for this course or for [general + * user permission errors][User Permission Errors]. * `NOT_FOUND` if the course + * or the user does not exist. * `FAILED_PRECONDITION` if the requested user's + * account is disabled or if the user already has this role or a role with + * greater permissions. * `ALREADY_EXISTS` if an invitation for the specified + * user and course already exists. (invitations.create) * * @param Google_Invitation $postBody * @param array $optParams Optional parameters. @@ -917,10 +956,11 @@ public function create(Google_Service_Classroom_Invitation $postBody, $optParams } /** - * Deletes a invitation. This method returns the following error codes: * + * Deletes an invitation. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested invitation. * `NOT_FOUND` if no invitation exists with the - * requested ID. (invitations.delete) + * requested invitation or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if no invitation exists with the requested ID. + * (invitations.delete) * * @param string $id Identifier of the invitation to delete. * @param array $optParams Optional parameters. @@ -934,10 +974,11 @@ public function delete($id, $optParams = array()) } /** - * Returns a invitation. This method returns the following error codes: * + * Returns an invitation. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view the - * requested invitation. * `NOT_FOUND` if no invitation exists with the - * requested ID. (invitations.get) + * requested invitation or for [general user permission errors][User Permission + * Errors]. * `NOT_FOUND` if no invitation exists with the requested ID. + * (invitations.get) * * @param string $id Identifier of the invitation to return. * @param array $optParams Optional parameters. @@ -952,25 +993,28 @@ public function get($id, $optParams = array()) /** * Returns a list of invitations that the requesting user is permitted to view, - * restricted to those that match the request. *Note:* At least one of `user_id` - * or `course_id` must be supplied. (invitations.listInvitations) + * restricted to those that match the list request. *Note:* At least one of + * `user_id` or `course_id` must be supplied. Both fields can be supplied. This + * method returns the following error codes: * `PERMISSION_DENIED` for [general + * user permission errors][User Permission Errors]. + * (invitations.listInvitations) * * @param array $optParams Optional parameters. * * @opt_param string courseId Restricts returned invitations to those for a * course with the specified identifier. * @opt_param string pageToken - * [nextPageToken][google.classroom.v1.ListInvitationsRespnse.next_page_token] + * [nextPageToken][google.classroom.v1.ListInvitationsResponse.next_page_token] * value returned from a previous - * [list][google.classroom.v1.Users.ListInvitations] call, indicating that the - * subsequent page of results should be returned. The - * [list][google.classroom.v1.Users.ListInvitations] request must be identical - * to the one which resulted in this token. + * [list][google.classroom.v1.Invitations.ListInvitations] call, indicating that + * the subsequent page of results should be returned. The + * [list][google.classroom.v1.Invitations.ListInvitations] request must be + * otherwise identical to the one that resulted in this token. * @opt_param string userId Restricts returned invitations to those for a - * specific user. This may be the unique identifier for the user or an alias. - * The supported aliases are: * the e-mail address of the user * the string - * literal `"me"`, indicating the requesting user - * @opt_param int pageSize The maximum number of items to return. Zero means no + * specific user. The identifier can be one of the following: * the numeric + * identifier for the user * the email address of the user * the string literal + * `"me"`, indicating the requesting user + * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListInvitationsResponse */ @@ -996,10 +1040,11 @@ class Google_Service_Classroom_UserProfiles_Resource extends Google_Service_Reso /** * Returns a user profile. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to access this - * user profile. * `NOT_FOUND` if the profile does not exist. (userProfiles.get) + * user profile or if no profile exists with the requested ID or for [general + * user permission errors][User Permission Errors]. (userProfiles.get) * - * @param string $userId Identifier of the profile to return, or an alias the - * identifies the user. The following aliases are supported: * the e-mail + * @param string $userId Identifier of the profile to return. The identifier can + * be one of the following: * the numeric identifier for the user * the email * address of the user * the string literal `"me"`, indicating the requesting * user * @param array $optParams Optional parameters. diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index ddc65a607..cd07aa65b 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -30,6 +30,9 @@ */ class Google_Service_CloudMonitoring extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ const MONITORING = "https://www.googleapis.com/auth/monitoring"; diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php index 4bc63e9c3..d310a30c3 100644 --- a/src/Google/Service/CloudUserAccounts.php +++ b/src/Google/Service/CloudUserAccounts.php @@ -33,18 +33,15 @@ class Google_Service_CloudUserAccounts extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** Manage your Google Cloud User Accounts. */ const CLOUD_USERACCOUNTS = "https://www.googleapis.com/auth/cloud.useraccounts"; /** View your Google Cloud User Accounts. */ const CLOUD_USERACCOUNTS_READONLY = "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; - /** Manage your Google Compute Accounts. */ - const COMPUTEACCOUNTS = - "https://www.googleapis.com/auth/computeaccounts"; - /** View your Google Compute Accounts. */ - const COMPUTEACCOUNTS_READONLY = - "https://www.googleapis.com/auth/computeaccounts.readonly"; public $globalAccountsOperations; public $groups; @@ -182,6 +179,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/groups/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/groups', 'httpMethod' => 'POST', @@ -233,6 +245,36 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/groups/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/global/groups/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -267,6 +309,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'login' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'getLinuxAccountViews' => array( 'path' => '{project}/zones/{zone}/linuxAccountViews', @@ -303,10 +349,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'user' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -363,6 +405,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/users/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/users', 'httpMethod' => 'POST', @@ -419,6 +476,36 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/users/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/global/users/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -475,20 +562,18 @@ public function get($project, $operation, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -570,6 +655,22 @@ public function get($project, $groupName, $optParams = array()) return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (groups.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); + } + /** * Creates a Group resource in the specified project using the data included in * the request. (groups.insert) @@ -594,20 +695,18 @@ public function insert($project, Google_Service_CloudUserAccounts_Group $postBod * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -646,6 +745,40 @@ public function removeMember($project, $groupName, Google_Service_CloudUserAccou $params = array_merge($params, $optParams); return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation"); } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (groups.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param Google_Policy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (groups.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param Google_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_TestPermissionsResponse + */ + public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse"); + } } /** @@ -670,6 +803,9 @@ class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Res * @param string $instance The fully-qualified URL of the virtual machine * requesting the view. * @param array $optParams Optional parameters. + * + * @opt_param bool login Whether the view was requested as part of a user- + * initiated login. * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse */ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) @@ -704,22 +840,18 @@ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optPar * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. - * @opt_param string user If provided, the user requesting the views. If left - * blank, the system is requesting the views, instead of a particular user. + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse */ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) @@ -788,6 +920,22 @@ public function get($project, $user, $optParams = array()) return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (users.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); + } + /** * Creates a User resource in the specified project using the data included in * the request. (users.insert) @@ -812,20 +960,18 @@ public function insert($project, Google_Service_CloudUserAccounts_User $postBody * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must contain - * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: - * The name of the field you want to compare. The field name must be valid for - * the type of resource being filtered. Only atomic field types are supported - * (string, number, boolean). Array and object fields are not currently - * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or - * ne (not equals). - LITERAL_STRING: The literal string value to filter to. - * The literal value must be valid for the type of field (string, number, - * boolean). For string fields, the literal value is interpreted as a regular - * expression using RE2 syntax. The literal value must match the entire field. - * For example, you can filter by the name of a resource: filter=name ne - * example-instance The above filter returns only results whose name field does - * not equal example-instance. You can also enclose your literal string in - * single, double, or no quotes. + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -866,6 +1012,40 @@ public function removePublicKey($project, $user, $fingerprint, $optParams = arra $params = array_merge($params, $optParams); return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (users.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param Google_Policy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (users.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $resource Name of the resource for this request. + * @param Google_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudUserAccounts_TestPermissionsResponse + */ + public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse"); + } } @@ -877,6 +1057,7 @@ class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collect protected $internal_gapi_mappings = array( ); public $keys; + public $sudoer; public function setKeys($keys) @@ -887,6 +1068,104 @@ public function getKeys() { return $this->keys; } + public function setSudoer($sudoer) + { + $this->sudoer = $sudoer; + } + public function getSudoer() + { + return $this->sudoer; + } +} + +class Google_Service_CloudUserAccounts_Binding extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $members; + public $role; + + + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} + +class Google_Service_CloudUserAccounts_Condition extends Google_Collection +{ + protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); + public $iam; + public $op; + public $svc; + public $sys; + public $value; + public $values; + + + public function setIam($iam) + { + $this->iam = $iam; + } + public function getIam() + { + return $this->iam; + } + public function setOp($op) + { + $this->op = $op; + } + public function getOp() + { + return $this->op; + } + public function setSvc($svc) + { + $this->svc = $svc; + } + public function getSvc() + { + return $this->svc; + } + public function setSys($sys) + { + $this->sys = $sys; + } + public function getSys() + { + return $this->sys; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } } class Google_Service_CloudUserAccounts_Group extends Google_Collection @@ -1224,6 +1503,50 @@ public function getUsername() } } +class Google_Service_CloudUserAccounts_LogConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $counterType = 'Google_Service_CloudUserAccounts_LogConfigCounterOptions'; + protected $counterDataType = ''; + + + public function setCounter(Google_Service_CloudUserAccounts_LogConfigCounterOptions $counter) + { + $this->counter = $counter; + } + public function getCounter() + { + return $this->counter; + } +} + +class Google_Service_CloudUserAccounts_LogConfigCounterOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $field; + public $metric; + + + public function setField($field) + { + $this->field = $field; + } + public function getField() + { + return $this->field; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } +} + class Google_Service_CloudUserAccounts_Operation extends Google_Collection { protected $collection_key = 'warnings'; @@ -1605,6 +1928,53 @@ public function getValue() } } +class Google_Service_CloudUserAccounts_Policy extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + protected $bindingsType = 'Google_Service_CloudUserAccounts_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + protected $rulesType = 'Google_Service_CloudUserAccounts_Rule'; + protected $rulesDataType = 'array'; + public $version; + + + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setRules($rules) + { + $this->rules = $rules; + } + public function getRules() + { + return $this->rules; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + class Google_Service_CloudUserAccounts_PublicKey extends Google_Model { protected $internal_gapi_mappings = array( @@ -1658,6 +2028,116 @@ public function getKey() } } +class Google_Service_CloudUserAccounts_Rule extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $action; + protected $conditionsType = 'Google_Service_CloudUserAccounts_Condition'; + protected $conditionsDataType = 'array'; + public $description; + public $ins; + protected $logConfigsType = 'Google_Service_CloudUserAccounts_LogConfig'; + protected $logConfigsDataType = 'array'; + public $notIns; + public $permissions; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + public function getConditions() + { + return $this->conditions; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIns($ins) + { + $this->ins = $ins; + } + public function getIns() + { + return $this->ins; + } + public function setLogConfigs($logConfigs) + { + $this->logConfigs = $logConfigs; + } + public function getLogConfigs() + { + return $this->logConfigs; + } + public function setNotIns($notIns) + { + $this->notIns = $notIns; + } + public function getNotIns() + { + return $this->notIns; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_CloudUserAccounts_TestPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_CloudUserAccounts_TestPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + class Google_Service_CloudUserAccounts_User extends Google_Collection { protected $collection_key = 'publicKeys'; diff --git a/src/Google/Service/Cloudbilling.php b/src/Google/Service/Cloudbilling.php new file mode 100644 index 000000000..bdaa04f3e --- /dev/null +++ b/src/Google/Service/Cloudbilling.php @@ -0,0 +1,446 @@ + + * Retrieves Google Developers Console billing accounts and associates them with + * projects.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudbilling extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $billingAccounts; + public $billingAccounts_projects; + public $projects; + + + /** + * Constructs the internal representation of the Cloudbilling service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudbilling.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudbilling'; + + $this->billingAccounts = new Google_Service_Cloudbilling_BillingAccounts_Resource( + $this, + $this->serviceName, + 'billingAccounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/billingAccounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->billingAccounts_projects = new Google_Service_Cloudbilling_BillingAccountsProjects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+name}/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Cloudbilling_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'getBillingInfo' => array( + 'path' => 'v1/{+name}/billingInfo', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updateBillingInfo' => array( + 'path' => 'v1/{+name}/billingInfo', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "billingAccounts" collection of methods. + * Typical usage is: + * + * $cloudbillingService = new Google_Service_Cloudbilling(...); + * $billingAccounts = $cloudbillingService->billingAccounts; + * + */ +class Google_Service_Cloudbilling_BillingAccounts_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a billing account. The current authenticated user must + * be an [owner of the billing + * account](https://support.google.com/cloud/answer/4430947). + * (billingAccounts.get) + * + * @param string $name The resource name of the billing account to retrieve. For + * example, `billingAccounts/012345-567890-ABCDEF`. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbilling_BillingAccount + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudbilling_BillingAccount"); + } + + /** + * Lists the billing accounts that the current authenticated user + * [owns](https://support.google.com/cloud/answer/4430947). + * (billingAccounts.listBillingAccounts) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results to return. + * This should be a `next_page_token` value returned from a previous + * `ListBillingAccounts` call. If unspecified, the first page of results is + * returned. + * @opt_param int pageSize Requested page size. The maximum page size is 100; + * this is also the default. + * @return Google_Service_Cloudbilling_ListBillingAccountsResponse + */ + public function listBillingAccounts($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudbilling_ListBillingAccountsResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudbillingService = new Google_Service_Cloudbilling(...); + * $projects = $cloudbillingService->projects; + * + */ +class Google_Service_Cloudbilling_BillingAccountsProjects_Resource extends Google_Service_Resource +{ + + /** + * Lists the projects associated with a billing account. The current + * authenticated user must be an [owner of the billing + * account](https://support.google.com/cloud/answer/4430947). + * (projects.listBillingAccountsProjects) + * + * @param string $name The resource name of the billing account associated with + * the projects that you want to list. For example, + * `billingAccounts/012345-567890-ABCDEF`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results to be + * returned. This should be a `next_page_token` value returned from a previous + * `ListProjectBillingInfo` call. If unspecified, the first page of results is + * returned. + * @opt_param int pageSize Requested page size. The maximum page size is 100; + * this is also the default. + * @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse + */ + public function listBillingAccountsProjects($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudbilling_ListProjectBillingInfoResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudbillingService = new Google_Service_Cloudbilling(...); + * $projects = $cloudbillingService->projects; + * + */ +class Google_Service_Cloudbilling_Projects_Resource extends Google_Service_Resource +{ + + /** + * Gets the billing information for a project. The current authenticated user + * must have [permission to view the project](https://cloud.google.com/docs + * /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo) + * + * @param string $name The resource name of the project for which billing + * information is retrieved. For example, `projects/tokyo-rain-123`. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbilling_ProjectBillingInfo + */ + public function getBillingInfo($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo"); + } + + /** + * Sets or updates the billing account associated with a project. You specify + * the new billing account by setting the `billing_account_name` in the + * `ProjectBillingInfo` resource to the resource name of a billing account. + * Associating a project with an open billing account enables billing on the + * project and allows charges for resource usage. If the project already had a + * billing account, this method changes the billing account used for resource + * usage charges. *Note:* Incurred charges that have not yet been reported in + * the transaction history of the Google Developers Console may be billed to the + * new billing account, even if the charge occurred before the new billing + * account was assigned to the project. The current authenticated user must have + * ownership privileges for both the [project](https://cloud.google.com/docs + * /permissions-overview#h.bgs0oxofvnoo ) and the [billing + * account](https://support.google.com/cloud/answer/4430947). You can disable + * billing on the project by setting the `billing_account_name` field to empty. + * This action disassociates the current billing account from the project. Any + * billable activity of your in-use services will stop, and your application + * could stop functioning as expected. Any unbilled charges to date will be + * billed to the previously associated account. The current authenticated user + * must be either an owner of the project or an owner of the billing account for + * the project. Note that associating a project with a *closed* billing account + * will have much the same effect as disabling billing on the project: any paid + * resources used by the project will be shut down. Thus, unless you wish to + * disable billing, you should always call this method with the name of an + * *open* billing account. (projects.updateBillingInfo) + * + * @param string $name The resource name of the project associated with the + * billing information that you want to update. For example, `projects/tokyo- + * rain-123`. + * @param Google_ProjectBillingInfo $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbilling_ProjectBillingInfo + */ + public function updateBillingInfo($name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo"); + } +} + + + + +class Google_Service_Cloudbilling_BillingAccount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $name; + public $open; + + + 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 setOpen($open) + { + $this->open = $open; + } + public function getOpen() + { + return $this->open; + } +} + +class Google_Service_Cloudbilling_ListBillingAccountsResponse extends Google_Collection +{ + protected $collection_key = 'billingAccounts'; + protected $internal_gapi_mappings = array( + ); + protected $billingAccountsType = 'Google_Service_Cloudbilling_BillingAccount'; + protected $billingAccountsDataType = 'array'; + public $nextPageToken; + + + public function setBillingAccounts($billingAccounts) + { + $this->billingAccounts = $billingAccounts; + } + public function getBillingAccounts() + { + return $this->billingAccounts; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudbilling_ListProjectBillingInfoResponse extends Google_Collection +{ + protected $collection_key = 'projectBillingInfo'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $projectBillingInfoType = 'Google_Service_Cloudbilling_ProjectBillingInfo'; + protected $projectBillingInfoDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setProjectBillingInfo($projectBillingInfo) + { + $this->projectBillingInfo = $projectBillingInfo; + } + public function getProjectBillingInfo() + { + return $this->projectBillingInfo; + } +} + +class Google_Service_Cloudbilling_ProjectBillingInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $billingAccountName; + public $billingEnabled; + public $name; + public $projectId; + + + public function setBillingAccountName($billingAccountName) + { + $this->billingAccountName = $billingAccountName; + } + public function getBillingAccountName() + { + return $this->billingAccountName; + } + public function setBillingEnabled($billingEnabled) + { + $this->billingEnabled = $billingEnabled; + } + public function getBillingEnabled() + { + return $this->billingEnabled; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} diff --git a/src/Google/Service/Clouddebugger.php b/src/Google/Service/Clouddebugger.php new file mode 100644 index 000000000..e9cda4495 --- /dev/null +++ b/src/Google/Service/Clouddebugger.php @@ -0,0 +1,1343 @@ + + * Lets you examine the stack and variables of your running application without + * stopping or slowing it down.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Clouddebugger extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage cloud debugger. */ + const CLOUD_DEBUGGER = + "https://www.googleapis.com/auth/cloud_debugger"; + /** Manage active breakpoints in cloud debugger. */ + const CLOUD_DEBUGLETCONTROLLER = + "https://www.googleapis.com/auth/cloud_debugletcontroller"; + + public $controller_debuggees; + public $controller_debuggees_breakpoints; + public $debugger_debuggees; + public $debugger_debuggees_breakpoints; + + + /** + * Constructs the internal representation of the Clouddebugger service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://clouddebugger.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v2'; + $this->serviceName = 'clouddebugger'; + + $this->controller_debuggees = new Google_Service_Clouddebugger_ControllerDebuggees_Resource( + $this, + $this->serviceName, + 'debuggees', + array( + 'methods' => array( + 'register' => array( + 'path' => 'v2/controller/debuggees/register', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->controller_debuggees_breakpoints = new Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource( + $this, + $this->serviceName, + 'breakpoints', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints', + 'httpMethod' => 'GET', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'waitToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->debugger_debuggees = new Google_Service_Clouddebugger_DebuggerDebuggees_Resource( + $this, + $this->serviceName, + 'debuggees', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/debugger/debuggees', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->debugger_debuggees_breakpoints = new Google_Service_Clouddebugger_DebuggerDebuggeesBreakpoints_Resource( + $this, + $this->serviceName, + 'breakpoints', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'breakpointId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'breakpointId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints', + 'httpMethod' => 'GET', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeAllUsers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'stripResults' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'action.value' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'waitToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'set' => array( + 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'debuggeeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "controller" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $controller = $clouddebuggerService->controller; + * + */ +class Google_Service_Clouddebugger_Controller_Resource extends Google_Service_Resource +{ +} + +/** + * The "debuggees" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $debuggees = $clouddebuggerService->debuggees; + * + */ +class Google_Service_Clouddebugger_ControllerDebuggees_Resource extends Google_Service_Resource +{ + + /** + * Registers the debuggee with the controller. All agents should call this API + * with the same request content to get back the same stable 'debuggee_id'. + * Agents should call this API again whenever ListActiveBreakpoints or + * UpdateActiveBreakpoint return the error google.rpc.Code.NOT_FOUND. It allows + * the server to disable the agent or recover from any registration loss. If the + * debuggee is disabled server, the response will have is_disabled' set to true. + * (debuggees.register) + * + * @param Google_RegisterDebuggeeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Clouddebugger_RegisterDebuggeeResponse + */ + public function register(Google_Service_Clouddebugger_RegisterDebuggeeRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('register', array($params), "Google_Service_Clouddebugger_RegisterDebuggeeResponse"); + } +} + +/** + * The "breakpoints" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $breakpoints = $clouddebuggerService->breakpoints; + * + */ +class Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource extends Google_Service_Resource +{ + + /** + * Returns the list of all active breakpoints for the specified debuggee. The + * breakpoint specification (location, condition, and expression fields) is + * semantically immutable, although the field values may change. For example, an + * agent may update the location line number to reflect the actual line the + * breakpoint was set to, but that doesn't change the breakpoint semantics. + * Thus, an agent does not need to check if a breakpoint has changed when it + * encounters the same breakpoint on a successive call. Moreover, an agent + * should remember breakpoints that are complete until the controller removes + * them from the active list to avoid setting those breakpoints again. + * (breakpoints.listControllerDebuggeesBreakpoints) + * + * @param string $debuggeeId Identifies the debuggee. + * @param array $optParams Optional parameters. + * + * @opt_param string waitToken A wait token that, if specified, blocks the + * method call until the list of active breakpoints has changed, or a server + * selected timeout has expired. The value should be set from the last returned + * response. The error code google.rpc.Code.ABORTED is returned on wait timeout + * (which does not require the agent to re-register with the server) + * @return Google_Service_Clouddebugger_ListActiveBreakpointsResponse + */ + public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Clouddebugger_ListActiveBreakpointsResponse"); + } + + /** + * Updates the breakpoint state or mutable fields. The entire Breakpoint + * protobuf must be sent back to the controller. Updates to active breakpoint + * fields are only allowed if the new value does not change the breakpoint + * specification. Updates to the 'location', 'condition' and 'expression' fields + * should not alter the breakpoint semantics. They are restricted to changes + * such as canonicalizing a value or snapping the location to the correct line + * of code. (breakpoints.update) + * + * @param string $debuggeeId Identifies the debuggee being debugged. + * @param string $id Breakpoint identifier, unique in the scope of the debuggee. + * @param Google_UpdateActiveBreakpointRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Clouddebugger_UpdateActiveBreakpointResponse + */ + public function update($debuggeeId, $id, Google_Service_Clouddebugger_UpdateActiveBreakpointRequest $postBody, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Clouddebugger_UpdateActiveBreakpointResponse"); + } +} + +/** + * The "debugger" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $debugger = $clouddebuggerService->debugger; + * + */ +class Google_Service_Clouddebugger_Debugger_Resource extends Google_Service_Resource +{ +} + +/** + * The "debuggees" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $debuggees = $clouddebuggerService->debuggees; + * + */ +class Google_Service_Clouddebugger_DebuggerDebuggees_Resource extends Google_Service_Resource +{ + + /** + * Lists all the debuggees that the user can set breakpoints to. + * (debuggees.listDebuggerDebuggees) + * + * @param array $optParams Optional parameters. + * + * @opt_param string project Set to the project number of the Google Cloud + * Platform to list the debuggees that are part of that project. + * @opt_param bool includeInactive When set to true the result includes all + * debuggees, otherwise only debugees that are active. + * @return Google_Service_Clouddebugger_ListDebuggeesResponse + */ + public function listDebuggerDebuggees($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Clouddebugger_ListDebuggeesResponse"); + } +} + +/** + * The "breakpoints" collection of methods. + * Typical usage is: + * + * $clouddebuggerService = new Google_Service_Clouddebugger(...); + * $breakpoints = $clouddebuggerService->breakpoints; + * + */ +class Google_Service_Clouddebugger_DebuggerDebuggeesBreakpoints_Resource extends Google_Service_Resource +{ + + /** + * Deletes the breakpoint from the debuggee. (breakpoints.delete) + * + * @param string $debuggeeId The debuggee id to delete the breakpoint from. + * @param string $breakpointId The breakpoint to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Clouddebugger_Empty + */ + public function delete($debuggeeId, $breakpointId, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Clouddebugger_Empty"); + } + + /** + * Gets breakpoint information. (breakpoints.get) + * + * @param string $debuggeeId The debuggee id to get the breakpoint from. + * @param string $breakpointId The breakpoint to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Clouddebugger_GetBreakpointResponse + */ + public function get($debuggeeId, $breakpointId, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Clouddebugger_GetBreakpointResponse"); + } + + /** + * Lists all breakpoints of the debuggee that the user has access to. + * (breakpoints.listDebuggerDebuggeesBreakpoints) + * + * @param string $debuggeeId The debuggee id to list breakpoint from. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeAllUsers When set to true the response includes the + * list of breakpoints set by any user, otherwise only breakpoints set by the + * caller. + * @opt_param bool stripResults When set to true the response breakpoints will + * be stripped of the results fields: stack_frames, evaluated_expressions and + * variable_table. + * @opt_param string action.value Only breakpoints with the specified action + * will pass the filter. + * @opt_param bool includeInactive When set to true the response includes active + * and inactive breakpoints, otherwise only active breakpoints are returned. + * @opt_param string waitToken A wait token that, if specified, blocks the call + * until the breakpoints list has changed, or a server selected timeout has + * expired. The value should be set from the last response to ListBreakpoints. + * The error code ABORTED is returned on wait timeout, which should be called + * again with the same wait_token. + * @return Google_Service_Clouddebugger_ListBreakpointsResponse + */ + public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Clouddebugger_ListBreakpointsResponse"); + } + + /** + * Sets the breakpoint to the debuggee. (breakpoints.set) + * + * @param string $debuggeeId The debuggee id to set the breakpoint to. + * @param Google_Breakpoint $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Clouddebugger_SetBreakpointResponse + */ + public function set($debuggeeId, Google_Service_Clouddebugger_Breakpoint $postBody, $optParams = array()) + { + $params = array('debuggeeId' => $debuggeeId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_Clouddebugger_SetBreakpointResponse"); + } +} + + + + +class Google_Service_Clouddebugger_Breakpoint extends Google_Collection +{ + protected $collection_key = 'variableTable'; + protected $internal_gapi_mappings = array( + ); + public $action; + public $condition; + public $createTime; + protected $evaluatedExpressionsType = 'Google_Service_Clouddebugger_Variable'; + protected $evaluatedExpressionsDataType = 'array'; + public $expressions; + public $finalTime; + public $id; + public $isFinalState; + protected $locationType = 'Google_Service_Clouddebugger_SourceLocation'; + protected $locationDataType = ''; + public $logLevel; + public $logMessageFormat; + protected $stackFramesType = 'Google_Service_Clouddebugger_StackFrame'; + protected $stackFramesDataType = 'array'; + protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; + protected $statusDataType = ''; + public $userEmail; + protected $variableTableType = 'Google_Service_Clouddebugger_Variable'; + protected $variableTableDataType = 'array'; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setCondition($condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEvaluatedExpressions($evaluatedExpressions) + { + $this->evaluatedExpressions = $evaluatedExpressions; + } + public function getEvaluatedExpressions() + { + return $this->evaluatedExpressions; + } + public function setExpressions($expressions) + { + $this->expressions = $expressions; + } + public function getExpressions() + { + return $this->expressions; + } + public function setFinalTime($finalTime) + { + $this->finalTime = $finalTime; + } + public function getFinalTime() + { + return $this->finalTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIsFinalState($isFinalState) + { + $this->isFinalState = $isFinalState; + } + public function getIsFinalState() + { + return $this->isFinalState; + } + public function setLocation(Google_Service_Clouddebugger_SourceLocation $location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setLogLevel($logLevel) + { + $this->logLevel = $logLevel; + } + public function getLogLevel() + { + return $this->logLevel; + } + public function setLogMessageFormat($logMessageFormat) + { + $this->logMessageFormat = $logMessageFormat; + } + public function getLogMessageFormat() + { + return $this->logMessageFormat; + } + public function setStackFrames($stackFrames) + { + $this->stackFrames = $stackFrames; + } + public function getStackFrames() + { + return $this->stackFrames; + } + public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUserEmail($userEmail) + { + $this->userEmail = $userEmail; + } + public function getUserEmail() + { + return $this->userEmail; + } + public function setVariableTable($variableTable) + { + $this->variableTable = $variableTable; + } + public function getVariableTable() + { + return $this->variableTable; + } +} + +class Google_Service_Clouddebugger_CloudRepoSourceContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aliasName; + protected $repoIdType = 'Google_Service_Clouddebugger_RepoId'; + protected $repoIdDataType = ''; + public $revisionId; + + + public function setAliasName($aliasName) + { + $this->aliasName = $aliasName; + } + public function getAliasName() + { + return $this->aliasName; + } + public function setRepoId(Google_Service_Clouddebugger_RepoId $repoId) + { + $this->repoId = $repoId; + } + public function getRepoId() + { + return $this->repoId; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } +} + +class Google_Service_Clouddebugger_CloudWorkspaceId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + protected $repoIdType = 'Google_Service_Clouddebugger_RepoId'; + protected $repoIdDataType = ''; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRepoId(Google_Service_Clouddebugger_RepoId $repoId) + { + $this->repoId = $repoId; + } + public function getRepoId() + { + return $this->repoId; + } +} + +class Google_Service_Clouddebugger_CloudWorkspaceSourceContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $snapshotId; + protected $workspaceIdType = 'Google_Service_Clouddebugger_CloudWorkspaceId'; + protected $workspaceIdDataType = ''; + + + public function setSnapshotId($snapshotId) + { + $this->snapshotId = $snapshotId; + } + public function getSnapshotId() + { + return $this->snapshotId; + } + public function setWorkspaceId(Google_Service_Clouddebugger_CloudWorkspaceId $workspaceId) + { + $this->workspaceId = $workspaceId; + } + public function getWorkspaceId() + { + return $this->workspaceId; + } +} + +class Google_Service_Clouddebugger_Debuggee extends Google_Collection +{ + protected $collection_key = 'sourceContexts'; + protected $internal_gapi_mappings = array( + ); + public $agentVersion; + public $description; + public $id; + public $isDisabled; + public $isInactive; + public $labels; + public $project; + protected $sourceContextsType = 'Google_Service_Clouddebugger_SourceContext'; + protected $sourceContextsDataType = 'array'; + protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; + protected $statusDataType = ''; + public $uniquifier; + + + public function setAgentVersion($agentVersion) + { + $this->agentVersion = $agentVersion; + } + public function getAgentVersion() + { + return $this->agentVersion; + } + 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 setIsDisabled($isDisabled) + { + $this->isDisabled = $isDisabled; + } + public function getIsDisabled() + { + return $this->isDisabled; + } + public function setIsInactive($isInactive) + { + $this->isInactive = $isInactive; + } + public function getIsInactive() + { + return $this->isInactive; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } + public function setSourceContexts($sourceContexts) + { + $this->sourceContexts = $sourceContexts; + } + public function getSourceContexts() + { + return $this->sourceContexts; + } + public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUniquifier($uniquifier) + { + $this->uniquifier = $uniquifier; + } + public function getUniquifier() + { + return $this->uniquifier; + } +} + +class Google_Service_Clouddebugger_DebuggeeLabels extends Google_Model +{ +} + +class Google_Service_Clouddebugger_Empty extends Google_Model +{ +} + +class Google_Service_Clouddebugger_FormatMessage extends Google_Collection +{ + protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); + public $format; + public $parameters; + + + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + public function getParameters() + { + return $this->parameters; + } +} + +class Google_Service_Clouddebugger_GerritSourceContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aliasName; + public $gerritProject; + public $hostUri; + public $revisionId; + + + public function setAliasName($aliasName) + { + $this->aliasName = $aliasName; + } + public function getAliasName() + { + return $this->aliasName; + } + public function setGerritProject($gerritProject) + { + $this->gerritProject = $gerritProject; + } + public function getGerritProject() + { + return $this->gerritProject; + } + public function setHostUri($hostUri) + { + $this->hostUri = $hostUri; + } + public function getHostUri() + { + return $this->hostUri; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } +} + +class Google_Service_Clouddebugger_GetBreakpointResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; + protected $breakpointDataType = ''; + + + public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) + { + $this->breakpoint = $breakpoint; + } + public function getBreakpoint() + { + return $this->breakpoint; + } +} + +class Google_Service_Clouddebugger_GitSourceContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $revisionId; + public $url; + + + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Clouddebugger_ListActiveBreakpointsResponse extends Google_Collection +{ + protected $collection_key = 'breakpoints'; + protected $internal_gapi_mappings = array( + ); + protected $breakpointsType = 'Google_Service_Clouddebugger_Breakpoint'; + protected $breakpointsDataType = 'array'; + public $nextWaitToken; + + + public function setBreakpoints($breakpoints) + { + $this->breakpoints = $breakpoints; + } + public function getBreakpoints() + { + return $this->breakpoints; + } + public function setNextWaitToken($nextWaitToken) + { + $this->nextWaitToken = $nextWaitToken; + } + public function getNextWaitToken() + { + return $this->nextWaitToken; + } +} + +class Google_Service_Clouddebugger_ListBreakpointsResponse extends Google_Collection +{ + protected $collection_key = 'breakpoints'; + protected $internal_gapi_mappings = array( + ); + protected $breakpointsType = 'Google_Service_Clouddebugger_Breakpoint'; + protected $breakpointsDataType = 'array'; + public $nextWaitToken; + + + public function setBreakpoints($breakpoints) + { + $this->breakpoints = $breakpoints; + } + public function getBreakpoints() + { + return $this->breakpoints; + } + public function setNextWaitToken($nextWaitToken) + { + $this->nextWaitToken = $nextWaitToken; + } + public function getNextWaitToken() + { + return $this->nextWaitToken; + } +} + +class Google_Service_Clouddebugger_ListDebuggeesResponse extends Google_Collection +{ + protected $collection_key = 'debuggees'; + protected $internal_gapi_mappings = array( + ); + protected $debuggeesType = 'Google_Service_Clouddebugger_Debuggee'; + protected $debuggeesDataType = 'array'; + + + public function setDebuggees($debuggees) + { + $this->debuggees = $debuggees; + } + public function getDebuggees() + { + return $this->debuggees; + } +} + +class Google_Service_Clouddebugger_ProjectRepoId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $projectId; + public $repoName; + + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRepoName($repoName) + { + $this->repoName = $repoName; + } + public function getRepoName() + { + return $this->repoName; + } +} + +class Google_Service_Clouddebugger_RegisterDebuggeeRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $debuggeeType = 'Google_Service_Clouddebugger_Debuggee'; + protected $debuggeeDataType = ''; + + + public function setDebuggee(Google_Service_Clouddebugger_Debuggee $debuggee) + { + $this->debuggee = $debuggee; + } + public function getDebuggee() + { + return $this->debuggee; + } +} + +class Google_Service_Clouddebugger_RegisterDebuggeeResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $debuggeeType = 'Google_Service_Clouddebugger_Debuggee'; + protected $debuggeeDataType = ''; + + + public function setDebuggee(Google_Service_Clouddebugger_Debuggee $debuggee) + { + $this->debuggee = $debuggee; + } + public function getDebuggee() + { + return $this->debuggee; + } +} + +class Google_Service_Clouddebugger_RepoId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $projectRepoIdType = 'Google_Service_Clouddebugger_ProjectRepoId'; + protected $projectRepoIdDataType = ''; + public $uid; + + + public function setProjectRepoId(Google_Service_Clouddebugger_ProjectRepoId $projectRepoId) + { + $this->projectRepoId = $projectRepoId; + } + public function getProjectRepoId() + { + return $this->projectRepoId; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } +} + +class Google_Service_Clouddebugger_SetBreakpointResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; + protected $breakpointDataType = ''; + + + public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) + { + $this->breakpoint = $breakpoint; + } + public function getBreakpoint() + { + return $this->breakpoint; + } +} + +class Google_Service_Clouddebugger_SourceContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cloudRepoType = 'Google_Service_Clouddebugger_CloudRepoSourceContext'; + protected $cloudRepoDataType = ''; + protected $cloudWorkspaceType = 'Google_Service_Clouddebugger_CloudWorkspaceSourceContext'; + protected $cloudWorkspaceDataType = ''; + protected $gerritType = 'Google_Service_Clouddebugger_GerritSourceContext'; + protected $gerritDataType = ''; + protected $gitType = 'Google_Service_Clouddebugger_GitSourceContext'; + protected $gitDataType = ''; + + + public function setCloudRepo(Google_Service_Clouddebugger_CloudRepoSourceContext $cloudRepo) + { + $this->cloudRepo = $cloudRepo; + } + public function getCloudRepo() + { + return $this->cloudRepo; + } + public function setCloudWorkspace(Google_Service_Clouddebugger_CloudWorkspaceSourceContext $cloudWorkspace) + { + $this->cloudWorkspace = $cloudWorkspace; + } + public function getCloudWorkspace() + { + return $this->cloudWorkspace; + } + public function setGerrit(Google_Service_Clouddebugger_GerritSourceContext $gerrit) + { + $this->gerrit = $gerrit; + } + public function getGerrit() + { + return $this->gerrit; + } + public function setGit(Google_Service_Clouddebugger_GitSourceContext $git) + { + $this->git = $git; + } + public function getGit() + { + return $this->git; + } +} + +class Google_Service_Clouddebugger_SourceLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $line; + public $path; + + + public function setLine($line) + { + $this->line = $line; + } + public function getLine() + { + return $this->line; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} + +class Google_Service_Clouddebugger_StackFrame extends Google_Collection +{ + protected $collection_key = 'locals'; + protected $internal_gapi_mappings = array( + ); + protected $argumentsType = 'Google_Service_Clouddebugger_Variable'; + protected $argumentsDataType = 'array'; + public $function; + protected $localsType = 'Google_Service_Clouddebugger_Variable'; + protected $localsDataType = 'array'; + protected $locationType = 'Google_Service_Clouddebugger_SourceLocation'; + protected $locationDataType = ''; + + + public function setArguments($arguments) + { + $this->arguments = $arguments; + } + public function getArguments() + { + return $this->arguments; + } + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setLocals($locals) + { + $this->locals = $locals; + } + public function getLocals() + { + return $this->locals; + } + public function setLocation(Google_Service_Clouddebugger_SourceLocation $location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } +} + +class Google_Service_Clouddebugger_StatusMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $descriptionType = 'Google_Service_Clouddebugger_FormatMessage'; + protected $descriptionDataType = ''; + public $isError; + public $refersTo; + + + public function setDescription(Google_Service_Clouddebugger_FormatMessage $description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIsError($isError) + { + $this->isError = $isError; + } + public function getIsError() + { + return $this->isError; + } + public function setRefersTo($refersTo) + { + $this->refersTo = $refersTo; + } + public function getRefersTo() + { + return $this->refersTo; + } +} + +class Google_Service_Clouddebugger_UpdateActiveBreakpointRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; + protected $breakpointDataType = ''; + + + public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) + { + $this->breakpoint = $breakpoint; + } + public function getBreakpoint() + { + return $this->breakpoint; + } +} + +class Google_Service_Clouddebugger_UpdateActiveBreakpointResponse extends Google_Model +{ +} + +class Google_Service_Clouddebugger_Variable extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + protected $membersType = 'Google_Service_Clouddebugger_Variable'; + protected $membersDataType = 'array'; + public $name; + protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; + protected $statusDataType = ''; + public $value; + public $varTableIndex; + + + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } + public function setVarTableIndex($varTableIndex) + { + $this->varTableIndex = $varTableIndex; + } + public function getVarTableIndex() + { + return $this->varTableIndex; + } +} diff --git a/src/Google/Service/Cloudresourcemanager.php b/src/Google/Service/Cloudresourcemanager.php index edb58e90e..9d26a1d69 100644 --- a/src/Google/Service/Cloudresourcemanager.php +++ b/src/Google/Service/Cloudresourcemanager.php @@ -20,10 +20,7 @@ * *

* The Google Cloud Resource Manager API provides methods for creating, reading, - * and updating of project metadata, including IAM policies, and will shortly - * provide the same for other high-level entities (e.g. customers and resource - * groups). Longer term, we expect the cloudresourcemanager API to encompass - * other Cloud resources as well.

+ * and updating of project metadata.

* *

* For more information about this service, see the API @@ -38,6 +35,7 @@ class Google_Service_Cloudresourcemanager extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + public $organizations; public $projects; @@ -54,6 +52,83 @@ public function __construct(Google_Client $client) $this->version = 'v1beta1'; $this->serviceName = 'cloudresourcemanager'; + $this->organizations = new Google_Service_Cloudresourcemanager_Organizations_Resource( + $this, + $this->serviceName, + 'organizations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta1/organizations/{organizationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'organizationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1beta1/organizations/{resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/organizations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1beta1/organizations/{resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1beta1/organizations/{resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta1/organizations/{organizationId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'organizationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource( $this, $this->serviceName, @@ -84,6 +159,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1beta1/projects/{resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1beta1/projects', 'httpMethod' => 'GET', @@ -101,6 +186,26 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), + ),'setIamPolicy' => array( + 'path' => 'v1beta1/projects/{resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1beta1/projects/{resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'undelete' => array( 'path' => 'v1beta1/projects/{projectId}:undelete', 'httpMethod' => 'POST', @@ -129,6 +234,131 @@ public function __construct(Google_Client $client) } +/** + * The "organizations" collection of methods. + * Typical usage is: + * + * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...); + * $organizations = $cloudresourcemanagerService->organizations; + * + */ +class Google_Service_Cloudresourcemanager_Organizations_Resource extends Google_Service_Resource +{ + + /** + * Fetches an Organization resource by id. (organizations.get) + * + * @param string $organizationId The id of the Organization resource to fetch. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Organization + */ + public function get($organizationId, $optParams = array()) + { + $params = array('organizationId' => $organizationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Organization"); + } + + /** + * Gets the access control policy for a Organization resource. May be empty if + * no such policy or resource exists. (organizations.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Policy + */ + public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); + } + + /** + * Query Organization resources. (organizations.listOrganizations) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter An optional query string used to filter the + * Organizations to be return in the response. Filter rules are case- + * insensitive. Organizations may be filtered by `owner.directoryCustomerId` or + * by `domain`, where the domain is a Google for Work domain, for example: + * |Filter|Description| |------|-----------| + * |owner.directorycustomerid:123456789|Organizations with + * `owner.directory_customer_id` equal to `123456789`.| + * |domain:google.com|Organizations corresponding to the domain `google.com`.| + * This field is optional. + * @opt_param string pageToken A pagination token returned from a previous call + * to ListOrganizations that indicates from where listing should continue. This + * field is optional. + * @opt_param int pageSize The maximum number of Organizations to return in the + * response. This field is optional. + * @return Google_Service_Cloudresourcemanager_ListOrganizationsResponse + */ + public function listOrganizations($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListOrganizationsResponse"); + } + + /** + * Sets the access control policy on a Organization resource. Replaces any + * existing policy. (organizations.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Policy + */ + public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); + } + + /** + * Returns permissions that a caller has on the specified Organization. + * (organizations.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. `resource` is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse"); + } + + /** + * Updates an Organization resource. (organizations.update) + * + * @param string $organizationId An immutable id for the Organization that is + * assigned on creation. This should be omitted when creating a new + * Organization. This field is read-only. + * @param Google_Organization $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Organization + */ + public function update($organizationId, Google_Service_Cloudresourcemanager_Organization $postBody, $optParams = array()) + { + $params = array('organizationId' => $organizationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Organization"); + } +} + /** * The "projects" collection of methods. * Typical usage is: @@ -159,27 +389,26 @@ public function create(Google_Service_Cloudresourcemanager_Project $postBody, $o /** * Marks the project identified by the specified `project_id` (for example, `my- - * project-123`) for deletion. This method will only affect the project if it - * has a lifecycle state of - * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when - * this method is called. Otherwise this method does nothing (since all other - * states are phases of deletion). This method changes the project's lifecycle - * state from - * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to - * [DELETE_REQUESTED] - * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The - * deletion starts at an unspecified time, at which point the lifecycle state - * changes to [DELETE_IN_PROGRESS] - * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS]. - * Until the deletion completes, you can check the lifecycle state checked by - * retrieving the project with [GetProject] - * [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project - * remains visible to [ListProjects] - * [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you - * cannot update the project. After the deletion completes, the project is not + * project-123`) for deletion. This method will only affect the project if the + * following criteria are met: + The project does not have a billing account + * associated with it. + The project has a lifecycle state of + * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. + * This method changes the project's lifecycle state from + * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] + * to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.Lifecycle + * State.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which + * point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresour + * cemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the + * deletion completes, you can check the lifecycle state checked by retrieving + * the project with [GetProject] + * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], + * and the project remains visible to [ListProjects] [google.cloudresourcemanage + * r.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot + * update the project. After the deletion completes, the project is not * retrievable by the [GetProject] - * [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and - * [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] + * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] + * and [ListProjects] + * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] * methods. The caller must have modify permissions for this project. * (projects.delete) * @@ -212,6 +441,24 @@ public function get($projectId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project"); } + /** + * Returns the IAM access control policy for specified project. + * (projects.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Policy + */ + public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); + } + /** * Lists projects that are visible to the user and satisfy the specified filter. * This method returns projects in an unspecified order. New projects do not @@ -221,13 +468,14 @@ public function get($projectId, $optParams = array()) * * @opt_param string filter An expression for filtering the results of the * request. Filter rules are case insensitive. The fields eligible for filtering - * are: name id labels. where is a the name of a label Examples: name:* ==> The - * project has a name. name:Howl ==> The project’s name is `Howl` or 'howl'. - * name:HOWL ==> Equivalent to above. NAME:howl ==> Equivalent to above. - * labels.color:* ==> The project has the label "color". labels.color:red ==> - * The project’s label `color` has the value `red`. labels.color:red - * label.size:big ==> The project's label `color` has the value `red` and its - * label `size` has the value `big`. Optional. + * are: + `name` + `id` + labels.key where *key* is the name of a label Some + * examples of using labels as filters: |Filter|Description| + * |------|-----------| |name:*|The project has a name.| |name:Howl|The + * project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.| + * |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label + * `color`.| |labels.color:red|The project's label `color` has the value `red`.| + * |labels.color:red label.size:big|The project's label `color` has the value + * `red` and its label `size` has the value `big`. Optional. * @opt_param string pageToken A pagination token returned from a previous call * to ListProject that indicates from where listing should continue. Note: * pagination is not yet supported; the server ignores this field. Optional. @@ -244,16 +492,53 @@ public function listProjects($optParams = array()) return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse"); } + /** + * Sets the IAM access control policy for the specified project. We do not + * currently support 'domain:' prefixed members in a Binding of a Policy. + * Calling this method requires enabling the App Engine Admin API. + * (projects.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Policy + */ + public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); + } + + /** + * Tests the specified permissions against the IAM access control policy for the + * specified project. (projects.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. `resource` is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse"); + } + /** * Restores the project identified by the specified `project_id` (for example, * `my-project-123`). You can only use this method for a project that has a - * lifecycle state of [DELETE_REQUESTED] - * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. - * After deletion starts, as indicated by a lifecycle state of - * [DELETE_IN_PROGRESS] - * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS], - * the project cannot be restored. The caller must have modify permissions for - * this project. (projects.undelete) + * lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v + * 1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated + * by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.pro + * jects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be + * restored. The caller must have modify permissions for this project. + * (projects.undelete) * * @param string $projectId The project ID (for example, `foo-bar-123`). * Required. @@ -289,10 +574,69 @@ public function update($projectId, Google_Service_Cloudresourcemanager_Project $ +class Google_Service_Cloudresourcemanager_Binding extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $members; + public $role; + + + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} + class Google_Service_Cloudresourcemanager_Empty extends Google_Model { } +class Google_Service_Cloudresourcemanager_GetIamPolicyRequest extends Google_Model +{ +} + +class Google_Service_Cloudresourcemanager_ListOrganizationsResponse extends Google_Collection +{ + protected $collection_key = 'organizations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $organizationsType = 'Google_Service_Cloudresourcemanager_Organization'; + protected $organizationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrganizations($organizations) + { + $this->organizations = $organizations; + } + public function getOrganizations() + { + return $this->organizations; + } +} + class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection { protected $collection_key = 'projects'; @@ -321,6 +665,96 @@ public function getProjects() } } +class Google_Service_Cloudresourcemanager_Organization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $organizationId; + protected $ownerType = 'Google_Service_Cloudresourcemanager_OrganizationOwner'; + protected $ownerDataType = ''; + + + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setOrganizationId($organizationId) + { + $this->organizationId = $organizationId; + } + public function getOrganizationId() + { + return $this->organizationId; + } + public function setOwner(Google_Service_Cloudresourcemanager_OrganizationOwner $owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } +} + +class Google_Service_Cloudresourcemanager_OrganizationOwner extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $directoryCustomerId; + + + public function setDirectoryCustomerId($directoryCustomerId) + { + $this->directoryCustomerId = $directoryCustomerId; + } + public function getDirectoryCustomerId() + { + return $this->directoryCustomerId; + } +} + +class Google_Service_Cloudresourcemanager_Policy extends Google_Collection +{ + protected $collection_key = 'bindings'; + protected $internal_gapi_mappings = array( + ); + protected $bindingsType = 'Google_Service_Cloudresourcemanager_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + public $version; + + + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + class Google_Service_Cloudresourcemanager_Project extends Google_Model { protected $internal_gapi_mappings = array( @@ -329,6 +763,8 @@ class Google_Service_Cloudresourcemanager_Project extends Google_Model public $labels; public $lifecycleState; public $name; + protected $parentType = 'Google_Service_Cloudresourcemanager_ResourceId'; + protected $parentDataType = ''; public $projectId; public $projectNumber; @@ -365,6 +801,14 @@ public function getName() { return $this->name; } + public function setParent(Google_Service_Cloudresourcemanager_ResourceId $parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } public function setProjectId($projectId) { $this->projectId = $projectId; @@ -386,3 +830,83 @@ public function getProjectNumber() class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model { } + +class Google_Service_Cloudresourcemanager_ResourceId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Cloudresourcemanager_SetIamPolicyRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $policyType = 'Google_Service_Cloudresourcemanager_Policy'; + protected $policyDataType = ''; + + + public function setPolicy(Google_Service_Cloudresourcemanager_Policy $policy) + { + $this->policy = $policy; + } + public function getPolicy() + { + return $this->policy; + } +} + +class Google_Service_Cloudresourcemanager_TestIamPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Cloudresourcemanager_TestIamPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/src/Google/Service/Cloudtrace.php b/src/Google/Service/Cloudtrace.php new file mode 100644 index 000000000..fe4857f8f --- /dev/null +++ b/src/Google/Service/Cloudtrace.php @@ -0,0 +1,460 @@ + + * The Google Cloud Trace API provides services for reading and writing runtime + * trace data for Cloud applications.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudtrace extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects; + public $projects_traces; + public $v1; + + + /** + * Constructs the internal representation of the Cloudtrace service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudtrace.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudtrace'; + + $this->projects = new Google_Service_Cloudtrace_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'patchTraces' => array( + 'path' => 'v1/projects/{projectId}/traces', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_traces = new Google_Service_Cloudtrace_ProjectsTraces_Resource( + $this, + $this->serviceName, + 'traces', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/projects/{projectId}/traces/{traceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'traceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/traces', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->v1 = new Google_Service_Cloudtrace_V1_Resource( + $this, + $this->serviceName, + 'v1', + array( + 'methods' => array( + 'getDiscovery' => array( + 'path' => 'v1/discovery', + 'httpMethod' => 'GET', + 'parameters' => array( + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'args' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudtraceService = new Google_Service_Cloudtrace(...); + * $projects = $cloudtraceService->projects; + * + */ +class Google_Service_Cloudtrace_Projects_Resource extends Google_Service_Resource +{ + + /** + * Updates the existing traces specified by PatchTracesRequest and inserts the + * new traces. Any existing trace or span fields included in an update are + * overwritten by the update, and any additional fields in an update are merged + * with the existing trace data. (projects.patchTraces) + * + * @param string $projectId The project id of the trace to patch. + * @param Google_Traces $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudtrace_Empty + */ + public function patchTraces($projectId, Google_Service_Cloudtrace_Traces $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patchTraces', array($params), "Google_Service_Cloudtrace_Empty"); + } +} + +/** + * The "traces" collection of methods. + * Typical usage is: + * + * $cloudtraceService = new Google_Service_Cloudtrace(...); + * $traces = $cloudtraceService->traces; + * + */ +class Google_Service_Cloudtrace_ProjectsTraces_Resource extends Google_Service_Resource +{ + + /** + * Gets one trace by id. (traces.get) + * + * @param string $projectId The project id of the trace to return. + * @param string $traceId The trace id of the trace to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudtrace_Trace + */ + public function get($projectId, $traceId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'traceId' => $traceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudtrace_Trace"); + } + + /** + * List traces matching the filter expression. (traces.listProjectsTraces) + * + * @param string $projectId The stringified-version of the project id. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy The trace field used to establish the order of + * traces returned by the ListTraces method. Possible options are: trace_id name + * (name field of root span) duration (different between end_time and start_time + * fields of root span) start (start_time field of root span) Descending order + * can be specified by appending "desc" to the sort field: name desc Only one + * sort field is permitted, though this may change in the future. + * @opt_param int pageSize Maximum number of topics to return. If not specified + * or <= 0, the implementation will select a reasonable value. The implemenation + * may always return fewer than the requested page_size. + * @opt_param string filter An optional filter for the request. + * @opt_param string pageToken The token identifying the page of results to + * return from the ListTraces method. If present, this value is should be taken + * from the next_page_token field of a previous ListTracesResponse. + * @opt_param string startTime End of the time interval (inclusive). + * @opt_param string endTime Start of the time interval (exclusive). + * @opt_param string view ViewType specifies the projection of the result. + * @return Google_Service_Cloudtrace_ListTracesResponse + */ + public function listProjectsTraces($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudtrace_ListTracesResponse"); + } +} + +/** + * The "v1" collection of methods. + * Typical usage is: + * + * $cloudtraceService = new Google_Service_Cloudtrace(...); + * $v1 = $cloudtraceService->v1; + * + */ +class Google_Service_Cloudtrace_V1_Resource extends Google_Service_Resource +{ + + /** + * Returns a discovery document in the specified `format`. The typeurl in the + * returned google.protobuf.Any value depends on the requested format. + * (v1.getDiscovery) + * + * @param array $optParams Optional parameters. + * + * @opt_param string labels A list of labels (like visibility) influencing the + * scope of the requested doc. + * @opt_param string version The API version of the requested discovery doc. + * @opt_param string args Any additional arguments. + * @opt_param string format The format requested for discovery. + */ + public function getDiscovery($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getDiscovery', array($params)); + } +} + + + + +class Google_Service_Cloudtrace_Empty extends Google_Model +{ +} + +class Google_Service_Cloudtrace_ListTracesResponse extends Google_Collection +{ + protected $collection_key = 'traces'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $tracesType = 'Google_Service_Cloudtrace_Trace'; + protected $tracesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTraces($traces) + { + $this->traces = $traces; + } + public function getTraces() + { + return $this->traces; + } +} + +class Google_Service_Cloudtrace_Trace extends Google_Collection +{ + protected $collection_key = 'spans'; + protected $internal_gapi_mappings = array( + ); + public $projectId; + protected $spansType = 'Google_Service_Cloudtrace_TraceSpan'; + protected $spansDataType = 'array'; + public $traceId; + + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSpans($spans) + { + $this->spans = $spans; + } + public function getSpans() + { + return $this->spans; + } + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + public function getTraceId() + { + return $this->traceId; + } +} + +class Google_Service_Cloudtrace_TraceSpan extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endTime; + public $kind; + public $labels; + public $name; + public $parentSpanId; + public $spanId; + public $startTime; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + 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 setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentSpanId($parentSpanId) + { + $this->parentSpanId = $parentSpanId; + } + public function getParentSpanId() + { + return $this->parentSpanId; + } + public function setSpanId($spanId) + { + $this->spanId = $spanId; + } + public function getSpanId() + { + return $this->spanId; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} + +class Google_Service_Cloudtrace_TraceSpanLabels extends Google_Model +{ +} + +class Google_Service_Cloudtrace_Traces extends Google_Collection +{ + protected $collection_key = 'traces'; + protected $internal_gapi_mappings = array( + ); + protected $tracesType = 'Google_Service_Cloudtrace_Trace'; + protected $tracesDataType = 'array'; + + + public function setTraces($traces) + { + $this->traces = $traces; + } + public function getTraces() + { + return $this->traces; + } +} diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 6cc848b16..5a75948e3 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -50,6 +50,7 @@ class Google_Service_Compute extends Google_Service "https://www.googleapis.com/auth/devstorage.read_write"; public $addresses; + public $autoscalers; public $backendServices; public $diskTypes; public $disks; @@ -60,6 +61,8 @@ class Google_Service_Compute extends Google_Service public $globalOperations; public $httpHealthChecks; public $images; + public $instanceGroupManagers; + public $instanceGroups; public $instanceTemplates; public $instances; public $licenses; @@ -207,6 +210,159 @@ public function __construct(Google_Client $client) ) ) ); + $this->autoscalers = new Google_Service_Compute_Autoscalers_Resource( + $this, + $this->serviceName, + 'autoscalers', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/autoscalers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->backendServices = new Google_Service_Compute_BackendServices_Resource( $this, $this->serviceName, @@ -1209,54 +1365,34 @@ public function __construct(Google_Client $client) ) ) ); - $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( + $this->instanceGroupManagers = new Google_Service_Compute_InstanceGroupManagers_Resource( $this, $this->serviceName, - 'instanceTemplates', + 'instanceGroupManagers', array( 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceTemplate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'GET', + 'abandonInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'instanceTemplate' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'insert' => array( - 'path' => '{project}/global/instanceTemplates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/global/instanceTemplates', + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/instanceGroupManagers', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1277,19 +1413,9 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ), - ) - ) - ); - $this->instances = new Google_Service_Compute_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'addAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', - 'httpMethod' => 'POST', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1301,42 +1427,35 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instances', - 'httpMethod' => 'GET', + ),'deleteInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'zone' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + 'instanceGroupManager' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ),'attachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1348,15 +1467,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'DELETE', + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1368,15 +1487,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), - ),'deleteAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1388,24 +1502,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'accessConfig' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'networkInterface' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', - 'required' => true, + 'type' => 'integer', ), ), - ),'detachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', + ),'listManagedInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1418,20 +1529,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'GET', + ),'recreateInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1443,15 +1549,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'getSerialPortOutput' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', - 'httpMethod' => 'GET', + ),'resize' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1463,18 +1569,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'port' => array( + 'size' => array( 'location' => 'query', 'type' => 'integer', + 'required' => true, ), ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instances', + ),'setInstanceTemplate' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1487,36 +1594,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'reset' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/reset', + ),'setTargetPools' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1529,14 +1614,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setDiskAutoDelete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', + ), + ) + ) + ); + $this->instanceGroups = new Google_Service_Compute_InstanceGroups_Resource( + $this, + $this->serviceName, + 'instanceGroups', + array( + 'methods' => array( + 'addInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1549,45 +1644,37 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'autoDelete' => array( - 'location' => 'query', - 'type' => 'boolean', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), ), - ),'setMetadata' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', - 'httpMethod' => 'POST', + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/instanceGroups', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zone' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'instance' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), ), - ),'setScheduling' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', - 'httpMethod' => 'POST', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1599,15 +1686,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setTags' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1619,14 +1706,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'start' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/start', + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instanceGroups', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1639,15 +1726,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), - ),'stop' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/stop', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => '{project}/zones/{zone}/instanceGroups', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1659,56 +1741,42 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), ), - ), - ) - ) - ); - $this->licenses = new Google_Service_Compute_Licenses_Resource( - $this, - $this->serviceName, - 'licenses', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/licenses/{license}', - 'httpMethod' => 'GET', + ),'listInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'license' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ), - ) - ) - ); - $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( - $this, - $this->serviceName, - 'machineTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -1717,14 +1785,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', - 'httpMethod' => 'GET', + ),'removeInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1736,15 +1800,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'machineType' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/machineTypes', - 'httpMethod' => 'GET', + ),'setNamedPorts' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1756,31 +1820,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', + 'instanceGroup' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), ), ) ) ); - $this->networks = new Google_Service_Compute_Networks_Resource( + $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( $this, $this->serviceName, - 'networks', + 'instanceTemplates', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/global/networks/{network}', + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -1788,14 +1845,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'network' => array( + 'instanceTemplate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/global/networks/{network}', + 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1803,14 +1860,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'network' => array( + 'instanceTemplate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/global/networks', + 'path' => '{project}/global/instanceTemplates', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1820,7 +1877,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{project}/global/networks', + 'path' => '{project}/global/instanceTemplates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1845,44 +1902,61 @@ public function __construct(Google_Client $client) ) ) ); - $this->projects = new Google_Service_Compute_Projects_Resource( + $this->instances = new Google_Service_Compute_Instances_Resource( $this, $this->serviceName, - 'projects', + 'instances', array( 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', + 'addAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'moveDisk' => array( - 'path' => '{project}/moveDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), ), - ),'moveInstance' => array( - 'path' => '{project}/moveInstance', - 'httpMethod' => 'POST', + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/instances', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), - ),'setCommonInstanceMetadata' => array( - 'path' => '{project}/setCommonInstanceMetadata', + ),'attachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1890,106 +1964,94 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), - ),'setUsageExportBucket' => array( - 'path' => '{project}/setUsageExportBucket', - 'httpMethod' => 'POST', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ), - ) - ) - ); - $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( - $this, - $this->serviceName, - 'regionOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'operation' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'GET', + ),'deleteAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'operation' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'accessConfig' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), ), - ),'list' => array( - 'path' => '{project}/regions/{region}/operations', - 'httpMethod' => 'GET', + ),'detachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( + 'deviceName' => array( 'location' => 'query', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ), - ) - ) - ); - $this->regions = new Google_Service_Compute_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/regions/{region}', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1997,76 +2059,43 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'list' => array( - 'path' => '{project}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ), - ) - ) - ); - $this->routes = new Google_Service_Compute_Routes_Resource( - $this, - $this->serviceName, - 'routes', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'DELETE', + ),'getSerialPortOutput' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'route' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'get' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, + 'port' => array( + 'location' => 'query', + 'type' => 'integer', ), ), ),'insert' => array( - 'path' => '{project}/global/routes', + 'path' => '{project}/zones/{zone}/instances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2074,9 +2103,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'list' => array( - 'path' => '{project}/global/routes', + 'path' => '{project}/zones/{zone}/instances', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2084,6 +2118,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -2097,110 +2136,78 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Compute_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'DELETE', + ),'reset' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/reset', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'snapshot' => array( + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'GET', + ),'setDiskAutoDelete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'snapshot' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'list' => array( - 'path' => '{project}/global/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( + 'autoDelete' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', + 'required' => true, ), - 'pageToken' => array( + 'deviceName' => array( 'location' => 'query', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ), - ) - ) - ); - $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( - $this, - $this->serviceName, - 'targetHttpProxies', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'DELETE', + ),'setMetadata' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetHttpProxy' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpProxies', + ),'setScheduling' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2208,31 +2215,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - ), - ),'list' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', + ),'setTags' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2240,47 +2235,40 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'targetHttpProxy' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ), - ) - ) - ); - $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( - $this, - $this->serviceName, - 'targetInstances', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetInstances', - 'httpMethod' => 'GET', + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'start' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/start', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'zone' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'DELETE', + ),'stop' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/stop', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2292,14 +2280,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'targetInstance' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', + ), + ) + ) + ); + $this->licenses = new Google_Service_Compute_Licenses_Resource( + $this, + $this->serviceName, + 'licenses', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/licenses/{license}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2307,20 +2305,47 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'license' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetInstance' => array( + ), + ), + ) + ) + ); + $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( + $this, + $this->serviceName, + 'machineTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/machineTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2332,9 +2357,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'machineType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/targetInstances', + 'path' => '{project}/zones/{zone}/machineTypes', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2364,54 +2394,54 @@ public function __construct(Google_Client $client) ) ) ); - $this->targetPools = new Google_Service_Compute_TargetPools_Resource( + $this->networks = new Google_Service_Compute_Networks_Resource( $this, $this->serviceName, - 'targetPools', + 'networks', array( 'methods' => array( - 'addHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', - 'httpMethod' => 'POST', + 'delete' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( + 'network' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'addInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'network' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetPool' => array( + ), + ),'insert' => array( + 'path' => '{project}/global/networks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/targetPools', + ),'list' => array( + 'path' => '{project}/global/networks', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2432,49 +2462,79 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'DELETE', + ), + ) + ) + ); + $this->projects = new Google_Service_Compute_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( + ), + ),'moveDisk' => array( + 'path' => '{project}/moveDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'GET', + ),'moveInstance' => array( + 'path' => '{project}/moveInstance', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + ), + ),'setCommonInstanceMetadata' => array( + 'path' => '{project}/setCommonInstanceMetadata', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetPool' => array( + ), + ),'setUsageExportBucket' => array( + 'path' => '{project}/setUsageExportBucket', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'getHealth' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', - 'httpMethod' => 'POST', + ), + ) + ) + ); + $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( + $this, + $this->serviceName, + 'regionOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2486,15 +2546,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'targetPool' => array( + 'operation' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2506,9 +2566,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'list' => array( - 'path' => '{project}/regions/{region}/targetPools', + 'path' => '{project}/regions/{region}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2534,9 +2599,19 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'removeHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', - 'httpMethod' => 'POST', + ), + ) + ) + ); + $this->regions = new Google_Service_Compute_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/regions/{region}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -2548,110 +2623,81 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), - ),'removeInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => '{project}/regions', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'targetPool' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - ), - ),'setBackup' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'failoverRatio' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'number', + 'type' => 'integer', ), ), ), ) ) ); - $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( + $this->routes = new Google_Service_Compute_Routes_Resource( $this, $this->serviceName, - 'targetVpnGateways', + 'routes', array( 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetVpnGateways', - 'httpMethod' => 'GET', + 'delete' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', + 'route' => array( + 'location' => 'path', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', - 'httpMethod' => 'DELETE', + ),'get' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'route' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetVpnGateway' => array( + ), + ),'insert' => array( + 'path' => '{project}/global/routes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + ),'list' => array( + 'path' => '{project}/global/routes', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2659,34 +2705,61 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->snapshots = new Google_Service_Compute_Snapshots_Resource( + $this, + $this->serviceName, + 'snapshots', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetVpnGateway' => array( + 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'region' => array( + 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', + 'path' => '{project}/global/snapshots', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2694,11 +2767,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -2716,14 +2784,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( $this, $this->serviceName, - 'urlMaps', + 'targetHttpProxies', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -2731,14 +2799,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'urlMap' => array( + 'targetHttpProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2746,14 +2814,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'urlMap' => array( + 'targetHttpProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/global/urlMaps', + 'path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2763,7 +2831,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{project}/global/urlMaps', + 'path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2784,38 +2852,8 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'patch' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'validate' => array( - 'path' => '{project}/global/urlMaps/{urlMap}/validate', + ),'setUrlMap' => array( + 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2823,7 +2861,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'urlMap' => array( + 'targetHttpProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -2833,14 +2871,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( + $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( $this, $this->serviceName, - 'vpnTunnels', + 'targetInstances', array( 'methods' => array( 'aggregatedList' => array( - 'path' => '{project}/aggregated/vpnTunnels', + 'path' => '{project}/aggregated/targetInstances', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2862,7 +2900,7 @@ public function __construct(Google_Client $client) ), ), ),'delete' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -2870,19 +2908,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'vpnTunnel' => array( + 'targetInstance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2890,19 +2928,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'vpnTunnel' => array( + 'targetInstance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', + 'path' => '{project}/zones/{zone}/targetInstances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2910,14 +2948,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', + 'path' => '{project}/zones/{zone}/targetInstances', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2925,7 +2963,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -2947,54 +2985,54 @@ public function __construct(Google_Client $client) ) ) ); - $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( + $this->targetPools = new Google_Service_Compute_TargetPools_Resource( $this, $this->serviceName, - 'zoneOperations', + 'targetPools', array( 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', + 'addHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'region' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'operation' => array( + 'targetPool' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', + ),'addInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'region' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'operation' => array( + 'targetPool' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/targetPools', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -3002,11 +3040,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -3020,33 +3053,28 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ), - ) - ) - ); - $this->zones = new Google_Service_Compute_Zones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}', - 'httpMethod' => 'GET', + ),'delete' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/zones', + ),'get' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -3054,13 +3082,251 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'region' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getHealth' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removeHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'removeInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setBackup' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'failoverRatio' => array( + 'location' => 'query', + 'type' => 'number', + ), + ), + ), + ) + ) + ); + $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( + $this, + $this->serviceName, + 'targetVpnGateways', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetVpnGateway' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/targetVpnGateways', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', ), 'maxResults' => array( 'location' => 'query', @@ -3071,2923 +3337,6007 @@ public function __construct(Google_Client $client) ) ) ); + $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this, + $this->serviceName, + 'urlMaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'validate' => array( + 'path' => '{project}/global/urlMaps/{urlMap}/validate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( + $this, + $this->serviceName, + 'vpnTunnels', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'vpnTunnel' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/vpnTunnels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->zones = new Google_Service_Compute_Zones_Resource( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "addresses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $addresses = $computeService->addresses; + * + */ +class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); + } + + /** + * Deletes the specified address resource. (addresses.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $address Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $address, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (addresses.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $address Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $region, $address, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (addresses.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of address resources contained within the specified + * region. (addresses.listAddresses) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressList + */ + public function listAddresses($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } +} + +/** + * The "autoscalers" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $autoscalers = $computeService->autoscalers; + * + */ +class Google_Service_Compute_Autoscalers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of autoscalers grouped by scope. + * (autoscalers.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AutoscalerAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_AutoscalerAggregatedList"); + } + + /** + * Deletes the specified autoscaler resource. (autoscalers.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $autoscaler Name of the persistent autoscaler resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $autoscaler, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified autoscaler resource. (autoscalers.get) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $autoscaler Name of the persistent autoscaler resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Autoscaler + */ + public function get($project, $zone, $autoscaler, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Autoscaler"); + } + + /** + * Creates an autoscaler resource in the specified project using the data + * included in the request. (autoscalers.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of autoscaler resources contained within the specified + * zone. (autoscalers.listAutoscalers) + * + * @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 Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AutoscalerList + */ + public function listAutoscalers($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AutoscalerList"); + } + + /** + * Updates an autoscaler resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (autoscalers.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $autoscaler Name of the autoscaler resource to update. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $zone, $autoscaler, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates an autoscaler resource in the specified project using the data + * included in the request. (autoscalers.update) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string autoscaler Name of the autoscaler resource to update. + * @return Google_Service_Compute_Operation + */ + public function update($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "backendServices" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $backendServices = $computeService->backendServices; + * + */ +class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified BackendService resource. (backendServices.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $backendService, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified BackendService resource. (backendServices.get) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendService + */ + public function get($project, $backendService, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_BackendService"); + } + + /** + * Gets the most recent health check results for this BackendService. + * (backendServices.getHealth) + * + * @param string $project + * @param string $backendService Name of the BackendService resource to which + * the queried instance belongs. + * @param Google_ResourceGroupReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendServiceGroupHealth + */ + public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + } + + /** + * Creates a BackendService resource in the specified project using the data + * included in the request. (backendServices.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of BackendService resources available to the specified + * project. (backendServices.listBackendServices) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_BackendServiceList + */ + public function listBackendServices($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + } + + /** + * Update the entire content of the BackendService resource. This method + * supports patch semantics. (backendServices.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the BackendService resource. + * (backendServices.update) + * + * @param string $project Name of the project scoping this request. + * @param string $backendService Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "diskTypes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $diskTypes = $computeService->diskTypes; + * + */ +class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disk type resources grouped by scope. + * (diskTypes.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + } + + /** + * Returns the specified disk type resource. (diskTypes.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $diskType Name of the disk type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_DiskType + */ + public function get($project, $zone, $diskType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + } + + /** + * Retrieves the list of disk type resources available to the specified project. + * (diskTypes.listDiskTypes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskTypeList + */ + public function listDiskTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + } +} + +/** + * The "disks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $disks = $computeService->disks; + * + */ +class Google_Service_Compute_Disks_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); + } + + /** + * Creates a snapshot of this disk. (disks.createSnapshot) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to snapshot. + * @param Google_Snapshot $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified persistent disk. Deleting a disk removes its data + * permanently and is irreversible. However, deleting a disk does not delete any + * snapshots previously made from the disk. You must separately delete + * snapshots. (disks.delete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $disk, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns a specified persistent disk. (disks.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Disk + */ + public function get($project, $zone, $disk, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Disk"); + } + + /** + * Creates a persistent disk in the specified project using the data included in + * the request. (disks.insert) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param Google_Disk $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string sourceImage Optional. Source image to restore onto a disk. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of persistent disks contained within the specified zone. + * (disks.listDisks) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_DiskList + */ + public function listDisks($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + } +} + +/** + * The "firewalls" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $firewalls = $computeService->firewalls; + * + */ +class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified firewall resource. (firewalls.delete) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $firewall, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified firewall resource. (firewalls.get) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Firewall + */ + public function get($project, $firewall, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Firewall"); + } + + /** + * Creates a firewall resource in the specified project using the data included + * in the request. (firewalls.insert) + * + * @param string $project Project ID for this request. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of firewall resources available to the specified project. + * (firewalls.listFirewalls) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_FirewallList + */ + public function listFirewalls($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. This method supports patch semantics. (firewalls.patch) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. (firewalls.update) + * + * @param string $project Project ID for this request. + * @param string $firewall Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "forwardingRules" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $forwardingRules = $computeService->forwardingRules; + * + */ +class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of forwarding rules grouped by scope. + * (forwardingRules.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); + } + + /** + * Deletes the specified ForwardingRule resource. (forwardingRules.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (forwardingRules.get) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $region, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (forwardingRules.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project and region. (forwardingRules.listForwardingRules) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listForwardingRules($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (forwardingRules.setTarget) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "globalAddresses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalAddresses = $computeService->globalAddresses; + * + */ +class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified address resource. (globalAddresses.delete) + * + * @param string $project Project ID for this request. + * @param string $address Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $address, $optParams = array()) + { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (globalAddresses.get) + * + * @param string $project Project ID for this request. + * @param string $address Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $address, $optParams = array()) + { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (globalAddresses.insert) + * + * @param string $project Project ID for this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of global address resources. + * (globalAddresses.listGlobalAddresses) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_AddressList + */ + public function listGlobalAddresses($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } +} + +/** + * The "globalForwardingRules" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalForwardingRules = $computeService->globalForwardingRules; + * + */ +class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (globalForwardingRules.get) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $forwardingRule, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (globalForwardingRules.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project. (globalForwardingRules.listGlobalForwardingRules) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listGlobalForwardingRules($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (globalForwardingRules.setTarget) + * + * @param string $project Name of the project scoping this request. + * @param string $forwardingRule Name of the ForwardingRule resource in which + * target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "globalOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $globalOperations = $computeService->globalOperations; + * + */ +class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of all operations grouped by scope. + * (globalOperations.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + } + + /** + * Deletes the specified Operations resource. (globalOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified Operations resource. (globalOperations.get) + * + * @param string $project Project ID for this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of Operation resources contained within the specified + * project. (globalOperations.listGlobalOperations) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listGlobalOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "httpHealthChecks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $httpHealthChecks = $computeService->httpHealthChecks; + * + */ +class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_HttpHealthCheck + */ + public function get($project, $httpHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + } + + /** + * Creates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of HttpHealthCheck resources available to the specified + * project. (httpHealthChecks.listHttpHealthChecks) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_HttpHealthCheckList + */ + public function listHttpHealthChecks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (httpHealthChecks.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.update) + * + * @param string $project Name of the project scoping this request. + * @param string $httpHealthCheck Name of the HttpHealthCheck resource to + * update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "images" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $images = $computeService->images; + * + */ +class Google_Service_Compute_Images_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified image resource. (images.delete) + * + * @param string $project Project ID for this request. + * @param string $image Name of the image resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $image, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. + * (images.deprecate) + * + * @param string $project Project ID for this request. + * @param string $image Image name. + * @param Google_DeprecationStatus $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified image resource. (images.get) + * + * @param string $project Project ID for this request. + * @param string $image Name of the image resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Image + */ + public function get($project, $image, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Image"); + } + + /** + * Creates an image resource in the specified project using the data included in + * the request. (images.insert) + * + * @param string $project Project ID for this request. + * @param Google_Image $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of private images available to the specified project. + * Private images are images you create that belong to your project. This method + * does not get any images that belong to other projects, including publicly- + * available images, like Debian 7. If you want to get a list of publicly- + * available images, use this method to make a request to the respective image + * project, such as debian-cloud or windows-cloud. + * + * See Accessing images for more information. (images.listImages) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ImageList + */ + public function listImages($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ImageList"); + } +} + +/** + * The "instanceGroupManagers" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $instanceGroupManagers = $computeService->instanceGroupManagers; + * + */ +class Google_Service_Compute_InstanceGroupManagers_Resource extends Google_Service_Resource +{ + + /** + * Schedules a group action to remove the specified instances from the managed + * instance group. Abandoning an instance does not delete the instance, but it + * does remove the instance from any target pools that are applied by the + * managed instance group. This method reduces the targetSize of the managed + * instance group by the number of instances that you abandon. This operation is + * marked as DONE when the action is scheduled even if the instances have not + * yet been removed from the group. You must separately verify the status of the + * abandoning action with the listmanagedinstances method. + * (instanceGroupManagers.abandonInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('abandonInstances', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of managed instance groups and groups them by zone. + * (instanceGroupManagers.aggregatedList) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceGroupManagerAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupManagerAggregatedList"); + } + + /** + * Deletes the specified managed instance group and all of the instances in that + * group. (instanceGroupManagers.delete) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $instanceGroupManager, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Schedules a group action to delete the specified instances in the managed + * instance group. The instances are also removed from any target pools of which + * they were a member. This method reduces the targetSize of the managed + * instance group by the number of instances that you delete. This operation is + * marked as DONE when the action is scheduled even if the instances are still + * being deleted. You must separately verify the status of the deleting action + * with the listmanagedinstances method. (instanceGroupManagers.deleteInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteInstances', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns all of the details about the specified managed instance group. + * (instanceGroupManagers.get) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceGroupManager + */ + public function get($project, $zone, $instanceGroupManager, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_InstanceGroupManager"); + } + + /** + * Creates a managed instance group using the information that you specify in + * the request. After the group is created, it schedules an action to create + * instances in the group using the specified instance template. This operation + * is marked as DONE when the group is created even if the instances in the + * group have not yet been created. You must separately verify the status of the + * individual instances with the listmanagedinstances method. + * (instanceGroupManagers.insert) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where you want to create the managed + * instance group. + * @param Google_InstanceGroupManager $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves a list of managed instance groups that are contained within the + * specified project and zone. (instanceGroupManagers.listInstanceGroupManagers) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceGroupManagerList + */ + public function listInstanceGroupManagers($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupManagerList"); + } + + /** + * Lists all of the instances in the managed instance group. Each instance in + * the list has a currentAction, which indicates the action that the managed + * instance group is performing on the instance. For example, if the group is + * still creating an instance, the currentAction is CREATING. If a previous + * action failed, the list displays the errors for that failed action. + * (instanceGroupManagers.listManagedInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse + */ + public function listManagedInstances($project, $zone, $instanceGroupManager, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array_merge($params, $optParams); + return $this->call('listManagedInstances', array($params), "Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse"); + } + + /** + * Schedules a group action to recreate the specified instances in the managed + * instance group. The instances are deleted and recreated using the current + * instance template for the managed instance group. This operation is marked as + * DONE when the action is scheduled even if the instances have not yet been + * recreated. You must separately verify the status of the recreating action + * with the listmanagedinstances method. + * (instanceGroupManagers.recreateInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('recreateInstances', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Resizes the managed instance group. If you increase the size, the group + * creates new instances using the current instance template. If you decrease + * the size, the group deletes instances. The resize operation is marked DONE + * when the resize actions are scheduled even if the group has not yet added or + * deleted any instances. You must separately verify the status of the creating + * or deleting actions with the listmanagedinstances method. + * (instanceGroupManagers.resize) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param int $size The number of running instances that the managed instance + * group should maintain at any given time. The group automatically adds or + * removes instances to maintain the number of instances specified by this + * parameter. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); + $params = array_merge($params, $optParams); + return $this->call('resize', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Specifies the instance template to use when creating new instances in this + * group. The templates for existing instances in the group do not change unless + * you recreate them. (instanceGroupManagers.setInstanceTemplate) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setInstanceTemplate', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Modifies the target pools to which all instances in this managed instance + * group are assigned. The target pools automatically apply to all of the + * instances in the managed instance group. This operation is marked DONE when + * you make the request even if the instances have not yet been added to their + * target pools. The change might take some time to apply to all of the + * instances in the group depending on the size of the group. + * (instanceGroupManagers.setTargetPools) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the managed instance group is + * located. + * @param string $instanceGroupManager The name of the managed instance group. + * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTargetPools', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "instanceGroups" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $instanceGroups = $computeService->instanceGroups; + * + */ +class Google_Service_Compute_InstanceGroups_Resource extends Google_Service_Resource +{ + + /** + * Adds a list of instances to the specified instance group. All of the + * instances in the instance group must be in the same network/subnetwork. TODO: + * Change to comment to state "if IG is load balanced." + * (instanceGroups.addInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group where you are + * adding instances. + * @param Google_InstanceGroupsAddInstancesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsAddInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addInstances', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of instance groups and sorts them by zone. + * (instanceGroups.aggregatedList) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceGroupAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupAggregatedList"); + } + + /** + * Deletes the specified instance group. The instances in the group are not + * deleted. (instanceGroups.delete) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $instanceGroup, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance group resource. (instanceGroups.get) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceGroup + */ + public function get($project, $zone, $instanceGroup, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_InstanceGroup"); + } + + /** + * Creates an instance group in the specified project using the parameters that + * are included in the request. (instanceGroups.insert) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where you want to create the + * instance group. + * @param Google_InstanceGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_InstanceGroup $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of instance groups that are located in the specified + * project and zone. (instanceGroups.listInstanceGroups) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceGroupList + */ + public function listInstanceGroups($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupList"); + } + + /** + * Lists the instances in the specified instance group. + * (instanceGroups.listInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group from which you + * want to generate a list of included instances. + * @param Google_InstanceGroupsListInstancesRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @return Google_Service_Compute_InstanceGroupsListInstances + */ + public function listInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsListInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('listInstances', array($params), "Google_Service_Compute_InstanceGroupsListInstances"); + } + + /** + * Removes one or more instances from the specified instance group, but does not + * delete those instances. (instanceGroups.removeInstances) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group where the + * specified instances will be removed. + * @param Google_InstanceGroupsRemoveInstancesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsRemoveInstancesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeInstances', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the named ports for the specified instance group. + * (instanceGroups.setNamedPorts) + * + * @param string $project The project ID for this request. + * @param string $zone The name of the zone where the instance group is located. + * @param string $instanceGroup The name of the instance group where the named + * ports are updated. + * @param Google_InstanceGroupsSetNamedPortsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setNamedPorts($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsSetNamedPortsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setNamedPorts', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "instanceTemplates" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $instanceTemplates = $computeService->instanceTemplates; + * + */ +class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified instance template. (instanceTemplates.delete) + * + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance template resource. (instanceTemplates.get) + * + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InstanceTemplate + */ + public function get($project, $instanceTemplate, $optParams = array()) + { + $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); + } + + /** + * Creates an instance template in the specified project using the data that is + * included in the request. (instanceTemplates.insert) + * + * @param string $project The project ID for this request. + * @param Google_InstanceTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves a list of instance templates that are contained within the + * specified project and zone. (instanceTemplates.listInstanceTemplates) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceTemplateList + */ + public function listInstanceTemplates($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); + } +} + +/** + * The "instances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $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 ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $networkInterface The name of the network interface to add to + * this instance. + * @param Google_AccessConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * (instances.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); + } + + /** + * Attaches a Disk resource to an instance. (instances.attachDisk) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param Google_AttachedDisk $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified Instance resource. For more information, see Shutting + * down an instance. (instances.delete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes an access config from an instance's network interface. + * (instances.deleteAccessConfig) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $accessConfig The name of the access config to delete. + * @param string $networkInterface The name of the network interface. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); + $params = array_merge($params, $optParams); + return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Detaches a disk from an instance. (instances.detachDisk) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param string $deviceName Disk device name to detach. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance resource. (instances.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Instance + */ + public function get($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Instance"); + } + + /** + * Returns the specified instance's serial port output. + * (instances.getSerialPortOutput) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param int port Specifies which COM or serial port to retrieve data from. + * @return Google_Service_Compute_SerialPortOutput + */ + public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); + } + + /** + * Creates an instance resource in the specified project using the data included + * in the request. (instances.insert) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param Google_Instance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of instance resources contained within the specified zone. + * (instances.listInstances) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_InstanceList + */ + public function listInstances($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); + } + + /** + * Performs a hard reset on the instance. (instances.reset) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function reset($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the auto-delete flag for a disk attached to an instance. + * (instances.setDiskAutoDelete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name. + * @param bool $autoDelete Whether to auto-delete the disk when the instance is + * deleted. + * @param string $deviceName The device name of the disk to modify. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets metadata for the specified instance to the data included in the request. + * (instances.setMetadata) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets an instance's scheduling options. (instances.setScheduling) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Instance name. + * @param Google_Scheduling $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets tags for the specified instance to the data included in the request. + * (instances.setTags) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param Google_Tags $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); + } + + /** + * This method starts an instance that was stopped using the using the + * instances().stop method. For more information, see Restart an instance. + * (instances.start) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to start. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function start($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('start', array($params), "Google_Service_Compute_Operation"); + } + + /** + * This method stops a running instance, shutting it down cleanly, and allows + * you to restart the instance at a later time. Stopped instances do not incur + * per-minute, virtual machine usage charges while they are stopped, but any + * resources that the virtual machine is using, such as persistent disks and + * static IP addresses,will continue to be charged until they are deleted. For + * more information, see Stopping an instance. (instances.stop) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance resource to stop. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function stop($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "licenses" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $licenses = $computeService->licenses; + * + */ +class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified license resource. (licenses.get) + * + * @param string $project Project ID for this request. + * @param string $license Name of the license resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_License + */ + public function get($project, $license, $optParams = array()) + { + $params = array('project' => $project, 'license' => $license); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_License"); + } +} + +/** + * The "machineTypes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $machineTypes = $computeService->machineTypes; + * + */ +class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of machine type resources grouped by scope. + * (machineTypes.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_MachineTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); + } + + /** + * Returns the specified machine type resource. (machineTypes.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $machineType Name of the machine type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_MachineType + */ + public function get($project, $zone, $machineType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_MachineType"); + } + + /** + * Retrieves the list of machine type resources available to the specified + * project. (machineTypes.listMachineTypes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_MachineTypeList + */ + public function listMachineTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); + } +} + +/** + * The "networks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $networks = $computeService->networks; + * + */ +class Google_Service_Compute_Networks_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified network resource. (networks.delete) + * + * @param string $project Project ID for this request. + * @param string $network Name of the network resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $network, $optParams = array()) + { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified network resource. (networks.get) + * + * @param string $project Project ID for this request. + * @param string $network Name of the network resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Network + */ + public function get($project, $network, $optParams = array()) + { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Network"); + } + + /** + * Creates a network resource in the specified project using the data included + * in the request. (networks.insert) + * + * @param string $project Project ID for this request. + * @param Google_Network $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of network resources available to the specified project. + * (networks.listNetworks) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_NetworkList + */ + public function listNetworks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $projects = $computeService->projects; + * + */ +class Google_Service_Compute_Projects_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified project resource. (projects.get) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Project + */ + public function get($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Project"); + } + + /** + * Moves a persistent disk from one zone to another. (projects.moveDisk) + * + * @param string $project Project ID for this request. + * @param Google_DiskMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Moves an instance and its attached persistent disks from one zone to another. + * (projects.moveInstance) + * + * @param string $project Project ID for this request. + * @param Google_InstanceMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets metadata common to all instances within the specified project using the + * data included in the request. (projects.setCommonInstanceMetadata) + * + * @param string $project Project ID for this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Enables the usage export feature and sets the usage export bucket where + * reports are stored. If you provide an empty request body using this method, + * the usage export feature will be disabled. (projects.setUsageExportBucket) + * + * @param string $project Project ID for this request. + * @param Google_UsageExportLocation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "regionOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $regionOperations = $computeService->regionOperations; + * + */ +class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified region-specific Operations resource. + * (regionOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $region, $operation, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified region-specific Operations resource. + * (regionOperations.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the zone scoping this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $region, $operation, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of Operation resources contained within the specified + * region. (regionOperations.listRegionOperations) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listRegionOperations($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $regions = $computeService->regions; + * + */ +class Google_Service_Compute_Regions_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified region resource. (regions.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Region + */ + public function get($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Region"); + } + + /** + * Retrieves the list of region resources available to the specified project. + * (regions.listRegions) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_RegionList + */ + public function listRegions($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RegionList"); + } +} + +/** + * The "routes" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $routes = $computeService->routes; + * + */ +class Google_Service_Compute_Routes_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified route resource. (routes.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $route, $optParams = array()) + { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified route resource. (routes.get) + * + * @param string $project Name of the project scoping this request. + * @param string $route Name of the route resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Route + */ + public function get($project, $route, $optParams = array()) + { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Route"); + } + + /** + * Creates a route resource in the specified project using the data included in + * the request. (routes.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_Route $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of route resources available to the specified project. + * (routes.listRoutes) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_RouteList + */ + public function listRoutes($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RouteList"); + } +} + +/** + * The "snapshots" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $snapshots = $computeService->snapshots; + * + */ +class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single + * snapshot might not necessarily delete all the data on that snapshot. If any + * data on the snapshot that is marked for deletion is needed for subsequent + * snapshots, the data will be moved to the next corresponding snapshot. + * + * For more information, see Deleting snaphots. (snapshots.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $snapshot Name of the Snapshot resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $snapshot, $optParams = array()) + { + $params = array('project' => $project, 'snapshot' => $snapshot); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified Snapshot resource. (snapshots.get) + * + * @param string $project Name of the project scoping this request. + * @param string $snapshot Name of the Snapshot resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Snapshot + */ + public function get($project, $snapshot, $optParams = array()) + { + $params = array('project' => $project, 'snapshot' => $snapshot); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); + } + + /** + * Retrieves the list of Snapshot resources contained within the specified + * project. (snapshots.listSnapshots) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_SnapshotList + */ + public function listSnapshots($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); + } +} + +/** + * The "targetHttpProxies" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetHttpProxies = $computeService->targetHttpProxies; + * + */ +class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $targetHttpProxy, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetHttpProxy + */ + public function get($project, $targetHttpProxy, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); + } + + /** + * Creates a TargetHttpProxy resource in the specified project using the data + * included in the request. (targetHttpProxies.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_TargetHttpProxy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetHttpProxy resources available to the specified + * project. (targetHttpProxies.listTargetHttpProxies) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetHttpProxyList + */ + public function listTargetHttpProxies($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + } + + /** + * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL + * map is to be set. + * @param Google_UrlMapReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetInstances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetInstances = $computeService->targetInstances; + * + */ +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target instances grouped by scope. + * (targetInstances.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + } + + /** + * Deletes the specified TargetInstance resource. (targetInstances.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetInstance resource. (targetInstances.get) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetInstance + */ + public function get($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + } + + /** + * Creates a TargetInstance resource in the specified project and zone using the + * data included in the request. (targetInstances.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_TargetInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetInstance resources available to the specified + * project and zone. (targetInstances.listTargetInstances) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceList + */ + public function listTargetInstances($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + } +} + +/** + * The "targetPools" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetPools = $computeService->targetPools; + * + */ +class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource +{ + + /** + * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be added. + * @param Google_TargetPoolsAddHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Adds instance url to targetPool. (targetPools.addInstance) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be added. + * @param Google_TargetPoolsAddInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of target pools grouped by scope. + * (targetPools.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetPoolAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); + } + + /** + * Deletes the specified TargetPool resource. (targetPools.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetPool, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetPool resource. (targetPools.get) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPool + */ + public function get($project, $region, $targetPool, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); + } + + /** + * Gets the most recent health check results for each IP for the given instance + * that is referenced by given TargetPool. (targetPools.getHealth) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which the + * queried instance belongs. + * @param Google_InstanceReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPoolInstanceHealth + */ + public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); + } + + /** + * Creates a TargetPool resource in the specified project and region using the + * data included in the request. (targetPools.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param Google_TargetPool $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetPool resources available to the specified project + * and region. (targetPools.listTargetPools) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetPoolList + */ + public function listTargetPools($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); + } + + /** + * Removes health check URL from targetPool. (targetPools.removeHealthCheck) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be removed. + * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Removes instance URL from targetPool. (targetPools.removeInstance) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * instance_url is to be removed. + * @param Google_TargetPoolsRemoveInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Changes backup pool configurations. (targetPools.setBackup) + * + * @param string $project Name of the project scoping this request. + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource for which the + * backup is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * + * @opt_param float failoverRatio New failoverRatio value for the containing + * target pool. + * @return Google_Service_Compute_Operation + */ + public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetVpnGateways" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetVpnGateways = $computeService->targetVpnGateways; + * + */ +class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target VPN gateways grouped by scope. + * (targetVpnGateways.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); + } + + /** + * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetVpnGateway + */ + public function get($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); + } + + /** + * Creates a TargetVpnGateway resource in the specified project and region using + * the data included in the request. (targetVpnGateways.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_TargetVpnGateway $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetVpnGateway resources available to the specified + * project and region. (targetVpnGateways.listTargetVpnGateways) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayList + */ + public function listTargetVpnGateways($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + } +} + +/** + * The "urlMaps" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $urlMaps = $computeService->urlMaps; + * + */ +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified UrlMap resource. (urlMaps.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified UrlMap resource. (urlMaps.get) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMap + */ + public function get($project, $urlMap, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + } + + /** + * Creates a UrlMap resource in the specified project using the data included in + * the request. (urlMaps.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of UrlMap resources available to the specified project. + * (urlMaps.listUrlMaps) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_UrlMapList + */ + public function listUrlMaps($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + } + + /** + * Update the entire content of the UrlMap resource. This method supports patch + * semantics. (urlMaps.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the UrlMap resource. (urlMaps.update) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Run static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * (urlMaps.validate) + * + * @param string $project Name of the project scoping this request. + * @param string $urlMap Name of the UrlMap resource to be validated as. + * @param Google_UrlMapsValidateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMapsValidateResponse + */ + public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + } +} + +/** + * The "vpnTunnels" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $vpnTunnels = $computeService->vpnTunnels; + * + */ +class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of VPN tunnels grouped by scope. + * (vpnTunnels.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + } + + /** + * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified VpnTunnel resource. (vpnTunnels.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_VpnTunnel + */ + public function get($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + } + + /** + * Creates a VpnTunnel resource in the specified project and region using the + * data included in the request. (vpnTunnels.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_VpnTunnel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of VpnTunnel resources contained in the specified project + * and region. (vpnTunnels.listVpnTunnels) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelList + */ + public function listVpnTunnels($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + } +} + +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $zoneOperations = $computeService->zoneOperations; + * + */ +class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified zone-specific Operations resource. + * (zoneOperations.delete) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param string $operation Name of the Operations resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified zone-specific Operations resource. + * (zoneOperations.get) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param string $operation Name of the Operations resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of Operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } +} + +/** + * The "zones" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $zones = $computeService->zones; + * + */ +class Google_Service_Compute_Zones_Resource extends Google_Service_Resource +{ + + /** + * Returns the specified zone resource. (zones.get) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Zone + */ + public function get($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Zone"); + } + + /** + * Retrieves the list of zone resources available to the specified project. + * (zones.listZones) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_ZoneList + */ + public function listZones($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); + } +} + + + + +class Google_Service_Compute_AccessConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + public $natIP; + public $type; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNatIP($natIP) + { + $this->natIP = $natIP; + } + public function getNatIP() + { + return $this->natIP; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Compute_Address extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $address; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $region; + public $selfLink; + public $status; + public $users; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_Compute_AddressAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_AddressAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_AddressList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Address'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } - -/** - * The "addresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $addresses = $computeService->addresses; - * - */ -class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource +class Google_Service_Compute_AddressesScopedList extends Google_Collection { + protected $collection_key = 'addresses'; + protected $internal_gapi_mappings = array( + ); + protected $addressesType = 'Google_Service_Compute_Address'; + protected $addressesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; + protected $warningDataType = ''; - /** - * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + + public function setAddresses($addresses) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); + $this->addresses = $addresses; } - - /** - * Deletes the specified address resource. (addresses.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $address, $optParams = array()) + public function getAddresses() { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->addresses; } - - /** - * Returns the specified address resource. (addresses.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $region, $address, $optParams = array()) + public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); + $this->warning = $warning; } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (addresses.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) + public function getWarning() { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->warning; } +} - /** - * Retrieves the list of address resources contained within the specified - * region. (addresses.listAddresses) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressList - */ - public function listAddresses($project, $region, $optParams = array()) +class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + $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; } } -/** - * The "backendServices" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $backendServices = $computeService->backendServices; - * - */ -class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource +class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; - /** - * Deletes the specified BackendService resource. (backendServices.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $backendService, $optParams = array()) + + public function setKey($key) { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; } +} - /** - * Returns the specified BackendService resource. (backendServices.get) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendService - */ - public function get($project, $backendService, $optParams = array()) +class Google_Service_Compute_AttachedDisk extends Google_Collection +{ + protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); + public $autoDelete; + public $boot; + public $deviceName; + public $index; + protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; + protected $initializeParamsDataType = ''; + public $interface; + public $kind; + public $licenses; + public $mode; + public $source; + public $type; + + + public function setAutoDelete($autoDelete) { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_BackendService"); + $this->autoDelete = $autoDelete; + } + public function getAutoDelete() + { + return $this->autoDelete; + } + public function setBoot($boot) + { + $this->boot = $boot; + } + public function getBoot() + { + return $this->boot; + } + public function setDeviceName($deviceName) + { + $this->deviceName = $deviceName; + } + public function getDeviceName() + { + return $this->deviceName; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) + { + $this->initializeParams = $initializeParams; + } + public function getInitializeParams() + { + return $this->initializeParams; + } + public function setInterface($interface) + { + $this->interface = $interface; + } + public function getInterface() + { + return $this->interface; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; } - - /** - * Gets the most recent health check results for this BackendService. - * (backendServices.getHealth) - * - * @param string $project - * @param string $backendService Name of the BackendService resource to which - * the queried instance belongs. - * @param Google_ResourceGroupReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendServiceGroupHealth - */ - public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) + public function setLicenses($licenses) { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + $this->licenses = $licenses; } - - /** - * Creates a BackendService resource in the specified project using the data - * included in the request. (backendServices.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function getLicenses() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->licenses; } - - /** - * Retrieves the list of BackendService resources available to the specified - * project. (backendServices.listBackendServices) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_BackendServiceList - */ - public function listBackendServices($project, $optParams = array()) + public function setMode($mode) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + $this->mode = $mode; } - - /** - * Update the entire content of the BackendService resource. This method - * supports patch semantics. (backendServices.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function getMode() { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + return $this->mode; } - - /** - * Update the entire content of the BackendService resource. - * (backendServices.update) - * - * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function setSource($source) { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + $this->source = $source; } -} - -/** - * The "diskTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $diskTypes = $computeService->diskTypes; - * - */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function getSource() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + return $this->source; } - - /** - * Returns the specified disk type resource. (diskTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $diskType Name of the disk type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType - */ - public function get($project, $zone, $diskType, $optParams = array()) + public function setType($type) { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + $this->type = $type; } - - /** - * Retrieves the list of disk type resources available to the specified project. - * (diskTypes.listDiskTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskTypeList - */ - public function listDiskTypes($project, $zone, $optParams = array()) + public function getType() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + return $this->type; } } -/** - * The "disks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $disks = $computeService->disks; - * - */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource +class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $diskName; + public $diskSizeGb; + public $diskType; + public $sourceImage; - /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + + public function setDiskName($diskName) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); + $this->diskName = $diskName; } - - /** - * Creates a snapshot of this disk. (disks.createSnapshot) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to snapshot. - * @param Google_Snapshot $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) + public function getDiskName() { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + return $this->diskName; } - - /** - * Deletes the specified persistent disk. (disks.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $disk, $optParams = array()) + public function setDiskSizeGb($diskSizeGb) { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->diskSizeGb = $diskSizeGb; } - - /** - * Returns a specified persistent disk. (disks.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Disk - */ - public function get($project, $zone, $disk, $optParams = array()) + public function getDiskSizeGb() { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Disk"); + return $this->diskSizeGb; } - - /** - * Creates a persistent disk in the specified project using the data included in - * the request. (disks.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function setDiskType($diskType) { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) + { + $this->sourceImage = $sourceImage; } - - /** - * Retrieves the list of persistent disks contained within the specified zone. - * (disks.listDisks) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_DiskList - */ - public function listDisks($project, $zone, $optParams = array()) + public function getSourceImage() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + return $this->sourceImage; } } -/** - * The "firewalls" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $firewalls = $computeService->firewalls; - * - */ -class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource +class Google_Service_Compute_Autoscaler extends Google_Model { + protected $internal_gapi_mappings = array( + ); + protected $autoscalingPolicyType = 'Google_Service_Compute_AutoscalingPolicy'; + protected $autoscalingPolicyDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $target; + public $zone; - /** - * Deletes the specified firewall resource. (firewalls.delete) - * - * @param string $project Project ID for 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()) + + public function setAutoscalingPolicy(Google_Service_Compute_AutoscalingPolicy $autoscalingPolicy) { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->autoscalingPolicy = $autoscalingPolicy; } - - /** - * Returns the specified firewall resource. (firewalls.get) - * - * @param string $project Project ID for 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()) + public function getAutoscalingPolicy() { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Firewall"); + return $this->autoscalingPolicy; } - - /** - * Creates a firewall resource in the specified project using the data included - * in the request. (firewalls.insert) - * - * @param string $project Project ID for 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()) + public function setCreationTimestamp($creationTimestamp) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->creationTimestamp = $creationTimestamp; } - - /** - * Retrieves the list of firewall resources available to the specified project. - * (firewalls.listFirewalls) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_FirewallList - */ - public function listFirewalls($project, $optParams = array()) + public function getCreationTimestamp() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); + return $this->creationTimestamp; } - - /** - * Updates the specified firewall resource with the data included in the - * request. This method supports patch semantics. (firewalls.patch) - * - * @param string $project Project ID for 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()) + public function setDescription($description) { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + $this->description = $description; } - - /** - * Updates the specified firewall resource with the data included in the - * request. (firewalls.update) - * - * @param string $project Project ID for 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()) + public function getDescription() { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->description; } -} - -/** - * The "forwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $forwardingRules = $computeService->forwardingRules; - * - */ -class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of forwarding rules grouped by scope. - * (forwardingRules.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function setId($id) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); + $this->id = $id; } - - /** - * Deletes the specified ForwardingRule resource. (forwardingRules.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $forwardingRule, $optParams = array()) + public function getId() { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->id; } - - /** - * Returns the specified ForwardingRule resource. (forwardingRules.get) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $region, $forwardingRule, $optParams = array()) + public function setKind($kind) { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + $this->kind = $kind; } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (forwardingRules.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + public function getKind() { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->kind; } - - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project and region. (forwardingRules.listForwardingRules) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listForwardingRules($project, $region, $optParams = array()) + public function setName($name) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + $this->name = $name; } - - /** - * Changes target url for forwarding rule. (forwardingRules.setTarget) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + return $this->target; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -/** - * The "globalAddresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalAddresses = $computeService->globalAddresses; - * - */ -class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalerAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_AutoscalersScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; - /** - * Deletes the specified address resource. (globalAddresses.delete) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $address, $optParams = array()) + + public function setId($id) { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->id = $id; } - - /** - * Returns the specified address resource. (globalAddresses.get) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $address, $optParams = array()) + public function getId() { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); + return $this->id; } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (globalAddresses.insert) - * - * @param string $project Project ID for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) + public function setItems($items) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->items = $items; } - - /** - * Retrieves the list of global address resources. - * (globalAddresses.listGlobalAddresses) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_AddressList - */ - public function listGlobalAddresses($project, $optParams = array()) + public function getItems() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + return $this->items; } -} - -/** - * The "globalForwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalForwardingRules = $computeService->globalForwardingRules; - * - */ -class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $forwardingRule, $optParams = array()) + public function setKind($kind) { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->kind = $kind; } - - /** - * Returns the specified ForwardingRule resource. (globalForwardingRules.get) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $forwardingRule, $optParams = array()) + public function getKind() { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + return $this->kind; } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (globalForwardingRules.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + public function setNextPageToken($nextPageToken) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->nextPageToken = $nextPageToken; } - - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project. (globalForwardingRules.listGlobalForwardingRules) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listGlobalForwardingRules($project, $optParams = array()) + public function getNextPageToken() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + return $this->nextPageToken; } - - /** - * Changes target url for forwarding rule. (globalForwardingRules.setTarget) - * - * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + public function setSelfLink($selfLink) { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } -/** - * The "globalOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalOperations = $computeService->globalOperations; - * - */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalerAggregatedListItems extends Google_Model { +} - /** - * Retrieves the list of all operations grouped by scope. - * (globalOperations.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationAggregatedList - */ - public function aggregatedList($project, $optParams = array()) +class Google_Service_Compute_AutoscalerList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Autoscaler'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + return $this->selfLink; } +} - /** - * Deletes the specified operation resource. (globalOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) +class Google_Service_Compute_AutoscalersScopedList extends Google_Collection +{ + protected $collection_key = 'autoscalers'; + protected $internal_gapi_mappings = array( + ); + protected $autoscalersType = 'Google_Service_Compute_Autoscaler'; + protected $autoscalersDataType = 'array'; + protected $warningType = 'Google_Service_Compute_AutoscalersScopedListWarning'; + protected $warningDataType = ''; + + + public function setAutoscalers($autoscalers) { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + $this->autoscalers = $autoscalers; } - - /** - * Retrieves the specified operation resource. (globalOperations.get) - * - * @param string $project Project ID for 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()) + public function getAutoscalers() { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); + return $this->autoscalers; } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalOperations.listGlobalOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listGlobalOperations($project, $optParams = array()) + public function setWarning(Google_Service_Compute_AutoscalersScopedListWarning $warning) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; } } -/** - * The "httpHealthChecks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $httpHealthChecks = $computeService->httpHealthChecks; - * - */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalersScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_AutoscalersScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; - /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $httpHealthCheck, $optParams = array()) + + public function setCode($code) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->code = $code; } - - /** - * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck - */ - public function get($project, $httpHealthCheck, $optParams = array()) + public function getCode() { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + return $this->code; } - - /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function setData($data) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->data = $data; } - - /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_HttpHealthCheckList - */ - public function listHttpHealthChecks($project, $optParams = array()) + public function getData() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + return $this->data; } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function setMessage($message) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + $this->message = $message; } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.update) - * - * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function getMessage() { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->message; } } -/** - * The "images" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $images = $computeService->images; - * - */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalersScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; - /** - * Deletes the specified image resource. (images.delete) - * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. - * (images.deprecate) - * - * @param string $project Project ID for 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()) + public function setKey($key) { - $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); + $this->key = $key; } - - /** - * Returns the specified image resource. (images.get) - * - * @param string $project Project ID for 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()) + public function getKey() { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Image"); + return $this->key; } - - /** - * Creates an image resource in the specified project using the data included in - * the request. (images.insert) - * - * @param string $project Project ID for 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()) + public function setValue($value) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->value = $value; } - - /** - * Retrieves the list of image resources available to the specified project. - * (images.listImages) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ImageList - */ - public function listImages($project, $optParams = array()) + public function getValue() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ImageList"); + return $this->value; } } -/** - * The "instanceTemplates" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instanceTemplates = $computeService->instanceTemplates; - * - */ -class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalingPolicy extends Google_Collection { + protected $collection_key = 'customMetricUtilizations'; + protected $internal_gapi_mappings = array( + ); + public $coolDownPeriodSec; + protected $cpuUtilizationType = 'Google_Service_Compute_AutoscalingPolicyCpuUtilization'; + protected $cpuUtilizationDataType = ''; + protected $customMetricUtilizationsType = 'Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization'; + protected $customMetricUtilizationsDataType = 'array'; + protected $loadBalancingUtilizationType = 'Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization'; + protected $loadBalancingUtilizationDataType = ''; + public $maxNumReplicas; + public $minNumReplicas; - /** - * Deletes the specified instance template. (instanceTemplates.delete) - * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $instanceTemplate, $optParams = array()) + + public function setCoolDownPeriodSec($coolDownPeriodSec) { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->coolDownPeriodSec = $coolDownPeriodSec; } - - /** - * Returns the specified instance template resource. (instanceTemplates.get) - * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceTemplate - */ - public function get($project, $instanceTemplate, $optParams = array()) + public function getCoolDownPeriodSec() { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); + return $this->coolDownPeriodSec; } - - /** - * Creates an instance template in the specified project using the data that is - * included in the request. (instanceTemplates.insert) - * - * @param string $project The project ID for this request. - * @param Google_InstanceTemplate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) + public function setCpuUtilization(Google_Service_Compute_AutoscalingPolicyCpuUtilization $cpuUtilization) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->cpuUtilization = $cpuUtilization; } - - /** - * Retrieves a list of instance templates that are contained within the - * specified project and zone. (instanceTemplates.listInstanceTemplates) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceTemplateList - */ - public function listInstanceTemplates($project, $optParams = array()) + public function getCpuUtilization() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); + return $this->cpuUtilization; + } + public function setCustomMetricUtilizations($customMetricUtilizations) + { + $this->customMetricUtilizations = $customMetricUtilizations; + } + public function getCustomMetricUtilizations() + { + return $this->customMetricUtilizations; + } + public function setLoadBalancingUtilization(Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) + { + $this->loadBalancingUtilization = $loadBalancingUtilization; + } + public function getLoadBalancingUtilization() + { + return $this->loadBalancingUtilization; + } + public function setMaxNumReplicas($maxNumReplicas) + { + $this->maxNumReplicas = $maxNumReplicas; + } + public function getMaxNumReplicas() + { + return $this->maxNumReplicas; + } + public function setMinNumReplicas($minNumReplicas) + { + $this->minNumReplicas = $minNumReplicas; + } + public function getMinNumReplicas() + { + return $this->minNumReplicas; } } -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instances = $computeService->instances; - * - */ -class Google_Service_Compute_Instances_Resource extends Google_Service_Resource +class Google_Service_Compute_AutoscalingPolicyCpuUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $utilizationTarget; - /** - * Adds an access config to an instance's network interface. - * (instances.addAccessConfig) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $networkInterface The name of the network interface to add to - * this instance. - * @param Google_AccessConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) + + public function setUtilizationTarget($utilizationTarget) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); + $this->utilizationTarget = $utilizationTarget; } - - /** - * (instances.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function getUtilizationTarget() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); + return $this->utilizationTarget; } +} - /** - * Attaches a Disk resource to an instance. (instances.attachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) +class Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $metric; + public $utilizationTarget; + public $utilizationTargetType; + + + public function setMetric($metric) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); + $this->metric = $metric; } - - /** - * Deletes the specified Instance resource. For more information, see Shutting - * down an instance. (instances.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function getMetric() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->metric; } - - /** - * Deletes an access config from an instance's network interface. - * (instances.deleteAccessConfig) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $accessConfig The name of the access config to delete. - * @param string $networkInterface The name of the network interface. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) + public function setUtilizationTarget($utilizationTarget) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); - $params = array_merge($params, $optParams); - return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); + $this->utilizationTarget = $utilizationTarget; } - - /** - * Detaches a disk from an instance. (instances.detachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function getUtilizationTarget() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); + return $this->utilizationTarget; + } + public function setUtilizationTargetType($utilizationTargetType) + { + $this->utilizationTargetType = $utilizationTargetType; + } + public function getUtilizationTargetType() + { + return $this->utilizationTargetType; } +} - /** - * Returns the specified instance resource. (instances.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the The name of the zone for 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()) +class Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $utilizationTarget; + + + public function setUtilizationTarget($utilizationTarget) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Instance"); + $this->utilizationTarget = $utilizationTarget; + } + public function getUtilizationTarget() + { + return $this->utilizationTarget; } +} - /** - * Returns the specified instance's serial port output. - * (instances.getSerialPortOutput) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param int port Which COM port to retrieve data from. - * @return Google_Service_Compute_SerialPortOutput - */ - public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) +class Google_Service_Compute_Backend extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $balancingMode; + public $capacityScaler; + public $description; + public $group; + public $maxRate; + public $maxRatePerInstance; + public $maxUtilization; + + + public function setBalancingMode($balancingMode) + { + $this->balancingMode = $balancingMode; + } + public function getBalancingMode() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); + return $this->balancingMode; } - - /** - * Creates an instance resource in the specified project using the data included - * in the request. (instances.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function setCapacityScaler($capacityScaler) { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->capacityScaler = $capacityScaler; } - - /** - * Retrieves the list of instance resources contained within the specified zone. - * (instances.listInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_InstanceList - */ - public function listInstances($project, $zone, $optParams = array()) + public function getCapacityScaler() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); + return $this->capacityScaler; } - - /** - * Performs a hard reset on the instance. (instances.reset) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function reset($project, $zone, $instance, $optParams = array()) + public function setDescription($description) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_Compute_Operation"); + $this->description = $description; } - - /** - * Sets the auto-delete flag for a disk attached to an instance. - * (instances.setDiskAutoDelete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name. - * @param bool $autoDelete Whether to auto-delete the disk when the instance is - * deleted. - * @param string $deviceName The device name of the disk to modify. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) + public function getDescription() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); + return $this->description; } - - /** - * Sets metadata for the specified instance to the data included in the request. - * (instances.setMetadata) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function setGroup($group) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); + $this->group = $group; } - - /** - * Sets an instance's scheduling options. (instances.setScheduling) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param Google_Scheduling $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) + public function getGroup() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); + return $this->group; } - - /** - * Sets tags for the specified instance to the data included in the request. - * (instances.setTags) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for 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()) + public function setMaxRate($maxRate) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); + $this->maxRate = $maxRate; } - - /** - * This method starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * (instances.start) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to start. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function start($project, $zone, $instance, $optParams = array()) + public function getMaxRate() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('start', array($params), "Google_Service_Compute_Operation"); + return $this->maxRate; } - - /** - * This method stops a running instance, shutting it down cleanly, and allows - * you to restart the instance at a later time. Stopped instances do not incur - * per-minute, virtual machine usage charges while they are stopped, but any - * resources that the virtual machine is using, such as persistent disks and - * static IP addresses,will continue to be charged until they are deleted. For - * more information, see Stopping an instance. (instances.stop) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to stop. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function stop($project, $zone, $instance, $optParams = array()) + public function setMaxRatePerInstance($maxRatePerInstance) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params), "Google_Service_Compute_Operation"); + $this->maxRatePerInstance = $maxRatePerInstance; } -} - -/** - * The "licenses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $licenses = $computeService->licenses; - * - */ -class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified license resource. (licenses.get) - * - * @param string $project Project ID for this request. - * @param string $license Name of the license resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_License - */ - public function get($project, $license, $optParams = array()) + public function getMaxRatePerInstance() { - $params = array('project' => $project, 'license' => $license); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_License"); + return $this->maxRatePerInstance; + } + public function setMaxUtilization($maxUtilization) + { + $this->maxUtilization = $maxUtilization; + } + public function getMaxUtilization() + { + return $this->maxUtilization; } } -/** - * The "machineTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $machineTypes = $computeService->machineTypes; - * - */ -class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource +class Google_Service_Compute_BackendService extends Google_Collection { + protected $collection_key = 'healthChecks'; + protected $internal_gapi_mappings = array( + ); + protected $backendsType = 'Google_Service_Compute_Backend'; + protected $backendsDataType = 'array'; + public $creationTimestamp; + public $description; + public $fingerprint; + public $healthChecks; + public $id; + public $kind; + public $name; + public $port; + public $portName; + public $protocol; + public $selfLink; + public $timeoutSec; - /** - * Retrieves the list of machine type resources grouped by scope. - * (machineTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_MachineTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + + public function setBackends($backends) + { + $this->backends = $backends; + } + public function getBackends() + { + return $this->backends; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); + $this->description = $description; } - - /** - * Returns the specified machine type resource. (machineTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $machineType Name of the machine type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_MachineType - */ - public function get($project, $zone, $machineType, $optParams = array()) + public function getDescription() { - $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_MachineType"); + return $this->description; } - - /** - * Retrieves the list of machine type resources available to the specified - * project. (machineTypes.listMachineTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_MachineTypeList - */ - public function listMachineTypes($project, $zone, $optParams = array()) + public function setFingerprint($fingerprint) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); + $this->fingerprint = $fingerprint; } -} - -/** - * The "networks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $networks = $computeService->networks; - * - */ -class Google_Service_Compute_Networks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified network resource. (networks.delete) - * - * @param string $project Project ID for 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()) + public function getFingerprint() { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->fingerprint; } - - /** - * Returns the specified network resource. (networks.get) - * - * @param string $project Project ID for 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()) + public function setHealthChecks($healthChecks) { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Network"); + $this->healthChecks = $healthChecks; } - - /** - * Creates a network resource in the specified project using the data included - * in the request. (networks.insert) - * - * @param string $project Project ID for 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()) + public function getHealthChecks() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->healthChecks; } - - /** - * Retrieves the list of network resources available to the specified project. - * (networks.listNetworks) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_NetworkList - */ - public function listNetworks($project, $optParams = array()) + public function setId($id) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); + $this->id = $id; } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $projects = $computeService->projects; - * - */ -class Google_Service_Compute_Projects_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified project resource. (projects.get) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Project - */ - public function get($project, $optParams = array()) + public function getId() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Project"); + return $this->id; } - - /** - * Moves a persistent disk from one zone to another. (projects.moveDisk) - * - * @param string $project Project ID for this request. - * @param Google_DiskMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) + public function setKind($kind) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + $this->kind = $kind; } - - /** - * Moves an instance and its attached persistent disks from one zone to another. - * (projects.moveInstance) - * - * @param string $project Project ID for this request. - * @param Google_InstanceMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) + public function getKind() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + return $this->kind; } - - /** - * Sets metadata common to all instances within the specified project using the - * data included in the request. (projects.setCommonInstanceMetadata) - * - * @param string $project Project ID for 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()) + public function setName($name) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); + $this->name = $name; } - - /** - * Enables the usage export feature and sets the usage export bucket where - * reports are stored. If you provide an empty request body using this method, - * the usage export feature will be disabled. (projects.setUsageExportBucket) - * - * @param string $project Project ID for this request. - * @param Google_UsageExportLocation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) + public function getName() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + return $this->name; } -} - -/** - * The "regionOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regionOperations = $computeService->regionOperations; - * - */ -class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified region-specific operation resource. - * (regionOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $region, $operation, $optParams = array()) + public function setPort($port) { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + $this->port = $port; } - - /** - * Retrieves the specified region-specific operation resource. - * (regionOperations.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the zone scoping this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $region, $operation, $optParams = array()) + public function getPort() + { + return $this->port; + } + public function setPortName($portName) + { + $this->portName = $portName; + } + public function getPortName() + { + return $this->portName; + } + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + public function getProtocol() { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); + return $this->protocol; } - - /** - * Retrieves the list of operation resources contained within the specified - * region. (regionOperations.listRegionOperations) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listRegionOperations($project, $region, $optParams = array()) + public function setSelfLink($selfLink) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + $this->selfLink = $selfLink; } -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regions = $computeService->regions; - * - */ -class Google_Service_Compute_Regions_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified region resource. (regions.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Region - */ - public function get($project, $region, $optParams = array()) + public function getSelfLink() { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Region"); + return $this->selfLink; } - - /** - * Retrieves the list of region resources available to the specified project. - * (regions.listRegions) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_RegionList - */ - public function listRegions($project, $optParams = array()) + public function setTimeoutSec($timeoutSec) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RegionList"); + $this->timeoutSec = $timeoutSec; + } + public function getTimeoutSec() + { + return $this->timeoutSec; } } -/** - * The "routes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $routes = $computeService->routes; - * - */ -class Google_Service_Compute_Routes_Resource extends Google_Service_Resource +class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection { + protected $collection_key = 'healthStatus'; + protected $internal_gapi_mappings = array( + ); + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; - /** - * Deletes the specified route resource. (routes.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $route Name of the route resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $route, $optParams = array()) + + public function setHealthStatus($healthStatus) { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->healthStatus = $healthStatus; } - - /** - * Returns the specified route resource. (routes.get) - * - * @param string $project Name of the project scoping this request. - * @param string $route Name of the route resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Route - */ - public function get($project, $route, $optParams = array()) + public function getHealthStatus() { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Route"); + return $this->healthStatus; } - - /** - * Creates a route resource in the specified project using the data included in - * the request. (routes.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_Route $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) + public function setKind($kind) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->kind = $kind; } - - /** - * Retrieves the list of route resources available to the specified project. - * (routes.listRoutes) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_RouteList - */ - public function listRoutes($project, $optParams = array()) + public function getKind() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RouteList"); + return $this->kind; } } -/** - * The "snapshots" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $snapshots = $computeService->snapshots; - * - */ -class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource +class Google_Service_Compute_BackendServiceList extends Google_Collection { + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_BackendService'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - /** - * 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()) + + public function setId($id) { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->id = $id; } - - /** - * 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()) + public function getId() { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); + return $this->id; } - - /** - * Retrieves the list of persistent disk snapshot resources contained within the - * specified project. (snapshots.listSnapshots) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_SnapshotList - */ - public function listSnapshots($project, $optParams = array()) + public function setItems($items) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); + $this->items = $items; } -} - -/** - * The "targetHttpProxies" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetHttpProxies = $computeService->targetHttpProxies; - * - */ -class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $targetHttpProxy, $optParams = array()) + public function getItems() { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->items; } - - /** - * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetHttpProxy - */ - public function get($project, $targetHttpProxy, $optParams = array()) + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); + return $this->kind; } - - /** - * Creates a TargetHttpProxy resource in the specified project using the data - * included in the request. (targetHttpProxies.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_TargetHttpProxy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) + public function setNextPageToken($nextPageToken) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->nextPageToken = $nextPageToken; } - - /** - * Retrieves the list of TargetHttpProxy resources available to the specified - * project. (targetHttpProxies.listTargetHttpProxies) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetHttpProxyList - */ - public function listTargetHttpProxies($project, $optParams = array()) + public function getNextPageToken() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + return $this->nextPageToken; } - - /** - * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) - * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL - * map is to be set. - * @param Google_UrlMapReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) + public function setSelfLink($selfLink) { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } -/** - * The "targetInstances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetInstances = $computeService->targetInstances; - * - */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +class Google_Service_Compute_DeprecationStatus extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $deleted; + public $deprecated; + public $obsolete; + public $replacement; + public $state; - /** - * Retrieves the list of target instances grouped by scope. - * (targetInstances.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + + public function setDeleted($deleted) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + $this->deleted = $deleted; } - - /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $targetInstance, $optParams = array()) + public function getDeleted() { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->deleted; } - - /** - * Returns the specified TargetInstance resource. (targetInstances.get) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance - */ - public function get($project, $zone, $targetInstance, $optParams = array()) + public function setDeprecated($deprecated) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + $this->deprecated = $deprecated; } - - /** - * Creates a TargetInstance resource in the specified project and zone using the - * data included in the request. (targetInstances.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param Google_TargetInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) + public function getDeprecated() { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->deprecated; } - - /** - * Retrieves the list of TargetInstance resources available to the specified - * project and zone. (targetInstances.listTargetInstances) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceList - */ - public function listTargetInstances($project, $zone, $optParams = array()) + public function setObsolete($obsolete) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + $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; } } -/** - * The "targetPools" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetPools = $computeService->targetPools; - * - */ -class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource +class Google_Service_Compute_Disk extends Google_Collection { + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $lastAttachTimestamp; + public $lastDetachTimestamp; + public $licenses; + public $name; + public $options; + public $selfLink; + public $sizeGb; + public $sourceImage; + public $sourceImageId; + public $sourceSnapshot; + public $sourceSnapshotId; + public $status; + public $type; + public $users; + public $zone; - /** - * Adds health check URL to targetPool. (targetPools.addHealthCheck) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be added. - * @param Google_TargetPoolsAddHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) + + public function setCreationTimestamp($creationTimestamp) { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); + $this->creationTimestamp = $creationTimestamp; } - - /** - * Adds instance url to targetPool. (targetPools.addInstance) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be added. - * @param Google_TargetPoolsAddInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) + public function getCreationTimestamp() { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; } - - /** - * Retrieves the list of target pools grouped by scope. - * (targetPools.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetPoolAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function getId() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); + return $this->id; } - - /** - * Deletes the specified TargetPool resource. (targetPools.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetPool, $optParams = array()) + public function setKind($kind) { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->kind = $kind; } - - /** - * Returns the specified TargetPool resource. (targetPools.get) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPool - */ - public function get($project, $region, $targetPool, $optParams = array()) + public function getKind() { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); + return $this->kind; } - - /** - * Gets the most recent health check results for each IP for the given instance - * that is referenced by given TargetPool. (targetPools.getHealth) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which the - * queried instance belongs. - * @param Google_InstanceReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPoolInstanceHealth - */ - public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) + public function setLastAttachTimestamp($lastAttachTimestamp) { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); + $this->lastAttachTimestamp = $lastAttachTimestamp; } - - /** - * Creates a TargetPool resource in the specified project and region using the - * data included in the request. (targetPools.insert) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param Google_TargetPool $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) + public function getLastAttachTimestamp() { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->lastAttachTimestamp; } - - /** - * Retrieves the list of TargetPool resources available to the specified project - * and region. (targetPools.listTargetPools) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetPoolList - */ - public function listTargetPools($project, $region, $optParams = array()) + public function setLastDetachTimestamp($lastDetachTimestamp) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); + $this->lastDetachTimestamp = $lastDetachTimestamp; } - - /** - * Removes health check URL from targetPool. (targetPools.removeHealthCheck) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be removed. - * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) + public function getLastDetachTimestamp() { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); + return $this->lastDetachTimestamp; } - - /** - * Removes instance URL from targetPool. (targetPools.removeInstance) - * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be removed. - * @param Google_TargetPoolsRemoveInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) + public function setLicenses($licenses) { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); + $this->licenses = $licenses; } - - /** - * Changes backup pool configurations. (targetPools.setBackup) - * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource for which the - * backup is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * - * @opt_param float failoverRatio New failoverRatio value for the containing - * target pool. - * @return Google_Service_Compute_Operation - */ - public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + public function getLicenses() { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); + return $this->licenses; } -} - -/** - * The "targetVpnGateways" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetVpnGateways = $computeService->targetVpnGateways; - * - */ -class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of target VPN gateways grouped by scope. - * (targetVpnGateways.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetVpnGatewayAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function setName($name) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); + $this->name = $name; } - - /** - * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetVpnGateway, $optParams = array()) + public function getName() { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->name; } - - /** - * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetVpnGateway - */ - public function get($project, $region, $targetVpnGateway, $optParams = array()) + public function setOptions($options) { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); + $this->options = $options; } - - /** - * Creates a TargetVpnGateway resource in the specified project and region using - * the data included in the request. (targetVpnGateways.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_TargetVpnGateway $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) + public function getOptions() { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->options; } - - /** - * Retrieves the list of TargetVpnGateway resources available to the specified - * project and region. (targetVpnGateways.listTargetVpnGateways) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetVpnGatewayList - */ - public function listTargetVpnGateways($project, $region, $optParams = array()) + public function setSelfLink($selfLink) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + $this->selfLink = $selfLink; } -} - -/** - * The "urlMaps" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $urlMaps = $computeService->urlMaps; - * - */ -class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified UrlMap resource. (urlMaps.delete) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $urlMap, $optParams = array()) + public function getSelfLink() { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->selfLink; } - - /** - * Returns the specified UrlMap resource. (urlMaps.get) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMap - */ - public function get($project, $urlMap, $optParams = array()) + public function setSizeGb($sizeGb) { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + $this->sizeGb = $sizeGb; } - - /** - * Creates a UrlMap resource in the specified project using the data included in - * the request. (urlMaps.insert) - * - * @param string $project Name of the project scoping this request. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + public function getSizeGb() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->sizeGb; } - - /** - * Retrieves the list of UrlMap resources available to the specified project. - * (urlMaps.listUrlMaps) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_UrlMapList - */ - public function listUrlMaps($project, $optParams = array()) + public function setSourceImage($sourceImage) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + $this->sourceImage = $sourceImage; } - - /** - * Update the entire content of the UrlMap resource. This method supports patch - * semantics. (urlMaps.patch) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + public function getSourceImage() { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + return $this->sourceImage; } - - /** - * Update the entire content of the UrlMap resource. (urlMaps.update) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) + public function setSourceImageId($sourceImageId) { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + $this->sourceImageId = $sourceImageId; } - - /** - * Run static validation for the UrlMap. In particular, the tests of the - * provided UrlMap will be run. Calling this method does NOT create the UrlMap. - * (urlMaps.validate) - * - * @param string $project Name of the project scoping this request. - * @param string $urlMap Name of the UrlMap resource to be validated as. - * @param Google_UrlMapsValidateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMapsValidateResponse - */ - public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) + public function getSourceImageId() { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + return $this->sourceImageId; } -} - -/** - * The "vpnTunnels" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $vpnTunnels = $computeService->vpnTunnels; - * - */ -class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the list of VPN tunnels grouped by scope. - * (vpnTunnels.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_VpnTunnelAggregatedList - */ - public function aggregatedList($project, $optParams = array()) + public function setSourceSnapshot($sourceSnapshot) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + $this->sourceSnapshot = $sourceSnapshot; } - - /** - * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $vpnTunnel, $optParams = array()) + public function getSourceSnapshot() { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->sourceSnapshot; } - - /** - * Returns the specified VpnTunnel resource. (vpnTunnels.get) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_VpnTunnel - */ - public function get($project, $region, $vpnTunnel, $optParams = array()) + public function setSourceSnapshotId($sourceSnapshotId) { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + $this->sourceSnapshotId = $sourceSnapshotId; } - - /** - * Creates a VpnTunnel resource in the specified project and region using the - * data included in the request. (vpnTunnels.insert) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_VpnTunnel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) + public function getSourceSnapshotId() { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->sourceSnapshotId; } - - /** - * Retrieves the list of VpnTunnel resources contained in the specified project - * and region. (vpnTunnels.listVpnTunnels) - * - * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_VpnTunnelList - */ - public function listVpnTunnels($project, $region, $optParams = array()) + public function setStatus($status) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + $this->status = $status; } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $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 Project ID for 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()) + public function getStatus() + { + return $this->status; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->type; } - - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project Project ID for 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()) + public function setUsers($users) { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); + $this->users = $users; } - - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) + public function getUsers() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + return $this->users; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -/** - * The "zones" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $zones = $computeService->zones; - * - */ -class Google_Service_Compute_Zones_Resource extends Google_Service_Resource +class Google_Service_Compute_DiskAggregatedList extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; - /** - * Returns the specified zone resource. (zones.get) - * - * @param string $project Project ID for 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()) + + public function setId($id) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Zone"); + $this->id = $id; } - - /** - * Retrieves the list of zone resources available to the specified project. - * (zones.listZones) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_ZoneList - */ - public function listZones($project, $optParams = array()) + public function getId() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } +class Google_Service_Compute_DiskAggregatedListItems extends Google_Model +{ +} - - -class Google_Service_Compute_AccessConfig extends Google_Model +class Google_Service_Compute_DiskList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $id; + protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsDataType = 'array'; public $kind; - public $name; - public $natIP; - public $type; + 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; @@ -5996,57 +9346,67 @@ public function getKind() { return $this->kind; } - public function setName($name) + public function setNextPageToken($nextPageToken) { - $this->name = $name; + $this->nextPageToken = $nextPageToken; } - public function getName() + public function getNextPageToken() { - return $this->name; + return $this->nextPageToken; } - public function setNatIP($natIP) + public function setSelfLink($selfLink) { - $this->natIP = $natIP; + $this->selfLink = $selfLink; } - public function getNatIP() + public function getSelfLink() { - return $this->natIP; + return $this->selfLink; } - public function setType($type) +} + +class Google_Service_Compute_DiskMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetDisk; + + + public function setDestinationZone($destinationZone) { - $this->type = $type; + $this->destinationZone = $destinationZone; } - public function getType() + public function getDestinationZone() { - return $this->type; + return $this->destinationZone; + } + public function setTargetDisk($targetDisk) + { + $this->targetDisk = $targetDisk; + } + public function getTargetDisk() + { + return $this->targetDisk; } } -class Google_Service_Compute_Address extends Google_Collection +class Google_Service_Compute_DiskType extends Google_Model { - protected $collection_key = 'users'; protected $internal_gapi_mappings = array( ); - public $address; public $creationTimestamp; + public $defaultDiskSizeGb; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; public $description; public $id; public $kind; public $name; - public $region; public $selfLink; - public $status; - public $users; + public $validDiskSize; + public $zone; - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -6055,6 +9415,22 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } + public function setDefaultDiskSizeGb($defaultDiskSizeGb) + { + $this->defaultDiskSizeGb = $defaultDiskSizeGb; + } + public function getDefaultDiskSizeGb() + { + return $this->defaultDiskSizeGb; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } public function setDescription($description) { $this->description = $description; @@ -6087,14 +9463,6 @@ public function getName() { return $this->name; } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -6103,30 +9471,30 @@ public function getSelfLink() { return $this->selfLink; } - public function setStatus($status) + public function setValidDiskSize($validDiskSize) { - $this->status = $status; + $this->validDiskSize = $validDiskSize; } - public function getStatus() + public function getValidDiskSize() { - return $this->status; + return $this->validDiskSize; } - public function setUsers($users) + public function setZone($zone) { - $this->users = $users; + $this->zone = $zone; } - public function getUsers() + public function getZone() { - return $this->users; + return $this->zone; } } -class Google_Service_Compute_AddressAggregatedList extends Google_Model +class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; + protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -6175,17 +9543,17 @@ public function getSelfLink() } } -class Google_Service_Compute_AddressAggregatedListItems extends Google_Model +class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model { } -class Google_Service_Compute_AddressList extends Google_Collection +class Google_Service_Compute_DiskTypeList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Address'; + protected $itemsType = 'Google_Service_Compute_DiskType'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6234,26 +9602,26 @@ public function getSelfLink() } } -class Google_Service_Compute_AddressesScopedList extends Google_Collection +class Google_Service_Compute_DiskTypesScopedList extends Google_Collection { - protected $collection_key = 'addresses'; + protected $collection_key = 'diskTypes'; protected $internal_gapi_mappings = array( ); - protected $addressesType = 'Google_Service_Compute_Address'; - protected $addressesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; + protected $diskTypesType = 'Google_Service_Compute_DiskType'; + protected $diskTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; protected $warningDataType = ''; - public function setAddresses($addresses) + public function setDiskTypes($diskTypes) { - $this->addresses = $addresses; + $this->diskTypes = $diskTypes; } - public function getAddresses() + public function getDiskTypes() { - return $this->addresses; + return $this->diskTypes; } - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) + public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) { $this->warning = $warning; } @@ -6263,13 +9631,13 @@ public function getWarning() } } -class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection +class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection { protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); public $code; - protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; + protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; protected $dataDataType = 'array'; public $message; @@ -6300,7 +9668,7 @@ public function getMessage() } } -class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model +class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -6326,258 +9694,124 @@ public function getValue() } } -class Google_Service_Compute_AttachedDisk extends Google_Collection +class Google_Service_Compute_DisksScopedList extends Google_Collection { - protected $collection_key = 'licenses'; + protected $collection_key = 'disks'; protected $internal_gapi_mappings = array( ); - public $autoDelete; - public $boot; - public $deviceName; - public $index; - protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; - protected $initializeParamsDataType = ''; - public $interface; - public $kind; - public $licenses; - public $mode; - public $source; - public $type; + protected $disksType = 'Google_Service_Compute_Disk'; + protected $disksDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; + protected $warningDataType = ''; - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } - public function getAutoDelete() - { - return $this->autoDelete; - } - public function setBoot($boot) - { - $this->boot = $boot; - } - public function getBoot() - { - return $this->boot; - } - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } - public function getDeviceName() - { - return $this->deviceName; - } - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } - public function getInitializeParams() - { - return $this->initializeParams; - } - public function setInterface($interface) - { - $this->interface = $interface; - } - public function getInterface() - { - return $this->interface; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setMode($mode) - { - $this->mode = $mode; - } - public function getMode() - { - return $this->mode; - } - public function setSource($source) + public function setDisks($disks) { - $this->source = $source; + $this->disks = $disks; } - public function getSource() + public function getDisks() { - return $this->source; + return $this->disks; } - public function setType($type) + public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) { - $this->type = $type; + $this->warning = $warning; } - public function getType() + public function getWarning() { - return $this->type; + return $this->warning; } } -class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model +class Google_Service_Compute_DisksScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); - public $diskName; - public $diskSizeGb; - public $diskType; - public $sourceImage; + public $code; + protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; - public function setDiskName($diskName) - { - $this->diskName = $diskName; - } - public function getDiskName() - { - return $this->diskName; - } - public function setDiskSizeGb($diskSizeGb) + public function setCode($code) { - $this->diskSizeGb = $diskSizeGb; + $this->code = $code; } - public function getDiskSizeGb() + public function getCode() { - return $this->diskSizeGb; + return $this->code; } - public function setDiskType($diskType) + public function setData($data) { - $this->diskType = $diskType; + $this->data = $data; } - public function getDiskType() + public function getData() { - return $this->diskType; + return $this->data; } - public function setSourceImage($sourceImage) + public function setMessage($message) { - $this->sourceImage = $sourceImage; + $this->message = $message; } - public function getSourceImage() + public function getMessage() { - return $this->sourceImage; + return $this->message; } } -class Google_Service_Compute_Backend extends Google_Model +class Google_Service_Compute_DisksScopedListWarningData extends Google_Model { protected $internal_gapi_mappings = array( ); - public $balancingMode; - public $capacityScaler; - public $description; - public $group; - public $maxRate; - public $maxRatePerInstance; - public $maxUtilization; + public $key; + public $value; - public function setBalancingMode($balancingMode) - { - $this->balancingMode = $balancingMode; - } - public function getBalancingMode() - { - return $this->balancingMode; - } - public function setCapacityScaler($capacityScaler) - { - $this->capacityScaler = $capacityScaler; - } - public function getCapacityScaler() - { - return $this->capacityScaler; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } - public function setMaxRate($maxRate) - { - $this->maxRate = $maxRate; - } - public function getMaxRate() - { - return $this->maxRate; - } - public function setMaxRatePerInstance($maxRatePerInstance) + public function setKey($key) { - $this->maxRatePerInstance = $maxRatePerInstance; + $this->key = $key; } - public function getMaxRatePerInstance() + public function getKey() { - return $this->maxRatePerInstance; + return $this->key; } - public function setMaxUtilization($maxUtilization) + public function setValue($value) { - $this->maxUtilization = $maxUtilization; + $this->value = $value; } - public function getMaxUtilization() + public function getValue() { - return $this->maxUtilization; + return $this->value; } } -class Google_Service_Compute_BackendService extends Google_Collection +class Google_Service_Compute_Firewall extends Google_Collection { - protected $collection_key = 'healthChecks'; + protected $collection_key = 'targetTags'; protected $internal_gapi_mappings = array( ); - protected $backendsType = 'Google_Service_Compute_Backend'; - protected $backendsDataType = 'array'; + protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; + protected $allowedDataType = 'array'; public $creationTimestamp; public $description; - public $fingerprint; - public $healthChecks; public $id; public $kind; public $name; - public $port; - public $portName; - public $protocol; + public $network; public $selfLink; - public $timeoutSec; + public $sourceRanges; + public $sourceTags; + public $targetTags; - public function setBackends($backends) + public function setAllowed($allowed) { - $this->backends = $backends; + $this->allowed = $allowed; } - public function getBackends() + public function getAllowed() { - return $this->backends; + return $this->allowed; } public function setCreationTimestamp($creationTimestamp) { @@ -6595,22 +9829,6 @@ public function getDescription() { return $this->description; } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } public function setId($id) { $this->id = $id; @@ -6635,83 +9853,83 @@ public function getName() { return $this->name; } - public function setPort($port) + public function setNetwork($network) { - $this->port = $port; + $this->network = $network; } - public function getPort() + public function getNetwork() { - return $this->port; + return $this->network; } - public function setPortName($portName) + public function setSelfLink($selfLink) { - $this->portName = $portName; + $this->selfLink = $selfLink; } - public function getPortName() + public function getSelfLink() { - return $this->portName; + return $this->selfLink; } - public function setProtocol($protocol) + public function setSourceRanges($sourceRanges) { - $this->protocol = $protocol; + $this->sourceRanges = $sourceRanges; } - public function getProtocol() + public function getSourceRanges() { - return $this->protocol; + return $this->sourceRanges; } - public function setSelfLink($selfLink) + public function setSourceTags($sourceTags) { - $this->selfLink = $selfLink; + $this->sourceTags = $sourceTags; } - public function getSelfLink() + public function getSourceTags() { - return $this->selfLink; + return $this->sourceTags; } - public function setTimeoutSec($timeoutSec) + public function setTargetTags($targetTags) { - $this->timeoutSec = $timeoutSec; + $this->targetTags = $targetTags; } - public function getTimeoutSec() + public function getTargetTags() { - return $this->timeoutSec; + return $this->targetTags; } } -class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection +class Google_Service_Compute_FirewallAllowed extends Google_Collection { - protected $collection_key = 'healthStatus'; + protected $collection_key = 'ports'; protected $internal_gapi_mappings = array( + "iPProtocol" => "IPProtocol", ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; + public $iPProtocol; + public $ports; - public function setHealthStatus($healthStatus) + public function setIPProtocol($iPProtocol) { - $this->healthStatus = $healthStatus; + $this->iPProtocol = $iPProtocol; } - public function getHealthStatus() + public function getIPProtocol() { - return $this->healthStatus; + return $this->iPProtocol; } - public function setKind($kind) + public function setPorts($ports) { - $this->kind = $kind; + $this->ports = $ports; } - public function getKind() + public function getPorts() { - return $this->kind; + return $this->ports; } } -class Google_Service_Compute_BackendServiceList extends Google_Collection +class Google_Service_Compute_FirewallList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_BackendService'; + protected $itemsType = 'Google_Service_Compute_Firewall'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6760,245 +9978,121 @@ public function getSelfLink() } } -class Google_Service_Compute_DeprecationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setDeprecated($deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setObsolete($obsolete) - { - $this->obsolete = $obsolete; - } - public function getObsolete() - { - return $this->obsolete; - } - public function setReplacement($replacement) - { - $this->replacement = $replacement; - } - public function getReplacement() - { - return $this->replacement; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Compute_Disk extends Google_Collection +class Google_Service_Compute_ForwardingRule extends Google_Model { - protected $collection_key = 'users'; protected $internal_gapi_mappings = array( + "iPAddress" => "IPAddress", + "iPProtocol" => "IPProtocol", ); + public $iPAddress; + public $iPProtocol; public $creationTimestamp; public $description; public $id; public $kind; - public $lastAttachTimestamp; - public $lastDetachTimestamp; - public $licenses; public $name; - public $options; + public $portRange; + public $region; public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $users; - public $zone; + public $target; - 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 setLastAttachTimestamp($lastAttachTimestamp) - { - $this->lastAttachTimestamp = $lastAttachTimestamp; - } - public function getLastAttachTimestamp() - { - return $this->lastAttachTimestamp; - } - public function setLastDetachTimestamp($lastDetachTimestamp) - { - $this->lastDetachTimestamp = $lastDetachTimestamp; - } - public function getLastDetachTimestamp() - { - return $this->lastDetachTimestamp; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptions($options) + public function setIPAddress($iPAddress) { - $this->options = $options; + $this->iPAddress = $iPAddress; } - public function getOptions() + public function getIPAddress() { - return $this->options; + return $this->iPAddress; } - public function setSelfLink($selfLink) + public function setIPProtocol($iPProtocol) { - $this->selfLink = $selfLink; + $this->iPProtocol = $iPProtocol; } - public function getSelfLink() + public function getIPProtocol() { - return $this->selfLink; + return $this->iPProtocol; } - public function setSizeGb($sizeGb) + public function setCreationTimestamp($creationTimestamp) { - $this->sizeGb = $sizeGb; + $this->creationTimestamp = $creationTimestamp; } - public function getSizeGb() + public function getCreationTimestamp() { - return $this->sizeGb; + return $this->creationTimestamp; } - public function setSourceImage($sourceImage) + public function setDescription($description) { - $this->sourceImage = $sourceImage; + $this->description = $description; } - public function getSourceImage() + public function getDescription() { - return $this->sourceImage; + return $this->description; } - public function setSourceImageId($sourceImageId) + public function setId($id) { - $this->sourceImageId = $sourceImageId; + $this->id = $id; } - public function getSourceImageId() + public function getId() { - return $this->sourceImageId; + return $this->id; } - public function setSourceSnapshot($sourceSnapshot) + public function setKind($kind) { - $this->sourceSnapshot = $sourceSnapshot; + $this->kind = $kind; } - public function getSourceSnapshot() + public function getKind() { - return $this->sourceSnapshot; + return $this->kind; } - public function setSourceSnapshotId($sourceSnapshotId) + public function setName($name) { - $this->sourceSnapshotId = $sourceSnapshotId; + $this->name = $name; } - public function getSourceSnapshotId() + public function getName() { - return $this->sourceSnapshotId; + return $this->name; } - public function setStatus($status) + public function setPortRange($portRange) { - $this->status = $status; + $this->portRange = $portRange; } - public function getStatus() + public function getPortRange() { - return $this->status; + return $this->portRange; } - public function setType($type) + public function setRegion($region) { - $this->type = $type; + $this->region = $region; } - public function getType() + public function getRegion() { - return $this->type; + return $this->region; } - public function setUsers($users) + public function setSelfLink($selfLink) { - $this->users = $users; + $this->selfLink = $selfLink; } - public function getUsers() + public function getSelfLink() { - return $this->users; + return $this->selfLink; } - public function setZone($zone) + public function setTarget($target) { - $this->zone = $zone; + $this->target = $target; } - public function getZone() + public function getTarget() { - return $this->zone; + return $this->target; } } -class Google_Service_Compute_DiskAggregatedList extends Google_Model +class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -7047,17 +10141,17 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskAggregatedListItems extends Google_Model +class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { } -class Google_Service_Compute_DiskList extends Google_Collection +class Google_Service_Compute_ForwardingRuleList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsType = 'Google_Service_Compute_ForwardingRule'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7106,49 +10200,222 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskMoveRequest extends Google_Model +class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection { + protected $collection_key = 'forwardingRules'; protected $internal_gapi_mappings = array( ); - public $destinationZone; - public $targetDisk; + protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; + protected $forwardingRulesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; + protected $warningDataType = ''; + + + public function setForwardingRules($forwardingRules) + { + $this->forwardingRules = $forwardingRules; + } + public function getForwardingRules() + { + return $this->forwardingRules; + } + public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Compute_HealthCheckReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $healthCheck; + + + public function setHealthCheck($healthCheck) + { + $this->healthCheck = $healthCheck; + } + public function getHealthCheck() + { + return $this->healthCheck; + } +} + +class Google_Service_Compute_HealthStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $healthState; + public $instance; + public $ipAddress; + public $port; + + + public function setHealthState($healthState) + { + $this->healthState = $healthState; + } + public function getHealthState() + { + return $this->healthState; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + public function getIpAddress() + { + return $this->ipAddress; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } +} + +class Google_Service_Compute_HostRule extends Google_Collection +{ + protected $collection_key = 'hosts'; + protected $internal_gapi_mappings = array( + ); + public $description; + public $hosts; + public $pathMatcher; - public function setDestinationZone($destinationZone) + public function setDescription($description) { - $this->destinationZone = $destinationZone; + $this->description = $description; } - public function getDestinationZone() + public function getDescription() { - return $this->destinationZone; + return $this->description; } - public function setTargetDisk($targetDisk) + public function setHosts($hosts) { - $this->targetDisk = $targetDisk; + $this->hosts = $hosts; } - public function getTargetDisk() + public function getHosts() { - return $this->targetDisk; + return $this->hosts; + } + public function setPathMatcher($pathMatcher) + { + $this->pathMatcher = $pathMatcher; + } + public function getPathMatcher() + { + return $this->pathMatcher; } } -class Google_Service_Compute_DiskType extends Google_Model +class Google_Service_Compute_HttpHealthCheck extends Google_Model { protected $internal_gapi_mappings = array( ); + public $checkIntervalSec; public $creationTimestamp; - public $defaultDiskSizeGb; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; + public $healthyThreshold; + public $host; public $id; public $kind; public $name; + public $port; + public $requestPath; public $selfLink; - public $validDiskSize; - public $zone; + public $timeoutSec; + public $unhealthyThreshold; + public function setCheckIntervalSec($checkIntervalSec) + { + $this->checkIntervalSec = $checkIntervalSec; + } + public function getCheckIntervalSec() + { + return $this->checkIntervalSec; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -7157,29 +10424,29 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDefaultDiskSizeGb($defaultDiskSizeGb) + public function setDescription($description) { - $this->defaultDiskSizeGb = $defaultDiskSizeGb; + $this->description = $description; } - public function getDefaultDiskSizeGb() + public function getDescription() { - return $this->defaultDiskSizeGb; + return $this->description; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + public function setHealthyThreshold($healthyThreshold) { - $this->deprecated = $deprecated; + $this->healthyThreshold = $healthyThreshold; } - public function getDeprecated() + public function getHealthyThreshold() { - return $this->deprecated; + return $this->healthyThreshold; } - public function setDescription($description) + public function setHost($host) { - $this->description = $description; + $this->host = $host; } - public function getDescription() + public function getHost() { - return $this->description; + return $this->host; } public function setId($id) { @@ -7205,6 +10472,22 @@ public function getName() { return $this->name; } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setRequestPath($requestPath) + { + $this->requestPath = $requestPath; + } + public function getRequestPath() + { + return $this->requestPath; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -7213,31 +10496,32 @@ public function getSelfLink() { return $this->selfLink; } - public function setValidDiskSize($validDiskSize) + public function setTimeoutSec($timeoutSec) { - $this->validDiskSize = $validDiskSize; + $this->timeoutSec = $timeoutSec; } - public function getValidDiskSize() + public function getTimeoutSec() { - return $this->validDiskSize; + return $this->timeoutSec; } - public function setZone($zone) + public function setUnhealthyThreshold($unhealthyThreshold) { - $this->zone = $zone; + $this->unhealthyThreshold = $unhealthyThreshold; } - public function getZone() + public function getUnhealthyThreshold() { - return $this->zone; + return $this->unhealthyThreshold; } } -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model +class Google_Service_Compute_HttpHealthCheckList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; - protected $itemsDataType = 'map'; + protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; @@ -7285,275 +10569,288 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_DiskTypeList extends Google_Collection +class Google_Service_Compute_Image extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'licenses'; protected $internal_gapi_mappings = array( ); + public $archiveSizeBytes; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $diskSizeGb; public $id; - protected $itemsType = 'Google_Service_Compute_DiskType'; - protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; + public $licenses; + public $name; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $sourceType; + public $status; - public function setId($id) + public function setArchiveSizeBytes($archiveSizeBytes) { - $this->id = $id; + $this->archiveSizeBytes = $archiveSizeBytes; } - public function getId() + public function getArchiveSizeBytes() { - return $this->id; + return $this->archiveSizeBytes; } - public function setItems($items) + public function setCreationTimestamp($creationTimestamp) { - $this->items = $items; + $this->creationTimestamp = $creationTimestamp; } - public function getItems() + public function getCreationTimestamp() { - return $this->items; + return $this->creationTimestamp; } - public function setKind($kind) + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { - $this->kind = $kind; + $this->deprecated = $deprecated; } - public function getKind() + public function getDeprecated() { - return $this->kind; + return $this->deprecated; } - public function setNextPageToken($nextPageToken) + public function setDescription($description) { - $this->nextPageToken = $nextPageToken; + $this->description = $description; } - public function getNextPageToken() + public function getDescription() { - return $this->nextPageToken; + return $this->description; } - public function setSelfLink($selfLink) + public function setDiskSizeGb($diskSizeGb) { - $this->selfLink = $selfLink; + $this->diskSizeGb = $diskSizeGb; } - public function getSelfLink() + public function getDiskSizeGb() { - return $this->selfLink; + return $this->diskSizeGb; } -} - -class Google_Service_Compute_DiskTypesScopedList extends Google_Collection -{ - protected $collection_key = 'diskTypes'; - protected $internal_gapi_mappings = array( - ); - protected $diskTypesType = 'Google_Service_Compute_DiskType'; - protected $diskTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; - protected $warningDataType = ''; - - - public function setDiskTypes($diskTypes) + public function setId($id) { - $this->diskTypes = $diskTypes; + $this->id = $id; } - public function getDiskTypes() + public function getId() { - return $this->diskTypes; + return $this->id; } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) + public function setKind($kind) { - $this->warning = $warning; + $this->kind = $kind; } - public function getWarning() + public function getKind() { - return $this->warning; + return $this->kind; } -} - -class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) + public function setLicenses($licenses) { - $this->code = $code; + $this->licenses = $licenses; } - public function getCode() + public function getLicenses() { - return $this->code; + return $this->licenses; } - public function setData($data) + public function setName($name) { - $this->data = $data; + $this->name = $name; } - public function getData() + public function getName() + { + return $this->name; + } + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + { + $this->rawDisk = $rawDisk; + } + public function getRawDisk() + { + return $this->rawDisk; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + public function getSourceDisk() { - return $this->data; + return $this->sourceDisk; } - public function setMessage($message) + public function setSourceDiskId($sourceDiskId) { - $this->message = $message; + $this->sourceDiskId = $sourceDiskId; } - public function getMessage() + public function getSourceDiskId() { - return $this->message; + return $this->sourceDiskId; } -} - -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) + public function setSourceType($sourceType) { - $this->key = $key; + $this->sourceType = $sourceType; } - public function getKey() + public function getSourceType() { - return $this->key; + return $this->sourceType; } - public function setValue($value) + public function setStatus($status) { - $this->value = $value; + $this->status = $status; } - public function getValue() + public function getStatus() { - return $this->value; + return $this->status; } } -class Google_Service_Compute_DisksScopedList extends Google_Collection +class Google_Service_Compute_ImageList extends Google_Collection { - protected $collection_key = 'disks'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $disksType = 'Google_Service_Compute_Disk'; - protected $disksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; - protected $warningDataType = ''; + public $id; + protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setDisks($disks) + public function setId($id) { - $this->disks = $disks; + $this->id = $id; } - public function getDisks() + public function getId() { - return $this->disks; + return $this->id; } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) + public function setItems($items) { - $this->warning = $warning; + $this->items = $items; } - public function getWarning() + public function getItems() { - return $this->warning; + return $this->items; } -} - -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) + public function setKind($kind) { - $this->code = $code; + $this->kind = $kind; } - public function getCode() + public function getKind() { - return $this->code; + return $this->kind; } - public function setData($data) + public function setNextPageToken($nextPageToken) { - $this->data = $data; + $this->nextPageToken = $nextPageToken; } - public function getData() + public function getNextPageToken() { - return $this->data; + return $this->nextPageToken; } - public function setMessage($message) + public function setSelfLink($selfLink) { - $this->message = $message; + $this->selfLink = $selfLink; } - public function getMessage() + public function getSelfLink() { - return $this->message; + return $this->selfLink; } } -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model +class Google_Service_Compute_ImageRawDisk extends Google_Model { protected $internal_gapi_mappings = array( ); - public $key; - public $value; + public $containerType; + public $sha1Checksum; + public $source; - public function setKey($key) + public function setContainerType($containerType) { - $this->key = $key; + $this->containerType = $containerType; } - public function getKey() + public function getContainerType() { - return $this->key; + return $this->containerType; } - public function setValue($value) + public function setSha1Checksum($sha1Checksum) { - $this->value = $value; + $this->sha1Checksum = $sha1Checksum; } - public function getValue() + public function getSha1Checksum() { - return $this->value; + return $this->sha1Checksum; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; } } -class Google_Service_Compute_Firewall extends Google_Collection +class Google_Service_Compute_Instance extends Google_Collection { - protected $collection_key = 'targetTags'; + protected $collection_key = 'serviceAccounts'; protected $internal_gapi_mappings = array( ); - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; + public $canIpForward; + public $cpuPlatform; public $creationTimestamp; public $description; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; public $id; public $kind; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; public $name; - public $network; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + public $status; + public $statusMessage; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + public $zone; - public function setAllowed($allowed) + public function setCanIpForward($canIpForward) { - $this->allowed = $allowed; + $this->canIpForward = $canIpForward; } - public function getAllowed() + public function getCanIpForward() { - return $this->allowed; + return $this->canIpForward; + } + public function setCpuPlatform($cpuPlatform) + { + $this->cpuPlatform = $cpuPlatform; + } + public function getCpuPlatform() + { + return $this->cpuPlatform; } public function setCreationTimestamp($creationTimestamp) { @@ -7571,6 +10868,14 @@ 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; @@ -7587,6 +10892,22 @@ 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; @@ -7595,13 +10916,21 @@ public function getName() { return $this->name; } - public function setNetwork($network) + public function setNetworkInterfaces($networkInterfaces) { - $this->network = $network; + $this->networkInterfaces = $networkInterfaces; } - public function getNetwork() + public function getNetworkInterfaces() { - return $this->network; + return $this->networkInterfaces; + } + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) + { + $this->scheduling = $scheduling; + } + public function getScheduling() + { + return $this->scheduling; } public function setSelfLink($selfLink) { @@ -7611,68 +10940,55 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceRanges($sourceRanges) - { - $this->sourceRanges = $sourceRanges; - } - public function getSourceRanges() + public function setServiceAccounts($serviceAccounts) { - return $this->sourceRanges; + $this->serviceAccounts = $serviceAccounts; } - public function setSourceTags($sourceTags) + public function getServiceAccounts() { - $this->sourceTags = $sourceTags; + return $this->serviceAccounts; } - public function getSourceTags() + public function setStatus($status) { - return $this->sourceTags; + $this->status = $status; } - public function setTargetTags($targetTags) + public function getStatus() { - $this->targetTags = $targetTags; + return $this->status; } - public function getTargetTags() + public function setStatusMessage($statusMessage) { - return $this->targetTags; + $this->statusMessage = $statusMessage; } -} - -class Google_Service_Compute_FirewallAllowed extends Google_Collection -{ - protected $collection_key = 'ports'; - protected $internal_gapi_mappings = array( - "iPProtocol" => "IPProtocol", - ); - public $iPProtocol; - public $ports; - - - public function setIPProtocol($iPProtocol) + public function getStatusMessage() { - $this->iPProtocol = $iPProtocol; + return $this->statusMessage; } - public function getIPProtocol() + public function setTags(Google_Service_Compute_Tags $tags) { - return $this->iPProtocol; + $this->tags = $tags; } - public function setPorts($ports) + public function getTags() { - $this->ports = $ports; + return $this->tags; } - public function getPorts() + public function setZone($zone) { - return $this->ports; + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -class Google_Service_Compute_FirewallList extends Google_Collection +class Google_Service_Compute_InstanceAggregatedList extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Firewall'; - protected $itemsDataType = 'array'; + protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsDataType = 'map'; public $kind; public $nextPageToken; public $selfLink; @@ -7720,41 +11036,29 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRule extends Google_Model +class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_InstanceGroup extends Google_Collection { + protected $collection_key = 'namedPorts'; protected $internal_gapi_mappings = array( - "iPAddress" => "IPAddress", - "iPProtocol" => "IPProtocol", ); - public $iPAddress; - public $iPProtocol; public $creationTimestamp; public $description; + public $fingerprint; public $id; public $kind; public $name; - public $portRange; - public $region; + protected $namedPortsType = 'Google_Service_Compute_NamedPort'; + protected $namedPortsDataType = 'array'; + public $network; public $selfLink; - public $target; + public $size; + public $zone; - public function setIPAddress($iPAddress) - { - $this->iPAddress = $iPAddress; - } - public function getIPAddress() - { - return $this->iPAddress; - } - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } - public function getIPProtocol() - { - return $this->iPProtocol; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -7771,6 +11075,14 @@ public function getDescription() { return $this->description; } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } public function setId($id) { $this->id = $id; @@ -7795,21 +11107,21 @@ public function getName() { return $this->name; } - public function setPortRange($portRange) + public function setNamedPorts($namedPorts) { - $this->portRange = $portRange; + $this->namedPorts = $namedPorts; } - public function getPortRange() + public function getNamedPorts() { - return $this->portRange; + return $this->namedPorts; } - public function setRegion($region) + public function setNetwork($network) { - $this->region = $region; + $this->network = $network; } - public function getRegion() + public function getNetwork() { - return $this->region; + return $this->network; } public function setSelfLink($selfLink) { @@ -7819,22 +11131,30 @@ public function getSelfLink() { return $this->selfLink; } - public function setTarget($target) + public function setSize($size) { - $this->target = $target; + $this->size = $size; } - public function getTarget() + public function getSize() { - return $this->target; + return $this->size; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model +class Google_Service_Compute_InstanceGroupAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; + protected $itemsType = 'Google_Service_Compute_InstanceGroupsScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -7883,17 +11203,17 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model +class Google_Service_Compute_InstanceGroupAggregatedListItems extends Google_Model { } -class Google_Service_Compute_ForwardingRuleList extends Google_Collection +class Google_Service_Compute_InstanceGroupList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRule'; + protected $itemsType = 'Google_Service_Compute_InstanceGroup'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7942,327 +11262,278 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection +class Google_Service_Compute_InstanceGroupManager extends Google_Collection { - protected $collection_key = 'forwardingRules'; + protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); - protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; - protected $forwardingRulesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; - protected $warningDataType = ''; + public $baseInstanceName; + public $creationTimestamp; + protected $currentActionsType = 'Google_Service_Compute_InstanceGroupManagerActionsSummary'; + protected $currentActionsDataType = ''; + public $description; + public $fingerprint; + public $id; + public $instanceGroup; + public $instanceTemplate; + public $kind; + public $name; + public $selfLink; + public $targetPools; + public $targetSize; + public $zone; - public function setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - public function getForwardingRules() - { - return $this->forwardingRules; - } - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) + public function setBaseInstanceName($baseInstanceName) { - $this->warning = $warning; + $this->baseInstanceName = $baseInstanceName; } - public function getWarning() + public function getBaseInstanceName() { - return $this->warning; + return $this->baseInstanceName; } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) + public function setCreationTimestamp($creationTimestamp) { - $this->code = $code; + $this->creationTimestamp = $creationTimestamp; } - public function getCode() + public function getCreationTimestamp() { - return $this->code; + return $this->creationTimestamp; } - public function setData($data) + public function setCurrentActions(Google_Service_Compute_InstanceGroupManagerActionsSummary $currentActions) { - $this->data = $data; + $this->currentActions = $currentActions; } - public function getData() + public function getCurrentActions() { - return $this->data; + return $this->currentActions; } - public function setMessage($message) + public function setDescription($description) { - $this->message = $message; + $this->description = $description; } - public function getMessage() + public function getDescription() { - return $this->message; + return $this->description; } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) + public function setFingerprint($fingerprint) { - $this->key = $key; + $this->fingerprint = $fingerprint; } - public function getKey() + public function getFingerprint() { - return $this->key; + return $this->fingerprint; } - public function setValue($value) + public function setId($id) { - $this->value = $value; + $this->id = $id; } - public function getValue() + public function getId() { - return $this->value; + return $this->id; } -} - -class Google_Service_Compute_HealthCheckReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthCheck; - - - public function setHealthCheck($healthCheck) + public function setInstanceGroup($instanceGroup) { - $this->healthCheck = $healthCheck; + $this->instanceGroup = $instanceGroup; } - public function getHealthCheck() + public function getInstanceGroup() { - return $this->healthCheck; + return $this->instanceGroup; } -} - -class Google_Service_Compute_HealthStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthState; - public $instance; - public $ipAddress; - public $port; - - - public function setHealthState($healthState) + public function setInstanceTemplate($instanceTemplate) { - $this->healthState = $healthState; + $this->instanceTemplate = $instanceTemplate; } - public function getHealthState() + public function getInstanceTemplate() { - return $this->healthState; + return $this->instanceTemplate; } - public function setInstance($instance) + public function setKind($kind) { - $this->instance = $instance; + $this->kind = $kind; } - public function getInstance() + public function getKind() { - return $this->instance; + return $this->kind; } - public function setIpAddress($ipAddress) + public function setName($name) { - $this->ipAddress = $ipAddress; + $this->name = $name; } - public function getIpAddress() + public function getName() { - return $this->ipAddress; + return $this->name; } - public function setPort($port) + public function setSelfLink($selfLink) { - $this->port = $port; + $this->selfLink = $selfLink; } - public function getPort() + public function getSelfLink() { - return $this->port; + return $this->selfLink; } -} - -class Google_Service_Compute_HostRule extends Google_Collection -{ - protected $collection_key = 'hosts'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $hosts; - public $pathMatcher; - - - public function setDescription($description) + public function setTargetPools($targetPools) { - $this->description = $description; + $this->targetPools = $targetPools; } - public function getDescription() + public function getTargetPools() { - return $this->description; + return $this->targetPools; } - public function setHosts($hosts) + public function setTargetSize($targetSize) { - $this->hosts = $hosts; + $this->targetSize = $targetSize; } - public function getHosts() + public function getTargetSize() { - return $this->hosts; + return $this->targetSize; } - public function setPathMatcher($pathMatcher) + public function setZone($zone) { - $this->pathMatcher = $pathMatcher; + $this->zone = $zone; } - public function getPathMatcher() + public function getZone() { - return $this->pathMatcher; + return $this->zone; } } -class Google_Service_Compute_HttpHealthCheck extends Google_Model +class Google_Service_Compute_InstanceGroupManagerActionsSummary extends Google_Model { protected $internal_gapi_mappings = array( ); - public $checkIntervalSec; - public $creationTimestamp; - public $description; - public $healthyThreshold; - public $host; - public $id; - public $kind; - public $name; - public $port; - public $requestPath; - public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; + public $abandoning; + public $creating; + public $deleting; + public $none; + public $recreating; + public $refreshing; + public $restarting; - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - public function setCreationTimestamp($creationTimestamp) + public function setAbandoning($abandoning) { - $this->creationTimestamp = $creationTimestamp; + $this->abandoning = $abandoning; } - public function getCreationTimestamp() + public function getAbandoning() { - return $this->creationTimestamp; + return $this->abandoning; } - public function setDescription($description) + public function setCreating($creating) { - $this->description = $description; + $this->creating = $creating; } - public function getDescription() + public function getCreating() { - return $this->description; + return $this->creating; } - public function setHealthyThreshold($healthyThreshold) + public function setDeleting($deleting) { - $this->healthyThreshold = $healthyThreshold; + $this->deleting = $deleting; } - public function getHealthyThreshold() + public function getDeleting() { - return $this->healthyThreshold; + return $this->deleting; } - public function setHost($host) + public function setNone($none) { - $this->host = $host; + $this->none = $none; } - public function getHost() + public function getNone() { - return $this->host; + return $this->none; } - public function setId($id) + public function setRecreating($recreating) { - $this->id = $id; + $this->recreating = $recreating; } - public function getId() + public function getRecreating() { - return $this->id; + return $this->recreating; } - public function setKind($kind) + public function setRefreshing($refreshing) { - $this->kind = $kind; + $this->refreshing = $refreshing; } - public function getKind() + public function getRefreshing() { - return $this->kind; + return $this->refreshing; } - public function setName($name) + public function setRestarting($restarting) { - $this->name = $name; + $this->restarting = $restarting; } - public function getName() + public function getRestarting() { - return $this->name; + return $this->restarting; } - public function setPort($port) +} + +class Google_Service_Compute_InstanceGroupManagerAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_InstanceGroupManagersScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) { - $this->port = $port; + $this->id = $id; } - public function getPort() + public function getId() { - return $this->port; + return $this->id; } - public function setRequestPath($requestPath) + public function setItems($items) { - $this->requestPath = $requestPath; + $this->items = $items; } - public function getRequestPath() + public function getItems() { - return $this->requestPath; + return $this->items; } - public function setSelfLink($selfLink) + public function setKind($kind) { - $this->selfLink = $selfLink; + $this->kind = $kind; } - public function getSelfLink() + public function getKind() { - return $this->selfLink; + return $this->kind; } - public function setTimeoutSec($timeoutSec) + public function setNextPageToken($nextPageToken) { - $this->timeoutSec = $timeoutSec; + $this->nextPageToken = $nextPageToken; } - public function getTimeoutSec() + public function getNextPageToken() { - return $this->timeoutSec; + return $this->nextPageToken; } - public function setUnhealthyThreshold($unhealthyThreshold) + public function setSelfLink($selfLink) { - $this->unhealthyThreshold = $unhealthyThreshold; + $this->selfLink = $selfLink; } - public function getUnhealthyThreshold() + public function getSelfLink() { - return $this->unhealthyThreshold; + return $this->selfLink; } } -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection +class Google_Service_Compute_InstanceGroupManagerAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_InstanceGroupManagerList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsType = 'Google_Service_Compute_InstanceGroupManager'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -8311,159 +11582,241 @@ public function getSelfLink() } } -class Google_Service_Compute_Image extends Google_Collection +class Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection { - protected $collection_key = 'licenses'; + protected $collection_key = 'instances'; protected $internal_gapi_mappings = array( ); - public $archiveSizeBytes; - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $sourceType; - public $status; + public $instances; - public function setArchiveSizeBytes($archiveSizeBytes) + public function setInstances($instances) { - $this->archiveSizeBytes = $archiveSizeBytes; + $this->instances = $instances; } - public function getArchiveSizeBytes() + public function getInstances() { - return $this->archiveSizeBytes; + return $this->instances; } - public function setCreationTimestamp($creationTimestamp) +} + +class Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) { - $this->creationTimestamp = $creationTimestamp; + $this->instances = $instances; } - public function getCreationTimestamp() + public function getInstances() { - return $this->creationTimestamp; + return $this->instances; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) +} + +class Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse extends Google_Collection +{ + protected $collection_key = 'managedInstances'; + protected $internal_gapi_mappings = array( + ); + protected $managedInstancesType = 'Google_Service_Compute_ManagedInstance'; + protected $managedInstancesDataType = 'array'; + + + public function setManagedInstances($managedInstances) { - $this->deprecated = $deprecated; + $this->managedInstances = $managedInstances; } - public function getDeprecated() + public function getManagedInstances() { - return $this->deprecated; + return $this->managedInstances; } - public function setDescription($description) +} + +class Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) { - $this->description = $description; + $this->instances = $instances; } - public function getDescription() + public function getInstances() { - return $this->description; + return $this->instances; } - public function setDiskSizeGb($diskSizeGb) +} + +class Google_Service_Compute_InstanceGroupManagersScopedList extends Google_Collection +{ + protected $collection_key = 'instanceGroupManagers'; + protected $internal_gapi_mappings = array( + ); + protected $instanceGroupManagersType = 'Google_Service_Compute_InstanceGroupManager'; + protected $instanceGroupManagersDataType = 'array'; + protected $warningType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarning'; + protected $warningDataType = ''; + + + public function setInstanceGroupManagers($instanceGroupManagers) { - $this->diskSizeGb = $diskSizeGb; + $this->instanceGroupManagers = $instanceGroupManagers; } - public function getDiskSizeGb() + public function getInstanceGroupManagers() { - return $this->diskSizeGb; + return $this->instanceGroupManagers; } - public function setId($id) + public function setWarning(Google_Service_Compute_InstanceGroupManagersScopedListWarning $warning) { - $this->id = $id; + $this->warning = $warning; } - public function getId() + public function getWarning() { - return $this->id; + return $this->warning; } - public function setKind($kind) +} + +class Google_Service_Compute_InstanceGroupManagersScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) { - $this->kind = $kind; + $this->code = $code; } - public function getKind() + public function getCode() { - return $this->kind; + return $this->code; } - public function setLicenses($licenses) + public function setData($data) { - $this->licenses = $licenses; + $this->data = $data; } - public function getLicenses() + public function getData() { - return $this->licenses; + return $this->data; } - public function setName($name) + public function setMessage($message) { - $this->name = $name; + $this->message = $message; } - public function getName() + public function getMessage() { - return $this->name; + return $this->message; } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) +} + +class Google_Service_Compute_InstanceGroupManagersScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) { - $this->rawDisk = $rawDisk; + $this->key = $key; } - public function getRawDisk() + public function getKey() { - return $this->rawDisk; + return $this->key; } - public function setSelfLink($selfLink) + public function setValue($value) { - $this->selfLink = $selfLink; + $this->value = $value; } - public function getSelfLink() + public function getValue() { - return $this->selfLink; + return $this->value; } - public function setSourceDisk($sourceDisk) +} + +class Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceTemplate; + + + public function setInstanceTemplate($instanceTemplate) { - $this->sourceDisk = $sourceDisk; + $this->instanceTemplate = $instanceTemplate; } - public function getSourceDisk() + public function getInstanceTemplate() { - return $this->sourceDisk; + return $this->instanceTemplate; } - public function setSourceDiskId($sourceDiskId) +} + +class Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection +{ + protected $collection_key = 'targetPools'; + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + public $targetPools; + + + public function setFingerprint($fingerprint) { - $this->sourceDiskId = $sourceDiskId; + $this->fingerprint = $fingerprint; } - public function getSourceDiskId() + public function getFingerprint() { - return $this->sourceDiskId; + return $this->fingerprint; } - public function setSourceType($sourceType) + public function setTargetPools($targetPools) { - $this->sourceType = $sourceType; + $this->targetPools = $targetPools; } - public function getSourceType() + public function getTargetPools() { - return $this->sourceType; + return $this->targetPools; } - public function setStatus($status) +} + +class Google_Service_Compute_InstanceGroupsAddInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + + public function setInstances($instances) { - $this->status = $status; + $this->instances = $instances; } - public function getStatus() + public function getInstances() { - return $this->status; + return $this->instances; } } -class Google_Service_Compute_ImageList extends Google_Collection +class Google_Service_Compute_InstanceGroupsListInstances extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsType = 'Google_Service_Compute_InstanceWithNamedPorts'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -8512,274 +11865,160 @@ public function getSelfLink() } } -class Google_Service_Compute_ImageRawDisk extends Google_Model +class Google_Service_Compute_InstanceGroupsListInstancesRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $containerType; - public $sha1Checksum; - public $source; + public $instanceState; - 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) + public function setInstanceState($instanceState) { - $this->source = $source; + $this->instanceState = $instanceState; } - public function getSource() + public function getInstanceState() { - return $this->source; + return $this->instanceState; } } -class Google_Service_Compute_Instance extends Google_Collection +class Google_Service_Compute_InstanceGroupsRemoveInstancesRequest extends Google_Collection { - protected $collection_key = 'serviceAccounts'; + protected $collection_key = 'instances'; protected $internal_gapi_mappings = array( ); - public $canIpForward; - public $cpuPlatform; - public $creationTimestamp; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $id; - public $kind; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - public $name; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - public $selfLink; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $status; - public $statusMessage; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - public $zone; + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - public function setCpuPlatform($cpuPlatform) - { - $this->cpuPlatform = $cpuPlatform; - } - public function getCpuPlatform() - { - return $this->cpuPlatform; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisks($disks) - { - $this->disks = $disks; - } - public function getDisks() - { - return $this->disks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } - public function setMetadata(Google_Service_Compute_Metadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - public function getScheduling() - { - return $this->scheduling; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) + public function setInstances($instances) { - $this->statusMessage = $statusMessage; + $this->instances = $instances; } - public function getStatusMessage() + public function getInstances() { - return $this->statusMessage; + return $this->instances; } - public function setTags(Google_Service_Compute_Tags $tags) +} + +class Google_Service_Compute_InstanceGroupsScopedList extends Google_Collection +{ + protected $collection_key = 'instanceGroups'; + protected $internal_gapi_mappings = array( + ); + protected $instanceGroupsType = 'Google_Service_Compute_InstanceGroup'; + protected $instanceGroupsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_InstanceGroupsScopedListWarning'; + protected $warningDataType = ''; + + + public function setInstanceGroups($instanceGroups) { - $this->tags = $tags; + $this->instanceGroups = $instanceGroups; } - public function getTags() + public function getInstanceGroups() { - return $this->tags; + return $this->instanceGroups; } - public function setZone($zone) + public function setWarning(Google_Service_Compute_InstanceGroupsScopedListWarning $warning) { - $this->zone = $zone; + $this->warning = $warning; } - public function getZone() + public function getWarning() { - return $this->zone; + return $this->warning; } } -class Google_Service_Compute_InstanceAggregatedList extends Google_Model +class Google_Service_Compute_InstanceGroupsScopedListWarning extends Google_Collection { + protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; + public $code; + protected $dataType = 'Google_Service_Compute_InstanceGroupsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; - public function setId($id) + public function setCode($code) { - $this->id = $id; + $this->code = $code; } - public function getId() + public function getCode() { - return $this->id; + return $this->code; } - public function setItems($items) + public function setData($data) { - $this->items = $items; + $this->data = $data; } - public function getItems() + public function getData() { - return $this->items; + return $this->data; } - public function setKind($kind) + public function setMessage($message) { - $this->kind = $kind; + $this->message = $message; } - public function getKind() + public function getMessage() { - return $this->kind; + return $this->message; } - public function setNextPageToken($nextPageToken) +} + +class Google_Service_Compute_InstanceGroupsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) { - $this->nextPageToken = $nextPageToken; + $this->key = $key; } - public function getNextPageToken() + public function getKey() { - return $this->nextPageToken; + return $this->key; } - public function setSelfLink($selfLink) + public function setValue($value) { - $this->selfLink = $selfLink; + $this->value = $value; } - public function getSelfLink() + public function getValue() { - return $this->selfLink; + return $this->value; } } -class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model +class Google_Service_Compute_InstanceGroupsSetNamedPortsRequest extends Google_Collection { + protected $collection_key = 'namedPorts'; + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + protected $namedPortsType = 'Google_Service_Compute_NamedPort'; + protected $namedPortsDataType = 'array'; + + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setNamedPorts($namedPorts) + { + $this->namedPorts = $namedPorts; + } + public function getNamedPorts() + { + return $this->namedPorts; + } } class Google_Service_Compute_InstanceList extends Google_Collection @@ -9103,6 +12342,43 @@ public function getSelfLink() } } +class Google_Service_Compute_InstanceWithNamedPorts extends Google_Collection +{ + protected $collection_key = 'namedPorts'; + protected $internal_gapi_mappings = array( + ); + public $instance; + protected $namedPortsType = 'Google_Service_Compute_NamedPort'; + protected $namedPortsDataType = 'array'; + public $status; + + + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setNamedPorts($namedPorts) + { + $this->namedPorts = $namedPorts; + } + public function getNamedPorts() + { + return $this->namedPorts; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + class Google_Service_Compute_InstancesScopedList extends Google_Collection { protected $collection_key = 'instances'; @@ -9598,6 +12874,132 @@ public function getValue() } } +class Google_Service_Compute_ManagedInstance extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $currentAction; + public $id; + public $instance; + public $instanceStatus; + protected $lastAttemptType = 'Google_Service_Compute_ManagedInstanceLastAttempt'; + protected $lastAttemptDataType = ''; + + + public function setCurrentAction($currentAction) + { + $this->currentAction = $currentAction; + } + public function getCurrentAction() + { + return $this->currentAction; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setInstanceStatus($instanceStatus) + { + $this->instanceStatus = $instanceStatus; + } + public function getInstanceStatus() + { + return $this->instanceStatus; + } + public function setLastAttempt(Google_Service_Compute_ManagedInstanceLastAttempt $lastAttempt) + { + $this->lastAttempt = $lastAttempt; + } + public function getLastAttempt() + { + return $this->lastAttempt; + } +} + +class Google_Service_Compute_ManagedInstanceLastAttempt extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrors'; + protected $errorsDataType = ''; + + + public function setErrors(Google_Service_Compute_ManagedInstanceLastAttemptErrors $errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Compute_ManagedInstanceLastAttemptErrors extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Metadata extends Google_Collection { protected $collection_key = 'items'; @@ -9661,6 +13063,32 @@ public function getValue() } } +class Google_Service_Compute_NamedPort extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $port; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } +} + class Google_Service_Compute_Network extends Google_Model { protected $internal_gapi_mappings = array( @@ -10456,6 +13884,7 @@ class Google_Service_Compute_Project extends Google_Collection protected $commonInstanceMetadataDataType = ''; public $creationTimestamp; public $description; + public $enabledFeatures; public $id; public $kind; public $name; @@ -10490,6 +13919,14 @@ public function getDescription() { return $this->description; } + public function setEnabledFeatures($enabledFeatures) + { + $this->enabledFeatures = $enabledFeatures; + } + public function getEnabledFeatures() + { + return $this->enabledFeatures; + } public function setId($id) { $this->id = $id; @@ -12880,16 +16317,14 @@ public function getReportNamePrefix() } } -class Google_Service_Compute_VpnTunnel extends Google_Collection +class Google_Service_Compute_VpnTunnel extends Google_Model { - protected $collection_key = 'ikeNetworks'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; public $description; public $detailedStatus; public $id; - public $ikeNetworks; public $ikeVersion; public $kind; public $name; @@ -12934,14 +16369,6 @@ public function getId() { return $this->id; } - public function setIkeNetworks($ikeNetworks) - { - $this->ikeNetworks = $ikeNetworks; - } - public function getIkeNetworks() - { - return $this->ikeNetworks; - } public function setIkeVersion($ikeVersion) { $this->ikeVersion = $ikeVersion; diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 5b48a0353..2849bf494 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -35,6 +35,7 @@ class Google_Service_Container extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + public $projects_zones; public $projects_zones_clusters; public $projects_zones_operations; @@ -52,6 +53,31 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'container'; + $this->projects_zones = new Google_Service_Container_ProjectsZones_Resource( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'getServerconfig' => array( + 'path' => 'v1/projects/{projectId}/zones/{zone}/serverconfig', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource( $this, $this->serviceName, @@ -223,6 +249,25 @@ class Google_Service_Container_Projects_Resource extends Google_Service_Resource */ class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource { + + /** + * Returns configuration info about the Container Engine service. + * (zones.getServerconfig) + * + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or "-" for + * all zones. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_ServerConfig + */ + public function getServerconfig($projectId, $zone, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('getServerconfig', array($params), "Google_Service_Container_ServerConfig"); + } } /** @@ -240,15 +285,14 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser * Creates a cluster, consisting of the specified number and type of Google * Compute Engine instances, plus a Kubernetes master endpoint. By default, the * cluster is created in the project's [default - * network]('/compute/docs/networking#networks_1'). One firewall is added for - * the cluster. After cluster creation, the cluster creates routes for each node - * to allow the containers on that node to communicate with all other instances - * in the cluster. Finally, an entry is added to the project's global metadata + * network](/compute/docs/networking#networks_1). One firewall is added for the + * cluster. After cluster creation, the cluster creates routes for each node to + * allow the containers on that node to communicate with all other instances in + * the cluster. Finally, an entry is added to the project's global metadata * indicating which CIDR range is being used by the cluster. (clusters.create) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. * @param Google_CreateClusterRequest $postBody @@ -267,9 +311,8 @@ public function create($projectId, $zone, Google_Service_Container_CreateCluster * Firewalls and routes that were configured during cluster creation are also * deleted. (clusters.delete) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to delete. @@ -286,9 +329,8 @@ public function delete($projectId, $zone, $clusterId, $optParams = array()) /** * Gets a specific cluster. (clusters.get) * - * @param string $projectId The Google Developers Console A [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to retrieve. @@ -306,9 +348,8 @@ public function get($projectId, $zone, $clusterId, $optParams = array()) * Lists all clusters owned by a project in either the specified zone or all * zones. (clusters.listProjectsZonesClusters) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" * for all zones. @@ -325,9 +366,8 @@ public function listProjectsZonesClusters($projectId, $zone, $optParams = array( /** * Update settings of a specific cluster. (clusters.update) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to upgrade. @@ -356,9 +396,8 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S /** * Gets the specified operation. (operations.get) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $operationId The server-assigned `name` of the operation. @@ -376,9 +415,8 @@ public function get($projectId, $zone, $operationId, $optParams = array()) * Lists all operations in a project in a specific zone or all zones. * (operations.listProjectsZonesOperations) * - * @param string $projectId The Google Developers Console [project - * ID](https://console.developers.google.com/project) or [project - * number](https://developers.google.com/console/help/project-number) + * @param string $projectId The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). * @param string $zone The name of the Google Compute Engine * [zone](/compute/docs/zones#available) to return operations for, or "-" for * all zones. @@ -829,6 +867,33 @@ public function getZone() } } +class Google_Service_Container_ServerConfig extends Google_Collection +{ + protected $collection_key = 'validNodeVersions'; + protected $internal_gapi_mappings = array( + ); + public $defaultClusterVersion; + public $validNodeVersions; + + + public function setDefaultClusterVersion($defaultClusterVersion) + { + $this->defaultClusterVersion = $defaultClusterVersion; + } + public function getDefaultClusterVersion() + { + return $this->defaultClusterVersion; + } + public function setValidNodeVersions($validNodeVersions) + { + $this->validNodeVersions = $validNodeVersions; + } + public function getValidNodeVersions() + { + return $this->validNodeVersions; + } +} + class Google_Service_Container_UpdateClusterRequest extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php index 80b5ebbd2..eadd3b862 100644 --- a/src/Google/Service/Coordinate.php +++ b/src/Google/Service/Coordinate.php @@ -163,13 +163,17 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'omitJobChanges' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'patch' => array( @@ -557,8 +561,10 @@ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coo * * @opt_param string minModifiedTimestampMs Minimum time a job was modified in * milliseconds since epoch. - * @opt_param string maxResults Maximum number of results to return in one page. * @opt_param string pageToken Continuation token + * @opt_param string maxResults Maximum number of results to return in one page. + * @opt_param bool omitJobChanges Whether to omit detail job history + * information. * @return Google_Service_Coordinate_JobListResponse */ public function listJobs($teamId, $optParams = array()) diff --git a/src/Google/Service/DataTransfer.php b/src/Google/Service/DataTransfer.php new file mode 100644 index 000000000..ceec9517d --- /dev/null +++ b/src/Google/Service/DataTransfer.php @@ -0,0 +1,554 @@ + + * Admin Data Transfer API lets you transfer user data from one user to another.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_DataTransfer extends Google_Service +{ + /** View and manage data transfers between users in your organization. */ + const ADMIN_DATATRANSFER = + "https://www.googleapis.com/auth/admin.datatransfer"; + /** View data transfers between users in your organization. */ + const ADMIN_DATATRANSFER_READONLY = + "https://www.googleapis.com/auth/admin.datatransfer.readonly"; + + public $applications; + public $transfers; + + + /** + * Constructs the internal representation of the DataTransfer service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'admin/datatransfer/v1/'; + $this->version = 'datatransfer_v1'; + $this->serviceName = 'admin'; + + $this->applications = new Google_Service_DataTransfer_Applications_Resource( + $this, + $this->serviceName, + 'applications', + array( + 'methods' => array( + 'get' => array( + 'path' => 'applications/{applicationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'applications', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->transfers = new Google_Service_DataTransfer_Transfers_Resource( + $this, + $this->serviceName, + 'transfers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'transfers/{dataTransferId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'dataTransferId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'transfers', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'list' => array( + 'path' => 'transfers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'status' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'newOwnerUserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldOwnerUserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "applications" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_DataTransfer(...); + * $applications = $adminService->applications; + * + */ +class Google_Service_DataTransfer_Applications_Resource extends Google_Service_Resource +{ + + /** + * Retrieves information about an application for the given application ID. + * (applications.get) + * + * @param string $applicationId ID of the application resource to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_DataTransfer_Application + */ + public function get($applicationId, $optParams = array()) + { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DataTransfer_Application"); + } + + /** + * Lists the applications available for data transfer for a customer. + * (applications.listApplications) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Token to specify next page in the list. + * @opt_param string customerId Immutable ID of the Google Apps account. + * @opt_param string maxResults Maximum number of results to return. Default is + * 100. + * @return Google_Service_DataTransfer_ApplicationsListResponse + */ + public function listApplications($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DataTransfer_ApplicationsListResponse"); + } +} + +/** + * The "transfers" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_DataTransfer(...); + * $transfers = $adminService->transfers; + * + */ +class Google_Service_DataTransfer_Transfers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a data transfer request by its resource ID. (transfers.get) + * + * @param string $dataTransferId ID of the resource to be retrieved. This is + * returned in the response from the insert method. + * @param array $optParams Optional parameters. + * @return Google_Service_DataTransfer_DataTransfer + */ + public function get($dataTransferId, $optParams = array()) + { + $params = array('dataTransferId' => $dataTransferId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DataTransfer_DataTransfer"); + } + + /** + * Inserts a data transfer request. (transfers.insert) + * + * @param Google_DataTransfer $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DataTransfer_DataTransfer + */ + public function insert(Google_Service_DataTransfer_DataTransfer $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_DataTransfer_DataTransfer"); + } + + /** + * Lists the transfers for a customer by source user, destination user, or + * status. (transfers.listTransfers) + * + * @param array $optParams Optional parameters. + * + * @opt_param string status Status of the transfer. + * @opt_param int maxResults Maximum number of results to return. Default is + * 100. + * @opt_param string newOwnerUserId Destination user's profile ID. + * @opt_param string oldOwnerUserId Source user's profile ID. + * @opt_param string pageToken Token to specify the next page in the list. + * @opt_param string customerId Immutable ID of the Google Apps account. + * @return Google_Service_DataTransfer_DataTransfersListResponse + */ + public function listTransfers($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DataTransfer_DataTransfersListResponse"); + } +} + + + + +class Google_Service_DataTransfer_Application extends Google_Collection +{ + protected $collection_key = 'transferParams'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + public $name; + protected $transferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam'; + protected $transferParamsDataType = 'array'; + + + 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 setTransferParams($transferParams) + { + $this->transferParams = $transferParams; + } + public function getTransferParams() + { + return $this->transferParams; + } +} + +class Google_Service_DataTransfer_ApplicationDataTransfer extends Google_Collection +{ + protected $collection_key = 'applicationTransferParams'; + protected $internal_gapi_mappings = array( + ); + public $applicationId; + protected $applicationTransferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam'; + protected $applicationTransferParamsDataType = 'array'; + public $applicationTransferStatus; + + + public function setApplicationId($applicationId) + { + $this->applicationId = $applicationId; + } + public function getApplicationId() + { + return $this->applicationId; + } + public function setApplicationTransferParams($applicationTransferParams) + { + $this->applicationTransferParams = $applicationTransferParams; + } + public function getApplicationTransferParams() + { + return $this->applicationTransferParams; + } + public function setApplicationTransferStatus($applicationTransferStatus) + { + $this->applicationTransferStatus = $applicationTransferStatus; + } + public function getApplicationTransferStatus() + { + return $this->applicationTransferStatus; + } +} + +class Google_Service_DataTransfer_ApplicationTransferParam extends Google_Collection +{ + protected $collection_key = 'value'; + protected $internal_gapi_mappings = array( + ); + 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_DataTransfer_ApplicationsListResponse extends Google_Collection +{ + protected $collection_key = 'applications'; + protected $internal_gapi_mappings = array( + ); + protected $applicationsType = 'Google_Service_DataTransfer_Application'; + protected $applicationsDataType = 'array'; + public $etag; + public $kind; + public $nextPageToken; + + + public function setApplications($applications) + { + $this->applications = $applications; + } + public function getApplications() + { + return $this->applications; + } + 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_DataTransfer_DataTransfer extends Google_Collection +{ + protected $collection_key = 'applicationDataTransfers'; + protected $internal_gapi_mappings = array( + ); + protected $applicationDataTransfersType = 'Google_Service_DataTransfer_ApplicationDataTransfer'; + protected $applicationDataTransfersDataType = 'array'; + public $etag; + public $id; + public $kind; + public $newOwnerUserId; + public $oldOwnerUserId; + public $overallTransferStatusCode; + public $requestTime; + + + public function setApplicationDataTransfers($applicationDataTransfers) + { + $this->applicationDataTransfers = $applicationDataTransfers; + } + public function getApplicationDataTransfers() + { + return $this->applicationDataTransfers; + } + 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 setNewOwnerUserId($newOwnerUserId) + { + $this->newOwnerUserId = $newOwnerUserId; + } + public function getNewOwnerUserId() + { + return $this->newOwnerUserId; + } + public function setOldOwnerUserId($oldOwnerUserId) + { + $this->oldOwnerUserId = $oldOwnerUserId; + } + public function getOldOwnerUserId() + { + return $this->oldOwnerUserId; + } + public function setOverallTransferStatusCode($overallTransferStatusCode) + { + $this->overallTransferStatusCode = $overallTransferStatusCode; + } + public function getOverallTransferStatusCode() + { + return $this->overallTransferStatusCode; + } + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + } + public function getRequestTime() + { + return $this->requestTime; + } +} + +class Google_Service_DataTransfer_DataTransfersListResponse extends Google_Collection +{ + protected $collection_key = 'dataTransfers'; + protected $internal_gapi_mappings = array( + ); + protected $dataTransfersType = 'Google_Service_DataTransfer_DataTransfer'; + protected $dataTransfersDataType = 'array'; + public $etag; + public $kind; + public $nextPageToken; + + + public function setDataTransfers($dataTransfers) + { + $this->dataTransfers = $dataTransfers; + } + public function getDataTransfers() + { + return $this->dataTransfers; + } + 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; + } +} diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index 92148cfeb..423afcaf0 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -23,7 +23,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -51,7 +51,7 @@ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://dataflow.googleapis.com/'; - $this->servicePath = 'v1b3/projects/'; + $this->servicePath = ''; $this->version = 'v1b3'; $this->serviceName = 'dataflow'; @@ -62,7 +62,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'create' => array( - 'path' => '{projectId}/jobs', + 'path' => 'v1b3/projects/{projectId}/jobs', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -80,7 +80,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => '{projectId}/jobs/{jobId}', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -99,7 +99,7 @@ public function __construct(Google_Client $client) ), ), ),'getMetrics' => array( - 'path' => '{projectId}/jobs/{jobId}/metrics', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -118,7 +118,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{projectId}/jobs', + 'path' => 'v1b3/projects/{projectId}/jobs', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -130,32 +130,17 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'patch' => array( - 'path' => '{projectId}/jobs/{jobId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', + 'view' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), ),'update' => array( - 'path' => '{projectId}/jobs/{jobId}', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}', 'httpMethod' => 'PUT', 'parameters' => array( 'projectId' => array( @@ -180,7 +165,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'list' => array( - 'path' => '{projectId}/jobs/{jobId}/messages', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/messages', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -225,7 +210,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'lease' => array( - 'path' => '{projectId}/jobs/{jobId}/workItems:lease', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -240,7 +225,7 @@ public function __construct(Google_Client $client) ), ), ),'reportStatus' => array( - 'path' => '{projectId}/jobs/{jobId}/workItems:reportStatus', + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -288,12 +273,13 @@ class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resou /** * Creates a dataflow job. (jobs.create) * - * @param string $projectId + * @param string $projectId The project which owns the job. * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string replaceJobId - * @opt_param string view + * @opt_param string replaceJobId DEPRECATED. This field is now on the Job + * message. + * @opt_param string view Level of information requested in response. * @return Google_Service_Dataflow_Job */ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) @@ -306,11 +292,11 @@ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optPa /** * Gets the state of the specified dataflow job. (jobs.get) * - * @param string $projectId - * @param string $jobId + * @param string $projectId The project which owns the job. + * @param string $jobId Identifies a single job. * @param array $optParams Optional parameters. * - * @opt_param string view + * @opt_param string view Level of information requested in response. * @return Google_Service_Dataflow_Job */ public function get($projectId, $jobId, $optParams = array()) @@ -323,11 +309,13 @@ public function get($projectId, $jobId, $optParams = array()) /** * Request the job status. (jobs.getMetrics) * - * @param string $projectId - * @param string $jobId + * @param string $projectId A project id. + * @param string $jobId The job to get messages for. * @param array $optParams Optional parameters. * - * @opt_param string startTime + * @opt_param string startTime Return only metric data that has changed since + * this time. Default is to return all information about all metrics for the + * job. * @return Google_Service_Dataflow_JobMetrics */ public function getMetrics($projectId, $jobId, $optParams = array()) @@ -340,12 +328,16 @@ public function getMetrics($projectId, $jobId, $optParams = array()) /** * List the jobs of a project (jobs.listProjectsJobs) * - * @param string $projectId + * @param string $projectId The project which owns the jobs. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * @opt_param string view - * @opt_param int pageSize + * @opt_param string pageToken Set this to the 'next_page_token' field of a + * previous response to request additional results in a long list. + * @opt_param int pageSize If there are many jobs, limit response to at most + * this many. The actual number of jobs returned will be the lesser of + * max_responses and an unspecified server-defined limit. + * @opt_param string view Level of information requested in response. Default is + * SUMMARY. * @return Google_Service_Dataflow_ListJobsResponse */ public function listProjectsJobs($projectId, $optParams = array()) @@ -355,28 +347,11 @@ public function listProjectsJobs($projectId, $optParams = array()) return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); } - /** - * Updates the state of an existing dataflow job. This method supports patch - * semantics. (jobs.patch) - * - * @param string $projectId - * @param string $jobId - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_Job - */ - public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); - } - /** * Updates the state of an existing dataflow job. (jobs.update) * - * @param string $projectId - * @param string $jobId + * @param string $projectId The project which owns the job. + * @param string $jobId Identifies a single job. * @param Google_Job $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataflow_Job @@ -403,15 +378,23 @@ class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Servi /** * Request the job status. (messages.listProjectsJobsMessages) * - * @param string $projectId - * @param string $jobId + * @param string $projectId A project id. + * @param string $jobId The job to get messages about. * @param array $optParams Optional parameters. * - * @opt_param int pageSize - * @opt_param string pageToken - * @opt_param string startTime - * @opt_param string endTime - * @opt_param string minimumImportance + * @opt_param int pageSize If specified, determines the maximum number of + * messages to return. If unspecified, the service may choose an appropriate + * default, or may return an arbitrarily large number of results. + * @opt_param string pageToken If supplied, this should be the value of + * next_page_token returned by an earlier call. This will cause the next page of + * results to be returned. + * @opt_param string startTime If specified, return only messages with + * timestamps >= start_time. The default is the job creation time (i.e. + * beginning of messages). + * @opt_param string endTime Return only messages with timestamps < end_time. + * The default is now (i.e. return up to the latest messages available). + * @opt_param string minimumImportance Filter to only get messages with + * importance >= level * @return Google_Service_Dataflow_ListJobMessagesResponse */ public function listProjectsJobsMessages($projectId, $jobId, $optParams = array()) @@ -435,8 +418,8 @@ class Google_Service_Dataflow_ProjectsJobsWorkItems_Resource extends Google_Serv /** * Leases a dataflow WorkItem to run. (workItems.lease) * - * @param string $projectId - * @param string $jobId + * @param string $projectId Identifies the project this worker belongs to. + * @param string $jobId Identifies the workflow job this worker belongs to. * @param Google_LeaseWorkItemRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataflow_LeaseWorkItemResponse @@ -452,8 +435,8 @@ public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemR * Reports the status of dataflow WorkItems leased by a worker. * (workItems.reportStatus) * - * @param string $projectId - * @param string $jobId + * @param string $projectId The project which owns the WorkItem's job. + * @param string $jobId The job which the WorkItem is part of. * @param Google_ReportWorkItemStatusRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataflow_ReportWorkItemStatusResponse @@ -533,7 +516,7 @@ public function getMaxNumWorkers() class Google_Service_Dataflow_ComputationTopology extends Google_Collection { - protected $collection_key = 'outputs'; + protected $collection_key = 'stateFamilies'; protected $internal_gapi_mappings = array( ); public $computationId; @@ -543,6 +526,10 @@ class Google_Service_Dataflow_ComputationTopology extends Google_Collection protected $keyRangesDataType = 'array'; protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; protected $outputsDataType = 'array'; + protected $stateFamiliesType = 'Google_Service_Dataflow_StateFamilyConfig'; + protected $stateFamiliesDataType = 'array'; + public $systemStageName; + public $userStageName; public function setComputationId($computationId) @@ -577,6 +564,74 @@ public function getOutputs() { return $this->outputs; } + public function setStateFamilies($stateFamilies) + { + $this->stateFamilies = $stateFamilies; + } + public function getStateFamilies() + { + return $this->stateFamilies; + } + public function setSystemStageName($systemStageName) + { + $this->systemStageName = $systemStageName; + } + public function getSystemStageName() + { + return $this->systemStageName; + } + public function setUserStageName($userStageName) + { + $this->userStageName = $userStageName; + } + public function getUserStageName() + { + return $this->userStageName; + } +} + +class Google_Service_Dataflow_ConcatPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $index; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + + + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + +class Google_Service_Dataflow_CustomSourceLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $stateful; + + + public function setStateful($stateful) + { + $this->stateful = $stateful; + } + public function getStateful() + { + return $this->stateful; + } } class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection @@ -704,6 +759,7 @@ class Google_Service_Dataflow_Environment extends Google_Collection public $clusterManagerApiService; public $dataset; public $experiments; + public $internalExperiments; public $sdkPipelineOptions; public $tempStoragePrefix; public $userAgent; @@ -736,6 +792,14 @@ public function getExperiments() { return $this->experiments; } + public function setInternalExperiments($internalExperiments) + { + $this->internalExperiments = $internalExperiments; + } + public function getInternalExperiments() + { + return $this->internalExperiments; + } public function setSdkPipelineOptions($sdkPipelineOptions) { $this->sdkPipelineOptions = $sdkPipelineOptions; @@ -778,6 +842,10 @@ public function getWorkerPools() } } +class Google_Service_Dataflow_EnvironmentInternalExperiments extends Google_Model +{ +} + class Google_Service_Dataflow_EnvironmentSdkPipelineOptions extends Google_Model { } @@ -841,6 +909,7 @@ class Google_Service_Dataflow_InstructionOutput extends Google_Model ); public $codec; public $name; + public $systemName; public function setCodec($codec) @@ -859,6 +928,14 @@ public function getName() { return $this->name; } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } } class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model @@ -882,6 +959,7 @@ class Google_Service_Dataflow_Job extends Google_Collection public $name; public $projectId; public $replaceJobId; + public $replacedByJobId; public $requestedState; protected $stepsType = 'Google_Service_Dataflow_Step'; protected $stepsDataType = 'array'; @@ -969,6 +1047,14 @@ public function getReplaceJobId() { return $this->replaceJobId; } + public function setReplacedByJobId($replacedByJobId) + { + $this->replacedByJobId = $replacedByJobId; + } + public function getReplacedByJobId() + { + return $this->replacedByJobId; + } public function setRequestedState($requestedState) { $this->requestedState = $requestedState; @@ -1759,6 +1845,8 @@ class Google_Service_Dataflow_Position extends Google_Model protected $internal_gapi_mappings = array( ); public $byteOffset; + protected $concatPositionType = 'Google_Service_Dataflow_ConcatPosition'; + protected $concatPositionDataType = ''; public $end; public $key; public $recordIndex; @@ -1773,6 +1861,14 @@ public function getByteOffset() { return $this->byteOffset; } + public function setConcatPosition(Google_Service_Dataflow_ConcatPosition $concatPosition) + { + $this->concatPosition = $concatPosition; + } + public function getConcatPosition() + { + return $this->concatPosition; + } public function setEnd($end) { $this->end = $end; @@ -2501,6 +2597,32 @@ public function getSource() } } +class Google_Service_Dataflow_StateFamilyConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $isRead; + public $stateFamily; + + + public function setIsRead($isRead) + { + $this->isRead = $isRead; + } + public function getIsRead() + { + return $this->isRead; + } + public function setStateFamily($stateFamily) + { + $this->stateFamily = $stateFamily; + } + public function getStateFamily() + { + return $this->stateFamily; + } +} + class Google_Service_Dataflow_Status extends Google_Collection { protected $collection_key = 'details'; @@ -2584,6 +2706,8 @@ class Google_Service_Dataflow_StreamLocation extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $customSourceLocationType = 'Google_Service_Dataflow_CustomSourceLocation'; + protected $customSourceLocationDataType = ''; protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; protected $pubsubLocationDataType = ''; protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation'; @@ -2592,6 +2716,14 @@ class Google_Service_Dataflow_StreamLocation extends Google_Model protected $streamingStageLocationDataType = ''; + public function setCustomSourceLocation(Google_Service_Dataflow_CustomSourceLocation $customSourceLocation) + { + $this->customSourceLocation = $customSourceLocation; + } + public function getCustomSourceLocation() + { + return $this->customSourceLocation; + } public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) { $this->pubsubLocation = $pubsubLocation; @@ -2724,9 +2856,18 @@ class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model { protected $internal_gapi_mappings = array( ); + public $stateFamily; public $tag; + public function setStateFamily($stateFamily) + { + $this->stateFamily = $stateFamily; + } + public function getStateFamily() + { + return $this->stateFamily; + } public function setTag($tag) { $this->tag = $tag; @@ -2944,6 +3085,7 @@ class Google_Service_Dataflow_TopologyConfig extends Google_Collection protected $computationsDataType = 'array'; protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; protected $dataDiskAssignmentsDataType = 'array'; + public $userStageToComputationNameMap; public function setComputations($computations) @@ -2962,6 +3104,18 @@ public function getDataDiskAssignments() { return $this->dataDiskAssignments; } + public function setUserStageToComputationNameMap($userStageToComputationNameMap) + { + $this->userStageToComputationNameMap = $userStageToComputationNameMap; + } + public function getUserStageToComputationNameMap() + { + return $this->userStageToComputationNameMap; + } +} + +class Google_Service_Dataflow_TopologyConfigUserStageToComputationNameMap extends Google_Model +{ } class Google_Service_Dataflow_WorkItem extends Google_Collection diff --git a/src/Google/Service/DeploymentManager.php b/src/Google/Service/DeploymentManager.php index 30d74421b..59e8f3137 100644 --- a/src/Google/Service/DeploymentManager.php +++ b/src/Google/Service/DeploymentManager.php @@ -16,7 +16,7 @@ */ /** - * Service definition for DeploymentManager (v2beta2). + * Service definition for DeploymentManager (v2). * *

* The Deployment Manager API allows users to declaratively configure, deploy @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -34,6 +34,9 @@ class Google_Service_DeploymentManager extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View and manage your Google Cloud Platform management resources and deployment status information. */ const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; @@ -57,8 +60,8 @@ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'deploymentmanager/v2beta2/projects/'; - $this->version = 'v2beta2'; + $this->servicePath = 'deploymentmanager/v2/projects/'; + $this->version = 'v2'; $this->serviceName = 'deploymentmanager'; $this->deployments = new Google_Service_DeploymentManager_Deployments_Resource( @@ -67,7 +70,22 @@ public function __construct(Google_Client $client) 'deployments', array( 'methods' => array( - 'delete' => array( + 'cancelPreview' => array( + 'path' => '{project}/global/deployments/{deployment}/cancelPreview', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( 'path' => '{project}/global/deployments/{deployment}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -106,6 +124,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'preview' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'list' => array( 'path' => '{project}/global/deployments', @@ -143,11 +165,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'deletePolicy' => array( + 'preview' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'updatePolicy' => array( + 'deletePolicy' => array( 'location' => 'query', 'type' => 'string', ), @@ -156,6 +178,21 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'stop' => array( + 'path' => '{project}/global/deployments/{deployment}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deployment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => '{project}/global/deployments/{deployment}', 'httpMethod' => 'PUT', @@ -170,11 +207,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'deletePolicy' => array( + 'preview' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'updatePolicy' => array( + 'deletePolicy' => array( 'location' => 'query', 'type' => 'string', ), @@ -395,6 +432,23 @@ public function __construct(Google_Client $client) class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource { + /** + * Cancels and removes the preview currently associated with the deployment. + * (deployments.cancelPreview) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_DeploymentsCancelPreviewRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function cancelPreview($project, $deployment, Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancelPreview', array($params), "Google_Service_DeploymentManager_Operation"); + } + /** * Deletes a deployment and all of the resources in the deployment. * (deployments.delete) @@ -433,6 +487,15 @@ public function get($project, $deployment, $optParams = array()) * @param string $project The project ID for this request. * @param Google_Deployment $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool preview If set to true, creates a deployment and creates + * "shell" resources but does not actually instantiate these resources. This + * allows you to preview what your deployment looks like. After previewing a + * deployment, you can deploy your resources by making a request with the + * update() method or you can use the cancelPreview() method to cancel the + * preview altogether. Note that the deployment will still exist after you + * cancel the preview and you must separately delete this deployment if you want + * to remove it. * @return Google_Service_DeploymentManager_Operation */ public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) @@ -448,9 +511,22 @@ public function insert($project, Google_Service_DeploymentManager_Deployment $po * @param string $project The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_DeploymentManager_DeploymentsListResponse */ @@ -470,8 +546,17 @@ public function listDeployments($project, $optParams = array()) * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * + * @opt_param bool preview If set to true, updates the deployment and creates + * and updates the "shell" resources but does not actually alter or instantiate + * these resources. This allows you to preview what your deployment looks like. + * You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this is + * set to true. After previewing a deployment, you can deploy your resources by + * making a request with the update() or you can cancelPreview() to remove the + * preview altogether. Note that the deployment will still exist after you + * cancel the preview and you must separately delete this deployment if you want + * to remove it. * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string updatePolicy Sets the policy to use for updating resources. * @opt_param string createPolicy Sets the policy to use for creating new * resources. * @return Google_Service_DeploymentManager_Operation @@ -483,6 +568,24 @@ public function patch($project, $deployment, Google_Service_DeploymentManager_De return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation"); } + /** + * Stops an ongoing operation. This does not roll back any work that has already + * been completed, but prevents any new work from being started. + * (deployments.stop) + * + * @param string $project The project ID for this request. + * @param string $deployment The name of the deployment for this request. + * @param Google_DeploymentsStopRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DeploymentManager_Operation + */ + public function stop($project, $deployment, Google_Service_DeploymentManager_DeploymentsStopRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params), "Google_Service_DeploymentManager_Operation"); + } + /** * Updates a deployment and all of the resources described by the deployment * manifest. (deployments.update) @@ -492,8 +595,17 @@ public function patch($project, $deployment, Google_Service_DeploymentManager_De * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * + * @opt_param bool preview If set to true, updates the deployment and creates + * and updates the "shell" resources but does not actually alter or instantiate + * these resources. This allows you to preview what your deployment looks like. + * You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this is + * set to true. After previewing a deployment, you can deploy your resources by + * making a request with the update() or you can cancelPreview() to remove the + * preview altogether. Note that the deployment will still exist after you + * cancel the preview and you must separately delete this deployment if you want + * to remove it. * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string updatePolicy Sets the policy to use for updating resources. * @opt_param string createPolicy Sets the policy to use for creating new * resources. * @return Google_Service_DeploymentManager_Operation @@ -540,9 +652,22 @@ public function get($project, $deployment, $manifest, $optParams = array()) * @param string $deployment The name of the deployment for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_DeploymentManager_ManifestsListResponse */ @@ -586,9 +711,22 @@ public function get($project, $operation, $optParams = array()) * @param string $project The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_DeploymentManager_OperationsListResponse */ @@ -634,9 +772,22 @@ public function get($project, $deployment, $resource, $optParams = array()) * @param string $deployment The name of the deployment for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_DeploymentManager_ResourcesListResponse */ @@ -665,9 +816,22 @@ class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Res * @param string $project The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Filter expression for filtering listed resources. - * @opt_param string pageToken Tag returned by a previous list request when that - * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_DeploymentManager_TypesListResponse */ @@ -682,6 +846,23 @@ public function listTypes($project, $optParams = array()) +class Google_Service_DeploymentManager_ConfigFile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $content; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } +} + class Google_Service_DeploymentManager_Deployment extends Google_Model { protected $internal_gapi_mappings = array( @@ -690,15 +871,14 @@ class Google_Service_DeploymentManager_Deployment extends Google_Model public $fingerprint; public $id; public $insertTime; - public $intent; public $manifest; public $name; - public $state; + protected $operationType = 'Google_Service_DeploymentManager_Operation'; + protected $operationDataType = ''; protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration'; protected $targetDataType = ''; protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; protected $updateDataType = ''; - public $updateTime; public function setDescription($description) @@ -733,14 +913,6 @@ public function getInsertTime() { return $this->insertTime; } - public function setIntent($intent) - { - $this->intent = $intent; - } - public function getIntent() - { - return $this->intent; - } public function setManifest($manifest) { $this->manifest = $manifest; @@ -757,13 +929,13 @@ public function getName() { return $this->name; } - public function setState($state) + public function setOperation(Google_Service_DeploymentManager_Operation $operation) { - $this->state = $state; + $this->operation = $operation; } - public function getState() + public function getOperation() { - return $this->state; + return $this->operation; } public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target) { @@ -781,33 +953,15 @@ public function getUpdate() { return $this->update; } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } } -class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection +class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Model { - protected $collection_key = 'errors'; protected $internal_gapi_mappings = array( ); - public $errors; public $manifest; - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } public function setManifest($manifest) { $this->manifest = $manifest; @@ -818,8 +972,9 @@ public function getManifest() } } -class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Model +class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Collection { + protected $collection_key = 'warnings'; protected $internal_gapi_mappings = array( ); public $finalProperties; @@ -833,6 +988,8 @@ class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_ protected $updateDataType = ''; public $updateTime; public $url; + protected $warningsType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings'; + protected $warningsDataType = 'array'; public function setFinalProperties($finalProperties) @@ -915,6 +1072,94 @@ public function getUrl() { return $this->url; } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_DeploymentsCancelPreviewRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } } class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection @@ -945,6 +1190,23 @@ public function getNextPageToken() } } +class Google_Service_DeploymentManager_DeploymentsStopRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fingerprint; + + + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } +} + class Google_Service_DeploymentManager_ImportFile extends Google_Model { protected $internal_gapi_mappings = array( @@ -976,8 +1238,9 @@ class Google_Service_DeploymentManager_Manifest extends Google_Collection protected $collection_key = 'imports'; protected $internal_gapi_mappings = array( ); - public $config; - public $evaluatedConfig; + protected $configType = 'Google_Service_DeploymentManager_ConfigFile'; + protected $configDataType = ''; + public $expandedConfig; public $id; protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; protected $importsDataType = 'array'; @@ -987,7 +1250,7 @@ class Google_Service_DeploymentManager_Manifest extends Google_Collection public $selfLink; - public function setConfig($config) + public function setConfig(Google_Service_DeploymentManager_ConfigFile $config) { $this->config = $config; } @@ -995,13 +1258,13 @@ public function getConfig() { return $this->config; } - public function setEvaluatedConfig($evaluatedConfig) + public function setExpandedConfig($expandedConfig) { - $this->evaluatedConfig = $evaluatedConfig; + $this->expandedConfig = $expandedConfig; } - public function getEvaluatedConfig() + public function getExpandedConfig() { - return $this->evaluatedConfig; + return $this->expandedConfig; } public function setId($id) { @@ -1437,24 +1700,27 @@ public function getOperations() class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection { - protected $collection_key = 'errors'; + protected $collection_key = 'warnings'; protected $internal_gapi_mappings = array( ); - public $errors; + protected $errorType = 'Google_Service_DeploymentManager_ResourceUpdateError'; + protected $errorDataType = ''; public $finalProperties; public $intent; public $manifest; public $properties; public $state; + protected $warningsType = 'Google_Service_DeploymentManager_ResourceUpdateWarnings'; + protected $warningsDataType = 'array'; - public function setErrors($errors) + public function setError(Google_Service_DeploymentManager_ResourceUpdateError $error) { - $this->errors = $errors; + $this->error = $error; } - public function getErrors() + public function getError() { - return $this->errors; + return $this->error; } public function setFinalProperties($finalProperties) { @@ -1496,6 +1762,131 @@ public function getState() { return $this->state; } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } +} + +class Google_Service_DeploymentManager_ResourceUpdateError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_DeploymentManager_ResourceUpdateErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_DeploymentManager_ResourceUpdateErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_ResourceUpdateWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_DeploymentManager_ResourceUpdateWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_DeploymentManager_ResourceUpdateWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_ResourcesListResponse extends Google_Collection @@ -1531,12 +1922,13 @@ class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collec protected $collection_key = 'imports'; protected $internal_gapi_mappings = array( ); - public $config; + protected $configType = 'Google_Service_DeploymentManager_ConfigFile'; + protected $configDataType = ''; protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; protected $importsDataType = 'array'; - public function setConfig($config) + public function setConfig(Google_Service_DeploymentManager_ConfigFile $config) { $this->config = $config; } @@ -1558,9 +1950,28 @@ class Google_Service_DeploymentManager_Type extends Google_Model { protected $internal_gapi_mappings = array( ); + public $id; + public $insertTime; public $name; + public $selfLink; + 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 setName($name) { $this->name = $name; @@ -1569,6 +1980,14 @@ public function getName() { return $this->name; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } } class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 9d8629454..04c19b1c2 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -32,6 +32,12 @@ */ class Google_Service_Directory extends Google_Service { + /** View and manage customer related information. */ + const ADMIN_DIRECTORY_CUSTOMER = + "https://www.googleapis.com/auth/admin.directory.customer"; + /** View customer related information. */ + const ADMIN_DIRECTORY_CUSTOMER_READONLY = + "https://www.googleapis.com/auth/admin.directory.customer.readonly"; /** View and manage your Chrome OS devices' metadata. */ const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos"; @@ -93,6 +99,9 @@ class Google_Service_Directory extends Google_Service public $asps; public $channels; public $chromeosdevices; + public $customers; + public $domainAliases; + public $domains; public $groups; public $groups_aliases; public $members; @@ -285,6 +294,170 @@ public function __construct(Google_Client $client) ) ) ); + $this->customers = new Google_Service_Directory_Customers_Resource( + $this, + $this->serviceName, + 'customers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'customers/{customerKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'customers/{customerKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customerKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'customers/{customerKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customerKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource( + $this, + $this->serviceName, + 'domainAliases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'domainAliasName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'domainAliasName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customer}/domainaliases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customer}/domainaliases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parentDomainName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->domains = new Google_Service_Directory_Domains_Resource( + $this, + $this->serviceName, + 'domains', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/domains/{domainName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'domainName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customer}/domains/{domainName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'domainName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customer}/domains', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customer}/domains', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->groups = new Google_Service_Directory_Groups_Resource( $this, $this->serviceName, @@ -1465,200 +1638,399 @@ public function update($customerId, $deviceId, Google_Service_Directory_ChromeOs } /** - * The "groups" collection of methods. + * The "customers" collection of methods. * Typical usage is: * * $adminService = new Google_Service_Directory(...); - * $groups = $adminService->groups; + * $customers = $adminService->customers; * */ -class Google_Service_Directory_Groups_Resource extends Google_Service_Resource +class Google_Service_Directory_Customers_Resource extends Google_Service_Resource { /** - * Delete Group (groups.delete) + * Retrives a customer. (customers.get) * - * @param string $groupKey Email or immutable Id of the group + * @param string $customerKey Id of the customer to be retrieved * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Customer */ - public function delete($groupKey, $optParams = array()) + public function get($customerKey, $optParams = array()) { - $params = array('groupKey' => $groupKey); + $params = array('customerKey' => $customerKey); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Directory_Customer"); } /** - * Retrieve Group (groups.get) + * Updates a customer. This method supports patch semantics. (customers.patch) * - * @param string $groupKey Email or immutable Id of the group + * @param string $customerKey Id of the customer to be updated + * @param Google_Customer $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group + * @return Google_Service_Directory_Customer */ - public function get($groupKey, $optParams = array()) + public function patch($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) { - $params = array('groupKey' => $groupKey); + $params = array('customerKey' => $customerKey, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Group"); + return $this->call('patch', array($params), "Google_Service_Directory_Customer"); } /** - * Create Group (groups.insert) + * Updates a customer. (customers.update) * - * @param Google_Group $postBody + * @param string $customerKey Id of the customer to be updated + * @param Google_Customer $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group + * @return Google_Service_Directory_Customer */ - public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) + public function update($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('customerKey' => $customerKey, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Group"); + return $this->call('update', array($params), "Google_Service_Directory_Customer"); } +} + +/** + * The "domainAliases" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $domainAliases = $adminService->domainAliases; + * + */ +class Google_Service_Directory_DomainAliases_Resource extends Google_Service_Resource +{ /** - * Retrieve all groups in a domain (paginated) (groups.listGroups) + * Deletes a Domain Alias of the customer. (domainAliases.delete) * + * @param string $customer Immutable id of the Google Apps account. + * @param string $domainAliasName Name of domain alias to be retrieved. * @param array $optParams Optional parameters. + */ + public function delete($customer, $domainAliasName, $optParams = array()) + { + $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a domain alias of the customer. (domainAliases.get) * - * @opt_param string customer Immutable id of the Google Apps account. In case - * of multi-domain, to fetch all groups for a customer, fill this field instead - * of domain. - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string domain Name of the domain. Fill this field to get groups - * from only this domain. To return all groups in a multi-domain fill customer - * field instead. - * @opt_param int maxResults Maximum number of results to return. Default is 200 - * @opt_param string userKey Email or immutable Id of the user if only those - * groups are to be listed, the given user is a member of. If Id, it should - * match with id of user object - * @return Google_Service_Directory_Groups + * @param string $customer Immutable id of the Google Apps account. + * @param string $domainAliasName Name of domain alias to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_DomainAlias */ - public function listGroups($optParams = array()) + public function get($customer, $domainAliasName, $optParams = array()) { - $params = array(); + $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Groups"); + return $this->call('get', array($params), "Google_Service_Directory_DomainAlias"); } /** - * Update Group. This method supports patch semantics. (groups.patch) + * Inserts a Domain alias of the customer. (domainAliases.insert) * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param Google_Group $postBody + * @param string $customer Immutable id of the Google Apps account. + * @param Google_DomainAlias $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group + * @return Google_Service_Directory_DomainAlias */ - public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) + public function insert($customer, Google_Service_Directory_DomainAlias $postBody, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array('customer' => $customer, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Group"); + return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias"); } /** - * Update Group (groups.update) + * Lists the domain aliases of the customer. (domainAliases.listDomainAliases) * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param Google_Group $postBody + * @param string $customer Immutable id of the Google Apps account. * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group + * + * @opt_param string parentDomainName Name of the parent domain for which domain + * aliases are to be fetched. + * @return Google_Service_Directory_DomainAliases */ - public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) + public function listDomainAliases($customer, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array('customer' => $customer); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Group"); + return $this->call('list', array($params), "Google_Service_Directory_DomainAliases"); } } /** - * The "aliases" collection of methods. + * The "domains" collection of methods. * Typical usage is: * * $adminService = new Google_Service_Directory(...); - * $aliases = $adminService->aliases; + * $domains = $adminService->domains; * */ -class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource +class Google_Service_Directory_Domains_Resource extends Google_Service_Resource { /** - * Remove a alias for the group (aliases.delete) + * Deletes a domain of the customer. (domains.delete) * - * @param string $groupKey Email or immutable Id of the group - * @param string $alias The alias to be removed + * @param string $customer Immutable id of the Google Apps account. + * @param string $domainName Name of domain to be deleted * @param array $optParams Optional parameters. */ - public function delete($groupKey, $alias, $optParams = array()) + public function delete($customer, $domainName, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'alias' => $alias); + $params = array('customer' => $customer, 'domainName' => $domainName); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** - * Add a alias for the group (aliases.insert) + * Retrives a domain of the customer. (domains.get) * - * @param string $groupKey Email or immutable Id of the group - * @param Google_Alias $postBody + * @param string $customer Immutable id of the Google Apps account. + * @param string $domainName Name of domain to be retrieved * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Alias + * @return Google_Service_Directory_Domains */ - public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) + public function get($customer, $domainName, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array('customer' => $customer, 'domainName' => $domainName); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Alias"); + return $this->call('get', array($params), "Google_Service_Directory_Domains"); } /** - * List all aliases for a group (aliases.listGroupsAliases) + * Inserts a domain of the customer. (domains.insert) * - * @param string $groupKey Email or immutable Id of the group + * @param string $customer Immutable id of the Google Apps account. + * @param Google_Domains $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Aliases + * @return Google_Service_Directory_Domains */ - public function listGroupsAliases($groupKey, $optParams = array()) + public function insert($customer, Google_Service_Directory_Domains $postBody, $optParams = array()) { - $params = array('groupKey' => $groupKey); + $params = array('customer' => $customer, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Aliases"); + return $this->call('insert', array($params), "Google_Service_Directory_Domains"); + } + + /** + * Lists the domains of the customer. (domains.listDomains) + * + * @param string $customer Immutable id of the Google Apps account. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Domains2 + */ + public function listDomains($customer, $optParams = array()) + { + $params = array('customer' => $customer); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Domains2"); } } /** - * The "members" collection of methods. + * The "groups" collection of methods. * Typical usage is: * * $adminService = new Google_Service_Directory(...); - * $members = $adminService->members; + * $groups = $adminService->groups; * */ -class Google_Service_Directory_Members_Resource extends Google_Service_Resource +class Google_Service_Directory_Groups_Resource extends Google_Service_Resource { /** - * Remove membership. (members.delete) + * Delete Group (groups.delete) * * @param string $groupKey Email or immutable Id of the group - * @param string $memberKey Email or immutable Id of the member * @param array $optParams Optional parameters. */ - public function delete($groupKey, $memberKey, $optParams = array()) + public function delete($groupKey, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); + $params = array('groupKey' => $groupKey); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** - * Retrieve Group Member (members.get) + * Retrieve Group (groups.get) * * @param string $groupKey Email or immutable Id of the group - * @param string $memberKey Email or immutable Id of the member + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function get($groupKey, $optParams = array()) + { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Group"); + } + + /** + * Create Group (groups.insert) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Group"); + } + + /** + * Retrieve all groups in a domain (paginated) (groups.listGroups) + * + * @param array $optParams Optional parameters. + * + * @opt_param string customer Immutable id of the Google Apps account. In case + * of multi-domain, to fetch all groups for a customer, fill this field instead + * of domain. + * @opt_param string pageToken Token to specify next page in the list + * @opt_param string domain Name of the domain. Fill this field to get groups + * from only this domain. To return all groups in a multi-domain fill customer + * field instead. + * @opt_param int maxResults Maximum number of results to return. Default is 200 + * @opt_param string userKey Email or immutable Id of the user if only those + * groups are to be listed, the given user is a member of. If Id, it should + * match with id of user object + * @return Google_Service_Directory_Groups + */ + public function listGroups($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Groups"); + } + + /** + * Update Group. This method supports patch semantics. (groups.patch) + * + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) + { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Group"); + } + + /** + * Update Group (groups.update) + * + * @param string $groupKey Email or immutable Id of the group. If Id, it should + * match with id of group object + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) + { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Group"); + } +} + +/** + * The "aliases" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $aliases = $adminService->aliases; + * + */ +class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource +{ + + /** + * Remove a alias for the group (aliases.delete) + * + * @param string $groupKey Email or immutable Id of the group + * @param string $alias The alias to be removed + * @param array $optParams Optional parameters. + */ + public function delete($groupKey, $alias, $optParams = array()) + { + $params = array('groupKey' => $groupKey, 'alias' => $alias); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Add a alias for the group (aliases.insert) + * + * @param string $groupKey Email or immutable Id of the group + * @param Google_Alias $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Alias + */ + public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) + { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Alias"); + } + + /** + * List all aliases for a group (aliases.listGroupsAliases) + * + * @param string $groupKey Email or immutable Id of the group + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Aliases + */ + public function listGroupsAliases($groupKey, $optParams = array()) + { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Aliases"); + } +} + +/** + * The "members" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $members = $adminService->members; + * + */ +class Google_Service_Directory_Members_Resource extends Google_Service_Resource +{ + + /** + * Remove membership. (members.delete) + * + * @param string $groupKey Email or immutable Id of the group + * @param string $memberKey Email or immutable Id of the member + * @param array $optParams Optional parameters. + */ + public function delete($groupKey, $memberKey, $optParams = array()) + { + $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve Group Member (members.get) + * + * @param string $groupKey Email or immutable Id of the group + * @param string $memberKey Email or immutable Id of the member * @param array $optParams Optional parameters. * @return Google_Service_Directory_Member */ @@ -3231,6 +3603,394 @@ public function getNextPageToken() } } +class Google_Service_Directory_Customer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alternateEmail; + public $customerCreationTime; + public $customerDomain; + public $etag; + public $id; + public $kind; + public $language; + public $phoneNumber; + protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress'; + protected $postalAddressDataType = ''; + + + public function setAlternateEmail($alternateEmail) + { + $this->alternateEmail = $alternateEmail; + } + public function getAlternateEmail() + { + return $this->alternateEmail; + } + public function setCustomerCreationTime($customerCreationTime) + { + $this->customerCreationTime = $customerCreationTime; + } + public function getCustomerCreationTime() + { + return $this->customerCreationTime; + } + public function setCustomerDomain($customerDomain) + { + $this->customerDomain = $customerDomain; + } + public function getCustomerDomain() + { + return $this->customerDomain; + } + 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 setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } + public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress) + { + $this->postalAddress = $postalAddress; + } + public function getPostalAddress() + { + return $this->postalAddress; + } +} + +class Google_Service_Directory_CustomerPostalAddress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $addressLine1; + public $addressLine2; + public $addressLine3; + public $contactName; + public $countryCode; + 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 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_Directory_DomainAlias extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTime; + public $domainAliasName; + public $etag; + public $kind; + public $parentDomainName; + public $verified; + + + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDomainAliasName($domainAliasName) + { + $this->domainAliasName = $domainAliasName; + } + public function getDomainAliasName() + { + return $this->domainAliasName; + } + 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 setParentDomainName($parentDomainName) + { + $this->parentDomainName = $parentDomainName; + } + public function getParentDomainName() + { + return $this->parentDomainName; + } + public function setVerified($verified) + { + $this->verified = $verified; + } + public function getVerified() + { + return $this->verified; + } +} + +class Google_Service_Directory_DomainAliases extends Google_Collection +{ + protected $collection_key = 'domainAliases'; + protected $internal_gapi_mappings = array( + ); + protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; + protected $domainAliasesDataType = 'array'; + public $etag; + public $kind; + + + public function setDomainAliases($domainAliases) + { + $this->domainAliases = $domainAliases; + } + public function getDomainAliases() + { + return $this->domainAliases; + } + 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; + } +} + +class Google_Service_Directory_Domains extends Google_Collection +{ + protected $collection_key = 'domainAliases'; + protected $internal_gapi_mappings = array( + ); + public $creationTime; + protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; + protected $domainAliasesDataType = 'array'; + public $domainName; + public $etag; + public $isPrimary; + public $kind; + public $verified; + + + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDomainAliases($domainAliases) + { + $this->domainAliases = $domainAliases; + } + public function getDomainAliases() + { + return $this->domainAliases; + } + public function setDomainName($domainName) + { + $this->domainName = $domainName; + } + public function getDomainName() + { + return $this->domainName; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setIsPrimary($isPrimary) + { + $this->isPrimary = $isPrimary; + } + public function getIsPrimary() + { + return $this->isPrimary; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVerified($verified) + { + $this->verified = $verified; + } + public function getVerified() + { + return $this->verified; + } +} + +class Google_Service_Directory_Domains2 extends Google_Collection +{ + protected $collection_key = 'domains'; + protected $internal_gapi_mappings = array( + ); + protected $domainsType = 'Google_Service_Directory_Domains'; + protected $domainsDataType = 'array'; + public $etag; + public $kind; + + + public function setDomains($domains) + { + $this->domains = $domains; + } + public function getDomains() + { + return $this->domains; + } + 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; + } +} + class Google_Service_Directory_Group extends Google_Collection { protected $collection_key = 'nonEditableAliases'; @@ -3486,14 +4246,16 @@ public function getNextPageToken() class Google_Service_Directory_MobileDevice extends Google_Collection { - protected $collection_key = 'name'; + protected $collection_key = 'otherAccountsInfo'; protected $internal_gapi_mappings = array( ); + public $adbStatus; protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; protected $applicationsDataType = 'array'; public $basebandVersion; public $buildNumber; public $defaultLanguage; + public $developerOptionsStatus; public $deviceCompromisedStatus; public $deviceId; public $email; @@ -3510,14 +4272,25 @@ class Google_Service_Directory_MobileDevice extends Google_Collection public $name; public $networkOperator; public $os; + public $otherAccountsInfo; public $resourceId; public $serialNumber; public $status; + public $supportsWorkProfile; public $type; + public $unknownSourcesStatus; public $userAgent; public $wifiMacAddress; + public function setAdbStatus($adbStatus) + { + $this->adbStatus = $adbStatus; + } + public function getAdbStatus() + { + return $this->adbStatus; + } public function setApplications($applications) { $this->applications = $applications; @@ -3550,6 +4323,14 @@ public function getDefaultLanguage() { return $this->defaultLanguage; } + public function setDeveloperOptionsStatus($developerOptionsStatus) + { + $this->developerOptionsStatus = $developerOptionsStatus; + } + public function getDeveloperOptionsStatus() + { + return $this->developerOptionsStatus; + } public function setDeviceCompromisedStatus($deviceCompromisedStatus) { $this->deviceCompromisedStatus = $deviceCompromisedStatus; @@ -3678,6 +4459,14 @@ public function getOs() { return $this->os; } + public function setOtherAccountsInfo($otherAccountsInfo) + { + $this->otherAccountsInfo = $otherAccountsInfo; + } + public function getOtherAccountsInfo() + { + return $this->otherAccountsInfo; + } public function setResourceId($resourceId) { $this->resourceId = $resourceId; @@ -3702,6 +4491,14 @@ public function getStatus() { return $this->status; } + public function setSupportsWorkProfile($supportsWorkProfile) + { + $this->supportsWorkProfile = $supportsWorkProfile; + } + public function getSupportsWorkProfile() + { + return $this->supportsWorkProfile; + } public function setType($type) { $this->type = $type; @@ -3710,6 +4507,14 @@ public function getType() { return $this->type; } + public function setUnknownSourcesStatus($unknownSourcesStatus) + { + $this->unknownSourcesStatus = $unknownSourcesStatus; + } + public function getUnknownSourcesStatus() + { + return $this->unknownSourcesStatus; + } public function setUserAgent($userAgent) { $this->userAgent = $userAgent; diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index 5c62e189d..e94410b52 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -34,6 +34,9 @@ class Google_Service_Dns extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View your DNS records hosted by Google Cloud DNS. */ const NDEV_CLOUDDNS_READONLY = "https://www.googleapis.com/auth/ndev.clouddns.readonly"; @@ -195,6 +198,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'dnsName' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -409,6 +416,8 @@ public function get($project, $managedZone, $optParams = array()) * @opt_param string pageToken Optional. A tag returned by a previous list * request that was truncated. Use this parameter to continue a previous list * request. + * @opt_param string dnsName Restricts the list to return only zones with this + * domain name. * @opt_param int maxResults Optional. Maximum number of results to be returned. * If unspecified, the server will decide how many results to return. * @return Google_Service_Dns_ManagedZonesListResponse diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index 4191ef6e1..f17ef6b20 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -296,11 +296,20 @@ class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Goog protected $collection_key = 'filterIds'; protected $internal_gapi_mappings = array( ); + public $fileSpec; public $filterIds; public $filterType; public $format; + public function setFileSpec($fileSpec) + { + $this->fileSpec = $fileSpec; + } + public function getFileSpec() + { + return $this->fileSpec; + } public function setFilterIds($filterIds) { $this->filterIds = $filterIds; diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index e30a33128..ab06a05cf 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -1797,8 +1797,9 @@ public function generateIds($optParams = array()) * * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk * of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate Whether to update the view date after - * successfully retrieving the file. + * @opt_param bool updateViewedDate Deprecated: Use files.update with + * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request + * body. * @opt_param string revisionId Specifies the Revision ID that should be * downloaded. Ignored unless alt=media is specified. * @opt_param string projection This parameter is deprecated and has no @@ -2008,8 +2009,9 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa * * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk * of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate Whether to update the view date after - * successfully retrieving the file. + * @opt_param bool updateViewedDate Deprecated: Use files.update with + * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request + * body. * @opt_param string revisionId Specifies the Revision ID that should be * downloaded. Ignored unless alt=media is specified. * @opt_param string projection This parameter is deprecated and has no @@ -2184,8 +2186,7 @@ public function listPermissions($fileId, $optParams = array()) } /** - * Updates a permission. This method supports patch semantics. - * (permissions.patch) + * Updates a permission using patch semantics. (permissions.patch) * * @param string $fileId The ID for the file. * @param string $permissionId The ID for the permission. diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index 513528478..2e7fa29e4 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -615,9 +615,13 @@ class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resour { /** + * Aggregates data of a certain type or stream into buckets divided by a given + * type of boundary. Multiple data sets of multiple types and from multiple + * sources can be aggreated into exactly one bucket type per request. * (dataset.aggregate) * - * @param string $userId + * @param string $userId Aggregate data for the person identified. Use me to + * indicate the authenticated user. Only me is supported at this time. * @param Google_AggregateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fitness_AggregateResponse @@ -779,8 +783,6 @@ class Google_Service_Fitness_AggregateBy extends Google_Model ); public $dataSourceId; public $dataTypeName; - public $outputDataSourceId; - public $outputDataTypeName; public function setDataSourceId($dataSourceId) @@ -799,22 +801,6 @@ public function getDataTypeName() { return $this->dataTypeName; } - public function setOutputDataSourceId($outputDataSourceId) - { - $this->outputDataSourceId = $outputDataSourceId; - } - public function getOutputDataSourceId() - { - return $this->outputDataSourceId; - } - public function setOutputDataTypeName($outputDataTypeName) - { - $this->outputDataTypeName = $outputDataTypeName; - } - public function getOutputDataTypeName() - { - return $this->outputDataTypeName; - } } class Google_Service_Fitness_AggregateRequest extends Google_Collection @@ -1401,6 +1387,23 @@ public function getSession() } } +class Google_Service_Fitness_MapValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fpVal; + + + public function setFpVal($fpVal) + { + $this->fpVal = $fpVal; + } + public function getFpVal() + { + return $this->fpVal; + } +} + class Google_Service_Fitness_Session extends Google_Model { protected $internal_gapi_mappings = array( @@ -1491,12 +1494,16 @@ public function getStartTimeMillis() } } -class Google_Service_Fitness_Value extends Google_Model +class Google_Service_Fitness_Value extends Google_Collection { + protected $collection_key = 'mapVal'; protected $internal_gapi_mappings = array( ); public $fpVal; public $intVal; + protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry'; + protected $mapValDataType = 'array'; + public $stringVal; public function setFpVal($fpVal) @@ -1515,4 +1522,47 @@ public function getIntVal() { return $this->intVal; } + public function setMapVal($mapVal) + { + $this->mapVal = $mapVal; + } + public function getMapVal() + { + return $this->mapVal; + } + public function setStringVal($stringVal) + { + $this->stringVal = $stringVal; + } + public function getStringVal() + { + return $this->stringVal; + } +} + +class Google_Service_Fitness_ValueMapValEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + protected $valueType = 'Google_Service_Fitness_MapValue'; + protected $valueDataType = ''; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue(Google_Service_Fitness_MapValue $value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } } diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index c92482ec0..ffe7b4d89 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -31,11 +31,35 @@ */ class Google_Service_Genomics extends Google_Service { + /** View and manage your data in Google BigQuery. */ + const BIGQUERY = + "https://www.googleapis.com/auth/bigquery"; + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = + "https://www.googleapis.com/auth/devstorage.read_write"; + /** View and manage Genomics data. */ + const GENOMICS = + "https://www.googleapis.com/auth/genomics"; + /** View Genomics data. */ + const GENOMICS_READONLY = + "https://www.googleapis.com/auth/genomics.readonly"; + public $callsets; + public $datasets; + public $operations; + public $readgroupsets; + public $readgroupsets_coveragebuckets; + public $reads; + public $references; + public $references_bases; + public $referencesets; + public $variants; + public $variantsets; - - /** * Constructs the internal representation of the Genomics service. * @@ -49,5 +73,3918 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'genomics'; + $this->callsets = new Google_Service_Genomics_Callsets_Resource( + $this, + $this->serviceName, + 'callsets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/callsets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/callsets/{callSetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'callSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/callsets/{callSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'callSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v1/callsets/{callSetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'callSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/callsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->datasets = new Google_Service_Genomics_Datasets_Resource( + $this, + $this->serviceName, + 'datasets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/datasets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/datasets/{datasetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/datasets/{datasetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/datasets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1/datasets/{datasetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'undelete' => array( + 'path' => 'v1/datasets/{datasetId}:undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_Genomics_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->readgroupsets = new Google_Service_Genomics_Readgroupsets_Resource( + $this, + $this->serviceName, + 'readgroupsets', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1/readgroupsets/{readGroupSetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'readGroupSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'export' => array( + 'path' => 'v1/readgroupsets/{readGroupSetId}:export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'readGroupSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/readgroupsets/{readGroupSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'readGroupSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'import' => array( + 'path' => 'v1/readgroupsets:import', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'patch' => array( + 'path' => 'v1/readgroupsets/{readGroupSetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'readGroupSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/readgroupsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource( + $this, + $this->serviceName, + 'coveragebuckets', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'readGroupSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'end' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'targetBucketWidth' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'referenceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->reads = new Google_Service_Genomics_Reads_Resource( + $this, + $this->serviceName, + 'reads', + array( + 'methods' => array( + 'search' => array( + 'path' => 'v1/reads/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->references = new Google_Service_Genomics_References_Resource( + $this, + $this->serviceName, + 'references', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/references/{referenceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'v1/references/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->references_bases = new Google_Service_Genomics_ReferencesBases_Resource( + $this, + $this->serviceName, + 'bases', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/references/{referenceId}/bases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'start' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'end' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->referencesets = new Google_Service_Genomics_Referencesets_Resource( + $this, + $this->serviceName, + 'referencesets', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/referencesets/{referenceSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'referenceSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'v1/referencesets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->variants = new Google_Service_Genomics_Variants_Resource( + $this, + $this->serviceName, + 'variants', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/variants', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/variants/{variantId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/variants/{variantId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'import' => array( + 'path' => 'v1/variants:import', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'patch' => array( + 'path' => 'v1/variants/{variantId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/variants/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->variantsets = new Google_Service_Genomics_Variantsets_Resource( + $this, + $this->serviceName, + 'variantsets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/variantsets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/variantsets/{variantSetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'export' => array( + 'path' => 'v1/variantsets/{variantSetId}:export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/variantsets/{variantSetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v1/variantsets/{variantSetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'variantSetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/variantsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "callsets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $callsets = $genomicsService->callsets; + * + */ +class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource +{ + + /** + * Creates a new call set. (callsets.create) + * + * @param Google_CallSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_CallSet + */ + public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); + } + + /** + * Deletes a call set. (callsets.delete) + * + * @param string $callSetId The ID of the call set to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($callSetId, $optParams = array()) + { + $params = array('callSetId' => $callSetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Gets a call set by ID. (callsets.get) + * + * @param string $callSetId The ID of the call set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_CallSet + */ + public function get($callSetId, $optParams = array()) + { + $params = array('callSetId' => $callSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); + } + + /** + * Updates a call set. This method supports patch semantics. (callsets.patch) + * + * @param string $callSetId The ID of the call set to be updated. + * @param Google_CallSet $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask An optional mask specifying which fields to + * update. At this time, the only mutable field is name. The only acceptable + * value is "name". If unspecified, all mutable fields will be updated. + * @return Google_Service_Genomics_CallSet + */ + public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) + { + $params = array('callSetId' => $callSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); + } + + /** + * Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi + * .searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resour + * ces/avro/variantmethods.avdl#L178). (callsets.search) + * + * @param Google_SearchCallSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchCallSetsResponse + */ + public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); + } +} + +/** + * The "datasets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $datasets = $genomicsService->datasets; + * + */ +class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource +{ + + /** + * Creates a new dataset. (datasets.create) + * + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Deletes a dataset. (datasets.delete) + * + * @param string $datasetId The ID of the dataset to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($datasetId, $optParams = array()) + { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Gets a dataset by ID. (datasets.get) + * + * @param string $datasetId The ID of the dataset. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function get($datasetId, $optParams = array()) + { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Gets the access control policy for the dataset. Is empty if the policy or the + * resource does not exist. See Getting a Policy for more information. + * (datasets.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Format is `datasets/`. + * @param Google_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Policy + */ + public function getIamPolicy($resource, Google_Service_Genomics_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Genomics_Policy"); + } + + /** + * Lists datasets within a project. (datasets.listDatasets) + * + * @param array $optParams Optional parameters. + * + * @opt_param string projectId Required. The project to list datasets for. + * @opt_param int pageSize The maximum number of results returned by this + * request. If unspecified, defaults to 50. The maximum value is 1024. + * @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_Service_Genomics_ListDatasetsResponse + */ + public function listDatasets($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); + } + + /** + * Updates a dataset. This method supports patch semantics. (datasets.patch) + * + * @param string $datasetId The ID of the dataset to be updated. + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask An optional mask specifying which fields to + * update. At this time, the only mutable field is name. The only acceptable + * value is "name". If unspecified, all mutable fields will be updated. + * @return Google_Service_Genomics_Dataset + */ + public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) + { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Sets the access control policy on the specified dataset. Replaces any + * existing policy. See Setting a Policy for more information. + * (datasets.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Format is `datasets/`. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Policy + */ + public function setIamPolicy($resource, Google_Service_Genomics_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Genomics_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. See Testing + * Permissions for more information. (datasets.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Format is `datasets/`. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Genomics_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Genomics_TestIamPermissionsResponse"); + } + + /** + * Undeletes a dataset by restoring a dataset which was deleted via this API. + * This operation is only possible for a week after the deletion occurred. + * (datasets.undelete) + * + * @param string $datasetId The ID of the dataset to be undeleted. + * @param Google_UndeleteDatasetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function undelete($datasetId, Google_Service_Genomics_UndeleteDatasetRequest $postBody, $optParams = array()) + { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $operations = $genomicsService->operations; + * + */ +class Google_Service_Genomics_Operations_Resource extends Google_Service_Resource +{ + + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * Clients may use Operations.GetOperation or Operations.ListOperations to check + * whether the cancellation succeeded or the operation completed despite + * cancellation. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param Google_CancelOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function cancel($name, Google_Service_Genomics_CancelOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * This method is not implemented. To cancel an operation, please use + * Operations.CancelOperation. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. + * (operations.listOperations) + * + * @param string $name The name of the operation collection. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A string for filtering Operations. The following + * filter fields are supported: * projectId: Required. Corresponds to + * OperationMetadata.projectId. * createTime: The time this job was created, in + * seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use + * `>=` and/or `= 1432140000` * `projectId = my-project AND createTime >= + * 1432140000 AND createTime <= 1432150000 AND status = RUNNING` + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The maximum number of results to return. If + * unspecified, defaults to 256. The maximum value is 2048. + * @return Google_Service_Genomics_ListOperationsResponse + */ + public function listOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListOperationsResponse"); + } +} + +/** + * The "readgroupsets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $readgroupsets = $genomicsService->readgroupsets; + * + */ +class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Resource +{ + + /** + * Deletes a read group set. (readgroupsets.delete) + * + * @param string $readGroupSetId The ID of the read group set to be deleted. The + * caller must have WRITE permissions to the dataset associated with this read + * group set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($readGroupSetId, $optParams = array()) + { + $params = array('readGroupSetId' => $readGroupSetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Exports a read group set to a BAM file in Google Cloud Storage. Note that + * currently there may be some differences between exported BAM files and the + * original BAM file at the time of import. See + * [ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) + * for caveats. (readgroupsets.export) + * + * @param string $readGroupSetId Required. The ID of the read group set to + * export. + * @param Google_ExportReadGroupSetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Operation + */ + public function export($readGroupSetId, Google_Service_Genomics_ExportReadGroupSetRequest $postBody, $optParams = array()) + { + $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_Genomics_Operation"); + } + + /** + * Gets a read group set by ID. (readgroupsets.get) + * + * @param string $readGroupSetId The ID of the read group set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ReadGroupSet + */ + public function get($readGroupSetId, $optParams = array()) + { + $params = array('readGroupSetId' => $readGroupSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); + } + + /** + * Creates read group sets by asynchronously importing the provided information. + * The caller must have WRITE permissions to the dataset. ## Notes on + * [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import - Tags will be + * converted to strings - tag types are not preserved - Comments (`@CO`) in the + * input file header will not be preserved - Original header order of references + * (`@SQ`) will not be preserved - Any reverse stranded unmapped reads will be + * reverse complemented, and their qualities (and "BQ" tag, if any) will be + * reversed - Unmapped reads will be stripped of positional information + * (reference name and position) (readgroupsets.import) + * + * @param Google_ImportReadGroupSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Operation + */ + public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Genomics_Operation"); + } + + /** + * Updates a read group set. This method supports patch semantics. + * (readgroupsets.patch) + * + * @param string $readGroupSetId The ID of the read group set to be updated. The + * caller must have WRITE permissions to the dataset associated with this read + * group set. + * @param Google_ReadGroupSet $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask An optional mask specifying which fields to + * update. At this time, mutable fields are referenceSetId and name. Acceptable + * values are "referenceSetId" and "name". If unspecified, all mutable fields + * will be updated. + * @return Google_Service_Genomics_ReadGroupSet + */ + public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) + { + $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); + } + + /** + * Searches for read group sets matching the criteria. Implements [GlobalAllianc + * eApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/ma + * in/resources/avro/readmethods.avdl#L135). (readgroupsets.search) + * + * @param Google_SearchReadGroupSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReadGroupSetsResponse + */ + public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); + } +} + +/** + * The "coveragebuckets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $coveragebuckets = $genomicsService->coveragebuckets; + * + */ +class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Google_Service_Resource +{ + + /** + * Lists fixed width coverage buckets for a read group set, each of which + * correspond to a range of a reference sequence. Each bucket summarizes + * coverage information across its corresponding genomic range. Coverage is + * defined as the number of reads which are aligned to a given base in the + * reference sequence. Coverage buckets are available at several precomputed + * bucket widths, enabling retrieval of various coverage 'zoom levels'. The + * caller must have READ permissions for the target read group set. + * (coveragebuckets.listReadgroupsetsCoveragebuckets) + * + * @param string $readGroupSetId Required. The ID of the read group set over + * which coverage is requested. + * @param array $optParams Optional parameters. + * + * @opt_param string end The end position of the range on the reference, 0-based + * exclusive. If specified, `referenceName` must also be specified. If unset or + * 0, defaults to the length of the reference. + * @opt_param int pageSize The maximum number of results to return in a single + * page. If unspecified, defaults to 1024. The maximum value is 2048. + * @opt_param string start The start position of the range on the reference, + * 0-based inclusive. If specified, `referenceName` must also be specified. + * Defaults to 0. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of `nextPageToken` from the previous response. + * @opt_param string targetBucketWidth The desired width of each reported + * coverage bucket in base pairs. This will be rounded down to the nearest + * precomputed bucket width; the value of which is returned as `bucketWidth` in + * the response. Defaults to infinity (each bucket spans an entire reference + * sequence) or the length of the target range, if specified. The smallest + * precomputed `bucketWidth` is currently 2048 base pairs; this is subject to + * change. + * @opt_param string referenceName The name of the reference to query, within + * the reference set associated with this query. Optional. + * @return Google_Service_Genomics_ListCoverageBucketsResponse + */ + public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) + { + $params = array('readGroupSetId' => $readGroupSetId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); + } +} + +/** + * The "reads" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $reads = $genomicsService->reads; + * + */ +class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource +{ + + /** + * Gets a list of reads for one or more read group sets. Reads search operates + * over a genomic coordinate space of reference sequence & position defined over + * the reference sequences to which the requested read group sets are aligned. + * If a target positional range is specified, search returns all reads whose + * alignment to the reference genome overlap the range. A query which specifies + * only read group set IDs yields all reads in those read group sets, including + * unmapped reads. All reads returned (including reads on subsequent pages) are + * ordered by genomic coordinate (reference sequence & position). Reads with + * equivalent genomic coordinates are returned in a deterministic order. + * Implements [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/b + * lob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). (reads.search) + * + * @param Google_SearchReadsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReadsResponse + */ + public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); + } +} + +/** + * The "references" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $references = $genomicsService->references; + * + */ +class Google_Service_Genomics_References_Resource extends Google_Service_Resource +{ + + /** + * Gets a reference. Implements [GlobalAllianceApi.getReference](https://github. + * com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L + * 158). (references.get) + * + * @param string $referenceId The ID of the reference. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Reference + */ + public function get($referenceId, $optParams = array()) + { + $params = array('referenceId' => $referenceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Reference"); + } + + /** + * Searches for references which match the given criteria. Implements [GlobalAll + * ianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5.1/src/m + * ain/resources/avro/referencemethods.avdl#L146). (references.search) + * + * @param Google_SearchReferencesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReferencesResponse + */ + public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse"); + } +} + +/** + * The "bases" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $bases = $genomicsService->bases; + * + */ +class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Resource +{ + + /** + * Lists the bases in a reference, optionally restricted to a range. Implements + * [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v + * 0.5.1/src/main/resources/avro/referencemethods.avdl#L221). + * (bases.listReferencesBases) + * + * @param string $referenceId The ID of the reference. + * @param array $optParams Optional parameters. + * + * @opt_param string start The start position (0-based) of this query. Defaults + * to 0. + * @opt_param string end The end position (0-based, exclusive) of this query. + * Defaults to the length of this reference. + * @opt_param int pageSize Specifies the maximum number of bases to return in a + * single page. + * @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_Service_Genomics_ListBasesResponse + */ + public function listReferencesBases($referenceId, $optParams = array()) + { + $params = array('referenceId' => $referenceId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse"); + } +} + +/** + * The "referencesets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $referencesets = $genomicsService->referencesets; + * + */ +class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Resource +{ + + /** + * Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](https:// + * github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods + * .avdl#L83). (referencesets.get) + * + * @param string $referenceSetId The ID of the reference set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ReferenceSet + */ + public function get($referenceSetId, $optParams = array()) + { + $params = array('referenceSetId' => $referenceSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); + } + + /** + * Searches for reference sets which match the given criteria. Implements [Globa + * lAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5.1/g + * a4gh_api.html#/schema/org.ga4gh.searchReferenceSets). (referencesets.search) + * + * @param Google_SearchReferenceSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReferenceSetsResponse + */ + public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse"); + } +} + +/** + * The "variants" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $variants = $genomicsService->variants; + * + */ +class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource +{ + + /** + * Creates a new variant. (variants.create) + * + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Variant"); } + + /** + * Deletes a variant. (variants.delete) + * + * @param string $variantId The ID of the variant to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($variantId, $optParams = array()) + { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Gets a variant by ID. (variants.get) + * + * @param string $variantId The ID of the variant. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function get($variantId, $optParams = array()) + { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Variant"); + } + + /** + * Creates variant data by asynchronously importing the provided information. + * The variants for import will be merged with any existing variant that matches + * its reference sequence, start, end, reference bases, and alternative bases. + * If no such variant exists, a new one will be created. When variants are + * merged, the call information from the new variant is added to the existing + * variant, and other fields (such as key/value pairs) are discarded. In + * particular, this means for merged VCF variants that have conflicting INFO + * fields, some data will be arbitrarily discarded. As a special case, for + * single-sample VCF files, QUAL and FILTER fields will be moved to the call + * level; these are sometimes interpreted in a call-specific context. Imported + * VCF headers are appended to the metadata already in a variant set. + * (variants.import) + * + * @param Google_ImportVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Operation + */ + public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Genomics_Operation"); + } + + /** + * Updates a variant. This method supports patch semantics. Returns the modified + * variant without its calls. (variants.patch) + * + * @param string $variantId The ID of the variant to be updated. + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask An optional mask specifying which fields to + * update. At this time, mutable fields are names and info. Acceptable values + * are "names" and "info". If unspecified, all mutable fields will be updated. + * @return Google_Service_Genomics_Variant + */ + public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) + { + $params = array('variantId' => $variantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Variant"); + } + + /** + * Gets a list of variants matching the criteria. Implements [GlobalAllianceApi. + * searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resourc + * es/avro/variantmethods.avdl#L126). (variants.search) + * + * @param Google_SearchVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchVariantsResponse + */ + public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); + } +} + +/** + * The "variantsets" collection of methods. + * Typical usage is: + * + * $genomicsService = new Google_Service_Genomics(...); + * $variantsets = $genomicsService->variantsets; + * + */ +class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resource +{ + + /** + * Creates a new variant set. The provided variant set must have a valid + * `datasetId` set - all other fields are optional. Note that the `id` field + * will be ignored, as this is assigned by the server. (variantsets.create) + * + * @param Google_VariantSet $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_VariantSet + */ + public function create(Google_Service_Genomics_VariantSet $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_VariantSet"); + } + + /** + * Deletes the contents of a variant set. The variant set object is not deleted. + * (variantsets.delete) + * + * @param string $variantSetId The ID of the variant set to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function delete($variantSetId, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); + } + + /** + * Exports variant set data to an external destination. (variantsets.export) + * + * @param string $variantSetId Required. The ID of the variant set that contains + * variant data which should be exported. The caller must have READ access to + * this variant set. + * @param Google_ExportVariantSetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Operation + */ + public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_Genomics_Operation"); + } + + /** + * Gets a variant set by ID. (variantsets.get) + * + * @param string $variantSetId Required. The ID of the variant set. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_VariantSet + */ + public function get($variantSetId, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); + } + + /** + * Updates a variant set. This method supports patch semantics. + * (variantsets.patch) + * + * @param string $variantSetId The ID of the variant to be updated (must already + * exist). + * @param Google_VariantSet $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask An optional mask specifying which fields to + * update. At this time, the only mutable field is metadata. The only acceptable + * value is "metadata". If unspecified, all mutable fields will be updated. + * @return Google_Service_Genomics_VariantSet + */ + public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) + { + $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); + } + + /** + * Returns a list of all variant sets matching search criteria. Implements [Glob + * alAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0.5.1 + * /src/main/resources/avro/variantmethods.avdl#L49). (variantsets.search) + * + * @param Google_SearchVariantSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchVariantSetsResponse + */ + public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); + } +} + + + + +class Google_Service_Genomics_Binding extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $members; + public $role; + + + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} + +class Google_Service_Genomics_CallSet extends Google_Collection +{ + protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); + public $created; + public $id; + public $info; + public $name; + public $sampleId; + public $variantSetIds; + + + 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 setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSampleId($sampleId) + { + $this->sampleId = $sampleId; + } + public function getSampleId() + { + return $this->sampleId; + } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + public function getVariantSetIds() + { + return $this->variantSetIds; + } +} + +class Google_Service_Genomics_CallSetInfo extends Google_Model +{ +} + +class Google_Service_Genomics_CancelOperationRequest extends Google_Model +{ +} + +class Google_Service_Genomics_CigarUnit extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $operation; + public $operationLength; + public $referenceSequence; + + + public function setOperation($operation) + { + $this->operation = $operation; + } + public function getOperation() + { + return $this->operation; + } + public function setOperationLength($operationLength) + { + $this->operationLength = $operationLength; + } + public function getOperationLength() + { + return $this->operationLength; + } + public function setReferenceSequence($referenceSequence) + { + $this->referenceSequence = $referenceSequence; + } + public function getReferenceSequence() + { + return $this->referenceSequence; + } +} + +class Google_Service_Genomics_CoverageBucket extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $meanCoverage; + protected $rangeType = 'Google_Service_Genomics_Range'; + protected $rangeDataType = ''; + + + public function setMeanCoverage($meanCoverage) + { + $this->meanCoverage = $meanCoverage; + } + public function getMeanCoverage() + { + return $this->meanCoverage; + } + public function setRange(Google_Service_Genomics_Range $range) + { + $this->range = $range; + } + public function getRange() + { + return $this->range; + } +} + +class Google_Service_Genomics_Dataset extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $id; + public $name; + public $projectId; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_Genomics_Empty extends Google_Model +{ +} + +class Google_Service_Genomics_Experiment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instrumentModel; + public $libraryId; + public $platformUnit; + public $sequencingCenter; + + + public function setInstrumentModel($instrumentModel) + { + $this->instrumentModel = $instrumentModel; + } + public function getInstrumentModel() + { + return $this->instrumentModel; + } + public function setLibraryId($libraryId) + { + $this->libraryId = $libraryId; + } + public function getLibraryId() + { + return $this->libraryId; + } + public function setPlatformUnit($platformUnit) + { + $this->platformUnit = $platformUnit; + } + public function getPlatformUnit() + { + return $this->platformUnit; + } + public function setSequencingCenter($sequencingCenter) + { + $this->sequencingCenter = $sequencingCenter; + } + public function getSequencingCenter() + { + return $this->sequencingCenter; + } +} + +class Google_Service_Genomics_ExportReadGroupSetRequest extends Google_Collection +{ + protected $collection_key = 'referenceNames'; + protected $internal_gapi_mappings = array( + ); + public $exportUri; + public $projectId; + public $referenceNames; + + + public function setExportUri($exportUri) + { + $this->exportUri = $exportUri; + } + public function getExportUri() + { + return $this->exportUri; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReferenceNames($referenceNames) + { + $this->referenceNames = $referenceNames; + } + public function getReferenceNames() + { + return $this->referenceNames; + } +} + +class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection +{ + protected $collection_key = 'callSetIds'; + protected $internal_gapi_mappings = array( + ); + public $bigqueryDataset; + public $bigqueryTable; + public $callSetIds; + public $format; + public $projectId; + + + public function setBigqueryDataset($bigqueryDataset) + { + $this->bigqueryDataset = $bigqueryDataset; + } + public function getBigqueryDataset() + { + return $this->bigqueryDataset; + } + public function setBigqueryTable($bigqueryTable) + { + $this->bigqueryTable = $bigqueryTable; + } + public function getBigqueryTable() + { + return $this->bigqueryTable; + } + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} + +class Google_Service_Genomics_GetIamPolicyRequest extends Google_Model +{ +} + +class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $partitionStrategy; + public $referenceSetId; + public $sourceUris; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setPartitionStrategy($partitionStrategy) + { + $this->partitionStrategy = $partitionStrategy; + } + public function getPartitionStrategy() + { + return $this->partitionStrategy; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + public function getSourceUris() + { + return $this->sourceUris; + } +} + +class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Collection +{ + protected $collection_key = 'readGroupSetIds'; + protected $internal_gapi_mappings = array( + ); + public $readGroupSetIds; + + + public function setReadGroupSetIds($readGroupSetIds) + { + $this->readGroupSetIds = $readGroupSetIds; + } + public function getReadGroupSetIds() + { + return $this->readGroupSetIds; + } +} + +class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $format; + public $normalizeReferenceNames; + public $sourceUris; + public $variantSetId; + + + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setNormalizeReferenceNames($normalizeReferenceNames) + { + $this->normalizeReferenceNames = $normalizeReferenceNames; + } + public function getNormalizeReferenceNames() + { + return $this->normalizeReferenceNames; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + public function getSourceUris() + { + return $this->sourceUris; + } + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + public function getVariantSetId() + { + return $this->variantSetId; + } +} + +class Google_Service_Genomics_ImportVariantsResponse extends Google_Collection +{ + protected $collection_key = 'callSetIds'; + protected $internal_gapi_mappings = array( + ); + public $callSetIds; + + + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + public function getCallSetIds() + { + return $this->callSetIds; + } +} + +class Google_Service_Genomics_LinearAlignment extends Google_Collection +{ + protected $collection_key = 'cigar'; + protected $internal_gapi_mappings = array( + ); + protected $cigarType = 'Google_Service_Genomics_CigarUnit'; + protected $cigarDataType = 'array'; + public $mappingQuality; + protected $positionType = 'Google_Service_Genomics_Position'; + protected $positionDataType = ''; + + + public function setCigar($cigar) + { + $this->cigar = $cigar; + } + public function getCigar() + { + return $this->cigar; + } + public function setMappingQuality($mappingQuality) + { + $this->mappingQuality = $mappingQuality; + } + public function getMappingQuality() + { + return $this->mappingQuality; + } + public function setPosition(Google_Service_Genomics_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + +class Google_Service_Genomics_ListBasesResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + public $offset; + public $sequence; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOffset($offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setSequence($sequence) + { + $this->sequence = $sequence; + } + public function getSequence() + { + return $this->sequence; + } +} + +class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection +{ + protected $collection_key = 'coverageBuckets'; + protected $internal_gapi_mappings = array( + ); + public $bucketWidth; + protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; + protected $coverageBucketsDataType = 'array'; + public $nextPageToken; + + + public function setBucketWidth($bucketWidth) + { + $this->bucketWidth = $bucketWidth; + } + public function getBucketWidth() + { + return $this->bucketWidth; + } + public function setCoverageBuckets($coverageBuckets) + { + $this->coverageBuckets = $coverageBuckets; + } + public function getCoverageBuckets() + { + return $this->coverageBuckets; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection +{ + protected $collection_key = 'datasets'; + protected $internal_gapi_mappings = array( + ); + protected $datasetsType = 'Google_Service_Genomics_Dataset'; + protected $datasetsDataType = 'array'; + public $nextPageToken; + + + public function setDatasets($datasets) + { + $this->datasets = $datasets; + } + public function getDatasets() + { + return $this->datasets; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Genomics_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Genomics_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Genomics_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Genomics_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Genomics_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Genomics_OperationEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } +} + +class Google_Service_Genomics_OperationMetadata extends Google_Collection +{ + protected $collection_key = 'events'; + protected $internal_gapi_mappings = array( + ); + public $createTime; + protected $eventsType = 'Google_Service_Genomics_OperationEvent'; + protected $eventsDataType = 'array'; + public $projectId; + public $request; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEvents($events) + { + $this->events = $events; + } + public function getEvents() + { + return $this->events; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRequest($request) + { + $this->request = $request; + } + public function getRequest() + { + return $this->request; + } +} + +class Google_Service_Genomics_OperationMetadataRequest extends Google_Model +{ +} + +class Google_Service_Genomics_OperationResponse extends Google_Model +{ +} + +class Google_Service_Genomics_Policy extends Google_Collection +{ + protected $collection_key = 'bindings'; + protected $internal_gapi_mappings = array( + ); + protected $bindingsType = 'Google_Service_Genomics_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + public $version; + + + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + +class Google_Service_Genomics_Position extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $position; + public $referenceName; + public $reverseStrand; + + + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setReverseStrand($reverseStrand) + { + $this->reverseStrand = $reverseStrand; + } + public function getReverseStrand() + { + return $this->reverseStrand; + } +} + +class Google_Service_Genomics_Program extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $commandLine; + public $id; + public $name; + public $prevProgramId; + public $version; + + + public function setCommandLine($commandLine) + { + $this->commandLine = $commandLine; + } + public function getCommandLine() + { + return $this->commandLine; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPrevProgramId($prevProgramId) + { + $this->prevProgramId = $prevProgramId; + } + public function getPrevProgramId() + { + return $this->prevProgramId; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + +class Google_Service_Genomics_Range extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $end; + public $referenceName; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Genomics_Read extends Google_Collection +{ + protected $collection_key = 'alignedQuality'; + protected $internal_gapi_mappings = array( + ); + public $alignedQuality; + public $alignedSequence; + protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; + protected $alignmentDataType = ''; + public $duplicateFragment; + public $failedVendorQualityChecks; + public $fragmentLength; + public $fragmentName; + public $id; + public $info; + protected $nextMatePositionType = 'Google_Service_Genomics_Position'; + protected $nextMatePositionDataType = ''; + public $numberReads; + public $properPlacement; + public $readGroupId; + public $readGroupSetId; + public $readNumber; + public $secondaryAlignment; + public $supplementaryAlignment; + + + public function setAlignedQuality($alignedQuality) + { + $this->alignedQuality = $alignedQuality; + } + public function getAlignedQuality() + { + return $this->alignedQuality; + } + public function setAlignedSequence($alignedSequence) + { + $this->alignedSequence = $alignedSequence; + } + public function getAlignedSequence() + { + return $this->alignedSequence; + } + public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) + { + $this->alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setDuplicateFragment($duplicateFragment) + { + $this->duplicateFragment = $duplicateFragment; + } + public function getDuplicateFragment() + { + return $this->duplicateFragment; + } + public function setFailedVendorQualityChecks($failedVendorQualityChecks) + { + $this->failedVendorQualityChecks = $failedVendorQualityChecks; + } + public function getFailedVendorQualityChecks() + { + return $this->failedVendorQualityChecks; + } + public function setFragmentLength($fragmentLength) + { + $this->fragmentLength = $fragmentLength; + } + public function getFragmentLength() + { + return $this->fragmentLength; + } + public function setFragmentName($fragmentName) + { + $this->fragmentName = $fragmentName; + } + public function getFragmentName() + { + return $this->fragmentName; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePosition) + { + $this->nextMatePosition = $nextMatePosition; + } + public function getNextMatePosition() + { + return $this->nextMatePosition; + } + public function setNumberReads($numberReads) + { + $this->numberReads = $numberReads; + } + public function getNumberReads() + { + return $this->numberReads; + } + public function setProperPlacement($properPlacement) + { + $this->properPlacement = $properPlacement; + } + public function getProperPlacement() + { + return $this->properPlacement; + } + public function setReadGroupId($readGroupId) + { + $this->readGroupId = $readGroupId; + } + public function getReadGroupId() + { + return $this->readGroupId; + } + public function setReadGroupSetId($readGroupSetId) + { + $this->readGroupSetId = $readGroupSetId; + } + public function getReadGroupSetId() + { + return $this->readGroupSetId; + } + public function setReadNumber($readNumber) + { + $this->readNumber = $readNumber; + } + public function getReadNumber() + { + return $this->readNumber; + } + public function setSecondaryAlignment($secondaryAlignment) + { + $this->secondaryAlignment = $secondaryAlignment; + } + public function getSecondaryAlignment() + { + return $this->secondaryAlignment; + } + public function setSupplementaryAlignment($supplementaryAlignment) + { + $this->supplementaryAlignment = $supplementaryAlignment; + } + public function getSupplementaryAlignment() + { + return $this->supplementaryAlignment; + } +} + +class Google_Service_Genomics_ReadGroup extends Google_Collection +{ + protected $collection_key = 'programs'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $description; + protected $experimentType = 'Google_Service_Genomics_Experiment'; + protected $experimentDataType = ''; + public $id; + public $info; + public $name; + public $predictedInsertSize; + protected $programsType = 'Google_Service_Genomics_Program'; + protected $programsDataType = 'array'; + public $referenceSetId; + public $sampleId; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExperiment(Google_Service_Genomics_Experiment $experiment) + { + $this->experiment = $experiment; + } + public function getExperiment() + { + return $this->experiment; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPredictedInsertSize($predictedInsertSize) + { + $this->predictedInsertSize = $predictedInsertSize; + } + public function getPredictedInsertSize() + { + return $this->predictedInsertSize; + } + public function setPrograms($programs) + { + $this->programs = $programs; + } + public function getPrograms() + { + return $this->programs; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } + public function setSampleId($sampleId) + { + $this->sampleId = $sampleId; + } + public function getSampleId() + { + return $this->sampleId; + } +} + +class Google_Service_Genomics_ReadGroupInfo extends Google_Model +{ +} + +class Google_Service_Genomics_ReadGroupSet extends Google_Collection +{ + protected $collection_key = 'readGroups'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $filename; + public $id; + public $info; + public $name; + protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; + protected $readGroupsDataType = 'array'; + public $referenceSetId; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setFilename($filename) + { + $this->filename = $filename; + } + public function getFilename() + { + return $this->filename; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReadGroups($readGroups) + { + $this->readGroups = $readGroups; + } + public function getReadGroups() + { + return $this->readGroups; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } +} + +class Google_Service_Genomics_ReadGroupSetInfo extends Google_Model +{ +} + +class Google_Service_Genomics_ReadInfo extends Google_Model +{ +} + +class Google_Service_Genomics_Reference extends Google_Collection +{ + protected $collection_key = 'sourceAccessions'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $length; + public $md5checksum; + public $name; + public $ncbiTaxonId; + public $sourceAccessions; + public $sourceUri; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLength($length) + { + $this->length = $length; + } + public function getLength() + { + return $this->length; + } + public function setMd5checksum($md5checksum) + { + $this->md5checksum = $md5checksum; + } + public function getMd5checksum() + { + return $this->md5checksum; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNcbiTaxonId($ncbiTaxonId) + { + $this->ncbiTaxonId = $ncbiTaxonId; + } + public function getNcbiTaxonId() + { + return $this->ncbiTaxonId; + } + public function setSourceAccessions($sourceAccessions) + { + $this->sourceAccessions = $sourceAccessions; + } + public function getSourceAccessions() + { + return $this->sourceAccessions; + } + public function setSourceUri($sourceUri) + { + $this->sourceUri = $sourceUri; + } + public function getSourceUri() + { + return $this->sourceUri; + } +} + +class Google_Service_Genomics_ReferenceBound extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $referenceName; + public $upperBound; + + + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setUpperBound($upperBound) + { + $this->upperBound = $upperBound; + } + public function getUpperBound() + { + return $this->upperBound; + } +} + +class Google_Service_Genomics_ReferenceSet extends Google_Collection +{ + protected $collection_key = 'sourceAccessions'; + protected $internal_gapi_mappings = array( + ); + public $assemblyId; + public $description; + public $id; + public $md5checksum; + public $ncbiTaxonId; + public $referenceIds; + public $sourceAccessions; + public $sourceUri; + + + public function setAssemblyId($assemblyId) + { + $this->assemblyId = $assemblyId; + } + public function getAssemblyId() + { + return $this->assemblyId; + } + 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 setMd5checksum($md5checksum) + { + $this->md5checksum = $md5checksum; + } + public function getMd5checksum() + { + return $this->md5checksum; + } + public function setNcbiTaxonId($ncbiTaxonId) + { + $this->ncbiTaxonId = $ncbiTaxonId; + } + public function getNcbiTaxonId() + { + return $this->ncbiTaxonId; + } + public function setReferenceIds($referenceIds) + { + $this->referenceIds = $referenceIds; + } + public function getReferenceIds() + { + return $this->referenceIds; + } + public function setSourceAccessions($sourceAccessions) + { + $this->sourceAccessions = $sourceAccessions; + } + public function getSourceAccessions() + { + return $this->sourceAccessions; + } + public function setSourceUri($sourceUri) + { + $this->sourceUri = $sourceUri; + } + public function getSourceUri() + { + return $this->sourceUri; + } +} + +class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection +{ + protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); + public $name; + public $pageSize; + public $pageToken; + public $variantSetIds; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + public function getVariantSetIds() + { + return $this->variantSetIds; + } +} + +class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection +{ + protected $collection_key = 'callSets'; + protected $internal_gapi_mappings = array( + ); + protected $callSetsType = 'Google_Service_Genomics_CallSet'; + protected $callSetsDataType = 'array'; + public $nextPageToken; + + + public function setCallSets($callSets) + { + $this->callSets = $callSets; + } + public function getCallSets() + { + return $this->callSets; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection +{ + protected $collection_key = 'datasetIds'; + protected $internal_gapi_mappings = array( + ); + public $datasetIds; + public $name; + public $pageSize; + public $pageToken; + + + public function setDatasetIds($datasetIds) + { + $this->datasetIds = $datasetIds; + } + public function getDatasetIds() + { + return $this->datasetIds; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } +} + +class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection +{ + protected $collection_key = 'readGroupSets'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; + protected $readGroupSetsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReadGroupSets($readGroupSets) + { + $this->readGroupSets = $readGroupSets; + } + public function getReadGroupSets() + { + return $this->readGroupSets; + } +} + +class Google_Service_Genomics_SearchReadsRequest extends Google_Collection +{ + protected $collection_key = 'readGroupSetIds'; + protected $internal_gapi_mappings = array( + ); + public $end; + public $pageSize; + public $pageToken; + public $readGroupIds; + public $readGroupSetIds; + public $referenceName; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setReadGroupIds($readGroupIds) + { + $this->readGroupIds = $readGroupIds; + } + public function getReadGroupIds() + { + return $this->readGroupIds; + } + public function setReadGroupSetIds($readGroupSetIds) + { + $this->readGroupSetIds = $readGroupSetIds; + } + public function getReadGroupSetIds() + { + return $this->readGroupSetIds; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Genomics_SearchReadsResponse extends Google_Collection +{ + protected $collection_key = 'alignments'; + protected $internal_gapi_mappings = array( + ); + protected $alignmentsType = 'Google_Service_Genomics_Read'; + protected $alignmentsDataType = 'array'; + public $nextPageToken; + + + public function setAlignments($alignments) + { + $this->alignments = $alignments; + } + public function getAlignments() + { + return $this->alignments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection +{ + protected $collection_key = 'md5checksums'; + protected $internal_gapi_mappings = array( + ); + public $accessions; + public $assemblyId; + public $md5checksums; + public $pageSize; + public $pageToken; + + + public function setAccessions($accessions) + { + $this->accessions = $accessions; + } + public function getAccessions() + { + return $this->accessions; + } + public function setAssemblyId($assemblyId) + { + $this->assemblyId = $assemblyId; + } + public function getAssemblyId() + { + return $this->assemblyId; + } + public function setMd5checksums($md5checksums) + { + $this->md5checksums = $md5checksums; + } + public function getMd5checksums() + { + return $this->md5checksums; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } +} + +class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection +{ + protected $collection_key = 'referenceSets'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet'; + protected $referenceSetsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReferenceSets($referenceSets) + { + $this->referenceSets = $referenceSets; + } + public function getReferenceSets() + { + return $this->referenceSets; + } +} + +class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection +{ + protected $collection_key = 'md5checksums'; + protected $internal_gapi_mappings = array( + ); + public $accessions; + public $md5checksums; + public $pageSize; + public $pageToken; + public $referenceSetId; + + + public function setAccessions($accessions) + { + $this->accessions = $accessions; + } + public function getAccessions() + { + return $this->accessions; + } + public function setMd5checksums($md5checksums) + { + $this->md5checksums = $md5checksums; + } + public function getMd5checksums() + { + return $this->md5checksums; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } +} + +class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection +{ + protected $collection_key = 'references'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $referencesType = 'Google_Service_Genomics_Reference'; + protected $referencesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReferences($references) + { + $this->references = $references; + } + public function getReferences() + { + return $this->references; + } +} + +class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection +{ + protected $collection_key = 'datasetIds'; + protected $internal_gapi_mappings = array( + ); + public $datasetIds; + public $pageSize; + public $pageToken; + + + public function setDatasetIds($datasetIds) + { + $this->datasetIds = $datasetIds; + } + public function getDatasetIds() + { + return $this->datasetIds; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } +} + +class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection +{ + protected $collection_key = 'variantSets'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; + protected $variantSetsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setVariantSets($variantSets) + { + $this->variantSets = $variantSets; + } + public function getVariantSets() + { + return $this->variantSets; + } +} + +class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection +{ + protected $collection_key = 'variantSetIds'; + protected $internal_gapi_mappings = array( + ); + public $callSetIds; + public $end; + public $maxCalls; + public $pageSize; + public $pageToken; + public $referenceName; + public $start; + public $variantName; + public $variantSetIds; + + + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setMaxCalls($maxCalls) + { + $this->maxCalls = $maxCalls; + } + public function getMaxCalls() + { + return $this->maxCalls; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } + public function setVariantName($variantName) + { + $this->variantName = $variantName; + } + public function getVariantName() + { + return $this->variantName; + } + public function setVariantSetIds($variantSetIds) + { + $this->variantSetIds = $variantSetIds; + } + public function getVariantSetIds() + { + return $this->variantSetIds; + } +} + +class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection +{ + protected $collection_key = 'variants'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $variantsType = 'Google_Service_Genomics_Variant'; + protected $variantsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setVariants($variants) + { + $this->variants = $variants; + } + public function getVariants() + { + return $this->variants; + } +} + +class Google_Service_Genomics_SetIamPolicyRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $policyType = 'Google_Service_Genomics_Policy'; + protected $policyDataType = ''; + + + public function setPolicy(Google_Service_Genomics_Policy $policy) + { + $this->policy = $policy; + } + public function getPolicy() + { + return $this->policy; + } +} + +class Google_Service_Genomics_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Genomics_StatusDetails extends Google_Model +{ +} + +class Google_Service_Genomics_TestIamPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Genomics_TestIamPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Genomics_UndeleteDatasetRequest extends Google_Model +{ +} + +class Google_Service_Genomics_Variant extends Google_Collection +{ + protected $collection_key = 'names'; + protected $internal_gapi_mappings = array( + ); + public $alternateBases; + protected $callsType = 'Google_Service_Genomics_VariantCall'; + protected $callsDataType = 'array'; + public $created; + public $end; + public $filter; + public $id; + public $info; + public $names; + public $quality; + public $referenceBases; + public $referenceName; + public $start; + public $variantSetId; + + + public function setAlternateBases($alternateBases) + { + $this->alternateBases = $alternateBases; + } + public function getAlternateBases() + { + return $this->alternateBases; + } + public function setCalls($calls) + { + $this->calls = $calls; + } + public function getCalls() + { + return $this->calls; + } + public function setCreated($created) + { + $this->created = $created; + } + public function getCreated() + { + return $this->created; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setNames($names) + { + $this->names = $names; + } + public function getNames() + { + return $this->names; + } + public function setQuality($quality) + { + $this->quality = $quality; + } + public function getQuality() + { + return $this->quality; + } + public function setReferenceBases($referenceBases) + { + $this->referenceBases = $referenceBases; + } + public function getReferenceBases() + { + return $this->referenceBases; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + public function getVariantSetId() + { + return $this->variantSetId; + } +} + +class Google_Service_Genomics_VariantCall extends Google_Collection +{ + protected $collection_key = 'genotypeLikelihood'; + protected $internal_gapi_mappings = array( + ); + public $callSetId; + public $callSetName; + public $genotype; + public $genotypeLikelihood; + public $info; + public $phaseset; + + + public function setCallSetId($callSetId) + { + $this->callSetId = $callSetId; + } + public function getCallSetId() + { + return $this->callSetId; + } + public function setCallSetName($callSetName) + { + $this->callSetName = $callSetName; + } + public function getCallSetName() + { + return $this->callSetName; + } + public function setGenotype($genotype) + { + $this->genotype = $genotype; + } + public function getGenotype() + { + return $this->genotype; + } + public function setGenotypeLikelihood($genotypeLikelihood) + { + $this->genotypeLikelihood = $genotypeLikelihood; + } + public function getGenotypeLikelihood() + { + return $this->genotypeLikelihood; + } + public function setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setPhaseset($phaseset) + { + $this->phaseset = $phaseset; + } + public function getPhaseset() + { + return $this->phaseset; + } +} + +class Google_Service_Genomics_VariantCallInfo extends Google_Model +{ +} + +class Google_Service_Genomics_VariantInfo extends Google_Model +{ +} + +class Google_Service_Genomics_VariantSet extends Google_Collection +{ + protected $collection_key = 'referenceBounds'; + protected $internal_gapi_mappings = array( + ); + public $datasetId; + public $id; + protected $metadataType = 'Google_Service_Genomics_VariantSetMetadata'; + protected $metadataDataType = 'array'; + protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; + protected $referenceBoundsDataType = 'array'; + + + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setReferenceBounds($referenceBounds) + { + $this->referenceBounds = $referenceBounds; + } + public function getReferenceBounds() + { + return $this->referenceBounds; + } +} + +class Google_Service_Genomics_VariantSetMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $id; + public $info; + public $key; + public $number; + public $type; + public $value; + + + 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 setInfo($info) + { + $this->info = $info; + } + public function getInfo() + { + return $this->info; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setNumber($number) + { + $this->number = $number; + } + public function getNumber() + { + return $this->number; + } + 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_Genomics_VariantSetMetadataInfo extends Google_Model +{ } diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index bd38677de..8c15bab13 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -32,7 +32,7 @@ class Google_Service_Gmail extends Google_Service { /** View and manage your mail. */ const MAIL_GOOGLE_COM = - "https://mail.google.com"; + "https://mail.google.com/"; /** Manage drafts and send emails. */ const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; @@ -48,6 +48,9 @@ class Google_Service_Gmail extends Google_Service /** View your emails messages and settings. */ const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; + /** Send email on your behalf. */ + const GMAIL_SEND = + "https://www.googleapis.com/auth/gmail.send"; public $users; public $users_drafts; diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 32cf66f29..0e8b0da14 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -1125,6 +1125,7 @@ class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Colle public $email; public $idToken; public $kind; + public $newEmail; protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; protected $providerUserInfoDataType = 'array'; @@ -1161,6 +1162,14 @@ public function getKind() { return $this->kind; } + public function setNewEmail($newEmail) + { + $this->newEmail = $newEmail; + } + public function getNewEmail() + { + return $this->newEmail; + } public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; @@ -1710,6 +1719,9 @@ class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model public $idToken; public $kind; public $localId; + public $oauthAccessToken; + public $oauthAuthorizationCode; + public $oauthExpireIn; public $photoUrl; public $registered; @@ -1754,6 +1766,30 @@ public function getLocalId() { return $this->localId; } + public function setOauthAccessToken($oauthAccessToken) + { + $this->oauthAccessToken = $oauthAccessToken; + } + public function getOauthAccessToken() + { + return $this->oauthAccessToken; + } + public function setOauthAuthorizationCode($oauthAuthorizationCode) + { + $this->oauthAuthorizationCode = $oauthAuthorizationCode; + } + public function getOauthAuthorizationCode() + { + return $this->oauthAuthorizationCode; + } + public function setOauthExpireIn($oauthExpireIn) + { + $this->oauthExpireIn = $oauthExpireIn; + } + public function getOauthExpireIn() + { + return $this->oauthExpireIn; + } public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; diff --git a/src/Google/Service/Logging.php b/src/Google/Service/Logging.php index 7eeaa8f39..598e00bc2 100644 --- a/src/Google/Service/Logging.php +++ b/src/Google/Service/Logging.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Logging (v1beta3). + * Service definition for Logging (v2beta1). * *

* Google Cloud Logging API lets you create logs, ingest log entries, and manage @@ -24,23 +24,16 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. */ class Google_Service_Logging extends Google_Service { - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - public $projects_logServices; - public $projects_logServices_indexes; - public $projects_logServices_sinks; - public $projects_logs; - public $projects_logs_entries; - public $projects_logs_sinks; + + /** @@ -53,1249 +46,408 @@ public function __construct(Google_Client $client) parent::__construct($client); $this->rootUrl = 'https://logging.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta3'; + $this->version = 'v2beta1'; $this->serviceName = 'logging'; - $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource( - $this, - $this->serviceName, - 'logServices', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'log' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->projects_logServices_indexes = new Google_Service_Logging_ProjectsLogServicesIndexes_Resource( - $this, - $this->serviceName, - 'indexes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'log' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'depth' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'indexPrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects_logServices_sinks = new Google_Service_Logging_ProjectsLogServicesSinks_Resource( - $this, - $this->serviceName, - 'sinks', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logServicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( - $this, - $this->serviceName, - 'logs', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serviceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serviceIndexPrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->projects_logs_entries = new Google_Service_Logging_ProjectsLogsEntries_Resource( - $this, - $this->serviceName, - 'entries', - array( - 'methods' => array( - 'write' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_logs_sinks = new Google_Service_Logging_ProjectsLogsSinks_Resource( - $this, - $this->serviceName, - 'sinks', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'logsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sinksId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); } } -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $projects = $loggingService->projects; - * - */ -class Google_Service_Logging_Projects_Resource extends Google_Service_Resource -{ -} -/** - * The "logServices" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $logServices = $loggingService->logServices; - * - */ -class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service_Resource -{ - - /** - * Lists log services associated with log entries ingested for a project. - * (logServices.listProjectsLogServices) - * - * @param string $projectsId Part of `projectName`. The project resource whose - * services are to be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a - * prior `ListLogServices` operation. If `pageToken` is supplied, then the other - * fields of this request are ignored, and instead the previous - * `ListLogServices` operation is continued. - * @opt_param string log The name of the log resource whose services are to be - * listed. log for which to list services. When empty, all services are listed. - * @opt_param int pageSize The maximum number of `LogService` objects to return - * in one operation. - * @return Google_Service_Logging_ListLogServicesResponse - */ - public function listProjectsLogServices($projectsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogServicesResponse"); - } -} -/** - * The "indexes" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $indexes = $loggingService->indexes; - * - */ -class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_Service_Resource -{ - /** - * Lists log service indexes associated with a log service. - * (indexes.listProjectsLogServicesIndexes) - * - * @param string $projectsId Part of `serviceName`. A log service resource of - * the form `/projects/logServices`. The service indexes of the log service are - * returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`. - * @param string $logServicesId Part of `serviceName`. See documentation of - * `projectsId`. - * @param array $optParams Optional parameters. - * - * @opt_param string log A log resource like - * `/projects/project_id/logs/log_name`, identifying the log for which to list - * service indexes. - * @opt_param int pageSize The maximum number of log service index resources to - * return in one operation. - * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a - * prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the - * other fields of this request are ignored, and instead the previous - * `ListLogServiceIndexes` operation is continued. - * @opt_param int depth A limit to the number of levels of the index hierarchy - * that are expanded. If `depth` is 0, it defaults to the level specified by the - * prefix field (the number of slash separators). The default empty prefix - * implies a `depth` of 1. It is an error for `depth` to be any non-zero value - * less than the number of components in `indexPrefix`. - * @opt_param string indexPrefix Restricts the indexes returned to be those with - * a specified prefix. The prefix has the form `"/label_value/label_value/..."`, - * in order corresponding to the [`LogService - * indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must - * begin with `/` . Example prefixes: + `"/myModule/"` retrieves App Engine - * versions associated with `myModule`. The trailing slash terminates the value. - * + `"/myModule"` retrieves App Engine modules with names beginning with - * `myModule`. + `""` retrieves all indexes. - * @return Google_Service_Logging_ListLogServiceIndexesResponse - */ - public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceIndexesResponse"); - } -} -/** - * The "sinks" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $sinks = $loggingService->sinks; - * - */ -class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Service_Resource -{ - - /** - * Creates the specified log service sink resource. (sinks.create) - * - * @param string $projectsId Part of `serviceName`. The name of the service in - * which to create a sink. - * @param string $logServicesId Part of `serviceName`. See documentation of - * `projectsId`. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function create($projectsId, $logServicesId, Google_Service_Logging_LogSink $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Logging_LogSink"); - } - - /** - * Deletes the specified log service sink. (sinks.delete) - * - * @param string $projectsId Part of `sinkName`. The name of the sink to delete. - * @param string $logServicesId Part of `sinkName`. See documentation of - * `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($projectsId, $logServicesId, $sinksId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } - - /** - * Gets the specified log service sink resource. (sinks.get) - * - * @param string $projectsId Part of `sinkName`. The name of the sink to return. - * @param string $logServicesId Part of `sinkName`. See documentation of - * `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function get($projectsId, $logServicesId, $sinksId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Logging_LogSink"); - } - - /** - * Lists log service sinks associated with the specified service. - * (sinks.listProjectsLogServicesSinks) - * - * @param string $projectsId Part of `serviceName`. The name of the service for - * which to list sinks. - * @param string $logServicesId Part of `serviceName`. See documentation of - * `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_ListLogServiceSinksResponse - */ - public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceSinksResponse"); - } - - /** - * Creates or update the specified log service sink resource. (sinks.update) - * - * @param string $projectsId Part of `sinkName`. The name of the sink to update. - * @param string $logServicesId Part of `sinkName`. See documentation of - * `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function update($projectsId, $logServicesId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Logging_LogSink"); - } -} -/** - * The "logs" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $logs = $loggingService->logs; - * - */ -class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified log resource and all log entries contained in it. - * (logs.delete) - * - * @param string $projectsId Part of `logName`. The log resource to delete. - * @param string $logsId Part of `logName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($projectsId, $logsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } - - /** - * Lists log resources belonging to the specified project. - * (logs.listProjectsLogs) - * - * @param string $projectsId Part of `projectName`. The project name for which - * to list the log resources. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a - * prior `ListLogs` operation. If `pageToken` is supplied, then the other fields - * of this request are ignored, and instead the previous `ListLogs` operation is - * continued. - * @opt_param string serviceName A service name for which to list logs. Only - * logs containing entries whose metadata includes this service name are - * returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all - * log names are returned. To list all log names, regardless of service, leave - * both the `serviceName` and `serviceIndexPrefix` empty. To list log names - * containing entries with a particular service name (or explicitly empty - * service name) set `serviceName` to the desired value and `serviceIndexPrefix` - * to `"/"`. - * @opt_param string serviceIndexPrefix A log service index prefix for which to - * list logs. Only logs containing entries whose metadata that includes these - * label values (associated with index keys) are returned. The prefix is a slash - * separated list of values, and need not specify all index labels. An empty - * index (or a single slash) matches all log service indexes. - * @opt_param int pageSize The maximum number of results to return. - * @return Google_Service_Logging_ListLogsResponse - */ - public function listProjectsLogs($projectsId, $optParams = array()) - { - $params = array('projectsId' => $projectsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse"); - } -} - -/** - * The "entries" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $entries = $loggingService->entries; - * - */ -class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service_Resource -{ - - /** - * Creates one or more log entries in a log. You must supply a list of - * `LogEntry` objects, named `entries`. Each `LogEntry` object must contain a - * payload object and a `LogEntryMetadata` object that describes the entry. You - * must fill in all the fields of the entry, metadata, and payload. You can also - * supply a map, `commonLabels`, that supplies default (key, value) data for the - * `entries[].metadata.labels` maps, saving you the trouble of creating - * identical copies for each entry. (entries.write) - * - * @param string $projectsId Part of `logName`. The name of the log resource - * into which to insert the log entries. - * @param string $logsId Part of `logName`. See documentation of `projectsId`. - * @param Google_WriteLogEntriesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_WriteLogEntriesResponse - */ - public function write($projectsId, $logsId, Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); - } -} -/** - * The "sinks" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $sinks = $loggingService->sinks; - * - */ -class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_Resource +class Google_Service_Logging_LogLine extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $logMessage; + public $severity; + protected $sourceLocationType = 'Google_Service_Logging_SourceLocation'; + protected $sourceLocationDataType = ''; + public $time; - /** - * Creates the specified log sink resource. (sinks.create) - * - * @param string $projectsId Part of `logName`. The log in which to create a - * sink resource. - * @param string $logsId Part of `logName`. See documentation of `projectsId`. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function create($projectsId, $logsId, Google_Service_Logging_LogSink $postBody, $optParams = array()) - { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Logging_LogSink"); - } - /** - * Deletes the specified log sink resource. (sinks.delete) - * - * @param string $projectsId Part of `sinkName`. The name of the sink to delete. - * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($projectsId, $logsId, $sinksId, $optParams = array()) + public function setLogMessage($logMessage) { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + $this->logMessage = $logMessage; } - - /** - * Gets the specified log sink resource. (sinks.get) - * - * @param string $projectsId Part of `sinkName`. The name of the sink resource - * to return. - * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function get($projectsId, $logsId, $sinksId, $optParams = array()) + public function getLogMessage() { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Logging_LogSink"); + return $this->logMessage; } - - /** - * Lists log sinks associated with the specified log. - * (sinks.listProjectsLogsSinks) - * - * @param string $projectsId Part of `logName`. The log for which to list sinks. - * @param string $logsId Part of `logName`. See documentation of `projectsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_ListLogSinksResponse - */ - public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array()) + public function setSeverity($severity) { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogSinksResponse"); + $this->severity = $severity; } - - /** - * Creates or updates the specified log sink resource. (sinks.update) - * - * @param string $projectsId Part of `sinkName`. The name of the sink to update. - * @param string $logsId Part of `sinkName`. See documentation of `projectsId`. - * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array()) + public function getSeverity() { - $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Logging_LogSink"); + return $this->severity; } -} - - - - -class Google_Service_Logging_Empty extends Google_Model -{ -} - -class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection -{ - protected $collection_key = 'serviceIndexPrefixes'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $serviceIndexPrefixes; - - - public function setNextPageToken($nextPageToken) + public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation) { - $this->nextPageToken = $nextPageToken; + $this->sourceLocation = $sourceLocation; } - public function getNextPageToken() + public function getSourceLocation() { - return $this->nextPageToken; + return $this->sourceLocation; } - public function setServiceIndexPrefixes($serviceIndexPrefixes) + public function setTime($time) { - $this->serviceIndexPrefixes = $serviceIndexPrefixes; + $this->time = $time; } - public function getServiceIndexPrefixes() + public function getTime() { - return $this->serviceIndexPrefixes; + return $this->time; } } -class Google_Service_Logging_ListLogServiceSinksResponse extends Google_Collection +class Google_Service_Logging_RequestLog extends Google_Collection { - protected $collection_key = 'sinks'; + protected $collection_key = 'sourceReference'; protected $internal_gapi_mappings = array( ); - protected $sinksType = 'Google_Service_Logging_LogSink'; - protected $sinksDataType = 'array'; + public $appEngineRelease; + public $appId; + public $cost; + public $endTime; + public $finished; + public $host; + public $httpVersion; + public $instanceId; + public $instanceIndex; + public $ip; + public $latency; + protected $lineType = 'Google_Service_Logging_LogLine'; + protected $lineDataType = 'array'; + public $megaCycles; + public $method; + public $moduleId; + public $nickname; + public $pendingTime; + public $referrer; + public $requestId; + public $resource; + public $responseSize; + protected $sourceReferenceType = 'Google_Service_Logging_SourceReference'; + protected $sourceReferenceDataType = 'array'; + public $startTime; + public $status; + public $taskName; + public $taskQueueName; + public $traceId; + public $urlMapEntry; + public $userAgent; + public $versionId; + public $wasLoadingRequest; - public function setSinks($sinks) + public function setAppEngineRelease($appEngineRelease) { - $this->sinks = $sinks; + $this->appEngineRelease = $appEngineRelease; } - public function getSinks() + public function getAppEngineRelease() { - return $this->sinks; + return $this->appEngineRelease; } -} - -class Google_Service_Logging_ListLogServicesResponse extends Google_Collection -{ - protected $collection_key = 'logServices'; - protected $internal_gapi_mappings = array( - ); - protected $logServicesType = 'Google_Service_Logging_LogService'; - protected $logServicesDataType = 'array'; - public $nextPageToken; - - - public function setLogServices($logServices) + public function setAppId($appId) { - $this->logServices = $logServices; + $this->appId = $appId; } - public function getLogServices() + public function getAppId() { - return $this->logServices; + return $this->appId; } - public function setNextPageToken($nextPageToken) + public function setCost($cost) { - $this->nextPageToken = $nextPageToken; + $this->cost = $cost; } - public function getNextPageToken() + public function getCost() { - return $this->nextPageToken; + return $this->cost; } -} - -class Google_Service_Logging_ListLogSinksResponse extends Google_Collection -{ - protected $collection_key = 'sinks'; - protected $internal_gapi_mappings = array( - ); - protected $sinksType = 'Google_Service_Logging_LogSink'; - protected $sinksDataType = 'array'; - - - public function setSinks($sinks) + public function setEndTime($endTime) { - $this->sinks = $sinks; + $this->endTime = $endTime; } - public function getSinks() + public function getEndTime() { - return $this->sinks; + return $this->endTime; } -} - -class Google_Service_Logging_ListLogsResponse extends Google_Collection -{ - protected $collection_key = 'logs'; - protected $internal_gapi_mappings = array( - ); - protected $logsType = 'Google_Service_Logging_Log'; - protected $logsDataType = 'array'; - public $nextPageToken; - - - public function setLogs($logs) + public function setFinished($finished) { - $this->logs = $logs; + $this->finished = $finished; } - public function getLogs() + public function getFinished() { - return $this->logs; + return $this->finished; } - public function setNextPageToken($nextPageToken) + public function setHost($host) { - $this->nextPageToken = $nextPageToken; + $this->host = $host; } - public function getNextPageToken() + public function getHost() { - return $this->nextPageToken; + return $this->host; } -} - -class Google_Service_Logging_Log extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $name; - public $payloadType; - - - public function setDisplayName($displayName) + public function setHttpVersion($httpVersion) { - $this->displayName = $displayName; + $this->httpVersion = $httpVersion; } - public function getDisplayName() + public function getHttpVersion() { - return $this->displayName; + return $this->httpVersion; } - public function setName($name) + public function setInstanceId($instanceId) { - $this->name = $name; + $this->instanceId = $instanceId; } - public function getName() + public function getInstanceId() { - return $this->name; + return $this->instanceId; } - public function setPayloadType($payloadType) + public function setInstanceIndex($instanceIndex) { - $this->payloadType = $payloadType; + $this->instanceIndex = $instanceIndex; } - public function getPayloadType() + public function getInstanceIndex() { - return $this->payloadType; + return $this->instanceIndex; } -} - -class Google_Service_Logging_LogEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $insertId; - public $log; - protected $metadataType = 'Google_Service_Logging_LogEntryMetadata'; - protected $metadataDataType = ''; - public $protoPayload; - public $structPayload; - public $textPayload; - - - public function setInsertId($insertId) + public function setIp($ip) { - $this->insertId = $insertId; + $this->ip = $ip; } - public function getInsertId() + public function getIp() { - return $this->insertId; + return $this->ip; } - public function setLog($log) + public function setLatency($latency) { - $this->log = $log; + $this->latency = $latency; } - public function getLog() + public function getLatency() { - return $this->log; + return $this->latency; } - public function setMetadata(Google_Service_Logging_LogEntryMetadata $metadata) + public function setLine($line) { - $this->metadata = $metadata; + $this->line = $line; } - public function getMetadata() + public function getLine() { - return $this->metadata; + return $this->line; } - public function setProtoPayload($protoPayload) + public function setMegaCycles($megaCycles) { - $this->protoPayload = $protoPayload; + $this->megaCycles = $megaCycles; } - public function getProtoPayload() + public function getMegaCycles() { - return $this->protoPayload; + return $this->megaCycles; } - public function setStructPayload($structPayload) + public function setMethod($method) { - $this->structPayload = $structPayload; + $this->method = $method; } - public function getStructPayload() + public function getMethod() { - return $this->structPayload; + return $this->method; } - public function setTextPayload($textPayload) + public function setModuleId($moduleId) { - $this->textPayload = $textPayload; + $this->moduleId = $moduleId; } - public function getTextPayload() + public function getModuleId() { - return $this->textPayload; + return $this->moduleId; } -} - -class Google_Service_Logging_LogEntryMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $labels; - public $projectId; - public $region; - public $serviceName; - public $severity; - public $timestamp; - public $userId; - public $zone; - - - public function setLabels($labels) + public function setNickname($nickname) { - $this->labels = $labels; + $this->nickname = $nickname; } - public function getLabels() + public function getNickname() { - return $this->labels; + return $this->nickname; } - public function setProjectId($projectId) + public function setPendingTime($pendingTime) { - $this->projectId = $projectId; + $this->pendingTime = $pendingTime; } - public function getProjectId() + public function getPendingTime() { - return $this->projectId; + return $this->pendingTime; } - public function setRegion($region) + public function setReferrer($referrer) { - $this->region = $region; + $this->referrer = $referrer; } - public function getRegion() + public function getReferrer() { - return $this->region; + return $this->referrer; } - public function setServiceName($serviceName) + public function setRequestId($requestId) { - $this->serviceName = $serviceName; + $this->requestId = $requestId; } - public function getServiceName() + public function getRequestId() { - return $this->serviceName; + return $this->requestId; } - public function setSeverity($severity) + public function setResource($resource) { - $this->severity = $severity; + $this->resource = $resource; } - public function getSeverity() + public function getResource() { - return $this->severity; + return $this->resource; } - public function setTimestamp($timestamp) + public function setResponseSize($responseSize) { - $this->timestamp = $timestamp; + $this->responseSize = $responseSize; } - public function getTimestamp() + public function getResponseSize() { - return $this->timestamp; + return $this->responseSize; } - public function setUserId($userId) + public function setSourceReference($sourceReference) { - $this->userId = $userId; + $this->sourceReference = $sourceReference; } - public function getUserId() + public function getSourceReference() { - return $this->userId; + return $this->sourceReference; } - public function setZone($zone) + public function setStartTime($startTime) { - $this->zone = $zone; + $this->startTime = $startTime; } - public function getZone() + public function getStartTime() { - return $this->zone; + return $this->startTime; } -} - -class Google_Service_Logging_LogEntryMetadataLabels extends Google_Model -{ -} - -class Google_Service_Logging_LogEntryProtoPayload extends Google_Model -{ -} - -class Google_Service_Logging_LogEntryStructPayload extends Google_Model -{ -} - -class Google_Service_Logging_LogError extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $resource; - protected $statusType = 'Google_Service_Logging_Status'; - protected $statusDataType = ''; - public $timeNanos; - - - public function setResource($resource) + public function setStatus($status) { - $this->resource = $resource; + $this->status = $status; } - public function getResource() + public function getStatus() { - return $this->resource; + return $this->status; } - public function setStatus(Google_Service_Logging_Status $status) + public function setTaskName($taskName) { - $this->status = $status; + $this->taskName = $taskName; } - public function getStatus() + public function getTaskName() { - return $this->status; + return $this->taskName; } - public function setTimeNanos($timeNanos) + public function setTaskQueueName($taskQueueName) { - $this->timeNanos = $timeNanos; + $this->taskQueueName = $taskQueueName; } - public function getTimeNanos() + public function getTaskQueueName() { - return $this->timeNanos; + return $this->taskQueueName; } -} - -class Google_Service_Logging_LogService extends Google_Collection -{ - protected $collection_key = 'indexKeys'; - protected $internal_gapi_mappings = array( - ); - public $indexKeys; - public $name; - - - public function setIndexKeys($indexKeys) + public function setTraceId($traceId) { - $this->indexKeys = $indexKeys; + $this->traceId = $traceId; } - public function getIndexKeys() + public function getTraceId() { - return $this->indexKeys; + return $this->traceId; } - public function setName($name) + public function setUrlMapEntry($urlMapEntry) { - $this->name = $name; + $this->urlMapEntry = $urlMapEntry; } - public function getName() + public function getUrlMapEntry() { - return $this->name; + return $this->urlMapEntry; } -} - -class Google_Service_Logging_LogSink extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $destination; - protected $errorsType = 'Google_Service_Logging_LogError'; - protected $errorsDataType = 'array'; - public $name; - - - public function setDestination($destination) + public function setUserAgent($userAgent) { - $this->destination = $destination; + $this->userAgent = $userAgent; } - public function getDestination() + public function getUserAgent() { - return $this->destination; + return $this->userAgent; } - public function setErrors($errors) + public function setVersionId($versionId) { - $this->errors = $errors; + $this->versionId = $versionId; } - public function getErrors() + public function getVersionId() { - return $this->errors; + return $this->versionId; } - public function setName($name) + public function setWasLoadingRequest($wasLoadingRequest) { - $this->name = $name; + $this->wasLoadingRequest = $wasLoadingRequest; } - public function getName() + public function getWasLoadingRequest() { - return $this->name; + return $this->wasLoadingRequest; } } -class Google_Service_Logging_Status extends Google_Collection +class Google_Service_Logging_SourceLocation extends Google_Model { - protected $collection_key = 'details'; protected $internal_gapi_mappings = array( ); - public $code; - public $details; - public $message; + public $file; + public $functionName; + public $line; - public function setCode($code) + public function setFile($file) { - $this->code = $code; + $this->file = $file; } - public function getCode() + public function getFile() { - return $this->code; + return $this->file; } - public function setDetails($details) + public function setFunctionName($functionName) { - $this->details = $details; + $this->functionName = $functionName; } - public function getDetails() + public function getFunctionName() { - return $this->details; + return $this->functionName; } - public function setMessage($message) + public function setLine($line) { - $this->message = $message; + $this->line = $line; } - public function getMessage() + public function getLine() { - return $this->message; + return $this->line; } } -class Google_Service_Logging_StatusDetails extends Google_Model -{ -} - -class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection +class Google_Service_Logging_SourceReference extends Google_Model { - protected $collection_key = 'entries'; protected $internal_gapi_mappings = array( ); - public $commonLabels; - protected $entriesType = 'Google_Service_Logging_LogEntry'; - protected $entriesDataType = 'array'; + public $repository; + public $revisionId; - public function setCommonLabels($commonLabels) + public function setRepository($repository) { - $this->commonLabels = $commonLabels; + $this->repository = $repository; } - public function getCommonLabels() + public function getRepository() { - return $this->commonLabels; + return $this->repository; } - public function setEntries($entries) + public function setRevisionId($revisionId) { - $this->entries = $entries; + $this->revisionId = $revisionId; } - public function getEntries() + public function getRevisionId() { - return $this->entries; + return $this->revisionId; } } - -class Google_Service_Logging_WriteLogEntriesRequestCommonLabels extends Google_Model -{ -} - -class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model -{ -} diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index 5e4edb2c2..a2064002e 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -37,6 +37,9 @@ class Google_Service_Manager extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View and manage your Google Compute Engine resources. */ const COMPUTE = "https://www.googleapis.com/auth/compute"; diff --git a/src/Google/Service/Partners.php b/src/Google/Service/Partners.php new file mode 100644 index 000000000..4fc08fd11 --- /dev/null +++ b/src/Google/Service/Partners.php @@ -0,0 +1,1610 @@ + + * Lets advertisers search certified companies and create contact leads with + * them, and also audits the usage of clients.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Partners extends Google_Service +{ + + + public $clientMessages; + public $companies; + public $companies_leads; + public $userEvents; + public $userStates; + + + /** + * Constructs the internal representation of the Partners service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://partners.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v2'; + $this->serviceName = 'partners'; + + $this->clientMessages = new Google_Service_Partners_ClientMessages_Resource( + $this, + $this->serviceName, + 'clientMessages', + array( + 'methods' => array( + 'log' => array( + 'path' => 'v2/clientMessages:log', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->companies = new Google_Service_Partners_Companies_Resource( + $this, + $this->serviceName, + 'companies', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v2/companies/{companyId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'companyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.ipAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'currencyCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v2/companies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxMonthlyBudget.currencyCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxMonthlyBudget.nanos' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'languageCodes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'minMonthlyBudget.nanos' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'industries' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'minMonthlyBudget.currencyCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minMonthlyBudget.units' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companyName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'services' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'gpsMotivations' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.userOverrides.ipAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'websiteUrl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxMonthlyBudget.units' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->companies_leads = new Google_Service_Partners_CompaniesLeads_Resource( + $this, + $this->serviceName, + 'leads', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/companies/{companyId}/leads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'companyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->userEvents = new Google_Service_Partners_UserEvents_Resource( + $this, + $this->serviceName, + 'userEvents', + array( + 'methods' => array( + 'log' => array( + 'path' => 'v2/userEvents:log', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->userStates = new Google_Service_Partners_UserStates_Resource( + $this, + $this->serviceName, + 'userStates', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/userStates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'requestMetadata.userOverrides.userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.ipAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "clientMessages" collection of methods. + * Typical usage is: + * + * $partnersService = new Google_Service_Partners(...); + * $clientMessages = $partnersService->clientMessages; + * + */ +class Google_Service_Partners_ClientMessages_Resource extends Google_Service_Resource +{ + + /** + * Logs a generic message from the client, such as `Failed to render component`, + * `Profile page is running slow`, `More than 500 users have accessed this + * result.`, etc. (clientMessages.log) + * + * @param Google_LogMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Partners_LogMessageResponse + */ + public function log(Google_Service_Partners_LogMessageRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('log', array($params), "Google_Service_Partners_LogMessageResponse"); + } +} + +/** + * The "companies" collection of methods. + * Typical usage is: + * + * $partnersService = new Google_Service_Partners(...); + * $companies = $partnersService->companies; + * + */ +class Google_Service_Partners_Companies_Resource extends Google_Service_Resource +{ + + /** + * Gets a company. (companies.get) + * + * @param string $companyId The ID of the company to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy How to order addresses within the returned company. + * Currently, only `address` and `address desc` is supported which will sorted + * by closest to farthest in distance from given address and farthest to closest + * distance from given address respectively. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string address The address to use for sorting the company's + * addresses by proximity. If not given, the geo-located address of the request + * is used. Used when order_by is set. + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string currencyCode If the company's budget is in a different + * currency code than this one, then the converted budget is converted to this + * currency code. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string view The view of `Company` resource to be returned. This + * must not be `COMPANY_VIEW_UNSPECIFIED`. + * @return Google_Service_Partners_GetCompanyResponse + */ + public function get($companyId, $optParams = array()) + { + $params = array('companyId' => $companyId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Partners_GetCompanyResponse"); + } + + /** + * Lists companies. (companies.listCompanies) + * + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy How to order addresses within the returned + * companies. Currently, only `address` and `address desc` is supported which + * will sorted by closest to farthest in distance from given address and + * farthest to closest distance from given address respectively. + * @opt_param int pageSize Requested page size. Server may return fewer + * companies than requested. If unspecified, server picks an appropriate + * default. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code + * defined in ISO 4217. + * @opt_param int maxMonthlyBudget.nanos Number of nano (10^-9) units of the + * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If + * `units` is positive, `nanos` must be positive or zero. If `units` is zero, + * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` + * must be negative or zero. For example $-1.75 is represented as `units`=-1 and + * `nanos`=-750,000,000. + * @opt_param string languageCodes List of language codes that company can + * support. Only primary language subtags are accepted as defined by BCP 47 + * (IETF BCP 47, "Tags for Identifying Languages"). + * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the + * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If + * `units` is positive, `nanos` must be positive or zero. If `units` is zero, + * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` + * must be negative or zero. For example $-1.75 is represented as `units`=-1 and + * `nanos`=-750,000,000. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + * @opt_param string industries List of industries the company can help with. + * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code + * defined in ISO 4217. + * @opt_param string minMonthlyBudget.units The whole units of the amount. For + * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @opt_param string pageToken A token identifying a page of results that the + * server returns. Typically, this is the value of + * `ListCompaniesResponse.next_page_token` returned from the previous call to + * ListCompanies. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string companyName Company name to search for. + * @opt_param string address The address to use when searching for companies. If + * not given, the geo-located address of the request is used. + * @opt_param string services List of services the company can help with. + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string gpsMotivations List of reasons for using Google Partner + * Search to get companies. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. + * @opt_param string websiteUrl Website URL that will help to find a better + * matched company. . + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string view The view of the `Company` resource to be returned. + * This must not be `COMPANY_VIEW_UNSPECIFIED`. + * @opt_param string maxMonthlyBudget.units The whole units of the amount. For + * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @return Google_Service_Partners_ListCompaniesResponse + */ + public function listCompanies($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Partners_ListCompaniesResponse"); + } +} + +/** + * The "leads" collection of methods. + * Typical usage is: + * + * $partnersService = new Google_Service_Partners(...); + * $leads = $partnersService->leads; + * + */ +class Google_Service_Partners_CompaniesLeads_Resource extends Google_Service_Resource +{ + + /** + * Creates an advertiser lead for the given company ID. (leads.create) + * + * @param string $companyId The ID of the company to contact. + * @param Google_CreateLeadRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Partners_CreateLeadResponse + */ + public function create($companyId, Google_Service_Partners_CreateLeadRequest $postBody, $optParams = array()) + { + $params = array('companyId' => $companyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Partners_CreateLeadResponse"); + } +} + +/** + * The "userEvents" collection of methods. + * Typical usage is: + * + * $partnersService = new Google_Service_Partners(...); + * $userEvents = $partnersService->userEvents; + * + */ +class Google_Service_Partners_UserEvents_Resource extends Google_Service_Resource +{ + + /** + * Logs a user event. (userEvents.log) + * + * @param Google_LogUserEventRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Partners_LogUserEventResponse + */ + public function log(Google_Service_Partners_LogUserEventRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('log', array($params), "Google_Service_Partners_LogUserEventResponse"); + } +} + +/** + * The "userStates" collection of methods. + * Typical usage is: + * + * $partnersService = new Google_Service_Partners(...); + * $userStates = $partnersService->userStates; + * + */ +class Google_Service_Partners_UserStates_Resource extends Google_Service_Resource +{ + + /** + * Lists states for current user. (userStates.listUserStates) + * + * @param array $optParams Optional parameters. + * + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @return Google_Service_Partners_ListUserStatesResponse + */ + public function listUserStates($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Partners_ListUserStatesResponse"); + } +} + + + + +class Google_Service_Partners_CertificationExamStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $numberUsersPass; + public $type; + + + public function setNumberUsersPass($numberUsersPass) + { + $this->numberUsersPass = $numberUsersPass; + } + public function getNumberUsersPass() + { + return $this->numberUsersPass; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Partners_CertificationStatus extends Google_Collection +{ + protected $collection_key = 'examStatuses'; + protected $internal_gapi_mappings = array( + ); + protected $examStatusesType = 'Google_Service_Partners_CertificationExamStatus'; + protected $examStatusesDataType = 'array'; + public $isCertified; + public $type; + + + public function setExamStatuses($examStatuses) + { + $this->examStatuses = $examStatuses; + } + public function getExamStatuses() + { + return $this->examStatuses; + } + public function setIsCertified($isCertified) + { + $this->isCertified = $isCertified; + } + public function getIsCertified() + { + return $this->isCertified; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Partners_Company extends Google_Collection +{ + protected $collection_key = 'services'; + protected $internal_gapi_mappings = array( + ); + protected $certificationStatusesType = 'Google_Service_Partners_CertificationStatus'; + protected $certificationStatusesDataType = 'array'; + protected $convertedMinMonthlyBudgetType = 'Google_Service_Partners_Money'; + protected $convertedMinMonthlyBudgetDataType = ''; + public $id; + public $industries; + protected $localizedInfosType = 'Google_Service_Partners_LocalizedCompanyInfo'; + protected $localizedInfosDataType = 'array'; + protected $locationsType = 'Google_Service_Partners_Location'; + protected $locationsDataType = 'array'; + public $name; + protected $originalMinMonthlyBudgetType = 'Google_Service_Partners_Money'; + protected $originalMinMonthlyBudgetDataType = ''; + protected $publicProfileType = 'Google_Service_Partners_PublicProfile'; + protected $publicProfileDataType = ''; + protected $ranksType = 'Google_Service_Partners_Rank'; + protected $ranksDataType = 'array'; + public $services; + public $websiteUrl; + + + public function setCertificationStatuses($certificationStatuses) + { + $this->certificationStatuses = $certificationStatuses; + } + public function getCertificationStatuses() + { + return $this->certificationStatuses; + } + public function setConvertedMinMonthlyBudget(Google_Service_Partners_Money $convertedMinMonthlyBudget) + { + $this->convertedMinMonthlyBudget = $convertedMinMonthlyBudget; + } + public function getConvertedMinMonthlyBudget() + { + return $this->convertedMinMonthlyBudget; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIndustries($industries) + { + $this->industries = $industries; + } + public function getIndustries() + { + return $this->industries; + } + public function setLocalizedInfos($localizedInfos) + { + $this->localizedInfos = $localizedInfos; + } + public function getLocalizedInfos() + { + return $this->localizedInfos; + } + public function setLocations($locations) + { + $this->locations = $locations; + } + public function getLocations() + { + return $this->locations; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOriginalMinMonthlyBudget(Google_Service_Partners_Money $originalMinMonthlyBudget) + { + $this->originalMinMonthlyBudget = $originalMinMonthlyBudget; + } + public function getOriginalMinMonthlyBudget() + { + return $this->originalMinMonthlyBudget; + } + public function setPublicProfile(Google_Service_Partners_PublicProfile $publicProfile) + { + $this->publicProfile = $publicProfile; + } + public function getPublicProfile() + { + return $this->publicProfile; + } + public function setRanks($ranks) + { + $this->ranks = $ranks; + } + public function getRanks() + { + return $this->ranks; + } + public function setServices($services) + { + $this->services = $services; + } + public function getServices() + { + return $this->services; + } + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_Partners_CreateLeadRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $leadType = 'Google_Service_Partners_Lead'; + protected $leadDataType = ''; + protected $recaptchaChallengeType = 'Google_Service_Partners_RecaptchaChallenge'; + protected $recaptchaChallengeDataType = ''; + protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; + protected $requestMetadataDataType = ''; + + + public function setLead(Google_Service_Partners_Lead $lead) + { + $this->lead = $lead; + } + public function getLead() + { + return $this->lead; + } + public function setRecaptchaChallenge(Google_Service_Partners_RecaptchaChallenge $recaptchaChallenge) + { + $this->recaptchaChallenge = $recaptchaChallenge; + } + public function getRecaptchaChallenge() + { + return $this->recaptchaChallenge; + } + public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + public function getRequestMetadata() + { + return $this->requestMetadata; + } +} + +class Google_Service_Partners_CreateLeadResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $leadType = 'Google_Service_Partners_Lead'; + protected $leadDataType = ''; + public $recaptchaStatus; + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + + + public function setLead(Google_Service_Partners_Lead $lead) + { + $this->lead = $lead; + } + public function getLead() + { + return $this->lead; + } + public function setRecaptchaStatus($recaptchaStatus) + { + $this->recaptchaStatus = $recaptchaStatus; + } + public function getRecaptchaStatus() + { + return $this->recaptchaStatus; + } + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } +} + +class Google_Service_Partners_DebugInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $serverInfo; + public $serverTraceInfo; + public $serviceUrl; + + + public function setServerInfo($serverInfo) + { + $this->serverInfo = $serverInfo; + } + public function getServerInfo() + { + return $this->serverInfo; + } + public function setServerTraceInfo($serverTraceInfo) + { + $this->serverTraceInfo = $serverTraceInfo; + } + public function getServerTraceInfo() + { + return $this->serverTraceInfo; + } + public function setServiceUrl($serviceUrl) + { + $this->serviceUrl = $serviceUrl; + } + public function getServiceUrl() + { + return $this->serviceUrl; + } +} + +class Google_Service_Partners_EventData extends Google_Collection +{ + protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); + public $key; + public $values; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} + +class Google_Service_Partners_GetCompanyResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $companyType = 'Google_Service_Partners_Company'; + protected $companyDataType = ''; + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + + + public function setCompany(Google_Service_Partners_Company $company) + { + $this->company = $company; + } + public function getCompany() + { + return $this->company; + } + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } +} + +class Google_Service_Partners_LatLng extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Partners_Lead extends Google_Collection +{ + protected $collection_key = 'gpsMotivations'; + protected $internal_gapi_mappings = array( + ); + public $comments; + public $email; + public $familyName; + public $givenName; + public $gpsMotivations; + public $id; + protected $minMonthlyBudgetType = 'Google_Service_Partners_Money'; + protected $minMonthlyBudgetDataType = ''; + public $phoneNumber; + public $type; + public $websiteUrl; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + 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; + } + public function setGpsMotivations($gpsMotivations) + { + $this->gpsMotivations = $gpsMotivations; + } + public function getGpsMotivations() + { + return $this->gpsMotivations; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMinMonthlyBudget(Google_Service_Partners_Money $minMonthlyBudget) + { + $this->minMonthlyBudget = $minMonthlyBudget; + } + public function getMinMonthlyBudget() + { + return $this->minMonthlyBudget; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setWebsiteUrl($websiteUrl) + { + $this->websiteUrl = $websiteUrl; + } + public function getWebsiteUrl() + { + return $this->websiteUrl; + } +} + +class Google_Service_Partners_ListCompaniesResponse extends Google_Collection +{ + protected $collection_key = 'companies'; + protected $internal_gapi_mappings = array( + ); + protected $companiesType = 'Google_Service_Partners_Company'; + protected $companiesDataType = 'array'; + public $nextPageToken; + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + + + public function setCompanies($companies) + { + $this->companies = $companies; + } + public function getCompanies() + { + return $this->companies; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } +} + +class Google_Service_Partners_ListUserStatesResponse extends Google_Collection +{ + protected $collection_key = 'userStates'; + protected $internal_gapi_mappings = array( + ); + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + public $userStates; + + + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } + public function setUserStates($userStates) + { + $this->userStates = $userStates; + } + public function getUserStates() + { + return $this->userStates; + } +} + +class Google_Service_Partners_LocalizedCompanyInfo extends Google_Collection +{ + protected $collection_key = 'countryCodes'; + protected $internal_gapi_mappings = array( + ); + public $countryCodes; + public $displayName; + public $languageCode; + public $overview; + + + public function setCountryCodes($countryCodes) + { + $this->countryCodes = $countryCodes; + } + public function getCountryCodes() + { + return $this->countryCodes; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setOverview($overview) + { + $this->overview = $overview; + } + public function getOverview() + { + return $this->overview; + } +} + +class Google_Service_Partners_Location extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + protected $latLngType = 'Google_Service_Partners_LatLng'; + protected $latLngDataType = ''; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setLatLng(Google_Service_Partners_LatLng $latLng) + { + $this->latLng = $latLng; + } + public function getLatLng() + { + return $this->latLng; + } +} + +class Google_Service_Partners_LogMessageRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clientInfo; + public $details; + public $level; + protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; + protected $requestMetadataDataType = ''; + + + public function setClientInfo($clientInfo) + { + $this->clientInfo = $clientInfo; + } + public function getClientInfo() + { + return $this->clientInfo; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setLevel($level) + { + $this->level = $level; + } + public function getLevel() + { + return $this->level; + } + public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + public function getRequestMetadata() + { + return $this->requestMetadata; + } +} + +class Google_Service_Partners_LogMessageRequestClientInfo extends Google_Model +{ +} + +class Google_Service_Partners_LogMessageResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + + + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } +} + +class Google_Service_Partners_LogUserEventRequest extends Google_Collection +{ + protected $collection_key = 'eventDatas'; + protected $internal_gapi_mappings = array( + ); + public $eventAction; + public $eventCategory; + protected $eventDatasType = 'Google_Service_Partners_EventData'; + protected $eventDatasDataType = 'array'; + public $eventScope; + protected $leadType = 'Google_Service_Partners_Lead'; + protected $leadDataType = ''; + protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; + protected $requestMetadataDataType = ''; + public $url; + + + public function setEventAction($eventAction) + { + $this->eventAction = $eventAction; + } + public function getEventAction() + { + return $this->eventAction; + } + public function setEventCategory($eventCategory) + { + $this->eventCategory = $eventCategory; + } + public function getEventCategory() + { + return $this->eventCategory; + } + public function setEventDatas($eventDatas) + { + $this->eventDatas = $eventDatas; + } + public function getEventDatas() + { + return $this->eventDatas; + } + public function setEventScope($eventScope) + { + $this->eventScope = $eventScope; + } + public function getEventScope() + { + return $this->eventScope; + } + public function setLead(Google_Service_Partners_Lead $lead) + { + $this->lead = $lead; + } + public function getLead() + { + return $this->lead; + } + public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + public function getRequestMetadata() + { + return $this->requestMetadata; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Partners_LogUserEventResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; + protected $responseMetadataDataType = ''; + + + public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) + { + $this->responseMetadata = $responseMetadata; + } + public function getResponseMetadata() + { + return $this->responseMetadata; + } +} + +class Google_Service_Partners_Money extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $currencyCode; + public $nanos; + public $units; + + + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + public function getNanos() + { + return $this->nanos; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Partners_PublicProfile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayImageUrl; + public $displayName; + public $id; + public $url; + + + public function setDisplayImageUrl($displayImageUrl) + { + $this->displayImageUrl = $displayImageUrl; + } + public function getDisplayImageUrl() + { + return $this->displayImageUrl; + } + 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 setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Partners_Rank extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Partners_RecaptchaChallenge extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $response; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Partners_RequestMetadata extends Google_Collection +{ + protected $collection_key = 'experimentIds'; + protected $internal_gapi_mappings = array( + ); + public $experimentIds; + public $locale; + public $partnersSessionId; + protected $trafficSourceType = 'Google_Service_Partners_TrafficSource'; + protected $trafficSourceDataType = ''; + protected $userOverridesType = 'Google_Service_Partners_UserOverrides'; + protected $userOverridesDataType = ''; + + + public function setExperimentIds($experimentIds) + { + $this->experimentIds = $experimentIds; + } + public function getExperimentIds() + { + return $this->experimentIds; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setPartnersSessionId($partnersSessionId) + { + $this->partnersSessionId = $partnersSessionId; + } + public function getPartnersSessionId() + { + return $this->partnersSessionId; + } + public function setTrafficSource(Google_Service_Partners_TrafficSource $trafficSource) + { + $this->trafficSource = $trafficSource; + } + public function getTrafficSource() + { + return $this->trafficSource; + } + public function setUserOverrides(Google_Service_Partners_UserOverrides $userOverrides) + { + $this->userOverrides = $userOverrides; + } + public function getUserOverrides() + { + return $this->userOverrides; + } +} + +class Google_Service_Partners_ResponseMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $debugInfoType = 'Google_Service_Partners_DebugInfo'; + protected $debugInfoDataType = ''; + + + public function setDebugInfo(Google_Service_Partners_DebugInfo $debugInfo) + { + $this->debugInfo = $debugInfo; + } + public function getDebugInfo() + { + return $this->debugInfo; + } +} + +class Google_Service_Partners_TrafficSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $trafficSourceId; + public $trafficSubId; + + + public function setTrafficSourceId($trafficSourceId) + { + $this->trafficSourceId = $trafficSourceId; + } + public function getTrafficSourceId() + { + return $this->trafficSourceId; + } + public function setTrafficSubId($trafficSubId) + { + $this->trafficSubId = $trafficSubId; + } + public function getTrafficSubId() + { + return $this->trafficSubId; + } +} + +class Google_Service_Partners_UserOverrides extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $ipAddress; + public $userId; + + + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + public function getIpAddress() + { + return $this->ipAddress; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} diff --git a/src/Google/Service/Playmoviespartner.php b/src/Google/Service/Playmoviespartner.php index fb2a33bd8..d3c11bc76 100644 --- a/src/Google/Service/Playmoviespartner.php +++ b/src/Google/Service/Playmoviespartner.php @@ -19,21 +19,26 @@ * Service definition for Playmoviespartner (v1). * *

- * An API providing Google Play Movies Partners a way to get the delivery status - * of their titles.

+ * Lets Google Play Movies Partners get the delivery status of their titles.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. */ class Google_Service_Playmoviespartner extends Google_Service { + /** View the digital assets you publish on Google Play Movies and TV. */ + const PLAYMOVIES_PARTNER_READONLY = + "https://www.googleapis.com/auth/playmovies_partner.readonly"; - - + public $accounts_avails; + public $accounts_experienceLocales; + public $accounts_orders; + public $accounts_storeInfos; + public $accounts_storeInfos_country; /** @@ -49,5 +54,1623 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'playmoviespartner'; + $this->accounts_avails = new Google_Service_Playmoviespartner_AccountsAvails_Resource( + $this, + $this->serviceName, + 'avails', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/accounts/{accountId}/avails', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pphNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'videoIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'title' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'altId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'territories' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'studioNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_experienceLocales = new Google_Service_Playmoviespartner_AccountsExperienceLocales_Resource( + $this, + $this->serviceName, + 'experienceLocales', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/accounts/{accountId}/experienceLocales/{elId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'elId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/accounts/{accountId}/experienceLocales', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pphNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'titleLevelEidr' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'studioNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'editLevelEidr' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'altCutId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_orders = new Google_Service_Playmoviespartner_AccountsOrders_Resource( + $this, + $this->serviceName, + 'orders', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/accounts/{accountId}/orders/{orderId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/accounts/{accountId}/orders', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pphNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'studioNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_storeInfos = new Google_Service_Playmoviespartner_AccountsStoreInfos_Resource( + $this, + $this->serviceName, + 'storeInfos', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/accounts/{accountId}/storeInfos', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pphNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'countries' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'studioNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_storeInfos_country = new Google_Service_Playmoviespartner_AccountsStoreInfosCountry_Resource( + $this, + $this->serviceName, + 'country', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'videoId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'country' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $accounts = $playmoviespartnerService->accounts; + * + */ +class Google_Service_Playmoviespartner_Accounts_Resource extends Google_Service_Resource +{ +} + +/** + * The "avails" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $avails = $playmoviespartnerService->avails; + * + */ +class Google_Service_Playmoviespartner_AccountsAvails_Resource extends Google_Service_Resource +{ + + /** + * List Avails owned or managed by the partner. See _Authentication and + * Authorization rules_ and _List methods rules_ for more information about this + * method. (avails.listAccountsAvails) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param array $optParams Optional parameters. + * + * @opt_param string pphNames See _List methods rules_ for info about this + * field. + * @opt_param string videoIds Filter Avails that match any of the given + * `video_id`s. + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string title Filter Avails that match a case-insensitive substring + * of the default Title name. + * @opt_param string altId Filter Avails that match a case-insensitive, partner- + * specific custom id. + * @opt_param string territories Filter Avails that match (case-insensitive) any + * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples: + * "US", "us", "Us"). + * @opt_param string studioNames See _List methods rules_ for info about this + * field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. + * @return Google_Service_Playmoviespartner_ListAvailsResponse + */ + public function listAccountsAvails($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListAvailsResponse"); + } +} +/** + * The "experienceLocales" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $experienceLocales = $playmoviespartnerService->experienceLocales; + * + */ +class Google_Service_Playmoviespartner_AccountsExperienceLocales_Resource extends Google_Service_Resource +{ + + /** + * Get an ExperienceLocale given its id. See _Authentication and Authorization + * rules_ and _Get methods rules_ for more information about this method. + * (experienceLocales.get) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param string $elId REQUIRED. ExperienceLocale ID, as defined by Google. + * @param array $optParams Optional parameters. + * @return Google_Service_Playmoviespartner_ExperienceLocale + */ + public function get($accountId, $elId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'elId' => $elId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Playmoviespartner_ExperienceLocale"); + } + + /** + * List ExperienceLocales owned or managed by the partner. See _Authentication + * and Authorization rules_ and _List methods rules_ for more information about + * this method. (experienceLocales.listAccountsExperienceLocales) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param array $optParams Optional parameters. + * + * @opt_param string pphNames See _List methods rules_ for info about this + * field. + * @opt_param string status Filter ExperienceLocales that match one of the given + * status. + * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given + * title-level EIDR. + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string studioNames See _List methods rules_ for info about this + * field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. + * @opt_param string editLevelEidr Filter ExperienceLocales that match a given + * edit-level EIDR. + * @opt_param string customId Filter ExperienceLocales that match a case- + * insensitive, partner-specific custom id. + * @opt_param string altCutId Filter ExperienceLocales that match a case- + * insensitive, partner-specific Alternative Cut ID. + * @return Google_Service_Playmoviespartner_ListExperienceLocalesResponse + */ + public function listAccountsExperienceLocales($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListExperienceLocalesResponse"); + } +} +/** + * The "orders" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $orders = $playmoviespartnerService->orders; + * + */ +class Google_Service_Playmoviespartner_AccountsOrders_Resource extends Google_Service_Resource +{ + + /** + * Get an Order given its id. See _Authentication and Authorization rules_ and + * _Get methods rules_ for more information about this method. (orders.get) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param string $orderId REQUIRED. Order ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Playmoviespartner_Order + */ + public function get($accountId, $orderId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Playmoviespartner_Order"); + } + + /** + * List Orders owned or managed by the partner. See _Authentication and + * Authorization rules_ and _List methods rules_ for more information about this + * method. (orders.listAccountsOrders) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param array $optParams Optional parameters. + * + * @opt_param string pphNames See _List methods rules_ for info about this + * field. + * @opt_param string status Filter Orders that match one of the given status. + * @opt_param string name Filter Orders that match a title name (case- + * insensitive, sub-string match). + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string studioNames See _List methods rules_ for info about this + * field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. + * @opt_param string customId Filter Orders that match a case-insensitive, + * partner-specific custom id. + * @return Google_Service_Playmoviespartner_ListOrdersResponse + */ + public function listAccountsOrders($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListOrdersResponse"); + } +} +/** + * The "storeInfos" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $storeInfos = $playmoviespartnerService->storeInfos; + * + */ +class Google_Service_Playmoviespartner_AccountsStoreInfos_Resource extends Google_Service_Resource +{ + + /** + * List StoreInfos owned or managed by the partner. See _Authentication and + * Authorization rules_ and _List methods rules_ for more information about this + * method. (storeInfos.listAccountsStoreInfos) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param array $optParams Optional parameters. + * + * @opt_param string pphNames See _List methods rules_ for info about this + * field. + * @opt_param string name Filter StoreInfos that match a case-insensitive + * substring of the default name. + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string countries Filter StoreInfos that match (case-insensitive) + * any of the given country codes, using the "ISO 3166-1 alpha-2" format + * (examples: "US", "us", "Us"). + * @opt_param string videoId Filter StoreInfos that match a given `video_id`. + * NOTE: this field is deprecated and will be removed on V2; `video_ids` should + * be used instead. + * @opt_param string studioNames See _List methods rules_ for info about this + * field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. + * @opt_param string videoIds Filter StoreInfos that match any of the given + * `video_id`s. + * @return Google_Service_Playmoviespartner_ListStoreInfosResponse + */ + public function listAccountsStoreInfos($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListStoreInfosResponse"); + } +} + +/** + * The "country" collection of methods. + * Typical usage is: + * + * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); + * $country = $playmoviespartnerService->country; + * + */ +class Google_Service_Playmoviespartner_AccountsStoreInfosCountry_Resource extends Google_Service_Resource +{ + + /** + * Get a StoreInfo given its video id and country. See _Authentication and + * Authorization rules_ and _Get methods rules_ for more information about this + * method. (country.get) + * + * @param string $accountId REQUIRED. See _General rules_ for more information + * about this field. + * @param string $videoId REQUIRED. Video ID. + * @param string $country REQUIRED. Edit country. + * @param array $optParams Optional parameters. + * @return Google_Service_Playmoviespartner_StoreInfo + */ + public function get($accountId, $videoId, $country, $optParams = array()) + { + $params = array('accountId' => $accountId, 'videoId' => $videoId, 'country' => $country); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Playmoviespartner_StoreInfo"); + } +} + + + + +class Google_Service_Playmoviespartner_Avail extends Google_Collection +{ + protected $collection_key = 'pphNames'; + protected $internal_gapi_mappings = array( + ); + public $altId; + public $captionExemption; + public $captionIncluded; + public $contentId; + public $displayName; + public $encodeId; + public $end; + public $episodeAltId; + public $episodeNumber; + public $episodeTitleInternalAlias; + public $formatProfile; + public $licenseType; + public $pphNames; + public $priceType; + public $priceValue; + public $productId; + public $ratingReason; + public $ratingSystem; + public $ratingValue; + public $releaseDate; + public $seasonAltId; + public $seasonNumber; + public $seasonTitleInternalAlias; + public $seriesAltId; + public $seriesTitleInternalAlias; + public $start; + public $storeLanguage; + public $suppressionLiftDate; + public $territory; + public $titleInternalAlias; + public $videoId; + public $workType; + + + public function setAltId($altId) + { + $this->altId = $altId; + } + public function getAltId() + { + return $this->altId; + } + public function setCaptionExemption($captionExemption) + { + $this->captionExemption = $captionExemption; + } + public function getCaptionExemption() + { + return $this->captionExemption; + } + public function setCaptionIncluded($captionIncluded) + { + $this->captionIncluded = $captionIncluded; + } + public function getCaptionIncluded() + { + return $this->captionIncluded; + } + public function setContentId($contentId) + { + $this->contentId = $contentId; + } + public function getContentId() + { + return $this->contentId; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setEncodeId($encodeId) + { + $this->encodeId = $encodeId; + } + public function getEncodeId() + { + return $this->encodeId; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setEpisodeAltId($episodeAltId) + { + $this->episodeAltId = $episodeAltId; + } + public function getEpisodeAltId() + { + return $this->episodeAltId; + } + public function setEpisodeNumber($episodeNumber) + { + $this->episodeNumber = $episodeNumber; + } + public function getEpisodeNumber() + { + return $this->episodeNumber; + } + public function setEpisodeTitleInternalAlias($episodeTitleInternalAlias) + { + $this->episodeTitleInternalAlias = $episodeTitleInternalAlias; + } + public function getEpisodeTitleInternalAlias() + { + return $this->episodeTitleInternalAlias; + } + public function setFormatProfile($formatProfile) + { + $this->formatProfile = $formatProfile; + } + public function getFormatProfile() + { + return $this->formatProfile; + } + public function setLicenseType($licenseType) + { + $this->licenseType = $licenseType; + } + public function getLicenseType() + { + return $this->licenseType; + } + public function setPphNames($pphNames) + { + $this->pphNames = $pphNames; + } + public function getPphNames() + { + return $this->pphNames; + } + public function setPriceType($priceType) + { + $this->priceType = $priceType; + } + public function getPriceType() + { + return $this->priceType; + } + public function setPriceValue($priceValue) + { + $this->priceValue = $priceValue; + } + public function getPriceValue() + { + return $this->priceValue; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setRatingReason($ratingReason) + { + $this->ratingReason = $ratingReason; + } + public function getRatingReason() + { + return $this->ratingReason; + } + public function setRatingSystem($ratingSystem) + { + $this->ratingSystem = $ratingSystem; + } + public function getRatingSystem() + { + return $this->ratingSystem; + } + public function setRatingValue($ratingValue) + { + $this->ratingValue = $ratingValue; + } + public function getRatingValue() + { + return $this->ratingValue; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } + public function setSeasonAltId($seasonAltId) + { + $this->seasonAltId = $seasonAltId; + } + public function getSeasonAltId() + { + return $this->seasonAltId; + } + public function setSeasonNumber($seasonNumber) + { + $this->seasonNumber = $seasonNumber; + } + public function getSeasonNumber() + { + return $this->seasonNumber; + } + public function setSeasonTitleInternalAlias($seasonTitleInternalAlias) + { + $this->seasonTitleInternalAlias = $seasonTitleInternalAlias; + } + public function getSeasonTitleInternalAlias() + { + return $this->seasonTitleInternalAlias; + } + public function setSeriesAltId($seriesAltId) + { + $this->seriesAltId = $seriesAltId; + } + public function getSeriesAltId() + { + return $this->seriesAltId; + } + public function setSeriesTitleInternalAlias($seriesTitleInternalAlias) + { + $this->seriesTitleInternalAlias = $seriesTitleInternalAlias; + } + public function getSeriesTitleInternalAlias() + { + return $this->seriesTitleInternalAlias; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } + public function setStoreLanguage($storeLanguage) + { + $this->storeLanguage = $storeLanguage; + } + public function getStoreLanguage() + { + return $this->storeLanguage; + } + public function setSuppressionLiftDate($suppressionLiftDate) + { + $this->suppressionLiftDate = $suppressionLiftDate; + } + public function getSuppressionLiftDate() + { + return $this->suppressionLiftDate; + } + public function setTerritory($territory) + { + $this->territory = $territory; + } + public function getTerritory() + { + return $this->territory; + } + public function setTitleInternalAlias($titleInternalAlias) + { + $this->titleInternalAlias = $titleInternalAlias; + } + public function getTitleInternalAlias() + { + return $this->titleInternalAlias; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setWorkType($workType) + { + $this->workType = $workType; + } + public function getWorkType() + { + return $this->workType; + } +} + +class Google_Service_Playmoviespartner_ExperienceLocale extends Google_Collection +{ + protected $collection_key = 'pphNames'; + protected $internal_gapi_mappings = array( + ); + public $altCutId; + public $approvedTime; + public $channelId; + public $country; + public $createdTime; + public $customIds; + public $earliestAvailStartTime; + public $editLevelEidr; + public $elId; + public $inventoryId; + public $language; + public $name; + public $normalizedPriority; + public $playableSequenceId; + public $pphNames; + public $presentationId; + public $priority; + public $status; + public $studioName; + public $titleLevelEidr; + public $trailerId; + public $type; + public $videoId; + + + public function setAltCutId($altCutId) + { + $this->altCutId = $altCutId; + } + public function getAltCutId() + { + return $this->altCutId; + } + public function setApprovedTime($approvedTime) + { + $this->approvedTime = $approvedTime; + } + public function getApprovedTime() + { + return $this->approvedTime; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setCreatedTime($createdTime) + { + $this->createdTime = $createdTime; + } + public function getCreatedTime() + { + return $this->createdTime; + } + public function setCustomIds($customIds) + { + $this->customIds = $customIds; + } + public function getCustomIds() + { + return $this->customIds; + } + public function setEarliestAvailStartTime($earliestAvailStartTime) + { + $this->earliestAvailStartTime = $earliestAvailStartTime; + } + public function getEarliestAvailStartTime() + { + return $this->earliestAvailStartTime; + } + public function setEditLevelEidr($editLevelEidr) + { + $this->editLevelEidr = $editLevelEidr; + } + public function getEditLevelEidr() + { + return $this->editLevelEidr; + } + public function setElId($elId) + { + $this->elId = $elId; + } + public function getElId() + { + return $this->elId; + } + public function setInventoryId($inventoryId) + { + $this->inventoryId = $inventoryId; + } + public function getInventoryId() + { + return $this->inventoryId; + } + 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; + } + public function setNormalizedPriority($normalizedPriority) + { + $this->normalizedPriority = $normalizedPriority; + } + public function getNormalizedPriority() + { + return $this->normalizedPriority; + } + public function setPlayableSequenceId($playableSequenceId) + { + $this->playableSequenceId = $playableSequenceId; + } + public function getPlayableSequenceId() + { + return $this->playableSequenceId; + } + public function setPphNames($pphNames) + { + $this->pphNames = $pphNames; + } + public function getPphNames() + { + return $this->pphNames; + } + public function setPresentationId($presentationId) + { + $this->presentationId = $presentationId; + } + public function getPresentationId() + { + return $this->presentationId; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStudioName($studioName) + { + $this->studioName = $studioName; + } + public function getStudioName() + { + return $this->studioName; + } + public function setTitleLevelEidr($titleLevelEidr) + { + $this->titleLevelEidr = $titleLevelEidr; + } + public function getTitleLevelEidr() + { + return $this->titleLevelEidr; + } + public function setTrailerId($trailerId) + { + $this->trailerId = $trailerId; + } + public function getTrailerId() + { + return $this->trailerId; + } + 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_Playmoviespartner_ListAvailsResponse extends Google_Collection +{ + protected $collection_key = 'avails'; + protected $internal_gapi_mappings = array( + ); + protected $availsType = 'Google_Service_Playmoviespartner_Avail'; + protected $availsDataType = 'array'; + public $nextPageToken; + + + public function setAvails($avails) + { + $this->avails = $avails; + } + public function getAvails() + { + return $this->avails; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Playmoviespartner_ListExperienceLocalesResponse extends Google_Collection +{ + protected $collection_key = 'experienceLocales'; + protected $internal_gapi_mappings = array( + ); + protected $experienceLocalesType = 'Google_Service_Playmoviespartner_ExperienceLocale'; + protected $experienceLocalesDataType = 'array'; + public $nextPageToken; + + + public function setExperienceLocales($experienceLocales) + { + $this->experienceLocales = $experienceLocales; + } + public function getExperienceLocales() + { + return $this->experienceLocales; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Playmoviespartner_ListOrdersResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $ordersType = 'Google_Service_Playmoviespartner_Order'; + protected $ordersDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } +} + +class Google_Service_Playmoviespartner_ListStoreInfosResponse extends Google_Collection +{ + protected $collection_key = 'storeInfos'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $storeInfosType = 'Google_Service_Playmoviespartner_StoreInfo'; + protected $storeInfosDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setStoreInfos($storeInfos) + { + $this->storeInfos = $storeInfos; + } + public function getStoreInfos() + { + return $this->storeInfos; + } +} + +class Google_Service_Playmoviespartner_Order extends Google_Collection +{ + protected $collection_key = 'countries'; + protected $internal_gapi_mappings = array( + ); + public $approvedTime; + public $channelId; + public $channelName; + public $countries; + public $customId; + public $earliestAvailStartTime; + public $episodeName; + public $legacyPriority; + public $name; + public $normalizedPriority; + public $orderId; + public $orderedTime; + public $pphName; + public $priority; + public $receivedTime; + public $rejectionNote; + public $seasonName; + public $showName; + public $status; + public $statusDetail; + public $studioName; + public $type; + public $videoId; + + + public function setApprovedTime($approvedTime) + { + $this->approvedTime = $approvedTime; + } + public function getApprovedTime() + { + return $this->approvedTime; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelName($channelName) + { + $this->channelName = $channelName; + } + public function getChannelName() + { + return $this->channelName; + } + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setCustomId($customId) + { + $this->customId = $customId; + } + public function getCustomId() + { + return $this->customId; + } + public function setEarliestAvailStartTime($earliestAvailStartTime) + { + $this->earliestAvailStartTime = $earliestAvailStartTime; + } + public function getEarliestAvailStartTime() + { + return $this->earliestAvailStartTime; + } + public function setEpisodeName($episodeName) + { + $this->episodeName = $episodeName; + } + public function getEpisodeName() + { + return $this->episodeName; + } + public function setLegacyPriority($legacyPriority) + { + $this->legacyPriority = $legacyPriority; + } + public function getLegacyPriority() + { + return $this->legacyPriority; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNormalizedPriority($normalizedPriority) + { + $this->normalizedPriority = $normalizedPriority; + } + public function getNormalizedPriority() + { + return $this->normalizedPriority; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setOrderedTime($orderedTime) + { + $this->orderedTime = $orderedTime; + } + public function getOrderedTime() + { + return $this->orderedTime; + } + public function setPphName($pphName) + { + $this->pphName = $pphName; + } + public function getPphName() + { + return $this->pphName; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } + public function setReceivedTime($receivedTime) + { + $this->receivedTime = $receivedTime; + } + public function getReceivedTime() + { + return $this->receivedTime; + } + public function setRejectionNote($rejectionNote) + { + $this->rejectionNote = $rejectionNote; + } + public function getRejectionNote() + { + return $this->rejectionNote; + } + public function setSeasonName($seasonName) + { + $this->seasonName = $seasonName; + } + public function getSeasonName() + { + return $this->seasonName; + } + public function setShowName($showName) + { + $this->showName = $showName; + } + public function getShowName() + { + return $this->showName; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusDetail($statusDetail) + { + $this->statusDetail = $statusDetail; + } + public function getStatusDetail() + { + return $this->statusDetail; + } + public function setStudioName($studioName) + { + $this->studioName = $studioName; + } + public function getStudioName() + { + return $this->studioName; + } + 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_Playmoviespartner_StoreInfo extends Google_Collection +{ + protected $collection_key = 'subtitles'; + protected $internal_gapi_mappings = array( + ); + public $audioTracks; + public $country; + public $editLevelEidr; + public $episodeNumber; + public $hasAudio51; + public $hasEstOffer; + public $hasHdOffer; + public $hasInfoCards; + public $hasSdOffer; + public $hasVodOffer; + public $liveTime; + public $mid; + public $name; + public $pphNames; + public $seasonId; + public $seasonName; + public $seasonNumber; + public $showId; + public $showName; + public $studioName; + public $subtitles; + public $titleLevelEidr; + public $trailerId; + public $type; + public $videoId; + + + public function setAudioTracks($audioTracks) + { + $this->audioTracks = $audioTracks; + } + public function getAudioTracks() + { + return $this->audioTracks; + } + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setEditLevelEidr($editLevelEidr) + { + $this->editLevelEidr = $editLevelEidr; + } + public function getEditLevelEidr() + { + return $this->editLevelEidr; + } + public function setEpisodeNumber($episodeNumber) + { + $this->episodeNumber = $episodeNumber; + } + public function getEpisodeNumber() + { + return $this->episodeNumber; + } + public function setHasAudio51($hasAudio51) + { + $this->hasAudio51 = $hasAudio51; + } + public function getHasAudio51() + { + return $this->hasAudio51; + } + public function setHasEstOffer($hasEstOffer) + { + $this->hasEstOffer = $hasEstOffer; + } + public function getHasEstOffer() + { + return $this->hasEstOffer; + } + public function setHasHdOffer($hasHdOffer) + { + $this->hasHdOffer = $hasHdOffer; + } + public function getHasHdOffer() + { + return $this->hasHdOffer; + } + public function setHasInfoCards($hasInfoCards) + { + $this->hasInfoCards = $hasInfoCards; + } + public function getHasInfoCards() + { + return $this->hasInfoCards; + } + public function setHasSdOffer($hasSdOffer) + { + $this->hasSdOffer = $hasSdOffer; + } + public function getHasSdOffer() + { + return $this->hasSdOffer; + } + public function setHasVodOffer($hasVodOffer) + { + $this->hasVodOffer = $hasVodOffer; + } + public function getHasVodOffer() + { + return $this->hasVodOffer; + } + public function setLiveTime($liveTime) + { + $this->liveTime = $liveTime; + } + public function getLiveTime() + { + return $this->liveTime; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPphNames($pphNames) + { + $this->pphNames = $pphNames; + } + public function getPphNames() + { + return $this->pphNames; + } + public function setSeasonId($seasonId) + { + $this->seasonId = $seasonId; + } + public function getSeasonId() + { + return $this->seasonId; + } + public function setSeasonName($seasonName) + { + $this->seasonName = $seasonName; + } + public function getSeasonName() + { + return $this->seasonName; + } + public function setSeasonNumber($seasonNumber) + { + $this->seasonNumber = $seasonNumber; + } + public function getSeasonNumber() + { + return $this->seasonNumber; + } + public function setShowId($showId) + { + $this->showId = $showId; + } + public function getShowId() + { + return $this->showId; + } + public function setShowName($showName) + { + $this->showName = $showName; + } + public function getShowName() + { + return $this->showName; + } + public function setStudioName($studioName) + { + $this->studioName = $studioName; + } + public function getStudioName() + { + return $this->studioName; + } + public function setSubtitles($subtitles) + { + $this->subtitles = $subtitles; + } + public function getSubtitles() + { + return $this->subtitles; + } + public function setTitleLevelEidr($titleLevelEidr) + { + $this->titleLevelEidr = $titleLevelEidr; + } + public function getTitleLevelEidr() + { + return $this->titleLevelEidr; + } + public function setTrailerId($trailerId) + { + $this->trailerId = $trailerId; + } + public function getTrailerId() + { + return $this->trailerId; + } + 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; } } diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 9aa65c439..9ff6a8ae1 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -229,16 +229,6 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), - ),'remove' => array( - 'path' => 'moments/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ), ) ) @@ -519,19 +509,6 @@ public function listMoments($userId, $collection, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Plus_MomentsFeed"); } - - /** - * Delete a moment. (moments.remove) - * - * @param string $id The ID of the moment to delete. - * @param array $optParams Optional parameters. - */ - public function remove($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } } /** @@ -873,6 +850,8 @@ class Google_Service_Plus_ActivityActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_Plus_ActivityActorImage'; @@ -880,8 +859,18 @@ class Google_Service_Plus_ActivityActor extends Google_Model protected $nameType = 'Google_Service_Plus_ActivityActorName'; protected $nameDataType = ''; public $url; + protected $verificationType = 'Google_Service_Plus_ActivityActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -922,6 +911,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_Plus_ActivityActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_Plus_ActivityActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_Plus_ActivityActorImage extends Google_Model @@ -967,6 +999,23 @@ public function getGivenName() } } +class Google_Service_Plus_ActivityActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_Plus_ActivityFeed extends Google_Collection { protected $collection_key = 'items'; @@ -1166,13 +1215,25 @@ class Google_Service_Plus_ActivityObjectActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage'; protected $imageDataType = ''; public $url; + protected $verificationType = 'Google_Service_Plus_ActivityObjectActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1205,6 +1266,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_Plus_ActivityObjectActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_Plus_ActivityObjectActorImage extends Google_Model @@ -1224,6 +1328,23 @@ public function getUrl() } } +class Google_Service_Plus_ActivityObjectActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection { protected $collection_key = 'thumbnails'; @@ -1723,13 +1844,25 @@ class Google_Service_Plus_CommentActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_Plus_CommentActorImage'; protected $imageDataType = ''; public $url; + protected $verificationType = 'Google_Service_Plus_CommentActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1762,6 +1895,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_Plus_CommentActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_Plus_CommentActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_Plus_CommentActorImage extends Google_Model @@ -1781,6 +1957,23 @@ public function getUrl() } } +class Google_Service_Plus_CommentActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_Plus_CommentFeed extends Google_Collection { protected $collection_key = 'items'; diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index 90b199403..9053c9881 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -1141,6 +1141,8 @@ class Google_Service_PlusDomains_ActivityActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage'; @@ -1148,8 +1150,18 @@ class Google_Service_PlusDomains_ActivityActor extends Google_Model protected $nameType = 'Google_Service_PlusDomains_ActivityActorName'; protected $nameDataType = ''; public $url; + protected $verificationType = 'Google_Service_PlusDomains_ActivityActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1190,6 +1202,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_PlusDomains_ActivityActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_PlusDomains_ActivityActorImage extends Google_Model @@ -1235,6 +1290,23 @@ public function getGivenName() } } +class Google_Service_PlusDomains_ActivityActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_PlusDomains_ActivityFeed extends Google_Collection { protected $collection_key = 'items'; @@ -1444,13 +1516,25 @@ class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage'; protected $imageDataType = ''; public $url; + protected $verificationType = 'Google_Service_PlusDomains_ActivityObjectActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1483,6 +1567,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_PlusDomains_ActivityObjectActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model @@ -1502,6 +1629,23 @@ public function getUrl() } } +class Google_Service_PlusDomains_ActivityObjectActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection { protected $collection_key = 'thumbnails'; @@ -2361,13 +2505,25 @@ class Google_Service_PlusDomains_CommentActor extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfo'; + protected $clientSpecificActorInfoDataType = ''; public $displayName; public $id; protected $imageType = 'Google_Service_PlusDomains_CommentActorImage'; protected $imageDataType = ''; public $url; + protected $verificationType = 'Google_Service_PlusDomains_CommentActorVerification'; + protected $verificationDataType = ''; + public function setClientSpecificActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfo $clientSpecificActorInfo) + { + $this->clientSpecificActorInfo = $clientSpecificActorInfo; + } + public function getClientSpecificActorInfo() + { + return $this->clientSpecificActorInfo; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -2400,6 +2556,49 @@ public function getUrl() { return $this->url; } + public function setVerification(Google_Service_PlusDomains_CommentActorVerification $verification) + { + $this->verification = $verification; + } + public function getVerification() + { + return $this->verification; + } +} + +class Google_Service_PlusDomains_CommentActorClientSpecificActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $youtubeActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo'; + protected $youtubeActorInfoDataType = ''; + + + public function setYoutubeActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) + { + $this->youtubeActorInfo = $youtubeActorInfo; + } + public function getYoutubeActorInfo() + { + return $this->youtubeActorInfo; + } +} + +class Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } } class Google_Service_PlusDomains_CommentActorImage extends Google_Model @@ -2419,6 +2618,23 @@ public function getUrl() } } +class Google_Service_PlusDomains_CommentActorVerification extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adHocVerified; + + + public function setAdHocVerified($adHocVerified) + { + $this->adHocVerified = $adHocVerified; + } + public function getAdHocVerified() + { + return $this->adHocVerified; + } +} + class Google_Service_PlusDomains_CommentFeed extends Google_Collection { protected $collection_key = 'items'; diff --git a/src/Google/Service/Proximitybeacon.php b/src/Google/Service/Proximitybeacon.php new file mode 100644 index 000000000..f9a8d0f07 --- /dev/null +++ b/src/Google/Service/Proximitybeacon.php @@ -0,0 +1,1208 @@ + + * This API provides services to register, manage, index, and search beacons.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Proximitybeacon extends Google_Service +{ + + + public $beaconinfo; + public $beacons; + public $beacons_attachments; + public $beacons_diagnostics; + public $namespaces; + + + /** + * Constructs the internal representation of the Proximitybeacon service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://proximitybeacon.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1beta1'; + $this->serviceName = 'proximitybeacon'; + + $this->beaconinfo = new Google_Service_Proximitybeacon_Beaconinfo_Resource( + $this, + $this->serviceName, + 'beaconinfo', + array( + 'methods' => array( + 'getforobserved' => array( + 'path' => 'v1beta1/beaconinfo:getforobserved', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->beacons = new Google_Service_Proximitybeacon_Beacons_Resource( + $this, + $this->serviceName, + 'beacons', + array( + 'methods' => array( + 'activate' => array( + 'path' => 'v1beta1/{+beaconName}:activate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'deactivate' => array( + 'path' => 'v1beta1/{+beaconName}:deactivate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'decommission' => array( + 'path' => 'v1beta1/{+beaconName}:decommission', + 'httpMethod' => 'POST', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/{+beaconName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/beacons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'register' => array( + 'path' => 'v1beta1/beacons:register', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'update' => array( + 'path' => 'v1beta1/{+beaconName}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->beacons_attachments = new Google_Service_Proximitybeacon_BeaconsAttachments_Resource( + $this, + $this->serviceName, + 'attachments', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'v1beta1/{+beaconName}/attachments:batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'namespacedType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'create' => array( + 'path' => 'v1beta1/{+beaconName}/attachments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta1/{+attachmentName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'attachmentName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+beaconName}/attachments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'namespacedType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->beacons_diagnostics = new Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource( + $this, + $this->serviceName, + 'diagnostics', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta1/{+beaconName}/diagnostics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'beaconName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alertFilter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->namespaces = new Google_Service_Proximitybeacon_Namespaces_Resource( + $this, + $this->serviceName, + 'namespaces', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta1/namespaces', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "beaconinfo" collection of methods. + * Typical usage is: + * + * $proximitybeaconService = new Google_Service_Proximitybeacon(...); + * $beaconinfo = $proximitybeaconService->beaconinfo; + * + */ +class Google_Service_Proximitybeacon_Beaconinfo_Resource extends Google_Service_Resource +{ + + /** + * Given one or more beacon observations, returns any beacon information and + * attachments accessible to your application. (beaconinfo.getforobserved) + * + * @param Google_GetInfoForObservedBeaconsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse + */ + public function getforobserved(Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getforobserved', array($params), "Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse"); + } +} + +/** + * The "beacons" collection of methods. + * Typical usage is: + * + * $proximitybeaconService = new Google_Service_Proximitybeacon(...); + * $beacons = $proximitybeaconService->beacons; + * + */ +class Google_Service_Proximitybeacon_Beacons_Resource extends Google_Service_Resource +{ + + /** + * (Re)activates a beacon. A beacon that is active will return information and + * attachment data when queried via `beaconinfo.getforobserved`. Calling this + * method on an already active beacon will do nothing (but will return a + * successful response code). (beacons.activate) + * + * @param string $beaconName The beacon to activate. Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Empty + */ + public function activate($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('activate', array($params), "Google_Service_Proximitybeacon_Empty"); + } + + /** + * Deactivates a beacon. Once deactivated, the API will not return information + * nor attachment data for the beacon when queried via + * `beaconinfo.getforobserved`. Calling this method on an already inactive + * beacon will do nothing (but will return a successful response code). + * (beacons.deactivate) + * + * @param string $beaconName The beacon name of this beacon. + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Empty + */ + public function deactivate($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('deactivate', array($params), "Google_Service_Proximitybeacon_Empty"); + } + + /** + * Decommissions the specified beacon in the service. This beacon will no longer + * be returned from `beaconinfo.getforobserved`. This operation is permanent -- + * you will not be able to re-register a beacon with this ID again. + * (beacons.decommission) + * + * @param string $beaconName Beacon that should be decommissioned. Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Empty + */ + public function decommission($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('decommission', array($params), "Google_Service_Proximitybeacon_Empty"); + } + + /** + * Returns detailed information about the specified beacon. (beacons.get) + * + * @param string $beaconName Beacon that is requested. + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Beacon + */ + public function get($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Proximitybeacon_Beacon"); + } + + /** + * Searches the beacon registry for beacons that match the given search + * criteria. Only those beacons that the client has permission to list will be + * returned. (beacons.listBeacons) + * + * @param array $optParams Optional parameters. + * + * @opt_param string q Filter query string that supports the following field + * filters: * `description:""` For example: `description:"Room 3"` Returns + * beacons whose description matches tokens in the string "Room 3" (not + * necessarily that exact string). The string must be double-quoted. * `status:` + * For example: `status:active` Returns beacons whose status matches the given + * value. Values must be one of the Beacon.Status enum values (case + * insensitive). Accepts multiple filters which will be combined with OR logic. + * * `stability:` For example: `stability:mobile` Returns beacons whose expected + * stability matches the given value. Values must be one of the Beacon.Stability + * enum values (case insensitive). Accepts multiple filters which will be + * combined with OR logic. * `place_id:""` For example: + * `place_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="` Returns beacons explicitly + * registered at the given place, expressed as a Place ID obtained from [Google + * Places API](/places/place-id). Does not match places inside the given place. + * Does not consider the beacon's actual location (which may be different from + * its registered place). Accepts multiple filters that will be combined with OR + * logic. The place ID must be double-quoted. * `registration_time[|=]` For + * example: `registration_time>=1433116800` Returns beacons whose registration + * time matches the given filter. Supports the operators: , =. Timestamp must be + * expressed as an integer number of seconds since midnight January 1, 1970 UTC. + * Accepts at most two filters that will be combined with AND logic, to support + * "between" semantics. If more than two are supplied, the latter ones are + * ignored. * `lat: lng: radius:` For example: `lat:51.1232343 lng:-1.093852 + * radius:1000` Returns beacons whose registered location is within the given + * circle. When any of these fields are given, all are required. Latitude and + * longitude must be decimal degrees between -90.0 and 90.0 and between -180.0 + * and 180.0 respectively. Radius must be an integer number of meters less than + * 1,000,000 (1000 km). * `property:"="` For example: `property:"battery- + * type=CR2032"` Returns beacons which have a property of the given name and + * value. Supports multiple filters which will be combined with OR logic. The + * entire name=value string must be double-quoted as one string. * + * `attachment_type:""` For example: `attachment_type:"my-namespace/my-type"` + * Returns beacons having at least one attachment of the given namespaced type. + * Supports "any within this namespace" via the partial wildcard syntax: "my- + * namespace". Supports multiple filters which will be combined with OR logic. + * The string must be double-quoted. Multiple filters on the same field are + * combined with OR logic (except registration_time which is combined with AND + * logic). Multiple filters on different fields are combined with AND logic. + * Filters should be separated by spaces. As with any HTTP query string + * parameter, the whole filter expression must be URL-encoded. Example REST + * request: `GET + * /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000` + * @opt_param string pageToken A pagination token obtained from a previous + * request to list beacons. + * @opt_param int pageSize The maximum number of records to return for this + * request, up to a server-defined upper limit. + * @return Google_Service_Proximitybeacon_ListBeaconsResponse + */ + public function listBeacons($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconsResponse"); + } + + /** + * Registers a previously unregistered beacon given its `advertisedId`. These + * IDs are unique within the system. An ID can be registered only once. + * (beacons.register) + * + * @param Google_Beacon $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Beacon + */ + public function register(Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('register', array($params), "Google_Service_Proximitybeacon_Beacon"); + } + + /** + * Updates the information about the specified beacon. **Any field that you do + * not populate in the submitted beacon will be permanently erased**, so you + * should follow the "read, modify, write" pattern to avoid inadvertently + * destroying data. Changes to the beacon status via this method will be + * silently ignored. To update beacon status, use the separate methods on this + * API for (de)activation and decommissioning. (beacons.update) + * + * @param string $beaconName Resource name of this beacon. A beacon name has the + * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + * the beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone, `1` for iBeacon, or `5` for AltBeacon. This field must be left + * empty when registering. After reading a beacon, clients can use the name for + * future operations. + * @param Google_Beacon $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Beacon + */ + public function update($beaconName, Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array()) + { + $params = array('beaconName' => $beaconName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Proximitybeacon_Beacon"); + } +} + +/** + * The "attachments" collection of methods. + * Typical usage is: + * + * $proximitybeaconService = new Google_Service_Proximitybeacon(...); + * $attachments = $proximitybeaconService->attachments; + * + */ +class Google_Service_Proximitybeacon_BeaconsAttachments_Resource extends Google_Service_Resource +{ + + /** + * Deletes multiple attachments on a given beacon. This operation is permanent + * and cannot be undone. You can optionally specify `namespacedType` to choose + * which attachments should be deleted. If you do not specify `namespacedType`, + * all your attachments on the given beacon will be deleted. You also may + * explicitly specify `*` to delete all. (attachments.batchDelete) + * + * @param string $beaconName The beacon whose attachments are to be deleted. + * Required. + * @param array $optParams Optional parameters. + * + * @opt_param string namespacedType Specifies the namespace and type of + * attachments to delete in `namespace/type` format. Accepts `*` to specify "all + * types in all namespaces". Optional. + * @return Google_Service_Proximitybeacon_DeleteAttachmentsResponse + */ + public function batchDelete($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_Proximitybeacon_DeleteAttachmentsResponse"); + } + + /** + * Associates the given data with the specified beacon. Attachment data must + * contain two parts: - A namespaced type. - The actual attachment data itself. + * The namespaced type consists of two parts, the namespace and the type. The + * namespace must be one of the values returned by the `namespaces` endpoint, + * while the type can be a string of any characters except for the forward slash + * (`/`) up to 100 characters in length. Attachment data can be up to 1024 bytes + * long. (attachments.create) + * + * @param string $beaconName The beacon on which the attachment should be + * created. Required. + * @param Google_BeaconAttachment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_BeaconAttachment + */ + public function create($beaconName, Google_Service_Proximitybeacon_BeaconAttachment $postBody, $optParams = array()) + { + $params = array('beaconName' => $beaconName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Proximitybeacon_BeaconAttachment"); + } + + /** + * Deletes the specified attachment for the given beacon. Each attachment has a + * unique attachment name (`attachmentName`) which is returned when you fetch + * the attachment data via this API. You specify this with the delete request to + * control which attachment is removed. This operation cannot be undone. + * (attachments.delete) + * + * @param string $attachmentName The attachment name (`attachmentName`) of the + * attachment to remove. For example: + * `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738` Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_Empty + */ + public function delete($attachmentName, $optParams = array()) + { + $params = array('attachmentName' => $attachmentName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Proximitybeacon_Empty"); + } + + /** + * Returns the attachments for the specified beacon that match the specified + * namespaced-type pattern. To control which namespaced types are returned, you + * add the `namespacedType` query parameter to the request. You must either use + * `*`, to return all attachments, or the namespace must be one of the ones + * returned from the `namespaces` endpoint. (attachments.listBeaconsAttachments) + * + * @param string $beaconName The beacon whose attachments are to be fetched. + * Required. + * @param array $optParams Optional parameters. + * + * @opt_param string namespacedType Specifies the namespace and type of + * attachment to include in response in namespace/type format. Accepts `*` to + * specify "all types in all namespaces". + * @return Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse + */ + public function listBeaconsAttachments($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse"); + } +} +/** + * The "diagnostics" collection of methods. + * Typical usage is: + * + * $proximitybeaconService = new Google_Service_Proximitybeacon(...); + * $diagnostics = $proximitybeaconService->diagnostics; + * + */ +class Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource extends Google_Service_Resource +{ + + /** + * List the diagnostics for a single beacon. You can also list diagnostics for + * all the beacons owned by your Google Developers Console project by using the + * beacon name `beacons/-`. (diagnostics.listBeaconsDiagnostics) + * + * @param string $beaconName Beacon that the diagnostics are for. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Requests results that occur after the + * `page_token`, obtained from the response to a previous request. Optional. + * @opt_param string alertFilter Requests only beacons that have the given + * alert. For example, to find beacons that have low batteries use + * `alert_filter=LOW_BATTERY`. + * @opt_param int pageSize Specifies the maximum number of results to return. + * Defaults to 10. Maximum 1000. Optional. + * @return Google_Service_Proximitybeacon_ListDiagnosticsResponse + */ + public function listBeaconsDiagnostics($beaconName, $optParams = array()) + { + $params = array('beaconName' => $beaconName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListDiagnosticsResponse"); + } +} + +/** + * The "namespaces" collection of methods. + * Typical usage is: + * + * $proximitybeaconService = new Google_Service_Proximitybeacon(...); + * $namespaces = $proximitybeaconService->namespaces; + * + */ +class Google_Service_Proximitybeacon_Namespaces_Resource extends Google_Service_Resource +{ + + /** + * Lists all attachment namespaces owned by your Google Developers Console + * project. Attachment data associated with a beacon must include a namespaced + * type, and the namespace must be owned by your project. + * (namespaces.listNamespaces) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Proximitybeacon_ListNamespacesResponse + */ + public function listNamespaces($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListNamespacesResponse"); + } +} + + + + +class Google_Service_Proximitybeacon_AdvertisedId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Proximitybeacon_AttachmentInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $data; + public $namespacedType; + + + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setNamespacedType($namespacedType) + { + $this->namespacedType = $namespacedType; + } + public function getNamespacedType() + { + return $this->namespacedType; + } +} + +class Google_Service_Proximitybeacon_Beacon extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; + protected $advertisedIdDataType = ''; + public $beaconName; + public $description; + public $expectedStability; + protected $indoorLevelType = 'Google_Service_Proximitybeacon_IndoorLevel'; + protected $indoorLevelDataType = ''; + protected $latLngType = 'Google_Service_Proximitybeacon_LatLng'; + protected $latLngDataType = ''; + public $placeId; + public $properties; + public $status; + + + public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) + { + $this->advertisedId = $advertisedId; + } + public function getAdvertisedId() + { + return $this->advertisedId; + } + public function setBeaconName($beaconName) + { + $this->beaconName = $beaconName; + } + public function getBeaconName() + { + return $this->beaconName; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpectedStability($expectedStability) + { + $this->expectedStability = $expectedStability; + } + public function getExpectedStability() + { + return $this->expectedStability; + } + public function setIndoorLevel(Google_Service_Proximitybeacon_IndoorLevel $indoorLevel) + { + $this->indoorLevel = $indoorLevel; + } + public function getIndoorLevel() + { + return $this->indoorLevel; + } + public function setLatLng(Google_Service_Proximitybeacon_LatLng $latLng) + { + $this->latLng = $latLng; + } + public function getLatLng() + { + return $this->latLng; + } + public function setPlaceId($placeId) + { + $this->placeId = $placeId; + } + public function getPlaceId() + { + return $this->placeId; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Proximitybeacon_BeaconAttachment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $attachmentName; + public $data; + public $namespacedType; + + + public function setAttachmentName($attachmentName) + { + $this->attachmentName = $attachmentName; + } + public function getAttachmentName() + { + return $this->attachmentName; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setNamespacedType($namespacedType) + { + $this->namespacedType = $namespacedType; + } + public function getNamespacedType() + { + return $this->namespacedType; + } +} + +class Google_Service_Proximitybeacon_BeaconInfo extends Google_Collection +{ + protected $collection_key = 'attachments'; + protected $internal_gapi_mappings = array( + ); + protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; + protected $advertisedIdDataType = ''; + protected $attachmentsType = 'Google_Service_Proximitybeacon_AttachmentInfo'; + protected $attachmentsDataType = 'array'; + public $beaconName; + public $description; + + + public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) + { + $this->advertisedId = $advertisedId; + } + public function getAdvertisedId() + { + return $this->advertisedId; + } + public function setAttachments($attachments) + { + $this->attachments = $attachments; + } + public function getAttachments() + { + return $this->attachments; + } + public function setBeaconName($beaconName) + { + $this->beaconName = $beaconName; + } + public function getBeaconName() + { + return $this->beaconName; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } +} + +class Google_Service_Proximitybeacon_BeaconProperties extends Google_Model +{ +} + +class Google_Service_Proximitybeacon_Date extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $day; + public $month; + public $year; + + + public function setDay($day) + { + $this->day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} + +class Google_Service_Proximitybeacon_DeleteAttachmentsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $numDeleted; + + + public function setNumDeleted($numDeleted) + { + $this->numDeleted = $numDeleted; + } + public function getNumDeleted() + { + return $this->numDeleted; + } +} + +class Google_Service_Proximitybeacon_Diagnostics extends Google_Collection +{ + protected $collection_key = 'alerts'; + protected $internal_gapi_mappings = array( + ); + public $alerts; + public $beaconName; + protected $estimatedLowBatteryDateType = 'Google_Service_Proximitybeacon_Date'; + protected $estimatedLowBatteryDateDataType = ''; + + + public function setAlerts($alerts) + { + $this->alerts = $alerts; + } + public function getAlerts() + { + return $this->alerts; + } + public function setBeaconName($beaconName) + { + $this->beaconName = $beaconName; + } + public function getBeaconName() + { + return $this->beaconName; + } + public function setEstimatedLowBatteryDate(Google_Service_Proximitybeacon_Date $estimatedLowBatteryDate) + { + $this->estimatedLowBatteryDate = $estimatedLowBatteryDate; + } + public function getEstimatedLowBatteryDate() + { + return $this->estimatedLowBatteryDate; + } +} + +class Google_Service_Proximitybeacon_Empty extends Google_Model +{ +} + +class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest extends Google_Collection +{ + protected $collection_key = 'observations'; + protected $internal_gapi_mappings = array( + ); + public $namespacedTypes; + protected $observationsType = 'Google_Service_Proximitybeacon_Observation'; + protected $observationsDataType = 'array'; + + + public function setNamespacedTypes($namespacedTypes) + { + $this->namespacedTypes = $namespacedTypes; + } + public function getNamespacedTypes() + { + return $this->namespacedTypes; + } + public function setObservations($observations) + { + $this->observations = $observations; + } + public function getObservations() + { + return $this->observations; + } +} + +class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse extends Google_Collection +{ + protected $collection_key = 'beacons'; + protected $internal_gapi_mappings = array( + ); + protected $beaconsType = 'Google_Service_Proximitybeacon_BeaconInfo'; + protected $beaconsDataType = 'array'; + + + public function setBeacons($beacons) + { + $this->beacons = $beacons; + } + public function getBeacons() + { + return $this->beacons; + } +} + +class Google_Service_Proximitybeacon_IndoorLevel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Proximitybeacon_LatLng extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Proximitybeacon_ListBeaconAttachmentsResponse extends Google_Collection +{ + protected $collection_key = 'attachments'; + protected $internal_gapi_mappings = array( + ); + protected $attachmentsType = 'Google_Service_Proximitybeacon_BeaconAttachment'; + protected $attachmentsDataType = 'array'; + + + public function setAttachments($attachments) + { + $this->attachments = $attachments; + } + public function getAttachments() + { + return $this->attachments; + } +} + +class Google_Service_Proximitybeacon_ListBeaconsResponse extends Google_Collection +{ + protected $collection_key = 'beacons'; + protected $internal_gapi_mappings = array( + ); + protected $beaconsType = 'Google_Service_Proximitybeacon_Beacon'; + protected $beaconsDataType = 'array'; + public $nextPageToken; + public $totalCount; + + + public function setBeacons($beacons) + { + $this->beacons = $beacons; + } + public function getBeacons() + { + return $this->beacons; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTotalCount($totalCount) + { + $this->totalCount = $totalCount; + } + public function getTotalCount() + { + return $this->totalCount; + } +} + +class Google_Service_Proximitybeacon_ListDiagnosticsResponse extends Google_Collection +{ + protected $collection_key = 'diagnostics'; + protected $internal_gapi_mappings = array( + ); + protected $diagnosticsType = 'Google_Service_Proximitybeacon_Diagnostics'; + protected $diagnosticsDataType = 'array'; + public $nextPageToken; + + + public function setDiagnostics($diagnostics) + { + $this->diagnostics = $diagnostics; + } + public function getDiagnostics() + { + return $this->diagnostics; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Proximitybeacon_ListNamespacesResponse extends Google_Collection +{ + protected $collection_key = 'namespaces'; + protected $internal_gapi_mappings = array( + ); + protected $namespacesType = 'Google_Service_Proximitybeacon_ProximitybeaconNamespace'; + protected $namespacesDataType = 'array'; + + + public function setNamespaces($namespaces) + { + $this->namespaces = $namespaces; + } + public function getNamespaces() + { + return $this->namespaces; + } +} + +class Google_Service_Proximitybeacon_Observation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; + protected $advertisedIdDataType = ''; + public $telemetry; + public $timestampMs; + + + public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) + { + $this->advertisedId = $advertisedId; + } + public function getAdvertisedId() + { + return $this->advertisedId; + } + public function setTelemetry($telemetry) + { + $this->telemetry = $telemetry; + } + public function getTelemetry() + { + return $this->telemetry; + } + public function setTimestampMs($timestampMs) + { + $this->timestampMs = $timestampMs; + } + public function getTimestampMs() + { + return $this->timestampMs; + } +} + +class Google_Service_Proximitybeacon_ProximitybeaconNamespace extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $namespaceName; + public $servingVisibility; + + + public function setNamespaceName($namespaceName) + { + $this->namespaceName = $namespaceName; + } + public function getNamespaceName() + { + return $this->namespaceName; + } + public function setServingVisibility($servingVisibility) + { + $this->servingVisibility = $servingVisibility; + } + public function getServingVisibility() + { + return $this->servingVisibility; + } +} diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index 9d38e3680..e4fc97c33 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -16,14 +16,14 @@ */ /** - * Service definition for Pubsub (v1). + * Service definition for Pubsub (v1beta1). * *

* Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,9 +37,8 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $projects_subscriptions; - public $projects_topics; - public $projects_topics_subscriptions; + public $subscriptions; + public $topics; /** @@ -50,39 +49,27 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->rootUrl = 'https://pubsub.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'pubsub/v1beta1/'; + $this->version = 'v1beta1'; $this->serviceName = 'pubsub'; - $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( + $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => 'v1/{+subscription}:acknowledge', + 'path' => 'subscriptions/acknowledge', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ),'create' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'delete' => array( - 'path' => 'v1/{+subscription}', + 'path' => 'subscriptions/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -92,7 +79,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'v1/{+subscription}', + 'path' => 'subscriptions/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -101,106 +88,55 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'list' => array( - 'path' => 'v1/{+project}/subscriptions', + 'path' => 'subscriptions', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'modifyAckDeadline' => array( - 'path' => 'v1/{+subscription}:modifyAckDeadline', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', + 'query' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), + ),'modifyAckDeadline' => array( + 'path' => 'subscriptions/modifyAckDeadline', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'modifyPushConfig' => array( - 'path' => 'v1/{+subscription}:modifyPushConfig', + 'path' => 'subscriptions/modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ),'pull' => array( - 'path' => 'v1/{+subscription}:pull', + 'path' => 'subscriptions/pull', 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', + 'parameters' => array(), + ),'pullBatch' => array( + 'path' => 'subscriptions/pullBatch', 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ), ) ) ); - $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( + $this->topics = new Google_Service_Pubsub_Topics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'path' => 'topics', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'delete' => array( - 'path' => 'v1/{+topic}', + 'path' => 'topics/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -210,7 +146,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'v1/{+topic}', + 'path' => 'topics/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -219,92 +155,31 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'list' => array( - 'path' => 'v1/{+project}/topics', + 'path' => 'topics', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'publish' => array( - 'path' => 'v1/{+topic}:publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', + 'query' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', + ),'publish' => array( + 'path' => 'topics/publish', 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', + 'parameters' => array(), + ),'publishBatch' => array( + 'path' => 'topics/publishBatch', 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/{+topic}/subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), + 'parameters' => array(), ), ) ) @@ -313,18 +188,6 @@ public function __construct(Google_Client $client) } -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $projects = $pubsubService->projects; - * - */ -class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource -{ -} - /** * The "subscriptions" collection of methods. * Typical usage is: @@ -333,49 +196,43 @@ class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges the messages associated with the ack tokens in the - * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from - * the subscription. Acknowledging a message whose ack deadline has expired may - * succeed, but such a message may be redelivered later. Acknowledging a message - * more than once will not result in an error. (subscriptions.acknowledge) + * Acknowledges a particular received message: the Pub/Sub system can remove the + * given message from the subscription. Acknowledging a message whose Ack + * deadline has expired may succeed, but the message could have been already + * redelivered. Acknowledging a message more than once will not result in an + * error. This is only used for messages received via pull. + * (subscriptions.acknowledge) * - * @param string $subscription The subscription whose message is being - * acknowledged. * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('acknowledge', array($params)); } /** - * Creates a subscription to a given topic for a given subscriber. If the + * Creates a subscription on a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the - * request, the server will assign a random name for this subscription on the - * same project as the topic. (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. + * + * If the name is not provided in the request, the server will assign a random + * name for this subscription on the same project as the topic. + * (subscriptions.create) * - * @param string $name The name of the subscription. It must have the format - * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must - * start with a letter, and contain only letters (`[A-Za-z]`), numbers - * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus - * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in - * length, and it must not start with `"goog"`. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('name' => $name, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } @@ -383,19 +240,16 @@ public function create($name, Google_Service_Pubsub_Subscription $postBody, $opt /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * After a subscription is deleted, a new one may be created with the same name, - * but the new one has no association with the old subscription, or its topic - * unless the same topic is specified. (subscriptions.delete) + * (subscriptions.delete) * * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('delete', array($params)); } /** @@ -413,136 +267,90 @@ public function get($subscription, $optParams = array()) } /** - * Gets the access control policy for a resource. Is empty if the policy or the - * resource does not exist. (subscriptions.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * projects/{project}. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function getIamPolicy($resource, $optParams = array()) - { - $params = array('resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) + * Lists matching subscriptions. (subscriptions.listSubscriptions) * - * @param string $project The name of the cloud project that subscriptions - * belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value returned by the last - * ListSubscriptionsResponse; indicates that this is a continuation of a prior - * ListSubscriptions call, and that the system should return the next page of - * data. - * @opt_param int pageSize Maximum number of subscriptions to return. + * @opt_param string pageToken The value obtained in the last + * ListSubscriptionsResponse for continuation. + * @opt_param int maxResults Maximum number of subscriptions to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listProjectsSubscriptions($project, $optParams = array()) + public function listSubscriptions($optParams = array()) { - $params = array('project' => $project); + $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the ack deadline for a specific message. This method is useful to - * indicate that more time is needed to process a message by the subscriber, or - * to make the message available for redelivery if the processing was - * interrupted. (subscriptions.modifyAckDeadline) + * Modifies the Ack deadline for a message received from a pull request. + * (subscriptions.modifyAckDeadline) * - * @param string $subscription The name of the subscription. * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('modifyAckDeadline', array($params)); } /** - * Modifies the PushConfig for a specified subscription. This may be used to - * change a push subscription to a pull one (signified by an empty PushConfig) - * or vice versa, or change the endpoint URL and other attributes of a push - * subscription. Messages will accumulate for delivery continuously through the - * call regardless of changes to the PushConfig. + * Modifies the PushConfig for a specified subscription. This method can be used + * to suspend the flow of messages to an endpoint by clearing the PushConfig + * field in the request. Messages will be accumulated for delivery even if no + * push configuration is defined or while the configuration is modified. * (subscriptions.modifyPushConfig) * - * @param string $subscription The name of the subscription. * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('modifyPushConfig', array($params)); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The server may return UNAVAILABLE if there - * are too many concurrent pull requests pending for the given subscription. - * (subscriptions.pull) + * Pulls a single message from the server. If return_immediately is true, and no + * messages are available in the subscription, this method returns + * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no + * messages are available in a reasonable amount of time (to reduce system + * load). (subscriptions.pull) * - * @param string $subscription The subscription from which messages should be - * pulled. * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('subscription' => $subscription, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (subscriptions.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. Resource is usually specified as a path, such as, - * projects/{project}/zones/{zone}/disks/{disk}. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (subscriptions.testIamPermissions) + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The system is free to return UNAVAILABLE + * if there are too many pull requests outstanding for the given subscription. + * (subscriptions.pullBatch) * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. Resource is usually specified as a path, such as, - * projects/{project}. - * @param Google_TestIamPermissionsRequest $postBody + * @param Google_PullBatchRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_TestIamPermissionsResponse + * @return Google_Service_Pubsub_PullBatchResponse */ - public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) { - $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); } } + /** * The "topics" collection of methods. * Typical usage is: @@ -551,25 +359,19 @@ public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermi * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * - * @param string $name The name of the topic. It must have the format - * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, - * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), - * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs - * (`%`). It must be between 3 and 255 characters in length, and it must not - * start with `"goog"`. * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('name' => $name, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } @@ -577,23 +379,23 @@ public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams /** * Deletes the topic with the given name. Returns NOT_FOUND if the topic does * not exist. After a topic is deleted, a new topic may be created with the same - * name; this is an entirely new topic with none of the old configuration or - * subscriptions. Existing subscriptions to this topic are not deleted, but - * their `topic` field is set to `_deleted-topic_`. (topics.delete) + * name. (topics.delete) * * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); + return $this->call('delete', array($params)); } /** - * Gets the configuration of a topic. (topics.get) + * Gets the configuration of a topic. Since the topic only has the name + * attribute, this method is only useful to check the existence of a topic. If + * other attributes are added in the future, they will be returned here. + * (topics.get) * * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. @@ -607,127 +409,50 @@ public function get($topic, $optParams = array()) } /** - * Gets the access control policy for a resource. Is empty if the policy or the - * resource does not exist. (topics.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * projects/{project}. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function getIamPolicy($resource, $optParams = array()) - { - $params = array('resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Lists matching topics. (topics.listProjectsTopics) + * Lists matching topics. (topics.listTopics) * - * @param string $project The name of the cloud project that topics belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value returned by the last - * ListTopicsResponse; indicates that this is a continuation of a prior - * ListTopics call, and that the system should return the next page of data. - * @opt_param int pageSize Maximum number of topics to return. + * @opt_param string pageToken The value obtained in the last ListTopicsResponse + * for continuation. + * @opt_param int maxResults Maximum number of topics to return. + * @opt_param string query A valid label query expression. * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listProjectsTopics($project, $optParams = array()) + public function listTopics($optParams = array()) { - $params = array('project' => $project); + $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. The message payload must not be empty; it must contain either a - * non-empty data field, or at least one attribute. (topics.publish) + * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. + * (topics.publish) * - * @param string $topic The messages in the request will be published on this - * topic. * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishResponse - */ - public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) - { - $params = array('topic' => $topic, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (topics.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. Resource is usually specified as a path, such as, - * projects/{project}/zones/{zone}/disks/{disk}. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (topics.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. Resource is usually specified as a path, such as, - * projects/{project}. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_TestIamPermissionsResponse */ - public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { - $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + return $this->call('publish', array($params)); } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $subscriptions = $pubsubService->subscriptions; - * - */ -class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource -{ /** - * Lists the name of the subscriptions for this topic. - * (subscriptions.listProjectsTopicsSubscriptions) + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. (topics.publishBatch) * - * @param string $topic The name of the topic that subscriptions are attached - * to. + * @param Google_PublishBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The value returned by the last - * ListTopicSubscriptionsResponse; indicates that this is a continuation of a - * prior ListTopicSubscriptions call, and that the system should return the next - * page of data. - * @opt_param int pageSize Maximum number of subscription names to return. - * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse + * @return Google_Service_Pubsub_PublishBatchResponse */ - public function listProjectsTopicsSubscriptions($topic, $optParams = array()) + public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) { - $params = array('topic' => $topic); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); + return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); } } @@ -736,88 +461,74 @@ public function listProjectsTopicsSubscriptions($topic, $optParams = array()) class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackIds'; + protected $collection_key = 'ackId'; protected $internal_gapi_mappings = array( ); - public $ackIds; - - - public function setAckIds($ackIds) - { - $this->ackIds = $ackIds; - } - public function getAckIds() - { - return $this->ackIds; - } -} - -class Google_Service_Pubsub_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; + public $ackId; + public $subscription; - public function setMembers($members) + public function setAckId($ackId) { - $this->members = $members; + $this->ackId = $ackId; } - public function getMembers() + public function getAckId() { - return $this->members; + return $this->ackId; } - public function setRole($role) + public function setSubscription($subscription) { - $this->role = $role; + $this->subscription = $subscription; } - public function getRole() + public function getSubscription() { - return $this->role; + return $this->subscription; } } -class Google_Service_Pubsub_Empty extends Google_Model +class Google_Service_Pubsub_Label extends Google_Model { -} - -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection -{ - protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); - public $nextPageToken; - protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionsDataType = 'array'; + public $key; + public $numValue; + public $strValue; - public function setNextPageToken($nextPageToken) + public function setKey($key) { - $this->nextPageToken = $nextPageToken; + $this->key = $key; } - public function getNextPageToken() + public function getKey() { - return $this->nextPageToken; + return $this->key; } - public function setSubscriptions($subscriptions) + public function setNumValue($numValue) { - $this->subscriptions = $subscriptions; + $this->numValue = $numValue; } - public function getSubscriptions() + public function getNumValue() { - return $this->subscriptions; + return $this->numValue; + } + public function setStrValue($strValue) + { + $this->strValue = $strValue; + } + public function getStrValue() + { + return $this->strValue; } } -class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscriptions'; + protected $collection_key = 'subscription'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - public $subscriptions; + protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -828,24 +539,24 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscriptions($subscriptions) + public function setSubscription($subscription) { - $this->subscriptions = $subscriptions; + $this->subscription = $subscription; } - public function getSubscriptions() + public function getSubscription() { - return $this->subscriptions; + return $this->subscription; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topics'; + protected $collection_key = 'topic'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicsType = 'Google_Service_Pubsub_Topic'; - protected $topicsDataType = 'array'; + protected $topicType = 'Google_Service_Pubsub_Topic'; + protected $topicDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -856,13 +567,13 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopics($topics) + public function setTopic($topic) { - $this->topics = $topics; + $this->topic = $topic; } - public function getTopics() + public function getTopic() { - return $this->topics; + return $this->topic; } } @@ -872,7 +583,9 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection protected $internal_gapi_mappings = array( ); public $ackDeadlineSeconds; + public $ackId; public $ackIds; + public $subscription; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -883,6 +596,14 @@ public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; } + public function setAckId($ackId) + { + $this->ackId = $ackId; + } + public function getAckId() + { + return $this->ackId; + } public function setAckIds($ackIds) { $this->ackIds = $ackIds; @@ -891,6 +612,14 @@ public function getAckIds() { return $this->ackIds; } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -899,6 +628,7 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; + public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -909,52 +639,24 @@ public function getPushConfig() { return $this->pushConfig; } -} - -class Google_Service_Pubsub_Policy extends Google_Collection -{ - protected $collection_key = 'bindings'; - protected $internal_gapi_mappings = array( - ); - protected $bindingsType = 'Google_Service_Pubsub_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - public $version; - - - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() + public function setSubscription($subscription) { - return $this->etag; + $this->subscription = $subscription; } - public function setVersion($version) + public function getSubscription() { - $this->version = $version; - } - public function getVersion() - { - return $this->version; + return $this->subscription; } } -class Google_Service_Pubsub_PublishRequest extends Google_Collection +class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection { protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; protected $messagesDataType = 'array'; + public $topic; public function setMessages($messages) @@ -965,9 +667,17 @@ public function getMessages() { return $this->messages; } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } } -class Google_Service_Pubsub_PublishResponse extends Google_Collection +class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection { protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( @@ -985,23 +695,89 @@ public function getMessageIds() } } -class Google_Service_Pubsub_PubsubMessage extends Google_Model +class Google_Service_Pubsub_PublishRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $attributes; - public $data; - public $messageId; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $topic; + + + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} +class Google_Service_Pubsub_PubsubEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deleted; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $subscription; + public $truncated; - public function setAttributes($attributes) + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + public function getDeleted() + { + return $this->deleted; + } + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() { - $this->attributes = $attributes; + return $this->subscription; } - public function getAttributes() + public function setTruncated($truncated) { - return $this->attributes; + $this->truncated = $truncated; } + public function getTruncated() + { + return $this->truncated; + } +} + +class Google_Service_Pubsub_PubsubMessage extends Google_Collection +{ + protected $collection_key = 'label'; + protected $internal_gapi_mappings = array( + ); + public $data; + protected $labelType = 'Google_Service_Pubsub_Label'; + protected $labelDataType = 'array'; + public $messageId; + + public function setData($data) { $this->data = $data; @@ -1010,6 +786,14 @@ public function getData() { return $this->data; } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } public function setMessageId($messageId) { $this->messageId = $messageId; @@ -1020,25 +804,22 @@ public function getMessageId() } } -class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model -{ -} - -class Google_Service_Pubsub_PullRequest extends Google_Model +class Google_Service_Pubsub_PullBatchRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $maxMessages; + public $maxEvents; public $returnImmediately; + public $subscription; - public function setMaxMessages($maxMessages) + public function setMaxEvents($maxEvents) { - $this->maxMessages = $maxMessages; + $this->maxEvents = $maxEvents; } - public function getMaxMessages() + public function getMaxEvents() { - return $this->maxMessages; + return $this->maxEvents; } public function setReturnImmediately($returnImmediately) { @@ -1048,64 +829,68 @@ public function getReturnImmediately() { return $this->returnImmediately; } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } } -class Google_Service_Pubsub_PullResponse extends Google_Collection +class Google_Service_Pubsub_PullBatchResponse extends Google_Collection { - protected $collection_key = 'receivedMessages'; + protected $collection_key = 'pullResponses'; protected $internal_gapi_mappings = array( ); - protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; - protected $receivedMessagesDataType = 'array'; + protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; + protected $pullResponsesDataType = 'array'; - public function setReceivedMessages($receivedMessages) + public function setPullResponses($pullResponses) { - $this->receivedMessages = $receivedMessages; + $this->pullResponses = $pullResponses; } - public function getReceivedMessages() + public function getPullResponses() { - return $this->receivedMessages; + return $this->pullResponses; } } -class Google_Service_Pubsub_PushConfig extends Google_Model +class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $attributes; - public $pushEndpoint; + public $returnImmediately; + public $subscription; - public function setAttributes($attributes) + public function setReturnImmediately($returnImmediately) { - $this->attributes = $attributes; + $this->returnImmediately = $returnImmediately; } - public function getAttributes() + public function getReturnImmediately() { - return $this->attributes; + return $this->returnImmediately; } - public function setPushEndpoint($pushEndpoint) + public function setSubscription($subscription) { - $this->pushEndpoint = $pushEndpoint; + $this->subscription = $subscription; } - public function getPushEndpoint() + public function getSubscription() { - return $this->pushEndpoint; + return $this->subscription; } } -class Google_Service_Pubsub_PushConfigAttributes extends Google_Model -{ -} - -class Google_Service_Pubsub_ReceivedMessage extends Google_Model +class Google_Service_Pubsub_PullResponse extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; + protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; + protected $pubsubEventDataType = ''; public function setAckId($ackId) @@ -1116,31 +901,30 @@ public function getAckId() { return $this->ackId; } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) + public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) { - $this->message = $message; + $this->pubsubEvent = $pubsubEvent; } - public function getMessage() + public function getPubsubEvent() { - return $this->message; + return $this->pubsubEvent; } } -class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model +class Google_Service_Pubsub_PushConfig extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $policyType = 'Google_Service_Pubsub_Policy'; - protected $policyDataType = ''; + public $pushEndpoint; - public function setPolicy(Google_Service_Pubsub_Policy $policy) + public function setPushEndpoint($pushEndpoint) { - $this->policy = $policy; + $this->pushEndpoint = $pushEndpoint; } - public function getPolicy() + public function getPushEndpoint() { - return $this->policy; + return $this->pushEndpoint; } } @@ -1189,42 +973,6 @@ public function getTopic() } } -class Google_Service_Pubsub_TestIamPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Pubsub_TestIamPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - class Google_Service_Pubsub_Topic extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php index a4ba6d8a5..a8cd25356 100644 --- a/src/Google/Service/Replicapool.php +++ b/src/Google/Service/Replicapool.php @@ -34,6 +34,9 @@ class Google_Service_Replicapool extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View and manage your Google Compute Engine resources. */ const COMPUTE = "https://www.googleapis.com/auth/compute"; diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 44cf2df3c..a5649402e 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -34,6 +34,9 @@ class Google_Service_Replicapoolupdater extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View and manage replica pools. */ const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; @@ -133,10 +136,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -145,9 +144,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'instanceGroupManager' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), ), ),'listInstanceUpdates' => array( @@ -272,6 +271,33 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), ), ) ) @@ -352,15 +378,12 @@ public function insert($project, $zone, Google_Service_Replicapoolupdater_Rollin * resides. * @param array $optParams Optional parameters. * - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. * @opt_param string filter Optional. Filter expression for filtering listed * resources. * @opt_param string pageToken Optional. Tag returned by a previous list request * truncated by maxResults. Used to continue a previous list request. - * @opt_param string instanceGroupManager The name of the instance group - * manager. Use this parameter to return only updates to instances that are part - * of a specific instance group. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @return Google_Service_Replicapoolupdater_RollingUpdateList */ public function listRollingUpdates($project, $zone, $optParams = array()) @@ -479,6 +502,29 @@ public function get($project, $zone, $operation, $optParams = array()) $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation"); } + + /** + * Retrieves the list of Operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @return Google_Service_Replicapoolupdater_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapoolupdater_OperationList"); + } } @@ -883,6 +929,61 @@ public function getMessage() } } +class Google_Service_Replicapoolupdater_OperationList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Replicapoolupdater_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + class Google_Service_Replicapoolupdater_OperationWarnings extends Google_Collection { protected $collection_key = 'data'; @@ -960,6 +1061,7 @@ class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model public $instanceGroupManager; public $instanceTemplate; public $kind; + public $oldInstanceTemplate; protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; protected $policyDataType = ''; public $progress; @@ -1041,6 +1143,14 @@ public function getKind() { return $this->kind; } + public function setOldInstanceTemplate($oldInstanceTemplate) + { + $this->oldInstanceTemplate = $oldInstanceTemplate; + } + public function getOldInstanceTemplate() + { + return $this->oldInstanceTemplate; + } public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy) { $this->policy = $policy; diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 4420a7525..58e3b8913 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -34,6 +34,9 @@ class Google_Service_Resourceviews extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** View and manage your Google Compute Engine resources. */ const COMPUTE = "https://www.googleapis.com/auth/compute"; diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 12882d356..02db61777 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -66,7 +66,27 @@ public function __construct(Google_Client $client) 'backupRuns', array( 'methods' => array( - 'get' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'GET', 'parameters' => array( @@ -298,6 +318,21 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'failover' => array( + 'path' => 'projects/{project}/instances/{instance}/failover', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => 'projects/{project}/instances/{instance}', 'httpMethod' => 'GET', @@ -534,7 +569,22 @@ public function __construct(Google_Client $client) 'sslCerts', array( 'methods' => array( - 'delete' => array( + 'createEphemeral' => array( + 'path' => 'projects/{project}/instances/{instance}/createEphemeral', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -733,6 +783,24 @@ public function __construct(Google_Client $client) class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource { + /** + * Deletes the backup taken by a backup run. (backupRuns.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param string $id The ID of the Backup Run to delete. To find a Backup Run + * ID, use the list method. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $id, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + /** * Retrieves a resource containing information about a backup run. * (backupRuns.get) @@ -988,6 +1056,23 @@ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExp return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); } + /** + * Failover the instance to its failover replica instance. (instances.failover) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_InstancesFailoverRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function failover($project, $instance, Google_Service_SQLAdmin_InstancesFailoverRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('failover', array($params), "Google_Service_SQLAdmin_Operation"); + } + /** * Retrieves a resource containing information about a Cloud SQL instance. * (instances.get) @@ -1260,6 +1345,26 @@ public function listOperations($project, $instance, $optParams = array()) class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource { + /** + * Generates a short-lived X509 certificate containing the provided public key + * and signed by a private key specific to the target instance. Users may use + * the certificate to authenticate as themselves when connecting to the + * database. (sslCerts.createEphemeral) + * + * @param string $project Project ID of the Cloud SQL project. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_SslCertsCreateEphemeralRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCert + */ + public function createEphemeral($project, $instance, Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createEphemeral', array($params), "Google_Service_SQLAdmin_SslCert"); + } + /** * Deletes the SSL certificate. The change will not take effect until the * instance is restarted. (sslCerts.delete) @@ -2159,9 +2264,18 @@ class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Colle protected $collection_key = 'tables'; protected $internal_gapi_mappings = array( ); + public $schemaOnly; public $tables; + public function setSchemaOnly($schemaOnly) + { + $this->schemaOnly = $schemaOnly; + } + public function getSchemaOnly() + { + return $this->schemaOnly; + } public function setTables($tables) { $this->tables = $tables; @@ -2172,6 +2286,32 @@ public function getTables() } } +class Google_Service_SQLAdmin_FailoverContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $settingsVersion; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSettingsVersion($settingsVersion) + { + $this->settingsVersion = $settingsVersion; + } + public function getSettingsVersion() + { + return $this->settingsVersion; + } +} + class Google_Service_SQLAdmin_Flag extends Google_Collection { protected $collection_key = 'appliesTo'; @@ -2389,6 +2529,24 @@ public function getExportContext() } } +class Google_Service_SQLAdmin_InstancesFailoverRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $failoverContextType = 'Google_Service_SQLAdmin_FailoverContext'; + protected $failoverContextDataType = ''; + + + public function setFailoverContext(Google_Service_SQLAdmin_FailoverContext $failoverContext) + { + $this->failoverContext = $failoverContext; + } + public function getFailoverContext() + { + return $this->failoverContext; + } +} + class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -2943,11 +3101,20 @@ class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model { protected $internal_gapi_mappings = array( ); + public $failoverTarget; public $kind; protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration'; protected $mysqlReplicaConfigurationDataType = ''; + public function setFailoverTarget($failoverTarget) + { + $this->failoverTarget = $failoverTarget; + } + public function getFailoverTarget() + { + return $this->failoverTarget; + } public function setKind($kind) { $this->kind = $kind; @@ -3247,6 +3414,24 @@ public function getCertPrivateKey() } } +class Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + "publicKey" => "public_key", + ); + public $publicKey; + + + public function setPublicKey($publicKey) + { + $this->publicKey = $publicKey; + } + public function getPublicKey() + { + return $this->publicKey; + } +} + class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 44840eef8..1930011db 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -24,7 +24,7 @@ * *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -42,6 +42,7 @@ class Google_Service_ShoppingContent extends Google_Service public $datafeeds; public $datafeedstatuses; public $inventory; + public $orders; public $products; public $productstatuses; @@ -72,7 +73,12 @@ public function __construct(Google_Client $client) ),'custombatch' => array( 'path' => 'accounts/batch', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), ),'delete' => array( 'path' => '{merchantId}/accounts/{accountId}', 'httpMethod' => 'DELETE', @@ -87,6 +93,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'get' => array( 'path' => '{merchantId}/accounts/{accountId}', @@ -112,6 +122,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'list' => array( 'path' => '{merchantId}/accounts', @@ -145,6 +159,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => '{merchantId}/accounts/{accountId}', @@ -160,6 +178,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -401,7 +423,12 @@ public function __construct(Google_Client $client) 'custombatch' => array( 'path' => 'datafeeds/batch', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), ),'delete' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', 'httpMethod' => 'DELETE', @@ -416,6 +443,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'get' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -441,6 +472,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'list' => array( 'path' => '{merchantId}/datafeeds', @@ -474,6 +509,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -489,6 +528,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -550,7 +593,12 @@ public function __construct(Google_Client $client) 'custombatch' => array( 'path' => 'inventory/batch', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), ),'set' => array( 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', 'httpMethod' => 'POST', @@ -570,6 +618,253 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->orders = new Google_Service_ShoppingContent_Orders_Resource( + $this, + $this->serviceName, + 'orders', + array( + 'methods' => array( + 'acknowledge' => array( + 'path' => '{merchantId}/orders/{orderId}/acknowledge', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'advancetestorder' => array( + 'path' => '{merchantId}/testorders/{orderId}/advance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'cancel' => array( + 'path' => '{merchantId}/orders/{orderId}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'cancellineitem' => array( + 'path' => '{merchantId}/orders/{orderId}/cancelLineItem', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'createtestorder' => array( + 'path' => '{merchantId}/testorders', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'custombatch' => array( + 'path' => 'orders/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => '{merchantId}/orders/{orderId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getbymerchantorderid' => array( + 'path' => '{merchantId}/ordersbymerchantid/{merchantOrderId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'merchantOrderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'gettestordertemplate' => array( + 'path' => '{merchantId}/testordertemplates/{templateName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/orders', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placedDateEnd' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acknowledged' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placedDateStart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'statuses' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'refund' => array( + 'path' => '{merchantId}/orders/{orderId}/refund', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'returnlineitem' => array( + 'path' => '{merchantId}/orders/{orderId}/returnLineItem', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'shiplineitems' => array( + 'path' => '{merchantId}/orders/{orderId}/shipLineItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updatemerchantorderid' => array( + 'path' => '{merchantId}/orders/{orderId}/updateMerchantOrderId', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updateshipment' => array( + 'path' => '{merchantId}/orders/{orderId}/updateShipment', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ), ) @@ -741,6 +1036,8 @@ public function authinfo($optParams = array()) * * @param Google_AccountsCustomBatchRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) @@ -756,7 +1053,9 @@ public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRe * @param string $merchantId The ID of the managing account. * @param string $accountId The ID of the account. * @param array $optParams Optional parameters. - */ + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + */ public function delete($merchantId, $accountId, $optParams = array()) { $params = array('merchantId' => $merchantId, 'accountId' => $accountId); @@ -785,6 +1084,8 @@ public function get($merchantId, $accountId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param Google_Account $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Account */ public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) @@ -821,6 +1122,8 @@ public function listAccounts($merchantId, $optParams = array()) * @param string $accountId The ID of the account. * @param Google_Account $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Account */ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) @@ -837,6 +1140,8 @@ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Ac * @param string $accountId The ID of the account. * @param Google_Account $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Account */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) @@ -1129,6 +1434,8 @@ class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_R * * @param Google_DatafeedsCustomBatchRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) @@ -1144,6 +1451,8 @@ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchR * @param string $merchantId * @param string $datafeedId * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. */ public function delete($merchantId, $datafeedId, $optParams = array()) { @@ -1173,6 +1482,8 @@ public function get($merchantId, $datafeedId, $optParams = array()) * @param string $merchantId * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Datafeed */ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) @@ -1209,6 +1520,8 @@ public function listDatafeeds($merchantId, $optParams = array()) * @param string $datafeedId * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Datafeed */ public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) @@ -1225,6 +1538,8 @@ public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_D * @param string $datafeedId * @param Google_Datafeed $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Datafeed */ public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) @@ -1309,10 +1624,13 @@ class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_R /** * Updates price and availability for multiple products or stores in a single - * request. (inventory.custombatch) + * request. This operation does not update the expiration date of the products. + * (inventory.custombatch) * * @param Google_InventoryCustomBatchRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) @@ -1324,6 +1642,7 @@ public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchR /** * Updates price and availability of a product in your Merchant Center account. + * This operation does not update the expiration date of the product. * (inventory.set) * * @param string $merchantId The ID of the managing account. @@ -1334,6 +1653,8 @@ public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchR * availability. * @param Google_InventorySetRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_InventorySetResponse */ public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) @@ -1344,6 +1665,280 @@ public function set($merchantId, $storeCode, $productId, Google_Service_Shopping } } +/** + * The "orders" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $orders = $contentService->orders; + * + */ +class Google_Service_ShoppingContent_Orders_Resource extends Google_Service_Resource +{ + + /** + * Marks an order as acknowledged. (orders.acknowledge) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersAcknowledgeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersAcknowledgeResponse + */ + public function acknowledge($merchantId, $orderId, Google_Service_ShoppingContent_OrdersAcknowledgeRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('acknowledge', array($params), "Google_Service_ShoppingContent_OrdersAcknowledgeResponse"); + } + + /** + * Sandbox only. Moves a test order from state "inProgress" to state + * "pendingShipment". (orders.advancetestorder) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the test order to modify. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse + */ + public function advancetestorder($merchantId, $orderId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('advancetestorder', array($params), "Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse"); + } + + /** + * Cancels all line items in an order. (orders.cancel) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order to cancel. + * @param Google_OrdersCancelRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersCancelResponse + */ + public function cancel($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_ShoppingContent_OrdersCancelResponse"); + } + + /** + * Cancels a line item. (orders.cancellineitem) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersCancelLineItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersCancelLineItemResponse + */ + public function cancellineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelLineItemRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancellineitem', array($params), "Google_Service_ShoppingContent_OrdersCancelLineItemResponse"); + } + + /** + * Sandbox only. Creates a test order. (orders.createtestorder) + * + * @param string $merchantId The ID of the managing account. + * @param Google_OrdersCreateTestOrderRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersCreateTestOrderResponse + */ + public function createtestorder($merchantId, Google_Service_ShoppingContent_OrdersCreateTestOrderRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createtestorder', array($params), "Google_Service_ShoppingContent_OrdersCreateTestOrderResponse"); + } + + /** + * Retrieves or modifies multiple orders in a single request. + * (orders.custombatch) + * + * @param Google_OrdersCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_OrdersCustomBatchResponse"); + } + + /** + * Retrieves an order from your Merchant Center account. (orders.get) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Order + */ + public function get($merchantId, $orderId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Order"); + } + + /** + * Retrieves an order using merchant order id. (orders.getbymerchantorderid) + * + * @param string $merchantId The ID of the managing account. + * @param string $merchantOrderId The merchant order id to be looked for. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse + */ + public function getbymerchantorderid($merchantId, $merchantOrderId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'merchantOrderId' => $merchantOrderId); + $params = array_merge($params, $optParams); + return $this->call('getbymerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse"); + } + + /** + * Sandbox only. Retrieves an order template that can be used to quickly create + * a new order in sandbox. (orders.gettestordertemplate) + * + * @param string $merchantId The ID of the managing account. + * @param string $templateName The name of the template to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse + */ + public function gettestordertemplate($merchantId, $templateName, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'templateName' => $templateName); + $params = array_merge($params, $optParams); + return $this->call('gettestordertemplate', array($params), "Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse"); + } + + /** + * Lists the orders in your Merchant Center account. (orders.listOrders) + * + * @param string $merchantId The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy The ordering of the returned list. The only + * supported value are placedDate desc and placedDate asc for now, which returns + * orders sorted by placement date. "placedDate desc" stands for listing orders + * by placement date, from oldest to most recent. "placedDate asc" stands for + * listing orders by placement date, from most recent to oldest. In future + * releases we'll support other sorting criteria. + * @opt_param string placedDateEnd Obtains orders placed before this date + * (exclusively), in ISO 8601 format. + * @opt_param bool acknowledged Obtains orders that match the acknowledgement + * status. When set to true, obtains orders that have been acknowledged. When + * false, obtains orders that have not been acknowledged. We recommend using + * this filter set to false, in conjunction with the acknowledge call, such that + * only un-acknowledged orders are returned. + * @opt_param string maxResults The maximum number of orders to return in the + * response, used for paging. The default value is 25 orders per page, and the + * maximum allowed value is 250 orders per page. Known issue: All List calls + * will return all Orders without limit regardless of the value of this field. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string placedDateStart Obtains orders placed after this date + * (inclusively), in ISO 8601 format. + * @opt_param string statuses Obtains orders that match any of the specified + * statuses. Multiple values can be specified with comma separation. + * Additionally, please note that active is a shortcut for pendingShipment and + * partiallyShipped, and completed is a shortcut for shipped , + * partiallyDelivered, delivered, partiallyReturned, returned, and canceled. + * @return Google_Service_ShoppingContent_OrdersListResponse + */ + public function listOrders($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_OrdersListResponse"); + } + + /** + * Refund a portion of the order, up to the full amount paid. (orders.refund) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order to refund. + * @param Google_OrdersRefundRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersRefundResponse + */ + public function refund($merchantId, $orderId, Google_Service_ShoppingContent_OrdersRefundRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('refund', array($params), "Google_Service_ShoppingContent_OrdersRefundResponse"); + } + + /** + * Returns a line item. (orders.returnlineitem) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersReturnLineItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersReturnLineItemResponse + */ + public function returnlineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('returnlineitem', array($params), "Google_Service_ShoppingContent_OrdersReturnLineItemResponse"); + } + + /** + * Marks line item(s) as shipped. (orders.shiplineitems) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersShipLineItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersShipLineItemsResponse + */ + public function shiplineitems($merchantId, $orderId, Google_Service_ShoppingContent_OrdersShipLineItemsRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('shiplineitems', array($params), "Google_Service_ShoppingContent_OrdersShipLineItemsResponse"); + } + + /** + * Updates the merchant order ID for a given order. + * (orders.updatemerchantorderid) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersUpdateMerchantOrderIdRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse + */ + public function updatemerchantorderid($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatemerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse"); + } + + /** + * Updates a shipment's status, carrier, and/or tracking ID. + * (orders.updateshipment) + * + * @param string $merchantId The ID of the managing account. + * @param string $orderId The ID of the order. + * @param Google_OrdersUpdateShipmentRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersUpdateShipmentResponse + */ + public function updateshipment($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateShipmentRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateshipment', array($params), "Google_Service_ShoppingContent_OrdersUpdateShipmentResponse"); + } +} + /** * The "products" collection of methods. * Typical usage is: @@ -3992,6 +4587,7 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; public $salePriceEffectiveDate; + public $sellOnGoogleQuantity; public function setAvailability($availability) @@ -4042,6 +4638,14 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } + public function setSellOnGoogleQuantity($sellOnGoogleQuantity) + { + $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; + } + public function getSellOnGoogleQuantity() + { + return $this->sellOnGoogleQuantity; + } } class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection @@ -4192,6 +4796,7 @@ class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; public $salePriceEffectiveDate; + public $sellOnGoogleQuantity; public function setAvailability($availability) @@ -4234,6 +4839,14 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } + public function setSellOnGoogleQuantity($sellOnGoogleQuantity) + { + $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; + } + public function getSellOnGoogleQuantity() + { + return $this->sellOnGoogleQuantity; + } } class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model @@ -4280,11 +4893,2255 @@ public function getPointsValue() } public function setRatio($ratio) { - $this->ratio = $ratio; + $this->ratio = $ratio; + } + public function getRatio() + { + return $this->ratio; + } +} + +class Google_Service_ShoppingContent_Order extends Google_Collection +{ + protected $collection_key = 'shipments'; + protected $internal_gapi_mappings = array( + ); + public $acknowledged; + protected $customerType = 'Google_Service_ShoppingContent_OrderCustomer'; + protected $customerDataType = ''; + protected $deliveryDetailsType = 'Google_Service_ShoppingContent_OrderDeliveryDetails'; + protected $deliveryDetailsDataType = ''; + public $id; + public $kind; + protected $lineItemsType = 'Google_Service_ShoppingContent_OrderLineItem'; + protected $lineItemsDataType = 'array'; + public $merchantId; + public $merchantOrderId; + protected $netAmountType = 'Google_Service_ShoppingContent_Price'; + protected $netAmountDataType = ''; + protected $paymentMethodType = 'Google_Service_ShoppingContent_OrderPaymentMethod'; + protected $paymentMethodDataType = ''; + public $paymentStatus; + public $placedDate; + protected $refundsType = 'Google_Service_ShoppingContent_OrderRefund'; + protected $refundsDataType = 'array'; + protected $shipmentsType = 'Google_Service_ShoppingContent_OrderShipment'; + protected $shipmentsDataType = 'array'; + protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; + protected $shippingCostDataType = ''; + protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; + protected $shippingCostTaxDataType = ''; + public $shippingOption; + public $status; + + + public function setAcknowledged($acknowledged) + { + $this->acknowledged = $acknowledged; + } + public function getAcknowledged() + { + return $this->acknowledged; + } + public function setCustomer(Google_Service_ShoppingContent_OrderCustomer $customer) + { + $this->customer = $customer; + } + public function getCustomer() + { + return $this->customer; + } + public function setDeliveryDetails(Google_Service_ShoppingContent_OrderDeliveryDetails $deliveryDetails) + { + $this->deliveryDetails = $deliveryDetails; + } + public function getDeliveryDetails() + { + return $this->deliveryDetails; + } + 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 setLineItems($lineItems) + { + $this->lineItems = $lineItems; + } + public function getLineItems() + { + return $this->lineItems; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMerchantOrderId($merchantOrderId) + { + $this->merchantOrderId = $merchantOrderId; + } + public function getMerchantOrderId() + { + return $this->merchantOrderId; + } + public function setNetAmount(Google_Service_ShoppingContent_Price $netAmount) + { + $this->netAmount = $netAmount; + } + public function getNetAmount() + { + return $this->netAmount; + } + public function setPaymentMethod(Google_Service_ShoppingContent_OrderPaymentMethod $paymentMethod) + { + $this->paymentMethod = $paymentMethod; + } + public function getPaymentMethod() + { + return $this->paymentMethod; + } + public function setPaymentStatus($paymentStatus) + { + $this->paymentStatus = $paymentStatus; + } + public function getPaymentStatus() + { + return $this->paymentStatus; + } + public function setPlacedDate($placedDate) + { + $this->placedDate = $placedDate; + } + public function getPlacedDate() + { + return $this->placedDate; + } + public function setRefunds($refunds) + { + $this->refunds = $refunds; + } + public function getRefunds() + { + return $this->refunds; + } + public function setShipments($shipments) + { + $this->shipments = $shipments; + } + public function getShipments() + { + return $this->shipments; + } + public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost) + { + $this->shippingCost = $shippingCost; + } + public function getShippingCost() + { + return $this->shippingCost; + } + public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax) + { + $this->shippingCostTax = $shippingCostTax; + } + public function getShippingCostTax() + { + return $this->shippingCostTax; + } + public function setShippingOption($shippingOption) + { + $this->shippingOption = $shippingOption; + } + public function getShippingOption() + { + return $this->shippingOption; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_ShoppingContent_OrderAddress extends Google_Collection +{ + protected $collection_key = 'streetAddress'; + protected $internal_gapi_mappings = array( + ); + public $country; + public $fullAddress; + public $isPostOfficeBox; + public $locality; + public $postalCode; + public $recipientName; + public $region; + public $streetAddress; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setFullAddress($fullAddress) + { + $this->fullAddress = $fullAddress; + } + public function getFullAddress() + { + return $this->fullAddress; + } + public function setIsPostOfficeBox($isPostOfficeBox) + { + $this->isPostOfficeBox = $isPostOfficeBox; + } + public function getIsPostOfficeBox() + { + return $this->isPostOfficeBox; + } + public function setLocality($locality) + { + $this->locality = $locality; + } + public function getLocality() + { + return $this->locality; + } + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + public function getPostalCode() + { + return $this->postalCode; + } + public function setRecipientName($recipientName) + { + $this->recipientName = $recipientName; + } + public function getRecipientName() + { + return $this->recipientName; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setStreetAddress($streetAddress) + { + $this->streetAddress = $streetAddress; + } + public function getStreetAddress() + { + return $this->streetAddress; + } +} + +class Google_Service_ShoppingContent_OrderCancellation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actor; + public $creationDate; + public $quantity; + public $reason; + public $reasonText; + + + public function setActor($actor) + { + $this->actor = $actor; + } + public function getActor() + { + return $this->actor; + } + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrderCustomer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $email; + public $explicitMarketingPreference; + public $fullName; + + + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setExplicitMarketingPreference($explicitMarketingPreference) + { + $this->explicitMarketingPreference = $explicitMarketingPreference; + } + public function getExplicitMarketingPreference() + { + return $this->explicitMarketingPreference; + } + public function setFullName($fullName) + { + $this->fullName = $fullName; + } + public function getFullName() + { + return $this->fullName; + } +} + +class Google_Service_ShoppingContent_OrderDeliveryDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $addressType = 'Google_Service_ShoppingContent_OrderAddress'; + protected $addressDataType = ''; + public $phoneNumber; + + + public function setAddress(Google_Service_ShoppingContent_OrderAddress $address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } +} + +class Google_Service_ShoppingContent_OrderLineItem extends Google_Collection +{ + protected $collection_key = 'returns'; + protected $internal_gapi_mappings = array( + ); + protected $cancellationsType = 'Google_Service_ShoppingContent_OrderCancellation'; + protected $cancellationsDataType = 'array'; + public $id; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + protected $productType = 'Google_Service_ShoppingContent_OrderLineItemProduct'; + protected $productDataType = ''; + public $quantityCanceled; + public $quantityDelivered; + public $quantityOrdered; + public $quantityPending; + public $quantityReturned; + public $quantityShipped; + protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo'; + protected $returnInfoDataType = ''; + protected $returnsType = 'Google_Service_ShoppingContent_OrderReturn'; + protected $returnsDataType = 'array'; + protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails'; + protected $shippingDetailsDataType = ''; + protected $taxType = 'Google_Service_ShoppingContent_Price'; + protected $taxDataType = ''; + + + public function setCancellations($cancellations) + { + $this->cancellations = $cancellations; + } + public function getCancellations() + { + return $this->cancellations; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + public function getPrice() + { + return $this->price; + } + public function setProduct(Google_Service_ShoppingContent_OrderLineItemProduct $product) + { + $this->product = $product; + } + public function getProduct() + { + return $this->product; + } + public function setQuantityCanceled($quantityCanceled) + { + $this->quantityCanceled = $quantityCanceled; + } + public function getQuantityCanceled() + { + return $this->quantityCanceled; + } + public function setQuantityDelivered($quantityDelivered) + { + $this->quantityDelivered = $quantityDelivered; + } + public function getQuantityDelivered() + { + return $this->quantityDelivered; + } + public function setQuantityOrdered($quantityOrdered) + { + $this->quantityOrdered = $quantityOrdered; + } + public function getQuantityOrdered() + { + return $this->quantityOrdered; + } + public function setQuantityPending($quantityPending) + { + $this->quantityPending = $quantityPending; + } + public function getQuantityPending() + { + return $this->quantityPending; + } + public function setQuantityReturned($quantityReturned) + { + $this->quantityReturned = $quantityReturned; + } + public function getQuantityReturned() + { + return $this->quantityReturned; + } + public function setQuantityShipped($quantityShipped) + { + $this->quantityShipped = $quantityShipped; + } + public function getQuantityShipped() + { + return $this->quantityShipped; + } + public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo) + { + $this->returnInfo = $returnInfo; + } + public function getReturnInfo() + { + return $this->returnInfo; + } + public function setReturns($returns) + { + $this->returns = $returns; + } + public function getReturns() + { + return $this->returns; + } + public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails) + { + $this->shippingDetails = $shippingDetails; + } + public function getShippingDetails() + { + return $this->shippingDetails; + } + public function setTax(Google_Service_ShoppingContent_Price $tax) + { + $this->tax = $tax; + } + public function getTax() + { + return $this->tax; + } +} + +class Google_Service_ShoppingContent_OrderLineItemProduct extends Google_Collection +{ + protected $collection_key = 'variantAttributes'; + protected $internal_gapi_mappings = array( + ); + public $brand; + public $channel; + public $condition; + public $contentLanguage; + public $gtin; + public $id; + public $imageLink; + public $itemGroupId; + public $mpn; + public $offerId; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $shownImage; + public $targetCountry; + public $title; + protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute'; + protected $variantAttributesDataType = 'array'; + + + public function setBrand($brand) + { + $this->brand = $brand; + } + public function getBrand() + { + return $this->brand; + } + public function setChannel($channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } + public function setCondition($condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + public function getContentLanguage() + { + return $this->contentLanguage; + } + public function setGtin($gtin) + { + $this->gtin = $gtin; + } + public function getGtin() + { + return $this->gtin; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setImageLink($imageLink) + { + $this->imageLink = $imageLink; + } + public function getImageLink() + { + return $this->imageLink; + } + public function setItemGroupId($itemGroupId) + { + $this->itemGroupId = $itemGroupId; + } + public function getItemGroupId() + { + return $this->itemGroupId; + } + public function setMpn($mpn) + { + $this->mpn = $mpn; + } + public function getMpn() + { + return $this->mpn; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + public function getPrice() + { + return $this->price; + } + public function setShownImage($shownImage) + { + $this->shownImage = $shownImage; + } + public function getShownImage() + { + return $this->shownImage; + } + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + public function getTargetCountry() + { + return $this->targetCountry; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setVariantAttributes($variantAttributes) + { + $this->variantAttributes = $variantAttributes; + } + public function getVariantAttributes() + { + return $this->variantAttributes; + } +} + +class Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dimension; + public $value; + + + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_ShoppingContent_OrderLineItemReturnInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $daysToReturn; + public $isReturnable; + public $policyUrl; + + + public function setDaysToReturn($daysToReturn) + { + $this->daysToReturn = $daysToReturn; + } + public function getDaysToReturn() + { + return $this->daysToReturn; + } + public function setIsReturnable($isReturnable) + { + $this->isReturnable = $isReturnable; + } + public function getIsReturnable() + { + return $this->isReturnable; + } + public function setPolicyUrl($policyUrl) + { + $this->policyUrl = $policyUrl; + } + public function getPolicyUrl() + { + return $this->policyUrl; + } +} + +class Google_Service_ShoppingContent_OrderLineItemShippingDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deliverByDate; + protected $methodType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod'; + protected $methodDataType = ''; + public $shipByDate; + + + public function setDeliverByDate($deliverByDate) + { + $this->deliverByDate = $deliverByDate; + } + public function getDeliverByDate() + { + return $this->deliverByDate; + } + public function setMethod(Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod $method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setShipByDate($shipByDate) + { + $this->shipByDate = $shipByDate; + } + public function getShipByDate() + { + return $this->shipByDate; + } +} + +class Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $maxDaysInTransit; + public $methodName; + public $minDaysInTransit; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setMaxDaysInTransit($maxDaysInTransit) + { + $this->maxDaysInTransit = $maxDaysInTransit; + } + public function getMaxDaysInTransit() + { + return $this->maxDaysInTransit; + } + public function setMethodName($methodName) + { + $this->methodName = $methodName; + } + public function getMethodName() + { + return $this->methodName; + } + public function setMinDaysInTransit($minDaysInTransit) + { + $this->minDaysInTransit = $minDaysInTransit; + } + public function getMinDaysInTransit() + { + return $this->minDaysInTransit; + } +} + +class Google_Service_ShoppingContent_OrderPaymentMethod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $billingAddressType = 'Google_Service_ShoppingContent_OrderAddress'; + protected $billingAddressDataType = ''; + public $expirationMonth; + public $expirationYear; + public $lastFourDigits; + public $phoneNumber; + public $type; + + + public function setBillingAddress(Google_Service_ShoppingContent_OrderAddress $billingAddress) + { + $this->billingAddress = $billingAddress; + } + public function getBillingAddress() + { + return $this->billingAddress; + } + public function setExpirationMonth($expirationMonth) + { + $this->expirationMonth = $expirationMonth; + } + public function getExpirationMonth() + { + return $this->expirationMonth; + } + public function setExpirationYear($expirationYear) + { + $this->expirationYear = $expirationYear; + } + public function getExpirationYear() + { + return $this->expirationYear; + } + public function setLastFourDigits($lastFourDigits) + { + $this->lastFourDigits = $lastFourDigits; + } + public function getLastFourDigits() + { + return $this->lastFourDigits; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_ShoppingContent_OrderRefund extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actor; + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $creationDate; + public $reason; + public $reasonText; + + + public function setActor($actor) + { + $this->actor = $actor; + } + public function getActor() + { + return $this->actor; + } + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrderReturn extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actor; + public $creationDate; + public $quantity; + public $reason; + public $reasonText; + + + public function setActor($actor) + { + $this->actor = $actor; + } + public function getActor() + { + return $this->actor; + } + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrderShipment extends Google_Collection +{ + protected $collection_key = 'lineItems'; + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $creationDate; + public $deliveryDate; + public $id; + protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; + protected $lineItemsDataType = 'array'; + public $status; + public $trackingId; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setDeliveryDate($deliveryDate) + { + $this->deliveryDate = $deliveryDate; + } + public function getDeliveryDate() + { + return $this->deliveryDate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLineItems($lineItems) + { + $this->lineItems = $lineItems; + } + public function getLineItems() + { + return $this->lineItems; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTrackingId($trackingId) + { + $this->trackingId = $trackingId; + } + public function getTrackingId() + { + return $this->trackingId; + } +} + +class Google_Service_ShoppingContent_OrderShipmentLineItemShipment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lineItemId; + public $quantity; + + + public function setLineItemId($lineItemId) + { + $this->lineItemId = $lineItemId; + } + public function getLineItemId() + { + return $this->lineItemId; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } +} + +class Google_Service_ShoppingContent_OrdersAcknowledgeRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $operationId; + + + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } +} + +class Google_Service_ShoppingContent_OrdersAcknowledgeResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lineItemId; + public $operationId; + public $quantity; + public $reason; + public $reasonText; + + + public function setLineItemId($lineItemId) + { + $this->lineItemId = $lineItemId; + } + public function getLineItemId() + { + return $this->lineItemId; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCancelLineItemResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersCancelRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $operationId; + public $reason; + public $reasonText; + + + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCancelResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersCreateTestOrderRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $templateName; + protected $testOrderType = 'Google_Service_ShoppingContent_TestOrder'; + protected $testOrderDataType = ''; + + + public function setTemplateName($templateName) + { + $this->templateName = $templateName; + } + public function getTemplateName() + { + return $this->templateName; + } + public function setTestOrder(Google_Service_ShoppingContent_TestOrder $testOrder) + { + $this->testOrder = $testOrder; + } + public function getTestOrder() + { + return $this->testOrder; + } +} + +class Google_Service_ShoppingContent_OrdersCreateTestOrderResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $orderId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $batchId; + protected $cancelType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel'; + protected $cancelDataType = ''; + protected $cancelLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem'; + protected $cancelLineItemDataType = ''; + public $merchantId; + public $merchantOrderId; + public $method; + public $operationId; + public $orderId; + protected $refundType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund'; + protected $refundDataType = ''; + protected $returnLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem'; + protected $returnLineItemDataType = ''; + protected $shipLineItemsType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems'; + protected $shipLineItemsDataType = ''; + protected $updateShipmentType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment'; + protected $updateShipmentDataType = ''; + + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setCancel(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel $cancel) + { + $this->cancel = $cancel; + } + public function getCancel() + { + return $this->cancel; + } + public function setCancelLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem $cancelLineItem) + { + $this->cancelLineItem = $cancelLineItem; + } + public function getCancelLineItem() + { + return $this->cancelLineItem; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMerchantOrderId($merchantOrderId) + { + $this->merchantOrderId = $merchantOrderId; + } + public function getMerchantOrderId() + { + return $this->merchantOrderId; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setRefund(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund $refund) + { + $this->refund = $refund; + } + public function getRefund() + { + return $this->refund; + } + public function setReturnLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem $returnLineItem) + { + $this->returnLineItem = $returnLineItem; + } + public function getReturnLineItem() + { + return $this->returnLineItem; + } + public function setShipLineItems(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems $shipLineItems) + { + $this->shipLineItems = $shipLineItems; + } + public function getShipLineItems() + { + return $this->shipLineItems; + } + public function setUpdateShipment(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment $updateShipment) + { + $this->updateShipment = $updateShipment; + } + public function getUpdateShipment() + { + return $this->updateShipment; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $reason; + public $reasonText; + + + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lineItemId; + public $quantity; + public $reason; + public $reasonText; + + + public function setLineItemId($lineItemId) + { + $this->lineItemId = $lineItemId; + } + public function getLineItemId() + { + return $this->lineItemId; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $reason; + public $reasonText; + + + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lineItemId; + public $quantity; + public $reason; + public $reasonText; + + + public function setLineItemId($lineItemId) + { + $this->lineItemId = $lineItemId; + } + public function getLineItemId() + { + return $this->lineItemId; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems extends Google_Collection +{ + protected $collection_key = 'lineItems'; + protected $internal_gapi_mappings = array( + ); + public $carrier; + protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; + protected $lineItemsDataType = 'array'; + public $shipmentId; + public $trackingId; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setLineItems($lineItems) + { + $this->lineItems = $lineItems; + } + public function getLineItems() + { + return $this->lineItems; + } + public function setShipmentId($shipmentId) + { + $this->shipmentId = $shipmentId; + } + public function getShipmentId() + { + return $this->shipmentId; + } + public function setTrackingId($trackingId) + { + $this->trackingId = $trackingId; + } + public function getTrackingId() + { + return $this->trackingId; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $shipmentId; + public $status; + public $trackingId; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setShipmentId($shipmentId) + { + $this->shipmentId = $shipmentId; + } + public function getShipmentId() + { + return $this->shipmentId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTrackingId($trackingId) + { + $this->trackingId = $trackingId; + } + public function getTrackingId() + { + return $this->trackingId; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $executionStatus; + public $kind; + protected $orderType = 'Google_Service_ShoppingContent_Order'; + protected $orderDataType = ''; + + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrder(Google_Service_ShoppingContent_Order $order) + { + $this->order = $order; + } + public function getOrder() + { + return $this->order; + } +} + +class Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $orderType = 'Google_Service_ShoppingContent_Order'; + protected $orderDataType = ''; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrder(Google_Service_ShoppingContent_Order $order) + { + $this->order = $order; + } + public function getOrder() + { + return $this->order; + } +} + +class Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $templateType = 'Google_Service_ShoppingContent_TestOrder'; + protected $templateDataType = ''; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setTemplate(Google_Service_ShoppingContent_TestOrder $template) + { + $this->template = $template; + } + public function getTemplate() + { + return $this->template; + } +} + +class Google_Service_ShoppingContent_OrdersListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Order'; + protected $resourcesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_OrdersRefundRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $operationId; + public $reason; + public $reasonText; + + + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersRefundResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersReturnLineItemRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $lineItemId; + public $operationId; + public $quantity; + public $reason; + public $reasonText; + + + public function setLineItemId($lineItemId) + { + $this->lineItemId = $lineItemId; + } + public function getLineItemId() + { + return $this->lineItemId; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + public function getQuantity() + { + return $this->quantity; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setReasonText($reasonText) + { + $this->reasonText = $reasonText; + } + public function getReasonText() + { + return $this->reasonText; + } +} + +class Google_Service_ShoppingContent_OrdersReturnLineItemResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_Collection +{ + protected $collection_key = 'lineItems'; + protected $internal_gapi_mappings = array( + ); + public $carrier; + protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; + protected $lineItemsDataType = 'array'; + public $operationId; + public $shipmentId; + public $trackingId; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setLineItems($lineItems) + { + $this->lineItems = $lineItems; + } + public function getLineItems() + { + return $this->lineItems; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setShipmentId($shipmentId) + { + $this->shipmentId = $shipmentId; + } + public function getShipmentId() + { + return $this->shipmentId; + } + public function setTrackingId($trackingId) + { + $this->trackingId = $trackingId; + } + public function getTrackingId() + { + return $this->trackingId; + } +} + +class Google_Service_ShoppingContent_OrdersShipLineItemsResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $merchantOrderId; + public $operationId; + + + public function setMerchantOrderId($merchantOrderId) + { + $this->merchantOrderId = $merchantOrderId; + } + public function getMerchantOrderId() + { + return $this->merchantOrderId; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } +} + +class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_OrdersUpdateShipmentRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $operationId; + public $shipmentId; + public $status; + public $trackingId; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setShipmentId($shipmentId) + { + $this->shipmentId = $shipmentId; + } + public function getShipmentId() + { + return $this->shipmentId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTrackingId($trackingId) + { + $this->trackingId = $trackingId; + } + public function getTrackingId() + { + return $this->trackingId; + } +} + +class Google_Service_ShoppingContent_OrdersUpdateShipmentResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $executionStatus; + public $kind; + + + public function setExecutionStatus($executionStatus) + { + $this->executionStatus = $executionStatus; + } + public function getExecutionStatus() + { + return $this->executionStatus; + } + public function setKind($kind) + { + $this->kind = $kind; } - public function getRatio() + public function getKind() { - return $this->ratio; + return $this->kind; } } @@ -4380,6 +7237,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; public $salePriceEffectiveDate; + public $sellOnGoogleQuantity; protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; protected $shippingDataType = 'array'; protected $shippingHeightType = 'Google_Service_ShoppingContent_ProductShippingDimension'; @@ -4831,6 +7689,14 @@ public function getSalePriceEffectiveDate() { return $this->salePriceEffectiveDate; } + public function setSellOnGoogleQuantity($sellOnGoogleQuantity) + { + $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; + } + public function getSellOnGoogleQuantity() + { + return $this->sellOnGoogleQuantity; + } public function setShipping($shipping) { $this->shipping = $shipping; @@ -5924,6 +8790,365 @@ public function getResources() } } +class Google_Service_ShoppingContent_TestOrder extends Google_Collection +{ + protected $collection_key = 'lineItems'; + protected $internal_gapi_mappings = array( + ); + protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer'; + protected $customerDataType = ''; + public $kind; + protected $lineItemsType = 'Google_Service_ShoppingContent_TestOrderLineItem'; + protected $lineItemsDataType = 'array'; + protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod'; + protected $paymentMethodDataType = ''; + public $predefinedDeliveryAddress; + protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; + protected $shippingCostDataType = ''; + protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; + protected $shippingCostTaxDataType = ''; + public $shippingOption; + + + public function setCustomer(Google_Service_ShoppingContent_TestOrderCustomer $customer) + { + $this->customer = $customer; + } + public function getCustomer() + { + return $this->customer; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLineItems($lineItems) + { + $this->lineItems = $lineItems; + } + public function getLineItems() + { + return $this->lineItems; + } + public function setPaymentMethod(Google_Service_ShoppingContent_TestOrderPaymentMethod $paymentMethod) + { + $this->paymentMethod = $paymentMethod; + } + public function getPaymentMethod() + { + return $this->paymentMethod; + } + public function setPredefinedDeliveryAddress($predefinedDeliveryAddress) + { + $this->predefinedDeliveryAddress = $predefinedDeliveryAddress; + } + public function getPredefinedDeliveryAddress() + { + return $this->predefinedDeliveryAddress; + } + public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost) + { + $this->shippingCost = $shippingCost; + } + public function getShippingCost() + { + return $this->shippingCost; + } + public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax) + { + $this->shippingCostTax = $shippingCostTax; + } + public function getShippingCostTax() + { + return $this->shippingCostTax; + } + public function setShippingOption($shippingOption) + { + $this->shippingOption = $shippingOption; + } + public function getShippingOption() + { + return $this->shippingOption; + } +} + +class Google_Service_ShoppingContent_TestOrderCustomer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $email; + public $explicitMarketingPreference; + public $fullName; + + + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setExplicitMarketingPreference($explicitMarketingPreference) + { + $this->explicitMarketingPreference = $explicitMarketingPreference; + } + public function getExplicitMarketingPreference() + { + return $this->explicitMarketingPreference; + } + public function setFullName($fullName) + { + $this->fullName = $fullName; + } + public function getFullName() + { + return $this->fullName; + } +} + +class Google_Service_ShoppingContent_TestOrderLineItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $productType = 'Google_Service_ShoppingContent_TestOrderLineItemProduct'; + protected $productDataType = ''; + public $quantityOrdered; + protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo'; + protected $returnInfoDataType = ''; + protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails'; + protected $shippingDetailsDataType = ''; + protected $unitTaxType = 'Google_Service_ShoppingContent_Price'; + protected $unitTaxDataType = ''; + + + public function setProduct(Google_Service_ShoppingContent_TestOrderLineItemProduct $product) + { + $this->product = $product; + } + public function getProduct() + { + return $this->product; + } + public function setQuantityOrdered($quantityOrdered) + { + $this->quantityOrdered = $quantityOrdered; + } + public function getQuantityOrdered() + { + return $this->quantityOrdered; + } + public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo) + { + $this->returnInfo = $returnInfo; + } + public function getReturnInfo() + { + return $this->returnInfo; + } + public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails) + { + $this->shippingDetails = $shippingDetails; + } + public function getShippingDetails() + { + return $this->shippingDetails; + } + public function setUnitTax(Google_Service_ShoppingContent_Price $unitTax) + { + $this->unitTax = $unitTax; + } + public function getUnitTax() + { + return $this->unitTax; + } +} + +class Google_Service_ShoppingContent_TestOrderLineItemProduct extends Google_Collection +{ + protected $collection_key = 'variantAttributes'; + protected $internal_gapi_mappings = array( + ); + public $brand; + public $channel; + public $condition; + public $contentLanguage; + public $gtin; + public $imageLink; + public $itemGroupId; + public $mpn; + public $offerId; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $targetCountry; + public $title; + protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute'; + protected $variantAttributesDataType = 'array'; + + + public function setBrand($brand) + { + $this->brand = $brand; + } + public function getBrand() + { + return $this->brand; + } + public function setChannel($channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } + public function setCondition($condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + public function getContentLanguage() + { + return $this->contentLanguage; + } + public function setGtin($gtin) + { + $this->gtin = $gtin; + } + public function getGtin() + { + return $this->gtin; + } + public function setImageLink($imageLink) + { + $this->imageLink = $imageLink; + } + public function getImageLink() + { + return $this->imageLink; + } + public function setItemGroupId($itemGroupId) + { + $this->itemGroupId = $itemGroupId; + } + public function getItemGroupId() + { + return $this->itemGroupId; + } + public function setMpn($mpn) + { + $this->mpn = $mpn; + } + public function getMpn() + { + return $this->mpn; + } + public function setOfferId($offerId) + { + $this->offerId = $offerId; + } + public function getOfferId() + { + return $this->offerId; + } + public function setPrice(Google_Service_ShoppingContent_Price $price) + { + $this->price = $price; + } + public function getPrice() + { + return $this->price; + } + public function setTargetCountry($targetCountry) + { + $this->targetCountry = $targetCountry; + } + public function getTargetCountry() + { + return $this->targetCountry; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setVariantAttributes($variantAttributes) + { + $this->variantAttributes = $variantAttributes; + } + public function getVariantAttributes() + { + return $this->variantAttributes; + } +} + +class Google_Service_ShoppingContent_TestOrderPaymentMethod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expirationMonth; + public $expirationYear; + public $lastFourDigits; + public $predefinedBillingAddress; + public $type; + + + public function setExpirationMonth($expirationMonth) + { + $this->expirationMonth = $expirationMonth; + } + public function getExpirationMonth() + { + return $this->expirationMonth; + } + public function setExpirationYear($expirationYear) + { + $this->expirationYear = $expirationYear; + } + public function getExpirationYear() + { + return $this->expirationYear; + } + public function setLastFourDigits($lastFourDigits) + { + $this->lastFourDigits = $lastFourDigits; + } + public function getLastFourDigits() + { + return $this->lastFourDigits; + } + public function setPredefinedBillingAddress($predefinedBillingAddress) + { + $this->predefinedBillingAddress = $predefinedBillingAddress; + } + public function getPredefinedBillingAddress() + { + return $this->predefinedBillingAddress; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + class Google_Service_ShoppingContent_Weight extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php index ca6ccb263..01d93007e 100644 --- a/src/Google/Service/Storage.php +++ b/src/Google/Service/Storage.php @@ -33,6 +33,9 @@ class Google_Service_Storage extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** Manage your data and permissions in Google Cloud Storage. */ const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; @@ -1453,7 +1456,8 @@ class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Servic * object. (objectAccessControls.delete) * * @param string $bucket Name of a bucket. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. @@ -1474,7 +1478,8 @@ public function delete($bucket, $object, $entity, $optParams = array()) * (objectAccessControls.get) * * @param string $bucket Name of a bucket. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. @@ -1496,7 +1501,8 @@ public function get($bucket, $object, $entity, $optParams = array()) * (objectAccessControls.insert) * * @param string $bucket Name of a bucket. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param Google_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * @@ -1516,7 +1522,8 @@ public function insert($bucket, $object, Google_Service_Storage_ObjectAccessCont * (objectAccessControls.listObjectAccessControls) * * @param string $bucket Name of a bucket. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this @@ -1535,7 +1542,8 @@ public function listObjectAccessControls($bucket, $object, $optParams = array()) * semantics. (objectAccessControls.patch) * * @param string $bucket Name of a bucket. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. @@ -1557,7 +1565,8 @@ public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAc * 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 $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. @@ -1593,7 +1602,9 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * * @param string $destinationBucket Name of the bucket in which to store the new * object. - * @param string $destinationObject Name of the new object. + * @param string $destinationObject Name of the new object. For information + * about how to URL encode object names to be path safe, see Encoding URI Path + * Parts. * @param Google_ComposeRequest $postBody * @param array $optParams Optional parameters. * @@ -1618,9 +1629,12 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * * @param string $sourceBucket Name of the bucket in which to find the source * object. - * @param string $sourceObject Name of the source object. + * @param string $sourceObject Name of the source object. For information about + * how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param string $destinationBucket Name of the bucket in which to store the new - * object. Overrides the provided object metadata's bucket value, if any. + * object. Overrides the provided object metadata's bucket value, if any.For + * information about how to URL encode object names to be path safe, see + * Encoding URI Path Parts. * @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. @@ -1670,7 +1684,8 @@ public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinat * (objects.delete) * * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * * @opt_param string ifGenerationNotMatch Makes the operation conditional on @@ -1695,7 +1710,8 @@ public function delete($bucket, $object, $optParams = array()) * Retrieves an object or its metadata. (objects.get) * * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * * @opt_param string ifGenerationNotMatch Makes the operation conditional on @@ -1746,7 +1762,8 @@ public function get($bucket, $object, $optParams = array()) * 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. + * any. For information about how to URL encode object names to be path safe, + * see Encoding URI Path Parts. * @return Google_Service_Storage_StorageObject */ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1791,7 +1808,8 @@ public function listObjects($bucket, $optParams = array()) * (objects.patch) * * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * @@ -1823,12 +1841,14 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * * @param string $sourceBucket Name of the bucket in which to find the source * object. - * @param string $sourceObject Name of the source object. + * @param string $sourceObject Name of the source object. For information about + * how to URL encode object names to be path safe, see Encoding URI Path Parts. * @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. + * name value, if any. For information about how to URL encode object names to + * be path safe, see Encoding URI Path Parts. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * @@ -1885,7 +1905,8 @@ public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $desti * Updates an object's metadata. (objects.update) * * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. + * @param string $object Name of the object. For information about how to URL + * encode object names to be path safe, see Encoding URI Path Parts. * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * @@ -1973,6 +1994,7 @@ class Google_Service_Storage_Bucket extends Google_Collection public $selfLink; public $storageClass; public $timeCreated; + public $updated; protected $versioningType = 'Google_Service_Storage_BucketVersioning'; protected $versioningDataType = ''; protected $websiteType = 'Google_Service_Storage_BucketWebsite'; @@ -2107,6 +2129,14 @@ public function getTimeCreated() { return $this->timeCreated; } + public function setUpdated($updated) + { + $this->updated = $updated; + } + public function getUpdated() + { + return $this->updated; + } public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) { $this->versioning = $versioning; @@ -3082,6 +3112,7 @@ class Google_Service_Storage_StorageObject extends Google_Collection public $selfLink; public $size; public $storageClass; + public $timeCreated; public $timeDeleted; public $updated; @@ -3262,6 +3293,14 @@ public function getStorageClass() { return $this->storageClass; } + public function setTimeCreated($timeCreated) + { + $this->timeCreated = $timeCreated; + } + public function getTimeCreated() + { + return $this->timeCreated; + } public function setTimeDeleted($timeDeleted) { $this->timeDeleted = $timeDeleted; diff --git a/src/Google/Service/Storagetransfer.php b/src/Google/Service/Storagetransfer.php new file mode 100644 index 000000000..9141d5c04 --- /dev/null +++ b/src/Google/Service/Storagetransfer.php @@ -0,0 +1,1475 @@ + + * Transfers data from external data sources to a Google Cloud Storage bucket or + * between Google Cloud Storage buckets.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Storagetransfer extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $googleServiceAccounts; + public $transferJobs; + public $transferOperations; + public $v1; + + + /** + * Constructs the internal representation of the Storagetransfer service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://storagetransfer.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'storagetransfer'; + + $this->googleServiceAccounts = new Google_Service_Storagetransfer_GoogleServiceAccounts_Resource( + $this, + $this->serviceName, + 'googleServiceAccounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/googleServiceAccounts/{projectId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->transferJobs = new Google_Service_Storagetransfer_TransferJobs_Resource( + $this, + $this->serviceName, + 'transferJobs', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/transferJobs', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => 'v1/{+jobName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'jobName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/transferJobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+jobName}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'jobName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->transferOperations = new Google_Service_Storagetransfer_TransferOperations_Resource( + $this, + $this->serviceName, + 'transferOperations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'pause' => array( + 'path' => 'v1/{+name}:pause', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resume' => array( + 'path' => 'v1/{+name}:resume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->v1 = new Google_Service_Storagetransfer_V1_Resource( + $this, + $this->serviceName, + 'v1', + array( + 'methods' => array( + 'getGoogleServiceAccount' => array( + 'path' => 'v1:getGoogleServiceAccount', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "googleServiceAccounts" collection of methods. + * Typical usage is: + * + * $storagetransferService = new Google_Service_Storagetransfer(...); + * $googleServiceAccounts = $storagetransferService->googleServiceAccounts; + * + */ +class Google_Service_Storagetransfer_GoogleServiceAccounts_Resource extends Google_Service_Resource +{ + + /** + * Returns the Google service account that is used by Storage Transfer Service + * to access buckets in the project where transfers run or in other projects. + * Each Google service account is associated with one Google Developers Console + * project. Users should add this service account to the Google Cloud Storage + * bucket ACLs to grant access to Storage Transfer Service. This service account + * is created and owned by Storage Transfer Service and can only be used by + * Storage Transfer Service. (googleServiceAccounts.get) + * + * @param string $projectId The ID of the Google Developers Console project that + * the Google service account is associated with. Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_GoogleServiceAccount + */ + public function get($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount"); + } +} + +/** + * The "transferJobs" collection of methods. + * Typical usage is: + * + * $storagetransferService = new Google_Service_Storagetransfer(...); + * $transferJobs = $storagetransferService->transferJobs; + * + */ +class Google_Service_Storagetransfer_TransferJobs_Resource extends Google_Service_Resource +{ + + /** + * Creates a transfer job that runs periodically. (transferJobs.create) + * + * @param Google_TransferJob $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_TransferJob + */ + public function create(Google_Service_Storagetransfer_TransferJob $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Storagetransfer_TransferJob"); + } + + /** + * Gets a transfer job. (transferJobs.get) + * + * @param string $jobName The job to get. Required. + * @param array $optParams Optional parameters. + * + * @opt_param string projectId The ID of the Google Developers Console project + * that owns the job. Required. + * @return Google_Service_Storagetransfer_TransferJob + */ + public function get($jobName, $optParams = array()) + { + $params = array('jobName' => $jobName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storagetransfer_TransferJob"); + } + + /** + * Lists transfer jobs. (transferJobs.listTransferJobs) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter A list of query parameters specified as JSON text in + * the form of {"`project_id`":"my_project_id", + * "`job_names`":["jobid1","jobid2",...], + * "`job_statuses`":["status1","status2",...]}. Since `job_names` and + * `job_statuses` support multiple values, their values must be specified with + * array notation. `project_id` is required. `job_names` and `job_statuses` are + * optional. The valid values for `job_statuses` are case-insensitive: + * `ENABLED`, `DISABLED`, and `DELETED`. + * @opt_param string pageToken The list page token. + * @opt_param int pageSize The list page size. The max allowed value is 256. + * @return Google_Service_Storagetransfer_ListTransferJobsResponse + */ + public function listTransferJobs($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storagetransfer_ListTransferJobsResponse"); + } + + /** + * Updates a transfer job. Updating a job's transfer spec does not affect + * transfer operations that are running already. Updating the scheduling of a + * job is not allowed. (transferJobs.patch) + * + * @param string $jobName The name of job to update. Required. + * @param Google_UpdateTransferJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_TransferJob + */ + public function patch($jobName, Google_Service_Storagetransfer_UpdateTransferJobRequest $postBody, $optParams = array()) + { + $params = array('jobName' => $jobName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storagetransfer_TransferJob"); + } +} + +/** + * The "transferOperations" collection of methods. + * Typical usage is: + * + * $storagetransferService = new Google_Service_Storagetransfer(...); + * $transferOperations = $storagetransferService->transferOperations; + * + */ +class Google_Service_Storagetransfer_TransferOperations_Resource extends Google_Service_Resource +{ + + /** + * Cancels a transfer. Use the get method to check whether the cancellation + * succeeded or whether the operation completed despite cancellation. + * (transferOperations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_Empty + */ + public function cancel($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Storagetransfer_Empty"); + } + + /** + * This method is not supported and the server returns `UNIMPLEMENTED`. + * (transferOperations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_Empty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Storagetransfer_Empty"); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (transferOperations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storagetransfer_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the + * `name` binding below allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. + * (transferOperations.listTransferOperations) + * + * @param string $name The value `transferOperations`. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_Storagetransfer_ListOperationsResponse + */ + public function listTransferOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storagetransfer_ListOperationsResponse"); + } + + /** + * Pauses a transfer operation. (transferOperations.pause) + * + * @param string $name The name of the transfer operation. Required. + * @param Google_PauseTransferOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_Empty + */ + public function pause($name, Google_Service_Storagetransfer_PauseTransferOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pause', array($params), "Google_Service_Storagetransfer_Empty"); + } + + /** + * Resumes a transfer operation that is paused. (transferOperations.resume) + * + * @param string $name The name of the transfer operation. Required. + * @param Google_ResumeTransferOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storagetransfer_Empty + */ + public function resume($name, Google_Service_Storagetransfer_ResumeTransferOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resume', array($params), "Google_Service_Storagetransfer_Empty"); + } +} + +/** + * The "v1" collection of methods. + * Typical usage is: + * + * $storagetransferService = new Google_Service_Storagetransfer(...); + * $v1 = $storagetransferService->v1; + * + */ +class Google_Service_Storagetransfer_V1_Resource extends Google_Service_Resource +{ + + /** + * Returns the Google service account that is used by Storage Transfer Service + * to access buckets in the project where transfers run or in other projects. + * Each Google service account is associated with one Google Developers Console + * project. Users should add this service account to the Google Cloud Storage + * bucket ACLs to grant access to Storage Transfer Service. This service account + * is created and owned by Storage Transfer Service and can only be used by + * Storage Transfer Service. (v1.getGoogleServiceAccount) + * + * @param array $optParams Optional parameters. + * + * @opt_param string projectId The ID of the Google Developers Console project + * that the Google service account is associated with. Required. + * @return Google_Service_Storagetransfer_GoogleServiceAccount + */ + public function getGoogleServiceAccount($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getGoogleServiceAccount', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount"); + } +} + + + + +class Google_Service_Storagetransfer_AwsAccessKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accessKeyId; + public $secretAccessKey; + + + public function setAccessKeyId($accessKeyId) + { + $this->accessKeyId = $accessKeyId; + } + public function getAccessKeyId() + { + return $this->accessKeyId; + } + public function setSecretAccessKey($secretAccessKey) + { + $this->secretAccessKey = $secretAccessKey; + } + public function getSecretAccessKey() + { + return $this->secretAccessKey; + } +} + +class Google_Service_Storagetransfer_AwsS3Data extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $awsAccessKeyType = 'Google_Service_Storagetransfer_AwsAccessKey'; + protected $awsAccessKeyDataType = ''; + public $bucketName; + + + public function setAwsAccessKey(Google_Service_Storagetransfer_AwsAccessKey $awsAccessKey) + { + $this->awsAccessKey = $awsAccessKey; + } + public function getAwsAccessKey() + { + return $this->awsAccessKey; + } + public function setBucketName($bucketName) + { + $this->bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } +} + +class Google_Service_Storagetransfer_Date extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $day; + public $month; + public $year; + + + public function setDay($day) + { + $this->day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} + +class Google_Service_Storagetransfer_Empty extends Google_Model +{ +} + +class Google_Service_Storagetransfer_ErrorLogEntry extends Google_Collection +{ + protected $collection_key = 'errorDetails'; + protected $internal_gapi_mappings = array( + ); + public $errorDetails; + public $url; + + + public function setErrorDetails($errorDetails) + { + $this->errorDetails = $errorDetails; + } + public function getErrorDetails() + { + return $this->errorDetails; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Storagetransfer_ErrorSummary extends Google_Collection +{ + protected $collection_key = 'errorLogEntries'; + protected $internal_gapi_mappings = array( + ); + public $errorCode; + public $errorCount; + protected $errorLogEntriesType = 'Google_Service_Storagetransfer_ErrorLogEntry'; + protected $errorLogEntriesDataType = 'array'; + + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + public function getErrorCode() + { + return $this->errorCode; + } + public function setErrorCount($errorCount) + { + $this->errorCount = $errorCount; + } + public function getErrorCount() + { + return $this->errorCount; + } + public function setErrorLogEntries($errorLogEntries) + { + $this->errorLogEntries = $errorLogEntries; + } + public function getErrorLogEntries() + { + return $this->errorLogEntries; + } +} + +class Google_Service_Storagetransfer_GcsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bucketName; + + + public function setBucketName($bucketName) + { + $this->bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } +} + +class Google_Service_Storagetransfer_GoogleServiceAccount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountEmail; + + + public function setAccountEmail($accountEmail) + { + $this->accountEmail = $accountEmail; + } + public function getAccountEmail() + { + return $this->accountEmail; + } +} + +class Google_Service_Storagetransfer_HttpData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $listUrl; + + + public function setListUrl($listUrl) + { + $this->listUrl = $listUrl; + } + public function getListUrl() + { + return $this->listUrl; + } +} + +class Google_Service_Storagetransfer_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Storagetransfer_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Storagetransfer_ListTransferJobsResponse extends Google_Collection +{ + protected $collection_key = 'transferJobs'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $transferJobsType = 'Google_Service_Storagetransfer_TransferJob'; + protected $transferJobsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTransferJobs($transferJobs) + { + $this->transferJobs = $transferJobs; + } + public function getTransferJobs() + { + return $this->transferJobs; + } +} + +class Google_Service_Storagetransfer_ObjectConditions extends Google_Collection +{ + protected $collection_key = 'includePrefixes'; + protected $internal_gapi_mappings = array( + ); + public $excludePrefixes; + public $includePrefixes; + public $maxTimeElapsedSinceLastModification; + public $minTimeElapsedSinceLastModification; + + + public function setExcludePrefixes($excludePrefixes) + { + $this->excludePrefixes = $excludePrefixes; + } + public function getExcludePrefixes() + { + return $this->excludePrefixes; + } + public function setIncludePrefixes($includePrefixes) + { + $this->includePrefixes = $includePrefixes; + } + public function getIncludePrefixes() + { + return $this->includePrefixes; + } + public function setMaxTimeElapsedSinceLastModification($maxTimeElapsedSinceLastModification) + { + $this->maxTimeElapsedSinceLastModification = $maxTimeElapsedSinceLastModification; + } + public function getMaxTimeElapsedSinceLastModification() + { + return $this->maxTimeElapsedSinceLastModification; + } + public function setMinTimeElapsedSinceLastModification($minTimeElapsedSinceLastModification) + { + $this->minTimeElapsedSinceLastModification = $minTimeElapsedSinceLastModification; + } + public function getMinTimeElapsedSinceLastModification() + { + return $this->minTimeElapsedSinceLastModification; + } +} + +class Google_Service_Storagetransfer_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Storagetransfer_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Storagetransfer_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Storagetransfer_OperationMetadata extends Google_Model +{ +} + +class Google_Service_Storagetransfer_OperationResponse extends Google_Model +{ +} + +class Google_Service_Storagetransfer_PauseTransferOperationRequest extends Google_Model +{ +} + +class Google_Service_Storagetransfer_ResumeTransferOperationRequest extends Google_Model +{ +} + +class Google_Service_Storagetransfer_Schedule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $scheduleEndDateType = 'Google_Service_Storagetransfer_Date'; + protected $scheduleEndDateDataType = ''; + protected $scheduleStartDateType = 'Google_Service_Storagetransfer_Date'; + protected $scheduleStartDateDataType = ''; + protected $startTimeOfDayType = 'Google_Service_Storagetransfer_TimeOfDay'; + protected $startTimeOfDayDataType = ''; + + + public function setScheduleEndDate(Google_Service_Storagetransfer_Date $scheduleEndDate) + { + $this->scheduleEndDate = $scheduleEndDate; + } + public function getScheduleEndDate() + { + return $this->scheduleEndDate; + } + public function setScheduleStartDate(Google_Service_Storagetransfer_Date $scheduleStartDate) + { + $this->scheduleStartDate = $scheduleStartDate; + } + public function getScheduleStartDate() + { + return $this->scheduleStartDate; + } + public function setStartTimeOfDay(Google_Service_Storagetransfer_TimeOfDay $startTimeOfDay) + { + $this->startTimeOfDay = $startTimeOfDay; + } + public function getStartTimeOfDay() + { + return $this->startTimeOfDay; + } +} + +class Google_Service_Storagetransfer_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Storagetransfer_StatusDetails extends Google_Model +{ +} + +class Google_Service_Storagetransfer_TimeOfDay extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hours; + public $minutes; + public $nanos; + public $seconds; + + + public function setHours($hours) + { + $this->hours = $hours; + } + public function getHours() + { + return $this->hours; + } + public function setMinutes($minutes) + { + $this->minutes = $minutes; + } + public function getMinutes() + { + return $this->minutes; + } + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + public function getNanos() + { + return $this->nanos; + } + public function setSeconds($seconds) + { + $this->seconds = $seconds; + } + public function getSeconds() + { + return $this->seconds; + } +} + +class Google_Service_Storagetransfer_TransferCounters extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bytesCopiedToSink; + public $bytesDeletedFromSink; + public $bytesDeletedFromSource; + public $bytesFailedToDeleteFromSink; + public $bytesFoundFromSource; + public $bytesFoundOnlyFromSink; + public $bytesFromSourceFailed; + public $bytesFromSourceSkippedBySync; + public $objectsCopiedToSink; + public $objectsDeletedFromSink; + public $objectsDeletedFromSource; + public $objectsFailedToDeleteFromSink; + public $objectsFoundFromSource; + public $objectsFoundOnlyFromSink; + public $objectsFromSourceFailed; + public $objectsFromSourceSkippedBySync; + + + public function setBytesCopiedToSink($bytesCopiedToSink) + { + $this->bytesCopiedToSink = $bytesCopiedToSink; + } + public function getBytesCopiedToSink() + { + return $this->bytesCopiedToSink; + } + public function setBytesDeletedFromSink($bytesDeletedFromSink) + { + $this->bytesDeletedFromSink = $bytesDeletedFromSink; + } + public function getBytesDeletedFromSink() + { + return $this->bytesDeletedFromSink; + } + public function setBytesDeletedFromSource($bytesDeletedFromSource) + { + $this->bytesDeletedFromSource = $bytesDeletedFromSource; + } + public function getBytesDeletedFromSource() + { + return $this->bytesDeletedFromSource; + } + public function setBytesFailedToDeleteFromSink($bytesFailedToDeleteFromSink) + { + $this->bytesFailedToDeleteFromSink = $bytesFailedToDeleteFromSink; + } + public function getBytesFailedToDeleteFromSink() + { + return $this->bytesFailedToDeleteFromSink; + } + public function setBytesFoundFromSource($bytesFoundFromSource) + { + $this->bytesFoundFromSource = $bytesFoundFromSource; + } + public function getBytesFoundFromSource() + { + return $this->bytesFoundFromSource; + } + public function setBytesFoundOnlyFromSink($bytesFoundOnlyFromSink) + { + $this->bytesFoundOnlyFromSink = $bytesFoundOnlyFromSink; + } + public function getBytesFoundOnlyFromSink() + { + return $this->bytesFoundOnlyFromSink; + } + public function setBytesFromSourceFailed($bytesFromSourceFailed) + { + $this->bytesFromSourceFailed = $bytesFromSourceFailed; + } + public function getBytesFromSourceFailed() + { + return $this->bytesFromSourceFailed; + } + public function setBytesFromSourceSkippedBySync($bytesFromSourceSkippedBySync) + { + $this->bytesFromSourceSkippedBySync = $bytesFromSourceSkippedBySync; + } + public function getBytesFromSourceSkippedBySync() + { + return $this->bytesFromSourceSkippedBySync; + } + public function setObjectsCopiedToSink($objectsCopiedToSink) + { + $this->objectsCopiedToSink = $objectsCopiedToSink; + } + public function getObjectsCopiedToSink() + { + return $this->objectsCopiedToSink; + } + public function setObjectsDeletedFromSink($objectsDeletedFromSink) + { + $this->objectsDeletedFromSink = $objectsDeletedFromSink; + } + public function getObjectsDeletedFromSink() + { + return $this->objectsDeletedFromSink; + } + public function setObjectsDeletedFromSource($objectsDeletedFromSource) + { + $this->objectsDeletedFromSource = $objectsDeletedFromSource; + } + public function getObjectsDeletedFromSource() + { + return $this->objectsDeletedFromSource; + } + public function setObjectsFailedToDeleteFromSink($objectsFailedToDeleteFromSink) + { + $this->objectsFailedToDeleteFromSink = $objectsFailedToDeleteFromSink; + } + public function getObjectsFailedToDeleteFromSink() + { + return $this->objectsFailedToDeleteFromSink; + } + public function setObjectsFoundFromSource($objectsFoundFromSource) + { + $this->objectsFoundFromSource = $objectsFoundFromSource; + } + public function getObjectsFoundFromSource() + { + return $this->objectsFoundFromSource; + } + public function setObjectsFoundOnlyFromSink($objectsFoundOnlyFromSink) + { + $this->objectsFoundOnlyFromSink = $objectsFoundOnlyFromSink; + } + public function getObjectsFoundOnlyFromSink() + { + return $this->objectsFoundOnlyFromSink; + } + public function setObjectsFromSourceFailed($objectsFromSourceFailed) + { + $this->objectsFromSourceFailed = $objectsFromSourceFailed; + } + public function getObjectsFromSourceFailed() + { + return $this->objectsFromSourceFailed; + } + public function setObjectsFromSourceSkippedBySync($objectsFromSourceSkippedBySync) + { + $this->objectsFromSourceSkippedBySync = $objectsFromSourceSkippedBySync; + } + public function getObjectsFromSourceSkippedBySync() + { + return $this->objectsFromSourceSkippedBySync; + } +} + +class Google_Service_Storagetransfer_TransferJob extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creationTime; + public $deletionTime; + public $description; + public $lastModificationTime; + public $name; + public $projectId; + protected $scheduleType = 'Google_Service_Storagetransfer_Schedule'; + protected $scheduleDataType = ''; + public $status; + protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec'; + protected $transferSpecDataType = ''; + + + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setDeletionTime($deletionTime) + { + $this->deletionTime = $deletionTime; + } + public function getDeletionTime() + { + return $this->deletionTime; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLastModificationTime($lastModificationTime) + { + $this->lastModificationTime = $lastModificationTime; + } + public function getLastModificationTime() + { + return $this->lastModificationTime; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSchedule(Google_Service_Storagetransfer_Schedule $schedule) + { + $this->schedule = $schedule; + } + public function getSchedule() + { + return $this->schedule; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec) + { + $this->transferSpec = $transferSpec; + } + public function getTransferSpec() + { + return $this->transferSpec; + } +} + +class Google_Service_Storagetransfer_TransferOperation extends Google_Collection +{ + protected $collection_key = 'errorBreakdowns'; + protected $internal_gapi_mappings = array( + ); + protected $countersType = 'Google_Service_Storagetransfer_TransferCounters'; + protected $countersDataType = ''; + public $endTime; + protected $errorBreakdownsType = 'Google_Service_Storagetransfer_ErrorSummary'; + protected $errorBreakdownsDataType = 'array'; + public $name; + public $projectId; + public $startTime; + public $status; + public $transferJobName; + protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec'; + protected $transferSpecDataType = ''; + + + public function setCounters(Google_Service_Storagetransfer_TransferCounters $counters) + { + $this->counters = $counters; + } + public function getCounters() + { + return $this->counters; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setErrorBreakdowns($errorBreakdowns) + { + $this->errorBreakdowns = $errorBreakdowns; + } + public function getErrorBreakdowns() + { + return $this->errorBreakdowns; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + 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 setTransferJobName($transferJobName) + { + $this->transferJobName = $transferJobName; + } + public function getTransferJobName() + { + return $this->transferJobName; + } + public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec) + { + $this->transferSpec = $transferSpec; + } + public function getTransferSpec() + { + return $this->transferSpec; + } +} + +class Google_Service_Storagetransfer_TransferOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deleteObjectsFromSourceAfterTransfer; + public $deleteObjectsUniqueInSink; + public $overwriteObjectsAlreadyExistingInSink; + + + public function setDeleteObjectsFromSourceAfterTransfer($deleteObjectsFromSourceAfterTransfer) + { + $this->deleteObjectsFromSourceAfterTransfer = $deleteObjectsFromSourceAfterTransfer; + } + public function getDeleteObjectsFromSourceAfterTransfer() + { + return $this->deleteObjectsFromSourceAfterTransfer; + } + public function setDeleteObjectsUniqueInSink($deleteObjectsUniqueInSink) + { + $this->deleteObjectsUniqueInSink = $deleteObjectsUniqueInSink; + } + public function getDeleteObjectsUniqueInSink() + { + return $this->deleteObjectsUniqueInSink; + } + public function setOverwriteObjectsAlreadyExistingInSink($overwriteObjectsAlreadyExistingInSink) + { + $this->overwriteObjectsAlreadyExistingInSink = $overwriteObjectsAlreadyExistingInSink; + } + public function getOverwriteObjectsAlreadyExistingInSink() + { + return $this->overwriteObjectsAlreadyExistingInSink; + } +} + +class Google_Service_Storagetransfer_TransferSpec extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $awsS3DataSourceType = 'Google_Service_Storagetransfer_AwsS3Data'; + protected $awsS3DataSourceDataType = ''; + protected $gcsDataSinkType = 'Google_Service_Storagetransfer_GcsData'; + protected $gcsDataSinkDataType = ''; + protected $gcsDataSourceType = 'Google_Service_Storagetransfer_GcsData'; + protected $gcsDataSourceDataType = ''; + protected $httpDataSourceType = 'Google_Service_Storagetransfer_HttpData'; + protected $httpDataSourceDataType = ''; + protected $objectConditionsType = 'Google_Service_Storagetransfer_ObjectConditions'; + protected $objectConditionsDataType = ''; + protected $transferOptionsType = 'Google_Service_Storagetransfer_TransferOptions'; + protected $transferOptionsDataType = ''; + + + public function setAwsS3DataSource(Google_Service_Storagetransfer_AwsS3Data $awsS3DataSource) + { + $this->awsS3DataSource = $awsS3DataSource; + } + public function getAwsS3DataSource() + { + return $this->awsS3DataSource; + } + public function setGcsDataSink(Google_Service_Storagetransfer_GcsData $gcsDataSink) + { + $this->gcsDataSink = $gcsDataSink; + } + public function getGcsDataSink() + { + return $this->gcsDataSink; + } + public function setGcsDataSource(Google_Service_Storagetransfer_GcsData $gcsDataSource) + { + $this->gcsDataSource = $gcsDataSource; + } + public function getGcsDataSource() + { + return $this->gcsDataSource; + } + public function setHttpDataSource(Google_Service_Storagetransfer_HttpData $httpDataSource) + { + $this->httpDataSource = $httpDataSource; + } + public function getHttpDataSource() + { + return $this->httpDataSource; + } + public function setObjectConditions(Google_Service_Storagetransfer_ObjectConditions $objectConditions) + { + $this->objectConditions = $objectConditions; + } + public function getObjectConditions() + { + return $this->objectConditions; + } + public function setTransferOptions(Google_Service_Storagetransfer_TransferOptions $transferOptions) + { + $this->transferOptions = $transferOptions; + } + public function getTransferOptions() + { + return $this->transferOptions; + } +} + +class Google_Service_Storagetransfer_UpdateTransferJobRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $projectId; + protected $transferJobType = 'Google_Service_Storagetransfer_TransferJob'; + protected $transferJobDataType = ''; + public $updateTransferJobFieldMask; + + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setTransferJob(Google_Service_Storagetransfer_TransferJob $transferJob) + { + $this->transferJob = $transferJob; + } + public function getTransferJob() + { + return $this->transferJob; + } + public function setUpdateTransferJobFieldMask($updateTransferJobFieldMask) + { + $this->updateTransferJobFieldMask = $updateTransferJobFieldMask; + } + public function getUpdateTransferJobFieldMask() + { + return $this->updateTransferJobFieldMask; + } +} diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index ebc9228ea..d588e10cf 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -54,8 +54,9 @@ class Google_Service_TagManager extends Google_Service public $accounts; public $accounts_containers; - public $accounts_containers_macros; - public $accounts_containers_rules; + public $accounts_containers_folders; + public $accounts_containers_folders_entities; + public $accounts_containers_move_folders; public $accounts_containers_tags; public $accounts_containers_triggers; public $accounts_containers_variables; @@ -193,14 +194,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->accounts_containers_macros = new Google_Service_TagManager_AccountsContainersMacros_Resource( + $this->accounts_containers_folders = new Google_Service_TagManager_AccountsContainersFolders_Resource( $this, $this->serviceName, - 'macros', + 'folders', array( 'methods' => array( 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'path' => 'accounts/{accountId}/containers/{containerId}/folders', 'httpMethod' => 'POST', 'parameters' => array( 'accountId' => array( @@ -215,7 +216,7 @@ public function __construct(Google_Client $client) ), ), ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'accountId' => array( @@ -228,14 +229,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'macroId' => array( + 'folderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', 'httpMethod' => 'GET', 'parameters' => array( 'accountId' => array( @@ -248,14 +249,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'macroId' => array( + 'folderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros', + 'path' => 'accounts/{accountId}/containers/{containerId}/folders', 'httpMethod' => 'GET', 'parameters' => array( 'accountId' => array( @@ -270,7 +271,7 @@ public function __construct(Google_Client $client) ), ), ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/macros/{macroId}', + 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', 'httpMethod' => 'PUT', 'parameters' => array( 'accountId' => array( @@ -283,7 +284,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'macroId' => array( + 'folderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -297,49 +298,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->accounts_containers_rules = new Google_Service_TagManager_AccountsContainersRules_Resource( + $this->accounts_containers_folders_entities = new Google_Service_TagManager_AccountsContainersFoldersEntities_Resource( $this, $this->serviceName, - 'rules', + 'entities', array( 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', + 'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', 'httpMethod' => 'GET', 'parameters' => array( 'accountId' => array( @@ -352,15 +318,25 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ruleId' => array( + 'folderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules', - 'httpMethod' => 'GET', + ), + ) + ) + ); + $this->accounts_containers_move_folders = new Google_Service_TagManager_AccountsContainersMoveFolders_Resource( + $this, + $this->serviceName, + 'move_folders', + array( + 'methods' => array( + 'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', + 'httpMethod' => 'PUT', 'parameters' => array( 'accountId' => array( 'location' => 'path', @@ -372,29 +348,25 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( + 'folderId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'containerId' => array( - 'location' => 'path', + 'variableId' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + 'repeated' => true, ), - 'ruleId' => array( - 'location' => 'path', + 'tagId' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + 'repeated' => true, ), - 'fingerprint' => array( + 'triggerId' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ), @@ -1112,189 +1084,155 @@ public function update($accountId, $containerId, Google_Service_TagManager_Conta } /** - * The "macros" collection of methods. + * The "folders" collection of methods. * Typical usage is: * * $tagmanagerService = new Google_Service_TagManager(...); - * $macros = $tagmanagerService->macros; + * $folders = $tagmanagerService->folders; * */ -class Google_Service_TagManager_AccountsContainersMacros_Resource extends Google_Service_Resource +class Google_Service_TagManager_AccountsContainersFolders_Resource extends Google_Service_Resource { /** - * Creates a GTM Macro. (macros.create) + * Creates a GTM Folder. (folders.create) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param Google_Macro $postBody + * @param Google_Folder $postBody * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Macro + * @return Google_Service_TagManager_Folder */ - public function create($accountId, $containerId, Google_Service_TagManager_Macro $postBody, $optParams = array()) + public function create($accountId, $containerId, Google_Service_TagManager_Folder $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Macro"); + return $this->call('create', array($params), "Google_Service_TagManager_Folder"); } /** - * Deletes a GTM Macro. (macros.delete) + * Deletes a GTM Folder. (folders.delete) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param string $macroId The GTM Macro ID. + * @param string $folderId The GTM Folder ID. * @param array $optParams Optional parameters. */ - public function delete($accountId, $containerId, $macroId, $optParams = array()) + public function delete($accountId, $containerId, $folderId, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** - * Gets a GTM Macro. (macros.get) + * Gets a GTM Folder. (folders.get) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param string $macroId The GTM Macro ID. + * @param string $folderId The GTM Folder ID. * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Macro + * @return Google_Service_TagManager_Folder */ - public function get($accountId, $containerId, $macroId, $optParams = array()) + public function get($accountId, $containerId, $folderId, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Macro"); + return $this->call('get', array($params), "Google_Service_TagManager_Folder"); } /** - * Lists all GTM Macros of a Container. (macros.listAccountsContainersMacros) + * Lists all GTM Folders of a Container. (folders.listAccountsContainersFolders) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListMacrosResponse + * @return Google_Service_TagManager_ListFoldersResponse */ - public function listAccountsContainersMacros($accountId, $containerId, $optParams = array()) + public function listAccountsContainersFolders($accountId, $containerId, $optParams = array()) { $params = array('accountId' => $accountId, 'containerId' => $containerId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListMacrosResponse"); + return $this->call('list', array($params), "Google_Service_TagManager_ListFoldersResponse"); } /** - * Updates a GTM Macro. (macros.update) + * Updates a GTM Folder. (folders.update) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param string $macroId The GTM Macro ID. - * @param Google_Macro $postBody + * @param string $folderId The GTM Folder ID. + * @param Google_Folder $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the macro in storage. - * @return Google_Service_TagManager_Macro + * fingerprint of the folder in storage. + * @return Google_Service_TagManager_Folder */ - public function update($accountId, $containerId, $macroId, Google_Service_TagManager_Macro $postBody, $optParams = array()) + public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'macroId' => $macroId, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Macro"); + return $this->call('update', array($params), "Google_Service_TagManager_Folder"); } } + /** - * The "rules" collection of methods. + * The "entities" collection of methods. * Typical usage is: * * $tagmanagerService = new Google_Service_TagManager(...); - * $rules = $tagmanagerService->rules; + * $entities = $tagmanagerService->entities; * */ -class Google_Service_TagManager_AccountsContainersRules_Resource extends Google_Service_Resource +class Google_Service_TagManager_AccountsContainersFoldersEntities_Resource extends Google_Service_Resource { /** - * Creates a GTM Rule. (rules.create) + * List all entities in a GTM Folder. + * (entities.listAccountsContainersFoldersEntities) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param Google_Rule $postBody + * @param string $folderId The GTM Folder ID. * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Rule + * @return Google_Service_TagManager_FolderEntities */ - public function create($accountId, $containerId, Google_Service_TagManager_Rule $postBody, $optParams = array()) + public function listAccountsContainersFoldersEntities($accountId, $containerId, $folderId, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Rule"); - } - - /** - * Deletes a GTM Rule. (rules.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $ruleId The GTM Rule ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $ruleId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Rule. (rules.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $ruleId The GTM Rule ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Rule - */ - public function get($accountId, $containerId, $ruleId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Rule"); - } - - /** - * Lists all GTM Rules of a Container. (rules.listAccountsContainersRules) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListRulesResponse - */ - public function listAccountsContainersRules($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListRulesResponse"); + return $this->call('list', array($params), "Google_Service_TagManager_FolderEntities"); } +} +/** + * The "move_folders" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $move_folders = $tagmanagerService->move_folders; + * + */ +class Google_Service_TagManager_AccountsContainersMoveFolders_Resource extends Google_Service_Resource +{ /** - * Updates a GTM Rule. (rules.update) + * Moves entities to a GTM Folder. (move_folders.update) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. - * @param string $ruleId The GTM Rule ID. - * @param Google_Rule $postBody + * @param string $folderId The GTM Folder ID. * @param array $optParams Optional parameters. * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the rule in storage. - * @return Google_Service_TagManager_Rule + * @opt_param string variableId The variables to be moved to the folder. + * @opt_param string tagId The tags to be moved to the folder. + * @opt_param string triggerId The triggers to be moved to the folder. */ - public function update($accountId, $containerId, $ruleId, Google_Service_TagManager_Rule $postBody, $optParams = array()) + public function update($accountId, $containerId, $folderId, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Rule"); + return $this->call('update', array($params)); } } /** @@ -2059,6 +1997,8 @@ class Google_Service_TagManager_ContainerVersion extends Google_Collection public $containerVersionId; public $deleted; public $fingerprint; + protected $folderType = 'Google_Service_TagManager_Folder'; + protected $folderDataType = 'array'; protected $macroType = 'Google_Service_TagManager_Macro'; protected $macroDataType = 'array'; public $name; @@ -2121,6 +2061,14 @@ public function getFingerprint() { return $this->fingerprint; } + public function setFolder($folder) + { + $this->folder = $folder; + } + public function getFolder() + { + return $this->folder; + } public function setMacro($macro) { $this->macro = $macro; @@ -2339,6 +2287,98 @@ public function getContainerVersion() } } +class Google_Service_TagManager_Folder extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $containerId; + public $fingerprint; + public $folderId; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + public function getContainerId() + { + return $this->containerId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setFolderId($folderId) + { + $this->folderId = $folderId; + } + public function getFolderId() + { + return $this->folderId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_TagManager_FolderEntities extends Google_Collection +{ + protected $collection_key = 'variable'; + protected $internal_gapi_mappings = array( + ); + protected $tagType = 'Google_Service_TagManager_Tag'; + protected $tagDataType = 'array'; + protected $triggerType = 'Google_Service_TagManager_Trigger'; + protected $triggerDataType = 'array'; + protected $variableType = 'Google_Service_TagManager_Variable'; + protected $variableDataType = 'array'; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } + public function setTrigger($trigger) + { + $this->trigger = $trigger; + } + public function getTrigger() + { + return $this->trigger; + } + public function setVariable($variable) + { + $this->variable = $variable; + } + public function getVariable() + { + return $this->variable; + } +} + class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collection { protected $collection_key = 'userAccess'; @@ -2425,41 +2465,22 @@ public function getContainers() } } -class Google_Service_TagManager_ListMacrosResponse extends Google_Collection +class Google_Service_TagManager_ListFoldersResponse extends Google_Collection { - protected $collection_key = 'macros'; + protected $collection_key = 'folders'; protected $internal_gapi_mappings = array( ); - protected $macrosType = 'Google_Service_TagManager_Macro'; - protected $macrosDataType = 'array'; + protected $foldersType = 'Google_Service_TagManager_Folder'; + protected $foldersDataType = 'array'; - public function setMacros($macros) + public function setFolders($folders) { - $this->macros = $macros; + $this->folders = $folders; } - public function getMacros() + public function getFolders() { - return $this->macros; - } -} - -class Google_Service_TagManager_ListRulesResponse extends Google_Collection -{ - protected $collection_key = 'rules'; - protected $internal_gapi_mappings = array( - ); - protected $rulesType = 'Google_Service_TagManager_Rule'; - protected $rulesDataType = 'array'; - - - public function setRules($rules) - { - $this->rules = $rules; - } - public function getRules() - { - return $this->rules; + return $this->folders; } } @@ -2535,6 +2556,7 @@ class Google_Service_TagManager_Macro extends Google_Collection public $notes; protected $parameterType = 'Google_Service_TagManager_Parameter'; protected $parameterDataType = 'array'; + public $parentFolderId; public $scheduleEndMs; public $scheduleStartMs; public $type; @@ -2612,6 +2634,14 @@ public function getParameter() { return $this->parameter; } + public function setParentFolderId($parentFolderId) + { + $this->parentFolderId = $parentFolderId; + } + public function getParentFolderId() + { + return $this->parentFolderId; + } public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; @@ -2794,9 +2824,35 @@ public function getRuleId() } } +class Google_Service_TagManager_SetupTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $stopOnSetupFailure; + public $tagName; + + + public function setStopOnSetupFailure($stopOnSetupFailure) + { + $this->stopOnSetupFailure = $stopOnSetupFailure; + } + public function getStopOnSetupFailure() + { + return $this->stopOnSetupFailure; + } + public function setTagName($tagName) + { + $this->tagName = $tagName; + } + public function getTagName() + { + return $this->tagName; + } +} + class Google_Service_TagManager_Tag extends Google_Collection { - protected $collection_key = 'parameter'; + protected $collection_key = 'teardownTag'; protected $internal_gapi_mappings = array( ); public $accountId; @@ -2811,11 +2867,17 @@ class Google_Service_TagManager_Tag extends Google_Collection public $notes; protected $parameterType = 'Google_Service_TagManager_Parameter'; protected $parameterDataType = 'array'; + public $parentFolderId; protected $priorityType = 'Google_Service_TagManager_Parameter'; protected $priorityDataType = ''; public $scheduleEndMs; public $scheduleStartMs; + protected $setupTagType = 'Google_Service_TagManager_SetupTag'; + protected $setupTagDataType = 'array'; + public $tagFiringOption; public $tagId; + protected $teardownTagType = 'Google_Service_TagManager_TeardownTag'; + protected $teardownTagDataType = 'array'; public $type; @@ -2907,6 +2969,14 @@ public function getParameter() { return $this->parameter; } + public function setParentFolderId($parentFolderId) + { + $this->parentFolderId = $parentFolderId; + } + public function getParentFolderId() + { + return $this->parentFolderId; + } public function setPriority(Google_Service_TagManager_Parameter $priority) { $this->priority = $priority; @@ -2931,6 +3001,22 @@ public function getScheduleStartMs() { return $this->scheduleStartMs; } + public function setSetupTag($setupTag) + { + $this->setupTag = $setupTag; + } + public function getSetupTag() + { + return $this->setupTag; + } + public function setTagFiringOption($tagFiringOption) + { + $this->tagFiringOption = $tagFiringOption; + } + public function getTagFiringOption() + { + return $this->tagFiringOption; + } public function setTagId($tagId) { $this->tagId = $tagId; @@ -2939,6 +3025,14 @@ public function getTagId() { return $this->tagId; } + public function setTeardownTag($teardownTag) + { + $this->teardownTag = $teardownTag; + } + public function getTeardownTag() + { + return $this->teardownTag; + } public function setType($type) { $this->type = $type; @@ -2949,6 +3043,32 @@ public function getType() } } +class Google_Service_TagManager_TeardownTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $stopTeardownOnFailure; + public $tagName; + + + public function setStopTeardownOnFailure($stopTeardownOnFailure) + { + $this->stopTeardownOnFailure = $stopTeardownOnFailure; + } + public function getStopTeardownOnFailure() + { + return $this->stopTeardownOnFailure; + } + public function setTagName($tagName) + { + $this->tagName = $tagName; + } + public function getTagName() + { + return $this->tagName; + } +} + class Google_Service_TagManager_Trigger extends Google_Collection { protected $collection_key = 'filter'; @@ -2974,6 +3094,7 @@ class Google_Service_TagManager_Trigger extends Google_Collection protected $limitType = 'Google_Service_TagManager_Parameter'; protected $limitDataType = ''; public $name; + public $parentFolderId; public $triggerId; public $type; protected $uniqueTriggerIdType = 'Google_Service_TagManager_Parameter'; @@ -3082,6 +3203,14 @@ public function getName() { return $this->name; } + public function setParentFolderId($parentFolderId) + { + $this->parentFolderId = $parentFolderId; + } + public function getParentFolderId() + { + return $this->parentFolderId; + } public function setTriggerId($triggerId) { $this->triggerId = $triggerId; @@ -3202,6 +3331,7 @@ class Google_Service_TagManager_Variable extends Google_Collection public $notes; protected $parameterType = 'Google_Service_TagManager_Parameter'; protected $parameterDataType = 'array'; + public $parentFolderId; public $scheduleEndMs; public $scheduleStartMs; public $type; @@ -3272,6 +3402,14 @@ public function getParameter() { return $this->parameter; } + public function setParentFolderId($parentFolderId) + { + $this->parentFolderId = $parentFolderId; + } + public function getParentFolderId() + { + return $this->parentFolderId; + } public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php index 8f332cad2..30f9fd7f3 100644 --- a/src/Google/Service/Webmasters.php +++ b/src/Google/Service/Webmasters.php @@ -318,8 +318,6 @@ class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_ { /** - * [LIMITED ACCESS] - * * Query your data with filters and parameters that you define. Returns zero or * more rows grouped by the row keys that you define. You must define a date * range of one or more days. diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 386936097..651088390 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -162,15 +162,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), @@ -184,7 +180,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'tfmt' => array( 'location' => 'query', 'type' => 'string', ), @@ -192,15 +188,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tfmt' => array( + 'tlang' => array( 'location' => 'query', 'type' => 'string', ), - 'tlang' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), @@ -214,21 +206,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'sync' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'list' => array( @@ -245,19 +233,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), @@ -271,21 +255,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'sync' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ), @@ -486,10 +466,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'shareOnGooglePlus' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'list' => array( 'path' => 'commentThreads', @@ -767,6 +743,33 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'bind_direct' => array( + 'path' => 'liveBroadcasts/bind/direct', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'streamId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'control' => array( 'path' => 'liveBroadcasts/control', 'httpMethod' => 'POST', @@ -1601,10 +1604,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'debugProjectIdOverride' => array( - 'location' => 'query', - 'type' => 'string', - ), 'hl' => array( 'location' => 'query', 'type' => 'string', @@ -1816,6 +1815,8 @@ class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource * a caption resource. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -1828,10 +1829,6 @@ class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID */ public function delete($id, $optParams = array()) { @@ -1851,6 +1848,16 @@ public function delete($id, $optParams = array()) * in a caption resource. * @param array $optParams Optional parameters. * + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -1863,18 +1870,6 @@ public function delete($id, $optParams = array()) * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID - * @opt_param string tfmt The tfmt parameter specifies that the caption track - * should be returned in a specific format. If the parameter is not included in - * the request, the track is returned in its original format. - * @opt_param string tlang The tlang parameter specifies that the API response - * should return a translation of the specified caption track. The parameter - * value is an ISO 639-1 two-letter language code that identifies the desired - * caption language. The translation is generated by using machine translation, - * such as Google Translate. */ public function download($id, $optParams = array()) { @@ -1891,18 +1886,8 @@ public function download($id, $optParams = array()) * @param Google_Caption $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sync The sync parameter indicates whether YouTube should - * automatically synchronize the caption file with the audio track of the video. - * If you set the value to true, YouTube will disregard any time codes that are - * in the uploaded caption file and generate new time codes for the captions. - * - * You should set the sync parameter to true if you are uploading a transcript, - * which has no time codes, or if you suspect the time codes in your file are - * incorrect and want YouTube to try to fix them. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -1915,6 +1900,14 @@ public function download($id, $optParams = array()) * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. + * @opt_param bool sync The sync parameter indicates whether YouTube should + * automatically synchronize the caption file with the audio track of the video. + * If you set the value to true, YouTube will disregard any time codes that are + * in the uploaded caption file and generate new time codes for the captions. + * + * You should set the sync parameter to true if you are uploading a transcript, + * which has no time codes, or if you suspect the time codes in your file are + * incorrect and want YouTube to try to fix them. * @return Google_Service_YouTube_Caption */ public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) @@ -1937,6 +1930,11 @@ public function insert($part, Google_Service_YouTube_Caption $postBody, $optPara * of the video for which the API should return caption tracks. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. + * @opt_param string id The id parameter specifies a comma-separated list of IDs + * that identify the caption resources that should be retrieved. Each ID must + * identify a caption track associated with the specified video. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -1949,13 +1947,6 @@ public function insert($part, Google_Service_YouTube_Caption $postBody, $optPara * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is on behalf of. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. - * @opt_param string id The id parameter specifies a comma-separated list of IDs - * that identify the caption resources that should be retrieved. Each ID must - * identify a caption track associated with the specified video. * @return Google_Service_YouTube_CaptionListResponse */ public function listCaptions($part, $videoId, $optParams = array()) @@ -1978,17 +1969,8 @@ public function listCaptions($part, $videoId, $optParams = array()) * @param Google_Caption $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sync Note: The API server only processes the parameter value - * if the request contains an updated caption file. - * - * The sync parameter indicates whether YouTube should automatically synchronize - * the caption file with the audio track of the video. If you set the value to - * true, YouTube will automatically synchronize the caption track with the audio - * track. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the * request is be on behalf of - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -2001,6 +1983,13 @@ public function listCaptions($part, $videoId, $optParams = array()) * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. + * @opt_param bool sync Note: The API server only processes the parameter value + * if the request contains an updated caption file. + * + * The sync parameter indicates whether YouTube should automatically synchronize + * the caption file with the audio track of the video. If you set the value to + * true, YouTube will automatically synchronize the caption track with the audio + * track. * @return Google_Service_YouTube_Caption */ public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) @@ -2368,10 +2357,6 @@ class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Reso * has a quota cost of 2 units. * @param Google_CommentThread $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates - * whether the top-level comment and any replies that are made to that comment - * should also be posted to the author's Google+ profile. * @return Google_Service_YouTube_CommentThread */ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) @@ -2773,6 +2758,64 @@ public function bind($id, $part, $optParams = array()) return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** + * Binds a YouTube broadcast to a stream or removes an existing binding between + * a broadcast and a stream. A broadcast can only be bound to one video stream, + * though a video stream may be bound to more than one broadcast. + * (liveBroadcasts.bind_direct) + * + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is being bound to a video stream. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string streamId The streamId parameter specifies the unique ID of + * the video stream that is being bound to a broadcast. If this parameter is + * omitted, the API will remove any existing binding between the broadcast and a + * video stream. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function bind_direct($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('bind_direct', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + /** * Controls the settings for a slate that can be displayed in the broadcast * stream. (liveBroadcasts.control) @@ -4288,8 +4331,6 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * Note: This parameter is supported for use in conjunction with the myRating * parameter, but it is not supported for use in conjunction with the id * parameter. - * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter - * should be used for mimicking a request for a certain project ID * @opt_param string hl The hl parameter instructs the API to retrieve localized * resource metadata for a specific application language that the YouTube * website supports. The parameter value must be a language code included in the @@ -7147,6 +7188,7 @@ class Google_Service_YouTube_ContentRating extends Google_Collection public $chvrsRating; public $cicfRating; public $cnaRating; + public $cncRating; public $csaRating; public $cscfRating; public $czfilmRating; @@ -7318,6 +7360,14 @@ public function getCnaRating() { return $this->cnaRating; } + public function setCncRating($cncRating) + { + $this->cncRating = $cncRating; + } + public function getCncRating() + { + return $this->cncRating; + } public function setCsaRating($csaRating) { $this->csaRating = $csaRating; @@ -8867,6 +8917,7 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model public $channelId; public $description; public $isDefaultBroadcast; + public $liveChatId; public $publishedAt; public $scheduledEndTime; public $scheduledStartTime; @@ -8915,6 +8966,14 @@ public function getIsDefaultBroadcast() { return $this->isDefaultBroadcast; } + public function setLiveChatId($liveChatId) + { + $this->liveChatId = $liveChatId; + } + public function getLiveChatId() + { + return $this->liveChatId; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -9260,7 +9319,7 @@ class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection ); protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; protected $configurationIssuesDataType = 'array'; - public $lastUpdateTimeS; + public $lastUpdateTimeSeconds; public $status; @@ -9272,13 +9331,13 @@ public function getConfigurationIssues() { return $this->configurationIssues; } - public function setLastUpdateTimeS($lastUpdateTimeS) + public function setLastUpdateTimeSeconds($lastUpdateTimeSeconds) { - $this->lastUpdateTimeS = $lastUpdateTimeS; + $this->lastUpdateTimeSeconds = $lastUpdateTimeSeconds; } - public function getLastUpdateTimeS() + public function getLastUpdateTimeSeconds() { - return $this->lastUpdateTimeS; + return $this->lastUpdateTimeSeconds; } public function setStatus($status) { diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index 2f6a80aa3..acf448e03 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -39,7 +39,7 @@ class Google_Service_YouTubeAnalytics extends Google_Service /** View and manage your assets and associated content on YouTube. */ const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner"; - /** View YouTube Analytics monetary reports for your YouTube content. */ + /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; /** View YouTube Analytics reports for your YouTube content. */ diff --git a/src/Google/Service/YouTubeReporting.php b/src/Google/Service/YouTubeReporting.php new file mode 100644 index 000000000..805438f99 --- /dev/null +++ b/src/Google/Service/YouTubeReporting.php @@ -0,0 +1,674 @@ + + * An API to schedule reporting jobs and download the resulting bulk data + * reports about YouTube channels, videos etc. in the form of CSV files.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_YouTubeReporting extends Google_Service +{ + /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ + const YT_ANALYTICS_MONETARY_READONLY = + "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; + /** View YouTube Analytics reports for your YouTube content. */ + const YT_ANALYTICS_READONLY = + "https://www.googleapis.com/auth/yt-analytics.readonly"; + + public $jobs; + public $jobs_reports; + public $media; + public $reportTypes; + + + /** + * Constructs the internal representation of the YouTubeReporting service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://youtubereporting.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'youtubereporting'; + + $this->jobs = new Google_Service_YouTubeReporting_Jobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/jobs/{jobId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'v1/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->jobs_reports = new Google_Service_YouTubeReporting_JobsReports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/jobs/{jobId}/reports/{reportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/jobs/{jobId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->media = new Google_Service_YouTubeReporting_Media_Resource( + $this, + $this->serviceName, + 'media', + array( + 'methods' => array( + 'download' => array( + 'path' => 'v1/media/{+resourceName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reportTypes = new Google_Service_YouTubeReporting_ReportTypes_Resource( + $this, + $this->serviceName, + 'reportTypes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/reportTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "jobs" collection of methods. + * Typical usage is: + * + * $youtubereportingService = new Google_Service_YouTubeReporting(...); + * $jobs = $youtubereportingService->jobs; + * + */ +class Google_Service_YouTubeReporting_Jobs_Resource extends Google_Service_Resource +{ + + /** + * Creates a job and returns it. (jobs.create) + * + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @return Google_Service_YouTubeReporting_Job + */ + public function create(Google_Service_YouTubeReporting_Job $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_YouTubeReporting_Job"); + } + + /** + * Deletes a job. (jobs.delete) + * + * @param string $jobId The ID of the job to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @return Google_Service_YouTubeReporting_Empty + */ + public function delete($jobId, $optParams = array()) + { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_YouTubeReporting_Empty"); + } + + /** + * Gets a job. (jobs.get) + * + * @param string $jobId The ID of the job to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @return Google_Service_YouTubeReporting_Job + */ + public function get($jobId, $optParams = array()) + { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_YouTubeReporting_Job"); + } + + /** + * Lists jobs. (jobs.listJobs) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportTypesResponse.next_page_token returned in response to the previous + * call to the `ListJobs` method. + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @opt_param int pageSize Requested page size. Server may return fewer jobs + * than requested. If unspecified, server will pick an appropriate default. + * @return Google_Service_YouTubeReporting_ListJobsResponse + */ + public function listJobs($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListJobsResponse"); + } +} + +/** + * The "reports" collection of methods. + * Typical usage is: + * + * $youtubereportingService = new Google_Service_YouTubeReporting(...); + * $reports = $youtubereportingService->reports; + * + */ +class Google_Service_YouTubeReporting_JobsReports_Resource extends Google_Service_Resource +{ + + /** + * Gets the metadata of a specific report. (reports.get) + * + * @param string $jobId The ID of the job. + * @param string $reportId The ID of the report to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @return Google_Service_YouTubeReporting_Report + */ + public function get($jobId, $reportId, $optParams = array()) + { + $params = array('jobId' => $jobId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_YouTubeReporting_Report"); + } + + /** + * Lists reports created by a specific job. Returns NOT_FOUND if the job does + * not exist. (reports.listJobsReports) + * + * @param string $jobId The ID of the job. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportsResponse.next_page_token returned in response to the previous call + * to the `ListReports` method. + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @opt_param int pageSize Requested page size. Server may return fewer report + * types than requested. If unspecified, server will pick an appropriate + * default. + * @return Google_Service_YouTubeReporting_ListReportsResponse + */ + public function listJobsReports($jobId, $optParams = array()) + { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportsResponse"); + } +} + +/** + * The "media" collection of methods. + * Typical usage is: + * + * $youtubereportingService = new Google_Service_YouTubeReporting(...); + * $media = $youtubereportingService->media; + * + */ +class Google_Service_YouTubeReporting_Media_Resource extends Google_Service_Resource +{ + + /** + * Method for media download. Download is supported on the URI + * `/v1/media/{+name}?alt=media`. (media.download) + * + * @param string $resourceName Name of the media that is being downloaded. See + * [][ByteStream.ReadRequest.resource_name]. + * @param array $optParams Optional parameters. + * @return Google_Service_YouTubeReporting_Media + */ + public function download($resourceName, $optParams = array()) + { + $params = array('resourceName' => $resourceName); + $params = array_merge($params, $optParams); + return $this->call('download', array($params), "Google_Service_YouTubeReporting_Media"); + } +} + +/** + * The "reportTypes" collection of methods. + * Typical usage is: + * + * $youtubereportingService = new Google_Service_YouTubeReporting(...); + * $reportTypes = $youtubereportingService->reportTypes; + * + */ +class Google_Service_YouTubeReporting_ReportTypes_Resource extends Google_Service_Resource +{ + + /** + * Lists report types. (reportTypes.listReportTypes) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportTypesResponse.next_page_token returned in response to the previous + * call to the `ListReportTypes` method. + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). + * @opt_param int pageSize Requested page size. Server may return fewer report + * types than requested. If unspecified, server will pick an appropriate + * default. + * @return Google_Service_YouTubeReporting_ListReportTypesResponse + */ + public function listReportTypes($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportTypesResponse"); + } +} + + + + +class Google_Service_YouTubeReporting_Empty extends Google_Model +{ +} + +class Google_Service_YouTubeReporting_Job extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $id; + public $name; + public $reportTypeId; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReportTypeId($reportTypeId) + { + $this->reportTypeId = $reportTypeId; + } + public function getReportTypeId() + { + return $this->reportTypeId; + } +} + +class Google_Service_YouTubeReporting_ListJobsResponse extends Google_Collection +{ + protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); + protected $jobsType = 'Google_Service_YouTubeReporting_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_YouTubeReporting_ListReportTypesResponse extends Google_Collection +{ + protected $collection_key = 'reportTypes'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $reportTypesType = 'Google_Service_YouTubeReporting_ReportType'; + protected $reportTypesDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReportTypes($reportTypes) + { + $this->reportTypes = $reportTypes; + } + public function getReportTypes() + { + return $this->reportTypes; + } +} + +class Google_Service_YouTubeReporting_ListReportsResponse extends Google_Collection +{ + protected $collection_key = 'reports'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $reportsType = 'Google_Service_YouTubeReporting_Report'; + protected $reportsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReports($reports) + { + $this->reports = $reports; + } + public function getReports() + { + return $this->reports; + } +} + +class Google_Service_YouTubeReporting_Media extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $resourceName; + + + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; + } +} + +class Google_Service_YouTubeReporting_Report extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $downloadUrl; + public $endTime; + public $id; + public $jobId; + public $startTime; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setDownloadUrl($downloadUrl) + { + $this->downloadUrl = $downloadUrl; + } + public function getDownloadUrl() + { + return $this->downloadUrl; + } + 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 setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() + { + return $this->jobId; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} + +class Google_Service_YouTubeReporting_ReportType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} From 4b327ef2043318d5289167af053fa5e4e5d7bbbf Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 12 Oct 2015 11:12:51 -0700 Subject: [PATCH 0898/1274] removes bind_direct for now --- src/Google/Service/YouTube.php | 87 +--------------------------------- 1 file changed, 1 insertion(+), 86 deletions(-) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 651088390..1b646ae04 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -70,7 +70,7 @@ class Google_Service_YouTube extends Google_Service public $videoCategories; public $videos; public $watermarks; - + /** * Constructs the internal representation of the YouTube service. @@ -743,33 +743,6 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), - ),'bind_direct' => array( - 'path' => 'liveBroadcasts/bind/direct', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'control' => array( 'path' => 'liveBroadcasts/control', 'httpMethod' => 'POST', @@ -2758,64 +2731,6 @@ public function bind($id, $part, $optParams = array()) return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); } - /** - * Binds a YouTube broadcast to a stream or removes an existing binding between - * a broadcast and a stream. A broadcast can only be bound to one video stream, - * though a video stream may be bound to more than one broadcast. - * (liveBroadcasts.bind_direct) - * - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is being bound to a video stream. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string streamId The streamId parameter specifies the unique ID of - * the video stream that is being bound to a broadcast. If this parameter is - * omitted, the API will remove any existing binding between the broadcast and a - * video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind_direct($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind_direct', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - /** * Controls the settings for a slate that can be displayed in the broadcast * stream. (liveBroadcasts.control) From a07f4584d92c47d9af52b35d4bb1a43c5e0ca51b Mon Sep 17 00:00:00 2001 From: Gabriel PREDA Date: Wed, 26 Aug 2015 19:14:27 +0300 Subject: [PATCH 0899/1274] * Leave the unrelying curl library decide what SSL version to use. As discussed in case #639. --- src/Google/IO/Curl.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php index 7eb681e9f..c250ec9d9 100644 --- a/src/Google/IO/Curl.php +++ b/src/Google/IO/Curl.php @@ -73,8 +73,11 @@ public function executeRequest(Google_Http_Request $request) curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); - // 1 is CURL_SSLVERSION_TLSv1, which is not always defined in PHP. - curl_setopt($curl, CURLOPT_SSLVERSION, 1); + + // The SSL version will be determined by the underlying library + // @see https://github.com/google/google-api-php-client/pull/644 + //curl_setopt($curl, CURLOPT_SSLVERSION, 1); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); From 043fab574f4921e8693b60bb49d74e65de8e6b6b Mon Sep 17 00:00:00 2001 From: InomataMitsuhiro Date: Wed, 14 Oct 2015 15:58:48 +0900 Subject: [PATCH 0900/1274] Accept multiple issuers - support issuers accounts.google.com and https://accounts.google.com/ by default. --- src/Google/Auth/OAuth2.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index a6041515c..0f556e14d 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -32,6 +32,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract const AUTH_TOKEN_LIFETIME_SECS = 300; // five minutes in seconds const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds const OAUTH2_ISSUER = 'accounts.google.com'; + const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; /** @var Google_Auth_AssertionCredentials $assertionCredentials */ private $assertionCredentials; @@ -488,7 +489,12 @@ public function verifyIdToken($id_token = null, $audience = null) $audience = $this->client->getClassConfig($this, 'client_id'); } - return $this->verifySignedJwtWithCerts($id_token, $certs, $audience, self::OAUTH2_ISSUER); + return $this->verifySignedJwtWithCerts( + $id_token, + $certs, + $audience, + array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS) + ); } /** @@ -595,13 +601,15 @@ public function verifySignedJwtWithCerts( ); } + // support HTTP and HTTPS issuers + // @see https://developers.google.com/identity/sign-in/web/backend-auth $iss = $payload['iss']; - if ($issuer && $iss != $issuer) { + if ($issuer && !in_array($iss, (array) $issuer)) { throw new Google_Auth_Exception( sprintf( - "Invalid issuer, %s != %s: %s", + "Invalid issuer, %s not in %s: %s", $iss, - $issuer, + "[".implode(",", $issuers)."]", $json_body ) ); From 3ae19bb4725a97620afc74d8b7d1197ca117eb04 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 16 Oct 2015 13:13:10 -0700 Subject: [PATCH 0901/1274] adds tests + fixes bugs for multiple issuers --- src/Google/Auth/OAuth2.php | 2 +- tests/general/AuthTest.php | 47 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 0f556e14d..40f2076ba 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -609,7 +609,7 @@ public function verifySignedJwtWithCerts( sprintf( "Invalid issuer, %s not in %s: %s", $iss, - "[".implode(",", $issuers)."]", + "[".implode(",", (array) $issuer)."]", $json_body ) ); diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index 9832a34dc..86cd8312f 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -149,18 +149,61 @@ public function testVerifySignedJwtWithCerts() } // Checks that the id token fails to verify with the expected message. - private function checkIdTokenFailure($id_token, $msg) + private function checkIdTokenFailure($id_token, $msg, $issuer = null) { $certs = $this->getSignonCerts(); $oauth2 = new Google_Auth_OAuth2($this->getClient()); try { - $oauth2->verifySignedJwtWithCerts($id_token, $certs, "client_id"); + $oauth2->verifySignedJwtWithCerts($id_token, $certs, "client_id", $issuer); $this->fail("Should have thrown for $id_token"); } catch (Google_Auth_Exception $e) { $this->assertContains($msg, $e->getMessage()); } } + public function testVerifySignedJwtWithMultipleIssuers() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "system.gserviceaccount.com", + "aud" => "client_id", + "sub" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 + ) + ); + $certs = $this->getSignonCerts(); + $oauth2 = new Google_Auth_OAuth2($this->getClient()); + $ticket = $oauth2->verifySignedJwtWithCerts( + $id_token, + $certs, + "client_id", + ['system.gserviceaccount.com', 'https://system.gserviceaccount.com'] + ); + $this->assertEquals(self::USER_ID, $ticket->getUserId()); + // Check that payload and envelope got filled in. + $attributes = $ticket->getAttributes(); + $this->assertEquals("JWT", $attributes["envelope"]["typ"]); + $this->assertEquals("client_id", $attributes["payload"]["aud"]); + } + + public function testVerifySignedJwtWithBadIssuer() + { + $id_token = $this->makeSignedJwt( + array( + "iss" => "fake.gserviceaccount.com", + "aud" => "client_id", + "sub" => self::USER_ID, + "iat" => time(), + "exp" => time() + 3600 + ) + ); + + $issuers = ['system.gserviceaccount.com', 'https://system.gserviceaccount.com']; + $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers[0]); + $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers); + } + public function testVerifySignedJwtWithBadJwt() { $this->checkIdTokenFailure("foo", "Wrong number of segments"); From a25dc9d5c109ebb02945ba1ff6336cc937c27628 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 16 Oct 2015 15:11:08 -0700 Subject: [PATCH 0902/1274] makes new tests for verifyIdToken php-53-array friendly --- tests/general/AuthTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index 86cd8312f..99b41b91a 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -178,7 +178,7 @@ public function testVerifySignedJwtWithMultipleIssuers() $id_token, $certs, "client_id", - ['system.gserviceaccount.com', 'https://system.gserviceaccount.com'] + array('system.gserviceaccount.com', 'https://system.gserviceaccount.com') ); $this->assertEquals(self::USER_ID, $ticket->getUserId()); // Check that payload and envelope got filled in. @@ -199,7 +199,7 @@ public function testVerifySignedJwtWithBadIssuer() ) ); - $issuers = ['system.gserviceaccount.com', 'https://system.gserviceaccount.com']; + $issuers = array('system.gserviceaccount.com', 'https://system.gserviceaccount.com'); $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers[0]); $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers); } From 48dfd9571854d35b2fda1db15b918e6976d7d1e6 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 24 Aug 2015 15:23:29 -0700 Subject: [PATCH 0903/1274] Refactor for adding UsableAuth library and GuzzleHttp - Phase 1 --- .travis.yml | 3 - composer.json | 3 +- examples/idtoken.php | 10 +- examples/service-account.php | 22 +- examples/templates/base.php | 4 +- src/Google/Auth/AppIdentity.php | 20 +- src/Google/Auth/AssertionCredentials.php | 136 - src/Google/Auth/ComputeEngine.php | 41 +- .../Auth/{Abstract.php => Interface.php} | 14 +- src/Google/Auth/LoginTicket.php | 71 - src/Google/Auth/OAuth2.php | 550 ++--- src/Google/Auth/Simple.php | 15 +- src/Google/Client.php | 163 +- src/Google/Config.php | 14 +- src/Google/Http/Batch.php | 128 +- src/Google/Http/CacheParser.php | 185 -- src/Google/Http/MediaFileUpload.php | 104 +- src/Google/Http/REST.php | 149 +- src/Google/Http/Request.php | 504 ---- src/Google/IO/Abstract.php | 339 --- src/Google/IO/Curl.php | 182 -- src/Google/IO/Stream.php | 243 -- src/Google/IO/cacerts.pem | 2183 ----------------- src/Google/Service/Resource.php | 105 +- src/Google/Signer/Abstract.php | 29 - src/Google/Signer/P12.php | 94 - src/Google/Task/Runner.php | 21 +- src/Google/Verifier/Abstract.php | 30 - src/Google/Verifier/Pem.php | 75 - src/Google/autoload.php | 4 + tests/BaseTest.php | 32 +- tests/OAuthHelper.php | 1 - tests/general/ApiBatchRequestTest.php | 11 +- tests/general/ApiCacheParserTest.php | 262 -- tests/general/ApiClientTest.php | 65 +- tests/general/ApiMediaFileUploadTest.php | 38 +- tests/general/ApiOAuth2Test.php | 147 +- tests/general/AuthTest.php | 208 +- tests/general/ComputeEngineAuthTest.php | 35 +- tests/general/Http/BatchTest.php | 121 - tests/general/Http/RequestTest.php | 41 - tests/general/IoTest.php | 381 --- tests/general/RequestTest.php | 71 - tests/general/ResourceTest.php | 66 +- tests/general/RestTest.php | 98 +- tests/general/TaskTest.php | 70 +- 46 files changed, 842 insertions(+), 6246 deletions(-) delete mode 100644 src/Google/Auth/AssertionCredentials.php rename src/Google/Auth/{Abstract.php => Interface.php} (65%) delete mode 100644 src/Google/Auth/LoginTicket.php delete mode 100644 src/Google/Http/CacheParser.php delete mode 100644 src/Google/Http/Request.php delete mode 100644 src/Google/IO/Abstract.php delete mode 100644 src/Google/IO/Curl.php delete mode 100644 src/Google/IO/Stream.php delete mode 100644 src/Google/IO/cacerts.pem delete mode 100644 src/Google/Signer/Abstract.php delete mode 100644 src/Google/Signer/P12.php delete mode 100644 src/Google/Verifier/Abstract.php delete mode 100644 src/Google/Verifier/Pem.php delete mode 100644 tests/general/ApiCacheParserTest.php delete mode 100644 tests/general/Http/BatchTest.php delete mode 100644 tests/general/Http/RequestTest.php delete mode 100644 tests/general/IoTest.php delete mode 100644 tests/general/RequestTest.php diff --git a/.travis.yml b/.travis.yml index 185b4a48b..ca334e740 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,6 @@ cache: matrix: fast_finish: true include: - # Can't test against 5.2; openssl is not available: - # http://docs.travis-ci.com/user/languages/php/#PHP-installation - - php: 5.3 - php: 5.4 - php: 5.5 - php: 5.6 diff --git a/composer.json b/composer.json index 224d0b666..b47c6f928 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,8 @@ "homepage": "http://developers.google.com/api-client-library/php", "license": "Apache-2.0", "require": { - "php": ">=5.2.1" + "php": ">=5.4", + "google/auth": "dev-master" }, "require-dev": { "phpunit/phpunit": "3.7.*", diff --git a/examples/idtoken.php b/examples/idtoken.php index af21b8d6f..80aefa621 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -59,7 +59,11 @@ function. We store the resultant access token If we have an access token, we can make requests, else we generate an authentication URL. ************************************************/ -if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { +if ( + isset($_SESSION['access_token']) + && $_SESSION['access_token'] + && false !== strpos($_SESSION['access_token'], 'id_token') +) { $client->setAccessToken($_SESSION['access_token']); } else { $authUrl = $client->createAuthUrl(); @@ -75,7 +79,7 @@ function. We store the resultant access token ************************************************/ if ($client->getAccessToken()) { $_SESSION['access_token'] = $client->getAccessToken(); - $token_data = $client->verifyIdToken()->getAttributes(); + $token_data = $client->verifyIdToken(); } echo pageHeader("User Query - Retrieving An Id Token"); @@ -96,7 +100,7 @@ function. We store the resultant access token
-'; //Client ID -$service_account_name = ''; //Email Address -$key_file_location = ''; //key.p12 +$key_file_location = ''; //.json credentials echo pageHeader("Service Account Access"); -if (strpos($client_id, "googleusercontent") == false - || !strlen($service_account_name) - || !strlen($key_file_location)) { +if (!strlen($key_file_location)) { echo missingServiceAccountDetailsWarning(); exit; } $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); +$client->setScopes(['https://www.googleapis.com/auth/books']); $service = new Google_Service_Books($client); /************************************************ @@ -63,15 +57,9 @@ if (isset($_SESSION['service_token'])) { $client->setAccessToken($_SESSION['service_token']); } -$key = file_get_contents($key_file_location); -$cred = new Google_Auth_AssertionCredentials( - $service_account_name, - array('https://www.googleapis.com/auth/books'), - $key -); -$client->setAssertionCredentials($cred); +$client->setAuthConfigFile($key_file_location); if ($client->getAuth()->isAccessTokenExpired()) { - $client->getAuth()->refreshTokenWithAssertion($cred); + $client->getAuth()->refreshTokenWithAssertion(); } $_SESSION['service_token'] = $client->getAccessToken(); diff --git a/examples/templates/base.php b/examples/templates/base.php index 34241e9e4..953a8642a 100644 --- a/examples/templates/base.php +++ b/examples/templates/base.php @@ -79,11 +79,11 @@ function missingServiceAccountDetailsWarning() if (isWebRequest()) { $ret = "

- Warning: You need to set Client ID, Email address and the location of the Key from the + Warning: You need to set the location of your Service Account JSON Credentials from the Google API console

"; } else { - $ret = "Warning: You need to set Client ID, Email address and the location of the Key from the"; + $ret = "Warning: You need to set the location of Service Account JSON Credentials from the"; $ret .= " Google API console:\nhttp://developers.google.com/console\n"; } return $ret; diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index 5fb66999d..d475870dd 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -29,7 +29,7 @@ /** * Authentication via the Google App Engine App Identity service. */ -class Google_Auth_AppIdentity extends Google_Auth_Abstract +class Google_Auth_AppIdentity implements Google_Auth_Interface { const CACHE_PREFIX = "Google_Auth_AppIdentity::"; private $client; @@ -89,19 +89,19 @@ private function retrieveToken($scopes, $cacheKey) * Perform an authenticated / signed apiHttpRequest. * This function takes the apiHttpRequest, calls apiAuth->sign on it * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request + * and then sends the request using the http client * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. + * @param GuzzleHttp\Message\Request $request + * @return GuzzleHttp\Message\Response The resulting HTTP response */ - public function authenticatedRequest(Google_Http_Request $request) + public function authenticatedRequest($request) { $request = $this->sign($request); - return $this->client->getIo()->makeRequest($request); + + return $this->client->getHttpClient()->send($request); } - public function sign(Google_Http_Request $request) + public function sign($request) { if (!$this->token) { // No token, so nothing to do. @@ -111,9 +111,7 @@ public function sign(Google_Http_Request $request) $this->client->getLogger()->debug('App Identity authentication'); // Add the OAuth2 header to the request - $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) - ); + $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); return $request; } diff --git a/src/Google/Auth/AssertionCredentials.php b/src/Google/Auth/AssertionCredentials.php deleted file mode 100644 index 831d374eb..000000000 --- a/src/Google/Auth/AssertionCredentials.php +++ /dev/null @@ -1,136 +0,0 @@ -serviceAccountName = $serviceAccountName; - $this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes); - $this->privateKey = $privateKey; - $this->privateKeyPassword = $privateKeyPassword; - $this->assertionType = $assertionType; - $this->sub = $sub; - $this->prn = $sub; - $this->useCache = $useCache; - } - - /** - * Generate a unique key to represent this credential. - * @return string - */ - public function getCacheKey() - { - if (!$this->useCache) { - return false; - } - $h = $this->sub; - $h .= $this->assertionType; - $h .= $this->privateKey; - $h .= $this->scopes; - $h .= $this->serviceAccountName; - return md5($h); - } - - public function generateAssertion() - { - $now = time(); - - $jwtParams = array( - 'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI, - 'scope' => $this->scopes, - 'iat' => $now, - 'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS, - 'iss' => $this->serviceAccountName, - ); - - if ($this->sub !== false) { - $jwtParams['sub'] = $this->sub; - } else if ($this->prn !== false) { - $jwtParams['prn'] = $this->prn; - } - - return $this->makeSignedJwt($jwtParams); - } - - /** - * Creates a signed JWT. - * @param array $payload - * @return string The signed JWT. - */ - private function makeSignedJwt($payload) - { - $header = array('typ' => 'JWT', 'alg' => 'RS256'); - - $payload = json_encode($payload); - // Handle some overzealous escaping in PHP json that seemed to cause some errors - // with claimsets. - $payload = str_replace('\/', '/', $payload); - - $segments = array( - Google_Utils::urlSafeB64Encode(json_encode($header)), - Google_Utils::urlSafeB64Encode($payload) - ); - - $signingInput = implode('.', $segments); - $signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword); - $signature = $signer->sign($signingInput); - $segments[] = Google_Utils::urlSafeB64Encode($signature); - - return implode(".", $segments); - } -} diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php index 88ff6ff89..76d269d45 100644 --- a/src/Google/Auth/ComputeEngine.php +++ b/src/Google/Auth/ComputeEngine.php @@ -1,4 +1,7 @@ */ -class Google_Auth_ComputeEngine extends Google_Auth_Abstract +class Google_Auth_ComputeEngine implements Google_Auth_Interface { const METADATA_AUTH_URL = 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; @@ -43,14 +46,15 @@ public function __construct(Google_Client $client, $config = null) * (which can modify the request in what ever way fits the auth mechanism) * and then calls apiCurlIO::makeRequest on the signed request * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the + * @param GuzzleHttp\Message\Request $request + * @return GuzzleHttp\Message\Response The resulting HTTP response including the * responseHttpCode, responseHeaders and responseBody. */ - public function authenticatedRequest(Google_Http_Request $request) + public function authenticatedRequest($request) { $request = $this->sign($request); - return $this->client->getIo()->makeRequest($request); + + return $this->client->getHttpClient()->send($request); } /** @@ -81,38 +85,39 @@ public function getAccessToken() */ public function acquireAccessToken() { - $request = new Google_Http_Request( - self::METADATA_AUTH_URL, + $request = new Request( 'GET', + self::METADATA_AUTH_URL, array( 'Metadata-Flavor' => 'Google' ) ); - $request->disableGzip(); - $response = $this->client->getIo()->makeRequest($request); + $http = $this->client->getHttpClient(); + $http->setDefaultOption('disable_gzip', true); + $response = $http->send($request); - if ($response->getResponseHttpCode() == 200) { - $this->setAccessToken($response->getResponseBody()); + if ($response->getStatusCode() == 200) { + $this->setAccessToken((string) $response->getBody()); $this->token['created'] = time(); return $this->getAccessToken(); } else { throw new Google_Auth_Exception( sprintf( "Error fetching service account access token, message: '%s'", - $response->getResponseBody() + $response->getBody() ), - $response->getResponseHttpCode() + $response->getStatusCode() ); } } /** * Include an accessToken in a given apiHttpRequest. - * @param Google_Http_Request $request - * @return Google_Http_Request + * @param GuzzleHttp\Message\Request $request + * @return GuzzleHttp\Message\Request $request * @throws Google_Auth_Exception */ - public function sign(Google_Http_Request $request) + public function sign($request) { if ($this->isAccessTokenExpired()) { $this->acquireAccessToken(); @@ -120,9 +125,7 @@ public function sign(Google_Http_Request $request) $this->client->getLogger()->debug('Compute engine service account authentication'); - $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) - ); + $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); return $request; } diff --git a/src/Google/Auth/Abstract.php b/src/Google/Auth/Interface.php similarity index 65% rename from src/Google/Auth/Abstract.php rename to src/Google/Auth/Interface.php index 4cd7b551a..78fdb65da 100644 --- a/src/Google/Auth/Abstract.php +++ b/src/Google/Auth/Interface.php @@ -24,15 +24,13 @@ * @author Chris Chabot * */ -abstract class Google_Auth_Abstract +interface Google_Auth_Interface { /** - * An utility function that first calls $this->auth->sign($request) and then - * executes makeRequest() on that signed request. Used for when a request - * should be authenticated - * @param Google_Http_Request $request - * @return Google_Http_Request $request + * Used for when a request should be authenticated + * + * @param GuzzleHttp\Message\Request $request + * @return GuzzleHttp\Message\Request $request */ - abstract public function authenticatedRequest(Google_Http_Request $request); - abstract public function sign(Google_Http_Request $request); + public function sign($request); } diff --git a/src/Google/Auth/LoginTicket.php b/src/Google/Auth/LoginTicket.php deleted file mode 100644 index 371b3ce18..000000000 --- a/src/Google/Auth/LoginTicket.php +++ /dev/null @@ -1,71 +0,0 @@ - - */ -class Google_Auth_LoginTicket -{ - const USER_ATTR = "sub"; - - // Information from id token envelope. - private $envelope; - - // Information from id token payload. - private $payload; - - /** - * Creates a user based on the supplied token. - * - * @param string $envelope Header from a verified authentication token. - * @param string $payload Information from a verified authentication token. - */ - public function __construct($envelope, $payload) - { - $this->envelope = $envelope; - $this->payload = $payload; - } - - /** - * Returns the numeric identifier for the user. - * @throws Google_Auth_Exception - * @return - */ - public function getUserId() - { - if (array_key_exists(self::USER_ATTR, $this->payload)) { - return $this->payload[self::USER_ATTR]; - } - throw new Google_Auth_Exception("No user_id in token"); - } - - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * @return array - */ - public function getAttributes() - { - return array("envelope" => $this->envelope, "payload" => $this->payload); - } -} diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php index 40f2076ba..7b2b9ea51 100644 --- a/src/Google/Auth/OAuth2.php +++ b/src/Google/Auth/OAuth2.php @@ -1,4 +1,7 @@ client = $client; - } + $client->setAuth($this); + $this->signingAlgorithm = 'RS256'; // default - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest(Google_Http_Request $request) - { - $request = $this->sign($request); - return $this->client->getIo()->makeRequest($request); + $this->client = $client; + $this->http = $client->getHttpClient(); } /** * @param string $code - * @param boolean $crossClient * @throws Google_Auth_Exception * @return string */ @@ -89,48 +91,13 @@ public function authenticate($code, $crossClient = false) throw new Google_Auth_Exception("Invalid code"); } - $arguments = array( - 'code' => $code, - 'grant_type' => 'authorization_code', - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret') - ); + $auth = $this->createAuthClient(); + $auth->setCode($code); + $auth->setRedirectUri($this->client->getClassConfig($this, 'redirect_uri')); - if ($crossClient !== true) { - $arguments['redirect_uri'] = $this->client->getClassConfig($this, 'redirect_uri'); - } + $creds = $auth->fetchAuthToken($this->http); - // We got here from the redirect from a successful authorization grant, - // fetch the access token - $request = new Google_Http_Request( - self::OAUTH2_TOKEN_URI, - 'POST', - array(), - $arguments - ); - $request->disableGzip(); - $response = $this->client->getIo()->makeRequest($request); - - if ($response->getResponseHttpCode() == 200) { - $this->setAccessToken($response->getResponseBody()); - $this->token['created'] = time(); - return $this->getAccessToken(); - } else { - $decodedResponse = json_decode($response->getResponseBody(), true); - if ($decodedResponse != null && $decodedResponse['error']) { - $errorText = $decodedResponse['error']; - if (isset($decodedResponse['error_description'])) { - $errorText .= ": " . $decodedResponse['error_description']; - } - } - throw new Google_Auth_Exception( - sprintf( - "Error fetching OAuth2 access token, message: '%s'", - $errorText - ), - $response->getResponseHttpCode() - ); - } + return $this->handleAuthTokenResponse($creds); } /** @@ -142,12 +109,11 @@ public function authenticate($code, $crossClient = false) */ public function createAuthUrl($scope) { + $auth = $this->createAuthClient(); $params = array( 'response_type' => 'code', - 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'scope' => $scope, 'access_type' => $this->client->getClassConfig($this, 'access_type'), + 'scope' => $scope, ); // Prefer prompt to approval prompt. @@ -172,7 +138,9 @@ public function createAuthUrl($scope) $params['state'] = $this->state; } - return self::OAUTH2_AUTH_URL . "?" . http_build_query($params, '', '&'); + $url = $auth->buildFullAuthorizationUri($params); + + return (string) $url; } /** @@ -196,47 +164,37 @@ public function getAccessToken() return json_encode($this->token); } - public function getRefreshToken() + public function setState($state) { - if (array_key_exists('refresh_token', $this->token)) { - return $this->token['refresh_token']; - } else { - return null; - } + $this->state = $state; } - public function setState($state) + public function setSigningKey($signingKey) { - $this->state = $state; + $this->signingKey = $signingKey; } - public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) + public function setSigningAlgorithm($signingAlgorithm) { - $this->assertionCredentials = $creds; + $this->signingAlgorithm = $signingAlgorithm; } - /** - * Include an accessToken in a given apiHttpRequest. - * @param Google_Http_Request $request - * @return Google_Http_Request - * @throws Google_Auth_Exception - */ - public function sign(Google_Http_Request $request) + public function sign($request) { // add the developer key to the request before signing it if ($this->client->getClassConfig($this, 'developer_key')) { - $request->setQueryParam('key', $this->client->getClassConfig($this, 'developer_key')); + $request->getQuery()->set('key', $this->client->getClassConfig($this, 'developer_key')); } // Cannot sign the request without an OAuth access token. - if (null == $this->token && null == $this->assertionCredentials) { + if (empty($this->token) && empty($this->signingKey)) { return $request; } // Check if the token is set to expire in the next 30 seconds // (or has already expired). if ($this->isAccessTokenExpired()) { - if ($this->assertionCredentials) { + if ($this->signingKey) { $this->refreshTokenWithAssertion(); } else { $this->client->getLogger()->debug('OAuth2 access token expired'); @@ -255,114 +213,20 @@ public function sign(Google_Http_Request $request) $this->client->getLogger()->debug('OAuth2 authentication'); // Add the OAuth2 header to the request - $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) - ); + $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); return $request; } - /** - * Fetches a fresh access token with the given refresh token. - * @param string $refreshToken - * @return void - */ public function refreshToken($refreshToken) { - $this->refreshTokenRequest( - array( - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret'), - 'refresh_token' => $refreshToken, - 'grant_type' => 'refresh_token' - ) - ); - } + $this->client->getLogger()->info('OAuth2 access token refresh'); + $auth = $this->createAuthClient(); + $auth->setRefreshToken($refreshToken); - /** - * Fetches a fresh access token with a given assertion token. - * @param Google_Auth_AssertionCredentials $assertionCredentials optional. - * @return void - */ - public function refreshTokenWithAssertion($assertionCredentials = null) - { - if (!$assertionCredentials) { - $assertionCredentials = $this->assertionCredentials; - } - - $cacheKey = $assertionCredentials->getCacheKey(); + $creds = $auth->fetchAuthToken($this->http); - if ($cacheKey) { - // We can check whether we have a token available in the - // cache. If it is expired, we can retrieve a new one from - // the assertion. - $token = $this->client->getCache()->get($cacheKey); - if ($token) { - $this->setAccessToken($token); - } - if (!$this->isAccessTokenExpired()) { - return; - } - } - - $this->client->getLogger()->debug('OAuth2 access token expired'); - $this->refreshTokenRequest( - array( - 'grant_type' => 'assertion', - 'assertion_type' => $assertionCredentials->assertionType, - 'assertion' => $assertionCredentials->generateAssertion(), - ) - ); - - if ($cacheKey) { - // Attempt to cache the token. - $this->client->getCache()->set( - $cacheKey, - $this->getAccessToken() - ); - } - } - - private function refreshTokenRequest($params) - { - if (isset($params['assertion'])) { - $this->client->getLogger()->info( - 'OAuth2 access token refresh with Signed JWT assertion grants.' - ); - } else { - $this->client->getLogger()->info('OAuth2 access token refresh'); - } - - $http = new Google_Http_Request( - self::OAUTH2_TOKEN_URI, - 'POST', - array(), - $params - ); - $http->disableGzip(); - $request = $this->client->getIo()->makeRequest($http); - - $code = $request->getResponseHttpCode(); - $body = $request->getResponseBody(); - if (200 == $code) { - $token = json_decode($body, true); - if ($token == null) { - throw new Google_Auth_Exception("Could not json decode the access token"); - } - - if (! isset($token['access_token']) || ! isset($token['expires_in'])) { - throw new Google_Auth_Exception("Invalid token format"); - } - - if (isset($token['id_token'])) { - $this->token['id_token'] = $token['id_token']; - } - $this->token['access_token'] = $token['access_token']; - $this->token['expires_in'] = $token['expires_in']; - $this->token['created'] = time(); - } else { - throw new Google_Auth_Exception("Error refreshing the OAuth2 token, message: '$body'", $code); - } + return $this->handleAuthTokenResponse($creds); } /** @@ -384,48 +248,20 @@ public function revokeToken($token = null) $token = $this->token['access_token']; } } - $request = new Google_Http_Request( - self::OAUTH2_REVOKE_URI, - 'POST', - array(), - "token=$token" - ); - $request->disableGzip(); - $response = $this->client->getIo()->makeRequest($request); - $code = $response->getResponseHttpCode(); - if ($code == 200) { - $this->token = null; - return true; - } - return false; - } + $request = $this->http->createRequest('POST', self::OAUTH2_REVOKE_URI); + $request->addHeader('Cache-Control', 'no-store'); + $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); + $request->getBody()->replaceFields(array('token' => $token)); + + $response = $this->http->send($request); + if ($response->getStatusCode() == 200) { + $this->token = null; - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token || !isset($this->token['created'])) { return true; } - // If the token is set to expire in the next 30 seconds. - $expired = ($this->token['created'] - + ($this->token['expires_in'] - 30)) < time(); - - return $expired; - } - - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - return $this->retrieveCertsFromLocation( - $this->client->getClassConfig($this, 'federated_signon_certs_url') - ); + return false; } /** @@ -450,22 +286,26 @@ public function retrieveCertsFromLocation($url) } } - // This relies on makeRequest caching certificate responses. - $request = $this->client->getIo()->makeRequest( - new Google_Http_Request( - $url - ) - ); - if ($request->getResponseHttpCode() == 200) { - $certs = json_decode($request->getResponseBody(), true); - if ($certs) { - return $certs; - } + $request = $this->http->createRequest('GET', $url); + $response = $this->http->send($request); + + if ($response->getStatusCode() == 200) { + return $response->json(); } throw new Google_Auth_Exception( "Failed to retrieve verification certificates: '" . - $request->getResponseBody() . "'.", - $request->getResponseHttpCode() + $response->getBody()->getContents() . "'.", + $response->getStatusCode() + ); + } + + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() + { + return $this->retrieveCertsFromLocation( + $this->client->getClassConfig($this, 'federated_signon_certs_url') ); } @@ -477,159 +317,69 @@ public function retrieveCertsFromLocation($url) * * @param $id_token * @param $audience - * @return Google_Auth_LoginTicket + * @return array the token payload, if successful + * @throws Google_Auth_Exception */ public function verifyIdToken($id_token = null, $audience = null) { - if (!$id_token) { - $id_token = $this->token['id_token']; - } - $certs = $this->getFederatedSignonCerts(); - if (!$audience) { - $audience = $this->client->getClassConfig($this, 'client_id'); - } - - return $this->verifySignedJwtWithCerts( - $id_token, - $certs, - $audience, - array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS) - ); - } - - /** - * Verifies the id token, returns the verified token contents. - * - * @param $jwt string the token - * @param $certs array of certificates - * @param $required_audience string the expected consumer of the token - * @param [$issuer] the expected issues, defaults to Google - * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @throws Google_Auth_Exception - * @return mixed token information if valid, false if not - */ - public function verifySignedJwtWithCerts( - $jwt, - $certs, - $required_audience, - $issuer = null, - $max_expiry = null - ) { - if (!$max_expiry) { - // Set the maximum time we will accept a token for. - $max_expiry = self::MAX_TOKEN_LIFETIME_SECS; - } - - $segments = explode(".", $jwt); - if (count($segments) != 3) { - throw new Google_Auth_Exception("Wrong number of segments in token: $jwt"); + if (is_null($id_token)) { + if (isset($this->token['id_token'])) { + $id_token = $this->token['id_token']; + } else { + throw new LogicException('id_token cannot be null'); + } } - $signed = $segments[0] . "." . $segments[1]; - $signature = Google_Utils::urlSafeB64Decode($segments[2]); - // Parse envelope. - $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true); - if (!$envelope) { - throw new Google_Auth_Exception("Can't parse token envelope: " . $segments[0]); + if (is_null($audience)) { + $audience = $this->client->getClassConfig($this, 'client_id'); } - // Parse token - $json_body = Google_Utils::urlSafeB64Decode($segments[1]); - $payload = json_decode($json_body, true); - if (!$payload) { - throw new Google_Auth_Exception("Can't parse token payload: " . $segments[1]); - } + $auth = $this->createAuthClient(); + $auth->setIdToken($id_token); + $auth->setAudience($audience); // Check signature - $verified = false; + $certs = $this->getFederatedSignonCerts(); foreach ($certs as $keyName => $pem) { - $public_key = new Google_Verifier_Pem($pem); - if ($public_key->verify($signed, $signature)) { - $verified = true; - break; + try { + $key = openssl_x509_read($pem); + $payload = $auth->verifyIdToken($key, array('RS256')); + } catch (\DomainException $e) { + // try next cert + $this->client->getLogger()->notice('ID token validation failed: '.$e->getMessage()); + } + openssl_x509_free($key); + if (!empty($payload)) { + return (array) $payload; } } - if (!$verified) { - throw new Google_Auth_Exception("Invalid token signature: $jwt"); - } - - // Check issued-at timestamp - $iat = 0; - if (array_key_exists("iat", $payload)) { - $iat = $payload["iat"]; - } - if (!$iat) { - throw new Google_Auth_Exception("No issue time in token: $json_body"); - } - $earliest = $iat - self::CLOCK_SKEW_SECS; + throw new Google_Auth_Exception("Invalid token signature: $id_token"); + } - // Check expiration timestamp - $now = time(); - $exp = 0; - if (array_key_exists("exp", $payload)) { - $exp = $payload["exp"]; - } - if (!$exp) { - throw new Google_Auth_Exception("No expiration time in token: $json_body"); - } - if ($exp >= $now + $max_expiry) { - throw new Google_Auth_Exception( - sprintf("Expiration time too far in future: %s", $json_body) - ); + /** + * Fetches a fresh access token with a given assertion token. + * @param Google_Auth_AssertionCredentials $assertionCredentials optional. + * @return void + */ + public function refreshTokenWithAssertion() + { + if (is_null($this->signingKey)) { + throw new LogicException('Cannot refresh token with assertion without signing key'); } - $latest = $exp + self::CLOCK_SKEW_SECS; - if ($now < $earliest) { - throw new Google_Auth_Exception( - sprintf( - "Token used too early, %s < %s: %s", - $now, - $earliest, - $json_body - ) - ); - } - if ($now > $latest) { - throw new Google_Auth_Exception( - sprintf( - "Token used too late, %s > %s: %s", - $now, - $latest, - $json_body - ) - ); - } + $this->client->getLogger()->info( + 'OAuth2 access token refresh with Signed JWT assertion grants.' + ); - // support HTTP and HTTPS issuers - // @see https://developers.google.com/identity/sign-in/web/backend-auth - $iss = $payload['iss']; - if ($issuer && !in_array($iss, (array) $issuer)) { - throw new Google_Auth_Exception( - sprintf( - "Invalid issuer, %s not in %s: %s", - $iss, - "[".implode(",", (array) $issuer)."]", - $json_body - ) - ); - } + $auth = $this->createAuthClient(); + $auth->setGrantType(OAuth2::JWT_URN); + $auth->setAudience(self::OAUTH2_TOKEN_URI); + $auth->setScope($this->client->getScopes()); - // Check audience - $aud = $payload["aud"]; - if ($aud != $required_audience) { - throw new Google_Auth_Exception( - sprintf( - "Wrong recipient, %s != %s:", - $aud, - $required_audience, - $json_body - ) - ); - } + $creds = $auth->fetchAuthToken($this->http); - // All good. - return new Google_Auth_LoginTicket($envelope, $payload); + return $this->handleAuthTokenResponse($creds); } /** @@ -643,4 +393,66 @@ private function maybeAddParam($params, $name) } return $params; } + + /** + * create a default google auth object + */ + private function createAuthClient() + { + $auth = new OAuth2( + array( + 'clientId' => $this->client->getClassConfig($this, 'client_id'), + 'clientSecret' => $this->client->getClassConfig($this, 'client_secret'), + 'authorizationUri' => self::OAUTH2_AUTH_URL, + 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, + 'redirectUri' => $this->client->getClassConfig($this, 'redirect_uri'), + 'issuer' => $this->client->getClassConfig($this, 'client_id'), + 'signingKey' => $this->signingKey, + 'signingAlgorithm' => $this->signingAlgorithm, + ) + ); + + return $auth; + } + + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() + { + if (!$this->token || !isset($this->token['created'])) { + return true; + } + + // If the token is set to expire in the next 30 seconds. + $expired = ($this->token['created'] + + ($this->token['expires_in'] - 30)) < time(); + + return $expired; + } + + /** + * handle the http response, set the access token, and raise an error if + * applicable + */ + private function handleAuthTokenResponse($creds) + { + if ($creds != null && isset($creds['access_token'])) { + $this->setAccessToken(json_encode($creds)); + $this->token['created'] = time(); + return $this->getAccessToken(); + } elseif ($creds != null && isset($creds['error'])) { + $errorText = $creds['error']; + if (isset($creds['error_description'])) { + $errorText .= ": " . $creds['error_description']; + } + } + throw new Google_Auth_Exception( + sprintf( + "Error fetching OAuth2 access token, message: '%s'", + $errorText + ) + ); + } } diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php index 9a8e58c05..46f2857e5 100644 --- a/src/Google/Auth/Simple.php +++ b/src/Google/Auth/Simple.php @@ -24,7 +24,7 @@ * completely unauthenticated, or by using a Simple API Access developer * key. */ -class Google_Auth_Simple extends Google_Auth_Abstract +class Google_Auth_Simple implements Google_Auth_Interface { private $client; @@ -39,24 +39,25 @@ public function __construct(Google_Client $client, $config = null) * (which can modify the request in what ever way fits the auth mechanism) * and then calls apiCurlIO::makeRequest on the signed request * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the + * @param GuzzleHttp\Message\Request $request + * @return GuzzleHttp\Message\Request The resulting HTTP response including the * responseHttpCode, responseHeaders and responseBody. */ - public function authenticatedRequest(Google_Http_Request $request) + public function authenticatedRequest($request) { $request = $this->sign($request); - return $this->io->makeRequest($request); + + return $this->client->getHttpClient()->send($request); } - public function sign(Google_Http_Request $request) + public function sign($request) { $key = $this->client->getClassConfig($this, 'developer_key'); if ($key) { $this->client->getLogger()->debug( 'Simple API Access developer key authentication' ); - $request->setQueryParam('key', $key); + $request->getQuery()->set('key', $key); } return $request; } diff --git a/src/Google/Client.php b/src/Google/Client.php index fc12a7c8b..99f9a123e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -19,24 +19,23 @@ require_once dirname(__FILE__) . '/autoload.php'; } +use GuzzleHttp\Client; +use GuzzleHttp\ClientInterface; +use GuzzleHttp\Post\PostBodyInterface; +use GuzzleHttp\Stream\Stream; /** * The Google API Client * http://code.google.com/p/google-api-php-client/ */ class Google_Client { - const LIBVER = "1.1.5"; + const LIBVER = "2.0.0-alpha"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** - * @var Google_Auth_Abstract $auth + * @var Google_Auth_Interface $auth */ private $auth; - /** - * @var Google_IO_Abstract $io - */ - private $io; - /** * @var Google_Cache_Abstract $cache */ @@ -72,7 +71,7 @@ class Google_Client * * @param $config Google_Config or string for the ini file to load */ - public function __construct($config = null) + public function __construct($config = null, ClientInterface $httpClient = null) { if (is_string($config) && strlen($config)) { $config = new Google_Config($config); @@ -84,9 +83,9 @@ public function __construct($config = null) $config->setCacheClass('Google_Cache_Memcache'); } - if (version_compare(phpversion(), "5.3.4", "<=") || $this->isAppEngine()) { + if ($this->isAppEngine()) { // Automatically disable compress.zlib, as currently unsupported. - $config->setClassConfig('Google_Http_Request', 'disable_gzip', true); + $config->setClassConfig('request', 'disable_gzip', true); } } @@ -100,6 +99,7 @@ public function __construct($config = null) } $this->config = $config; + $this->httpClient = $httpClient; } /** @@ -127,33 +127,6 @@ public function authenticate($code, $crossClient = false) $this->authenticated = true; return $this->getAuth()->authenticate($code, $crossClient); } - - /** - * Loads a service account key and parameters from a JSON - * file from the Google Developer Console. Uses that and the - * given array of scopes to return an assertion credential for - * use with refreshTokenWithAssertionCredential. - * - * @param string $jsonLocation File location of the project-key.json. - * @param array $scopes The scopes to assert. - * @return Google_Auth_AssertionCredentials. - * @ - */ - public function loadServiceAccountJson($jsonLocation, $scopes) - { - $data = json_decode(file_get_contents($jsonLocation)); - if (isset($data->type) && $data->type == 'service_account') { - // Service Account format. - $cred = new Google_Auth_AssertionCredentials( - $data->client_email, - $scopes, - $data->private_key - ); - return $cred; - } else { - throw new Google_Exception("Invalid service account JSON file."); - } - } /** * Set the auth config from the JSON string provided. @@ -166,14 +139,16 @@ public function loadServiceAccountJson($jsonLocation, $scopes) public function setAuthConfig($json) { $data = json_decode($json); - $key = isset($data->installed) ? 'installed' : 'web'; - if (!isset($data->$key)) { - throw new Google_Exception("Invalid client secret JSON file."); - } - $this->setClientId($data->$key->client_id); - $this->setClientSecret($data->$key->client_secret); - if (isset($data->$key->redirect_uris)) { - $this->setRedirectUri($data->$key->redirect_uris[0]); + if (isset($data->installed) || isset($data->web)) { + $key = isset($data->installed) ? 'installed' : 'web'; + $this->setClientId($data->$key->client_id); + $this->setClientSecret($data->$key->client_secret); + if (isset($data->$key->redirect_uris)) { + $this->setRedirectUri($data->$key->redirect_uris[0]); + } + } else { + $this->getAuth()->setSigningKey($data->private_key); + $this->setClientId($data->client_email); } } @@ -222,24 +197,14 @@ public function setAccessToken($accessToken) /** * Set the authenticator object - * @param Google_Auth_Abstract $auth + * @param Google_Auth_Interface $auth */ - public function setAuth(Google_Auth_Abstract $auth) + public function setAuth(Google_Auth_Interface $auth) { $this->config->setAuthClass(get_class($auth)); $this->auth = $auth; } - /** - * Set the IO object - * @param Google_IO_Abstract $io - */ - public function setIo(Google_IO_Abstract $io) - { - $this->config->setIoClass(get_class($io)); - $this->io = $io; - } - /** * Set the Cache object * @param Google_Cache_Abstract $cache @@ -474,7 +439,7 @@ public function revokeToken($token = null) * isn't provided. * @throws Google_Auth_Exception * @param string|null $token The token (id_token) that should be verified. - * @return Google_Auth_LoginTicket Returns an apiLoginTicket if the verification was + * @return Returns the token payload as an array if the verification was * successful. */ public function verifyIdToken($token = null) @@ -499,14 +464,6 @@ public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $ return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry); } - /** - * @param $creds Google_Auth_AssertionCredentials - */ - public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) - { - $this->getAuth()->setAssertionCredentials($creds); - } - /** * Set the scopes to be requested. Must be called before createAuthUrl(). * Will remove any previously configured scopes. @@ -574,28 +531,33 @@ public function setDefer($defer) /** * Helper method to execute deferred HTTP requests. * - * @param $request Google_Http_Request|Google_Http_Batch + * @param $request GuzzleHttp\Message\RequestInterface|Google_Http_Batch * @throws Google_Exception * @return object of the type of the expected class or array. */ - public function execute($request) + public function execute($request, $expectedClass = null) { - if ($request instanceof Google_Http_Request) { - $request->setUserAgent( - $this->getApplicationName() - . " " . self::USER_AGENT_SUFFIX - . $this->getLibraryVersion() - ); - if (!$this->getClassConfig("Google_Http_Request", "disable_gzip")) { - $request->enableGzip(); - } - $request->maybeMoveParametersToBody(); - return Google_Http_REST::execute($this, $request); - } else if ($request instanceof Google_Http_Batch) { - return $request->execute(); - } else { - throw new Google_Exception("Do not know how to execute this type of object."); + $request->setHeader( + 'User-Agent', + $this->getApplicationName() + . " " . self::USER_AGENT_SUFFIX + . $this->getLibraryVersion() + ); + + $http = $this->getHttpClient(); + if ($this->getClassConfig('request', 'disable_gzip')) { + $http->setDefaultOption('disable_gzip', true); + } + $config = $this->getClassConfig('Google_Task_Runner'); + $retryMap = $this->getClassConfig('Google_Service_Exception', 'retry_map'); + + $result = Google_Http_REST::execute($http, $request, $config, $retryMap); + $expectedClass = $expectedClass ?: $request->getHeader('X-Php-Expected-Class'); + if ($expectedClass) { + $result = new $expectedClass($result); } + + return $result; } /** @@ -608,7 +570,7 @@ public function shouldDefer() } /** - * @return Google_Auth_Abstract Authentication implementation + * @return Google_Auth_Interface Authentication implementation */ public function getAuth() { @@ -619,18 +581,6 @@ public function getAuth() return $this->auth; } - /** - * @return Google_IO_Abstract IO implementation - */ - public function getIo() - { - if (!isset($this->io)) { - $class = $this->config->getIoClass(); - $this->io = new $class($this); - } - return $this->io; - } - /** * @return Google_Cache_Abstract Cache implementation */ @@ -712,4 +662,25 @@ public function isAppEngine() return (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); } + + public function setHttpClient(ClientInterface $httpClient) + { + $this->httpClient = $httpClient; + } + + public function getHttpClient() + { + if (is_null($this->httpClient)) { + $this->httpClient = $this->createDefaultHttpClient(); + } + + return $this->httpClient; + } + + protected function createDefaultHttpClient() + { + $options = array('base_url' => $this->getBasePath()); + + return new Client($options); + } } diff --git a/src/Google/Config.php b/src/Google/Config.php index d582d8316..4ca8d903e 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -69,7 +69,7 @@ public function __construct($ini_file_location = null) 'mode' => 0640, 'lock' => false, ), - 'Google_Http_Request' => array( + 'request' => array( // Disable the use of gzip on calls if set to true. Defaults to false. 'disable_gzip' => self::GZIP_ENABLED, @@ -86,7 +86,7 @@ public function __construct($ini_file_location = null) // https://developers.google.com/console 'client_id' => '', 'client_secret' => '', - 'redirect_uri' => '', + 'redirect_uri' => null, // Simple API access key, also from the API console. Ensure you get // a Server key, and not a Browser key. @@ -122,11 +122,7 @@ public function __construct($ini_file_location = null) '500' => self::TASK_RETRY_ALWAYS, '503' => self::TASK_RETRY_ALWAYS, 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS - ) - ), - 'Google_IO_Exception' => array( - 'retry_map' => !extension_loaded('curl') ? array() : array( + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, @@ -383,8 +379,8 @@ public function setDeveloperKey($key) * restrict sign-in to accounts at that domain. * * This should not be used to ensure security on your application - check - * the hd values within an id token (@see Google_Auth_LoginTicket) after sign - * in to ensure that the user is from the domain you were expecting. + * the hd values within an id token after sign in to ensure that the user + * is from the domain you were expecting. * * @param $hd string - the domain to use. */ diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 039b4dd32..333232e0b 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -19,37 +19,28 @@ require_once dirname(__FILE__) . '/../autoload.php'; } +use GuzzleHttp\Pool; +use GuzzleHttp\Message\RequestInterface; +use GuzzleHttp\Message\ResponseInterface; +use GuzzleHttp\BatchResults; + /** * Class to handle batched requests to the Google API service. */ class Google_Http_Batch { - /** @var string Multipart Boundary. */ - private $boundary; - /** @var array service requests to be executed. */ private $requests = array(); /** @var Google_Client */ private $client; - private $expected_classes = array(); - - private $root_url; - - private $batch_path; - - public function __construct(Google_Client $client, $boundary = false, $rootUrl = '', $batchPath = '') + public function __construct(Google_Client $client) { $this->client = $client; - $this->root_url = rtrim($rootUrl ? $rootUrl : $this->client->getBasePath(), '/'); - $this->batch_path = $batchPath ? $batchPath : 'batch'; - $this->expected_classes = array(); - $boundary = (false == $boundary) ? mt_rand() : $boundary; - $this->boundary = str_replace('"', '', $boundary); } - public function add(Google_Http_Request $request, $key = false) + public function add(RequestInterface $request, $key = false) { if (false == $key) { $key = mt_rand(); @@ -60,86 +51,49 @@ public function add(Google_Http_Request $request, $key = false) public function execute() { - $body = ''; + $responses = Pool::batch($this->client->getHttpClient(), $this->requests); - /** @var Google_Http_Request $req */ - foreach ($this->requests as $key => $req) { - $body .= "--{$this->boundary}\n"; - $body .= $req->toBatchString($key) . "\n\n"; - $this->expected_classes["response-" . $key] = $req->getExpectedClass(); - } - - $body .= "--{$this->boundary}--"; - - $url = $this->root_url . '/' . $this->batch_path; - $httpRequest = new Google_Http_Request($url, 'POST'); - $httpRequest->setRequestHeaders( - array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary) - ); - - $httpRequest->setPostBody($body); - $response = $this->client->getIo()->makeRequest($httpRequest); - - return $this->parseResponse($response); + return $this->parseResponse($responses); } - public function parseResponse(Google_Http_Request $response) + protected function parseResponse(BatchResults $responses) { - $contentType = $response->getResponseHeader('content-type'); - $contentType = explode(';', $contentType); - $boundary = false; - foreach ($contentType as $part) { - $part = (explode('=', $part, 2)); - if (isset($part[0]) && 'boundary' == trim($part[0])) { - $boundary = $part[1]; + $batchResponses = array(); + $requestKeys = array_keys($this->requests); + $i = 0; + $j = 0; + while ($i < count($responses)) { + $key = 'response-'.$requestKeys[$j]; + if ($this->isRedirect($responses[$i])) { + $batchResponses[$key.'-redirect'] = $responses[$i]; + $i++; + } + $response = $responses[$i]; + if ( + $response instanceof ResponseInterface && + $class = $this->requests[$requestKeys[$j]]->getHeader('X-Php-Expected-Class') + ) { + $response = new $class($response->json()); } + $batchResponses[$key] = $response; + $i++; + $j++; } - $body = $response->getResponseBody(); - if ($body) { - $body = str_replace("--$boundary--", "--$boundary", $body); - $parts = explode("--$boundary", $body); - $responses = array(); - - foreach ($parts as $part) { - $part = trim($part); - if (!empty($part)) { - list($metaHeaders, $part) = explode("\r\n\r\n", $part, 2); - $metaHeaders = $this->client->getIo()->getHttpResponseHeaders($metaHeaders); - - $status = substr($part, 0, strpos($part, "\n")); - $status = explode(" ", $status); - $status = $status[1]; - - list($partHeaders, $partBody) = $this->client->getIo()->ParseHttpResponse($part, false); - $response = new Google_Http_Request(""); - $response->setResponseHttpCode($status); - $response->setResponseHeaders($partHeaders); - $response->setResponseBody($partBody); - - // Need content id. - $key = $metaHeaders['content-id']; - - if (isset($this->expected_classes[$key]) && - strlen($this->expected_classes[$key]) > 0) { - $class = $this->expected_classes[$key]; - $response->setExpectedClass($class); - } - - try { - $response = Google_Http_REST::decodeHttpResponse($response, $this->client); - $responses[$key] = $response; - } catch (Google_Service_Exception $e) { - // Store the exception as the response, so successful responses - // can be processed. - $responses[$key] = $e; - } - } - } + return $batchResponses; + } - return $responses; + private function isRedirect($request) + { + // Guzzle returns exceptions instead of request objects for batch requests + // when "exceptions" is set to "true" + if ($request instanceof \Exception) { + return false; } - return null; + $location = $request->getHeader('Location'); + + return in_array($request->getStatusCode(), array(201, 301, 302, 303, 307, 308)) + && !empty($location); } } diff --git a/src/Google/Http/CacheParser.php b/src/Google/Http/CacheParser.php deleted file mode 100644 index a6167adc8..000000000 --- a/src/Google/Http/CacheParser.php +++ /dev/null @@ -1,185 +0,0 @@ -getRequestMethod(); - if (! in_array($method, self::$CACHEABLE_HTTP_METHODS)) { - return false; - } - - // Don't cache authorized requests/responses. - // [rfc2616-14.8] When a shared cache receives a request containing an - // Authorization field, it MUST NOT return the corresponding response - // as a reply to any other request... - if ($resp->getRequestHeader("authorization")) { - return false; - } - - return true; - } - - /** - * Check if an HTTP response can be cached by a private local cache. - * - * @static - * @param Google_Http_Request $resp - * @return bool True if the response is cacheable. - * False if the response is un-cacheable. - */ - public static function isResponseCacheable(Google_Http_Request $resp) - { - // First, check if the HTTP request was cacheable before inspecting the - // HTTP response. - if (false == self::isRequestCacheable($resp)) { - return false; - } - - $code = $resp->getResponseHttpCode(); - if (! in_array($code, self::$CACHEABLE_STATUS_CODES)) { - return false; - } - - // The resource is uncacheable if the resource is already expired and - // the resource doesn't have an ETag for revalidation. - $etag = $resp->getResponseHeader("etag"); - if (self::isExpired($resp) && $etag == false) { - return false; - } - - // [rfc2616-14.9.2] If [no-store is] sent in a response, a cache MUST NOT - // store any part of either this response or the request that elicited it. - $cacheControl = $resp->getParsedCacheControl(); - if (isset($cacheControl['no-store'])) { - return false; - } - - // Pragma: no-cache is an http request directive, but is occasionally - // used as a response header incorrectly. - $pragma = $resp->getResponseHeader('pragma'); - if ($pragma == 'no-cache' || strpos($pragma, 'no-cache') !== false) { - return false; - } - - // [rfc2616-14.44] Vary: * is extremely difficult to cache. "It implies that - // a cache cannot determine from the request headers of a subsequent request - // whether this response is the appropriate representation." - // Given this, we deem responses with the Vary header as uncacheable. - $vary = $resp->getResponseHeader('vary'); - if ($vary) { - return false; - } - - return true; - } - - /** - * @static - * @param Google_Http_Request $resp - * @return bool True if the HTTP response is considered to be expired. - * False if it is considered to be fresh. - */ - public static function isExpired(Google_Http_Request $resp) - { - // HTTP/1.1 clients and caches MUST treat other invalid date formats, - // especially including the value “0”, as in the past. - $parsedExpires = false; - $responseHeaders = $resp->getResponseHeaders(); - - if (isset($responseHeaders['expires'])) { - $rawExpires = $responseHeaders['expires']; - // Check for a malformed expires header first. - if (empty($rawExpires) || (is_numeric($rawExpires) && $rawExpires <= 0)) { - return true; - } - - // See if we can parse the expires header. - $parsedExpires = strtotime($rawExpires); - if (false == $parsedExpires || $parsedExpires <= 0) { - return true; - } - } - - // Calculate the freshness of an http response. - $freshnessLifetime = false; - $cacheControl = $resp->getParsedCacheControl(); - if (isset($cacheControl['max-age'])) { - $freshnessLifetime = $cacheControl['max-age']; - } - - $rawDate = $resp->getResponseHeader('date'); - $parsedDate = strtotime($rawDate); - - if (empty($rawDate) || false == $parsedDate) { - // We can't default this to now, as that means future cache reads - // will always pass with the logic below, so we will require a - // date be injected if not supplied. - throw new Google_Exception("All cacheable requests must have creation dates."); - } - - if (false == $freshnessLifetime && isset($responseHeaders['expires'])) { - $freshnessLifetime = $parsedExpires - $parsedDate; - } - - if (false == $freshnessLifetime) { - return true; - } - - // Calculate the age of an http response. - $age = max(0, time() - $parsedDate); - if (isset($responseHeaders['age'])) { - $age = max($age, strtotime($responseHeaders['age'])); - } - - return $freshnessLifetime <= $age; - } - - /** - * Determine if a cache entry should be revalidated with by the origin. - * - * @param Google_Http_Request $response - * @return bool True if the entry is expired, else return false. - */ - public static function mustRevalidate(Google_Http_Request $response) - { - // [13.3] When a cache has a stale entry that it would like to use as a - // response to a client's request, it first has to check with the origin - // server to see if its cached entry is still usable. - return self::isExpired($response); - } -} diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 02a2f4510..c567d2220 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -15,6 +15,10 @@ * limitations under the License. */ +use GuzzleHttp\Message\Request; +use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Url; + if (!class_exists('Google_Client')) { require_once dirname(__FILE__) . '/../autoload.php'; } @@ -59,12 +63,6 @@ class Google_Http_MediaFileUpload /** @var string */ private $boundary; - /** - * Result code from last HTTP call - * @var int - */ - private $httpResultCode; - /** * @param $mimeType string * @param $data string The bytes you want to upload. @@ -74,27 +72,20 @@ class Google_Http_MediaFileUpload */ public function __construct( Google_Client $client, - Google_Http_Request $request, + $request, $mimeType, $data, $resumable = false, - $chunkSize = false, - $boundary = false + $chunkSize = false ) { $this->client = $client; $this->request = $request; $this->mimeType = $mimeType; $this->data = $data; - $this->size = strlen($this->data); $this->resumable = $resumable; - if (!$chunkSize) { - $chunkSize = 256 * 1024; - } $this->chunkSize = $chunkSize; $this->progress = 0; - $this->boundary = $boundary; - // Process Media Request $this->process(); } @@ -137,32 +128,36 @@ public function getHttpResultCode() private function makePutRequest(Google_Http_Request $httpRequest) { if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) { - $httpRequest->enableGzip(); + $http->setDefaultOption('disable_gzip', false); } else { - $httpRequest->disableGzip(); + $http->setDefaultOption('disable_gzip', true); } - $response = $this->client->getIo()->makeRequest($httpRequest); - $response->setExpectedClass($this->request->getExpectedClass()); - $code = $response->getResponseHttpCode(); - $this->httpResultCode = $code; + $response = $http->send($request); - if (308 == $code) { + if (308 == $response->getStatusCode()) { // Track the amount uploaded. - $range = explode('-', $response->getResponseHeader('range')); + $range = explode('-', $response->getHeader('range')); $this->progress = $range[1] + 1; // Allow for changing upload URLs. - $location = $response->getResponseHeader('location'); + $location = $response->getHeader('location'); if ($location) { $this->resumeUri = $location; } // No problems, but upload not complete. return false; - } else { - return Google_Http_REST::decodeHttpResponse($response, $this->client); } + + $result = $response->json(); + $expectedClass = $this->request->getHeader('X-Php-Expected-Class'); + + if ($expectedClass) { + $result = new $expectedClass($result); + } + + return $result; } /** @@ -221,18 +216,19 @@ public function resume($resumeUri) */ private function process() { - $postBody = false; + $this->transformToUploadUrl(); + + $postBody = ''; $contentType = false; - $meta = $this->request->getPostBody(); + $meta = (string) $this->request->getBody(); $meta = is_string($meta) ? json_decode($meta, true) : $meta; $uploadType = $this->getUploadType($meta); - $this->request->setQueryParam('uploadType', $uploadType); - $this->transformToUploadUrl(); + $this->request->getQuery()->set('uploadType', $uploadType); $mimeType = $this->mimeType ? $this->mimeType : - $this->request->getRequestHeader('content-type'); + $this->request->getHeader('content-type'); if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { $contentType = $mimeType; @@ -256,18 +252,13 @@ private function process() $postBody = $related; } - $this->request->setPostBody($postBody); + $this->request->setBody(Stream::factory($postBody)); if (isset($contentType) && $contentType) { - $contentTypeHeader['content-type'] = $contentType; - $this->request->setRequestHeaders($contentTypeHeader); + $this->request->setHeader('content-type', $contentType); } - } - private function transformToUploadUrl() - { - $base = $this->request->getBaseComponent(); - $this->request->setBaseComponent($base . '/upload'); + return $this->request; } /** @@ -300,40 +291,55 @@ public function getResumeUri() private function fetchResumeUri() { $result = null; - $body = $this->request->getPostBody(); + $body = $this->request->getBody(); if ($body) { $headers = array( 'content-type' => 'application/json; charset=UTF-8', - 'content-length' => Google_Utils::getStrLen($body), + 'content-length' => $body->getSize(), 'x-upload-content-type' => $this->mimeType, 'x-upload-content-length' => $this->size, 'expect' => '', ); - $this->request->setRequestHeaders($headers); + foreach ($headers as $key => $value) { + $this->request->setHeader($key, $value); + } } - $response = $this->client->getIo()->makeRequest($this->request); - $location = $response->getResponseHeader('location'); - $code = $response->getResponseHttpCode(); + $response = $this->client->getHttpClient()->send($this->request); + $location = $response->getHeader('location'); + $code = $response->getStatusCode(); if (200 == $code && true == $location) { return $location; } + $message = $code; - $body = @json_decode($response->getResponseBody()); - if (!empty($body->error->errors) ) { + $body = $response->json(); + if (isset($body['error']['errors'])) { $message .= ': '; - foreach ($body->error->errors as $error) { - $message .= "{$error->domain}, {$error->message};"; + foreach ($body['error']['errors'] as $error) { + $message .= "{$error[domain]}, {$error[message]};"; } $message = rtrim($message, ';'); } $error = "Failed to start the resumable upload (HTTP {$message})"; $this->client->getLogger()->error($error); + throw new Google_Exception($error); } + private function transformToUploadUrl() + { + $parts = parse_url($this->request->getUrl()); + if (!isset($parts['path'])) { + $parts['path'] = ''; + } + $parts['path'] = '/upload' . $parts['path']; + $url = Url::fromString(Url::buildUrl($parts)); + $this->request->setUrl($url); + } + public function setChunkSize($chunkSize) { $this->chunkSize = $chunkSize; diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 491c06846..da2f43003 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -15,6 +15,10 @@ * limitations under the License. */ +use GuzzleHttp\Message\RequestInterface; +use GuzzleHttp\Message\ResponseInterface; +use GuzzleHttp\ClientInterface; + if (!class_exists('Google_Client')) { require_once dirname(__FILE__) . '/../autoload.php'; } @@ -25,154 +29,79 @@ class Google_Http_REST { /** - * Executes a Google_Http_Request and (if applicable) automatically retries + * Executes a GuzzleHttp\Message\Request and (if applicable) automatically retries * when errors occur. * * @param Google_Client $client - * @param Google_Http_Request $req + * @param GuzzleHttp\Message\Request $req * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ - public static function execute(Google_Client $client, Google_Http_Request $req) - { + public static function execute( + ClientInterface $client, + RequestInterface $request, + $config = array(), + $retryMap = array() + ) { $runner = new Google_Task_Runner( - $client, - sprintf('%s %s', $req->getRequestMethod(), $req->getUrl()), + $config, + sprintf('%s %s', $request->getMethod(), $request->getUrl()), array(get_class(), 'doExecute'), - array($client, $req) + array($client, $request, $retryMap) ); return $runner->run(); } /** - * Executes a Google_Http_Request + * Executes a GuzzleHttp\Message\RequestInterface * * @param Google_Client $client - * @param Google_Http_Request $req + * @param GuzzleHttp\Message\RequestInterface $request * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ - public static function doExecute(Google_Client $client, Google_Http_Request $req) + public static function doExecute(ClientInterface $client, RequestInterface $request, $retryMap = array()) { - $httpRequest = $client->getIo()->makeRequest($req); - $httpRequest->setExpectedClass($req->getExpectedClass()); - return self::decodeHttpResponse($httpRequest, $client); + $response = $client->send($request); + + return self::decodeHttpResponse($response, $request, $retryMap); } /** * Decode an HTTP Response. * @static * @throws Google_Service_Exception - * @param Google_Http_Request $response The http response to be decoded. - * @param Google_Client $client + * @param GuzzleHttp\Message\RequestInterface $response The http response to be decoded. + * @param GuzzleHttp\Message\ResponseInterface $response * @return mixed|null */ - public static function decodeHttpResponse($response, Google_Client $client = null) - { - $code = $response->getResponseHttpCode(); - $body = $response->getResponseBody(); - $decoded = null; + public static function decodeHttpResponse( + ResponseInterface $response, + RequestInterface $request = null, + $retryMap = array() + ) { + $result = $response->json(); + $body = (string) $response->getBody(); + $code = $response->getStatusCode(); + // retry strategy if ((intVal($code)) >= 300) { - $decoded = json_decode($body, true); - $err = 'Error calling ' . $response->getRequestMethod() . ' ' . $response->getUrl(); - if (isset($decoded['error']) && - isset($decoded['error']['message']) && - isset($decoded['error']['code'])) { - // if we're getting a json encoded error definition, use that instead of the raw response - // body for improved readability - $err .= ": ({$decoded['error']['code']}) {$decoded['error']['message']}"; - } else { - $err .= ": ($code) $body"; - } - $errors = null; // Specific check for APIs which don't return error details, such as Blogger. - if (isset($decoded['error']) && isset($decoded['error']['errors'])) { - $errors = $decoded['error']['errors']; - } - - $map = null; - if ($client) { - $client->getLogger()->error( - $err, - array('code' => $code, 'errors' => $errors) - ); - - $map = $client->getClassConfig( - 'Google_Service_Exception', - 'retry_map' - ); - } - throw new Google_Service_Exception($err, $code, null, $errors, $map); - } - - // Only attempt to decode the response, if the response code wasn't (204) 'no content' - if ($code != '204') { - if ($response->getExpectedRaw()) { - return $body; - } - - $decoded = json_decode($body, true); - if ($decoded === null || $decoded === "") { - $error = "Invalid json in service response: $body"; - if ($client) { - $client->getLogger()->error($error); - } - throw new Google_Service_Exception($error); + if (isset($result['error']) && isset($result['error']['errors'])) { + $errors = $result['error']['errors']; } - - if ($response->getExpectedClass()) { - $class = $response->getExpectedClass(); - $decoded = new $class($decoded); - } - } - return $decoded; - } - - /** - * Parse/expand request parameters and create a fully qualified - * request uri. - * @static - * @param string $servicePath - * @param string $restPath - * @param array $params - * @return string $requestUrl - */ - public static function createRequestUri($servicePath, $restPath, $params) - { - $requestUrl = $servicePath . $restPath; - $uriTemplateVars = array(); - $queryVars = array(); - foreach ($params as $paramName => $paramSpec) { - if ($paramSpec['type'] == 'boolean') { - $paramSpec['value'] = ($paramSpec['value']) ? 'true' : 'false'; - } - if ($paramSpec['location'] == 'path') { - $uriTemplateVars[$paramName] = $paramSpec['value']; - } else if ($paramSpec['location'] == 'query') { - if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { - foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); - } - } else { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); - } - } - } - - if (count($uriTemplateVars)) { - $uriTemplateParser = new Google_Utils_URITemplate(); - $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); + throw new Google_Service_Exception($body, $code, null, $errors, $retryMap); } - if (count($queryVars)) { - $requestUrl .= '?' . implode($queryVars, '&'); + // return raw response when "alt" is "media" + if ($request && $request->getQuery()->get('alt') == 'media') { + return $body; } - return $requestUrl; + return $result; } } diff --git a/src/Google/Http/Request.php b/src/Google/Http/Request.php deleted file mode 100644 index c09a9d9cb..000000000 --- a/src/Google/Http/Request.php +++ /dev/null @@ -1,504 +0,0 @@ - - * @author Chirag Shah - * - */ -class Google_Http_Request -{ - const GZIP_UA = " (gzip)"; - - private $batchHeaders = array( - 'Content-Type' => 'application/http', - 'Content-Transfer-Encoding' => 'binary', - 'MIME-Version' => '1.0', - ); - - protected $queryParams; - protected $requestMethod; - protected $requestHeaders; - protected $baseComponent = null; - protected $path; - protected $postBody; - protected $userAgent; - protected $canGzip = null; - - protected $responseHttpCode; - protected $responseHeaders; - protected $responseBody; - - protected $expectedClass; - protected $expectedRaw = false; - - public $accessKey; - - public function __construct( - $url, - $method = 'GET', - $headers = array(), - $postBody = null - ) { - $this->setUrl($url); - $this->setRequestMethod($method); - $this->setRequestHeaders($headers); - $this->setPostBody($postBody); - } - - /** - * Misc function that returns the base url component of the $url - * used by the OAuth signing class to calculate the base string - * @return string The base url component of the $url. - */ - public function getBaseComponent() - { - return $this->baseComponent; - } - - /** - * Set the base URL that path and query parameters will be added to. - * @param $baseComponent string - */ - public function setBaseComponent($baseComponent) - { - $this->baseComponent = rtrim($baseComponent, '/'); - } - - /** - * Enable support for gzipped responses with this request. - */ - public function enableGzip() - { - $this->setRequestHeaders(array("Accept-Encoding" => "gzip")); - $this->canGzip = true; - $this->setUserAgent($this->userAgent); - } - - /** - * Disable support for gzip responses with this request. - */ - public function disableGzip() - { - if ( - isset($this->requestHeaders['accept-encoding']) && - $this->requestHeaders['accept-encoding'] == "gzip" - ) { - unset($this->requestHeaders['accept-encoding']); - } - $this->canGzip = false; - $this->userAgent = str_replace(self::GZIP_UA, "", $this->userAgent); - } - - /** - * Can this request accept a gzip response? - * @return bool - */ - public function canGzip() - { - return $this->canGzip; - } - - /** - * Misc function that returns an array of the query parameters of the current - * url used by the OAuth signing class to calculate the signature - * @return array Query parameters in the query string. - */ - public function getQueryParams() - { - return $this->queryParams; - } - - /** - * Set a new query parameter. - * @param $key - string to set, does not need to be URL encoded - * @param $value - string to set, does not need to be URL encoded - */ - public function setQueryParam($key, $value) - { - $this->queryParams[$key] = $value; - } - - /** - * @return string HTTP Response Code. - */ - public function getResponseHttpCode() - { - return (int) $this->responseHttpCode; - } - - /** - * @param int $responseHttpCode HTTP Response Code. - */ - public function setResponseHttpCode($responseHttpCode) - { - $this->responseHttpCode = $responseHttpCode; - } - - /** - * @return $responseHeaders (array) HTTP Response Headers. - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * @return string HTTP Response Body - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Set the class the response to this request should expect. - * - * @param $class string the class name - */ - public function setExpectedClass($class) - { - $this->expectedClass = $class; - } - - /** - * Retrieve the expected class the response should expect. - * @return string class name - */ - public function getExpectedClass() - { - return $this->expectedClass; - } - - /** - * Enable expected raw response - */ - public function enableExpectedRaw() - { - $this->expectedRaw = true; - } - - /** - * Disable expected raw response - */ - public function disableExpectedRaw() - { - $this->expectedRaw = false; - } - - /** - * Expected raw response or not. - * @return boolean expected raw response - */ - public function getExpectedRaw() - { - return $this->expectedRaw; - } - - /** - * @param array $headers The HTTP response headers - * to be normalized. - */ - public function setResponseHeaders($headers) - { - $headers = Google_Utils::normalize($headers); - if ($this->responseHeaders) { - $headers = array_merge($this->responseHeaders, $headers); - } - - $this->responseHeaders = $headers; - } - - /** - * @param string $key - * @return array|boolean Returns the requested HTTP header or - * false if unavailable. - */ - public function getResponseHeader($key) - { - return isset($this->responseHeaders[$key]) - ? $this->responseHeaders[$key] - : false; - } - - /** - * @param string $responseBody The HTTP response body. - */ - public function setResponseBody($responseBody) - { - $this->responseBody = $responseBody; - } - - /** - * @return string $url The request URL. - */ - public function getUrl() - { - return $this->baseComponent . $this->path . - (count($this->queryParams) ? - "?" . $this->buildQuery($this->queryParams) : - ''); - } - - /** - * @return string $method HTTP Request Method. - */ - public function getRequestMethod() - { - return $this->requestMethod; - } - - /** - * @return array $headers HTTP Request Headers. - */ - public function getRequestHeaders() - { - return $this->requestHeaders; - } - - /** - * @param string $key - * @return array|boolean Returns the requested HTTP header or - * false if unavailable. - */ - public function getRequestHeader($key) - { - return isset($this->requestHeaders[$key]) - ? $this->requestHeaders[$key] - : false; - } - - /** - * @return string $postBody HTTP Request Body. - */ - public function getPostBody() - { - return $this->postBody; - } - - /** - * @param string $url the url to set - */ - public function setUrl($url) - { - if (substr($url, 0, 4) != 'http') { - // Force the path become relative. - if (substr($url, 0, 1) !== '/') { - $url = '/' . $url; - } - } - $parts = parse_url($url); - if (isset($parts['host'])) { - $this->baseComponent = sprintf( - "%s%s%s", - isset($parts['scheme']) ? $parts['scheme'] . "://" : '', - isset($parts['host']) ? $parts['host'] : '', - isset($parts['port']) ? ":" . $parts['port'] : '' - ); - } - $this->path = isset($parts['path']) ? $parts['path'] : ''; - $this->queryParams = array(); - if (isset($parts['query'])) { - $this->queryParams = $this->parseQuery($parts['query']); - } - } - - /** - * @param string $method Set he HTTP Method and normalize - * it to upper-case, as required by HTTP. - * - */ - public function setRequestMethod($method) - { - $this->requestMethod = strtoupper($method); - } - - /** - * @param array $headers The HTTP request headers - * to be set and normalized. - */ - public function setRequestHeaders($headers) - { - $headers = Google_Utils::normalize($headers); - if ($this->requestHeaders) { - $headers = array_merge($this->requestHeaders, $headers); - } - $this->requestHeaders = $headers; - } - - /** - * @param string $postBody the postBody to set - */ - public function setPostBody($postBody) - { - $this->postBody = $postBody; - } - - /** - * Set the User-Agent Header. - * @param string $userAgent The User-Agent. - */ - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - if ($this->canGzip) { - $this->userAgent = $userAgent . self::GZIP_UA; - } - } - - /** - * @return string The User-Agent. - */ - public function getUserAgent() - { - return $this->userAgent; - } - - /** - * Returns a cache key depending on if this was an OAuth signed request - * in which case it will use the non-signed url and access key to make this - * cache key unique per authenticated user, else use the plain request url - * @return string The md5 hash of the request cache key. - */ - public function getCacheKey() - { - $key = $this->getUrl(); - - if (isset($this->accessKey)) { - $key .= $this->accessKey; - } - - if (isset($this->requestHeaders['authorization'])) { - $key .= $this->requestHeaders['authorization']; - } - - return md5($key); - } - - public function getParsedCacheControl() - { - $parsed = array(); - $rawCacheControl = $this->getResponseHeader('cache-control'); - if ($rawCacheControl) { - $rawCacheControl = str_replace(', ', '&', $rawCacheControl); - parse_str($rawCacheControl, $parsed); - } - - return $parsed; - } - - /** - * @param string $id - * @return string A string representation of the HTTP Request. - */ - public function toBatchString($id) - { - $str = ''; - $path = parse_url($this->getUrl(), PHP_URL_PATH) . "?" . - http_build_query($this->queryParams); - $str .= $this->getRequestMethod() . ' ' . $path . " HTTP/1.1\n"; - - foreach ($this->getRequestHeaders() as $key => $val) { - $str .= $key . ': ' . $val . "\n"; - } - - if ($this->getPostBody()) { - $str .= "\n"; - $str .= $this->getPostBody(); - } - - $headers = ''; - foreach ($this->batchHeaders as $key => $val) { - $headers .= $key . ': ' . $val . "\n"; - } - - $headers .= "Content-ID: $id\n"; - $str = $headers . "\n" . $str; - - return $str; - } - - /** - * Our own version of parse_str that allows for multiple variables - * with the same name. - * @param $string - the query string to parse - */ - private function parseQuery($string) - { - $return = array(); - $parts = explode("&", $string); - foreach ($parts as $part) { - list($key, $value) = explode('=', $part, 2); - $value = urldecode($value); - if (isset($return[$key])) { - if (!is_array($return[$key])) { - $return[$key] = array($return[$key]); - } - $return[$key][] = $value; - } else { - $return[$key] = $value; - } - } - return $return; - } - - /** - * A version of build query that allows for multiple - * duplicate keys. - * @param $parts array of key value pairs - */ - private function buildQuery($parts) - { - $return = array(); - foreach ($parts as $key => $value) { - if (is_array($value)) { - foreach ($value as $v) { - $return[] = urlencode($key) . "=" . urlencode($v); - } - } else { - $return[] = urlencode($key) . "=" . urlencode($value); - } - } - return implode('&', $return); - } - - /** - * If we're POSTing and have no body to send, we can send the query - * parameters in there, which avoids length issues with longer query - * params. - */ - public function maybeMoveParametersToBody() - { - if ($this->getRequestMethod() == "POST" && empty($this->postBody)) { - $this->setRequestHeaders( - array( - "content-type" => - "application/x-www-form-urlencoded; charset=UTF-8" - ) - ); - $this->setPostBody($this->buildQuery($this->queryParams)); - $this->queryParams = array(); - } - } -} diff --git a/src/Google/IO/Abstract.php b/src/Google/IO/Abstract.php deleted file mode 100644 index 34a3fc5cd..000000000 --- a/src/Google/IO/Abstract.php +++ /dev/null @@ -1,339 +0,0 @@ - null, "PUT" => null); - private static $HOP_BY_HOP = array( - 'connection' => true, - 'keep-alive' => true, - 'proxy-authenticate' => true, - 'proxy-authorization' => true, - 'te' => true, - 'trailers' => true, - 'transfer-encoding' => true, - 'upgrade' => true - ); - - - /** @var Google_Client */ - protected $client; - - public function __construct(Google_Client $client) - { - $this->client = $client; - $timeout = $client->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds'); - if ($timeout > 0) { - $this->setTimeout($timeout); - } - } - - /** - * Executes a Google_Http_Request - * @param Google_Http_Request $request the http request to be executed - * @return array containing response headers, body, and http code - * @throws Google_IO_Exception on curl or IO error - */ - abstract public function executeRequest(Google_Http_Request $request); - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - abstract public function setOptions($options); - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - abstract public function setTimeout($timeout); - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - abstract public function getTimeout(); - - /** - * Test for the presence of a cURL header processing bug - * - * The cURL bug was present in versions prior to 7.30.0 and caused the header - * length to be miscalculated when a "Connection established" header added by - * some proxies was present. - * - * @return boolean - */ - abstract protected function needsQuirk(); - - /** - * @visible for testing. - * Cache the response to an HTTP request if it is cacheable. - * @param Google_Http_Request $request - * @return bool Returns true if the insertion was successful. - * Otherwise, return false. - */ - public function setCachedRequest(Google_Http_Request $request) - { - // Determine if the request is cacheable. - if (Google_Http_CacheParser::isResponseCacheable($request)) { - $this->client->getCache()->set($request->getCacheKey(), $request); - return true; - } - - return false; - } - - /** - * Execute an HTTP Request - * - * @param Google_Http_Request $request the http request to be executed - * @return Google_Http_Request http request with the response http code, - * response headers and response body filled in - * @throws Google_IO_Exception on curl or IO error - */ - public function makeRequest(Google_Http_Request $request) - { - // First, check to see if we have a valid cached version. - $cached = $this->getCachedRequest($request); - if ($cached !== false && $cached instanceof Google_Http_Request) { - if (!$this->checkMustRevalidateCachedRequest($cached, $request)) { - return $cached; - } - } - - if (array_key_exists($request->getRequestMethod(), self::$ENTITY_HTTP_METHODS)) { - $request = $this->processEntityRequest($request); - } - - list($responseData, $responseHeaders, $respHttpCode) = $this->executeRequest($request); - - if ($respHttpCode == 304 && $cached) { - // If the server responded NOT_MODIFIED, return the cached request. - $this->updateCachedRequest($cached, $responseHeaders); - return $cached; - } - - if (!isset($responseHeaders['Date']) && !isset($responseHeaders['date'])) { - $responseHeaders['date'] = date("r"); - } - - $request->setResponseHttpCode($respHttpCode); - $request->setResponseHeaders($responseHeaders); - $request->setResponseBody($responseData); - // Store the request in cache (the function checks to see if the request - // can actually be cached) - $this->setCachedRequest($request); - return $request; - } - - /** - * @visible for testing. - * @param Google_Http_Request $request - * @return Google_Http_Request|bool Returns the cached object or - * false if the operation was unsuccessful. - */ - public function getCachedRequest(Google_Http_Request $request) - { - if (false === Google_Http_CacheParser::isRequestCacheable($request)) { - return false; - } - - return $this->client->getCache()->get($request->getCacheKey()); - } - - /** - * @visible for testing - * Process an http request that contains an enclosed entity. - * @param Google_Http_Request $request - * @return Google_Http_Request Processed request with the enclosed entity. - */ - public function processEntityRequest(Google_Http_Request $request) - { - $postBody = $request->getPostBody(); - $contentType = $request->getRequestHeader("content-type"); - - // Set the default content-type as application/x-www-form-urlencoded. - if (false == $contentType) { - $contentType = self::FORM_URLENCODED; - $request->setRequestHeaders(array('content-type' => $contentType)); - } - - // Force the payload to match the content-type asserted in the header. - if ($contentType == self::FORM_URLENCODED && is_array($postBody)) { - $postBody = http_build_query($postBody, '', '&'); - $request->setPostBody($postBody); - } - - // Make sure the content-length header is set. - if (!$postBody || is_string($postBody)) { - $postsLength = strlen($postBody); - $request->setRequestHeaders(array('content-length' => $postsLength)); - } - - return $request; - } - - /** - * Check if an already cached request must be revalidated, and if so update - * the request with the correct ETag headers. - * @param Google_Http_Request $cached A previously cached response. - * @param Google_Http_Request $request The outbound request. - * return bool If the cached object needs to be revalidated, false if it is - * still current and can be re-used. - */ - protected function checkMustRevalidateCachedRequest($cached, $request) - { - if (Google_Http_CacheParser::mustRevalidate($cached)) { - $addHeaders = array(); - if ($cached->getResponseHeader('etag')) { - // [13.3.4] If an entity tag has been provided by the origin server, - // we must use that entity tag in any cache-conditional request. - $addHeaders['If-None-Match'] = $cached->getResponseHeader('etag'); - } elseif ($cached->getResponseHeader('date')) { - $addHeaders['If-Modified-Since'] = $cached->getResponseHeader('date'); - } - - $request->setRequestHeaders($addHeaders); - return true; - } else { - return false; - } - } - - /** - * Update a cached request, using the headers from the last response. - * @param Google_Http_Request $cached A previously cached response. - * @param mixed Associative array of response headers from the last request. - */ - protected function updateCachedRequest($cached, $responseHeaders) - { - $hopByHop = self::$HOP_BY_HOP; - if (!empty($responseHeaders['connection'])) { - $connectionHeaders = array_map( - 'strtolower', - array_filter( - array_map('trim', explode(',', $responseHeaders['connection'])) - ) - ); - $hopByHop += array_fill_keys($connectionHeaders, true); - } - - $endToEnd = array_diff_key($responseHeaders, $hopByHop); - $cached->setResponseHeaders($endToEnd); - } - - /** - * Used by the IO lib and also the batch processing. - * - * @param $respData - * @param $headerSize - * @return array - */ - public function parseHttpResponse($respData, $headerSize) - { - // check proxy header - foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { - if (stripos($respData, $established_header) !== false) { - // existed, remove it - $respData = str_ireplace($established_header, '', $respData); - // Subtract the proxy header size unless the cURL bug prior to 7.30.0 - // is present which prevented the proxy header size from being taken into - // account. - if (!$this->needsQuirk()) { - $headerSize -= strlen($established_header); - } - break; - } - } - - if ($headerSize) { - $responseBody = substr($respData, $headerSize); - $responseHeaders = substr($respData, 0, $headerSize); - } else { - $responseSegments = explode("\r\n\r\n", $respData, 2); - $responseHeaders = $responseSegments[0]; - $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : - null; - } - - $responseHeaders = $this->getHttpResponseHeaders($responseHeaders); - return array($responseHeaders, $responseBody); - } - - /** - * Parse out headers from raw headers - * @param rawHeaders array or string - * @return array - */ - public function getHttpResponseHeaders($rawHeaders) - { - if (is_array($rawHeaders)) { - return $this->parseArrayHeaders($rawHeaders); - } else { - return $this->parseStringHeaders($rawHeaders); - } - } - - private function parseStringHeaders($rawHeaders) - { - $headers = array(); - $responseHeaderLines = explode("\r\n", $rawHeaders); - foreach ($responseHeaderLines as $headerLine) { - if ($headerLine && strpos($headerLine, ':') !== false) { - list($header, $value) = explode(': ', $headerLine, 2); - $header = strtolower($header); - if (isset($headers[$header])) { - $headers[$header] .= "\n" . $value; - } else { - $headers[$header] = $value; - } - } - } - return $headers; - } - - private function parseArrayHeaders($rawHeaders) - { - $header_count = count($rawHeaders); - $headers = array(); - - for ($i = 0; $i < $header_count; $i++) { - $header = $rawHeaders[$i]; - // Times will have colons in - so we just want the first match. - $header_parts = explode(': ', $header, 2); - if (count($header_parts) == 2) { - $headers[strtolower($header_parts[0])] = $header_parts[1]; - } - } - - return $headers; - } -} diff --git a/src/Google/IO/Curl.php b/src/Google/IO/Curl.php deleted file mode 100644 index c250ec9d9..000000000 --- a/src/Google/IO/Curl.php +++ /dev/null @@ -1,182 +0,0 @@ - - */ - -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - -class Google_IO_Curl extends Google_IO_Abstract -{ - // cURL hex representation of version 7.30.0 - const NO_QUIRK_VERSION = 0x071E00; - - private $options = array(); - - public function __construct(Google_Client $client) - { - if (!extension_loaded('curl')) { - $error = 'The cURL IO handler requires the cURL extension to be enabled'; - $client->getLogger()->critical($error); - throw new Google_IO_Exception($error); - } - - parent::__construct($client); - } - - /** - * Execute an HTTP Request - * - * @param Google_Http_Request $request the http request to be executed - * @return array containing response headers, body, and http code - * @throws Google_IO_Exception on curl or IO error - */ - public function executeRequest(Google_Http_Request $request) - { - $curl = curl_init(); - - if ($request->getPostBody()) { - curl_setopt($curl, CURLOPT_POSTFIELDS, $request->getPostBody()); - } - - $requestHeaders = $request->getRequestHeaders(); - if ($requestHeaders && is_array($requestHeaders)) { - $curlHeaders = array(); - foreach ($requestHeaders as $k => $v) { - $curlHeaders[] = "$k: $v"; - } - curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders); - } - curl_setopt($curl, CURLOPT_URL, $request->getUrl()); - - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod()); - curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent()); - - curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); - - // The SSL version will be determined by the underlying library - // @see https://github.com/google/google-api-php-client/pull/644 - //curl_setopt($curl, CURLOPT_SSLVERSION, 1); - - curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); - curl_setopt($curl, CURLOPT_HEADER, true); - - if ($request->canGzip()) { - curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); - } - - $options = $this->client->getClassConfig('Google_IO_Curl', 'options'); - if (is_array($options)) { - $this->setOptions($options); - } - - foreach ($this->options as $key => $var) { - curl_setopt($curl, $key, $var); - } - - if (!isset($this->options[CURLOPT_CAINFO])) { - curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacerts.pem'); - } - - $this->client->getLogger()->debug( - 'cURL request', - array( - 'url' => $request->getUrl(), - 'method' => $request->getRequestMethod(), - 'headers' => $requestHeaders, - 'body' => $request->getPostBody() - ) - ); - - $response = curl_exec($curl); - if ($response === false) { - $error = curl_error($curl); - $code = curl_errno($curl); - $map = $this->client->getClassConfig('Google_IO_Exception', 'retry_map'); - - $this->client->getLogger()->error('cURL ' . $error); - throw new Google_IO_Exception($error, $code, null, $map); - } - $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); - - list($responseHeaders, $responseBody) = $this->parseHttpResponse($response, $headerSize); - $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); - - $this->client->getLogger()->debug( - 'cURL response', - array( - 'code' => $responseCode, - 'headers' => $responseHeaders, - 'body' => $responseBody, - ) - ); - - return array($responseBody, $responseHeaders, $responseCode); - } - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - public function setOptions($options) - { - $this->options = $options + $this->options; - } - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - public function setTimeout($timeout) - { - // Since this timeout is really for putting a bound on the time - // we'll set them both to the same. If you need to specify a longer - // CURLOPT_TIMEOUT, or a higher CONNECTTIMEOUT, the best thing to - // do is use the setOptions method for the values individually. - $this->options[CURLOPT_CONNECTTIMEOUT] = $timeout; - $this->options[CURLOPT_TIMEOUT] = $timeout; - } - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - public function getTimeout() - { - return $this->options[CURLOPT_TIMEOUT]; - } - - /** - * Test for the presence of a cURL header processing bug - * - * {@inheritDoc} - * - * @return boolean - */ - protected function needsQuirk() - { - $ver = curl_version(); - $versionNum = $ver['version_number']; - return $versionNum < Google_IO_Curl::NO_QUIRK_VERSION; - } -} diff --git a/src/Google/IO/Stream.php b/src/Google/IO/Stream.php deleted file mode 100644 index 2c5178fdd..000000000 --- a/src/Google/IO/Stream.php +++ /dev/null @@ -1,243 +0,0 @@ - - */ - -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - -class Google_IO_Stream extends Google_IO_Abstract -{ - const TIMEOUT = "timeout"; - const ZLIB = "compress.zlib://"; - private $options = array(); - private $trappedErrorNumber; - private $trappedErrorString; - - private static $DEFAULT_HTTP_CONTEXT = array( - "follow_location" => 0, - "ignore_errors" => 1, - ); - - private static $DEFAULT_SSL_CONTEXT = array( - "verify_peer" => true, - ); - - public function __construct(Google_Client $client) - { - if (!ini_get('allow_url_fopen')) { - $error = 'The stream IO handler requires the allow_url_fopen runtime ' . - 'configuration to be enabled'; - $client->getLogger()->critical($error); - throw new Google_IO_Exception($error); - } - - parent::__construct($client); - } - - /** - * Execute an HTTP Request - * - * @param Google_Http_Request $request the http request to be executed - * @return array containing response headers, body, and http code - * @throws Google_IO_Exception on curl or IO error - */ - public function executeRequest(Google_Http_Request $request) - { - $default_options = stream_context_get_options(stream_context_get_default()); - - $requestHttpContext = array_key_exists('http', $default_options) ? - $default_options['http'] : array(); - - if ($request->getPostBody()) { - $requestHttpContext["content"] = $request->getPostBody(); - } - - $requestHeaders = $request->getRequestHeaders(); - if ($requestHeaders && is_array($requestHeaders)) { - $headers = ""; - foreach ($requestHeaders as $k => $v) { - $headers .= "$k: $v\r\n"; - } - $requestHttpContext["header"] = $headers; - } - - $requestHttpContext["method"] = $request->getRequestMethod(); - $requestHttpContext["user_agent"] = $request->getUserAgent(); - - $requestSslContext = array_key_exists('ssl', $default_options) ? - $default_options['ssl'] : array(); - - if (!$this->client->isAppEngine() && !array_key_exists("cafile", $requestSslContext)) { - $requestSslContext["cafile"] = dirname(__FILE__) . '/cacerts.pem'; - } - - $options = array( - "http" => array_merge( - self::$DEFAULT_HTTP_CONTEXT, - $requestHttpContext - ), - "ssl" => array_merge( - self::$DEFAULT_SSL_CONTEXT, - $requestSslContext - ) - ); - - $context = stream_context_create($options); - - $url = $request->getUrl(); - - if ($request->canGzip()) { - $url = self::ZLIB . $url; - } - - $this->client->getLogger()->debug( - 'Stream request', - array( - 'url' => $url, - 'method' => $request->getRequestMethod(), - 'headers' => $requestHeaders, - 'body' => $request->getPostBody() - ) - ); - - // We are trapping any thrown errors in this method only and - // throwing an exception. - $this->trappedErrorNumber = null; - $this->trappedErrorString = null; - - // START - error trap. - set_error_handler(array($this, 'trapError')); - $fh = fopen($url, 'r', false, $context); - restore_error_handler(); - // END - error trap. - - if ($this->trappedErrorNumber) { - $error = sprintf( - "HTTP Error: Unable to connect: '%s'", - $this->trappedErrorString - ); - - $this->client->getLogger()->error('Stream ' . $error); - throw new Google_IO_Exception($error, $this->trappedErrorNumber); - } - - $response_data = false; - $respHttpCode = self::UNKNOWN_CODE; - if ($fh) { - if (isset($this->options[self::TIMEOUT])) { - stream_set_timeout($fh, $this->options[self::TIMEOUT]); - } - - $response_data = stream_get_contents($fh); - fclose($fh); - - $respHttpCode = $this->getHttpResponseCode($http_response_header); - } - - if (false === $response_data) { - $error = sprintf( - "HTTP Error: Unable to connect: '%s'", - $respHttpCode - ); - - $this->client->getLogger()->error('Stream ' . $error); - throw new Google_IO_Exception($error, $respHttpCode); - } - - $responseHeaders = $this->getHttpResponseHeaders($http_response_header); - - $this->client->getLogger()->debug( - 'Stream response', - array( - 'code' => $respHttpCode, - 'headers' => $responseHeaders, - 'body' => $response_data, - ) - ); - - return array($response_data, $responseHeaders, $respHttpCode); - } - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - public function setOptions($options) - { - $this->options = $options + $this->options; - } - - /** - * Method to handle errors, used for error handling around - * stream connection methods. - */ - public function trapError($errno, $errstr) - { - $this->trappedErrorNumber = $errno; - $this->trappedErrorString = $errstr; - } - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - public function setTimeout($timeout) - { - $this->options[self::TIMEOUT] = $timeout; - } - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - public function getTimeout() - { - return $this->options[self::TIMEOUT]; - } - - /** - * Test for the presence of a cURL header processing bug - * - * {@inheritDoc} - * - * @return boolean - */ - protected function needsQuirk() - { - return false; - } - - protected function getHttpResponseCode($response_headers) - { - $header_count = count($response_headers); - - for ($i = 0; $i < $header_count; $i++) { - $header = $response_headers[$i]; - if (strncasecmp("HTTP", $header, strlen("HTTP")) == 0) { - $response = explode(' ', $header); - return $response[1]; - } - } - return self::UNKNOWN_CODE; - } -} diff --git a/src/Google/IO/cacerts.pem b/src/Google/IO/cacerts.pem deleted file mode 100644 index 70990f1f8..000000000 --- a/src/Google/IO/cacerts.pem +++ /dev/null @@ -1,2183 +0,0 @@ -# Issuer: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc. -# Subject: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc. -# Label: "GTE CyberTrust Global Root" -# Serial: 421 -# MD5 Fingerprint: ca:3d:d3:68:f1:03:5c:d0:32:fa:b8:2b:59:e8:5a:db -# SHA1 Fingerprint: 97:81:79:50:d8:1c:96:70:cc:34:d8:09:cf:79:44:31:36:7e:f4:74 -# SHA256 Fingerprint: a5:31:25:18:8d:21:10:aa:96:4b:02:c7:b7:c6:da:32:03:17:08:94:e5:fb:71:ff:fb:66:67:d5:e6:81:0a:36 ------BEGIN CERTIFICATE----- -MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD -VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv -bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv -b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV -UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU -cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds -b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH -iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS -r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X4 -04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r -GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l9 -3PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P -lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/ ------END CERTIFICATE----- - -# Issuer: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division -# Subject: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division -# Label: "Thawte Server CA" -# Serial: 1 -# MD5 Fingerprint: c5:70:c4:a2:ed:53:78:0c:c8:10:53:81:64:cb:d0:1d -# SHA1 Fingerprint: 23:e5:94:94:51:95:f2:41:48:03:b4:d5:64:d2:a3:a3:f5:d8:8b:8c -# SHA256 Fingerprint: b4:41:0b:73:e2:e6:ea:ca:47:fb:c4:2f:8f:a4:01:8a:f4:38:1d:c5:4c:fa:a8:44:50:46:1e:ed:09:45:4d:e9 ------BEGIN CERTIFICATE----- -MIIDEzCCAnygAwIBAgIBATANBgkqhkiG9w0BAQQFADCBxDELMAkGA1UEBhMCWkEx -FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD -VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv -biBTZXJ2aWNlcyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEm -MCQGCSqGSIb3DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wHhcNOTYwODAx -MDAwMDAwWhcNMjAxMjMxMjM1OTU5WjCBxDELMAkGA1UEBhMCWkExFTATBgNVBAgT -DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF3 -dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNl -cyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEmMCQGCSqGSIb3 -DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQAD -gY0AMIGJAoGBANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl/Kj0R1HahbUgdJSGHg91 -yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg71CcEJRCX -L+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNAgMBAAGj -EzARMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAB/pMaVz7lcxG -7oWDTSEwjsrZqG9JGubaUeNgcGyEYRGhGshIPllDfU+VPaGLtwtimHp1it2ITk6e -QNuozDJ0uW8NxuOzRAvZim+aKZuZGCg70eNAKJpaPNW15yAbi8qkq43pUdniTCxZ -qdq5snUb9kLy78fyGPmJvKP/iiMucEc= ------END CERTIFICATE----- - -# Issuer: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division -# Subject: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division -# Label: "Thawte Premium Server CA" -# Serial: 1 -# MD5 Fingerprint: 06:9f:69:79:16:66:90:02:1b:8c:8c:a2:c3:07:6f:3a -# SHA1 Fingerprint: 62:7f:8d:78:27:65:63:99:d2:7d:7f:90:44:c9:fe:b3:f3:3e:fa:9a -# SHA256 Fingerprint: ab:70:36:36:5c:71:54:aa:29:c2:c2:9f:5d:41:91:16:3b:16:2a:22:25:01:13:57:d5:6d:07:ff:a7:bc:1f:72 ------BEGIN CERTIFICATE----- -MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx -FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD -VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv -biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy -dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t -MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB -MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG -A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp -b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl -cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv -bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE -VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ -ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR -uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG -9w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI -hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM -pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg== ------END CERTIFICATE----- - -# Issuer: O=Equifax OU=Equifax Secure Certificate Authority -# Subject: O=Equifax OU=Equifax Secure Certificate Authority -# Label: "Equifax Secure CA" -# Serial: 903804111 -# MD5 Fingerprint: 67:cb:9d:c0:13:24:8a:82:9b:b2:17:1e:d1:1b:ec:d4 -# SHA1 Fingerprint: d2:32:09:ad:23:d3:14:23:21:74:e4:0d:7f:9d:62:13:97:86:63:3a -# SHA256 Fingerprint: 08:29:7a:40:47:db:a2:36:80:c7:31:db:6e:31:76:53:ca:78:48:e1:be:bd:3a:0b:01:79:a7:07:f9:2c:f1:78 ------BEGIN CERTIFICATE----- -MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJV -UzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2Vy -dGlmaWNhdGUgQXV0aG9yaXR5MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1 -MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoTB0VxdWlmYXgxLTArBgNVBAsTJEVx -dWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCBnzANBgkqhkiG9w0B -AQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPRfM6f -BeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+A -cJkVV5MW8Q+XarfCaCMczE1ZMKxRHjuvK9buY0V7xdlfUNLjUA86iOe/FP3gx7kC -AwEAAaOCAQkwggEFMHAGA1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQ -MA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlm -aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw -ODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvSspXXR9gj -IBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQF -MAMBAf8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUA -A4GBAFjOKer89961zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y -7qj/WsjTVbJmcVfewCHrPSqnI0kBBIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh -1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c4 ------END CERTIFICATE----- - -# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority -# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority -# Label: "Verisign Class 3 Public Primary Certification Authority" -# Serial: 149843929435818692848040365716851702463 -# MD5 Fingerprint: 10:fc:63:5d:f6:26:3e:0d:f3:25:be:5f:79:cd:67:67 -# SHA1 Fingerprint: 74:2c:31:92:e6:07:e4:24:eb:45:49:54:2b:e1:bb:c5:3e:61:74:e2 -# SHA256 Fingerprint: e7:68:56:34:ef:ac:f6:9a:ce:93:9a:6b:25:5b:7b:4f:ab:ef:42:93:5b:50:a2:65:ac:b5:cb:60:27:e4:4e:70 ------BEGIN CERTIFICATE----- -MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz -cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 -MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV -BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt -YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN -ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE -BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is -I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G -CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do -lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc -AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k ------END CERTIFICATE----- - -# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network -# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network -# Label: "Verisign Class 3 Public Primary Certification Authority - G2" -# Serial: 167285380242319648451154478808036881606 -# MD5 Fingerprint: a2:33:9b:4c:74:78:73:d4:6c:e7:c1:f3:8d:cb:5c:e9 -# SHA1 Fingerprint: 85:37:1c:a6:e5:50:14:3d:ce:28:03:47:1b:de:3a:09:e8:f8:77:0f -# SHA256 Fingerprint: 83:ce:3c:12:29:68:8a:59:3d:48:5f:81:97:3c:0f:91:95:43:1e:da:37:cc:5e:36:43:0e:79:c7:a8:88:63:8b ------BEGIN CERTIFICATE----- -MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJ -BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xh -c3MgMyBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcy -MTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3Jp -emVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMB4X -DTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVTMRcw -FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMg -UHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEo -YykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5 -MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEB -AQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCOFoUgRm1HP9SFIIThbbP4 -pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71lSk8UOg0 -13gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID -AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk -U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i -F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY -oJ2daZH9 ------END CERTIFICATE----- - -# Issuer: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA -# Subject: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA -# Label: "GlobalSign Root CA" -# Serial: 4835703278459707669005204 -# MD5 Fingerprint: 3e:45:52:15:09:51:92:e1:b7:5d:37:9f:b1:87:29:8a -# SHA1 Fingerprint: b1:bc:96:8b:d4:f4:9d:62:2a:a8:9a:81:f2:15:01:52:a4:1d:82:9c -# SHA256 Fingerprint: eb:d4:10:40:e4:bb:3e:c7:42:c9:e3:81:d3:1e:f2:a4:1a:48:b6:68:5c:96:e7:ce:f3:c1:df:6c:d4:33:1c:99 ------BEGIN CERTIFICATE----- -MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG -A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv -b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw -MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i -YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT -aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ -jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp -xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp -1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG -snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ -U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8 -9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0B -AQUFAAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOz -yj1hTdNGCbM+w6DjY1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE -38NflNUVyRRBnMRddWQVDf9VMOyGj/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymP -AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad -DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME -HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A== ------END CERTIFICATE----- - -# Issuer: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R2 -# Subject: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R2 -# Label: "GlobalSign Root CA - R2" -# Serial: 4835703278459682885658125 -# MD5 Fingerprint: 94:14:77:7e:3e:5e:fd:8f:30:bd:41:b0:cf:e7:d0:30 -# SHA1 Fingerprint: 75:e0:ab:b6:13:85:12:27:1c:04:f8:5f:dd:de:38:e4:b7:24:2e:fe -# SHA256 Fingerprint: ca:42:dd:41:74:5f:d0:b8:1e:b9:02:36:2c:f9:d8:bf:71:9d:a1:bd:1b:1e:fc:94:6f:5b:4c:99:f4:2c:1b:9e ------BEGIN CERTIFICATE----- -MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4G -A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNp -Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1 -MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMjETMBEG -A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6ErPL -v4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8 -eoLrvozps6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklq -tTleiDTsvHgMCJiEbKjNS7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzd -C9XZzPnqJworc5HGnRusyMvo4KD0L5CLTfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pa -zq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6CygPCm48CAwEAAaOBnDCB -mTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUm+IH -V2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5n -bG9iYWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG -3lm0mi3f3BmGLjANBgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4Gs -J0/WwbgcQ3izDJr86iw8bmEbTUsp9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO -291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu01yiPqFbQfXf5WRDLenVOavS -ot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG79G+dwfCMNYxd -AfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7 -TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg== ------END CERTIFICATE----- - -# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority -# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority -# Label: "ValiCert Class 1 VA" -# Serial: 1 -# MD5 Fingerprint: 65:58:ab:15:ad:57:6c:1e:a8:a7:b5:69:ac:bf:ff:eb -# SHA1 Fingerprint: e5:df:74:3c:b6:01:c4:9b:98:43:dc:ab:8c:e8:6a:81:10:9f:e4:8e -# SHA256 Fingerprint: f4:c1:49:55:1a:30:13:a3:5b:c7:bf:fe:17:a7:f3:44:9b:c1:ab:5b:5a:0a:e7:4b:06:c2:3b:90:00:4c:01:04 ------BEGIN CERTIFICATE----- -MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0 -IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz -BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y -aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG -9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIyMjM0OFoXDTE5MDYy -NTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y -azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs -YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw -Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl -cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9Y -LqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIiGQj4/xEjm84H9b9pGib+ -TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCmDuJWBQ8Y -TfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn0 -LBwGlN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLW -I8sogTLDAHkY7FkXicnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPw -nXS3qT6gpf+2SQMT2iLM7XGCK5nPOrf1LXLI ------END CERTIFICATE----- - -# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority -# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority -# Label: "ValiCert Class 2 VA" -# Serial: 1 -# MD5 Fingerprint: a9:23:75:9b:ba:49:36:6e:31:c2:db:f2:e7:66:ba:87 -# SHA1 Fingerprint: 31:7a:2a:d0:7f:2b:33:5e:f5:a1:c3:4e:4b:57:e8:b7:d8:f1:fc:a6 -# SHA256 Fingerprint: 58:d0:17:27:9c:d4:dc:63:ab:dd:b1:96:a6:c9:90:6c:30:c4:e0:87:83:ea:e8:c1:60:99:54:d6:93:55:59:6b ------BEGIN CERTIFICATE----- -MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0 -IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz -BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y -aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG -9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy -NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y -azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs -YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw -Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl -cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY -dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ9 -WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS -v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v -UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu -IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC -W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd ------END CERTIFICATE----- - -# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority -# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority -# Label: "RSA Root Certificate 1" -# Serial: 1 -# MD5 Fingerprint: a2:6f:53:b7:ee:40:db:4a:68:e7:fa:18:d9:10:4b:72 -# SHA1 Fingerprint: 69:bd:8c:f4:9c:d3:00:fb:59:2e:17:93:ca:55:6a:f3:ec:aa:35:fb -# SHA256 Fingerprint: bc:23:f9:8a:31:3c:b9:2d:e3:bb:fc:3a:5a:9f:44:61:ac:39:49:4c:4a:e1:5a:9e:9d:f1:31:e9:9b:73:01:9a ------BEGIN CERTIFICATE----- -MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0 -IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz -BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y -aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG -9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMjIzM1oXDTE5MDYy -NjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y -azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs -YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw -Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl -cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjmFGWHOjVsQaBalfD -cnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td3zZxFJmP3MKS8edgkpfs -2Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89HBFx1cQqY -JJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliE -Zwgs3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJ -n0WuPIqpsHEzXcjFV9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/A -PhmcGcwTTYJBtYze4D1gCCAPRX5ron+jjBXu ------END CERTIFICATE----- - -# Issuer: CN=VeriSign Class 3 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only -# Subject: CN=VeriSign Class 3 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only -# Label: "Verisign Class 3 Public Primary Certification Authority - G3" -# Serial: 206684696279472310254277870180966723415 -# MD5 Fingerprint: cd:68:b6:a7:c7:c4:ce:75:e0:1d:4f:57:44:61:92:09 -# SHA1 Fingerprint: 13:2d:0d:45:53:4b:69:97:cd:b2:d5:c3:39:e2:55:76:60:9b:5c:c6 -# SHA256 Fingerprint: eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44 ------BEGIN CERTIFICATE----- -MIIEGjCCAwICEQCbfgZJoz5iudXukEhxKe9XMA0GCSqGSIb3DQEBBQUAMIHKMQsw -CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZl -cmlTaWduIFRydXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWdu -LCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlT -aWduIENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3Jp -dHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQswCQYD -VQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlT -aWduIFRydXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJ -bmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWdu -IENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkg -LSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMu6nFL8eB8aHm8b -N3O9+MlrlBIwT/A2R/XQkQr1F8ilYcEWQE37imGQ5XYgwREGfassbqb1EUGO+i2t -KmFZpGcmTNDovFJbcCAEWNF6yaRpvIMXZK0Fi7zQWM6NjPXr8EJJC52XJ2cybuGu -kxUccLwgTS8Y3pKI6GyFVxEa6X7jJhFUokWWVYPKMIno3Nij7SqAP395ZVc+FSBm -CC+Vk7+qRy+oRpfwEuL+wgorUeZ25rdGt+INpsyow0xZVYnm6FNcHOqd8GIWC6fJ -Xwzw3sJ2zq/3avL6QaaiMxTJ5Xpj055iN9WFZZ4O5lMkdBteHRJTW8cs54NJOxWu -imi5V5cCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEAERSWwauSCPc/L8my/uRan2Te -2yFPhpk0djZX3dAVL8WtfxUfN2JzPtTnX84XA9s1+ivbrmAJXx5fj267Cz3qWhMe -DGBvtcC1IyIuBwvLqXTLR7sdwdela8wv0kL9Sd2nic9TutoAWii/gt/4uhMdUIaC -/Y4wjylGsB49Ndo4YhYYSq3mtlFs3q9i6wHQHiT+eo8SGhJouPtmmRQURVyu565p -F4ErWjfJXir0xuKhXFSbplQAz/DxwceYMBo7Nhbbo27q/a2ywtrvAkcTisDxszGt -TxzhT5yvDwyd93gN2PQ1VoDat20Xj50egWTh/sVFuq1ruQp6Tk9LhO5L8X3dEQ== ------END CERTIFICATE----- - -# Issuer: CN=VeriSign Class 4 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only -# Subject: CN=VeriSign Class 4 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only -# Label: "Verisign Class 4 Public Primary Certification Authority - G3" -# Serial: 314531972711909413743075096039378935511 -# MD5 Fingerprint: db:c8:f2:27:2e:b1:ea:6a:29:23:5d:fe:56:3e:33:df -# SHA1 Fingerprint: c8:ec:8c:87:92:69:cb:4b:ab:39:e9:8d:7e:57:67:f3:14:95:73:9d -# SHA256 Fingerprint: e3:89:36:0d:0f:db:ae:b3:d2:50:58:4b:47:30:31:4e:22:2f:39:c1:56:a0:20:14:4e:8d:96:05:61:79:15:06 ------BEGIN CERTIFICATE----- -MIIEGjCCAwICEQDsoKeLbnVqAc/EfMwvlF7XMA0GCSqGSIb3DQEBBQUAMIHKMQsw -CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZl -cmlTaWduIFRydXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWdu -LCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlT -aWduIENsYXNzIDQgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3Jp -dHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQswCQYD -VQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlT -aWduIFRydXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJ -bmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWdu -IENsYXNzIDQgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkg -LSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK3LpRFpxlmr8Y+1 -GQ9Wzsy1HyDkniYlS+BzZYlZ3tCD5PUPtbut8XzoIfzk6AzufEUiGXaStBO3IFsJ -+mGuqPKljYXCKtbeZjbSmwL0qJJgfJxptI8kHtCGUvYynEFYHiK9zUVilQhu0Gbd -U6LM8BDcVHOLBKFGMzNcF0C5nk3T875Vg+ixiY5afJqWIpA7iCXy0lOIAgwLePLm -NxdLMEYH5IBtptiWLugs+BGzOA1mppvqySNb247i8xOOGlktqgLw7KSHZtzBP/XY -ufTsgsbSPZUd5cBPhMnZo0QoBmrXRazwa2rvTl/4EYIeOGM0ZlDUPpNz+jDDZq3/ -ky2X7wMCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEAj/ola09b5KROJ1WrIhVZPMq1 -CtRK26vdoV9TxaBXOcLORyu+OshWv8LZJxA6sQU8wHcxuzrTBXttmhwwjIDLk5Mq -g6sFUYICABFna/OIYUdfA5PVWw3g8dShMjWFsjrbsIKr0csKvE+MW8VLADsfKoKm -fjaF3H48ZwC15DtS4KjrXRX5xm3wrR0OhbepmnMUWluPQSjA1egtTaRezarZ7c7c -2NU8Qh0XwRJdRTjDOPP8hS6DRkiy1yBfkjaP53kPmF6Z6PDQpLv1U70qzlmwr25/ -bLvSHgCwIe34QWKCudiyxLtGUPMxxY8BqHTr9Xgn2uf3ZkPznoM+IKrDNWCRzg== ------END CERTIFICATE----- - -# Issuer: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited -# Subject: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited -# Label: "Entrust.net Secure Server CA" -# Serial: 927650371 -# MD5 Fingerprint: df:f2:80:73:cc:f1:e6:61:73:fc:f5:42:e9:c5:7c:ee -# SHA1 Fingerprint: 99:a6:9b:e6:1a:fe:88:6b:4d:2b:82:00:7c:b8:54:fc:31:7e:15:39 -# SHA256 Fingerprint: 62:f2:40:27:8c:56:4c:4d:d8:bf:7d:9d:4f:6f:36:6e:a8:94:d2:2f:5f:34:d9:89:a9:83:ac:ec:2f:ff:ed:50 ------BEGIN CERTIFICATE----- -MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC -VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u -ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc -KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u -ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA1 -MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE -ChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5j -b3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF -bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUg -U2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUA -A4GLADCBhwKBgQDNKIM0VBuJ8w+vN5Ex/68xYMmo6LIQaO2f55M28Qpku0f1BBc/ -I0dNxScZgSYMVHINiC3ZH5oSn7yzcdOAGT9HZnuMNSjSuQrfJNqc1lB5gXpa0zf3 -wkrYKZImZNHkmGw6AIr1NJtl+O3jEP/9uElY3KDegjlrgbEWGWG5VLbmQwIBA6OC -AdcwggHTMBEGCWCGSAGG+EIBAQQEAwIABzCCARkGA1UdHwSCARAwggEMMIHeoIHb -oIHYpIHVMIHSMQswCQYDVQQGEwJVUzEUMBIGA1UEChMLRW50cnVzdC5uZXQxOzA5 -BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5jb3JwLiBieSByZWYuIChsaW1p -dHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5ldCBMaW1pdGVk -MTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENlcnRpZmljYXRp -b24gQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMCmgJ6AlhiNodHRwOi8vd3d3LmVu -dHJ1c3QubmV0L0NSTC9uZXQxLmNybDArBgNVHRAEJDAigA8xOTk5MDUyNTE2MDk0 -MFqBDzIwMTkwNTI1MTYwOTQwWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAU8Bdi -E1U9s/8KAGv7UISX8+1i0BowHQYDVR0OBBYEFPAXYhNVPbP/CgBr+1CEl/PtYtAa -MAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EABAwwChsEVjQuMAMCBJAwDQYJKoZI -hvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyNEwr75Ji174z4xRAN -95K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9n9cd -2cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI= ------END CERTIFICATE----- - -# Issuer: CN=Entrust.net Certification Authority (2048) O=Entrust.net OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited -# Subject: CN=Entrust.net Certification Authority (2048) O=Entrust.net OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited -# Label: "Entrust.net Premium 2048 Secure Server CA" -# Serial: 946059622 -# MD5 Fingerprint: ba:21:ea:20:d6:dd:db:8f:c1:57:8b:40:ad:a1:fc:fc -# SHA1 Fingerprint: 80:1d:62:d0:7b:44:9d:5c:5c:03:5c:98:ea:61:fa:44:3c:2a:58:fe -# SHA256 Fingerprint: d1:c3:39:ea:27:84:eb:87:0f:93:4f:c5:63:4e:4a:a9:ad:55:05:01:64:01:f2:64:65:d3:7a:57:46:63:35:9f ------BEGIN CERTIFICATE----- -MIIEXDCCA0SgAwIBAgIEOGO5ZjANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChML -RW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBp -bmNvcnAuIGJ5IHJlZi4gKGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5 -IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVudHJ1c3QubmV0IENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0xOTEy -MjQxODIwNTFaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3d3d3 -LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxp -YWIuKTElMCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEG -A1UEAxMqRW50cnVzdC5uZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgp -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqjIAcVFmQq -K0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOLGp18EzoOH1u3Hs/lJBQe -sYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSGlVuX -MlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVT -XTzWnLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/ -HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH -4QIDAQABo3QwcjARBglghkgBhvhCAQEEBAMCAAcwHwYDVR0jBBgwFoAUVeSB0RGA -vtiJuQijMfmhJAkWuXAwHQYDVR0OBBYEFFXkgdERgL7YibkIozH5oSQJFrlwMB0G -CSqGSIb2fQdBAAQQMA4bCFY1LjA6NC4wAwIEkDANBgkqhkiG9w0BAQUFAAOCAQEA -WUesIYSKF8mciVMeuoCFGsY8Tj6xnLZ8xpJdGGQC49MGCBFhfGPjK50xA3B20qMo -oPS7mmNz7W3lKtvtFKkrxjYR0CvrB4ul2p5cGZ1WEvVUKcgF7bISKo30Axv/55IQ -h7A6tcOdBTcSo8f0FbnVpDkWm1M6I5HxqIKiaohowXkCIryqptau37AUX7iH0N18 -f3v/rxzP5tsHrV7bhZ3QKw0z2wTR5klAEyt2+z7pnIkPFc4YsIV4IU9rTw76NmfN -B/L/CNDi3tm/Kq+4h4YhPATKt5Rof8886ZjXOP/swNlQ8C5LWK5Gb9Auw2DaclVy -vUxFnmG6v4SBkgPR0ml8xQ== ------END CERTIFICATE----- - -# Issuer: CN=Baltimore CyberTrust Root O=Baltimore OU=CyberTrust -# Subject: CN=Baltimore CyberTrust Root O=Baltimore OU=CyberTrust -# Label: "Baltimore CyberTrust Root" -# Serial: 33554617 -# MD5 Fingerprint: ac:b6:94:a5:9c:17:e0:d7:91:52:9b:b1:97:06:a6:e4 -# SHA1 Fingerprint: d4:de:20:d0:5e:66:fc:53:fe:1a:50:88:2c:78:db:28:52:ca:e4:74 -# SHA256 Fingerprint: 16:af:57:a9:f6:76:b0:ab:12:60:95:aa:5e:ba:de:f2:2a:b3:11:19:d6:44:ac:95:cd:4b:93:db:f3:f2:6a:eb ------BEGIN CERTIFICATE----- -MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ -RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD -VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX -DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y -ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy -VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr -mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr -IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK -mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu -XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy -dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye -jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1 -BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3 -DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92 -9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx -jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0 -Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz -ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS -R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp ------END CERTIFICATE----- - -# Issuer: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc. -# Subject: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc. -# Label: "Equifax Secure Global eBusiness CA" -# Serial: 1 -# MD5 Fingerprint: 8f:5d:77:06:27:c4:98:3c:5b:93:78:e7:d7:7d:9b:cc -# SHA1 Fingerprint: 7e:78:4a:10:1c:82:65:cc:2d:e1:f1:6d:47:b4:40:ca:d9:0a:19:45 -# SHA256 Fingerprint: 5f:0b:62:ea:b5:e3:53:ea:65:21:65:16:58:fb:b6:53:59:f4:43:28:0a:4a:fb:d1:04:d7:7d:10:f9:f0:4c:07 ------BEGIN CERTIFICATE----- -MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT -ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw -MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj -dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l -c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC -UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc -58O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/ -o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH -MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr -aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA -A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA -Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv -8qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV ------END CERTIFICATE----- - -# Issuer: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc. -# Subject: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc. -# Label: "Equifax Secure eBusiness CA 1" -# Serial: 4 -# MD5 Fingerprint: 64:9c:ef:2e:44:fc:c6:8f:52:07:d0:51:73:8f:cb:3d -# SHA1 Fingerprint: da:40:18:8b:91:89:a3:ed:ee:ae:da:97:fe:2f:9d:f5:b7:d1:8a:41 -# SHA256 Fingerprint: cf:56:ff:46:a4:a1:86:10:9d:d9:65:84:b5:ee:b5:8a:51:0c:42:75:b0:e5:f9:4f:40:bb:ae:86:5e:19:f6:73 ------BEGIN CERTIFICATE----- -MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT -ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw -MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j -LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ -KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo -RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu -WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw -Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD -AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK -eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM -zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+ -WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN -/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ== ------END CERTIFICATE----- - -# Issuer: O=Equifax Secure OU=Equifax Secure eBusiness CA-2 -# Subject: O=Equifax Secure OU=Equifax Secure eBusiness CA-2 -# Label: "Equifax Secure eBusiness CA 2" -# Serial: 930140085 -# MD5 Fingerprint: aa:bf:bf:64:97:da:98:1d:6f:c6:08:3a:95:70:33:ca -# SHA1 Fingerprint: 39:4f:f6:85:0b:06:be:52:e5:18:56:cc:10:e1:80:e8:82:b3:85:cc -# SHA256 Fingerprint: 2f:27:4e:48:ab:a4:ac:7b:76:59:33:10:17:75:50:6d:c3:0e:e3:8e:f6:ac:d5:c0:49:32:cf:e0:41:23:42:20 ------BEGIN CERTIFICATE----- -MIIDIDCCAomgAwIBAgIEN3DPtTANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJV -UzEXMBUGA1UEChMORXF1aWZheCBTZWN1cmUxJjAkBgNVBAsTHUVxdWlmYXggU2Vj -dXJlIGVCdXNpbmVzcyBDQS0yMB4XDTk5MDYyMzEyMTQ0NVoXDTE5MDYyMzEyMTQ0 -NVowTjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDkVxdWlmYXggU2VjdXJlMSYwJAYD -VQQLEx1FcXVpZmF4IFNlY3VyZSBlQnVzaW5lc3MgQ0EtMjCBnzANBgkqhkiG9w0B -AQEFAAOBjQAwgYkCgYEA5Dk5kx5SBhsoNviyoynF7Y6yEb3+6+e0dMKP/wXn2Z0G -vxLIPw7y1tEkshHe0XMJitSxLJgJDR5QRrKDpkWNYmi7hRsgcDKqQM2mll/EcTc/ -BPO3QSQ5BxoeLmFYoBIL5aXfxavqN3HMHMg3OrmXUqesxWoklE6ce8/AatbfIb0C -AwEAAaOCAQkwggEFMHAGA1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEX -MBUGA1UEChMORXF1aWZheCBTZWN1cmUxJjAkBgNVBAsTHUVxdWlmYXggU2VjdXJl -IGVCdXNpbmVzcyBDQS0yMQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTkw -NjIzMTIxNDQ1WjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUUJ4L6q9euSBIplBq -y/3YIHqngnYwHQYDVR0OBBYEFFCeC+qvXrkgSKZQasv92CB6p4J2MAwGA1UdEwQF -MAMBAf8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUA -A4GBAAyGgq3oThr1jokn4jVYPSm0B482UJW/bsGe68SQsoWou7dC4A8HOd/7npCy -0cE+U58DRLB+S/Rv5Hwf5+Kx5Lia78O9zt4LMjTZ3ijtM2vE1Nc9ElirfQkty3D1 -E4qUoSek1nDFbZS1yX2doNLGCEnZZpum0/QL3MUmV+GRMOrN ------END CERTIFICATE----- - -# Issuer: CN=AddTrust Class 1 CA Root O=AddTrust AB OU=AddTrust TTP Network -# Subject: CN=AddTrust Class 1 CA Root O=AddTrust AB OU=AddTrust TTP Network -# Label: "AddTrust Low-Value Services Root" -# Serial: 1 -# MD5 Fingerprint: 1e:42:95:02:33:92:6b:b9:5f:c0:7f:da:d6:b2:4b:fc -# SHA1 Fingerprint: cc:ab:0e:a0:4c:23:01:d6:69:7b:dd:37:9f:cd:12:eb:24:e3:94:9d -# SHA256 Fingerprint: 8c:72:09:27:9a:c0:4e:27:5e:16:d0:7f:d3:b7:75:e8:01:54:b5:96:80:46:e3:1f:52:dd:25:76:63:24:e9:a7 ------BEGIN CERTIFICATE----- -MIIEGDCCAwCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSEwHwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3QwHhcNMDAwNTMw -MTAzODMxWhcNMjAwNTMwMTAzODMxWjBlMQswCQYDVQQGEwJTRTEUMBIGA1UEChML -QWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSEwHwYD -VQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUA -A4IBDwAwggEKAoIBAQCWltQhSWDia+hBBwzexODcEyPNwTXH+9ZOEQpnXvUGW2ul -CDtbKRY654eyNAbFvAWlA3yCyykQruGIgb3WntP+LVbBFc7jJp0VLhD7Bo8wBN6n -tGO0/7Gcrjyvd7ZWxbWroulpOj0OM3kyP3CCkplhbY0wCI9xP6ZIVxn4JdxLZlyl -dI+Yrsj5wAYi56xz36Uu+1LcsRVlIPo1Zmne3yzxbrww2ywkEtvrNTVokMsAsJch -PXQhI2U0K7t4WaPW4XY5mqRJjox0r26kmqPZm9I4XJuiGMx1I4S+6+JNM3GOGvDC -+Mcdoq0Dlyz4zyXG9rgkMbFjXZJ/Y/AlyVMuH79NAgMBAAGjgdIwgc8wHQYDVR0O -BBYEFJWxtPCUtr3H2tERCSG+wa9J/RB7MAsGA1UdDwQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MIGPBgNVHSMEgYcwgYSAFJWxtPCUtr3H2tERCSG+wa9J/RB7oWmkZzBl -MQswCQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFk -ZFRydXN0IFRUUCBOZXR3b3JrMSEwHwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENB -IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBACxtZBsfzQ3duQH6lmM0MkhHma6X -7f1yFqZzR1r0693p9db7RcwpiURdv0Y5PejuvE1Uhh4dbOMXJ0PhiVYrqW9yTkkz -43J8KiOavD7/KCrto/8cI7pDVwlnTUtiBi34/2ydYB7YHEt9tTEv2dB8Xfjea4MY -eDdXL+gzB2ffHsdrKpV2ro9Xo/D0UrSpUwjP4E/TelOL/bscVjby/rK25Xa71SJl -pz/+0WatC7xrmYbvP33zGDLKe8bjq2RGlfgmadlVg3sslgf/WSxEo8bl6ancoWOA -WiFeIc9TVPC6b4nbqKqVz4vjccweGyBECMB6tkD9xOQ14R0WHNC8K47Wcdk= ------END CERTIFICATE----- - -# Issuer: CN=AddTrust External CA Root O=AddTrust AB OU=AddTrust External TTP Network -# Subject: CN=AddTrust External CA Root O=AddTrust AB OU=AddTrust External TTP Network -# Label: "AddTrust External Root" -# Serial: 1 -# MD5 Fingerprint: 1d:35:54:04:85:78:b0:3f:42:42:4d:bf:20:73:0a:3f -# SHA1 Fingerprint: 02:fa:f3:e2:91:43:54:68:60:78:57:69:4d:f5:e4:5b:68:85:18:68 -# SHA256 Fingerprint: 68:7f:a4:51:38:22:78:ff:f0:c8:b1:1f:8d:43:d5:76:67:1c:6e:b2:bc:ea:b4:13:fb:83:d9:65:d0:6d:2f:f2 ------BEGIN CERTIFICATE----- -MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs -IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 -MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux -FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h -bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v -dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvt -H7xsD821+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9 -uMq/NzgtHj6RQa1wVsfwTz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzX -mk6vBbOmcZSccbNQYArHE504B4YCqOmoaSYYkKtMsE8jqzpPhNjfzp/haW+710LX -a0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy2xSoRcRdKn23tNbE7qzN -E0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv77+ldU9U0 -WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYD -VR0PBAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0 -Jvf6xCZU7wO94CTLVBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRU -cnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsx -IjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3SCAQEwDQYJKoZIhvcN -AQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZlj7DYd7usQWxH -YINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5 -6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvC -Nr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX -c4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a -mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ= ------END CERTIFICATE----- - -# Issuer: CN=AddTrust Public CA Root O=AddTrust AB OU=AddTrust TTP Network -# Subject: CN=AddTrust Public CA Root O=AddTrust AB OU=AddTrust TTP Network -# Label: "AddTrust Public Services Root" -# Serial: 1 -# MD5 Fingerprint: c1:62:3e:23:c5:82:73:9c:03:59:4b:2b:e9:77:49:7f -# SHA1 Fingerprint: 2a:b6:28:48:5e:78:fb:f3:ad:9e:79:10:dd:6b:df:99:72:2c:96:e5 -# SHA256 Fingerprint: 07:91:ca:07:49:b2:07:82:aa:d3:c7:d7:bd:0c:df:c9:48:58:35:84:3e:b2:d7:99:60:09:ce:43:ab:6c:69:27 ------BEGIN CERTIFICATE----- -MIIEFTCCAv2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSAwHgYDVQQDExdBZGRUcnVzdCBQdWJsaWMgQ0EgUm9vdDAeFw0wMDA1MzAx -MDQxNTBaFw0yMDA1MzAxMDQxNTBaMGQxCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtB -ZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQIE5ldHdvcmsxIDAeBgNV -BAMTF0FkZFRydXN0IFB1YmxpYyBDQSBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEA6Rowj4OIFMEg2Dybjxt+A3S72mnTRqX4jsIMEZBRpS9mVEBV -6tsfSlbunyNu9DnLoblv8n75XYcmYZ4c+OLspoH4IcUkzBEMP9smcnrHAZcHF/nX -GCwwfQ56HmIexkvA/X1id9NEHif2P0tEs7c42TkfYNVRknMDtABp4/MUTu7R3AnP -dzRGULD4EfL+OHn3Bzn+UZKXC1sIXzSGAa2Il+tmzV7R/9x98oTaunet3IAIx6eH -1lWfl2royBFkuucZKT8Rs3iQhCBSWxHveNCD9tVIkNAwHM+A+WD+eeSI8t0A65RF -62WUaUC6wNW0uLp9BBGo6zEFlpROWCGOn9Bg/QIDAQABo4HRMIHOMB0GA1UdDgQW -BBSBPjfYkrAfd59ctKtzquf2NGAv+jALBgNVHQ8EBAMCAQYwDwYDVR0TAQH/BAUw -AwEB/zCBjgYDVR0jBIGGMIGDgBSBPjfYkrAfd59ctKtzquf2NGAv+qFopGYwZDEL -MAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQLExRBZGRU -cnVzdCBUVFAgTmV0d29yazEgMB4GA1UEAxMXQWRkVHJ1c3QgUHVibGljIENBIFJv -b3SCAQEwDQYJKoZIhvcNAQEFBQADggEBAAP3FUr4JNojVhaTdt02KLmuG7jD8WS6 -IBh4lSknVwW8fCr0uVFV2ocC3g8WFzH4qnkuCRO7r7IgGRLlk/lL+YPoRNWyQSW/ -iHVv/xD8SlTQX/D67zZzfRs2RcYhbbQVuE7PnFylPVoAjgbjPGsye/Kf8Lb93/Ao -GEjwxrzQvzSAlsJKsW2Ox5BF3i9nrEUEo3rcVZLJR2bYGozH7ZxOmuASu7VqTITh -4SINhwBk/ox9Yjllpu9CtoAlEmEBqCQTcAARJl/6NVDFSMwGR+gn2HCNX2TmoUQm -XiLsks3/QppEIW1cxeMiHV9HEufOX1362KqxMy3ZdvJOOjMMK7MtkAY= ------END CERTIFICATE----- - -# Issuer: CN=AddTrust Qualified CA Root O=AddTrust AB OU=AddTrust TTP Network -# Subject: CN=AddTrust Qualified CA Root O=AddTrust AB OU=AddTrust TTP Network -# Label: "AddTrust Qualified Certificates Root" -# Serial: 1 -# MD5 Fingerprint: 27:ec:39:47:cd:da:5a:af:e2:9a:01:65:21:a9:4c:bb -# SHA1 Fingerprint: 4d:23:78:ec:91:95:39:b5:00:7f:75:8f:03:3b:21:1e:c5:4d:8b:cf -# SHA256 Fingerprint: 80:95:21:08:05:db:4b:bc:35:5e:44:28:d8:fd:6e:c2:cd:e3:ab:5f:b9:7a:99:42:98:8e:b8:f4:dc:d0:60:16 ------BEGIN CERTIFICATE----- -MIIEHjCCAwagAwIBAgIBATANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSMwIQYDVQQDExpBZGRUcnVzdCBRdWFsaWZpZWQgQ0EgUm9vdDAeFw0wMDA1 -MzAxMDQ0NTBaFw0yMDA1MzAxMDQ0NTBaMGcxCzAJBgNVBAYTAlNFMRQwEgYDVQQK -EwtBZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQIE5ldHdvcmsxIzAh -BgNVBAMTGkFkZFRydXN0IFF1YWxpZmllZCBDQSBSb290MIIBIjANBgkqhkiG9w0B -AQEFAAOCAQ8AMIIBCgKCAQEA5B6a/twJWoekn0e+EV+vhDTbYjx5eLfpMLXsDBwq -xBb/4Oxx64r1EW7tTw2R0hIYLUkVAcKkIhPHEWT/IhKauY5cLwjPcWqzZwFZ8V1G -87B4pfYOQnrjfxvM0PC3KP0q6p6zsLkEqv32x7SxuCqg+1jxGaBvcCV+PmlKfw8i -2O+tCBGaKZnhqkRFmhJePp1tUvznoD1oL/BLcHwTOK28FSXx1s6rosAx1i+f4P8U -WfyEk9mHfExUE+uf0S0R+Bg6Ot4l2ffTQO2kBhLEO+GRwVY18BTcZTYJbqukB8c1 -0cIDMzZbdSZtQvESa0NvS3GU+jQd7RNuyoB/mC9suWXY6QIDAQABo4HUMIHRMB0G -A1UdDgQWBBQ5lYtii1zJ1IC6WA+XPxUIQ8yYpzALBgNVHQ8EBAMCAQYwDwYDVR0T -AQH/BAUwAwEB/zCBkQYDVR0jBIGJMIGGgBQ5lYtii1zJ1IC6WA+XPxUIQ8yYp6Fr -pGkwZzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQL -ExRBZGRUcnVzdCBUVFAgTmV0d29yazEjMCEGA1UEAxMaQWRkVHJ1c3QgUXVhbGlm -aWVkIENBIFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBABmrder4i2VhlRO6aQTv -hsoToMeqT2QbPxj2qC0sVY8FtzDqQmodwCVRLae/DLPt7wh/bDxGGuoYQ992zPlm -hpwsaPXpF/gxsxjE1kh9I0xowX67ARRvxdlu3rsEQmr49lx95dr6h+sNNVJn0J6X -dgWTP5XHAeZpVTh/EGGZyeNfpso+gmNIquIISD6q8rKFYqa0p9m9N5xotS1WfbC3 -P6CxB9bpT9zeRXEwMn8bLgn5v1Kh7sKAPgZcLlVAwRv1cEWw3F369nJad9Jjzc9Y -iQBCYz95OdBEsIJuQRno3eDBiFrRHnGTHyQwdOUeqN48Jzd/g66ed8/wMLH/S5no -xqE= ------END CERTIFICATE----- - -# Issuer: CN=Entrust Root Certification Authority O=Entrust, Inc. OU=www.entrust.net/CPS is incorporated by reference/(c) 2006 Entrust, Inc. -# Subject: CN=Entrust Root Certification Authority O=Entrust, Inc. OU=www.entrust.net/CPS is incorporated by reference/(c) 2006 Entrust, Inc. -# Label: "Entrust Root Certification Authority" -# Serial: 1164660820 -# MD5 Fingerprint: d6:a5:c3:ed:5d:dd:3e:00:c1:3d:87:92:1f:1d:3f:e4 -# SHA1 Fingerprint: b3:1e:b1:b7:40:e3:6c:84:02:da:dc:37:d4:4d:f5:d4:67:49:52:f9 -# SHA256 Fingerprint: 73:c1:76:43:4f:1b:c6:d5:ad:f4:5b:0e:76:e7:27:28:7c:8d:e5:76:16:c1:e6:e6:14:1a:2b:2c:bc:7d:8e:4c ------BEGIN CERTIFICATE----- -MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMC -VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0 -Lm5ldC9DUFMgaXMgaW5jb3Jwb3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMW -KGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsGA1UEAxMkRW50cnVzdCBSb290IENl -cnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0MloXDTI2MTEyNzIw -NTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMTkw -NwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSBy -ZWZlcmVuY2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNV -BAMTJEVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJ -KoZIhvcNAQEBBQADggEPADCCAQoCggEBALaVtkNC+sZtKm9I35RMOVcF7sN5EUFo -Nu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYszA9u3g3s+IIRe7bJWKKf4 -4LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOwwCj0Yzfv9 -KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGI -rb68j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi -94DkZfs0Nw4pgHBNrziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOB -sDCBrTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAi -gA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1MzQyWjAfBgNVHSMEGDAWgBRo -kORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DHhmak8fdLQ/uE -vW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA -A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9t -O1KzKtvn1ISMY/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6Zua -AGAT/3B+XxFNSRuzFVJ7yVTav52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP -9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTSW3iDVuycNsMm4hH2Z0kdkquM++v/ -eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0tHuu2guQOHXvgR1m -0vdXcDazv/wor3ElhVsT/h5/WrQ8 ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Global CA O=GeoTrust Inc. -# Subject: CN=GeoTrust Global CA O=GeoTrust Inc. -# Label: "GeoTrust Global CA" -# Serial: 144470 -# MD5 Fingerprint: f7:75:ab:29:fb:51:4e:b7:77:5e:ff:05:3c:99:8e:f5 -# SHA1 Fingerprint: de:28:f4:a4:ff:e5:b9:2f:a3:c5:03:d1:a3:49:a7:f9:96:2a:82:12 -# SHA256 Fingerprint: ff:85:6a:2d:25:1d:cd:88:d3:66:56:f4:50:12:67:98:cf:ab:aa:de:40:79:9c:72:2d:e4:d2:b5:db:36:a7:3a ------BEGIN CERTIFICATE----- -MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT -MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i -YWwgQ0EwHhcNMDIwNTIxMDQwMDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQG -EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMSR2VvVHJ1c3Qg -R2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2swYYzD9 -9BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjoBbdq -fnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDv -iS2Aelet8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU -1XupGc1V3sjs0l44U+VcT4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+ -bw8HHa8sHo9gOeL6NlMTOdReJivbPagUvTLrGAMoUgRx5aszPeE4uwc2hGKceeoW -MPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTA -ephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVkDBF9qn1l -uMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKIn -Z57QzxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfS -tQWVYrmm3ok9Nns4d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcF -PseKUgzbFbS9bZvlxrFUaKnjaZC2mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Un -hw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6pXE0zX5IJL4hmXXeXxx12E6nV -5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvmMw== ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Global CA 2 O=GeoTrust Inc. -# Subject: CN=GeoTrust Global CA 2 O=GeoTrust Inc. -# Label: "GeoTrust Global CA 2" -# Serial: 1 -# MD5 Fingerprint: 0e:40:a7:6c:de:03:5d:8f:d1:0f:e4:d1:8d:f9:6c:a9 -# SHA1 Fingerprint: a9:e9:78:08:14:37:58:88:f2:05:19:b0:6d:2b:0d:2b:60:16:90:7d -# SHA256 Fingerprint: ca:2d:82:a0:86:77:07:2f:8a:b6:76:4f:f0:35:67:6c:fe:3e:5e:32:5e:01:21:72:df:3f:92:09:6d:b7:9b:85 ------BEGIN CERTIFICATE----- -MIIDZjCCAk6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBEMQswCQYDVQQGEwJVUzEW -MBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEdMBsGA1UEAxMUR2VvVHJ1c3QgR2xvYmFs -IENBIDIwHhcNMDQwMzA0MDUwMDAwWhcNMTkwMzA0MDUwMDAwWjBEMQswCQYDVQQG -EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEdMBsGA1UEAxMUR2VvVHJ1c3Qg -R2xvYmFsIENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDvPE1A -PRDfO1MA4Wf+lGAVPoWI8YkNkMgoI5kF6CsgncbzYEbYwbLVjDHZ3CB5JIG/NTL8 -Y2nbsSpr7iFY8gjpeMtvy/wWUsiRxP89c96xPqfCfWbB9X5SJBri1WeR0IIQ13hL -TytCOb1kLUCgsBDTOEhGiKEMuzozKmKY+wCdE1l/bztyqu6mD4b5BWHqZ38MN5aL -5mkWRxHCJ1kDs6ZgwiFAVvqgx306E+PsV8ez1q6diYD3Aecs9pYrEw15LNnA5IZ7 -S4wMcoKK+xfNAGw6EzywhIdLFnopsk/bHdQL82Y3vdj2V7teJHq4PIu5+pIaGoSe -2HSPqht/XvT+RSIhAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE -FHE4NvICMVNHK266ZUapEBVYIAUJMB8GA1UdIwQYMBaAFHE4NvICMVNHK266ZUap -EBVYIAUJMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQUFAAOCAQEAA/e1K6td -EPx7srJerJsOflN4WT5CBP51o62sgU7XAotexC3IUnbHLB/8gTKY0UvGkpMzNTEv -/NgdRN3ggX+d6YvhZJFiCzkIjKx0nVnZellSlxG5FntvRdOW2TF9AjYPnDtuzywN -A0ZF66D0f0hExghAzN4bcLUprbqLOzRldRtxIR0sFAqwlpW41uryZfspuk/qkZN0 -abby/+Ea0AzRdoXLiiW9l14sbxWZJue2Kf8i7MkCx1YAzUm5s2x7UwQa4qjJqhIF -I8LO57sEAszAR6LkxCkvW0VXiVHuPOtSCP8HNR6fNWpHSlaY0VqFH4z1Ir+rzoPz -4iIprn2DQKi6bA== ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Universal CA O=GeoTrust Inc. -# Subject: CN=GeoTrust Universal CA O=GeoTrust Inc. -# Label: "GeoTrust Universal CA" -# Serial: 1 -# MD5 Fingerprint: 92:65:58:8b:a2:1a:31:72:73:68:5c:b4:a5:7a:07:48 -# SHA1 Fingerprint: e6:21:f3:35:43:79:05:9a:4b:68:30:9d:8a:2f:74:22:15:87:ec:79 -# SHA256 Fingerprint: a0:45:9b:9f:63:b2:25:59:f5:fa:5d:4c:6d:b3:f9:f7:2f:f1:93:42:03:35:78:f0:73:bf:1d:1b:46:cb:b9:12 ------BEGIN CERTIFICATE----- -MIIFaDCCA1CgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJVUzEW -MBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEeMBwGA1UEAxMVR2VvVHJ1c3QgVW5pdmVy -c2FsIENBMB4XDTA0MDMwNDA1MDAwMFoXDTI5MDMwNDA1MDAwMFowRTELMAkGA1UE -BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xHjAcBgNVBAMTFUdlb1RydXN0 -IFVuaXZlcnNhbCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKYV -VaCjxuAfjJ0hUNfBvitbtaSeodlyWL0AG0y/YckUHUWCq8YdgNY96xCcOq9tJPi8 -cQGeBvV8Xx7BDlXKg5pZMK4ZyzBIle0iN430SppyZj6tlcDgFgDgEB8rMQ7XlFTT -QjOgNB0eRXbdT8oYN+yFFXoZCPzVx5zw8qkuEKmS5j1YPakWaDwvdSEYfyh3peFh -F7em6fgemdtzbvQKoiFs7tqqhZJmr/Z6a4LauiIINQ/PQvE1+mrufislzDoR5G2v -c7J2Ha3QsnhnGqQ5HFELZ1aD/ThdDc7d8Lsrlh/eezJS/R27tQahsiFepdaVaH/w -mZ7cRQg+59IJDTWU3YBOU5fXtQlEIGQWFwMCTFMNaN7VqnJNk22CDtucvc+081xd -VHppCZbW2xHBjXWotM85yM48vCR85mLK4b19p71XZQvk/iXttmkQ3CgaRr0BHdCX -teGYO8A3ZNY9lO4L4fUorgtWv3GLIylBjobFS1J72HGrH4oVpjuDWtdYAVHGTEHZ -f9hBZ3KiKN9gg6meyHv8U3NyWfWTehd2Ds735VzZC1U0oqpbtWpU5xPKV+yXbfRe -Bi9Fi1jUIxaS5BZuKGNZMN9QAZxjiRqf2xeUgnA3wySemkfWWspOqGmJch+RbNt+ -nhutxx9z3SxPGWX9f5NAEC7S8O08ni4oPmkmM8V7AgMBAAGjYzBhMA8GA1UdEwEB -/wQFMAMBAf8wHQYDVR0OBBYEFNq7LqqwDLiIJlF0XG0D08DYj3rWMB8GA1UdIwQY -MBaAFNq7LqqwDLiIJlF0XG0D08DYj3rWMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG -9w0BAQUFAAOCAgEAMXjmx7XfuJRAyXHEqDXsRh3ChfMoWIawC/yOsjmPRFWrZIRc -aanQmjg8+uUfNeVE44B5lGiku8SfPeE0zTBGi1QrlaXv9z+ZhP015s8xxtxqv6fX -IwjhmF7DWgh2qaavdy+3YL1ERmrvl/9zlcGO6JP7/TG37FcREUWbMPEaiDnBTzyn -ANXH/KttgCJwpQzgXQQpAvvLoJHRfNbDflDVnVi+QTjruXU8FdmbyUqDWcDaU/0z -uzYYm4UPFd3uLax2k7nZAY1IEKj79TiG8dsKxr2EoyNB3tZ3b4XUhRxQ4K5RirqN -Pnbiucon8l+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxFKyDuSN/n3QmOGKja -QI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2DFKW -koRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9 -ER/frslKxfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQt -DF4JbAiXfKM9fJP/P6EUp8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/Sfuvm -bJxPgWp6ZKy7PtXny3YuxadIwVyQD8vIP/rmMuGNG2+k5o7Y+SlIis5z/iw= ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Universal CA 2 O=GeoTrust Inc. -# Subject: CN=GeoTrust Universal CA 2 O=GeoTrust Inc. -# Label: "GeoTrust Universal CA 2" -# Serial: 1 -# MD5 Fingerprint: 34:fc:b8:d0:36:db:9e:14:b3:c2:f2:db:8f:e4:94:c7 -# SHA1 Fingerprint: 37:9a:19:7b:41:85:45:35:0c:a6:03:69:f3:3c:2e:af:47:4f:20:79 -# SHA256 Fingerprint: a0:23:4f:3b:c8:52:7c:a5:62:8e:ec:81:ad:5d:69:89:5d:a5:68:0d:c9:1d:1c:b8:47:7f:33:f8:78:b9:5b:0b ------BEGIN CERTIFICATE----- -MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEW -MBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVy -c2FsIENBIDIwHhcNMDQwMzA0MDUwMDAwWhcNMjkwMzA0MDUwMDAwWjBHMQswCQYD -VQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR2VvVHJ1 -c3QgVW5pdmVyc2FsIENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC -AQCzVFLByT7y2dyxUxpZKeexw0Uo5dfR7cXFS6GqdHtXr0om/Nj1XqduGdt0DE81 -WzILAePb63p3NeqqWuDW6KFXlPCQo3RWlEQwAx5cTiuFJnSCegx2oG9NzkEtoBUG -FF+3Qs17j1hhNNwqCPkuwwGmIkQcTAeC5lvO0Ep8BNMZcyfwqph/Lq9O64ceJHdq -XbboW0W63MOhBW9Wjo8QJqVJwy7XQYci4E+GymC16qFjwAGXEHm9ADwSbSsVsaxL -se4YuU6W3Nx2/zu+z18DwPw76L5GG//aQMJS9/7jOvdqdzXQ2o3rXhhqMcceujwb -KNZrVMaqW9eiLBsZzKIC9ptZvTdrhrVtgrrY6slWvKk2WP0+GfPtDCapkzj4T8Fd -IgbQl+rhrcZV4IErKIM6+vR7IVEAvlI4zs1meaj0gVbi0IMJR1FbUGrP20gaXT73 -y/Zl92zxlfgCOzJWgjl6W70viRu/obTo/3+NjN8D8WBOWBFM66M/ECuDmgFz2ZRt -hAAnZqzwcEAJQpKtT5MNYQlRJNiS1QuUYbKHsu3/mjX/hVTK7URDrBs8FmtISgoc -QIgfksILAAX/8sgCSqSqqcyZlpwvWOB94b67B9xfBHJcMTTD7F8t4D1kkCLm0ey4 -Lt1ZrtmhN79UNdxzMk+MBB4zsslG8dhcyFVQyWi9qLo2CQIDAQABo2MwYTAPBgNV -HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR281Xh+qQ2+/CfXGJx7Tz0RzgQKzAfBgNV -HSMEGDAWgBR281Xh+qQ2+/CfXGJx7Tz0RzgQKzAOBgNVHQ8BAf8EBAMCAYYwDQYJ -KoZIhvcNAQEFBQADggIBAGbBxiPz2eAubl/oz66wsCVNK/g7WJtAJDday6sWSf+z -dXkzoS9tcBc0kf5nfo/sm+VegqlVHy/c1FEHEv6sFj4sNcZj/NwQ6w2jqtB8zNHQ -L1EuxBRa3ugZ4T7GzKQp5y6EqgYweHZUcyiYWTjgAA1i00J9IZ+uPTqM1fp3DRgr -Fg5fNuH8KrUwJM/gYwx7WBr+mbpCErGR9Hxo4sjoryzqyX6uuyo9DRXcNJW2GHSo -ag/HtPQTxORb7QrSpJdMKu0vbBKJPfEncKpqA1Ihn0CoZ1Dy81of398j9tx4TuaY -T1U6U+Pv8vSfx3zYWK8pIpe44L2RLrB27FcRz+8pRPPphXpgY+RdM4kX2TGq2tbz -GDVyz4crL2MjhF2EjD9XoIj8mZEoJmmZ1I+XRL6O1UixpCgp8RW04eWe3fiPpm8m -1wk8OhwRDqZsN/etRIcsKMfYdIKz0G9KV7s1KSegi+ghp4dkNl3M2Basx7InQJJV -OCiNUW7dFGdTbHFcJoRNdVq2fmBWqU2t+5sel/MN2dKXVHfaPRK34B7vCAas+YWH -6aLcr34YEoP9VhdBLtUpgn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwX -QMAJKOSLakhT2+zNVVXxxvjpoixMptEmX36vWkzaH6byHCx+rgIW0lbQL1dTR+iS ------END CERTIFICATE----- - -# Issuer: CN=America Online Root Certification Authority 1 O=America Online Inc. -# Subject: CN=America Online Root Certification Authority 1 O=America Online Inc. -# Label: "America Online Root Certification Authority 1" -# Serial: 1 -# MD5 Fingerprint: 14:f1:08:ad:9d:fa:64:e2:89:e7:1c:cf:a8:ad:7d:5e -# SHA1 Fingerprint: 39:21:c1:15:c1:5d:0e:ca:5c:cb:5b:c4:f0:7d:21:d8:05:0b:56:6a -# SHA256 Fingerprint: 77:40:73:12:c6:3a:15:3d:5b:c0:0b:4e:51:75:9c:df:da:c2:37:dc:2a:33:b6:79:46:e9:8e:9b:fa:68:0a:e3 ------BEGIN CERTIFICATE----- -MIIDpDCCAoygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP -bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAxMB4XDTAyMDUyODA2 -MDAwMFoXDTM3MTExOTIwNDMwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft -ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg -Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAKgv6KRpBgNHw+kqmP8ZonCaxlCyfqXfaE0bfA+2l2h9LaaLl+lk -hsmj76CGv2BlnEtUiMJIxUo5vxTjWVXlGbR0yLQFOVwWpeKVBeASrlmLojNoWBym -1BW32J/X3HGrfpq/m44zDyL9Hy7nBzbvYjnF3cu6JRQj3gzGPTzOggjmZj7aUTsW -OqMFf6Dch9Wc/HKpoH145LcxVR5lu9RhsCFg7RAycsWSJR74kEoYeEfffjA3PlAb -2xzTa5qGUwew76wGePiEmf4hjUyAtgyC9mZweRrTT6PP8c9GsEsPPt2IYriMqQko -O3rHl+Ee5fSfwMCuJKDIodkP1nsmgmkyPacCAwEAAaNjMGEwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUAK3Zo/Z59m50qX8zPYEX10zPM94wHwYDVR0jBBgwFoAU -AK3Zo/Z59m50qX8zPYEX10zPM94wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB -BQUAA4IBAQB8itEfGDeC4Liwo+1WlchiYZwFos3CYiZhzRAW18y0ZTTQEYqtqKkF -Zu90821fnZmv9ov761KyBZiibyrFVL0lvV+uyIbqRizBs73B6UlwGBaXCBOMIOAb -LjpHyx7kADCVW/RFo8AasAFOq73AI25jP4BKxQft3OJvx8Fi8eNy1gTIdGcL+oir -oQHIb/AUr9KZzVGTfu0uOMe9zkZQPXLjeSWdm4grECDdpbgyn43gKd8hdIaC2y+C -MMbHNYaz+ZZfRtsMRf3zUMNvxsNIrUam4SdHCh0Om7bCd39j8uB9Gr784N/Xx6ds -sPmuujz9dLQR6FgNgLzTqIA6me11zEZ7 ------END CERTIFICATE----- - -# Issuer: CN=America Online Root Certification Authority 2 O=America Online Inc. -# Subject: CN=America Online Root Certification Authority 2 O=America Online Inc. -# Label: "America Online Root Certification Authority 2" -# Serial: 1 -# MD5 Fingerprint: d6:ed:3c:ca:e2:66:0f:af:10:43:0d:77:9b:04:09:bf -# SHA1 Fingerprint: 85:b5:ff:67:9b:0c:79:96:1f:c8:6e:44:22:00:46:13:db:17:92:84 -# SHA256 Fingerprint: 7d:3b:46:5a:60:14:e5:26:c0:af:fc:ee:21:27:d2:31:17:27:ad:81:1c:26:84:2d:00:6a:f3:73:06:cc:80:bd ------BEGIN CERTIFICATE----- -MIIFpDCCA4ygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP -bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAyMB4XDTAyMDUyODA2 -MDAwMFoXDTM3MDkyOTE0MDgwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft -ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg -Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBAMxBRR3pPU0Q9oyxQcngXssNt79Hc9PwVU3dxgz6sWYFas14tNwC -206B89enfHG8dWOgXeMHDEjsJcQDIPT/DjsS/5uN4cbVG7RtIuOx238hZK+GvFci -KtZHgVdEglZTvYYUAQv8f3SkWq7xuhG1m1hagLQ3eAkzfDJHA1zEpYNI9FdWboE2 -JxhP7JsowtS013wMPgwr38oE18aO6lhOqKSlGBxsRZijQdEt0sdtjRnxrXm3gT+9 -BoInLRBYBbV4Bbkv2wxrkJB+FFk4u5QkE+XRnRTf04JNRvCAOVIyD+OEsnpD8l7e -Xz8d3eOyG6ChKiMDbi4BFYdcpnV1x5dhvt6G3NRI270qv0pV2uh9UPu0gBe4lL8B -PeraunzgWGcXuVjgiIZGZ2ydEEdYMtA1fHkqkKJaEBEjNa0vzORKW6fIJ/KD3l67 -Xnfn6KVuY8INXWHQjNJsWiEOyiijzirplcdIz5ZvHZIlyMbGwcEMBawmxNJ10uEq -Z8A9W6Wa6897GqidFEXlD6CaZd4vKL3Ob5Rmg0gp2OpljK+T2WSfVVcmv2/LNzGZ -o2C7HK2JNDJiuEMhBnIMoVxtRsX6Kc8w3onccVvdtjc+31D1uAclJuW8tf48ArO3 -+L5DwYcRlJ4jbBeKuIonDFRH8KmzwICMoCfrHRnjB453cMor9H124HhnAgMBAAGj -YzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFE1FwWg4u3OpaaEg5+31IqEj -FNeeMB8GA1UdIwQYMBaAFE1FwWg4u3OpaaEg5+31IqEjFNeeMA4GA1UdDwEB/wQE -AwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAZ2sGuV9FOypLM7PmG2tZTiLMubekJcmn -xPBUlgtk87FYT15R/LKXeydlwuXK5w0MJXti4/qftIe3RUavg6WXSIylvfEWK5t2 -LHo1YGwRgJfMqZJS5ivmae2p+DYtLHe/YUjRYwu5W1LtGLBDQiKmsXeu3mnFzccc -obGlHBD7GL4acN3Bkku+KVqdPzW+5X1R+FXgJXUjhx5c3LqdsKyzadsXg8n33gy8 -CNyRnqjQ1xU3c6U1uPx+xURABsPr+CKAXEfOAuMRn0T//ZoyzH1kUQ7rVyZ2OuMe -IjzCpjbdGe+n/BLzJsBZMYVMnNjP36TMzCmT/5RtdlwTCJfy7aULTd3oyWgOZtMA -DjMSW7yV5TKQqLPGbIOtd+6Lfn6xqavT4fG2wLHqiMDn05DpKJKUe2h7lyoKZy2F -AjgQ5ANh1NolNscIWC2hp1GvMApJ9aZphwctREZ2jirlmjvXGKL8nDgQzMY70rUX -Om/9riW99XJZZLF0KjhfGEzfz3EEWjbUvy+ZnOjZurGV5gJLIaFb1cFPj65pbVPb -AZO1XB4Y3WRayhgoPmMEEf0cjQAPuDffZ4qdZqkCapH/E8ovXYO8h5Ns3CRRFgQl -Zvqz2cK6Kb6aSDiCmfS/O0oxGfm/jiEzFMpPVF/7zvuPcX/9XhmgD0uRuMRUvAaw -RY8mkaKO/qk= ------END CERTIFICATE----- - -# Issuer: CN=AAA Certificate Services O=Comodo CA Limited -# Subject: CN=AAA Certificate Services O=Comodo CA Limited -# Label: "Comodo AAA Services root" -# Serial: 1 -# MD5 Fingerprint: 49:79:04:b0:eb:87:19:ac:47:b0:bc:11:51:9b:74:d0 -# SHA1 Fingerprint: d1:eb:23:a4:6d:17:d6:8f:d9:25:64:c2:f1:f1:60:17:64:d8:e3:49 -# SHA256 Fingerprint: d7:a7:a0:fb:5d:7e:27:31:d7:71:e9:48:4e:bc:de:f7:1d:5f:0c:3e:0a:29:48:78:2b:c8:3e:e0:ea:69:9e:f4 ------BEGIN CERTIFICATE----- -MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmlj -YXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAwMFoXDTI4MTIzMTIzNTk1OVowezEL -MAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE -BwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMM -GEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQua -BtDFcCLNSS1UY8y2bmhGC1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe -3M/vg4aijJRPn2jymJBGhCfHdr/jzDUsi14HZGWCwEiwqJH5YZ92IFCokcdmtet4 -YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszWY19zjNoFmag4qMsXeDZR -rOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjHYpy+g8cm -ez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQU -oBEKIz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF -MAMBAf8wewYDVR0fBHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20v -QUFBQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29t -b2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2VzLmNybDANBgkqhkiG9w0BAQUF -AAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm7l3sAg9g1o1Q -GE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz -Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2 -G9w84FoVxp7Z8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsi -l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3 -smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg== ------END CERTIFICATE----- - -# Issuer: CN=Secure Certificate Services O=Comodo CA Limited -# Subject: CN=Secure Certificate Services O=Comodo CA Limited -# Label: "Comodo Secure Services root" -# Serial: 1 -# MD5 Fingerprint: d3:d9:bd:ae:9f:ac:67:24:b3:c8:1b:52:e1:b9:a9:bd -# SHA1 Fingerprint: 4a:65:d5:f4:1d:ef:39:b8:b8:90:4a:4a:d3:64:81:33:cf:c7:a1:d1 -# SHA256 Fingerprint: bd:81:ce:3b:4f:65:91:d1:1a:67:b5:fc:7a:47:fd:ef:25:52:1b:f9:aa:4e:18:b9:e3:df:2e:34:a7:80:3b:e8 ------BEGIN CERTIFICATE----- -MIIEPzCCAyegAwIBAgIBATANBgkqhkiG9w0BAQUFADB+MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEkMCIGA1UEAwwbU2VjdXJlIENlcnRp -ZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAwMFoXDTI4MTIzMTIzNTk1OVow -fjELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G -A1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxJDAiBgNV -BAMMG1NlY3VyZSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAMBxM4KK0HDrc4eCQNUd5MvJDkKQ+d40uaG6EfQlhfPM -cm3ye5drswfxdySRXyWP9nQ95IDC+DwN879A6vfIUtFyb+/Iq0G4bi4XKpVpDM3S -HpR7LZQdqnXXs5jLrLxkU0C8j6ysNstcrbvd4JQX7NFc0L/vpZXJkMWwrPsbQ996 -CF23uPJAGysnnlDOXmWCiIxe004MeuoIkbY2qitC++rCoznl2yY4rYsK7hljxxwk -3wN42ubqwUcaCwtGCd0C/N7Lh1/XMGNooa7cMqG6vv5Eq2i2pRcV/b3Vp6ea5EQz -6YiO/O1R65NxTq0B50SOqy3LqP4BSUjwwN3HaNiS/j0CAwEAAaOBxzCBxDAdBgNV -HQ4EFgQUPNiTiMLAggnMAZkGkyDpnnAJY08wDgYDVR0PAQH/BAQDAgEGMA8GA1Ud -EwEB/wQFMAMBAf8wgYEGA1UdHwR6MHgwO6A5oDeGNWh0dHA6Ly9jcmwuY29tb2Rv -Y2EuY29tL1NlY3VyZUNlcnRpZmljYXRlU2VydmljZXMuY3JsMDmgN6A1hjNodHRw -Oi8vY3JsLmNvbW9kby5uZXQvU2VjdXJlQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmww -DQYJKoZIhvcNAQEFBQADggEBAIcBbSMdflsXfcFhMs+P5/OKlFlm4J4oqF7Tt/Q0 -5qo5spcWxYJvMqTpjOev/e/C6LlLqqP05tqNZSH7uoDrJiiFGv45jN5bBAS0VPmj -Z55B+glSzAVIqMk/IQQezkhr/IXownuvf7fM+F86/TXGDe+X3EyrEeFryzHRbPtI -gKvcnDe4IRRLDXE97IMzbtFuMhbsmMcWi1mmNKsFVy2T96oTy9IT4rcuO81rUBcJ -aD61JlfutuC23bkpgHl9j6PwpCikFcSF9CfUa7/lXORlAnZUtOM3ZiTTGWHIUhDl -izeauan5Hb/qmZJhlv8BzaFfDbxxvA6sCx1HRR3B7Hzs/Sk= ------END CERTIFICATE----- - -# Issuer: CN=Trusted Certificate Services O=Comodo CA Limited -# Subject: CN=Trusted Certificate Services O=Comodo CA Limited -# Label: "Comodo Trusted Services root" -# Serial: 1 -# MD5 Fingerprint: 91:1b:3f:6e:cd:9e:ab:ee:07:fe:1f:71:d2:b3:61:27 -# SHA1 Fingerprint: e1:9f:e3:0e:8b:84:60:9e:80:9b:17:0d:72:a8:c5:ba:6e:14:09:bd -# SHA256 Fingerprint: 3f:06:e5:56:81:d4:96:f5:be:16:9e:b5:38:9f:9f:2b:8f:f6:1e:17:08:df:68:81:72:48:49:cd:5d:27:cb:69 ------BEGIN CERTIFICATE----- -MIIEQzCCAyugAwIBAgIBATANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDElMCMGA1UEAwwcVHJ1c3RlZCBDZXJ0 -aWZpY2F0ZSBTZXJ2aWNlczAeFw0wNDAxMDEwMDAwMDBaFw0yODEyMzEyMzU5NTla -MH8xCzAJBgNVBAYTAkdCMRswGQYDVQQIDBJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO -BgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoMEUNvbW9kbyBDQSBMaW1pdGVkMSUwIwYD -VQQDDBxUcnVzdGVkIENlcnRpZmljYXRlIFNlcnZpY2VzMIIBIjANBgkqhkiG9w0B -AQEFAAOCAQ8AMIIBCgKCAQEA33FvNlhTWvI2VFeAxHQIIO0Yfyod5jWaHiWsnOWW -fnJSoBVC21ndZHoa0Lh73TkVvFVIxO06AOoxEbrycXQaZ7jPM8yoMa+j49d/vzMt -TGo87IvDktJTdyR0nAducPy9C1t2ul/y/9c3S0pgePfw+spwtOpZqqPOSC+pw7IL -fhdyFgymBwwbOM/JYrc/oJOlh0Hyt3BAd9i+FHzjqMB6juljatEPmsbS9Is6FARW -1O24zG71++IsWL1/T2sr92AkWCTOJu80kTrV44HQsvAEAtdbtz6SrGsSivnkBbA7 -kUlcsutT6vifR4buv5XAwAaf0lteERv0xwQ1KdJVXOTt6wIDAQABo4HJMIHGMB0G -A1UdDgQWBBTFe1i97doladL3WRaoszLAeydb9DAOBgNVHQ8BAf8EBAMCAQYwDwYD -VR0TAQH/BAUwAwEB/zCBgwYDVR0fBHwwejA8oDqgOIY2aHR0cDovL2NybC5jb21v -ZG9jYS5jb20vVHJ1c3RlZENlcnRpZmljYXRlU2VydmljZXMuY3JsMDqgOKA2hjRo -dHRwOi8vY3JsLmNvbW9kby5uZXQvVHJ1c3RlZENlcnRpZmljYXRlU2VydmljZXMu -Y3JsMA0GCSqGSIb3DQEBBQUAA4IBAQDIk4E7ibSvuIQSTI3S8NtwuleGFTQQuS9/ -HrCoiWChisJ3DFBKmwCL2Iv0QeLQg4pKHBQGsKNoBXAxMKdTmw7pSqBYaWcOrp32 -pSxBvzwGa+RZzG0Q8ZZvH9/0BAKkn0U+yNj6NkZEUD+Cl5EfKNsYEYwq5GWDVxIS -jBc/lDb+XbDABHcTuPQV1T84zJQ6VdCsmPW6AF/ghhmBeC8owH7TzEIK9a5QoNE+ -xqFx7D+gIIxmOom0jtTYsU0lR+4viMi14QVFwL4Ucd56/Y57fU0IlqUSc/Atyjcn -dBInTMu2l+nZrghtWjlA3QVHdWpaIbOjGM9O9y5Xt5hwXsjEeLBi ------END CERTIFICATE----- - -# Issuer: CN=UTN - DATACorp SGC O=The USERTRUST Network OU=http://www.usertrust.com -# Subject: CN=UTN - DATACorp SGC O=The USERTRUST Network OU=http://www.usertrust.com -# Label: "UTN DATACorp SGC Root CA" -# Serial: 91374294542884689855167577680241077609 -# MD5 Fingerprint: b3:a5:3e:77:21:6d:ac:4a:c0:c9:fb:d5:41:3d:ca:06 -# SHA1 Fingerprint: 58:11:9f:0e:12:82:87:ea:50:fd:d9:87:45:6f:4f:78:dc:fa:d6:d4 -# SHA256 Fingerprint: 85:fb:2f:91:dd:12:27:5a:01:45:b6:36:53:4f:84:02:4a:d6:8b:69:b8:ee:88:68:4f:f7:11:37:58:05:b3:48 ------BEGIN CERTIFICATE----- -MIIEXjCCA0agAwIBAgIQRL4Mi1AAIbQR0ypoBqmtaTANBgkqhkiG9w0BAQUFADCB -kzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xGzAZBgNVBAMTElVUTiAtIERBVEFDb3Jw -IFNHQzAeFw05OTA2MjQxODU3MjFaFw0xOTA2MjQxOTA2MzBaMIGTMQswCQYDVQQG -EwJVUzELMAkGA1UECBMCVVQxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4wHAYD -VQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxITAfBgNVBAsTGGh0dHA6Ly93d3cu -dXNlcnRydXN0LmNvbTEbMBkGA1UEAxMSVVROIC0gREFUQUNvcnAgU0dDMIIBIjAN -BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+5YEKIrblXEjr8uRgnn4AgPLit6 -E5Qbvfa2gI5lBZMAHryv4g+OGQ0SR+ysraP6LnD43m77VkIVni5c7yPeIbkFdicZ -D0/Ww5y0vpQZY/KmEQrrU0icvvIpOxboGqBMpsn0GFlowHDyUwDAXlCCpVZvNvlK -4ESGoE1O1kduSUrLZ9emxAW5jh70/P/N5zbgnAVssjMiFdC04MwXwLLA9P4yPykq -lXvY8qdOD1R8oQ2AswkDwf9c3V6aPryuvEeKaq5xyh+xKrhfQgUL7EYw0XILyulW -bfXv33i+Ybqypa4ETLyorGkVl73v67SMvzX41MPRKA5cOp9wGDMgd8SirwIDAQAB -o4GrMIGoMAsGA1UdDwQEAwIBxjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRT -MtGzz3/64PGgXYVOktKeRR20TzA9BgNVHR8ENjA0MDKgMKAuhixodHRwOi8vY3Js -LnVzZXJ0cnVzdC5jb20vVVROLURBVEFDb3JwU0dDLmNybDAqBgNVHSUEIzAhBggr -BgEFBQcDAQYKKwYBBAGCNwoDAwYJYIZIAYb4QgQBMA0GCSqGSIb3DQEBBQUAA4IB -AQAnNZcAiosovcYzMB4p/OL31ZjUQLtgyr+rFywJNn9Q+kHcrpY6CiM+iVnJowft -Gzet/Hy+UUla3joKVAgWRcKZsYfNjGjgaQPpxE6YsjuMFrMOoAyYUJuTqXAJyCyj -j98C5OBxOvG0I3KgqgHf35g+FFCgMSa9KOlaMCZ1+XtgHI3zzVAmbQQnmt/VDUVH -KWss5nbZqSl9Mt3JNjy9rjXxEZ4du5A/EkdOjtd+D2JzHVImOBwYSf0wdJrE5SIv -2MCN7ZF6TACPcn9d2t0bi0Vr591pl6jFVkwPDPafepE39peC4N1xaf92P2BNPM/3 -mfnGV/TJVTl4uix5yaaIK/QI ------END CERTIFICATE----- - -# Issuer: CN=UTN-USERFirst-Hardware O=The USERTRUST Network OU=http://www.usertrust.com -# Subject: CN=UTN-USERFirst-Hardware O=The USERTRUST Network OU=http://www.usertrust.com -# Label: "UTN USERFirst Hardware Root CA" -# Serial: 91374294542884704022267039221184531197 -# MD5 Fingerprint: 4c:56:41:e5:0d:bb:2b:e8:ca:a3:ed:18:08:ad:43:39 -# SHA1 Fingerprint: 04:83:ed:33:99:ac:36:08:05:87:22:ed:bc:5e:46:00:e3:be:f9:d7 -# SHA256 Fingerprint: 6e:a5:47:41:d0:04:66:7e:ed:1b:48:16:63:4a:a3:a7:9e:6e:4b:96:95:0f:82:79:da:fc:8d:9b:d8:81:21:37 ------BEGIN CERTIFICATE----- -MIIEdDCCA1ygAwIBAgIQRL4Mi1AAJLQR0zYq/mUK/TANBgkqhkiG9w0BAQUFADCB -lzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3Qt -SGFyZHdhcmUwHhcNOTkwNzA5MTgxMDQyWhcNMTkwNzA5MTgxOTIyWjCBlzELMAkG -A1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEe -MBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8v -d3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdh -cmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx98M4P7Sof885glFn -0G2f0v9Y8+efK+wNiVSZuTiZFvfgIXlIwrthdBKWHTxqctU8EGc6Oe0rE81m65UJ -M6Rsl7HoxuzBdXmcRl6Nq9Bq/bkqVRcQVLMZ8Jr28bFdtqdt++BxF2uiiPsA3/4a -MXcMmgF6sTLjKwEHOG7DpV4jvEWbe1DByTCP2+UretNb+zNAHqDVmBe8i4fDidNd -oI6yqqr2jmmIBsX6iSHzCJ1pLgkzmykNRg+MzEk0sGlRvfkGzWitZky8PqxhvQqI -DsjfPe58BEydCl5rkdbux+0ojatNh4lz0G6k0B4WixThdkQDf2Os5M1JnMWS9Ksy -oUhbAgMBAAGjgbkwgbYwCwYDVR0PBAQDAgHGMA8GA1UdEwEB/wQFMAMBAf8wHQYD -VR0OBBYEFKFyXyYbKJhDlV0HN9WFlp1L0sNFMEQGA1UdHwQ9MDswOaA3oDWGM2h0 -dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9VVE4tVVNFUkZpcnN0LUhhcmR3YXJlLmNy -bDAxBgNVHSUEKjAoBggrBgEFBQcDAQYIKwYBBQUHAwUGCCsGAQUFBwMGBggrBgEF -BQcDBzANBgkqhkiG9w0BAQUFAAOCAQEARxkP3nTGmZev/K0oXnWO6y1n7k57K9cM -//bey1WiCuFMVGWTYGufEpytXoMs61quwOQt9ABjHbjAbPLPSbtNk28Gpgoiskli -CE7/yMgUsogWXecB5BKV5UU0s4tpvc+0hY91UZ59Ojg6FEgSxvunOxqNDYJAB+gE -CJChicsZUN/KHAG8HQQZexB2lzvukJDKxA4fFm517zP4029bHpbj4HR3dHuKom4t -3XbWOTCC8KucUvIqx69JXn7HaOWCgchqJ/kniCrVWFCVH/A7HFe7fRQ5YiuayZSS -KqMiDP+JJn1fIytH1xUdqWqeUQ0qUZ6B+dQ7XnASfxAynB67nfhmqA== ------END CERTIFICATE----- - -# Issuer: CN=XRamp Global Certification Authority O=XRamp Security Services Inc OU=www.xrampsecurity.com -# Subject: CN=XRamp Global Certification Authority O=XRamp Security Services Inc OU=www.xrampsecurity.com -# Label: "XRamp Global CA Root" -# Serial: 107108908803651509692980124233745014957 -# MD5 Fingerprint: a1:0b:44:b3:ca:10:d8:00:6e:9d:0f:d8:0f:92:0a:d1 -# SHA1 Fingerprint: b8:01:86:d1:eb:9c:86:a5:41:04:cf:30:54:f3:4c:52:b7:e5:58:c6 -# SHA256 Fingerprint: ce:cd:dc:90:50:99:d8:da:df:c5:b1:d2:09:b7:37:cb:e2:c1:8c:fb:2c:10:c0:ff:0b:cf:0d:32:86:fc:1a:a2 ------BEGIN CERTIFICATE----- -MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCB -gjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEk -MCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRY -UmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQxMTAxMTcx -NDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3 -dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2Vy -dmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB -dXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS6 -38eMpSe2OAtp87ZOqCwuIR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCP -KZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMxfoArtYzAQDsRhtDLooY2YKTVMIJt2W7Q -DxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FEzG+gSqmUsE3a56k0enI4 -qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqsAxcZZPRa -JSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNVi -PvryxS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0P -BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASs -jVy16bYbMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0 -eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQEwDQYJKoZIhvcNAQEFBQAD -ggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc/Kh4ZzXxHfAR -vbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt -qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLa -IR9NmXmd4c8nnxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSy -i6mx5O+aGtA9aZnuqCij4Tyz8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQ -O+7ETPTsJ3xCwnR8gooJybQDJbw= ------END CERTIFICATE----- - -# Issuer: O=The Go Daddy Group, Inc. OU=Go Daddy Class 2 Certification Authority -# Subject: O=The Go Daddy Group, Inc. OU=Go Daddy Class 2 Certification Authority -# Label: "Go Daddy Class 2 CA" -# Serial: 0 -# MD5 Fingerprint: 91:de:06:25:ab:da:fd:32:17:0c:bb:25:17:2a:84:67 -# SHA1 Fingerprint: 27:96:ba:e6:3f:18:01:e2:77:26:1b:a0:d7:77:70:02:8f:20:ee:e4 -# SHA256 Fingerprint: c3:84:6b:f2:4b:9e:93:ca:64:27:4c:0e:c6:7c:1e:cc:5e:02:4f:fc:ac:d2:d7:40:19:35:0e:81:fe:54:6a:e4 ------BEGIN CERTIFICATE----- -MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEh -MB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBE -YWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3 -MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkGA1UEBhMCVVMxITAfBgNVBAoTGFRo -ZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28gRGFkZHkgQ2xhc3Mg -MiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQADggEN -ADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCA -PVYYYwhv2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6w -wdhFJ2+qN1j3hybX2C32qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXi -EqITLdiOr18SPaAIBQi2XKVlOARFmR6jYGB0xUGlcmIbYsUfb18aQr4CUWWoriMY -avx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmYvLEHZ6IVDd2gWMZEewo+ -YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0OBBYEFNLE -sNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h -/t2oatTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5 -IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmlj -YXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD -ggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wimPQoZ+YeAEW5p5JYXMP80kWNy -OO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKtI3lpjbi2Tc7P -TMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ -HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mER -dEr/VxqHD3VILs9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5Cuf -ReYNnyicsbkqWletNw+vHX/bvZ8= ------END CERTIFICATE----- - -# Issuer: O=Starfield Technologies, Inc. OU=Starfield Class 2 Certification Authority -# Subject: O=Starfield Technologies, Inc. OU=Starfield Class 2 Certification Authority -# Label: "Starfield Class 2 CA" -# Serial: 0 -# MD5 Fingerprint: 32:4a:4b:bb:c8:63:69:9b:be:74:9a:c6:dd:1d:46:24 -# SHA1 Fingerprint: ad:7e:1c:28:b0:64:ef:8f:60:03:40:20:14:c3:d0:e3:37:0e:b5:8a -# SHA256 Fingerprint: 14:65:fa:20:53:97:b8:76:fa:a6:f0:a9:95:8e:55:90:e4:0f:cc:7f:aa:4f:b7:c2:c8:67:75:21:fb:5f:b6:58 ------BEGIN CERTIFICATE----- -MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzEl -MCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMp -U3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQw -NjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBoMQswCQYDVQQGEwJVUzElMCMGA1UE -ChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZp -ZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqGSIb3 -DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf -8MOh2tTYbitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN -+lq2cwQlZut3f+dZxkqZJRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0 -X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVmepsZGD3/cVE8MC5fvj13c7JdBmzDI1aa -K4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSNF4Azbl5KXZnJHoe0nRrA -1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HFMIHCMB0G -A1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR -zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0 -YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD -bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w -DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3 -L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D -eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl -xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp -VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY -WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q= ------END CERTIFICATE----- - -# Issuer: CN=StartCom Certification Authority O=StartCom Ltd. OU=Secure Digital Certificate Signing -# Subject: CN=StartCom Certification Authority O=StartCom Ltd. OU=Secure Digital Certificate Signing -# Label: "StartCom Certification Authority" -# Serial: 1 -# MD5 Fingerprint: 22:4d:8f:8a:fc:f7:35:c2:bb:57:34:90:7b:8b:22:16 -# SHA1 Fingerprint: 3e:2b:f7:f2:03:1b:96:f3:8c:e6:c4:d8:a8:5d:3e:2d:58:47:6a:0f -# SHA256 Fingerprint: c7:66:a9:be:f2:d4:07:1c:86:3a:31:aa:49:20:e8:13:b2:d1:98:60:8c:b7:b7:cf:e2:11:43:b8:36:df:09:ea ------BEGIN CERTIFICATE----- -MIIHyTCCBbGgAwIBAgIBATANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg -Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh -dGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0NjM2WhcNMzYwOTE3MTk0NjM2WjB9 -MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi -U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3Rh -cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUA -A4ICDwAwggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZk -pMyONvg45iPwbm2xPN1yo4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rf -OQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/C -Ji/6tRYccjV3yjxd5srhJosaNnZcAdt0FCX+7bWgiA/deMotHweXMAEtcnn6RtYT -Kqi5pquDSR3l8u/d5AGOGAqPY1MWhWKpDhk6zLVmpsJrdAfkK+F2PrRt2PZE4XNi -HzvEvqBTViVsUQn3qqvKv3b9bZvzndu/PWa8DFaqr5hIlTpL36dYUNk4dalb6kMM -Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w -+2OqqGwaVLRcJXrJosmLFqa7LH4XXgVNWG4SHQHuEhANxjJ/GP/89PrNbpHoNkm+ -Gkhpi8KWTRoSsmkXwQqQ1vp5Iki/untp+HDH+no32NgN0nZPV/+Qt+OR0t3vwmC3 -Zzrd/qqc8NSLf3Iizsafl7b4r4qgEKjZ+xjGtrVcUjyJthkqcwEKDwOzEmDyei+B -26Nu/yYwl/WL3YlXtq09s68rxbd2AvCl1iuahhQqcvbjM4xdCUsT37uMdBNSSwID -AQABo4ICUjCCAk4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAa4wHQYDVR0OBBYE -FE4L7xqkQFulF2mHMMo0aEPQQa7yMGQGA1UdHwRdMFswLKAqoCiGJmh0dHA6Ly9j -ZXJ0LnN0YXJ0Y29tLm9yZy9zZnNjYS1jcmwuY3JsMCugKaAnhiVodHRwOi8vY3Js -LnN0YXJ0Y29tLm9yZy9zZnNjYS1jcmwuY3JsMIIBXQYDVR0gBIIBVDCCAVAwggFM -BgsrBgEEAYG1NwEBATCCATswLwYIKwYBBQUHAgEWI2h0dHA6Ly9jZXJ0LnN0YXJ0 -Y29tLm9yZy9wb2xpY3kucGRmMDUGCCsGAQUFBwIBFilodHRwOi8vY2VydC5zdGFy -dGNvbS5vcmcvaW50ZXJtZWRpYXRlLnBkZjCB0AYIKwYBBQUHAgIwgcMwJxYgU3Rh -cnQgQ29tbWVyY2lhbCAoU3RhcnRDb20pIEx0ZC4wAwIBARqBl0xpbWl0ZWQgTGlh -YmlsaXR5LCByZWFkIHRoZSBzZWN0aW9uICpMZWdhbCBMaW1pdGF0aW9ucyogb2Yg -dGhlIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFBvbGljeSBhdmFp -bGFibGUgYXQgaHR0cDovL2NlcnQuc3RhcnRjb20ub3JnL3BvbGljeS5wZGYwEQYJ -YIZIAYb4QgEBBAQDAgAHMDgGCWCGSAGG+EIBDQQrFilTdGFydENvbSBGcmVlIFNT -TCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTANBgkqhkiG9w0BAQUFAAOCAgEAFmyZ -9GYMNPXQhV59CuzaEE44HF7fpiUFS5Eyweg78T3dRAlbB0mKKctmArexmvclmAk8 -jhvh3TaHK0u7aNM5Zj2gJsfyOZEdUauCe37Vzlrk4gNXcGmXCPleWKYK34wGmkUW -FjgKXlf2Ysd6AgXmvB618p70qSmD+LIU424oh0TDkBreOKk8rENNZEXO3SipXPJz -ewT4F+irsfMuXGRuczE6Eri8sxHkfY+BUZo7jYn0TZNmezwD7dOaHZrzZVD1oNB1 -ny+v8OqCQ5j4aZyJecRDjkZy42Q2Eq/3JR44iZB3fsNrarnDy0RLrHiQi+fHLB5L -EUTINFInzQpdn4XBidUaePKVEFMy3YCEZnXZtWgo+2EuvoSoOMCZEoalHmdkrQYu -L6lwhceWD3yJZfWOQ1QOq92lgDmUYMA0yZZwLKMS9R9Ie70cfmu3nZD0Ijuu+Pwq -yvqCUqDvr0tVk+vBtfAii6w0TiYiBKGHLHVKt+V9E9e4DGTANtLJL4YSjCMJwRuC -O3NJo2pXh5Tl1njFmUNj403gdy3hZZlyaQQaRwnmDwFWJPsfvw55qVguucQJAX6V -um0ABj6y6koQOdjQK/W/7HW/lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkySh -NOsF/5oirpt9P/FlUQqmMGqz9IgcgA38corog14= ------END CERTIFICATE----- - -# Issuer: CN=DigiCert Assured ID Root CA O=DigiCert Inc OU=www.digicert.com -# Subject: CN=DigiCert Assured ID Root CA O=DigiCert Inc OU=www.digicert.com -# Label: "DigiCert Assured ID Root CA" -# Serial: 17154717934120587862167794914071425081 -# MD5 Fingerprint: 87:ce:0b:7b:2a:0e:49:00:e1:58:71:9b:37:a8:93:72 -# SHA1 Fingerprint: 05:63:b8:63:0d:62:d7:5a:bb:c8:ab:1e:4b:df:b5:a8:99:b2:4d:43 -# SHA256 Fingerprint: 3e:90:99:b5:01:5e:8f:48:6c:00:bc:ea:9d:11:1e:e7:21:fa:ba:35:5a:89:bc:f1:df:69:56:1e:3d:c6:32:5c ------BEGIN CERTIFICATE----- -MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBl -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv -b3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzExMTEwMDAwMDAwWjBlMQswCQYDVQQG -EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl -cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7c -JpSIqvTO9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYP -mDI2dsze3Tyoou9q+yHyUmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+ -wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4 -VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpyoeb6pNnVFzF1roV9Iq4/ -AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whfGHdPAgMB -AAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW -BBRF66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYun -pyGd823IDzANBgkqhkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRC -dWKuh+vy1dneVrOfzM4UKLkNl2BcEkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTf -fwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38FnSbNd67IJKusm7Xi+fT8r87cm -NW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i8b5QZ7dsvfPx -H2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe -+o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g== ------END CERTIFICATE----- - -# Issuer: CN=DigiCert Global Root CA O=DigiCert Inc OU=www.digicert.com -# Subject: CN=DigiCert Global Root CA O=DigiCert Inc OU=www.digicert.com -# Label: "DigiCert Global Root CA" -# Serial: 10944719598952040374951832963794454346 -# MD5 Fingerprint: 79:e4:a9:84:0d:7d:3a:96:d7:c0:4f:e2:43:4c:89:2e -# SHA1 Fingerprint: a8:98:5d:3a:65:e5:e5:c4:b2:d7:d6:6d:40:c6:dd:2f:b1:9c:54:36 -# SHA256 Fingerprint: 43:48:a0:e9:44:4c:78:cb:26:5e:05:8d:5e:89:44:b4:d8:4f:96:62:bd:26:db:25:7f:89:34:a4:43:c7:01:61 ------BEGIN CERTIFICATE----- -MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBh -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD -QTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAwMDAwMDBaMGExCzAJBgNVBAYTAlVT -MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j -b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsB -CSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97 -nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt -43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7P -T19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y7vrTC0LUq7dBMtoM1O/4 -gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQABo2MwYTAO -BgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbR -TLtm8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUw -DQYJKoZIhvcNAQEFBQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/Esr -hMAtudXH/vTBH1jLuG2cenTnmCmrEbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg -06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF -PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls -YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk -CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= ------END CERTIFICATE----- - -# Issuer: CN=DigiCert High Assurance EV Root CA O=DigiCert Inc OU=www.digicert.com -# Subject: CN=DigiCert High Assurance EV Root CA O=DigiCert Inc OU=www.digicert.com -# Label: "DigiCert High Assurance EV Root CA" -# Serial: 3553400076410547919724730734378100087 -# MD5 Fingerprint: d4:74:de:57:5c:39:b2:d3:9c:85:83:c5:c0:65:49:8a -# SHA1 Fingerprint: 5f:b7:ee:06:33:e2:59:db:ad:0c:4c:9a:e6:d3:8f:1a:61:c7:dc:25 -# SHA256 Fingerprint: 74:31:e5:f4:c3:c1:ce:46:90:77:4f:0b:61:e0:54:40:88:3b:a9:a0:1e:d0:0b:a6:ab:d7:80:6e:d3:b1:18:cf ------BEGIN CERTIFICATE----- -MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j -ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL -MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 -LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug -RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm -+9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW -PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM -xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB -Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3 -hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg -EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF -MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA -FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec -nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z -eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF -hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2 -Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe -vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep -+OkuE6N36B9K ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Primary Certification Authority O=GeoTrust Inc. -# Subject: CN=GeoTrust Primary Certification Authority O=GeoTrust Inc. -# Label: "GeoTrust Primary Certification Authority" -# Serial: 32798226551256963324313806436981982369 -# MD5 Fingerprint: 02:26:c3:01:5e:08:30:37:43:a9:d0:7d:cf:37:e6:bf -# SHA1 Fingerprint: 32:3c:11:8e:1b:f7:b8:b6:52:54:e2:e2:10:0d:d6:02:90:37:f0:96 -# SHA256 Fingerprint: 37:d5:10:06:c5:12:ea:ab:62:64:21:f1:ec:8c:92:01:3f:c5:f8:2a:e9:8e:e5:33:eb:46:19:b8:de:b4:d0:6c ------BEGIN CERTIFICATE----- -MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBY -MQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMo -R2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjEx -MjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgxCzAJBgNVBAYTAlVTMRYwFAYDVQQK -Ew1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQcmltYXJ5IENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9 -AWbK7hWNb6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjA -ZIVcFU2Ix7e64HXprQU9nceJSOC7KMgD4TCTZF5SwFlwIjVXiIrxlQqD17wxcwE0 -7e9GceBrAqg1cmuXm2bgyxx5X9gaBGgeRwLmnWDiNpcB3841kt++Z8dtd1k7j53W -kBWUvEI0EME5+bEnPn7WinXFsq+W06Lem+SYvn3h6YGttm/81w7a4DSwDRp35+MI -mO9Y+pyEtzavwt+s0vQQBnBxNQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G -A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULNVQQZcVi/CPNmFbSvtr2ZnJM5IwDQYJ -KoZIhvcNAQEFBQADggEBAFpwfyzdtzRP9YZRqSa+S7iq8XEN3GHHoOo0Hnp3DwQ1 -6CePbJC/kRYkRj5KTs4rFtULUh38H2eiAkUxT87z+gOneZ1TatnaYzr4gNfTmeGl -4b7UVXGYNTq+k+qurUKykG/g/CFNNWMziUnWm07Kx+dOCQD32sfvmWKZd7aVIl6K -oKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHaFloxt/m0cYASSJlyc1pZU8Fj -UjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG1riR/aYNKxoU -AT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk= ------END CERTIFICATE----- - -# Issuer: CN=thawte Primary Root CA O=thawte, Inc. OU=Certification Services Division/(c) 2006 thawte, Inc. - For authorized use only -# Subject: CN=thawte Primary Root CA O=thawte, Inc. OU=Certification Services Division/(c) 2006 thawte, Inc. - For authorized use only -# Label: "thawte Primary Root CA" -# Serial: 69529181992039203566298953787712940909 -# MD5 Fingerprint: 8c:ca:dc:0b:22:ce:f5:be:72:ac:41:1a:11:a8:d8:12 -# SHA1 Fingerprint: 91:c6:d6:ee:3e:8a:c8:63:84:e5:48:c2:99:29:5c:75:6c:81:7b:81 -# SHA256 Fingerprint: 8d:72:2f:81:a9:c1:13:c0:79:1d:f1:36:a2:96:6d:b2:6c:95:0a:97:1d:b4:6b:41:99:f4:ea:54:b7:8b:fb:9f ------BEGIN CERTIFICATE----- -MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCB -qTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf -Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw -MDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNV -BAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3MDAwMDAwWhcNMzYw -NzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5j -LjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYG -A1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl -IG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsoPD7gFnUnMekz52hWXMJEEUMDSxuaPFs -W0hoSVk3/AszGcJ3f8wQLZU0HObrTQmnHNK4yZc2AreJ1CRfBsDMRJSUjQJib+ta -3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/u6f1OCyn1PoSgAfGcq/gcfomk -6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6 -Sk/KaAcdHJ1KxtUvkcx8cXIcxcBn6zL9yZJclNqFwJu/U30rCfSMnZEfl2pSy94J -NqR32HuHUETVPm4pafs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBA -MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBR7W0XP -r87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUFAAOCAQEAeRHAS7ORtvzw6WfU -DW5FvlXok9LOAz/t2iWwHVfLHjp2oEzsUHboZHIMpKnxuIvW1oeEuzLlQRHAd9mz -YJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/Ac9IiAX -xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2 -/qxAeeWsEG89jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/ -LHbTY5xZ3Y+m4Q6gLkH3LpVHz7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7 -jVaMaA== ------END CERTIFICATE----- - -# Issuer: CN=VeriSign Class 3 Public Primary Certification Authority - G5 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2006 VeriSign, Inc. - For authorized use only -# Subject: CN=VeriSign Class 3 Public Primary Certification Authority - G5 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2006 VeriSign, Inc. - For authorized use only -# Label: "VeriSign Class 3 Public Primary Certification Authority - G5" -# Serial: 33037644167568058970164719475676101450 -# MD5 Fingerprint: cb:17:e4:31:67:3e:e2:09:fe:45:57:93:f3:0a:fa:1c -# SHA1 Fingerprint: 4e:b6:d5:78:49:9b:1c:cf:5f:58:1e:ad:56:be:3d:9b:67:44:a5:e5 -# SHA256 Fingerprint: 9a:cf:ab:7e:43:c8:d8:80:d0:6b:26:2a:94:de:ee:e4:b4:65:99:89:c3:d0:ca:f1:9b:af:64:05:e4:1a:b7:df ------BEGIN CERTIFICATE----- -MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCB -yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL -ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp -U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxW -ZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0 -aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCByjEL -MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW -ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2ln -biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJp -U2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9y -aXR5IC0gRzUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvJAgIKXo1 -nmAMqudLO07cfLw8RRy7K+D+KQL5VwijZIUVJ/XxrcgxiV0i6CqqpkKzj/i5Vbex -t0uz/o9+B1fs70PbZmIVYc9gDaTY3vjgw2IIPVQT60nKWVSFJuUrjxuf6/WhkcIz -SdhDY2pSS9KP6HBRTdGJaXvHcPaz3BJ023tdS1bTlr8Vd6Gw9KIl8q8ckmcY5fQG -BO+QueQA5N06tRn/Arr0PO7gi+s3i+z016zy9vA9r911kTMZHRxAy3QkGSGT2RT+ -rCpSx4/VBEnkjWNHiDxpg8v+R70rfk/Fla4OndTRQ8Bnc+MUCH7lP59zuDMKz10/ -NIeWiu5T6CUVAgMBAAGjgbIwga8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8E -BAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEwHzAH -BgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVy -aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKv -MzEzMA0GCSqGSIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzE -p6B4Eq1iDkVwZMXnl2YtmAl+X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y -5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKEKQsTb47bDN0lAtukixlE0kF6BWlK -WE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ -4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vEZV8N -hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq ------END CERTIFICATE----- - -# Issuer: CN=COMODO Certification Authority O=COMODO CA Limited -# Subject: CN=COMODO Certification Authority O=COMODO CA Limited -# Label: "COMODO Certification Authority" -# Serial: 104350513648249232941998508985834464573 -# MD5 Fingerprint: 5c:48:dc:f7:42:72:ec:56:94:6d:1c:cc:71:35:80:75 -# SHA1 Fingerprint: 66:31:bf:9e:f7:4f:9e:b6:c9:d5:a6:0c:ba:6a:be:d1:f7:bd:ef:7b -# SHA256 Fingerprint: 0c:2c:d6:3d:f7:80:6f:a3:99:ed:e8:09:11:6b:57:5b:f8:79:89:f0:65:18:f9:80:8c:86:05:03:17:8b:af:66 ------BEGIN CERTIFICATE----- -MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCB -gTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G -A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNV -BAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjEyMDEwMDAw -MDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3Jl -YXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01P -RE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0 -aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3 -UcEbVASY06m/weaKXTuH+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI -2GqGd0S7WWaXUF601CxwRM/aN5VCaTwwxHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8 -Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV4EajcNxo2f8ESIl33rXp -+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA1KGzqSX+ -DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5O -nKVIrLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW -/zAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6g -PKA6hjhodHRwOi8vY3JsLmNvbW9kb2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9u -QXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOCAQEAPpiem/Yb6dc5t3iuHXIY -SdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CPOGEIqB6BCsAv -IC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/ -RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4 -zJVSk/BwJVmcIGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5dd -BA6+C4OmF4O5MBKgxTMVBbkN+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IB -ZQ== ------END CERTIFICATE----- - -# Issuer: CN=Network Solutions Certificate Authority O=Network Solutions L.L.C. -# Subject: CN=Network Solutions Certificate Authority O=Network Solutions L.L.C. -# Label: "Network Solutions Certificate Authority" -# Serial: 116697915152937497490437556386812487904 -# MD5 Fingerprint: d3:f3:a6:16:c0:fa:6b:1d:59:b1:2d:96:4d:0e:11:2e -# SHA1 Fingerprint: 74:f8:a3:c3:ef:e7:b3:90:06:4b:83:90:3c:21:64:60:20:e5:df:ce -# SHA256 Fingerprint: 15:f0:ba:00:a3:ac:7a:f3:ac:88:4c:07:2b:10:11:a0:77:bd:77:c0:97:f4:01:64:b2:f8:59:8a:bd:83:86:0c ------BEGIN CERTIFICATE----- -MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBi -MQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu -MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3Jp -dHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMxMjM1OTU5WjBiMQswCQYDVQQGEwJV -UzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydO -ZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDkvH6SMG3G2I4rC7xGzuAnlt7e+foS0zwz -c7MEL7xxjOWftiJgPl9dzgn/ggwbmlFQGiaJ3dVhXRncEg8tCqJDXRfQNJIg6nPP -OCwGJgl6cvf6UDL4wpPTaaIjzkGxzOTVHzbRijr4jGPiFFlp7Q3Tf2vouAPlT2rl -mGNpSAW+Lv8ztumXWWn4Zxmuk2GWRBXTcrA/vGp97Eh/jcOrqnErU2lBUzS1sLnF -BgrEsEX1QV1uiUV7PTsmjHTC5dLRfbIR1PtYMiKagMnc/Qzpf14Dl847ABSHJ3A4 -qY5usyd2mFHgBeMhqxrVhSI8KbWaFsWAqPS7azCPL0YCorEMIuDTAgMBAAGjgZcw -gZQwHQYDVR0OBBYEFCEwyfsA106Y2oeqKtCnLrFAMadMMA4GA1UdDwEB/wQEAwIB -BjAPBgNVHRMBAf8EBTADAQH/MFIGA1UdHwRLMEkwR6BFoEOGQWh0dHA6Ly9jcmwu -bmV0c29sc3NsLmNvbS9OZXR3b3JrU29sdXRpb25zQ2VydGlmaWNhdGVBdXRob3Jp -dHkuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQC7rkvnt1frf6ott3NHhWrB5KUd5Oc8 -6fRZZXe1eltajSU24HqXLjjAV2CDmAaDn7l2em5Q4LqILPxFzBiwmZVRDuwduIj/ -h1AcgsLj4DKAv6ALR8jDMe+ZZzKATxcheQxpXN5eNK4CtSbqUN9/GGUsyfJj4akH -/nxxH2szJGoeBfcFaMBqEssuXmHLrijTfsK0ZpEmXzwuJF/LWA/rKOyvEZbz3Htv -wKeI8lN3s2Berq4o2jUsbzRF0ybh3uxbTydrFny9RAQYgrOJeRcQcT16ohZO9QHN -pGxlaKFJdlxDydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey ------END CERTIFICATE----- - -# Issuer: CN=COMODO ECC Certification Authority O=COMODO CA Limited -# Subject: CN=COMODO ECC Certification Authority O=COMODO CA Limited -# Label: "COMODO ECC Certification Authority" -# Serial: 41578283867086692638256921589707938090 -# MD5 Fingerprint: 7c:62:ff:74:9d:31:53:5e:68:4a:d5:78:aa:1e:bf:23 -# SHA1 Fingerprint: 9f:74:4e:9f:2b:4d:ba:ec:0f:31:2c:50:b6:56:3b:8e:2d:93:c3:11 -# SHA256 Fingerprint: 17:93:92:7a:06:14:54:97:89:ad:ce:2f:8f:34:f7:f0:b6:6d:0f:3a:e3:a3:b8:4d:21:ec:15:db:ba:4f:ad:c7 ------BEGIN CERTIFICATE----- -MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTEL -MAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE -BxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMT -IkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDgwMzA2MDAw -MDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdy -ZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09N -T0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlv -biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSR -FtSrYpn1PlILBs5BAH+X4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0J -cfRK9ChQtP6IHG4/bC8vCVlbpVsLM5niwz2J+Wos77LTBumjQjBAMB0GA1UdDgQW -BBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ -BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VGFAkK+qDm -fQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdv -GDeAU/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY= ------END CERTIFICATE----- - -# Issuer: CN=TC TrustCenter Class 2 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 2 CA -# Subject: CN=TC TrustCenter Class 2 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 2 CA -# Label: "TC TrustCenter Class 2 CA II" -# Serial: 941389028203453866782103406992443 -# MD5 Fingerprint: ce:78:33:5c:59:78:01:6e:18:ea:b9:36:a0:b9:2e:23 -# SHA1 Fingerprint: ae:50:83:ed:7c:f4:5c:bc:8f:61:c6:21:fe:68:5d:79:42:21:15:6e -# SHA256 Fingerprint: e6:b8:f8:76:64:85:f8:07:ae:7f:8d:ac:16:70:46:1f:07:c0:a1:3e:ef:3a:1f:f7:17:53:8d:7a:ba:d3:91:b4 ------BEGIN CERTIFICATE----- -MIIEqjCCA5KgAwIBAgIOLmoAAQACH9dSISwRXDswDQYJKoZIhvcNAQEFBQAwdjEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV -BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDIgQ0ExJTAjBgNVBAMTHFRDIFRydXN0 -Q2VudGVyIENsYXNzIDIgQ0EgSUkwHhcNMDYwMTEyMTQzODQzWhcNMjUxMjMxMjI1 -OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i -SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQTElMCMGA1UEAxMc -VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBAKuAh5uO8MN8h9foJIIRszzdQ2Lu+MNF2ujhoF/RKrLqk2jf -tMjWQ+nEdVl//OEd+DFwIxuInie5e/060smp6RQvkL4DUsFJzfb95AhmC1eKokKg -uNV/aVyQMrKXDcpK3EY+AlWJU+MaWss2xgdW94zPEfRMuzBwBJWl9jmM/XOBCH2J -XjIeIqkiRUuwZi4wzJ9l/fzLganx4Duvo4bRierERXlQXa7pIXSSTYtZgo+U4+lK -8edJsBTj9WLL1XK9H7nSn6DNqPoByNkN39r8R52zyFTfSUrxIan+GE7uSNQZu+99 -5OKdy1u2bv/jzVrndIIFuoAlOMvkaZ6vQaoahPUCAwEAAaOCATQwggEwMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjq1RMgKHbVkO3 -kUrL84J6E1wIqzCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy -dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18yX2NhX0lJLmNybIaBn2xkYXA6 -Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz -JTIwMiUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb290 -Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u -TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEAjNfffu4bgBCzg/XbEeprS6iS -GNn3Bzn1LL4GdXpoUxUc6krtXvwjshOg0wn/9vYua0Fxec3ibf2uWWuFHbhOIprt -ZjluS5TmVfwLG4t3wVMTZonZKNaL80VKY7f9ewthXbhtvsPcW3nS7Yblok2+XnR8 -au0WOB9/WIFaGusyiC2y8zl3gK9etmF1KdsjTYjKUCjLhdLTEKJZbtOTVAB6okaV -hgWcqRmY5TFyDADiZ9lA4CQze28suVyrZZ0srHbqNZn1l7kPJOzHdiEoZa5X6AeI -dUpWoNIFOqTmjZKILPPy4cHGYdtBxceb9w4aUUXCYWvcZCcXjFq32nQozZfkvQ== ------END CERTIFICATE----- - -# Issuer: CN=TC TrustCenter Class 3 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 3 CA -# Subject: CN=TC TrustCenter Class 3 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 3 CA -# Label: "TC TrustCenter Class 3 CA II" -# Serial: 1506523511417715638772220530020799 -# MD5 Fingerprint: 56:5f:aa:80:61:12:17:f6:67:21:e6:2b:6d:61:56:8e -# SHA1 Fingerprint: 80:25:ef:f4:6e:70:c8:d4:72:24:65:84:fe:40:3b:8a:8d:6a:db:f5 -# SHA256 Fingerprint: 8d:a0:84:fc:f9:9c:e0:77:22:f8:9b:32:05:93:98:06:fa:5c:b8:11:e1:c8:13:f6:a1:08:c7:d3:36:b3:40:8e ------BEGIN CERTIFICATE----- -MIIEqjCCA5KgAwIBAgIOSkcAAQAC5aBd1j8AUb8wDQYJKoZIhvcNAQEFBQAwdjEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV -BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDMgQ0ExJTAjBgNVBAMTHFRDIFRydXN0 -Q2VudGVyIENsYXNzIDMgQ0EgSUkwHhcNMDYwMTEyMTQ0MTU3WhcNMjUxMjMxMjI1 -OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i -SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQTElMCMGA1UEAxMc -VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBALTgu1G7OVyLBMVMeRwjhjEQY0NVJz/GRcekPewJDRoeIMJW -Ht4bNwcwIi9v8Qbxq63WyKthoy9DxLCyLfzDlml7forkzMA5EpBCYMnMNWju2l+Q -Vl/NHE1bWEnrDgFPZPosPIlY2C8u4rBo6SI7dYnWRBpl8huXJh0obazovVkdKyT2 -1oQDZogkAHhg8fir/gKya/si+zXmFtGt9i4S5Po1auUZuV3bOx4a+9P/FRQI2Alq -ukWdFHlgfa9Aigdzs5OW03Q0jTo3Kd5c7PXuLjHCINy+8U9/I1LZW+Jk2ZyqBwi1 -Rb3R0DHBq1SfqdLDYmAD8bs5SpJKPQq5ncWg/jcCAwEAAaOCATQwggEwMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTUovyfs8PYA9NX -XAek0CSnwPIA1DCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy -dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18zX2NhX0lJLmNybIaBn2xkYXA6 -Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz -JTIwMyUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb290 -Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u -TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEANmDkcPcGIEPZIxpC8vijsrlN -irTzwppVMXzEO2eatN9NDoqTSheLG43KieHPOh6sHfGcMrSOWXaiQYUlN6AT0PV8 -TtXqluJucsG7Kv5sbviRmEb8yRtXW+rIGjs/sFGYPAfaLFkB2otE6OF0/ado3VS6 -g0bsyEa1+K+XwDsJHI/OcpY9M1ZwvJbL2NV9IJqDnxrcOfHFcqMRA/07QlIp2+gB -95tejNaNhk4Z+rwcvsUhpYeeeC422wlxo3I0+GzjBgnyXlal092Y+tTmBvTwtiBj -S+opvaqCZh77gaqnN60TGOaSw4HBM7uIHqHn4rS9MWwOUT1v+5ZWgOI2F9Hc5A== ------END CERTIFICATE----- - -# Issuer: CN=TC TrustCenter Universal CA I O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA -# Subject: CN=TC TrustCenter Universal CA I O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA -# Label: "TC TrustCenter Universal CA I" -# Serial: 601024842042189035295619584734726 -# MD5 Fingerprint: 45:e1:a5:72:c5:a9:36:64:40:9e:f5:e4:58:84:67:8c -# SHA1 Fingerprint: 6b:2f:34:ad:89:58:be:62:fd:b0:6b:5c:ce:bb:9d:d9:4f:4e:39:f3 -# SHA256 Fingerprint: eb:f3:c0:2a:87:89:b1:fb:7d:51:19:95:d6:63:b7:29:06:d9:13:ce:0d:5e:10:56:8a:8a:77:e2:58:61:67:e7 ------BEGIN CERTIFICATE----- -MIID3TCCAsWgAwIBAgIOHaIAAQAC7LdggHiNtgYwDQYJKoZIhvcNAQEFBQAweTEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV -BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEmMCQGA1UEAxMdVEMgVHJ1 -c3RDZW50ZXIgVW5pdmVyc2FsIENBIEkwHhcNMDYwMzIyMTU1NDI4WhcNMjUxMjMx -MjI1OTU5WjB5MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIg -R21iSDEkMCIGA1UECxMbVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBMSYwJAYD -VQQDEx1UQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0EgSTCCASIwDQYJKoZIhvcN -AQEBBQADggEPADCCAQoCggEBAKR3I5ZEr5D0MacQ9CaHnPM42Q9e3s9B6DGtxnSR -JJZ4Hgmgm5qVSkr1YnwCqMqs+1oEdjneX/H5s7/zA1hV0qq34wQi0fiU2iIIAI3T -fCZdzHd55yx4Oagmcw6iXSVphU9VDprvxrlE4Vc93x9UIuVvZaozhDrzznq+VZeu -jRIPFDPiUHDDSYcTvFHe15gSWu86gzOSBnWLknwSaHtwag+1m7Z3W0hZneTvWq3z -wZ7U10VOylY0Ibw+F1tvdwxIAUMpsN0/lm7mlaoMwCC2/T42J5zjXM9OgdwZu5GQ -fezmlwQek8wiSdeXhrYTCjxDI3d+8NzmzSQfO4ObNDqDNOMCAwEAAaNjMGEwHwYD -VR0jBBgwFoAUkqR1LKSevoFE63n8isWVpesQdXMwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFJKkdSyknr6BROt5/IrFlaXrEHVzMA0G -CSqGSIb3DQEBBQUAA4IBAQAo0uCG1eb4e/CX3CJrO5UUVg8RMKWaTzqwOuAGy2X1 -7caXJ/4l8lfmXpWMPmRgFVp/Lw0BxbFg/UU1z/CyvwbZ71q+s2IhtNerNXxTPqYn -8aEt2hojnczd7Dwtnic0XQ/CNnm8yUpiLe1r2X1BQ3y2qsrtYbE3ghUJGooWMNjs -ydZHcnhLEEYUjl8Or+zHL6sQ17bxbuyGssLoDZJz3KL0Dzq/YSMQiZxIQG5wALPT -ujdEWBF6AmqI8Dc08BnprNRlc/ZpjGSUOnmFKbAWKwyCPwacx/0QK54PLLae4xW/ -2TYcuiUaUj0a7CIMHOCkoj3w6DnPgcB77V0fb8XQC9eY ------END CERTIFICATE----- - -# Issuer: CN=Cybertrust Global Root O=Cybertrust, Inc -# Subject: CN=Cybertrust Global Root O=Cybertrust, Inc -# Label: "Cybertrust Global Root" -# Serial: 4835703278459682877484360 -# MD5 Fingerprint: 72:e4:4a:87:e3:69:40:80:77:ea:bc:e3:f4:ff:f0:e1 -# SHA1 Fingerprint: 5f:43:e5:b1:bf:f8:78:8c:ac:1c:c7:ca:4a:9a:c6:22:2b:cc:34:c6 -# SHA256 Fingerprint: 96:0a:df:00:63:e9:63:56:75:0c:29:65:dd:0a:08:67:da:0b:9c:bd:6e:77:71:4a:ea:fb:23:49:ab:39:3d:a3 ------BEGIN CERTIFICATE----- -MIIDoTCCAomgAwIBAgILBAAAAAABD4WqLUgwDQYJKoZIhvcNAQEFBQAwOzEYMBYG -A1UEChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2Jh -bCBSb290MB4XDTA2MTIxNTA4MDAwMFoXDTIxMTIxNTA4MDAwMFowOzEYMBYGA1UE -ChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2JhbCBS -b290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+Mi8vRRQZhP/8NN5 -7CPytxrHjoXxEnOmGaoQ25yiZXRadz5RfVb23CO21O1fWLE3TdVJDm71aofW0ozS -J8bi/zafmGWgE07GKmSb1ZASzxQG9Dvj1Ci+6A74q05IlG2OlTEQXO2iLb3VOm2y -HLtgwEZLAfVJrn5GitB0jaEMAs7u/OePuGtm839EAL9mJRQr3RAwHQeWP032a7iP -t3sMpTjr3kfb1V05/Iin89cqdPHoWqI7n1C6poxFNcJQZZXcY4Lv3b93TZxiyWNz -FtApD0mpSPCzqrdsxacwOUBdrsTiXSZT8M4cIwhhqJQZugRiQOwfOHB3EgZxpzAY -XSUnpQIDAQABo4GlMIGiMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/ -MB0GA1UdDgQWBBS2CHsNesysIEyGVjJez6tuhS1wVzA/BgNVHR8EODA2MDSgMqAw -hi5odHRwOi8vd3d3Mi5wdWJsaWMtdHJ1c3QuY29tL2NybC9jdC9jdHJvb3QuY3Js -MB8GA1UdIwQYMBaAFLYIew16zKwgTIZWMl7Pq26FLXBXMA0GCSqGSIb3DQEBBQUA -A4IBAQBW7wojoFROlZfJ+InaRcHUowAl9B8Tq7ejhVhpwjCt2BWKLePJzYFa+HMj -Wqd8BfP9IjsO0QbE2zZMcwSO5bAi5MXzLqXZI+O4Tkogp24CJJ8iYGd7ix1yCcUx -XOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2hO0j9n0Hq0V+09+zv+mKts2o -omcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+TX3EJIrduPuoc -A06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW -WL1WMRJOEcgh4LMRkWXbtKaIOM5V ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Primary Certification Authority - G3 O=GeoTrust Inc. OU=(c) 2008 GeoTrust Inc. - For authorized use only -# Subject: CN=GeoTrust Primary Certification Authority - G3 O=GeoTrust Inc. OU=(c) 2008 GeoTrust Inc. - For authorized use only -# Label: "GeoTrust Primary Certification Authority - G3" -# Serial: 28809105769928564313984085209975885599 -# MD5 Fingerprint: b5:e8:34:36:c9:10:44:58:48:70:6d:2e:83:d4:b8:05 -# SHA1 Fingerprint: 03:9e:ed:b8:0b:e7:a0:3c:69:53:89:3b:20:d2:d9:32:3a:4c:2a:fd -# SHA256 Fingerprint: b4:78:b8:12:25:0d:f8:78:63:5c:2a:a7:ec:7d:15:5e:aa:62:5e:e8:29:16:e2:cd:29:43:61:88:6c:d1:fb:d4 ------BEGIN CERTIFICATE----- -MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCB -mDELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsT -MChjKSAyMDA4IEdlb1RydXN0IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25s -eTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhv -cml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIzNTk1OVowgZgxCzAJ -BgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg -MjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0 -BgNVBAMTLUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkg -LSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz -+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5jK/BGvESyiaHAKAxJcCGVn2TAppMSAmUm -hsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdEc5IiaacDiGydY8hS2pgn -5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3CIShwiP/W -JmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exAL -DmKudlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZC -huOl1UcCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw -HQYDVR0OBBYEFMR5yo6hTgMdHNxr2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IB -AQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9cr5HqQ6XErhK8WTTOd8lNNTB -zU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbEAp7aDHdlDkQN -kv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD -AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUH -SJsMC8tJP33st/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2G -spki4cErx5z481+oghLrGREt ------END CERTIFICATE----- - -# Issuer: CN=thawte Primary Root CA - G2 O=thawte, Inc. OU=(c) 2007 thawte, Inc. - For authorized use only -# Subject: CN=thawte Primary Root CA - G2 O=thawte, Inc. OU=(c) 2007 thawte, Inc. - For authorized use only -# Label: "thawte Primary Root CA - G2" -# Serial: 71758320672825410020661621085256472406 -# MD5 Fingerprint: 74:9d:ea:60:24:c4:fd:22:53:3e:cc:3a:72:d9:29:4f -# SHA1 Fingerprint: aa:db:bc:22:23:8f:c4:01:a1:27:bb:38:dd:f4:1d:db:08:9e:f0:12 -# SHA256 Fingerprint: a4:31:0d:50:af:18:a6:44:71:90:37:2a:86:af:af:8b:95:1f:fb:43:1d:83:7f:1e:56:88:b4:59:71:ed:15:57 ------BEGIN CERTIFICATE----- -MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDEL -MAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMp -IDIwMDcgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAi -BgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMjAeFw0wNzExMDUwMDAw -MDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhh -d3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBGb3Ig -YXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9v -dCBDQSAtIEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/ -BebfowJPDQfGAFG6DAJSLSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6 -papu+7qzcMBniKI11KOasf2twu8x+qi58/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8E -BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUmtgAMADna3+FGO6Lts6K -DPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUNG4k8VIZ3 -KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41ox -XZ3Krr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg== ------END CERTIFICATE----- - -# Issuer: CN=thawte Primary Root CA - G3 O=thawte, Inc. OU=Certification Services Division/(c) 2008 thawte, Inc. - For authorized use only -# Subject: CN=thawte Primary Root CA - G3 O=thawte, Inc. OU=Certification Services Division/(c) 2008 thawte, Inc. - For authorized use only -# Label: "thawte Primary Root CA - G3" -# Serial: 127614157056681299805556476275995414779 -# MD5 Fingerprint: fb:1b:5d:43:8a:94:cd:44:c6:76:f2:43:4b:47:e7:31 -# SHA1 Fingerprint: f1:8b:53:8d:1b:e9:03:b6:a6:f0:56:43:5b:17:15:89:ca:f3:6b:f2 -# SHA256 Fingerprint: 4b:03:f4:58:07:ad:70:f2:1b:fc:2c:ae:71:c9:fd:e4:60:4c:06:4c:f5:ff:b6:86:ba:e5:db:aa:d7:fd:d3:4c ------BEGIN CERTIFICATE----- -MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCB -rjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf -Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw -MDggdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNV -BAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMzAeFw0wODA0MDIwMDAwMDBa -Fw0zNzEyMDEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhhd3Rl -LCBJbmMuMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9u -MTgwNgYDVQQLEy8oYykgMjAwOCB0aGF3dGUsIEluYy4gLSBGb3IgYXV0aG9yaXpl -ZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAtIEcz -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr8nLPvb2FvdeHsbnndm -gcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2AtP0LMqmsywCPLLEHd5N/8 -YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC+BsUa0Lf -b1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS9 -9irY7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2S -zhkGcuYMXDhpxwTWvGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUk -OQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNV -HQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJKoZIhvcNAQELBQADggEBABpA -2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweKA3rD6z8KLFIW -oCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu -t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7c -KUGRIjxpp7sC8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fM -m7v/OeZWYdMKp8RcTGB7BXcmer/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZu -MdRAGmI0Nj81Aa6sY6A= ------END CERTIFICATE----- - -# Issuer: CN=GeoTrust Primary Certification Authority - G2 O=GeoTrust Inc. OU=(c) 2007 GeoTrust Inc. - For authorized use only -# Subject: CN=GeoTrust Primary Certification Authority - G2 O=GeoTrust Inc. OU=(c) 2007 GeoTrust Inc. - For authorized use only -# Label: "GeoTrust Primary Certification Authority - G2" -# Serial: 80682863203381065782177908751794619243 -# MD5 Fingerprint: 01:5e:d8:6b:bd:6f:3d:8e:a1:31:f8:12:e0:98:73:6a -# SHA1 Fingerprint: 8d:17:84:d5:37:f3:03:7d:ec:70:fe:57:8b:51:9a:99:e6:10:d7:b0 -# SHA256 Fingerprint: 5e:db:7a:c4:3b:82:a0:6a:87:61:e8:d7:be:49:79:eb:f2:61:1f:7d:d7:9b:f9:1c:1c:6b:56:6a:21:9e:d7:66 ------BEGIN CERTIFICATE----- -MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDEL -MAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChj -KSAyMDA3IEdlb1RydXN0IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2 -MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0 -eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1OVowgZgxCzAJBgNV -BAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykgMjAw -NyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNV -BAMTLUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBH -MjB2MBAGByqGSM49AgEGBSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcL -So17VDs6bl8VAsBQps8lL33KSLjHUGMcKiEIfJo22Av+0SbFWDEwKCXzXV2juLal -tJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+EVXVMAoG -CCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGT -qQ7mndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBucz -rD6ogRLQy7rQkgu2npaqBA+K ------END CERTIFICATE----- - -# Issuer: CN=VeriSign Universal Root Certification Authority O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2008 VeriSign, Inc. - For authorized use only -# Subject: CN=VeriSign Universal Root Certification Authority O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2008 VeriSign, Inc. - For authorized use only -# Label: "VeriSign Universal Root Certification Authority" -# Serial: 85209574734084581917763752644031726877 -# MD5 Fingerprint: 8e:ad:b5:01:aa:4d:81:e4:8c:1d:d1:e1:14:00:95:19 -# SHA1 Fingerprint: 36:79:ca:35:66:87:72:30:4d:30:a5:fb:87:3b:0f:a7:7b:b7:0d:54 -# SHA256 Fingerprint: 23:99:56:11:27:a5:71:25:de:8c:ef:ea:61:0d:df:2f:a0:78:b5:c8:06:7f:4e:82:82:90:bf:b8:60:e8:4b:3c ------BEGIN CERTIFICATE----- -MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCB -vTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL -ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJp -U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MTgwNgYDVQQDEy9W -ZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAe -Fw0wODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIG9MQswCQYDVQQGEwJVUzEX -MBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0 -IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAyMDA4IFZlcmlTaWduLCBJbmMuIC0gRm9y -IGF1dGhvcml6ZWQgdXNlIG9ubHkxODA2BgNVBAMTL1ZlcmlTaWduIFVuaXZlcnNh -bCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEF -AAOCAQ8AMIIBCgKCAQEAx2E3XrEBNNti1xWb/1hajCMj1mCOkdeQmIN65lgZOIzF -9uVkhbSicfvtvbnazU0AtMgtc6XHaXGVHzk8skQHnOgO+k1KxCHfKWGPMiJhgsWH -H26MfF8WIFFE0XBPV+rjHOPMee5Y2A7Cs0WTwCznmhcrewA3ekEzeOEz4vMQGn+H -LL729fdC4uW/h2KJXwBL38Xd5HVEMkE6HnFuacsLdUYI0crSK5XQz/u5QGtkjFdN -/BMReYTtXlT2NJ8IAfMQJQYXStrxHXpma5hgZqTZ79IugvHw7wnqRMkVauIDbjPT -rJ9VAMf2CGqUuV/c4DPxhGD5WycRtPwW8rtWaoAljQIDAQABo4GyMIGvMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMG0GCCsGAQUFBwEMBGEwX6FdoFsw -WTBXMFUWCWltYWdlL2dpZjAhMB8wBwYFKw4DAhoEFI/l0xqGrI2Oa8PPgGrUSBgs -exkuMCUWI2h0dHA6Ly9sb2dvLnZlcmlzaWduLmNvbS92c2xvZ28uZ2lmMB0GA1Ud -DgQWBBS2d/ppSEefUxLVwuoHMnYH0ZcHGTANBgkqhkiG9w0BAQsFAAOCAQEASvj4 -sAPmLGd75JR3Y8xuTPl9Dg3cyLk1uXBPY/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+ -seQxIcaBlVZaDrHC1LGmWazxY8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz -4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTxP/jgdFcrGJ2BtMQo2pSXpXDrrB2+ -BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+PwGZsY6rp2aQW9IHR -lRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4mJO3 -7M2CYfE45k+XmCpajQ== ------END CERTIFICATE----- - -# Issuer: CN=VeriSign Class 3 Public Primary Certification Authority - G4 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2007 VeriSign, Inc. - For authorized use only -# Subject: CN=VeriSign Class 3 Public Primary Certification Authority - G4 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 2007 VeriSign, Inc. - For authorized use only -# Label: "VeriSign Class 3 Public Primary Certification Authority - G4" -# Serial: 63143484348153506665311985501458640051 -# MD5 Fingerprint: 3a:52:e1:e7:fd:6f:3a:e3:6f:f3:6f:99:1b:f9:22:41 -# SHA1 Fingerprint: 22:d5:d8:df:8f:02:31:d1:8d:f7:9d:b7:cf:8a:2d:64:c9:3f:6c:3a -# SHA256 Fingerprint: 69:dd:d7:ea:90:bb:57:c9:3e:13:5d:c8:5e:a6:fc:d5:48:0b:60:32:39:bd:c4:54:fc:75:8b:2a:26:cf:7f:79 ------BEGIN CERTIFICATE----- -MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjEL -MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW -ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2ln -biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJp -U2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9y -aXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJp -U2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwg -SW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2ln -biBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8Utpkmw4tXNherJI9/gHm -GUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGzrl0Bp3ve -fLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUw -AwEB/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJ -aW1hZ2UvZ2lmMCEwHzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYj -aHR0cDovL2xvZ28udmVyaXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMW -kf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMDA2gAMGUCMGYhDBgmYFo4e1ZC -4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIxAJw9SDkjOVga -FRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA== ------END CERTIFICATE----- - -# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority -# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority -# Label: "Verisign Class 3 Public Primary Certification Authority" -# Serial: 80507572722862485515306429940691309246 -# MD5 Fingerprint: ef:5a:f1:33:ef:f1:cd:bb:51:02:ee:12:14:4b:96:c4 -# SHA1 Fingerprint: a1:db:63:93:91:6f:17:e4:18:55:09:40:04:15:c7:02:40:b0:ae:6b -# SHA256 Fingerprint: a4:b6:b3:99:6f:c2:f3:06:b3:fd:86:81:bd:63:41:3d:8c:50:09:cc:4f:a3:29:c2:cc:f0:e2:fa:1b:14:03:05 ------BEGIN CERTIFICATE----- -MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz -cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 -MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV -BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt -YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN -ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE -BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is -I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G -CSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i -2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ -2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ ------END CERTIFICATE----- - -# Issuer: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R3 -# Subject: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R3 -# Label: "GlobalSign Root CA - R3" -# Serial: 4835703278459759426209954 -# MD5 Fingerprint: c5:df:b8:49:ca:05:13:55:ee:2d:ba:1a:c3:3e:b0:28 -# SHA1 Fingerprint: d6:9b:56:11:48:f0:1c:77:c5:45:78:c1:09:26:df:5b:85:69:76:ad -# SHA256 Fingerprint: cb:b5:22:d7:b7:f1:27:ad:6a:01:13:86:5b:df:1c:d4:10:2e:7d:07:59:af:63:5a:7c:f4:72:0d:c9:63:c5:3b ------BEGIN CERTIFICATE----- -MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G -A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp -Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4 -MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG -A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8 -RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT -gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmm -KPZpO/bLyCiR5Z2KYVc3rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zd -QQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjlOCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZ -XriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2xmmFghcCAwEAAaNCMEAw -DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFI/wS3+o -LkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZU -RUm7lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMp -jjM5RcOO5LlXbKr8EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK -6fBdRoyV3XpYKBovHd7NADdBj+1EbddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQX -mcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18YIvDQVETI53O9zJrlAGomecs -Mx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7rkpeDMdmztcpH -WD9f ------END CERTIFICATE----- - -# Issuer: CN=TC TrustCenter Universal CA III O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA -# Subject: CN=TC TrustCenter Universal CA III O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA -# Label: "TC TrustCenter Universal CA III" -# Serial: 2010889993983507346460533407902964 -# MD5 Fingerprint: 9f:dd:db:ab:ff:8e:ff:45:21:5f:f0:6c:9d:8f:fe:2b -# SHA1 Fingerprint: 96:56:cd:7b:57:96:98:95:d0:e1:41:46:68:06:fb:b8:c6:11:06:87 -# SHA256 Fingerprint: 30:9b:4a:87:f6:ca:56:c9:31:69:aa:a9:9c:6d:98:88:54:d7:89:2b:d5:43:7e:2d:07:b2:9c:be:da:55:d3:5d ------BEGIN CERTIFICATE----- -MIID4TCCAsmgAwIBAgIOYyUAAQACFI0zFQLkbPQwDQYJKoZIhvcNAQEFBQAwezEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV -BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEoMCYGA1UEAxMfVEMgVHJ1 -c3RDZW50ZXIgVW5pdmVyc2FsIENBIElJSTAeFw0wOTA5MDkwODE1MjdaFw0yOTEy -MzEyMzU5NTlaMHsxCzAJBgNVBAYTAkRFMRwwGgYDVQQKExNUQyBUcnVzdENlbnRl -ciBHbWJIMSQwIgYDVQQLExtUQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0ExKDAm -BgNVBAMTH1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQSBJSUkwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDC2pxisLlxErALyBpXsq6DFJmzNEubkKLF -5+cvAqBNLaT6hdqbJYUtQCggbergvbFIgyIpRJ9Og+41URNzdNW88jBmlFPAQDYv -DIRlzg9uwliT6CwLOunBjvvya8o84pxOjuT5fdMnnxvVZ3iHLX8LR7PH6MlIfK8v -zArZQe+f/prhsq75U7Xl6UafYOPfjdN/+5Z+s7Vy+EutCHnNaYlAJ/Uqwa1D7KRT -yGG299J5KmcYdkhtWyUB0SbFt1dpIxVbYYqt8Bst2a9c8SaQaanVDED1M4BDj5yj -dipFtK+/fz6HP3bFzSreIMUWWMv5G/UPyw0RUmS40nZid4PxWJ//AgMBAAGjYzBh -MB8GA1UdIwQYMBaAFFbn4VslQ4Dg9ozhcbyO5YAvxEjiMA8GA1UdEwEB/wQFMAMB -Af8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRW5+FbJUOA4PaM4XG8juWAL8RI -4jANBgkqhkiG9w0BAQUFAAOCAQEAg8ev6n9NCjw5sWi+e22JLumzCecYV42Fmhfz -dkJQEw/HkG8zrcVJYCtsSVgZ1OK+t7+rSbyUyKu+KGwWaODIl0YgoGhnYIg5IFHY -aAERzqf2EQf27OysGh+yZm5WZ2B6dF7AbZc2rrUNXWZzwCUyRdhKBgePxLcHsU0G -DeGl6/R1yrqc0L2z0zIkTO5+4nYES0lT2PLpVDP85XEfPRRclkvxOvIAu2y0+pZV -CIgJwcyRGSmwIC3/yzikQOEXvnlhgP8HA4ZMTnsGnxGGjYnuJ8Tb4rwZjgvDwxPH -LQNjO9Po5KIqwoIIlBZU8O8fJ5AluA0OKBtHd0e9HKgl8ZS0Zg== ------END CERTIFICATE----- - -# Issuer: CN=Go Daddy Root Certificate Authority - G2 O=GoDaddy.com, Inc. -# Subject: CN=Go Daddy Root Certificate Authority - G2 O=GoDaddy.com, Inc. -# Label: "Go Daddy Root Certificate Authority - G2" -# Serial: 0 -# MD5 Fingerprint: 80:3a:bc:22:c1:e6:fb:8d:9b:3b:27:4a:32:1b:9a:01 -# SHA1 Fingerprint: 47:be:ab:c9:22:ea:e8:0e:78:78:34:62:a7:9f:45:c2:54:fd:e6:8b -# SHA256 Fingerprint: 45:14:0b:32:47:eb:9c:c8:c5:b4:f0:d7:b5:30:91:f7:32:92:08:9e:6e:5a:63:e2:74:9d:d3:ac:a9:19:8e:da ------BEGIN CERTIFICATE----- -MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoT -EUdvRGFkZHkuY29tLCBJbmMuMTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRp -ZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIz -NTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQH -EwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8GA1UE -AxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIw -DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKD -E6bFIEMBO4Tx5oVJnyfq9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH -/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD+qK+ihVqf94Lw7YZFAXK6sOoBJQ7Rnwy -DfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutdfMh8+7ArU6SSYmlRJQVh -GkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMlNAJWJwGR -tDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEA -AaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE -FDqahQcQZyi27/a9BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmX -WWcDYfF+OwYxdS2hII5PZYe096acvNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu -9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r5N9ss4UXnT3ZJE95kTXWXwTr -gIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYVN8Gb5DKj7Tjo -2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO -LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI -4uJEvlz36hz1 ------END CERTIFICATE----- - -# Issuer: CN=Starfield Root Certificate Authority - G2 O=Starfield Technologies, Inc. -# Subject: CN=Starfield Root Certificate Authority - G2 O=Starfield Technologies, Inc. -# Label: "Starfield Root Certificate Authority - G2" -# Serial: 0 -# MD5 Fingerprint: d6:39:81:c6:52:7e:96:69:fc:fc:ca:66:ed:05:f2:96 -# SHA1 Fingerprint: b5:1c:06:7c:ee:2b:0c:3d:f8:55:ab:2d:92:f4:fe:39:d4:e7:0f:0e -# SHA256 Fingerprint: 2c:e1:cb:0b:f9:d2:f9:e1:02:99:3f:be:21:51:52:c3:b2:dd:0c:ab:de:1c:68:e5:31:9b:83:91:54:db:b7:f5 ------BEGIN CERTIFICATE----- -MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT -HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVs -ZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAw -MFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6 -b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQgVGVj -aG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZp -Y2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC -ggEBAL3twQP89o/8ArFvW59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMg -nLRJdzIpVv257IzdIvpy3Cdhl+72WoTsbhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1 -HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNkN3mSwOxGXn/hbVNMYq/N -Hwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7NfZTD4p7dN -dloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0 -HZbUJtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0G -CSqGSIb3DQEBCwUAA4IBAQARWfolTwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjU -sHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx4mcujJUDJi5DnUox9g61DLu3 -4jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUwF5okxBDgBPfg -8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K -pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1 -mMpYjn0q7pBZc2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0 ------END CERTIFICATE----- - -# Issuer: CN=Starfield Services Root Certificate Authority - G2 O=Starfield Technologies, Inc. -# Subject: CN=Starfield Services Root Certificate Authority - G2 O=Starfield Technologies, Inc. -# Label: "Starfield Services Root Certificate Authority - G2" -# Serial: 0 -# MD5 Fingerprint: 17:35:74:af:7b:61:1c:eb:f4:f9:3c:e2:ee:40:f9:a2 -# SHA1 Fingerprint: 92:5a:8f:8d:2c:6d:04:e0:66:5f:59:6a:ff:22:d8:63:e8:25:6f:3f -# SHA256 Fingerprint: 56:8d:69:05:a2:c8:87:08:a4:b3:02:51:90:ed:cf:ed:b1:97:4a:60:6a:13:c6:e5:29:0f:cb:2a:e6:3e:da:b5 ------BEGIN CERTIFICATE----- -MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT -HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVs -ZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5 -MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNVBAYTAlVTMRAwDgYD -VQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFy -ZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2Vy -dmljZXMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20p -OsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm2 -8xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4PahHQUw2eeBGg6345AWh1K -Ts9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLPLJGmpufe -hRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk -6mFBrMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAw -DwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+q -AdcwKziIorhtSpzyEZGDMA0GCSqGSIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMI -bw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPPE95Dz+I0swSdHynVv/heyNXB -ve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTyxQGjhdByPq1z -qwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd -iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn -0q23KXB56jzaYyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCN -sSi6 ------END CERTIFICATE----- - -# Issuer: CN=AffirmTrust Commercial O=AffirmTrust -# Subject: CN=AffirmTrust Commercial O=AffirmTrust -# Label: "AffirmTrust Commercial" -# Serial: 8608355977964138876 -# MD5 Fingerprint: 82:92:ba:5b:ef:cd:8a:6f:a6:3d:55:f9:84:f6:d6:b7 -# SHA1 Fingerprint: f9:b5:b6:32:45:5f:9c:be:ec:57:5f:80:dc:e9:6e:2c:c7:b2:78:b7 -# SHA256 Fingerprint: 03:76:ab:1d:54:c5:f9:80:3c:e4:b2:e2:01:a0:ee:7e:ef:7b:57:b6:36:e8:a9:3c:9b:8d:48:60:c9:6f:5f:a7 ------BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz -dCBDb21tZXJjaWFsMB4XDTEwMDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDEL -MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp -cm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6EqdbDuKP -Hx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yr -ba0F8PrVC8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPAL -MeIrJmqbTFeurCA+ukV6BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1 -yHp52UKqK39c/s4mT6NmgTWvRLpUHhwwMmWd5jyTXlBOeuM61G7MGvv50jeuJCqr -VwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNVHQ4EFgQUnZPGU4teyq8/ -nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ -KoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYG -XUPGhi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNj -vbz4YYCanrHOQnDiqX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivt -Z8SOyUOyXGsViQK8YvxO8rUzqrJv0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9g -N53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0khsUlHRUe072o0EclNmsxZt9YC -nlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8= ------END CERTIFICATE----- - -# Issuer: CN=AffirmTrust Networking O=AffirmTrust -# Subject: CN=AffirmTrust Networking O=AffirmTrust -# Label: "AffirmTrust Networking" -# Serial: 8957382827206547757 -# MD5 Fingerprint: 42:65:ca:be:01:9a:9a:4c:a9:8c:41:49:cd:c0:d5:7f -# SHA1 Fingerprint: 29:36:21:02:8b:20:ed:02:f5:66:c5:32:d1:d6:ed:90:9f:45:00:2f -# SHA256 Fingerprint: 0a:81:ec:5a:92:97:77:f1:45:90:4a:f3:8d:5d:50:9f:66:b5:e2:c5:8f:cd:b5:31:05:8b:0e:17:f3:f0:b4:1b ------BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz -dCBOZXR3b3JraW5nMB4XDTEwMDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDEL -MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp -cm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SEHi3y -YJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbua -kCNrmreIdIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRL -QESxG9fhwoXA3hA/Pe24/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp -6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gbh+0t+nvujArjqWaJGctB+d1ENmHP4ndG -yH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNVHQ4EFgQUBx/S55zawm6i -QLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ -KoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfO -tDIuUFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzu -QY0x2+c06lkh1QF612S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZ -Lgo/bNjR9eUJtGxUAArgFU2HdW23WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4u -olu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9/ZFvgrG+CJPbFEfxojfHRZ48 -x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s= ------END CERTIFICATE----- - -# Issuer: CN=AffirmTrust Premium O=AffirmTrust -# Subject: CN=AffirmTrust Premium O=AffirmTrust -# Label: "AffirmTrust Premium" -# Serial: 7893706540734352110 -# MD5 Fingerprint: c4:5d:0e:48:b6:ac:28:30:4e:0a:bc:f9:38:16:87:57 -# SHA1 Fingerprint: d8:a6:33:2c:e0:03:6f:b1:85:f6:63:4f:7d:6a:06:65:26:32:28:27 -# SHA256 Fingerprint: 70:a7:3f:7f:37:6b:60:07:42:48:90:45:34:b1:14:82:d5:bf:0e:69:8e:cc:49:8d:f5:25:77:eb:f2:e9:3b:9a ------BEGIN CERTIFICATE----- -MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVz -dCBQcmVtaXVtMB4XDTEwMDEyOTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkG -A1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1U -cnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxBLf -qV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtnBKAQ -JG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ -+jjeRFcV5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrS -s8PhaJyJ+HoAVt70VZVs+7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5 -HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmdGPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d7 -70O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5Rp9EixAqnOEhss/n/fauG -V+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NIS+LI+H+S -qHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S -5u046uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4Ia -C1nEWTJ3s7xgaVY5/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TX -OwF0lkLgAOIua+rF7nKsu7/+6qqo+Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYE -FJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/ -BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByvMiPIs0laUZx2 -KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg -Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B -8OWycvpEgjNC6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQ -MKSOyARiqcTtNd56l+0OOF6SL5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc -0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK+4w1IX2COPKpVJEZNZOUbWo6xbLQ -u4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmVBtWVyuEklut89pMF -u+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFgIxpH -YoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8 -GKa1qF60g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaO -RtGdFNrHF+QFlozEJLUbzxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6e -KeC2uAloGRwYQw== ------END CERTIFICATE----- - -# Issuer: CN=AffirmTrust Premium ECC O=AffirmTrust -# Subject: CN=AffirmTrust Premium ECC O=AffirmTrust -# Label: "AffirmTrust Premium ECC" -# Serial: 8401224907861490260 -# MD5 Fingerprint: 64:b0:09:55:cf:b1:d5:99:e2:be:13:ab:a6:5d:ea:4d -# SHA1 Fingerprint: b8:23:6b:00:2f:1d:16:86:53:01:55:6c:11:a4:37:ca:eb:ff:c3:bb -# SHA256 Fingerprint: bd:71:fd:f6:da:97:e4:cf:62:d1:64:7a:dd:25:81:b0:7d:79:ad:f8:39:7e:b4:ec:ba:9c:5e:84:88:82:14:23 ------BEGIN CERTIFICATE----- -MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMC -VVMxFDASBgNVBAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQ -cmVtaXVtIEVDQzAeFw0xMDAxMjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJ -BgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1UcnVzdDEgMB4GA1UEAwwXQWZmaXJt -VHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQNMF4bFZ0D -0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQN8O9 -ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0G -A1UdDgQWBBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4G -A1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/Vs -aobgxCd05DhT1wV/GzTjxi+zygk8N53X57hG8f2h4nECMEJZh0PUUd+60wkyWs6I -flc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKMeQ== ------END CERTIFICATE----- - -# Issuer: CN=StartCom Certification Authority O=StartCom Ltd. OU=Secure Digital Certificate Signing -# Subject: CN=StartCom Certification Authority O=StartCom Ltd. OU=Secure Digital Certificate Signing -# Label: "StartCom Certification Authority" -# Serial: 45 -# MD5 Fingerprint: c9:3b:0d:84:41:fc:a4:76:79:23:08:57:de:10:19:16 -# SHA1 Fingerprint: a3:f1:33:3f:e2:42:bf:cf:c5:d1:4e:8f:39:42:98:40:68:10:d1:a0 -# SHA256 Fingerprint: e1:78:90:ee:09:a3:fb:f4:f4:8b:9c:41:4a:17:d6:37:b7:a5:06:47:e9:bc:75:23:22:72:7f:cc:17:42:a9:11 ------BEGIN CERTIFICATE----- -MIIHhzCCBW+gAwIBAgIBLTANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg -Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh -dGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0NjM3WhcNMzYwOTE3MTk0NjM2WjB9 -MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi -U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3Rh -cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUA -A4ICDwAwggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZk -pMyONvg45iPwbm2xPN1yo4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rf -OQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/C -Ji/6tRYccjV3yjxd5srhJosaNnZcAdt0FCX+7bWgiA/deMotHweXMAEtcnn6RtYT -Kqi5pquDSR3l8u/d5AGOGAqPY1MWhWKpDhk6zLVmpsJrdAfkK+F2PrRt2PZE4XNi -HzvEvqBTViVsUQn3qqvKv3b9bZvzndu/PWa8DFaqr5hIlTpL36dYUNk4dalb6kMM -Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w -+2OqqGwaVLRcJXrJosmLFqa7LH4XXgVNWG4SHQHuEhANxjJ/GP/89PrNbpHoNkm+ -Gkhpi8KWTRoSsmkXwQqQ1vp5Iki/untp+HDH+no32NgN0nZPV/+Qt+OR0t3vwmC3 -Zzrd/qqc8NSLf3Iizsafl7b4r4qgEKjZ+xjGtrVcUjyJthkqcwEKDwOzEmDyei+B -26Nu/yYwl/WL3YlXtq09s68rxbd2AvCl1iuahhQqcvbjM4xdCUsT37uMdBNSSwID -AQABo4ICEDCCAgwwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYD -VR0OBBYEFE4L7xqkQFulF2mHMMo0aEPQQa7yMB8GA1UdIwQYMBaAFE4L7xqkQFul -F2mHMMo0aEPQQa7yMIIBWgYDVR0gBIIBUTCCAU0wggFJBgsrBgEEAYG1NwEBATCC -ATgwLgYIKwYBBQUHAgEWImh0dHA6Ly93d3cuc3RhcnRzc2wuY29tL3BvbGljeS5w -ZGYwNAYIKwYBBQUHAgEWKGh0dHA6Ly93d3cuc3RhcnRzc2wuY29tL2ludGVybWVk -aWF0ZS5wZGYwgc8GCCsGAQUFBwICMIHCMCcWIFN0YXJ0IENvbW1lcmNpYWwgKFN0 -YXJ0Q29tKSBMdGQuMAMCAQEagZZMaW1pdGVkIExpYWJpbGl0eSwgcmVhZCB0aGUg -c2VjdGlvbiAqTGVnYWwgTGltaXRhdGlvbnMqIG9mIHRoZSBTdGFydENvbSBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eSBQb2xpY3kgYXZhaWxhYmxlIGF0IGh0dHA6Ly93 -d3cuc3RhcnRzc2wuY29tL3BvbGljeS5wZGYwEQYJYIZIAYb4QgEBBAQDAgAHMDgG -CWCGSAGG+EIBDQQrFilTdGFydENvbSBGcmVlIFNTTCBDZXJ0aWZpY2F0aW9uIEF1 -dGhvcml0eTANBgkqhkiG9w0BAQsFAAOCAgEAjo/n3JR5fPGFf59Jb2vKXfuM/gTF -wWLRfUKKvFO3lANmMD+x5wqnUCBVJX92ehQN6wQOQOY+2IirByeDqXWmN3PH/UvS -Ta0XQMhGvjt/UfzDtgUx3M2FIk5xt/JxXrAaxrqTi3iSSoX4eA+D/i+tLPfkpLst -0OcNOrg+zvZ49q5HJMqjNTbOx8aHmNrs++myziebiMMEofYLWWivydsQD032ZGNc -pRJvkrKTlMeIFw6Ttn5ii5B/q06f/ON1FE8qMt9bDeD1e5MNq6HPh+GlBEXoPBKl -CcWw0bdT82AUuoVpaiF8H3VhFyAXe2w7QSlc4axa0c2Mm+tgHRns9+Ww2vl5GKVF -P0lDV9LdJNUso/2RjSe15esUBppMeyG7Oq0wBhjA2MFrLH9ZXF2RsXAiV+uKa0hK -1Q8p7MZAwC+ITGgBF3f0JBlPvfrhsiAhS90a2Cl9qrjeVOwhVYBsHvUwyKMQ5bLm -KhQxw4UtjJixhlpPiVktucf3HMiKf8CdBUrmQk9io20ppB+Fq9vlgcitKj1MXVuE -JnHEhV5xJMqlG2zYYdMa4FTbzrqpMrUi9nNBCV24F10OD5mQ1kfabwo6YigUZ4LZ -8dCAWZvLMdibD4x3TrVoivJs9iQOLWxwxXPR3hTQcY+203sC9uO41Alua551hDnm -fyWl8kgAwKQB2j8= ------END CERTIFICATE----- - -# Issuer: CN=StartCom Certification Authority G2 O=StartCom Ltd. -# Subject: CN=StartCom Certification Authority G2 O=StartCom Ltd. -# Label: "StartCom Certification Authority G2" -# Serial: 59 -# MD5 Fingerprint: 78:4b:fb:9e:64:82:0a:d3:b8:4c:62:f3:64:f2:90:64 -# SHA1 Fingerprint: 31:f1:fd:68:22:63:20:ee:c6:3b:3f:9d:ea:4a:3e:53:7c:7c:39:17 -# SHA256 Fingerprint: c7:ba:65:67:de:93:a7:98:ae:1f:aa:79:1e:71:2d:37:8f:ae:1f:93:c4:39:7f:ea:44:1b:b7:cb:e6:fd:59:95 ------BEGIN CERTIFICATE----- -MIIFYzCCA0ugAwIBAgIBOzANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjEsMCoGA1UEAxMjU3RhcnRDb20gQ2VydGlm -aWNhdGlvbiBBdXRob3JpdHkgRzIwHhcNMTAwMTAxMDEwMDAxWhcNMzkxMjMxMjM1 -OTAxWjBTMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEsMCoG -A1UEAxMjU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgRzIwggIiMA0G -CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2iTZbB7cgNr2Cu+EWIAOVeq8Oo1XJ -JZlKxdBWQYeQTSFgpBSHO839sj60ZwNq7eEPS8CRhXBF4EKe3ikj1AENoBB5uNsD -vfOpL9HG4A/LnooUCri99lZi8cVytjIl2bLzvWXFDSxu1ZJvGIsAQRSCb0AgJnoo -D/Uefyf3lLE3PbfHkffiAez9lInhzG7TNtYKGXmu1zSCZf98Qru23QumNK9LYP5/ -Q0kGi4xDuFby2X8hQxfqp0iVAXV16iulQ5XqFYSdCI0mblWbq9zSOdIxHWDirMxW -RST1HFSr7obdljKF+ExP6JV2tgXdNiNnvP8V4so75qbsO+wmETRIjfaAKxojAuuK -HDp2KntWFhxyKrOq42ClAJ8Em+JvHhRYW6Vsi1g8w7pOOlz34ZYrPu8HvKTlXcxN -nw3h3Kq74W4a7I/htkxNeXJdFzULHdfBR9qWJODQcqhaX2YtENwvKhOuJv4KHBnM -0D4LnMgJLvlblnpHnOl68wVQdJVznjAJ85eCXuaPOQgeWeU1FEIT/wCc976qUM/i -UUjXuG+v+E5+M5iSFGI6dWPPe/regjupuznixL0sAA7IF6wT700ljtizkC+p2il9 -Ha90OrInwMEePnWjFqmveiJdnxMaz6eg6+OGCtP95paV1yPIN93EfKo2rJgaErHg -TuixO/XWb/Ew1wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE -AwIBBjAdBgNVHQ4EFgQUS8W0QGutHLOlHGVuRjaJhwUMDrYwDQYJKoZIhvcNAQEL -BQADggIBAHNXPyzVlTJ+N9uWkusZXn5T50HsEbZH77Xe7XRcxfGOSeD8bpkTzZ+K -2s06Ctg6Wgk/XzTQLwPSZh0avZyQN8gMjgdalEVGKua+etqhqaRpEpKwfTbURIfX -UfEpY9Z1zRbkJ4kd+MIySP3bmdCPX1R0zKxnNBFi2QwKN4fRoxdIjtIXHfbX/dtl -6/2o1PXWT6RbdejF0mCy2wl+JYt7ulKSnj7oxXehPOBKc2thz4bcQ///If4jXSRK -9dNtD2IEBVeC2m6kMyV5Sy5UGYvMLD0w6dEG/+gyRr61M3Z3qAFdlsHB1b6uJcDJ -HgoJIIihDsnzb02CVAAgp9KP5DlUFy6NHrgbuxu9mk47EDTcnIhT76IxW1hPkWLI -wpqazRVdOKnWvvgTtZ8SafJQYqz7Fzf07rh1Z2AQ+4NQ+US1dZxAF7L+/XldblhY -XzD8AK6vM8EOTmy6p6ahfzLbOOCxchcKK5HsamMm7YnUeMx0HgX4a/6ManY5Ka5l -IxKVCCIcl85bBu4M4ru8H0ST9tg4RQUh7eStqxK2A6RCLi3ECToDZ2mEmuFZkIoo -hdVddLHRDiBYmxOlsGOm7XtH/UVVMKTumtTm4ofvmMkyghEpIrwACjFeLQ/Ajulr -so8uBtjRkcfGEvRM/TAXw8HaOFvjqermobp573PYtlNXLfbQ4ddI ------END CERTIFICATE----- diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 0d6af8281..d97f6475e 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -189,55 +189,35 @@ public function call($name, $arguments, $expected_class = null) ) ); - $url = Google_Http_REST::createRequestUri( - $this->servicePath, + $url = $this->createRequestUri( $method['path'], $parameters ); - $httpRequest = new Google_Http_Request( - $url, + + $request = $this->client->getHttpClient()->createRequest( $method['httpMethod'], - null, - $postBody + $url, + ['json' => $postBody] ); - if ($this->rootUrl) { - $httpRequest->setBaseComponent($this->rootUrl); - } else { - $httpRequest->setBaseComponent($this->client->getBasePath()); - } - - if ($postBody) { - $contentTypeHeader = array(); - $contentTypeHeader['content-type'] = 'application/json; charset=UTF-8'; - $httpRequest->setRequestHeaders($contentTypeHeader); - $httpRequest->setPostBody($postBody); - } - - $httpRequest = $this->client->getAuth()->sign($httpRequest); - $httpRequest->setExpectedClass($expected_class); - - if (isset($parameters['data']) && - ($parameters['uploadType']['value'] == 'media' || $parameters['uploadType']['value'] == 'multipart')) { - // If we are doing a simple media upload, trigger that as a convenience. - $mfu = new Google_Http_MediaFileUpload( - $this->client, - $httpRequest, - isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream', - $parameters['data']['value'] - ); - } + $request = $this->client->getAuth()->sign($request); + if ($this->client->shouldDefer()) { + // @TODO find a better way to do this + $request->setHeader('X-Php-Expected-Class', $expected_class); - if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { - $httpRequest->enableExpectedRaw(); + return $request; } - if ($this->client->shouldDefer()) { - // If we are in batch or upload mode, return the raw request. - return $httpRequest; + // support uploads + if (isset($parameters['data'])) { + $mimeType = isset($parameters['mimeType']) + ? $parameters['mimeType']['value'] + : 'application/octet-stream'; + $data = $parameters['data']['value']; + $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); } - return $this->client->execute($httpRequest); + return $this->client->execute($request, $expected_class); } protected function convertToArrayAndStripNulls($o) @@ -252,4 +232,53 @@ protected function convertToArrayAndStripNulls($o) } return $o; } + + /** + * Parse/expand request parameters and create a fully qualified + * request uri. + * @static + * @param string $restPath + * @param array $params + * @return string $requestUrl + */ + public function createRequestUri($restPath, $params) + { + // code for leading slash + $requestUrl = $this->servicePath . $restPath; + if ($this->rootUrl) { + if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { + $requestUrl = '/' . $requestUrl; + } + $requestUrl = $this->rootUrl . $requestUrl; + } + $uriTemplateVars = array(); + $queryVars = array(); + foreach ($params as $paramName => $paramSpec) { + if ($paramSpec['type'] == 'boolean') { + $paramSpec['value'] = ($paramSpec['value']) ? 'true' : 'false'; + } + if ($paramSpec['location'] == 'path') { + $uriTemplateVars[$paramName] = $paramSpec['value']; + } else if ($paramSpec['location'] == 'query') { + if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { + foreach ($paramSpec['value'] as $value) { + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); + } + } else { + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); + } + } + } + + if (count($uriTemplateVars)) { + $uriTemplateParser = new Google_Utils_URITemplate(); + $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); + } + + if (count($queryVars)) { + $requestUrl .= '?' . implode($queryVars, '&'); + } + + return $requestUrl; + } } diff --git a/src/Google/Signer/Abstract.php b/src/Google/Signer/Abstract.php deleted file mode 100644 index 250180920..000000000 --- a/src/Google/Signer/Abstract.php +++ /dev/null @@ -1,29 +0,0 @@ - - */ -abstract class Google_Signer_Abstract -{ - /** - * Signs data, returns the signature as binary data. - */ - abstract public function sign($data); -} diff --git a/src/Google/Signer/P12.php b/src/Google/Signer/P12.php deleted file mode 100644 index 1fbed87a8..000000000 --- a/src/Google/Signer/P12.php +++ /dev/null @@ -1,94 +0,0 @@ - - */ -class Google_Signer_P12 extends Google_Signer_Abstract -{ - // OpenSSL private key resource - private $privateKey; - - // Creates a new signer from a .p12 file. - public function __construct($p12, $password) - { - if (!function_exists('openssl_x509_read')) { - throw new Google_Exception( - 'The Google PHP API library needs the openssl PHP extension' - ); - } - - // If the private key is provided directly, then this isn't in the p12 - // format. Different versions of openssl support different p12 formats - // and the key from google wasn't being accepted by the version available - // at the time. - if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { - $this->privateKey = openssl_pkey_get_private($p12); - } elseif ($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) { - $this->privateKey = openssl_pkey_get_private($p12); - } else { - // This throws on error - $certs = array(); - if (!openssl_pkcs12_read($p12, $certs, $password)) { - throw new Google_Auth_Exception( - "Unable to parse the p12 file. " . - "Is this a .p12 file? Is the password correct? OpenSSL error: " . - openssl_error_string() - ); - } - // TODO(beaton): is this part of the contract for the openssl_pkcs12_read - // method? What happens if there are multiple private keys? Do we care? - if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) { - throw new Google_Auth_Exception("No private key found in p12 file."); - } - $this->privateKey = openssl_pkey_get_private($certs['pkey']); - } - - if (!$this->privateKey) { - throw new Google_Auth_Exception("Unable to load private key"); - } - } - - public function __destruct() - { - if ($this->privateKey) { - openssl_pkey_free($this->privateKey); - } - } - - public function sign($data) - { - if (version_compare(PHP_VERSION, '5.3.0') < 0) { - throw new Google_Auth_Exception( - "PHP 5.3.0 or higher is required to use service accounts." - ); - } - $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; - if (!openssl_sign($data, $signature, $this->privateKey, $hash)) { - throw new Google_Auth_Exception("Unable to sign data"); - } - return $signature; - } -} diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index 8851f5f41..8bba66881 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -55,11 +55,6 @@ class Google_Task_Runner */ private $maxAttempts = 1; - /** - * @var Google_Client $client The current API client. - */ - private $client; - /** * @var string $name The name of the current task (used for logging). */ @@ -76,20 +71,18 @@ class Google_Task_Runner /** * Creates a new task runner with exponential backoff support. * - * @param Google_Client $client The current API client + * @param array $config The task runner config * @param string $name The name of the current task (used for logging) * @param callable $action The task to run and possibly retry * @param array $arguments The task arguments * @throws Google_Task_Exception when misconfigured */ public function __construct( - Google_Client $client, + $config, $name, $action, array $arguments = array() ) { - $config = (array) $client->getClassConfig('Google_Task_Runner'); - if (isset($config['initial_delay'])) { if ($config['initial_delay'] < 0) { throw new Google_Task_Exception( @@ -146,7 +139,6 @@ public function __construct( } $this->name = $name; - $this->client = $client; $this->action = $action; $this->arguments = $arguments; } @@ -219,15 +211,6 @@ private function backOff() { $delay = $this->getDelay(); - $this->client->getLogger()->debug( - 'Retrying task with backoff', - array( - 'request' => $this->name, - 'retry' => $this->attempts, - 'backoff_seconds' => $delay - ) - ); - usleep($delay * 1000000); } diff --git a/src/Google/Verifier/Abstract.php b/src/Google/Verifier/Abstract.php deleted file mode 100644 index e6c9eeb03..000000000 --- a/src/Google/Verifier/Abstract.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ -abstract class Google_Verifier_Abstract -{ - /** - * Checks a signature, returns true if the signature is correct, - * false otherwise. - */ - abstract public function verify($data, $signature); -} diff --git a/src/Google/Verifier/Pem.php b/src/Google/Verifier/Pem.php deleted file mode 100644 index 3d6e0fd2d..000000000 --- a/src/Google/Verifier/Pem.php +++ /dev/null @@ -1,75 +0,0 @@ - - */ -class Google_Verifier_Pem extends Google_Verifier_Abstract -{ - private $publicKey; - - /** - * Constructs a verifier from the supplied PEM-encoded certificate. - * - * $pem: a PEM encoded certificate (not a file). - * @param $pem - * @throws Google_Auth_Exception - * @throws Google_Exception - */ - public function __construct($pem) - { - if (!function_exists('openssl_x509_read')) { - throw new Google_Exception('Google API PHP client needs the openssl PHP extension'); - } - $this->publicKey = openssl_x509_read($pem); - if (!$this->publicKey) { - throw new Google_Auth_Exception("Unable to parse PEM: $pem"); - } - } - - public function __destruct() - { - if ($this->publicKey) { - openssl_x509_free($this->publicKey); - } - } - - /** - * Verifies the signature on data. - * - * Returns true if the signature is valid, false otherwise. - * @param $data - * @param $signature - * @throws Google_Auth_Exception - * @return bool - */ - public function verify($data, $signature) - { - $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; - $status = openssl_verify($data, $signature, $this->publicKey, $hash); - if ($status === -1) { - throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); - } - return $status === 1; - } -} diff --git a/src/Google/autoload.php b/src/Google/autoload.php index 89e2a185f..6f5f3ee3e 100644 --- a/src/Google/autoload.php +++ b/src/Google/autoload.php @@ -30,3 +30,7 @@ function ($className) { } } ); + +if (file_exists($file = dirname(__FILE__) . '/../../vendor/autoload.php')) { + require_once($file); +} diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 6b6906ecf..27710cc5d 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -17,7 +17,7 @@ class BaseTest extends PHPUnit_Framework_TestCase { - const KEY = ""; + private $key; private $token; private $memcacheHost; private $memcachePort; @@ -34,7 +34,9 @@ public function __construct() public function getClient() { $client = new Google_Client(); - $client->setDeveloperKey(self::KEY); + if ($this->key) { + $client->setDeveloperKey($this->key); + } if (strlen($this->token)) { $client->setAccessToken($this->token); } @@ -42,6 +44,15 @@ public function getClient() $client->setClassConfig('Google_Cache_Memcache', 'host', $this->memcacheHost); $client->setClassConfig('Google_Cache_Memcache', 'port', $this->memcachePort); } + if ($proxy = getenv('HTTP_PROXY')) { + $httpClient = new GuzzleHttp\Client([ + 'defaults' => [ + 'proxy' => $proxy, + 'verify' => false, + ] + ]); + $client->setHttpClient($httpClient); + } return $client; } @@ -65,4 +76,21 @@ public function loadToken() } } } + + public function checkKey() + { + if (!strlen($this->key)) { + $this->markTestSkipped("Test requires api key\nYou can create one in your developer console"); + return false; + } + + $this->key = $this->loadKey(); + } + + public function loadKey() + { + if (file_exists($f = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.apiKey')) { + return file_get_contents($f); + } + } } diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php index 50afc495c..944c47c8c 100644 --- a/tests/OAuthHelper.php +++ b/tests/OAuthHelper.php @@ -37,7 +37,6 @@ } $client->setClientId($clientId); $client->setClientSecret($clientSecret); - $authUrl = $client->createAuthUrl(); `open '$authUrl'`; diff --git a/tests/general/ApiBatchRequestTest.php b/tests/general/ApiBatchRequestTest.php index 6cfc3bf39..f948286f3 100644 --- a/tests/general/ApiBatchRequestTest.php +++ b/tests/general/ApiBatchRequestTest.php @@ -40,10 +40,16 @@ public function testBatchRequestWithAuth() $this->assertTrue(isset($result['response-key1'])); $this->assertTrue(isset($result['response-key2'])); $this->assertTrue(isset($result['response-key3'])); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key1']); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key2']); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key3']); } public function testBatchRequest() { + if (!$this->checkToken()) { + return; + } $client = $this->getClient(); $batch = new Google_Http_Batch($client); $this->plus = new Google_Service_Plus($client); @@ -57,6 +63,9 @@ public function testBatchRequest() $this->assertTrue(isset($result['response-key1'])); $this->assertTrue(isset($result['response-key2'])); $this->assertTrue(isset($result['response-key3'])); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key1']); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key2']); + $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key3']); } public function testInvalidBatchRequest() @@ -72,7 +81,7 @@ public function testInvalidBatchRequest() $result = $batch->execute(); $this->assertTrue(isset($result['response-key2'])); $this->assertInstanceOf( - 'Google_Service_Exception', + 'GuzzleHttp\Exception\ClientException', $result['response-key1'] ); } diff --git a/tests/general/ApiCacheParserTest.php b/tests/general/ApiCacheParserTest.php deleted file mode 100644 index 3f54862df..000000000 --- a/tests/general/ApiCacheParserTest.php +++ /dev/null @@ -1,262 +0,0 @@ -getClient(); - $resp = new Google_Http_Request('http://localhost', 'POST'); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // The response has expired, and we don't have an etag for - // revalidation. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 1998 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 1998 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 1998 02:28:12 GMT', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // Verify cacheable responses. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertTrue($result); - - // Verify that responses to HEAD requests are cacheable. - $resp = new Google_Http_Request('http://localhost', 'HEAD'); - $resp->setResponseHttpCode('200'); - $resp->setResponseBody(null); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertTrue($result); - - // Verify that Vary: * cannot get cached. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Date' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'Vary' => 'foo', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // Verify 201s cannot get cached. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('201'); - $resp->setResponseBody(null); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // Verify pragma: no-cache. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Pragma' => 'no-cache', - 'Cache-Control' => 'private, max-age=0, must-revalidate, no-transform', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // Verify Cache-Control: no-store. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Date' => 'Wed, 11 Jan 2012 04:03:37 GMT', - 'Cache-Control' => 'no-store', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - - // Verify that authorized responses are not cacheable. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setRequestHeaders(array('Authorization' => 'Bearer Token')); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => 'Fri, 30 Oct 2013 14:19:41 GMT', - 'Last-Modified' => 'Mon, 29 Jun 2011 02:28:12 GMT', - 'ETag' => '3e86-410-3596fbbc', - ) - ); - $result = Google_Http_CacheParser::isResponseCacheable($resp); - $this->assertFalse($result); - } - - public function testIsExpired() - { - $now = time(); - $future = $now + (365 * 24 * 60 * 60); - $client = $this->getClient(); - - // Expires 1 year in the future. Response is fresh. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertFalse(Google_Http_CacheParser::isExpired($resp)); - - // The response expires soon. Response is fresh. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => gmdate('D, d M Y H:i:s', $now + 2) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertFalse(Google_Http_CacheParser::isExpired($resp)); - - // Expired 1 year ago. Response is stale. - $past = $now - (365 * 24 * 60 * 60); - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); - - // Invalid expires header. Response is stale. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => '-1', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); - - // The response expires immediately. G+ APIs do this. Response is stale. - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Expires' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertTrue(Google_Http_CacheParser::isExpired($resp)); - } - - public function testMustRevalidate() - { - $now = time(); - $client = $this->getClient(); - - // Expires 1 year in the future, and contains the must-revalidate directive. - // Don't revalidate. must-revalidate only applies to expired entries. - $future = $now + (365 * 24 * 60 * 60); - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600, must-revalidate', - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT', - ) - ); - $this->assertFalse(Google_Http_CacheParser::mustRevalidate($resp)); - - // Contains the max-age=3600 directive, but was created 2 hours ago. - // Must revalidate. - $past = $now - (2 * 60 * 60); - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600', - 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - ) - ); - $this->assertTrue(Google_Http_CacheParser::mustRevalidate($resp)); - - // Contains the max-age=3600 directive, and was created 600 seconds ago. - // No need to revalidate, regardless of the expires header. - $past = $now - (600); - $resp = new Google_Http_Request('http://localhost', 'GET'); - $resp->setResponseHttpCode('200'); - $resp->setResponseHeaders( - array( - 'Cache-Control' => 'max-age=3600', - 'Expires' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - 'Date' => gmdate('D, d M Y H:i:s', $past) . ' GMT', - ) - ); - $this->assertFalse(Google_Http_CacheParser::mustRevalidate($resp)); - } -} diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php index 5d455c245..3700f3a72 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/general/ApiClientTest.php @@ -18,6 +18,8 @@ * under the License. */ +use GuzzleHttp\Message\Request; + class ApiClientTest extends BaseTest { public function testClient() @@ -25,10 +27,10 @@ public function testClient() $client = new Google_Client(); $client->setAccessType('foo'); $client->setDeveloperKey('foo'); - $req = new Google_Http_Request('http://foo.com'); + $req = new Request('GET', 'http://foo.com'); $client->getAuth()->sign($req); - $params = $req->getQueryParams(); - $this->assertEquals('foo', $params['key']); + $key = $req->getQuery()->get('key'); + $this->assertEquals('foo', $key); $client->setAccessToken(json_encode(array('access_token' => '1'))); $this->assertEquals("{\"access_token\":\"1\"}", $client->getAccessToken()); @@ -76,23 +78,44 @@ public function testPrepareService() $client->setClientId('test1'); $client->setRedirectUri('http://localhost/'); + $client->setState('xyz'); $client->setScopes(array("http://test.com", "scope2")); $scopes = $client->prepareScopes(); $this->assertEquals("http://test.com scope2", $scopes); $this->assertEquals( '' . 'https://accounts.google.com/o/oauth2/auth' - . '?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%2F' + . '?response_type=code' + . '&access_type=online' + . '&scope=http%3A%2F%2Ftest.com%20scope2' + . '&approval_prompt=auto' + . '&state=xyz' . '&client_id=test1' - . '&scope=http%3A%2F%2Ftest.com+scope2&access_type=online' - . '&approval_prompt=auto', + . '&redirect_uri=http%3A%2F%2Flocalhost%2F', $client->createAuthUrl() ); - // This should not trigger a request. - $client->setDefer(true); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); + $response->expects($this->once()) + ->method('json') + ->will($this->returnValue($this->getMock('Google_Model'))); + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->once()) + ->method('getQuery') + ->will($this->returnValue($this->getMock('GuzzleHttp\Query'))); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($request)); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $client->setHttpClient($http); $dr_service = new Google_Service_Drive($client); - $this->assertInstanceOf('Google_Http_Request', $dr_service->files->listFiles()); + $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); } public function testSettersGetters() @@ -108,14 +131,13 @@ public function testSettersGetters() $client->setApplicationName('me'); $this->assertEquals('object', gettype($client->getAuth())); $this->assertEquals('object', gettype($client->getCache())); - $this->assertEquals('object', gettype($client->getIo())); $client->setAuth(new Google_Auth_Simple($client)); $client->setAuth(new Google_Auth_OAuth2($client)); try { $client->setAccessToken(null); - die('Should have thrown an Google_Auth_Exception.'); + $this->fail('Should have thrown an Google_Auth_Exception.'); } catch (Google_Auth_Exception $e) { $this->assertEquals('Could not json decode the token', $e->getMessage()); } @@ -133,7 +155,6 @@ public function testAppEngineAutoConfig() $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; $client = new Google_Client(); $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); - $this->assertInstanceOf('Google_Io_Stream', $client->getIo()); unset($_SERVER['SERVER_SOFTWARE']); } @@ -189,24 +210,4 @@ public function testIniConfig() $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') ); } - - public function testServiceAccountJson() - { - $client = new Google_Client(); - $c = $client->loadServiceAccountJson( - __DIR__ . "/testdata/service-12345.json", - array() - ); - $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c); - } - - public function testRsaServiceAccountJson() - { - $client = new Google_Client(); - $c = $client->loadServiceAccountJson( - __DIR__ . "/testdata/service-rsa-12345.json", - array() - ); - $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c); - } } diff --git a/tests/general/ApiMediaFileUploadTest.php b/tests/general/ApiMediaFileUploadTest.php index e43cf7648..f8fd27614 100644 --- a/tests/general/ApiMediaFileUploadTest.php +++ b/tests/general/ApiMediaFileUploadTest.php @@ -1,4 +1,8 @@ getClient(); - $request = new Google_Http_Request('http://www.example.com', 'POST'); + $request = new Request('POST', 'http://www.example.com'); $media = new Google_Http_MediaFileUpload( $client, $request, @@ -32,13 +36,13 @@ public function testMediaFile() ); $this->assertEquals(0, $media->getProgress()); - $this->assertGreaterThan(0, strlen($request->getPostBody())); + $this->assertGreaterThan(0, strlen($request->getBody())); } public function testGetUploadType() { $client = $this->getClient(); - $request = new Google_Http_Request('http://www.example.com', 'POST'); + $request = new Request('POST', 'http://www.example.com'); // Test resumable upload $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); @@ -54,39 +58,29 @@ public function testGetUploadType() $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); } - public function testResultCode() - { - $client = $this->getClient(); - $request = new Google_Http_Request('http://www.example.com', 'POST'); - - // Test resumable upload - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); - $this->assertEquals(null, $media->getHttpResultCode()); - } - public function testProcess() { $client = $this->getClient(); $data = 'foo'; // Test data *only* uploads. - $request = new Google_Http_Request('http://www.example.com', 'POST'); + $request = new Request('POST', 'http://www.example.com'); $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); - $this->assertEquals($data, $request->getPostBody()); + $this->assertEquals($data, (string) $request->getBody()); // Test resumable (meta data) - we want to send the metadata, not the app data. - $request = new Google_Http_Request('http://www.example.com', 'POST'); + $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); - $request->setPostBody($reqData); + $request->setBody(Stream::factory($reqData)); $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, true); - $this->assertEquals(json_decode($reqData), $request->getPostBody()); + $this->assertEquals(json_decode($reqData), (string) $request->getBody()); // Test multipart - we are sending encoded meta data and post data - $request = new Google_Http_Request('http://www.example.com', 'POST'); + $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); - $request->setPostBody($reqData); + $request->setBody(Stream::factory($reqData)); $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); - $this->assertContains($reqData, $request->getPostBody()); - $this->assertContains(base64_encode($data), $request->getPostBody()); + $this->assertContains($reqData, (string) $request->getBody()); + $this->assertContains(base64_encode($data), (string) $request->getBody()); } } diff --git a/tests/general/ApiOAuth2Test.php b/tests/general/ApiOAuth2Test.php index 0a3a4cad1..3bdb2c32a 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/general/ApiOAuth2Test.php @@ -1,4 +1,7 @@ setApprovalPrompt('force'); $client->setRequestVisibleActions('http://foo'); - $req = new Google_Http_Request('http://localhost'); + $req = new Request('GET', 'http://localhost'); $req = $oauth->sign($req); $this->assertEquals('http://localhost?key=devKey', $req->getUrl()); @@ -51,7 +54,7 @@ public function testSign() ); $req = $oauth->sign($req); - $auth = $req->getRequestHeader('authorization'); + $auth = $req->getHeader('authorization'); $this->assertEquals('Bearer ACCESS_TOKEN', $auth); } @@ -63,26 +66,33 @@ public function testRevokeAccess() $token = ""; $client = $this->getClient(); - $response = $this->getMock("Google_Http_Request", array(), array('')); - $response->expects($this->any()) - ->method('getResponseHttpCode') - ->will($this->returnValue(200)); - $io = $this->getMock("Google_IO_Stream", array(), array($client)); - $io->expects($this->any()) - ->method('makeRequest') - ->will( - $this->returnCallback( - function ($request) use (&$token, $response) { - $elements = array(); - parse_str($request->getPostBody(), $elements); - $token = isset($elements['token']) ? $elements['token'] : null; - return $response; - } - ) - ); - $client->setIo($io); + + $postBody = $this->getMock('GuzzleHttp\Post\PostBodyInterface'); + $postBody->expects($this->exactly(3)) + ->method('replaceFields') + ->will($this->returnCallback( + function ($fields) use (&$token) { + $token = isset($fields['token']) ? $fields['token'] : null; + } + )); + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->exactly(3)) + ->method('getBody') + ->will($this->returnValue($postBody)); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->exactly(3)) + ->method('getStatusCode') + ->will($this->returnValue(200)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->exactly(3)) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->exactly(3)) + ->method('createRequest') + ->will($this->returnValue($request)); // Test with access token. + $client->setHttpClient($http); $oauth = new Google_Auth_OAuth2($client); $oauth->setAccessToken( json_encode( @@ -97,7 +107,6 @@ function ($request) use (&$token, $response) { $this->assertEquals($accessToken, $token); // Test with refresh token. - $oauth = new Google_Auth_OAuth2($client); $oauth->setAccessToken( json_encode( array( @@ -127,18 +136,20 @@ public function testCreateAuthUrl() $client->setDeveloperKey('devKey'); $client->setAccessType('offline'); $client->setApprovalPrompt('force'); + $client->setState('xyz'); $client->setRequestVisibleActions(array('http://foo')); $client->setLoginHint("bob@example.org"); $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" . "?response_type=code" - . "&redirect_uri=http%3A%2F%2Flocalhost" - . "&client_id=clientId1" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&access_type=offline" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&approval_prompt=force" - . "&login_hint=bob%40example.org"; + . "&login_hint=bob%40example.org" + . "&state=xyz" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost"; $this->assertEquals($expected, $authUrl); // Again with a blank login hint (should remove all traces from authUrl) @@ -150,14 +161,15 @@ public function testCreateAuthUrl() $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" . "?response_type=code" - . "&redirect_uri=http%3A%2F%2Flocalhost" - . "&client_id=clientId1" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&access_type=offline" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&prompt=select_account" . "&hd=example.com" . "&openid.realm=example.com" - . "&include_granted_scopes=true"; + . "&include_granted_scopes=true" + . "&state=xyz" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost"; $this->assertEquals($expected, $authUrl); } @@ -177,26 +189,21 @@ public function testValidateIdToken() $segments = explode(".", $token->id_token); $this->assertEquals(3, count($segments)); // Extract the client ID in this case as it wont be set on the test client. - $data = json_decode(Google_Utils::urlSafeB64Decode($segments[1])); + $data = json_decode(JWT::urlSafeB64Decode($segments[1])); $oauth = new Google_Auth_OAuth2($client); - $ticket = $oauth->verifyIdToken($token->id_token, $data->aud); - $this->assertInstanceOf( - "Google_Auth_LoginTicket", - $ticket - ); - $this->assertTrue(strlen($ticket->getUserId()) > 0); + $payload = $oauth->verifyIdToken($token->id_token, $data->aud); + $this->assertArrayHasKey('sub', $payload); + $this->assertTrue(strlen($payload['sub']) > 0); // TODO: Need to be smart about testing/disabling the // caching for this test to make sense. Not sure how to do that // at the moment. $client = $this->getClient(); - $client->setIo(new Google_IO_Stream($client)); - $data = json_decode(Google_Utils::urlSafeB64Decode($segments[1])); + $data = json_decode(JWT::urlSafeB64Decode($segments[1])); $oauth = new Google_Auth_OAuth2($client); - $this->assertInstanceOf( - "Google_Auth_LoginTicket", - $oauth->verifyIdToken($token->id_token, $data->aud) - ); + $payload = $oauth->verifyIdToken($token->id_token, $data->aud); + $this->assertArrayHasKey('sub', $payload); + $this->assertTrue(strlen($payload['sub']) > 0); } /** @@ -214,40 +221,28 @@ public function testRevokeWhenNoTokenExists() public function testRefreshTokenSetsValues() { $client = new Google_Client(); - $response_data = json_encode( - array( - 'access_token' => "ACCESS_TOKEN", - 'id_token' => "ID_TOKEN", - 'expires_in' => "12345", - ) - ); - $response = $this->getMock("Google_Http_Request", array(), array('')); - $response->expects($this->any()) - ->method('getResponseHttpCode') - ->will($this->returnValue(200)); - $response->expects($this->any()) - ->method('getResponseBody') - ->will($this->returnValue($response_data)); - $io = $this->getMock("Google_IO_Stream", array(), array($client)); - $io->expects($this->any()) - ->method('makeRequest') - ->will( - $this->returnCallback( - function ($request) use (&$token, $response) { - $elements = $request->getPostBody(); - PHPUnit_Framework_TestCase::assertEquals( - $elements['grant_type'], - "refresh_token" - ); - PHPUnit_Framework_TestCase::assertEquals( - $elements['refresh_token'], - "REFRESH_TOKEN" - ); - return $response; - } - ) - ); - $client->setIo($io); + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('json') + ->will($this->returnValue(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + ))); + $response->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($request)); + $client->setHttpClient($http); $oauth = new Google_Auth_OAuth2($client); $oauth->refreshToken("REFRESH_TOKEN"); $token = json_decode($oauth->getAccessToken(), true); diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php index 99b41b91a..d1e2d1398 100644 --- a/tests/general/AuthTest.php +++ b/tests/general/AuthTest.php @@ -1,4 +1,7 @@ signer = new Google_Signer_P12( - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), - "notasecret" - ); $this->pem = file_get_contents(__DIR__.'/'.self::PUBLIC_KEY_FILE, true); - $this->verifier = new Google_Verifier_Pem($this->pem); + $this->privateKey = file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true); } public function testDirectInject() @@ -63,68 +59,21 @@ public function testDirectInject() MHOXhXSKhtTe0Bqm/MssVvCmc8AraKwBMs0rkMadsA== -----END RSA PRIVATE KEY----- PK; - $sign = new Google_Signer_P12($privateKeyString, null); - } - - public function testCantOpenP12() - { - try { - new Google_Signer_P12( - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true), - "badpassword" - ); - $this->fail("Should have thrown"); - } catch (Google_Auth_Exception $e) { - $this->assertContains("mac verify failure", $e->getMessage()); - } - - try { - new Google_Signer_P12( - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) . "foo", - "badpassword" - ); - $this->fail("Should have thrown"); - } catch (Exception $e) { - $this->assertContains("Unable to parse", $e->getMessage()); - } - } - - public function testVerifySignature() - { - $binary_data = "\x00\x01\x02\x66\x6f\x6f"; - $signature = $this->signer->sign($binary_data); - $this->assertTrue($this->verifier->verify($binary_data, $signature)); - - $empty_string = ""; - $signature = $this->signer->sign($empty_string); - $this->assertTrue($this->verifier->verify($empty_string, $signature)); - - $text = "foobar"; - $signature = $this->signer->sign($text); - $this->assertTrue($this->verifier->verify($text, $signature)); - - $this->assertFalse($this->verifier->verify($empty_string, $signature)); } // Creates a signed JWT similar to the one created by google authentication. private function makeSignedJwt($payload) { - $header = array("typ" => "JWT", "alg" => "RS256"); - $segments = array(); - $segments[] = Google_Utils::urlSafeB64Encode(json_encode($header)); - $segments[] = Google_Utils::urlSafeB64Encode(json_encode($payload)); - $signing_input = implode(".", $segments); - - $signature = $this->signer->sign($signing_input); - $segments[] = Google_Utils::urlSafeB64Encode($signature); + $certs = array(); + openssl_pkcs12_read($this->privateKey, $certs, 'notasecret'); - return implode(".", $segments); + return JWT::encode($payload, $certs['pkey'], 'RS256'); } // Returns certificates similar to the ones used by google authentication. - private function getSignonCerts() + private function getSignonCert() { - return array("keyid" => $this->pem); + return openssl_x509_read($this->pem); } public function testVerifySignedJwtWithCerts() @@ -138,25 +87,24 @@ public function testVerifySignedJwtWithCerts() "exp" => time() + 3600 ) ); - $certs = $this->getSignonCerts(); + $cert = $this->getSignonCert(); $oauth2 = new Google_Auth_OAuth2($this->getClient()); - $ticket = $oauth2->verifySignedJwtWithCerts($id_token, $certs, "client_id"); - $this->assertEquals(self::USER_ID, $ticket->getUserId()); + $ticket = JWT::decode($id_token, $cert, array('RS256')); + $this->assertEquals(self::USER_ID, $ticket->sub); // Check that payload and envelope got filled in. - $attributes = $ticket->getAttributes(); - $this->assertEquals("JWT", $attributes["envelope"]["typ"]); - $this->assertEquals("client_id", $attributes["payload"]["aud"]); + $this->assertEquals("client_id", $ticket->aud); } // Checks that the id token fails to verify with the expected message. private function checkIdTokenFailure($id_token, $msg, $issuer = null) { - $certs = $this->getSignonCerts(); - $oauth2 = new Google_Auth_OAuth2($this->getClient()); + $cert = $this->getSignonCert(); try { - $oauth2->verifySignedJwtWithCerts($id_token, $certs, "client_id", $issuer); + $ticket = JWT::decode($id_token, $cert, array('RS256')); $this->fail("Should have thrown for $id_token"); - } catch (Google_Auth_Exception $e) { + } catch (\DomainException $e) { + $this->assertContains($msg, $e->getMessage()); + } catch (\UnexpectedValueException $e) { $this->assertContains($msg, $e->getMessage()); } } @@ -209,8 +157,8 @@ public function testVerifySignedJwtWithBadJwt() $this->checkIdTokenFailure("foo", "Wrong number of segments"); $this->checkIdTokenFailure("foo.bar", "Wrong number of segments"); $this->checkIdTokenFailure( - "foo.bar.baz", - "Can't parse token envelope: foo" + base64_encode("foo").".bar.baz", + "Syntax error, malformed JSON" ); } @@ -225,34 +173,8 @@ public function testVerifySignedJwtWithBadSignature() "exp" => time() + 3600 ) ); - $id_token = $id_token . "a"; - $this->checkIdTokenFailure($id_token, "Invalid token signature"); - } - - public function testVerifySignedJwtWithNoIssueTime() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "exp" => time() + 3600 - ) - ); - $this->checkIdTokenFailure($id_token, "No issue time"); - } - - public function testVerifySignedJwtWithNoExpirationTime() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time() - ) - ); - $this->checkIdTokenFailure($id_token, "No expiration time"); + $id_token = substr_replace($id_token, '000', -3); + $this->checkIdTokenFailure($id_token, "OpenSSL unable to verify data"); } public function testVerifySignedJwtWithTooEarly() @@ -266,7 +188,7 @@ public function testVerifySignedJwtWithTooEarly() "exp" => time() + 3600 ) ); - $this->checkIdTokenFailure($id_token, "Token used too early"); + $this->checkIdTokenFailure($id_token, "Cannot handle token prior"); } public function testVerifySignedJwtWithTooLate() @@ -280,35 +202,7 @@ public function testVerifySignedJwtWithTooLate() "exp" => time() - 1800 ) ); - $this->checkIdTokenFailure($id_token, "Token used too late"); - } - - public function testVerifySignedJwtWithLifetimeTooLong() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 * 25 - ) - ); - $this->checkIdTokenFailure($id_token, "Expiration time too far in future"); - } - - public function testVerifySignedJwtWithBadAudience() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "wrong_client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 - ) - ); - $this->checkIdTokenFailure($id_token, "Wrong recipient"); + $this->checkIdTokenFailure($id_token, "Expired token"); } public function testNoAuth() @@ -318,56 +212,10 @@ public function testNoAuth() $oldAuth = $this->getClient()->getAuth(); $this->getClient()->setAuth($noAuth); $this->getClient()->setDeveloperKey(null); - $req = new Google_Http_Request("http://example.com"); + $req = new Request('GET', 'http://example.com'); $resp = $noAuth->sign($req); - $this->assertEquals("http://example.com", $resp->getUrl()); + $this->assertEquals('http://example.com', $resp->getUrl()); $this->getClient()->setAuth($oldAuth); } - - public function testAssertionCredentials() - { - $assertion = new Google_Auth_AssertionCredentials( - 'name', - 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) - ); - - $token = explode(".", $assertion->generateAssertion()); - $this->assertEquals('{"typ":"JWT","alg":"RS256"}', base64_decode($token[0])); - - $jwt = json_decode(base64_decode($token[1]), true); - $this->assertEquals('https://accounts.google.com/o/oauth2/token', $jwt['aud']); - $this->assertEquals('scope', $jwt['scope']); - $this->assertEquals('name', $jwt['iss']); - - $key = $assertion->getCacheKey(); - $this->assertTrue($key != false); - $assertion = new Google_Auth_AssertionCredentials( - 'name2', - 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) - ); - $this->assertNotEquals($key, $assertion->getCacheKey()); - } - - public function testVerifySignedJWT() - { - $assertion = new Google_Auth_AssertionCredentials( - 'issuer', - 'scope', - file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true) - ); - $client = $this->getClient(); - - $this->assertInstanceOf( - 'Google_Auth_LoginTicket', - $client->verifySignedJwt( - $assertion->generateAssertion(), - __DIR__ . DIRECTORY_SEPARATOR . self::PUBLIC_KEY_FILE_JSON, - 'https://accounts.google.com/o/oauth2/token', - 'issuer' - ) - ); - } } diff --git a/tests/general/ComputeEngineAuthTest.php b/tests/general/ComputeEngineAuthTest.php index 5f198f9f0..dbd0ad504 100644 --- a/tests/general/ComputeEngineAuthTest.php +++ b/tests/general/ComputeEngineAuthTest.php @@ -18,12 +18,14 @@ * under the License. */ +use GuzzleHttp\Message\Request; + class ComputeEngineAuthTest extends BaseTest { public function testTokenAcquisition() { $client = new Google_Client(); - + /* Mock out refresh call */ $response_data = json_encode( array( @@ -31,24 +33,21 @@ public function testTokenAcquisition() 'expires_in' => "12345" ) ); - $response = $this->getMock("Google_Http_Request", array(), array('')); + $response = $this->getMock("GuzzleHttp\Message\ResponseInterface", array(), array('')); $response->expects($this->any()) - ->method('getResponseHttpCode') + ->method('getStatusCode') ->will($this->returnValue(200)); $response->expects($this->any()) - ->method('getResponseBody') + ->method('getBody') ->will($this->returnValue($response_data)); - $io = $this->getMock("Google_IO_Stream", array(), array($client)); - $client->setIo($io);$io->expects($this->any()) - ->method('makeRequest') - ->will( - $this->returnCallback( - function ($request) use ($response) { - return $response; - } - ) - ); - + $http = $this->getMockBuilder('GuzzleHttp\Client') + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $client->setHttpClient($http); + /* Run method */ $oauth = new Google_Auth_ComputeEngine($client); $oauth->acquireAccessToken(); @@ -64,7 +63,7 @@ public function testSign() { $client = new Google_Client(); $oauth = new Google_Auth_ComputeEngine($client); - + /* Load mock access token */ $oauth->setAccessToken( json_encode( @@ -76,9 +75,9 @@ public function testSign() ); /* Sign a URL and verify auth header is correctly set */ - $req = new Google_Http_Request('http://localhost'); + $req = new Request('GET', 'http://localhost'); $req = $oauth->sign($req); - $auth = $req->getRequestHeader('authorization'); + $auth = $req->getHeader('authorization'); $this->assertEquals('Bearer ACCESS_TOKEN', $auth); } } diff --git a/tests/general/Http/BatchTest.php b/tests/general/Http/BatchTest.php deleted file mode 100644 index 64a5d65fc..000000000 --- a/tests/general/Http/BatchTest.php +++ /dev/null @@ -1,121 +0,0 @@ -client = $this->getMockBuilder("Google_Client") - ->disableOriginalConstructor() - ->getMock(); - } - - public function testBasicFunctionality() - { - $this->client->expects($this->once()) - ->method("getBasePath") - ->will($this->returnValue("base_path")); - $batch = new Google_Http_Batch($this->client); - $this->assertAttributeEquals("base_path", "root_url", $batch); - $this->assertAttributeEquals("batch", "batch_path", $batch); - } - - public function testExtractionOfRootUrlFromService() - { - $this->client->expects($this->never()) - ->method("getBasePath"); - $service = new Google_Service($this->client); - $service->rootUrl = "root_url_dummy"; - $service->batchPath = "batch_path_dummy"; - $batch = $service->createBatch(); - $this->assertInstanceOf("Google_Http_Batch", $batch); - $this->assertAttributeEquals("root_url_dummy", "root_url", $batch); - $this->assertAttributeEquals("batch_path_dummy", "batch_path", $batch); - } - - public function testExecuteCustomRootUrlBatchPath() - { - $io = $this->getMockBuilder('Google_IO_Abstract') - ->disableOriginalConstructor() - ->setMethods(array('makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout')) - ->getMock(); - $req = null; - $io->expects($this->once()) - ->method("makeRequest") - ->will($this->returnCallback(function($request) use (&$req) { - $req = $request; - return $request; - })); - $this->client->expects($this->once()) - ->method("getIo") - ->will($this->returnValue($io)); - $batch = new Google_Http_Batch($this->client, false, 'https://www.example.com/', 'bat'); - $this->assertNull($batch->execute()); - $this->assertInstanceOf("Google_Http_Request", $req); - $this->assertEquals("https://www.example.com/bat", $req->getUrl()); - } - - public function testExecuteBodySerialization() - { - $io = $this->getMockBuilder('Google_IO_Abstract') - ->disableOriginalConstructor() - ->setMethods(array('makeRequest', 'needsQuirk', 'executeRequest', 'setOptions', 'setTimeout', 'getTimeout')) - ->getMock(); - $req = null; - $io->expects($this->once()) - ->method("makeRequest") - ->will($this->returnCallback(function($request) use (&$req) { - $req = $request; - return $request; - })); - $this->client->expects($this->once()) - ->method("getIo") - ->will($this->returnValue($io)); - $batch = new Google_Http_Batch($this->client, "BOUNDARY_TEXT", 'https://www.example.com/', 'bat'); - $req1 = new Google_Http_Request("https://www.example.com/req1"); - $req2 = new Google_Http_Request("https://www.example.com/req2", 'POST', array(), 'POSTBODY'); - $batch->add($req1, '1'); - $batch->add($req2, '2'); - $this->assertNull($batch->execute()); - $this->assertInstanceOf("Google_Http_Request", $req); - $format = <<<'EOF' ---BOUNDARY_TEXT -Content-Type: application/http -Content-Transfer-Encoding: binary -MIME-Version: 1.0 -Content-ID: 1 - -GET /req1? HTTP/1.1 - - ---BOUNDARY_TEXT -Content-Type: application/http -Content-Transfer-Encoding: binary -MIME-Version: 1.0 -Content-ID: 2 - -POST /req2? HTTP/1.1 - -POSTBODY - ---BOUNDARY_TEXT-- -EOF; - $this->assertEquals($format, $req->getPostBody()); - } - -} \ No newline at end of file diff --git a/tests/general/Http/RequestTest.php b/tests/general/Http/RequestTest.php deleted file mode 100644 index 4e8cb2ad7..000000000 --- a/tests/general/Http/RequestTest.php +++ /dev/null @@ -1,41 +0,0 @@ -assertEquals("https://api.example.com", $request->getBaseComponent()); - } - - public function testBaseComponentExplicitStripsSlashes() - { - $request = new Google_Http_Request("https://api.example.com/base"); - $request->setBaseComponent("https://other.example.com/"); - $this->assertEquals("https://other.example.com", $request->getBaseComponent()); - } - - public function testBaseComponentWithPathExplicitStripsSlashes() - { - $request = new Google_Http_Request("https://api.example.com/base"); - $request->setBaseComponent("https://other.example.com/path/"); - $this->assertEquals("https://other.example.com/path", $request->getBaseComponent()); - } - -} diff --git a/tests/general/IoTest.php b/tests/general/IoTest.php deleted file mode 100644 index 2097cb490..000000000 --- a/tests/general/IoTest.php +++ /dev/null @@ -1,381 +0,0 @@ -getClient(); - $this->assertInstanceOf($default, $client->getIo()); - $config = new Google_Config(); - $config->setIoClass('Google_IO_Stream'); - $client = new Google_Client($config); - $this->assertInstanceOf('Google_IO_Stream', $client->getIo()); - } - - public function testStreamSetTimeout() - { - $io = new Google_IO_Stream($this->getClient()); - $this->timeoutChecker($io); - } - - public function testStreamParseHttpResponseBody() - { - $io = new Google_IO_Stream($this->getClient()); - $this->responseChecker($io); - } - - public function testStreamProcessEntityRequest() - { - $client = $this->getClient(); - $io = new Google_IO_Stream($client); - $this->processEntityRequest($io); - } - - public function testStreamCacheHit() - { - $client = $this->getClient(); - $io = new Google_IO_Stream($client); - $this->cacheHit($io); - } - - public function testStreamAuthCache() - { - $client = $this->getClient(); - $io = new Google_IO_Stream($client); - $this->authCache($io); - } - - /** - * @expectedException Google_IO_Exception - */ - public function testStreamInvalidRequest() - { - $io = new Google_IO_Stream($this->getClient()); - $this->invalidRequest($io); - } - - public function testCurlSetTimeout() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $io = new Google_IO_Curl($this->getClient()); - $this->timeoutChecker($io); - } - - public function testCurlParseHttpResponseBody() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $io = new Google_IO_Curl($this->getClient()); - $this->responseChecker($io); - } - - public function testCurlProcessEntityRequest() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $client = $this->getClient(); - $io = new Google_IO_Curl($client); - $this->processEntityRequest($io); - } - - public function testCurlCacheHit() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $client = $this->getClient(); - $io = new Google_IO_Curl($client); - $this->cacheHit($io); - } - - public function testCurlAuthCache() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $client = $this->getClient(); - $io = new Google_IO_Curl($client); - $this->authCache($io); - } - - /** - * @expectedException Google_IO_Exception - */ - public function testCurlInvalidRequest() - { - if (!function_exists('curl_version')) { - $this->markTestSkipped('cURL not present'); - } - $io = new Google_IO_Curl($this->getClient()); - $this->invalidRequest($io); - } - - public function testCacheRevalidate() - { - $client = $this->getClient(); - - $req = new Google_Http_Request('/test', 'GET'); - $req->setRequestHeaders(array('Accept' => '*/*')); - $req->setResponseBody('{"a": "foo"}'); - $req->setResponseHttpCode(200); - $req->setResponseHeaders( - array( - 'cache-control' => 'private', - 'etag' => '"this-is-an-etag"', - 'expires' => '-1', - 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', - 'content-type' => 'application/json; charset=UTF-8', - ) - ); - - $io = $this->getMockBuilder('Google_IO_Abstract') - ->setConstructorArgs(array($client)) - ->setMethods( - array( - 'getCachedRequest', - 'checkMustRevalidateCachedRequest' - ) - ) - ->getMockForAbstractClass(); - - $io->expects($this->once()) - ->method('getCachedRequest') - ->will($this->returnValue($req)); - - $io->expects($this->once()) - ->method('checkMustRevalidateCachedRequest') - ->will($this->returnValue(true)); - - $io->expects($this->once()) - ->method('executeRequest') - ->will( - $this->returnValue( - array( - '{"a": "foo"}', - array( - 'te' => 'gzip', - 'connection' => 'Keep-Alive, Foo, Bar', - 'foo' => '123', - 'keep-alive' => 'timeout=30', - 'cache-control' => 'private', - 'eTag' => '"this-is-a-new-etag"', - "expires" => 'Sun, 22 Jan 2022 09:00:56 GMT', - 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', - 'content-type' => 'application/json; charset=UTF-8', - ), - 304 - ) - ) - ); - - $res = $io->makeRequest(new Google_Http_Request('/test', 'GET')); - - $this->assertEquals('{"a": "foo"}', $res->getResponseBody()); - $this->assertEquals(200, $res->getResponseHttpCode()); - $this->assertEquals( - array( - 'cache-control' => 'private', - 'etag' => '"this-is-a-new-etag"', - "expires" => 'Sun, 22 Jan 2022 09:00:56 GMT', - 'date' => 'Sun, 1 Jan 2012 09:00:56 GMT', - 'content-type' => 'application/json; charset=UTF-8', - ), - $res->getResponseHeaders() - ); - } - - // Asserting Functions - - public function timeoutChecker($io) - { - $this->assertEquals(100, $io->getTimeout()); - $io->setTimeout(120); - $this->assertEquals(120, $io->getTimeout()); - } - - public function invalidRequest($io) - { - $url = "http://localhost:1"; - $req = new Google_Http_Request($url, "GET"); - $io->makeRequest($req); - } - - public function cacheHit($io) - { - $url = "http://www.googleapis.com"; - // Create a cacheable request/response. - // Should not be revalidated. - $cacheReq = new Google_Http_Request($url, "GET"); - $cacheReq->setRequestHeaders( - array("Accept" => "*/*",) - ); - $cacheReq->setResponseBody("{\"a\": \"foo\"}"); - $cacheReq->setResponseHttpCode(200); - $cacheReq->setResponseHeaders( - array( - "Cache-Control" => "private", - "ETag" => "\"this-is-an-etag\"", - "Expires" => "Sun, 22 Jan 2022 09:00:56 GMT", - "Date" => "Sun, 1 Jan 2012 09:00:56 GMT", - "Content-Type" => "application/json; charset=UTF-8", - ) - ); - - // Populate the cache. - $io->setCachedRequest($cacheReq); - - // Execute the same mock request, and expect a cache hit. - $res = $io->makeRequest(new Google_Http_Request($url, "GET")); - $this->assertEquals("{\"a\": \"foo\"}", $res->getResponseBody()); - $this->assertEquals(200, $res->getResponseHttpCode()); - } - - public function authCache($io) - { - $url = "http://www.googleapis.com/protected/resource"; - - // Create a cacheable request/response, but it should not be cached. - $cacheReq = new Google_Http_Request($url, "GET"); - $cacheReq->setRequestHeaders( - array( - "Accept" => "*/*", - "Authorization" => "Bearer Foo" - ) - ); - $cacheReq->setResponseBody("{\"a\": \"foo\"}"); - $cacheReq->setResponseHttpCode(200); - $cacheReq->setResponseHeaders( - array( - "Cache-Control" => "private", - "ETag" => "\"this-is-an-etag\"", - "Expires" => "Sun, 22 Jan 2022 09:00:56 GMT", - "Date: Sun, 1 Jan 2012 09:00:56 GMT", - "Content-Type" => "application/json; charset=UTF-8", - ) - ); - - $result = $io->setCachedRequest($cacheReq); - $this->assertFalse($result); - } - - public function responseChecker($io) - { - $hasQuirk = false; - if (function_exists('curl_version')) { - $curlVer = curl_version(); - $hasQuirk = $curlVer['version_number'] < Google_IO_Curl::NO_QUIRK_VERSION; - } - - $rawHeaders = "HTTP/1.1 200 OK\r\n" - . "Expires: Sun, 22 Jan 2012 09:00:56 GMT\r\n" - . "Date: Sun, 22 Jan 2012 09:00:56 GMT\r\n" - . "Content-Type: application/json; charset=UTF-8\r\n"; - $size = strlen($rawHeaders); - $rawBody = "{}"; - - $rawResponse = "$rawHeaders\r\n$rawBody"; - list($headers, $body) = $io->parseHttpResponse($rawResponse, $size); - $this->assertEquals(3, sizeof($headers)); - $this->assertEquals(array(), json_decode($body, true)); - - // Test empty bodies. - $rawResponse = $rawHeaders . "\r\n"; - list($headers, $body) = $io->parseHttpResponse($rawResponse, $size); - $this->assertEquals(3, sizeof($headers)); - $this->assertEquals(null, json_decode($body, true)); - - // Test no content. - $rawerHeaders = "HTTP/1.1 204 No Content\r\n" - . "Date: Fri, 19 Sep 2014 15:52:14 GMT"; - list($headers, $body) = $io->parseHttpResponse($rawerHeaders, 0); - $this->assertEquals(1, sizeof($headers)); - $this->assertEquals(null, json_decode($body, true)); - - // Test transforms from proxies. - $connection_established_headers = array( - "HTTP/1.0 200 Connection established\r\n\r\n", - "HTTP/1.1 200 Connection established\r\n\r\n", - ); - foreach ($connection_established_headers as $established_header) { - $rawHeaders = "{$established_header}HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n"; - $headersSize = strlen($rawHeaders); - // If we have a broken cURL version we have to simulate it to get the - // correct test result. - if ($hasQuirk && get_class($io) === 'Google_IO_Curl') { - $headersSize -= strlen($established_header); - } - $rawBody = "{}"; - - $rawResponse = "$rawHeaders\r\n$rawBody"; - list($headers, $body) = $io->parseHttpResponse($rawResponse, $headersSize); - $this->assertEquals(1, sizeof($headers)); - $this->assertEquals(array(), json_decode($body, true)); - } - } - - public function processEntityRequest($io) - { - $req = new Google_Http_Request("http://localhost.com"); - $req->setRequestMethod("POST"); - - // Verify that the content-length is calculated. - $req->setPostBody("{}"); - $io->processEntityRequest($req); - $this->assertEquals(2, $req->getRequestHeader("content-length")); - - // Test an empty post body. - $req->setPostBody(""); - $io->processEntityRequest($req); - $this->assertEquals(0, $req->getRequestHeader("content-length")); - - // Test a null post body. - $req->setPostBody(null); - $io->processEntityRequest($req); - $this->assertEquals(0, $req->getRequestHeader("content-length")); - - // Set an array in the postbody, and verify that it is url-encoded. - $req->setPostBody(array("a" => "1", "b" => 2)); - $io->processEntityRequest($req); - $this->assertEquals(7, $req->getRequestHeader("content-length")); - $this->assertEquals( - Google_IO_Abstract::FORM_URLENCODED, - $req->getRequestHeader("content-type") - ); - $this->assertEquals("a=1&b=2", $req->getPostBody()); - - // Verify that the content-type isn't reset. - $payload = array("a" => "1", "b" => 2); - $req->setPostBody($payload); - $req->setRequestHeaders(array("content-type" => "multipart/form-data")); - $io->processEntityRequest($req); - $this->assertEquals( - "multipart/form-data", - $req->getRequestHeader("content-type") - ); - $this->assertEquals($payload, $req->getPostBody()); - } -} diff --git a/tests/general/RequestTest.php b/tests/general/RequestTest.php deleted file mode 100644 index 68476cdb1..000000000 --- a/tests/general/RequestTest.php +++ /dev/null @@ -1,71 +0,0 @@ -setExpectedClass("Google_Client"); - $this->assertEquals(2, count($request->getQueryParams())); - $request->setQueryParam("hi", "there"); - $this->assertEquals($url2, $request->getUrl()); - $this->assertEquals("Google_Client", $request->getExpectedClass()); - - $urlPath = "/foo/bar"; - $request = new Google_Http_Request($urlPath); - $this->assertEquals($urlPath, $request->getUrl()); - $request->setBaseComponent("http://example.com"); - $this->assertEquals("http://example.com" . $urlPath, $request->getUrl()); - - $url3a = 'http://localhost:8080/foo/bar'; - $url3b = 'foo=a&foo=b&wowee=oh+my'; - $url3c = 'foo=a&foo=b&wowee=oh+my&hi=there'; - $request = new Google_Http_Request($url3a."?".$url3b, "POST"); - $request->setQueryParam("hi", "there"); - $request->maybeMoveParametersToBody(); - $this->assertEquals($url3a, $request->getUrl()); - $this->assertEquals($url3c, $request->getPostBody()); - - $url4 = 'http://localhost:8080/upload/foo/bar?foo=a&foo=b&wowee=oh+my&hi=there'; - $request = new Google_Http_Request($url); - $this->assertEquals(2, count($request->getQueryParams())); - $request->setQueryParam("hi", "there"); - $base = $request->getBaseComponent(); - $request->setBaseComponent($base . '/upload'); - $this->assertEquals($url4, $request->getUrl()); - } - - public function testGzipSupport() - { - $url = 'http://localhost:8080/foo/bar?foo=a&foo=b&wowee=oh+my'; - $request = new Google_Http_Request($url); - $request->enableGzip(); - $this->assertStringEndsWith(Google_Http_Request::GZIP_UA, $request->getUserAgent()); - $this->assertArrayHasKey('accept-encoding', $request->getRequestHeaders()); - $this->assertTrue($request->canGzip()); - $request->disableGzip(); - $this->assertStringEndsNotWith(Google_Http_Request::GZIP_UA, $request->getUserAgent()); - $this->assertArrayNotHasKey('accept-encoding', $request->getRequestHeaders()); - $this->assertFalse($request->canGzip()); - } -} diff --git a/tests/general/ResourceTest.php b/tests/general/ResourceTest.php index b521fdf33..6851625ff 100644 --- a/tests/general/ResourceTest.php +++ b/tests/general/ResourceTest.php @@ -63,12 +63,14 @@ public function setUp() $this->client->expects($this->any()) ->method("shouldDefer") ->will($this->returnValue(true)); - $this->client->expects($this->any()) - ->method("getBasePath") - ->will($this->returnValue("https://test.example.com")); $this->client->expects($this->any()) ->method("getAuth") ->will($this->returnValue(new Google_Auth_Simple($this->client))); + $this->client->expects($this->any()) + ->method("getHttpClient") + ->will($this->returnValue(new GuzzleHttp\Client([ + 'base_url' => 'https://test.example.com' + ]))); $this->service = new Test_Google_Service($this->client); } @@ -77,8 +79,8 @@ public function testCallFailure() $resource = new Google_Service_Resource( $this->service, "test", - "testResource", - array("methods" => + "testResource", + array("methods" => array( "testMethod" => array( "parameters" => array(), @@ -89,7 +91,7 @@ public function testCallFailure() ) ); $this->setExpectedException( - "Google_Exception", + "Google_Exception", "Unknown function: test->testResource->someothermethod()" ); $resource->call("someothermethod", array()); @@ -101,7 +103,7 @@ public function testCallSimple() $this->service, "test", "testResource", - array("methods" => + array("methods" => array( "testMethod" => array( "parameters" => array(), @@ -113,7 +115,7 @@ public function testCallSimple() ); $request = $resource->call("testMethod", array(array())); $this->assertEquals("https://test.example.com/method/path?key=testKey", $request->getUrl()); - $this->assertEquals("POST", $request->getRequestMethod()); + $this->assertEquals("POST", $request->getMethod()); } public function testCallServiceDefinedRoot() @@ -123,7 +125,7 @@ public function testCallServiceDefinedRoot() $this->service, "test", "testResource", - array("methods" => + array("methods" => array( "testMethod" => array( "parameters" => array(), @@ -135,6 +137,50 @@ public function testCallServiceDefinedRoot() ); $request = $resource->call("testMethod", array(array())); $this->assertEquals("https://sample.example.com/method/path?key=testKey", $request->getUrl()); - $this->assertEquals("POST", $request->getRequestMethod()); + $this->assertEquals("POST", $request->getMethod()); + } + + public function testCreateRequestUri() + { + $restPath = "/plus/{u}"; + $service = new Google_Service($this->client); + $service->servicePath = "http://localhost"; + $resource = new Google_Service_Resource($service, 'test', 'testResource', array()); + + // Test Path + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'path'; + $params['u']['value'] = 'me'; + $value = $resource->createRequestUri($restPath, $params); + $this->assertEquals("http://localhost/plus/me", $value); + + // Test Query + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'query'; + $params['u']['value'] = 'me'; + $value = $resource->createRequestUri('/plus', $params); + $this->assertEquals("http://localhost/plus?u=me", $value); + + // Test Booleans + $params = array(); + $params['u']['type'] = 'boolean'; + $params['u']['location'] = 'path'; + $params['u']['value'] = '1'; + $value = $resource->createRequestUri($restPath, $params); + $this->assertEquals("http://localhost/plus/true", $value); + + $params['u']['location'] = 'query'; + $value = $resource->createRequestUri('/plus', $params); + $this->assertEquals("http://localhost/plus?u=true", $value); + + // Test encoding + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'query'; + $params['u']['value'] = '@me/'; + $value = $resource->createRequestUri('/plus', $params); + $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } } diff --git a/tests/general/RestTest.php b/tests/general/RestTest.php index caed12953..bf80899a0 100644 --- a/tests/general/RestTest.php +++ b/tests/general/RestTest.php @@ -15,6 +15,9 @@ * limitations under the License. */ +use GuzzleHttp\Message\Response; +use GuzzleHttp\Stream\Stream; + class RestTest extends BaseTest { /** @@ -29,100 +32,43 @@ public function setUp() public function testDecodeResponse() { - $url = 'http://localhost'; $client = $this->getClient(); - $response = new Google_Http_Request($url); - $response->setResponseHttpCode(204); - $decoded = $this->rest->decodeHttpResponse($response, $client); + $response = new Response(204); + $decoded = $this->rest->decodeHttpResponse($response); $this->assertEquals(null, $decoded); - foreach (array(200, 201) as $code) { $headers = array('foo', 'bar'); - $response = new Google_Http_Request($url, 'GET', $headers); - $response->setResponseBody('{"a": 1}'); + $stream = Stream::factory('{"a": 1}'); + $response = new Response($code, $headers, $stream); - $response->setResponseHttpCode($code); - $decoded = $this->rest->decodeHttpResponse($response, $client); + $decoded = $this->rest->decodeHttpResponse($response); $this->assertEquals(array("a" => 1), $decoded); } + } - $response = new Google_Http_Request($url); - $response->setResponseHttpCode(500); - - $error = ""; - try { - $this->rest->decodeHttpResponse($response, $client); - } catch (Exception $e) { - $error = $e->getMessage(); - - } - $this->assertEquals(trim($error), "Error calling GET http://localhost: (500)"); + /** @expectedException Google_Service_Exception */ + public function testDecode500ResponseThrowsException() + { + $response = new Response(500); + $this->rest->decodeHttpResponse($response); } public function testDecodeEmptyResponse() { - $url = 'http://localhost'; - - $response = new Google_Http_Request($url, 'GET', array()); - $response->setResponseBody('{}'); - - $response->setResponseHttpCode(200); + $stream = Stream::factory('{}'); + $response = new Response(200, array(), $stream); $decoded = $this->rest->decodeHttpResponse($response); $this->assertEquals(array(), $decoded); } - public function testCreateRequestUri() - { - $basePath = "http://localhost"; - $restPath = "/plus/{u}"; - - // Test Path - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'path'; - $params['u']['value'] = 'me'; - $value = $this->rest->createRequestUri($basePath, $restPath, $params); - $this->assertEquals("http://localhost/plus/me", $value); - - // Test Query - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'query'; - $params['u']['value'] = 'me'; - $value = $this->rest->createRequestUri($basePath, '/plus', $params); - $this->assertEquals("http://localhost/plus?u=me", $value); - - // Test Booleans - $params = array(); - $params['u']['type'] = 'boolean'; - $params['u']['location'] = 'path'; - $params['u']['value'] = '1'; - $value = $this->rest->createRequestUri($basePath, $restPath, $params); - $this->assertEquals("http://localhost/plus/true", $value); - - $params['u']['location'] = 'query'; - $value = $this->rest->createRequestUri($basePath, '/plus', $params); - $this->assertEquals("http://localhost/plus?u=true", $value); - - // Test encoding - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'query'; - $params['u']['value'] = '@me/'; - $value = $this->rest->createRequestUri($basePath, '/plus', $params); - $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); - } - /** * @expectedException Google_Service_Exception */ public function testBadErrorFormatting() { - $request = new Google_Http_Request("/a/b"); - $request->setResponseHttpCode(500); - $request->setResponseBody( + $stream = Stream::factory( '{ "error": { "code": 500, @@ -130,7 +76,8 @@ public function testBadErrorFormatting() } }' ); - Google_Http_Rest::decodeHttpResponse($request); + $response = new Response(500, array(), $stream); + $this->rest->decodeHttpResponse($response); } /** @@ -138,9 +85,7 @@ public function testBadErrorFormatting() */ public function tesProperErrorFormatting() { - $request = new Google_Http_Request("/a/b"); - $request->setResponseHttpCode(401); - $request->setResponseBody( + $stream = Stream::factory( '{ error: { errors: [ @@ -156,6 +101,7 @@ public function tesProperErrorFormatting() "message": "Invalid Credentials" }' ); - Google_Http_Rest::decodeHttpResponse($request); + $response = new Response(401, array(), $stream); + $this->rest->decodeHttpResponse($response); } } diff --git a/tests/general/TaskTest.php b/tests/general/TaskTest.php index 4aca13897..eb57ab4d2 100644 --- a/tests/general/TaskTest.php +++ b/tests/general/TaskTest.php @@ -15,6 +15,10 @@ * limitations under the License. */ +use GuzzleHttp\Message\Request; +use GuzzleHttp\Message\Response; +use GuzzleHttp\Stream\Stream; + class TaskTest extends PHPUnit_Framework_TestCase { private $client; @@ -153,7 +157,7 @@ public function testRestTimeouts($config, $minTime) /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') { @@ -163,7 +167,7 @@ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') { @@ -174,7 +178,7 @@ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testMultipleCurlRetriesWithErrors( $errorCode, @@ -217,14 +221,14 @@ public function testMultipleCurlRetriesWithSuccess( /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testCustomCurlRetryMapReplacesDefaults( $errorCode, $errorMessage = '' ) { $this->client->setClassConfig( - 'Google_IO_Exception', + 'Google_Service_Exception', array('retry_map' => array()) ); @@ -238,7 +242,7 @@ public function testCustomCurlRetryMapReplacesDefaults( public function testCustomCurlRetryMapAddsNewHandlers() { $this->client->setClassConfig( - 'Google_IO_Exception', + 'Google_Service_Exception', array('retry_map' => array( CURLE_COULDNT_RESOLVE_PROXY => Google_Config::TASK_RETRY_ALWAYS )) @@ -254,13 +258,13 @@ public function testCustomCurlRetryMapAddsNewHandlers() /** * @requires extension curl - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception * @dataProvider customLimitsProvider */ public function testCustomCurlRetryMapWithCustomLimits($limit) { $this->client->setClassConfig( - 'Google_IO_Exception', + 'Google_Service_Exception', array('retry_map' => array( CURLE_COULDNT_RESOLVE_PROXY => $limit )) @@ -297,7 +301,7 @@ public function testBadTaskConfig($config, $message) $this->setTaskConfig($config); new Google_Task_Runner( - $this->client, + $this->client->getClassConfig('Google_Task_Runner'), '', array($this, 'testBadTaskConfig') ); @@ -309,11 +313,12 @@ public function testBadTaskConfig($config, $message) */ public function testBadTaskCallback() { - new Google_Task_Runner($this->client, '', 5); + $config = $this->client->getClassConfig('Google_Task_Runner'); + new Google_Task_Runner($config, '', 5); } /** - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testTaskRetryOffByDefault() { @@ -322,7 +327,7 @@ public function testTaskRetryOffByDefault() } /** - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testOneTaskRetryWithError() { @@ -332,7 +337,7 @@ public function testOneTaskRetryWithError() } /** - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception */ public function testMultipleTaskRetriesWithErrors() { @@ -362,7 +367,7 @@ public function testMultipleTaskRetriesWithSuccess() } /** - * @expectedException Google_IO_Exception + * @expectedException Google_Service_Exception * @dataProvider customLimitsProvider */ public function testTaskRetryWithCustomLimits($limit) @@ -392,9 +397,10 @@ public function testTaskWithManualRetries() { $this->setTaskConfig(array('retries' => 2)); $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS); + $config = $this->client->getClassConfig('Google_Task_Runner'); $task = new Google_Task_Runner( - $this->client, + $config, '', array($this, 'runNextTask') ); @@ -610,11 +616,12 @@ private function setNextResponsesThrow($count, $message, $code) */ private function setNextResponseThrows($message, $code) { - $map = $this->client->getClassConfig('Google_IO_Exception', 'retry_map'); - $this->mockedCalls[$this->mockedCallsCount++] = new Google_IO_Exception( + $map = $this->client->getClassConfig('Google_Service_Exception', 'retry_map'); + $this->mockedCalls[$this->mockedCallsCount++] = new Google_Service_Exception( $message, $code, null, + array(), $map ); @@ -628,20 +635,17 @@ private function setNextResponseThrows($message, $code) */ private function makeRequest() { - $request = new Google_Http_Request('/test'); - - $io = $this->getMockBuilder('Google_IO_Abstract') - ->disableOriginalConstructor() - ->setMethods(array('makeRequest')) - ->getMockForAbstractClass(); + $request = new Request('GET', '/test'); + $http = $this->getMock('GuzzleHttp\ClientInterface'); - $io->expects($this->exactly($this->mockedCallsCount)) - ->method('makeRequest') + $http->expects($this->exactly($this->mockedCallsCount)) + ->method('send') ->will($this->returnCallback(array($this, 'getNextMockedCall'))); - $this->client->setIo($io); + $config = $this->client->getClassConfig('Google_Task_Runner'); + $retryMap = $this->client->getClassConfig('Google_Service_Exception', 'retry_map'); - return Google_Http_REST::execute($this->client, $request); + return Google_Http_REST::execute($http, $request, $config, $retryMap); } /** @@ -659,11 +663,10 @@ public function getNextMockedCall($request) throw $current; } - $request->setResponseHttpCode($current['code']); - $request->setResponseHeaders($current['headers']); - $request->setResponseBody($current['body']); + $stream = Stream::factory($current['body']); + $response = new Response($current['code'], $current['headers'], $stream); - return $request; + return $response; } /** @@ -716,13 +719,14 @@ private function setNextTasksAllowedRetries($count, $allowedRetries) */ private function runTask() { + $config = $this->client->getClassConfig('Google_Task_Runner'); $task = new Google_Task_Runner( - $this->client, + $config, '', array($this, 'runNextTask') ); - $exception = $this->getMockBuilder('Google_IO_Exception') + $exception = $this->getMockBuilder('Google_Service_Exception') ->disableOriginalConstructor() ->setMethods(array('allowedRetries')) ->getMock(); From a1abf73947ff1309070a07697108116b8bf0facd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 15 Sep 2015 13:09:43 -0700 Subject: [PATCH 0904/1274] test refactoring * test files/classes match class names * removes tests/general/AuthTest.php because it tested firebase-jwt library, and not this library. * removes tests/testdata/*.pem, tests/testdata/*.p12, and tests/testdata/*.json as they are no longer used. --- .gitignore | 1 + phpunit.xml.dist | 28 +-- tests/BaseTest.php | 5 +- .../Auth/ComputeEngineTest.php} | 2 +- .../Auth/OAuth2Test.php} | 2 +- tests/{general => Google}/CacheTest.php | 2 +- .../ClientTest.php} | 17 +- .../Http/BatchTest.php} | 2 +- .../Http/MediaFuleUploadTest.php} | 2 +- .../RestTest.php => Google/Http/RESTTest.php} | 2 +- tests/{general => Google}/LoggerTest.php | 2 +- .../ApiModelTest.php => Google/ModelTest.php} | 2 +- .../Service}/AdSenseTest.php | 2 +- .../Service/PagespeedonlineTest.php} | 2 +- tests/{plus => Google/Service}/PlusTest.php | 2 +- .../Service}/ResourceTest.php | 2 +- tests/{tasks => Google/Service}/TasksTest.php | 2 +- .../Service/UrlshortenerTest.php} | 22 +- .../Service}/YouTubeTest.php | 2 +- tests/{general => Google}/ServiceTest.php | 2 +- .../Task/RunnerTest.php} | 2 +- .../Utils/URITemplateTest} | 2 +- tests/{general/testdata => config}/test.ini | 0 tests/general/AuthTest.php | 221 ------------------ tests/general/testdata/cacert.json | 1 - tests/general/testdata/cacert.pem | 17 -- tests/general/testdata/cert.p12 | Bin 2196 -> 0 bytes tests/general/testdata/privkey.pem | 9 - tests/general/testdata/service-12345.json | 7 - tests/general/testdata/service-rsa-12345.json | 7 - tests/general/testdata/test_public_key.pem | 20 -- 31 files changed, 51 insertions(+), 338 deletions(-) rename tests/{general/ComputeEngineAuthTest.php => Google/Auth/ComputeEngineTest.php} (98%) rename tests/{general/ApiOAuth2Test.php => Google/Auth/OAuth2Test.php} (99%) rename tests/{general => Google}/CacheTest.php (98%) rename tests/{general/ApiClientTest.php => Google/ClientTest.php} (93%) rename tests/{general/ApiBatchRequestTest.php => Google/Http/BatchTest.php} (98%) rename tests/{general/ApiMediaFileUploadTest.php => Google/Http/MediaFuleUploadTest.php} (98%) rename tests/{general/RestTest.php => Google/Http/RESTTest.php} (98%) rename tests/{general => Google}/LoggerTest.php (99%) rename tests/{general/ApiModelTest.php => Google/ModelTest.php} (99%) rename tests/{adsense => Google/Service}/AdSenseTest.php (99%) rename tests/{pagespeed/PageSpeedTest.php => Google/Service/PagespeedonlineTest.php} (95%) rename tests/{plus => Google/Service}/PlusTest.php (97%) rename tests/{general => Google/Service}/ResourceTest.php (98%) rename tests/{tasks => Google/Service}/TasksTest.php (98%) rename tests/{urlshortener/UrlShortenerTests.php => Google/Service/UrlshortenerTest.php} (73%) rename tests/{youtube => Google/Service}/YouTubeTest.php (98%) rename tests/{general => Google}/ServiceTest.php (98%) rename tests/{general/TaskTest.php => Google/Task/RunnerTest.php} (99%) rename tests/{general/URITemplateTest.php => Google/Utils/URITemplateTest} (99%) rename tests/{general/testdata => config}/test.ini (100%) delete mode 100644 tests/general/AuthTest.php delete mode 100644 tests/general/testdata/cacert.json delete mode 100644 tests/general/testdata/cacert.pem delete mode 100644 tests/general/testdata/cert.p12 delete mode 100644 tests/general/testdata/privkey.pem delete mode 100644 tests/general/testdata/service-12345.json delete mode 100644 tests/general/testdata/service-rsa-12345.json delete mode 100644 tests/general/testdata/test_public_key.pem diff --git a/.gitignore b/.gitignore index 61e67f061..8c11bd412 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vendor examples/testfile-small.txt examples/testfile.txt tests/.accessToken +tests/.apiKey diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bb8e834bf..3c57499f5 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,31 +4,13 @@ colors="true" bootstrap="tests/bootstrap.php"> - - tests/youtube - - - tests/tasks - - - tests/pagespeed - - - tests/urlshortener - - - tests/plus - - - tests/adsense - - - tests/general + + tests/Google - - tests - + + ./src/Google + diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 27710cc5d..72d47868b 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -21,6 +21,7 @@ class BaseTest extends PHPUnit_Framework_TestCase private $token; private $memcacheHost; private $memcachePort; + protected $testDir = __DIR__; public function __construct() { @@ -79,12 +80,12 @@ public function loadToken() public function checkKey() { + $this->key = $this->loadKey(); + if (!strlen($this->key)) { $this->markTestSkipped("Test requires api key\nYou can create one in your developer console"); return false; } - - $this->key = $this->loadKey(); } public function loadKey() diff --git a/tests/general/ComputeEngineAuthTest.php b/tests/Google/Auth/ComputeEngineTest.php similarity index 98% rename from tests/general/ComputeEngineAuthTest.php rename to tests/Google/Auth/ComputeEngineTest.php index dbd0ad504..e866a2303 100644 --- a/tests/general/ComputeEngineAuthTest.php +++ b/tests/Google/Auth/ComputeEngineTest.php @@ -20,7 +20,7 @@ use GuzzleHttp\Message\Request; -class ComputeEngineAuthTest extends BaseTest +class Google_Auth_ComputeEngineTest extends BaseTest { public function testTokenAcquisition() { diff --git a/tests/general/ApiOAuth2Test.php b/tests/Google/Auth/OAuth2Test.php similarity index 99% rename from tests/general/ApiOAuth2Test.php rename to tests/Google/Auth/OAuth2Test.php index 3bdb2c32a..b5a4be53c 100644 --- a/tests/general/ApiOAuth2Test.php +++ b/tests/Google/Auth/OAuth2Test.php @@ -21,7 +21,7 @@ * under the License. */ -class ApiOAuth2Test extends BaseTest +class Google_Auth_OAuth2Test extends BaseTest { public function testSign() diff --git a/tests/general/CacheTest.php b/tests/Google/CacheTest.php similarity index 98% rename from tests/general/CacheTest.php rename to tests/Google/CacheTest.php index 8a61a9a3e..0fc32e166 100644 --- a/tests/general/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -18,7 +18,7 @@ * under the License. */ -class CacheTest extends BaseTest +class Google_CacheTest extends BaseTest { public function testFile() { diff --git a/tests/general/ApiClientTest.php b/tests/Google/ClientTest.php similarity index 93% rename from tests/general/ApiClientTest.php rename to tests/Google/ClientTest.php index 3700f3a72..252914f1e 100644 --- a/tests/general/ApiClientTest.php +++ b/tests/Google/ClientTest.php @@ -20,7 +20,7 @@ use GuzzleHttp\Message\Request; -class ApiClientTest extends BaseTest +class Google_ClientTest extends BaseTest { public function testClient() { @@ -195,7 +195,7 @@ public function testJsonConfig() public function testIniConfig() { - $config = new Google_Config(__DIR__ . "/testdata/test.ini"); + $config = new Google_Config($this->testDir . "/config/test.ini"); $this->assertEquals('My Test application', $config->getApplicationName()); $this->assertEquals( 'gjfiwnGinpena3', @@ -210,4 +210,17 @@ public function testIniConfig() $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') ); } + + public function testNoAuth() + { + /** @var $noAuth Google_Auth_Simple */ + $noAuth = new Google_Auth_Simple($this->getClient()); + $client = new Google_Client(); + $client->setAuth($noAuth); + $client->setDeveloperKey(null); + $req = new Request('GET', 'http://example.com'); + + $resp = $noAuth->sign($req); + $this->assertEquals('http://example.com', $resp->getUrl()); + } } diff --git a/tests/general/ApiBatchRequestTest.php b/tests/Google/Http/BatchTest.php similarity index 98% rename from tests/general/ApiBatchRequestTest.php rename to tests/Google/Http/BatchTest.php index f948286f3..c8aaa538d 100644 --- a/tests/general/ApiBatchRequestTest.php +++ b/tests/Google/Http/BatchTest.php @@ -18,7 +18,7 @@ * under the License. */ -class ApiBatchRequestTest extends BaseTest +class Google_Http_BatchTest extends BaseTest { public $plus; diff --git a/tests/general/ApiMediaFileUploadTest.php b/tests/Google/Http/MediaFuleUploadTest.php similarity index 98% rename from tests/general/ApiMediaFileUploadTest.php rename to tests/Google/Http/MediaFuleUploadTest.php index f8fd27614..b4853b805 100644 --- a/tests/general/ApiMediaFileUploadTest.php +++ b/tests/Google/Http/MediaFuleUploadTest.php @@ -22,7 +22,7 @@ * under the License. */ -class ApiMediaFileUploadTest extends BaseTest +class Google_Http_MediaFileUploadTest extends BaseTest { public function testMediaFile() { diff --git a/tests/general/RestTest.php b/tests/Google/Http/RESTTest.php similarity index 98% rename from tests/general/RestTest.php rename to tests/Google/Http/RESTTest.php index bf80899a0..0197d3af8 100644 --- a/tests/general/RestTest.php +++ b/tests/Google/Http/RESTTest.php @@ -18,7 +18,7 @@ use GuzzleHttp\Message\Response; use GuzzleHttp\Stream\Stream; -class RestTest extends BaseTest +class Google_HTTP_RESTTest extends BaseTest { /** * @var Google_Http_REST $rest diff --git a/tests/general/LoggerTest.php b/tests/Google/LoggerTest.php similarity index 99% rename from tests/general/LoggerTest.php rename to tests/Google/LoggerTest.php index cfdf8d4f8..255616a60 100644 --- a/tests/general/LoggerTest.php +++ b/tests/Google/LoggerTest.php @@ -18,7 +18,7 @@ * under the License. */ -class LoggerTest extends PHPUnit_Framework_TestCase +class Google_LoggerTest extends PHPUnit_Framework_TestCase { private $client; diff --git a/tests/general/ApiModelTest.php b/tests/Google/ModelTest.php similarity index 99% rename from tests/general/ApiModelTest.php rename to tests/Google/ModelTest.php index 9a81e714e..39bb87b86 100644 --- a/tests/general/ApiModelTest.php +++ b/tests/Google/ModelTest.php @@ -18,7 +18,7 @@ * under the License. */ -class ApiModelTest extends BaseTest +class Google_ModelTest extends BaseTest { private $calendarData = '{ "kind": "calendar#event", diff --git a/tests/adsense/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php similarity index 99% rename from tests/adsense/AdSenseTest.php rename to tests/Google/Service/AdSenseTest.php index 4033ed276..3d04937f6 100644 --- a/tests/adsense/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class AdSenseManagementTest extends BaseTest +class Google_Service_AdSenseTest extends BaseTest { public $adsense; public function __construct() diff --git a/tests/pagespeed/PageSpeedTest.php b/tests/Google/Service/PagespeedonlineTest.php similarity index 95% rename from tests/pagespeed/PageSpeedTest.php rename to tests/Google/Service/PagespeedonlineTest.php index c912d64e9..622600433 100644 --- a/tests/pagespeed/PageSpeedTest.php +++ b/tests/Google/Service/PagespeedonlineTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class PageSpeedTest extends BaseTest +class Google_Service_PagespeedonlineTest extends BaseTest { public $service; public function __construct() diff --git a/tests/plus/PlusTest.php b/tests/Google/Service/PlusTest.php similarity index 97% rename from tests/plus/PlusTest.php rename to tests/Google/Service/PlusTest.php index 98f042e48..cb132afdc 100644 --- a/tests/plus/PlusTest.php +++ b/tests/Google/Service/PlusTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class PlusTest extends BaseTest +class Google_Service_PlusTest extends BaseTest { /** @var Google_PlusService */ public $plus; diff --git a/tests/general/ResourceTest.php b/tests/Google/Service/ResourceTest.php similarity index 98% rename from tests/general/ResourceTest.php rename to tests/Google/Service/ResourceTest.php index 6851625ff..9312093ac 100644 --- a/tests/general/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -30,7 +30,7 @@ public function __construct(Google_Client $client) } } -class ResourceTest extends PHPUnit_Framework_TestCase +class Google_Service_ResourceTest extends PHPUnit_Framework_TestCase { private $client; private $service; diff --git a/tests/tasks/TasksTest.php b/tests/Google/Service/TasksTest.php similarity index 98% rename from tests/tasks/TasksTest.php rename to tests/Google/Service/TasksTest.php index a0ba58ef4..8f98586d1 100644 --- a/tests/tasks/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class TasksTest extends BaseTest +class Google_Service_TasksTest extends BaseTest { /** @var Google_TasksService */ public $taskService; diff --git a/tests/urlshortener/UrlShortenerTests.php b/tests/Google/Service/UrlshortenerTest.php similarity index 73% rename from tests/urlshortener/UrlShortenerTests.php rename to tests/Google/Service/UrlshortenerTest.php index 08422bc77..9eacd0e35 100644 --- a/tests/urlshortener/UrlShortenerTests.php +++ b/tests/Google/Service/UrlshortenerTest.php @@ -15,31 +15,29 @@ * limitations under the License. */ -class UrlShortenerTests extends BaseTest +class Google_Service_UrlshortenerTest extends BaseTest { - /** @var Google_UrlshortenerService */ - public $service; - - public function __construct() - { - parent::__construct(); - $this->service = new Google_Service_Urlshortener($this->getClient()); - } - public function testUrlShort() { + $this->checkKey(); + + $service = new Google_Service_Urlshortener($this->getClient()); $url = new Google_Service_Urlshortener_Url(); $url->longUrl = "http://google.com"; - $shortUrl = $this->service->url->insert($url); + $shortUrl = $service->url->insert($url); $this->assertEquals('urlshortener#url', $shortUrl['kind']); $this->assertEquals('http://google.com/', $shortUrl['longUrl']); } public function testEmptyJsonResponse() { + $this->checkKey(); + + $service = new Google_Service_Urlshortener($this->getClient()); + $optParams = array('fields' => ''); - $resp = $this->service->url->get('http://goo.gl/KkHq8', $optParams); + $resp = $service->url->get('http://goo.gl/KkHq8', $optParams); $this->assertEquals("", $resp->longUrl); } diff --git a/tests/youtube/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php similarity index 98% rename from tests/youtube/YouTubeTest.php rename to tests/Google/Service/YouTubeTest.php index 252ef0476..657760aa3 100644 --- a/tests/youtube/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -class YouTubeTest extends BaseTest +class Google_Service_YouTubeTest extends BaseTest { /** @var Google_PlusService */ public $plus; diff --git a/tests/general/ServiceTest.php b/tests/Google/ServiceTest.php similarity index 98% rename from tests/general/ServiceTest.php rename to tests/Google/ServiceTest.php index b3963b158..75801c25c 100644 --- a/tests/general/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -31,7 +31,7 @@ public function isAssociativeArray($array) } } -class ServiceTest extends PHPUnit_Framework_TestCase +class Google_ServiceTest extends PHPUnit_Framework_TestCase { public function testModel() diff --git a/tests/general/TaskTest.php b/tests/Google/Task/RunnerTest.php similarity index 99% rename from tests/general/TaskTest.php rename to tests/Google/Task/RunnerTest.php index eb57ab4d2..359e916a9 100644 --- a/tests/general/TaskTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -19,7 +19,7 @@ use GuzzleHttp\Message\Response; use GuzzleHttp\Stream\Stream; -class TaskTest extends PHPUnit_Framework_TestCase +class Google_Task_RunnerTest extends PHPUnit_Framework_TestCase { private $client; diff --git a/tests/general/URITemplateTest.php b/tests/Google/Utils/URITemplateTest similarity index 99% rename from tests/general/URITemplateTest.php rename to tests/Google/Utils/URITemplateTest index a525f1216..2e5535c25 100644 --- a/tests/general/URITemplateTest.php +++ b/tests/Google/Utils/URITemplateTest @@ -18,7 +18,7 @@ * under the License. */ -class URITemplateTest extends BaseTest +class Google_Utils_URITemplateTest extends BaseTest { public function testLevelOne() { diff --git a/tests/general/testdata/test.ini b/tests/config/test.ini similarity index 100% rename from tests/general/testdata/test.ini rename to tests/config/test.ini diff --git a/tests/general/AuthTest.php b/tests/general/AuthTest.php deleted file mode 100644 index d1e2d1398..000000000 --- a/tests/general/AuthTest.php +++ /dev/null @@ -1,221 +0,0 @@ -pem = file_get_contents(__DIR__.'/'.self::PUBLIC_KEY_FILE, true); - $this->privateKey = file_get_contents(__DIR__.'/'.self::PRIVATE_KEY_FILE, true); - } - - public function testDirectInject() - { - $privateKeyString = <<privateKey, $certs, 'notasecret'); - - return JWT::encode($payload, $certs['pkey'], 'RS256'); - } - - // Returns certificates similar to the ones used by google authentication. - private function getSignonCert() - { - return openssl_x509_read($this->pem); - } - - public function testVerifySignedJwtWithCerts() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "sub" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 - ) - ); - $cert = $this->getSignonCert(); - $oauth2 = new Google_Auth_OAuth2($this->getClient()); - $ticket = JWT::decode($id_token, $cert, array('RS256')); - $this->assertEquals(self::USER_ID, $ticket->sub); - // Check that payload and envelope got filled in. - $this->assertEquals("client_id", $ticket->aud); - } - - // Checks that the id token fails to verify with the expected message. - private function checkIdTokenFailure($id_token, $msg, $issuer = null) - { - $cert = $this->getSignonCert(); - try { - $ticket = JWT::decode($id_token, $cert, array('RS256')); - $this->fail("Should have thrown for $id_token"); - } catch (\DomainException $e) { - $this->assertContains($msg, $e->getMessage()); - } catch (\UnexpectedValueException $e) { - $this->assertContains($msg, $e->getMessage()); - } - } - - public function testVerifySignedJwtWithMultipleIssuers() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "system.gserviceaccount.com", - "aud" => "client_id", - "sub" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 - ) - ); - $certs = $this->getSignonCerts(); - $oauth2 = new Google_Auth_OAuth2($this->getClient()); - $ticket = $oauth2->verifySignedJwtWithCerts( - $id_token, - $certs, - "client_id", - array('system.gserviceaccount.com', 'https://system.gserviceaccount.com') - ); - $this->assertEquals(self::USER_ID, $ticket->getUserId()); - // Check that payload and envelope got filled in. - $attributes = $ticket->getAttributes(); - $this->assertEquals("JWT", $attributes["envelope"]["typ"]); - $this->assertEquals("client_id", $attributes["payload"]["aud"]); - } - - public function testVerifySignedJwtWithBadIssuer() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "fake.gserviceaccount.com", - "aud" => "client_id", - "sub" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 - ) - ); - - $issuers = array('system.gserviceaccount.com', 'https://system.gserviceaccount.com'); - $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers[0]); - $this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers); - } - - public function testVerifySignedJwtWithBadJwt() - { - $this->checkIdTokenFailure("foo", "Wrong number of segments"); - $this->checkIdTokenFailure("foo.bar", "Wrong number of segments"); - $this->checkIdTokenFailure( - base64_encode("foo").".bar.baz", - "Syntax error, malformed JSON" - ); - } - - public function testVerifySignedJwtWithBadSignature() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time(), - "exp" => time() + 3600 - ) - ); - $id_token = substr_replace($id_token, '000', -3); - $this->checkIdTokenFailure($id_token, "OpenSSL unable to verify data"); - } - - public function testVerifySignedJwtWithTooEarly() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time() + 1800, - "exp" => time() + 3600 - ) - ); - $this->checkIdTokenFailure($id_token, "Cannot handle token prior"); - } - - public function testVerifySignedJwtWithTooLate() - { - $id_token = $this->makeSignedJwt( - array( - "iss" => "federated-signon@system.gserviceaccount.com", - "aud" => "client_id", - "id" => self::USER_ID, - "iat" => time() - 3600, - "exp" => time() - 1800 - ) - ); - $this->checkIdTokenFailure($id_token, "Expired token"); - } - - public function testNoAuth() - { - /** @var $noAuth Google_Auth_Simple */ - $noAuth = new Google_Auth_Simple($this->getClient()); - $oldAuth = $this->getClient()->getAuth(); - $this->getClient()->setAuth($noAuth); - $this->getClient()->setDeveloperKey(null); - $req = new Request('GET', 'http://example.com'); - - $resp = $noAuth->sign($req); - $this->assertEquals('http://example.com', $resp->getUrl()); - $this->getClient()->setAuth($oldAuth); - } -} diff --git a/tests/general/testdata/cacert.json b/tests/general/testdata/cacert.json deleted file mode 100644 index 3de7c4467..000000000 --- a/tests/general/testdata/cacert.json +++ /dev/null @@ -1 +0,0 @@ -{"a": "-----BEGIN CERTIFICATE-----\nMIICrDCCAlagAwIBAgIJAIhhwVyFHrVfMA0GCSqGSIb3DQEBBQUAMG8xCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQxCjAIBgNVBAsTAWExCjAIBgNVBAMTAWIxEDAOBgkqhkiG\n9w0BCQEWAWMwHhcNMTIwMjE5MDExMzQxWhcNMTUwMjE4MDExMzQxWjBvMQswCQYD\nVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQg\nV2lkZ2l0cyBQdHkgTHRkMQowCAYDVQQLEwFhMQowCAYDVQQDEwFiMRAwDgYJKoZI\nhvcNAQkBFgFjMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM4Aozh3TMZYcPx7MHln\nD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNd\nFOkCAwEAAaOB1DCB0TAdBgNVHQ4EFgQUv0Ahb7HD9TLfdtLeaatjFj91NqYwgaEG\nA1UdIwSBmTCBloAUv0Ahb7HD9TLfdtLeaatjFj91Nqahc6RxMG8xCzAJBgNVBAYT\nAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBXaWRn\naXRzIFB0eSBMdGQxCjAIBgNVBAsTAWExCjAIBgNVBAMTAWIxEDAOBgkqhkiG9w0B\nCQEWAWOCCQCIYcFchR61XzAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA0EA\nKAbxbWHsaVPnYc0YqG/Pn4HbcI1+xnVQSt3hdzq+yC0lP9H7hBMCVSykhhBkZ5XQ\nHA2t6LHuYsjcCO+LBX/4fA==\n-----END CERTIFICATE-----"} \ No newline at end of file diff --git a/tests/general/testdata/cacert.pem b/tests/general/testdata/cacert.pem deleted file mode 100644 index c95977b07..000000000 --- a/tests/general/testdata/cacert.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICrDCCAlagAwIBAgIJAIhhwVyFHrVfMA0GCSqGSIb3DQEBBQUAMG8xCzAJBgNV -BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX -aWRnaXRzIFB0eSBMdGQxCjAIBgNVBAsTAWExCjAIBgNVBAMTAWIxEDAOBgkqhkiG -9w0BCQEWAWMwHhcNMTIwMjE5MDExMzQxWhcNMTUwMjE4MDExMzQxWjBvMQswCQYD -VQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQg -V2lkZ2l0cyBQdHkgTHRkMQowCAYDVQQLEwFhMQowCAYDVQQDEwFiMRAwDgYJKoZI -hvcNAQkBFgFjMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM4Aozh3TMZYcPx7MHln -D8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNd -FOkCAwEAAaOB1DCB0TAdBgNVHQ4EFgQUv0Ahb7HD9TLfdtLeaatjFj91NqYwgaEG -A1UdIwSBmTCBloAUv0Ahb7HD9TLfdtLeaatjFj91Nqahc6RxMG8xCzAJBgNVBAYT -AkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBXaWRn -aXRzIFB0eSBMdGQxCjAIBgNVBAsTAWExCjAIBgNVBAMTAWIxEDAOBgkqhkiG9w0B -CQEWAWOCCQCIYcFchR61XzAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA0EA -KAbxbWHsaVPnYc0YqG/Pn4HbcI1+xnVQSt3hdzq+yC0lP9H7hBMCVSykhhBkZ5XQ -HA2t6LHuYsjcCO+LBX/4fA== ------END CERTIFICATE----- \ No newline at end of file diff --git a/tests/general/testdata/cert.p12 b/tests/general/testdata/cert.p12 deleted file mode 100644 index acea8f62e08609fafd9f5652f75808099f05874c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2196 zcmY+Fc{~#iAICSgnV}q;TgWkYTZs|5mZMAVBX@3#C`uQ`q%=Qg2dN>kEmD5Y+~%Bf zbInoajKm1PsPyRddY-4}`Q!WgzFzOo>-+uZ^T!*7ho*7?xlwqiBZOBi(K7KL0U!^M zgoj#y@KCdTY=pu?EdE3g5*~utN7`IK!2Z(wlK@fD5ZJ#z@B<;J10X0aNXp8QOse7H zf&yak5I}$|&X7hGZ{+hHF%QOye^eCL3~pK4!@YNnoggJ%qwEYzZQKgR)I?57U}1BI_`t@SJ4?x!Ixm8DAWa z&hka?TJuXcqC+z;kNn#D=u?~0Ph2HZm*QSW@ZM0IVhTCmfUVuesuPD(poy4IZhfX~ zSaofN&vABFOciC|^4mw|m0*ltFD2W0e45-P*fBB2ENPPIuBxU#S$j4~4`w!!2WQgX zd2Yfyq2YKvqn;MW(Ey35%X$HwQ?O9Met7JRj*Lo$6u+0i`y(s2wcjD)d7^fWKNX4( z&|`&T*y+C*E#pb4n4RfJkxUoRgIlk3wc1^4Je`dB! zEKSpE49+FA;Gc9N_rR;+*TVFUF$oEFC3LG@XqUjI1l}Z|Rh2;pcHsFo*5$d+U^_n>WTel+o4UbfA1o zjAeOtvvJShD3A!vLs?7-4o;_+oUqQcb~l+Yfw?mv}VXjby}EZsyFKb9$rh zq8J=8p7`)>ZkDRG(1+J#S<)4)EI%PL%L@m1Bl?zJSglLlZLHlsK-b0&%t@!MSz(Ci zvAibMCZfts(dLv~XHS00Ng9+=+54eN2?c1zbRJVkYZT{yYQlM3U?V`1t!w2JdNEd; zqdmyQ?5t=;5@e$$un8sT<*+)Gz^@YV-ZS?Qjmmu4*JqhSs5eQAO5*6d&UG#nJW_7R z%~&wnTc7&)ZT`jmJ+vfRTm23rArks1!JRbJw5c}PBR9{=K$Y3}!vmFHN;dCE(mX1r zU5;|D8z@xM9Tp>K#yp=#d%cVfrR}I+x;ZB_8(!|*11Sn3X6tY0HVcy>r0?FU`YKB9 z{@1pb9fTVuDIhGxbhbU^`IN2oJgh@(lEu*wwu=`sK++=6(VJ0dNfhnMY{bC|uts`9 z48WxyOl^>}!Mzw{g1Z(?yw8$~;Vjm$g!6H39SS2lm(3{IaW-B&Iu+g;eG3ymA5HJe z`A29~i6waDX2r>%vV4ro5|iWYhxA&U94j2bmfX}Wvh)f#Hd<*vGg%5MeBLc@V}PWj z_-Q7kbjT@IdM?|U_vFWptvuza7b6X=O|o?At4mhiJT2R^D}=*SYhocgtg9a@T)SQM zzrYmUrPN+yVsHtkipLla!mrn%N51s(+5z{5cflvIKVG#poXhvXc9{83e}1V`XMdYA zZMgHPsw2by*nLpOF02=FU9rN)q88F2RECUO|KvnEi=i!Ky2Ogb^{O-6i1^AqbF0b% zGYhZx&b_ol3?FRK*yAR79YI~=yVFTj8eT^OVg5>%oo)Jb4JKZWJIxpS0=Fne^v52t zWB#1b@Jz*_sgJWachqOOEWZl3)!t(S7ltlgYa48^X?t+4lAUtekm4K zq+)Nu)$}<8-^d(t*5w>hIX4O6K90!iz8Lt$C*wly%-raZEcU#WpOjomistC_K$n~8 zM2n51W(#35=R@*DcW024FVDtSi=CGHWnwkuT&FI{Jk@96E|&g0)0g0C`1#y*fXVLk zG$^x*$GoMXlrR2c}O>39nls`3&Uq2CMjo)bxf+1$xI8I!$4bO~~D|- zKE(f@Rk(j!g$4oq)lV{){cV-~b1$R>G75+@t35oR_oz#1CHFhZ0jiX4YZ1Pen1J>^ zsH_xF|0<`xW2051XebRLJre!v#FE`m&As~jfHWf0e)H;=UZOHjBM@8xk?JHgBs-zE z*8)v0_8wWARQf7gA@pb}>$K5$cYimp{2iMZ$3bV)Zwn<4Na8UCbcGcZR-bKTCR6P3 zR?{Wt)(wF%?eB5U@hLStJbqZU>Z0t>RNK}!Rx~d;m7_B2yOiKl(ehf^({ZZoR=W>y zsR}#KW*4|aZ*?SVExA^zJMFB}a$1OfO1!T@0?g+Ca976rkYt&Kh@jHm*$~GL_0xH=*)^pW1+O(?^6E- DPu%{c diff --git a/tests/general/testdata/privkey.pem b/tests/general/testdata/privkey.pem deleted file mode 100644 index 0a4d3a0a0..000000000 --- a/tests/general/testdata/privkey.pem +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNV -fLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk -1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqF -UJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3 -WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+ro -OHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2 -DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA== ------END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/tests/general/testdata/service-12345.json b/tests/general/testdata/service-12345.json deleted file mode 100644 index 4160d93f5..000000000 --- a/tests/general/testdata/service-12345.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75", - "private_key": "-----BEGIN PRIVATE KEY-----\nMIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALatQBvyVfVxdKFT\n3jMHUk0hSEs9Z3WaEw1q+597Fo+f2j5xOIzzzHKX4twWtSYWpSNTaVsFBX7cYpKu\nxYD8oiFnb/Djmud36h4yZsinmoTAi8tn7ldHMi3VICt05IKNRYPU14AQ/FANBvzZ\nxPUxVmf2Q8qZ1/HhXRGE0GLhJGMtAgMBAAECgYAB1BogLXzOyCPyuXQv7pLUUtD2\nb9bpRnGKYNfD8Od46JC2r0txnb8eJocOzOtjRjbA88TKNHKpomsaLMWtVNoKlzMX\n4DdWk0we4knIa2ZNc3rHYQIHVTESYUa3fH/I/t2XBmbiwyYdegfXl7OmxHb9kekk\nQ1HBKq2SA2LRHWydwQJBAPIdT6s1KvUVsdW7JVu3MxMSlSc2dyQV9ay44wuxYaVV\nfvV7BM/J+/oHSh4GU2Os+kqRHOuouHm2TQ3gsQlBsqcCQQDBJ0iDoYZozVQB36eE\nlPAzoK6H+U21rx5EErFNYu97OKWn+z8kwbGtBU8CSJhkY/OQGmpg6MpoJO/Md03Y\nxVoLAkAFeZg1nOwtwqHU3XiIzGnBQqhQzLCBBmYZ08x+lTJKFNbcIj4HnN+v1b5d\nU3NLS7wVN5bZ1WTmi7LOX4hhVzT9AkBBbQQECleT8lENXWvJ3gVLB5d22Xx4GTxA\nRLCoDOYfr/103Ab0dWOwvsaXeG2eO7kJy9jSwKenBTPw50yIK7knAkBC2J/z6X7l\nB/dDRTxdd0gCG7JIy9N3cUgHBmDH2eycmPncWGJ+aZrK1p9NmAytP+Ksi4AGMJX5\nH5cT1I/UOEn1\n-----END PRIVATE KEY-----\n", - "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com", - "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com", - "type": "service_account" -} \ No newline at end of file diff --git a/tests/general/testdata/service-rsa-12345.json b/tests/general/testdata/service-rsa-12345.json deleted file mode 100644 index a6a2df0ed..000000000 --- a/tests/general/testdata/service-rsa-12345.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75", - "private_key": "-----BEGIN RSA PRIVATE KEY-----MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqFUJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+roOHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA==-----END RSA PRIVATE KEY-----", - "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com", - "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com", - "type": "service_account" -} \ No newline at end of file diff --git a/tests/general/testdata/test_public_key.pem b/tests/general/testdata/test_public_key.pem deleted file mode 100644 index ebca23e52..000000000 --- a/tests/general/testdata/test_public_key.pem +++ /dev/null @@ -1,20 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDQjCCAiqgAwIBAgIJAMJ1Z12ZdGgLMA0GCSqGSIb3DQEBBQUAMB8xHTAbBgNV -BAMTFHRlc3Qtc2VydmljZS1hY2NvdW50MB4XDTExMDgyMzIwNTczNFoXDTIxMDgy -MDIwNTczNFowHzEdMBsGA1UEAxMUdGVzdC1zZXJ2aWNlLWFjY291bnQwggEiMA0G -CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpbFTjUXd02HFluI2G0kGKp1J5K2F8 -cYr7hKXHcsmKo6S/5g8AEYnnV1fEbiopoGt7UWV4T0LA99K0gqQ7QmvZKvFHXlgR -XJH1aO+ZipVs3ycZOcjBMcw4hspFSi4IyQta64gASFUT5NaxRVGhzAuPlzH09dZQ -RJ0NL54HccGNzEDaLx5usB8t2aRHbE4zRWJlNIsjgWnfVoiXwOv5oRhyfFMIaTu1 -eIp3XP1QAv5cuYS2U4ZJ+J7Gzg6E7t4PWqK7rGjnc5BJsVIoiL77K/xKUWABNgHz -b6JuiEp3LX9f2H5+CKo/IJFWoyIYWdZiu69LZivife9sTXmDnOcZkisRAgMBAAGj -gYAwfjAdBgNVHQ4EFgQU0RkXlevVO2zuTFP/ksFUbNkpm+kwTwYDVR0jBEgwRoAU -0RkXlevVO2zuTFP/ksFUbNkpm+mhI6QhMB8xHTAbBgNVBAMTFHRlc3Qtc2Vydmlj -ZS1hY2NvdW50ggkAwnVnXZl0aAswDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUF -AAOCAQEAT+3VKautn+uV7ZQWbfx6xrGaDZ5wVK9FWOTVKsjdXyp11jtoVkDONLz5 -3J7wgppZWabPargIZUHe9/P6j7QTgNV2na2thGHtVRIRyDECnVrvhCn/IDpMeJjj -IAuysmSITHGEwb4AvRC5HdqfWzBqAvRhjJ2crcHZpx5/KkYZgJz9ylGJCynxpbHU -1aRu4qpkQNB4t4z5EzNOSLkFw9vEtm0hNX76CsNJFd0XDEKDQI2Lsc0WfDzQ1ZQH -UVzIoTmQDkYGylQOBVyxZoGI6fuSo8c2I1BKvsdBGhSPjePNvaKUbmLSwUsranhX -2Y1kn7xbDTUHymZ0+g5rDM9kWmhZfg== ------END CERTIFICATE----- From 0622efd5e381a36f4b048a49ad21c84763093da3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 17 Sep 2015 10:40:02 -0700 Subject: [PATCH 0905/1274] Removes Http, Logger, and Auth logger and cache cleanup, autoload cleanup --- autoload.php | 26 - composer.json | 3 +- src/Google/AccessToken.php | 227 ++++++ src/Google/Auth/AppIdentity.php | 5 +- src/Google/Auth/ComputeEngine.php | 149 ---- src/Google/Auth/Exception.php | 4 - src/Google/Auth/Interface.php | 36 - src/Google/Auth/OAuth2.php | 458 ----------- src/Google/Auth/Simple.php | 64 -- src/Google/Cache/Abstract.php | 53 -- src/Google/Cache/Apc.php | 44 +- src/Google/Cache/Exception.php | 4 - src/Google/Cache/File.php | 54 +- src/Google/Cache/Memcache.php | 61 +- src/Google/Cache/Null.php | 13 +- src/Google/Client.php | 755 ++++++++++-------- src/Google/Config.php | 448 ----------- src/Google/Http/MediaFileUpload.php | 4 - src/Google/Http/{Batch.php => Parallel.php} | 7 +- src/Google/Http/REST.php | 21 +- src/Google/IO/Exception.php | 4 - src/Google/Logger/Abstract.php | 408 ---------- src/Google/Logger/Exception.php | 24 - src/Google/Logger/File.php | 158 ---- src/Google/Logger/Null.php | 43 - src/Google/Logger/Psr.php | 93 --- src/Google/Service/Exception.php | 41 +- src/Google/Service/Resource.php | 10 +- src/Google/Task/Exception.php | 4 - src/Google/Task/Retryable.php | 12 - src/Google/Task/Runner.php | 59 +- src/Google/autoload.php | 36 - style/ruleset.xml | 2 + tests/BaseTest.php | 135 +++- tests/Google/AccessTokenTest.php | 160 ++++ tests/Google/Auth/ComputeEngineTest.php | 83 -- tests/Google/Auth/OAuth2Test.php | 251 ------ tests/Google/CacheTest.php | 28 +- tests/Google/ClientTest.php | 182 +++-- .../Http/{BatchTest.php => ParallelTest.php} | 54 +- tests/Google/LoggerTest.php | 445 ----------- tests/Google/Service/AdSenseTest.php | 10 +- tests/Google/Service/PlusTest.php | 6 +- tests/Google/Service/ResourceTest.php | 24 +- tests/Google/Service/TasksTest.php | 7 +- tests/Google/Service/YouTubeTest.php | 14 +- tests/Google/Task/RunnerTest.php | 107 ++- .../{URITemplateTest => URITemplateTest.php} | 0 tests/OAuthHelper.php | 50 -- tests/bootstrap.php | 4 +- tests/clearToken.php | 8 + tests/config/test.ini | 7 +- 52 files changed, 1302 insertions(+), 3603 deletions(-) delete mode 100644 autoload.php create mode 100644 src/Google/AccessToken.php delete mode 100644 src/Google/Auth/ComputeEngine.php delete mode 100644 src/Google/Auth/Interface.php delete mode 100644 src/Google/Auth/OAuth2.php delete mode 100644 src/Google/Auth/Simple.php delete mode 100644 src/Google/Cache/Abstract.php delete mode 100644 src/Google/Config.php rename src/Google/Http/{Batch.php => Parallel.php} (95%) delete mode 100644 src/Google/Logger/Abstract.php delete mode 100644 src/Google/Logger/Exception.php delete mode 100644 src/Google/Logger/File.php delete mode 100644 src/Google/Logger/Null.php delete mode 100644 src/Google/Logger/Psr.php delete mode 100644 src/Google/autoload.php create mode 100644 tests/Google/AccessTokenTest.php delete mode 100644 tests/Google/Auth/ComputeEngineTest.php delete mode 100644 tests/Google/Auth/OAuth2Test.php rename tests/Google/Http/{BatchTest.php => ParallelTest.php} (63%) delete mode 100644 tests/Google/LoggerTest.php rename tests/Google/Utils/{URITemplateTest => URITemplateTest.php} (100%) delete mode 100644 tests/OAuthHelper.php create mode 100644 tests/clearToken.php diff --git a/autoload.php b/autoload.php deleted file mode 100644 index 4e50f135f..000000000 --- a/autoload.php +++ /dev/null @@ -1,26 +0,0 @@ -=5.4", - "google/auth": "dev-master" + "google/auth": "dev-master", + "monolog/monolog": "^1.17" }, "require-dev": { "phpunit/phpunit": "3.7.*", diff --git a/src/Google/AccessToken.php b/src/Google/AccessToken.php new file mode 100644 index 000000000..d9889a436 --- /dev/null +++ b/src/Google/AccessToken.php @@ -0,0 +1,227 @@ +http = $http; + $this->cache = $cache; + $this->setAccessToken($token); + } + + /** + * @param string|array $token + * @throws InvalidArgumentException + */ + public function setAccessToken($token) + { + if (is_string($token)) { + if ($json = json_decode($token, true)) { + $token = $json; + } else { + // assume $token is just the token string + $token = [ + 'access_token' => $token, + ]; + } + } + if ($token == null) { + throw new InvalidArgumentException('invalid json token'); + } + if (!isset($token['access_token'])) { + throw new InvalidArgumentException("Invalid token format"); + } + $this->token = $token; + } + + public function getAccessToken() + { + return $this->token; + } + + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * @throws Google_Auth_Exception + * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken() + { + if (!$this->token) { + // Not initialized, no token to actually revoke + return false; + } elseif (array_key_exists('refresh_token', $this->token)) { + $token = $this->token['refresh_token']; + } else { + $token = $this->token['access_token']; + } + + $request = $this->http->createRequest('POST', Google_Client::OAUTH2_REVOKE_URI); + $request->addHeader('Cache-Control', 'no-store'); + $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); + $request->getBody()->replaceFields(array('token' => $token)); + + $response = $this->http->send($request); + if ($response->getStatusCode() == 200) { + $this->token = null; + + return true; + } + + return false; + } + + /** + * Retrieve and cache a certificates file. + * + * @param $url string location + * @throws Google_Auth_Exception + * @return array certificates + */ + private function retrieveCertsFromLocation($url) + { + // If we're retrieving a local file, just grab it. + if ("http" != substr($url, 0, 4)) { + $file = file_get_contents($url); + if ($file) { + return json_decode($file, true); + } else { + throw new Google_Auth_Exception( + "Failed to retrieve verification certificates: '" . + $url . "'." + ); + } + } + + $response = $this->http->get($url); + + if ($response->getStatusCode() == 200) { + return $response->json(); + } + throw new Google_Auth_Exception( + "Failed to retrieve verification certificates: '" . + $response->getBody()->getContents() . "'.", + $response->getStatusCode() + ); + } + + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() + { + $cache = $this->getCache(); + + if (!$certs = $cache->get('federated_signon_certs')) { + $certs = $this->retrieveCertsFromLocation( + self::FEDERATED_SIGNON_CERT_URL + ); + + $cache->set('federated_signon_certs', $certs); + } + + return $certs; + } + + /** + * Verifies an id token and returns the authenticated apiLoginTicket. + * Throws an exception if the id token is not valid. + * The audience parameter can be used to control which id tokens are + * accepted. By default, the id token must have been issued to this OAuth2 client. + * + * @param $audience + * @return array the token payload, if successful + * @throws Google_Auth_Exception + */ + public function verifyIdToken($audience = null) + { + if (empty($this->token['id_token'])) { + throw new LogicException('id_token cannot be null'); + } + + // Check signature + $certs = $this->getFederatedSignonCerts(); + foreach ($certs as $keyName => $pem) { + $key = openssl_x509_read($pem); + + try { + $payload = JWT::decode($this->token['id_token'], $key, array('RS256')); + if (is_null($audience) || (property_exists($resp, 'aud') && $resp->aud == $audience)) { + return $payload; + } + openssl_x509_free($key); + } catch (ExpiredException $e) { + return false; + // continue + } catch (DomainException $e) { + // continue + } + } + + return false; + } + + public function getCache() + { + if (!$this->cache) { + $this->cache = $this->createDefaultCache(); + } + + return $this->cache; + } + + protected function createDefaultCache() + { + return new Google_Cache_File(sys_get_temp_dir().'/google-api-php-client'); + } +} \ No newline at end of file diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php index d475870dd..f74e60027 100644 --- a/src/Google/Auth/AppIdentity.php +++ b/src/Google/Auth/AppIdentity.php @@ -20,11 +20,8 @@ * which is 5.3 and above only, so if you include this in a PHP 5.2 * setup or one without 5.3 things will blow up. */ -use google\appengine\api\app_identity\AppIdentityService; -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} +use google\appengine\api\app_identity\AppIdentityService; /** * Authentication via the Google App Engine App Identity service. diff --git a/src/Google/Auth/ComputeEngine.php b/src/Google/Auth/ComputeEngine.php deleted file mode 100644 index 76d269d45..000000000 --- a/src/Google/Auth/ComputeEngine.php +++ /dev/null @@ -1,149 +0,0 @@ - - */ -class Google_Auth_ComputeEngine implements Google_Auth_Interface -{ - const METADATA_AUTH_URL = - 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; - private $client; - private $token; - - public function __construct(Google_Client $client, $config = null) - { - $this->client = $client; - } - - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param GuzzleHttp\Message\Request $request - * @return GuzzleHttp\Message\Response The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest($request) - { - $request = $this->sign($request); - - return $this->client->getHttpClient()->send($request); - } - - /** - * @param string $token - * @throws Google_Auth_Exception - */ - public function setAccessToken($token) - { - $token = json_decode($token, true); - if ($token == null) { - throw new Google_Auth_Exception('Could not json decode the token'); - } - if (! isset($token['access_token'])) { - throw new Google_Auth_Exception("Invalid token format"); - } - $token['created'] = time(); - $this->token = $token; - } - - public function getAccessToken() - { - return json_encode($this->token); - } - - /** - * Acquires a new access token from the compute engine metadata server. - * @throws Google_Auth_Exception - */ - public function acquireAccessToken() - { - $request = new Request( - 'GET', - self::METADATA_AUTH_URL, - array( - 'Metadata-Flavor' => 'Google' - ) - ); - $http = $this->client->getHttpClient(); - $http->setDefaultOption('disable_gzip', true); - $response = $http->send($request); - - if ($response->getStatusCode() == 200) { - $this->setAccessToken((string) $response->getBody()); - $this->token['created'] = time(); - return $this->getAccessToken(); - } else { - throw new Google_Auth_Exception( - sprintf( - "Error fetching service account access token, message: '%s'", - $response->getBody() - ), - $response->getStatusCode() - ); - } - } - - /** - * Include an accessToken in a given apiHttpRequest. - * @param GuzzleHttp\Message\Request $request - * @return GuzzleHttp\Message\Request $request - * @throws Google_Auth_Exception - */ - public function sign($request) - { - if ($this->isAccessTokenExpired()) { - $this->acquireAccessToken(); - } - - $this->client->getLogger()->debug('Compute engine service account authentication'); - - $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); - - return $request; - } - - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token || !isset($this->token['created'])) { - return true; - } - - // If the token is set to expire in the next 30 seconds. - $expired = ($this->token['created'] - + ($this->token['expires_in'] - 30)) < time(); - - return $expired; - } -} diff --git a/src/Google/Auth/Exception.php b/src/Google/Auth/Exception.php index e4b75c14b..59420cedf 100644 --- a/src/Google/Auth/Exception.php +++ b/src/Google/Auth/Exception.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - class Google_Auth_Exception extends Google_Exception { } diff --git a/src/Google/Auth/Interface.php b/src/Google/Auth/Interface.php deleted file mode 100644 index 78fdb65da..000000000 --- a/src/Google/Auth/Interface.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - */ -interface Google_Auth_Interface -{ - /** - * Used for when a request should be authenticated - * - * @param GuzzleHttp\Message\Request $request - * @return GuzzleHttp\Message\Request $request - */ - public function sign($request); -} diff --git a/src/Google/Auth/OAuth2.php b/src/Google/Auth/OAuth2.php deleted file mode 100644 index 7b2b9ea51..000000000 --- a/src/Google/Auth/OAuth2.php +++ /dev/null @@ -1,458 +0,0 @@ -setAuth($this); - $this->signingAlgorithm = 'RS256'; // default - - $this->client = $client; - $this->http = $client->getHttpClient(); - } - - /** - * @param string $code - * @throws Google_Auth_Exception - * @return string - */ - public function authenticate($code, $crossClient = false) - { - if (strlen($code) == 0) { - throw new Google_Auth_Exception("Invalid code"); - } - - $auth = $this->createAuthClient(); - $auth->setCode($code); - $auth->setRedirectUri($this->client->getClassConfig($this, 'redirect_uri')); - - $creds = $auth->fetchAuthToken($this->http); - - return $this->handleAuthTokenResponse($creds); - } - - /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string $scope The scope is expressed as a list of space-delimited strings. - * @return string - */ - public function createAuthUrl($scope) - { - $auth = $this->createAuthClient(); - $params = array( - 'response_type' => 'code', - 'access_type' => $this->client->getClassConfig($this, 'access_type'), - 'scope' => $scope, - ); - - // Prefer prompt to approval prompt. - if ($this->client->getClassConfig($this, 'prompt')) { - $params = $this->maybeAddParam($params, 'prompt'); - } else { - $params = $this->maybeAddParam($params, 'approval_prompt'); - } - $params = $this->maybeAddParam($params, 'login_hint'); - $params = $this->maybeAddParam($params, 'hd'); - $params = $this->maybeAddParam($params, 'openid.realm'); - $params = $this->maybeAddParam($params, 'include_granted_scopes'); - - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->client->getClassConfig($this, 'request_visible_actions'); - if (strpos($scope, 'plus.login') && strlen($rva) > 0) { - $params['request_visible_actions'] = $rva; - } - - if (isset($this->state)) { - $params['state'] = $this->state; - } - - $url = $auth->buildFullAuthorizationUri($params); - - return (string) $url; - } - - /** - * @param string $token - * @throws Google_Auth_Exception - */ - public function setAccessToken($token) - { - $token = json_decode($token, true); - if ($token == null) { - throw new Google_Auth_Exception('Could not json decode the token'); - } - if (! isset($token['access_token'])) { - throw new Google_Auth_Exception("Invalid token format"); - } - $this->token = $token; - } - - public function getAccessToken() - { - return json_encode($this->token); - } - - public function setState($state) - { - $this->state = $state; - } - - public function setSigningKey($signingKey) - { - $this->signingKey = $signingKey; - } - - public function setSigningAlgorithm($signingAlgorithm) - { - $this->signingAlgorithm = $signingAlgorithm; - } - - public function sign($request) - { - // add the developer key to the request before signing it - if ($this->client->getClassConfig($this, 'developer_key')) { - $request->getQuery()->set('key', $this->client->getClassConfig($this, 'developer_key')); - } - - // Cannot sign the request without an OAuth access token. - if (empty($this->token) && empty($this->signingKey)) { - return $request; - } - - // Check if the token is set to expire in the next 30 seconds - // (or has already expired). - if ($this->isAccessTokenExpired()) { - if ($this->signingKey) { - $this->refreshTokenWithAssertion(); - } else { - $this->client->getLogger()->debug('OAuth2 access token expired'); - if (! array_key_exists('refresh_token', $this->token)) { - $error = "The OAuth 2.0 access token has expired," - ." and a refresh token is not available. Refresh tokens" - ." are not returned for responses that were auto-approved."; - - $this->client->getLogger()->error($error); - throw new Google_Auth_Exception($error); - } - $this->refreshToken($this->token['refresh_token']); - } - } - - $this->client->getLogger()->debug('OAuth2 authentication'); - - // Add the OAuth2 header to the request - $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); - - return $request; - } - - public function refreshToken($refreshToken) - { - $this->client->getLogger()->info('OAuth2 access token refresh'); - $auth = $this->createAuthClient(); - $auth->setRefreshToken($refreshToken); - - $creds = $auth->fetchAuthToken($this->http); - - return $this->handleAuthTokenResponse($creds); - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - if (!$token) { - if (!$this->token) { - // Not initialized, no token to actually revoke - return false; - } elseif (array_key_exists('refresh_token', $this->token)) { - $token = $this->token['refresh_token']; - } else { - $token = $this->token['access_token']; - } - } - - $request = $this->http->createRequest('POST', self::OAUTH2_REVOKE_URI); - $request->addHeader('Cache-Control', 'no-store'); - $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); - $request->getBody()->replaceFields(array('token' => $token)); - - $response = $this->http->send($request); - if ($response->getStatusCode() == 200) { - $this->token = null; - - return true; - } - - return false; - } - - /** - * Retrieve and cache a certificates file. - * - * @param $url string location - * @throws Google_Auth_Exception - * @return array certificates - */ - public function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if ("http" != substr($url, 0, 4)) { - $file = file_get_contents($url); - if ($file) { - return json_decode($file, true); - } else { - throw new Google_Auth_Exception( - "Failed to retrieve verification certificates: '" . - $url . "'." - ); - } - } - - $request = $this->http->createRequest('GET', $url); - $response = $this->http->send($request); - - if ($response->getStatusCode() == 200) { - return $response->json(); - } - throw new Google_Auth_Exception( - "Failed to retrieve verification certificates: '" . - $response->getBody()->getContents() . "'.", - $response->getStatusCode() - ); - } - - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - return $this->retrieveCertsFromLocation( - $this->client->getClassConfig($this, 'federated_signon_certs_url') - ); - } - - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param $id_token - * @param $audience - * @return array the token payload, if successful - * @throws Google_Auth_Exception - */ - public function verifyIdToken($id_token = null, $audience = null) - { - if (is_null($id_token)) { - if (isset($this->token['id_token'])) { - $id_token = $this->token['id_token']; - } else { - throw new LogicException('id_token cannot be null'); - } - } - - if (is_null($audience)) { - $audience = $this->client->getClassConfig($this, 'client_id'); - } - - $auth = $this->createAuthClient(); - $auth->setIdToken($id_token); - $auth->setAudience($audience); - - // Check signature - $certs = $this->getFederatedSignonCerts(); - foreach ($certs as $keyName => $pem) { - try { - $key = openssl_x509_read($pem); - $payload = $auth->verifyIdToken($key, array('RS256')); - } catch (\DomainException $e) { - // try next cert - $this->client->getLogger()->notice('ID token validation failed: '.$e->getMessage()); - } - openssl_x509_free($key); - if (!empty($payload)) { - return (array) $payload; - } - } - - throw new Google_Auth_Exception("Invalid token signature: $id_token"); - } - - /** - * Fetches a fresh access token with a given assertion token. - * @param Google_Auth_AssertionCredentials $assertionCredentials optional. - * @return void - */ - public function refreshTokenWithAssertion() - { - if (is_null($this->signingKey)) { - throw new LogicException('Cannot refresh token with assertion without signing key'); - } - - $this->client->getLogger()->info( - 'OAuth2 access token refresh with Signed JWT assertion grants.' - ); - - $auth = $this->createAuthClient(); - $auth->setGrantType(OAuth2::JWT_URN); - $auth->setAudience(self::OAUTH2_TOKEN_URI); - $auth->setScope($this->client->getScopes()); - - $creds = $auth->fetchAuthToken($this->http); - - return $this->handleAuthTokenResponse($creds); - } - - /** - * Add a parameter to the auth params if not empty string. - */ - private function maybeAddParam($params, $name) - { - $param = $this->client->getClassConfig($this, $name); - if ($param != '') { - $params[$name] = $param; - } - return $params; - } - - /** - * create a default google auth object - */ - private function createAuthClient() - { - $auth = new OAuth2( - array( - 'clientId' => $this->client->getClassConfig($this, 'client_id'), - 'clientSecret' => $this->client->getClassConfig($this, 'client_secret'), - 'authorizationUri' => self::OAUTH2_AUTH_URL, - 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, - 'redirectUri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'issuer' => $this->client->getClassConfig($this, 'client_id'), - 'signingKey' => $this->signingKey, - 'signingAlgorithm' => $this->signingAlgorithm, - ) - ); - - return $auth; - } - - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token || !isset($this->token['created'])) { - return true; - } - - // If the token is set to expire in the next 30 seconds. - $expired = ($this->token['created'] - + ($this->token['expires_in'] - 30)) < time(); - - return $expired; - } - - /** - * handle the http response, set the access token, and raise an error if - * applicable - */ - private function handleAuthTokenResponse($creds) - { - if ($creds != null && isset($creds['access_token'])) { - $this->setAccessToken(json_encode($creds)); - $this->token['created'] = time(); - return $this->getAccessToken(); - } elseif ($creds != null && isset($creds['error'])) { - $errorText = $creds['error']; - if (isset($creds['error_description'])) { - $errorText .= ": " . $creds['error_description']; - } - } - throw new Google_Auth_Exception( - sprintf( - "Error fetching OAuth2 access token, message: '%s'", - $errorText - ) - ); - } -} diff --git a/src/Google/Auth/Simple.php b/src/Google/Auth/Simple.php deleted file mode 100644 index 46f2857e5..000000000 --- a/src/Google/Auth/Simple.php +++ /dev/null @@ -1,64 +0,0 @@ -client = $client; - } - - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param GuzzleHttp\Message\Request $request - * @return GuzzleHttp\Message\Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest($request) - { - $request = $this->sign($request); - - return $this->client->getHttpClient()->send($request); - } - - public function sign($request) - { - $key = $this->client->getClassConfig($this, 'developer_key'); - if ($key) { - $this->client->getLogger()->debug( - 'Simple API Access developer key authentication' - ); - $request->getQuery()->set('key', $key); - } - return $request; - } -} diff --git a/src/Google/Cache/Abstract.php b/src/Google/Cache/Abstract.php deleted file mode 100644 index ff19f36ac..000000000 --- a/src/Google/Cache/Abstract.php +++ /dev/null @@ -1,53 +0,0 @@ - - */ -abstract class Google_Cache_Abstract -{ - - abstract public function __construct(Google_Client $client); - - /** - * Retrieves the data for the given key, or false if they - * key is unknown or expired - * - * @param String $key The key who's data to retrieve - * @param boolean|int $expiration Expiration time in seconds - * - */ - abstract public function get($key, $expiration = false); - - /** - * Store the key => $value set. The $value is serialized - * by this function so can be of any type - * - * @param string $key Key of the data - * @param string $value data - */ - abstract public function set($key, $value); - - /** - * Removes the key/data pair for the given $key - * - * @param String $key - */ - abstract public function delete($key); -} diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php index 67a64ddb0..f3bb1afe3 100644 --- a/src/Google/Cache/Apc.php +++ b/src/Google/Cache/Apc.php @@ -15,9 +15,8 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} +use Google\Auth\CacheInterface; +use Psr\Log\LoggerInterface; /** * A persistent storage class based on the APC cache, which is not @@ -27,23 +26,23 @@ * * @author Chris Chabot */ -class Google_Cache_Apc extends Google_Cache_Abstract +class Google_Cache_Apc implements CacheInterface { /** - * @var Google_Client the current client + * @var Psr\Log\LoggerInterface logger */ - private $client; + private $logger; - public function __construct(Google_Client $client) + public function __construct(LoggerInterface $logger = null) { + $this->logger = $logger; + if (! function_exists('apc_add') ) { $error = "Apc functions not available"; - $client->getLogger()->error($error); + $this->log('error', $error); throw new Google_Cache_Exception($error); } - - $this->client = $client; } /** @@ -53,14 +52,16 @@ public function get($key, $expiration = false) { $ret = apc_fetch($key); if ($ret === false) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'APC cache miss', array('key' => $key) ); return false; } if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'APC cache miss (expired)', array('key' => $key, 'var' => $ret) ); @@ -68,7 +69,8 @@ public function get($key, $expiration = false) return false; } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'APC cache hit', array('key' => $key, 'var' => $ret) ); @@ -85,14 +87,16 @@ public function set($key, $value) $rc = apc_store($key, $var); if ($rc == false) { - $this->client->getLogger()->error( + $this->log( + 'error', 'APC cache set failed', array('key' => $key, 'var' => $var) ); throw new Google_Cache_Exception("Couldn't store data"); } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'APC cache set', array('key' => $key, 'var' => $var) ); @@ -104,10 +108,18 @@ public function set($key, $value) */ public function delete($key) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'APC cache delete', array('key' => $key) ); apc_delete($key); } + + private function log($level, $message, $context = array()) + { + if ($this->logger) { + $this->logger->log($level, $message, $context); + } + } } diff --git a/src/Google/Cache/Exception.php b/src/Google/Cache/Exception.php index 2d751d583..6e4102e43 100644 --- a/src/Google/Cache/Exception.php +++ b/src/Google/Cache/Exception.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - class Google_Cache_Exception extends Google_Exception { } diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 47256b89d..45b2ef00d 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -15,9 +15,8 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} +use Google\Auth\CacheInterface; +use Psr\Log\LoggerInterface; /* * This class implements a basic on disk storage. While that does @@ -27,21 +26,21 @@ * * @author Chris Chabot */ -class Google_Cache_File extends Google_Cache_Abstract +class Google_Cache_File implements CacheInterface { const MAX_LOCK_RETRIES = 10; private $path; private $fh; /** - * @var Google_Client the current client + * @var use Psr\Log\LoggerInterface logger */ - private $client; + private $logger; - public function __construct(Google_Client $client) + public function __construct($path, LoggerInterface $logger = null) { - $this->client = $client; - $this->path = $this->client->getClassConfig($this, 'directory'); + $this->path = $path; + $this->logger = $logger; } public function get($key, $expiration = false) @@ -50,7 +49,8 @@ public function get($key, $expiration = false) $data = false; if (!file_exists($storageFile)) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'File cache miss', array('key' => $key, 'file' => $storageFile) ); @@ -60,7 +60,8 @@ public function get($key, $expiration = false) if ($expiration) { $mtime = filemtime($storageFile); if ((time() - $mtime) >= $expiration) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'File cache miss (expired)', array('key' => $key, 'file' => $storageFile) ); @@ -74,7 +75,8 @@ public function get($key, $expiration = false) $data = fread($this->fh, filesize($storageFile)); $data = unserialize($data); } else { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Cache file was empty', array('file' => $storageFile) ); @@ -82,7 +84,8 @@ public function get($key, $expiration = false) $this->unlock($storageFile); } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'File cache hit', array('key' => $key, 'file' => $storageFile, 'var' => $data) ); @@ -100,12 +103,14 @@ public function set($key, $value) $result = fwrite($this->fh, $data); $this->unlock($storageFile); - $this->client->getLogger()->debug( + $this->log( + 'debug', 'File cache set', array('key' => $key, 'file' => $storageFile, 'var' => $value) ); } else { - $this->client->getLogger()->notice( + $this->log( + 'notice', 'File cache set failed', array('key' => $key, 'file' => $storageFile) ); @@ -116,14 +121,16 @@ public function delete($key) { $file = $this->getCacheFile($key); if (file_exists($file) && !unlink($file)) { - $this->client->getLogger()->error( + $this->log( + 'error', 'File cache delete failed', array('key' => $key, 'file' => $file) ); throw new Google_Cache_Exception("Cache file could not be deleted"); } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'File cache delete', array('key' => $key, 'file' => $file) ); @@ -166,7 +173,8 @@ private function acquireWriteLock($storageFile) { $rc = $this->acquireLock(LOCK_EX, $storageFile); if (!$rc) { - $this->client->getLogger()->notice( + $this->log( + 'notice', 'File cache write lock failed', array('file' => $storageFile) ); @@ -180,7 +188,8 @@ private function acquireLock($type, $storageFile) $mode = $type == LOCK_EX ? "w" : "r"; $this->fh = fopen($storageFile, $mode); if (!$this->fh) { - $this->client->getLogger()->error( + $this->log( + 'error', 'Failed to open file during lock acquisition', array('file' => $storageFile) ); @@ -206,4 +215,11 @@ public function unlock($storageFile) flock($this->fh, LOCK_UN); } } + + private function log($level, $message, $context = array()) + { + if ($this->logger) { + $this->logger->log($level, $message, $context); + } + } } diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php index 4a415afa7..0d6183699 100644 --- a/src/Google/Cache/Memcache.php +++ b/src/Google/Cache/Memcache.php @@ -15,9 +15,8 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} +use Google\Auth\CacheInterface; +use Psr\Log\LoggerInterface; /** * A persistent storage class based on the memcache, which is not @@ -29,7 +28,7 @@ * * @author Chris Chabot */ -class Google_Cache_Memcache extends Google_Cache_Abstract +class Google_Cache_Memcache implements CacheInterface { private $connection = false; private $mc = false; @@ -37,35 +36,23 @@ class Google_Cache_Memcache extends Google_Cache_Abstract private $port; /** - * @var Google_Client the current client + * @var use Psr\Log\LoggerInterface logger */ - private $client; + private $logger; - public function __construct(Google_Client $client) + public function __construct($host = null, $port = null, LoggerInterface $logger = null) { + $this->logger = $logger; + if (!function_exists('memcache_connect') && !class_exists("Memcached")) { $error = "Memcache functions not available"; - $client->getLogger()->error($error); + $this->log('error', $error); throw new Google_Cache_Exception($error); } - $this->client = $client; - - if ($client->isAppEngine()) { - // No credentials needed for GAE. - $this->mc = new Memcached(); - $this->connection = true; - } else { - $this->host = $client->getClassConfig($this, 'host'); - $this->port = $client->getClassConfig($this, 'port'); - if (empty($this->host) || (empty($this->port) && (string) $this->port != "0")) { - $error = "You need to supply a valid memcache host and port"; - - $client->getLogger()->error($error); - throw new Google_Cache_Exception($error); - } - } + $this->host = $host; + $this->port = $port; } /** @@ -81,14 +68,16 @@ public function get($key, $expiration = false) $ret = memcache_get($this->connection, $key); } if ($ret === false) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Memcache cache miss', array('key' => $key) ); return false; } if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Memcache cache miss (expired)', array('key' => $key, 'var' => $ret) ); @@ -96,7 +85,8 @@ public function get($key, $expiration = false) return false; } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Memcache cache hit', array('key' => $key, 'var' => $ret) ); @@ -123,7 +113,7 @@ public function set($key, $value) $rc = memcache_set($this->connection, $key, $data, false); } if ($rc == false) { - $this->client->getLogger()->error( + $this->log('error', 'Memcache cache set failed', array('key' => $key, 'var' => $data) ); @@ -131,7 +121,8 @@ public function set($key, $value) throw new Google_Cache_Exception("Couldn't store data in cache"); } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Memcache cache set', array('key' => $key, 'var' => $data) ); @@ -150,7 +141,8 @@ public function delete($key) memcache_delete($this->connection, $key, 0); } - $this->client->getLogger()->debug( + $this->log( + 'debug', 'Memcache cache delete', array('key' => $key) ); @@ -177,8 +169,15 @@ private function connect() if (! $this->connection) { $error = "Couldn't connect to memcache server"; - $this->client->getLogger()->error($error); + $this->log('error', $error); throw new Google_Cache_Exception($error); } } + + private function log($level, $message, $context = array()) + { + if ($this->logger) { + $this->logger->log($level, $message, $context); + } + } } diff --git a/src/Google/Cache/Null.php b/src/Google/Cache/Null.php index 21b6a1cb3..723df9f93 100644 --- a/src/Google/Cache/Null.php +++ b/src/Google/Cache/Null.php @@ -15,22 +15,15 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} +use Google\Auth\CacheInterface; /** * A blank storage class, for cases where caching is not * required. */ -class Google_Cache_Null extends Google_Cache_Abstract +class Google_Cache_Null implements CacheInterface { - public function __construct(Google_Client $client) - { - - } - - /** + /** * @inheritDoc */ public function get($key, $expiration = false) diff --git a/src/Google/Client.php b/src/Google/Client.php index 99f9a123e..0ea786d80 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -15,14 +15,19 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/autoload.php'; -} - +use Google\Auth\ApplicationDefaultCredentials; +use Google\Auth\CacheInterface; +use Google\Auth\OAuth2; +use Google\Auth\ScopedAccessToken; +use Google\Auth\Simple; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; +use GuzzleHttp\Collection; use GuzzleHttp\Post\PostBodyInterface; use GuzzleHttp\Stream\Stream; +use Psr\Log\LoggerInterface; +use Monolog\Logger; + /** * The Google API Client * http://code.google.com/p/google-api-php-client/ @@ -31,16 +36,30 @@ class Google_Client { const LIBVER = "2.0.0-alpha"; const USER_AGENT_SUFFIX = "google-api-php-client/"; + const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; + const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v3/token'; + const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; + /** - * @var Google_Auth_Interface $auth + * @var Google\Auth\OAuth2 $auth */ private $auth; /** - * @var Google_Cache_Abstract $cache + * @var GuzzleHttp\ClientInterface $http + */ + private $http; + + /** + * @var Google\Auth\CacheInterface $cache */ private $cache; + /** + * @var array access token + */ + private $token; + /** * @var Google_Config $config */ @@ -58,10 +77,21 @@ class Google_Client /** @var array $scopes */ // Scopes requested by the client - protected $requestedScopes = array(); - - // definitions of services that are discovered. - protected $services = array(); + protected $requestedScopes = []; + + public static $retryConfig = [ + // Delays are specified in seconds + 'initial_delay' => 1, + 'max_delay' => 60, + // Base number for exponential backoff + 'factor' => 2, + // A random number between -jitter and jitter will be added to the + // factor on each iteration to allow for better distribution of + // retries. + 'jitter' => .5, + // Maximum number of retries allowed + 'retries' => 0 + ]; // Used to track authenticated state, can't discover services after doing authenticate() private $authenticated = false; @@ -71,35 +101,38 @@ class Google_Client * * @param $config Google_Config or string for the ini file to load */ - public function __construct($config = null, ClientInterface $httpClient = null) + public function __construct($config = array()) { - if (is_string($config) && strlen($config)) { - $config = new Google_Config($config); - } else if ( !($config instanceof Google_Config)) { - $config = new Google_Config(); + $this->config = Collection::fromConfig($config, [ + 'application_name' => '', - if ($this->isAppEngine()) { - // Automatically use Memcache if we're in AppEngine. - $config->setCacheClass('Google_Cache_Memcache'); - } + // Don't change these unless you're working against a special development + // or testing environment. + 'base_path' => 'https://www.googleapis.com', - if ($this->isAppEngine()) { - // Automatically disable compress.zlib, as currently unsupported. - $config->setClassConfig('request', 'disable_gzip', true); - } - } + // https://developers.google.com/console + 'client_id' => '', + 'client_secret' => '', + 'redirect_uri' => null, + 'state' => null, - if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { - if (function_exists('curl_version') && function_exists('curl_exec') - && !$this->isAppEngine()) { - $config->setIoClass("Google_IO_Curl"); - } else { - $config->setIoClass("Google_IO_Stream"); - } - } + // Simple API access key, also from the API console. Ensure you get + // a Server key, and not a Browser key. + 'developer_key' => '', - $this->config = $config; - $this->httpClient = $httpClient; + // Other OAuth2 parameters. + 'hd' => '', + 'prompt' => '', + 'openid.realm' => '', + 'include_granted_scopes' => null, + 'login_hint' => '', + 'request_visible_actions' => '', + 'access_type' => 'online', + 'approval_prompt' => 'auto', + + // misc configuration + 'enable_gzip_for_uploads' => false, + ]); } /** @@ -124,139 +157,181 @@ public function getLibraryVersion() */ public function authenticate($code, $crossClient = false) { - $this->authenticated = true; - return $this->getAuth()->authenticate($code, $crossClient); - } + if (strlen($code) == 0) { + throw new InvalidArgumentException("Invalid code"); + } - /** - * Set the auth config from the JSON string provided. - * This structure should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string $json the configuration json - * @throws Google_Exception - */ - public function setAuthConfig($json) - { - $data = json_decode($json); - if (isset($data->installed) || isset($data->web)) { - $key = isset($data->installed) ? 'installed' : 'web'; - $this->setClientId($data->$key->client_id); - $this->setClientSecret($data->$key->client_secret); - if (isset($data->$key->redirect_uris)) { - $this->setRedirectUri($data->$key->redirect_uris[0]); - } - } else { - $this->getAuth()->setSigningKey($data->private_key); - $this->setClientId($data->client_email); + $auth = $this->getOAuth2Service(); + $auth->setCode($code); + $auth->setRedirectUri($this->getConfig('redirect_uri')); + + $creds = $auth->fetchAuthToken($this->getHttpClient()); + if ($creds && isset($creds['access_token'])) { + $this->setAccessToken($creds); } + + return $creds; } /** - * Set the auth config from the JSON file in the path - * provided. This should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string $file the file location of the client json + * Create a URL to obtain user authorization. + * The authorization endpoint allows the user to first + * authenticate, and then grant/deny the access request. + * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. + * @return string */ - public function setAuthConfigFile($file) + public function createAuthUrl($scope = null) { - $this->setAuthConfig(file_get_contents($file)); + if (empty($scope)) { + $scope = $this->prepareScopes(); + } + if (is_array($scope)) { + $scope = implode(' ', $scope); + } + + $params = array_filter([ + 'access_type' => $this->config->get('access_type'), + 'approval_prompt' => $this->config->get('prompt') ? null : $this->config->get('approval_prompt'), + 'hd' => $this->config->get('hosted_domain'), + 'include_granted_scopes' => + $this->config->get('include_granted_scopes') === null + ? null + : var_export($this->config->get('include_granted_scopes'), true), + 'login_hint' => $this->config->get('login_hint'), + 'openid.realm' => $this->config->get('openid.realm'), + 'prompt' => $this->config->get('prompt'), + 'response_type' => 'code', + 'scope' => $scope, + 'state' => $this->config->get('state'), + ]); + + // If the list of scopes contains plus.login, add request_visible_actions + // to auth URL. + $rva = $this->config->get('request_visible_actions'); + if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { + $params['request_visible_actions'] = $rva; + } + + $auth = $this->getOAuth2Service(); + + return (string) $auth->buildFullAuthorizationUri($params); } /** - * @throws Google_Auth_Exception - * @return array - * @visible For Testing + * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * @param string $refreshToken */ - public function prepareScopes() + public function refreshToken($refreshToken) { - if (empty($this->requestedScopes)) { - throw new Google_Auth_Exception("No scopes specified"); + $this->getLogger()->info('OAuth2 access token refresh'); + $auth = $this->getOAuth2Service(); + $auth->setRefreshToken($refreshToken); + + $creds = $auth->fetchAuthToken($this->getHttpClient()); + if ($creds && isset($creds['access_token'])) { + $this->setAccessToken($creds); } - $scopes = implode(' ', $this->requestedScopes); - return $scopes; + + return $creds; } /** - * Set the OAuth 2.0 access token using the string that resulted from calling createAuthUrl() - * or Google_Client#getAccessToken(). - * @param string $accessToken JSON encoded string containing in the following format: - * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", - * "expires_in":3600, "id_token":"TOKEN", "created":1320790426} + * Fetches a fresh access token with a given assertion token. + * @param Google_Auth_AssertionCredentials $assertionCredentials optional. + * @return void */ - public function setAccessToken($accessToken) + public function refreshTokenWithAssertion() { - if ($accessToken == 'null') { - $accessToken = null; + if (is_null($this->config->get('signing_key'))) { + throw new LogicException('config parameter "signing_key" must be set to' + . ' refresh a token with assertion'); } - $this->getAuth()->setAccessToken($accessToken); - } + $this->getLogger()->log( + 'info', + 'OAuth2 access token refresh with Signed JWT assertion grants.' + ); + $auth = $this->getOAuth2Service(); + $auth->setGrantType(OAuth2::JWT_URN); + $auth->setAudience(self::OAUTH2_TOKEN_URI); + $auth->setScope($this->getScopes()); - /** - * Set the authenticator object - * @param Google_Auth_Interface $auth - */ - public function setAuth(Google_Auth_Interface $auth) - { - $this->config->setAuthClass(get_class($auth)); - $this->auth = $auth; - } + if ($creds && isset($creds['access_token'])) { + $this->setAccessToken($creds); + } - /** - * Set the Cache object - * @param Google_Cache_Abstract $cache - */ - public function setCache(Google_Cache_Abstract $cache) - { - $this->config->setCacheClass(get_class($cache)); - $this->cache = $cache; + return $creds; } - /** - * Set the Logger object - * @param Google_Logger_Abstract $logger - */ - public function setLogger(Google_Logger_Abstract $logger) + public function attachAuthListener(ClientInterface $http) { - $this->config->setLoggerClass(get_class($logger)); - $this->logger = $logger; + if ($key = $this->getConfig('developer_key')) { + // if a developer key is set, authorize using that + $simple = new Simple(['key' => $key]); + $http->setDefaultOption('auth', 'simple'); + $http->getEmitter()->attach($simple); + $this->getLogger()->log('info', 'Authenticated with API key'); + } else { + $scopes = $this->prepareScopes(); + if ($this->token) { + // if a token has been set manually, authorize using it instead + if ($this->isAccessTokenExpired() && isset($this->token['refresh_token'])) { + // try to get another access token with the refresh token + $this->refreshToken($this->token['refresh_token']); + } + $accessToken = $this->token['access_token']; + $scoped = new ScopedAccessToken( + function($scopes) use ($accessToken) { + return $accessToken; + }, + $scopes, + [] + ); + $http->setDefaultOption('auth', 'scoped'); + $http->getEmitter()->attach($scoped); + $this->getLogger()->log('info', 'Authenticated with access token'); + } else { + try { + // try to fetch credentials using ApplicationDefaultCredentials, if applicable + $fetcher = ApplicationDefaultCredentials::getFetcher( + $scopes, + $this->getHttpClient(), + array(), + $this->cache + ); + $http->setDefaultOption('auth', 'google_auth'); + $http->getEmitter()->attach($fetcher); + $this->getLogger()->log('info', 'Authenticated with Application Default Credentials'); + } catch (DomainException $e) { + // no auth + $this->getLogger()->log('info', $e->getMessage()); + } + } + } } /** - * Construct the OAuth 2.0 authorization request URI. - * @return string + * @param string|array $token + * @throws InvalidArgumentException */ - public function createAuthUrl() + public function setAccessToken($token) { - $scopes = $this->prepareScopes(); - return $this->getAuth()->createAuthUrl($scopes); + if (is_string($token)) { + $token = json_decode($token, true); + } + if ($token == null) { + throw new InvalidArgumentException('invalid json token'); + } + if (!isset($token['access_token'])) { + throw new InvalidArgumentException("Invalid token format"); + } + $this->token = $token; } - /** - * Get the OAuth 2.0 access token. - * @return string $accessToken JSON encoded string in the following format: - * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", - * "expires_in":3600,"id_token":"TOKEN", "created":1320790426} - */ public function getAccessToken() { - $token = $this->getAuth()->getAccessToken(); - // The response is json encoded, so could be the string null. - // It is arguable whether this check should be here or lower - // in the library. - return (null == $token || 'null' == $token || '[]' == $token) ? null : $token; - } - - /** - * Get the OAuth 2.0 refresh token. - * @return string $refreshToken refresh token or null if not available - */ - public function getRefreshToken() - { - return $this->getAuth()->getRefreshToken(); + return $this->token; } /** @@ -265,55 +340,23 @@ public function getRefreshToken() */ public function isAccessTokenExpired() { - return $this->getAuth()->isAccessTokenExpired(); - } - - /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state - */ - public function setState($state) - { - $this->getAuth()->setState($state); - } - - /** - * @param string $accessType Possible values for access_type include: - * {@code "offline"} to request offline access from the user. - * {@code "online"} to request online access from the user. - */ - public function setAccessType($accessType) - { - $this->config->setAccessType($accessType); - } + if (!$this->token) { + return true; + } - /** - * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. (This is the default value) - * {@code "auto"} to request auto-approval when possible. - */ - public function setApprovalPrompt($approvalPrompt) - { - $this->config->setApprovalPrompt($approvalPrompt); - } + $created = 0; + if (isset($this->token['created'])) { + $created = $this->token['created']; + } elseif (isset($this->token['id_token'])) { + $payload = $this->verifyIdToken(); + $created = $payload ? $payload->iat : 0; + } - /** - * Set the login hint, email address or sub id. - * @param string $loginHint - */ - public function setLoginHint($loginHint) - { - $this->config->setLoginHint($loginHint); - } + // If the token is set to expire in the next 30 seconds. + $expired = ($created + + ($this->token['expires_in'] - 30)) < time(); - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $applicationName - */ - public function setApplicationName($applicationName) - { - $this->config->setApplicationName($applicationName); + return $expired; } /** @@ -322,7 +365,12 @@ public function setApplicationName($applicationName) */ public function setClientId($clientId) { - $this->config->setClientId($clientId); + $this->config->set('client_id', $clientId); + } + + public function getClientId() + { + return $this->getConfig('client_id'); } /** @@ -331,7 +379,12 @@ public function setClientId($clientId) */ public function setClientSecret($clientSecret) { - $this->config->setClientSecret($clientSecret); + $this->config->set('client_secret', $clientSecret); + } + + public function getClientSecret() + { + return $this->config->get('client_secret'); } /** @@ -340,23 +393,12 @@ public function setClientSecret($clientSecret) */ public function setRedirectUri($redirectUri) { - $this->config->setRedirectUri($redirectUri); + $this->config->set('redirect_uri', $redirectUri); } - /** - * If 'plus.login' is included in the list of requested scopes, you can use - * this method to define types of app activities that your app will write. - * You can find a list of available types here: - * @link https://developers.google.com/+/api/moment-types - * - * @param array $requestVisibleActions Array of app activity types - */ - public function setRequestVisibleActions($requestVisibleActions) + public function getRedirectUri() { - if (is_array($requestVisibleActions)) { - $requestVisibleActions = join(" ", $requestVisibleActions); - } - $this->config->setRequestVisibleActions($requestVisibleActions); + return $this->config->get('redirect_uri'); } /** @@ -366,60 +408,17 @@ public function setRequestVisibleActions($requestVisibleActions) */ public function setDeveloperKey($developerKey) { - $this->config->setDeveloperKey($developerKey); - } - - /** - * Set the hd (hosted domain) parameter streamlines the login process for - * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * @param $hd string - the domain to use. - */ - public function setHostedDomain($hd) - { - $this->config->setHostedDomain($hd); - } - - /** - * Set the prompt hint. Valid values are none, consent and select_account. - * If no value is specified and the user has not previously authorized - * access, then the user is shown a consent screen. - * @param $prompt string - */ - public function setPrompt($prompt) - { - $this->config->setPrompt($prompt); + $this->config->set('developer_key', $developerKey); } /** - * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth - * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which - * an authentication request is valid. - * @param $realm string - the URL-space to use. - */ - public function setOpenidRealm($realm) - { - $this->config->setOpenidRealm($realm); - } - - /** - * If this is provided with the value true, and the authorization request is - * granted, the authorization will include any previous authorizations - * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. - */ - public function setIncludeGrantedScopes($include) - { - $this->config->setIncludeGrantedScopes($include); - } - - /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. - * @param string $refreshToken + * Set OAuth 2.0 "state" parameter to achieve per-request customization. + * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 + * @param string $state */ - public function refreshToken($refreshToken) + public function setState($state) { - $this->getAuth()->refreshToken($refreshToken); + $this->config->set('state', $state); } /** @@ -431,7 +430,12 @@ public function refreshToken($refreshToken) */ public function revokeToken($token = null) { - return $this->getAuth()->revokeToken($token); + $token = new Google_AccessToken( + $token ?: $this->getAccessToken(), + $this->getHttpClient() + ); + + return $token->revokeToken(); } /** @@ -444,24 +448,12 @@ public function revokeToken($token = null) */ public function verifyIdToken($token = null) { - return $this->getAuth()->verifyIdToken($token); - } + $token = new Google_AccessToken( + $token ?: $this->getAccessToken(), + $this->getHttpClient() + ); - /** - * Verify a JWT that was signed with your own certificates. - * - * @param $id_token string The JWT token - * @param $cert_location array of certificates - * @param $audience string the expected consumer of the token - * @param $issuer string the expected issuer, defaults to Google - * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @return mixed token information if valid, false if not - */ - public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null) - { - $auth = new Google_Auth_OAuth2($this); - $certs = $auth->retrieveCertsFromLocation($cert_location); - return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry); + return $token->verifyIdToken(); } /** @@ -505,27 +497,17 @@ public function getScopes() } /** - * Declare whether batch calls should be used. This may increase throughput - * by making multiple requests in one connection. - * - * @param boolean $useBatch True if the batch support should - * be enabled. Defaults to False. - */ - public function setUseBatch($useBatch) - { - // This is actually an alias for setDefer. - $this->setDefer($useBatch); - } - - /** - * Declare whether making API calls should make the call immediately, or - * return a request which can be called with ->execute(); - * - * @param boolean $defer True if calls should not be executed right away. + * @throws Google_Auth_Exception + * @return array + * @visible For Testing */ - public function setDefer($defer) + public function prepareScopes() { - $this->deferExecution = $defer; + if (empty($this->requestedScopes)) { + return null; + } + $scopes = implode(' ', $this->requestedScopes); + return $scopes; } /** @@ -539,19 +521,14 @@ public function execute($request, $expectedClass = null) { $request->setHeader( 'User-Agent', - $this->getApplicationName() + $this->getConfig('application_name') . " " . self::USER_AGENT_SUFFIX . $this->getLibraryVersion() ); $http = $this->getHttpClient(); - if ($this->getClassConfig('request', 'disable_gzip')) { - $http->setDefaultOption('disable_gzip', true); - } - $config = $this->getClassConfig('Google_Task_Runner'); - $retryMap = $this->getClassConfig('Google_Service_Exception', 'retry_map'); - $result = Google_Http_REST::execute($http, $request, $config, $retryMap); + $result = Google_Http_REST::execute($http, $request, static::$retryConfig); $expectedClass = $expectedClass ?: $request->getHeader('X-Php-Expected-Class'); if ($expectedClass) { $result = new $expectedClass($result); @@ -560,6 +537,86 @@ public function execute($request, $expectedClass = null) return $result; } + /** + * Declare whether batch calls should be used. This may increase throughput + * by making multiple requests in one connection. + * + * @param boolean $useBatch True if the batch support should + * be enabled. Defaults to False. + */ + public function setUseBatch($useBatch) + { + // This is actually an alias for setDefer. + $this->setDefer($useBatch); + } + + /** + * Are we running in Google AppEngine? + * return bool + */ + public function isAppEngine() + { + return (isset($_SERVER['SERVER_SOFTWARE']) && + strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); + } + + public function setConfig($name, $value) + { + $this->config->set($name, $value); + } + + public function getConfig($name, $default = null) + { + return $this->config->get($name) ?: $default; + } + + /** + * Set the auth config from new or deprecated JSON config. + * This structure should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string|array|stdClass $json the configuration json + * @throws Google_Exception + */ + public function setAuthConfig($json) + { + if (is_string($json)) { + $data = json_decode($json); + } elseif (is_array($json)) { + $data = (object) $json; + } elseif (!$json instanceof stdClass) { + throw new InvalidArgumentException('invalid auth config type'); + } + + $key = isset($data->installed) ? 'installed' : 'web'; + if (isset($data->$key)) { + // old-style + $this->setClientId($data->$key->client_id); + $this->setClientSecret($data->$key->client_secret); + if (isset($data->$key->redirect_uris)) { + $this->setRedirectUri($data->$key->redirect_uris[0]); + } + } else { + // new-style + $this->setClientId($data->client_id); + $this->setClientSecret($data->client_secret); + if (isset($data->redirect_uris)) { + $this->setRedirectUri($data->redirect_uris[0]); + } + } + } + + /** + * Declare whether making API calls should make the call immediately, or + * return a request which can be called with ->execute(); + * + * @param boolean $defer True if calls should not be executed right away. + */ + public function setDefer($defer) + { + $this->deferExecution = $defer; + } + /** * Whether or not to return raw requests * @return boolean @@ -570,116 +627,124 @@ public function shouldDefer() } /** - * @return Google_Auth_Interface Authentication implementation + * @return Google\Auth\OAuth2 implementation */ - public function getAuth() + public function getOAuth2Service() { if (!isset($this->auth)) { - $class = $this->config->getAuthClass(); - $this->auth = new $class($this); + $this->auth = $this->createOAuth2Service(); } + return $this->auth; } /** - * @return Google_Cache_Abstract Cache implementation + * create a default google auth object */ - public function getCache() + public function createOAuth2Service() { - if (!isset($this->cache)) { - $class = $this->config->getCacheClass(); - $this->cache = new $class($this); - } - return $this->cache; + $auth = new OAuth2([ + 'clientId' => $this->getClientId(), + 'clientSecret' => $this->getClientSecret(), + 'authorizationUri' => self::OAUTH2_AUTH_URL, + 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, + 'redirectUri' => $this->getRedirectUri(), + 'issuer' => $this->config->get('client_id'), + 'signingKey' => $this->config->get('signing_key'), + 'signingAlgorithm' => $this->config->get('signing_algorithm'), + ]); + + return $auth; } /** - * @return Google_Logger_Abstract Logger implementation + * Set the Cache object + * @param Google\Auth\CacheInterface $cache */ - public function getLogger() + public function setCache(CacheInterface $cache) { - if (!isset($this->logger)) { - $class = $this->config->getLoggerClass(); - $this->logger = new $class($this); - } - return $this->logger; + $this->cache = $cache; } /** - * Retrieve custom configuration for a specific class. - * @param $class string|object - class or instance of class to retrieve - * @param $key string optional - key to retrieve - * @return array + * @return Google\Auth\CacheInterface Cache implementation */ - public function getClassConfig($class, $key = null) + public function getCache() { - if (!is_string($class)) { - $class = get_class($class); + if (!isset($this->cache)) { + $this->cache = $this->createDefaultCache(); } - return $this->config->getClassConfig($class, $key); + + return $this->cache; } - /** - * Set configuration specific to a given class. - * $config->setClassConfig('Google_Cache_File', - * array('directory' => '/tmp/cache')); - * @param $class string|object - The class name for the configuration - * @param $config string key or an array of configuration values - * @param $value string optional - if $config is a key, the value - * - */ - public function setClassConfig($class, $config, $value = null) + protected function createDefaultCache() { - if (!is_string($class)) { - $class = get_class($class); + if ($this->isAppEngine()) { + $cache = new Google_Cache_Memcache(); + } else { + $cacheDir = sys_get_temp_dir() . '/google-api-php-client'; + $cache = new Google_Cache_File($cacheDir); } - $this->config->setClassConfig($class, $config, $value); + return $cache; } /** - * @return string the base URL to use for calls to the APIs + * Set the Logger object + * @param Psr\Log\LoggerInterface $logger */ - public function getBasePath() + public function setLogger(LoggerInterface $logger) { - return $this->config->getBasePath(); + $this->logger = $logger; } /** - * @return string the name of the application + * @return Psr\Log\LoggerInterface implementation */ - public function getApplicationName() + public function getLogger() { - return $this->config->getApplicationName(); + if (!isset($this->logger)) { + $this->logger = $this->createDefaultLogger(); + } + + return $this->logger; } - /** - * Are we running in Google AppEngine? - * return bool - */ - public function isAppEngine() + protected function createDefaultLogger() { - return (isset($_SERVER['SERVER_SOFTWARE']) && - strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); + $logger = new Logger('google-api-php-client'); + + return $logger; } - public function setHttpClient(ClientInterface $httpClient) + /** + * Set the Http Client object + * @param GuzzleHttp\ClientInterface $http + */ + public function setHttpClient(ClientInterface $http) { - $this->httpClient = $httpClient; + $this->http = $http; } + /** + * @return GuzzleHttp\ClientInterface implementation + */ public function getHttpClient() { - if (is_null($this->httpClient)) { - $this->httpClient = $this->createDefaultHttpClient(); + if (is_null($this->http)) { + $this->http = $this->createDefaultHttpClient(); } - return $this->httpClient; + return $this->http; } protected function createDefaultHttpClient() { - $options = array('base_url' => $this->getBasePath()); + $options = [ + 'base_url' => $this->config->get('base_path'), + 'defaults' => ['auth' => 'google_auth'], + ]; return new Client($options); } diff --git a/src/Google/Config.php b/src/Google/Config.php deleted file mode 100644 index 4ca8d903e..000000000 --- a/src/Google/Config.php +++ /dev/null @@ -1,448 +0,0 @@ -configuration = array( - // The application_name is included in the User-Agent HTTP header. - 'application_name' => '', - - // Which Authentication, Storage and HTTP IO classes to use. - 'auth_class' => 'Google_Auth_OAuth2', - 'io_class' => self::USE_AUTO_IO_SELECTION, - 'cache_class' => 'Google_Cache_File', - 'logger_class' => 'Google_Logger_Null', - - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => 'https://www.googleapis.com', - - // Definition of class specific values, like file paths and so on. - 'classes' => array( - 'Google_IO_Abstract' => array( - 'request_timeout_seconds' => 100, - ), - 'Google_Logger_Abstract' => array( - 'level' => 'debug', - 'log_format' => "[%datetime%] %level%: %message% %context%\n", - 'date_format' => 'd/M/Y:H:i:s O', - 'allow_newlines' => true - ), - 'Google_Logger_File' => array( - 'file' => 'php://stdout', - 'mode' => 0640, - 'lock' => false, - ), - 'request' => array( - // Disable the use of gzip on calls if set to true. Defaults to false. - 'disable_gzip' => self::GZIP_ENABLED, - - // We default gzip to disabled on uploads even if gzip is otherwise - // enabled, due to some issues seen with small packet sizes for uploads. - // Please test with this option before enabling gzip for uploads in - // a production environment. - 'enable_gzip_for_uploads' => self::GZIP_UPLOADS_DISABLED, - ), - // If you want to pass in OAuth 2.0 settings, they will need to be - // structured like this. - 'Google_Auth_OAuth2' => array( - // Keys for OAuth 2.0 access, see the API console at - // https://developers.google.com/console - 'client_id' => '', - 'client_secret' => '', - 'redirect_uri' => null, - - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', - - // Other parameters. - 'hd' => '', - 'prompt' => '', - 'openid.realm' => '', - 'include_granted_scopes' => '', - 'login_hint' => '', - 'request_visible_actions' => '', - 'access_type' => 'online', - 'approval_prompt' => 'auto', - 'federated_signon_certs_url' => - 'https://www.googleapis.com/oauth2/v1/certs', - ), - 'Google_Task_Runner' => array( - // Delays are specified in seconds - 'initial_delay' => 1, - 'max_delay' => 60, - // Base number for exponential backoff - 'factor' => 2, - // A random number between -jitter and jitter will be added to the - // factor on each iteration to allow for better distribution of - // retries. - 'jitter' => .5, - // Maximum number of retries allowed - 'retries' => 0 - ), - 'Google_Service_Exception' => array( - 'retry_map' => array( - '500' => self::TASK_RETRY_ALWAYS, - '503' => self::TASK_RETRY_ALWAYS, - 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, - CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, - CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, - CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, - CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, - CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS - ) - ), - // Set a default directory for the file cache. - 'Google_Cache_File' => array( - 'directory' => sys_get_temp_dir() . '/Google_Client' - ) - ), - ); - if ($ini_file_location) { - $ini = parse_ini_file($ini_file_location, true); - if (is_array($ini) && count($ini)) { - $merged_configuration = $ini + $this->configuration; - if (isset($ini['classes']) && isset($this->configuration['classes'])) { - $merged_configuration['classes'] = $ini['classes'] + $this->configuration['classes']; - } - $this->configuration = $merged_configuration; - } - } - } - - /** - * Set configuration specific to a given class. - * $config->setClassConfig('Google_Cache_File', - * array('directory' => '/tmp/cache')); - * @param $class string The class name for the configuration - * @param $config string key or an array of configuration values - * @param $value string optional - if $config is a key, the value - */ - public function setClassConfig($class, $config, $value = null) - { - if (!is_array($config)) { - if (!isset($this->configuration['classes'][$class])) { - $this->configuration['classes'][$class] = array(); - } - $this->configuration['classes'][$class][$config] = $value; - } else { - $this->configuration['classes'][$class] = $config; - } - } - - public function getClassConfig($class, $key = null) - { - if (!isset($this->configuration['classes'][$class])) { - return null; - } - if ($key === null) { - return $this->configuration['classes'][$class]; - } else { - return $this->configuration['classes'][$class][$key]; - } - } - - /** - * Return the configured cache class. - * @return string - */ - public function getCacheClass() - { - return $this->configuration['cache_class']; - } - - /** - * Return the configured logger class. - * @return string - */ - public function getLoggerClass() - { - return $this->configuration['logger_class']; - } - - /** - * Return the configured Auth class. - * @return string - */ - public function getAuthClass() - { - return $this->configuration['auth_class']; - } - - /** - * Set the auth class. - * - * @param $class string the class name to set - */ - public function setAuthClass($class) - { - $prev = $this->configuration['auth_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; - } - $this->configuration['auth_class'] = $class; - } - - /** - * Set the IO class. - * - * @param $class string the class name to set - */ - public function setIoClass($class) - { - $prev = $this->configuration['io_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; - } - $this->configuration['io_class'] = $class; - } - - /** - * Set the cache class. - * - * @param $class string the class name to set - */ - public function setCacheClass($class) - { - $prev = $this->configuration['cache_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; - } - $this->configuration['cache_class'] = $class; - } - - /** - * Set the logger class. - * - * @param $class string the class name to set - */ - public function setLoggerClass($class) - { - $prev = $this->configuration['logger_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; - } - $this->configuration['logger_class'] = $class; - } - - /** - * Return the configured IO class. - * - * @return string - */ - public function getIoClass() - { - return $this->configuration['io_class']; - } - - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $name - */ - public function setApplicationName($name) - { - $this->configuration['application_name'] = $name; - } - - /** - * @return string the name of the application - */ - public function getApplicationName() - { - return $this->configuration['application_name']; - } - - /** - * Set the client ID for the auth class. - * @param $clientId string - the API console client ID - */ - public function setClientId($clientId) - { - $this->setAuthConfig('client_id', $clientId); - } - - /** - * Set the client secret for the auth class. - * @param $secret string - the API console client secret - */ - public function setClientSecret($secret) - { - $this->setAuthConfig('client_secret', $secret); - } - - /** - * Set the redirect uri for the auth class. Note that if using the - * Javascript based sign in flow, this should be the string 'postmessage'. - * - * @param $uri string - the URI that users should be redirected to - */ - public function setRedirectUri($uri) - { - $this->setAuthConfig('redirect_uri', $uri); - } - - /** - * Set the app activities for the auth class. - * @param $rva string a space separated list of app activity types - */ - public function setRequestVisibleActions($rva) - { - $this->setAuthConfig('request_visible_actions', $rva); - } - - /** - * Set the the access type requested (offline or online.) - * @param $access string - the access type - */ - public function setAccessType($access) - { - $this->setAuthConfig('access_type', $access); - } - - /** - * Set when to show the approval prompt (auto or force) - * @param $approval string - the approval request - */ - public function setApprovalPrompt($approval) - { - $this->setAuthConfig('approval_prompt', $approval); - } - - /** - * Set the login hint (email address or sub identifier) - * @param $hint string - */ - public function setLoginHint($hint) - { - $this->setAuthConfig('login_hint', $hint); - } - - /** - * Set the developer key for the auth class. Note that this is separate value - * from the client ID - if it looks like a URL, its a client ID! - * @param $key string - the API console developer key - */ - public function setDeveloperKey($key) - { - $this->setAuthConfig('developer_key', $key); - } - - /** - * Set the hd (hosted domain) parameter streamlines the login process for - * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * - * This should not be used to ensure security on your application - check - * the hd values within an id token after sign in to ensure that the user - * is from the domain you were expecting. - * - * @param $hd string - the domain to use. - */ - public function setHostedDomain($hd) - { - $this->setAuthConfig('hd', $hd); - } - - /** - * Set the prompt hint. Valid values are none, consent and select_account. - * If no value is specified and the user has not previously authorized - * access, then the user is shown a consent screen. - * @param $prompt string - */ - public function setPrompt($prompt) - { - $this->setAuthConfig('prompt', $prompt); - } - - /** - * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth - * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which - * an authentication request is valid. - * @param $realm string - the URL-space to use. - */ - public function setOpenidRealm($realm) - { - $this->setAuthConfig('openid.realm', $realm); - } - - /** - * If this is provided with the value true, and the authorization request is - * granted, the authorization will include any previous authorizations - * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. - */ - public function setIncludeGrantedScopes($include) - { - $this->setAuthConfig( - 'include_granted_scopes', - $include ? "true" : "false" - ); - } - - /** - * @return string the base URL to use for API calls - */ - public function getBasePath() - { - return $this->configuration['base_path']; - } - - /** - * Set the auth configuration for the current auth class. - * @param $key - the key to set - * @param $value - the parameter value - */ - private function setAuthConfig($key, $value) - { - if (!isset($this->configuration['classes'][$this->getAuthClass()])) { - $this->configuration['classes'][$this->getAuthClass()] = array(); - } - $this->configuration['classes'][$this->getAuthClass()][$key] = $value; - } -} diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index c567d2220..20381d6d1 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -19,10 +19,6 @@ use GuzzleHttp\Stream\Stream; use GuzzleHttp\Url; -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - /** * Manage large file uploads, which may be media but can be any type * of sizable data. diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Parallel.php similarity index 95% rename from src/Google/Http/Batch.php rename to src/Google/Http/Parallel.php index 333232e0b..a28fdd3c9 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Parallel.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - use GuzzleHttp\Pool; use GuzzleHttp\Message\RequestInterface; use GuzzleHttp\Message\ResponseInterface; @@ -27,7 +23,7 @@ /** * Class to handle batched requests to the Google API service. */ -class Google_Http_Batch +class Google_Http_Parallel { /** @var array service requests to be executed. */ private $requests = array(); @@ -71,6 +67,7 @@ protected function parseResponse(BatchResults $responses) $response = $responses[$i]; if ( $response instanceof ResponseInterface && + $response->getStatusCode() < 300 && $class = $this->requests[$requestKeys[$j]]->getHeader('X-Php-Expected-Class') ) { $response = new $class($response->json()); diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index da2f43003..6bf51fa00 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -19,10 +19,6 @@ use GuzzleHttp\Message\ResponseInterface; use GuzzleHttp\ClientInterface; -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - /** * This class implements the RESTful transport of apiServiceRequest()'s */ @@ -42,15 +38,19 @@ public static function execute( ClientInterface $client, RequestInterface $request, $config = array(), - $retryMap = array() + $retryMap = null ) { $runner = new Google_Task_Runner( $config, sprintf('%s %s', $request->getMethod(), $request->getUrl()), array(get_class(), 'doExecute'), - array($client, $request, $retryMap) + array($client, $request) ); + if (!is_null($retryMap)) { + $runner->setRetryMap($retryMap); + } + return $runner->run(); } @@ -63,11 +63,11 @@ public static function execute( * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ - public static function doExecute(ClientInterface $client, RequestInterface $request, $retryMap = array()) + public static function doExecute(ClientInterface $client, RequestInterface $request) { $response = $client->send($request); - return self::decodeHttpResponse($response, $request, $retryMap); + return self::decodeHttpResponse($response, $request); } /** @@ -80,8 +80,7 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ */ public static function decodeHttpResponse( ResponseInterface $response, - RequestInterface $request = null, - $retryMap = array() + RequestInterface $request = null ) { $result = $response->json(); $body = (string) $response->getBody(); @@ -94,7 +93,7 @@ public static function decodeHttpResponse( if (isset($result['error']) && isset($result['error']['errors'])) { $errors = $result['error']['errors']; } - throw new Google_Service_Exception($body, $code, null, $errors, $retryMap); + throw new Google_Service_Exception($body, $code, null, $errors); } // return raw response when "alt" is "media" diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php index da9342df3..3151e6350 100644 --- a/src/Google/IO/Exception.php +++ b/src/Google/IO/Exception.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - class Google_IO_Exception extends Google_Exception implements Google_Task_Retryable { /** diff --git a/src/Google/Logger/Abstract.php b/src/Google/Logger/Abstract.php deleted file mode 100644 index d759b9579..000000000 --- a/src/Google/Logger/Abstract.php +++ /dev/null @@ -1,408 +0,0 @@ - 600, - self::ALERT => 550, - self::CRITICAL => 500, - self::ERROR => 400, - self::WARNING => 300, - self::NOTICE => 250, - self::INFO => 200, - self::DEBUG => 100, - ); - - /** - * @var integer $level The minimum logging level - */ - protected $level = self::DEBUG; - - /** - * @var string $logFormat The current log format - */ - protected $logFormat = self::DEFAULT_LOG_FORMAT; - /** - * @var string $dateFormat The current date format - */ - protected $dateFormat = self::DEFAULT_DATE_FORMAT; - - /** - * @var boolean $allowNewLines If newlines are allowed - */ - protected $allowNewLines = false; - - /** - * @param Google_Client $client The current Google client - */ - public function __construct(Google_Client $client) - { - $this->setLevel( - $client->getClassConfig('Google_Logger_Abstract', 'level') - ); - - $format = $client->getClassConfig('Google_Logger_Abstract', 'log_format'); - $this->logFormat = $format ? $format : self::DEFAULT_LOG_FORMAT; - - $format = $client->getClassConfig('Google_Logger_Abstract', 'date_format'); - $this->dateFormat = $format ? $format : self::DEFAULT_DATE_FORMAT; - - $this->allowNewLines = (bool) $client->getClassConfig( - 'Google_Logger_Abstract', - 'allow_newlines' - ); - } - - /** - * Sets the minimum logging level that this logger handles. - * - * @param integer $level - */ - public function setLevel($level) - { - $this->level = $this->normalizeLevel($level); - } - - /** - * Checks if the logger should handle messages at the provided level. - * - * @param integer $level - * @return boolean - */ - public function shouldHandle($level) - { - return $this->normalizeLevel($level) >= $this->level; - } - - /** - * System is unusable. - * - * @param string $message The log message - * @param array $context The log context - */ - public function emergency($message, array $context = array()) - { - $this->log(self::EMERGENCY, $message, $context); - } - - /** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - * - * @param string $message The log message - * @param array $context The log context - */ - public function alert($message, array $context = array()) - { - $this->log(self::ALERT, $message, $context); - } - - /** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - * - * @param string $message The log message - * @param array $context The log context - */ - public function critical($message, array $context = array()) - { - $this->log(self::CRITICAL, $message, $context); - } - - /** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - * - * @param string $message The log message - * @param array $context The log context - */ - public function error($message, array $context = array()) - { - $this->log(self::ERROR, $message, $context); - } - - /** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - * - * @param string $message The log message - * @param array $context The log context - */ - public function warning($message, array $context = array()) - { - $this->log(self::WARNING, $message, $context); - } - - /** - * Normal but significant events. - * - * @param string $message The log message - * @param array $context The log context - */ - public function notice($message, array $context = array()) - { - $this->log(self::NOTICE, $message, $context); - } - - /** - * Interesting events. - * - * Example: User logs in, SQL logs. - * - * @param string $message The log message - * @param array $context The log context - */ - public function info($message, array $context = array()) - { - $this->log(self::INFO, $message, $context); - } - - /** - * Detailed debug information. - * - * @param string $message The log message - * @param array $context The log context - */ - public function debug($message, array $context = array()) - { - $this->log(self::DEBUG, $message, $context); - } - - /** - * Logs with an arbitrary level. - * - * @param mixed $level The log level - * @param string $message The log message - * @param array $context The log context - */ - public function log($level, $message, array $context = array()) - { - if (!$this->shouldHandle($level)) { - return false; - } - - $levelName = is_int($level) ? array_search($level, self::$levels) : $level; - $message = $this->interpolate( - array( - 'message' => $message, - 'context' => $context, - 'level' => strtoupper($levelName), - 'datetime' => new DateTime(), - ) - ); - - $this->write($message); - } - - /** - * Interpolates log variables into the defined log format. - * - * @param array $variables The log variables. - * @return string - */ - protected function interpolate(array $variables = array()) - { - $template = $this->logFormat; - - if (!$variables['context']) { - $template = str_replace('%context%', '', $template); - unset($variables['context']); - } else { - $this->reverseJsonInContext($variables['context']); - } - - foreach ($variables as $key => $value) { - if (strpos($template, '%'. $key .'%') !== false) { - $template = str_replace( - '%' . $key . '%', - $this->export($value), - $template - ); - } - } - - return $template; - } - - /** - * Reverses JSON encoded PHP arrays and objects so that they log better. - * - * @param array $context The log context - */ - protected function reverseJsonInContext(array &$context) - { - if (!$context) { - return; - } - - foreach ($context as $key => $val) { - if (!$val || !is_string($val) || !($val[0] == '{' || $val[0] == '[')) { - continue; - } - - $json = @json_decode($val); - if (is_object($json) || is_array($json)) { - $context[$key] = $json; - } - } - } - - /** - * Exports a PHP value for logging to a string. - * - * @param mixed $value The value to - */ - protected function export($value) - { - if (is_string($value)) { - if ($this->allowNewLines) { - return $value; - } - - return preg_replace('/[\r\n]+/', ' ', $value); - } - - if (is_resource($value)) { - return sprintf( - 'resource(%d) of type (%s)', - $value, - get_resource_type($value) - ); - } - - if ($value instanceof DateTime) { - return $value->format($this->dateFormat); - } - - if (version_compare(PHP_VERSION, '5.4.0', '>=')) { - $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; - - if ($this->allowNewLines) { - $options |= JSON_PRETTY_PRINT; - } - - return @json_encode($value, $options); - } - - return str_replace('\\/', '/', @json_encode($value)); - } - - /** - * Converts a given log level to the integer form. - * - * @param mixed $level The logging level - * @return integer $level The normalized level - * @throws Google_Logger_Exception If $level is invalid - */ - protected function normalizeLevel($level) - { - if (is_int($level) && array_search($level, self::$levels) !== false) { - return $level; - } - - if (is_string($level) && isset(self::$levels[$level])) { - return self::$levels[$level]; - } - - throw new Google_Logger_Exception( - sprintf("Unknown LogLevel: '%s'", $level) - ); - } - - /** - * Writes a message to the current log implementation. - * - * @param string $message The message - */ - abstract protected function write($message); -} diff --git a/src/Google/Logger/Exception.php b/src/Google/Logger/Exception.php deleted file mode 100644 index 6b0e87370..000000000 --- a/src/Google/Logger/Exception.php +++ /dev/null @@ -1,24 +0,0 @@ -getClassConfig('Google_Logger_File', 'file'); - if (!is_string($file) && !is_resource($file)) { - throw new Google_Logger_Exception( - 'File logger requires a filename or a valid file pointer' - ); - } - - $mode = $client->getClassConfig('Google_Logger_File', 'mode'); - if (!$mode) { - $this->mode = $mode; - } - - $this->lock = (bool) $client->getClassConfig('Google_Logger_File', 'lock'); - $this->file = $file; - } - - /** - * {@inheritdoc} - */ - protected function write($message) - { - if (is_string($this->file)) { - $this->open(); - } elseif (!is_resource($this->file)) { - throw new Google_Logger_Exception('File pointer is no longer available'); - } - - if ($this->lock) { - flock($this->file, LOCK_EX); - } - - fwrite($this->file, (string) $message); - - if ($this->lock) { - flock($this->file, LOCK_UN); - } - } - - /** - * Opens the log for writing. - * - * @return resource - */ - private function open() - { - // Used for trapping `fopen()` errors. - $this->trappedErrorNumber = null; - $this->trappedErrorString = null; - - $old = set_error_handler(array($this, 'trapError')); - - $needsChmod = !file_exists($this->file); - $fh = fopen($this->file, 'a'); - - restore_error_handler(); - - // Handles trapped `fopen()` errors. - if ($this->trappedErrorNumber) { - throw new Google_Logger_Exception( - sprintf( - "Logger Error: '%s'", - $this->trappedErrorString - ), - $this->trappedErrorNumber - ); - } - - if ($needsChmod) { - @chmod($this->file, $this->mode & ~umask()); - } - - return $this->file = $fh; - } - - /** - * Closes the log stream resource. - */ - private function close() - { - if (is_resource($this->file)) { - fclose($this->file); - } - } - - /** - * Traps `fopen()` errors. - * - * @param integer $errno The error number - * @param string $errstr The error string - */ - private function trapError($errno, $errstr) - { - $this->trappedErrorNumber = $errno; - $this->trappedErrorString = $errstr; - } - - public function __destruct() - { - $this->close(); - } -} diff --git a/src/Google/Logger/Null.php b/src/Google/Logger/Null.php deleted file mode 100644 index 62fa890c0..000000000 --- a/src/Google/Logger/Null.php +++ /dev/null @@ -1,43 +0,0 @@ -setLogger($logger); - } - } - - /** - * Sets the PSR-3 logger where logging will be delegated. - * - * NOTE: The `$logger` should technically implement - * `Psr\Log\LoggerInterface`, but we don't explicitly require this so that - * we can be compatible with PHP 5.2. - * - * @param Psr\Log\LoggerInterface $logger The PSR-3 logger - */ - public function setLogger(/*Psr\Log\LoggerInterface*/ $logger) - { - $this->logger = $logger; - } - - /** - * {@inheritdoc} - */ - public function shouldHandle($level) - { - return isset($this->logger) && parent::shouldHandle($level); - } - - /** - * {@inheritdoc} - */ - public function log($level, $message, array $context = array()) - { - if (!$this->shouldHandle($level)) { - return false; - } - - if ($context) { - $this->reverseJsonInContext($context); - } - - $levelName = is_int($level) ? array_search($level, self::$levels) : $level; - $this->logger->log($levelName, $message, $context); - } - - /** - * {@inheritdoc} - */ - protected function write($message, array $context = array()) - { - } -} diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index 65c945b73..abfd3f7f1 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -15,22 +15,13 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - -class Google_Service_Exception extends Google_Exception implements Google_Task_Retryable +class Google_Service_Exception extends Google_Exception { /** * Optional list of errors returned in a JSON body of an HTTP error response. */ protected $errors = array(); - /** - * @var array $retryMap Map of errors with retry counts. - */ - private $retryMap = array(); - /** * Override default constructor to add the ability to set $errors and a retry * map. @@ -46,8 +37,7 @@ public function __construct( $message, $code = 0, Exception $previous = null, - $errors = array(), - array $retryMap = null + $errors = array() ) { if (version_compare(PHP_VERSION, '5.3.0') >= 0) { parent::__construct($message, $code, $previous); @@ -56,10 +46,6 @@ public function __construct( } $this->errors = $errors; - - if (is_array($retryMap)) { - $this->retryMap = $retryMap; - } } /** @@ -79,27 +65,4 @@ public function getErrors() { return $this->errors; } - - /** - * Gets the number of times the associated task can be retried. - * - * NOTE: -1 is returned if the task can be retried indefinitely - * - * @return integer - */ - public function allowedRetries() - { - if (isset($this->retryMap[$this->code])) { - return $this->retryMap[$this->code]; - } - - $errors = $this->getErrors(); - - if (!empty($errors) && isset($errors[0]['reason']) && - isset($this->retryMap[$errors[0]['reason']])) { - return $this->retryMap[$errors[0]['reason']]; - } - - return 0; - } } diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index d97f6475e..a719402a5 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - /** * Implements the actual methods/resources of the discovered Google API using magic function * calling overloading (__call()), which on call will see if the method name (plus.activities.list) @@ -194,13 +190,15 @@ public function call($name, $arguments, $expected_class = null) $parameters ); - $request = $this->client->getHttpClient()->createRequest( + $http = $this->client->getHttpClient(); + $this->client->attachAuthListener($http); + + $request = $http->createRequest( $method['httpMethod'], $url, ['json' => $postBody] ); - $request = $this->client->getAuth()->sign($request); if ($this->client->shouldDefer()) { // @TODO find a better way to do this $request->setHeader('X-Php-Expected-Class', $expected_class); diff --git a/src/Google/Task/Exception.php b/src/Google/Task/Exception.php index 231bf2b1d..5422e6fc4 100644 --- a/src/Google/Task/Exception.php +++ b/src/Google/Task/Exception.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - class Google_Task_Exception extends Google_Exception { } diff --git a/src/Google/Task/Retryable.php b/src/Google/Task/Retryable.php index cd8bdec7b..19aa4ddc2 100644 --- a/src/Google/Task/Retryable.php +++ b/src/Google/Task/Retryable.php @@ -15,22 +15,10 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - /** * Interface for checking how many times a given task can be retried following * a failure. */ interface Google_Task_Retryable { - /** - * Gets the number of times the associated task can be retried. - * - * NOTE: -1 is returned if the task can be retried indefinitely - * - * @return integer - */ - public function allowedRetries(); } diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index 8bba66881..67bad1c46 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -15,10 +15,6 @@ * limitations under the License. */ -if (!class_exists('Google_Client')) { - require_once dirname(__FILE__) . '/../autoload.php'; -} - /** * A task runner with exponential backoff support. * @@ -26,6 +22,10 @@ */ class Google_Task_Runner { + const TASK_RETRY_NEVER = 0; + const TASK_RETRY_ONCE = 1; + const TASK_RETRY_ALWAYS = -1; + /** * @var integer $maxDelay The max time (in seconds) to wait before a retry. */ @@ -68,6 +68,21 @@ class Google_Task_Runner */ private $arguments; + /** + * @var array $retryMap Map of errors with retry counts. + */ + protected $retryMap = [ + '500' => self::TASK_RETRY_ALWAYS, + '503' => self::TASK_RETRY_ALWAYS, + 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, + CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, + CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, + CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, + CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, + CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS + ]; + /** * Creates a new task runner with exponential backoff support. * @@ -148,7 +163,7 @@ public function __construct( * * @return boolean */ - public function canAttmpt() + public function canAttempt() { return $this->attempts < $this->maxAttempts; } @@ -164,10 +179,10 @@ public function run() while ($this->attempt()) { try { return call_user_func_array($this->action, $this->arguments); - } catch (Google_Task_Retryable $exception) { - $allowedRetries = $exception->allowedRetries(); + } catch (Google_Service_Exception $exception) { + $allowedRetries = $this->allowedRetries($exception->getCode(), $exception->getErrors()); - if (!$this->canAttmpt() || !$allowedRetries) { + if (!$this->canAttempt() || !$allowedRetries) { throw $exception; } @@ -192,7 +207,7 @@ public function run() */ public function attempt() { - if (!$this->canAttmpt()) { + if (!$this->canAttempt()) { return false; } @@ -237,4 +252,30 @@ private function getJitter() { return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; } + + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries($code, $errors = array()) + { + if (isset($this->retryMap[$code])) { + return $this->retryMap[$code]; + } + + if (!empty($errors) && isset($errors[0]['reason']) && + isset($this->retryMap[$errors[0]['reason']])) { + return $this->retryMap[$errors[0]['reason']]; + } + + return 0; + } + + public function setRetryMap($retryMap) + { + $this->retryMap = $retryMap; + } } diff --git a/src/Google/autoload.php b/src/Google/autoload.php deleted file mode 100644 index 6f5f3ee3e..000000000 --- a/src/Google/autoload.php +++ /dev/null @@ -1,36 +0,0 @@ - + + Service/*.php diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 72d47868b..daf50e9ae 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -19,63 +19,138 @@ class BaseTest extends PHPUnit_Framework_TestCase { private $key; private $token; + private $client; private $memcacheHost; private $memcachePort; protected $testDir = __DIR__; - public function __construct() + public function getClient() { - parent::__construct(); + if (!$this->client) { + $this->client = $this->createClient(); + } - $this->token = $this->loadToken(); - $this->memcacheHost = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null; - $this->memcachePort = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; + return $this->client; } - public function getClient() + public function getCache() + { + return new Google_Cache_File(sys_get_temp_dir().'/google-api-php-client-tests'); + } + + private function createClient() { + $defaults = [ + 'auth' => 'google_auth', + 'exceptions' => false + ]; + if ($proxy = getenv('HTTP_PROXY')) { + $defaults['proxy'] = $proxy; + $defaults['verify'] = false; + } + $httpClient = new GuzzleHttp\Client([ + 'defaults' => $defaults, + ]); + $client = new Google_Client(); + $client->setHttpClient($httpClient); + $client->setScopes([ + "https://www.googleapis.com/auth/plus.me", + "https://www.googleapis.com/auth/urlshortener", + "https://www.googleapis.com/auth/tasks", + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/youtube", + ]); + if ($this->key) { $client->setDeveloperKey($this->key); } - if (strlen($this->token)) { + if ($this->token) { $client->setAccessToken($this->token); } - if (strlen($this->memcacheHost)) { - $client->setClassConfig('Google_Cache_Memcache', 'host', $this->memcacheHost); - $client->setClassConfig('Google_Cache_Memcache', 'port', $this->memcachePort); - } - if ($proxy = getenv('HTTP_PROXY')) { - $httpClient = new GuzzleHttp\Client([ - 'defaults' => [ - 'proxy' => $proxy, - 'verify' => false, - ] - ]); - $client->setHttpClient($httpClient); - } + list($clientId, $clientSecret) = $this->getClientIdAndSecret(); + $client->setClientId($clientId); + $client->setClientSecret($clientSecret); + $client->setCache($this->getCache()); + return $client; } public function checkToken() { - if (!strlen($this->token)) { - $this->markTestSkipped("Test requires access token\nrun \"php tests/OAuthHelper.php\""); - return false; + $cache = $this->getCache(); + $this->token = $cache->get('access_token'); + if (!$this->token) { + if (!$this->tryToGetAnAccessToken()) { + return $this->markTestSkipped("Test requires access token"); + } } + + $client = $this->getClient(); + $client->setAccessToken($this->token); + + if ($client->isAccessTokenExpired()) { + if (isset($this->token['refresh_token'])) { + $this->token = $client->refreshToken($this->token['refresh_token']); + } + } + + $cache->set('access_token', $this->token); + return true; } - public function loadToken() + public function tryToGetAnAccessToken() { - if (file_exists($f = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.accessToken')) { - $t = file_get_contents($f); - if ($token = json_decode($t, true)) { - if ($token['expires_in'] + $token['created'] > time()) { - return $t; - } + $client = $this->getClient(); + if (!($client->getClientId() && $client->getClientSecret())) { + $this->markTestSkipped("Test requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set"); + } + + $client = $this->getClient(); + $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); + $client->setConfig('access_type', 'offline'); + $authUrl = $client->createAuthUrl(); + + echo "\nPlease enter the auth code:\n"; + ob_flush(); + `open '$authUrl'`; + $authCode = trim(fgets(STDIN)); + + if ($accessToken = $client->authenticate($authCode)) { + if (isset($accessToken['access_token'])) { + $this->token = $accessToken; + + return true; } } + + return false; + } + + private function getClientIdAndSecret() + { + $clientId = getenv('GCLOUD_CLIENT_ID') ? getenv('GCLOUD_CLIENT_ID') : null; + $clientSecret = getenv('GCLOUD_CLIENT_SECRET') ? getenv('GCLOUD_CLIENT_SECRET') : null; + + return array($clientId, $clientSecret); + } + + public function checkServiceAccountToken() + { + if (!$f = getenv('GOOGLE_APPLICATION_CREDENTIALS')) { + $skip = "This test requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set\n" + . "see https://developers.google.com/accounts/docs/application-default-credentials"; + $this->markTestSkipped($skip); + + return false; + } + + if (!file_exists($f)) { + $this->markTestSkipped('invalid path for GOOGLE_APPLICATION_CREDENTIALS'); + } + + return true; } public function checkKey() diff --git a/tests/Google/AccessTokenTest.php b/tests/Google/AccessTokenTest.php new file mode 100644 index 000000000..6c58096a6 --- /dev/null +++ b/tests/Google/AccessTokenTest.php @@ -0,0 +1,160 @@ +getMock('GuzzleHttp\Post\PostBodyInterface'); + $postBody->expects($this->exactly(3)) + ->method('replaceFields') + ->will($this->returnCallback( + function ($fields) use (&$token) { + $token = isset($fields['token']) ? $fields['token'] : null; + } + )); + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->exactly(3)) + ->method('getBody') + ->will($this->returnValue($postBody)); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->exactly(3)) + ->method('getStatusCode') + ->will($this->returnValue(200)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->exactly(3)) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->exactly(3)) + ->method('createRequest') + ->will($this->returnValue($request)); + + // Test with access token. + $t = new Google_AccessToken( + array( + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ), + $http + ); + $this->assertTrue($t->revokeToken()); + $this->assertEquals($accessToken, $token); + + // Test with refresh token. + $t->setAccessToken( + array( + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ) + ); + $this->assertTrue($t->revokeToken()); + $this->assertEquals($refreshToken, $token); + + // Test with string token + $t->setAccessToken($accessToken2); + $this->assertTrue($t->revokeToken()); + $this->assertEquals($accessToken2, $token); + } + + // /** + // * Most of the logic for ID token validation is in AuthTest - + // * this is just a general check to ensure we verify a valid + // * id token if one exists. + // */ + // public function testValidateIdToken() + // { + // $this->checkToken(); + // $client = $this->getClient(); + // $token = json_decode($client->getAccessToken()); + // $segments = explode(".", $token->id_token); + // $this->assertEquals(3, count($segments)); + // // Extract the client ID in this case as it wont be set on the test client. + // $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + // $oauth = new Google_Auth_OAuth2($client); + // $payload = $oauth->verifyIdToken($token->id_token, $data->aud); + // $this->assertArrayHasKey('sub', $payload); + // $this->assertTrue(strlen($payload['sub']) > 0); + + // // TODO: Need to be smart about testing/disabling the + // // caching for this test to make sense. Not sure how to do that + // // at the moment. + // $client = $this->getClient(); + // $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + // $oauth = new Google_Auth_OAuth2($client); + // $payload = $oauth->verifyIdToken($token->id_token, $data->aud); + // $this->assertArrayHasKey('sub', $payload); + // $this->assertTrue(strlen($payload['sub']) > 0); + // } + + // /** + // * Test for revoking token when none is opened + // */ + // public function testRevokeWhenNoTokenExists() + // { + // $client = new Google_Client(); + // $this->assertFalse($client->revokeToken()); + // } + + // /** + // * Test that the ID token is properly refreshed. + // */ + // public function testRefreshTokenSetsValues() + // { + // $client = new Google_Client(); + // $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + // $request->expects($this->once()) + // ->method('getBody') + // ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); + // $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + // $response->expects($this->once()) + // ->method('json') + // ->will($this->returnValue(array( + // 'access_token' => 'xyz', + // 'id_token' => 'ID_TOKEN', + // ))); + // $response->expects($this->once()) + // ->method('getBody') + // ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); + // $http = $this->getMock('GuzzleHttp\ClientInterface'); + // $http->expects($this->once()) + // ->method('send') + // ->will($this->returnValue($response)); + // $http->expects($this->once()) + // ->method('createRequest') + // ->will($this->returnValue($request)); + // $client->setHttpClient($http); + // $oauth = new Google_Auth_OAuth2($client); + // $oauth->refreshToken("REFRESH_TOKEN"); + // $token = json_decode($oauth->getAccessToken(), true); + // $this->assertEquals($token['id_token'], "ID_TOKEN"); + // } +} diff --git a/tests/Google/Auth/ComputeEngineTest.php b/tests/Google/Auth/ComputeEngineTest.php deleted file mode 100644 index e866a2303..000000000 --- a/tests/Google/Auth/ComputeEngineTest.php +++ /dev/null @@ -1,83 +0,0 @@ - "ACCESS_TOKEN", - 'expires_in' => "12345" - ) - ); - $response = $this->getMock("GuzzleHttp\Message\ResponseInterface", array(), array('')); - $response->expects($this->any()) - ->method('getStatusCode') - ->will($this->returnValue(200)); - $response->expects($this->any()) - ->method('getBody') - ->will($this->returnValue($response_data)); - $http = $this->getMockBuilder('GuzzleHttp\Client') - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - $client->setHttpClient($http); - - /* Run method */ - $oauth = new Google_Auth_ComputeEngine($client); - $oauth->acquireAccessToken(); - $token = json_decode($oauth->getAccessToken(), true); - - /* Check results */ - $this->assertEquals($token['access_token'], "ACCESS_TOKEN"); - $this->assertEquals($token['expires_in'], "12345"); - $this->assertTrue($token['created'] > 0); - } - - public function testSign() - { - $client = new Google_Client(); - $oauth = new Google_Auth_ComputeEngine($client); - - /* Load mock access token */ - $oauth->setAccessToken( - json_encode( - array( - 'access_token' => "ACCESS_TOKEN", - 'expires_in' => "12345" - ) - ) - ); - - /* Sign a URL and verify auth header is correctly set */ - $req = new Request('GET', 'http://localhost'); - $req = $oauth->sign($req); - $auth = $req->getHeader('authorization'); - $this->assertEquals('Bearer ACCESS_TOKEN', $auth); - } -} diff --git a/tests/Google/Auth/OAuth2Test.php b/tests/Google/Auth/OAuth2Test.php deleted file mode 100644 index b5a4be53c..000000000 --- a/tests/Google/Auth/OAuth2Test.php +++ /dev/null @@ -1,251 +0,0 @@ -getClient(); - $oauth = new Google_Auth_OAuth2($client); - - $client->setClientId('clientId1'); - $client->setClientSecret('clientSecret1'); - $client->setRedirectUri('http://localhost'); - $client->setDeveloperKey('devKey'); - $client->setAccessType('offline'); - $client->setApprovalPrompt('force'); - $client->setRequestVisibleActions('http://foo'); - - $req = new Request('GET', 'http://localhost'); - $req = $oauth->sign($req); - - $this->assertEquals('http://localhost?key=devKey', $req->getUrl()); - - // test accessToken - $oauth->setAccessToken( - json_encode( - array( - 'access_token' => 'ACCESS_TOKEN', - 'created' => time(), - 'expires_in' => '3600' - ) - ) - ); - - $req = $oauth->sign($req); - $auth = $req->getHeader('authorization'); - $this->assertEquals('Bearer ACCESS_TOKEN', $auth); - } - - public function testRevokeAccess() - { - $accessToken = "ACCESS_TOKEN"; - $refreshToken = "REFRESH_TOKEN"; - $accessToken2 = "ACCESS_TOKEN_2"; - $token = ""; - - $client = $this->getClient(); - - $postBody = $this->getMock('GuzzleHttp\Post\PostBodyInterface'); - $postBody->expects($this->exactly(3)) - ->method('replaceFields') - ->will($this->returnCallback( - function ($fields) use (&$token) { - $token = isset($fields['token']) ? $fields['token'] : null; - } - )); - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(3)) - ->method('getBody') - ->will($this->returnValue($postBody)); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->exactly(3)) - ->method('getStatusCode') - ->will($this->returnValue(200)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly(3)) - ->method('send') - ->will($this->returnValue($response)); - $http->expects($this->exactly(3)) - ->method('createRequest') - ->will($this->returnValue($request)); - - // Test with access token. - $client->setHttpClient($http); - $oauth = new Google_Auth_OAuth2($client); - $oauth->setAccessToken( - json_encode( - array( - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ) - ) - ); - $this->assertTrue($oauth->revokeToken()); - $this->assertEquals($accessToken, $token); - - // Test with refresh token. - $oauth->setAccessToken( - json_encode( - array( - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ) - ) - ); - $this->assertTrue($oauth->revokeToken()); - $this->assertEquals($refreshToken, $token); - - // Test with passed in token. - $this->assertTrue($oauth->revokeToken($accessToken2)); - $this->assertEquals($accessToken2, $token); - } - - public function testCreateAuthUrl() - { - $client = $this->getClient(); - $oauth = new Google_Auth_OAuth2($client); - - $client->setClientId('clientId1'); - $client->setClientSecret('clientSecret1'); - $client->setRedirectUri('http://localhost'); - $client->setDeveloperKey('devKey'); - $client->setAccessType('offline'); - $client->setApprovalPrompt('force'); - $client->setState('xyz'); - $client->setRequestVisibleActions(array('http://foo')); - $client->setLoginHint("bob@example.org"); - - $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" - . "?response_type=code" - . "&access_type=offline" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&approval_prompt=force" - . "&login_hint=bob%40example.org" - . "&state=xyz" - . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost"; - $this->assertEquals($expected, $authUrl); - - // Again with a blank login hint (should remove all traces from authUrl) - $client->setLoginHint(""); - $client->setHostedDomain("example.com"); - $client->setOpenidRealm("example.com"); - $client->setPrompt("select_account"); - $client->setIncludeGrantedScopes(true); - $authUrl = $oauth->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" - . "?response_type=code" - . "&access_type=offline" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&prompt=select_account" - . "&hd=example.com" - . "&openid.realm=example.com" - . "&include_granted_scopes=true" - . "&state=xyz" - . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost"; - $this->assertEquals($expected, $authUrl); - } - - /** - * Most of the logic for ID token validation is in AuthTest - - * this is just a general check to ensure we verify a valid - * id token if one exists. - */ - public function testValidateIdToken() - { - if (!$this->checkToken()) { - return; - } - - $client = $this->getClient(); - $token = json_decode($client->getAccessToken()); - $segments = explode(".", $token->id_token); - $this->assertEquals(3, count($segments)); - // Extract the client ID in this case as it wont be set on the test client. - $data = json_decode(JWT::urlSafeB64Decode($segments[1])); - $oauth = new Google_Auth_OAuth2($client); - $payload = $oauth->verifyIdToken($token->id_token, $data->aud); - $this->assertArrayHasKey('sub', $payload); - $this->assertTrue(strlen($payload['sub']) > 0); - - // TODO: Need to be smart about testing/disabling the - // caching for this test to make sense. Not sure how to do that - // at the moment. - $client = $this->getClient(); - $data = json_decode(JWT::urlSafeB64Decode($segments[1])); - $oauth = new Google_Auth_OAuth2($client); - $payload = $oauth->verifyIdToken($token->id_token, $data->aud); - $this->assertArrayHasKey('sub', $payload); - $this->assertTrue(strlen($payload['sub']) > 0); - } - - /** - * Test for revoking token when none is opened - */ - public function testRevokeWhenNoTokenExists() - { - $client = new Google_Client(); - $this->assertFalse($client->revokeToken()); - } - - /** - * Test that the ID token is properly refreshed. - */ - public function testRefreshTokenSetsValues() - { - $client = new Google_Client(); - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('json') - ->will($this->returnValue(array( - 'access_token' => 'xyz', - 'id_token' => 'ID_TOKEN', - ))); - $response->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($request)); - $client->setHttpClient($http); - $oauth = new Google_Auth_OAuth2($client); - $oauth->refreshToken("REFRESH_TOKEN"); - $token = json_decode($oauth->getAccessToken(), true); - $this->assertEquals($token['id_token'], "ID_TOKEN"); - } -} diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index 0fc32e166..9d9b1bfb5 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -23,28 +23,16 @@ class Google_CacheTest extends BaseTest public function testFile() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests'; - $client = $this->getClient(); - $client->setClassConfig( - 'Google_Cache_File', - 'directory', - $dir - ); - $cache = new Google_Cache_File($client); + $cache = new Google_Cache_File($dir); $cache->set('foo', 'bar'); $this->assertEquals($cache->get('foo'), 'bar'); $this->getSetDelete($cache); } - /** - * @requires extension Memcache - */ public function testNull() { - $client = $this->getClient(); - $cache = new Google_Cache_Null($client); - $client->setCache($cache); - + $cache = new Google_Cache_Null(); $cache->set('foo', 'bar'); $cache->delete('foo'); $this->assertEquals(false, $cache->get('foo')); @@ -65,12 +53,13 @@ public function testNull() */ public function testMemcache() { - $client = $this->getClient(); - if (!$client->getClassConfig('Google_Cache_Memcache', 'host')) { - $this->markTestSkipped('Test requires memcache host specified'); + $host = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null; + $port = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; + if (!($host && $port)) { + $this->markTestSkipped('Test requires memcache host and port specified'); } - $cache = new Google_Cache_Memcache($client); + $cache = new Google_Cache_Memcache($host, $port); $this->getSetDelete($cache); } @@ -83,8 +72,7 @@ public function testAPC() if (!ini_get('apc.enable_cli')) { $this->markTestSkipped('Test requires APC enabled for CLI'); } - $client = $this->getClient(); - $cache = new Google_Cache_Apc($client); + $cache = new Google_Cache_Apc(); $this->getSetDelete($cache); } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 252914f1e..97941b7c6 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -18,38 +18,103 @@ * under the License. */ +use GuzzleHttp\Client; +use GuzzleHttp\Event\RequestEvents; use GuzzleHttp\Message\Request; class Google_ClientTest extends BaseTest { - public function testClient() + public function testClientConstructor() { - $client = new Google_Client(); - $client->setAccessType('foo'); - $client->setDeveloperKey('foo'); - $req = new Request('GET', 'http://foo.com'); - $client->getAuth()->sign($req); - $key = $req->getQuery()->get('key'); - $this->assertEquals('foo', $key); - - $client->setAccessToken(json_encode(array('access_token' => '1'))); - $this->assertEquals("{\"access_token\":\"1\"}", $client->getAccessToken()); + $this->assertInstanceOf('Google_Client', $this->getClient()); } - public function testClientConstructor() + public function testSignAppKey() { - $this->assertInstanceOf('Google_Client', $this->getClient()); + $client = $this->getClient(); + $client->setDeveloperKey('devKey'); + + $http = new Client(); + $client->attachAuthListener($http); + + $listeners = $http->getEmitter()->listeners('before'); + $this->assertEquals(1, count($listeners)); + $this->assertEquals(2, count($listeners[0])); + $this->assertInstanceOf('Google\Auth\Simple', $listeners[0][0]); } - /** - * @expectedException Google_Auth_Exception - */ - public function testPrepareInvalidScopes() + public function testSignAccessToken() + { + $client = $this->getClient(); + + $http = new Client(); + $client->setAccessToken([ + 'access_token' => 'test_token', + 'expires_in' => 3600, + 'created' => time(), + ]); + $client->setScopes('test_scope'); + $client->attachAuthListener($http); + + $listeners = $http->getEmitter()->listeners('before'); + $this->assertEquals(1, count($listeners)); + $this->assertEquals(2, count($listeners[0])); + $this->assertInstanceOf('Google\Auth\ScopedAccessToken', $listeners[0][0]); + } + + public function testCreateAuthUrl() + { + $client = $this->getClient(); + + $client->setClientId('clientId1'); + $client->setClientSecret('clientSecret1'); + $client->setRedirectUri('http://localhost'); + $client->setDeveloperKey('devKey'); + $client->setState('xyz'); + $client->setConfig('access_type', 'offline'); + $client->setConfig('approval_prompt', 'force'); + $client->setConfig('request_visible_actions', 'http://foo'); + $client->setConfig('login_hint', 'bob@example.org'); + + $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); + $expected = "https://accounts.google.com/o/oauth2/auth" + . "?access_type=offline" + . "&approval_prompt=force" + . "&login_hint=bob%40example.org" + . "&response_type=code" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&state=xyz" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost"; + $this->assertEquals($expected, $authUrl); + + // Again with a blank login hint (should remove all traces from authUrl) + $client->setConfig('login_hint', ''); + $client->setConfig('hosted_domain', 'example.com'); + $client->setConfig('openid.realm', 'example.com'); + $client->setConfig('prompt', 'select_account'); + $client->setConfig('include_granted_scopes', true); + $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); + $expected = "https://accounts.google.com/o/oauth2/auth" + . "?access_type=offline" + . "&hd=example.com" + . "&include_granted_scopes=true" + . "&openid.realm=example.com" + . "&prompt=select_account" + . "&response_type=code" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&state=xyz" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost"; + $this->assertEquals($expected, $authUrl); + } + + public function testPrepareNoScopes() { $client = new Google_Client(); $scopes = $client->prepareScopes(); - $this->assertEquals("", $scopes); + $this->assertEquals(null, $scopes); } public function testNoAuthIsNull() @@ -84,11 +149,11 @@ public function testPrepareService() $this->assertEquals("http://test.com scope2", $scopes); $this->assertEquals( '' - . 'https://accounts.google.com/o/oauth2/auth' - . '?response_type=code' - . '&access_type=online' - . '&scope=http%3A%2F%2Ftest.com%20scope2' + . 'https://accounts.google.com/o/oauth2/auth' + . '?access_type=online' . '&approval_prompt=auto' + . '&response_type=code' + . '&scope=http%3A%2F%2Ftest.com%20scope2' . '&state=xyz' . '&client_id=test1' . '&redirect_uri=http%3A%2F%2Flocalhost%2F', @@ -110,6 +175,9 @@ public function testPrepareService() $http->expects($this->once()) ->method('createRequest') ->will($this->returnValue($request)); + $http->expects($this->once()) + ->method('getEmitter') + ->will($this->returnValue($this->getMock('GuzzleHttp\Event\EmitterInterface'))); $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); @@ -124,25 +192,21 @@ public function testSettersGetters() $client->setClientId("client1"); $client->setClientSecret('client1secret'); $client->setState('1'); - $client->setApprovalPrompt('force'); - $client->setAccessType('offline'); + $client->setConfig('approval_prompt', 'force'); + $client->setConfig('access_type', 'offline'); $client->setRedirectUri('localhost'); - $client->setApplicationName('me'); - $this->assertEquals('object', gettype($client->getAuth())); + $client->setConfig('application_name', 'me'); $this->assertEquals('object', gettype($client->getCache())); - $client->setAuth(new Google_Auth_Simple($client)); - $client->setAuth(new Google_Auth_OAuth2($client)); - try { $client->setAccessToken(null); $this->fail('Should have thrown an Google_Auth_Exception.'); - } catch (Google_Auth_Exception $e) { - $this->assertEquals('Could not json decode the token', $e->getMessage()); + } catch (InvalidArgumentException $e) { + $this->assertEquals('invalid json token', $e->getMessage()); } - $token = json_encode(array('access_token' => 'token')); + $token = array('access_token' => 'token'); $client->setAccessToken($token); $this->assertEquals($token, $client->getAccessToken()); } @@ -161,8 +225,7 @@ public function testAppEngineAutoConfig() public function testJsonConfig() { // Device config - $config = new Google_Config(); - $client = new Google_Client($config); + $client = new Google_Client(); $device = '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://accounts.google.com/o/oauth2/token",'. @@ -171,14 +234,12 @@ public function testJsonConfig() '"https://www.googleapis.com/oauth2/v1/certs"}}'; $dObj = json_decode($device); $client->setAuthConfig($device); - $cfg = $config->getClassConfig('Google_Auth_OAuth2'); - $this->assertEquals($cfg['client_id'], $dObj->installed->client_id); - $this->assertEquals($cfg['client_secret'], $dObj->installed->client_secret); - $this->assertEquals($cfg['redirect_uri'], $dObj->installed->redirect_uris[0]); + $this->assertEquals($client->getClientId(), $dObj->installed->client_id); + $this->assertEquals($client->getClientSecret(), $dObj->installed->client_secret); + $this->assertEquals($client->getRedirectUri(), $dObj->installed->redirect_uris[0]); // Web config - $config = new Google_Config(); - $client = new Google_Client($config); + $client = new Google_Client(); $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://accounts.google.com/o/oauth2/token"' . ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. @@ -187,40 +248,41 @@ public function testJsonConfig() '"https://www.googleapis.com/oauth2/v1/certs"}}'; $wObj = json_decode($web); $client->setAuthConfig($web); - $cfg = $config->getClassConfig('Google_Auth_OAuth2'); - $this->assertEquals($cfg['client_id'], $wObj->web->client_id); - $this->assertEquals($cfg['client_secret'], $wObj->web->client_secret); - $this->assertEquals($cfg['redirect_uri'], ''); + $this->assertEquals($client->getClientId(), $wObj->web->client_id); + $this->assertEquals($client->getClientSecret(), $wObj->web->client_secret); + $this->assertEquals($client->getRedirectUri(), ''); } public function testIniConfig() { - $config = new Google_Config($this->testDir . "/config/test.ini"); - $this->assertEquals('My Test application', $config->getApplicationName()); + $config = parse_ini_file($this->testDir . "/config/test.ini"); + $client = new Google_Client($config); + + $this->assertEquals('My Test application', $client->getConfig('application_name')); $this->assertEquals( 'gjfiwnGinpena3', - $config->getClassConfig('Google_Auth_OAuth2', 'client_secret') - ); - $this->assertInternalType( - 'array', - $config->getClassConfig('Google_IO_Abstract') - ); - $this->assertEquals( - 100, - $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds') + $client->getClientSecret() ); } public function testNoAuth() { /** @var $noAuth Google_Auth_Simple */ - $noAuth = new Google_Auth_Simple($this->getClient()); $client = new Google_Client(); - $client->setAuth($noAuth); $client->setDeveloperKey(null); - $req = new Request('GET', 'http://example.com'); - $resp = $noAuth->sign($req); - $this->assertEquals('http://example.com', $resp->getUrl()); + // unset application credentials + $GOOGLE_APPLICATION_CREDENTIALS = getenv('GOOGLE_APPLICATION_CREDENTIALS'); + $HOME = getenv('HOME'); + putenv('GOOGLE_APPLICATION_CREDENTIALS='); + putenv('HOME='.sys_get_temp_dir()); + $http = new Client(); + $client->attachAuthListener($http); + + $listeners = $http->getEmitter()->listeners('before'); + + putenv("GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"); + putenv("HOME=$HOME"); + $this->assertEquals(0, count($listeners)); } } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/ParallelTest.php similarity index 63% rename from tests/Google/Http/BatchTest.php rename to tests/Google/Http/ParallelTest.php index c8aaa538d..a82d0689f 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/ParallelTest.php @@ -18,25 +18,27 @@ * under the License. */ -class Google_Http_BatchTest extends BaseTest +class Google_Http_ParallelTest extends BaseTest { + public $parallel; public $plus; - public function testBatchRequestWithAuth() + public function setUp() { - if (!$this->checkToken()) { - return; - } + $this->checkToken(); $client = $this->getClient(); - $batch = new Google_Http_Batch($client); + $client->setUseBatch(true); + $this->parallel = new Google_Http_Parallel($client); $this->plus = new Google_Service_Plus($client); + } - $client->setUseBatch(true); - $batch->add($this->plus->people->get('me'), 'key1'); - $batch->add($this->plus->people->get('me'), 'key2'); - $batch->add($this->plus->people->get('me'), 'key3'); + public function testBatchRequestWithAuth() + { + $this->parallel->add($this->plus->people->get('me'), 'key1'); + $this->parallel->add($this->plus->people->get('me'), 'key2'); + $this->parallel->add($this->plus->people->get('me'), 'key3'); - $result = $batch->execute(); + $result = $this->parallel->execute(); $this->assertTrue(isset($result['response-key1'])); $this->assertTrue(isset($result['response-key2'])); $this->assertTrue(isset($result['response-key3'])); @@ -47,19 +49,11 @@ public function testBatchRequestWithAuth() public function testBatchRequest() { - if (!$this->checkToken()) { - return; - } - $client = $this->getClient(); - $batch = new Google_Http_Batch($client); - $this->plus = new Google_Service_Plus($client); - - $client->setUseBatch(true); - $batch->add($this->plus->people->get('+LarryPage'), 'key1'); - $batch->add($this->plus->people->get('+LarryPage'), 'key2'); - $batch->add($this->plus->people->get('+LarryPage'), 'key3'); + $this->parallel->add($this->plus->people->get('+LarryPage'), 'key1'); + $this->parallel->add($this->plus->people->get('+LarryPage'), 'key2'); + $this->parallel->add($this->plus->people->get('+LarryPage'), 'key3'); - $result = $batch->execute(); + $result = $this->parallel->execute(); $this->assertTrue(isset($result['response-key1'])); $this->assertTrue(isset($result['response-key2'])); $this->assertTrue(isset($result['response-key3'])); @@ -70,19 +64,15 @@ public function testBatchRequest() public function testInvalidBatchRequest() { - $client = $this->getClient(); - $batch = new Google_Http_Batch($client); - $this->plus = new Google_Service_Plus($client); - - $client->setUseBatch(true); - $batch->add($this->plus->people->get('123456789987654321'), 'key1'); - $batch->add($this->plus->people->get('+LarryPage'), 'key2'); + $this->parallel->add($this->plus->people->get('123456789987654321'), 'key1'); + $this->parallel->add($this->plus->people->get('+LarryPage'), 'key2'); - $result = $batch->execute(); + $result = $this->parallel->execute(); $this->assertTrue(isset($result['response-key2'])); $this->assertInstanceOf( - 'GuzzleHttp\Exception\ClientException', + 'GuzzleHttp\Message\Response', $result['response-key1'] ); + $this->assertEquals(404, $result['response-key1']->getStatusCode()); } } diff --git a/tests/Google/LoggerTest.php b/tests/Google/LoggerTest.php deleted file mode 100644 index 255616a60..000000000 --- a/tests/Google/LoggerTest.php +++ /dev/null @@ -1,445 +0,0 @@ -client = new Google_Client(); - } - - /** - * @dataProvider logLevelsProvider - */ - public function testPsrMethods($key) - { - $message = 'This is my log message'; - $context = array('some'=>'context'); - - $logger = $this->getLogger('log'); - $logger->expects($this->once()) - ->method('log') - ->with($key, $message, $context); - - call_user_func(array($logger, $key), $message, $context); - } - - /** - * @dataProvider invalidLevelsProvider - * @expectedException Google_Logger_Exception - * @expectedExceptionMessage Unknown LogLevel - */ - public function testSetLabelWithBadValue($level) - { - $this->getLogger()->setLevel($level); - } - - /** - * @dataProvider invalidLevelsProvider - * @expectedException Google_Logger_Exception - * @expectedExceptionMessage Unknown LogLevel - */ - public function testSetLabelWithBadValueFromConfig($level) - { - $this->client->setClassConfig('Google_Logger_Abstract', 'level', $level); - $this->getLogger(); - } - - /** - * @dataProvider filterProvider - */ - public function testShouldHandle($setLevel, $handleLevel, $expected) - { - $logger = $this->getLogger(); - $logger->setLevel($setLevel); - - $this->assertEquals($expected, $logger->shouldHandle($handleLevel)); - } - - /** - * @dataProvider filterProvider - */ - public function testShouldHandleFromConfig($config, $handleLevel, $expected) - { - $this->client->setClassConfig('Google_Logger_Abstract', 'level', $config); - $logger = $this->getLogger(); - - $this->assertEquals($expected, $logger->shouldHandle($handleLevel)); - } - - /** - * @dataProvider filterProvider - */ - public function testShouldWrite($setLevel, $logLevel, $expected) - { - $logger = $this->getLogger(); - $logger->expects($expected ? $this->once() : $this->never()) - ->method('write'); - - $logger->setLevel($setLevel); - $logger->log($logLevel, 'This is my log message'); - } - - /** - * @dataProvider filterProvider - */ - public function testShouldWriteFromConfig($config, $logLevel, $expected) - { - $this->client->setClassConfig('Google_Logger_Abstract', 'level', $config); - $logger = $this->getLogger(); - $logger->expects($expected ? $this->once() : $this->never()) - ->method('write'); - - $logger->log($logLevel, 'This is my log message'); - } - - /** - * @dataProvider formattingProvider - */ - public function testMessageFormatting( - $format, - $date_format, - $newlines, - $message, - $context, - $expected - ) { - $this->client->setClassConfig( - 'Google_Logger_Abstract', - 'log_format', - $format - ); - $this->client->setClassConfig( - 'Google_Logger_Abstract', - 'date_format', - $date_format - ); - $this->client->setClassConfig( - 'Google_Logger_Abstract', - 'allow_newlines', - $newlines - ); - - $logger = $this->getLogger(); - $logger->expects($this->once()) - ->method('write') - ->with($expected); - - $logger->log('debug', $message, $context); - } - - public function testNullLoggerNeverWrites() - { - $logger = $this->getLogger('write', 'Google_Logger_Null'); - $logger->expects($this->never()) - ->method('write'); - - $logger->log( - 'emergency', - 'Should not be written', - array('same' => 'for this') - ); - } - - public function testNullLoggerNeverHandles() - { - $logger = $this->getLogger('write', 'Google_Logger_Null'); - $this->assertFalse($logger->shouldHandle('emergency')); - $this->assertFalse($logger->shouldHandle(600)); - } - - public function testPsrNeverWrites() - { - $logger = $this->getLogger('write', 'Google_Logger_Psr'); - $logger->expects($this->never()) - ->method('write'); - - $logger->log( - 'emergency', - 'Should not be written', - array('same' => 'for this') - ); - - $logger->setLogger($this->getLogger()); - - $logger->log( - 'emergency', - 'Should not be written', - array('same' => 'for this') - ); - } - - public function testPsrNeverShouldHandleWhenNoLoggerSet() - { - $logger = $this->getLogger(null, 'Google_Logger_Psr'); - $this->assertFalse($logger->shouldHandle('emergency')); - $this->assertFalse($logger->shouldHandle(600)); - } - - public function testPsrShouldHandleWhenLoggerSet() - { - $logger = $this->getLogger(null, 'Google_Logger_Psr'); - $logger->setLogger($this->getLogger()); - - $this->assertTrue($logger->shouldHandle('emergency')); - $this->assertTrue($logger->shouldHandle(600)); - } - - /** - * @dataProvider logLevelsProvider - */ - public function testPsrDelegates($key) - { - $message = 'This is my log message'; - $context = array('some'=>'context'); - - $delegate = $this->getLogger('log'); - $delegate->expects($this->once()) - ->method('log') - ->with($key, $message, $context); - - $logger = $this->getLogger(null, 'Google_Logger_Psr'); - $logger->setLogger($delegate); - - call_user_func(array($logger, $key), $message, $context); - } - - /** - * @expectedException Google_Logger_Exception - * @expectedExceptionMessage File logger requires a filename or a valid file pointer - */ - public function testLoggerWithBadFileType() - { - $this->client->setClassConfig('Google_Logger_File', 'file', false); - $logger = $this->getLogger(null, 'Google_Logger_File'); - } - - /** - * @expectedException Google_Logger_Exception - * @expectedExceptionMessage Logger Error - */ - public function testLoggerWithBadFileValue() - { - $this->client->setClassConfig('Google_Logger_File', 'file', 'not://exist'); - - $logger = $this->getLogger(null, 'Google_Logger_File'); - $logger->log('emergency', 'will fail'); - } - - /** - * @expectedException Google_Logger_Exception - * @expectedExceptionMessage File pointer is no longer available - */ - public function testLoggerWithClosedFileReference() - { - $fp = fopen('php://memory', 'r+'); - - $this->client->setClassConfig('Google_Logger_File', 'file', $fp); - $logger = $this->getLogger(null, 'Google_Logger_File'); - - fclose($fp); - - $logger->log('emergency', 'will fail'); - } - - public function testLoggerWithFileReference() - { - $fp = fopen('php://memory', 'r+'); - - $this->client->setClassConfig('Google_Logger_File', 'file', $fp); - $this->client->setClassConfig( - 'Google_Logger_Abstract', - 'log_format', - "%level% - %message%\n" - ); - - $logger = $this->getLogger(null, 'Google_Logger_File'); - $logger->log('emergency', 'test one'); - $logger->log('alert', 'test two'); - $logger->log(500, 'test three'); - - rewind($fp); - $this->assertEquals( - "EMERGENCY - test one\nALERT - test two\nCRITICAL - test three\n", - stream_get_contents($fp) - ); - - fclose($fp); - } - - public function testLoggerWithFile() - { - $this->expectOutputString( - "EMERGENCY - test one\nALERT - test two\nCRITICAL - test three\n" - ); - - $this->client->setClassConfig( - 'Google_Logger_File', - 'file', - 'php://output' - ); - $this->client->setClassConfig( - 'Google_Logger_Abstract', - 'log_format', - "%level% - %message%\n" - ); - - $logger = $this->getLogger(null, 'Google_Logger_File'); - $logger->log('emergency', 'test one'); - $logger->log('alert', 'test two'); - $logger->log(500, 'test three'); - } - - public function formattingProvider() - { - return array( - 'no interpolation' => array( - 'this is my format', - 'd/M/Y:H:i:s O', - false, - 'you wont see this', - array('or' => 'this'), - 'this is my format', - ), - 'only message interpolation' => array( - 'my format: %message%', - 'd/M/Y:H:i:s O', - false, - 'you will see this', - array('but not' => 'this'), - 'my format: you will see this', - ), - 'message and level interpolation' => array( - '%level% - my format: %message%', - 'd/M/Y:H:i:s O', - false, - 'you will see this', - array('but not' => 'this'), - 'DEBUG - my format: you will see this', - ), - 'message, level, datetime interpolation' => array( - '[%datetime%] %level% - my format: %message%', - '\T\I\M\E', - false, - 'you will see this', - array('but not' => 'this'), - '[TIME] DEBUG - my format: you will see this', - ), - 'message, level, datetime, context interpolation' => array( - '[%datetime%] %level% - my format: %message%: %context%', - '\T\I\M\E', - false, - 'you will see this', - array('and' => 'this'), - '[TIME] DEBUG - my format: you will see this: {"and":"this"}', - ), - 'reverse JSON in context' => array( - '%context%', - 'd/M/Y:H:i:s O', - false, - 'you will not see this', - array('reverse' => json_encode(array('this' => 'is cool'))), - '{"reverse":{"this":"is cool"}}', - ), - 'remove newlines in message' => array( - '%message%', - 'd/M/Y:H:i:s O', - false, - "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", - array('you wont' => 'see this'), - 'This is my newlines message', - ), - 'allow newlines in message' => array( - '%message%', - 'd/M/Y:H:i:s O', - true, - "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", - array('you wont' => 'see this'), - "This \n\n\r\n is \r my \r\n newlines \r\r\r\n\n message", - ), - 'allow newlines in JSON' => array( - '%context%', - 'd/M/Y:H:i:s O', - true, - "wont see this", - array('you will' => 'see this'), - version_compare(PHP_VERSION, '5.4.0', '>=') ? - "{\n \"you will\": \"see this\"\n}" : - '{"you will":"see this"}' - ), - ); - } - - public function filterProvider() - { - return array( - array('debug', 'debug', true), - array(100, 'debug', true), - array('info', 'debug', false), - array('info', 'notice', true), - array('notice', 'notice', true), - array(250, 'notice', true), - array('notice', 'debug', false), - array(250, 'alert', true), - array('error', 'error', true), - array('error', 'warning', false), - array('error', 'critical', true), - array(600, 'alert', false), - array(600, 'critical', false), - array(600, 'emergency', true), - array('emergency', 'emergency', true), - ); - } - - public function invalidLevelsProvider() - { - return array( - array('100'), - array('DEBUG'), - array(100.0), - array(''), - array(0), - ); - } - - public function logLevelsProvider() - { - return array( - array('emergency', 600), - array('alert', 550), - array('critical', 500), - array('error', 400), - array('warning', 300), - array('notice', 250), - array('info', 200), - array('debug', 100), - ); - } - - private function getLogger($methods = null, $type = 'Google_Logger_Abstract') - { - return $this->getMockBuilder($type) - ->setMethods((array) $methods) - ->setConstructorArgs(array($this->client)) - ->getMockForAbstractClass(); - } -} diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 3d04937f6..14dbb3b1e 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -18,17 +18,14 @@ class Google_Service_AdSenseTest extends BaseTest { public $adsense; - public function __construct() + public function setUp() { - parent::__construct(); + $this->checkToken(); $this->adsense = new Google_Service_AdSense($this->getClient()); } public function testAccountsList() { - if (!$this->checkToken()) { - return; - } $accounts = $this->adsense->accounts->listAccounts(); $this->assertArrayHasKey('kind', $accounts); $this->assertEquals($accounts['kind'], 'adsense#accounts'); @@ -251,9 +248,6 @@ public function testAccountsCustomChannelsAdUnitsList() public function testAdClientsList() { - if (!$this->checkToken()) { - return; - } $adClients = $this->adsense->adclients->listAdclients(); $this->checkAdClientsCollection($adClients); } diff --git a/tests/Google/Service/PlusTest.php b/tests/Google/Service/PlusTest.php index cb132afdc..edd012f52 100644 --- a/tests/Google/Service/PlusTest.php +++ b/tests/Google/Service/PlusTest.php @@ -19,15 +19,14 @@ class Google_Service_PlusTest extends BaseTest { /** @var Google_PlusService */ public $plus; - public function __construct() + public function setUp() { - parent::__construct(); + $this->checkToken(); $this->plus = new Google_Service_Plus($this->getClient()); } public function testGetPerson() { - $this->checkToken(); $person = $this->plus->people->get("118051310819094153327"); $this->assertArrayHasKey('kind', $person); $this->assertArrayHasKey('displayName', $person); @@ -37,7 +36,6 @@ public function testGetPerson() public function testListActivities() { - $this->checkToken(); $activities = $this->plus->activities ->listActivities("118051310819094153327", "public"); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 9312093ac..0f3fa759c 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -41,31 +41,15 @@ public function setUp() $this->client = $this->getMockBuilder("Google_Client") ->disableOriginalConstructor() ->getMock(); - $this->logger = $this->getMockBuilder("Google_Logger_Null") + $this->logger = $this->getMockBuilder("Monolog\Logger") ->disableOriginalConstructor() ->getMock(); - $this->client->expects($this->any()) - ->method("getClassConfig") - ->will($this->returnCallback(function($class, $type) { - if (!is_string($class)) { - $class = get_class($class); - } - $configMap = array( - "Google_Auth_Simple" => array( - "developer_key" => "testKey" - ), - ); - return isset($configMap[$class][$type]) ? $configMap[$class][$type] : null; - })); $this->client->expects($this->any()) ->method("getLogger") ->will($this->returnValue($this->logger)); $this->client->expects($this->any()) ->method("shouldDefer") ->will($this->returnValue(true)); - $this->client->expects($this->any()) - ->method("getAuth") - ->will($this->returnValue(new Google_Auth_Simple($this->client))); $this->client->expects($this->any()) ->method("getHttpClient") ->will($this->returnValue(new GuzzleHttp\Client([ @@ -97,7 +81,7 @@ public function testCallFailure() $resource->call("someothermethod", array()); } - public function testCallSimple() + public function testCall() { $resource = new Google_Service_Resource( $this->service, @@ -114,7 +98,7 @@ public function testCallSimple() ) ); $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://test.example.com/method/path?key=testKey", $request->getUrl()); + $this->assertEquals("https://test.example.com/method/path", $request->getUrl()); $this->assertEquals("POST", $request->getMethod()); } @@ -136,7 +120,7 @@ public function testCallServiceDefinedRoot() ) ); $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://sample.example.com/method/path?key=testKey", $request->getUrl()); + $this->assertEquals("https://sample.example.com/method/path", $request->getUrl()); $this->assertEquals("POST", $request->getMethod()); } diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 8f98586d1..26e8a8fb6 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -20,17 +20,14 @@ class Google_Service_TasksTest extends BaseTest /** @var Google_TasksService */ public $taskService; - public function __construct() + public function setUp() { - parent::__construct(); + $this->checkToken(); $this->taskService = new Google_Service_Tasks($this->getClient()); } public function testInsertTask() { - if (!$this->checkToken()) { - return; - } $list = $this->createTaskList('List: ' . __METHOD__); $task = $this->createTask('Task: '.__METHOD__, $list->id); $this->assertIsTask($task); diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index 657760aa3..b7745f8ae 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -17,26 +17,22 @@ class Google_Service_YouTubeTest extends BaseTest { - /** @var Google_PlusService */ - public $plus; - public function __construct() + /** @var Google_Service_YouTube */ + public $youtube; + public function setUp() { - parent::__construct(); + $this->checkToken(); $this->youtube = new Google_Service_YouTube($this->getClient()); } public function testMissingFieldsAreNull() { - if (!$this->checkToken()) { - return; - } - $parts = "id,brandingSettings"; $opts = array("mine" => true); $channels = $this->youtube->channels->listChannels($parts, $opts); $newChannel = new Google_Service_YouTube_Channel(); - $newChannel->setId($channels[0]->getId()); + $newChannel->setId( $channels[0]->getId()); $newChannel->setBrandingSettings($channels[0]->getBrandingSettings()); $simpleOriginal = $channels[0]->toSimpleObject(); diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 359e916a9..1dc73c9fd 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -26,9 +26,16 @@ class Google_Task_RunnerTest extends PHPUnit_Framework_TestCase private $mockedCallsCount = 0; private $currentMockedCall = 0; private $mockedCalls = array(); + private $nextRetryMap; + private static $retryConfig; protected function setUp() { + // hack to reset static Google_Client::$retryConfig each test + if (!self::$retryConfig) { + self::$retryConfig = Google_Client::$retryConfig; + } + Google_Client::$retryConfig = self::$retryConfig; $this->client = new Google_Client(); } @@ -99,10 +106,7 @@ public function testCustomRestRetryMapReplacesDefaults( $errorCode, $errorBody = '{}' ) { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array()) - ); + $this->setRetryMap(array()); $this->setTaskConfig(array('retries' => 5)); $this->setNextResponse($errorCode, $errorBody)->makeRequest(); @@ -110,9 +114,8 @@ public function testCustomRestRetryMapReplacesDefaults( public function testCustomRestRetryMapAddsNewHandlers() { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array('403' => Google_Config::TASK_RETRY_ALWAYS)) + $this->setRetryMap( + array('403' => Google_Task_Runner::TASK_RETRY_ALWAYS) ); $this->setTaskConfig(array('retries' => 5)); @@ -129,9 +132,8 @@ public function testCustomRestRetryMapAddsNewHandlers() */ public function testCustomRestRetryMapWithCustomLimits($limit) { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array('403' => $limit)) + $this->setRetryMap( + array('403' => $limit) ); $this->setTaskConfig(array('retries' => 5)); @@ -227,10 +229,7 @@ public function testCustomCurlRetryMapReplacesDefaults( $errorCode, $errorMessage = '' ) { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array()) - ); + $this->setRetryMap(array()); $this->setTaskConfig(array('retries' => 5)); $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); @@ -241,11 +240,8 @@ public function testCustomCurlRetryMapReplacesDefaults( */ public function testCustomCurlRetryMapAddsNewHandlers() { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array( - CURLE_COULDNT_RESOLVE_PROXY => Google_Config::TASK_RETRY_ALWAYS - )) + $this->setRetryMap( + array(CURLE_COULDNT_RESOLVE_PROXY => Google_Task_Runner::TASK_RETRY_ALWAYS) ); $this->setTaskConfig(array('retries' => 5)); @@ -263,11 +259,8 @@ public function testCustomCurlRetryMapAddsNewHandlers() */ public function testCustomCurlRetryMapWithCustomLimits($limit) { - $this->client->setClassConfig( - 'Google_Service_Exception', - array('retry_map' => array( - CURLE_COULDNT_RESOLVE_PROXY => $limit - )) + $this->setRetryMap( + array(CURLE_COULDNT_RESOLVE_PROXY => $limit) ); $this->setTaskConfig(array('retries' => 5)); @@ -301,7 +294,7 @@ public function testBadTaskConfig($config, $message) $this->setTaskConfig($config); new Google_Task_Runner( - $this->client->getClassConfig('Google_Task_Runner'), + Google_Client::$retryConfig, '', array($this, 'testBadTaskConfig') ); @@ -313,7 +306,7 @@ public function testBadTaskConfig($config, $message) */ public function testBadTaskCallback() { - $config = $this->client->getClassConfig('Google_Task_Runner'); + $config = []; new Google_Task_Runner($config, '', 5); } @@ -322,7 +315,7 @@ public function testBadTaskCallback() */ public function testTaskRetryOffByDefault() { - $this->setNextTaskAllowedRetries(Google_Config::TASK_RETRY_ALWAYS) + $this->setNextTaskAllowedRetries(Google_Task_Runner::TASK_RETRY_ALWAYS) ->runTask(); } @@ -332,7 +325,7 @@ public function testTaskRetryOffByDefault() public function testOneTaskRetryWithError() { $this->setTaskConfig(array('retries' => 1)); - $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS) + $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) ->runTask(); } @@ -342,14 +335,14 @@ public function testOneTaskRetryWithError() public function testMultipleTaskRetriesWithErrors() { $this->setTaskConfig(array('retries' => 5)); - $this->setNextTasksAllowedRetries(6, Google_Config::TASK_RETRY_ALWAYS) + $this->setNextTasksAllowedRetries(6, Google_Task_Runner::TASK_RETRY_ALWAYS) ->runTask(); } public function testOneTaskRetryWithSuccess() { $this->setTaskConfig(array('retries' => 1)); - $result = $this->setNextTaskAllowedRetries(Google_Config::TASK_RETRY_ALWAYS) + $result = $this->setNextTaskAllowedRetries(Google_Task_Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -359,7 +352,7 @@ public function testOneTaskRetryWithSuccess() public function testMultipleTaskRetriesWithSuccess() { $this->setTaskConfig(array('retries' => 5)); - $result = $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS) + $result = $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -396,8 +389,8 @@ public function testTaskTimeouts($config, $minTime) public function testTaskWithManualRetries() { $this->setTaskConfig(array('retries' => 2)); - $this->setNextTasksAllowedRetries(2, Google_Config::TASK_RETRY_ALWAYS); - $config = $this->client->getClassConfig('Google_Task_Runner'); + $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS); + $config = Google_Client::$retryConfig; $task = new Google_Task_Runner( $config, @@ -405,16 +398,16 @@ public function testTaskWithManualRetries() array($this, 'runNextTask') ); - $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->canAttempt()); $this->assertTrue($task->attempt()); - $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->canAttempt()); $this->assertTrue($task->attempt()); - $this->assertTrue($task->canAttmpt()); + $this->assertTrue($task->canAttempt()); $this->assertTrue($task->attempt()); - $this->assertFalse($task->canAttmpt()); + $this->assertFalse($task->canAttempt()); $this->assertFalse($task->attempt()); } @@ -444,8 +437,8 @@ public function timeoutProvider() public function customLimitsProvider() { return array( - array(Google_Config::TASK_RETRY_NEVER), - array(Google_Config::TASK_RETRY_ONCE), + array(Google_Task_Runner::TASK_RETRY_NEVER), + array(Google_Task_Runner::TASK_RETRY_ONCE), ); } @@ -539,7 +532,12 @@ private function setTaskConfig(array $config) 'jitter' => .5, 'retries' => 1 ); - $this->client->setClassConfig('Google_Task_Runner', $config); + Google_Client::$retryConfig = $config; + } + + private function setRetryMap(array $retryMap) + { + $this->nextRetryMap = $retryMap; } /** @@ -616,13 +614,11 @@ private function setNextResponsesThrow($count, $message, $code) */ private function setNextResponseThrows($message, $code) { - $map = $this->client->getClassConfig('Google_Service_Exception', 'retry_map'); $this->mockedCalls[$this->mockedCallsCount++] = new Google_Service_Exception( $message, $code, null, - array(), - $map + array() ); return $this; @@ -642,9 +638,10 @@ private function makeRequest() ->method('send') ->will($this->returnCallback(array($this, 'getNextMockedCall'))); - $config = $this->client->getClassConfig('Google_Task_Runner'); - $retryMap = $this->client->getClassConfig('Google_Service_Exception', 'retry_map'); + $config = Google_Client::$retryConfig; + $retryMap = $this->nextRetryMap; + $this->nextRetryMap = null; return Google_Http_REST::execute($http, $request, $config, $retryMap); } @@ -719,17 +716,21 @@ private function setNextTasksAllowedRetries($count, $allowedRetries) */ private function runTask() { - $config = $this->client->getClassConfig('Google_Task_Runner'); + $config = Google_Client::$retryConfig; $task = new Google_Task_Runner( $config, '', array($this, 'runNextTask') ); + if (null !== $this->nextRetryMap) { + $task->setRetryMap($this->nextRetryMap); + $this->nextRetryMap = null; + } + $exception = $this->getMockBuilder('Google_Service_Exception') - ->disableOriginalConstructor() - ->setMethods(array('allowedRetries')) - ->getMock(); + ->disableOriginalConstructor() + ->getMock(); $exceptionCount = 0; $exceptionCalls = array(); @@ -740,13 +741,7 @@ private function runTask() } } - $exception->expects($this->exactly($exceptionCount)) - ->method('allowedRetries') - ->will( - new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls( - $exceptionCalls - ) - ); + $task->setRetryMap($exceptionCalls); return $task->run(); } diff --git a/tests/Google/Utils/URITemplateTest b/tests/Google/Utils/URITemplateTest.php similarity index 100% rename from tests/Google/Utils/URITemplateTest rename to tests/Google/Utils/URITemplateTest.php diff --git a/tests/OAuthHelper.php b/tests/OAuthHelper.php deleted file mode 100644 index 944c47c8c..000000000 --- a/tests/OAuthHelper.php +++ /dev/null @@ -1,50 +0,0 @@ -setScopes( - array( - "https://www.googleapis.com/auth/plus.me", - "https://www.googleapis.com/auth/urlshortener", - "https://www.googleapis.com/auth/tasks", - "https://www.googleapis.com/auth/adsense", - "https://www.googleapis.com/auth/youtube" - ) -); -$client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); -// Visit https://code.google.com/apis/console to -// generate your oauth2_client_id, oauth2_client_secret, and to -// register your oauth2_redirect_uri. -$clientId = getenv('GCLOUD_CLIENT_ID') ? getenv('GCLOUD_CLIENT_ID') : null; -$clientSecret = getenv('GCLOUD_CLIENT_SECRET') ? getenv('GCLOUD_CLIENT_SECRET') : null; -if (!($clientId && $clientSecret)) { - die("fetching a token requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set\n"); -} -$client->setClientId($clientId); -$client->setClientSecret($clientSecret); -$authUrl = $client->createAuthUrl(); - -`open '$authUrl'`; -echo "\nPlease enter the auth code:\n"; -$authCode = trim(fgets(STDIN)); - -$accessToken = $client->authenticate($authCode); -$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.accessToken'; -file_put_contents($file, $accessToken); - -echo "successfully loaded access token\n"; \ No newline at end of file diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 327b974f9..95fdcb79b 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once dirname(__FILE__) . '/../src/Google/autoload.php'; -require_once dirname(__FILE__) . '/BaseTest.php'; +require_once __DIR__ . '/../vendor/autoload.php'; +require_once __DIR__ . '/BaseTest.php'; date_default_timezone_set('UTC'); diff --git a/tests/clearToken.php b/tests/clearToken.php new file mode 100644 index 000000000..1990ec84a --- /dev/null +++ b/tests/clearToken.php @@ -0,0 +1,8 @@ +getCache()->get('access_token')); +$test->getCache()->delete('access_token'); + +echo "SUCCESS\n"; \ No newline at end of file diff --git a/tests/config/test.ini b/tests/config/test.ini index 1f55277d4..61be46410 100644 --- a/tests/config/test.ini +++ b/tests/config/test.ini @@ -1,7 +1,6 @@ ; Test.ini file application_name = My Test application auth_class = Google_Auth_OAuth2 -[classes] -Google_Auth_OAuth2[client_id] = 12345.apps.googleusercontent.com -Google_Auth_OAuth2[client_secret] = gjfiwnGinpena3 -Google_Auth_OAuth2[redirect_uri] = http://example.com \ No newline at end of file +client_id = 12345.apps.googleusercontent.com +client_secret = gjfiwnGinpena3 +redirect_uri = http://example.com \ No newline at end of file From ec32df17354142f5a4762af18426c0175cebf58d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 28 Sep 2015 14:21:59 -0700 Subject: [PATCH 0906/1274] DX, organization, and auth cleanup --- .gitignore | 2 - README.md | 57 +- composer.json | 17 +- composer.lock | 1649 +++++++++++++++++ examples/appengineauth.php | 46 - examples/batch.php | 79 +- examples/idtoken.php | 92 +- examples/index.php | 46 +- .../{fileupload.php => large-file-upload.php} | 106 +- examples/multi-api.php | 114 +- examples/service-account.php | 42 +- examples/simple-file-upload.php | 135 ++ examples/simple-query.php | 19 +- examples/simplefileupload.php | 123 -- examples/styles/style.css | 6 +- examples/templates/base.php | 161 +- .../{user-example.php => url-shortener.php} | 101 +- phpunit.xml.dist | 5 +- src/Google/AccessToken.php | 227 --- src/Google/AccessToken/Revoke.php | 73 + src/Google/AccessToken/Verify.php | 178 ++ src/Google/Auth/AppIdentity.php | 115 -- src/Google/Auth/Exception.php | 20 - src/Google/Cache/Memcache.php | 3 +- src/Google/Client.php | 677 +++++-- src/Google/Http/Batch.php | 229 +++ src/Google/Http/MediaFileUpload.php | 9 +- src/Google/Http/{Parallel.php => Pool.php} | 2 +- src/Google/IO/Exception.php | 65 - src/Google/Model.php | 17 +- src/Google/Service/Resource.php | 10 +- src/Google/Task/Runner.php | 5 +- src/Google/Utils.php | 133 -- .../{URITemplate.php => UriTemplate.php} | 18 +- tests/BaseTest.php | 72 +- tests/Google/AccessToken/RevokeTest.php | 87 + tests/Google/AccessToken/VerifyTest.php | 60 + tests/Google/AccessTokenTest.php | 160 -- tests/Google/ClientTest.php | 84 +- tests/Google/Http/BatchTest.php | 78 + .../Http/{ParallelTest.php => PoolTest.php} | 23 +- tests/Google/Service/PagespeedonlineTest.php | 10 +- tests/Google/Service/ResourceTest.php | 27 + tests/Google/ServiceTest.php | 11 - tests/Google/Task/RunnerTest.php | 85 +- ...RITemplateTest.php => UriTemplateTest.php} | 14 +- tests/clearToken.php | 2 +- tests/config/test.ini | 2 +- tests/examples/batchTest.php | 35 + tests/examples/idTokenTest.php | 32 + tests/examples/indexTest.php | 32 + tests/examples/largeFileUploadTest.php | 32 + tests/examples/multiApiTest.php | 34 + tests/examples/serviceAccountTest.php | 34 + tests/examples/simpleFileUploadTest.php | 32 + tests/examples/simpleQueryTest.php | 37 + tests/examples/urlShortenerTest.php | 34 + 57 files changed, 3969 insertions(+), 1629 deletions(-) create mode 100644 composer.lock delete mode 100644 examples/appengineauth.php rename examples/{fileupload.php => large-file-upload.php} (60%) create mode 100644 examples/simple-file-upload.php delete mode 100644 examples/simplefileupload.php rename examples/{user-example.php => url-shortener.php} (60%) delete mode 100644 src/Google/AccessToken.php create mode 100644 src/Google/AccessToken/Revoke.php create mode 100644 src/Google/AccessToken/Verify.php delete mode 100644 src/Google/Auth/AppIdentity.php delete mode 100644 src/Google/Auth/Exception.php create mode 100644 src/Google/Http/Batch.php rename src/Google/Http/{Parallel.php => Pool.php} (98%) delete mode 100644 src/Google/IO/Exception.php delete mode 100644 src/Google/Utils.php rename src/Google/Utils/{URITemplate.php => UriTemplate.php} (99%) create mode 100644 tests/Google/AccessToken/RevokeTest.php create mode 100644 tests/Google/AccessToken/VerifyTest.php delete mode 100644 tests/Google/AccessTokenTest.php create mode 100644 tests/Google/Http/BatchTest.php rename tests/Google/Http/{ParallelTest.php => PoolTest.php} (69%) rename tests/Google/Utils/{URITemplateTest.php => UriTemplateTest.php} (96%) create mode 100644 tests/examples/batchTest.php create mode 100644 tests/examples/idTokenTest.php create mode 100644 tests/examples/indexTest.php create mode 100644 tests/examples/largeFileUploadTest.php create mode 100644 tests/examples/multiApiTest.php create mode 100644 tests/examples/serviceAccountTest.php create mode 100644 tests/examples/simpleFileUploadTest.php create mode 100644 tests/examples/simpleQueryTest.php create mode 100644 tests/examples/urlShortenerTest.php diff --git a/.gitignore b/.gitignore index 8c11bd412..92128bc2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ .DS_Store phpunit.xml -composer.lock vendor examples/testfile-small.txt examples/testfile.txt -tests/.accessToken tests/.apiKey diff --git a/README.md b/README.md index d9797b828..fb30e7ee6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/google/google-api-php-client.svg)](https://travis-ci.org/google/google-api-php-client) +[![Build Status](https://travis-ci.org/google/google-api-php-client.svg)](https://travis-ci.org/google/google-api-php-client.svg?branch=master) # Google APIs Client Library for PHP # @@ -9,10 +9,7 @@ The Google API Client Library enables you to work with Google APIs such as Googl This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code. ## Requirements ## -* [PHP 5.2.1 or higher](http://www.php.net/) -* [PHP JSON extension](http://php.net/manual/en/book.json.php) - -*Note*: some features (service accounts and id token verification) require PHP 5.3.0 and above due to cryptographic algorithm requirements. +* [PHP 5.4.0 or higher](http://www.php.net/) ## Developer Documentation ## http://developers.google.com/api-client-library/php @@ -22,24 +19,32 @@ http://developers.google.com/api-client-library/php For the latest installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). ## Basic Example ## -See the examples/ directory for examples of the key client features. +See the examples/ directory for examples of the key client features. You can +view them in your browser by running the php built-in web server. + +``` +$ cd examples/ +$ php -S localhost:8000 +``` + +And then browsing to the host and port you specified +(in the above example, `http://localhost:8000`). + ```PHP -setApplicationName("Client_Library_Examples"); - $client->setDeveloperKey("YOUR_APP_KEY"); - - $service = new Google_Service_Books($client); - $optParams = array('filter' => 'free-ebooks'); - $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); - - foreach ($results as $item) { - echo $item['volumeInfo']['title'], "
\n"; - } - +// include your composer dependencies +require_once 'vendor/autoload.php'; + +$client = new Google_Client(); +$client->setApplicationName("Client_Library_Examples"); +$client->setDeveloperKey("YOUR_APP_KEY"); + +$service = new Google_Service_Books($client); +$optParams = array('filter' => 'free-ebooks'); +$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); + +foreach ($results as $item) { + echo $item['volumeInfo']['title'], "
\n"; +} ``` ### Service Specific Examples ### @@ -58,7 +63,7 @@ If there is a specific bug with the library, please file a issue in the Github i We accept contributions via Github Pull Requests, but all contributors need to be covered by the standard Google Contributor License Agreement. You can find links, and more instructions, in the documentation: https://developers.google.com/api-client-library/php/contribute -### I want an example of X! ### +### I want an example of X! ### If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! @@ -68,7 +73,7 @@ When we started working on the 1.0.0 branch we knew there were several fundament ### Why does Google_..._Service have weird names? ### -The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. +The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. ### How do I deal with non-JSON response types? ### @@ -95,10 +100,10 @@ Run the PHPUnit tests with PHPUnit. You can configure an API key and token in Ba To check for coding style violations, run ``` -vendor/bin/phpcs src --standard=style/ruleset.xml -np +vendor/bin/phpcs src --standard=style/ruleset.xml -np ``` -To automatically fix (fixable) coding style violations, run +To automatically fix (fixable) coding style violations, run ``` vendor/bin/phpcbf src --standard=style/ruleset.xml diff --git a/composer.json b/composer.json index 2975a421d..752e04780 100644 --- a/composer.json +++ b/composer.json @@ -7,16 +7,23 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "dev-master", - "monolog/monolog": "^1.17" + "google/auth": "v0.2-alpha", + "monolog/monolog": "^1.17", + "phpseclib/phpseclib": "~2.0", + "guzzlehttp/guzzle": "5.2.*" }, "require-dev": { - "phpunit/phpunit": "3.7.*", - "squizlabs/php_codesniffer": "~2.3" + "phpunit/phpunit": "~4", + "squizlabs/php_codesniffer": "~2.3", + "symfony/dom-crawler": "~2.0", + "symfony/css-selector": "~2.0" }, "autoload": { + "psr-0": { + "Google_": "src/" + }, "classmap": [ - "src/" + "src/Google/Service/" ] }, "extra": { diff --git a/composer.lock b/composer.lock new file mode 100644 index 000000000..db10d558c --- /dev/null +++ b/composer.lock @@ -0,0 +1,1649 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "6ea1c309fe27e654f278f887bb13198d", + "packages": [ + { + "name": "firebase/php-jwt", + "version": "2.0.0", + "target-dir": "Firebase/PHP-JWT", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/ffcfd888ce1e4f2d70cac2dc9b7301038332fe57", + "reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "Authentication/", + "Exceptions/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/firebase/php-jwt", + "time": "2015-04-01 18:46:38" + }, + { + "name": "google/auth", + "version": "v0.2-alpha", + "source": { + "type": "git", + "url": "https://github.com/google/google-auth-library-php.git", + "reference": "5dc5bcb37a7f50c7132c1feb5037f6c45b249477" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/google/google-auth-library-php/zipball/5dc5bcb37a7f50c7132c1feb5037f6c45b249477", + "reference": "5dc5bcb37a7f50c7132c1feb5037f6c45b249477", + "shasum": "" + }, + "require": { + "firebase/php-jwt": "2.0.0", + "guzzlehttp/guzzle": "5.2.*", + "php": ">=5.4" + }, + "require-dev": { + "phplint/phplint": "0.0.1", + "phpunit/phpunit": "3.7.*" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ], + "psr-4": { + "Google\\Auth\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Google Auth Library for PHP", + "homepage": "http://github.com/google/google-auth-library-php", + "keywords": [ + "Authentication", + "google", + "oauth2" + ], + "time": "2015-10-09 16:50:15" + }, + { + "name": "guzzlehttp/guzzle", + "version": "5.2.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "475b29ccd411f2fa8a408e64576418728c032cfa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/475b29ccd411f2fa8a408e64576418728c032cfa", + "reference": "475b29ccd411f2fa8a408e64576418728c032cfa", + "shasum": "" + }, + "require": { + "guzzlehttp/ringphp": "~1.0", + "php": ">=5.4.0" + }, + "require-dev": { + "ext-curl": "*", + "phpunit/phpunit": "~4.0", + "psr/log": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "time": "2015-01-28 01:03:29" + }, + { + "name": "guzzlehttp/ringphp", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/RingPHP.git", + "reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/RingPHP/zipball/dbbb91d7f6c191e5e405e900e3102ac7f261bc0b", + "reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b", + "shasum": "" + }, + "require": { + "guzzlehttp/streams": "~3.0", + "php": ">=5.4.0", + "react/promise": "~2.0" + }, + "require-dev": { + "ext-curl": "*", + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "ext-curl": "Guzzle will use specific adapters if cURL is present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Ring\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.", + "time": "2015-05-20 03:37:09" + }, + { + "name": "guzzlehttp/streams", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/streams.git", + "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/streams/zipball/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", + "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Stream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Provides a simple abstraction over streams of data", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "Guzzle", + "stream" + ], + "time": "2014-10-12 19:18:40" + }, + { + "name": "monolog/monolog", + "version": "1.17.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/0524c87587ab85bc4c2d6f5b41253ccb930a5422", + "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "php-console/php-console": "^3.1.3", + "phpunit/phpunit": "~4.5", + "phpunit/phpunit-mock-objects": "2.3.0", + "raven/raven": "~0.11", + "ruflin/elastica": ">=0.90 <3.0", + "swiftmailer/swiftmailer": "~5.3", + "videlalvaro/php-amqplib": "~2.4" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "raven/raven": "Allow sending log messages to a Sentry server", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.16.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "time": "2015-08-31 09:17:37" + }, + { + "name": "phpseclib/phpseclib", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "a74aa9efbe61430fcb60157c8e025a48ec8ff604" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/a74aa9efbe61430fcb60157c8e025a48ec8ff604", + "reference": "a74aa9efbe61430fcb60157c8e025a48ec8ff604", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phing/phing": "~2.7", + "phpunit/phpunit": "~4.0", + "sami/sami": "~2.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "suggest": { + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations.", + "pear-pear/PHP_Compat": "Install PHP_Compat to get phpseclib working on PHP < 5.0.0." + }, + "type": "library", + "autoload": { + "psr-4": { + "phpseclib\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "phpseclib/" + ], + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "time": "2015-08-04 04:48:03" + }, + { + "name": "psr/log", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", + "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Psr\\Log\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2012-12-21 11:40:51" + }, + { + "name": "react/promise", + "version": "v2.2.1", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise.git", + "reference": "3b6fca09c7d56321057fa8867c8dbe1abf648627" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise/zipball/3b6fca09c7d56321057fa8867c8dbe1abf648627", + "reference": "3b6fca09c7d56321057fa8867c8dbe1abf648627", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "React\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com" + } + ], + "description": "A lightweight implementation of CommonJS Promises/A for PHP", + "time": "2015-07-03 13:48:55" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14 21:17:01" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", + "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "dflydev/markdown": "~1.0", + "erusev/parsedown": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "phpDocumentor": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "mike.vanriel@naenius.com" + } + ], + "time": "2015-02-03 12:10:50" + }, + { + "name": "phpspec/prophecy", + "version": "v1.5.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4745ded9307786b730d7a60df5cb5a6c43cf95f7", + "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "phpdocumentor/reflection-docblock": "~2.0", + "sebastian/comparator": "~1.1" + }, + "require-dev": { + "phpspec/phpspec": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2015-08-13 10:07:40" + }, + { + "name": "phpunit/php-code-coverage", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-file-iterator": "~1.3", + "phpunit/php-text-template": "~1.2", + "phpunit/php-token-stream": "~1.3", + "sebastian/environment": "^1.3.2", + "sebastian/version": "~1.0" + }, + "require-dev": { + "ext-xdebug": ">=2.1.4", + "phpunit/phpunit": "~4" + }, + "suggest": { + "ext-dom": "*", + "ext-xdebug": ">=2.2.1", + "ext-xmlwriter": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2015-10-06 15:47:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0", + "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2015-06-21 13:08:43" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21 13:50:34" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.7", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", + "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2015-06-21 08:01:12" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da", + "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2015-09-15 10:49:45" + }, + { + "name": "phpunit/phpunit", + "version": "4.8.12", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "00194eb95989190a73198390ceca081ad3441a7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/00194eb95989190a73198390ceca081ad3441a7f", + "reference": "00194eb95989190a73198390ceca081ad3441a7f", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*", + "php": ">=5.3.3", + "phpspec/prophecy": "^1.3.1", + "phpunit/php-code-coverage": "~2.1", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": ">=1.0.6", + "phpunit/phpunit-mock-objects": "~2.3", + "sebastian/comparator": "~1.1", + "sebastian/diff": "~1.2", + "sebastian/environment": "~1.3", + "sebastian/exporter": "~1.2", + "sebastian/global-state": "~1.0", + "sebastian/version": "~1.0", + "symfony/yaml": "~2.1|~3.0" + }, + "suggest": { + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.8.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2015-10-12 03:36:47" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "2.3.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": ">=5.3.3", + "phpunit/php-text-template": "~1.2", + "sebastian/exporter": "~1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2015-10-02 06:51:40" + }, + { + "name": "sebastian/comparator", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "937efb279bd37a375bcadf584dec0726f84dbf22" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22", + "reference": "937efb279bd37a375bcadf584dec0726f84dbf22", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2015-07-26 15:48:44" + }, + { + "name": "sebastian/diff", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", + "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "http://www.github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2015-02-22 15:13:53" + }, + { + "name": "sebastian/environment", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6324c907ce7a52478eeeaede764f48733ef5ae44", + "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2015-08-03 06:14:51" + }, + { + "name": "sebastian/exporter", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "7ae5513327cb536431847bcc0c10edba2701064e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", + "reference": "7ae5513327cb536431847bcc0c10edba2701064e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~1.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2015-06-21 07:55:53" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12 03:26:01" + }, + { + "name": "sebastian/recursion-context", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "994d4a811bafe801fb06dccbee797863ba2792ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba", + "reference": "994d4a811bafe801fb06dccbee797863ba2792ba", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2015-06-21 08:04:50" + }, + { + "name": "sebastian/version", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "shasum": "" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2015-06-21 13:59:46" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "2.3.4", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "11a2545c44a5915f883e2e5ec12e14ed345e3ab2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/11a2545c44a5915f883e2e5ec12e14ed345e3ab2", + "reference": "11a2545c44a5915f883e2e5ec12e14ed345e3ab2", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.1.2" + }, + "bin": [ + "scripts/phpcs", + "scripts/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "CodeSniffer.php", + "CodeSniffer/CLI.php", + "CodeSniffer/Exception.php", + "CodeSniffer/File.php", + "CodeSniffer/Fixer.php", + "CodeSniffer/Report.php", + "CodeSniffer/Reporting.php", + "CodeSniffer/Sniff.php", + "CodeSniffer/Tokens.php", + "CodeSniffer/Reports/", + "CodeSniffer/Tokenizers/", + "CodeSniffer/DocGenerators/", + "CodeSniffer/Standards/AbstractPatternSniff.php", + "CodeSniffer/Standards/AbstractScopeSniff.php", + "CodeSniffer/Standards/AbstractVariableSniff.php", + "CodeSniffer/Standards/IncorrectPatternException.php", + "CodeSniffer/Standards/Generic/Sniffs/", + "CodeSniffer/Standards/MySource/Sniffs/", + "CodeSniffer/Standards/PEAR/Sniffs/", + "CodeSniffer/Standards/PSR1/Sniffs/", + "CodeSniffer/Standards/PSR2/Sniffs/", + "CodeSniffer/Standards/Squiz/Sniffs/", + "CodeSniffer/Standards/Zend/Sniffs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2015-09-09 00:18:50" + }, + { + "name": "symfony/css-selector", + "version": "v2.7.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "abe19cc0429a06be0c133056d1f9859854860970" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/abe19cc0429a06be0c133056d1f9859854860970", + "reference": "abe19cc0429a06be0c133056d1f9859854860970", + "shasum": "" + }, + "require": { + "php": ">=5.3.9" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony CssSelector Component", + "homepage": "https://symfony.com", + "time": "2015-09-22 13:49:29" + }, + { + "name": "symfony/dom-crawler", + "version": "v2.7.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/dom-crawler.git", + "reference": "2e185ca136399f902b948694987e62c80099c052" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/2e185ca136399f902b948694987e62c80099c052", + "reference": "2e185ca136399f902b948694987e62c80099c052", + "shasum": "" + }, + "require": { + "php": ">=5.3.9" + }, + "require-dev": { + "symfony/css-selector": "~2.3", + "symfony/phpunit-bridge": "~2.7" + }, + "suggest": { + "symfony/css-selector": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\DomCrawler\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony DomCrawler Component", + "homepage": "https://symfony.com", + "time": "2015-09-20 21:13:58" + }, + { + "name": "symfony/yaml", + "version": "v2.7.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/31cb2ad0155c95b88ee55fe12bc7ff92232c1770", + "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770", + "shasum": "" + }, + "require": { + "php": ">=5.3.9" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "time": "2015-09-14 14:14:09" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "google/auth": 15 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.4" + }, + "platform-dev": [] +} diff --git a/examples/appengineauth.php b/examples/appengineauth.php deleted file mode 100644 index 7b147e9e5..000000000 --- a/examples/appengineauth.php +++ /dev/null @@ -1,46 +0,0 @@ -setApplicationName("Client_Library_Examples"); - -$auth = new Google_Auth_AppIdentity($client); -$token = $auth->authenticateForScope(Google_Service_Storage::DEVSTORAGE_READ_ONLY); -if (!$token) { - die("Could not authenticate to AppIdentity service"); -} -$client->setAuth($auth); - -$service = new Google_Service_Storage($client); -$results = $service->buckets->listBuckets(str_replace("s~", "", $_SERVER['APPLICATION_ID'])); - -echo "

Results Of Call:

"; -echo "
";
-var_dump($results);
-echo "
"; - -echo pageFooter(__FILE__); diff --git a/examples/batch.php b/examples/batch.php index 3c8812f51..5d546562b 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -14,7 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; + echo pageHeader("Batching Queries"); /************************************************ @@ -22,7 +25,6 @@ books API again as an example, but this time we will batch up two queries into a single call. ************************************************/ -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); /************************************************ We create the client and set the simple API @@ -32,51 +34,50 @@ ************************************************/ $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); -$apiKey = ""; // Change to your API key. -// Warn if the API key isn't changed! -if (strpos($apiKey, "<") !== false) { + +// Warn if the API key isn't set. +if (!$apiKey = getApiKey()) { echo missingApiKeyWarning(); exit; -} else { - $client->setDeveloperKey($apiKey); +} +$client->setDeveloperKey($apiKey); - $service = new Google_Service_Books($client); +$service = new Google_Service_Books($client); - /************************************************ - To actually make the batch call we need to - enable batching on the client - this will apply - globally until we set it to false. This causes - call to the service methods to return the query - rather than immediately executing. - ************************************************/ - $client->setUseBatch(true); +/************************************************ + To actually make the batch call we need to + enable batching on the client - this will apply + globally until we set it to false. This causes + call to the service methods to return the query + rather than immediately executing. + ************************************************/ +$client->setUseBatch(true); - /************************************************ - We then create a batch, and add each query we - want to execute with keys of our choice - these - keys will be reflected in the returned array. - ************************************************/ - $batch = new Google_Http_Batch($client); - $optParams = array('filter' => 'free-ebooks'); - $req1 = $service->volumes->listVolumes('Henry David Thoreau', $optParams); - $batch->add($req1, "thoreau"); - $req2 = $service->volumes->listVolumes('George Bernard Shaw', $optParams); - $batch->add($req2, "shaw"); +/************************************************ + We then create a batch, and add each query we + want to execute with keys of our choice - these + keys will be reflected in the returned array. +************************************************/ +$batch = new Google_Http_Batch($client); +$optParams = array('filter' => 'free-ebooks'); +$req1 = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$batch->add($req1, "thoreau"); +$req2 = $service->volumes->listVolumes('George Bernard Shaw', $optParams); +$batch->add($req2, "shaw"); - /************************************************ - Executing the batch will send all requests off - at once. - ************************************************/ - $results = $batch->execute(); +/************************************************ + Executing the batch will send all requests off + at once. + ************************************************/ +$results = $batch->execute(); - echo "

Results Of Call 1:

"; - foreach ($results['response-thoreau'] as $item) { - echo $item['volumeInfo']['title'], "
\n"; - } - echo "

Results Of Call 2:

"; - foreach ($results['response-shaw'] as $item) { - echo $item['volumeInfo']['title'], "
\n"; - } +echo "

Results Of Call 1:

"; +foreach ($results['response-thoreau'] as $item) { + echo $item['volumeInfo']['title'], "
\n"; +} +echo "

Results Of Call 2:

"; +foreach ($results['response-shaw'] as $item) { + echo $item['volumeInfo']['title'], "
\n"; } echo pageFooter(__FILE__); diff --git a/examples/idtoken.php b/examples/idtoken.php index 80aefa621..465c64f22 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -14,45 +14,57 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; -session_start(); -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); +echo pageHeader("Retrieving An Id Token"); + +/************************************************* + * Ensure you've downloaded your oauth credentials + ************************************************/ +if (!$oauth_credentials = getOAuthCredentialsFile()) { + echo missingOAuth2CredentialsWarning(); + exit; +} /************************************************ - ATTENTION: Fill in these values! Make sure - the redirect URI is to this page, e.g: - http://localhost:8080/user-example.php + * NOTICE: + * The redirect URI is to the current page, e.g: + * http://localhost:8080/idtoken.php ************************************************/ -$client_id = ''; -$client_secret = ''; -$redirect_uri = ''; +$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; $client = new Google_Client(); -$client->setClientId($client_id); -$client->setClientSecret($client_secret); +$client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->setScopes('email'); /************************************************ - If we're logging out we just need to clear our - local access token in this case + * If we're logging out we just need to clear our + * local access token in this case ************************************************/ if (isset($_REQUEST['logout'])) { - unset($_SESSION['access_token']); + unset($_SESSION['id_token']); } + /************************************************ - If we have a code back from the OAuth 2.0 flow, - we need to exchange that with the authenticate() - function. We store the resultant access token - bundle in the session, and redirect to ourself. + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['access_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['id_token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } /************************************************ @@ -60,11 +72,10 @@ function. We store the resultant access token requests, else we generate an authentication URL. ************************************************/ if ( - isset($_SESSION['access_token']) - && $_SESSION['access_token'] - && false !== strpos($_SESSION['access_token'], 'id_token') + !empty($_SESSION['id_token']) + && isset($_SESSION['id_token']['id_token']) ) { - $client->setAccessToken($_SESSION['access_token']); + $client->setAccessToken($_SESSION['id_token']); } else { $authUrl = $client->createAuthUrl(); } @@ -78,34 +89,21 @@ function. We store the resultant access token and that can be cached. ************************************************/ if ($client->getAccessToken()) { - $_SESSION['access_token'] = $client->getAccessToken(); $token_data = $client->verifyIdToken(); } - -echo pageHeader("User Query - Retrieving An Id Token"); -if (strpos($client_id, "googleusercontent") == false) { - echo missingClientSecretsWarning(); - exit; -} ?> +
+
-Connect Me!"; -} else { - echo "Logout"; -} -?> +
- +
- +

Here is the data from your Id Token:

+
+
- diff --git a/examples/index.php b/examples/index.php index 243c9c02a..e901d4bf2 100644 --- a/examples/index.php +++ b/examples/index.php @@ -1,19 +1,41 @@ - + + + + + +
+  To view this page on a webserver using PHP 5.4 or above run:
+    php -S localhost:8080
+  
+ + + + + + + API Key set! + + + + +
+ You have not entered your API key +
+ API Key: + +
+ This can be found in the Google API Console +
+ + - diff --git a/examples/fileupload.php b/examples/large-file-upload.php similarity index 60% rename from examples/fileupload.php rename to examples/large-file-upload.php index 2247087e9..641308a68 100644 --- a/examples/fileupload.php +++ b/examples/large-file-upload.php @@ -14,50 +14,57 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; -session_start(); -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); +echo pageHeader("File Upload - Uploading a large file"); -/************************************************ - We'll setup an empty 20MB file to upload. +/************************************************* + * Ensure you've downloaded your oauth credentials ************************************************/ -DEFINE("TESTFILE", 'testfile.txt'); -if (!file_exists(TESTFILE)) { - $fh = fopen(TESTFILE, 'w'); - fseek($fh, 1024*1024*20); - fwrite($fh, "!", 1); - fclose($fh); +if (!$oauth_credentials = getOAuthCredentialsFile()) { + echo missingOAuth2CredentialsWarning(); + exit; } /************************************************ - ATTENTION: Fill in these values! Make sure - the redirect URI is to this page, e.g: - http://localhost:8080/fileupload.php + * The redirect URI is to the current page, e.g: + * http://localhost:8080/large-file-upload.php ************************************************/ -$client_id = ''; -$client_secret = ''; -$redirect_uri = ''; +$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; $client = new Google_Client(); -$client->setClientId($client_id); -$client->setClientSecret($client_secret); +$client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); $service = new Google_Service_Drive($client); +// add "?logout" to the URL to remove a token from the session if (isset($_REQUEST['logout'])) { unset($_SESSION['upload_token']); } +/************************************************ + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. + ************************************************/ if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['upload_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['upload_token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } -if (isset($_SESSION['upload_token']) && $_SESSION['upload_token']) { +// set the access token as part of the client +if (!empty($_SESSION['upload_token'])) { $client->setAccessToken($_SESSION['upload_token']); if ($client->isAccessTokenExpired()) { unset($_SESSION['upload_token']); @@ -67,10 +74,21 @@ } /************************************************ - If we're signed in then lets try to upload our - file. + * If we're signed in then lets try to upload our + * file. ************************************************/ -if ($client->getAccessToken()) { +if ($_SERVER['REQUEST_METHOD'] == 'POST' && $client->getAccessToken()) { + /************************************************ + * We'll setup an empty 20MB file to upload. + ************************************************/ + DEFINE("TESTFILE", 'testfile.txt'); + if (!file_exists(TESTFILE)) { + $fh = fopen(TESTFILE, 'w'); + fseek($fh, 1024*1024*20); + fwrite($fh, "!", 1); + fclose($fh); + } + $file = new Google_Service_Drive_DriveFile(); $file->title = "Big File"; $chunkSizeBytes = 1 * 1024 * 1024; @@ -111,11 +129,7 @@ fclose($handle); } -echo pageHeader("File Upload - Uploading a large file"); -if (strpos($client_id, "googleusercontent") == false) { - echo missingClientSecretsWarning(); - exit; -} + function readVideoChunk ($handle, $chunkSize) { $byteCount = 0; @@ -133,22 +147,22 @@ function readVideoChunk ($handle, $chunkSize) return $giantChunk; } ?> +
+
-Connect Me!"; -} -?> +
- -
- -
+ +
+

Your call was successful! Check your drive for this file:

+

title ?>

+
+ +
+ +
+
- diff --git a/examples/multi-api.php b/examples/multi-api.php index e518b5da7..c6f9193e9 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -14,62 +14,75 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; -session_start(); -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); +echo pageHeader("User Query - Multiple APIs"); -/************************************************ - ATTENTION: Fill in these values! Make sure - the redirect URI is to this page, e.g: - http://localhost:8080/user-example.php + +/************************************************* + * Ensure you've downloaded your oauth credentials ************************************************/ - $client_id = ''; - $client_secret = ''; - $redirect_uri = ''; +if (!$oauth_credentials = getOAuthCredentialsFile()) { + echo missingOAuth2CredentialsWarning(); + exit; +} /************************************************ - Make an API request on behalf of a user. In - this case we need to have a valid OAuth 2.0 - token for the user, so we need to send them - through a login flow. To do this we need some - information from our API console project. + * The redirect URI is to the current page, e.g: + * http://localhost:8080/multi-api.php ************************************************/ +$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; + $client = new Google_Client(); -$client->setClientId($client_id); -$client->setClientSecret($client_secret); +$client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); $client->addScope("https://www.googleapis.com/auth/youtube"); -/************************************************ - We are going to create both YouTube and Drive - services, and query both. - ************************************************/ -$yt_service = new Google_Service_YouTube($client); -$dr_service = new Google_Service_Drive($client); +$service = new Google_Service_Drive($client); +// add "?logout" to the URL to remove a token from the session +if (isset($_REQUEST['logout'])) { + unset($_SESSION['multi-api-token']); +} /************************************************ - Boilerplate auth management - see - user-example.php for details. + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. ************************************************/ -if (isset($_REQUEST['logout'])) { - unset($_SESSION['access_token']); -} if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['access_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['multi-api-token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } -if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { - $client->setAccessToken($_SESSION['access_token']); +// set the access token as part of the client +if (!empty($_SESSION['multi-api-token'])) { + $client->setAccessToken($_SESSION['multi-api-token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['multi-api-token']); + } } else { $authUrl = $client->createAuthUrl(); } +/************************************************ + We are going to create both YouTube and Drive + services, and query both. + ************************************************/ +$yt_service = new Google_Service_YouTube($client); +$dr_service = new Google_Service_Drive($client); + /************************************************ If we're signed in, retrieve channels from YouTube and a list of files from Drive. @@ -86,29 +99,24 @@ array("playlistId" => $likePlaylist) ); } - -echo pageHeader("User Query - Multiple APIs"); -if (strpos($client_id, "googleusercontent") == false) { - echo missingClientSecretsWarning(); - exit; -} ?> +
-Connect Me!"; -} else { - echo "

Results Of Drive List:

"; - foreach ($dr_results as $item) { - echo $item->title, "
\n"; - } + + + +

Results Of Drive List:

+ + title ?>
+ - echo "

Results Of YouTube Likes:

"; - foreach ($yt_results as $item) { - echo $item['snippet']['title'], "
\n"; - } -} ?> +

Results Of YouTube Likes:

+ +
+ +
- diff --git a/examples/service-account.php b/examples/service-account.php index 594f822f3..bee5df7b3 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -14,18 +14,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -session_start(); + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; +echo pageHeader("Service Account Access"); + /************************************************ Make an API request authenticated with a service account. ************************************************/ -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); + +$client = new Google_Client(); /************************************************ - ATTENTION: Fill in these values! You can get - them by creating a new Service Account in the + ATTENTION: Fill in these values, or make sure you + have set the GOOGLE_APPLICATION_CREDENTIALS + environment variable. You can get these credentials + by creating a new Service Account in the API console. Be sure to store the key file somewhere you can get to it - though in real operations you'd want to make sure it wasn't @@ -33,36 +39,22 @@ Make sure the Books API is enabled on this account as well, or the call will fail. ************************************************/ -$key_file_location = ''; //.json credentials -echo pageHeader("Service Account Access"); -if (!strlen($key_file_location)) { +if ($credentials_file = checkServiceAccountCredentialsFile()) { + // set the location manually + $client->setAuthConfig($credentials_file); +} elseif (getenv('GOOGLE_APPLICATION_CREDENTIALS')) { + // use the application default credentials + $client->useApplicationDefaultCredentials(); +} else { echo missingServiceAccountDetailsWarning(); exit; } -$client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setScopes(['https://www.googleapis.com/auth/books']); $service = new Google_Service_Books($client); -/************************************************ - If we have an access token, we can carry on. - Otherwise, we'll get one with the help of an - assertion credential. In other examples the list - of scopes was managed by the Client, but here - we have to list them manually. We also supply - the service account - ************************************************/ -if (isset($_SESSION['service_token'])) { - $client->setAccessToken($_SESSION['service_token']); -} -$client->setAuthConfigFile($key_file_location); -if ($client->getAuth()->isAccessTokenExpired()) { - $client->getAuth()->refreshTokenWithAssertion(); -} -$_SESSION['service_token'] = $client->getAccessToken(); - /************************************************ We're just going to make the same call as in the simple query as an example. diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php new file mode 100644 index 000000000..60fbf3a3d --- /dev/null +++ b/examples/simple-file-upload.php @@ -0,0 +1,135 @@ +setAuthConfig($oauth_credentials); +$client->setRedirectUri($redirect_uri); +$client->addScope("https://www.googleapis.com/auth/drive"); +$service = new Google_Service_Drive($client); + +// add "?logout" to the URL to remove a token from the session +if (isset($_REQUEST['logout'])) { + unset($_SESSION['upload_token']); +} + +/************************************************ + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. + ************************************************/ +if (isset($_GET['code'])) { + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['upload_token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); +} + +// set the access token as part of the client +if (!empty($_SESSION['upload_token'])) { + $client->setAccessToken($_SESSION['upload_token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['upload_token']); + } +} else { + $authUrl = $client->createAuthUrl(); +} + +/************************************************ + * If we're signed in then lets try to upload our + * file. For larger files, see fileupload.php. + ************************************************/ +if ($_SERVER['REQUEST_METHOD'] == 'POST' && $client->getAccessToken()) { + // We'll setup an empty 1MB file to upload. + DEFINE("TESTFILE", 'testfile-small.txt'); + if (!file_exists(TESTFILE)) { + $fh = fopen(TESTFILE, 'w'); + fseek($fh, 1024 * 1024); + fwrite($fh, "!", 1); + fclose($fh); + } + + // This is uploading a file directly, with no metadata associated. + $file = new Google_Service_Drive_DriveFile(); + $result = $service->files->insert( + $file, + array( + 'data' => file_get_contents(TESTFILE), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'media' + ) + ); + + // Now lets try and send the metadata as well using multipart! + $file = new Google_Service_Drive_DriveFile(); + $file->setTitle("Hello World!"); + $result2 = $service->files->insert( + $file, + array( + 'data' => file_get_contents(TESTFILE), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'multipart' + ) + ); +} +?> + +
+ + + +
+

Your call was successful! Check your drive for the following files:

+ +
+ +
+ +
+ +
+ + diff --git a/examples/simple-query.php b/examples/simple-query.php index c0f1149cf..e02c34cf7 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -14,18 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; -echo pageHeader("Simple API Access"); -/************************************************ - Make a simple API request using a key. In this - example we're not making a request as a - specific user, but simply indicating that the - request comes from our application, and hence - should use our quota, which is higher than the - anonymous quota (which is limited per IP). - ************************************************/ -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); +echo pageHeader("Simple API Access"); /************************************************ We create the client and set the simple API @@ -35,9 +28,9 @@ ************************************************/ $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); -$apiKey = ""; // Change this line. -// Warn if the API key isn't changed. -if (strpos($apiKey, "<") !== false) { + +// Warn if the API key isn't set. +if (!$apiKey = getApiKey()) { echo missingApiKeyWarning(); exit; } diff --git a/examples/simplefileupload.php b/examples/simplefileupload.php deleted file mode 100644 index 452599878..000000000 --- a/examples/simplefileupload.php +++ /dev/null @@ -1,123 +0,0 @@ -'; -$client_secret = ''; -$redirect_uri = ''; - -$client = new Google_Client(); -$client->setClientId($client_id); -$client->setClientSecret($client_secret); -$client->setRedirectUri($redirect_uri); -$client->addScope("https://www.googleapis.com/auth/drive"); -$service = new Google_Service_Drive($client); - -if (isset($_REQUEST['logout'])) { - unset($_SESSION['upload_token']); -} - -if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['upload_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); -} - -if (isset($_SESSION['upload_token']) && $_SESSION['upload_token']) { - $client->setAccessToken($_SESSION['upload_token']); - if ($client->isAccessTokenExpired()) { - unset($_SESSION['upload_token']); - } -} else { - $authUrl = $client->createAuthUrl(); -} - -/************************************************ - If we're signed in then lets try to upload our - file. For larger files, see fileupload.php. - ************************************************/ -if ($client->getAccessToken()) { - // This is uploading a file directly, with no metadata associated. - $file = new Google_Service_Drive_DriveFile(); - $result = $service->files->insert( - $file, - array( - 'data' => file_get_contents(TESTFILE), - 'mimeType' => 'application/octet-stream', - 'uploadType' => 'media' - ) - ); - - // Now lets try and send the metadata as well using multipart! - $file = new Google_Service_Drive_DriveFile(); - $file->setTitle("Hello World!"); - $result2 = $service->files->insert( - $file, - array( - 'data' => file_get_contents(TESTFILE), - 'mimeType' => 'application/octet-stream', - 'uploadType' => 'multipart' - ) - ); -} - -echo pageHeader("File Upload - Uploading a small file"); -if (strpos($client_id, "googleusercontent") == false) { - echo missingClientSecretsWarning(); - exit; -} -?> -
-
-Connect Me!"; -} -?> -
- -
-title); - var_dump($result2->title); -} -?> -
-
- - - - " . $title . " - - - \n"; - if ($_SERVER['PHP_SELF'] != "/index.php") { - $ret .= "

Back

"; - } - $ret .= "

" . $title . "

"; + $ret = " + + + " . $title . " + + + \n"; + if ($_SERVER['PHP_SELF'] != "/index.php") { + $ret .= "

Back

"; + } + $ret .= "

" . $title . "

"; + + // Start the session (for storing access tokens and things) + if (!headers_sent()) { + session_start(); } + return $ret; } @@ -28,63 +32,110 @@ function pageHeader($title) function pageFooter($file = null) { $ret = ""; - if (isWebRequest()) { - // Echo the code if in an example. - if ($file) { - $ret .= "

Code:

"; - $ret .= "
";
-      $ret .= htmlspecialchars(file_get_contents($file));
-      $ret .= "
"; - } - $ret .= ""; + if ($file) { + $ret .= "

Code:

"; + $ret .= "
";
+    $ret .= htmlspecialchars(file_get_contents($file));
+    $ret .= "
"; } + $ret .= ""; + return $ret; } function missingApiKeyWarning() { - $ret = ""; - if (isWebRequest()) { - $ret = " -

- Warning: You need to set a Simple API Access key from the - Google API console -

"; - } else { - $ret = "Warning: You need to set a Simple API Access key from the Google API console:"; - $ret .= "\nhttp://developers.google.com/console\n"; - } + $ret = " +

+ Warning: You need to set a Simple API Access key from the + Google API console +

"; + return $ret; } function missingClientSecretsWarning() { - $ret = ""; - if (isWebRequest()) { - $ret = " -

- Warning: You need to set Client ID, Client Secret and Redirect URI from the - Google API console -

"; - } else { - $ret = "Warning: You need to set Client ID, Client Secret and Redirect URI from the"; - $ret .= " Google API console:\nhttp://developers.google.com/console\n"; - } + $ret = " +

+ Warning: You need to set Client ID, Client Secret and Redirect URI from the + Google API console +

"; + return $ret; } function missingServiceAccountDetailsWarning() { - $ret = ""; - if (isWebRequest()) { - $ret = " -

- Warning: You need to set the location of your Service Account JSON Credentials from the - Google API console -

"; - } else { - $ret = "Warning: You need to set the location of Service Account JSON Credentials from the"; - $ret .= " Google API console:\nhttp://developers.google.com/console\n"; - } + $ret = " +

+ Warning: You need download your Service Account Credentials JSON from the + Google API console. +

+

+ Once downloaded, move them into the root directory of this repository and + rename them 'service-account-credentials.json'. +

+

+ In your application, you should set the GOOGLE_APPLICATION_CREDENTIALS environment variable + as the path to this file, but in the context of this example we will do this for you. +

"; + + return $ret; +} + +function missingOAuth2CredentialsWarning() +{ + $ret = " +

+ Warning: You need to set the location of your OAuth2 Client Credentials from the + Google API console. +

+

+ Once downloaded, move them into the root directory of this repository and + rename them 'oauth-credentials.json'. +

"; + return $ret; } + +function checkServiceAccountCredentialsFile() +{ + // service account creds + $application_creds = __DIR__ . '/../../service-account-credentials.json'; + + return file_exists($application_creds) ? $application_creds : false; +} + +function getOAuthCredentialsFile() +{ + // oauth2 creds + $oauth_creds = __DIR__ . '/../../oauth-credentials.json'; + + if (file_exists($oauth_creds)) { + return $oauth_creds; + } + + return false; +} + +function setClientCredentialsFile($apiKey) +{ + $file = __DIR__ . '/../../tests/.apiKey'; + file_put_contents($file, $apiKey); +} + + +function getApiKey() +{ + $file = __DIR__ . '/../../tests/.apiKey'; + if (file_exists($file)) { + return file_get_contents($file); + } +} + +function setApiKey($apiKey) +{ + $file = __DIR__ . '/../../tests/.apiKey'; + file_put_contents($file, $apiKey); +} diff --git a/examples/user-example.php b/examples/url-shortener.php similarity index 60% rename from examples/user-example.php rename to examples/url-shortener.php index df09e456e..17cbd407e 100644 --- a/examples/user-example.php +++ b/examples/url-shortener.php @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +include_once __DIR__ . '/../vendor/autoload.php'; include_once "templates/base.php"; -session_start(); -require_once realpath(dirname(__FILE__) . '/../src/Google/autoload.php'); +echo pageHeader('User Query - URL Shortener'); -/************************************************ - ATTENTION: Fill in these values! Make sure - the redirect URI is to this page, e.g: - http://localhost:8080/user-example.php +/************************************************* + * Ensure you've downloaded your oauth credentials ************************************************/ - $client_id = ''; - $client_secret = ''; - $redirect_uri = ''; +if (!$oauth_credentials = getOAuthCredentialsFile()) { + echo missingOAuth2CredentialsWarning(); + exit; +} /************************************************ Make an API request on behalf of a user. In @@ -35,39 +35,50 @@ through a login flow. To do this we need some information from our API console project. ************************************************/ +/************************************************ + * NOTICE: + * The redirect URI is to this page, e.g: + * http://localhost:8080/simplefileupload.php + ************************************************/ +$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; + $client = new Google_Client(); -$client->setClientId($client_id); -$client->setClientSecret($client_secret); +$client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/urlshortener"); /************************************************ - When we create the service here, we pass the - client to it. The client then queries the service - for the required scopes, and uses that when - generating the authentication URL later. + * When we create the service here, we pass the + * client to it. The client then queries the service + * for the required scopes, and uses that when + * generating the authentication URL later. ************************************************/ $service = new Google_Service_Urlshortener($client); /************************************************ - If we're logging out we just need to clear our - local access token in this case + * If we're logging out we just need to clear our + * local access token in this case ************************************************/ if (isset($_REQUEST['logout'])) { unset($_SESSION['access_token']); } /************************************************ - If we have a code back from the OAuth 2.0 flow, - we need to exchange that with the authenticate() - function. We store the resultant access token - bundle in the session, and redirect to ourself. + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['access_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['access_token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } /************************************************ @@ -96,37 +107,27 @@ function. We store the resultant access token $short = $service->url->insert($url); $_SESSION['access_token'] = $client->getAccessToken(); } - -echo pageHeader("User Query - URL Shortener"); -if (strpos($client_id, "googleusercontent") == false) { - echo missingClientSecretsWarning(); - exit; -} ?> +
+
-Connect Me!"; -} else { - echo << - - - - Logout -END; -} -?> +
- + +
+ + +
+ Logout + + You created a short link!
+
- +
+ Create another +
- + tests/Google + + tests/examples + diff --git a/src/Google/AccessToken.php b/src/Google/AccessToken.php deleted file mode 100644 index d9889a436..000000000 --- a/src/Google/AccessToken.php +++ /dev/null @@ -1,227 +0,0 @@ -http = $http; - $this->cache = $cache; - $this->setAccessToken($token); - } - - /** - * @param string|array $token - * @throws InvalidArgumentException - */ - public function setAccessToken($token) - { - if (is_string($token)) { - if ($json = json_decode($token, true)) { - $token = $json; - } else { - // assume $token is just the token string - $token = [ - 'access_token' => $token, - ]; - } - } - if ($token == null) { - throw new InvalidArgumentException('invalid json token'); - } - if (!isset($token['access_token'])) { - throw new InvalidArgumentException("Invalid token format"); - } - $this->token = $token; - } - - public function getAccessToken() - { - return $this->token; - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken() - { - if (!$this->token) { - // Not initialized, no token to actually revoke - return false; - } elseif (array_key_exists('refresh_token', $this->token)) { - $token = $this->token['refresh_token']; - } else { - $token = $this->token['access_token']; - } - - $request = $this->http->createRequest('POST', Google_Client::OAUTH2_REVOKE_URI); - $request->addHeader('Cache-Control', 'no-store'); - $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); - $request->getBody()->replaceFields(array('token' => $token)); - - $response = $this->http->send($request); - if ($response->getStatusCode() == 200) { - $this->token = null; - - return true; - } - - return false; - } - - /** - * Retrieve and cache a certificates file. - * - * @param $url string location - * @throws Google_Auth_Exception - * @return array certificates - */ - private function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if ("http" != substr($url, 0, 4)) { - $file = file_get_contents($url); - if ($file) { - return json_decode($file, true); - } else { - throw new Google_Auth_Exception( - "Failed to retrieve verification certificates: '" . - $url . "'." - ); - } - } - - $response = $this->http->get($url); - - if ($response->getStatusCode() == 200) { - return $response->json(); - } - throw new Google_Auth_Exception( - "Failed to retrieve verification certificates: '" . - $response->getBody()->getContents() . "'.", - $response->getStatusCode() - ); - } - - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - $cache = $this->getCache(); - - if (!$certs = $cache->get('federated_signon_certs')) { - $certs = $this->retrieveCertsFromLocation( - self::FEDERATED_SIGNON_CERT_URL - ); - - $cache->set('federated_signon_certs', $certs); - } - - return $certs; - } - - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param $audience - * @return array the token payload, if successful - * @throws Google_Auth_Exception - */ - public function verifyIdToken($audience = null) - { - if (empty($this->token['id_token'])) { - throw new LogicException('id_token cannot be null'); - } - - // Check signature - $certs = $this->getFederatedSignonCerts(); - foreach ($certs as $keyName => $pem) { - $key = openssl_x509_read($pem); - - try { - $payload = JWT::decode($this->token['id_token'], $key, array('RS256')); - if (is_null($audience) || (property_exists($resp, 'aud') && $resp->aud == $audience)) { - return $payload; - } - openssl_x509_free($key); - } catch (ExpiredException $e) { - return false; - // continue - } catch (DomainException $e) { - // continue - } - } - - return false; - } - - public function getCache() - { - if (!$this->cache) { - $this->cache = $this->createDefaultCache(); - } - - return $this->cache; - } - - protected function createDefaultCache() - { - return new Google_Cache_File(sys_get_temp_dir().'/google-api-php-client'); - } -} \ No newline at end of file diff --git a/src/Google/AccessToken/Revoke.php b/src/Google/AccessToken/Revoke.php new file mode 100644 index 000000000..9ae7e553d --- /dev/null +++ b/src/Google/AccessToken/Revoke.php @@ -0,0 +1,73 @@ +http = $http; + } + + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * + * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken(array $token) + { + if (isset($token['refresh_token'])) { + $tokenString = $token['refresh_token']; + } else { + $tokenString = $token['access_token']; + } + + $request = $this->http->createRequest('POST', Google_Client::OAUTH2_REVOKE_URI); + $request->addHeader('Cache-Control', 'no-store'); + $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); + $request->getBody()->replaceFields(array('token' => $tokenString)); + + $response = $this->http->send($request); + if ($response->getStatusCode() == 200) { + return true; + } + + return false; + } +} diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php new file mode 100644 index 000000000..669e315c4 --- /dev/null +++ b/src/Google/AccessToken/Verify.php @@ -0,0 +1,178 @@ +http = $http; + $this->cache = $cache; + } + + /** + * Verifies an id token and returns the authenticated apiLoginTicket. + * Throws an exception if the id token is not valid. + * The audience parameter can be used to control which id tokens are + * accepted. By default, the id token must have been issued to this OAuth2 client. + * + * @param $audience + * @return array the token payload, if successful + */ + public function verifyIdToken($idToken, $audience = null) + { + if (empty($idToken)) { + throw new LogicException('id_token cannot be null'); + } + + // Check signature + $certs = $this->getFederatedSignonCerts(); + foreach ($certs as $cert) { + $modulus = new BigInteger(JWT::urlsafeB64Decode($cert['n']), 256); + $exponent = new BigInteger(JWT::urlsafeB64Decode($cert['e']), 256); + + $rsa = new RSA(); + $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); + + try { + $payload = JWT::decode( + $idToken, + $rsa->getPublicKey(), + array('RS256') + ); + if (property_exists($payload, 'aud')) { + if ($audience && $payload->aud != $audience) { + return false; + } + } + + return $payload; + } catch (ExpiredException $e) { + return false; + } catch (DomainException $e) { + // continue + } + } + + return false; + } + + private function getCache() + { + if (!$this->cache) { + $this->cache = $this->createDefaultCache(); + } + + return $this->cache; + } + + private function createDefaultCache() + { + return new Google_Cache_File( + sys_get_temp_dir().'/google-api-php-client' + ); + } + + /** + * Retrieve and cache a certificates file. + * + * @param $url string location + * @throws Google_Exception + * @return array certificates + */ + private function retrieveCertsFromLocation($url) + { + // If we're retrieving a local file, just grab it. + if (0 !== strpos($url, 'http')) { + if (!$file = file_get_contents($url)) { + throw new Google_Exception( + "Failed to retrieve verification certificates: '" . + $url . "'." + ); + } + + return json_decode($file, true); + } + + $response = $this->http->get($url); + + if ($response->getStatusCode() == 200) { + return $response->json(); + } + throw new Google_Exception( + sprintf( + 'Failed to retrieve verification certificates: "%s".', + $response->getBody()->getContents() + ), + $response->getStatusCode() + ); + } + + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() + { + $cache = $this->getCache(); + + if (!$certs = $cache->get('federated_signon_certs_v3', 3600)) { + $certs = $this->retrieveCertsFromLocation( + self::FEDERATED_SIGNON_CERT_URL + ); + + $cache->set('federated_signon_certs_v3', $certs); + } + + if (!isset($certs['keys'])) { + throw new InvalidArgumentException( + 'federated sign-on certs expects "keys" to be set' + ); + } + + return $certs['keys']; + } +} diff --git a/src/Google/Auth/AppIdentity.php b/src/Google/Auth/AppIdentity.php deleted file mode 100644 index f74e60027..000000000 --- a/src/Google/Auth/AppIdentity.php +++ /dev/null @@ -1,115 +0,0 @@ -client = $client; - } - - /** - * Retrieve an access token for the scopes supplied. - */ - public function authenticateForScope($scopes) - { - if ($this->token && $this->tokenScopes == $scopes) { - return $this->token; - } - - $cacheKey = self::CACHE_PREFIX; - if (is_string($scopes)) { - $cacheKey .= $scopes; - } else if (is_array($scopes)) { - $cacheKey .= implode(":", $scopes); - } - - $this->token = $this->client->getCache()->get($cacheKey); - if (!$this->token) { - $this->retrieveToken($scopes, $cacheKey); - } else if ($this->token['expiration_time'] < time()) { - $this->client->getCache()->delete($cacheKey); - $this->retrieveToken($scopes, $cacheKey); - } - - $this->tokenScopes = $scopes; - return $this->token; - } - - /** - * Retrieve a new access token and store it in cache - * @param mixed $scopes - * @param string $cacheKey - */ - private function retrieveToken($scopes, $cacheKey) - { - $this->token = AppIdentityService::getAccessToken($scopes); - if ($this->token) { - $this->client->getCache()->set( - $cacheKey, - $this->token - ); - } - } - - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then sends the request using the http client - * - * @param GuzzleHttp\Message\Request $request - * @return GuzzleHttp\Message\Response The resulting HTTP response - */ - public function authenticatedRequest($request) - { - $request = $this->sign($request); - - return $this->client->getHttpClient()->send($request); - } - - public function sign($request) - { - if (!$this->token) { - // No token, so nothing to do. - return $request; - } - - $this->client->getLogger()->debug('App Identity authentication'); - - // Add the OAuth2 header to the request - $request->setHeader('Authorization', 'Bearer ' . $this->token['access_token']); - - return $request; - } -} diff --git a/src/Google/Auth/Exception.php b/src/Google/Auth/Exception.php deleted file mode 100644 index 59420cedf..000000000 --- a/src/Google/Auth/Exception.php +++ /dev/null @@ -1,20 +0,0 @@ -connection, $key, $data, false); } if ($rc == false) { - $this->log('error', + $this->log( + 'error', 'Memcache cache set failed', array('key' => $key, 'var' => $data) ); diff --git a/src/Google/Client.php b/src/Google/Client.php index 0ea786d80..343242204 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -16,17 +16,18 @@ */ use Google\Auth\ApplicationDefaultCredentials; +use Google\Auth\AuthTokenFetcher; use Google\Auth\CacheInterface; use Google\Auth\OAuth2; use Google\Auth\ScopedAccessToken; use Google\Auth\Simple; +use Google\Auth\UserRefreshCredentials; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Collection; -use GuzzleHttp\Post\PostBodyInterface; -use GuzzleHttp\Stream\Stream; use Psr\Log\LoggerInterface; use Monolog\Logger; +use Monolog\Handler\StreamHandler; /** * The Google API Client @@ -39,6 +40,7 @@ class Google_Client const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v3/token'; const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; + const API_BASE_PATH = 'https://www.googleapis.com'; /** * @var Google\Auth\OAuth2 $auth @@ -79,23 +81,6 @@ class Google_Client // Scopes requested by the client protected $requestedScopes = []; - public static $retryConfig = [ - // Delays are specified in seconds - 'initial_delay' => 1, - 'max_delay' => 60, - // Base number for exponential backoff - 'factor' => 2, - // A random number between -jitter and jitter will be added to the - // factor on each iteration to allow for better distribution of - // retries. - 'jitter' => .5, - // Maximum number of retries allowed - 'retries' => 0 - ]; - - // Used to track authenticated state, can't discover services after doing authenticate() - private $authenticated = false; - /** * Construct the Google Client. * @@ -103,36 +88,45 @@ class Google_Client */ public function __construct($config = array()) { - $this->config = Collection::fromConfig($config, [ - 'application_name' => '', - - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => 'https://www.googleapis.com', - - // https://developers.google.com/console - 'client_id' => '', - 'client_secret' => '', - 'redirect_uri' => null, - 'state' => null, - - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', - - // Other OAuth2 parameters. - 'hd' => '', - 'prompt' => '', - 'openid.realm' => '', - 'include_granted_scopes' => null, - 'login_hint' => '', - 'request_visible_actions' => '', - 'access_type' => 'online', - 'approval_prompt' => 'auto', - - // misc configuration - 'enable_gzip_for_uploads' => false, - ]); + $this->config = Collection::fromConfig( + $config, + [ + 'application_name' => '', + + // Don't change these unless you're working against a special development + // or testing environment. + 'base_path' => self::API_BASE_PATH, + + // https://developers.google.com/console + 'client_id' => '', + 'client_secret' => '', + 'redirect_uri' => null, + 'state' => null, + + // Simple API access key, also from the API console. Ensure you get + // a Server key, and not a Browser key. + 'developer_key' => '', + + // For use with Google Cloud Platform + // fetch the ApplicationDefaultCredentials, if applicable + // @see https://developers.google.com/identity/protocols/application-default-credentials + 'use_application_default_credentials' => false, + + // Other OAuth2 parameters. + 'hd' => '', + 'prompt' => '', + 'openid.realm' => '', + 'include_granted_scopes' => null, + 'login_hint' => '', + 'request_visible_actions' => '', + 'access_type' => 'online', + 'approval_prompt' => 'auto', + + // Task Runner retry configuration + // @see Google_Task_Runner + 'retry' => array(), + ] + ); } /** @@ -145,17 +139,28 @@ public function getLibraryVersion() return self::LIBVER; } + /** + * For backwards compatibility + * alias for fetchAccessTokenWithAuthCode + * + * @param $code string code from accounts.google.com + * @return array access token + */ + public function authenticate($code) + { + trigger_error('use Google_Client::fetchAccessTokenWithAuthCode', E_DEPRECATED); + + return $this->fetchAccessTokenWithAuthCode($code); + } + /** * Attempt to exchange a code for an valid authentication token. - * If $crossClient is set to true, the request body will not include - * the request_uri argument * Helper wrapped around the OAuth 2.0 implementation. * * @param $code string code from accounts.google.com - * @param $crossClient boolean, whether this is a cross-client authentication - * @return string token + * @return array access token */ - public function authenticate($code, $crossClient = false) + public function fetchAccessTokenWithAuthCode($code) { if (strlen($code) == 0) { throw new InvalidArgumentException("Invalid code"); @@ -163,10 +168,11 @@ public function authenticate($code, $crossClient = false) $auth = $this->getOAuth2Service(); $auth->setCode($code); - $auth->setRedirectUri($this->getConfig('redirect_uri')); + $auth->setRedirectUri($this->getRedirectUri()); $creds = $auth->fetchAuthToken($this->getHttpClient()); if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); $this->setAccessToken($creds); } @@ -174,61 +180,86 @@ public function authenticate($code, $crossClient = false) } /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. - * @return string + * For backwards compatibility + * alias for fetchAccessTokenWithAssertion + * + * @return array access token */ - public function createAuthUrl($scope = null) + public function refreshTokenWithAssertion() { - if (empty($scope)) { - $scope = $this->prepareScopes(); - } - if (is_array($scope)) { - $scope = implode(' ', $scope); - } + trigger_error('use Google_Client::fetchAccessTokenWithAssertion', E_DEPRECATED); - $params = array_filter([ - 'access_type' => $this->config->get('access_type'), - 'approval_prompt' => $this->config->get('prompt') ? null : $this->config->get('approval_prompt'), - 'hd' => $this->config->get('hosted_domain'), - 'include_granted_scopes' => - $this->config->get('include_granted_scopes') === null - ? null - : var_export($this->config->get('include_granted_scopes'), true), - 'login_hint' => $this->config->get('login_hint'), - 'openid.realm' => $this->config->get('openid.realm'), - 'prompt' => $this->config->get('prompt'), - 'response_type' => 'code', - 'scope' => $scope, - 'state' => $this->config->get('state'), - ]); + return $this->fetchAccessTokenWithAssertion(); + } - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->config->get('request_visible_actions'); - if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { - $params['request_visible_actions'] = $rva; + /** + * Fetches a fresh access token with a given assertion token. + * @param $assertionCredentials optional. + * @return void + */ + public function fetchAccessTokenWithAssertion() + { + if (is_null($this->config->get('signing_key'))) { + throw new LogicException( + 'config parameter "signing_key" must be set to' + . ' refresh a token with assertion' + ); } + $this->getLogger()->log( + 'info', + 'OAuth2 access token refresh with Signed JWT assertion grants.' + ); + $auth = $this->getOAuth2Service(); + $auth->setGrantType(OAuth2::JWT_URN); + $auth->setAudience(self::OAUTH2_TOKEN_URI); + $auth->setScope($this->getScopes()); - return (string) $auth->buildFullAuthorizationUri($params); + $creds = $auth->fetchAuthToken($this->getHttpClient()); + if ($creds && isset($creds['access_token'])) { + $this->setAccessToken($creds); + } + + return $creds; } /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * For backwards compatibility + * alias for fetchAccessTokenWithRefreshToken + * * @param string $refreshToken + * @return array access token */ public function refreshToken($refreshToken) { + trigger_error('use Google_Client::fetchAccessTokenWithRefreshToken', E_DEPRECATED); + + return $this->fetchAccessTokenWithRefreshToken($refreshToken); + } + + /** + * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * @param string $refreshToken + * @return array access token + */ + public function fetchAccessTokenWithRefreshToken($refreshToken = null) + { + if (is_null($refreshToken)) { + if (!isset($this->token['refresh_token'])) { + throw new LogicException( + 'refresh token must be passed in or set as part of setAccessToken' + ); + } + $refreshToken = $this->token['refresh_token']; + } $this->getLogger()->info('OAuth2 access token refresh'); $auth = $this->getOAuth2Service(); $auth->setRefreshToken($refreshToken); $creds = $auth->fetchAuthToken($this->getHttpClient()); if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); $this->setAccessToken($creds); } @@ -236,79 +267,138 @@ public function refreshToken($refreshToken) } /** - * Fetches a fresh access token with a given assertion token. - * @param Google_Auth_AssertionCredentials $assertionCredentials optional. - * @return void + * Create a URL to obtain user authorization. + * The authorization endpoint allows the user to first + * authenticate, and then grant/deny the access request. + * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. + * @return string */ - public function refreshTokenWithAssertion() + public function createAuthUrl($scope = null) { - if (is_null($this->config->get('signing_key'))) { - throw new LogicException('config parameter "signing_key" must be set to' - . ' refresh a token with assertion'); + if (empty($scope)) { + $scope = $this->prepareScopes(); + } + if (is_array($scope)) { + $scope = implode(' ', $scope); } - $this->getLogger()->log( - 'info', - 'OAuth2 access token refresh with Signed JWT assertion grants.' + // only accept one of prompt or approval_prompt + $approvalPrompt = $this->config->get('prompt') + ? null + : $this->config->get('approval_prompt'); + + // include_granted_scopes should be string "true", string "false", or null + $includeGrantedScopes = $this->config->get('include_granted_scopes') === null + ? null + : var_export($this->config->get('include_granted_scopes'), true); + + $params = array_filter( + [ + 'access_type' => $this->config->get('access_type'), + 'approval_prompt' => $approvalPrompt, + 'hd' => $this->config->get('hd'), + 'include_granted_scopes' => $includeGrantedScopes, + 'login_hint' => $this->config->get('login_hint'), + 'openid.realm' => $this->config->get('openid.realm'), + 'prompt' => $this->config->get('prompt'), + 'response_type' => 'code', + 'scope' => $scope, + 'state' => $this->config->get('state'), + ] ); - $auth = $this->getOAuth2Service(); - $auth->setGrantType(OAuth2::JWT_URN); - $auth->setAudience(self::OAUTH2_TOKEN_URI); - $auth->setScope($this->getScopes()); - - if ($creds && isset($creds['access_token'])) { - $this->setAccessToken($creds); + // If the list of scopes contains plus.login, add request_visible_actions + // to auth URL. + $rva = $this->config->get('request_visible_actions'); + if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { + $params['request_visible_actions'] = $rva; } - return $creds; + $auth = $this->getOAuth2Service(); + + return (string) $auth->buildFullAuthorizationUri($params); } - public function attachAuthListener(ClientInterface $http) + /** + * Adds auth listeners to the HTTP client based on the credentials + * set in the Google API Client object + * + * @param GuzzleHttp\ClientInterface $http the http client object. + * @return void + */ + public function authorize(ClientInterface $http) { - if ($key = $this->getConfig('developer_key')) { - // if a developer key is set, authorize using that - $simple = new Simple(['key' => $key]); - $http->setDefaultOption('auth', 'simple'); - $http->getEmitter()->attach($simple); - $this->getLogger()->log('info', 'Authenticated with API key'); - } else { + $subscriber = null; + $authIdentifier = null; + if ($this->config->get('use_application_default_credentials')) { $scopes = $this->prepareScopes(); - if ($this->token) { - // if a token has been set manually, authorize using it instead - if ($this->isAccessTokenExpired() && isset($this->token['refresh_token'])) { - // try to get another access token with the refresh token - $this->refreshToken($this->token['refresh_token']); - } - $accessToken = $this->token['access_token']; - $scoped = new ScopedAccessToken( - function($scopes) use ($accessToken) { - return $accessToken; - }, + $subscriber = ApplicationDefaultCredentials::getFetcher( $scopes, - [] - ); - $http->setDefaultOption('auth', 'scoped'); - $http->getEmitter()->attach($scoped); - $this->getLogger()->log('info', 'Authenticated with access token'); - } else { - try { - // try to fetch credentials using ApplicationDefaultCredentials, if applicable - $fetcher = ApplicationDefaultCredentials::getFetcher( + null, + array(), + $this->cache + ); + $authIdentifier = 'google_auth'; + } elseif ($key = $this->config->get('developer_key')) { + // if a developer key is set, authorize using that + $subscriber = new Simple(['key' => $key]); + $authIdentifier = 'simple'; + } elseif ($token = $this->getAccessToken()) { + $scopes = $this->prepareScopes(); + // add refresh subscriber to request a new token + if ($this->isAccessTokenExpired()) { + if (isset($token['refresh_token'])) { + $subscriber = $this->createUserRefreshCredentials( $scopes, - $this->getHttpClient(), - array(), - $this->cache + $token['refresh_token'] ); - $http->setDefaultOption('auth', 'google_auth'); - $http->getEmitter()->attach($fetcher); - $this->getLogger()->log('info', 'Authenticated with Application Default Credentials'); - } catch (DomainException $e) { - // no auth - $this->getLogger()->log('info', $e->getMessage()); + $authIdentifier = 'google_auth'; } + } else { + $subscriber = new ScopedAccessToken( + function ($scopes) use ($token) { + return $token['access_token']; + }, + $scopes, + [] + ); + $authIdentifier = 'scoped'; } } + + if ($subscriber) { + $http->setDefaultOption('auth', $authIdentifier); + $http->getEmitter()->attach($subscriber); + $this->getLogger()->log( + 'info', + sprintf('Added listener for auth type "%s"', $authIdentifier) + ); + } + + return $http; + } + + /** + * Set the configuration to use application default credentials for + * authentication + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + * @param boolean $useAppCreds + */ + public function useApplicationDefaultCredentials($useAppCreds = true) + { + $this->config->set('use_application_default_credentials', $useAppCreds); + } + + /** + * To prevent useApplicationDefaultCredentials from inappropriately being + * called in a conditional + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + */ + public function isUsingApplicationDefaultCredentials() + { + return $this->config->get('use_application_default_credentials'); } /** @@ -318,7 +408,14 @@ function($scopes) use ($accessToken) { public function setAccessToken($token) { if (is_string($token)) { - $token = json_decode($token, true); + if ($json = json_decode($token, true)) { + $token = $json; + } else { + // assume $token is just the token string + $token = array( + 'access_token' => $token, + ); + } } if ($token == null) { throw new InvalidArgumentException('invalid json token'); @@ -348,17 +445,41 @@ public function isAccessTokenExpired() if (isset($this->token['created'])) { $created = $this->token['created']; } elseif (isset($this->token['id_token'])) { - $payload = $this->verifyIdToken(); - $created = $payload ? $payload->iat : 0; + // check the ID token for "iat" + // signature verification is not required here, as we are just + // using this for convenience to save a round trip request + // to the Google API server + $idToken = $this->token['id_token']; + if (substr_count($idToken, '.') == 2) { + $parts = explode('.', $idToken); + $payload = json_decode(base64_decode($parts[1]), true); + if ($payload && isset($payload['iat'])) { + $created = $payload['iat']; + } + } } // If the token is set to expire in the next 30 seconds. $expired = ($created - + ($this->token['expires_in'] - 30)) < time(); + + ($this->token['expires_in'] - 30)) < time(); return $expired; } + public function getAuth() + { + throw new BadMethodCallException( + 'This function no longer exists. See UPGRADING.md for more information' + ); + } + + public function setAuth($auth) + { + throw new BadMethodCallException( + 'This function no longer exists. See UPGRADING.md for more information' + ); + } + /** * Set the OAuth 2.0 Client ID. * @param string $clientId @@ -370,7 +491,7 @@ public function setClientId($clientId) public function getClientId() { - return $this->getConfig('client_id'); + return $this->config->get('client_id'); } /** @@ -401,6 +522,70 @@ public function getRedirectUri() return $this->config->get('redirect_uri'); } + /** + * Set OAuth 2.0 "state" parameter to achieve per-request customization. + * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 + * @param string $state + */ + public function setState($state) + { + $this->config->set('state', $state); + } + + /** + * @param string $accessType Possible values for access_type include: + * {@code "offline"} to request offline access from the user. + * {@code "online"} to request online access from the user. + */ + public function setAccessType($accessType) + { + $this->config->set('access_type', $accessType); + } + + /** + * @param string $approvalPrompt Possible values for approval_prompt include: + * {@code "force"} to force the approval UI to appear. (This is the default value) + * {@code "auto"} to request auto-approval when possible. + */ + public function setApprovalPrompt($approvalPrompt) + { + $this->config->set('approval_prompt', $approvalPrompt); + } + + /** + * Set the login hint, email address or sub id. + * @param string $loginHint + */ + public function setLoginHint($loginHint) + { + $this->config->set('login_hint', $loginHint); + } + + /** + * Set the application name, this is included in the User-Agent HTTP header. + * @param string $applicationName + */ + public function setApplicationName($applicationName) + { + $this->config->set('application_name', $applicationName); + } + + /** + * If 'plus.login' is included in the list of requested scopes, you can use + * this method to define types of app activities that your app will write. + * You can find a list of available types here: + * @link https://developers.google.com/+/api/moment-types + * + * @param array $requestVisibleActions Array of app activity types + */ + public function setRequestVisibleActions($requestVisibleActions) + { + if (is_array($requestVisibleActions)) { + $requestVisibleActions = join(" ", $requestVisibleActions); + } + $this->config->set('request_visible_actions', $requestVisibleActions); + } + /** * Set the developer key to use, these are obtained through the API Console. * @see http://code.google.com/apis/console-help/#generatingdevkeys @@ -412,48 +597,91 @@ public function setDeveloperKey($developerKey) } /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state + * Set the hd (hosted domain) parameter streamlines the login process for + * Google Apps hosted accounts. By including the domain of the user, you + * restrict sign-in to accounts at that domain. + * @param $hd string - the domain to use. */ - public function setState($state) + public function setHostedDomain($hd) { - $this->config->set('state', $state); + $this->config->set('hd', $hd); + } + /** + * Set the prompt hint. Valid values are none, consent and select_account. + * If no value is specified and the user has not previously authorized + * access, then the user is shown a consent screen. + * @param $prompt string + */ + public function setPrompt($prompt) + { + $this->config->set('prompt', $prompt); + } + /** + * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth + * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which + * an authentication request is valid. + * @param $realm string - the URL-space to use. + */ + public function setOpenidRealm($realm) + { + $this->config->set('openid.realm', $realm); + } + /** + * If this is provided with the value true, and the authorization request is + * granted, the authorization will include any previous authorizations + * granted to this user/application combination for other scopes. + * @param $include boolean - the URL-space to use. + */ + public function setIncludeGrantedScopes($include) + { + $this->config->set('include_granted_scopes', $include); } /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. - * @throws Google_Auth_Exception + * * @param string|null $token The token (access token or a refresh token) that should be revoked. * @return boolean Returns True if the revocation was successful, otherwise False. */ public function revokeToken($token = null) { - $token = new Google_AccessToken( - $token ?: $this->getAccessToken(), - $this->getHttpClient() + $tokenRevoker = new Google_AccessToken_Revoke( + $this->getHttpClient() ); - return $token->revokeToken(); + return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); } /** * Verify an id_token. This method will verify the current id_token, if one * isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (id_token) that should be verified. - * @return Returns the token payload as an array if the verification was - * successful. + * + * @throws Google_Exception + * @param string|null $idToken The token (id_token) that should be verified. + * @return array|false Returns the token payload as an array if the verification was + * successful, false otherwise. */ - public function verifyIdToken($token = null) + public function verifyIdToken($idToken = null) { - $token = new Google_AccessToken( - $token ?: $this->getAccessToken(), - $this->getHttpClient() + $tokenVerifier = new Google_AccessToken_Verify( + $this->getHttpClient() ); - return $token->verifyIdToken(); + if (is_null($idToken)) { + $token = $this->getAccessToken(); + if (!isset($token['id_token'])) { + throw new LogicException( + 'id_token must be passed in or set as part of setAccessToken' + ); + } + $idToken = $token['id_token']; + } + + return $tokenVerifier->verifyIdToken( + $idToken, + $this->getClientId() + ); } /** @@ -497,7 +725,6 @@ public function getScopes() } /** - * @throws Google_Auth_Exception * @return array * @visible For Testing */ @@ -521,14 +748,14 @@ public function execute($request, $expectedClass = null) { $request->setHeader( 'User-Agent', - $this->getConfig('application_name') + $this->config->get('application_name') . " " . self::USER_AGENT_SUFFIX . $this->getLibraryVersion() ); $http = $this->getHttpClient(); - $result = Google_Http_REST::execute($http, $request, static::$retryConfig); + $result = Google_Http_REST::execute($http, $request, $this->config['retry']); $expectedClass = $expectedClass ?: $request->getHeader('X-Php-Expected-Class'); if ($expectedClass) { $result = new $expectedClass($result); @@ -570,38 +797,65 @@ public function getConfig($name, $default = null) return $this->config->get($name) ?: $default; } + /** + * Set the auth config from the JSON file in the path + * provided. This should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string $file the file location of the client json + */ + public function setAuthConfigFile($file) + { + trigger_error('use Google_Client::setAuthConfig', E_USER_DEPRECATED); + + $this->setAuthConfig($file); + } + /** * Set the auth config from new or deprecated JSON config. * This structure should match the file downloaded from * the "Download JSON" button on in the Google Developer * Console. - * @param string|array|stdClass $json the configuration json + * @param string|array $json the configuration json * @throws Google_Exception */ - public function setAuthConfig($json) + public function setAuthConfig($config) { - if (is_string($json)) { - $data = json_decode($json); - } elseif (is_array($json)) { - $data = (object) $json; - } elseif (!$json instanceof stdClass) { - throw new InvalidArgumentException('invalid auth config type'); + if (is_string($config)) { + if (!file_exists($config)) { + throw new InvalidArgumentException('file does not exist'); + } + + $json = file_get_contents($config); + + if (!$config = json_decode($json, true)) { + throw new LogicException('invalid json for auth config'); + } } - $key = isset($data->installed) ? 'installed' : 'web'; - if (isset($data->$key)) { + $key = isset($config['installed']) ? 'installed' : 'web'; + if (isset($config['type']) && $config['type'] == 'service_account') { + // application default credentials + $this->useApplicationDefaultCredentials(); + + // overwrite APPLICATION_DEFAULT_CREDENTIALS with this config + $tmpFile = tempnam(sys_get_temp_dir(), 'appcreds'); + file_put_contents($tmpFile, json_encode($config)); + putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpFile); + + } elseif (isset($config[$key])) { // old-style - $this->setClientId($data->$key->client_id); - $this->setClientSecret($data->$key->client_secret); - if (isset($data->$key->redirect_uris)) { - $this->setRedirectUri($data->$key->redirect_uris[0]); + $this->setClientId($config[$key]['client_id']); + $this->setClientSecret($config[$key]['client_secret']); + if (isset($config[$key]['redirect_uris'])) { + $this->setRedirectUri($config[$key]['redirect_uris'][0]); } } else { // new-style - $this->setClientId($data->client_id); - $this->setClientSecret($data->client_secret); - if (isset($data->redirect_uris)) { - $this->setRedirectUri($data->redirect_uris[0]); + $this->setClientId($config['client_id']); + $this->setClientSecret($config['client_secret']); + if (isset($config['redirect_uris'])) { + $this->setRedirectUri($config['redirect_uris'][0]); } } } @@ -641,18 +895,20 @@ public function getOAuth2Service() /** * create a default google auth object */ - public function createOAuth2Service() + protected function createOAuth2Service() { - $auth = new OAuth2([ - 'clientId' => $this->getClientId(), - 'clientSecret' => $this->getClientSecret(), - 'authorizationUri' => self::OAUTH2_AUTH_URL, - 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, - 'redirectUri' => $this->getRedirectUri(), - 'issuer' => $this->config->get('client_id'), - 'signingKey' => $this->config->get('signing_key'), - 'signingAlgorithm' => $this->config->get('signing_algorithm'), - ]); + $auth = new OAuth2( + [ + 'clientId' => $this->getClientId(), + 'clientSecret' => $this->getClientSecret(), + 'authorizationUri' => self::OAUTH2_AUTH_URL, + 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, + 'redirectUri' => $this->getRedirectUri(), + 'issuer' => $this->config->get('client_id'), + 'signingKey' => $this->config->get('signing_key'), + 'signingAlgorithm' => $this->config->get('signing_algorithm'), + ] + ); return $auth; } @@ -714,6 +970,7 @@ public function getLogger() protected function createDefaultLogger() { $logger = new Logger('google-api-php-client'); + $logger->pushHandler(new StreamHandler('php://stderr', Logger::NOTICE)); return $logger; } @@ -743,9 +1000,27 @@ protected function createDefaultHttpClient() { $options = [ 'base_url' => $this->config->get('base_path'), - 'defaults' => ['auth' => 'google_auth'], + 'defaults' => ['exceptions' => false] ]; return new Client($options); } + + private function createUserRefreshCredentials($scope, $refreshToken) + { + $creds = array_filter( + array( + 'client_id' => $this->getClientId(), + 'client_secret' => $this->getClientSecret(), + 'refresh_token' => $refreshToken, + ) + ); + + return new AuthTokenFetcher( + new UserRefreshCredentials($scope, $creds), + [], + $this->getCache(), + clone $this->getHttpClient() + ); + } } diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php new file mode 100644 index 000000000..54b4ad7e4 --- /dev/null +++ b/src/Google/Http/Batch.php @@ -0,0 +1,229 @@ +client = $client; + $this->boundary = mt_rand(); + } + + public function add(RequestInterface $request, $key = false) + { + if (false == $key) { + $key = mt_rand(); + } + + $this->requests[$key] = $request; + } + + public function execute() + { + $body = ''; + $classes = array(); + + /** @var Google_Http_Request $req */ + foreach ($this->requests as $key => $request) { + $request->addHeaders( + [ + 'Content-Type' => 'application/http', + 'Content-Transfer-Encoding' => 'binary', + 'MIME-Version' => '1.0', + 'Content-ID' => $key, + ] + ); + $body .= "--{$this->boundary}"; + $body .= Request::getHeadersAsString($request) . "\n\n"; + $body .= sprintf( + '%s %s HTTP/%s', + $request->getMethod(), + $request->getResource(), + $request->getProtocolVersion() + ); + $body .= "\n\n"; + + $classes['response-' . $key] = $request->getHeader('X-Php-Expected-Class'); + } + + $body .= "--{$this->boundary}--"; + $body = trim($body); + $url = Google_Client::API_BASE_PATH . '/' . self::BATCH_PATH; + $headers = array( + 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), + 'Content-Length' => strlen($body), + ); + $request = $this->client->getHttpClient()->createRequest( + 'POST', + $url, + [ + 'headers' => $headers, + 'body' => Stream::factory($body), + ] + ); + + $response = $this->client->getHttpClient()->send($request); + + return $this->parseResponse($response, $classes); + } + + public function parseResponse(ResponseInterface $response, $classes = array()) + { + $contentType = $response->getHeader('content-type'); + $contentType = explode(';', $contentType); + $boundary = false; + foreach ($contentType as $part) { + $part = (explode('=', $part, 2)); + if (isset($part[0]) && 'boundary' == trim($part[0])) { + $boundary = $part[1]; + } + } + + $body = (string) $response->getBody(); + if (!empty($body)) { + $body = str_replace("--$boundary--", "--$boundary", $body); + $parts = explode("--$boundary", $body); + $responses = array(); + + foreach ($parts as $i => $part) { + $part = trim($part); + if (!empty($part)) { + list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2); + $headers = $this->parseRawHeaders($rawHeaders); + + $status = substr($part, 0, strpos($part, "\n")); + $status = explode(" ", $status); + $status = $status[1]; + + list($partHeaders, $partBody) = $this->parseHttpResponse($part, false); + $response = new Response( + $status, + $partHeaders, + Stream::factory($partBody) + ); + + // Need content id. + $key = $headers['content-id']; + $class = ''; + if (!empty($this->expected_classes[$key])) { + $class = $this->expected_classes[$key]; + } + + try { + $response = Google_Http_REST::decodeHttpResponse($response); + if (isset($classes[$key])) { + $response = new $classes[$key]($response); + } + } catch (Google_Service_Exception $e) { + // Store the exception as the response, so successful responses + // can be processed. + $response = $e; + } + + $responses[$key] = $response; + } + } + + return $responses; + } + + return null; + } + + private function parseRawHeaders($rawHeaders) + { + $headers = array(); + $responseHeaderLines = explode("\r\n", $rawHeaders); + foreach ($responseHeaderLines as $headerLine) { + if ($headerLine && strpos($headerLine, ':') !== false) { + list($header, $value) = explode(': ', $headerLine, 2); + $header = strtolower($header); + if (isset($headers[$header])) { + $headers[$header] .= "\n" . $value; + } else { + $headers[$header] = $value; + } + } + } + return $headers; + } + + /** + * Used by the IO lib and also the batch processing. + * + * @param $respData + * @param $headerSize + * @return array + */ + private function parseHttpResponse($respData, $headerSize) + { + // check proxy header + foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { + if (stripos($respData, $established_header) !== false) { + // existed, remove it + $respData = str_ireplace($established_header, '', $respData); + // Subtract the proxy header size unless the cURL bug prior to 7.30.0 + // is present which prevented the proxy header size from being taken into + // account. + // @TODO look into this + // if (!$this->needsQuirk()) { + // $headerSize -= strlen($established_header); + // } + break; + } + } + + if ($headerSize) { + $responseBody = substr($respData, $headerSize); + $responseHeaders = substr($respData, 0, $headerSize); + } else { + $responseSegments = explode("\r\n\r\n", $respData, 2); + $responseHeaders = $responseSegments[0]; + $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : + null; + } + + $responseHeaders = $this->parseRawHeaders($responseHeaders); + + return array($responseHeaders, $responseBody); + } +} diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 20381d6d1..b0d6b9dc4 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -59,6 +59,12 @@ class Google_Http_MediaFileUpload /** @var string */ private $boundary; + /** + * Result code from last HTTP call + * @var int + */ + private $httpResultCode; + /** * @param $mimeType string * @param $data string The bytes you want to upload. @@ -130,8 +136,9 @@ private function makePutRequest(Google_Http_Request $httpRequest) } $response = $http->send($request); + $this->httpResultCode = $response->getStatusCode(); - if (308 == $response->getStatusCode()) { + if (308 == $this->httpResultCode) { // Track the amount uploaded. $range = explode('-', $response->getHeader('range')); $this->progress = $range[1] + 1; diff --git a/src/Google/Http/Parallel.php b/src/Google/Http/Pool.php similarity index 98% rename from src/Google/Http/Parallel.php rename to src/Google/Http/Pool.php index a28fdd3c9..f8ef527e6 100644 --- a/src/Google/Http/Parallel.php +++ b/src/Google/Http/Pool.php @@ -23,7 +23,7 @@ /** * Class to handle batched requests to the Google API service. */ -class Google_Http_Parallel +class Google_Http_Pool { /** @var array service requests to be executed. */ private $requests = array(); diff --git a/src/Google/IO/Exception.php b/src/Google/IO/Exception.php deleted file mode 100644 index 3151e6350..000000000 --- a/src/Google/IO/Exception.php +++ /dev/null @@ -1,65 +0,0 @@ -= 0) { - parent::__construct($message, $code, $previous); - } else { - parent::__construct($message, $code); - } - - if (is_array($retryMap)) { - $this->retryMap = $retryMap; - } - } - - /** - * Gets the number of times the associated task can be retried. - * - * NOTE: -1 is returned if the task can be retried indefinitely - * - * @return integer - */ - public function allowedRetries() - { - if (isset($this->retryMap[$this->code])) { - return $this->retryMap[$this->code]; - } - - return 0; - } -} diff --git a/src/Google/Model.php b/src/Google/Model.php index df8216a80..7168c945b 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -102,7 +102,7 @@ protected function mapTypes($array) property_exists($this, $key)) { $this->$key = $val; unset($array[$key]); - } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) { + } elseif (property_exists($this, $camelKey = $this->camelCase($key))) { // This checks if property exists as camelCase, leaving it in array as snake_case // in case of backwards compatibility issues. $this->$camelKey = $val; @@ -175,7 +175,7 @@ private function getSimpleValue($value) } return $value; } - + /** * Check whether the value is the null placeholder and return true null. */ @@ -292,4 +292,17 @@ public function __unset($key) { unset($this->modelData[$key]); } + + /** + * Convert a string to camelCase + * @param string $value + * @return string + */ + private function camelCase($value) + { + $value = ucwords(str_replace(array('-', '_'), ' ', $value)); + $value = str_replace(' ', '', $value); + $value[0] = strtolower($value[0]); + return $value; + } } diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index a719402a5..f1e576375 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -191,7 +191,13 @@ public function call($name, $arguments, $expected_class = null) ); $http = $this->client->getHttpClient(); - $this->client->attachAuthListener($http); + $this->client->authorize($http); + + // Guzzle 5 cannot locate App Engine certs by default, + // so we tell Guzzle where to look + if ($this->client->isAppEngine()) { + $http->setDefaultOption('verify', '/etc/ca-certificates.crt'); + } $request = $http->createRequest( $method['httpMethod'], @@ -269,7 +275,7 @@ public function createRequestUri($restPath, $params) } if (count($uriTemplateVars)) { - $uriTemplateParser = new Google_Utils_URITemplate(); + $uriTemplateParser = new Google_Utils_UriTemplate(); $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); } diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index 67bad1c46..b809ee01d 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -180,7 +180,10 @@ public function run() try { return call_user_func_array($this->action, $this->arguments); } catch (Google_Service_Exception $exception) { - $allowedRetries = $this->allowedRetries($exception->getCode(), $exception->getErrors()); + $allowedRetries = $this->allowedRetries( + $exception->getCode(), + $exception->getErrors() + ); if (!$this->canAttempt() || !$allowedRetries) { throw $exception; diff --git a/src/Google/Utils.php b/src/Google/Utils.php deleted file mode 100644 index 2803daaa1..000000000 --- a/src/Google/Utils.php +++ /dev/null @@ -1,133 +0,0 @@ -= 0x20) && ($ordinalValue <= 0x7F)): - // characters U-00000000 - U-0000007F (same as ASCII) - $ret ++; - break; - case (($ordinalValue & 0xE0) == 0xC0): - // characters U-00000080 - U-000007FF, mask 110XXXXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 2; - break; - case (($ordinalValue & 0xF0) == 0xE0): - // characters U-00000800 - U-0000FFFF, mask 1110XXXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 3; - break; - case (($ordinalValue & 0xF8) == 0xF0): - // characters U-00010000 - U-001FFFFF, mask 11110XXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 4; - break; - case (($ordinalValue & 0xFC) == 0xF8): - // characters U-00200000 - U-03FFFFFF, mask 111110XX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 5; - break; - case (($ordinalValue & 0xFE) == 0xFC): - // characters U-04000000 - U-7FFFFFFF, mask 1111110X - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 6; - break; - default: - $ret ++; - } - } - return $ret; - } - - /** - * Normalize all keys in an array to lower-case. - * @param array $arr - * @return array Normalized array. - */ - public static function normalize($arr) - { - if (!is_array($arr)) { - return array(); - } - - $normalized = array(); - foreach ($arr as $key => $val) { - $normalized[strtolower($key)] = $val; - } - return $normalized; - } - - /** - * Convert a string to camelCase - * @param string $value - * @return string - */ - public static function camelCase($value) - { - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); - $value = str_replace(' ', '', $value); - $value[0] = strtolower($value[0]); - return $value; - } -} diff --git a/src/Google/Utils/URITemplate.php b/src/Google/Utils/UriTemplate.php similarity index 99% rename from src/Google/Utils/URITemplate.php rename to src/Google/Utils/UriTemplate.php index 0e30f80c4..e59fe9f21 100644 --- a/src/Google/Utils/URITemplate.php +++ b/src/Google/Utils/UriTemplate.php @@ -19,7 +19,7 @@ * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ -class Google_Utils_URITemplate +class Google_Utils_UriTemplate { const TYPE_MAP = "1"; const TYPE_LIST = "2"; @@ -181,7 +181,7 @@ private function replaceVars( ); } } - + public function combine( $key, $parameters, @@ -200,17 +200,17 @@ public function combine( if (strpos($key, ":") !== false) { list($key, $length) = explode(":", $key); } - + // Check for explode parameter. if ($key[strlen($key) - 1] == "*") { $explode = true; $key = substr($key, 0, -1); $skip_final_combine = true; } - + // Define the list separator. $list_sep = $explode ? $sep : ","; - + if (isset($parameters[$key])) { $data_type = $this->getDataType($parameters[$key]); switch ($data_type) { @@ -267,11 +267,11 @@ public function combine( if (!$combine || $skip_final_combine) { return $value; } - + // Else we combine the key name: foo=bar, if value is not the empty string. return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); } - + /** * Return the type of a passed in value */ @@ -286,7 +286,7 @@ private function getDataType($data) } return self::TYPE_SCALAR; } - + /** * Utility function that merges multiple combine calls * for multi-key templates. @@ -318,7 +318,7 @@ private function combineList( } return implode($sep, $ret); } - + /** * Utility function to encode and trim values */ diff --git a/tests/BaseTest.php b/tests/BaseTest.php index daf50e9ae..d5c352140 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -15,10 +15,11 @@ * limitations under the License. */ +use Symfony\Component\DomCrawler\Crawler; + class BaseTest extends PHPUnit_Framework_TestCase { private $key; - private $token; private $client; private $memcacheHost; private $memcachePort; @@ -53,6 +54,7 @@ private function createClient() ]); $client = new Google_Client(); + $client->setApplicationName('google-api-php-client-tests'); $client->setHttpClient($httpClient); $client->setScopes([ "https://www.googleapis.com/auth/plus.me", @@ -65,9 +67,6 @@ private function createClient() if ($this->key) { $client->setDeveloperKey($this->key); } - if ($this->token) { - $client->setAccessToken($this->token); - } list($clientId, $clientSecret) = $this->getClientIdAndSecret(); $client->setClientId($clientId); $client->setClientSecret($clientSecret); @@ -78,36 +77,31 @@ private function createClient() public function checkToken() { - $cache = $this->getCache(); - $this->token = $cache->get('access_token'); - if (!$this->token) { - if (!$this->tryToGetAnAccessToken()) { + $client = $this->getClient(); + $cache = $client->getCache(); + + if (!$token = $cache->get('access_token')) { + if (!$token = $this->tryToGetAnAccessToken($client)) { return $this->markTestSkipped("Test requires access token"); } + $cache->set('access_token', $token); } - $client = $this->getClient(); - $client->setAccessToken($this->token); + $client->setAccessToken($token); if ($client->isAccessTokenExpired()) { - if (isset($this->token['refresh_token'])) { - $this->token = $client->refreshToken($this->token['refresh_token']); - } + // as long as we have client credentials, even if its expired + // our access token will automatically be refreshed + $this->checkClientCredentials(); } - $cache->set('access_token', $this->token); - return true; } - public function tryToGetAnAccessToken() + public function tryToGetAnAccessToken(Google_Client $client) { - $client = $this->getClient(); - if (!($client->getClientId() && $client->getClientSecret())) { - $this->markTestSkipped("Test requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set"); - } + $this->checkClientCredentials(); - $client = $this->getClient(); $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); $client->setConfig('access_type', 'offline'); $authUrl = $client->createAuthUrl(); @@ -117,11 +111,9 @@ public function tryToGetAnAccessToken() `open '$authUrl'`; $authCode = trim(fgets(STDIN)); - if ($accessToken = $client->authenticate($authCode)) { + if ($accessToken = $client->fetchAccessTokenWithAuthCode($authCode)) { if (isset($accessToken['access_token'])) { - $this->token = $accessToken; - - return true; + return $accessToken; } } @@ -136,7 +128,15 @@ private function getClientIdAndSecret() return array($clientId, $clientSecret); } - public function checkServiceAccountToken() + public function checkClientCredentials() + { + list($clientId, $clientSecret) = $this->getClientIdAndSecret(); + if (!($clientId && $clientSecret)) { + $this->markTestSkipped("Test requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set"); + } + } + + public function checkServiceAccountCredentials() { if (!$f = getenv('GOOGLE_APPLICATION_CREDENTIALS')) { $skip = "This test requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set\n" @@ -169,4 +169,24 @@ public function loadKey() return file_get_contents($f); } } + + protected function loadExample($example) + { + // trick app into thinking we are a web server + $_SERVER['HTTP_USER_AGENT'] = 'google-api-php-client-tests'; + $_SERVER['HTTP_HOST'] = 'localhost'; + $_SERVER['REQUEST_METHOD'] = 'GET'; + + // include the file and return an HTML crawler + $file = __DIR__ . '/../examples/' . $example; + if (is_file($file)) { + ob_start(); + include $file; + $html = ob_get_clean(); + + return new Crawler($html); + } + + return false; + } } diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php new file mode 100644 index 000000000..ee5c45588 --- /dev/null +++ b/tests/Google/AccessToken/RevokeTest.php @@ -0,0 +1,87 @@ +getMock('GuzzleHttp\Post\PostBodyInterface'); + $postBody->expects($this->exactly(2)) + ->method('replaceFields') + ->will($this->returnCallback( + function ($fields) use (&$token) { + $token = isset($fields['token']) ? $fields['token'] : null; + } + )); + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->exactly(2)) + ->method('getBody') + ->will($this->returnValue($postBody)); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->exactly(2)) + ->method('getStatusCode') + ->will($this->returnValue(200)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->exactly(2)) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->exactly(2)) + ->method('createRequest') + ->will($this->returnValue($request)); + + $t = array( + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ); + + // Test with access token. + $revoke = new Google_AccessToken_Revoke($http); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + + // Test with refresh token. + $revoke = new Google_AccessToken_Revoke($http); + $t = array( + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($refreshToken, $token); + } + + /** @expectedException PHPUnit_Framework_Error */ + public function testInvalidStringToken() + { + // Test with string token + $revoke = new Google_AccessToken_Revoke(); + $revoke->revokeToken('ACCESS_TOKEN'); + } +} diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php new file mode 100644 index 000000000..cae3fb101 --- /dev/null +++ b/tests/Google/AccessToken/VerifyTest.php @@ -0,0 +1,60 @@ +checkToken(); + + $client = $this->getClient(); + $token = $client->getAccessToken(); + if ($client->isAccessTokenExpired()) { + $token = $client->fetchAccessTokenWithRefreshToken(); + } + $segments = explode('.', $token['id_token']); + $this->assertEquals(3, count($segments)); + // Extract the client ID in this case as it wont be set on the test client. + $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + $verify = new Google_AccessToken_Verify(); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + $this->assertTrue(isset($payload->sub)); + $this->assertTrue(strlen($payload->sub) > 0); + + // TODO: Need to be smart about testing/disabling the + // caching for this test to make sense. Not sure how to do that + // at the moment. + $client = $this->getClient(); + $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + $verify = new Google_AccessToken_Verify(); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + $this->assertTrue(isset($payload->sub)); + $this->assertTrue(strlen($payload->sub) > 0); + } +} diff --git a/tests/Google/AccessTokenTest.php b/tests/Google/AccessTokenTest.php deleted file mode 100644 index 6c58096a6..000000000 --- a/tests/Google/AccessTokenTest.php +++ /dev/null @@ -1,160 +0,0 @@ -getMock('GuzzleHttp\Post\PostBodyInterface'); - $postBody->expects($this->exactly(3)) - ->method('replaceFields') - ->will($this->returnCallback( - function ($fields) use (&$token) { - $token = isset($fields['token']) ? $fields['token'] : null; - } - )); - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(3)) - ->method('getBody') - ->will($this->returnValue($postBody)); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->exactly(3)) - ->method('getStatusCode') - ->will($this->returnValue(200)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly(3)) - ->method('send') - ->will($this->returnValue($response)); - $http->expects($this->exactly(3)) - ->method('createRequest') - ->will($this->returnValue($request)); - - // Test with access token. - $t = new Google_AccessToken( - array( - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ), - $http - ); - $this->assertTrue($t->revokeToken()); - $this->assertEquals($accessToken, $token); - - // Test with refresh token. - $t->setAccessToken( - array( - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ) - ); - $this->assertTrue($t->revokeToken()); - $this->assertEquals($refreshToken, $token); - - // Test with string token - $t->setAccessToken($accessToken2); - $this->assertTrue($t->revokeToken()); - $this->assertEquals($accessToken2, $token); - } - - // /** - // * Most of the logic for ID token validation is in AuthTest - - // * this is just a general check to ensure we verify a valid - // * id token if one exists. - // */ - // public function testValidateIdToken() - // { - // $this->checkToken(); - // $client = $this->getClient(); - // $token = json_decode($client->getAccessToken()); - // $segments = explode(".", $token->id_token); - // $this->assertEquals(3, count($segments)); - // // Extract the client ID in this case as it wont be set on the test client. - // $data = json_decode(JWT::urlSafeB64Decode($segments[1])); - // $oauth = new Google_Auth_OAuth2($client); - // $payload = $oauth->verifyIdToken($token->id_token, $data->aud); - // $this->assertArrayHasKey('sub', $payload); - // $this->assertTrue(strlen($payload['sub']) > 0); - - // // TODO: Need to be smart about testing/disabling the - // // caching for this test to make sense. Not sure how to do that - // // at the moment. - // $client = $this->getClient(); - // $data = json_decode(JWT::urlSafeB64Decode($segments[1])); - // $oauth = new Google_Auth_OAuth2($client); - // $payload = $oauth->verifyIdToken($token->id_token, $data->aud); - // $this->assertArrayHasKey('sub', $payload); - // $this->assertTrue(strlen($payload['sub']) > 0); - // } - - // /** - // * Test for revoking token when none is opened - // */ - // public function testRevokeWhenNoTokenExists() - // { - // $client = new Google_Client(); - // $this->assertFalse($client->revokeToken()); - // } - - // /** - // * Test that the ID token is properly refreshed. - // */ - // public function testRefreshTokenSetsValues() - // { - // $client = new Google_Client(); - // $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - // $request->expects($this->once()) - // ->method('getBody') - // ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); - // $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - // $response->expects($this->once()) - // ->method('json') - // ->will($this->returnValue(array( - // 'access_token' => 'xyz', - // 'id_token' => 'ID_TOKEN', - // ))); - // $response->expects($this->once()) - // ->method('getBody') - // ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); - // $http = $this->getMock('GuzzleHttp\ClientInterface'); - // $http->expects($this->once()) - // ->method('send') - // ->will($this->returnValue($response)); - // $http->expects($this->once()) - // ->method('createRequest') - // ->will($this->returnValue($request)); - // $client->setHttpClient($http); - // $oauth = new Google_Auth_OAuth2($client); - // $oauth->refreshToken("REFRESH_TOKEN"); - // $token = json_decode($oauth->getAccessToken(), true); - // $this->assertEquals($token['id_token'], "ID_TOKEN"); - // } -} diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 97941b7c6..f38bbdfa8 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -35,7 +35,7 @@ public function testSignAppKey() $client->setDeveloperKey('devKey'); $http = new Client(); - $client->attachAuthListener($http); + $client->authorize($http); $listeners = $http->getEmitter()->listeners('before'); $this->assertEquals(1, count($listeners)); @@ -54,7 +54,7 @@ public function testSignAccessToken() 'created' => time(), ]); $client->setScopes('test_scope'); - $client->attachAuthListener($http); + $client->authorize($http); $listeners = $http->getEmitter()->listeners('before'); $this->assertEquals(1, count($listeners)); @@ -71,10 +71,10 @@ public function testCreateAuthUrl() $client->setRedirectUri('http://localhost'); $client->setDeveloperKey('devKey'); $client->setState('xyz'); - $client->setConfig('access_type', 'offline'); - $client->setConfig('approval_prompt', 'force'); - $client->setConfig('request_visible_actions', 'http://foo'); - $client->setConfig('login_hint', 'bob@example.org'); + $client->setAccessType('offline'); + $client->setApprovalPrompt('force'); + $client->setRequestVisibleActions('http://foo'); + $client->setLoginHint('bob@example.org'); $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" @@ -89,11 +89,11 @@ public function testCreateAuthUrl() $this->assertEquals($expected, $authUrl); // Again with a blank login hint (should remove all traces from authUrl) - $client->setConfig('login_hint', ''); - $client->setConfig('hosted_domain', 'example.com'); - $client->setConfig('openid.realm', 'example.com'); - $client->setConfig('prompt', 'select_account'); - $client->setConfig('include_granted_scopes', true); + $client->setLoginHint(''); + $client->setHostedDomain('example.com'); + $client->setOpenIdRealm('example.com'); + $client->setPrompt('select_account'); + $client->setIncludeGrantedScopes(true); $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" . "?access_type=offline" @@ -175,9 +175,6 @@ public function testPrepareService() $http->expects($this->once()) ->method('createRequest') ->will($this->returnValue($request)); - $http->expects($this->once()) - ->method('getEmitter') - ->will($this->returnValue($this->getMock('GuzzleHttp\Event\EmitterInterface'))); $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); @@ -192,8 +189,8 @@ public function testSettersGetters() $client->setClientId("client1"); $client->setClientSecret('client1secret'); $client->setState('1'); - $client->setConfig('approval_prompt', 'force'); - $client->setConfig('access_type', 'offline'); + $client->setApprovalPrompt('force'); + $client->setAccessType('offline'); $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); @@ -201,7 +198,7 @@ public function testSettersGetters() try { $client->setAccessToken(null); - $this->fail('Should have thrown an Google_Auth_Exception.'); + $this->fail('Should have thrown an Exception.'); } catch (InvalidArgumentException $e) { $this->assertEquals('invalid json token', $e->getMessage()); } @@ -232,11 +229,11 @@ public function testJsonConfig() '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. '"https://www.googleapis.com/oauth2/v1/certs"}}'; - $dObj = json_decode($device); - $client->setAuthConfig($device); - $this->assertEquals($client->getClientId(), $dObj->installed->client_id); - $this->assertEquals($client->getClientSecret(), $dObj->installed->client_secret); - $this->assertEquals($client->getRedirectUri(), $dObj->installed->redirect_uris[0]); + $dObj = json_decode($device, true); + $client->setAuthConfig($dObj); + $this->assertEquals($client->getClientId(), $dObj['installed']['client_id']); + $this->assertEquals($client->getClientSecret(), $dObj['installed']['client_secret']); + $this->assertEquals($client->getRedirectUri(), $dObj['installed']['redirect_uris'][0]); // Web config $client = new Google_Client(); @@ -246,10 +243,10 @@ public function testJsonConfig() '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. ',"client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. '"https://www.googleapis.com/oauth2/v1/certs"}}'; - $wObj = json_decode($web); - $client->setAuthConfig($web); - $this->assertEquals($client->getClientId(), $wObj->web->client_id); - $this->assertEquals($client->getClientSecret(), $wObj->web->client_secret); + $wObj = json_decode($web, true); + $client->setAuthConfig($wObj); + $this->assertEquals($client->getClientId(), $wObj['web']['client_id']); + $this->assertEquals($client->getClientSecret(), $wObj['web']['client_secret']); $this->assertEquals($client->getRedirectUri(), ''); } @@ -277,7 +274,7 @@ public function testNoAuth() putenv('GOOGLE_APPLICATION_CREDENTIALS='); putenv('HOME='.sys_get_temp_dir()); $http = new Client(); - $client->attachAuthListener($http); + $client->authorize($http); $listeners = $http->getEmitter()->listeners('before'); @@ -285,4 +282,37 @@ public function testNoAuth() putenv("HOME=$HOME"); $this->assertEquals(0, count($listeners)); } + + /** + * Test that the ID token is properly refreshed. + */ + public function testRefreshTokenSetsValues() + { + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('json') + ->will($this->returnValue(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + ))); + $response->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($request)); + $client = $this->getClient(); + $client->setHttpClient($http); + $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); + $token = $client->getAccessToken(); + $this->assertEquals($token['id_token'], "ID_TOKEN"); + } } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php new file mode 100644 index 000000000..69df11365 --- /dev/null +++ b/tests/Google/Http/BatchTest.php @@ -0,0 +1,78 @@ +checkToken(); + + $client = $this->getClient(); + $batch = new Google_Http_Batch($client); + $this->plus = new Google_Service_Plus($client); + + $client->setUseBatch(true); + $batch->add($this->plus->people->get('me'), 'key1'); + $batch->add($this->plus->people->get('me'), 'key2'); + $batch->add($this->plus->people->get('me'), 'key3'); + + $result = $batch->execute(); + $this->assertTrue(isset($result['response-key1'])); + $this->assertTrue(isset($result['response-key2'])); + $this->assertTrue(isset($result['response-key3'])); + } + + public function testBatchRequest() + { + $client = $this->getClient(); + $batch = new Google_Http_Batch($client); + $this->plus = new Google_Service_Plus($client); + + $client->setUseBatch(true); + $batch->add($this->plus->people->get('+LarryPage'), 'key1'); + $batch->add($this->plus->people->get('+LarryPage'), 'key2'); + $batch->add($this->plus->people->get('+LarryPage'), 'key3'); + + $result = $batch->execute(); + $this->assertTrue(isset($result['response-key1'])); + $this->assertTrue(isset($result['response-key2'])); + $this->assertTrue(isset($result['response-key3'])); + } + + public function testInvalidBatchRequest() + { + $client = $this->getClient(); + $batch = new Google_Http_Batch($client); + $this->plus = new Google_Service_Plus($client); + + $client->setUseBatch(true); + $batch->add($this->plus->people->get('123456789987654321'), 'key1'); + $batch->add($this->plus->people->get('+LarryPage'), 'key2'); + + $result = $batch->execute(); + $this->assertTrue(isset($result['response-key2'])); + $this->assertInstanceOf( + 'Google_Service_Exception', + $result['response-key1'] + ); + } +} diff --git a/tests/Google/Http/ParallelTest.php b/tests/Google/Http/PoolTest.php similarity index 69% rename from tests/Google/Http/ParallelTest.php rename to tests/Google/Http/PoolTest.php index a82d0689f..952bad0a7 100644 --- a/tests/Google/Http/ParallelTest.php +++ b/tests/Google/Http/PoolTest.php @@ -18,7 +18,7 @@ * under the License. */ -class Google_Http_ParallelTest extends BaseTest +class Google_Http_PoolTest extends BaseTest { public $parallel; public $plus; @@ -28,11 +28,11 @@ public function setUp() $this->checkToken(); $client = $this->getClient(); $client->setUseBatch(true); - $this->parallel = new Google_Http_Parallel($client); + $this->parallel = new Google_Http_Pool($client); $this->plus = new Google_Service_Plus($client); } - public function testBatchRequestWithAuth() + public function testParallelRequestWithAuth() { $this->parallel->add($this->plus->people->get('me'), 'key1'); $this->parallel->add($this->plus->people->get('me'), 'key2'); @@ -47,22 +47,7 @@ public function testBatchRequestWithAuth() $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key3']); } - public function testBatchRequest() - { - $this->parallel->add($this->plus->people->get('+LarryPage'), 'key1'); - $this->parallel->add($this->plus->people->get('+LarryPage'), 'key2'); - $this->parallel->add($this->plus->people->get('+LarryPage'), 'key3'); - - $result = $this->parallel->execute(); - $this->assertTrue(isset($result['response-key1'])); - $this->assertTrue(isset($result['response-key2'])); - $this->assertTrue(isset($result['response-key3'])); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key1']); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key2']); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key3']); - } - - public function testInvalidBatchRequest() + public function testInvalidParallelRequest() { $this->parallel->add($this->plus->people->get('123456789987654321'), 'key1'); $this->parallel->add($this->plus->people->get('+LarryPage'), 'key2'); diff --git a/tests/Google/Service/PagespeedonlineTest.php b/tests/Google/Service/PagespeedonlineTest.php index 622600433..e63a8780c 100644 --- a/tests/Google/Service/PagespeedonlineTest.php +++ b/tests/Google/Service/PagespeedonlineTest.php @@ -17,17 +17,11 @@ class Google_Service_PagespeedonlineTest extends BaseTest { - public $service; - public function __construct() - { - parent::__construct(); - $this->service = new Google_Service_Pagespeedonline($this->getClient()); - } - public function testPageSpeed() { $this->checkToken(); - $psapi = $this->service->pagespeedapi; + $service = new Google_Service_Pagespeedonline($this->getClient()); + $psapi = $service->pagespeedapi; $result = $psapi->runpagespeed('http://code.google.com'); $this->assertArrayHasKey('kind', $result); $this->assertArrayHasKey('id', $result); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 0f3fa759c..dec93aee0 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -167,4 +167,31 @@ public function testCreateRequestUri() $value = $resource->createRequestUri('/plus', $params); $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } + + public function testAppEngineSslCerts() + { + $this->client->expects($this->once()) + ->method("isAppEngine") + ->will($this->returnValue(true)); + $resource = new Google_Service_Resource( + $this->service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $request = $resource->call("testMethod", array(array())); + $this->assertEquals( + '/etc/ca-certificates.crt', + $this->client->getHttpClient()->getDefaultOption('verify') + ); + } + } diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 75801c25c..f119a5c42 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -93,15 +93,4 @@ public function serviceProvider() return $classes; } - - public function testStrLen() - { - $this->assertEquals(0, Google_Utils::getStrLen(null)); - $this->assertEquals(0, Google_Utils::getStrLen(false)); - $this->assertEquals(0, Google_Utils::getStrLen("")); - - $this->assertEquals(1, Google_Utils::getStrLen(" ")); - $this->assertEquals(2, Google_Utils::getStrLen(" 1")); - $this->assertEquals(7, Google_Utils::getStrLen("0a\\n\n\r\n")); - } } diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 1dc73c9fd..399e1da92 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -26,16 +26,11 @@ class Google_Task_RunnerTest extends PHPUnit_Framework_TestCase private $mockedCallsCount = 0; private $currentMockedCall = 0; private $mockedCalls = array(); - private $nextRetryMap; - private static $retryConfig; + private $retryMap; + private $retryConfig; protected function setUp() { - // hack to reset static Google_Client::$retryConfig each test - if (!self::$retryConfig) { - self::$retryConfig = Google_Client::$retryConfig; - } - Google_Client::$retryConfig = self::$retryConfig; $this->client = new Google_Client(); } @@ -54,7 +49,7 @@ public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') */ public function testOneRestRetryWithError($errorCode, $errorBody = '{}') { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); } @@ -66,7 +61,7 @@ public function testMultipleRestRetriesWithErrors( $errorCode, $errorBody = '{}' ) { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); } @@ -75,7 +70,7 @@ public function testMultipleRestRetriesWithErrors( */ public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $result = $this->setNextResponse($errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -90,7 +85,7 @@ public function testMultipleRestRetriesWithSuccess( $errorCode, $errorBody = '{}' ) { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $result = $this->setNextResponses(2, $errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -108,7 +103,7 @@ public function testCustomRestRetryMapReplacesDefaults( ) { $this->setRetryMap(array()); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponse($errorCode, $errorBody)->makeRequest(); } @@ -118,7 +113,7 @@ public function testCustomRestRetryMapAddsNewHandlers() array('403' => Google_Task_Runner::TASK_RETRY_ALWAYS) ); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $result = $this->setNextResponses(2, 403) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -136,7 +131,7 @@ public function testCustomRestRetryMapWithCustomLimits($limit) array('403' => $limit) ); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponses($limit + 1, 403)->makeRequest(); } @@ -145,7 +140,7 @@ public function testCustomRestRetryMapWithCustomLimits($limit) */ public function testRestTimeouts($config, $minTime) { - $this->setTaskConfig($config); + $this->setRetryConfig($config); $this->setNextResponses($config['retries'], 500) ->setNextResponse(200, '{"success": true}'); @@ -173,7 +168,7 @@ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') */ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); } @@ -186,7 +181,7 @@ public function testMultipleCurlRetriesWithErrors( $errorCode, $errorMessage = '' ) { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); } @@ -196,7 +191,7 @@ public function testMultipleCurlRetriesWithErrors( */ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $result = $this->setNextResponseThrows($errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -212,7 +207,7 @@ public function testMultipleCurlRetriesWithSuccess( $errorCode, $errorMessage = '' ) { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $result = $this->setNextResponsesThrow(2, $errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -231,7 +226,7 @@ public function testCustomCurlRetryMapReplacesDefaults( ) { $this->setRetryMap(array()); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); } @@ -244,7 +239,7 @@ public function testCustomCurlRetryMapAddsNewHandlers() array(CURLE_COULDNT_RESOLVE_PROXY => Google_Task_Runner::TASK_RETRY_ALWAYS) ); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $result = $this->setNextResponsesThrow(2, '', CURLE_COULDNT_RESOLVE_PROXY) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -263,7 +258,7 @@ public function testCustomCurlRetryMapWithCustomLimits($limit) array(CURLE_COULDNT_RESOLVE_PROXY => $limit) ); - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponsesThrow($limit + 1, '', CURLE_COULDNT_RESOLVE_PROXY) ->makeRequest(); } @@ -274,7 +269,7 @@ public function testCustomCurlRetryMapWithCustomLimits($limit) */ public function testCurlTimeouts($config, $minTime) { - $this->setTaskConfig($config); + $this->setRetryConfig($config); $this->setNextResponsesThrow($config['retries'], '', CURLE_GOT_NOTHING) ->setNextResponse(200, '{"success": true}'); @@ -291,10 +286,10 @@ public function testCurlTimeouts($config, $minTime) public function testBadTaskConfig($config, $message) { $this->setExpectedException('Google_Task_Exception', $message); - $this->setTaskConfig($config); + $this->setRetryConfig($config); new Google_Task_Runner( - Google_Client::$retryConfig, + $this->retryConfig, '', array($this, 'testBadTaskConfig') ); @@ -324,7 +319,7 @@ public function testTaskRetryOffByDefault() */ public function testOneTaskRetryWithError() { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) ->runTask(); } @@ -334,14 +329,14 @@ public function testOneTaskRetryWithError() */ public function testMultipleTaskRetriesWithErrors() { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextTasksAllowedRetries(6, Google_Task_Runner::TASK_RETRY_ALWAYS) ->runTask(); } public function testOneTaskRetryWithSuccess() { - $this->setTaskConfig(array('retries' => 1)); + $this->setRetryConfig(array('retries' => 1)); $result = $this->setNextTaskAllowedRetries(Google_Task_Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -351,7 +346,7 @@ public function testOneTaskRetryWithSuccess() public function testMultipleTaskRetriesWithSuccess() { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $result = $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -365,7 +360,7 @@ public function testMultipleTaskRetriesWithSuccess() */ public function testTaskRetryWithCustomLimits($limit) { - $this->setTaskConfig(array('retries' => 5)); + $this->setRetryConfig(array('retries' => 5)); $this->setNextTasksAllowedRetries($limit + 1, $limit) ->runTask(); } @@ -375,7 +370,7 @@ public function testTaskRetryWithCustomLimits($limit) */ public function testTaskTimeouts($config, $minTime) { - $this->setTaskConfig($config); + $this->setRetryConfig($config); $this->setNextTasksAllowedRetries($config['retries'], $config['retries'] + 1) ->setNextTaskReturnValue('success'); @@ -388,12 +383,11 @@ public function testTaskTimeouts($config, $minTime) public function testTaskWithManualRetries() { - $this->setTaskConfig(array('retries' => 2)); + $this->setRetryConfig(array('retries' => 2)); $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS); - $config = Google_Client::$retryConfig; $task = new Google_Task_Runner( - $config, + $this->retryConfig, '', array($this, 'runNextTask') ); @@ -523,7 +517,7 @@ public static function assertTaskTimeGreaterThanOrEqual( * * @param array $config The task runner configurations */ - private function setTaskConfig(array $config) + private function setRetryConfig(array $config) { $config += array( 'initial_delay' => .0001, @@ -532,12 +526,12 @@ private function setTaskConfig(array $config) 'jitter' => .5, 'retries' => 1 ); - Google_Client::$retryConfig = $config; + $this->retryConfig = $config; } private function setRetryMap(array $retryMap) { - $this->nextRetryMap = $retryMap; + $this->retryMap = $retryMap; } /** @@ -638,11 +632,7 @@ private function makeRequest() ->method('send') ->will($this->returnCallback(array($this, 'getNextMockedCall'))); - $config = Google_Client::$retryConfig; - - $retryMap = $this->nextRetryMap; - $this->nextRetryMap = null; - return Google_Http_REST::execute($http, $request, $config, $retryMap); + return Google_Http_REST::execute($http, $request, $this->retryConfig, $this->retryMap); } /** @@ -716,19 +706,20 @@ private function setNextTasksAllowedRetries($count, $allowedRetries) */ private function runTask() { - $config = Google_Client::$retryConfig; $task = new Google_Task_Runner( - $config, + $this->retryConfig, '', array($this, 'runNextTask') ); - if (null !== $this->nextRetryMap) { - $task->setRetryMap($this->nextRetryMap); - $this->nextRetryMap = null; + if (null !== $this->retryMap) { + $task->setRetryMap($this->retryMap); } $exception = $this->getMockBuilder('Google_Service_Exception') + // HHVM blows up unless this is set + // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/207 + ->setMethods(array('setTraceOptions')) ->disableOriginalConstructor() ->getMock(); $exceptionCount = 0; diff --git a/tests/Google/Utils/URITemplateTest.php b/tests/Google/Utils/UriTemplateTest.php similarity index 96% rename from tests/Google/Utils/URITemplateTest.php rename to tests/Google/Utils/UriTemplateTest.php index 2e5535c25..ba5dc3f3b 100644 --- a/tests/Google/Utils/URITemplateTest.php +++ b/tests/Google/Utils/UriTemplateTest.php @@ -18,14 +18,14 @@ * under the License. */ -class Google_Utils_URITemplateTest extends BaseTest +class Google_Utils_UriTemplateTest extends BaseTest { public function testLevelOne() { $var = "value"; $hello = "Hello World!"; - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); $this->assertEquals( "value", $urit->parse("{var}", array("var" => $var)) @@ -42,7 +42,7 @@ public function testLevelTwo() $hello = "Hello World!"; $path = "/foo/bar"; - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); $this->assertEquals( "value", $urit->parse("{+var}", array("var" => $var)) @@ -78,7 +78,7 @@ public function testLevelThree() $x = "1024"; $y = "768"; - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); $this->assertEquals( "map?1024,768", $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) @@ -219,7 +219,7 @@ public function testLevelFour() ); - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); foreach ($tests as $input => $output) { $this->assertEquals($output, $urit->parse($input, $values), $input . " failed"); @@ -230,7 +230,7 @@ public function testMultipleAnnotations() { $var = "value"; $hello = "Hello World!"; - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); $this->assertEquals( "http://www.google.com/Hello%20World!?var=value", $urit->parse( @@ -266,7 +266,7 @@ public function testAgainstStandardTests() { $location = "../../uritemplate-test/*.json"; - $urit = new Google_Utils_URITemplate(); + $urit = new Google_Utils_UriTemplate(); foreach (glob($location) as $file) { $test = json_decode(file_get_contents($file), true); foreach ($test as $title => $testsets) { diff --git a/tests/clearToken.php b/tests/clearToken.php index 1990ec84a..cd6fc5b2d 100644 --- a/tests/clearToken.php +++ b/tests/clearToken.php @@ -5,4 +5,4 @@ print_r($test->getCache()->get('access_token')); $test->getCache()->delete('access_token'); -echo "SUCCESS\n"; \ No newline at end of file +echo "SUCCESS\n"; diff --git a/tests/config/test.ini b/tests/config/test.ini index 61be46410..dbae3d78a 100644 --- a/tests/config/test.ini +++ b/tests/config/test.ini @@ -3,4 +3,4 @@ application_name = My Test application auth_class = Google_Auth_OAuth2 client_id = 12345.apps.googleusercontent.com client_secret = gjfiwnGinpena3 -redirect_uri = http://example.com \ No newline at end of file +redirect_uri = http://example.com diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php new file mode 100644 index 000000000..b721ffd8a --- /dev/null +++ b/tests/examples/batchTest.php @@ -0,0 +1,35 @@ +checkKey(); + + $crawler = $this->loadExample('batch.php'); + + $nodes = $crawler->filter('br'); + $this->assertEquals(20, count($nodes)); + $this->assertContains('The Life of Henry David Thoreau', $crawler->text()); + $this->assertContains('George Bernard Shaw His Life and Works', $crawler->text()); + } +} \ No newline at end of file diff --git a/tests/examples/idTokenTest.php b/tests/examples/idTokenTest.php new file mode 100644 index 000000000..ecda53bb6 --- /dev/null +++ b/tests/examples/idTokenTest.php @@ -0,0 +1,32 @@ +loadExample('idtoken.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Retrieving An Id Token', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/indexTest.php b/tests/examples/indexTest.php new file mode 100644 index 000000000..d869f9145 --- /dev/null +++ b/tests/examples/indexTest.php @@ -0,0 +1,32 @@ +loadExample('index.php'); + + $nodes = $crawler->filter('li'); + $this->assertEquals(8, count($nodes)); + $this->assertEquals('A query using simple API access', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php new file mode 100644 index 000000000..c34861ef4 --- /dev/null +++ b/tests/examples/largeFileUploadTest.php @@ -0,0 +1,32 @@ +loadExample('large-file-upload.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('File Upload - Uploading a large file', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/multiApiTest.php b/tests/examples/multiApiTest.php new file mode 100644 index 000000000..47d2b178b --- /dev/null +++ b/tests/examples/multiApiTest.php @@ -0,0 +1,34 @@ +checkKey(); + + $crawler = $this->loadExample('multi-api.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('User Query - Multiple APIs', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php new file mode 100644 index 000000000..3bef7133d --- /dev/null +++ b/tests/examples/serviceAccountTest.php @@ -0,0 +1,34 @@ +checkServiceAccountCredentials(); + + $crawler = $this->loadExample('service-account.php'); + + $nodes = $crawler->filter('br'); + $this->assertEquals(10, count($nodes)); + $this->assertContains('The Life of Henry David Thoreau', $crawler->text()); + } +} \ No newline at end of file diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php new file mode 100644 index 000000000..3d055edda --- /dev/null +++ b/tests/examples/simpleFileUploadTest.php @@ -0,0 +1,32 @@ +loadExample('simple-file-upload.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('File Upload - Uploading a simple file', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/simpleQueryTest.php b/tests/examples/simpleQueryTest.php new file mode 100644 index 000000000..ad0f3b34e --- /dev/null +++ b/tests/examples/simpleQueryTest.php @@ -0,0 +1,37 @@ +checkKey(); + + $crawler = $this->loadExample('simple-query.php'); + + $nodes = $crawler->filter('br'); + $this->assertEquals(20, count($nodes)); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Simple API Access', $nodes->first()->text()); + } +} \ No newline at end of file diff --git a/tests/examples/urlShortenerTest.php b/tests/examples/urlShortenerTest.php new file mode 100644 index 000000000..ea9d60c29 --- /dev/null +++ b/tests/examples/urlShortenerTest.php @@ -0,0 +1,34 @@ +checkKey(); + + $crawler = $this->loadExample('url-shortener.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('User Query - URL Shortener', $nodes->first()->text()); + } +} \ No newline at end of file From a4cd92fbb56f8e80503765cd582a319ec9c6855b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 9 Oct 2015 12:33:28 -0700 Subject: [PATCH 0907/1274] adds UPGRADING.md --- UPGRADING.md | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 299 insertions(+) create mode 100644 UPGRADING.md diff --git a/UPGRADING.md b/UPGRADING.md new file mode 100644 index 000000000..03c0b80dc --- /dev/null +++ b/UPGRADING.md @@ -0,0 +1,299 @@ +Google API Client Upgrade Guide +=============================== + +1.0 to 2.0 +---------- + +The Google API Client for PHP has undergone major internal changes in `2.0`. Please read through +the list below in order to upgrade to the latest version: + +## Installation now uses `Composer` + +**Before** + +The project was cloned in your project and you would run the autoloader from wherever: + +```php +// the autoload file was included +require_once 'google-api-php-client/src/Google/autoload.php'; // or wherever autoload.php is located +// OR classes were added one-by-one +require_once 'Google/Client.php'; +require_once 'Google/Service/YouTube.php'; +``` + +**After** + +This library now uses [composer](https://getcomposer.org) (We suggest installing +composer [globally](http://symfony.com/doc/current/cookbook/composer.html)). Add this library by +running the following in the root of your project: + +``` +$ composer require google/apiclient:~2.0 +``` + +This will install this library and generate an autoload file in `vendor/autoload.php` in the root +of your project. You can now include this library with the following code: + +```php +require_once 'vendor/autoload.php'; +``` + +## Access Tokens are passed around as arrays instead of JSON strings + +**Before** + +```php +$accessToken = $client->getAccessToken(); +print_r($accessToken); +// would output: +// string(153) "{"access_token":"ya29.FAKsaByOPoddfzvKRo_LBpWWCpVTiAm4BjsvBwxtN7IgSNoUfcErBk_VPl4iAiE1ntb_","token_type":"Bearer","expires_in":3593,"created":1445548590}" +file_put_contents($credentialsPath, $accessToken); +``` + +**After** + +```php +$accessToken = $client->getAccessToken(); +print_r($accessToken); +// will output: +// array(4) { +// ["access_token"]=> +// string(73) "ya29.FAKsaByOPoddfzvKRo_LBpWWCpVTiAm4BjsvBwxtN7IgSNoUfcErBk_VPl4iAiE1ntb_" +// ["token_type"]=> +// string(6) "Bearer" +// ["expires_in"]=> +// int(3593) +// ["created"]=> +// int(1445548590) +// } +file_put_contents($credentialsPath, json_encode($accessToken)); +``` + +## ID Token data is returned as an array + +**Before** + +```php +$ticket = $client->verifyIdToken($idToken); +$data = $ticket->getAttributes(); +$userId = $data['payload']['sub']; +``` + +**After** + +```php +$userData = $client->verifyIdToken($idToken); +$userId = $userData['sub']; +``` + +## `Google_Auth_AssertionCredentials` has been removed + +For service accounts, we now use `setAuthConfig` or `useApplicationDefaultCredentials` + +**Before** + +```php +$client_email = '1234567890-a1b2c3d4e5f6g7h8i@developer.gserviceaccount.com'; +$private_key = file_get_contents('MyProject.p12'); +$scopes = array('https://www.googleapis.com/auth/sqlservice.admin'); +$credentials = new Google_Auth_AssertionCredentials( + $client_email, + $scopes, + $private_key +); +``` + +**After** + +```php +$client->setAuthConfig('/path/to/service-account.json'); + +// OR use environment variables (recommended) + +putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); +$client->useApplicationDefaultCredentials(); +``` + +> Note: P12s are deprecated in favor of service account JSON, which can be generated in the +> Credentials section of Google Developer Console. + +In order to impersonate a user, call `setSubject` when your service account +credentials are being used. + +**Before** + +```php +$user_to_impersonate = 'user@example.org'; +$credentials = new Google_Auth_AssertionCredentials( + $client_email, + $scopes, + $private_key, + 'notasecret', // Default P12 password + 'http://oauth.net/grant_type/jwt/1.0/bearer', // Default grant type + $user_to_impersonate, +); +``` + +**After** + +```php +$user_to_impersonate = 'user@example.org'; +$client->setSubject($user_to_impersonate); +``` + +## `Google_Auth_AppIdentity` has been removed + +For App Engine authentication, we now use the underlying [`google/auth`][Google Auth] and +call `useApplicationDefaultCredentials`: + +**Before** + +```php +$client->setAuth(new Google_Auth_AppIdentity($client)); +$client->getAuth() + ->authenticateForScope('https://www.googleapis.com/auth/sqlservice.admin') +``` + +**After** + +```php +$client->useDefaultApplicationCredentials(); +$client->addScope('https://www.googleapis.com/auth/sqlservice.admin'); +``` + +This will detect when the App Engine environment is present, and use the appropriate credentials. + +## `Google_Auth_Abstract` classes have been removed + +[`google/auth`][Google Auth] is now used for authentication. As a result, all +`Google_Auth`-related functionality has been removed. The methods that were a part of +`Google_Auth_Abstract` have been moved into the `Google_Client` object. + +**Before** + +```php +$request = new Google_Http_Request(); +$client->getAuth()->sign($request); +``` + +**After** + +```php +$httpClient = new GuzzleHttp\Client(); +$client->authorize($httpClient); +``` + +**Before** + +```php +$request = new Google_Http_Request(); +$response = $client->getAuth()->authenticatedRequest($request); +``` + +**After** + +```php +$httpClient = new GuzzleHttp\Client(); +$client->authorize($httpClient); +$request = $httpClient->createRequest('POST', $url); +$response = $httpClient->send($request); +``` + +In addition, other methods that were callable on `Google_Auth_OAuth2` are now called +on the `Google_Client` object: + +**Before** + +```php +$client->getAuth()->refreshToken($token); +$client->getAuth()->refreshTokenWithAssertion(); +$client->getAuth()->revokeToken($token); +$client->getAuth()->isAccessTokenExpired(); +``` + +**After** + +```php +$client->refreshToken($token); +$client->refreshTokenWithAssertion(); +$client->revokeToken($token); +$client->isAccessTokenExpired(); +``` + +## PHP 5.4 is now the minimum supported PHP version + +This was previously `PHP 5.2`. If you still need to use PHP 5.2, please continue to use +the [v1-master](https://github.com/google/google-api-php-client/tree/v1-master) branch. + +## Guzzle 5 is used for HTTP Requests + +[`Guzzle 5`][Guzzle 5] is used for all HTTP Requests. As a result, all `Google_IO`-related +functionality and `Google_Http`-related functionality has been changed or removed. + +1. Removed `Google_Http_Request` +1. Removed `Google_IO_Abstract`, `Google_IO_Exception`, `Google_IO_Curl`, and `Google_IO_Stream` +1. Removed methods `Google_Client::getIo` and `Google_Client::setIo` +1. Refactored `Google_Http_Batch` and `Google_Http_MediaFileUpload` for Guzzle 5 +1. Added `Google_Http_Pool` for HTTP Pooling via Guzzle 5 +1. Added `Google_Client::getHttpClient` and `Google_Client::setHttpClient` for getting and +setting the Guzzle 5 `GuzzleHttp\ClientInterface` object. + +## Other Changes + + - [`PSR 3`][PSR 3] `LoggerInterface` is now supported, and [Monolog][Monolog] is used for all + logging. As a result, all `Google_Logger`-related functionality has been removed: + 1. Removed `Google_Logger_Abstract`, `Google_Logger_Exception`, `Google_Logger_File`, + `Google_Logger_Null`, and `Google_Logger_Psr` + 1. `Google_Client::setLogger` now requires `Psr\Log\LoggerInterface` + - [`firebase/jwt`][Firebase JWT] is now used for all JWT signing and verifying. As a result, the + following classes have been changed or removed: + 1. Removed `Google_Signer_P12` + 1. Removed `Google_Verifier_Pem` + 1. Removed `Google_Auth_LoginTicket` (see below) + - The following classes and methods have been removed in favor of [`google/auth`][Google Auth]: + 1. Removed methods `Google_Client::getAuth` and `Google_Client::setAuth` + 1. Removed `Google_Auth_Abstract` + - `Google_Auth_Abstract::sign` and `Google_Auth_Abstract::authenticatedRequest` have been + replaced by `Google_Client::authorize`. See the above examples for more details. + 1. Removed `Google_Auth_AppIdentity`. This is now supported in [`google/auth`][Google Auth AppIdentity] + and is used automatically when `Google_Client::useApplicationDefaultCredentials` is called. + 1. Removed `Google_Auth_AssertionCredentials`. Use `Google_Client::setAuthConfig` instead. + 1. Removed `Google_Auth_ComputeEngine`. This is now supported in + [`google/auth`][Google Auth GCE], and is used automatically when + `Google_Client::useApplicationDefaultCredentials` is called. + 1. Removed `Google_Auth_Exception` + 1. Removed `Google_Auth_LoginTicket`. Calls to `Google_Client::verifyIdToken` now returns + the payload of the ID Token as an array if the verification is successful. + 1. Removed `Google_Auth_OAuth2`. This functionality is now supported in [`google/auth`][Google Auth OAuth2] and wrapped in `Google_Client`. These changes will only affect applications calling `Google_Client::getAuth`, + as the methods on `Google_Client` have not changed. + 1. Removed `Google_Auth_Simple`. This is now supported in [`google/auth`][Google Auth Simple] + and is used automatically when `Google_Client::setDeveloperKey` is called. + - `Google_Client::sign` has been replaced by `Google_Client::authorize`. This function + now takes a `GuzzleHttp\ClientInterface` object and uses the following decision tree for + authentication: + 1. Uses Application Default Credentials when + `Google_Client::useApplicationDefaultCredentials` is called + - Looks for `GOOGLE_APPLICATION_CREDENTIALS` environment variable if set + - Looks in `~/.config/gcloud/application_default_credentials.json` + - Otherwise, uses `GCECredentials` + 1. Uses API Key if set (see `Client::setDeveloperKey`) + 1. Uses Access Token if set (call `Client::setAccessToken`) + 1. Automatically refreshes access tokens if one is set and the access token is expired + - Removed `Google_Config` + - Removed `Google_Utils` + - [`Google\Auth\CacheInterface`][Google Auth CacheInterface] is used for all caching. As a result: + 1. Removed `Google_Cache_Abstract` + 1. Classes `Google_Cache_Apc`, `Google_Cache_File`, `Google_Cache_Memcache`, and + `Google_Cache_Null` now implement `Google\Auth\CacheInterface`. + - Removed `$boundary` constructor argument for `Google_Http_MediaFileUpload` + +[PSR 3]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md +[Guzzle 5]: https://github.com/guzzle/guzzle +[Monolog]: https://github.com/Seldaek/monolog +[Google Auth]: https://github.com/google/google-auth-library-php +[Google Auth GCE]: https://github.com/google/google-auth-library-php/blob/master/src/GCECredentials.php +[Google Auth OAuth2]: https://github.com/google/google-auth-library-php/blob/master/src/OAuth2.php +[Google Auth Simple]: https://github.com/google/google-auth-library-php/blob/master/src/Simple.php +[Google Auth AppIdentity]: https://github.com/google/google-auth-library-php/blob/master/src/AppIdentityCredentials.php +[Google Auth CacheInterface]: https://github.com/google/google-auth-library-php/blob/master/src/CacheInterface.php +[Firebase JWT]: https://github.com/firebase/php-jwt From f15f26894ddb4ff5ff783ba7a7860ea08c828df7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Oct 2015 15:32:15 -0700 Subject: [PATCH 0908/1274] updates from master + alpha testers --- .gitignore | 1 + README.md | 3 +- composer.json | 4 +- composer.lock | 1649 ----------------------- examples/index.php | 13 +- src/Google/AccessToken/Verify.php | 12 +- src/Google/Cache/File.php | 3 +- src/Google/Client.php | 117 +- src/Google/Http/MediaFileUpload.php | 77 +- src/Google/Http/REST.php | 11 +- src/Google/Service/Resource.php | 5 +- tests/Google/AccessToken/VerifyTest.php | 8 +- tests/Google/ClientTest.php | 56 + tests/Google/Service/ResourceTest.php | 1 - 14 files changed, 217 insertions(+), 1743 deletions(-) delete mode 100644 composer.lock diff --git a/.gitignore b/.gitignore index 92128bc2d..0a70c65d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store phpunit.xml +composer.lock vendor examples/testfile-small.txt examples/testfile.txt diff --git a/README.md b/README.md index fb30e7ee6..610be9f12 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ See the examples/ directory for examples of the key client features. You can view them in your browser by running the php built-in web server. ``` -$ cd examples/ -$ php -S localhost:8000 +$ php -S localhost:8000 -t examples/ ``` And then browsing to the host and port you specified diff --git a/composer.json b/composer.json index 752e04780..a2031f8c8 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "v0.2-alpha", + "google/auth": "v0.3", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", "guzzlehttp/guzzle": "5.2.*" @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.x-dev" } } } diff --git a/composer.lock b/composer.lock deleted file mode 100644 index db10d558c..000000000 --- a/composer.lock +++ /dev/null @@ -1,1649 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", - "This file is @generated automatically" - ], - "hash": "6ea1c309fe27e654f278f887bb13198d", - "packages": [ - { - "name": "firebase/php-jwt", - "version": "2.0.0", - "target-dir": "Firebase/PHP-JWT", - "source": { - "type": "git", - "url": "https://github.com/firebase/php-jwt.git", - "reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/ffcfd888ce1e4f2d70cac2dc9b7301038332fe57", - "reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "Authentication/", - "Exceptions/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Neuman Vong", - "email": "neuman+pear@twilio.com", - "role": "Developer" - }, - { - "name": "Anant Narayanan", - "email": "anant@php.net", - "role": "Developer" - } - ], - "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", - "homepage": "https://github.com/firebase/php-jwt", - "time": "2015-04-01 18:46:38" - }, - { - "name": "google/auth", - "version": "v0.2-alpha", - "source": { - "type": "git", - "url": "https://github.com/google/google-auth-library-php.git", - "reference": "5dc5bcb37a7f50c7132c1feb5037f6c45b249477" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/google/google-auth-library-php/zipball/5dc5bcb37a7f50c7132c1feb5037f6c45b249477", - "reference": "5dc5bcb37a7f50c7132c1feb5037f6c45b249477", - "shasum": "" - }, - "require": { - "firebase/php-jwt": "2.0.0", - "guzzlehttp/guzzle": "5.2.*", - "php": ">=5.4" - }, - "require-dev": { - "phplint/phplint": "0.0.1", - "phpunit/phpunit": "3.7.*" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ], - "psr-4": { - "Google\\Auth\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "description": "Google Auth Library for PHP", - "homepage": "http://github.com/google/google-auth-library-php", - "keywords": [ - "Authentication", - "google", - "oauth2" - ], - "time": "2015-10-09 16:50:15" - }, - { - "name": "guzzlehttp/guzzle", - "version": "5.2.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "475b29ccd411f2fa8a408e64576418728c032cfa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/475b29ccd411f2fa8a408e64576418728c032cfa", - "reference": "475b29ccd411f2fa8a408e64576418728c032cfa", - "shasum": "" - }, - "require": { - "guzzlehttp/ringphp": "~1.0", - "php": ">=5.4.0" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "~4.0", - "psr/log": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" - ], - "time": "2015-01-28 01:03:29" - }, - { - "name": "guzzlehttp/ringphp", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/RingPHP.git", - "reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/RingPHP/zipball/dbbb91d7f6c191e5e405e900e3102ac7f261bc0b", - "reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b", - "shasum": "" - }, - "require": { - "guzzlehttp/streams": "~3.0", - "php": ">=5.4.0", - "react/promise": "~2.0" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "ext-curl": "Guzzle will use specific adapters if cURL is present" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Ring\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.", - "time": "2015-05-20 03:37:09" - }, - { - "name": "guzzlehttp/streams", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/streams.git", - "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/streams/zipball/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", - "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Stream\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Provides a simple abstraction over streams of data", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "Guzzle", - "stream" - ], - "time": "2014-10-12 19:18:40" - }, - { - "name": "monolog/monolog", - "version": "1.17.1", - "source": { - "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/0524c87587ab85bc4c2d6f5b41253ccb930a5422", - "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "psr/log": "~1.0" - }, - "provide": { - "psr/log-implementation": "1.0.0" - }, - "require-dev": { - "aws/aws-sdk-php": "^2.4.9", - "doctrine/couchdb": "~1.0@dev", - "graylog2/gelf-php": "~1.0", - "php-console/php-console": "^3.1.3", - "phpunit/phpunit": "~4.5", - "phpunit/phpunit-mock-objects": "2.3.0", - "raven/raven": "~0.11", - "ruflin/elastica": ">=0.90 <3.0", - "swiftmailer/swiftmailer": "~5.3", - "videlalvaro/php-amqplib": "~2.4" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongo": "Allow sending log messages to a MongoDB server", - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "php-console/php-console": "Allow sending log messages to Google Chrome", - "raven/raven": "Allow sending log messages to a Sentry server", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.16.x-dev" - } - }, - "autoload": { - "psr-4": { - "Monolog\\": "src/Monolog" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "http://github.com/Seldaek/monolog", - "keywords": [ - "log", - "logging", - "psr-3" - ], - "time": "2015-08-31 09:17:37" - }, - { - "name": "phpseclib/phpseclib", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/phpseclib/phpseclib.git", - "reference": "a74aa9efbe61430fcb60157c8e025a48ec8ff604" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/a74aa9efbe61430fcb60157c8e025a48ec8ff604", - "reference": "a74aa9efbe61430fcb60157c8e025a48ec8ff604", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phing/phing": "~2.7", - "phpunit/phpunit": "~4.0", - "sami/sami": "~2.0", - "squizlabs/php_codesniffer": "~2.0" - }, - "suggest": { - "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", - "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", - "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", - "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations.", - "pear-pear/PHP_Compat": "Install PHP_Compat to get phpseclib working on PHP < 5.0.0." - }, - "type": "library", - "autoload": { - "psr-4": { - "phpseclib\\": "phpseclib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "phpseclib/" - ], - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jim Wigginton", - "email": "terrafrost@php.net", - "role": "Lead Developer" - }, - { - "name": "Patrick Monnerat", - "email": "pm@datasphere.ch", - "role": "Developer" - }, - { - "name": "Andreas Fischer", - "email": "bantu@phpbb.com", - "role": "Developer" - }, - { - "name": "Hans-Jürgen Petrich", - "email": "petrich@tronic-media.com", - "role": "Developer" - } - ], - "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", - "homepage": "http://phpseclib.sourceforge.net", - "keywords": [ - "BigInteger", - "aes", - "asn.1", - "asn1", - "blowfish", - "crypto", - "cryptography", - "encryption", - "rsa", - "security", - "sftp", - "signature", - "signing", - "ssh", - "twofish", - "x.509", - "x509" - ], - "time": "2015-08-04 04:48:03" - }, - { - "name": "psr/log", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", - "shasum": "" - }, - "type": "library", - "autoload": { - "psr-0": { - "Psr\\Log\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2012-12-21 11:40:51" - }, - { - "name": "react/promise", - "version": "v2.2.1", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "3b6fca09c7d56321057fa8867c8dbe1abf648627" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/3b6fca09c7d56321057fa8867c8dbe1abf648627", - "reference": "3b6fca09c7d56321057fa8867c8dbe1abf648627", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "psr-4": { - "React\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com" - } - ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "time": "2015-07-03 13:48:55" - } - ], - "packages-dev": [ - { - "name": "doctrine/instantiator", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", - "shasum": "" - }, - "require": { - "php": ">=5.3,<8.0-DEV" - }, - "require-dev": { - "athletic/athletic": "~0.1.8", - "ext-pdo": "*", - "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2015-06-14 21:17:01" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "phpDocumentor": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" - } - ], - "time": "2015-02-03 12:10:50" - }, - { - "name": "phpspec/prophecy", - "version": "v1.5.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4745ded9307786b730d7a60df5cb5a6c43cf95f7", - "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "phpdocumentor/reflection-docblock": "~2.0", - "sebastian/comparator": "~1.1" - }, - "require-dev": { - "phpspec/phpspec": "~2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "psr-0": { - "Prophecy\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2015-08-13 10:07:40" - }, - { - "name": "phpunit/php-code-coverage", - "version": "2.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" - }, - "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2015-10-06 15:47:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0", - "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2015-06-21 13:08:43" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21 13:50:34" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.7", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2015-06-21 08:01:12" - }, - { - "name": "phpunit/php-token-stream", - "version": "1.4.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da", - "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "time": "2015-09-15 10:49:45" - }, - { - "name": "phpunit/phpunit", - "version": "4.8.12", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "00194eb95989190a73198390ceca081ad3441a7f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/00194eb95989190a73198390ceca081ad3441a7f", - "reference": "00194eb95989190a73198390ceca081ad3441a7f", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "~2.1", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": ">=1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.1", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.1|~3.0" - }, - "suggest": { - "phpunit/php-invoker": "~1.1" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.8.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2015-10-12 03:36:47" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "time": "2015-10-02 06:51:40" - }, - { - "name": "sebastian/comparator", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "937efb279bd37a375bcadf584dec0726f84dbf22" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22", - "reference": "937efb279bd37a375bcadf584dec0726f84dbf22", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2015-07-26 15:48:44" - }, - { - "name": "sebastian/diff", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "http://www.github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "time": "2015-02-22 15:13:53" - }, - { - "name": "sebastian/environment", - "version": "1.3.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6324c907ce7a52478eeeaede764f48733ef5ae44", - "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2015-08-03 06:14:51" - }, - { - "name": "sebastian/exporter", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2015-06-21 07:55:53" - }, - { - "name": "sebastian/global-state", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2015-10-12 03:26:01" - }, - { - "name": "sebastian/recursion-context", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-06-21 08:04:50" - }, - { - "name": "sebastian/version", - "version": "1.0.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "shasum": "" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21 13:59:46" - }, - { - "name": "squizlabs/php_codesniffer", - "version": "2.3.4", - "source": { - "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "11a2545c44a5915f883e2e5ec12e14ed345e3ab2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/11a2545c44a5915f883e2e5ec12e14ed345e3ab2", - "reference": "11a2545c44a5915f883e2e5ec12e14ed345e3ab2", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": ">=5.1.2" - }, - "bin": [ - "scripts/phpcs", - "scripts/phpcbf" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Greg Sherwood", - "role": "lead" - } - ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", - "keywords": [ - "phpcs", - "standards" - ], - "time": "2015-09-09 00:18:50" - }, - { - "name": "symfony/css-selector", - "version": "v2.7.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/css-selector.git", - "reference": "abe19cc0429a06be0c133056d1f9859854860970" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/abe19cc0429a06be0c133056d1f9859854860970", - "reference": "abe19cc0429a06be0c133056d1f9859854860970", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\CssSelector\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jean-François Simon", - "email": "jeanfrancois.simon@sensiolabs.com" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony CssSelector Component", - "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" - }, - { - "name": "symfony/dom-crawler", - "version": "v2.7.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/dom-crawler.git", - "reference": "2e185ca136399f902b948694987e62c80099c052" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/2e185ca136399f902b948694987e62c80099c052", - "reference": "2e185ca136399f902b948694987e62c80099c052", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/css-selector": "~2.3", - "symfony/phpunit-bridge": "~2.7" - }, - "suggest": { - "symfony/css-selector": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\DomCrawler\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony DomCrawler Component", - "homepage": "https://symfony.com", - "time": "2015-09-20 21:13:58" - }, - { - "name": "symfony/yaml", - "version": "v2.7.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/31cb2ad0155c95b88ee55fe12bc7ff92232c1770", - "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "time": "2015-09-14 14:14:09" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": { - "google/auth": 15 - }, - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.4" - }, - "platform-dev": [] -} diff --git a/examples/index.php b/examples/index.php index e901d4bf2..1949cbf4b 100644 --- a/examples/index.php +++ b/examples/index.php @@ -1,15 +1,16 @@ - - -
-  To view this page on a webserver using PHP 5.4 or above run:
-    php -S localhost:8080
-  
+ To view this example, run the following command from the root directory of this repository: + + php -S localhost:8080 -t examples/ + + And then browse to "localhost:8080" in your web browser + + diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 669e315c4..19dccfe56 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -29,6 +29,8 @@ class Google_AccessToken_Verify { const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; + const OAUTH2_ISSUER = 'accounts.google.com'; + const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; /** * @var GuzzleHttp\ClientInterface The http client @@ -84,13 +86,21 @@ public function verifyIdToken($idToken, $audience = null) $rsa->getPublicKey(), array('RS256') ); + if (property_exists($payload, 'aud')) { if ($audience && $payload->aud != $audience) { return false; } } - return $payload; + // support HTTP and HTTPS issuers + // @see https://developers.google.com/identity/sign-in/web/backend-auth + $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); + if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { + return false; + } + + return (array) $payload; } catch (ExpiredException $e) { return false; } catch (DomainException $e) { diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 45b2ef00d..92b09ae9d 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -154,7 +154,8 @@ private function getCacheDir($file, $forWrite) $storageDir = $this->path . '/' . substr(md5($file), 0, 2); if ($forWrite && ! is_dir($storageDir)) { if (! mkdir($storageDir, 0700, true)) { - $this->client->getLogger()->error( + $this->log( + 'error', 'File cache creation failed', array('dir' => $storageDir) ); diff --git a/src/Google/Client.php b/src/Google/Client.php index 343242204..c62cd0d0e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -18,8 +18,10 @@ use Google\Auth\ApplicationDefaultCredentials; use Google\Auth\AuthTokenFetcher; use Google\Auth\CacheInterface; +use Google\Auth\CredentialsLoader; use Google\Auth\OAuth2; use Google\Auth\ScopedAccessToken; +use Google\Auth\ServiceAccountCredentials; use Google\Auth\Simple; use Google\Auth\UserRefreshCredentials; use GuzzleHttp\Client; @@ -38,7 +40,7 @@ class Google_Client const LIBVER = "2.0.0-alpha"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; - const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v3/token'; + const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; const API_BASE_PATH = 'https://www.googleapis.com'; @@ -148,8 +150,6 @@ public function getLibraryVersion() */ public function authenticate($code) { - trigger_error('use Google_Client::fetchAccessTokenWithAuthCode', E_DEPRECATED); - return $this->fetchAccessTokenWithAuthCode($code); } @@ -187,8 +187,6 @@ public function fetchAccessTokenWithAuthCode($code) */ public function refreshTokenWithAssertion() { - trigger_error('use Google_Client::fetchAccessTokenWithAssertion', E_DEPRECATED); - return $this->fetchAccessTokenWithAssertion(); } @@ -233,8 +231,6 @@ public function fetchAccessTokenWithAssertion() */ public function refreshToken($refreshToken) { - trigger_error('use Google_Client::fetchAccessTokenWithRefreshToken', E_DEPRECATED); - return $this->fetchAccessTokenWithRefreshToken($refreshToken); } @@ -324,20 +320,45 @@ public function createAuthUrl($scope = null) * set in the Google API Client object * * @param GuzzleHttp\ClientInterface $http the http client object. + * @param GuzzleHttp\ClientInterface $authHttp an http client for authentication. * @return void */ - public function authorize(ClientInterface $http) + public function authorize(ClientInterface $http, ClientInterface $authHttp = null) { $subscriber = null; $authIdentifier = null; + + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $authHttp ?: $this->createDefaultAuthHttpClient($http); + + // These conditionals represent the decision tree for authentication + // 1. Check for Application Default Credentials + // 2. Check for API Key + // 3a. Check for an Access Token + // 3b. If access token exists but is expired, try to refresh it if ($this->config->get('use_application_default_credentials')) { $scopes = $this->prepareScopes(); - $subscriber = ApplicationDefaultCredentials::getFetcher( - $scopes, - null, - array(), - $this->cache - ); + if ($sub = $this->config->get('subject')) { + // for service account domain-wide authority (impersonating a user) + // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + if (!$creds = CredentialsLoader::fromEnv($scopes)) { + $creds = CredentialsLoader::fromWellKnownFile($scopes); + } + if (!$creds instanceof ServiceAccountCredentials) { + throw new DomainException('domain-wide authority requires service account credentials'); + } + $creds->setSub($sub); + $subscriber = new AuthTokenFetcher($creds, array(), $this->cache, $authHttp); + } else { + $subscriber = ApplicationDefaultCredentials::getFetcher( + $scopes, + $authHttp, + array(), + $this->cache + ); + } $authIdentifier = 'google_auth'; } elseif ($key = $this->config->get('developer_key')) { // if a developer key is set, authorize using that @@ -346,20 +367,19 @@ public function authorize(ClientInterface $http) } elseif ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token - if ($this->isAccessTokenExpired()) { - if (isset($token['refresh_token'])) { - $subscriber = $this->createUserRefreshCredentials( - $scopes, - $token['refresh_token'] - ); - $authIdentifier = 'google_auth'; - } + if ($this->isAccessTokenExpired() && isset($token['refresh_token'])) { + $subscriber = $this->createUserRefreshCredentials( + $scopes, + $token['refresh_token'], + $authHttp + ); + $authIdentifier = 'google_auth'; } else { $subscriber = new ScopedAccessToken( function ($scopes) use ($token) { return $token['access_token']; }, - $scopes, + (array) $scopes, [] ); $authIdentifier = 'scoped'; @@ -431,6 +451,13 @@ public function getAccessToken() return $this->token; } + public function getRefreshToken() + { + if (isset($this->token['refresh_token'])) { + return $this->token['refresh_token']; + } + } + /** * Returns if the access_token is expired. * @return bool Returns True if the access_token is expired. @@ -798,16 +825,14 @@ public function getConfig($name, $default = null) } /** - * Set the auth config from the JSON file in the path - * provided. This should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string $file the file location of the client json + * For backwards compatibility + * alias for setAuthConfig + * + * @param string $file the configuration file + * @throws Google_Exception */ public function setAuthConfigFile($file) { - trigger_error('use Google_Client::setAuthConfig', E_USER_DEPRECATED); - $this->setAuthConfig($file); } @@ -842,7 +867,6 @@ public function setAuthConfig($config) $tmpFile = tempnam(sys_get_temp_dir(), 'appcreds'); file_put_contents($tmpFile, json_encode($config)); putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpFile); - } elseif (isset($config[$key])) { // old-style $this->setClientId($config[$key]['client_id']); @@ -860,6 +884,16 @@ public function setAuthConfig($config) } } + /** + * Use when the service account has been delegated domain wide access. + * + * @param string subject an email address account to impersonate + */ + public function setSubject($subject) + { + $this->config->set('subject', $subject); + } + /** * Declare whether making API calls should make the call immediately, or * return a request which can be called with ->execute(); @@ -1006,8 +1040,25 @@ protected function createDefaultHttpClient() return new Client($options); } - private function createUserRefreshCredentials($scope, $refreshToken) + protected function createDefaultAuthHttpClient($http = null) { + $options = [ + 'base_url' => $this->config->get('base_path'), + 'defaults' => [ + 'exceptions' => true, + 'verify' => $http ? $http->getDefaultOption('verify') : true, + 'proxy' => $http ? $http->getDefaultOption('proxy') : null, + ] + ]; + + return new Client($options); + } + + private function createUserRefreshCredentials( + $scope, + $refreshToken, + ClientInterface $http = null + ) { $creds = array_filter( array( 'client_id' => $this->getClientId(), @@ -1020,7 +1071,7 @@ private function createUserRefreshCredentials($scope, $refreshToken) new UserRefreshCredentials($scope, $creds), [], $this->getCache(), - clone $this->getHttpClient() + $http ); } } diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index b0d6b9dc4..74b837f89 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -109,6 +109,36 @@ public function getProgress() return $this->progress; } + /** + * Send the next part of the file to upload. + * @param [$chunk] the next set of bytes to send. If false will used $data passed + * at construct time. + */ + public function nextChunk($chunk = false) + { + $resumeUri = $this->getResumeUri(); + + if (false == $chunk) { + $chunk = substr($this->data, $this->progress, $this->chunkSize); + } + + $lastBytePos = $this->progress + strlen($chunk) - 1; + $headers = array( + 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", + 'content-length' => strlen($chunk), + 'expect' => '', + ); + + $request = new Request( + 'PUT', + $resumeUri, + $headers, + Stream::factory($chunk) + ); + + return $this->makePutRequest($request); + } + /** * Return the HTTP result code from the last call made. * @return int code @@ -127,14 +157,9 @@ public function getHttpResultCode() * @return false|mixed false when the upload is unfinished or the decoded http response * */ - private function makePutRequest(Google_Http_Request $httpRequest) + private function makePutRequest(Request $request) { - if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) { - $http->setDefaultOption('disable_gzip', false); - } else { - $http->setDefaultOption('disable_gzip', true); - } - + $http = $this->client->getHttpClient(); $response = $http->send($request); $this->httpResultCode = $response->getStatusCode(); @@ -163,37 +188,6 @@ private function makePutRequest(Google_Http_Request $httpRequest) return $result; } - /** - * Send the next part of the file to upload. - * @param [$chunk] the next set of bytes to send. If false will used $data passed - * at construct time. - */ - public function nextChunk($chunk = false) - { - if (false == $this->resumeUri) { - $this->resumeUri = $this->fetchResumeUri(); - } - - if (false == $chunk) { - $chunk = substr($this->data, $this->progress, $this->chunkSize); - } - $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( - 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-type' => $this->request->getRequestHeader('content-type'), - 'content-length' => $this->chunkSize, - 'expect' => '', - ); - - $httpRequest = new Google_Http_Request( - $this->resumeUri, - 'PUT', - $headers, - $chunk - ); - return $this->makePutRequest($httpRequest); - } - /** * Resume a previously unfinished upload * @param $resumeUri the resume-URI of the unfinished, resumable upload. @@ -210,6 +204,7 @@ public function resume($resumeUri) 'PUT', $headers ); + return $this->makePutRequest($httpRequest); } @@ -288,7 +283,11 @@ public function getUploadType($meta) public function getResumeUri() { - return ( $this->resumeUri !== null ? $this->resumeUri : $this->fetchResumeUri() ); + if (is_null($this->resumeUri)) { + $this->resumeUri = $this->fetchResumeUri(); + } + + return $this->resumeUri; } private function fetchResumeUri() diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 6bf51fa00..85fe61b82 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -18,6 +18,7 @@ use GuzzleHttp\Message\RequestInterface; use GuzzleHttp\Message\ResponseInterface; use GuzzleHttp\ClientInterface; +use GuzzleHttp\Exception\RequestException; /** * This class implements the RESTful transport of apiServiceRequest()'s @@ -65,7 +66,15 @@ public static function execute( */ public static function doExecute(ClientInterface $client, RequestInterface $request) { - $response = $client->send($request); + try { + $response = $client->send($request); + } catch (RequestException $e) { + // if Guzzle throws an exception, catch it and handle the response + if (!$e->hasResponse()) { + throw $e; + } + $response = $e->getResponse(); + } return self::decodeHttpResponse($response, $request); } diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index f1e576375..5df9e94b0 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -110,10 +110,7 @@ public function call($name, $arguments, $expected_class = null) $parameters['postBody'] = $this->convertToArrayAndStripNulls($parameters['postBody']); } - $postBody = json_encode($parameters['postBody']); - if ($postBody === false && $parameters['postBody'] !== false) { - throw new Google_Exception("JSON encoding failed. Ensure all strings in the request are UTF-8 encoded."); - } + $postBody = (array) $parameters['postBody']; unset($parameters['postBody']); } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index cae3fb101..db34967a7 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -44,8 +44,8 @@ public function testValidateIdToken() $data = json_decode(JWT::urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify(); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertTrue(isset($payload->sub)); - $this->assertTrue(strlen($payload->sub) > 0); + $this->assertTrue(isset($payload['sub'])); + $this->assertTrue(strlen($payload['sub']) > 0); // TODO: Need to be smart about testing/disabling the // caching for this test to make sense. Not sure how to do that @@ -54,7 +54,7 @@ public function testValidateIdToken() $data = json_decode(JWT::urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify(); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertTrue(isset($payload->sub)); - $this->assertTrue(strlen($payload->sub) > 0); + $this->assertTrue(isset($payload['sub'])); + $this->assertTrue(strlen($payload['sub']) > 0); } } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index f38bbdfa8..d335ea24f 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -283,6 +283,62 @@ public function testNoAuth() $this->assertEquals(0, count($listeners)); } + public function testApplicationDefaultCredentials() + { + $client = new Google_Client(); + $client->setAuthConfig(__DIR__.'/../config/application-default-credentials.json'); + + $http = new Client(); + $client->authorize($http); + + $listeners = $http->getEmitter()->listeners('before'); + + $this->assertEquals(1, count($listeners)); + $this->assertEquals(2, count($listeners[0])); + $this->assertInstanceOf('Google\Auth\AuthTokenFetcher', $listeners[0][0]); + + // access the protected $fetcher property + $class = new ReflectionClass(get_class($listeners[0][0])); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $fetcher = $property->getValue($listeners[0][0]); + + $this->assertInstanceOf('Google\Auth\ServiceAccountCredentials', $fetcher); + } + + public function testApplicationDefaultCredentialsWithSubject() + { + $sub = 'sub123'; + $client = new Google_Client(); + $client->setAuthConfig(__DIR__.'/../config/application-default-credentials.json'); + $client->setSubject($sub); + + $http = new Client(); + $client->authorize($http); + + $listeners = $http->getEmitter()->listeners('before'); + + $this->assertEquals(1, count($listeners)); + $this->assertEquals(2, count($listeners[0])); + $this->assertInstanceOf('Google\Auth\AuthTokenFetcher', $listeners[0][0]); + + // access the protected $fetcher property + $class = new ReflectionClass(get_class($listeners[0][0])); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $fetcher = $property->getValue($listeners[0][0]); + + $this->assertInstanceOf('Google\Auth\ServiceAccountCredentials', $fetcher); + + // access the protected $auth property + $class = new ReflectionClass(get_class($fetcher)); + $property = $class->getProperty('auth'); + $property->setAccessible(true); + $auth = $property->getValue($fetcher); + + $this->assertEquals($sub, $auth->getSub()); + } + /** * Test that the ID token is properly refreshed. */ diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index dec93aee0..cb002b299 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -193,5 +193,4 @@ public function testAppEngineSslCerts() $this->client->getHttpClient()->getDefaultOption('verify') ); } - } From 7931def12fdf0faab47142da4d427df48f0c032b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 26 Oct 2015 11:44:11 -0700 Subject: [PATCH 0909/1274] This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Classroom.php | 242 ++-- src/Google/Service/Compute.php | 1376 +++++++++++++++++++--- src/Google/Service/Directory.php | 949 +++++++++++++-- src/Google/Service/Doubleclicksearch.php | 9 + src/Google/Service/Games.php | 18 + src/Google/Service/GamesManagement.php | 18 + src/Google/Service/IdentityToolkit.php | 9 + src/Google/Service/Reseller.php | 9 + src/Google/Service/SQLAdmin.php | 9 + src/Google/Service/TagManager.php | 6 +- src/Google/Service/YouTube.php | 87 +- 11 files changed, 2378 insertions(+), 354 deletions(-) diff --git a/src/Google/Service/Classroom.php b/src/Google/Service/Classroom.php index f63b3eaec..96771d51d 100644 --- a/src/Google/Service/Classroom.php +++ b/src/Google/Service/Classroom.php @@ -446,9 +446,9 @@ class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource * Creates a course. The user specified in `ownerId` is the owner of the created * course and added as a teacher. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to create - * courses or for [general user permission errors][User Permission Errors]. * - * `NOT_FOUND` if the primary teacher is not a valid user. * - * `FAILED_PRECONDITION` if the course owner's account is disabled. * + * courses or for access errors. * `NOT_FOUND` if the primary teacher is not a + * valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled + * or for the following request errors: * UserGroupsMembershipLimitReached * * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists. * (courses.create) * @@ -466,13 +466,11 @@ public function create(Google_Service_Classroom_Course $postBody, $optParams = a /** * Deletes a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested course or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if no course exists with the requested ID. - * (courses.delete) + * requested course or for access errors. * `NOT_FOUND` if no course exists with + * the requested ID. (courses.delete) * * @param string $id Identifier of the course to delete. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -486,13 +484,11 @@ public function delete($id, $optParams = array()) /** * Returns a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to access the - * requested course or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if no course exists with the requested ID. - * (courses.get) + * requested course or for access errors. * `NOT_FOUND` if no course exists with + * the requested ID. (courses.get) * * @param string $id Identifier of the course to return. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course */ @@ -506,10 +502,9 @@ public function get($id, $optParams = array()) /** * Returns a list of courses that the requesting user is permitted to view, * restricted to those that match the request. This method returns the following - * error codes: * `PERMISSION_DENIED` for [general user permission errors][User - * Permission Errors]. * `INVALID_ARGUMENT` if the query argument is malformed. - * * `NOT_FOUND` if any users specified in the query arguments do not exist. - * (courses.listCourses) + * error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if + * the query argument is malformed. * `NOT_FOUND` if any users specified in the + * query arguments do not exist. (courses.listCourses) * * @param array $optParams Optional parameters. * @@ -517,13 +512,10 @@ public function get($id, $optParams = array()) * teacher with the specified identifier. The identifier can be one of the * following: * the numeric identifier for the user * the email address of the * user * the string literal `"me"`, indicating the requesting user - * @opt_param string pageToken - * [nextPageToken][google.classroom.v1.ListCoursesResponse.next_page_token] - * value returned from a previous - * [list][google.classroom.v1.Courses.ListCourses] call, indicating that the - * subsequent page of results should be returned. The - * [list][google.classroom.v1.Courses.ListCourses] request must be otherwise - * identical to the one that resulted in this token. + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. The + * list request must be otherwise identical to the one that resulted in this + * token. * @opt_param string studentId Restricts returned courses to those having a * student with the specified identifier. The identifier can be one of the * following: * the numeric identifier for the user * the email address of the @@ -543,14 +535,14 @@ public function listCourses($optParams = array()) /** * Updates one or more fields in a course. This method returns the following * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * modify the requested course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no course exists with the requested ID. - * * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if - * no update mask is supplied. (courses.patch) + * modify the requested course or for access errors. * `NOT_FOUND` if no course + * exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are + * specified in the update mask or if no update mask is supplied. * + * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable + * (courses.patch) * * @param string $id Identifier of the course to update. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param Google_Course $postBody * @param array $optParams Optional parameters. * @@ -572,13 +564,12 @@ public function patch($id, Google_Service_Classroom_Course $postBody, $optParams /** * Updates a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to modify the - * requested course or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if no course exists with the requested ID. - * (courses.update) + * requested course or for access errors. * `NOT_FOUND` if no course exists with + * the requested ID. * `FAILED_PRECONDITION` for the following request errors: * + * CourseNotModifiable (courses.update) * * @param string $id Identifier of the course to update. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param Google_Course $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course @@ -605,13 +596,11 @@ class Google_Service_Classroom_CoursesAliases_Resource extends Google_Service_Re /** * Creates an alias for a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to create the - * alias or for [general user permission errors][User Permission Errors]. * - * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the alias - * already exists. (aliases.create) + * alias or for access errors. * `NOT_FOUND` if the course does not exist. * + * `ALREADY_EXISTS` if the alias already exists. (aliases.create) * * @param string $courseId Identifier of the course to alias. This identifier - * can be either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * can be either the Classroom-assigned identifier or an alias. * @param Google_CourseAlias $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_CourseAlias @@ -626,12 +615,12 @@ public function create($courseId, Google_Service_Classroom_CourseAlias $postBody /** * Deletes an alias of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to remove the - * alias or for [general user permission errors][User Permission Errors]. * - * `NOT_FOUND` if the alias does not exist. (aliases.delete) + * alias or for access errors. * `NOT_FOUND` if the alias does not exist. + * (aliases.delete) * * @param string $courseId Identifier of the course whose alias should be * deleted. This identifier can be either the Classroom-assigned identifier or - * an [alias][google.classroom.v1.CourseAlias]. + * an alias. * @param string $alias Alias to delete. This may not be the Classroom-assigned * identifier. * @param array $optParams Optional parameters. @@ -647,21 +636,17 @@ public function delete($courseId, $alias, $optParams = array()) /** * Returns a list of aliases for a course. This method returns the following * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * access the course or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if the course does not exist. - * (aliases.listCoursesAliases) + * access the course or for access errors. * `NOT_FOUND` if the course does not + * exist. (aliases.listCoursesAliases) * * @param string $courseId The identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * - * @opt_param string pageToken [nextPageToken][google.classroom.v1.ListCourseAli - * asesResponse.next_page_token] value returned from a previous - * [list][google.classroom.v1.Courses.ListCourseAliases] call, indicating that - * the subsequent page of results should be returned. The - * [list][google.classroom.v1.Courses.ListCourseAliases] request must be - * otherwise identical to the one that resulted in this token. + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. The + * list request must be otherwise identical to the one that resulted in this + * token. * @opt_param int pageSize Maximum number of items to return. Zero or * unspecified indicates that the server may assign a maximum. The server may * return fewer than the specified number of results. @@ -688,21 +673,20 @@ class Google_Service_Classroom_CoursesStudents_Resource extends Google_Service_R /** * Adds a user as a student of a course. This method returns the following error * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * create students in this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if the requested course ID does not exist. - * * `FAILED_PRECONDITION` if the requested user's account is disabled. * - * `ALREADY_EXISTS` if the user is already a student or teacher in the course. - * (students.create) + * create students in this course or for access errors. * `NOT_FOUND` if the + * requested course ID does not exist. * `FAILED_PRECONDITION` if the requested + * user's account is disabled, for the following request errors: * + * CourseMemberLimitReached * CourseNotModifiable * + * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a + * student or teacher in the course. (students.create) * * @param string $courseId Identifier of the course to create the student in. - * This identifier can be either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * This identifier can be either the Classroom-assigned identifier or an alias. * @param Google_Student $postBody * @param array $optParams Optional parameters. * * @opt_param string enrollmentCode Enrollment code of the course to create the - * student in. This code is required if - * [userId][google.classroom.v1.Student.user_id] corresponds to the requesting + * student in. This code is required if userId corresponds to the requesting * user; it may be omitted if the requesting user has administrative permissions * to create students for any user. * @return Google_Service_Classroom_Student @@ -717,13 +701,12 @@ public function create($courseId, Google_Service_Classroom_Student $postBody, $o /** * Deletes a student of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * students of this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no student of this course has the - * requested ID or if the course does not exist. (students.delete) + * students of this course or for access errors. * `NOT_FOUND` if no student of + * this course has the requested ID or if the course does not exist. + * (students.delete) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param string $userId Identifier of the student to delete. The identifier can * be one of the following: * the numeric identifier for the user * the email * address of the user * the string literal `"me"`, indicating the requesting @@ -741,13 +724,12 @@ public function delete($courseId, $userId, $optParams = array()) /** * Returns a student of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * students of this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no student of this course has the - * requested ID or if the course does not exist. (students.get) + * students of this course or for access errors. * `NOT_FOUND` if no student of + * this course has the requested ID or if the course does not exist. + * (students.get) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param string $userId Identifier of the student to return. The identifier can * be one of the following: * the numeric identifier for the user * the email * address of the user * the string literal `"me"`, indicating the requesting @@ -765,20 +747,17 @@ public function get($courseId, $userId, $optParams = array()) /** * Returns a list of students of this course that the requester is permitted to * view. This method returns the following error codes: * `NOT_FOUND` if the - * course does not exist. * `PERMISSION_DENIED` for [general user permission - * errors][User Permission Errors]. (students.listCoursesStudents) + * course does not exist. * `PERMISSION_DENIED` for access errors. + * (students.listCoursesStudents) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * [nextPageToken][google.classroom.v1.ListStudentsResponse.next_page_token] - * value returned from a previous [list][google.classroom.v1.Users.ListStudents] + * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The - * [list][google.classroom.v1.Users.ListStudents] request must be otherwise - * identical to the one that resulted in this token. + * list request must be otherwise identical to the one that resulted in this + * token. * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListStudentsResponse @@ -804,15 +783,15 @@ class Google_Service_Classroom_CoursesTeachers_Resource extends Google_Service_R /** * Creates a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to create - * teachers in this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if the requested course ID does not exist. - * * `FAILED_PRECONDITION` if the requested user's account is disabled. * - * `ALREADY_EXISTS` if the user is already a teacher or student in the course. - * (teachers.create) + * teachers in this course or for access errors. * `NOT_FOUND` if the requested + * course ID does not exist. * `FAILED_PRECONDITION` if the requested user's + * account is disabled, for the following request errors: * + * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * + * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a + * teacher or student in the course. (teachers.create) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param Google_Teacher $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Teacher @@ -827,14 +806,13 @@ public function create($courseId, Google_Service_Classroom_Teacher $postBody, $o /** * Deletes a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * teachers of this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no teacher of this course has the - * requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the - * requested ID belongs to the primary teacher of this course. (teachers.delete) + * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of + * this course has the requested ID or if the course does not exist. * + * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of + * this course. (teachers.delete) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param string $userId Identifier of the teacher to delete. The identifier can * be one of the following: * the numeric identifier for the user * the email * address of the user * the string literal `"me"`, indicating the requesting @@ -852,13 +830,12 @@ public function delete($courseId, $userId, $optParams = array()) /** * Returns a teacher of a course. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * teachers of this course or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no teacher of this course has the - * requested ID or if the course does not exist. (teachers.get) + * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of + * this course has the requested ID or if the course does not exist. + * (teachers.get) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param string $userId Identifier of the teacher to return. The identifier can * be one of the following: * the numeric identifier for the user * the email * address of the user * the string literal `"me"`, indicating the requesting @@ -876,20 +853,17 @@ public function get($courseId, $userId, $optParams = array()) /** * Returns a list of teachers of this course that the requester is permitted to * view. This method returns the following error codes: * `NOT_FOUND` if the - * course does not exist. * `PERMISSION_DENIED` for [general user permission - * errors][User Permission Errors]. (teachers.listCoursesTeachers) + * course does not exist. * `PERMISSION_DENIED` for access errors. + * (teachers.listCoursesTeachers) * * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an - * [alias][google.classroom.v1.CourseAlias]. + * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * - * @opt_param string pageToken - * [nextPageToken][google.classroom.v1.ListTeachersResponse.next_page_token] - * value returned from a previous [list][google.classroom.v1.Users.ListTeachers] + * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The - * [list][google.classroom.v1.Users.ListTeachers] request must be otherwise - * identical to the one that resulted in this token. + * list request must be otherwise identical to the one that resulted in this + * token. * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListTeachersResponse @@ -918,9 +892,11 @@ class Google_Service_Classroom_Invitations_Resource extends Google_Service_Resou * teachers or students (as appropriate) of the specified course. Only the * invited user may accept an invitation. This method returns the following * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * accept the requested invitation or for [general user permission errors][User - * Permission Errors]. * `NOT_FOUND` if no invitation exists with the requested - * ID. (invitations.accept) + * accept the requested invitation or for access errors. * `FAILED_PRECONDITION` + * for the following request errors: * CourseMemberLimitReached * + * CourseNotModifiable * CourseTeacherLimitReached * + * UserGroupsMembershipLimitReached * `NOT_FOUND` if no invitation exists with + * the requested ID. (invitations.accept) * * @param string $id Identifier of the invitation to accept. * @param array $optParams Optional parameters. @@ -937,12 +913,12 @@ public function accept($id, $optParams = array()) * Creates an invitation. Only one invitation for a user and course may exist at * a time. Delete and re-create an invitation to make changes. This method * returns the following error codes: * `PERMISSION_DENIED` if the requesting - * user is not permitted to create invitations for this course or for [general - * user permission errors][User Permission Errors]. * `NOT_FOUND` if the course - * or the user does not exist. * `FAILED_PRECONDITION` if the requested user's - * account is disabled or if the user already has this role or a role with - * greater permissions. * `ALREADY_EXISTS` if an invitation for the specified - * user and course already exists. (invitations.create) + * user is not permitted to create invitations for this course or for access + * errors. * `NOT_FOUND` if the course or the user does not exist. * + * `FAILED_PRECONDITION` if the requested user's account is disabled or if the + * user already has this role or a role with greater permissions. * + * `ALREADY_EXISTS` if an invitation for the specified user and course already + * exists. (invitations.create) * * @param Google_Invitation $postBody * @param array $optParams Optional parameters. @@ -958,9 +934,8 @@ public function create(Google_Service_Classroom_Invitation $postBody, $optParams /** * Deletes an invitation. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested invitation or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if no invitation exists with the requested ID. - * (invitations.delete) + * requested invitation or for access errors. * `NOT_FOUND` if no invitation + * exists with the requested ID. (invitations.delete) * * @param string $id Identifier of the invitation to delete. * @param array $optParams Optional parameters. @@ -976,9 +951,8 @@ public function delete($id, $optParams = array()) /** * Returns an invitation. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to view the - * requested invitation or for [general user permission errors][User Permission - * Errors]. * `NOT_FOUND` if no invitation exists with the requested ID. - * (invitations.get) + * requested invitation or for access errors. * `NOT_FOUND` if no invitation + * exists with the requested ID. (invitations.get) * * @param string $id Identifier of the invitation to return. * @param array $optParams Optional parameters. @@ -995,21 +969,17 @@ public function get($id, $optParams = array()) * Returns a list of invitations that the requesting user is permitted to view, * restricted to those that match the list request. *Note:* At least one of * `user_id` or `course_id` must be supplied. Both fields can be supplied. This - * method returns the following error codes: * `PERMISSION_DENIED` for [general - * user permission errors][User Permission Errors]. - * (invitations.listInvitations) + * method returns the following error codes: * `PERMISSION_DENIED` for access + * errors. (invitations.listInvitations) * * @param array $optParams Optional parameters. * * @opt_param string courseId Restricts returned invitations to those for a * course with the specified identifier. - * @opt_param string pageToken - * [nextPageToken][google.classroom.v1.ListInvitationsResponse.next_page_token] - * value returned from a previous - * [list][google.classroom.v1.Invitations.ListInvitations] call, indicating that - * the subsequent page of results should be returned. The - * [list][google.classroom.v1.Invitations.ListInvitations] request must be - * otherwise identical to the one that resulted in this token. + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. The + * list request must be otherwise identical to the one that resulted in this + * token. * @opt_param string userId Restricts returned invitations to those for a * specific user. The identifier can be one of the following: * the numeric * identifier for the user * the email address of the user * the string literal @@ -1040,8 +1010,8 @@ class Google_Service_Classroom_UserProfiles_Resource extends Google_Service_Reso /** * Returns a user profile. This method returns the following error codes: * * `PERMISSION_DENIED` if the requesting user is not permitted to access this - * user profile or if no profile exists with the requested ID or for [general - * user permission errors][User Permission Errors]. (userProfiles.get) + * user profile or if no profile exists with the requested ID or for access + * errors. (userProfiles.get) * * @param string $userId Identifier of the profile to return. The identifier can * be one of the following: * the numeric identifier for the user * the email diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 5a75948e3..301948dd3 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -60,6 +60,7 @@ class Google_Service_Compute extends Google_Service public $globalForwardingRules; public $globalOperations; public $httpHealthChecks; + public $httpsHealthChecks; public $images; public $instanceGroupManagers; public $instanceGroups; @@ -73,7 +74,9 @@ class Google_Service_Compute extends Google_Service public $regions; public $routes; public $snapshots; + public $sslCertificates; public $targetHttpProxies; + public $targetHttpsProxies; public $targetInstances; public $targetPools; public $targetVpnGateways; @@ -1278,6 +1281,108 @@ public function __construct(Google_Client $client) ) ) ); + $this->httpsHealthChecks = new Google_Service_Compute_HttpsHealthChecks_Resource( + $this, + $this->serviceName, + 'httpsHealthChecks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpsHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpsHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/httpsHealthChecks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/httpsHealthChecks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpsHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpsHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->images = new Google_Service_Compute_Images_Resource( $this, $this->serviceName, @@ -2784,6 +2889,78 @@ public function __construct(Google_Client $client) ) ) ); + $this->sslCertificates = new Google_Service_Compute_SslCertificates_Resource( + $this, + $this->serviceName, + 'sslCertificates', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/sslCertificates/{sslCertificate}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sslCertificate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/sslCertificates/{sslCertificate}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sslCertificate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/sslCertificates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/sslCertificates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( $this, $this->serviceName, @@ -2871,6 +3048,108 @@ public function __construct(Google_Client $client) ) ) ); + $this->targetHttpsProxies = new Google_Service_Compute_TargetHttpsProxies_Resource( + $this, + $this->serviceName, + 'targetHttpsProxies', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpsProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpsProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/targetHttpsProxies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/targetHttpsProxies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setSslCertificates' => array( + 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpsProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setUrlMap' => array( + 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpsProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( $this, $this->serviceName, @@ -5086,36 +5365,166 @@ public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHe } /** - * The "images" collection of methods. + * The "httpsHealthChecks" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $images = $computeService->images; + * $httpsHealthChecks = $computeService->httpsHealthChecks; * */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource +class Google_Service_Compute_HttpsHealthChecks_Resource extends Google_Service_Resource { /** - * Deletes the specified image resource. (images.delete) + * Deletes the specified HttpsHealthCheck resource. (httpsHealthChecks.delete) * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to delete. + * @param string $project Name of the project scoping this request. + * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to + * delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function delete($project, $image, $optParams = array()) + public function delete($project, $httpsHealthCheck, $optParams = array()) { - $params = array('project' => $project, 'image' => $image); + $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Sets the deprecation status of an image. + * Returns the specified HttpsHealthCheck resource. (httpsHealthChecks.get) * - * If an empty request body is given, clears the deprecation status instead. - * (images.deprecate) + * @param string $project Name of the project scoping this request. + * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_HttpsHealthCheck + */ + public function get($project, $httpsHealthCheck, $optParams = array()) + { + $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_HttpsHealthCheck"); + } + + /** + * Creates a HttpsHealthCheck resource in the specified project using the data + * included in the request. (httpsHealthChecks.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_HttpsHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of HttpsHealthCheck resources available to the specified + * project. (httpsHealthChecks.listHttpsHealthChecks) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_HttpsHealthCheckList + */ + public function listHttpsHealthChecks($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_HttpsHealthCheckList"); + } + + /** + * Updates a HttpsHealthCheck resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (httpsHealthChecks.patch) + * + * @param string $project Name of the project scoping this request. + * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to + * update. + * @param Google_HttpsHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates a HttpsHealthCheck resource in the specified project using the data + * included in the request. (httpsHealthChecks.update) + * + * @param string $project Name of the project scoping this request. + * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to + * update. + * @param Google_HttpsHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) + { + $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "images" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $images = $computeService->images; + * + */ +class Google_Service_Compute_Images_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified image resource. (images.delete) + * + * @param string $project Project ID for this request. + * @param string $image Name of the image resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $image, $optParams = array()) + { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. + * (images.deprecate) * * @param string $project Project ID for this request. * @param string $image Image name. @@ -5521,8 +5930,7 @@ class Google_Service_Compute_InstanceGroups_Resource extends Google_Service_Reso /** * Adds a list of instances to the specified instance group. All of the - * instances in the instance group must be in the same network/subnetwork. TODO: - * Change to comment to state "if IG is load balanced." + * instances in the instance group must be in the same network/subnetwork. * (instanceGroups.addInstances) * * @param string $project The project ID for this request. @@ -5857,7 +6265,7 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G } /** - * (instances.aggregatedList) + * Retrieves aggregated list of instance resources. (instances.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. @@ -6786,6 +7194,97 @@ public function listSnapshots($project, $optParams = array()) } } +/** + * The "sslCertificates" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $sslCertificates = $computeService->sslCertificates; + * + */ +class Google_Service_Compute_SslCertificates_Resource extends Google_Service_Resource +{ + + /** + * Deletes the specified SslCertificate resource. (sslCertificates.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $sslCertificate Name of the SslCertificate resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $sslCertificate, $optParams = array()) + { + $params = array('project' => $project, 'sslCertificate' => $sslCertificate); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified SslCertificate resource. (sslCertificates.get) + * + * @param string $project Name of the project scoping this request. + * @param string $sslCertificate Name of the SslCertificate resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_SslCertificate + */ + public function get($project, $sslCertificate, $optParams = array()) + { + $params = array('project' => $project, 'sslCertificate' => $sslCertificate); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_SslCertificate"); + } + + /** + * Creates a SslCertificate resource in the specified project using the data + * included in the request. (sslCertificates.insert) + * + * @param string $project Name of the project scoping this request. + * @param Google_SslCertificate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_SslCertificate $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of SslCertificate resources available to the specified + * project. (sslCertificates.listSslCertificates) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_SslCertificateList + */ + public function listSslCertificates($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SslCertificateList"); + } +} + /** * The "targetHttpProxies" collection of methods. * Typical usage is: @@ -6897,104 +7396,69 @@ public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_Url } /** - * The "targetInstances" collection of methods. + * The "targetHttpsProxies" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $targetInstances = $computeService->targetInstances; + * $targetHttpsProxies = $computeService->targetHttpsProxies; * */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetHttpsProxies_Resource extends Google_Service_Resource { /** - * Retrieves the list of target instances grouped by scope. - * (targetInstances.aggregatedList) - * - * @param string $project Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. - * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the - * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); - } - - /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) + * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete) * * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to delete. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to + * delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function delete($project, $zone, $targetInstance, $optParams = array()) + public function delete($project, $targetHttpsProxy, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetInstance resource. (targetInstances.get) + * Returns the specified TargetHttpsProxy resource. (targetHttpsProxies.get) * * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to return. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to + * return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance + * @return Google_Service_Compute_TargetHttpsProxy */ - public function get($project, $zone, $targetInstance, $optParams = array()) + public function get($project, $targetHttpsProxy, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpsProxy"); } /** - * Creates a TargetInstance resource in the specified project and zone using the - * data included in the request. (targetInstances.insert) + * Creates a TargetHttpsProxy resource in the specified project using the data + * included in the request. (targetHttpsProxies.insert) * * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param Google_TargetInstance $postBody + * @param Google_TargetHttpsProxy $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) + public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves the list of TargetInstance resources available to the specified - * project and zone. (targetInstances.listTargetInstances) + * Retrieves the list of TargetHttpsProxy resources available to the specified + * project. (targetHttpsProxies.listTargetHttpsProxies) * * @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 Sets a filter expression for filtering listed @@ -7014,34 +7478,197 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p * if you want to list the next page of results. Set pageToken to the * nextPageToken returned by a previous list request. * @opt_param string maxResults Maximum count of results to be returned. - * @return Google_Service_Compute_TargetInstanceList + * @return Google_Service_Compute_TargetHttpsProxyList */ - public function listTargetInstances($project, $zone, $optParams = array()) + public function listTargetHttpsProxies($project, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpsProxyList"); } -} - -/** - * The "targetPools" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetPools = $computeService->targetPools; - * - */ -class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource -{ /** - * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * Replaces SslCertificates for TargetHttpsProxy. + * (targetHttpsProxies.setSslCertificates) * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be added. + * @param string $project Name of the project scoping this request. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose + * URL map is to be set. + * @param Google_TargetHttpsProxiesSetSslCertificatesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setSslCertificates($project, $targetHttpsProxy, Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap) + * + * @param string $project Name of the project scoping this request. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose + * URL map is to be set. + * @param Google_UrlMapReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUrlMap($project, $targetHttpsProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + } +} + +/** + * The "targetInstances" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetInstances = $computeService->targetInstances; + * + */ +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target instances grouped by scope. + * (targetInstances.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + } + + /** + * Deletes the specified TargetInstance resource. (targetInstances.delete) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetInstance resource. (targetInstances.get) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $targetInstance Name of the TargetInstance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetInstance + */ + public function get($project, $zone, $targetInstance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + } + + /** + * Creates a TargetInstance resource in the specified project and zone using the + * data included in the request. (targetInstances.insert) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_TargetInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetInstance resources available to the specified + * project and zone. (targetInstances.listTargetInstances) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * + * The FIELD_NAME is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The COMPARISON_STRING + * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * string value to filter to. The literal value must be valid for the type of + * field (string, number, boolean). For string fields, the literal value is + * interpreted as a regular expression using RE2 syntax. The literal value must + * match the entire field. + * + * For example, filter=name ne example-instance. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetInstanceList + */ + public function listTargetInstances($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + } +} + +/** + * The "targetPools" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetPools = $computeService->targetPools; + * + */ +class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource +{ + + /** + * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * + * @param string $project + * @param string $region Name of the region scoping this request. + * @param string $targetPool Name of the TargetPool resource to which + * health_check_url is to be added. * @param Google_TargetPoolsAddHealthCheckRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -10569,37 +11196,32 @@ public function getSelfLink() } } -class Google_Service_Compute_Image extends Google_Collection +class Google_Service_Compute_HttpsHealthCheck extends Google_Model { - protected $collection_key = 'licenses'; protected $internal_gapi_mappings = array( ); - public $archiveSizeBytes; + public $checkIntervalSec; public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; - public $diskSizeGb; + public $healthyThreshold; + public $host; public $id; public $kind; - public $licenses; public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; + public $port; + public $requestPath; public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $sourceType; - public $status; + public $timeoutSec; + public $unhealthyThreshold; - public function setArchiveSizeBytes($archiveSizeBytes) + public function setCheckIntervalSec($checkIntervalSec) { - $this->archiveSizeBytes = $archiveSizeBytes; + $this->checkIntervalSec = $checkIntervalSec; } - public function getArchiveSizeBytes() + public function getCheckIntervalSec() { - return $this->archiveSizeBytes; + return $this->checkIntervalSec; } public function setCreationTimestamp($creationTimestamp) { @@ -10609,14 +11231,6 @@ 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; @@ -10625,13 +11239,21 @@ public function getDescription() { return $this->description; } - public function setDiskSizeGb($diskSizeGb) + public function setHealthyThreshold($healthyThreshold) { - $this->diskSizeGb = $diskSizeGb; + $this->healthyThreshold = $healthyThreshold; } - public function getDiskSizeGb() + public function getHealthyThreshold() { - return $this->diskSizeGb; + return $this->healthyThreshold; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; } public function setId($id) { @@ -10649,14 +11271,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } public function setName($name) { $this->name = $name; @@ -10665,13 +11279,21 @@ public function getName() { return $this->name; } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + public function setPort($port) { - $this->rawDisk = $rawDisk; + $this->port = $port; } - public function getRawDisk() + public function getPort() { - return $this->rawDisk; + return $this->port; + } + public function setRequestPath($requestPath) + { + $this->requestPath = $requestPath; + } + public function getRequestPath() + { + return $this->requestPath; } public function setSelfLink($selfLink) { @@ -10681,19 +11303,204 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceDisk($sourceDisk) + public function setTimeoutSec($timeoutSec) { - $this->sourceDisk = $sourceDisk; + $this->timeoutSec = $timeoutSec; } - public function getSourceDisk() + public function getTimeoutSec() { - return $this->sourceDisk; + return $this->timeoutSec; } - public function setSourceDiskId($sourceDiskId) + public function setUnhealthyThreshold($unhealthyThreshold) { - $this->sourceDiskId = $sourceDiskId; + $this->unhealthyThreshold = $unhealthyThreshold; } - public function getSourceDiskId() + public function getUnhealthyThreshold() + { + return $this->unhealthyThreshold; + } +} + +class Google_Service_Compute_HttpsHealthCheckList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_HttpsHealthCheck'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_Image extends Google_Collection +{ + protected $collection_key = 'licenses'; + protected $internal_gapi_mappings = array( + ); + public $archiveSizeBytes; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $licenses; + public $name; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; + public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $sourceType; + public $status; + + + public function setArchiveSizeBytes($archiveSizeBytes) + { + $this->archiveSizeBytes = $archiveSizeBytes; + } + public function getArchiveSizeBytes() + { + return $this->archiveSizeBytes; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + { + $this->rawDisk = $rawDisk; + } + public function getRawDisk() + { + return $this->rawDisk; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + public function getSourceDisk() + { + return $this->sourceDisk; + } + public function setSourceDiskId($sourceDiskId) + { + $this->sourceDiskId = $sourceDiskId; + } + public function getSourceDiskId() { return $this->sourceDiskId; } @@ -14735,6 +15542,141 @@ public function getSelfLink() } } +class Google_Service_Compute_SslCertificate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $certificate; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $privateKey; + public $selfLink; + + + public function setCertificate($certificate) + { + $this->certificate = $certificate; + } + public function getCertificate() + { + return $this->certificate; + } + 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 setPrivateKey($privateKey) + { + $this->privateKey = $privateKey; + } + public function getPrivateKey() + { + return $this->privateKey; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_SslCertificateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_SslCertificate'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + class Google_Service_Compute_Tags extends Google_Collection { protected $collection_key = 'items'; @@ -14888,6 +15830,160 @@ public function getSelfLink() } } +class Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest extends Google_Collection +{ + protected $collection_key = 'sslCertificates'; + protected $internal_gapi_mappings = array( + ); + public $sslCertificates; + + + public function setSslCertificates($sslCertificates) + { + $this->sslCertificates = $sslCertificates; + } + public function getSslCertificates() + { + return $this->sslCertificates; + } +} + +class Google_Service_Compute_TargetHttpsProxy extends Google_Collection +{ + protected $collection_key = 'sslCertificates'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $sslCertificates; + public $urlMap; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSslCertificates($sslCertificates) + { + $this->sslCertificates = $sslCertificates; + } + public function getSslCertificates() + { + return $this->sslCertificates; + } + public function setUrlMap($urlMap) + { + $this->urlMap = $urlMap; + } + public function getUrlMap() + { + return $this->urlMap; + } +} + +class Google_Service_Compute_TargetHttpsProxyList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetHttpsProxy'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + class Google_Service_Compute_TargetInstance extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 04c19b1c2..4675de5bc 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -53,6 +53,12 @@ class Google_Service_Directory extends Google_Service /** View your mobile devices' metadata. */ const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; + /** View and manage the provisioning of domains for your customers. */ + const ADMIN_DIRECTORY_DOMAIN = + "https://www.googleapis.com/auth/admin.directory.domain"; + /** View domains related to your customers. */ + const ADMIN_DIRECTORY_DOMAIN_READONLY = + "https://www.googleapis.com/auth/admin.directory.domain.readonly"; /** View and manage the provisioning of groups on your domain. */ const ADMIN_DIRECTORY_GROUP = "https://www.googleapis.com/auth/admin.directory.group"; @@ -74,6 +80,12 @@ class Google_Service_Directory extends Google_Service /** View organization units on your domain. */ const ADMIN_DIRECTORY_ORGUNIT_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; + /** Manage delegated admin roles for your domain. */ + const ADMIN_DIRECTORY_ROLEMANAGEMENT = + "https://www.googleapis.com/auth/admin.directory.rolemanagement"; + /** View delegated admin roles for your domain. */ + const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = + "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly"; /** View and manage the provisioning of users on your domain. */ const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user"; @@ -108,6 +120,9 @@ class Google_Service_Directory extends Google_Service public $mobiledevices; public $notifications; public $orgunits; + public $privileges; + public $roleAssignments; + public $roles; public $schemas; public $tokens; public $users; @@ -971,6 +986,200 @@ public function __construct(Google_Client $client) ) ) ); + $this->privileges = new Google_Service_Directory_Privileges_Resource( + $this, + $this->serviceName, + 'privileges', + array( + 'methods' => array( + 'list' => array( + 'path' => 'customer/{customer}/roles/ALL/privileges', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource( + $this, + $this->serviceName, + 'roleAssignments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleAssignmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleAssignmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customer}/roleassignments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customer}/roleassignments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userKey' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'roleId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->roles = new Google_Service_Directory_Roles_Resource( + $this, + $this->serviceName, + 'roles', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/roles/{roleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customer}/roles/{roleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customer}/roles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customer}/roles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'customer/{customer}/roles/{roleId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'customer/{customer}/roles/{roleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'roleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->schemas = new Google_Service_Directory_Schemas_Resource( $this, $this->serviceName, @@ -2403,156 +2612,367 @@ public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUn } /** - * The "schemas" collection of methods. + * The "privileges" collection of methods. * Typical usage is: * * $adminService = new Google_Service_Directory(...); - * $schemas = $adminService->schemas; + * $privileges = $adminService->privileges; * */ -class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource +class Google_Service_Directory_Privileges_Resource extends Google_Service_Resource { /** - * Delete schema (schemas.delete) + * Retrieves a paginated list of all privileges for a customer. + * (privileges.listPrivileges) * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema + * @param string $customer Immutable ID of the Google Apps account. * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Privileges */ - public function delete($customerId, $schemaKey, $optParams = array()) + public function listPrivileges($customer, $optParams = array()) { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); + $params = array('customer' => $customer); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('list', array($params), "Google_Service_Directory_Privileges"); } +} - /** - * Retrieve schema (schemas.get) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema - */ - public function get($customerId, $schemaKey, $optParams = array()) - { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Schema"); - } +/** + * The "roleAssignments" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $roleAssignments = $adminService->roleAssignments; + * + */ +class Google_Service_Directory_RoleAssignments_Resource extends Google_Service_Resource +{ /** - * Create schema. (schemas.insert) + * Deletes a role assignment. (roleAssignments.delete) * - * @param string $customerId Immutable id of the Google Apps account - * @param Google_Schema $postBody + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleAssignmentId Immutable ID of the role assignment. * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema */ - public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array()) + public function delete($customer, $roleAssignmentId, $optParams = array()) { - $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Schema"); + return $this->call('delete', array($params)); } /** - * Retrieve all schemas for a customer (schemas.listSchemas) + * Retrieve a role assignment. (roleAssignments.get) * - * @param string $customerId Immutable id of the Google Apps account + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleAssignmentId Immutable ID of the role assignment. * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schemas + * @return Google_Service_Directory_RoleAssignment */ - public function listSchemas($customerId, $optParams = array()) + public function get($customer, $roleAssignmentId, $optParams = array()) { - $params = array('customerId' => $customerId); + $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Schemas"); + return $this->call('get', array($params), "Google_Service_Directory_RoleAssignment"); } /** - * Update schema. This method supports patch semantics. (schemas.patch) + * Creates a role assignment. (roleAssignments.insert) * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema. - * @param Google_Schema $postBody + * @param string $customer Immutable ID of the Google Apps account. + * @param Google_RoleAssignment $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema + * @return Google_Service_Directory_RoleAssignment */ - public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + public function insert($customer, Google_Service_Directory_RoleAssignment $postBody, $optParams = array()) { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array('customer' => $customer, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Schema"); + return $this->call('insert', array($params), "Google_Service_Directory_RoleAssignment"); } /** - * Update schema (schemas.update) + * Retrieves a paginated list of all roleAssignments. + * (roleAssignments.listRoleAssignments) * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema. - * @param Google_Schema $postBody + * @param string $customer Immutable ID of the Google Apps account. * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema + * + * @opt_param string pageToken Token to specify the next page in the list. + * @opt_param string userKey The user's primary email address, alias email + * address, or unique user ID. If included in the request, returns role + * assignments only for this user. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string roleId Immutable ID of a role. If included in the request, + * returns only role assignments containing this role ID. + * @return Google_Service_Directory_RoleAssignments */ - public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + public function listRoleAssignments($customer, $optParams = array()) { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array('customer' => $customer); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Schema"); + return $this->call('list', array($params), "Google_Service_Directory_RoleAssignments"); } } /** - * The "tokens" collection of methods. + * The "roles" collection of methods. * Typical usage is: * * $adminService = new Google_Service_Directory(...); - * $tokens = $adminService->tokens; + * $roles = $adminService->roles; * */ -class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource +class Google_Service_Directory_Roles_Resource extends Google_Service_Resource { /** - * Delete all access tokens issued by a user for an application. (tokens.delete) + * Deletes a role. (roles.delete) * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param string $clientId The Client ID of the application the token is issued - * to. + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleId Immutable ID of the role. * @param array $optParams Optional parameters. */ - public function delete($userKey, $clientId, $optParams = array()) + public function delete($customer, $roleId, $optParams = array()) { - $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array('customer' => $customer, 'roleId' => $roleId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** - * Get information about an access token issued by a user. (tokens.get) + * Retrieves a role. (roles.get) * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param string $clientId The Client ID of the application the token is issued - * to. + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleId Immutable ID of the role. * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Token + * @return Google_Service_Directory_Role */ - public function get($userKey, $clientId, $optParams = array()) + public function get($customer, $roleId, $optParams = array()) { - $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array('customer' => $customer, 'roleId' => $roleId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Token"); + return $this->call('get', array($params), "Google_Service_Directory_Role"); } /** - * Returns the set of tokens specified user has issued to 3rd party - * applications. (tokens.listTokens) + * Creates a role. (roles.insert) * - * @param string $userKey Identifies the user in the API request. The value can + * @param string $customer Immutable ID of the Google Apps account. + * @param Google_Role $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Role + */ + public function insert($customer, Google_Service_Directory_Role $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Role"); + } + + /** + * Retrieves a paginated list of all the roles in a domain. (roles.listRoles) + * + * @param string $customer Immutable id of the Google Apps account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Token to specify the next page in the list. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Directory_Roles + */ + public function listRoles($customer, $optParams = array()) + { + $params = array('customer' => $customer); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Roles"); + } + + /** + * Updates a role. This method supports patch semantics. (roles.patch) + * + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleId Immutable ID of the role. + * @param Google_Role $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Role + */ + public function patch($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Role"); + } + + /** + * Updates a role. (roles.update) + * + * @param string $customer Immutable ID of the Google Apps account. + * @param string $roleId Immutable ID of the role. + * @param Google_Role $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Role + */ + public function update($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Role"); + } +} + +/** + * The "schemas" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $schemas = $adminService->schemas; + * + */ +class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource +{ + + /** + * Delete schema (schemas.delete) + * + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema + * @param array $optParams Optional parameters. + */ + public function delete($customerId, $schemaKey, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve schema (schemas.get) + * + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function get($customerId, $schemaKey, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Schema"); + } + + /** + * Create schema. (schemas.insert) + * + * @param string $customerId Immutable id of the Google Apps account + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Schema"); + } + + /** + * Retrieve all schemas for a customer (schemas.listSchemas) + * + * @param string $customerId Immutable id of the Google Apps account + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schemas + */ + public function listSchemas($customerId, $optParams = array()) + { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Schemas"); + } + + /** + * Update schema. This method supports patch semantics. (schemas.patch) + * + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema. + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Schema"); + } + + /** + * Update schema (schemas.update) + * + * @param string $customerId Immutable id of the Google Apps account + * @param string $schemaKey Name or immutable Id of the schema. + * @param Google_Schema $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Schema + */ + public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) + { + $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Schema"); + } +} + +/** + * The "tokens" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $tokens = $adminService->tokens; + * + */ +class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource +{ + + /** + * Delete all access tokens issued by a user for an application. (tokens.delete) + * + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param string $clientId The Client ID of the application the token is issued + * to. + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $clientId, $optParams = array()) + { + $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get information about an access token issued by a user. (tokens.get) + * + * @param string $userKey Identifies the user in the API request. The value can + * be the user's primary email address, alias email address, or unique user ID. + * @param string $clientId The Client ID of the application the token is issued + * to. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Token + */ + public function get($userKey, $clientId, $optParams = array()) + { + $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Token"); + } + + /** + * Returns the set of tokens specified user has issued to 3rd party + * applications. (tokens.listTokens) + * + * @param string $userKey Identifies the user in the API request. The value can * be the user's primary email address, alias email address, or unique user ID. * @param array $optParams Optional parameters. * @return Google_Service_Directory_Tokens @@ -4911,6 +5331,387 @@ public function getOrganizationUnits() } } +class Google_Service_Directory_Privilege extends Google_Collection +{ + protected $collection_key = 'childPrivileges'; + protected $internal_gapi_mappings = array( + ); + protected $childPrivilegesType = 'Google_Service_Directory_Privilege'; + protected $childPrivilegesDataType = 'array'; + public $etag; + public $isOuScopable; + public $kind; + public $privilegeName; + public $serviceId; + public $serviceName; + + + public function setChildPrivileges($childPrivileges) + { + $this->childPrivileges = $childPrivileges; + } + public function getChildPrivileges() + { + return $this->childPrivileges; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setIsOuScopable($isOuScopable) + { + $this->isOuScopable = $isOuScopable; + } + public function getIsOuScopable() + { + return $this->isOuScopable; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPrivilegeName($privilegeName) + { + $this->privilegeName = $privilegeName; + } + public function getPrivilegeName() + { + return $this->privilegeName; + } + public function setServiceId($serviceId) + { + $this->serviceId = $serviceId; + } + public function getServiceId() + { + return $this->serviceId; + } + public function setServiceName($serviceName) + { + $this->serviceName = $serviceName; + } + public function getServiceName() + { + return $this->serviceName; + } +} + +class Google_Service_Directory_Privileges extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Directory_Privilege'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Directory_Role extends Google_Collection +{ + protected $collection_key = 'rolePrivileges'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $isSuperAdminRole; + public $isSystemRole; + public $kind; + public $roleDescription; + public $roleId; + public $roleName; + protected $rolePrivilegesType = 'Google_Service_Directory_RoleRolePrivileges'; + protected $rolePrivilegesDataType = 'array'; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setIsSuperAdminRole($isSuperAdminRole) + { + $this->isSuperAdminRole = $isSuperAdminRole; + } + public function getIsSuperAdminRole() + { + return $this->isSuperAdminRole; + } + public function setIsSystemRole($isSystemRole) + { + $this->isSystemRole = $isSystemRole; + } + public function getIsSystemRole() + { + return $this->isSystemRole; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRoleDescription($roleDescription) + { + $this->roleDescription = $roleDescription; + } + public function getRoleDescription() + { + return $this->roleDescription; + } + public function setRoleId($roleId) + { + $this->roleId = $roleId; + } + public function getRoleId() + { + return $this->roleId; + } + public function setRoleName($roleName) + { + $this->roleName = $roleName; + } + public function getRoleName() + { + return $this->roleName; + } + public function setRolePrivileges($rolePrivileges) + { + $this->rolePrivileges = $rolePrivileges; + } + public function getRolePrivileges() + { + return $this->rolePrivileges; + } +} + +class Google_Service_Directory_RoleAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $assignedTo; + public $etag; + public $kind; + public $orgUnitId; + public $roleAssignmentId; + public $roleId; + public $scopeType; + + + public function setAssignedTo($assignedTo) + { + $this->assignedTo = $assignedTo; + } + public function getAssignedTo() + { + return $this->assignedTo; + } + 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 setOrgUnitId($orgUnitId) + { + $this->orgUnitId = $orgUnitId; + } + public function getOrgUnitId() + { + return $this->orgUnitId; + } + public function setRoleAssignmentId($roleAssignmentId) + { + $this->roleAssignmentId = $roleAssignmentId; + } + public function getRoleAssignmentId() + { + return $this->roleAssignmentId; + } + public function setRoleId($roleId) + { + $this->roleId = $roleId; + } + public function getRoleId() + { + return $this->roleId; + } + public function setScopeType($scopeType) + { + $this->scopeType = $scopeType; + } + public function getScopeType() + { + return $this->scopeType; + } +} + +class Google_Service_Directory_RoleAssignments extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Directory_RoleAssignment'; + protected $itemsDataType = 'array'; + 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_Directory_RoleRolePrivileges extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privilegeName; + public $serviceId; + + + public function setPrivilegeName($privilegeName) + { + $this->privilegeName = $privilegeName; + } + public function getPrivilegeName() + { + return $this->privilegeName; + } + public function setServiceId($serviceId) + { + $this->serviceId = $serviceId; + } + public function getServiceId() + { + return $this->serviceId; + } +} + +class Google_Service_Directory_Roles extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Directory_Role'; + protected $itemsDataType = 'array'; + 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_Directory_Schema extends Google_Collection { protected $collection_key = 'fields'; diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index a0bf15d7f..9279c0e96 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -1005,6 +1005,7 @@ class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model public $groupByColumn; public $headerText; public $platformSource; + public $productReportPerspective; public $savedColumnName; public $startDate; @@ -1065,6 +1066,14 @@ public function getPlatformSource() { return $this->platformSource; } + public function setProductReportPerspective($productReportPerspective) + { + $this->productReportPerspective = $productReportPerspective; + } + public function getProductReportPerspective() + { + return $this->productReportPerspective; + } public function setSavedColumnName($savedColumnName) { $this->savedColumnName = $savedColumnName; diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index a41082e4b..fb45179ff 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -4454,6 +4454,8 @@ class Google_Service_Games_Player extends Google_Model protected $internal_gapi_mappings = array( ); public $avatarImageUrl; + public $bannerUrlLandscape; + public $bannerUrlPortrait; public $displayName; protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; protected $experienceInfoDataType = ''; @@ -4474,6 +4476,22 @@ public function getAvatarImageUrl() { return $this->avatarImageUrl; } + public function setBannerUrlLandscape($bannerUrlLandscape) + { + $this->bannerUrlLandscape = $bannerUrlLandscape; + } + public function getBannerUrlLandscape() + { + return $this->bannerUrlLandscape; + } + public function setBannerUrlPortrait($bannerUrlPortrait) + { + $this->bannerUrlPortrait = $bannerUrlPortrait; + } + public function getBannerUrlPortrait() + { + return $this->bannerUrlPortrait; + } public function setDisplayName($displayName) { $this->displayName = $displayName; diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 1d6853e4b..71126cf97 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -1161,6 +1161,8 @@ class Google_Service_GamesManagement_Player extends Google_Model protected $internal_gapi_mappings = array( ); public $avatarImageUrl; + public $bannerUrlLandscape; + public $bannerUrlPortrait; public $displayName; protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; protected $experienceInfoDataType = ''; @@ -1181,6 +1183,22 @@ public function getAvatarImageUrl() { return $this->avatarImageUrl; } + public function setBannerUrlLandscape($bannerUrlLandscape) + { + $this->bannerUrlLandscape = $bannerUrlLandscape; + } + public function getBannerUrlLandscape() + { + return $this->bannerUrlLandscape; + } + public function setBannerUrlPortrait($bannerUrlPortrait) + { + $this->bannerUrlPortrait = $bannerUrlPortrait; + } + public function getBannerUrlPortrait() + { + return $this->bannerUrlPortrait; + } public function setDisplayName($displayName) { $this->displayName = $displayName; diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 0e8b0da14..3d1d5da55 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -1455,6 +1455,7 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $lastName; public $localId; public $needConfirmation; + public $needEmail; public $nickName; public $oauthAccessToken; public $oauthAuthorizationCode; @@ -1620,6 +1621,14 @@ public function getNeedConfirmation() { return $this->needConfirmation; } + public function setNeedEmail($needEmail) + { + $this->needEmail = $needEmail; + } + public function getNeedEmail() + { + return $this->needEmail; + } public function setNickName($nickName) { $this->nickName = $nickName; diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index e95a737d3..2ffffba09 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -698,6 +698,7 @@ class Google_Service_Reseller_Customer extends Google_Model ); public $alternateEmail; public $customerDomain; + public $customerDomainVerified; public $customerId; public $kind; public $phoneNumber; @@ -722,6 +723,14 @@ public function getCustomerDomain() { return $this->customerDomain; } + public function setCustomerDomainVerified($customerDomainVerified) + { + $this->customerDomainVerified = $customerDomainVerified; + } + public function getCustomerDomainVerified() + { + return $this->customerDomainVerified; + } public function setCustomerId($customerId) { $this->customerId = $customerId; diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 02db61777..04229379d 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -3178,6 +3178,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; protected $backupConfigurationDataType = ''; public $crashSafeReplicationEnabled; + public $dataDiskSizeGb; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; public $databaseReplicationEnabled; @@ -3224,6 +3225,14 @@ public function getCrashSafeReplicationEnabled() { return $this->crashSafeReplicationEnabled; } + public function setDataDiskSizeGb($dataDiskSizeGb) + { + $this->dataDiskSizeGb = $dataDiskSizeGb; + } + public function getDataDiskSizeGb() + { + return $this->dataDiskSizeGb; + } public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index d588e10cf..2f85d7fd5 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -1614,9 +1614,9 @@ public function publish($accountId, $containerId, $containerVersionId, $optParam /** * Restores a Container Version. This will overwrite the container's current - * configuration (including its macros, rules and tags). The operation will not - * have any effect on the version that is being served (i.e. the published - * version). (versions.restore) + * configuration (including its variables, triggers and tags). The operation + * will not have any effect on the version that is being served (i.e. the + * published version). (versions.restore) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 1b646ae04..651088390 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -70,7 +70,7 @@ class Google_Service_YouTube extends Google_Service public $videoCategories; public $videos; public $watermarks; - + /** * Constructs the internal representation of the YouTube service. @@ -743,6 +743,33 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'bind_direct' => array( + 'path' => 'liveBroadcasts/bind/direct', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'streamId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'control' => array( 'path' => 'liveBroadcasts/control', 'httpMethod' => 'POST', @@ -2731,6 +2758,64 @@ public function bind($id, $part, $optParams = array()) return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); } + /** + * Binds a YouTube broadcast to a stream or removes an existing binding between + * a broadcast and a stream. A broadcast can only be bound to one video stream, + * though a video stream may be bound to more than one broadcast. + * (liveBroadcasts.bind_direct) + * + * @param string $id The id parameter specifies the unique ID of the broadcast + * that is being bound to a video stream. + * @param string $part The part parameter specifies a comma-separated list of + * one or more liveBroadcast resource properties that the API response will + * include. The part names that you can include in the parameter value are id, + * snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is required + * when a request specifies a value for the onBehalfOfContentOwner parameter, + * and it can only be used in conjunction with that parameter. In addition, the + * request must be authorized using a CMS account that is linked to the content + * owner that the onBehalfOfContentOwner parameter specifies. Finally, the + * channel that the onBehalfOfContentOwnerChannel parameter value specifies must + * be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * + * This parameter is intended for YouTube content partners that own and manage + * many different YouTube channels. It allows content owners to authenticate + * once and perform actions on behalf of the channel specified in the parameter + * value, without having to provide authentication credentials for each separate + * channel. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string streamId The streamId parameter specifies the unique ID of + * the video stream that is being bound to a broadcast. If this parameter is + * omitted, the API will remove any existing binding between the broadcast and a + * video stream. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function bind_direct($id, $part, $optParams = array()) + { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('bind_direct', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + /** * Controls the settings for a slate that can be displayed in the broadcast * stream. (liveBroadcasts.control) From 244e25f324202dbcd80ab8969a2f022e00307b9c Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Mon, 26 Oct 2015 15:58:51 -0700 Subject: [PATCH 0910/1274] Fix #709 - Don't attempt JSON parsing if alt=media requested --- src/Google/Http/REST.php | 4 ++-- tests/Google/Http/RESTTest.php | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 85fe61b82..b5468bf62 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -91,13 +91,13 @@ public static function decodeHttpResponse( ResponseInterface $response, RequestInterface $request = null ) { - $result = $response->json(); $body = (string) $response->getBody(); $code = $response->getStatusCode(); // retry strategy if ((intVal($code)) >= 300) { $errors = null; + $result = $response->json(); // Specific check for APIs which don't return error details, such as Blogger. if (isset($result['error']) && isset($result['error']['errors'])) { $errors = $result['error']['errors']; @@ -110,6 +110,6 @@ public static function decodeHttpResponse( return $body; } - return $result; + return $response->json(); } } diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 0197d3af8..8109cf17b 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -15,6 +15,7 @@ * limitations under the License. */ +use GuzzleHttp\Message\Request; use GuzzleHttp\Message\Response; use GuzzleHttp\Stream\Stream; @@ -47,6 +48,20 @@ public function testDecodeResponse() } } + public function testDecodeMediaResponse() + { + $client = $this->getClient(); + + $request = new Request('GET', 'http://www.example.com?alt=media'); + $headers = array(); + $stream = Stream::factory('thisisnotvalidjson'); + $response = new Response(200, $headers, $stream); + + $decoded = $this->rest->decodeHttpResponse($response, $request); + $this->assertEquals('thisisnotvalidjson', $decoded); + } + + /** @expectedException Google_Service_Exception */ public function testDecode500ResponseThrowsException() { From c6bd4367fc1887462a36ad368d873ef4ec25c731 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2015 10:50:18 -0700 Subject: [PATCH 0911/1274] Updated Pubsub.php This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info. --- src/Google/Service/Pubsub.php | 935 +++++++++++++++++++++------------- 1 file changed, 594 insertions(+), 341 deletions(-) diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index e4fc97c33..d6035ba37 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -16,14 +16,14 @@ */ /** - * Service definition for Pubsub (v1beta1). + * Service definition for Pubsub (v1). * *

* Provides reliable, many-to-many, asynchronous messaging between applications.

* *

* For more information about this service, see the API - * Documentation + * Documentation *

* * @author Google, Inc. @@ -37,8 +37,9 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $subscriptions; - public $topics; + public $projects_subscriptions; + public $projects_topics; + public $projects_topics_subscriptions; /** @@ -49,27 +50,39 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'pubsub/v1beta1/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://pubsub.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'pubsub'; - $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => 'subscriptions/acknowledge', + 'path' => 'v1/{+subscription}:acknowledge', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'create' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -79,7 +92,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -88,55 +101,106 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( - 'path' => 'subscriptions', + 'path' => 'v1/{+project}/subscriptions', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'modifyAckDeadline' => array( - 'path' => 'subscriptions/modifyAckDeadline', + 'path' => 'v1/{+subscription}:modifyAckDeadline', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'modifyPushConfig' => array( - 'path' => 'subscriptions/modifyPushConfig', + 'path' => 'v1/{+subscription}:modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'pull' => array( - 'path' => 'subscriptions/pull', + 'path' => 'v1/{+subscription}:pull', 'httpMethod' => 'POST', - 'parameters' => array(), - ),'pullBatch' => array( - 'path' => 'subscriptions/pullBatch', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => 'topics', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -146,7 +210,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -155,31 +219,92 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( - 'path' => 'topics', + 'path' => 'v1/{+project}/topics', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', + ), + ),'publish' => array( + 'path' => 'v1/{+topic}:publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), ), - ),'publish' => array( - 'path' => 'topics/publish', + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', - 'parameters' => array(), - ),'publishBatch' => array( - 'path' => 'topics/publishBatch', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+topic}/subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), ), ) ) @@ -188,6 +313,18 @@ public function __construct(Google_Client $client) } +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $projects = $pubsubService->projects; + * + */ +class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource +{ +} + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -196,60 +333,70 @@ public function __construct(Google_Client $client) * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges a particular received message: the Pub/Sub system can remove the - * given message from the subscription. Acknowledging a message whose Ack - * deadline has expired may succeed, but the message could have been already - * redelivered. Acknowledging a message more than once will not result in an - * error. This is only used for messages received via pull. + * Acknowledges the messages associated with the `ack_ids` in the + * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages + * from the subscription. Acknowledging a message whose ack deadline has expired + * may succeed, but such a message may be redelivered later. Acknowledging a + * message more than once will not result in an error. * (subscriptions.acknowledge) * + * @param string $subscription The subscription whose message is being + * acknowledged. * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params)); + return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); } /** - * Creates a subscription on a given topic for a given subscriber. If the - * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. - * - * If the name is not provided in the request, the server will assign a random - * name for this subscription on the same project as the topic. - * (subscriptions.create) + * Creates a subscription to a given topic for a given subscriber. If the + * subscription already exists, returns `ALREADY_EXISTS`. If the corresponding + * topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the + * request, the server will assign a random name for this subscription on the + * same project as the topic. (subscriptions.create) * + * @param string $name The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must + * start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus + * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in + * length, and it must not start with `"goog"`. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } /** * Deletes an existing subscription. All pending messages in the subscription - * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * (subscriptions.delete) + * are immediately dropped. Calls to `Pull` after deletion will return + * `NOT_FOUND`. After a subscription is deleted, a new one may be created with + * the same name, but the new one has no association with the old subscription, + * or its topic unless the same topic is specified. (subscriptions.delete) * * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** @@ -267,90 +414,136 @@ public function get($subscription, $optParams = array()) } /** - * Lists matching subscriptions. (subscriptions.listSubscriptions) + * Gets the access control policy for a `resource`. Is empty if the policy or + * the resource does not exist. (subscriptions.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * `projects/{project}`. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) * + * @param string $project The name of the cloud project that subscriptions + * belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last - * ListSubscriptionsResponse for continuation. - * @opt_param int maxResults Maximum number of subscriptions to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * `ListSubscriptionsResponse`; indicates that this is a continuation of a prior + * `ListSubscriptions` call, and that the system should return the next page of + * data. + * @opt_param int pageSize Maximum number of subscriptions to return. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listSubscriptions($optParams = array()) + public function listProjectsSubscriptions($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the Ack deadline for a message received from a pull request. - * (subscriptions.modifyAckDeadline) + * Modifies the ack deadline for a specific message. This method is useful to + * indicate that more time is needed to process a message by the subscriber, or + * to make the message available for redelivery if the processing was + * interrupted. (subscriptions.modifyAckDeadline) * + * @param string $subscription The name of the subscription. * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params)); + return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); } /** - * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an endpoint by clearing the PushConfig - * field in the request. Messages will be accumulated for delivery even if no - * push configuration is defined or while the configuration is modified. + * Modifies the `PushConfig` for a specified subscription. This may be used to + * change a push subscription to a pull one (signified by an empty `PushConfig`) + * or vice versa, or change the endpoint URL and other attributes of a push + * subscription. Messages will accumulate for delivery continuously through the + * call regardless of changes to the `PushConfig`. * (subscriptions.modifyPushConfig) * + * @param string $subscription The name of the subscription. * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params)); + return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); } /** - * Pulls a single message from the server. If return_immediately is true, and no - * messages are available in the subscription, this method returns - * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no - * messages are available in a reasonable amount of time (to reduce system - * load). (subscriptions.pull) + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The server may return `UNAVAILABLE` if + * there are too many concurrent pull requests pending for the given + * subscription. (subscriptions.pull) * + * @param string $subscription The subscription from which messages should be + * pulled. * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The system is free to return UNAVAILABLE - * if there are too many pull requests outstanding for the given subscription. - * (subscriptions.pullBatch) + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (subscriptions.setIamPolicy) * - * @param Google_PullBatchRequest $postBody + * @param string $resource REQUIRED: The resource for which policy is being + * specified. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullBatchResponse + * @return Google_Service_Pubsub_Policy */ - public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); } -} + /** + * Returns permissions that a caller has on the specified resource. + * (subscriptions.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. `resource` is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + } +} /** * The "topics" collection of methods. * Typical usage is: @@ -359,43 +552,49 @@ public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $opt * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * + * @param string $name The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs + * (`%`). It must be between 3 and 255 characters in length, and it must not + * start with `"goog"`. * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } /** - * Deletes the topic with the given name. Returns NOT_FOUND if the topic does + * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does * not exist. After a topic is deleted, a new topic may be created with the same - * name. (topics.delete) + * name; this is an entirely new topic with none of the old configuration or + * subscriptions. Existing subscriptions to this topic are not deleted, but + * their `topic` field is set to `_deleted-topic_`. (topics.delete) * * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** - * Gets the configuration of a topic. Since the topic only has the name - * attribute, this method is only useful to check the existence of a topic. If - * other attributes are added in the future, they will be returned here. - * (topics.get) + * Gets the configuration of a topic. (topics.get) * * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. @@ -409,50 +608,127 @@ public function get($topic, $optParams = array()) } /** - * Lists matching topics. (topics.listTopics) + * Gets the access control policy for a `resource`. Is empty if the policy or + * the resource does not exist. (topics.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * `projects/{project}`. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching topics. (topics.listProjectsTopics) * + * @param string $project The name of the cloud project that topics belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last ListTopicsResponse - * for continuation. - * @opt_param int maxResults Maximum number of topics to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * `ListTopicsResponse`; indicates that this is a continuation of a prior + * `ListTopics` call, and that the system should return the next page of data. + * @opt_param int pageSize Maximum number of topics to return. * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listTopics($optParams = array()) + public function listProjectsTopics($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. - * (topics.publish) + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does + * not exist. The message payload must not be empty; it must contain either a + * non-empty data field, or at least one attribute. (topics.publish) * + * @param string $topic The messages in the request will be published on this + * topic. * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PublishResponse + */ + public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + { + $params = array('topic' => $topic, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); + } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (topics.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which policy is being + * specified. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (topics.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. `resource` is usually specified as a path, such as, + * `projects/{project}`. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse */ - public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publish', array($params)); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $subscriptions = $pubsubService->subscriptions; + * + */ +class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource +{ /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. (topics.publishBatch) + * Lists the name of the subscriptions for this topic. + * (subscriptions.listProjectsTopicsSubscriptions) * - * @param Google_PublishBatchRequest $postBody + * @param string $topic The name of the topic that subscriptions are attached + * to. * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishBatchResponse + * + * @opt_param string pageToken The value returned by the last + * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a + * prior `ListTopicSubscriptions` call, and that the system should return the + * next page of data. + * @opt_param int pageSize Maximum number of subscription names to return. + * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse */ - public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) + public function listProjectsTopicsSubscriptions($topic, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); } } @@ -461,74 +737,88 @@ public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackId'; + protected $collection_key = 'ackIds'; + protected $internal_gapi_mappings = array( + ); + public $ackIds; + + + public function setAckIds($ackIds) + { + $this->ackIds = $ackIds; + } + public function getAckIds() + { + return $this->ackIds; + } +} + +class Google_Service_Pubsub_Binding extends Google_Collection +{ + protected $collection_key = 'members'; protected $internal_gapi_mappings = array( ); - public $ackId; - public $subscription; + public $members; + public $role; - public function setAckId($ackId) + public function setMembers($members) { - $this->ackId = $ackId; + $this->members = $members; } - public function getAckId() + public function getMembers() { - return $this->ackId; + return $this->members; } - public function setSubscription($subscription) + public function setRole($role) { - $this->subscription = $subscription; + $this->role = $role; } - public function getSubscription() + public function getRole() { - return $this->subscription; + return $this->role; } } -class Google_Service_Pubsub_Label extends Google_Model +class Google_Service_Pubsub_Empty extends Google_Model +{ +} + +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); - public $key; - public $numValue; - public $strValue; + public $nextPageToken; + protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionsDataType = 'array'; - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setNumValue($numValue) + public function setNextPageToken($nextPageToken) { - $this->numValue = $numValue; + $this->nextPageToken = $nextPageToken; } - public function getNumValue() + public function getNextPageToken() { - return $this->numValue; + return $this->nextPageToken; } - public function setStrValue($strValue) + public function setSubscriptions($subscriptions) { - $this->strValue = $strValue; + $this->subscriptions = $subscriptions; } - public function getStrValue() + public function getSubscriptions() { - return $this->strValue; + return $this->subscriptions; } } -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection +class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscription'; + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionDataType = 'array'; + public $subscriptions; public function setNextPageToken($nextPageToken) @@ -539,24 +829,24 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSubscription($subscription) + public function setSubscriptions($subscriptions) { - $this->subscription = $subscription; + $this->subscriptions = $subscriptions; } - public function getSubscription() + public function getSubscriptions() { - return $this->subscription; + return $this->subscriptions; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topic'; + protected $collection_key = 'topics'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicType = 'Google_Service_Pubsub_Topic'; - protected $topicDataType = 'array'; + protected $topicsType = 'Google_Service_Pubsub_Topic'; + protected $topicsDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -567,13 +857,13 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setTopic($topic) + public function setTopics($topics) { - $this->topic = $topic; + $this->topics = $topics; } - public function getTopic() + public function getTopics() { - return $this->topic; + return $this->topics; } } @@ -583,9 +873,7 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection protected $internal_gapi_mappings = array( ); public $ackDeadlineSeconds; - public $ackId; public $ackIds; - public $subscription; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -596,14 +884,6 @@ public function getAckDeadlineSeconds() { return $this->ackDeadlineSeconds; } - public function setAckId($ackId) - { - $this->ackId = $ackId; - } - public function getAckId() - { - return $this->ackId; - } public function setAckIds($ackIds) { $this->ackIds = $ackIds; @@ -612,14 +892,6 @@ public function getAckIds() { return $this->ackIds; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model @@ -628,7 +900,6 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; - public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -639,160 +910,106 @@ public function getPushConfig() { return $this->pushConfig; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection +class Google_Service_Pubsub_Policy extends Google_Collection { - protected $collection_key = 'messages'; + protected $collection_key = 'bindings'; protected $internal_gapi_mappings = array( ); - protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messagesDataType = 'array'; - public $topic; + protected $bindingsType = 'Google_Service_Pubsub_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + public $version; - public function setMessages($messages) + public function setBindings($bindings) { - $this->messages = $messages; + $this->bindings = $bindings; } - public function getMessages() + public function getBindings() { - return $this->messages; + return $this->bindings; } - public function setTopic($topic) + public function setEtag($etag) { - $this->topic = $topic; + $this->etag = $etag; } - public function getTopic() + public function getEtag() { - return $this->topic; + return $this->etag; } -} - -class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection -{ - protected $collection_key = 'messageIds'; - protected $internal_gapi_mappings = array( - ); - public $messageIds; - - - public function setMessageIds($messageIds) + public function setVersion($version) { - $this->messageIds = $messageIds; + $this->version = $version; } - public function getMessageIds() + public function getVersion() { - return $this->messageIds; + return $this->version; } } -class Google_Service_Pubsub_PublishRequest extends Google_Model +class Google_Service_Pubsub_PublishRequest extends Google_Collection { + protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $topic; + protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messagesDataType = 'array'; - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setTopic($topic) + public function setMessages($messages) { - $this->topic = $topic; + $this->messages = $messages; } - public function getTopic() + public function getMessages() { - return $this->topic; + return $this->messages; } } -class Google_Service_Pubsub_PubsubEvent extends Google_Model +class Google_Service_Pubsub_PublishResponse extends Google_Collection { + protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( ); - public $deleted; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $subscription; - public $truncated; + public $messageIds; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTruncated($truncated) + public function setMessageIds($messageIds) { - $this->truncated = $truncated; + $this->messageIds = $messageIds; } - public function getTruncated() + public function getMessageIds() { - return $this->truncated; + return $this->messageIds; } } -class Google_Service_Pubsub_PubsubMessage extends Google_Collection +class Google_Service_Pubsub_PubsubMessage extends Google_Model { - protected $collection_key = 'label'; protected $internal_gapi_mappings = array( ); + public $attributes; public $data; - protected $labelType = 'Google_Service_Pubsub_Label'; - protected $labelDataType = 'array'; public $messageId; - public function setData($data) + public function setAttributes($attributes) { - $this->data = $data; + $this->attributes = $attributes; } - public function getData() + public function getAttributes() { - return $this->data; + return $this->attributes; } - public function setLabel($label) + public function setData($data) { - $this->label = $label; + $this->data = $data; } - public function getLabel() + public function getData() { - return $this->label; + return $this->data; } public function setMessageId($messageId) { @@ -804,22 +1021,25 @@ public function getMessageId() } } -class Google_Service_Pubsub_PullBatchRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $maxEvents; + public $maxMessages; public $returnImmediately; - public $subscription; - public function setMaxEvents($maxEvents) + public function setMaxMessages($maxMessages) { - $this->maxEvents = $maxEvents; + $this->maxMessages = $maxMessages; } - public function getMaxEvents() + public function getMaxMessages() { - return $this->maxEvents; + return $this->maxMessages; } public function setReturnImmediately($returnImmediately) { @@ -829,68 +1049,64 @@ public function getReturnImmediately() { return $this->returnImmediately; } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } } -class Google_Service_Pubsub_PullBatchResponse extends Google_Collection +class Google_Service_Pubsub_PullResponse extends Google_Collection { - protected $collection_key = 'pullResponses'; + protected $collection_key = 'receivedMessages'; protected $internal_gapi_mappings = array( ); - protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; - protected $pullResponsesDataType = 'array'; + protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; + protected $receivedMessagesDataType = 'array'; - public function setPullResponses($pullResponses) + public function setReceivedMessages($receivedMessages) { - $this->pullResponses = $pullResponses; + $this->receivedMessages = $receivedMessages; } - public function getPullResponses() + public function getReceivedMessages() { - return $this->pullResponses; + return $this->receivedMessages; } } -class Google_Service_Pubsub_PullRequest extends Google_Model +class Google_Service_Pubsub_PushConfig extends Google_Model { protected $internal_gapi_mappings = array( ); - public $returnImmediately; - public $subscription; + public $attributes; + public $pushEndpoint; - public function setReturnImmediately($returnImmediately) + public function setAttributes($attributes) { - $this->returnImmediately = $returnImmediately; + $this->attributes = $attributes; } - public function getReturnImmediately() + public function getAttributes() { - return $this->returnImmediately; + return $this->attributes; } - public function setSubscription($subscription) + public function setPushEndpoint($pushEndpoint) { - $this->subscription = $subscription; + $this->pushEndpoint = $pushEndpoint; } - public function getSubscription() + public function getPushEndpoint() { - return $this->subscription; + return $this->pushEndpoint; } } -class Google_Service_Pubsub_PullResponse extends Google_Model +class Google_Service_Pubsub_PushConfigAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_ReceivedMessage extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; - protected $pubsubEventDataType = ''; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; public function setAckId($ackId) @@ -901,30 +1117,31 @@ public function getAckId() { return $this->ackId; } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { - $this->pubsubEvent = $pubsubEvent; + $this->message = $message; } - public function getPubsubEvent() + public function getMessage() { - return $this->pubsubEvent; + return $this->message; } } -class Google_Service_Pubsub_PushConfig extends Google_Model +class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $pushEndpoint; + protected $policyType = 'Google_Service_Pubsub_Policy'; + protected $policyDataType = ''; - public function setPushEndpoint($pushEndpoint) + public function setPolicy(Google_Service_Pubsub_Policy $policy) { - $this->pushEndpoint = $pushEndpoint; + $this->policy = $policy; } - public function getPushEndpoint() + public function getPolicy() { - return $this->pushEndpoint; + return $this->policy; } } @@ -973,6 +1190,42 @@ public function getTopic() } } +class Google_Service_Pubsub_TestIamPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Pubsub_TestIamPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + class Google_Service_Pubsub_Topic extends Google_Model { protected $internal_gapi_mappings = array( From fa14e1ef97290ba1f377b1861ad138a0d98a23f3 Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Thu, 29 Oct 2015 12:22:33 -0700 Subject: [PATCH 0912/1274] Prefer parameter definitions from API --- src/Google/Service/Resource.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 5df9e94b0..8b58f7d5a 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -127,9 +127,10 @@ public function call($name, $arguments, $expected_class = null) } $method['parameters'] = array_merge( - $method['parameters'], - $this->stackParameters + $this->stackParameters, + $method['parameters'] ); + foreach ($parameters as $key => $val) { if ($key != 'postBody' && ! isset($method['parameters'][$key])) { $this->client->getLogger()->error( From 4d21613ae204d27358ee2f2007e91369c41d05a1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2015 18:50:31 -0700 Subject: [PATCH 0913/1274] uses guzzle StreamHandler by default for AppEngine --- src/Google/Client.php | 12 +++++++++--- tests/Google/ClientTest.php | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index c62cd0d0e..1648971de 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -27,9 +27,10 @@ use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Collection; +use GuzzleHttp\Ring\Client\StreamHandler; use Psr\Log\LoggerInterface; use Monolog\Logger; -use Monolog\Handler\StreamHandler; +use Monolog\Handler\StreamHandler as MonologStreamHandler; /** * The Google API Client @@ -1004,7 +1005,7 @@ public function getLogger() protected function createDefaultLogger() { $logger = new Logger('google-api-php-client'); - $logger->pushHandler(new StreamHandler('php://stderr', Logger::NOTICE)); + $logger->pushHandler(new MonologStreamHandler('php://stderr', Logger::NOTICE)); return $logger; } @@ -1034,9 +1035,14 @@ protected function createDefaultHttpClient() { $options = [ 'base_url' => $this->config->get('base_path'), - 'defaults' => ['exceptions' => false] + 'defaults' => ['exceptions' => false], ]; + // set StreamHandler on AppEngine by default + if ($this->isAppEngine()) { + $options['handler'] = new StreamHandler(); + } + return new Client($options); } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index d335ea24f..8b65d9e18 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -216,6 +216,21 @@ public function testAppEngineAutoConfig() $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; $client = new Google_Client(); $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); + + // check Stream Handler is used + $http = $client->getHttpClient(); + $class = new ReflectionClass(get_class($http)); + $property = $class->getProperty('fsm'); + $property->setAccessible(true); + $fsm = $property->getValue($http); + + $class = new ReflectionClass(get_class($fsm)); + $property = $class->getProperty('handler'); + $property->setAccessible(true); + $handler = $property->getValue($fsm); + + $this->assertInstanceOf('GuzzleHttp\Ring\Client\StreamHandler', $handler); + unset($_SERVER['SERVER_SOFTWARE']); } From 778b1dcd462ee87ce9a15de98ec78914ceb113f3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 2 Nov 2015 13:15:46 -0800 Subject: [PATCH 0914/1274] fix fetchAccessTokenWithAssertionCredentials --- src/Google/Client.php | 121 +++++++++++++++++++++--------------- tests/Google/ClientTest.php | 32 ++++++++++ 2 files changed, 102 insertions(+), 51 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 1648971de..0d5a2533f 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -28,6 +28,7 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Collection; use GuzzleHttp\Ring\Client\StreamHandler; +use GuzzleHttp\Stream\Stream; use Psr\Log\LoggerInterface; use Monolog\Logger; use Monolog\Handler\StreamHandler as MonologStreamHandler; @@ -196,12 +197,15 @@ public function refreshTokenWithAssertion() * @param $assertionCredentials optional. * @return void */ - public function fetchAccessTokenWithAssertion() + public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) { - if (is_null($this->config->get('signing_key'))) { - throw new LogicException( - 'config parameter "signing_key" must be set to' - . ' refresh a token with assertion' + if (!$this->isUsingApplicationDefaultCredentials()) { + throw new DomainException( + 'set the JSON service account credentials using' + . ' Google_Client::setAuthConfig or set the path to your JSON file' + . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' + . ' and call Google_Client::useApplicationDefaultCredentials to' + . ' refresh a token with assertion.' ); } @@ -210,17 +214,14 @@ public function fetchAccessTokenWithAssertion() 'OAuth2 access token refresh with Signed JWT assertion grants.' ); - $auth = $this->getOAuth2Service(); - $auth->setGrantType(OAuth2::JWT_URN); - $auth->setAudience(self::OAUTH2_TOKEN_URI); - $auth->setScope($this->getScopes()); + $credentials = $this->createApplicationDefaultCredentials(); - $creds = $auth->fetchAuthToken($this->getHttpClient()); - if ($creds && isset($creds['access_token'])) { - $this->setAccessToken($creds); + $accessToken = $credentials->fetchAuthToken($authHttp); + if ($accessToken && isset($accessToken['access_token'])) { + $this->setAccessToken($accessToken); } - return $creds; + return $accessToken; } /** @@ -339,27 +340,14 @@ public function authorize(ClientInterface $http, ClientInterface $authHttp = nul // 2. Check for API Key // 3a. Check for an Access Token // 3b. If access token exists but is expired, try to refresh it - if ($this->config->get('use_application_default_credentials')) { - $scopes = $this->prepareScopes(); - if ($sub = $this->config->get('subject')) { - // for service account domain-wide authority (impersonating a user) - // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount - if (!$creds = CredentialsLoader::fromEnv($scopes)) { - $creds = CredentialsLoader::fromWellKnownFile($scopes); - } - if (!$creds instanceof ServiceAccountCredentials) { - throw new DomainException('domain-wide authority requires service account credentials'); - } - $creds->setSub($sub); - $subscriber = new AuthTokenFetcher($creds, array(), $this->cache, $authHttp); - } else { - $subscriber = ApplicationDefaultCredentials::getFetcher( - $scopes, - $authHttp, - array(), - $this->cache - ); - } + if ($this->isUsingApplicationDefaultCredentials()) { + $credentials = $this->createApplicationDefaultCredentials($authHttp); + $subscriber = new AuthTokenFetcher( + $credentials, + [], + $this->cache, + $authHttp + ); $authIdentifier = 'google_auth'; } elseif ($key = $this->config->get('developer_key')) { // if a developer key is set, authorize using that @@ -369,9 +357,14 @@ public function authorize(ClientInterface $http, ClientInterface $authHttp = nul $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token if ($this->isAccessTokenExpired() && isset($token['refresh_token'])) { - $subscriber = $this->createUserRefreshCredentials( + $credentials = $this->createUserRefreshCredentials( $scopes, - $token['refresh_token'], + $token['refresh_token'] + ); + $subscriber = new AuthTokenFetcher( + $credentials, + [], + $this->getCache(), $authHttp ); $authIdentifier = 'google_auth'; @@ -864,10 +857,11 @@ public function setAuthConfig($config) // application default credentials $this->useApplicationDefaultCredentials(); - // overwrite APPLICATION_DEFAULT_CREDENTIALS with this config - $tmpFile = tempnam(sys_get_temp_dir(), 'appcreds'); - file_put_contents($tmpFile, json_encode($config)); - putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpFile); + // set the information from the config + $this->setClientId($config['client_id']); + $this->config->set('client_email', $config['client_email']); + $this->config->set('signing_key', $config['private_key']); + $this->config->set('signing_algorithm', 'HS256'); } elseif (isset($config[$key])) { // old-style $this->setClientId($config[$key]['client_id']); @@ -1060,11 +1054,41 @@ protected function createDefaultAuthHttpClient($http = null) return new Client($options); } - private function createUserRefreshCredentials( - $scope, - $refreshToken, - ClientInterface $http = null - ) { + private function createApplicationDefaultCredentials() + { + $scopes = $this->prepareScopes(); + $sub = $this->config->get('subject'); + $signingKey = $this->config->get('signing_key'); + + // create credentials using values supplied in setAuthConfig + if ($signingKey) { + $serviceAccountCredentials = array( + 'client_id' => $this->config->get('client_id'), + 'client_email' => $this->config->get('client_email'), + 'private_key' => $signingKey, + 'type' => 'service_account', + ); + $keyStream = Stream::factory(json_encode($serviceAccountCredentials)); + $credentials = CredentialsLoader::makeCredentials($scopes, $keyStream); + } else { + $credentials = ApplicationDefaultCredentials::getCredentials($scopes); + } + + // for service account domain-wide authority (impersonating a user) + // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + if ($sub) { + if (!$credentials instanceof ServiceAccountCredentials) { + throw new DomainException('domain-wide authority requires service account credentials'); + } + + $credentials->setSub($sub); + } + + return $credentials; + } + + private function createUserRefreshCredentials($scope, $refreshToken) + { $creds = array_filter( array( 'client_id' => $this->getClientId(), @@ -1073,11 +1097,6 @@ private function createUserRefreshCredentials( ) ); - return new AuthTokenFetcher( - new UserRefreshCredentials($scope, $creds), - [], - $this->getCache(), - $http - ); + return new UserRefreshCredentials($scope, $creds); } } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 8b65d9e18..2c3b9dac4 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -386,4 +386,36 @@ public function testRefreshTokenSetsValues() $token = $client->getAccessToken(); $this->assertEquals($token['id_token'], "ID_TOKEN"); } + + /** + * Test fetching an access token with assertion credentials + * using "useApplicationDefaultCredentials" + */ + public function testFetchAccessTokenWithAssertionFromEnv() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('access_token', $token); + } + + /** + * Test fetching an access token with assertion credentials + * using "setAuthConfig" + */ + public function testFetchAccessTokenWithAssertionFromFile() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->setAuthConfig(getenv('GOOGLE_APPLICATION_CREDENTIALS')); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('access_token', $token); + } } From be537c3371105177d2a7abc16613f4f2e1b71e4c Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Mon, 2 Nov 2015 17:18:10 -0800 Subject: [PATCH 0915/1274] Don't try to convert to model if alt=media present --- src/Google/Service/Resource.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 8b58f7d5a..d539668fd 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -130,7 +130,7 @@ public function call($name, $arguments, $expected_class = null) $this->stackParameters, $method['parameters'] ); - + foreach ($parameters as $key => $val) { if ($key != 'postBody' && ! isset($method['parameters'][$key])) { $this->client->getLogger()->error( @@ -219,6 +219,10 @@ public function call($name, $arguments, $expected_class = null) $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); } + if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { + $expected_class = null; + } + return $this->client->execute($request, $expected_class); } From 3fd8bd4b6321a71082b96752532265b9a9007fa7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 4 Nov 2015 11:56:20 -0800 Subject: [PATCH 0916/1274] adds tests and refactoring for when alt=media --- src/Google/Http/REST.php | 12 ++-- tests/Google/Service/ResourceTest.php | 95 +++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 7 deletions(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index b5468bf62..c91ec972d 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -94,10 +94,13 @@ public static function decodeHttpResponse( $body = (string) $response->getBody(); $code = $response->getStatusCode(); + // return raw response when "alt" is "media" + $isJson = !($request && 'media' == $request->getQuery()->get('alt')); + $result = $isJson ? $response->json() : $body; + // retry strategy if ((intVal($code)) >= 300) { $errors = null; - $result = $response->json(); // Specific check for APIs which don't return error details, such as Blogger. if (isset($result['error']) && isset($result['error']['errors'])) { $errors = $result['error']['errors']; @@ -105,11 +108,6 @@ public static function decodeHttpResponse( throw new Google_Service_Exception($body, $code, null, $errors); } - // return raw response when "alt" is "media" - if ($request && $request->getQuery()->get('alt') == 'media') { - return $body; - } - - return $response->json(); + return $result; } } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index cb002b299..7c77a2d73 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -18,6 +18,10 @@ * under the License. */ +use GuzzleHttp\Message\Request; +use GuzzleHttp\Message\Response; +use GuzzleHttp\Stream\Stream; + class Test_Google_Service extends Google_Service { public function __construct(Google_Client $client) @@ -193,4 +197,95 @@ public function testAppEngineSslCerts() $this->client->getHttpClient()->getDefaultOption('verify') ); } + + public function testNoExpectedClassForAltMediaWithHttpSuccess() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + $body = Stream::factory('thisisnotvalidjson'); + $response = new Response(200, [], $body); + + $http = $this->getMockBuilder("GuzzleHttp\Client") + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->any()) + ->method('createRequest') + ->will($this->returnValue($request)); + $client = new Google_Client(); + $client->setHttpClient($http); + $service = new Test_Google_Service($client); + + // set up mock objects + $resource = new Google_Service_Resource( + $service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + $expectedClass = 'ThisShouldBeIgnored'; + $decoded = $resource->call('testMethod', $arguments, $expectedClass); + $this->assertEquals('thisisnotvalidjson', $decoded); + } + + public function testNoExpectedClassForAltMediaWithHttpFail() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + $body = Stream::factory('thisisnotvalidjson'); + $response = new Response(300, [], $body); + + $http = $this->getMockBuilder("GuzzleHttp\Client") + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $http->expects($this->any()) + ->method('createRequest') + ->will($this->returnValue(new Request('GET', '/?alt=media'))); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + $client = new Google_Client(); + $client->setHttpClient($http); + $service = new Test_Google_Service($client); + + // set up mock objects + $resource = new Google_Service_Resource( + $service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + $expectedClass = 'ThisShouldBeIgnored'; + $decoded = $resource->call('testMethod', $arguments, $expectedClass); + $this->fail('should have thrown exception'); + } catch (Google_Service_Exception $e) { + $this->assertEquals('thisisnotvalidjson', $e->getMessage()); + } + } } From 200a8698275f367500d9fb467fc90e6b7bd258b5 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 3 Nov 2015 14:13:35 -0800 Subject: [PATCH 0917/1274] adds composer support in README and adds autoload back --- README.md | 33 ++++++++++++++++++++++++++++++++- src/Google/autoload.php | 21 +++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/Google/autoload.php diff --git a/README.md b/README.md index 610be9f12..6acf783f5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,38 @@ http://developers.google.com/api-client-library/php ## Installation ## -For the latest installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). +You can use **Composer** or simply **Download the Release** + +### Composer + +The preferred method is via [composer](https://getcomposer.org). Follow the +[installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have +composer installed. + +Once composer is installed, execute the following command in your project root to install this library: + +```sh +composer require google/apiclient:^2.0.0@RC +``` + +Finally, be sure to include the autoloader: + +```php +require_once '/path/to/your-project/vendor/autoload.php'; +``` + +### Download the Release + +If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/google/google-api-php-client/releases) page lists all stable versions. Download any file +with the name `google-api-php-client-[RELEASE_NAME].zip` for a package including this library and its dependencies. + +Uncompress the zip file you download, and include the autoloader in your project: + +```php +require_once '/path/to/google-api-php-client/vendor/autoload.php'; +``` + +For additional installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). ## Basic Example ## See the examples/ directory for examples of the key client features. You can diff --git a/src/Google/autoload.php b/src/Google/autoload.php new file mode 100644 index 000000000..8b493010e --- /dev/null +++ b/src/Google/autoload.php @@ -0,0 +1,21 @@ + Date: Wed, 4 Nov 2015 15:30:36 -0800 Subject: [PATCH 0918/1274] bump google auth to v0.4 and add JWT3.0 support as a result --- composer.json | 3 ++- src/Google/AccessToken/Verify.php | 16 +++++++++++++--- tests/Google/AccessToken/VerifyTest.php | 14 ++++++++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a2031f8c8..e5735498d 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,8 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "v0.3", + "google/auth": "~v0.4", + "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", "guzzlehttp/guzzle": "5.2.*" diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 19dccfe56..3086d770f 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -54,6 +54,7 @@ public function __construct(ClientInterface $http = null, CacheInterface $cache $this->http = $http; $this->cache = $cache; + $this->jwt = $this->getJwtService(); } /** @@ -74,14 +75,14 @@ public function verifyIdToken($idToken, $audience = null) // Check signature $certs = $this->getFederatedSignonCerts(); foreach ($certs as $cert) { - $modulus = new BigInteger(JWT::urlsafeB64Decode($cert['n']), 256); - $exponent = new BigInteger(JWT::urlsafeB64Decode($cert['e']), 256); + $modulus = new BigInteger($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new BigInteger($this->jwt->urlsafeB64Decode($cert['e']), 256); $rsa = new RSA(); $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); try { - $payload = JWT::decode( + $payload = $this->jwt->decode( $idToken, $rsa->getPublicKey(), array('RS256') @@ -185,4 +186,13 @@ private function getFederatedSignOnCerts() return $certs['keys']; } + + private function getJwtService() + { + if (class_exists('\Firebase\JWT\JWT')) { + return new \Firebase\JWT\JWT; + } + + return new \JWT; + } } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index db34967a7..7befe9d5e 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -33,6 +33,7 @@ public function testValidateIdToken() { $this->checkToken(); + $jwt = $this->getJwtService(); $client = $this->getClient(); $token = $client->getAccessToken(); if ($client->isAccessTokenExpired()) { @@ -41,7 +42,7 @@ public function testValidateIdToken() $segments = explode('.', $token['id_token']); $this->assertEquals(3, count($segments)); // Extract the client ID in this case as it wont be set on the test client. - $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify(); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertTrue(isset($payload['sub'])); @@ -51,10 +52,19 @@ public function testValidateIdToken() // caching for this test to make sense. Not sure how to do that // at the moment. $client = $this->getClient(); - $data = json_decode(JWT::urlSafeB64Decode($segments[1])); + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify(); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertTrue(isset($payload['sub'])); $this->assertTrue(strlen($payload['sub']) > 0); } + + private function getJwtService() + { + if (class_exists('\Firebase\JWT\JWT')) { + return new \Firebase\JWT\JWT; + } + + return new \JWT; + } } From da06e033bf9940d5901da0818f2ef050e2042908 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 5 Nov 2015 09:09:40 -0800 Subject: [PATCH 0919/1274] ensures json errors are not thrown --- src/Google/Http/REST.php | 14 +++++++++++++- tests/Google/Http/RESTTest.php | 10 ++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index c91ec972d..d11d81670 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -19,6 +19,7 @@ use GuzzleHttp\Message\ResponseInterface; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; +use GuzzleHttp\Exception\ParseException; /** * This class implements the RESTful transport of apiServiceRequest()'s @@ -93,10 +94,21 @@ public static function decodeHttpResponse( ) { $body = (string) $response->getBody(); $code = $response->getStatusCode(); + $result = null; // return raw response when "alt" is "media" $isJson = !($request && 'media' == $request->getQuery()->get('alt')); - $result = $isJson ? $response->json() : $body; + + // set the result to the body if it's not set to anything else + if ($isJson) { + try { + $result = $response->json(); + } catch (ParseException $e) { + $result = $body; + } + } else { + $result = $body; + } // retry strategy if ((intVal($code)) >= 300) { diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 8109cf17b..22664fb13 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -119,4 +119,14 @@ public function tesProperErrorFormatting() $response = new Response(401, array(), $stream); $this->rest->decodeHttpResponse($response); } + + /** + * @expectedException Google_Service_Exception + */ + public function testNotJson404Error() + { + $stream = Stream::factory('Not Found'); + $response = new Response(404, array(), $stream); + $this->rest->decodeHttpResponse($response); + } } From 06d1b98f48600f6bc2f0cc7005a6905a8f6dcce8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 6 Nov 2015 09:24:02 -0800 Subject: [PATCH 0920/1274] fixes batch requests for POST --- src/Google/Http/Batch.php | 36 ++++++++++++++++-------- tests/Google/Http/BatchTest.php | 49 ++++++++++++++++++++++++--------- 2 files changed, 60 insertions(+), 25 deletions(-) diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 54b4ad7e4..e53aedf8c 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -61,26 +61,38 @@ public function execute() { $body = ''; $classes = array(); + $batchHttpTemplate = <<requests as $key => $request) { - $request->addHeaders( - [ - 'Content-Type' => 'application/http', - 'Content-Transfer-Encoding' => 'binary', - 'MIME-Version' => '1.0', - 'Content-ID' => $key, - ] - ); - $body .= "--{$this->boundary}"; - $body .= Request::getHeadersAsString($request) . "\n\n"; - $body .= sprintf( + $firstLine = sprintf( '%s %s HTTP/%s', $request->getMethod(), $request->getResource(), $request->getProtocolVersion() ); - $body .= "\n\n"; + + $content = (string) $request->getBody(); + + $body .= sprintf( + $batchHttpTemplate, + $this->boundary, + $key, + $firstLine, + Request::getHeadersAsString($request), + $content ? "\n".$content : '' + ); $classes['response-' . $key] = $request->getHeader('X-Php-Expected-Class'); } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 69df11365..b285a2b6b 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -20,20 +20,18 @@ class Google_Http_BatchTest extends BaseTest { - public $plus; - public function testBatchRequestWithAuth() { $this->checkToken(); $client = $this->getClient(); $batch = new Google_Http_Batch($client); - $this->plus = new Google_Service_Plus($client); + $plus = new Google_Service_Plus($client); $client->setUseBatch(true); - $batch->add($this->plus->people->get('me'), 'key1'); - $batch->add($this->plus->people->get('me'), 'key2'); - $batch->add($this->plus->people->get('me'), 'key3'); + $batch->add($plus->people->get('me'), 'key1'); + $batch->add($plus->people->get('me'), 'key2'); + $batch->add($plus->people->get('me'), 'key3'); $result = $batch->execute(); $this->assertTrue(isset($result['response-key1'])); @@ -45,12 +43,37 @@ public function testBatchRequest() { $client = $this->getClient(); $batch = new Google_Http_Batch($client); - $this->plus = new Google_Service_Plus($client); + $plus = new Google_Service_Plus($client); + + $client->setUseBatch(true); + $batch->add($plus->people->get('+LarryPage'), 'key1'); + $batch->add($plus->people->get('+LarryPage'), 'key2'); + $batch->add($plus->people->get('+LarryPage'), 'key3'); + + $result = $batch->execute(); + $this->assertTrue(isset($result['response-key1'])); + $this->assertTrue(isset($result['response-key2'])); + $this->assertTrue(isset($result['response-key3'])); + } + + public function testBatchRequestWithPostBody() + { + $this->checkToken(); + + $client = $this->getClient(); + $batch = new Google_Http_Batch($client); + $shortener = new Google_Service_Urlshortener($client); + $url1 = new Google_Service_Urlshortener_Url; + $url2 = new Google_Service_Urlshortener_Url; + $url3 = new Google_Service_Urlshortener_Url; + $url1->setLongUrl('http://brentertainment.com'); + $url2->setLongUrl('http://morehazards.com'); + $url3->setLongUrl('http://github.com/bshaffer'); $client->setUseBatch(true); - $batch->add($this->plus->people->get('+LarryPage'), 'key1'); - $batch->add($this->plus->people->get('+LarryPage'), 'key2'); - $batch->add($this->plus->people->get('+LarryPage'), 'key3'); + $batch->add($shortener->url->insert($url1), 'key1'); + $batch->add($shortener->url->insert($url2), 'key2'); + $batch->add($shortener->url->insert($url3), 'key3'); $result = $batch->execute(); $this->assertTrue(isset($result['response-key1'])); @@ -62,11 +85,11 @@ public function testInvalidBatchRequest() { $client = $this->getClient(); $batch = new Google_Http_Batch($client); - $this->plus = new Google_Service_Plus($client); + $plus = new Google_Service_Plus($client); $client->setUseBatch(true); - $batch->add($this->plus->people->get('123456789987654321'), 'key1'); - $batch->add($this->plus->people->get('+LarryPage'), 'key2'); + $batch->add($plus->people->get('123456789987654321'), 'key1'); + $batch->add($plus->people->get('+LarryPage'), 'key2'); $result = $batch->execute(); $this->assertTrue(isset($result['response-key2'])); From d575658fd804338c48c4f61e264172b47906e39a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 9 Nov 2015 19:52:04 -0800 Subject: [PATCH 0921/1274] removes v for packagist verification --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e5735498d..d3130c7f2 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "~v0.4", + "google/auth": "~0.4", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 062d24246c43d922179fc7bb7e017c3385a21297 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 16 Nov 2015 11:20:22 -0800 Subject: [PATCH 0922/1274] add banner to README to clarify version docs discrepancy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6acf783f5..b33b27e09 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ # Google APIs Client Library for PHP # +> ### NOTE: If you arrived here from `developers.google.com`, you should be using the [v1-branch](https://github.com/google/google-api-php-client/tree/v1-master) of this repo + ## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. From 9ce584943448ce31a8dfc53232434c5206e3b948 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 16 Nov 2015 12:00:36 -0800 Subject: [PATCH 0923/1274] fixes #574 - checks for cachedir trailing slash --- src/Google/Cache/File.php | 4 +++- tests/Google/CacheTest.php | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 92b09ae9d..bdbf1f547 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -151,7 +151,9 @@ private function getCacheDir($file, $forWrite) // use the first 2 characters of the hash as a directory prefix // this should prevent slowdowns due to huge directory listings // and thus give some basic amount of scalability - $storageDir = $this->path . '/' . substr(md5($file), 0, 2); + $dirHash = substr(md5($file), 0, 2); + // trim the directory separator from the path to prevent double separators + $storageDir = rtrim($this->path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $dirHash; if ($forWrite && ! is_dir($storageDir)) { if (! mkdir($storageDir, 0700, true)) { $this->log( diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index 9d9b1bfb5..8b3352fb3 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -30,6 +30,16 @@ public function testFile() $this->getSetDelete($cache); } + public function testFileWithTrailingSlash() + { + $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; + $cache = new Google_Cache_File($dir); + $cache->set('foo', 'bar'); + $this->assertEquals($cache->get('foo'), 'bar'); + + $this->getSetDelete($cache); + } + public function testNull() { $cache = new Google_Cache_Null(); From 177a911f2a00ee7240399b40e3525fd994ef0565 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Fri, 11 Dec 2015 18:56:39 +0100 Subject: [PATCH 0924/1274] Remove unused parameter $storageFile in unlock method --- src/Google/Cache/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index bdbf1f547..dc2a7404e 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -212,7 +212,7 @@ private function acquireLock($type, $storageFile) return true; } - public function unlock($storageFile) + public function unlock() { if ($this->fh) { flock($this->fh, LOCK_UN); From b98f7137cdbde3d27968581dd67fc0c5f16b05d1 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Fri, 11 Dec 2015 22:12:25 +0100 Subject: [PATCH 0925/1274] Remove unlock parameter from usages --- src/Google/Cache/File.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index dc2a7404e..b9d35a1c3 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -73,7 +73,7 @@ public function get($key, $expiration = false) if ($this->acquireReadLock($storageFile)) { if (filesize($storageFile) > 0) { $data = fread($this->fh, filesize($storageFile)); - $data = unserialize($data); + unserialize($data); } else { $this->log( 'debug', @@ -81,7 +81,7 @@ public function get($key, $expiration = false) array('file' => $storageFile) ); } - $this->unlock($storageFile); + $this->unlock(); } $this->log( @@ -100,8 +100,8 @@ public function set($key, $value) // We serialize the whole request object, since we don't only want the // responseContent but also the postBody used, headers, size, etc. $data = serialize($value); - $result = fwrite($this->fh, $data); - $this->unlock($storageFile); + fwrite($this->fh, $data); + $this->unlock(); $this->log( 'debug', From bc2f60271ef1042aaef8c8d3ca238613478fe4e9 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 21 Dec 2015 17:21:28 -0800 Subject: [PATCH 0926/1274] force 0.4 for google-auth --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d3130c7f2..b3a4721a8 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "~0.4", + "google/auth": "0.4", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 20e6a625a0dbf0f41815baa565549d9af39c5586 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 28 Dec 2015 09:59:10 -0800 Subject: [PATCH 0927/1274] fix examples & cache tests --- examples/idtoken.php | 3 +-- examples/large-file-upload.php | 3 +-- examples/multi-api.php | 3 +-- examples/simple-file-upload.php | 3 +-- examples/url-shortener.php | 3 +-- src/Google/Cache/File.php | 2 +- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/examples/idtoken.php b/examples/idtoken.php index 465c64f22..1f8a027a4 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -24,8 +24,7 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - echo missingOAuth2CredentialsWarning(); - exit; + return missingOAuth2CredentialsWarning(); } /************************************************ diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index 641308a68..eb1ece8c6 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -24,8 +24,7 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - echo missingOAuth2CredentialsWarning(); - exit; + return missingOAuth2CredentialsWarning(); } /************************************************ diff --git a/examples/multi-api.php b/examples/multi-api.php index c6f9193e9..bc56f92f0 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -25,8 +25,7 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - echo missingOAuth2CredentialsWarning(); - exit; + return missingOAuth2CredentialsWarning(); } /************************************************ diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index 60fbf3a3d..eab6a11e1 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -24,8 +24,7 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - echo missingOAuth2CredentialsWarning(); - exit; + return missingOAuth2CredentialsWarning(); } /************************************************ diff --git a/examples/url-shortener.php b/examples/url-shortener.php index 17cbd407e..cb740a94c 100644 --- a/examples/url-shortener.php +++ b/examples/url-shortener.php @@ -24,8 +24,7 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - echo missingOAuth2CredentialsWarning(); - exit; + return missingOAuth2CredentialsWarning(); } /************************************************ diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index b9d35a1c3..c7743b744 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -73,7 +73,7 @@ public function get($key, $expiration = false) if ($this->acquireReadLock($storageFile)) { if (filesize($storageFile) > 0) { $data = fread($this->fh, filesize($storageFile)); - unserialize($data); + $data = unserialize($data); } else { $this->log( 'debug', From 6dc8190553988377554d54048bd086b89c57a37b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 28 Dec 2015 10:00:05 -0800 Subject: [PATCH 0928/1274] add support for guzzle 6 --- .travis.yml | 25 +- composer.json | 6 +- src/Google/AccessToken/Revoke.php | 30 +- src/Google/AccessToken/Verify.php | 4 +- src/Google/AuthHandler/AuthHandlerFactory.php | 42 +++ src/Google/AuthHandler/Guzzle5AuthHandler.php | 86 ++++++ src/Google/AuthHandler/Guzzle6AuthHandler.php | 90 ++++++ src/Google/Client.php | 242 +++++++-------- src/Google/Http/Batch.php | 42 +-- src/Google/Http/MediaFileUpload.php | 72 ++--- src/Google/Http/Pool.php | 96 ------ src/Google/Http/REST.php | 57 ++-- src/Google/Service/Resource.php | 42 +-- tests/BaseTest.php | 50 +++- tests/Google/AccessToken/RevokeTest.php | 57 ++-- tests/Google/AccessToken/VerifyTest.php | 23 +- tests/Google/ClientTest.php | 283 ++++++++++++------ tests/Google/Http/MediaFileUploadTest.php | 200 +++++++++++++ tests/Google/Http/MediaFuleUploadTest.php | 86 ------ tests/Google/Http/PoolTest.php | 63 ---- tests/Google/Http/RESTTest.php | 41 +-- tests/Google/Service/ResourceTest.php | 74 ++--- tests/Google/Task/RunnerTest.php | 31 +- 23 files changed, 1036 insertions(+), 706 deletions(-) create mode 100644 src/Google/AuthHandler/AuthHandlerFactory.php create mode 100644 src/Google/AuthHandler/Guzzle5AuthHandler.php create mode 100644 src/Google/AuthHandler/Guzzle6AuthHandler.php delete mode 100644 src/Google/Http/Pool.php create mode 100644 tests/Google/Http/MediaFileUploadTest.php delete mode 100644 tests/Google/Http/MediaFuleUploadTest.php delete mode 100644 tests/Google/Http/PoolTest.php diff --git a/.travis.yml b/.travis.yml index ca334e740..11b8eeddd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,9 @@ env: global: - MEMCACHE_HOST=127.0.0.1 - MEMCACHE_PORT=11211 + matrix: + - GUZZLE_VERSION=~5.2 + - GUZZLE_VERSION=~6.0 sudo: false @@ -14,27 +17,31 @@ cache: directories: - $HOME/.composer/cache +php: + - 5.4 + - 5.5 + - 5.6 + - 7.0 + - hhvm + +# Guzzle 6.0 is not compatible with PHP 5.4 matrix: - fast_finish: true - include: + exclude: - php: 5.4 - - php: 5.5 - - php: 5.6 - env: PHPCS=true - - php: hhvm + env: GUZZLE_VERSION=~6.0 before_install: - composer self-update install: - composer install + - composer require guzzlehttp/guzzle:$GUZZLE_VERSION before_script: - - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true script: - vendor/bin/phpunit - - if [[ "$PHPCS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi + - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi + diff --git a/composer.json b/composer.json index b3a4721a8..304b21c26 100644 --- a/composer.json +++ b/composer.json @@ -7,11 +7,13 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.4", + "google/auth": "0.5", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", - "guzzlehttp/guzzle": "5.2.*" + "guzzlehttp/guzzle": "~5.2|~6.0", + "guzzlehttp/psr7": "1.2.*", + "psr/http-message": "1.0.*" }, "require-dev": { "phpunit/phpunit": "~4", diff --git a/src/Google/AccessToken/Revoke.php b/src/Google/AccessToken/Revoke.php index 9ae7e553d..807a6d90f 100644 --- a/src/Google/AccessToken/Revoke.php +++ b/src/Google/AccessToken/Revoke.php @@ -16,8 +16,10 @@ * limitations under the License. */ -use GuzzleHttp\Client; +use Google\Auth\HttpHandler\HttpHandlerFactory; use GuzzleHttp\ClientInterface; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; /** * Wrapper around Google Access Tokens which provides convenience functions @@ -36,10 +38,6 @@ class Google_AccessToken_Revoke */ public function __construct(ClientInterface $http = null) { - if (is_null($http)) { - $http = new Client(); - } - $this->http = $http; } @@ -53,17 +51,25 @@ public function __construct(ClientInterface $http = null) public function revokeToken(array $token) { if (isset($token['refresh_token'])) { - $tokenString = $token['refresh_token']; + $tokenString = $token['refresh_token']; } else { - $tokenString = $token['access_token']; + $tokenString = $token['access_token']; } - $request = $this->http->createRequest('POST', Google_Client::OAUTH2_REVOKE_URI); - $request->addHeader('Cache-Control', 'no-store'); - $request->addHeader('Content-Type', 'application/x-www-form-urlencoded'); - $request->getBody()->replaceFields(array('token' => $tokenString)); + $body = Psr7\stream_for(http_build_query(array('token' => $tokenString))); + $request = new Request( + 'POST', + Google_Client::OAUTH2_REVOKE_URI, + [ + 'Cache-Control' => 'no-store', + 'Content-Type' => 'application/x-www-form-urlencoded', + ], + $body + ); + + $httpHandler = HttpHandlerFactory::build($this->http); - $response = $this->http->send($request); + $response = $httpHandler($request); if ($response->getStatusCode() == 200) { return true; } diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 3086d770f..49271fd99 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -73,7 +73,7 @@ public function verifyIdToken($idToken, $audience = null) } // Check signature - $certs = $this->getFederatedSignonCerts(); + $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { $modulus = new BigInteger($this->jwt->urlsafeB64Decode($cert['n']), 256); $exponent = new BigInteger($this->jwt->urlsafeB64Decode($cert['e']), 256); @@ -152,7 +152,7 @@ private function retrieveCertsFromLocation($url) $response = $this->http->get($url); if ($response->getStatusCode() == 200) { - return $response->json(); + return json_decode((string) $response->getBody(), true); } throw new Google_Exception( sprintf( diff --git a/src/Google/AuthHandler/AuthHandlerFactory.php b/src/Google/AuthHandler/AuthHandlerFactory.php new file mode 100644 index 000000000..4f2155a63 --- /dev/null +++ b/src/Google/AuthHandler/AuthHandlerFactory.php @@ -0,0 +1,42 @@ +cache = $cache; + } + + public function attachCredentials(ClientInterface $http, CredentialsLoader $credentials) + { + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = HttpHandlerFactory::build($authHttp); + $subscriber = new AuthTokenSubscriber( + $credentials, + [], + $this->cache, + $authHttpHandler + ); + + $http->setDefaultOption('auth', 'google_auth'); + $http->getEmitter()->attach($subscriber); + + return $http; + } + + public function attachToken(ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use ($token) { + return $token['access_token']; + }; + + $subscriber = new ScopedAccessTokenSubscriber( + $tokenFunc, + $scopes, + [], + $this->cache + ); + + $http->setDefaultOption('auth', 'scoped'); + $http->getEmitter()->attach($subscriber); + + return $http; + } + + public function attachKey(ClientInterface $http, $key) + { + $subscriber = new SimpleSubscriber(['key' => $key]); + + $http->setDefaultOption('auth', 'simple'); + $http->getEmitter()->attach($subscriber); + + return $http; + } + + private function createAuthHttp(ClientInterface $http) + { + return new Client( + [ + 'base_url' => $http->getBaseUrl(), + 'defaults' => [ + 'exceptions' => true, + 'verify' => $http->getDefaultOption('verify'), + 'proxy' => $http->getDefaultOption('proxy'), + ] + ] + ); + } +} diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php new file mode 100644 index 000000000..c0a24cd8f --- /dev/null +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -0,0 +1,90 @@ +cache = $cache; + } + + public function attachCredentials(ClientInterface $http, CredentialsLoader $credentials) + { + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = HttpHandlerFactory::build($authHttp); + $middleware = new AuthTokenMiddleware( + $credentials, + [], + $this->cache, + $authHttpHandler + ); + + $config = $http->getConfig(); + $config['handler']->push($middleware); + $config['auth'] = 'google_auth'; + $http = new Client($config); + + return $http; + } + + public function attachToken(ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use ($token) { + return $token['access_token']; + }; + + $middleware = new ScopedAccessTokenMiddleware( + $tokenFunc, + $scopes, + [], + $this->cache + ); + + $config = $http->getConfig(); + $config['handler']->push($middleware); + $config['auth'] = 'scoped'; + $http = new Client($config); + + return $http; + } + + public function attachKey(ClientInterface $http, $key) + { + $middleware = new SimpleMiddleware(['key' => $key]); + + $config = $http->getConfig(); + $config['handler']->push($middleware); + $config['auth'] = 'simple'; + $http = new Client($config); + + return $http; + } + + private function createAuthHttp(ClientInterface $http) + { + return new Client( + [ + 'base_uri' => $http->getConfig('base_uri'), + 'exceptions' => true, + 'verify' => $http->getConfig('verify'), + 'proxy' => $http->getConfig('proxy'), + ] + ); + } +} diff --git a/src/Google/Client.php b/src/Google/Client.php index 0d5a2533f..ba1768d7b 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -16,19 +16,17 @@ */ use Google\Auth\ApplicationDefaultCredentials; -use Google\Auth\AuthTokenFetcher; use Google\Auth\CacheInterface; use Google\Auth\CredentialsLoader; +use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; -use Google\Auth\ScopedAccessToken; -use Google\Auth\ServiceAccountCredentials; -use Google\Auth\Simple; -use Google\Auth\UserRefreshCredentials; +use Google\Auth\Credentials\ServiceAccountCredentials; +use Google\Auth\Credentials\UserRefreshCredentials; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; -use GuzzleHttp\Collection; use GuzzleHttp\Ring\Client\StreamHandler; -use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Psr7; +use Psr\Http\Message\RequestInterface; use Psr\Log\LoggerInterface; use Monolog\Logger; use Monolog\Handler\StreamHandler as MonologStreamHandler; @@ -92,8 +90,7 @@ class Google_Client */ public function __construct($config = array()) { - $this->config = Collection::fromConfig( - $config, + $this->config = array_merge( [ 'application_name' => '', @@ -115,6 +112,9 @@ public function __construct($config = array()) // fetch the ApplicationDefaultCredentials, if applicable // @see https://developers.google.com/identity/protocols/application-default-credentials 'use_application_default_credentials' => false, + 'signing_key' => null, + 'signing_algorithm' => null, + 'subject' => null, // Other OAuth2 parameters. 'hd' => '', @@ -129,7 +129,8 @@ public function __construct($config = array()) // Task Runner retry configuration // @see Google_Task_Runner 'retry' => array(), - ] + ], + $config ); } @@ -172,7 +173,8 @@ public function fetchAccessTokenWithAuthCode($code) $auth->setCode($code); $auth->setRedirectUri($this->getRedirectUri()); - $creds = $auth->fetchAuthToken($this->getHttpClient()); + $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = time(); $this->setAccessToken($creds); @@ -216,7 +218,8 @@ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) $credentials = $this->createApplicationDefaultCredentials(); - $accessToken = $credentials->fetchAuthToken($authHttp); + $httpHandler = HttpHandlerFactory::build($authHttp); + $accessToken = $credentials->fetchAuthToken($httpHandler); if ($accessToken && isset($accessToken['access_token'])) { $this->setAccessToken($accessToken); } @@ -255,7 +258,8 @@ public function fetchAccessTokenWithRefreshToken($refreshToken = null) $auth = $this->getOAuth2Service(); $auth->setRefreshToken($refreshToken); - $creds = $auth->fetchAuthToken($this->getHttpClient()); + $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = time(); $this->setAccessToken($creds); @@ -281,33 +285,33 @@ public function createAuthUrl($scope = null) } // only accept one of prompt or approval_prompt - $approvalPrompt = $this->config->get('prompt') + $approvalPrompt = $this->config['prompt'] ? null - : $this->config->get('approval_prompt'); + : $this->config['approval_prompt']; // include_granted_scopes should be string "true", string "false", or null - $includeGrantedScopes = $this->config->get('include_granted_scopes') === null + $includeGrantedScopes = $this->config['include_granted_scopes'] === null ? null - : var_export($this->config->get('include_granted_scopes'), true); + : var_export($this->config['include_granted_scopes'], true); $params = array_filter( [ - 'access_type' => $this->config->get('access_type'), + 'access_type' => $this->config['access_type'], 'approval_prompt' => $approvalPrompt, - 'hd' => $this->config->get('hd'), + 'hd' => $this->config['hd'], 'include_granted_scopes' => $includeGrantedScopes, - 'login_hint' => $this->config->get('login_hint'), - 'openid.realm' => $this->config->get('openid.realm'), - 'prompt' => $this->config->get('prompt'), + 'login_hint' => $this->config['login_hint'], + 'openid.realm' => $this->config['openid.realm'], + 'prompt' => $this->config['prompt'], 'response_type' => 'code', 'scope' => $scope, - 'state' => $this->config->get('state'), + 'state' => $this->config['state'], ] ); // If the list of scopes contains plus.login, add request_visible_actions // to auth URL. - $rva = $this->config->get('request_visible_actions'); + $rva = $this->config['request_visible_actions']; if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { $params['request_visible_actions'] = $rva; } @@ -325,15 +329,14 @@ public function createAuthUrl($scope = null) * @param GuzzleHttp\ClientInterface $authHttp an http client for authentication. * @return void */ - public function authorize(ClientInterface $http, ClientInterface $authHttp = null) + public function authorize(ClientInterface $http = null, ClientInterface $authHttp = null) { - $subscriber = null; - $authIdentifier = null; - - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $authHttp ?: $this->createDefaultAuthHttpClient($http); + $credentials = null; + $token = null; + $scopes = null; + if (is_null($http)) { + $http = $this->getHttpClient(); + } // These conditionals represent the decision tree for authentication // 1. Check for Application Default Credentials @@ -341,18 +344,7 @@ public function authorize(ClientInterface $http, ClientInterface $authHttp = nul // 3a. Check for an Access Token // 3b. If access token exists but is expired, try to refresh it if ($this->isUsingApplicationDefaultCredentials()) { - $credentials = $this->createApplicationDefaultCredentials($authHttp); - $subscriber = new AuthTokenFetcher( - $credentials, - [], - $this->cache, - $authHttp - ); - $authIdentifier = 'google_auth'; - } elseif ($key = $this->config->get('developer_key')) { - // if a developer key is set, authorize using that - $subscriber = new Simple(['key' => $key]); - $authIdentifier = 'simple'; + $credentials = $this->createApplicationDefaultCredentials(); } elseif ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token @@ -361,32 +353,17 @@ public function authorize(ClientInterface $http, ClientInterface $authHttp = nul $scopes, $token['refresh_token'] ); - $subscriber = new AuthTokenFetcher( - $credentials, - [], - $this->getCache(), - $authHttp - ); - $authIdentifier = 'google_auth'; - } else { - $subscriber = new ScopedAccessToken( - function ($scopes) use ($token) { - return $token['access_token']; - }, - (array) $scopes, - [] - ); - $authIdentifier = 'scoped'; } } - if ($subscriber) { - $http->setDefaultOption('auth', $authIdentifier); - $http->getEmitter()->attach($subscriber); - $this->getLogger()->log( - 'info', - sprintf('Added listener for auth type "%s"', $authIdentifier) - ); + $authHandler = $this->getAuthHandler(); + + if ($credentials) { + $http = $authHandler->attachCredentials($http, $credentials); + } elseif ($token) { + $http = $authHandler->attachToken($http, $token, (array) $scopes); + } elseif ($key = $this->config['developer_key']) { + $http = $authHandler->attachKey($http, $key); } return $http; @@ -401,7 +378,7 @@ function ($scopes) use ($token) { */ public function useApplicationDefaultCredentials($useAppCreds = true) { - $this->config->set('use_application_default_credentials', $useAppCreds); + $this->config['use_application_default_credentials'] = $useAppCreds; } /** @@ -412,7 +389,7 @@ public function useApplicationDefaultCredentials($useAppCreds = true) */ public function isUsingApplicationDefaultCredentials() { - return $this->config->get('use_application_default_credentials'); + return $this->config['use_application_default_credentials']; } /** @@ -507,12 +484,12 @@ public function setAuth($auth) */ public function setClientId($clientId) { - $this->config->set('client_id', $clientId); + $this->config['client_id'] = $clientId; } public function getClientId() { - return $this->config->get('client_id'); + return $this->config['client_id']; } /** @@ -521,12 +498,12 @@ public function getClientId() */ public function setClientSecret($clientSecret) { - $this->config->set('client_secret', $clientSecret); + $this->config['client_secret'] = $clientSecret; } public function getClientSecret() { - return $this->config->get('client_secret'); + return $this->config['client_secret']; } /** @@ -535,12 +512,12 @@ public function getClientSecret() */ public function setRedirectUri($redirectUri) { - $this->config->set('redirect_uri', $redirectUri); + $this->config['redirect_uri'] = $redirectUri; } public function getRedirectUri() { - return $this->config->get('redirect_uri'); + return $this->config['redirect_uri']; } /** @@ -550,7 +527,7 @@ public function getRedirectUri() */ public function setState($state) { - $this->config->set('state', $state); + $this->config['state'] = $state; } /** @@ -560,7 +537,7 @@ public function setState($state) */ public function setAccessType($accessType) { - $this->config->set('access_type', $accessType); + $this->config['access_type'] = $accessType; } /** @@ -570,7 +547,7 @@ public function setAccessType($accessType) */ public function setApprovalPrompt($approvalPrompt) { - $this->config->set('approval_prompt', $approvalPrompt); + $this->config['approval_prompt'] = $approvalPrompt; } /** @@ -579,7 +556,7 @@ public function setApprovalPrompt($approvalPrompt) */ public function setLoginHint($loginHint) { - $this->config->set('login_hint', $loginHint); + $this->config['login_hint'] = $loginHint; } /** @@ -588,7 +565,7 @@ public function setLoginHint($loginHint) */ public function setApplicationName($applicationName) { - $this->config->set('application_name', $applicationName); + $this->config['application_name'] = $applicationName; } /** @@ -604,7 +581,7 @@ public function setRequestVisibleActions($requestVisibleActions) if (is_array($requestVisibleActions)) { $requestVisibleActions = join(" ", $requestVisibleActions); } - $this->config->set('request_visible_actions', $requestVisibleActions); + $this->config['request_visible_actions'] = $requestVisibleActions; } /** @@ -614,7 +591,7 @@ public function setRequestVisibleActions($requestVisibleActions) */ public function setDeveloperKey($developerKey) { - $this->config->set('developer_key', $developerKey); + $this->config['developer_key'] = $developerKey; } /** @@ -625,7 +602,7 @@ public function setDeveloperKey($developerKey) */ public function setHostedDomain($hd) { - $this->config->set('hd', $hd); + $this->config['hd'] = $hd; } /** * Set the prompt hint. Valid values are none, consent and select_account. @@ -635,7 +612,7 @@ public function setHostedDomain($hd) */ public function setPrompt($prompt) { - $this->config->set('prompt', $prompt); + $this->config['prompt'] = $prompt; } /** * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth @@ -645,7 +622,7 @@ public function setPrompt($prompt) */ public function setOpenidRealm($realm) { - $this->config->set('openid.realm', $realm); + $this->config['openid.realm'] = $realm; } /** * If this is provided with the value true, and the authorization request is @@ -655,7 +632,7 @@ public function setOpenidRealm($realm) */ public function setIncludeGrantedScopes($include) { - $this->config->set('include_granted_scopes', $include); + $this->config['include_granted_scopes'] = $include; } /** @@ -761,28 +738,24 @@ public function prepareScopes() /** * Helper method to execute deferred HTTP requests. * - * @param $request GuzzleHttp\Message\RequestInterface|Google_Http_Batch + * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch * @throws Google_Exception - * @return object of the type of the expected class or array. + * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. */ - public function execute($request, $expectedClass = null) + public function execute(RequestInterface $request, $expectedClass = null) { - $request->setHeader( + $request = $request->withHeader( 'User-Agent', - $this->config->get('application_name') + $this->config['application_name'] . " " . self::USER_AGENT_SUFFIX . $this->getLibraryVersion() ); - $http = $this->getHttpClient(); + // call the authorize method + // this is where most of the grunt work is done + $http = $this->authorize(); - $result = Google_Http_REST::execute($http, $request, $this->config['retry']); - $expectedClass = $expectedClass ?: $request->getHeader('X-Php-Expected-Class'); - if ($expectedClass) { - $result = new $expectedClass($result); - } - - return $result; + return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']); } /** @@ -810,12 +783,12 @@ public function isAppEngine() public function setConfig($name, $value) { - $this->config->set($name, $value); + $this->config[$name] = $value; } public function getConfig($name, $default = null) { - return $this->config->get($name) ?: $default; + return isset($this->config[$name]) ? $this->config[$name] : $default; } /** @@ -859,9 +832,9 @@ public function setAuthConfig($config) // set the information from the config $this->setClientId($config['client_id']); - $this->config->set('client_email', $config['client_email']); - $this->config->set('signing_key', $config['private_key']); - $this->config->set('signing_algorithm', 'HS256'); + $this->config['client_email'] = $config['client_email']; + $this->config['signing_key'] = $config['private_key']; + $this->config['signing_algorithm'] = 'HS256'; } elseif (isset($config[$key])) { // old-style $this->setClientId($config[$key]['client_id']); @@ -886,7 +859,7 @@ public function setAuthConfig($config) */ public function setSubject($subject) { - $this->config->set('subject', $subject); + $this->config['subject'] = $subject; } /** @@ -933,9 +906,9 @@ protected function createOAuth2Service() 'authorizationUri' => self::OAUTH2_AUTH_URL, 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, 'redirectUri' => $this->getRedirectUri(), - 'issuer' => $this->config->get('client_id'), - 'signingKey' => $this->config->get('signing_key'), - 'signingAlgorithm' => $this->config->get('signing_algorithm'), + 'issuer' => $this->config['client_id'], + 'signingKey' => $this->config['signing_key'], + 'signingAlgorithm' => $this->config['signing_algorithm'], ] ); @@ -1027,48 +1000,42 @@ public function getHttpClient() protected function createDefaultHttpClient() { - $options = [ - 'base_url' => $this->config->get('base_path'), - 'defaults' => ['exceptions' => false], - ]; - - // set StreamHandler on AppEngine by default - if ($this->isAppEngine()) { - $options['handler'] = new StreamHandler(); + $options = ['exceptions' => false]; + + $version = ClientInterface::VERSION; + if ('5' === $version[0]) { + $options = [ + 'base_url' => $this->config['base_path'], + 'defaults' => $options, + ]; + if ($this->isAppEngine()) { + // set StreamHandler on AppEngine by default + $options['handler'] = new StreamHandler(); + $options['defaults']['verify'] = '/etc/ca-certificates.crt'; + } + } else { + // guzzle 6 + $options['base_uri'] = $this->config['base_path']; } return new Client($options); } - protected function createDefaultAuthHttpClient($http = null) - { - $options = [ - 'base_url' => $this->config->get('base_path'), - 'defaults' => [ - 'exceptions' => true, - 'verify' => $http ? $http->getDefaultOption('verify') : true, - 'proxy' => $http ? $http->getDefaultOption('proxy') : null, - ] - ]; - - return new Client($options); - } - private function createApplicationDefaultCredentials() { $scopes = $this->prepareScopes(); - $sub = $this->config->get('subject'); - $signingKey = $this->config->get('signing_key'); + $sub = $this->config['subject']; + $signingKey = $this->config['signing_key']; // create credentials using values supplied in setAuthConfig if ($signingKey) { $serviceAccountCredentials = array( - 'client_id' => $this->config->get('client_id'), - 'client_email' => $this->config->get('client_email'), + 'client_id' => $this->config['client_id'], + 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', ); - $keyStream = Stream::factory(json_encode($serviceAccountCredentials)); + $keyStream = Psr7\stream_for(json_encode($serviceAccountCredentials)); $credentials = CredentialsLoader::makeCredentials($scopes, $keyStream); } else { $credentials = ApplicationDefaultCredentials::getCredentials($scopes); @@ -1087,6 +1054,11 @@ private function createApplicationDefaultCredentials() return $credentials; } + protected function getAuthHandler() + { + return Google_AuthHandler_AuthHandlerFactory::build($this->getCache()); + } + private function createUserRefreshCredentials($scope, $refreshToken) { $creds = array_filter( diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index e53aedf8c..b08eb6535 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -15,11 +15,11 @@ * limitations under the License. */ -use GuzzleHttp\Message\Request; -use GuzzleHttp\Message\Response; -use GuzzleHttp\Message\RequestInterface; -use GuzzleHttp\Message\ResponseInterface; -use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; /** * Class to handle batched requests to the Google API service. @@ -79,22 +79,27 @@ public function execute() $firstLine = sprintf( '%s %s HTTP/%s', $request->getMethod(), - $request->getResource(), + $request->getRequestTarget(), $request->getProtocolVersion() ); $content = (string) $request->getBody(); + $headers = ''; + foreach ($request->getHeaders() as $name => $values) { + $headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values)); + } + $body .= sprintf( $batchHttpTemplate, $this->boundary, $key, $firstLine, - Request::getHeadersAsString($request), + $headers, $content ? "\n".$content : '' ); - $classes['response-' . $key] = $request->getHeader('X-Php-Expected-Class'); + $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); } $body .= "--{$this->boundary}--"; @@ -104,23 +109,22 @@ public function execute() 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => strlen($body), ); - $request = $this->client->getHttpClient()->createRequest( + + $request = new Request( 'POST', $url, - [ - 'headers' => $headers, - 'body' => Stream::factory($body), - ] + $headers, + $body ); - $response = $this->client->getHttpClient()->send($request); + $response = $this->client->execute($request); return $this->parseResponse($response, $classes); } public function parseResponse(ResponseInterface $response, $classes = array()) { - $contentType = $response->getHeader('content-type'); + $contentType = $response->getHeaderLine('content-type'); $contentType = explode(';', $contentType); $boundary = false; foreach ($contentType as $part) { @@ -135,6 +139,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) $body = str_replace("--$boundary--", "--$boundary", $body); $parts = explode("--$boundary", $body); $responses = array(); + $requests = array_values($this->requests); foreach ($parts as $i => $part) { $part = trim($part); @@ -150,7 +155,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) $response = new Response( $status, $partHeaders, - Stream::factory($partBody) + Psr7\stream_for($partBody) ); // Need content id. @@ -161,10 +166,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) } try { - $response = Google_Http_REST::decodeHttpResponse($response); - if (isset($classes[$key])) { - $response = new $classes[$key]($response); - } + $response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]); } catch (Google_Service_Exception $e) { // Store the exception as the response, so successful responses // can be processed. diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 74b837f89..72a6eeaf8 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -15,9 +15,10 @@ * limitations under the License. */ -use GuzzleHttp\Message\Request; -use GuzzleHttp\Stream\Stream; -use GuzzleHttp\Url; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Uri; +use Psr\Http\Message\RequestInterface; /** * Manage large file uploads, which may be media but can be any type @@ -53,7 +54,7 @@ class Google_Http_MediaFileUpload /** @var Google_Client */ private $client; - /** @var Google_Http_Request */ + /** @var Psr\Http\Message\RequestInterface */ private $request; /** @var string */ @@ -74,7 +75,7 @@ class Google_Http_MediaFileUpload */ public function __construct( Google_Client $client, - $request, + RequestInterface $request, $mimeType, $data, $resumable = false, @@ -133,7 +134,7 @@ public function nextChunk($chunk = false) 'PUT', $resumeUri, $headers, - Stream::factory($chunk) + Psr7\stream_for($chunk) ); return $this->makePutRequest($request); @@ -157,19 +158,18 @@ public function getHttpResultCode() * @return false|mixed false when the upload is unfinished or the decoded http response * */ - private function makePutRequest(Request $request) + private function makePutRequest(RequestInterface $request) { - $http = $this->client->getHttpClient(); - $response = $http->send($request); + $response = $this->client->execute($request); $this->httpResultCode = $response->getStatusCode(); if (308 == $this->httpResultCode) { // Track the amount uploaded. - $range = explode('-', $response->getHeader('range')); + $range = explode('-', $response->getHeaderLine('range')); $this->progress = $range[1] + 1; // Allow for changing upload URLs. - $location = $response->getHeader('location'); + $location = $response->getHeaderLine('location'); if ($location) { $this->resumeUri = $location; } @@ -178,14 +178,7 @@ private function makePutRequest(Request $request) return false; } - $result = $response->json(); - $expectedClass = $this->request->getHeader('X-Php-Expected-Class'); - - if ($expectedClass) { - $result = new $expectedClass($result); - } - - return $result; + return Google_Http_REST::decodeHttpResponse($response, $this->request); } /** @@ -199,9 +192,9 @@ public function resume($resumeUri) 'content-range' => "bytes */$this->size", 'content-length' => 0, ); - $httpRequest = new Google_Http_Request( - $this->resumeUri, + $httpRequest = new Request( 'PUT', + $this->resumeUri, $headers ); @@ -209,24 +202,28 @@ public function resume($resumeUri) } /** - * @return array|bool + * @return Psr\Http\Message\RequestInterface $request * @visible for testing */ private function process() { $this->transformToUploadUrl(); + $request = $this->request; $postBody = ''; $contentType = false; - $meta = (string) $this->request->getBody(); + $meta = (string) $request->getBody(); $meta = is_string($meta) ? json_decode($meta, true) : $meta; $uploadType = $this->getUploadType($meta); - $this->request->getQuery()->set('uploadType', $uploadType); + $request = $request->withUri( + Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType) + ); + $mimeType = $this->mimeType ? $this->mimeType : - $this->request->getHeader('content-type'); + $request->getHeaderLine('content-type'); if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { $contentType = $mimeType; @@ -250,13 +247,13 @@ private function process() $postBody = $related; } - $this->request->setBody(Stream::factory($postBody)); + $request = $request->withBody(Psr7\stream_for($postBody)); if (isset($contentType) && $contentType) { - $this->request->setHeader('content-type', $contentType); + $request = $request->withHeader('content-type', $contentType); } - return $this->request; + return $this->request = $request; } /** @@ -303,12 +300,12 @@ private function fetchResumeUri() 'expect' => '', ); foreach ($headers as $key => $value) { - $this->request->setHeader($key, $value); + $this->request = $this->request->withHeader($key, $value); } } - $response = $this->client->getHttpClient()->send($this->request); - $location = $response->getHeader('location'); + $response = $this->client->execute($this->request, false); + $location = $response->getHeaderLine('location'); $code = $response->getStatusCode(); if (200 == $code && true == $location) { @@ -316,7 +313,7 @@ private function fetchResumeUri() } $message = $code; - $body = $response->json(); + $body = json_decode((string) $this->request->getBody(), true); if (isset($body['error']['errors'])) { $message .= ': '; foreach ($body['error']['errors'] as $error) { @@ -333,17 +330,22 @@ private function fetchResumeUri() private function transformToUploadUrl() { - $parts = parse_url($this->request->getUrl()); + $parts = parse_url((string) $this->request->getUri()); if (!isset($parts['path'])) { $parts['path'] = ''; } $parts['path'] = '/upload' . $parts['path']; - $url = Url::fromString(Url::buildUrl($parts)); - $this->request->setUrl($url); + $uri = Uri::fromParts($parts); + $this->request = $this->request->withUri($uri); } public function setChunkSize($chunkSize) { $this->chunkSize = $chunkSize; } + + public function getRequest() + { + return $this->request; + } } diff --git a/src/Google/Http/Pool.php b/src/Google/Http/Pool.php deleted file mode 100644 index f8ef527e6..000000000 --- a/src/Google/Http/Pool.php +++ /dev/null @@ -1,96 +0,0 @@ -client = $client; - } - - public function add(RequestInterface $request, $key = false) - { - if (false == $key) { - $key = mt_rand(); - } - - $this->requests[$key] = $request; - } - - public function execute() - { - $responses = Pool::batch($this->client->getHttpClient(), $this->requests); - - return $this->parseResponse($responses); - } - - protected function parseResponse(BatchResults $responses) - { - $batchResponses = array(); - $requestKeys = array_keys($this->requests); - $i = 0; - $j = 0; - while ($i < count($responses)) { - $key = 'response-'.$requestKeys[$j]; - if ($this->isRedirect($responses[$i])) { - $batchResponses[$key.'-redirect'] = $responses[$i]; - $i++; - } - $response = $responses[$i]; - if ( - $response instanceof ResponseInterface && - $response->getStatusCode() < 300 && - $class = $this->requests[$requestKeys[$j]]->getHeader('X-Php-Expected-Class') - ) { - $response = new $class($response->json()); - } - $batchResponses[$key] = $response; - $i++; - $j++; - } - - return $batchResponses; - } - - private function isRedirect($request) - { - // Guzzle returns exceptions instead of request objects for batch requests - // when "exceptions" is set to "true" - if ($request instanceof \Exception) { - return false; - } - - $location = $request->getHeader('Location'); - - return in_array($request->getStatusCode(), array(201, 301, 302, 303, 307, 308)) - && !empty($location); - } -} diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index d11d81670..741ede25f 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -15,11 +15,11 @@ * limitations under the License. */ -use GuzzleHttp\Message\RequestInterface; -use GuzzleHttp\Message\ResponseInterface; +use Google\Auth\HttpHandler\HttpHandlerFactory; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Exception\ParseException; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; /** * This class implements the RESTful transport of apiServiceRequest()'s @@ -27,11 +27,11 @@ class Google_Http_REST { /** - * Executes a GuzzleHttp\Message\Request and (if applicable) automatically retries + * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * * @param Google_Client $client - * @param GuzzleHttp\Message\Request $req + * @param Psr\Http\Message\RequestInterface $req * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) @@ -39,14 +39,15 @@ class Google_Http_REST public static function execute( ClientInterface $client, RequestInterface $request, + $expectedClass = null, $config = array(), $retryMap = null ) { $runner = new Google_Task_Runner( $config, - sprintf('%s %s', $request->getMethod(), $request->getUrl()), + sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), array(get_class(), 'doExecute'), - array($client, $request) + array($client, $request, $expectedClass) ); if (!is_null($retryMap)) { @@ -57,18 +58,19 @@ public static function execute( } /** - * Executes a GuzzleHttp\Message\RequestInterface + * Executes a Psr\Http\Message\RequestInterface * * @param Google_Client $client - * @param GuzzleHttp\Message\RequestInterface $request + * @param Psr\Http\Message\RequestInterface $request * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ - public static function doExecute(ClientInterface $client, RequestInterface $request) + public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) { try { - $response = $client->send($request); + $httpHandler = HttpHandlerFactory::build($client); + $response = $httpHandler($request); } catch (RequestException $e) { // if Guzzle throws an exception, catch it and handle the response if (!$e->hasResponse()) { @@ -77,33 +79,34 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ $response = $e->getResponse(); } - return self::decodeHttpResponse($response, $request); + return self::decodeHttpResponse($response, $request, $expectedClass); } /** * Decode an HTTP Response. * @static * @throws Google_Service_Exception - * @param GuzzleHttp\Message\RequestInterface $response The http response to be decoded. - * @param GuzzleHttp\Message\ResponseInterface $response + * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. + * @param Psr\Http\Message\ResponseInterface $response * @return mixed|null */ public static function decodeHttpResponse( ResponseInterface $response, - RequestInterface $request = null + RequestInterface $request = null, + $expectedClass = null ) { $body = (string) $response->getBody(); $code = $response->getStatusCode(); $result = null; // return raw response when "alt" is "media" - $isJson = !($request && 'media' == $request->getQuery()->get('alt')); + $isJson = !($request && 'media' == $request->getUri()->getQuery('alt')); // set the result to the body if it's not set to anything else if ($isJson) { - try { - $result = $response->json(); - } catch (ParseException $e) { + $result = json_decode($body, true); + if (null === $result && 0 !== json_last_error()) { + // in the event of a parse error, return the raw string $result = $body; } } else { @@ -111,15 +114,25 @@ public static function decodeHttpResponse( } // retry strategy - if ((intVal($code)) >= 300) { + if ((intVal($code)) >= 400) { $errors = null; // Specific check for APIs which don't return error details, such as Blogger. - if (isset($result['error']) && isset($result['error']['errors'])) { + if (isset($result['error']['errors'])) { $errors = $result['error']['errors']; } throw new Google_Service_Exception($body, $code, null, $errors); } - return $result; + // use "is_null" because "false" is used to explicitly + // prevent an expected class from being returned + if (is_null($expectedClass) && $request) { + $expectedClass = $request->getHeaderLine('X-Php-Expected-Class'); + } + + if (!empty($expectedClass)) { + return new $expectedClass($result); + } + + return $response; } } diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index d539668fd..1103fe436 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -15,6 +15,8 @@ * limitations under the License. */ +use GuzzleHttp\Psr7\Request; + /** * Implements the actual methods/resources of the discovered Google API using magic function * calling overloading (__call()), which on call will see if the method name (plus.activities.list) @@ -71,11 +73,11 @@ public function __construct($service, $serviceName, $resourceName, $resource) * TODO: This function needs simplifying. * @param $name * @param $arguments - * @param $expected_class - optional, the expected class name - * @return Google_Http_Request|expected_class + * @param $expectedClass - optional, the expected class name + * @return Google_Http_Request|expectedClass * @throws Google_Exception */ - public function call($name, $arguments, $expected_class = null) + public function call($name, $arguments, $expectedClass = null) { if (! isset($this->methods[$name])) { $this->client->getLogger()->error( @@ -183,29 +185,28 @@ public function call($name, $arguments, $expected_class = null) ) ); + // build the service uri $url = $this->createRequestUri( $method['path'], $parameters ); - $http = $this->client->getHttpClient(); - $this->client->authorize($http); - - // Guzzle 5 cannot locate App Engine certs by default, - // so we tell Guzzle where to look - if ($this->client->isAppEngine()) { - $http->setDefaultOption('verify', '/etc/ca-certificates.crt'); - } - - $request = $http->createRequest( + // NOTE: because we're creating the request by hand, + // and because the service has a rootUrl property + // the "base_uri" of the Http Client is not accounted for + $request = new Request( $method['httpMethod'], $url, - ['json' => $postBody] + ['content-type' => 'application/json'], + $postBody ? json_encode($postBody) : '' ); + // if the client is marked for deferring, rather than + // execute the request, return the response if ($this->client->shouldDefer()) { // @TODO find a better way to do this - $request->setHeader('X-Php-Expected-Class', $expected_class); + $request = $request + ->withHeader('X-Php-Expected-Class', $expectedClass); return $request; } @@ -217,13 +218,18 @@ public function call($name, $arguments, $expected_class = null) : 'application/octet-stream'; $data = $parameters['data']['value']; $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); + + // pull down the modified request + $request = $upload->getRequest(); } + // if this is a media type, we will return the raw response + // rather than using an expected class if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { - $expected_class = null; + $expectedClass = null; } - - return $this->client->execute($request, $expected_class); + + return $this->client->execute($request, $expectedClass); } protected function convertToArrayAndStripNulls($o) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index d5c352140..70a45726b 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -15,6 +15,7 @@ * limitations under the License. */ +use GuzzleHttp\ClientInterface; use Symfony\Component\DomCrawler\Crawler; class BaseTest extends PHPUnit_Framework_TestCase @@ -41,17 +42,22 @@ public function getCache() private function createClient() { - $defaults = [ + $options = [ 'auth' => 'google_auth', - 'exceptions' => false + 'exceptions' => false, ]; + if ($proxy = getenv('HTTP_PROXY')) { - $defaults['proxy'] = $proxy; - $defaults['verify'] = false; + $options['proxy'] = $proxy; + $options['verify'] = false; } - $httpClient = new GuzzleHttp\Client([ - 'defaults' => $defaults, - ]); + + // adjust constructor depending on guzzle version + if (!$this->isGuzzle6()) { + $options = ['defaults' => $options]; + } + + $httpClient = new GuzzleHttp\Client($options); $client = new Google_Client(); $client->setApplicationName('google-api-php-client-tests'); @@ -62,11 +68,13 @@ private function createClient() "https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/youtube", + "https://www.googleapis.com/auth/drive", ]); if ($this->key) { $client->setDeveloperKey($this->key); } + list($clientId, $clientSecret) = $this->getClientIdAndSecret(); $client->setClientId($clientId); $client->setClientSecret($clientSecret); @@ -189,4 +197,32 @@ protected function loadExample($example) return false; } + + protected function isGuzzle6() + { + $version = ClientInterface::VERSION; + + return ('6' === $version[0]); + } + + protected function isGuzzle5() + { + $version = ClientInterface::VERSION; + + return ('5' === $version[0]); + } + + public function onlyGuzzle6() + { + if (!$this->isGuzzle6()) { + $this->markTestSkipped('Guzzle 6 only'); + } + } + + public function onlyGuzzle5() + { + if (!$this->isGuzzle5()) { + $this->markTestSkipped('Guzzle 5 only'); + } + } } diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index ee5c45588..0a2ee11df 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -1,6 +1,5 @@ getMock('GuzzleHttp\Post\PostBodyInterface'); - $postBody->expects($this->exactly(2)) - ->method('replaceFields') - ->will($this->returnCallback( - function ($fields) use (&$token) { - $token = isset($fields['token']) ? $fields['token'] : null; - } - )); - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(2)) - ->method('getBody') - ->will($this->returnValue($postBody)); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); $response->expects($this->exactly(2)) ->method('getStatusCode') ->will($this->returnValue(200)); $http = $this->getMock('GuzzleHttp\ClientInterface'); $http->expects($this->exactly(2)) ->method('send') - ->will($this->returnValue($response)); - $http->expects($this->exactly(2)) - ->method('createRequest') - ->will($this->returnValue($request)); + ->will($this->returnCallback( + function ($request) use (&$token, $response) { + parse_str((string) $request->getBody(), $fields); + $token = isset($fields['token']) ? $fields['token'] : null; + + return $response; + } + )); + + // adds support for extra "createRequest" step (required for Guzzle 5) + if ($this->isGuzzle5()) { + $requestToken = null; + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->exactly(2)) + ->method('getBody') + ->will($this->returnCallback( + function () use (&$requestToken) { + return 'token='.$requestToken; + })); + $http->expects($this->exactly(2)) + ->method('createRequest') + ->will($this->returnCallback( + function ($method, $url, $params) use (&$requestToken, $request) { + parse_str((string) $params['body'], $fields); + $requestToken = isset($fields['token']) ? $fields['token'] : null; + + return $request; + } + )); + } $t = array( 'access_token' => $accessToken, @@ -77,9 +90,15 @@ function ($fields) use (&$token) { $this->assertEquals($refreshToken, $token); } - /** @expectedException PHPUnit_Framework_Error */ public function testInvalidStringToken() { + $phpVersion = phpversion(); + if ('7' === $phpVersion[0]) { + // primitive type hints actually throw exceptions in PHP7 + $this->setExpectedException('TypeError'); + } else { + $this->setExpectedException('PHPUnit_Framework_Error'); + } // Test with string token $revoke = new Google_AccessToken_Revoke(); $revoke->revokeToken('ACCESS_TOKEN'); diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index 7befe9d5e..adbfca728 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -1,6 +1,5 @@ getJwtService(); $client = $this->getClient(); + $http = $client->getHttpClient(); $token = $client->getAccessToken(); if ($client->isAccessTokenExpired()) { $token = $client->fetchAccessTokenWithRefreshToken(); @@ -43,7 +43,7 @@ public function testValidateIdToken() $this->assertEquals(3, count($segments)); // Extract the client ID in this case as it wont be set on the test client. $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Google_AccessToken_Verify(); + $verify = new Google_AccessToken_Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertTrue(isset($payload['sub'])); $this->assertTrue(strlen($payload['sub']) > 0); @@ -52,13 +52,30 @@ public function testValidateIdToken() // caching for this test to make sense. Not sure how to do that // at the moment. $client = $this->getClient(); + $http = $client->getHttpClient(); $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Google_AccessToken_Verify(); + $verify = new Google_AccessToken_Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertTrue(isset($payload['sub'])); $this->assertTrue(strlen($payload['sub']) > 0); } + public function testRetrieveCertsFromLocation() + { + $client = $this->getClient(); + $verify = new Google_AccessToken_Verify($client->getHttpClient()); + + // make this method public for testing purposes + $method = new ReflectionMethod($verify, 'retrieveCertsFromLocation'); + $method->setAccessible(true); + $certs = $method->invoke($verify, Google_AccessToken_Verify::FEDERATED_SIGNON_CERT_URL); + + $this->assertArrayHasKey('keys', $certs); + $this->assertEquals(2, count($certs['keys'])); + $this->assertArrayHasKey('alg', $certs['keys'][0]); + $this->assertEquals('RS256', $certs['keys'][0]['alg']); + } + private function getJwtService() { if (class_exists('\Firebase\JWT\JWT')) { diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 2c3b9dac4..0ab3a6aec 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -20,7 +20,7 @@ use GuzzleHttp\Client; use GuzzleHttp\Event\RequestEvents; -use GuzzleHttp\Message\Request; +use Psr\Http\Message\Request; class Google_ClientTest extends BaseTest { @@ -37,10 +37,71 @@ public function testSignAppKey() $http = new Client(); $client->authorize($http); - $listeners = $http->getEmitter()->listeners('before'); - $this->assertEquals(1, count($listeners)); - $this->assertEquals(2, count($listeners[0])); - $this->assertInstanceOf('Google\Auth\Simple', $listeners[0][0]); + $this->checkAuthHandler($http, 'Simple'); + } + + private function checkAuthHandler($http, $className) + { + if ($this->isGuzzle6()) { + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); + $middleware = array_pop($middlewares); + + if (is_null($className)) { + // only the default middlewares have been added + $this->assertEquals(3, count($middlewares)); + } else { + $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); + $this->assertInstanceOf($authClass, $middleware[0]); + } + } else { + $listeners = $http->getEmitter()->listeners('before'); + + if (is_null($className)) { + $this->assertEquals(0, count($listeners)); + } else { + $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); + $this->assertEquals(1, count($listeners)); + $this->assertEquals(2, count($listeners[0])); + $this->assertInstanceOf($authClass, $listeners[0][0]); + } + } + } + + private function checkCredentials($http, $fetcherClass, $sub = null) + { + if ($this->isGuzzle6()) { + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); // Works + $middleware = array_pop($middlewares); + $auth = $middleware[0]; + } else { + // access the protected $fetcher property + $listeners = $http->getEmitter()->listeners('before'); + $auth = $listeners[0][0]; + } + + $class = new ReflectionClass(get_class($auth)); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $fetcher = $property->getValue($auth); + $this->assertInstanceOf($fetcherClass, $fetcher); + + if ($sub) { + // access the protected $auth property + $class = new ReflectionClass(get_class($fetcher)); + $property = $class->getProperty('auth'); + $property->setAccessible(true); + $auth = $property->getValue($fetcher); + + $this->assertEquals($sub, $auth->getSub()); + } } public function testSignAccessToken() @@ -56,10 +117,7 @@ public function testSignAccessToken() $client->setScopes('test_scope'); $client->authorize($http); - $listeners = $http->getEmitter()->listeners('before'); - $this->assertEquals(1, count($listeners)); - $this->assertEquals(2, count($listeners[0])); - $this->assertInstanceOf('Google\Auth\ScopedAccessToken', $listeners[0][0]); + $this->checkAuthHandler($http, 'ScopedAccessToken'); } public function testCreateAuthUrl() @@ -78,14 +136,15 @@ public function testCreateAuthUrl() $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" - . "?access_type=offline" - . "&approval_prompt=force" - . "&login_hint=bob%40example.org" - . "&response_type=code" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&state=xyz" + . "?response_type=code" + . "&access_type=offline" . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost"; + . "&redirect_uri=http%3A%2F%2Flocalhost" + . "&state=xyz" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&approval_prompt=force" + . "&login_hint=bob%40example.org"; + $this->assertEquals($expected, $authUrl); // Again with a blank login hint (should remove all traces from authUrl) @@ -96,16 +155,17 @@ public function testCreateAuthUrl() $client->setIncludeGrantedScopes(true); $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); $expected = "https://accounts.google.com/o/oauth2/auth" - . "?access_type=offline" + . "?response_type=code" + . "&access_type=offline" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost" + . "&state=xyz" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" . "&hd=example.com" . "&include_granted_scopes=true" . "&openid.realm=example.com" - . "&prompt=select_account" - . "&response_type=code" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&state=xyz" - . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost"; + . "&prompt=select_account"; + $this->assertEquals($expected, $authUrl); } @@ -150,34 +210,34 @@ public function testPrepareService() $this->assertEquals( '' . 'https://accounts.google.com/o/oauth2/auth' - . '?access_type=online' - . '&approval_prompt=auto' - . '&response_type=code' - . '&scope=http%3A%2F%2Ftest.com%20scope2' - . '&state=xyz' + . '?response_type=code' + . '&access_type=online' . '&client_id=test1' - . '&redirect_uri=http%3A%2F%2Flocalhost%2F', + . '&redirect_uri=http%3A%2F%2Flocalhost%2F' + . '&state=xyz' + . '&scope=http%3A%2F%2Ftest.com%20scope2' + . '&approval_prompt=auto', + $client->createAuthUrl() ); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); $response->expects($this->once()) ->method('getBody') - ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); - $response->expects($this->once()) - ->method('json') - ->will($this->returnValue($this->getMock('Google_Model'))); - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->once()) - ->method('getQuery') - ->will($this->returnValue($this->getMock('GuzzleHttp\Query'))); + ->will($this->returnValue($this->getMock('Psr\Http\Message\StreamInterface'))); $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($request)); $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/'); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($guzzle5Request)); + } + + $client->setHttpClient($http); $dr_service = new Google_Service_Drive($client); $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); @@ -211,12 +271,23 @@ public function testSettersGetters() /** * @requires extension Memcached */ - public function testAppEngineAutoConfig() + public function testAppEngineMemcacheConfig() { $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; $client = new Google_Client(); + $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); + unset($_SERVER['SERVER_SOFTWARE']); + } + + public function testAppEngineStreamHandlerConfig() + { + $this->onlyGuzzle5(); + + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Google_Client(); + // check Stream Handler is used $http = $client->getHttpClient(); $class = new ReflectionClass(get_class($http)); @@ -234,6 +305,21 @@ public function testAppEngineAutoConfig() unset($_SERVER['SERVER_SOFTWARE']); } + public function testAppEngineVerifyConfig() + { + $this->onlyGuzzle5(); + + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Google_Client(); + + $this->assertEquals( + '/etc/ca-certificates.crt', + $client->getHttpClient()->getDefaultOption('verify') + ); + + unset($_SERVER['SERVER_SOFTWARE']); + } + public function testJsonConfig() { // Device config @@ -291,67 +377,41 @@ public function testNoAuth() $http = new Client(); $client->authorize($http); - $listeners = $http->getEmitter()->listeners('before'); - putenv("GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"); putenv("HOME=$HOME"); - $this->assertEquals(0, count($listeners)); + $this->checkAuthHandler($http, null); } public function testApplicationDefaultCredentials() { + $this->checkServiceAccountCredentials(); + $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); + $client = new Google_Client(); - $client->setAuthConfig(__DIR__.'/../config/application-default-credentials.json'); + $client->setAuthConfig($credentialsFile); $http = new Client(); $client->authorize($http); - $listeners = $http->getEmitter()->listeners('before'); - - $this->assertEquals(1, count($listeners)); - $this->assertEquals(2, count($listeners[0])); - $this->assertInstanceOf('Google\Auth\AuthTokenFetcher', $listeners[0][0]); - - // access the protected $fetcher property - $class = new ReflectionClass(get_class($listeners[0][0])); - $property = $class->getProperty('fetcher'); - $property->setAccessible(true); - $fetcher = $property->getValue($listeners[0][0]); - - $this->assertInstanceOf('Google\Auth\ServiceAccountCredentials', $fetcher); + $this->checkAuthHandler($http, 'AuthToken'); + $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials'); } public function testApplicationDefaultCredentialsWithSubject() { + $this->checkServiceAccountCredentials(); + $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); + $sub = 'sub123'; $client = new Google_Client(); - $client->setAuthConfig(__DIR__.'/../config/application-default-credentials.json'); + $client->setAuthConfig($credentialsFile); $client->setSubject($sub); $http = new Client(); $client->authorize($http); - $listeners = $http->getEmitter()->listeners('before'); - - $this->assertEquals(1, count($listeners)); - $this->assertEquals(2, count($listeners[0])); - $this->assertInstanceOf('Google\Auth\AuthTokenFetcher', $listeners[0][0]); - - // access the protected $fetcher property - $class = new ReflectionClass(get_class($listeners[0][0])); - $property = $class->getProperty('fetcher'); - $property->setAccessible(true); - $fetcher = $property->getValue($listeners[0][0]); - - $this->assertInstanceOf('Google\Auth\ServiceAccountCredentials', $fetcher); - - // access the protected $auth property - $class = new ReflectionClass(get_class($fetcher)); - $property = $class->getProperty('auth'); - $property->setAccessible(true); - $auth = $property->getValue($fetcher); - - $this->assertEquals($sub, $auth->getSub()); + $this->checkAuthHandler($http, 'AuthToken'); + $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials', $sub); } /** @@ -359,27 +419,30 @@ public function testApplicationDefaultCredentialsWithSubject() */ public function testRefreshTokenSetsValues() { - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBodyInterface'))); - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('json') - ->will($this->returnValue(array( - 'access_token' => 'xyz', - 'id_token' => 'ID_TOKEN', - ))); + $token = json_encode(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + )); + $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); + $postBody->expects($this->once()) + ->method('__toString') + ->will($this->returnValue($token)); + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); $response->expects($this->once()) ->method('getBody') - ->will($this->returnValue($this->getMock('GuzzleHttp\Post\PostBody'))); + ->will($this->returnValue($postBody)); $http = $this->getMock('GuzzleHttp\ClientInterface'); $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($request)); + + if ($this->isGuzzle5()) { + $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($guzzle5Request)); + } + $client = $this->getClient(); $client->setHttpClient($http); $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); @@ -418,4 +481,32 @@ public function testFetchAccessTokenWithAssertionFromFile() $this->assertNotNull($token); $this->assertArrayHasKey('access_token', $token); } + + /** + * Test fetching an access token with assertion credentials + * using "setAuthConfig" and "setSubject" but with user credentials + */ + public function testBadSubjectThrowsException() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $client->setSubject('bad-subject'); + + $authHandler = Google_AuthHandler_AuthHandlerFactory::build(); + + // make this method public for testing purposes + $method = new ReflectionMethod($authHandler, 'createAuthHttp'); + $method->setAccessible(true); + $authHttp = $method->invoke($authHandler, $client->getHttpClient()); + + try { + $token = $client->fetchAccessTokenWithAssertion($authHttp); + $this->fail('no exception thrown'); + } catch (GuzzleHttp\Exception\ClientException $e) { + $response = $e->getResponse(); + $this->assertContains('Invalid impersonation prn email address', (string) $response->getBody()); + } + } } diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php new file mode 100644 index 000000000..2458ed9b3 --- /dev/null +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -0,0 +1,200 @@ +getClient(); + $request = new Request('POST', 'http://www.example.com'); + $media = new Google_Http_MediaFileUpload( + $client, + $request, + 'image/png', + base64_decode('data:image/png;base64,a') + ); + $request = $media->getRequest(); + + $this->assertEquals(0, $media->getProgress()); + $this->assertGreaterThan(0, strlen($request->getBody())); + } + + public function testGetUploadType() + { + $client = $this->getClient(); + $request = new Request('POST', 'http://www.example.com'); + + // Test resumable upload + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); + $this->assertEquals('resumable', $media->getUploadType(null)); + + // Test data *only* uploads + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); + $this->assertEquals('media', $media->getUploadType(null)); + + // Test multipart uploads + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); + $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); + } + + public function testProcess() + { + $client = $this->getClient(); + $data = 'foo'; + + // Test data *only* uploads. + $request = new Request('POST', 'http://www.example.com'); + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); + $request = $media->getRequest(); + $this->assertEquals($data, (string) $request->getBody()); + + // Test resumable (meta data) - we want to send the metadata, not the app data. + $request = new Request('POST', 'http://www.example.com'); + $reqData = json_encode("hello"); + $request = $request->withBody(Psr7\stream_for($reqData)); + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, true); + $request = $media->getRequest(); + $this->assertEquals(json_decode($reqData), (string) $request->getBody()); + + // Test multipart - we are sending encoded meta data and post data + $request = new Request('POST', 'http://www.example.com'); + $reqData = json_encode("hello"); + $request = $request->withBody(Psr7\stream_for($reqData)); + $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); + $request = $media->getRequest(); + $this->assertContains($reqData, (string) $request->getBody()); + $this->assertContains(base64_encode($data), (string) $request->getBody()); + } + + public function testGetResumeUri() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Google_Service_Drive($client); + $file = new Google_Service_Drive_DriveFile(); + $file->title = 'TESTFILE-testGetResumeUri'; + $chunkSizeBytes = 1 * 1024 * 1024; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->insert($file); + + // Create a media file upload to represent our upload process. + $media = new Google_Http_MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true, + $chunkSizeBytes + ); + + // request the resumable url + $uri = $media->getResumeUri(); + $this->assertTrue(is_string($uri)); + + // parse the URL + $parts = parse_url($uri); + $this->assertArrayHasKey('query', $parts); + + // parse the querystring + parse_str($parts['query'], $query); + $this->assertArrayHasKey('uploadType', $query); + $this->assertArrayHasKey('upload_id', $query); + $this->assertEquals('resumable', $query['uploadType']); + } + + public function testNextChunk() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Google_Service_Drive($client); + + $data = 'foo'; + $file = new Google_Service_Drive_DriveFile(); + $file->title = $title = 'TESTFILE-testNextChunk'; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->insert($file); + + // Create a media file upload to represent our upload process. + $media = new Google_Http_MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true + ); + $media->setFileSize(strlen($data)); + + // upload the file + $file = $media->nextChunk($data); + $this->assertInstanceOf('Google_Service_Drive_DriveFile', $file); + $this->assertEquals($title, $file->title); + + // remove the file + $client->setDefer(false); + $response = $service->files->delete($file->id); + $this->assertEquals(204, $response->getStatusCode()); + } + + public function testNextChunkWithMoreRemaining() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Google_Service_Drive($client); + + $chunkSizeBytes = 262144; // smallest chunk size allowed by APIs + $data = str_repeat('.', $chunkSizeBytes+1); + $file = new Google_Service_Drive_DriveFile(); + $file->title = $title = 'TESTFILE-testNextChunkWithMoreRemaining'; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->insert($file); + + // Create a media file upload to represent our upload process. + $media = new Google_Http_MediaFileUpload( + $client, + $request, + 'text/plain', + $data, + true, + $chunkSizeBytes + ); + $media->setFileSize(strlen($data)); + + // upload the file + $file = $media->nextChunk(); + // false means we aren't done uploading, which is exactly what we expect! + $this->assertFalse($file); + } +} diff --git a/tests/Google/Http/MediaFuleUploadTest.php b/tests/Google/Http/MediaFuleUploadTest.php deleted file mode 100644 index b4853b805..000000000 --- a/tests/Google/Http/MediaFuleUploadTest.php +++ /dev/null @@ -1,86 +0,0 @@ -getClient(); - $request = new Request('POST', 'http://www.example.com'); - $media = new Google_Http_MediaFileUpload( - $client, - $request, - 'image/png', - base64_decode('data:image/png;base64,a') - ); - - $this->assertEquals(0, $media->getProgress()); - $this->assertGreaterThan(0, strlen($request->getBody())); - } - - public function testGetUploadType() - { - $client = $this->getClient(); - $request = new Request('POST', 'http://www.example.com'); - - // Test resumable upload - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); - $params = array('mediaUpload' => array('value' => $media)); - $this->assertEquals('resumable', $media->getUploadType(null)); - - // Test data *only* uploads - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); - $this->assertEquals('media', $media->getUploadType(null)); - - // Test multipart uploads - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); - $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); - } - - public function testProcess() - { - $client = $this->getClient(); - $data = 'foo'; - - // Test data *only* uploads. - $request = new Request('POST', 'http://www.example.com'); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); - $this->assertEquals($data, (string) $request->getBody()); - - // Test resumable (meta data) - we want to send the metadata, not the app data. - $request = new Request('POST', 'http://www.example.com'); - $reqData = json_encode("hello"); - $request->setBody(Stream::factory($reqData)); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, true); - $this->assertEquals(json_decode($reqData), (string) $request->getBody()); - - // Test multipart - we are sending encoded meta data and post data - $request = new Request('POST', 'http://www.example.com'); - $reqData = json_encode("hello"); - $request->setBody(Stream::factory($reqData)); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); - $this->assertContains($reqData, (string) $request->getBody()); - $this->assertContains(base64_encode($data), (string) $request->getBody()); - } -} diff --git a/tests/Google/Http/PoolTest.php b/tests/Google/Http/PoolTest.php deleted file mode 100644 index 952bad0a7..000000000 --- a/tests/Google/Http/PoolTest.php +++ /dev/null @@ -1,63 +0,0 @@ -checkToken(); - $client = $this->getClient(); - $client->setUseBatch(true); - $this->parallel = new Google_Http_Pool($client); - $this->plus = new Google_Service_Plus($client); - } - - public function testParallelRequestWithAuth() - { - $this->parallel->add($this->plus->people->get('me'), 'key1'); - $this->parallel->add($this->plus->people->get('me'), 'key2'); - $this->parallel->add($this->plus->people->get('me'), 'key3'); - - $result = $this->parallel->execute(); - $this->assertTrue(isset($result['response-key1'])); - $this->assertTrue(isset($result['response-key2'])); - $this->assertTrue(isset($result['response-key3'])); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key1']); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key2']); - $this->assertInstanceOf('Google_Service_Plus_Person', $result['response-key3']); - } - - public function testInvalidParallelRequest() - { - $this->parallel->add($this->plus->people->get('123456789987654321'), 'key1'); - $this->parallel->add($this->plus->people->get('+LarryPage'), 'key2'); - - $result = $this->parallel->execute(); - $this->assertTrue(isset($result['response-key2'])); - $this->assertInstanceOf( - 'GuzzleHttp\Message\Response', - $result['response-key1'] - ); - $this->assertEquals(404, $result['response-key1']->getStatusCode()); - } -} diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 22664fb13..cd5bb6a64 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -15,9 +15,9 @@ * limitations under the License. */ -use GuzzleHttp\Message\Request; -use GuzzleHttp\Message\Response; -use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; class Google_HTTP_RESTTest extends BaseTest { @@ -29,22 +29,23 @@ class Google_HTTP_RESTTest extends BaseTest public function setUp() { $this->rest = new Google_Http_REST(); + $this->request = new Request('GET', '/'); } public function testDecodeResponse() { $client = $this->getClient(); $response = new Response(204); - $decoded = $this->rest->decodeHttpResponse($response); - $this->assertEquals(null, $decoded); + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals($response, $decoded); foreach (array(200, 201) as $code) { $headers = array('foo', 'bar'); - $stream = Stream::factory('{"a": 1}'); + $stream = Psr7\stream_for('{"a": 1}'); $response = new Response($code, $headers, $stream); - $decoded = $this->rest->decodeHttpResponse($response); - $this->assertEquals(array("a" => 1), $decoded); + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals('{"a": 1}', (string) $decoded->getBody()); } } @@ -54,11 +55,11 @@ public function testDecodeMediaResponse() $request = new Request('GET', 'http://www.example.com?alt=media'); $headers = array(); - $stream = Stream::factory('thisisnotvalidjson'); + $stream = Psr7\stream_for('thisisnotvalidjson'); $response = new Response(200, $headers, $stream); $decoded = $this->rest->decodeHttpResponse($response, $request); - $this->assertEquals('thisisnotvalidjson', $decoded); + $this->assertEquals('thisisnotvalidjson', (string) $decoded->getBody()); } @@ -66,16 +67,16 @@ public function testDecodeMediaResponse() public function testDecode500ResponseThrowsException() { $response = new Response(500); - $this->rest->decodeHttpResponse($response); + $this->rest->decodeHttpResponse($response, $this->request); } public function testDecodeEmptyResponse() { - $stream = Stream::factory('{}'); + $stream = Psr7\stream_for('{}'); $response = new Response(200, array(), $stream); - $decoded = $this->rest->decodeHttpResponse($response); - $this->assertEquals(array(), $decoded); + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals('{}', (string) $decoded->getBody()); } /** @@ -83,7 +84,7 @@ public function testDecodeEmptyResponse() */ public function testBadErrorFormatting() { - $stream = Stream::factory( + $stream = Psr7\stream_for( '{ "error": { "code": 500, @@ -92,7 +93,7 @@ public function testBadErrorFormatting() }' ); $response = new Response(500, array(), $stream); - $this->rest->decodeHttpResponse($response); + $this->rest->decodeHttpResponse($response, $this->request); } /** @@ -100,7 +101,7 @@ public function testBadErrorFormatting() */ public function tesProperErrorFormatting() { - $stream = Stream::factory( + $stream = Psr7\stream_for( '{ error: { errors: [ @@ -117,7 +118,7 @@ public function tesProperErrorFormatting() }' ); $response = new Response(401, array(), $stream); - $this->rest->decodeHttpResponse($response); + $this->rest->decodeHttpResponse($response, $this->request); } /** @@ -125,8 +126,8 @@ public function tesProperErrorFormatting() */ public function testNotJson404Error() { - $stream = Stream::factory('Not Found'); + $stream = Psr7\stream_for('Not Found'); $response = new Response(404, array(), $stream); - $this->rest->decodeHttpResponse($response); + $this->rest->decodeHttpResponse($response, $this->request); } } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 7c77a2d73..fb3a8c613 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -18,23 +18,23 @@ * under the License. */ -use GuzzleHttp\Message\Request; -use GuzzleHttp\Message\Response; -use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; class Test_Google_Service extends Google_Service { public function __construct(Google_Client $client) { parent::__construct($client); - $this->rootUrl = ""; + $this->rootUrl = "https://test.example.com"; $this->servicePath = ""; $this->version = "v1beta1"; $this->serviceName = "test"; } } -class Google_Service_ResourceTest extends PHPUnit_Framework_TestCase +class Google_Service_ResourceTest extends BaseTest { private $client; private $service; @@ -56,9 +56,7 @@ public function setUp() ->will($this->returnValue(true)); $this->client->expects($this->any()) ->method("getHttpClient") - ->will($this->returnValue(new GuzzleHttp\Client([ - 'base_url' => 'https://test.example.com' - ]))); + ->will($this->returnValue(new GuzzleHttp\Client())); $this->service = new Test_Google_Service($this->client); } @@ -102,7 +100,7 @@ public function testCall() ) ); $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://test.example.com/method/path", $request->getUrl()); + $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } @@ -124,7 +122,7 @@ public function testCallServiceDefinedRoot() ) ); $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://sample.example.com/method/path", $request->getUrl()); + $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } @@ -172,38 +170,12 @@ public function testCreateRequestUri() $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } - public function testAppEngineSslCerts() - { - $this->client->expects($this->once()) - ->method("isAppEngine") - ->will($this->returnValue(true)); - $resource = new Google_Service_Resource( - $this->service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - $request = $resource->call("testMethod", array(array())); - $this->assertEquals( - '/etc/ca-certificates.crt', - $this->client->getHttpClient()->getDefaultOption('verify') - ); - } - public function testNoExpectedClassForAltMediaWithHttpSuccess() { // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); - $body = Stream::factory('thisisnotvalidjson'); + $body = Psr7\stream_for('thisisnotvalidjson'); $response = new Response(200, [], $body); $http = $this->getMockBuilder("GuzzleHttp\Client") @@ -212,9 +184,13 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); - $http->expects($this->any()) + + if ($this->isGuzzle5()) { + $http->expects($this->once()) ->method('createRequest') - ->will($this->returnValue($request)); + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + } + $client = new Google_Client(); $client->setHttpClient($http); $service = new Test_Google_Service($client); @@ -236,8 +212,9 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() ); $expectedClass = 'ThisShouldBeIgnored'; - $decoded = $resource->call('testMethod', $arguments, $expectedClass); - $this->assertEquals('thisisnotvalidjson', $decoded); + $response = $resource->call('testMethod', $arguments, $expectedClass); + $this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response); + $this->assertEquals('thisisnotvalidjson', (string) $response->getBody()); } public function testNoExpectedClassForAltMediaWithHttpFail() @@ -245,8 +222,8 @@ public function testNoExpectedClassForAltMediaWithHttpFail() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); - $body = Stream::factory('thisisnotvalidjson'); - $response = new Response(300, [], $body); + $body = Psr7\stream_for('thisisnotvalidjson'); + $response = new Response(400, [], $body); $http = $this->getMockBuilder("GuzzleHttp\Client") ->disableOriginalConstructor() @@ -254,12 +231,13 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $http->expects($this->once()) ->method('send') ->will($this->returnValue($response)); - $http->expects($this->any()) + + if ($this->isGuzzle5()) { + $http->expects($this->once()) ->method('createRequest') - ->will($this->returnValue(new Request('GET', '/?alt=media'))); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + } + $client = new Google_Client(); $client->setHttpClient($http); $service = new Test_Google_Service($client); diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 399e1da92..9f03d1180 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -15,11 +15,11 @@ * limitations under the License. */ -use GuzzleHttp\Message\Request; -use GuzzleHttp\Message\Response; -use GuzzleHttp\Stream\Stream; +use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; -class Google_Task_RunnerTest extends PHPUnit_Framework_TestCase +class Google_Task_RunnerTest extends BaseTest { private $client; @@ -75,7 +75,7 @@ public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -90,7 +90,7 @@ public function testMultipleRestRetriesWithSuccess( ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -118,7 +118,7 @@ public function testCustomRestRetryMapAddsNewHandlers() ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -196,7 +196,7 @@ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -212,7 +212,7 @@ public function testMultipleCurlRetriesWithSuccess( ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -244,7 +244,7 @@ public function testCustomCurlRetryMapAddsNewHandlers() ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals(array("success" => true), $result); + $this->assertEquals('{"success": true}', (string) $result->getBody()); } /** @@ -627,12 +627,17 @@ private function makeRequest() { $request = new Request('GET', '/test'); $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly($this->mockedCallsCount)) ->method('send') ->will($this->returnCallback(array($this, 'getNextMockedCall'))); - return Google_Http_REST::execute($http, $request, $this->retryConfig, $this->retryMap); + if ($this->isGuzzle5()) { + $http->expects($this->exactly($this->mockedCallsCount)) + ->method('createRequest') + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/test'))); + } + + return Google_Http_REST::execute($http, $request, '', $this->retryConfig, $this->retryMap); } /** @@ -650,7 +655,7 @@ public function getNextMockedCall($request) throw $current; } - $stream = Stream::factory($current['body']); + $stream = Psr7\stream_for($current['body']); $response = new Response($current['code'], $current['headers'], $stream); return $response; From f910620d13be3c1e1e97a450893180f07e46fe86 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 30 Dec 2015 10:49:56 -0800 Subject: [PATCH 0929/1274] fixes batch uploads with PSR7 --- src/Google/Service/Resource.php | 20 ++++++++++---------- tests/Google/Http/BatchTest.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 1103fe436..96c24fc1a 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -201,16 +201,6 @@ public function call($name, $arguments, $expectedClass = null) $postBody ? json_encode($postBody) : '' ); - // if the client is marked for deferring, rather than - // execute the request, return the response - if ($this->client->shouldDefer()) { - // @TODO find a better way to do this - $request = $request - ->withHeader('X-Php-Expected-Class', $expectedClass); - - return $request; - } - // support uploads if (isset($parameters['data'])) { $mimeType = isset($parameters['mimeType']) @@ -229,6 +219,16 @@ public function call($name, $arguments, $expectedClass = null) $expectedClass = null; } + // if the client is marked for deferring, rather than + // execute the request, return the response + if ($this->client->shouldDefer()) { + // @TODO find a better way to do this + $request = $request + ->withHeader('X-Php-Expected-Class', $expectedClass); + + return $request; + } + return $this->client->execute($request, $expectedClass); } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index b285a2b6b..78a947eed 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -18,6 +18,8 @@ * under the License. */ +use GuzzleHttp\Psr7; + class Google_Http_BatchTest extends BaseTest { public function testBatchRequestWithAuth() @@ -98,4 +100,30 @@ public function testInvalidBatchRequest() $result['response-key1'] ); } + + public function testMediaFileBatch() + { + $client = $this->getClient(); + $storage = new Google_Service_Storage($client); + $bucket = 'testbucket'; + $stream = Psr7\stream_for("testbucket-text"); + $params = [ + 'data' => $stream, + 'mimeType' => 'text/plain', + ]; + + // Metadata object for new Google Cloud Storage object + $obj = new Google_Service_Storage_StorageObject(); + $obj->contentType = "text/plain"; + + // Batch Upload + $client->setUseBatch(true); + $obj->name = "batch"; + /** @var \GuzzleHttp\Psr7\Request $request */ + $request = $storage->objects->insert($bucket, $obj, $params); + + $this->assertContains('multipart/related', $request->getHeaderLine('content-type')); + $this->assertContains('/upload/', $request->getUri()->getPath()); + $this->assertContains('uploadType=multipart', $request->getUri()->getQuery()); + } } From 48b29757aa3f051f5cb1d036a24e31ae02a298cd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 4 Jan 2016 18:00:01 -0800 Subject: [PATCH 0930/1274] removes curl constants incase curl extension isnt loaded --- src/Google/Task/Runner.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index b809ee01d..9d7f6c932 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -76,11 +76,11 @@ class Google_Task_Runner '503' => self::TASK_RETRY_ALWAYS, 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, - CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, - CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, - CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, - CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, - CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS + 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST + 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT + 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED + 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR + 52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING ]; /** From 83e850e42f82c7d1b2c8eb7f52af5b4c1f873ac9 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 6 Jan 2016 10:38:41 -0800 Subject: [PATCH 0931/1274] updates UPGRADING to reflect guzzle 6 changes --- UPGRADING.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 03c0b80dc..1e1174b3e 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -179,8 +179,12 @@ $client->getAuth()->sign($request); **After** ```php +// create an authorized HTTP client +$httpClient = $client->authorize(); + +// OR add authorization to an existing client $httpClient = new GuzzleHttp\Client(); -$client->authorize($httpClient); +$httpClient = $client->authorize($httpClient); ``` **Before** @@ -193,12 +197,14 @@ $response = $client->getAuth()->authenticatedRequest($request); **After** ```php -$httpClient = new GuzzleHttp\Client(); -$client->authorize($httpClient); -$request = $httpClient->createRequest('POST', $url); +$httpClient = $client->authorize(); +$request = new GuzzleHttp\Psr7\Request('POST', $url); $response = $httpClient->send($request); ``` +> NOTE: `$request` can be any class implementing +> `Psr\Http\Message\RequestInterface` + In addition, other methods that were callable on `Google_Auth_OAuth2` are now called on the `Google_Client` object: @@ -225,18 +231,21 @@ $client->isAccessTokenExpired(); This was previously `PHP 5.2`. If you still need to use PHP 5.2, please continue to use the [v1-master](https://github.com/google/google-api-php-client/tree/v1-master) branch. -## Guzzle 5 is used for HTTP Requests +## Guzzle and PSR-7 are used for HTTP Requests -[`Guzzle 5`][Guzzle 5] is used for all HTTP Requests. As a result, all `Google_IO`-related -functionality and `Google_Http`-related functionality has been changed or removed. +The HTTP library Guzzle is used for all HTTP Requests. By default, [`Guzzle 6`][Guzzle 6] +is used, but this library is also compatible with [`Guzzle 5`][Guzzle 5]. As a result, +all `Google_IO`-related functionality and `Google_Http`-related functionality has been +changed or removed. 1. Removed `Google_Http_Request` 1. Removed `Google_IO_Abstract`, `Google_IO_Exception`, `Google_IO_Curl`, and `Google_IO_Stream` 1. Removed methods `Google_Client::getIo` and `Google_Client::setIo` -1. Refactored `Google_Http_Batch` and `Google_Http_MediaFileUpload` for Guzzle 5 -1. Added `Google_Http_Pool` for HTTP Pooling via Guzzle 5 +1. Refactored `Google_Http_Batch` and `Google_Http_MediaFileUpload` for Guzzle 1. Added `Google_Client::getHttpClient` and `Google_Client::setHttpClient` for getting and -setting the Guzzle 5 `GuzzleHttp\ClientInterface` object. +setting the Guzzle `GuzzleHttp\ClientInterface` object. + +> NOTE: `PSR-7`-compatible libraries can now be used with this library. ## Other Changes @@ -289,6 +298,7 @@ setting the Guzzle 5 `GuzzleHttp\ClientInterface` object. [PSR 3]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md [Guzzle 5]: https://github.com/guzzle/guzzle +[Guzzle 6]: http://docs.guzzlephp.org/en/latest/psr7.html [Monolog]: https://github.com/Seldaek/monolog [Google Auth]: https://github.com/google/google-auth-library-php [Google Auth GCE]: https://github.com/google/google-auth-library-php/blob/master/src/GCECredentials.php From 210ea3f4b430d64e130d257675dd8f43e1026d52 Mon Sep 17 00:00:00 2001 From: Michael Bessolov Date: Sat, 9 Jan 2016 21:34:45 -0800 Subject: [PATCH 0932/1274] Corrected return type in phpDoc for Google_Client::fetchAccessTokenWithAssertion(). --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index ba1768d7b..f7e94799e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -197,7 +197,7 @@ public function refreshTokenWithAssertion() /** * Fetches a fresh access token with a given assertion token. * @param $assertionCredentials optional. - * @return void + * @return array access token */ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) { From 2419914856f82178c72baab8b19db32f4a2230c4 Mon Sep 17 00:00:00 2001 From: jgacuca567 Date: Sat, 16 Jan 2016 15:40:33 -0500 Subject: [PATCH 0933/1274] Update of the Google URL to Github URL --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index ba1768d7b..f44696ab6 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -33,7 +33,7 @@ /** * The Google API Client - * http://code.google.com/p/google-api-php-client/ + * https://github.com/google/google-api-php-client */ class Google_Client { From 6a6ee5ce1313505617201443a0ee7fd8953809ba Mon Sep 17 00:00:00 2001 From: Colin Frei Date: Sat, 16 Jan 2016 21:47:44 +0100 Subject: [PATCH 0934/1274] Handle exceptions correctly when using Guzzle 5. --- src/Google/Http/REST.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 741ede25f..24077ec2b 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -76,7 +76,13 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ if (!$e->hasResponse()) { throw $e; } - $response = $e->getResponse(); + + $exceptionResponse = $e->getResponse(); + if ($exceptionResponse instanceof \GuzzleHttp\Message\ResponseInterface) { + $exceptionResponse = $httpHandler->buildPsr7Response($e->getResponse()); + } + + $response = $exceptionResponse; } return self::decodeHttpResponse($response, $request, $expectedClass); From c872f606236631bf4da16daa9ff7501d036fed60 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 22 Jan 2016 09:04:54 +0100 Subject: [PATCH 0935/1274] Incorrect @return line for Client::authorize Was "@return void", whereas the authorize method does return a ClientInferface object in current release. --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index bda66d111..462c6b0f8 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -327,7 +327,7 @@ public function createAuthUrl($scope = null) * * @param GuzzleHttp\ClientInterface $http the http client object. * @param GuzzleHttp\ClientInterface $authHttp an http client for authentication. - * @return void + * @return GuzzleHttp\ClientInterface the http client object */ public function authorize(ClientInterface $http = null, ClientInterface $authHttp = null) { From 874faa450397b099107706bfa985216afcc9b859 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 2 Feb 2016 13:17:15 -0800 Subject: [PATCH 0936/1274] adds 1-second leeway to JWT validation to prevent intermittent exceptions --- src/Google/AccessToken/Verify.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 49271fd99..0b22db4cf 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -189,10 +189,15 @@ private function getFederatedSignOnCerts() private function getJwtService() { + $jwtClass = 'JWT'; if (class_exists('\Firebase\JWT\JWT')) { - return new \Firebase\JWT\JWT; + $jwtClass = 'Firebase\JWT\JWT'; } - return new \JWT; + // adds 1 second to JWT leeway + // @see https://github.com/google/google-api-php-client/issues/827 + $jwtClass::$leeway = 1; + + return new $jwtClass; } } From 444e687fc9a014a8b5c9a00bb6ffa22637e4a1cd Mon Sep 17 00:00:00 2001 From: Ben Huebscher Date: Thu, 28 Jan 2016 18:25:39 -0800 Subject: [PATCH 0937/1274] Enable custom umask for cache files While google/google-api-php-client#617 is well intentioned for its security concerns, it has an annoying side effect when the cache is shared between an application's CLI and Web Interface. Unless you use the same username for Apache or PHP-FPM to access the CLI (which you shouldn't), a cache file will only be readable by whichever interface created it. My solution is to add a third constructor argument to `Google_Cache_File` for setting a custom umask. I've assigned it the default value `077` so that default permissions for files and directories will remain `0600` and `0700` respectively. --- src/Google/Cache/File.php | 8 +++++--- tests/Google/CacheTest.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index c7743b744..d6172a21f 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -30,6 +30,7 @@ class Google_Cache_File implements CacheInterface { const MAX_LOCK_RETRIES = 10; private $path; + private $umask; private $fh; /** @@ -37,10 +38,11 @@ class Google_Cache_File implements CacheInterface */ private $logger; - public function __construct($path, LoggerInterface $logger = null) + public function __construct($path, LoggerInterface $logger = null, $umask = 077) { $this->path = $path; $this->logger = $logger; + $this->umask = $umask; } public function get($key, $expiration = false) @@ -155,7 +157,7 @@ private function getCacheDir($file, $forWrite) // trim the directory separator from the path to prevent double separators $storageDir = rtrim($this->path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $dirHash; if ($forWrite && ! is_dir($storageDir)) { - if (! mkdir($storageDir, 0700, true)) { + if (! mkdir($storageDir, 0770 & ~$this->umask, true)) { $this->log( 'error', 'File cache creation failed', @@ -199,7 +201,7 @@ private function acquireLock($type, $storageFile) return false; } if ($type == LOCK_EX) { - chmod($storageFile, 0600); + chmod($storageFile, 0660 & ~$this->umask); } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index 8b3352fb3..59a9b28ab 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -40,6 +40,34 @@ public function testFileWithTrailingSlash() $this->getSetDelete($cache); } + public function testFileWithDefaultMask() + { + $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; + $cache = new Google_Cache_File($dir); + $cache->set('foo', 'bar'); + + $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); + $method->setAccessible(true); + $filename = $method->invoke($cache, 'foo'); + $stat = stat($filename); + + $this->assertEquals($stat['mode'] & 0777, 0600); + } + + public function testFileWithCustomMask() + { + $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; + $cache = new Google_Cache_File($dir, null, 07); + $cache->set('foo', 'bar'); + + $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); + $method->setAccessible(true); + $filename = $method->invoke($cache, 'foo'); + $stat = stat($filename); + + $this->assertEquals($stat['mode'] & 0777, 0660); + } + public function testNull() { $cache = new Google_Cache_Null(); From 587ff7f85d92d47dd975b12e34f18a2abb5083e7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 11:25:12 -0800 Subject: [PATCH 0938/1274] uses umask function instead of custom umask --- src/Google/Cache/File.php | 8 +++----- tests/Google/CacheTest.php | 20 +++++++++++++++++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index d6172a21f..95ca86dc1 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -30,7 +30,6 @@ class Google_Cache_File implements CacheInterface { const MAX_LOCK_RETRIES = 10; private $path; - private $umask; private $fh; /** @@ -38,11 +37,10 @@ class Google_Cache_File implements CacheInterface */ private $logger; - public function __construct($path, LoggerInterface $logger = null, $umask = 077) + public function __construct($path, LoggerInterface $logger = null) { $this->path = $path; $this->logger = $logger; - $this->umask = $umask; } public function get($key, $expiration = false) @@ -157,7 +155,7 @@ private function getCacheDir($file, $forWrite) // trim the directory separator from the path to prevent double separators $storageDir = rtrim($this->path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $dirHash; if ($forWrite && ! is_dir($storageDir)) { - if (! mkdir($storageDir, 0770 & ~$this->umask, true)) { + if (!mkdir($storageDir, 0777, true)) { $this->log( 'error', 'File cache creation failed', @@ -201,7 +199,7 @@ private function acquireLock($type, $storageFile) return false; } if ($type == LOCK_EX) { - chmod($storageFile, 0660 & ~$this->umask); + chmod($storageFile, 0666 & ~umask()); } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index 59a9b28ab..ab4441d6d 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -40,6 +40,20 @@ public function testFileWithTrailingSlash() $this->getSetDelete($cache); } + public function testFileDirectoryPermissions() + { + $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); + $cache = new Google_Cache_File($dir); + $cache->set('foo', 'bar'); + + $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); + $method->setAccessible(true); + $filename = $method->invoke($cache, 'foo'); + $stat = stat($dir); + + $this->assertEquals(0777 & ~umask(), $stat['mode'] & 0777); + } + public function testFileWithDefaultMask() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; @@ -51,13 +65,13 @@ public function testFileWithDefaultMask() $filename = $method->invoke($cache, 'foo'); $stat = stat($filename); - $this->assertEquals($stat['mode'] & 0777, 0600); + $this->assertEquals(0666 & ~umask(), $stat['mode'] & 0777); } public function testFileWithCustomMask() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; - $cache = new Google_Cache_File($dir, null, 07); + $cache = new Google_Cache_File($dir, null); $cache->set('foo', 'bar'); $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); @@ -65,7 +79,7 @@ public function testFileWithCustomMask() $filename = $method->invoke($cache, 'foo'); $stat = stat($filename); - $this->assertEquals($stat['mode'] & 0777, 0660); + $this->assertEquals(0666 & ~umask(), $stat['mode'] & 0777); } public function testNull() From 73242003bdbcf6e00a5b3cb651b96e36b4cc83dd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 12:59:35 -0800 Subject: [PATCH 0939/1274] use hashed username in cache dir --- src/Google/Cache/File.php | 9 ++++++--- tests/Google/CacheTest.php | 22 ++++------------------ 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 95ca86dc1..0e6b868e9 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -151,11 +151,14 @@ private function getCacheDir($file, $forWrite) // use the first 2 characters of the hash as a directory prefix // this should prevent slowdowns due to huge directory listings // and thus give some basic amount of scalability - $dirHash = substr(md5($file), 0, 2); + $fileHash = substr(md5($file), 0, 2); + $userHash = md5(get_current_user()); + $dirHash = $fileHash . DIRECTORY_SEPARATOR . $userHash; + // trim the directory separator from the path to prevent double separators $storageDir = rtrim($this->path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $dirHash; if ($forWrite && ! is_dir($storageDir)) { - if (!mkdir($storageDir, 0777, true)) { + if (!mkdir($storageDir, 0700, true)) { $this->log( 'error', 'File cache creation failed', @@ -199,7 +202,7 @@ private function acquireLock($type, $storageFile) return false; } if ($type == LOCK_EX) { - chmod($storageFile, 0666 & ~umask()); + chmod($storageFile, 0600); } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index ab4441d6d..e3edbdfdd 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -40,7 +40,7 @@ public function testFileWithTrailingSlash() $this->getSetDelete($cache); } - public function testFileDirectoryPermissions() + public function testCacheDirectoryPermissions() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); $cache = new Google_Cache_File($dir); @@ -51,10 +51,10 @@ public function testFileDirectoryPermissions() $filename = $method->invoke($cache, 'foo'); $stat = stat($dir); - $this->assertEquals(0777 & ~umask(), $stat['mode'] & 0777); + $this->assertEquals(0700, $stat['mode'] & 0777); } - public function testFileWithDefaultMask() + public function testCacheFilePermissions() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; $cache = new Google_Cache_File($dir); @@ -65,21 +65,7 @@ public function testFileWithDefaultMask() $filename = $method->invoke($cache, 'foo'); $stat = stat($filename); - $this->assertEquals(0666 & ~umask(), $stat['mode'] & 0777); - } - - public function testFileWithCustomMask() - { - $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; - $cache = new Google_Cache_File($dir, null); - $cache->set('foo', 'bar'); - - $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); - $method->setAccessible(true); - $filename = $method->invoke($cache, 'foo'); - $stat = stat($filename); - - $this->assertEquals(0666 & ~umask(), $stat['mode'] & 0777); + $this->assertEquals(0600, $stat['mode'] & 0777); } public function testNull() From 7046e4db49b80c751b5ec12e7644fb67c54276fa Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 14:42:48 -0800 Subject: [PATCH 0940/1274] mention removal of loadServiceAccountJson in UPGRADING.md --- UPGRADING.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 1e1174b3e..f654570a4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -141,6 +141,24 @@ $user_to_impersonate = 'user@example.org'; $client->setSubject($user_to_impersonate); ``` +Additionally, `Google_Client::loadServiceAccountJson` has been removed in favor +of `Google_Client::setAuthConfig`: + +**Before** + +```php +$scopes = [ Google_Service_Books::BOOKS ]; +$client->loadServiceAccountJson('/path/to/service-account.json', $scopes); +``` + +**After** + +```php +$scopes = [ Google_Service_Books::BOOKS ]; +$client->setAuthConfig('/path/to/service-account.json'); +$client->setScopes($scopes); +``` + ## `Google_Auth_AppIdentity` has been removed For App Engine authentication, we now use the underlying [`google/auth`][Google Auth] and From f4727b760e88c3e43c667fc058986841b2d3532d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 14:00:39 -0800 Subject: [PATCH 0941/1274] addresses root cache dir permissions issue --- src/Google/Cache/File.php | 24 ++++++++++++++++++++---- tests/Google/CacheTest.php | 16 +++++++++++++++- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 0e6b868e9..1832dfcfa 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -153,20 +153,36 @@ private function getCacheDir($file, $forWrite) // and thus give some basic amount of scalability $fileHash = substr(md5($file), 0, 2); $userHash = md5(get_current_user()); - $dirHash = $fileHash . DIRECTORY_SEPARATOR . $userHash; + $dirHash = $userHash . DIRECTORY_SEPARATOR . $fileHash; // trim the directory separator from the path to prevent double separators - $storageDir = rtrim($this->path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $dirHash; - if ($forWrite && ! is_dir($storageDir)) { + $rootCacheDir = rtrim($this->path, DIRECTORY_SEPARATOR); + $storageDir = $rootCacheDir . DIRECTORY_SEPARATOR . $dirHash; + + if ($forWrite && !is_dir($storageDir)) { + // create root dir + if (!is_dir($rootCacheDir)) { + if (!mkdir($rootCacheDir, 0777, true)) { + $this->log( + 'error', + 'File cache creation failed', + array('dir' => $rootCacheDir) + ); + throw new Google_Cache_Exception("Could not create cache directory: $rootCacheDir"); + } + } + + // create dir for file if (!mkdir($storageDir, 0700, true)) { $this->log( 'error', 'File cache creation failed', array('dir' => $storageDir) ); - throw new Google_Cache_Exception("Could not create storage directory: $storageDir"); + throw new Google_Cache_Exception("Could not create cache directory: $storageDir"); } } + return $storageDir; } diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index e3edbdfdd..c5897d68b 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -40,7 +40,7 @@ public function testFileWithTrailingSlash() $this->getSetDelete($cache); } - public function testCacheDirectoryPermissions() + public function testBaseCacheDirectoryPermissions() { $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); $cache = new Google_Cache_File($dir); @@ -51,6 +51,20 @@ public function testCacheDirectoryPermissions() $filename = $method->invoke($cache, 'foo'); $stat = stat($dir); + $this->assertEquals(0777 & ~umask(), $stat['mode'] & 0777); + } + + public function testCacheDirectoryPermissions() + { + $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); + $cache = new Google_Cache_File($dir); + $cache->set('foo', 'bar'); + + $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); + $method->setAccessible(true); + $filename = $method->invoke($cache, 'foo'); + $stat = stat(dirname($filename)); + $this->assertEquals(0700, $stat['mode'] & 0777); } From d6a29c1399e04b72f9100f93f4a37673ef498573 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 15:55:54 -0800 Subject: [PATCH 0942/1274] removes auth library caching --- src/Google/Client.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 462c6b0f8..aa2256c93 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -1056,7 +1056,11 @@ private function createApplicationDefaultCredentials() protected function getAuthHandler() { - return Google_AuthHandler_AuthHandlerFactory::build($this->getCache()); + // we intentionally do not use the cache because + // the underlying auth library's cache implementation + // is broken. + // @see https://github.com/google/google-api-php-client/issues/821 + return Google_AuthHandler_AuthHandlerFactory::build(); } private function createUserRefreshCredentials($scope, $refreshToken) From 19a4cbb33393ae8978663a390aa8e41529f586cf Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 10 Feb 2016 13:01:44 -0800 Subject: [PATCH 0943/1274] removes createDefaultCache method and fixes tests --- src/Google/Client.php | 16 ---------------- tests/Google/ClientTest.php | 14 +------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index aa2256c93..c9ac53546 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -929,25 +929,9 @@ public function setCache(CacheInterface $cache) */ public function getCache() { - if (!isset($this->cache)) { - $this->cache = $this->createDefaultCache(); - } - return $this->cache; } - protected function createDefaultCache() - { - if ($this->isAppEngine()) { - $cache = new Google_Cache_Memcache(); - } else { - $cacheDir = sys_get_temp_dir() . '/google-api-php-client'; - $cache = new Google_Cache_File($cacheDir); - } - - return $cache; - } - /** * Set the Logger object * @param Psr\Log\LoggerInterface $logger diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 0ab3a6aec..8369b4eb0 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -254,6 +254,7 @@ public function testSettersGetters() $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); + $client->setCache(new Google_Cache_Null()); $this->assertEquals('object', gettype($client->getCache())); try { @@ -268,19 +269,6 @@ public function testSettersGetters() $this->assertEquals($token, $client->getAccessToken()); } - /** - * @requires extension Memcached - */ - public function testAppEngineMemcacheConfig() - { - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Google_Client(); - - $this->assertInstanceOf('Google_Cache_Memcache', $client->getCache()); - - unset($_SERVER['SERVER_SOFTWARE']); - } - public function testAppEngineStreamHandlerConfig() { $this->onlyGuzzle5(); From 8fc178b2f0db9d7fc5dd1ae59ea8a506c1b3efc0 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Kunihiko Date: Thu, 11 Feb 2016 11:50:55 +0900 Subject: [PATCH 0944/1274] use correct get process user function --- src/Google/Cache/File.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 1832dfcfa..06ca11b41 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -152,7 +152,20 @@ private function getCacheDir($file, $forWrite) // this should prevent slowdowns due to huge directory listings // and thus give some basic amount of scalability $fileHash = substr(md5($file), 0, 2); - $userHash = md5(get_current_user()); + $processUser = null; + if (function_exists('posix_geteuid')) { + $processUser = posix_getpwuid(posix_geteuid())['name']; + } elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { + $processUser = get_current_user(); + } + if ($processUser === null) { + $this->log( + 'error', + 'Process User get failed' + ); + throw new Google_Cache_Exception("Could not get process user"); + } + $userHash = md5($processUser); $dirHash = $userHash . DIRECTORY_SEPARATOR . $fileHash; // trim the directory separator from the path to prevent double separators From 275c2ecc91f070d0fd91eaffede1f70a3511b9af Mon Sep 17 00:00:00 2001 From: TAKAHASHI Kunihiko Date: Thu, 11 Feb 2016 17:13:08 +0900 Subject: [PATCH 0945/1274] get process user functions return empty, throws exception --- src/Google/Cache/File.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 06ca11b41..45d14fb9a 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -154,11 +154,11 @@ private function getCacheDir($file, $forWrite) $fileHash = substr(md5($file), 0, 2); $processUser = null; if (function_exists('posix_geteuid')) { - $processUser = posix_getpwuid(posix_geteuid())['name']; + $processUser = posix_getpwuid(posix_geteuid())['name']; } elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - $processUser = get_current_user(); + $processUser = get_current_user(); } - if ($processUser === null) { + if (empty($processUser)) { $this->log( 'error', 'Process User get failed' From 847b2483af2a9c15592a367d658583c01c9a38dc Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 11 Feb 2016 11:59:14 -0800 Subject: [PATCH 0946/1274] phpsec workaround --- src/Google/AccessToken/Verify.php | 23 +++++++++++++++++++++ tests/Google/AccessToken/VerifyTest.php | 27 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 0b22db4cf..e5f7ad46d 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -72,6 +72,9 @@ public function verifyIdToken($idToken, $audience = null) throw new LogicException('id_token cannot be null'); } + // set phpseclib constants if applicable + $this->setPhpsecConstants(); + // Check signature $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { @@ -200,4 +203,24 @@ private function getJwtService() return new $jwtClass; } + + /** + * phpseclib calls "phpinfo" by default, which requires special + * whitelisting in the AppEngine VM environment. This function + * sets constants to bypass the need for phpseclib to check phpinfo + * + * @see phpseclib/Math/BigInteger + * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 + */ + private function setPhpsecConstants() + { + if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { + if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { + define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); + } + if (!defined('CRYPT_RSA_MODE')) { + define('CRYPT_RSA_MODE', RSA::MODE_OPENSSL); + } + } + } } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index adbfca728..cce448144 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -23,6 +23,33 @@ class Google_AccessToken_VerifyTest extends BaseTest { + /** + * This test needs to run before the other verify tests, + * to ensure the constants are not defined. + */ + public function testPhpsecConstants() + { + $client = $this->getClient(); + $verify = new Google_AccessToken_Verify($client->getHttpClient()); + + // set these to values that will be changed + if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED') || defined('CRYPT_RSA_MODE')) { + $this->markTestSkipped('Cannot run test - constants already defined'); + } + + // Pretend we are on App Engine VMs + putenv('GAE_VM=1'); + + $verify->verifyIdToken('a.b.c'); + + putenv('GAE_VM=0'); + + $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); + $rsaMode = constant('CRYPT_RSA_MODE'); + $this->assertEquals(true, $openSslEnable); + $this->assertEquals(phpseclib\Crypt\RSA::MODE_OPENSSL, $rsaMode); + } + /** * Most of the logic for ID token validation is in AuthTest - * this is just a general check to ensure we verify a valid From 9681cb06aec0c84a4edebb59d7e6df6e44308096 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Kunihiko Date: Fri, 12 Feb 2016 07:30:24 +0900 Subject: [PATCH 0947/1274] remove exception at functions return empty --- src/Google/Cache/File.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Google/Cache/File.php b/src/Google/Cache/File.php index 45d14fb9a..ced0cfc65 100644 --- a/src/Google/Cache/File.php +++ b/src/Google/Cache/File.php @@ -160,10 +160,9 @@ private function getCacheDir($file, $forWrite) } if (empty($processUser)) { $this->log( - 'error', + 'notice', 'Process User get failed' ); - throw new Google_Cache_Exception("Could not get process user"); } $userHash = md5($processUser); $dirHash = $userHash . DIRECTORY_SEPARATOR . $fileHash; From 942e92226712ff32d110ea4567c2ccbffa56c2b5 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 5 Feb 2016 17:42:49 -0800 Subject: [PATCH 0948/1274] updates google services and tests to match --- examples/batch.php | 24 +- examples/idtoken.php | 13 +- examples/index.php | 7 +- examples/large-file-upload.php | 11 +- examples/multi-api.php | 9 +- examples/service-account.php | 15 +- examples/simple-file-upload.php | 15 +- examples/simple-query.php | 42 +- examples/url-shortener.php | 7 +- src/Google/Service/AdExchangeBuyer.php | 4497 +++++------------ src/Google/Service/AdExchangeSeller.php | 100 +- src/Google/Service/AdSense.php | 301 +- src/Google/Service/AdSenseHost.php | 132 +- src/Google/Service/Analytics.php | 158 +- src/Google/Service/AndroidEnterprise.php | 727 ++- src/Google/Service/AndroidPublisher.php | 79 +- src/Google/Service/AppState.php | 2 +- src/Google/Service/Appengine.php | 777 +-- src/Google/Service/Appsactivity.php | 30 +- src/Google/Service/Autoscaler.php | 32 +- src/Google/Service/Bigquery.php | 376 +- src/Google/Service/Blogger.php | 256 +- src/Google/Service/Books.php | 920 +++- src/Google/Service/Calendar.php | 598 ++- src/Google/Service/CivicInfo.php | 22 +- src/Google/Service/Classroom.php | 90 +- src/Google/Service/CloudMonitoring.php | 102 +- src/Google/Service/CloudUserAccounts.php | 72 +- src/Google/Service/Cloudbilling.php | 26 +- src/Google/Service/Cloudbuild.php | 741 +++ src/Google/Service/Clouddebugger.php | 209 +- src/Google/Service/Cloudlatencytest.php | 2 +- src/Google/Service/Cloudresourcemanager.php | 221 +- src/Google/Service/Cloudtrace.php | 140 +- src/Google/Service/Compute.php | 3808 +++++++++----- src/Google/Service/Container.php | 2 +- src/Google/Service/Coordinate.php | 150 +- src/Google/Service/Customsearch.php | 158 +- src/Google/Service/DataTransfer.php | 22 +- src/Google/Service/Dataflow.php | 525 +- src/Google/Service/Dataproc.php | 321 ++ src/Google/Service/Datastore.php | 6 +- src/Google/Service/DeploymentManager.php | 365 +- src/Google/Service/Dfareporting.php | 1755 +++---- src/Google/Service/Directory.php | 593 ++- src/Google/Service/Dns.php | 28 +- src/Google/Service/DoubleClickBidManager.php | 151 +- src/Google/Service/Doubleclicksearch.php | 12 +- src/Google/Service/Drive.php | 4736 +++++------------- src/Google/Service/Fitness.php | 24 +- src/Google/Service/Freebase.php | 142 +- src/Google/Service/Fusiontables.php | 142 +- src/Google/Service/Games.php | 287 +- src/Google/Service/GamesConfiguration.php | 22 +- src/Google/Service/GamesManagement.php | 23 +- src/Google/Service/Genomics.php | 873 +++- src/Google/Service/Gmail.php | 110 +- src/Google/Service/GroupsMigration.php | 2 +- src/Google/Service/Groupssettings.php | 2 +- src/Google/Service/Iam.php | 1105 ++++ src/Google/Service/IdentityToolkit.php | 385 +- src/Google/Service/Kgsearch.php | 178 + src/Google/Service/Licensing.php | 26 +- src/Google/Service/Logging.php | 1208 ++++- src/Google/Service/Manager.php | 42 +- src/Google/Service/Mirror.php | 20 +- src/Google/Service/Oauth2.php | 4 +- src/Google/Service/Pagespeedonline.php | 28 +- src/Google/Service/Partners.php | 232 +- src/Google/Service/People.php | 2004 ++++++++ src/Google/Service/Playmoviespartner.php | 150 +- src/Google/Service/Plus.php | 886 +--- src/Google/Service/PlusDomains.php | 118 +- src/Google/Service/Prediction.php | 32 +- src/Google/Service/Proximitybeacon.php | 18 +- src/Google/Service/Pubsub.php | 77 +- src/Google/Service/QPXExpress.php | 2 +- src/Google/Service/Replicapool.php | 26 +- src/Google/Service/Replicapoolupdater.php | 38 +- src/Google/Service/Reports.php | 108 +- src/Google/Service/Reseller.php | 14 +- src/Google/Service/Resourceviews.php | 38 +- src/Google/Service/SQLAdmin.php | 122 +- src/Google/Service/Script.php | 16 +- src/Google/Service/ServiceRegistry.php | 973 ++++ src/Google/Service/ShoppingContent.php | 398 +- src/Google/Service/SiteVerification.php | 2 +- src/Google/Service/Spectrum.php | 2 +- src/Google/Service/Storage.php | 406 +- src/Google/Service/Storagetransfer.php | 34 +- src/Google/Service/TagManager.php | 460 +- src/Google/Service/Taskqueue.php | 2 +- src/Google/Service/Tasks.php | 62 +- src/Google/Service/Translate.php | 12 +- src/Google/Service/Urlshortener.php | 8 +- src/Google/Service/Vision.php | 1007 ++++ src/Google/Service/Webfonts.php | 6 +- src/Google/Service/Webmasters.php | 26 +- src/Google/Service/YouTube.php | 3153 ++++++++---- src/Google/Service/YouTubeAnalytics.php | 76 +- src/Google/Service/YouTubeReporting.php | 56 +- tests/Google/Http/MediaFileUploadTest.php | 14 +- tests/examples/idTokenTest.php | 6 + tests/examples/largeFileUploadTest.php | 6 + tests/examples/simpleFileUploadTest.php | 23 +- 105 files changed, 23920 insertions(+), 14701 deletions(-) create mode 100644 src/Google/Service/Cloudbuild.php create mode 100644 src/Google/Service/Dataproc.php create mode 100644 src/Google/Service/Iam.php create mode 100644 src/Google/Service/Kgsearch.php create mode 100644 src/Google/Service/People.php create mode 100644 src/Google/Service/ServiceRegistry.php create mode 100644 src/Google/Service/Vision.php diff --git a/examples/batch.php b/examples/batch.php index 5d546562b..94118185f 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -38,7 +38,7 @@ // Warn if the API key isn't set. if (!$apiKey = getApiKey()) { echo missingApiKeyWarning(); - exit; + return; } $client->setDeveloperKey($apiKey); @@ -70,14 +70,18 @@ at once. ************************************************/ $results = $batch->execute(); +?> -echo "

Results Of Call 1:

"; -foreach ($results['response-thoreau'] as $item) { - echo $item['volumeInfo']['title'], "
\n"; -} -echo "

Results Of Call 2:

"; -foreach ($results['response-shaw'] as $item) { - echo $item['volumeInfo']['title'], "
\n"; -} +

Results Of Call 1:

+ + +
+ + +

Results Of Call 2:

+ + +
+ -echo pageFooter(__FILE__); + diff --git a/examples/idtoken.php b/examples/idtoken.php index 1f8a027a4..f711736a4 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -24,7 +24,8 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - return missingOAuth2CredentialsWarning(); + echo missingOAuth2CredentialsWarning(); + return; } /************************************************ @@ -60,7 +61,7 @@ $client->setAccessToken($token); // store in the session also - $_SESSION['id_token'] = $token; + $_SESSION['id_token_token'] = $token; // redirect back to the example header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); @@ -71,10 +72,10 @@ requests, else we generate an authentication URL. ************************************************/ if ( - !empty($_SESSION['id_token']) - && isset($_SESSION['id_token']['id_token']) + !empty($_SESSION['id_token_token']) + && isset($_SESSION['id_token_token']['id_token']) ) { - $client->setAccessToken($_SESSION['id_token']); + $client->setAccessToken($_SESSION['id_token_token']); } else { $authUrl = $client->createAuthUrl(); } @@ -105,4 +106,4 @@
- + diff --git a/examples/index.php b/examples/index.php index 1949cbf4b..5ae2e9cf4 100644 --- a/examples/index.php +++ b/examples/index.php @@ -6,10 +6,10 @@ php -S localhost:8080 -t examples/ And then browse to "localhost:8080" in your web browser - + - + @@ -39,4 +39,5 @@
  • An example of verifying and retrieving the id token.
  • An example of using multiple APIs.
  • - + + diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index eb1ece8c6..1afda2cdd 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -24,7 +24,8 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - return missingOAuth2CredentialsWarning(); + echo missingOAuth2CredentialsWarning(); + return; } /************************************************ @@ -89,12 +90,12 @@ } $file = new Google_Service_Drive_DriveFile(); - $file->title = "Big File"; + $file->name = "Big File"; $chunkSizeBytes = 1 * 1024 * 1024; // Call the API with the media upload, defer so it doesn't immediately return. $client->setDefer(true); - $request = $service->files->insert($file); + $request = $service->files->create($file); // Create a media file upload to represent our upload process. $media = new Google_Http_MediaFileUpload( @@ -155,7 +156,7 @@ function readVideoChunk ($handle, $chunkSize)

    Your call was successful! Check your drive for this file:

    -

    title ?>

    +

    name ?>

    @@ -164,4 +165,4 @@ function readVideoChunk ($handle, $chunkSize)
    - + diff --git a/examples/multi-api.php b/examples/multi-api.php index bc56f92f0..0093425e5 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -25,7 +25,8 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - return missingOAuth2CredentialsWarning(); + echo missingOAuth2CredentialsWarning(); + return; } /************************************************ @@ -89,7 +90,7 @@ if ($client->getAccessToken()) { $_SESSION['access_token'] = $client->getAccessToken(); - $dr_results = $dr_service->files->listFiles(array('maxResults' => 10)); + $dr_results = $dr_service->files->listFiles(array('pageSize' => 10)); $yt_channels = $yt_service->channels->listChannels('contentDetails', array("mine" => true)); $likePlaylist = $yt_channels[0]->contentDetails->relatedPlaylists->likes; @@ -107,7 +108,7 @@

    Results Of Drive List:

    - title ?>
    + name ?>

    Results Of YouTube Likes:

    @@ -118,4 +119,4 @@
    - + diff --git a/examples/service-account.php b/examples/service-account.php index bee5df7b3..6c23f0d52 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -48,7 +48,7 @@ $client->useApplicationDefaultCredentials(); } else { echo missingServiceAccountDetailsWarning(); - exit; + return; } $client->setApplicationName("Client_Library_Examples"); @@ -61,9 +61,12 @@ ************************************************/ $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); -echo "

    Results Of Call:

    "; -foreach ($results as $item) { - echo $item['volumeInfo']['title'], "
    \n"; -} +?> + +

    Results Of Call:

    + + +
    + -echo pageFooter(__FILE__); + diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index eab6a11e1..21cb50f28 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -24,7 +24,8 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - return missingOAuth2CredentialsWarning(); + echo missingOAuth2CredentialsWarning(); + return; } /************************************************ @@ -88,7 +89,7 @@ // This is uploading a file directly, with no metadata associated. $file = new Google_Service_Drive_DriveFile(); - $result = $service->files->insert( + $result = $service->files->create( $file, array( 'data' => file_get_contents(TESTFILE), @@ -99,8 +100,8 @@ // Now lets try and send the metadata as well using multipart! $file = new Google_Service_Drive_DriveFile(); - $file->setTitle("Hello World!"); - $result2 = $service->files->insert( + $file->setName("Hello World!"); + $result2 = $service->files->create( $file, array( 'data' => file_get_contents(TESTFILE), @@ -120,8 +121,8 @@

    Your call was successful! Check your drive for the following files:

    @@ -131,4 +132,4 @@
    - + diff --git a/examples/simple-query.php b/examples/simple-query.php index e02c34cf7..3242be5e8 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -32,7 +32,7 @@ // Warn if the API key isn't set. if (!$apiKey = getApiKey()) { echo missingApiKeyWarning(); - exit; + return; } $client->setDeveloperKey($apiKey); @@ -50,31 +50,35 @@ $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); + /************************************************ + This is an example of deferring a call. + ***********************************************/ +$client->setDefer(true); +$optParams = array('filter' => 'free-ebooks'); +$request = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$resultsDeferred = $client->execute($request); + /************************************************ - This call returns a list of volumes, so we + These calls returns a list of volumes, so we can iterate over them as normal with any array. Some calls will return a single item which we can immediately use. The individual responses are typed as Google_Service_Books_Volume, but can be treated as an array. - ***********************************************/ -echo "

    Results Of Call:

    "; -foreach ($results as $item) { - echo $item['volumeInfo']['title'], "
    \n"; -} + ************************************************/ +?> -/************************************************ - This is an example of deferring a call. - ***********************************************/ -$client->setDefer(true); -$optParams = array('filter' => 'free-ebooks'); -$request = $service->volumes->listVolumes('Henry David Thoreau', $optParams); -$results = $client->execute($request); +

    Results Of Call:

    + + +
    + -echo "

    Results Of Deferred Call:

    "; -foreach ($results as $item) { - echo $item['volumeInfo']['title'], "
    \n"; -} +

    Results Of Deferred Call:

    + + +
    + -echo pageFooter(__FILE__); + diff --git a/examples/url-shortener.php b/examples/url-shortener.php index cb740a94c..f9110984f 100644 --- a/examples/url-shortener.php +++ b/examples/url-shortener.php @@ -24,7 +24,8 @@ * Ensure you've downloaded your oauth credentials ************************************************/ if (!$oauth_credentials = getOAuthCredentialsFile()) { - return missingOAuth2CredentialsWarning(); + echo missingOAuth2CredentialsWarning(); + return; } /************************************************ @@ -128,5 +129,5 @@ Create another
    -clientaccess = new Google_Service_AdExchangeBuyer_Clientaccess_Resource( + $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, - 'clientaccess', + 'creatives', array( 'methods' => array( - 'delete' => array( - 'path' => 'clientAccess/{clientAccountId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sponsorAccountId' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'clientAccess/{clientAccountId}', - 'httpMethod' => 'GET', + 'addDeal' => array( + 'path' => 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}', + 'httpMethod' => 'POST', 'parameters' => array( - 'clientAccountId' => array( + 'accountId' => array( 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sponsorAccountId' => array( - 'location' => 'query', 'type' => 'integer', 'required' => true, ), - ), - ),'insert' => array( - 'path' => 'clientAccess', - 'httpMethod' => 'POST', - 'parameters' => array( - 'clientAccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sponsorAccountId' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'clientAccess', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'clientAccess/{clientAccountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'clientAccountId' => array( + 'buyerCreativeId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'sponsorAccountId' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'clientAccess/{clientAccountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'clientAccountId' => array( + 'dealId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'sponsorAccountId' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), ), - ), - ) - ) - ); - $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( - $this, - $this->serviceName, - 'creatives', - array( - 'methods' => array( - 'get' => array( + ),'get' => array( 'path' => 'creatives/{accountId}/{buyerCreativeId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -304,17 +232,10 @@ public function __construct(Google_Client $client) 'path' => 'creatives', 'httpMethod' => 'GET', 'parameters' => array( - 'openAuctionStatusFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( + 'accountId' => array( 'location' => 'query', 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', + 'repeated' => true, ), 'buyerCreativeId' => array( 'location' => 'query', @@ -325,26 +246,33 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'accountId' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', - 'repeated' => true, + ), + 'openAuctionStatusFilter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', ), ), - ), - ) - ) - ); - $this->deals = new Google_Service_AdExchangeBuyer_Deals_Resource( - $this, - $this->serviceName, - 'deals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'deals/{dealId}', - 'httpMethod' => 'GET', + ),'removeDeal' => array( + 'path' => 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}', + 'httpMethod' => 'POST', 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'buyerCreativeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'dealId' => array( 'location' => 'path', 'type' => 'string', @@ -362,40 +290,40 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'delete' => array( - 'path' => 'marketplaceOrders/{orderId}/deals/delete', + 'path' => 'proposals/{proposalId}/deals/delete', 'httpMethod' => 'POST', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => 'marketplaceOrders/{orderId}/deals/insert', + 'path' => 'proposals/{proposalId}/deals/insert', 'httpMethod' => 'POST', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'marketplaceOrders/{orderId}/deals', + 'path' => 'proposals/{proposalId}/deals', 'httpMethod' => 'GET', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'update' => array( - 'path' => 'marketplaceOrders/{orderId}/deals/update', + 'path' => 'proposals/{proposalId}/deals/update', 'httpMethod' => 'POST', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -412,20 +340,20 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'insert' => array( - 'path' => 'marketplaceOrders/{orderId}/notes/insert', + 'path' => 'proposals/{proposalId}/notes/insert', 'httpMethod' => 'POST', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'marketplaceOrders/{orderId}/notes', + 'path' => 'proposals/{proposalId}/notes', 'httpMethod' => 'GET', 'parameters' => array( - 'orderId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -435,27 +363,36 @@ public function __construct(Google_Client $client) ) ) ); - $this->marketplaceoffers = new Google_Service_AdExchangeBuyer_Marketplaceoffers_Resource( + $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( $this, $this->serviceName, - 'marketplaceoffers', + 'performanceReport', array( 'methods' => array( - 'get' => array( - 'path' => 'marketplaceOffers/{offerId}', + 'list' => array( + 'path' => 'performancereport', 'httpMethod' => 'GET', 'parameters' => array( - 'offerId' => array( - 'location' => 'path', + 'accountId' => array( + 'location' => 'query', 'type' => 'string', 'required' => true, ), - ), - ),'search' => array( - 'path' => 'marketplaceOffers/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pqlQuery' => array( + 'endDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'startDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -464,90 +401,87 @@ public function __construct(Google_Client $client) ) ) ); - $this->marketplaceorders = new Google_Service_AdExchangeBuyer_Marketplaceorders_Resource( + $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( $this, $this->serviceName, - 'marketplaceorders', + 'pretargetingConfig', array( 'methods' => array( - 'get' => array( - 'path' => 'marketplaceOrders/{orderId}', - 'httpMethod' => 'GET', + 'delete' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'DELETE', 'parameters' => array( - 'orderId' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => 'marketplaceOrders/insert', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'marketplaceOrders/{orderId}/{revisionNumber}/{updateAction}', - 'httpMethod' => 'PATCH', + ),'get' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'GET', 'parameters' => array( - 'orderId' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'revisionNumber' => array( + 'configId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'updateAction' => array( + ), + ),'insert' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'search' => array( - 'path' => 'marketplaceOrders/search', + ),'list' => array( + 'path' => 'pretargetingconfigs/{accountId}', 'httpMethod' => 'GET', 'parameters' => array( - 'pqlQuery' => array( - 'location' => 'query', + 'accountId' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), ), - ),'update' => array( - 'path' => 'marketplaceOrders/{orderId}/{revisionNumber}/{updateAction}', - 'httpMethod' => 'PUT', + ),'patch' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PATCH', 'parameters' => array( - 'orderId' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'revisionNumber' => array( + 'configId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'updateAction' => array( + ), + ),'update' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ), - ) - ) - ); - $this->negotiationrounds = new Google_Service_AdExchangeBuyer_Negotiationrounds_Resource( - $this, - $this->serviceName, - 'negotiationrounds', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'negotiations/{negotiationId}/negotiationrounds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'negotiationId' => array( + 'configId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -557,181 +491,99 @@ public function __construct(Google_Client $client) ) ) ); - $this->negotiations = new Google_Service_AdExchangeBuyer_Negotiations_Resource( + $this->products = new Google_Service_AdExchangeBuyer_Products_Resource( $this, $this->serviceName, - 'negotiations', + 'products', array( 'methods' => array( 'get' => array( - 'path' => 'negotiations/{negotiationId}', + 'path' => 'products/{productId}', 'httpMethod' => 'GET', 'parameters' => array( - 'negotiationId' => array( + 'productId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => 'negotiations', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'negotiations', + ),'search' => array( + 'path' => 'products/search', 'httpMethod' => 'GET', - 'parameters' => array(), + 'parameters' => array( + 'pqlQuery' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ), ) ) ); - $this->offers = new Google_Service_AdExchangeBuyer_Offers_Resource( + $this->proposals = new Google_Service_AdExchangeBuyer_Proposals_Resource( $this, $this->serviceName, - 'offers', + 'proposals', array( 'methods' => array( 'get' => array( - 'path' => 'offers/{offerId}', + 'path' => 'proposals/{proposalId}', 'httpMethod' => 'GET', 'parameters' => array( - 'offerId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => 'offers', + 'path' => 'proposals/insert', 'httpMethod' => 'POST', 'parameters' => array(), - ),'list' => array( - 'path' => 'offers', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( - $this, - $this->serviceName, - 'performanceReport', - array( - 'methods' => array( - 'list' => array( - 'path' => 'performancereport', - 'httpMethod' => 'GET', + ),'patch' => array( + 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}', + 'httpMethod' => 'PATCH', 'parameters' => array( - 'accountId' => array( - 'location' => 'query', + 'proposalId' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'endDateTime' => array( - 'location' => 'query', + 'revisionNumber' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'startDateTime' => array( - 'location' => 'query', + 'updateAction' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + ), + ),'search' => array( + 'path' => 'proposals/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pqlQuery' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ), - ) - ) - ); - $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( - $this, - $this->serviceName, - 'pretargetingConfig', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PATCH', + ),'update' => array( + 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}', + 'httpMethod' => 'PUT', 'parameters' => array( - 'accountId' => array( + 'proposalId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( + 'revisionNumber' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'configId' => array( + 'updateAction' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -925,118 +777,30 @@ public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Bu } /** - * The "clientaccess" collection of methods. + * The "creatives" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $clientaccess = $adexchangebuyerService->clientaccess; + * $creatives = $adexchangebuyerService->creatives; * */ -class Google_Service_AdExchangeBuyer_Clientaccess_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource { /** - * (clientaccess.delete) - * - * @param string $clientAccountId - * @param int $sponsorAccountId - * @param array $optParams Optional parameters. - */ - public function delete($clientAccountId, $sponsorAccountId, $optParams = array()) - { - $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * (clientaccess.get) - * - * @param string $clientAccountId - * @param int $sponsorAccountId - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities - */ - public function get($clientAccountId, $sponsorAccountId, $optParams = array()) - { - $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); - } - - /** - * (clientaccess.insert) - * - * @param Google_ClientAccessCapabilities $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string clientAccountId - * @opt_param int sponsorAccountId - * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities - */ - public function insert(Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); - } - - /** - * (clientaccess.listClientaccess) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse - */ - public function listClientaccess($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse"); - } - - /** - * (clientaccess.patch) - * - * @param string $clientAccountId - * @param int $sponsorAccountId - * @param Google_ClientAccessCapabilities $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities - */ - public function patch($clientAccountId, $sponsorAccountId, Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) - { - $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); - } - - /** - * (clientaccess.update) + * Add a deal id association for the creative. (creatives.addDeal) * - * @param string $clientAccountId - * @param int $sponsorAccountId - * @param Google_ClientAccessCapabilities $postBody + * @param int $accountId The id for the account that will serve this creative. + * @param string $buyerCreativeId The buyer-specific id for this creative. + * @param string $dealId The id of the deal id to associate with this creative. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_ClientAccessCapabilities */ - public function update($clientAccountId, $sponsorAccountId, Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array()) + public function addDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) { - $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities"); + return $this->call('addDeal', array($params)); } -} - -/** - * The "creatives" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $creatives = $adexchangebuyerService->creatives; - * - */ -class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource -{ /** * Gets the status for a single creative. A creative will be available 30-40 @@ -1074,19 +838,19 @@ public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optPa * * @param array $optParams Optional parameters. * - * @opt_param string openAuctionStatusFilter When specified, only creatives - * having the given open auction status are returned. + * @opt_param int accountId When specified, only creatives for the given account + * ids are returned. + * @opt_param string buyerCreativeId When specified, only creatives for the + * given buyer creative ids are returned. + * @opt_param string dealsStatusFilter When specified, only creatives having the + * given deals status are returned. * @opt_param string maxResults Maximum number of entries returned on one result * page. If not set, the default is 100. Optional. + * @opt_param string openAuctionStatusFilter When specified, only creatives + * having the given open auction 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 buyerCreativeId When specified, only creatives for the - * given buyer creative ids are returned. - * @opt_param string dealsStatusFilter When specified, only creatives having the - * given direct deals status are returned. - * @opt_param int accountId When specified, only creatives for the given account - * ids are returned. * @return Google_Service_AdExchangeBuyer_CreativesList */ public function listCreatives($optParams = array()) @@ -1095,31 +859,21 @@ public function listCreatives($optParams = array()) $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList"); } -} - -/** - * The "deals" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $deals = $adexchangebuyerService->deals; - * - */ -class Google_Service_AdExchangeBuyer_Deals_Resource extends Google_Service_Resource -{ /** - * Gets the requested deal. (deals.get) + * Remove a deal id associated with the creative. (creatives.removeDeal) * - * @param string $dealId + * @param int $accountId The id for the account that will serve this creative. + * @param string $buyerCreativeId The buyer-specific id for this creative. + * @param string $dealId The id of the deal id to disassociate with this + * creative. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_NegotiationDto */ - public function get($dealId, $optParams = array()) + public function removeDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) { - $params = array('dealId' => $dealId); + $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); + return $this->call('removeDeal', array($params)); } } @@ -1135,61 +889,62 @@ class Google_Service_AdExchangeBuyer_Marketplacedeals_Resource extends Google_Se { /** - * Delete the specified deals from the order (marketplacedeals.delete) + * Delete the specified deals from the proposal (marketplacedeals.delete) * - * @param string $orderId The orderId to delete deals from. + * @param string $proposalId The proposalId to delete deals from. * @param Google_DeleteOrderDealsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse */ - public function delete($orderId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array()) + public function delete($proposalId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse"); } /** - * Add new deals for the specified order (marketplacedeals.insert) + * Add new deals for the specified proposal (marketplacedeals.insert) * - * @param string $orderId OrderId for which deals need to be added. + * @param string $proposalId proposalId for which deals need to be added. * @param Google_AddOrderDealsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse */ - public function insert($orderId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array()) + public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse"); } /** - * List all the deals for a given order (marketplacedeals.listMarketplacedeals) + * List all the deals for a given proposal + * (marketplacedeals.listMarketplacedeals) * - * @param string $orderId The orderId to get deals for. + * @param string $proposalId The proposalId to get deals for. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse */ - public function listMarketplacedeals($orderId, $optParams = array()) + public function listMarketplacedeals($proposalId, $optParams = array()) { - $params = array('orderId' => $orderId); + $params = array('proposalId' => $proposalId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse"); } /** - * Replaces all the deals in the order with the passed in deals + * Replaces all the deals in the proposal with the passed in deals * (marketplacedeals.update) * - * @param string $orderId The orderId to edit deals on. + * @param string $proposalId The proposalId to edit deals on. * @param Google_EditAllOrderDealsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse */ - public function update($orderId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array()) + public function update($proposalId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse"); } @@ -1207,451 +962,315 @@ class Google_Service_AdExchangeBuyer_Marketplacenotes_Resource extends Google_Se { /** - * Add notes to the order (marketplacenotes.insert) + * Add notes to the proposal (marketplacenotes.insert) * - * @param string $orderId The orderId to add notes for. + * @param string $proposalId The proposalId to add notes for. * @param Google_AddOrderNotesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_AddOrderNotesResponse */ - public function insert($orderId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array()) + public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderNotesResponse"); } /** - * Get all the notes associated with an order + * Get all the notes associated with a proposal * (marketplacenotes.listMarketplacenotes) * - * @param string $orderId The orderId to get notes for. + * @param string $proposalId The proposalId to get notes for. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_GetOrderNotesResponse */ - public function listMarketplacenotes($orderId, $optParams = array()) + public function listMarketplacenotes($proposalId, $optParams = array()) { - $params = array('orderId' => $orderId); + $params = array('proposalId' => $proposalId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderNotesResponse"); } } /** - * The "marketplaceoffers" collection of methods. + * The "performanceReport" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $marketplaceoffers = $adexchangebuyerService->marketplaceoffers; + * $performanceReport = $adexchangebuyerService->performanceReport; * */ -class Google_Service_AdExchangeBuyer_Marketplaceoffers_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource { /** - * Gets the requested negotiation. (marketplaceoffers.get) - * - * @param string $offerId The offerId for the offer to get the head revision - * for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_MarketplaceOffer - */ - public function get($offerId, $optParams = array()) - { - $params = array('offerId' => $offerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOffer"); - } - - /** - * Gets the requested negotiation. (marketplaceoffers.search) + * Retrieves the authenticated user's list of performance metrics. + * (performanceReport.listPerformanceReport) * + * @param string $accountId The account id to get the reports. + * @param string $endDateTime The end time of the report in ISO 8601 timestamp + * format using UTC. + * @param string $startDateTime The start time of the report in ISO 8601 + * timestamp format using UTC. * @param array $optParams Optional parameters. * - * @opt_param string pqlQuery The pql query used to query for offers. - * @return Google_Service_AdExchangeBuyer_GetOffersResponse + * @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 + * performance reports. To retrieve the next page, set this parameter to the + * value of "nextPageToken" from the previous response. Optional. + * @return Google_Service_AdExchangeBuyer_PerformanceReportList */ - public function search($optParams = array()) + public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime); $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse"); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList"); } } /** - * The "marketplaceorders" collection of methods. + * The "pretargetingConfig" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $marketplaceorders = $adexchangebuyerService->marketplaceorders; + * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; * */ -class Google_Service_AdExchangeBuyer_Marketplaceorders_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource { /** - * Get an order given its id (marketplaceorders.get) + * Deletes an existing pretargeting config. (pretargetingConfig.delete) * - * @param string $orderId Id of the order to retrieve. + * @param string $accountId The account id to delete the pretargeting config + * for. + * @param string $configId The specific id of the configuration to delete. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_MarketplaceOrder */ - public function get($orderId, $optParams = array()) + public function delete($accountId, $configId, $optParams = array()) { - $params = array('orderId' => $orderId); + $params = array('accountId' => $accountId, 'configId' => $configId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + return $this->call('delete', array($params)); } /** - * Create the given list of orders (marketplaceorders.insert) + * Gets a specific pretargeting configuration (pretargetingConfig.get) * - * @param Google_CreateOrdersRequest $postBody + * @param string $accountId The account id to get the pretargeting config for. + * @param string $configId The specific id of the configuration to retrieve. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_CreateOrdersResponse + * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ - public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array()) + public function get($accountId, $configId, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('accountId' => $accountId, 'configId' => $configId); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse"); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } /** - * Update the given order. This method supports patch semantics. - * (marketplaceorders.patch) + * Inserts a new pretargeting configuration. (pretargetingConfig.insert) * - * @param string $orderId The order id to update. - * @param string $revisionNumber The last known revision number to update. If - * the head revision in the marketplace database has since changed, an error - * will be thrown. The caller should then fetch the lastest order at head - * revision and retry the update at that revision. - * @param string $updateAction The proposed action to take on the order. - * @param Google_MarketplaceOrder $postBody + * @param string $accountId The account id to insert the pretargeting config + * for. + * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_MarketplaceOrder + * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ - public function patch($orderId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_MarketplaceOrder $postBody, $optParams = array()) + public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } /** - * Search for orders using pql query (marketplaceorders.search) + * Retrieves a list of the authenticated user's pretargeting configurations. + * (pretargetingConfig.listPretargetingConfig) * + * @param string $accountId The account id to get the pretargeting configs for. * @param array $optParams Optional parameters. - * - * @opt_param string pqlQuery Query string to retrieve specific orders. - * @return Google_Service_AdExchangeBuyer_GetOrdersResponse + * @return Google_Service_AdExchangeBuyer_PretargetingConfigList */ - public function search($optParams = array()) + public function listPretargetingConfig($accountId, $optParams = array()) { - $params = array(); + $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse"); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); } /** - * Update the given order (marketplaceorders.update) + * Updates an existing pretargeting config. This method supports patch + * semantics. (pretargetingConfig.patch) * - * @param string $orderId The order id to update. - * @param string $revisionNumber The last known revision number to update. If - * the head revision in the marketplace database has since changed, an error - * will be thrown. The caller should then fetch the lastest order at head - * revision and retry the update at that revision. - * @param string $updateAction The proposed action to take on the order. - * @param Google_MarketplaceOrder $postBody + * @param string $accountId The account id to update the pretargeting config + * for. + * @param string $configId The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_MarketplaceOrder + * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ - public function update($orderId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_MarketplaceOrder $postBody, $optParams = array()) + public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { - $params = array('orderId' => $orderId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_MarketplaceOrder"); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } -} - -/** - * The "negotiationrounds" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $negotiationrounds = $adexchangebuyerService->negotiationrounds; - * - */ -class Google_Service_AdExchangeBuyer_Negotiationrounds_Resource extends Google_Service_Resource -{ /** - * Adds the requested negotiationRound to the requested negotiation. - * (negotiationrounds.insert) + * Updates an existing pretargeting config. (pretargetingConfig.update) * - * @param string $negotiationId - * @param Google_NegotiationRoundDto $postBody + * @param string $accountId The account id to update the pretargeting config + * for. + * @param string $configId The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_NegotiationRoundDto + * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ - public function insert($negotiationId, Google_Service_AdExchangeBuyer_NegotiationRoundDto $postBody, $optParams = array()) + public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { - $params = array('negotiationId' => $negotiationId, 'postBody' => $postBody); + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_NegotiationRoundDto"); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } } /** - * The "negotiations" collection of methods. + * The "products" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $negotiations = $adexchangebuyerService->negotiations; + * $products = $adexchangebuyerService->products; * */ -class Google_Service_AdExchangeBuyer_Negotiations_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_Products_Resource extends Google_Service_Resource { /** - * Gets the requested negotiation. (negotiations.get) + * Gets the requested product by id. (products.get) * - * @param string $negotiationId + * @param string $productId The id for the product to get the head revision for. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_NegotiationDto + * @return Google_Service_AdExchangeBuyer_Product */ - public function get($negotiationId, $optParams = array()) + public function get($productId, $optParams = array()) { - $params = array('negotiationId' => $negotiationId); + $params = array('productId' => $productId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Product"); } /** - * Creates or updates the requested negotiation. (negotiations.insert) + * Gets the requested product. (products.search) * - * @param Google_NegotiationDto $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_NegotiationDto - */ - public function insert(Google_Service_AdExchangeBuyer_NegotiationDto $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_NegotiationDto"); - } - - /** - * Lists all negotiations the authenticated user has access to. - * (negotiations.listNegotiations) * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_GetNegotiationsResponse + * @opt_param string pqlQuery The pql query used to query for products. + * @return Google_Service_AdExchangeBuyer_GetOffersResponse */ - public function listNegotiations($optParams = array()) + public function search($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetNegotiationsResponse"); + return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse"); } } /** - * The "offers" collection of methods. + * The "proposals" collection of methods. * Typical usage is: * * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $offers = $adexchangebuyerService->offers; + * $proposals = $adexchangebuyerService->proposals; * */ -class Google_Service_AdExchangeBuyer_Offers_Resource extends Google_Service_Resource +class Google_Service_AdExchangeBuyer_Proposals_Resource extends Google_Service_Resource { /** - * Gets the requested offer. (offers.get) + * Get a proposal given its id (proposals.get) * - * @param string $offerId + * @param string $proposalId Id of the proposal to retrieve. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_OfferDto + * @return Google_Service_AdExchangeBuyer_Proposal */ - public function get($offerId, $optParams = array()) + public function get($proposalId, $optParams = array()) { - $params = array('offerId' => $offerId); + $params = array('proposalId' => $proposalId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_OfferDto"); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Proposal"); } /** - * Creates or updates the requested offer. (offers.insert) + * Create the given list of proposals (proposals.insert) * - * @param Google_OfferDto $postBody + * @param Google_CreateOrdersRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_OfferDto + * @return Google_Service_AdExchangeBuyer_CreateOrdersResponse */ - public function insert(Google_Service_AdExchangeBuyer_OfferDto $postBody, $optParams = array()) + public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_OfferDto"); - } - - /** - * Lists all offers the authenticated user has access to. (offers.listOffers) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_ListOffersResponse - */ - public function listOffers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_ListOffersResponse"); - } -} - -/** - * The "performanceReport" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $performanceReport = $adexchangebuyerService->performanceReport; - * - */ -class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the authenticated user's list of performance metrics. - * (performanceReport.listPerformanceReport) - * - * @param string $accountId The account id to get the reports. - * @param string $endDateTime The end time of the report in ISO 8601 timestamp - * format using UTC. - * @param string $startDateTime The start time of the report in ISO 8601 - * timestamp format using UTC. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A continuation token, used to page through - * performance reports. To retrieve the next page, set this parameter to the - * value of "nextPageToken" from the previous response. Optional. - * @opt_param string maxResults Maximum number of entries returned on one result - * page. If not set, the default is 100. Optional. - * @return Google_Service_AdExchangeBuyer_PerformanceReportList - */ - public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) - { - $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList"); - } -} - -/** - * The "pretargetingConfig" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; - * - */ -class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing pretargeting config. (pretargetingConfig.delete) - * - * @param string $accountId The account id to delete the pretargeting config - * for. - * @param string $configId The specific id of the configuration to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a specific pretargeting configuration (pretargetingConfig.get) - * - * @param string $accountId The account id to get the pretargeting config for. - * @param string $configId The specific id of the configuration to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function get($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse"); } /** - * Inserts a new pretargeting configuration. (pretargetingConfig.insert) + * Update the given proposal. This method supports patch semantics. + * (proposals.patch) * - * @param string $accountId The account id to insert the pretargeting config - * for. - * @param Google_PretargetingConfig $postBody + * @param string $proposalId The proposal id to update. + * @param string $revisionNumber The last known revision number to update. If + * the head revision in the marketplace database has since changed, an error + * will be thrown. The caller should then fetch the latest proposal at head + * revision and retry the update at that revision. + * @param string $updateAction The proposed action to take on the proposal. + * @param Google_Proposal $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig + * @return Google_Service_AdExchangeBuyer_Proposal */ - public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + public function patch($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Proposal"); } /** - * Retrieves a list of the authenticated user's pretargeting configurations. - * (pretargetingConfig.listPretargetingConfig) + * Search for proposals using pql query (proposals.search) * - * @param string $accountId The account id to get the pretargeting configs for. * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfigList - */ - public function listPretargetingConfig($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); - } - - /** - * Updates an existing pretargeting config. This method supports patch - * semantics. (pretargetingConfig.patch) * - * @param string $accountId The account id to update the pretargeting config - * for. - * @param string $configId The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig + * @opt_param string pqlQuery Query string to retrieve specific proposals. + * @return Google_Service_AdExchangeBuyer_GetOrdersResponse */ - public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + public function search($optParams = array()) { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array(); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse"); } /** - * Updates an existing pretargeting config. (pretargetingConfig.update) + * Update the given proposal (proposals.update) * - * @param string $accountId The account id to update the pretargeting config - * for. - * @param string $configId The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody + * @param string $proposalId The proposal id to update. + * @param string $revisionNumber The last known revision number to update. If + * the head revision in the marketplace database has since changed, an error + * will be thrown. The caller should then fetch the latest proposal at head + * revision and retry the update at that revision. + * @param string $updateAction The proposed action to take on the proposal. + * @param Google_Proposal $postBody * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig + * @return Google_Service_AdExchangeBuyer_Proposal */ - public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) + public function update($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Proposal"); } } @@ -1803,94 +1422,6 @@ public function getKind() } } -class Google_Service_AdExchangeBuyer_AdSize extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_AdExchangeBuyer_AdSlotDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelCode; - public $channelId; - public $description; - public $name; - public $size; - public $webPropertyId; - - - public function setChannelCode($channelCode) - { - $this->channelCode = $channelCode; - } - public function getChannelCode() - { - return $this->channelCode; - } - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collection { protected $collection_key = 'deals'; @@ -1898,7 +1429,7 @@ class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collect ); protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; protected $dealsDataType = 'array'; - public $orderRevisionNumber; + public $proposalRevisionNumber; public $updateAction; @@ -1910,13 +1441,13 @@ public function getDeals() { return $this->deals; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } public function setUpdateAction($updateAction) { @@ -1935,7 +1466,7 @@ class Google_Service_AdExchangeBuyer_AddOrderDealsResponse extends Google_Collec ); protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; protected $dealsDataType = 'array'; - public $orderRevisionNumber; + public $proposalRevisionNumber; public function setDeals($deals) @@ -1946,13 +1477,13 @@ public function getDeals() { return $this->deals; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } } @@ -1994,118 +1525,28 @@ public function getNotes() } } -class Google_Service_AdExchangeBuyer_AdvertiserDto extends Google_Collection +class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection { - protected $collection_key = 'brands'; + protected $collection_key = 'billingId'; protected $internal_gapi_mappings = array( ); - protected $brandsType = 'Google_Service_AdExchangeBuyer_BrandDto'; - protected $brandsDataType = 'array'; - public $id; - public $name; - public $status; + public $accountId; + public $accountName; + public $billingId; + public $kind; - public function setBrands($brands) + public function setAccountId($accountId) { - $this->brands = $brands; + $this->accountId = $accountId; } - public function getBrands() + public function getAccountId() { - return $this->brands; + return $this->accountId; } - public function setId($id) + public function setAccountName($accountName) { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - 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_AdExchangeBuyer_AudienceSegment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $name; - public $numCookies; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNumCookies($numCookies) - { - $this->numCookies = $numCookies; - } - public function getNumCookies() - { - return $this->numCookies; - } -} - -class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection -{ - protected $collection_key = 'billingId'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $accountName; - public $billingId; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAccountName($accountName) - { - $this->accountName = $accountName; + $this->accountName = $accountName; } public function getAccountName() { @@ -2157,41 +1598,6 @@ public function getKind() } } -class Google_Service_AdExchangeBuyer_BrandDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $advertiserId; - public $id; - public $name; - - - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - class Google_Service_AdExchangeBuyer_Budget extends Google_Model { protected $internal_gapi_mappings = array( @@ -2271,104 +1677,6 @@ public function getAccountId() } } -class Google_Service_AdExchangeBuyer_BuyerDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $customerId; - public $displayName; - public $enabledForInterestTargetingDeals; - public $enabledForPreferredDeals; - public $id; - public $sponsorAccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - public function getCustomerId() - { - return $this->customerId; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEnabledForInterestTargetingDeals($enabledForInterestTargetingDeals) - { - $this->enabledForInterestTargetingDeals = $enabledForInterestTargetingDeals; - } - public function getEnabledForInterestTargetingDeals() - { - return $this->enabledForInterestTargetingDeals; - } - public function setEnabledForPreferredDeals($enabledForPreferredDeals) - { - $this->enabledForPreferredDeals = $enabledForPreferredDeals; - } - public function getEnabledForPreferredDeals() - { - return $this->enabledForPreferredDeals; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setSponsorAccountId($sponsorAccountId) - { - $this->sponsorAccountId = $sponsorAccountId; - } - public function getSponsorAccountId() - { - return $this->sponsorAccountId; - } -} - -class Google_Service_AdExchangeBuyer_ClientAccessCapabilities extends Google_Collection -{ - protected $collection_key = 'capabilities'; - protected $internal_gapi_mappings = array( - ); - public $capabilities; - public $clientAccountId; - - - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setClientAccountId($clientAccountId) - { - $this->clientAccountId = $clientAccountId; - } - public function getClientAccountId() - { - return $this->clientAccountId; - } -} - class Google_Service_AdExchangeBuyer_ContactInformation extends Google_Model { protected $internal_gapi_mappings = array( @@ -2397,21 +1705,21 @@ public function getName() class Google_Service_AdExchangeBuyer_CreateOrdersRequest extends Google_Collection { - protected $collection_key = 'orders'; + protected $collection_key = 'proposals'; protected $internal_gapi_mappings = array( ); - protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; - protected $ordersDataType = 'array'; + protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; + protected $proposalsDataType = 'array'; public $webPropertyCode; - public function setOrders($orders) + public function setProposals($proposals) { - $this->orders = $orders; + $this->proposals = $proposals; } - public function getOrders() + public function getProposals() { - return $this->orders; + return $this->proposals; } public function setWebPropertyCode($webPropertyCode) { @@ -2425,20 +1733,20 @@ public function getWebPropertyCode() class Google_Service_AdExchangeBuyer_CreateOrdersResponse extends Google_Collection { - protected $collection_key = 'orders'; + protected $collection_key = 'proposals'; protected $internal_gapi_mappings = array( ); - protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; - protected $ordersDataType = 'array'; + protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; + protected $proposalsDataType = 'array'; - public function setOrders($orders) + public function setProposals($proposals) { - $this->orders = $orders; + $this->proposals = $proposals; } - public function getOrders() + public function getProposals() { - return $this->orders; + return $this->proposals; } } @@ -2447,7 +1755,6 @@ class Google_Service_AdExchangeBuyer_Creative extends Google_Collection protected $collection_key = 'vendorType'; protected $internal_gapi_mappings = array( "hTMLSnippet" => "HTMLSnippet", - "apiUploadTimestamp" => "api_upload_timestamp", ); public $hTMLSnippet; public $accountId; @@ -3135,247 +2442,149 @@ public function getNextPageToken() } } -class Google_Service_AdExchangeBuyer_DateTime extends Google_Model +class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model { protected $internal_gapi_mappings = array( ); - public $day; - public $hour; - public $minute; - public $month; - public $second; - public $timeZoneId; - public $year; + public $brandingType; + public $description; + protected $estimatedGrossSpendType = 'Google_Service_AdExchangeBuyer_Price'; + protected $estimatedGrossSpendDataType = ''; + public $estimatedImpressionsPerDay; + protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms'; + protected $guaranteedFixedPriceTermsDataType = ''; + protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms'; + protected $nonGuaranteedAuctionTermsDataType = ''; + protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms'; + protected $nonGuaranteedFixedPriceTermsDataType = ''; - public function setDay($day) + public function setBrandingType($brandingType) { - $this->day = $day; + $this->brandingType = $brandingType; } - public function getDay() + public function getBrandingType() { - return $this->day; + return $this->brandingType; } - public function setHour($hour) + public function setDescription($description) { - $this->hour = $hour; + $this->description = $description; } - public function getHour() + public function getDescription() { - return $this->hour; + return $this->description; } - public function setMinute($minute) + public function setEstimatedGrossSpend(Google_Service_AdExchangeBuyer_Price $estimatedGrossSpend) { - $this->minute = $minute; + $this->estimatedGrossSpend = $estimatedGrossSpend; } - public function getMinute() + public function getEstimatedGrossSpend() { - return $this->minute; + return $this->estimatedGrossSpend; } - public function setMonth($month) + public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay) { - $this->month = $month; + $this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay; } - public function getMonth() + public function getEstimatedImpressionsPerDay() { - return $this->month; + return $this->estimatedImpressionsPerDay; } - public function setSecond($second) + public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms) { - $this->second = $second; + $this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms; } - public function getSecond() + public function getGuaranteedFixedPriceTerms() { - return $this->second; + return $this->guaranteedFixedPriceTerms; } - public function setTimeZoneId($timeZoneId) + public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms) { - $this->timeZoneId = $timeZoneId; + $this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms; } - public function getTimeZoneId() + public function getNonGuaranteedAuctionTerms() { - return $this->timeZoneId; + return $this->nonGuaranteedAuctionTerms; } - public function setYear($year) + public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms) { - $this->year = $year; + $this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms; } - public function getYear() + public function getNonGuaranteedFixedPriceTerms() { - return $this->year; + return $this->nonGuaranteedFixedPriceTerms; } } -class Google_Service_AdExchangeBuyer_DealPartyDto extends Google_Model +class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection { + protected $collection_key = 'fixedPrices'; protected $internal_gapi_mappings = array( ); - protected $buyerType = 'Google_Service_AdExchangeBuyer_BuyerDto'; - protected $buyerDataType = ''; - public $buyerSellerRole; - public $customerId; - public $name; - protected $webPropertyType = 'Google_Service_AdExchangeBuyer_WebPropertyDto'; - protected $webPropertyDataType = ''; + protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; + protected $fixedPricesDataType = 'array'; + public $guaranteedImpressions; + public $guaranteedLooks; - public function setBuyer(Google_Service_AdExchangeBuyer_BuyerDto $buyer) + public function setFixedPrices($fixedPrices) { - $this->buyer = $buyer; + $this->fixedPrices = $fixedPrices; } - public function getBuyer() + public function getFixedPrices() { - return $this->buyer; + return $this->fixedPrices; } - public function setBuyerSellerRole($buyerSellerRole) + public function setGuaranteedImpressions($guaranteedImpressions) { - $this->buyerSellerRole = $buyerSellerRole; + $this->guaranteedImpressions = $guaranteedImpressions; } - public function getBuyerSellerRole() + public function getGuaranteedImpressions() { - return $this->buyerSellerRole; + return $this->guaranteedImpressions; } - public function setCustomerId($customerId) + public function setGuaranteedLooks($guaranteedLooks) { - $this->customerId = $customerId; + $this->guaranteedLooks = $guaranteedLooks; } - public function getCustomerId() + public function getGuaranteedLooks() { - return $this->customerId; + return $this->guaranteedLooks; } - public function setName($name) +} + +class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection +{ + protected $collection_key = 'reservePricePerBuyers'; + protected $internal_gapi_mappings = array( + ); + public $privateAuctionId; + protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; + protected $reservePricePerBuyersDataType = 'array'; + + + public function setPrivateAuctionId($privateAuctionId) { - $this->name = $name; + $this->privateAuctionId = $privateAuctionId; } - public function getName() + public function getPrivateAuctionId() { - return $this->name; + return $this->privateAuctionId; } - public function setWebProperty(Google_Service_AdExchangeBuyer_WebPropertyDto $webProperty) + public function setReservePricePerBuyers($reservePricePerBuyers) { - $this->webProperty = $webProperty; + $this->reservePricePerBuyers = $reservePricePerBuyers; } - public function getWebProperty() + public function getReservePricePerBuyers() { - return $this->webProperty; + return $this->reservePricePerBuyers; } } -class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model +class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection { - protected $internal_gapi_mappings = array( - ); - public $description; - protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms'; - protected $guaranteedFixedPriceTermsDataType = ''; - protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms'; - protected $nonGuaranteedAuctionTermsDataType = ''; - protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms'; - protected $nonGuaranteedFixedPriceTermsDataType = ''; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms) - { - $this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms; - } - public function getGuaranteedFixedPriceTerms() - { - return $this->guaranteedFixedPriceTerms; - } - public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms) - { - $this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms; - } - public function getNonGuaranteedAuctionTerms() - { - return $this->nonGuaranteedAuctionTerms; - } - public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms) - { - $this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms; - } - public function getNonGuaranteedFixedPriceTerms() - { - return $this->nonGuaranteedFixedPriceTerms; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection -{ - protected $collection_key = 'fixedPrices'; - protected $internal_gapi_mappings = array( - ); - protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; - protected $fixedPricesDataType = 'array'; - public $guaranteedImpressions; - public $guaranteedLooks; - - - public function setFixedPrices($fixedPrices) - { - $this->fixedPrices = $fixedPrices; - } - public function getFixedPrices() - { - return $this->fixedPrices; - } - public function setGuaranteedImpressions($guaranteedImpressions) - { - $this->guaranteedImpressions = $guaranteedImpressions; - } - public function getGuaranteedImpressions() - { - return $this->guaranteedImpressions; - } - public function setGuaranteedLooks($guaranteedLooks) - { - $this->guaranteedLooks = $guaranteedLooks; - } - public function getGuaranteedLooks() - { - return $this->guaranteedLooks; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection -{ - protected $collection_key = 'reservePricePerBuyers'; - protected $internal_gapi_mappings = array( - ); - public $privateAuctionId; - protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; - protected $reservePricePerBuyersDataType = 'array'; - - - public function setPrivateAuctionId($privateAuctionId) - { - $this->privateAuctionId = $privateAuctionId; - } - public function getPrivateAuctionId() - { - return $this->privateAuctionId; - } - public function setReservePricePerBuyers($reservePricePerBuyers) - { - $this->reservePricePerBuyers = $reservePricePerBuyers; - } - public function getReservePricePerBuyers() - { - return $this->reservePricePerBuyers; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection -{ - protected $collection_key = 'fixedPrices'; + protected $collection_key = 'fixedPrices'; protected $internal_gapi_mappings = array( ); protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; @@ -3398,7 +2607,7 @@ class Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest extends Google_Coll protected $internal_gapi_mappings = array( ); public $dealIds; - public $orderRevisionNumber; + public $proposalRevisionNumber; public $updateAction; @@ -3410,13 +2619,13 @@ public function getDealIds() { return $this->dealIds; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } public function setUpdateAction($updateAction) { @@ -3435,7 +2644,7 @@ class Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse extends Google_Col ); protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; protected $dealsDataType = 'array'; - public $orderRevisionNumber; + public $proposalRevisionNumber; public function setDeals($deals) @@ -3446,13 +2655,13 @@ public function getDeals() { return $this->deals; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } } @@ -3461,11 +2670,20 @@ class Google_Service_AdExchangeBuyer_DeliveryControl extends Google_Collection protected $collection_key = 'frequencyCaps'; protected $internal_gapi_mappings = array( ); + public $creativeBlockingLevel; public $deliveryRateType; protected $frequencyCapsType = 'Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap'; protected $frequencyCapsDataType = 'array'; + public function setCreativeBlockingLevel($creativeBlockingLevel) + { + $this->creativeBlockingLevel = $creativeBlockingLevel; + } + public function getCreativeBlockingLevel() + { + return $this->creativeBlockingLevel; + } public function setDeliveryRateType($deliveryRateType) { $this->deliveryRateType = $deliveryRateType; @@ -3526,9 +2744,9 @@ class Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest extends Google_Col ); protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; protected $dealsDataType = 'array'; - protected $orderType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; - protected $orderDataType = ''; - public $orderRevisionNumber; + protected $proposalType = 'Google_Service_AdExchangeBuyer_Proposal'; + protected $proposalDataType = ''; + public $proposalRevisionNumber; public $updateAction; @@ -3540,21 +2758,21 @@ public function getDeals() { return $this->deals; } - public function setOrder(Google_Service_AdExchangeBuyer_MarketplaceOrder $order) + public function setProposal(Google_Service_AdExchangeBuyer_Proposal $proposal) { - $this->order = $order; + $this->proposal = $proposal; } - public function getOrder() + public function getProposal() { - return $this->order; + return $this->proposal; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } public function setUpdateAction($updateAction) { @@ -3585,163 +2803,22 @@ public function getDeals() } } -class Google_Service_AdExchangeBuyer_EditHistoryDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $createdByLoginName; - public $createdTimeStamp; - public $lastUpdateTimeStamp; - public $lastUpdatedByLoginName; - - - public function setCreatedByLoginName($createdByLoginName) - { - $this->createdByLoginName = $createdByLoginName; - } - public function getCreatedByLoginName() - { - return $this->createdByLoginName; - } - public function setCreatedTimeStamp($createdTimeStamp) - { - $this->createdTimeStamp = $createdTimeStamp; - } - public function getCreatedTimeStamp() - { - return $this->createdTimeStamp; - } - public function setLastUpdateTimeStamp($lastUpdateTimeStamp) - { - $this->lastUpdateTimeStamp = $lastUpdateTimeStamp; - } - public function getLastUpdateTimeStamp() - { - return $this->lastUpdateTimeStamp; - } - public function setLastUpdatedByLoginName($lastUpdatedByLoginName) - { - $this->lastUpdatedByLoginName = $lastUpdatedByLoginName; - } - public function getLastUpdatedByLoginName() - { - return $this->lastUpdatedByLoginName; - } -} - -class Google_Service_AdExchangeBuyer_GetFinalizedNegotiationByExternalDealIdRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $includePrivateAuctions; - - - public function setIncludePrivateAuctions($includePrivateAuctions) - { - $this->includePrivateAuctions = $includePrivateAuctions; - } - public function getIncludePrivateAuctions() - { - return $this->includePrivateAuctions; - } -} - -class Google_Service_AdExchangeBuyer_GetNegotiationByIdRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $includePrivateAuctions; - - - public function setIncludePrivateAuctions($includePrivateAuctions) - { - $this->includePrivateAuctions = $includePrivateAuctions; - } - public function getIncludePrivateAuctions() - { - return $this->includePrivateAuctions; - } -} - -class Google_Service_AdExchangeBuyer_GetNegotiationsRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $finalized; - public $includePrivateAuctions; - public $sinceTimestampMillis; - - - public function setFinalized($finalized) - { - $this->finalized = $finalized; - } - public function getFinalized() - { - return $this->finalized; - } - public function setIncludePrivateAuctions($includePrivateAuctions) - { - $this->includePrivateAuctions = $includePrivateAuctions; - } - public function getIncludePrivateAuctions() - { - return $this->includePrivateAuctions; - } - public function setSinceTimestampMillis($sinceTimestampMillis) - { - $this->sinceTimestampMillis = $sinceTimestampMillis; - } - public function getSinceTimestampMillis() - { - return $this->sinceTimestampMillis; - } -} - -class Google_Service_AdExchangeBuyer_GetNegotiationsResponse extends Google_Collection -{ - protected $collection_key = 'negotiations'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $negotiationsType = 'Google_Service_AdExchangeBuyer_NegotiationDto'; - protected $negotiationsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNegotiations($negotiations) - { - $this->negotiations = $negotiations; - } - public function getNegotiations() - { - return $this->negotiations; - } -} - class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection { - protected $collection_key = 'offers'; + protected $collection_key = 'products'; protected $internal_gapi_mappings = array( ); - protected $offersType = 'Google_Service_AdExchangeBuyer_MarketplaceOffer'; - protected $offersDataType = 'array'; + protected $productsType = 'Google_Service_AdExchangeBuyer_Product'; + protected $productsDataType = 'array'; - public function setOffers($offers) + public function setProducts($products) { - $this->offers = $offers; + $this->products = $products; } - public function getOffers() + public function getProducts() { - return $this->offers; + return $this->products; } } @@ -3785,535 +2862,126 @@ public function getNotes() class Google_Service_AdExchangeBuyer_GetOrdersResponse extends Google_Collection { - protected $collection_key = 'orders'; + protected $collection_key = 'proposals'; protected $internal_gapi_mappings = array( ); - protected $ordersType = 'Google_Service_AdExchangeBuyer_MarketplaceOrder'; - protected $ordersDataType = 'array'; + protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; + protected $proposalsDataType = 'array'; - public function setOrders($orders) + public function setProposals($proposals) { - $this->orders = $orders; + $this->proposals = $proposals; } - public function getOrders() + public function getProposals() { - return $this->orders; + return $this->proposals; } } -class Google_Service_AdExchangeBuyer_InventorySegmentTargeting extends Google_Collection +class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection { - protected $collection_key = 'positiveXfpPlacements'; + protected $collection_key = 'sharedTargetings'; protected $internal_gapi_mappings = array( ); - protected $negativeAdSizesType = 'Google_Service_AdExchangeBuyer_AdSize'; - protected $negativeAdSizesDataType = 'array'; - public $negativeAdTypeSegments; - public $negativeAudienceSegments; - public $negativeDeviceCategories; - public $negativeIcmBrands; - public $negativeIcmInterests; - public $negativeInventorySlots; - protected $negativeKeyValuesType = 'Google_Service_AdExchangeBuyer_RuleKeyValuePair'; - protected $negativeKeyValuesDataType = 'array'; - public $negativeLocations; - public $negativeMobileApps; - public $negativeOperatingSystemVersions; - public $negativeOperatingSystems; - public $negativeSiteUrls; - public $negativeSizes; - public $negativeVideoAdPositionSegments; - public $negativeVideoDurationSegments; - public $negativeXfpAdSlots; - public $negativeXfpPlacements; - protected $positiveAdSizesType = 'Google_Service_AdExchangeBuyer_AdSize'; - protected $positiveAdSizesDataType = 'array'; - public $positiveAdTypeSegments; - public $positiveAudienceSegments; - public $positiveDeviceCategories; - public $positiveIcmBrands; - public $positiveIcmInterests; - public $positiveInventorySlots; - protected $positiveKeyValuesType = 'Google_Service_AdExchangeBuyer_RuleKeyValuePair'; - protected $positiveKeyValuesDataType = 'array'; - public $positiveLocations; - public $positiveMobileApps; - public $positiveOperatingSystemVersions; - public $positiveOperatingSystems; - public $positiveSiteUrls; - public $positiveSizes; - public $positiveVideoAdPositionSegments; - public $positiveVideoDurationSegments; - public $positiveXfpAdSlots; - public $positiveXfpPlacements; + protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; + protected $buyerPrivateDataDataType = ''; + public $creationTimeMs; + public $creativePreApprovalPolicy; + public $dealId; + protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; + protected $deliveryControlDataType = ''; + public $externalDealId; + public $flightEndTimeMs; + public $flightStartTimeMs; + public $inventoryDescription; + public $kind; + public $lastUpdateTimeMs; + public $name; + public $productId; + public $productRevisionNumber; + public $proposalId; + protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $sellerContactsDataType = 'array'; + protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; + protected $sharedTargetingsDataType = 'array'; + public $syndicationProduct; + protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; + protected $termsDataType = ''; + public $webPropertyCode; - public function setNegativeAdSizes($negativeAdSizes) + public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) { - $this->negativeAdSizes = $negativeAdSizes; + $this->buyerPrivateData = $buyerPrivateData; } - public function getNegativeAdSizes() + public function getBuyerPrivateData() { - return $this->negativeAdSizes; + return $this->buyerPrivateData; } - public function setNegativeAdTypeSegments($negativeAdTypeSegments) + public function setCreationTimeMs($creationTimeMs) { - $this->negativeAdTypeSegments = $negativeAdTypeSegments; + $this->creationTimeMs = $creationTimeMs; } - public function getNegativeAdTypeSegments() + public function getCreationTimeMs() { - return $this->negativeAdTypeSegments; + return $this->creationTimeMs; } - public function setNegativeAudienceSegments($negativeAudienceSegments) + public function setCreativePreApprovalPolicy($creativePreApprovalPolicy) { - $this->negativeAudienceSegments = $negativeAudienceSegments; + $this->creativePreApprovalPolicy = $creativePreApprovalPolicy; } - public function getNegativeAudienceSegments() + public function getCreativePreApprovalPolicy() { - return $this->negativeAudienceSegments; + return $this->creativePreApprovalPolicy; } - public function setNegativeDeviceCategories($negativeDeviceCategories) + public function setDealId($dealId) { - $this->negativeDeviceCategories = $negativeDeviceCategories; + $this->dealId = $dealId; } - public function getNegativeDeviceCategories() + public function getDealId() { - return $this->negativeDeviceCategories; + return $this->dealId; } - public function setNegativeIcmBrands($negativeIcmBrands) + public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) { - $this->negativeIcmBrands = $negativeIcmBrands; + $this->deliveryControl = $deliveryControl; } - public function getNegativeIcmBrands() + public function getDeliveryControl() { - return $this->negativeIcmBrands; + return $this->deliveryControl; } - public function setNegativeIcmInterests($negativeIcmInterests) + public function setExternalDealId($externalDealId) { - $this->negativeIcmInterests = $negativeIcmInterests; + $this->externalDealId = $externalDealId; } - public function getNegativeIcmInterests() + public function getExternalDealId() { - return $this->negativeIcmInterests; + return $this->externalDealId; } - public function setNegativeInventorySlots($negativeInventorySlots) + public function setFlightEndTimeMs($flightEndTimeMs) { - $this->negativeInventorySlots = $negativeInventorySlots; + $this->flightEndTimeMs = $flightEndTimeMs; } - public function getNegativeInventorySlots() + public function getFlightEndTimeMs() { - return $this->negativeInventorySlots; + return $this->flightEndTimeMs; } - public function setNegativeKeyValues($negativeKeyValues) + public function setFlightStartTimeMs($flightStartTimeMs) { - $this->negativeKeyValues = $negativeKeyValues; + $this->flightStartTimeMs = $flightStartTimeMs; } - public function getNegativeKeyValues() + public function getFlightStartTimeMs() { - return $this->negativeKeyValues; + return $this->flightStartTimeMs; } - public function setNegativeLocations($negativeLocations) + public function setInventoryDescription($inventoryDescription) { - $this->negativeLocations = $negativeLocations; + $this->inventoryDescription = $inventoryDescription; } - public function getNegativeLocations() + public function getInventoryDescription() { - return $this->negativeLocations; - } - public function setNegativeMobileApps($negativeMobileApps) - { - $this->negativeMobileApps = $negativeMobileApps; - } - public function getNegativeMobileApps() - { - return $this->negativeMobileApps; - } - public function setNegativeOperatingSystemVersions($negativeOperatingSystemVersions) - { - $this->negativeOperatingSystemVersions = $negativeOperatingSystemVersions; - } - public function getNegativeOperatingSystemVersions() - { - return $this->negativeOperatingSystemVersions; - } - public function setNegativeOperatingSystems($negativeOperatingSystems) - { - $this->negativeOperatingSystems = $negativeOperatingSystems; - } - public function getNegativeOperatingSystems() - { - return $this->negativeOperatingSystems; - } - public function setNegativeSiteUrls($negativeSiteUrls) - { - $this->negativeSiteUrls = $negativeSiteUrls; - } - public function getNegativeSiteUrls() - { - return $this->negativeSiteUrls; - } - public function setNegativeSizes($negativeSizes) - { - $this->negativeSizes = $negativeSizes; - } - public function getNegativeSizes() - { - return $this->negativeSizes; - } - public function setNegativeVideoAdPositionSegments($negativeVideoAdPositionSegments) - { - $this->negativeVideoAdPositionSegments = $negativeVideoAdPositionSegments; - } - public function getNegativeVideoAdPositionSegments() - { - return $this->negativeVideoAdPositionSegments; - } - public function setNegativeVideoDurationSegments($negativeVideoDurationSegments) - { - $this->negativeVideoDurationSegments = $negativeVideoDurationSegments; - } - public function getNegativeVideoDurationSegments() - { - return $this->negativeVideoDurationSegments; - } - public function setNegativeXfpAdSlots($negativeXfpAdSlots) - { - $this->negativeXfpAdSlots = $negativeXfpAdSlots; - } - public function getNegativeXfpAdSlots() - { - return $this->negativeXfpAdSlots; - } - public function setNegativeXfpPlacements($negativeXfpPlacements) - { - $this->negativeXfpPlacements = $negativeXfpPlacements; - } - public function getNegativeXfpPlacements() - { - return $this->negativeXfpPlacements; - } - public function setPositiveAdSizes($positiveAdSizes) - { - $this->positiveAdSizes = $positiveAdSizes; - } - public function getPositiveAdSizes() - { - return $this->positiveAdSizes; - } - public function setPositiveAdTypeSegments($positiveAdTypeSegments) - { - $this->positiveAdTypeSegments = $positiveAdTypeSegments; - } - public function getPositiveAdTypeSegments() - { - return $this->positiveAdTypeSegments; - } - public function setPositiveAudienceSegments($positiveAudienceSegments) - { - $this->positiveAudienceSegments = $positiveAudienceSegments; - } - public function getPositiveAudienceSegments() - { - return $this->positiveAudienceSegments; - } - public function setPositiveDeviceCategories($positiveDeviceCategories) - { - $this->positiveDeviceCategories = $positiveDeviceCategories; - } - public function getPositiveDeviceCategories() - { - return $this->positiveDeviceCategories; - } - public function setPositiveIcmBrands($positiveIcmBrands) - { - $this->positiveIcmBrands = $positiveIcmBrands; - } - public function getPositiveIcmBrands() - { - return $this->positiveIcmBrands; - } - public function setPositiveIcmInterests($positiveIcmInterests) - { - $this->positiveIcmInterests = $positiveIcmInterests; - } - public function getPositiveIcmInterests() - { - return $this->positiveIcmInterests; - } - public function setPositiveInventorySlots($positiveInventorySlots) - { - $this->positiveInventorySlots = $positiveInventorySlots; - } - public function getPositiveInventorySlots() - { - return $this->positiveInventorySlots; - } - public function setPositiveKeyValues($positiveKeyValues) - { - $this->positiveKeyValues = $positiveKeyValues; - } - public function getPositiveKeyValues() - { - return $this->positiveKeyValues; - } - public function setPositiveLocations($positiveLocations) - { - $this->positiveLocations = $positiveLocations; - } - public function getPositiveLocations() - { - return $this->positiveLocations; - } - public function setPositiveMobileApps($positiveMobileApps) - { - $this->positiveMobileApps = $positiveMobileApps; - } - public function getPositiveMobileApps() - { - return $this->positiveMobileApps; - } - public function setPositiveOperatingSystemVersions($positiveOperatingSystemVersions) - { - $this->positiveOperatingSystemVersions = $positiveOperatingSystemVersions; - } - public function getPositiveOperatingSystemVersions() - { - return $this->positiveOperatingSystemVersions; - } - public function setPositiveOperatingSystems($positiveOperatingSystems) - { - $this->positiveOperatingSystems = $positiveOperatingSystems; - } - public function getPositiveOperatingSystems() - { - return $this->positiveOperatingSystems; - } - public function setPositiveSiteUrls($positiveSiteUrls) - { - $this->positiveSiteUrls = $positiveSiteUrls; - } - public function getPositiveSiteUrls() - { - return $this->positiveSiteUrls; - } - public function setPositiveSizes($positiveSizes) - { - $this->positiveSizes = $positiveSizes; - } - public function getPositiveSizes() - { - return $this->positiveSizes; - } - public function setPositiveVideoAdPositionSegments($positiveVideoAdPositionSegments) - { - $this->positiveVideoAdPositionSegments = $positiveVideoAdPositionSegments; - } - public function getPositiveVideoAdPositionSegments() - { - return $this->positiveVideoAdPositionSegments; - } - public function setPositiveVideoDurationSegments($positiveVideoDurationSegments) - { - $this->positiveVideoDurationSegments = $positiveVideoDurationSegments; - } - public function getPositiveVideoDurationSegments() - { - return $this->positiveVideoDurationSegments; - } - public function setPositiveXfpAdSlots($positiveXfpAdSlots) - { - $this->positiveXfpAdSlots = $positiveXfpAdSlots; - } - public function getPositiveXfpAdSlots() - { - return $this->positiveXfpAdSlots; - } - public function setPositiveXfpPlacements($positiveXfpPlacements) - { - $this->positiveXfpPlacements = $positiveXfpPlacements; - } - public function getPositiveXfpPlacements() - { - return $this->positiveXfpPlacements; - } -} - -class Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $sponsorAccountId; - - - public function setSponsorAccountId($sponsorAccountId) - { - $this->sponsorAccountId = $sponsorAccountId; - } - public function getSponsorAccountId() - { - return $this->sponsorAccountId; - } -} - -class Google_Service_AdExchangeBuyer_ListClientAccessCapabilitiesResponse extends Google_Collection -{ - protected $collection_key = 'clientAccessPermissions'; - protected $internal_gapi_mappings = array( - ); - protected $clientAccessPermissionsType = 'Google_Service_AdExchangeBuyer_ClientAccessCapabilities'; - protected $clientAccessPermissionsDataType = 'array'; - - - public function setClientAccessPermissions($clientAccessPermissions) - { - $this->clientAccessPermissions = $clientAccessPermissions; - } - public function getClientAccessPermissions() - { - return $this->clientAccessPermissions; - } -} - -class Google_Service_AdExchangeBuyer_ListOffersRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $sinceTimestampMillis; - - - public function setSinceTimestampMillis($sinceTimestampMillis) - { - $this->sinceTimestampMillis = $sinceTimestampMillis; - } - public function getSinceTimestampMillis() - { - return $this->sinceTimestampMillis; - } -} - -class Google_Service_AdExchangeBuyer_ListOffersResponse extends Google_Collection -{ - protected $collection_key = 'offers'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $offersType = 'Google_Service_AdExchangeBuyer_OfferDto'; - protected $offersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOffers($offers) - { - $this->offers = $offers; - } - public function getOffers() - { - return $this->offers; - } -} - -class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection -{ - protected $collection_key = 'sharedTargetings'; - protected $internal_gapi_mappings = array( - ); - protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; - protected $buyerPrivateDataDataType = ''; - public $creationTimeMs; - public $dealId; - protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; - protected $deliveryControlDataType = ''; - public $externalDealId; - public $flightEndTimeMs; - public $flightStartTimeMs; - public $inventoryDescription; - public $kind; - public $lastUpdateTimeMs; - public $name; - public $offerId; - public $offerRevisionNumber; - public $orderId; - protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $sellerContactsDataType = 'array'; - protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; - protected $sharedTargetingsDataType = 'array'; - public $syndicationProduct; - protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; - protected $termsDataType = ''; - public $webPropertyCode; - - - public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) - { - $this->buyerPrivateData = $buyerPrivateData; - } - public function getBuyerPrivateData() - { - return $this->buyerPrivateData; - } - public function setCreationTimeMs($creationTimeMs) - { - $this->creationTimeMs = $creationTimeMs; - } - public function getCreationTimeMs() - { - return $this->creationTimeMs; - } - public function setDealId($dealId) - { - $this->dealId = $dealId; - } - public function getDealId() - { - return $this->dealId; - } - public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) - { - $this->deliveryControl = $deliveryControl; - } - public function getDeliveryControl() - { - return $this->deliveryControl; - } - public function setExternalDealId($externalDealId) - { - $this->externalDealId = $externalDealId; - } - public function getExternalDealId() - { - return $this->externalDealId; - } - public function setFlightEndTimeMs($flightEndTimeMs) - { - $this->flightEndTimeMs = $flightEndTimeMs; - } - public function getFlightEndTimeMs() - { - return $this->flightEndTimeMs; - } - public function setFlightStartTimeMs($flightStartTimeMs) - { - $this->flightStartTimeMs = $flightStartTimeMs; - } - public function getFlightStartTimeMs() - { - return $this->flightStartTimeMs; - } - public function setInventoryDescription($inventoryDescription) - { - $this->inventoryDescription = $inventoryDescription; - } - public function getInventoryDescription() - { - return $this->inventoryDescription; + return $this->inventoryDescription; } public function setKind($kind) { @@ -4339,29 +3007,29 @@ public function getName() { return $this->name; } - public function setOfferId($offerId) + public function setProductId($productId) { - $this->offerId = $offerId; + $this->productId = $productId; } - public function getOfferId() + public function getProductId() { - return $this->offerId; + return $this->productId; } - public function setOfferRevisionNumber($offerRevisionNumber) + public function setProductRevisionNumber($productRevisionNumber) { - $this->offerRevisionNumber = $offerRevisionNumber; + $this->productRevisionNumber = $productRevisionNumber; } - public function getOfferRevisionNumber() + public function getProductRevisionNumber() { - return $this->offerRevisionNumber; + return $this->productRevisionNumber; } - public function setOrderId($orderId) + public function setProposalId($proposalId) { - $this->orderId = $orderId; + $this->proposalId = $proposalId; } - public function getOrderId() + public function getProposalId() { - return $this->orderId; + return $this->proposalId; } public function setSellerContacts($sellerContacts) { @@ -4487,8 +3155,8 @@ class Google_Service_AdExchangeBuyer_MarketplaceNote extends Google_Model public $kind; public $note; public $noteId; - public $orderId; - public $orderRevisionNumber; + public $proposalId; + public $proposalRevisionNumber; public $timestampMs; @@ -4532,21 +3200,21 @@ public function getNoteId() { return $this->noteId; } - public function setOrderId($orderId) + public function setProposalId($proposalId) { - $this->orderId = $orderId; + $this->proposalId = $proposalId; } - public function getOrderId() + public function getProposalId() { - return $this->orderId; + return $this->proposalId; } - public function setOrderRevisionNumber($orderRevisionNumber) + public function setProposalRevisionNumber($proposalRevisionNumber) { - $this->orderRevisionNumber = $orderRevisionNumber; + $this->proposalRevisionNumber = $proposalRevisionNumber; } - public function getOrderRevisionNumber() + public function getProposalRevisionNumber() { - return $this->orderRevisionNumber; + return $this->proposalRevisionNumber; } public function setTimestampMs($timestampMs) { @@ -4558,271 +3226,223 @@ public function getTimestampMs() } } -class Google_Service_AdExchangeBuyer_MarketplaceOffer extends Google_Collection +class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { - protected $collection_key = 'sharedTargetings'; + protected $collection_key = 'hostedMatchStatusRate'; protected $internal_gapi_mappings = array( ); - public $creationTimeMs; - protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $creatorContactsDataType = 'array'; - public $flightEndTimeMs; - public $flightStartTimeMs; - public $hasCreatorSignedOff; + public $bidRate; + public $bidRequestRate; + public $calloutStatusRate; + public $cookieMatcherStatusRate; + public $creativeStatusRate; + public $filteredBidRate; + public $hostedMatchStatusRate; + public $inventoryMatchRate; public $kind; - protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; - protected $labelsDataType = 'array'; - public $lastUpdateTimeMs; - public $name; - public $offerId; - public $revisionNumber; - protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; - protected $sellerDataType = ''; - protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; - protected $sharedTargetingsDataType = 'array'; - public $state; - public $syndicationProduct; - protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; - protected $termsDataType = ''; - public $webPropertyCode; + public $latency50thPercentile; + public $latency85thPercentile; + public $latency95thPercentile; + public $noQuotaInRegion; + public $outOfQuota; + public $pixelMatchRequests; + public $pixelMatchResponses; + public $quotaConfiguredLimit; + public $quotaThrottledLimit; + public $region; + public $successfulRequestRate; + public $timestamp; + public $unsuccessfulRequestRate; - public function setCreationTimeMs($creationTimeMs) - { - $this->creationTimeMs = $creationTimeMs; - } - public function getCreationTimeMs() - { - return $this->creationTimeMs; - } - public function setCreatorContacts($creatorContacts) + public function setBidRate($bidRate) { - $this->creatorContacts = $creatorContacts; + $this->bidRate = $bidRate; } - public function getCreatorContacts() + public function getBidRate() { - return $this->creatorContacts; + return $this->bidRate; } - public function setFlightEndTimeMs($flightEndTimeMs) + public function setBidRequestRate($bidRequestRate) { - $this->flightEndTimeMs = $flightEndTimeMs; + $this->bidRequestRate = $bidRequestRate; } - public function getFlightEndTimeMs() + public function getBidRequestRate() { - return $this->flightEndTimeMs; + return $this->bidRequestRate; } - public function setFlightStartTimeMs($flightStartTimeMs) + public function setCalloutStatusRate($calloutStatusRate) { - $this->flightStartTimeMs = $flightStartTimeMs; + $this->calloutStatusRate = $calloutStatusRate; } - public function getFlightStartTimeMs() + public function getCalloutStatusRate() { - return $this->flightStartTimeMs; + return $this->calloutStatusRate; } - public function setHasCreatorSignedOff($hasCreatorSignedOff) + public function setCookieMatcherStatusRate($cookieMatcherStatusRate) { - $this->hasCreatorSignedOff = $hasCreatorSignedOff; + $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; } - public function getHasCreatorSignedOff() + public function getCookieMatcherStatusRate() { - return $this->hasCreatorSignedOff; + return $this->cookieMatcherStatusRate; } - public function setKind($kind) + public function setCreativeStatusRate($creativeStatusRate) { - $this->kind = $kind; + $this->creativeStatusRate = $creativeStatusRate; } - public function getKind() + public function getCreativeStatusRate() { - return $this->kind; + return $this->creativeStatusRate; } - public function setLabels($labels) + public function setFilteredBidRate($filteredBidRate) { - $this->labels = $labels; + $this->filteredBidRate = $filteredBidRate; } - public function getLabels() + public function getFilteredBidRate() { - return $this->labels; + return $this->filteredBidRate; } - public function setLastUpdateTimeMs($lastUpdateTimeMs) + public function setHostedMatchStatusRate($hostedMatchStatusRate) { - $this->lastUpdateTimeMs = $lastUpdateTimeMs; + $this->hostedMatchStatusRate = $hostedMatchStatusRate; } - public function getLastUpdateTimeMs() + public function getHostedMatchStatusRate() { - return $this->lastUpdateTimeMs; + return $this->hostedMatchStatusRate; } - public function setName($name) + public function setInventoryMatchRate($inventoryMatchRate) { - $this->name = $name; + $this->inventoryMatchRate = $inventoryMatchRate; } - public function getName() + public function getInventoryMatchRate() { - return $this->name; + return $this->inventoryMatchRate; } - public function setOfferId($offerId) + public function setKind($kind) { - $this->offerId = $offerId; + $this->kind = $kind; } - public function getOfferId() + public function getKind() { - return $this->offerId; + return $this->kind; } - public function setRevisionNumber($revisionNumber) + public function setLatency50thPercentile($latency50thPercentile) { - $this->revisionNumber = $revisionNumber; + $this->latency50thPercentile = $latency50thPercentile; } - public function getRevisionNumber() + public function getLatency50thPercentile() { - return $this->revisionNumber; + return $this->latency50thPercentile; } - public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) + public function setLatency85thPercentile($latency85thPercentile) { - $this->seller = $seller; + $this->latency85thPercentile = $latency85thPercentile; } - public function getSeller() + public function getLatency85thPercentile() { - return $this->seller; + return $this->latency85thPercentile; } - public function setSharedTargetings($sharedTargetings) + public function setLatency95thPercentile($latency95thPercentile) { - $this->sharedTargetings = $sharedTargetings; + $this->latency95thPercentile = $latency95thPercentile; } - public function getSharedTargetings() + public function getLatency95thPercentile() { - return $this->sharedTargetings; + return $this->latency95thPercentile; } - public function setState($state) + public function setNoQuotaInRegion($noQuotaInRegion) { - $this->state = $state; + $this->noQuotaInRegion = $noQuotaInRegion; } - public function getState() + public function getNoQuotaInRegion() { - return $this->state; + return $this->noQuotaInRegion; } - public function setSyndicationProduct($syndicationProduct) + public function setOutOfQuota($outOfQuota) { - $this->syndicationProduct = $syndicationProduct; + $this->outOfQuota = $outOfQuota; } - public function getSyndicationProduct() + public function getOutOfQuota() { - return $this->syndicationProduct; + return $this->outOfQuota; } - public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) + public function setPixelMatchRequests($pixelMatchRequests) { - $this->terms = $terms; + $this->pixelMatchRequests = $pixelMatchRequests; } - public function getTerms() + public function getPixelMatchRequests() { - return $this->terms; + return $this->pixelMatchRequests; } - public function setWebPropertyCode($webPropertyCode) + public function setPixelMatchResponses($pixelMatchResponses) { - $this->webPropertyCode = $webPropertyCode; + $this->pixelMatchResponses = $pixelMatchResponses; } - public function getWebPropertyCode() + public function getPixelMatchResponses() { - return $this->webPropertyCode; + return $this->pixelMatchResponses; } -} - -class Google_Service_AdExchangeBuyer_MarketplaceOrder extends Google_Collection -{ - protected $collection_key = 'sellerContacts'; - protected $internal_gapi_mappings = array( - ); - protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $billedBuyerDataType = ''; - protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $buyerDataType = ''; - protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $buyerContactsDataType = 'array'; - protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; - protected $buyerPrivateDataDataType = ''; - public $hasBuyerSignedOff; - public $hasSellerSignedOff; - public $isRenegotiating; - public $isSetupComplete; - public $kind; - protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; - protected $labelsDataType = 'array'; - public $lastUpdaterOrCommentorRole; - public $lastUpdaterRole; - public $name; - public $orderId; - public $orderState; - public $originatorRole; - public $revisionNumber; - public $revisionTimeMs; - protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; - protected $sellerDataType = ''; - protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $sellerContactsDataType = 'array'; - - - public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer) + public function setQuotaConfiguredLimit($quotaConfiguredLimit) { - $this->billedBuyer = $billedBuyer; + $this->quotaConfiguredLimit = $quotaConfiguredLimit; } - public function getBilledBuyer() + public function getQuotaConfiguredLimit() { - return $this->billedBuyer; + return $this->quotaConfiguredLimit; } - public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) + public function setQuotaThrottledLimit($quotaThrottledLimit) { - $this->buyer = $buyer; + $this->quotaThrottledLimit = $quotaThrottledLimit; } - public function getBuyer() + public function getQuotaThrottledLimit() { - return $this->buyer; + return $this->quotaThrottledLimit; } - public function setBuyerContacts($buyerContacts) + public function setRegion($region) { - $this->buyerContacts = $buyerContacts; + $this->region = $region; } - public function getBuyerContacts() + public function getRegion() { - return $this->buyerContacts; + return $this->region; } - public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) + public function setSuccessfulRequestRate($successfulRequestRate) { - $this->buyerPrivateData = $buyerPrivateData; + $this->successfulRequestRate = $successfulRequestRate; } - public function getBuyerPrivateData() + public function getSuccessfulRequestRate() { - return $this->buyerPrivateData; + return $this->successfulRequestRate; } - public function setHasBuyerSignedOff($hasBuyerSignedOff) + public function setTimestamp($timestamp) { - $this->hasBuyerSignedOff = $hasBuyerSignedOff; + $this->timestamp = $timestamp; } - public function getHasBuyerSignedOff() + public function getTimestamp() { - return $this->hasBuyerSignedOff; + return $this->timestamp; } - public function setHasSellerSignedOff($hasSellerSignedOff) + public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) { - $this->hasSellerSignedOff = $hasSellerSignedOff; + $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; } - public function getHasSellerSignedOff() + public function getUnsuccessfulRequestRate() { - return $this->hasSellerSignedOff; - } - public function setIsRenegotiating($isRenegotiating) - { - $this->isRenegotiating = $isRenegotiating; - } - public function getIsRenegotiating() - { - return $this->isRenegotiating; - } - public function setIsSetupComplete($isSetupComplete) - { - $this->isSetupComplete = $isSetupComplete; - } - public function getIsSetupComplete() - { - return $this->isSetupComplete; + return $this->unsuccessfulRequestRate; } +} + +class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection +{ + protected $collection_key = 'performanceReport'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; + protected $performanceReportDataType = 'array'; + + public function setKind($kind) { $this->kind = $kind; @@ -4831,311 +3451,314 @@ public function getKind() { return $this->kind; } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole) - { - $this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole; - } - public function getLastUpdaterOrCommentorRole() - { - return $this->lastUpdaterOrCommentorRole; - } - public function setLastUpdaterRole($lastUpdaterRole) - { - $this->lastUpdaterRole = $lastUpdaterRole; - } - public function getLastUpdaterRole() - { - return $this->lastUpdaterRole; - } - public function setName($name) + public function setPerformanceReport($performanceReport) { - $this->name = $name; + $this->performanceReport = $performanceReport; } - public function getName() + public function getPerformanceReport() { - return $this->name; + return $this->performanceReport; } - public function setOrderId($orderId) +} + +class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection +{ + protected $collection_key = 'videoPlayerSizes'; + protected $internal_gapi_mappings = array( + ); + public $billingId; + public $configId; + public $configName; + public $creativeType; + protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; + protected $dimensionsDataType = 'array'; + public $excludedContentLabels; + public $excludedGeoCriteriaIds; + protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; + protected $excludedPlacementsDataType = 'array'; + public $excludedUserLists; + public $excludedVerticals; + public $geoCriteriaIds; + public $isActive; + public $kind; + public $languages; + public $mobileCarriers; + public $mobileDevices; + public $mobileOperatingSystemVersions; + protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; + protected $placementsDataType = 'array'; + public $platforms; + public $supportedCreativeAttributes; + public $userLists; + public $vendorTypes; + public $verticals; + protected $videoPlayerSizesType = 'Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes'; + protected $videoPlayerSizesDataType = 'array'; + + + public function setBillingId($billingId) { - $this->orderId = $orderId; + $this->billingId = $billingId; } - public function getOrderId() + public function getBillingId() { - return $this->orderId; + return $this->billingId; } - public function setOrderState($orderState) + public function setConfigId($configId) { - $this->orderState = $orderState; + $this->configId = $configId; } - public function getOrderState() + public function getConfigId() { - return $this->orderState; + return $this->configId; } - public function setOriginatorRole($originatorRole) + public function setConfigName($configName) { - $this->originatorRole = $originatorRole; + $this->configName = $configName; } - public function getOriginatorRole() + public function getConfigName() { - return $this->originatorRole; + return $this->configName; } - public function setRevisionNumber($revisionNumber) + public function setCreativeType($creativeType) { - $this->revisionNumber = $revisionNumber; + $this->creativeType = $creativeType; } - public function getRevisionNumber() + public function getCreativeType() { - return $this->revisionNumber; + return $this->creativeType; } - public function setRevisionTimeMs($revisionTimeMs) + public function setDimensions($dimensions) { - $this->revisionTimeMs = $revisionTimeMs; + $this->dimensions = $dimensions; } - public function getRevisionTimeMs() + public function getDimensions() { - return $this->revisionTimeMs; + return $this->dimensions; } - public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) + public function setExcludedContentLabels($excludedContentLabels) { - $this->seller = $seller; + $this->excludedContentLabels = $excludedContentLabels; } - public function getSeller() + public function getExcludedContentLabels() { - return $this->seller; + return $this->excludedContentLabels; } - public function setSellerContacts($sellerContacts) + public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) { - $this->sellerContacts = $sellerContacts; + $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; } - public function getSellerContacts() + public function getExcludedGeoCriteriaIds() { - return $this->sellerContacts; + return $this->excludedGeoCriteriaIds; } -} - -class Google_Service_AdExchangeBuyer_MoneyDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currencyCode; - public $micros; - - - public function setCurrencyCode($currencyCode) + public function setExcludedPlacements($excludedPlacements) { - $this->currencyCode = $currencyCode; + $this->excludedPlacements = $excludedPlacements; } - public function getCurrencyCode() + public function getExcludedPlacements() { - return $this->currencyCode; + return $this->excludedPlacements; } - public function setMicros($micros) + public function setExcludedUserLists($excludedUserLists) { - $this->micros = $micros; + $this->excludedUserLists = $excludedUserLists; } - public function getMicros() + public function getExcludedUserLists() { - return $this->micros; + return $this->excludedUserLists; } -} - -class Google_Service_AdExchangeBuyer_NegotiationDto extends Google_Collection -{ - protected $collection_key = 'sellerEmailContacts'; - protected $internal_gapi_mappings = array( - ); - protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $billedBuyerDataType = ''; - protected $buyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $buyerDataType = ''; - public $buyerEmailContacts; - public $dealType; - public $externalDealId; - public $kind; - public $labelNames; - public $negotiationId; - protected $negotiationRoundsType = 'Google_Service_AdExchangeBuyer_NegotiationRoundDto'; - protected $negotiationRoundsDataType = 'array'; - public $negotiationState; - public $offerId; - protected $sellerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $sellerDataType = ''; - public $sellerEmailContacts; - protected $statsType = 'Google_Service_AdExchangeBuyer_StatsDto'; - protected $statsDataType = ''; - public $status; - - - public function setBilledBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $billedBuyer) + public function setExcludedVerticals($excludedVerticals) { - $this->billedBuyer = $billedBuyer; + $this->excludedVerticals = $excludedVerticals; } - public function getBilledBuyer() + public function getExcludedVerticals() { - return $this->billedBuyer; + return $this->excludedVerticals; } - public function setBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $buyer) + public function setGeoCriteriaIds($geoCriteriaIds) { - $this->buyer = $buyer; + $this->geoCriteriaIds = $geoCriteriaIds; } - public function getBuyer() + public function getGeoCriteriaIds() { - return $this->buyer; + return $this->geoCriteriaIds; } - public function setBuyerEmailContacts($buyerEmailContacts) + public function setIsActive($isActive) { - $this->buyerEmailContacts = $buyerEmailContacts; + $this->isActive = $isActive; } - public function getBuyerEmailContacts() + public function getIsActive() { - return $this->buyerEmailContacts; + return $this->isActive; } - public function setDealType($dealType) + public function setKind($kind) { - $this->dealType = $dealType; + $this->kind = $kind; } - public function getDealType() + public function getKind() { - return $this->dealType; + return $this->kind; } - public function setExternalDealId($externalDealId) + public function setLanguages($languages) { - $this->externalDealId = $externalDealId; + $this->languages = $languages; } - public function getExternalDealId() + public function getLanguages() { - return $this->externalDealId; + return $this->languages; } - public function setKind($kind) + public function setMobileCarriers($mobileCarriers) { - $this->kind = $kind; + $this->mobileCarriers = $mobileCarriers; } - public function getKind() + public function getMobileCarriers() { - return $this->kind; + return $this->mobileCarriers; } - public function setLabelNames($labelNames) + public function setMobileDevices($mobileDevices) { - $this->labelNames = $labelNames; + $this->mobileDevices = $mobileDevices; } - public function getLabelNames() + public function getMobileDevices() { - return $this->labelNames; + return $this->mobileDevices; } - public function setNegotiationId($negotiationId) + public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) { - $this->negotiationId = $negotiationId; + $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; } - public function getNegotiationId() + public function getMobileOperatingSystemVersions() { - return $this->negotiationId; + return $this->mobileOperatingSystemVersions; } - public function setNegotiationRounds($negotiationRounds) + public function setPlacements($placements) { - $this->negotiationRounds = $negotiationRounds; + $this->placements = $placements; } - public function getNegotiationRounds() + public function getPlacements() { - return $this->negotiationRounds; + return $this->placements; } - public function setNegotiationState($negotiationState) + public function setPlatforms($platforms) { - $this->negotiationState = $negotiationState; + $this->platforms = $platforms; } - public function getNegotiationState() + public function getPlatforms() { - return $this->negotiationState; + return $this->platforms; } - public function setOfferId($offerId) + public function setSupportedCreativeAttributes($supportedCreativeAttributes) { - $this->offerId = $offerId; + $this->supportedCreativeAttributes = $supportedCreativeAttributes; } - public function getOfferId() + public function getSupportedCreativeAttributes() { - return $this->offerId; + return $this->supportedCreativeAttributes; } - public function setSeller(Google_Service_AdExchangeBuyer_DealPartyDto $seller) + public function setUserLists($userLists) { - $this->seller = $seller; + $this->userLists = $userLists; } - public function getSeller() + public function getUserLists() { - return $this->seller; + return $this->userLists; } - public function setSellerEmailContacts($sellerEmailContacts) + public function setVendorTypes($vendorTypes) { - $this->sellerEmailContacts = $sellerEmailContacts; + $this->vendorTypes = $vendorTypes; } - public function getSellerEmailContacts() + public function getVendorTypes() { - return $this->sellerEmailContacts; + return $this->vendorTypes; } - public function setStats(Google_Service_AdExchangeBuyer_StatsDto $stats) + public function setVerticals($verticals) { - $this->stats = $stats; + $this->verticals = $verticals; } - public function getStats() + public function getVerticals() { - return $this->stats; + return $this->verticals; } - public function setStatus($status) + public function setVideoPlayerSizes($videoPlayerSizes) { - $this->status = $status; + $this->videoPlayerSizes = $videoPlayerSizes; } - public function getStatus() + public function getVideoPlayerSizes() { - return $this->status; + return $this->videoPlayerSizes; } } -class Google_Service_AdExchangeBuyer_NegotiationRoundDto extends Google_Model +class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model { protected $internal_gapi_mappings = array( ); - public $action; - public $dbmPartnerId; - protected $editHistoryType = 'Google_Service_AdExchangeBuyer_EditHistoryDto'; - protected $editHistoryDataType = ''; - public $kind; - public $negotiationId; - public $notes; - public $originatorRole; - public $roundNumber; - protected $termsType = 'Google_Service_AdExchangeBuyer_TermsDto'; - protected $termsDataType = ''; + public $height; + public $width; - public function setAction($action) + public function setHeight($height) { - $this->action = $action; + $this->height = $height; } - public function getAction() + public function getHeight() { - return $this->action; + return $this->height; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $token; + public $type; + + + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; } - public function setDbmPartnerId($dbmPartnerId) + public function setType($type) { - $this->dbmPartnerId = $dbmPartnerId; + $this->type = $type; } - public function getDbmPartnerId() + public function getType() { - return $this->dbmPartnerId; + return $this->type; } - public function setEditHistory(Google_Service_AdExchangeBuyer_EditHistoryDto $editHistory) +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) { - $this->editHistory = $editHistory; + $this->items = $items; } - public function getEditHistory() + public function getItems() { - return $this->editHistory; + return $this->items; } public function setKind($kind) { @@ -5145,851 +3768,536 @@ public function getKind() { return $this->kind; } - public function setNegotiationId($negotiationId) +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $token; + public $type; + + + public function setToken($token) { - $this->negotiationId = $negotiationId; + $this->token = $token; } - public function getNegotiationId() + public function getToken() { - return $this->negotiationId; + return $this->token; } - public function setNotes($notes) + public function setType($type) { - $this->notes = $notes; + $this->type = $type; } - public function getNotes() + public function getType() { - return $this->notes; + return $this->type; } - public function setOriginatorRole($originatorRole) +} + +class Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aspectRatio; + public $minHeight; + public $minWidth; + + + public function setAspectRatio($aspectRatio) { - $this->originatorRole = $originatorRole; + $this->aspectRatio = $aspectRatio; } - public function getOriginatorRole() + public function getAspectRatio() { - return $this->originatorRole; + return $this->aspectRatio; } - public function setRoundNumber($roundNumber) + public function setMinHeight($minHeight) { - $this->roundNumber = $roundNumber; + $this->minHeight = $minHeight; } - public function getRoundNumber() + public function getMinHeight() { - return $this->roundNumber; + return $this->minHeight; } - public function setTerms(Google_Service_AdExchangeBuyer_TermsDto $terms) + public function setMinWidth($minWidth) { - $this->terms = $terms; + $this->minWidth = $minWidth; } - public function getTerms() + public function getMinWidth() { - return $this->terms; + return $this->minWidth; } } -class Google_Service_AdExchangeBuyer_OfferDto extends Google_Collection +class Google_Service_AdExchangeBuyer_Price extends Google_Model { - protected $collection_key = 'openToDealParties'; protected $internal_gapi_mappings = array( ); - public $anonymous; - protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $billedBuyerDataType = ''; - protected $closedToDealPartiesType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $closedToDealPartiesDataType = 'array'; - protected $creatorType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $creatorDataType = ''; - public $emailContacts; - public $isOpen; - public $kind; - public $labelNames; - public $offerId; - public $offerState; - protected $openToDealPartiesType = 'Google_Service_AdExchangeBuyer_DealPartyDto'; - protected $openToDealPartiesDataType = 'array'; - public $pointOfContact; - public $status; - protected $termsType = 'Google_Service_AdExchangeBuyer_TermsDto'; - protected $termsDataType = ''; + public $amountMicros; + public $currencyCode; + public $pricingType; - public function setAnonymous($anonymous) + public function setAmountMicros($amountMicros) { - $this->anonymous = $anonymous; + $this->amountMicros = $amountMicros; } - public function getAnonymous() + public function getAmountMicros() { - return $this->anonymous; + return $this->amountMicros; } - public function setBilledBuyer(Google_Service_AdExchangeBuyer_DealPartyDto $billedBuyer) + public function setCurrencyCode($currencyCode) { - $this->billedBuyer = $billedBuyer; + $this->currencyCode = $currencyCode; } - public function getBilledBuyer() + public function getCurrencyCode() { - return $this->billedBuyer; + return $this->currencyCode; } - public function setClosedToDealParties($closedToDealParties) + public function setPricingType($pricingType) { - $this->closedToDealParties = $closedToDealParties; + $this->pricingType = $pricingType; } - public function getClosedToDealParties() + public function getPricingType() { - return $this->closedToDealParties; + return $this->pricingType; } - public function setCreator(Google_Service_AdExchangeBuyer_DealPartyDto $creator) +} + +class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $buyerDataType = ''; + protected $priceType = 'Google_Service_AdExchangeBuyer_Price'; + protected $priceDataType = ''; + + + public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) { - $this->creator = $creator; + $this->buyer = $buyer; } - public function getCreator() + public function getBuyer() { - return $this->creator; + return $this->buyer; } - public function setEmailContacts($emailContacts) + public function setPrice(Google_Service_AdExchangeBuyer_Price $price) { - $this->emailContacts = $emailContacts; + $this->price = $price; } - public function getEmailContacts() + public function getPrice() { - return $this->emailContacts; + return $this->price; } - public function setIsOpen($isOpen) +} + +class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $referenceId; + public $referencePayload; + + + public function setReferenceId($referenceId) { - $this->isOpen = $isOpen; + $this->referenceId = $referenceId; } - public function getIsOpen() + public function getReferenceId() { - return $this->isOpen; + return $this->referenceId; } - public function setKind($kind) + public function setReferencePayload($referencePayload) { - $this->kind = $kind; + $this->referencePayload = $referencePayload; } - public function getKind() + public function getReferencePayload() { - return $this->kind; + return $this->referencePayload; } - public function setLabelNames($labelNames) +} + +class Google_Service_AdExchangeBuyer_Product extends Google_Collection +{ + protected $collection_key = 'sharedTargetings'; + protected $internal_gapi_mappings = array( + ); + public $creationTimeMs; + protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $creatorContactsDataType = 'array'; + public $flightEndTimeMs; + public $flightStartTimeMs; + public $hasCreatorSignedOff; + public $inventorySource; + public $kind; + protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; + protected $labelsDataType = 'array'; + public $lastUpdateTimeMs; + public $name; + public $productId; + public $revisionNumber; + protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; + protected $sellerDataType = ''; + protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; + protected $sharedTargetingsDataType = 'array'; + public $state; + public $syndicationProduct; + protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; + protected $termsDataType = ''; + public $webPropertyCode; + + + public function setCreationTimeMs($creationTimeMs) { - $this->labelNames = $labelNames; + $this->creationTimeMs = $creationTimeMs; } - public function getLabelNames() + public function getCreationTimeMs() { - return $this->labelNames; + return $this->creationTimeMs; } - public function setOfferId($offerId) + public function setCreatorContacts($creatorContacts) { - $this->offerId = $offerId; + $this->creatorContacts = $creatorContacts; } - public function getOfferId() + public function getCreatorContacts() { - return $this->offerId; + return $this->creatorContacts; } - public function setOfferState($offerState) + public function setFlightEndTimeMs($flightEndTimeMs) { - $this->offerState = $offerState; + $this->flightEndTimeMs = $flightEndTimeMs; } - public function getOfferState() + public function getFlightEndTimeMs() { - return $this->offerState; + return $this->flightEndTimeMs; } - public function setOpenToDealParties($openToDealParties) + public function setFlightStartTimeMs($flightStartTimeMs) { - $this->openToDealParties = $openToDealParties; + $this->flightStartTimeMs = $flightStartTimeMs; } - public function getOpenToDealParties() + public function getFlightStartTimeMs() { - return $this->openToDealParties; + return $this->flightStartTimeMs; } - public function setPointOfContact($pointOfContact) + public function setHasCreatorSignedOff($hasCreatorSignedOff) { - $this->pointOfContact = $pointOfContact; + $this->hasCreatorSignedOff = $hasCreatorSignedOff; } - public function getPointOfContact() + public function getHasCreatorSignedOff() { - return $this->pointOfContact; + return $this->hasCreatorSignedOff; } - public function setStatus($status) + public function setInventorySource($inventorySource) { - $this->status = $status; + $this->inventorySource = $inventorySource; } - public function getStatus() + public function getInventorySource() { - return $this->status; + return $this->inventorySource; } - public function setTerms(Google_Service_AdExchangeBuyer_TermsDto $terms) + public function setKind($kind) { - $this->terms = $terms; + $this->kind = $kind; } - public function getTerms() + public function getKind() { - return $this->terms; + return $this->kind; } -} - -class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection -{ - protected $collection_key = 'hostedMatchStatusRate'; - protected $internal_gapi_mappings = array( - ); - public $bidRate; - public $bidRequestRate; - public $calloutStatusRate; - public $cookieMatcherStatusRate; - public $creativeStatusRate; - public $filteredBidRate; - public $hostedMatchStatusRate; - public $inventoryMatchRate; - public $kind; - public $latency50thPercentile; - public $latency85thPercentile; - public $latency95thPercentile; - public $noQuotaInRegion; - public $outOfQuota; - public $pixelMatchRequests; - public $pixelMatchResponses; - public $quotaConfiguredLimit; - public $quotaThrottledLimit; - public $region; - public $successfulRequestRate; - public $timestamp; - public $unsuccessfulRequestRate; - - - public function setBidRate($bidRate) + public function setLabels($labels) { - $this->bidRate = $bidRate; + $this->labels = $labels; } - public function getBidRate() + public function getLabels() { - return $this->bidRate; + return $this->labels; } - public function setBidRequestRate($bidRequestRate) + public function setLastUpdateTimeMs($lastUpdateTimeMs) { - $this->bidRequestRate = $bidRequestRate; + $this->lastUpdateTimeMs = $lastUpdateTimeMs; } - public function getBidRequestRate() + public function getLastUpdateTimeMs() { - return $this->bidRequestRate; + return $this->lastUpdateTimeMs; } - public function setCalloutStatusRate($calloutStatusRate) + public function setName($name) { - $this->calloutStatusRate = $calloutStatusRate; + $this->name = $name; } - public function getCalloutStatusRate() + public function getName() { - return $this->calloutStatusRate; + return $this->name; } - public function setCookieMatcherStatusRate($cookieMatcherStatusRate) + public function setProductId($productId) { - $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; + $this->productId = $productId; } - public function getCookieMatcherStatusRate() + public function getProductId() { - return $this->cookieMatcherStatusRate; + return $this->productId; } - public function setCreativeStatusRate($creativeStatusRate) + public function setRevisionNumber($revisionNumber) { - $this->creativeStatusRate = $creativeStatusRate; + $this->revisionNumber = $revisionNumber; } - public function getCreativeStatusRate() + public function getRevisionNumber() { - return $this->creativeStatusRate; + return $this->revisionNumber; } - public function setFilteredBidRate($filteredBidRate) + public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) { - $this->filteredBidRate = $filteredBidRate; + $this->seller = $seller; } - public function getFilteredBidRate() + public function getSeller() { - return $this->filteredBidRate; + return $this->seller; } - public function setHostedMatchStatusRate($hostedMatchStatusRate) + public function setSharedTargetings($sharedTargetings) { - $this->hostedMatchStatusRate = $hostedMatchStatusRate; + $this->sharedTargetings = $sharedTargetings; } - public function getHostedMatchStatusRate() + public function getSharedTargetings() { - return $this->hostedMatchStatusRate; + return $this->sharedTargetings; } - public function setInventoryMatchRate($inventoryMatchRate) + public function setState($state) { - $this->inventoryMatchRate = $inventoryMatchRate; + $this->state = $state; } - public function getInventoryMatchRate() + public function getState() { - return $this->inventoryMatchRate; + return $this->state; } - public function setKind($kind) + public function setSyndicationProduct($syndicationProduct) { - $this->kind = $kind; + $this->syndicationProduct = $syndicationProduct; } - public function getKind() + public function getSyndicationProduct() { - return $this->kind; + return $this->syndicationProduct; } - public function setLatency50thPercentile($latency50thPercentile) + public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) { - $this->latency50thPercentile = $latency50thPercentile; + $this->terms = $terms; } - public function getLatency50thPercentile() + public function getTerms() { - return $this->latency50thPercentile; + return $this->terms; } - public function setLatency85thPercentile($latency85thPercentile) + public function setWebPropertyCode($webPropertyCode) { - $this->latency85thPercentile = $latency85thPercentile; + $this->webPropertyCode = $webPropertyCode; } - public function getLatency85thPercentile() + public function getWebPropertyCode() { - return $this->latency85thPercentile; + return $this->webPropertyCode; } - public function setLatency95thPercentile($latency95thPercentile) +} + +class Google_Service_AdExchangeBuyer_Proposal extends Google_Collection +{ + protected $collection_key = 'sellerContacts'; + protected $internal_gapi_mappings = array( + ); + protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $billedBuyerDataType = ''; + protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; + protected $buyerDataType = ''; + protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $buyerContactsDataType = 'array'; + protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; + protected $buyerPrivateDataDataType = ''; + public $hasBuyerSignedOff; + public $hasSellerSignedOff; + public $inventorySource; + public $isRenegotiating; + public $isSetupComplete; + public $kind; + protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; + protected $labelsDataType = 'array'; + public $lastUpdaterOrCommentorRole; + public $lastUpdaterRole; + public $name; + public $originatorRole; + public $proposalId; + public $proposalState; + public $revisionNumber; + public $revisionTimeMs; + protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; + protected $sellerDataType = ''; + protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; + protected $sellerContactsDataType = 'array'; + + + public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer) { - $this->latency95thPercentile = $latency95thPercentile; + $this->billedBuyer = $billedBuyer; } - public function getLatency95thPercentile() + public function getBilledBuyer() { - return $this->latency95thPercentile; + return $this->billedBuyer; } - public function setNoQuotaInRegion($noQuotaInRegion) + public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) { - $this->noQuotaInRegion = $noQuotaInRegion; + $this->buyer = $buyer; } - public function getNoQuotaInRegion() + public function getBuyer() { - return $this->noQuotaInRegion; + return $this->buyer; } - public function setOutOfQuota($outOfQuota) + public function setBuyerContacts($buyerContacts) { - $this->outOfQuota = $outOfQuota; + $this->buyerContacts = $buyerContacts; } - public function getOutOfQuota() + public function getBuyerContacts() { - return $this->outOfQuota; + return $this->buyerContacts; } - public function setPixelMatchRequests($pixelMatchRequests) + public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) { - $this->pixelMatchRequests = $pixelMatchRequests; + $this->buyerPrivateData = $buyerPrivateData; } - public function getPixelMatchRequests() + public function getBuyerPrivateData() { - return $this->pixelMatchRequests; + return $this->buyerPrivateData; } - public function setPixelMatchResponses($pixelMatchResponses) + public function setHasBuyerSignedOff($hasBuyerSignedOff) { - $this->pixelMatchResponses = $pixelMatchResponses; + $this->hasBuyerSignedOff = $hasBuyerSignedOff; } - public function getPixelMatchResponses() + public function getHasBuyerSignedOff() { - return $this->pixelMatchResponses; + return $this->hasBuyerSignedOff; } - public function setQuotaConfiguredLimit($quotaConfiguredLimit) + public function setHasSellerSignedOff($hasSellerSignedOff) { - $this->quotaConfiguredLimit = $quotaConfiguredLimit; + $this->hasSellerSignedOff = $hasSellerSignedOff; } - public function getQuotaConfiguredLimit() + public function getHasSellerSignedOff() { - return $this->quotaConfiguredLimit; + return $this->hasSellerSignedOff; } - public function setQuotaThrottledLimit($quotaThrottledLimit) + public function setInventorySource($inventorySource) { - $this->quotaThrottledLimit = $quotaThrottledLimit; + $this->inventorySource = $inventorySource; } - public function getQuotaThrottledLimit() + public function getInventorySource() { - return $this->quotaThrottledLimit; + return $this->inventorySource; } - public function setRegion($region) + public function setIsRenegotiating($isRenegotiating) { - $this->region = $region; + $this->isRenegotiating = $isRenegotiating; } - public function getRegion() + public function getIsRenegotiating() { - return $this->region; + return $this->isRenegotiating; } - public function setSuccessfulRequestRate($successfulRequestRate) + public function setIsSetupComplete($isSetupComplete) { - $this->successfulRequestRate = $successfulRequestRate; + $this->isSetupComplete = $isSetupComplete; } - public function getSuccessfulRequestRate() + public function getIsSetupComplete() { - return $this->successfulRequestRate; + return $this->isSetupComplete; } - public function setTimestamp($timestamp) + public function setKind($kind) { - $this->timestamp = $timestamp; + $this->kind = $kind; } - public function getTimestamp() + public function getKind() { - return $this->timestamp; + return $this->kind; } - public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) + public function setLabels($labels) { - $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; + $this->labels = $labels; } - public function getUnsuccessfulRequestRate() + public function getLabels() { - return $this->unsuccessfulRequestRate; + return $this->labels; } -} - -class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection -{ - protected $collection_key = 'performanceReport'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; - protected $performanceReportDataType = 'array'; - - - public function setKind($kind) + public function setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole) { - $this->kind = $kind; + $this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole; } - public function getKind() + public function getLastUpdaterOrCommentorRole() { - return $this->kind; + return $this->lastUpdaterOrCommentorRole; } - public function setPerformanceReport($performanceReport) + public function setLastUpdaterRole($lastUpdaterRole) { - $this->performanceReport = $performanceReport; + $this->lastUpdaterRole = $lastUpdaterRole; } - public function getPerformanceReport() + public function getLastUpdaterRole() { - return $this->performanceReport; + return $this->lastUpdaterRole; } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection -{ - protected $collection_key = 'verticals'; - protected $internal_gapi_mappings = array( - ); - public $billingId; - public $configId; - public $configName; - public $creativeType; - protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; - protected $dimensionsDataType = 'array'; - public $excludedContentLabels; - public $excludedGeoCriteriaIds; - protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; - protected $excludedPlacementsDataType = 'array'; - public $excludedUserLists; - public $excludedVerticals; - public $geoCriteriaIds; - public $isActive; - public $kind; - public $languages; - public $mobileCarriers; - public $mobileDevices; - public $mobileOperatingSystemVersions; - protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; - protected $placementsDataType = 'array'; - public $platforms; - public $supportedCreativeAttributes; - public $userLists; - public $vendorTypes; - public $verticals; - - - public function setBillingId($billingId) + public function setName($name) { - $this->billingId = $billingId; + $this->name = $name; } - public function getBillingId() + public function getName() { - return $this->billingId; + return $this->name; } - public function setConfigId($configId) + public function setOriginatorRole($originatorRole) { - $this->configId = $configId; + $this->originatorRole = $originatorRole; } - public function getConfigId() + public function getOriginatorRole() { - return $this->configId; + return $this->originatorRole; } - public function setConfigName($configName) + public function setProposalId($proposalId) { - $this->configName = $configName; + $this->proposalId = $proposalId; } - public function getConfigName() + public function getProposalId() { - return $this->configName; - } - public function setCreativeType($creativeType) - { - $this->creativeType = $creativeType; - } - public function getCreativeType() - { - return $this->creativeType; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setExcludedContentLabels($excludedContentLabels) - { - $this->excludedContentLabels = $excludedContentLabels; - } - public function getExcludedContentLabels() - { - return $this->excludedContentLabels; - } - public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) - { - $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; - } - public function getExcludedGeoCriteriaIds() - { - return $this->excludedGeoCriteriaIds; - } - public function setExcludedPlacements($excludedPlacements) - { - $this->excludedPlacements = $excludedPlacements; - } - public function getExcludedPlacements() - { - return $this->excludedPlacements; - } - public function setExcludedUserLists($excludedUserLists) - { - $this->excludedUserLists = $excludedUserLists; - } - public function getExcludedUserLists() - { - return $this->excludedUserLists; - } - public function setExcludedVerticals($excludedVerticals) - { - $this->excludedVerticals = $excludedVerticals; - } - public function getExcludedVerticals() - { - return $this->excludedVerticals; - } - public function setGeoCriteriaIds($geoCriteriaIds) - { - $this->geoCriteriaIds = $geoCriteriaIds; - } - public function getGeoCriteriaIds() - { - return $this->geoCriteriaIds; - } - public function setIsActive($isActive) - { - $this->isActive = $isActive; - } - public function getIsActive() - { - return $this->isActive; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } - public function setMobileDevices($mobileDevices) - { - $this->mobileDevices = $mobileDevices; - } - public function getMobileDevices() - { - return $this->mobileDevices; - } - public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) - { - $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; - } - public function getMobileOperatingSystemVersions() - { - return $this->mobileOperatingSystemVersions; - } - public function setPlacements($placements) - { - $this->placements = $placements; - } - public function getPlacements() - { - return $this->placements; - } - public function setPlatforms($platforms) - { - $this->platforms = $platforms; - } - public function getPlatforms() - { - return $this->platforms; - } - public function setSupportedCreativeAttributes($supportedCreativeAttributes) - { - $this->supportedCreativeAttributes = $supportedCreativeAttributes; - } - public function getSupportedCreativeAttributes() - { - return $this->supportedCreativeAttributes; - } - public function setUserLists($userLists) - { - $this->userLists = $userLists; - } - public function getUserLists() - { - return $this->userLists; - } - public function setVendorTypes($vendorTypes) - { - $this->vendorTypes = $vendorTypes; - } - public function getVendorTypes() - { - return $this->vendorTypes; - } - public function setVerticals($verticals) - { - $this->verticals = $verticals; - } - public function getVerticals() - { - return $this->verticals; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - 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_AdExchangeBuyer_PretargetingConfigList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - 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_AdExchangeBuyer_Price extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountMicros; - public $currencyCode; - - - public function setAmountMicros($amountMicros) - { - $this->amountMicros = $amountMicros; - } - public function getAmountMicros() - { - return $this->amountMicros; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } -} - -class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $buyerDataType = ''; - protected $priceType = 'Google_Service_AdExchangeBuyer_Price'; - protected $priceDataType = ''; - - - public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) - { - $this->buyer = $buyer; - } - public function getBuyer() - { - return $this->buyer; + return $this->proposalId; } - public function setPrice(Google_Service_AdExchangeBuyer_Price $price) + public function setProposalState($proposalState) { - $this->price = $price; + $this->proposalState = $proposalState; } - public function getPrice() + public function getProposalState() { - return $this->price; + return $this->proposalState; } -} - -class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $referenceId; - public $referencePayload; - - - public function setReferenceId($referenceId) + public function setRevisionNumber($revisionNumber) { - $this->referenceId = $referenceId; + $this->revisionNumber = $revisionNumber; } - public function getReferenceId() + public function getRevisionNumber() { - return $this->referenceId; + return $this->revisionNumber; } - public function setReferencePayload($referencePayload) + public function setRevisionTimeMs($revisionTimeMs) { - $this->referencePayload = $referencePayload; + $this->revisionTimeMs = $revisionTimeMs; } - public function getReferencePayload() + public function getRevisionTimeMs() { - return $this->referencePayload; + return $this->revisionTimeMs; } -} - -class Google_Service_AdExchangeBuyer_RuleKeyValuePair extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $keyName; - public $value; - - - public function setKeyName($keyName) + public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) { - $this->keyName = $keyName; + $this->seller = $seller; } - public function getKeyName() + public function getSeller() { - return $this->keyName; + return $this->seller; } - public function setValue($value) + public function setSellerContacts($sellerContacts) { - $this->value = $value; + $this->sellerContacts = $sellerContacts; } - public function getValue() + public function getSellerContacts() { - return $this->value; + return $this->sellerContacts; } } @@ -6057,70 +4365,6 @@ public function getKey() } } -class Google_Service_AdExchangeBuyer_StatsDto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bids; - public $goodBids; - public $impressions; - public $requests; - protected $revenueType = 'Google_Service_AdExchangeBuyer_MoneyDto'; - protected $revenueDataType = ''; - protected $spendType = 'Google_Service_AdExchangeBuyer_MoneyDto'; - protected $spendDataType = ''; - - - public function setBids($bids) - { - $this->bids = $bids; - } - public function getBids() - { - return $this->bids; - } - public function setGoodBids($goodBids) - { - $this->goodBids = $goodBids; - } - public function getGoodBids() - { - return $this->goodBids; - } - public function setImpressions($impressions) - { - $this->impressions = $impressions; - } - public function getImpressions() - { - return $this->impressions; - } - public function setRequests($requests) - { - $this->requests = $requests; - } - public function getRequests() - { - return $this->requests; - } - public function setRevenue(Google_Service_AdExchangeBuyer_MoneyDto $revenue) - { - $this->revenue = $revenue; - } - public function getRevenue() - { - return $this->revenue; - } - public function setSpend(Google_Service_AdExchangeBuyer_MoneyDto $spend) - { - $this->spend = $spend; - } - public function getSpend() - { - return $this->spend; - } -} - class Google_Service_AdExchangeBuyer_TargetingValue extends Google_Model { protected $internal_gapi_mappings = array( @@ -6311,336 +4555,3 @@ public function getWidth() return $this->width; } } - -class Google_Service_AdExchangeBuyer_TermsDto extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - protected $adSlotsType = 'Google_Service_AdExchangeBuyer_AdSlotDto'; - protected $adSlotsDataType = 'array'; - protected $advertisersType = 'Google_Service_AdExchangeBuyer_AdvertiserDto'; - protected $advertisersDataType = 'array'; - protected $audienceSegmentType = 'Google_Service_AdExchangeBuyer_AudienceSegment'; - protected $audienceSegmentDataType = ''; - public $audienceSegmentDescription; - public $billingTerms; - public $buyerBillingType; - protected $cpmType = 'Google_Service_AdExchangeBuyer_MoneyDto'; - protected $cpmDataType = ''; - public $creativeBlockingLevel; - public $creativeReviewPolicy; - protected $dealPremiumType = 'Google_Service_AdExchangeBuyer_MoneyDto'; - protected $dealPremiumDataType = ''; - public $description; - public $descriptiveName; - protected $endDateType = 'Google_Service_AdExchangeBuyer_DateTime'; - protected $endDateDataType = ''; - public $estimatedImpressionsPerDay; - protected $estimatedSpendType = 'Google_Service_AdExchangeBuyer_MoneyDto'; - protected $estimatedSpendDataType = ''; - public $finalizeAutomatically; - protected $inventorySegmentTargetingType = 'Google_Service_AdExchangeBuyer_InventorySegmentTargeting'; - protected $inventorySegmentTargetingDataType = ''; - public $isReservation; - public $minimumSpendMicros; - public $minimumTrueLooks; - public $monetizerType; - public $semiTransparent; - protected $startDateType = 'Google_Service_AdExchangeBuyer_DateTime'; - protected $startDateDataType = ''; - public $targetByDealId; - public $targetingAllAdSlots; - public $termsAttributes; - public $urls; - - - public function setAdSlots($adSlots) - { - $this->adSlots = $adSlots; - } - public function getAdSlots() - { - return $this->adSlots; - } - public function setAdvertisers($advertisers) - { - $this->advertisers = $advertisers; - } - public function getAdvertisers() - { - return $this->advertisers; - } - public function setAudienceSegment(Google_Service_AdExchangeBuyer_AudienceSegment $audienceSegment) - { - $this->audienceSegment = $audienceSegment; - } - public function getAudienceSegment() - { - return $this->audienceSegment; - } - public function setAudienceSegmentDescription($audienceSegmentDescription) - { - $this->audienceSegmentDescription = $audienceSegmentDescription; - } - public function getAudienceSegmentDescription() - { - return $this->audienceSegmentDescription; - } - public function setBillingTerms($billingTerms) - { - $this->billingTerms = $billingTerms; - } - public function getBillingTerms() - { - return $this->billingTerms; - } - public function setBuyerBillingType($buyerBillingType) - { - $this->buyerBillingType = $buyerBillingType; - } - public function getBuyerBillingType() - { - return $this->buyerBillingType; - } - public function setCpm(Google_Service_AdExchangeBuyer_MoneyDto $cpm) - { - $this->cpm = $cpm; - } - public function getCpm() - { - return $this->cpm; - } - public function setCreativeBlockingLevel($creativeBlockingLevel) - { - $this->creativeBlockingLevel = $creativeBlockingLevel; - } - public function getCreativeBlockingLevel() - { - return $this->creativeBlockingLevel; - } - public function setCreativeReviewPolicy($creativeReviewPolicy) - { - $this->creativeReviewPolicy = $creativeReviewPolicy; - } - public function getCreativeReviewPolicy() - { - return $this->creativeReviewPolicy; - } - public function setDealPremium(Google_Service_AdExchangeBuyer_MoneyDto $dealPremium) - { - $this->dealPremium = $dealPremium; - } - public function getDealPremium() - { - return $this->dealPremium; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDescriptiveName($descriptiveName) - { - $this->descriptiveName = $descriptiveName; - } - public function getDescriptiveName() - { - return $this->descriptiveName; - } - public function setEndDate(Google_Service_AdExchangeBuyer_DateTime $endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay) - { - $this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay; - } - public function getEstimatedImpressionsPerDay() - { - return $this->estimatedImpressionsPerDay; - } - public function setEstimatedSpend(Google_Service_AdExchangeBuyer_MoneyDto $estimatedSpend) - { - $this->estimatedSpend = $estimatedSpend; - } - public function getEstimatedSpend() - { - return $this->estimatedSpend; - } - public function setFinalizeAutomatically($finalizeAutomatically) - { - $this->finalizeAutomatically = $finalizeAutomatically; - } - public function getFinalizeAutomatically() - { - return $this->finalizeAutomatically; - } - public function setInventorySegmentTargeting(Google_Service_AdExchangeBuyer_InventorySegmentTargeting $inventorySegmentTargeting) - { - $this->inventorySegmentTargeting = $inventorySegmentTargeting; - } - public function getInventorySegmentTargeting() - { - return $this->inventorySegmentTargeting; - } - public function setIsReservation($isReservation) - { - $this->isReservation = $isReservation; - } - public function getIsReservation() - { - return $this->isReservation; - } - public function setMinimumSpendMicros($minimumSpendMicros) - { - $this->minimumSpendMicros = $minimumSpendMicros; - } - public function getMinimumSpendMicros() - { - return $this->minimumSpendMicros; - } - public function setMinimumTrueLooks($minimumTrueLooks) - { - $this->minimumTrueLooks = $minimumTrueLooks; - } - public function getMinimumTrueLooks() - { - return $this->minimumTrueLooks; - } - public function setMonetizerType($monetizerType) - { - $this->monetizerType = $monetizerType; - } - public function getMonetizerType() - { - return $this->monetizerType; - } - public function setSemiTransparent($semiTransparent) - { - $this->semiTransparent = $semiTransparent; - } - public function getSemiTransparent() - { - return $this->semiTransparent; - } - public function setStartDate(Google_Service_AdExchangeBuyer_DateTime $startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setTargetByDealId($targetByDealId) - { - $this->targetByDealId = $targetByDealId; - } - public function getTargetByDealId() - { - return $this->targetByDealId; - } - public function setTargetingAllAdSlots($targetingAllAdSlots) - { - $this->targetingAllAdSlots = $targetingAllAdSlots; - } - public function getTargetingAllAdSlots() - { - return $this->targetingAllAdSlots; - } - public function setTermsAttributes($termsAttributes) - { - $this->termsAttributes = $termsAttributes; - } - public function getTermsAttributes() - { - return $this->termsAttributes; - } - public function setUrls($urls) - { - $this->urls = $urls; - } - public function getUrls() - { - return $this->urls; - } -} - -class Google_Service_AdExchangeBuyer_WebPropertyDto extends Google_Collection -{ - protected $collection_key = 'siteUrls'; - protected $internal_gapi_mappings = array( - ); - public $allowInterestTargetedAds; - public $enabledForPreferredDeals; - public $id; - public $name; - public $propertyCode; - public $siteUrls; - public $syndicationProduct; - - - public function setAllowInterestTargetedAds($allowInterestTargetedAds) - { - $this->allowInterestTargetedAds = $allowInterestTargetedAds; - } - public function getAllowInterestTargetedAds() - { - return $this->allowInterestTargetedAds; - } - public function setEnabledForPreferredDeals($enabledForPreferredDeals) - { - $this->enabledForPreferredDeals = $enabledForPreferredDeals; - } - public function getEnabledForPreferredDeals() - { - return $this->enabledForPreferredDeals; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPropertyCode($propertyCode) - { - $this->propertyCode = $propertyCode; - } - public function getPropertyCode() - { - return $this->propertyCode; - } - public function setSiteUrls($siteUrls) - { - $this->siteUrls = $siteUrls; - } - public function getSiteUrls() - { - return $this->siteUrls; - } - public function setSyndicationProduct($syndicationProduct) - { - $this->syndicationProduct = $syndicationProduct; - } - public function getSyndicationProduct() - { - return $this->syndicationProduct; - } -} diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php index d48dbaf6c..cd0cba6ae 100644 --- a/src/Google/Service/AdExchangeSeller.php +++ b/src/Google/Service/AdExchangeSeller.php @@ -1,6 +1,6 @@ 'accounts', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -111,14 +111,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -188,14 +188,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -301,38 +301,38 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sort' => array( + 'dimension' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'locale' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'metric' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( + 'metric' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -362,11 +362,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'startIndex' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( + 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), @@ -380,14 +380,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -413,14 +413,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -462,11 +462,11 @@ public function get($accountId, $optParams = array()) * * @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. - * @opt_param int maxResults The maximum number of accounts to include in the - * response, used for paging. * @return Google_Service_AdExchangeSeller_Accounts */ public function listAccounts($optParams = array()) @@ -495,11 +495,11 @@ class Google_Service_AdExchangeSeller_AccountsAdclients_Resource extends Google_ * @param string $accountId Account to which the ad client belongs. * @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. - * @opt_param string maxResults The maximum number of ad clients to include in - * the response, used for paging. * @return Google_Service_AdExchangeSeller_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -574,11 +574,11 @@ public function get($accountId, $adClientId, $customChannelId, $optParams = arra * @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. - * @opt_param string maxResults The maximum number of custom channels to include - * in the response, used for paging. * @return Google_Service_AdExchangeSeller_CustomChannels */ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) @@ -717,17 +717,17 @@ class Google_Service_AdExchangeSeller_AccountsReports_Resource extends Google_Se * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort The name of a dimension or metric to sort the - * resulting report on, optionally prefixed with "+" to sort ascending or "-" to - * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string 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 metric Numeric columns to include in the report. * @opt_param string maxResults The maximum number of rows of report data to * return. - * @opt_param string filter Filters to be run on the report. + * @opt_param string 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. - * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdExchangeSeller_Report */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -759,9 +759,9 @@ class Google_Service_AdExchangeSeller_AccountsReportsSaved_Resource extends Goog * * @opt_param string locale Optional locale to use for translating report output * to a local language. Defaults to "en_US" if not specified. - * @opt_param int startIndex Index of the first row of report data to return. * @opt_param int maxResults The maximum number of rows of report data to * return. + * @opt_param int startIndex Index of the first row of report data to return. * @return Google_Service_AdExchangeSeller_Report */ public function generate($accountId, $savedReportId, $optParams = array()) @@ -778,11 +778,11 @@ public function generate($accountId, $savedReportId, $optParams = array()) * @param string $accountId Account owning the saved reports. * @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. - * @opt_param int maxResults The maximum number of saved reports to include in - * the response, used for paging. * @return Google_Service_AdExchangeSeller_SavedReports */ public function listAccountsReportsSaved($accountId, $optParams = array()) @@ -811,11 +811,11 @@ class Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource extends Googl * @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. - * @opt_param string maxResults The maximum number of URL channels to include in - * the response, used for paging. * @return Google_Service_AdExchangeSeller_UrlChannels */ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php index 3979ff3c6..95356ccb7 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -1,6 +1,6 @@ 'accounts', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -130,14 +130,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -207,14 +207,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -245,14 +245,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -337,14 +337,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -437,32 +437,37 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sort' => array( + 'currency' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'locale' => array( + 'dimension' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'metric' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( + 'metric' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'currency' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'startIndex' => array( 'location' => 'query', @@ -472,11 +477,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), ), ), ) @@ -506,11 +506,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'startIndex' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( + 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), @@ -524,14 +524,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -567,14 +567,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -600,14 +600,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -623,14 +623,14 @@ public function __construct(Google_Client $client) 'path' => 'adclients', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -685,14 +685,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -718,14 +718,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -790,14 +790,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -827,14 +827,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -902,51 +902,51 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sort' => array( + 'accountId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'locale' => array( + 'currency' => array( 'location' => 'query', 'type' => 'string', ), - 'metric' => array( + 'dimension' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'currency' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', ), - 'startIndex' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'useTimezoneReporting' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dimension' => array( + 'metric' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'accountId' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'useTimezoneReporting' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -971,11 +971,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'startIndex' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( + 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), @@ -984,14 +984,14 @@ public function __construct(Google_Client $client) 'path' => 'reports/saved', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1017,14 +1017,14 @@ public function __construct(Google_Client $client) 'path' => 'savedadstyles', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1045,14 +1045,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1094,11 +1094,11 @@ public function get($accountId, $optParams = array()) * * @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. - * @opt_param int maxResults The maximum number of accounts to include in the - * response, used for paging. * @return Google_Service_AdSense_Accounts */ public function listAccounts($optParams = array()) @@ -1127,11 +1127,11 @@ class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_R * @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. - * @opt_param int maxResults The maximum number of ad clients to include in the - * response, used for paging. * @return Google_Service_AdSense_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -1195,11 +1195,11 @@ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array * * @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. - * @opt_param int maxResults The maximum number of ad units to include in the - * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) @@ -1230,11 +1230,11 @@ class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Goog * @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. - * @opt_param int maxResults The maximum number of custom channels to include in - * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) @@ -1325,11 +1325,11 @@ public function get($accountId, $adClientId, $customChannelId, $optParams = arra * @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. - * @opt_param int maxResults The maximum number of custom channels to include in - * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) @@ -1425,22 +1425,22 @@ class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Res * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort The name of a dimension or metric to sort the - * resulting report on, optionally prefixed with "+" to sort ascending or "-" to - * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string 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 string metric Numeric columns to include in the report. * @opt_param int maxResults The maximum number of rows of report data to * return. - * @opt_param string filter Filters to be run on the report. - * @opt_param string currency Optional currency to use when reporting on - * monetary metrics. Defaults to the account's currency if not set. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. * @opt_param int startIndex Index of the first row of report data to return. * @opt_param bool useTimezoneReporting Whether the report should be generated * in the AdSense account's local timezone. If false default PST/PDT timezone * will be used. - * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -1472,9 +1472,9 @@ class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Servic * * @opt_param string locale Optional locale to use for translating report output * to a local language. Defaults to "en_US" if not specified. - * @opt_param int startIndex Index of the first row of report data to return. * @opt_param int maxResults The maximum number of rows of report data to * return. + * @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()) @@ -1491,11 +1491,11 @@ public function generate($accountId, $savedReportId, $optParams = array()) * @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. - * @opt_param int maxResults The maximum number of saved reports to include in - * the response, used for paging. * @return Google_Service_AdSense_SavedReports */ public function listAccountsReportsSaved($accountId, $optParams = array()) @@ -1538,11 +1538,11 @@ public function get($accountId, $savedAdStyleId, $optParams = array()) * @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. - * @opt_param int maxResults The maximum number of saved ad styles to include in - * the response, used for paging. * @return Google_Service_AdSense_SavedAdStyles */ public function listAccountsSavedadstyles($accountId, $optParams = array()) @@ -1571,11 +1571,11 @@ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service * @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. - * @opt_param int maxResults The maximum number of URL channels to include in - * the response, used for paging. * @return Google_Service_AdSense_UrlChannels */ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) @@ -1602,11 +1602,11 @@ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource * * @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. - * @opt_param int maxResults The maximum number of ad clients to include in the - * response, used for paging. * @return Google_Service_AdSense_AdClients */ public function listAdclients($optParams = array()) @@ -1667,11 +1667,11 @@ public function getAdCode($adClientId, $adUnitId, $optParams = array()) * * @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. - * @opt_param int maxResults The maximum number of ad units to include in the - * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listAdunits($adClientId, $optParams = array()) @@ -1701,11 +1701,11 @@ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Servi * @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. - * @opt_param int maxResults The maximum number of custom channels to include in - * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) @@ -1793,11 +1793,11 @@ public function get($adClientId, $customChannelId, $optParams = array()) * @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. - * @opt_param int maxResults The maximum number of custom channels to include in - * the response, used for paging. * @return Google_Service_AdSense_CustomChannels */ public function listCustomchannels($adClientId, $optParams = array()) @@ -1829,11 +1829,11 @@ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Servi * * @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. - * @opt_param int maxResults The maximum number of ad units to include in the - * response, used for paging. * @return Google_Service_AdSense_AdUnits */ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) @@ -1954,23 +1954,23 @@ class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort The name of a dimension or metric to sort the - * resulting report on, optionally prefixed with "+" to sort ascending or "-" to - * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string 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 string metric Numeric columns to include in the report. * @opt_param int maxResults The maximum number of rows of report data to * return. - * @opt_param string filter Filters to be run on the report. - * @opt_param string currency Optional currency to use when reporting on - * monetary metrics. Defaults to the account's currency if not set. + * @opt_param string metric Numeric columns to include in the report. + * @opt_param string sort The name of a dimension or metric to sort the + * resulting report on, optionally prefixed with "+" to sort ascending or "-" to + * sort descending. If no prefix is specified, the column is sorted ascending. * @opt_param int startIndex Index of the first row of report data to return. * @opt_param bool useTimezoneReporting Whether the report should be generated * in the AdSense account's local timezone. If false default PST/PDT timezone * will be used. - * @opt_param string dimension Dimensions to base the report on. - * @opt_param string accountId Accounts upon which to report. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse */ public function generate($startDate, $endDate, $optParams = array()) @@ -2001,9 +2001,9 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour * * @opt_param string locale Optional locale to use for translating report output * to a local language. Defaults to "en_US" if not specified. - * @opt_param int startIndex Index of the first row of report data to return. * @opt_param int maxResults The maximum number of rows of report data to * return. + * @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()) @@ -2018,11 +2018,11 @@ public function generate($savedReportId, $optParams = array()) * * @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. - * @opt_param int maxResults The maximum number of saved reports to include in - * the response, used for paging. * @return Google_Service_AdSense_SavedReports */ public function listReportsSaved($optParams = array()) @@ -2064,11 +2064,11 @@ public function get($savedAdStyleId, $optParams = array()) * * @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. - * @opt_param int maxResults The maximum number of saved ad styles to include in - * the response, used for paging. * @return Google_Service_AdSense_SavedAdStyles */ public function listSavedadstyles($optParams = array()) @@ -2097,11 +2097,11 @@ class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resourc * @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. - * @opt_param int maxResults The maximum number of URL channels to include in - * the response, used for paging. * @return Google_Service_AdSense_UrlChannels */ public function listUrlchannels($adClientId, $optParams = array()) @@ -2240,7 +2240,6 @@ class Google_Service_AdSense_AdClient extends Google_Model protected $internal_gapi_mappings = array( ); public $arcOptIn; - public $arcReviewMode; public $id; public $kind; public $productCode; @@ -2255,14 +2254,6 @@ public function getArcOptIn() { return $this->arcOptIn; } - public function setArcReviewMode($arcReviewMode) - { - $this->arcReviewMode = $arcReviewMode; - } - public function getArcReviewMode() - { - return $this->arcReviewMode; - } public function setId($id) { $this->id = $id; diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index 101eab225..eee99cec0 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -237,14 +237,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', @@ -310,38 +310,38 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sort' => array( + 'dimension' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'locale' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'metric' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( + 'metric' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -367,14 +367,14 @@ public function __construct(Google_Client $client) 'path' => 'adclients', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -401,11 +401,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'websiteLocale' => array( + 'userLocale' => array( 'location' => 'query', 'type' => 'string', ), - 'userLocale' => array( + 'websiteLocale' => array( 'location' => 'query', 'type' => 'string', ), @@ -479,14 +479,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'adclients/{adClientId}/customchannels', @@ -537,38 +537,38 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sort' => array( + 'dimension' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'locale' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'metric' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( + 'metric' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -614,14 +614,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -706,11 +706,11 @@ public function get($accountId, $adClientId, $optParams = array()) * @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. - * @opt_param string maxResults The maximum number of ad clients to include in - * the response, used for paging. * @return Google_Service_AdSenseHost_AdClients */ public function listAccountsAdclients($accountId, $optParams = array()) @@ -811,11 +811,11 @@ public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUni * * @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. - * @opt_param string maxResults The maximum number of ad units to include in the - * response, used for paging. * @return Google_Service_AdSenseHost_AdUnits */ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) @@ -883,17 +883,17 @@ class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort The name of a dimension or metric to sort the - * resulting report on, optionally prefixed with "+" to sort ascending or "-" to - * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string 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 metric Numeric columns to include in the report. * @opt_param string maxResults The maximum number of rows of report data to * return. - * @opt_param string filter Filters to be run on the report. + * @opt_param string 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. - * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSenseHost_Report */ public function generate($accountId, $startDate, $endDate, $optParams = array()) @@ -935,11 +935,11 @@ public function get($adClientId, $optParams = array()) * * @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. - * @opt_param string maxResults The maximum number of ad clients to include in - * the response, used for paging. * @return Google_Service_AdSenseHost_AdClients */ public function listAdclients($optParams = array()) @@ -969,8 +969,8 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser * @param string $websiteUrl The URL of the user's hosted website. * @param array $optParams Optional parameters. * - * @opt_param string websiteLocale The locale of the user's hosted website. * @opt_param string userLocale The preferred locale of the user. + * @opt_param string websiteLocale The locale of the user's hosted website. * @return Google_Service_AdSenseHost_AssociationSession */ public function start($productCode, $websiteUrl, $optParams = array()) @@ -1062,11 +1062,11 @@ public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $po * @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. - * @opt_param string maxResults The maximum number of custom channels to include - * in the response, used for paging. * @return Google_Service_AdSenseHost_CustomChannels */ public function listCustomchannels($adClientId, $optParams = array()) @@ -1133,17 +1133,17 @@ class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resourc * format, inclusive. * @param array $optParams Optional parameters. * - * @opt_param string sort The name of a dimension or metric to sort the - * resulting report on, optionally prefixed with "+" to sort ascending or "-" to - * sort descending. If no prefix is specified, the column is sorted ascending. + * @opt_param string 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 metric Numeric columns to include in the report. * @opt_param string maxResults The maximum number of rows of report data to * return. - * @opt_param string filter Filters to be run on the report. + * @opt_param string 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. - * @opt_param string dimension Dimensions to base the report on. * @return Google_Service_AdSenseHost_Report */ public function generate($startDate, $endDate, $optParams = array()) @@ -1203,11 +1203,11 @@ public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postB * @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. - * @opt_param string maxResults The maximum number of URL channels to include in - * the response, used for paging. * @return Google_Service_AdSenseHost_UrlChannels */ public function listUrlchannels($adClientId, $optParams = array()) diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 954ca0f08..0b073362f 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'max-results' => array( + 'dimensions' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'sort' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'dimensions' => array( + 'include-empty-rows' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'start-index' => array( + 'max-results' => array( 'location' => 'query', 'type' => 'integer', ), - 'segment' => array( + 'output' => array( 'location' => 'query', 'type' => 'string', ), @@ -141,14 +141,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'filters' => array( + 'segment' => array( 'location' => 'query', 'type' => 'string', ), - 'output' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -184,19 +188,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( + 'dimensions' => array( 'location' => 'query', 'type' => 'string', ), - 'dimensions' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'start-index' => array( + 'max-results' => array( 'location' => 'query', 'type' => 'integer', ), @@ -204,10 +204,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'filters' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -233,19 +237,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'max-results' => array( + 'dimensions' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'sort' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'dimensions' => array( + 'max-results' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'filters' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', ), @@ -1445,7 +1449,32 @@ public function __construct(Google_Client $client) 'unsampledReports', array( 'methods' => array( - 'get' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'unsampledReportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -2000,20 +2029,22 @@ class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource * 'ga:sessions,ga:pageviews'. At least one metric must be specified. * @param array $optParams Optional parameters. * - * @opt_param int max-results The maximum number of entries to include in this - * feed. - * @opt_param string sort A comma-separated list of dimensions or metrics that - * determine the sort order for Analytics data. * @opt_param string dimensions A comma-separated list of Analytics dimensions. * E.g., 'ga:browser,ga:city'. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @opt_param string segment An Analytics segment to be applied to data. - * @opt_param string samplingLevel The desired sampling level. * @opt_param string filters A comma-separated list of dimension or metric * filters to be applied to Analytics data. + * @opt_param bool include-empty-rows The response will include empty rows if + * this parameter is set to true, the default is true + * @opt_param int max-results The maximum number of entries to include in this + * feed. * @opt_param string output The selected format for the response. Default format * is JSON. + * @opt_param string samplingLevel The desired sampling level. + * @opt_param string segment An Analytics 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, $startDate, $endDate, $metrics, $optParams = array()) @@ -2050,17 +2081,17 @@ class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource * 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 samplingLevel The desired sampling level. * @opt_param string sort A comma-separated list of dimensions or metrics that * determine the sort order for the Analytics data. - * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels - * dimensions. E.g., 'mcf:source,mcf:medium'. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. - * @opt_param string samplingLevel The desired sampling level. - * @opt_param string filters A comma-separated list of dimension or metric - * filters to be applied to the Analytics data. * @return Google_Service_Analytics_McfData */ public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) @@ -2090,14 +2121,14 @@ class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Reso * 'rt:activeUsers'. At least one metric must be specified. * @param array $optParams Optional parameters. * - * @opt_param int max-results The maximum number of entries to include in this - * feed. - * @opt_param string sort A comma-separated list of dimensions or metrics that - * determine the sort order for real time data. * @opt_param string dimensions A comma-separated list of real time dimensions. * E.g., 'rt:medium,rt:city'. * @opt_param string filters A comma-separated list of dimension or metric * filters to be applied to real time data. + * @opt_param int max-results The maximum number of entries to include in this + * feed. + * @opt_param string sort A comma-separated list of dimensions or metrics that + * determine the sort order for real time data. * @return Google_Service_Analytics_RealtimeData */ public function get($ids, $metrics, $optParams = array()) @@ -3242,6 +3273,24 @@ public function listManagementSegments($optParams = array()) class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Google_Service_Resource { + /** + * Deletes an unsampled report. (unsampledReports.delete) + * + * @param string $accountId Account ID to delete the unsampled report for. + * @param string $webPropertyId Web property ID to delete the unsampled reports + * for. + * @param string $profileId View (Profile) ID to delete the unsampled report + * for. + * @param string $unsampledReportId ID of the unsampled report to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** * Returns a single unsampled report. (unsampledReports.get) * @@ -4304,10 +4353,6 @@ public function getKind() } } -class Google_Service_Analytics_ColumnAttributes extends Google_Model -{ -} - class Google_Service_Analytics_Columns extends Google_Collection { protected $collection_key = 'items'; @@ -6983,10 +7028,6 @@ public function getStartIndex() } } -class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model -{ -} - class Google_Service_Analytics_Goal extends Google_Model { protected $internal_gapi_mappings = array( @@ -7904,15 +7945,12 @@ public function getNodeValue() } } -class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model -{ -} - class Google_Service_Analytics_Profile extends Google_Model { protected $internal_gapi_mappings = array( ); public $accountId; + public $botFilteringEnabled; protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink'; protected $childLinkDataType = ''; public $created; @@ -7949,6 +7987,14 @@ public function getAccountId() { return $this->accountId; } + public function setBotFilteringEnabled($botFilteringEnabled) + { + $this->botFilteringEnabled = $botFilteringEnabled; + } + public function getBotFilteringEnabled() + { + return $this->botFilteringEnabled; + } public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink) { $this->childLink = $childLink; @@ -8802,10 +8848,6 @@ public function getSort() } } -class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model -{ -} - class Google_Service_Analytics_Segment extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php index 849961970..710da144e 100644 --- a/src/Google/Service/AndroidEnterprise.php +++ b/src/Google/Service/AndroidEnterprise.php @@ -1,6 +1,6 @@ * For more information about this service, see the API - * Documentation + * Documentation *

    * * @author Google, Inc. @@ -45,6 +45,8 @@ class Google_Service_AndroidEnterprise extends Google_Service public $installs; public $permissions; public $products; + public $storelayoutclusters; + public $storelayoutpages; public $users; @@ -377,6 +379,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'getStoreLayout' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => 'enterprises', 'httpMethod' => 'POST', @@ -417,6 +429,16 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setStoreLayout' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'unenroll' => array( 'path' => 'enterprises/{enterpriseId}/unenroll', 'httpMethod' => 'POST', @@ -870,6 +892,216 @@ public function __construct(Google_Client $client) ) ) ); + $this->storelayoutclusters = new Google_Service_AndroidEnterprise_Storelayoutclusters_Resource( + $this, + $this->serviceName, + 'storelayoutclusters', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->storelayoutpages = new Google_Service_AndroidEnterprise_Storelayoutpages_Resource( + $this, + $this->serviceName, + 'storelayoutpages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->users = new Google_Service_AndroidEnterprise_Users_Resource( $this, $this->serviceName, @@ -1278,7 +1510,7 @@ class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Servi { /** - * Deletes the binding between the MDM and enterprise. This is now deprecated; + * Deletes the binding between the EMM and enterprise. This is now deprecated; * use this to unenroll customers that were previously enrolled with the * 'insert' call, then enroll them again with the 'enroll' call. * (enterprises.delete) @@ -1294,10 +1526,10 @@ public function delete($enterpriseId, $optParams = array()) } /** - * Enrolls an enterprise with the calling MDM. (enterprises.enroll) + * Enrolls an enterprise with the calling EMM. (enterprises.enroll) * * @param string $token The token provided by the enterprise to register the - * MDM. + * EMM. * @param Google_Enterprise $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidEnterprise_Enterprise @@ -1324,11 +1556,25 @@ public function get($enterpriseId, $optParams = array()) } /** - * Establishes the binding between the MDM and an enterprise. This is now + * Returns the store layout resource. (enterprises.getStoreLayout) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreLayout + */ + public function getStoreLayout($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('getStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout"); + } + + /** + * Establishes the binding between the EMM and an enterprise. This is now * deprecated; use enroll instead. (enterprises.insert) * * @param string $token The token provided by the enterprise to register the - * MDM. + * EMM. * @param Google_Enterprise $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidEnterprise_Enterprise @@ -1356,7 +1602,7 @@ public function listEnterprises($domain, $optParams = array()) } /** - * Sends a test push notification to validate the MDM integration with the + * Sends a test push notification to validate the EMM integration with the * Google Cloud Pub/Sub service for this enterprise. * (enterprises.sendTestPushNotification) * @@ -1388,7 +1634,22 @@ public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_Enter } /** - * Unenrolls an enterprise from the calling MDM. (enterprises.unenroll) + * Sets the store layout resource. (enterprises.setStoreLayout) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_StoreLayout $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreLayout + */ + public function setStoreLayout($enterpriseId, Google_Service_AndroidEnterprise_StoreLayout $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout"); + } + + /** + * Unenrolls an enterprise from the calling EMM. (enterprises.unenroll) * * @param string $enterpriseId The ID of the enterprise. * @param array $optParams Optional parameters. @@ -1831,8 +2092,14 @@ public function getPermissions($enterpriseId, $productId, $optParams = array()) } /** - * Updates the set of Android app permissions for this app that have been - * accepted by the enterprise. (products.updatePermissions) + * This method has been deprecated. To programmatically approve applications, + * you must use the iframe mechanism via the generateApprovalUrl and approve + * methods of the Products resource. For more information, see the Play EMM API + * usage requirements. + * + * The updatePermissions method (deprecated) updates the set of Android app + * permissions for this app that have been accepted by the enterprise. + * (products.updatePermissions) * * @param string $enterpriseId The ID of the enterprise. * @param string $productId The ID of the product. @@ -1848,6 +2115,220 @@ public function updatePermissions($enterpriseId, $productId, Google_Service_Andr } } +/** + * The "storelayoutclusters" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $storelayoutclusters = $androidenterpriseService->storelayoutclusters; + * + */ +class Google_Service_AndroidEnterprise_Storelayoutclusters_Resource extends Google_Service_Resource +{ + + /** + * Deletes a cluster. (storelayoutclusters.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param string $clusterId The ID of the cluster. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $pageId, $clusterId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of a cluster. (storelayoutclusters.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param string $clusterId The ID of the cluster. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreCluster + */ + public function get($enterpriseId, $pageId, $clusterId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); + } + + /** + * Inserts a new cluster in a page. (storelayoutclusters.insert) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param Google_StoreCluster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreCluster + */ + public function insert($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); + } + + /** + * Retrieves the details of all clusters on the specified page. + * (storelayoutclusters.listStorelayoutclusters) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse + */ + public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse"); + } + + /** + * Updates a cluster. This method supports patch semantics. + * (storelayoutclusters.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param string $clusterId The ID of the cluster. + * @param Google_StoreCluster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreCluster + */ + public function patch($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); + } + + /** + * Updates a cluster. (storelayoutclusters.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param string $clusterId The ID of the cluster. + * @param Google_StoreCluster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreCluster + */ + public function update($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); + } +} + +/** + * The "storelayoutpages" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $storelayoutpages = $androidenterpriseService->storelayoutpages; + * + */ +class Google_Service_AndroidEnterprise_Storelayoutpages_Resource extends Google_Service_Resource +{ + + /** + * Deletes a store page. (storelayoutpages.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $pageId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of a store page. (storelayoutpages.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StorePage + */ + public function get($enterpriseId, $pageId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StorePage"); + } + + /** + * Inserts a new store page. (storelayoutpages.insert) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_StorePage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StorePage + */ + public function insert($enterpriseId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StorePage"); + } + + /** + * Retrieves the details of all pages in the store. + * (storelayoutpages.listStorelayoutpages) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse + */ + public function listStorelayoutpages($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse"); + } + + /** + * Updates the content of a store page. This method supports patch semantics. + * (storelayoutpages.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param Google_StorePage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StorePage + */ + public function patch($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StorePage"); + } + + /** + * Updates the content of a store page. (storelayoutpages.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $pageId The ID of the page. + * @param Google_StorePage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_StorePage + */ + public function update($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StorePage"); + } +} + /** * The "users" collection of methods. * Typical usage is: @@ -1862,7 +2343,9 @@ class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Res /** * Generates a token (activation code) to allow this user to configure their * work account in the Android Setup Wizard. Revokes any previously generated - * token. (users.generateToken) + * token. + * + * This call only works with Google managed accounts. (users.generateToken) * * @param string $enterpriseId The ID of the enterprise. * @param string $userId The ID of the user. @@ -1908,7 +2391,7 @@ public function getAvailableProductSet($enterpriseId, $userId, $optParams = arra } /** - * Looks up a user by email address. (users.listUsers) + * Looks up a user by their primary email address. (users.listUsers) * * @param string $enterpriseId The ID of the enterprise. * @param string $email The exact primary email address of the user to look up. @@ -2741,6 +3224,32 @@ public function getKind() } } +class Google_Service_AndroidEnterprise_LocalizedText extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $locale; + public $text; + + + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} + class Google_Service_AndroidEnterprise_Permission extends Google_Model { protected $internal_gapi_mappings = array( @@ -2798,6 +3307,7 @@ class Google_Service_AndroidEnterprise_Product extends Google_Collection public $iconUrl; public $kind; public $productId; + public $productPricing; public $requiresContainerApp; public $title; public $workDetailsUrl; @@ -2859,6 +3369,14 @@ public function getProductId() { return $this->productId; } + public function setProductPricing($productPricing) + { + $this->productPricing = $productPricing; + } + public function getProductPricing() + { + return $this->productPricing; + } public function setRequiresContainerApp($requiresContainerApp) { $this->requiresContainerApp = $requiresContainerApp; @@ -3010,6 +3528,189 @@ public function getUrl() } } +class Google_Service_AndroidEnterprise_StoreCluster extends Google_Collection +{ + protected $collection_key = 'productId'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText'; + protected $nameDataType = 'array'; + public $orderInPage; + public $productId; + + + 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 setOrderInPage($orderInPage) + { + $this->orderInPage = $orderInPage; + } + public function getOrderInPage() + { + return $this->orderInPage; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_AndroidEnterprise_StoreLayout extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $homepageId; + public $kind; + + + public function setHomepageId($homepageId) + { + $this->homepageId = $homepageId; + } + public function getHomepageId() + { + return $this->homepageId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse extends Google_Collection +{ + protected $collection_key = 'cluster'; + protected $internal_gapi_mappings = array( + ); + protected $clusterType = 'Google_Service_AndroidEnterprise_StoreCluster'; + protected $clusterDataType = 'array'; + public $kind; + + + public function setCluster($cluster) + { + $this->cluster = $cluster; + } + public function getCluster() + { + return $this->cluster; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse extends Google_Collection +{ + protected $collection_key = 'page'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $pageType = 'Google_Service_AndroidEnterprise_StorePage'; + protected $pageDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPage($page) + { + $this->page = $page; + } + public function getPage() + { + return $this->page; + } +} + +class Google_Service_AndroidEnterprise_StorePage extends Google_Collection +{ + protected $collection_key = 'name'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $link; + protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText'; + protected $nameDataType = 'array'; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLink($link) + { + $this->link = $link; + } + public function getLink() + { + return $this->link; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_AndroidEnterprise_User extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php index 8b211a277..46d59523e 100644 --- a/src/Google/Service/AndroidPublisher.php +++ b/src/Google/Service/AndroidPublisher.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'token' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'startIndex' => array( + 'productId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'maxResults' => array( + 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), - 'productId' => array( + 'token' => array( 'location' => 'query', 'type' => 'string', ), @@ -1001,17 +1001,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'token' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( + 'token' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'patch' => array( @@ -2040,11 +2040,11 @@ class Google_Service_AndroidPublisher_Entitlements_Resource extends Google_Servi * product was sold in (for example, 'com.some.thing'). * @param array $optParams Optional parameters. * - * @opt_param string token - * @opt_param string startIndex * @opt_param string maxResults * @opt_param string productId The product id of the inapp product (for example, * 'sku1'). This can be used to restrict the result set. + * @opt_param string startIndex + * @opt_param string token * @return Google_Service_AndroidPublisher_EntitlementsListResponse */ public function listEntitlements($packageName, $optParams = array()) @@ -2139,9 +2139,9 @@ public function insert($packageName, Google_Service_AndroidPublisher_InAppProduc * products; for example, "com.spiffygame". * @param array $optParams Optional parameters. * - * @opt_param string token - * @opt_param string startIndex * @opt_param string maxResults + * @opt_param string startIndex + * @opt_param string token * @return Google_Service_AndroidPublisher_InappproductsListResponse */ public function listInappproducts($packageName, $optParams = array()) @@ -3112,14 +3112,6 @@ public function getTitle() } } -class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model -{ -} - -class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model -{ -} - class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection { protected $collection_key = 'entrys'; @@ -3591,12 +3583,43 @@ public function getPurchaseTimeMillis() } } -class Google_Service_AndroidPublisher_Season extends Google_Model +class Google_Service_AndroidPublisher_Prorate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; + protected $defaultPriceDataType = ''; + protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; + protected $startDataType = ''; + + + public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) + { + $this->defaultPrice = $defaultPrice; + } + public function getDefaultPrice() + { + return $this->defaultPrice; + } + public function setStart(Google_Service_AndroidPublisher_MonthDay $start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_AndroidPublisher_Season extends Google_Collection { + protected $collection_key = 'prorations'; protected $internal_gapi_mappings = array( ); protected $endType = 'Google_Service_AndroidPublisher_MonthDay'; protected $endDataType = ''; + protected $prorationsType = 'Google_Service_AndroidPublisher_Prorate'; + protected $prorationsDataType = 'array'; protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; protected $startDataType = ''; @@ -3609,6 +3632,14 @@ public function getEnd() { return $this->end; } + public function setProrations($prorations) + { + $this->prorations = $prorations; + } + public function getProrations() + { + return $this->prorations; + } public function setStart(Google_Service_AndroidPublisher_MonthDay $start) { $this->start = $start; diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php index 33edce5de..9a9e8e70a 100644 --- a/src/Google/Service/AppState.php +++ b/src/Google/Service/AppState.php @@ -1,6 +1,6 @@ * The Google App Engine Admin API enables developers to provision and manage @@ -24,7 +24,7 @@ * *

    * For more information about this service, see the API - * Documentation + * Documentation *

    * * @author Google, Inc. @@ -36,10 +36,10 @@ class Google_Service_Appengine extends Google_Service "https://www.googleapis.com/auth/cloud-platform"; public $apps; - public $apps_modules; - public $apps_modules_versions; public $apps_operations; - + public $apps_services; + public $apps_services_versions; + /** * Constructs the internal representation of the Appengine service. @@ -51,7 +51,7 @@ public function __construct(Google_Client $client) parent::__construct($client); $this->rootUrl = 'https://appengine.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta4'; + $this->version = 'v1beta5'; $this->serviceName = 'appengine'; $this->apps = new Google_Service_Appengine_Apps_Resource( @@ -61,7 +61,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'v1beta4/apps/{appsId}', + 'path' => 'v1beta5/apps/{appsId}', 'httpMethod' => 'GET', 'parameters' => array( 'appsId' => array( @@ -78,14 +78,61 @@ public function __construct(Google_Client $client) ) ) ); - $this->apps_modules = new Google_Service_Appengine_AppsModules_Resource( + $this->apps_operations = new Google_Service_Appengine_AppsOperations_Resource( $this, $this->serviceName, - 'modules', + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta5/apps/{appsId}/operations/{operationsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operationsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta5/apps/{appsId}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->apps_services = new Google_Service_Appengine_AppsServices_Resource( + $this, + $this->serviceName, + 'services', array( 'methods' => array( 'delete' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'appsId' => array( @@ -93,14 +140,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', 'httpMethod' => 'GET', 'parameters' => array( 'appsId' => array( @@ -108,14 +155,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'v1beta4/apps/{appsId}/modules', + 'path' => 'v1beta5/apps/{appsId}/services', 'httpMethod' => 'GET', 'parameters' => array( 'appsId' => array( @@ -133,7 +180,7 @@ public function __construct(Google_Client $client) ), ), ),'patch' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', 'httpMethod' => 'PATCH', 'parameters' => array( 'appsId' => array( @@ -141,32 +188,32 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'migrateTraffic' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'mask' => array( 'location' => 'query', 'type' => 'string', ), + 'migrateTraffic' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) ) ); - $this->apps_modules_versions = new Google_Service_Appengine_AppsModulesVersions_Resource( + $this->apps_services_versions = new Google_Service_Appengine_AppsServicesVersions_Resource( $this, $this->serviceName, 'versions', array( 'methods' => array( 'create' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions', 'httpMethod' => 'POST', 'parameters' => array( 'appsId' => array( @@ -174,14 +221,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'appsId' => array( @@ -189,7 +236,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -201,7 +248,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', 'httpMethod' => 'GET', 'parameters' => array( 'appsId' => array( @@ -209,7 +256,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -225,7 +272,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions', 'httpMethod' => 'GET', 'parameters' => array( 'appsId' => array( @@ -233,62 +280,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'modulesId' => array( + 'servicesId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'view' => array( 'location' => 'query', 'type' => 'string', ), - ), - ), - ) - ) - ); - $this->apps_operations = new Google_Service_Appengine_AppsOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1beta4/apps/{appsId}/operations/{operationsId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operationsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta4/apps/{appsId}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -327,7 +327,9 @@ class Google_Service_Appengine_Apps_Resource extends Google_Service_Resource * @opt_param bool ensureResourcesExist Certain resources associated with an * application are created on-demand. Controls whether these resources should be * created when performing the `GET` operation. If specified and any resources - * cloud not be created, the request will fail with an error code. + * could not be created, the request will fail with an error code. Additionally, + * this parameter can cause the request to take longer to complete. Note: This + * parameter will be deprecated in a future version of the API. * @return Google_Service_Appengine_Application */ public function get($appsId, $optParams = array()) @@ -339,50 +341,100 @@ public function get($appsId, $optParams = array()) } /** - * The "modules" collection of methods. + * The "operations" collection of methods. * Typical usage is: * * $appengineService = new Google_Service_Appengine(...); - * $modules = $appengineService->modules; + * $operations = $appengineService->operations; * */ -class Google_Service_Appengine_AppsModules_Resource extends Google_Service_Resource +class Google_Service_Appengine_AppsOperations_Resource extends Google_Service_Resource { /** - * Deletes a module and all enclosed versions. (modules.delete) + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $appsId Part of `name`. The name of the operation resource. + * @param string $operationsId Part of `name`. See documentation of `appsId`. + * @param array $optParams Optional parameters. + * @return Google_Service_Appengine_Operation + */ + public function get($appsId, $operationsId, $optParams = array()) + { + $params = array('appsId' => $appsId, 'operationsId' => $operationsId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Appengine_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the + * `name` binding below allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. + * (operations.listAppsOperations) + * + * @param string $appsId Part of `name`. The name of the operation collection. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_Appengine_ListOperationsResponse + */ + public function listAppsOperations($appsId, $optParams = array()) + { + $params = array('appsId' => $appsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse"); + } +} +/** + * The "services" collection of methods. + * Typical usage is: + * + * $appengineService = new Google_Service_Appengine(...); + * $services = $appengineService->services; + * + */ +class Google_Service_Appengine_AppsServices_Resource extends Google_Service_Resource +{ + + /** + * Deletes a service and all enclosed versions. (services.delete) * * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/modules/default". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param array $optParams Optional parameters. * @return Google_Service_Appengine_Operation */ - public function delete($appsId, $modulesId, $optParams = array()) + public function delete($appsId, $servicesId, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); } /** - * Gets the current configuration of the module. (modules.get) + * Gets the current configuration of the service. (services.get) * * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/modules/default". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Module + * @return Google_Service_Appengine_Service */ - public function get($appsId, $modulesId, $optParams = array()) + public function get($appsId, $servicesId, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Module"); + return $this->call('get', array($params), "Google_Service_Appengine_Service"); } /** - * Lists all the modules in the application. (modules.listAppsModules) + * Lists all the services in the application. (services.listAppsServices) * * @param string $appsId Part of `name`. Name of the resource requested. For * example: "apps/myapp". @@ -391,34 +443,34 @@ public function get($appsId, $modulesId, $optParams = array()) * @opt_param int pageSize Maximum results to return per page. * @opt_param string pageToken Continuation token for fetching the next page of * results. - * @return Google_Service_Appengine_ListModulesResponse + * @return Google_Service_Appengine_ListServicesResponse */ - public function listAppsModules($appsId, $optParams = array()) + public function listAppsServices($appsId, $optParams = array()) { $params = array('appsId' => $appsId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appengine_ListModulesResponse"); + return $this->call('list', array($params), "Google_Service_Appengine_ListServicesResponse"); } /** - * Updates the configuration of the specified module. (modules.patch) + * Updates the configuration of the specified service. (services.patch) * * @param string $appsId Part of `name`. Name of the resource to update. For - * example: "apps/myapp/modules/default". - * @param string $modulesId Part of `name`. See documentation of `appsId`. - * @param Google_Module $postBody + * example: "apps/myapp/services/default". + * @param string $servicesId Part of `name`. See documentation of `appsId`. + * @param Google_Service $postBody * @param array $optParams Optional parameters. * + * @opt_param string mask Standard field mask for the set of fields to be + * updated. * @opt_param bool migrateTraffic Whether to use Traffic Migration to shift * traffic gradually. Traffic can only be migrated from a single version to * another single version. - * @opt_param string mask Standard field mask for the set of fields to be - * updated. * @return Google_Service_Appengine_Operation */ - public function patch($appsId, $modulesId, Google_Service_Appengine_Module $postBody, $optParams = array()) + public function patch($appsId, $servicesId, Google_Service_Appengine_Service $postBody, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'postBody' => $postBody); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Appengine_Operation"); } @@ -432,22 +484,22 @@ public function patch($appsId, $modulesId, Google_Service_Appengine_Module $post * $versions = $appengineService->versions; * */ -class Google_Service_Appengine_AppsModulesVersions_Resource extends Google_Service_Resource +class Google_Service_Appengine_AppsServicesVersions_Resource extends Google_Service_Resource { /** * Deploys new code and resource files to a version. (versions.create) * * @param string $appsId Part of `name`. Name of the resource to update. For - * example: "apps/myapp/modules/default". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param Google_Version $postBody * @param array $optParams Optional parameters. * @return Google_Service_Appengine_Operation */ - public function create($appsId, $modulesId, Google_Service_Appengine_Version $postBody, $optParams = array()) + public function create($appsId, $servicesId, Google_Service_Appengine_Version $postBody, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'postBody' => $postBody); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Appengine_Operation"); } @@ -456,15 +508,15 @@ public function create($appsId, $modulesId, Google_Service_Appengine_Version $po * Deletes an existing version. (versions.delete) * * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/modules/default/versions/v1". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default/versions/v1". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param string $versionsId Part of `name`. See documentation of `appsId`. * @param array $optParams Optional parameters. * @return Google_Service_Appengine_Operation */ - public function delete($appsId, $modulesId, $versionsId, $optParams = array()) + public function delete($appsId, $servicesId, $versionsId, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'versionsId' => $versionsId); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); } @@ -473,8 +525,8 @@ public function delete($appsId, $modulesId, $versionsId, $optParams = array()) * Gets application deployment information. (versions.get) * * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/modules/default/versions/v1". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default/versions/v1". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param string $versionsId Part of `name`. See documentation of `appsId`. * @param array $optParams Optional parameters. * @@ -482,85 +534,35 @@ public function delete($appsId, $modulesId, $versionsId, $optParams = array()) * response. * @return Google_Service_Appengine_Version */ - public function get($appsId, $modulesId, $versionsId, $optParams = array()) + public function get($appsId, $servicesId, $versionsId, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId, 'versionsId' => $versionsId); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Appengine_Version"); } /** - * Lists the versions of a module. (versions.listAppsModulesVersions) + * Lists the versions of a service. (versions.listAppsServicesVersions) * * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/modules/default". - * @param string $modulesId Part of `name`. See documentation of `appsId`. + * example: "apps/myapp/services/default". + * @param string $servicesId Part of `name`. See documentation of `appsId`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Continuation token for fetching the next page of - * results. - * @opt_param int pageSize Maximum results to return per page. * @opt_param string view Controls the set of fields returned in the `List` * response. + * @opt_param int pageSize Maximum results to return per page. + * @opt_param string pageToken Continuation token for fetching the next page of + * results. * @return Google_Service_Appengine_ListVersionsResponse */ - public function listAppsModulesVersions($appsId, $modulesId, $optParams = array()) + public function listAppsServicesVersions($appsId, $servicesId, $optParams = array()) { - $params = array('appsId' => $appsId, 'modulesId' => $modulesId); + $params = array('appsId' => $appsId, 'servicesId' => $servicesId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Appengine_ListVersionsResponse"); } } -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $appengineService = new Google_Service_Appengine(...); - * $operations = $appengineService->operations; - * - */ -class Google_Service_Appengine_AppsOperations_Resource extends Google_Service_Resource -{ - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) - * - * @param string $appsId Part of `name`. The name of the operation resource. - * @param string $operationsId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Operation - */ - public function get($appsId, $operationsId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'operationsId' => $operationsId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users/operations`. - * (operations.listAppsOperations) - * - * @param string $appsId Part of `name`. The name of the operation collection. - * @param array $optParams Optional parameters. - * - * @opt_param string filter The standard list filter. - * @opt_param int pageSize The standard list page size. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_Appengine_ListOperationsResponse - */ - public function listAppsOperations($appsId, $optParams = array()) - { - $params = array('appsId' => $appsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse"); - } -} @@ -641,6 +643,7 @@ class Google_Service_Appengine_Application extends Google_Collection protected $internal_gapi_mappings = array( ); public $codeBucket; + public $defaultBucket; protected $dispatchRulesType = 'Google_Service_Appengine_UrlDispatchRule'; protected $dispatchRulesDataType = 'array'; public $id; @@ -656,6 +659,14 @@ public function getCodeBucket() { return $this->codeBucket; } + public function setDefaultBucket($defaultBucket) + { + $this->defaultBucket = $defaultBucket; + } + public function getDefaultBucket() + { + return $this->defaultBucket; + } public function setDispatchRules($dispatchRules) { $this->dispatchRules = $dispatchRules; @@ -697,6 +708,8 @@ class Google_Service_Appengine_AutomaticScaling extends Google_Model public $coolDownPeriod; protected $cpuUtilizationType = 'Google_Service_Appengine_CpuUtilization'; protected $cpuUtilizationDataType = ''; + protected $diskUtilizationType = 'Google_Service_Appengine_DiskUtilization'; + protected $diskUtilizationDataType = ''; public $maxConcurrentRequests; public $maxIdleInstances; public $maxPendingLatency; @@ -704,6 +717,10 @@ class Google_Service_Appengine_AutomaticScaling extends Google_Model public $minIdleInstances; public $minPendingLatency; public $minTotalInstances; + protected $networkUtilizationType = 'Google_Service_Appengine_NetworkUtilization'; + protected $networkUtilizationDataType = ''; + protected $requestUtilizationType = 'Google_Service_Appengine_RequestUtilization'; + protected $requestUtilizationDataType = ''; public function setCoolDownPeriod($coolDownPeriod) @@ -722,6 +739,14 @@ public function getCpuUtilization() { return $this->cpuUtilization; } + public function setDiskUtilization(Google_Service_Appengine_DiskUtilization $diskUtilization) + { + $this->diskUtilization = $diskUtilization; + } + public function getDiskUtilization() + { + return $this->diskUtilization; + } public function setMaxConcurrentRequests($maxConcurrentRequests) { $this->maxConcurrentRequests = $maxConcurrentRequests; @@ -778,6 +803,22 @@ public function getMinTotalInstances() { return $this->minTotalInstances; } + public function setNetworkUtilization(Google_Service_Appengine_NetworkUtilization $networkUtilization) + { + $this->networkUtilization = $networkUtilization; + } + public function getNetworkUtilization() + { + return $this->networkUtilization; + } + public function setRequestUtilization(Google_Service_Appengine_RequestUtilization $requestUtilization) + { + $this->requestUtilization = $requestUtilization; + } + public function getRequestUtilization() + { + return $this->requestUtilization; + } } class Google_Service_Appengine_BasicScaling extends Google_Model @@ -888,8 +929,48 @@ public function getSourceReferences() } } -class Google_Service_Appengine_DeploymentFiles extends Google_Model +class Google_Service_Appengine_DiskUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $targetReadBytesPerSec; + public $targetReadOpsPerSec; + public $targetWriteBytesPerSec; + public $targetWriteOpsPerSec; + + + public function setTargetReadBytesPerSec($targetReadBytesPerSec) + { + $this->targetReadBytesPerSec = $targetReadBytesPerSec; + } + public function getTargetReadBytesPerSec() + { + return $this->targetReadBytesPerSec; + } + public function setTargetReadOpsPerSec($targetReadOpsPerSec) + { + $this->targetReadOpsPerSec = $targetReadOpsPerSec; + } + public function getTargetReadOpsPerSec() + { + return $this->targetReadOpsPerSec; + } + public function setTargetWriteBytesPerSec($targetWriteBytesPerSec) + { + $this->targetWriteBytesPerSec = $targetWriteBytesPerSec; + } + public function getTargetWriteBytesPerSec() + { + return $this->targetWriteBytesPerSec; + } + public function setTargetWriteOpsPerSec($targetWriteOpsPerSec) + { + $this->targetWriteOpsPerSec = $targetWriteOpsPerSec; + } + public function getTargetWriteOpsPerSec() + { + return $this->targetWriteOpsPerSec; + } } class Google_Service_Appengine_ErrorHandler extends Google_Model @@ -1059,24 +1140,16 @@ public function getVersion() } } -class Google_Service_Appengine_ListModulesResponse extends Google_Collection +class Google_Service_Appengine_ListOperationsResponse extends Google_Collection { - protected $collection_key = 'modules'; + protected $collection_key = 'operations'; protected $internal_gapi_mappings = array( ); - protected $modulesType = 'Google_Service_Appengine_Module'; - protected $modulesDataType = 'array'; public $nextPageToken; + protected $operationsType = 'Google_Service_Appengine_Operation'; + protected $operationsDataType = 'array'; - public function setModules($modules) - { - $this->modules = $modules; - } - public function getModules() - { - return $this->modules; - } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -1085,16 +1158,24 @@ public function getNextPageToken() { return $this->nextPageToken; } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } } -class Google_Service_Appengine_ListOperationsResponse extends Google_Collection +class Google_Service_Appengine_ListServicesResponse extends Google_Collection { - protected $collection_key = 'operations'; + protected $collection_key = 'services'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $operationsType = 'Google_Service_Appengine_Operation'; - protected $operationsDataType = 'array'; + protected $servicesType = 'Google_Service_Appengine_Service'; + protected $servicesDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -1105,13 +1186,13 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setOperations($operations) + public function setServices($services) { - $this->operations = $operations; + $this->services = $services; } - public function getOperations() + public function getServices() { - return $this->operations; + return $this->services; } } @@ -1160,75 +1241,83 @@ public function getInstances() } } -class Google_Service_Appengine_Module extends Google_Model +class Google_Service_Appengine_Network extends Google_Collection { + protected $collection_key = 'forwardedPorts'; protected $internal_gapi_mappings = array( ); - public $id; + public $forwardedPorts; + public $instanceTag; public $name; - protected $splitType = 'Google_Service_Appengine_TrafficSplit'; - protected $splitDataType = ''; - public function setId($id) + public function setForwardedPorts($forwardedPorts) { - $this->id = $id; + $this->forwardedPorts = $forwardedPorts; } - public function getId() + public function getForwardedPorts() { - return $this->id; + return $this->forwardedPorts; } - public function setName($name) + public function setInstanceTag($instanceTag) { - $this->name = $name; + $this->instanceTag = $instanceTag; } - public function getName() + public function getInstanceTag() { - return $this->name; + return $this->instanceTag; } - public function setSplit(Google_Service_Appengine_TrafficSplit $split) + public function setName($name) { - $this->split = $split; + $this->name = $name; } - public function getSplit() + public function getName() { - return $this->split; + return $this->name; } } -class Google_Service_Appengine_Network extends Google_Collection +class Google_Service_Appengine_NetworkUtilization extends Google_Model { - protected $collection_key = 'forwardedPorts'; protected $internal_gapi_mappings = array( ); - public $forwardedPorts; - public $instanceTag; - public $name; + public $targetReceivedBytesPerSec; + public $targetReceivedPacketsPerSec; + public $targetSentBytesPerSec; + public $targetSentPacketsPerSec; - public function setForwardedPorts($forwardedPorts) + public function setTargetReceivedBytesPerSec($targetReceivedBytesPerSec) { - $this->forwardedPorts = $forwardedPorts; + $this->targetReceivedBytesPerSec = $targetReceivedBytesPerSec; } - public function getForwardedPorts() + public function getTargetReceivedBytesPerSec() { - return $this->forwardedPorts; + return $this->targetReceivedBytesPerSec; } - public function setInstanceTag($instanceTag) + public function setTargetReceivedPacketsPerSec($targetReceivedPacketsPerSec) { - $this->instanceTag = $instanceTag; + $this->targetReceivedPacketsPerSec = $targetReceivedPacketsPerSec; } - public function getInstanceTag() + public function getTargetReceivedPacketsPerSec() { - return $this->instanceTag; + return $this->targetReceivedPacketsPerSec; } - public function setName($name) + public function setTargetSentBytesPerSec($targetSentBytesPerSec) { - $this->name = $name; + $this->targetSentBytesPerSec = $targetSentBytesPerSec; } - public function getName() + public function getTargetSentBytesPerSec() { - return $this->name; + return $this->targetSentBytesPerSec; + } + public function setTargetSentPacketsPerSec($targetSentPacketsPerSec) + { + $this->targetSentPacketsPerSec = $targetSentPacketsPerSec; + } + public function getTargetSentPacketsPerSec() + { + return $this->targetSentPacketsPerSec; } } @@ -1348,8 +1437,83 @@ public function getUser() } } -class Google_Service_Appengine_OperationResponse extends Google_Model +class Google_Service_Appengine_OperationMetadataV1Beta5 extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $endTime; + public $insertTime; + public $method; + public $target; + public $user; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_Appengine_RequestUtilization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $targetConcurrentRequests; + public $targetRequestCountPerSec; + + + public function setTargetConcurrentRequests($targetConcurrentRequests) + { + $this->targetConcurrentRequests = $targetConcurrentRequests; + } + public function getTargetConcurrentRequests() + { + return $this->targetConcurrentRequests; + } + public function setTargetRequestCountPerSec($targetRequestCountPerSec) + { + $this->targetRequestCountPerSec = $targetRequestCountPerSec; + } + public function getTargetRequestCountPerSec() + { + return $this->targetRequestCountPerSec; + } } class Google_Service_Appengine_Resources extends Google_Model @@ -1404,98 +1568,68 @@ public function getScriptPath() } } -class Google_Service_Appengine_SourceReference extends Google_Model +class Google_Service_Appengine_Service extends Google_Model { protected $internal_gapi_mappings = array( ); - public $repository; - public $revisionId; + public $id; + public $name; + protected $splitType = 'Google_Service_Appengine_TrafficSplit'; + protected $splitDataType = ''; - public function setRepository($repository) + public function setId($id) { - $this->repository = $repository; + $this->id = $id; } - public function getRepository() + public function getId() { - return $this->repository; + return $this->id; } - public function setRevisionId($revisionId) + public function setName($name) { - $this->revisionId = $revisionId; + $this->name = $name; } - public function getRevisionId() + public function getName() { - return $this->revisionId; + return $this->name; + } + public function setSplit(Google_Service_Appengine_TrafficSplit $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; } } -class Google_Service_Appengine_StaticDirectoryHandler extends Google_Model +class Google_Service_Appengine_SourceReference extends Google_Model { protected $internal_gapi_mappings = array( ); - public $applicationReadable; - public $directory; - public $expiration; - public $httpHeaders; - public $mimeType; - public $requireMatchingFile; + public $repository; + public $revisionId; - public function setApplicationReadable($applicationReadable) - { - $this->applicationReadable = $applicationReadable; - } - public function getApplicationReadable() - { - return $this->applicationReadable; - } - public function setDirectory($directory) - { - $this->directory = $directory; - } - public function getDirectory() - { - return $this->directory; - } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setHttpHeaders($httpHeaders) - { - $this->httpHeaders = $httpHeaders; - } - public function getHttpHeaders() - { - return $this->httpHeaders; - } - public function setMimeType($mimeType) + public function setRepository($repository) { - $this->mimeType = $mimeType; + $this->repository = $repository; } - public function getMimeType() + public function getRepository() { - return $this->mimeType; + return $this->repository; } - public function setRequireMatchingFile($requireMatchingFile) + public function setRevisionId($revisionId) { - $this->requireMatchingFile = $requireMatchingFile; + $this->revisionId = $revisionId; } - public function getRequireMatchingFile() + public function getRevisionId() { - return $this->requireMatchingFile; + return $this->revisionId; } } -class Google_Service_Appengine_StaticDirectoryHandlerHttpHeaders extends Google_Model -{ -} - class Google_Service_Appengine_StaticFilesHandler extends Google_Model { protected $internal_gapi_mappings = array( @@ -1567,10 +1701,6 @@ public function getUploadPathRegex() } } -class Google_Service_Appengine_StaticFilesHandlerHttpHeaders extends Google_Model -{ -} - class Google_Service_Appengine_Status extends Google_Collection { protected $collection_key = 'details'; @@ -1607,10 +1737,6 @@ public function getMessage() } } -class Google_Service_Appengine_StatusDetails extends Google_Model -{ -} - class Google_Service_Appengine_TrafficSplit extends Google_Model { protected $internal_gapi_mappings = array( @@ -1637,17 +1763,13 @@ public function getShardBy() } } -class Google_Service_Appengine_TrafficSplitAllocations extends Google_Model -{ -} - class Google_Service_Appengine_UrlDispatchRule extends Google_Model { protected $internal_gapi_mappings = array( ); public $domain; - public $module; public $path; + public $service; public function setDomain($domain) @@ -1658,14 +1780,6 @@ public function getDomain() { return $this->domain; } - public function setModule($module) - { - $this->module = $module; - } - public function getModule() - { - return $this->module; - } public function setPath($path) { $this->path = $path; @@ -1674,6 +1788,14 @@ public function getPath() { return $this->path; } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } } class Google_Service_Appengine_UrlMap extends Google_Model @@ -1688,8 +1810,6 @@ class Google_Service_Appengine_UrlMap extends Google_Model protected $scriptType = 'Google_Service_Appengine_ScriptHandler'; protected $scriptDataType = ''; public $securityLevel; - protected $staticDirectoryType = 'Google_Service_Appengine_StaticDirectoryHandler'; - protected $staticDirectoryDataType = ''; protected $staticFilesType = 'Google_Service_Appengine_StaticFilesHandler'; protected $staticFilesDataType = ''; public $urlRegex; @@ -1743,14 +1863,6 @@ public function getSecurityLevel() { return $this->securityLevel; } - public function setStaticDirectory(Google_Service_Appengine_StaticDirectoryHandler $staticDirectory) - { - $this->staticDirectory = $staticDirectory; - } - public function getStaticDirectory() - { - return $this->staticDirectory; - } public function setStaticFiles(Google_Service_Appengine_StaticFilesHandler $staticFiles) { $this->staticFiles = $staticFiles; @@ -1786,6 +1898,7 @@ class Google_Service_Appengine_Version extends Google_Collection public $deployer; protected $deploymentType = 'Google_Service_Appengine_Deployment'; protected $deploymentDataType = ''; + public $diskUsageBytes; public $env; public $envVariables; protected $errorHandlersType = 'Google_Service_Appengine_ErrorHandler'; @@ -1877,6 +1990,14 @@ public function getDeployment() { return $this->deployment; } + public function setDiskUsageBytes($diskUsageBytes) + { + $this->diskUsageBytes = $diskUsageBytes; + } + public function getDiskUsageBytes() + { + return $this->diskUsageBytes; + } public function setEnv($env) { $this->env = $env; @@ -2022,11 +2143,3 @@ public function getVm() return $this->vm; } } - -class Google_Service_Appengine_VersionBetaSettings extends Google_Model -{ -} - -class Google_Service_Appengine_VersionEnvVariables extends Google_Model -{ -} diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index 9a7de2ac6..f4ac87cfd 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageSize' => array( + 'drive.fileId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'groupingStrategy' => array( 'location' => 'query', 'type' => 'string', ), - 'userId' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'groupingStrategy' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'drive.fileId' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'userId' => array( 'location' => 'query', 'type' => 'string', ), @@ -132,17 +132,17 @@ class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Res * * @opt_param string drive.ancestorId Identifies the Drive folder containing the * items for which to return activities. + * @opt_param string drive.fileId Identifies the Drive item to return activities + * for. + * @opt_param string groupingStrategy Indicates the strategy to use when + * grouping singleEvents items in the associated combinedEvent object. * @opt_param int pageSize The maximum number of events to return on a page. The * response includes a continuation token if there are more events. * @opt_param string pageToken A token to retrieve a specific page of results. - * @opt_param string userId Indicates the user to return activity for. Use the - * special value me to indicate the currently authenticated user. - * @opt_param string groupingStrategy Indicates the strategy to use when - * grouping singleEvents items in the associated combinedEvent object. - * @opt_param string drive.fileId Identifies the Drive item to return activities - * for. * @opt_param string source The Google service from which to return activities. * Possible values of source are: - drive.google.com + * @opt_param string userId Indicates the user to return activity for. Use the + * special value me to indicate the currently authenticated user. * @return Google_Service_Appsactivity_ListActivitiesResponse */ public function listActivities($optParams = array()) diff --git a/src/Google/Service/Autoscaler.php b/src/Google/Service/Autoscaler.php index c3d1c1938..088cd2421 100644 --- a/src/Google/Service/Autoscaler.php +++ b/src/Google/Service/Autoscaler.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', @@ -252,14 +252,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -284,14 +284,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -368,8 +368,8 @@ public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $po * @param array $optParams Optional parameters. * * @opt_param string filter - * @opt_param string pageToken * @opt_param string maxResults + * @opt_param string pageToken * @return Google_Service_Autoscaler_AutoscalerListResponse */ public function listAutoscalers($project, $zone, $optParams = array()) @@ -468,8 +468,8 @@ public function get($project, $zone, $operation, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string filter - * @opt_param string pageToken * @opt_param string maxResults + * @opt_param string pageToken * @return Google_Service_Autoscaler_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -498,8 +498,8 @@ class Google_Service_Autoscaler_Zones_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string filter - * @opt_param string pageToken * @opt_param string maxResults + * @opt_param string pageToken * @return Google_Service_Autoscaler_ZoneList */ public function listZones($project, $optParams = array()) diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 00836164e..62a6c9484 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'all' => array( 'location' => 'query', 'type' => 'boolean', @@ -143,6 +139,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'projects/{projectId}/datasets/{datasetId}', @@ -228,10 +228,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'timeoutMs' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -244,6 +240,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'timeoutMs' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'insert' => array( 'path' => 'projects/{projectId}/jobs', @@ -264,15 +264,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stateFilter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), 'allUsers' => array( 'location' => 'query', 'type' => 'boolean', @@ -285,6 +276,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stateFilter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), ), ),'query' => array( 'path' => 'projects/{projectId}/queries', @@ -310,14 +310,14 @@ public function __construct(Google_Client $client) 'path' => 'projects', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -460,14 +460,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', @@ -586,10 +586,10 @@ public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $o * @param string $projectId Project ID of the datasets to be listed * @param array $optParams Optional parameters. * - * @opt_param string pageToken Page token, returned by a previous call, to - * request the next page of results * @opt_param bool all Whether to list all datasets, including hidden ones * @opt_param string maxResults The maximum number of results to return + * @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()) @@ -653,8 +653,8 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource * client will need to poll for the job status to see if the cancel completed * successfully. Cancelled jobs may still incur costs. (jobs.cancel) * - * @param string $projectId Project ID of the job to cancel - * @param string $jobId Job ID of the job to cancel + * @param string $projectId [Required] Project ID of the job to cancel + * @param string $jobId [Required] Job ID of the job to cancel * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_JobCancelResponse */ @@ -670,8 +670,8 @@ public function cancel($projectId, $jobId, $optParams = array()) * six month period after creation. Requires that you're the person who ran the * job, or have the Is Owner project role. (jobs.get) * - * @param string $projectId Project ID of the requested job - * @param string $jobId Job ID of the requested job + * @param string $projectId [Required] Project ID of the requested job + * @param string $jobId [Required] Job ID of the requested job * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_Job */ @@ -685,18 +685,18 @@ public function get($projectId, $jobId, $optParams = array()) /** * 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 string $projectId [Required] Project ID of the query job + * @param string $jobId [Required] 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 10 seconds. If the timeout passes - * before the job completes, the 'jobComplete' field in the response will be - * false * @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 10 seconds. If the timeout passes + * before the job completes, the 'jobComplete' field in the response will be + * false * @return Google_Service_Bigquery_GetQueryResultsResponse */ public function getQueryResults($projectId, $jobId, $optParams = array()) @@ -733,14 +733,14 @@ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optPa * @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 + * @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()) @@ -784,9 +784,9 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource * * @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 - * @opt_param string maxResults Maximum number of results to return * @return Google_Service_Bigquery_ProjectList */ public function listProjects($optParams = array()) @@ -918,9 +918,9 @@ public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $po * @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 - * @opt_param string maxResults Maximum number of results to return * @return Google_Service_Bigquery_TableList */ public function listTables($projectId, $datasetId, $optParams = array()) @@ -1378,6 +1378,160 @@ public function getReason() } } +class Google_Service_Bigquery_ExplainQueryStage extends Google_Collection +{ + protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); + public $computeRatioAvg; + public $computeRatioMax; + public $id; + public $name; + public $readRatioAvg; + public $readRatioMax; + public $recordsRead; + public $recordsWritten; + protected $stepsType = 'Google_Service_Bigquery_ExplainQueryStep'; + protected $stepsDataType = 'array'; + public $waitRatioAvg; + public $waitRatioMax; + public $writeRatioAvg; + public $writeRatioMax; + + + public function setComputeRatioAvg($computeRatioAvg) + { + $this->computeRatioAvg = $computeRatioAvg; + } + public function getComputeRatioAvg() + { + return $this->computeRatioAvg; + } + public function setComputeRatioMax($computeRatioMax) + { + $this->computeRatioMax = $computeRatioMax; + } + public function getComputeRatioMax() + { + return $this->computeRatioMax; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReadRatioAvg($readRatioAvg) + { + $this->readRatioAvg = $readRatioAvg; + } + public function getReadRatioAvg() + { + return $this->readRatioAvg; + } + public function setReadRatioMax($readRatioMax) + { + $this->readRatioMax = $readRatioMax; + } + public function getReadRatioMax() + { + return $this->readRatioMax; + } + public function setRecordsRead($recordsRead) + { + $this->recordsRead = $recordsRead; + } + public function getRecordsRead() + { + return $this->recordsRead; + } + public function setRecordsWritten($recordsWritten) + { + $this->recordsWritten = $recordsWritten; + } + public function getRecordsWritten() + { + return $this->recordsWritten; + } + public function setSteps($steps) + { + $this->steps = $steps; + } + public function getSteps() + { + return $this->steps; + } + public function setWaitRatioAvg($waitRatioAvg) + { + $this->waitRatioAvg = $waitRatioAvg; + } + public function getWaitRatioAvg() + { + return $this->waitRatioAvg; + } + public function setWaitRatioMax($waitRatioMax) + { + $this->waitRatioMax = $waitRatioMax; + } + public function getWaitRatioMax() + { + return $this->waitRatioMax; + } + public function setWriteRatioAvg($writeRatioAvg) + { + $this->writeRatioAvg = $writeRatioAvg; + } + public function getWriteRatioAvg() + { + return $this->writeRatioAvg; + } + public function setWriteRatioMax($writeRatioMax) + { + $this->writeRatioMax = $writeRatioMax; + } + public function getWriteRatioMax() + { + return $this->writeRatioMax; + } +} + +class Google_Service_Bigquery_ExplainQueryStep extends Google_Collection +{ + protected $collection_key = 'substeps'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $substeps; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSubsteps($substeps) + { + $this->substeps = $substeps; + } + public function getSubsteps() + { + return $this->substeps; + } +} + class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection { protected $collection_key = 'sourceUris'; @@ -1694,8 +1848,6 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model public $dryRun; protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; protected $extractDataType = ''; - protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink'; - protected $linkDataType = ''; protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; protected $loadDataType = ''; protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; @@ -1726,14 +1878,6 @@ 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; @@ -1825,52 +1969,6 @@ public function getSourceTable() } } -class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection -{ - protected $collection_key = 'sourceUri'; - protected $internal_gapi_mappings = array( - ); - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - 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 { protected $collection_key = 'sourceUris'; @@ -2047,11 +2145,13 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; protected $destinationTableDataType = ''; public $flattenResults; + public $maximumBillingTier; public $preserveNulls; public $priority; public $query; protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; protected $tableDefinitionsDataType = 'map'; + public $useLegacySql; public $useQueryCache; protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; protected $userDefinedFunctionResourcesDataType = 'array'; @@ -2098,6 +2198,14 @@ public function getFlattenResults() { return $this->flattenResults; } + public function setMaximumBillingTier($maximumBillingTier) + { + $this->maximumBillingTier = $maximumBillingTier; + } + public function getMaximumBillingTier() + { + return $this->maximumBillingTier; + } public function setPreserveNulls($preserveNulls) { $this->preserveNulls = $preserveNulls; @@ -2130,6 +2238,14 @@ public function getTableDefinitions() { return $this->tableDefinitions; } + public function setUseLegacySql($useLegacySql) + { + $this->useLegacySql = $useLegacySql; + } + public function getUseLegacySql() + { + return $this->useLegacySql; + } public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -2156,10 +2272,6 @@ public function getWriteDisposition() } } -class Google_Service_Bigquery_JobConfigurationQueryTableDefinitions extends Google_Model -{ -} - class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { protected $collection_key = 'sourceTables'; @@ -2458,12 +2570,17 @@ public function getTotalBytesProcessed() } } -class Google_Service_Bigquery_JobStatistics2 extends Google_Model +class Google_Service_Bigquery_JobStatistics2 extends Google_Collection { + protected $collection_key = 'referencedTables'; protected $internal_gapi_mappings = array( ); public $billingTier; public $cacheHit; + protected $queryPlanType = 'Google_Service_Bigquery_ExplainQueryStage'; + protected $queryPlanDataType = 'array'; + protected $referencedTablesType = 'Google_Service_Bigquery_TableReference'; + protected $referencedTablesDataType = 'array'; public $totalBytesBilled; public $totalBytesProcessed; @@ -2484,6 +2601,22 @@ public function getCacheHit() { return $this->cacheHit; } + public function setQueryPlan($queryPlan) + { + $this->queryPlan = $queryPlan; + } + public function getQueryPlan() + { + return $this->queryPlan; + } + public function setReferencedTables($referencedTables) + { + $this->referencedTables = $referencedTables; + } + public function getReferencedTables() + { + return $this->referencedTables; + } public function setTotalBytesBilled($totalBytesBilled) { $this->totalBytesBilled = $totalBytesBilled; @@ -2602,10 +2735,6 @@ public function getState() } } -class Google_Service_Bigquery_JsonObject extends Google_Model -{ -} - class Google_Service_Bigquery_ProjectList extends Google_Collection { protected $collection_key = 'projects'; @@ -2744,6 +2873,7 @@ class Google_Service_Bigquery_QueryRequest extends Google_Model public $preserveNulls; public $query; public $timeoutMs; + public $useLegacySql; public $useQueryCache; @@ -2803,6 +2933,14 @@ public function getTimeoutMs() { return $this->timeoutMs; } + public function setUseLegacySql($useLegacySql) + { + $this->useLegacySql = $useLegacySql; + } + public function getUseLegacySql() + { + return $this->useLegacySql; + } public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -3153,6 +3291,7 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; public $skipInvalidRows; + public $templateSuffix; public function setIgnoreUnknownValues($ignoreUnknownValues) @@ -3187,6 +3326,14 @@ public function getSkipInvalidRows() { return $this->skipInvalidRows; } + public function setTemplateSuffix($templateSuffix) + { + $this->templateSuffix = $templateSuffix; + } + public function getTemplateSuffix() + { + return $this->templateSuffix; + } } class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model @@ -3589,11 +3736,14 @@ public function getResourceUri() } } -class Google_Service_Bigquery_ViewDefinition extends Google_Model +class Google_Service_Bigquery_ViewDefinition extends Google_Collection { + protected $collection_key = 'userDefinedFunctionResources'; protected $internal_gapi_mappings = array( ); public $query; + protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; + protected $userDefinedFunctionResourcesDataType = 'array'; public function setQuery($query) @@ -3604,4 +3754,12 @@ public function getQuery() { return $this->query; } + public function setUserDefinedFunctionResources($userDefinedFunctionResources) + { + $this->userDefinedFunctionResources = $userDefinedFunctionResources; + } + public function getUserDefinedFunctionResources() + { + return $this->userDefinedFunctionResources; + } } diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php index 1f86ac3c4..f1d6b96dd 100644 --- a/src/Google/Service/Blogger.php +++ b/src/Google/Service/Blogger.php @@ -1,6 +1,6 @@ 'query', 'type' => 'boolean', ), - 'status' => array( + 'role' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'role' => array( + 'status' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -243,18 +243,13 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startDate' => array( + 'endDate' => array( 'location' => 'query', 'type' => 'string', ), - 'endDate' => array( + 'fetchBodies' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', @@ -264,9 +259,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'fetchBodies' => array( + 'startDate' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, ), 'view' => array( 'location' => 'query', @@ -282,18 +282,13 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startDate' => array( + 'endDate' => array( 'location' => 'query', 'type' => 'string', ), - 'endDate' => array( + 'fetchBodies' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', @@ -303,9 +298,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'fetchBodies' => array( + 'startDate' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, ), ), ),'markAsSpam' => array( @@ -440,10 +440,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'status' => array( + 'fetchBodies' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', @@ -453,9 +452,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'fetchBodies' => array( + 'status' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, ), 'view' => array( 'location' => 'query', @@ -476,11 +476,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'revert' => array( + 'publish' => array( 'location' => 'query', 'type' => 'boolean', ), - 'publish' => array( + 'revert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -529,11 +529,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'revert' => array( + 'publish' => array( 'location' => 'query', 'type' => 'boolean', ), - 'publish' => array( + 'revert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -586,17 +586,13 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( + 'endDate' => array( 'location' => 'query', 'type' => 'string', ), - 'endDate' => array( + 'fetchBodies' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'labels' => array( 'location' => 'query', @@ -606,18 +602,22 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'status' => array( + 'startDate' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'fetchBodies' => array( + 'status' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, ), 'view' => array( 'location' => 'query', @@ -667,14 +667,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'fetchImages' => array( 'location' => 'query', 'type' => 'boolean', ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'view' => array( 'location' => 'query', 'type' => 'string', @@ -712,15 +712,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'fetchImages' => array( + 'fetchBody' => array( 'location' => 'query', 'type' => 'boolean', ), - 'isDraft' => array( + 'fetchImages' => array( 'location' => 'query', 'type' => 'boolean', ), - 'fetchBody' => array( + 'isDraft' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -734,17 +734,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'endDate' => array( 'location' => 'query', 'type' => 'string', ), - 'startDate' => array( + 'fetchBodies' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'endDate' => array( + 'fetchImages' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'labels' => array( 'location' => 'query', @@ -754,22 +754,22 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'fetchImages' => array( + 'orderBy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'status' => array( + 'startDate' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'fetchBodies' => array( + 'status' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, ), 'view' => array( 'location' => 'query', @@ -790,15 +790,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( + 'fetchBody' => array( 'location' => 'query', 'type' => 'boolean', ), - 'fetchBody' => array( + 'fetchImages' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -806,7 +802,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'fetchImages' => array( + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'revert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -859,14 +859,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), 'fetchBodies' => array( 'location' => 'query', 'type' => 'boolean', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'blogs/{blogId}/posts/{postId}', @@ -882,15 +882,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( + 'fetchBody' => array( 'location' => 'query', 'type' => 'boolean', ), - 'fetchBody' => array( + 'fetchImages' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -898,7 +894,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'fetchImages' => array( + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'revert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -1018,11 +1018,11 @@ public function getByUrl($url, $optParams = array()) * * @opt_param bool fetchUserInfo Whether the response is a list of blogs with * per-user information instead of just blogs. - * @opt_param string status Blog statuses to include in the result (default: - * Live blogs only). Note that ADMIN access is required to view deleted blogs. * @opt_param string role User access types for blogs to include in the results, * e.g. AUTHOR will return blogs where the user has author level access. If no * roles are specified, defaults to ADMIN and AUTHOR roles. + * @opt_param string status Blog statuses to include in the result (default: + * Live blogs only). Note that ADMIN access is required to view deleted blogs. * @opt_param string view Access level with which to view the blogs. Note that * some fields require elevated access. * @return Google_Service_Blogger_BlogList @@ -1105,16 +1105,16 @@ public function get($blogId, $postId, $commentId, $optParams = array()) * @param string $postId ID of the post to fetch posts from. * @param array $optParams Optional parameters. * - * @opt_param string status - * @opt_param string startDate Earliest date of comment to fetch, a date-time - * with RFC 3339 formatting. * @opt_param string endDate Latest date of comment to fetch, a date-time with * RFC 3339 formatting. + * @opt_param 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 bool fetchBodies Whether the body content of the comments is - * included. + * @opt_param string startDate Earliest date of comment to fetch, a date-time + * with RFC 3339 formatting. + * @opt_param string status * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. * @return Google_Service_Blogger_CommentList @@ -1133,16 +1133,16 @@ public function listComments($blogId, $postId, $optParams = array()) * @param string $blogId ID of the blog to fetch comments from. * @param array $optParams Optional parameters. * - * @opt_param string status - * @opt_param string startDate Earliest date of comment to fetch, a date-time - * with RFC 3339 formatting. * @opt_param string endDate Latest date of comment to fetch, a date-time with * RFC 3339 formatting. + * @opt_param 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 bool fetchBodies Whether the body content of the comments is - * included. + * @opt_param string startDate Earliest date of comment to fetch, a date-time + * with RFC 3339 formatting. + * @opt_param string status * @return Google_Service_Blogger_CommentList */ public function listByBlog($blogId, $optParams = array()) @@ -1280,10 +1280,10 @@ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParam * @param string $blogId ID of the blog to fetch Pages from. * @param array $optParams Optional parameters. * - * @opt_param string status + * @opt_param bool fetchBodies Whether to retrieve the Page bodies. * @opt_param string maxResults Maximum number of Pages to fetch. * @opt_param string pageToken Continuation token if the request is paged. - * @opt_param bool fetchBodies Whether to retrieve the Page bodies. + * @opt_param string status * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. * @return Google_Service_Blogger_PageList @@ -1303,10 +1303,10 @@ public function listPages($blogId, $optParams = array()) * @param Google_Page $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert Whether a revert action should be performed when the - * page is updated (default: false). * @opt_param bool publish Whether a publish action should be performed when the * page is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * page is updated (default: false). * @return Google_Service_Blogger_Page */ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1354,10 +1354,10 @@ public function revert($blogId, $pageId, $optParams = array()) * @param Google_Page $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert Whether a revert action should be performed when the - * page is updated (default: false). * @opt_param bool publish Whether a publish action should be performed when the * page is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * page is updated (default: false). * @return Google_Service_Blogger_Page */ public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) @@ -1413,18 +1413,18 @@ public function get($userId, $blogId, $postId, $optParams = array()) * @param string $blogId ID of the blog to fetch posts from. * @param array $optParams Optional parameters. * - * @opt_param string orderBy Sort order applied to search results. Default is - * published. - * @opt_param string startDate Earliest post date to fetch, a date-time with RFC - * 3339 formatting. * @opt_param string endDate Latest post date to fetch, a date-time with RFC * 3339 formatting. + * @opt_param bool fetchBodies Whether the body content of posts is included. + * Default is false. * @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 orderBy Sort order applied to search results. Default is + * published. * @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. * @opt_param string status - * @opt_param bool fetchBodies Whether the body content of posts is included. - * Default is false. * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. * @return Google_Service_Blogger_PostUserInfosList @@ -1472,10 +1472,10 @@ public function delete($blogId, $postId, $optParams = array()) * @opt_param bool fetchBody Whether the body content of the post is included * (default: true). This should be set to false when the post bodies are not * required, to help minimize traffic. - * @opt_param string maxComments Maximum number of comments to pull back on a - * post. * @opt_param bool fetchImages Whether image URL metadata for each post is * included (default: false). + * @opt_param string maxComments Maximum number of comments to pull back on a + * post. * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. * @return Google_Service_Blogger_Post @@ -1514,12 +1514,12 @@ public function getByPath($blogId, $path, $optParams = array()) * @param Google_Post $postBody * @param array $optParams Optional parameters. * + * @opt_param bool fetchBody Whether the body content of the post is included + * with the result (default: true). * @opt_param bool fetchImages Whether image URL metadata for each post is * included in the returned result (default: false). * @opt_param bool isDraft Whether to create the post as a draft (default: * false). - * @opt_param bool fetchBody Whether the body content of the post is included - * with the result (default: true). * @return Google_Service_Blogger_Post */ public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) @@ -1535,20 +1535,20 @@ public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParam * @param string $blogId ID of the blog to fetch posts from. * @param array $optParams Optional parameters. * - * @opt_param string orderBy Sort search results - * @opt_param string startDate Earliest post date to fetch, a date-time with RFC - * 3339 formatting. * @opt_param string endDate Latest post date to fetch, a date-time with RFC * 3339 formatting. - * @opt_param string labels Comma-separated list of labels to search for. - * @opt_param string maxResults Maximum number of posts to fetch. + * @opt_param bool fetchBodies Whether the body content of posts is included + * (default: true). This should be set to false when the post bodies are not + * required, to help minimize traffic. * @opt_param bool fetchImages Whether image URL metadata for each post 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 orderBy Sort search results * @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. * @opt_param string status Statuses to include in the results. - * @opt_param bool fetchBodies Whether the body content of posts is included - * (default: true). This should be set to false when the post bodies are not - * required, to help minimize traffic. * @opt_param string view Access level with which to view the returned result. * Note that some fields require escalated access. * @return Google_Service_Blogger_PostList @@ -1568,16 +1568,16 @@ public function listPosts($blogId, $optParams = array()) * @param Google_Post $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert Whether a revert action should be performed when the - * post is updated (default: false). - * @opt_param bool publish Whether a publish action should be performed when the - * post is updated (default: false). * @opt_param bool fetchBody Whether the body content of the post is included * with the result (default: true). - * @opt_param string maxComments Maximum number of comments to retrieve with the - * returned post. * @opt_param bool fetchImages Whether image URL metadata for each post is * included in the returned result (default: false). + * @opt_param string maxComments Maximum number of comments to retrieve with the + * returned post. + * @opt_param bool publish Whether a publish action should be performed when the + * post is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * post is updated (default: false). * @return Google_Service_Blogger_Post */ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) @@ -1631,10 +1631,10 @@ public function revert($blogId, $postId, $optParams = array()) * @param string $q Query terms to search this blog for matching posts. * @param array $optParams Optional parameters. * - * @opt_param string orderBy Sort search results * @opt_param bool fetchBodies Whether the body content of posts is included * (default: true). This should be set to false when the post bodies are not * required, to help minimize traffic. + * @opt_param string orderBy Sort search results * @return Google_Service_Blogger_PostList */ public function search($blogId, $q, $optParams = array()) @@ -1652,16 +1652,16 @@ public function search($blogId, $q, $optParams = array()) * @param Google_Post $postBody * @param array $optParams Optional parameters. * - * @opt_param bool revert Whether a revert action should be performed when the - * post is updated (default: false). - * @opt_param bool publish Whether a publish action should be performed when the - * post is updated (default: false). * @opt_param bool fetchBody Whether the body content of the post is included * with the result (default: true). - * @opt_param string maxComments Maximum number of comments to retrieve with the - * returned post. * @opt_param bool fetchImages Whether image URL metadata for each post is * included in the returned result (default: false). + * @opt_param string maxComments Maximum number of comments to retrieve with the + * returned post. + * @opt_param bool publish Whether a publish action should be performed when the + * post is updated (default: false). + * @opt_param bool revert Whether a revert action should be performed when the + * post is updated (default: false). * @return Google_Service_Blogger_Post */ public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php index c8c4c6300..3b86e1205 100644 --- a/src/Google/Service/Books.php +++ b/src/Google/Service/Books.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -164,10 +166,6 @@ public function __construct(Google_Client $client) 'path' => 'cloudloading/addBook', 'httpMethod' => 'POST', 'parameters' => array( - 'upload_client_token' => array( - 'location' => 'query', - 'type' => 'string', - ), 'drive_document_id' => array( 'location' => 'query', 'type' => 'string', @@ -180,6 +178,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'upload_client_token' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'deleteBook' => array( 'path' => 'cloudloading/deleteBook', @@ -239,11 +241,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'source' => array( + 'contentVersion' => array( 'location' => 'query', 'type' => 'string', ), - 'contentVersion' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -257,10 +259,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'contentVersion' => array( 'location' => 'query', 'type' => 'string', @@ -269,6 +267,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -308,14 +310,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'scale' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), 'allowWebDefinitions' => array( 'location' => 'query', 'type' => 'boolean', @@ -328,6 +322,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'scale' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), 'w' => array( 'location' => 'query', 'type' => 'integer', @@ -352,47 +354,47 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'scale' => array( + 'annotationDataId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', + 'repeated' => true, ), - 'source' => array( + 'h' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'locale' => array( 'location' => 'query', 'type' => 'string', ), - 'h' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'updatedMax' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'scale' => array( 'location' => 'query', 'type' => 'integer', ), - 'annotationDataId' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'pageToken' => array( + 'updatedMax' => array( 'location' => 'query', 'type' => 'string', ), - 'w' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'updatedMin' => array( 'location' => 'query', 'type' => 'string', ), + 'w' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -451,11 +453,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'volumeAnnotationsVersion' => array( + 'endOffset' => array( 'location' => 'query', 'type' => 'string', ), @@ -463,39 +461,43 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'endOffset' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', ), - 'locale' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'updatedMin' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'updatedMax' => array( + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'source' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'startOffset' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'startPosition' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'updatedMax' => array( 'location' => 'query', 'type' => 'string', ), - 'startOffset' => array( + 'updatedMin' => array( 'location' => 'query', 'type' => 'string', ), - 'startPosition' => array( + 'volumeAnnotationsVersion' => array( 'location' => 'query', 'type' => 'string', ), @@ -595,6 +597,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), + 'includeNonComicsSeries' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'locale' => array( 'location' => 'query', 'type' => 'string', @@ -658,11 +664,11 @@ public function __construct(Google_Client $client) 'path' => 'mylibrary/annotations', 'httpMethod' => 'GET', 'parameters' => array( - 'showDeleted' => array( + 'contentVersion' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'updatedMin' => array( + 'layerId' => array( 'location' => 'query', 'type' => 'string', ), @@ -671,10 +677,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -683,19 +685,23 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'updatedMax' => array( + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'source' => array( 'location' => 'query', 'type' => 'string', ), - 'contentVersion' => array( + 'updatedMax' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'updatedMin' => array( 'location' => 'query', 'type' => 'string', ), - 'layerId' => array( + 'volumeId' => array( 'location' => 'query', 'type' => 'string', ), @@ -866,26 +872,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), 'country' => array( 'location' => 'query', 'type' => 'string', ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'q' => array( 'location' => 'query', 'type' => 'string', ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -914,11 +920,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'source' => array( + 'contentVersion' => array( 'location' => 'query', 'type' => 'string', ), - 'contentVersion' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -942,19 +948,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'deviceCookie' => array( + 'action' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'contentVersion' => array( 'location' => 'query', 'type' => 'string', ), - 'contentVersion' => array( + 'deviceCookie' => array( 'location' => 'query', 'type' => 'string', ), - 'action' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -1010,11 +1016,12 @@ public function __construct(Google_Client $client) 'path' => 'onboarding/listCategoryVolumes', 'httpMethod' => 'GET', 'parameters' => array( - 'locale' => array( + 'categoryId' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'pageToken' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', ), @@ -1022,15 +1029,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1050,11 +1056,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'maxAllowedMaturityRating' => array( 'location' => 'query', 'type' => 'string', ), - 'maxAllowedMaturityRating' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -1073,27 +1079,27 @@ public function __construct(Google_Client $client) 'path' => 'promooffer/accept', 'httpMethod' => 'POST', 'parameters' => array( - 'product' => array( + 'androidId' => array( 'location' => 'query', 'type' => 'string', ), - 'volumeId' => array( + 'device' => array( 'location' => 'query', 'type' => 'string', ), - 'offerId' => array( + 'manufacturer' => array( 'location' => 'query', 'type' => 'string', ), - 'androidId' => array( + 'model' => array( 'location' => 'query', 'type' => 'string', ), - 'device' => array( + 'offerId' => array( 'location' => 'query', 'type' => 'string', ), - 'model' => array( + 'product' => array( 'location' => 'query', 'type' => 'string', ), @@ -1101,7 +1107,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'manufacturer' => array( + 'volumeId' => array( 'location' => 'query', 'type' => 'string', ), @@ -1110,31 +1116,31 @@ public function __construct(Google_Client $client) 'path' => 'promooffer/dismiss', 'httpMethod' => 'POST', 'parameters' => array( - 'product' => array( + 'androidId' => array( 'location' => 'query', 'type' => 'string', ), - 'offerId' => array( + 'device' => array( 'location' => 'query', 'type' => 'string', ), - 'androidId' => array( + 'manufacturer' => array( 'location' => 'query', 'type' => 'string', ), - 'device' => array( + 'model' => array( 'location' => 'query', 'type' => 'string', ), - 'model' => array( + 'offerId' => array( 'location' => 'query', 'type' => 'string', ), - 'serial' => array( + 'product' => array( 'location' => 'query', 'type' => 'string', ), - 'manufacturer' => array( + 'serial' => array( 'location' => 'query', 'type' => 'string', ), @@ -1143,15 +1149,15 @@ public function __construct(Google_Client $client) 'path' => 'promooffer/get', 'httpMethod' => 'GET', 'parameters' => array( - 'product' => array( + 'androidId' => array( 'location' => 'query', 'type' => 'string', ), - 'androidId' => array( + 'device' => array( 'location' => 'query', 'type' => 'string', ), - 'device' => array( + 'manufacturer' => array( 'location' => 'query', 'type' => 'string', ), @@ -1159,11 +1165,60 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'product' => array( + 'location' => 'query', + 'type' => 'string', + ), 'serial' => array( 'location' => 'query', 'type' => 'string', ), - 'manufacturer' => array( + ), + ), + ) + ) + ); + $this->series = new Google_Service_Books_Series_Resource( + $this, + $this->serviceName, + 'series', + array( + 'methods' => array( + 'get' => array( + 'path' => 'series/get', + 'httpMethod' => 'GET', + 'parameters' => array( + 'series_id' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->series_membership = new Google_Service_Books_SeriesMembership_Resource( + $this, + $this->serviceName, + 'membership', + array( + 'methods' => array( + 'get' => array( + 'path' => 'series/membership/get', + 'httpMethod' => 'GET', + 'parameters' => array( + 'series_id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'page_size' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'page_token' => array( 'location' => 'query', 'type' => 'string', ), @@ -1187,15 +1242,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'user_library_consistent_read' => array( + 'country' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeNonComicsSeries' => array( 'location' => 'query', 'type' => 'boolean', ), - 'projection' => array( + 'partner' => array( 'location' => 'query', 'type' => 'string', ), - 'country' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -1203,9 +1262,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'partner' => array( + 'user_library_consistent_read' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'list' => array( @@ -1217,53 +1276,53 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'download' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', ), - 'libraryRestrict' => array( + 'langRestrict' => array( 'location' => 'query', 'type' => 'string', ), - 'langRestrict' => array( + 'libraryRestrict' => array( 'location' => 'query', 'type' => 'string', ), - 'showPreorders' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'printType' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'partner' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'filter' => array( + 'printType' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'startIndex' => array( + 'showPreorders' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'download' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), - 'partner' => array( + 'startIndex' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), ), ), @@ -1285,11 +1344,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'locale' => array( + 'association' => array( 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', ), @@ -1297,7 +1356,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'association' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -1316,31 +1375,31 @@ public function __construct(Google_Client $client) 'path' => 'volumes/mybooks', 'httpMethod' => 'GET', 'parameters' => array( - 'locale' => array( + 'acquireMethod' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'startIndex' => array( + 'locale' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'source' => array( + 'processingState' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'acquireMethod' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'processingState' => array( + 'startIndex' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), ), ), @@ -1361,11 +1420,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'source' => array( + 'maxAllowedMaturityRating' => array( 'location' => 'query', 'type' => 'string', ), - 'maxAllowedMaturityRating' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -1411,15 +1470,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'processingState' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -1428,7 +1487,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'processingState' => array( + 'volumeId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -1508,9 +1567,9 @@ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Re * @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 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) @@ -1540,13 +1599,13 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string upload_client_token * @opt_param string drive_document_id A drive document id. The * upload_client_token must not be set. * @opt_param string mime_type The document MIME type. It can be set only if the * drive_document_id is set. * @opt_param string name The document name. It can be set only if the * drive_document_id is set. + * @opt_param string upload_client_token * @return Google_Service_Books_BooksCloudloadingResource */ public function addBook($optParams = array()) @@ -1629,9 +1688,9 @@ class Google_Service_Books_Layers_Resource extends Google_Service_Resource * @param string $summaryId The ID for the layer to get the summary for. * @param array $optParams Optional parameters. * - * @opt_param string source String to identify the originator of this request. * @opt_param string contentVersion The content version for the requested * volume. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Layersummary */ public function get($volumeId, $summaryId, $optParams = array()) @@ -1647,11 +1706,11 @@ public function get($volumeId, $summaryId, $optParams = array()) * @param string $volumeId The volume to retrieve layers for. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value of the nextToken from the previous - * page. * @opt_param string contentVersion The content version for the requested * volume. * @opt_param string maxResults Maximum number of results to return + * @opt_param string 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 */ @@ -1684,14 +1743,14 @@ class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_ * trying to retrieve. * @param array $optParams Optional parameters. * - * @opt_param int scale The requested scale for the image. - * @opt_param string source String to identify the originator of this request. * @opt_param bool allowWebDefinitions For the dictionary layer. Whether or not * to allow web definitions. * @opt_param int h The requested pixel height for any images. If height is * provided width must also be provided. * @opt_param string locale The locale information for the data. ISO-639-1 * language and ISO-3166-1 country code. Ex: 'en_US'. + * @opt_param int 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 @@ -1712,23 +1771,23 @@ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $op * @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 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 updatedMax RFC 3339 timestamp to restrict to items updated - * prior to this timestamp (exclusive). + * @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 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 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()) @@ -1778,25 +1837,25 @@ public function get($volumeId, $layerId, $annotationId, $optParams = array()) * @param string $contentVersion The content version for the requested volume. * @param array $optParams Optional parameters. * - * @opt_param bool showDeleted Set to true to return deleted annotations. - * updatedMin must be in the request to use this. Defaults to false. - * @opt_param string volumeAnnotationsVersion The version of the volume - * annotations that you are requesting. - * @opt_param string endPosition The end position to end retrieving data from. * @opt_param string endOffset The end offset to end retrieving data from. + * @opt_param string 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 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 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()) @@ -1888,6 +1947,8 @@ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = * * @opt_param string features List of features supported by the client, i.e., * 'RENTALS' + * @opt_param bool includeNonComicsSeries Set to true to include non-comics + * series. Defaults to false. * @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 @@ -1983,21 +2044,21 @@ public function insert(Google_Service_Books_Annotation $postBody, $optParams = a * * @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 contentVersion The content version for the requested + * volume. + * @opt_param string layerId The layer ID to limit annotation by. * @opt_param string layerIds The layer ID(s) to limit annotation by. - * @opt_param string volumeId The volume to restrict annotations to. * @opt_param string maxResults Maximum number of results to return * @opt_param string pageToken The value of the nextToken from the previous * page. + * @opt_param 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 contentVersion The content version for the requested - * volume. - * @opt_param string source String to identify the originator of this request. - * @opt_param string layerId The layer ID to limit annotation by. + * @opt_param string 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()) @@ -2172,13 +2233,13 @@ class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_S * @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 country ISO-3166-1 code to override the IP-based location. + * @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 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) @@ -2210,9 +2271,9 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser * 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. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_ReadingPosition */ public function get($volumeId, $optParams = array()) @@ -2233,12 +2294,12 @@ public function get($volumeId, $optParams = array()) * @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. - * @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()) { @@ -2311,16 +2372,16 @@ public function listCategories($optParams = array()) * * @param array $optParams Optional parameters. * + * @opt_param string categoryId List of category ids requested. * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. * Default is en-US if unset. - * @opt_param string pageToken The value of the nextToken from the previous - * page. * @opt_param string maxAllowedMaturityRating The maximum allowed maturity * rating of returned volumes. Books with a higher maturity rating are filtered * out. - * @opt_param string categoryId List of category ids requested. * @opt_param string pageSize Number of maximum results per page to be included * in the response. + * @opt_param string pageToken The value of the nextToken from the previous + * page. * @return Google_Service_Books_Volume2 */ public function listCategoryVolumes($optParams = array()) @@ -2349,10 +2410,10 @@ class Google_Service_Books_Personalizedstream_Resource extends Google_Service_Re * * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. - * @opt_param string source String to identify the originator of this request. * @opt_param string maxAllowedMaturityRating The maximum allowed maturity * rating of returned recommendations. Books with a higher maturity rating are * filtered out. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Discoveryclusters */ public function get($optParams = array()) @@ -2379,14 +2440,14 @@ class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string product device product - * @opt_param string volumeId Volume id to exercise the offer - * @opt_param string offerId * @opt_param string androidId device android_id * @opt_param string device device device + * @opt_param string manufacturer device manufacturer * @opt_param string model device model + * @opt_param string offerId + * @opt_param string product device product * @opt_param string serial device serial - * @opt_param string manufacturer device manufacturer + * @opt_param string volumeId Volume id to exercise the offer */ public function accept($optParams = array()) { @@ -2400,39 +2461,96 @@ public function accept($optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string product device product - * @opt_param string offerId Offer to dimiss * @opt_param string androidId device android_id * @opt_param string device device device + * @opt_param string manufacturer device manufacturer * @opt_param string model device model + * @opt_param string offerId Offer to dimiss + * @opt_param string product device product * @opt_param string serial device serial - * @opt_param string manufacturer device manufacturer */ public function dismiss($optParams = array()) { - $params = array(); + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('dismiss', array($params)); + } + + /** + * Returns a list of promo offers available to the user (promooffer.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param string androidId device android_id + * @opt_param string device device device + * @opt_param string manufacturer device manufacturer + * @opt_param string model device model + * @opt_param string product device product + * @opt_param string serial device serial + * @return Google_Service_Books_Offers + */ + public function get($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Offers"); + } +} + +/** + * The "series" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $series = $booksService->series; + * + */ +class Google_Service_Books_Series_Resource extends Google_Service_Resource +{ + + /** + * Returns Series metadata for the given series ids. (series.get) + * + * @param string $seriesId String that identifies the series + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Series + */ + public function get($seriesId, $optParams = array()) + { + $params = array('series_id' => $seriesId); $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); + return $this->call('get', array($params), "Google_Service_Books_Series"); } +} + +/** + * The "membership" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $membership = $booksService->membership; + * + */ +class Google_Service_Books_SeriesMembership_Resource extends Google_Service_Resource +{ /** - * Returns a list of promo offers available to the user (promooffer.get) + * Returns Series membership data given the series id. (membership.get) * + * @param string $seriesId String that identifies the series * @param array $optParams Optional parameters. * - * @opt_param string product device product - * @opt_param string androidId device android_id - * @opt_param string device device device - * @opt_param string model device model - * @opt_param string serial device serial - * @opt_param string manufacturer device manufacturer - * @return Google_Service_Books_Offers + * @opt_param string page_size Number of maximum results per page to be included + * in the response. + * @opt_param string page_token The value of the nextToken from the previous + * page. + * @return Google_Service_Books_Seriesmembership */ - public function get($optParams = array()) + public function get($seriesId, $optParams = array()) { - $params = array(); + $params = array('series_id' => $seriesId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Offers"); + return $this->call('get', array($params), "Google_Service_Books_Seriesmembership"); } } @@ -2453,12 +2571,14 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource * @param string $volumeId ID of volume to retrieve. * @param array $optParams Optional parameters. * - * @opt_param bool user_library_consistent_read + * @opt_param string country ISO-3166-1 code to override the IP-based location. + * @opt_param bool includeNonComicsSeries Set to true to include non-comics + * series. Defaults to false. + * @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 country ISO-3166-1 code to override the IP-based location. * @opt_param string source String to identify the originator of this request. - * @opt_param string partner Brand results for partner ID. + * @opt_param bool user_library_consistent_read * @return Google_Service_Books_Volume */ public function get($volumeId, $optParams = array()) @@ -2474,22 +2594,22 @@ public function get($volumeId, $optParams = array()) * @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 string libraryRestrict Restrict search to this user's library. - * @opt_param string langRestrict Restrict results to books with this language - * code. * @opt_param bool showPreorders Set to true to show books available for * preorder. Defaults to false. - * @opt_param string printType Restrict to books or magazines. - * @opt_param string maxResults Maximum number of results to return. - * @opt_param string filter Filter search results. * @opt_param string source String to identify the originator of this request. * @opt_param string startIndex Index of the first result to return (starts at * 0) - * @opt_param string download Restrict to volumes by download availability. - * @opt_param string partner Restrict and brand results for partner ID. * @return Google_Service_Books_Volumes */ public function listVolumes($q, $optParams = array()) @@ -2517,13 +2637,13 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res * @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. * @opt_param string maxAllowedMaturityRating The maximum allowed maturity * rating of returned recommendations. Books with a higher maturity rating are * filtered out. - * @opt_param string association Association type. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Volumes */ public function listVolumesAssociated($volumeId, $optParams = array()) @@ -2549,16 +2669,16 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour * * @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 startIndex Index of the first result to return (starts at - * 0) * @opt_param string maxResults Maximum number of results to return. - * @opt_param string source String to identify the originator of this request. - * @opt_param string acquireMethod How the book was aquired * @opt_param string processingState The processing state of the user uploaded * volumes to be returned. Applicable only if the UPLOADED is specified in the * acquireMethod. + * @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()) @@ -2587,10 +2707,10 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re * * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. - * @opt_param string source String to identify the originator of this request. * @opt_param string maxAllowedMaturityRating The maximum allowed maturity * rating of returned recommendations. Books with a higher maturity rating are * filtered out. + * @opt_param string source String to identify the originator of this request. * @return Google_Service_Books_Volumes */ public function listVolumesRecommended($optParams = array()) @@ -2638,14 +2758,14 @@ class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_R * * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. - * @opt_param string volumeId The ids of the volumes to be returned. If not - * specified all that match the processingState are returned. * @opt_param string maxResults Maximum number of results to return. + * @opt_param string 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 processingState The processing state of the user uploaded - * volumes to be returned. + * @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()) @@ -5036,11 +5156,19 @@ public function getVersion() class Google_Service_Books_Notification extends Google_Model { protected $internal_gapi_mappings = array( + "dontShowNotification" => "dont_show_notification", + "notificationType" => "notification_type", + "pcampaignId" => "pcampaign_id", + "showNotificationSettingsAction" => "show_notification_settings_action", ); public $body; + public $dontShowNotification; public $iconUrl; public $kind; - public $linkUrl; + public $notificationType; + public $pcampaignId; + public $showNotificationSettingsAction; + public $targetUrl; public $title; @@ -5052,6 +5180,14 @@ public function getBody() { return $this->body; } + public function setDontShowNotification($dontShowNotification) + { + $this->dontShowNotification = $dontShowNotification; + } + public function getDontShowNotification() + { + return $this->dontShowNotification; + } public function setIconUrl($iconUrl) { $this->iconUrl = $iconUrl; @@ -5068,13 +5204,37 @@ public function getKind() { return $this->kind; } - public function setLinkUrl($linkUrl) + public function setNotificationType($notificationType) + { + $this->notificationType = $notificationType; + } + public function getNotificationType() + { + return $this->notificationType; + } + public function setPcampaignId($pcampaignId) + { + $this->pcampaignId = $pcampaignId; + } + public function getPcampaignId() + { + return $this->pcampaignId; + } + public function setShowNotificationSettingsAction($showNotificationSettingsAction) { - $this->linkUrl = $linkUrl; + $this->showNotificationSettingsAction = $showNotificationSettingsAction; } - public function getLinkUrl() + public function getShowNotificationSettingsAction() { - return $this->linkUrl; + return $this->showNotificationSettingsAction; + } + public function setTargetUrl($targetUrl) + { + $this->targetUrl = $targetUrl; + } + public function getTargetUrl() + { + return $this->targetUrl; } public function setTitle($title) { @@ -5482,6 +5642,124 @@ public function getUrl() } } +class Google_Service_Books_Series extends Google_Collection +{ + protected $collection_key = 'series'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $seriesType = 'Google_Service_Books_SeriesSeries'; + protected $seriesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSeries($series) + { + $this->series = $series; + } + public function getSeries() + { + return $this->series; + } +} + +class Google_Service_Books_SeriesSeries extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bannerImageUrl; + public $imageUrl; + public $seriesId; + public $seriesType; + public $title; + + + public function setBannerImageUrl($bannerImageUrl) + { + $this->bannerImageUrl = $bannerImageUrl; + } + public function getBannerImageUrl() + { + return $this->bannerImageUrl; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setSeriesId($seriesId) + { + $this->seriesId = $seriesId; + } + public function getSeriesId() + { + return $this->seriesId; + } + public function setSeriesType($seriesType) + { + $this->seriesType = $seriesType; + } + public function getSeriesType() + { + return $this->seriesType; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Books_Seriesmembership extends Google_Collection +{ + protected $collection_key = 'member'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $memberType = 'Google_Service_Books_Volume'; + protected $memberDataType = 'array'; + public $nextPageToken; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMember($member) + { + $this->member = $member; + } + public function getMember() + { + return $this->member; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Books_Usersettings extends Google_Model { protected $internal_gapi_mappings = array( @@ -6283,10 +6561,14 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model { protected $internal_gapi_mappings = array( ); + public $acquiredTime; public $acquisitionType; protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; protected $copyDataType = ''; public $entitlementType; + public $isFamilySharedFromUser; + public $isFamilySharedToUser; + public $isFamilySharingAllowed; public $isInMyBooks; public $isPreordered; public $isPurchased; @@ -6303,6 +6585,14 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model protected $userUploadedVolumeInfoDataType = ''; + public function setAcquiredTime($acquiredTime) + { + $this->acquiredTime = $acquiredTime; + } + public function getAcquiredTime() + { + return $this->acquiredTime; + } public function setAcquisitionType($acquisitionType) { $this->acquisitionType = $acquisitionType; @@ -6327,6 +6617,30 @@ public function getEntitlementType() { return $this->entitlementType; } + public function setIsFamilySharedFromUser($isFamilySharedFromUser) + { + $this->isFamilySharedFromUser = $isFamilySharedFromUser; + } + public function getIsFamilySharedFromUser() + { + return $this->isFamilySharedFromUser; + } + public function setIsFamilySharedToUser($isFamilySharedToUser) + { + $this->isFamilySharedToUser = $isFamilySharedToUser; + } + public function getIsFamilySharedToUser() + { + return $this->isFamilySharedToUser; + } + public function setIsFamilySharingAllowed($isFamilySharingAllowed) + { + $this->isFamilySharingAllowed = $isFamilySharingAllowed; + } + public function getIsFamilySharingAllowed() + { + return $this->isFamilySharingAllowed; + } public function setIsInMyBooks($isInMyBooks) { $this->isInMyBooks = $isInMyBooks; @@ -6527,6 +6841,8 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $ratingsCount; public $readingModes; public $samplePageCount; + protected $seriesInfoType = 'Google_Service_Books_Volumeseriesinfo'; + protected $seriesInfoDataType = ''; public $subtitle; public $title; @@ -6715,6 +7031,14 @@ public function getSamplePageCount() { return $this->samplePageCount; } + public function setSeriesInfo(Google_Service_Books_Volumeseriesinfo $seriesInfo) + { + $this->seriesInfo = $seriesInfo; + } + public function getSeriesInfo() + { + return $this->seriesInfo; + } public function setSubtitle($subtitle) { $this->subtitle = $subtitle; @@ -7130,3 +7454,121 @@ public function getTotalItems() return $this->totalItems; } } + +class Google_Service_Books_Volumeseriesinfo extends Google_Collection +{ + protected $collection_key = 'volumeSeries'; + protected $internal_gapi_mappings = array( + ); + public $bookDisplayNumber; + public $kind; + public $shortSeriesBookTitle; + protected $volumeSeriesType = 'Google_Service_Books_VolumeseriesinfoVolumeSeries'; + protected $volumeSeriesDataType = 'array'; + + + public function setBookDisplayNumber($bookDisplayNumber) + { + $this->bookDisplayNumber = $bookDisplayNumber; + } + public function getBookDisplayNumber() + { + return $this->bookDisplayNumber; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setShortSeriesBookTitle($shortSeriesBookTitle) + { + $this->shortSeriesBookTitle = $shortSeriesBookTitle; + } + public function getShortSeriesBookTitle() + { + return $this->shortSeriesBookTitle; + } + public function setVolumeSeries($volumeSeries) + { + $this->volumeSeries = $volumeSeries; + } + public function getVolumeSeries() + { + return $this->volumeSeries; + } +} + +class Google_Service_Books_VolumeseriesinfoVolumeSeries extends Google_Collection +{ + protected $collection_key = 'issue'; + protected $internal_gapi_mappings = array( + ); + protected $issueType = 'Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue'; + protected $issueDataType = 'array'; + public $orderNumber; + public $seriesBookType; + public $seriesId; + + + public function setIssue($issue) + { + $this->issue = $issue; + } + public function getIssue() + { + return $this->issue; + } + public function setOrderNumber($orderNumber) + { + $this->orderNumber = $orderNumber; + } + public function getOrderNumber() + { + return $this->orderNumber; + } + public function setSeriesBookType($seriesBookType) + { + $this->seriesBookType = $seriesBookType; + } + public function getSeriesBookType() + { + return $this->seriesBookType; + } + public function setSeriesId($seriesId) + { + $this->seriesId = $seriesId; + } + public function getSeriesId() + { + return $this->seriesId; + } +} + +class Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $issueDisplayNumber; + public $issueOrderNumber; + + + public function setIssueDisplayNumber($issueDisplayNumber) + { + $this->issueDisplayNumber = $issueDisplayNumber; + } + public function getIssueDisplayNumber() + { + return $this->issueDisplayNumber; + } + public function setIssueOrderNumber($issueOrderNumber) + { + $this->issueOrderNumber = $issueOrderNumber; + } + public function getIssueOrderNumber() + { + return $this->issueOrderNumber; + } +} diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php index 5105c787d..86e7b43d2 100644 --- a/src/Google/Service/Calendar.php +++ b/src/Google/Service/Calendar.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'syncToken' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'showDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'calendars/{calendarId}/acl/{ruleId}', @@ -171,22 +171,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'syncToken' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'showDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -231,30 +231,30 @@ public function __construct(Google_Client $client) 'path' => 'users/me/calendarList', 'httpMethod' => 'GET', 'parameters' => array( - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), 'minAccessRole' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'showHidden' => array( 'location' => 'query', 'type' => 'boolean', ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'users/me/calendarList/{calendarId}', @@ -288,30 +288,30 @@ public function __construct(Google_Client $client) 'path' => 'users/me/calendarList/watch', 'httpMethod' => 'POST', 'parameters' => array( - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), 'minAccessRole' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'showHidden' => array( 'location' => 'query', 'type' => 'boolean', ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -448,10 +448,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), 'alwaysIncludeEmail' => array( 'location' => 'query', 'type' => 'boolean', @@ -460,6 +456,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'import' => array( 'path' => 'calendars/{calendarId}/events/import', @@ -484,17 +484,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'supportsAttachments' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), 'sendNotifications' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxAttendees' => array( + 'supportsAttachments' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), ), ),'instances' => array( @@ -511,41 +511,41 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'showDeleted' => array( + 'alwaysIncludeEmail' => array( 'location' => 'query', 'type' => 'boolean', ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alwaysIncludeEmail' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'originalStart' => array( 'location' => 'query', 'type' => 'string', ), - 'timeMin' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'timeZone' => array( + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timeMax' => array( 'location' => 'query', 'type' => 'string', ), - 'originalStart' => array( + 'timeMin' => array( 'location' => 'query', 'type' => 'string', ), - 'maxAttendees' => array( + 'timeZone' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'list' => array( @@ -557,75 +557,75 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'iCalUID' => array( 'location' => 'query', 'type' => 'string', ), - 'showHiddenInvitations' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'syncToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'showDeleted' => array( + 'orderBy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'iCalUID' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'updatedMin' => array( + 'privateExtendedProperty' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'singleEvents' => array( + 'q' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'timeMax' => array( + 'sharedExtendedProperty' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'alwaysIncludeEmail' => array( + 'showDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'showHiddenInvitations' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'q' => array( + 'singleEvents' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'pageToken' => array( + 'syncToken' => array( 'location' => 'query', 'type' => 'string', ), - 'timeMin' => array( + 'timeMax' => array( 'location' => 'query', 'type' => 'string', ), - 'timeZone' => array( + 'timeMin' => array( 'location' => 'query', 'type' => 'string', ), - 'privateExtendedProperty' => array( + 'timeZone' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'sharedExtendedProperty' => array( + 'updatedMin' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', ), ), ),'move' => array( @@ -666,21 +666,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sendNotifications' => array( + 'alwaysIncludeEmail' => array( 'location' => 'query', 'type' => 'boolean', ), - 'alwaysIncludeEmail' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'supportsAttachments' => array( + 'sendNotifications' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxAttendees' => array( + 'supportsAttachments' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), ), ),'quickAdd' => array( @@ -716,21 +716,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sendNotifications' => array( + 'alwaysIncludeEmail' => array( 'location' => 'query', 'type' => 'boolean', ), - 'alwaysIncludeEmail' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'supportsAttachments' => array( + 'sendNotifications' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxAttendees' => array( + 'supportsAttachments' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), ), ),'watch' => array( @@ -742,75 +742,75 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'iCalUID' => array( 'location' => 'query', 'type' => 'string', ), - 'showHiddenInvitations' => array( + 'maxAttendees' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'syncToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'showDeleted' => array( + 'orderBy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'iCalUID' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'updatedMin' => array( + 'privateExtendedProperty' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'singleEvents' => array( + 'q' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'timeMax' => array( + 'sharedExtendedProperty' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'alwaysIncludeEmail' => array( + 'showDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'showHiddenInvitations' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'q' => array( + 'singleEvents' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'pageToken' => array( + 'syncToken' => array( 'location' => 'query', 'type' => 'string', ), - 'timeMin' => array( + 'timeMax' => array( 'location' => 'query', 'type' => 'string', ), - 'timeZone' => array( + 'timeMin' => array( 'location' => 'query', 'type' => 'string', ), - 'privateExtendedProperty' => array( + 'timeZone' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'sharedExtendedProperty' => array( + 'updatedMin' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', ), ), ), @@ -851,14 +851,14 @@ public function __construct(Google_Client $client) 'path' => 'users/me/settings', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'syncToken' => array( 'location' => 'query', 'type' => 'string', @@ -868,14 +868,14 @@ public function __construct(Google_Client $client) 'path' => 'users/me/settings/watch', 'httpMethod' => 'POST', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'syncToken' => array( 'location' => 'query', 'type' => 'string', @@ -958,8 +958,14 @@ public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $ * the currently logged in user, use the "primary" keyword. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. * @opt_param string pageToken Token specifying which result page to return. * Optional. + * @opt_param bool showDeleted Whether to include deleted ACLs in the result. + * Deleted ACLs are represented by role equal to "none". Deleted ACLs will + * always be included if syncToken is provided. Optional. The default is False. * @opt_param string syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -969,12 +975,6 @@ public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $ * the client should clear its storage and perform a full synchronization * without any syncToken. Learn more about incremental synchronization. * Optional. The default is to return all entries. - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param bool showDeleted Whether to include deleted ACLs in the result. - * Deleted ACLs are represented by role equal to "none". Deleted ACLs will - * always be included if syncToken is provided. Optional. The default is False. * @return Google_Service_Calendar_Acl */ public function listAcl($calendarId, $optParams = array()) @@ -1030,8 +1030,14 @@ public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $po * @param Google_Channel $postBody * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. * @opt_param string pageToken Token specifying which result page to return. * Optional. + * @opt_param bool showDeleted Whether to include deleted ACLs in the result. + * Deleted ACLs are represented by role equal to "none". Deleted ACLs will + * always be included if syncToken is provided. Optional. The default is False. * @opt_param string syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -1041,12 +1047,6 @@ public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $po * the client should clear its storage and perform a full synchronization * without any syncToken. Learn more about incremental synchronization. * Optional. The default is to return all entries. - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param bool showDeleted Whether to include deleted ACLs in the result. - * Deleted ACLs are represented by role equal to "none". Deleted ACLs will - * always be included if syncToken is provided. Optional. The default is False. * @return Google_Service_Calendar_Channel */ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1123,6 +1123,17 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt * * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of entries returned on one result + * page. By default the value is 100 entries. The page size can never be larger + * than 250 entries. Optional. + * @opt_param string minAccessRole The minimum access role for the user in the + * returned entries. Optional. The default is no restriction. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. + * @opt_param bool showDeleted Whether to include deleted calendar list entries + * in the result. Optional. The default is False. + * @opt_param bool showHidden Whether to show hidden entries. Optional. The + * default is False. * @opt_param string syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -1135,17 +1146,6 @@ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $opt * 410 GONE response code and the client should clear its storage and perform a * full synchronization without any syncToken. Learn more about incremental * synchronization. Optional. The default is to return all entries. - * @opt_param bool showDeleted Whether to include deleted calendar list entries - * in the result. Optional. The default is False. - * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param bool showHidden Whether to show hidden entries. Optional. The - * default is False. * @return Google_Service_Calendar_CalendarList */ public function listCalendarList($optParams = array()) @@ -1206,29 +1206,29 @@ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $p * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. If only read-only fields such as calendar properties or ACLs have - * changed, the entry won't be returned. All entries deleted and hidden since - * the previous list request will always be in the result set and it is not - * allowed to set showDeleted neither showHidden to False. To ensure client - * state consistency minAccessRole query parameter cannot be specified together - * with nextSyncToken. If the syncToken expires, the server will respond with a - * 410 GONE response code and the client should clear its storage and perform a - * full synchronization without any syncToken. Learn more about incremental - * synchronization. Optional. The default is to return all entries. - * @opt_param bool showDeleted Whether to include deleted calendar list entries - * in the result. Optional. The default is False. - * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. + * @opt_param string minAccessRole The minimum access role for the user in the + * returned entries. Optional. The default is no restriction. * @opt_param string pageToken Token specifying which result page to return. * Optional. + * @opt_param bool showDeleted Whether to include deleted calendar list entries + * in the result. Optional. The default is False. * @opt_param bool showHidden Whether to show hidden entries. Optional. The * default is False. + * @opt_param string syncToken Token obtained from the nextSyncToken field + * returned on the last page of results from the previous list request. It makes + * the result of this list request contain only entries that have changed since + * then. If only read-only fields such as calendar properties or ACLs have + * changed, the entry won't be returned. All entries deleted and hidden since + * the previous list request will always be in the result set and it is not + * allowed to set showDeleted neither showHidden to False. To ensure client + * state consistency minAccessRole query parameter cannot be specified together + * with nextSyncToken. If the syncToken expires, the server will respond with a + * 410 GONE response code and the client should clear its storage and perform a + * full synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. * @return Google_Service_Calendar_Channel */ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1437,8 +1437,6 @@ public function delete($calendarId, $eventId, $optParams = array()) * @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 @@ -1448,6 +1446,8 @@ public function delete($calendarId, $eventId, $optParams = array()) * @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()) @@ -1487,13 +1487,13 @@ public function import($calendarId, Google_Service_Calendar_Event $postBody, $op * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. Optional. The default is False. - * @opt_param bool sendNotifications Whether to send notifications about the - * creation of the new event. Optional. The default is False. * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. + * @opt_param bool sendNotifications Whether to send notifications about the + * creation of the new event. Optional. The default is False. + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event */ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1512,34 +1512,34 @@ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $op * @param string $eventId Recurring event identifier. * @param array $optParams Optional parameters. * - * @opt_param bool showDeleted Whether to include deleted events (with status - * equals "cancelled") in the result. Cancelled instances of recurring events - * will still be included if singleEvents is False. Optional. The default is - * False. - * @opt_param string timeMax Upper bound (exclusive) for an event's start time - * to filter by. Optional. The default is not to filter by start time. Must be - * an RFC3339 timestamp with mandatory time zone offset. * @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. By default the value is 250 events. The page size can never be larger * than 2500 events. 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. Must be + * an RFC3339 timestamp with mandatory time zone offset. * @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. Must be an * RFC3339 timestamp with mandatory time zone offset. * @opt_param string timeZone Time zone used in the response. Optional. The * default is the time zone of the calendar. - * @opt_param string originalStart The original start time of the instance in - * the result. Optional. - * @opt_param int maxAttendees The maximum number of attendees to include in the - * response. If there are more than the specified number of attendees, only the - * participant is returned. Optional. * @return Google_Service_Calendar_Events */ public function instances($calendarId, $eventId, $optParams = array()) @@ -1557,10 +1557,46 @@ public function instances($calendarId, $eventId, $optParams = array()) * the currently logged in user, use the "primary" keyword. * @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 event ID in the iCalendar format 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. By default the value is 250 events. The page size can never be larger + * than 2500 events. 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 privateExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only private properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param string q Free text search terms to find events that match these + * terms in any field, except for extended properties. Optional. + * @opt_param string sharedExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only shared properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param 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 syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -1575,40 +1611,11 @@ public function instances($calendarId, $eventId, $optParams = array()) * should clear its storage and perform a full synchronization without any * syncToken. Learn more about incremental synchronization. Optional. The * default is to return all entries. - * @opt_param bool showDeleted Whether to include deleted events (with status - * equals "cancelled") in the result. Cancelled instances of recurring events - * (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents - * are both True, only single instances of deleted events (but not the - * underlying recurring events) are returned. Optional. The default is False. - * @opt_param string iCalUID Specifies event ID in the iCalendar format to be - * included in the response. Optional. - * @opt_param string updatedMin Lower bound for an event's last modification - * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted - * since this time will always be included regardless of showDeleted. Optional. - * The default is not to filter by last modification time. - * @opt_param bool singleEvents Whether to expand recurring events into - * instances and only return single one-off events and instances of recurring - * events, but not the underlying recurring events themselves. Optional. The - * default is False. * @opt_param string timeMax Upper bound (exclusive) for an event's start time * to filter by. Optional. The default is not to filter by start time. Must be * an RFC3339 timestamp with mandatory time zone offset, e.g., * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided * but will be ignored. - * @opt_param bool alwaysIncludeEmail Whether to always include a value in the - * email field for the organizer, creator and attendees, even if no real email - * is available (i.e. a generated, non-working value will be provided). The use - * of this option is discouraged and should only be used by clients which cannot - * handle the absence of an email address value in the mentioned places. - * Optional. The default is False. - * @opt_param int maxResults Maximum number of events returned on one result - * page. By default the value is 250 events. The page size can never be larger - * than 2500 events. Optional. - * @opt_param string q Free text search terms to find events that match these - * terms in any field, except for extended properties. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. * @opt_param string timeMin Lower bound (inclusive) for an event's end time to * filter by. Optional. The default is not to filter by end time. Must be an * RFC3339 timestamp with mandatory time zone offset, e.g., @@ -1616,17 +1623,10 @@ public function instances($calendarId, $eventId, $optParams = array()) * but will be ignored. * @opt_param string timeZone Time zone used in the response. Optional. The * default is the time zone of the calendar. - * @opt_param string privateExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only private properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param string sharedExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only shared properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param int maxAttendees The maximum number of attendees to include in the - * response. If there are more than the specified number of attendees, only the - * participant is returned. Optional. + * @opt_param string updatedMin Lower bound for an event's last modification + * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted + * since this time will always be included regardless of showDeleted. Optional. + * The default is not to filter by last modification time. * @return Google_Service_Calendar_Events */ public function listEvents($calendarId, $optParams = array()) @@ -1668,20 +1668,20 @@ public function move($calendarId, $eventId, $destination, $optParams = array()) * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications Whether to send notifications about the - * event update (e.g. attendee's responses, title changes, etc.). Optional. The - * default is False. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the * email field for the organizer, creator and attendees, even if no real email * is available (i.e. a generated, non-working value will be provided). The use * of this option is discouraged and should only be used by clients which cannot * handle the absence of an email address value in the mentioned places. * Optional. The default is False. - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. 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. + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event */ public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1721,20 +1721,20 @@ public function quickAdd($calendarId, $text, $optParams = array()) * @param Google_Event $postBody * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications Whether to send notifications about the - * event update (e.g. attendee's responses, title changes, etc.). Optional. The - * default is False. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the * email field for the organizer, creator and attendees, even if no real email * is available (i.e. a generated, non-working value will be provided). The use * of this option is discouraged and should only be used by clients which cannot * handle the absence of an email address value in the mentioned places. * Optional. The default is False. - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. 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. + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event */ public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1753,10 +1753,46 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * @param Google_Channel $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 string iCalUID Specifies event ID in the iCalendar format 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. By default the value is 250 events. The page size can never be larger + * than 2500 events. 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 privateExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only private properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param string q Free text search terms to find events that match these + * terms in any field, except for extended properties. Optional. + * @opt_param string sharedExtendedProperty Extended properties constraint + * specified as propertyName=value. Matches only shared properties. This + * parameter might be repeated multiple times to return events that match all + * given constraints. + * @opt_param 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 syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -1771,40 +1807,11 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * should clear its storage and perform a full synchronization without any * syncToken. Learn more about incremental synchronization. Optional. The * default is to return all entries. - * @opt_param bool showDeleted Whether to include deleted events (with status - * equals "cancelled") in the result. Cancelled instances of recurring events - * (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents - * are both True, only single instances of deleted events (but not the - * underlying recurring events) are returned. Optional. The default is False. - * @opt_param string iCalUID Specifies event ID in the iCalendar format to be - * included in the response. Optional. - * @opt_param string updatedMin Lower bound for an event's last modification - * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted - * since this time will always be included regardless of showDeleted. Optional. - * The default is not to filter by last modification time. - * @opt_param bool singleEvents Whether to expand recurring events into - * instances and only return single one-off events and instances of recurring - * events, but not the underlying recurring events themselves. Optional. The - * default is False. * @opt_param string timeMax Upper bound (exclusive) for an event's start time * to filter by. Optional. The default is not to filter by start time. Must be * an RFC3339 timestamp with mandatory time zone offset, e.g., * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided * but will be ignored. - * @opt_param bool alwaysIncludeEmail Whether to always include a value in the - * email field for the organizer, creator and attendees, even if no real email - * is available (i.e. a generated, non-working value will be provided). The use - * of this option is discouraged and should only be used by clients which cannot - * handle the absence of an email address value in the mentioned places. - * Optional. The default is False. - * @opt_param int maxResults Maximum number of events returned on one result - * page. By default the value is 250 events. The page size can never be larger - * than 2500 events. Optional. - * @opt_param string q Free text search terms to find events that match these - * terms in any field, except for extended properties. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. * @opt_param string timeMin Lower bound (inclusive) for an event's end time to * filter by. Optional. The default is not to filter by end time. Must be an * RFC3339 timestamp with mandatory time zone offset, e.g., @@ -1812,17 +1819,10 @@ public function update($calendarId, $eventId, Google_Service_Calendar_Event $pos * but will be ignored. * @opt_param string timeZone Time zone used in the response. Optional. The * default is the time zone of the calendar. - * @opt_param string privateExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only private properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param string sharedExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only shared properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param int maxAttendees The maximum number of attendees to include in the - * response. If there are more than the specified number of attendees, only the - * participant is returned. Optional. + * @opt_param string updatedMin Lower bound for an event's last modification + * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted + * since this time will always be included regardless of showDeleted. Optional. + * The default is not to filter by last modification time. * @return Google_Service_Calendar_Channel */ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) @@ -1889,11 +1889,11 @@ public function get($setting, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token specifying which result page to return. - * Optional. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. * @opt_param string syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -1916,11 +1916,11 @@ public function listSettings($optParams = array()) * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token specifying which result page to return. - * Optional. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. + * @opt_param string pageToken Token specifying which result page to return. + * Optional. * @opt_param string syncToken Token obtained from the nextSyncToken field * returned on the last page of results from the previous list request. It makes * the result of this list request contain only entries that have changed since @@ -2518,10 +2518,6 @@ public function getType() } } -class Google_Service_Calendar_ChannelParams extends Google_Model -{ -} - class Google_Service_Calendar_ColorDefinition extends Google_Model { protected $internal_gapi_mappings = array( @@ -2594,14 +2590,6 @@ public function getUpdated() } } -class Google_Service_Calendar_ColorsCalendar extends Google_Model -{ -} - -class Google_Service_Calendar_ColorsEvent extends Google_Model -{ -} - class Google_Service_Calendar_Error extends Google_Model { protected $internal_gapi_mappings = array( @@ -3237,14 +3225,6 @@ public function getShared() } } -class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model -{ -} - -class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model -{ -} - class Google_Service_Calendar_EventGadget extends Google_Model { protected $internal_gapi_mappings = array( @@ -3325,10 +3305,6 @@ public function getWidth() } } -class Google_Service_Calendar_EventGadgetPreferences extends Google_Model -{ -} - class Google_Service_Calendar_EventOrganizer extends Google_Model { protected $internal_gapi_mappings = array( @@ -3756,14 +3732,6 @@ public function getTimeMin() } } -class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model -{ -} - -class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model -{ -} - class Google_Service_Calendar_Setting extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/CivicInfo.php b/src/Google/Service/CivicInfo.php index 683cefe26..7f2817a81 100644 --- a/src/Google/Service/CivicInfo.php +++ b/src/Google/Service/CivicInfo.php @@ -1,6 +1,6 @@ 'representatives', 'httpMethod' => 'GET', 'parameters' => array( + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), 'includeOffices' => array( 'location' => 'query', 'type' => 'boolean', @@ -125,10 +129,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'representativeInfoByDivision' => array( 'path' => 'representatives/{ocdId}', @@ -257,6 +257,8 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R * * @param array $optParams Optional parameters. * + * @opt_param string address The address to look up. May only be specified if + * the field ocdId is not given in the URL. * @opt_param bool includeOffices Whether to return information about offices * and officials. If false, only the top-level district information will be * returned. @@ -266,8 +268,6 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R * @opt_param string roles A list of office roles to filter by. Only offices * fulfilling one of these roles will be returned. Divisions that don't contain * a matching office will not be returned. - * @opt_param string address The address to look up. May only be specified if - * the field ocdId is not given in the URL. * @return Google_Service_CivicInfo_RepresentativeInfoResponse */ public function representativeInfoByAddress($optParams = array()) @@ -1370,10 +1370,6 @@ public function getOfficials() } } -class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model -{ -} - class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection { protected $collection_key = 'officials'; @@ -1432,10 +1428,6 @@ public function getOfficials() } } -class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model -{ -} - class Google_Service_CivicInfo_SimpleAddressType extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Classroom.php b/src/Google/Service/Classroom.php index 96771d51d..aaca6ec49 100644 --- a/src/Google/Service/Classroom.php +++ b/src/Google/Service/Classroom.php @@ -1,6 +1,6 @@ 'v1/courses', 'httpMethod' => 'GET', 'parameters' => array( - 'teacherId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'studentId' => array( 'location' => 'query', 'type' => 'string', ), - 'studentId' => array( + 'teacherId' => array( 'location' => 'query', 'type' => 'string', ), @@ -120,6 +116,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/courses/{id}', @@ -189,14 +189,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -261,14 +261,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -329,14 +329,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -386,15 +386,11 @@ public function __construct(Google_Client $client) 'path' => 'v1/invitations', 'httpMethod' => 'GET', 'parameters' => array( - 'courseId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'userId' => array( 'location' => 'query', 'type' => 'string', ), - 'userId' => array( + 'courseId' => array( 'location' => 'query', 'type' => 'string', ), @@ -402,6 +398,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -508,21 +508,21 @@ public function get($id, $optParams = array()) * * @param array $optParams Optional parameters. * + * @opt_param string studentId Restricts returned courses to those having a + * student with the specified identifier. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of the + * user * the string literal `"me"`, indicating the requesting user * @opt_param string teacherId Restricts returned courses to those having a * teacher with the specified identifier. The identifier can be one of the * following: * the numeric identifier for the user * the email address of the * user * the string literal `"me"`, indicating the requesting user + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. The server may + * return fewer than the specified number of results. * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The * list request must be otherwise identical to the one that resulted in this * token. - * @opt_param string studentId Restricts returned courses to those having a - * student with the specified identifier. The identifier can be one of the - * following: * the numeric identifier for the user * the email address of the - * user * the string literal `"me"`, indicating the requesting user - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. The server may - * return fewer than the specified number of results. * @return Google_Service_Classroom_ListCoursesResponse */ public function listCourses($optParams = array()) @@ -643,13 +643,13 @@ public function delete($courseId, $alias, $optParams = array()) * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. The server may + * return fewer than the specified number of results. * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The * list request must be otherwise identical to the one that resulted in this * token. - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. The server may - * return fewer than the specified number of results. * @return Google_Service_Classroom_ListCourseAliasesResponse */ public function listCoursesAliases($courseId, $optParams = array()) @@ -754,12 +754,12 @@ public function get($courseId, $userId, $optParams = array()) * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of items to return. Zero means no + * maximum. The server may return fewer than the specified number of results. * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The * list request must be otherwise identical to the one that resulted in this * token. - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListStudentsResponse */ public function listCoursesStudents($courseId, $optParams = array()) @@ -860,12 +860,12 @@ public function get($courseId, $userId, $optParams = array()) * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of items to return. Zero means no + * maximum. The server may return fewer than the specified number of results. * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. The * list request must be otherwise identical to the one that resulted in this * token. - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListTeachersResponse */ public function listCoursesTeachers($courseId, $optParams = array()) @@ -974,18 +974,18 @@ public function get($id, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string courseId Restricts returned invitations to those for a - * course with the specified identifier. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. * @opt_param string userId Restricts returned invitations to those for a * specific user. The identifier can be one of the following: * the numeric * identifier for the user * the email address of the user * the string literal * `"me"`, indicating the requesting user + * @opt_param string courseId Restricts returned invitations to those for a + * course with the specified identifier. * @opt_param int pageSize Maximum number of items to return. Zero means no * maximum. The server may return fewer than the specified number of results. + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. The + * list request must be otherwise identical to the one that resulted in this + * token. * @return Google_Service_Classroom_ListInvitationsResponse */ public function listInvitations($optParams = array()) diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index cd07aa65b..d80058896 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( + 'aggregator' => array( 'location' => 'query', 'type' => 'string', ), - 'aggregator' => array( + 'count' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'labels' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'window' => array( + 'timespan' => array( 'location' => 'query', 'type' => 'string', ), - 'oldest' => array( + 'window' => array( 'location' => 'query', 'type' => 'string', ), @@ -206,32 +206,32 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( + 'aggregator' => array( 'location' => 'query', 'type' => 'string', ), - 'aggregator' => array( + 'count' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'labels' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'window' => array( + 'timespan' => array( 'location' => 'query', 'type' => 'string', ), - 'oldest' => array( + 'window' => array( 'location' => 'query', 'type' => 'string', ), @@ -344,37 +344,37 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * expressed as an RFC 3339 timestamp. * @param array $optParams Optional parameters. * - * @opt_param int count Maximum number of data points per page, which is used - * for pagination of results. - * @opt_param string timespan Length of the time interval to query, which is an - * alternative way to declare the interval: (youngest - timespan, youngest]. The - * timespan and oldest parameters should not be used together. Units: - s: - * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. - * Only one unit is allowed, for example: 2w3d is not allowed; you should use - * 17d instead. - * - * If neither oldest nor timespan is specified, the default time interval will - * be (youngest - 4 hours, youngest]. * @opt_param string aggregator The aggregation function that will reduce the * data points in each window to a single point. This parameter is only valid * for non-cumulative metrics with a value type of INT64 or DOUBLE. + * @opt_param int count Maximum number of data points per page, which is used + * for pagination of results. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - * key!~value: key regex does not match the value For example, to list all of * the time series descriptors for the region us-central1, you could specify: * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string oldest Start of the time interval (exclusive), which is + * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is + * specified, the default time interval will be (youngest - 4 hours, youngest] * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string timespan Length of the time interval to query, which is an + * alternative way to declare the interval: (youngest - timespan, youngest]. The + * timespan and oldest parameters should not be used together. Units: - s: + * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. + * Only one unit is allowed, for example: 2w3d is not allowed; you should use + * 17d instead. + * + * If neither oldest nor timespan is specified, the default time interval will + * be (youngest - 4 hours, youngest]. * @opt_param string window The sampling window. At most one data point will be * returned for each window in the requested time interval. This parameter is * only valid for non-cumulative metric types. Units: - m: minute - h: hour - * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: * 2w3d is not allowed; you should use 17d instead. - * @opt_param string oldest Start of the time interval (exclusive), which is - * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is - * specified, the default time interval will be (youngest - 4 hours, youngest] * @return Google_Service_CloudMonitoring_ListTimeseriesResponse */ public function listTimeseries($project, $metric, $youngest, $optParams = array()) @@ -434,37 +434,37 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * expressed as an RFC 3339 timestamp. * @param array $optParams Optional parameters. * - * @opt_param int count Maximum number of time series descriptors per page. Used - * for pagination. If not specified, count = 100. - * @opt_param string timespan Length of the time interval to query, which is an - * alternative way to declare the interval: (youngest - timespan, youngest]. The - * timespan and oldest parameters should not be used together. Units: - s: - * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. - * Only one unit is allowed, for example: 2w3d is not allowed; you should use - * 17d instead. - * - * If neither oldest nor timespan is specified, the default time interval will - * be (youngest - 4 hours, youngest]. * @opt_param string aggregator The aggregation function that will reduce the * data points in each window to a single point. This parameter is only valid * for non-cumulative metrics with a value type of INT64 or DOUBLE. + * @opt_param int count Maximum number of time series descriptors per page. Used + * for pagination. If not specified, count = 100. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - * key!~value: key regex does not match the value For example, to list all of * the time series descriptors for the region us-central1, you could specify: * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string oldest Start of the time interval (exclusive), which is + * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is + * specified, the default time interval will be (youngest - 4 hours, youngest] * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string timespan Length of the time interval to query, which is an + * alternative way to declare the interval: (youngest - timespan, youngest]. The + * timespan and oldest parameters should not be used together. Units: - s: + * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. + * Only one unit is allowed, for example: 2w3d is not allowed; you should use + * 17d instead. + * + * If neither oldest nor timespan is specified, the default time interval will + * be (youngest - 4 hours, youngest]. * @opt_param string window The sampling window. At most one data point will be * returned for each window in the requested time interval. This parameter is * only valid for non-cumulative metric types. Units: - m: minute - h: hour - * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: * 2w3d is not allowed; you should use 17d instead. - * @opt_param string oldest Start of the time interval (exclusive), which is - * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is - * specified, the default time interval will be (youngest - 4 hours, youngest] * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse */ public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) @@ -1089,10 +1089,6 @@ public function getValue() } } -class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model -{ -} - class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model { protected $internal_gapi_mappings = array( @@ -1149,10 +1145,6 @@ public function getTimeseries() } } -class Google_Service_CloudMonitoring_WriteTimeseriesRequestCommonLabels extends Google_Model -{ -} - class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php index d310a30c3..78c5ae8f4 100644 --- a/src/Google/Service/CloudUserAccounts.php +++ b/src/Google/Service/CloudUserAccounts.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -217,14 +217,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -333,11 +333,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', ), @@ -345,7 +341,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -443,14 +443,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -574,6 +574,7 @@ public function get($project, $operation, $optParams = array()) * match the entire field. * * For example, filter=name ne example-instance. + * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -584,7 +585,6 @@ public function get($project, $operation, $optParams = array()) * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string pageToken Specifies a page token to use. Use this parameter * if you want to list the next page of results. Set pageToken to the * nextPageToken returned by a previous list request. @@ -707,6 +707,7 @@ public function insert($project, Google_Service_CloudUserAccounts_Group $postBod * match the entire field. * * For example, filter=name ne example-instance. + * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -717,7 +718,6 @@ public function insert($project, Google_Service_CloudUserAccounts_Group $postBod * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string pageToken Specifies a page token to use. Use this parameter * if you want to list the next page of results. Set pageToken to the * nextPageToken returned by a previous list request. @@ -825,20 +825,6 @@ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optPar * requesting the views. * @param array $optParams Optional parameters. * - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. @@ -852,6 +838,20 @@ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optPar * match the entire field. * * For example, filter=name ne example-instance. + * @opt_param string maxResults Maximum count of results to be returned. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Use this parameter + * if you want to list the next page of results. Set pageToken to the + * nextPageToken returned by a previous list request. * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse */ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) @@ -972,6 +972,7 @@ public function insert($project, Google_Service_CloudUserAccounts_User $postBody * match the entire field. * * For example, filter=name ne example-instance. + * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -982,7 +983,6 @@ public function insert($project, Google_Service_CloudUserAccounts_User $postBody * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string pageToken Specifies a page token to use. Use this parameter * if you want to list the next page of results. Set pageToken to the * nextPageToken returned by a previous list request. diff --git a/src/Google/Service/Cloudbilling.php b/src/Google/Service/Cloudbilling.php index bdaa04f3e..21d5fd7df 100644 --- a/src/Google/Service/Cloudbilling.php +++ b/src/Google/Service/Cloudbilling.php @@ -1,6 +1,6 @@ 'v1/billingAccounts', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -101,14 +101,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -184,12 +184,12 @@ public function get($name, $optParams = array()) * * @param array $optParams Optional parameters. * + * @opt_param int pageSize Requested page size. The maximum page size is 100; + * this is also the default. * @opt_param string pageToken A token identifying a page of results to return. * This should be a `next_page_token` value returned from a previous * `ListBillingAccounts` call. If unspecified, the first page of results is * returned. - * @opt_param int pageSize Requested page size. The maximum page size is 100; - * this is also the default. * @return Google_Service_Cloudbilling_ListBillingAccountsResponse */ public function listBillingAccounts($optParams = array()) @@ -222,12 +222,12 @@ class Google_Service_Cloudbilling_BillingAccountsProjects_Resource extends Googl * `billingAccounts/012345-567890-ABCDEF`. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Requested page size. The maximum page size is 100; + * this is also the default. * @opt_param string pageToken A token identifying a page of results to be * returned. This should be a `next_page_token` value returned from a previous * `ListProjectBillingInfo` call. If unspecified, the first page of results is * returned. - * @opt_param int pageSize Requested page size. The maximum page size is 100; - * this is also the default. * @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse */ public function listBillingAccountsProjects($name, $optParams = array()) diff --git a/src/Google/Service/Cloudbuild.php b/src/Google/Service/Cloudbuild.php new file mode 100644 index 000000000..6d0f29a8f --- /dev/null +++ b/src/Google/Service/Cloudbuild.php @@ -0,0 +1,741 @@ + + * The Google Cloud Container Builder API lets you build container images in the + * cloud.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_Cloudbuild extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $operations; + public $projects_builds; + + + /** + * Constructs the internal representation of the Cloudbuild service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudbuild.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudbuild'; + + $this->operations = new Google_Service_Cloudbuild_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_builds = new Google_Service_Cloudbuild_ProjectsBuilds_Resource( + $this, + $this->serviceName, + 'builds', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/projects/{projectId}/builds/{id}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v1/projects/{projectId}/builds', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/projects/{projectId}/builds/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/builds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $operations = $cloudbuildService->operations; + * + */ +class Google_Service_Cloudbuild_Operations_Resource extends Google_Service_Resource +{ + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbuild_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudbuild_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding below allows API services to override the binding to + * use different resource name schemes, such as `users/operations`. + * (operations.listOperations) + * + * @param string $name The name of the operation collection. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_Cloudbuild_ListOperationsResponse + */ + public function listOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudbuild_ListOperationsResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $projects = $cloudbuildService->projects; + * + */ +class Google_Service_Cloudbuild_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "builds" collection of methods. + * Typical usage is: + * + * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $builds = $cloudbuildService->builds; + * + */ +class Google_Service_Cloudbuild_ProjectsBuilds_Resource extends Google_Service_Resource +{ + + /** + * Cancels a requested build in progress. (builds.cancel) + * + * @param string $projectId ID of the project. + * @param string $id ID of the build. + * @param Google_CancelBuildRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbuild_Build + */ + public function cancel($projectId, $id, Google_Service_Cloudbuild_CancelBuildRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Cloudbuild_Build"); + } + + /** + * Starts a build with the specified configuration. + * + * The long-running Operation returned by this method will include the ID of the + * build, which can be passed to GetBuild to determine its status (e.g., success + * or failure). (builds.create) + * + * @param string $projectId ID of the project. + * @param Google_Build $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbuild_Operation + */ + public function create($projectId, Google_Service_Cloudbuild_Build $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Cloudbuild_Operation"); + } + + /** + * Returns information about a previously requested build. + * + * The Build that is returned includes its status (e.g., success or failure, or + * in-progress), and timing information. (builds.get) + * + * @param string $projectId ID of the project. + * @param string $id ID of the build. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudbuild_Build + */ + public function get($projectId, $id, $optParams = array()) + { + $params = array('projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudbuild_Build"); + } + + /** + * Lists previously requested builds. + * + * Previously requested builds may still be in-progress, or may have finished + * successfully or unsuccessfully. (builds.listProjectsBuilds) + * + * @param string $projectId ID of the project. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Number of results to return in the list. + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @return Google_Service_Cloudbuild_ListBuildsResponse + */ + public function listProjectsBuilds($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudbuild_ListBuildsResponse"); + } +} + + + + +class Google_Service_Cloudbuild_Build extends Google_Collection +{ + protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $finishTime; + public $id; + public $images; + public $logsBucket; + public $projectId; + protected $resultsType = 'Google_Service_Cloudbuild_Results'; + protected $resultsDataType = ''; + protected $sourceType = 'Google_Service_Cloudbuild_Source'; + protected $sourceDataType = ''; + public $startTime; + public $status; + protected $stepsType = 'Google_Service_Cloudbuild_BuildStep'; + protected $stepsDataType = 'array'; + public $timeout; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setFinishTime($finishTime) + { + $this->finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setImages($images) + { + $this->images = $images; + } + public function getImages() + { + return $this->images; + } + public function setLogsBucket($logsBucket) + { + $this->logsBucket = $logsBucket; + } + public function getLogsBucket() + { + return $this->logsBucket; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setResults(Google_Service_Cloudbuild_Results $results) + { + $this->results = $results; + } + public function getResults() + { + return $this->results; + } + public function setSource(Google_Service_Cloudbuild_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } + 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 setSteps($steps) + { + $this->steps = $steps; + } + public function getSteps() + { + return $this->steps; + } + public function setTimeout($timeout) + { + $this->timeout = $timeout; + } + public function getTimeout() + { + return $this->timeout; + } +} + +class Google_Service_Cloudbuild_BuildOperationMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $buildType = 'Google_Service_Cloudbuild_Build'; + protected $buildDataType = ''; + + + public function setBuild(Google_Service_Cloudbuild_Build $build) + { + $this->build = $build; + } + public function getBuild() + { + return $this->build; + } +} + +class Google_Service_Cloudbuild_BuildStep extends Google_Collection +{ + protected $collection_key = 'env'; + protected $internal_gapi_mappings = array( + ); + public $args; + public $dir; + public $env; + public $name; + + + public function setArgs($args) + { + $this->args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setDir($dir) + { + $this->dir = $dir; + } + public function getDir() + { + return $this->dir; + } + public function setEnv($env) + { + $this->env = $env; + } + public function getEnv() + { + return $this->env; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Cloudbuild_BuiltImage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $digest; + public $name; + + + public function setDigest($digest) + { + $this->digest = $digest; + } + public function getDigest() + { + return $this->digest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Cloudbuild_CancelBuildRequest extends Google_Model +{ +} + +class Google_Service_Cloudbuild_ListBuildsResponse extends Google_Collection +{ + protected $collection_key = 'builds'; + protected $internal_gapi_mappings = array( + ); + protected $buildsType = 'Google_Service_Cloudbuild_Build'; + protected $buildsDataType = 'array'; + public $nextPageToken; + + + public function setBuilds($builds) + { + $this->builds = $builds; + } + public function getBuilds() + { + return $this->builds; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Cloudbuild_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Cloudbuild_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Cloudbuild_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Cloudbuild_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Cloudbuild_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Cloudbuild_Results extends Google_Collection +{ + protected $collection_key = 'images'; + protected $internal_gapi_mappings = array( + ); + protected $imagesType = 'Google_Service_Cloudbuild_BuiltImage'; + protected $imagesDataType = 'array'; + + + public function setImages($images) + { + $this->images = $images; + } + public function getImages() + { + return $this->images; + } +} + +class Google_Service_Cloudbuild_Source extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $storageSourceType = 'Google_Service_Cloudbuild_StorageSource'; + protected $storageSourceDataType = ''; + + + public function setStorageSource(Google_Service_Cloudbuild_StorageSource $storageSource) + { + $this->storageSource = $storageSource; + } + public function getStorageSource() + { + return $this->storageSource; + } +} + +class Google_Service_Cloudbuild_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Cloudbuild_StorageSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bucket; + public $object; + + + public function setBucket($bucket) + { + $this->bucket = $bucket; + } + public function getBucket() + { + return $this->bucket; + } + public function setObject($object) + { + $this->object = $object; + } + public function getObject() + { + return $this->object; + } +} diff --git a/src/Google/Service/Clouddebugger.php b/src/Google/Service/Clouddebugger.php index e9cda4495..55218933f 100644 --- a/src/Google/Service/Clouddebugger.php +++ b/src/Google/Service/Clouddebugger.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), + 'successOnTimeout' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', @@ -185,7 +189,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'stripResults' => array( + 'includeInactive' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -193,7 +197,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'includeInactive' => array( + 'stripResults' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -244,13 +248,13 @@ class Google_Service_Clouddebugger_ControllerDebuggees_Resource extends Google_S { /** - * Registers the debuggee with the controller. All agents should call this API - * with the same request content to get back the same stable 'debuggee_id'. - * Agents should call this API again whenever ListActiveBreakpoints or - * UpdateActiveBreakpoint return the error google.rpc.Code.NOT_FOUND. It allows - * the server to disable the agent or recover from any registration loss. If the - * debuggee is disabled server, the response will have is_disabled' set to true. - * (debuggees.register) + * Registers the debuggee with the controller service. All agents attached to + * the same application should call this method with the same request content to + * get back the same stable `debuggee_id`. Agents should call this method again + * whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method. + * This allows the controller service to disable the agent or recover from any + * data loss. If the debuggee is disabled by the server, the response will have + * `is_disabled` set to `true`. (debuggees.register) * * @param Google_RegisterDebuggeeRequest $postBody * @param array $optParams Optional parameters. @@ -276,15 +280,15 @@ class Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource exten { /** - * Returns the list of all active breakpoints for the specified debuggee. The - * breakpoint specification (location, condition, and expression fields) is - * semantically immutable, although the field values may change. For example, an - * agent may update the location line number to reflect the actual line the - * breakpoint was set to, but that doesn't change the breakpoint semantics. - * Thus, an agent does not need to check if a breakpoint has changed when it - * encounters the same breakpoint on a successive call. Moreover, an agent - * should remember breakpoints that are complete until the controller removes - * them from the active list to avoid setting those breakpoints again. + * Returns the list of all active breakpoints for the debuggee. The breakpoint + * specification (location, condition, and expression fields) is semantically + * immutable, although the field values may change. For example, an agent may + * update the location line number to reflect the actual line where the + * breakpoint was set, but this doesn't change the breakpoint semantics. This + * means that an agent does not need to check if a breakpoint has changed when + * it encounters the same breakpoint on a successive call. Moreover, an agent + * should remember the breakpoints that are completed until the controller + * removes them from the active list to avoid setting those breakpoints again. * (breakpoints.listControllerDebuggeesBreakpoints) * * @param string $debuggeeId Identifies the debuggee. @@ -293,8 +297,12 @@ class Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource exten * @opt_param string waitToken A wait token that, if specified, blocks the * method call until the list of active breakpoints has changed, or a server * selected timeout has expired. The value should be set from the last returned - * response. The error code google.rpc.Code.ABORTED is returned on wait timeout - * (which does not require the agent to re-register with the server) + * response. + * @opt_param bool successOnTimeout If set to `true`, returns + * `google.rpc.Code.OK` status and sets the `wait_expired` response field to + * `true` when the server-selected timeout has expired (recommended). If set to + * `false`, returns `google.rpc.Code.ABORTED` status when the server-selected + * timeout has expired (deprecated). * @return Google_Service_Clouddebugger_ListActiveBreakpointsResponse */ public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = array()) @@ -305,13 +313,13 @@ public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = arr } /** - * Updates the breakpoint state or mutable fields. The entire Breakpoint - * protobuf must be sent back to the controller. Updates to active breakpoint + * Updates the breakpoint state or mutable fields. The entire Breakpoint message + * must be sent back to the controller service. Updates to active breakpoint * fields are only allowed if the new value does not change the breakpoint - * specification. Updates to the 'location', 'condition' and 'expression' fields - * should not alter the breakpoint semantics. They are restricted to changes - * such as canonicalizing a value or snapping the location to the correct line - * of code. (breakpoints.update) + * specification. Updates to the `location`, `condition` and `expression` fields + * should not alter the breakpoint semantics. These may only make changes such + * as canonicalizing a value or snapping the location to the correct line of + * code. (breakpoints.update) * * @param string $debuggeeId Identifies the debuggee being debugged. * @param string $id Breakpoint identifier, unique in the scope of the debuggee. @@ -356,10 +364,10 @@ class Google_Service_Clouddebugger_DebuggerDebuggees_Resource extends Google_Ser * * @param array $optParams Optional parameters. * - * @opt_param string project Set to the project number of the Google Cloud - * Platform to list the debuggees that are part of that project. - * @opt_param bool includeInactive When set to true the result includes all - * debuggees, otherwise only debugees that are active. + * @opt_param string project Project number of a Google Cloud project whose + * debuggees to list. + * @opt_param bool includeInactive When set to `true`, the result includes all + * debuggees. Otherwise, the result includes only debuggees that are active. * @return Google_Service_Clouddebugger_ListDebuggeesResponse */ public function listDebuggerDebuggees($optParams = array()) @@ -384,8 +392,8 @@ class Google_Service_Clouddebugger_DebuggerDebuggeesBreakpoints_Resource extends /** * Deletes the breakpoint from the debuggee. (breakpoints.delete) * - * @param string $debuggeeId The debuggee id to delete the breakpoint from. - * @param string $breakpointId The breakpoint to delete. + * @param string $debuggeeId ID of the debuggee whose breakpoint to delete. + * @param string $breakpointId ID of the breakpoint to delete. * @param array $optParams Optional parameters. * @return Google_Service_Clouddebugger_Empty */ @@ -399,8 +407,8 @@ public function delete($debuggeeId, $breakpointId, $optParams = array()) /** * Gets breakpoint information. (breakpoints.get) * - * @param string $debuggeeId The debuggee id to get the breakpoint from. - * @param string $breakpointId The breakpoint to get. + * @param string $debuggeeId ID of the debuggee whose breakpoint to get. + * @param string $breakpointId ID of the breakpoint to get. * @param array $optParams Optional parameters. * @return Google_Service_Clouddebugger_GetBreakpointResponse */ @@ -412,27 +420,28 @@ public function get($debuggeeId, $breakpointId, $optParams = array()) } /** - * Lists all breakpoints of the debuggee that the user has access to. + * Lists all breakpoints for the debuggee. * (breakpoints.listDebuggerDebuggeesBreakpoints) * - * @param string $debuggeeId The debuggee id to list breakpoint from. + * @param string $debuggeeId ID of the debuggee whose breakpoints to list. * @param array $optParams Optional parameters. * - * @opt_param bool includeAllUsers When set to true the response includes the - * list of breakpoints set by any user, otherwise only breakpoints set by the - * caller. - * @opt_param bool stripResults When set to true the response breakpoints will - * be stripped of the results fields: stack_frames, evaluated_expressions and - * variable_table. + * @opt_param bool includeAllUsers When set to `true`, the response includes the + * list of breakpoints set by any user. Otherwise, it includes only breakpoints + * set by the caller. + * @opt_param bool includeInactive When set to `true`, the response includes + * active and inactive breakpoints. Otherwise, it includes only active + * breakpoints. * @opt_param string action.value Only breakpoints with the specified action * will pass the filter. - * @opt_param bool includeInactive When set to true the response includes active - * and inactive breakpoints, otherwise only active breakpoints are returned. + * @opt_param bool stripResults When set to `true`, the response breakpoints are + * stripped of the results fields: `stack_frames`, `evaluated_expressions` and + * `variable_table`. * @opt_param string waitToken A wait token that, if specified, blocks the call * until the breakpoints list has changed, or a server selected timeout has - * expired. The value should be set from the last response to ListBreakpoints. - * The error code ABORTED is returned on wait timeout, which should be called - * again with the same wait_token. + * expired. The value should be set from the last response. The error code + * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be + * called again with the same `wait_token`. * @return Google_Service_Clouddebugger_ListBreakpointsResponse */ public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array()) @@ -445,7 +454,8 @@ public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array /** * Sets the breakpoint to the debuggee. (breakpoints.set) * - * @param string $debuggeeId The debuggee id to set the breakpoint to. + * @param string $debuggeeId ID of the debuggee where the breakpoint is to be + * set. * @param Google_Breakpoint $postBody * @param array $optParams Optional parameters. * @return Google_Service_Clouddebugger_SetBreakpointResponse @@ -461,6 +471,32 @@ public function set($debuggeeId, Google_Service_Clouddebugger_Breakpoint $postBo +class Google_Service_Clouddebugger_AliasContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + + + 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_Clouddebugger_Breakpoint extends Google_Collection { protected $collection_key = 'variableTable'; @@ -614,12 +650,22 @@ class Google_Service_Clouddebugger_CloudRepoSourceContext extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $aliasContextType = 'Google_Service_Clouddebugger_AliasContext'; + protected $aliasContextDataType = ''; public $aliasName; protected $repoIdType = 'Google_Service_Clouddebugger_RepoId'; protected $repoIdDataType = ''; public $revisionId; + public function setAliasContext(Google_Service_Clouddebugger_AliasContext $aliasContext) + { + $this->aliasContext = $aliasContext; + } + public function getAliasContext() + { + return $this->aliasContext; + } public function setAliasName($aliasName) { $this->aliasName = $aliasName; @@ -707,6 +753,8 @@ class Google_Service_Clouddebugger_Debuggee extends Google_Collection ); public $agentVersion; public $description; + protected $extSourceContextsType = 'Google_Service_Clouddebugger_ExtendedSourceContext'; + protected $extSourceContextsDataType = 'array'; public $id; public $isDisabled; public $isInactive; @@ -735,6 +783,14 @@ public function getDescription() { return $this->description; } + public function setExtSourceContexts($extSourceContexts) + { + $this->extSourceContexts = $extSourceContexts; + } + public function getExtSourceContexts() + { + return $this->extSourceContexts; + } public function setId($id) { $this->id = $id; @@ -801,12 +857,35 @@ public function getUniquifier() } } -class Google_Service_Clouddebugger_DebuggeeLabels extends Google_Model +class Google_Service_Clouddebugger_Empty extends Google_Model { } -class Google_Service_Clouddebugger_Empty extends Google_Model +class Google_Service_Clouddebugger_ExtendedSourceContext extends Google_Model { + protected $internal_gapi_mappings = array( + ); + protected $contextType = 'Google_Service_Clouddebugger_SourceContext'; + protected $contextDataType = ''; + public $labels; + + + public function setContext(Google_Service_Clouddebugger_SourceContext $context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } } class Google_Service_Clouddebugger_FormatMessage extends Google_Collection @@ -840,12 +919,22 @@ class Google_Service_Clouddebugger_GerritSourceContext extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $aliasContextType = 'Google_Service_Clouddebugger_AliasContext'; + protected $aliasContextDataType = ''; public $aliasName; public $gerritProject; public $hostUri; public $revisionId; + public function setAliasContext(Google_Service_Clouddebugger_AliasContext $aliasContext) + { + $this->aliasContext = $aliasContext; + } + public function getAliasContext() + { + return $this->aliasContext; + } public function setAliasName($aliasName) { $this->aliasName = $aliasName; @@ -932,6 +1021,7 @@ class Google_Service_Clouddebugger_ListActiveBreakpointsResponse extends Google_ protected $breakpointsType = 'Google_Service_Clouddebugger_Breakpoint'; protected $breakpointsDataType = 'array'; public $nextWaitToken; + public $waitExpired; public function setBreakpoints($breakpoints) @@ -950,6 +1040,14 @@ public function getNextWaitToken() { return $this->nextWaitToken; } + public function setWaitExpired($waitExpired) + { + $this->waitExpired = $waitExpired; + } + public function getWaitExpired() + { + return $this->waitExpired; + } } class Google_Service_Clouddebugger_ListBreakpointsResponse extends Google_Collection @@ -1296,6 +1394,7 @@ class Google_Service_Clouddebugger_Variable extends Google_Collection public $name; protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; protected $statusDataType = ''; + public $type; public $value; public $varTableIndex; @@ -1324,6 +1423,14 @@ public function getStatus() { return $this->status; } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } public function setValue($value) { $this->value = $value; diff --git a/src/Google/Service/Cloudlatencytest.php b/src/Google/Service/Cloudlatencytest.php index 3af58bb8b..09254ffd7 100644 --- a/src/Google/Service/Cloudlatencytest.php +++ b/src/Google/Service/Cloudlatencytest.php @@ -1,6 +1,6 @@ * The Google Cloud Resource Manager API provides methods for creating, reading, - * and updating of project metadata.

    + * and updating project metadata.

    * *

    * For more information about this service, see the API @@ -34,6 +34,9 @@ class Google_Service_Cloudresourcemanager extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; public $organizations; public $projects; @@ -82,17 +85,17 @@ public function __construct(Google_Client $client) 'path' => 'v1beta1/organizations', 'httpMethod' => 'GET', 'parameters' => array( - 'filter' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'filter' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'setIamPolicy' => array( @@ -173,10 +176,6 @@ public function __construct(Google_Client $client) 'path' => 'v1beta1/projects', 'httpMethod' => 'GET', 'parameters' => array( - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -185,6 +184,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setIamPolicy' => array( 'path' => 'v1beta1/projects/{resource}:setIamPolicy', @@ -246,7 +249,8 @@ class Google_Service_Cloudresourcemanager_Organizations_Resource extends Google_ { /** - * Fetches an Organization resource by id. (organizations.get) + * Fetches an Organization resource identified by the specified + * `organization_id`. (organizations.get) * * @param string $organizationId The id of the Organization resource to fetch. * @param array $optParams Optional parameters. @@ -260,12 +264,14 @@ public function get($organizationId, $optParams = array()) } /** - * Gets the access control policy for a Organization resource. May be empty if + * Gets the access control policy for an Organization resource. May be empty if * no such policy or resource exists. (organizations.getIamPolicy) * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * `projects/{project}`. + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `getIamPolicy` + * documentation. * @param Google_GetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Policy @@ -278,24 +284,27 @@ public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetI } /** - * Query Organization resources. (organizations.listOrganizations) + * Lists Organization resources that are visible to the user and satisfy the + * specified filter. This method returns Organizations in an unspecified order. + * New Organizations do not necessarily appear at the end of the list. + * (organizations.listOrganizations) * * @param array $optParams Optional parameters. * + * @opt_param int pageSize The maximum number of Organizations to return in the + * response. This field is optional. + * @opt_param string pageToken A pagination token returned from a previous call + * to `ListOrganizations` that indicates from where listing should continue. + * This field is optional. * @opt_param string filter An optional query string used to filter the - * Organizations to be return in the response. Filter rules are case- - * insensitive. Organizations may be filtered by `owner.directoryCustomerId` or - * by `domain`, where the domain is a Google for Work domain, for example: + * Organizations to return in the response. Filter rules are case-insensitive. + * Organizations may be filtered by `owner.directoryCustomerId` or by `domain`, + * where the domain is a Google for Work domain, for example: * |Filter|Description| |------|-----------| * |owner.directorycustomerid:123456789|Organizations with * `owner.directory_customer_id` equal to `123456789`.| * |domain:google.com|Organizations corresponding to the domain `google.com`.| * This field is optional. - * @opt_param string pageToken A pagination token returned from a previous call - * to ListOrganizations that indicates from where listing should continue. This - * field is optional. - * @opt_param int pageSize The maximum number of Organizations to return in the - * response. This field is optional. * @return Google_Service_Cloudresourcemanager_ListOrganizationsResponse */ public function listOrganizations($optParams = array()) @@ -306,12 +315,14 @@ public function listOrganizations($optParams = array()) } /** - * Sets the access control policy on a Organization resource. Replaces any + * Sets the access control policy on an Organization resource. Replaces any * existing policy. (organizations.setIamPolicy) * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `setIamPolicy` + * documentation. * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Policy @@ -327,9 +338,11 @@ public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetI * Returns permissions that a caller has on the specified Organization. * (organizations.testIamPermissions) * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}`. + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `testIamPermissions` + * documentation. * @param Google_TestIamPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse @@ -342,7 +355,8 @@ public function testIamPermissions($resource, Google_Service_Cloudresourcemanage } /** - * Updates an Organization resource. (organizations.update) + * Updates an Organization resource identified by the specified + * `organization_id`. (organizations.update) * * @param string $organizationId An immutable id for the Organization that is * assigned on creation. This should be omitted when creating a new @@ -371,10 +385,10 @@ class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Servi { /** - * Creates a project resource. Initially, the project resource is owned by its + * Creates a Project resource. Initially, the Project resource is owned by its * creator exclusively. The creator can later grant permission to others to read - * or update the project. Several APIs are activated automatically for the - * project, including Google Cloud Storage. (projects.create) + * or update the Project. Several APIs are activated automatically for the + * Project, including Google Cloud Storage. (projects.create) * * @param Google_Project $postBody * @param array $optParams Optional parameters. @@ -388,31 +402,20 @@ public function create(Google_Service_Cloudresourcemanager_Project $postBody, $o } /** - * Marks the project identified by the specified `project_id` (for example, `my- - * project-123`) for deletion. This method will only affect the project if the - * following criteria are met: + The project does not have a billing account - * associated with it. + The project has a lifecycle state of - * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. - * This method changes the project's lifecycle state from - * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] - * to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.Lifecycle - * State.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which - * point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresour - * cemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the - * deletion completes, you can check the lifecycle state checked by retrieving - * the project with [GetProject] - * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], - * and the project remains visible to [ListProjects] [google.cloudresourcemanage - * r.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot - * update the project. After the deletion completes, the project is not - * retrievable by the [GetProject] - * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] - * and [ListProjects] - * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] - * methods. The caller must have modify permissions for this project. - * (projects.delete) + * Marks the Project identified by the specified `project_id` (for example, `my- + * project-123`) for deletion. This method will only affect the Project if the + * following criteria are met: + The Project does not have a billing account + * associated with it. + The Project has a lifecycle state of ACTIVE. This + * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. + * The deletion starts at an unspecified time, at which point the lifecycle + * state changes to DELETE_IN_PROGRESS. Until the deletion completes, you can + * check the lifecycle state checked by retrieving the Project with GetProject, + * and the Project remains visible to ListProjects. However, you cannot update + * the project. After the deletion completes, the Project is not retrievable by + * the GetProject and ListProjects methods. The caller must have modify + * permissions for this Project. (projects.delete) * - * @param string $projectId The project ID (for example, `foo-bar-123`). + * @param string $projectId The Project ID (for example, `foo-bar-123`). * Required. * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Empty @@ -425,11 +428,11 @@ public function delete($projectId, $optParams = array()) } /** - * Retrieves the project identified by the specified `project_id` (for example, - * `my-project-123`). The caller must have read permissions for this project. + * Retrieves the Project identified by the specified `project_id` (for example, + * `my-project-123`). The caller must have read permissions for this Project. * (projects.get) * - * @param string $projectId The project ID (for example, `my-project-123`). + * @param string $projectId The Project ID (for example, `my-project-123`). * Required. * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Project @@ -442,12 +445,15 @@ public function get($projectId, $optParams = array()) } /** - * Returns the IAM access control policy for specified project. + * Returns the IAM access control policy for the specified Project. Permission + * is denied if the policy or the resource does not exist. * (projects.getIamPolicy) * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * `projects/{project}`. + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `getIamPolicy` + * documentation. * @param Google_GetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Policy @@ -460,12 +466,17 @@ public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetI } /** - * Lists projects that are visible to the user and satisfy the specified filter. - * This method returns projects in an unspecified order. New projects do not + * Lists Projects that are visible to the user and satisfy the specified filter. + * This method returns Projects in an unspecified order. New Projects do not * necessarily appear at the end of the list. (projects.listProjects) * * @param array $optParams Optional parameters. * + * @opt_param string pageToken A pagination token returned from a previous call + * to ListProjects that indicates from where listing should continue. Optional. + * @opt_param int pageSize The maximum number of Projects to return in the + * response. The server can return fewer Projects than requested. If + * unspecified, server picks an appropriate default. Optional. * @opt_param string filter An expression for filtering the results of the * request. Filter rules are case insensitive. The fields eligible for filtering * are: + `name` + `id` + labels.key where *key* is the name of a label Some @@ -476,13 +487,6 @@ public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetI * `color`.| |labels.color:red|The project's label `color` has the value `red`.| * |labels.color:red label.size:big|The project's label `color` has the value * `red` and its label `size` has the value `big`. Optional. - * @opt_param string pageToken A pagination token returned from a previous call - * to ListProject that indicates from where listing should continue. Note: - * pagination is not yet supported; the server ignores this field. Optional. - * @opt_param int pageSize The maximum number of Projects to return in the - * response. The server can return fewer projects than requested. If - * unspecified, server picks an appropriate default. Note: pagination is not yet - * supported; the server ignores this field. Optional. * @return Google_Service_Cloudresourcemanager_ListProjectsResponse */ public function listProjects($optParams = array()) @@ -493,14 +497,25 @@ public function listProjects($optParams = array()) } /** - * Sets the IAM access control policy for the specified project. We do not - * currently support 'domain:' prefixed members in a Binding of a Policy. - * Calling this method requires enabling the App Engine Admin API. - * (projects.setIamPolicy) + * Sets the IAM access control policy for the specified Project. Replaces any + * existing policy. The following constraints apply when using `setIamPolicy()`: + * + Project currently supports only `user:{emailid}` and + * `serviceAccount:{emailid}` members in a `Binding` of a `Policy`. + To be + * added as an `owner`, a user must be invited via Cloud Platform console and + * must accept the invitation. + Members cannot be added to more than one role + * in the same policy. + There must be at least one owner who has accepted the + * Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to + * to remove the last ToS-accepted owner from the policy will fail. + Calling + * this method requires enabling the App Engine Admin API. Note: Removing + * service accounts from policies or changing their roles can render services + * completely inoperable. It is important to understand how the service account + * is being used before removing or updating its roles. (projects.setIamPolicy) * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `setIamPolicy` + * documentation. * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Policy @@ -513,12 +528,14 @@ public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetI } /** - * Tests the specified permissions against the IAM access control policy for the - * specified project. (projects.testIamPermissions) + * Returns permissions that a caller has on the specified Project. + * (projects.testIamPermissions) * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}`. + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `testIamPermissions` + * documentation. * @param Google_TestIamPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse @@ -531,14 +548,11 @@ public function testIamPermissions($resource, Google_Service_Cloudresourcemanage } /** - * Restores the project identified by the specified `project_id` (for example, - * `my-project-123`). You can only use this method for a project that has a - * lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v - * 1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated - * by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.pro - * jects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be - * restored. The caller must have modify permissions for this project. - * (projects.undelete) + * Restores the Project identified by the specified `project_id` (for example, + * `my-project-123`). You can only use this method for a Project that has a + * lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a + * lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The + * caller must have modify permissions for this Project. (projects.undelete) * * @param string $projectId The project ID (for example, `foo-bar-123`). * Required. @@ -553,9 +567,9 @@ public function undelete($projectId, $optParams = array()) } /** - * Updates the attributes of the project identified by the specified + * Updates the attributes of the Project identified by the specified * `project_id` (for example, `my-project-123`). The caller must have modify - * permissions for this project. (projects.update) + * permissions for this Project. (projects.update) * * @param string $projectId The project ID (for example, `my-project-123`). * Required. @@ -669,12 +683,21 @@ class Google_Service_Cloudresourcemanager_Organization extends Google_Model { protected $internal_gapi_mappings = array( ); + public $creationTime; public $displayName; public $organizationId; protected $ownerType = 'Google_Service_Cloudresourcemanager_OrganizationOwner'; protected $ownerDataType = ''; + public function setCreationTime($creationTime) + { + $this->creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -827,10 +850,6 @@ public function getProjectNumber() } } -class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model -{ -} - class Google_Service_Cloudresourcemanager_ResourceId extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Cloudtrace.php b/src/Google/Service/Cloudtrace.php index fe4857f8f..32ecb1412 100644 --- a/src/Google/Service/Cloudtrace.php +++ b/src/Google/Service/Cloudtrace.php @@ -1,6 +1,6 @@ - * The Google Cloud Trace API provides services for reading and writing runtime - * trace data for Cloud applications.

    + * The Cloud Trace API allows you to send traces to and retrieve traces from + * Google Cloud Trace.

    * *

    * For more information about this service, see the API @@ -37,7 +37,6 @@ class Google_Service_Cloudtrace extends Google_Service public $projects; public $projects_traces; - public $v1; /** @@ -103,7 +102,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'view' => array( 'location' => 'query', 'type' => 'string', ), @@ -111,10 +110,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -127,40 +122,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->v1 = new Google_Service_Cloudtrace_V1_Resource( - $this, - $this->serviceName, - 'v1', - array( - 'methods' => array( - 'getDiscovery' => array( - 'path' => 'v1/discovery', - 'httpMethod' => 'GET', - 'parameters' => array( - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'args' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'format' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), @@ -185,12 +151,14 @@ class Google_Service_Cloudtrace_Projects_Resource extends Google_Service_Resourc { /** - * Updates the existing traces specified by PatchTracesRequest and inserts the - * new traces. Any existing trace or span fields included in an update are - * overwritten by the update, and any additional fields in an update are merged - * with the existing trace data. (projects.patchTraces) + * Sends new traces to Cloud Trace or updates existing traces. If the ID of a + * trace that you send matches that of an existing trace, any fields in the + * existing trace and its spans are overwritten by the provided values, and any + * new fields provided are merged with the existing trace data. If the ID does + * not match, a new trace is created. (projects.patchTraces) * - * @param string $projectId The project id of the trace to patch. + * @param string $projectId ID of the Cloud project where the trace data is + * stored. * @param Google_Traces $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudtrace_Empty @@ -215,10 +183,11 @@ class Google_Service_Cloudtrace_ProjectsTraces_Resource extends Google_Service_R { /** - * Gets one trace by id. (traces.get) + * Gets a single trace by its ID. (traces.get) * - * @param string $projectId The project id of the trace to return. - * @param string $traceId The trace id of the trace to return. + * @param string $projectId ID of the Cloud project where the trace data is + * stored. + * @param string $traceId ID of the trace to return. * @param array $optParams Optional parameters. * @return Google_Service_Cloudtrace_Trace */ @@ -230,27 +199,32 @@ public function get($projectId, $traceId, $optParams = array()) } /** - * List traces matching the filter expression. (traces.listProjectsTraces) + * Returns of a list of traces that match the specified filter conditions. + * (traces.listProjectsTraces) * - * @param string $projectId The stringified-version of the project id. + * @param string $projectId ID of the Cloud project where the trace data is + * stored. * @param array $optParams Optional parameters. * - * @opt_param string orderBy The trace field used to establish the order of - * traces returned by the ListTraces method. Possible options are: trace_id name - * (name field of root span) duration (different between end_time and start_time - * fields of root span) start (start_time field of root span) Descending order - * can be specified by appending "desc" to the sort field: name desc Only one - * sort field is permitted, though this may change in the future. - * @opt_param int pageSize Maximum number of topics to return. If not specified - * or <= 0, the implementation will select a reasonable value. The implemenation - * may always return fewer than the requested page_size. + * @opt_param string view Type of data returned for traces in the list. + * Optional. Default is `MINIMAL`. + * @opt_param int pageSize Maximum number of traces to return. If not specified + * or <= 0, the implementation selects a reasonable value. The implementation + * may return fewer traces than the requested page size. Optional. + * @opt_param string pageToken Token identifying the page of results to return. + * If provided, use the value of the `next_page_token` field from a previous + * request. Optional. + * @opt_param string startTime End of the time interval (inclusive) during which + * the trace data was collected from the application. + * @opt_param string endTime Start of the time interval (inclusive) during which + * the trace data was collected from the application. * @opt_param string filter An optional filter for the request. - * @opt_param string pageToken The token identifying the page of results to - * return from the ListTraces method. If present, this value is should be taken - * from the next_page_token field of a previous ListTracesResponse. - * @opt_param string startTime End of the time interval (inclusive). - * @opt_param string endTime Start of the time interval (exclusive). - * @opt_param string view ViewType specifies the projection of the result. + * @opt_param string orderBy Field used to sort the returned traces. Optional. + * Can be one of the following: * `trace_id` * `name` (`name` field of root span + * in the trace) * `duration` (difference between `end_time` and `start_time` + * fields of the root span) * `start` (`start_time` field of the root span) + * Descending order can be specified by appending `desc` to the sort field (for + * example, `name desc`). Only one sort field is permitted. * @return Google_Service_Cloudtrace_ListTracesResponse */ public function listProjectsTraces($projectId, $optParams = array()) @@ -261,38 +235,6 @@ public function listProjectsTraces($projectId, $optParams = array()) } } -/** - * The "v1" collection of methods. - * Typical usage is: - * - * $cloudtraceService = new Google_Service_Cloudtrace(...); - * $v1 = $cloudtraceService->v1; - * - */ -class Google_Service_Cloudtrace_V1_Resource extends Google_Service_Resource -{ - - /** - * Returns a discovery document in the specified `format`. The typeurl in the - * returned google.protobuf.Any value depends on the requested format. - * (v1.getDiscovery) - * - * @param array $optParams Optional parameters. - * - * @opt_param string labels A list of labels (like visibility) influencing the - * scope of the requested doc. - * @opt_param string version The API version of the requested discovery doc. - * @opt_param string args Any additional arguments. - * @opt_param string format The format requested for discovery. - */ - public function getDiscovery($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getDiscovery', array($params)); - } -} - @@ -436,10 +378,6 @@ public function getStartTime() } } -class Google_Service_Cloudtrace_TraceSpanLabels extends Google_Model -{ -} - class Google_Service_Cloudtrace_Traces extends Google_Collection { protected $collection_key = 'traces'; diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 301948dd3..5c79cbd7c 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/regions/{region}/addresses/{address}', @@ -200,14 +201,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -232,14 +233,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}', @@ -314,14 +315,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/zones/{zone}/autoscalers', @@ -440,14 +441,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/backendServices/{backendService}', @@ -502,14 +503,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', @@ -549,14 +550,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -581,14 +582,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'createSnapshot' => array( 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', @@ -687,14 +688,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -759,14 +760,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/firewalls/{firewall}', @@ -821,14 +822,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', @@ -903,14 +904,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setTarget' => array( 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', @@ -995,14 +996,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1067,14 +1068,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setTarget' => array( 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', @@ -1114,14 +1115,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/global/operations/{operation}', @@ -1166,14 +1167,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1238,14 +1239,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', @@ -1340,14 +1341,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', @@ -1457,14 +1458,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1509,14 +1510,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', @@ -1611,14 +1612,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listManagedInstances' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', @@ -1768,14 +1769,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', @@ -1850,14 +1851,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listInstances' => array( 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', @@ -1878,14 +1879,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -1994,14 +1995,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2051,14 +2052,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'attachDisk' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', @@ -2232,14 +2233,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'reset' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/reset', @@ -2291,6 +2292,26 @@ public function __construct(Google_Client $client) 'required' => true, ), ), + ),'setMachineType' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setMachineType', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setMetadata' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', 'httpMethod' => 'POST', @@ -2439,14 +2460,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', @@ -2486,14 +2507,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2558,16 +2579,16 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), ) ) ); @@ -2695,14 +2716,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2742,14 +2763,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2814,14 +2835,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2876,14 +2897,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2948,14 +2969,128 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + ), + ), + ) + ) + ); + $this->subnetworks = new Google_Service_Compute_Subnetworks_Resource( + $this, + $this->serviceName, + 'subnetworks', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/subnetworks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subnetwork' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subnetwork' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/subnetworks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/subnetworks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3020,14 +3155,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setUrlMap' => array( 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', @@ -3107,14 +3242,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setSslCertificates' => array( 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', @@ -3169,14 +3304,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', @@ -3251,14 +3386,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3323,14 +3458,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/regions/{region}/targetPools/{targetPool}', @@ -3425,14 +3560,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'removeHealthCheck' => array( 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', @@ -3521,14 +3656,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', @@ -3603,14 +3738,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3675,14 +3810,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/urlMaps/{urlMap}', @@ -3752,14 +3887,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', @@ -3834,14 +3969,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3911,14 +4046,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3958,14 +4093,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -3987,28 +4122,44 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource { /** - * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) + * Retrieves an aggregated list of addresses. (addresses.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_AddressAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4068,8 +4219,8 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo } /** - * Retrieves the list of address resources contained within the specified - * region. (addresses.listAddresses) + * Retrieves a list of addresses contained within the specified region. + * (addresses.listAddresses) * * @param string $project Project ID for this request. * @param string $region The name of the region for this request. @@ -4077,21 +4228,37 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_AddressList */ public function listAddresses($project, $region, $optParams = array()) @@ -4114,29 +4281,44 @@ class Google_Service_Compute_Autoscalers_Resource extends Google_Service_Resourc { /** - * Retrieves the list of autoscalers grouped by scope. - * (autoscalers.aggregatedList) + * Retrieves an aggregated list of autoscalers. (autoscalers.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_AutoscalerAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4149,7 +4331,7 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified autoscaler resource. (autoscalers.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $autoscaler Name of the persistent autoscaler resource to * delete. @@ -4166,7 +4348,7 @@ public function delete($project, $zone, $autoscaler, $optParams = array()) /** * Returns the specified autoscaler resource. (autoscalers.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $autoscaler Name of the persistent autoscaler resource to * return. @@ -4184,7 +4366,7 @@ public function get($project, $zone, $autoscaler, $optParams = array()) * Creates an autoscaler resource in the specified project using the data * included in the request. (autoscalers.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. @@ -4198,30 +4380,46 @@ public function insert($project, $zone, Google_Service_Compute_Autoscaler $postB } /** - * Retrieves the list of autoscaler resources contained within the specified - * zone. (autoscalers.listAutoscalers) + * Retrieves a list of autoscaler resources contained within the specified zone. + * (autoscalers.listAutoscalers) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_AutoscalerList */ public function listAutoscalers($project, $zone, $optParams = array()) @@ -4236,7 +4434,7 @@ public function listAutoscalers($project, $zone, $optParams = array()) * included in the request. This method supports patch semantics. * (autoscalers.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $autoscaler Name of the autoscaler resource to update. * @param Google_Autoscaler $postBody @@ -4254,7 +4452,7 @@ public function patch($project, $zone, $autoscaler, Google_Service_Compute_Autos * Updates an autoscaler resource in the specified project using the data * included in the request. (autoscalers.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. @@ -4284,7 +4482,7 @@ class Google_Service_Compute_BackendServices_Resource extends Google_Service_Res /** * Deletes the specified BackendService resource. (backendServices.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4299,7 +4497,7 @@ public function delete($project, $backendService, $optParams = array()) /** * Returns the specified BackendService resource. (backendServices.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_BackendService @@ -4331,9 +4529,11 @@ public function getHealth($project, $backendService, Google_Service_Compute_Reso /** * Creates a BackendService resource in the specified project using the data - * included in the request. (backendServices.insert) + * included in the request. There are several restrictions and guidelines to + * keep in mind when creating a backend service. Read Restrictions and + * Guidelines for more information. (backendServices.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4349,26 +4549,42 @@ public function insert($project, Google_Service_Compute_BackendService $postBody * Retrieves the list of BackendService resources available to the specified * project. (backendServices.listBackendServices) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_BackendServiceList */ public function listBackendServices($project, $optParams = array()) @@ -4379,10 +4595,12 @@ public function listBackendServices($project, $optParams = array()) } /** - * Update the entire content of the BackendService resource. This method - * supports patch semantics. (backendServices.patch) + * Updates the entire content of the BackendService resource. There are several + * restrictions and guidelines to keep in mind when updating a backend service. + * Read Restrictions and Guidelines for more information. This method supports + * patch semantics. (backendServices.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to update. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. @@ -4396,10 +4614,12 @@ public function patch($project, $backendService, Google_Service_Compute_BackendS } /** - * Update the entire content of the BackendService resource. + * Updates the entire content of the BackendService resource. There are several + * restrictions and guidelines to keep in mind when updating a backend service. + * Read Restrictions and Guidelines for more information. * (backendServices.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to update. * @param Google_BackendService $postBody * @param array $optParams Optional parameters. @@ -4425,29 +4645,44 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource { /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) + * Retrieves an aggregated list of disk types. (diskTypes.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_DiskTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4458,11 +4693,11 @@ public function aggregatedList($project, $optParams = array()) } /** - * Returns the specified disk type resource. (diskTypes.get) + * Returns the specified disk type. (diskTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $diskType Name of the disk type resource to return. + * @param string $diskType Name of the disk type to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_DiskType */ @@ -4474,7 +4709,7 @@ public function get($project, $zone, $diskType, $optParams = array()) } /** - * Retrieves the list of disk type resources available to the specified project. + * Retrieves a list of disk types available to the specified project. * (diskTypes.listDiskTypes) * * @param string $project Project ID for this request. @@ -4483,21 +4718,37 @@ public function get($project, $zone, $diskType, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_DiskTypeList */ public function listDiskTypes($project, $zone, $optParams = array()) @@ -4520,28 +4771,44 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource { /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * Retrieves an aggregated list of persistent disks. (disks.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_DiskAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4552,7 +4819,7 @@ public function aggregatedList($project, $optParams = array()) } /** - * Creates a snapshot of this disk. (disks.createSnapshot) + * Creates a snapshot of a specified persistent disk. (disks.createSnapshot) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -4604,8 +4871,11 @@ public function get($project, $zone, $disk, $optParams = array()) } /** - * Creates a persistent disk in the specified project using the data included in - * the request. (disks.insert) + * Creates a persistent disk in the specified project using the data in the + * request. You can create a disk with a sourceImage, a sourceSnapshot, or + * create an empty 200 GB data disk by omitting all properties. You can also + * create a disk that is larger than the default size by specifying the sizeGb + * property. (disks.insert) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -4623,7 +4893,7 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ } /** - * Retrieves the list of persistent disks contained within the specified zone. + * Retrieves a list of persistent disks contained within the specified zone. * (disks.listDisks) * * @param string $project Project ID for this request. @@ -4632,21 +4902,37 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_DiskList */ public function listDisks($project, $zone, $optParams = array()) @@ -4669,10 +4955,10 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource { /** - * Deletes the specified firewall resource. (firewalls.delete) + * Deletes the specified firewall. (firewalls.delete) * * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to delete. + * @param string $firewall Name of the firewall rule to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4684,10 +4970,10 @@ public function delete($project, $firewall, $optParams = array()) } /** - * Returns the specified firewall resource. (firewalls.get) + * Returns the specified firewall. (firewalls.get) * * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to return. + * @param string $firewall Name of the firewall rule to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Firewall */ @@ -4699,8 +4985,8 @@ public function get($project, $firewall, $optParams = array()) } /** - * Creates a firewall resource in the specified project using the data included - * in the request. (firewalls.insert) + * Creates a firewall rule in the specified project using the data included in + * the request. (firewalls.insert) * * @param string $project Project ID for this request. * @param Google_Firewall $postBody @@ -4715,7 +5001,7 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt } /** - * Retrieves the list of firewall resources available to the specified project. + * Retrieves the list of firewall rules available to the specified project. * (firewalls.listFirewalls) * * @param string $project Project ID for this request. @@ -4723,21 +5009,37 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_FirewallList */ public function listFirewalls($project, $optParams = array()) @@ -4748,11 +5050,11 @@ public function listFirewalls($project, $optParams = array()) } /** - * Updates the specified firewall resource with the data included in the - * request. This method supports patch semantics. (firewalls.patch) + * Updates the specified firewall rule with the data included in the request. + * This method supports patch semantics. (firewalls.patch) * * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. + * @param string $firewall Name of the firewall rule to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4765,11 +5067,11 @@ public function patch($project, $firewall, Google_Service_Compute_Firewall $post } /** - * Updates the specified firewall resource with the data included in the - * request. (firewalls.update) + * Updates the specified firewall rule with the data included in the request. + * (firewalls.update) * * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. + * @param string $firewall Name of the firewall rule to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4794,29 +5096,45 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res { /** - * Retrieves the list of forwarding rules grouped by scope. + * Retrieves an aggregated list of forwarding rules. * (forwardingRules.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ForwardingRuleAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4829,7 +5147,7 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified ForwardingRule resource. (forwardingRules.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $forwardingRule Name of the ForwardingRule resource to delete. * @param array $optParams Optional parameters. @@ -4845,7 +5163,7 @@ public function delete($project, $region, $forwardingRule, $optParams = array()) /** * Returns the specified ForwardingRule resource. (forwardingRules.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $forwardingRule Name of the ForwardingRule resource to return. * @param array $optParams Optional parameters. @@ -4862,7 +5180,7 @@ public function get($project, $region, $forwardingRule, $optParams = array()) * Creates a ForwardingRule resource in the specified project and region using * the data included in the request. (forwardingRules.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param Google_ForwardingRule $postBody * @param array $optParams Optional parameters. @@ -4876,30 +5194,46 @@ public function insert($project, $region, Google_Service_Compute_ForwardingRule } /** - * Retrieves the list of ForwardingRule resources available to the specified + * Retrieves a list of ForwardingRule resources available to the specified * project and region. (forwardingRules.listForwardingRules) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ForwardingRuleList */ public function listForwardingRules($project, $region, $optParams = array()) @@ -4910,9 +5244,10 @@ public function listForwardingRules($project, $region, $optParams = array()) } /** - * Changes target url for forwarding rule. (forwardingRules.setTarget) + * Changes target URL for forwarding rule. The new target should be of the same + * type as the old target. (forwardingRules.setTarget) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $forwardingRule Name of the ForwardingRule resource in which * target is to be set. @@ -4986,29 +5321,44 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP } /** - * Retrieves the list of global address resources. - * (globalAddresses.listGlobalAddresses) + * Retrieves a list of global addresses. (globalAddresses.listGlobalAddresses) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_AddressList */ public function listGlobalAddresses($project, $optParams = array()) @@ -5033,7 +5383,7 @@ class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Servi /** * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $forwardingRule Name of the ForwardingRule resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5048,7 +5398,7 @@ public function delete($project, $forwardingRule, $optParams = array()) /** * Returns the specified ForwardingRule resource. (globalForwardingRules.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $forwardingRule Name of the ForwardingRule resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_ForwardingRule @@ -5064,7 +5414,7 @@ public function get($project, $forwardingRule, $optParams = array()) * Creates a ForwardingRule resource in the specified project and region using * the data included in the request. (globalForwardingRules.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_ForwardingRule $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5077,29 +5427,45 @@ public function insert($project, Google_Service_Compute_ForwardingRule $postBody } /** - * Retrieves the list of ForwardingRule resources available to the specified + * Retrieves a list of ForwardingRule resources available to the specified * project. (globalForwardingRules.listGlobalForwardingRules) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ForwardingRuleList */ public function listGlobalForwardingRules($project, $optParams = array()) @@ -5110,9 +5476,10 @@ public function listGlobalForwardingRules($project, $optParams = array()) } /** - * Changes target url for forwarding rule. (globalForwardingRules.setTarget) + * Changes target URL for forwarding rule. The new target should be of the same + * type as the old target. (globalForwardingRules.setTarget) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $forwardingRule Name of the ForwardingRule resource in which * target is to be set. * @param Google_TargetReference $postBody @@ -5139,7 +5506,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re { /** - * Retrieves the list of all operations grouped by scope. + * Retrieves an aggregated list of all operations. * (globalOperations.aggregatedList) * * @param string $project Project ID for this request. @@ -5147,21 +5514,37 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_OperationAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5201,7 +5584,7 @@ public function get($project, $operation, $optParams = array()) } /** - * Retrieves the list of Operation resources contained within the specified + * Retrieves a list of Operation resources contained within the specified * project. (globalOperations.listGlobalOperations) * * @param string $project Project ID for this request. @@ -5209,21 +5592,37 @@ public function get($project, $operation, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_OperationList */ public function listGlobalOperations($project, $optParams = array()) @@ -5248,7 +5647,7 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re /** * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpHealthCheck Name of the HttpHealthCheck resource to * delete. * @param array $optParams Optional parameters. @@ -5264,7 +5663,7 @@ public function delete($project, $httpHealthCheck, $optParams = array()) /** * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpHealthCheck Name of the HttpHealthCheck resource to * return. * @param array $optParams Optional parameters. @@ -5281,7 +5680,7 @@ public function get($project, $httpHealthCheck, $optParams = array()) * Creates a HttpHealthCheck resource in the specified project using the data * included in the request. (httpHealthChecks.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_HttpHealthCheck $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5297,26 +5696,42 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod * Retrieves the list of HttpHealthCheck resources available to the specified * project. (httpHealthChecks.listHttpHealthChecks) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_HttpHealthCheckList */ public function listHttpHealthChecks($project, $optParams = array()) @@ -5331,7 +5746,7 @@ public function listHttpHealthChecks($project, $optParams = array()) * included in the request. This method supports patch semantics. * (httpHealthChecks.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpHealthCheck Name of the HttpHealthCheck resource to * update. * @param Google_HttpHealthCheck $postBody @@ -5349,7 +5764,7 @@ public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHea * Updates a HttpHealthCheck resource in the specified project using the data * included in the request. (httpHealthChecks.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpHealthCheck Name of the HttpHealthCheck resource to * update. * @param Google_HttpHealthCheck $postBody @@ -5378,7 +5793,7 @@ class Google_Service_Compute_HttpsHealthChecks_Resource extends Google_Service_R /** * Deletes the specified HttpsHealthCheck resource. (httpsHealthChecks.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to * delete. * @param array $optParams Optional parameters. @@ -5394,7 +5809,7 @@ public function delete($project, $httpsHealthCheck, $optParams = array()) /** * Returns the specified HttpsHealthCheck resource. (httpsHealthChecks.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to * return. * @param array $optParams Optional parameters. @@ -5411,7 +5826,7 @@ public function get($project, $httpsHealthCheck, $optParams = array()) * Creates a HttpsHealthCheck resource in the specified project using the data * included in the request. (httpsHealthChecks.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_HttpsHealthCheck $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -5427,26 +5842,42 @@ public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBo * Retrieves the list of HttpsHealthCheck resources available to the specified * project. (httpsHealthChecks.listHttpsHealthChecks) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_HttpsHealthCheckList */ public function listHttpsHealthChecks($project, $optParams = array()) @@ -5461,7 +5892,7 @@ public function listHttpsHealthChecks($project, $optParams = array()) * included in the request. This method supports patch semantics. * (httpsHealthChecks.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to * update. * @param Google_HttpsHealthCheck $postBody @@ -5479,7 +5910,7 @@ public function patch($project, $httpsHealthCheck, Google_Service_Compute_HttpsH * Updates a HttpsHealthCheck resource in the specified project using the data * included in the request. (httpsHealthChecks.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to * update. * @param Google_HttpsHealthCheck $postBody @@ -5506,7 +5937,7 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource { /** - * Deletes the specified image resource. (images.delete) + * Deletes the specified image. (images.delete) * * @param string $project Project ID for this request. * @param string $image Name of the image resource to delete. @@ -5540,7 +5971,7 @@ public function deprecate($project, $image, Google_Service_Compute_DeprecationSt } /** - * Returns the specified image resource. (images.get) + * Returns the specified image. (images.get) * * @param string $project Project ID for this request. * @param string $image Name of the image resource to return. @@ -5555,8 +5986,8 @@ public function get($project, $image, $optParams = array()) } /** - * Creates an image resource in the specified project using the data included in - * the request. (images.insert) + * Creates an image in the specified project using the data included in the + * request. (images.insert) * * @param string $project Project ID for this request. * @param Google_Image $postBody @@ -5585,21 +6016,37 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ImageList */ public function listImages($project, $optParams = array()) @@ -5632,7 +6079,7 @@ class Google_Service_Compute_InstanceGroupManagers_Resource extends Google_Servi * abandoning action with the listmanagedinstances method. * (instanceGroupManagers.abandonInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5651,26 +6098,42 @@ public function abandonInstances($project, $zone, $instanceGroupManager, Google_ * Retrieves the list of managed instance groups and groups them by zone. * (instanceGroupManagers.aggregatedList) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupManagerAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5682,9 +6145,11 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified managed instance group and all of the instances in that - * group. (instanceGroupManagers.delete) + * group. Note that the instance group must not belong to a backend service. + * Read Deleting an instance group for more information. + * (instanceGroupManagers.delete) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group to @@ -5708,7 +6173,7 @@ public function delete($project, $zone, $instanceGroupManager, $optParams = arra * being deleted. You must separately verify the status of the deleting action * with the listmanagedinstances method. (instanceGroupManagers.deleteInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5727,7 +6192,7 @@ public function deleteInstances($project, $zone, $instanceGroupManager, Google_S * Returns all of the details about the specified managed instance group. * (instanceGroupManagers.get) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5750,7 +6215,7 @@ public function get($project, $zone, $instanceGroupManager, $optParams = array() * individual instances with the listmanagedinstances method. * (instanceGroupManagers.insert) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where you want to create the managed * instance group. * @param Google_InstanceGroupManager $postBody @@ -5768,28 +6233,44 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroupMana * Retrieves a list of managed instance groups that are contained within the * specified project and zone. (instanceGroupManagers.listInstanceGroupManagers) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupManagerList */ public function listInstanceGroupManagers($project, $zone, $optParams = array()) @@ -5807,7 +6288,7 @@ public function listInstanceGroupManagers($project, $zone, $optParams = array()) * action failed, the list displays the errors for that failed action. * (instanceGroupManagers.listManagedInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5830,7 +6311,7 @@ public function listManagedInstances($project, $zone, $instanceGroupManager, $op * with the listmanagedinstances method. * (instanceGroupManagers.recreateInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5854,7 +6335,7 @@ public function recreateInstances($project, $zone, $instanceGroupManager, Google * or deleting actions with the listmanagedinstances method. * (instanceGroupManagers.resize) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5877,7 +6358,7 @@ public function resize($project, $zone, $instanceGroupManager, $size, $optParams * group. The templates for existing instances in the group do not change unless * you recreate them. (instanceGroupManagers.setInstanceTemplate) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5901,7 +6382,7 @@ public function setInstanceTemplate($project, $zone, $instanceGroupManager, Goog * instances in the group depending on the size of the group. * (instanceGroupManagers.setTargetPools) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the managed instance group is * located. * @param string $instanceGroupManager The name of the managed instance group. @@ -5930,10 +6411,10 @@ class Google_Service_Compute_InstanceGroups_Resource extends Google_Service_Reso /** * Adds a list of instances to the specified instance group. All of the - * instances in the instance group must be in the same network/subnetwork. - * (instanceGroups.addInstances) + * instances in the instance group must be in the same network/subnetwork. Read + * Adding instances for more information. (instanceGroups.addInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group where you are * adding instances. @@ -5952,26 +6433,42 @@ public function addInstances($project, $zone, $instanceGroup, Google_Service_Com * Retrieves the list of instance groups and sorts them by zone. * (instanceGroups.aggregatedList) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5983,9 +6480,10 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified instance group. The instances in the group are not - * deleted. (instanceGroups.delete) + * deleted. Note that instance group must not belong to a backend service. Read + * Deleting an instance group for more information. (instanceGroups.delete) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group to delete. * @param array $optParams Optional parameters. @@ -6001,7 +6499,7 @@ public function delete($project, $zone, $instanceGroup, $optParams = array()) /** * Returns the specified instance group resource. (instanceGroups.get) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group. * @param array $optParams Optional parameters. @@ -6018,7 +6516,7 @@ public function get($project, $zone, $instanceGroup, $optParams = array()) * Creates an instance group in the specified project using the parameters that * are included in the request. (instanceGroups.insert) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where you want to create the * instance group. * @param Google_InstanceGroup $postBody @@ -6036,27 +6534,43 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroup $po * Retrieves the list of instance groups that are located in the specified * project and zone. (instanceGroups.listInstanceGroups) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupList */ public function listInstanceGroups($project, $zone, $optParams = array()) @@ -6070,30 +6584,46 @@ public function listInstanceGroups($project, $zone, $optParams = array()) * Lists the instances in the specified instance group. * (instanceGroups.listInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group from which you * want to generate a list of included instances. * @param Google_InstanceGroupsListInstancesRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string maxResults Maximum count of results to be returned. * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupsListInstances */ public function listInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsListInstancesRequest $postBody, $optParams = array()) @@ -6107,7 +6637,7 @@ public function listInstances($project, $zone, $instanceGroup, Google_Service_Co * Removes one or more instances from the specified instance group, but does not * delete those instances. (instanceGroups.removeInstances) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group where the * specified instances will be removed. @@ -6126,7 +6656,7 @@ public function removeInstances($project, $zone, $instanceGroup, Google_Service_ * Sets the named ports for the specified instance group. * (instanceGroups.setNamedPorts) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. * @param string $instanceGroup The name of the instance group where the named * ports are updated. @@ -6154,9 +6684,13 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R { /** - * Deletes the specified instance template. (instanceTemplates.delete) + * Deletes the specified instance template. If you delete an instance template + * that is being referenced from another instance group, the instance group will + * not be able to create or recreate virtual machine instances. Deleting an + * instance template is permanent and cannot be undone. + * (instanceTemplates.delete) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $instanceTemplate The name of the instance template to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -6171,7 +6705,7 @@ public function delete($project, $instanceTemplate, $optParams = array()) /** * Returns the specified instance template resource. (instanceTemplates.get) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param string $instanceTemplate The name of the instance template. * @param array $optParams Optional parameters. * @return Google_Service_Compute_InstanceTemplate @@ -6185,9 +6719,12 @@ public function get($project, $instanceTemplate, $optParams = array()) /** * Creates an instance template in the specified project using the data that is - * included in the request. (instanceTemplates.insert) + * included in the request. If you are creating a new template to update an + * existing instance group, your new instance template must use the same network + * or, if applicable, the same subnetwork as the original template. + * (instanceTemplates.insert) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param Google_InstanceTemplate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -6203,26 +6740,42 @@ public function insert($project, Google_Service_Compute_InstanceTemplate $postBo * Retrieves a list of instance templates that are contained within the * specified project and zone. (instanceTemplates.listInstanceTemplates) * - * @param string $project The project ID for this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceTemplateList */ public function listInstanceTemplates($project, $optParams = array()) @@ -6265,28 +6818,44 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G } /** - * Retrieves aggregated list of instance resources. (instances.aggregatedList) + * Retrieves aggregated list of instances. (instances.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -6301,7 +6870,7 @@ public function aggregatedList($project, $optParams = array()) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. + * @param string $instance The instance name for this request. * @param Google_AttachedDisk $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -6314,8 +6883,8 @@ public function attachDisk($project, $zone, $instance, Google_Service_Compute_At } /** - * Deletes the specified Instance resource. For more information, see Shutting - * down an instance. (instances.delete) + * Deletes the specified Instance resource. For more information, see Stopping + * or Deleting an Instance. (instances.delete) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -6367,7 +6936,7 @@ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = } /** - * Returns the specified instance resource. (instances.get) + * Returns the specified Instance resource. (instances.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -6419,7 +6988,7 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod } /** - * Retrieves the list of instance resources contained within the specified zone. + * Retrieves the list of instances contained within the specified zone. * (instances.listInstances) * * @param string $project Project ID for this request. @@ -6428,21 +6997,37 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceList */ public function listInstances($project, $zone, $optParams = array()) @@ -6488,6 +7073,24 @@ public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $devi return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); } + /** + * Changes the machine type for a stopped instance to the machine type specified + * in the request. (instances.setMachineType) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param Google_InstancesSetMachineTypeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setMachineType($project, $zone, $instance, Google_Service_Compute_InstancesSetMachineTypeRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setMachineType', array($params), "Google_Service_Compute_Operation"); + } + /** * Sets metadata for the specified instance to the data included in the request. * (instances.setMetadata) @@ -6542,9 +7145,8 @@ public function setTags($project, $zone, $instance, Google_Service_Compute_Tags } /** - * This method starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * (instances.start) + * Starts an instance that was stopped using the using the instances().stop + * method. For more information, see Restart an instance. (instances.start) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -6560,12 +7162,12 @@ public function start($project, $zone, $instance, $optParams = array()) } /** - * This method stops a running instance, shutting it down cleanly, and allows - * you to restart the instance at a later time. Stopped instances do not incur - * per-minute, virtual machine usage charges while they are stopped, but any - * resources that the virtual machine is using, such as persistent disks and - * static IP addresses,will continue to be charged until they are deleted. For - * more information, see Stopping an instance. (instances.stop) + * Stops a running instance, shutting it down cleanly, and allows you to restart + * the instance at a later time. Stopped instances do not incur per-minute, + * virtual machine usage charges while they are stopped, but any resources that + * the virtual machine is using, such as persistent disks and static IP + * addresses, will continue to be charged until they are deleted. For more + * information, see Stopping an instance. (instances.stop) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -6596,7 +7198,7 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource * Returns the specified license resource. (licenses.get) * * @param string $project Project ID for this request. - * @param string $license Name of the license resource to return. + * @param string $license Name of the License resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_License */ @@ -6620,29 +7222,44 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour { /** - * Retrieves the list of machine type resources grouped by scope. - * (machineTypes.aggregatedList) + * Retrieves an aggregated list of machine types. (machineTypes.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_MachineTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -6653,11 +7270,11 @@ public function aggregatedList($project, $optParams = array()) } /** - * Returns the specified machine type resource. (machineTypes.get) + * Returns the specified machine type. (machineTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $machineType Name of the machine type resource to return. + * @param string $machineType Name of the machine type to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_MachineType */ @@ -6669,8 +7286,8 @@ public function get($project, $zone, $machineType, $optParams = array()) } /** - * Retrieves the list of machine type resources available to the specified - * project. (machineTypes.listMachineTypes) + * Retrieves a list of machine types available to the specified project. + * (machineTypes.listMachineTypes) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -6678,21 +7295,37 @@ public function get($project, $zone, $machineType, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_MachineTypeList */ public function listMachineTypes($project, $zone, $optParams = array()) @@ -6715,10 +7348,10 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource { /** - * Deletes the specified network resource. (networks.delete) + * Deletes the specified network. (networks.delete) * * @param string $project Project ID for this request. - * @param string $network Name of the network resource to delete. + * @param string $network Name of the network to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -6730,10 +7363,10 @@ public function delete($project, $network, $optParams = array()) } /** - * Returns the specified network resource. (networks.get) + * Returns the specified network. (networks.get) * * @param string $project Project ID for this request. - * @param string $network Name of the network resource to return. + * @param string $network Name of the network to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Network */ @@ -6745,8 +7378,8 @@ public function get($project, $network, $optParams = array()) } /** - * Creates a network resource in the specified project using the data included - * in the request. (networks.insert) + * Creates a network in the specified project using the data included in the + * request. (networks.insert) * * @param string $project Project ID for this request. * @param Google_Network $postBody @@ -6761,7 +7394,7 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP } /** - * Retrieves the list of network resources available to the specified project. + * Retrieves the list of networks available to the specified project. * (networks.listNetworks) * * @param string $project Project ID for this request. @@ -6769,21 +7402,37 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_NetworkList */ public function listNetworks($project, $optParams = array()) @@ -6900,7 +7549,7 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * (regionOperations.delete) * * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. + * @param string $region Name of the region for this request. * @param string $operation Name of the Operations resource to delete. * @param array $optParams Optional parameters. */ @@ -6916,7 +7565,7 @@ public function delete($project, $region, $operation, $optParams = array()) * (regionOperations.get) * * @param string $project Project ID for this request. - * @param string $region Name of the zone scoping this request. + * @param string $region Name of the region for this request. * @param string $operation Name of the Operations resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -6929,30 +7578,46 @@ public function get($project, $region, $operation, $optParams = array()) } /** - * Retrieves the list of Operation resources contained within the specified + * Retrieves a list of Operation resources contained within the specified * region. (regionOperations.listRegionOperations) * * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. + * @param string $region Name of the region for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_OperationList */ public function listRegionOperations($project, $region, $optParams = array()) @@ -6998,21 +7663,37 @@ public function get($project, $region, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_RegionList */ public function listRegions($project, $optParams = array()) @@ -7037,7 +7718,7 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource /** * Deletes the specified route resource. (routes.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $route Name of the route resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7052,7 +7733,7 @@ public function delete($project, $route, $optParams = array()) /** * Returns the specified route resource. (routes.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $route Name of the route resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Route @@ -7068,7 +7749,7 @@ public function get($project, $route, $optParams = array()) * Creates a route resource in the specified project using the data included in * the request. (routes.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Route $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7084,26 +7765,42 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar * Retrieves the list of route resources available to the specified project. * (routes.listRoutes) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_RouteList */ public function listRoutes($project, $optParams = array()) @@ -7133,7 +7830,7 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource * * For more information, see Deleting snaphots. (snapshots.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $snapshot Name of the Snapshot resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7148,7 +7845,7 @@ public function delete($project, $snapshot, $optParams = array()) /** * Returns the specified Snapshot resource. (snapshots.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $snapshot Name of the Snapshot resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Snapshot @@ -7164,26 +7861,42 @@ public function get($project, $snapshot, $optParams = array()) * Retrieves the list of Snapshot resources contained within the specified * project. (snapshots.listSnapshots) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_SnapshotList */ public function listSnapshots($project, $optParams = array()) @@ -7208,7 +7921,7 @@ class Google_Service_Compute_SslCertificates_Resource extends Google_Service_Res /** * Deletes the specified SslCertificate resource. (sslCertificates.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $sslCertificate Name of the SslCertificate resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7223,7 +7936,7 @@ public function delete($project, $sslCertificate, $optParams = array()) /** * Returns the specified SslCertificate resource. (sslCertificates.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $sslCertificate Name of the SslCertificate resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_SslCertificate @@ -7239,7 +7952,7 @@ public function get($project, $sslCertificate, $optParams = array()) * Creates a SslCertificate resource in the specified project using the data * included in the request. (sslCertificates.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_SslCertificate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7255,26 +7968,42 @@ public function insert($project, Google_Service_Compute_SslCertificate $postBody * Retrieves the list of SslCertificate resources available to the specified * project. (sslCertificates.listSslCertificates) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_SslCertificateList */ public function listSslCertificates($project, $optParams = array()) @@ -7285,6 +8014,165 @@ public function listSslCertificates($project, $optParams = array()) } } +/** + * The "subnetworks" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $subnetworks = $computeService->subnetworks; + * + */ +class Google_Service_Compute_Subnetworks_Resource extends Google_Service_Resource +{ + + /** + * Retrieves an aggregated list of subnetworks. (subnetworks.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_SubnetworkAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_SubnetworkAggregatedList"); + } + + /** + * Deletes the specified subnetwork. (subnetworks.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $subnetwork Name of the Subnetwork resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $subnetwork, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified subnetwork. (subnetworks.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $subnetwork Name of the Subnetwork resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Subnetwork + */ + public function get($project, $region, $subnetwork, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Subnetwork"); + } + + /** + * Creates a subnetwork in the specified project using the data included in the + * request. (subnetworks.insert) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param Google_Subnetwork $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_Subnetwork $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves a list of subnetworks available to the specified project. + * (subnetworks.listSubnetworks) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_SubnetworkList + */ + public function listSubnetworks($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SubnetworkList"); + } +} + /** * The "targetHttpProxies" collection of methods. * Typical usage is: @@ -7299,7 +8187,7 @@ class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_R /** * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $targetHttpProxy Name of the TargetHttpProxy resource to * delete. * @param array $optParams Optional parameters. @@ -7315,7 +8203,7 @@ public function delete($project, $targetHttpProxy, $optParams = array()) /** * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $targetHttpProxy Name of the TargetHttpProxy resource to * return. * @param array $optParams Optional parameters. @@ -7332,7 +8220,7 @@ public function get($project, $targetHttpProxy, $optParams = array()) * Creates a TargetHttpProxy resource in the specified project using the data * included in the request. (targetHttpProxies.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_TargetHttpProxy $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7348,26 +8236,42 @@ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBod * Retrieves the list of TargetHttpProxy resources available to the specified * project. (targetHttpProxies.listTargetHttpProxies) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetHttpProxyList */ public function listTargetHttpProxies($project, $optParams = array()) @@ -7380,9 +8284,9 @@ public function listTargetHttpProxies($project, $optParams = array()) /** * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource whose URL - * map is to be set. + * @param string $project Project ID for this request. + * @param string $targetHttpProxy The name of the TargetHttpProxy resource to + * set a URL map for. * @param Google_UrlMapReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7409,7 +8313,7 @@ class Google_Service_Compute_TargetHttpsProxies_Resource extends Google_Service_ /** * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to * delete. * @param array $optParams Optional parameters. @@ -7425,7 +8329,7 @@ public function delete($project, $targetHttpsProxy, $optParams = array()) /** * Returns the specified TargetHttpsProxy resource. (targetHttpsProxies.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to * return. * @param array $optParams Optional parameters. @@ -7442,7 +8346,7 @@ public function get($project, $targetHttpsProxy, $optParams = array()) * Creates a TargetHttpsProxy resource in the specified project using the data * included in the request. (targetHttpsProxies.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_TargetHttpsProxy $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7458,26 +8362,42 @@ public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBo * Retrieves the list of TargetHttpsProxy resources available to the specified * project. (targetHttpsProxies.listTargetHttpsProxies) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetHttpsProxyList */ public function listTargetHttpsProxies($project, $optParams = array()) @@ -7491,9 +8411,9 @@ public function listTargetHttpsProxies($project, $optParams = array()) * Replaces SslCertificates for TargetHttpsProxy. * (targetHttpsProxies.setSslCertificates) * - * @param string $project Name of the project scoping this request. - * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose - * URL map is to be set. + * @param string $project Project ID for this request. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set + * an SSL certificate for. * @param Google_TargetHttpsProxiesSetSslCertificatesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7508,7 +8428,7 @@ public function setSslCertificates($project, $targetHttpsProxy, Google_Service_C /** * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose * URL map is to be set. * @param Google_UrlMapReference $postBody @@ -7535,29 +8455,45 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res { /** - * Retrieves the list of target instances grouped by scope. + * Retrieves an aggregated list of target instances. * (targetInstances.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetInstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -7570,7 +8506,7 @@ public function aggregatedList($project, $optParams = array()) /** * Deletes the specified TargetInstance resource. (targetInstances.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $targetInstance Name of the TargetInstance resource to delete. * @param array $optParams Optional parameters. @@ -7586,7 +8522,7 @@ public function delete($project, $zone, $targetInstance, $optParams = array()) /** * Returns the specified TargetInstance resource. (targetInstances.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $targetInstance Name of the TargetInstance resource to return. * @param array $optParams Optional parameters. @@ -7603,7 +8539,7 @@ public function get($project, $zone, $targetInstance, $optParams = array()) * Creates a TargetInstance resource in the specified project and zone using the * data included in the request. (targetInstances.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param Google_TargetInstance $postBody * @param array $optParams Optional parameters. @@ -7617,30 +8553,46 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p } /** - * Retrieves the list of TargetInstance resources available to the specified + * Retrieves a list of TargetInstance resources available to the specified * project and zone. (targetInstances.listTargetInstances) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetInstanceList */ public function listTargetInstances($project, $zone, $optParams = array()) @@ -7663,12 +8615,11 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc { /** - * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * Adds health check URLs to a target pool. (targetPools.addHealthCheck) * - * @param string $project + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be added. + * @param string $targetPool Name of the target pool to add a health check to. * @param Google_TargetPoolsAddHealthCheckRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7681,12 +8632,12 @@ public function addHealthCheck($project, $region, $targetPool, Google_Service_Co } /** - * Adds instance url to targetPool. (targetPools.addInstance) + * Adds an instance to a target pool. (targetPools.addInstance) * - * @param string $project + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be added. + * @param string $targetPool Name of the TargetPool resource to add instances + * to. * @param Google_TargetPoolsAddInstanceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7699,29 +8650,44 @@ public function addInstance($project, $region, $targetPool, Google_Service_Compu } /** - * Retrieves the list of target pools grouped by scope. - * (targetPools.aggregatedList) + * Retrieves an aggregated list of target pools. (targetPools.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetPoolAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -7732,9 +8698,9 @@ public function aggregatedList($project, $optParams = array()) } /** - * Deletes the specified TargetPool resource. (targetPools.delete) + * Deletes the specified target pool. (targetPools.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $targetPool Name of the TargetPool resource to delete. * @param array $optParams Optional parameters. @@ -7748,9 +8714,9 @@ public function delete($project, $region, $targetPool, $optParams = array()) } /** - * Returns the specified TargetPool resource. (targetPools.get) + * Returns the specified target pool. (targetPools.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $targetPool Name of the TargetPool resource to return. * @param array $optParams Optional parameters. @@ -7764,10 +8730,10 @@ public function get($project, $region, $targetPool, $optParams = array()) } /** - * Gets the most recent health check results for each IP for the given instance - * that is referenced by given TargetPool. (targetPools.getHealth) + * Gets the most recent health check results for each IP for the instance that + * is referenced by the given target pool. (targetPools.getHealth) * - * @param string $project + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $targetPool Name of the TargetPool resource to which the * queried instance belongs. @@ -7783,10 +8749,10 @@ public function getHealth($project, $region, $targetPool, Google_Service_Compute } /** - * Creates a TargetPool resource in the specified project and region using the - * data included in the request. (targetPools.insert) + * Creates a target pool in the specified project and region using the data + * included in the request. (targetPools.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param Google_TargetPool $postBody * @param array $optParams Optional parameters. @@ -7800,30 +8766,46 @@ public function insert($project, $region, Google_Service_Compute_TargetPool $pos } /** - * Retrieves the list of TargetPool resources available to the specified project - * and region. (targetPools.listTargetPools) + * Retrieves a list of target pools available to the specified project and + * region. (targetPools.listTargetPools) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetPoolList */ public function listTargetPools($project, $region, $optParams = array()) @@ -7834,12 +8816,12 @@ public function listTargetPools($project, $region, $optParams = array()) } /** - * Removes health check URL from targetPool. (targetPools.removeHealthCheck) + * Removes health check URL from a target pool. (targetPools.removeHealthCheck) * - * @param string $project - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * health_check_url is to be removed. + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param string $targetPool Name of the target pool to remove health checks + * from. * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7852,12 +8834,12 @@ public function removeHealthCheck($project, $region, $targetPool, Google_Service } /** - * Removes instance URL from targetPool. (targetPools.removeInstance) + * Removes instance URL from a target pool. (targetPools.removeInstance) * - * @param string $project + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which - * instance_url is to be removed. + * @param string $targetPool Name of the TargetPool resource to remove instances + * from. * @param Google_TargetPoolsRemoveInstanceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -7870,17 +8852,16 @@ public function removeInstance($project, $region, $targetPool, Google_Service_Co } /** - * Changes backup pool configurations. (targetPools.setBackup) + * Changes a backup target pool's configurations. (targetPools.setBackup) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource for which the - * backup is to be set. + * @param string $targetPool Name of the TargetPool resource to set a backup + * pool for. * @param Google_TargetReference $postBody * @param array $optParams Optional parameters. * - * @opt_param float failoverRatio New failoverRatio value for the containing - * target pool. + * @opt_param float failoverRatio New failoverRatio value for the target pool. * @return Google_Service_Compute_Operation */ public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) @@ -7903,7 +8884,7 @@ class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_R { /** - * Retrieves the list of target VPN gateways grouped by scope. + * Retrieves an aggregated list of target VPN gateways. * (targetVpnGateways.aggregatedList) * * @param string $project Project ID for this request. @@ -7911,21 +8892,37 @@ class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_R * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetVpnGatewayAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -7936,12 +8933,11 @@ public function aggregatedList($project, $optParams = array()) } /** - * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) + * Deletes the specified target VPN gateway. (targetVpnGateways.delete) * * @param string $project Project ID for this request. * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * delete. + * @param string $targetVpnGateway Name of the target VPN gateway to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -7953,12 +8949,11 @@ public function delete($project, $region, $targetVpnGateway, $optParams = array( } /** - * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) + * Returns the specified target VPN gateway. (targetVpnGateways.get) * * @param string $project Project ID for this request. * @param string $region The name of the region for this request. - * @param string $targetVpnGateway Name of the TargetVpnGateway resource to - * return. + * @param string $targetVpnGateway Name of the target VPN gateway to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetVpnGateway */ @@ -7970,8 +8965,8 @@ public function get($project, $region, $targetVpnGateway, $optParams = array()) } /** - * Creates a TargetVpnGateway resource in the specified project and region using - * the data included in the request. (targetVpnGateways.insert) + * Creates a target VPN gateway in the specified project and region using the + * data included in the request. (targetVpnGateways.insert) * * @param string $project Project ID for this request. * @param string $region The name of the region for this request. @@ -7987,8 +8982,8 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa } /** - * Retrieves the list of TargetVpnGateway resources available to the specified - * project and region. (targetVpnGateways.listTargetVpnGateways) + * Retrieves a list of target VPN gateways available to the specified project + * and region. (targetVpnGateways.listTargetVpnGateways) * * @param string $project Project ID for this request. * @param string $region The name of the region for this request. @@ -7996,21 +8991,37 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_TargetVpnGatewayList */ public function listTargetVpnGateways($project, $region, $optParams = array()) @@ -8035,7 +9046,7 @@ class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource /** * Deletes the specified UrlMap resource. (urlMaps.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8050,7 +9061,7 @@ public function delete($project, $urlMap, $optParams = array()) /** * Returns the specified UrlMap resource. (urlMaps.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_UrlMap @@ -8066,7 +9077,7 @@ public function get($project, $urlMap, $optParams = array()) * Creates a UrlMap resource in the specified project using the data included in * the request. (urlMaps.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8082,26 +9093,42 @@ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optPa * Retrieves the list of UrlMap resources available to the specified project. * (urlMaps.listUrlMaps) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_UrlMapList */ public function listUrlMaps($project, $optParams = array()) @@ -8112,10 +9139,10 @@ public function listUrlMaps($project, $optParams = array()) } /** - * Update the entire content of the UrlMap resource. This method supports patch + * Updates the entire content of the UrlMap resource. This method supports patch * semantics. (urlMaps.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to update. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. @@ -8129,9 +9156,9 @@ public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody } /** - * Update the entire content of the UrlMap resource. (urlMaps.update) + * Updates the entire content of the UrlMap resource. (urlMaps.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to update. * @param Google_UrlMap $postBody * @param array $optParams Optional parameters. @@ -8145,11 +9172,11 @@ public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBod } /** - * Run static validation for the UrlMap. In particular, the tests of the + * Runs static validation for the UrlMap. In particular, the tests of the * provided UrlMap will be run. Calling this method does NOT create the UrlMap. * (urlMaps.validate) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to be validated as. * @param Google_UrlMapsValidateRequest $postBody * @param array $optParams Optional parameters. @@ -8175,29 +9202,44 @@ class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource { /** - * Retrieves the list of VPN tunnels grouped by scope. - * (vpnTunnels.aggregatedList) + * Retrieves an aggregated list of VPN tunnels. (vpnTunnels.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_VpnTunnelAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -8257,7 +9299,7 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post } /** - * Retrieves the list of VpnTunnel resources contained in the specified project + * Retrieves a list of VpnTunnel resources contained in the specified project * and region. (vpnTunnels.listVpnTunnels) * * @param string $project Project ID for this request. @@ -8266,21 +9308,37 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_VpnTunnelList */ public function listVpnTunnels($project, $region, $optParams = array()) @@ -8307,7 +9365,7 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * (zoneOperations.delete) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for this request. * @param string $operation Name of the Operations resource to delete. * @param array $optParams Optional parameters. */ @@ -8323,7 +9381,7 @@ public function delete($project, $zone, $operation, $optParams = array()) * (zoneOperations.get) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for this request. * @param string $operation Name of the Operations resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8336,30 +9394,46 @@ public function get($project, $zone, $operation, $optParams = array()) } /** - * Retrieves the list of Operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) + * Retrieves a list of Operation resources contained within the specified zone. + * (zoneOperations.listZoneOperations) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -8405,21 +9479,37 @@ public function get($project, $zone, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. - * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ZoneList */ public function listZones($project, $optParams = array()) @@ -8630,10 +9720,6 @@ public function getSelfLink() } } -class Google_Service_Compute_AddressAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_AddressList extends Google_Collection { protected $collection_key = 'items'; @@ -9078,10 +10164,6 @@ public function getSelfLink() } } -class Google_Service_Compute_AutoscalerAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_AutoscalerList extends Google_Collection { protected $collection_key = 'items'; @@ -9932,10 +11014,6 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_DiskList extends Google_Collection { protected $collection_key = 'items'; @@ -10170,10 +11248,6 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_DiskTypeList extends Google_Collection { protected $collection_key = 'items'; @@ -10768,10 +11842,6 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_ForwardingRuleList extends Google_Collection { protected $collection_key = 'items'; @@ -11843,10 +12913,6 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_InstanceGroup extends Google_Collection { protected $collection_key = 'namedPorts'; @@ -11863,6 +12929,7 @@ class Google_Service_Compute_InstanceGroup extends Google_Collection public $network; public $selfLink; public $size; + public $subnetwork; public $zone; @@ -11946,6 +13013,14 @@ public function getSize() { return $this->size; } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } public function setZone($zone) { $this->zone = $zone; @@ -12010,10 +13085,6 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceGroupAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_InstanceGroupList extends Google_Collection { protected $collection_key = 'items'; @@ -12085,6 +13156,8 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection public $instanceTemplate; public $kind; public $name; + protected $namedPortsType = 'Google_Service_Compute_NamedPort'; + protected $namedPortsDataType = 'array'; public $selfLink; public $targetPools; public $targetSize; @@ -12171,6 +13244,14 @@ public function getName() { return $this->name; } + public function setNamedPorts($namedPorts) + { + $this->namedPorts = $namedPorts; + } + public function getNamedPorts() + { + return $this->namedPorts; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -12330,10 +13411,6 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceGroupManagerAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_InstanceGroupManagerList extends Google_Collection { protected $collection_key = 'items'; @@ -13278,6 +14355,23 @@ public function getValue() } } +class Google_Service_Compute_InstancesSetMachineTypeRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $machineType; + + + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } +} + class Google_Service_Compute_License extends Google_Model { protected $internal_gapi_mappings = array( @@ -13513,10 +14607,6 @@ public function getSelfLink() } } -class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_MachineTypeList extends Google_Collection { protected $collection_key = 'items'; @@ -13896,12 +14986,14 @@ public function getPort() } } -class Google_Service_Compute_Network extends Google_Model +class Google_Service_Compute_Network extends Google_Collection { + protected $collection_key = 'subnetworks'; protected $internal_gapi_mappings = array( "iPv4Range" => "IPv4Range", ); public $iPv4Range; + public $autoCreateSubnetworks; public $creationTimestamp; public $description; public $gatewayIPv4; @@ -13909,6 +15001,7 @@ class Google_Service_Compute_Network extends Google_Model public $kind; public $name; public $selfLink; + public $subnetworks; public function setIPv4Range($iPv4Range) @@ -13919,6 +15012,14 @@ public function getIPv4Range() { return $this->iPv4Range; } + public function setAutoCreateSubnetworks($autoCreateSubnetworks) + { + $this->autoCreateSubnetworks = $autoCreateSubnetworks; + } + public function getAutoCreateSubnetworks() + { + return $this->autoCreateSubnetworks; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -13975,6 +15076,14 @@ public function getSelfLink() { return $this->selfLink; } + public function setSubnetworks($subnetworks) + { + $this->subnetworks = $subnetworks; + } + public function getSubnetworks() + { + return $this->subnetworks; + } } class Google_Service_Compute_NetworkInterface extends Google_Collection @@ -13987,6 +15096,7 @@ class Google_Service_Compute_NetworkInterface extends Google_Collection public $name; public $network; public $networkIP; + public $subnetwork; public function setAccessConfigs($accessConfigs) @@ -14021,6 +15131,14 @@ public function getNetworkIP() { return $this->networkIP; } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } } class Google_Service_Compute_NetworkList extends Google_Collection @@ -14085,6 +15203,7 @@ class Google_Service_Compute_Operation extends Google_Collection ); public $clientOperationId; public $creationTimestamp; + public $description; public $endTime; protected $errorType = 'Google_Service_Compute_OperationError'; protected $errorDataType = ''; @@ -14125,6 +15244,14 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -14341,10 +15468,6 @@ public function getSelfLink() } } -class Google_Service_Compute_OperationAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_OperationError extends Google_Collection { protected $collection_key = 'errors'; @@ -15397,14 +16520,189 @@ public function getDescription() { return $this->description; } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLicenses($licenses) + { + $this->licenses = $licenses; + } + public function getLicenses() + { + return $this->licenses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSourceDisk($sourceDisk) + { + $this->sourceDisk = $sourceDisk; + } + public function getSourceDisk() + { + return $this->sourceDisk; + } + public function setSourceDiskId($sourceDiskId) + { + $this->sourceDiskId = $sourceDiskId; + } + public function getSourceDiskId() + { + return $this->sourceDiskId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStorageBytes($storageBytes) + { + $this->storageBytes = $storageBytes; + } + public function getStorageBytes() + { + return $this->storageBytes; + } + public function setStorageBytesStatus($storageBytesStatus) + { + $this->storageBytesStatus = $storageBytesStatus; + } + public function getStorageBytesStatus() + { + return $this->storageBytesStatus; + } +} + +class Google_Service_Compute_SnapshotList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_Snapshot'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_SslCertificate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $certificate; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $privateKey; + public $selfLink; + + + public function setCertificate($certificate) + { + $this->certificate = $certificate; + } + public function getCertificate() + { + return $this->certificate; + } + 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; @@ -15421,14 +16719,6 @@ public function getKind() { return $this->kind; } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } public function setName($name) { $this->name = $name; @@ -15437,63 +16727,31 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - public function getSourceDisk() - { - return $this->sourceDisk; - } - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStorageBytes($storageBytes) + public function setPrivateKey($privateKey) { - $this->storageBytes = $storageBytes; + $this->privateKey = $privateKey; } - public function getStorageBytes() + public function getPrivateKey() { - return $this->storageBytes; + return $this->privateKey; } - public function setStorageBytesStatus($storageBytesStatus) + public function setSelfLink($selfLink) { - $this->storageBytesStatus = $storageBytesStatus; + $this->selfLink = $selfLink; } - public function getStorageBytesStatus() + public function getSelfLink() { - return $this->storageBytesStatus; + return $this->selfLink; } } -class Google_Service_Compute_SnapshotList extends Google_Collection +class Google_Service_Compute_SslCertificateList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Snapshot'; + protected $itemsType = 'Google_Service_Compute_SslCertificate'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -15542,28 +16800,22 @@ public function getSelfLink() } } -class Google_Service_Compute_SslCertificate extends Google_Model +class Google_Service_Compute_Subnetwork extends Google_Model { protected $internal_gapi_mappings = array( ); - public $certificate; public $creationTimestamp; public $description; + public $gatewayAddress; public $id; + public $ipCidrRange; public $kind; public $name; - public $privateKey; + public $network; + public $region; public $selfLink; - public function setCertificate($certificate) - { - $this->certificate = $certificate; - } - public function getCertificate() - { - return $this->certificate; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -15580,6 +16832,14 @@ public function getDescription() { return $this->description; } + public function setGatewayAddress($gatewayAddress) + { + $this->gatewayAddress = $gatewayAddress; + } + public function getGatewayAddress() + { + return $this->gatewayAddress; + } public function setId($id) { $this->id = $id; @@ -15588,6 +16848,14 @@ public function getId() { return $this->id; } + public function setIpCidrRange($ipCidrRange) + { + $this->ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } public function setKind($kind) { $this->kind = $kind; @@ -15604,13 +16872,21 @@ public function getName() { return $this->name; } - public function setPrivateKey($privateKey) + public function setNetwork($network) { - $this->privateKey = $privateKey; + $this->network = $network; } - public function getPrivateKey() + public function getNetwork() { - return $this->privateKey; + return $this->network; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; } public function setSelfLink($selfLink) { @@ -15622,13 +16898,67 @@ public function getSelfLink() } } -class Google_Service_Compute_SslCertificateList extends Google_Collection +class Google_Service_Compute_SubnetworkAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_SubnetworksScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_SubnetworkList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_SslCertificate'; + protected $itemsType = 'Google_Service_Compute_Subnetwork'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -15677,6 +17007,98 @@ public function getSelfLink() } } +class Google_Service_Compute_SubnetworksScopedList extends Google_Collection +{ + protected $collection_key = 'subnetworks'; + protected $internal_gapi_mappings = array( + ); + protected $subnetworksType = 'Google_Service_Compute_Subnetwork'; + protected $subnetworksDataType = 'array'; + protected $warningType = 'Google_Service_Compute_SubnetworksScopedListWarning'; + protected $warningDataType = ''; + + + public function setSubnetworks($subnetworks) + { + $this->subnetworks = $subnetworks; + } + public function getSubnetworks() + { + return $this->subnetworks; + } + public function setWarning(Google_Service_Compute_SubnetworksScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_SubnetworksScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_SubnetworksScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_SubnetworksScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Tags extends Google_Collection { protected $collection_key = 'items'; @@ -16127,10 +17549,6 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_TargetInstanceList extends Google_Collection { protected $collection_key = 'items'; @@ -16449,10 +17867,6 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection { protected $collection_key = 'healthStatus'; @@ -16883,10 +18297,6 @@ public function getSelfLink() } } -class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection { protected $collection_key = 'items'; @@ -17413,8 +18823,9 @@ public function getReportNamePrefix() } } -class Google_Service_Compute_VpnTunnel extends Google_Model +class Google_Service_Compute_VpnTunnel extends Google_Collection { + protected $collection_key = 'localTrafficSelector'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; @@ -17423,6 +18834,7 @@ class Google_Service_Compute_VpnTunnel extends Google_Model public $id; public $ikeVersion; public $kind; + public $localTrafficSelector; public $name; public $peerIp; public $region; @@ -17481,6 +18893,14 @@ public function getKind() { return $this->kind; } + public function setLocalTrafficSelector($localTrafficSelector) + { + $this->localTrafficSelector = $localTrafficSelector; + } + public function getLocalTrafficSelector() + { + return $this->localTrafficSelector; + } public function setName($name) { $this->name = $name; @@ -17601,10 +19021,6 @@ public function getSelfLink() } } -class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model -{ -} - class Google_Service_Compute_VpnTunnelList extends Google_Collection { protected $collection_key = 'items'; diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php index 2849bf494..68b147e40 100644 --- a/src/Google/Service/Container.php +++ b/src/Google/Service/Container.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'customerName' => array( + 'assignee' => array( 'location' => 'query', 'type' => 'string', ), - 'note' => array( + 'customField' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'assignee' => array( + 'customerName' => array( 'location' => 'query', 'type' => 'string', ), @@ -144,10 +145,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'customField' => array( + 'note' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'list' => array( @@ -159,22 +159,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'minModifiedTimestampMs' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'pageToken' => array( + 'minModifiedTimestampMs' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'omitJobChanges' => array( 'location' => 'query', 'type' => 'boolean', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'teams/{teamId}/jobs/{jobId}', @@ -190,19 +190,20 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'customerName' => array( + 'address' => array( 'location' => 'query', 'type' => 'string', ), - 'title' => array( + 'assignee' => array( 'location' => 'query', 'type' => 'string', ), - 'note' => array( + 'customField' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'assignee' => array( + 'customerName' => array( 'location' => 'query', 'type' => 'string', ), @@ -210,26 +211,25 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'address' => array( + 'lat' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'number', ), - 'lat' => array( + 'lng' => array( 'location' => 'query', 'type' => 'number', ), - 'progress' => array( + 'note' => array( 'location' => 'query', 'type' => 'string', ), - 'lng' => array( + 'progress' => array( 'location' => 'query', - 'type' => 'number', + 'type' => 'string', ), - 'customField' => array( + 'title' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'update' => array( @@ -246,19 +246,20 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'customerName' => array( + 'address' => array( 'location' => 'query', 'type' => 'string', ), - 'title' => array( + 'assignee' => array( 'location' => 'query', 'type' => 'string', ), - 'note' => array( + 'customField' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'assignee' => array( + 'customerName' => array( 'location' => 'query', 'type' => 'string', ), @@ -266,26 +267,25 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'address' => array( + 'lat' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'number', ), - 'lat' => array( + 'lng' => array( 'location' => 'query', 'type' => 'number', ), - 'progress' => array( + 'note' => array( 'location' => 'query', 'type' => 'string', ), - 'lng' => array( + 'progress' => array( 'location' => 'query', - 'type' => 'number', + 'type' => 'string', ), - 'customField' => array( + 'title' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ), @@ -317,14 +317,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -369,15 +369,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'startTime' => array( + 'duration' => array( 'location' => 'query', 'type' => 'string', ), - 'duration' => array( + 'endTime' => array( 'location' => 'query', 'type' => 'string', ), - 'endTime' => array( + 'startTime' => array( 'location' => 'query', 'type' => 'string', ), @@ -400,15 +400,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'startTime' => array( + 'duration' => array( 'location' => 'query', 'type' => 'string', ), - 'duration' => array( + 'endTime' => array( 'location' => 'query', 'type' => 'string', ), - 'endTime' => array( + 'startTime' => array( 'location' => 'query', 'type' => 'string', ), @@ -431,11 +431,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'worker' => array( + 'dispatcher' => array( 'location' => 'query', 'type' => 'boolean', ), - 'dispatcher' => array( + 'worker' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -533,17 +533,17 @@ public function get($teamId, $jobId, $optParams = array()) * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName Customer name - * @opt_param string note Job note as newline (Unix) separated string * @opt_param string assignee Assignee email address, or empty string to * unassign. - * @opt_param string customerPhoneNumber Customer phone number * @opt_param string customField Sets the value of custom fields. To set a * custom field, pass the field id (from /team/teamId/custom_fields), a URL * escaped '=' character, and the desired value as a parameter. For example, * customField=12%3DAlice. Repeat the parameter for each custom field. Note that * '=' cannot appear in the parameter value. Specifying an invalid, or inactive * enum field will result in an error 500. + * @opt_param string customerName Customer name + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param string note Job note as newline (Unix) separated string * @return Google_Service_Coordinate_Job */ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -559,12 +559,12 @@ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coo * @param string $teamId Team ID * @param array $optParams Optional parameters. * + * @opt_param string maxResults Maximum number of results to return in one page. * @opt_param string minModifiedTimestampMs Minimum time a job was modified in * milliseconds since epoch. - * @opt_param string pageToken Continuation token - * @opt_param string maxResults Maximum number of results to return in one page. * @opt_param bool omitJobChanges Whether to omit detail job history * information. + * @opt_param string pageToken Continuation token * @return Google_Service_Coordinate_JobListResponse */ public function listJobs($teamId, $optParams = array()) @@ -583,22 +583,22 @@ public function listJobs($teamId, $optParams = array()) * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName Customer name - * @opt_param string title Job title - * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string address Job address as newline (Unix) separated string * @opt_param string assignee Assignee email address, or empty string to * unassign. - * @opt_param string customerPhoneNumber Customer phone number - * @opt_param string address Job address as newline (Unix) separated string - * @opt_param double lat The latitude coordinate of this job's location. - * @opt_param string progress Job progress - * @opt_param double lng The longitude coordinate of this job's location. * @opt_param string customField Sets the value of custom fields. To set a * custom field, pass the field id (from /team/teamId/custom_fields), a URL * escaped '=' character, and the desired value as a parameter. For example, * customField=12%3DAlice. Repeat the parameter for each custom field. Note that * '=' cannot appear in the parameter value. Specifying an invalid, or inactive * enum field will result in an error 500. + * @opt_param string customerName Customer name + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param double lat The latitude coordinate of this job's location. + * @opt_param double lng The longitude coordinate of this job's location. + * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string progress Job progress + * @opt_param string title Job title * @return Google_Service_Coordinate_Job */ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -617,22 +617,22 @@ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, * @param Google_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string customerName Customer name - * @opt_param string title Job title - * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string address Job address as newline (Unix) separated string * @opt_param string assignee Assignee email address, or empty string to * unassign. - * @opt_param string customerPhoneNumber Customer phone number - * @opt_param string address Job address as newline (Unix) separated string - * @opt_param double lat The latitude coordinate of this job's location. - * @opt_param string progress Job progress - * @opt_param double lng The longitude coordinate of this job's location. * @opt_param string customField Sets the value of custom fields. To set a * custom field, pass the field id (from /team/teamId/custom_fields), a URL * escaped '=' character, and the desired value as a parameter. For example, * customField=12%3DAlice. Repeat the parameter for each custom field. Note that * '=' cannot appear in the parameter value. Specifying an invalid, or inactive * enum field will result in an error 500. + * @opt_param string customerName Customer name + * @opt_param string customerPhoneNumber Customer phone number + * @opt_param double lat The latitude coordinate of this job's location. + * @opt_param double lng The longitude coordinate of this job's location. + * @opt_param string note Job note as newline (Unix) separated string + * @opt_param string progress Job progress + * @opt_param string title Job title * @return Google_Service_Coordinate_Job */ public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -663,8 +663,8 @@ class Google_Service_Coordinate_Location_Resource extends Google_Service_Resourc * epoch. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Continuation token * @opt_param string maxResults Maximum number of results to return in one page. + * @opt_param string pageToken Continuation token * @return Google_Service_Coordinate_LocationListResponse */ public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) @@ -712,9 +712,9 @@ public function get($teamId, $jobId, $optParams = array()) * * @opt_param bool allDay Whether the job is scheduled for the whole day. Time * of day in start/end times is ignored if this is true. - * @opt_param string startTime Scheduled start time in milliseconds since epoch. * @opt_param string duration Job duration in milliseconds. * @opt_param string endTime Scheduled end time in milliseconds since epoch. + * @opt_param string startTime Scheduled start time in milliseconds since epoch. * @return Google_Service_Coordinate_Schedule */ public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) @@ -734,9 +734,9 @@ public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postB * * @opt_param bool allDay Whether the job is scheduled for the whole day. Time * of day in start/end times is ignored if this is true. - * @opt_param string startTime Scheduled start time in milliseconds since epoch. * @opt_param string duration Job duration in milliseconds. * @opt_param string endTime Scheduled end time in milliseconds since epoch. + * @opt_param string startTime Scheduled start time in milliseconds since epoch. * @return Google_Service_Coordinate_Schedule */ public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) @@ -765,10 +765,10 @@ class Google_Service_Coordinate_Team_Resource extends Google_Service_Resource * * @opt_param bool admin Whether to include teams for which the user has the * Admin role. - * @opt_param bool worker Whether to include teams for which the user has the - * Worker role. * @opt_param bool dispatcher Whether to include teams for which the user has * the Dispatcher role. + * @opt_param bool worker Whether to include teams for which the user has the + * Worker role. * @return Google_Service_Coordinate_TeamListResponse */ public function listTeam($optParams = array()) diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php index 0f181af0b..71eef436a 100644 --- a/src/Google/Service/Customsearch.php +++ b/src/Google/Service/Customsearch.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'sort' => array( + 'c2coff' => array( 'location' => 'query', 'type' => 'string', ), - 'orTerms' => array( + 'cr' => array( 'location' => 'query', 'type' => 'string', ), - 'highRange' => array( + 'cref' => array( 'location' => 'query', 'type' => 'string', ), - 'num' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'cr' => array( + 'cx' => array( 'location' => 'query', 'type' => 'string', ), - 'imgType' => array( + 'dateRestrict' => array( 'location' => 'query', 'type' => 'string', ), - 'gl' => array( + 'exactTerms' => array( 'location' => 'query', 'type' => 'string', ), - 'relatedSite' => array( + 'excludeTerms' => array( 'location' => 'query', 'type' => 'string', ), - 'searchType' => array( + 'fileType' => array( 'location' => 'query', 'type' => 'string', ), - 'fileType' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', ), - 'start' => array( + 'gl' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'imgDominantColor' => array( + 'googlehost' => array( 'location' => 'query', 'type' => 'string', ), - 'lr' => array( + 'highRange' => array( 'location' => 'query', 'type' => 'string', ), - 'siteSearch' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'cref' => array( + 'hq' => array( 'location' => 'query', 'type' => 'string', ), - 'dateRestrict' => array( + 'imgColorType' => array( 'location' => 'query', 'type' => 'string', ), - 'safe' => array( + 'imgDominantColor' => array( 'location' => 'query', 'type' => 'string', ), - 'c2coff' => array( + 'imgSize' => array( 'location' => 'query', 'type' => 'string', ), - 'googlehost' => array( + 'imgType' => array( 'location' => 'query', 'type' => 'string', ), - 'hq' => array( + 'linkSite' => array( 'location' => 'query', 'type' => 'string', ), - 'exactTerms' => array( + 'lowRange' => array( 'location' => 'query', 'type' => 'string', ), - 'hl' => array( + 'lr' => array( 'location' => 'query', 'type' => 'string', ), - 'lowRange' => array( + 'num' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'imgSize' => array( + 'orTerms' => array( 'location' => 'query', 'type' => 'string', ), - 'imgColorType' => array( + 'relatedSite' => array( 'location' => 'query', 'type' => 'string', ), @@ -167,26 +163,30 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'excludeTerms' => array( + 'safe' => array( 'location' => 'query', 'type' => 'string', ), - 'filter' => array( + 'searchType' => array( 'location' => 'query', 'type' => 'string', ), - 'linkSite' => array( + 'siteSearch' => array( 'location' => 'query', 'type' => 'string', ), - 'cx' => array( + 'siteSearchFilter' => array( 'location' => 'query', 'type' => 'string', ), - 'siteSearchFilter' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', ), + 'start' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -214,57 +214,57 @@ class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource * @param string $q Query * @param array $optParams Optional parameters. * - * @opt_param string sort The sort expression to apply to the results - * @opt_param string orTerms Provides additional search terms to check for in a - * document, where each document in the search results must contain at least one - * of the additional search terms - * @opt_param string highRange Creates a range in form as_nlo value..as_nhi - * value and attempts to append it to query - * @opt_param string num Number of search results to return + * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW. * @opt_param string cr Country restrict(s). - * @opt_param string imgType Returns images of a type, which can be one of: - * clipart, face, lineart, news, and photo. - * @opt_param string gl Geolocation of end user. - * @opt_param string relatedSite Specifies that all search results should be - * pages that are related to the specified URL - * @opt_param string searchType Specifies the search type: image. - * @opt_param string fileType Returns images of a specified type. Some of the - * allowed values are: bmp, gif, png, jpg, svg, pdf, ... - * @opt_param string start The index of the first result to return - * @opt_param string imgDominantColor Returns images of a specific dominant - * color: yellow, green, teal, blue, purple, pink, white, gray, black and brown. - * @opt_param string lr The language restriction for the search results - * @opt_param string siteSearch Specifies all search results should be pages - * from a given site * @opt_param string cref The URL of a linked custom search engine + * @opt_param string 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 safe Search safety level - * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW. - * @opt_param string googlehost The local Google domain to use to perform the - * search. - * @opt_param string hq Appends the extra query terms to the query. * @opt_param string exactTerms Identifies a phrase that all documents in the * search results must contain - * @opt_param string hl Sets the user interface language. - * @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value - * and attempts to append it to query - * @opt_param string imgSize Returns images of a specified size, where size can - * be one of: icon, small, medium, large, xlarge, xxlarge, and huge. - * @opt_param string imgColorType Returns black and white, grayscale, or color - * images: mono, gray, and color. - * @opt_param string rights Filters based on licensing. Supported values - * include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, - * cc_nonderived and combinations of these. * @opt_param string excludeTerms Identifies a word or phrase that should not * appear in any documents in the search results + * @opt_param string 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 cx The custom search engine ID to scope this search query + * @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()) @@ -1080,14 +1080,6 @@ public function getName() } } -class Google_Service_Customsearch_ResultPagemap extends Google_Model -{ -} - -class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model -{ -} - class Google_Service_Customsearch_Search extends Google_Collection { protected $collection_key = 'promotions'; @@ -1176,10 +1168,6 @@ public function getUrl() } } -class Google_Service_Customsearch_SearchQueries extends Google_Model -{ -} - class Google_Service_Customsearch_SearchSearchInformation extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/DataTransfer.php b/src/Google/Service/DataTransfer.php index ceec9517d..7af04ff22 100644 --- a/src/Google/Service/DataTransfer.php +++ b/src/Google/Service/DataTransfer.php @@ -1,6 +1,6 @@ 'applications', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'customerId' => array( 'location' => 'query', 'type' => 'string', @@ -86,6 +82,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -115,7 +115,7 @@ public function __construct(Google_Client $client) 'path' => 'transfers', 'httpMethod' => 'GET', 'parameters' => array( - 'status' => array( + 'customerId' => array( 'location' => 'query', 'type' => 'string', ), @@ -135,7 +135,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'customerId' => array( + 'status' => array( 'location' => 'query', 'type' => 'string', ), @@ -180,10 +180,10 @@ public function get($applicationId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token to specify next page in the list. * @opt_param string customerId Immutable ID of the Google Apps account. - * @opt_param string maxResults Maximum number of results to return. Default is + * @opt_param int maxResults Maximum number of results to return. Default is * 100. + * @opt_param string pageToken Token to specify next page in the list. * @return Google_Service_DataTransfer_ApplicationsListResponse */ public function listApplications($optParams = array()) @@ -240,13 +240,13 @@ public function insert(Google_Service_DataTransfer_DataTransfer $postBody, $optP * * @param array $optParams Optional parameters. * - * @opt_param string status Status of the transfer. + * @opt_param string customerId Immutable ID of the Google Apps account. * @opt_param int maxResults Maximum number of results to return. Default is * 100. * @opt_param string newOwnerUserId Destination user's profile ID. * @opt_param string oldOwnerUserId Source user's profile ID. * @opt_param string pageToken Token to specify the next page in the list. - * @opt_param string customerId Immutable ID of the Google Apps account. + * @opt_param string status Status of the transfer. * @return Google_Service_DataTransfer_DataTransfersListResponse */ public function listTransfers($optParams = array()) diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index 423afcaf0..616198197 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -1,6 +1,6 @@ version = 'v1b3'; $this->serviceName = 'dataflow'; + $this->projects = new Google_Service_Dataflow_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'workerMessages' => array( + 'path' => 'v1b3/projects/{projectId}/WorkerMessages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects_jobs = new Google_Service_Dataflow_ProjectsJobs_Resource( $this, $this->serviceName, @@ -70,11 +91,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'replaceJobId' => array( + 'view' => array( 'location' => 'query', 'type' => 'string', ), - 'view' => array( + 'replaceJobId' => array( 'location' => 'query', 'type' => 'string', ), @@ -126,7 +147,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'view' => array( 'location' => 'query', 'type' => 'string', ), @@ -134,7 +155,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'view' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -178,6 +199,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'minimumImportance' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -194,10 +219,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'minimumImportance' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -257,6 +278,21 @@ public function __construct(Google_Client $client) */ class Google_Service_Dataflow_Projects_Resource extends Google_Service_Resource { + + /** + * Send a worker_message to the service. (projects.workerMessages) + * + * @param string $projectId The project to send the WorkerMessages to. + * @param Google_SendWorkerMessagesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_SendWorkerMessagesResponse + */ + public function workerMessages($projectId, Google_Service_Dataflow_SendWorkerMessagesRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('workerMessages', array($params), "Google_Service_Dataflow_SendWorkerMessagesResponse"); + } } /** @@ -277,9 +313,9 @@ class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resou * @param Google_Job $postBody * @param array $optParams Optional parameters. * + * @opt_param string view Level of information requested in response. * @opt_param string replaceJobId DEPRECATED. This field is now on the Job * message. - * @opt_param string view Level of information requested in response. * @return Google_Service_Dataflow_Job */ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) @@ -331,13 +367,13 @@ public function getMetrics($projectId, $jobId, $optParams = array()) * @param string $projectId The project which owns the jobs. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Set this to the 'next_page_token' field of a - * previous response to request additional results in a long list. + * @opt_param string view Level of information requested in response. Default is + * SUMMARY. * @opt_param int pageSize If there are many jobs, limit response to at most * this many. The actual number of jobs returned will be the lesser of * max_responses and an unspecified server-defined limit. - * @opt_param string view Level of information requested in response. Default is - * SUMMARY. + * @opt_param string pageToken Set this to the 'next_page_token' field of a + * previous response to request additional results in a long list. * @return Google_Service_Dataflow_ListJobsResponse */ public function listProjectsJobs($projectId, $optParams = array()) @@ -382,6 +418,8 @@ class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Servi * @param string $jobId The job to get messages about. * @param array $optParams Optional parameters. * + * @opt_param string minimumImportance Filter to only get messages with + * importance >= level * @opt_param int pageSize If specified, determines the maximum number of * messages to return. If unspecified, the service may choose an appropriate * default, or may return an arbitrarily large number of results. @@ -393,8 +431,6 @@ class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Servi * beginning of messages). * @opt_param string endTime Return only messages with timestamps < end_time. * The default is now (i.e. return up to the latest messages available). - * @opt_param string minimumImportance Filter to only get messages with - * importance >= level * @return Google_Service_Dataflow_ListJobMessagesResponse */ public function listProjectsJobsMessages($projectId, $jobId, $optParams = array()) @@ -488,6 +524,80 @@ public function getRemainingTime() } } +class Google_Service_Dataflow_ApproximateReportedProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $consumedParallelismType = 'Google_Service_Dataflow_ReportedParallelism'; + protected $consumedParallelismDataType = ''; + public $fractionConsumed; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + protected $remainingParallelismType = 'Google_Service_Dataflow_ReportedParallelism'; + protected $remainingParallelismDataType = ''; + + + public function setConsumedParallelism(Google_Service_Dataflow_ReportedParallelism $consumedParallelism) + { + $this->consumedParallelism = $consumedParallelism; + } + public function getConsumedParallelism() + { + return $this->consumedParallelism; + } + public function setFractionConsumed($fractionConsumed) + { + $this->fractionConsumed = $fractionConsumed; + } + public function getFractionConsumed() + { + return $this->fractionConsumed; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setRemainingParallelism(Google_Service_Dataflow_ReportedParallelism $remainingParallelism) + { + $this->remainingParallelism = $remainingParallelism; + } + public function getRemainingParallelism() + { + return $this->remainingParallelism; + } +} + +class Google_Service_Dataflow_ApproximateSplitRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $fractionConsumed; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + + + public function setFractionConsumed($fractionConsumed) + { + $this->fractionConsumed = $fractionConsumed; + } + public function getFractionConsumed() + { + return $this->fractionConsumed; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + class Google_Service_Dataflow_AutoscalingSettings extends Google_Model { protected $internal_gapi_mappings = array( @@ -842,22 +952,6 @@ public function getWorkerPools() } } -class Google_Service_Dataflow_EnvironmentInternalExperiments extends Google_Model -{ -} - -class Google_Service_Dataflow_EnvironmentSdkPipelineOptions extends Google_Model -{ -} - -class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model -{ -} - -class Google_Service_Dataflow_EnvironmentVersion extends Google_Model -{ -} - class Google_Service_Dataflow_FlattenInstruction extends Google_Collection { protected $collection_key = 'inputs'; @@ -938,13 +1032,9 @@ public function getSystemName() } } -class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model -{ -} - class Google_Service_Dataflow_Job extends Google_Collection { - protected $collection_key = 'steps'; + protected $collection_key = 'tempFiles'; protected $internal_gapi_mappings = array( ); public $clientRequestId; @@ -963,6 +1053,7 @@ class Google_Service_Dataflow_Job extends Google_Collection public $requestedState; protected $stepsType = 'Google_Service_Dataflow_Step'; protected $stepsDataType = 'array'; + public $tempFiles; public $transformNameMapping; public $type; @@ -1071,6 +1162,14 @@ public function getSteps() { return $this->steps; } + public function setTempFiles($tempFiles) + { + $this->tempFiles = $tempFiles; + } + public function getTempFiles() + { + return $this->tempFiles; + } public function setTransformNameMapping($transformNameMapping) { $this->transformNameMapping = $transformNameMapping; @@ -1107,10 +1206,6 @@ public function getStages() } } -class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model -{ -} - class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection { protected $collection_key = 'stepName'; @@ -1201,10 +1296,6 @@ public function getMetrics() } } -class Google_Service_Dataflow_JobTransformNameMapping extends Google_Model -{ -} - class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model { protected $internal_gapi_mappings = array( @@ -1494,10 +1585,6 @@ public function getOrigin() } } -class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model -{ -} - class Google_Service_Dataflow_MetricUpdate extends Google_Model { protected $internal_gapi_mappings = array( @@ -1705,10 +1792,6 @@ public function getUserFn() } } -class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model -{ -} - class Google_Service_Dataflow_ParallelInstruction extends Google_Collection { protected $collection_key = 'outputs'; @@ -1796,13 +1879,16 @@ public function getWrite() } } -class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model +class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Collection { + protected $collection_key = 'sideInputs'; protected $internal_gapi_mappings = array( ); protected $inputType = 'Google_Service_Dataflow_InstructionInput'; protected $inputDataType = ''; public $inputElementCodec; + protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $sideInputsDataType = 'array'; public $valueCombiningFn; @@ -1822,6 +1908,14 @@ public function getInputElementCodec() { return $this->inputElementCodec; } + public function setSideInputs($sideInputs) + { + $this->sideInputs = $sideInputs; + } + public function getSideInputs() + { + return $this->sideInputs; + } public function setValueCombiningFn($valueCombiningFn) { $this->valueCombiningFn = $valueCombiningFn; @@ -1832,14 +1926,6 @@ public function getValueCombiningFn() } } -class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model -{ -} - -class Google_Service_Dataflow_PartialGroupByKeyInstructionValueCombiningFn extends Google_Model -{ -} - class Google_Service_Dataflow_Position extends Google_Model { protected $internal_gapi_mappings = array( @@ -2039,6 +2125,70 @@ public function getWorkItemServiceStates() } } +class Google_Service_Dataflow_ReportedParallelism extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $isInfinite; + public $value; + + + public function setIsInfinite($isInfinite) + { + $this->isInfinite = $isInfinite; + } + public function getIsInfinite() + { + return $this->isInfinite; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Dataflow_SendWorkerMessagesRequest extends Google_Collection +{ + protected $collection_key = 'workerMessages'; + protected $internal_gapi_mappings = array( + ); + protected $workerMessagesType = 'Google_Service_Dataflow_WorkerMessage'; + protected $workerMessagesDataType = 'array'; + + + public function setWorkerMessages($workerMessages) + { + $this->workerMessages = $workerMessages; + } + public function getWorkerMessages() + { + return $this->workerMessages; + } +} + +class Google_Service_Dataflow_SendWorkerMessagesResponse extends Google_Collection +{ + protected $collection_key = 'workerMessageResponses'; + protected $internal_gapi_mappings = array( + ); + protected $workerMessageResponsesType = 'Google_Service_Dataflow_WorkerMessageResponse'; + protected $workerMessageResponsesDataType = 'array'; + + + public function setWorkerMessageResponses($workerMessageResponses) + { + $this->workerMessageResponses = $workerMessageResponses; + } + public function getWorkerMessageResponses() + { + return $this->workerMessageResponses; + } +} + class Google_Service_Dataflow_SeqMapTask extends Google_Collection { protected $collection_key = 'outputInfos'; @@ -2131,10 +2281,6 @@ public function getTag() } } -class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model -{ -} - class Google_Service_Dataflow_ShellTask extends Google_Model { protected $internal_gapi_mappings = array( @@ -2198,10 +2344,6 @@ public function getTag() } } -class Google_Service_Dataflow_SideInputInfoKind extends Google_Model -{ -} - class Google_Service_Dataflow_Sink extends Google_Model { protected $internal_gapi_mappings = array( @@ -2228,14 +2370,6 @@ public function getSpec() } } -class Google_Service_Dataflow_SinkCodec extends Google_Model -{ -} - -class Google_Service_Dataflow_SinkSpec extends Google_Model -{ -} - class Google_Service_Dataflow_Source extends Google_Collection { protected $collection_key = 'baseSpecs'; @@ -2291,14 +2425,6 @@ public function getSpec() } } -class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model -{ -} - -class Google_Service_Dataflow_SourceCodec extends Google_Model -{ -} - class Google_Service_Dataflow_SourceFork extends Google_Model { protected $internal_gapi_mappings = array( @@ -2474,10 +2600,6 @@ public function getSplit() } } -class Google_Service_Dataflow_SourceSpec extends Google_Model -{ -} - class Google_Service_Dataflow_SourceSplitOptions extends Google_Model { protected $internal_gapi_mappings = array( @@ -2659,10 +2781,6 @@ public function getMessage() } } -class Google_Service_Dataflow_StatusDetails extends Google_Model -{ -} - class Google_Service_Dataflow_Step extends Google_Model { protected $internal_gapi_mappings = array( @@ -2698,10 +2816,6 @@ public function getProperties() } } -class Google_Service_Dataflow_StepProperties extends Google_Model -{ -} - class Google_Service_Dataflow_StreamLocation extends Google_Model { protected $internal_gapi_mappings = array( @@ -2820,12 +2934,21 @@ class Google_Service_Dataflow_StreamingSetupTask extends Google_Model { protected $internal_gapi_mappings = array( ); + public $drain; public $receiveWorkPort; protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; protected $streamingComputationTopologyDataType = ''; public $workerHarnessPort; + public function setDrain($drain) + { + $this->drain = $drain; + } + public function getDrain() + { + return $this->drain; + } public function setReceiveWorkPort($receiveWorkPort) { $this->receiveWorkPort = $receiveWorkPort; @@ -3085,6 +3208,7 @@ class Google_Service_Dataflow_TopologyConfig extends Google_Collection protected $computationsDataType = 'array'; protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; protected $dataDiskAssignmentsDataType = 'array'; + public $forwardingKeyBits; public $userStageToComputationNameMap; @@ -3104,6 +3228,14 @@ public function getDataDiskAssignments() { return $this->dataDiskAssignments; } + public function setForwardingKeyBits($forwardingKeyBits) + { + $this->forwardingKeyBits = $forwardingKeyBits; + } + public function getForwardingKeyBits() + { + return $this->forwardingKeyBits; + } public function setUserStageToComputationNameMap($userStageToComputationNameMap) { $this->userStageToComputationNameMap = $userStageToComputationNameMap; @@ -3114,10 +3246,6 @@ public function getUserStageToComputationNameMap() } } -class Google_Service_Dataflow_TopologyConfigUserStageToComputationNameMap extends Google_Model -{ -} - class Google_Service_Dataflow_WorkItem extends Google_Collection { protected $collection_key = 'packages'; @@ -3268,6 +3396,8 @@ class Google_Service_Dataflow_WorkItemServiceState extends Google_Model public $leaseExpireTime; public $nextReportIndex; public $reportStatusInterval; + protected $splitRequestType = 'Google_Service_Dataflow_ApproximateSplitRequest'; + protected $splitRequestDataType = ''; protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; protected $suggestedStopPointDataType = ''; protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; @@ -3306,6 +3436,14 @@ public function getReportStatusInterval() { return $this->reportStatusInterval; } + public function setSplitRequest(Google_Service_Dataflow_ApproximateSplitRequest $splitRequest) + { + $this->splitRequest = $splitRequest; + } + public function getSplitRequest() + { + return $this->splitRequest; + } public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) { $this->suggestedStopPoint = $suggestedStopPoint; @@ -3324,10 +3462,6 @@ public function getSuggestedStopPosition() } } -class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model -{ -} - class Google_Service_Dataflow_WorkItemStatus extends Google_Collection { protected $collection_key = 'metricUpdates'; @@ -3343,6 +3477,8 @@ class Google_Service_Dataflow_WorkItemStatus extends Google_Collection protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; protected $progressDataType = ''; public $reportIndex; + protected $reportedProgressType = 'Google_Service_Dataflow_ApproximateReportedProgress'; + protected $reportedProgressDataType = ''; public $requestedLeaseDuration; protected $sourceForkType = 'Google_Service_Dataflow_SourceFork'; protected $sourceForkDataType = ''; @@ -3401,6 +3537,14 @@ public function getReportIndex() { return $this->reportIndex; } + public function setReportedProgress(Google_Service_Dataflow_ApproximateReportedProgress $reportedProgress) + { + $this->reportedProgress = $reportedProgress; + } + public function getReportedProgress() + { + return $this->reportedProgress; + } public function setRequestedLeaseDuration($requestedLeaseDuration) { $this->requestedLeaseDuration = $requestedLeaseDuration; @@ -3443,6 +3587,158 @@ public function getWorkItemId() } } +class Google_Service_Dataflow_WorkerHealthReport extends Google_Collection +{ + protected $collection_key = 'pods'; + protected $internal_gapi_mappings = array( + ); + public $pods; + public $reportInterval; + public $vmIsHealthy; + public $vmStartupTime; + + + public function setPods($pods) + { + $this->pods = $pods; + } + public function getPods() + { + return $this->pods; + } + public function setReportInterval($reportInterval) + { + $this->reportInterval = $reportInterval; + } + public function getReportInterval() + { + return $this->reportInterval; + } + public function setVmIsHealthy($vmIsHealthy) + { + $this->vmIsHealthy = $vmIsHealthy; + } + public function getVmIsHealthy() + { + return $this->vmIsHealthy; + } + public function setVmStartupTime($vmStartupTime) + { + $this->vmStartupTime = $vmStartupTime; + } + public function getVmStartupTime() + { + return $this->vmStartupTime; + } +} + +class Google_Service_Dataflow_WorkerHealthReportResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $reportInterval; + + + public function setReportInterval($reportInterval) + { + $this->reportInterval = $reportInterval; + } + public function getReportInterval() + { + return $this->reportInterval; + } +} + +class Google_Service_Dataflow_WorkerMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $labels; + public $time; + protected $workerHealthReportType = 'Google_Service_Dataflow_WorkerHealthReport'; + protected $workerHealthReportDataType = ''; + protected $workerMessageCodeType = 'Google_Service_Dataflow_WorkerMessageCode'; + protected $workerMessageCodeDataType = ''; + + + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } + public function setWorkerHealthReport(Google_Service_Dataflow_WorkerHealthReport $workerHealthReport) + { + $this->workerHealthReport = $workerHealthReport; + } + public function getWorkerHealthReport() + { + return $this->workerHealthReport; + } + public function setWorkerMessageCode(Google_Service_Dataflow_WorkerMessageCode $workerMessageCode) + { + $this->workerMessageCode = $workerMessageCode; + } + public function getWorkerMessageCode() + { + return $this->workerMessageCode; + } +} + +class Google_Service_Dataflow_WorkerMessageCode extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $parameters; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + public function getParameters() + { + return $this->parameters; + } +} + +class Google_Service_Dataflow_WorkerMessageResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $workerHealthReportResponseType = 'Google_Service_Dataflow_WorkerHealthReportResponse'; + protected $workerHealthReportResponseDataType = ''; + + + public function setWorkerHealthReportResponse(Google_Service_Dataflow_WorkerHealthReportResponse $workerHealthReportResponse) + { + $this->workerHealthReportResponse = $workerHealthReportResponse; + } + public function getWorkerHealthReportResponse() + { + return $this->workerHealthReportResponse; + } +} + class Google_Service_Dataflow_WorkerPool extends Google_Collection { protected $collection_key = 'packages'; @@ -3468,6 +3764,7 @@ class Google_Service_Dataflow_WorkerPool extends Google_Collection protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; protected $taskrunnerSettingsDataType = ''; public $teardownPolicy; + public $workerHarnessContainerImage; public $zone; @@ -3599,6 +3896,14 @@ public function getTeardownPolicy() { return $this->teardownPolicy; } + public function setWorkerHarnessContainerImage($workerHarnessContainerImage) + { + $this->workerHarnessContainerImage = $workerHarnessContainerImage; + } + public function getWorkerHarnessContainerImage() + { + return $this->workerHarnessContainerImage; + } public function setZone($zone) { $this->zone = $zone; @@ -3609,14 +3914,6 @@ public function getZone() } } -class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model -{ -} - -class Google_Service_Dataflow_WorkerPoolPoolArgs extends Google_Model -{ -} - class Google_Service_Dataflow_WorkerSettings extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Dataproc.php b/src/Google/Service/Dataproc.php new file mode 100644 index 000000000..7ee874630 --- /dev/null +++ b/src/Google/Service/Dataproc.php @@ -0,0 +1,321 @@ + + * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_Dataproc extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Administrate log data for your projects. */ + const LOGGING_ADMIN = + "https://www.googleapis.com/auth/logging.admin"; + /** View log data for your projects. */ + const LOGGING_READ = + "https://www.googleapis.com/auth/logging.read"; + /** Submit log data for your projects. */ + const LOGGING_WRITE = + "https://www.googleapis.com/auth/logging.write"; + + public $media; + + + /** + * Constructs the internal representation of the Dataproc service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://dataproc.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'dataproc'; + + $this->media = new Google_Service_Dataproc_Media_Resource( + $this, + $this->serviceName, + 'media', + array( + 'methods' => array( + 'download' => array( + 'path' => 'v1/media/{+resourceName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => 'v1/media/{+resourceName}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "media" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $media = $dataprocService->media; + * + */ +class Google_Service_Dataproc_Media_Resource extends Google_Service_Resource +{ + + /** + * Method for media download. Download is supported on the URI + * `/v1/media/{+name}?alt=media`. (media.download) + * + * @param string $resourceName Name of the media that is being downloaded. See + * [][ByteStream.ReadRequest.resource_name]. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Media + */ + public function download($resourceName, $optParams = array()) + { + $params = array('resourceName' => $resourceName); + $params = array_merge($params, $optParams); + return $this->call('download', array($params), "Google_Service_Dataproc_Media"); + } + + /** + * Method for media upload. Upload is supported on the URI + * `/upload/v1/media/{+name}`. (media.upload) + * + * @param string $resourceName Name of the media that is being downloaded. See + * [][ByteStream.ReadRequest.resource_name]. + * @param Google_Media $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Media + */ + public function upload($resourceName, Google_Service_Dataproc_Media $postBody, $optParams = array()) + { + $params = array('resourceName' => $resourceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_Dataproc_Media"); + } +} + + + + +class Google_Service_Dataproc_DiagnoseClusterOutputLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputUri; + + + public function setOutputUri($outputUri) + { + $this->outputUri = $outputUri; + } + public function getOutputUri() + { + return $this->outputUri; + } +} + +class Google_Service_Dataproc_Media extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $resourceName; + + + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; + } +} + +class Google_Service_Dataproc_OperationMetadata extends Google_Collection +{ + protected $collection_key = 'statusHistory'; + protected $internal_gapi_mappings = array( + ); + public $clusterName; + public $clusterUuid; + public $details; + public $endTime; + public $innerState; + public $insertTime; + public $startTime; + public $state; + protected $statusType = 'Google_Service_Dataproc_OperationStatus'; + protected $statusDataType = ''; + protected $statusHistoryType = 'Google_Service_Dataproc_OperationStatus'; + protected $statusHistoryDataType = 'array'; + + + public function setClusterName($clusterName) + { + $this->clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + public function setClusterUuid($clusterUuid) + { + $this->clusterUuid = $clusterUuid; + } + public function getClusterUuid() + { + return $this->clusterUuid; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setInnerState($innerState) + { + $this->innerState = $innerState; + } + public function getInnerState() + { + return $this->innerState; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStatus(Google_Service_Dataproc_OperationStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusHistory($statusHistory) + { + $this->statusHistory = $statusHistory; + } + public function getStatusHistory() + { + return $this->statusHistory; + } +} + +class Google_Service_Dataproc_OperationStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $details; + public $innerState; + public $state; + public $stateStartTime; + + + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setInnerState($innerState) + { + $this->innerState = $innerState; + } + public function getInnerState() + { + return $this->innerState; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStateStartTime($stateStartTime) + { + $this->stateStartTime = $stateStartTime; + } + public function getStateStartTime() + { + return $this->stateStartTime; + } +} diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php index a7c58dbc2..2a4216dff 100644 --- a/src/Google/Service/Datastore.php +++ b/src/Google/Service/Datastore.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{project}/global/deployments/{deployment}', @@ -165,17 +165,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'preview' => array( + 'createPolicy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'deletePolicy' => array( 'location' => 'query', 'type' => 'string', ), - 'createPolicy' => array( + 'preview' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'stop' => array( @@ -207,17 +207,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'preview' => array( + 'createPolicy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'deletePolicy' => array( 'location' => 'query', 'type' => 'string', ), - 'createPolicy' => array( + 'preview' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ), @@ -268,14 +268,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -315,14 +315,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -372,14 +372,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -404,14 +404,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -513,21 +513,37 @@ public function insert($project, Google_Service_DeploymentManager_Deployment $po * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_DeploymentManager_DeploymentsListResponse */ public function listDeployments($project, $optParams = array()) @@ -546,19 +562,19 @@ public function listDeployments($project, $optParams = array()) * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @opt_param string deletePolicy Sets the policy to use for deleting resources. * @opt_param bool preview If set to true, updates the deployment and creates * and updates the "shell" resources but does not actually alter or instantiate - * these resources. This allows you to preview what your deployment looks like. - * You can use this intent to preview how an update would affect your + * these resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your * deployment. You must provide a target.config with a configuration if this is * set to true. After previewing a deployment, you can deploy your resources by * making a request with the update() or you can cancelPreview() to remove the * preview altogether. Note that the deployment will still exist after you * cancel the preview and you must separately delete this deployment if you want * to remove it. - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. * @return Google_Service_DeploymentManager_Operation */ public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) @@ -595,19 +611,19 @@ public function stop($project, $deployment, Google_Service_DeploymentManager_Dep * @param Google_Deployment $postBody * @param array $optParams Optional parameters. * + * @opt_param string createPolicy Sets the policy to use for creating new + * resources. + * @opt_param string deletePolicy Sets the policy to use for deleting resources. * @opt_param bool preview If set to true, updates the deployment and creates * and updates the "shell" resources but does not actually alter or instantiate - * these resources. This allows you to preview what your deployment looks like. - * You can use this intent to preview how an update would affect your + * these resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your * deployment. You must provide a target.config with a configuration if this is * set to true. After previewing a deployment, you can deploy your resources by * making a request with the update() or you can cancelPreview() to remove the * preview altogether. Note that the deployment will still exist after you * cancel the preview and you must separately delete this deployment if you want * to remove it. - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. * @return Google_Service_DeploymentManager_Operation */ public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) @@ -654,21 +670,37 @@ public function get($project, $deployment, $manifest, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_DeploymentManager_ManifestsListResponse */ public function listManifests($project, $deployment, $optParams = array()) @@ -713,21 +745,37 @@ public function get($project, $operation, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_DeploymentManager_OperationsListResponse */ public function listOperations($project, $optParams = array()) @@ -774,21 +822,37 @@ public function get($project, $deployment, $resource, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_DeploymentManager_ResourcesListResponse */ public function listResources($project, $deployment, $optParams = array()) @@ -818,21 +882,37 @@ class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Res * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances whose name is not equal to example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. * - * For example, filter=name ne example-instance. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. - * @opt_param string maxResults Maximum count of results to be returned. + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_DeploymentManager_TypesListResponse */ public function listTypes($project, $optParams = array()) @@ -863,14 +943,17 @@ public function getContent() } } -class Google_Service_DeploymentManager_Deployment extends Google_Model +class Google_Service_DeploymentManager_Deployment extends Google_Collection { + protected $collection_key = 'labels'; protected $internal_gapi_mappings = array( ); public $description; public $fingerprint; public $id; public $insertTime; + protected $labelsType = 'Google_Service_DeploymentManager_DeploymentLabelEntry'; + protected $labelsDataType = 'array'; public $manifest; public $name; protected $operationType = 'Google_Service_DeploymentManager_Operation'; @@ -913,6 +996,14 @@ public function getInsertTime() { return $this->insertTime; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setManifest($manifest) { $this->manifest = $manifest; @@ -955,13 +1046,50 @@ public function getUpdate() } } -class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Model +class Google_Service_DeploymentManager_DeploymentLabelEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_DeploymentUpdate extends Google_Collection { + protected $collection_key = 'labels'; protected $internal_gapi_mappings = array( ); + protected $labelsType = 'Google_Service_DeploymentManager_DeploymentUpdateLabelEntry'; + protected $labelsDataType = 'array'; public $manifest; + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setManifest($manifest) { $this->manifest = $manifest; @@ -972,6 +1100,32 @@ public function getManifest() } } +class Google_Service_DeploymentManager_DeploymentUpdateLabelEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_DeploymentManager_DeploymentmanagerResource extends Google_Collection { protected $collection_key = 'warnings'; @@ -1351,6 +1505,7 @@ class Google_Service_DeploymentManager_Operation extends Google_Collection ); public $clientOperationId; public $creationTimestamp; + public $description; public $endTime; protected $errorType = 'Google_Service_DeploymentManager_OperationError'; protected $errorDataType = ''; @@ -1391,6 +1546,14 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setEndTime($endTime) { $this->endTime = $endTime; diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php index 11e14e2ca..a63ba0c8b 100644 --- a/src/Google/Service/Dfareporting.php +++ b/src/Google/Service/Dfareporting.php @@ -1,6 +1,6 @@ * Manage your DoubleClick Campaign Manager ad campaigns and reports.

    @@ -104,8 +104,9 @@ class Google_Service_Dfareporting extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dfareporting/v2.1/'; - $this->version = 'v2.1'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'dfareporting/v2.4/'; + $this->version = 'v2.4'; $this->serviceName = 'dfareporting'; $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( @@ -243,17 +244,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'ids' => array( 'location' => 'query', @@ -268,7 +261,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'userRoleId' => array( + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), @@ -276,9 +273,13 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'active' => array( + 'subaccountId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + ), + 'userRoleId' => array( + 'location' => 'query', + 'type' => 'string', ), ), ),'patch' => array( @@ -340,13 +341,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'ids' => array( 'location' => 'query', @@ -361,13 +358,17 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'active' => array( + 'sortField' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', ), ), ),'patch' => array( @@ -439,56 +440,56 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'landingPageIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'overriddenEventTagId' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'campaignIds' => array( + 'advertiserId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'archived' => array( 'location' => 'query', 'type' => 'boolean', ), - 'creativeOptimizationConfigurationIds' => array( + 'audienceSegmentIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sslCompliant' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sizeIds' => array( + 'campaignIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( + 'compatibility' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'creativeIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'type' => array( + 'creativeOptimizationConfigurationIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sslRequired' => array( + 'creativeType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dynamicClickTracker' => array( 'location' => 'query', 'type' => 'boolean', ), - 'creativeIds' => array( + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'landingPageIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -497,54 +498,54 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'creativeType' => array( + 'overriddenEventTagId' => array( 'location' => 'query', 'type' => 'string', ), - 'placementIds' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'compatibility' => array( + 'placementIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'advertiserId' => array( + 'remarketingListIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'sizeIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'audienceSegmentIds' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'ids' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'remarketingListIds' => array( + 'sslCompliant' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'boolean', ), - 'dynamicClickTracker' => array( + 'sslRequired' => array( 'location' => 'query', 'type' => 'boolean', ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), ), ),'patch' => array( 'path' => 'userprofiles/{profileId}/ads', @@ -630,14 +631,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -651,6 +644,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -725,56 +726,56 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'status' => array( + 'advertiserGroupIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'searchString' => array( + 'floodlightConfigurationIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'subaccountId' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'includeAdvertisersWithoutGroupsOnly' => array( 'location' => 'query', 'type' => 'boolean', ), - 'sortField' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'ids' => array( + 'onlyParent' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'boolean', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'onlyParent' => array( + 'sortField' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), - 'floodlightConfigurationIds' => array( + 'status' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'advertiserGroupIds' => array( + 'subaccountId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'patch' => array( @@ -861,6 +862,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -869,10 +874,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) @@ -928,23 +929,25 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'archived' => array( + 'advertiserGroupIds' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, ), - 'searchString' => array( + 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'subaccountId' => array( + 'archived' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'sortField' => array( + 'atLeastOneOptimizationActivity' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'advertiserIds' => array( + 'excludedIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -958,31 +961,29 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'excludedIds' => array( + 'overriddenEventTagId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'advertiserGroupIds' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'sortOrder' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'overriddenEventTagId' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), - 'atLeastOneOptimizationActivity' => array( + 'subaccountId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ),'patch' => array( @@ -1044,48 +1045,48 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'minChangeTime' => array( + 'action' => array( 'location' => 'query', 'type' => 'string', ), - 'searchString' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'maxChangeTime' => array( 'location' => 'query', 'type' => 'string', ), - 'userProfileIds' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), - 'ids' => array( + 'minChangeTime' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', ), 'objectIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'objectType' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'action' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'objectType' => array( + 'userProfileIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ), @@ -1107,21 +1108,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'dartIds' => array( + 'countryDartIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'namePrefix' => array( + 'dartIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'regionDartIds' => array( + 'namePrefix' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'countryDartIds' => array( + 'regionDartIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -1221,14 +1222,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -1242,6 +1235,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -1411,26 +1412,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'sortField' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'ids' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'maxResults' => array( + 'sortField' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'sortOrder' => array( 'location' => 'query', @@ -1531,14 +1532,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', @@ -1557,6 +1550,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -1631,33 +1632,33 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( + 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'sortField' => array( + 'groupNumber' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'advertiserIds' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'groupNumber' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'ids' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'pageToken' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), @@ -1735,28 +1736,28 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sizeIds' => array( + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'advertiserId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'archived' => array( 'location' => 'query', 'type' => 'boolean', ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), 'campaignId' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'companionCreativeIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'renderingIds' => array( + 'creativeFieldIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -1770,35 +1771,35 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'advertiserId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'renderingIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'studioCreativeId' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'sizeIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'companionCreativeIds' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'active' => array( + 'sortOrder' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'creativeFieldIds' => array( + 'studioCreativeId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'types' => array( 'location' => 'query', @@ -1850,14 +1851,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1893,19 +1894,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), 'directorySiteIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -1919,6 +1912,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -1968,30 +1969,30 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'acceptsInterstitialPlacements' => array( 'location' => 'query', 'type' => 'boolean', ), - 'sortOrder' => array( + 'acceptsPublisherPaidPlacements' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'searchString' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'countryId' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'dfp_network_code' => array( 'location' => 'query', 'type' => 'string', ), - 'acceptsInStreamVideoPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -2005,19 +2006,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'acceptsPublisherPaidPlacements' => array( + 'parentId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'parentId' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'active' => array( + 'sortField' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'dfp_network_code' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -2081,47 +2082,47 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( + 'adId' => array( 'location' => 'query', 'type' => 'string', ), - 'campaignId' => array( + 'advertiserId' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'campaignId' => array( 'location' => 'query', 'type' => 'string', ), + 'definitionsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'enabled' => array( 'location' => 'query', 'type' => 'boolean', ), - 'ids' => array( + 'eventTagTypes' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'advertiserId' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'adId' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'eventTagTypes' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, - ), - 'definitionsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', ), ), ),'patch' => array( @@ -2183,10 +2184,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -2195,11 +2192,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'scope' => array( 'location' => 'query', 'type' => 'string', ), - 'scope' => array( + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -2277,20 +2278,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'floodlightActivityGroupIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sortOrder' => array( + 'floodlightActivityGroupName' => array( 'location' => 'query', 'type' => 'string', ), - 'searchString' => array( + 'floodlightActivityGroupTagString' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'floodlightActivityGroupType' => array( 'location' => 'query', 'type' => 'string', ), @@ -2303,31 +2308,27 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'floodlightActivityGroupName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserId' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'searchString' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'tagString' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'floodlightActivityGroupTagString' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), - 'floodlightActivityGroupType' => array( + 'tagString' => array( 'location' => 'query', 'type' => 'string', ), @@ -2367,22 +2368,7 @@ public function __construct(Google_Client $client) 'floodlightActivityGroups', array( 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( + 'get' => array( 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', 'httpMethod' => 'GET', 'parameters' => array( @@ -2416,11 +2402,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( + 'advertiserId' => array( 'location' => 'query', 'type' => 'string', ), @@ -2437,11 +2419,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'advertiserId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), @@ -2588,20 +2574,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderId' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'ids' => array( + 'inPlan' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -2611,10 +2601,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'inPlan' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'sortField' => array( 'location' => 'query', 'type' => 'string', @@ -2623,6 +2609,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -2908,14 +2898,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( + 'approved' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'ids' => array( 'location' => 'query', @@ -2926,26 +2911,31 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'siteId' => array( + 'searchString' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'sortOrder' => array( + 'siteId' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'approved' => array( + 'sortOrder' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ), @@ -2992,10 +2982,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -3009,16 +2995,20 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), 'siteId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sortOrder' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'sortField' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -3067,7 +3057,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'placementStrategyIds' => array( + 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -3076,9 +3066,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'searchString' => array( + 'campaignIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'contentCategoryIds' => array( 'location' => 'query', @@ -3090,29 +3081,32 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserIds' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'ids' => array( + 'maxEndDate' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'maxStartDate' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'minEndDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minStartDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -3120,20 +3114,32 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'pricingTypes' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), 'siteIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'campaignIds' => array( + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'patch' => array( @@ -3220,14 +3226,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -3241,6 +3239,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -3290,19 +3296,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'tagFormats' => array( + 'campaignId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'placementIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'campaignId' => array( + 'tagFormats' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ),'get' => array( @@ -3339,22 +3345,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'placementStrategyIds' => array( + 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), 'archived' => array( 'location' => 'query', 'type' => 'boolean', ), - 'searchString' => array( + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'compatibilities' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'contentCategoryIds' => array( 'location' => 'query', @@ -3366,43 +3374,45 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'sortField' => array( + 'groupIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'advertiserIds' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'paymentSource' => array( + 'maxEndDate' => array( 'location' => 'query', 'type' => 'string', ), - 'ids' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxStartDate' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'maxResults' => array( + 'minEndDate' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'sizeIds' => array( + 'minStartDate' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'compatibilities' => array( + 'paymentSource' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'groupIds' => array( + 'placementStrategyIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -3412,16 +3422,28 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), 'siteIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'campaignIds' => array( + 'sizeIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'userprofiles/{profileId}/placements', @@ -3552,14 +3574,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'advertiserIds' => array( 'location' => 'query', 'type' => 'string', @@ -3578,6 +3592,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -3702,11 +3724,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'name' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'sortField' => array( + 'floodlightActivityId' => array( 'location' => 'query', 'type' => 'string', ), @@ -3714,19 +3736,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'name' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'active' => array( + 'sortField' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'floodlightActivityId' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -3815,10 +3837,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -3827,11 +3845,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'scope' => array( 'location' => 'query', 'type' => 'string', ), - 'scope' => array( + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -3949,10 +3971,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -3961,6 +3979,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -4010,30 +4032,35 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'acceptsInterstitialPlacements' => array( 'location' => 'query', 'type' => 'boolean', ), - 'sortOrder' => array( + 'acceptsPublisherPaidPlacements' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'searchString' => array( + 'adWordsSite' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'subaccountId' => array( + 'approved' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'directorySiteIds' => array( + 'campaignIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'acceptsInStreamVideoPlacements' => array( + 'directorySiteIds' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, ), 'ids' => array( 'location' => 'query', @@ -4048,31 +4075,26 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'acceptsPublisherPaidPlacements' => array( + 'searchString' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'adWordsSite' => array( + 'sortOrder' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'unmappedSite' => array( + 'subaccountId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'approved' => array( + 'unmappedSite' => array( 'location' => 'query', 'type' => 'boolean', ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), ), ),'patch' => array( 'path' => 'userprofiles/{profileId}/sites', @@ -4143,20 +4165,20 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'iabStandard' => array( + 'height' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'width' => array( + 'iabStandard' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), 'ids' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'height' => array( + 'width' => array( 'location' => 'query', 'type' => 'integer', ), @@ -4205,14 +4227,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -4226,6 +4240,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', @@ -4295,29 +4317,29 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( + 'active' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), - 'active' => array( + 'sortOrder' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ), @@ -4478,28 +4500,28 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchString' => array( + 'accountUserRoleOnly' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'subaccountId' => array( + 'ids' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'sortField' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'ids' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'maxResults' => array( + 'searchString' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'sortField' => array( 'location' => 'query', 'type' => 'string', ), @@ -4507,9 +4529,9 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'accountUserRoleOnly' => array( + 'subaccountId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ),'patch' => array( @@ -4705,6 +4727,11 @@ public function insert($profileId, Google_Service_Dfareporting_AccountUserProfil * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param bool active Select only active user profiles. + * @opt_param string ids Select only user profiles with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name, ID or * email. Wildcards (*) are allowed. For example, "user profile*2015" will * return objects with names like "user profile June 2015", "user profile April @@ -4712,17 +4739,12 @@ public function insert($profileId, Google_Service_Dfareporting_AccountUserProfil * implicitly at the start and the end of the search string. For example, a * search string of "user profile" will match objects with name "my user * profile", "user profile 2015", or simply "user profile". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string subaccountId Select only user profiles with the specified * subaccount ID. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only user profiles with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string userRoleId Select only user profiles with the specified * user role ID. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active user profiles. * @return Google_Service_Dfareporting_AccountUserProfilesListResponse */ public function listAccountUserProfiles($profileId, $optParams = array()) @@ -4797,6 +4819,12 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param bool active Select only active accounts. Don't set this field to + * select both active and non-active accounts. + * @opt_param string ids Select only accounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "account*2015" will return objects * with names like "account June 2015", "account April 2015", or simply "account @@ -4804,13 +4832,7 @@ public function get($profileId, $id, $optParams = array()) * the end of the search string. For example, a search string of "account" will * match objects with name "my account", "account 2015", or simply "account". * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only accounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active accounts. Don't set this field to - * select both active and non-active accounts. * @return Google_Service_Dfareporting_AccountsListResponse */ public function listAccounts($profileId, $optParams = array()) @@ -4900,51 +4922,51 @@ public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $op * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string landingPageIds Select only ads with these landing page IDs. - * @opt_param string overriddenEventTagId Select only ads with this event tag - * override ID. - * @opt_param string campaignIds Select only ads with these campaign IDs. + * @opt_param bool active Select only active ads. + * @opt_param string advertiserId Select only ads with this advertiser ID. * @opt_param bool archived Select only archived ads. - * @opt_param string creativeOptimizationConfigurationIds Select only ads with - * these creative optimization configuration IDs. - * @opt_param bool sslCompliant Select only ads that are SSL-compliant. - * @opt_param string sizeIds Select only ads with these size IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Select only ads with these types. - * @opt_param bool sslRequired Select only ads that require SSL. + * @opt_param string audienceSegmentIds Select only ads with these audience + * segment IDs. + * @opt_param string campaignIds Select only ads with these campaign IDs. + * @opt_param string compatibility Select default ads with the specified + * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and + * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile + * devices for regular or interstitial ads, respectively. APP and + * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to + * rendering an in-stream video ads developed with the VAST standard. * @opt_param string creativeIds Select only ads with these creative IDs * assigned. - * @opt_param int maxResults Maximum number of results to return. + * @opt_param string creativeOptimizationConfigurationIds Select only ads with + * these creative optimization configuration IDs. * @opt_param string creativeType Select only ads with the specified * creativeType. + * @opt_param bool dynamicClickTracker Select only dynamic click trackers. + * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic + * click trackers. If false, select static click trackers. Leave unset to select + * both. + * @opt_param string ids Select only ads with these IDs. + * @opt_param string landingPageIds Select only ads with these landing page IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string overriddenEventTagId Select only ads with this event tag + * override ID. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string placementIds Select only ads with these placement IDs * assigned. - * @opt_param bool active Select only active ads. - * @opt_param string compatibility Select default ads with the specified - * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and - * WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices - * for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are - * for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in- - * stream video ads developed with the VAST standard. - * @opt_param string advertiserId Select only ads with this advertiser ID. + * @opt_param string remarketingListIds Select only ads whose list targeting + * expression use these remarketing list IDs. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "ad*2015" will return objects with * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the * searches also add wildcards implicitly at the start and the end of the search * string. For example, a search string of "ad" will match objects with name "my * ad", "ad 2015", or simply "ad". + * @opt_param string sizeIds Select only ads with these size IDs. * @opt_param string sortField Field by which to sort the list. - * @opt_param string audienceSegmentIds Select only ads with these audience - * segment IDs. - * @opt_param string ids Select only ads with these IDs. - * @opt_param string remarketingListIds Select only ads whose list targeting - * expression use these remarketing list IDs. - * @opt_param bool dynamicClickTracker Select only dynamic click trackers. - * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic - * click trackers. If false, select static click trackers. Leave unset to select - * both. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool sslCompliant Select only ads that are SSL-compliant. + * @opt_param bool sslRequired Select only ads that require SSL. + * @opt_param string type Select only ads with these types. * @return Google_Service_Dfareporting_AdsListResponse */ public function listAds($profileId, $optParams = array()) @@ -5048,6 +5070,10 @@ public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string ids Select only advertiser groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects * with names like "advertiser group June 2015", "advertiser group April 2015", @@ -5056,10 +5082,6 @@ public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $ * search string of "advertisergroup" will match objects with name "my * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only advertiser groups with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse */ @@ -5151,7 +5173,18 @@ public function insert($profileId, Google_Service_Dfareporting_Advertiser $postB * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string status Select only advertisers with the specified status. + * @opt_param string advertiserGroupIds Select only advertisers with these + * advertiser group IDs. + * @opt_param string floodlightConfigurationIds Select only advertisers with + * these floodlight configuration IDs. + * @opt_param string ids Select only advertisers with these IDs. + * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers + * which do not belong to any advertiser group. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param bool onlyParent Select only advertisers which use another + * advertiser's floodlight configuration. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects * with names like "advertiser June 2015", "advertiser April 2015", or simply @@ -5159,22 +5192,11 @@ public function insert($profileId, Google_Service_Dfareporting_Advertiser $postB * start and the end of the search string. For example, a search string of * "advertiser" will match objects with name "my advertiser", "advertiser 2015", * or simply "advertiser". - * @opt_param string subaccountId Select only advertisers with these subaccount - * IDs. - * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers - * which do not belong to any advertiser group. * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only advertisers with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param bool onlyParent Select only advertisers which use another - * advertiser's floodlight configuration. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string floodlightConfigurationIds Select only advertisers with - * these floodlight configuration IDs. - * @opt_param string advertiserGroupIds Select only advertisers with these - * advertiser group IDs. + * @opt_param string status Select only advertisers with the specified status. + * @opt_param string subaccountId Select only advertisers with these subaccount + * IDs. * @return Google_Service_Dfareporting_AdvertisersListResponse */ public function listAdvertisers($profileId, $optParams = array()) @@ -5280,10 +5302,10 @@ public function insert($profileId, $campaignId, Google_Service_Dfareporting_Camp * @param string $campaignId Campaign ID in this association. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param int maxResults Maximum number of results to return. * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse */ public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) @@ -5345,8 +5367,21 @@ public function insert($profileId, $defaultLandingPageName, $defaultLandingPageU * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserGroupIds Select only campaigns whose advertisers + * belong to these advertiser groups. + * @opt_param string advertiserIds Select only campaigns that belong to these + * advertisers. * @opt_param bool archived Select only archived campaigns. Don't set this field * to select both archived and non-archived campaigns. + * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that + * have at least one optimization activity. + * @opt_param string excludedIds Exclude campaigns with these IDs. + * @opt_param string ids Select only campaigns with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string overriddenEventTagId Select only campaigns that have + * overridden this event tag ID. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for campaigns by name or ID. * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns * with names like "campaign June 2015", "campaign April 2015", or simply @@ -5354,23 +5389,10 @@ public function insert($profileId, $defaultLandingPageName, $defaultLandingPageU * start and the end of the search string. For example, a search string of * "campaign" will match campaigns with name "my campaign", "campaign 2015", or * simply "campaign". - * @opt_param string subaccountId Select only campaigns that belong to this - * subaccount. * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only campaigns that belong to these - * advertisers. - * @opt_param string ids Select only campaigns with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string excludedIds Exclude campaigns with these IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string advertiserGroupIds Select only campaigns whose advertisers - * belong to these advertiser groups. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string overriddenEventTagId Select only campaigns that have - * overridden this event tag ID. - * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that - * have at least one optimization activity. + * @opt_param string subaccountId Select only campaigns that belong to this + * subaccount. * @return Google_Service_Dfareporting_CampaignsListResponse */ public function listCampaigns($profileId, $optParams = array()) @@ -5445,30 +5467,30 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string minChangeTime Select only change logs whose change time is - * before the specified minChangeTime.The time should be formatted as an RFC3339 + * @opt_param string action Select only change logs with the specified action. + * @opt_param string ids Select only change logs with these IDs. + * @opt_param string maxChangeTime Select only change logs whose change time is + * before the specified maxChangeTime.The time should be formatted as an RFC3339 * date/time string. For example, for 10:54 PM on July 18th, 2015, in the * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In * other words, the year, month, day, the letter T, the hour (24-hour clock * system), minute, second, and then the time zone offset. - * @opt_param string searchString Select only change logs whose object ID, user - * name, old or new values match the search string. - * @opt_param string maxChangeTime Select only change logs whose change time is - * before the specified maxChangeTime.The time should be formatted as an RFC3339 + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string minChangeTime Select only change logs whose change time is + * before the specified minChangeTime.The time should be formatted as an RFC3339 * date/time string. For example, for 10:54 PM on July 18th, 2015, in the * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In * other words, the year, month, day, the letter T, the hour (24-hour clock * system), minute, second, and then the time zone offset. - * @opt_param string userProfileIds Select only change logs with these user - * profile IDs. - * @opt_param string ids Select only change logs with these IDs. - * @opt_param int maxResults Maximum number of results to return. * @opt_param string objectIds Select only change logs with these object IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string action Select only change logs with the specified action. * @opt_param string objectType Select only change logs with the specified * object type. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string searchString Select only change logs whose object ID, user + * name, old or new values match the search string. + * @opt_param string userProfileIds Select only change logs with these user + * profile IDs. * @return Google_Service_Dfareporting_ChangeLogsListResponse */ public function listChangeLogs($profileId, $optParams = array()) @@ -5496,11 +5518,11 @@ class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resourc * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string countryDartIds Select only cities from these countries. * @opt_param string dartIds Select only cities with these DART IDs. * @opt_param string namePrefix Select only cities with names starting with this * prefix. * @opt_param string regionDartIds Select only cities from these regions. - * @opt_param string countryDartIds Select only cities from these countries. * @return Google_Service_Dfareporting_CitiesListResponse */ public function listCities($profileId, $optParams = array()) @@ -5614,6 +5636,10 @@ public function insert($profileId, Google_Service_Dfareporting_ContentCategory $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string ids Select only content categories with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "contentcategory*2015" will return * objects with names like "contentcategory June 2015", "contentcategory April @@ -5622,10 +5648,6 @@ public function insert($profileId, Google_Service_Dfareporting_ContentCategory $ * example, a search string of "contentcategory" will match objects with name * "my contentcategory", "contentcategory 2015", or simply "contentcategory". * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only content categories with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_ContentCategoriesListResponse */ @@ -5809,13 +5831,13 @@ public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting * value. * @param array $optParams Optional parameters. * - * @opt_param string searchString Allows searching for creative field values by - * their values. Wildcards (e.g. *) are not allowed. + * @opt_param string ids Select only creative field values with these IDs. + * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. + * @opt_param string searchString Allows searching for creative field values by + * their values. Wildcards (e.g. *) are not allowed. * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only creative field values with these IDs. - * @opt_param int maxResults Maximum number of results to return. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse */ @@ -5925,6 +5947,12 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeField $po * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserIds Select only creative fields that belong to + * these advertisers. + * @opt_param string ids Select only creative fields with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for creative fields by name * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will * return creative fields with names like "creativefield June 2015", @@ -5934,12 +5962,6 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeField $po * creative fields with the name "my creativefield", "creativefield 2015", or * simply "creativefield". * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only creative fields that belong to - * these advertisers. - * @opt_param string ids Select only creative fields with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_CreativeFieldsListResponse */ @@ -6031,6 +6053,14 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $po * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserIds Select only creative groups that belong to + * these advertisers. + * @opt_param int groupNumber Select only creative groups that belong to this + * subgroup. + * @opt_param string ids Select only creative groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for creative groups by name * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will * return creative groups with names like "creativegroup June 2015", @@ -6040,14 +6070,6 @@ public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $po * creative groups with the name "my creativegroup", "creativegroup 2015", or * simply "creativegroup". * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only creative groups that belong to - * these advertisers. - * @opt_param int groupNumber Select only creative groups that belong to this - * subgroup. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string ids Select only creative groups with these IDs. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_CreativeGroupsListResponse */ @@ -6138,34 +6160,34 @@ public function insert($profileId, Google_Service_Dfareporting_Creative $postBod * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string sizeIds Select only creatives with these size IDs. + * @opt_param bool active Select only active creatives. Leave blank to select + * active and inactive creatives. + * @opt_param string advertiserId Select only creatives with this advertiser ID. * @opt_param bool archived Select only archived creatives. Leave blank to * select archived and unarchived creatives. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "creative*2015" will return objects - * with names like "creative June 2015", "creative April 2015", or simply - * "creative 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "creative" will match objects with name "my creative", "creative 2015", or - * simply "creative". * @opt_param string campaignId Select only creatives with this campaign ID. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string renderingIds Select only creatives with these rendering - * IDs. + * @opt_param string companionCreativeIds Select only in-stream video creatives + * with these companion IDs. + * @opt_param string creativeFieldIds Select only creatives with these creative + * field IDs. * @opt_param string ids Select only creatives with these IDs. * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Select only creatives with this advertiser ID. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. + * @opt_param string renderingIds Select only creatives with these rendering + * IDs. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "creative*2015" will return objects + * with names like "creative June 2015", "creative April 2015", or simply + * "creative 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "creative" will match objects with name "my creative", "creative 2015", or + * simply "creative". + * @opt_param string sizeIds Select only creatives with these size IDs. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string studioCreativeId Select only creatives corresponding to * this Studio creative ID. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string companionCreativeIds Select only in-stream video creatives - * with these companion IDs. - * @opt_param bool active Select only active creatives. Leave blank to select - * active and inactive creatives. - * @opt_param string creativeFieldIds Select only creatives with these creative - * field IDs. * @opt_param string types Select only creatives with these creative types. * @return Google_Service_Dfareporting_CreativesListResponse */ @@ -6228,9 +6250,9 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic * @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. - * @opt_param int maxResults Maximum number of results to return. * @return Google_Service_Dfareporting_DimensionValueList */ public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) @@ -6274,6 +6296,12 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string directorySiteIds Select only directory site contacts with + * these directory site IDs. This is a required field. + * @opt_param string ids Select only directory site contacts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name, ID or * email. Wildcards (*) are allowed. For example, "directory site contact*2015" * will return objects with names like "directory site contact June 2015", @@ -6282,13 +6310,7 @@ public function get($profileId, $id, $optParams = array()) * of the search string. For example, a search string of "directory site * contact" will match objects with name "my directory site contact", "directory * site contact 2015", or simply "directory site contact". - * @opt_param string directorySiteIds Select only directory site contacts with - * these directory site IDs. This is a required field. * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only directory site contacts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse */ @@ -6348,9 +6370,22 @@ public function insert($profileId, Google_Service_Dfareporting_DirectorySite $po * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. * @opt_param bool acceptsInterstitialPlacements This search filter is no longer * supported and will have no effect on the results returned. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites + * that accept publisher paid placements. This field can be left blank. + * @opt_param bool active Select only active directory sites. Leave blank to + * retrieve both active and inactive directory sites. + * @opt_param string countryId Select only directory sites with this country ID. + * @opt_param string dfp_network_code Select only directory sites with this DFP + * network code. + * @opt_param string ids Select only directory sites with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string parentId Select only directory sites with this parent ID. * @opt_param string searchString Allows searching for objects by name, ID or * URL. Wildcards (*) are allowed. For example, "directory site*2015" will * return objects with names like "directory site June 2015", "directory site @@ -6358,21 +6393,8 @@ public function insert($profileId, Google_Service_Dfareporting_DirectorySite $po * wildcards implicitly at the start and the end of the search string. For * example, a search string of "directory site" will match objects with name "my * directory site", "directory site 2015" or simply, "directory site". - * @opt_param string countryId Select only directory sites with this country ID. * @opt_param string sortField Field by which to sort the list. - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. - * @opt_param string ids Select only directory sites with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites - * that accept publisher paid placements. This field can be left blank. - * @opt_param string parentId Select only directory sites with this parent ID. - * @opt_param bool active Select only active directory sites. Leave blank to - * retrieve both active and inactive directory sites. - * @opt_param string dfp_network_code Select only directory sites with this DFP - * network code. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_DirectorySitesListResponse */ public function listDirectorySites($profileId, $optParams = array()) @@ -6444,6 +6466,30 @@ public function insert($profileId, Google_Service_Dfareporting_EventTag $postBod * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string adId Select only event tags that belong to this ad. + * @opt_param string advertiserId Select only event tags that belong to this + * advertiser. + * @opt_param string campaignId Select only event tags that belong to this + * campaign. + * @opt_param bool definitionsOnly Examine only the specified campaign or + * advertiser's event tags for matching selector criteria. When set to false, + * the parent advertiser and parent campaign of the specified ad or campaign is + * examined as well. In addition, when set to false, the status field is + * examined as well, along with the enabledByDefault field. This parameter can + * not be set to true when adId is specified as ads do not define their own even + * tags. + * @opt_param bool enabled Select only enabled event tags. What is considered + * enabled or disabled depends on the definitionsOnly parameter. When + * definitionsOnly is set to true, only the specified advertiser or campaign's + * event tags' enabledByDefault field is examined. When definitionsOnly is set + * to false, the specified ad or specified campaign's parent advertiser's or + * parent campaign's event tags' enabledByDefault and status fields are examined + * as well. + * @opt_param string eventTagTypes Select only event tags with the specified + * event tag types. Event tag types can be used to specify whether to use a + * third-party pixel, a third-party JavaScript URL, or a third-party click- + * through URL for either impression or click tracking. + * @opt_param string ids Select only event tags with these IDs. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects * with names like "eventtag June 2015", "eventtag April 2015", or simply @@ -6451,28 +6497,8 @@ public function insert($profileId, Google_Service_Dfareporting_EventTag $postBod * start and the end of the search string. For example, a search string of * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or * simply "eventtag". - * @opt_param string campaignId Select only event tags that belong to this - * campaign. * @opt_param string sortField Field by which to sort the list. - * @opt_param bool enabled Select only enabled event tags. When definitionsOnly - * is set to true, only the specified advertiser or campaign's event tags' - * enabledByDefault field is examined. When definitionsOnly is set to false, the - * specified ad or specified campaign's parent advertiser's or parent campaign's - * event tags' enabledByDefault and status fields are examined as well. - * @opt_param string ids Select only event tags with these IDs. - * @opt_param string advertiserId Select only event tags that belong to this - * advertiser. - * @opt_param string adId Select only event tags that belong to this ad. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string eventTagTypes Select only event tags with the specified - * event tag types. Event tag types can be used to specify whether to use a - * third-party pixel, a third-party JavaScript URL, or a third-party click- - * through URL for either impression or click tracking. - * @opt_param bool definitionsOnly Examine only the specified ad or campaign or - * advertiser's event tags for matching selector criteria. When set to false, - * the parent advertiser and parent campaign is examined as well. In addition, - * when set to false, the status field is examined as well along with the - * enabledByDefault field. * @return Google_Service_Dfareporting_EventTagsListResponse */ public function listEventTags($profileId, $optParams = array()) @@ -6547,13 +6573,13 @@ public function get($reportId, $fileId, $optParams = array()) * @param string $profileId The DFA profile ID. * @param array $optParams Optional parameters. * - * @opt_param string sortField The field by which to sort the list. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken The value of the nextToken from the previous * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. * @opt_param string scope The scope that defines which results are returned, * default is 'MINE'. + * @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()) @@ -6643,9 +6669,26 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserId Select only floodlight activities for the + * specified advertiser ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. * @opt_param string floodlightActivityGroupIds Select only floodlight * activities with the specified floodlight activity group IDs. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string floodlightActivityGroupName Select only floodlight + * activities with the specified floodlight activity group name. + * @opt_param string floodlightActivityGroupTagString Select only floodlight + * activities with the specified floodlight activity group tag string. + * @opt_param string floodlightActivityGroupType Select only floodlight + * activities with the specified floodlight activity group type. + * @opt_param string floodlightConfigurationId Select only floodlight activities + * for the specified floodlight configuration ID. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activities with the specified + * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for + * a non-empty result. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return * objects with names like "floodlightactivity June 2015", "floodlightactivity @@ -6655,26 +6698,9 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * "my floodlightactivity activity", "floodlightactivity 2015", or simply * "floodlightactivity". * @opt_param string sortField Field by which to sort the list. - * @opt_param string floodlightConfigurationId Select only floodlight activities - * for the specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activities with the specified - * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for - * a non-empty result. - * @opt_param string floodlightActivityGroupName Select only floodlight - * activities with the specified floodlight activity group name. - * @opt_param string advertiserId Select only floodlight activities for the - * specified advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string tagString Select only floodlight activities with the * specified tag string. - * @opt_param string floodlightActivityGroupTagString Select only floodlight - * activities with the specified floodlight activity group tag string. - * @opt_param string floodlightActivityGroupType Select only floodlight - * activities with the specified floodlight activity group type. * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse */ public function listFloodlightActivities($profileId, $optParams = array()) @@ -6728,21 +6754,6 @@ public function update($profileId, Google_Service_Dfareporting_FloodlightActivit class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource { - /** - * Deletes an existing floodlight activity group. - * (floodlightActivityGroups.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) * @@ -6780,6 +6791,18 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserId Select only floodlight activity groups with + * the specified advertiser ID. Must specify either advertiserId or + * floodlightConfigurationId for a non-empty result. + * @opt_param string floodlightConfigurationId Select only floodlight activity + * groups with the specified floodlight configuration ID. Must specify either + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activity groups with the + * specified IDs. Must specify either advertiserId or floodlightConfigurationId + * for a non-empty result. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will * return objects with names like "floodlightactivitygroup June 2015", @@ -6790,18 +6813,6 @@ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivit * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply * "floodlightactivitygroup". * @opt_param string sortField Field by which to sort the list. - * @opt_param string floodlightConfigurationId Select only floodlight activity - * groups with the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activity groups with the - * specified IDs. Must specify either advertiserId or floodlightConfigurationId - * for a non-empty result. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string advertiserId Select only floodlight activity groups with - * the specified advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string type Select only floodlight activity groups with the * specified floodlight activity group type. @@ -6961,17 +6972,18 @@ public function get($profileId, $projectId, $id, $optParams = array()) * @param string $projectId Project ID for order documents. * @param array $optParams Optional parameters. * - * @opt_param string orderId Select only inventory items that belong to - * specified orders. * @opt_param string ids Select only inventory items with these IDs. + * @opt_param bool inPlan Select only inventory items that are in plan. * @opt_param int maxResults Maximum number of results to return. + * @opt_param string orderId Select only inventory items that belong to + * specified orders. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. * @opt_param string siteId Select only inventory items that are associated with * these sites. - * @opt_param bool inPlan Select only inventory items that are in plan. * @opt_param string sortField Field by which to sort the list. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only inventory items with this type. * @return Google_Service_Dfareporting_InventoryItemsListResponse */ public function listInventoryItems($profileId, $projectId, $optParams = array()) @@ -7277,7 +7289,13 @@ public function get($profileId, $projectId, $id, $optParams = array()) * @param string $projectId Project ID for order documents. * @param array $optParams Optional parameters. * + * @opt_param bool approved Select only order documents that have been approved + * by at least one user. + * @opt_param string ids Select only order documents with these IDs. + * @opt_param int maxResults Maximum number of results to return. * @opt_param string orderId Select only order documents for specified orders. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for order documents by name * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will * return order documents with names like "orderdocument June 2015", @@ -7286,16 +7304,10 @@ public function get($profileId, $projectId, $id, $optParams = array()) * string. For example, a search string of "orderdocument" will match order * documents with name "my orderdocument", "orderdocument 2015", or simply * "orderdocument". - * @opt_param string ids Select only order documents with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string siteId Select only order documents that are associated with * these sites. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string sortField Field by which to sort the list. - * @opt_param bool approved Select only order documents that have been approved - * by at least one user. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_OrderDocumentsListResponse */ public function listOrderDocuments($profileId, $projectId, $optParams = array()) @@ -7340,20 +7352,20 @@ public function get($profileId, $projectId, $id, $optParams = array()) * @param string $projectId Project ID for orders. * @param array $optParams Optional parameters. * + * @opt_param string ids Select only orders with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for orders by name or ID. * Wildcards (*) are allowed. For example, "order*2015" will return orders with * names like "order June 2015", "order April 2015", or simply "order 2015". * Most of the searches also add wildcards implicitly at the start and the end * of the search string. For example, a search string of "order" will match * orders with name "my order", "order 2015", or simply "order". - * @opt_param string ids Select only orders with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string siteId Select only orders that are associated with these * site IDs. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_OrdersListResponse */ public function listOrders($profileId, $projectId, $optParams = array()) @@ -7412,41 +7424,53 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $p * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string placementStrategyIds Select only placement groups that are - * associated with these placement strategies. + * @opt_param string advertiserIds Select only placement groups that belong to + * these advertisers. * @opt_param bool archived Select only archived placements. Don't set this * field to select both archived and non-archived placements. - * @opt_param string searchString Allows searching for placement groups by name - * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups with - * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". + * @opt_param string campaignIds Select only placement groups that belong to + * these campaigns. * @opt_param string contentCategoryIds Select only placement groups that are * associated with these content categories. * @opt_param string directorySiteIds Select only placement groups that are * associated with these directory sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only placement groups that belong to - * these advertisers. * @opt_param string ids Select only placement groups with these IDs. + * @opt_param string maxEndDate Select only placements or placement groups whose + * end date is on or before the specified maxEndDate. The date should be + * formatted as "yyyy-MM-dd". * @opt_param int maxResults Maximum number of results to return. + * @opt_param string maxStartDate Select only placements or placement groups + * whose start date is on or before the specified maxStartDate. The date should + * be formatted as "yyyy-MM-dd". + * @opt_param string minEndDate Select only placements or placement groups whose + * end date is on or after the specified minEndDate. The date should be + * formatted as "yyyy-MM-dd". + * @opt_param string minStartDate Select only placements or placement groups + * whose start date is on or after the specified minStartDate. The date should + * be formatted as "yyyy-MM-dd". * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @opt_param string placementGroupType Select only placement groups belonging * with this group type. A package is a simple group of placements that acts as * a single pricing point for a group of tags. A roadblock is a group of * placements that not only acts as a single pricing point but also assumes that * all the tags in it will be served at the same time. A roadblock requires one * of its assigned placements to be marked as primary for reporting. + * @opt_param string placementStrategyIds Select only placement groups that are + * associated with these placement strategies. * @opt_param string pricingTypes Select only placement groups with these * pricing types. + * @opt_param string searchString Allows searching for placement groups by name + * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return + * placement groups with names like "placement group June 2015", "placement + * group May 2015", or simply "placements 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementgroup" will match placement groups with + * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". * @opt_param string siteIds Select only placement groups that are associated * with these sites. - * @opt_param string campaignIds Select only placement groups that belong to - * these campaigns. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_PlacementGroupsListResponse */ public function listPlacementGroups($profileId, $optParams = array()) @@ -7551,6 +7575,10 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string ids Select only placement strategies with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return * objects with names like "placementstrategy June 2015", "placementstrategy @@ -7560,10 +7588,6 @@ public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy * "my placementstrategy", "placementstrategy 2015", or simply * "placementstrategy". * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only placement strategies with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_PlacementStrategiesListResponse */ @@ -7624,10 +7648,10 @@ class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Res * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string tagFormats Tag formats to generate for these placements. - * @opt_param string placementIds Generate tags for these placements. * @opt_param string campaignId Generate placements belonging to this campaign. * This is a required field. + * @opt_param string placementIds Generate tags for these placements. + * @opt_param string tagFormats Tag formats to generate for these placements. * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse */ public function generatetags($profileId, $optParams = array()) @@ -7674,47 +7698,59 @@ public function insert($profileId, Google_Service_Dfareporting_Placement $postBo * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * - * @opt_param string placementStrategyIds Select only placements that are - * associated with these placement strategies. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool archived Select only archived placements. Don't set this - * field to select both archived and non-archived placements. - * @opt_param string searchString Allows searching for placements by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placements with names like "placement June 2015", "placement May 2015", or - * simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * @opt_param string contentCategoryIds Select only placements that are - * associated with these content categories. - * @opt_param string directorySiteIds Select only placements that are associated - * with these directory sites. - * @opt_param string sortField Field by which to sort the list. * @opt_param string advertiserIds Select only placements that belong to these * advertisers. - * @opt_param string paymentSource Select only placements with this payment - * source. - * @opt_param string ids Select only placements with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string sizeIds Select only placements that are associated with - * these sizes. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string campaignIds Select only placements that belong to these + * campaigns. * @opt_param string compatibilities Select only placements that are associated - * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering - * either on desktop or on mobile devices for regular or interstitial ads - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to + * rendering either on desktop or on mobile devices for regular or interstitial + * ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed * with the VAST standard. + * @opt_param string contentCategoryIds Select only placements that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placements that are associated + * with these directory sites. * @opt_param string groupIds Select only placements that belong to these * placement groups. + * @opt_param string ids Select only placements with these IDs. + * @opt_param string maxEndDate Select only placements or placement groups whose + * end date is on or before the specified maxEndDate. The date should be + * formatted as "yyyy-MM-dd". + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string maxStartDate Select only placements or placement groups + * whose start date is on or before the specified maxStartDate. The date should + * be formatted as "yyyy-MM-dd". + * @opt_param string minEndDate Select only placements or placement groups whose + * end date is on or after the specified minEndDate. The date should be + * formatted as "yyyy-MM-dd". + * @opt_param string minStartDate Select only placements or placement groups + * whose start date is on or after the specified minStartDate. The date should + * be formatted as "yyyy-MM-dd". + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string paymentSource Select only placements with this payment + * source. + * @opt_param string placementStrategyIds Select only placements that are + * associated with these placement strategies. * @opt_param string pricingTypes Select only placements with these pricing * types. + * @opt_param string searchString Allows searching for placements by name or ID. + * Wildcards (*) are allowed. For example, "placement*2015" will return + * placements with names like "placement June 2015", "placement May 2015", or + * simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string + * of "placement" will match placements with name "my placement", "placement + * 2015", or simply "placement". * @opt_param string siteIds Select only placements that are associated with * these sites. - * @opt_param string campaignIds Select only placements that belong to these - * campaigns. + * @opt_param string sizeIds Select only placements that are associated with + * these sizes. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_PlacementsListResponse */ public function listPlacements($profileId, $optParams = array()) @@ -7871,6 +7907,12 @@ public function get($profileId, $id, $optParams = array()) * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string advertiserIds Select only projects with these advertiser + * IDs. + * @opt_param string ids Select only projects with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for projects by name or ID. * Wildcards (*) are allowed. For example, "project*2015" will return projects * with names like "project June 2015", "project April 2015", or simply "project @@ -7878,12 +7920,6 @@ public function get($profileId, $id, $optParams = array()) * the end of the search string. For example, a search string of "project" will * match projects with name "my project", "project 2015", or simply "project". * @opt_param string sortField Field by which to sort the list. - * @opt_param string advertiserIds Select only projects with these advertiser - * IDs. - * @opt_param string ids Select only projects with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_ProjectsListResponse */ @@ -8031,6 +8067,10 @@ public function insert($profileId, Google_Service_Dfareporting_RemarketingList $ * advertiser. * @param array $optParams Optional parameters. * + * @opt_param bool active Select only active or only inactive remarketing lists. + * @opt_param string floodlightActivityId Select only remarketing lists that + * have this floodlight activity ID. + * @opt_param int maxResults Maximum number of results to return. * @opt_param string name Allows searching for objects by name or ID. Wildcards * (*) are allowed. For example, "remarketing list*2015" will return objects * with names like "remarketing list June 2015", "remarketing list April 2015", @@ -8038,14 +8078,10 @@ public function insert($profileId, Google_Service_Dfareporting_RemarketingList $ * implicitly at the start and the end of the search string. For example, a * search string of "remarketing list" will match objects with name "my * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string sortField Field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. + * @opt_param string sortField Field by which to sort the list. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active or only inactive remarketing lists. - * @opt_param string floodlightActivityId Select only remarketing lists that - * have this floodlight activity ID. * @return Google_Service_Dfareporting_RemarketingListsListResponse */ public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) @@ -8149,13 +8185,13 @@ public function insert($profileId, Google_Service_Dfareporting_Report $postBody, * @param string $profileId The DFA user profile ID. * @param array $optParams Optional parameters. * - * @opt_param string sortField The field by which to sort the list. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken The value of the nextToken from the previous * result page. - * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'. * @opt_param string scope The scope that defines which results are returned, * default is 'MINE'. + * @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()) @@ -8278,10 +8314,10 @@ public function get($profileId, $reportId, $fileId, $optParams = array()) * @param string $reportId The ID of the parent report. * @param array $optParams Optional parameters. * - * @opt_param string sortField The field by which to sort the list. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken The value of the nextToken from the previous * result page. + * @opt_param string 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 */ @@ -8340,32 +8376,32 @@ public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. * @opt_param bool acceptsInterstitialPlacements This search filter is no longer * supported and will have no effect on the results returned. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string searchString Allows searching for objects by name, ID or - * keyName. Wildcards (*) are allowed. For example, "site*2015" will return - * objects with names like "site June 2015", "site April 2015", or simply "site - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "site" will - * match objects with name "my site", "site 2015", or simply "site". - * @opt_param string subaccountId Select only sites with this subaccount ID. + * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept + * publisher paid placements. + * @opt_param bool adWordsSite Select only AdWords sites. + * @opt_param bool approved Select only approved sites. + * @opt_param string campaignIds Select only sites with these campaign IDs. * @opt_param string directorySiteIds Select only sites with these directory * site IDs. - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. * @opt_param string ids Select only sites with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept - * publisher paid placements. + * @opt_param string searchString Allows searching for objects by name, ID or + * keyName. Wildcards (*) are allowed. For example, "site*2015" will return + * objects with names like "site June 2015", "site April 2015", or simply "site + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "site" will + * match objects with name "my site", "site 2015", or simply "site". * @opt_param string sortField Field by which to sort the list. - * @opt_param bool adWordsSite Select only AdWords sites. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string subaccountId Select only sites with this subaccount ID. * @opt_param bool unmappedSite Select only sites that have not been mapped to a * directory site. - * @opt_param bool approved Select only approved sites. - * @opt_param string campaignIds Select only sites with these campaign IDs. * @return Google_Service_Dfareporting_SitesListResponse */ public function listSites($profileId, $optParams = array()) @@ -8454,10 +8490,10 @@ public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $ * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param int height Select only sizes with this height. * @opt_param bool iabStandard Select only IAB standard sizes. - * @opt_param int width Select only sizes with this width. * @opt_param string ids Select only sizes with these IDs. - * @opt_param int height Select only sizes with this height. + * @opt_param int width Select only sizes with this width. * @return Google_Service_Dfareporting_SizesListResponse */ public function listSizes($profileId, $optParams = array()) @@ -8515,6 +8551,10 @@ public function insert($profileId, Google_Service_Dfareporting_Subaccount $postB * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param string ids Select only subaccounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects * with names like "subaccount June 2015", "subaccount April 2015", or simply @@ -8523,10 +8563,6 @@ public function insert($profileId, Google_Service_Dfareporting_Subaccount $postB * "subaccount" will match objects with name "my subaccount", "subaccount 2015", * or simply "subaccount". * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only subaccounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. * @return Google_Service_Dfareporting_SubaccountsListResponse */ @@ -8605,6 +8641,9 @@ public function get($profileId, $id, $optParams = array()) * targetable by these advertisers. * @param array $optParams Optional parameters. * + * @opt_param bool active Select only active or only inactive targetable + * remarketing lists. + * @opt_param int maxResults Maximum number of results to return. * @opt_param string name Allows searching for objects by name or ID. Wildcards * (*) are allowed. For example, "remarketing list*2015" will return objects * with names like "remarketing list June 2015", "remarketing list April 2015", @@ -8612,13 +8651,10 @@ public function get($profileId, $id, $optParams = array()) * implicitly at the start and the end of the search string. For example, a * search string of "remarketing list" will match objects with name "my * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string sortField Field by which to sort the list. - * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. + * @opt_param string sortField Field by which to sort the list. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool active Select only active or only inactive targetable - * remarketing lists. * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse */ public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) @@ -8815,6 +8851,12 @@ public function insert($profileId, Google_Service_Dfareporting_UserRole $postBod * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * + * @opt_param bool accountUserRoleOnly Select only account level user roles not + * associated with any specific subaccount. + * @opt_param string ids Select only user roles with the specified IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. * @opt_param string searchString Allows searching for objects by name or ID. * Wildcards (*) are allowed. For example, "userrole*2015" will return objects * with names like "userrole June 2015", "userrole April 2015", or simply @@ -8822,16 +8864,10 @@ public function insert($profileId, Google_Service_Dfareporting_UserRole $postBod * start and the end of the search string. For example, a search string of * "userrole" will match objects with name "my userrole", "userrole 2015", or * simply "userrole". - * @opt_param string subaccountId Select only user roles that belong to this - * subaccount. * @opt_param string sortField Field by which to sort the list. - * @opt_param string ids Select only user roles with the specified IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool accountUserRoleOnly Select only account level user roles not - * associated with any specific subaccount. + * @opt_param string subaccountId Select only user roles that belong to this + * subaccount. * @return Google_Service_Dfareporting_UserRolesListResponse */ public function listUserRoles($profileId, $optParams = array()) @@ -9536,7 +9572,6 @@ class Google_Service_Dfareporting_Ad extends Google_Collection { protected $collection_key = 'placementAssignments'; protected $internal_gapi_mappings = array( - "remarketingListExpression" => "remarketing_list_expression", ); public $accountId; public $active; @@ -10031,6 +10066,7 @@ class Google_Service_Dfareporting_Advertiser extends Google_Model public $originalFloodlightConfigurationId; public $status; public $subaccountId; + public $suspended; public function setAccountId($accountId) @@ -10145,6 +10181,14 @@ public function getSubaccountId() { return $this->subaccountId; } + public function setSuspended($suspended) + { + $this->suspended = $suspended; + } + public function getSuspended() + { + return $this->suspended; + } } class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model @@ -11126,11 +11170,20 @@ class Google_Service_Dfareporting_ClickThroughUrl extends Google_Model { protected $internal_gapi_mappings = array( ); + public $computedClickThroughUrl; public $customClickThroughUrl; public $defaultLandingPage; public $landingPageId; + public function setComputedClickThroughUrl($computedClickThroughUrl) + { + $this->computedClickThroughUrl = $computedClickThroughUrl; + } + public function getComputedClickThroughUrl() + { + return $this->computedClickThroughUrl; + } public function setCustomClickThroughUrl($customClickThroughUrl) { $this->customClickThroughUrl = $customClickThroughUrl; @@ -11516,6 +11569,7 @@ class Google_Service_Dfareporting_Creative extends Google_Collection public $allowScriptAccess; public $archived; public $artworkType; + public $authoringSource; public $authoringTool; public $autoAdvanceImages; public $backgroundColor; @@ -11562,6 +11616,7 @@ class Google_Service_Dfareporting_Creative extends Google_Collection protected $sizeDataType = ''; public $skippable; public $sslCompliant; + public $sslOverride; public $studioAdvertiserId; public $studioCreativeId; public $studioTraffickedCreativeId; @@ -11643,6 +11698,14 @@ public function getArtworkType() { return $this->artworkType; } + public function setAuthoringSource($authoringSource) + { + $this->authoringSource = $authoringSource; + } + public function getAuthoringSource() + { + return $this->authoringSource; + } public function setAuthoringTool($authoringTool) { $this->authoringTool = $authoringTool; @@ -11923,6 +11986,14 @@ public function getSslCompliant() { return $this->sslCompliant; } + public function setSslOverride($sslOverride) + { + $this->sslOverride = $sslOverride; + } + public function getSslOverride() + { + return $this->sslOverride; + } public function setStudioAdvertiserId($studioAdvertiserId) { $this->studioAdvertiserId = $studioAdvertiserId; @@ -12640,7 +12711,7 @@ class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model { protected $internal_gapi_mappings = array( ); - public $active; + public $advertiserCustomEventId; public $advertiserCustomEventName; public $advertiserCustomEventType; public $artworkLabel; @@ -12653,13 +12724,13 @@ class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model public $videoReportingId; - public function setActive($active) + public function setAdvertiserCustomEventId($advertiserCustomEventId) { - $this->active = $active; + $this->advertiserCustomEventId = $advertiserCustomEventId; } - public function getActive() + public function getAdvertiserCustomEventId() { - return $this->active; + return $this->advertiserCustomEventId; } public function setAdvertiserCustomEventName($advertiserCustomEventName) { @@ -14306,6 +14377,7 @@ class Google_Service_Dfareporting_EventTag extends Google_Collection protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $campaignIdDimensionValueDataType = ''; public $enabledByDefault; + public $excludeFromAdxRequests; public $id; public $kind; public $name; @@ -14367,6 +14439,14 @@ public function getEnabledByDefault() { return $this->enabledByDefault; } + public function setExcludeFromAdxRequests($excludeFromAdxRequests) + { + $this->excludeFromAdxRequests = $excludeFromAdxRequests; + } + public function getExcludeFromAdxRequests() + { + return $this->excludeFromAdxRequests; + } public function setId($id) { $this->id = $id; @@ -15200,17 +15280,19 @@ class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collect public $id; protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $idDimensionValueDataType = ''; + public $inAppAttributionTrackingEnabled; public $kind; protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; protected $lookbackConfigurationDataType = ''; public $naturalSearchConversionAttributionOption; protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; protected $omnitureSettingsDataType = ''; - public $sslRequired; public $standardVariableTypes; public $subaccountId; protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; protected $tagSettingsDataType = ''; + protected $thirdPartyAuthenticationTokensType = 'Google_Service_Dfareporting_ThirdPartyAuthenticationToken'; + protected $thirdPartyAuthenticationTokensDataType = 'array'; protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; protected $userDefinedVariableConfigurationsDataType = 'array'; @@ -15279,6 +15361,14 @@ public function getIdDimensionValue() { return $this->idDimensionValue; } + public function setInAppAttributionTrackingEnabled($inAppAttributionTrackingEnabled) + { + $this->inAppAttributionTrackingEnabled = $inAppAttributionTrackingEnabled; + } + public function getInAppAttributionTrackingEnabled() + { + return $this->inAppAttributionTrackingEnabled; + } public function setKind($kind) { $this->kind = $kind; @@ -15311,14 +15401,6 @@ public function getOmnitureSettings() { return $this->omnitureSettings; } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } public function setStandardVariableTypes($standardVariableTypes) { $this->standardVariableTypes = $standardVariableTypes; @@ -15343,6 +15425,14 @@ public function getTagSettings() { return $this->tagSettings; } + public function setThirdPartyAuthenticationTokens($thirdPartyAuthenticationTokens) + { + $this->thirdPartyAuthenticationTokens = $thirdPartyAuthenticationTokens; + } + public function getThirdPartyAuthenticationTokens() + { + return $this->thirdPartyAuthenticationTokens; + } public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) { $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; @@ -15603,6 +15693,7 @@ class Google_Service_Dfareporting_InventoryItem extends Google_Collection public $rfpId; public $siteId; public $subaccountId; + public $type; public function setAccountId($accountId) @@ -15757,6 +15848,14 @@ public function getSubaccountId() { return $this->subaccountId; } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } } class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection @@ -16838,7 +16937,7 @@ public function getSignatureUserProfileId() class Google_Service_Dfareporting_OrderDocument extends Google_Collection { - protected $collection_key = 'approvedByUserProfileIds'; + protected $collection_key = 'lastSentRecipients'; protected $internal_gapi_mappings = array( ); public $accountId; @@ -16851,6 +16950,8 @@ class Google_Service_Dfareporting_OrderDocument extends Google_Collection public $effectiveDate; public $id; public $kind; + public $lastSentRecipients; + public $lastSentTime; public $orderId; public $projectId; public $signed; @@ -16931,6 +17032,22 @@ public function getKind() { return $this->kind; } + public function setLastSentRecipients($lastSentRecipients) + { + $this->lastSentRecipients = $lastSentRecipients; + } + public function getLastSentRecipients() + { + return $this->lastSentRecipients; + } + public function setLastSentTime($lastSentTime) + { + $this->lastSentTime = $lastSentTime; + } + public function getLastSentTime() + { + return $this->lastSentTime; + } public function setOrderId($orderId) { $this->orderId = $orderId; @@ -17540,8 +17657,6 @@ class Google_Service_Dfareporting_PlacementGroup extends Google_Collection public $primaryPlacementId; protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $primaryPlacementIdDimensionValueDataType = ''; - protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; - protected $programmaticSettingDataType = ''; public $siteId; protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $siteIdDimensionValueDataType = ''; @@ -17732,14 +17847,6 @@ public function getPrimaryPlacementIdDimensionValue() { return $this->primaryPlacementIdDimensionValue; } - public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) - { - $this->programmaticSetting = $programmaticSetting; - } - public function getProgrammaticSetting() - { - return $this->programmaticSetting; - } public function setSiteId($siteId) { $this->siteId = $siteId; @@ -18420,69 +18527,6 @@ public function getUnits() } } -class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection -{ - protected $collection_key = 'traffickerEmails'; - protected $internal_gapi_mappings = array( - ); - public $adxDealIds; - public $insertionOrderId; - public $insertionOrderIdStatus; - public $mediaCostNanos; - public $programmatic; - public $traffickerEmails; - - - public function setAdxDealIds($adxDealIds) - { - $this->adxDealIds = $adxDealIds; - } - public function getAdxDealIds() - { - return $this->adxDealIds; - } - public function setInsertionOrderId($insertionOrderId) - { - $this->insertionOrderId = $insertionOrderId; - } - public function getInsertionOrderId() - { - return $this->insertionOrderId; - } - public function setInsertionOrderIdStatus($insertionOrderIdStatus) - { - $this->insertionOrderIdStatus = $insertionOrderIdStatus; - } - public function getInsertionOrderIdStatus() - { - return $this->insertionOrderIdStatus; - } - public function setMediaCostNanos($mediaCostNanos) - { - $this->mediaCostNanos = $mediaCostNanos; - } - public function getMediaCostNanos() - { - return $this->mediaCostNanos; - } - public function setProgrammatic($programmatic) - { - $this->programmatic = $programmatic; - } - public function getProgrammatic() - { - return $this->programmatic; - } - public function setTraffickerEmails($traffickerEmails) - { - $this->traffickerEmails = $traffickerEmails; - } - public function getTraffickerEmails() - { - return $this->traffickerEmails; - } -} - class Google_Service_Dfareporting_Project extends Google_Model { protected $internal_gapi_mappings = array( @@ -20333,6 +20377,7 @@ class Google_Service_Dfareporting_SiteSettings extends Google_Model protected $lookbackConfigurationDataType = ''; protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; protected $tagSettingDataType = ''; + public $videoActiveViewOptOut; public function setActiveViewOptOut($activeViewOptOut) @@ -20383,6 +20428,14 @@ public function getTagSetting() { return $this->tagSetting; } + public function setVideoActiveViewOptOut($videoActiveViewOptOut) + { + $this->videoActiveViewOptOut = $videoActiveViewOptOut; + } + public function getVideoActiveViewOptOut() + { + return $this->videoActiveViewOptOut; + } } class Google_Service_Dfareporting_SitesListResponse extends Google_Collection @@ -21001,6 +21054,32 @@ public function getPlatformTypes() } } +class Google_Service_Dfareporting_ThirdPartyAuthenticationToken extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dfareporting_ThirdPartyTrackingUrl extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php index 4675de5bc..48273270d 100644 --- a/src/Google/Service/Directory.php +++ b/src/Google/Service/Directory.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'orderBy' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'projection' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -266,6 +269,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', @@ -511,10 +518,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'domain' => array( 'location' => 'query', 'type' => 'string', @@ -523,6 +526,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'userKey' => array( 'location' => 'query', 'type' => 'string', @@ -652,6 +659,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -660,10 +671,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'patch' => array( 'path' => 'groups/{groupKey}/members/{memberKey}', @@ -763,23 +770,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'projection' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -787,6 +790,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -837,7 +844,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -845,7 +852,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -941,11 +948,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'type' => array( + 'orgUnitPath' => array( 'location' => 'query', 'type' => 'string', ), - 'orgUnitPath' => array( + 'type' => array( 'location' => 'query', 'type' => 'string', ), @@ -1006,6 +1013,104 @@ public function __construct(Google_Client $client) ) ) ); + $this->resources_calendars = new Google_Service_Directory_ResourcesCalendars_Resource( + $this, + $this->serviceName, + 'calendars', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'calendarResourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'calendarResourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'customer/{customer}/resources/calendars', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'customer/{customer}/resources/calendars', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'calendarResourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'calendarResourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource( $this, $this->serviceName, @@ -1061,19 +1166,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'userKey' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'roleId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'roleId' => array( + 'userKey' => array( 'location' => 'query', 'type' => 'string', ), @@ -1137,14 +1242,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'customer/{customer}/roles/{roleId}', @@ -1345,15 +1450,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'viewType' => array( + 'customFieldMask' => array( 'location' => 'query', 'type' => 'string', ), - 'customFieldMask' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'viewType' => array( 'location' => 'query', 'type' => 'string', ), @@ -1366,11 +1471,11 @@ public function __construct(Google_Client $client) 'path' => 'users', 'httpMethod' => 'GET', 'parameters' => array( - 'customer' => array( + 'customFieldMask' => array( 'location' => 'query', 'type' => 'string', ), - 'orderBy' => array( + 'customer' => array( 'location' => 'query', 'type' => 'string', ), @@ -1378,27 +1483,23 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'event' => array( 'location' => 'query', 'type' => 'string', ), - 'showDeleted' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'customFieldMask' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -1406,11 +1507,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'viewType' => array( + 'showDeleted' => array( 'location' => 'query', 'type' => 'string', ), - 'event' => array( + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'viewType' => array( 'location' => 'query', 'type' => 'string', ), @@ -1459,11 +1564,11 @@ public function __construct(Google_Client $client) 'path' => 'users/watch', 'httpMethod' => 'POST', 'parameters' => array( - 'customer' => array( + 'customFieldMask' => array( 'location' => 'query', 'type' => 'string', ), - 'orderBy' => array( + 'customer' => array( 'location' => 'query', 'type' => 'string', ), @@ -1471,27 +1576,23 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'event' => array( 'location' => 'query', 'type' => 'string', ), - 'showDeleted' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'customFieldMask' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'sortOrder' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -1499,11 +1600,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'viewType' => array( + 'showDeleted' => array( 'location' => 'query', 'type' => 'string', ), - 'event' => array( + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'viewType' => array( 'location' => 'query', 'type' => 'string', ), @@ -1788,15 +1893,15 @@ public function get($customerId, $deviceId, $optParams = array()) * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of results to return. Default is 100 * @opt_param string orderBy Column to use for sorting results + * @opt_param string pageToken Token to specify next page in the list * @opt_param string projection Restrict information returned to a set of * selected fields. - * @opt_param int maxResults Maximum number of results to return. Default is 100 - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. Only of use when orderBy is also used * @opt_param string query Search string in the format given at * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. Only of use when orderBy is also used * @return Google_Service_Directory_ChromeOsDevices */ public function listChromeosdevices($customerId, $optParams = array()) @@ -2105,11 +2210,11 @@ public function insert(Google_Service_Directory_Group $postBody, $optParams = ar * @opt_param string customer Immutable id of the Google Apps account. In case * of multi-domain, to fetch all groups for a customer, fill this field instead * of domain. - * @opt_param string pageToken Token to specify next page in the list * @opt_param string domain Name of the domain. Fill this field to get groups * from only this domain. To return all groups in a multi-domain fill customer * field instead. * @opt_param int maxResults Maximum number of results to return. Default is 200 + * @opt_param string pageToken Token to specify next page in the list * @opt_param string userKey Email or immutable Id of the user if only those * groups are to be listed, the given user is a member of. If Id, it should * match with id of user object @@ -2271,10 +2376,10 @@ public function insert($groupKey, Google_Service_Directory_Member $postBody, $op * @param string $groupKey Email or immutable Id of the group * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of results to return. Default is 200 * @opt_param string pageToken Token to specify next page in the list * @opt_param string roles Comma separated role values to filter list results * on. - * @opt_param int maxResults Maximum number of results to return. Default is 200 * @return Google_Service_Directory_Members */ public function listMembers($groupKey, $optParams = array()) @@ -2387,15 +2492,15 @@ public function get($customerId, $resourceId, $optParams = array()) * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of results to return. Default is 100 * @opt_param string orderBy Column to use for sorting results + * @opt_param string pageToken Token to specify next page in the list * @opt_param string projection Restrict information returned to a set of * selected fields. - * @opt_param int maxResults Maximum number of results to return. Default is 100 - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. Only of use when orderBy is also used * @opt_param string query Search string in the format given at * http://support.google.com/a/bin/answer.py?hl=en=1408863#search + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. Only of use when orderBy is also used * @return Google_Service_Directory_MobileDevices */ public function listMobiledevices($customerId, $optParams = array()) @@ -2454,12 +2559,12 @@ public function get($customer, $notificationId, $optParams = array()) * @param string $customer The unique ID for the customer's Google account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token to specify the page of results to - * retrieve. - * @opt_param string maxResults Maximum number of notifications to return per - * page. The default is 100. * @opt_param string language The ISO 639-1 code of the language notifications * are returned in. The default is English (en). + * @opt_param string maxResults Maximum number of notifications to return per + * page. The default is 100. + * @opt_param string pageToken The token to specify the page of results to + * retrieve. * @return Google_Service_Directory_Notifications */ public function listNotifications($customer, $optParams = array()) @@ -2564,10 +2669,10 @@ public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, * @param string $customerId Immutable id of the Google Apps account * @param array $optParams Optional parameters. * - * @opt_param string type Whether to return all sub-organizations or just - * immediate children * @opt_param string orgUnitPath the URL-encoded organization unit's path or its * Id + * @opt_param string type Whether to return all sub-organizations or just + * immediate children * @return Google_Service_Directory_OrgUnits */ public function listOrgunits($customerId, $optParams = array()) @@ -2638,6 +2743,141 @@ public function listPrivileges($customer, $optParams = array()) } } +/** + * The "resources" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $resources = $adminService->resources; + * + */ +class Google_Service_Directory_Resources_Resource extends Google_Service_Resource +{ +} + +/** + * The "calendars" collection of methods. + * Typical usage is: + * + * $adminService = new Google_Service_Directory(...); + * $calendars = $adminService->calendars; + * + */ +class Google_Service_Directory_ResourcesCalendars_Resource extends Google_Service_Resource +{ + + /** + * Deletes a calendar resource. (calendars.delete) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param string $calendarResourceId The unique ID of the calendar resource to + * delete. + * @param array $optParams Optional parameters. + */ + public function delete($customer, $calendarResourceId, $optParams = array()) + { + $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a calendar resource. (calendars.get) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param string $calendarResourceId The unique ID of the calendar resource to + * retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_CalendarResource + */ + public function get($customer, $calendarResourceId, $optParams = array()) + { + $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_CalendarResource"); + } + + /** + * Inserts a calendar resource. (calendars.insert) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param Google_CalendarResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_CalendarResource + */ + public function insert($customer, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_CalendarResource"); + } + + /** + * Retrieves a list of calendar resources for an account. + * (calendars.listResourcesCalendars) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Token to specify the next page in the list. + * @return Google_Service_Directory_CalendarResources + */ + public function listResourcesCalendars($customer, $optParams = array()) + { + $params = array('customer' => $customer); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_CalendarResources"); + } + + /** + * Updates a calendar resource. This method supports patch semantics. + * (calendars.patch) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param string $calendarResourceId The unique ID of the calendar resource to + * update. + * @param Google_CalendarResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_CalendarResource + */ + public function patch($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_CalendarResource"); + } + + /** + * Updates a calendar resource. (calendars.update) + * + * @param string $customer The unique ID for the customer's Google account. As + * an account administrator, you can also use the my_customer alias to represent + * your account's customer ID. + * @param string $calendarResourceId The unique ID of the calendar resource to + * update. + * @param Google_CalendarResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_CalendarResource + */ + public function update($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) + { + $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_CalendarResource"); + } +} + /** * The "roleAssignments" collection of methods. * Typical usage is: @@ -2700,13 +2940,13 @@ public function insert($customer, Google_Service_Directory_RoleAssignment $postB * @param string $customer Immutable ID of the Google Apps account. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Token to specify the next page in the list. + * @opt_param string roleId Immutable ID of a role. If included in the request, + * returns only role assignments containing this role ID. * @opt_param string userKey The user's primary email address, alias email * address, or unique user ID. If included in the request, returns role * assignments only for this user. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string roleId Immutable ID of a role. If included in the request, - * returns only role assignments containing this role ID. * @return Google_Service_Directory_RoleAssignments */ public function listRoleAssignments($customer, $optParams = array()) @@ -2778,8 +3018,8 @@ public function insert($customer, Google_Service_Directory_Role $postBody, $optP * @param string $customer Immutable id of the Google Apps account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token to specify the next page in the list. * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Token to specify the next page in the list. * @return Google_Service_Directory_Roles */ public function listRoles($customer, $optParams = array()) @@ -3015,12 +3255,12 @@ public function delete($userKey, $optParams = array()) * @param string $userKey Email or immutable Id of the user * @param array $optParams Optional parameters. * - * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC - * view of the user. * @opt_param string customFieldMask Comma-separated list of schema names. All * fields from these schemas are fetched. This should only be set when * projection=custom. * @opt_param string projection What subset of fields to fetch for this user. + * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC + * view of the user. * @return Google_Service_Directory_User */ public function get($userKey, $optParams = array()) @@ -3050,31 +3290,31 @@ public function insert(Google_Service_Directory_User $postBody, $optParams = arr * * @param array $optParams Optional parameters. * + * @opt_param string customFieldMask Comma-separated list of schema names. All + * fields from these schemas are fetched. This should only be set when + * projection=custom. * @opt_param string customer Immutable id of the Google Apps account. In case * of multi-domain, to fetch all users for a customer, fill this field instead * of domain. - * @opt_param string orderBy Column to use for sorting results * @opt_param string domain Name of the domain. Fill this field to get users * from only this domain. To return all users in a multi-domain fill customer * field instead. - * @opt_param string projection What subset of fields to fetch for this user. - * @opt_param string showDeleted If set to true retrieves the list of deleted - * users. Default is false - * @opt_param string customFieldMask Comma-separated list of schema names. All - * fields from these schemas are fetched. This should only be set when - * projection=custom. + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @opt_param int maxResults Maximum number of results to return. Default is * 100. Max allowed is 500 + * @opt_param string orderBy Column to use for sorting results * @opt_param string pageToken Token to specify next page in the list - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. + * @opt_param string projection What subset of fields to fetch for this user. * @opt_param string query Query string search. Should be of the form "". * Complete documentation is at https://developers.google.com/admin- * sdk/directory/v1/guides/search-users + * @opt_param string showDeleted If set to true retrieves the list of deleted + * users. Default is false + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC * view of the user. - * @opt_param string event Event on which subscription is intended (if - * subscribing) * @return Google_Service_Directory_Users */ public function listUsers($optParams = array()) @@ -3150,31 +3390,31 @@ public function update($userKey, Google_Service_Directory_User $postBody, $optPa * @param Google_Channel $postBody * @param array $optParams Optional parameters. * + * @opt_param string customFieldMask Comma-separated list of schema names. All + * fields from these schemas are fetched. This should only be set when + * projection=custom. * @opt_param string customer Immutable id of the Google Apps account. In case * of multi-domain, to fetch all users for a customer, fill this field instead * of domain. - * @opt_param string orderBy Column to use for sorting results * @opt_param string domain Name of the domain. Fill this field to get users * from only this domain. To return all users in a multi-domain fill customer * field instead. - * @opt_param string projection What subset of fields to fetch for this user. - * @opt_param string showDeleted If set to true retrieves the list of deleted - * users. Default is false - * @opt_param string customFieldMask Comma-separated list of schema names. All - * fields from these schemas are fetched. This should only be set when - * projection=custom. + * @opt_param string event Event on which subscription is intended (if + * subscribing) * @opt_param int maxResults Maximum number of results to return. Default is * 100. Max allowed is 500 + * @opt_param string orderBy Column to use for sorting results * @opt_param string pageToken Token to specify next page in the list - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. + * @opt_param string projection What subset of fields to fetch for this user. * @opt_param string query Query string search. Should be of the form "". * Complete documentation is at https://developers.google.com/admin- * sdk/directory/v1/guides/search-users + * @opt_param string showDeleted If set to true retrieves the list of deleted + * users. Default is false + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC * view of the user. - * @opt_param string event Event on which subscription is intended (if - * subscribing) * @return Google_Service_Directory_Channel */ public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) @@ -3587,6 +3827,123 @@ public function getKind() } } +class Google_Service_Directory_CalendarResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etags; + public $kind; + public $resourceDescription; + public $resourceEmail; + public $resourceId; + public $resourceName; + public $resourceType; + + + 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 setResourceDescription($resourceDescription) + { + $this->resourceDescription = $resourceDescription; + } + public function getResourceDescription() + { + return $this->resourceDescription; + } + public function setResourceEmail($resourceEmail) + { + $this->resourceEmail = $resourceEmail; + } + public function getResourceEmail() + { + return $this->resourceEmail; + } + public function setResourceId($resourceId) + { + $this->resourceId = $resourceId; + } + public function getResourceId() + { + return $this->resourceId; + } + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; + } + public function setResourceType($resourceType) + { + $this->resourceType = $resourceType; + } + public function getResourceType() + { + return $this->resourceType; + } +} + +class Google_Service_Directory_CalendarResources extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_Directory_CalendarResource'; + protected $itemsDataType = 'array'; + 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_Directory_Channel extends Google_Model { protected $internal_gapi_mappings = array( @@ -3685,10 +4042,6 @@ public function getType() } } -class Google_Service_Directory_ChannelParams extends Google_Model -{ -} - class Google_Service_Directory_ChromeOsDevice extends Google_Collection { protected $collection_key = 'recentUsers'; @@ -6514,14 +6867,6 @@ public function getType() } } -class Google_Service_Directory_UserCustomProperties extends Google_Model -{ -} - -class Google_Service_Directory_UserCustomSchemas extends Google_Model -{ -} - class Google_Service_Directory_UserEmail extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php index e94410b52..f41fe163a 100644 --- a/src/Google/Service/Dns.php +++ b/src/Google/Service/Dns.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'dnsName' => array( 'location' => 'query', 'type' => 'string', @@ -206,6 +202,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -251,14 +251,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -413,13 +413,13 @@ public function get($project, $managedZone, $optParams = array()) * @param string $project Identifies the project addressed by this request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. * @opt_param string dnsName Restricts the list to return only zones with this * domain name. * @opt_param int maxResults Optional. Maximum number of results to be returned. * If unspecified, the server will decide how many results to return. + * @opt_param string pageToken Optional. A tag returned by a previous list + * request that was truncated. Use this parameter to continue a previous list + * request. * @return Google_Service_Dns_ManagedZonesListResponse */ public function listManagedZones($project, $optParams = array()) @@ -476,10 +476,10 @@ class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Reso * request. Can be the managed zone name or id. * @param array $optParams Optional parameters. * - * @opt_param string name Restricts the list to return only records with this - * fully qualified domain name. * @opt_param int maxResults Optional. Maximum number of results to be returned. * If unspecified, the server will decide how many results to return. + * @opt_param string name Restricts the list to return only records with this + * fully qualified domain name. * @opt_param string pageToken Optional. A tag returned by a previous list * request that was truncated. Use this parameter to continue a previous list * request. diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php index f17ef6b20..679834b0f 100644 --- a/src/Google/Service/DoubleClickBidManager.php +++ b/src/Google/Service/DoubleClickBidManager.php @@ -1,6 +1,6 @@ rubicon = new Google_Service_DoubleClickBidManager_Rubicon_Resource( + $this, + $this->serviceName, + 'rubicon', + array( + 'methods' => array( + 'notifyproposalchange' => array( + 'path' => 'rubicon/notifyproposalchange', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); } } @@ -288,6 +303,32 @@ public function listreports($queryId, $optParams = array()) } } +/** + * The "rubicon" collection of methods. + * Typical usage is: + * + * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...); + * $rubicon = $doubleclickbidmanagerService->rubicon; + * + */ +class Google_Service_DoubleClickBidManager_Rubicon_Resource extends Google_Service_Resource +{ + + /** + * Update proposal upon actions of Rubicon publisher. + * (rubicon.notifyproposalchange) + * + * @param Google_NotifyProposalChangeRequest $postBody + * @param array $optParams Optional parameters. + */ + public function notifyproposalchange(Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('notifyproposalchange', array($params)); + } +} + @@ -435,6 +476,114 @@ public function getReports() } } +class Google_Service_DoubleClickBidManager_Note extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $message; + public $source; + public $timestamp; + public $username; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest extends Google_Collection +{ + protected $collection_key = 'notes'; + protected $internal_gapi_mappings = array( + ); + public $action; + public $href; + public $id; + protected $notesType = 'Google_Service_DoubleClickBidManager_Note'; + protected $notesDataType = 'array'; + public $token; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setHref($href) + { + $this->href = $href; + } + public function getHref() + { + return $this->href; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection { protected $collection_key = 'metrics'; diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php index 9279c0e96..401c25bb8 100644 --- a/src/Google/Service/Doubleclicksearch.php +++ b/src/Google/Service/Doubleclicksearch.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'campaignId' => array( + 'adId' => array( 'location' => 'query', 'type' => 'string', ), - 'adId' => array( + 'campaignId' => array( 'location' => 'query', 'type' => 'string', ), @@ -271,8 +271,8 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic * @param array $optParams Optional parameters. * * @opt_param string adGroupId Numeric ID of the ad group. - * @opt_param string campaignId Numeric ID of the campaign. * @opt_param string adId Numeric ID of the ad. + * @opt_param string campaignId Numeric ID of the campaign. * @opt_param string criterionId Numeric ID of the criterion. * @return Google_Service_Doubleclicksearch_ConversionList */ @@ -1437,10 +1437,6 @@ public function getStartDate() } } -class Google_Service_Doubleclicksearch_ReportRow extends Google_Model -{ -} - class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php index ab06a05cf..55b167aea 100644 --- a/src/Google/Service/Drive.php +++ b/src/Google/Service/Drive.php @@ -1,6 +1,6 @@ * The API to interact with Drive.

    @@ -36,9 +36,6 @@ class Google_Service_Drive extends Google_Service /** View and manage its own configuration data in your Google Drive. */ const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; - /** View your Google Drive apps. */ - const DRIVE_APPS_READONLY = - "https://www.googleapis.com/auth/drive.apps.readonly"; /** View and manage Google Drive files and folders that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; @@ -59,16 +56,11 @@ class Google_Service_Drive extends Google_Service "https://www.googleapis.com/auth/drive.scripts"; public $about; - public $apps; public $changes; public $channels; - public $children; public $comments; public $files; - public $parents; public $permissions; - public $properties; - public $realtime; public $replies; public $revisions; @@ -82,8 +74,8 @@ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'drive/v2/'; - $this->version = 'v2'; + $this->servicePath = 'drive/v3/'; + $this->version = 'v3'; $this->serviceName = 'drive'; $this->about = new Google_Service_Drive_About_Resource( @@ -95,57 +87,7 @@ public function __construct(Google_Client $client) 'get' => array( 'path' => 'about', 'httpMethod' => 'GET', - 'parameters' => array( - 'includeSubscribed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxChangeIdCount' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->apps = new Google_Service_Drive_Apps_Resource( - $this, - $this->serviceName, - 'apps', - array( - 'methods' => array( - 'get' => array( - 'path' => 'apps/{appId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'apps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'languageCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'appFilterExtensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'appFilterMimeTypes' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), + 'parameters' => array(), ), ) ) @@ -156,73 +98,61 @@ public function __construct(Google_Client $client) 'changes', array( 'methods' => array( - 'get' => array( - 'path' => 'changes/{changeId}', + 'getStartPageToken' => array( + 'path' => 'changes/startPageToken', 'httpMethod' => 'GET', - 'parameters' => array( - 'changeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), + 'parameters' => array(), ),'list' => array( 'path' => 'changes', 'httpMethod' => 'GET', 'parameters' => array( - 'includeSubscribed' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'required' => true, ), - 'includeDeleted' => array( + 'includeRemoved' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'restrictToMyDrive' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'spaces' => array( 'location' => 'query', 'type' => 'string', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'watch' => array( 'path' => 'changes/watch', 'httpMethod' => 'POST', 'parameters' => array( - 'includeSubscribed' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'required' => true, ), - 'includeDeleted' => array( + 'includeRemoved' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'restrictToMyDrive' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'spaces' => array( 'location' => 'query', 'type' => 'string', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -242,89 +172,23 @@ public function __construct(Google_Client $client) ) ) ); - $this->children = new Google_Service_Drive_Children_Resource( + $this->comments = new Google_Service_Drive_Comments_Resource( $this, $this->serviceName, - 'children', + 'comments', array( 'methods' => array( - 'delete' => array( - 'path' => 'files/{folderId}/children/{childId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'childId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{folderId}/children/{childId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'childId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'files/{folderId}/children', + 'create' => array( + 'path' => 'files/{fileId}/comments', 'httpMethod' => 'POST', 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{folderId}/children', - 'httpMethod' => 'GET', - 'parameters' => array( - 'folderId' => array( + 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ), - ) - ) - ); - $this->comments = new Google_Service_Drive_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( + ),'delete' => array( 'path' => 'files/{fileId}/comments/{commentId}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -358,16 +222,6 @@ public function __construct(Google_Client $client) 'type' => 'boolean', ), ), - ),'insert' => array( - 'path' => 'files/{fileId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'list' => array( 'path' => 'files/{fileId}/comments', 'httpMethod' => 'GET', @@ -377,41 +231,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'commentId' => array( - 'location' => 'path', + 'startModifiedTime' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), ),'update' => array( 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'PUT', + 'httpMethod' => 'PATCH', 'parameters' => array( 'fileId' => array( 'location' => 'path', @@ -443,33 +282,38 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'convert' => array( + 'ignoreDefaultVisibility' => array( 'location' => 'query', 'type' => 'boolean', ), - 'ocrLanguage' => array( + 'keepRevisionForever' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'visibility' => array( + 'ocrLanguage' => array( 'location' => 'query', 'type' => 'string', ), - 'pinned' => array( + ), + ),'create' => array( + 'path' => 'files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'ignoreDefaultVisibility' => array( 'location' => 'query', 'type' => 'boolean', ), - 'ocr' => array( + 'keepRevisionForever' => array( 'location' => 'query', 'type' => 'boolean', ), - 'timedTextTrackName' => array( + 'ocrLanguage' => array( 'location' => 'query', 'type' => 'string', ), - 'timedTextLanguage' => array( + 'useContentAsIndexableText' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'delete' => array( @@ -486,11 +330,26 @@ public function __construct(Google_Client $client) 'path' => 'files/trash', 'httpMethod' => 'DELETE', 'parameters' => array(), + ),'export' => array( + 'path' => 'files/{fileId}/export', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'mimeType' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), ),'generateIds' => array( 'path' => 'files/generateIds', 'httpMethod' => 'GET', 'parameters' => array( - 'maxResults' => array( + 'count' => array( 'location' => 'query', 'type' => 'integer', ), @@ -512,90 +371,37 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'revisionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'list' => array( 'path' => 'files', 'httpMethod' => 'GET', 'parameters' => array( - 'orderBy' => array( + 'corpus' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'spaces' => array( + 'q' => array( 'location' => 'query', 'type' => 'string', ), - 'corpus' => array( + 'spaces' => array( 'location' => 'query', 'type' => 'string', ), ), - ),'patch' => array( + ),'update' => array( 'path' => 'files/{fileId}', 'httpMethod' => 'PATCH', 'parameters' => array( @@ -608,77 +414,25 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'modifiedDateBehavior' => array( + 'keepRevisionForever' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'removeParents' => array( + 'ocrLanguage' => array( 'location' => 'query', 'type' => 'string', ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'setModifiedDate' => array( + 'removeParents' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'useContentAsIndexableText' => array( 'location' => 'query', 'type' => 'boolean', ), - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'newRevision' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'touch' => array( - 'path' => 'files/{fileId}/touch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => 'files/{fileId}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), - ),'untrash' => array( - 'path' => 'files/{fileId}/untrash', + ),'watch' => array( + 'path' => 'files/{fileId}/watch', 'httpMethod' => 'POST', 'parameters' => array( 'fileId' => array( @@ -686,71 +440,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - ), - ),'update' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'addParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedDateBehavior' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'removeParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'setModifiedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'newRevision' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( + 'acknowledgeAbuse' => array( 'location' => 'query', 'type' => 'boolean', ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), ), - ),'watch' => array( - 'path' => 'files/{fileId}/watch', + ), + ) + ) + ); + $this->permissions = new Google_Service_Drive_Permissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'files/{fileId}/permissions', 'httpMethod' => 'POST', 'parameters' => array( 'fileId' => array( @@ -758,35 +464,21 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'acknowledgeAbuse' => array( + 'emailMessage' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'updateViewedDate' => array( + 'sendNotificationEmail' => array( 'location' => 'query', 'type' => 'boolean', ), - 'revisionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( + 'transferOwnership' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), - ), - ) - ) - ); - $this->parents = new Google_Service_Drive_Parents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/parents/{parentId}', + ),'delete' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'fileId' => array( @@ -794,14 +486,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'parentId' => array( + 'permissionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'files/{fileId}/parents/{parentId}', + 'path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( @@ -809,15 +501,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'parentId' => array( + 'permissionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => 'files/{fileId}/parents', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => 'files/{fileId}/permissions', + 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( 'location' => 'path', @@ -825,86 +517,96 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'list' => array( - 'path' => 'files/{fileId}/parents', - 'httpMethod' => 'GET', + ),'update' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', + 'httpMethod' => 'PATCH', 'parameters' => array( 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'transferOwnership' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) ) ); - $this->permissions = new Google_Service_Drive_Permissions_Resource( + $this->replies = new Google_Service_Drive_Replies_Resource( $this, $this->serviceName, - 'permissions', + 'replies', array( 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'DELETE', + 'create' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies', + 'httpMethod' => 'POST', 'parameters' => array( 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'permissionId' => array( + 'commentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'GET', + ),'delete' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'permissionId' => array( + 'commentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'getIdForEmail' => array( - 'path' => 'permissionIds/{email}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'email' => array( + 'replyId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'insert' => array( - 'path' => 'files/{fileId}/permissions', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'emailMessage' => array( - 'location' => 'query', + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replyId' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'sendNotificationEmails' => array( + 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'list' => array( - 'path' => 'files/{fileId}/permissions', + 'path' => 'files/{fileId}/comments/{commentId}/replies', 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( @@ -912,57 +614,56 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( + 'commentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'transferOwnership' => array( + 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'PUT', + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'PATCH', 'parameters' => array( 'fileId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'permissionId' => array( + 'commentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'transferOwnership' => array( - 'location' => 'query', - 'type' => 'boolean', + 'replyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ), ) ) ); - $this->properties = new Google_Service_Drive_Properties_Resource( + $this->revisions = new Google_Service_Drive_Revisions_Resource( $this, $this->serviceName, - 'properties', + 'revisions', array( 'methods' => array( 'delete' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', + 'path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'fileId' => array( @@ -970,18 +671,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'propertyKey' => array( + 'revisionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'get' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', + 'path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( @@ -989,28 +686,18 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'propertyKey' => array( + 'revisionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'visibility' => array( + 'acknowledgeAbuse' => array( 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/properties', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, + 'type' => 'boolean', ), ), ),'list' => array( - 'path' => 'files/{fileId}/properties', + 'path' => 'files/{fileId}/revisions', 'httpMethod' => 'GET', 'parameters' => array( 'fileId' => array( @@ -1019,8 +706,8 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'patch' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', + ),'update' => array( + 'path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'PATCH', 'parameters' => array( 'fileId' => array( @@ -1028,284 +715,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->realtime = new Google_Service_Drive_Realtime_Resource( - $this, - $this->serviceName, - 'realtime', - array( - 'methods' => array( - 'get' => array( - 'path' => 'files/{fileId}/realtime', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revision' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/realtime', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'baseRevision' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->replies = new Google_Service_Drive_Replies_Resource( - $this, - $this->serviceName, - 'replies', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->revisions = new Google_Service_Drive_Revisions_Resource( - $this, - $this->serviceName, - 'revisions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/revisions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( + 'revisionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -1331,20 +741,10 @@ class Google_Service_Drive_About_Resource extends Google_Service_Resource { /** - * Gets the information about the current user along with Drive API settings + * Gets information about the user, the user's Drive, and system capabilities. * (about.get) * * @param array $optParams Optional parameters. - * - * @opt_param bool includeSubscribed When calculating the number of remaining - * change IDs, whether to include public files the user has opened and shared - * files. When set to false, this counts only change IDs for owned files and any - * shared or public files that the user has explicitly added to a folder they - * own. - * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to - * count - * @opt_param string startChangeId Change ID to start counting from when - * calculating number of remaining change IDs * @return Google_Service_Drive_About */ public function get($optParams = array()) @@ -1356,128 +756,81 @@ public function get($optParams = array()) } /** - * The "apps" collection of methods. + * The "changes" collection of methods. * Typical usage is: * * $driveService = new Google_Service_Drive(...); - * $apps = $driveService->apps; + * $changes = $driveService->changes; * */ -class Google_Service_Drive_Apps_Resource extends Google_Service_Resource +class Google_Service_Drive_Changes_Resource extends Google_Service_Resource { /** - * Gets a specific app. (apps.get) + * Gets the starting pageToken for listing future changes. + * (changes.getStartPageToken) * - * @param string $appId The ID of the app. * @param array $optParams Optional parameters. - * @return Google_Service_Drive_App + * @return Google_Service_Drive_StartPageToken */ - public function get($appId, $optParams = array()) + public function getStartPageToken($optParams = array()) { - $params = array('appId' => $appId); + $params = array(); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_App"); + return $this->call('getStartPageToken', array($params), "Google_Service_Drive_StartPageToken"); } /** - * Lists a user's installed apps. (apps.listApps) + * Lists changes for a user. (changes.listChanges) * + * @param string $pageToken The token for continuing a previous list request on + * the next page. This should be set to the value of 'nextPageToken' from the + * previous response or to the response from the getStartPageToken method. * @param array $optParams Optional parameters. * - * @opt_param string languageCode A language or locale code, as defined by BCP - * 47, with some extensions from Unicode's LDML format - * (http://www.unicode.org/reports/tr35/). - * @opt_param string appFilterExtensions A comma-separated list of file - * extensions for open with filtering. All apps within the given app query scope - * which can open any of the given file extensions will be included in the - * response. If appFilterMimeTypes are provided as well, the result is a union - * of the two resulting app lists. - * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for - * open with filtering. All apps within the given app query scope which can open - * any of the given MIME types will be included in the response. If - * appFilterExtensions are provided as well, the result is a union of the two - * resulting app lists. - * @return Google_Service_Drive_AppList + * @opt_param bool includeRemoved Whether to include changes indicating that + * items have left the view of the changes list, for example by deletion or lost + * access. + * @opt_param int pageSize The maximum number of changes to return per page. + * @opt_param bool restrictToMyDrive Whether to restrict the results to changes + * inside the My Drive hierarchy. This omits changes to files such as those in + * the Application Data folder or shared files which have not been added to My + * Drive. + * @opt_param string spaces A comma-separated list of spaces to query within the + * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. + * @return Google_Service_Drive_ChangeList */ - public function listApps($optParams = array()) + public function listChanges($pageToken, $optParams = array()) { - $params = array(); + $params = array('pageToken' => $pageToken); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_AppList"); - } -} - -/** - * The "changes" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $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); - return $this->call('get', array($params), "Google_Service_Drive_Change"); - } - - /** - * Lists the changes for a user. (changes.listChanges) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSubscribed Whether to include public files the user - * has opened and shared files. When set to false, the list only includes owned - * files plus any shared or public files the user has explicitly added to a - * folder they own. - * @opt_param bool includeDeleted Whether to include deleted items. - * @opt_param int maxResults Maximum number of changes to return. - * @opt_param string pageToken Page token for changes. - * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive', 'appDataFolder' and 'photos'. - * @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); - return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); + return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); } /** - * Subscribe to changes for a user. (changes.watch) + * Subscribes to changes for a user. (changes.watch) * + * @param string $pageToken The token for continuing a previous list request on + * the next page. This should be set to the value of 'nextPageToken' from the + * previous response or to the response from the getStartPageToken method. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param bool includeSubscribed Whether to include public files the user - * has opened and shared files. When set to false, the list only includes owned - * files plus any shared or public files the user has explicitly added to a - * folder they own. - * @opt_param bool includeDeleted Whether to include deleted items. - * @opt_param int maxResults Maximum number of changes to return. - * @opt_param string pageToken Page token for changes. - * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive', 'appDataFolder' and 'photos'. - * @opt_param string startChangeId Change ID to start listing changes from. + * @opt_param bool includeRemoved Whether to include changes indicating that + * items have left the view of the changes list, for example by deletion or lost + * access. + * @opt_param int pageSize The maximum number of changes to return per page. + * @opt_param bool restrictToMyDrive Whether to restrict the results to changes + * inside the My Drive hierarchy. This omits changes to files such as those in + * the Application Data folder or shared files which have not been added to My + * Drive. + * @opt_param string spaces A comma-separated list of spaces to query within the + * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. * @return Google_Service_Drive_Channel */ - public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) + public function watch($pageToken, Google_Service_Drive_Channel $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('pageToken' => $pageToken, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('watch', array($params), "Google_Service_Drive_Channel"); } @@ -1509,96 +862,30 @@ public function stop(Google_Service_Drive_Channel $postBody, $optParams = array( } /** - * The "children" collection of methods. + * The "comments" collection of methods. * Typical usage is: * * $driveService = new Google_Service_Drive(...); - * $children = $driveService->children; + * $comments = $driveService->comments; * */ -class Google_Service_Drive_Children_Resource extends Google_Service_Resource +class Google_Service_Drive_Comments_Resource extends Google_Service_Resource { /** - * Removes a child from a folder. (children.delete) - * - * @param string $folderId The ID of the folder. - * @param string $childId The ID of the child. - * @param array $optParams Optional parameters. - */ - public function delete($folderId, $childId, $optParams = array()) - { - $params = array('folderId' => $folderId, 'childId' => $childId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a specific child reference. (children.get) - * - * @param string $folderId The ID of the folder. - * @param string $childId The ID of the child. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ChildReference - */ - public function get($folderId, $childId, $optParams = array()) - { - $params = array('folderId' => $folderId, 'childId' => $childId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); - } - - /** - * Inserts a file into a folder. (children.insert) - * - * @param string $folderId The ID of the folder. - * @param Google_ChildReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ChildReference - */ - public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array()) - { - $params = array('folderId' => $folderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); - } - - /** - * Lists a folder's children. (children.listChildren) + * Creates a new comment on a file. (comments.create) * - * @param string $folderId The ID of the folder. + * @param string $fileId The ID of the file. + * @param Google_Comment $postBody * @param array $optParams Optional parameters. - * - * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are - * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', - * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', - * and 'title'. Each key sorts ascending by default, but may be reversed with - * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. - * Please note that there is a current limitation for users with approximately - * one million files in which the requested sort order is ignored. - * @opt_param string pageToken Page token for children. - * @opt_param string q Query string for searching children. - * @opt_param int maxResults Maximum number of children to return. - * @return Google_Service_Drive_ChildList + * @return Google_Service_Drive_Comment */ - public function listChildren($folderId, $optParams = array()) + public function create($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) { - $params = array('folderId' => $folderId); + $params = array('fileId' => $fileId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ChildList"); + return $this->call('create', array($params), "Google_Service_Drive_Comment"); } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $comments = $driveService->comments; - * - */ -class Google_Service_Drive_Comments_Resource extends Google_Service_Resource -{ /** * Deletes a comment. (comments.delete) @@ -1621,8 +908,8 @@ public function delete($fileId, $commentId, $optParams = array()) * @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. + * @opt_param bool includeDeleted Whether to return deleted comments. Deleted + * comments will not include their original content. * @return Google_Service_Drive_Comment */ public function get($fileId, $commentId, $optParams = array()) @@ -1632,36 +919,20 @@ public function get($fileId, $commentId, $optParams = array()) return $this->call('get', array($params), "Google_Service_Drive_Comment"); } - /** - * Creates a new comment on the given file. (comments.insert) - * - * @param string $fileId The ID of the file. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Comment"); - } - /** * Lists a file's comments. (comments.listComments) * * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of "nextPageToken" from the previous response. - * @opt_param string updatedMin Only discussions that were updated after this - * timestamp will be returned. Formatted as an RFC 3339 timestamp. - * @opt_param bool includeDeleted If set, all comments and replies, including - * deleted comments and replies (with content stripped) will be returned. - * @opt_param int maxResults The maximum number of discussions to include in the - * response, used for paging. + * @opt_param bool includeDeleted Whether to include deleted comments. Deleted + * comments will not include their original content. + * @opt_param int pageSize The maximum number of comments to return per page. + * @opt_param string pageToken The token for continuing a previous list request + * on the next page. This should be set to the value of 'nextPageToken' from the + * previous response. + * @opt_param string startModifiedTime The minimum value of 'modifiedTime' for + * the result comments (RFC 3339 date-time). * @return Google_Service_Drive_CommentList */ public function listComments($fileId, $optParams = array()) @@ -1672,24 +943,7 @@ public function listComments($fileId, $optParams = array()) } /** - * Updates an existing comment. This method supports patch semantics. - * (comments.patch) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Comment"); - } - - /** - * Updates an existing comment. (comments.update) + * Updates a comment with patch semantics. (comments.update) * * @param string $fileId The ID of the file. * @param string $commentId The ID of the comment. @@ -1717,25 +971,23 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource { /** - * Creates a copy of the specified file. (files.copy) + * Creates a copy of a file and applies any requested updates with patch + * semantics. (files.copy) * - * @param string $fileId The ID of the file to copy. + * @param string $fileId The ID of the file. * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. - * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are BCP 47 codes. - * @opt_param string visibility The visibility of the new file. This parameter - * is only relevant when the source is not a native Google Doc and - * convert=false. - * @opt_param bool pinned Whether to pin the head revision of the new copy. A - * file can have a maximum of 200 pinned revisions. - * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - * @opt_param string timedTextTrackName The timed text track name. - * @opt_param string timedTextLanguage The language of the timed text. + * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's + * default visibility settings for the created file. Domain administrators can + * choose to make all uploaded files visible to the domain by default; this + * parameter bypasses that behavior for the request. Permissions are still + * inherited from parent folders. + * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in + * the new head revision. This is only applicable to files with binary content + * in Drive. + * @opt_param string ocrLanguage A language hint for OCR processing during image + * import (ISO 639-1 code). * @return Google_Service_Drive_DriveFile */ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -1746,10 +998,38 @@ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optPara } /** - * Permanently deletes a file by ID. Skips the trash. The currently - * authenticated user must own the file. (files.delete) + * Creates a new file. (files.create) + * + * @param Google_DriveFile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's + * default visibility settings for the created file. Domain administrators can + * choose to make all uploaded files visible to the domain by default; this + * parameter bypasses that behavior for the request. Permissions are still + * inherited from parent folders. + * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in + * the new head revision. This is only applicable to files with binary content + * in Drive. + * @opt_param string ocrLanguage A language hint for OCR processing during image + * import (ISO 639-1 code). + * @opt_param bool useContentAsIndexableText Whether to use the uploaded content + * as indexable text. + * @return Google_Service_Drive_DriveFile + */ + public function create(Google_Service_Drive_DriveFile $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Permanently deletes a file owned by the user without moving it to the trash. + * If the target is a folder, all descendants owned by the user are also + * deleted. (files.delete) * - * @param string $fileId The ID of the file to delete. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. */ public function delete($fileId, $optParams = array()) @@ -1772,12 +1052,28 @@ public function emptyTrash($optParams = array()) } /** - * Generates a set of file IDs which can be provided in insert requests. + * Exports a Google Doc to the requested MIME type and returns the exported + * content. (files.export) + * + * @param string $fileId The ID of the file. + * @param string $mimeType The MIME type of the format requested for this + * export. + * @param array $optParams Optional parameters. + */ + public function export($fileId, $mimeType, $optParams = array()) + { + $params = array('fileId' => $fileId, 'mimeType' => $mimeType); + $params = array_merge($params, $optParams); + return $this->call('export', array($params)); + } + + /** + * Generates a set of file IDs which can be provided in create requests. * (files.generateIds) * * @param array $optParams Optional parameters. * - * @opt_param int maxResults Maximum number of IDs to return. + * @opt_param int count The number of IDs to return. * @opt_param string space The space in which the IDs can be used to create new * files. Supported values are 'drive' and 'appDataFolder'. * @return Google_Service_Drive_GeneratedIds @@ -1790,20 +1086,14 @@ public function generateIds($optParams = array()) } /** - * Gets a file's metadata by ID. (files.get) + * Gets a file's metadata or content by ID. (files.get) * - * @param string $fileId The ID for the file in question. + * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. * * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate Deprecated: Use files.update with - * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request - * body. - * @opt_param string revisionId Specifies the Revision ID that should be - * downloaded. Ignored unless alt=media is specified. - * @opt_param string projection This parameter is deprecated and has no - * function. + * of downloading known malware or other abusive files. This is only applicable + * when alt=media. * @return Google_Service_Drive_DriveFile */ public function get($fileId, $optParams = array()) @@ -1814,55 +1104,26 @@ public function get($fileId, $optParams = array()) } /** - * Insert a new file. (files.insert) - * - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. - * @opt_param bool useContentAsIndexableText Whether to use the content as - * indexable text. - * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are BCP 47 codes. - * @opt_param string visibility The visibility of the new file. This parameter - * is only relevant when convert=false. - * @opt_param bool pinned Whether to pin the head revision of the uploaded file. - * A file can have a maximum of 200 pinned revisions. - * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - * @opt_param string timedTextTrackName The timed text track name. - * @opt_param string timedTextLanguage The language of the timed text. - * @return Google_Service_Drive_DriveFile - */ - public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Lists the user's files. (files.listFiles) + * Lists or searches files. (files.listFiles) * * @param array $optParams Optional parameters. * + * @opt_param string corpus The source of files to list. * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are - * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', - * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', - * and 'title'. Each key sorts ascending by default, but may be reversed with - * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. - * Please note that there is a current limitation for users with approximately - * one million files in which the requested sort order is ignored. - * @opt_param string projection This parameter is deprecated and has no - * function. - * @opt_param int maxResults Maximum number of files to return. - * @opt_param string q Query string for searching files. - * @opt_param string pageToken Page token for files. - * @opt_param string spaces A comma-separated list of spaces to query. Supported - * values are 'drive', 'appDataFolder' and 'photos'. - * @opt_param string corpus The body of items (files/documents) to which the - * query applies. + * 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', + * 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and + * 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed + * with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime + * desc,name. Please note that there is a current limitation for users with + * approximately one million files in which the requested sort order is ignored. + * @opt_param int pageSize The maximum number of files to return per page. + * @opt_param string pageToken The token for continuing a previous list request + * on the next page. This should be set to the value of 'nextPageToken' from the + * previous response. + * @opt_param string q A query for filtering the file results. See the "Search + * for Files" guide for supported syntax. + * @opt_param string spaces A comma-separated list of spaces to query within the + * corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. * @return Google_Service_Drive_FileList */ public function listFiles($optParams = array()) @@ -1873,124 +1134,22 @@ public function listFiles($optParams = array()) } /** - * Updates file metadata and/or content. This method supports patch semantics. - * (files.patch) - * - * @param string $fileId The ID of the file to update. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string addParents Comma-separated list of parent IDs to add. - * @opt_param string modifiedDateBehavior Determines the behavior in which - * modifiedDate is updated. This overrides setModifiedDate. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. - * @opt_param bool updateViewedDate Whether to update the view date after - * successfully updating the file. - * @opt_param bool setModifiedDate Whether to set the modified date with the - * supplied modified date. - * @opt_param bool useContentAsIndexableText Whether to use the content as - * indexable text. - * @opt_param bool convert This parameter is deprecated and has no function. - * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are BCP 47 codes. - * @opt_param bool pinned Whether to pin the new revision. A file can have a - * maximum of 200 pinned revisions. - * @opt_param bool newRevision Whether a blob upload should create a new - * revision. If false, the blob data in the current head revision is replaced. - * If true or not set, a new blob is created as head revision, and previous - * unpinned revisions are preserved for a short period of time. Pinned revisions - * are stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. For details on how revisions are retained, see the Drive Help - * Center. - * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - * @opt_param string timedTextLanguage The language of the timed text. - * @opt_param string timedTextTrackName The timed text track name. - * @return Google_Service_Drive_DriveFile - */ - public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Set the file's updated time to the current server time. (files.touch) - * - * @param string $fileId The ID of the file to update. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function touch($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Moves a file to the trash. The currently authenticated user must own the - * file. (files.trash) - * - * @param string $fileId The ID of the file to trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function trash($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Restores a file from the trash. (files.untrash) - * - * @param string $fileId The ID of the file to untrash. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function untrash($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Updates file metadata and/or content. (files.update) + * Updates a file's metadata and/or content with patch semantics. (files.update) * - * @param string $fileId The ID of the file to update. + * @param string $fileId The ID of the file. * @param Google_DriveFile $postBody * @param array $optParams Optional parameters. * - * @opt_param string addParents Comma-separated list of parent IDs to add. - * @opt_param string modifiedDateBehavior Determines the behavior in which - * modifiedDate is updated. This overrides setModifiedDate. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. - * @opt_param bool updateViewedDate Whether to update the view date after - * successfully updating the file. - * @opt_param bool setModifiedDate Whether to set the modified date with the - * supplied modified date. - * @opt_param bool useContentAsIndexableText Whether to use the content as - * indexable text. - * @opt_param bool convert This parameter is deprecated and has no function. - * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are BCP 47 codes. - * @opt_param bool pinned Whether to pin the new revision. A file can have a - * maximum of 200 pinned revisions. - * @opt_param bool newRevision Whether a blob upload should create a new - * revision. If false, the blob data in the current head revision is replaced. - * If true or not set, a new blob is created as head revision, and previous - * unpinned revisions are preserved for a short period of time. Pinned revisions - * are stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. For details on how revisions are retained, see the Drive Help - * Center. - * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - * @opt_param string timedTextLanguage The language of the timed text. - * @opt_param string timedTextTrackName The timed text track name. + * @opt_param string addParents A comma-separated list of parent IDs to add. + * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in + * the new head revision. This is only applicable to files with binary content + * in Drive. + * @opt_param string ocrLanguage A language hint for OCR processing during image + * import (ISO 639-1 code). + * @opt_param string removeParents A comma-separated list of parent IDs to + * remove. + * @opt_param bool useContentAsIndexableText Whether to use the uploaded content + * as indexable text. * @return Google_Service_Drive_DriveFile */ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) @@ -2001,21 +1160,15 @@ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optPa } /** - * Subscribe to changes on a file (files.watch) + * Subscribes to changes to a file (files.watch) * - * @param string $fileId The ID for the file in question. + * @param string $fileId The ID of the file. * @param Google_Channel $postBody * @param array $optParams Optional parameters. * * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. - * @opt_param bool updateViewedDate Deprecated: Use files.update with - * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request - * body. - * @opt_param string revisionId Specifies the Revision ID that should be - * downloaded. Ignored unless alt=media is specified. - * @opt_param string projection This parameter is deprecated and has no - * function. + * of downloading known malware or other abusive files. This is only applicable + * when alt=media. * @return Google_Service_Drive_Channel */ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) @@ -2027,1649 +1180,448 @@ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParam } /** - * The "parents" collection of methods. + * The "permissions" collection of methods. * Typical usage is: * * $driveService = new Google_Service_Drive(...); - * $parents = $driveService->parents; + * $permissions = $driveService->permissions; * */ -class Google_Service_Drive_Parents_Resource extends Google_Service_Resource +class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource { /** - * Removes a parent from a file. (parents.delete) + * Creates a permission for a file. (permissions.create) * * @param string $fileId The ID of the file. - * @param string $parentId The ID of the parent. + * @param Google_Permission $postBody * @param array $optParams Optional parameters. + * + * @opt_param string emailMessage A custom message to include in the + * notification email. + * @opt_param bool sendNotificationEmail Whether to send a notification email + * when sharing to users or groups. This defaults to true for users and groups, + * and is not allowed for other requests. It must not be disabled for ownership + * transfers. + * @opt_param bool transferOwnership Whether to transfer ownership to the + * specified user and downgrade the current owner to a writer. This parameter is + * required as an acknowledgement of the side effect. + * @return Google_Service_Drive_Permission */ - public function delete($fileId, $parentId, $optParams = array()) + public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) { - $params = array('fileId' => $fileId, 'parentId' => $parentId); + $params = array('fileId' => $fileId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('create', array($params), "Google_Service_Drive_Permission"); } /** - * Gets a specific parent reference. (parents.get) + * Deletes a permission. (permissions.delete) * * @param string $fileId The ID of the file. - * @param string $parentId The ID of the parent. + * @param string $permissionId The ID of the permission. * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentReference */ - public function get($fileId, $parentId, $optParams = array()) + public function delete($fileId, $permissionId, $optParams = array()) { - $params = array('fileId' => $fileId, 'parentId' => $parentId); + $params = array('fileId' => $fileId, 'permissionId' => $permissionId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); + return $this->call('delete', array($params)); } /** - * Adds a parent folder for a file. (parents.insert) + * Gets a permission by ID. (permissions.get) * * @param string $fileId The ID of the file. - * @param Google_ParentReference $postBody + * @param string $permissionId The ID of the permission. * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentReference + * @return Google_Service_Drive_Permission */ - public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array()) + public function get($fileId, $permissionId, $optParams = array()) { - $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array('fileId' => $fileId, 'permissionId' => $permissionId); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); + return $this->call('get', array($params), "Google_Service_Drive_Permission"); } /** - * Lists a file's parents. (parents.listParents) + * Lists a file's permissions. (permissions.listPermissions) * * @param string $fileId The ID of the file. * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentList + * @return Google_Service_Drive_PermissionList */ - public function listParents($fileId, $optParams = array()) + public function listPermissions($fileId, $optParams = array()) { $params = array('fileId' => $fileId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ParentList"); + return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); + } + + /** + * Updates a permission with patch semantics. (permissions.update) + * + * @param string $fileId The ID of the file. + * @param string $permissionId The ID of the permission. + * @param Google_Permission $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool transferOwnership Whether to transfer ownership to the + * specified user and downgrade the current owner to a writer. This parameter is + * required as an acknowledgement of the side effect. + * @return Google_Service_Drive_Permission + */ + public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) + { + $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Permission"); } } /** - * The "permissions" collection of methods. + * The "replies" collection of methods. * Typical usage is: * * $driveService = new Google_Service_Drive(...); - * $permissions = $driveService->permissions; + * $replies = $driveService->replies; * */ -class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource +class Google_Service_Drive_Replies_Resource extends Google_Service_Resource { /** - * Deletes a permission from a file. (permissions.delete) + * Creates a new reply to a comment. (replies.create) * - * @param string $fileId The ID for the file. - * @param string $permissionId The ID for the permission. + * @param string $fileId The ID of the file. + * @param string $commentId The ID of the comment. + * @param Google_Reply $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Reply */ - public function delete($fileId, $permissionId, $optParams = array()) + public function create($fileId, $commentId, Google_Service_Drive_Reply $postBody, $optParams = array()) { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('create', array($params), "Google_Service_Drive_Reply"); } /** - * Gets a permission by ID. (permissions.get) + * Deletes a reply. (replies.delete) * - * @param string $fileId The ID for the file. - * @param string $permissionId The ID for the permission. + * @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. - * @return Google_Service_Drive_Permission */ - public function get($fileId, $permissionId, $optParams = array()) + public function delete($fileId, $commentId, $replyId, $optParams = array()) { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Permission"); + return $this->call('delete', array($params)); } /** - * Returns the permission ID for an email address. (permissions.getIdForEmail) + * Gets a reply by ID. (replies.get) * - * @param string $email The email address for which to return a permission ID + * @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. - * @return Google_Service_Drive_PermissionId + * + * @opt_param bool includeDeleted Whether to return deleted replies. Deleted + * replies will not include their original content. + * @return Google_Service_Drive_Reply */ - public function getIdForEmail($email, $optParams = array()) + public function get($fileId, $commentId, $replyId, $optParams = array()) { - $params = array('email' => $email); + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); $params = array_merge($params, $optParams); - return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); + return $this->call('get', array($params), "Google_Service_Drive_Reply"); } /** - * Inserts a permission for a file. (permissions.insert) + * Lists a comment's replies. (replies.listReplies) * - * @param string $fileId The ID for the file. - * @param Google_Permission $postBody + * @param string $fileId The ID of the file. + * @param string $commentId The ID of the comment. * @param array $optParams Optional parameters. * - * @opt_param string emailMessage A custom message to include in notification - * emails. - * @opt_param bool sendNotificationEmails Whether to send notification emails - * when sharing to users or groups. This parameter is ignored and an email is - * sent if the role is owner. - * @return Google_Service_Drive_Permission + * @opt_param bool includeDeleted Whether to include deleted replies. Deleted + * replies will not include their original content. + * @opt_param int pageSize The maximum number of replies to return per page. + * @opt_param string pageToken The token for continuing a previous list request + * on the next page. This should be set to the value of 'nextPageToken' from the + * previous response. + * @return Google_Service_Drive_ReplyList */ - public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) + public function listReplies($fileId, $commentId, $optParams = array()) { - $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array('fileId' => $fileId, 'commentId' => $commentId); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Permission"); + return $this->call('list', array($params), "Google_Service_Drive_ReplyList"); } /** - * Lists a file's permissions. (permissions.listPermissions) + * Updates a reply with patch semantics. (replies.update) * - * @param string $fileId The ID for the file. + * @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_Reply $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PermissionList + * @return Google_Service_Drive_Reply */ - public function listPermissions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); - } - - /** - * Updates a permission using 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' - * downgrades the current owners to writers. Does nothing if the specified role - * is not 'owner'. - * @return Google_Service_Drive_Permission - */ - public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Permission"); - } - - /** - * Updates a permission. (permissions.update) - * - * @param string $fileId The ID for the file. - * @param string $permissionId The ID for the permission. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool transferOwnership Whether changing a role to 'owner' - * downgrades the current owners to writers. Does nothing if the specified role - * is not 'owner'. - * @return Google_Service_Drive_Permission - */ - public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Permission"); - } -} - -/** - * The "properties" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a property by its key. (properties.get) - * - * @param string $fileId The ID of the file. - * @param string $propertyKey The key of the property. - * @param array $optParams Optional parameters. - * - * @opt_param string visibility The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function get($fileId, $propertyKey, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Property"); - } - - /** - * Adds a property to a file. (properties.insert) - * - * @param string $fileId The ID of the file. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Property - */ - public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Property"); - } - - /** - * Lists a file's properties. (properties.listProperties) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PropertyList - */ - public function listProperties($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); - } - - /** - * Updates a property. This method supports patch semantics. (properties.patch) - * - * @param string $fileId The ID of the file. - * @param string $propertyKey The key of the property. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string visibility The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Property"); - } - - /** - * Updates a property. (properties.update) - * - * @param string $fileId The ID of the file. - * @param string $propertyKey The key of the property. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string visibility The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Property"); - } -} - -/** - * The "realtime" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $realtime = $driveService->realtime; - * - */ -class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource -{ - - /** - * Exports the contents of the Realtime API data model associated with this file - * as JSON. (realtime.get) - * - * @param string $fileId The ID of the file that the Realtime API data model is - * associated with. - * @param array $optParams Optional parameters. - * - * @opt_param int revision The revision of the Realtime API data model to - * export. Revisions start at 1 (the initial empty data model) and are - * incremented with each change. If this parameter is excluded, the most recent - * data model will be returned. - */ - public function get($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params)); - } - - /** - * Overwrites the Realtime API data model associated with this file with the - * provided JSON data model. (realtime.update) - * - * @param string $fileId The ID of the file that the Realtime API data model is - * associated with. - * @param array $optParams Optional parameters. - * - * @opt_param string baseRevision The revision of the model to diff the uploaded - * model against. If set, the uploaded model is diffed against the provided - * revision and those differences are merged with any changes made to the model - * after the provided revision. If not set, the uploaded model replaces the - * current model on the server. - */ - public function update($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('update', array($params)); - } -} - -/** - * The "replies" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a reply. (replies.get) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param string $replyId The ID of the reply. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted If set, this will succeed when retrieving a - * deleted reply. - * @return Google_Service_Drive_CommentReply - */ - public function get($fileId, $commentId, $replyId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); - } - - /** - * Creates a new reply to the given comment. (replies.insert) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); - } - - /** - * Lists all of the replies to a comment. (replies.listReplies) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of "nextPageToken" from the previous response. - * @opt_param bool includeDeleted If set, all replies, including deleted replies - * (with content stripped) will be returned. - * @opt_param int maxResults The maximum number of replies to include in the - * response, used for paging. - * @return Google_Service_Drive_CommentReplyList - */ - public function listReplies($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); - } - - /** - * Updates an existing reply. This method supports patch semantics. - * (replies.patch) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param string $replyId The ID of the reply. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); - } - - /** - * Updates an existing reply. (replies.update) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param string $replyId The ID of the reply. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) + public function update($fileId, $commentId, $replyId, Google_Service_Drive_Reply $postBody, $optParams = array()) { $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_CommentReply"); + return $this->call('update', array($params), "Google_Service_Drive_Reply"); } } /** - * The "revisions" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a specific revision. (revisions.get) - * - * @param string $fileId The ID of the file. - * @param string $revisionId The ID of the revision. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function get($fileId, $revisionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Revision"); - } - - /** - * Lists a file's revisions. (revisions.listRevisions) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_RevisionList - */ - public function listRevisions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); - } - - /** - * Updates a revision. This method supports patch semantics. (revisions.patch) - * - * @param string $fileId The ID for the file. - * @param string $revisionId The ID for the revision. - * @param Google_Revision $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Revision"); - } - - /** - * Updates a revision. (revisions.update) - * - * @param string $fileId The ID for the file. - * @param string $revisionId The ID for the revision. - * @param Google_Revision $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Revision"); - } -} - - - - -class Google_Service_Drive_About extends Google_Collection -{ - protected $collection_key = 'quotaBytesByService'; - protected $internal_gapi_mappings = array( - ); - protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; - protected $additionalRoleInfoDataType = 'array'; - public $domainSharingPolicy; - public $etag; - protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats'; - protected $exportFormatsDataType = 'array'; - protected $featuresType = 'Google_Service_Drive_AboutFeatures'; - protected $featuresDataType = 'array'; - public $folderColorPalette; - protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; - protected $importFormatsDataType = 'array'; - public $isCurrentAppInstalled; - public $kind; - public $languageCode; - public $largestChangeId; - protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes'; - protected $maxUploadSizesDataType = 'array'; - public $name; - public $permissionId; - protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService'; - protected $quotaBytesByServiceDataType = 'array'; - public $quotaBytesTotal; - public $quotaBytesUsed; - public $quotaBytesUsedAggregate; - public $quotaBytesUsedInTrash; - public $quotaType; - public $remainingChangeIds; - public $rootFolderId; - public $selfLink; - protected $userType = 'Google_Service_Drive_User'; - protected $userDataType = ''; - - - public function setAdditionalRoleInfo($additionalRoleInfo) - { - $this->additionalRoleInfo = $additionalRoleInfo; - } - 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 setFolderColorPalette($folderColorPalette) - { - $this->folderColorPalette = $folderColorPalette; - } - public function getFolderColorPalette() - { - return $this->folderColorPalette; - } - 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 setLanguageCode($languageCode) - { - $this->languageCode = $languageCode; - } - public function getLanguageCode() - { - return $this->languageCode; - } - 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 setQuotaBytesByService($quotaBytesByService) - { - $this->quotaBytesByService = $quotaBytesByService; - } - public function getQuotaBytesByService() - { - return $this->quotaBytesByService; - } - 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 setQuotaType($quotaType) - { - $this->quotaType = $quotaType; - } - public function getQuotaType() - { - return $this->quotaType; - } - 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 $collection_key = 'roleSets'; - protected $internal_gapi_mappings = array( - ); - protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; - protected $roleSetsDataType = 'array'; - 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 -{ - protected $collection_key = 'additionalRoles'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'targets'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'targets'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_AboutQuotaBytesByService extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bytesUsed; - public $serviceName; - - - public function setBytesUsed($bytesUsed) - { - $this->bytesUsed = $bytesUsed; - } - public function getBytesUsed() - { - return $this->bytesUsed; - } - public function setServiceName($serviceName) - { - $this->serviceName = $serviceName; - } - public function getServiceName() - { - return $this->serviceName; - } -} - -class Google_Service_Drive_App extends Google_Collection -{ - protected $collection_key = 'secondaryMimeTypes'; - protected $internal_gapi_mappings = array( - ); - public $authorized; - public $createInFolderTemplate; - public $createUrl; - public $hasDriveWideScope; - protected $iconsType = 'Google_Service_Drive_AppIcons'; - protected $iconsDataType = 'array'; - public $id; - public $installed; - public $kind; - public $longDescription; - public $name; - public $objectType; - public $openUrlTemplate; - public $primaryFileExtensions; - public $primaryMimeTypes; - public $productId; - public $productUrl; - public $secondaryFileExtensions; - public $secondaryMimeTypes; - public $shortDescription; - public $supportsCreate; - public $supportsImport; - public $supportsMultiOpen; - public $supportsOfflineCreate; - public $useByDefault; - - - public function setAuthorized($authorized) - { - $this->authorized = $authorized; - } - public function getAuthorized() - { - return $this->authorized; - } - public function setCreateInFolderTemplate($createInFolderTemplate) - { - $this->createInFolderTemplate = $createInFolderTemplate; - } - public function getCreateInFolderTemplate() - { - return $this->createInFolderTemplate; - } - public function setCreateUrl($createUrl) - { - $this->createUrl = $createUrl; - } - public function getCreateUrl() - { - return $this->createUrl; - } - public function setHasDriveWideScope($hasDriveWideScope) - { - $this->hasDriveWideScope = $hasDriveWideScope; - } - public function getHasDriveWideScope() - { - return $this->hasDriveWideScope; - } - 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 setOpenUrlTemplate($openUrlTemplate) - { - $this->openUrlTemplate = $openUrlTemplate; - } - public function getOpenUrlTemplate() - { - return $this->openUrlTemplate; - } - 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 setSupportsOfflineCreate($supportsOfflineCreate) - { - $this->supportsOfflineCreate = $supportsOfflineCreate; - } - public function getSupportsOfflineCreate() - { - return $this->supportsOfflineCreate; - } - public function setUseByDefault($useByDefault) - { - $this->useByDefault = $useByDefault; - } - public function getUseByDefault() - { - return $this->useByDefault; - } -} - -class Google_Service_Drive_AppIcons extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $defaultAppIds; - public $etag; - protected $itemsType = 'Google_Service_Drive_App'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; - - - public function setDefaultAppIds($defaultAppIds) - { - $this->defaultAppIds = $defaultAppIds; - } - public function getDefaultAppIds() - { - return $this->defaultAppIds; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - protected $fileType = 'Google_Service_Drive_DriveFile'; - protected $fileDataType = ''; - public $fileId; - public $id; - public $kind; - public $modificationDate; - public $selfLink; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function 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 setModificationDate($modificationDate) - { - $this->modificationDate = $modificationDate; - } - public function getModificationDate() - { - return $this->modificationDate; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Drive_ChangeList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Drive_Change'; - protected $itemsDataType = 'array'; - public $kind; - public $largestChangeId; - public $nextLink; - public $nextPageToken; - public $selfLink; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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) + * The "revisions" collection of methods. + * Typical usage is: + * + * $driveService = new Google_Service_Drive(...); + * $revisions = $driveService->revisions; + * + */ +class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource +{ + + /** + * Permanently deletes a revision. This method is only applicable to files with + * binary content in Drive. (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()) { - $this->nextPageToken = $nextPageToken; + $params = array('fileId' => $fileId, 'revisionId' => $revisionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); } - public function getNextPageToken() + + /** + * Gets a revision's metadata or content by ID. (revisions.get) + * + * @param string $fileId The ID of the file. + * @param string $revisionId The ID of the revision. + * @param array $optParams Optional parameters. + * + * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk + * of downloading known malware or other abusive files. This is only applicable + * when alt=media. + * @return Google_Service_Drive_Revision + */ + public function get($fileId, $revisionId, $optParams = array()) { - return $this->nextPageToken; + $params = array('fileId' => $fileId, 'revisionId' => $revisionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Revision"); } - public function setSelfLink($selfLink) + + /** + * Lists a file's revisions. (revisions.listRevisions) + * + * @param string $fileId The ID of the file. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_RevisionList + */ + public function listRevisions($fileId, $optParams = array()) { - $this->selfLink = $selfLink; + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); } - public function getSelfLink() + + /** + * Updates a revision with patch semantics. (revisions.update) + * + * @param string $fileId The ID of the file. + * @param string $revisionId The ID of 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()) { - return $this->selfLink; + $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Revision"); } } -class Google_Service_Drive_Channel extends Google_Model + + + +class Google_Service_Drive_About extends Google_Collection { + protected $collection_key = 'folderColorPalette'; protected $internal_gapi_mappings = array( ); - public $address; - public $expiration; - public $id; + public $appInstalled; + public $exportFormats; + public $folderColorPalette; + public $importFormats; public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; + public $maxImportSizes; + public $maxUploadSize; + protected $storageQuotaType = 'Google_Service_Drive_AboutStorageQuota'; + protected $storageQuotaDataType = ''; + protected $userType = 'Google_Service_Drive_User'; + protected $userDataType = ''; - public function setAddress($address) + public function setAppInstalled($appInstalled) { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setExpiration($expiration) - { - $this->expiration = $expiration; + $this->appInstalled = $appInstalled; } - public function getExpiration() + public function getAppInstalled() { - return $this->expiration; + return $this->appInstalled; } - public function setId($id) + public function setExportFormats($exportFormats) { - $this->id = $id; + $this->exportFormats = $exportFormats; } - public function getId() + public function getExportFormats() { - return $this->id; + return $this->exportFormats; } - public function setKind($kind) + public function setFolderColorPalette($folderColorPalette) { - $this->kind = $kind; + $this->folderColorPalette = $folderColorPalette; } - public function getKind() + public function getFolderColorPalette() { - return $this->kind; + return $this->folderColorPalette; } - public function setParams($params) + public function setImportFormats($importFormats) { - $this->params = $params; + $this->importFormats = $importFormats; } - public function getParams() + public function getImportFormats() { - return $this->params; + return $this->importFormats; } - public function setPayload($payload) + public function setKind($kind) { - $this->payload = $payload; + $this->kind = $kind; } - public function getPayload() + public function getKind() { - return $this->payload; + return $this->kind; } - public function setResourceId($resourceId) + public function setMaxImportSizes($maxImportSizes) { - $this->resourceId = $resourceId; + $this->maxImportSizes = $maxImportSizes; } - public function getResourceId() + public function getMaxImportSizes() { - return $this->resourceId; + return $this->maxImportSizes; } - public function setResourceUri($resourceUri) + public function setMaxUploadSize($maxUploadSize) { - $this->resourceUri = $resourceUri; + $this->maxUploadSize = $maxUploadSize; } - public function getResourceUri() + public function getMaxUploadSize() { - return $this->resourceUri; + return $this->maxUploadSize; } - public function setToken($token) + public function setStorageQuota(Google_Service_Drive_AboutStorageQuota $storageQuota) { - $this->token = $token; + $this->storageQuota = $storageQuota; } - public function getToken() + public function getStorageQuota() { - return $this->token; + return $this->storageQuota; } - public function setType($type) + public function setUser(Google_Service_Drive_User $user) { - $this->type = $type; + $this->user = $user; } - public function getType() + public function getUser() { - return $this->type; + return $this->user; } } -class Google_Service_Drive_ChannelParams extends Google_Model -{ -} - -class Google_Service_Drive_ChildList extends Google_Collection +class Google_Service_Drive_AboutStorageQuota extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Drive_ChildReference'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; + public $limit; + public $usage; + public $usageInDrive; + public $usageInDriveTrash; - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) + public function setLimit($limit) { - $this->items = $items; + $this->limit = $limit; } - public function getItems() + public function getLimit() { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; + return $this->limit; } - public function setNextLink($nextLink) + public function setUsage($usage) { - $this->nextLink = $nextLink; + $this->usage = $usage; } - public function getNextLink() + public function getUsage() { - return $this->nextLink; + return $this->usage; } - public function setNextPageToken($nextPageToken) + public function setUsageInDrive($usageInDrive) { - $this->nextPageToken = $nextPageToken; + $this->usageInDrive = $usageInDrive; } - public function getNextPageToken() + public function getUsageInDrive() { - return $this->nextPageToken; + return $this->usageInDrive; } - public function setSelfLink($selfLink) + public function setUsageInDriveTrash($usageInDriveTrash) { - $this->selfLink = $selfLink; + $this->usageInDriveTrash = $usageInDriveTrash; } - public function getSelfLink() + public function getUsageInDriveTrash() { - return $this->selfLink; + return $this->usageInDriveTrash; } } -class Google_Service_Drive_ChildReference extends Google_Model +class Google_Service_Drive_Change extends Google_Model { protected $internal_gapi_mappings = array( ); - public $childLink; - public $id; + protected $fileType = 'Google_Service_Drive_DriveFile'; + protected $fileDataType = ''; + public $fileId; public $kind; - public $selfLink; + public $removed; + public $time; - public function setChildLink($childLink) + public function setFile(Google_Service_Drive_DriveFile $file) { - $this->childLink = $childLink; + $this->file = $file; } - public function getChildLink() + public function getFile() { - return $this->childLink; + return $this->file; } - public function setId($id) + public function setFileId($fileId) { - $this->id = $id; + $this->fileId = $fileId; } - public function getId() + public function getFileId() { - return $this->id; + return $this->fileId; } public function setKind($kind) { @@ -3679,120 +1631,43 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) + public function setRemoved($removed) + { + $this->removed = $removed; + } + public function getRemoved() + { + return $this->removed; + } + public function setTime($time) { - $this->selfLink = $selfLink; + $this->time = $time; } - public function getSelfLink() + public function getTime() { - return $this->selfLink; + return $this->time; } } -class Google_Service_Drive_Comment extends Google_Collection +class Google_Service_Drive_ChangeList extends Google_Collection { - protected $collection_key = 'replies'; + protected $collection_key = 'changes'; protected $internal_gapi_mappings = array( ); - public $anchor; - protected $authorType = 'Google_Service_Drive_User'; - protected $authorDataType = ''; - public $commentId; - public $content; - protected $contextType = 'Google_Service_Drive_CommentContext'; - protected $contextDataType = ''; - public $createdDate; - public $deleted; - public $fileId; - public $fileTitle; - public $htmlContent; + protected $changesType = 'Google_Service_Drive_Change'; + protected $changesDataType = 'array'; public $kind; - public $modifiedDate; - protected $repliesType = 'Google_Service_Drive_CommentReply'; - protected $repliesDataType = 'array'; - public $selfLink; - public $status; + public $newStartPageToken; + public $nextPageToken; - 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) + public function setChanges($changes) { - $this->htmlContent = $htmlContent; + $this->changes = $changes; } - public function getHtmlContent() + public function getChanges() { - return $this->htmlContent; + return $this->changes; } public function setKind($kind) { @@ -3802,86 +1677,63 @@ 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) + public function setNewStartPageToken($newStartPageToken) { - $this->selfLink = $selfLink; + $this->newStartPageToken = $newStartPageToken; } - public function getSelfLink() + public function getNewStartPageToken() { - return $this->selfLink; + return $this->newStartPageToken; } - public function setStatus($status) + public function setNextPageToken($nextPageToken) { - $this->status = $status; + $this->nextPageToken = $nextPageToken; } - public function getStatus() + public function getNextPageToken() { - return $this->status; + return $this->nextPageToken; } } -class Google_Service_Drive_CommentContext extends Google_Model +class Google_Service_Drive_Channel extends Google_Model { protected $internal_gapi_mappings = array( ); + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; public $type; - public $value; - public function setType($type) + public function setAddress($address) { - $this->type = $type; + $this->address = $address; } - public function getType() + public function getAddress() { - return $this->type; + return $this->address; } - public function setValue($value) + public function setExpiration($expiration) { - $this->value = $value; + $this->expiration = $expiration; } - public function getValue() + public function getExpiration() { - return $this->value; + return $this->expiration; } -} - -class Google_Service_Drive_CommentList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Drive_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - - - public function setItems($items) + public function setId($id) { - $this->items = $items; + $this->id = $id; } - public function getItems() + public function getId() { - return $this->items; + return $this->id; } public function setKind($kind) { @@ -3891,48 +1743,86 @@ public function getKind() { return $this->kind; } - public function setNextLink($nextLink) + public function setParams($params) { - $this->nextLink = $nextLink; + $this->params = $params; } - public function getNextLink() + public function getParams() { - return $this->nextLink; + return $this->params; } - public function setNextPageToken($nextPageToken) + public function setPayload($payload) { - $this->nextPageToken = $nextPageToken; + $this->payload = $payload; } - public function getNextPageToken() + public function getPayload() { - return $this->nextPageToken; + return $this->payload; + } + 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 setSelfLink($selfLink) + public function setType($type) { - $this->selfLink = $selfLink; + $this->type = $type; } - public function getSelfLink() + public function getType() { - return $this->selfLink; + return $this->type; } } -class Google_Service_Drive_CommentReply extends Google_Model +class Google_Service_Drive_Comment extends Google_Collection { + protected $collection_key = 'replies'; protected $internal_gapi_mappings = array( ); + public $anchor; protected $authorType = 'Google_Service_Drive_User'; protected $authorDataType = ''; public $content; - public $createdDate; + public $createdTime; public $deleted; public $htmlContent; + public $id; public $kind; - public $modifiedDate; - public $replyId; - public $verb; + public $modifiedTime; + protected $quotedFileContentType = 'Google_Service_Drive_CommentQuotedFileContent'; + protected $quotedFileContentDataType = ''; + protected $repliesType = 'Google_Service_Drive_Reply'; + protected $repliesDataType = 'array'; + public $resolved; + public function setAnchor($anchor) + { + $this->anchor = $anchor; + } + public function getAnchor() + { + return $this->anchor; + } public function setAuthor(Google_Service_Drive_User $author) { $this->author = $author; @@ -3949,13 +1839,13 @@ public function getContent() { return $this->content; } - public function setCreatedDate($createdDate) + public function setCreatedTime($createdTime) { - $this->createdDate = $createdDate; + $this->createdTime = $createdTime; } - public function getCreatedDate() + public function getCreatedTime() { - return $this->createdDate; + return $this->createdTime; } public function setDeleted($deleted) { @@ -3973,6 +1863,14 @@ public function getHtmlContent() { return $this->htmlContent; } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } public function setKind($kind) { $this->kind = $kind; @@ -3981,52 +1879,58 @@ public function getKind() { return $this->kind; } - public function setModifiedDate($modifiedDate) + public function setModifiedTime($modifiedTime) + { + $this->modifiedTime = $modifiedTime; + } + public function getModifiedTime() + { + return $this->modifiedTime; + } + public function setQuotedFileContent(Google_Service_Drive_CommentQuotedFileContent $quotedFileContent) { - $this->modifiedDate = $modifiedDate; + $this->quotedFileContent = $quotedFileContent; } - public function getModifiedDate() + public function getQuotedFileContent() { - return $this->modifiedDate; + return $this->quotedFileContent; } - public function setReplyId($replyId) + public function setReplies($replies) { - $this->replyId = $replyId; + $this->replies = $replies; } - public function getReplyId() + public function getReplies() { - return $this->replyId; + return $this->replies; } - public function setVerb($verb) + public function setResolved($resolved) { - $this->verb = $verb; + $this->resolved = $resolved; } - public function getVerb() + public function getResolved() { - return $this->verb; + return $this->resolved; } } -class Google_Service_Drive_CommentReplyList extends Google_Collection +class Google_Service_Drive_CommentList extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'comments'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_Drive_CommentReply'; - protected $itemsDataType = 'array'; + protected $commentsType = 'Google_Service_Drive_Comment'; + protected $commentsDataType = 'array'; public $kind; - public $nextLink; public $nextPageToken; - public $selfLink; - public function setItems($items) + public function setComments($comments) { - $this->items = $items; + $this->comments = $comments; } - public function getItems() + public function getComments() { - return $this->items; + return $this->comments; } public function setKind($kind) { @@ -4036,14 +1940,6 @@ 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; @@ -4052,13 +1948,31 @@ public function getNextPageToken() { return $this->nextPageToken; } - public function setSelfLink($selfLink) +} + +class Google_Service_Drive_CommentQuotedFileContent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $mimeType; + public $value; + + + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setValue($value) { - $this->selfLink = $selfLink; + $this->value = $value; } - public function getSelfLink() + public function getValue() { - return $this->selfLink; + return $this->value; } } @@ -4067,21 +1981,15 @@ class Google_Service_Drive_DriveFile extends Google_Collection protected $collection_key = 'spaces'; protected $internal_gapi_mappings = array( ); - public $alternateLink; - public $appDataContents; - public $canComment; - public $copyable; - public $createdDate; - public $defaultOpenWithLink; + public $appProperties; + protected $capabilitiesType = 'Google_Service_Drive_DriveFileCapabilities'; + protected $capabilitiesDataType = ''; + protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints'; + protected $contentHintsDataType = ''; + public $createdTime; public $description; - public $downloadUrl; - public $editable; - public $embedLink; - public $etag; public $explicitlyTrashed; - public $exportLinks; public $fileExtension; - public $fileSize; public $folderColorRgb; public $fullFileExtension; public $headRevisionId; @@ -4089,101 +1997,74 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $id; protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; protected $imageMediaMetadataDataType = ''; - protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText'; - protected $indexableTextDataType = ''; public $kind; - protected $labelsType = 'Google_Service_Drive_DriveFileLabels'; - protected $labelsDataType = ''; protected $lastModifyingUserType = 'Google_Service_Drive_User'; protected $lastModifyingUserDataType = ''; - public $lastModifyingUserName; - public $lastViewedByMeDate; - public $markedViewedByMeDate; public $md5Checksum; public $mimeType; - public $modifiedByMeDate; - public $modifiedDate; - public $openWithLinks; + public $modifiedByMeTime; + public $modifiedTime; + public $name; public $originalFilename; public $ownedByMe; - public $ownerNames; protected $ownersType = 'Google_Service_Drive_User'; protected $ownersDataType = 'array'; - protected $parentsType = 'Google_Service_Drive_ParentReference'; - protected $parentsDataType = 'array'; + public $parents; protected $permissionsType = 'Google_Service_Drive_Permission'; protected $permissionsDataType = 'array'; - protected $propertiesType = 'Google_Service_Drive_Property'; - protected $propertiesDataType = 'array'; + public $properties; public $quotaBytesUsed; - public $selfLink; - public $shareable; public $shared; - public $sharedWithMeDate; + public $sharedWithMeTime; protected $sharingUserType = 'Google_Service_Drive_User'; protected $sharingUserDataType = ''; + public $size; public $spaces; - protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; - protected $thumbnailDataType = ''; + public $starred; public $thumbnailLink; - public $title; - protected $userPermissionType = 'Google_Service_Drive_Permission'; - protected $userPermissionDataType = ''; + public $trashed; public $version; protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata'; protected $videoMediaMetadataDataType = ''; + public $viewedByMe; + public $viewedByMeTime; + public $viewersCanCopyContent; 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 setCanComment($canComment) + public function setAppProperties($appProperties) { - $this->canComment = $canComment; + $this->appProperties = $appProperties; } - public function getCanComment() + public function getAppProperties() { - return $this->canComment; + return $this->appProperties; } - public function setCopyable($copyable) + public function setCapabilities(Google_Service_Drive_DriveFileCapabilities $capabilities) { - $this->copyable = $copyable; + $this->capabilities = $capabilities; } - public function getCopyable() + public function getCapabilities() { - return $this->copyable; + return $this->capabilities; } - public function setCreatedDate($createdDate) + public function setContentHints(Google_Service_Drive_DriveFileContentHints $contentHints) { - $this->createdDate = $createdDate; + $this->contentHints = $contentHints; } - public function getCreatedDate() + public function getContentHints() { - return $this->createdDate; + return $this->contentHints; } - public function setDefaultOpenWithLink($defaultOpenWithLink) + public function setCreatedTime($createdTime) { - $this->defaultOpenWithLink = $defaultOpenWithLink; + $this->createdTime = $createdTime; } - public function getDefaultOpenWithLink() + public function getCreatedTime() { - return $this->defaultOpenWithLink; + return $this->createdTime; } public function setDescription($description) { @@ -4193,38 +2074,6 @@ 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; @@ -4233,14 +2082,6 @@ 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; @@ -4249,14 +2090,6 @@ public function getFileExtension() { return $this->fileExtension; } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } public function setFolderColorRgb($folderColorRgb) { $this->folderColorRgb = $folderColorRgb; @@ -4305,14 +2138,6 @@ 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; @@ -4321,14 +2146,6 @@ 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; @@ -4337,30 +2154,6 @@ public function getLastModifyingUser() { return $this->lastModifyingUser; } - public function setLastModifyingUserName($lastModifyingUserName) - { - $this->lastModifyingUserName = $lastModifyingUserName; - } - public function getLastModifyingUserName() - { - return $this->lastModifyingUserName; - } - public function setLastViewedByMeDate($lastViewedByMeDate) - { - $this->lastViewedByMeDate = $lastViewedByMeDate; - } - public function getLastViewedByMeDate() - { - return $this->lastViewedByMeDate; - } - public function setMarkedViewedByMeDate($markedViewedByMeDate) - { - $this->markedViewedByMeDate = $markedViewedByMeDate; - } - public function getMarkedViewedByMeDate() - { - return $this->markedViewedByMeDate; - } public function setMd5Checksum($md5Checksum) { $this->md5Checksum = $md5Checksum; @@ -4377,29 +2170,29 @@ public function getMimeType() { return $this->mimeType; } - public function setModifiedByMeDate($modifiedByMeDate) + public function setModifiedByMeTime($modifiedByMeTime) { - $this->modifiedByMeDate = $modifiedByMeDate; + $this->modifiedByMeTime = $modifiedByMeTime; } - public function getModifiedByMeDate() + public function getModifiedByMeTime() { - return $this->modifiedByMeDate; + return $this->modifiedByMeTime; } - public function setModifiedDate($modifiedDate) + public function setModifiedTime($modifiedTime) { - $this->modifiedDate = $modifiedDate; + $this->modifiedTime = $modifiedTime; } - public function getModifiedDate() + public function getModifiedTime() { - return $this->modifiedDate; + return $this->modifiedTime; } - public function setOpenWithLinks($openWithLinks) + public function setName($name) { - $this->openWithLinks = $openWithLinks; + $this->name = $name; } - public function getOpenWithLinks() + public function getName() { - return $this->openWithLinks; + return $this->name; } public function setOriginalFilename($originalFilename) { @@ -4417,14 +2210,6 @@ public function getOwnedByMe() { return $this->ownedByMe; } - public function setOwnerNames($ownerNames) - { - $this->ownerNames = $ownerNames; - } - public function getOwnerNames() - { - return $this->ownerNames; - } public function setOwners($owners) { $this->owners = $owners; @@ -4465,22 +2250,6 @@ public function getQuotaBytesUsed() { return $this->quotaBytesUsed; } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setShareable($shareable) - { - $this->shareable = $shareable; - } - public function getShareable() - { - return $this->shareable; - } public function setShared($shared) { $this->shared = $shared; @@ -4489,13 +2258,13 @@ public function getShared() { return $this->shared; } - public function setSharedWithMeDate($sharedWithMeDate) + public function setSharedWithMeTime($sharedWithMeTime) { - $this->sharedWithMeDate = $sharedWithMeDate; + $this->sharedWithMeTime = $sharedWithMeTime; } - public function getSharedWithMeDate() + public function getSharedWithMeTime() { - return $this->sharedWithMeDate; + return $this->sharedWithMeTime; } public function setSharingUser(Google_Service_Drive_User $sharingUser) { @@ -4505,6 +2274,14 @@ public function getSharingUser() { return $this->sharingUser; } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } public function setSpaces($spaces) { $this->spaces = $spaces; @@ -4513,13 +2290,13 @@ public function getSpaces() { return $this->spaces; } - public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) + public function setStarred($starred) { - $this->thumbnail = $thumbnail; + $this->starred = $starred; } - public function getThumbnail() + public function getStarred() { - return $this->thumbnail; + return $this->starred; } public function setThumbnailLink($thumbnailLink) { @@ -4527,23 +2304,15 @@ public function setThumbnailLink($thumbnailLink) } public function getThumbnailLink() { - return $this->thumbnailLink; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; + return $this->thumbnailLink; } - public function setUserPermission(Google_Service_Drive_Permission $userPermission) + public function setTrashed($trashed) { - $this->userPermission = $userPermission; + $this->trashed = $trashed; } - public function getUserPermission() + public function getTrashed() { - return $this->userPermission; + return $this->trashed; } public function setVersion($version) { @@ -4561,6 +2330,30 @@ public function getVideoMediaMetadata() { return $this->videoMediaMetadata; } + public function setViewedByMe($viewedByMe) + { + $this->viewedByMe = $viewedByMe; + } + public function getViewedByMe() + { + return $this->viewedByMe; + } + public function setViewedByMeTime($viewedByMeTime) + { + $this->viewedByMeTime = $viewedByMeTime; + } + public function getViewedByMeTime() + { + return $this->viewedByMeTime; + } + public function setViewersCanCopyContent($viewersCanCopyContent) + { + $this->viewersCanCopyContent = $viewersCanCopyContent; + } + public function getViewersCanCopyContent() + { + return $this->viewersCanCopyContent; + } public function setWebContentLink($webContentLink) { $this->webContentLink = $webContentLink; @@ -4587,8 +2380,110 @@ public function getWritersCanShare() } } -class Google_Service_Drive_DriveFileExportLinks extends Google_Model +class Google_Service_Drive_DriveFileCapabilities extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canComment; + public $canCopy; + public $canEdit; + public $canReadRevisions; + public $canShare; + + + public function setCanComment($canComment) + { + $this->canComment = $canComment; + } + public function getCanComment() + { + return $this->canComment; + } + public function setCanCopy($canCopy) + { + $this->canCopy = $canCopy; + } + public function getCanCopy() + { + return $this->canCopy; + } + public function setCanEdit($canEdit) + { + $this->canEdit = $canEdit; + } + public function getCanEdit() + { + return $this->canEdit; + } + public function setCanReadRevisions($canReadRevisions) + { + $this->canReadRevisions = $canReadRevisions; + } + public function getCanReadRevisions() + { + return $this->canReadRevisions; + } + public function setCanShare($canShare) + { + $this->canShare = $canShare; + } + public function getCanShare() + { + return $this->canShare; + } +} + +class Google_Service_Drive_DriveFileContentHints extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $indexableText; + protected $thumbnailType = 'Google_Service_Drive_DriveFileContentHintsThumbnail'; + protected $thumbnailDataType = ''; + + + public function setIndexableText($indexableText) + { + $this->indexableText = $indexableText; + } + public function getIndexableText() + { + return $this->indexableText; + } + public function setThumbnail(Google_Service_Drive_DriveFileContentHintsThumbnail $thumbnail) + { + $this->thumbnail = $thumbnail; + } + public function getThumbnail() + { + return $this->thumbnail; + } +} + +class Google_Service_Drive_DriveFileContentHintsThumbnail extends Google_Model { + protected $internal_gapi_mappings = array( + ); + 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_DriveFileImageMediaMetadata extends Google_Model @@ -4599,7 +2494,6 @@ class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model public $cameraMake; public $cameraModel; public $colorSpace; - public $date; public $exposureBias; public $exposureMode; public $exposureTime; @@ -4615,6 +2509,7 @@ class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model public $rotation; public $sensor; public $subjectDistance; + public $time; public $whiteBalance; public $width; @@ -4651,14 +2546,6 @@ 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; @@ -4771,6 +2658,14 @@ public function getSubjectDistance() { return $this->subjectDistance; } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } public function setWhiteBalance($whiteBalance) { $this->whiteBalance = $whiteBalance; @@ -4824,106 +2719,6 @@ public function getLongitude() } } -class Google_Service_Drive_DriveFileIndexableText extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $text; - - - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_Drive_DriveFileLabels extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DriveFileOpenWithLinks extends Google_Model -{ -} - -class Google_Service_Drive_DriveFileThumbnail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DriveFileVideoMediaMetadata extends Google_Model { protected $internal_gapi_mappings = array( @@ -4945,147 +2740,38 @@ public function setHeight($height) { $this->height = $height; } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Drive_FileList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Drive_DriveFile'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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_GeneratedIds extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - public $kind; - public $space; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() + public function getHeight() { - return $this->kind; + return $this->height; } - public function setSpace($space) + public function setWidth($width) { - $this->space = $space; + $this->width = $width; } - public function getSpace() + public function getWidth() { - return $this->space; + return $this->width; } } -class Google_Service_Drive_ParentList extends Google_Collection +class Google_Service_Drive_FileList extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'files'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Drive_ParentReference'; - protected $itemsDataType = 'array'; + protected $filesType = 'Google_Service_Drive_DriveFile'; + protected $filesDataType = 'array'; public $kind; - public $selfLink; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) + public function setFiles($files) { - $this->items = $items; + $this->files = $files; } - public function getItems() + public function getFiles() { - return $this->items; + return $this->files; } public function setKind($kind) { @@ -5095,42 +2781,33 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) + public function setNextPageToken($nextPageToken) { - $this->selfLink = $selfLink; + $this->nextPageToken = $nextPageToken; } - public function getSelfLink() + public function getNextPageToken() { - return $this->selfLink; + return $this->nextPageToken; } } -class Google_Service_Drive_ParentReference extends Google_Model +class Google_Service_Drive_GeneratedIds extends Google_Collection { + protected $collection_key = 'ids'; protected $internal_gapi_mappings = array( ); - public $id; - public $isRoot; + public $ids; public $kind; - public $parentLink; - public $selfLink; + public $space; - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsRoot($isRoot) + public function setIds($ids) { - $this->isRoot = $isRoot; + $this->ids = $ids; } - public function getIsRoot() + public function getIds() { - return $this->isRoot; + return $this->ids; } public function setKind($kind) { @@ -5140,60 +2817,46 @@ public function getKind() { return $this->kind; } - public function setParentLink($parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setSelfLink($selfLink) + public function setSpace($space) { - $this->selfLink = $selfLink; + $this->space = $space; } - public function getSelfLink() + public function getSpace() { - return $this->selfLink; + return $this->space; } } -class Google_Service_Drive_Permission extends Google_Collection +class Google_Service_Drive_Permission extends Google_Model { - protected $collection_key = 'additionalRoles'; protected $internal_gapi_mappings = array( ); - public $additionalRoles; - public $authKey; + public $allowFileDiscovery; + public $displayName; public $domain; public $emailAddress; - public $etag; public $id; public $kind; - public $name; public $photoLink; public $role; - public $selfLink; public $type; - public $value; - public $withLink; - public function setAdditionalRoles($additionalRoles) + public function setAllowFileDiscovery($allowFileDiscovery) { - $this->additionalRoles = $additionalRoles; + $this->allowFileDiscovery = $allowFileDiscovery; } - public function getAdditionalRoles() + public function getAllowFileDiscovery() { - return $this->additionalRoles; + return $this->allowFileDiscovery; } - public function setAuthKey($authKey) + public function setDisplayName($displayName) { - $this->authKey = $authKey; + $this->displayName = $displayName; } - public function getAuthKey() + public function getDisplayName() { - return $this->authKey; + return $this->displayName; } public function setDomain($domain) { @@ -5211,14 +2874,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } public function setId($id) { $this->id = $id; @@ -5235,14 +2890,6 @@ 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; @@ -5259,14 +2906,6 @@ 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; @@ -5275,40 +2914,18 @@ 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_PermissionId extends Google_Model +class Google_Service_Drive_PermissionList extends Google_Collection { + protected $collection_key = 'permissions'; protected $internal_gapi_mappings = array( ); - public $id; public $kind; + protected $permissionsType = 'Google_Service_Drive_Permission'; + protected $permissionsDataType = 'array'; - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } public function setKind($kind) { $this->kind = $kind; @@ -5317,144 +2934,117 @@ public function getKind() { return $this->kind; } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } } -class Google_Service_Drive_PermissionList extends Google_Collection +class Google_Service_Drive_Reply extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Drive_Permission'; - protected $itemsDataType = 'array'; + public $action; + protected $authorType = 'Google_Service_Drive_User'; + protected $authorDataType = ''; + public $content; + public $createdTime; + public $deleted; + public $htmlContent; + public $id; public $kind; - public $selfLink; + public $modifiedTime; - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) + public function setAction($action) { - $this->items = $items; + $this->action = $action; } - public function getItems() + public function getAction() { - return $this->items; + return $this->action; } - public function setKind($kind) + public function setAuthor(Google_Service_Drive_User $author) { - $this->kind = $kind; + $this->author = $author; } - public function getKind() + public function getAuthor() { - return $this->kind; + return $this->author; } - public function setSelfLink($selfLink) + public function setContent($content) { - $this->selfLink = $selfLink; + $this->content = $content; } - public function getSelfLink() + public function getContent() { - return $this->selfLink; + return $this->content; } -} - -class Google_Service_Drive_Property extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $key; - public $kind; - public $selfLink; - public $value; - public $visibility; - - - public function setEtag($etag) + public function setCreatedTime($createdTime) { - $this->etag = $etag; + $this->createdTime = $createdTime; } - public function getEtag() + public function getCreatedTime() { - return $this->etag; + return $this->createdTime; } - public function setKey($key) + public function setDeleted($deleted) { - $this->key = $key; + $this->deleted = $deleted; } - public function getKey() + public function getDeleted() { - return $this->key; + return $this->deleted; } - public function setKind($kind) + public function setHtmlContent($htmlContent) { - $this->kind = $kind; + $this->htmlContent = $htmlContent; } - public function getKind() + public function getHtmlContent() { - return $this->kind; + return $this->htmlContent; } - public function setSelfLink($selfLink) + public function setId($id) { - $this->selfLink = $selfLink; + $this->id = $id; } - public function getSelfLink() + public function getId() { - return $this->selfLink; + return $this->id; } - public function setValue($value) + public function setKind($kind) { - $this->value = $value; + $this->kind = $kind; } - public function getValue() + public function getKind() { - return $this->value; + return $this->kind; } - public function setVisibility($visibility) + public function setModifiedTime($modifiedTime) { - $this->visibility = $visibility; + $this->modifiedTime = $modifiedTime; } - public function getVisibility() + public function getModifiedTime() { - return $this->visibility; + return $this->modifiedTime; } } -class Google_Service_Drive_PropertyList extends Google_Collection +class Google_Service_Drive_ReplyList extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'replies'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Drive_Property'; - protected $itemsDataType = 'array'; public $kind; - public $selfLink; + public $nextPageToken; + protected $repliesType = 'Google_Service_Drive_Reply'; + protected $repliesDataType = 'array'; - 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; @@ -5463,13 +3053,21 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setReplies($replies) { - $this->selfLink = $selfLink; + $this->replies = $replies; } - public function getSelfLink() + public function getReplies() { - return $this->selfLink; + return $this->replies; } } @@ -5477,59 +3075,21 @@ class Google_Service_Drive_Revision extends Google_Model { protected $internal_gapi_mappings = array( ); - public $downloadUrl; - public $etag; - public $exportLinks; - public $fileSize; public $id; + public $keepForever; public $kind; protected $lastModifyingUserType = 'Google_Service_Drive_User'; protected $lastModifyingUserDataType = ''; - public $lastModifyingUserName; public $md5Checksum; public $mimeType; - public $modifiedDate; + public $modifiedTime; public $originalFilename; - public $pinned; public $publishAuto; public $published; - public $publishedLink; public $publishedOutsideDomain; - public $selfLink; + public $size; - 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; @@ -5538,6 +3098,14 @@ public function getId() { return $this->id; } + public function setKeepForever($keepForever) + { + $this->keepForever = $keepForever; + } + public function getKeepForever() + { + return $this->keepForever; + } public function setKind($kind) { $this->kind = $kind; @@ -5554,14 +3122,6 @@ 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; @@ -5578,13 +3138,13 @@ public function getMimeType() { return $this->mimeType; } - public function setModifiedDate($modifiedDate) + public function setModifiedTime($modifiedTime) { - $this->modifiedDate = $modifiedDate; + $this->modifiedTime = $modifiedTime; } - public function getModifiedDate() + public function getModifiedTime() { - return $this->modifiedDate; + return $this->modifiedTime; } public function setOriginalFilename($originalFilename) { @@ -5594,14 +3154,6 @@ 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; @@ -5618,14 +3170,6 @@ 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; @@ -5634,48 +3178,52 @@ public function getPublishedOutsideDomain() { return $this->publishedOutsideDomain; } - public function setSelfLink($selfLink) + public function setSize($size) { - $this->selfLink = $selfLink; + $this->size = $size; } - public function getSelfLink() + public function getSize() { - return $this->selfLink; + return $this->size; } } -class Google_Service_Drive_RevisionExportLinks extends Google_Model -{ -} - class Google_Service_Drive_RevisionList extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'revisions'; protected $internal_gapi_mappings = array( ); - public $etag; - protected $itemsType = 'Google_Service_Drive_Revision'; - protected $itemsDataType = 'array'; public $kind; - public $selfLink; + protected $revisionsType = 'Google_Service_Drive_Revision'; + protected $revisionsDataType = 'array'; - public function setEtag($etag) + public function setKind($kind) { - $this->etag = $etag; + $this->kind = $kind; } - public function getEtag() + public function getKind() { - return $this->etag; + return $this->kind; } - public function setItems($items) + public function setRevisions($revisions) { - $this->items = $items; + $this->revisions = $revisions; } - public function getItems() + public function getRevisions() { - return $this->items; + return $this->revisions; } +} + +class Google_Service_Drive_StartPageToken extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $startPageToken; + + public function setKind($kind) { $this->kind = $kind; @@ -5684,13 +3232,13 @@ public function getKind() { return $this->kind; } - public function setSelfLink($selfLink) + public function setStartPageToken($startPageToken) { - $this->selfLink = $selfLink; + $this->startPageToken = $startPageToken; } - public function getSelfLink() + public function getStartPageToken() { - return $this->selfLink; + return $this->startPageToken; } } @@ -5700,11 +3248,10 @@ class Google_Service_Drive_User extends Google_Model ); public $displayName; public $emailAddress; - public $isAuthenticatedUser; public $kind; + public $me; public $permissionId; - protected $pictureType = 'Google_Service_Drive_UserPicture'; - protected $pictureDataType = ''; + public $photoLink; public function setDisplayName($displayName) @@ -5723,14 +3270,6 @@ public function getEmailAddress() { return $this->emailAddress; } - public function setIsAuthenticatedUser($isAuthenticatedUser) - { - $this->isAuthenticatedUser = $isAuthenticatedUser; - } - public function getIsAuthenticatedUser() - { - return $this->isAuthenticatedUser; - } public function setKind($kind) { $this->kind = $kind; @@ -5739,37 +3278,28 @@ public function getKind() { return $this->kind; } - public function setPermissionId($permissionId) + public function setMe($me) { - $this->permissionId = $permissionId; + $this->me = $me; } - public function getPermissionId() + public function getMe() { - return $this->permissionId; + return $this->me; } - public function setPicture(Google_Service_Drive_UserPicture $picture) + public function setPermissionId($permissionId) { - $this->picture = $picture; + $this->permissionId = $permissionId; } - public function getPicture() + public function getPermissionId() { - return $this->picture; + return $this->permissionId; } -} - -class Google_Service_Drive_UserPicture extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) + public function setPhotoLink($photoLink) { - $this->url = $url; + $this->photoLink = $photoLink; } - public function getUrl() + public function getPhotoLink() { - return $this->url; + return $this->photoLink; } } diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php index 2e7fa29e4..4a9f06304 100644 --- a/src/Google/Service/Fitness.php +++ b/src/Google/Service/Fitness.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'modifiedTimeMillis' => array( + 'currentTimeMillis' => array( 'location' => 'query', 'type' => 'string', ), - 'currentTimeMillis' => array( + 'modifiedTimeMillis' => array( 'location' => 'query', 'type' => 'string', ), @@ -307,10 +307,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'endTime' => array( 'location' => 'query', 'type' => 'string', @@ -319,6 +315,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'startTime' => array( 'location' => 'query', 'type' => 'string', @@ -528,10 +528,10 @@ class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Se * where startTime and endTime are 64 bit integers. * @param array $optParams Optional parameters. * - * @opt_param string modifiedTimeMillis When the operation was performed on the - * client. * @opt_param string currentTimeMillis The client's current time in milliseconds * since epoch. + * @opt_param string modifiedTimeMillis When the operation was performed on the + * client. */ public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) { @@ -669,14 +669,14 @@ public function delete($userId, $sessionId, $optParams = array()) * indicate the authenticated user. Only me is supported at this time. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. * @opt_param string endTime An RFC3339 timestamp. Only sessions ending between * the start and end times will be included in the response. * @opt_param bool includeDeleted If true, deleted sessions will be returned. * When set to true, sessions returned in this response will only have an ID and * will not have any other fields. + * @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 startTime An RFC3339 timestamp. Only sessions ending * between the start and end times will be included in the response. * @return Google_Service_Fitness_ListSessionsResponse diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php index 1fe07a053..8414387e8 100644 --- a/src/Google/Service/Freebase.php +++ b/src/Google/Service/Freebase.php @@ -1,6 +1,6 @@ 'reconcile', 'httpMethod' => 'GET', 'parameters' => array( - 'lang' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), 'confidence' => array( 'location' => 'query', 'type' => 'number', ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), 'kind' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'prop' => array( + 'lang' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -85,25 +76,25 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - ), - ),'search' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'domain' => array( + 'name' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'help' => array( + 'prop' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'query' => array( + ), + ),'search' => array( + 'path' => 'search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'as_of_time' => array( 'location' => 'query', 'type' => 'string', ), - 'scoring' => array( + 'callback' => array( 'location' => 'query', 'type' => 'string', ), @@ -111,83 +102,92 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'prefixed' => array( + 'domain' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'repeated' => true, + ), + 'encode' => array( + 'location' => 'query', + 'type' => 'string', ), 'exact' => array( 'location' => 'query', 'type' => 'boolean', ), - 'mid' => array( + 'filter' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'encode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( + 'format' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'as_of_time' => array( + 'help' => array( 'location' => 'query', 'type' => 'string', ), - 'stemmed' => array( + 'indent' => array( 'location' => 'query', 'type' => 'boolean', ), - 'format' => array( + 'lang' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'spell' => array( + 'limit' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'with' => array( + 'mid' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'lang' => array( + 'mql_output' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'indent' => array( + 'output' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'prefixed' => array( 'location' => 'query', 'type' => 'boolean', ), - 'filter' => array( + 'query' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'callback' => array( + 'scoring' => array( 'location' => 'query', 'type' => 'string', ), - 'without' => array( + 'spell' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'limit' => array( + 'stemmed' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'output' => array( + 'type' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'mql_output' => array( + 'with' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, + ), + 'without' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, ), ), ), @@ -200,14 +200,14 @@ public function __construct(Google_Client $client) * * @param array $optParams Optional parameters. * - * @opt_param string lang Languages for names and values. First language is used - * for display. Default is 'en'. * @opt_param float confidence Required confidence for a candidate to match. * Must be between .5 and 1.0 - * @opt_param string name Name of entity. * @opt_param string kind Classifications of entity e.g. type, category, title. - * @opt_param string prop Property values for entity formatted as : + * @opt_param string lang Languages for names and values. First language is used + * for display. Default is 'en'. * @opt_param int limit Maximum number of candidates to return. + * @opt_param string name Name of entity. + * @opt_param string prop Property values for entity formatted as : * @return Google_Service_Freebase_ReconcileGet */ public function reconcile($optParams = array()) @@ -221,34 +221,34 @@ public function reconcile($optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string domain Restrict to topics with this Freebase domain id. - * @opt_param string help The keyword to request help on. - * @opt_param string query Query term to search for. - * @opt_param string scoring Relevance scoring algorithm to use. + * @opt_param string as_of_time A mql as_of_time value to use with mql_output + * queries. + * @opt_param string callback JS method name for JSONP callbacks. * @opt_param int cursor The cursor value to use for the next page of results. - * @opt_param bool prefixed Prefix match against names and aliases. - * @opt_param bool exact Query on exact name and keys only. - * @opt_param string mid A mid to use instead of a query. + * @opt_param string domain Restrict to topics with this Freebase domain id. * @opt_param string encode The encoding of the response. You can use this * parameter to enable html encoding. - * @opt_param string type Restrict to topics with this Freebase type id. - * @opt_param string as_of_time A mql as_of_time value to use with mql_output - * queries. - * @opt_param bool stemmed Query on stemmed names and aliases. May not be used - * with prefixed. + * @opt_param bool exact Query on exact name and keys only. + * @opt_param string filter A filter to apply to the query. * @opt_param string format Structural format of the json response. - * @opt_param string spell Request 'did you mean' suggestions - * @opt_param string with A rule to match against. + * @opt_param string help The keyword to request help on. + * @opt_param bool indent Whether to indent the json results or not. * @opt_param string lang The code of the language to run the query with. * Default is 'en'. - * @opt_param bool indent Whether to indent the json results or not. - * @opt_param string filter A filter to apply to the query. - * @opt_param string callback JS method name for JSONP callbacks. - * @opt_param string without A rule to not match against. * @opt_param int limit Maximum number of results to return. - * @opt_param string output An output expression to request data from matches. + * @opt_param string mid A mid to use instead of a query. * @opt_param string mql_output The MQL query to run againist the results to * extract more data. + * @opt_param string output An output expression to request data from matches. + * @opt_param bool prefixed Prefix match against names and aliases. + * @opt_param string query Query term to search for. + * @opt_param string scoring Relevance scoring algorithm to use. + * @opt_param string spell Request 'did you mean' suggestions + * @opt_param bool stemmed Query on stemmed names and aliases. May not be used + * with prefixed. + * @opt_param string type Restrict to topics with this Freebase type id. + * @opt_param string with A rule to match against. + * @opt_param string without A rule to not match against. */ public function search($optParams = array()) { diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php index 16b48288a..8b2c6498c 100644 --- a/src/Google/Service/Fusiontables.php +++ b/src/Google/Service/Fusiontables.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'tables/{tableId}/columns/{columnId}', @@ -171,11 +171,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'typed' => array( + 'hdrs' => array( 'location' => 'query', 'type' => 'boolean', ), - 'hdrs' => array( + 'typed' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -189,11 +189,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'typed' => array( + 'hdrs' => array( 'location' => 'query', 'type' => 'boolean', ), - 'hdrs' => array( + 'typed' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -257,14 +257,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'tables/{tableId}/styles/{styleId}', @@ -349,23 +349,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'startLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'isStrict' => array( + 'delimiter' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'encoding' => array( 'location' => 'query', 'type' => 'string', ), - 'delimiter' => array( + 'endLine' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'endLine' => array( + 'isStrict' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startLine' => array( 'location' => 'query', 'type' => 'integer', ), @@ -396,14 +396,14 @@ public function __construct(Google_Client $client) 'path' => 'tables', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'tables/{tableId}', @@ -428,23 +428,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'startLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'isStrict' => array( + 'delimiter' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'encoding' => array( 'location' => 'query', 'type' => 'string', ), - 'delimiter' => array( + 'endLine' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'endLine' => array( + 'isStrict' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startLine' => array( 'location' => 'query', 'type' => 'integer', ), @@ -512,6 +512,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -520,10 +524,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) @@ -584,14 +584,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'tables/{tableId}/templates/{templateId}', @@ -693,10 +693,10 @@ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $ * @param string $tableId Table whose columns are being listed. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Continuation token specifying which result page - * to return. * @opt_param string maxResults Maximum number of columns to return. Default is * 5. + * @opt_param string pageToken Continuation token specifying which result page + * to return. * @return Google_Service_Fusiontables_ColumnList */ public function listColumn($tableId, $optParams = array()) @@ -761,11 +761,11 @@ class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE * @param array $optParams Optional parameters. * + * @opt_param bool hdrs Whether column names are included in the first row. + * Default is true. * @opt_param bool typed Whether typed values are returned in the (JSON) * response: numbers for numeric values and parsed geometries for KML values. * Default is true. - * @opt_param bool hdrs Whether column names are included in the first row. - * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ public function sql($sql, $optParams = array()) @@ -783,11 +783,11 @@ public function sql($sql, $optParams = array()) * DESCRIBE * @param array $optParams Optional parameters. * + * @opt_param bool hdrs Whether column names are included (in the first row). + * Default is true. * @opt_param bool typed Whether typed values are returned in the (JSON) * response: numbers for numeric values and parsed geometries for KML values. * Default is true. - * @opt_param bool hdrs Whether column names are included (in the first row). - * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ public function sqlGet($sql, $optParams = array()) @@ -859,10 +859,10 @@ public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postB * @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. + * @opt_param string pageToken Continuation token specifying which result page + * to return. Optional. * @return Google_Service_Fusiontables_StyleSettingList */ public function listStyle($tableId, $optParams = array()) @@ -967,19 +967,19 @@ public function get($tableId, $optParams = array()) * @param string $tableId The table into which new rows are being imported. * @param array $optParams Optional parameters. * - * @opt_param int startLine The index of the first line from which to start - * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the imported CSV must have the same number - * of values for each row. If false, rows with fewer values will be padded with - * empty values. Default is true. - * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * auto-detect if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This * can only consist of a single character. Default is ,. + * @opt_param 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 line up to which data will be * imported. Default is to import the entire file. If endLine is negative, it is * an offset from the end of the file; the imported content will exclude the * last endLine lines. + * @opt_param bool isStrict Whether the imported 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()) @@ -1027,10 +1027,10 @@ public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = * * @param array $optParams Optional parameters. * - * @opt_param string pageToken Continuation token specifying which result page - * to return. * @opt_param string maxResults Maximum number of tables to return. Default is * 5. + * @opt_param string pageToken Continuation token specifying which result page + * to return. * @return Google_Service_Fusiontables_TableList */ public function listTable($optParams = array()) @@ -1068,20 +1068,20 @@ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $op * @param string $tableId Table whose rows will be replaced. * @param array $optParams Optional parameters. * - * @opt_param int startLine The index of the first line from which to start - * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the imported CSV must have the same number - * of column values for each row. If true, throws an exception if the CSV does - * not have the same number of columns. If false, rows with fewer column values - * will be padded with empty values. Default is true. - * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * 'auto-detect' if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This * can only consist of a single character. Default is ,. + * @opt_param 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 line up to which data will be * imported. Default is to import the entire file. If endLine is negative, it is * an offset from the end of the file; the imported content will exclude the * last endLine lines. + * @opt_param bool isStrict Whether the imported CSV must have the same number + * of column values for each row. If true, throws an exception if the CSV does + * not have the same number of columns. If false, rows with fewer column 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_Task */ public function replaceRows($tableId, $optParams = array()) @@ -1159,11 +1159,11 @@ public function get($tableId, $taskId, $optParams = array()) * @param string $tableId Table whose tasks are being listed. * @param array $optParams Optional parameters. * + * @opt_param string maxResults Maximum number of tasks to return. Default is 5. * @opt_param string pageToken Continuation token specifying which result page * to return. * @opt_param string startIndex Index of the first result returned in the * current page. - * @opt_param string maxResults Maximum number of tasks to return. Default is 5. * @return Google_Service_Fusiontables_TaskList */ public function listTask($tableId, $optParams = array()) @@ -1236,10 +1236,10 @@ public function insert($tableId, Google_Service_Fusiontables_Template $postBody, * 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. + * @opt_param string pageToken Continuation token specifying which results page + * to return. Optional. * @return Google_Service_Fusiontables_TemplateList */ public function listTemplate($tableId, $optParams = array()) diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php index fb45179ff..b934ac4ac 100644 --- a/src/Google/Service/Games.php +++ b/src/Google/Service/Games.php @@ -1,6 +1,6 @@ 'achievements', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -88,7 +88,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -131,11 +131,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'state' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -143,7 +139,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'state' => array( 'location' => 'query', 'type' => 'string', ), @@ -206,11 +206,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'platformType' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), - 'language' => array( + 'platformType' => array( 'location' => 'query', 'type' => 'string', ), @@ -219,6 +219,16 @@ public function __construct(Google_Client $client) 'path' => 'applications/played', 'httpMethod' => 'POST', 'parameters' => array(), + ),'verify' => array( + 'path' => 'applications/{applicationId}/verify', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -233,7 +243,7 @@ public function __construct(Google_Client $client) 'path' => 'events', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -241,7 +251,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -250,7 +260,7 @@ public function __construct(Google_Client $client) 'path' => 'eventDefinitions', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -258,7 +268,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -300,7 +310,7 @@ public function __construct(Google_Client $client) 'path' => 'leaderboards', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -308,7 +318,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -341,7 +351,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -349,7 +359,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -387,7 +397,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -395,7 +405,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -481,7 +491,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -489,7 +499,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -603,7 +613,7 @@ public function __construct(Google_Client $client) 'path' => 'rooms', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -611,7 +621,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -731,21 +741,21 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'returnTopIfAbsent' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'resultsAbove' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'maxResults' => array( + 'resultsAbove' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'returnTopIfAbsent' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'submit' => array( @@ -813,7 +823,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -821,7 +831,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -902,14 +912,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeMatchData' => array( 'location' => 'query', 'type' => 'boolean', ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'join' => array( 'path' => 'turnbasedmatches/{matchId}/join', @@ -966,7 +976,11 @@ public function __construct(Google_Client $client) 'path' => 'turnbasedmatches', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'includeMatchData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -978,14 +992,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'rematch' => array( 'path' => 'turnbasedmatches/{matchId}/rematch', @@ -996,11 +1006,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'requestId' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), - 'language' => array( + 'requestId' => array( 'location' => 'query', 'type' => 'string', ), @@ -1009,7 +1019,11 @@ public function __construct(Google_Client $client) 'path' => 'turnbasedmatches/sync', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'includeMatchData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -1021,14 +1035,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'takeTurn' => array( 'path' => 'turnbasedmatches/{matchId}/turn', @@ -1069,12 +1079,12 @@ class Google_Service_Games_AchievementDefinitions_Resource extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of achievement resources to * return in the response, used for paging. For any response, the actual number * of achievement resources returned may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_AchievementDefinitionsListResponse */ public function listAchievementDefinitions($optParams = array()) @@ -1124,15 +1134,15 @@ public function increment($achievementId, $stepsToIncrement, $optParams = array( * the authenticated player's ID. * @param array $optParams Optional parameters. * + * @opt_param string language The preferred language to use for strings returned + * by this method. + * @opt_param int maxResults The maximum number of achievement resources to + * return in the response, used for paging. For any response, the actual number + * of achievement resources returned may be less than the specified maxResults. * @opt_param string pageToken The token returned by the previous request. * @opt_param string state Tells the server to return only achievements with the * specified state. If this parameter isn't specified, all achievements are * returned. - * @opt_param int maxResults The maximum number of achievement resources to - * return in the response, used for paging. For any response, the actual number - * of achievement resources returned may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. * @return Google_Service_Games_PlayerAchievementListResponse */ public function listAchievements($playerId, $optParams = array()) @@ -1226,10 +1236,10 @@ class Google_Service_Games_Applications_Resource extends Google_Service_Resource * developer console. * @param array $optParams Optional parameters. * - * @opt_param string platformType Restrict application details returned to the - * specific platform. * @opt_param string language The preferred language to use for strings returned * by this method. + * @opt_param string platformType Restrict application details returned to the + * specific platform. * @return Google_Service_Games_Application */ public function get($applicationId, $optParams = array()) @@ -1251,6 +1261,23 @@ public function played($optParams = array()) $params = array_merge($params, $optParams); return $this->call('played', array($params)); } + + /** + * Verifies the auth token provided with this request is for the application + * with the specified ID, and returns the ID of the player it was granted for. + * (applications.verify) + * + * @param string $applicationId The application ID from the Google Play + * developer console. + * @param array $optParams Optional parameters. + * @return Google_Service_Games_ApplicationVerifyResponse + */ + public function verify($applicationId, $optParams = array()) + { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('verify', array($params), "Google_Service_Games_ApplicationVerifyResponse"); + } } /** @@ -1270,12 +1297,12 @@ class Google_Service_Games_Events_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of events to return in the * response, used for paging. For any response, the actual number of events to * return may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_PlayerEventListResponse */ public function listByPlayer($optParams = array()) @@ -1291,12 +1318,12 @@ public function listByPlayer($optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of event definitions to return * in the response, used for paging. For any response, the actual number of * event definitions to return may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_EventDefinitionListResponse */ public function listDefinitions($optParams = array()) @@ -1360,12 +1387,12 @@ public function get($leaderboardId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of leaderboards to return in the * response. For any response, the actual number of leaderboards returned may be * less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_LeaderboardListResponse */ public function listLeaderboards($optParams = array()) @@ -1411,12 +1438,12 @@ public function getMetagameConfig($optParams = array()) * returned. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of category resources to return * in the response, used for paging. For any response, the actual number of * category resources returned may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_CategoryListResponse */ public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) @@ -1464,12 +1491,12 @@ public function get($playerId, $optParams = array()) * @param string $collection Collection of players being retrieved * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of player resources to return in * the response, used for paging. For any response, the actual number of player * resources returned may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_PlayerListResponse */ public function listPlayers($collection, $optParams = array()) @@ -1588,13 +1615,13 @@ public function accept($questId, $optParams = array()) * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of quest resources to return in * the response, used for paging. For any response, the actual number of quest * resources returned may be less than the specified maxResults. Acceptable * values are 1 to 50, inclusive. (Default: 50). - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_QuestListResponse */ public function listQuests($playerId, $optParams = array()) @@ -1756,12 +1783,12 @@ public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of rooms to return in the * response, used for paging. For any response, the actual number of rooms to * return may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_RoomList */ public function listRooms($optParams = array()) @@ -1871,16 +1898,16 @@ public function listScores($leaderboardId, $collection, $timeSpan, $optParams = * * @opt_param string language The preferred language to use for strings returned * by this method. - * @opt_param bool returnTopIfAbsent True if the top scores should be returned - * when the player is not in the leaderboard. Defaults to true. - * @opt_param int resultsAbove The preferred number of scores to return above - * the player's score. More scores may be returned if the player is at the - * bottom of the leaderboard; fewer may be returned if the player is at the top. - * Must be less than or equal to maxResults. * @opt_param int maxResults The maximum number of leaderboard scores to return * in the response. For any response, the actual number of leaderboard scores * returned may be less than the specified maxResults. * @opt_param string pageToken The token returned by the previous request. + * @opt_param int resultsAbove The preferred number of scores to return above + * the player's score. More scores may be returned if the player is at the + * bottom of the leaderboard; fewer may be returned if the player is at the top. + * Must be less than or equal to maxResults. + * @opt_param bool returnTopIfAbsent True if the top scores should be returned + * when the player is not in the leaderboard. Defaults to true. * @return Google_Service_Games_LeaderboardScores */ public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array()) @@ -1970,12 +1997,12 @@ public function get($snapshotId, $optParams = array()) * the authenticated player's ID. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxResults The maximum number of snapshot resources to return * in the response, used for paging. For any response, the actual number of * snapshot resources returned may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_SnapshotListResponse */ public function listSnapshots($playerId, $optParams = array()) @@ -2085,9 +2112,9 @@ public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $pos * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * + * @opt_param bool includeMatchData Get match data along with metadata. * @opt_param string language The preferred language to use for strings returned * by this method. - * @opt_param bool includeMatchData Get match data along with metadata. * @return Google_Service_Games_TurnBasedMatch */ public function get($matchId, $optParams = array()) @@ -2161,20 +2188,20 @@ public function leaveTurn($matchId, $matchVersion, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param bool includeMatchData True if match data should be returned in the + * response. Note that not all data will necessarily be returned if + * include_match_data is true; the server may decide to only return data for + * some of the matches to limit download size for the client. The remainder of + * the data for these matches will be retrievable on request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxCompletedMatches The maximum number of completed or * canceled matches to return in the response. If not set, all matches returned * could be completed or canceled. * @opt_param int maxResults The maximum number of matches to return in the * response, used for paging. For any response, the actual number of matches to * return may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param bool includeMatchData True if match data should be returned in the - * response. Note that not all data will necessarily be returned if - * include_match_data is true; the server may decide to only return data for - * some of the matches to limit download size for the client. The remainder of - * the data for these matches will be retrievable on request. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_TurnBasedMatchList */ public function listTurnBasedMatches($optParams = array()) @@ -2193,11 +2220,11 @@ public function listTurnBasedMatches($optParams = array()) * @param string $matchId The ID of the match. * @param array $optParams Optional parameters. * + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param string requestId A randomly generated numeric ID for each request * specified by the caller. This number is used at the server to ensure that the * request is handled correctly across retries. - * @opt_param string language The preferred language to use for strings returned - * by this method. * @return Google_Service_Games_TurnBasedMatchRematch */ public function rematch($matchId, $optParams = array()) @@ -2215,20 +2242,20 @@ public function rematch($matchId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param bool includeMatchData True if match data should be returned in the + * response. Note that not all data will necessarily be returned if + * include_match_data is true; the server may decide to only return data for + * some of the matches to limit download size for the client. The remainder of + * the data for these matches will be retrievable on request. + * @opt_param string language The preferred language to use for strings returned + * by this method. * @opt_param int maxCompletedMatches The maximum number of completed or * canceled matches to return in the response. If not set, all matches returned * could be completed or canceled. * @opt_param int maxResults The maximum number of matches to return in the * response, used for paging. For any response, the actual number of matches to * return may be less than the specified maxResults. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param bool includeMatchData True if match data should be returned in the - * response. Note that not all data will necessarily be returned if - * include_match_data is true; the server may decide to only return data for - * some of the matches to limit download size for the client. The remainder of - * the data for these matches will be retrievable on request. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_Games_TurnBasedMatchSync */ public function sync($optParams = array()) @@ -2971,6 +2998,33 @@ public function getSecondary() } } +class Google_Service_Games_ApplicationVerifyResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + "playerId" => "player_id", + ); + public $kind; + public $playerId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlayerId($playerId) + { + $this->playerId = $playerId; + } + public function getPlayerId() + { + return $this->playerId; + } +} + class Google_Service_Games_Category extends Google_Model { protected $internal_gapi_mappings = array( @@ -4464,6 +4518,7 @@ class Google_Service_Games_Player extends Google_Model protected $lastPlayedWithDataType = ''; protected $nameType = 'Google_Service_Games_PlayerName'; protected $nameDataType = ''; + public $originalPlayerId; public $playerId; public $title; @@ -4532,6 +4587,14 @@ public function getName() { return $this->name; } + public function setOriginalPlayerId($originalPlayerId) + { + $this->originalPlayerId = $originalPlayerId; + } + public function getOriginalPlayerId() + { + return $this->originalPlayerId; + } public function setPlayerId($playerId) { $this->playerId = $playerId; diff --git a/src/Google/Service/GamesConfiguration.php b/src/Google/Service/GamesConfiguration.php index a873b0198..3878f0b07 100644 --- a/src/Google/Service/GamesConfiguration.php +++ b/src/Google/Service/GamesConfiguration.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'achievements/{achievementId}', @@ -200,14 +200,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'leaderboards/{leaderboardId}', @@ -302,10 +302,10 @@ public function insert($applicationId, Google_Service_GamesConfiguration_Achieve * developer console. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param int maxResults The maximum number of resource configurations to * return in the response, used for paging. For any response, the actual number * of resources returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse */ public function listAchievementConfigurations($applicationId, $optParams = array()) @@ -441,10 +441,10 @@ public function insert($applicationId, Google_Service_GamesConfiguration_Leaderb * developer console. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param int maxResults The maximum number of resource configurations to * return in the response, used for paging. For any response, the actual number * of resources returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse */ public function listLeaderboardConfigurations($applicationId, $optParams = array()) diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php index 71126cf97..a1cf096fe 100644 --- a/src/Google/Service/GamesManagement.php +++ b/src/Google/Service/GamesManagement.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -443,10 +443,10 @@ class Google_Service_GamesManagement_Applications_Resource extends Google_Servic * developer console. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param int maxResults The maximum number of player resources to return in * the response, used for paging. For any response, the actual number of player * resources returned may be less than the specified maxResults. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_GamesManagement_HiddenPlayerList */ public function listHidden($applicationId, $optParams = array()) @@ -1171,6 +1171,7 @@ class Google_Service_GamesManagement_Player extends Google_Model protected $lastPlayedWithDataType = ''; protected $nameType = 'Google_Service_GamesManagement_PlayerName'; protected $nameDataType = ''; + public $originalPlayerId; public $playerId; public $title; @@ -1239,6 +1240,14 @@ public function getName() { return $this->name; } + public function setOriginalPlayerId($originalPlayerId) + { + $this->originalPlayerId = $originalPlayerId; + } + public function getOriginalPlayerId() + { + return $this->originalPlayerId; + } public function setPlayerId($playerId) { $this->playerId = $playerId; diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index ffe7b4d89..33fc819f2 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -1,6 +1,6 @@ - * An API to store, process, explore, and share DNA sequence reads, reference- - * based alignments, and variant calls.

    + * An API to store, process, explore, and share genomic data. It supports + * reference-based alignments, genetic variants, and reference genomes. This API + * provides an implementation of the Global Alliance for Genomics and Health + * (GA4GH) v0.5.1 API as well as several extensions.

    * *

    * For more information about this service, see the API @@ -58,7 +60,7 @@ class Google_Service_Genomics extends Google_Service public $referencesets; public $variants; public $variantsets; - + /** * Constructs the internal representation of the Genomics service. @@ -246,16 +248,6 @@ public function __construct(Google_Client $client) 'required' => true, ), ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', @@ -279,14 +271,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -369,19 +361,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'end' => array( + 'referenceName' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'start' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'end' => array( 'location' => 'query', 'type' => 'string', ), @@ -389,10 +377,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'referenceName' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -408,6 +400,10 @@ public function __construct(Google_Client $client) 'path' => 'v1/reads/search', 'httpMethod' => 'POST', 'parameters' => array(), + ),'stream' => array( + 'path' => 'v1/reads:stream', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -459,14 +455,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -548,6 +544,10 @@ public function __construct(Google_Client $client) 'path' => 'v1/variants/search', 'httpMethod' => 'POST', 'parameters' => array(), + ),'stream' => array( + 'path' => 'v1/variants:stream', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -630,7 +630,10 @@ class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource { /** - * Creates a new call set. (callsets.create) + * Creates a new call set. For the definitions of call sets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (callsets.create) * * @param Google_CallSet $postBody * @param array $optParams Optional parameters. @@ -644,7 +647,10 @@ public function create(Google_Service_Genomics_CallSet $postBody, $optParams = a } /** - * Deletes a call set. (callsets.delete) + * Deletes a call set. For the definitions of call sets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (callsets.delete) * * @param string $callSetId The ID of the call set to be deleted. * @param array $optParams Optional parameters. @@ -658,7 +664,10 @@ public function delete($callSetId, $optParams = array()) } /** - * Gets a call set by ID. (callsets.get) + * Gets a call set by ID. For the definitions of call sets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (callsets.get) * * @param string $callSetId The ID of the call set. * @param array $optParams Optional parameters. @@ -672,7 +681,10 @@ public function get($callSetId, $optParams = array()) } /** - * Updates a call set. This method supports patch semantics. (callsets.patch) + * Updates a call set. For the definitions of call sets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * This method supports patch semantics. (callsets.patch) * * @param string $callSetId The ID of the call set to be updated. * @param Google_CallSet $postBody @@ -691,9 +703,12 @@ public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $op } /** - * Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi - * .searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resour - * ces/avro/variantmethods.avdl#L178). (callsets.search) + * Gets a list of call sets matching the criteria. For the definitions of call + * sets and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schema + * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178). + * (callsets.search) * * @param Google_SearchCallSetsRequest $postBody * @param array $optParams Optional parameters. @@ -719,7 +734,10 @@ class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource { /** - * Creates a new dataset. (datasets.create) + * Creates a new dataset. For the definitions of datasets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (datasets.create) * * @param Google_Dataset $postBody * @param array $optParams Optional parameters. @@ -733,7 +751,10 @@ public function create(Google_Service_Genomics_Dataset $postBody, $optParams = a } /** - * Deletes a dataset. (datasets.delete) + * Deletes a dataset. For the definitions of datasets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (datasets.delete) * * @param string $datasetId The ID of the dataset to be deleted. * @param array $optParams Optional parameters. @@ -747,7 +768,10 @@ public function delete($datasetId, $optParams = array()) } /** - * Gets a dataset by ID. (datasets.get) + * Gets a dataset by ID. For the definitions of datasets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (datasets.get) * * @param string $datasetId The ID of the dataset. * @param array $optParams Optional parameters. @@ -761,9 +785,11 @@ public function get($datasetId, $optParams = array()) } /** - * Gets the access control policy for the dataset. Is empty if the policy or the - * resource does not exist. See Getting a Policy for more information. - * (datasets.getIamPolicy) + * Gets the access control policy for the dataset. This is empty if the policy + * or resource does not exist. See Getting a Policy for more information. For + * the definitions of datasets and other genomics resources, see [Fundamentals + * of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + * genomics) (datasets.getIamPolicy) * * @param string $resource REQUIRED: The resource for which policy is being * specified. Format is `datasets/`. @@ -779,13 +805,16 @@ public function getIamPolicy($resource, Google_Service_Genomics_GetIamPolicyRequ } /** - * Lists datasets within a project. (datasets.listDatasets) + * Lists datasets within a project. For the definitions of datasets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (datasets.listDatasets) * * @param array $optParams Optional parameters. * * @opt_param string projectId Required. The project to list datasets for. - * @opt_param int pageSize The maximum number of results returned by this - * request. If unspecified, defaults to 50. The maximum value is 1024. + * @opt_param int pageSize The maximum number of results to return in a single + * page. If unspecified, defaults to 50. The maximum value is 1024. * @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. @@ -799,7 +828,10 @@ public function listDatasets($optParams = array()) } /** - * Updates a dataset. This method supports patch semantics. (datasets.patch) + * Updates a dataset. For the definitions of datasets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * This method supports patch semantics. (datasets.patch) * * @param string $datasetId The ID of the dataset to be updated. * @param Google_Dataset $postBody @@ -819,8 +851,10 @@ public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $op /** * Sets the access control policy on the specified dataset. Replaces any - * existing policy. See Setting a Policy for more information. - * (datasets.setIamPolicy) + * existing policy. For the definitions of datasets and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * See Setting a Policy for more information. (datasets.setIamPolicy) * * @param string $resource REQUIRED: The resource for which policy is being * specified. Format is `datasets/`. @@ -837,7 +871,10 @@ public function setIamPolicy($resource, Google_Service_Genomics_SetIamPolicyRequ /** * Returns permissions that a caller has on the specified resource. See Testing - * Permissions for more information. (datasets.testIamPermissions) + * Permissions for more information. For the definitions of datasets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (datasets.testIamPermissions) * * @param string $resource REQUIRED: The resource for which policy is being * specified. Format is `datasets/`. @@ -854,8 +891,10 @@ public function testIamPermissions($resource, Google_Service_Genomics_TestIamPer /** * Undeletes a dataset by restoring a dataset which was deleted via this API. - * This operation is only possible for a week after the deletion occurred. - * (datasets.undelete) + * For the definitions of datasets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) This operation is only possible for a week + * after the deletion occurred. (datasets.undelete) * * @param string $datasetId The ID of the dataset to be undeleted. * @param Google_UndeleteDatasetRequest $postBody @@ -900,21 +939,6 @@ public function cancel($name, Google_Service_Genomics_CancelOperationRequest $po return $this->call('cancel', array($params), "Google_Service_Genomics_Empty"); } - /** - * This method is not implemented. To cancel an operation, please use - * Operations.CancelOperation. (operations.delete) - * - * @param string $name The name of the operation resource to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API @@ -944,9 +968,9 @@ public function get($name, $optParams = array()) * seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use * `>=` and/or `= 1432140000` * `projectId = my-project AND createTime >= * 1432140000 AND createTime <= 1432150000 AND status = RUNNING` - * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The maximum number of results to return. If * unspecified, defaults to 256. The maximum value is 2048. + * @opt_param string pageToken The standard list page token. * @return Google_Service_Genomics_ListOperationsResponse */ public function listOperations($name, $optParams = array()) @@ -969,7 +993,10 @@ class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Reso { /** - * Deletes a read group set. (readgroupsets.delete) + * Deletes a read group set. For the definitions of read group sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (readgroupsets.delete) * * @param string $readGroupSetId The ID of the read group set to be deleted. The * caller must have WRITE permissions to the dataset associated with this read @@ -985,14 +1012,17 @@ public function delete($readGroupSetId, $optParams = array()) } /** - * Exports a read group set to a BAM file in Google Cloud Storage. Note that - * currently there may be some differences between exported BAM files and the - * original BAM file at the time of import. See + * Exports a read group set to a BAM file in Google Cloud Storage. For the + * definitions of read group sets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) Note that currently there may be some + * differences between exported BAM files and the original BAM file at the time + * of import. See * [ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) * for caveats. (readgroupsets.export) * * @param string $readGroupSetId Required. The ID of the read group set to - * export. + * export. The caller must have READ access to this read group set. * @param Google_ExportReadGroupSetRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Genomics_Operation @@ -1005,7 +1035,10 @@ public function export($readGroupSetId, Google_Service_Genomics_ExportReadGroupS } /** - * Gets a read group set by ID. (readgroupsets.get) + * Gets a read group set by ID. For the definitions of read group sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (readgroupsets.get) * * @param string $readGroupSetId The ID of the read group set. * @param array $optParams Optional parameters. @@ -1020,14 +1053,17 @@ public function get($readGroupSetId, $optParams = array()) /** * Creates read group sets by asynchronously importing the provided information. - * The caller must have WRITE permissions to the dataset. ## Notes on - * [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import - Tags will be - * converted to strings - tag types are not preserved - Comments (`@CO`) in the - * input file header will not be preserved - Original header order of references - * (`@SQ`) will not be preserved - Any reverse stranded unmapped reads will be - * reverse complemented, and their qualities (and "BQ" tag, if any) will be - * reversed - Unmapped reads will be stripped of positional information - * (reference name and position) (readgroupsets.import) + * For the definitions of read group sets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) The caller must have WRITE permissions to + * the dataset. ## Notes on [BAM](https://samtools.github.io/hts- + * specs/SAMv1.pdf) import - Tags will be converted to strings - tag types are + * not preserved - Comments (`@CO`) in the input file header will not be + * preserved - Original header order of references (`@SQ`) will not be preserved + * - Any reverse stranded unmapped reads will be reverse complemented, and their + * qualities (also the "BQ" and "OQ" tags, if any) will be reversed - Unmapped + * reads will be stripped of positional information (reference name and + * position) (readgroupsets.import) * * @param Google_ImportReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1041,8 +1077,10 @@ public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postB } /** - * Updates a read group set. This method supports patch semantics. - * (readgroupsets.patch) + * Updates a read group set. For the definitions of read group sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * This method supports patch semantics. (readgroupsets.patch) * * @param string $readGroupSetId The ID of the read group set to be updated. The * caller must have WRITE permissions to the dataset associated with this read @@ -1051,9 +1089,8 @@ public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postB * @param array $optParams Optional parameters. * * @opt_param string updateMask An optional mask specifying which fields to - * update. At this time, mutable fields are referenceSetId and name. Acceptable - * values are "referenceSetId" and "name". If unspecified, all mutable fields - * will be updated. + * update. Supported fields: * name. * referenceSetId. Leaving `updateMask` + * unset is equivalent to specifying all mutable fields. * @return Google_Service_Genomics_ReadGroupSet */ public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) @@ -1064,9 +1101,12 @@ public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $pos } /** - * Searches for read group sets matching the criteria. Implements [GlobalAllianc - * eApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/ma - * in/resources/avro/readmethods.avdl#L135). (readgroupsets.search) + * Searches for read group sets matching the criteria. For the definitions of + * read group sets and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/s + * chemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135). + * (readgroupsets.search) * * @param Google_SearchReadGroupSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1094,28 +1134,27 @@ class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Goog /** * Lists fixed width coverage buckets for a read group set, each of which * correspond to a range of a reference sequence. Each bucket summarizes - * coverage information across its corresponding genomic range. Coverage is - * defined as the number of reads which are aligned to a given base in the - * reference sequence. Coverage buckets are available at several precomputed - * bucket widths, enabling retrieval of various coverage 'zoom levels'. The - * caller must have READ permissions for the target read group set. - * (coveragebuckets.listReadgroupsetsCoveragebuckets) + * coverage information across its corresponding genomic range. For the + * definitions of read group sets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) Coverage is defined as the number of reads + * which are aligned to a given base in the reference sequence. Coverage buckets + * are available at several precomputed bucket widths, enabling retrieval of + * various coverage 'zoom levels'. The caller must have READ permissions for the + * target read group set. (coveragebuckets.listReadgroupsetsCoveragebuckets) * * @param string $readGroupSetId Required. The ID of the read group set over * which coverage is requested. * @param array $optParams Optional parameters. * - * @opt_param string end The end position of the range on the reference, 0-based - * exclusive. If specified, `referenceName` must also be specified. If unset or - * 0, defaults to the length of the reference. - * @opt_param int pageSize The maximum number of results to return in a single - * page. If unspecified, defaults to 1024. The maximum value is 2048. + * @opt_param string referenceName The name of the reference to query, within + * the reference set associated with this query. Optional. * @opt_param string start The start position of the range on the reference, * 0-based inclusive. If specified, `referenceName` must also be specified. * Defaults to 0. - * @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 end The end position of the range on the reference, 0-based + * exclusive. If specified, `referenceName` must also be specified. If unset or + * 0, defaults to the length of the reference. * @opt_param string targetBucketWidth The desired width of each reported * coverage bucket in base pairs. This will be rounded down to the nearest * precomputed bucket width; the value of which is returned as `bucketWidth` in @@ -1123,8 +1162,11 @@ class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Goog * sequence) or the length of the target range, if specified. The smallest * precomputed `bucketWidth` is currently 2048 base pairs; this is subject to * change. - * @opt_param string referenceName The name of the reference to query, within - * the reference set associated with this query. Optional. + * @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 int pageSize The maximum number of results to return in a single + * page. If unspecified, defaults to 1024. The maximum value is 2048. * @return Google_Service_Genomics_ListCoverageBucketsResponse */ public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) @@ -1147,17 +1189,22 @@ class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource { /** - * Gets a list of reads for one or more read group sets. Reads search operates - * over a genomic coordinate space of reference sequence & position defined over - * the reference sequences to which the requested read group sets are aligned. - * If a target positional range is specified, search returns all reads whose - * alignment to the reference genome overlap the range. A query which specifies - * only read group set IDs yields all reads in those read group sets, including - * unmapped reads. All reads returned (including reads on subsequent pages) are - * ordered by genomic coordinate (reference sequence & position). Reads with - * equivalent genomic coordinates are returned in a deterministic order. - * Implements [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/b - * lob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). (reads.search) + * Gets a list of reads for one or more read group sets. For the definitions of + * read group sets and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Reads search operates over a genomic coordinate space of reference sequence & + * position defined over the reference sequences to which the requested read + * group sets are aligned. If a target positional range is specified, search + * returns all reads whose alignment to the reference genome overlap the range. + * A query which specifies only read group set IDs yields all reads in those + * read group sets, including unmapped reads. All reads returned (including + * reads on subsequent pages) are ordered by genomic coordinate (by reference + * sequence, then position). Reads with equivalent genomic coordinates are + * returned in an unspecified order. This order is consistent, such that two + * queries for the same content (regardless of page size) yield reads in the + * same order across their respective streams of paginated responses. Implements + * [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/ + * src/main/resources/avro/readmethods.avdl#L85). (reads.search) * * @param Google_SearchReadsRequest $postBody * @param array $optParams Optional parameters. @@ -1169,6 +1216,21 @@ public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $op $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); } + + /** + * Returns a stream of all the reads matching the search request, ordered by + * reference name, position, and ID. (reads.stream) + * + * @param Google_StreamReadsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_StreamReadsResponse + */ + public function stream(Google_Service_Genomics_StreamReadsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stream', array($params), "Google_Service_Genomics_StreamReadsResponse"); + } } /** @@ -1183,9 +1245,12 @@ class Google_Service_Genomics_References_Resource extends Google_Service_Resourc { /** - * Gets a reference. Implements [GlobalAllianceApi.getReference](https://github. - * com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L - * 158). (references.get) + * Gets a reference. For the definitions of references and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/ + * blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L158). + * (references.get) * * @param string $referenceId The ID of the reference. * @param array $optParams Optional parameters. @@ -1199,9 +1264,12 @@ public function get($referenceId, $optParams = array()) } /** - * Searches for references which match the given criteria. Implements [GlobalAll - * ianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5.1/src/m - * ain/resources/avro/referencemethods.avdl#L146). (references.search) + * Searches for references which match the given criteria. For the definitions + * of references and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/sche + * mas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L146). + * (references.search) * * @param Google_SearchReferencesRequest $postBody * @param array $optParams Optional parameters. @@ -1227,10 +1295,12 @@ class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Re { /** - * Lists the bases in a reference, optionally restricted to a range. Implements - * [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v - * 0.5.1/src/main/resources/avro/referencemethods.avdl#L221). - * (bases.listReferencesBases) + * Lists the bases in a reference, optionally restricted to a range. For the + * definitions of references and other genomics resources, see [Fundamentals of + * Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + * genomics) Implements [GlobalAllianceApi.getReferenceBases](https://github.com + * /ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221 + * ). (bases.listReferencesBases) * * @param string $referenceId The ID of the reference. * @param array $optParams Optional parameters. @@ -1239,11 +1309,12 @@ class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Re * to 0. * @opt_param string end The end position (0-based, exclusive) of this query. * Defaults to the length of this reference. - * @opt_param int pageSize Specifies the maximum number of bases to return in a - * single page. * @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 int pageSize The maximum number of bases to return in a single + * page. If unspecified, defaults to 200Kbp (kilo base pairs). The maximum value + * is 10Mbp (mega base pairs). * @return Google_Service_Genomics_ListBasesResponse */ public function listReferencesBases($referenceId, $optParams = array()) @@ -1266,9 +1337,12 @@ class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Reso { /** - * Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](https:// - * github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods - * .avdl#L83). (referencesets.get) + * Gets a reference set. For the definitions of references and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schem + * as/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L83). + * (referencesets.get) * * @param string $referenceSetId The ID of the reference set. * @param array $optParams Optional parameters. @@ -1282,9 +1356,12 @@ public function get($referenceSetId, $optParams = array()) } /** - * Searches for reference sets which match the given criteria. Implements [Globa - * lAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5.1/g - * a4gh_api.html#/schema/org.ga4gh.searchReferenceSets). (referencesets.search) + * Searches for reference sets which match the given criteria. For the + * definitions of references and other genomics resources, see [Fundamentals of + * Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + * genomics) Implements [GlobalAllianceApi.searchReferenceSets](https://github.c + * om/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L7 + * 1) (referencesets.search) * * @param Google_SearchReferenceSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1310,7 +1387,10 @@ class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource { /** - * Creates a new variant. (variants.create) + * Creates a new variant. For the definitions of variants and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variants.create) * * @param Google_Variant $postBody * @param array $optParams Optional parameters. @@ -1324,7 +1404,10 @@ public function create(Google_Service_Genomics_Variant $postBody, $optParams = a } /** - * Deletes a variant. (variants.delete) + * Deletes a variant. For the definitions of variants and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variants.delete) * * @param string $variantId The ID of the variant to be deleted. * @param array $optParams Optional parameters. @@ -1338,7 +1421,10 @@ public function delete($variantId, $optParams = array()) } /** - * Gets a variant by ID. (variants.get) + * Gets a variant by ID. For the definitions of variants and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variants.get) * * @param string $variantId The ID of the variant. * @param array $optParams Optional parameters. @@ -1353,17 +1439,19 @@ public function get($variantId, $optParams = array()) /** * Creates variant data by asynchronously importing the provided information. - * The variants for import will be merged with any existing variant that matches - * its reference sequence, start, end, reference bases, and alternative bases. - * If no such variant exists, a new one will be created. When variants are - * merged, the call information from the new variant is added to the existing - * variant, and other fields (such as key/value pairs) are discarded. In - * particular, this means for merged VCF variants that have conflicting INFO - * fields, some data will be arbitrarily discarded. As a special case, for - * single-sample VCF files, QUAL and FILTER fields will be moved to the call - * level; these are sometimes interpreted in a call-specific context. Imported - * VCF headers are appended to the metadata already in a variant set. - * (variants.import) + * For the definitions of variant sets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) The variants for import will be merged with + * any existing variant that matches its reference sequence, start, end, + * reference bases, and alternative bases. If no such variant exists, a new one + * will be created. When variants are merged, the call information from the new + * variant is added to the existing variant, and other fields (such as key/value + * pairs) are discarded. In particular, this means for merged VCF variants that + * have conflicting INFO fields, some data will be arbitrarily discarded. As a + * special case, for single-sample VCF files, QUAL and FILTER fields will be + * moved to the call level; these are sometimes interpreted in a call-specific + * context. Imported VCF headers are appended to the metadata already in a + * variant set. (variants.import) * * @param Google_ImportVariantsRequest $postBody * @param array $optParams Optional parameters. @@ -1377,8 +1465,11 @@ public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, } /** - * Updates a variant. This method supports patch semantics. Returns the modified - * variant without its calls. (variants.patch) + * Updates a variant. For the definitions of variants and other genomics + * resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * This method supports patch semantics. Returns the modified variant without + * its calls. (variants.patch) * * @param string $variantId The ID of the variant to be updated. * @param Google_Variant $postBody @@ -1397,9 +1488,12 @@ public function patch($variantId, Google_Service_Genomics_Variant $postBody, $op } /** - * Gets a list of variants matching the criteria. Implements [GlobalAllianceApi. - * searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resourc - * es/avro/variantmethods.avdl#L126). (variants.search) + * Gets a list of variants matching the criteria. For the definitions of + * variants and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Implements [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schema + * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126). + * (variants.search) * * @param Google_SearchVariantsRequest $postBody * @param array $optParams Optional parameters. @@ -1411,6 +1505,21 @@ public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); } + + /** + * Returns a stream of all the variants matching the search request, ordered by + * reference name, position, and ID. (variants.stream) + * + * @param Google_StreamVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_StreamVariantsResponse + */ + public function stream(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stream', array($params), "Google_Service_Genomics_StreamVariantsResponse"); + } } /** @@ -1425,9 +1534,12 @@ class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resour { /** - * Creates a new variant set. The provided variant set must have a valid - * `datasetId` set - all other fields are optional. Note that the `id` field - * will be ignored, as this is assigned by the server. (variantsets.create) + * Creates a new variant set. For the definitions of variant sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * The provided variant set must have a valid `datasetId` set - all other fields + * are optional. Note that the `id` field will be ignored, as this is assigned + * by the server. (variantsets.create) * * @param Google_VariantSet $postBody * @param array $optParams Optional parameters. @@ -1442,7 +1554,9 @@ public function create(Google_Service_Genomics_VariantSet $postBody, $optParams /** * Deletes the contents of a variant set. The variant set object is not deleted. - * (variantsets.delete) + * For the definitions of variant sets and other genomics resources, see + * [Fundamentals of Google Genomics](https://cloud.google.com/genomics + * /fundamentals-of-google-genomics) (variantsets.delete) * * @param string $variantSetId The ID of the variant set to be deleted. * @param array $optParams Optional parameters. @@ -1456,7 +1570,10 @@ public function delete($variantSetId, $optParams = array()) } /** - * Exports variant set data to an external destination. (variantsets.export) + * Exports variant set data to an external destination. For the definitions of + * variant sets and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variantsets.export) * * @param string $variantSetId Required. The ID of the variant set that contains * variant data which should be exported. The caller must have READ access to @@ -1473,7 +1590,10 @@ public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRe } /** - * Gets a variant set by ID. (variantsets.get) + * Gets a variant set by ID. For the definitions of variant sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variantsets.get) * * @param string $variantSetId Required. The ID of the variant set. * @param array $optParams Optional parameters. @@ -1487,7 +1607,9 @@ public function get($variantSetId, $optParams = array()) } /** - * Updates a variant set. This method supports patch semantics. + * Updates a variant set using patch semantics. For the definitions of variant + * sets and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) * (variantsets.patch) * * @param string $variantSetId The ID of the variant to be updated (must already @@ -1496,8 +1618,8 @@ public function get($variantSetId, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string updateMask An optional mask specifying which fields to - * update. At this time, the only mutable field is metadata. The only acceptable - * value is "metadata". If unspecified, all mutable fields will be updated. + * update. Supported fields: * metadata. Leaving `updateMask` unset is + * equivalent to specifying all mutable fields. * @return Google_Service_Genomics_VariantSet */ public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) @@ -1508,9 +1630,12 @@ public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBod } /** - * Returns a list of all variant sets matching search criteria. Implements [Glob - * alAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0.5.1 - * /src/main/resources/avro/variantmethods.avdl#L49). (variantsets.search) + * Returns a list of all variant sets matching search criteria. For the + * definitions of variant sets and other genomics resources, see [Fundamentals + * of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + * genomics) Implements [GlobalAllianceApi.searchVariantSets](https://github.com + * /ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49). + * (variantsets.search) * * @param Google_SearchVariantSetsRequest $postBody * @param array $optParams Optional parameters. @@ -1617,10 +1742,6 @@ public function getVariantSetIds() } } -class Google_Service_Genomics_CallSetInfo extends Google_Model -{ -} - class Google_Service_Genomics_CancelOperationRequest extends Google_Model { } @@ -1660,6 +1781,99 @@ public function getReferenceSequence() } } +class Google_Service_Genomics_CloudAuditOptions extends Google_Model +{ +} + +class Google_Service_Genomics_Condition extends Google_Collection +{ + protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); + public $iam; + public $op; + public $svc; + public $sys; + public $value; + public $values; + + + public function setIam($iam) + { + $this->iam = $iam; + } + public function getIam() + { + return $this->iam; + } + public function setOp($op) + { + $this->op = $op; + } + public function getOp() + { + return $this->op; + } + public function setSvc($svc) + { + $this->svc = $svc; + } + public function getSvc() + { + return $this->svc; + } + public function setSys($sys) + { + $this->sys = $sys; + } + public function getSys() + { + return $this->sys; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} + +class Google_Service_Genomics_CounterOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $field; + public $metric; + + + public function setField($field) + { + $this->field = $field; + } + public function getField() + { + return $this->field; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } +} + class Google_Service_Genomics_CoverageBucket extends Google_Model { protected $internal_gapi_mappings = array( @@ -1687,6 +1901,10 @@ public function getRange() } } +class Google_Service_Genomics_DataAccessOptions extends Google_Model +{ +} + class Google_Service_Genomics_Dataset extends Google_Model { protected $internal_gapi_mappings = array( @@ -2165,6 +2383,44 @@ public function getOperations() } } +class Google_Service_Genomics_LogConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cloudAuditType = 'Google_Service_Genomics_CloudAuditOptions'; + protected $cloudAuditDataType = ''; + protected $counterType = 'Google_Service_Genomics_CounterOptions'; + protected $counterDataType = ''; + protected $dataAccessType = 'Google_Service_Genomics_DataAccessOptions'; + protected $dataAccessDataType = ''; + + + public function setCloudAudit(Google_Service_Genomics_CloudAuditOptions $cloudAudit) + { + $this->cloudAudit = $cloudAudit; + } + public function getCloudAudit() + { + return $this->cloudAudit; + } + public function setCounter(Google_Service_Genomics_CounterOptions $counter) + { + $this->counter = $counter; + } + public function getCounter() + { + return $this->counter; + } + public function setDataAccess(Google_Service_Genomics_DataAccessOptions $dataAccess) + { + $this->dataAccess = $dataAccess; + } + public function getDataAccess() + { + return $this->dataAccess; + } +} + class Google_Service_Genomics_Operation extends Google_Model { protected $internal_gapi_mappings = array( @@ -2282,22 +2538,16 @@ public function getRequest() } } -class Google_Service_Genomics_OperationMetadataRequest extends Google_Model -{ -} - -class Google_Service_Genomics_OperationResponse extends Google_Model -{ -} - class Google_Service_Genomics_Policy extends Google_Collection { - protected $collection_key = 'bindings'; + protected $collection_key = 'rules'; protected $internal_gapi_mappings = array( ); protected $bindingsType = 'Google_Service_Genomics_Binding'; protected $bindingsDataType = 'array'; public $etag; + protected $rulesType = 'Google_Service_Genomics_Rule'; + protected $rulesDataType = 'array'; public $version; @@ -2317,6 +2567,14 @@ public function getEtag() { return $this->etag; } + public function setRules($rules) + { + $this->rules = $rules; + } + public function getRules() + { + return $this->rules; + } public function setVersion($version) { $this->version = $version; @@ -2715,10 +2973,6 @@ public function getSampleId() } } -class Google_Service_Genomics_ReadGroupInfo extends Google_Model -{ -} - class Google_Service_Genomics_ReadGroupSet extends Google_Collection { protected $collection_key = 'readGroups'; @@ -2792,14 +3046,6 @@ public function getReferenceSetId() } } -class Google_Service_Genomics_ReadGroupSetInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ReadInfo extends Google_Model -{ -} - class Google_Service_Genomics_Reference extends Google_Collection { protected $collection_key = 'sourceAccessions'; @@ -2979,6 +3225,80 @@ public function getSourceUri() } } +class Google_Service_Genomics_Rule extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $action; + protected $conditionsType = 'Google_Service_Genomics_Condition'; + protected $conditionsDataType = 'array'; + public $description; + public $in; + protected $logConfigType = 'Google_Service_Genomics_LogConfig'; + protected $logConfigDataType = 'array'; + public $notIn; + public $permissions; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + public function getConditions() + { + return $this->conditions; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIn($in) + { + $this->in = $in; + } + public function getIn() + { + return $this->in; + } + public function setLogConfig($logConfig) + { + $this->logConfig = $logConfig; + } + public function getLogConfig() + { + return $this->logConfig; + } + public function setNotIn($notIn) + { + $this->notIn = $notIn; + } + public function getNotIn() + { + return $this->notIn; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; @@ -3625,8 +3945,158 @@ public function getMessage() } } -class Google_Service_Genomics_StatusDetails extends Google_Model +class Google_Service_Genomics_StreamReadsRequest extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $end; + public $projectId; + public $readGroupSetId; + public $referenceName; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReadGroupSetId($readGroupSetId) + { + $this->readGroupSetId = $readGroupSetId; + } + public function getReadGroupSetId() + { + return $this->readGroupSetId; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Genomics_StreamReadsResponse extends Google_Collection +{ + protected $collection_key = 'alignments'; + protected $internal_gapi_mappings = array( + ); + protected $alignmentsType = 'Google_Service_Genomics_Read'; + protected $alignmentsDataType = 'array'; + + + public function setAlignments($alignments) + { + $this->alignments = $alignments; + } + public function getAlignments() + { + return $this->alignments; + } +} + +class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection +{ + protected $collection_key = 'callSetIds'; + protected $internal_gapi_mappings = array( + ); + public $callSetIds; + public $end; + public $projectId; + public $referenceName; + public $start; + public $variantSetId; + + + public function setCallSetIds($callSetIds) + { + $this->callSetIds = $callSetIds; + } + public function getCallSetIds() + { + return $this->callSetIds; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReferenceName($referenceName) + { + $this->referenceName = $referenceName; + } + public function getReferenceName() + { + return $this->referenceName; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } + public function setVariantSetId($variantSetId) + { + $this->variantSetId = $variantSetId; + } + public function getVariantSetId() + { + return $this->variantSetId; + } +} + +class Google_Service_Genomics_StreamVariantsResponse extends Google_Collection +{ + protected $collection_key = 'variants'; + protected $internal_gapi_mappings = array( + ); + protected $variantsType = 'Google_Service_Genomics_Variant'; + protected $variantsDataType = 'array'; + + + public function setVariants($variants) + { + $this->variants = $variants; + } + public function getVariants() + { + return $this->variants; + } } class Google_Service_Genomics_TestIamPermissionsRequest extends Google_Collection @@ -3859,14 +4329,6 @@ public function getPhaseset() } } -class Google_Service_Genomics_VariantCallInfo extends Google_Model -{ -} - -class Google_Service_Genomics_VariantInfo extends Google_Model -{ -} - class Google_Service_Genomics_VariantSet extends Google_Collection { protected $collection_key = 'referenceBounds'; @@ -3878,6 +4340,7 @@ class Google_Service_Genomics_VariantSet extends Google_Collection protected $metadataDataType = 'array'; protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; protected $referenceBoundsDataType = 'array'; + public $referenceSetId; public function setDatasetId($datasetId) @@ -3912,6 +4375,14 @@ public function getReferenceBounds() { return $this->referenceBounds; } + public function setReferenceSetId($referenceSetId) + { + $this->referenceSetId = $referenceSetId; + } + public function getReferenceSetId() + { + return $this->referenceSetId; + } } class Google_Service_Genomics_VariantSetMetadata extends Google_Model @@ -3984,7 +4455,3 @@ public function getValue() return $this->value; } } - -class Google_Service_Genomics_VariantSetMetadataInfo extends Google_Model -{ -} diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 8c15bab13..8e437ea26 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'send' => array( 'path' => '{userId}/drafts/send', @@ -226,7 +226,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'labelId' => array( 'location' => 'query', 'type' => 'string', ), @@ -234,7 +234,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'labelId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -372,14 +372,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'metadataHeaders' => array( + 'format' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'format' => array( + 'metadataHeaders' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ),'import' => array( @@ -395,10 +395,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'processForCalendar' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'internalDateSource' => array( 'location' => 'query', 'type' => 'string', @@ -407,6 +403,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'processForCalendar' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'insert' => array( 'path' => '{userId}/messages', @@ -435,26 +435,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'maxResults' => array( + 'includeSpamTrash' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'q' => array( + 'labelIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'includeSpamTrash' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'labelIds' => array( + 'q' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'modify' => array( @@ -581,14 +581,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'metadataHeaders' => array( + 'format' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'format' => array( + 'metadataHeaders' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ),'list' => array( @@ -600,26 +600,26 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'maxResults' => array( + 'includeSpamTrash' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'q' => array( + 'labelIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'includeSpamTrash' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'labelIds' => array( + 'q' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ),'modify' => array( @@ -801,9 +801,9 @@ public function get($userId, $id, $optParams = array()) * used to indicate the authenticated user. * @param array $optParams Optional parameters. * + * @opt_param string maxResults Maximum number of drafts to return. * @opt_param string pageToken Page token to retrieve a specific page of results * in the list. - * @opt_param string maxResults Maximum number of drafts to return. * @return Google_Service_Gmail_ListDraftsResponse */ public function listUsersDrafts($userId, $optParams = array()) @@ -867,10 +867,10 @@ class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource * used to indicate the authenticated user. * @param array $optParams Optional parameters. * + * @opt_param string labelId Only return messages with a label matching the ID. + * @opt_param string maxResults The maximum number of history records to return. * @opt_param string pageToken Page token to retrieve a specific page of results * in the list. - * @opt_param string maxResults The maximum number of history records to return. - * @opt_param string labelId Only return messages with a label matching the ID. * @opt_param string startHistoryId Required. Returns history records after the * specified startHistoryId. The supplied startHistoryId should be obtained from * the historyId of a message, thread, or previous list response. History IDs @@ -1035,9 +1035,9 @@ public function delete($userId, $id, $optParams = array()) * @param string $id The ID of the message to retrieve. * @param array $optParams Optional parameters. * + * @opt_param string format The format to return the message in. * @opt_param string metadataHeaders When given and format is METADATA, only * include headers specified. - * @opt_param string format The format to return the message in. * @return Google_Service_Gmail_Message */ public function get($userId, $id, $optParams = array()) @@ -1060,12 +1060,12 @@ public function get($userId, $id, $optParams = array()) * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and * only visible in Google Apps Vault to a Vault administrator. Only used for * Google Apps for Work accounts. - * @opt_param bool processForCalendar Process calendar invites in the email and - * add any extracted meetings to the Google Calendar for this user. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and * never mark this email as SPAM in the mailbox. + * @opt_param bool processForCalendar Process calendar invites in the email and + * add any extracted meetings to the Google Calendar for this user. * @return Google_Service_Gmail_Message */ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) @@ -1106,16 +1106,16 @@ public function insert($userId, Google_Service_Gmail_Message $postBody, $optPara * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string maxResults Maximum number of messages to return. - * @opt_param string q Only return messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. * @opt_param bool includeSpamTrash Include messages from SPAM and TRASH in the * results. * @opt_param string labelIds Only return messages with labels that match all of * the specified label IDs. + * @opt_param string maxResults Maximum number of messages to return. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param string q Only return messages matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * "from:someuser@example.com rfc822msgid: is:unread". * @return Google_Service_Gmail_ListMessagesResponse */ public function listUsersMessages($userId, $optParams = array()) @@ -1255,9 +1255,9 @@ public function delete($userId, $id, $optParams = array()) * @param string $id The ID of the thread to retrieve. * @param array $optParams Optional parameters. * + * @opt_param string format The format to return the messages in. * @opt_param string metadataHeaders When given and format is METADATA, only * include headers specified. - * @opt_param string format The format to return the messages in. * @return Google_Service_Gmail_Thread */ public function get($userId, $id, $optParams = array()) @@ -1274,16 +1274,16 @@ public function get($userId, $id, $optParams = array()) * used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string maxResults Maximum number of threads to return. - * @opt_param string q Only return threads matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the * results. * @opt_param string labelIds Only return threads with labels that match all of * the specified label IDs. + * @opt_param string maxResults Maximum number of threads to return. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param string q Only return threads matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * "from:someuser@example.com rfc822msgid: is:unread". * @return Google_Service_Gmail_ListThreadsResponse */ public function listUsersThreads($userId, $optParams = array()) diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php index a1354e140..01b257a2d 100644 --- a/src/Google/Service/GroupsMigration.php +++ b/src/Google/Service/GroupsMigration.php @@ -1,6 +1,6 @@ + * Manages identity and access control for Google Cloud Platform resources, + * including the creation of service accounts, which you can use to authenticate + * to Google and make API calls.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_Iam extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_serviceAccounts; + public $projects_serviceAccounts_keys; + + + /** + * Constructs the internal representation of the Iam service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://iam.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'iam'; + + $this->projects_serviceAccounts = new Google_Service_Iam_ProjectsServiceAccounts_Resource( + $this, + $this->serviceName, + 'serviceAccounts', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+name}/serviceAccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/serviceAccounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'signBlob' => array( + 'path' => 'v1/{+name}:signBlob', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_serviceAccounts_keys = new Google_Service_Iam_ProjectsServiceAccountsKeys_Resource( + $this, + $this->serviceName, + 'keys', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+name}/keys', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/keys', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'keyTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $iamService = new Google_Service_Iam(...); + * $projects = $iamService->projects; + * + */ +class Google_Service_Iam_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "serviceAccounts" collection of methods. + * Typical usage is: + * + * $iamService = new Google_Service_Iam(...); + * $serviceAccounts = $iamService->serviceAccounts; + * + */ +class Google_Service_Iam_ProjectsServiceAccounts_Resource extends Google_Service_Resource +{ + + /** + * Creates a service account and returns it. (serviceAccounts.create) + * + * @param string $name Required. The resource name of the project associated + * with the service accounts, such as "projects/123" + * @param Google_CreateServiceAccountRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_ServiceAccount + */ + public function create($name, Google_Service_Iam_CreateServiceAccountRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Iam_ServiceAccount"); + } + + /** + * Deletes a service acount. (serviceAccounts.delete) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for + * the project, will infer the project from the account. The account value can + * be the email address or the unique_id of the service account. + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_Empty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Iam_Empty"); + } + + /** + * Gets a ServiceAccount (serviceAccounts.get) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for + * the project, will infer the project from the account. The account value can + * be the email address or the unique_id of the service account. + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_ServiceAccount + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount"); + } + + /** + * Returns the IAM access control policy for specified IAM resource. + * (serviceAccounts.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `getIamPolicy` + * documentation. + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Iam_Policy"); + } + + /** + * Lists service accounts for a project. + * (serviceAccounts.listProjectsServiceAccounts) + * + * @param string $name Required. The resource name of the project associated + * with the service accounts, such as "projects/123" + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Optional limit on the number of service accounts to + * include in the response. Further accounts can subsequently be obtained by + * including the [ListServiceAccountsResponse.next_page_token] in a subsequent + * request. + * @opt_param string pageToken Optional pagination token returned in an earlier + * [ListServiceAccountsResponse.next_page_token]. + * @return Google_Service_Iam_ListServiceAccountsResponse + */ + public function listProjectsServiceAccounts($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse"); + } + + /** + * Sets the IAM access control policy for the specified IAM resource. + * (serviceAccounts.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `setIamPolicy` + * documentation. + * @param Google_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_Policy + */ + public function setIamPolicy($resource, Google_Service_Iam_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy"); + } + + /** + * Signs a blob using a service account. (serviceAccounts.signBlob) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for + * the project, will infer the project from the account. The account value can + * be the email address or the unique_id of the service account. + * @param Google_SignBlobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_SignBlobResponse + */ + public function signBlob($name, Google_Service_Iam_SignBlobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse"); + } + + /** + * Tests the specified permissions against the IAM access control policy for the + * specified IAM resource. (serviceAccounts.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. `resource` is usually specified as a path, such as + * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in + * this value is resource specific and is specified in the `testIamPermissions` + * documentation. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Iam_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse"); + } + + /** + * Updates a service account. Currently, only the following fields are + * updatable: 'display_name' . The 'etag' is mandatory. (serviceAccounts.update) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". In requests using '-' as a + * wildcard for the project, will infer the project from the account and the + * account value can be the email address or the unique_id of the service + * account. In responses the resource name will always be in the format + * "projects/{project}/serviceAccounts/{email}". + * @param Google_ServiceAccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_ServiceAccount + */ + public function update($name, Google_Service_Iam_ServiceAccount $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Iam_ServiceAccount"); + } +} + +/** + * The "keys" collection of methods. + * Typical usage is: + * + * $iamService = new Google_Service_Iam(...); + * $keys = $iamService->keys; + * + */ +class Google_Service_Iam_ProjectsServiceAccountsKeys_Resource extends Google_Service_Resource +{ + + /** + * Creates a service account key and returns it. (keys.create) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for + * the project, will infer the project from the account. The account value can + * be the email address or the unique_id of the service account. + * @param Google_CreateServiceAccountKeyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_ServiceAccountKey + */ + public function create($name, Google_Service_Iam_CreateServiceAccountKeyRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Iam_ServiceAccountKey"); + } + + /** + * Deletes a service account key. (keys.delete) + * + * @param string $name The resource name of the service account key in the + * format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' + * as a wildcard for the project will infer the project from the account. The + * account value can be the email address or the unique_id of the service + * account. + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_Empty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Iam_Empty"); + } + + /** + * Gets the ServiceAccountKey by key id. (keys.get) + * + * @param string $name The resource name of the service account key in the + * format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' + * as a wildcard for the project will infer the project from the account. The + * account value can be the email address or the unique_id of the service + * account. + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_ServiceAccountKey + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Iam_ServiceAccountKey"); + } + + /** + * Lists service account keys (keys.listProjectsServiceAccountsKeys) + * + * @param string $name The resource name of the service account in the format + * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for + * the project, will infer the project from the account. The account value can + * be the email address or the unique_id of the service account. + * @param array $optParams Optional parameters. + * + * @opt_param string keyTypes The type of keys the user wants to list. If empty, + * all key types are included in the response. Duplicate key types are not + * allowed. + * @return Google_Service_Iam_ListServiceAccountKeysResponse + */ + public function listProjectsServiceAccountsKeys($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountKeysResponse"); + } +} + + + + +class Google_Service_Iam_Binding extends Google_Collection +{ + protected $collection_key = 'members'; + protected $internal_gapi_mappings = array( + ); + public $members; + public $role; + + + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} + +class Google_Service_Iam_CloudAuditOptions extends Google_Model +{ +} + +class Google_Service_Iam_Condition extends Google_Collection +{ + protected $collection_key = 'values'; + protected $internal_gapi_mappings = array( + ); + public $iam; + public $op; + public $svc; + public $sys; + public $value; + public $values; + + + public function setIam($iam) + { + $this->iam = $iam; + } + public function getIam() + { + return $this->iam; + } + public function setOp($op) + { + $this->op = $op; + } + public function getOp() + { + return $this->op; + } + public function setSvc($svc) + { + $this->svc = $svc; + } + public function getSvc() + { + return $this->svc; + } + public function setSys($sys) + { + $this->sys = $sys; + } + public function getSys() + { + return $this->sys; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} + +class Google_Service_Iam_CounterOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $field; + public $metric; + + + public function setField($field) + { + $this->field = $field; + } + public function getField() + { + return $this->field; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } +} + +class Google_Service_Iam_CreateServiceAccountKeyRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $privateKeyType; + + + public function setPrivateKeyType($privateKeyType) + { + $this->privateKeyType = $privateKeyType; + } + public function getPrivateKeyType() + { + return $this->privateKeyType; + } +} + +class Google_Service_Iam_CreateServiceAccountRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $serviceAccountType = 'Google_Service_Iam_ServiceAccount'; + protected $serviceAccountDataType = ''; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setServiceAccount(Google_Service_Iam_ServiceAccount $serviceAccount) + { + $this->serviceAccount = $serviceAccount; + } + public function getServiceAccount() + { + return $this->serviceAccount; + } +} + +class Google_Service_Iam_DataAccessOptions extends Google_Model +{ +} + +class Google_Service_Iam_Empty extends Google_Model +{ +} + +class Google_Service_Iam_ListServiceAccountKeysResponse extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + protected $keysType = 'Google_Service_Iam_ServiceAccountKey'; + protected $keysDataType = 'array'; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_Iam_ListServiceAccountsResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_Iam_ServiceAccount'; + protected $accountsDataType = 'array'; + public $nextPageToken; + + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + public function getAccounts() + { + return $this->accounts; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Iam_LogConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $cloudAuditType = 'Google_Service_Iam_CloudAuditOptions'; + protected $cloudAuditDataType = ''; + protected $counterType = 'Google_Service_Iam_CounterOptions'; + protected $counterDataType = ''; + protected $dataAccessType = 'Google_Service_Iam_DataAccessOptions'; + protected $dataAccessDataType = ''; + + + public function setCloudAudit(Google_Service_Iam_CloudAuditOptions $cloudAudit) + { + $this->cloudAudit = $cloudAudit; + } + public function getCloudAudit() + { + return $this->cloudAudit; + } + public function setCounter(Google_Service_Iam_CounterOptions $counter) + { + $this->counter = $counter; + } + public function getCounter() + { + return $this->counter; + } + public function setDataAccess(Google_Service_Iam_DataAccessOptions $dataAccess) + { + $this->dataAccess = $dataAccess; + } + public function getDataAccess() + { + return $this->dataAccess; + } +} + +class Google_Service_Iam_Policy extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + protected $bindingsType = 'Google_Service_Iam_Binding'; + protected $bindingsDataType = 'array'; + public $etag; + protected $rulesType = 'Google_Service_Iam_Rule'; + protected $rulesDataType = 'array'; + public $version; + + + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setRules($rules) + { + $this->rules = $rules; + } + public function getRules() + { + return $this->rules; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} + +class Google_Service_Iam_Rule extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $action; + protected $conditionsType = 'Google_Service_Iam_Condition'; + protected $conditionsDataType = 'array'; + public $description; + public $in; + protected $logConfigType = 'Google_Service_Iam_LogConfig'; + protected $logConfigDataType = 'array'; + public $notIn; + public $permissions; + + + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + public function getConditions() + { + return $this->conditions; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIn($in) + { + $this->in = $in; + } + public function getIn() + { + return $this->in; + } + public function setLogConfig($logConfig) + { + $this->logConfig = $logConfig; + } + public function getLogConfig() + { + return $this->logConfig; + } + public function setNotIn($notIn) + { + $this->notIn = $notIn; + } + public function getNotIn() + { + return $this->notIn; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Iam_ServiceAccount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $email; + public $etag; + public $name; + public $oauth2ClientId; + public $projectId; + public $uniqueId; + + + 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 setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOauth2ClientId($oauth2ClientId) + { + $this->oauth2ClientId = $oauth2ClientId; + } + public function getOauth2ClientId() + { + return $this->oauth2ClientId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setUniqueId($uniqueId) + { + $this->uniqueId = $uniqueId; + } + public function getUniqueId() + { + return $this->uniqueId; + } +} + +class Google_Service_Iam_ServiceAccountKey extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $privateKeyData; + public $privateKeyType; + public $validAfterTime; + public $validBeforeTime; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPrivateKeyData($privateKeyData) + { + $this->privateKeyData = $privateKeyData; + } + public function getPrivateKeyData() + { + return $this->privateKeyData; + } + public function setPrivateKeyType($privateKeyType) + { + $this->privateKeyType = $privateKeyType; + } + public function getPrivateKeyType() + { + return $this->privateKeyType; + } + public function setValidAfterTime($validAfterTime) + { + $this->validAfterTime = $validAfterTime; + } + public function getValidAfterTime() + { + return $this->validAfterTime; + } + public function setValidBeforeTime($validBeforeTime) + { + $this->validBeforeTime = $validBeforeTime; + } + public function getValidBeforeTime() + { + return $this->validBeforeTime; + } +} + +class Google_Service_Iam_SetIamPolicyRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $policyType = 'Google_Service_Iam_Policy'; + protected $policyDataType = ''; + + + public function setPolicy(Google_Service_Iam_Policy $policy) + { + $this->policy = $policy; + } + public function getPolicy() + { + return $this->policy; + } +} + +class Google_Service_Iam_SignBlobRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bytesToSign; + + + public function setBytesToSign($bytesToSign) + { + $this->bytesToSign = $bytesToSign; + } + public function getBytesToSign() + { + return $this->bytesToSign; + } +} + +class Google_Service_Iam_SignBlobResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $keyId; + public $signature; + + + public function setKeyId($keyId) + { + $this->keyId = $keyId; + } + public function getKeyId() + { + return $this->keyId; + } + public function setSignature($signature) + { + $this->signature = $signature; + } + public function getSignature() + { + return $this->signature; + } +} + +class Google_Service_Iam_TestIamPermissionsRequest extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} + +class Google_Service_Iam_TestIamPermissionsResponse extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $permissions; + + + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index 3d1d5da55..d492dca61 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -1,6 +1,6 @@ 'getOobConfirmationCode', 'httpMethod' => 'POST', 'parameters' => array(), + ),'getProjectConfig' => array( + 'path' => 'getProjectConfig', + 'httpMethod' => 'GET', + 'parameters' => array(), ),'getPublicKeys' => array( 'path' => 'publicKeys', 'httpMethod' => 'GET', @@ -90,6 +94,10 @@ public function __construct(Google_Client $client) 'path' => 'setAccountInfo', 'httpMethod' => 'POST', 'parameters' => array(), + ),'signOutUser' => array( + 'path' => 'signOutUser', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'uploadAccount' => array( 'path' => 'uploadAccount', 'httpMethod' => 'POST', @@ -98,6 +106,10 @@ public function __construct(Google_Client $client) 'path' => 'verifyAssertion', 'httpMethod' => 'POST', 'parameters' => array(), + ),'verifyCustomToken' => array( + 'path' => 'verifyCustomToken', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'verifyPassword' => array( 'path' => 'verifyPassword', 'httpMethod' => 'POST', @@ -193,6 +205,19 @@ public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingpar return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse"); } + /** + * Get project configuration. (relyingparty.getProjectConfig) + * + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse + */ + public function getProjectConfig($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse"); + } + /** * Get token signing public key. (relyingparty.getPublicKeys) * @@ -247,6 +272,20 @@ public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRel return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); } + /** + * Sign out user. (relyingparty.signOutUser) + * + * @param Google_IdentitytoolkitRelyingpartySignOutUserRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse + */ + public function signOutUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('signOutUser', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse"); + } + /** * Batch upload existing user accounts. (relyingparty.uploadAccount) * @@ -275,6 +314,20 @@ public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRe return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse"); } + /** + * Verifies the developer asserted ID token. (relyingparty.verifyCustomToken) + * + * @param Google_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_VerifyCustomTokenResponse + */ + public function verifyCustomToken(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('verifyCustomToken', array($params), "Google_Service_IdentityToolkit_VerifyCustomTokenResponse"); + } + /** * Verifies the user entered password. (relyingparty.verifyPassword) * @@ -293,18 +346,29 @@ public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRel -class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model +class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Collection { + protected $collection_key = 'allProviders'; protected $internal_gapi_mappings = array( ); + public $allProviders; public $authUri; public $captchaRequired; public $forExistingProvider; public $kind; public $providerId; public $registered; + public $sessionId; + public function setAllProviders($allProviders) + { + $this->allProviders = $allProviders; + } + public function getAllProviders() + { + return $this->allProviders; + } public function setAuthUri($authUri) { $this->authUri = $authUri; @@ -353,6 +417,14 @@ public function getRegistered() { return $this->registered; } + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + public function getSessionId() + { + return $this->sessionId; + } } class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model @@ -441,10 +513,19 @@ class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Goog { protected $internal_gapi_mappings = array( ); + public $email; public $kind; public $oobCode; + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } public function setKind($kind) { $this->kind = $kind; @@ -600,9 +681,18 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountReq { protected $internal_gapi_mappings = array( ); + public $delegatedProjectNumber; public $localId; + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setLocalId($localId) { $this->localId = $localId; @@ -617,10 +707,19 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountR { protected $internal_gapi_mappings = array( ); + public $delegatedProjectNumber; public $maxResults; public $nextPageToken; + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setMaxResults($maxResults) { $this->maxResults = $maxResults; @@ -675,8 +774,50 @@ public function getLocalId() } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse extends Google_Collection { + protected $collection_key = 'idpConfig'; + protected $internal_gapi_mappings = array( + ); + public $allowPasswordUser; + public $apiKey; + protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig'; + protected $idpConfigDataType = 'array'; + public $projectId; + + + public function setAllowPasswordUser($allowPasswordUser) + { + $this->allowPasswordUser = $allowPasswordUser; + } + public function getAllowPasswordUser() + { + return $this->allowPasswordUser; + } + public function setApiKey($apiKey) + { + $this->apiKey = $apiKey; + } + public function getApiKey() + { + return $this->apiKey; + } + public function setIdpConfig($idpConfig) + { + $this->idpConfig = $idpConfig; + } + public function getIdpConfig() + { + return $this->idpConfig; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model @@ -730,14 +871,17 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe ); public $captchaChallenge; public $captchaResponse; + public $delegatedProjectNumber; public $disableUser; public $displayName; public $email; public $emailVerified; public $idToken; + public $instanceId; public $localId; public $oobCode; public $password; + public $photoUrl; public $provider; public $upgradeToFederatedLogin; public $validSince; @@ -759,6 +903,14 @@ public function getCaptchaResponse() { return $this->captchaResponse; } + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setDisableUser($disableUser) { $this->disableUser = $disableUser; @@ -799,6 +951,14 @@ public function getIdToken() { return $this->idToken; } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } public function setLocalId($localId) { $this->localId = $localId; @@ -823,6 +983,14 @@ public function getPassword() { return $this->password; } + public function setPhotoUrl($photoUrl) + { + $this->photoUrl = $photoUrl; + } + public function getPhotoUrl() + { + return $this->photoUrl; + } public function setProvider($provider) { $this->provider = $provider; @@ -849,11 +1017,55 @@ public function getValidSince() } } +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceId; + public $localId; + + + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setLocalId($localId) + { + $this->localId = $localId; + } + public function getLocalId() + { + return $this->localId; + } +} + +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $localId; + + + public function setLocalId($localId) + { + $this->localId = $localId; + } + public function getLocalId() + { + return $this->localId; + } +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection { protected $collection_key = 'users'; protected $internal_gapi_mappings = array( ); + public $delegatedProjectNumber; public $hashAlgorithm; public $memoryCost; public $rounds; @@ -863,6 +1075,14 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountReq protected $usersDataType = 'array'; + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setHashAlgorithm($hashAlgorithm) { $this->hashAlgorithm = $hashAlgorithm; @@ -917,12 +1137,31 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR { protected $internal_gapi_mappings = array( ); + public $delegatedProjectNumber; + public $instanceId; public $pendingIdToken; public $postBody; public $requestUri; public $returnRefreshToken; + public $sessionId; + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } public function setPendingIdToken($pendingIdToken) { $this->pendingIdToken = $pendingIdToken; @@ -955,6 +1194,40 @@ public function getReturnRefreshToken() { return $this->returnRefreshToken; } + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + public function getSessionId() + { + return $this->sessionId; + } +} + +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceId; + public $token; + + + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model @@ -963,7 +1236,9 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRe ); public $captchaChallenge; public $captchaResponse; + public $delegatedProjectNumber; public $email; + public $instanceId; public $password; public $pendingIdToken; @@ -984,6 +1259,14 @@ public function getCaptchaResponse() { return $this->captchaResponse; } + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setEmail($email) { $this->email = $email; @@ -992,6 +1275,14 @@ public function getEmail() { return $this->email; } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } public function setPassword($password) { $this->password = $password; @@ -1010,6 +1301,50 @@ public function getPendingIdToken() } } +class Google_Service_IdentityToolkit_IdpConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clientId; + public $enabled; + public $experimentPercent; + public $provider; + + + public function setClientId($clientId) + { + $this->clientId = $clientId; + } + public function getClientId() + { + return $this->clientId; + } + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setExperimentPercent($experimentPercent) + { + $this->experimentPercent = $experimentPercent; + } + public function getExperimentPercent() + { + return $this->experimentPercent; + } + public function setProvider($provider) + { + $this->provider = $provider; + } + public function getProvider() + { + return $this->provider; + } +} + class Google_Service_IdentityToolkit_Relyingparty extends Google_Model { protected $internal_gapi_mappings = array( @@ -1126,6 +1461,7 @@ class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Colle public $idToken; public $kind; public $newEmail; + public $photoUrl; protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; protected $providerUserInfoDataType = 'array'; @@ -1170,6 +1506,14 @@ public function getNewEmail() { return $this->newEmail; } + public function setPhotoUrl($photoUrl) + { + $this->photoUrl = $photoUrl; + } + public function getPhotoUrl() + { + return $this->photoUrl; + } public function setProviderUserInfo($providerUserInfo) { $this->providerUserInfo = $providerUserInfo; @@ -1392,6 +1736,7 @@ class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Mod protected $internal_gapi_mappings = array( ); public $displayName; + public $email; public $federatedId; public $photoUrl; public $providerId; @@ -1405,6 +1750,14 @@ public function getDisplayName() { return $this->displayName; } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } public function setFederatedId($federatedId) { $this->federatedId = $federatedId; @@ -1719,6 +2072,32 @@ public function getVerifiedProvider() } } +class Google_Service_IdentityToolkit_VerifyCustomTokenResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $idToken; + public $kind; + + + public function setIdToken($idToken) + { + $this->idToken = $idToken; + } + public function getIdToken() + { + return $this->idToken; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Kgsearch.php b/src/Google/Service/Kgsearch.php new file mode 100644 index 000000000..0fa239a5f --- /dev/null +++ b/src/Google/Service/Kgsearch.php @@ -0,0 +1,178 @@ + + * Knowledge Graph Search API allows developers to search the Google Knowledge + * Graph for entities.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_Kgsearch extends Google_Service +{ + + + public $entities; + + + /** + * Constructs the internal representation of the Kgsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://kgsearch.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'kgsearch'; + + $this->entities = new Google_Service_Kgsearch_Entities_Resource( + $this, + $this->serviceName, + 'entities', + array( + 'methods' => array( + 'search' => array( + 'path' => 'v1/entities:search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'languages' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'types' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'indent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'prefix' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "entities" collection of methods. + * Typical usage is: + * + * $kgsearchService = new Google_Service_Kgsearch(...); + * $entities = $kgsearchService->entities; + * + */ +class Google_Service_Kgsearch_Entities_Resource extends Google_Service_Resource +{ + + /** + * Searches Knowledge Graph for entities that match the constraints. A list of + * matched entities will be returned in response, which will be in JSON-LD + * format and compatible with http://schema.org (entities.search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string query The literal query string for search. + * @opt_param string ids The list of entity id to be used for search instead of + * query string. + * @opt_param string languages The list of language codes (defined in ISO 693) + * to run the query with, e.g. 'en'. + * @opt_param string types Restricts returned entities with these types, e.g. + * Person (as defined in http://schema.org/Person). + * @opt_param bool indent Enables indenting of json results. + * @opt_param bool prefix Enables prefix match against names and aliases of + * entities + * @opt_param int limit Limits the number of entities to be returned. + * @return Google_Service_Kgsearch_SearchResponse + */ + public function search($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Kgsearch_SearchResponse"); + } +} + + + + +class Google_Service_Kgsearch_SearchResponse extends Google_Collection +{ + protected $collection_key = 'itemListElement'; + protected $internal_gapi_mappings = array( + ); + public $context; + public $itemListElement; + public $type; + + + public function setContext($context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setItemListElement($itemListElement) + { + $this->itemListElement = $itemListElement; + } + public function getItemListElement() + { + return $this->itemListElement; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php index 5aa111b4b..9afcb5bc8 100644 --- a/src/Google/Service/Licensing.php +++ b/src/Google/Service/Licensing.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listForProductAndSku' => array( 'path' => '{productId}/sku/{skuId}/users', @@ -153,14 +153,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{productId}/sku/{skuId}/user/{userId}', @@ -278,10 +278,10 @@ public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssig * licenseassignments are queried * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token to fetch the next page.Optional. By default - * server will return first page * @opt_param string maxResults Maximum number of campaigns to return at one * time. Must be positive. Optional. Default value is 100. + * @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()) @@ -301,10 +301,10 @@ public function listForProduct($productId, $customerId, $optParams = array()) * licenseassignments are queried * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token to fetch the next page.Optional. By default - * server will return first page * @opt_param string maxResults Maximum number of campaigns to return at one * time. Must be positive. Optional. Default value is 100. + * @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()) diff --git a/src/Google/Service/Logging.php b/src/Google/Service/Logging.php index 598e00bc2..84bbcd451 100644 --- a/src/Google/Service/Logging.php +++ b/src/Google/Service/Logging.php @@ -1,6 +1,6 @@ - * Google Cloud Logging API lets you create logs, ingest log entries, and manage - * log sinks.

    + * The Google Cloud Logging API lets you write log entries and manage your logs, + * log sinks and logs-based metrics.

    * *

    * For more information about this service, see the API @@ -31,9 +31,27 @@ */ class Google_Service_Logging extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; + /** Administrate log data for your projects. */ + const LOGGING_ADMIN = + "https://www.googleapis.com/auth/logging.admin"; + /** View log data for your projects. */ + const LOGGING_READ = + "https://www.googleapis.com/auth/logging.read"; + /** Submit log data for your projects. */ + const LOGGING_WRITE = + "https://www.googleapis.com/auth/logging.write"; - - + public $entries; + public $monitoredResourceDescriptors; + public $projects_logs; + public $projects_metrics; + public $projects_sinks; /** @@ -49,13 +67,991 @@ public function __construct(Google_Client $client) $this->version = 'v2beta1'; $this->serviceName = 'logging'; + $this->entries = new Google_Service_Logging_Entries_Resource( + $this, + $this->serviceName, + 'entries', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2beta1/entries:list', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'write' => array( + 'path' => 'v2beta1/entries:write', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->monitoredResourceDescriptors = new Google_Service_Logging_MonitoredResourceDescriptors_Resource( + $this, + $this->serviceName, + 'monitoredResourceDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2beta1/monitoredResourceDescriptors', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( + $this, + $this->serviceName, + 'logs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v2beta1/{+logName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'logName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( + $this, + $this->serviceName, + 'metrics', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2beta1/{+projectName}/metrics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2beta1/{+metricName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'metricName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2beta1/{+metricName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'metricName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2beta1/{+projectName}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'update' => array( + 'path' => 'v2beta1/{+metricName}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'metricName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_sinks = new Google_Service_Logging_ProjectsSinks_Resource( + $this, + $this->serviceName, + 'sinks', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2beta1/{+projectName}/sinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2beta1/{+sinkName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'sinkName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2beta1/{+sinkName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'sinkName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2beta1/{+projectName}/sinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'update' => array( + 'path' => 'v2beta1/{+sinkName}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'sinkName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "entries" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $entries = $loggingService->entries; + * + */ +class Google_Service_Logging_Entries_Resource extends Google_Service_Resource +{ + + /** + * Lists log entries. Use this method to retrieve log entries from Cloud + * Logging. For ways to export log entries, see [Exporting + * Logs](/logging/docs/export). (entries.listEntries) + * + * @param Google_ListLogEntriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_ListLogEntriesResponse + */ + public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); + } + + /** + * Writes log entries to Cloud Logging. All log entries in Cloud Logging are + * written by this method. (entries.write) + * + * @param Google_WriteLogEntriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_WriteLogEntriesResponse + */ + public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); + } +} + +/** + * The "monitoredResourceDescriptors" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $monitoredResourceDescriptors = $loggingService->monitoredResourceDescriptors; + * + */ +class Google_Service_Logging_MonitoredResourceDescriptors_Resource extends Google_Service_Resource +{ + + /** + * Lists monitored resource descriptors that are used by Cloud Logging. + * (monitoredResourceDescriptors.listMonitoredResourceDescriptors) + * + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Fewer results might be returned. You must check for the + * `nextPageToken` result to determine if additional results are available, + * which you can retrieve by passing the `nextPageToken` value in the + * `pageToken` parameter to the next request. + * @opt_param string pageToken Optional. If the `pageToken` request parameter is + * supplied, then the next page of results in the set are retrieved. The + * `pageToken` parameter must be set with the value of the `nextPageToken` + * result parameter from the previous request. + * @return Google_Service_Logging_ListMonitoredResourceDescriptorsResponse + */ + public function listMonitoredResourceDescriptors($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListMonitoredResourceDescriptorsResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $projects = $loggingService->projects; + * + */ +class Google_Service_Logging_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "logs" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $logs = $loggingService->logs; + * + */ +class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource +{ + + /** + * Deletes a log and all its log entries. The log will reappear if it receives + * new entries. (logs.delete) + * + * @param string $logName Required. The resource name of the log to delete. + * Example: `"projects/my-project/logs/syslog"`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($logName, $optParams = array()) + { + $params = array('logName' => $logName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } +} +/** + * The "metrics" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $metrics = $loggingService->metrics; + * + */ +class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource +{ + + /** + * Creates a logs-based metric. (metrics.create) + * + * @param string $projectName The resource name of the project in which to + * create the metric. Example: `"projects/my-project-id"`. The new metric must + * be provided in the request. + * @param Google_LogMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function create($projectName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Logging_LogMetric"); + } + + /** + * Deletes a logs-based metric. (metrics.delete) + * + * @param string $metricName The resource name of the metric to delete. Example: + * `"projects/my-project-id/metrics/my-metric-id"`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($metricName, $optParams = array()) + { + $params = array('metricName' => $metricName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Gets a logs-based metric. (metrics.get) + * + * @param string $metricName The resource name of the desired metric. Example: + * `"projects/my-project-id/metrics/my-metric-id"`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function get($metricName, $optParams = array()) + { + $params = array('metricName' => $metricName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogMetric"); + } + + /** + * Lists logs-based metrics. (metrics.listProjectsMetrics) + * + * @param string $projectName Required. The resource name of the project + * containing the metrics. Example: `"projects/my-project-id"`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. If the `pageToken` request parameter is + * supplied, then the next page of results in the set are retrieved. The + * `pageToken` parameter must be set with the value of the `nextPageToken` + * result parameter from the previous request. The value of `projectName` must + * be the same as in the previous request. + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Fewer results might be returned. You must check for the + * `nextPageToken` result to determine if additional results are available, + * which you can retrieve by passing the `nextPageToken` value in the + * `pageToken` parameter to the next request. + * @return Google_Service_Logging_ListLogMetricsResponse + */ + public function listProjectsMetrics($projectName, $optParams = array()) + { + $params = array('projectName' => $projectName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse"); + } + + /** + * Creates or updates a logs-based metric. (metrics.update) + * + * @param string $metricName The resource name of the metric to update. Example: + * `"projects/my-project-id/metrics/my-metric-id"`. The updated metric must be + * provided in the request and have the same identifier that is specified in + * `metricName`. If the metric does not exist, it is created. + * @param Google_LogMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogMetric + */ + public function update($metricName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) + { + $params = array('metricName' => $metricName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Logging_LogMetric"); + } +} +/** + * The "sinks" collection of methods. + * Typical usage is: + * + * $loggingService = new Google_Service_Logging(...); + * $sinks = $loggingService->sinks; + * + */ +class Google_Service_Logging_ProjectsSinks_Resource extends Google_Service_Resource +{ + + /** + * Creates a sink. (sinks.create) + * + * @param string $projectName The resource name of the project in which to + * create the sink. Example: `"projects/my-project-id"`. The new sink must be + * provided in the request. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function create($projectName, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * Deletes a sink. (sinks.delete) + * + * @param string $sinkName The resource name of the sink to delete. Example: + * `"projects/my-project-id/sinks/my-sink-id"`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_Empty + */ + public function delete($sinkName, $optParams = array()) + { + $params = array('sinkName' => $sinkName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * Gets a sink. (sinks.get) + * + * @param string $sinkName The resource name of the sink to return. Example: + * `"projects/my-project-id/sinks/my-sink-id"`. + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function get($sinkName, $optParams = array()) + { + $params = array('sinkName' => $sinkName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * Lists sinks. (sinks.listProjectsSinks) + * + * @param string $projectName Required. The resource name of the project + * containing the sinks. Example: `"projects/my-logging-project"`, + * `"projects/01234567890"`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. If the `pageToken` request parameter is + * supplied, then the next page of results in the set are retrieved. The + * `pageToken` parameter must be set with the value of the `nextPageToken` + * result parameter from the previous request. The value of `projectName` must + * be the same as in the previous request. + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Fewer results might be returned. You must check for the + * `nextPageToken` result to determine if additional results are available, + * which you can retrieve by passing the `nextPageToken` value in the + * `pageToken` parameter to the next request. + * @return Google_Service_Logging_ListSinksResponse + */ + public function listProjectsSinks($projectName, $optParams = array()) + { + $params = array('projectName' => $projectName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse"); + } + + /** + * Creates or updates a sink. (sinks.update) + * + * @param string $sinkName The resource name of the sink to update. Example: + * `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be + * provided in the request and have the same name that is specified in + * `sinkName`. If the sink does not exist, it is created. + * @param Google_LogSink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Logging_LogSink + */ + public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) + { + $params = array('sinkName' => $sinkName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Logging_LogSink"); + } +} + + + + +class Google_Service_Logging_Empty extends Google_Model +{ +} + +class Google_Service_Logging_HttpRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cacheHit; + public $referer; + public $remoteIp; + public $requestMethod; + public $requestSize; + public $requestUrl; + public $responseSize; + public $status; + public $userAgent; + public $validatedWithOriginServer; + + + public function setCacheHit($cacheHit) + { + $this->cacheHit = $cacheHit; + } + public function getCacheHit() + { + return $this->cacheHit; + } + public function setReferer($referer) + { + $this->referer = $referer; + } + public function getReferer() + { + return $this->referer; + } + public function setRemoteIp($remoteIp) + { + $this->remoteIp = $remoteIp; + } + public function getRemoteIp() + { + return $this->remoteIp; + } + public function setRequestMethod($requestMethod) + { + $this->requestMethod = $requestMethod; + } + public function getRequestMethod() + { + return $this->requestMethod; + } + public function setRequestSize($requestSize) + { + $this->requestSize = $requestSize; + } + public function getRequestSize() + { + return $this->requestSize; + } + public function setRequestUrl($requestUrl) + { + $this->requestUrl = $requestUrl; + } + public function getRequestUrl() + { + return $this->requestUrl; + } + public function setResponseSize($responseSize) + { + $this->responseSize = $responseSize; + } + public function getResponseSize() + { + return $this->responseSize; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } + public function setValidatedWithOriginServer($validatedWithOriginServer) + { + $this->validatedWithOriginServer = $validatedWithOriginServer; + } + public function getValidatedWithOriginServer() + { + return $this->validatedWithOriginServer; + } +} + +class Google_Service_Logging_LabelDescriptor extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $key; + public $valueType; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValueType($valueType) + { + $this->valueType = $valueType; + } + public function getValueType() + { + return $this->valueType; } } +class Google_Service_Logging_ListLogEntriesRequest extends Google_Collection +{ + protected $collection_key = 'projectIds'; + protected $internal_gapi_mappings = array( + ); + public $filter; + public $orderBy; + public $pageSize; + public $pageToken; + public $projectIds; + + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + public function getOrderBy() + { + return $this->orderBy; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setProjectIds($projectIds) + { + $this->projectIds = $projectIds; + } + public function getProjectIds() + { + return $this->projectIds; + } +} +class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_Logging_LogEntry'; + protected $entriesDataType = 'array'; + public $nextPageToken; + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + protected $metricsType = 'Google_Service_Logging_LogMetric'; + protected $metricsDataType = 'array'; + public $nextPageToken; + + + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListMonitoredResourceDescriptorsResponse extends Google_Collection +{ + protected $collection_key = 'resourceDescriptors'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $resourceDescriptorsType = 'Google_Service_Logging_MonitoredResourceDescriptor'; + protected $resourceDescriptorsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResourceDescriptors($resourceDescriptors) + { + $this->resourceDescriptors = $resourceDescriptors; + } + public function getResourceDescriptors() + { + return $this->resourceDescriptors; + } +} + +class Google_Service_Logging_ListSinksResponse extends Google_Collection +{ + protected $collection_key = 'sinks'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $sinksType = 'Google_Service_Logging_LogSink'; + protected $sinksDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSinks($sinks) + { + $this->sinks = $sinks; + } + public function getSinks() + { + return $this->sinks; + } +} + +class Google_Service_Logging_LogEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $httpRequestType = 'Google_Service_Logging_HttpRequest'; + protected $httpRequestDataType = ''; + public $insertId; + public $jsonPayload; + public $labels; + public $logName; + protected $operationType = 'Google_Service_Logging_LogEntryOperation'; + protected $operationDataType = ''; + public $protoPayload; + protected $resourceType = 'Google_Service_Logging_MonitoredResource'; + protected $resourceDataType = ''; + public $severity; + public $textPayload; + public $timestamp; + + + public function setHttpRequest(Google_Service_Logging_HttpRequest $httpRequest) + { + $this->httpRequest = $httpRequest; + } + public function getHttpRequest() + { + return $this->httpRequest; + } + public function setInsertId($insertId) + { + $this->insertId = $insertId; + } + public function getInsertId() + { + return $this->insertId; + } + public function setJsonPayload($jsonPayload) + { + $this->jsonPayload = $jsonPayload; + } + public function getJsonPayload() + { + return $this->jsonPayload; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLogName($logName) + { + $this->logName = $logName; + } + public function getLogName() + { + return $this->logName; + } + public function setOperation(Google_Service_Logging_LogEntryOperation $operation) + { + $this->operation = $operation; + } + public function getOperation() + { + return $this->operation; + } + public function setProtoPayload($protoPayload) + { + $this->protoPayload = $protoPayload; + } + public function getProtoPayload() + { + return $this->protoPayload; + } + public function setResource(Google_Service_Logging_MonitoredResource $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setTextPayload($textPayload) + { + $this->textPayload = $textPayload; + } + public function getTextPayload() + { + return $this->textPayload; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } +} + +class Google_Service_Logging_LogEntryOperation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $first; + public $id; + public $last; + public $producer; + + + public function setFirst($first) + { + $this->first = $first; + } + public function getFirst() + { + return $this->first; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLast($last) + { + $this->last = $last; + } + public function getLast() + { + return $this->last; + } + public function setProducer($producer) + { + $this->producer = $producer; + } + public function getProducer() + { + return $this->producer; + } +} + class Google_Service_Logging_LogLine extends Google_Model { protected $internal_gapi_mappings = array( @@ -101,6 +1097,157 @@ public function getTime() } } +class Google_Service_Logging_LogMetric extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $filter; + public $name; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Logging_LogSink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destination; + public $filter; + public $name; + public $outputVersionFormat; + + + public function setDestination($destination) + { + $this->destination = $destination; + } + public function getDestination() + { + return $this->destination; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputVersionFormat($outputVersionFormat) + { + $this->outputVersionFormat = $outputVersionFormat; + } + public function getOutputVersionFormat() + { + return $this->outputVersionFormat; + } +} + +class Google_Service_Logging_MonitoredResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $labels; + public $type; + + + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Logging_MonitoredResourceDescriptor extends Google_Collection +{ + protected $collection_key = 'labels'; + protected $internal_gapi_mappings = array( + ); + public $description; + public $displayName; + protected $labelsType = 'Google_Service_Logging_LabelDescriptor'; + protected $labelsDataType = 'array'; + public $type; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + class Google_Service_Logging_RequestLog extends Google_Collection { protected $collection_key = 'sourceReference'; @@ -451,3 +1598,54 @@ public function getRevisionId() return $this->revisionId; } } + +class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_Logging_LogEntry'; + protected $entriesDataType = 'array'; + public $labels; + public $logName; + protected $resourceType = 'Google_Service_Logging_MonitoredResource'; + protected $resourceDataType = ''; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLogName($logName) + { + $this->logName = $logName; + } + public function getLogName() + { + return $this->logName; + } + public function setResource(Google_Service_Logging_MonitoredResource $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model +{ +} diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php index a2064002e..71cff080a 100644 --- a/src/Google/Service/Manager.php +++ b/src/Google/Service/Manager.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -213,14 +213,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -295,11 +295,11 @@ public function insert($projectId, $region, Google_Service_Manager_Deployment $p * @param string $region * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) * @opt_param string pageToken Specifies a nextPageToken returned by a previous * list request. This token can be used to request the next page of results from * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Manager_DeploymentsListResponse */ public function listDeployments($projectId, $region, $optParams = array()) @@ -371,11 +371,11 @@ public function insert($projectId, Google_Service_Manager_Template $postBody, $o * @param string $projectId * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) * @opt_param string pageToken Specifies a nextPageToken returned by a previous * list request. This token can be used to request the next page of results from * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) * @return Google_Service_Manager_TemplatesListResponse */ public function listTemplates($projectId, $optParams = array()) @@ -668,10 +668,6 @@ public function getTemplateName() } } -class Google_Service_Manager_DeploymentModules extends Google_Model -{ -} - class Google_Service_Manager_DeploymentsListResponse extends Google_Collection { protected $collection_key = 'resources'; @@ -1535,10 +1531,6 @@ public function getResourceView() } } -class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model -{ -} - class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model { protected $internal_gapi_mappings = array( @@ -1824,14 +1816,6 @@ public function getName() } } -class Google_Service_Manager_TemplateActions extends Google_Model -{ -} - -class Google_Service_Manager_TemplateModules extends Google_Model -{ -} - class Google_Service_Manager_TemplatesListResponse extends Google_Collection { protected $collection_key = 'resources'; diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php index cd1268395..fbc52926c 100644 --- a/src/Google/Service/Mirror.php +++ b/src/Google/Service/Mirror.php @@ -1,6 +1,6 @@ 'timeline', 'httpMethod' => 'GET', 'parameters' => array( - 'orderBy' => array( + 'bundleId' => array( 'location' => 'query', 'type' => 'string', ), @@ -275,11 +275,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'sourceItemId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -287,7 +287,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), - 'bundleId' => array( + 'sourceItemId' => array( 'location' => 'query', 'type' => 'string', ), @@ -705,18 +705,18 @@ public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams * * @param array $optParams Optional parameters. * - * @opt_param string orderBy Controls the order in which timeline items are - * returned. + * @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. - * @opt_param bool pinnedOnly If true, only pinned items will be returned. - * @opt_param string bundleId If provided, only items with the given bundleId - * will be returned. * @return Google_Service_Mirror_TimelineListResponse */ public function listTimeline($optParams = array()) diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php index f69c353f7..4715f2b1e 100644 --- a/src/Google/Service/Oauth2.php +++ b/src/Google/Service/Oauth2.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'screenshot' => array( + 'filter_third_party_resources' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -77,13 +77,13 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'strategy' => array( + 'screenshot' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'filter_third_party_resources' => array( + 'strategy' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), ), ), @@ -113,14 +113,14 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic * @param string $url The URL to fetch and analyze * @param array $optParams Optional parameters. * - * @opt_param bool screenshot Indicates if binary data containing a screenshot - * should be included + * @opt_param bool filter_third_party_resources Indicates if third party + * resources should be filtered out before PageSpeed analysis. * @opt_param string locale The locale used to localize formatted results * @opt_param string rule A PageSpeed 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 - * @opt_param bool filter_third_party_resources Indicates if third party - * resources should be filtered out before PageSpeed analysis. * @return Google_Service_Pagespeedonline_Result */ public function runpagespeed($url, $optParams = array()) @@ -547,10 +547,6 @@ public function getRuleResults() } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model -{ -} - class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection { protected $collection_key = 'urlBlocks'; @@ -790,10 +786,6 @@ public function getTotalRequestBytes() } } -class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model -{ -} - class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Partners.php b/src/Google/Service/Partners.php index 4fc08fd11..c5743b75f 100644 --- a/src/Google/Service/Partners.php +++ b/src/Google/Service/Partners.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'orderBy' => array( + 'requestMetadata.userOverrides.ipAddress' => array( 'location' => 'query', 'type' => 'string', ), @@ -90,7 +90,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.userOverrides.ipAddress' => array( + 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', ), @@ -98,32 +98,32 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.trafficSource.trafficSubId' => array( + 'requestMetadata.experimentIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'requestMetadata.locale' => array( + 'requestMetadata.trafficSource.trafficSourceId' => array( 'location' => 'query', 'type' => 'string', ), - 'address' => array( + 'requestMetadata.trafficSource.trafficSubId' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.experimentIds' => array( + 'view' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'currencyCode' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.trafficSource.trafficSourceId' => array( + 'currencyCode' => array( 'location' => 'query', 'type' => 'string', ), - 'view' => array( + 'address' => array( 'location' => 'query', 'type' => 'string', ), @@ -132,104 +132,104 @@ public function __construct(Google_Client $client) 'path' => 'v2/companies', 'httpMethod' => 'GET', 'parameters' => array( - 'orderBy' => array( + 'requestMetadata.userOverrides.ipAddress' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'requestMetadata.partnersSessionId' => array( + 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', ), - 'maxMonthlyBudget.currencyCode' => array( + 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', ), - 'maxMonthlyBudget.nanos' => array( + 'requestMetadata.partnersSessionId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'languageCodes' => array( + 'requestMetadata.experimentIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'minMonthlyBudget.nanos' => array( + 'requestMetadata.trafficSource.trafficSourceId' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'requestMetadata.trafficSource.trafficSubId' => array( 'location' => 'query', 'type' => 'string', ), - 'industries' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), - 'minMonthlyBudget.currencyCode' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'minMonthlyBudget.units' => array( + 'companyName' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'view' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.locale' => array( + 'minMonthlyBudget.currencyCode' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.trafficSource.trafficSourceId' => array( + 'minMonthlyBudget.units' => array( 'location' => 'query', 'type' => 'string', ), - 'companyName' => array( + 'minMonthlyBudget.nanos' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'address' => array( + 'maxMonthlyBudget.currencyCode' => array( 'location' => 'query', 'type' => 'string', ), - 'services' => array( + 'maxMonthlyBudget.units' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'requestMetadata.experimentIds' => array( + 'maxMonthlyBudget.nanos' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'industries' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'gpsMotivations' => array( + 'services' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'requestMetadata.userOverrides.ipAddress' => array( + 'languageCodes' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'websiteUrl' => array( + 'address' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.userOverrides.userId' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'view' => array( + 'gpsMotivations' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'maxMonthlyBudget.units' => array( + 'websiteUrl' => array( 'location' => 'query', 'type' => 'string', ), @@ -282,23 +282,19 @@ public function __construct(Google_Client $client) 'path' => 'v2/userStates', 'httpMethod' => 'GET', 'parameters' => array( - 'requestMetadata.userOverrides.userId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.userOverrides.ipAddress' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.partnersSessionId' => array( + 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.trafficSource.trafficSubId' => array( + 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.locale' => array( + 'requestMetadata.partnersSessionId' => array( 'location' => 'query', 'type' => 'string', ), @@ -311,6 +307,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -365,34 +365,34 @@ class Google_Service_Partners_Companies_Resource extends Google_Service_Resource * @param string $companyId The ID of the company to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string orderBy How to order addresses within the returned company. - * Currently, only `address` and `address desc` is supported which will sorted - * by closest to farthest in distance from given address and farthest to closest - * distance from given address respectively. - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use * instead of the user's geo-located IP address. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. * @opt_param string requestMetadata.locale Locale to use for the current * request. - * @opt_param string address The address to use for sorting the company's - * addresses by proximity. If not given, the geo-located address of the request - * is used. Used when order_by is set. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. * @opt_param string requestMetadata.experimentIds Experiment IDs the current * request belongs to. - * @opt_param string currencyCode If the company's budget is in a different - * currency code than this one, then the converted budget is converted to this - * currency code. * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to * indicate where the traffic comes from. An identifier has multiple letters * created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @opt_param string view The view of `Company` resource to be returned. This * must not be `COMPANY_VIEW_UNSPECIFIED`. + * @opt_param string orderBy How to order addresses within the returned company. + * Currently, only `address` and `address desc` is supported which will sorted + * by closest to farthest in distance from given address and farthest to closest + * distance from given address respectively. + * @opt_param string currencyCode If the company's budget is in a different + * currency code than this one, then the converted budget is converted to this + * currency code. + * @opt_param string address The address to use for sorting the company's + * addresses by proximity. If not given, the geo-located address of the request + * is used. Used when order_by is set. * @return Google_Service_Partners_GetCompanyResponse */ public function get($companyId, $optParams = array()) @@ -407,67 +407,67 @@ public function get($companyId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string orderBy How to order addresses within the returned - * companies. Currently, only `address` and `address desc` is supported which - * will sorted by closest to farthest in distance from given address and - * farthest to closest distance from given address respectively. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @opt_param int pageSize Requested page size. Server may return fewer * companies than requested. If unspecified, server picks an appropriate * default. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code + * @opt_param string pageToken A token identifying a page of results that the + * server returns. Typically, this is the value of + * `ListCompaniesResponse.next_page_token` returned from the previous call to + * ListCompanies. + * @opt_param string companyName Company name to search for. + * @opt_param string view The view of the `Company` resource to be returned. + * This must not be `COMPANY_VIEW_UNSPECIFIED`. + * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code * defined in ISO 4217. - * @opt_param int maxMonthlyBudget.nanos Number of nano (10^-9) units of the + * @opt_param string minMonthlyBudget.units The whole units of the amount. For + * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If * `units` is positive, `nanos` must be positive or zero. If `units` is zero, * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` * must be negative or zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. - * @opt_param string languageCodes List of language codes that company can - * support. Only primary language subtags are accepted as defined by BCP 47 - * (IETF BCP 47, "Tags for Identifying Languages"). - * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the + * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code + * defined in ISO 4217. + * @opt_param string maxMonthlyBudget.units The whole units of the amount. For + * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @opt_param int maxMonthlyBudget.nanos Number of nano (10^-9) units of the * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If * `units` is positive, `nanos` must be positive or zero. If `units` is zero, * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` * must be negative or zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. * @opt_param string industries List of industries the company can help with. - * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code - * defined in ISO 4217. - * @opt_param string minMonthlyBudget.units The whole units of the amount. For - * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @opt_param string pageToken A token identifying a page of results that the - * server returns. Typically, this is the value of - * `ListCompaniesResponse.next_page_token` returned from the previous call to - * ListCompanies. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string companyName Company name to search for. + * @opt_param string services List of services the company can help with. + * @opt_param string languageCodes List of language codes that company can + * support. Only primary language subtags are accepted as defined by BCP 47 + * (IETF BCP 47, "Tags for Identifying Languages"). * @opt_param string address The address to use when searching for companies. If * not given, the geo-located address of the request is used. - * @opt_param string services List of services the company can help with. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. + * @opt_param string orderBy How to order addresses within the returned + * companies. Currently, only `address` and `address desc` is supported which + * will sorted by closest to farthest in distance from given address and + * farthest to closest distance from given address respectively. * @opt_param string gpsMotivations List of reasons for using Google Partner * Search to get companies. - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. * @opt_param string websiteUrl Website URL that will help to find a better * matched company. . - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string view The view of the `Company` resource to be returned. - * This must not be `COMPANY_VIEW_UNSPECIFIED`. - * @opt_param string maxMonthlyBudget.units The whole units of the amount. For - * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * @return Google_Service_Partners_ListCompaniesResponse */ public function listCompanies($optParams = array()) @@ -547,22 +547,22 @@ class Google_Service_Partners_UserStates_Resource extends Google_Service_Resourc * * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use * instead of the user's geo-located IP address. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. * @opt_param string requestMetadata.locale Locale to use for the current * request. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. * @opt_param string requestMetadata.experimentIds Experiment IDs the current * request belongs to. * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to * indicate where the traffic comes from. An identifier has multiple letters * created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @return Google_Service_Partners_ListUserStatesResponse */ public function listUserStates($optParams = array()) @@ -1237,10 +1237,6 @@ public function getRequestMetadata() } } -class Google_Service_Partners_LogMessageRequestClientInfo extends Google_Model -{ -} - class Google_Service_Partners_LogMessageResponse extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/People.php b/src/Google/Service/People.php new file mode 100644 index 000000000..1bd22979a --- /dev/null +++ b/src/Google/Service/People.php @@ -0,0 +1,2004 @@ + + * The Google People API service gives access to information about profiles and + * contacts.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_People extends Google_Service +{ + /** Manage your contacts. */ + const CONTACTS = + "https://www.googleapis.com/auth/contacts"; + /** View your contacts. */ + const CONTACTS_READONLY = + "https://www.googleapis.com/auth/contacts.readonly"; + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = + "https://www.googleapis.com/auth/plus.login"; + /** View your street addresses. */ + const USER_ADDRESSES_READ = + "https://www.googleapis.com/auth/user.addresses.read"; + /** View your complete date of birth. */ + const USER_BIRTHDAY_READ = + "https://www.googleapis.com/auth/user.birthday.read"; + /** View your email addresses. */ + const USER_EMAILS_READ = + "https://www.googleapis.com/auth/user.emails.read"; + /** View your phone numbers. */ + const USER_PHONENUMBERS_READ = + "https://www.googleapis.com/auth/user.phonenumbers.read"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + /** View your basic profile info. */ + const USERINFO_PROFILE = + "https://www.googleapis.com/auth/userinfo.profile"; + + public $people; + public $people_connections; + + + /** + * Constructs the internal representation of the People service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://people.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'people'; + + $this->people = new Google_Service_People_People_Resource( + $this, + $this->serviceName, + 'people', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+resourceName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestMask.includeField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getBatchGet' => array( + 'path' => 'v1/people:batchGet', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resourceNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMask.includeField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->people_connections = new Google_Service_People_PeopleConnections_Resource( + $this, + $this->serviceName, + 'connections', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+resourceName}/connections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMask.includeField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "people" collection of methods. + * Typical usage is: + * + * $peopleService = new Google_Service_People(...); + * $people = $peopleService->people; + * + */ +class Google_Service_People_People_Resource extends Google_Service_Resource +{ + + /** + * Provides information about a person resource for a resource name. Use + * `people/me` to indicate the authenticated user. (people.get) + * + * @param string $resourceName The resource name of the person to provide + * information about. - To get information about the authenticated user, specify + * `people/me`. - To get information about any user, specify the resource name + * that identifies the user, such as the resource names returned by + * [`people.connections.list`](/people/api/rest/v1/people.connections/list). + * @param array $optParams Optional parameters. + * + * @opt_param string requestMask.includeField Comma-separated list of fields to + * be included in the response. Omitting this field will include all fields. + * Each path should start with `person.`: for example, `person.names` or + * `person.photos`. + * @return Google_Service_People_Person + */ + public function get($resourceName, $optParams = array()) + { + $params = array('resourceName' => $resourceName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_People_Person"); + } + + /** + * Provides information about a list of specific people by specifying a list of + * requested resource names. Use `people/me` to indicate the authenticated user. + * (people.getBatchGet) + * + * @param array $optParams Optional parameters. + * + * @opt_param string resourceNames The resource name, such as one returned by + * [`people.connections.list`](/people/api/rest/v1/people.connections/list), of + * one of the people to provide information about. You can include this + * parameter up to 50 times in one request. + * @opt_param string requestMask.includeField Comma-separated list of fields to + * be included in the response. Omitting this field will include all fields. + * Each path should start with `person.`: for example, `person.names` or + * `person.photos`. + * @return Google_Service_People_GetPeopleResponse + */ + public function getBatchGet($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getBatchGet', array($params), "Google_Service_People_GetPeopleResponse"); + } +} + +/** + * The "connections" collection of methods. + * Typical usage is: + * + * $peopleService = new Google_Service_People(...); + * $connections = $peopleService->connections; + * + */ +class Google_Service_People_PeopleConnections_Resource extends Google_Service_Resource +{ + + /** + * Provides a list of the authenticated user's contacts merged with any linked + * profiles. (connections.listPeopleConnections) + * + * @param string $resourceName The resource name to return connections for. Only + * `people/me` is valid. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token of the page to be returned. + * @opt_param int pageSize The number of connections to include in the response. + * Valid values are between 1 and 500, inclusive. Defaults to 100. + * @opt_param string sortOrder The order in which the connections should be + * sorted. Defaults to `LAST_MODIFIED_ASCENDING`. + * @opt_param string syncToken A sync token, returned by a previous call to + * `people.connections.list`. Only resources changed since the sync token was + * created are returned. + * @opt_param string requestMask.includeField Comma-separated list of fields to + * be included in the response. Omitting this field will include all fields. + * Each path should start with `person.`: for example, `person.names` or + * `person.photos`. + * @return Google_Service_People_ListConnectionsResponse + */ + public function listPeopleConnections($resourceName, $optParams = array()) + { + $params = array('resourceName' => $resourceName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_People_ListConnectionsResponse"); + } +} + + + + +class Google_Service_People_Address extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $city; + public $country; + public $countryCode; + public $extendedAddress; + public $formattedType; + public $formattedValue; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $poBox; + public $postalCode; + public $region; + public $streetAddress; + public $type; + + + public function setCity($city) + { + $this->city = $city; + } + public function getCity() + { + return $this->city; + } + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setExtendedAddress($extendedAddress) + { + $this->extendedAddress = $extendedAddress; + } + public function getExtendedAddress() + { + return $this->extendedAddress; + } + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setFormattedValue($formattedValue) + { + $this->formattedValue = $formattedValue; + } + public function getFormattedValue() + { + return $this->formattedValue; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setPoBox($poBox) + { + $this->poBox = $poBox; + } + public function getPoBox() + { + return $this->poBox; + } + 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; + } + public function setStreetAddress($streetAddress) + { + $this->streetAddress = $streetAddress; + } + public function getStreetAddress() + { + return $this->streetAddress; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_People_Biography extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Birthday extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dateType = 'Google_Service_People_Date'; + protected $dateDataType = ''; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $text; + + + public function setDate(Google_Service_People_Date $date) + { + $this->date = $date; + } + public function getDate() + { + return $this->date; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} + +class Google_Service_People_BraggingRights extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_ContactGroupMembership extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactGroupId; + + + public function setContactGroupId($contactGroupId) + { + $this->contactGroupId = $contactGroupId; + } + public function getContactGroupId() + { + return $this->contactGroupId; + } +} + +class Google_Service_People_CoverPhoto extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $default; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $url; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_People_Date extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $day; + public $month; + public $year; + + + public function setDay($day) + { + $this->day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} + +class Google_Service_People_DomainMembership extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $inViewerDomain; + + + public function setInViewerDomain($inViewerDomain) + { + $this->inViewerDomain = $inViewerDomain; + } + public function getInViewerDomain() + { + return $this->inViewerDomain; + } +} + +class Google_Service_People_EmailAddress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $type; + public $value; + + + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + 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_People_Event extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dateType = 'Google_Service_People_Date'; + protected $dateDataType = ''; + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $type; + + + public function setDate(Google_Service_People_Date $date) + { + $this->date = $date; + } + public function getDate() + { + return $this->date; + } + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_People_FieldMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $primary; + protected $sourceType = 'Google_Service_People_Source'; + protected $sourceDataType = ''; + public $verified; + + + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setSource(Google_Service_People_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } + public function setVerified($verified) + { + $this->verified = $verified; + } + public function getVerified() + { + return $this->verified; + } +} + +class Google_Service_People_Gender extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedValue; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setFormattedValue($formattedValue) + { + $this->formattedValue = $formattedValue; + } + public function getFormattedValue() + { + return $this->formattedValue; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_GetPeopleResponse extends Google_Collection +{ + protected $collection_key = 'responses'; + protected $internal_gapi_mappings = array( + ); + protected $responsesType = 'Google_Service_People_PersonResponse'; + protected $responsesDataType = 'array'; + + + public function setResponses($responses) + { + $this->responses = $responses; + } + public function getResponses() + { + return $this->responses; + } +} + +class Google_Service_People_ImClient extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedProtocol; + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $protocol; + public $type; + public $username; + + + public function setFormattedProtocol($formattedProtocol) + { + $this->formattedProtocol = $formattedProtocol; + } + public function getFormattedProtocol() + { + return $this->formattedProtocol; + } + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + public function getProtocol() + { + return $this->protocol; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_People_Interest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_ListConnectionsResponse extends Google_Collection +{ + protected $collection_key = 'connections'; + protected $internal_gapi_mappings = array( + ); + protected $connectionsType = 'Google_Service_People_Person'; + protected $connectionsDataType = 'array'; + public $nextPageToken; + public $nextSyncToken; + + + public function setConnections($connections) + { + $this->connections = $connections; + } + public function getConnections() + { + return $this->connections; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setNextSyncToken($nextSyncToken) + { + $this->nextSyncToken = $nextSyncToken; + } + public function getNextSyncToken() + { + return $this->nextSyncToken; + } +} + +class Google_Service_People_Locale extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Membership extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contactGroupMembershipType = 'Google_Service_People_ContactGroupMembership'; + protected $contactGroupMembershipDataType = ''; + protected $domainMembershipType = 'Google_Service_People_DomainMembership'; + protected $domainMembershipDataType = ''; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + + + public function setContactGroupMembership(Google_Service_People_ContactGroupMembership $contactGroupMembership) + { + $this->contactGroupMembership = $contactGroupMembership; + } + public function getContactGroupMembership() + { + return $this->contactGroupMembership; + } + public function setDomainMembership(Google_Service_People_DomainMembership $domainMembership) + { + $this->domainMembership = $domainMembership; + } + public function getDomainMembership() + { + return $this->domainMembership; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } +} + +class Google_Service_People_Name extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $familyName; + public $givenName; + public $honorificPrefix; + public $honorificSuffix; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $middleName; + public $phoneticFamilyName; + public $phoneticGivenName; + public $phoneticHonorificPrefix; + public $phoneticHonorificSuffix; + public $phoneticMiddleName; + + + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + 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; + } + public function setHonorificPrefix($honorificPrefix) + { + $this->honorificPrefix = $honorificPrefix; + } + public function getHonorificPrefix() + { + return $this->honorificPrefix; + } + public function setHonorificSuffix($honorificSuffix) + { + $this->honorificSuffix = $honorificSuffix; + } + public function getHonorificSuffix() + { + return $this->honorificSuffix; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setMiddleName($middleName) + { + $this->middleName = $middleName; + } + public function getMiddleName() + { + return $this->middleName; + } + public function setPhoneticFamilyName($phoneticFamilyName) + { + $this->phoneticFamilyName = $phoneticFamilyName; + } + public function getPhoneticFamilyName() + { + return $this->phoneticFamilyName; + } + public function setPhoneticGivenName($phoneticGivenName) + { + $this->phoneticGivenName = $phoneticGivenName; + } + public function getPhoneticGivenName() + { + return $this->phoneticGivenName; + } + public function setPhoneticHonorificPrefix($phoneticHonorificPrefix) + { + $this->phoneticHonorificPrefix = $phoneticHonorificPrefix; + } + public function getPhoneticHonorificPrefix() + { + return $this->phoneticHonorificPrefix; + } + public function setPhoneticHonorificSuffix($phoneticHonorificSuffix) + { + $this->phoneticHonorificSuffix = $phoneticHonorificSuffix; + } + public function getPhoneticHonorificSuffix() + { + return $this->phoneticHonorificSuffix; + } + public function setPhoneticMiddleName($phoneticMiddleName) + { + $this->phoneticMiddleName = $phoneticMiddleName; + } + public function getPhoneticMiddleName() + { + return $this->phoneticMiddleName; + } +} + +class Google_Service_People_Nickname extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $type; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + 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_People_Occupation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Organization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $current; + public $department; + public $domain; + protected $endDateType = 'Google_Service_People_Date'; + protected $endDateDataType = ''; + public $formattedType; + public $jobDescription; + public $location; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $name; + public $phoneticName; + protected $startDateType = 'Google_Service_People_Date'; + protected $startDateDataType = ''; + public $symbol; + public $title; + public $type; + + + public function setCurrent($current) + { + $this->current = $current; + } + public function getCurrent() + { + return $this->current; + } + public function setDepartment($department) + { + $this->department = $department; + } + public function getDepartment() + { + return $this->department; + } + public function setDomain($domain) + { + $this->domain = $domain; + } + public function getDomain() + { + return $this->domain; + } + public function setEndDate(Google_Service_People_Date $endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setJobDescription($jobDescription) + { + $this->jobDescription = $jobDescription; + } + public function getJobDescription() + { + return $this->jobDescription; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setMetadata(Google_Service_People_FieldMetadata $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 setPhoneticName($phoneticName) + { + $this->phoneticName = $phoneticName; + } + public function getPhoneticName() + { + return $this->phoneticName; + } + public function setStartDate(Google_Service_People_Date $startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSymbol($symbol) + { + $this->symbol = $symbol; + } + public function getSymbol() + { + return $this->symbol; + } + 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_People_Person extends Google_Collection +{ + protected $collection_key = 'urls'; + protected $internal_gapi_mappings = array( + ); + protected $addressesType = 'Google_Service_People_Address'; + protected $addressesDataType = 'array'; + public $ageRange; + protected $biographiesType = 'Google_Service_People_Biography'; + protected $biographiesDataType = 'array'; + protected $birthdaysType = 'Google_Service_People_Birthday'; + protected $birthdaysDataType = 'array'; + protected $braggingRightsType = 'Google_Service_People_BraggingRights'; + protected $braggingRightsDataType = 'array'; + protected $coverPhotosType = 'Google_Service_People_CoverPhoto'; + protected $coverPhotosDataType = 'array'; + protected $emailAddressesType = 'Google_Service_People_EmailAddress'; + protected $emailAddressesDataType = 'array'; + public $etag; + protected $eventsType = 'Google_Service_People_Event'; + protected $eventsDataType = 'array'; + protected $gendersType = 'Google_Service_People_Gender'; + protected $gendersDataType = 'array'; + protected $imClientsType = 'Google_Service_People_ImClient'; + protected $imClientsDataType = 'array'; + protected $interestsType = 'Google_Service_People_Interest'; + protected $interestsDataType = 'array'; + protected $localesType = 'Google_Service_People_Locale'; + protected $localesDataType = 'array'; + protected $membershipsType = 'Google_Service_People_Membership'; + protected $membershipsDataType = 'array'; + protected $metadataType = 'Google_Service_People_PersonMetadata'; + protected $metadataDataType = ''; + protected $namesType = 'Google_Service_People_Name'; + protected $namesDataType = 'array'; + protected $nicknamesType = 'Google_Service_People_Nickname'; + protected $nicknamesDataType = 'array'; + protected $occupationsType = 'Google_Service_People_Occupation'; + protected $occupationsDataType = 'array'; + protected $organizationsType = 'Google_Service_People_Organization'; + protected $organizationsDataType = 'array'; + protected $phoneNumbersType = 'Google_Service_People_PhoneNumber'; + protected $phoneNumbersDataType = 'array'; + protected $photosType = 'Google_Service_People_Photo'; + protected $photosDataType = 'array'; + protected $relationsType = 'Google_Service_People_Relation'; + protected $relationsDataType = 'array'; + protected $relationshipInterestsType = 'Google_Service_People_RelationshipInterest'; + protected $relationshipInterestsDataType = 'array'; + protected $relationshipStatusesType = 'Google_Service_People_RelationshipStatus'; + protected $relationshipStatusesDataType = 'array'; + protected $residencesType = 'Google_Service_People_Residence'; + protected $residencesDataType = 'array'; + public $resourceName; + protected $skillsType = 'Google_Service_People_Skill'; + protected $skillsDataType = 'array'; + protected $taglinesType = 'Google_Service_People_Tagline'; + protected $taglinesDataType = 'array'; + protected $urlsType = 'Google_Service_People_Url'; + protected $urlsDataType = 'array'; + + + public function setAddresses($addresses) + { + $this->addresses = $addresses; + } + public function getAddresses() + { + return $this->addresses; + } + public function setAgeRange($ageRange) + { + $this->ageRange = $ageRange; + } + public function getAgeRange() + { + return $this->ageRange; + } + public function setBiographies($biographies) + { + $this->biographies = $biographies; + } + public function getBiographies() + { + return $this->biographies; + } + public function setBirthdays($birthdays) + { + $this->birthdays = $birthdays; + } + public function getBirthdays() + { + return $this->birthdays; + } + public function setBraggingRights($braggingRights) + { + $this->braggingRights = $braggingRights; + } + public function getBraggingRights() + { + return $this->braggingRights; + } + public function setCoverPhotos($coverPhotos) + { + $this->coverPhotos = $coverPhotos; + } + public function getCoverPhotos() + { + return $this->coverPhotos; + } + public function setEmailAddresses($emailAddresses) + { + $this->emailAddresses = $emailAddresses; + } + public function getEmailAddresses() + { + return $this->emailAddresses; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEvents($events) + { + $this->events = $events; + } + public function getEvents() + { + return $this->events; + } + public function setGenders($genders) + { + $this->genders = $genders; + } + public function getGenders() + { + return $this->genders; + } + public function setImClients($imClients) + { + $this->imClients = $imClients; + } + public function getImClients() + { + return $this->imClients; + } + public function setInterests($interests) + { + $this->interests = $interests; + } + public function getInterests() + { + return $this->interests; + } + public function setLocales($locales) + { + $this->locales = $locales; + } + public function getLocales() + { + return $this->locales; + } + public function setMemberships($memberships) + { + $this->memberships = $memberships; + } + public function getMemberships() + { + return $this->memberships; + } + public function setMetadata(Google_Service_People_PersonMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setNames($names) + { + $this->names = $names; + } + public function getNames() + { + return $this->names; + } + public function setNicknames($nicknames) + { + $this->nicknames = $nicknames; + } + public function getNicknames() + { + return $this->nicknames; + } + public function setOccupations($occupations) + { + $this->occupations = $occupations; + } + public function getOccupations() + { + return $this->occupations; + } + public function setOrganizations($organizations) + { + $this->organizations = $organizations; + } + public function getOrganizations() + { + return $this->organizations; + } + public function setPhoneNumbers($phoneNumbers) + { + $this->phoneNumbers = $phoneNumbers; + } + public function getPhoneNumbers() + { + return $this->phoneNumbers; + } + public function setPhotos($photos) + { + $this->photos = $photos; + } + public function getPhotos() + { + return $this->photos; + } + public function setRelations($relations) + { + $this->relations = $relations; + } + public function getRelations() + { + return $this->relations; + } + public function setRelationshipInterests($relationshipInterests) + { + $this->relationshipInterests = $relationshipInterests; + } + public function getRelationshipInterests() + { + return $this->relationshipInterests; + } + public function setRelationshipStatuses($relationshipStatuses) + { + $this->relationshipStatuses = $relationshipStatuses; + } + public function getRelationshipStatuses() + { + return $this->relationshipStatuses; + } + public function setResidences($residences) + { + $this->residences = $residences; + } + public function getResidences() + { + return $this->residences; + } + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; + } + public function setSkills($skills) + { + $this->skills = $skills; + } + public function getSkills() + { + return $this->skills; + } + public function setTaglines($taglines) + { + $this->taglines = $taglines; + } + public function getTaglines() + { + return $this->taglines; + } + public function setUrls($urls) + { + $this->urls = $urls; + } + public function getUrls() + { + return $this->urls; + } +} + +class Google_Service_People_PersonMetadata extends Google_Collection +{ + protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); + public $deleted; + public $objectType; + public $previousResourceNames; + protected $sourcesType = 'Google_Service_People_Source'; + protected $sourcesDataType = 'array'; + + + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + public function getDeleted() + { + return $this->deleted; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setPreviousResourceNames($previousResourceNames) + { + $this->previousResourceNames = $previousResourceNames; + } + public function getPreviousResourceNames() + { + return $this->previousResourceNames; + } + public function setSources($sources) + { + $this->sources = $sources; + } + public function getSources() + { + return $this->sources; + } +} + +class Google_Service_People_PersonResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $httpStatusCode; + protected $personType = 'Google_Service_People_Person'; + protected $personDataType = ''; + public $requestedResourceName; + + + public function setHttpStatusCode($httpStatusCode) + { + $this->httpStatusCode = $httpStatusCode; + } + public function getHttpStatusCode() + { + return $this->httpStatusCode; + } + public function setPerson(Google_Service_People_Person $person) + { + $this->person = $person; + } + public function getPerson() + { + return $this->person; + } + public function setRequestedResourceName($requestedResourceName) + { + $this->requestedResourceName = $requestedResourceName; + } + public function getRequestedResourceName() + { + return $this->requestedResourceName; + } +} + +class Google_Service_People_PhoneNumber extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canonicalForm; + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $type; + public $value; + + + public function setCanonicalForm($canonicalForm) + { + $this->canonicalForm = $canonicalForm; + } + public function getCanonicalForm() + { + return $this->canonicalForm; + } + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + 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_People_Photo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $url; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_People_Relation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $person; + public $type; + + + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setPerson($person) + { + $this->person = $person; + } + public function getPerson() + { + return $this->person; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_People_RelationshipInterest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedValue; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setFormattedValue($formattedValue) + { + $this->formattedValue = $formattedValue; + } + public function getFormattedValue() + { + return $this->formattedValue; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_RelationshipStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedValue; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setFormattedValue($formattedValue) + { + $this->formattedValue = $formattedValue; + } + public function getFormattedValue() + { + return $this->formattedValue; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Residence extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $current; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setCurrent($current) + { + $this->current = $current; + } + public function getCurrent() + { + return $this->current; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Skill extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Source extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_People_Tagline extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $value; + + + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_People_Url extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $formattedType; + protected $metadataType = 'Google_Service_People_FieldMetadata'; + protected $metadataDataType = ''; + public $type; + public $value; + + + public function setFormattedType($formattedType) + { + $this->formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + public function setMetadata(Google_Service_People_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + 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; + } +} diff --git a/src/Google/Service/Playmoviespartner.php b/src/Google/Service/Playmoviespartner.php index d3c11bc76..ecbd52a4e 100644 --- a/src/Google/Service/Playmoviespartner.php +++ b/src/Google/Service/Playmoviespartner.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pphNames' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), - 'videoIds' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'pageSize' => array( + 'pphNames' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', + 'repeated' => true, ), - 'title' => array( + 'studioNames' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), - 'altId' => array( + 'title' => array( 'location' => 'query', 'type' => 'string', ), @@ -96,14 +96,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'repeated' => true, ), - 'studioNames' => array( + 'altId' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'pageToken' => array( + 'videoIds' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), ), ), @@ -140,30 +140,25 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pphNames' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), - 'status' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), - 'titleLevelEidr' => array( + 'pphNames' => array( 'location' => 'query', 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', + 'repeated' => true, ), 'studioNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( + 'titleLevelEidr' => array( 'location' => 'query', 'type' => 'string', ), @@ -171,6 +166,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'customId' => array( 'location' => 'query', 'type' => 'string', @@ -214,12 +214,20 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pphNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'status' => array( + 'studioNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -228,19 +236,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'studioNames' => array( + 'status' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'customId' => array( 'location' => 'query', 'type' => 'string', @@ -265,20 +265,20 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pphNames' => array( + 'pageSize' => array( 'location' => 'query', - 'type' => 'string', - 'repeated' => true, + 'type' => 'integer', ), - 'name' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'pphNames' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', + 'repeated' => true, ), - 'countries' => array( + 'studioNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -287,12 +287,12 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'studioNames' => array( + 'countries' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( + 'name' => array( 'location' => 'query', 'type' => 'string', ), @@ -372,22 +372,22 @@ class Google_Service_Playmoviespartner_AccountsAvails_Resource extends Google_Se * about this field. * @param array $optParams Optional parameters. * + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. * @opt_param string pphNames See _List methods rules_ for info about this * field. - * @opt_param string videoIds Filter Avails that match any of the given - * `video_id`s. - * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string studioNames See _List methods rules_ for info about this + * field. * @opt_param string title Filter Avails that match a case-insensitive substring * of the default Title name. - * @opt_param string altId Filter Avails that match a case-insensitive, partner- - * specific custom id. * @opt_param string territories Filter Avails that match (case-insensitive) any * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples: * "US", "us", "Us"). - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. + * @opt_param string altId Filter Avails that match a case-insensitive, partner- + * specific custom id. + * @opt_param string videoIds Filter Avails that match any of the given + * `video_id`s. * @return Google_Service_Playmoviespartner_ListAvailsResponse */ public function listAccountsAvails($accountId, $optParams = array()) @@ -435,19 +435,19 @@ public function get($accountId, $elId, $optParams = array()) * about this field. * @param array $optParams Optional parameters. * + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. * @opt_param string pphNames See _List methods rules_ for info about this * field. - * @opt_param string status Filter ExperienceLocales that match one of the given - * status. - * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given - * title-level EIDR. - * @opt_param int pageSize See _List methods rules_ for info about this field. * @opt_param string studioNames See _List methods rules_ for info about this * field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. + * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given + * title-level EIDR. * @opt_param string editLevelEidr Filter ExperienceLocales that match a given * edit-level EIDR. + * @opt_param string status Filter ExperienceLocales that match one of the given + * status. * @opt_param string customId Filter ExperienceLocales that match a case- * insensitive, partner-specific custom id. * @opt_param string altCutId Filter ExperienceLocales that match a case- @@ -498,16 +498,16 @@ public function get($accountId, $orderId, $optParams = array()) * about this field. * @param array $optParams Optional parameters. * + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. * @opt_param string pphNames See _List methods rules_ for info about this * field. - * @opt_param string status Filter Orders that match one of the given status. - * @opt_param string name Filter Orders that match a title name (case- - * insensitive, sub-string match). - * @opt_param int pageSize See _List methods rules_ for info about this field. * @opt_param string studioNames See _List methods rules_ for info about this * field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. + * @opt_param string name Filter Orders that match a title name (case- + * insensitive, sub-string match). + * @opt_param string status Filter Orders that match one of the given status. * @opt_param string customId Filter Orders that match a case-insensitive, * partner-specific custom id. * @return Google_Service_Playmoviespartner_ListOrdersResponse @@ -539,21 +539,21 @@ class Google_Service_Playmoviespartner_AccountsStoreInfos_Resource extends Googl * about this field. * @param array $optParams Optional parameters. * + * @opt_param int pageSize See _List methods rules_ for info about this field. + * @opt_param string pageToken See _List methods rules_ for info about this + * field. * @opt_param string pphNames See _List methods rules_ for info about this * field. - * @opt_param string name Filter StoreInfos that match a case-insensitive - * substring of the default name. - * @opt_param int pageSize See _List methods rules_ for info about this field. - * @opt_param string countries Filter StoreInfos that match (case-insensitive) - * any of the given country codes, using the "ISO 3166-1 alpha-2" format - * (examples: "US", "us", "Us"). + * @opt_param string studioNames See _List methods rules_ for info about this + * field. * @opt_param string videoId Filter StoreInfos that match a given `video_id`. * NOTE: this field is deprecated and will be removed on V2; `video_ids` should * be used instead. - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. + * @opt_param string countries Filter StoreInfos that match (case-insensitive) + * any of the given country codes, using the "ISO 3166-1 alpha-2" format + * (examples: "US", "us", "Us"). + * @opt_param string name Filter StoreInfos that match a case-insensitive + * substring of the default name. * @opt_param string videoIds Filter StoreInfos that match any of the given * `video_id`s. * @return Google_Service_Playmoviespartner_ListStoreInfosResponse diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php index 9ff6a8ae1..5821bd006 100644 --- a/src/Google/Service/Plus.php +++ b/src/Google/Service/Plus.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'search' => array( 'path' => 'activities', @@ -110,11 +109,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -122,7 +117,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -156,62 +155,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->moments = new Google_Service_Plus_Moments_Resource( - $this, - $this->serviceName, - 'moments', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'people/{userId}/moments/{collection}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'debug' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/moments/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -220,11 +163,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'targetUrl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( + 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), @@ -263,6 +202,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', @@ -271,10 +214,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'listByActivity' => array( 'path' => 'activities/{activityId}/people/{collection}', @@ -290,14 +229,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'search' => array( 'path' => 'people', @@ -308,7 +247,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'language' => array( 'location' => 'query', 'type' => 'string', ), @@ -316,7 +255,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'language' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -363,12 +302,12 @@ public function get($activityId, $optParams = array()) * @param string $collection The collection of activities to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of activities to include in * the response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_Plus_ActivityFeed */ public function listActivities($userId, $collection, $optParams = array()) @@ -384,16 +323,16 @@ public function listActivities($userId, $collection, $optParams = array()) * @param string $query Full-text search query string. * @param array $optParams Optional parameters. * + * @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 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. - * @opt_param string maxResults The maximum number of activities to include in - * the response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. - * @opt_param string language Specify the preferred language to search with. See - * search language codes for available values. * @return Google_Service_Plus_ActivityFeed */ public function search($query, $optParams = array()) @@ -435,13 +374,13 @@ public function get($commentId, $optParams = array()) * @param string $activityId The ID of the activity to get comments for. * @param array $optParams Optional parameters. * + * @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. - * @opt_param string maxResults The maximum number of comments to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. * @return Google_Service_Plus_CommentFeed */ public function listComments($activityId, $optParams = array()) @@ -452,65 +391,6 @@ public function listComments($activityId, $optParams = array()) } } -/** - * The "moments" collection of methods. - * Typical usage is: - * - * $plusService = new Google_Service_Plus(...); - * $moments = $plusService->moments; - * - */ -class Google_Service_Plus_Moments_Resource extends Google_Service_Resource -{ - - /** - * Record a moment representing a user's action such as making a purchase or - * commenting on a blog. (moments.insert) - * - * @param string $userId The ID of the user to record actions for. The only - * valid values are "me" and the ID of the authenticated user. - * @param string $collection The collection to which to write moments. - * @param Google_Moment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool debug Return the moment as written. Should be used only for - * debugging. - * @return Google_Service_Plus_Moment - */ - public function insert($userId, $collection, Google_Service_Plus_Moment $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Plus_Moment"); - } - - /** - * List all of the moments for a particular user. (moments.listMoments) - * - * @param string $userId The ID of the user to get moments for. The special - * value "me" can be used to indicate the authenticated user. - * @param string $collection The collection of moments to list. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of moments to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param string targetUrl Only moments containing this targetUrl will be - * returned. - * @opt_param string type Only moments of this type will be returned. - * @return Google_Service_Plus_MomentsFeed - */ - public function listMoments($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_MomentsFeed"); - } -} - /** * The "people" collection of methods. * Typical usage is: @@ -547,13 +427,13 @@ public function get($userId, $optParams = array()) * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * + * @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. - * @opt_param string maxResults The maximum number of people to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. * @return Google_Service_Plus_PeopleFeed */ public function listPeople($userId, $collection, $optParams = array()) @@ -572,12 +452,12 @@ public function listPeople($userId, $collection, $optParams = array()) * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of people to include in the * response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_Plus_PeopleFeed */ public function listByActivity($activityId, $collection, $optParams = array()) @@ -594,15 +474,15 @@ public function listByActivity($activityId, $collection, $optParams = array()) * text in all profiles. * @param array $optParams Optional parameters. * + * @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. - * @opt_param string maxResults The maximum number of people to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. - * @opt_param string language Specify the preferred language to search with. See - * search language codes for available values. * @return Google_Service_Plus_PeopleFeed */ public function search($query, $optParams = array()) @@ -2134,682 +2014,6 @@ public function getTotalItems() } } -class Google_Service_Plus_ItemScope extends Google_Collection -{ - protected $collection_key = 'performers'; - protected $internal_gapi_mappings = array( - "associatedMedia" => "associated_media", - ); - protected $aboutType = 'Google_Service_Plus_ItemScope'; - protected $aboutDataType = ''; - public $additionalName; - protected $addressType = 'Google_Service_Plus_ItemScope'; - protected $addressDataType = ''; - public $addressCountry; - public $addressLocality; - public $addressRegion; - protected $associatedMediaType = 'Google_Service_Plus_ItemScope'; - protected $associatedMediaDataType = 'array'; - public $attendeeCount; - protected $attendeesType = 'Google_Service_Plus_ItemScope'; - protected $attendeesDataType = 'array'; - protected $audioType = 'Google_Service_Plus_ItemScope'; - protected $audioDataType = ''; - protected $authorType = 'Google_Service_Plus_ItemScope'; - protected $authorDataType = 'array'; - public $bestRating; - public $birthDate; - protected $byArtistType = 'Google_Service_Plus_ItemScope'; - protected $byArtistDataType = ''; - public $caption; - public $contentSize; - public $contentUrl; - protected $contributorType = 'Google_Service_Plus_ItemScope'; - protected $contributorDataType = 'array'; - public $dateCreated; - public $dateModified; - public $datePublished; - public $description; - public $duration; - public $embedUrl; - public $endDate; - public $familyName; - public $gender; - protected $geoType = 'Google_Service_Plus_ItemScope'; - protected $geoDataType = ''; - public $givenName; - public $height; - public $id; - public $image; - protected $inAlbumType = 'Google_Service_Plus_ItemScope'; - protected $inAlbumDataType = ''; - public $kind; - public $latitude; - protected $locationType = 'Google_Service_Plus_ItemScope'; - protected $locationDataType = ''; - public $longitude; - public $name; - protected $partOfTVSeriesType = 'Google_Service_Plus_ItemScope'; - protected $partOfTVSeriesDataType = ''; - protected $performersType = 'Google_Service_Plus_ItemScope'; - protected $performersDataType = 'array'; - public $playerType; - public $postOfficeBoxNumber; - public $postalCode; - public $ratingValue; - protected $reviewRatingType = 'Google_Service_Plus_ItemScope'; - protected $reviewRatingDataType = ''; - public $startDate; - public $streetAddress; - public $text; - protected $thumbnailType = 'Google_Service_Plus_ItemScope'; - protected $thumbnailDataType = ''; - public $thumbnailUrl; - public $tickerSymbol; - public $type; - public $url; - public $width; - public $worstRating; - - - public function setAbout(Google_Service_Plus_ItemScope $about) - { - $this->about = $about; - } - public function getAbout() - { - return $this->about; - } - public function setAdditionalName($additionalName) - { - $this->additionalName = $additionalName; - } - public function getAdditionalName() - { - return $this->additionalName; - } - public function setAddress(Google_Service_Plus_ItemScope $address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setAddressCountry($addressCountry) - { - $this->addressCountry = $addressCountry; - } - public function getAddressCountry() - { - return $this->addressCountry; - } - public function setAddressLocality($addressLocality) - { - $this->addressLocality = $addressLocality; - } - public function getAddressLocality() - { - return $this->addressLocality; - } - public function setAddressRegion($addressRegion) - { - $this->addressRegion = $addressRegion; - } - public function getAddressRegion() - { - return $this->addressRegion; - } - public function setAssociatedMedia($associatedMedia) - { - $this->associatedMedia = $associatedMedia; - } - public function getAssociatedMedia() - { - return $this->associatedMedia; - } - public function setAttendeeCount($attendeeCount) - { - $this->attendeeCount = $attendeeCount; - } - public function getAttendeeCount() - { - return $this->attendeeCount; - } - public function setAttendees($attendees) - { - $this->attendees = $attendees; - } - public function getAttendees() - { - return $this->attendees; - } - public function setAudio(Google_Service_Plus_ItemScope $audio) - { - $this->audio = $audio; - } - public function getAudio() - { - return $this->audio; - } - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setBestRating($bestRating) - { - $this->bestRating = $bestRating; - } - public function getBestRating() - { - return $this->bestRating; - } - public function setBirthDate($birthDate) - { - $this->birthDate = $birthDate; - } - public function getBirthDate() - { - return $this->birthDate; - } - public function setByArtist(Google_Service_Plus_ItemScope $byArtist) - { - $this->byArtist = $byArtist; - } - public function getByArtist() - { - return $this->byArtist; - } - public function setCaption($caption) - { - $this->caption = $caption; - } - public function getCaption() - { - return $this->caption; - } - public function setContentSize($contentSize) - { - $this->contentSize = $contentSize; - } - public function getContentSize() - { - return $this->contentSize; - } - public function setContentUrl($contentUrl) - { - $this->contentUrl = $contentUrl; - } - public function getContentUrl() - { - return $this->contentUrl; - } - public function setContributor($contributor) - { - $this->contributor = $contributor; - } - public function getContributor() - { - return $this->contributor; - } - public function setDateCreated($dateCreated) - { - $this->dateCreated = $dateCreated; - } - public function getDateCreated() - { - return $this->dateCreated; - } - public function setDateModified($dateModified) - { - $this->dateModified = $dateModified; - } - public function getDateModified() - { - return $this->dateModified; - } - public function setDatePublished($datePublished) - { - $this->datePublished = $datePublished; - } - public function getDatePublished() - { - return $this->datePublished; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setEmbedUrl($embedUrl) - { - $this->embedUrl = $embedUrl; - } - public function getEmbedUrl() - { - return $this->embedUrl; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setGender($gender) - { - $this->gender = $gender; - } - public function getGender() - { - return $this->gender; - } - public function setGeo(Google_Service_Plus_ItemScope $geo) - { - $this->geo = $geo; - } - public function getGeo() - { - return $this->geo; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImage($image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setInAlbum(Google_Service_Plus_ItemScope $inAlbum) - { - $this->inAlbum = $inAlbum; - } - public function getInAlbum() - { - return $this->inAlbum; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLocation(Google_Service_Plus_ItemScope $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPartOfTVSeries(Google_Service_Plus_ItemScope $partOfTVSeries) - { - $this->partOfTVSeries = $partOfTVSeries; - } - public function getPartOfTVSeries() - { - return $this->partOfTVSeries; - } - public function setPerformers($performers) - { - $this->performers = $performers; - } - public function getPerformers() - { - return $this->performers; - } - public function setPlayerType($playerType) - { - $this->playerType = $playerType; - } - public function getPlayerType() - { - return $this->playerType; - } - public function setPostOfficeBoxNumber($postOfficeBoxNumber) - { - $this->postOfficeBoxNumber = $postOfficeBoxNumber; - } - public function getPostOfficeBoxNumber() - { - return $this->postOfficeBoxNumber; - } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - public function getPostalCode() - { - return $this->postalCode; - } - public function setRatingValue($ratingValue) - { - $this->ratingValue = $ratingValue; - } - public function getRatingValue() - { - return $this->ratingValue; - } - public function setReviewRating(Google_Service_Plus_ItemScope $reviewRating) - { - $this->reviewRating = $reviewRating; - } - public function getReviewRating() - { - return $this->reviewRating; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } - public function getStreetAddress() - { - return $this->streetAddress; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } - public function setThumbnail(Google_Service_Plus_ItemScope $thumbnail) - { - $this->thumbnail = $thumbnail; - } - public function getThumbnail() - { - return $this->thumbnail; - } - public function setThumbnailUrl($thumbnailUrl) - { - $this->thumbnailUrl = $thumbnailUrl; - } - public function getThumbnailUrl() - { - return $this->thumbnailUrl; - } - public function setTickerSymbol($tickerSymbol) - { - $this->tickerSymbol = $tickerSymbol; - } - public function getTickerSymbol() - { - return $this->tickerSymbol; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } - public function setWorstRating($worstRating) - { - $this->worstRating = $worstRating; - } - public function getWorstRating() - { - return $this->worstRating; - } -} - -class Google_Service_Plus_Moment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - protected $objectType = 'Google_Service_Plus_ItemScope'; - protected $objectDataType = ''; - protected $resultType = 'Google_Service_Plus_ItemScope'; - protected $resultDataType = ''; - public $startDate; - protected $targetType = 'Google_Service_Plus_ItemScope'; - protected $targetDataType = ''; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setObject(Google_Service_Plus_ItemScope $object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } - public function setResult(Google_Service_Plus_ItemScope $result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setTarget(Google_Service_Plus_ItemScope $target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Plus_MomentsFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Plus_Moment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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; - } - 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_Plus_PeopleFeed extends Google_Collection { protected $collection_key = 'items'; diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php index 9053c9881..2adef082c 100644 --- a/src/Google/Service/PlusDomains.php +++ b/src/Google/Service/PlusDomains.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -154,14 +154,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -182,12 +182,12 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'userId' => array( + 'email' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'email' => array( + 'userId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -222,14 +222,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'circles/{circleId}', @@ -260,12 +260,12 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'userId' => array( + 'email' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'email' => array( + 'userId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -320,6 +320,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -328,10 +332,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) @@ -392,6 +392,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', @@ -400,10 +404,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'listByActivity' => array( 'path' => 'activities/{activityId}/people/{collection}', @@ -419,14 +419,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listByCircle' => array( 'path' => 'circles/{circleId}/people', @@ -437,14 +437,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -508,12 +508,12 @@ public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $ * @param string $collection The collection of activities to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of activities to include in * the response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_PlusDomains_ActivityFeed */ public function listActivities($userId, $collection, $optParams = array()) @@ -543,12 +543,12 @@ class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resou * value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of circles to include in the * response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_PlusDomains_AudiencesFeed */ public function listAudiences($userId, $optParams = array()) @@ -577,10 +577,10 @@ class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resourc * @param string $circleId The ID of the circle to add the person to. * @param array $optParams Optional parameters. * - * @opt_param string userId IDs of the people to add to the circle. Optional, - * can be repeated. * @opt_param string email Email of the people to add to the circle. Optional, * can be repeated. + * @opt_param string userId IDs of the people to add to the circle. Optional, + * can be repeated. * @return Google_Service_PlusDomains_Circle */ public function addPeople($circleId, $optParams = array()) @@ -627,12 +627,12 @@ public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $op * value "me" can be used to indicate the authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of circles to include in the * response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_PlusDomains_CircleFeed */ public function listCircles($userId, $optParams = array()) @@ -677,10 +677,10 @@ public function remove($circleId, $optParams = array()) * @param string $circleId The ID of the circle to remove the person from. * @param array $optParams Optional parameters. * - * @opt_param string userId IDs of the people to remove from the circle. - * Optional, can be repeated. * @opt_param string email Email of the people to add to the circle. Optional, * can be repeated. + * @opt_param string userId IDs of the people to remove from the circle. + * Optional, can be repeated. */ public function removePeople($circleId, $optParams = array()) { @@ -751,13 +751,13 @@ public function insert($activityId, Google_Service_PlusDomains_Comment $postBody * @param string $activityId The ID of the activity to get comments for. * @param array $optParams Optional parameters. * + * @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. - * @opt_param string maxResults The maximum number of comments to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_CommentFeed */ public function listComments($activityId, $optParams = array()) @@ -833,13 +833,13 @@ public function get($userId, $optParams = array()) * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * + * @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. - * @opt_param string maxResults The maximum number of people to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. * @return Google_Service_PlusDomains_PeopleFeed */ public function listPeople($userId, $collection, $optParams = array()) @@ -858,12 +858,12 @@ public function listPeople($userId, $collection, $optParams = array()) * @param string $collection The collection of people to list. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of people to include in the * response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_PlusDomains_PeopleFeed */ public function listByActivity($activityId, $collection, $optParams = array()) @@ -879,12 +879,12 @@ public function listByActivity($activityId, $collection, $optParams = array()) * @param string $circleId The ID of the circle to get the members of. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of "nextPageToken" from the previous response. * @opt_param string maxResults The maximum number of people to include in the * response, which is used for paging. For any response, the actual number * returned might be less than the specified maxResults. + * @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_Service_PlusDomains_PeopleFeed */ public function listByCircle($circleId, $optParams = array()) diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php index c57b41d0b..829bce0c8 100644 --- a/src/Google/Service/Prediction.php +++ b/src/Google/Service/Prediction.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'predict' => array( 'path' => '{project}/trainedmodels/{id}/predict', @@ -309,8 +309,8 @@ public function insert($project, Google_Service_Prediction_Insert $postBody, $op * @param string $project The project associated with the model. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Pagination token. * @opt_param string maxResults Maximum number of results to return. + * @opt_param string pageToken Pagination token. * @return Google_Service_Prediction_PredictionList */ public function listTrainedmodels($project, $optParams = array()) @@ -693,10 +693,6 @@ public function getValue() } } -class Google_Service_Prediction_AnalyzeErrors extends Google_Model -{ -} - class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model { protected $internal_gapi_mappings = array( @@ -733,18 +729,6 @@ public function getModelinfo() } } -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model -{ -} - -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model -{ -} - -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model -{ -} - class Google_Service_Prediction_Input extends Google_Model { protected $internal_gapi_mappings = array( @@ -1060,10 +1044,6 @@ public function getOutput() } } -class Google_Service_Prediction_InsertUtility extends Google_Model -{ -} - class Google_Service_Prediction_Output extends Google_Collection { protected $collection_key = 'outputMulti'; diff --git a/src/Google/Service/Proximitybeacon.php b/src/Google/Service/Proximitybeacon.php index f9a8d0f07..a0f14e3a5 100644 --- a/src/Google/Service/Proximitybeacon.php +++ b/src/Google/Service/Proximitybeacon.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -228,10 +232,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) @@ -581,13 +581,13 @@ class Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource extends Google_ * @param string $beaconName Beacon that the diagnostics are for. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Specifies the maximum number of results to return. + * Defaults to 10. Maximum 1000. Optional. * @opt_param string pageToken Requests results that occur after the * `page_token`, obtained from the response to a previous request. Optional. * @opt_param string alertFilter Requests only beacons that have the given * alert. For example, to find beacons that have low batteries use * `alert_filter=LOW_BATTERY`. - * @opt_param int pageSize Specifies the maximum number of results to return. - * Defaults to 10. Maximum 1000. Optional. * @return Google_Service_Proximitybeacon_ListDiagnosticsResponse */ public function listBeaconsDiagnostics($beaconName, $optParams = array()) @@ -855,10 +855,6 @@ public function getDescription() } } -class Google_Service_Proximitybeacon_BeaconProperties extends Google_Model -{ -} - class Google_Service_Proximitybeacon_Date extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php index d6035ba37..ffd82a914 100644 --- a/src/Google/Service/Pubsub.php +++ b/src/Google/Service/Pubsub.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'modifyAckDeadline' => array( 'path' => 'v1/{+subscription}:modifyAckDeadline', @@ -238,14 +238,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'publish' => array( 'path' => 'v1/{+topic}:publish', @@ -296,14 +296,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -418,8 +418,10 @@ public function get($subscription, $optParams = array()) * the resource does not exist. (subscriptions.getIamPolicy) * * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * `projects/{project}`. + * requested. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective GetIamPolicy rpc. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Policy */ @@ -437,11 +439,11 @@ public function getIamPolicy($resource, $optParams = array()) * belong to. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of subscriptions to return. * @opt_param string pageToken The value returned by the last * `ListSubscriptionsResponse`; indicates that this is a continuation of a prior * `ListSubscriptions` call, and that the system should return the next page of * data. - * @opt_param int pageSize Maximum number of subscriptions to return. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ public function listProjectsSubscriptions($project, $optParams = array()) @@ -514,7 +516,9 @@ public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, * * @param string $resource REQUIRED: The resource for which policy is being * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective SetIamPolicy rpc. * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Policy @@ -532,7 +536,9 @@ public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyReques * * @param string $resource REQUIRED: The resource for which policy detail is * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}`. + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective TestIamPermissions rpc. * @param Google_TestIamPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_TestIamPermissionsResponse @@ -612,8 +618,10 @@ public function get($topic, $optParams = array()) * the resource does not exist. (topics.getIamPolicy) * * @param string $resource REQUIRED: The resource for which policy is being - * requested. Resource is usually specified as a path, such as, - * `projects/{project}`. + * requested. `resource` is usually specified as a path, such as, + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective GetIamPolicy rpc. * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Policy */ @@ -630,10 +638,10 @@ public function getIamPolicy($resource, $optParams = array()) * @param string $project The name of the cloud project that topics belong to. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of topics to return. * @opt_param string pageToken The value returned by the last * `ListTopicsResponse`; indicates that this is a continuation of a prior * `ListTopics` call, and that the system should return the next page of data. - * @opt_param int pageSize Maximum number of topics to return. * @return Google_Service_Pubsub_ListTopicsResponse */ public function listProjectsTopics($project, $optParams = array()) @@ -667,7 +675,9 @@ public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, * * @param string $resource REQUIRED: The resource for which policy is being * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective SetIamPolicy rpc. * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Policy @@ -685,7 +695,9 @@ public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyReques * * @param string $resource REQUIRED: The resource for which policy detail is * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}`. + * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path + * specified in this value is resource specific and is specified in the + * documentation for the respective TestIamPermissions rpc. * @param Google_TestIamPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_TestIamPermissionsResponse @@ -717,11 +729,11 @@ class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_ * to. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of subscription names to return. * @opt_param string pageToken The value returned by the last * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a * prior `ListTopicSubscriptions` call, and that the system should return the * next page of data. - * @opt_param int pageSize Maximum number of subscription names to return. * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse */ public function listProjectsTopicsSubscriptions($topic, $optParams = array()) @@ -993,6 +1005,7 @@ class Google_Service_Pubsub_PubsubMessage extends Google_Model public $attributes; public $data; public $messageId; + public $publishTime; public function setAttributes($attributes) @@ -1019,10 +1032,14 @@ public function getMessageId() { return $this->messageId; } -} - -class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model -{ + public function setPublishTime($publishTime) + { + $this->publishTime = $publishTime; + } + public function getPublishTime() + { + return $this->publishTime; + } } class Google_Service_Pubsub_PullRequest extends Google_Model @@ -1096,10 +1113,6 @@ public function getPushEndpoint() } } -class Google_Service_Pubsub_PushConfigAttributes extends Google_Model -{ -} - class Google_Service_Pubsub_ReceivedMessage extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php index dad951827..5461f0bcd 100644 --- a/src/Google/Service/QPXExpress.php +++ b/src/Google/Service/QPXExpress.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'recreateInstances' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', @@ -327,14 +327,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -465,10 +465,10 @@ public function insert($project, $zone, $size, Google_Service_Replicapool_Instan * * @opt_param string filter Optional. Filter expression for filtering listed * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. * @opt_param string maxResults Optional. Maximum count of results to be * returned. Maximum value is 500 and default value is 500. + * @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_Replicapool_InstanceGroupManagerList */ public function listInstanceGroupManagers($project, $zone, $optParams = array()) @@ -599,10 +599,10 @@ public function get($project, $zone, $operation, $optParams = array()) * * @opt_param string filter Optional. Filter expression for filtering listed * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. * @opt_param string maxResults Optional. Maximum count of results to be * returned. Maximum value is 500 and default value is 500. + * @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_Replicapool_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index a5649402e..429eb8d6e 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listInstanceUpdates' => array( 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', @@ -168,14 +168,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -289,14 +289,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -380,10 +380,10 @@ public function insert($project, $zone, Google_Service_Replicapoolupdater_Rollin * * @opt_param string filter Optional. Filter expression for filtering listed * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. * @opt_param string maxResults Optional. Maximum count of results to be * returned. Maximum value is 500 and default value is 500. + * @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_Replicapoolupdater_RollingUpdateList */ public function listRollingUpdates($project, $zone, $optParams = array()) @@ -403,10 +403,10 @@ public function listRollingUpdates($project, $zone, $optParams = array()) * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. * - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. * @opt_param string filter Optional. Filter expression for filtering listed * resources. + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. * @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_Replicapoolupdater_InstanceUpdateList @@ -513,10 +513,10 @@ public function get($project, $zone, $operation, $optParams = array()) * * @opt_param string filter Optional. Filter expression for filtering listed * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. * @opt_param string maxResults Optional. Maximum count of results to be * returned. Maximum value is 500 and default value is 500. + * @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_Replicapoolupdater_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php index 76941827a..b782004bf 100644 --- a/src/Google/Service/Reports.php +++ b/src/Google/Service/Reports.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'startTime' => array( + 'actorIpAddress' => array( 'location' => 'query', 'type' => 'string', ), - 'actorIpAddress' => array( + 'customerId' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'endTime' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'eventName' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'filters' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'endTime' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'customerId' => array( + 'startTime' => array( 'location' => 'query', 'type' => 'string', ), @@ -124,35 +124,35 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'startTime' => array( + 'actorIpAddress' => array( 'location' => 'query', 'type' => 'string', ), - 'actorIpAddress' => array( + 'customerId' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'endTime' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'eventName' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'filters' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'endTime' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'customerId' => array( + 'startTime' => array( 'location' => 'query', 'type' => 'string', ), @@ -190,11 +190,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'customerId' => array( 'location' => 'query', 'type' => 'string', ), - 'customerId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -227,7 +227,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'parameters' => array( + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( 'location' => 'query', 'type' => 'string', ), @@ -239,11 +243,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( + 'parameters' => array( 'location' => 'query', 'type' => 'string', ), @@ -278,20 +278,20 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * be retrieved. * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occured at or after this - * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults Number of activity records to be shown in each - * page. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. + * @opt_param string endTime Return events which occured at or before this time. * @opt_param string eventName Name of the event being queried. - * @opt_param string pageToken Token to specify next page. * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string pageToken Token to specify next page. + * @opt_param string startTime Return events which occured at or after this + * time. * @return Google_Service_Reports_Activities */ public function listActivities($userKey, $applicationName, $optParams = array()) @@ -312,20 +312,20 @@ public function listActivities($userKey, $applicationName, $optParams = array()) * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string startTime Return events which occured at or after this - * time. * @opt_param string actorIpAddress IP Address of host where the event was * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults Number of activity records to be shown in each - * page. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. + * @opt_param string endTime Return events which occured at or before this time. * @opt_param string eventName Name of the event being queried. - * @opt_param string pageToken Token to specify next page. * @opt_param string filters Event parameters in the form [parameter1 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 * value],... - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. + * @opt_param int maxResults Number of activity records to be shown in each + * page. + * @opt_param string pageToken Token to specify next page. + * @opt_param string startTime Return events which occured at or after this + * time. * @return Google_Service_Reports_Channel */ public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array()) @@ -380,9 +380,9 @@ class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Servic * data is to be fetched. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Token to specify next page. * @opt_param string customerId Represents the customer for which the data is to * be fetched. + * @opt_param string pageToken Token to specify next page. * @opt_param string parameters Represents the application name, parameter name * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. * @return Google_Service_Reports_UsageReports @@ -416,15 +416,15 @@ class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Res * data is to be fetched. * @param array $optParams Optional parameters. * - * @opt_param string parameters Represents the application name, parameter name - * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. + * @opt_param string customerId Represents the customer for which the data is to + * be fetched. + * @opt_param string filters Represents the set of filters including parameter + * operator value. * @opt_param string maxResults Maximum number of results to return. Maximum * allowed is 1000 * @opt_param string pageToken Token to specify next page. - * @opt_param string filters Represents the set of filters including parameter - * operator value. - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. + * @opt_param string parameters Represents the application name, parameter name + * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. * @return Google_Service_Reports_UsageReports */ public function get($userKey, $date, $optParams = array()) @@ -845,10 +845,6 @@ public function getType() } } -class Google_Service_Reports_ChannelParams extends Google_Model -{ -} - class Google_Service_Reports_UsageReport extends Google_Collection { protected $collection_key = 'parameters'; @@ -1012,10 +1008,6 @@ public function getStringValue() } } -class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model -{ -} - class Google_Service_Reports_UsageReports extends Google_Collection { protected $collection_key = 'warnings'; diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 2ffffba09..9fc8c4a36 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( + 'customerId' => array( 'location' => 'query', 'type' => 'string', ), - 'customerId' => array( + 'customerNamePrefix' => array( 'location' => 'query', 'type' => 'string', ), @@ -238,7 +238,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'customerNamePrefix' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -315,7 +315,7 @@ public function get($customerId, $optParams = array()) * * @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. + * https://admin.google.com/TransferToken. Optional. * @return Google_Service_Reseller_Customer */ public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) @@ -499,11 +499,11 @@ public function insert($customerId, Google_Service_Reseller_Subscription $postBo * @opt_param string customerAuthToken An auth token needed if the customer is * not a resold customer of this reseller. Can be generated at * https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. - * @opt_param string pageToken Token to specify next page in the list * @opt_param string customerId Id of the Customer - * @opt_param string maxResults Maximum number of results to return * @opt_param string customerNamePrefix Prefix of the customer's domain name by * which the subscriptions should be filtered. Optional + * @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()) diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php index 58e3b8913..2b37766ce 100644 --- a/src/Google/Service/Resourceviews.php +++ b/src/Google/Service/Resourceviews.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -243,14 +243,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listResources' => array( 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/resources', @@ -271,11 +271,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'listState' => array( + 'format' => array( 'location' => 'query', 'type' => 'string', ), - 'format' => array( + 'listState' => array( 'location' => 'query', 'type' => 'string', ), @@ -378,10 +378,10 @@ public function get($project, $zone, $operation, $optParams = array()) * * @opt_param string filter Optional. Filter expression for filtering listed * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. * @opt_param string maxResults Optional. Maximum count of results to be * returned. Maximum value is 500 and default value is 500. + * @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_Resourceviews_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -495,11 +495,11 @@ public function insert($project, $zone, Google_Service_Resourceviews_ResourceVie * @param string $zone The zone name of the resource view. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 5000, inclusive. (Default: 5000) * @opt_param string pageToken Specifies a nextPageToken returned by a previous * list request. This token can be used to request the next page of results from * a previous list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 5000, inclusive. (Default: 5000) * @return Google_Service_Resourceviews_ZoneViewsList */ public function listZoneViews($project, $zone, $optParams = array()) @@ -517,11 +517,11 @@ public function listZoneViews($project, $zone, $optParams = array()) * @param string $resourceView The name of the resource view. * @param array $optParams Optional parameters. * - * @opt_param string listState The state of the instance to list. By default, it - * lists all instances. * @opt_param string format The requested format of the return value. It can be * URL or URL_PORT. A JSON object will be included in the response based on the * format. The default format is NONE, which results in no JSON in the response. + * @opt_param string listState The state of the instance to list. By default, it + * lists all instances. * @opt_param int maxResults Maximum count of results to be returned. Acceptable * values are 0 to 5000, inclusive. (Default: 5000) * @opt_param string pageToken Specifies a nextPageToken returned by a previous @@ -630,10 +630,6 @@ public function getResource() } } -class Google_Service_Resourceviews_ListResourceResponseItemEndpoints extends Google_Model -{ -} - class Google_Service_Resourceviews_Operation extends Google_Collection { protected $collection_key = 'warnings'; diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 04229379d..7f35904dc 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'projects/{project}/instances/{instance}', @@ -1132,10 +1132,10 @@ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postB * instances. * @param array $optParams Optional parameters. * - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. * @opt_param string maxResults The maximum number of results to return per * response. + * @opt_param string pageToken A previously-returned page token representing + * part of the larger set of results to view. * @return Google_Service_SQLAdmin_InstancesListResponse */ public function listInstances($project, $optParams = array()) @@ -1963,6 +1963,8 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $currentDiskSize; public $databaseVersion; public $etag; + protected $failoverReplicaType = 'Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica'; + protected $failoverReplicaDataType = ''; public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; @@ -2011,6 +2013,14 @@ public function getEtag() { return $this->etag; } + public function setFailoverReplica(Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica $failoverReplica) + { + $this->failoverReplica = $failoverReplica; + } + public function getFailoverReplica() + { + return $this->failoverReplica; + } public function setInstanceType($instanceType) { $this->instanceType = $instanceType; @@ -2149,6 +2159,32 @@ public function getState() } } +class Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $available; + public $name; + + + public function setAvailable($available) + { + $this->available = $available; + } + public function getAvailable() + { + return $this->available; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -2323,6 +2359,7 @@ class Google_Service_SQLAdmin_Flag extends Google_Collection public $maxValue; public $minValue; public $name; + public $requiresRestart; public $type; @@ -2374,6 +2411,14 @@ public function getName() { return $this->name; } + public function setRequiresRestart($requiresRestart) + { + $this->requiresRestart = $requiresRestart; + } + public function getRequiresRestart() + { + return $this->requiresRestart; + } public function setType($type) { $this->type = $type; @@ -2718,6 +2763,50 @@ public function getZone() } } +class Google_Service_SQLAdmin_MaintenanceWindow extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $day; + public $hour; + public $kind; + public $updateTrack; + + + public function setDay($day) + { + $this->day = $day; + } + public function getDay() + { + return $this->day; + } + public function setHour($hour) + { + $this->hour = $hour; + } + public function getHour() + { + return $this->hour; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUpdateTrack($updateTrack) + { + $this->updateTrack = $updateTrack; + } + public function getUpdateTrack() + { + return $this->updateTrack; + } +} + class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model { protected $internal_gapi_mappings = array( @@ -3179,6 +3268,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection protected $backupConfigurationDataType = ''; public $crashSafeReplicationEnabled; public $dataDiskSizeGb; + public $dataDiskType; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; public $databaseReplicationEnabled; @@ -3187,6 +3277,8 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection public $kind; protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; protected $locationPreferenceDataType = ''; + protected $maintenanceWindowType = 'Google_Service_SQLAdmin_MaintenanceWindow'; + protected $maintenanceWindowDataType = ''; public $pricingPlan; public $replicationType; public $settingsVersion; @@ -3233,6 +3325,14 @@ public function getDataDiskSizeGb() { return $this->dataDiskSizeGb; } + public function setDataDiskType($dataDiskType) + { + $this->dataDiskType = $dataDiskType; + } + public function getDataDiskType() + { + return $this->dataDiskType; + } public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; @@ -3273,6 +3373,14 @@ public function getLocationPreference() { return $this->locationPreference; } + public function setMaintenanceWindow(Google_Service_SQLAdmin_MaintenanceWindow $maintenanceWindow) + { + $this->maintenanceWindow = $maintenanceWindow; + } + public function getMaintenanceWindow() + { + return $this->maintenanceWindow; + } public function setPricingPlan($pricingPlan) { $this->pricingPlan = $pricingPlan; diff --git a/src/Google/Service/Script.php b/src/Google/Service/Script.php index 43ddcaac5..96a77d419 100644 --- a/src/Google/Service/Script.php +++ b/src/Google/Service/Script.php @@ -1,6 +1,6 @@ message; } } - -class Google_Service_Script_StatusDetails extends Google_Model -{ -} diff --git a/src/Google/Service/ServiceRegistry.php b/src/Google/Service/ServiceRegistry.php new file mode 100644 index 000000000..94282c05a --- /dev/null +++ b/src/Google/Service/ServiceRegistry.php @@ -0,0 +1,973 @@ + + * The Service Registry API allows users to manage service endpoints in Service + * Registry and use DNS-based service discovery / name resolution.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_ServiceRegistry extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + + public $endpoints; + public $operations; + + + /** + * Constructs the internal representation of the ServiceRegistry service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'serviceregistry/alpha/projects/'; + $this->version = 'alpha'; + $this->serviceName = 'serviceregistry'; + + $this->endpoints = new Google_Service_ServiceRegistry_Endpoints_Resource( + $this, + $this->serviceName, + 'endpoints', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/endpoints/{endpoint}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'endpoint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{project}/global/endpoints/{endpoint}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'endpoint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/global/endpoints', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/endpoints', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/endpoints/{endpoint}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'endpoint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{project}/global/endpoints/{endpoint}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'endpoint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_ServiceRegistry_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "endpoints" collection of methods. + * Typical usage is: + * + * $serviceregistryService = new Google_Service_ServiceRegistry(...); + * $endpoints = $serviceregistryService->endpoints; + * + */ +class Google_Service_ServiceRegistry_Endpoints_Resource extends Google_Service_Resource +{ + + /** + * Deletes an endpoint. (endpoints.delete) + * + * @param string $project The project ID for this request. + * @param string $endpoint The name of the endpoint for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Operation + */ + public function delete($project, $endpoint, $optParams = array()) + { + $params = array('project' => $project, 'endpoint' => $endpoint); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ServiceRegistry_Operation"); + } + + /** + * Gets an endpoint. (endpoints.get) + * + * @param string $project The project ID for this request. + * @param string $endpoint The name of the endpoint for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Endpoint + */ + public function get($project, $endpoint, $optParams = array()) + { + $params = array('project' => $project, 'endpoint' => $endpoint); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ServiceRegistry_Endpoint"); + } + + /** + * Creates an endpoint. (endpoints.insert) + * + * @param string $project The project ID for this request. + * @param Google_Endpoint $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Operation + */ + public function insert($project, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ServiceRegistry_Operation"); + } + + /** + * Lists endpoints for a project. (endpoints.listEndpoints) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * Compute Engine should return. If the number of available results is larger + * than maxResults, Compute Engine returns a nextPageToken that can be used to + * get the next page of results in subsequent list requests. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_ServiceRegistry_EndpointsListResponse + */ + public function listEndpoints($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ServiceRegistry_EndpointsListResponse"); + } + + /** + * Updates an endpoint. This method supports patch semantics. (endpoints.patch) + * + * @param string $project The project ID for this request. + * @param string $endpoint The name of the endpoint for this request. + * @param Google_Endpoint $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Operation + */ + public function patch($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) + { + $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ServiceRegistry_Operation"); + } + + /** + * Updates an endpoint. (endpoints.update) + * + * @param string $project The project ID for this request. + * @param string $endpoint The name of the endpoint for this request. + * @param Google_Endpoint $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Operation + */ + public function update($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) + { + $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ServiceRegistry_Operation"); + } +} + +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $serviceregistryService = new Google_Service_ServiceRegistry(...); + * $operations = $serviceregistryService->operations; + * + */ +class Google_Service_ServiceRegistry_Operations_Resource extends Google_Service_Resource +{ + + /** + * Gets information about a specific operation. (operations.get) + * + * @param string $project The project ID for this request. + * @param string $operation The name of the operation for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceRegistry_Operation + */ + public function get($project, $operation, $optParams = array()) + { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ServiceRegistry_Operation"); + } + + /** + * Lists all operations for a project. (operations.listOperations) + * + * @param string $project The project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Sets a filter expression for filtering listed + * resources, in the form filter={expression}. Your {expression} must be in the + * format: field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * Compute Engine should return. If the number of available results is larger + * than maxResults, Compute Engine returns a nextPageToken that can be used to + * get the next page of results in subsequent list requests. + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_ServiceRegistry_OperationsListResponse + */ + public function listOperations($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ServiceRegistry_OperationsListResponse"); + } +} + + + + +class Google_Service_ServiceRegistry_Endpoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + public $creationTimestamp; + public $description; + public $fingerprint; + public $id; + public $name; + public $port; + public $selfLink; + public $state; + protected $visibilityType = 'Google_Service_ServiceRegistry_EndpointEndpointVisibility'; + protected $visibilityDataType = ''; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setVisibility(Google_Service_ServiceRegistry_EndpointEndpointVisibility $visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_ServiceRegistry_EndpointEndpointVisibility extends Google_Collection +{ + protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); + public $networks; + public $projects; + + + public function setNetworks($networks) + { + $this->networks = $networks; + } + public function getNetworks() + { + return $this->networks; + } + public function setProjects($projects) + { + $this->projects = $projects; + } + public function getProjects() + { + return $this->projects; + } +} + +class Google_Service_ServiceRegistry_EndpointsListResponse extends Google_Collection +{ + protected $collection_key = 'endpoints'; + protected $internal_gapi_mappings = array( + ); + protected $endpointsType = 'Google_Service_ServiceRegistry_Endpoint'; + protected $endpointsDataType = 'array'; + public $nextPageToken; + + + public function setEndpoints($endpoints) + { + $this->endpoints = $endpoints; + } + public function getEndpoints() + { + return $this->endpoints; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_ServiceRegistry_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $description; + public $endTime; + protected $errorType = 'Google_Service_ServiceRegistry_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_ServiceRegistry_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) + { + $this->clientOperationId = $clientOperationId; + } + public function getClientOperationId() + { + return $this->clientOperationId; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function 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 setError(Google_Service_ServiceRegistry_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_ServiceRegistry_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_ServiceRegistry_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_ServiceRegistry_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_ServiceRegistry_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_ServiceRegistry_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_ServiceRegistry_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_ServiceRegistry_OperationsListResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_ServiceRegistry_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php index 1930011db..33a6321a8 100644 --- a/src/Google/Service/ShoppingContent.php +++ b/src/Google/Service/ShoppingContent.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{merchantId}/accounts/{accountId}', @@ -226,14 +226,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{merchantId}/accountshipping/{accountId}', @@ -311,14 +311,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -363,14 +363,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{merchantId}/accounttax/{accountId}', @@ -486,14 +486,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -571,14 +571,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -761,14 +761,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placedDateEnd' => array( - 'location' => 'query', - 'type' => 'string', - ), 'acknowledged' => array( 'location' => 'query', 'type' => 'boolean', @@ -777,10 +769,18 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'placedDateEnd' => array( + 'location' => 'query', + 'type' => 'string', + ), 'placedDateStart' => array( 'location' => 'query', 'type' => 'string', @@ -942,14 +942,18 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'includeInvalidInsertedItems' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -989,14 +993,18 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'includeInvalidInsertedItems' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1102,9 +1110,9 @@ public function insert($merchantId, Google_Service_ShoppingContent_Account $post * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of accounts to return in the * response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_AccountsListResponse */ public function listAccounts($merchantId, $optParams = array()) @@ -1203,9 +1211,9 @@ public function get($merchantId, $accountId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of shipping settings to * return in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_AccountshippingListResponse */ public function listAccountshipping($merchantId, $optParams = array()) @@ -1302,9 +1310,9 @@ public function get($merchantId, $accountId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of account statuses to return * in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_AccountstatusesListResponse */ public function listAccountstatuses($merchantId, $optParams = array()) @@ -1366,9 +1374,9 @@ public function get($merchantId, $accountId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of tax settings to return in * the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_AccounttaxListResponse */ public function listAccounttax($merchantId, $optParams = array()) @@ -1500,9 +1508,9 @@ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $pos * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of products to return in the * response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_DatafeedsListResponse */ public function listDatafeeds($merchantId, $optParams = array()) @@ -1598,9 +1606,9 @@ public function get($merchantId, $datafeedId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. * @opt_param string maxResults The maximum number of products to return in the * response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse */ public function listDatafeedstatuses($merchantId, $optParams = array()) @@ -1822,14 +1830,6 @@ public function gettestordertemplate($merchantId, $templateName, $optParams = ar * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string orderBy The ordering of the returned list. The only - * supported value are placedDate desc and placedDate asc for now, which returns - * orders sorted by placement date. "placedDate desc" stands for listing orders - * by placement date, from oldest to most recent. "placedDate asc" stands for - * listing orders by placement date, from most recent to oldest. In future - * releases we'll support other sorting criteria. - * @opt_param string placedDateEnd Obtains orders placed before this date - * (exclusively), in ISO 8601 format. * @opt_param bool acknowledged Obtains orders that match the acknowledgement * status. When set to true, obtains orders that have been acknowledged. When * false, obtains orders that have not been acknowledged. We recommend using @@ -1839,7 +1839,15 @@ public function gettestordertemplate($merchantId, $templateName, $optParams = ar * response, used for paging. The default value is 25 orders per page, and the * maximum allowed value is 250 orders per page. Known issue: All List calls * will return all Orders without limit regardless of the value of this field. + * @opt_param string orderBy The ordering of the returned list. The only + * supported value are placedDate desc and placedDate asc for now, which returns + * orders sorted by placement date. "placedDate desc" stands for listing orders + * by placement date, from oldest to most recent. "placedDate asc" stands for + * listing orders by placement date, from most recent to oldest. In future + * releases we'll support other sorting criteria. * @opt_param string pageToken The token returned by the previous request. + * @opt_param string placedDateEnd Obtains orders placed before this date + * (exclusively), in ISO 8601 format. * @opt_param string placedDateStart Obtains orders placed after this date * (inclusively), in ISO 8601 format. * @opt_param string statuses Obtains orders that match any of the specified @@ -2021,9 +2029,12 @@ public function insert($merchantId, Google_Service_ShoppingContent_Product $post * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param bool includeInvalidInsertedItems Flag to include the invalid + * inserted items in the result of the list request. By default the invalid + * items are not shown (the default value is false). * @opt_param string maxResults The maximum number of products to return in the * response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_ProductsListResponse */ public function listProducts($merchantId, $optParams = array()) @@ -2083,9 +2094,12 @@ public function get($merchantId, $productId, $optParams = array()) * @param string $merchantId The ID of the managing account. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token returned by the previous request. + * @opt_param bool includeInvalidInsertedItems Flag to include the invalid + * inserted items in the result of the list request. By default the invalid + * items are not shown (the default value is false). * @opt_param string maxResults The maximum number of product statuses to return * in the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ShoppingContent_ProductstatusesListResponse */ public function listProductstatuses($merchantId, $optParams = array()) @@ -4575,12 +4589,43 @@ public function getMessage() } } +class Google_Service_ShoppingContent_Installment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $months; + + + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } + public function setMonths($months) + { + $this->months = $months; + } + public function getMonths() + { + return $this->months; + } +} + class Google_Service_ShoppingContent_Inventory extends Google_Model { protected $internal_gapi_mappings = array( ); public $availability; + protected $installmentType = 'Google_Service_ShoppingContent_Installment'; + protected $installmentDataType = ''; public $kind; + protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; + protected $loyaltyPointsDataType = ''; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; public $quantity; @@ -4598,6 +4643,14 @@ public function getAvailability() { return $this->availability; } + public function setInstallment(Google_Service_ShoppingContent_Installment $installment) + { + $this->installment = $installment; + } + public function getInstallment() + { + return $this->installment; + } public function setKind($kind) { $this->kind = $kind; @@ -4606,6 +4659,14 @@ public function getKind() { return $this->kind; } + public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) + { + $this->loyaltyPoints = $loyaltyPoints; + } + public function getLoyaltyPoints() + { + return $this->loyaltyPoints; + } public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -4790,6 +4851,10 @@ class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model protected $internal_gapi_mappings = array( ); public $availability; + protected $installmentType = 'Google_Service_ShoppingContent_Installment'; + protected $installmentDataType = ''; + protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; + protected $loyaltyPointsDataType = ''; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; public $quantity; @@ -4807,6 +4872,22 @@ public function getAvailability() { return $this->availability; } + public function setInstallment(Google_Service_ShoppingContent_Installment $installment) + { + $this->installment = $installment; + } + public function getInstallment() + { + return $this->installment; + } + public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) + { + $this->loyaltyPoints = $loyaltyPoints; + } + public function getLoyaltyPoints() + { + return $this->loyaltyPoints; + } public function setPrice(Google_Service_ShoppingContent_Price $price) { $this->price = $price; @@ -4923,6 +5004,8 @@ class Google_Service_ShoppingContent_Order extends Google_Collection protected $paymentMethodDataType = ''; public $paymentStatus; public $placedDate; + protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; + protected $promotionsDataType = 'array'; protected $refundsType = 'Google_Service_ShoppingContent_OrderRefund'; protected $refundsDataType = 'array'; protected $shipmentsType = 'Google_Service_ShoppingContent_OrderShipment'; @@ -5031,6 +5114,14 @@ public function getPlacedDate() { return $this->placedDate; } + public function setPromotions($promotions) + { + $this->promotions = $promotions; + } + public function getPromotions() + { + return $this->promotions; + } public function setRefunds($refunds) { $this->refunds = $refunds; @@ -5769,6 +5860,135 @@ public function getType() } } +class Google_Service_ShoppingContent_OrderPromotion extends Google_Collection +{ + protected $collection_key = 'benefits'; + protected $internal_gapi_mappings = array( + ); + protected $benefitsType = 'Google_Service_ShoppingContent_OrderPromotionBenefit'; + protected $benefitsDataType = 'array'; + public $effectiveDates; + public $genericRedemptionCode; + public $id; + public $longTitle; + public $productApplicability; + public $redemptionChannel; + + + public function setBenefits($benefits) + { + $this->benefits = $benefits; + } + public function getBenefits() + { + return $this->benefits; + } + public function setEffectiveDates($effectiveDates) + { + $this->effectiveDates = $effectiveDates; + } + public function getEffectiveDates() + { + return $this->effectiveDates; + } + public function setGenericRedemptionCode($genericRedemptionCode) + { + $this->genericRedemptionCode = $genericRedemptionCode; + } + public function getGenericRedemptionCode() + { + return $this->genericRedemptionCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLongTitle($longTitle) + { + $this->longTitle = $longTitle; + } + public function getLongTitle() + { + return $this->longTitle; + } + public function setProductApplicability($productApplicability) + { + $this->productApplicability = $productApplicability; + } + public function getProductApplicability() + { + return $this->productApplicability; + } + public function setRedemptionChannel($redemptionChannel) + { + $this->redemptionChannel = $redemptionChannel; + } + public function getRedemptionChannel() + { + return $this->redemptionChannel; + } +} + +class Google_Service_ShoppingContent_OrderPromotionBenefit extends Google_Collection +{ + protected $collection_key = 'offerIds'; + protected $internal_gapi_mappings = array( + ); + protected $discountType = 'Google_Service_ShoppingContent_Price'; + protected $discountDataType = ''; + public $offerIds; + public $subType; + protected $taxImpactType = 'Google_Service_ShoppingContent_Price'; + protected $taxImpactDataType = ''; + public $type; + + + public function setDiscount(Google_Service_ShoppingContent_Price $discount) + { + $this->discount = $discount; + } + public function getDiscount() + { + return $this->discount; + } + public function setOfferIds($offerIds) + { + $this->offerIds = $offerIds; + } + public function getOfferIds() + { + return $this->offerIds; + } + public function setSubType($subType) + { + $this->subType = $subType; + } + public function getSubType() + { + return $this->subType; + } + public function setTaxImpact(Google_Service_ShoppingContent_Price $taxImpact) + { + $this->taxImpact = $taxImpact; + } + public function getTaxImpact() + { + return $this->taxImpact; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + class Google_Service_ShoppingContent_OrderRefund extends Google_Model { protected $internal_gapi_mappings = array( @@ -6039,6 +6259,8 @@ class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_ { protected $internal_gapi_mappings = array( ); + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; public $lineItemId; public $operationId; public $quantity; @@ -6046,6 +6268,14 @@ class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_ public $reasonText; + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; @@ -6399,12 +6629,22 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem { protected $internal_gapi_mappings = array( ); + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; public $lineItemId; public $quantity; public $reason; public $reasonText; + public function setAmount(Google_Service_ShoppingContent_Price $amount) + { + $this->amount = $amount; + } + public function getAmount() + { + return $this->amount; + } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; @@ -7216,7 +7456,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $id; public $identifierExists; public $imageLink; - protected $installmentType = 'Google_Service_ShoppingContent_ProductInstallment'; + protected $installmentType = 'Google_Service_ShoppingContent_Installment'; protected $installmentDataType = ''; public $isBundle; public $itemGroupId; @@ -7234,6 +7474,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; public $productType; + public $promotionIds; protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; public $salePriceEffectiveDate; @@ -7553,7 +7794,7 @@ public function getImageLink() { return $this->imageLink; } - public function setInstallment(Google_Service_ShoppingContent_ProductInstallment $installment) + public function setInstallment(Google_Service_ShoppingContent_Installment $installment) { $this->installment = $installment; } @@ -7673,6 +7914,14 @@ public function getProductType() { return $this->productType; } + public function setPromotionIds($promotionIds) + { + $this->promotionIds = $promotionIds; + } + public function getPromotionIds() + { + return $this->promotionIds; + } public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { $this->salePrice = $salePrice; @@ -7960,33 +8209,6 @@ public function getIntention() } } -class Google_Service_ShoppingContent_ProductInstallment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $months; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setMonths($months) - { - $this->months = $months; - } - public function getMonths() - { - return $this->months; - } -} - class Google_Service_ShoppingContent_ProductShipping extends Google_Model { protected $internal_gapi_mappings = array( @@ -8792,7 +9014,7 @@ public function getResources() class Google_Service_ShoppingContent_TestOrder extends Google_Collection { - protected $collection_key = 'lineItems'; + protected $collection_key = 'promotions'; protected $internal_gapi_mappings = array( ); protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer'; @@ -8803,6 +9025,8 @@ class Google_Service_ShoppingContent_TestOrder extends Google_Collection protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod'; protected $paymentMethodDataType = ''; public $predefinedDeliveryAddress; + protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; + protected $promotionsDataType = 'array'; protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; protected $shippingCostDataType = ''; protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; @@ -8850,6 +9074,14 @@ public function getPredefinedDeliveryAddress() { return $this->predefinedDeliveryAddress; } + public function setPromotions($promotions) + { + $this->promotions = $promotions; + } + public function getPromotions() + { + return $this->promotions; + } public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost) { $this->shippingCost = $shippingCost; diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index 1b9cb6731..cad7a6656 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'projection' => array( + 'predefinedDefaultObjectAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedDefaultObjectAcl' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -234,6 +234,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -246,10 +250,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'patch' => array( 'path' => 'b/{bucket}', @@ -260,23 +260,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedDefaultObjectAcl' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedAcl' => array( + 'predefinedDefaultObjectAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -290,23 +290,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedDefaultObjectAcl' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'predefinedAcl' => array( + 'predefinedDefaultObjectAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -591,15 +591,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifGenerationMatch' => array( + 'destinationPredefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'destinationPredefinedAcl' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -628,15 +628,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifSourceGenerationNotMatch' => array( + 'destinationPredefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationNotMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifSourceMetagenerationNotMatch' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -644,15 +644,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'sourceGeneration' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'destinationPredefinedAcl' => array( + 'ifSourceGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifSourceGenerationMatch' => array( + 'ifSourceGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -660,15 +660,15 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifSourceMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'sourceGeneration' => array( 'location' => 'query', 'type' => 'string', ), @@ -687,19 +687,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifGenerationNotMatch' => array( + 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'generation' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -722,19 +722,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifGenerationNotMatch' => array( + 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'generation' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -756,11 +756,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'predefinedAcl' => array( + 'contentEncoding' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -772,19 +772,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'contentEncoding' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'name' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'name' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -798,29 +798,29 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( + 'delimiter' => array( 'location' => 'query', 'type' => 'string', ), - 'versions' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'prefix' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'prefix' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'delimiter' => array( + 'versions' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ),'patch' => array( @@ -837,15 +837,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'predefinedAcl' => array( + 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationNotMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'generation' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -853,11 +853,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), @@ -890,55 +890,55 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'ifSourceGenerationNotMatch' => array( + 'destinationPredefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationNotMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'rewriteToken' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifSourceMetagenerationNotMatch' => array( + 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationMatch' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'sourceGeneration' => array( + 'ifSourceGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'destinationPredefinedAcl' => array( + 'ifSourceGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifSourceGenerationMatch' => array( + 'ifSourceMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'maxBytesRewrittenPerCall' => array( + 'ifSourceMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifSourceMetagenerationMatch' => array( + 'maxBytesRewrittenPerCall' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'rewriteToken' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'sourceGeneration' => array( 'location' => 'query', 'type' => 'string', ), @@ -957,15 +957,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'predefinedAcl' => array( + 'generation' => array( 'location' => 'query', 'type' => 'string', ), - 'ifGenerationNotMatch' => array( + 'ifGenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'generation' => array( + 'ifGenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), @@ -973,11 +973,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'ifGenerationMatch' => array( + 'ifMetagenerationNotMatch' => array( 'location' => 'query', 'type' => 'string', ), - 'ifMetagenerationNotMatch' => array( + 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', ), @@ -995,29 +995,29 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'projection' => array( + 'delimiter' => array( 'location' => 'query', 'type' => 'string', ), - 'versions' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'integer', ), - 'prefix' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'prefix' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'delimiter' => array( + 'versions' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), ), ), @@ -1203,11 +1203,11 @@ public function get($bucket, $optParams = array()) * * @opt_param string predefinedAcl Apply a predefined set of access controls to * this bucket. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @opt_param string projection Set of properties to return. Defaults to noAcl, * unless the bucket resource specifies acl or defaultObjectAcl properties, when * it defaults to full. - * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. * @return Google_Service_Storage_Bucket */ public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1223,12 +1223,12 @@ public function insert($project, Google_Service_Storage_Bucket $postBody, $optPa * @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 prefix Filter results to buckets whose names begin with * this prefix. * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param string maxResults Maximum number of buckets to return. * @return Google_Service_Storage_Buckets */ public function listBuckets($project, $optParams = array()) @@ -1245,17 +1245,17 @@ public function listBuckets($project, $optParams = array()) * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection Set of properties to return. Defaults to full. * @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 predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this bucket. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. + * @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()) @@ -1272,17 +1272,17 @@ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optPara * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection Set of properties to return. Defaults to full. * @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 predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this bucket. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. + * @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()) @@ -1608,12 +1608,12 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * @param Google_ComposeRequest $postBody * @param array $optParams Optional parameters. * + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the object's current metageneration matches the given value. - * @opt_param string destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. * @return Google_Service_Storage_StorageObject */ public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) @@ -1641,34 +1641,34 @@ public function compose($destinationBucket, $destinationObject, Google_Service_S * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional - * on whether the source object's generation does not match the given value. + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. + * @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 ifSourceMetagenerationNotMatch Makes the operation - * conditional on whether the source object's current metageneration does not - * match the given value. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the destination object's current metageneration matches the given * value. - * @opt_param string sourceGeneration If present, selects a specific revision of - * the source object (as opposed to the latest version, the default). - * @opt_param string destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. + * @opt_param string 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 ifGenerationMatch Makes the operation conditional on - * whether the destination object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the destination object's current metageneration does not match the - * given value. + * @opt_param string 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()) @@ -1688,14 +1688,14 @@ public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinat * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * - * @opt_param string ifGenerationNotMatch Makes the operation conditional on - * whether the object's current generation does not match the given value. * @opt_param string generation If present, permanently deletes a specific * revision of this object (as opposed to the latest version, the default). - * @opt_param string ifMetagenerationMatch Makes the operation conditional on - * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. + * @opt_param string 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. */ @@ -1714,14 +1714,14 @@ public function delete($bucket, $object, $optParams = array()) * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * - * @opt_param string ifGenerationNotMatch Makes the operation conditional on - * whether the object's generation does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string ifMetagenerationMatch Makes the operation conditional on - * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's generation matches the given value. + * @opt_param string 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. @@ -1742,15 +1742,6 @@ public function get($bucket, $object, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string projection Set of properties to return. Defaults to noAcl, - * unless the object resource specifies the acl property, when it defaults to - * full. - * @opt_param string ifGenerationNotMatch Makes the operation conditional on - * whether the object's current generation does not match the given value. - * @opt_param string ifMetagenerationMatch Makes the operation conditional on - * whether the object's current metageneration matches the given value. * @opt_param string contentEncoding If set, sets the contentEncoding property * of the final object to this value. Setting this parameter is equivalent to * setting the contentEncoding metadata property. This can be useful when @@ -1758,12 +1749,21 @@ public function get($bucket, $object, $optParams = array()) * content being uploaded. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. + * @opt_param string 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. For information about how to URL encode object names to be path safe, * see Encoding URI Path Parts. + * @opt_param string predefinedAcl Apply a predefined set of access controls to + * this object. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the object resource specifies the acl property, when it defaults to + * full. * @return Google_Service_Storage_StorageObject */ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1779,21 +1779,21 @@ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, * @param string $bucket Name of the bucket in which to look for objects. * @param array $optParams Optional parameters. * - * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of an object as distinct - * results. The default is false. For more information, see Object Versioning. - * @opt_param string prefix Filter results to objects whose names begin with - * this prefix. - * @opt_param string maxResults Maximum number of items plus prefixes to return. - * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. The default value of this parameter is 1,000 items. - * @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. + * @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. The default value of this parameter is 1,000 items. + * @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 an object as distinct + * results. The default is false. For more information, see Object Versioning. * @return Google_Service_Storage_Objects */ public function listObjects($bucket, $optParams = array()) @@ -1813,18 +1813,18 @@ public function listObjects($bucket, $optParams = array()) * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string ifGenerationNotMatch Makes the operation conditional on - * whether the object's current generation does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string ifMetagenerationMatch Makes the operation conditional on - * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. + * @opt_param string 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 predefinedAcl Apply a predefined set of access controls to + * this object. * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ @@ -1852,28 +1852,29 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional - * on whether the source object's generation does not match the given value. + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. + * @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 rewriteToken Include this field (from the previous rewrite - * response) on each rewrite request after the first one, until the rewrite - * response 'done' flag is true. Calls that provide a rewriteToken can omit all - * other request fields, but if included those fields must match the values - * provided in the first rewrite request. - * @opt_param string ifSourceMetagenerationNotMatch Makes the operation - * conditional on whether the source object's current metageneration does not - * match the given value. * @opt_param string ifMetagenerationMatch Makes the operation conditional on * whether the destination object's current metageneration matches the given * value. - * @opt_param string sourceGeneration If present, selects a specific revision of - * the source object (as opposed to the latest version, the default). - * @opt_param string destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. + * @opt_param string 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 maxBytesRewrittenPerCall The maximum number of bytes that * will be rewritten per rewrite request. Most callers shouldn't need to specify * this parameter - it is primarily in place to support testing. If specified @@ -1881,17 +1882,16 @@ public function patch($bucket, $object, Google_Service_Storage_StorageObject $po * applies to requests where the source and destination span locations and/or * storage classes. Finally, this value must not change across rewrite calls * else you'll get an error that the rewriteToken is invalid. - * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional - * on whether the source object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch Makes the operation conditional on - * whether the destination object's current generation matches the given value. - * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on - * whether the destination object's current metageneration does not match the - * given value. * @opt_param string projection Set of properties to return. Defaults to noAcl, * unless the object resource specifies the acl property, when it defaults to * full. + * @opt_param string rewriteToken Include this field (from the previous rewrite + * response) on each rewrite request after the first one, until the rewrite + * response 'done' flag is true. Calls that provide a rewriteToken can omit all + * other request fields, but if included those fields must match the values + * provided in the first rewrite request. + * @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_RewriteResponse */ public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) @@ -1910,18 +1910,18 @@ public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $desti * @param Google_StorageObject $postBody * @param array $optParams Optional parameters. * - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string ifGenerationNotMatch Makes the operation conditional on - * whether the object's current generation does not match the given value. * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). - * @opt_param string ifMetagenerationMatch Makes the operation conditional on - * whether the object's current metageneration matches the given value. * @opt_param string ifGenerationMatch Makes the operation conditional on * whether the object's current generation matches the given value. + * @opt_param string 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 predefinedAcl Apply a predefined set of access controls to + * this object. * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_StorageObject */ @@ -1939,21 +1939,21 @@ public function update($bucket, $object, Google_Service_Storage_StorageObject $p * @param Google_Channel $postBody * @param array $optParams Optional parameters. * - * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of an object as distinct - * results. The default is false. For more information, see Object Versioning. - * @opt_param string prefix Filter results to objects whose names begin with - * this prefix. - * @opt_param string maxResults Maximum number of items plus prefixes to return. - * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. The default value of this parameter is 1,000 items. - * @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. + * @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. The default value of this parameter is 1,000 items. + * @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 an object as distinct + * results. The default is false. For more information, see Object Versioning. * @return Google_Service_Storage_Channel */ public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) @@ -2700,10 +2700,6 @@ public function getType() } } -class Google_Service_Storage_ChannelParams extends Google_Model -{ -} - class Google_Service_Storage_ComposeRequest extends Google_Collection { protected $collection_key = 'sourceObjects'; @@ -3098,6 +3094,8 @@ class Google_Service_Storage_StorageObject extends Google_Collection public $contentLanguage; public $contentType; public $crc32c; + protected $customerEncryptionType = 'Google_Service_Storage_StorageObjectCustomerEncryption'; + protected $customerEncryptionDataType = ''; public $etag; public $generation; public $id; @@ -3189,6 +3187,14 @@ public function getCrc32c() { return $this->crc32c; } + public function setCustomerEncryption(Google_Service_Storage_StorageObjectCustomerEncryption $customerEncryption) + { + $this->customerEncryption = $customerEncryption; + } + public function getCustomerEncryption() + { + return $this->customerEncryption; + } public function setEtag($etag) { $this->etag = $etag; @@ -3319,8 +3325,30 @@ public function getUpdated() } } -class Google_Service_Storage_StorageObjectMetadata extends Google_Model +class Google_Service_Storage_StorageObjectCustomerEncryption extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $encryptionAlgorithm; + public $keySha256; + + + public function setEncryptionAlgorithm($encryptionAlgorithm) + { + $this->encryptionAlgorithm = $encryptionAlgorithm; + } + public function getEncryptionAlgorithm() + { + return $this->encryptionAlgorithm; + } + public function setKeySha256($keySha256) + { + $this->keySha256 = $keySha256; + } + public function getKeySha256() + { + return $this->keySha256; + } } class Google_Service_Storage_StorageObjectOwner extends Google_Model diff --git a/src/Google/Service/Storagetransfer.php b/src/Google/Service/Storagetransfer.php index 9141d5c04..bbafbddd0 100644 --- a/src/Google/Service/Storagetransfer.php +++ b/src/Google/Service/Storagetransfer.php @@ -1,6 +1,6 @@ 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/{+jobName}', @@ -178,14 +178,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'pause' => array( 'path' => 'v1/{+name}:pause', @@ -322,8 +322,8 @@ public function get($jobName, $optParams = array()) * array notation. `project_id` is required. `job_names` and `job_statuses` are * optional. The valid values for `job_statuses` are case-insensitive: * `ENABLED`, `DISABLED`, and `DELETED`. - * @opt_param string pageToken The list page token. * @opt_param int pageSize The list page size. The max allowed value is 256. + * @opt_param string pageToken The list page token. * @return Google_Service_Storagetransfer_ListTransferJobsResponse */ public function listTransferJobs($optParams = array()) @@ -420,8 +420,8 @@ public function get($name, $optParams = array()) * @param array $optParams Optional parameters. * * @opt_param string filter The standard list filter. - * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. * @return Google_Service_Storagetransfer_ListOperationsResponse */ public function listTransferOperations($name, $optParams = array()) @@ -861,14 +861,6 @@ public function getResponse() } } -class Google_Service_Storagetransfer_OperationMetadata extends Google_Model -{ -} - -class Google_Service_Storagetransfer_OperationResponse extends Google_Model -{ -} - class Google_Service_Storagetransfer_PauseTransferOperationRequest extends Google_Model { } @@ -951,10 +943,6 @@ public function getMessage() } } -class Google_Service_Storagetransfer_StatusDetails extends Google_Model -{ -} - class Google_Service_Storagetransfer_TimeOfDay extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php index 2f85d7fd5..2b343bca0 100644 --- a/src/Google/Service/TagManager.php +++ b/src/Google/Service/TagManager.php @@ -1,6 +1,6 @@ accounts_containers_environments = new Google_Service_TagManager_AccountsContainersEnvironments_Resource( + $this, + $this->serviceName, + 'environments', + array( + 'methods' => array( + 'create' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'environmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'environmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'environmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'environmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->accounts_containers_folders = new Google_Service_TagManager_AccountsContainersFolders_Resource( $this, $this->serviceName, @@ -353,17 +483,17 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'variableId' => array( + 'tagId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'tagId' => array( + 'triggerId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'triggerId' => array( + 'variableId' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, @@ -373,6 +503,36 @@ public function __construct(Google_Client $client) ) ) ); + $this->accounts_containers_reauthorize_environments = new Google_Service_TagManager_AccountsContainersReauthorizeEnvironments_Resource( + $this, + $this->serviceName, + 'reauthorize_environments', + array( + 'methods' => array( + 'update' => array( + 'path' => 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'containerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'environmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->accounts_containers_tags = new Google_Service_TagManager_AccountsContainersTags_Resource( $this, $this->serviceName, @@ -764,6 +924,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'publish' => array( 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', @@ -1083,6 +1247,121 @@ public function update($accountId, $containerId, Google_Service_TagManager_Conta } } +/** + * The "environments" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $environments = $tagmanagerService->environments; + * + */ +class Google_Service_TagManager_AccountsContainersEnvironments_Resource extends Google_Service_Resource +{ + + /** + * Creates a GTM Environment. (environments.create) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param Google_Environment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Environment + */ + public function create($accountId, $containerId, Google_Service_TagManager_Environment $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Environment"); + } + + /** + * Deletes a GTM Environment. (environments.delete) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $environmentId The GTM Environment ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $containerId, $environmentId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a GTM Environment. (environments.get) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $environmentId The GTM Environment ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Environment + */ + public function get($accountId, $containerId, $environmentId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Environment"); + } + + /** + * Lists all GTM Environments of a GTM Container. + * (environments.listAccountsContainersEnvironments) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_ListEnvironmentsResponse + */ + public function listAccountsContainersEnvironments($accountId, $containerId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListEnvironmentsResponse"); + } + + /** + * Updates a GTM Environment. This method supports patch semantics. + * (environments.patch) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $environmentId The GTM Environment ID. + * @param Google_Environment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the environment in storage. + * @return Google_Service_TagManager_Environment + */ + public function patch($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_TagManager_Environment"); + } + + /** + * Updates a GTM Environment. (environments.update) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $environmentId The GTM Environment ID. + * @param Google_Environment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the environment in storage. + * @return Google_Service_TagManager_Environment + */ + public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Environment"); + } +} /** * The "folders" collection of methods. * Typical usage is: @@ -1222,19 +1501,49 @@ class Google_Service_TagManager_AccountsContainersMoveFolders_Resource extends G * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. * @param string $folderId The GTM Folder ID. + * @param Google_Folder $postBody * @param array $optParams Optional parameters. * - * @opt_param string variableId The variables to be moved to the folder. * @opt_param string tagId The tags to be moved to the folder. * @opt_param string triggerId The triggers to be moved to the folder. + * @opt_param string variableId The variables to be moved to the folder. */ - public function update($accountId, $containerId, $folderId, $optParams = array()) + public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params)); } } +/** + * The "reauthorize_environments" collection of methods. + * Typical usage is: + * + * $tagmanagerService = new Google_Service_TagManager(...); + * $reauthorize_environments = $tagmanagerService->reauthorize_environments; + * + */ +class Google_Service_TagManager_AccountsContainersReauthorizeEnvironments_Resource extends Google_Service_Resource +{ + + /** + * Re-generates the authorization code for a GTM Environment. + * (reauthorize_environments.update) + * + * @param string $accountId The GTM Account ID. + * @param string $containerId The GTM Container ID. + * @param string $environmentId The GTM Environment ID. + * @param Google_Environment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Environment + */ + public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Environment"); + } +} /** * The "tags" collection of methods. * Typical usage is: @@ -1584,6 +1893,8 @@ public function get($accountId, $containerId, $containerVersionId, $optParams = * @param array $optParams Optional parameters. * * @opt_param bool headers Retrieve headers only when true. + * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when + * true. * @return Google_Service_TagManager_ListContainerVersionsResponse */ public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) @@ -2287,6 +2598,122 @@ public function getContainerVersion() } } +class Google_Service_TagManager_Environment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $authorizationCode; + public $authorizationTimestampMs; + public $containerId; + public $containerVersionId; + public $description; + public $enableDebug; + public $environmentId; + public $fingerprint; + public $name; + public $type; + public $url; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAuthorizationCode($authorizationCode) + { + $this->authorizationCode = $authorizationCode; + } + public function getAuthorizationCode() + { + return $this->authorizationCode; + } + public function setAuthorizationTimestampMs($authorizationTimestampMs) + { + $this->authorizationTimestampMs = $authorizationTimestampMs; + } + public function getAuthorizationTimestampMs() + { + return $this->authorizationTimestampMs; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + public function getContainerId() + { + return $this->containerId; + } + public function setContainerVersionId($containerVersionId) + { + $this->containerVersionId = $containerVersionId; + } + public function getContainerVersionId() + { + return $this->containerVersionId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEnableDebug($enableDebug) + { + $this->enableDebug = $enableDebug; + } + public function getEnableDebug() + { + return $this->enableDebug; + } + public function setEnvironmentId($environmentId) + { + $this->environmentId = $environmentId; + } + public function getEnvironmentId() + { + return $this->environmentId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + 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 setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + class Google_Service_TagManager_Folder extends Google_Model { protected $internal_gapi_mappings = array( @@ -2465,6 +2892,25 @@ public function getContainers() } } +class Google_Service_TagManager_ListEnvironmentsResponse extends Google_Collection +{ + protected $collection_key = 'environments'; + protected $internal_gapi_mappings = array( + ); + protected $environmentsType = 'Google_Service_TagManager_Environment'; + protected $environmentsDataType = 'array'; + + + public function setEnvironments($environments) + { + $this->environments = $environments; + } + public function getEnvironments() + { + return $this->environments; + } +} + class Google_Service_TagManager_ListFoldersResponse extends Google_Collection { protected $collection_key = 'folders'; diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php index 1fee8b35a..68bc4009d 100644 --- a/src/Google/Service/Taskqueue.php +++ b/src/Google/Service/Taskqueue.php @@ -1,6 +1,6 @@ 'users/@me/lists', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( + 'maxResults' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -194,19 +194,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'dueMax' => array( + 'completedMax' => array( 'location' => 'query', 'type' => 'string', ), - 'showDeleted' => array( + 'completedMin' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'updatedMin' => array( + 'dueMax' => array( 'location' => 'query', 'type' => 'string', ), - 'completedMin' => array( + 'dueMin' => array( 'location' => 'query', 'type' => 'string', ), @@ -214,23 +214,23 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'showCompleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'completedMax' => array( + 'showCompleted' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', ), 'showHidden' => array( 'location' => 'query', 'type' => 'boolean', ), - 'dueMin' => array( + 'updatedMin' => array( 'location' => 'query', 'type' => 'string', ), @@ -354,10 +354,10 @@ public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = arr * * @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. + * @opt_param string pageToken Token specifying the result page to return. + * Optional. * @return Google_Service_Tasks_TaskLists */ public function listTasklists($optParams = array()) @@ -481,29 +481,29 @@ public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParam * @param string $tasklist Task list identifier. * @param array $optParams Optional parameters. * - * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 - * timestamp) to filter by. Optional. The default is not to filter by due date. - * @opt_param bool showDeleted Flag indicating whether deleted tasks are - * returned in the result. Optional. The default is False. - * @opt_param string updatedMin Lower bound for a task's last modification time - * (as a RFC 3339 timestamp) to filter by. Optional. The default is not to - * filter by last modification time. + * @opt_param string 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 bool showCompleted Flag indicating whether completed tasks are - * returned in the result. Optional. The default is True. * @opt_param string pageToken Token specifying the result page to return. * Optional. - * @opt_param string completedMax Upper bound for a task's completion date (as a - * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by - * completion date. + * @opt_param bool 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 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 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()) diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php index c7f027daa..5391c68f6 100644 --- a/src/Google/Service/Translate.php +++ b/src/Google/Service/Translate.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'source' => array( + 'cid' => array( 'location' => 'query', 'type' => 'string', + 'repeated' => true, ), 'format' => array( 'location' => 'query', 'type' => 'string', ), - 'cid' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), ), ), @@ -208,9 +208,9 @@ class Google_Service_Translate_Translations_Resource extends Google_Service_Reso * 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 + * @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()) diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php index d46bb8c43..e9a6000ca 100644 --- a/src/Google/Service/Urlshortener.php +++ b/src/Google/Service/Urlshortener.php @@ -1,6 +1,6 @@ 'url/history', 'httpMethod' => 'GET', 'parameters' => array( - 'start-token' => array( + 'projection' => array( 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'start-token' => array( 'location' => 'query', 'type' => 'string', ), @@ -141,9 +141,9 @@ public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = a * * @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. - * @opt_param string projection Additional information to return. * @return Google_Service_Urlshortener_UrlHistory */ public function listUrl($optParams = array()) diff --git a/src/Google/Service/Vision.php b/src/Google/Service/Vision.php new file mode 100644 index 000000000..6384f601e --- /dev/null +++ b/src/Google/Service/Vision.php @@ -0,0 +1,1007 @@ + + * The Google Cloud Vision API allows developers to easily integrate Google + * vision features, including image labeling, face, logo, and landmark + * detection, optical character recognition (OCR), and detection of explicit + * content, into applications.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_Vision extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $images; + + + /** + * Constructs the internal representation of the Vision service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://vision.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'vision'; + + $this->images = new Google_Service_Vision_Images_Resource( + $this, + $this->serviceName, + 'images', + array( + 'methods' => array( + 'annotate' => array( + 'path' => 'v1/images:annotate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "images" collection of methods. + * Typical usage is: + * + * $visionService = new Google_Service_Vision(...); + * $images = $visionService->images; + * + */ +class Google_Service_Vision_Images_Resource extends Google_Service_Resource +{ + + /** + * Run image detection and annotation for a batch of images. (images.annotate) + * + * @param Google_BatchAnnotateImagesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_BatchAnnotateImagesResponse + */ + public function annotate(Google_Service_Vision_BatchAnnotateImagesRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('annotate', array($params), "Google_Service_Vision_BatchAnnotateImagesResponse"); + } +} + + + + +class Google_Service_Vision_AnnotateImageRequest extends Google_Collection +{ + protected $collection_key = 'features'; + protected $internal_gapi_mappings = array( + ); + protected $featuresType = 'Google_Service_Vision_Feature'; + protected $featuresDataType = 'array'; + protected $imageType = 'Google_Service_Vision_Image'; + protected $imageDataType = ''; + protected $imageContextType = 'Google_Service_Vision_ImageContext'; + protected $imageContextDataType = ''; + + + public function setFeatures($features) + { + $this->features = $features; + } + public function getFeatures() + { + return $this->features; + } + public function setImage(Google_Service_Vision_Image $image) + { + $this->image = $image; + } + public function getImage() + { + return $this->image; + } + public function setImageContext(Google_Service_Vision_ImageContext $imageContext) + { + $this->imageContext = $imageContext; + } + public function getImageContext() + { + return $this->imageContext; + } +} + +class Google_Service_Vision_AnnotateImageResponse extends Google_Collection +{ + protected $collection_key = 'textAnnotations'; + protected $internal_gapi_mappings = array( + ); + protected $errorType = 'Google_Service_Vision_Status'; + protected $errorDataType = ''; + protected $faceAnnotationsType = 'Google_Service_Vision_FaceAnnotation'; + protected $faceAnnotationsDataType = 'array'; + protected $imagePropertiesAnnotationType = 'Google_Service_Vision_ImageProperties'; + protected $imagePropertiesAnnotationDataType = ''; + protected $labelAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; + protected $labelAnnotationsDataType = 'array'; + protected $landmarkAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; + protected $landmarkAnnotationsDataType = 'array'; + protected $logoAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; + protected $logoAnnotationsDataType = 'array'; + protected $safeSearchAnnotationType = 'Google_Service_Vision_SafeSearchAnnotation'; + protected $safeSearchAnnotationDataType = ''; + protected $textAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; + protected $textAnnotationsDataType = 'array'; + + + public function setError(Google_Service_Vision_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setFaceAnnotations($faceAnnotations) + { + $this->faceAnnotations = $faceAnnotations; + } + public function getFaceAnnotations() + { + return $this->faceAnnotations; + } + public function setImagePropertiesAnnotation(Google_Service_Vision_ImageProperties $imagePropertiesAnnotation) + { + $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; + } + public function getImagePropertiesAnnotation() + { + return $this->imagePropertiesAnnotation; + } + public function setLabelAnnotations($labelAnnotations) + { + $this->labelAnnotations = $labelAnnotations; + } + public function getLabelAnnotations() + { + return $this->labelAnnotations; + } + public function setLandmarkAnnotations($landmarkAnnotations) + { + $this->landmarkAnnotations = $landmarkAnnotations; + } + public function getLandmarkAnnotations() + { + return $this->landmarkAnnotations; + } + public function setLogoAnnotations($logoAnnotations) + { + $this->logoAnnotations = $logoAnnotations; + } + public function getLogoAnnotations() + { + return $this->logoAnnotations; + } + public function setSafeSearchAnnotation(Google_Service_Vision_SafeSearchAnnotation $safeSearchAnnotation) + { + $this->safeSearchAnnotation = $safeSearchAnnotation; + } + public function getSafeSearchAnnotation() + { + return $this->safeSearchAnnotation; + } + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + public function getTextAnnotations() + { + return $this->textAnnotations; + } +} + +class Google_Service_Vision_BatchAnnotateImagesRequest extends Google_Collection +{ + protected $collection_key = 'requests'; + protected $internal_gapi_mappings = array( + ); + protected $requestsType = 'Google_Service_Vision_AnnotateImageRequest'; + protected $requestsDataType = 'array'; + + + public function setRequests($requests) + { + $this->requests = $requests; + } + public function getRequests() + { + return $this->requests; + } +} + +class Google_Service_Vision_BatchAnnotateImagesResponse extends Google_Collection +{ + protected $collection_key = 'responses'; + protected $internal_gapi_mappings = array( + ); + protected $responsesType = 'Google_Service_Vision_AnnotateImageResponse'; + protected $responsesDataType = 'array'; + + + public function setResponses($responses) + { + $this->responses = $responses; + } + public function getResponses() + { + return $this->responses; + } +} + +class Google_Service_Vision_BoundingPoly extends Google_Collection +{ + protected $collection_key = 'vertices'; + protected $internal_gapi_mappings = array( + ); + protected $verticesType = 'Google_Service_Vision_Vertex'; + protected $verticesDataType = 'array'; + + + public function setVertices($vertices) + { + $this->vertices = $vertices; + } + public function getVertices() + { + return $this->vertices; + } +} + +class Google_Service_Vision_Color extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alpha; + public $blue; + public $green; + public $red; + + + public function setAlpha($alpha) + { + $this->alpha = $alpha; + } + public function getAlpha() + { + return $this->alpha; + } + public function setBlue($blue) + { + $this->blue = $blue; + } + public function getBlue() + { + return $this->blue; + } + public function setGreen($green) + { + $this->green = $green; + } + public function getGreen() + { + return $this->green; + } + public function setRed($red) + { + $this->red = $red; + } + public function getRed() + { + return $this->red; + } +} + +class Google_Service_Vision_ColorInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $colorType = 'Google_Service_Vision_Color'; + protected $colorDataType = ''; + public $pixelFraction; + public $score; + + + public function setColor(Google_Service_Vision_Color $color) + { + $this->color = $color; + } + public function getColor() + { + return $this->color; + } + public function setPixelFraction($pixelFraction) + { + $this->pixelFraction = $pixelFraction; + } + public function getPixelFraction() + { + return $this->pixelFraction; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} + +class Google_Service_Vision_DominantColorsAnnotation extends Google_Collection +{ + protected $collection_key = 'colors'; + protected $internal_gapi_mappings = array( + ); + protected $colorsType = 'Google_Service_Vision_ColorInfo'; + protected $colorsDataType = 'array'; + + + public function setColors($colors) + { + $this->colors = $colors; + } + public function getColors() + { + return $this->colors; + } +} + +class Google_Service_Vision_EntityAnnotation extends Google_Collection +{ + protected $collection_key = 'properties'; + protected $internal_gapi_mappings = array( + ); + protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; + protected $boundingPolyDataType = ''; + public $confidence; + public $description; + public $locale; + protected $locationsType = 'Google_Service_Vision_LocationInfo'; + protected $locationsDataType = 'array'; + public $mid; + protected $propertiesType = 'Google_Service_Vision_Property'; + protected $propertiesDataType = 'array'; + public $score; + public $topicality; + + + public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) + { + $this->boundingPoly = $boundingPoly; + } + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setLocations($locations) + { + $this->locations = $locations; + } + public function getLocations() + { + return $this->locations; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setTopicality($topicality) + { + $this->topicality = $topicality; + } + public function getTopicality() + { + return $this->topicality; + } +} + +class Google_Service_Vision_FaceAnnotation extends Google_Collection +{ + protected $collection_key = 'landmarks'; + protected $internal_gapi_mappings = array( + ); + public $angerLikelihood; + public $blurredLikelihood; + protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; + protected $boundingPolyDataType = ''; + public $detectionConfidence; + protected $fdBoundingPolyType = 'Google_Service_Vision_BoundingPoly'; + protected $fdBoundingPolyDataType = ''; + public $headwearLikelihood; + public $joyLikelihood; + public $landmarkingConfidence; + protected $landmarksType = 'Google_Service_Vision_Landmark'; + protected $landmarksDataType = 'array'; + public $panAngle; + public $rollAngle; + public $sorrowLikelihood; + public $surpriseLikelihood; + public $tiltAngle; + public $underExposedLikelihood; + + + public function setAngerLikelihood($angerLikelihood) + { + $this->angerLikelihood = $angerLikelihood; + } + public function getAngerLikelihood() + { + return $this->angerLikelihood; + } + public function setBlurredLikelihood($blurredLikelihood) + { + $this->blurredLikelihood = $blurredLikelihood; + } + public function getBlurredLikelihood() + { + return $this->blurredLikelihood; + } + public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) + { + $this->boundingPoly = $boundingPoly; + } + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setDetectionConfidence($detectionConfidence) + { + $this->detectionConfidence = $detectionConfidence; + } + public function getDetectionConfidence() + { + return $this->detectionConfidence; + } + public function setFdBoundingPoly(Google_Service_Vision_BoundingPoly $fdBoundingPoly) + { + $this->fdBoundingPoly = $fdBoundingPoly; + } + public function getFdBoundingPoly() + { + return $this->fdBoundingPoly; + } + public function setHeadwearLikelihood($headwearLikelihood) + { + $this->headwearLikelihood = $headwearLikelihood; + } + public function getHeadwearLikelihood() + { + return $this->headwearLikelihood; + } + public function setJoyLikelihood($joyLikelihood) + { + $this->joyLikelihood = $joyLikelihood; + } + public function getJoyLikelihood() + { + return $this->joyLikelihood; + } + public function setLandmarkingConfidence($landmarkingConfidence) + { + $this->landmarkingConfidence = $landmarkingConfidence; + } + public function getLandmarkingConfidence() + { + return $this->landmarkingConfidence; + } + public function setLandmarks($landmarks) + { + $this->landmarks = $landmarks; + } + public function getLandmarks() + { + return $this->landmarks; + } + public function setPanAngle($panAngle) + { + $this->panAngle = $panAngle; + } + public function getPanAngle() + { + return $this->panAngle; + } + public function setRollAngle($rollAngle) + { + $this->rollAngle = $rollAngle; + } + public function getRollAngle() + { + return $this->rollAngle; + } + public function setSorrowLikelihood($sorrowLikelihood) + { + $this->sorrowLikelihood = $sorrowLikelihood; + } + public function getSorrowLikelihood() + { + return $this->sorrowLikelihood; + } + public function setSurpriseLikelihood($surpriseLikelihood) + { + $this->surpriseLikelihood = $surpriseLikelihood; + } + public function getSurpriseLikelihood() + { + return $this->surpriseLikelihood; + } + public function setTiltAngle($tiltAngle) + { + $this->tiltAngle = $tiltAngle; + } + public function getTiltAngle() + { + return $this->tiltAngle; + } + public function setUnderExposedLikelihood($underExposedLikelihood) + { + $this->underExposedLikelihood = $underExposedLikelihood; + } + public function getUnderExposedLikelihood() + { + return $this->underExposedLikelihood; + } +} + +class Google_Service_Vision_Feature extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $maxResults; + public $type; + + + public function setMaxResults($maxResults) + { + $this->maxResults = $maxResults; + } + public function getMaxResults() + { + return $this->maxResults; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Vision_Image extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $content; + protected $sourceType = 'Google_Service_Vision_ImageSource'; + protected $sourceDataType = ''; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } + public function setSource(Google_Service_Vision_ImageSource $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Vision_ImageContext extends Google_Collection +{ + protected $collection_key = 'languageHints'; + protected $internal_gapi_mappings = array( + ); + public $languageHints; + protected $latLongRectType = 'Google_Service_Vision_LatLongRect'; + protected $latLongRectDataType = ''; + + + public function setLanguageHints($languageHints) + { + $this->languageHints = $languageHints; + } + public function getLanguageHints() + { + return $this->languageHints; + } + public function setLatLongRect(Google_Service_Vision_LatLongRect $latLongRect) + { + $this->latLongRect = $latLongRect; + } + public function getLatLongRect() + { + return $this->latLongRect; + } +} + +class Google_Service_Vision_ImageProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dominantColorsType = 'Google_Service_Vision_DominantColorsAnnotation'; + protected $dominantColorsDataType = ''; + + + public function setDominantColors(Google_Service_Vision_DominantColorsAnnotation $dominantColors) + { + $this->dominantColors = $dominantColors; + } + public function getDominantColors() + { + return $this->dominantColors; + } +} + +class Google_Service_Vision_ImageSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $gcsImageUri; + + + public function setGcsImageUri($gcsImageUri) + { + $this->gcsImageUri = $gcsImageUri; + } + public function getGcsImageUri() + { + return $this->gcsImageUri; + } +} + +class Google_Service_Vision_Landmark extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $positionType = 'Google_Service_Vision_Position'; + protected $positionDataType = ''; + public $type; + + + public function setPosition(Google_Service_Vision_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Vision_LatLng extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Vision_LatLongRect extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $maxLatLngType = 'Google_Service_Vision_LatLng'; + protected $maxLatLngDataType = ''; + protected $minLatLngType = 'Google_Service_Vision_LatLng'; + protected $minLatLngDataType = ''; + + + public function setMaxLatLng(Google_Service_Vision_LatLng $maxLatLng) + { + $this->maxLatLng = $maxLatLng; + } + public function getMaxLatLng() + { + return $this->maxLatLng; + } + public function setMinLatLng(Google_Service_Vision_LatLng $minLatLng) + { + $this->minLatLng = $minLatLng; + } + public function getMinLatLng() + { + return $this->minLatLng; + } +} + +class Google_Service_Vision_LocationInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $latLngType = 'Google_Service_Vision_LatLng'; + protected $latLngDataType = ''; + + + public function setLatLng(Google_Service_Vision_LatLng $latLng) + { + $this->latLng = $latLng; + } + public function getLatLng() + { + return $this->latLng; + } +} + +class Google_Service_Vision_Position extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $x; + public $y; + public $z; + + + public function setX($x) + { + $this->x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } + public function setZ($z) + { + $this->z = $z; + } + public function getZ() + { + return $this->z; + } +} + +class Google_Service_Vision_Property extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Vision_SafeSearchAnnotation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adult; + public $medical; + public $spoof; + public $violence; + + + public function setAdult($adult) + { + $this->adult = $adult; + } + public function getAdult() + { + return $this->adult; + } + public function setMedical($medical) + { + $this->medical = $medical; + } + public function getMedical() + { + return $this->medical; + } + public function setSpoof($spoof) + { + $this->spoof = $spoof; + } + public function getSpoof() + { + return $this->spoof; + } + public function setViolence($violence) + { + $this->violence = $violence; + } + public function getViolence() + { + return $this->violence; + } +} + +class Google_Service_Vision_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Vision_Vertex extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $x; + public $y; + + + public function setX($x) + { + $this->x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index 85b56b919..d4462d4e8 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -1,6 +1,6 @@ - * Lets you view Google Webmaster Tools data for your verified sites.

    + * Lets you view Google Search Console data for your verified sites.

    * *

    * For more information about this service, see the API @@ -30,10 +30,10 @@ */ class Google_Service_Webmasters extends Google_Service { - /** View and modify Webmaster Tools data for your verified sites. */ + /** View and manage Search Console data for your verified sites. */ const WEBMASTERS = "https://www.googleapis.com/auth/webmasters"; - /** View Webmaster Tools data for your verified sites. */ + /** View Search Console data for your verified sites. */ const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; @@ -209,14 +209,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - ), 'latestCountsOnly' => array( 'location' => 'query', 'type' => 'boolean', ), + 'platform' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -434,7 +434,7 @@ class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource { /** - * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) + * Adds a site to the set of the user's sites in Search Console. (sites.add) * * @param string $siteUrl The URL of the site to add. * @param array $optParams Optional parameters. @@ -447,7 +447,7 @@ public function add($siteUrl, $optParams = array()) } /** - * Removes a site from the set of the user's Webmaster Tools sites. + * Removes a site from the set of the user's Search Console sites. * (sites.delete) * * @param string $siteUrl The URI of the property as defined in Search Console. @@ -477,7 +477,7 @@ public function get($siteUrl, $optParams = array()) } /** - * Lists the user's Webmaster Tools sites. (sites.listSites) + * Lists the user's Search Console sites. (sites.listSites) * * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_SitesListResponse @@ -511,11 +511,11 @@ class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Ser * * @opt_param string category The crawl error category. For example: * serverError. If not specified, returns results for all categories. + * @opt_param bool latestCountsOnly If true, returns only the latest crawl error + * counts. * @opt_param string platform The user agent type (platform) that made the * request. For example: web. If not specified, returns results for all * platforms. - * @opt_param bool latestCountsOnly If true, returns only the latest crawl error - * counts. * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse */ public function query($siteUrl, $optParams = array()) diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index 651088390..e23550fdc 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -1,6 +1,6 @@ 'string', 'required' => true, ), - 'regionCode' => array( + 'channelId' => array( 'location' => 'query', 'type' => 'string', ), - 'publishedBefore' => array( + 'home' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'channelId' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'mine' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'publishedAfter' => array( 'location' => 'query', 'type' => 'string', ), - 'home' => array( + 'publishedBefore' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'publishedAfter' => array( + 'regionCode' => array( 'location' => 'query', 'type' => 'string', ), @@ -180,19 +185,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'tfmt' => array( + 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOf' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'tlang' => array( + 'tfmt' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'tlang' => array( 'location' => 'query', 'type' => 'string', ), @@ -233,11 +238,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOf' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'onBehalfOf' => array( 'location' => 'query', 'type' => 'string', ), @@ -320,11 +325,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -338,23 +343,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'channelId' => array( 'location' => 'query', 'type' => 'string', ), - 'channelId' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'mine' => array( + 'id' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'hl' => array( + 'mine' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'id' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), @@ -392,19 +397,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'managedByMe' => array( + 'categoryId' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'forUsername' => array( 'location' => 'query', 'type' => 'string', ), - 'forUsername' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'mine' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'managedByMe' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -412,23 +421,19 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( + 'mine' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), 'mySubscribers' => array( 'location' => 'query', 'type' => 'boolean', ), - 'hl' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'categoryId' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -476,10 +481,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'searchTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), 'allThreadsRelatedToChannelId' => array( 'location' => 'query', 'type' => 'string', @@ -488,7 +489,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'videoId' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), @@ -496,7 +497,11 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'id' => array( + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( 'location' => 'query', 'type' => 'string', ), @@ -504,7 +509,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'moderationStatus' => array( + 'searchTerms' => array( 'location' => 'query', 'type' => 'string', ), @@ -512,7 +517,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'order' => array( + 'videoId' => array( 'location' => 'query', 'type' => 'string', ), @@ -566,6 +571,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -582,10 +591,6 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'markAsSpam' => array( 'path' => 'comments/markAsSpam', @@ -630,6 +635,38 @@ public function __construct(Google_Client $client) ) ) ); + $this->fanFundingEvents = new Google_Service_YouTube_FanFundingEvents_Resource( + $this, + $this->serviceName, + 'fanFundingEvents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'fanFundingEvents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( $this, $this->serviceName, @@ -645,7 +682,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'regionCode' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), @@ -653,7 +690,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'hl' => array( + 'regionCode' => array( 'location' => 'query', 'type' => 'string', ), @@ -730,41 +767,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'bind_direct' => array( - 'path' => 'liveBroadcasts/bind/direct', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'streamId' => array( 'location' => 'query', 'type' => 'string', @@ -784,19 +794,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'displaySlate' => array( 'location' => 'query', 'type' => 'boolean', ), - 'onBehalfOfContentOwnerChannel' => array( + 'offsetTimeMs' => array( 'location' => 'query', 'type' => 'string', ), - 'offsetTimeMs' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -814,11 +824,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -832,11 +842,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -854,27 +864,31 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'broadcastType' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwnerChannel' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'mine' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -898,11 +912,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -916,11 +930,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -929,14 +943,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( + $this->liveChatBans = new Google_Service_YouTube_LiveChatBans_Resource( $this, $this->serviceName, - 'liveStreams', + 'liveChatBans', array( 'methods' => array( 'delete' => array( - 'path' => 'liveStreams', + 'path' => 'liveChat/bans', 'httpMethod' => 'DELETE', 'parameters' => array( 'id' => array( @@ -944,17 +958,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'insert' => array( - 'path' => 'liveStreams', + 'path' => 'liveChat/bans', 'httpMethod' => 'POST', 'parameters' => array( 'part' => array( @@ -962,36 +968,55 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + ), + ), + ) + ) + ); + $this->liveChatMessages = new Google_Service_YouTube_LiveChatMessages_Resource( + $this, + $this->serviceName, + 'liveChatMessages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveChat/messages', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), - 'onBehalfOfContentOwner' => array( + ), + ),'insert' => array( + 'path' => 'liveChat/messages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), ), ),'list' => array( - 'path' => 'liveStreams', + 'path' => 'liveChat/messages', 'httpMethod' => 'GET', 'parameters' => array( - 'part' => array( + 'liveChatId' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'part' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1000,28 +1025,161 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'profileImageSize' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), ), - ),'update' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( + ), + ) + ) + ); + $this->liveChatModerators = new Google_Service_YouTube_LiveChatModerators_Resource( + $this, + $this->serviceName, + 'liveChatModerators', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveChat/moderators', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'liveChat/moderators', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'liveChat/moderators', + 'httpMethod' => 'GET', + 'parameters' => array( + 'liveChatId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( + $this, + $this->serviceName, + 'liveStreams', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1066,27 +1224,27 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), - 'playlistId' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), - 'videoId' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageToken' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'pageToken' => array( + 'playlistId' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'videoId' => array( 'location' => 'query', 'type' => 'string', ), @@ -1134,11 +1292,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwner' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), @@ -1152,35 +1310,35 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'channelId' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwnerChannel' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'channelId' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'hl' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -1218,123 +1376,123 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'eventType' => array( + 'channelId' => array( 'location' => 'query', 'type' => 'string', ), - 'channelId' => array( + 'channelType' => array( 'location' => 'query', 'type' => 'string', ), + 'eventType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forContentOwner' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'forDeveloper' => array( 'location' => 'query', 'type' => 'boolean', ), - 'videoSyndicated' => array( + 'forMine' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'channelType' => array( + 'location' => array( 'location' => 'query', 'type' => 'string', ), - 'videoCaption' => array( + 'locationRadius' => array( 'location' => 'query', 'type' => 'string', ), - 'publishedAfter' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'order' => array( 'location' => 'query', 'type' => 'string', ), - 'forContentOwner' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'regionCode' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'location' => array( + 'publishedAfter' => array( 'location' => 'query', 'type' => 'string', ), - 'locationRadius' => array( + 'publishedBefore' => array( 'location' => 'query', 'type' => 'string', ), - 'videoType' => array( + 'q' => array( 'location' => 'query', 'type' => 'string', ), - 'type' => array( + 'regionCode' => array( 'location' => 'query', 'type' => 'string', ), - 'topicId' => array( + 'relatedToVideoId' => array( 'location' => 'query', 'type' => 'string', ), - 'publishedBefore' => array( + 'relevanceLanguage' => array( 'location' => 'query', 'type' => 'string', ), - 'videoDimension' => array( + 'safeSearch' => array( 'location' => 'query', 'type' => 'string', ), - 'videoLicense' => array( + 'topicId' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'relatedToVideoId' => array( + 'type' => array( 'location' => 'query', 'type' => 'string', ), - 'videoDefinition' => array( + 'videoCaption' => array( 'location' => 'query', 'type' => 'string', ), - 'videoDuration' => array( + 'videoCategoryId' => array( 'location' => 'query', 'type' => 'string', ), - 'relevanceLanguage' => array( + 'videoDefinition' => array( 'location' => 'query', 'type' => 'string', ), - 'forMine' => array( + 'videoDimension' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'q' => array( + 'videoDuration' => array( 'location' => 'query', 'type' => 'string', ), - 'safeSearch' => array( + 'videoEmbeddable' => array( 'location' => 'query', 'type' => 'string', ), - 'videoEmbeddable' => array( + 'videoLicense' => array( 'location' => 'query', 'type' => 'string', ), - 'videoCategoryId' => array( + 'videoSyndicated' => array( 'location' => 'query', 'type' => 'string', ), - 'order' => array( + 'videoType' => array( 'location' => 'query', 'type' => 'string', ), @@ -1343,22 +1501,54 @@ public function __construct(Google_Client $client) ) ) ); - $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( + $this->sponsors = new Google_Service_YouTube_Sponsors_Resource( $this, $this->serviceName, - 'subscriptions', + 'sponsors', array( 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'DELETE', + 'list' => array( + 'path' => 'sponsors', + 'httpMethod' => 'GET', 'parameters' => array( - 'id' => array( + 'part' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), - ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => 'subscriptions', 'httpMethod' => 'POST', @@ -1378,43 +1568,43 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'channelId' => array( 'location' => 'query', 'type' => 'string', ), - 'onBehalfOfContentOwnerChannel' => array( + 'forChannelId' => array( 'location' => 'query', 'type' => 'string', ), - 'channelId' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'mine' => array( 'location' => 'query', 'type' => 'boolean', ), - 'maxResults' => array( + 'mySubscribers' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'boolean', ), - 'forChannelId' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', 'type' => 'string', ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'order' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -1486,7 +1676,7 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'regionCode' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), @@ -1494,7 +1684,7 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'string', ), - 'hl' => array( + 'regionCode' => array( 'location' => 'query', 'type' => 'string', ), @@ -1546,23 +1736,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( + 'autoLevels' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'boolean', ), - 'stabilize' => array( + 'notifySubscribers' => array( 'location' => 'query', 'type' => 'boolean', ), - 'onBehalfOfContentOwnerChannel' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'notifySubscribers' => array( + 'onBehalfOfContentOwnerChannel' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), - 'autoLevels' => array( + 'stabilize' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -1576,23 +1766,19 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( + 'chart' => array( 'location' => 'query', 'type' => 'string', ), - 'locale' => array( + 'hl' => array( 'location' => 'query', 'type' => 'string', ), - 'videoCategoryId' => array( + 'id' => array( 'location' => 'query', 'type' => 'string', ), - 'chart' => array( + 'locale' => array( 'location' => 'query', 'type' => 'string', ), @@ -1600,19 +1786,23 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( + 'myRating' => array( 'location' => 'query', 'type' => 'string', ), - 'hl' => array( + 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), - 'myRating' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'id' => array( + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( 'location' => 'query', 'type' => 'string', ), @@ -1755,37 +1945,37 @@ public function insert($part, Google_Service_YouTube_Activity $postBody, $optPar * those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return results for the specified country. The parameter value is an ISO - * 3166-1 alpha-2 country code. YouTube uses this value when the authorized - * user's previous activity on YouTube does not provide enough information to - * generate the activity feed. - * @opt_param string publishedBefore The publishedBefore parameter specifies the - * date and time before which an activity must have occurred for that activity - * to be included in the API response. If the parameter value specifies a day, - * but not a time, then any activities that occurred that day will be excluded - * from the result set. The value is specified in ISO 8601 (YYYY-MM- - * DDThh:mm:ss.sZ) format. * @opt_param string channelId The channelId parameter specifies a unique * YouTube channel ID. The API will then return a list of that channel's * activities. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's activities. + * @opt_param bool home Set this parameter's value to true to retrieve the + * activity feed that displays on the YouTube home page for the currently + * authenticated user. * @opt_param string 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 retrieve a feed of + * the authenticated user's activities. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param bool home Set this parameter's value to true to retrieve the - * activity feed that displays on the YouTube home page for the currently - * authenticated user. * @opt_param string publishedAfter The publishedAfter parameter specifies the * earliest date and time that an activity could have occurred for that activity * to be included in the API response. If the parameter value specifies a day, * but not a time, then any activities that occurred that day will be included * in the result set. The value is specified in ISO 8601 (YYYY-MM- * DDThh:mm:ss.sZ) format. + * @opt_param string publishedBefore The publishedBefore parameter specifies the + * date and time before which an activity must have occurred for that activity + * to be included in the API response. If the parameter value specifies a day, + * but not a time, then any activities that occurred that day will be excluded + * from the result set. The value is specified in ISO 8601 (YYYY-MM- + * DDThh:mm:ss.sZ) format. + * @opt_param string regionCode The regionCode parameter instructs the API to + * return results for the specified country. The parameter value is an ISO + * 3166-1 alpha-2 country code. YouTube uses this value when the authorized + * user's previous activity on YouTube does not provide enough information to + * generate the activity feed. * @return Google_Service_YouTube_ActivityListResponse */ public function listActivities($part, $optParams = array()) @@ -1848,16 +2038,8 @@ public function delete($id, $optParams = array()) * in a caption resource. * @param array $optParams Optional parameters. * - * @opt_param string tfmt The tfmt parameter specifies that the caption track - * should be returned in a specific format. If the parameter is not included in - * the request, the track is returned in its original format. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the * request is be on behalf of - * @opt_param string tlang The tlang parameter specifies that the API response - * should return a translation of the specified caption track. The parameter - * value is an ISO 639-1 two-letter language code that identifies the desired - * caption language. The translation is generated by using machine translation, - * such as Google Translate. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -1870,6 +2052,14 @@ public function delete($id, $optParams = array()) * authentication credentials for each individual channel. The actual CMS * account that the user authenticates with must be linked to the specified * YouTube content owner. + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. */ public function download($id, $optParams = array()) { @@ -1930,11 +2120,11 @@ public function insert($part, Google_Service_YouTube_Caption $postBody, $optPara * of the video for which the API should return caption tracks. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is on behalf of. * @opt_param string id The id parameter specifies a comma-separated list of IDs * that identify the caption resources that should be retrieved. Each ID must * identify a caption track associated with the specified video. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -2099,6 +2289,18 @@ public function delete($id, $optParams = array()) * @param Google_ChannelSection $postBody * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -2118,18 +2320,6 @@ public function delete($id, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_ChannelSection */ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) @@ -2155,22 +2345,8 @@ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $ * response will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @opt_param string channelId The channelId parameter specifies a YouTube * channel ID. The API will only return that channel's channelSections. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. * @opt_param string hl The hl parameter indicates that the snippet.localized * property values in the returned channelSection resources should be in the * specified language if localized values for that language are available. For @@ -2182,6 +2358,20 @@ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $ * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In * a channelSection resource, the id property specifies the YouTube * channelSection ID. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @return Google_Service_YouTube_ChannelSectionListResponse */ public function listChannelSections($part, $optParams = array()) @@ -2250,6 +2440,17 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * 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 forUsername The forUsername parameter specifies a YouTube + * username, thereby requesting the channel associated with that username. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the brandingSettings + * part. + * @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 Note: This parameter is intended exclusively for * YouTube content partners. * @@ -2257,6 +2458,13 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * 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 bool mySubscribers Use the subscriptions.list method and its + * mySubscribers parameter to retrieve a list of subscribers to the + * authenticated user's channel. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -2269,28 +2477,10 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param string forUsername The forUsername parameter specifies a YouTube - * username, thereby requesting the channel associated with that username. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return channels owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channel ID(s) for the resource(s) that are being retrieved. In a - * channel resource, the id property specifies the channel's YouTube channel ID. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param bool mySubscribers Use the subscriptions.list method and its - * mySubscribers parameter to retrieve a list of subscribers to the - * authenticated user's channel. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the brandingSettings - * part. - * @opt_param string categoryId The categoryId parameter specifies a YouTube - * guide category, thereby requesting YouTube channels associated with that - * category. * @return Google_Service_YouTube_ChannelListResponse */ public function listChannels($part, $optParams = array()) @@ -2375,12 +2565,6 @@ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $o * include. * @param array $optParams Optional parameters. * - * @opt_param string searchTerms The searchTerms parameter instructs the API to - * limit the API response to only contain comments that contain the specified - * search terms. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. * @opt_param string allThreadsRelatedToChannelId The * allThreadsRelatedToChannelId parameter instructs the API to return all * comment threads associated with the specified channel. The response can @@ -2388,35 +2572,41 @@ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $o * @opt_param string channelId The channelId parameter instructs the API to * return comment threads containing comments about the specified channel. (The * response will not include comments left on videos that the channel uploaded.) - * @opt_param string videoId The videoId parameter instructs the API to return - * comment threads associated with the specified video ID. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. * @opt_param string maxResults The maxResults parameter specifies the maximum * number of items that should be returned in the result set. * * Note: This parameter is not supported for use in conjunction with the id * parameter. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment thread IDs for the resources that should be retrieved. - * @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 property identifies the next page of the result that can be - * retrieved. + * @opt_param string moderationStatus Set this parameter to limit the returned + * comment threads to a particular moderation state. * * Note: This parameter is not supported for use in conjunction with the id * parameter. - * @opt_param string moderationStatus Set this parameter to limit the returned - * comment threads to a particular moderation state. + * @opt_param string order The order parameter specifies the order in which the + * API response should list comment threads. Valid values are: - time - Comment + * threads are ordered by time. This is the default behavior. - relevance - + * Comment threads are ordered by relevance.Note: This parameter is not + * supported for use in conjunction with the id parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string searchTerms The searchTerms parameter instructs the API to + * limit the API response to only contain comments that contain the specified + * search terms. * * Note: This parameter is not supported for use in conjunction with the id * parameter. * @opt_param string textFormat Set this parameter's value to html or plainText * to instruct the API to return the comments left by users in html formatted or * in plain text. - * @opt_param string order The order parameter specifies the order in which the - * API response should list comment threads. Valid values are: - time - Comment - * threads are ordered by time. This is the default behavior. - relevance - - * Comment threads are ordered by relevance.Note: This parameter is not - * supported for use in conjunction with the id parameter. + * @opt_param string videoId The videoId parameter instructs the API to return + * comment threads associated with the specified video ID. * @return Google_Service_YouTube_CommentThreadListResponse */ public function listCommentThreads($part, $optParams = array()) @@ -2496,6 +2686,9 @@ public function insert($part, Google_Service_YouTube_Comment $postBody, $optPara * one or more comment resource properties that the API response will include. * @param array $optParams Optional parameters. * + * @opt_param string id The id parameter specifies a comma-separated list of + * comment IDs for the resources that are being retrieved. In a comment + * resource, the id property specifies the comment's ID. * @opt_param string maxResults The maxResults parameter specifies the maximum * number of items that should be returned in the result set. * @@ -2515,9 +2708,6 @@ public function insert($part, Google_Service_YouTube_Comment $postBody, $optPara * However, replies to replies may be supported in the future. * @opt_param string textFormat This parameter indicates whether the API should * return comments formatted as HTML or as plain text. - * @opt_param string id The id parameter specifies a comma-separated list of - * comment IDs for the resources that are being retrieved. In a comment - * resource, the id property specifies the comment's ID. * @return Google_Service_YouTube_CommentListResponse */ public function listComments($part, $optParams = array()) @@ -2586,6 +2776,51 @@ public function update($part, Google_Service_YouTube_Comment $postBody, $optPara } } +/** + * The "fanFundingEvents" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $fanFundingEvents = $youtubeService->fanFundingEvents; + * + */ +class Google_Service_YouTube_FanFundingEvents_Resource extends Google_Service_Resource +{ + + /** + * Lists fan funding events for a channel. + * (fanFundingEvents.listFanFundingEvents) + * + * @param string $part The part parameter specifies the fanFundingEvent 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 instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @return Google_Service_YouTube_FanFundingEventListResponse + */ + public function listFanFundingEvents($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_FanFundingEventListResponse"); + } +} + /** * The "guideCategories" collection of methods. * Typical usage is: @@ -2606,15 +2841,15 @@ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Res * snippet. * @param array $optParams Optional parameters. * - * @opt_param string regionCode The regionCode parameter instructs the API to - * return the list of guide categories available in the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string 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 hl The hl parameter specifies the language that will be - * used for text values in the API response. + * @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()) @@ -2714,25 +2949,6 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -2745,33 +2961,6 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param string streamId The streamId parameter specifies the unique ID of - * the video stream that is being bound to a broadcast. If this parameter is - * omitted, the API will remove any existing binding between the broadcast and a - * video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * 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, - * though a video stream may be bound to more than one broadcast. - * (liveBroadcasts.bind_direct) - * - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is being bound to a video stream. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -2791,29 +2980,17 @@ public function bind($id, $part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @opt_param string streamId The streamId parameter specifies the unique ID of * the video stream that is being bound to a broadcast. If this parameter is * omitted, the API will remove any existing binding between the broadcast and a * video stream. * @return Google_Service_YouTube_LiveBroadcast */ - public function bind_direct($id, $part, $optParams = array()) + public function bind($id, $part, $optParams = array()) { $params = array('id' => $id, 'part' => $part); $params = array_merge($params, $optParams); - return $this->call('bind_direct', array($params), "Google_Service_YouTube_LiveBroadcast"); + return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); } /** @@ -2828,6 +3005,21 @@ public function bind_direct($id, $part, $optParams = array()) * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * + * @opt_param bool displaySlate The displaySlate parameter specifies whether the + * slate is being enabled or disabled. + * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a + * positive time offset when the specified slate change will occur. The value is + * measured in milliseconds from the beginning of the broadcast's monitor + * stream, which is the time that the testing phase for the broadcast began. + * Even though it is specified in milliseconds, the value is actually an + * approximation, and YouTube completes the requested action as closely as + * possible to that time. + * + * If you do not specify a value for this parameter, then YouTube performs the + * action as soon as possible. See the Getting started guide for more details. + * + * Important: You should only specify a value for this parameter if your + * broadcast stream is delayed. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -2840,8 +3032,6 @@ public function bind_direct($id, $part, $optParams = array()) * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param bool displaySlate The displaySlate parameter specifies whether the - * slate is being enabled or disabled. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -2861,19 +3051,6 @@ public function bind_direct($id, $part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a - * positive time offset when the specified slate change will occur. The value is - * measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. - * Even though it is specified in milliseconds, the value is actually an - * approximation, and YouTube completes the requested action as closely as - * possible to that time. - * - * If you do not specify a value for this parameter, then YouTube performs the - * action as soon as possible. See the Getting started guide for more details. - * - * Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. * @opt_param string walltime The walltime parameter specifies the wall clock * time at which the specified slate change will occur. The value is specified * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. @@ -2893,6 +3070,18 @@ public function control($id, $part, $optParams = array()) * for the resource that is being deleted. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -2912,18 +3101,6 @@ public function control($id, $part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. */ public function delete($id, $optParams = array()) { @@ -2944,6 +3121,18 @@ public function delete($id, $optParams = array()) * @param Google_LiveBroadcast $postBody * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -2963,18 +3152,6 @@ public function delete($id, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) @@ -2996,6 +3173,17 @@ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $o * * @opt_param string broadcastStatus The broadcastStatus parameter filters the * API response to only include broadcasts with the specified status. + * @opt_param string broadcastType The broadcastType parameter filters the API + * response to only include broadcasts with the specified type. This is only + * compatible with the mine filter for now. + * @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. + * @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 onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -3027,18 +3215,10 @@ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $o * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return broadcasts owned by the authenticated user. Set the parameter - * value to true to only retrieve your own broadcasts. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube broadcast IDs that identify the broadcasts being retrieved. In a - * liveBroadcast resource, the id property specifies the broadcast's ID. * @return Google_Service_YouTube_LiveBroadcastListResponse */ public function listLiveBroadcasts($part, $optParams = array()) @@ -3068,6 +3248,18 @@ public function listLiveBroadcasts($part, $optParams = array()) * snippet, contentDetails, and status. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -3087,18 +3279,6 @@ public function listLiveBroadcasts($part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function transition($broadcastStatus, $id, $part, $optParams = array()) @@ -3132,8 +3312,20 @@ public function transition($broadcastStatus, $id, $part, $optParams = array()) * @param Google_LiveBroadcast $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be + * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. * * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID @@ -3151,18 +3343,6 @@ public function transition($broadcastStatus, $id, $part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_LiveBroadcast */ public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) @@ -3173,6 +3353,197 @@ public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $o } } +/** + * The "liveChatBans" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $liveChatBans = $youtubeService->liveChatBans; + * + */ +class Google_Service_YouTube_LiveChatBans_Resource extends Google_Service_Resource +{ + + /** + * Removes a chat ban. (liveChatBans.delete) + * + * @param string $id The id parameter identifies the chat ban to remove. The + * value uniquely identifies both the ban and the chat. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a new ban to the chat. (liveChatBans.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 returns. Set the parameter value to snippet. + * @param Google_LiveChatBan $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_LiveChatBan + */ + public function insert($part, Google_Service_YouTube_LiveChatBan $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatBan"); + } +} + +/** + * The "liveChatMessages" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $liveChatMessages = $youtubeService->liveChatMessages; + * + */ +class Google_Service_YouTube_LiveChatMessages_Resource extends Google_Service_Resource +{ + + /** + * Deletes a chat message. (liveChatMessages.delete) + * + * @param string $id The id parameter specifies the YouTube chat message ID of + * 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); + return $this->call('delete', array($params)); + } + + /** + * Adds a message to a live chat. (liveChatMessages.insert) + * + * @param string $part The part parameter serves two purposes. It identifies the + * properties that the write operation will set as well as the properties that + * the API response will include. Set the parameter value to snippet. + * @param Google_LiveChatMessage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_LiveChatMessage + */ + public function insert($part, Google_Service_YouTube_LiveChatMessage $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatMessage"); + } + + /** + * Lists live chat messages for a specific chat. + * (liveChatMessages.listLiveChatMessages) + * + * @param string $liveChatId The liveChatId parameter specifies the ID of the + * chat whose messages will be returned. + * @param string $part The part parameter specifies the liveChatComment 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 instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of messages that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identify other pages that could be retrieved. + * @opt_param string profileImageSize The profileImageSize parameter specifies + * the size of the user profile pictures that should be returned in the result + * set. Default: 88. + * @return Google_Service_YouTube_LiveChatMessageListResponse + */ + public function listLiveChatMessages($liveChatId, $part, $optParams = array()) + { + $params = array('liveChatId' => $liveChatId, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveChatMessageListResponse"); + } +} + +/** + * The "liveChatModerators" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $liveChatModerators = $youtubeService->liveChatModerators; + * + */ +class Google_Service_YouTube_LiveChatModerators_Resource extends Google_Service_Resource +{ + + /** + * Removes a chat moderator. (liveChatModerators.delete) + * + * @param string $id The id parameter identifies the chat moderator to remove. + * The value uniquely identifies both the moderator and the chat. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a new moderator for the chat. (liveChatModerators.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 returns. Set the parameter value to snippet. + * @param Google_LiveChatModerator $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_LiveChatModerator + */ + public function insert($part, Google_Service_YouTube_LiveChatModerator $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatModerator"); + } + + /** + * Lists moderators for a live chat. (liveChatModerators.listLiveChatModerators) + * + * @param string $liveChatId The liveChatId parameter specifies the YouTube live + * chat for which the API should return moderators. + * @param string $part The part parameter specifies the liveChatModerator + * resource parts that the API response will include. Supported values are id + * and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @return Google_Service_YouTube_LiveChatModeratorListResponse + */ + public function listLiveChatModerators($liveChatId, $part, $optParams = array()) + { + $params = array('liveChatId' => $liveChatId, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveChatModeratorListResponse"); + } +} + /** * The "liveStreams" collection of methods. * Typical usage is: @@ -3191,6 +3562,18 @@ class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resourc * the resource that is being deleted. * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -3210,18 +3593,6 @@ class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resourc * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. */ public function delete($id, $optParams = array()) { @@ -3243,6 +3614,18 @@ public function delete($id, $optParams = array()) * @param Google_LiveStream $postBody * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -3262,18 +3645,6 @@ public function delete($id, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_LiveStream */ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) @@ -3293,6 +3664,14 @@ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optP * 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. + * @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 onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -3324,18 +3703,10 @@ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optP * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param bool mine The mine parameter can be used to instruct the API to - * only return streams owned by the authenticated user. Set the parameter value - * to true to only retrieve your own streams. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of - * YouTube stream IDs that identify the streams being retrieved. In a liveStream - * resource, the id property specifies the stream's ID. * @return Google_Service_YouTube_LiveStreamListResponse */ public function listLiveStreams($part, $optParams = array()) @@ -3364,6 +3735,18 @@ public function listLiveStreams($part, $optParams = array()) * @param Google_LiveStream $postBody * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -3383,18 +3766,6 @@ public function listLiveStreams($part, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_LiveStream */ public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) @@ -3479,6 +3850,10 @@ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $op * 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 The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -3491,6 +3866,10 @@ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $op * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. * @opt_param 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 @@ -3498,14 +3877,6 @@ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $op * parameter. * @opt_param string videoId The videoId parameter specifies that the request * should return only the playlist items that contain the specified video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string id The id parameter specifies a comma-separated list of one - * or more unique playlist item IDs. * @return Google_Service_YouTube_PlaylistItemListResponse */ public function listPlaylistItems($part, $optParams = array()) @@ -3593,6 +3964,18 @@ public function delete($id, $optParams = array()) * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -3612,18 +3995,6 @@ public function delete($id, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. * @return Google_Service_YouTube_Playlist */ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) @@ -3649,6 +4020,18 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar * 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 hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the snippet part. + * @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 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 playlists owned by the authenticated user. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -3680,22 +4063,10 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string channelId This value indicates that the API should only - * return the specified channel's playlists. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return playlists owned by the authenticated user. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the snippet part. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a - * playlist resource, the id property specifies the playlist's YouTube playlist - * ID. * @return Google_Service_YouTube_PlaylistListResponse */ public function listPlaylists($part, $optParams = array()) @@ -3766,47 +4137,13 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * Set the parameter value to snippet. * @param array $optParams Optional parameters. * - * @opt_param string eventType The eventType parameter restricts a search to - * broadcast events. If you specify a value for this parameter, you must also - * set the type parameter's value to video. * @opt_param string channelId The channelId parameter indicates that the API * response should only contain resources created by the channel - * @opt_param bool forDeveloper The forDeveloper parameter restricts the search - * to only retrieve videos uploaded via the developer's application or website. - * The API server uses the request's authorization credentials to identify the - * developer. Therefore, a developer can restrict results to videos uploaded - * through the developer's own app or website but not to videos uploaded through - * other apps or sites. - * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. If - * you specify a value for this parameter, you must also set the type - * parameter's value to video. * @opt_param string channelType The channelType parameter lets you restrict a * search to a particular type of channel. - * @opt_param string videoCaption The videoCaption parameter indicates whether - * the API should filter video search results based on whether they have - * captions. If you specify a value for this parameter, you must also set the - * type parameter's value to video. - * @opt_param string publishedAfter The publishedAfter parameter indicates that - * the API response should only contain resources created after the specified - * time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. + * @opt_param string eventType The eventType parameter restricts a search to + * broadcast events. If you specify a value for this parameter, you must also + * set the type parameter's value to video. * @opt_param bool forContentOwner Note: This parameter is intended exclusively * for YouTube content partners. * @@ -3814,9 +4151,15 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * owned by the content owner specified by the onBehalfOfContentOwner parameter. * The user must be authenticated using a CMS account linked to the specified * content owner and onBehalfOfContentOwner must be provided. - * @opt_param string regionCode The regionCode parameter instructs the API to - * return search results for the specified country. The parameter value is an - * ISO 3166-1 alpha-2 country code. + * @opt_param bool forDeveloper The forDeveloper parameter restricts the search + * to only retrieve videos uploaded via the developer's application or website. + * The API server uses the request's authorization credentials to identify the + * developer. Therefore, a developer can restrict results to videos uploaded + * through the developer's own app or website but not to videos uploaded through + * other apps or sites. + * @opt_param bool forMine The forMine parameter restricts the search to only + * retrieve videos owned by the authenticated user. If you set this parameter to + * true, then the type parameter's value must also be set to video. * @opt_param string location The location parameter, in conjunction with the * locationRadius parameter, defines a circular geographic area and also * restricts a search to videos that specify, in their metadata, a geographic @@ -3838,72 +4181,100 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * support locationRadius parameter values larger than 1000 kilometers. * * Note: See the definition of the location parameter for more information. - * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string type The type parameter restricts a search query to only - * retrieve a particular type of resource. The value is a comma-separated list - * of resource types. - * @opt_param string topicId The topicId parameter indicates that the API - * response should only contain resources associated with the specified topic. - * The value identifies a Freebase topic ID. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string order The order parameter specifies the method that will be + * used to order resources in the API response. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @opt_param string 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 videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. If you specify a value - * for this parameter, you must also set the type parameter's value to video. - * @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. If you specify a value for - * this parameter, you must also set the type parameter's value to video. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. + * @opt_param string q The q parameter specifies the query term to search for. + * + * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude + * videos or to find videos that are associated with one of several search + * terms. For example, to search for videos matching either "boating" or + * "sailing", set the q parameter value to boating|sailing. Similarly, to search + * for videos matching either "boating" or "sailing" but not "fishing", set the + * q parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. + * @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 relevanceLanguage The relevanceLanguage parameter instructs + * the API to return search results that are most relevant to the specified + * language. The parameter value is typically an ISO 639-1 two-letter language + * code. However, you should use the values zh-Hans for simplified Chinese and + * zh-Hant for traditional Chinese. Please note that results in other languages + * will still be returned if they are highly relevant to the search query term. + * @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. The value is a comma-separated list + * of resource types. + * @opt_param string videoCaption The videoCaption parameter indicates whether + * the API should filter video search results based on whether they have + * captions. If you specify a value for this parameter, you must also set the + * type parameter's value to video. + * @opt_param string videoCategoryId The videoCategoryId parameter filters video + * search results based on their category. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string videoDefinition The videoDefinition parameter lets you * restrict a search to only include either high definition (HD) or standard * definition (SD) videos. HD videos are available for playback in at least * 720p, though higher resolutions, like 1080p, might also be available. If you * specify a value for this parameter, you must also set the type parameter's * value to video. + * @opt_param string videoDimension The videoDimension parameter lets you + * restrict a search to only retrieve 2D or 3D videos. If you specify a value + * for this parameter, you must also set the type parameter's value to video. * @opt_param string videoDuration The videoDuration parameter filters video * search results based on their duration. If you specify a value for this * parameter, you must also set the type parameter's value to video. - * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs - * the API to return search results that are most relevant to the specified - * language. The parameter value is typically an ISO 639-1 two-letter language - * code. However, you should use the values zh-Hans for simplified Chinese and - * zh-Hant for traditional Chinese. Please note that results in other languages - * will still be returned if they are highly relevant to the search query term. - * @opt_param bool forMine The forMine parameter restricts the search to only - * retrieve videos owned by the authenticated user. If you set this parameter to - * true, then the type parameter's value must also be set to video. - * @opt_param string q The q parameter specifies the query term to search for. - * - * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude - * videos or to find videos that are associated with one of several search - * terms. For example, to search for videos matching either "boating" or - * "sailing", set the q parameter value to boating|sailing. Similarly, to search - * for videos matching either "boating" or "sailing" but not "fishing", set the - * q parameter value to boating|sailing -fishing. Note that the pipe character - * must be URL-escaped when it is sent in your API request. The URL-escaped - * value for the pipe character is %7C. - * @opt_param string safeSearch The safeSearch parameter indicates whether the - * search results should include restricted content as well as standard content. * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to * restrict a search to only videos that can be embedded into a webpage. If you * specify a value for this parameter, you must also set the type parameter's * value to video. - * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. If you specify a value for this + * @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. If you specify a value for + * this parameter, you must also set the type parameter's value to video. + * @opt_param string videoSyndicated The videoSyndicated parameter lets you to + * restrict a search to only videos that can be played outside youtube.com. If + * you specify a value for this parameter, you must also set the type + * parameter's value to video. + * @opt_param string videoType The videoType parameter lets you restrict a + * search to a particular type of videos. If you specify a value for this * parameter, you must also set the type parameter's value to video. - * @opt_param string order The order parameter specifies the method that will be - * used to order resources in the API response. * @return Google_Service_YouTube_SearchListResponse */ public function listSearch($part, $optParams = array()) @@ -3914,6 +4285,42 @@ public function listSearch($part, $optParams = array()) } } +/** + * The "sponsors" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $sponsors = $youtubeService->sponsors; + * + */ +class Google_Service_YouTube_Sponsors_Resource extends Google_Service_Resource +{ + + /** + * Lists sponsors for a channel. (sponsors.listSponsors) + * + * @param string $part The part parameter specifies the sponsor resource parts + * that the API response will include. Supported values are id and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter parameter specifies which channel + * sponsors to return. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken and prevPageToken properties identify other pages that could be + * retrieved. + * @return Google_Service_YouTube_SponsorListResponse + */ + public function listSponsors($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SponsorListResponse"); + } +} + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -3973,18 +4380,32 @@ public function insert($part, Google_Service_YouTube_Subscription $postBody, $op * response will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. + * @opt_param string channelId The channelId parameter specifies a YouTube + * channel ID. The API will only return that channel's 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 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 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 onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -4004,26 +4425,12 @@ public function insert($part, Google_Service_YouTube_Subscription $postBody, $op * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's subscriptions. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's subscriptions. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string forChannelId The forChannelId parameter specifies a comma- - * separated list of channel IDs. The API response will then only contain - * subscriptions matching those channels. + * @opt_param string order The order parameter specifies the method that will be + * used to sort resources in the API response. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param bool mySubscribers Set this parameter's value to true to retrieve - * a feed of the subscribers of the authenticated user. - * @opt_param string order The order parameter specifies the method that will be - * used to sort resources in the API response. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a - * subscription resource, the id property specifies the YouTube subscription ID. * @return Google_Service_YouTube_SubscriptionListResponse */ public function listSubscriptions($part, $optParams = array()) @@ -4127,13 +4534,13 @@ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Res * 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. - * @opt_param string id The id parameter specifies a comma-separated list of - * video category IDs for the resources that you are retrieving. - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. * @return Google_Service_YouTube_VideoCategoryListResponse */ public function listVideoCategories($part, $optParams = array()) @@ -4229,6 +4636,15 @@ public function getRating($id, $optParams = array()) * @param Google_Video $postBody * @param array $optParams Optional parameters. * + * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube + * should automatically enhance the video's lighting and color. + * @opt_param bool notifySubscribers The notifySubscribers parameter indicates + * whether YouTube should send a notification about the new video to users who + * subscribe to the video's channel. A parameter value of True indicates that + * subscribers will be notified of newly uploaded videos. However, a channel + * owner who is uploading many videos might prefer to set the value to False to + * avoid sending a notification about each new video to the channel's + * subscribers. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -4241,8 +4657,6 @@ public function getRating($id, $optParams = array()) * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param bool stabilize The stabilize parameter indicates whether YouTube - * should adjust the video to remove shaky camera motions. * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be * used in a properly authorized request. Note: This parameter is intended * exclusively for YouTube content partners. @@ -4262,15 +4676,8 @@ public function getRating($id, $optParams = array()) * once and perform actions on behalf of the channel specified in the parameter * value, without having to provide authentication credentials for each separate * channel. - * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send a notification about the new video to users who - * subscribe to the video's channel. A parameter value of True indicates that - * subscribers will be notified of newly uploaded videos. However, a channel - * owner who is uploading many videos might prefer to set the value to False to - * avoid sending a notification about each new video to the channel's - * subscribers. - * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube - * should automatically enhance the video's lighting and color. + * @opt_param bool stabilize The stabilize parameter indicates whether YouTube + * should adjust the video to remove shaky camera motions. * @return Google_Service_YouTube_Video */ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) @@ -4294,6 +4701,30 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * response will contain all of those properties. * @param array $optParams Optional parameters. * + * @opt_param string chart The chart parameter identifies the chart that you + * want to retrieve. + * @opt_param string hl The hl parameter instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. + * @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 locale DEPRECATED + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id + * parameter. + * @opt_param string 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 Note: This parameter is intended * exclusively for YouTube content partners. * @@ -4306,23 +4737,6 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param string regionCode The regionCode parameter instructs the API to - * select a video chart available in the specified region. This parameter can - * only be used in conjunction with the chart parameter. The parameter value is - * an ISO 3166-1 alpha-2 country code. - * @opt_param string locale DEPRECATED - * @opt_param string videoCategoryId The videoCategoryId parameter identifies - * the video category for which the chart should be retrieved. This parameter - * can only be used in conjunction with the chart parameter. By default, charts - * are not restricted to a particular category. - * @opt_param string chart The chart parameter identifies the chart that you - * want to retrieve. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be @@ -4331,21 +4745,14 @@ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams * Note: This parameter is supported for use in conjunction with the myRating * parameter, but it is not supported for use in conjunction with the id * parameter. - * @opt_param string hl The hl parameter instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string myRating Set this parameter's value to like or dislike to - * instruct the API to only return videos liked or disliked by the authenticated - * user. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) that are being retrieved. In a video - * resource, the id property specifies the video's ID. + * @opt_param string regionCode The regionCode parameter instructs the API to + * select a video chart available in the specified region. This parameter can + * only be used in conjunction with the chart parameter. The parameter value is + * an ISO 3166-1 alpha-2 country code. + * @opt_param string videoCategoryId The videoCategoryId parameter identifies + * the video category for which the chart should be retrieved. This parameter + * can only be used in conjunction with the chart parameter. By default, charts + * are not restricted to a particular category. * @return Google_Service_YouTube_VideoListResponse */ public function listVideos($part, $optParams = array()) @@ -5925,23 +6332,6 @@ public function getPings() } } -class Google_Service_YouTube_ChannelId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - class Google_Service_YouTube_ChannelListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -6061,8 +6451,48 @@ public function getTitle() } } -class Google_Service_YouTube_ChannelLocalizations extends Google_Model +class Google_Service_YouTube_ChannelProfileDetails extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelUrl; + public $displayName; + public $profileImageUrl; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelUrl($channelUrl) + { + $this->channelUrl = $channelUrl; + } + public function getChannelUrl() + { + return $this->channelUrl; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setProfileImageUrl($profileImageUrl) + { + $this->profileImageUrl = $profileImageUrl; + } + public function getProfileImageUrl() + { + return $this->profileImageUrl; + } } class Google_Service_YouTube_ChannelSection extends Google_Model @@ -6239,10 +6669,6 @@ public function getTitle() } } -class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model -{ -} - class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { protected $internal_gapi_mappings = array( @@ -6798,8 +7224,7 @@ class Google_Service_YouTube_CommentSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; - protected $authorChannelIdDataType = ''; + public $authorChannelId; public $authorChannelUrl; public $authorDisplayName; public $authorGoogleplusProfileUrl; @@ -6817,7 +7242,7 @@ class Google_Service_YouTube_CommentSnippet extends Google_Model public $viewerRating; - public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) + public function setAuthorChannelId($authorChannelId) { $this->authorChannelId = $authorChannelId; } @@ -7194,6 +7619,7 @@ class Google_Service_YouTube_ContentRating extends Google_Collection public $czfilmRating; public $djctqRating; public $djctqRatingReasons; + public $ecbmctRating; public $eefilmRating; public $egfilmRating; public $eirinRating; @@ -7408,6 +7834,14 @@ public function getDjctqRatingReasons() { return $this->djctqRatingReasons; } + public function setEcbmctRating($ecbmctRating) + { + $this->ecbmctRating = $ecbmctRating; + } + public function getEcbmctRating() + { + return $this->ecbmctRating; + } public function setEefilmRating($eefilmRating) { $this->eefilmRating = $eefilmRating; @@ -7762,49 +8196,14 @@ public function getYtRating() } } -class Google_Service_YouTube_GeoPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $altitude; - public $latitude; - public $longitude; - - - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } - public function getAltitude() - { - return $this->altitude; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } -} - -class Google_Service_YouTube_GuideCategory extends Google_Model +class Google_Service_YouTube_FanFundingEvent extends Google_Model { protected $internal_gapi_mappings = array( ); public $etag; public $id; public $kind; - protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; + protected $snippetType = 'Google_Service_YouTube_FanFundingEventSnippet'; protected $snippetDataType = ''; @@ -7832,7 +8231,7 @@ public function getKind() { return $this->kind; } - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) + public function setSnippet(Google_Service_YouTube_FanFundingEventSnippet $snippet) { $this->snippet = $snippet; } @@ -7842,20 +8241,19 @@ public function getSnippet() } } -class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection +class Google_Service_YouTube_FanFundingEventListResponse extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $etag; public $eventId; - protected $itemsType = 'Google_Service_YouTube_GuideCategory'; + protected $itemsType = 'Google_Service_YouTube_FanFundingEvent'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; protected $pageInfoDataType = ''; - public $prevPageToken; protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; protected $tokenPaginationDataType = ''; public $visitorId; @@ -7909,14 +8307,6 @@ public function getPageInfo() { return $this->pageInfo; } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -7935,14 +8325,28 @@ public function getVisitorId() } } -class Google_Service_YouTube_GuideCategorySnippet extends Google_Model +class Google_Service_YouTube_FanFundingEventSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); + public $amountMicros; public $channelId; - public $title; + public $commentText; + public $createdAt; + public $currency; + public $displayString; + protected $supporterDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; + protected $supporterDetailsDataType = ''; + public function setAmountMicros($amountMicros) + { + $this->amountMicros = $amountMicros; + } + public function getAmountMicros() + { + return $this->amountMicros; + } public function setChannelId($channelId) { $this->channelId = $channelId; @@ -7951,25 +8355,256 @@ public function getChannelId() { return $this->channelId; } - public function setTitle($title) + public function setCommentText($commentText) { - $this->title = $title; + $this->commentText = $commentText; } - public function getTitle() + public function getCommentText() { - return $this->title; + return $this->commentText; } -} - -class Google_Service_YouTube_I18nLanguage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; - protected $snippetDataType = ''; + public function setCreatedAt($createdAt) + { + $this->createdAt = $createdAt; + } + public function getCreatedAt() + { + return $this->createdAt; + } + public function setCurrency($currency) + { + $this->currency = $currency; + } + public function getCurrency() + { + return $this->currency; + } + public function setDisplayString($displayString) + { + $this->displayString = $displayString; + } + public function getDisplayString() + { + return $this->displayString; + } + public function setSupporterDetails(Google_Service_YouTube_ChannelProfileDetails $supporterDetails) + { + $this->supporterDetails = $supporterDetails; + } + public function getSupporterDetails() + { + return $this->supporterDetails; + } +} + +class Google_Service_YouTube_GeoPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $altitude; + public $latitude; + public $longitude; + + + public function setAltitude($altitude) + { + $this->altitude = $altitude; + } + public function getAltitude() + { + return $this->altitude; + } + public function setLatitude($latitude) + { + $this->latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} + +class Google_Service_YouTube_GuideCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_GuideCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_GuideCategorySnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $title; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_I18nLanguage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; + protected $snippetDataType = ''; public function setEtag($etag) @@ -8730,6 +9365,7 @@ class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model protected $internal_gapi_mappings = array( ); public $boundStreamId; + public $closedCaptionsType; public $enableClosedCaptions; public $enableContentEncryption; public $enableDvr; @@ -8749,6 +9385,14 @@ public function getBoundStreamId() { return $this->boundStreamId; } + public function setClosedCaptionsType($closedCaptionsType) + { + $this->closedCaptionsType = $closedCaptionsType; + } + public function getClosedCaptionsType() + { + return $this->closedCaptionsType; + } public function setEnableClosedCaptions($enableClosedCaptions) { $this->enableClosedCaptions = $enableClosedCaptions; @@ -9108,62 +9752,697 @@ public function setType($type) { $this->type = $type; } - public function getType() + public function getType() + { + return $this->type; + } + public function setUnmatched($unmatched) + { + $this->unmatched = $unmatched; + } + public function getUnmatched() + { + return $this->unmatched; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +{ + protected $collection_key = 'topics'; + protected $internal_gapi_mappings = array( + ); + protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; + protected $topicsDataType = 'array'; + + + public function setTopics($topics) + { + $this->topics = $topics; + } + public function getTopics() + { + return $this->topics; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $releaseDate; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } +} + +class Google_Service_YouTube_LiveChatBan extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveChatBanSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_LiveChatBanSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_LiveChatBanSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $banDurationSeconds; + protected $bannedUserDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; + protected $bannedUserDetailsDataType = ''; + public $liveChatId; + public $type; + + + public function setBanDurationSeconds($banDurationSeconds) + { + $this->banDurationSeconds = $banDurationSeconds; + } + public function getBanDurationSeconds() + { + return $this->banDurationSeconds; + } + public function setBannedUserDetails(Google_Service_YouTube_ChannelProfileDetails $bannedUserDetails) + { + $this->bannedUserDetails = $bannedUserDetails; + } + public function getBannedUserDetails() + { + return $this->bannedUserDetails; + } + public function setLiveChatId($liveChatId) + { + $this->liveChatId = $liveChatId; + } + public function getLiveChatId() + { + return $this->liveChatId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LiveChatFanFundingEventDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $amountDisplayString; + public $amountMicros; + public $currency; + public $userComment; + + + public function setAmountDisplayString($amountDisplayString) + { + $this->amountDisplayString = $amountDisplayString; + } + public function getAmountDisplayString() + { + return $this->amountDisplayString; + } + public function setAmountMicros($amountMicros) + { + $this->amountMicros = $amountMicros; + } + public function getAmountMicros() + { + return $this->amountMicros; + } + public function setCurrency($currency) + { + $this->currency = $currency; + } + public function getCurrency() + { + return $this->currency; + } + public function setUserComment($userComment) + { + $this->userComment = $userComment; + } + public function getUserComment() + { + return $this->userComment; + } +} + +class Google_Service_YouTube_LiveChatMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $authorDetailsType = 'Google_Service_YouTube_LiveChatMessageAuthorDetails'; + protected $authorDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveChatMessageSnippet'; + protected $snippetDataType = ''; + + + public function setAuthorDetails(Google_Service_YouTube_LiveChatMessageAuthorDetails $authorDetails) + { + $this->authorDetails = $authorDetails; + } + public function getAuthorDetails() + { + return $this->authorDetails; + } + 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_LiveChatMessageSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_LiveChatMessageAuthorDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + public $channelUrl; + public $displayName; + public $isChatModerator; + public $isChatOwner; + public $isChatSponsor; + public $isVerified; + public $profileImageUrl; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setChannelUrl($channelUrl) + { + $this->channelUrl = $channelUrl; + } + public function getChannelUrl() + { + return $this->channelUrl; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setIsChatModerator($isChatModerator) + { + $this->isChatModerator = $isChatModerator; + } + public function getIsChatModerator() + { + return $this->isChatModerator; + } + public function setIsChatOwner($isChatOwner) + { + $this->isChatOwner = $isChatOwner; + } + public function getIsChatOwner() + { + return $this->isChatOwner; + } + public function setIsChatSponsor($isChatSponsor) + { + $this->isChatSponsor = $isChatSponsor; + } + public function getIsChatSponsor() + { + return $this->isChatSponsor; + } + public function setIsVerified($isVerified) + { + $this->isVerified = $isVerified; + } + public function getIsVerified() + { + return $this->isVerified; + } + public function setProfileImageUrl($profileImageUrl) + { + $this->profileImageUrl = $profileImageUrl; + } + public function getProfileImageUrl() + { + return $this->profileImageUrl; + } +} + +class Google_Service_YouTube_LiveChatMessageListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveChatMessage'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $offlineAt; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $pollingIntervalMillis; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOfflineAt($offlineAt) + { + $this->offlineAt = $offlineAt; + } + public function getOfflineAt() + { + return $this->offlineAt; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPollingIntervalMillis($pollingIntervalMillis) + { + $this->pollingIntervalMillis = $pollingIntervalMillis; + } + public function getPollingIntervalMillis() + { + return $this->pollingIntervalMillis; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_LiveChatMessageSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $authorChannelId; + public $displayMessage; + protected $fanFundingEventDetailsType = 'Google_Service_YouTube_LiveChatFanFundingEventDetails'; + protected $fanFundingEventDetailsDataType = ''; + public $hasDisplayContent; + public $liveChatId; + public $publishedAt; + protected $textMessageDetailsType = 'Google_Service_YouTube_LiveChatTextMessageDetails'; + protected $textMessageDetailsDataType = ''; + public $type; + + + public function setAuthorChannelId($authorChannelId) + { + $this->authorChannelId = $authorChannelId; + } + public function getAuthorChannelId() + { + return $this->authorChannelId; + } + public function setDisplayMessage($displayMessage) + { + $this->displayMessage = $displayMessage; + } + public function getDisplayMessage() + { + return $this->displayMessage; + } + public function setFanFundingEventDetails(Google_Service_YouTube_LiveChatFanFundingEventDetails $fanFundingEventDetails) + { + $this->fanFundingEventDetails = $fanFundingEventDetails; + } + public function getFanFundingEventDetails() + { + return $this->fanFundingEventDetails; + } + public function setHasDisplayContent($hasDisplayContent) + { + $this->hasDisplayContent = $hasDisplayContent; + } + public function getHasDisplayContent() + { + return $this->hasDisplayContent; + } + public function setLiveChatId($liveChatId) + { + $this->liveChatId = $liveChatId; + } + public function getLiveChatId() + { + return $this->liveChatId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTextMessageDetails(Google_Service_YouTube_LiveChatTextMessageDetails $textMessageDetails) + { + $this->textMessageDetails = $textMessageDetails; + } + public function getTextMessageDetails() + { + return $this->textMessageDetails; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_YouTube_LiveChatModerator extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveChatModeratorSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_LiveChatModeratorSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_LiveChatModeratorListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveChatModerator'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setPrevPageToken($prevPageToken) + { + $this->prevPageToken = $prevPageToken; + } + public function getPrevPageToken() + { + return $this->prevPageToken; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() { - return $this->type; + return $this->tokenPagination; } - public function setUnmatched($unmatched) + public function setVisitorId($visitorId) { - $this->unmatched = $unmatched; + $this->visitorId = $visitorId; } - public function getUnmatched() + public function getVisitorId() { - return $this->unmatched; + return $this->visitorId; } } -class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +class Google_Service_YouTube_LiveChatModeratorSnippet extends Google_Model { - protected $collection_key = 'topics'; protected $internal_gapi_mappings = array( ); - protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; - protected $topicsDataType = 'array'; + public $liveChatId; + protected $moderatorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; + protected $moderatorDetailsDataType = ''; - public function setTopics($topics) + public function setLiveChatId($liveChatId) { - $this->topics = $topics; + $this->liveChatId = $liveChatId; } - public function getTopics() + public function getLiveChatId() { - return $this->topics; + return $this->liveChatId; + } + public function setModeratorDetails(Google_Service_YouTube_ChannelProfileDetails $moderatorDetails) + { + $this->moderatorDetails = $moderatorDetails; + } + public function getModeratorDetails() + { + return $this->moderatorDetails; } } -class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +class Google_Service_YouTube_LiveChatTextMessageDetails extends Google_Model { protected $internal_gapi_mappings = array( ); - public $name; - public $releaseDate; + public $messageText; - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReleaseDate($releaseDate) + public function setMessageText($messageText) { - $this->releaseDate = $releaseDate; + $this->messageText = $messageText; } - public function getReleaseDate() + public function getMessageText() { - return $this->releaseDate; + return $this->messageText; } } @@ -10178,10 +11457,6 @@ public function getTitle() } } -class Google_Service_YouTube_PlaylistLocalizations extends Google_Model -{ -} - class Google_Service_YouTube_PlaylistPlayer extends Google_Model { protected $internal_gapi_mappings = array( @@ -10482,6 +11757,7 @@ class Google_Service_YouTube_SearchListResponse extends Google_Collection protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; protected $pageInfoDataType = ''; public $prevPageToken; + public $regionCode; protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; protected $tokenPaginationDataType = ''; public $visitorId; @@ -10543,6 +11819,14 @@ public function getPrevPageToken() { return $this->prevPageToken; } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { $this->tokenPagination = $tokenPagination; @@ -10679,6 +11963,171 @@ public function getTitle() } } +class Google_Service_YouTube_Sponsor extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SponsorSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_SponsorSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_SponsorListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Sponsor'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_SponsorSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $channelId; + protected $sponsorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; + protected $sponsorDetailsDataType = ''; + public $sponsorSince; + + + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setSponsorDetails(Google_Service_YouTube_ChannelProfileDetails $sponsorDetails) + { + $this->sponsorDetails = $sponsorDetails; + } + public function getSponsorDetails() + { + return $this->sponsorDetails; + } + public function setSponsorSince($sponsorSince) + { + $this->sponsorSince = $sponsorSince; + } + public function getSponsorSince() + { + return $this->sponsorSince; + } +} + class Google_Service_YouTube_Subscription extends Google_Model { protected $internal_gapi_mappings = array( @@ -11150,8 +12599,6 @@ class Google_Service_YouTube_Video extends Google_Model protected $ageGatingDataType = ''; protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; protected $contentDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; - protected $conversionPingsDataType = ''; public $etag; protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; protected $fileDetailsDataType = ''; @@ -11199,14 +12646,6 @@ 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; @@ -11862,51 +13301,6 @@ public function getBlocked() } } -class Google_Service_YouTube_VideoConversionPing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - class Google_Service_YouTube_VideoFileDetails extends Google_Collection { protected $collection_key = 'videoStreams'; @@ -12285,6 +13679,7 @@ class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model { protected $internal_gapi_mappings = array( ); + public $activeLiveChatId; public $actualEndTime; public $actualStartTime; public $concurrentViewers; @@ -12292,6 +13687,14 @@ class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model public $scheduledStartTime; + public function setActiveLiveChatId($activeLiveChatId) + { + $this->activeLiveChatId = $activeLiveChatId; + } + public function getActiveLiveChatId() + { + return $this->activeLiveChatId; + } public function setActualEndTime($actualEndTime) { $this->actualEndTime = $actualEndTime; @@ -12360,10 +13763,6 @@ public function getTitle() } } -class Google_Service_YouTube_VideoLocalizations extends Google_Model -{ -} - class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index acf448e03..cec66ecd7 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -1,6 +1,6 @@ 'groups', 'httpMethod' => 'GET', 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'id' => array( 'location' => 'query', 'type' => 'string', @@ -203,6 +199,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'boolean', ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'groups', @@ -247,29 +251,29 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'max-results' => array( + 'currency' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), - 'sort' => array( + 'dimensions' => array( 'location' => 'query', 'type' => 'string', ), - 'dimensions' => array( + 'filters' => array( 'location' => 'query', 'type' => 'string', ), - 'start-index' => array( + 'max-results' => array( 'location' => 'query', 'type' => 'integer', ), - 'currency' => array( + 'sort' => array( 'location' => 'query', 'type' => 'string', ), - 'filters' => array( + 'start-index' => array( 'location' => 'query', - 'type' => 'string', + 'type' => 'integer', ), ), ), @@ -505,6 +509,11 @@ public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optPara * * @param array $optParams Optional parameters. * + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube group ID(s) for the resource(s) that are being retrieved. In a group + * resource, the id property specifies the group's YouTube group ID. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return groups owned by the authenticated user. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. * @@ -517,11 +526,9 @@ public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optPara * authentication credentials for each individual channel. The CMS account that * the user authenticates with must be linked to the specified YouTube content * owner. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube group ID(s) for the resource(s) that are being retrieved. In a group - * resource, the id property specifies the group's YouTube group ID. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return groups owned by the authenticated user. + * @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 property identifies the next page that can be retrieved. * @return Google_Service_YouTubeAnalytics_GroupListResponse */ public function listGroups($optParams = array()) @@ -590,23 +597,15 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re * report, and see the Metrics document for definitions of those metrics. * @param array $optParams Optional parameters. * - * @opt_param int max-results The maximum number of rows to include in the - * response. - * @opt_param string sort A comma-separated list of dimensions or metrics that - * determine the sort order for YouTube Analytics data. By default the sort - * order is ascending. The '-' prefix causes descending sort order. + * @opt_param string currency The currency to which financial metrics should be + * converted. The default is US Dollar (USD). If the result contains no + * financial metrics, this flag will be ignored. Responds with an error if the + * specified currency is not recognized. * @opt_param string dimensions A comma-separated list of YouTube Analytics * dimensions, such as views or ageGroup,gender. See the Available Reports * document for a list of the reports that you can retrieve and the dimensions * used for those reports. Also see the Dimensions document for definitions of * those dimensions. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter - * (one-based, inclusive). - * @opt_param string currency The currency to which financial metrics should be - * converted. The default is US Dollar (USD). If the result contains no - * financial metrics, this flag will be ignored. Responds with an error if the - * specified currency is not recognized. * @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 @@ -615,6 +614,14 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re * 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, $startDate, $endDate, $metrics, $optParams = array()) @@ -1070,6 +1077,7 @@ class Google_Service_YouTubeAnalytics_GroupListResponse extends Google_Collectio protected $itemsType = 'Google_Service_YouTubeAnalytics_Group'; protected $itemsDataType = 'array'; public $kind; + public $nextPageToken; public function setEtag($etag) @@ -1096,6 +1104,14 @@ public function getKind() { return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } } class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model diff --git a/src/Google/Service/YouTubeReporting.php b/src/Google/Service/YouTubeReporting.php index 805438f99..3ff367e77 100644 --- a/src/Google/Service/YouTubeReporting.php +++ b/src/Google/Service/YouTubeReporting.php @@ -1,6 +1,6 @@ 'v1/jobs', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', @@ -116,6 +112,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -155,10 +155,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', @@ -167,6 +163,14 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -202,10 +206,6 @@ public function __construct(Google_Client $client) 'path' => 'v1/reportTypes', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', @@ -214,6 +214,10 @@ public function __construct(Google_Client $client) 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -293,15 +297,15 @@ public function get($jobId, $optParams = array()) * * @param array $optParams Optional parameters. * - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportTypesResponse.next_page_token returned in response to the previous - * call to the `ListJobs` method. * @opt_param string onBehalfOfContentOwner The content owner's external ID on * which behalf the user is acting on. If not set, the user is acting for * himself (his own channel). * @opt_param int pageSize Requested page size. Server may return fewer jobs * than requested. If unspecified, server will pick an appropriate default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportTypesResponse.next_page_token returned in response to the previous + * call to the `ListJobs` method. * @return Google_Service_YouTubeReporting_ListJobsResponse */ public function listJobs($optParams = array()) @@ -349,16 +353,18 @@ public function get($jobId, $reportId, $optParams = array()) * @param string $jobId The ID of the job. * @param array $optParams Optional parameters. * - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportsResponse.next_page_token returned in response to the previous call - * to the `ListReports` method. * @opt_param string onBehalfOfContentOwner The content owner's external ID on * which behalf the user is acting on. If not set, the user is acting for * himself (his own channel). * @opt_param int pageSize Requested page size. Server may return fewer report * types than requested. If unspecified, server will pick an appropriate * default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportsResponse.next_page_token returned in response to the previous call + * to the `ListReports` method. + * @opt_param string createdAfter If set, only reports created after the + * specified date/time are returned. * @return Google_Service_YouTubeReporting_ListReportsResponse */ public function listJobsReports($jobId, $optParams = array()) @@ -413,16 +419,16 @@ class Google_Service_YouTubeReporting_ReportTypes_Resource extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportTypesResponse.next_page_token returned in response to the previous - * call to the `ListReportTypes` method. * @opt_param string onBehalfOfContentOwner The content owner's external ID on * which behalf the user is acting on. If not set, the user is acting for * himself (his own channel). * @opt_param int pageSize Requested page size. Server may return fewer report * types than requested. If unspecified, server will pick an appropriate * default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListReportTypesResponse.next_page_token returned in response to the previous + * call to the `ListReportTypes` method. * @return Google_Service_YouTubeReporting_ListReportTypesResponse */ public function listReportTypes($optParams = array()) diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index 2458ed9b3..a53663326 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -95,12 +95,12 @@ public function testGetResumeUri() $client->addScope("https://www.googleapis.com/auth/drive"); $service = new Google_Service_Drive($client); $file = new Google_Service_Drive_DriveFile(); - $file->title = 'TESTFILE-testGetResumeUri'; + $file->name = 'TESTFILE-testGetResumeUri'; $chunkSizeBytes = 1 * 1024 * 1024; // Call the API with the media upload, defer so it doesn't immediately return. $client->setDefer(true); - $request = $service->files->insert($file); + $request = $service->files->create($file); // Create a media file upload to represent our upload process. $media = new Google_Http_MediaFileUpload( @@ -137,11 +137,11 @@ public function testNextChunk() $data = 'foo'; $file = new Google_Service_Drive_DriveFile(); - $file->title = $title = 'TESTFILE-testNextChunk'; + $file->name = $name = 'TESTFILE-testNextChunk'; // Call the API with the media upload, defer so it doesn't immediately return. $client->setDefer(true); - $request = $service->files->insert($file); + $request = $service->files->create($file); // Create a media file upload to represent our upload process. $media = new Google_Http_MediaFileUpload( @@ -156,7 +156,7 @@ public function testNextChunk() // upload the file $file = $media->nextChunk($data); $this->assertInstanceOf('Google_Service_Drive_DriveFile', $file); - $this->assertEquals($title, $file->title); + $this->assertEquals($name, $file->name); // remove the file $client->setDefer(false); @@ -175,11 +175,11 @@ public function testNextChunkWithMoreRemaining() $chunkSizeBytes = 262144; // smallest chunk size allowed by APIs $data = str_repeat('.', $chunkSizeBytes+1); $file = new Google_Service_Drive_DriveFile(); - $file->title = $title = 'TESTFILE-testNextChunkWithMoreRemaining'; + $file->name = $name = 'TESTFILE-testNextChunkWithMoreRemaining'; // Call the API with the media upload, defer so it doesn't immediately return. $client->setDefer(true); - $request = $service->files->insert($file); + $request = $service->files->create($file); // Create a media file upload to represent our upload process. $media = new Google_Http_MediaFileUpload( diff --git a/tests/examples/idTokenTest.php b/tests/examples/idTokenTest.php index ecda53bb6..4f44bc3a4 100644 --- a/tests/examples/idTokenTest.php +++ b/tests/examples/idTokenTest.php @@ -23,10 +23,16 @@ class examples_idTokenTest extends BaseTest { public function testIdToken() { + $this->checkServiceAccountCredentials(); + $crawler = $this->loadExample('idtoken.php'); $nodes = $crawler->filter('h1'); $this->assertEquals(1, count($nodes)); $this->assertEquals('Retrieving An Id Token', $nodes->first()->text()); + + $nodes = $crawler->filter('a.login'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Connect Me!', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php index c34861ef4..edbc0a259 100644 --- a/tests/examples/largeFileUploadTest.php +++ b/tests/examples/largeFileUploadTest.php @@ -23,10 +23,16 @@ class examples_largeFileUploadTest extends BaseTest { public function testLargeFileUpload() { + $this->checkServiceAccountCredentials(); + $crawler = $this->loadExample('large-file-upload.php'); $nodes = $crawler->filter('h1'); $this->assertEquals(1, count($nodes)); $this->assertEquals('File Upload - Uploading a large file', $nodes->first()->text()); + + $nodes = $crawler->filter('a.login'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Connect Me!', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php index 3d055edda..d81ccef01 100644 --- a/tests/examples/simpleFileUploadTest.php +++ b/tests/examples/simpleFileUploadTest.php @@ -21,12 +21,33 @@ class examples_simpleFileUploadTest extends BaseTest { - public function testSimpleFileUpload() + public function testSimpleFileUploadNoToken() { + $this->checkServiceAccountCredentials(); + $crawler = $this->loadExample('simple-file-upload.php'); $nodes = $crawler->filter('h1'); $this->assertEquals(1, count($nodes)); $this->assertEquals('File Upload - Uploading a simple file', $nodes->first()->text()); + + $nodes = $crawler->filter('a.login'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } + + public function testSimpleFileUploadWithToken() + { + $this->checkToken(); + + global $_SESSION; + $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); + + $crawler = $this->loadExample('simple-file-upload.php'); + + $buttonText = 'Click here to upload two small (1MB) test files'; + $nodes = $crawler->filter('input'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals($buttonText, $nodes->first()->attr('value')); } } \ No newline at end of file From e70a46d4f796a6e3c866deb70d0ca3aa14a772e9 Mon Sep 17 00:00:00 2001 From: Sazzad Hossain Khan Date: Thu, 18 Feb 2016 16:42:19 +0600 Subject: [PATCH 0949/1274] removed unused line ``` $service = new Google_Service_Drive($client); ``` This line is not seems to be necessary here. --- examples/multi-api.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/multi-api.php b/examples/multi-api.php index bc56f92f0..db64ab7b8 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -40,8 +40,6 @@ $client->addScope("https://www.googleapis.com/auth/drive"); $client->addScope("https://www.googleapis.com/auth/youtube"); -$service = new Google_Service_Drive($client); - // add "?logout" to the URL to remove a token from the session if (isset($_REQUEST['logout'])) { unset($_SESSION['multi-api-token']); From 25cc7c782c888c3477b96404077f1b34283e96c3 Mon Sep 17 00:00:00 2001 From: Sazzad Hossain Khan Date: Fri, 19 Feb 2016 11:42:51 +0600 Subject: [PATCH 0950/1274] id_token_token instead of id_token Should it not be so? --- examples/idtoken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/idtoken.php b/examples/idtoken.php index f711736a4..f369bca67 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -45,7 +45,7 @@ * local access token in this case ************************************************/ if (isset($_REQUEST['logout'])) { - unset($_SESSION['id_token']); + unset($_SESSION['id_token_token']); } From b7c951f3190e218806bab9be66499599a4993f6b Mon Sep 17 00:00:00 2001 From: Sazzad Hossain Khan Date: Fri, 19 Feb 2016 11:44:18 +0600 Subject: [PATCH 0951/1274] multi-api-token instead of access_token Should it not be so? --- examples/multi-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/multi-api.php b/examples/multi-api.php index 1fd4cec8c..97c33135b 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -86,7 +86,7 @@ and a list of files from Drive. ************************************************/ if ($client->getAccessToken()) { - $_SESSION['access_token'] = $client->getAccessToken(); + $_SESSION['multi-api-token'] = $client->getAccessToken(); $dr_results = $dr_service->files->listFiles(array('pageSize' => 10)); From cd86c82d5c64c1eb781b32531ed14b5617c9856e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 23 Feb 2016 12:32:24 -0800 Subject: [PATCH 0952/1274] header lines get messed up without this, although it doesn't seem to matter --- src/Google/Http/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index b08eb6535..e344777b3 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -68,8 +68,8 @@ public function execute() MIME-Version: 1.0 Content-ID: %s -%s%s %s +%s%s EOF; From 7dad7edf309c0723500369a23514ab6bbe880fe2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 23 Feb 2016 17:41:22 -0800 Subject: [PATCH 0953/1274] adds default memory cache, and removes redundant middlewares --- src/Google/AuthHandler/Guzzle6AuthHandler.php | 9 ++-- src/Google/Cache/Memory.php | 51 +++++++++++++++++++ src/Google/Client.php | 13 +++-- tests/Google/CacheTest.php | 17 +++++++ 4 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 src/Google/Cache/Memory.php diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php index c0a24cd8f..696723b5d 100644 --- a/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -36,7 +36,8 @@ public function attachCredentials(ClientInterface $http, CredentialsLoader $cred ); $config = $http->getConfig(); - $config['handler']->push($middleware); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'google_auth'; $http = new Client($config); @@ -57,7 +58,8 @@ public function attachToken(ClientInterface $http, array $token, array $scopes) ); $config = $http->getConfig(); - $config['handler']->push($middleware); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'scoped'; $http = new Client($config); @@ -69,7 +71,8 @@ public function attachKey(ClientInterface $http, $key) $middleware = new SimpleMiddleware(['key' => $key]); $config = $http->getConfig(); - $config['handler']->push($middleware); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'simple'; $http = new Client($config); diff --git a/src/Google/Cache/Memory.php b/src/Google/Cache/Memory.php new file mode 100644 index 000000000..97e10696b --- /dev/null +++ b/src/Google/Cache/Memory.php @@ -0,0 +1,51 @@ +cache[$key]) ? $this->cache[$key] : false; + } + + /** + * @inheritDoc + */ + public function set($key, $value) + { + $this->cache[$key] = $value; + } + + /** + * @inheritDoc + * @param String $key + */ + public function delete($key) + { + unset($this->cache[$key]); + } +} diff --git a/src/Google/Client.php b/src/Google/Client.php index c9ac53546..234d526a9 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -929,6 +929,10 @@ public function setCache(CacheInterface $cache) */ public function getCache() { + if (is_null($this->cache)) { + $this->cache = new Google_Cache_Memory(); + } + return $this->cache; } @@ -1040,11 +1044,12 @@ private function createApplicationDefaultCredentials() protected function getAuthHandler() { - // we intentionally do not use the cache because - // the underlying auth library's cache implementation - // is broken. + // Be very careful using the cache, as the underlying auth library's cache + // implementation is naive, and the cache keys do not account for user + // sessions. + // // @see https://github.com/google/google-api-php-client/issues/821 - return Google_AuthHandler_AuthHandlerFactory::build(); + return Google_AuthHandler_AuthHandlerFactory::build($this->getCache()); } private function createUserRefreshCredentials($scope, $refreshToken) diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index c5897d68b..dd684e9ba 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -100,6 +100,23 @@ public function testNull() $this->assertEquals($cache->get('foo'), false); } + public function testMemory() + { + $cache = new Google_Cache_Memory(); + $cache->set('foo', 'bar'); + $cache->delete('foo'); + $this->assertEquals(false, $cache->get('foo')); + + $cache->set('foo.1', 'bar.1'); + $this->assertEquals($cache->get('foo.1'), 'bar.1'); + + $cache->set('foo', 'baz'); + $this->assertEquals($cache->get('foo'), 'baz'); + + $cache->delete('foo'); + $this->assertEquals($cache->get('foo'), false); + } + /** * @requires extension Memcache */ From 3248b2427bd21a642b93a3dce8aa5256a74167e1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 23 Feb 2016 14:31:37 -0800 Subject: [PATCH 0954/1274] fixes undefined buildPsr7Response bug (#864) --- src/Google/Http/REST.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 24077ec2b..247c4ad5e 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -20,6 +20,7 @@ use GuzzleHttp\Exception\RequestException; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\Response; /** * This class implements the RESTful transport of apiServiceRequest()'s @@ -77,12 +78,17 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ throw $e; } - $exceptionResponse = $e->getResponse(); - if ($exceptionResponse instanceof \GuzzleHttp\Message\ResponseInterface) { - $exceptionResponse = $httpHandler->buildPsr7Response($e->getResponse()); + $response = $e->getResponse(); + // specific checking for Guzzle 5: convert to PSR7 response + if ($response instanceof \GuzzleHttp\Message\ResponseInterface) { + $response = new Response( + $response->getStatusCode(), + $response->getHeaders() ?: [], + $response->getBody(), + $response->getProtocolVersion(), + $response->getReasonPhrase() + ); } - - $response = $exceptionResponse; } return self::decodeHttpResponse($response, $request, $expectedClass); From 1e15d9b171634079b4596b42150eb8a167b10b3e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 24 Feb 2016 11:11:59 -0800 Subject: [PATCH 0955/1274] bump google auth to 0.6 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 304b21c26..3cbf2f01c 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.5", + "google/auth": "0.6", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 951f387f6da457faad95ce3ac65c8a930e482b9c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 26 Feb 2016 12:35:38 -0800 Subject: [PATCH 0956/1274] cleans up REST::decodeResponse --- src/Google/Http/REST.php | 88 ++++++++----- tests/Google/Service/ResourceTest.php | 170 ++++++++++++++++++++++++++ 2 files changed, 230 insertions(+), 28 deletions(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 247c4ad5e..b205b6c7c 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -107,44 +107,76 @@ public static function decodeHttpResponse( RequestInterface $request = null, $expectedClass = null ) { - $body = (string) $response->getBody(); $code = $response->getStatusCode(); - $result = null; - // return raw response when "alt" is "media" - $isJson = !($request && 'media' == $request->getUri()->getQuery('alt')); + // retry strategy + if ((intVal($code)) >= 400) { + // if we errored out, it should be safe to grab the response body + $body = (string) $response->getBody(); - // set the result to the body if it's not set to anything else - if ($isJson) { - $result = json_decode($body, true); - if (null === $result && 0 !== json_last_error()) { - // in the event of a parse error, return the raw string - $result = $body; - } - } else { - $result = $body; + // Check if we received errors, and add those to the Exception for convenience + throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body)); } - // retry strategy - if ((intVal($code)) >= 400) { - $errors = null; - // Specific check for APIs which don't return error details, such as Blogger. - if (isset($result['error']['errors'])) { - $errors = $result['error']['errors']; - } - throw new Google_Service_Exception($body, $code, null, $errors); + // Ensure we only pull the entire body into memory if the request is not + // of media type + $body = self::decodeBody($response, $request); + + if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { + $json = json_decode($body, true); + + return new $expectedClass($json); + } + + return $response; + } + + private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) + { + if (self::isAltMedia($request)) { + // don't decode the body, it's probably a really long string + return ''; + } + + return (string) $response->getBody(); + } + + private static function determineExpectedClass($expectedClass, RequestInterface $request = null) + { + // "false" is used to explicitly prevent an expected class from being returned + if (false === $expectedClass) { + return null; } - // use "is_null" because "false" is used to explicitly - // prevent an expected class from being returned - if (is_null($expectedClass) && $request) { - $expectedClass = $request->getHeaderLine('X-Php-Expected-Class'); + // if we don't have a request, we just use what's passed in + if (is_null($request)) { + return $expectedClass; } - if (!empty($expectedClass)) { - return new $expectedClass($result); + // return what we have in the request header if one was not supplied + return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); + } + + private static function getResponseErrors($body) + { + $json = json_decode($body, true); + + if (isset($json['error']['errors'])) { + return $json['error']['errors']; } - return $response; + return null; + } + + private static function isAltMedia(RequestInterface $request = null) + { + if ($request && $qs = $request->getUri()->getQuery()) { + parse_str($qs, $query); + if (isset($query['alt']) && $query['alt'] == 'media') { + return true; + } + } + + return false; } } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index fb3a8c613..5bb7d9172 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -21,6 +21,7 @@ use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; +use GuzzleHttp\Psr7\Stream; class Test_Google_Service extends Google_Service { @@ -34,6 +35,18 @@ public function __construct(Google_Client $client) } } +class Test_MediaType_Stream extends Stream +{ + public $toStringCalled = false; + + public function __toString() + { + $this->toStringCalled = true; + + return parent::__toString(); + } +} + class Google_Service_ResourceTest extends BaseTest { private $client; @@ -263,7 +276,164 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $decoded = $resource->call('testMethod', $arguments, $expectedClass); $this->fail('should have thrown exception'); } catch (Google_Service_Exception $e) { + // Alt Media on error should return a safe error $this->assertEquals('thisisnotvalidjson', $e->getMessage()); } } + + public function testErrorResponseWithVeryLongBody() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + $body = Psr7\stream_for('this will be pulled into memory'); + $response = new Response(400, [], $body); + + $http = $this->getMockBuilder("GuzzleHttp\Client") + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + } + + $client = new Google_Client(); + $client->setHttpClient($http); + $service = new Test_Google_Service($client); + + // set up mock objects + $resource = new Google_Service_Resource( + $service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + $expectedClass = 'ThisShouldBeIgnored'; + $decoded = $resource->call('testMethod', $arguments, $expectedClass); + $this->fail('should have thrown exception'); + } catch (Google_Service_Exception $e) { + // empty message - alt=media means no message + $this->assertEquals('this will be pulled into memory', $e->getMessage()); + } + } + + public function testSuccessResponseWithVeryLongBody() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + $resource = fopen('php://temp', 'r+'); + $stream = new Test_MediaType_Stream($resource); + $response = new Response(200, [], $stream); + + $http = $this->getMockBuilder("GuzzleHttp\Client") + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + } + + $client = new Google_Client(); + $client->setHttpClient($http); + $service = new Test_Google_Service($client); + + // set up mock objects + $resource = new Google_Service_Resource( + $service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + $expectedClass = 'ThisShouldBeIgnored'; + $response = $resource->call('testMethod', $arguments, $expectedClass); + + $this->assertEquals(200, $response->getStatusCode()); + $this->assertFalse($stream->toStringCalled); + } + + public function testExceptionMessage() + { + // set the "alt" parameter to "media" + $request = new Request('GET', '/'); + $errors = [ ["domain" => "foo"] ]; + + $body = Psr7\stream_for(json_encode([ + 'error' => [ + 'errors' => $errors + ] + ])); + + $response = new Response(400, [], $body); + + $http = $this->getMockBuilder("GuzzleHttp\Client") + ->disableOriginalConstructor() + ->getMock(); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + } + + $client = new Google_Client(); + $client->setHttpClient($http); + $service = new Test_Google_Service($client); + + // set up mock objects + $resource = new Google_Service_Resource( + $service, + "test", + "testResource", + array("methods" => + array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + + $decoded = $resource->call('testMethod', array(array())); + $this->fail('should have thrown exception'); + } catch (Google_Service_Exception $e) { + $this->assertEquals($errors, $e->getErrors()); + } + } } From bc654a8b4c256f80c3b622f19b321d775aff04b9 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 1 Mar 2016 14:02:57 -0800 Subject: [PATCH 0957/1274] fixes namespace and adds test --- src/Google/Http/REST.php | 2 +- tests/Google/Http/RESTTest.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index b205b6c7c..7eccc9bee 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -18,9 +18,9 @@ use Google\Auth\HttpHandler\HttpHandlerFactory; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; +use GuzzleHttp\Psr7\Response; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; -use Psr\Http\Message\Response; /** * This class implements the RESTful transport of apiServiceRequest()'s diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index cd5bb6a64..b090fdd77 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -70,6 +70,14 @@ public function testDecode500ResponseThrowsException() $this->rest->decodeHttpResponse($response, $this->request); } + /** @expectedException Google_Service_Exception */ + public function testExceptionResponse() + { + $http = new GuzzleHttp\Client(); + + $request = new Request('GET', 'http://httpbin.org/status/500'); + $response = $this->rest->doExecute($http, $request); + } public function testDecodeEmptyResponse() { From 4dea6811b1071502094215b950a064c10a600557 Mon Sep 17 00:00:00 2001 From: Michael van Tricht Date: Wed, 2 Mar 2016 12:27:42 +0100 Subject: [PATCH 0958/1274] Fix link to Travis-CI in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b33b27e09..ff747d4bf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/google/google-api-php-client.svg)](https://travis-ci.org/google/google-api-php-client.svg?branch=master) +[![Build Status](https://travis-ci.org/google/google-api-php-client.svg?branch=master)](https://travis-ci.org/google/google-api-php-client) # Google APIs Client Library for PHP # From a3ef66799b23b0b722246654d722775510353884 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 2 Mar 2016 15:39:46 -0800 Subject: [PATCH 0959/1274] upgrades google auth version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3cbf2f01c..2d608e1b0 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.6", + "google/auth": "0.7", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 6b085f6a85476e827854452ecc5100c404ceb477 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 4 Mar 2016 12:43:45 -0800 Subject: [PATCH 0960/1274] Update Google Services from Discovery --- src/Google/Service/AdExchangeBuyer.php | 363 +++- src/Google/Service/AdExchangeBuyerII.php | 770 +++++++ src/Google/Service/AdSense.php | 3 +- src/Google/Service/AdSenseHost.php | 4 +- src/Google/Service/Analytics.php | 10 +- src/Google/Service/Appengine.php | 72 + src/Google/Service/Appsactivity.php | 18 + src/Google/Service/Bigquery.php | 164 ++ src/Google/Service/CloudMonitoring.php | 2 +- src/Google/Service/CloudUserAccounts.php | 218 +- src/Google/Service/Cloudbuild.php | 105 +- src/Google/Service/Cloudresourcemanager.php | 356 +-- src/Google/Service/Compute.php | 373 ++-- src/Google/Service/DataTransfer.php | 2 +- src/Google/Service/Dataflow.php | 9 + src/Google/Service/Dataproc.php | 2177 ++++++++++++++++++- src/Google/Service/Genomics.php | 271 +-- src/Google/Service/Gmail.php | 56 +- src/Google/Service/IdentityToolkit.php | 576 ++++- src/Google/Service/Replicapoolupdater.php | 3 +- src/Google/Service/Reseller.php | 11 +- src/Google/Service/SQLAdmin.php | 27 +- src/Google/Service/Script.php | 2 +- src/Google/Service/ServiceRegistry.php | 33 +- src/Google/Service/SiteVerification.php | 2 +- src/Google/Service/Webfonts.php | 4 +- src/Google/Service/YouTube.php | 9 + src/Google/Service/YouTubeAnalytics.php | 2 +- src/Google/Service/YouTubeReporting.php | 6 +- 29 files changed, 4752 insertions(+), 896 deletions(-) create mode 100644 src/Google/Service/AdExchangeBuyerII.php diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php index 480e32d47..b8b983b81 100644 --- a/src/Google/Service/AdExchangeBuyer.php +++ b/src/Google/Service/AdExchangeBuyer.php @@ -45,6 +45,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $pretargetingConfig; public $products; public $proposals; + public $pubprofiles; /** @@ -569,6 +570,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'setupcomplete' => array( + 'path' => 'proposals/{proposalId}/setupcomplete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'proposalId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}', 'httpMethod' => 'PUT', @@ -593,6 +604,26 @@ public function __construct(Google_Client $client) ) ) ); + $this->pubprofiles = new Google_Service_AdExchangeBuyer_Pubprofiles_Resource( + $this, + $this->serviceName, + 'pubprofiles', + array( + 'methods' => array( + 'list' => array( + 'path' => 'publisher/{accountId}/profiles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -1253,6 +1284,20 @@ public function search($optParams = array()) return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse"); } + /** + * Update the given proposal to indicate that setup has been completed. + * (proposals.setupcomplete) + * + * @param string $proposalId The proposal id for which the setup is complete + * @param array $optParams Optional parameters. + */ + public function setupcomplete($proposalId, $optParams = array()) + { + $params = array('proposalId' => $proposalId); + $params = array_merge($params, $optParams); + return $this->call('setupcomplete', array($params)); + } + /** * Update the given proposal (proposals.update) * @@ -1274,6 +1319,33 @@ public function update($proposalId, $revisionNumber, $updateAction, Google_Servi } } +/** + * The "pubprofiles" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $pubprofiles = $adexchangebuyerService->pubprofiles; + * + */ +class Google_Service_AdExchangeBuyer_Pubprofiles_Resource extends Google_Service_Resource +{ + + /** + * Gets the requested publisher profile(s) by publisher accountId. + * (pubprofiles.listPubprofiles) + * + * @param int $accountId The accountId of the publisher to get profiles for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse + */ + public function listPubprofiles($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse"); + } +} + @@ -1363,11 +1435,20 @@ class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model { protected $internal_gapi_mappings = array( ); + public $bidProtocol; public $maximumQps; public $region; public $url; + public function setBidProtocol($bidProtocol) + { + $this->bidProtocol = $bidProtocol; + } + public function getBidProtocol() + { + return $this->bidProtocol; + } public function setMaximumQps($maximumQps) { $this->maximumQps = $maximumQps; @@ -2442,6 +2523,50 @@ public function getNextPageToken() } } +class Google_Service_AdExchangeBuyer_DealServingMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dealPauseStatusType = 'Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus'; + protected $dealPauseStatusDataType = ''; + + + public function setDealPauseStatus(Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus $dealPauseStatus) + { + $this->dealPauseStatus = $dealPauseStatus; + } + public function getDealPauseStatus() + { + return $this->dealPauseStatus; + } +} + +class Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hasBuyerPaused; + public $hasSellerPaused; + + + public function setHasBuyerPaused($hasBuyerPaused) + { + $this->hasBuyerPaused = $hasBuyerPaused; + } + public function getHasBuyerPaused() + { + return $this->hasBuyerPaused; + } + public function setHasSellerPaused($hasSellerPaused) + { + $this->hasSellerPaused = $hasSellerPaused; + } + public function getHasSellerPaused() + { + return $this->hasSellerPaused; + } +} + class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model { protected $internal_gapi_mappings = array( @@ -2559,18 +2684,18 @@ class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends protected $collection_key = 'reservePricePerBuyers'; protected $internal_gapi_mappings = array( ); - public $privateAuctionId; + public $autoOptimizePrivateAuction; protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; protected $reservePricePerBuyersDataType = 'array'; - public function setPrivateAuctionId($privateAuctionId) + public function setAutoOptimizePrivateAuction($autoOptimizePrivateAuction) { - $this->privateAuctionId = $privateAuctionId; + $this->autoOptimizePrivateAuction = $autoOptimizePrivateAuction; } - public function getPrivateAuctionId() + public function getAutoOptimizePrivateAuction() { - return $this->privateAuctionId; + return $this->autoOptimizePrivateAuction; } public function setReservePricePerBuyers($reservePricePerBuyers) { @@ -2791,6 +2916,7 @@ class Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse extends Google_Co ); protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; protected $dealsDataType = 'array'; + public $orderRevisionNumber; public function setDeals($deals) @@ -2801,6 +2927,14 @@ public function getDeals() { return $this->deals; } + public function setOrderRevisionNumber($orderRevisionNumber) + { + $this->orderRevisionNumber = $orderRevisionNumber; + } + public function getOrderRevisionNumber() + { + return $this->orderRevisionNumber; + } } class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection @@ -2879,6 +3013,25 @@ public function getProposals() } } +class Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse extends Google_Collection +{ + protected $collection_key = 'profiles'; + protected $internal_gapi_mappings = array( + ); + protected $profilesType = 'Google_Service_AdExchangeBuyer_PublisherProfileApiProto'; + protected $profilesDataType = 'array'; + + + public function setProfiles($profiles) + { + $this->profiles = $profiles; + } + public function getProfiles() + { + return $this->profiles; + } +} + class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection { protected $collection_key = 'sharedTargetings'; @@ -2888,7 +3041,10 @@ class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection protected $buyerPrivateDataDataType = ''; public $creationTimeMs; public $creativePreApprovalPolicy; + public $creativeSafeFrameCompatibility; public $dealId; + protected $dealServingMetadataType = 'Google_Service_AdExchangeBuyer_DealServingMetadata'; + protected $dealServingMetadataDataType = ''; protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; protected $deliveryControlDataType = ''; public $externalDealId; @@ -2900,6 +3056,7 @@ class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection public $name; public $productId; public $productRevisionNumber; + public $programmaticCreativeSource; public $proposalId; protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; protected $sellerContactsDataType = 'array'; @@ -2935,6 +3092,14 @@ public function getCreativePreApprovalPolicy() { return $this->creativePreApprovalPolicy; } + public function setCreativeSafeFrameCompatibility($creativeSafeFrameCompatibility) + { + $this->creativeSafeFrameCompatibility = $creativeSafeFrameCompatibility; + } + public function getCreativeSafeFrameCompatibility() + { + return $this->creativeSafeFrameCompatibility; + } public function setDealId($dealId) { $this->dealId = $dealId; @@ -2943,6 +3108,14 @@ public function getDealId() { return $this->dealId; } + public function setDealServingMetadata(Google_Service_AdExchangeBuyer_DealServingMetadata $dealServingMetadata) + { + $this->dealServingMetadata = $dealServingMetadata; + } + public function getDealServingMetadata() + { + return $this->dealServingMetadata; + } public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) { $this->deliveryControl = $deliveryControl; @@ -3023,6 +3196,14 @@ public function getProductRevisionNumber() { return $this->productRevisionNumber; } + public function setProgrammaticCreativeSource($programmaticCreativeSource) + { + $this->programmaticCreativeSource = $programmaticCreativeSource; + } + public function getProgrammaticCreativeSource() + { + return $this->programmaticCreativeSource; + } public function setProposalId($proposalId) { $this->proposalId = $proposalId; @@ -3928,6 +4109,8 @@ class Google_Service_AdExchangeBuyer_Product extends Google_Collection public $creationTimeMs; protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; protected $creatorContactsDataType = 'array'; + protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; + protected $deliveryControlDataType = ''; public $flightEndTimeMs; public $flightStartTimeMs; public $hasCreatorSignedOff; @@ -3936,7 +4119,9 @@ class Google_Service_AdExchangeBuyer_Product extends Google_Collection protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; protected $labelsDataType = 'array'; public $lastUpdateTimeMs; + public $legacyOfferId; public $name; + public $privateAuctionId; public $productId; public $revisionNumber; protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; @@ -3966,6 +4151,14 @@ public function getCreatorContacts() { return $this->creatorContacts; } + public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) + { + $this->deliveryControl = $deliveryControl; + } + public function getDeliveryControl() + { + return $this->deliveryControl; + } public function setFlightEndTimeMs($flightEndTimeMs) { $this->flightEndTimeMs = $flightEndTimeMs; @@ -4022,6 +4215,14 @@ public function getLastUpdateTimeMs() { return $this->lastUpdateTimeMs; } + public function setLegacyOfferId($legacyOfferId) + { + $this->legacyOfferId = $legacyOfferId; + } + public function getLegacyOfferId() + { + return $this->legacyOfferId; + } public function setName($name) { $this->name = $name; @@ -4030,6 +4231,14 @@ public function getName() { return $this->name; } + public function setPrivateAuctionId($privateAuctionId) + { + $this->privateAuctionId = $privateAuctionId; + } + public function getPrivateAuctionId() + { + return $this->privateAuctionId; + } public function setProductId($productId) { $this->productId = $productId; @@ -4120,7 +4329,9 @@ class Google_Service_AdExchangeBuyer_Proposal extends Google_Collection public $lastUpdaterOrCommentorRole; public $lastUpdaterRole; public $name; + public $negotiationId; public $originatorRole; + public $privateAuctionId; public $proposalId; public $proposalState; public $revisionNumber; @@ -4243,6 +4454,14 @@ public function getName() { return $this->name; } + public function setNegotiationId($negotiationId) + { + $this->negotiationId = $negotiationId; + } + public function getNegotiationId() + { + return $this->negotiationId; + } public function setOriginatorRole($originatorRole) { $this->originatorRole = $originatorRole; @@ -4251,6 +4470,14 @@ public function getOriginatorRole() { return $this->originatorRole; } + public function setPrivateAuctionId($privateAuctionId) + { + $this->privateAuctionId = $privateAuctionId; + } + public function getPrivateAuctionId() + { + return $this->privateAuctionId; + } public function setProposalId($proposalId) { $this->proposalId = $proposalId; @@ -4301,6 +4528,132 @@ public function getSellerContacts() } } +class Google_Service_AdExchangeBuyer_PublisherProfileApiProto extends Google_Collection +{ + protected $collection_key = 'topHeadlines'; + protected $internal_gapi_mappings = array( + ); + public $buyerPitchStatement; + public $googlePlusLink; + public $isParent; + public $kind; + public $logoUrl; + public $mediaKitLink; + public $name; + public $overview; + public $profileId; + public $publisherDomains; + public $rateCardInfoLink; + public $samplePageLink; + public $topHeadlines; + + + public function setBuyerPitchStatement($buyerPitchStatement) + { + $this->buyerPitchStatement = $buyerPitchStatement; + } + public function getBuyerPitchStatement() + { + return $this->buyerPitchStatement; + } + public function setGooglePlusLink($googlePlusLink) + { + $this->googlePlusLink = $googlePlusLink; + } + public function getGooglePlusLink() + { + return $this->googlePlusLink; + } + public function setIsParent($isParent) + { + $this->isParent = $isParent; + } + public function getIsParent() + { + return $this->isParent; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLogoUrl($logoUrl) + { + $this->logoUrl = $logoUrl; + } + public function getLogoUrl() + { + return $this->logoUrl; + } + public function setMediaKitLink($mediaKitLink) + { + $this->mediaKitLink = $mediaKitLink; + } + public function getMediaKitLink() + { + return $this->mediaKitLink; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverview($overview) + { + $this->overview = $overview; + } + public function getOverview() + { + return $this->overview; + } + public function setProfileId($profileId) + { + $this->profileId = $profileId; + } + public function getProfileId() + { + return $this->profileId; + } + public function setPublisherDomains($publisherDomains) + { + $this->publisherDomains = $publisherDomains; + } + public function getPublisherDomains() + { + return $this->publisherDomains; + } + public function setRateCardInfoLink($rateCardInfoLink) + { + $this->rateCardInfoLink = $rateCardInfoLink; + } + public function getRateCardInfoLink() + { + return $this->rateCardInfoLink; + } + public function setSamplePageLink($samplePageLink) + { + $this->samplePageLink = $samplePageLink; + } + public function getSamplePageLink() + { + return $this->samplePageLink; + } + public function setTopHeadlines($topHeadlines) + { + $this->topHeadlines = $topHeadlines; + } + public function getTopHeadlines() + { + return $this->topHeadlines; + } +} + class Google_Service_AdExchangeBuyer_Seller extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/AdExchangeBuyerII.php b/src/Google/Service/AdExchangeBuyerII.php new file mode 100644 index 000000000..226fcae49 --- /dev/null +++ b/src/Google/Service/AdExchangeBuyerII.php @@ -0,0 +1,770 @@ + + * The Ad Exchange Buyer API II lets you access the latest features for managing + * Ad Exchange accounts and Real-Time Bidding configurations.

    + * + *

    + * For more information about this service, see the API + * Documentation + *

    + * + * @author Google, Inc. + */ +class Google_Service_AdExchangeBuyerII extends Google_Service +{ + /** Manage your Ad Exchange buyer account configuration. */ + const ADEXCHANGE_BUYER = + "https://www.googleapis.com/auth/adexchange.buyer"; + + public $accounts_clients; + public $accounts_clients_invitations; + public $accounts_clients_users; + + + /** + * Constructs the internal representation of the AdExchangeBuyerII service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://adexchangebuyer.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v2beta1'; + $this->serviceName = 'adexchangebuyer2'; + + $this->accounts_clients = new Google_Service_AdExchangeBuyerII_AccountsClients_Resource( + $this, + $this->serviceName, + 'clients', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_clients_invitations = new Google_Service_AdExchangeBuyerII_AccountsClientsInvitations_Resource( + $this, + $this->serviceName, + 'invitations', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'invitationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_clients_users = new Google_Service_AdExchangeBuyerII_AccountsClientsUsers_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); + * $accounts = $adexchangebuyer2Service->accounts; + * + */ +class Google_Service_AdExchangeBuyerII_Accounts_Resource extends Google_Service_Resource +{ +} + +/** + * The "clients" collection of methods. + * Typical usage is: + * + * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); + * $clients = $adexchangebuyer2Service->clients; + * + */ +class Google_Service_AdExchangeBuyerII_AccountsClients_Resource extends Google_Service_Resource +{ + + /** + * Creates a new client buyer. (clients.create) + * + * @param string $accountId Unique numerical account ID for the buyer of which + * the client buyer is a customer; the sponsor buyer to create a client for. + * (required) + * @param Google_Client $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_Client + */ + public function create($accountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Client"); + } + + /** + * Gets a client buyer with a given client account ID. (clients.get) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer to + * retrieve. (required) + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_Client + */ + public function get($accountId, $clientAccountId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Client"); + } + + /** + * Lists all the clients for the current sponsor buyer. + * (clients.listAccountsClients) + * + * @param string $accountId Unique numerical account ID of the sponsor buyer to + * list the clients for. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Requested page size. The server may return fewer + * clients than requested. If unspecified, the server will pick an appropriate + * default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListClientsResponse.nextPageToken returned from the previous call to the + * accounts.clients.list method. + * @return Google_Service_AdExchangeBuyerII_ListClientsResponse + */ + public function listAccountsClients($accountId, $optParams = array()) + { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientsResponse"); + } + + /** + * Updates an existing client buyer. (clients.update) + * + * @param string $accountId Unique numerical account ID for the buyer of which + * the client buyer is a customer; the sponsor buyer to update a client for. + * (required) + * @param string $clientAccountId Unique numerical account ID of the client to + * update. (required) + * @param Google_Client $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_Client + */ + public function update($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Client"); + } +} + +/** + * The "invitations" collection of methods. + * Typical usage is: + * + * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); + * $invitations = $adexchangebuyer2Service->invitations; + * + */ +class Google_Service_AdExchangeBuyerII_AccountsClientsInvitations_Resource extends Google_Service_Resource +{ + + /** + * Creates and sends out an email invitation to access an Ad Exchange client + * buyer account. (invitations.create) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer that + * the user should be associated with. (required) + * @param Google_ClientUserInvitation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation + */ + public function create($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation"); + } + + /** + * Retrieves an existing client user invitation. (invitations.get) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer that + * the user invitation to be retrieved is associated with. (required) + * @param string $invitationId Numerical identifier of the user invitation to + * retrieve. (required) + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation + */ + public function get($accountId, $clientAccountId, $invitationId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'invitationId' => $invitationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation"); + } + + /** + * Lists all the client users invitations for a client with a given account ID. + * (invitations.listAccountsClientsInvitations) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer to + * list invitations for. (required) You must either specify a string + * representation of a numerical account identifier or the `-` character to list + * all the invitations for all the clients of a given sponsor buyer. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Requested page size. Server may return fewer clients + * than requested. If unspecified, server will pick an appropriate default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListClientUserInvitationsResponse.nextPageToken returned from the previous + * call to the clients.invitations.list method. + * @return Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse + */ + public function listAccountsClientsInvitations($accountId, $clientAccountId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse"); + } +} +/** + * The "users" collection of methods. + * Typical usage is: + * + * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); + * $users = $adexchangebuyer2Service->users; + * + */ +class Google_Service_AdExchangeBuyerII_AccountsClientsUsers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves an existing client user. (users.get) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer that + * the user to be retrieved is associated with. (required) + * @param string $userId Numerical identifier of the user to retrieve. + * (required) + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_ClientUser + */ + public function get($accountId, $clientAccountId, $userId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUser"); + } + + /** + * Lists all the known client users for a specified sponsor buyer account ID. + * (users.listAccountsClientsUsers) + * + * @param string $accountId Numerical account ID of the sponsor buyer of the + * client to list users for. (required) + * @param string $clientAccountId The account ID of the client buyer to list + * users for. (required) You must specify either a string representation of a + * numerical account identifier or the `-` character to list all the client + * users for all the clients of a given sponsor buyer. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Requested page size. The server may return fewer + * clients than requested. If unspecified, the server will pick an appropriate + * default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListClientUsersResponse.nextPageToken returned from the previous call to the + * accounts.clients.users.list method. + * @return Google_Service_AdExchangeBuyerII_ListClientUsersResponse + */ + public function listAccountsClientsUsers($accountId, $clientAccountId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUsersResponse"); + } + + /** + * Updates an existing client user. Only the user status can be changed on + * update. (users.update) + * + * @param string $accountId Numerical account ID of the client's sponsor buyer. + * (required) + * @param string $clientAccountId Numerical account ID of the client buyer that + * the user to be retrieved is associated with. (required) + * @param string $userId Numerical identifier of the user to retrieve. + * (required) + * @param Google_ClientUser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyerII_ClientUser + */ + public function update($accountId, $clientAccountId, $userId, Google_Service_AdExchangeBuyerII_ClientUser $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_ClientUser"); + } +} + + + + +class Google_Service_AdExchangeBuyerII_Client extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clientAccountId; + public $clientName; + public $entityId; + public $entityName; + public $entityType; + public $role; + public $status; + public $visibleToSeller; + + + public function setClientAccountId($clientAccountId) + { + $this->clientAccountId = $clientAccountId; + } + public function getClientAccountId() + { + return $this->clientAccountId; + } + public function setClientName($clientName) + { + $this->clientName = $clientName; + } + public function getClientName() + { + return $this->clientName; + } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } + public function setEntityName($entityName) + { + $this->entityName = $entityName; + } + public function getEntityName() + { + return $this->entityName; + } + public function setEntityType($entityType) + { + $this->entityType = $entityType; + } + public function getEntityType() + { + return $this->entityType; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setVisibleToSeller($visibleToSeller) + { + $this->visibleToSeller = $visibleToSeller; + } + public function getVisibleToSeller() + { + return $this->visibleToSeller; + } +} + +class Google_Service_AdExchangeBuyerII_ClientUser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clientAccountId; + public $email; + public $status; + public $userId; + + + public function setClientAccountId($clientAccountId) + { + $this->clientAccountId = $clientAccountId; + } + public function getClientAccountId() + { + return $this->clientAccountId; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_AdExchangeBuyerII_ClientUserInvitation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clientAccountId; + public $email; + public $invitationId; + + + public function setClientAccountId($clientAccountId) + { + $this->clientAccountId = $clientAccountId; + } + public function getClientAccountId() + { + return $this->clientAccountId; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setInvitationId($invitationId) + { + $this->invitationId = $invitationId; + } + public function getInvitationId() + { + return $this->invitationId; + } +} + +class Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse extends Google_Collection +{ + protected $collection_key = 'invitations'; + protected $internal_gapi_mappings = array( + ); + protected $invitationsType = 'Google_Service_AdExchangeBuyerII_ClientUserInvitation'; + protected $invitationsDataType = 'array'; + public $nextPageToken; + + + public function setInvitations($invitations) + { + $this->invitations = $invitations; + } + public function getInvitations() + { + return $this->invitations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_AdExchangeBuyerII_ListClientUsersResponse extends Google_Collection +{ + protected $collection_key = 'users'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $usersType = 'Google_Service_AdExchangeBuyerII_ClientUser'; + protected $usersDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } +} + +class Google_Service_AdExchangeBuyerII_ListClientsResponse extends Google_Collection +{ + protected $collection_key = 'clients'; + protected $internal_gapi_mappings = array( + ); + protected $clientsType = 'Google_Service_AdExchangeBuyerII_Client'; + protected $clientsDataType = 'array'; + public $nextPageToken; + + + public function setClients($clients) + { + $this->clients = $clients; + } + public function getClients() + { + return $this->clients; + } + 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 index 95356ccb7..e8ad5ad70 100644 --- a/src/Google/Service/AdSense.php +++ b/src/Google/Service/AdSense.php @@ -19,8 +19,7 @@ * Service definition for AdSense (v1.4). * *

    - * Gives AdSense publishers access to their inventory and the ability to - * generate reports

    + * Accesses AdSense publishers' inventory and generates performance reports.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php index eee99cec0..3bad7bd0d 100644 --- a/src/Google/Service/AdSenseHost.php +++ b/src/Google/Service/AdSenseHost.php @@ -19,8 +19,8 @@ * Service definition for AdSenseHost (v4.1). * *

    - * Gives AdSense Hosts access to report generation, ad code generation, and - * publisher management capabilities.

    + * Generates performance reports, generates ad codes, and provides publisher + * management capabilities for AdSense Hosts.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php index 0b073362f..32007c900 100644 --- a/src/Google/Service/Analytics.php +++ b/src/Google/Service/Analytics.php @@ -19,7 +19,7 @@ * Service definition for Analytics (v3). * *

    - * View and manage your Google Analytics data

    + * Views and manages your Google Analytics data.

    * *

    * For more information about this service, see the API @@ -3139,9 +3139,11 @@ public function delete($accountId, $webPropertyId, $profileId, $optParams = arra /** * Gets a view (profile) to which the user has access. (profiles.get) * - * @param string $accountId Account ID to retrieve the goal for. - * @param string $webPropertyId Web property ID to retrieve the goal for. - * @param string $profileId View (Profile) ID to retrieve the goal for. + * @param string $accountId Account ID to retrieve the view (profile) for. + * @param string $webPropertyId Web property ID to retrieve the view (profile) + * for. + * @param string $profileId View (Profile) ID to retrieve the view (profile) + * for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Profile */ diff --git a/src/Google/Service/Appengine.php b/src/Google/Service/Appengine.php index 657056531..2b788b6f9 100644 --- a/src/Google/Service/Appengine.php +++ b/src/Google/Service/Appengine.php @@ -298,6 +298,30 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'patch' => array( + 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'appsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'servicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'versionsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'mask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ), ) ) @@ -562,6 +586,27 @@ public function listAppsServicesVersions($appsId, $servicesId, $optParams = arra $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Appengine_ListVersionsResponse"); } + + /** + * Updates an existing version. Note: UNIMPLEMENTED. (versions.patch) + * + * @param string $appsId Part of `name`. Name of the resource to update. For + * example: "apps/myapp/services/default/versions/1". + * @param string $servicesId Part of `name`. See documentation of `appsId`. + * @param string $versionsId Part of `name`. See documentation of `appsId`. + * @param Google_Version $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string mask Standard field mask for the set of fields to be + * updated. + * @return Google_Service_Appengine_Version + */ + public function patch($appsId, $servicesId, $versionsId, Google_Service_Appengine_Version $postBody, $optParams = array()) + { + $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Appengine_Version"); + } } @@ -642,8 +687,11 @@ class Google_Service_Appengine_Application extends Google_Collection protected $collection_key = 'dispatchRules'; protected $internal_gapi_mappings = array( ); + public $authDomain; public $codeBucket; public $defaultBucket; + public $defaultCookieExpiration; + public $defaultHostname; protected $dispatchRulesType = 'Google_Service_Appengine_UrlDispatchRule'; protected $dispatchRulesDataType = 'array'; public $id; @@ -651,6 +699,14 @@ class Google_Service_Appengine_Application extends Google_Collection public $name; + public function setAuthDomain($authDomain) + { + $this->authDomain = $authDomain; + } + public function getAuthDomain() + { + return $this->authDomain; + } public function setCodeBucket($codeBucket) { $this->codeBucket = $codeBucket; @@ -667,6 +723,22 @@ public function getDefaultBucket() { return $this->defaultBucket; } + public function setDefaultCookieExpiration($defaultCookieExpiration) + { + $this->defaultCookieExpiration = $defaultCookieExpiration; + } + public function getDefaultCookieExpiration() + { + return $this->defaultCookieExpiration; + } + public function setDefaultHostname($defaultHostname) + { + $this->defaultHostname = $defaultHostname; + } + public function getDefaultHostname() + { + return $this->defaultHostname; + } public function setDispatchRules($dispatchRules) { $this->dispatchRules = $dispatchRules; diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php index f4ac87cfd..3275aa0bb 100644 --- a/src/Google/Service/Appsactivity.php +++ b/src/Google/Service/Appsactivity.php @@ -546,11 +546,21 @@ class Google_Service_Appsactivity_User extends Google_Model { protected $internal_gapi_mappings = array( ); + public $isDeleted; public $name; + public $permissionId; protected $photoType = 'Google_Service_Appsactivity_Photo'; protected $photoDataType = ''; + public function setIsDeleted($isDeleted) + { + $this->isDeleted = $isDeleted; + } + public function getIsDeleted() + { + return $this->isDeleted; + } public function setName($name) { $this->name = $name; @@ -559,6 +569,14 @@ public function getName() { return $this->name; } + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + public function getPermissionId() + { + return $this->permissionId; + } public function setPhoto(Google_Service_Appsactivity_Photo $photo) { $this->photo = $photo; diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php index 62a6c9484..3d96d60b3 100644 --- a/src/Google/Service/Bigquery.php +++ b/src/Google/Service/Bigquery.php @@ -973,6 +973,151 @@ public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery +class Google_Service_Bigquery_BigtableColumn extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $encoding; + public $fieldName; + public $onlyReadLatest; + public $qualifierEncoded; + public $qualifierString; + public $type; + + + public function setEncoding($encoding) + { + $this->encoding = $encoding; + } + public function getEncoding() + { + return $this->encoding; + } + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + public function getFieldName() + { + return $this->fieldName; + } + public function setOnlyReadLatest($onlyReadLatest) + { + $this->onlyReadLatest = $onlyReadLatest; + } + public function getOnlyReadLatest() + { + return $this->onlyReadLatest; + } + public function setQualifierEncoded($qualifierEncoded) + { + $this->qualifierEncoded = $qualifierEncoded; + } + public function getQualifierEncoded() + { + return $this->qualifierEncoded; + } + public function setQualifierString($qualifierString) + { + $this->qualifierString = $qualifierString; + } + public function getQualifierString() + { + return $this->qualifierString; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Bigquery_BigtableColumnFamily extends Google_Collection +{ + protected $collection_key = 'columns'; + protected $internal_gapi_mappings = array( + ); + protected $columnsType = 'Google_Service_Bigquery_BigtableColumn'; + protected $columnsDataType = 'array'; + public $encoding; + public $familyId; + public $onlyReadLatest; + public $type; + + + public function setColumns($columns) + { + $this->columns = $columns; + } + public function getColumns() + { + return $this->columns; + } + public function setEncoding($encoding) + { + $this->encoding = $encoding; + } + public function getEncoding() + { + return $this->encoding; + } + public function setFamilyId($familyId) + { + $this->familyId = $familyId; + } + public function getFamilyId() + { + return $this->familyId; + } + public function setOnlyReadLatest($onlyReadLatest) + { + $this->onlyReadLatest = $onlyReadLatest; + } + public function getOnlyReadLatest() + { + return $this->onlyReadLatest; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Bigquery_BigtableOptions extends Google_Collection +{ + protected $collection_key = 'columnFamilies'; + protected $internal_gapi_mappings = array( + ); + protected $columnFamiliesType = 'Google_Service_Bigquery_BigtableColumnFamily'; + protected $columnFamiliesDataType = 'array'; + public $ignoreUnspecifiedColumnFamilies; + + + public function setColumnFamilies($columnFamilies) + { + $this->columnFamilies = $columnFamilies; + } + public function getColumnFamilies() + { + return $this->columnFamilies; + } + public function setIgnoreUnspecifiedColumnFamilies($ignoreUnspecifiedColumnFamilies) + { + $this->ignoreUnspecifiedColumnFamilies = $ignoreUnspecifiedColumnFamilies; + } + public function getIgnoreUnspecifiedColumnFamilies() + { + return $this->ignoreUnspecifiedColumnFamilies; + } +} + class Google_Service_Bigquery_CsvOptions extends Google_Model { protected $internal_gapi_mappings = array( @@ -1537,6 +1682,9 @@ class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collectio protected $collection_key = 'sourceUris'; protected $internal_gapi_mappings = array( ); + public $autodetect; + protected $bigtableOptionsType = 'Google_Service_Bigquery_BigtableOptions'; + protected $bigtableOptionsDataType = ''; public $compression; protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions'; protected $csvOptionsDataType = ''; @@ -1548,6 +1696,22 @@ class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collectio public $sourceUris; + public function setAutodetect($autodetect) + { + $this->autodetect = $autodetect; + } + public function getAutodetect() + { + return $this->autodetect; + } + public function setBigtableOptions(Google_Service_Bigquery_BigtableOptions $bigtableOptions) + { + $this->bigtableOptions = $bigtableOptions; + } + public function getBigtableOptions() + { + return $this->bigtableOptions; + } public function setCompression($compression) { $this->compression = $compression; diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php index d80058896..193e8c829 100644 --- a/src/Google/Service/CloudMonitoring.php +++ b/src/Google/Service/CloudMonitoring.php @@ -19,7 +19,7 @@ * Service definition for CloudMonitoring (v2beta2). * *

    - * API for accessing Google Cloud and API monitoring data.

    + * Accesses Google Cloud Monitoring data.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php index 78c5ae8f4..86ed3a0f4 100644 --- a/src/Google/Service/CloudUserAccounts.php +++ b/src/Google/Service/CloudUserAccounts.php @@ -19,7 +19,8 @@ * Service definition for CloudUserAccounts (vm_alpha). * *

    - * API for the Google Cloud User Accounts service.

    + * Creates and manages users and groups for accessing Google Compute Engine + * virtual machines.

    * *

    * For more information about this service, see the API @@ -563,18 +564,34 @@ public function get($project, $operation, $optParams = array()) * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. * - * For example, filter=name ne example-instance. - * @opt_param string maxResults Maximum count of results to be returned. + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions, meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -585,9 +602,9 @@ public function get($project, $operation, $optParams = array()) * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_CloudUserAccounts_OperationList */ public function listGlobalAccountsOperations($project, $optParams = array()) @@ -696,18 +713,34 @@ public function insert($project, Google_Service_CloudUserAccounts_Group $postBod * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. * - * For example, filter=name ne example-instance. - * @opt_param string maxResults Maximum count of results to be returned. + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions, meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -718,9 +751,9 @@ public function insert($project, Google_Service_CloudUserAccounts_Group $postBod * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_CloudUserAccounts_GroupList */ public function listGroups($project, $optParams = array()) @@ -827,18 +860,34 @@ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optPar * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. * - * For example, filter=name ne example-instance. - * @opt_param string maxResults Maximum count of results to be returned. + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. + * + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions, meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -849,9 +898,9 @@ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optPar * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse */ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) @@ -961,18 +1010,34 @@ public function insert($project, Google_Service_CloudUserAccounts_User $postBody * * @opt_param string filter Sets a filter expression for filtering listed * resources, in the form filter={expression}. Your {expression} must be in the - * format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. + * format: field_name comparison_string literal_string. * - * The FIELD_NAME is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The COMPARISON_STRING - * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the * string value to filter to. The literal value must be valid for the type of - * field (string, number, boolean). For string fields, the literal value is - * interpreted as a regular expression using RE2 syntax. The literal value must - * match the entire field. + * field you are filtering by (string, number, boolean). For string fields, the + * literal value is interpreted as a regular expression using RE2 syntax. The + * literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. + * + * Compute Engine Beta API Only: If you use filtering in the Beta API, you can + * also filter on nested fields. For example, you could filter on instances that + * have set the scheduling.automaticRestart field to true. In particular, use + * filtering on nested fields to take advantage of instance labels to organize + * and filter results based on label values. * - * For example, filter=name ne example-instance. - * @opt_param string maxResults Maximum count of results to be returned. + * The Beta API also supports filtering on multiple expressions by providing + * each separate expression within parentheses. For example, + * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple + * expressions are treated as AND expressions, meaning that resources must match + * all expressions to pass the filters. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -983,9 +1048,9 @@ public function insert($project, Google_Service_CloudUserAccounts_User $postBody * returned first. * * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Use this parameter - * if you want to list the next page of results. Set pageToken to the - * nextPageToken returned by a previous list request. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_CloudUserAccounts_UserList */ public function listUsers($project, $optParams = array()) @@ -1051,6 +1116,33 @@ public function testIamPermissions($project, $resource, Google_Service_CloudUser +class Google_Service_CloudUserAccounts_AuditConfig extends Google_Collection +{ + protected $collection_key = 'exemptedMembers'; + protected $internal_gapi_mappings = array( + ); + public $exemptedMembers; + public $service; + + + public function setExemptedMembers($exemptedMembers) + { + $this->exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} + class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection { protected $collection_key = 'keys'; @@ -1554,6 +1646,7 @@ class Google_Service_CloudUserAccounts_Operation extends Google_Collection ); public $clientOperationId; public $creationTimestamp; + public $description; public $endTime; protected $errorType = 'Google_Service_CloudUserAccounts_OperationError'; protected $errorDataType = ''; @@ -1594,6 +1687,14 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1933,14 +2034,25 @@ class Google_Service_CloudUserAccounts_Policy extends Google_Collection protected $collection_key = 'rules'; protected $internal_gapi_mappings = array( ); + protected $auditConfigsType = 'Google_Service_CloudUserAccounts_AuditConfig'; + protected $auditConfigsDataType = 'array'; protected $bindingsType = 'Google_Service_CloudUserAccounts_Binding'; protected $bindingsDataType = 'array'; public $etag; + public $iamOwned; protected $rulesType = 'Google_Service_CloudUserAccounts_Rule'; protected $rulesDataType = 'array'; public $version; + public function setAuditConfigs($auditConfigs) + { + $this->auditConfigs = $auditConfigs; + } + public function getAuditConfigs() + { + return $this->auditConfigs; + } public function setBindings($bindings) { $this->bindings = $bindings; @@ -1957,6 +2069,14 @@ public function getEtag() { return $this->etag; } + public function setIamOwned($iamOwned) + { + $this->iamOwned = $iamOwned; + } + public function getIamOwned() + { + return $this->iamOwned; + } public function setRules($rules) { $this->rules = $rules; diff --git a/src/Google/Service/Cloudbuild.php b/src/Google/Service/Cloudbuild.php index 6d0f29a8f..efc359ab4 100644 --- a/src/Google/Service/Cloudbuild.php +++ b/src/Google/Service/Cloudbuild.php @@ -16,11 +16,10 @@ */ /** - * Service definition for Cloudbuild (v1). + * Service definition for CloudBuild (v1). * *

    - * The Google Cloud Container Builder API lets you build container images in the - * cloud.

    + * Builds container images in the cloud.

    * *

    * For more information about this service, see the API @@ -29,7 +28,7 @@ * * @author Google, Inc. */ -class Google_Service_Cloudbuild extends Google_Service +class Google_Service_CloudBuild extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = @@ -40,7 +39,7 @@ class Google_Service_Cloudbuild extends Google_Service /** - * Constructs the internal representation of the Cloudbuild service. + * Constructs the internal representation of the CloudBuild service. * * @param Google_Client $client */ @@ -52,7 +51,7 @@ public function __construct(Google_Client $client) $this->version = 'v1'; $this->serviceName = 'cloudbuild'; - $this->operations = new Google_Service_Cloudbuild_Operations_Resource( + $this->operations = new Google_Service_CloudBuild_Operations_Resource( $this, $this->serviceName, 'operations', @@ -94,7 +93,7 @@ public function __construct(Google_Client $client) ) ) ); - $this->projects_builds = new Google_Service_Cloudbuild_ProjectsBuilds_Resource( + $this->projects_builds = new Google_Service_CloudBuild_ProjectsBuilds_Resource( $this, $this->serviceName, 'builds', @@ -170,11 +169,11 @@ public function __construct(Google_Client $client) * The "operations" collection of methods. * Typical usage is: * - * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $cloudbuildService = new Google_Service_CloudBuild(...); * $operations = $cloudbuildService->operations; * */ -class Google_Service_Cloudbuild_Operations_Resource extends Google_Service_Resource +class Google_Service_CloudBuild_Operations_Resource extends Google_Service_Resource { /** @@ -184,13 +183,13 @@ class Google_Service_Cloudbuild_Operations_Resource extends Google_Service_Resou * * @param string $name The name of the operation resource. * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbuild_Operation + * @return Google_Service_CloudBuild_Operation */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudbuild_Operation"); + return $this->call('get', array($params), "Google_Service_CloudBuild_Operation"); } /** @@ -207,13 +206,13 @@ public function get($name, $optParams = array()) * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. - * @return Google_Service_Cloudbuild_ListOperationsResponse + * @return Google_Service_CloudBuild_ListOperationsResponse */ public function listOperations($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudbuild_ListOperationsResponse"); + return $this->call('list', array($params), "Google_Service_CloudBuild_ListOperationsResponse"); } } @@ -221,11 +220,11 @@ public function listOperations($name, $optParams = array()) * The "projects" collection of methods. * Typical usage is: * - * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $cloudbuildService = new Google_Service_CloudBuild(...); * $projects = $cloudbuildService->projects; * */ -class Google_Service_Cloudbuild_Projects_Resource extends Google_Service_Resource +class Google_Service_CloudBuild_Projects_Resource extends Google_Service_Resource { } @@ -233,11 +232,11 @@ class Google_Service_Cloudbuild_Projects_Resource extends Google_Service_Resourc * The "builds" collection of methods. * Typical usage is: * - * $cloudbuildService = new Google_Service_Cloudbuild(...); + * $cloudbuildService = new Google_Service_CloudBuild(...); * $builds = $cloudbuildService->builds; * */ -class Google_Service_Cloudbuild_ProjectsBuilds_Resource extends Google_Service_Resource +class Google_Service_CloudBuild_ProjectsBuilds_Resource extends Google_Service_Resource { /** @@ -247,13 +246,13 @@ class Google_Service_Cloudbuild_ProjectsBuilds_Resource extends Google_Service_R * @param string $id ID of the build. * @param Google_CancelBuildRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbuild_Build + * @return Google_Service_CloudBuild_Build */ - public function cancel($projectId, $id, Google_Service_Cloudbuild_CancelBuildRequest $postBody, $optParams = array()) + public function cancel($projectId, $id, Google_Service_CloudBuild_CancelBuildRequest $postBody, $optParams = array()) { $params = array('projectId' => $projectId, 'id' => $id, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Cloudbuild_Build"); + return $this->call('cancel', array($params), "Google_Service_CloudBuild_Build"); } /** @@ -266,13 +265,13 @@ public function cancel($projectId, $id, Google_Service_Cloudbuild_CancelBuildReq * @param string $projectId ID of the project. * @param Google_Build $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbuild_Operation + * @return Google_Service_CloudBuild_Operation */ - public function create($projectId, Google_Service_Cloudbuild_Build $postBody, $optParams = array()) + public function create($projectId, Google_Service_CloudBuild_Build $postBody, $optParams = array()) { $params = array('projectId' => $projectId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Cloudbuild_Operation"); + return $this->call('create', array($params), "Google_Service_CloudBuild_Operation"); } /** @@ -284,13 +283,13 @@ public function create($projectId, Google_Service_Cloudbuild_Build $postBody, $o * @param string $projectId ID of the project. * @param string $id ID of the build. * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbuild_Build + * @return Google_Service_CloudBuild_Build */ public function get($projectId, $id, $optParams = array()) { $params = array('projectId' => $projectId, 'id' => $id); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudbuild_Build"); + return $this->call('get', array($params), "Google_Service_CloudBuild_Build"); } /** @@ -305,20 +304,20 @@ public function get($projectId, $id, $optParams = array()) * @opt_param int pageSize Number of results to return in the list. * @opt_param string pageToken Token to provide to skip to a particular spot in * the list. - * @return Google_Service_Cloudbuild_ListBuildsResponse + * @return Google_Service_CloudBuild_ListBuildsResponse */ public function listProjectsBuilds($projectId, $optParams = array()) { $params = array('projectId' => $projectId); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudbuild_ListBuildsResponse"); + return $this->call('list', array($params), "Google_Service_CloudBuild_ListBuildsResponse"); } } -class Google_Service_Cloudbuild_Build extends Google_Collection +class Google_Service_CloudBuild_Build extends Google_Collection { protected $collection_key = 'steps'; protected $internal_gapi_mappings = array( @@ -329,13 +328,13 @@ class Google_Service_Cloudbuild_Build extends Google_Collection public $images; public $logsBucket; public $projectId; - protected $resultsType = 'Google_Service_Cloudbuild_Results'; + protected $resultsType = 'Google_Service_CloudBuild_Results'; protected $resultsDataType = ''; - protected $sourceType = 'Google_Service_Cloudbuild_Source'; + protected $sourceType = 'Google_Service_CloudBuild_Source'; protected $sourceDataType = ''; public $startTime; public $status; - protected $stepsType = 'Google_Service_Cloudbuild_BuildStep'; + protected $stepsType = 'Google_Service_CloudBuild_BuildStep'; protected $stepsDataType = 'array'; public $timeout; @@ -388,7 +387,7 @@ public function getProjectId() { return $this->projectId; } - public function setResults(Google_Service_Cloudbuild_Results $results) + public function setResults(Google_Service_CloudBuild_Results $results) { $this->results = $results; } @@ -396,7 +395,7 @@ public function getResults() { return $this->results; } - public function setSource(Google_Service_Cloudbuild_Source $source) + public function setSource(Google_Service_CloudBuild_Source $source) { $this->source = $source; } @@ -438,15 +437,15 @@ public function getTimeout() } } -class Google_Service_Cloudbuild_BuildOperationMetadata extends Google_Model +class Google_Service_CloudBuild_BuildOperationMetadata extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $buildType = 'Google_Service_Cloudbuild_Build'; + protected $buildType = 'Google_Service_CloudBuild_Build'; protected $buildDataType = ''; - public function setBuild(Google_Service_Cloudbuild_Build $build) + public function setBuild(Google_Service_CloudBuild_Build $build) { $this->build = $build; } @@ -456,7 +455,7 @@ public function getBuild() } } -class Google_Service_Cloudbuild_BuildStep extends Google_Collection +class Google_Service_CloudBuild_BuildStep extends Google_Collection { protected $collection_key = 'env'; protected $internal_gapi_mappings = array( @@ -501,7 +500,7 @@ public function getName() } } -class Google_Service_Cloudbuild_BuiltImage extends Google_Model +class Google_Service_CloudBuild_BuiltImage extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -527,16 +526,16 @@ public function getName() } } -class Google_Service_Cloudbuild_CancelBuildRequest extends Google_Model +class Google_Service_CloudBuild_CancelBuildRequest extends Google_Model { } -class Google_Service_Cloudbuild_ListBuildsResponse extends Google_Collection +class Google_Service_CloudBuild_ListBuildsResponse extends Google_Collection { protected $collection_key = 'builds'; protected $internal_gapi_mappings = array( ); - protected $buildsType = 'Google_Service_Cloudbuild_Build'; + protected $buildsType = 'Google_Service_CloudBuild_Build'; protected $buildsDataType = 'array'; public $nextPageToken; @@ -559,13 +558,13 @@ public function getNextPageToken() } } -class Google_Service_Cloudbuild_ListOperationsResponse extends Google_Collection +class Google_Service_CloudBuild_ListOperationsResponse extends Google_Collection { protected $collection_key = 'operations'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $operationsType = 'Google_Service_Cloudbuild_Operation'; + protected $operationsType = 'Google_Service_CloudBuild_Operation'; protected $operationsDataType = 'array'; @@ -587,12 +586,12 @@ public function getOperations() } } -class Google_Service_Cloudbuild_Operation extends Google_Model +class Google_Service_CloudBuild_Operation extends Google_Model { protected $internal_gapi_mappings = array( ); public $done; - protected $errorType = 'Google_Service_Cloudbuild_Status'; + protected $errorType = 'Google_Service_CloudBuild_Status'; protected $errorDataType = ''; public $metadata; public $name; @@ -607,7 +606,7 @@ public function getDone() { return $this->done; } - public function setError(Google_Service_Cloudbuild_Status $error) + public function setError(Google_Service_CloudBuild_Status $error) { $this->error = $error; } @@ -641,12 +640,12 @@ public function getResponse() } } -class Google_Service_Cloudbuild_Results extends Google_Collection +class Google_Service_CloudBuild_Results extends Google_Collection { protected $collection_key = 'images'; protected $internal_gapi_mappings = array( ); - protected $imagesType = 'Google_Service_Cloudbuild_BuiltImage'; + protected $imagesType = 'Google_Service_CloudBuild_BuiltImage'; protected $imagesDataType = 'array'; @@ -660,15 +659,15 @@ public function getImages() } } -class Google_Service_Cloudbuild_Source extends Google_Model +class Google_Service_CloudBuild_Source extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $storageSourceType = 'Google_Service_Cloudbuild_StorageSource'; + protected $storageSourceType = 'Google_Service_CloudBuild_StorageSource'; protected $storageSourceDataType = ''; - public function setStorageSource(Google_Service_Cloudbuild_StorageSource $storageSource) + public function setStorageSource(Google_Service_CloudBuild_StorageSource $storageSource) { $this->storageSource = $storageSource; } @@ -678,7 +677,7 @@ public function getStorageSource() } } -class Google_Service_Cloudbuild_Status extends Google_Collection +class Google_Service_CloudBuild_Status extends Google_Collection { protected $collection_key = 'details'; protected $internal_gapi_mappings = array( @@ -714,7 +713,7 @@ public function getMessage() } } -class Google_Service_Cloudbuild_StorageSource extends Google_Model +class Google_Service_CloudBuild_StorageSource extends Google_Model { protected $internal_gapi_mappings = array( ); diff --git a/src/Google/Service/Cloudresourcemanager.php b/src/Google/Service/Cloudresourcemanager.php index 765a4a44a..ac8c08f7f 100644 --- a/src/Google/Service/Cloudresourcemanager.php +++ b/src/Google/Service/Cloudresourcemanager.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Cloudresourcemanager (v1beta1). + * Service definition for Cloudresourcemanager (v1). * *

    * The Google Cloud Resource Manager API provides methods for creating, reading, @@ -38,7 +38,6 @@ class Google_Service_Cloudresourcemanager extends Google_Service const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; - public $organizations; public $projects; @@ -52,98 +51,17 @@ public function __construct(Google_Client $client) parent::__construct($client); $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta1'; + $this->version = 'v1'; $this->serviceName = 'cloudresourcemanager'; - $this->organizations = new Google_Service_Cloudresourcemanager_Organizations_Resource( - $this, - $this->serviceName, - 'organizations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1beta1/organizations/{organizationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'organizationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1beta1/organizations/{resource}:getIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta1/organizations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1beta1/organizations/{resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1beta1/organizations/{resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1beta1/organizations/{organizationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'organizationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource( $this, $this->serviceName, 'projects', array( 'methods' => array( - 'create' => array( - 'path' => 'v1beta1/projects', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1beta1/projects/{projectId}', + 'delete' => array( + 'path' => 'v1/projects/{projectId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'projectId' => array( @@ -153,7 +71,7 @@ public function __construct(Google_Client $client) ), ), ),'get' => array( - 'path' => 'v1beta1/projects/{projectId}', + 'path' => 'v1/projects/{projectId}', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -163,7 +81,7 @@ public function __construct(Google_Client $client) ), ), ),'getIamPolicy' => array( - 'path' => 'v1beta1/projects/{resource}:getIamPolicy', + 'path' => 'v1/projects/{resource}:getIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -173,7 +91,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'v1beta1/projects', + 'path' => 'v1/projects', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( @@ -190,7 +108,7 @@ public function __construct(Google_Client $client) ), ), ),'setIamPolicy' => array( - 'path' => 'v1beta1/projects/{resource}:setIamPolicy', + 'path' => 'v1/projects/{resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -200,7 +118,7 @@ public function __construct(Google_Client $client) ), ), ),'testIamPermissions' => array( - 'path' => 'v1beta1/projects/{resource}:testIamPermissions', + 'path' => 'v1/projects/{resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -210,7 +128,7 @@ public function __construct(Google_Client $client) ), ), ),'undelete' => array( - 'path' => 'v1beta1/projects/{projectId}:undelete', + 'path' => 'v1/projects/{projectId}:undelete', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -220,7 +138,7 @@ public function __construct(Google_Client $client) ), ), ),'update' => array( - 'path' => 'v1beta1/projects/{projectId}', + 'path' => 'v1/projects/{projectId}', 'httpMethod' => 'PUT', 'parameters' => array( 'projectId' => array( @@ -237,142 +155,6 @@ public function __construct(Google_Client $client) } -/** - * The "organizations" collection of methods. - * Typical usage is: - * - * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...); - * $organizations = $cloudresourcemanagerService->organizations; - * - */ -class Google_Service_Cloudresourcemanager_Organizations_Resource extends Google_Service_Resource -{ - - /** - * Fetches an Organization resource identified by the specified - * `organization_id`. (organizations.get) - * - * @param string $organizationId The id of the Organization resource to fetch. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Organization - */ - public function get($organizationId, $optParams = array()) - { - $params = array('organizationId' => $organizationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Organization"); - } - - /** - * Gets the access control policy for an Organization resource. May be empty if - * no such policy or resource exists. (organizations.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `getIamPolicy` - * documentation. - * @param Google_GetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Policy - */ - public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); - } - - /** - * Lists Organization resources that are visible to the user and satisfy the - * specified filter. This method returns Organizations in an unspecified order. - * New Organizations do not necessarily appear at the end of the list. - * (organizations.listOrganizations) - * - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The maximum number of Organizations to return in the - * response. This field is optional. - * @opt_param string pageToken A pagination token returned from a previous call - * to `ListOrganizations` that indicates from where listing should continue. - * This field is optional. - * @opt_param string filter An optional query string used to filter the - * Organizations to return in the response. Filter rules are case-insensitive. - * Organizations may be filtered by `owner.directoryCustomerId` or by `domain`, - * where the domain is a Google for Work domain, for example: - * |Filter|Description| |------|-----------| - * |owner.directorycustomerid:123456789|Organizations with - * `owner.directory_customer_id` equal to `123456789`.| - * |domain:google.com|Organizations corresponding to the domain `google.com`.| - * This field is optional. - * @return Google_Service_Cloudresourcemanager_ListOrganizationsResponse - */ - public function listOrganizations($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListOrganizationsResponse"); - } - - /** - * Sets the access control policy on an Organization resource. Replaces any - * existing policy. (organizations.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `setIamPolicy` - * documentation. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Policy - */ - public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); - } - - /** - * Returns permissions that a caller has on the specified Organization. - * (organizations.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which the policy detail is - * being requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `testIamPermissions` - * documentation. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse"); - } - - /** - * Updates an Organization resource identified by the specified - * `organization_id`. (organizations.update) - * - * @param string $organizationId An immutable id for the Organization that is - * assigned on creation. This should be omitted when creating a new - * Organization. This field is read-only. - * @param Google_Organization $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Organization - */ - public function update($organizationId, Google_Service_Cloudresourcemanager_Organization $postBody, $optParams = array()) - { - $params = array('organizationId' => $organizationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Organization"); - } -} - /** * The "projects" collection of methods. * Typical usage is: @@ -384,23 +166,6 @@ public function update($organizationId, Google_Service_Cloudresourcemanager_Orga class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource { - /** - * Creates a Project resource. Initially, the Project resource is owned by its - * creator exclusively. The creator can later grant permission to others to read - * or update the Project. Several APIs are activated automatically for the - * Project, including Google Cloud Storage. (projects.create) - * - * @param Google_Project $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Project - */ - public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project"); - } - /** * Marks the Project identified by the specified `project_id` (for example, `my- * project-123`) for deletion. This method will only affect the Project if the @@ -556,12 +321,13 @@ public function testIamPermissions($resource, Google_Service_Cloudresourcemanage * * @param string $projectId The project ID (for example, `foo-bar-123`). * Required. + * @param Google_UndeleteProjectRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Cloudresourcemanager_Empty */ - public function undelete($projectId, $optParams = array()) + public function undelete($projectId, Google_Service_Cloudresourcemanager_UndeleteProjectRequest $postBody, $optParams = array()) { - $params = array('projectId' => $projectId); + $params = array('projectId' => $projectId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty"); } @@ -623,34 +389,6 @@ class Google_Service_Cloudresourcemanager_GetIamPolicyRequest extends Google_Mod { } -class Google_Service_Cloudresourcemanager_ListOrganizationsResponse extends Google_Collection -{ - protected $collection_key = 'organizations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $organizationsType = 'Google_Service_Cloudresourcemanager_Organization'; - protected $organizationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } - public function getOrganizations() - { - return $this->organizations; - } -} - class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection { protected $collection_key = 'projects'; @@ -679,68 +417,6 @@ public function getProjects() } } -class Google_Service_Cloudresourcemanager_Organization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $displayName; - public $organizationId; - protected $ownerType = 'Google_Service_Cloudresourcemanager_OrganizationOwner'; - protected $ownerDataType = ''; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setOrganizationId($organizationId) - { - $this->organizationId = $organizationId; - } - public function getOrganizationId() - { - return $this->organizationId; - } - public function setOwner(Google_Service_Cloudresourcemanager_OrganizationOwner $owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } -} - -class Google_Service_Cloudresourcemanager_OrganizationOwner extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $directoryCustomerId; - - - public function setDirectoryCustomerId($directoryCustomerId) - { - $this->directoryCustomerId = $directoryCustomerId; - } - public function getDirectoryCustomerId() - { - return $this->directoryCustomerId; - } -} - class Google_Service_Cloudresourcemanager_Policy extends Google_Collection { protected $collection_key = 'bindings'; @@ -929,3 +605,7 @@ public function getPermissions() return $this->permissions; } } + +class Google_Service_Cloudresourcemanager_UndeleteProjectRequest extends Google_Model +{ +} diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php index 5c79cbd7c..54c7f57fd 100644 --- a/src/Google/Service/Compute.php +++ b/src/Google/Service/Compute.php @@ -4139,7 +4139,7 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4151,7 +4151,7 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4173,7 +4173,7 @@ public function aggregatedList($project, $optParams = array()) * Deletes the specified address resource. (addresses.delete) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4189,7 +4189,7 @@ public function delete($project, $region, $address, $optParams = array()) * Returns the specified address resource. (addresses.get) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address @@ -4206,7 +4206,7 @@ public function get($project, $region, $address, $optParams = array()) * in the request. (addresses.insert) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4223,7 +4223,7 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * (addresses.listAddresses) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed @@ -4238,7 +4238,7 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4250,7 +4250,7 @@ public function insert($project, $region, Google_Service_Compute_Address $postBo * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4298,7 +4298,7 @@ class Google_Service_Compute_Autoscalers_Resource extends Google_Service_Resourc * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4310,7 +4310,7 @@ class Google_Service_Compute_Autoscalers_Resource extends Google_Service_Resourc * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4329,12 +4329,11 @@ public function aggregatedList($project, $optParams = array()) } /** - * Deletes the specified autoscaler resource. (autoscalers.delete) + * Deletes the specified autoscaler. (autoscalers.delete) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $autoscaler Name of the persistent autoscaler resource to - * delete. + * @param string $zone Name of the zone for this request. + * @param string $autoscaler Name of the autoscaler to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4346,12 +4345,12 @@ public function delete($project, $zone, $autoscaler, $optParams = array()) } /** - * Returns the specified autoscaler resource. (autoscalers.get) + * Returns the specified autoscaler resource. Get a list of available + * autoscalers by making a list() request. (autoscalers.get) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $autoscaler Name of the persistent autoscaler resource to - * return. + * @param string $zone Name of the zone for this request. + * @param string $autoscaler Name of the autoscaler to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Autoscaler */ @@ -4363,11 +4362,11 @@ public function get($project, $zone, $autoscaler, $optParams = array()) } /** - * Creates an autoscaler resource in the specified project using the data - * included in the request. (autoscalers.insert) + * Creates an autoscaler in the specified project using the data included in the + * request. (autoscalers.insert) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for this request. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4380,11 +4379,11 @@ public function insert($project, $zone, Google_Service_Compute_Autoscaler $postB } /** - * Retrieves a list of autoscaler resources contained within the specified zone. + * Retrieves a list of autoscalers contained within the specified zone. * (autoscalers.listAutoscalers) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed @@ -4399,7 +4398,7 @@ public function insert($project, $zone, Google_Service_Compute_Autoscaler $postB * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4411,7 +4410,7 @@ public function insert($project, $zone, Google_Service_Compute_Autoscaler $postB * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4430,13 +4429,12 @@ public function listAutoscalers($project, $zone, $optParams = array()) } /** - * Updates an autoscaler resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (autoscalers.patch) + * Updates an autoscaler in the specified project using the data included in the + * request. This method supports patch semantics. (autoscalers.patch) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $autoscaler Name of the autoscaler resource to update. + * @param string $zone Name of the zone for this request. + * @param string $autoscaler Name of the autoscaler to update. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4449,15 +4447,15 @@ public function patch($project, $zone, $autoscaler, Google_Service_Compute_Autos } /** - * Updates an autoscaler resource in the specified project using the data - * included in the request. (autoscalers.update) + * Updates an autoscaler in the specified project using the data included in the + * request. (autoscalers.update) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone Name of the zone for this request. * @param Google_Autoscaler $postBody * @param array $optParams Optional parameters. * - * @opt_param string autoscaler Name of the autoscaler resource to update. + * @opt_param string autoscaler Name of the autoscaler to update. * @return Google_Service_Compute_Operation */ public function update($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) @@ -4495,7 +4493,8 @@ public function delete($project, $backendService, $optParams = array()) } /** - * Returns the specified BackendService resource. (backendServices.get) + * Returns the specified BackendService resource. Get a list of available + * backend services by making a list() request. (backendServices.get) * * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to return. @@ -4564,7 +4563,7 @@ public function insert($project, Google_Service_Compute_BackendService $postBody * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4576,7 +4575,7 @@ public function insert($project, Google_Service_Compute_BackendService $postBody * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4662,7 +4661,7 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4674,7 +4673,7 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4693,7 +4692,8 @@ public function aggregatedList($project, $optParams = array()) } /** - * Returns the specified disk type. (diskTypes.get) + * Returns the specified disk type. Get a list of available disk types by making + * a list() request. (diskTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -4728,7 +4728,7 @@ public function get($project, $zone, $diskType, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4740,7 +4740,7 @@ public function get($project, $zone, $diskType, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4788,7 +4788,7 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4800,7 +4800,7 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -4855,7 +4855,8 @@ public function delete($project, $zone, $disk, $optParams = array()) } /** - * Returns a specified persistent disk. (disks.get) + * Returns a specified persistent disk. Get a list of available persistent disks + * by making a list() request. (disks.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -4912,7 +4913,7 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -4924,7 +4925,7 @@ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $ * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5019,7 +5020,7 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5031,7 +5032,7 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5114,7 +5115,7 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5126,7 +5127,7 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5213,7 +5214,7 @@ public function insert($project, $region, Google_Service_Compute_ForwardingRule * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5225,7 +5226,7 @@ public function insert($project, $region, Google_Service_Compute_ForwardingRule * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5290,7 +5291,8 @@ public function delete($project, $address, $optParams = array()) } /** - * Returns the specified address resource. (globalAddresses.get) + * Returns the specified address resource. Get a list of available addresses by + * making a list() request. (globalAddresses.get) * * @param string $project Project ID for this request. * @param string $address Name of the address resource to return. @@ -5338,7 +5340,7 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5350,7 +5352,7 @@ public function insert($project, Google_Service_Compute_Address $postBody, $optP * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5396,7 +5398,8 @@ public function delete($project, $forwardingRule, $optParams = array()) } /** - * Returns the specified ForwardingRule resource. (globalForwardingRules.get) + * Returns the specified ForwardingRule resource. Get a list of available + * forwarding rules by making a list() request. (globalForwardingRules.get) * * @param string $project Project ID for this request. * @param string $forwardingRule Name of the ForwardingRule resource to return. @@ -5445,7 +5448,7 @@ public function insert($project, Google_Service_Compute_ForwardingRule $postBody * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5457,7 +5460,7 @@ public function insert($project, Google_Service_Compute_ForwardingRule $postBody * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5524,7 +5527,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5536,7 +5539,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5569,7 +5572,8 @@ public function delete($project, $operation, $optParams = array()) } /** - * Retrieves the specified Operations resource. (globalOperations.get) + * Retrieves the specified Operations resource. Get a list of operations by + * making a list() request. (globalOperations.get) * * @param string $project Project ID for this request. * @param string $operation Name of the Operations resource to return. @@ -5602,7 +5606,7 @@ public function get($project, $operation, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5614,7 +5618,7 @@ public function get($project, $operation, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5661,7 +5665,8 @@ public function delete($project, $httpHealthCheck, $optParams = array()) } /** - * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * Returns the specified HttpHealthCheck resource. Get a list of available HTTP + * health checks by making a list() request. (httpHealthChecks.get) * * @param string $project Project ID for this request. * @param string $httpHealthCheck Name of the HttpHealthCheck resource to @@ -5711,7 +5716,7 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5723,7 +5728,7 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5807,7 +5812,8 @@ public function delete($project, $httpsHealthCheck, $optParams = array()) } /** - * Returns the specified HttpsHealthCheck resource. (httpsHealthChecks.get) + * Returns the specified HttpsHealthCheck resource. Get a list of available + * HTTPS health checks by making a list() request. (httpsHealthChecks.get) * * @param string $project Project ID for this request. * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to @@ -5857,7 +5863,7 @@ public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBo * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -5869,7 +5875,7 @@ public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBo * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -5971,7 +5977,8 @@ public function deprecate($project, $image, Google_Service_Compute_DeprecationSt } /** - * Returns the specified image. (images.get) + * Returns the specified image. Get a list of available images by making a + * list() request. (images.get) * * @param string $project Project ID for this request. * @param string $image Name of the image resource to return. @@ -6026,7 +6033,7 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6038,7 +6045,7 @@ public function insert($project, Google_Service_Compute_Image $postBody, $optPar * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6113,7 +6120,7 @@ public function abandonInstances($project, $zone, $instanceGroupManager, Google_ * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6125,7 +6132,7 @@ public function abandonInstances($project, $zone, $instanceGroupManager, Google_ * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6189,7 +6196,8 @@ public function deleteInstances($project, $zone, $instanceGroupManager, Google_S } /** - * Returns all of the details about the specified managed instance group. + * Returns all of the details about the specified managed instance group. Get a + * list of available managed instance groups by making a list() request. * (instanceGroupManagers.get) * * @param string $project Project ID for this request. @@ -6250,7 +6258,7 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroupMana * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6262,7 +6270,7 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroupMana * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6448,7 +6456,7 @@ public function addInstances($project, $zone, $instanceGroup, Google_Service_Com * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6460,7 +6468,7 @@ public function addInstances($project, $zone, $instanceGroup, Google_Service_Com * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6497,7 +6505,8 @@ public function delete($project, $zone, $instanceGroup, $optParams = array()) } /** - * Returns the specified instance group resource. (instanceGroups.get) + * Returns the specified instance group. Get a list of available instance groups + * by making a list() request. (instanceGroups.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. @@ -6550,7 +6559,7 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroup $po * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6562,7 +6571,7 @@ public function insert($project, $zone, Google_Service_Compute_InstanceGroup $po * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6603,7 +6612,7 @@ public function listInstanceGroups($project, $zone, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6615,7 +6624,7 @@ public function listInstanceGroups($project, $zone, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6703,7 +6712,8 @@ public function delete($project, $instanceTemplate, $optParams = array()) } /** - * Returns the specified instance template resource. (instanceTemplates.get) + * Returns the specified instance template. Get a list of available instance + * templates by making a list() request. (instanceTemplates.get) * * @param string $project Project ID for this request. * @param string $instanceTemplate The name of the instance template. @@ -6755,7 +6765,7 @@ public function insert($project, Google_Service_Compute_InstanceTemplate $postBo * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6767,7 +6777,7 @@ public function insert($project, Google_Service_Compute_InstanceTemplate $postBo * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6835,7 +6845,7 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -6847,7 +6857,7 @@ public function addAccessConfig($project, $zone, $instance, $networkInterface, G * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -6936,7 +6946,8 @@ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = } /** - * Returns the specified Instance resource. (instances.get) + * Returns the specified Instance resource. Get a list of available instances by + * making a list() request. (instances.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -7007,7 +7018,7 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7019,7 +7030,7 @@ public function insert($project, $zone, Google_Service_Compute_Instance $postBod * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7195,7 +7206,8 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource { /** - * Returns the specified license resource. (licenses.get) + * Returns the specified License resource. Get a list of available licenses by + * making a list() request. (licenses.get) * * @param string $project Project ID for this request. * @param string $license Name of the License resource to return. @@ -7239,7 +7251,7 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7251,7 +7263,7 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7270,7 +7282,8 @@ public function aggregatedList($project, $optParams = array()) } /** - * Returns the specified machine type. (machineTypes.get) + * Returns the specified machine type. Get a list of available machine types by + * making a list() request. (machineTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -7305,7 +7318,7 @@ public function get($project, $zone, $machineType, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7317,7 +7330,7 @@ public function get($project, $zone, $machineType, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7363,7 +7376,8 @@ public function delete($project, $network, $optParams = array()) } /** - * Returns the specified network. (networks.get) + * Returns the specified network. Get a list of available networks by making a + * list() request. (networks.get) * * @param string $project Project ID for this request. * @param string $network Name of the network to return. @@ -7412,7 +7426,7 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7424,7 +7438,7 @@ public function insert($project, Google_Service_Compute_Network $postBody, $optP * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7455,7 +7469,7 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource { /** - * Returns the specified project resource. (projects.get) + * Returns the specified Project resource. (projects.get) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. @@ -7597,7 +7611,7 @@ public function get($project, $region, $operation, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7609,7 +7623,7 @@ public function get($project, $region, $operation, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7640,7 +7654,8 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource { /** - * Returns the specified region resource. (regions.get) + * Returns the specified Region resource. Get a list of available regions by + * making a list() request. (regions.get) * * @param string $project Project ID for this request. * @param string $region Name of the region resource to return. @@ -7673,7 +7688,7 @@ public function get($project, $region, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7685,7 +7700,7 @@ public function get($project, $region, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7716,10 +7731,10 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource { /** - * Deletes the specified route resource. (routes.delete) + * Deletes the specified Route resource. (routes.delete) * * @param string $project Project ID for this request. - * @param string $route Name of the route resource to delete. + * @param string $route Name of the Route resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -7731,10 +7746,11 @@ public function delete($project, $route, $optParams = array()) } /** - * Returns the specified route resource. (routes.get) + * Returns the specified Route resource. Get a list of available routes by + * making a list() request. (routes.get) * * @param string $project Project ID for this request. - * @param string $route Name of the route resource to return. + * @param string $route Name of the Route resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Route */ @@ -7746,7 +7762,7 @@ public function get($project, $route, $optParams = array()) } /** - * Creates a route resource in the specified project using the data included in + * Creates a Route resource in the specified project using the data included in * the request. (routes.insert) * * @param string $project Project ID for this request. @@ -7762,7 +7778,7 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar } /** - * Retrieves the list of route resources available to the specified project. + * Retrieves the list of Route resources available to the specified project. * (routes.listRoutes) * * @param string $project Project ID for this request. @@ -7780,7 +7796,7 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7792,7 +7808,7 @@ public function insert($project, Google_Service_Compute_Route $postBody, $optPar * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7843,7 +7859,8 @@ public function delete($project, $snapshot, $optParams = array()) } /** - * Returns the specified Snapshot resource. (snapshots.get) + * Returns the specified Snapshot resource. Get a list of available snapshots by + * making a list() request. (snapshots.get) * * @param string $project Project ID for this request. * @param string $snapshot Name of the Snapshot resource to return. @@ -7876,7 +7893,7 @@ public function get($project, $snapshot, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7888,7 +7905,7 @@ public function get($project, $snapshot, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -7934,7 +7951,8 @@ public function delete($project, $sslCertificate, $optParams = array()) } /** - * Returns the specified SslCertificate resource. (sslCertificates.get) + * Returns the specified SslCertificate resource. Get a list of available SSL + * certificates by making a list() request. (sslCertificates.get) * * @param string $project Project ID for this request. * @param string $sslCertificate Name of the SslCertificate resource to return. @@ -7983,7 +8001,7 @@ public function insert($project, Google_Service_Compute_SslCertificate $postBody * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -7995,7 +8013,7 @@ public function insert($project, Google_Service_Compute_SslCertificate $postBody * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8043,7 +8061,7 @@ class Google_Service_Compute_Subnetworks_Resource extends Google_Service_Resourc * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8055,7 +8073,7 @@ class Google_Service_Compute_Subnetworks_Resource extends Google_Service_Resourc * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8090,7 +8108,8 @@ public function delete($project, $region, $subnetwork, $optParams = array()) } /** - * Returns the specified subnetwork. (subnetworks.get) + * Returns the specified subnetwork. Get a list of available subnetworks by + * making a list() request. (subnetworks.get) * * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. @@ -8142,7 +8161,7 @@ public function insert($project, $region, Google_Service_Compute_Subnetwork $pos * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8154,7 +8173,7 @@ public function insert($project, $region, Google_Service_Compute_Subnetwork $pos * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8201,7 +8220,8 @@ public function delete($project, $targetHttpProxy, $optParams = array()) } /** - * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) + * Returns the specified TargetHttpProxy resource. Get a list of available + * target HTTP proxies by making a list() request. (targetHttpProxies.get) * * @param string $project Project ID for this request. * @param string $targetHttpProxy Name of the TargetHttpProxy resource to @@ -8251,7 +8271,7 @@ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBod * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8263,7 +8283,7 @@ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBod * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8285,8 +8305,8 @@ public function listTargetHttpProxies($project, $optParams = array()) * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) * * @param string $project Project ID for this request. - * @param string $targetHttpProxy The name of the TargetHttpProxy resource to - * set a URL map for. + * @param string $targetHttpProxy Name of the TargetHttpProxy to set a URL map + * for. * @param Google_UrlMapReference $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8327,7 +8347,8 @@ public function delete($project, $targetHttpsProxy, $optParams = array()) } /** - * Returns the specified TargetHttpsProxy resource. (targetHttpsProxies.get) + * Returns the specified TargetHttpsProxy resource. Get a list of available + * target HTTPS proxies by making a list() request. (targetHttpsProxies.get) * * @param string $project Project ID for this request. * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to @@ -8377,7 +8398,7 @@ public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBo * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8389,7 +8410,7 @@ public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBo * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8413,7 +8434,7 @@ public function listTargetHttpsProxies($project, $optParams = array()) * * @param string $project Project ID for this request. * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set - * an SSL certificate for. + * an SslCertificates resource for. * @param Google_TargetHttpsProxiesSetSslCertificatesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8473,7 +8494,7 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8485,7 +8506,7 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8520,7 +8541,8 @@ public function delete($project, $zone, $targetInstance, $optParams = array()) } /** - * Returns the specified TargetInstance resource. (targetInstances.get) + * Returns the specified TargetInstance resource. Get a list of available target + * instances by making a list() request. (targetInstances.get) * * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. @@ -8572,7 +8594,7 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8584,7 +8606,7 @@ public function insert($project, $zone, Google_Service_Compute_TargetInstance $p * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8667,7 +8689,7 @@ public function addInstance($project, $region, $targetPool, Google_Service_Compu * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8679,7 +8701,7 @@ public function addInstance($project, $region, $targetPool, Google_Service_Compu * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8714,7 +8736,8 @@ public function delete($project, $region, $targetPool, $optParams = array()) } /** - * Returns the specified target pool. (targetPools.get) + * Returns the specified target pool. Get a list of available target pools by + * making a list() request. (targetPools.get) * * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. @@ -8785,7 +8808,7 @@ public function insert($project, $region, Google_Service_Compute_TargetPool $pos * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8797,7 +8820,7 @@ public function insert($project, $region, Google_Service_Compute_TargetPool $pos * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8902,7 +8925,7 @@ class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_R * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -8914,7 +8937,7 @@ class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_R * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -8936,7 +8959,7 @@ public function aggregatedList($project, $optParams = array()) * Deletes the specified target VPN gateway. (targetVpnGateways.delete) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $targetVpnGateway Name of the target VPN gateway to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8949,10 +8972,11 @@ public function delete($project, $region, $targetVpnGateway, $optParams = array( } /** - * Returns the specified target VPN gateway. (targetVpnGateways.get) + * Returns the specified target VPN gateway. Get a list of available target VPN + * gateways by making a list() request. (targetVpnGateways.get) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $targetVpnGateway Name of the target VPN gateway to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_TargetVpnGateway @@ -8969,7 +8993,7 @@ public function get($project, $region, $targetVpnGateway, $optParams = array()) * data included in the request. (targetVpnGateways.insert) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param Google_TargetVpnGateway $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -8986,7 +9010,7 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa * and region. (targetVpnGateways.listTargetVpnGateways) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed @@ -9001,7 +9025,7 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9013,7 +9037,7 @@ public function insert($project, $region, Google_Service_Compute_TargetVpnGatewa * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -9059,7 +9083,8 @@ public function delete($project, $urlMap, $optParams = array()) } /** - * Returns the specified UrlMap resource. (urlMaps.get) + * Returns the specified UrlMap resource. Get a list of available URL maps by + * making a list() request. (urlMaps.get) * * @param string $project Project ID for this request. * @param string $urlMap Name of the UrlMap resource to return. @@ -9108,7 +9133,7 @@ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optPa * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9120,7 +9145,7 @@ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optPa * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -9219,7 +9244,7 @@ class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9231,7 +9256,7 @@ class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -9253,7 +9278,7 @@ public function aggregatedList($project, $optParams = array()) * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $vpnTunnel Name of the VpnTunnel resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -9266,10 +9291,11 @@ public function delete($project, $region, $vpnTunnel, $optParams = array()) } /** - * Returns the specified VpnTunnel resource. (vpnTunnels.get) + * Returns the specified VpnTunnel resource. Get a list of available VPN tunnels + * by making a list() request. (vpnTunnels.get) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param string $vpnTunnel Name of the VpnTunnel resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_VpnTunnel @@ -9286,7 +9312,7 @@ public function get($project, $region, $vpnTunnel, $optParams = array()) * data included in the request. (vpnTunnels.insert) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param Google_VpnTunnel $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -9303,7 +9329,7 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post * and region. (vpnTunnels.listVpnTunnels) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. + * @param string $region Name of the region for this request. * @param array $optParams Optional parameters. * * @opt_param string filter Sets a filter expression for filtering listed @@ -9318,7 +9344,7 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9330,7 +9356,7 @@ public function insert($project, $region, Google_Service_Compute_VpnTunnel $post * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -9413,7 +9439,7 @@ public function get($project, $zone, $operation, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9425,7 +9451,7 @@ public function get($project, $zone, $operation, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than @@ -9456,7 +9482,8 @@ class Google_Service_Compute_Zones_Resource extends Google_Service_Resource { /** - * Returns the specified zone resource. (zones.get) + * Returns the specified Zone resource. Get a list of available zones by making + * a list() request. (zones.get) * * @param string $project Project ID for this request. * @param string $zone Name of the zone resource to return. @@ -9471,7 +9498,7 @@ public function get($project, $zone, $optParams = array()) } /** - * Retrieves the list of zone resources available to the specified project. + * Retrieves the list of Zone resources available to the specified project. * (zones.listZones) * * @param string $project Project ID for this request. @@ -9489,7 +9516,7 @@ public function get($project, $zone, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, to filter for instances whose name is not equal to example- + * For example, to filter for instances that do not have a name of example- * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can @@ -9501,7 +9528,7 @@ public function get($project, $zone, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that * should be returned. If the number of available results is larger than diff --git a/src/Google/Service/DataTransfer.php b/src/Google/Service/DataTransfer.php index 7af04ff22..5b6943e03 100644 --- a/src/Google/Service/DataTransfer.php +++ b/src/Google/Service/DataTransfer.php @@ -19,7 +19,7 @@ * Service definition for DataTransfer (datatransfer_v1). * *

    - * Admin Data Transfer API lets you transfer user data from one user to another.

    + * Transfers user data from one user to another.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php index 616198197..f59d8d4d2 100644 --- a/src/Google/Service/Dataflow.php +++ b/src/Google/Service/Dataflow.php @@ -3761,6 +3761,7 @@ class Google_Service_Dataflow_WorkerPool extends Google_Collection protected $packagesType = 'Google_Service_Dataflow_Package'; protected $packagesDataType = 'array'; public $poolArgs; + public $subnetwork; protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; protected $taskrunnerSettingsDataType = ''; public $teardownPolicy; @@ -3880,6 +3881,14 @@ public function getPoolArgs() { return $this->poolArgs; } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) { $this->taskrunnerSettings = $taskrunnerSettings; diff --git a/src/Google/Service/Dataproc.php b/src/Google/Service/Dataproc.php index 7ee874630..5f71b98f4 100644 --- a/src/Google/Service/Dataproc.php +++ b/src/Google/Service/Dataproc.php @@ -44,6 +44,9 @@ class Google_Service_Dataproc extends Google_Service "https://www.googleapis.com/auth/logging.write"; public $media; + public $projects_regions_clusters; + public $projects_regions_jobs; + public $projects_regions_operations; /** @@ -89,6 +92,316 @@ public function __construct(Google_Client $client) ) ) ); + $this->projects_regions_clusters = new Google_Service_Dataproc_ProjectsRegionsClusters_Resource( + $this, + $this->serviceName, + 'clusters', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'diagnose' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_regions_jobs = new Google_Service_Dataproc_ProjectsRegionsJobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'clusterName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'jobStateMatcher' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'submit' => array( + 'path' => 'v1/projects/{projectId}/regions/{region}/jobs:submit', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_regions_operations = new Google_Service_Dataproc_ProjectsRegionsOperations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); } } @@ -109,7 +422,7 @@ class Google_Service_Dataproc_Media_Resource extends Google_Service_Resource * `/v1/media/{+name}?alt=media`. (media.download) * * @param string $resourceName Name of the media that is being downloaded. See - * [][ByteStream.ReadRequest.resource_name]. + * ByteStream.ReadRequest.resource_name. * @param array $optParams Optional parameters. * @return Google_Service_Dataproc_Media */ @@ -125,53 +438,1458 @@ public function download($resourceName, $optParams = array()) * `/upload/v1/media/{+name}`. (media.upload) * * @param string $resourceName Name of the media that is being downloaded. See - * [][ByteStream.ReadRequest.resource_name]. + * ByteStream.ReadRequest.resource_name. * @param Google_Media $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataproc_Media */ public function upload($resourceName, Google_Service_Dataproc_Media $postBody, $optParams = array()) { - $params = array('resourceName' => $resourceName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_Dataproc_Media"); + $params = array('resourceName' => $resourceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_Dataproc_Media"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $projects = $dataprocService->projects; + * + */ +class Google_Service_Dataproc_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $regions = $dataprocService->regions; + * + */ +class Google_Service_Dataproc_ProjectsRegions_Resource extends Google_Service_Resource +{ +} + +/** + * The "clusters" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $clusters = $dataprocService->clusters; + * + */ +class Google_Service_Dataproc_ProjectsRegionsClusters_Resource extends Google_Service_Resource +{ + + /** + * Creates a cluster in a project. (clusters.create) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param Google_Cluster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function create($projectId, $region, Google_Service_Dataproc_Cluster $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataproc_Operation"); + } + + /** + * Deletes a cluster in a project. (clusters.delete) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $clusterName [Required] The cluster name. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function delete($projectId, $region, $clusterName, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Dataproc_Operation"); + } + + /** + * Gets cluster diagnostic information. After the operation completes, the + * Operation.response field contains `DiagnoseClusterOutputLocation`. + * (clusters.diagnose) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $clusterName [Required] The cluster name. + * @param Google_DiagnoseClusterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function diagnose($projectId, $region, $clusterName, Google_Service_Dataproc_DiagnoseClusterRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('diagnose', array($params), "Google_Service_Dataproc_Operation"); + } + + /** + * Gets the resource representation for a cluster in a project. (clusters.get) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $clusterName [Required] The cluster name. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Cluster + */ + public function get($projectId, $region, $clusterName, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataproc_Cluster"); + } + + /** + * Lists all regions/{region}/clusters in a project. + * (clusters.listProjectsRegionsClusters) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The standard List page size. + * @opt_param string pageToken The standard List page token. + * @return Google_Service_Dataproc_ListClustersResponse + */ + public function listProjectsRegionsClusters($projectId, $region, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataproc_ListClustersResponse"); + } + + /** + * Updates a cluster in a project. (clusters.patch) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project the cluster belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $clusterName [Required] The cluster name. + * @param Google_Cluster $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask [Required] Specifies the path, relative to + * Cluster, of the field to update. For example, to change the number of workers + * in a cluster to 5, the update_mask parameter would be specified as + * config.worker_config.num_instances, and the `PATCH` request body would + * specify the new value, as follows: { "config":{ "workerConfig":{ + * "numInstances":"5" } } } Note: Currently, config.worker_config.num_instances + * is the only field that can be updated. + * @return Google_Service_Dataproc_Operation + */ + public function patch($projectId, $region, $clusterName, Google_Service_Dataproc_Cluster $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dataproc_Operation"); + } +} +/** + * The "jobs" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $jobs = $dataprocService->jobs; + * + */ +class Google_Service_Dataproc_ProjectsRegionsJobs_Resource extends Google_Service_Resource +{ + + /** + * Starts a job cancellation request. To access the job resource after + * cancellation, call [regions/{region}/jobs.list](/dataproc/reference/rest/v1/p + * rojects.regions.jobs/list) or [regions/{region}/jobs.get](/dataproc/reference + * /rest/v1/projects.regions.jobs/get). (jobs.cancel) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the job belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $jobId [Required] The job ID. + * @param Google_CancelJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Job + */ + public function cancel($projectId, $region, $jobId, Google_Service_Dataproc_CancelJobRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Dataproc_Job"); + } + + /** + * Deletes the job from the project. If the job is active, the delete fails, and + * the response returns `FAILED_PRECONDITION`. (jobs.delete) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the job belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $jobId [Required] The job ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Empty + */ + public function delete($projectId, $region, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Dataproc_Empty"); + } + + /** + * Gets the resource representation for a job in a project. (jobs.get) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the job belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param string $jobId [Required] The job ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Job + */ + public function get($projectId, $region, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataproc_Job"); + } + + /** + * Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the job belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize [Optional] The number of results to return in each + * response. + * @opt_param string pageToken [Optional] The page token, returned by a previous + * call, to request the next page of results. + * @opt_param string clusterName [Optional] If set, the returned jobs list + * includes only jobs that were submitted to the named cluster. + * @opt_param string jobStateMatcher [Optional] Specifies enumerated categories + * of jobs to list. + * @return Google_Service_Dataproc_ListJobsResponse + */ + public function listProjectsRegionsJobs($projectId, $region, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataproc_ListJobsResponse"); + } + + /** + * Submits a job to a cluster. (jobs.submit) + * + * @param string $projectId [Required] The ID of the Google Cloud Platform + * project that the job belongs to. + * @param string $region [Required] The Cloud Dataproc region in which to handle + * the request. + * @param Google_SubmitJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Job + */ + public function submit($projectId, $region, Google_Service_Dataproc_SubmitJobRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('submit', array($params), "Google_Service_Dataproc_Job"); + } +} +/** + * The "operations" collection of methods. + * Typical usage is: + * + * $dataprocService = new Google_Service_Dataproc(...); + * $operations = $dataprocService->operations; + * + */ +class Google_Service_Dataproc_ProjectsRegionsOperations_Resource extends Google_Service_Resource +{ + + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Empty + */ + public function cancel($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Dataproc_Empty"); + } + + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Empty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Dataproc_Empty"); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataproc_Operation"); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the + * `name` binding below allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. + * (operations.listProjectsRegionsOperations) + * + * @param string $name The name of the operation collection. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_Dataproc_ListOperationsResponse + */ + public function listProjectsRegionsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataproc_ListOperationsResponse"); + } +} + + + + +class Google_Service_Dataproc_CancelJobRequest extends Google_Model +{ +} + +class Google_Service_Dataproc_Cluster extends Google_Collection +{ + protected $collection_key = 'statusHistory'; + protected $internal_gapi_mappings = array( + ); + public $clusterName; + public $clusterUuid; + protected $configType = 'Google_Service_Dataproc_ClusterConfig'; + protected $configDataType = ''; + public $projectId; + protected $statusType = 'Google_Service_Dataproc_ClusterStatus'; + protected $statusDataType = ''; + protected $statusHistoryType = 'Google_Service_Dataproc_ClusterStatus'; + protected $statusHistoryDataType = 'array'; + + + public function setClusterName($clusterName) + { + $this->clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + public function setClusterUuid($clusterUuid) + { + $this->clusterUuid = $clusterUuid; + } + public function getClusterUuid() + { + return $this->clusterUuid; + } + public function setConfig(Google_Service_Dataproc_ClusterConfig $config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setStatus(Google_Service_Dataproc_ClusterStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusHistory($statusHistory) + { + $this->statusHistory = $statusHistory; + } + public function getStatusHistory() + { + return $this->statusHistory; + } +} + +class Google_Service_Dataproc_ClusterConfig extends Google_Collection +{ + protected $collection_key = 'initializationActions'; + protected $internal_gapi_mappings = array( + ); + public $configBucket; + protected $gceClusterConfigType = 'Google_Service_Dataproc_GceClusterConfig'; + protected $gceClusterConfigDataType = ''; + protected $initializationActionsType = 'Google_Service_Dataproc_NodeInitializationAction'; + protected $initializationActionsDataType = 'array'; + protected $masterConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; + protected $masterConfigDataType = ''; + protected $secondaryWorkerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; + protected $secondaryWorkerConfigDataType = ''; + protected $softwareConfigType = 'Google_Service_Dataproc_SoftwareConfig'; + protected $softwareConfigDataType = ''; + protected $workerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; + protected $workerConfigDataType = ''; + + + public function setConfigBucket($configBucket) + { + $this->configBucket = $configBucket; + } + public function getConfigBucket() + { + return $this->configBucket; + } + public function setGceClusterConfig(Google_Service_Dataproc_GceClusterConfig $gceClusterConfig) + { + $this->gceClusterConfig = $gceClusterConfig; + } + public function getGceClusterConfig() + { + return $this->gceClusterConfig; + } + public function setInitializationActions($initializationActions) + { + $this->initializationActions = $initializationActions; + } + public function getInitializationActions() + { + return $this->initializationActions; + } + public function setMasterConfig(Google_Service_Dataproc_InstanceGroupConfig $masterConfig) + { + $this->masterConfig = $masterConfig; + } + public function getMasterConfig() + { + return $this->masterConfig; + } + public function setSecondaryWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $secondaryWorkerConfig) + { + $this->secondaryWorkerConfig = $secondaryWorkerConfig; + } + public function getSecondaryWorkerConfig() + { + return $this->secondaryWorkerConfig; + } + public function setSoftwareConfig(Google_Service_Dataproc_SoftwareConfig $softwareConfig) + { + $this->softwareConfig = $softwareConfig; + } + public function getSoftwareConfig() + { + return $this->softwareConfig; + } + public function setWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $workerConfig) + { + $this->workerConfig = $workerConfig; + } + public function getWorkerConfig() + { + return $this->workerConfig; + } +} + +class Google_Service_Dataproc_ClusterOperationMetadata extends Google_Collection +{ + protected $collection_key = 'statusHistory'; + protected $internal_gapi_mappings = array( + ); + public $clusterName; + public $clusterUuid; + public $description; + public $operationType; + protected $statusType = 'Google_Service_Dataproc_ClusterOperationStatus'; + protected $statusDataType = ''; + protected $statusHistoryType = 'Google_Service_Dataproc_ClusterOperationStatus'; + protected $statusHistoryDataType = 'array'; + + + public function setClusterName($clusterName) + { + $this->clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + public function setClusterUuid($clusterUuid) + { + $this->clusterUuid = $clusterUuid; + } + public function getClusterUuid() + { + return $this->clusterUuid; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setStatus(Google_Service_Dataproc_ClusterOperationStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusHistory($statusHistory) + { + $this->statusHistory = $statusHistory; + } + public function getStatusHistory() + { + return $this->statusHistory; + } +} + +class Google_Service_Dataproc_ClusterOperationStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $details; + public $innerState; + public $state; + public $stateStartTime; + + + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setInnerState($innerState) + { + $this->innerState = $innerState; + } + public function getInnerState() + { + return $this->innerState; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStateStartTime($stateStartTime) + { + $this->stateStartTime = $stateStartTime; + } + public function getStateStartTime() + { + return $this->stateStartTime; + } +} + +class Google_Service_Dataproc_ClusterStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $detail; + public $state; + public $stateStartTime; + + + public function setDetail($detail) + { + $this->detail = $detail; + } + public function getDetail() + { + return $this->detail; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStateStartTime($stateStartTime) + { + $this->stateStartTime = $stateStartTime; + } + public function getStateStartTime() + { + return $this->stateStartTime; + } +} + +class Google_Service_Dataproc_DiagnoseClusterOutputLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputUri; + + + public function setOutputUri($outputUri) + { + $this->outputUri = $outputUri; + } + public function getOutputUri() + { + return $this->outputUri; + } +} + +class Google_Service_Dataproc_DiagnoseClusterRequest extends Google_Model +{ +} + +class Google_Service_Dataproc_DiagnoseClusterResults extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputUri; + + + public function setOutputUri($outputUri) + { + $this->outputUri = $outputUri; + } + public function getOutputUri() + { + return $this->outputUri; + } +} + +class Google_Service_Dataproc_DiskConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $bootDiskSizeGb; + public $numLocalSsds; + + + public function setBootDiskSizeGb($bootDiskSizeGb) + { + $this->bootDiskSizeGb = $bootDiskSizeGb; + } + public function getBootDiskSizeGb() + { + return $this->bootDiskSizeGb; + } + public function setNumLocalSsds($numLocalSsds) + { + $this->numLocalSsds = $numLocalSsds; + } + public function getNumLocalSsds() + { + return $this->numLocalSsds; + } +} + +class Google_Service_Dataproc_Empty extends Google_Model +{ +} + +class Google_Service_Dataproc_GceClusterConfig extends Google_Collection +{ + protected $collection_key = 'tags'; + protected $internal_gapi_mappings = array( + ); + public $metadata; + public $networkUri; + public $serviceAccountScopes; + public $subnetworkUri; + public $tags; + public $zoneUri; + + + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setNetworkUri($networkUri) + { + $this->networkUri = $networkUri; + } + public function getNetworkUri() + { + return $this->networkUri; + } + public function setServiceAccountScopes($serviceAccountScopes) + { + $this->serviceAccountScopes = $serviceAccountScopes; + } + public function getServiceAccountScopes() + { + return $this->serviceAccountScopes; + } + public function setSubnetworkUri($subnetworkUri) + { + $this->subnetworkUri = $subnetworkUri; + } + public function getSubnetworkUri() + { + return $this->subnetworkUri; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setZoneUri($zoneUri) + { + $this->zoneUri = $zoneUri; + } + public function getZoneUri() + { + return $this->zoneUri; + } +} + +class Google_Service_Dataproc_HadoopJob extends Google_Collection +{ + protected $collection_key = 'jarFileUris'; + protected $internal_gapi_mappings = array( + ); + public $archiveUris; + public $args; + public $fileUris; + public $jarFileUris; + protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; + protected $loggingConfigDataType = ''; + public $mainClass; + public $mainJarFileUri; + public $properties; + + + public function setArchiveUris($archiveUris) + { + $this->archiveUris = $archiveUris; + } + public function getArchiveUris() + { + return $this->archiveUris; + } + public function setArgs($args) + { + $this->args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setFileUris($fileUris) + { + $this->fileUris = $fileUris; + } + public function getFileUris() + { + return $this->fileUris; + } + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) + { + $this->loggingConfig = $loggingConfig; + } + public function getLoggingConfig() + { + return $this->loggingConfig; + } + public function setMainClass($mainClass) + { + $this->mainClass = $mainClass; + } + public function getMainClass() + { + return $this->mainClass; + } + public function setMainJarFileUri($mainJarFileUri) + { + $this->mainJarFileUri = $mainJarFileUri; + } + public function getMainJarFileUri() + { + return $this->mainJarFileUri; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataproc_HiveJob extends Google_Collection +{ + protected $collection_key = 'jarFileUris'; + protected $internal_gapi_mappings = array( + ); + public $continueOnFailure; + public $jarFileUris; + public $properties; + public $queryFileUri; + protected $queryListType = 'Google_Service_Dataproc_QueryList'; + protected $queryListDataType = ''; + public $scriptVariables; + + + public function setContinueOnFailure($continueOnFailure) + { + $this->continueOnFailure = $continueOnFailure; + } + public function getContinueOnFailure() + { + return $this->continueOnFailure; + } + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setQueryFileUri($queryFileUri) + { + $this->queryFileUri = $queryFileUri; + } + public function getQueryFileUri() + { + return $this->queryFileUri; + } + public function setQueryList(Google_Service_Dataproc_QueryList $queryList) + { + $this->queryList = $queryList; + } + public function getQueryList() + { + return $this->queryList; + } + public function setScriptVariables($scriptVariables) + { + $this->scriptVariables = $scriptVariables; + } + public function getScriptVariables() + { + return $this->scriptVariables; + } +} + +class Google_Service_Dataproc_InstanceGroupConfig extends Google_Collection +{ + protected $collection_key = 'instanceNames'; + protected $internal_gapi_mappings = array( + ); + protected $diskConfigType = 'Google_Service_Dataproc_DiskConfig'; + protected $diskConfigDataType = ''; + public $imageUri; + public $instanceNames; + public $isPreemptible; + public $machineTypeUri; + protected $managedGroupConfigType = 'Google_Service_Dataproc_ManagedGroupConfig'; + protected $managedGroupConfigDataType = ''; + public $numInstances; + + + public function setDiskConfig(Google_Service_Dataproc_DiskConfig $diskConfig) + { + $this->diskConfig = $diskConfig; + } + public function getDiskConfig() + { + return $this->diskConfig; + } + public function setImageUri($imageUri) + { + $this->imageUri = $imageUri; + } + public function getImageUri() + { + return $this->imageUri; + } + public function setInstanceNames($instanceNames) + { + $this->instanceNames = $instanceNames; + } + public function getInstanceNames() + { + return $this->instanceNames; + } + public function setIsPreemptible($isPreemptible) + { + $this->isPreemptible = $isPreemptible; + } + public function getIsPreemptible() + { + return $this->isPreemptible; + } + public function setMachineTypeUri($machineTypeUri) + { + $this->machineTypeUri = $machineTypeUri; + } + public function getMachineTypeUri() + { + return $this->machineTypeUri; + } + public function setManagedGroupConfig(Google_Service_Dataproc_ManagedGroupConfig $managedGroupConfig) + { + $this->managedGroupConfig = $managedGroupConfig; + } + public function getManagedGroupConfig() + { + return $this->managedGroupConfig; + } + public function setNumInstances($numInstances) + { + $this->numInstances = $numInstances; + } + public function getNumInstances() + { + return $this->numInstances; + } +} + +class Google_Service_Dataproc_Job extends Google_Collection +{ + protected $collection_key = 'statusHistory'; + protected $internal_gapi_mappings = array( + ); + public $driverControlFilesUri; + public $driverOutputResourceUri; + protected $hadoopJobType = 'Google_Service_Dataproc_HadoopJob'; + protected $hadoopJobDataType = ''; + protected $hiveJobType = 'Google_Service_Dataproc_HiveJob'; + protected $hiveJobDataType = ''; + protected $pigJobType = 'Google_Service_Dataproc_PigJob'; + protected $pigJobDataType = ''; + protected $placementType = 'Google_Service_Dataproc_JobPlacement'; + protected $placementDataType = ''; + protected $pysparkJobType = 'Google_Service_Dataproc_PySparkJob'; + protected $pysparkJobDataType = ''; + protected $referenceType = 'Google_Service_Dataproc_JobReference'; + protected $referenceDataType = ''; + protected $sparkJobType = 'Google_Service_Dataproc_SparkJob'; + protected $sparkJobDataType = ''; + protected $sparkSqlJobType = 'Google_Service_Dataproc_SparkSqlJob'; + protected $sparkSqlJobDataType = ''; + protected $statusType = 'Google_Service_Dataproc_JobStatus'; + protected $statusDataType = ''; + protected $statusHistoryType = 'Google_Service_Dataproc_JobStatus'; + protected $statusHistoryDataType = 'array'; + + + public function setDriverControlFilesUri($driverControlFilesUri) + { + $this->driverControlFilesUri = $driverControlFilesUri; + } + public function getDriverControlFilesUri() + { + return $this->driverControlFilesUri; + } + public function setDriverOutputResourceUri($driverOutputResourceUri) + { + $this->driverOutputResourceUri = $driverOutputResourceUri; + } + public function getDriverOutputResourceUri() + { + return $this->driverOutputResourceUri; + } + public function setHadoopJob(Google_Service_Dataproc_HadoopJob $hadoopJob) + { + $this->hadoopJob = $hadoopJob; + } + public function getHadoopJob() + { + return $this->hadoopJob; + } + public function setHiveJob(Google_Service_Dataproc_HiveJob $hiveJob) + { + $this->hiveJob = $hiveJob; + } + public function getHiveJob() + { + return $this->hiveJob; + } + public function setPigJob(Google_Service_Dataproc_PigJob $pigJob) + { + $this->pigJob = $pigJob; + } + public function getPigJob() + { + return $this->pigJob; + } + public function setPlacement(Google_Service_Dataproc_JobPlacement $placement) + { + $this->placement = $placement; + } + public function getPlacement() + { + return $this->placement; + } + public function setPysparkJob(Google_Service_Dataproc_PySparkJob $pysparkJob) + { + $this->pysparkJob = $pysparkJob; + } + public function getPysparkJob() + { + return $this->pysparkJob; + } + public function setReference(Google_Service_Dataproc_JobReference $reference) + { + $this->reference = $reference; + } + public function getReference() + { + return $this->reference; + } + public function setSparkJob(Google_Service_Dataproc_SparkJob $sparkJob) + { + $this->sparkJob = $sparkJob; + } + public function getSparkJob() + { + return $this->sparkJob; + } + public function setSparkSqlJob(Google_Service_Dataproc_SparkSqlJob $sparkSqlJob) + { + $this->sparkSqlJob = $sparkSqlJob; + } + public function getSparkSqlJob() + { + return $this->sparkSqlJob; + } + public function setStatus(Google_Service_Dataproc_JobStatus $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusHistory($statusHistory) + { + $this->statusHistory = $statusHistory; + } + public function getStatusHistory() + { + return $this->statusHistory; + } +} + +class Google_Service_Dataproc_JobPlacement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clusterName; + public $clusterUuid; + + + public function setClusterName($clusterName) + { + $this->clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + public function setClusterUuid($clusterUuid) + { + $this->clusterUuid = $clusterUuid; + } + public function getClusterUuid() + { + return $this->clusterUuid; + } +} + +class Google_Service_Dataproc_JobReference extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + 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_Dataproc_JobStatus extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $details; + public $state; + public $stateStartTime; + + + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStateStartTime($stateStartTime) + { + $this->stateStartTime = $stateStartTime; + } + public function getStateStartTime() + { + return $this->stateStartTime; + } +} + +class Google_Service_Dataproc_ListClustersResponse extends Google_Collection +{ + protected $collection_key = 'clusters'; + protected $internal_gapi_mappings = array( + ); + protected $clustersType = 'Google_Service_Dataproc_Cluster'; + protected $clustersDataType = 'array'; + public $nextPageToken; + + + public function setClusters($clusters) + { + $this->clusters = $clusters; + } + public function getClusters() + { + return $this->clusters; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataproc_ListJobsResponse extends Google_Collection +{ + protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); + protected $jobsType = 'Google_Service_Dataproc_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataproc_ListOperationsResponse extends Google_Collection +{ + protected $collection_key = 'operations'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $operationsType = 'Google_Service_Dataproc_Operation'; + protected $operationsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOperations($operations) + { + $this->operations = $operations; + } + public function getOperations() + { + return $this->operations; + } +} + +class Google_Service_Dataproc_LoggingConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $driverLogLevels; + + + public function setDriverLogLevels($driverLogLevels) + { + $this->driverLogLevels = $driverLogLevels; + } + public function getDriverLogLevels() + { + return $this->driverLogLevels; + } +} + +class Google_Service_Dataproc_ManagedGroupConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceGroupManagerName; + public $instanceTemplateName; + + + public function setInstanceGroupManagerName($instanceGroupManagerName) + { + $this->instanceGroupManagerName = $instanceGroupManagerName; + } + public function getInstanceGroupManagerName() + { + return $this->instanceGroupManagerName; + } + public function setInstanceTemplateName($instanceTemplateName) + { + $this->instanceTemplateName = $instanceTemplateName; + } + public function getInstanceTemplateName() + { + return $this->instanceTemplateName; + } +} + +class Google_Service_Dataproc_Media extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $resourceName; + + + public function setResourceName($resourceName) + { + $this->resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; } } - - - -class Google_Service_Dataproc_DiagnoseClusterOutputLocation extends Google_Model +class Google_Service_Dataproc_NodeInitializationAction extends Google_Model { protected $internal_gapi_mappings = array( ); - public $outputUri; + public $executableFile; + public $executionTimeout; - public function setOutputUri($outputUri) + public function setExecutableFile($executableFile) { - $this->outputUri = $outputUri; + $this->executableFile = $executableFile; } - public function getOutputUri() + public function getExecutableFile() { - return $this->outputUri; + return $this->executableFile; + } + public function setExecutionTimeout($executionTimeout) + { + $this->executionTimeout = $executionTimeout; + } + public function getExecutionTimeout() + { + return $this->executionTimeout; } } -class Google_Service_Dataproc_Media extends Google_Model +class Google_Service_Dataproc_Operation extends Google_Model { protected $internal_gapi_mappings = array( ); - public $resourceName; + public $done; + protected $errorType = 'Google_Service_Dataproc_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; - public function setResourceName($resourceName) + public function setDone($done) { - $this->resourceName = $resourceName; + $this->done = $done; } - public function getResourceName() + public function getDone() { - return $this->resourceName; + return $this->done; + } + public function setError(Google_Service_Dataproc_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($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 setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; } } @@ -182,10 +1900,12 @@ class Google_Service_Dataproc_OperationMetadata extends Google_Collection ); public $clusterName; public $clusterUuid; + public $description; public $details; public $endTime; public $innerState; public $insertTime; + public $operationType; public $startTime; public $state; protected $statusType = 'Google_Service_Dataproc_OperationStatus'; @@ -210,6 +1930,14 @@ public function getClusterUuid() { return $this->clusterUuid; } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setDetails($details) { $this->details = $details; @@ -242,6 +1970,14 @@ public function getInsertTime() { return $this->insertTime; } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } public function setStartTime($startTime) { $this->startTime = $startTime; @@ -319,3 +2055,404 @@ public function getStateStartTime() return $this->stateStartTime; } } + +class Google_Service_Dataproc_PigJob extends Google_Collection +{ + protected $collection_key = 'jarFileUris'; + protected $internal_gapi_mappings = array( + ); + public $continueOnFailure; + public $jarFileUris; + protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; + protected $loggingConfigDataType = ''; + public $properties; + public $queryFileUri; + protected $queryListType = 'Google_Service_Dataproc_QueryList'; + protected $queryListDataType = ''; + public $scriptVariables; + + + public function setContinueOnFailure($continueOnFailure) + { + $this->continueOnFailure = $continueOnFailure; + } + public function getContinueOnFailure() + { + return $this->continueOnFailure; + } + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) + { + $this->loggingConfig = $loggingConfig; + } + public function getLoggingConfig() + { + return $this->loggingConfig; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setQueryFileUri($queryFileUri) + { + $this->queryFileUri = $queryFileUri; + } + public function getQueryFileUri() + { + return $this->queryFileUri; + } + public function setQueryList(Google_Service_Dataproc_QueryList $queryList) + { + $this->queryList = $queryList; + } + public function getQueryList() + { + return $this->queryList; + } + public function setScriptVariables($scriptVariables) + { + $this->scriptVariables = $scriptVariables; + } + public function getScriptVariables() + { + return $this->scriptVariables; + } +} + +class Google_Service_Dataproc_PySparkJob extends Google_Collection +{ + protected $collection_key = 'pythonFileUris'; + protected $internal_gapi_mappings = array( + ); + public $archiveUris; + public $args; + public $fileUris; + public $jarFileUris; + protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; + protected $loggingConfigDataType = ''; + public $mainPythonFileUri; + public $properties; + public $pythonFileUris; + + + public function setArchiveUris($archiveUris) + { + $this->archiveUris = $archiveUris; + } + public function getArchiveUris() + { + return $this->archiveUris; + } + public function setArgs($args) + { + $this->args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setFileUris($fileUris) + { + $this->fileUris = $fileUris; + } + public function getFileUris() + { + return $this->fileUris; + } + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) + { + $this->loggingConfig = $loggingConfig; + } + public function getLoggingConfig() + { + return $this->loggingConfig; + } + public function setMainPythonFileUri($mainPythonFileUri) + { + $this->mainPythonFileUri = $mainPythonFileUri; + } + public function getMainPythonFileUri() + { + return $this->mainPythonFileUri; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setPythonFileUris($pythonFileUris) + { + $this->pythonFileUris = $pythonFileUris; + } + public function getPythonFileUris() + { + return $this->pythonFileUris; + } +} + +class Google_Service_Dataproc_QueryList extends Google_Collection +{ + protected $collection_key = 'queries'; + protected $internal_gapi_mappings = array( + ); + public $queries; + + + public function setQueries($queries) + { + $this->queries = $queries; + } + public function getQueries() + { + return $this->queries; + } +} + +class Google_Service_Dataproc_SoftwareConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $imageVersion; + public $properties; + + + public function setImageVersion($imageVersion) + { + $this->imageVersion = $imageVersion; + } + public function getImageVersion() + { + return $this->imageVersion; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataproc_SparkJob extends Google_Collection +{ + protected $collection_key = 'jarFileUris'; + protected $internal_gapi_mappings = array( + ); + public $archiveUris; + public $args; + public $fileUris; + public $jarFileUris; + protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; + protected $loggingConfigDataType = ''; + public $mainClass; + public $mainJarFileUri; + public $properties; + + + public function setArchiveUris($archiveUris) + { + $this->archiveUris = $archiveUris; + } + public function getArchiveUris() + { + return $this->archiveUris; + } + public function setArgs($args) + { + $this->args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setFileUris($fileUris) + { + $this->fileUris = $fileUris; + } + public function getFileUris() + { + return $this->fileUris; + } + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) + { + $this->loggingConfig = $loggingConfig; + } + public function getLoggingConfig() + { + return $this->loggingConfig; + } + public function setMainClass($mainClass) + { + $this->mainClass = $mainClass; + } + public function getMainClass() + { + return $this->mainClass; + } + public function setMainJarFileUri($mainJarFileUri) + { + $this->mainJarFileUri = $mainJarFileUri; + } + public function getMainJarFileUri() + { + return $this->mainJarFileUri; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataproc_SparkSqlJob extends Google_Collection +{ + protected $collection_key = 'jarFileUris'; + protected $internal_gapi_mappings = array( + ); + public $jarFileUris; + protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; + protected $loggingConfigDataType = ''; + public $properties; + public $queryFileUri; + protected $queryListType = 'Google_Service_Dataproc_QueryList'; + protected $queryListDataType = ''; + public $scriptVariables; + + + public function setJarFileUris($jarFileUris) + { + $this->jarFileUris = $jarFileUris; + } + public function getJarFileUris() + { + return $this->jarFileUris; + } + public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) + { + $this->loggingConfig = $loggingConfig; + } + public function getLoggingConfig() + { + return $this->loggingConfig; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } + public function setQueryFileUri($queryFileUri) + { + $this->queryFileUri = $queryFileUri; + } + public function getQueryFileUri() + { + return $this->queryFileUri; + } + public function setQueryList(Google_Service_Dataproc_QueryList $queryList) + { + $this->queryList = $queryList; + } + public function getQueryList() + { + return $this->queryList; + } + public function setScriptVariables($scriptVariables) + { + $this->scriptVariables = $scriptVariables; + } + public function getScriptVariables() + { + return $this->scriptVariables; + } +} + +class Google_Service_Dataproc_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Dataproc_SubmitJobRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $jobType = 'Google_Service_Dataproc_Job'; + protected $jobDataType = ''; + + + public function setJob(Google_Service_Dataproc_Job $job) + { + $this->job = $job; + } + public function getJob() + { + return $this->job; + } +} diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php index 33fc819f2..cdb7a6559 100644 --- a/src/Google/Service/Genomics.php +++ b/src/Google/Service/Genomics.php @@ -526,6 +526,10 @@ public function __construct(Google_Client $client) 'path' => 'v1/variants:import', 'httpMethod' => 'POST', 'parameters' => array(), + ),'merge' => array( + 'path' => 'v1/variants:merge', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'patch' => array( 'path' => 'v1/variants/{variantId}', 'httpMethod' => 'PATCH', @@ -1464,6 +1468,27 @@ public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, return $this->call('import', array($params), "Google_Service_Genomics_Operation"); } + /** + * Merges the given variants with existing variants. For the definitions of + * variants and other genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Each variant will be merged with an existing variant that matches its + * reference sequence, start, end, reference bases, and alternative bases. If no + * such variant exists, a new one will be created. When variants are merged, the + * call information from the new variant is added to the existing variant, and + * other fields (such as key/value pairs) are discarded. (variants.merge) + * + * @param Google_MergeVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Empty + */ + public function merge(Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('merge', array($params), "Google_Service_Genomics_Empty"); + } + /** * Updates a variant. For the definitions of variants and other genomics * resources, see [Fundamentals of Google @@ -1553,10 +1578,11 @@ public function create(Google_Service_Genomics_VariantSet $postBody, $optParams } /** - * Deletes the contents of a variant set. The variant set object is not deleted. - * For the definitions of variant sets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) (variantsets.delete) + * Deletes a variant set including all variants, call sets, and calls within. + * This is not reversible. For the definitions of variant sets and other + * genomics resources, see [Fundamentals of Google + * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * (variantsets.delete) * * @param string $variantSetId The ID of the variant set to be deleted. * @param array $optParams Optional parameters. @@ -1781,99 +1807,6 @@ public function getReferenceSequence() } } -class Google_Service_Genomics_CloudAuditOptions extends Google_Model -{ -} - -class Google_Service_Genomics_Condition extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - public $iam; - public $op; - public $svc; - public $sys; - public $value; - public $values; - - - public function setIam($iam) - { - $this->iam = $iam; - } - public function getIam() - { - return $this->iam; - } - public function setOp($op) - { - $this->op = $op; - } - public function getOp() - { - return $this->op; - } - public function setSvc($svc) - { - $this->svc = $svc; - } - public function getSvc() - { - return $this->svc; - } - public function setSys($sys) - { - $this->sys = $sys; - } - public function getSys() - { - return $this->sys; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; - } -} - -class Google_Service_Genomics_CounterOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $field; - public $metric; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } -} - class Google_Service_Genomics_CoverageBucket extends Google_Model { protected $internal_gapi_mappings = array( @@ -1901,10 +1834,6 @@ public function getRange() } } -class Google_Service_Genomics_DataAccessOptions extends Google_Model -{ -} - class Google_Service_Genomics_Dataset extends Google_Model { protected $internal_gapi_mappings = array( @@ -2383,41 +2312,31 @@ public function getOperations() } } -class Google_Service_Genomics_LogConfig extends Google_Model +class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection { + protected $collection_key = 'variants'; protected $internal_gapi_mappings = array( ); - protected $cloudAuditType = 'Google_Service_Genomics_CloudAuditOptions'; - protected $cloudAuditDataType = ''; - protected $counterType = 'Google_Service_Genomics_CounterOptions'; - protected $counterDataType = ''; - protected $dataAccessType = 'Google_Service_Genomics_DataAccessOptions'; - protected $dataAccessDataType = ''; + public $variantSetId; + protected $variantsType = 'Google_Service_Genomics_Variant'; + protected $variantsDataType = 'array'; - public function setCloudAudit(Google_Service_Genomics_CloudAuditOptions $cloudAudit) - { - $this->cloudAudit = $cloudAudit; - } - public function getCloudAudit() - { - return $this->cloudAudit; - } - public function setCounter(Google_Service_Genomics_CounterOptions $counter) + public function setVariantSetId($variantSetId) { - $this->counter = $counter; + $this->variantSetId = $variantSetId; } - public function getCounter() + public function getVariantSetId() { - return $this->counter; + return $this->variantSetId; } - public function setDataAccess(Google_Service_Genomics_DataAccessOptions $dataAccess) + public function setVariants($variants) { - $this->dataAccess = $dataAccess; + $this->variants = $variants; } - public function getDataAccess() + public function getVariants() { - return $this->dataAccess; + return $this->variants; } } @@ -2540,14 +2459,12 @@ public function getRequest() class Google_Service_Genomics_Policy extends Google_Collection { - protected $collection_key = 'rules'; + protected $collection_key = 'bindings'; protected $internal_gapi_mappings = array( ); protected $bindingsType = 'Google_Service_Genomics_Binding'; protected $bindingsDataType = 'array'; public $etag; - protected $rulesType = 'Google_Service_Genomics_Rule'; - protected $rulesDataType = 'array'; public $version; @@ -2567,14 +2484,6 @@ public function getEtag() { return $this->etag; } - public function setRules($rules) - { - $this->rules = $rules; - } - public function getRules() - { - return $this->rules; - } public function setVersion($version) { $this->version = $version; @@ -3225,80 +3134,6 @@ public function getSourceUri() } } -class Google_Service_Genomics_Rule extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $action; - protected $conditionsType = 'Google_Service_Genomics_Condition'; - protected $conditionsDataType = 'array'; - public $description; - public $in; - protected $logConfigType = 'Google_Service_Genomics_LogConfig'; - protected $logConfigDataType = 'array'; - public $notIn; - public $permissions; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setConditions($conditions) - { - $this->conditions = $conditions; - } - public function getConditions() - { - return $this->conditions; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIn($in) - { - $this->in = $in; - } - public function getIn() - { - return $this->in; - } - public function setLogConfig($logConfig) - { - $this->logConfig = $logConfig; - } - public function getLogConfig() - { - return $this->logConfig; - } - public function setNotIn($notIn) - { - $this->notIn = $notIn; - } - public function getNotIn() - { - return $this->notIn; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection { protected $collection_key = 'variantSetIds'; @@ -3953,7 +3788,9 @@ class Google_Service_Genomics_StreamReadsRequest extends Google_Model public $projectId; public $readGroupSetId; public $referenceName; + public $shard; public $start; + public $totalShards; public function setEnd($end) @@ -3988,6 +3825,14 @@ public function getReferenceName() { return $this->referenceName; } + public function setShard($shard) + { + $this->shard = $shard; + } + public function getShard() + { + return $this->shard; + } public function setStart($start) { $this->start = $start; @@ -3996,6 +3841,14 @@ public function getStart() { return $this->start; } + public function setTotalShards($totalShards) + { + $this->totalShards = $totalShards; + } + public function getTotalShards() + { + return $this->totalShards; + } } class Google_Service_Genomics_StreamReadsResponse extends Google_Collection diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php index 8e437ea26..b0c60fbc1 100644 --- a/src/Google/Service/Gmail.php +++ b/src/Google/Service/Gmail.php @@ -19,7 +19,7 @@ * Service definition for Gmail (v1). * *

    - * The Gmail REST API.

    + * Access Gmail mailboxes including sending user email.

    * *

    * For more information about this service, see the API @@ -32,7 +32,7 @@ class Google_Service_Gmail extends Google_Service { /** View and manage your mail. */ const MAIL_GOOGLE_COM = - "https://mail.google.com"; + "https://mail.google.com/"; /** Manage drafts and send emails. */ const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; @@ -173,6 +173,10 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'includeSpamTrash' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -343,7 +347,17 @@ public function __construct(Google_Client $client) 'messages', array( 'methods' => array( - 'delete' => array( + 'batchDelete' => array( + 'path' => '{userId}/messages/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( 'path' => '{userId}/messages/{id}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -801,6 +815,8 @@ public function get($userId, $id, $optParams = array()) * used to indicate the authenticated user. * @param array $optParams Optional parameters. * + * @opt_param bool includeSpamTrash Include drafts from SPAM and TRASH in the + * results. * @opt_param string maxResults Maximum number of drafts to return. * @opt_param string pageToken Page token to retrieve a specific page of results * in the list. @@ -1011,6 +1027,22 @@ public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optP class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource { + /** + * Deletes many messages by message ID. Provides no guarantees that messages + * were not already deleted or even existed at all. (messages.batchDelete) + * + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param Google_BatchDeleteMessagesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchDelete($userId, Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params)); + } + /** * Immediately and permanently deletes the specified message. This operation * cannot be undone. Prefer messages.trash instead. (messages.delete) @@ -1347,6 +1379,24 @@ public function untrash($userId, $id, $optParams = array()) +class Google_Service_Gmail_BatchDeleteMessagesRequest extends Google_Collection +{ + protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); + public $ids; + + + public function setIds($ids) + { + $this->ids = $ids; + } + public function getIds() + { + return $this->ids; + } +} + class Google_Service_Gmail_Draft extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php index d492dca61..1e5035e36 100644 --- a/src/Google/Service/IdentityToolkit.php +++ b/src/Google/Service/IdentityToolkit.php @@ -77,7 +77,16 @@ public function __construct(Google_Client $client) ),'getProjectConfig' => array( 'path' => 'getProjectConfig', 'httpMethod' => 'GET', - 'parameters' => array(), + 'parameters' => array( + 'delegatedProjectNumber' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectNumber' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'getPublicKeys' => array( 'path' => 'publicKeys', 'httpMethod' => 'GET', @@ -94,10 +103,18 @@ public function __construct(Google_Client $client) 'path' => 'setAccountInfo', 'httpMethod' => 'POST', 'parameters' => array(), + ),'setProjectConfig' => array( + 'path' => 'setProjectConfig', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'signOutUser' => array( 'path' => 'signOutUser', 'httpMethod' => 'POST', 'parameters' => array(), + ),'signupNewUser' => array( + 'path' => 'signupNewUser', + 'httpMethod' => 'POST', + 'parameters' => array(), ),'uploadAccount' => array( 'path' => 'uploadAccount', 'httpMethod' => 'POST', @@ -209,6 +226,10 @@ public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingpar * Get project configuration. (relyingparty.getProjectConfig) * * @param array $optParams Optional parameters. + * + * @opt_param string delegatedProjectNumber Delegated GCP project number of the + * request. + * @opt_param string projectNumber GCP project number of the request. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse */ public function getProjectConfig($optParams = array()) @@ -272,6 +293,20 @@ public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRel return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); } + /** + * Set project configuration. (relyingparty.setProjectConfig) + * + * @param Google_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse + */ + public function setProjectConfig(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse"); + } + /** * Sign out user. (relyingparty.signOutUser) * @@ -286,6 +321,20 @@ public function signOutUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyin return $this->call('signOutUser', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse"); } + /** + * Signup new user. (relyingparty.signupNewUser) + * + * @param Google_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_SignupNewUserResponse + */ + public function signupNewUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('signupNewUser', array($params), "Google_Service_IdentityToolkit_SignupNewUserResponse"); + } + /** * Batch upload existing user accounts. (relyingparty.uploadAccount) * @@ -481,6 +530,68 @@ public function getUsers() } } +class Google_Service_IdentityToolkit_EmailTemplate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $body; + public $format; + public $from; + public $fromDisplayName; + public $replyTo; + public $subject; + + + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setFrom($from) + { + $this->from = $from; + } + public function getFrom() + { + return $this->from; + } + public function setFromDisplayName($fromDisplayName) + { + $this->fromDisplayName = $fromDisplayName; + } + public function getFromDisplayName() + { + return $this->fromDisplayName; + } + public function setReplyTo($replyTo) + { + $this->replyTo = $replyTo; + } + public function getReplyTo() + { + return $this->replyTo; + } + public function setSubject($subject) + { + $this->subject = $subject; + } + public function getSubject() + { + return $this->subject; + } +} + class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection { protected $collection_key = 'users'; @@ -743,11 +854,20 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRe protected $collection_key = 'localId'; protected $internal_gapi_mappings = array( ); + public $delegatedProjectNumber; public $email; public $idToken; public $localId; + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } public function setEmail($email) { $this->email = $email; @@ -781,9 +901,17 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfig ); public $allowPasswordUser; public $apiKey; + public $authorizedDomains; + protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $changeEmailTemplateDataType = ''; protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig'; protected $idpConfigDataType = 'array'; public $projectId; + protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $resetPasswordTemplateDataType = ''; + public $useEmailSending; + protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $verifyEmailTemplateDataType = ''; public function setAllowPasswordUser($allowPasswordUser) @@ -802,6 +930,22 @@ public function getApiKey() { return $this->apiKey; } + public function setAuthorizedDomains($authorizedDomains) + { + $this->authorizedDomains = $authorizedDomains; + } + public function getAuthorizedDomains() + { + return $this->authorizedDomains; + } + public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate) + { + $this->changeEmailTemplate = $changeEmailTemplate; + } + public function getChangeEmailTemplate() + { + return $this->changeEmailTemplate; + } public function setIdpConfig($idpConfig) { $this->idpConfig = $idpConfig; @@ -818,6 +962,30 @@ public function getProjectId() { return $this->projectId; } + public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate) + { + $this->resetPasswordTemplate = $resetPasswordTemplate; + } + public function getResetPasswordTemplate() + { + return $this->resetPasswordTemplate; + } + public function setUseEmailSending($useEmailSending) + { + $this->useEmailSending = $useEmailSending; + } + public function getUseEmailSending() + { + return $this->useEmailSending; + } + public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate) + { + $this->verifyEmailTemplate = $verifyEmailTemplate; + } + public function getVerifyEmailTemplate() + { + return $this->verifyEmailTemplate; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model @@ -872,6 +1040,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe public $captchaChallenge; public $captchaResponse; public $delegatedProjectNumber; + public $deleteAttribute; public $disableUser; public $displayName; public $email; @@ -883,6 +1052,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe public $password; public $photoUrl; public $provider; + public $returnSecureToken; public $upgradeToFederatedLogin; public $validSince; @@ -911,6 +1081,14 @@ public function getDelegatedProjectNumber() { return $this->delegatedProjectNumber; } + public function setDeleteAttribute($deleteAttribute) + { + $this->deleteAttribute = $deleteAttribute; + } + public function getDeleteAttribute() + { + return $this->deleteAttribute; + } public function setDisableUser($disableUser) { $this->disableUser = $disableUser; @@ -999,6 +1177,14 @@ public function getProvider() { return $this->provider; } + public function setReturnSecureToken($returnSecureToken) + { + $this->returnSecureToken = $returnSecureToken; + } + public function getReturnSecureToken() + { + return $this->returnSecureToken; + } public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) { $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; @@ -1017,6 +1203,108 @@ public function getValidSince() } } +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest extends Google_Collection +{ + protected $collection_key = 'idpConfig'; + protected $internal_gapi_mappings = array( + ); + public $allowPasswordUser; + public $apiKey; + protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $changeEmailTemplateDataType = ''; + public $delegatedProjectNumber; + protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig'; + protected $idpConfigDataType = 'array'; + protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $resetPasswordTemplateDataType = ''; + public $useEmailSending; + protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; + protected $verifyEmailTemplateDataType = ''; + + + public function setAllowPasswordUser($allowPasswordUser) + { + $this->allowPasswordUser = $allowPasswordUser; + } + public function getAllowPasswordUser() + { + return $this->allowPasswordUser; + } + public function setApiKey($apiKey) + { + $this->apiKey = $apiKey; + } + public function getApiKey() + { + return $this->apiKey; + } + public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate) + { + $this->changeEmailTemplate = $changeEmailTemplate; + } + public function getChangeEmailTemplate() + { + return $this->changeEmailTemplate; + } + public function setDelegatedProjectNumber($delegatedProjectNumber) + { + $this->delegatedProjectNumber = $delegatedProjectNumber; + } + public function getDelegatedProjectNumber() + { + return $this->delegatedProjectNumber; + } + public function setIdpConfig($idpConfig) + { + $this->idpConfig = $idpConfig; + } + public function getIdpConfig() + { + return $this->idpConfig; + } + public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate) + { + $this->resetPasswordTemplate = $resetPasswordTemplate; + } + public function getResetPasswordTemplate() + { + return $this->resetPasswordTemplate; + } + public function setUseEmailSending($useEmailSending) + { + $this->useEmailSending = $useEmailSending; + } + public function getUseEmailSending() + { + return $this->useEmailSending; + } + public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate) + { + $this->verifyEmailTemplate = $verifyEmailTemplate; + } + public function getVerifyEmailTemplate() + { + return $this->verifyEmailTemplate; + } +} + +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $projectId; + + + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -1060,6 +1348,86 @@ public function getLocalId() } } +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $captchaChallenge; + public $captchaResponse; + public $displayName; + public $email; + public $idToken; + public $instanceId; + public $password; + public $returnSecureToken; + + + public function setCaptchaChallenge($captchaChallenge) + { + $this->captchaChallenge = $captchaChallenge; + } + public function getCaptchaChallenge() + { + return $this->captchaChallenge; + } + public function setCaptchaResponse($captchaResponse) + { + $this->captchaResponse = $captchaResponse; + } + public function getCaptchaResponse() + { + return $this->captchaResponse; + } + 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 setIdToken($idToken) + { + $this->idToken = $idToken; + } + public function getIdToken() + { + return $this->idToken; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setReturnSecureToken($returnSecureToken) + { + $this->returnSecureToken = $returnSecureToken; + } + public function getReturnSecureToken() + { + return $this->returnSecureToken; + } +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection { protected $collection_key = 'users'; @@ -1138,11 +1506,13 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR protected $internal_gapi_mappings = array( ); public $delegatedProjectNumber; + public $idToken; public $instanceId; public $pendingIdToken; public $postBody; public $requestUri; public $returnRefreshToken; + public $returnSecureToken; public $sessionId; @@ -1154,6 +1524,14 @@ public function getDelegatedProjectNumber() { return $this->delegatedProjectNumber; } + public function setIdToken($idToken) + { + $this->idToken = $idToken; + } + public function getIdToken() + { + return $this->idToken; + } public function setInstanceId($instanceId) { $this->instanceId = $instanceId; @@ -1194,6 +1572,14 @@ public function getReturnRefreshToken() { return $this->returnRefreshToken; } + public function setReturnSecureToken($returnSecureToken) + { + $this->returnSecureToken = $returnSecureToken; + } + public function getReturnSecureToken() + { + return $this->returnSecureToken; + } public function setSessionId($sessionId) { $this->sessionId = $sessionId; @@ -1209,6 +1595,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomToke protected $internal_gapi_mappings = array( ); public $instanceId; + public $returnSecureToken; public $token; @@ -1220,6 +1607,14 @@ public function getInstanceId() { return $this->instanceId; } + public function setReturnSecureToken($returnSecureToken) + { + $this->returnSecureToken = $returnSecureToken; + } + public function getReturnSecureToken() + { + return $this->returnSecureToken; + } public function setToken($token) { $this->token = $token; @@ -1238,9 +1633,11 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRe public $captchaResponse; public $delegatedProjectNumber; public $email; + public $idToken; public $instanceId; public $password; public $pendingIdToken; + public $returnSecureToken; public function setCaptchaChallenge($captchaChallenge) @@ -1275,6 +1672,14 @@ public function getEmail() { return $this->email; } + public function setIdToken($idToken) + { + $this->idToken = $idToken; + } + public function getIdToken() + { + return $this->idToken; + } public function setInstanceId($instanceId) { $this->instanceId = $instanceId; @@ -1299,6 +1704,14 @@ public function getPendingIdToken() { return $this->pendingIdToken; } + public function setReturnSecureToken($returnSecureToken) + { + $this->returnSecureToken = $returnSecureToken; + } + public function getReturnSecureToken() + { + return $this->returnSecureToken; + } } class Google_Service_IdentityToolkit_IdpConfig extends Google_Model @@ -1458,12 +1871,14 @@ class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Colle ); public $displayName; public $email; + public $expiresIn; public $idToken; public $kind; public $newEmail; public $photoUrl; protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; protected $providerUserInfoDataType = 'array'; + public $refreshToken; public function setDisplayName($displayName) @@ -1482,6 +1897,14 @@ public function getEmail() { return $this->email; } + public function setExpiresIn($expiresIn) + { + $this->expiresIn = $expiresIn; + } + public function getExpiresIn() + { + return $this->expiresIn; + } public function setIdToken($idToken) { $this->idToken = $idToken; @@ -1522,6 +1945,14 @@ public function getProviderUserInfo() { return $this->providerUserInfo; } + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + public function getRefreshToken() + { + return $this->refreshToken; + } } class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model @@ -1559,6 +1990,77 @@ public function getProviderId() } } +class Google_Service_IdentityToolkit_SignupNewUserResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $email; + public $expiresIn; + public $idToken; + public $kind; + public $localId; + public $refreshToken; + + + 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 setExpiresIn($expiresIn) + { + $this->expiresIn = $expiresIn; + } + public function getExpiresIn() + { + return $this->expiresIn; + } + public function setIdToken($idToken) + { + $this->idToken = $idToken; + } + public function getIdToken() + { + return $this->idToken; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalId($localId) + { + $this->localId = $localId; + } + public function getLocalId() + { + return $this->localId; + } + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + public function getRefreshToken() + { + return $this->refreshToken; + } +} + class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection { protected $collection_key = 'error'; @@ -1740,6 +2242,7 @@ class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Mod public $federatedId; public $photoUrl; public $providerId; + public $rawId; public function setDisplayName($displayName) @@ -1782,6 +2285,14 @@ public function getProviderId() { return $this->providerId; } + public function setRawId($rawId) + { + $this->rawId = $rawId; + } + public function getRawId() + { + return $this->rawId; + } } class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection @@ -1798,6 +2309,7 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $email; public $emailRecycled; public $emailVerified; + public $expiresIn; public $federatedId; public $firstName; public $fullName; @@ -1815,9 +2327,11 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $oauthExpireIn; public $oauthRequestToken; public $oauthScope; + public $oauthTokenSecret; public $originalEmail; public $photoUrl; public $providerId; + public $refreshToken; public $timeZone; public $verifiedProvider; @@ -1894,6 +2408,14 @@ public function getEmailVerified() { return $this->emailVerified; } + public function setExpiresIn($expiresIn) + { + $this->expiresIn = $expiresIn; + } + public function getExpiresIn() + { + return $this->expiresIn; + } public function setFederatedId($federatedId) { $this->federatedId = $federatedId; @@ -2030,6 +2552,14 @@ public function getOauthScope() { return $this->oauthScope; } + public function setOauthTokenSecret($oauthTokenSecret) + { + $this->oauthTokenSecret = $oauthTokenSecret; + } + public function getOauthTokenSecret() + { + return $this->oauthTokenSecret; + } public function setOriginalEmail($originalEmail) { $this->originalEmail = $originalEmail; @@ -2054,6 +2584,14 @@ public function getProviderId() { return $this->providerId; } + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + public function getRefreshToken() + { + return $this->refreshToken; + } public function setTimeZone($timeZone) { $this->timeZone = $timeZone; @@ -2076,10 +2614,20 @@ class Google_Service_IdentityToolkit_VerifyCustomTokenResponse extends Google_Mo { protected $internal_gapi_mappings = array( ); + public $expiresIn; public $idToken; public $kind; + public $refreshToken; + public function setExpiresIn($expiresIn) + { + $this->expiresIn = $expiresIn; + } + public function getExpiresIn() + { + return $this->expiresIn; + } public function setIdToken($idToken) { $this->idToken = $idToken; @@ -2096,6 +2644,14 @@ public function getKind() { return $this->kind; } + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + public function getRefreshToken() + { + return $this->refreshToken; + } } class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model @@ -2104,6 +2660,7 @@ class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model ); public $displayName; public $email; + public $expiresIn; public $idToken; public $kind; public $localId; @@ -2111,6 +2668,7 @@ class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model public $oauthAuthorizationCode; public $oauthExpireIn; public $photoUrl; + public $refreshToken; public $registered; @@ -2130,6 +2688,14 @@ public function getEmail() { return $this->email; } + public function setExpiresIn($expiresIn) + { + $this->expiresIn = $expiresIn; + } + public function getExpiresIn() + { + return $this->expiresIn; + } public function setIdToken($idToken) { $this->idToken = $idToken; @@ -2186,6 +2752,14 @@ public function getPhotoUrl() { return $this->photoUrl; } + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + public function getRefreshToken() + { + return $this->refreshToken; + } public function setRegistered($registered) { $this->registered = $registered; diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php index 429eb8d6e..839fd0970 100644 --- a/src/Google/Service/Replicapoolupdater.php +++ b/src/Google/Service/Replicapoolupdater.php @@ -19,8 +19,7 @@ * Service definition for Replicapoolupdater (v1beta1). * *

    - * The Google Compute Engine Instance Group Updater API provides services for - * updating groups of Compute Engine Instances.

    + * Updates groups of Compute Engine instances.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php index 9fc8c4a36..bf71e908b 100644 --- a/src/Google/Service/Reseller.php +++ b/src/Google/Service/Reseller.php @@ -19,7 +19,7 @@ * Service definition for Reseller (v1). * *

    - * Lets you create and manage your customers and their subscriptions.

    + * Creates and manages your customers and their subscriptions.

    * *

    * For more information about this service, see the API @@ -850,6 +850,7 @@ class Google_Service_Reseller_Subscription extends Google_Collection ); public $billingMethod; public $creationTime; + public $customerDomain; public $customerId; public $kind; protected $planType = 'Google_Service_Reseller_SubscriptionPlan'; @@ -886,6 +887,14 @@ public function getCreationTime() { return $this->creationTime; } + public function setCustomerDomain($customerDomain) + { + $this->customerDomain = $customerDomain; + } + public function getCustomerDomain() + { + return $this->customerDomain; + } public function setCustomerId($customerId) { $this->customerId = $customerId; diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php index 7f35904dc..7ea799084 100644 --- a/src/Google/Service/SQLAdmin.php +++ b/src/Google/Service/SQLAdmin.php @@ -854,8 +854,7 @@ class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource { /** - * Deletes a resource containing information about a database inside a Cloud SQL - * instance. (databases.delete) + * Deletes a database from a Cloud SQL instance. (databases.delete) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Database instance ID. This does not include the @@ -1002,8 +1001,8 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource { /** - * Creates a Cloud SQL instance as a clone of the source instance. - * (instances.cloneInstances) + * Creates a Cloud SQL instance as a clone of the source instance. The API is + * not ready for Second Generation instances yet. (instances.cloneInstances) * * @param string $project Project ID of the source as well as the clone Cloud * SQL instance. @@ -1957,9 +1956,10 @@ public function getValue() class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { - protected $collection_key = 'replicaNames'; + protected $collection_key = 'suspensionReason'; protected $internal_gapi_mappings = array( ); + public $backendType; public $currentDiskSize; public $databaseVersion; public $etag; @@ -1987,8 +1987,17 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection protected $settingsType = 'Google_Service_SQLAdmin_Settings'; protected $settingsDataType = ''; public $state; + public $suspensionReason; + public function setBackendType($backendType) + { + $this->backendType = $backendType; + } + public function getBackendType() + { + return $this->backendType; + } public function setCurrentDiskSize($currentDiskSize) { $this->currentDiskSize = $currentDiskSize; @@ -2157,6 +2166,14 @@ public function getState() { return $this->state; } + public function setSuspensionReason($suspensionReason) + { + $this->suspensionReason = $suspensionReason; + } + public function getSuspensionReason() + { + return $this->suspensionReason; + } } class Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica extends Google_Model diff --git a/src/Google/Service/Script.php b/src/Google/Service/Script.php index 96a77d419..61406feec 100644 --- a/src/Google/Service/Script.php +++ b/src/Google/Service/Script.php @@ -32,7 +32,7 @@ class Google_Service_Script extends Google_Service { /** View and manage your mail. */ const MAIL_GOOGLE_COM = - "https://mail.google.com"; + "https://mail.google.com/"; /** Manage your calendars. */ const WWW_GOOGLE_COM_CALENDAR_FEEDS = "https://www.google.com/calendar/feeds"; diff --git a/src/Google/Service/ServiceRegistry.php b/src/Google/Service/ServiceRegistry.php index 94282c05a..3d8732958 100644 --- a/src/Google/Service/ServiceRegistry.php +++ b/src/Google/Service/ServiceRegistry.php @@ -296,7 +296,8 @@ public function insert($project, Google_Service_ServiceRegistry_Endpoint $postBo * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, filter=name ne example-instance. + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can * also filter on nested fields. For example, you could filter on instances that @@ -307,12 +308,12 @@ public function insert($project, Google_Service_ServiceRegistry_Endpoint $postBo * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that - * Compute Engine should return. If the number of available results is larger - * than maxResults, Compute Engine returns a nextPageToken that can be used to - * get the next page of results in subsequent list requests. + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -412,7 +413,8 @@ public function get($project, $operation, $optParams = array()) * literal value is interpreted as a regular expression using RE2 syntax. The * literal value must match the entire field. * - * For example, filter=name ne example-instance. + * For example, to filter for instances that do not have a name of example- + * instance, you would use filter=name ne example-instance. * * Compute Engine Beta API Only: If you use filtering in the Beta API, you can * also filter on nested fields. For example, you could filter on instances that @@ -423,12 +425,12 @@ public function get($project, $operation, $optParams = array()) * The Beta API also supports filtering on multiple expressions by providing * each separate expression within parentheses. For example, * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match + * expressions are treated as AND expressions, meaning that resources must match * all expressions to pass the filters. * @opt_param string maxResults The maximum number of results per page that - * Compute Engine should return. If the number of available results is larger - * than maxResults, Compute Engine returns a nextPageToken that can be used to - * get the next page of results in subsequent list requests. + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. * @opt_param string orderBy Sorts list results by a certain order. By default, * results are returned in alphanumerical order based on the resource name. * @@ -556,11 +558,10 @@ public function getVisibility() class Google_Service_ServiceRegistry_EndpointEndpointVisibility extends Google_Collection { - protected $collection_key = 'projects'; + protected $collection_key = 'networks'; protected $internal_gapi_mappings = array( ); public $networks; - public $projects; public function setNetworks($networks) @@ -571,14 +572,6 @@ public function getNetworks() { return $this->networks; } - public function setProjects($projects) - { - $this->projects = $projects; - } - public function getProjects() - { - return $this->projects; - } } class Google_Service_ServiceRegistry_EndpointsListResponse extends Google_Collection diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php index cad7a6656..eda138867 100644 --- a/src/Google/Service/SiteVerification.php +++ b/src/Google/Service/SiteVerification.php @@ -19,7 +19,7 @@ * Service definition for SiteVerification (v1). * *

    - * Lets you programatically verify ownership of websites or domains with Google.

    + * Verifies ownership of websites or domains with Google.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php index d4462d4e8..c4a25b5cd 100644 --- a/src/Google/Service/Webfonts.php +++ b/src/Google/Service/Webfonts.php @@ -19,7 +19,9 @@ * Service definition for Webfonts (v1). * *

    - * The Google Fonts Developer API.

    + * Accesses the metadata for all families served by Google Fonts, providing a + * list of families currently available (including available styles and a list + * of supported script subsets).

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php index e23550fdc..46a1e2c38 100644 --- a/src/Google/Service/YouTube.php +++ b/src/Google/Service/YouTube.php @@ -6917,6 +6917,7 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model protected $internal_gapi_mappings = array( ); public $country; + public $customUrl; public $defaultLanguage; public $description; protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; @@ -6935,6 +6936,14 @@ public function getCountry() { return $this->country; } + public function setCustomUrl($customUrl) + { + $this->customUrl = $customUrl; + } + public function getCustomUrl() + { + return $this->customUrl; + } public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php index cec66ecd7..5ffcabd23 100644 --- a/src/Google/Service/YouTubeAnalytics.php +++ b/src/Google/Service/YouTubeAnalytics.php @@ -19,7 +19,7 @@ * Service definition for YouTubeAnalytics (v1). * *

    - * Retrieve your YouTube Analytics reports.

    + * Retrieves your YouTube Analytics reports.

    * *

    * For more information about this service, see the API diff --git a/src/Google/Service/YouTubeReporting.php b/src/Google/Service/YouTubeReporting.php index 3ff367e77..583af34f7 100644 --- a/src/Google/Service/YouTubeReporting.php +++ b/src/Google/Service/YouTubeReporting.php @@ -19,8 +19,8 @@ * Service definition for YouTubeReporting (v1). * *

    - * An API to schedule reporting jobs and download the resulting bulk data - * reports about YouTube channels, videos etc. in the form of CSV files.

    + * Schedules reporting jobs and downloads the resulting bulk data reports about + * YouTube channels, videos, etc. in the form of CSV files.

    * *

    * For more information about this service, see the API @@ -391,7 +391,7 @@ class Google_Service_YouTubeReporting_Media_Resource extends Google_Service_Reso * `/v1/media/{+name}?alt=media`. (media.download) * * @param string $resourceName Name of the media that is being downloaded. See - * [][ByteStream.ReadRequest.resource_name]. + * ByteStream.ReadRequest.resource_name. * @param array $optParams Optional parameters. * @return Google_Service_YouTubeReporting_Media */ From a595f4530c81f72a50a0780f309596b5424d29cc Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 14 Mar 2016 16:12:48 -0700 Subject: [PATCH 0961/1274] switches this library to pull in generated classes via composer --- composer.json | 1 + src/Google/Service/AdExchangeBuyer.php | 4910 ---- src/Google/Service/AdExchangeBuyerII.php | 770 - src/Google/Service/AdExchangeSeller.php | 1713 -- src/Google/Service/AdSense.php | 3586 --- src/Google/Service/AdSenseHost.php | 2166 -- src/Google/Service/Admin.php | 194 - src/Google/Service/Analytics.php | 9943 -------- src/Google/Service/AndroidEnterprise.php | 3810 --- src/Google/Service/AndroidPublisher.php | 3873 --- src/Google/Service/AppState.php | 369 - src/Google/Service/Appengine.php | 2217 -- src/Google/Service/Appsactivity.php | 588 - src/Google/Service/Audit.php | 416 - src/Google/Service/Autoscaler.php | 1401 -- src/Google/Service/Bigquery.php | 3929 --- src/Google/Service/Blogger.php | 3330 --- src/Google/Service/Books.php | 7574 ------ src/Google/Service/Calendar.php | 3858 --- src/Google/Service/CivicInfo.php | 1642 -- src/Google/Service/Classroom.php | 1533 -- src/Google/Service/CloudMonitoring.php | 1163 - src/Google/Service/CloudUserAccounts.php | 2405 -- src/Google/Service/Cloudbilling.php | 446 - src/Google/Service/Cloudbuild.php | 740 - src/Google/Service/Clouddebugger.php | 1450 -- src/Google/Service/Cloudlatencytest.php | 295 - src/Google/Service/Cloudresourcemanager.php | 611 - src/Google/Service/Cloudsearch.php | 53 - src/Google/Service/Cloudtrace.php | 398 - src/Google/Service/Compute.php | 19396 --------------- src/Google/Service/Computeaccounts.php | 1689 -- src/Google/Service/Container.php | 913 - src/Google/Service/Coordinate.php | 1570 -- src/Google/Service/Customsearch.php | 1265 - src/Google/Service/DataTransfer.php | 554 - src/Google/Service/Dataflow.php | 4014 --- src/Google/Service/Dataproc.php | 2458 -- src/Google/Service/Datastore.php | 1521 -- src/Google/Service/DeploymentManager.php | 2182 -- src/Google/Service/Dfareporting.php | 21522 ----------------- src/Google/Service/Directory.php | 7525 ------ src/Google/Service/Dns.php | 926 - src/Google/Service/DoubleClickBidManager.php | 1234 - src/Google/Service/Doubleclicksearch.php | 1539 -- src/Google/Service/Drive.php | 3305 --- src/Google/Service/Fitness.php | 1568 -- src/Google/Service/Freebase.php | 453 - src/Google/Service/Fusiontables.php | 2485 -- src/Google/Service/Games.php | 7503 ------ src/Google/Service/GamesConfiguration.php | 1068 - src/Google/Service/GamesManagement.php | 1413 -- src/Google/Service/Genomics.php | 4310 ---- src/Google/Service/Gmail.php | 2265 -- src/Google/Service/GroupsMigration.php | 130 - src/Google/Service/Groupssettings.php | 415 - src/Google/Service/Iam.php | 1105 - src/Google/Service/IdentityToolkit.php | 2771 --- src/Google/Service/Kgsearch.php | 178 - src/Google/Service/Licensing.php | 479 - src/Google/Service/Logging.php | 1651 -- src/Google/Service/Manager.php | 1845 -- src/Google/Service/MapsEngine.php | 6421 ----- src/Google/Service/Mirror.php | 1932 -- src/Google/Service/Oauth2.php | 503 - src/Google/Service/Pagespeedonline.php | 830 - src/Google/Service/Partners.php | 1606 -- src/Google/Service/People.php | 2004 -- src/Google/Service/Playmoviespartner.php | 1676 -- src/Google/Service/Plus.php | 2896 --- src/Google/Service/PlusDomains.php | 3929 --- src/Google/Service/Prediction.php | 1208 - src/Google/Service/Proximitybeacon.php | 1204 - src/Google/Service/Pubsub.php | 1257 - src/Google/Service/QPXExpress.php | 1538 -- src/Google/Service/Replicapool.php | 1313 - src/Google/Service/Replicapoolupdater.php | 1354 -- src/Google/Service/Reports.php | 1128 - src/Google/Service/Reseller.php | 1153 - src/Google/Service/Resourceviews.php | 1341 - src/Google/Service/SQLAdmin.php | 3841 --- src/Google/Service/Script.php | 356 - src/Google/Service/ServiceRegistry.php | 966 - src/Google/Service/ShoppingContent.php | 9408 ------- src/Google/Service/SiteVerification.php | 405 - src/Google/Service/Spectrum.php | 1752 -- src/Google/Service/Storage.php | 3378 --- src/Google/Service/Storagetransfer.php | 1463 -- src/Google/Service/TagManager.php | 3891 --- src/Google/Service/Taskqueue.php | 690 - src/Google/Service/Tasks.php | 908 - src/Google/Service/Translate.php | 369 - src/Google/Service/Urlshortener.php | 427 - src/Google/Service/Vision.php | 1007 - src/Google/Service/Webfonts.php | 214 - src/Google/Service/Webmasters.php | 1201 - src/Google/Service/YouTube.php | 14400 ----------- src/Google/Service/YouTubeAnalytics.php | 1213 - src/Google/Service/YouTubeReporting.php | 680 - tests/Google/ModelTest.php | 13 +- 100 files changed, 7 insertions(+), 246504 deletions(-) delete mode 100644 src/Google/Service/AdExchangeBuyer.php delete mode 100644 src/Google/Service/AdExchangeBuyerII.php delete mode 100644 src/Google/Service/AdExchangeSeller.php delete mode 100644 src/Google/Service/AdSense.php delete mode 100644 src/Google/Service/AdSenseHost.php delete mode 100644 src/Google/Service/Admin.php delete mode 100644 src/Google/Service/Analytics.php delete mode 100644 src/Google/Service/AndroidEnterprise.php delete mode 100644 src/Google/Service/AndroidPublisher.php delete mode 100644 src/Google/Service/AppState.php delete mode 100644 src/Google/Service/Appengine.php delete mode 100644 src/Google/Service/Appsactivity.php delete mode 100644 src/Google/Service/Audit.php delete mode 100644 src/Google/Service/Autoscaler.php delete mode 100644 src/Google/Service/Bigquery.php delete mode 100644 src/Google/Service/Blogger.php delete mode 100644 src/Google/Service/Books.php delete mode 100644 src/Google/Service/Calendar.php delete mode 100644 src/Google/Service/CivicInfo.php delete mode 100644 src/Google/Service/Classroom.php delete mode 100644 src/Google/Service/CloudMonitoring.php delete mode 100644 src/Google/Service/CloudUserAccounts.php delete mode 100644 src/Google/Service/Cloudbilling.php delete mode 100644 src/Google/Service/Cloudbuild.php delete mode 100644 src/Google/Service/Clouddebugger.php delete mode 100644 src/Google/Service/Cloudlatencytest.php delete mode 100644 src/Google/Service/Cloudresourcemanager.php delete mode 100644 src/Google/Service/Cloudsearch.php delete mode 100644 src/Google/Service/Cloudtrace.php delete mode 100644 src/Google/Service/Compute.php delete mode 100644 src/Google/Service/Computeaccounts.php delete mode 100644 src/Google/Service/Container.php delete mode 100644 src/Google/Service/Coordinate.php delete mode 100644 src/Google/Service/Customsearch.php delete mode 100644 src/Google/Service/DataTransfer.php delete mode 100644 src/Google/Service/Dataflow.php delete mode 100644 src/Google/Service/Dataproc.php delete mode 100644 src/Google/Service/Datastore.php delete mode 100644 src/Google/Service/DeploymentManager.php delete mode 100644 src/Google/Service/Dfareporting.php delete mode 100644 src/Google/Service/Directory.php delete mode 100644 src/Google/Service/Dns.php delete mode 100644 src/Google/Service/DoubleClickBidManager.php delete mode 100644 src/Google/Service/Doubleclicksearch.php delete mode 100644 src/Google/Service/Drive.php delete mode 100644 src/Google/Service/Fitness.php delete mode 100644 src/Google/Service/Freebase.php delete mode 100644 src/Google/Service/Fusiontables.php delete mode 100644 src/Google/Service/Games.php delete mode 100644 src/Google/Service/GamesConfiguration.php delete mode 100644 src/Google/Service/GamesManagement.php delete mode 100644 src/Google/Service/Genomics.php delete mode 100644 src/Google/Service/Gmail.php delete mode 100644 src/Google/Service/GroupsMigration.php delete mode 100644 src/Google/Service/Groupssettings.php delete mode 100644 src/Google/Service/Iam.php delete mode 100644 src/Google/Service/IdentityToolkit.php delete mode 100644 src/Google/Service/Kgsearch.php delete mode 100644 src/Google/Service/Licensing.php delete mode 100644 src/Google/Service/Logging.php delete mode 100644 src/Google/Service/Manager.php delete mode 100644 src/Google/Service/MapsEngine.php delete mode 100644 src/Google/Service/Mirror.php delete mode 100644 src/Google/Service/Oauth2.php delete mode 100644 src/Google/Service/Pagespeedonline.php delete mode 100644 src/Google/Service/Partners.php delete mode 100644 src/Google/Service/People.php delete mode 100644 src/Google/Service/Playmoviespartner.php delete mode 100644 src/Google/Service/Plus.php delete mode 100644 src/Google/Service/PlusDomains.php delete mode 100644 src/Google/Service/Prediction.php delete mode 100644 src/Google/Service/Proximitybeacon.php delete mode 100644 src/Google/Service/Pubsub.php delete mode 100644 src/Google/Service/QPXExpress.php delete mode 100644 src/Google/Service/Replicapool.php delete mode 100644 src/Google/Service/Replicapoolupdater.php delete mode 100644 src/Google/Service/Reports.php delete mode 100644 src/Google/Service/Reseller.php delete mode 100644 src/Google/Service/Resourceviews.php delete mode 100644 src/Google/Service/SQLAdmin.php delete mode 100644 src/Google/Service/Script.php delete mode 100644 src/Google/Service/ServiceRegistry.php delete mode 100644 src/Google/Service/ShoppingContent.php delete mode 100644 src/Google/Service/SiteVerification.php delete mode 100644 src/Google/Service/Spectrum.php delete mode 100644 src/Google/Service/Storage.php delete mode 100644 src/Google/Service/Storagetransfer.php delete mode 100644 src/Google/Service/TagManager.php delete mode 100644 src/Google/Service/Taskqueue.php delete mode 100644 src/Google/Service/Tasks.php delete mode 100644 src/Google/Service/Translate.php delete mode 100644 src/Google/Service/Urlshortener.php delete mode 100644 src/Google/Service/Vision.php delete mode 100644 src/Google/Service/Webfonts.php delete mode 100644 src/Google/Service/Webmasters.php delete mode 100644 src/Google/Service/YouTube.php delete mode 100644 src/Google/Service/YouTubeAnalytics.php delete mode 100644 src/Google/Service/YouTubeReporting.php diff --git a/composer.json b/composer.json index 2d608e1b0..000b3f358 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "0.7", + "google/apiclient-services": "*@dev", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", diff --git a/src/Google/Service/AdExchangeBuyer.php b/src/Google/Service/AdExchangeBuyer.php deleted file mode 100644 index b8b983b81..000000000 --- a/src/Google/Service/AdExchangeBuyer.php +++ /dev/null @@ -1,4910 +0,0 @@ - - * Accesses your bidding-account information, submits creatives for validation, - * finds available direct deals, and retrieves performance reports.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AdExchangeBuyer extends Google_Service -{ - /** Manage your Ad Exchange buyer account configuration. */ - const ADEXCHANGE_BUYER = - "https://www.googleapis.com/auth/adexchange.buyer"; - - public $accounts; - public $billingInfo; - public $budget; - public $creatives; - public $marketplacedeals; - public $marketplacenotes; - public $performanceReport; - public $pretargetingConfig; - public $products; - public $proposals; - public $pubprofiles; - - - /** - * Constructs the internal representation of the AdExchangeBuyer service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'adexchangebuyer/v1.4/'; - $this->version = 'v1.4'; - $this->serviceName = 'adexchangebuyer'; - - $this->accounts = new Google_Service_AdExchangeBuyer_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->billingInfo = new Google_Service_AdExchangeBuyer_BillingInfo_Resource( - $this, - $this->serviceName, - 'billingInfo', - array( - 'methods' => array( - 'get' => array( - 'path' => 'billinginfo/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'billinginfo', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->budget = new Google_Service_AdExchangeBuyer_Budget_Resource( - $this, - $this->serviceName, - 'budget', - array( - 'methods' => array( - 'get' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'billinginfo/{accountId}/{billingId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'billingId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( - $this, - $this->serviceName, - 'creatives', - array( - 'methods' => array( - 'addDeal' => array( - 'path' => 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'buyerCreativeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dealId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'creatives/{accountId}/{buyerCreativeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'buyerCreativeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'creatives', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'creatives', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'query', - 'type' => 'integer', - 'repeated' => true, - ), - 'buyerCreativeId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'dealsStatusFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'openAuctionStatusFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeDeal' => array( - 'path' => 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'buyerCreativeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dealId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->marketplacedeals = new Google_Service_AdExchangeBuyer_Marketplacedeals_Resource( - $this, - $this->serviceName, - 'marketplacedeals', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'proposals/{proposalId}/deals/delete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'proposals/{proposalId}/deals/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'proposals/{proposalId}/deals', - 'httpMethod' => 'GET', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'proposals/{proposalId}/deals/update', - 'httpMethod' => 'POST', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->marketplacenotes = new Google_Service_AdExchangeBuyer_Marketplacenotes_Resource( - $this, - $this->serviceName, - 'marketplacenotes', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'proposals/{proposalId}/notes/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'proposals/{proposalId}/notes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( - $this, - $this->serviceName, - 'performanceReport', - array( - 'methods' => array( - 'list' => array( - 'path' => 'performancereport', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDateTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'startDateTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( - $this, - $this->serviceName, - 'pretargetingConfig', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->products = new Google_Service_AdExchangeBuyer_Products_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'get' => array( - 'path' => 'products/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'products/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pqlQuery' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->proposals = new Google_Service_AdExchangeBuyer_Proposals_Resource( - $this, - $this->serviceName, - 'proposals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'proposals/{proposalId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'proposals/insert', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionNumber' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateAction' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'proposals/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pqlQuery' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setupcomplete' => array( - 'path' => 'proposals/{proposalId}/setupcomplete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'proposalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionNumber' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateAction' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->pubprofiles = new Google_Service_AdExchangeBuyer_Pubprofiles_Resource( - $this, - $this->serviceName, - 'pubprofiles', - array( - 'methods' => array( - 'list' => array( - 'path' => 'publisher/{accountId}/profiles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); - } - - /** - * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_AccountsList - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList"); - } - - /** - * Updates an existing account. This method supports patch semantics. - * (accounts.patch) - * - * @param int $id The account id - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Account - */ - public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account"); - } - - /** - * Updates an existing account. (accounts.update) - * - * @param int $id The account id - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Account - */ - public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account"); - } -} - -/** - * The "billingInfo" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $billingInfo = $adexchangebuyerService->billingInfo; - * - */ -class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service_Resource -{ - - /** - * Returns the billing information for one account specified by account ID. - * (billingInfo.get) - * - * @param int $accountId The account id. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_BillingInfo - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo"); - } - - /** - * Retrieves a list of billing information for all accounts of the authenticated - * user. (billingInfo.listBillingInfo) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_BillingInfoList - */ - public function listBillingInfo($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList"); - } -} - -/** - * The "budget" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $budget = $adexchangebuyerService->budget; - * - */ -class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource -{ - - /** - * Returns the budget information for the adgroup specified by the accountId and - * billingId. (budget.get) - * - * @param string $accountId The account id to get the budget information for. - * @param string $billingId The billing id to get the budget information for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function get($accountId, $billingId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } - - /** - * Updates the budget amount for the budget of the adgroup specified by the - * accountId and billingId, with the budget amount in the request. This method - * supports patch semantics. (budget.patch) - * - * @param string $accountId The account id associated with the budget being - * updated. - * @param string $billingId The billing id associated with the budget being - * updated. - * @param Google_Budget $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } - - /** - * Updates the budget amount for the budget of the adgroup specified by the - * accountId and billingId, with the budget amount in the request. - * (budget.update) - * - * @param string $accountId The account id associated with the budget being - * updated. - * @param string $billingId The billing id associated with the budget being - * updated. - * @param Google_Budget $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Budget - */ - public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget"); - } -} - -/** - * The "creatives" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $creatives = $adexchangebuyerService->creatives; - * - */ -class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource -{ - - /** - * Add a deal id association for the creative. (creatives.addDeal) - * - * @param int $accountId The id for the account that will serve this creative. - * @param string $buyerCreativeId The buyer-specific id for this creative. - * @param string $dealId The id of the deal id to associate with this creative. - * @param array $optParams Optional parameters. - */ - public function addDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); - $params = array_merge($params, $optParams); - return $this->call('addDeal', array($params)); - } - - /** - * Gets the status for a single creative. A creative will be available 30-40 - * minutes after submission. (creatives.get) - * - * @param int $accountId The id for the account that will serve this creative. - * @param string $buyerCreativeId The buyer-specific id for this creative. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Creative - */ - public function get($accountId, $buyerCreativeId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); - } - - /** - * Submit a new creative. (creatives.insert) - * - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Creative - */ - public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); - } - - /** - * Retrieves a list of the authenticated user's active creatives. A creative - * will be available 30-40 minutes after submission. (creatives.listCreatives) - * - * @param array $optParams Optional parameters. - * - * @opt_param int accountId When specified, only creatives for the given account - * ids are returned. - * @opt_param string buyerCreativeId When specified, only creatives for the - * given buyer creative ids are returned. - * @opt_param string dealsStatusFilter When specified, only creatives having the - * given deals status are returned. - * @opt_param string maxResults Maximum number of entries returned on one result - * page. If not set, the default is 100. Optional. - * @opt_param string openAuctionStatusFilter When specified, only creatives - * having the given open auction 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. - * @return Google_Service_AdExchangeBuyer_CreativesList - */ - public function listCreatives($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList"); - } - - /** - * Remove a deal id associated with the creative. (creatives.removeDeal) - * - * @param int $accountId The id for the account that will serve this creative. - * @param string $buyerCreativeId The buyer-specific id for this creative. - * @param string $dealId The id of the deal id to disassociate with this - * creative. - * @param array $optParams Optional parameters. - */ - public function removeDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); - $params = array_merge($params, $optParams); - return $this->call('removeDeal', array($params)); - } -} - -/** - * The "marketplacedeals" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $marketplacedeals = $adexchangebuyerService->marketplacedeals; - * - */ -class Google_Service_AdExchangeBuyer_Marketplacedeals_Resource extends Google_Service_Resource -{ - - /** - * Delete the specified deals from the proposal (marketplacedeals.delete) - * - * @param string $proposalId The proposalId to delete deals from. - * @param Google_DeleteOrderDealsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse - */ - public function delete($proposalId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse"); - } - - /** - * Add new deals for the specified proposal (marketplacedeals.insert) - * - * @param string $proposalId proposalId for which deals need to be added. - * @param Google_AddOrderDealsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse - */ - public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse"); - } - - /** - * List all the deals for a given proposal - * (marketplacedeals.listMarketplacedeals) - * - * @param string $proposalId The proposalId to get deals for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse - */ - public function listMarketplacedeals($proposalId, $optParams = array()) - { - $params = array('proposalId' => $proposalId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse"); - } - - /** - * Replaces all the deals in the proposal with the passed in deals - * (marketplacedeals.update) - * - * @param string $proposalId The proposalId to edit deals on. - * @param Google_EditAllOrderDealsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse - */ - public function update($proposalId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse"); - } -} - -/** - * The "marketplacenotes" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $marketplacenotes = $adexchangebuyerService->marketplacenotes; - * - */ -class Google_Service_AdExchangeBuyer_Marketplacenotes_Resource extends Google_Service_Resource -{ - - /** - * Add notes to the proposal (marketplacenotes.insert) - * - * @param string $proposalId The proposalId to add notes for. - * @param Google_AddOrderNotesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_AddOrderNotesResponse - */ - public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderNotesResponse"); - } - - /** - * Get all the notes associated with a proposal - * (marketplacenotes.listMarketplacenotes) - * - * @param string $proposalId The proposalId to get notes for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_GetOrderNotesResponse - */ - public function listMarketplacenotes($proposalId, $optParams = array()) - { - $params = array('proposalId' => $proposalId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderNotesResponse"); - } -} - -/** - * The "performanceReport" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $performanceReport = $adexchangebuyerService->performanceReport; - * - */ -class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the authenticated user's list of performance metrics. - * (performanceReport.listPerformanceReport) - * - * @param string $accountId The account id to get the reports. - * @param string $endDateTime The end time of the report in ISO 8601 timestamp - * format using UTC. - * @param string $startDateTime The start time of the report in ISO 8601 - * timestamp format using UTC. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 - * performance reports. To retrieve the next page, set this parameter to the - * value of "nextPageToken" from the previous response. Optional. - * @return Google_Service_AdExchangeBuyer_PerformanceReportList - */ - public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) - { - $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList"); - } -} - -/** - * The "pretargetingConfig" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; - * - */ -class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing pretargeting config. (pretargetingConfig.delete) - * - * @param string $accountId The account id to delete the pretargeting config - * for. - * @param string $configId The specific id of the configuration to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a specific pretargeting configuration (pretargetingConfig.get) - * - * @param string $accountId The account id to get the pretargeting config for. - * @param string $configId The specific id of the configuration to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function get($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - - /** - * Inserts a new pretargeting configuration. (pretargetingConfig.insert) - * - * @param string $accountId The account id to insert the pretargeting config - * for. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - - /** - * Retrieves a list of the authenticated user's pretargeting configurations. - * (pretargetingConfig.listPretargetingConfig) - * - * @param string $accountId The account id to get the pretargeting configs for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfigList - */ - public function listPretargetingConfig($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); - } - - /** - * Updates an existing pretargeting config. This method supports patch - * semantics. (pretargetingConfig.patch) - * - * @param string $accountId The account id to update the pretargeting config - * for. - * @param string $configId The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - - /** - * Updates an existing pretargeting config. (pretargetingConfig.update) - * - * @param string $accountId The account id to update the pretargeting config - * for. - * @param string $configId The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } -} - -/** - * The "products" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $products = $adexchangebuyerService->products; - * - */ -class Google_Service_AdExchangeBuyer_Products_Resource extends Google_Service_Resource -{ - - /** - * Gets the requested product by id. (products.get) - * - * @param string $productId The id for the product to get the head revision for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Product - */ - public function get($productId, $optParams = array()) - { - $params = array('productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Product"); - } - - /** - * Gets the requested product. (products.search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pqlQuery The pql query used to query for products. - * @return Google_Service_AdExchangeBuyer_GetOffersResponse - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse"); - } -} - -/** - * The "proposals" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $proposals = $adexchangebuyerService->proposals; - * - */ -class Google_Service_AdExchangeBuyer_Proposals_Resource extends Google_Service_Resource -{ - - /** - * Get a proposal given its id (proposals.get) - * - * @param string $proposalId Id of the proposal to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Proposal - */ - public function get($proposalId, $optParams = array()) - { - $params = array('proposalId' => $proposalId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Proposal"); - } - - /** - * Create the given list of proposals (proposals.insert) - * - * @param Google_CreateOrdersRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_CreateOrdersResponse - */ - public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse"); - } - - /** - * Update the given proposal. This method supports patch semantics. - * (proposals.patch) - * - * @param string $proposalId The proposal id to update. - * @param string $revisionNumber The last known revision number to update. If - * the head revision in the marketplace database has since changed, an error - * will be thrown. The caller should then fetch the latest proposal at head - * revision and retry the update at that revision. - * @param string $updateAction The proposed action to take on the proposal. - * @param Google_Proposal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Proposal - */ - public function patch($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Proposal"); - } - - /** - * Search for proposals using pql query (proposals.search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pqlQuery Query string to retrieve specific proposals. - * @return Google_Service_AdExchangeBuyer_GetOrdersResponse - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse"); - } - - /** - * Update the given proposal to indicate that setup has been completed. - * (proposals.setupcomplete) - * - * @param string $proposalId The proposal id for which the setup is complete - * @param array $optParams Optional parameters. - */ - public function setupcomplete($proposalId, $optParams = array()) - { - $params = array('proposalId' => $proposalId); - $params = array_merge($params, $optParams); - return $this->call('setupcomplete', array($params)); - } - - /** - * Update the given proposal (proposals.update) - * - * @param string $proposalId The proposal id to update. - * @param string $revisionNumber The last known revision number to update. If - * the head revision in the marketplace database has since changed, an error - * will be thrown. The caller should then fetch the latest proposal at head - * revision and retry the update at that revision. - * @param string $updateAction The proposed action to take on the proposal. - * @param Google_Proposal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Proposal - */ - public function update($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array()) - { - $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Proposal"); - } -} - -/** - * The "pubprofiles" collection of methods. - * Typical usage is: - * - * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); - * $pubprofiles = $adexchangebuyerService->pubprofiles; - * - */ -class Google_Service_AdExchangeBuyer_Pubprofiles_Resource extends Google_Service_Resource -{ - - /** - * Gets the requested publisher profile(s) by publisher accountId. - * (pubprofiles.listPubprofiles) - * - * @param int $accountId The accountId of the publisher to get profiles for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse - */ - public function listPubprofiles($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse"); - } -} - - - - -class Google_Service_AdExchangeBuyer_Account extends Google_Collection -{ - protected $collection_key = 'bidderLocation'; - protected $internal_gapi_mappings = array( - ); - protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation'; - protected $bidderLocationDataType = 'array'; - public $cookieMatchingNid; - public $cookieMatchingUrl; - public $id; - public $kind; - public $maximumActiveCreatives; - public $maximumTotalQps; - public $numberActiveCreatives; - - - 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 setMaximumActiveCreatives($maximumActiveCreatives) - { - $this->maximumActiveCreatives = $maximumActiveCreatives; - } - public function getMaximumActiveCreatives() - { - return $this->maximumActiveCreatives; - } - public function setMaximumTotalQps($maximumTotalQps) - { - $this->maximumTotalQps = $maximumTotalQps; - } - public function getMaximumTotalQps() - { - return $this->maximumTotalQps; - } - public function setNumberActiveCreatives($numberActiveCreatives) - { - $this->numberActiveCreatives = $numberActiveCreatives; - } - public function getNumberActiveCreatives() - { - return $this->numberActiveCreatives; - } -} - -class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bidProtocol; - public $maximumQps; - public $region; - public $url; - - - public function setBidProtocol($bidProtocol) - { - $this->bidProtocol = $bidProtocol; - } - public function getBidProtocol() - { - return $this->bidProtocol; - } - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_Account'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - public $proposalRevisionNumber; - public $updateAction; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } - public function setUpdateAction($updateAction) - { - $this->updateAction = $updateAction; - } - public function getUpdateAction() - { - return $this->updateAction; - } -} - -class Google_Service_AdExchangeBuyer_AddOrderDealsResponse extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - public $proposalRevisionNumber; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } -} - -class Google_Service_AdExchangeBuyer_AddOrderNotesRequest extends Google_Collection -{ - protected $collection_key = 'notes'; - protected $internal_gapi_mappings = array( - ); - protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; - protected $notesDataType = 'array'; - - - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } -} - -class Google_Service_AdExchangeBuyer_AddOrderNotesResponse extends Google_Collection -{ - protected $collection_key = 'notes'; - protected $internal_gapi_mappings = array( - ); - protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; - protected $notesDataType = 'array'; - - - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } -} - -class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection -{ - protected $collection_key = 'billingId'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $accountName; - public $billingId; - public $kind; - - - 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 setBillingId($billingId) - { - $this->billingId = $billingId; - } - public function getBillingId() - { - return $this->billingId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeBuyer_Budget extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $billingId; - public $budgetAmount; - public $currencyCode; - public $id; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBillingId($billingId) - { - $this->billingId = $billingId; - } - public function getBillingId() - { - return $this->billingId; - } - public function setBudgetAmount($budgetAmount) - { - $this->budgetAmount = $budgetAmount; - } - public function getBudgetAmount() - { - return $this->budgetAmount; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - 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_AdExchangeBuyer_Buyer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } -} - -class Google_Service_AdExchangeBuyer_ContactInformation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $name; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_AdExchangeBuyer_CreateOrdersRequest extends Google_Collection -{ - protected $collection_key = 'proposals'; - protected $internal_gapi_mappings = array( - ); - protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; - protected $proposalsDataType = 'array'; - public $webPropertyCode; - - - public function setProposals($proposals) - { - $this->proposals = $proposals; - } - public function getProposals() - { - return $this->proposals; - } - public function setWebPropertyCode($webPropertyCode) - { - $this->webPropertyCode = $webPropertyCode; - } - public function getWebPropertyCode() - { - return $this->webPropertyCode; - } -} - -class Google_Service_AdExchangeBuyer_CreateOrdersResponse extends Google_Collection -{ - protected $collection_key = 'proposals'; - protected $internal_gapi_mappings = array( - ); - protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; - protected $proposalsDataType = 'array'; - - - public function setProposals($proposals) - { - $this->proposals = $proposals; - } - public function getProposals() - { - return $this->proposals; - } -} - -class Google_Service_AdExchangeBuyer_Creative extends Google_Collection -{ - protected $collection_key = 'vendorType'; - protected $internal_gapi_mappings = array( - "hTMLSnippet" => "HTMLSnippet", - ); - public $hTMLSnippet; - public $accountId; - public $advertiserId; - public $advertiserName; - public $agencyId; - public $apiUploadTimestamp; - public $attribute; - public $buyerCreativeId; - public $clickThroughUrl; - protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections'; - protected $correctionsDataType = 'array'; - public $dealsStatus; - protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons'; - protected $filteringReasonsDataType = ''; - public $height; - public $impressionTrackingUrl; - public $kind; - protected $nativeAdType = 'Google_Service_AdExchangeBuyer_CreativeNativeAd'; - protected $nativeAdDataType = ''; - public $openAuctionStatus; - public $productCategories; - public $restrictedCategories; - public $sensitiveCategories; - protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictions'; - protected $servingRestrictionsDataType = 'array'; - public $vendorType; - public $version; - 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 setApiUploadTimestamp($apiUploadTimestamp) - { - $this->apiUploadTimestamp = $apiUploadTimestamp; - } - public function getApiUploadTimestamp() - { - return $this->apiUploadTimestamp; - } - 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 setCorrections($corrections) - { - $this->corrections = $corrections; - } - public function getCorrections() - { - return $this->corrections; - } - public function setDealsStatus($dealsStatus) - { - $this->dealsStatus = $dealsStatus; - } - public function getDealsStatus() - { - return $this->dealsStatus; - } - public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) - { - $this->filteringReasons = $filteringReasons; - } - public function getFilteringReasons() - { - return $this->filteringReasons; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setImpressionTrackingUrl($impressionTrackingUrl) - { - $this->impressionTrackingUrl = $impressionTrackingUrl; - } - public function getImpressionTrackingUrl() - { - return $this->impressionTrackingUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNativeAd(Google_Service_AdExchangeBuyer_CreativeNativeAd $nativeAd) - { - $this->nativeAd = $nativeAd; - } - public function getNativeAd() - { - return $this->nativeAd; - } - public function setOpenAuctionStatus($openAuctionStatus) - { - $this->openAuctionStatus = $openAuctionStatus; - } - public function getOpenAuctionStatus() - { - return $this->openAuctionStatus; - } - public function setProductCategories($productCategories) - { - $this->productCategories = $productCategories; - } - public function getProductCategories() - { - return $this->productCategories; - } - public function setRestrictedCategories($restrictedCategories) - { - $this->restrictedCategories = $restrictedCategories; - } - public function getRestrictedCategories() - { - return $this->restrictedCategories; - } - public function setSensitiveCategories($sensitiveCategories) - { - $this->sensitiveCategories = $sensitiveCategories; - } - public function getSensitiveCategories() - { - return $this->sensitiveCategories; - } - public function setServingRestrictions($servingRestrictions) - { - $this->servingRestrictions = $servingRestrictions; - } - public function getServingRestrictions() - { - return $this->servingRestrictions; - } - public function setVendorType($vendorType) - { - $this->vendorType = $vendorType; - } - public function getVendorType() - { - return $this->vendorType; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - 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_CreativeCorrections extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - 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_CreativeFilteringReasons extends Google_Collection -{ - protected $collection_key = 'reasons'; - protected $internal_gapi_mappings = array( - ); - public $date; - protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; - protected $reasonsDataType = 'array'; - - - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setReasons($reasons) - { - $this->reasons = $reasons; - } - public function getReasons() - { - return $this->reasons; - } -} - -class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $filteringCount; - public $filteringStatus; - - - public function setFilteringCount($filteringCount) - { - $this->filteringCount = $filteringCount; - } - public function getFilteringCount() - { - return $this->filteringCount; - } - public function setFilteringStatus($filteringStatus) - { - $this->filteringStatus = $filteringStatus; - } - public function getFilteringStatus() - { - return $this->filteringStatus; - } -} - -class Google_Service_AdExchangeBuyer_CreativeNativeAd extends Google_Collection -{ - protected $collection_key = 'impressionTrackingUrl'; - protected $internal_gapi_mappings = array( - ); - public $advertiser; - protected $appIconType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon'; - protected $appIconDataType = ''; - public $body; - public $callToAction; - public $clickTrackingUrl; - public $headline; - protected $imageType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdImage'; - protected $imageDataType = ''; - public $impressionTrackingUrl; - protected $logoType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdLogo'; - protected $logoDataType = ''; - public $price; - public $starRating; - public $store; - - - public function setAdvertiser($advertiser) - { - $this->advertiser = $advertiser; - } - public function getAdvertiser() - { - return $this->advertiser; - } - public function setAppIcon(Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon $appIcon) - { - $this->appIcon = $appIcon; - } - public function getAppIcon() - { - return $this->appIcon; - } - public function setBody($body) - { - $this->body = $body; - } - public function getBody() - { - return $this->body; - } - public function setCallToAction($callToAction) - { - $this->callToAction = $callToAction; - } - public function getCallToAction() - { - return $this->callToAction; - } - public function setClickTrackingUrl($clickTrackingUrl) - { - $this->clickTrackingUrl = $clickTrackingUrl; - } - public function getClickTrackingUrl() - { - return $this->clickTrackingUrl; - } - public function setHeadline($headline) - { - $this->headline = $headline; - } - public function getHeadline() - { - return $this->headline; - } - public function setImage(Google_Service_AdExchangeBuyer_CreativeNativeAdImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setImpressionTrackingUrl($impressionTrackingUrl) - { - $this->impressionTrackingUrl = $impressionTrackingUrl; - } - public function getImpressionTrackingUrl() - { - return $this->impressionTrackingUrl; - } - public function setLogo(Google_Service_AdExchangeBuyer_CreativeNativeAdLogo $logo) - { - $this->logo = $logo; - } - public function getLogo() - { - return $this->logo; - } - public function setPrice($price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setStarRating($starRating) - { - $this->starRating = $starRating; - } - public function getStarRating() - { - return $this->starRating; - } - public function setStore($store) - { - $this->store = $store; - } - public function getStore() - { - return $this->store; - } -} - -class Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AdExchangeBuyer_CreativeNativeAdImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AdExchangeBuyer_CreativeNativeAdLogo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AdExchangeBuyer_CreativeServingRestrictions extends Google_Collection -{ - protected $collection_key = 'disapprovalReasons'; - protected $internal_gapi_mappings = array( - ); - protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts'; - protected $contextsDataType = 'array'; - protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons'; - protected $disapprovalReasonsDataType = 'array'; - public $reason; - - - public function setContexts($contexts) - { - $this->contexts = $contexts; - } - public function getContexts() - { - return $this->contexts; - } - public function setDisapprovalReasons($disapprovalReasons) - { - $this->disapprovalReasons = $disapprovalReasons; - } - public function getDisapprovalReasons() - { - return $this->disapprovalReasons; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts extends Google_Collection -{ - protected $collection_key = 'platform'; - protected $internal_gapi_mappings = array( - ); - public $auctionType; - public $contextType; - public $geoCriteriaId; - public $platform; - - - public function setAuctionType($auctionType) - { - $this->auctionType = $auctionType; - } - public function getAuctionType() - { - return $this->auctionType; - } - public function setContextType($contextType) - { - $this->contextType = $contextType; - } - public function getContextType() - { - return $this->contextType; - } - public function setGeoCriteriaId($geoCriteriaId) - { - $this->geoCriteriaId = $geoCriteriaId; - } - public function getGeoCriteriaId() - { - return $this->geoCriteriaId; - } - public function setPlatform($platform) - { - $this->platform = $platform; - } - public function getPlatform() - { - return $this->platform; - } -} - -class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_AdExchangeBuyer_DealServingMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dealPauseStatusType = 'Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus'; - protected $dealPauseStatusDataType = ''; - - - public function setDealPauseStatus(Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus $dealPauseStatus) - { - $this->dealPauseStatus = $dealPauseStatus; - } - public function getDealPauseStatus() - { - return $this->dealPauseStatus; - } -} - -class Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hasBuyerPaused; - public $hasSellerPaused; - - - public function setHasBuyerPaused($hasBuyerPaused) - { - $this->hasBuyerPaused = $hasBuyerPaused; - } - public function getHasBuyerPaused() - { - return $this->hasBuyerPaused; - } - public function setHasSellerPaused($hasSellerPaused) - { - $this->hasSellerPaused = $hasSellerPaused; - } - public function getHasSellerPaused() - { - return $this->hasSellerPaused; - } -} - -class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $brandingType; - public $description; - protected $estimatedGrossSpendType = 'Google_Service_AdExchangeBuyer_Price'; - protected $estimatedGrossSpendDataType = ''; - public $estimatedImpressionsPerDay; - protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms'; - protected $guaranteedFixedPriceTermsDataType = ''; - protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms'; - protected $nonGuaranteedAuctionTermsDataType = ''; - protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms'; - protected $nonGuaranteedFixedPriceTermsDataType = ''; - - - public function setBrandingType($brandingType) - { - $this->brandingType = $brandingType; - } - public function getBrandingType() - { - return $this->brandingType; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEstimatedGrossSpend(Google_Service_AdExchangeBuyer_Price $estimatedGrossSpend) - { - $this->estimatedGrossSpend = $estimatedGrossSpend; - } - public function getEstimatedGrossSpend() - { - return $this->estimatedGrossSpend; - } - public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay) - { - $this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay; - } - public function getEstimatedImpressionsPerDay() - { - return $this->estimatedImpressionsPerDay; - } - public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms) - { - $this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms; - } - public function getGuaranteedFixedPriceTerms() - { - return $this->guaranteedFixedPriceTerms; - } - public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms) - { - $this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms; - } - public function getNonGuaranteedAuctionTerms() - { - return $this->nonGuaranteedAuctionTerms; - } - public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms) - { - $this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms; - } - public function getNonGuaranteedFixedPriceTerms() - { - return $this->nonGuaranteedFixedPriceTerms; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection -{ - protected $collection_key = 'fixedPrices'; - protected $internal_gapi_mappings = array( - ); - protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; - protected $fixedPricesDataType = 'array'; - public $guaranteedImpressions; - public $guaranteedLooks; - - - public function setFixedPrices($fixedPrices) - { - $this->fixedPrices = $fixedPrices; - } - public function getFixedPrices() - { - return $this->fixedPrices; - } - public function setGuaranteedImpressions($guaranteedImpressions) - { - $this->guaranteedImpressions = $guaranteedImpressions; - } - public function getGuaranteedImpressions() - { - return $this->guaranteedImpressions; - } - public function setGuaranteedLooks($guaranteedLooks) - { - $this->guaranteedLooks = $guaranteedLooks; - } - public function getGuaranteedLooks() - { - return $this->guaranteedLooks; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection -{ - protected $collection_key = 'reservePricePerBuyers'; - protected $internal_gapi_mappings = array( - ); - public $autoOptimizePrivateAuction; - protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; - protected $reservePricePerBuyersDataType = 'array'; - - - public function setAutoOptimizePrivateAuction($autoOptimizePrivateAuction) - { - $this->autoOptimizePrivateAuction = $autoOptimizePrivateAuction; - } - public function getAutoOptimizePrivateAuction() - { - return $this->autoOptimizePrivateAuction; - } - public function setReservePricePerBuyers($reservePricePerBuyers) - { - $this->reservePricePerBuyers = $reservePricePerBuyers; - } - public function getReservePricePerBuyers() - { - return $this->reservePricePerBuyers; - } -} - -class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection -{ - protected $collection_key = 'fixedPrices'; - protected $internal_gapi_mappings = array( - ); - protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer'; - protected $fixedPricesDataType = 'array'; - - - public function setFixedPrices($fixedPrices) - { - $this->fixedPrices = $fixedPrices; - } - public function getFixedPrices() - { - return $this->fixedPrices; - } -} - -class Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest extends Google_Collection -{ - protected $collection_key = 'dealIds'; - protected $internal_gapi_mappings = array( - ); - public $dealIds; - public $proposalRevisionNumber; - public $updateAction; - - - public function setDealIds($dealIds) - { - $this->dealIds = $dealIds; - } - public function getDealIds() - { - return $this->dealIds; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } - public function setUpdateAction($updateAction) - { - $this->updateAction = $updateAction; - } - public function getUpdateAction() - { - return $this->updateAction; - } -} - -class Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - public $proposalRevisionNumber; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } -} - -class Google_Service_AdExchangeBuyer_DeliveryControl extends Google_Collection -{ - protected $collection_key = 'frequencyCaps'; - protected $internal_gapi_mappings = array( - ); - public $creativeBlockingLevel; - public $deliveryRateType; - protected $frequencyCapsType = 'Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap'; - protected $frequencyCapsDataType = 'array'; - - - public function setCreativeBlockingLevel($creativeBlockingLevel) - { - $this->creativeBlockingLevel = $creativeBlockingLevel; - } - public function getCreativeBlockingLevel() - { - return $this->creativeBlockingLevel; - } - public function setDeliveryRateType($deliveryRateType) - { - $this->deliveryRateType = $deliveryRateType; - } - public function getDeliveryRateType() - { - return $this->deliveryRateType; - } - public function setFrequencyCaps($frequencyCaps) - { - $this->frequencyCaps = $frequencyCaps; - } - public function getFrequencyCaps() - { - return $this->frequencyCaps; - } -} - -class Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $maxImpressions; - public $numTimeUnits; - public $timeUnitType; - - - public function setMaxImpressions($maxImpressions) - { - $this->maxImpressions = $maxImpressions; - } - public function getMaxImpressions() - { - return $this->maxImpressions; - } - public function setNumTimeUnits($numTimeUnits) - { - $this->numTimeUnits = $numTimeUnits; - } - public function getNumTimeUnits() - { - return $this->numTimeUnits; - } - public function setTimeUnitType($timeUnitType) - { - $this->timeUnitType = $timeUnitType; - } - public function getTimeUnitType() - { - return $this->timeUnitType; - } -} - -class Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - protected $proposalType = 'Google_Service_AdExchangeBuyer_Proposal'; - protected $proposalDataType = ''; - public $proposalRevisionNumber; - public $updateAction; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } - public function setProposal(Google_Service_AdExchangeBuyer_Proposal $proposal) - { - $this->proposal = $proposal; - } - public function getProposal() - { - return $this->proposal; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } - public function setUpdateAction($updateAction) - { - $this->updateAction = $updateAction; - } - public function getUpdateAction() - { - return $this->updateAction; - } -} - -class Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - public $orderRevisionNumber; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } - public function setOrderRevisionNumber($orderRevisionNumber) - { - $this->orderRevisionNumber = $orderRevisionNumber; - } - public function getOrderRevisionNumber() - { - return $this->orderRevisionNumber; - } -} - -class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection -{ - protected $collection_key = 'products'; - protected $internal_gapi_mappings = array( - ); - protected $productsType = 'Google_Service_AdExchangeBuyer_Product'; - protected $productsDataType = 'array'; - - - public function setProducts($products) - { - $this->products = $products; - } - public function getProducts() - { - return $this->products; - } -} - -class Google_Service_AdExchangeBuyer_GetOrderDealsResponse extends Google_Collection -{ - protected $collection_key = 'deals'; - protected $internal_gapi_mappings = array( - ); - protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal'; - protected $dealsDataType = 'array'; - - - public function setDeals($deals) - { - $this->deals = $deals; - } - public function getDeals() - { - return $this->deals; - } -} - -class Google_Service_AdExchangeBuyer_GetOrderNotesResponse extends Google_Collection -{ - protected $collection_key = 'notes'; - protected $internal_gapi_mappings = array( - ); - protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote'; - protected $notesDataType = 'array'; - - - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } -} - -class Google_Service_AdExchangeBuyer_GetOrdersResponse extends Google_Collection -{ - protected $collection_key = 'proposals'; - protected $internal_gapi_mappings = array( - ); - protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal'; - protected $proposalsDataType = 'array'; - - - public function setProposals($proposals) - { - $this->proposals = $proposals; - } - public function getProposals() - { - return $this->proposals; - } -} - -class Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse extends Google_Collection -{ - protected $collection_key = 'profiles'; - protected $internal_gapi_mappings = array( - ); - protected $profilesType = 'Google_Service_AdExchangeBuyer_PublisherProfileApiProto'; - protected $profilesDataType = 'array'; - - - public function setProfiles($profiles) - { - $this->profiles = $profiles; - } - public function getProfiles() - { - return $this->profiles; - } -} - -class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection -{ - protected $collection_key = 'sharedTargetings'; - protected $internal_gapi_mappings = array( - ); - protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; - protected $buyerPrivateDataDataType = ''; - public $creationTimeMs; - public $creativePreApprovalPolicy; - public $creativeSafeFrameCompatibility; - public $dealId; - protected $dealServingMetadataType = 'Google_Service_AdExchangeBuyer_DealServingMetadata'; - protected $dealServingMetadataDataType = ''; - protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; - protected $deliveryControlDataType = ''; - public $externalDealId; - public $flightEndTimeMs; - public $flightStartTimeMs; - public $inventoryDescription; - public $kind; - public $lastUpdateTimeMs; - public $name; - public $productId; - public $productRevisionNumber; - public $programmaticCreativeSource; - public $proposalId; - protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $sellerContactsDataType = 'array'; - protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; - protected $sharedTargetingsDataType = 'array'; - public $syndicationProduct; - protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; - protected $termsDataType = ''; - public $webPropertyCode; - - - public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) - { - $this->buyerPrivateData = $buyerPrivateData; - } - public function getBuyerPrivateData() - { - return $this->buyerPrivateData; - } - public function setCreationTimeMs($creationTimeMs) - { - $this->creationTimeMs = $creationTimeMs; - } - public function getCreationTimeMs() - { - return $this->creationTimeMs; - } - public function setCreativePreApprovalPolicy($creativePreApprovalPolicy) - { - $this->creativePreApprovalPolicy = $creativePreApprovalPolicy; - } - public function getCreativePreApprovalPolicy() - { - return $this->creativePreApprovalPolicy; - } - public function setCreativeSafeFrameCompatibility($creativeSafeFrameCompatibility) - { - $this->creativeSafeFrameCompatibility = $creativeSafeFrameCompatibility; - } - public function getCreativeSafeFrameCompatibility() - { - return $this->creativeSafeFrameCompatibility; - } - public function setDealId($dealId) - { - $this->dealId = $dealId; - } - public function getDealId() - { - return $this->dealId; - } - public function setDealServingMetadata(Google_Service_AdExchangeBuyer_DealServingMetadata $dealServingMetadata) - { - $this->dealServingMetadata = $dealServingMetadata; - } - public function getDealServingMetadata() - { - return $this->dealServingMetadata; - } - public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) - { - $this->deliveryControl = $deliveryControl; - } - public function getDeliveryControl() - { - return $this->deliveryControl; - } - public function setExternalDealId($externalDealId) - { - $this->externalDealId = $externalDealId; - } - public function getExternalDealId() - { - return $this->externalDealId; - } - public function setFlightEndTimeMs($flightEndTimeMs) - { - $this->flightEndTimeMs = $flightEndTimeMs; - } - public function getFlightEndTimeMs() - { - return $this->flightEndTimeMs; - } - public function setFlightStartTimeMs($flightStartTimeMs) - { - $this->flightStartTimeMs = $flightStartTimeMs; - } - public function getFlightStartTimeMs() - { - return $this->flightStartTimeMs; - } - public function setInventoryDescription($inventoryDescription) - { - $this->inventoryDescription = $inventoryDescription; - } - public function getInventoryDescription() - { - return $this->inventoryDescription; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdateTimeMs($lastUpdateTimeMs) - { - $this->lastUpdateTimeMs = $lastUpdateTimeMs; - } - public function getLastUpdateTimeMs() - { - return $this->lastUpdateTimeMs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setProductRevisionNumber($productRevisionNumber) - { - $this->productRevisionNumber = $productRevisionNumber; - } - public function getProductRevisionNumber() - { - return $this->productRevisionNumber; - } - public function setProgrammaticCreativeSource($programmaticCreativeSource) - { - $this->programmaticCreativeSource = $programmaticCreativeSource; - } - public function getProgrammaticCreativeSource() - { - return $this->programmaticCreativeSource; - } - public function setProposalId($proposalId) - { - $this->proposalId = $proposalId; - } - public function getProposalId() - { - return $this->proposalId; - } - public function setSellerContacts($sellerContacts) - { - $this->sellerContacts = $sellerContacts; - } - public function getSellerContacts() - { - return $this->sellerContacts; - } - public function setSharedTargetings($sharedTargetings) - { - $this->sharedTargetings = $sharedTargetings; - } - public function getSharedTargetings() - { - return $this->sharedTargetings; - } - public function setSyndicationProduct($syndicationProduct) - { - $this->syndicationProduct = $syndicationProduct; - } - public function getSyndicationProduct() - { - return $this->syndicationProduct; - } - public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) - { - $this->terms = $terms; - } - public function getTerms() - { - return $this->terms; - } - public function setWebPropertyCode($webPropertyCode) - { - $this->webPropertyCode = $webPropertyCode; - } - public function getWebPropertyCode() - { - return $this->webPropertyCode; - } -} - -class Google_Service_AdExchangeBuyer_MarketplaceDealParty extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $buyerDataType = ''; - protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; - protected $sellerDataType = ''; - - - public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) - { - $this->buyer = $buyer; - } - public function getBuyer() - { - return $this->buyer; - } - public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) - { - $this->seller = $seller; - } - public function getSeller() - { - return $this->seller; - } -} - -class Google_Service_AdExchangeBuyer_MarketplaceLabel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $createTimeMs; - protected $deprecatedMarketplaceDealPartyType = 'Google_Service_AdExchangeBuyer_MarketplaceDealParty'; - protected $deprecatedMarketplaceDealPartyDataType = ''; - public $label; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCreateTimeMs($createTimeMs) - { - $this->createTimeMs = $createTimeMs; - } - public function getCreateTimeMs() - { - return $this->createTimeMs; - } - public function setDeprecatedMarketplaceDealParty(Google_Service_AdExchangeBuyer_MarketplaceDealParty $deprecatedMarketplaceDealParty) - { - $this->deprecatedMarketplaceDealParty = $deprecatedMarketplaceDealParty; - } - public function getDeprecatedMarketplaceDealParty() - { - return $this->deprecatedMarketplaceDealParty; - } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_AdExchangeBuyer_MarketplaceNote extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creatorRole; - public $dealId; - public $kind; - public $note; - public $noteId; - public $proposalId; - public $proposalRevisionNumber; - public $timestampMs; - - - public function setCreatorRole($creatorRole) - { - $this->creatorRole = $creatorRole; - } - public function getCreatorRole() - { - return $this->creatorRole; - } - public function setDealId($dealId) - { - $this->dealId = $dealId; - } - public function getDealId() - { - return $this->dealId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNote($note) - { - $this->note = $note; - } - public function getNote() - { - return $this->note; - } - public function setNoteId($noteId) - { - $this->noteId = $noteId; - } - public function getNoteId() - { - return $this->noteId; - } - public function setProposalId($proposalId) - { - $this->proposalId = $proposalId; - } - public function getProposalId() - { - return $this->proposalId; - } - public function setProposalRevisionNumber($proposalRevisionNumber) - { - $this->proposalRevisionNumber = $proposalRevisionNumber; - } - public function getProposalRevisionNumber() - { - return $this->proposalRevisionNumber; - } - public function setTimestampMs($timestampMs) - { - $this->timestampMs = $timestampMs; - } - public function getTimestampMs() - { - return $this->timestampMs; - } -} - -class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection -{ - protected $collection_key = 'hostedMatchStatusRate'; - protected $internal_gapi_mappings = array( - ); - public $bidRate; - public $bidRequestRate; - public $calloutStatusRate; - public $cookieMatcherStatusRate; - public $creativeStatusRate; - public $filteredBidRate; - public $hostedMatchStatusRate; - public $inventoryMatchRate; - public $kind; - public $latency50thPercentile; - public $latency85thPercentile; - public $latency95thPercentile; - public $noQuotaInRegion; - public $outOfQuota; - public $pixelMatchRequests; - public $pixelMatchResponses; - public $quotaConfiguredLimit; - public $quotaThrottledLimit; - public $region; - public $successfulRequestRate; - public $timestamp; - public $unsuccessfulRequestRate; - - - public function setBidRate($bidRate) - { - $this->bidRate = $bidRate; - } - public function getBidRate() - { - return $this->bidRate; - } - public function setBidRequestRate($bidRequestRate) - { - $this->bidRequestRate = $bidRequestRate; - } - public function getBidRequestRate() - { - return $this->bidRequestRate; - } - public function setCalloutStatusRate($calloutStatusRate) - { - $this->calloutStatusRate = $calloutStatusRate; - } - public function getCalloutStatusRate() - { - return $this->calloutStatusRate; - } - public function setCookieMatcherStatusRate($cookieMatcherStatusRate) - { - $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; - } - public function getCookieMatcherStatusRate() - { - return $this->cookieMatcherStatusRate; - } - public function setCreativeStatusRate($creativeStatusRate) - { - $this->creativeStatusRate = $creativeStatusRate; - } - public function getCreativeStatusRate() - { - return $this->creativeStatusRate; - } - public function setFilteredBidRate($filteredBidRate) - { - $this->filteredBidRate = $filteredBidRate; - } - public function getFilteredBidRate() - { - return $this->filteredBidRate; - } - public function setHostedMatchStatusRate($hostedMatchStatusRate) - { - $this->hostedMatchStatusRate = $hostedMatchStatusRate; - } - public function getHostedMatchStatusRate() - { - return $this->hostedMatchStatusRate; - } - public function setInventoryMatchRate($inventoryMatchRate) - { - $this->inventoryMatchRate = $inventoryMatchRate; - } - public function getInventoryMatchRate() - { - return $this->inventoryMatchRate; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLatency50thPercentile($latency50thPercentile) - { - $this->latency50thPercentile = $latency50thPercentile; - } - public function getLatency50thPercentile() - { - return $this->latency50thPercentile; - } - public function setLatency85thPercentile($latency85thPercentile) - { - $this->latency85thPercentile = $latency85thPercentile; - } - public function getLatency85thPercentile() - { - return $this->latency85thPercentile; - } - public function setLatency95thPercentile($latency95thPercentile) - { - $this->latency95thPercentile = $latency95thPercentile; - } - public function getLatency95thPercentile() - { - return $this->latency95thPercentile; - } - public function setNoQuotaInRegion($noQuotaInRegion) - { - $this->noQuotaInRegion = $noQuotaInRegion; - } - public function getNoQuotaInRegion() - { - return $this->noQuotaInRegion; - } - public function setOutOfQuota($outOfQuota) - { - $this->outOfQuota = $outOfQuota; - } - public function getOutOfQuota() - { - return $this->outOfQuota; - } - public function setPixelMatchRequests($pixelMatchRequests) - { - $this->pixelMatchRequests = $pixelMatchRequests; - } - public function getPixelMatchRequests() - { - return $this->pixelMatchRequests; - } - public function setPixelMatchResponses($pixelMatchResponses) - { - $this->pixelMatchResponses = $pixelMatchResponses; - } - public function getPixelMatchResponses() - { - return $this->pixelMatchResponses; - } - public function setQuotaConfiguredLimit($quotaConfiguredLimit) - { - $this->quotaConfiguredLimit = $quotaConfiguredLimit; - } - public function getQuotaConfiguredLimit() - { - return $this->quotaConfiguredLimit; - } - public function setQuotaThrottledLimit($quotaThrottledLimit) - { - $this->quotaThrottledLimit = $quotaThrottledLimit; - } - public function getQuotaThrottledLimit() - { - return $this->quotaThrottledLimit; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSuccessfulRequestRate($successfulRequestRate) - { - $this->successfulRequestRate = $successfulRequestRate; - } - public function getSuccessfulRequestRate() - { - return $this->successfulRequestRate; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) - { - $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; - } - public function getUnsuccessfulRequestRate() - { - return $this->unsuccessfulRequestRate; - } -} - -class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection -{ - protected $collection_key = 'performanceReport'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; - protected $performanceReportDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPerformanceReport($performanceReport) - { - $this->performanceReport = $performanceReport; - } - public function getPerformanceReport() - { - return $this->performanceReport; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection -{ - protected $collection_key = 'videoPlayerSizes'; - protected $internal_gapi_mappings = array( - ); - public $billingId; - public $configId; - public $configName; - public $creativeType; - protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; - protected $dimensionsDataType = 'array'; - public $excludedContentLabels; - public $excludedGeoCriteriaIds; - protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; - protected $excludedPlacementsDataType = 'array'; - public $excludedUserLists; - public $excludedVerticals; - public $geoCriteriaIds; - public $isActive; - public $kind; - public $languages; - public $mobileCarriers; - public $mobileDevices; - public $mobileOperatingSystemVersions; - protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; - protected $placementsDataType = 'array'; - public $platforms; - public $supportedCreativeAttributes; - public $userLists; - public $vendorTypes; - public $verticals; - protected $videoPlayerSizesType = 'Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes'; - protected $videoPlayerSizesDataType = 'array'; - - - public function setBillingId($billingId) - { - $this->billingId = $billingId; - } - public function getBillingId() - { - return $this->billingId; - } - public function setConfigId($configId) - { - $this->configId = $configId; - } - public function getConfigId() - { - return $this->configId; - } - public function setConfigName($configName) - { - $this->configName = $configName; - } - public function getConfigName() - { - return $this->configName; - } - public function setCreativeType($creativeType) - { - $this->creativeType = $creativeType; - } - public function getCreativeType() - { - return $this->creativeType; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setExcludedContentLabels($excludedContentLabels) - { - $this->excludedContentLabels = $excludedContentLabels; - } - public function getExcludedContentLabels() - { - return $this->excludedContentLabels; - } - public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) - { - $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; - } - public function getExcludedGeoCriteriaIds() - { - return $this->excludedGeoCriteriaIds; - } - public function setExcludedPlacements($excludedPlacements) - { - $this->excludedPlacements = $excludedPlacements; - } - public function getExcludedPlacements() - { - return $this->excludedPlacements; - } - public function setExcludedUserLists($excludedUserLists) - { - $this->excludedUserLists = $excludedUserLists; - } - public function getExcludedUserLists() - { - return $this->excludedUserLists; - } - public function setExcludedVerticals($excludedVerticals) - { - $this->excludedVerticals = $excludedVerticals; - } - public function getExcludedVerticals() - { - return $this->excludedVerticals; - } - public function setGeoCriteriaIds($geoCriteriaIds) - { - $this->geoCriteriaIds = $geoCriteriaIds; - } - public function getGeoCriteriaIds() - { - return $this->geoCriteriaIds; - } - public function setIsActive($isActive) - { - $this->isActive = $isActive; - } - public function getIsActive() - { - return $this->isActive; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } - public function setMobileDevices($mobileDevices) - { - $this->mobileDevices = $mobileDevices; - } - public function getMobileDevices() - { - return $this->mobileDevices; - } - public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) - { - $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; - } - public function getMobileOperatingSystemVersions() - { - return $this->mobileOperatingSystemVersions; - } - public function setPlacements($placements) - { - $this->placements = $placements; - } - public function getPlacements() - { - return $this->placements; - } - public function setPlatforms($platforms) - { - $this->platforms = $platforms; - } - public function getPlatforms() - { - return $this->platforms; - } - public function setSupportedCreativeAttributes($supportedCreativeAttributes) - { - $this->supportedCreativeAttributes = $supportedCreativeAttributes; - } - public function getSupportedCreativeAttributes() - { - return $this->supportedCreativeAttributes; - } - public function setUserLists($userLists) - { - $this->userLists = $userLists; - } - public function getUserLists() - { - return $this->userLists; - } - public function setVendorTypes($vendorTypes) - { - $this->vendorTypes = $vendorTypes; - } - public function getVendorTypes() - { - return $this->vendorTypes; - } - public function setVerticals($verticals) - { - $this->verticals = $verticals; - } - public function getVerticals() - { - return $this->verticals; - } - public function setVideoPlayerSizes($videoPlayerSizes) - { - $this->videoPlayerSizes = $videoPlayerSizes; - } - public function getVideoPlayerSizes() - { - return $this->videoPlayerSizes; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - 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_AdExchangeBuyer_PretargetingConfigList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $token; - public $type; - - - 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_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aspectRatio; - public $minHeight; - public $minWidth; - - - public function setAspectRatio($aspectRatio) - { - $this->aspectRatio = $aspectRatio; - } - public function getAspectRatio() - { - return $this->aspectRatio; - } - public function setMinHeight($minHeight) - { - $this->minHeight = $minHeight; - } - public function getMinHeight() - { - return $this->minHeight; - } - public function setMinWidth($minWidth) - { - $this->minWidth = $minWidth; - } - public function getMinWidth() - { - return $this->minWidth; - } -} - -class Google_Service_AdExchangeBuyer_Price extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountMicros; - public $currencyCode; - public $pricingType; - - - public function setAmountMicros($amountMicros) - { - $this->amountMicros = $amountMicros; - } - public function getAmountMicros() - { - return $this->amountMicros; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - public function setPricingType($pricingType) - { - $this->pricingType = $pricingType; - } - public function getPricingType() - { - return $this->pricingType; - } -} - -class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $buyerDataType = ''; - protected $priceType = 'Google_Service_AdExchangeBuyer_Price'; - protected $priceDataType = ''; - - - public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) - { - $this->buyer = $buyer; - } - public function getBuyer() - { - return $this->buyer; - } - public function setPrice(Google_Service_AdExchangeBuyer_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } -} - -class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $referenceId; - public $referencePayload; - - - public function setReferenceId($referenceId) - { - $this->referenceId = $referenceId; - } - public function getReferenceId() - { - return $this->referenceId; - } - public function setReferencePayload($referencePayload) - { - $this->referencePayload = $referencePayload; - } - public function getReferencePayload() - { - return $this->referencePayload; - } -} - -class Google_Service_AdExchangeBuyer_Product extends Google_Collection -{ - protected $collection_key = 'sharedTargetings'; - protected $internal_gapi_mappings = array( - ); - public $creationTimeMs; - protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $creatorContactsDataType = 'array'; - protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl'; - protected $deliveryControlDataType = ''; - public $flightEndTimeMs; - public $flightStartTimeMs; - public $hasCreatorSignedOff; - public $inventorySource; - public $kind; - protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; - protected $labelsDataType = 'array'; - public $lastUpdateTimeMs; - public $legacyOfferId; - public $name; - public $privateAuctionId; - public $productId; - public $revisionNumber; - protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; - protected $sellerDataType = ''; - protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting'; - protected $sharedTargetingsDataType = 'array'; - public $state; - public $syndicationProduct; - protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms'; - protected $termsDataType = ''; - public $webPropertyCode; - - - public function setCreationTimeMs($creationTimeMs) - { - $this->creationTimeMs = $creationTimeMs; - } - public function getCreationTimeMs() - { - return $this->creationTimeMs; - } - public function setCreatorContacts($creatorContacts) - { - $this->creatorContacts = $creatorContacts; - } - public function getCreatorContacts() - { - return $this->creatorContacts; - } - public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl) - { - $this->deliveryControl = $deliveryControl; - } - public function getDeliveryControl() - { - return $this->deliveryControl; - } - public function setFlightEndTimeMs($flightEndTimeMs) - { - $this->flightEndTimeMs = $flightEndTimeMs; - } - public function getFlightEndTimeMs() - { - return $this->flightEndTimeMs; - } - public function setFlightStartTimeMs($flightStartTimeMs) - { - $this->flightStartTimeMs = $flightStartTimeMs; - } - public function getFlightStartTimeMs() - { - return $this->flightStartTimeMs; - } - public function setHasCreatorSignedOff($hasCreatorSignedOff) - { - $this->hasCreatorSignedOff = $hasCreatorSignedOff; - } - public function getHasCreatorSignedOff() - { - return $this->hasCreatorSignedOff; - } - public function setInventorySource($inventorySource) - { - $this->inventorySource = $inventorySource; - } - public function getInventorySource() - { - return $this->inventorySource; - } - 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 setLastUpdateTimeMs($lastUpdateTimeMs) - { - $this->lastUpdateTimeMs = $lastUpdateTimeMs; - } - public function getLastUpdateTimeMs() - { - return $this->lastUpdateTimeMs; - } - public function setLegacyOfferId($legacyOfferId) - { - $this->legacyOfferId = $legacyOfferId; - } - public function getLegacyOfferId() - { - return $this->legacyOfferId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPrivateAuctionId($privateAuctionId) - { - $this->privateAuctionId = $privateAuctionId; - } - public function getPrivateAuctionId() - { - return $this->privateAuctionId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setRevisionNumber($revisionNumber) - { - $this->revisionNumber = $revisionNumber; - } - public function getRevisionNumber() - { - return $this->revisionNumber; - } - public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) - { - $this->seller = $seller; - } - public function getSeller() - { - return $this->seller; - } - public function setSharedTargetings($sharedTargetings) - { - $this->sharedTargetings = $sharedTargetings; - } - public function getSharedTargetings() - { - return $this->sharedTargetings; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setSyndicationProduct($syndicationProduct) - { - $this->syndicationProduct = $syndicationProduct; - } - public function getSyndicationProduct() - { - return $this->syndicationProduct; - } - public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms) - { - $this->terms = $terms; - } - public function getTerms() - { - return $this->terms; - } - public function setWebPropertyCode($webPropertyCode) - { - $this->webPropertyCode = $webPropertyCode; - } - public function getWebPropertyCode() - { - return $this->webPropertyCode; - } -} - -class Google_Service_AdExchangeBuyer_Proposal extends Google_Collection -{ - protected $collection_key = 'sellerContacts'; - protected $internal_gapi_mappings = array( - ); - protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $billedBuyerDataType = ''; - protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer'; - protected $buyerDataType = ''; - protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $buyerContactsDataType = 'array'; - protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData'; - protected $buyerPrivateDataDataType = ''; - public $hasBuyerSignedOff; - public $hasSellerSignedOff; - public $inventorySource; - public $isRenegotiating; - public $isSetupComplete; - public $kind; - protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel'; - protected $labelsDataType = 'array'; - public $lastUpdaterOrCommentorRole; - public $lastUpdaterRole; - public $name; - public $negotiationId; - public $originatorRole; - public $privateAuctionId; - public $proposalId; - public $proposalState; - public $revisionNumber; - public $revisionTimeMs; - protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller'; - protected $sellerDataType = ''; - protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation'; - protected $sellerContactsDataType = 'array'; - - - public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer) - { - $this->billedBuyer = $billedBuyer; - } - public function getBilledBuyer() - { - return $this->billedBuyer; - } - public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer) - { - $this->buyer = $buyer; - } - public function getBuyer() - { - return $this->buyer; - } - public function setBuyerContacts($buyerContacts) - { - $this->buyerContacts = $buyerContacts; - } - public function getBuyerContacts() - { - return $this->buyerContacts; - } - public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData) - { - $this->buyerPrivateData = $buyerPrivateData; - } - public function getBuyerPrivateData() - { - return $this->buyerPrivateData; - } - public function setHasBuyerSignedOff($hasBuyerSignedOff) - { - $this->hasBuyerSignedOff = $hasBuyerSignedOff; - } - public function getHasBuyerSignedOff() - { - return $this->hasBuyerSignedOff; - } - public function setHasSellerSignedOff($hasSellerSignedOff) - { - $this->hasSellerSignedOff = $hasSellerSignedOff; - } - public function getHasSellerSignedOff() - { - return $this->hasSellerSignedOff; - } - public function setInventorySource($inventorySource) - { - $this->inventorySource = $inventorySource; - } - public function getInventorySource() - { - return $this->inventorySource; - } - public function setIsRenegotiating($isRenegotiating) - { - $this->isRenegotiating = $isRenegotiating; - } - public function getIsRenegotiating() - { - return $this->isRenegotiating; - } - public function setIsSetupComplete($isSetupComplete) - { - $this->isSetupComplete = $isSetupComplete; - } - public function getIsSetupComplete() - { - return $this->isSetupComplete; - } - 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 setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole) - { - $this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole; - } - public function getLastUpdaterOrCommentorRole() - { - return $this->lastUpdaterOrCommentorRole; - } - public function setLastUpdaterRole($lastUpdaterRole) - { - $this->lastUpdaterRole = $lastUpdaterRole; - } - public function getLastUpdaterRole() - { - return $this->lastUpdaterRole; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNegotiationId($negotiationId) - { - $this->negotiationId = $negotiationId; - } - public function getNegotiationId() - { - return $this->negotiationId; - } - public function setOriginatorRole($originatorRole) - { - $this->originatorRole = $originatorRole; - } - public function getOriginatorRole() - { - return $this->originatorRole; - } - public function setPrivateAuctionId($privateAuctionId) - { - $this->privateAuctionId = $privateAuctionId; - } - public function getPrivateAuctionId() - { - return $this->privateAuctionId; - } - public function setProposalId($proposalId) - { - $this->proposalId = $proposalId; - } - public function getProposalId() - { - return $this->proposalId; - } - public function setProposalState($proposalState) - { - $this->proposalState = $proposalState; - } - public function getProposalState() - { - return $this->proposalState; - } - public function setRevisionNumber($revisionNumber) - { - $this->revisionNumber = $revisionNumber; - } - public function getRevisionNumber() - { - return $this->revisionNumber; - } - public function setRevisionTimeMs($revisionTimeMs) - { - $this->revisionTimeMs = $revisionTimeMs; - } - public function getRevisionTimeMs() - { - return $this->revisionTimeMs; - } - public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller) - { - $this->seller = $seller; - } - public function getSeller() - { - return $this->seller; - } - public function setSellerContacts($sellerContacts) - { - $this->sellerContacts = $sellerContacts; - } - public function getSellerContacts() - { - return $this->sellerContacts; - } -} - -class Google_Service_AdExchangeBuyer_PublisherProfileApiProto extends Google_Collection -{ - protected $collection_key = 'topHeadlines'; - protected $internal_gapi_mappings = array( - ); - public $buyerPitchStatement; - public $googlePlusLink; - public $isParent; - public $kind; - public $logoUrl; - public $mediaKitLink; - public $name; - public $overview; - public $profileId; - public $publisherDomains; - public $rateCardInfoLink; - public $samplePageLink; - public $topHeadlines; - - - public function setBuyerPitchStatement($buyerPitchStatement) - { - $this->buyerPitchStatement = $buyerPitchStatement; - } - public function getBuyerPitchStatement() - { - return $this->buyerPitchStatement; - } - public function setGooglePlusLink($googlePlusLink) - { - $this->googlePlusLink = $googlePlusLink; - } - public function getGooglePlusLink() - { - return $this->googlePlusLink; - } - public function setIsParent($isParent) - { - $this->isParent = $isParent; - } - public function getIsParent() - { - return $this->isParent; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLogoUrl($logoUrl) - { - $this->logoUrl = $logoUrl; - } - public function getLogoUrl() - { - return $this->logoUrl; - } - public function setMediaKitLink($mediaKitLink) - { - $this->mediaKitLink = $mediaKitLink; - } - public function getMediaKitLink() - { - return $this->mediaKitLink; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverview($overview) - { - $this->overview = $overview; - } - public function getOverview() - { - return $this->overview; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setPublisherDomains($publisherDomains) - { - $this->publisherDomains = $publisherDomains; - } - public function getPublisherDomains() - { - return $this->publisherDomains; - } - public function setRateCardInfoLink($rateCardInfoLink) - { - $this->rateCardInfoLink = $rateCardInfoLink; - } - public function getRateCardInfoLink() - { - return $this->rateCardInfoLink; - } - public function setSamplePageLink($samplePageLink) - { - $this->samplePageLink = $samplePageLink; - } - public function getSamplePageLink() - { - return $this->samplePageLink; - } - public function setTopHeadlines($topHeadlines) - { - $this->topHeadlines = $topHeadlines; - } - public function getTopHeadlines() - { - return $this->topHeadlines; - } -} - -class Google_Service_AdExchangeBuyer_Seller extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $subAccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setSubAccountId($subAccountId) - { - $this->subAccountId = $subAccountId; - } - public function getSubAccountId() - { - return $this->subAccountId; - } -} - -class Google_Service_AdExchangeBuyer_SharedTargeting extends Google_Collection -{ - protected $collection_key = 'inclusions'; - protected $internal_gapi_mappings = array( - ); - protected $exclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue'; - protected $exclusionsDataType = 'array'; - protected $inclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue'; - protected $inclusionsDataType = 'array'; - public $key; - - - public function setExclusions($exclusions) - { - $this->exclusions = $exclusions; - } - public function getExclusions() - { - return $this->exclusions; - } - public function setInclusions($inclusions) - { - $this->inclusions = $inclusions; - } - public function getInclusions() - { - return $this->inclusions; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_AdExchangeBuyer_TargetingValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $creativeSizeValueType = 'Google_Service_AdExchangeBuyer_TargetingValueCreativeSize'; - protected $creativeSizeValueDataType = ''; - protected $dayPartTargetingValueType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting'; - protected $dayPartTargetingValueDataType = ''; - public $longValue; - public $stringValue; - - - public function setCreativeSizeValue(Google_Service_AdExchangeBuyer_TargetingValueCreativeSize $creativeSizeValue) - { - $this->creativeSizeValue = $creativeSizeValue; - } - public function getCreativeSizeValue() - { - return $this->creativeSizeValue; - } - public function setDayPartTargetingValue(Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting $dayPartTargetingValue) - { - $this->dayPartTargetingValue = $dayPartTargetingValue; - } - public function getDayPartTargetingValue() - { - return $this->dayPartTargetingValue; - } - public function setLongValue($longValue) - { - $this->longValue = $longValue; - } - public function getLongValue() - { - return $this->longValue; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } -} - -class Google_Service_AdExchangeBuyer_TargetingValueCreativeSize extends Google_Collection -{ - protected $collection_key = 'companionSizes'; - protected $internal_gapi_mappings = array( - ); - protected $companionSizesType = 'Google_Service_AdExchangeBuyer_TargetingValueSize'; - protected $companionSizesDataType = 'array'; - public $creativeSizeType; - protected $sizeType = 'Google_Service_AdExchangeBuyer_TargetingValueSize'; - protected $sizeDataType = ''; - - - public function setCompanionSizes($companionSizes) - { - $this->companionSizes = $companionSizes; - } - public function getCompanionSizes() - { - return $this->companionSizes; - } - public function setCreativeSizeType($creativeSizeType) - { - $this->creativeSizeType = $creativeSizeType; - } - public function getCreativeSizeType() - { - return $this->creativeSizeType; - } - public function setSize(Google_Service_AdExchangeBuyer_TargetingValueSize $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} - -class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting extends Google_Collection -{ - protected $collection_key = 'dayParts'; - protected $internal_gapi_mappings = array( - ); - protected $dayPartsType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart'; - protected $dayPartsDataType = 'array'; - public $timeZoneType; - - - public function setDayParts($dayParts) - { - $this->dayParts = $dayParts; - } - public function getDayParts() - { - return $this->dayParts; - } - public function setTimeZoneType($timeZoneType) - { - $this->timeZoneType = $timeZoneType; - } - public function getTimeZoneType() - { - return $this->timeZoneType; - } -} - -class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dayOfWeek; - public $endHour; - public $endMinute; - public $startHour; - public $startMinute; - - - public function setDayOfWeek($dayOfWeek) - { - $this->dayOfWeek = $dayOfWeek; - } - public function getDayOfWeek() - { - return $this->dayOfWeek; - } - public function setEndHour($endHour) - { - $this->endHour = $endHour; - } - public function getEndHour() - { - return $this->endHour; - } - public function setEndMinute($endMinute) - { - $this->endMinute = $endMinute; - } - public function getEndMinute() - { - return $this->endMinute; - } - public function setStartHour($startHour) - { - $this->startHour = $startHour; - } - public function getStartHour() - { - return $this->startHour; - } - public function setStartMinute($startMinute) - { - $this->startMinute = $startMinute; - } - public function getStartMinute() - { - return $this->startMinute; - } -} - -class Google_Service_AdExchangeBuyer_TargetingValueSize extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} diff --git a/src/Google/Service/AdExchangeBuyerII.php b/src/Google/Service/AdExchangeBuyerII.php deleted file mode 100644 index 226fcae49..000000000 --- a/src/Google/Service/AdExchangeBuyerII.php +++ /dev/null @@ -1,770 +0,0 @@ - - * The Ad Exchange Buyer API II lets you access the latest features for managing - * Ad Exchange accounts and Real-Time Bidding configurations.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AdExchangeBuyerII extends Google_Service -{ - /** Manage your Ad Exchange buyer account configuration. */ - const ADEXCHANGE_BUYER = - "https://www.googleapis.com/auth/adexchange.buyer"; - - public $accounts_clients; - public $accounts_clients_invitations; - public $accounts_clients_users; - - - /** - * Constructs the internal representation of the AdExchangeBuyerII service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://adexchangebuyer.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v2beta1'; - $this->serviceName = 'adexchangebuyer2'; - - $this->accounts_clients = new Google_Service_AdExchangeBuyerII_AccountsClients_Resource( - $this, - $this->serviceName, - 'clients', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_clients_invitations = new Google_Service_AdExchangeBuyerII_AccountsClientsInvitations_Resource( - $this, - $this->serviceName, - 'invitations', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'invitationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_clients_users = new Google_Service_AdExchangeBuyerII_AccountsClientsUsers_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); - * $accounts = $adexchangebuyer2Service->accounts; - * - */ -class Google_Service_AdExchangeBuyerII_Accounts_Resource extends Google_Service_Resource -{ -} - -/** - * The "clients" collection of methods. - * Typical usage is: - * - * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); - * $clients = $adexchangebuyer2Service->clients; - * - */ -class Google_Service_AdExchangeBuyerII_AccountsClients_Resource extends Google_Service_Resource -{ - - /** - * Creates a new client buyer. (clients.create) - * - * @param string $accountId Unique numerical account ID for the buyer of which - * the client buyer is a customer; the sponsor buyer to create a client for. - * (required) - * @param Google_Client $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_Client - */ - public function create($accountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Client"); - } - - /** - * Gets a client buyer with a given client account ID. (clients.get) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer to - * retrieve. (required) - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_Client - */ - public function get($accountId, $clientAccountId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Client"); - } - - /** - * Lists all the clients for the current sponsor buyer. - * (clients.listAccountsClients) - * - * @param string $accountId Unique numerical account ID of the sponsor buyer to - * list the clients for. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Requested page size. The server may return fewer - * clients than requested. If unspecified, the server will pick an appropriate - * default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListClientsResponse.nextPageToken returned from the previous call to the - * accounts.clients.list method. - * @return Google_Service_AdExchangeBuyerII_ListClientsResponse - */ - public function listAccountsClients($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientsResponse"); - } - - /** - * Updates an existing client buyer. (clients.update) - * - * @param string $accountId Unique numerical account ID for the buyer of which - * the client buyer is a customer; the sponsor buyer to update a client for. - * (required) - * @param string $clientAccountId Unique numerical account ID of the client to - * update. (required) - * @param Google_Client $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_Client - */ - public function update($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Client"); - } -} - -/** - * The "invitations" collection of methods. - * Typical usage is: - * - * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); - * $invitations = $adexchangebuyer2Service->invitations; - * - */ -class Google_Service_AdExchangeBuyerII_AccountsClientsInvitations_Resource extends Google_Service_Resource -{ - - /** - * Creates and sends out an email invitation to access an Ad Exchange client - * buyer account. (invitations.create) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer that - * the user should be associated with. (required) - * @param Google_ClientUserInvitation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation - */ - public function create($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation"); - } - - /** - * Retrieves an existing client user invitation. (invitations.get) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer that - * the user invitation to be retrieved is associated with. (required) - * @param string $invitationId Numerical identifier of the user invitation to - * retrieve. (required) - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation - */ - public function get($accountId, $clientAccountId, $invitationId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'invitationId' => $invitationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation"); - } - - /** - * Lists all the client users invitations for a client with a given account ID. - * (invitations.listAccountsClientsInvitations) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer to - * list invitations for. (required) You must either specify a string - * representation of a numerical account identifier or the `-` character to list - * all the invitations for all the clients of a given sponsor buyer. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Requested page size. Server may return fewer clients - * than requested. If unspecified, server will pick an appropriate default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListClientUserInvitationsResponse.nextPageToken returned from the previous - * call to the clients.invitations.list method. - * @return Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse - */ - public function listAccountsClientsInvitations($accountId, $clientAccountId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse"); - } -} -/** - * The "users" collection of methods. - * Typical usage is: - * - * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...); - * $users = $adexchangebuyer2Service->users; - * - */ -class Google_Service_AdExchangeBuyerII_AccountsClientsUsers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an existing client user. (users.get) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer that - * the user to be retrieved is associated with. (required) - * @param string $userId Numerical identifier of the user to retrieve. - * (required) - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_ClientUser - */ - public function get($accountId, $clientAccountId, $userId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUser"); - } - - /** - * Lists all the known client users for a specified sponsor buyer account ID. - * (users.listAccountsClientsUsers) - * - * @param string $accountId Numerical account ID of the sponsor buyer of the - * client to list users for. (required) - * @param string $clientAccountId The account ID of the client buyer to list - * users for. (required) You must specify either a string representation of a - * numerical account identifier or the `-` character to list all the client - * users for all the clients of a given sponsor buyer. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Requested page size. The server may return fewer - * clients than requested. If unspecified, the server will pick an appropriate - * default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListClientUsersResponse.nextPageToken returned from the previous call to the - * accounts.clients.users.list method. - * @return Google_Service_AdExchangeBuyerII_ListClientUsersResponse - */ - public function listAccountsClientsUsers($accountId, $clientAccountId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUsersResponse"); - } - - /** - * Updates an existing client user. Only the user status can be changed on - * update. (users.update) - * - * @param string $accountId Numerical account ID of the client's sponsor buyer. - * (required) - * @param string $clientAccountId Numerical account ID of the client buyer that - * the user to be retrieved is associated with. (required) - * @param string $userId Numerical identifier of the user to retrieve. - * (required) - * @param Google_ClientUser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyerII_ClientUser - */ - public function update($accountId, $clientAccountId, $userId, Google_Service_AdExchangeBuyerII_ClientUser $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_ClientUser"); - } -} - - - - -class Google_Service_AdExchangeBuyerII_Client extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientAccountId; - public $clientName; - public $entityId; - public $entityName; - public $entityType; - public $role; - public $status; - public $visibleToSeller; - - - public function setClientAccountId($clientAccountId) - { - $this->clientAccountId = $clientAccountId; - } - public function getClientAccountId() - { - return $this->clientAccountId; - } - public function setClientName($clientName) - { - $this->clientName = $clientName; - } - public function getClientName() - { - return $this->clientName; - } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } - public function getEntityId() - { - return $this->entityId; - } - public function setEntityName($entityName) - { - $this->entityName = $entityName; - } - public function getEntityName() - { - return $this->entityName; - } - public function setEntityType($entityType) - { - $this->entityType = $entityType; - } - public function getEntityType() - { - return $this->entityType; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setVisibleToSeller($visibleToSeller) - { - $this->visibleToSeller = $visibleToSeller; - } - public function getVisibleToSeller() - { - return $this->visibleToSeller; - } -} - -class Google_Service_AdExchangeBuyerII_ClientUser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientAccountId; - public $email; - public $status; - public $userId; - - - public function setClientAccountId($clientAccountId) - { - $this->clientAccountId = $clientAccountId; - } - public function getClientAccountId() - { - return $this->clientAccountId; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_AdExchangeBuyerII_ClientUserInvitation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientAccountId; - public $email; - public $invitationId; - - - public function setClientAccountId($clientAccountId) - { - $this->clientAccountId = $clientAccountId; - } - public function getClientAccountId() - { - return $this->clientAccountId; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setInvitationId($invitationId) - { - $this->invitationId = $invitationId; - } - public function getInvitationId() - { - return $this->invitationId; - } -} - -class Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse extends Google_Collection -{ - protected $collection_key = 'invitations'; - protected $internal_gapi_mappings = array( - ); - protected $invitationsType = 'Google_Service_AdExchangeBuyerII_ClientUserInvitation'; - protected $invitationsDataType = 'array'; - public $nextPageToken; - - - public function setInvitations($invitations) - { - $this->invitations = $invitations; - } - public function getInvitations() - { - return $this->invitations; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_AdExchangeBuyerII_ListClientUsersResponse extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $usersType = 'Google_Service_AdExchangeBuyerII_ClientUser'; - protected $usersDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_AdExchangeBuyerII_ListClientsResponse extends Google_Collection -{ - protected $collection_key = 'clients'; - protected $internal_gapi_mappings = array( - ); - protected $clientsType = 'Google_Service_AdExchangeBuyerII_Client'; - protected $clientsDataType = 'array'; - public $nextPageToken; - - - public function setClients($clients) - { - $this->clients = $clients; - } - public function getClients() - { - return $this->clients; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} diff --git a/src/Google/Service/AdExchangeSeller.php b/src/Google/Service/AdExchangeSeller.php deleted file mode 100644 index cd0cba6ae..000000000 --- a/src/Google/Service/AdExchangeSeller.php +++ /dev/null @@ -1,1713 +0,0 @@ - - * 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 - *

    - * - * @author Google, Inc. - */ -class Google_Service_AdExchangeSeller extends Google_Service -{ - /** View and manage your Ad Exchange data. */ - const ADEXCHANGE_SELLER = - "https://www.googleapis.com/auth/adexchange.seller"; - /** View your Ad Exchange data. */ - const ADEXCHANGE_SELLER_READONLY = - "https://www.googleapis.com/auth/adexchange.seller.readonly"; - - public $accounts; - public $accounts_adclients; - public $accounts_alerts; - public $accounts_customchannels; - public $accounts_metadata_dimensions; - public $accounts_metadata_metrics; - public $accounts_preferreddeals; - public $accounts_reports; - public $accounts_reports_saved; - public $accounts_urlchannels; - - - /** - * Constructs the internal representation of the AdExchangeSeller service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'adexchangeseller/v2.0/'; - $this->version = 'v2.0'; - $this->serviceName = 'adexchangeseller'; - - $this->accounts = new Google_Service_AdExchangeSeller_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_adclients = new Google_Service_AdExchangeSeller_AccountsAdclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_alerts = new Google_Service_AdExchangeSeller_AccountsAlerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_customchannels = new Google_Service_AdExchangeSeller_AccountsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_metadata_dimensions = new Google_Service_AdExchangeSeller_AccountsMetadataDimensions_Resource( - $this, - $this->serviceName, - 'dimensions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/metadata/dimensions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_metadata_metrics = new Google_Service_AdExchangeSeller_AccountsMetadataMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/metadata/metrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_preferreddeals = new Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource( - $this, - $this->serviceName, - 'preferreddeals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/preferreddeals/{dealId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dealId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/preferreddeals', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports = new Google_Service_AdExchangeSeller_AccountsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_reports_saved = new Google_Service_AdExchangeSeller_AccountsReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_urlchannels = new Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $accounts = $adexchangesellerService->accounts; - * - */ -class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Get information about the selected Ad Exchange account. (accounts.get) - * - * @param string $accountId Account to get information about. Tip: 'myaccount' - * is a valid ID. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account"); - } - - /** - * List all accounts available to this Ad Exchange account. - * (accounts.listAccounts) - * - * @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_AdExchangeSeller_Accounts - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Accounts"); - } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $adclients = $adexchangesellerService->adclients; - * - */ -class Google_Service_AdExchangeSeller_AccountsAdclients_Resource extends Google_Service_Resource -{ - - /** - * List all ad clients in this Ad Exchange account. - * (adclients.listAccountsAdclients) - * - * @param string $accountId Account to which the ad client belongs. - * @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 listAccountsAdclients($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients"); - } -} -/** - * The "alerts" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $alerts = $adexchangesellerService->alerts; - * - */ -class Google_Service_AdExchangeSeller_AccountsAlerts_Resource extends Google_Service_Resource -{ - - /** - * List the alerts for this Ad Exchange account. (alerts.listAccountsAlerts) - * - * @param string $accountId Account owning the alerts. - * @param array $optParams Optional parameters. - * - * @opt_param string locale The locale to use for translating alert messages. - * The account locale will be used if this is not supplied. The AdSense default - * (English) will be used if the supplied locale is invalid or unsupported. - * @return Google_Service_AdExchangeSeller_Alerts - */ - public function listAccountsAlerts($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts"); - } -} -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $customchannels = $adexchangesellerService->customchannels; - * - */ -class Google_Service_AdExchangeSeller_AccountsCustomchannels_Resource extends Google_Service_Resource -{ - - /** - * Get the specified custom channel from the specified ad client. - * (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_AdExchangeSeller_CustomChannel - */ - public function get($accountId, $adClientId, $customChannelId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel"); - } - - /** - * List all custom channels in the specified ad client for this Ad Exchange - * account. (customchannels.listAccountsCustomchannels) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); - } -} -/** - * The "metadata" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $metadata = $adexchangesellerService->metadata; - * - */ -class Google_Service_AdExchangeSeller_AccountsMetadata_Resource extends Google_Service_Resource -{ -} - -/** - * The "dimensions" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $dimensions = $adexchangesellerService->dimensions; - * - */ -class Google_Service_AdExchangeSeller_AccountsMetadataDimensions_Resource extends Google_Service_Resource -{ - - /** - * List the metadata for the dimensions available to this AdExchange account. - * (dimensions.listAccountsMetadataDimensions) - * - * @param string $accountId Account with visibility to the dimensions. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Metadata - */ - public function listAccountsMetadataDimensions($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); - } -} -/** - * The "metrics" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $metrics = $adexchangesellerService->metrics; - * - */ -class Google_Service_AdExchangeSeller_AccountsMetadataMetrics_Resource extends Google_Service_Resource -{ - - /** - * List the metadata for the metrics available to this AdExchange account. - * (metrics.listAccountsMetadataMetrics) - * - * @param string $accountId Account with visibility to the metrics. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Metadata - */ - public function listAccountsMetadataMetrics($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); - } -} -/** - * The "preferreddeals" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $preferreddeals = $adexchangesellerService->preferreddeals; - * - */ -class Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource extends Google_Service_Resource -{ - - /** - * Get information about the selected Ad Exchange Preferred Deal. - * (preferreddeals.get) - * - * @param string $accountId Account owning the deal. - * @param string $dealId Preferred deal to get information about. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_PreferredDeal - */ - public function get($accountId, $dealId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'dealId' => $dealId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); - } - - /** - * List the preferred deals for this Ad Exchange account. - * (preferreddeals.listAccountsPreferreddeals) - * - * @param string $accountId Account owning the deals. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_PreferredDeals - */ - public function listAccountsPreferreddeals($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals"); - } -} -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $reports = $adexchangesellerService->reports; - * - */ -class Google_Service_AdExchangeSeller_AccountsReports_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 $accountId Account which owns the generated 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_AdExchangeSeller_Report - */ - public function generate($accountId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); - } -} - -/** - * The "saved" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $saved = $adexchangesellerService->saved; - * - */ -class Google_Service_AdExchangeSeller_AccountsReportsSaved_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 $accountId Account owning the saved report. - * @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($accountId, $savedReportId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); - } - - /** - * List all saved reports in this Ad Exchange account. - * (saved.listAccountsReportsSaved) - * - * @param string $accountId Account owning the saved reports. - * @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 listAccountsReportsSaved($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports"); - } -} -/** - * The "urlchannels" collection of methods. - * Typical usage is: - * - * $adexchangesellerService = new Google_Service_AdExchangeSeller(...); - * $urlchannels = $adexchangesellerService->urlchannels; - * - */ -class Google_Service_AdExchangeSeller_AccountsUrlchannels_Resource extends Google_Service_Resource -{ - - /** - * List all URL channels in the specified ad client for this Ad Exchange - * account. (urlchannels.listAccountsUrlchannels) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels"); - } -} - - - - -class Google_Service_AdExchangeSeller_Account extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Accounts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_Account'; - protected $itemsDataType = 'array'; - 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_AdClient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; - protected $itemsDataType = 'array'; - 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_Alert extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $message; - public $severity; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_AdExchangeSeller_Alerts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeSeller_Alert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $id; - public $kind; - public $name; - protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo'; - protected $targetingInfoDataType = ''; - - - public function setCode($code) - { - $this->code = $code; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel'; - protected $itemsDataType = 'array'; - 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_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $advertiserName; - public $buyerNetworkName; - public $currencyCode; - public $endTime; - public $fixedCpm; - public $id; - public $kind; - public $startTime; - - - public function setAdvertiserName($advertiserName) - { - $this->advertiserName = $advertiserName; - } - public function getAdvertiserName() - { - return $this->advertiserName; - } - public function setBuyerNetworkName($buyerNetworkName) - { - $this->buyerNetworkName = $buyerNetworkName; - } - public function getBuyerNetworkName() - { - return $this->buyerNetworkName; - } - 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 setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdExchangeSeller_Report extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $averages; - protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $totalMatchedRows; - public $totals; - public $warnings; - - - public function setAverages($averages) - { - $this->averages = $averages; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_ReportingMetadataEntry extends Google_Collection -{ - protected $collection_key = 'supportedProducts'; - protected $internal_gapi_mappings = array( - ); - public $compatibleDimensions; - public $compatibleMetrics; - public $id; - public $kind; - public $requiredDimensions; - public $requiredMetrics; - public $supportedProducts; - - - public function setCompatibleDimensions($compatibleDimensions) - { - $this->compatibleDimensions = $compatibleDimensions; - } - public function getCompatibleDimensions() - { - return $this->compatibleDimensions; - } - public function setCompatibleMetrics($compatibleMetrics) - { - $this->compatibleMetrics = $compatibleMetrics; - } - public function getCompatibleMetrics() - { - return $this->compatibleMetrics; - } - 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 setRequiredDimensions($requiredDimensions) - { - $this->requiredDimensions = $requiredDimensions; - } - public function getRequiredDimensions() - { - return $this->requiredDimensions; - } - public function setRequiredMetrics($requiredMetrics) - { - $this->requiredMetrics = $requiredMetrics; - } - public function getRequiredMetrics() - { - return $this->requiredMetrics; - } - public function setSupportedProducts($supportedProducts) - { - $this->supportedProducts = $supportedProducts; - } - public function getSupportedProducts() - { - return $this->supportedProducts; - } -} - -class Google_Service_AdExchangeSeller_SavedReport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel'; - protected $itemsDataType = 'array'; - 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 deleted file mode 100644 index e8ad5ad70..000000000 --- a/src/Google/Service/AdSense.php +++ /dev/null @@ -1,3586 +0,0 @@ - - * Accesses AdSense publishers' inventory and generates performance reports.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AdSense extends Google_Service -{ - /** View and manage your AdSense data. */ - const ADSENSE = - "https://www.googleapis.com/auth/adsense"; - /** View your AdSense data. */ - const ADSENSE_READONLY = - "https://www.googleapis.com/auth/adsense.readonly"; - - public $accounts; - public $accounts_adclients; - public $accounts_adunits; - public $accounts_adunits_customchannels; - public $accounts_alerts; - public $accounts_customchannels; - public $accounts_customchannels_adunits; - public $accounts_payments; - public $accounts_reports; - public $accounts_reports_saved; - public $accounts_savedadstyles; - public $accounts_urlchannels; - public $adclients; - public $adunits; - public $adunits_customchannels; - public $alerts; - public $customchannels; - public $customchannels_adunits; - public $metadata_dimensions; - public $metadata_metrics; - public $payments; - public $reports; - public $reports_saved; - public $savedadstyles; - public $urlchannels; - - - /** - * Constructs the internal representation of the AdSense service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'adsense/v1.4/'; - $this->version = 'v1.4'; - $this->serviceName = 'adsense'; - - $this->accounts = new Google_Service_AdSense_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tree' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'accounts/{accountId}/alerts/{alertId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alertId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource( - $this, - $this->serviceName, - 'payments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/payments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'currency' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'useTimezoneReporting' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource( - $this, - $this->serviceName, - 'savedadstyles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'savedAdStyleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/savedadstyles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdSense_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->adunits = new Google_Service_AdSense_Adunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->alerts = new Google_Service_AdSense_Alerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'alerts/{alertId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'alertId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->customchannels = new Google_Service_AdSense_Customchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource( - $this, - $this->serviceName, - 'dimensions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/dimensions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/metrics', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->payments = new Google_Service_AdSense_Payments_Resource( - $this, - $this->serviceName, - 'payments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'payments', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->reports = new Google_Service_AdSense_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'currency' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'useTimezoneReporting' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource( - $this, - $this->serviceName, - 'savedadstyles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'savedadstyles/{savedAdStyleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'savedAdStyleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'savedadstyles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_Account"); - } - - /** - * List all accounts available to this AdSense account. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_Accounts"); - } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $adclients = $adsenseService->adclients; - * - */ -class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource -{ - - /** - * List all ad clients in the specified account. - * (adclients.listAccountsAdclients) - * - * @param string $accountId Account for which to list ad clients. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); - } -} -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); - } - - /** - * Get ad code for the specified ad unit. (adunits.getAdCode) - * - * @param string $accountId Account which contains the ad client. - * @param string $adClientId Ad client with contains the ad unit. - * @param string $adUnitId Ad unit to get the code for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdCode - */ - public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); - } - - /** - * List all ad units in the specified ad client for the specified account. - * (adunits.listAccountsAdunits) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive Whether to include inactive ad units. - * Default: true. - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } -} - -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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.listAccountsAdunitsCustomchannels) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client which contains the ad unit. - * @param string $adUnitId Ad unit for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } -} -/** - * The "alerts" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $alerts = $adsenseService->alerts; - * - */ -class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource -{ - - /** - * Dismiss (delete) the specified alert from the specified publisher AdSense - * account. (alerts.delete) - * - * @param string $accountId Account which contains the ad unit. - * @param string $alertId Alert to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $alertId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'alertId' => $alertId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * List the alerts for the specified AdSense account. - * (alerts.listAccountsAlerts) - * - * @param string $accountId Account for which to retrieve the alerts. - * @param array $optParams Optional parameters. - * - * @opt_param string locale The locale to use for translating alert messages. - * The account locale will be used if this is not supplied. The AdSense default - * (English) will be used if the supplied locale is invalid or unsupported. - * @return Google_Service_AdSense_Alerts - */ - public function listAccountsAlerts($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); - } -} -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); - } - - /** - * List all custom channels in the specified ad client for the specified - * account. (customchannels.listAccountsCustomchannels) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } -} - -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $adunits = $adsenseService->adunits; - * - */ -class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource -{ - - /** - * List all ad units in the specified custom channel. - * (adunits.listAccountsCustomchannelsAdunits) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client which contains the custom channel. - * @param string $customChannelId Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive Whether to include inactive ad units. - * Default: true. - * @opt_param int maxResults The maximum number of ad units to include in the - * response, used for paging. - * @opt_param string pageToken A continuation token, used to page through ad - * units. To retrieve the next page, set this parameter to the value of - * "nextPageToken" from the previous response. - * @return Google_Service_AdSense_AdUnits - */ - public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } -} -/** - * The "payments" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $payments = $adsenseService->payments; - * - */ -class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Resource -{ - - /** - * List the payments for the specified AdSense account. - * (payments.listAccountsPayments) - * - * @param string $accountId Account for which to retrieve the payments. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Payments - */ - public function listAccountsPayments($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Payments"); - } -} -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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. - * @opt_param bool useTimezoneReporting Whether the report should be generated - * in the AdSense account's local timezone. If false default PST/PDT timezone - * will be used. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($accountId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } -} - -/** - * The "saved" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } - - /** - * List all saved reports in the specified AdSense account. - * (saved.listAccountsReportsSaved) - * - * @param string $accountId Account to which the saved reports belong. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); - } -} -/** - * The "savedadstyles" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); - } - - /** - * List all saved ad styles in the specified account. - * (savedadstyles.listAccountsSavedadstyles) - * - * @param string $accountId Account for which to list saved ad styles. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); - } -} -/** - * The "urlchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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.listAccountsUrlchannels) - * - * @param string $accountId Account to which the ad client belongs. - * @param string $adClientId Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); - } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $adclients = $adsenseService->adclients; - * - */ -class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource -{ - - /** - * List all ad clients in this AdSense account. (adclients.listAdclients) - * - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); - } -} - -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); - } - - /** - * Get ad code for the specified ad unit. (adunits.getAdCode) - * - * @param string $adClientId Ad client with contains the ad unit. - * @param string $adUnitId Ad unit to get the code for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdCode - */ - public function getAdCode($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); - } - - /** - * List all ad units in the specified ad client for this AdSense account. - * (adunits.listAdunits) - * - * @param string $adClientId Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive Whether to include inactive ad units. - * Default: true. - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } -} - -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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.listAdunitsCustomchannels) - * - * @param string $adClientId Ad client which contains the ad unit. - * @param string $adUnitId Ad unit for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } -} - -/** - * The "alerts" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $alerts = $adsenseService->alerts; - * - */ -class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource -{ - - /** - * Dismiss (delete) the specified alert from the publisher's AdSense account. - * (alerts.delete) - * - * @param string $alertId Alert to delete. - * @param array $optParams Optional parameters. - */ - public function delete($alertId, $optParams = array()) - { - $params = array('alertId' => $alertId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * List the alerts for this AdSense account. (alerts.listAlerts) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale The locale to use for translating alert messages. - * The account locale will be used if this is not supplied. The AdSense default - * (English) will be used if the supplied locale is invalid or unsupported. - * @return Google_Service_AdSense_Alerts - */ - public function listAlerts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); - } -} - -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); - } - - /** - * List all custom channels in the specified ad client for this AdSense account. - * (customchannels.listCustomchannels) - * - * @param string $adClientId Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } -} - -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $adunits = $adsenseService->adunits; - * - */ -class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource -{ - - /** - * List all ad units in the specified custom channel. - * (adunits.listCustomchannelsAdunits) - * - * @param string $adClientId Ad client which contains the custom channel. - * @param string $customChannelId Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive Whether to include inactive ad units. - * Default: true. - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } -} - -/** - * The "metadata" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $metadata = $adsenseService->metadata; - * - */ -class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource -{ -} - -/** - * The "dimensions" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $dimensions = $adsenseService->dimensions; - * - */ -class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_Resource -{ - - /** - * List the metadata for the dimensions available to this AdSense account. - * (dimensions.listMetadataDimensions) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Metadata - */ - public function listMetadataDimensions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); - } -} -/** - * The "metrics" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $metrics = $adsenseService->metrics; - * - */ -class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Resource -{ - - /** - * List the metadata for the metrics available to this AdSense account. - * (metrics.listMetadataMetrics) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Metadata - */ - public function listMetadataMetrics($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); - } -} - -/** - * The "payments" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $payments = $adsenseService->payments; - * - */ -class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource -{ - - /** - * List the payments for this AdSense account. (payments.listPayments) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Payments - */ - public function listPayments($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Payments"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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. - * @opt_param bool useTimezoneReporting Whether the report should be generated - * in the AdSense account's local timezone. If false default PST/PDT timezone - * will be used. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($startDate, $endDate, $optParams = array()) - { - $params = array('startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } -} - -/** - * The "saved" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } - - /** - * List all saved reports in this AdSense account. (saved.listReportsSaved) - * - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); - } -} - -/** - * The "savedadstyles" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); - } - - /** - * List all saved ad styles in the user's account. - * (savedadstyles.listSavedadstyles) - * - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); - } -} - -/** - * The "urlchannels" collection of methods. - * Typical usage is: - * - * $adsenseService = new Google_Service_AdSense(...); - * $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.listUrlchannels) - * - * @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); - return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); - } -} - - - - -class Google_Service_AdSense_Account extends Google_Collection -{ - protected $collection_key = 'subAccounts'; - protected $internal_gapi_mappings = array( - "creationTime" => "creation_time", - ); - public $creationTime; - public $id; - public $kind; - public $name; - public $premium; - protected $subAccountsType = 'Google_Service_AdSense_Account'; - protected $subAccountsDataType = 'array'; - public $timezone; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - 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; - } - public function setTimezone($timezone) - { - $this->timezone = $timezone; - } - public function getTimezone() - { - return $this->timezone; - } -} - -class Google_Service_AdSense_Accounts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_Account'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_AdClient'; - protected $itemsDataType = 'array'; - 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_AdCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AdSense_AdStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $colorsType = 'Google_Service_AdSense_AdStyleColors'; - protected $colorsDataType = ''; - public $corners; - protected $fontType = 'Google_Service_AdSense_AdStyleFont'; - protected $fontDataType = ''; - public $kind; - - - public function setColors(Google_Service_AdSense_AdStyleColors $colors) - { - $this->colors = $colors; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $code; - protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings'; - protected $contentAdsSettingsDataType = ''; - protected $customStyleType = 'Google_Service_AdSense_AdStyle'; - protected $customStyleDataType = ''; - protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings'; - protected $feedAdsSettingsDataType = ''; - public $id; - public $kind; - protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings'; - protected $mobileContentAdsSettingsDataType = ''; - public $name; - public $savedStyleId; - public $status; - - - public function setCode($code) - { - $this->code = $code; - } - public function 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 $internal_gapi_mappings = array( - ); - protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption'; - protected $backupOptionDataType = ''; - public $size; - public $type; - - - public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption) - { - $this->backupOption = $backupOption; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_AdUnit'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $averages; - public $endDate; - protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $startDate; - public $totalMatchedRows; - public $totals; - public $warnings; - - - public function setAverages($averages) - { - $this->averages = $averages; - } - public function getAverages() - { - return $this->averages; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - 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 setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_Alert extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $isDismissible; - public $kind; - public $message; - public $severity; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsDismissible($isDismissible) - { - $this->isDismissible = $isDismissible; - } - public function getIsDismissible() - { - return $this->isDismissible; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_AdSense_Alerts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdSense_Alert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdSense_CustomChannel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $id; - public $kind; - public $name; - protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo'; - protected $targetingInfoDataType = ''; - - - public function setCode($code) - { - $this->code = $code; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_CustomChannel'; - protected $itemsDataType = 'array'; - 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_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdSense_Payment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $paymentAmount; - public $paymentAmountCurrencyCode; - public $paymentDate; - - - 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 setPaymentAmount($paymentAmount) - { - $this->paymentAmount = $paymentAmount; - } - public function getPaymentAmount() - { - return $this->paymentAmount; - } - public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode) - { - $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode; - } - public function getPaymentAmountCurrencyCode() - { - return $this->paymentAmountCurrencyCode; - } - public function setPaymentDate($paymentDate) - { - $this->paymentDate = $paymentDate; - } - public function getPaymentDate() - { - return $this->paymentDate; - } -} - -class Google_Service_AdSense_Payments extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AdSense_Payment'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection -{ - protected $collection_key = 'supportedProducts'; - protected $internal_gapi_mappings = array( - ); - public $compatibleDimensions; - public $compatibleMetrics; - public $id; - public $kind; - public $requiredDimensions; - public $requiredMetrics; - public $supportedProducts; - - - public function setCompatibleDimensions($compatibleDimensions) - { - $this->compatibleDimensions = $compatibleDimensions; - } - public function getCompatibleDimensions() - { - return $this->compatibleDimensions; - } - public function setCompatibleMetrics($compatibleMetrics) - { - $this->compatibleMetrics = $compatibleMetrics; - } - public function getCompatibleMetrics() - { - return $this->compatibleMetrics; - } - 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 setRequiredDimensions($requiredDimensions) - { - $this->requiredDimensions = $requiredDimensions; - } - public function getRequiredDimensions() - { - return $this->requiredDimensions; - } - public function setRequiredMetrics($requiredMetrics) - { - $this->requiredMetrics = $requiredMetrics; - } - public function getRequiredMetrics() - { - return $this->requiredMetrics; - } - public function setSupportedProducts($supportedProducts) - { - $this->supportedProducts = $supportedProducts; - } - public function getSupportedProducts() - { - return $this->supportedProducts; - } -} - -class Google_Service_AdSense_SavedAdStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $adStyleType = 'Google_Service_AdSense_AdStyle'; - protected $adStyleDataType = ''; - public $id; - public $kind; - public $name; - - - public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle) - { - $this->adStyle = $adStyle; - } - public function 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_SavedAdStyle'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_SavedReport'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSense_UrlChannel'; - protected $itemsDataType = 'array'; - 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 deleted file mode 100644 index 3bad7bd0d..000000000 --- a/src/Google/Service/AdSenseHost.php +++ /dev/null @@ -1,2166 +0,0 @@ - - * Generates performance reports, generates ad codes, and provides publisher - * management capabilities for AdSense Hosts.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AdSenseHost extends Google_Service -{ - /** View and manage your AdSense host data and associated accounts. */ - const ADSENSEHOST = - "https://www.googleapis.com/auth/adsensehost"; - - public $accounts; - public $accounts_adclients; - public $accounts_adunits; - public $accounts_reports; - public $adclients; - public $associationsessions; - public $customchannels; - public $reports; - public $urlchannels; - - - /** - * Constructs the internal representation of the AdSenseHost service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'adsensehost/v4.1/'; - $this->version = 'v4.1'; - $this->serviceName = 'adsensehost'; - - $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'filterAdClientId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hostCustomChannelId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'insert' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource( - $this, - $this->serviceName, - 'associationsessions', - array( - 'methods' => array( - 'start' => array( - 'path' => 'associationsessions/start', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productCode' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'websiteUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'userLocale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'websiteLocale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'verify' => array( - 'path' => 'associationsessions/verify', - 'httpMethod' => 'GET', - 'parameters' => array( - 'token' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_AdSenseHost_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSenseHost_Account"); - } - - /** - * List hosted accounts associated with this AdSense account by ad client id. - * (accounts.listAccounts) - * - * @param string $filterAdClientId Ad clients to list accounts for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_Accounts - */ - public function listAccounts($filterAdClientId, $optParams = array()) - { - $params = array('filterAdClientId' => $filterAdClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts"); - } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); - } - - /** - * List all hosted ad clients in the specified hosted account. - * (adclients.listAccountsAdclients) - * - * @param string $accountId Account for which to list ad clients. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); - } -} -/** - * The "adunits" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - - /** - * Get the specified host ad unit in this AdSense account. (adunits.get) - * - * @param string $accountId Account which contains the ad unit. - * @param string $adClientId Ad client for which to get ad unit. - * @param string $adUnitId Ad unit to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function get($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - - /** - * Get ad code for the specified ad unit, attaching the specified host custom - * channels. (adunits.getAdCode) - * - * @param string $accountId Account which contains the ad client. - * @param string $adClientId Ad client with contains the ad unit. - * @param string $adUnitId Ad unit to get the code for. - * @param array $optParams Optional parameters. - * - * @opt_param string hostCustomChannelId Host custom channel to attach to the ad - * code. - * @return Google_Service_AdSenseHost_AdCode - */ - public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode"); - } - - /** - * Insert the supplied ad unit into the specified publisher AdSense account. - * (adunits.insert) - * - * @param string $accountId Account which will contain the ad unit. - * @param string $adClientId Ad client into which to insert the ad unit. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - - /** - * List all ad units in the specified publisher's AdSense account. - * (adunits.listAccountsAdunits) - * - * @param string $accountId Account which contains the ad client. - * @param string $adClientId Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive Whether to include inactive ad units. - * Default: true. - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits"); - } - - /** - * Update the supplied ad unit in the specified publisher AdSense account. This - * method supports patch semantics. (adunits.patch) - * - * @param string $accountId Account which contains the ad client. - * @param string $adClientId Ad client which contains the ad unit. - * @param string $adUnitId Ad unit to get. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - - /** - * Update the supplied ad unit in the specified publisher AdSense account. - * (adunits.update) - * - * @param string $accountId Account which contains the ad client. - * @param string $adClientId Ad client which contains the ad unit. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit"); - } -} -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); - } -} - -/** - * The "adclients" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); - } - - /** - * List all host ad clients in this AdSense account. (adclients.listAdclients) - * - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); - } -} - -/** - * The "associationsessions" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); - } - - /** - * Verify an association session after the association callback returns from - * AdSense signup. (associationsessions.verify) - * - * @param string $token The token returned to the association callback URL. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AssociationSession - */ - public function verify($token, $optParams = array()) - { - $params = array('token' => $token); - $params = array_merge($params, $optParams); - return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession"); - } -} - -/** - * The "customchannels" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - - /** - * Get a specific custom channel from the host AdSense account. - * (customchannels.get) - * - * @param string $adClientId Ad client from which to get the custom channel. - * @param string $customChannelId Custom channel to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function get($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - - /** - * Add a new custom channel to the host AdSense account. (customchannels.insert) - * - * @param string $adClientId Ad client to which the new custom channel will be - * added. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - - /** - * List all host custom channels in this AdSense account. - * (customchannels.listCustomchannels) - * - * @param string $adClientId Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels"); - } - - /** - * Update a custom channel in the host AdSense account. This method supports - * patch semantics. (customchannels.patch) - * - * @param string $adClientId Ad client in which the custom channel will be - * updated. - * @param string $customChannelId Custom channel to get. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - - /** - * Update a custom channel in the host AdSense account. (customchannels.update) - * - * @param string $adClientId Ad client in which the custom channel will be - * updated. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); - } -} - -/** - * The "urlchannels" collection of methods. - * Typical usage is: - * - * $adsensehostService = new Google_Service_AdSenseHost(...); - * $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); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel"); - } - - /** - * Add a new URL channel to the host AdSense account. (urlchannels.insert) - * - * @param string $adClientId Ad client to which the new URL channel will be - * added. - * @param Google_UrlChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_UrlChannel - */ - public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel"); - } - - /** - * List all host URL channels in the host AdSense account. - * (urlchannels.listUrlchannels) - * - * @param string $adClientId Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels"); - } -} - - - - -class Google_Service_AdSenseHost_Account extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_Account'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AdSenseHost_AdClient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_AdClient'; - protected $itemsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors'; - protected $colorsDataType = ''; - public $corners; - protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont'; - protected $fontDataType = ''; - public $kind; - - - public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors) - { - $this->colors = $colors; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $code; - protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings'; - protected $contentAdsSettingsDataType = ''; - protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle'; - protected $customStyleDataType = ''; - public $id; - public $kind; - protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings'; - protected $mobileContentAdsSettingsDataType = ''; - public $name; - public $status; - - - public function setCode($code) - { - $this->code = $code; - } - public function 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 $internal_gapi_mappings = array( - ); - protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption'; - protected $backupOptionDataType = ''; - public $size; - public $type; - - - public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption) - { - $this->backupOption = $backupOption; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_AdUnit'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'productCodes'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $averages; - protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $totalMatchedRows; - public $totals; - public $warnings; - - - public function setAverages($averages) - { - $this->averages = $averages; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel'; - protected $itemsDataType = 'array'; - 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/Admin.php b/src/Google/Service/Admin.php deleted file mode 100644 index 3ed749973..000000000 --- a/src/Google/Service/Admin.php +++ /dev/null @@ -1,194 +0,0 @@ - - * Email Migration API lets you migrate emails of users to Google backends.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Admin extends Google_Service -{ - /** Manage email messages of users on your domain. */ - const EMAIL_MIGRATION = - "https://www.googleapis.com/auth/email.migration"; - - public $mail; - - - /** - * Constructs the internal representation of the Admin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'email/v2/users/'; - $this->version = 'email_migration_v2'; - $this->serviceName = 'admin'; - - $this->mail = new Google_Service_Admin_Mail_Resource( - $this, - $this->serviceName, - 'mail', - array( - 'methods' => array( - 'insert' => array( - 'path' => '{userKey}/mail', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "mail" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Admin(...); - * $mail = $adminService->mail; - * - */ -class Google_Service_Admin_Mail_Resource extends Google_Service_Resource -{ - - /** - * Insert Mail into Google's Gmail backends (mail.insert) - * - * @param string $userKey The email or immutable id of the user - * @param Google_MailItem $postBody - * @param array $optParams Optional parameters. - */ - public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } -} - - - - -class Google_Service_Admin_MailItem extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - public $isDeleted; - public $isDraft; - public $isInbox; - public $isSent; - public $isStarred; - public $isTrash; - public $isUnread; - public $kind; - public $labels; - - - public function setIsDeleted($isDeleted) - { - $this->isDeleted = $isDeleted; - } - public function getIsDeleted() - { - return $this->isDeleted; - } - public function setIsDraft($isDraft) - { - $this->isDraft = $isDraft; - } - public function getIsDraft() - { - return $this->isDraft; - } - public function setIsInbox($isInbox) - { - $this->isInbox = $isInbox; - } - public function getIsInbox() - { - return $this->isInbox; - } - public function setIsSent($isSent) - { - $this->isSent = $isSent; - } - public function getIsSent() - { - return $this->isSent; - } - public function setIsStarred($isStarred) - { - $this->isStarred = $isStarred; - } - public function getIsStarred() - { - return $this->isStarred; - } - public function setIsTrash($isTrash) - { - $this->isTrash = $isTrash; - } - public function getIsTrash() - { - return $this->isTrash; - } - public function setIsUnread($isUnread) - { - $this->isUnread = $isUnread; - } - public function getIsUnread() - { - return $this->isUnread; - } - 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; - } -} diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php deleted file mode 100644 index 32007c900..000000000 --- a/src/Google/Service/Analytics.php +++ /dev/null @@ -1,9943 +0,0 @@ - - * Views and manages your Google Analytics data.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Analytics extends Google_Service -{ - /** View and manage your Google Analytics data. */ - const ANALYTICS = - "https://www.googleapis.com/auth/analytics"; - /** Edit Google Analytics management entities. */ - const ANALYTICS_EDIT = - "https://www.googleapis.com/auth/analytics.edit"; - /** Manage Google Analytics Account users by email address. */ - const ANALYTICS_MANAGE_USERS = - "https://www.googleapis.com/auth/analytics.manage.users"; - /** View Google Analytics user permissions. */ - const ANALYTICS_MANAGE_USERS_READONLY = - "https://www.googleapis.com/auth/analytics.manage.users.readonly"; - /** Create a new Google Analytics account along with its default property and view. */ - const ANALYTICS_PROVISION = - "https://www.googleapis.com/auth/analytics.provision"; - /** View your Google Analytics data. */ - const ANALYTICS_READONLY = - "https://www.googleapis.com/auth/analytics.readonly"; - - public $data_ga; - public $data_mcf; - public $data_realtime; - public $management_accountSummaries; - public $management_accountUserLinks; - public $management_accounts; - public $management_customDataSources; - public $management_customDimensions; - public $management_customMetrics; - public $management_experiments; - public $management_filters; - public $management_goals; - public $management_profileFilterLinks; - public $management_profileUserLinks; - public $management_profiles; - public $management_segments; - public $management_unsampledReports; - public $management_uploads; - public $management_webPropertyAdWordsLinks; - public $management_webproperties; - public $management_webpropertyUserLinks; - public $metadata_columns; - public $provisioning; - - - /** - * Constructs the internal representation of the Analytics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'analytics/v3/'; - $this->version = 'v3'; - $this->serviceName = 'analytics'; - - $this->data_ga = new Google_Service_Analytics_DataGa_Resource( - $this, - $this->serviceName, - 'ga', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/ga', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'include-empty-rows' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'output' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'samplingLevel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'segment' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource( - $this, - $this->serviceName, - 'mcf', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/mcf', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'samplingLevel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource( - $this, - $this->serviceName, - 'realtime', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/realtime', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource( - $this, - $this->serviceName, - 'accountSummaries', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accountSummaries', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource( - $this, - $this->serviceName, - 'accountUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource( - $this, - $this->serviceName, - 'customDataSources', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_customDimensions = new Google_Service_Analytics_ManagementCustomDimensions_Resource( - $this, - $this->serviceName, - 'customDimensions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDimensionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDimensionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ignoreCustomDataSourceLinks' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDimensionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ignoreCustomDataSourceLinks' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->management_customMetrics = new Google_Service_Analytics_ManagementCustomMetrics_Resource( - $this, - $this->serviceName, - 'customMetrics', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customMetricId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customMetricId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ignoreCustomDataSourceLinks' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customMetricId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ignoreCustomDataSourceLinks' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource( - $this, - $this->serviceName, - 'experiments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource( - $this, - $this->serviceName, - 'filters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/filters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/filters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource( - $this, - $this->serviceName, - 'goals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource( - $this, - $this->serviceName, - 'profileFilterLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource( - $this, - $this->serviceName, - 'profileUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource( - $this, - $this->serviceName, - 'profiles', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource( - $this, - $this->serviceName, - 'segments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/segments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_unsampledReports = new Google_Service_Analytics_ManagementUnsampledReports_Resource( - $this, - $this->serviceName, - 'unsampledReports', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'unsampledReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'unsampledReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource( - $this, - $this->serviceName, - 'uploads', - array( - 'methods' => array( - 'deleteUploadData' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'uploadId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'uploadData' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource( - $this, - $this->serviceName, - 'webPropertyAdWordsLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource( - $this, - $this->serviceName, - 'webproperties', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource( - $this, - $this->serviceName, - 'webpropertyUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource( - $this, - $this->serviceName, - 'columns', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/{reportType}/columns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->provisioning = new Google_Service_Analytics_Provisioning_Resource( - $this, - $this->serviceName, - 'provisioning', - array( - 'methods' => array( - 'createAccountTicket' => array( - 'path' => 'provisioning/createAccountTicket', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "data" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $data = $analyticsService->data; - * - */ -class Google_Service_Analytics_Data_Resource extends Google_Service_Resource -{ -} - -/** - * The "ga" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $ga = $analyticsService->ga; - * - */ -class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource -{ - - /** - * Returns Analytics data for a view (profile). (ga.get) - * - * @param string $ids Unique table ID for retrieving Analytics data. Table ID is - * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. - * @param string $startDate Start date for fetching Analytics data. Requests can - * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., - * today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate End date for fetching Analytics data. Request can - * should specify an end date formatted as YYYY-MM-DD, or as a relative date - * (e.g., today, yesterday, or 7daysAgo). The default value is yesterday. - * @param string $metrics A comma-separated list of Analytics metrics. E.g., - * 'ga:sessions,ga:pageviews'. At least one metric must be specified. - * @param array $optParams Optional parameters. - * - * @opt_param 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 bool include-empty-rows The response will include empty rows if - * this parameter is set to true, the default is true - * @opt_param int max-results The maximum number of entries to include in this - * feed. - * @opt_param string output The selected format for the response. Default format - * is JSON. - * @opt_param string samplingLevel The desired sampling level. - * @opt_param string segment An Analytics 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, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_GaData"); - } -} -/** - * The "mcf" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $mcf = $analyticsService->mcf; - * - */ -class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource -{ - - /** - * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) - * - * @param string $ids Unique table ID for retrieving Analytics data. Table ID is - * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. - * @param string $startDate Start date for fetching Analytics data. Requests can - * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., - * today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate End date for fetching Analytics data. Requests can - * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., - * today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $metrics A comma-separated list of Multi-Channel Funnels - * metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one - * metric must be specified. - * @param array $optParams Optional parameters. - * - * @opt_param 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 samplingLevel The desired sampling level. - * @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, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_McfData"); - } -} -/** - * The "realtime" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $realtime = $analyticsService->realtime; - * - */ -class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Resource -{ - - /** - * Returns real time data for a view (profile). (realtime.get) - * - * @param string $ids Unique table ID for retrieving real time data. Table ID is - * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. - * @param string $metrics A comma-separated list of real time metrics. E.g., - * 'rt:activeUsers'. At least one metric must be specified. - * @param array $optParams Optional parameters. - * - * @opt_param string dimensions A comma-separated list of real time dimensions. - * E.g., 'rt:medium,rt:city'. - * @opt_param string filters A comma-separated list of dimension or metric - * filters to be applied to real time data. - * @opt_param int max-results The maximum number of entries to include in this - * feed. - * @opt_param string sort A comma-separated list of dimensions or metrics that - * determine the sort order for real time data. - * @return Google_Service_Analytics_RealtimeData - */ - public function get($ids, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData"); - } -} - -/** - * The "management" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $management = $analyticsService->management; - * - */ -class Google_Service_Analytics_Management_Resource extends Google_Service_Resource -{ -} - -/** - * The "accountSummaries" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $accountSummaries = $analyticsService->accountSummaries; - * - */ -class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Google_Service_Resource -{ - - /** - * Lists account summaries (lightweight tree comprised of - * accounts/properties/profiles) to which the user has access. - * (accountSummaries.listManagementAccountSummaries) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of account summaries to include - * in this response, where the largest acceptable value is 1000. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_AccountSummaries - */ - public function listManagementAccountSummaries($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries"); - } -} -/** - * The "accountUserLinks" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $accountUserLinks = $analyticsService->accountUserLinks; - * - */ -class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Google_Service_Resource -{ - - /** - * Removes a user from the given account. (accountUserLinks.delete) - * - * @param string $accountId Account ID to delete the user link for. - * @param string $linkId Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a new user to the given account. (accountUserLinks.insert) - * - * @param string $accountId Account ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - - /** - * Lists account-user links for a given account. - * (accountUserLinks.listManagementAccountUserLinks) - * - * @param string $accountId Account ID to retrieve the user links for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of account-user links to - * include in this response. - * @opt_param int start-index An index of the first account-user link to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementAccountUserLinks($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - - /** - * Updates permissions for an existing user on the given account. - * (accountUserLinks.update) - * - * @param string $accountId Account ID to update the account-user link for. - * @param string $linkId Link ID to update the account-user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } -} -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $accounts = $analyticsService->accounts; - * - */ -class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Service_Resource -{ - - /** - * Lists all accounts to which the user has access. - * (accounts.listManagementAccounts) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of accounts to include in this - * response. - * @opt_param int start-index An index of the first account to retrieve. Use - * this parameter as a pagination mechanism along with the max-results - * parameter. - * @return Google_Service_Analytics_Accounts - */ - public function listManagementAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Accounts"); - } -} -/** - * The "customDataSources" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $customDataSources = $analyticsService->customDataSources; - * - */ -class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Google_Service_Resource -{ - - /** - * List custom data sources to which the user has access. - * (customDataSources.listManagementCustomDataSources) - * - * @param string $accountId Account Id for the custom data sources to retrieve. - * @param string $webPropertyId Web property Id for the custom data sources to - * retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of custom data sources to - * include in this response. - * @opt_param int start-index A 1-based index of the first custom data source to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_CustomDataSources - */ - public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources"); - } -} -/** - * The "customDimensions" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $customDimensions = $analyticsService->customDimensions; - * - */ -class Google_Service_Analytics_ManagementCustomDimensions_Resource extends Google_Service_Resource -{ - - /** - * Get a custom dimension to which the user has access. (customDimensions.get) - * - * @param string $accountId Account ID for the custom dimension to retrieve. - * @param string $webPropertyId Web property ID for the custom dimension to - * retrieve. - * @param string $customDimensionId The ID of the custom dimension to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_CustomDimension - */ - public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension"); - } - - /** - * Create a new custom dimension. (customDimensions.insert) - * - * @param string $accountId Account ID for the custom dimension to create. - * @param string $webPropertyId Web property ID for the custom dimension to - * create. - * @param Google_CustomDimension $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_CustomDimension - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension"); - } - - /** - * Lists custom dimensions to which the user has access. - * (customDimensions.listManagementCustomDimensions) - * - * @param string $accountId Account ID for the custom dimensions to retrieve. - * @param string $webPropertyId Web property ID for the custom dimensions to - * retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of custom dimensions 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_CustomDimensions - */ - public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions"); - } - - /** - * Updates an existing custom dimension. This method supports patch semantics. - * (customDimensions.patch) - * - * @param string $accountId Account ID for the custom dimension to update. - * @param string $webPropertyId Web property ID for the custom dimension to - * update. - * @param string $customDimensionId Custom dimension ID for the custom dimension - * to update. - * @param Google_CustomDimension $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any - * warnings related to the custom dimension being linked to a custom data source - * / data set. - * @return Google_Service_Analytics_CustomDimension - */ - public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension"); - } - - /** - * Updates an existing custom dimension. (customDimensions.update) - * - * @param string $accountId Account ID for the custom dimension to update. - * @param string $webPropertyId Web property ID for the custom dimension to - * update. - * @param string $customDimensionId Custom dimension ID for the custom dimension - * to update. - * @param Google_CustomDimension $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any - * warnings related to the custom dimension being linked to a custom data source - * / data set. - * @return Google_Service_Analytics_CustomDimension - */ - public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension"); - } -} -/** - * The "customMetrics" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $customMetrics = $analyticsService->customMetrics; - * - */ -class Google_Service_Analytics_ManagementCustomMetrics_Resource extends Google_Service_Resource -{ - - /** - * Get a custom metric to which the user has access. (customMetrics.get) - * - * @param string $accountId Account ID for the custom metric to retrieve. - * @param string $webPropertyId Web property ID for the custom metric to - * retrieve. - * @param string $customMetricId The ID of the custom metric to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_CustomMetric - */ - public function get($accountId, $webPropertyId, $customMetricId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric"); - } - - /** - * Create a new custom metric. (customMetrics.insert) - * - * @param string $accountId Account ID for the custom metric to create. - * @param string $webPropertyId Web property ID for the custom dimension to - * create. - * @param Google_CustomMetric $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_CustomMetric - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric"); - } - - /** - * Lists custom metrics to which the user has access. - * (customMetrics.listManagementCustomMetrics) - * - * @param string $accountId Account ID for the custom metrics to retrieve. - * @param string $webPropertyId Web property ID for the custom metrics to - * retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of custom metrics 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_CustomMetrics - */ - public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics"); - } - - /** - * Updates an existing custom metric. This method supports patch semantics. - * (customMetrics.patch) - * - * @param string $accountId Account ID for the custom metric to update. - * @param string $webPropertyId Web property ID for the custom metric to update. - * @param string $customMetricId Custom metric ID for the custom metric to - * update. - * @param Google_CustomMetric $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any - * warnings related to the custom metric being linked to a custom data source / - * data set. - * @return Google_Service_Analytics_CustomMetric - */ - public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric"); - } - - /** - * Updates an existing custom metric. (customMetrics.update) - * - * @param string $accountId Account ID for the custom metric to update. - * @param string $webPropertyId Web property ID for the custom metric to update. - * @param string $customMetricId Custom metric ID for the custom metric to - * update. - * @param Google_CustomMetric $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any - * warnings related to the custom metric being linked to a custom data source / - * data set. - * @return Google_Service_Analytics_CustomMetric - */ - public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric"); - } -} -/** - * The "experiments" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $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 View (Profile) ID to which the experiment belongs - * @param string $experimentId ID of the experiment to delete - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns an experiment to which the user has access. (experiments.get) - * - * @param string $accountId Account ID to retrieve the experiment for. - * @param string $webPropertyId Web property ID to retrieve the experiment for. - * @param string $profileId View (Profile) ID to retrieve the experiment for. - * @param string $experimentId Experiment ID to retrieve the experiment for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Experiment"); - } - - /** - * Create a new experiment. (experiments.insert) - * - * @param string $accountId Account ID to create the experiment for. - * @param string $webPropertyId Web property ID to create the experiment for. - * @param string $profileId View (Profile) ID to create the experiment for. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Experiment"); - } - - /** - * Lists experiments to which the user has access. - * (experiments.listManagementExperiments) - * - * @param string $accountId Account ID to retrieve experiments for. - * @param string $webPropertyId Web property ID to retrieve experiments for. - * @param string $profileId View (Profile) ID to retrieve experiments for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of experiments to include in - * this response. - * @opt_param int start-index An index of the first experiment to retrieve. Use - * this parameter as a pagination mechanism along with the max-results - * parameter. - * @return Google_Service_Analytics_Experiments - */ - public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Experiments"); - } - - /** - * Update an existing experiment. This method supports patch semantics. - * (experiments.patch) - * - * @param string $accountId Account ID of the experiment to update. - * @param string $webPropertyId Web property ID of the experiment to update. - * @param string $profileId View (Profile) ID of the experiment to update. - * @param string $experimentId Experiment ID of the experiment to update. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Experiment"); - } - - /** - * Update an existing experiment. (experiments.update) - * - * @param string $accountId Account ID of the experiment to update. - * @param string $webPropertyId Web property ID of the experiment to update. - * @param string $profileId View (Profile) ID of the experiment to update. - * @param string $experimentId Experiment ID of the experiment to update. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Experiment"); - } -} -/** - * The "filters" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $filters = $analyticsService->filters; - * - */ -class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service_Resource -{ - - /** - * Delete a filter. (filters.delete) - * - * @param string $accountId Account ID to delete the filter for. - * @param string $filterId ID of the filter to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function delete($accountId, $filterId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Analytics_Filter"); - } - - /** - * Returns a filters to which the user has access. (filters.get) - * - * @param string $accountId Account ID to retrieve filters for. - * @param string $filterId Filter ID to retrieve filters for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function get($accountId, $filterId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Filter"); - } - - /** - * Create a new filter. (filters.insert) - * - * @param string $accountId Account ID to create filter for. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Filter"); - } - - /** - * Lists all filters for an account (filters.listManagementFilters) - * - * @param string $accountId Account ID to retrieve filters for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of filters to include in this - * response. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_Filters - */ - public function listManagementFilters($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Filters"); - } - - /** - * Updates an existing filter. This method supports patch semantics. - * (filters.patch) - * - * @param string $accountId Account ID to which the filter belongs. - * @param string $filterId ID of the filter to be updated. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Filter"); - } - - /** - * Updates an existing filter. (filters.update) - * - * @param string $accountId Account ID to which the filter belongs. - * @param string $filterId ID of the filter to be updated. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Filter"); - } -} -/** - * The "goals" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $goals = $analyticsService->goals; - * - */ -class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_Resource -{ - - /** - * Gets a goal to which the user has access. (goals.get) - * - * @param string $accountId Account ID to retrieve the goal for. - * @param string $webPropertyId Web property ID to retrieve the goal for. - * @param string $profileId View (Profile) ID to retrieve the goal for. - * @param string $goalId Goal ID to retrieve the goal for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Goal"); - } - - /** - * Create a new goal. (goals.insert) - * - * @param string $accountId Account ID to create the goal for. - * @param string $webPropertyId Web property ID to create the goal for. - * @param string $profileId View (Profile) ID to create the goal for. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Goal"); - } - - /** - * Lists goals to which the user has access. (goals.listManagementGoals) - * - * @param string $accountId Account ID to retrieve goals for. Can either be a - * specific account ID or '~all', which refers to all the accounts that user has - * access to. - * @param string $webPropertyId Web property ID to retrieve goals for. Can - * either be a specific web property ID or '~all', which refers to all the web - * properties that user has access to. - * @param string $profileId View (Profile) ID to retrieve goals for. Can either - * be a specific view (profile) ID or '~all', which refers to all the views - * (profiles) that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of goals to include in this - * response. - * @opt_param int start-index An index of the first goal to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_Goals - */ - public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Goals"); - } - - /** - * Updates an existing view (profile). This method supports patch semantics. - * (goals.patch) - * - * @param string $accountId Account ID to update the goal. - * @param string $webPropertyId Web property ID to update the goal. - * @param string $profileId View (Profile) ID to update the goal. - * @param string $goalId Index of the goal to be updated. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Goal"); - } - - /** - * Updates an existing view (profile). (goals.update) - * - * @param string $accountId Account ID to update the goal. - * @param string $webPropertyId Web property ID to update the goal. - * @param string $profileId View (Profile) ID to update the goal. - * @param string $goalId Index of the goal to be updated. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Goal"); - } -} -/** - * The "profileFilterLinks" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $profileFilterLinks = $analyticsService->profileFilterLinks; - * - */ -class Google_Service_Analytics_ManagementProfileFilterLinks_Resource extends Google_Service_Resource -{ - - /** - * Delete a profile filter link. (profileFilterLinks.delete) - * - * @param string $accountId Account ID to which the profile filter link belongs. - * @param string $webPropertyId Web property Id to which the profile filter link - * belongs. - * @param string $profileId Profile ID to which the filter link belongs. - * @param string $linkId ID of the profile filter link to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns a single profile filter link. (profileFilterLinks.get) - * - * @param string $accountId Account ID to retrieve profile filter link for. - * @param string $webPropertyId Web property Id to retrieve profile filter link - * for. - * @param string $profileId Profile ID to retrieve filter link for. - * @param string $linkId ID of the profile filter link. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - - /** - * Create a new profile filter link. (profileFilterLinks.insert) - * - * @param string $accountId Account ID to create profile filter link for. - * @param string $webPropertyId Web property Id to create profile filter link - * for. - * @param string $profileId Profile ID to create filter link for. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - - /** - * Lists all profile filter links for a profile. - * (profileFilterLinks.listManagementProfileFilterLinks) - * - * @param string $accountId Account ID to retrieve profile filter links for. - * @param string $webPropertyId Web property Id for profile filter links for. - * Can either be a specific web property ID or '~all', which refers to all the - * web properties that user has access to. - * @param string $profileId Profile ID to retrieve filter links for. Can either - * be a specific profile ID or '~all', which refers to all the profiles that - * user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of profile filter links to - * include in this response. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_ProfileFilterLinks - */ - public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks"); - } - - /** - * Update an existing profile filter link. This method supports patch semantics. - * (profileFilterLinks.patch) - * - * @param string $accountId Account ID to which profile filter link belongs. - * @param string $webPropertyId Web property Id to which profile filter link - * belongs - * @param string $profileId Profile ID to which filter link belongs - * @param string $linkId ID of the profile filter link to be updated. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - - /** - * Update an existing profile filter link. (profileFilterLinks.update) - * - * @param string $accountId Account ID to which profile filter link belongs. - * @param string $webPropertyId Web property Id to which profile filter link - * belongs - * @param string $profileId Profile ID to which filter link belongs - * @param string $linkId ID of the profile filter link to be updated. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } -} -/** - * The "profileUserLinks" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $profileUserLinks = $analyticsService->profileUserLinks; - * - */ -class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Google_Service_Resource -{ - - /** - * Removes a user from the given view (profile). (profileUserLinks.delete) - * - * @param string $accountId Account ID to delete the user link for. - * @param string $webPropertyId Web Property ID to delete the user link for. - * @param string $profileId View (Profile) ID to delete the user link for. - * @param string $linkId Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a new user to the given view (profile). (profileUserLinks.insert) - * - * @param string $accountId Account ID to create the user link for. - * @param string $webPropertyId Web Property ID to create the user link for. - * @param string $profileId View (Profile) ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - - /** - * Lists profile-user links for a given view (profile). - * (profileUserLinks.listManagementProfileUserLinks) - * - * @param string $accountId Account ID which the given view (profile) belongs - * to. - * @param string $webPropertyId Web Property ID which the given view (profile) - * belongs to. Can either be a specific web property ID or '~all', which refers - * to all the web properties that user has access to. - * @param string $profileId View (Profile) ID to retrieve the profile-user links - * for. Can either be a specific profile ID or '~all', which refers to all the - * profiles that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of profile-user links to - * include in this response. - * @opt_param int start-index An index of the first profile-user link to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - - /** - * Updates permissions for an existing user on the given view (profile). - * (profileUserLinks.update) - * - * @param string $accountId Account ID to update the user link for. - * @param string $webPropertyId Web Property ID to update the user link for. - * @param string $profileId View (Profile ID) to update the user link for. - * @param string $linkId Link ID to update the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } -} -/** - * The "profiles" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $profiles = $analyticsService->profiles; - * - */ -class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource -{ - - /** - * Deletes a view (profile). (profiles.delete) - * - * @param string $accountId Account ID to delete the view (profile) for. - * @param string $webPropertyId Web property ID to delete the view (profile) - * for. - * @param string $profileId ID of the view (profile) to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a view (profile) to which the user has access. (profiles.get) - * - * @param string $accountId Account ID to retrieve the view (profile) for. - * @param string $webPropertyId Web property ID to retrieve the view (profile) - * for. - * @param string $profileId View (Profile) ID to retrieve the view (profile) - * for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function get($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Profile"); - } - - /** - * Create a new view (profile). (profiles.insert) - * - * @param string $accountId Account ID to create the view (profile) for. - * @param string $webPropertyId Web property ID to create the view (profile) - * for. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Profile"); - } - - /** - * Lists views (profiles) to which the user has access. - * (profiles.listManagementProfiles) - * - * @param string $accountId Account ID for the view (profiles) to retrieve. Can - * either be a specific account ID or '~all', which refers to all the accounts - * to which the user has access. - * @param string $webPropertyId Web property ID for the views (profiles) to - * retrieve. Can either be a specific web property ID or '~all', which refers to - * all the web properties to which the user has access. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of views (profiles) to include - * in this response. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_Profiles - */ - public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Profiles"); - } - - /** - * Updates an existing view (profile). This method supports patch semantics. - * (profiles.patch) - * - * @param string $accountId Account ID to which the view (profile) belongs - * @param string $webPropertyId Web property ID to which the view (profile) - * belongs - * @param string $profileId ID of the view (profile) to be updated. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Profile"); - } - - /** - * Updates an existing view (profile). (profiles.update) - * - * @param string $accountId Account ID to which the view (profile) belongs - * @param string $webPropertyId Web property ID to which the view (profile) - * belongs - * @param string $profileId ID of the view (profile) to be updated. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Profile"); - } -} -/** - * The "segments" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $segments = $analyticsService->segments; - * - */ -class Google_Service_Analytics_ManagementSegments_Resource extends Google_Service_Resource -{ - - /** - * Lists segments to which the user has access. - * (segments.listManagementSegments) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of segments to include in this - * response. - * @opt_param int start-index An index of the first segment to retrieve. Use - * this parameter as a pagination mechanism along with the max-results - * parameter. - * @return Google_Service_Analytics_Segments - */ - public function listManagementSegments($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Segments"); - } -} -/** - * The "unsampledReports" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $unsampledReports = $analyticsService->unsampledReports; - * - */ -class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Google_Service_Resource -{ - - /** - * Deletes an unsampled report. (unsampledReports.delete) - * - * @param string $accountId Account ID to delete the unsampled report for. - * @param string $webPropertyId Web property ID to delete the unsampled reports - * for. - * @param string $profileId View (Profile) ID to delete the unsampled report - * for. - * @param string $unsampledReportId ID of the unsampled report to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns a single unsampled report. (unsampledReports.get) - * - * @param string $accountId Account ID to retrieve unsampled report for. - * @param string $webPropertyId Web property ID to retrieve unsampled reports - * for. - * @param string $profileId View (Profile) ID to retrieve unsampled report for. - * @param string $unsampledReportId ID of the unsampled report to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_UnsampledReport - */ - public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport"); - } - - /** - * Create a new unsampled report. (unsampledReports.insert) - * - * @param string $accountId Account ID to create the unsampled report for. - * @param string $webPropertyId Web property ID to create the unsampled report - * for. - * @param string $profileId View (Profile) ID to create the unsampled report - * for. - * @param Google_UnsampledReport $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_UnsampledReport - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_UnsampledReport $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport"); - } - - /** - * Lists unsampled reports to which the user has access. - * (unsampledReports.listManagementUnsampledReports) - * - * @param string $accountId Account ID to retrieve unsampled reports for. Must - * be a specific account ID, ~all is not supported. - * @param string $webPropertyId Web property ID to retrieve unsampled reports - * for. Must be a specific web property ID, ~all is not supported. - * @param string $profileId View (Profile) ID to retrieve unsampled reports for. - * Must be a specific view (profile) ID, ~all is not supported. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of unsampled reports to include - * in this response. - * @opt_param int start-index An index of the first unsampled report to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_UnsampledReports - */ - public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_UnsampledReports"); - } -} -/** - * The "uploads" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $uploads = $analyticsService->uploads; - * - */ -class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service_Resource -{ - - /** - * Delete data associated with a previous upload. (uploads.deleteUploadData) - * - * @param string $accountId Account Id for the uploads to be deleted. - * @param string $webPropertyId Web property Id for the uploads to be deleted. - * @param string $customDataSourceId Custom data source Id for the uploads to be - * deleted. - * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody - * @param array $optParams Optional parameters. - */ - public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteUploadData', array($params)); - } - - /** - * List uploads to which the user has access. (uploads.get) - * - * @param string $accountId Account Id for the upload to retrieve. - * @param string $webPropertyId Web property Id for the upload to retrieve. - * @param string $customDataSourceId Custom data source Id for upload to - * retrieve. - * @param string $uploadId Upload Id to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Upload - */ - public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Upload"); - } - - /** - * List uploads to which the user has access. (uploads.listManagementUploads) - * - * @param string $accountId Account Id for the uploads to retrieve. - * @param string $webPropertyId Web property Id for the uploads to retrieve. - * @param string $customDataSourceId Custom data source Id for uploads to - * retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of uploads to include in this - * response. - * @opt_param int start-index A 1-based index of the first upload to retrieve. - * Use this parameter as a pagination mechanism along with the max-results - * parameter. - * @return Google_Service_Analytics_Uploads - */ - public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); - } - - /** - * Upload data for a custom data source. (uploads.uploadData) - * - * @param string $accountId Account Id associated with the upload. - * @param string $webPropertyId Web property UA-string associated with the - * upload. - * @param string $customDataSourceId Custom data source Id to which the data - * being uploaded belongs. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Upload - */ - public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload"); - } -} -/** - * The "webPropertyAdWordsLinks" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $webPropertyAdWordsLinks = $analyticsService->webPropertyAdWordsLinks; - * - */ -class Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extends Google_Service_Resource -{ - - /** - * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete) - * - * @param string $accountId ID of the account which the given web property - * belongs to. - * @param string $webPropertyId Web property ID to delete the AdWords link for. - * @param string $webPropertyAdWordsLinkId Web property AdWords link ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns a web property-AdWords link to which the user has access. - * (webPropertyAdWordsLinks.get) - * - * @param string $accountId ID of the account which the given web property - * belongs to. - * @param string $webPropertyId Web property ID to retrieve the AdWords link - * for. - * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - - /** - * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert) - * - * @param string $accountId ID of the Google Analytics account to create the - * link for. - * @param string $webPropertyId Web property ID to create the link for. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - - /** - * Lists webProperty-AdWords links for a given web property. - * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) - * - * @param string $accountId ID of the account which the given web property - * belongs to. - * @param string $webPropertyId Web property ID to retrieve the AdWords links - * for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of webProperty-AdWords links to - * include in this response. - * @opt_param int start-index An index of the first webProperty-AdWords link to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_EntityAdWordsLinks - */ - public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks"); - } - - /** - * Updates an existing webProperty-AdWords link. This method supports patch - * semantics. (webPropertyAdWordsLinks.patch) - * - * @param string $accountId ID of the account which the given web property - * belongs to. - * @param string $webPropertyId Web property ID to retrieve the AdWords link - * for. - * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - - /** - * Updates an existing webProperty-AdWords link. - * (webPropertyAdWordsLinks.update) - * - * @param string $accountId ID of the account which the given web property - * belongs to. - * @param string $webPropertyId Web property ID to retrieve the AdWords link - * for. - * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } -} -/** - * The "webproperties" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $webproperties = $analyticsService->webproperties; - * - */ -class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_Service_Resource -{ - - /** - * Gets a web property to which the user has access. (webproperties.get) - * - * @param string $accountId Account ID to retrieve the web property for. - * @param string $webPropertyId ID to retrieve the web property for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function get($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Webproperty"); - } - - /** - * Create a new property if the account has fewer than 20 properties. Web - * properties are visible in the Google Analytics interface only if they have at - * least one profile. (webproperties.insert) - * - * @param string $accountId Account ID to create the web property for. - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty"); - } - - /** - * Lists web properties to which the user has access. - * (webproperties.listManagementWebproperties) - * - * @param string $accountId Account ID to retrieve web properties for. Can - * either be a specific account ID or '~all', which refers to all the accounts - * that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of web properties to include in - * this response. - * @opt_param int start-index An index of the first entity to retrieve. Use this - * parameter as a pagination mechanism along with the max-results parameter. - * @return Google_Service_Analytics_Webproperties - */ - public function listManagementWebproperties($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Webproperties"); - } - - /** - * Updates an existing web property. This method supports patch semantics. - * (webproperties.patch) - * - * @param string $accountId Account ID to which the web property belongs - * @param string $webPropertyId Web property ID - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty"); - } - - /** - * Updates an existing web property. (webproperties.update) - * - * @param string $accountId Account ID to which the web property belongs - * @param string $webPropertyId Web property ID - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Webproperty"); - } -} -/** - * The "webpropertyUserLinks" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks; - * - */ -class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends Google_Service_Resource -{ - - /** - * Removes a user from the given web property. (webpropertyUserLinks.delete) - * - * @param string $accountId Account ID to delete the user link for. - * @param string $webPropertyId Web Property ID to delete the user link for. - * @param string $linkId Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a new user to the given web property. (webpropertyUserLinks.insert) - * - * @param string $accountId Account ID to create the user link for. - * @param string $webPropertyId Web Property ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - - /** - * Lists webProperty-user links for a given web property. - * (webpropertyUserLinks.listManagementWebpropertyUserLinks) - * - * @param string $accountId Account ID which the given web property belongs to. - * @param string $webPropertyId Web Property ID for the webProperty-user links - * to retrieve. Can either be a specific web property ID or '~all', which refers - * to all the web properties that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of webProperty-user Links to - * include in this response. - * @opt_param int start-index An index of the first webProperty-user link to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - - /** - * Updates permissions for an existing user on the given web property. - * (webpropertyUserLinks.update) - * - * @param string $accountId Account ID to update the account-user link for. - * @param string $webPropertyId Web property ID to update the account-user link - * for. - * @param string $linkId Link ID to update the account-user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } -} - -/** - * The "metadata" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $metadata = $analyticsService->metadata; - * - */ -class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource -{ -} - -/** - * The "columns" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $columns = $analyticsService->columns; - * - */ -class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_Resource -{ - - /** - * Lists all columns for a report type (columns.listMetadataColumns) - * - * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' - * corresponds to the Core Reporting API - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Columns - */ - public function listMetadataColumns($reportType, $optParams = array()) - { - $params = array('reportType' => $reportType); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Columns"); - } -} - -/** - * The "provisioning" collection of methods. - * Typical usage is: - * - * $analyticsService = new Google_Service_Analytics(...); - * $provisioning = $analyticsService->provisioning; - * - */ -class Google_Service_Analytics_Provisioning_Resource extends Google_Service_Resource -{ - - /** - * Creates an account ticket. (provisioning.createAccountTicket) - * - * @param Google_AccountTicket $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_AccountTicket - */ - public function createAccountTicket(Google_Service_Analytics_AccountTicket $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createAccountTicket', array($params), "Google_Service_Analytics_AccountTicket"); - } -} - - - - -class Google_Service_Analytics_Account extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $childLinkType = 'Google_Service_Analytics_AccountChildLink'; - protected $childLinkDataType = ''; - public $created; - public $id; - public $kind; - public $name; - protected $permissionsType = 'Google_Service_Analytics_AccountPermissions'; - protected $permissionsDataType = ''; - public $selfLink; - public $updated; - - - public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink) - { - $this->childLink = $childLink; - } - public function getChildLink() - { - return $this->childLink; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } -} - -class Google_Service_Analytics_AccountChildLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AccountPermissions extends Google_Collection -{ - protected $collection_key = 'effective'; - protected $internal_gapi_mappings = array( - ); - public $effective; - - - public function setEffective($effective) - { - $this->effective = $effective; - } - public function getEffective() - { - return $this->effective; - } -} - -class Google_Service_Analytics_AccountRef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $href; - public $id; - public $kind; - public $name; - - - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Analytics_AccountSummaries extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_AccountSummary'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_AccountSummary extends Google_Collection -{ - protected $collection_key = 'webProperties'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $name; - protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary'; - protected $webPropertiesDataType = 'array'; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setWebProperties($webProperties) - { - $this->webProperties = $webProperties; - } - public function getWebProperties() - { - return $this->webProperties; - } -} - -class Google_Service_Analytics_AccountTicket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountType = 'Google_Service_Analytics_Account'; - protected $accountDataType = ''; - public $id; - public $kind; - protected $profileType = 'Google_Service_Analytics_Profile'; - protected $profileDataType = ''; - public $redirectUri; - protected $webpropertyType = 'Google_Service_Analytics_Webproperty'; - protected $webpropertyDataType = ''; - - - public function setAccount(Google_Service_Analytics_Account $account) - { - $this->account = $account; - } - public function getAccount() - { - return $this->account; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProfile(Google_Service_Analytics_Profile $profile) - { - $this->profile = $profile; - } - public function getProfile() - { - return $this->profile; - } - public function setRedirectUri($redirectUri) - { - $this->redirectUri = $redirectUri; - } - public function getRedirectUri() - { - return $this->redirectUri; - } - public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty) - { - $this->webproperty = $webproperty; - } - public function getWebproperty() - { - return $this->webproperty; - } -} - -class Google_Service_Analytics_Accounts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Account'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_AdWordsAccount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoTaggingEnabled; - public $customerId; - public $kind; - - - public function setAutoTaggingEnabled($autoTaggingEnabled) - { - $this->autoTaggingEnabled = $autoTaggingEnabled; - } - public function getAutoTaggingEnabled() - { - return $this->autoTaggingEnabled; - } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - public function getCustomerId() - { - return $this->customerId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection -{ - protected $collection_key = 'customDataImportUids'; - protected $internal_gapi_mappings = array( - ); - public $customDataImportUids; - - - public function setCustomDataImportUids($customDataImportUids) - { - $this->customDataImportUids = $customDataImportUids; - } - public function getCustomDataImportUids() - { - return $this->customDataImportUids; - } -} - -class Google_Service_Analytics_Column extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $attributes; - public $id; - public $kind; - - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - public function getAttributes() - { - return $this->attributes; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Analytics_Columns extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $attributeNames; - public $etag; - protected $itemsType = 'Google_Service_Analytics_Column'; - protected $itemsDataType = 'array'; - public $kind; - public $totalResults; - - - public function setAttributeNames($attributeNames) - { - $this->attributeNames = $attributeNames; - } - public function getAttributeNames() - { - return $this->attributeNames; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } -} - -class Google_Service_Analytics_CustomDataSource extends Google_Collection -{ - protected $collection_key = 'profilesLinked'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink'; - protected $childLinkDataType = ''; - public $created; - public $description; - public $id; - public $importBehavior; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink'; - protected $parentLinkDataType = ''; - public $profilesLinked; - public $selfLink; - public $type; - public $updated; - public $uploadType; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink) - { - $this->childLink = $childLink; - } - public function getChildLink() - { - return $this->childLink; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImportBehavior($importBehavior) - { - $this->importBehavior = $importBehavior; - } - public function getImportBehavior() - { - return $this->importBehavior; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setProfilesLinked($profilesLinked) - { - $this->profilesLinked = $profilesLinked; - } - public function getProfilesLinked() - { - return $this->profilesLinked; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setUploadType($uploadType) - { - $this->uploadType = $uploadType; - } - public function getUploadType() - { - return $this->uploadType; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_CustomDataSource'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_CustomDimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $created; - public $id; - public $index; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_CustomDimensionParentLink'; - protected $parentLinkDataType = ''; - public $scope; - public $selfLink; - public $updated; - 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 setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_CustomDimensionParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setScope($scope) - { - $this->scope = $scope; - } - public function getScope() - { - return $this->scope; - } - 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_CustomDimensionParentLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CustomDimensions extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_CustomDimension'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_CustomMetric extends Google_Model -{ - protected $internal_gapi_mappings = array( - "maxValue" => "max_value", - "minValue" => "min_value", - ); - public $accountId; - public $active; - public $created; - public $id; - public $index; - public $kind; - public $maxValue; - public $minValue; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_CustomMetricParentLink'; - protected $parentLinkDataType = ''; - public $scope; - public $selfLink; - public $type; - public $updated; - 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 setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - 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 setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_CustomMetricParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setScope($scope) - { - $this->scope = $scope; - } - public function getScope() - { - return $this->scope; - } - 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 setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_CustomMetricParentLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CustomMetrics extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_CustomMetric'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection -{ - protected $collection_key = 'profileIds'; - protected $internal_gapi_mappings = array( - ); - protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount'; - protected $adWordsAccountsDataType = 'array'; - protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity'; - protected $entityDataType = ''; - public $id; - public $kind; - public $name; - public $profileIds; - public $selfLink; - - - public function setAdWordsAccounts($adWordsAccounts) - { - $this->adWordsAccounts = $adWordsAccounts; - } - public function getAdWordsAccounts() - { - return $this->adWordsAccounts; - } - public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $entity) - { - $this->entity = $entity; - } - public function getEntity() - { - return $this->entity; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProfileIds($profileIds) - { - $this->profileIds = $profileIds; - } - public function getProfileIds() - { - return $this->profileIds; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; - protected $webPropertyRefDataType = ''; - - - public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) - { - $this->webPropertyRef = $webPropertyRef; - } - public function getWebPropertyRef() - { - return $this->webPropertyRef; - } -} - -class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } -} - -class Google_Service_Analytics_EntityUserLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity'; - protected $entityDataType = ''; - public $id; - public $kind; - protected $permissionsType = 'Google_Service_Analytics_EntityUserLinkPermissions'; - protected $permissionsDataType = ''; - public $selfLink; - protected $userRefType = 'Google_Service_Analytics_UserRef'; - protected $userRefDataType = ''; - - - public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity) - { - $this->entity = $entity; - } - public function getEntity() - { - return $this->entity; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUserRef(Google_Service_Analytics_UserRef $userRef) - { - $this->userRef = $userRef; - } - public function getUserRef() - { - return $this->userRef; - } -} - -class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountRefType = 'Google_Service_Analytics_AccountRef'; - protected $accountRefDataType = ''; - protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; - protected $profileRefDataType = ''; - protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; - protected $webPropertyRefDataType = ''; - - - public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef) - { - $this->accountRef = $accountRef; - } - public function getAccountRef() - { - return $this->accountRef; - } - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) - { - $this->profileRef = $profileRef; - } - public function getProfileRef() - { - return $this->profileRef; - } - public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) - { - $this->webPropertyRef = $webPropertyRef; - } - public function getWebPropertyRef() - { - return $this->webPropertyRef; - } -} - -class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection -{ - protected $collection_key = 'local'; - protected $internal_gapi_mappings = array( - ); - public $effective; - public $local; - - - public function setEffective($effective) - { - $this->effective = $effective; - } - public function getEffective() - { - return $this->effective; - } - public function setLocal($local) - { - $this->local = $local; - } - public function getLocal() - { - return $this->local; - } -} - -class Google_Service_Analytics_EntityUserLinks extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_EntityUserLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } -} - -class Google_Service_Analytics_Experiment extends Google_Collection -{ - protected $collection_key = 'variations'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $created; - public $description; - public $editableInGaUi; - public $endTime; - public $equalWeighting; - public $id; - public $internalWebPropertyId; - public $kind; - public $minimumExperimentLengthInDays; - public $name; - public $objectiveMetric; - public $optimizationType; - protected $parentLinkType = 'Google_Service_Analytics_ExperimentParentLink'; - protected $parentLinkDataType = ''; - public $profileId; - public $reasonExperimentEnded; - public $rewriteVariationUrlsAsOriginal; - public $selfLink; - public $servingFramework; - public $snippet; - public $startTime; - public $status; - public $trafficCoverage; - public $updated; - protected $variationsType = 'Google_Service_Analytics_ExperimentVariations'; - protected $variationsDataType = 'array'; - public $webPropertyId; - public $winnerConfidenceLevel; - public $winnerFound; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEditableInGaUi($editableInGaUi) - { - $this->editableInGaUi = $editableInGaUi; - } - public function getEditableInGaUi() - { - return $this->editableInGaUi; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEqualWeighting($equalWeighting) - { - $this->equalWeighting = $equalWeighting; - } - public function getEqualWeighting() - { - return $this->equalWeighting; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) - { - $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; - } - public function getMinimumExperimentLengthInDays() - { - return $this->minimumExperimentLengthInDays; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setObjectiveMetric($objectiveMetric) - { - $this->objectiveMetric = $objectiveMetric; - } - public function getObjectiveMetric() - { - return $this->objectiveMetric; - } - public function setOptimizationType($optimizationType) - { - $this->optimizationType = $optimizationType; - } - public function getOptimizationType() - { - return $this->optimizationType; - } - public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setReasonExperimentEnded($reasonExperimentEnded) - { - $this->reasonExperimentEnded = $reasonExperimentEnded; - } - public function getReasonExperimentEnded() - { - return $this->reasonExperimentEnded; - } - public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) - { - $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; - } - public function getRewriteVariationUrlsAsOriginal() - { - return $this->rewriteVariationUrlsAsOriginal; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServingFramework($servingFramework) - { - $this->servingFramework = $servingFramework; - } - public function getServingFramework() - { - return $this->servingFramework; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTrafficCoverage($trafficCoverage) - { - $this->trafficCoverage = $trafficCoverage; - } - public function getTrafficCoverage() - { - return $this->trafficCoverage; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setVariations($variations) - { - $this->variations = $variations; - } - public function getVariations() - { - return $this->variations; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } - public function setWinnerConfidenceLevel($winnerConfidenceLevel) - { - $this->winnerConfidenceLevel = $winnerConfidenceLevel; - } - public function getWinnerConfidenceLevel() - { - return $this->winnerConfidenceLevel; - } - public function setWinnerFound($winnerFound) - { - $this->winnerFound = $winnerFound; - } - public function getWinnerFound() - { - return $this->winnerFound; - } -} - -class Google_Service_Analytics_ExperimentParentLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Experiment'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_Filter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $advancedDetailsType = 'Google_Service_Analytics_FilterAdvancedDetails'; - protected $advancedDetailsDataType = ''; - public $created; - protected $excludeDetailsType = 'Google_Service_Analytics_FilterExpression'; - protected $excludeDetailsDataType = ''; - public $id; - protected $includeDetailsType = 'Google_Service_Analytics_FilterExpression'; - protected $includeDetailsDataType = ''; - public $kind; - protected $lowercaseDetailsType = 'Google_Service_Analytics_FilterLowercaseDetails'; - protected $lowercaseDetailsDataType = ''; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_FilterParentLink'; - protected $parentLinkDataType = ''; - protected $searchAndReplaceDetailsType = 'Google_Service_Analytics_FilterSearchAndReplaceDetails'; - protected $searchAndReplaceDetailsDataType = ''; - public $selfLink; - public $type; - public $updated; - protected $uppercaseDetailsType = 'Google_Service_Analytics_FilterUppercaseDetails'; - protected $uppercaseDetailsDataType = ''; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetails $advancedDetails) - { - $this->advancedDetails = $advancedDetails; - } - public function getAdvancedDetails() - { - return $this->advancedDetails; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setExcludeDetails(Google_Service_Analytics_FilterExpression $excludeDetails) - { - $this->excludeDetails = $excludeDetails; - } - public function getExcludeDetails() - { - return $this->excludeDetails; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIncludeDetails(Google_Service_Analytics_FilterExpression $includeDetails) - { - $this->includeDetails = $includeDetails; - } - public function getIncludeDetails() - { - return $this->includeDetails; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDetails $lowercaseDetails) - { - $this->lowercaseDetails = $lowercaseDetails; - } - public function getLowercaseDetails() - { - return $this->lowercaseDetails; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_FilterParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearchAndReplaceDetails $searchAndReplaceDetails) - { - $this->searchAndReplaceDetails = $searchAndReplaceDetails; - } - public function getSearchAndReplaceDetails() - { - return $this->searchAndReplaceDetails; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDetails $uppercaseDetails) - { - $this->uppercaseDetails = $uppercaseDetails; - } - public function getUppercaseDetails() - { - return $this->uppercaseDetails; - } -} - -class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caseSensitive; - public $extractA; - public $extractB; - public $fieldA; - public $fieldAIndex; - public $fieldARequired; - public $fieldB; - public $fieldBIndex; - public $fieldBRequired; - public $outputConstructor; - public $outputToField; - public $outputToFieldIndex; - public $overrideOutputField; - - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - public function getCaseSensitive() - { - return $this->caseSensitive; - } - public function setExtractA($extractA) - { - $this->extractA = $extractA; - } - public function getExtractA() - { - return $this->extractA; - } - public function setExtractB($extractB) - { - $this->extractB = $extractB; - } - public function getExtractB() - { - return $this->extractB; - } - public function setFieldA($fieldA) - { - $this->fieldA = $fieldA; - } - public function getFieldA() - { - return $this->fieldA; - } - public function setFieldAIndex($fieldAIndex) - { - $this->fieldAIndex = $fieldAIndex; - } - public function getFieldAIndex() - { - return $this->fieldAIndex; - } - public function setFieldARequired($fieldARequired) - { - $this->fieldARequired = $fieldARequired; - } - public function getFieldARequired() - { - return $this->fieldARequired; - } - public function setFieldB($fieldB) - { - $this->fieldB = $fieldB; - } - public function getFieldB() - { - return $this->fieldB; - } - public function setFieldBIndex($fieldBIndex) - { - $this->fieldBIndex = $fieldBIndex; - } - public function getFieldBIndex() - { - return $this->fieldBIndex; - } - public function setFieldBRequired($fieldBRequired) - { - $this->fieldBRequired = $fieldBRequired; - } - public function getFieldBRequired() - { - return $this->fieldBRequired; - } - public function setOutputConstructor($outputConstructor) - { - $this->outputConstructor = $outputConstructor; - } - public function getOutputConstructor() - { - return $this->outputConstructor; - } - public function setOutputToField($outputToField) - { - $this->outputToField = $outputToField; - } - public function getOutputToField() - { - return $this->outputToField; - } - public function setOutputToFieldIndex($outputToFieldIndex) - { - $this->outputToFieldIndex = $outputToFieldIndex; - } - public function getOutputToFieldIndex() - { - return $this->outputToFieldIndex; - } - public function setOverrideOutputField($overrideOutputField) - { - $this->overrideOutputField = $overrideOutputField; - } - public function getOverrideOutputField() - { - return $this->overrideOutputField; - } -} - -class Google_Service_Analytics_FilterExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caseSensitive; - public $expressionValue; - public $field; - public $fieldIndex; - public $kind; - public $matchType; - - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - public function getCaseSensitive() - { - return $this->caseSensitive; - } - public function setExpressionValue($expressionValue) - { - $this->expressionValue = $expressionValue; - } - public function getExpressionValue() - { - return $this->expressionValue; - } - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setFieldIndex($fieldIndex) - { - $this->fieldIndex = $fieldIndex; - } - public function getFieldIndex() - { - return $this->fieldIndex; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } - public function getMatchType() - { - return $this->matchType; - } -} - -class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $field; - public $fieldIndex; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setFieldIndex($fieldIndex) - { - $this->fieldIndex = $fieldIndex; - } - public function getFieldIndex() - { - return $this->fieldIndex; - } -} - -class Google_Service_Analytics_FilterParentLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $href; - public $type; - - - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_FilterRef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $href; - public $id; - public $kind; - public $name; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caseSensitive; - public $field; - public $fieldIndex; - public $replaceString; - public $searchString; - - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - public function getCaseSensitive() - { - return $this->caseSensitive; - } - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setFieldIndex($fieldIndex) - { - $this->fieldIndex = $fieldIndex; - } - public function getFieldIndex() - { - return $this->fieldIndex; - } - public function setReplaceString($replaceString) - { - $this->replaceString = $replaceString; - } - public function getReplaceString() - { - return $this->replaceString; - } - public function setSearchString($searchString) - { - $this->searchString = $searchString; - } - public function getSearchString() - { - return $this->searchString; - } -} - -class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $field; - public $fieldIndex; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setFieldIndex($fieldIndex) - { - $this->fieldIndex = $fieldIndex; - } - public function getFieldIndex() - { - return $this->fieldIndex; - } -} - -class Google_Service_Analytics_Filters extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Filter'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_GaData extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $containsSampledData; - protected $dataTableType = 'Google_Service_Analytics_GaDataDataTable'; - protected $dataTableDataType = ''; - public $id; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - protected $profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_GaDataQuery'; - protected $queryDataType = ''; - public $rows; - public $sampleSize; - public $sampleSpace; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - public function getColumnHeaders() - { - return $this->columnHeaders; - } - public function setContainsSampledData($containsSampledData) - { - $this->containsSampledData = $containsSampledData; - } - public function getContainsSampledData() - { - return $this->containsSampledData; - } - public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable) - { - $this->dataTable = $dataTable; - } - public function getDataTable() - { - return $this->dataTable; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - public function getProfileInfo() - { - return $this->profileInfo; - } - public function setQuery(Google_Service_Analytics_GaDataQuery $query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } - public function setSampleSize($sampleSize) - { - $this->sampleSize = $sampleSize; - } - public function getSampleSize() - { - return $this->sampleSize; - } - public function setSampleSpace($sampleSpace) - { - $this->sampleSpace = $sampleSpace; - } - public function getSampleSpace() - { - return $this->sampleSpace; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } -} - -class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $columnType; - public $dataType; - public $name; - - - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } - public function getColumnType() - { - return $this->columnType; - } - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - public function getDataType() - { - return $this->dataType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Analytics_GaDataDataTable extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols'; - protected $colsDataType = 'array'; - protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; - protected $rowsDataType = 'array'; - - - public function setCols($cols) - { - $this->cols = $cols; - } - public function getCols() - { - return $this->cols; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } -} - -class Google_Service_Analytics_GaDataDataTableCols extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $label; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection -{ - protected $collection_key = 'c'; - protected $internal_gapi_mappings = array( - ); - protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; - protected $cDataType = 'array'; - - - public function setC($c) - { - $this->c = $c; - } - public function getC() - { - return $this->c; - } -} - -class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $v; - - - public function setV($v) - { - $this->v = $v; - } - public function getV() - { - return $this->v; - } -} - -class Google_Service_Analytics_GaDataProfileInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'sort'; - protected $internal_gapi_mappings = array( - "endDate" => "end-date", - "maxResults" => "max-results", - "startDate" => "start-date", - "startIndex" => "start-index", - ); - public $dimensions; - public $endDate; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $samplingLevel; - public $segment; - public $sort; - public $startDate; - public $startIndex; - - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - public function getMaxResults() - { - return $this->maxResults; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setSamplingLevel($samplingLevel) - { - $this->samplingLevel = $samplingLevel; - } - public function getSamplingLevel() - { - return $this->samplingLevel; - } - public function setSegment($segment) - { - $this->segment = $segment; - } - public function getSegment() - { - return $this->segment; - } - public function setSort($sort) - { - $this->sort = $sort; - } - public function getSort() - { - return $this->sort; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } -} - -class Google_Service_Analytics_Goal extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $created; - protected $eventDetailsType = 'Google_Service_Analytics_GoalEventDetails'; - protected $eventDetailsDataType = ''; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_GoalParentLink'; - protected $parentLinkDataType = ''; - public $profileId; - public $selfLink; - public $type; - public $updated; - protected $urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails'; - protected $urlDestinationDetailsDataType = ''; - public $value; - protected $visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails'; - protected $visitNumPagesDetailsDataType = ''; - protected $visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails'; - protected $visitTimeOnSiteDetailsDataType = ''; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails) - { - $this->eventDetails = $eventDetails; - } - public function getEventDetails() - { - return $this->eventDetails; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails) - { - $this->urlDestinationDetails = $urlDestinationDetails; - } - public function getUrlDestinationDetails() - { - return $this->urlDestinationDetails; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } - public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails) - { - $this->visitNumPagesDetails = $visitNumPagesDetails; - } - public function getVisitNumPagesDetails() - { - return $this->visitNumPagesDetails; - } - public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) - { - $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; - } - public function getVisitTimeOnSiteDetails() - { - return $this->visitTimeOnSiteDetails; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_GoalEventDetails extends Google_Collection -{ - protected $collection_key = 'eventConditions'; - protected $internal_gapi_mappings = array( - ); - protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions'; - protected $eventConditionsDataType = 'array'; - public $useEventValue; - - - public function setEventConditions($eventConditions) - { - $this->eventConditions = $eventConditions; - } - public function getEventConditions() - { - return $this->eventConditions; - } - public function setUseEventValue($useEventValue) - { - $this->useEventValue = $useEventValue; - } - public function getUseEventValue() - { - return $this->useEventValue; - } -} - -class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'steps'; - protected $internal_gapi_mappings = array( - ); - public $caseSensitive; - public $firstStepRequired; - public $matchType; - protected $stepsType = 'Google_Service_Analytics_GoalUrlDestinationDetailsSteps'; - protected $stepsDataType = 'array'; - public $url; - - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - public function getCaseSensitive() - { - return $this->caseSensitive; - } - public function setFirstStepRequired($firstStepRequired) - { - $this->firstStepRequired = $firstStepRequired; - } - public function getFirstStepRequired() - { - return $this->firstStepRequired; - } - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } - public function getMatchType() - { - return $this->matchType; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Goal'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_McfData extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $containsSampledData; - public $id; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - protected $profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_McfDataQuery'; - protected $queryDataType = ''; - protected $rowsType = 'Google_Service_Analytics_McfDataRows'; - protected $rowsDataType = 'array'; - public $sampleSize; - public $sampleSpace; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - public function getColumnHeaders() - { - return $this->columnHeaders; - } - public function setContainsSampledData($containsSampledData) - { - $this->containsSampledData = $containsSampledData; - } - public function getContainsSampledData() - { - return $this->containsSampledData; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - public function getProfileInfo() - { - return $this->profileInfo; - } - public function setQuery(Google_Service_Analytics_McfDataQuery $query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } - public function setSampleSize($sampleSize) - { - $this->sampleSize = $sampleSize; - } - public function getSampleSize() - { - return $this->sampleSize; - } - public function setSampleSpace($sampleSpace) - { - $this->sampleSpace = $sampleSpace; - } - public function getSampleSpace() - { - return $this->sampleSpace; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } -} - -class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'sort'; - protected $internal_gapi_mappings = array( - "endDate" => "end-date", - "maxResults" => "max-results", - "startDate" => "start-date", - "startIndex" => "start-index", - ); - public $dimensions; - public $endDate; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $samplingLevel; - public $segment; - public $sort; - public $startDate; - public $startIndex; - - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - public function getMaxResults() - { - return $this->maxResults; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setSamplingLevel($samplingLevel) - { - $this->samplingLevel = $samplingLevel; - } - public function getSamplingLevel() - { - return $this->samplingLevel; - } - public function setSegment($segment) - { - $this->segment = $segment; - } - public function getSegment() - { - return $this->segment; - } - public function setSort($sort) - { - $this->sort = $sort; - } - public function getSort() - { - return $this->sort; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } -} - -class Google_Service_Analytics_McfDataRows extends Google_Collection -{ - protected $collection_key = 'conversionPathValue'; - protected $internal_gapi_mappings = array( - ); - protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue'; - protected $conversionPathValueDataType = 'array'; - public $primitiveValue; - - - public function setConversionPathValue($conversionPathValue) - { - $this->conversionPathValue = $conversionPathValue; - } - public function getConversionPathValue() - { - return $this->conversionPathValue; - } - public function setPrimitiveValue($primitiveValue) - { - $this->primitiveValue = $primitiveValue; - } - public function getPrimitiveValue() - { - return $this->primitiveValue; - } -} - -class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $botFilteringEnabled; - protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink'; - protected $childLinkDataType = ''; - public $created; - public $currency; - public $defaultPage; - public $eCommerceTracking; - public $enhancedECommerceTracking; - public $excludeQueryParameters; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_ProfileParentLink'; - protected $parentLinkDataType = ''; - protected $permissionsType = 'Google_Service_Analytics_ProfilePermissions'; - protected $permissionsDataType = ''; - public $selfLink; - public $siteSearchCategoryParameters; - public $siteSearchQueryParameters; - public $stripSiteSearchCategoryParameters; - public $stripSiteSearchQueryParameters; - public $timezone; - public $type; - public $updated; - public $webPropertyId; - public $websiteUrl; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBotFilteringEnabled($botFilteringEnabled) - { - $this->botFilteringEnabled = $botFilteringEnabled; - } - public function getBotFilteringEnabled() - { - return $this->botFilteringEnabled; - } - 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 setEnhancedECommerceTracking($enhancedECommerceTracking) - { - $this->enhancedECommerceTracking = $enhancedECommerceTracking; - } - public function getEnhancedECommerceTracking() - { - return $this->enhancedECommerceTracking; - } - public function setExcludeQueryParameters($excludeQueryParameters) - { - $this->excludeQueryParameters = $excludeQueryParameters; - } - public function getExcludeQueryParameters() - { - return $this->excludeQueryParameters; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) - { - $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; - } - public function getSiteSearchCategoryParameters() - { - return $this->siteSearchCategoryParameters; - } - public function setSiteSearchQueryParameters($siteSearchQueryParameters) - { - $this->siteSearchQueryParameters = $siteSearchQueryParameters; - } - public function getSiteSearchQueryParameters() - { - return $this->siteSearchQueryParameters; - } - public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters) - { - $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; - } - public function getStripSiteSearchCategoryParameters() - { - return $this->stripSiteSearchCategoryParameters; - } - public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters) - { - $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; - } - public function getStripSiteSearchQueryParameters() - { - return $this->stripSiteSearchQueryParameters; - } - public function setTimezone($timezone) - { - $this->timezone = $timezone; - } - public function getTimezone() - { - return $this->timezone; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Analytics_ProfileChildLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $href; - public $type; - - - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_ProfileFilterLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $filterRefType = 'Google_Service_Analytics_FilterRef'; - protected $filterRefDataType = ''; - public $id; - public $kind; - protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; - protected $profileRefDataType = ''; - public $rank; - public $selfLink; - - - public function setFilterRef(Google_Service_Analytics_FilterRef $filterRef) - { - $this->filterRef = $filterRef; - } - public function getFilterRef() - { - return $this->filterRef; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) - { - $this->profileRef = $profileRef; - } - public function getProfileRef() - { - return $this->profileRef; - } - public function setRank($rank) - { - $this->rank = $rank; - } - public function getRank() - { - return $this->rank; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_ProfileParentLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $href; - public $type; - - - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_ProfilePermissions extends Google_Collection -{ - protected $collection_key = 'effective'; - protected $internal_gapi_mappings = array( - ); - public $effective; - - - public function setEffective($effective) - { - $this->effective = $effective; - } - public function getEffective() - { - return $this->effective; - } -} - -class Google_Service_Analytics_ProfileRef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $href; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_ProfileSummary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $name; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_Profiles extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Profile'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_RealtimeData extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $id; - public $kind; - protected $profileInfoType = 'Google_Service_Analytics_RealtimeDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_RealtimeDataQuery'; - protected $queryDataType = ''; - public $rows; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - public function getColumnHeaders() - { - return $this->columnHeaders; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - public function getProfileInfo() - { - return $this->profileInfo; - } - public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } -} - -class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $columnType; - public $dataType; - public $name; - - - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } - public function getColumnType() - { - return $this->columnType; - } - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - public function getDataType() - { - return $this->dataType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $internalWebPropertyId; - public $profileId; - public $profileName; - public $tableId; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setProfileName($profileName) - { - $this->profileName = $profileName; - } - public function getProfileName() - { - return $this->profileName; - } - public function setTableId($tableId) - { - $this->tableId = $tableId; - } - public function getTableId() - { - return $this->tableId; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection -{ - protected $collection_key = 'sort'; - protected $internal_gapi_mappings = array( - "maxResults" => "max-results", - ); - public $dimensions; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $sort; - - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - public function getMaxResults() - { - return $this->maxResults; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setSort($sort) - { - $this->sort = $sort; - } - public function getSort() - { - return $this->sort; - } -} - -class Google_Service_Analytics_Segment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $created; - public $definition; - public $id; - public $kind; - public $name; - public $segmentId; - public $selfLink; - public $type; - public $updated; - - - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDefinition($definition) - { - $this->definition = $definition; - } - public function getDefinition() - { - return $this->definition; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSegmentId($segmentId) - { - $this->segmentId = $segmentId; - } - public function getSegmentId() - { - return $this->segmentId; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } -} - -class Google_Service_Analytics_Segments extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Segment'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_UnsampledReport extends Google_Model -{ - protected $internal_gapi_mappings = array( - "endDate" => "end-date", - "startDate" => "start-date", - ); - public $accountId; - protected $cloudStorageDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails'; - protected $cloudStorageDownloadDetailsDataType = ''; - public $created; - public $dimensions; - public $downloadType; - protected $driveDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportDriveDownloadDetails'; - protected $driveDownloadDetailsDataType = ''; - public $endDate; - public $filters; - public $id; - public $kind; - public $metrics; - public $profileId; - public $segment; - public $selfLink; - public $startDate; - public $status; - public $title; - public $updated; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCloudStorageDownloadDetails(Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails) - { - $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; - } - public function getCloudStorageDownloadDetails() - { - return $this->cloudStorageDownloadDetails; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setDownloadType($downloadType) - { - $this->downloadType = $downloadType; - } - public function getDownloadType() - { - return $this->downloadType; - } - public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReportDriveDownloadDetails $driveDownloadDetails) - { - $this->driveDownloadDetails = $driveDownloadDetails; - } - public function getDriveDownloadDetails() - { - return $this->driveDownloadDetails; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setSegment($segment) - { - $this->segment = $segment; - } - public function getSegment() - { - return $this->segment; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - public function getWebPropertyId() - { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucketId; - public $objectId; - - - public function setBucketId($bucketId) - { - $this->bucketId = $bucketId; - } - public function getBucketId() - { - return $this->bucketId; - } - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - public function getObjectId() - { - return $this->objectId; - } -} - -class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $documentId; - - - public function setDocumentId($documentId) - { - $this->documentId = $documentId; - } - public function getDocumentId() - { - return $this->documentId; - } -} - -class Google_Service_Analytics_UnsampledReports extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_UnsampledReport'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_Upload extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $customDataSourceId; - public $errors; - public $id; - public $kind; - public $status; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Analytics_Uploads extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Upload'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } -} - -class Google_Service_Analytics_UserRef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $id; - public $kind; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Analytics_WebPropertyRef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $href; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Analytics_WebPropertySummary extends Google_Collection -{ - protected $collection_key = 'profiles'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $internalWebPropertyId; - public $kind; - public $level; - public $name; - protected $profilesType = 'Google_Service_Analytics_ProfileSummary'; - protected $profilesDataType = 'array'; - public $websiteUrl; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProfiles($profiles) - { - $this->profiles = $profiles; - } - public function getProfiles() - { - return $this->profiles; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Analytics_Webproperties extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Analytics_Webproperty'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - public function getNextLink() - { - return $this->nextLink; - } - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - public function getPreviousLink() - { - return $this->previousLink; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Analytics_Webproperty extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink'; - protected $childLinkDataType = ''; - public $created; - public $defaultProfileId; - public $id; - public $industryVertical; - public $internalWebPropertyId; - public $kind; - public $level; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink'; - protected $parentLinkDataType = ''; - protected $permissionsType = 'Google_Service_Analytics_WebpropertyPermissions'; - protected $permissionsDataType = ''; - public $profileCount; - public $selfLink; - public $updated; - public $websiteUrl; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink) - { - $this->childLink = $childLink; - } - public function getChildLink() - { - return $this->childLink; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDefaultProfileId($defaultProfileId) - { - $this->defaultProfileId = $defaultProfileId; - } - public function getDefaultProfileId() - { - return $this->defaultProfileId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIndustryVertical($industryVertical) - { - $this->industryVertical = $industryVertical; - } - public function getIndustryVertical() - { - return $this->industryVertical; - } - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - public function getParentLink() - { - return $this->parentLink; - } - public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setProfileCount($profileCount) - { - $this->profileCount = $profileCount; - } - public function getProfileCount() - { - return $this->profileCount; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Analytics_WebpropertyChildLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $href; - public $type; - - - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection -{ - protected $collection_key = 'effective'; - protected $internal_gapi_mappings = array( - ); - public $effective; - - - public function setEffective($effective) - { - $this->effective = $effective; - } - public function getEffective() - { - return $this->effective; - } -} diff --git a/src/Google/Service/AndroidEnterprise.php b/src/Google/Service/AndroidEnterprise.php deleted file mode 100644 index 710da144e..000000000 --- a/src/Google/Service/AndroidEnterprise.php +++ /dev/null @@ -1,3810 +0,0 @@ - - * Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android - * for Work users.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AndroidEnterprise extends Google_Service -{ - /** Manage corporate Android devices. */ - const ANDROIDENTERPRISE = - "https://www.googleapis.com/auth/androidenterprise"; - - public $collections; - public $collectionviewers; - public $devices; - public $enterprises; - public $entitlements; - public $grouplicenses; - public $grouplicenseusers; - public $installs; - public $permissions; - public $products; - public $storelayoutclusters; - public $storelayoutpages; - public $users; - - - /** - * Constructs the internal representation of the AndroidEnterprise service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'androidenterprise/v1/'; - $this->version = 'v1'; - $this->serviceName = 'androidenterprise'; - - $this->collections = new Google_Service_AndroidEnterprise_Collections_Resource( - $this, - $this->serviceName, - 'collections', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'enterprises/{enterpriseId}/collections', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/collections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->collectionviewers = new Google_Service_AndroidEnterprise_Collectionviewers_Resource( - $this, - $this->serviceName, - 'collectionviewers', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collectionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->devices = new Google_Service_AndroidEnterprise_Devices_Resource( - $this, - $this->serviceName, - 'devices', - array( - 'methods' => array( - 'get' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getState' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setState' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->enterprises = new Google_Service_AndroidEnterprise_Enterprises_Resource( - $this, - $this->serviceName, - 'enterprises', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'enroll' => array( - 'path' => 'enterprises/enroll', - 'httpMethod' => 'POST', - 'parameters' => array( - 'token' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getStoreLayout' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'enterprises', - 'httpMethod' => 'POST', - 'parameters' => array( - 'token' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises', - 'httpMethod' => 'GET', - 'parameters' => array( - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'sendTestPushNotification' => array( - 'path' => 'enterprises/{enterpriseId}/sendTestPushNotification', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setAccount' => array( - 'path' => 'enterprises/{enterpriseId}/account', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setStoreLayout' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unenroll' => array( - 'path' => 'enterprises/{enterpriseId}/unenroll', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->entitlements = new Google_Service_AndroidEnterprise_Entitlements_Resource( - $this, - $this->serviceName, - 'entitlements', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entitlementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entitlementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entitlementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'install' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entitlementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'install' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->grouplicenses = new Google_Service_AndroidEnterprise_Grouplicenses_Resource( - $this, - $this->serviceName, - 'grouplicenses', - array( - 'methods' => array( - 'get' => array( - 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupLicenseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/groupLicenses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Grouplicenseusers_Resource( - $this, - $this->serviceName, - 'grouplicenseusers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupLicenseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->installs = new Google_Service_AndroidEnterprise_Installs_Resource( - $this, - $this->serviceName, - 'installs', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'installId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'installId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'installId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'installId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->permissions = new Google_Service_AndroidEnterprise_Permissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'permissions/{permissionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->products = new Google_Service_AndroidEnterprise_Products_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'approve' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}/approve', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'generateApprovalUrl' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'languageCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getAppRestrictionsSchema' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getPermissions' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updatePermissions' => array( - 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->storelayoutclusters = new Google_Service_AndroidEnterprise_Storelayoutclusters_Resource( - $this, - $this->serviceName, - 'storelayoutclusters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->storelayoutpages = new Google_Service_AndroidEnterprise_Storelayoutpages_Resource( - $this, - $this->serviceName, - 'storelayoutpages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_AndroidEnterprise_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'generateToken' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', - 'httpMethod' => 'POST', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAvailableProductSet' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'enterprises/{enterpriseId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'email' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'revokeToken' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setAvailableProductSet' => array( - 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'enterpriseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "collections" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $collections = $androidenterpriseService->collections; - * - */ -class Google_Service_AndroidEnterprise_Collections_Resource extends Google_Service_Resource -{ - - /** - * Deletes a collection. (collections.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $collectionId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the details of a collection. (collections.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Collection - */ - public function get($enterpriseId, $collectionId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection"); - } - - /** - * Creates a new collection. (collections.insert) - * - * @param string $enterpriseId The ID of the enterprise. - * @param Google_Collection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Collection - */ - public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection"); - } - - /** - * Retrieves the IDs of all the collections for an enterprise. - * (collections.listCollections) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_CollectionsListResponse - */ - public function listCollections($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse"); - } - - /** - * Updates a collection. This method supports patch semantics. - * (collections.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param Google_Collection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Collection - */ - public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection"); - } - - /** - * Updates a collection. (collections.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param Google_Collection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Collection - */ - public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection"); - } -} - -/** - * The "collectionviewers" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $collectionviewers = $androidenterpriseService->collectionviewers; - * - */ -class Google_Service_AndroidEnterprise_Collectionviewers_Resource extends Google_Service_Resource -{ - - /** - * Removes the user from the list of those specifically allowed to see the - * collection. If the collection's visibility is set to viewersOnly then only - * such users will see the collection. (collectionviewers.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $collectionId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the ID of the user if they have been specifically allowed to see - * the collection. If the collection's visibility is set to viewersOnly then - * only these users will see the collection. (collectionviewers.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_User - */ - public function get($enterpriseId, $collectionId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); - } - - /** - * Retrieves the IDs of the users who have been specifically allowed to see the - * collection. If the collection's visibility is set to viewersOnly then only - * these users will see the collection. - * (collectionviewers.listCollectionviewers) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse - */ - public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse"); - } - - /** - * Adds the user to the list of those specifically allowed to see the - * collection. If the collection's visibility is set to viewersOnly then only - * such users will see the collection. This method supports patch semantics. - * (collectionviewers.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param string $userId The ID of the user. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_User - */ - public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User"); - } - - /** - * Adds the user to the list of those specifically allowed to see the - * collection. If the collection's visibility is set to viewersOnly then only - * such users will see the collection. (collectionviewers.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $collectionId The ID of the collection. - * @param string $userId The ID of the user. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_User - */ - public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User"); - } -} - -/** - * The "devices" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $devices = $androidenterpriseService->devices; - * - */ -class Google_Service_AndroidEnterprise_Devices_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the details of a device. (devices.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The ID of the device. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Device - */ - public function get($enterpriseId, $userId, $deviceId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device"); - } - - /** - * Retrieves whether a device is enabled or disabled for access by the user to - * Google services. The device state takes effect only if enforcing EMM policies - * on Android devices is enabled in the Google Admin Console. Otherwise, the - * device state is ignored and all devices are allowed access to Google - * services. (devices.getState) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The ID of the device. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_DeviceState - */ - public function getState($enterpriseId, $userId, $deviceId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); - $params = array_merge($params, $optParams); - return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); - } - - /** - * Retrieves the IDs of all of a user's devices. (devices.listDevices) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_DevicesListResponse - */ - public function listDevices($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse"); - } - - /** - * Sets whether a device is enabled or disabled for access by the user to Google - * services. The device state takes effect only if enforcing EMM policies on - * Android devices is enabled in the Google Admin Console. Otherwise, the device - * state is ignored and all devices are allowed access to Google services. - * (devices.setState) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The ID of the device. - * @param Google_DeviceState $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_DeviceState - */ - public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); - } -} - -/** - * The "enterprises" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $enterprises = $androidenterpriseService->enterprises; - * - */ -class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Service_Resource -{ - - /** - * Deletes the binding between the EMM and enterprise. This is now deprecated; - * use this to unenroll customers that were previously enrolled with the - * 'insert' call, then enroll them again with the 'enroll' call. - * (enterprises.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Enrolls an enterprise with the calling EMM. (enterprises.enroll) - * - * @param string $token The token provided by the enterprise to register the - * EMM. - * @param Google_Enterprise $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Enterprise - */ - public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) - { - $params = array('token' => $token, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise"); - } - - /** - * Retrieves the name and domain of an enterprise. (enterprises.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Enterprise - */ - public function get($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise"); - } - - /** - * Returns the store layout resource. (enterprises.getStoreLayout) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreLayout - */ - public function getStoreLayout($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('getStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout"); - } - - /** - * Establishes the binding between the EMM and an enterprise. This is now - * deprecated; use enroll instead. (enterprises.insert) - * - * @param string $token The token provided by the enterprise to register the - * EMM. - * @param Google_Enterprise $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Enterprise - */ - public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) - { - $params = array('token' => $token, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise"); - } - - /** - * Looks up an enterprise by domain name. (enterprises.listEnterprises) - * - * @param string $domain The exact primary domain name of the enterprise to look - * up. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_EnterprisesListResponse - */ - public function listEnterprises($domain, $optParams = array()) - { - $params = array('domain' => $domain); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse"); - } - - /** - * Sends a test push notification to validate the EMM integration with the - * Google Cloud Pub/Sub service for this enterprise. - * (enterprises.sendTestPushNotification) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse - */ - public function sendTestPushNotification($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('sendTestPushNotification', array($params), "Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse"); - } - - /** - * Set the account that will be used to authenticate to the API as the - * enterprise. (enterprises.setAccount) - * - * @param string $enterpriseId The ID of the enterprise. - * @param Google_EnterpriseAccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_EnterpriseAccount - */ - public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount"); - } - - /** - * Sets the store layout resource. (enterprises.setStoreLayout) - * - * @param string $enterpriseId The ID of the enterprise. - * @param Google_StoreLayout $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreLayout - */ - public function setStoreLayout($enterpriseId, Google_Service_AndroidEnterprise_StoreLayout $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout"); - } - - /** - * Unenrolls an enterprise from the calling EMM. (enterprises.unenroll) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - */ - public function unenroll($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('unenroll', array($params)); - } -} - -/** - * The "entitlements" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $entitlements = $androidenterpriseService->entitlements; - * - */ -class Google_Service_AndroidEnterprise_Entitlements_Resource extends Google_Service_Resource -{ - - /** - * Removes an entitlement to an app for a user and uninstalls it. - * (entitlements.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $entitlementId The ID of the entitlement, e.g. - * "app:com.google.android.gm". - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $userId, $entitlementId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves details of an entitlement. (entitlements.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $entitlementId The ID of the entitlement, e.g. - * "app:com.google.android.gm". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Entitlement - */ - public function get($enterpriseId, $userId, $entitlementId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement"); - } - - /** - * List of all entitlements for the specified user. Only the ID is set. - * (entitlements.listEntitlements) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_EntitlementsListResponse - */ - public function listEntitlements($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse"); - } - - /** - * Adds or updates an entitlement to an app for a user. This method supports - * patch semantics. (entitlements.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $entitlementId The ID of the entitlement, e.g. - * "app:com.google.android.gm". - * @param Google_Entitlement $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool install Set to true to also install the product on all the - * user's devices where possible. Failure to install on one or more devices will - * not prevent this operation from returning successfully, as long as the - * entitlement was successfully assigned to the user. - * @return Google_Service_AndroidEnterprise_Entitlement - */ - public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement"); - } - - /** - * Adds or updates an entitlement to an app for a user. (entitlements.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $entitlementId The ID of the entitlement, e.g. - * "app:com.google.android.gm". - * @param Google_Entitlement $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool install Set to true to also install the product on all the - * user's devices where possible. Failure to install on one or more devices will - * not prevent this operation from returning successfully, as long as the - * entitlement was successfully assigned to the user. - * @return Google_Service_AndroidEnterprise_Entitlement - */ - public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement"); - } -} - -/** - * The "grouplicenses" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $grouplicenses = $androidenterpriseService->grouplicenses; - * - */ -class Google_Service_AndroidEnterprise_Grouplicenses_Resource extends Google_Service_Resource -{ - - /** - * Retrieves details of an enterprise's group license for a product. - * (grouplicenses.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $groupLicenseId The ID of the product the group license is for, - * e.g. "app:com.google.android.gm". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_GroupLicense - */ - public function get($enterpriseId, $groupLicenseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense"); - } - - /** - * Retrieves IDs of all products for which the enterprise has a group license. - * (grouplicenses.listGrouplicenses) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse - */ - public function listGrouplicenses($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse"); - } -} - -/** - * The "grouplicenseusers" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $grouplicenseusers = $androidenterpriseService->grouplicenseusers; - * - */ -class Google_Service_AndroidEnterprise_Grouplicenseusers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the IDs of the users who have been granted entitlements under the - * license. (grouplicenseusers.listGrouplicenseusers) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $groupLicenseId The ID of the product the group license is for, - * e.g. "app:com.google.android.gm". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse - */ - public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse"); - } -} - -/** - * The "installs" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $installs = $androidenterpriseService->installs; - * - */ -class Google_Service_AndroidEnterprise_Installs_Resource extends Google_Service_Resource -{ - - /** - * Requests to remove an app from a device. A call to get or list will still - * show the app as installed on the device until it is actually removed. - * (installs.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The Android ID of the device. - * @param string $installId The ID of the product represented by the install, - * e.g. "app:com.google.android.gm". - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves details of an installation of an app on a device. (installs.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The Android ID of the device. - * @param string $installId The ID of the product represented by the install, - * e.g. "app:com.google.android.gm". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Install - */ - public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install"); - } - - /** - * Retrieves the details of all apps installed on the specified device. - * (installs.listInstalls) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The Android ID of the device. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_InstallsListResponse - */ - public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse"); - } - - /** - * Requests to install the latest version of an app to a device. If the app is - * already installed then it is updated to the latest version if necessary. This - * method supports patch semantics. (installs.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The Android ID of the device. - * @param string $installId The ID of the product represented by the install, - * e.g. "app:com.google.android.gm". - * @param Google_Install $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Install - */ - public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install"); - } - - /** - * Requests to install the latest version of an app to a device. If the app is - * already installed then it is updated to the latest version if necessary. - * (installs.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param string $deviceId The Android ID of the device. - * @param string $installId The ID of the product represented by the install, - * e.g. "app:com.google.android.gm". - * @param Google_Install $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_Install - */ - public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install"); - } -} - -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $permissions = $androidenterpriseService->permissions; - * - */ -class Google_Service_AndroidEnterprise_Permissions_Resource extends Google_Service_Resource -{ - - /** - * Retrieves details of an Android app permission for display to an enterprise - * admin. (permissions.get) - * - * @param string $permissionId The ID of the permission. - * @param array $optParams Optional parameters. - * - * @opt_param string language The BCP47 tag for the user's preferred language - * (e.g. "en-US", "de") - * @return Google_Service_AndroidEnterprise_Permission - */ - public function get($permissionId, $optParams = array()) - { - $params = array('permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission"); - } -} - -/** - * The "products" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $products = $androidenterpriseService->products; - * - */ -class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource -{ - - /** - * Approves the specified product (and the relevant app permissions, if any). - * (products.approve) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product. - * @param Google_ProductsApproveRequest $postBody - * @param array $optParams Optional parameters. - */ - public function approve($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('approve', array($params)); - } - - /** - * Generates a URL that can be rendered in an iframe to display the permissions - * (if any) of a product. An enterprise admin must view these permissions and - * accept them on behalf of their organization in order to approve that product. - * - * Admins should accept the displayed permissions by interacting with a separate - * UI element in the EMM console, which in turn should trigger the use of this - * URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to - * approve the product. This URL can only be used to display permissions for up - * to 1 day. (products.generateApprovalUrl) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * - * @opt_param string languageCode The BCP 47 language code used for permission - * names and descriptions in the returned iframe, for instance "en-US". - * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse - */ - public function generateApprovalUrl($enterpriseId, $productId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('generateApprovalUrl', array($params), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse"); - } - - /** - * Retrieves details of a product for display to an enterprise admin. - * (products.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product, e.g. - * "app:com.google.android.gm". - * @param array $optParams Optional parameters. - * - * @opt_param string language The BCP47 tag for the user's preferred language - * (e.g. "en-US", "de"). - * @return Google_Service_AndroidEnterprise_Product - */ - public function get($enterpriseId, $productId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product"); - } - - /** - * Retrieves the schema defining app restrictions configurable for this product. - * All products have a schema, but this may be empty if no app restrictions are - * defined. (products.getAppRestrictionsSchema) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * - * @opt_param string language The BCP47 tag for the user's preferred language - * (e.g. "en-US", "de"). - * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema - */ - public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema"); - } - - /** - * Retrieves the Android app permissions required by this app. - * (products.getPermissions) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_ProductPermissions - */ - public function getPermissions($enterpriseId, $productId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); - } - - /** - * This method has been deprecated. To programmatically approve applications, - * you must use the iframe mechanism via the generateApprovalUrl and approve - * methods of the Products resource. For more information, see the Play EMM API - * usage requirements. - * - * The updatePermissions method (deprecated) updates the set of Android app - * permissions for this app that have been accepted by the enterprise. - * (products.updatePermissions) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $productId The ID of the product. - * @param Google_ProductPermissions $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_ProductPermissions - */ - public function updatePermissions($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductPermissions $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updatePermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); - } -} - -/** - * The "storelayoutclusters" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $storelayoutclusters = $androidenterpriseService->storelayoutclusters; - * - */ -class Google_Service_AndroidEnterprise_Storelayoutclusters_Resource extends Google_Service_Resource -{ - - /** - * Deletes a cluster. (storelayoutclusters.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param string $clusterId The ID of the cluster. - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $pageId, $clusterId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves details of a cluster. (storelayoutclusters.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param string $clusterId The ID of the cluster. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreCluster - */ - public function get($enterpriseId, $pageId, $clusterId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); - } - - /** - * Inserts a new cluster in a page. (storelayoutclusters.insert) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param Google_StoreCluster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreCluster - */ - public function insert($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); - } - - /** - * Retrieves the details of all clusters on the specified page. - * (storelayoutclusters.listStorelayoutclusters) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse - */ - public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse"); - } - - /** - * Updates a cluster. This method supports patch semantics. - * (storelayoutclusters.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param string $clusterId The ID of the cluster. - * @param Google_StoreCluster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreCluster - */ - public function patch($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); - } - - /** - * Updates a cluster. (storelayoutclusters.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param string $clusterId The ID of the cluster. - * @param Google_StoreCluster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreCluster - */ - public function update($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StoreCluster"); - } -} - -/** - * The "storelayoutpages" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $storelayoutpages = $androidenterpriseService->storelayoutpages; - * - */ -class Google_Service_AndroidEnterprise_Storelayoutpages_Resource extends Google_Service_Resource -{ - - /** - * Deletes a store page. (storelayoutpages.delete) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param array $optParams Optional parameters. - */ - public function delete($enterpriseId, $pageId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves details of a store page. (storelayoutpages.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StorePage - */ - public function get($enterpriseId, $pageId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StorePage"); - } - - /** - * Inserts a new store page. (storelayoutpages.insert) - * - * @param string $enterpriseId The ID of the enterprise. - * @param Google_StorePage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StorePage - */ - public function insert($enterpriseId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StorePage"); - } - - /** - * Retrieves the details of all pages in the store. - * (storelayoutpages.listStorelayoutpages) - * - * @param string $enterpriseId The ID of the enterprise. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse - */ - public function listStorelayoutpages($enterpriseId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse"); - } - - /** - * Updates the content of a store page. This method supports patch semantics. - * (storelayoutpages.patch) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param Google_StorePage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StorePage - */ - public function patch($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StorePage"); - } - - /** - * Updates the content of a store page. (storelayoutpages.update) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $pageId The ID of the page. - * @param Google_StorePage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_StorePage - */ - public function update($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StorePage"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); - * $users = $androidenterpriseService->users; - * - */ -class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Resource -{ - - /** - * Generates a token (activation code) to allow this user to configure their - * work account in the Android Setup Wizard. Revokes any previously generated - * token. - * - * This call only works with Google managed accounts. (users.generateToken) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_UserToken - */ - public function generateToken($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken"); - } - - /** - * Retrieves a user's details. (users.get) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_User - */ - public function get($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); - } - - /** - * Retrieves the set of products a user is entitled to access. - * (users.getAvailableProductSet) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_ProductSet - */ - public function getAvailableProductSet($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet"); - } - - /** - * Looks up a user by their primary email address. (users.listUsers) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $email The exact primary email address of the user to look up. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_UsersListResponse - */ - public function listUsers($enterpriseId, $email, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'email' => $email); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse"); - } - - /** - * Revokes a previously generated token (activation code) for the user. - * (users.revokeToken) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param array $optParams Optional parameters. - */ - public function revokeToken($enterpriseId, $userId, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('revokeToken', array($params)); - } - - /** - * Modifies the set of products a user is entitled to access. - * (users.setAvailableProductSet) - * - * @param string $enterpriseId The ID of the enterprise. - * @param string $userId The ID of the user. - * @param Google_ProductSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidEnterprise_ProductSet - */ - public function setAvailableProductSet($enterpriseId, $userId, Google_Service_AndroidEnterprise_ProductSet $postBody, $optParams = array()) - { - $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet"); - } -} - - - - -class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection -{ - protected $collection_key = 'restrictions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction'; - protected $restrictionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRestrictions($restrictions) - { - $this->restrictions = $restrictions; - } - public function getRestrictions() - { - return $this->restrictions; - } -} - -class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection -{ - protected $collection_key = 'entryValue'; - protected $internal_gapi_mappings = array( - ); - protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue'; - protected $defaultValueDataType = ''; - public $description; - public $entry; - public $entryValue; - public $key; - public $restrictionType; - public $title; - - - public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue) - { - $this->defaultValue = $defaultValue; - } - public function getDefaultValue() - { - return $this->defaultValue; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEntry($entry) - { - $this->entry = $entry; - } - public function getEntry() - { - return $this->entry; - } - public function setEntryValue($entryValue) - { - $this->entryValue = $entryValue; - } - public function getEntryValue() - { - return $this->entryValue; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setRestrictionType($restrictionType) - { - $this->restrictionType = $restrictionType; - } - public function getRestrictionType() - { - return $this->restrictionType; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection -{ - protected $collection_key = 'valueMultiselect'; - protected $internal_gapi_mappings = array( - ); - public $type; - public $valueBool; - public $valueInteger; - public $valueMultiselect; - public $valueString; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValueBool($valueBool) - { - $this->valueBool = $valueBool; - } - public function getValueBool() - { - return $this->valueBool; - } - public function setValueInteger($valueInteger) - { - $this->valueInteger = $valueInteger; - } - public function getValueInteger() - { - return $this->valueInteger; - } - public function setValueMultiselect($valueMultiselect) - { - $this->valueMultiselect = $valueMultiselect; - } - public function getValueMultiselect() - { - return $this->valueMultiselect; - } - public function setValueString($valueString) - { - $this->valueString = $valueString; - } - public function getValueString() - { - return $this->valueString; - } -} - -class Google_Service_AndroidEnterprise_AppVersion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $versionCode; - public $versionString; - - - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - public function getVersionCode() - { - return $this->versionCode; - } - public function setVersionString($versionString) - { - $this->versionString = $versionString; - } - public function getVersionString() - { - return $this->versionString; - } -} - -class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $approvalUrl; - public $kind; - - - public function setApprovalUrl($approvalUrl) - { - $this->approvalUrl = $approvalUrl; - } - public function getApprovalUrl() - { - return $this->approvalUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_Collection extends Google_Collection -{ - protected $collection_key = 'productId'; - protected $internal_gapi_mappings = array( - ); - public $collectionId; - public $kind; - public $name; - public $productId; - public $visibility; - - - public function setCollectionId($collectionId) - { - $this->collectionId = $collectionId; - } - public function getCollectionId() - { - return $this->collectionId; - } - 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 setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection -{ - protected $collection_key = 'user'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userType = 'Google_Service_AndroidEnterprise_User'; - protected $userDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection -{ - protected $collection_key = 'collection'; - protected $internal_gapi_mappings = array( - ); - protected $collectionType = 'Google_Service_AndroidEnterprise_Collection'; - protected $collectionDataType = 'array'; - public $kind; - - - public function setCollection($collection) - { - $this->collection = $collection; - } - public function getCollection() - { - return $this->collection; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_Device extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $androidId; - public $kind; - public $managementType; - - - public function setAndroidId($androidId) - { - $this->androidId = $androidId; - } - public function getAndroidId() - { - return $this->androidId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setManagementType($managementType) - { - $this->managementType = $managementType; - } - public function getManagementType() - { - return $this->managementType; - } -} - -class Google_Service_AndroidEnterprise_DeviceState extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountState; - public $kind; - - - public function setAccountState($accountState) - { - $this->accountState = $accountState; - } - public function getAccountState() - { - return $this->accountState; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection -{ - protected $collection_key = 'device'; - protected $internal_gapi_mappings = array( - ); - protected $deviceType = 'Google_Service_AndroidEnterprise_Device'; - protected $deviceDataType = 'array'; - public $kind; - - - public function setDevice($device) - { - $this->device = $device; - } - public function getDevice() - { - return $this->device; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_Enterprise extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $name; - public $primaryDomain; - - - 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 setPrimaryDomain($primaryDomain) - { - $this->primaryDomain = $primaryDomain; - } - public function getPrimaryDomain() - { - return $this->primaryDomain; - } -} - -class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountEmail; - public $kind; - - - public function setAccountEmail($accountEmail) - { - $this->accountEmail = $accountEmail; - } - public function getAccountEmail() - { - return $this->accountEmail; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection -{ - protected $collection_key = 'enterprise'; - protected $internal_gapi_mappings = array( - ); - protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise'; - protected $enterpriseDataType = 'array'; - public $kind; - - - public function setEnterprise($enterprise) - { - $this->enterprise = $enterprise; - } - public function getEnterprise() - { - return $this->enterprise; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $messageId; - public $topicName; - - - public function setMessageId($messageId) - { - $this->messageId = $messageId; - } - public function getMessageId() - { - return $this->messageId; - } - public function setTopicName($topicName) - { - $this->topicName = $topicName; - } - public function getTopicName() - { - return $this->topicName; - } -} - -class Google_Service_AndroidEnterprise_Entitlement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $productId; - public $reason; - - - 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 setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection -{ - protected $collection_key = 'entitlement'; - protected $internal_gapi_mappings = array( - ); - protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement'; - protected $entitlementDataType = 'array'; - public $kind; - - - public function setEntitlement($entitlement) - { - $this->entitlement = $entitlement; - } - public function getEntitlement() - { - return $this->entitlement; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $acquisitionKind; - public $approval; - public $kind; - public $numProvisioned; - public $numPurchased; - public $productId; - - - public function setAcquisitionKind($acquisitionKind) - { - $this->acquisitionKind = $acquisitionKind; - } - public function getAcquisitionKind() - { - return $this->acquisitionKind; - } - public function setApproval($approval) - { - $this->approval = $approval; - } - public function getApproval() - { - return $this->approval; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNumProvisioned($numProvisioned) - { - $this->numProvisioned = $numProvisioned; - } - public function getNumProvisioned() - { - return $this->numProvisioned; - } - public function setNumPurchased($numPurchased) - { - $this->numPurchased = $numPurchased; - } - public function getNumPurchased() - { - return $this->numPurchased; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection -{ - protected $collection_key = 'user'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userType = 'Google_Service_AndroidEnterprise_User'; - protected $userDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection -{ - protected $collection_key = 'groupLicense'; - protected $internal_gapi_mappings = array( - ); - protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense'; - protected $groupLicenseDataType = 'array'; - public $kind; - - - public function setGroupLicense($groupLicense) - { - $this->groupLicense = $groupLicense; - } - public function getGroupLicense() - { - return $this->groupLicense; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_Install extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $installState; - public $kind; - public $productId; - public $versionCode; - - - public function setInstallState($installState) - { - $this->installState = $installState; - } - public function getInstallState() - { - return $this->installState; - } - 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 setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - public function getVersionCode() - { - return $this->versionCode; - } -} - -class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection -{ - protected $collection_key = 'install'; - protected $internal_gapi_mappings = array( - ); - protected $installType = 'Google_Service_AndroidEnterprise_Install'; - protected $installDataType = 'array'; - public $kind; - - - public function setInstall($install) - { - $this->install = $install; - } - public function getInstall() - { - return $this->install; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_LocalizedText extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $locale; - public $text; - - - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_AndroidEnterprise_Permission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $kind; - public $name; - public $permissionId; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - 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 setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - public function getPermissionId() - { - return $this->permissionId; - } -} - -class Google_Service_AndroidEnterprise_Product extends Google_Collection -{ - protected $collection_key = 'appVersion'; - protected $internal_gapi_mappings = array( - ); - protected $appVersionType = 'Google_Service_AndroidEnterprise_AppVersion'; - protected $appVersionDataType = 'array'; - public $authorName; - public $detailsUrl; - public $distributionChannel; - public $iconUrl; - public $kind; - public $productId; - public $productPricing; - public $requiresContainerApp; - public $title; - public $workDetailsUrl; - - - public function setAppVersion($appVersion) - { - $this->appVersion = $appVersion; - } - public function getAppVersion() - { - return $this->appVersion; - } - public function setAuthorName($authorName) - { - $this->authorName = $authorName; - } - public function getAuthorName() - { - return $this->authorName; - } - public function setDetailsUrl($detailsUrl) - { - $this->detailsUrl = $detailsUrl; - } - public function getDetailsUrl() - { - return $this->detailsUrl; - } - public function setDistributionChannel($distributionChannel) - { - $this->distributionChannel = $distributionChannel; - } - public function getDistributionChannel() - { - return $this->distributionChannel; - } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - 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 setProductPricing($productPricing) - { - $this->productPricing = $productPricing; - } - public function getProductPricing() - { - return $this->productPricing; - } - public function setRequiresContainerApp($requiresContainerApp) - { - $this->requiresContainerApp = $requiresContainerApp; - } - public function getRequiresContainerApp() - { - return $this->requiresContainerApp; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setWorkDetailsUrl($workDetailsUrl) - { - $this->workDetailsUrl = $workDetailsUrl; - } - public function getWorkDetailsUrl() - { - return $this->workDetailsUrl; - } -} - -class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $permissionId; - public $state; - - - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - public function getPermissionId() - { - return $this->permissionId; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission'; - protected $permissionDataType = 'array'; - public $productId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPermission($permission) - { - $this->permission = $permission; - } - public function getPermission() - { - return $this->permission; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_AndroidEnterprise_ProductSet extends Google_Collection -{ - protected $collection_key = 'productId'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $productId; - - - 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; - } -} - -class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo'; - protected $approvalUrlInfoDataType = ''; - - - public function setApprovalUrlInfo(Google_Service_AndroidEnterprise_ApprovalUrlInfo $approvalUrlInfo) - { - $this->approvalUrlInfo = $approvalUrlInfo; - } - public function getApprovalUrlInfo() - { - return $this->approvalUrlInfo; - } -} - -class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_AndroidEnterprise_StoreCluster extends Google_Collection -{ - protected $collection_key = 'productId'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText'; - protected $nameDataType = 'array'; - public $orderInPage; - public $productId; - - - 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 setOrderInPage($orderInPage) - { - $this->orderInPage = $orderInPage; - } - public function getOrderInPage() - { - return $this->orderInPage; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_AndroidEnterprise_StoreLayout extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $homepageId; - public $kind; - - - public function setHomepageId($homepageId) - { - $this->homepageId = $homepageId; - } - public function getHomepageId() - { - return $this->homepageId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse extends Google_Collection -{ - protected $collection_key = 'cluster'; - protected $internal_gapi_mappings = array( - ); - protected $clusterType = 'Google_Service_AndroidEnterprise_StoreCluster'; - protected $clusterDataType = 'array'; - public $kind; - - - public function setCluster($cluster) - { - $this->cluster = $cluster; - } - public function getCluster() - { - return $this->cluster; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse extends Google_Collection -{ - protected $collection_key = 'page'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $pageType = 'Google_Service_AndroidEnterprise_StorePage'; - protected $pageDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPage($page) - { - $this->page = $page; - } - public function getPage() - { - return $this->page; - } -} - -class Google_Service_AndroidEnterprise_StorePage extends Google_Collection -{ - protected $collection_key = 'name'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $link; - protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText'; - protected $nameDataType = 'array'; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLink($link) - { - $this->link = $link; - } - public function getLink() - { - return $this->link; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_AndroidEnterprise_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $primaryEmail; - - - 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 setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } -} - -class Google_Service_AndroidEnterprise_UserToken extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $token; - public $userId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection -{ - protected $collection_key = 'user'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userType = 'Google_Service_AndroidEnterprise_User'; - protected $userDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} diff --git a/src/Google/Service/AndroidPublisher.php b/src/Google/Service/AndroidPublisher.php deleted file mode 100644 index 46d59523e..000000000 --- a/src/Google/Service/AndroidPublisher.php +++ /dev/null @@ -1,3873 +0,0 @@ - - * 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 -{ - /** View and manage your Google Play Developer account. */ - const ANDROIDPUBLISHER = - "https://www.googleapis.com/auth/androidpublisher"; - - public $edits; - public $edits_apklistings; - public $edits_apks; - public $edits_details; - public $edits_expansionfiles; - public $edits_images; - public $edits_listings; - public $edits_testers; - public $edits_tracks; - public $entitlements; - public $inappproducts; - public $purchases_products; - public $purchases_subscriptions; - - - /** - * Constructs the internal representation of the AndroidPublisher service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'androidpublisher/v2/applications/'; - $this->version = 'v2'; - $this->serviceName = 'androidpublisher'; - - $this->edits = new Google_Service_AndroidPublisher_Edits_Resource( - $this, - $this->serviceName, - 'edits', - array( - 'methods' => array( - 'commit' => array( - 'path' => '{packageName}/edits/{editId}:commit', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{packageName}/edits/{editId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{packageName}/edits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'validate' => array( - 'path' => '{packageName}/edits/{editId}:validate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_apklistings = new Google_Service_AndroidPublisher_EditsApklistings_Resource( - $this, - $this->serviceName, - 'apklistings', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_apks = new Google_Service_AndroidPublisher_EditsApks_Resource( - $this, - $this->serviceName, - 'apks', - array( - 'methods' => array( - 'addexternallyhosted' => array( - 'path' => '{packageName}/edits/{editId}/apks/externallyHosted', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/apks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/apks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_details = new Google_Service_AndroidPublisher_EditsDetails_Resource( - $this, - $this->serviceName, - 'details', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_expansionfiles = new Google_Service_AndroidPublisher_EditsExpansionfiles_Resource( - $this, - $this->serviceName, - 'expansionfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_images = new Google_Service_AndroidPublisher_EditsImages_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_listings = new Google_Service_AndroidPublisher_EditsListings_Resource( - $this, - $this->serviceName, - 'listings', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/listings', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/listings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_testers = new Google_Service_AndroidPublisher_EditsTesters_Resource( - $this, - $this->serviceName, - 'testers', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_tracks = new Google_Service_AndroidPublisher_EditsTracks_Resource( - $this, - $this->serviceName, - 'tracks', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/tracks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->entitlements = new Google_Service_AndroidPublisher_Entitlements_Resource( - $this, - $this->serviceName, - 'entitlements', - array( - 'methods' => array( - 'list' => array( - 'path' => '{packageName}/entitlements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'productId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( - $this, - $this->serviceName, - 'inappproducts', - array( - 'methods' => array( - 'batch' => array( - 'path' => 'inappproducts/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{packageName}/inappproducts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{packageName}/inappproducts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->purchases_products = new Google_Service_AndroidPublisher_PurchasesProducts_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/purchases/products/{productId}/tokens/{token}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->purchases_subscriptions = new Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'cancel' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'defer' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'refund' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'revoke' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "edits" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $edits = $androidpublisherService->edits; - * - */ -class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Resource -{ - - /** - * Commits/applies the changes made in this edit back to the app. (edits.commit) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function commit($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } - - /** - * Deletes an edit for an app. Creating a new edit will automatically delete any - * of your previous edits so this method need only be called if you want to - * preemptively abandon an edit. (edits.delete) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns information about the edit specified. Calls will fail if the edit is - * no long active (e.g. has been deleted, superseded or expired). (edits.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function get($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } - - /** - * Creates a new edit for an app, populated with the app's current state. - * (edits.insert) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param Google_AppEdit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } - - /** - * Checks that the edit can be successfully committed. The edit's changes are - * not applied to the live app. (edits.validate) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function validate($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } -} - -/** - * The "apklistings" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $apklistings = $androidpublisherService->apklistings; - * - */ -class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_Service_Resource -{ - - /** - * Deletes the APK-specific localized listing for a specified APK and language - * code. (apklistings.delete) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Deletes all the APK-specific localized listings for a specified APK. - * (apklistings.deleteall) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param array $optParams Optional parameters. - */ - public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params)); - } - - /** - * Fetches the APK-specific localized listing for a specified APK and language - * code. (apklistings.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - - /** - * Lists all the APK-specific localized listings for a specified APK. - * (apklistings.listEditsApklistings) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListingsListResponse - */ - public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); - } - - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. This method supports patch semantics. (apklistings.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param Google_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. (apklistings.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param Google_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } -} -/** - * The "apks" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $apks = $androidpublisherService->apks; - * - */ -class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource -{ - - /** - * Creates a new APK without uploading the APK itself to Google Play, instead - * hosting the APK at a specified URL. This function is only available to - * enterprises using Google Play for Work whose application is configured to - * restrict distribution to the enterprise domain. (apks.addexternallyhosted) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param Google_ApksAddExternallyHostedRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse - */ - public function addexternallyhosted($packageName, $editId, Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addexternallyhosted', array($params), "Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse"); - } - - /** - * (apks.listEditsApks) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApksListResponse - */ - public function listEditsApks($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse"); - } - - /** - * (apks.upload) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Apk - */ - public function upload($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Apk"); - } -} -/** - * The "details" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $details = $androidpublisherService->details; - * - */ -class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Service_Resource -{ - - /** - * Fetches app details for this edit. This includes the default language and - * developer support contact information. (details.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function get($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } - - /** - * Updates app details for this edit. This method supports patch semantics. - * (details.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param Google_AppDetails $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function patch($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } - - /** - * Updates app details for this edit. (details.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param Google_AppDetails $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function update($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } -} -/** - * The "expansionfiles" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $expansionfiles = $androidpublisherService->expansionfiles; - * - */ -class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Google_Service_Resource -{ - - /** - * Fetches the Expansion File configuration for the APK specified. - * (expansionfiles.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The version code of the APK whose Expansion File - * configuration is being read or modified. - * @param string $expansionFileType - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - - /** - * Updates the APK's Expansion File configuration to reference another APK's - * Expansion Files. To add a new Expansion File use the Upload method. This - * method supports patch semantics. (expansionfiles.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The version code of the APK whose Expansion File - * configuration is being read or modified. - * @param string $expansionFileType - * @param Google_ExpansionFile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - - /** - * Updates the APK's Expansion File configuration to reference another APK's - * Expansion Files. To add a new Expansion File use the Upload method. - * (expansionfiles.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The version code of the APK whose Expansion File - * configuration is being read or modified. - * @param string $expansionFileType - * @param Google_ExpansionFile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function update($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - - /** - * Uploads and attaches a new Expansion File to the APK specified. - * (expansionfiles.upload) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The version code of the APK whose Expansion File - * configuration is being read or modified. - * @param string $expansionFileType - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse - */ - public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ExpansionFilesUploadResponse"); - } -} -/** - * The "images" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $images = $androidpublisherService->images; - * - */ -class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Service_Resource -{ - - /** - * Deletes the image (specified by id) from the edit. (images.delete) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing whose images are to read or modified. For example, to - * select Austrian German, pass "de-AT". - * @param string $imageType - * @param string $imageId Unique identifier an image within the set of images - * attached to this edit. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType, 'imageId' => $imageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Deletes all images for the specified language and image type. - * (images.deleteall) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing whose images are to read or modified. For example, to - * select Austrian German, pass "de-AT". - * @param string $imageType - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse - */ - public function deleteall($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse"); - } - - /** - * Lists all images for the specified language and image type. - * (images.listEditsImages) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing whose images are to read or modified. For example, to - * select Austrian German, pass "de-AT". - * @param string $imageType - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesListResponse - */ - public function listEditsImages($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse"); - } - - /** - * Uploads a new image and adds it to the list of images for the specified - * language and image type. (images.upload) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing whose images are to read or modified. For example, to - * select Austrian German, pass "de-AT". - * @param string $imageType - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesUploadResponse - */ - public function upload($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ImagesUploadResponse"); - } -} -/** - * The "listings" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $listings = $androidpublisherService->listings; - * - */ -class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified localized store listing from an edit. (listings.delete) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing to read or modify. For example, to select Austrian German, - * pass "de-AT". - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Deletes all localized listings from an edit. (listings.deleteall) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - */ - public function deleteall($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params)); - } - - /** - * Fetches information about a localized store listing. (listings.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing to read or modify. For example, to select Austrian German, - * pass "de-AT". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function get($packageName, $editId, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing"); - } - - /** - * Returns all of the localized store listings attached to this edit. - * (listings.listEditsListings) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ListingsListResponse - */ - public function listEditsListings($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse"); - } - - /** - * Creates or updates a localized store listing. This method supports patch - * semantics. (listings.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing to read or modify. For example, to select Austrian German, - * pass "de-AT". - * @param Google_Listing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function patch($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing"); - } - - /** - * Creates or updates a localized store listing. (listings.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $language The language code (a BCP-47 language tag) of the - * localized listing to read or modify. For example, to select Austrian German, - * pass "de-AT". - * @param Google_Listing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function update($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Listing"); - } -} -/** - * The "testers" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $testers = $androidpublisherService->testers; - * - */ -class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Service_Resource -{ - - /** - * (testers.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function get($packageName, $editId, $track, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers"); - } - - /** - * (testers.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track - * @param Google_Testers $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers"); - } - - /** - * (testers.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track - * @param Google_Testers $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Testers"); - } -} -/** - * The "tracks" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $tracks = $androidpublisherService->tracks; - * - */ -class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Service_Resource -{ - - /** - * Fetches the track configuration for the specified track type. Includes the - * APK version codes that are in this track. (tracks.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track The track type to read or modify. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function get($packageName, $editId, $track, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track"); - } - - /** - * Lists all the track configurations for this edit. (tracks.listEditsTracks) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_TracksListResponse - */ - public function listEditsTracks($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse"); - } - - /** - * Updates the track configuration for the specified track type. When halted, - * the rollout track cannot be updated without adding new APKs, and adding new - * APKs will cause it to resume. This method supports patch semantics. - * (tracks.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track The track type to read or modify. - * @param Google_Track $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track"); - } - - /** - * Updates the track configuration for the specified track type. When halted, - * the rollout track cannot be updated without adding new APKs, and adding new - * APKs will cause it to resume. (tracks.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param string $track The track type to read or modify. - * @param Google_Track $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Track"); - } -} - -/** - * The "entitlements" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $entitlements = $androidpublisherService->entitlements; - * - */ -class Google_Service_AndroidPublisher_Entitlements_Resource extends Google_Service_Resource -{ - - /** - * Lists the user's current inapp item or subscription entitlements - * (entitlements.listEntitlements) - * - * @param string $packageName The package name of the application the inapp - * product was sold in (for example, 'com.some.thing'). - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * @opt_param string productId The product id of the inapp product (for example, - * 'sku1'). This can be used to restrict the result set. - * @opt_param string startIndex - * @opt_param string token - * @return Google_Service_AndroidPublisher_EntitlementsListResponse - */ - public function listEntitlements($packageName, $optParams = array()) - { - $params = array('packageName' => $packageName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_EntitlementsListResponse"); - } -} - -/** - * The "inappproducts" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $inappproducts = $androidpublisherService->inappproducts; - * - */ -class Google_Service_AndroidPublisher_Inappproducts_Resource extends Google_Service_Resource -{ - - /** - * (inappproducts.batch) - * - * @param Google_InappproductsBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_InappproductsBatchResponse - */ - public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse"); - } - - /** - * Delete an in-app product for an app. (inappproducts.delete) - * - * @param string $packageName Unique identifier for the Android app with the in- - * app product; for example, "com.spiffygame". - * @param string $sku Unique identifier for the in-app product. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $sku, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns information about the in-app product specified. (inappproducts.get) - * - * @param string $packageName - * @param string $sku Unique identifier for the in-app product. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function get($packageName, $sku, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - - /** - * Creates a new in-app product for an app. (inappproducts.insert) - * - * @param string $packageName Unique identifier for the Android app; for - * example, "com.spiffygame". - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices If true the prices for all regions - * targeted by the parent app that don't have a price specified for this in-app - * product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - - /** - * List all the in-app products for an Android app, both subscriptions and - * managed in-app products.. (inappproducts.listInappproducts) - * - * @param string $packageName Unique identifier for the Android app with in-app - * products; for example, "com.spiffygame". - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * @opt_param string startIndex - * @opt_param string token - * @return Google_Service_AndroidPublisher_InappproductsListResponse - */ - public function listInappproducts($packageName, $optParams = array()) - { - $params = array('packageName' => $packageName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse"); - } - - /** - * Updates the details of an in-app product. This method supports patch - * semantics. (inappproducts.patch) - * - * @param string $packageName Unique identifier for the Android app with the in- - * app product; for example, "com.spiffygame". - * @param string $sku Unique identifier for the in-app product. - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices If true the prices for all regions - * targeted by the parent app that don't have a price specified for this in-app - * product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - - /** - * Updates the details of an in-app product. (inappproducts.update) - * - * @param string $packageName Unique identifier for the Android app with the in- - * app product; for example, "com.spiffygame". - * @param string $sku Unique identifier for the in-app product. - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices If true the prices for all regions - * targeted by the parent app that don't have a price specified for this in-app - * product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } -} - -/** - * The "purchases" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $purchases = $androidpublisherService->purchases; - * - */ -class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource -{ -} - -/** - * The "products" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $products = $androidpublisherService->products; - * - */ -class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_Service_Resource -{ - - /** - * Checks the purchase and consumption status of an inapp item. (products.get) - * - * @param string $packageName The package name of the application the inapp - * product was sold in (for example, 'com.some.thing'). - * @param string $productId The inapp product SKU (for example, - * 'com.some.thing.inapp1'). - * @param string $token The token provided to the user's device when the inapp - * product was purchased. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ProductPurchase - */ - public function get($packageName, $productId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ProductPurchase"); - } -} -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $subscriptions = $androidpublisherService->subscriptions; - * - */ -class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource extends Google_Service_Resource -{ - - /** - * Cancels a user's subscription purchase. The subscription remains valid until - * its expiration time. (subscriptions.cancel) - * - * @param string $packageName The package name of the application for which this - * subscription was purchased (for example, 'com.some.thing'). - * @param string $subscriptionId The purchased subscription ID (for example, - * 'monthly001'). - * @param string $token The token provided to the user's device when the - * subscription was purchased. - * @param array $optParams Optional parameters. - */ - public function cancel($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - - /** - * Defers a user's subscription purchase until a specified future expiration - * time. (subscriptions.defer) - * - * @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 Google_SubscriptionPurchasesDeferRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse - */ - public function defer($packageName, $subscriptionId, $token, Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('defer', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse"); - } - - /** - * Checks whether a user's subscription purchase is valid and returns its expiry - * time. (subscriptions.get) - * - * @param string $packageName The package name of the application for which this - * subscription was purchased (for example, 'com.some.thing'). - * @param string $subscriptionId The purchased subscription ID (for example, - * 'monthly001'). - * @param string $token The token provided to the user's device when the - * subscription was purchased. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_SubscriptionPurchase - */ - public function get($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); - } - - /** - * Refunds a user's subscription purchase, but the subscription remains valid - * until its expiration time and it will continue to recur. - * (subscriptions.refund) - * - * @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 refund($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('refund', array($params)); - } - - /** - * Refunds and immediately revokes a user's subscription purchase. Access to the - * subscription will be terminated immediately and it will stop recurring. - * (subscriptions.revoke) - * - * @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 revoke($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('revoke', array($params)); - } -} - - - - -class Google_Service_AndroidPublisher_Apk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary'; - protected $binaryDataType = ''; - public $versionCode; - - - public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary) - { - $this->binary = $binary; - } - public function getBinary() - { - return $this->binary; - } - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - public function getVersionCode() - { - return $this->versionCode; - } -} - -class Google_Service_AndroidPublisher_ApkBinary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $sha1; - - - public function setSha1($sha1) - { - $this->sha1 = $sha1; - } - public function getSha1() - { - return $this->sha1; - } -} - -class Google_Service_AndroidPublisher_ApkListing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $language; - public $recentChanges; - - - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setRecentChanges($recentChanges) - { - $this->recentChanges = $recentChanges; - } - public function getRecentChanges() - { - return $this->recentChanges; - } -} - -class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection -{ - protected $collection_key = 'listings'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; - protected $listingsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setListings($listings) - { - $this->listings = $listings; - } - public function getListings() - { - return $this->listings; - } -} - -class Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; - protected $externallyHostedApkDataType = ''; - - - public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) - { - $this->externallyHostedApk = $externallyHostedApk; - } - public function getExternallyHostedApk() - { - return $this->externallyHostedApk; - } -} - -class Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; - protected $externallyHostedApkDataType = ''; - - - public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) - { - $this->externallyHostedApk = $externallyHostedApk; - } - public function getExternallyHostedApk() - { - return $this->externallyHostedApk; - } -} - -class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection -{ - protected $collection_key = 'apks'; - protected $internal_gapi_mappings = array( - ); - protected $apksType = 'Google_Service_AndroidPublisher_Apk'; - protected $apksDataType = 'array'; - public $kind; - - - public function setApks($apks) - { - $this->apks = $apks; - } - public function getApks() - { - return $this->apks; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidPublisher_AppDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactEmail; - public $contactPhone; - public $contactWebsite; - public $defaultLanguage; - - - public function setContactEmail($contactEmail) - { - $this->contactEmail = $contactEmail; - } - public function getContactEmail() - { - return $this->contactEmail; - } - public function setContactPhone($contactPhone) - { - $this->contactPhone = $contactPhone; - } - public function getContactPhone() - { - return $this->contactPhone; - } - public function setContactWebsite($contactWebsite) - { - $this->contactWebsite = $contactWebsite; - } - public function getContactWebsite() - { - return $this->contactWebsite; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } -} - -class Google_Service_AndroidPublisher_AppEdit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expiryTimeSeconds; - public $id; - - - public function setExpiryTimeSeconds($expiryTimeSeconds) - { - $this->expiryTimeSeconds = $expiryTimeSeconds; - } - public function getExpiryTimeSeconds() - { - return $this->expiryTimeSeconds; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_AndroidPublisher_Entitlement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $productId; - public $productType; - public $token; - - - 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 setProductType($productType) - { - $this->productType = $productType; - } - public function getProductType() - { - return $this->productType; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } -} - -class Google_Service_AndroidPublisher_EntitlementsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; - protected $pageInfoDataType = ''; - protected $resourcesType = 'Google_Service_AndroidPublisher_Entitlement'; - protected $resourcesDataType = 'array'; - protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; - protected $tokenPaginationDataType = ''; - - - public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } - public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } -} - -class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fileSize; - public $referencesVersion; - - - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setReferencesVersion($referencesVersion) - { - $this->referencesVersion = $referencesVersion; - } - public function getReferencesVersion() - { - return $this->referencesVersion; - } -} - -class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; - protected $expansionFileDataType = ''; - - - public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile) - { - $this->expansionFile = $expansionFile; - } - public function getExpansionFile() - { - return $this->expansionFile; - } -} - -class Google_Service_AndroidPublisher_ExternallyHostedApk extends Google_Collection -{ - protected $collection_key = 'usesPermissions'; - protected $internal_gapi_mappings = array( - ); - public $applicationLabel; - public $certificateBase64s; - public $externallyHostedUrl; - public $fileSha1Base64; - public $fileSha256Base64; - public $fileSize; - public $iconBase64; - public $maximumSdk; - public $minimumSdk; - public $nativeCodes; - public $packageName; - public $usesFeatures; - protected $usesPermissionsType = 'Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission'; - protected $usesPermissionsDataType = 'array'; - public $versionCode; - public $versionName; - - - public function setApplicationLabel($applicationLabel) - { - $this->applicationLabel = $applicationLabel; - } - public function getApplicationLabel() - { - return $this->applicationLabel; - } - public function setCertificateBase64s($certificateBase64s) - { - $this->certificateBase64s = $certificateBase64s; - } - public function getCertificateBase64s() - { - return $this->certificateBase64s; - } - public function setExternallyHostedUrl($externallyHostedUrl) - { - $this->externallyHostedUrl = $externallyHostedUrl; - } - public function getExternallyHostedUrl() - { - return $this->externallyHostedUrl; - } - public function setFileSha1Base64($fileSha1Base64) - { - $this->fileSha1Base64 = $fileSha1Base64; - } - public function getFileSha1Base64() - { - return $this->fileSha1Base64; - } - public function setFileSha256Base64($fileSha256Base64) - { - $this->fileSha256Base64 = $fileSha256Base64; - } - public function getFileSha256Base64() - { - return $this->fileSha256Base64; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setIconBase64($iconBase64) - { - $this->iconBase64 = $iconBase64; - } - public function getIconBase64() - { - return $this->iconBase64; - } - public function setMaximumSdk($maximumSdk) - { - $this->maximumSdk = $maximumSdk; - } - public function getMaximumSdk() - { - return $this->maximumSdk; - } - public function setMinimumSdk($minimumSdk) - { - $this->minimumSdk = $minimumSdk; - } - public function getMinimumSdk() - { - return $this->minimumSdk; - } - public function setNativeCodes($nativeCodes) - { - $this->nativeCodes = $nativeCodes; - } - public function getNativeCodes() - { - return $this->nativeCodes; - } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - public function getPackageName() - { - return $this->packageName; - } - public function setUsesFeatures($usesFeatures) - { - $this->usesFeatures = $usesFeatures; - } - public function getUsesFeatures() - { - return $this->usesFeatures; - } - public function setUsesPermissions($usesPermissions) - { - $this->usesPermissions = $usesPermissions; - } - public function getUsesPermissions() - { - return $this->usesPermissions; - } - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - public function getVersionCode() - { - return $this->versionCode; - } - public function setVersionName($versionName) - { - $this->versionName = $versionName; - } - public function getVersionName() - { - return $this->versionName; - } -} - -class Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $maxSdkVersion; - public $name; - - - public function setMaxSdkVersion($maxSdkVersion) - { - $this->maxSdkVersion = $maxSdkVersion; - } - public function getMaxSdkVersion() - { - return $this->maxSdkVersion; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_AndroidPublisher_Image extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $sha1; - public $url; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setSha1($sha1) - { - $this->sha1 = $sha1; - } - public function getSha1() - { - return $this->sha1; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection -{ - protected $collection_key = 'deleted'; - protected $internal_gapi_mappings = array( - ); - protected $deletedType = 'Google_Service_AndroidPublisher_Image'; - protected $deletedDataType = 'array'; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } -} - -class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection -{ - protected $collection_key = 'images'; - protected $internal_gapi_mappings = array( - ); - protected $imagesType = 'Google_Service_AndroidPublisher_Image'; - protected $imagesDataType = 'array'; - - - public function setImages($images) - { - $this->images = $images; - } - public function getImages() - { - return $this->images; - } -} - -class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $imageType = 'Google_Service_AndroidPublisher_Image'; - protected $imageDataType = ''; - - - public function setImage(Google_Service_AndroidPublisher_Image $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } -} - -class Google_Service_AndroidPublisher_InAppProduct extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $defaultLanguage; - protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; - protected $defaultPriceDataType = ''; - protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing'; - protected $listingsDataType = 'map'; - public $packageName; - protected $pricesType = 'Google_Service_AndroidPublisher_Price'; - protected $pricesDataType = 'map'; - public $purchaseType; - protected $seasonType = 'Google_Service_AndroidPublisher_Season'; - protected $seasonDataType = ''; - public $sku; - public $status; - public $subscriptionPeriod; - public $trialPeriod; - - - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) - { - $this->defaultPrice = $defaultPrice; - } - public function getDefaultPrice() - { - return $this->defaultPrice; - } - public function setListings($listings) - { - $this->listings = $listings; - } - public function getListings() - { - return $this->listings; - } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - public function getPackageName() - { - return $this->packageName; - } - public function setPrices($prices) - { - $this->prices = $prices; - } - public function getPrices() - { - return $this->prices; - } - public function setPurchaseType($purchaseType) - { - $this->purchaseType = $purchaseType; - } - public function getPurchaseType() - { - return $this->purchaseType; - } - public function setSeason(Google_Service_AndroidPublisher_Season $season) - { - $this->season = $season; - } - public function getSeason() - { - return $this->season; - } - public function setSku($sku) - { - $this->sku = $sku; - } - public function getSku() - { - return $this->sku; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubscriptionPeriod($subscriptionPeriod) - { - $this->subscriptionPeriod = $subscriptionPeriod; - } - public function getSubscriptionPeriod() - { - return $this->subscriptionPeriod; - } - public function setTrialPeriod($trialPeriod) - { - $this->trialPeriod = $trialPeriod; - } - public function getTrialPeriod() - { - return $this->trialPeriod; - } -} - -class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection -{ - protected $collection_key = 'entrys'; - protected $internal_gapi_mappings = array( - ); - protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; - protected $entrysDataType = 'array'; - - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - public function getEntrys() - { - return $this->entrys; - } -} - -class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest'; - protected $inappproductsinsertrequestDataType = ''; - protected $inappproductsupdaterequestType = 'Google_Service_AndroidPublisher_InappproductsUpdateRequest'; - protected $inappproductsupdaterequestDataType = ''; - public $methodName; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest) - { - $this->inappproductsinsertrequest = $inappproductsinsertrequest; - } - public function getInappproductsinsertrequest() - { - return $this->inappproductsinsertrequest; - } - public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest) - { - $this->inappproductsupdaterequest = $inappproductsupdaterequest; - } - public function getInappproductsupdaterequest() - { - return $this->inappproductsupdaterequest; - } - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - public function getMethodName() - { - return $this->methodName; - } -} - -class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection -{ - protected $collection_key = 'entrys'; - protected $internal_gapi_mappings = array( - ); - protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; - - - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } - public function getEntrys() - { - return $this->entrys; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse'; - protected $inappproductsinsertresponseDataType = ''; - protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse'; - protected $inappproductsupdateresponseDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse) - { - $this->inappproductsinsertresponse = $inappproductsinsertresponse; - } - public function getInappproductsinsertresponse() - { - return $this->inappproductsinsertresponse; - } - public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse) - { - $this->inappproductsupdateresponse = $inappproductsupdateresponse; - } - public function getInappproductsupdateresponse() - { - return $this->inappproductsupdateresponse; - } -} - -class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; - - - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } - public function getInappproduct() - { - return $this->inappproduct; - } -} - -class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; - - - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } - public function getInappproduct() - { - return $this->inappproduct; - } -} - -class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection -{ - protected $collection_key = 'inappproduct'; - protected $internal_gapi_mappings = array( - ); - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = 'array'; - public $kind; - protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; - protected $tokenPaginationDataType = ''; - - - public function setInappproduct($inappproduct) - { - $this->inappproduct = $inappproduct; - } - public function getInappproduct() - { - return $this->inappproduct; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } -} - -class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; - - - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } - public function getInappproduct() - { - return $this->inappproduct; - } -} - -class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; - - - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } - public function getInappproduct() - { - return $this->inappproduct; - } -} - -class Google_Service_AndroidPublisher_Listing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fullDescription; - public $language; - public $shortDescription; - public $title; - public $video; - - - public function setFullDescription($fullDescription) - { - $this->fullDescription = $fullDescription; - } - public function getFullDescription() - { - return $this->fullDescription; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setShortDescription($shortDescription) - { - $this->shortDescription = $shortDescription; - } - public function getShortDescription() - { - return $this->shortDescription; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setVideo($video) - { - $this->video = $video; - } - public function getVideo() - { - return $this->video; - } -} - -class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection -{ - protected $collection_key = 'listings'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; - protected $listingsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setListings($listings) - { - $this->listings = $listings; - } - public function getListings() - { - return $this->listings; - } -} - -class Google_Service_AndroidPublisher_MonthDay extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $day; - public $month; - - - public function setDay($day) - { - $this->day = $day; - } - public function getDay() - { - return $this->day; - } - public function setMonth($month) - { - $this->month = $month; - } - public function getMonth() - { - return $this->month; - } -} - -class Google_Service_AndroidPublisher_PageInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $resultPerPage; - public $startIndex; - public $totalResults; - - - public function setResultPerPage($resultPerPage) - { - $this->resultPerPage = $resultPerPage; - } - public function getResultPerPage() - { - return $this->resultPerPage; - } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - public function getStartIndex() - { - return $this->startIndex; - } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - public function getTotalResults() - { - return $this->totalResults; - } -} - -class Google_Service_AndroidPublisher_Price extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currency; - public $priceMicros; - - - public function setCurrency($currency) - { - $this->currency = $currency; - } - public function getCurrency() - { - return $this->currency; - } - public function setPriceMicros($priceMicros) - { - $this->priceMicros = $priceMicros; - } - public function getPriceMicros() - { - return $this->priceMicros; - } -} - -class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $consumptionState; - public $developerPayload; - public $kind; - public $purchaseState; - public $purchaseTimeMillis; - - - public function setConsumptionState($consumptionState) - { - $this->consumptionState = $consumptionState; - } - public function getConsumptionState() - { - return $this->consumptionState; - } - public function setDeveloperPayload($developerPayload) - { - $this->developerPayload = $developerPayload; - } - public function getDeveloperPayload() - { - return $this->developerPayload; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPurchaseState($purchaseState) - { - $this->purchaseState = $purchaseState; - } - public function getPurchaseState() - { - return $this->purchaseState; - } - public function setPurchaseTimeMillis($purchaseTimeMillis) - { - $this->purchaseTimeMillis = $purchaseTimeMillis; - } - public function getPurchaseTimeMillis() - { - return $this->purchaseTimeMillis; - } -} - -class Google_Service_AndroidPublisher_Prorate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; - protected $defaultPriceDataType = ''; - protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; - protected $startDataType = ''; - - - public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) - { - $this->defaultPrice = $defaultPrice; - } - public function getDefaultPrice() - { - return $this->defaultPrice; - } - public function setStart(Google_Service_AndroidPublisher_MonthDay $start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_AndroidPublisher_Season extends Google_Collection -{ - protected $collection_key = 'prorations'; - protected $internal_gapi_mappings = array( - ); - protected $endType = 'Google_Service_AndroidPublisher_MonthDay'; - protected $endDataType = ''; - protected $prorationsType = 'Google_Service_AndroidPublisher_Prorate'; - protected $prorationsDataType = 'array'; - protected $startType = 'Google_Service_AndroidPublisher_MonthDay'; - protected $startDataType = ''; - - - public function setEnd(Google_Service_AndroidPublisher_MonthDay $end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setProrations($prorations) - { - $this->prorations = $prorations; - } - public function getProrations() - { - return $this->prorations; - } - public function setStart(Google_Service_AndroidPublisher_MonthDay $start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $desiredExpiryTimeMillis; - public $expectedExpiryTimeMillis; - - - public function setDesiredExpiryTimeMillis($desiredExpiryTimeMillis) - { - $this->desiredExpiryTimeMillis = $desiredExpiryTimeMillis; - } - public function getDesiredExpiryTimeMillis() - { - return $this->desiredExpiryTimeMillis; - } - public function setExpectedExpiryTimeMillis($expectedExpiryTimeMillis) - { - $this->expectedExpiryTimeMillis = $expectedExpiryTimeMillis; - } - public function getExpectedExpiryTimeMillis() - { - return $this->expectedExpiryTimeMillis; - } -} - -class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoRenewing; - public $expiryTimeMillis; - public $kind; - public $startTimeMillis; - - - public function setAutoRenewing($autoRenewing) - { - $this->autoRenewing = $autoRenewing; - } - public function getAutoRenewing() - { - return $this->autoRenewing; - } - public function setExpiryTimeMillis($expiryTimeMillis) - { - $this->expiryTimeMillis = $expiryTimeMillis; - } - public function getExpiryTimeMillis() - { - return $this->expiryTimeMillis; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTimeMillis($startTimeMillis) - { - $this->startTimeMillis = $startTimeMillis; - } - public function getStartTimeMillis() - { - return $this->startTimeMillis; - } -} - -class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $deferralInfoType = 'Google_Service_AndroidPublisher_SubscriptionDeferralInfo'; - protected $deferralInfoDataType = ''; - - - public function setDeferralInfo(Google_Service_AndroidPublisher_SubscriptionDeferralInfo $deferralInfo) - { - $this->deferralInfo = $deferralInfo; - } - public function getDeferralInfo() - { - return $this->deferralInfo; - } -} - -class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $newExpiryTimeMillis; - - - public function setNewExpiryTimeMillis($newExpiryTimeMillis) - { - $this->newExpiryTimeMillis = $newExpiryTimeMillis; - } - public function getNewExpiryTimeMillis() - { - return $this->newExpiryTimeMillis; - } -} - -class Google_Service_AndroidPublisher_Testers extends Google_Collection -{ - protected $collection_key = 'googlePlusCommunities'; - protected $internal_gapi_mappings = array( - ); - public $googleGroups; - public $googlePlusCommunities; - - - public function setGoogleGroups($googleGroups) - { - $this->googleGroups = $googleGroups; - } - public function getGoogleGroups() - { - return $this->googleGroups; - } - public function setGooglePlusCommunities($googlePlusCommunities) - { - $this->googlePlusCommunities = $googlePlusCommunities; - } - public function getGooglePlusCommunities() - { - return $this->googlePlusCommunities; - } -} - -class Google_Service_AndroidPublisher_TokenPagination extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $previousPageToken; - - - 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_AndroidPublisher_Track extends Google_Collection -{ - protected $collection_key = 'versionCodes'; - protected $internal_gapi_mappings = array( - ); - public $track; - public $userFraction; - public $versionCodes; - - - public function setTrack($track) - { - $this->track = $track; - } - public function getTrack() - { - return $this->track; - } - public function setUserFraction($userFraction) - { - $this->userFraction = $userFraction; - } - public function getUserFraction() - { - return $this->userFraction; - } - public function setVersionCodes($versionCodes) - { - $this->versionCodes = $versionCodes; - } - public function getVersionCodes() - { - return $this->versionCodes; - } -} - -class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection -{ - protected $collection_key = 'tracks'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $tracksType = 'Google_Service_AndroidPublisher_Track'; - protected $tracksDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTracks($tracks) - { - $this->tracks = $tracks; - } - public function getTracks() - { - return $this->tracks; - } -} diff --git a/src/Google/Service/AppState.php b/src/Google/Service/AppState.php deleted file mode 100644 index 9a9e8e70a..000000000 --- a/src/Google/Service/AppState.php +++ /dev/null @@ -1,369 +0,0 @@ - - * The Google App State API.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_AppState extends Google_Service -{ - /** View and manage your data for this application. */ - const APPSTATE = - "https://www.googleapis.com/auth/appstate"; - - public $states; - - - /** - * Constructs the internal representation of the AppState service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'appstate/v1/'; - $this->version = 'v1'; - $this->serviceName = 'appstate'; - - $this->states = new Google_Service_AppState_States_Resource( - $this, - $this->serviceName, - 'states', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'states/{stateKey}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'currentDataVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'states', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'currentStateVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "states" collection of methods. - * Typical usage is: - * - * $appstateService = new Google_Service_AppState(...); - * $states = $appstateService->states; - * - */ -class Google_Service_AppState_States_Resource extends Google_Service_Resource -{ - - /** - * Clears (sets to empty) the data for the passed key if and only if the passed - * version matches the currently stored version. This method results in a - * conflict error on version mismatch. (states.clear) - * - * @param int $stateKey The key for the data to be retrieved. - * @param array $optParams Optional parameters. - * - * @opt_param string currentDataVersion The version of the data to be cleared. - * Version strings are returned by the server. - * @return Google_Service_AppState_WriteResult - */ - public function clear($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('clear', array($params), "Google_Service_AppState_WriteResult"); - } - - /** - * Deletes a key and the data associated with it. The key is removed and no - * longer counts against the key quota. Note that since this method is not safe - * in the face of concurrent modifications, it should only be used for - * development and testing purposes. Invoking this method in shipping code can - * result in data loss and data corruption. (states.delete) - * - * @param int $stateKey The key for the data to be retrieved. - * @param array $optParams Optional parameters. - */ - public function delete($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the data corresponding to the passed key. If the key does not exist - * on the server, an HTTP 404 will be returned. (states.get) - * - * @param int $stateKey The key for the data to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_AppState_GetResponse - */ - public function get($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AppState_GetResponse"); - } - - /** - * Lists all the states keys, and optionally the state data. (states.listStates) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeData Whether to include the full data in addition to - * the version number - * @return Google_Service_AppState_ListResponse - */ - public function listStates($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AppState_ListResponse"); - } - - /** - * Update the data associated with the input key if and only if the passed - * version matches the currently stored version. This method is safe in the face - * of concurrent writes. Maximum per-key size is 128KB. (states.update) - * - * @param int $stateKey The key for the data to be retrieved. - * @param Google_UpdateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string currentStateVersion The version of the app state your - * application is attempting to update. If this does not match the current - * version, this method will return a conflict error. If there is no data stored - * on the server for this key, the update will succeed irrespective of the value - * of this parameter. - * @return Google_Service_AppState_WriteResult - */ - public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array()) - { - $params = array('stateKey' => $stateKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AppState_WriteResult"); - } -} - - - - -class Google_Service_AppState_GetResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentStateVersion; - public $data; - public $kind; - public $stateKey; - - - public function setCurrentStateVersion($currentStateVersion) - { - $this->currentStateVersion = $currentStateVersion; - } - public function getCurrentStateVersion() - { - return $this->currentStateVersion; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStateKey($stateKey) - { - $this->stateKey = $stateKey; - } - public function getStateKey() - { - return $this->stateKey; - } -} - -class Google_Service_AppState_ListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_AppState_GetResponse'; - protected $itemsDataType = 'array'; - public $kind; - public $maximumKeyCount; - - - 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 setMaximumKeyCount($maximumKeyCount) - { - $this->maximumKeyCount = $maximumKeyCount; - } - public function getMaximumKeyCount() - { - return $this->maximumKeyCount; - } -} - -class Google_Service_AppState_UpdateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $data; - public $kind; - - - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_AppState_WriteResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentStateVersion; - public $kind; - public $stateKey; - - - public function setCurrentStateVersion($currentStateVersion) - { - $this->currentStateVersion = $currentStateVersion; - } - public function getCurrentStateVersion() - { - return $this->currentStateVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStateKey($stateKey) - { - $this->stateKey = $stateKey; - } - public function getStateKey() - { - return $this->stateKey; - } -} diff --git a/src/Google/Service/Appengine.php b/src/Google/Service/Appengine.php deleted file mode 100644 index 2b788b6f9..000000000 --- a/src/Google/Service/Appengine.php +++ /dev/null @@ -1,2217 +0,0 @@ - - * The Google App Engine Admin API enables developers to provision and manage - * their App Engine applications.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Appengine extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $apps; - public $apps_operations; - public $apps_services; - public $apps_services_versions; - - - /** - * Constructs the internal representation of the Appengine service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://appengine.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1beta5'; - $this->serviceName = 'appengine'; - - $this->apps = new Google_Service_Appengine_Apps_Resource( - $this, - $this->serviceName, - 'apps', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1beta5/apps/{appsId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ensureResourcesExist' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->apps_operations = new Google_Service_Appengine_AppsOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1beta5/apps/{appsId}/operations/{operationsId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operationsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta5/apps/{appsId}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->apps_services = new Google_Service_Appengine_AppsServices_Resource( - $this, - $this->serviceName, - 'services', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta5/apps/{appsId}/services', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'mask' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'migrateTraffic' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->apps_services_versions = new Google_Service_Appengine_AppsServicesVersions_Resource( - $this, - $this->serviceName, - 'versions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'versionsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'versionsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'appsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'servicesId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'versionsId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'mask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "apps" collection of methods. - * Typical usage is: - * - * $appengineService = new Google_Service_Appengine(...); - * $apps = $appengineService->apps; - * - */ -class Google_Service_Appengine_Apps_Resource extends Google_Service_Resource -{ - - /** - * Gets information about an application. (apps.get) - * - * @param string $appsId Part of `name`. Name of the application to get. For - * example: "apps/myapp". - * @param array $optParams Optional parameters. - * - * @opt_param bool ensureResourcesExist Certain resources associated with an - * application are created on-demand. Controls whether these resources should be - * created when performing the `GET` operation. If specified and any resources - * could not be created, the request will fail with an error code. Additionally, - * this parameter can cause the request to take longer to complete. Note: This - * parameter will be deprecated in a future version of the API. - * @return Google_Service_Appengine_Application - */ - public function get($appsId, $optParams = array()) - { - $params = array('appsId' => $appsId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Application"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $appengineService = new Google_Service_Appengine(...); - * $operations = $appengineService->operations; - * - */ -class Google_Service_Appengine_AppsOperations_Resource extends Google_Service_Resource -{ - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) - * - * @param string $appsId Part of `name`. The name of the operation resource. - * @param string $operationsId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Operation - */ - public function get($appsId, $operationsId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'operationsId' => $operationsId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users/operations`. - * (operations.listAppsOperations) - * - * @param string $appsId Part of `name`. The name of the operation collection. - * @param array $optParams Optional parameters. - * - * @opt_param string filter The standard list filter. - * @opt_param int pageSize The standard list page size. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_Appengine_ListOperationsResponse - */ - public function listAppsOperations($appsId, $optParams = array()) - { - $params = array('appsId' => $appsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse"); - } -} -/** - * The "services" collection of methods. - * Typical usage is: - * - * $appengineService = new Google_Service_Appengine(...); - * $services = $appengineService->services; - * - */ -class Google_Service_Appengine_AppsServices_Resource extends Google_Service_Resource -{ - - /** - * Deletes a service and all enclosed versions. (services.delete) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/services/default". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Operation - */ - public function delete($appsId, $servicesId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); - } - - /** - * Gets the current configuration of the service. (services.get) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/services/default". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Service - */ - public function get($appsId, $servicesId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Service"); - } - - /** - * Lists all the services in the application. (services.listAppsServices) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp". - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum results to return per page. - * @opt_param string pageToken Continuation token for fetching the next page of - * results. - * @return Google_Service_Appengine_ListServicesResponse - */ - public function listAppsServices($appsId, $optParams = array()) - { - $params = array('appsId' => $appsId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appengine_ListServicesResponse"); - } - - /** - * Updates the configuration of the specified service. (services.patch) - * - * @param string $appsId Part of `name`. Name of the resource to update. For - * example: "apps/myapp/services/default". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param Google_Service $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string mask Standard field mask for the set of fields to be - * updated. - * @opt_param bool migrateTraffic Whether to use Traffic Migration to shift - * traffic gradually. Traffic can only be migrated from a single version to - * another single version. - * @return Google_Service_Appengine_Operation - */ - public function patch($appsId, $servicesId, Google_Service_Appengine_Service $postBody, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Appengine_Operation"); - } -} - -/** - * The "versions" collection of methods. - * Typical usage is: - * - * $appengineService = new Google_Service_Appengine(...); - * $versions = $appengineService->versions; - * - */ -class Google_Service_Appengine_AppsServicesVersions_Resource extends Google_Service_Resource -{ - - /** - * Deploys new code and resource files to a version. (versions.create) - * - * @param string $appsId Part of `name`. Name of the resource to update. For - * example: "apps/myapp/services/default". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param Google_Version $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Operation - */ - public function create($appsId, $servicesId, Google_Service_Appengine_Version $postBody, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Appengine_Operation"); - } - - /** - * Deletes an existing version. (versions.delete) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/services/default/versions/v1". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param string $versionsId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * @return Google_Service_Appengine_Operation - */ - public function delete($appsId, $servicesId, $versionsId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Appengine_Operation"); - } - - /** - * Gets application deployment information. (versions.get) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/services/default/versions/v1". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param string $versionsId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * - * @opt_param string view Controls the set of fields returned in the `Get` - * response. - * @return Google_Service_Appengine_Version - */ - public function get($appsId, $servicesId, $versionsId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Appengine_Version"); - } - - /** - * Lists the versions of a service. (versions.listAppsServicesVersions) - * - * @param string $appsId Part of `name`. Name of the resource requested. For - * example: "apps/myapp/services/default". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param array $optParams Optional parameters. - * - * @opt_param string view Controls the set of fields returned in the `List` - * response. - * @opt_param int pageSize Maximum results to return per page. - * @opt_param string pageToken Continuation token for fetching the next page of - * results. - * @return Google_Service_Appengine_ListVersionsResponse - */ - public function listAppsServicesVersions($appsId, $servicesId, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appengine_ListVersionsResponse"); - } - - /** - * Updates an existing version. Note: UNIMPLEMENTED. (versions.patch) - * - * @param string $appsId Part of `name`. Name of the resource to update. For - * example: "apps/myapp/services/default/versions/1". - * @param string $servicesId Part of `name`. See documentation of `appsId`. - * @param string $versionsId Part of `name`. See documentation of `appsId`. - * @param Google_Version $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string mask Standard field mask for the set of fields to be - * updated. - * @return Google_Service_Appengine_Version - */ - public function patch($appsId, $servicesId, $versionsId, Google_Service_Appengine_Version $postBody, $optParams = array()) - { - $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Appengine_Version"); - } -} - - - - -class Google_Service_Appengine_ApiConfigHandler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $authFailAction; - public $login; - public $script; - public $securityLevel; - public $url; - - - public function setAuthFailAction($authFailAction) - { - $this->authFailAction = $authFailAction; - } - public function getAuthFailAction() - { - return $this->authFailAction; - } - public function setLogin($login) - { - $this->login = $login; - } - public function getLogin() - { - return $this->login; - } - public function setScript($script) - { - $this->script = $script; - } - public function getScript() - { - return $this->script; - } - public function setSecurityLevel($securityLevel) - { - $this->securityLevel = $securityLevel; - } - public function getSecurityLevel() - { - return $this->securityLevel; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Appengine_ApiEndpointHandler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $scriptPath; - - - public function setScriptPath($scriptPath) - { - $this->scriptPath = $scriptPath; - } - public function getScriptPath() - { - return $this->scriptPath; - } -} - -class Google_Service_Appengine_Application extends Google_Collection -{ - protected $collection_key = 'dispatchRules'; - protected $internal_gapi_mappings = array( - ); - public $authDomain; - public $codeBucket; - public $defaultBucket; - public $defaultCookieExpiration; - public $defaultHostname; - protected $dispatchRulesType = 'Google_Service_Appengine_UrlDispatchRule'; - protected $dispatchRulesDataType = 'array'; - public $id; - public $location; - public $name; - - - public function setAuthDomain($authDomain) - { - $this->authDomain = $authDomain; - } - public function getAuthDomain() - { - return $this->authDomain; - } - public function setCodeBucket($codeBucket) - { - $this->codeBucket = $codeBucket; - } - public function getCodeBucket() - { - return $this->codeBucket; - } - public function setDefaultBucket($defaultBucket) - { - $this->defaultBucket = $defaultBucket; - } - public function getDefaultBucket() - { - return $this->defaultBucket; - } - public function setDefaultCookieExpiration($defaultCookieExpiration) - { - $this->defaultCookieExpiration = $defaultCookieExpiration; - } - public function getDefaultCookieExpiration() - { - return $this->defaultCookieExpiration; - } - public function setDefaultHostname($defaultHostname) - { - $this->defaultHostname = $defaultHostname; - } - public function getDefaultHostname() - { - return $this->defaultHostname; - } - public function setDispatchRules($dispatchRules) - { - $this->dispatchRules = $dispatchRules; - } - public function getDispatchRules() - { - return $this->dispatchRules; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Appengine_AutomaticScaling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $coolDownPeriod; - protected $cpuUtilizationType = 'Google_Service_Appengine_CpuUtilization'; - protected $cpuUtilizationDataType = ''; - protected $diskUtilizationType = 'Google_Service_Appengine_DiskUtilization'; - protected $diskUtilizationDataType = ''; - public $maxConcurrentRequests; - public $maxIdleInstances; - public $maxPendingLatency; - public $maxTotalInstances; - public $minIdleInstances; - public $minPendingLatency; - public $minTotalInstances; - protected $networkUtilizationType = 'Google_Service_Appengine_NetworkUtilization'; - protected $networkUtilizationDataType = ''; - protected $requestUtilizationType = 'Google_Service_Appengine_RequestUtilization'; - protected $requestUtilizationDataType = ''; - - - public function setCoolDownPeriod($coolDownPeriod) - { - $this->coolDownPeriod = $coolDownPeriod; - } - public function getCoolDownPeriod() - { - return $this->coolDownPeriod; - } - public function setCpuUtilization(Google_Service_Appengine_CpuUtilization $cpuUtilization) - { - $this->cpuUtilization = $cpuUtilization; - } - public function getCpuUtilization() - { - return $this->cpuUtilization; - } - public function setDiskUtilization(Google_Service_Appengine_DiskUtilization $diskUtilization) - { - $this->diskUtilization = $diskUtilization; - } - public function getDiskUtilization() - { - return $this->diskUtilization; - } - public function setMaxConcurrentRequests($maxConcurrentRequests) - { - $this->maxConcurrentRequests = $maxConcurrentRequests; - } - public function getMaxConcurrentRequests() - { - return $this->maxConcurrentRequests; - } - public function setMaxIdleInstances($maxIdleInstances) - { - $this->maxIdleInstances = $maxIdleInstances; - } - public function getMaxIdleInstances() - { - return $this->maxIdleInstances; - } - public function setMaxPendingLatency($maxPendingLatency) - { - $this->maxPendingLatency = $maxPendingLatency; - } - public function getMaxPendingLatency() - { - return $this->maxPendingLatency; - } - public function setMaxTotalInstances($maxTotalInstances) - { - $this->maxTotalInstances = $maxTotalInstances; - } - public function getMaxTotalInstances() - { - return $this->maxTotalInstances; - } - public function setMinIdleInstances($minIdleInstances) - { - $this->minIdleInstances = $minIdleInstances; - } - public function getMinIdleInstances() - { - return $this->minIdleInstances; - } - public function setMinPendingLatency($minPendingLatency) - { - $this->minPendingLatency = $minPendingLatency; - } - public function getMinPendingLatency() - { - return $this->minPendingLatency; - } - public function setMinTotalInstances($minTotalInstances) - { - $this->minTotalInstances = $minTotalInstances; - } - public function getMinTotalInstances() - { - return $this->minTotalInstances; - } - public function setNetworkUtilization(Google_Service_Appengine_NetworkUtilization $networkUtilization) - { - $this->networkUtilization = $networkUtilization; - } - public function getNetworkUtilization() - { - return $this->networkUtilization; - } - public function setRequestUtilization(Google_Service_Appengine_RequestUtilization $requestUtilization) - { - $this->requestUtilization = $requestUtilization; - } - public function getRequestUtilization() - { - return $this->requestUtilization; - } -} - -class Google_Service_Appengine_BasicScaling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $idleTimeout; - public $maxInstances; - - - public function setIdleTimeout($idleTimeout) - { - $this->idleTimeout = $idleTimeout; - } - public function getIdleTimeout() - { - return $this->idleTimeout; - } - public function setMaxInstances($maxInstances) - { - $this->maxInstances = $maxInstances; - } - public function getMaxInstances() - { - return $this->maxInstances; - } -} - -class Google_Service_Appengine_ContainerInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $image; - - - public function setImage($image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } -} - -class Google_Service_Appengine_CpuUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aggregationWindowLength; - public $targetUtilization; - - - public function setAggregationWindowLength($aggregationWindowLength) - { - $this->aggregationWindowLength = $aggregationWindowLength; - } - public function getAggregationWindowLength() - { - return $this->aggregationWindowLength; - } - public function setTargetUtilization($targetUtilization) - { - $this->targetUtilization = $targetUtilization; - } - public function getTargetUtilization() - { - return $this->targetUtilization; - } -} - -class Google_Service_Appengine_Deployment extends Google_Collection -{ - protected $collection_key = 'sourceReferences'; - protected $internal_gapi_mappings = array( - ); - protected $containerType = 'Google_Service_Appengine_ContainerInfo'; - protected $containerDataType = ''; - protected $filesType = 'Google_Service_Appengine_FileInfo'; - protected $filesDataType = 'map'; - protected $sourceReferencesType = 'Google_Service_Appengine_SourceReference'; - protected $sourceReferencesDataType = 'array'; - - - public function setContainer(Google_Service_Appengine_ContainerInfo $container) - { - $this->container = $container; - } - public function getContainer() - { - return $this->container; - } - public function setFiles($files) - { - $this->files = $files; - } - public function getFiles() - { - return $this->files; - } - public function setSourceReferences($sourceReferences) - { - $this->sourceReferences = $sourceReferences; - } - public function getSourceReferences() - { - return $this->sourceReferences; - } -} - -class Google_Service_Appengine_DiskUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $targetReadBytesPerSec; - public $targetReadOpsPerSec; - public $targetWriteBytesPerSec; - public $targetWriteOpsPerSec; - - - public function setTargetReadBytesPerSec($targetReadBytesPerSec) - { - $this->targetReadBytesPerSec = $targetReadBytesPerSec; - } - public function getTargetReadBytesPerSec() - { - return $this->targetReadBytesPerSec; - } - public function setTargetReadOpsPerSec($targetReadOpsPerSec) - { - $this->targetReadOpsPerSec = $targetReadOpsPerSec; - } - public function getTargetReadOpsPerSec() - { - return $this->targetReadOpsPerSec; - } - public function setTargetWriteBytesPerSec($targetWriteBytesPerSec) - { - $this->targetWriteBytesPerSec = $targetWriteBytesPerSec; - } - public function getTargetWriteBytesPerSec() - { - return $this->targetWriteBytesPerSec; - } - public function setTargetWriteOpsPerSec($targetWriteOpsPerSec) - { - $this->targetWriteOpsPerSec = $targetWriteOpsPerSec; - } - public function getTargetWriteOpsPerSec() - { - return $this->targetWriteOpsPerSec; - } -} - -class Google_Service_Appengine_ErrorHandler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $errorCode; - public $mimeType; - public $staticFile; - - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - public function getErrorCode() - { - return $this->errorCode; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setStaticFile($staticFile) - { - $this->staticFile = $staticFile; - } - public function getStaticFile() - { - return $this->staticFile; - } -} - -class Google_Service_Appengine_FileInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $mimeType; - public $sha1Sum; - public $sourceUrl; - - - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setSha1Sum($sha1Sum) - { - $this->sha1Sum = $sha1Sum; - } - public function getSha1Sum() - { - return $this->sha1Sum; - } - public function setSourceUrl($sourceUrl) - { - $this->sourceUrl = $sourceUrl; - } - public function getSourceUrl() - { - return $this->sourceUrl; - } -} - -class Google_Service_Appengine_HealthCheck extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $checkInterval; - public $disableHealthCheck; - public $healthyThreshold; - public $host; - public $restartThreshold; - public $timeout; - public $unhealthyThreshold; - - - public function setCheckInterval($checkInterval) - { - $this->checkInterval = $checkInterval; - } - public function getCheckInterval() - { - return $this->checkInterval; - } - public function setDisableHealthCheck($disableHealthCheck) - { - $this->disableHealthCheck = $disableHealthCheck; - } - public function getDisableHealthCheck() - { - return $this->disableHealthCheck; - } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setRestartThreshold($restartThreshold) - { - $this->restartThreshold = $restartThreshold; - } - public function getRestartThreshold() - { - return $this->restartThreshold; - } - public function setTimeout($timeout) - { - $this->timeout = $timeout; - } - public function getTimeout() - { - return $this->timeout; - } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Appengine_Library extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $version; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Appengine_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_Appengine_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Appengine_ListServicesResponse extends Google_Collection -{ - protected $collection_key = 'services'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $servicesType = 'Google_Service_Appengine_Service'; - protected $servicesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setServices($services) - { - $this->services = $services; - } - public function getServices() - { - return $this->services; - } -} - -class Google_Service_Appengine_ListVersionsResponse extends Google_Collection -{ - protected $collection_key = 'versions'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $versionsType = 'Google_Service_Appengine_Version'; - protected $versionsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setVersions($versions) - { - $this->versions = $versions; - } - public function getVersions() - { - return $this->versions; - } -} - -class Google_Service_Appengine_ManualScaling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Appengine_Network extends Google_Collection -{ - protected $collection_key = 'forwardedPorts'; - protected $internal_gapi_mappings = array( - ); - public $forwardedPorts; - public $instanceTag; - public $name; - - - public function setForwardedPorts($forwardedPorts) - { - $this->forwardedPorts = $forwardedPorts; - } - public function getForwardedPorts() - { - return $this->forwardedPorts; - } - public function setInstanceTag($instanceTag) - { - $this->instanceTag = $instanceTag; - } - public function getInstanceTag() - { - return $this->instanceTag; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Appengine_NetworkUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $targetReceivedBytesPerSec; - public $targetReceivedPacketsPerSec; - public $targetSentBytesPerSec; - public $targetSentPacketsPerSec; - - - public function setTargetReceivedBytesPerSec($targetReceivedBytesPerSec) - { - $this->targetReceivedBytesPerSec = $targetReceivedBytesPerSec; - } - public function getTargetReceivedBytesPerSec() - { - return $this->targetReceivedBytesPerSec; - } - public function setTargetReceivedPacketsPerSec($targetReceivedPacketsPerSec) - { - $this->targetReceivedPacketsPerSec = $targetReceivedPacketsPerSec; - } - public function getTargetReceivedPacketsPerSec() - { - return $this->targetReceivedPacketsPerSec; - } - public function setTargetSentBytesPerSec($targetSentBytesPerSec) - { - $this->targetSentBytesPerSec = $targetSentBytesPerSec; - } - public function getTargetSentBytesPerSec() - { - return $this->targetSentBytesPerSec; - } - public function setTargetSentPacketsPerSec($targetSentPacketsPerSec) - { - $this->targetSentPacketsPerSec = $targetSentPacketsPerSec; - } - public function getTargetSentPacketsPerSec() - { - return $this->targetSentPacketsPerSec; - } -} - -class Google_Service_Appengine_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_Appengine_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_Appengine_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Appengine_OperationMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $insertTime; - public $method; - public $operationType; - public $target; - public $user; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_Appengine_OperationMetadataV1Beta5 extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $insertTime; - public $method; - public $target; - public $user; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_Appengine_RequestUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $targetConcurrentRequests; - public $targetRequestCountPerSec; - - - public function setTargetConcurrentRequests($targetConcurrentRequests) - { - $this->targetConcurrentRequests = $targetConcurrentRequests; - } - public function getTargetConcurrentRequests() - { - return $this->targetConcurrentRequests; - } - public function setTargetRequestCountPerSec($targetRequestCountPerSec) - { - $this->targetRequestCountPerSec = $targetRequestCountPerSec; - } - public function getTargetRequestCountPerSec() - { - return $this->targetRequestCountPerSec; - } -} - -class Google_Service_Appengine_Resources extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cpu; - public $diskGb; - public $memoryGb; - - - public function setCpu($cpu) - { - $this->cpu = $cpu; - } - public function getCpu() - { - return $this->cpu; - } - public function setDiskGb($diskGb) - { - $this->diskGb = $diskGb; - } - public function getDiskGb() - { - return $this->diskGb; - } - public function setMemoryGb($memoryGb) - { - $this->memoryGb = $memoryGb; - } - public function getMemoryGb() - { - return $this->memoryGb; - } -} - -class Google_Service_Appengine_ScriptHandler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $scriptPath; - - - public function setScriptPath($scriptPath) - { - $this->scriptPath = $scriptPath; - } - public function getScriptPath() - { - return $this->scriptPath; - } -} - -class Google_Service_Appengine_Service extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - protected $splitType = 'Google_Service_Appengine_TrafficSplit'; - protected $splitDataType = ''; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSplit(Google_Service_Appengine_TrafficSplit $split) - { - $this->split = $split; - } - public function getSplit() - { - return $this->split; - } -} - -class Google_Service_Appengine_SourceReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $repository; - public $revisionId; - - - public function setRepository($repository) - { - $this->repository = $repository; - } - public function getRepository() - { - return $this->repository; - } - public function setRevisionId($revisionId) - { - $this->revisionId = $revisionId; - } - public function getRevisionId() - { - return $this->revisionId; - } -} - -class Google_Service_Appengine_StaticFilesHandler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $applicationReadable; - public $expiration; - public $httpHeaders; - public $mimeType; - public $path; - public $requireMatchingFile; - public $uploadPathRegex; - - - public function setApplicationReadable($applicationReadable) - { - $this->applicationReadable = $applicationReadable; - } - public function getApplicationReadable() - { - return $this->applicationReadable; - } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setHttpHeaders($httpHeaders) - { - $this->httpHeaders = $httpHeaders; - } - public function getHttpHeaders() - { - return $this->httpHeaders; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setRequireMatchingFile($requireMatchingFile) - { - $this->requireMatchingFile = $requireMatchingFile; - } - public function getRequireMatchingFile() - { - return $this->requireMatchingFile; - } - public function setUploadPathRegex($uploadPathRegex) - { - $this->uploadPathRegex = $uploadPathRegex; - } - public function getUploadPathRegex() - { - return $this->uploadPathRegex; - } -} - -class Google_Service_Appengine_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Appengine_TrafficSplit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allocations; - public $shardBy; - - - public function setAllocations($allocations) - { - $this->allocations = $allocations; - } - public function getAllocations() - { - return $this->allocations; - } - public function setShardBy($shardBy) - { - $this->shardBy = $shardBy; - } - public function getShardBy() - { - return $this->shardBy; - } -} - -class Google_Service_Appengine_UrlDispatchRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $domain; - public $path; - public $service; - - - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_Appengine_UrlMap extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $apiEndpointType = 'Google_Service_Appengine_ApiEndpointHandler'; - protected $apiEndpointDataType = ''; - public $authFailAction; - public $login; - public $redirectHttpResponseCode; - protected $scriptType = 'Google_Service_Appengine_ScriptHandler'; - protected $scriptDataType = ''; - public $securityLevel; - protected $staticFilesType = 'Google_Service_Appengine_StaticFilesHandler'; - protected $staticFilesDataType = ''; - public $urlRegex; - - - public function setApiEndpoint(Google_Service_Appengine_ApiEndpointHandler $apiEndpoint) - { - $this->apiEndpoint = $apiEndpoint; - } - public function getApiEndpoint() - { - return $this->apiEndpoint; - } - public function setAuthFailAction($authFailAction) - { - $this->authFailAction = $authFailAction; - } - public function getAuthFailAction() - { - return $this->authFailAction; - } - public function setLogin($login) - { - $this->login = $login; - } - public function getLogin() - { - return $this->login; - } - public function setRedirectHttpResponseCode($redirectHttpResponseCode) - { - $this->redirectHttpResponseCode = $redirectHttpResponseCode; - } - public function getRedirectHttpResponseCode() - { - return $this->redirectHttpResponseCode; - } - public function setScript(Google_Service_Appengine_ScriptHandler $script) - { - $this->script = $script; - } - public function getScript() - { - return $this->script; - } - public function setSecurityLevel($securityLevel) - { - $this->securityLevel = $securityLevel; - } - public function getSecurityLevel() - { - return $this->securityLevel; - } - public function setStaticFiles(Google_Service_Appengine_StaticFilesHandler $staticFiles) - { - $this->staticFiles = $staticFiles; - } - public function getStaticFiles() - { - return $this->staticFiles; - } - public function setUrlRegex($urlRegex) - { - $this->urlRegex = $urlRegex; - } - public function getUrlRegex() - { - return $this->urlRegex; - } -} - -class Google_Service_Appengine_Version extends Google_Collection -{ - protected $collection_key = 'libraries'; - protected $internal_gapi_mappings = array( - ); - protected $apiConfigType = 'Google_Service_Appengine_ApiConfigHandler'; - protected $apiConfigDataType = ''; - protected $automaticScalingType = 'Google_Service_Appengine_AutomaticScaling'; - protected $automaticScalingDataType = ''; - protected $basicScalingType = 'Google_Service_Appengine_BasicScaling'; - protected $basicScalingDataType = ''; - public $betaSettings; - public $creationTime; - public $defaultExpiration; - public $deployer; - protected $deploymentType = 'Google_Service_Appengine_Deployment'; - protected $deploymentDataType = ''; - public $diskUsageBytes; - public $env; - public $envVariables; - protected $errorHandlersType = 'Google_Service_Appengine_ErrorHandler'; - protected $errorHandlersDataType = 'array'; - protected $handlersType = 'Google_Service_Appengine_UrlMap'; - protected $handlersDataType = 'array'; - protected $healthCheckType = 'Google_Service_Appengine_HealthCheck'; - protected $healthCheckDataType = ''; - public $id; - public $inboundServices; - public $instanceClass; - protected $librariesType = 'Google_Service_Appengine_Library'; - protected $librariesDataType = 'array'; - protected $manualScalingType = 'Google_Service_Appengine_ManualScaling'; - protected $manualScalingDataType = ''; - public $name; - protected $networkType = 'Google_Service_Appengine_Network'; - protected $networkDataType = ''; - public $nobuildFilesRegex; - protected $resourcesType = 'Google_Service_Appengine_Resources'; - protected $resourcesDataType = ''; - public $runtime; - public $servingStatus; - public $threadsafe; - public $vm; - - - public function setApiConfig(Google_Service_Appengine_ApiConfigHandler $apiConfig) - { - $this->apiConfig = $apiConfig; - } - public function getApiConfig() - { - return $this->apiConfig; - } - public function setAutomaticScaling(Google_Service_Appengine_AutomaticScaling $automaticScaling) - { - $this->automaticScaling = $automaticScaling; - } - public function getAutomaticScaling() - { - return $this->automaticScaling; - } - public function setBasicScaling(Google_Service_Appengine_BasicScaling $basicScaling) - { - $this->basicScaling = $basicScaling; - } - public function getBasicScaling() - { - return $this->basicScaling; - } - public function setBetaSettings($betaSettings) - { - $this->betaSettings = $betaSettings; - } - public function getBetaSettings() - { - return $this->betaSettings; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDefaultExpiration($defaultExpiration) - { - $this->defaultExpiration = $defaultExpiration; - } - public function getDefaultExpiration() - { - return $this->defaultExpiration; - } - public function setDeployer($deployer) - { - $this->deployer = $deployer; - } - public function getDeployer() - { - return $this->deployer; - } - public function setDeployment(Google_Service_Appengine_Deployment $deployment) - { - $this->deployment = $deployment; - } - public function getDeployment() - { - return $this->deployment; - } - public function setDiskUsageBytes($diskUsageBytes) - { - $this->diskUsageBytes = $diskUsageBytes; - } - public function getDiskUsageBytes() - { - return $this->diskUsageBytes; - } - public function setEnv($env) - { - $this->env = $env; - } - public function getEnv() - { - return $this->env; - } - public function setEnvVariables($envVariables) - { - $this->envVariables = $envVariables; - } - public function getEnvVariables() - { - return $this->envVariables; - } - public function setErrorHandlers($errorHandlers) - { - $this->errorHandlers = $errorHandlers; - } - public function getErrorHandlers() - { - return $this->errorHandlers; - } - public function setHandlers($handlers) - { - $this->handlers = $handlers; - } - public function getHandlers() - { - return $this->handlers; - } - public function setHealthCheck(Google_Service_Appengine_HealthCheck $healthCheck) - { - $this->healthCheck = $healthCheck; - } - public function getHealthCheck() - { - return $this->healthCheck; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInboundServices($inboundServices) - { - $this->inboundServices = $inboundServices; - } - public function getInboundServices() - { - return $this->inboundServices; - } - public function setInstanceClass($instanceClass) - { - $this->instanceClass = $instanceClass; - } - public function getInstanceClass() - { - return $this->instanceClass; - } - public function setLibraries($libraries) - { - $this->libraries = $libraries; - } - public function getLibraries() - { - return $this->libraries; - } - public function setManualScaling(Google_Service_Appengine_ManualScaling $manualScaling) - { - $this->manualScaling = $manualScaling; - } - public function getManualScaling() - { - return $this->manualScaling; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork(Google_Service_Appengine_Network $network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNobuildFilesRegex($nobuildFilesRegex) - { - $this->nobuildFilesRegex = $nobuildFilesRegex; - } - public function getNobuildFilesRegex() - { - return $this->nobuildFilesRegex; - } - public function setResources(Google_Service_Appengine_Resources $resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } - public function setRuntime($runtime) - { - $this->runtime = $runtime; - } - public function getRuntime() - { - return $this->runtime; - } - public function setServingStatus($servingStatus) - { - $this->servingStatus = $servingStatus; - } - public function getServingStatus() - { - return $this->servingStatus; - } - public function setThreadsafe($threadsafe) - { - $this->threadsafe = $threadsafe; - } - public function getThreadsafe() - { - return $this->threadsafe; - } - public function setVm($vm) - { - $this->vm = $vm; - } - public function getVm() - { - return $this->vm; - } -} diff --git a/src/Google/Service/Appsactivity.php b/src/Google/Service/Appsactivity.php deleted file mode 100644 index 3275aa0bb..000000000 --- a/src/Google/Service/Appsactivity.php +++ /dev/null @@ -1,588 +0,0 @@ - - * Provides a historical view of activity.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Appsactivity extends Google_Service -{ - /** View the activity history of your Google Apps. */ - const ACTIVITY = - "https://www.googleapis.com/auth/activity"; - /** View and manage the files in your Google Drive. */ - const DRIVE = - "https://www.googleapis.com/auth/drive"; - /** View and manage metadata of files in your Google Drive. */ - const DRIVE_METADATA = - "https://www.googleapis.com/auth/drive.metadata"; - /** View metadata for files in your Google Drive. */ - const DRIVE_METADATA_READONLY = - "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files in your Google Drive. */ - const DRIVE_READONLY = - "https://www.googleapis.com/auth/drive.readonly"; - - public $activities; - - - /** - * Constructs the internal representation of the Appsactivity service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'appsactivity/v1/'; - $this->version = 'v1'; - $this->serviceName = 'appsactivity'; - - $this->activities = new Google_Service_Appsactivity_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'drive.ancestorId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'drive.fileId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'groupingStrategy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $appsactivityService = new Google_Service_Appsactivity(...); - * $activities = $appsactivityService->activities; - * - */ -class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of activities visible to the current logged in user. Visible - * activities are determined by the visiblity settings of the object that was - * acted on, e.g. Drive files a user can see. An activity is a record of past - * events. Multiple events may be merged if they are similar. A request is - * scoped to activities from a given Google service using the source parameter. - * (activities.listActivities) - * - * @param array $optParams Optional parameters. - * - * @opt_param string drive.ancestorId Identifies the Drive folder containing the - * items for which to return activities. - * @opt_param string drive.fileId Identifies the Drive item to return activities - * for. - * @opt_param string groupingStrategy Indicates the strategy to use when - * grouping singleEvents items in the associated combinedEvent object. - * @opt_param int pageSize The maximum number of events to return on a page. The - * response includes a continuation token if there are more events. - * @opt_param string pageToken A token to retrieve a specific page of results. - * @opt_param string source The Google service from which to return activities. - * Possible values of source are: - drive.google.com - * @opt_param string userId Indicates the user to return activity for. Use the - * special value me to indicate the currently authenticated user. - * @return Google_Service_Appsactivity_ListActivitiesResponse - */ - public function listActivities($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse"); - } -} - - - - -class Google_Service_Appsactivity_Activity extends Google_Collection -{ - protected $collection_key = 'singleEvents'; - protected $internal_gapi_mappings = array( - ); - protected $combinedEventType = 'Google_Service_Appsactivity_Event'; - protected $combinedEventDataType = ''; - protected $singleEventsType = 'Google_Service_Appsactivity_Event'; - protected $singleEventsDataType = 'array'; - - - public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent) - { - $this->combinedEvent = $combinedEvent; - } - public function getCombinedEvent() - { - return $this->combinedEvent; - } - public function setSingleEvents($singleEvents) - { - $this->singleEvents = $singleEvents; - } - public function getSingleEvents() - { - return $this->singleEvents; - } -} - -class Google_Service_Appsactivity_Event extends Google_Collection -{ - protected $collection_key = 'permissionChanges'; - protected $internal_gapi_mappings = array( - ); - public $additionalEventTypes; - public $eventTimeMillis; - public $fromUserDeletion; - protected $moveType = 'Google_Service_Appsactivity_Move'; - protected $moveDataType = ''; - protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange'; - protected $permissionChangesDataType = 'array'; - public $primaryEventType; - protected $renameType = 'Google_Service_Appsactivity_Rename'; - protected $renameDataType = ''; - protected $targetType = 'Google_Service_Appsactivity_Target'; - protected $targetDataType = ''; - protected $userType = 'Google_Service_Appsactivity_User'; - protected $userDataType = ''; - - - public function setAdditionalEventTypes($additionalEventTypes) - { - $this->additionalEventTypes = $additionalEventTypes; - } - public function getAdditionalEventTypes() - { - return $this->additionalEventTypes; - } - public function setEventTimeMillis($eventTimeMillis) - { - $this->eventTimeMillis = $eventTimeMillis; - } - public function getEventTimeMillis() - { - return $this->eventTimeMillis; - } - public function setFromUserDeletion($fromUserDeletion) - { - $this->fromUserDeletion = $fromUserDeletion; - } - public function getFromUserDeletion() - { - return $this->fromUserDeletion; - } - public function setMove(Google_Service_Appsactivity_Move $move) - { - $this->move = $move; - } - public function getMove() - { - return $this->move; - } - public function setPermissionChanges($permissionChanges) - { - $this->permissionChanges = $permissionChanges; - } - public function getPermissionChanges() - { - return $this->permissionChanges; - } - public function setPrimaryEventType($primaryEventType) - { - $this->primaryEventType = $primaryEventType; - } - public function getPrimaryEventType() - { - return $this->primaryEventType; - } - public function setRename(Google_Service_Appsactivity_Rename $rename) - { - $this->rename = $rename; - } - public function getRename() - { - return $this->rename; - } - public function setTarget(Google_Service_Appsactivity_Target $target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setUser(Google_Service_Appsactivity_User $user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection -{ - protected $collection_key = 'activities'; - protected $internal_gapi_mappings = array( - ); - protected $activitiesType = 'Google_Service_Appsactivity_Activity'; - protected $activitiesDataType = 'array'; - public $nextPageToken; - - - public function setActivities($activities) - { - $this->activities = $activities; - } - public function getActivities() - { - return $this->activities; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Appsactivity_Move extends Google_Collection -{ - protected $collection_key = 'removedParents'; - protected $internal_gapi_mappings = array( - ); - protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; - protected $addedParentsDataType = 'array'; - protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; - protected $removedParentsDataType = 'array'; - - - public function setAddedParents($addedParents) - { - $this->addedParents = $addedParents; - } - public function getAddedParents() - { - return $this->addedParents; - } - public function setRemovedParents($removedParents) - { - $this->removedParents = $removedParents; - } - public function getRemovedParents() - { - return $this->removedParents; - } -} - -class Google_Service_Appsactivity_Parent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $isRoot; - public $title; - - - 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 setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Appsactivity_Permission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $permissionId; - public $role; - public $type; - protected $userType = 'Google_Service_Appsactivity_User'; - protected $userDataType = ''; - public $withLink; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - public function getPermissionId() - { - return $this->permissionId; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUser(Google_Service_Appsactivity_User $user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWithLink($withLink) - { - $this->withLink = $withLink; - } - public function getWithLink() - { - return $this->withLink; - } -} - -class Google_Service_Appsactivity_PermissionChange extends Google_Collection -{ - protected $collection_key = 'removedPermissions'; - protected $internal_gapi_mappings = array( - ); - protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; - protected $addedPermissionsDataType = 'array'; - protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; - protected $removedPermissionsDataType = 'array'; - - - public function setAddedPermissions($addedPermissions) - { - $this->addedPermissions = $addedPermissions; - } - public function getAddedPermissions() - { - return $this->addedPermissions; - } - public function setRemovedPermissions($removedPermissions) - { - $this->removedPermissions = $removedPermissions; - } - public function getRemovedPermissions() - { - return $this->removedPermissions; - } -} - -class Google_Service_Appsactivity_Photo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Appsactivity_Rename extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $newTitle; - public $oldTitle; - - - public function setNewTitle($newTitle) - { - $this->newTitle = $newTitle; - } - public function getNewTitle() - { - return $this->newTitle; - } - public function setOldTitle($oldTitle) - { - $this->oldTitle = $oldTitle; - } - public function getOldTitle() - { - return $this->oldTitle; - } -} - -class Google_Service_Appsactivity_Target extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $mimeType; - public $name; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Appsactivity_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isDeleted; - public $name; - public $permissionId; - protected $photoType = 'Google_Service_Appsactivity_Photo'; - protected $photoDataType = ''; - - - public function setIsDeleted($isDeleted) - { - $this->isDeleted = $isDeleted; - } - public function getIsDeleted() - { - return $this->isDeleted; - } - 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 setPhoto(Google_Service_Appsactivity_Photo $photo) - { - $this->photo = $photo; - } - public function getPhoto() - { - return $this->photo; - } -} diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php deleted file mode 100644 index 60672ecc3..000000000 --- a/src/Google/Service/Audit.php +++ /dev/null @@ -1,416 +0,0 @@ - - * 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) - { - parent::__construct($client); - $this->servicePath = 'apps/reporting/audit/v1/'; - $this->version = 'v1'; - $this->serviceName = 'audit'; - - $this->activities = new Google_Service_Audit_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => '{customerId}/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'actorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorApplicationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'caller' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'continuationToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $auditService = new Google_Service_Audit(...); - * $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.listActivities) - * - * @param string $customerId Represents the customer who is the owner of target - * object on which action was performed. - * @param string $applicationId Application ID of the application on which the - * event was performed. - * @param array $optParams Optional parameters. - * - * @opt_param string actorEmail Email address of the user who performed the - * action. - * @opt_param string actorApplicationId Application ID of the application which - * interacted on behalf of the user while performing the event. - * @opt_param string actorIpAddress IP Address of host where the event was - * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string caller Type of the caller. - * @opt_param int maxResults Number of activity records to be shown in each - * page. - * @opt_param string eventName Name of the event being queried. - * @opt_param string startTime Return events which occured at or after this - * time. - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string continuationToken Next page URL. - * @return Google_Service_Audit_Activities - */ - public function listActivities($customerId, $applicationId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Audit_Activities"); - } -} - - - - -class Google_Service_Audit_Activities extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Audit_Activity'; - protected $itemsDataType = 'array'; - 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 $collection_key = 'events'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Audit_ActivityActor'; - protected $actorDataType = ''; - protected $eventsType = 'Google_Service_Audit_ActivityEvents'; - protected $eventsDataType = 'array'; - protected $idType = 'Google_Service_Audit_ActivityId'; - protected $idDataType = ''; - public $ipAddress; - public $kind; - public $ownerDomain; - - - public function setActor(Google_Service_Audit_ActivityActor $actor) - { - $this->actor = $actor; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $eventType; - public $name; - protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; - protected $parametersDataType = 'array'; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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/Autoscaler.php b/src/Google/Service/Autoscaler.php deleted file mode 100644 index 088cd2421..000000000 --- a/src/Google/Service/Autoscaler.php +++ /dev/null @@ -1,1401 +0,0 @@ - - * The Google Compute Engine Autoscaler API provides autoscaling for groups of - * Cloud VMs.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Autoscaler extends Google_Service -{ - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; - - public $autoscalers; - public $zoneOperations; - public $zones; - - - /** - * Constructs the internal representation of the Autoscaler service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'autoscaler/v1beta2/'; - $this->version = 'v1beta2'; - $this->serviceName = 'autoscaler'; - - $this->autoscalers = new Google_Service_Autoscaler_Autoscalers_Resource( - $this, - $this->serviceName, - 'autoscalers', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Autoscaler_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->zones = new Google_Service_Autoscaler_Zones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/zones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "autoscalers" collection of methods. - * Typical usage is: - * - * $autoscalerService = new Google_Service_Autoscaler(...); - * $autoscalers = $autoscalerService->autoscalers; - * - */ -class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified Autoscaler resource. (autoscalers.delete) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param string $autoscaler Name of the Autoscaler resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function delete($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); - } - - /** - * Gets the specified Autoscaler resource. (autoscalers.get) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param string $autoscaler Name of the Autoscaler resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Autoscaler - */ - public function get($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); - } - - /** - * Adds new Autoscaler resource. (autoscalers.insert) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); - } - - /** - * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string pageToken - * @return Google_Service_Autoscaler_AutoscalerListResponse - */ - public function listAutoscalers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); - } - - /** - * Update the entire content of the Autoscaler resource. This method supports - * patch semantics. (autoscalers.patch) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param string $autoscaler Name of the Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); - } - - /** - * Update the entire content of the Autoscaler resource. (autoscalers.update) - * - * @param string $project Project ID of Autoscaler resource. - * @param string $zone Zone name of Autoscaler resource. - * @param string $autoscaler Name of the Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Autoscaler_Operation"); - } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $autoscalerService = new Google_Service_Autoscaler(...); - * $zoneOperations = $autoscalerService->zoneOperations; - * - */ -class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified zone-specific operation resource. - * (zoneOperations.delete) - * - * @param string $project - * @param string $zone - * @param string $operation - * @param array $optParams Optional parameters. - */ - public function delete($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project - * @param string $zone - * @param string $operation - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Autoscaler_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project - * @param string $zone - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string pageToken - * @return Google_Service_Autoscaler_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList"); - } -} - -/** - * The "zones" collection of methods. - * Typical usage is: - * - * $autoscalerService = new Google_Service_Autoscaler(...); - * $zones = $autoscalerService->zones; - * - */ -class Google_Service_Autoscaler_Zones_Resource extends Google_Service_Resource -{ - - /** - * (zones.listZones) - * - * @param string $project - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string pageToken - * @return Google_Service_Autoscaler_ZoneList - */ - public function listZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Autoscaler_ZoneList"); - } -} - - - - -class Google_Service_Autoscaler_Autoscaler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy'; - protected $autoscalingPolicyDataType = ''; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $target; - - - public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy) - { - $this->autoscalingPolicy = $autoscalingPolicy; - } - public function getAutoscalingPolicy() - { - return $this->autoscalingPolicy; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection -{ - protected $collection_key = 'customMetricUtilizations'; - protected $internal_gapi_mappings = array( - ); - public $coolDownPeriodSec; - protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; - protected $cpuUtilizationDataType = ''; - protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization'; - protected $customMetricUtilizationsDataType = 'array'; - protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization'; - protected $loadBalancingUtilizationDataType = ''; - public $maxNumReplicas; - public $minNumReplicas; - - - public function setCoolDownPeriodSec($coolDownPeriodSec) - { - $this->coolDownPeriodSec = $coolDownPeriodSec; - } - public function getCoolDownPeriodSec() - { - return $this->coolDownPeriodSec; - } - public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization) - { - $this->cpuUtilization = $cpuUtilization; - } - public function getCpuUtilization() - { - return $this->cpuUtilization; - } - public function setCustomMetricUtilizations($customMetricUtilizations) - { - $this->customMetricUtilizations = $customMetricUtilizations; - } - public function getCustomMetricUtilizations() - { - return $this->customMetricUtilizations; - } - public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) - { - $this->loadBalancingUtilization = $loadBalancingUtilization; - } - public function getLoadBalancingUtilization() - { - return $this->loadBalancingUtilization; - } - public function setMaxNumReplicas($maxNumReplicas) - { - $this->maxNumReplicas = $maxNumReplicas; - } - public function getMaxNumReplicas() - { - return $this->maxNumReplicas; - } - public function setMinNumReplicas($minNumReplicas) - { - $this->minNumReplicas = $minNumReplicas; - } - public function getMinNumReplicas() - { - return $this->minNumReplicas; - } -} - -class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $utilizationTarget; - - - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } -} - -class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $metric; - public $utilizationTarget; - public $utilizationTargetType; - - - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } - public function setUtilizationTargetType($utilizationTargetType) - { - $this->utilizationTargetType = $utilizationTargetType; - } - public function getUtilizationTargetType() - { - return $this->utilizationTargetType; - } -} - -class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $utilizationTarget; - - - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } -} - -class Google_Service_Autoscaler_DeprecationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Autoscaler_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Autoscaler_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function 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_Autoscaler_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Autoscaler_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Autoscaler_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Autoscaler_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function 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_Autoscaler_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Autoscaler_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Autoscaler_Zone extends Google_Collection -{ - protected $collection_key = 'maintenanceWindows'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Autoscaler_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - protected $maintenanceWindowsType = 'Google_Service_Autoscaler_ZoneMaintenanceWindows'; - protected $maintenanceWindowsDataType = 'array'; - public $name; - public $region; - public $selfLink; - public $status; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Autoscaler_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaintenanceWindows($maintenanceWindows) - { - $this->maintenanceWindows = $maintenanceWindows; - } - public function getMaintenanceWindows() - { - return $this->maintenanceWindows; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Autoscaler_ZoneList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Autoscaler_Zone'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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/Bigquery.php b/src/Google/Service/Bigquery.php deleted file mode 100644 index 3d96d60b3..000000000 --- a/src/Google/Service/Bigquery.php +++ /dev/null @@ -1,3929 +0,0 @@ - - * 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 -{ - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = - "https://www.googleapis.com/auth/bigquery"; - /** Insert data into Google BigQuery. */ - const BIGQUERY_INSERTDATA = - "https://www.googleapis.com/auth/bigquery.insertdata"; - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = - "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = - "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - - public $datasets; - public $jobs; - public $projects; - public $tabledata; - public $tables; - - - /** - * Constructs the internal representation of the Bigquery service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'bigquery/v2/'; - $this->version = 'v2'; - $this->serviceName = 'bigquery'; - - $this->datasets = new Google_Service_Bigquery_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deleteContents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/datasets', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'all' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->jobs = new Google_Service_Bigquery_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'project/{projectId}/jobs/{jobId}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getQueryResults' => array( - 'path' => 'projects/{projectId}/queries/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeoutMs' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allUsers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stateFilter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'query' => array( - 'path' => 'projects/{projectId}/queries', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Bigquery_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource( - $this, - $this->serviceName, - 'tabledata', - array( - 'methods' => array( - 'insertAll' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tables = new Google_Service_Bigquery_Tables_Resource( - $this, - $this->serviceName, - 'tables', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $bigqueryService = new Google_Service_Bigquery(...); - * $datasets = $bigqueryService->datasets; - * - */ -class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource -{ - - /** - * Deletes the dataset specified by the datasetId value. Before you can delete a - * dataset, you must delete all its tables, either manually or by specifying - * deleteContents. Immediately after deletion, you can create another dataset - * with the same name. (datasets.delete) - * - * @param string $projectId Project ID of the dataset being deleted - * @param string $datasetId Dataset ID of dataset being deleted - * @param array $optParams Optional parameters. - * - * @opt_param bool deleteContents If True, delete all the tables in the dataset. - * If False and the dataset contains tables, the request will fail. Default is - * False - */ - public function delete($projectId, $datasetId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns the dataset specified by datasetID. (datasets.get) - * - * @param string $projectId Project ID of the requested dataset - * @param string $datasetId Dataset ID of the requested dataset - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function get($projectId, $datasetId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); - } - - /** - * Creates a new empty dataset. (datasets.insert) - * - * @param string $projectId Project ID of the new dataset - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); - } - - /** - * Lists all datasets in the specified project to which you have been granted - * the READER dataset role. (datasets.listDatasets) - * - * @param string $projectId Project ID of the datasets to be listed - * @param array $optParams Optional parameters. - * - * @opt_param bool all Whether to list all datasets, including hidden ones - * @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); - return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); - } - - /** - * Updates information in an existing dataset. The update method replaces the - * entire dataset resource, whereas the patch method only replaces fields that - * are provided in the submitted dataset resource. This method supports patch - * semantics. (datasets.patch) - * - * @param string $projectId Project ID of the dataset being updated - * @param string $datasetId Dataset ID of the dataset being updated - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); - } - - /** - * Updates information in an existing dataset. The update method replaces the - * entire dataset resource, whereas the patch method only replaces fields that - * are provided in the submitted dataset resource. (datasets.update) - * - * @param string $projectId Project ID of the dataset being updated - * @param string $datasetId Dataset ID of the dataset being updated - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Bigquery_Dataset"); - } -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $bigqueryService = new Google_Service_Bigquery(...); - * $jobs = $bigqueryService->jobs; - * - */ -class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource -{ - - /** - * Requests that a job be cancelled. This call will return immediately, and the - * client will need to poll for the job status to see if the cancel completed - * successfully. Cancelled jobs may still incur costs. (jobs.cancel) - * - * @param string $projectId [Required] Project ID of the job to cancel - * @param string $jobId [Required] Job ID of the job to cancel - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_JobCancelResponse - */ - public function cancel($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse"); - } - - /** - * Returns information about a specific job. Job information is available for a - * six month period after creation. Requires that you're the person who ran the - * job, or have the Is Owner project role. (jobs.get) - * - * @param string $projectId [Required] Project ID of the requested job - * @param string $jobId [Required] Job ID of the requested job - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Job - */ - public function get($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Job"); - } - - /** - * Retrieves the results of a query job. (jobs.getQueryResults) - * - * @param string $projectId [Required] Project ID of the query job - * @param string $jobId [Required] 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 10 seconds. If the timeout passes - * before the job completes, the 'jobComplete' field in the response will be - * false - * @return Google_Service_Bigquery_GetQueryResultsResponse - */ - public function getQueryResults($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse"); - } - - /** - * Starts a new asynchronous job. Requires the Can View project role. - * (jobs.insert) - * - * @param string $projectId Project ID of the project that will be billed for - * the job - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Job - */ - public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Job"); - } - - /** - * Lists all jobs that you started in the specified project. Job information is - * available for a six month period after creation. The job list is sorted in - * reverse chronological order, by job creation time. Requires the Can View - * project role, or the Is Owner project role if you set the allUsers property. - * (jobs.listJobs) - * - * @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); - return $this->call('list', array($params), "Google_Service_Bigquery_JobList"); - } - - /** - * Runs a BigQuery SQL query synchronously and returns query results if the - * query completes within a specified timeout. (jobs.query) - * - * @param string $projectId Project ID of the project billed for the query - * @param Google_QueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_QueryResponse - */ - public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $bigqueryService = new Google_Service_Bigquery(...); - * $projects = $bigqueryService->projects; - * - */ -class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource -{ - - /** - * Lists all projects to which you have been granted any project role. - * (projects.listProjects) - * - * @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); - return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList"); - } -} - -/** - * The "tabledata" collection of methods. - * Typical usage is: - * - * $bigqueryService = new Google_Service_Bigquery(...); - * $tabledata = $bigqueryService->tabledata; - * - */ -class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource -{ - - /** - * Streams data into BigQuery one record at a time without needing to run a load - * job. Requires the WRITER dataset role. (tabledata.insertAll) - * - * @param string $projectId Project ID of the destination table. - * @param string $datasetId Dataset ID of the destination table. - * @param string $tableId Table ID of the destination table. - * @param Google_TableDataInsertAllRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_TableDataInsertAllResponse - */ - public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse"); - } - - /** - * Retrieves table data from a specified set of rows. Requires the READER - * dataset role. (tabledata.listTabledata) - * - * @param string $projectId Project ID of the table to read - * @param string $datasetId Dataset ID of the table to read - * @param string $tableId Table ID of the table to read - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of results to return - * @opt_param string pageToken Page token, returned by a previous call, - * identifying the result set - * @opt_param string startIndex Zero-based index of the starting row to read - * @return Google_Service_Bigquery_TableDataList - */ - public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList"); - } -} - -/** - * The "tables" collection of methods. - * Typical usage is: - * - * $bigqueryService = new Google_Service_Bigquery(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets the specified table resource by table ID. This method does not return - * the data in the table, it only returns the table resource, which describes - * the structure of this table. (tables.get) - * - * @param string $projectId Project ID of the requested table - * @param string $datasetId Dataset ID of the requested table - * @param string $tableId Table ID of the requested table - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function get($projectId, $datasetId, $tableId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Table"); - } - - /** - * Creates a new, empty table in the dataset. (tables.insert) - * - * @param string $projectId Project ID of the new table - * @param string $datasetId Dataset ID of the new table - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); - } - - /** - * Lists all tables in the specified dataset. Requires the READER dataset role. - * (tables.listTables) - * - * @param string $projectId Project ID of the tables to list - * @param string $datasetId Dataset ID of the tables to list - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); - } - - /** - * Updates information in an existing table. The update method replaces the - * entire table resource, whereas the patch method only replaces fields that are - * provided in the submitted table resource. This method supports patch - * semantics. (tables.patch) - * - * @param string $projectId Project ID of the table to update - * @param string $datasetId Dataset ID of the table to update - * @param string $tableId Table ID of the table to update - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); - } - - /** - * Updates information in an existing table. The update method replaces the - * entire table resource, whereas the patch method only replaces fields that are - * provided in the submitted table resource. (tables.update) - * - * @param string $projectId Project ID of the table to update - * @param string $datasetId Dataset ID of the table to update - * @param string $tableId Table ID of the table to update - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Bigquery_Table"); - } -} - - - - -class Google_Service_Bigquery_BigtableColumn extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $encoding; - public $fieldName; - public $onlyReadLatest; - public $qualifierEncoded; - public $qualifierString; - public $type; - - - public function setEncoding($encoding) - { - $this->encoding = $encoding; - } - public function getEncoding() - { - return $this->encoding; - } - public function setFieldName($fieldName) - { - $this->fieldName = $fieldName; - } - public function getFieldName() - { - return $this->fieldName; - } - public function setOnlyReadLatest($onlyReadLatest) - { - $this->onlyReadLatest = $onlyReadLatest; - } - public function getOnlyReadLatest() - { - return $this->onlyReadLatest; - } - public function setQualifierEncoded($qualifierEncoded) - { - $this->qualifierEncoded = $qualifierEncoded; - } - public function getQualifierEncoded() - { - return $this->qualifierEncoded; - } - public function setQualifierString($qualifierString) - { - $this->qualifierString = $qualifierString; - } - public function getQualifierString() - { - return $this->qualifierString; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Bigquery_BigtableColumnFamily extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - protected $columnsType = 'Google_Service_Bigquery_BigtableColumn'; - protected $columnsDataType = 'array'; - public $encoding; - public $familyId; - public $onlyReadLatest; - public $type; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setEncoding($encoding) - { - $this->encoding = $encoding; - } - public function getEncoding() - { - return $this->encoding; - } - public function setFamilyId($familyId) - { - $this->familyId = $familyId; - } - public function getFamilyId() - { - return $this->familyId; - } - public function setOnlyReadLatest($onlyReadLatest) - { - $this->onlyReadLatest = $onlyReadLatest; - } - public function getOnlyReadLatest() - { - return $this->onlyReadLatest; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Bigquery_BigtableOptions extends Google_Collection -{ - protected $collection_key = 'columnFamilies'; - protected $internal_gapi_mappings = array( - ); - protected $columnFamiliesType = 'Google_Service_Bigquery_BigtableColumnFamily'; - protected $columnFamiliesDataType = 'array'; - public $ignoreUnspecifiedColumnFamilies; - - - public function setColumnFamilies($columnFamilies) - { - $this->columnFamilies = $columnFamilies; - } - public function getColumnFamilies() - { - return $this->columnFamilies; - } - public function setIgnoreUnspecifiedColumnFamilies($ignoreUnspecifiedColumnFamilies) - { - $this->ignoreUnspecifiedColumnFamilies = $ignoreUnspecifiedColumnFamilies; - } - public function getIgnoreUnspecifiedColumnFamilies() - { - return $this->ignoreUnspecifiedColumnFamilies; - } -} - -class Google_Service_Bigquery_CsvOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowJaggedRows; - public $allowQuotedNewlines; - public $encoding; - public $fieldDelimiter; - public $quote; - public $skipLeadingRows; - - - public function setAllowJaggedRows($allowJaggedRows) - { - $this->allowJaggedRows = $allowJaggedRows; - } - public function getAllowJaggedRows() - { - return $this->allowJaggedRows; - } - public function setAllowQuotedNewlines($allowQuotedNewlines) - { - $this->allowQuotedNewlines = $allowQuotedNewlines; - } - public function getAllowQuotedNewlines() - { - return $this->allowQuotedNewlines; - } - 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 setQuote($quote) - { - $this->quote = $quote; - } - public function getQuote() - { - return $this->quote; - } - public function setSkipLeadingRows($skipLeadingRows) - { - $this->skipLeadingRows = $skipLeadingRows; - } - public function getSkipLeadingRows() - { - return $this->skipLeadingRows; - } -} - -class Google_Service_Bigquery_Dataset extends Google_Collection -{ - protected $collection_key = 'access'; - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; - protected $accessDataType = 'array'; - public $creationTime; - protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; - protected $datasetReferenceDataType = ''; - public $defaultTableExpirationMs; - public $description; - public $etag; - public $friendlyName; - public $id; - public $kind; - public $lastModifiedTime; - public $location; - 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 setDefaultTableExpirationMs($defaultTableExpirationMs) - { - $this->defaultTableExpirationMs = $defaultTableExpirationMs; - } - public function getDefaultTableExpirationMs() - { - return $this->defaultTableExpirationMs; - } - 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 setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Bigquery_DatasetAccess extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $domain; - public $groupByEmail; - public $role; - public $specialGroup; - public $userByEmail; - protected $viewType = 'Google_Service_Bigquery_TableReference'; - protected $viewDataType = ''; - - - 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; - } - public function setView(Google_Service_Bigquery_TableReference $view) - { - $this->view = $view; - } - public function getView() - { - return $this->view; - } -} - -class Google_Service_Bigquery_DatasetList extends Google_Collection -{ - protected $collection_key = 'datasets'; - protected $internal_gapi_mappings = array( - ); - protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; - protected $datasetsDataType = 'array'; - 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 $internal_gapi_mappings = array( - ); - protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; - protected $datasetReferenceDataType = ''; - public $friendlyName; - public $id; - public $kind; - - - public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) - { - $this->datasetReference = $datasetReference; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_ExplainQueryStage extends Google_Collection -{ - protected $collection_key = 'steps'; - protected $internal_gapi_mappings = array( - ); - public $computeRatioAvg; - public $computeRatioMax; - public $id; - public $name; - public $readRatioAvg; - public $readRatioMax; - public $recordsRead; - public $recordsWritten; - protected $stepsType = 'Google_Service_Bigquery_ExplainQueryStep'; - protected $stepsDataType = 'array'; - public $waitRatioAvg; - public $waitRatioMax; - public $writeRatioAvg; - public $writeRatioMax; - - - public function setComputeRatioAvg($computeRatioAvg) - { - $this->computeRatioAvg = $computeRatioAvg; - } - public function getComputeRatioAvg() - { - return $this->computeRatioAvg; - } - public function setComputeRatioMax($computeRatioMax) - { - $this->computeRatioMax = $computeRatioMax; - } - public function getComputeRatioMax() - { - return $this->computeRatioMax; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReadRatioAvg($readRatioAvg) - { - $this->readRatioAvg = $readRatioAvg; - } - public function getReadRatioAvg() - { - return $this->readRatioAvg; - } - public function setReadRatioMax($readRatioMax) - { - $this->readRatioMax = $readRatioMax; - } - public function getReadRatioMax() - { - return $this->readRatioMax; - } - public function setRecordsRead($recordsRead) - { - $this->recordsRead = $recordsRead; - } - public function getRecordsRead() - { - return $this->recordsRead; - } - public function setRecordsWritten($recordsWritten) - { - $this->recordsWritten = $recordsWritten; - } - public function getRecordsWritten() - { - return $this->recordsWritten; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } - public function setWaitRatioAvg($waitRatioAvg) - { - $this->waitRatioAvg = $waitRatioAvg; - } - public function getWaitRatioAvg() - { - return $this->waitRatioAvg; - } - public function setWaitRatioMax($waitRatioMax) - { - $this->waitRatioMax = $waitRatioMax; - } - public function getWaitRatioMax() - { - return $this->waitRatioMax; - } - public function setWriteRatioAvg($writeRatioAvg) - { - $this->writeRatioAvg = $writeRatioAvg; - } - public function getWriteRatioAvg() - { - return $this->writeRatioAvg; - } - public function setWriteRatioMax($writeRatioMax) - { - $this->writeRatioMax = $writeRatioMax; - } - public function getWriteRatioMax() - { - return $this->writeRatioMax; - } -} - -class Google_Service_Bigquery_ExplainQueryStep extends Google_Collection -{ - protected $collection_key = 'substeps'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $substeps; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSubsteps($substeps) - { - $this->substeps = $substeps; - } - public function getSubsteps() - { - return $this->substeps; - } -} - -class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $autodetect; - protected $bigtableOptionsType = 'Google_Service_Bigquery_BigtableOptions'; - protected $bigtableOptionsDataType = ''; - public $compression; - protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions'; - protected $csvOptionsDataType = ''; - public $ignoreUnknownValues; - public $maxBadRecords; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $sourceFormat; - public $sourceUris; - - - public function setAutodetect($autodetect) - { - $this->autodetect = $autodetect; - } - public function getAutodetect() - { - return $this->autodetect; - } - public function setBigtableOptions(Google_Service_Bigquery_BigtableOptions $bigtableOptions) - { - $this->bigtableOptions = $bigtableOptions; - } - public function getBigtableOptions() - { - return $this->bigtableOptions; - } - public function setCompression($compression) - { - $this->compression = $compression; - } - public function getCompression() - { - return $this->compression; - } - public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions) - { - $this->csvOptions = $csvOptions; - } - public function getCsvOptions() - { - return $this->csvOptions; - } - public function setIgnoreUnknownValues($ignoreUnknownValues) - { - $this->ignoreUnknownValues = $ignoreUnknownValues; - } - public function getIgnoreUnknownValues() - { - return $this->ignoreUnknownValues; - } - public function setMaxBadRecords($maxBadRecords) - { - $this->maxBadRecords = $maxBadRecords; - } - public function getMaxBadRecords() - { - return $this->maxBadRecords; - } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) - { - $this->schema = $schema; - } - public function getSchema() - { - return $this->schema; - } - 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; - } -} - -class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $cacheHit; - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $etag; - public $jobComplete; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $totalBytesProcessed; - public $totalRows; - - - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } - public function getCacheHit() - { - return $this->cacheHit; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - 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 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_Job extends Google_Model -{ - protected $internal_gapi_mappings = array( - "userEmail" => "user_email", - ); - protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; - protected $configurationDataType = ''; - public $etag; - public $id; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $selfLink; - protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_Bigquery_JobStatus'; - protected $statusDataType = ''; - public $userEmail; - - - 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; - } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } - public function getUserEmail() - { - return $this->userEmail; - } -} - -class Google_Service_Bigquery_JobCancelResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $jobType = 'Google_Service_Bigquery_Job'; - protected $jobDataType = ''; - public $kind; - - - public function setJob(Google_Service_Bigquery_Job $job) - { - $this->job = $job; - } - public function getJob() - { - return $this->job; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Bigquery_JobConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy'; - protected $copyDataType = ''; - public $dryRun; - protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; - protected $extractDataType = ''; - protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; - protected $loadDataType = ''; - protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; - protected $queryDataType = ''; - - - public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy) - { - $this->copy = $copy; - } - public function 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 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_Collection -{ - protected $collection_key = 'destinationUris'; - protected $internal_gapi_mappings = array( - ); - public $compression; - public $destinationFormat; - public $destinationUri; - public $destinationUris; - public $fieldDelimiter; - public $printHeader; - protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTableDataType = ''; - - - public function setCompression($compression) - { - $this->compression = $compression; - } - public function getCompression() - { - return $this->compression; - } - 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 setDestinationUris($destinationUris) - { - $this->destinationUris = $destinationUris; - } - public function getDestinationUris() - { - return $this->destinationUris; - } - 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_JobConfigurationLoad extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $allowJaggedRows; - public $allowQuotedNewlines; - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - public $encoding; - public $fieldDelimiter; - public $ignoreUnknownValues; - public $maxBadRecords; - public $projectionFields; - public $quote; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $schemaInline; - public $schemaInlineFormat; - public $skipLeadingRows; - public $sourceFormat; - public $sourceUris; - public $writeDisposition; - - - public function setAllowJaggedRows($allowJaggedRows) - { - $this->allowJaggedRows = $allowJaggedRows; - } - public function getAllowJaggedRows() - { - return $this->allowJaggedRows; - } - 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 setIgnoreUnknownValues($ignoreUnknownValues) - { - $this->ignoreUnknownValues = $ignoreUnknownValues; - } - public function getIgnoreUnknownValues() - { - return $this->ignoreUnknownValues; - } - public function setMaxBadRecords($maxBadRecords) - { - $this->maxBadRecords = $maxBadRecords; - } - public function getMaxBadRecords() - { - return $this->maxBadRecords; - } - public function setProjectionFields($projectionFields) - { - $this->projectionFields = $projectionFields; - } - public function getProjectionFields() - { - return $this->projectionFields; - } - 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_Collection -{ - protected $collection_key = 'userDefinedFunctionResources'; - protected $internal_gapi_mappings = array( - ); - public $allowLargeResults; - public $createDisposition; - protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; - protected $defaultDatasetDataType = ''; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - public $flattenResults; - public $maximumBillingTier; - public $preserveNulls; - public $priority; - public $query; - protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; - protected $tableDefinitionsDataType = 'map'; - public $useLegacySql; - public $useQueryCache; - protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; - protected $userDefinedFunctionResourcesDataType = 'array'; - 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 setFlattenResults($flattenResults) - { - $this->flattenResults = $flattenResults; - } - public function getFlattenResults() - { - return $this->flattenResults; - } - public function setMaximumBillingTier($maximumBillingTier) - { - $this->maximumBillingTier = $maximumBillingTier; - } - public function getMaximumBillingTier() - { - return $this->maximumBillingTier; - } - 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 setTableDefinitions($tableDefinitions) - { - $this->tableDefinitions = $tableDefinitions; - } - public function getTableDefinitions() - { - return $this->tableDefinitions; - } - public function setUseLegacySql($useLegacySql) - { - $this->useLegacySql = $useLegacySql; - } - public function getUseLegacySql() - { - return $this->useLegacySql; - } - public function setUseQueryCache($useQueryCache) - { - $this->useQueryCache = $useQueryCache; - } - public function getUseQueryCache() - { - return $this->useQueryCache; - } - public function setUserDefinedFunctionResources($userDefinedFunctionResources) - { - $this->userDefinedFunctionResources = $userDefinedFunctionResources; - } - public function getUserDefinedFunctionResources() - { - return $this->userDefinedFunctionResources; - } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } - public function getWriteDisposition() - { - return $this->writeDisposition; - } -} - -class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection -{ - protected $collection_key = 'sourceTables'; - protected $internal_gapi_mappings = array( - ); - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTableDataType = ''; - protected $sourceTablesType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTablesDataType = 'array'; - public $writeDisposition; - - - public function setCreateDisposition($createDisposition) - { - $this->createDisposition = $createDisposition; - } - public function 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 setSourceTables($sourceTables) - { - $this->sourceTables = $sourceTables; - } - public function getSourceTables() - { - return $this->sourceTables; - } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } - public function getWriteDisposition() - { - return $this->writeDisposition; - } -} - -class Google_Service_Bigquery_JobList extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; - protected $jobsDataType = 'array'; - public $kind; - public $nextPageToken; - - - 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; - } -} - -class Google_Service_Bigquery_JobListJobs extends Google_Model -{ - protected $internal_gapi_mappings = array( - "userEmail" => "user_email", - ); - protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; - protected $configurationDataType = ''; - protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorResultDataType = ''; - public $id; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $state; - protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_Bigquery_JobStatus'; - protected $statusDataType = ''; - public $userEmail; - - - public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) - { - $this->configuration = $configuration; - } - public function 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; - } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } - public function getUserEmail() - { - return $this->userEmail; - } -} - -class Google_Service_Bigquery_JobReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $endTime; - protected $extractType = 'Google_Service_Bigquery_JobStatistics4'; - protected $extractDataType = ''; - protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; - protected $loadDataType = ''; - protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; - protected $queryDataType = ''; - public $startTime; - public $totalBytesProcessed; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setExtract(Google_Service_Bigquery_JobStatistics4 $extract) - { - $this->extract = $extract; - } - public function getExtract() - { - return $this->extract; - } - 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_Collection -{ - protected $collection_key = 'referencedTables'; - protected $internal_gapi_mappings = array( - ); - public $billingTier; - public $cacheHit; - protected $queryPlanType = 'Google_Service_Bigquery_ExplainQueryStage'; - protected $queryPlanDataType = 'array'; - protected $referencedTablesType = 'Google_Service_Bigquery_TableReference'; - protected $referencedTablesDataType = 'array'; - public $totalBytesBilled; - public $totalBytesProcessed; - - - public function setBillingTier($billingTier) - { - $this->billingTier = $billingTier; - } - public function getBillingTier() - { - return $this->billingTier; - } - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } - public function getCacheHit() - { - return $this->cacheHit; - } - public function setQueryPlan($queryPlan) - { - $this->queryPlan = $queryPlan; - } - public function getQueryPlan() - { - return $this->queryPlan; - } - public function setReferencedTables($referencedTables) - { - $this->referencedTables = $referencedTables; - } - public function getReferencedTables() - { - return $this->referencedTables; - } - public function setTotalBytesBilled($totalBytesBilled) - { - $this->totalBytesBilled = $totalBytesBilled; - } - public function getTotalBytesBilled() - { - return $this->totalBytesBilled; - } - public function setTotalBytesProcessed($totalBytesProcessed) - { - $this->totalBytesProcessed = $totalBytesProcessed; - } - public function getTotalBytesProcessed() - { - return $this->totalBytesProcessed; - } -} - -class Google_Service_Bigquery_JobStatistics3 extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_JobStatistics4 extends Google_Collection -{ - protected $collection_key = 'destinationUriFileCounts'; - protected $internal_gapi_mappings = array( - ); - public $destinationUriFileCounts; - - - public function setDestinationUriFileCounts($destinationUriFileCounts) - { - $this->destinationUriFileCounts = $destinationUriFileCounts; - } - public function getDestinationUriFileCounts() - { - return $this->destinationUriFileCounts; - } -} - -class Google_Service_Bigquery_JobStatus extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorResultDataType = ''; - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $state; - - - public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) - { - $this->errorResult = $errorResult; - } - public function 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 -{ - protected $collection_key = 'projects'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $nextPageToken; - protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects'; - protected $projectsDataType = 'array'; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $friendlyName; - public $id; - public $kind; - public $numericId; - protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference'; - protected $projectReferenceDataType = ''; - - - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $projectId; - - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_Bigquery_QueryRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; - protected $defaultDatasetDataType = ''; - public $dryRun; - public $kind; - public $maxResults; - public $preserveNulls; - public $query; - public $timeoutMs; - public $useLegacySql; - 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 setUseLegacySql($useLegacySql) - { - $this->useLegacySql = $useLegacySql; - } - public function getUseLegacySql() - { - return $this->useLegacySql; - } - public function setUseQueryCache($useQueryCache) - { - $this->useQueryCache = $useQueryCache; - } - public function getUseQueryCache() - { - return $this->useQueryCache; - } -} - -class Google_Service_Bigquery_QueryResponse extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $cacheHit; - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $jobComplete; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $totalBytesProcessed; - public $totalRows; - - - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } - public function getCacheHit() - { - return $this->cacheHit; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - 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_Streamingbuffer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $estimatedBytes; - public $estimatedRows; - public $oldestEntryTime; - - - public function setEstimatedBytes($estimatedBytes) - { - $this->estimatedBytes = $estimatedBytes; - } - public function getEstimatedBytes() - { - return $this->estimatedBytes; - } - public function setEstimatedRows($estimatedRows) - { - $this->estimatedRows = $estimatedRows; - } - public function getEstimatedRows() - { - return $this->estimatedRows; - } - public function setOldestEntryTime($oldestEntryTime) - { - $this->oldestEntryTime = $oldestEntryTime; - } - public function getOldestEntryTime() - { - return $this->oldestEntryTime; - } -} - -class Google_Service_Bigquery_Table extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $description; - public $etag; - public $expirationTime; - protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration'; - protected $externalDataConfigurationDataType = ''; - public $friendlyName; - public $id; - public $kind; - public $lastModifiedTime; - public $location; - public $numBytes; - public $numRows; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $selfLink; - protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer'; - protected $streamingBufferDataType = ''; - protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; - protected $tableReferenceDataType = ''; - public $type; - protected $viewType = 'Google_Service_Bigquery_ViewDefinition'; - protected $viewDataType = ''; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function 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 setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration) - { - $this->externalDataConfiguration = $externalDataConfiguration; - } - public function getExternalDataConfiguration() - { - return $this->externalDataConfiguration; - } - 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 setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - 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 setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer) - { - $this->streamingBuffer = $streamingBuffer; - } - public function getStreamingBuffer() - { - return $this->streamingBuffer; - } - public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) - { - $this->tableReference = $tableReference; - } - public function getTableReference() - { - return $this->tableReference; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setView(Google_Service_Bigquery_ViewDefinition $view) - { - $this->view = $view; - } - public function getView() - { - return $this->view; - } -} - -class Google_Service_Bigquery_TableCell extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $v; - - - public function setV($v) - { - $this->v = $v; - } - public function getV() - { - return $this->v; - } -} - -class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $ignoreUnknownValues; - public $kind; - protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; - protected $rowsDataType = 'array'; - public $skipInvalidRows; - public $templateSuffix; - - - public function setIgnoreUnknownValues($ignoreUnknownValues) - { - $this->ignoreUnknownValues = $ignoreUnknownValues; - } - public function getIgnoreUnknownValues() - { - return $this->ignoreUnknownValues; - } - 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 setSkipInvalidRows($skipInvalidRows) - { - $this->skipInvalidRows = $skipInvalidRows; - } - public function getSkipInvalidRows() - { - return $this->skipInvalidRows; - } - public function setTemplateSuffix($templateSuffix) - { - $this->templateSuffix = $templateSuffix; - } - public function getTemplateSuffix() - { - return $this->templateSuffix; - } -} - -class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $insertId; - public $json; - - - public function setInsertId($insertId) - { - $this->insertId = $insertId; - } - public function getInsertId() - { - return $this->insertId; - } - public function setJson($json) - { - $this->json = $json; - } - public function getJson() - { - return $this->json; - } -} - -class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection -{ - protected $collection_key = 'insertErrors'; - protected $internal_gapi_mappings = array( - ); - protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; - protected $insertErrorsDataType = 'array'; - public $kind; - - - public function setInsertErrors($insertErrors) - { - $this->insertErrors = $insertErrors; - } - public function getInsertErrors() - { - return $this->insertErrors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $index; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } -} - -class Google_Service_Bigquery_TableDataList extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - public $totalRows; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 $collection_key = 'fields'; - protected $internal_gapi_mappings = array( - ); - public $description; - protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; - protected $fieldsDataType = 'array'; - public $mode; - public $name; - public $type; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - 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 -{ - protected $collection_key = 'tables'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $nextPageToken; - protected $tablesType = 'Google_Service_Bigquery_TableListTables'; - protected $tablesDataType = 'array'; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $friendlyName; - public $id; - public $kind; - protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; - protected $tableReferenceDataType = ''; - public $type; - - - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } - public function 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; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Bigquery_TableReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'f'; - protected $internal_gapi_mappings = array( - ); - protected $fType = 'Google_Service_Bigquery_TableCell'; - protected $fDataType = 'array'; - - - public function setF($f) - { - $this->f = $f; - } - public function getF() - { - return $this->f; - } -} - -class Google_Service_Bigquery_TableSchema extends Google_Collection -{ - protected $collection_key = 'fields'; - protected $internal_gapi_mappings = array( - ); - protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; - protected $fieldsDataType = 'array'; - - - public function setFields($fields) - { - $this->fields = $fields; - } - public function getFields() - { - return $this->fields; - } -} - -class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $inlineCode; - public $resourceUri; - - - public function setInlineCode($inlineCode) - { - $this->inlineCode = $inlineCode; - } - public function getInlineCode() - { - return $this->inlineCode; - } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } - public function getResourceUri() - { - return $this->resourceUri; - } -} - -class Google_Service_Bigquery_ViewDefinition extends Google_Collection -{ - protected $collection_key = 'userDefinedFunctionResources'; - protected $internal_gapi_mappings = array( - ); - public $query; - protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; - protected $userDefinedFunctionResourcesDataType = 'array'; - - - public function setQuery($query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setUserDefinedFunctionResources($userDefinedFunctionResources) - { - $this->userDefinedFunctionResources = $userDefinedFunctionResources; - } - public function getUserDefinedFunctionResources() - { - return $this->userDefinedFunctionResources; - } -} diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php deleted file mode 100644 index f1d6b96dd..000000000 --- a/src/Google/Service/Blogger.php +++ /dev/null @@ -1,3330 +0,0 @@ - - * 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 -{ - /** Manage your Blogger account. */ - const BLOGGER = - "https://www.googleapis.com/auth/blogger"; - /** View your Blogger account. */ - const BLOGGER_READONLY = - "https://www.googleapis.com/auth/blogger.readonly"; - - public $blogUserInfos; - public $blogs; - public $comments; - public $pageViews; - public $pages; - public $postUserInfos; - public $posts; - public $users; - - - /** - * Constructs the internal representation of the Blogger service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'blogger/v3/'; - $this->version = 'v3'; - $this->serviceName = 'blogger'; - - $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( - $this, - $this->serviceName, - 'blogUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->blogs = new Google_Service_Blogger_Blogs_Resource( - $this, - $this->serviceName, - 'blogs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByUrl' => array( - 'path' => 'blogs/byurl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'url' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByUser' => array( - 'path' => 'users/{userId}/blogs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchUserInfo' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Blogger_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'approve' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByBlog' => array( - 'path' => 'blogs/{blogId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'markAsSpam' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeContent' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->pageViews = new Google_Service_Blogger_PageViews_Resource( - $this, - $this->serviceName, - 'pageViews', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}/pageviews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'range' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->pages = new Google_Service_Blogger_Pages_Resource( - $this, - $this->serviceName, - 'pages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'revert' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}/revert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( - $this, - $this->serviceName, - 'postUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->posts = new Google_Service_Blogger_Posts_Resource( - $this, - $this->serviceName, - 'posts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByPath' => array( - 'path' => 'blogs/{blogId}/posts/bypath', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'path' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'publishDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'revert' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/revert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'blogs/{blogId}/posts/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Blogger_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "blogUserInfos" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $blogUserInfos = $bloggerService->blogUserInfos; - * - */ -class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource -{ - - /** - * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) - * - * @param string $userId ID of the user whose blogs are to be fetched. Either - * the word 'self' (sans quote marks) or the user's profile identifier. - * @param string $blogId The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxPosts Maximum number of posts to pull back with the - * blog. - * @return Google_Service_Blogger_BlogUserInfo - */ - public function get($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); - } -} - -/** - * The "blogs" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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. - * @opt_param string view Access level with which to view the blog. Note that - * some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Blog"); - } - - /** - * Retrieve a Blog by URL. (blogs.getByUrl) - * - * @param string $url The URL of the blog to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string view Access level with which to view the blog. Note that - * some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function getByUrl($url, $optParams = array()) - { - $params = array('url' => $url); - $params = array_merge($params, $optParams); - return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); - } - - /** - * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) - * - * @param string $userId ID of the user whose blogs are to be fetched. Either - * the word 'self' (sans quote marks) or the user's profile identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchUserInfo Whether the response is a list of blogs with - * per-user information instead of just blogs. - * @opt_param string role User access types for blogs to include in the results, - * e.g. AUTHOR will return blogs where the user has author level access. If no - * roles are specified, defaults to ADMIN and AUTHOR roles. - * @opt_param string status Blog statuses to include in the result (default: - * Live blogs only). Note that ADMIN access is required to view deleted blogs. - * @opt_param string view Access level with which to view the blogs. Note that - * some fields require elevated access. - * @return Google_Service_Blogger_BlogList - */ - public function listByUser($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $comments = $bloggerService->comments; - * - */ -class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource -{ - - /** - * Marks a comment as not spam. (comments.approve) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param string $commentId The ID of the comment to mark as not spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function approve($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); - } - - /** - * Delete a comment by ID. (comments.delete) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param string $commentId The ID of the comment to delete. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one comment by ID. (comments.get) - * - * @param string $blogId ID of the blog to containing the comment. - * @param string $postId ID of the post to fetch posts from. - * @param string $commentId The ID of the comment to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view Access level for the requested comment (default: - * READER). Note that some comments will require elevated permissions, for - * example comments where the parent posts which is in a draft state, or - * comments that are pending moderation. - * @return Google_Service_Blogger_Comment - */ - public function get($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Comment"); - } - - /** - * Retrieves the comments for a post, possibly filtered. (comments.listComments) - * - * @param string $blogId ID of the blog to fetch comments from. - * @param string $postId ID of the post to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string 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. - * @opt_param string status - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require elevated access. - * @return Google_Service_Blogger_CommentList - */ - public function listComments($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); - } - - /** - * Retrieves the comments for a blog, across all posts, possibly filtered. - * (comments.listByBlog) - * - * @param string $blogId ID of the blog to fetch comments from. - * @param array $optParams Optional parameters. - * - * @opt_param string 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. - * @opt_param string status - * @return Google_Service_Blogger_CommentList - */ - public function listByBlog($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); - } - - /** - * Marks a comment as spam. (comments.markAsSpam) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param string $commentId The ID of the comment to mark as spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); - } - - /** - * Removes the content of a comment. (comments.removeContent) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param string $commentId The ID of the comment to delete content from. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function removeContent($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); - } -} - -/** - * The "pageViews" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $pageViews = $bloggerService->pageViews; - * - */ -class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource -{ - - /** - * Retrieve pageview stats for a Blog. (pageViews.get) - * - * @param string $blogId The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string range - * @return Google_Service_Blogger_Pageviews - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); - } -} - -/** - * The "pages" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $pages = $bloggerService->pages; - * - */ -class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource -{ - - /** - * Delete a page by ID. (pages.delete) - * - * @param string $blogId The ID of the Blog. - * @param string $pageId The ID of the Page. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one blog page by ID. (pages.get) - * - * @param string $blogId ID of the blog containing the page. - * @param string $pageId The ID of the page to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * @return Google_Service_Blogger_Page - */ - public function get($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Page"); - } - - /** - * Add a page. (pages.insert) - * - * @param string $blogId ID of the blog to add the page to. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool isDraft Whether to create the page as a draft (default: - * false). - * @return Google_Service_Blogger_Page - */ - public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Page"); - } - - /** - * Retrieves the pages for a blog, optionally including non-LIVE statuses. - * (pages.listPages) - * - * @param string $blogId ID of the blog to fetch Pages from. - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBodies Whether to retrieve the Page bodies. - * @opt_param string maxResults Maximum number of Pages to fetch. - * @opt_param string pageToken Continuation token if the request is paged. - * @opt_param string status - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require elevated access. - * @return Google_Service_Blogger_PageList - */ - public function listPages($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PageList"); - } - - /** - * Update a page. This method supports patch semantics. (pages.patch) - * - * @param string $blogId The ID of the Blog. - * @param string $pageId The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool publish Whether a publish action should be performed when the - * page is updated (default: false). - * @opt_param bool revert Whether a revert action should be performed when the - * page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Page"); - } - - /** - * Publishes a draft page. (pages.publish) - * - * @param string $blogId The ID of the blog. - * @param string $pageId The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Page - */ - public function publish($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Blogger_Page"); - } - - /** - * Revert a published or scheduled page to draft state. (pages.revert) - * - * @param string $blogId The ID of the blog. - * @param string $pageId The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Page - */ - public function revert($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('revert', array($params), "Google_Service_Blogger_Page"); - } - - /** - * Update a page. (pages.update) - * - * @param string $blogId The ID of the Blog. - * @param string $pageId The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool publish Whether a publish action should be performed when the - * page is updated (default: false). - * @opt_param bool revert Whether a revert action should be performed when the - * page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Page"); - } -} - -/** - * The "postUserInfos" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $postUserInfos = $bloggerService->postUserInfos; - * - */ -class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource -{ - - /** - * Gets one post and user info pair, by post ID and user ID. The post user info - * contains per-user information about the post, such as access rights, specific - * to the user. (postUserInfos.get) - * - * @param string $userId ID of the user for the per-user information to be - * fetched. Either the word 'self' (sans quote marks) or the user's profile - * identifier. - * @param string $blogId The ID of the blog. - * @param string $postId The ID of the post to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments Maximum number of comments to pull back on a - * post. - * @return Google_Service_Blogger_PostUserInfo - */ - public function get($userId, $blogId, $postId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); - } - - /** - * Retrieves a list of post and post user info pairs, possibly filtered. The - * post user info contains per-user information about the post, such as access - * rights, specific to the user. (postUserInfos.listPostUserInfos) - * - * @param string $userId ID of the user for the per-user information to be - * fetched. Either the word 'self' (sans quote marks) or the user's profile - * identifier. - * @param string $blogId ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string 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. - * Default is false. - * @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 orderBy Sort order applied to search results. Default is - * published. - * @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. - * @opt_param string status - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require elevated access. - * @return Google_Service_Blogger_PostUserInfosList - */ - public function listPostUserInfos($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); - } -} - -/** - * The "posts" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Get a post by ID. (posts.get) - * - * @param string $blogId ID of the blog to fetch the post from. - * @param string $postId The ID of the post - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody Whether the body content of the post is included - * (default: true). This should be set to false when the post bodies are not - * required, to help minimize traffic. - * @opt_param bool fetchImages Whether image URL metadata for each post is - * included (default: false). - * @opt_param string maxComments Maximum number of comments to pull back on a - * post. - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require elevated access. - * @return Google_Service_Blogger_Post - */ - public function get($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Retrieve a Post by Path. (posts.getByPath) - * - * @param string $blogId ID of the blog to fetch the post from. - * @param string $path Path of the Post to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments Maximum number of comments to pull back on a - * post. - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require elevated access. - * @return Google_Service_Blogger_Post - */ - public function getByPath($blogId, $path, $optParams = array()) - { - $params = array('blogId' => $blogId, 'path' => $path); - $params = array_merge($params, $optParams); - return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Add a post. (posts.insert) - * - * @param string $blogId ID of the blog to add the post to. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody Whether the body content of the post is included - * with the result (default: true). - * @opt_param bool fetchImages Whether image URL metadata for each post is - * included in the returned result (default: false). - * @opt_param bool isDraft Whether to create the post as a draft (default: - * false). - * @return Google_Service_Blogger_Post - */ - public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Retrieves a list of posts, possibly filtered. (posts.listPosts) - * - * @param string $blogId ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 - * (default: true). This should be set to false when the post bodies are not - * required, to help minimize traffic. - * @opt_param bool fetchImages Whether image URL metadata for each post 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 orderBy Sort search results - * @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. - * @opt_param string status Statuses to include in the results. - * @opt_param string view Access level with which to view the returned result. - * Note that some fields require escalated access. - * @return Google_Service_Blogger_PostList - */ - public function listPosts($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostList"); - } - - /** - * Update a post. This method supports patch semantics. (posts.patch) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody Whether the body content of the post is included - * with the result (default: true). - * @opt_param bool fetchImages Whether image URL metadata for each post is - * included in the returned result (default: false). - * @opt_param string maxComments Maximum number of comments to retrieve with the - * returned post. - * @opt_param bool publish Whether a publish action should be performed when the - * post is updated (default: false). - * @opt_param bool revert Whether a revert action should be performed when the - * post is updated (default: false). - * @return Google_Service_Blogger_Post - */ - public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Publishes a draft post, optionally at the specific time of the given - * publishDate parameter. (posts.publish) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param array $optParams Optional parameters. - * - * @opt_param string publishDate Optional date and time to schedule the - * publishing of the Blog. If no publishDate parameter is given, the post is - * either published at the a previously saved schedule date (if present), or the - * current time. If a future date is given, the post will be scheduled to be - * published. - * @return Google_Service_Blogger_Post - */ - public function publish($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Revert a published or scheduled post to draft state. (posts.revert) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Post - */ - public function revert($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('revert', array($params), "Google_Service_Blogger_Post"); - } - - /** - * Search for a post. (posts.search) - * - * @param string $blogId ID of the blog to fetch the post from. - * @param string $q Query terms to search this blog for matching posts. - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBodies Whether the body content of posts is included - * (default: true). This should be set to false when the post bodies are not - * required, to help minimize traffic. - * @opt_param string orderBy Sort search results - * @return Google_Service_Blogger_PostList - */ - public function search($blogId, $q, $optParams = array()) - { - $params = array('blogId' => $blogId, 'q' => $q); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Blogger_PostList"); - } - - /** - * Update a post. (posts.update) - * - * @param string $blogId The ID of the Blog. - * @param string $postId The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody Whether the body content of the post is included - * with the result (default: true). - * @opt_param bool fetchImages Whether image URL metadata for each post is - * included in the returned result (default: false). - * @opt_param string maxComments Maximum number of comments to retrieve with the - * returned post. - * @opt_param bool publish Whether a publish action should be performed when the - * post is updated (default: false). - * @opt_param bool revert Whether a revert action should be performed when the - * post is updated (default: false). - * @return Google_Service_Blogger_Post - */ - public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Post"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $bloggerService = new Google_Service_Blogger(...); - * $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); - return $this->call('get', array($params), "Google_Service_Blogger_User"); - } -} - - - - -class Google_Service_Blogger_Blog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customMetaData; - public $description; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_BlogLocale'; - protected $localeDataType = ''; - public $name; - protected $pagesType = 'Google_Service_Blogger_BlogPages'; - protected $pagesDataType = ''; - protected $postsType = 'Google_Service_Blogger_BlogPosts'; - protected $postsDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; - public $url; - - - public function setCustomMetaData($customMetaData) - { - $this->customMetaData = $customMetaData; - } - 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 setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; - protected $blogUserInfosDataType = 'array'; - protected $itemsType = 'Google_Service_Blogger_Blog'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setBlogUserInfos($blogUserInfos) - { - $this->blogUserInfos = $blogUserInfos; - } - public function getBlogUserInfos() - { - return $this->blogUserInfos; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_BlogPerUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $blogId; - public $hasAdminAccess; - public $kind; - public $photosAlbumKey; - public $role; - public $userId; - - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - public function getBlogId() - { - return $this->blogId; - } - public function setHasAdminAccess($hasAdminAccess) - { - $this->hasAdminAccess = $hasAdminAccess; - } - public function getHasAdminAccess() - { - return $this->hasAdminAccess; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPhotosAlbumKey($photosAlbumKey) - { - $this->photosAlbumKey = $photosAlbumKey; - } - public function getPhotosAlbumKey() - { - return $this->photosAlbumKey; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Blogger_BlogPosts extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - 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_BlogUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - "blogUserInfo" => "blog_user_info", - ); - protected $blogType = 'Google_Service_Blogger_Blog'; - protected $blogDataType = ''; - protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; - protected $blogUserInfoDataType = ''; - public $kind; - - - public function setBlog(Google_Service_Blogger_Blog $blog) - { - $this->blog = $blog; - } - public function getBlog() - { - return $this->blog; - } - public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) - { - $this->blogUserInfo = $blogUserInfo; - } - public function getBlogUserInfo() - { - return $this->blogUserInfo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Blogger_Comment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Blogger_CommentAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_CommentBlog'; - protected $blogDataType = ''; - public $content; - public $id; - protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; - protected $inReplyToDataType = ''; - public $kind; - protected $postType = 'Google_Service_Blogger_CommentPost'; - protected $postDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; - - - public function setAuthor(Google_Service_Blogger_CommentAuthor $author) - { - $this->author = $author; - } - public function 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 setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } -} - -class Google_Service_Blogger_CommentAuthor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; - protected $imageDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_CommentBlog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Blogger_CommentInReplyTo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Blogger_CommentList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Blogger_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $prevPageToken; - - - 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 setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } -} - -class Google_Service_Blogger_CommentPost extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Blogger_Page extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Blogger_PageAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_PageBlog'; - protected $blogDataType = ''; - public $content; - public $etag; - public $id; - public $kind; - public $published; - public $selfLink; - public $status; - public $title; - public $updated; - public $url; - - - public function setAuthor(Google_Service_Blogger_PageAuthor $author) - { - $this->author = $author; - } - public function 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 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 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 setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_PageAuthor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; - protected $imageDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_PageBlog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Blogger_PageList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Blogger_Page'; - protected $itemsDataType = 'array'; - 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_Blogger_Pageviews extends Google_Collection -{ - protected $collection_key = 'counts'; - protected $internal_gapi_mappings = array( - ); - public $blogId; - protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; - protected $countsDataType = 'array'; - public $kind; - - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - public function getBlogId() - { - return $this->blogId; - } - public function setCounts($counts) - { - $this->counts = $counts; - } - public function getCounts() - { - return $this->counts; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Blogger_PageviewsCounts extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $timeRange; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setTimeRange($timeRange) - { - $this->timeRange = $timeRange; - } - public function getTimeRange() - { - return $this->timeRange; - } -} - -class Google_Service_Blogger_Post extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Blogger_PostAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_PostBlog'; - protected $blogDataType = ''; - public $content; - public $customMetaData; - public $etag; - public $id; - protected $imagesType = 'Google_Service_Blogger_PostImages'; - protected $imagesDataType = 'array'; - public $kind; - public $labels; - protected $locationType = 'Google_Service_Blogger_PostLocation'; - protected $locationDataType = ''; - public $published; - public $readerComments; - protected $repliesType = 'Google_Service_Blogger_PostReplies'; - protected $repliesDataType = ''; - public $selfLink; - public $status; - public $title; - public $titleLink; - public $updated; - public $url; - - - public function setAuthor(Google_Service_Blogger_PostAuthor $author) - { - $this->author = $author; - } - public function 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 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 setImages($images) - { - $this->images = $images; - } - public function getImages() - { - return $this->images; - } - 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 setReaderComments($readerComments) - { - $this->readerComments = $readerComments; - } - public function getReaderComments() - { - return $this->readerComments; - } - 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 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 setTitleLink($titleLink) - { - $this->titleLink = $titleLink; - } - public function getTitleLink() - { - return $this->titleLink; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; - protected $imageDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_PostBlog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Blogger_PostImages extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Blogger_PostList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - 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_Blogger_PostLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PostPerUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $blogId; - public $hasEditAccess; - public $kind; - public $postId; - public $userId; - - - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } - public function getBlogId() - { - return $this->blogId; - } - public function setHasEditAccess($hasEditAccess) - { - $this->hasEditAccess = $hasEditAccess; - } - public function getHasEditAccess() - { - return $this->hasEditAccess; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPostId($postId) - { - $this->postId = $postId; - } - public function getPostId() - { - return $this->postId; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Blogger_PostReplies extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Blogger_Comment'; - protected $itemsDataType = 'array'; - 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_PostUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - "postUserInfo" => "post_user_info", - ); - public $kind; - protected $postType = 'Google_Service_Blogger_Post'; - protected $postDataType = ''; - protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; - protected $postUserInfoDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPost(Google_Service_Blogger_Post $post) - { - $this->post = $post; - } - public function getPost() - { - return $this->post; - } - public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) - { - $this->postUserInfo = $postUserInfo; - } - public function getPostUserInfo() - { - return $this->postUserInfo; - } -} - -class Google_Service_Blogger_PostUserInfosList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Blogger_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $about; - protected $blogsType = 'Google_Service_Blogger_UserBlogs'; - protected $blogsDataType = ''; - public $created; - public $displayName; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_UserLocale'; - protected $localeDataType = ''; - public $selfLink; - public $url; - - - public function setAbout($about) - { - $this->about = $about; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $selfLink; - - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Blogger_UserLocale extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 deleted file mode 100644 index 3b86e1205..000000000 --- a/src/Google/Service/Books.php +++ /dev/null @@ -1,7574 +0,0 @@ - - * 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 -{ - /** Manage your books. */ - const BOOKS = - "https://www.googleapis.com/auth/books"; - - public $bookshelves; - public $bookshelves_volumes; - public $cloudloading; - public $dictionary; - public $layers; - public $layers_annotationData; - public $layers_volumeAnnotations; - public $myconfig; - public $mylibrary_annotations; - public $mylibrary_bookshelves; - public $mylibrary_bookshelves_volumes; - public $mylibrary_readingpositions; - public $notification; - public $onboarding; - public $personalizedstream; - public $promooffer; - public $series; - public $series_membership; - public $volumes; - public $volumes_associated; - public $volumes_mybooks; - public $volumes_recommended; - public $volumes_useruploaded; - - - /** - * Constructs the internal representation of the Books service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'books/v1/'; - $this->version = 'v1'; - $this->serviceName = 'books'; - - $this->bookshelves = new Google_Service_Books_Bookshelves_Resource( - $this, - $this->serviceName, - 'bookshelves', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/bookshelves/{shelf}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'users/{userId}/bookshelves', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'users/{userId}/bookshelves/{shelf}/volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->cloudloading = new Google_Service_Books_Cloudloading_Resource( - $this, - $this->serviceName, - 'cloudloading', - array( - 'methods' => array( - 'addBook' => array( - 'path' => 'cloudloading/addBook', - 'httpMethod' => 'POST', - 'parameters' => array( - 'drive_document_id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mime_type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'upload_client_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'deleteBook' => array( - 'path' => 'cloudloading/deleteBook', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateBook' => array( - 'path' => 'cloudloading/updateBook', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->dictionary = new Google_Service_Books_Dictionary_Resource( - $this, - $this->serviceName, - 'dictionary', - array( - 'methods' => array( - 'listOfflineMetadata' => array( - 'path' => 'dictionary/listOfflineMetadata', - 'httpMethod' => 'GET', - 'parameters' => array( - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->layers = new Google_Service_Books_Layers_Resource( - $this, - $this->serviceName, - 'layers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layersummary/{summaryId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'summaryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layersummary', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource( - $this, - $this->serviceName, - 'annotationData', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'annotationDataId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'allowWebDefinitions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'h' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scale' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'w' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/data', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'annotationDataId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'h' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scale' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'w' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource( - $this, - $this->serviceName, - 'volumeAnnotations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endOffset' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endPosition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startOffset' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startPosition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'volumeAnnotationsVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->myconfig = new Google_Service_Books_Myconfig_Resource( - $this, - $this->serviceName, - 'myconfig', - array( - 'methods' => array( - 'getUserSettings' => array( - 'path' => 'myconfig/getUserSettings', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'releaseDownloadAccess' => array( - 'path' => 'myconfig/releaseDownloadAccess', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'requestAccess' => array( - 'path' => 'myconfig/requestAccess', - 'httpMethod' => 'POST', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'nonce' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'licenseTypes' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'syncVolumeLicenses' => array( - 'path' => 'myconfig/syncVolumeLicenses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'nonce' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'features' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'includeNonComicsSeries' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'volumeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'updateUserSettings' => array( - 'path' => 'myconfig/updateUserSettings', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource( - $this, - $this->serviceName, - 'annotations', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'mylibrary/annotations', - 'httpMethod' => 'POST', - 'parameters' => array( - 'country' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showOnlySummaryInResponse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'mylibrary/annotations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'layerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'layerIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'summary' => array( - 'path' => 'mylibrary/annotations/summary', - 'httpMethod' => 'POST', - 'parameters' => array( - 'layerIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource( - $this, - $this->serviceName, - 'bookshelves', - array( - 'methods' => array( - 'addVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/addVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'reason' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'clearVolumes' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'mylibrary/bookshelves/{shelf}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'mylibrary/bookshelves', - 'httpMethod' => 'GET', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'moveVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumePosition' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'reason' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'country' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource( - $this, - $this->serviceName, - 'readingpositions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'mylibrary/readingpositions/{volumeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setPosition' => array( - 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timestamp' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'position' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'action' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'deviceCookie' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->notification = new Google_Service_Books_Notification_Resource( - $this, - $this->serviceName, - 'notification', - array( - 'methods' => array( - 'get' => array( - 'path' => 'notification/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'notification_id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->onboarding = new Google_Service_Books_Onboarding_Resource( - $this, - $this->serviceName, - 'onboarding', - array( - 'methods' => array( - 'listCategories' => array( - 'path' => 'onboarding/listCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listCategoryVolumes' => array( - 'path' => 'onboarding/listCategoryVolumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAllowedMaturityRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->personalizedstream = new Google_Service_Books_Personalizedstream_Resource( - $this, - $this->serviceName, - 'personalizedstream', - array( - 'methods' => array( - 'get' => array( - 'path' => 'personalizedstream/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAllowedMaturityRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->promooffer = new Google_Service_Books_Promooffer_Resource( - $this, - $this->serviceName, - 'promooffer', - array( - 'methods' => array( - 'accept' => array( - 'path' => 'promooffer/accept', - 'httpMethod' => 'POST', - 'parameters' => array( - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'promooffer/dismiss', - 'httpMethod' => 'POST', - 'parameters' => array( - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'promooffer/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->series = new Google_Service_Books_Series_Resource( - $this, - $this->serviceName, - 'series', - array( - 'methods' => array( - 'get' => array( - 'path' => 'series/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'series_id' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->series_membership = new Google_Service_Books_SeriesMembership_Resource( - $this, - $this->serviceName, - 'membership', - array( - 'methods' => array( - 'get' => array( - 'path' => 'series/membership/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'series_id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'page_size' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'page_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes = new Google_Service_Books_Volumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'country' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeNonComicsSeries' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'partner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'user_library_consistent_read' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'download' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'langRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'libraryRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'partner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'printType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource( - $this, - $this->serviceName, - 'associated', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/{volumeId}/associated', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'association' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAllowedMaturityRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource( - $this, - $this->serviceName, - 'mybooks', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/mybooks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'acquireMethod' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'processingState' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource( - $this, - $this->serviceName, - 'recommended', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/recommended', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAllowedMaturityRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'volumes/recommended/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource( - $this, - $this->serviceName, - 'useruploaded', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/useruploaded', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'processingState' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "bookshelves" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); - } - - /** - * Retrieves a list of public bookshelves for the specified user. - * (bookshelves.listBookshelves) - * - * @param string $userId ID of user for whom to retrieve bookshelves. - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Bookshelves - */ - public function listBookshelves($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); - } -} - -/** - * The "volumes" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $volumes = $booksService->volumes; - * - */ -class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves volumes in a specific bookshelf for the specified user. - * (volumes.listBookshelvesVolumes) - * - * @param string $userId ID of user for whom to retrieve bookshelf volumes. - * @param string $shelf ID of bookshelf to retrieve volumes. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} - -/** - * The "cloudloading" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); - } - - /** - * Remove the book and its contents (cloudloading.deleteBook) - * - * @param string $volumeId The id of the book to be removed. - * @param array $optParams Optional parameters. - */ - public function deleteBook($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('deleteBook', array($params)); - } - - /** - * (cloudloading.updateBook) - * - * @param Google_BooksCloudloadingResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Books_BooksCloudloadingResource - */ - public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); - } -} - -/** - * The "dictionary" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $dictionary = $booksService->dictionary; - * - */ -class Google_Service_Books_Dictionary_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of offline dictionary metadata available - * (dictionary.listOfflineMetadata) - * - * @param string $cpksver The device/version ID from which to request the data. - * @param array $optParams Optional parameters. - * @return Google_Service_Books_Metadata - */ - public function listOfflineMetadata($cpksver, $optParams = array()) - { - $params = array('cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('listOfflineMetadata', array($params), "Google_Service_Books_Metadata"); - } -} - -/** - * The "layers" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('get', array($params), "Google_Service_Books_Layersummary"); - } - - /** - * List the layer summaries for a volume. (layers.listLayers) - * - * @param string $volumeId The volume to retrieve layers for. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Books_Layersummaries"); - } -} - -/** - * The "annotationData" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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 bool allowWebDefinitions For the dictionary layer. Whether or not - * to allow web definitions. - * @opt_param int h The requested pixel height for any images. If height is - * provided width must also be provided. - * @opt_param string locale The locale information for the data. ISO-639-1 - * language and ISO-3166-1 country code. Ex: 'en_US'. - * @opt_param int 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); - return $this->call('get', array($params), "Google_Service_Books_Annotationdata"); - } - - /** - * Gets the annotation data for a volume and layer. - * (annotationData.listLayersAnnotationData) - * - * @param string $volumeId The volume to retrieve annotation data for. - * @param string $layerId The ID for the layer to get the annotation data. - * @param string $contentVersion The content version for the requested volume. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_Books_Annotationsdata"); - } -} -/** - * The "volumeAnnotations" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('get', array($params), "Google_Service_Books_Volumeannotation"); - } - - /** - * Gets the volume annotations for a volume and layer. - * (volumeAnnotations.listLayersVolumeAnnotations) - * - * @param string $volumeId The volume to retrieve annotations for. - * @param string $layerId The ID for the layer to get the annotations. - * @param string $contentVersion The content version for the requested volume. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_Books_Volumeannotations"); - } -} - -/** - * The "myconfig" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $myconfig = $booksService->myconfig; - * - */ -class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource -{ - - /** - * Gets the current settings for the user. (myconfig.getUserSettings) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Books_Usersettings - */ - public function getUserSettings($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getUserSettings', array($params), "Google_Service_Books_Usersettings"); - } - - /** - * Release downloaded content access restriction. - * (myconfig.releaseDownloadAccess) - * - * @param string $volumeIds The volume(s) to release restrictions for. - * @param string $cpksver The device/version ID from which to release the - * restriction. - * @param array $optParams Optional parameters. - * - * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message - * localization, i.e. en_US. - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_DownloadAccesses - */ - public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) - { - $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses"); - } - - /** - * Request concurrent and download access restrictions. (myconfig.requestAccess) - * - * @param string $source String to identify the originator of this request. - * @param string $volumeId The volume to request concurrent/download - * restrictions for. - * @param string $nonce The client nonce value. - * @param string $cpksver The device/version ID from which to request the - * restrictions. - * @param array $optParams Optional parameters. - * - * @opt_param string licenseTypes The type of access license to request. If not - * specified, the default is BOTH. - * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message - * localization, i.e. en_US. - * @return Google_Service_Books_RequestAccess - */ - public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) - { - $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess"); - } - - /** - * Request downloaded content access for specified volumes on the My eBooks - * shelf. (myconfig.syncVolumeLicenses) - * - * @param string $source String to identify the originator of this request. - * @param string $nonce The client nonce value. - * @param string $cpksver The device/version ID from which to release the - * restriction. - * @param array $optParams Optional parameters. - * - * @opt_param string features List of features supported by the client, i.e., - * 'RENTALS' - * @opt_param bool includeNonComicsSeries Set to true to include non-comics - * series. Defaults to false. - * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message - * localization, i.e. en_US. - * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults - * to false. - * @opt_param string volumeIds The volume(s) to request download restrictions - * for. - * @return Google_Service_Books_Volumes - */ - public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) - { - $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes"); - } - - /** - * Sets the settings for the user. If a sub-object is specified, it will - * overwrite the existing sub-object stored in the server. Unspecified sub- - * objects will retain the existing value. (myconfig.updateUserSettings) - * - * @param Google_Usersettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Books_Usersettings - */ - public function updateUserSettings(Google_Service_Books_Usersettings $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateUserSettings', array($params), "Google_Service_Books_Usersettings"); - } -} - -/** - * The "mylibrary" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $mylibrary = $booksService->mylibrary; - * - */ -class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource -{ -} - -/** - * The "annotations" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Inserts a new annotation. (annotations.insert) - * - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string country ISO-3166-1 code to override the IP-based location. - * @opt_param bool showOnlySummaryInResponse Requests that only the summary of - * the specified layer be provided in the response. - * @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); - return $this->call('insert', array($params), "Google_Service_Books_Annotation"); - } - - /** - * Retrieves a list of annotations, possibly filtered. - * (annotations.listMylibraryAnnotations) - * - * @param array $optParams Optional parameters. - * - * @opt_param string contentVersion The content version for the requested - * volume. - * @opt_param string layerId The layer ID to limit annotation by. - * @opt_param string layerIds The layer ID(s) to limit annotation by. - * @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 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); - return $this->call('list', array($params), "Google_Service_Books_Annotations"); - } - - /** - * Gets the summary of specified layers. (annotations.summary) - * - * @param string $layerIds Array of layer IDs to get the summary for. - * @param string $volumeId Volume id to get the summary for. - * @param array $optParams Optional parameters. - * @return Google_Service_Books_AnnotationsSummary - */ - public function summary($layerIds, $volumeId, $optParams = array()) - { - $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary"); - } - - /** - * Updates an existing annotation. (annotations.update) - * - * @param string $annotationId The ID for the annotation to update. - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Annotation - */ - public function update($annotationId, Google_Service_Books_Annotation $postBody, $optParams = array()) - { - $params = array('annotationId' => $annotationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Books_Annotation"); - } -} -/** - * The "bookshelves" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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 reason The reason for which the book is added to the - * library. - * @opt_param string source String to identify the originator of this request. - */ - public function addVolume($shelf, $volumeId, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('addVolume', array($params)); - } - - /** - * Clears all volumes from a bookshelf. (bookshelves.clearVolumes) - * - * @param string $shelf ID of bookshelf from which to remove a volume. - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - */ - public function clearVolumes($shelf, $optParams = array()) - { - $params = array('shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('clearVolumes', array($params)); - } - - /** - * Retrieves metadata for a specific bookshelf belonging to the authenticated - * user. (bookshelves.get) - * - * @param string $shelf ID of bookshelf to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Bookshelf - */ - public function get($shelf, $optParams = array()) - { - $params = array('shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); - } - - /** - * Retrieves a list of bookshelves belonging to the authenticated user. - * (bookshelves.listMylibraryBookshelves) - * - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Bookshelves - */ - public function listMylibraryBookshelves($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); - } - - /** - * Moves a volume within a bookshelf. (bookshelves.moveVolume) - * - * @param string $shelf ID of bookshelf with the volume. - * @param string $volumeId ID of volume to move. - * @param int $volumePosition Position on shelf to move the item (0 puts the - * item before the current first item, 1 puts it between the first and the - * second and so on.) - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - */ - public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition); - $params = array_merge($params, $optParams); - return $this->call('moveVolume', array($params)); - } - - /** - * Removes a volume from a bookshelf. (bookshelves.removeVolume) - * - * @param string $shelf ID of bookshelf from which to remove a volume. - * @param string $volumeId ID of volume to remove. - * @param array $optParams Optional parameters. - * - * @opt_param string reason The reason for which the book is removed from the - * library. - * @opt_param string source String to identify the originator of this request. - */ - public function removeVolume($shelf, $volumeId, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('removeVolume', array($params)); - } -} - -/** - * The "volumes" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $volumes = $booksService->volumes; - * - */ -class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_Service_Resource -{ - - /** - * Gets volume information for volumes on a bookshelf. - * (volumes.listMylibraryBookshelvesVolumes) - * - * @param string $shelf The bookshelf ID or name retrieve volumes for. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} -/** - * The "readingpositions" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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); - return $this->call('get', array($params), "Google_Service_Books_ReadingPosition"); - } - - /** - * Sets my reading position information for a volume. - * (readingpositions.setPosition) - * - * @param string $volumeId ID of volume for which to update the reading - * position. - * @param string $timestamp RFC 3339 UTC format timestamp associated with this - * reading position. - * @param string $position Position string for the new volume reading position. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('setPosition', array($params)); - } -} - -/** - * The "notification" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $notification = $booksService->notification; - * - */ -class Google_Service_Books_Notification_Resource extends Google_Service_Resource -{ - - /** - * Returns notification details for a given notification id. (notification.get) - * - * @param string $notificationId String to identify the notification. - * @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 notification title and body. - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Notification - */ - public function get($notificationId, $optParams = array()) - { - $params = array('notification_id' => $notificationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Notification"); - } -} - -/** - * The "onboarding" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $onboarding = $booksService->onboarding; - * - */ -class Google_Service_Books_Onboarding_Resource extends Google_Service_Resource -{ - - /** - * List categories for onboarding experience. (onboarding.listCategories) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. - * Default is en-US if unset. - * @return Google_Service_Books_Category - */ - public function listCategories($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listCategories', array($params), "Google_Service_Books_Category"); - } - - /** - * List available volumes under categories for onboarding experience. - * (onboarding.listCategoryVolumes) - * - * @param array $optParams Optional parameters. - * - * @opt_param string categoryId List of category ids requested. - * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. - * Default is en-US if unset. - * @opt_param string maxAllowedMaturityRating The maximum allowed maturity - * rating of returned volumes. Books with a higher maturity rating are filtered - * out. - * @opt_param string pageSize Number of maximum results per page to be included - * in the response. - * @opt_param string pageToken The value of the nextToken from the previous - * page. - * @return Google_Service_Books_Volume2 - */ - public function listCategoryVolumes($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listCategoryVolumes', array($params), "Google_Service_Books_Volume2"); - } -} - -/** - * The "personalizedstream" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $personalizedstream = $booksService->personalizedstream; - * - */ -class Google_Service_Books_Personalizedstream_Resource extends Google_Service_Resource -{ - - /** - * Returns a stream of personalized book clusters (personalizedstream.get) - * - * @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 maxAllowedMaturityRating The maximum allowed maturity - * rating of returned recommendations. Books with a higher maturity rating are - * filtered out. - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Discoveryclusters - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Discoveryclusters"); - } -} - -/** - * The "promooffer" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $promooffer = $booksService->promooffer; - * - */ -class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource -{ - - /** - * (promooffer.accept) - * - * @param array $optParams Optional parameters. - * - * @opt_param string androidId device android_id - * @opt_param string device device device - * @opt_param string manufacturer device manufacturer - * @opt_param string model device model - * @opt_param string offerId - * @opt_param string product device product - * @opt_param string serial device serial - * @opt_param string volumeId Volume id to exercise the offer - */ - public function accept($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('accept', array($params)); - } - - /** - * (promooffer.dismiss) - * - * @param array $optParams Optional parameters. - * - * @opt_param string androidId device android_id - * @opt_param string device device device - * @opt_param string manufacturer device manufacturer - * @opt_param string model device model - * @opt_param string offerId Offer to dimiss - * @opt_param string product device product - * @opt_param string serial device serial - */ - public function dismiss($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - - /** - * Returns a list of promo offers available to the user (promooffer.get) - * - * @param array $optParams Optional parameters. - * - * @opt_param string androidId device android_id - * @opt_param string device device device - * @opt_param string manufacturer device manufacturer - * @opt_param string model device model - * @opt_param string product device product - * @opt_param string serial device serial - * @return Google_Service_Books_Offers - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Offers"); - } -} - -/** - * The "series" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $series = $booksService->series; - * - */ -class Google_Service_Books_Series_Resource extends Google_Service_Resource -{ - - /** - * Returns Series metadata for the given series ids. (series.get) - * - * @param string $seriesId String that identifies the series - * @param array $optParams Optional parameters. - * @return Google_Service_Books_Series - */ - public function get($seriesId, $optParams = array()) - { - $params = array('series_id' => $seriesId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Series"); - } -} - -/** - * The "membership" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $membership = $booksService->membership; - * - */ -class Google_Service_Books_SeriesMembership_Resource extends Google_Service_Resource -{ - - /** - * Returns Series membership data given the series id. (membership.get) - * - * @param string $seriesId String that identifies the series - * @param array $optParams Optional parameters. - * - * @opt_param string page_size Number of maximum results per page to be included - * in the response. - * @opt_param string page_token The value of the nextToken from the previous - * page. - * @return Google_Service_Books_Seriesmembership - */ - public function get($seriesId, $optParams = array()) - { - $params = array('series_id' => $seriesId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Seriesmembership"); - } -} - -/** - * The "volumes" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $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 bool includeNonComicsSeries Set to true to include non-comics - * series. Defaults to false. - * @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. - * @opt_param bool user_library_consistent_read - * @return Google_Service_Books_Volume - */ - public function get($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Volume"); - } - - /** - * Performs a book search. (volumes.listVolumes) - * - * @param string $q Full-text search query string. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} - -/** - * The "associated" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $associated = $booksService->associated; - * - */ -class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Resource -{ - - /** - * Return a list of associated books. (associated.listVolumesAssociated) - * - * @param string $volumeId ID of the source volume. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 maxAllowedMaturityRating The maximum allowed maturity - * rating of returned recommendations. Books with a higher maturity rating are - * filtered out. - * @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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} -/** - * The "mybooks" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $mybooks = $booksService->mybooks; - * - */ -class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resource -{ - - /** - * Return a list of books in My Library. (mybooks.listVolumesMybooks) - * - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} -/** - * The "recommended" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $recommended = $booksService->recommended; - * - */ -class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Resource -{ - - /** - * Return a list of recommended books for the current user. - * (recommended.listVolumesRecommended) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. Used for generating recommendations. - * @opt_param string maxAllowedMaturityRating The maximum allowed maturity - * rating of returned recommendations. Books with a higher maturity rating are - * filtered out. - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Volumes - */ - public function listVolumesRecommended($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } - - /** - * Rate a recommended book for the current user. (recommended.rate) - * - * @param string $rating Rating to be given to the volume. - * @param string $volumeId ID of the source volume. - * @param array $optParams Optional parameters. - * - * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. Used for generating recommendations. - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_BooksVolumesRecommendedRateResponse - */ - public function rate($rating, $volumeId, $optParams = array()) - { - $params = array('rating' => $rating, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params), "Google_Service_Books_BooksVolumesRecommendedRateResponse"); - } -} -/** - * The "useruploaded" collection of methods. - * Typical usage is: - * - * $booksService = new Google_Service_Books(...); - * $useruploaded = $booksService->useruploaded; - * - */ -class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_Resource -{ - - /** - * Return a list of books uploaded by the current user. - * (useruploaded.listVolumesUseruploaded) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. Used for generating recommendations. - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} - - - - -class Google_Service_Books_Annotation extends Google_Collection -{ - protected $collection_key = 'pageIds'; - protected $internal_gapi_mappings = array( - ); - public $afterSelectedText; - public $beforeSelectedText; - protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges'; - protected $clientVersionRangesDataType = ''; - public $created; - protected $currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges'; - protected $currentVersionRangesDataType = ''; - public $data; - public $deleted; - public $highlightStyle; - public $id; - public $kind; - public $layerId; - protected $layerSummaryType = 'Google_Service_Books_AnnotationLayerSummary'; - protected $layerSummaryDataType = ''; - public $pageIds; - public $selectedText; - public $selfLink; - public $updated; - public $volumeId; - - - public function setAfterSelectedText($afterSelectedText) - { - $this->afterSelectedText = $afterSelectedText; - } - public function getAfterSelectedText() - { - return $this->afterSelectedText; - } - public function setBeforeSelectedText($beforeSelectedText) - { - $this->beforeSelectedText = $beforeSelectedText; - } - public function getBeforeSelectedText() - { - return $this->beforeSelectedText; - } - public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges) - { - $this->clientVersionRanges = $clientVersionRanges; - } - public function getClientVersionRanges() - { - return $this->clientVersionRanges; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges) - { - $this->currentVersionRanges = $currentVersionRanges; - } - public function getCurrentVersionRanges() - { - return $this->currentVersionRanges; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setHighlightStyle($highlightStyle) - { - $this->highlightStyle = $highlightStyle; - } - public function getHighlightStyle() - { - return $this->highlightStyle; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - public function getLayerId() - { - return $this->layerId; - } - public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary) - { - $this->layerSummary = $layerSummary; - } - public function getLayerSummary() - { - return $this->layerSummary; - } - public function setPageIds($pageIds) - { - $this->pageIds = $pageIds; - } - public function getPageIds() - { - return $this->pageIds; - } - public function setSelectedText($selectedText) - { - $this->selectedText = $selectedText; - } - public function getSelectedText() - { - return $this->selectedText; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $imageCfiRangeDataType = ''; - - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - public function getCfiRange() - { - return $this->cfiRange; - } - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - public function getContentVersion() - { - return $this->contentVersion; - } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - public function getGbImageRange() - { - return $this->gbImageRange; - } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - public function getGbTextRange() - { - return $this->gbTextRange; - } - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) - { - $this->imageCfiRange = $imageCfiRange; - } - public function getImageCfiRange() - { - return $this->imageCfiRange; - } -} - -class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $imageCfiRangeDataType = ''; - - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - public function getCfiRange() - { - return $this->cfiRange; - } - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - public function getContentVersion() - { - return $this->contentVersion; - } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - public function getGbImageRange() - { - return $this->gbImageRange; - } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - public function getGbTextRange() - { - return $this->gbTextRange; - } - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) - { - $this->imageCfiRange = $imageCfiRange; - } - public function getImageCfiRange() - { - return $this->imageCfiRange; - } -} - -class Google_Service_Books_AnnotationLayerSummary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowedCharacterCount; - public $limitType; - public $remainingCharacterCount; - - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - public function getLimitType() - { - return $this->limitType; - } - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } -} - -class Google_Service_Books_Annotationdata extends Google_Model -{ - protected $internal_gapi_mappings = array( - "encodedData" => "encoded_data", - ); - public $annotationType; - public $data; - public $encodedData; - public $id; - public $kind; - public $layerId; - public $selfLink; - public $updated; - public $volumeId; - - - public function setAnnotationType($annotationType) - { - $this->annotationType = $annotationType; - } - public function getAnnotationType() - { - return $this->annotationType; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setEncodedData($encodedData) - { - $this->encodedData = $encodedData; - } - public function getEncodedData() - { - return $this->encodedData; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - public function getLayerId() - { - return $this->layerId; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_Annotations extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Annotation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Books_AnnotationsSummary extends Google_Collection -{ - protected $collection_key = 'layers'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; - protected $layersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLayers($layers) - { - $this->layers = $layers; - } - public function getLayers() - { - return $this->layers; - } -} - -class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowedCharacterCount; - public $layerId; - public $limitType; - public $remainingCharacterCount; - public $updated; - - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - public function getLayerId() - { - return $this->layerId; - } - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - public function getLimitType() - { - return $this->limitType; - } - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } -} - -class Google_Service_Books_Annotationsdata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Annotationdata'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Books_BooksAnnotationsRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_BooksVolumesRecommendedRateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - "consistencyToken" => "consistency_token", - ); - public $consistencyToken; - - - public function setConsistencyToken($consistencyToken) - { - $this->consistencyToken = $consistencyToken; - } - public function getConsistencyToken() - { - return $this->consistencyToken; - } -} - -class Google_Service_Books_Bookshelf extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Bookshelf'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_Category extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_CategoryItems'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_CategoryItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $badgeUrl; - public $categoryId; - public $name; - - - public function setBadgeUrl($badgeUrl) - { - $this->badgeUrl = $badgeUrl; - } - public function getBadgeUrl() - { - return $this->badgeUrl; - } - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - public function getCategoryId() - { - return $this->categoryId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deviceAllowed; - public $kind; - public $maxConcurrentDevices; - public $message; - public $nonce; - public $reasonCode; - public $restricted; - public $signature; - public $source; - public $timeWindowSeconds; - public $volumeId; - - - public function setDeviceAllowed($deviceAllowed) - { - $this->deviceAllowed = $deviceAllowed; - } - public function getDeviceAllowed() - { - return $this->deviceAllowed; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxConcurrentDevices($maxConcurrentDevices) - { - $this->maxConcurrentDevices = $maxConcurrentDevices; - } - public function getMaxConcurrentDevices() - { - return $this->maxConcurrentDevices; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setNonce($nonce) - { - $this->nonce = $nonce; - } - public function getNonce() - { - return $this->nonce; - } - public function setReasonCode($reasonCode) - { - $this->reasonCode = $reasonCode; - } - public function getReasonCode() - { - return $this->reasonCode; - } - public function setRestricted($restricted) - { - $this->restricted = $restricted; - } - public function getRestricted() - { - return $this->restricted; - } - public function setSignature($signature) - { - $this->signature = $signature; - } - public function getSignature() - { - return $this->signature; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setTimeWindowSeconds($timeWindowSeconds) - { - $this->timeWindowSeconds = $timeWindowSeconds; - } - public function getTimeWindowSeconds() - { - return $this->timeWindowSeconds; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_Dictlayerdata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $commonType = 'Google_Service_Books_DictlayerdataCommon'; - protected $commonDataType = ''; - protected $dictType = 'Google_Service_Books_DictlayerdataDict'; - protected $dictDataType = ''; - public $kind; - - - public function setCommon(Google_Service_Books_DictlayerdataCommon $common) - { - $this->common = $common; - } - public function getCommon() - { - return $this->common; - } - public function setDict(Google_Service_Books_DictlayerdataDict $dict) - { - $this->dict = $dict; - } - public function getDict() - { - return $this->dict; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_DictlayerdataCommon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Books_DictlayerdataDict extends Google_Collection -{ - protected $collection_key = 'words'; - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource'; - protected $sourceDataType = ''; - protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; - protected $wordsDataType = 'array'; - - - public function setSource(Google_Service_Books_DictlayerdataDictSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setWords($words) - { - $this->words = $words; - } - public function getWords() - { - return $this->words; - } -} - -class Google_Service_Books_DictlayerdataDictSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWords extends Google_Collection -{ - protected $collection_key = 'senses'; - protected $internal_gapi_mappings = array( - ); - protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives'; - protected $derivativesDataType = 'array'; - protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples'; - protected $examplesDataType = 'array'; - protected $sensesType = 'Google_Service_Books_DictlayerdataDictWordsSenses'; - protected $sensesDataType = 'array'; - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource'; - protected $sourceDataType = ''; - - - public function setDerivatives($derivatives) - { - $this->derivatives = $derivatives; - } - public function getDerivatives() - { - return $this->derivatives; - } - public function setExamples($examples) - { - $this->examples = $examples; - } - public function getExamples() - { - return $this->examples; - } - public function setSenses($senses) - { - $this->senses = $senses; - } - public function getSenses() - { - return $this->senses; - } - public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource'; - protected $sourceDataType = ''; - public $text; - - - public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsExamples extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource'; - protected $sourceDataType = ''; - public $text; - - - public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsSenses extends Google_Collection -{ - protected $collection_key = 'synonyms'; - protected $internal_gapi_mappings = array( - ); - protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations'; - protected $conjugationsDataType = 'array'; - protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions'; - protected $definitionsDataType = 'array'; - public $partOfSpeech; - public $pronunciation; - public $pronunciationUrl; - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSource'; - protected $sourceDataType = ''; - public $syllabification; - protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms'; - protected $synonymsDataType = 'array'; - - - public function setConjugations($conjugations) - { - $this->conjugations = $conjugations; - } - public function getConjugations() - { - return $this->conjugations; - } - public function setDefinitions($definitions) - { - $this->definitions = $definitions; - } - public function getDefinitions() - { - return $this->definitions; - } - public function setPartOfSpeech($partOfSpeech) - { - $this->partOfSpeech = $partOfSpeech; - } - public function getPartOfSpeech() - { - return $this->partOfSpeech; - } - public function setPronunciation($pronunciation) - { - $this->pronunciation = $pronunciation; - } - public function getPronunciation() - { - return $this->pronunciation; - } - public function setPronunciationUrl($pronunciationUrl) - { - $this->pronunciationUrl = $pronunciationUrl; - } - public function getPronunciationUrl() - { - return $this->pronunciationUrl; - } - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setSyllabification($syllabification) - { - $this->syllabification = $syllabification; - } - public function getSyllabification() - { - return $this->syllabification; - } - public function setSynonyms($synonyms) - { - $this->synonyms = $synonyms; - } - public function getSynonyms() - { - return $this->synonyms; - } -} - -class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsSensesDefinitions extends Google_Collection -{ - protected $collection_key = 'examples'; - protected $internal_gapi_mappings = array( - ); - public $definition; - protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; - protected $examplesDataType = 'array'; - - - public function setDefinition($definition) - { - $this->definition = $definition; - } - public function getDefinition() - { - return $this->definition; - } - public function setExamples($examples) - { - $this->examples = $examples; - } - public function getExamples() - { - return $this->examples; - } -} - -class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource'; - protected $sourceDataType = ''; - public $text; - - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsSensesSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsSensesSynonyms extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource'; - protected $sourceDataType = ''; - public $text; - - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DictlayerdataDictWordsSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Discoveryclusters extends Google_Collection -{ - protected $collection_key = 'clusters'; - protected $internal_gapi_mappings = array( - ); - protected $clustersType = 'Google_Service_Books_DiscoveryclustersClusters'; - protected $clustersDataType = 'array'; - public $kind; - public $totalClusters; - - - public function setClusters($clusters) - { - $this->clusters = $clusters; - } - public function getClusters() - { - return $this->clusters; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTotalClusters($totalClusters) - { - $this->totalClusters = $totalClusters; - } - public function getTotalClusters() - { - return $this->totalClusters; - } -} - -class Google_Service_Books_DiscoveryclustersClusters extends Google_Collection -{ - protected $collection_key = 'volumes'; - protected $internal_gapi_mappings = array( - "bannerWithContentContainer" => "banner_with_content_container", - ); - protected $bannerWithContentContainerType = 'Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer'; - protected $bannerWithContentContainerDataType = ''; - public $subTitle; - public $title; - public $totalVolumes; - public $uid; - protected $volumesType = 'Google_Service_Books_Volume'; - protected $volumesDataType = 'array'; - - - public function setBannerWithContentContainer(Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer $bannerWithContentContainer) - { - $this->bannerWithContentContainer = $bannerWithContentContainer; - } - public function getBannerWithContentContainer() - { - return $this->bannerWithContentContainer; - } - 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; - } - public function setTotalVolumes($totalVolumes) - { - $this->totalVolumes = $totalVolumes; - } - public function getTotalVolumes() - { - return $this->totalVolumes; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setVolumes($volumes) - { - $this->volumes = $volumes; - } - public function getVolumes() - { - return $this->volumes; - } -} - -class Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fillColorArgb; - public $imageUrl; - public $maskColorArgb; - public $moreButtonText; - public $moreButtonUrl; - public $textColorArgb; - - - public function setFillColorArgb($fillColorArgb) - { - $this->fillColorArgb = $fillColorArgb; - } - public function getFillColorArgb() - { - return $this->fillColorArgb; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setMaskColorArgb($maskColorArgb) - { - $this->maskColorArgb = $maskColorArgb; - } - public function getMaskColorArgb() - { - return $this->maskColorArgb; - } - public function setMoreButtonText($moreButtonText) - { - $this->moreButtonText = $moreButtonText; - } - public function getMoreButtonText() - { - return $this->moreButtonText; - } - public function setMoreButtonUrl($moreButtonUrl) - { - $this->moreButtonUrl = $moreButtonUrl; - } - public function getMoreButtonUrl() - { - return $this->moreButtonUrl; - } - public function setTextColorArgb($textColorArgb) - { - $this->textColorArgb = $textColorArgb; - } - public function getTextColorArgb() - { - return $this->textColorArgb; - } -} - -class Google_Service_Books_DownloadAccessRestriction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'downloadAccessList'; - protected $internal_gapi_mappings = array( - ); - protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessListDataType = 'array'; - public $kind; - - - public function setDownloadAccessList($downloadAccessList) - { - $this->downloadAccessList = $downloadAccessList; - } - public function getDownloadAccessList() - { - return $this->downloadAccessList; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_Geolayerdata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $commonType = 'Google_Service_Books_GeolayerdataCommon'; - protected $commonDataType = ''; - protected $geoType = 'Google_Service_Books_GeolayerdataGeo'; - protected $geoDataType = ''; - public $kind; - - - public function setCommon(Google_Service_Books_GeolayerdataCommon $common) - { - $this->common = $common; - } - public function getCommon() - { - return $this->common; - } - public function setGeo(Google_Service_Books_GeolayerdataGeo $geo) - { - $this->geo = $geo; - } - public function getGeo() - { - return $this->geo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_GeolayerdataCommon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_GeolayerdataGeo extends Google_Collection -{ - protected $collection_key = 'boundary'; - protected $internal_gapi_mappings = array( - ); - protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary'; - protected $boundaryDataType = 'array'; - public $cachePolicy; - public $countryCode; - public $latitude; - public $longitude; - public $mapType; - protected $viewportType = 'Google_Service_Books_GeolayerdataGeoViewport'; - protected $viewportDataType = ''; - public $zoom; - - - public function setBoundary($boundary) - { - $this->boundary = $boundary; - } - public function getBoundary() - { - return $this->boundary; - } - public function setCachePolicy($cachePolicy) - { - $this->cachePolicy = $cachePolicy; - } - public function getCachePolicy() - { - return $this->cachePolicy; - } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } - public function setMapType($mapType) - { - $this->mapType = $mapType; - } - public function getMapType() - { - return $this->mapType; - } - public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport) - { - $this->viewport = $viewport; - } - public function getViewport() - { - return $this->viewport; - } - public function setZoom($zoom) - { - $this->zoom = $zoom; - } - public function getZoom() - { - return $this->zoom; - } -} - -class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_GeolayerdataGeoViewport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi'; - protected $hiDataType = ''; - protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo'; - protected $loDataType = ''; - - - public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi) - { - $this->hi = $hi; - } - public function getHi() - { - return $this->hi; - } - public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo) - { - $this->lo = $lo; - } - public function getLo() - { - return $this->lo; - } -} - -class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_GeolayerdataGeoViewportLo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Layersummaries extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Layersummary'; - protected $itemsDataType = 'array'; - public $kind; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Books_Layersummary extends Google_Collection -{ - protected $collection_key = 'annotationTypes'; - protected $internal_gapi_mappings = array( - ); - 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_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_MetadataItems'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_MetadataItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - "downloadUrl" => "download_url", - "encryptedKey" => "encrypted_key", - ); - public $downloadUrl; - public $encryptedKey; - public $language; - public $size; - public $version; - - - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } - public function getDownloadUrl() - { - return $this->downloadUrl; - } - public function setEncryptedKey($encryptedKey) - { - $this->encryptedKey = $encryptedKey; - } - public function getEncryptedKey() - { - return $this->encryptedKey; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Books_Notification extends Google_Model -{ - protected $internal_gapi_mappings = array( - "dontShowNotification" => "dont_show_notification", - "notificationType" => "notification_type", - "pcampaignId" => "pcampaign_id", - "showNotificationSettingsAction" => "show_notification_settings_action", - ); - public $body; - public $dontShowNotification; - public $iconUrl; - public $kind; - public $notificationType; - public $pcampaignId; - public $showNotificationSettingsAction; - public $targetUrl; - public $title; - - - public function setBody($body) - { - $this->body = $body; - } - public function getBody() - { - return $this->body; - } - public function setDontShowNotification($dontShowNotification) - { - $this->dontShowNotification = $dontShowNotification; - } - public function getDontShowNotification() - { - return $this->dontShowNotification; - } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNotificationType($notificationType) - { - $this->notificationType = $notificationType; - } - public function getNotificationType() - { - return $this->notificationType; - } - public function setPcampaignId($pcampaignId) - { - $this->pcampaignId = $pcampaignId; - } - public function getPcampaignId() - { - return $this->pcampaignId; - } - public function setShowNotificationSettingsAction($showNotificationSettingsAction) - { - $this->showNotificationSettingsAction = $showNotificationSettingsAction; - } - public function getShowNotificationSettingsAction() - { - return $this->showNotificationSettingsAction; - } - public function setTargetUrl($targetUrl) - { - $this->targetUrl = $targetUrl; - } - public function getTargetUrl() - { - return $this->targetUrl; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Books_Offers extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_OffersItems'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_OffersItems extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $artUrl; - public $gservicesKey; - public $id; - protected $itemsType = 'Google_Service_Books_OffersItemsItems'; - protected $itemsDataType = 'array'; - - - public function setArtUrl($artUrl) - { - $this->artUrl = $artUrl; - } - public function getArtUrl() - { - return $this->artUrl; - } - public function setGservicesKey($gservicesKey) - { - $this->gservicesKey = $gservicesKey; - } - public function getGservicesKey() - { - return $this->gservicesKey; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } -} - -class Google_Service_Books_OffersItemsItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $author; - public $canonicalVolumeLink; - public $coverUrl; - public $description; - public $title; - public $volumeId; - - - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setCanonicalVolumeLink($canonicalVolumeLink) - { - $this->canonicalVolumeLink = $canonicalVolumeLink; - } - public function getCanonicalVolumeLink() - { - return $this->canonicalVolumeLink; - } - public function setCoverUrl($coverUrl) - { - $this->coverUrl = $coverUrl; - } - public function getCoverUrl() - { - return $this->coverUrl; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_ReadingPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction'; - protected $concurrentAccessDataType = ''; - protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessDataType = ''; - public $kind; - - - public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess) - { - $this->concurrentAccess = $concurrentAccess; - } - public function getConcurrentAccess() - { - return $this->concurrentAccess; - } - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) - { - $this->downloadAccess = $downloadAccess; - } - public function getDownloadAccess() - { - return $this->downloadAccess; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Books_Review extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_Books_ReviewAuthor'; - protected $authorDataType = ''; - public $content; - public $date; - public $fullTextUrl; - public $kind; - public $rating; - protected $sourceType = 'Google_Service_Books_ReviewSource'; - protected $sourceDataType = ''; - public $title; - public $type; - public $volumeId; - - - public function setAuthor(Google_Service_Books_ReviewAuthor $author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setFullTextUrl($fullTextUrl) - { - $this->fullTextUrl = $fullTextUrl; - } - public function getFullTextUrl() - { - return $this->fullTextUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRating($rating) - { - $this->rating = $rating; - } - public function getRating() - { - return $this->rating; - } - public function setSource(Google_Service_Books_ReviewSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_ReviewAuthor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } -} - -class Google_Service_Books_ReviewSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Series extends Google_Collection -{ - protected $collection_key = 'series'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $seriesType = 'Google_Service_Books_SeriesSeries'; - protected $seriesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSeries($series) - { - $this->series = $series; - } - public function getSeries() - { - return $this->series; - } -} - -class Google_Service_Books_SeriesSeries extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bannerImageUrl; - public $imageUrl; - public $seriesId; - public $seriesType; - public $title; - - - public function setBannerImageUrl($bannerImageUrl) - { - $this->bannerImageUrl = $bannerImageUrl; - } - public function getBannerImageUrl() - { - return $this->bannerImageUrl; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setSeriesId($seriesId) - { - $this->seriesId = $seriesId; - } - public function getSeriesId() - { - return $this->seriesId; - } - public function setSeriesType($seriesType) - { - $this->seriesType = $seriesType; - } - public function getSeriesType() - { - return $this->seriesType; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Books_Seriesmembership extends Google_Collection -{ - protected $collection_key = 'member'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $memberType = 'Google_Service_Books_Volume'; - protected $memberDataType = 'array'; - public $nextPageToken; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMember($member) - { - $this->member = $member; - } - public function getMember() - { - return $this->member; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Books_Usersettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $notesExportType = 'Google_Service_Books_UsersettingsNotesExport'; - protected $notesExportDataType = ''; - protected $notificationType = 'Google_Service_Books_UsersettingsNotification'; - protected $notificationDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNotesExport(Google_Service_Books_UsersettingsNotesExport $notesExport) - { - $this->notesExport = $notesExport; - } - public function getNotesExport() - { - return $this->notesExport; - } - public function setNotification(Google_Service_Books_UsersettingsNotification $notification) - { - $this->notification = $notification; - } - public function getNotification() - { - return $this->notification; - } -} - -class Google_Service_Books_UsersettingsNotesExport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $folderName; - public $isEnabled; - - - public function setFolderName($folderName) - { - $this->folderName = $folderName; - } - public function getFolderName() - { - return $this->folderName; - } - public function setIsEnabled($isEnabled) - { - $this->isEnabled = $isEnabled; - } - public function getIsEnabled() - { - return $this->isEnabled; - } -} - -class Google_Service_Books_UsersettingsNotification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $moreFromAuthorsType = 'Google_Service_Books_UsersettingsNotificationMoreFromAuthors'; - protected $moreFromAuthorsDataType = ''; - - - public function setMoreFromAuthors(Google_Service_Books_UsersettingsNotificationMoreFromAuthors $moreFromAuthors) - { - $this->moreFromAuthors = $moreFromAuthors; - } - public function getMoreFromAuthors() - { - return $this->moreFromAuthors; - } -} - -class Google_Service_Books_UsersettingsNotificationMoreFromAuthors extends Google_Model -{ - protected $internal_gapi_mappings = array( - "optedState" => "opted_state", - ); - public $optedState; - - - public function setOptedState($optedState) - { - $this->optedState = $optedState; - } - public function getOptedState() - { - return $this->optedState; - } -} - -class Google_Service_Books_Volume extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo'; - protected $accessInfoDataType = ''; - public $etag; - public $id; - public $kind; - protected $layerInfoType = 'Google_Service_Books_VolumeLayerInfo'; - protected $layerInfoDataType = ''; - protected $recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo'; - protected $recommendedInfoDataType = ''; - protected $saleInfoType = 'Google_Service_Books_VolumeSaleInfo'; - protected $saleInfoDataType = ''; - protected $searchInfoType = 'Google_Service_Books_VolumeSearchInfo'; - protected $searchInfoDataType = ''; - public $selfLink; - protected $userInfoType = 'Google_Service_Books_VolumeUserInfo'; - protected $userInfoDataType = ''; - protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo'; - protected $volumeInfoDataType = ''; - - - public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo) - { - $this->accessInfo = $accessInfo; - } - public function getAccessInfo() - { - return $this->accessInfo; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo) - { - $this->layerInfo = $layerInfo; - } - public function getLayerInfo() - { - return $this->layerInfo; - } - public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo) - { - $this->recommendedInfo = $recommendedInfo; - } - public function getRecommendedInfo() - { - return $this->recommendedInfo; - } - public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo) - { - $this->saleInfo = $saleInfo; - } - public function getSaleInfo() - { - return $this->saleInfo; - } - public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo) - { - $this->searchInfo = $searchInfo; - } - public function getSearchInfo() - { - return $this->searchInfo; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo) - { - $this->userInfo = $userInfo; - } - public function getUserInfo() - { - return $this->userInfo; - } - public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo) - { - $this->volumeInfo = $volumeInfo; - } - public function getVolumeInfo() - { - return $this->volumeInfo; - } -} - -class Google_Service_Books_Volume2 extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Volume'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Books_VolumeAccessInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accessViewStatus; - public $country; - protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessDataType = ''; - public $driveImportedContentLink; - public $embeddable; - protected $epubType = 'Google_Service_Books_VolumeAccessInfoEpub'; - protected $epubDataType = ''; - public $explicitOfflineLicenseManagement; - protected $pdfType = 'Google_Service_Books_VolumeAccessInfoPdf'; - protected $pdfDataType = ''; - public $publicDomain; - public $quoteSharingAllowed; - public $textToSpeechPermission; - public $viewOrderUrl; - public $viewability; - public $webReaderLink; - - - public function setAccessViewStatus($accessViewStatus) - { - $this->accessViewStatus = $accessViewStatus; - } - public function getAccessViewStatus() - { - return $this->accessViewStatus; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) - { - $this->downloadAccess = $downloadAccess; - } - public function getDownloadAccess() - { - return $this->downloadAccess; - } - public function setDriveImportedContentLink($driveImportedContentLink) - { - $this->driveImportedContentLink = $driveImportedContentLink; - } - public function getDriveImportedContentLink() - { - return $this->driveImportedContentLink; - } - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - public function getEmbeddable() - { - return $this->embeddable; - } - public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub) - { - $this->epub = $epub; - } - public function getEpub() - { - return $this->epub; - } - public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManagement) - { - $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement; - } - public function getExplicitOfflineLicenseManagement() - { - return $this->explicitOfflineLicenseManagement; - } - public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf) - { - $this->pdf = $pdf; - } - public function getPdf() - { - return $this->pdf; - } - public function setPublicDomain($publicDomain) - { - $this->publicDomain = $publicDomain; - } - public function getPublicDomain() - { - return $this->publicDomain; - } - public function setQuoteSharingAllowed($quoteSharingAllowed) - { - $this->quoteSharingAllowed = $quoteSharingAllowed; - } - public function getQuoteSharingAllowed() - { - return $this->quoteSharingAllowed; - } - public function setTextToSpeechPermission($textToSpeechPermission) - { - $this->textToSpeechPermission = $textToSpeechPermission; - } - public function getTextToSpeechPermission() - { - return $this->textToSpeechPermission; - } - public function setViewOrderUrl($viewOrderUrl) - { - $this->viewOrderUrl = $viewOrderUrl; - } - public function getViewOrderUrl() - { - return $this->viewOrderUrl; - } - public function setViewability($viewability) - { - $this->viewability = $viewability; - } - public function getViewability() - { - return $this->viewability; - } - public function setWebReaderLink($webReaderLink) - { - $this->webReaderLink = $webReaderLink; - } - public function getWebReaderLink() - { - return $this->webReaderLink; - } -} - -class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'layers'; - protected $internal_gapi_mappings = array( - ); - protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; - protected $layersDataType = 'array'; - - - public function setLayers($layers) - { - $this->layers = $layers; - } - public function getLayers() - { - return $this->layers; - } -} - -class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $explanation; - - - public function setExplanation($explanation) - { - $this->explanation = $explanation; - } - public function getExplanation() - { - return $this->explanation; - } -} - -class Google_Service_Books_VolumeSaleInfo extends Google_Collection -{ - protected $collection_key = 'offers'; - protected $internal_gapi_mappings = array( - ); - public $buyLink; - public $country; - public $isEbook; - protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice'; - protected $listPriceDataType = ''; - protected $offersType = 'Google_Service_Books_VolumeSaleInfoOffers'; - protected $offersDataType = 'array'; - public $onSaleDate; - protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice'; - protected $retailPriceDataType = ''; - public $saleability; - - - public function setBuyLink($buyLink) - { - $this->buyLink = $buyLink; - } - public function getBuyLink() - { - return $this->buyLink; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setIsEbook($isEbook) - { - $this->isEbook = $isEbook; - } - public function getIsEbook() - { - return $this->isEbook; - } - public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice) - { - $this->listPrice = $listPrice; - } - public function getListPrice() - { - return $this->listPrice; - } - public function setOffers($offers) - { - $this->offers = $offers; - } - public function getOffers() - { - return $this->offers; - } - public function setOnSaleDate($onSaleDate) - { - $this->onSaleDate = $onSaleDate; - } - public function getOnSaleDate() - { - return $this->onSaleDate; - } - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice) - { - $this->retailPrice = $retailPrice; - } - public function getRetailPrice() - { - return $this->retailPrice; - } - public function setSaleability($saleability) - { - $this->saleability = $saleability; - } - public function getSaleability() - { - return $this->saleability; - } -} - -class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_VolumeSaleInfoOffers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $finskyOfferType; - protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice'; - protected $listPriceDataType = ''; - protected $rentalDurationType = 'Google_Service_Books_VolumeSaleInfoOffersRentalDuration'; - protected $rentalDurationDataType = ''; - protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice'; - protected $retailPriceDataType = ''; - - - public function setFinskyOfferType($finskyOfferType) - { - $this->finskyOfferType = $finskyOfferType; - } - public function getFinskyOfferType() - { - return $this->finskyOfferType; - } - public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice) - { - $this->listPrice = $listPrice; - } - public function getListPrice() - { - return $this->listPrice; - } - public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration) - { - $this->rentalDuration = $rentalDuration; - } - public function getRentalDuration() - { - return $this->rentalDuration; - } - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice) - { - $this->retailPrice = $retailPrice; - } - public function getRetailPrice() - { - return $this->retailPrice; - } -} - -class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountInMicros; - public $currencyCode; - - - public function setAmountInMicros($amountInMicros) - { - $this->amountInMicros = $amountInMicros; - } - public function getAmountInMicros() - { - return $this->amountInMicros; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } -} - -class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $unit; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } -} - -class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountInMicros; - public $currencyCode; - - - public function setAmountInMicros($amountInMicros) - { - $this->amountInMicros = $amountInMicros; - } - public function getAmountInMicros() - { - return $this->amountInMicros; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } -} - -class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $textSnippet; - - - public function setTextSnippet($textSnippet) - { - $this->textSnippet = $textSnippet; - } - public function getTextSnippet() - { - return $this->textSnippet; - } -} - -class Google_Service_Books_VolumeUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $acquiredTime; - public $acquisitionType; - protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; - protected $copyDataType = ''; - public $entitlementType; - public $isFamilySharedFromUser; - public $isFamilySharedToUser; - public $isFamilySharingAllowed; - public $isInMyBooks; - public $isPreordered; - public $isPurchased; - public $isUploaded; - protected $readingPositionType = 'Google_Service_Books_ReadingPosition'; - protected $readingPositionDataType = ''; - protected $rentalPeriodType = 'Google_Service_Books_VolumeUserInfoRentalPeriod'; - protected $rentalPeriodDataType = ''; - public $rentalState; - protected $reviewType = 'Google_Service_Books_Review'; - protected $reviewDataType = ''; - public $updated; - protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo'; - protected $userUploadedVolumeInfoDataType = ''; - - - public function setAcquiredTime($acquiredTime) - { - $this->acquiredTime = $acquiredTime; - } - public function getAcquiredTime() - { - return $this->acquiredTime; - } - public function setAcquisitionType($acquisitionType) - { - $this->acquisitionType = $acquisitionType; - } - public function getAcquisitionType() - { - return $this->acquisitionType; - } - public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy) - { - $this->copy = $copy; - } - public function getCopy() - { - return $this->copy; - } - public function setEntitlementType($entitlementType) - { - $this->entitlementType = $entitlementType; - } - public function getEntitlementType() - { - return $this->entitlementType; - } - public function setIsFamilySharedFromUser($isFamilySharedFromUser) - { - $this->isFamilySharedFromUser = $isFamilySharedFromUser; - } - public function getIsFamilySharedFromUser() - { - return $this->isFamilySharedFromUser; - } - public function setIsFamilySharedToUser($isFamilySharedToUser) - { - $this->isFamilySharedToUser = $isFamilySharedToUser; - } - public function getIsFamilySharedToUser() - { - return $this->isFamilySharedToUser; - } - public function setIsFamilySharingAllowed($isFamilySharingAllowed) - { - $this->isFamilySharingAllowed = $isFamilySharingAllowed; - } - public function getIsFamilySharingAllowed() - { - return $this->isFamilySharingAllowed; - } - public function setIsInMyBooks($isInMyBooks) - { - $this->isInMyBooks = $isInMyBooks; - } - public function getIsInMyBooks() - { - return $this->isInMyBooks; - } - public function setIsPreordered($isPreordered) - { - $this->isPreordered = $isPreordered; - } - public function getIsPreordered() - { - return $this->isPreordered; - } - public function setIsPurchased($isPurchased) - { - $this->isPurchased = $isPurchased; - } - public function getIsPurchased() - { - return $this->isPurchased; - } - public function setIsUploaded($isUploaded) - { - $this->isUploaded = $isUploaded; - } - public function getIsUploaded() - { - return $this->isUploaded; - } - public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition) - { - $this->readingPosition = $readingPosition; - } - public function getReadingPosition() - { - return $this->readingPosition; - } - public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod) - { - $this->rentalPeriod = $rentalPeriod; - } - public function getRentalPeriod() - { - return $this->rentalPeriod; - } - public function setRentalState($rentalState) - { - $this->rentalState = $rentalState; - } - public function getRentalState() - { - return $this->rentalState; - } - public function setReview(Google_Service_Books_Review $review) - { - $this->review = $review; - } - public function getReview() - { - return $this->review; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo) - { - $this->userUploadedVolumeInfo = $userUploadedVolumeInfo; - } - public function getUserUploadedVolumeInfo() - { - return $this->userUploadedVolumeInfo; - } -} - -class Google_Service_Books_VolumeUserInfoCopy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowedCharacterCount; - public $limitType; - public $remainingCharacterCount; - public $updated; - - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - public function getLimitType() - { - return $this->limitType; - } - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } -} - -class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endUtcSec; - public $startUtcSec; - - - public function setEndUtcSec($endUtcSec) - { - $this->endUtcSec = $endUtcSec; - } - public function getEndUtcSec() - { - return $this->endUtcSec; - } - public function setStartUtcSec($startUtcSec) - { - $this->startUtcSec = $startUtcSec; - } - public function getStartUtcSec() - { - return $this->startUtcSec; - } -} - -class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $processingState; - - - public function setProcessingState($processingState) - { - $this->processingState = $processingState; - } - public function getProcessingState() - { - return $this->processingState; - } -} - -class Google_Service_Books_VolumeVolumeInfo extends Google_Collection -{ - protected $collection_key = 'industryIdentifiers'; - protected $internal_gapi_mappings = array( - ); - public $allowAnonLogging; - public $authors; - public $averageRating; - public $canonicalVolumeLink; - public $categories; - public $contentVersion; - public $description; - protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions'; - protected $dimensionsDataType = ''; - protected $imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks'; - protected $imageLinksDataType = ''; - protected $industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers'; - protected $industryIdentifiersDataType = 'array'; - public $infoLink; - public $language; - public $mainCategory; - public $maturityRating; - public $pageCount; - public $previewLink; - public $printType; - public $printedPageCount; - public $publishedDate; - public $publisher; - public $ratingsCount; - public $readingModes; - public $samplePageCount; - protected $seriesInfoType = 'Google_Service_Books_Volumeseriesinfo'; - protected $seriesInfoDataType = ''; - public $subtitle; - public $title; - - - public function setAllowAnonLogging($allowAnonLogging) - { - $this->allowAnonLogging = $allowAnonLogging; - } - public function getAllowAnonLogging() - { - return $this->allowAnonLogging; - } - 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 setMaturityRating($maturityRating) - { - $this->maturityRating = $maturityRating; - } - public function getMaturityRating() - { - return $this->maturityRating; - } - public function setPageCount($pageCount) - { - $this->pageCount = $pageCount; - } - public function getPageCount() - { - return $this->pageCount; - } - public function setPreviewLink($previewLink) - { - $this->previewLink = $previewLink; - } - public function getPreviewLink() - { - return $this->previewLink; - } - public function setPrintType($printType) - { - $this->printType = $printType; - } - public function getPrintType() - { - return $this->printType; - } - public function setPrintedPageCount($printedPageCount) - { - $this->printedPageCount = $printedPageCount; - } - public function getPrintedPageCount() - { - return $this->printedPageCount; - } - public function setPublishedDate($publishedDate) - { - $this->publishedDate = $publishedDate; - } - public function getPublishedDate() - { - return $this->publishedDate; - } - public function setPublisher($publisher) - { - $this->publisher = $publisher; - } - public function getPublisher() - { - return $this->publisher; - } - public function setRatingsCount($ratingsCount) - { - $this->ratingsCount = $ratingsCount; - } - public function getRatingsCount() - { - return $this->ratingsCount; - } - public function setReadingModes($readingModes) - { - $this->readingModes = $readingModes; - } - public function getReadingModes() - { - return $this->readingModes; - } - public function setSamplePageCount($samplePageCount) - { - $this->samplePageCount = $samplePageCount; - } - public function getSamplePageCount() - { - return $this->samplePageCount; - } - public function setSeriesInfo(Google_Service_Books_Volumeseriesinfo $seriesInfo) - { - $this->seriesInfo = $seriesInfo; - } - public function getSeriesInfo() - { - return $this->seriesInfo; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'pageIds'; - protected $internal_gapi_mappings = array( - ); - public $annotationDataId; - public $annotationDataLink; - public $annotationType; - protected $contentRangesType = 'Google_Service_Books_VolumeannotationContentRanges'; - protected $contentRangesDataType = ''; - public $data; - public $deleted; - public $id; - public $kind; - public $layerId; - public $pageIds; - public $selectedText; - public $selfLink; - public $updated; - public $volumeId; - - - public function setAnnotationDataId($annotationDataId) - { - $this->annotationDataId = $annotationDataId; - } - public function getAnnotationDataId() - { - return $this->annotationDataId; - } - public function setAnnotationDataLink($annotationDataLink) - { - $this->annotationDataLink = $annotationDataLink; - } - public function getAnnotationDataLink() - { - return $this->annotationDataLink; - } - public function setAnnotationType($annotationType) - { - $this->annotationType = $annotationType; - } - public function getAnnotationType() - { - return $this->annotationType; - } - public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges) - { - $this->contentRanges = $contentRanges; - } - public function getContentRanges() - { - return $this->contentRanges; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - public function getLayerId() - { - return $this->layerId; - } - public function setPageIds($pageIds) - { - $this->pageIds = $pageIds; - } - public function getPageIds() - { - return $this->pageIds; - } - public function setSelectedText($selectedText) - { - $this->selectedText = $selectedText; - } - public function getSelectedText() - { - return $this->selectedText; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - public function getVolumeId() - { - return $this->volumeId; - } -} - -class Google_Service_Books_VolumeannotationContentRanges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - public function getCfiRange() - { - return $this->cfiRange; - } - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - public function getContentVersion() - { - return $this->contentVersion; - } - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - public function getGbImageRange() - { - return $this->gbImageRange; - } - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - public function getGbTextRange() - { - return $this->gbTextRange; - } -} - -class Google_Service_Books_Volumeannotations extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Volumeannotation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - public $version; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Books_Volumes extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Books_Volume'; - protected $itemsDataType = 'array'; - public $kind; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Books_Volumeseriesinfo extends Google_Collection -{ - protected $collection_key = 'volumeSeries'; - protected $internal_gapi_mappings = array( - ); - public $bookDisplayNumber; - public $kind; - public $shortSeriesBookTitle; - protected $volumeSeriesType = 'Google_Service_Books_VolumeseriesinfoVolumeSeries'; - protected $volumeSeriesDataType = 'array'; - - - public function setBookDisplayNumber($bookDisplayNumber) - { - $this->bookDisplayNumber = $bookDisplayNumber; - } - public function getBookDisplayNumber() - { - return $this->bookDisplayNumber; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setShortSeriesBookTitle($shortSeriesBookTitle) - { - $this->shortSeriesBookTitle = $shortSeriesBookTitle; - } - public function getShortSeriesBookTitle() - { - return $this->shortSeriesBookTitle; - } - public function setVolumeSeries($volumeSeries) - { - $this->volumeSeries = $volumeSeries; - } - public function getVolumeSeries() - { - return $this->volumeSeries; - } -} - -class Google_Service_Books_VolumeseriesinfoVolumeSeries extends Google_Collection -{ - protected $collection_key = 'issue'; - protected $internal_gapi_mappings = array( - ); - protected $issueType = 'Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue'; - protected $issueDataType = 'array'; - public $orderNumber; - public $seriesBookType; - public $seriesId; - - - public function setIssue($issue) - { - $this->issue = $issue; - } - public function getIssue() - { - return $this->issue; - } - public function setOrderNumber($orderNumber) - { - $this->orderNumber = $orderNumber; - } - public function getOrderNumber() - { - return $this->orderNumber; - } - public function setSeriesBookType($seriesBookType) - { - $this->seriesBookType = $seriesBookType; - } - public function getSeriesBookType() - { - return $this->seriesBookType; - } - public function setSeriesId($seriesId) - { - $this->seriesId = $seriesId; - } - public function getSeriesId() - { - return $this->seriesId; - } -} - -class Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $issueDisplayNumber; - public $issueOrderNumber; - - - public function setIssueDisplayNumber($issueDisplayNumber) - { - $this->issueDisplayNumber = $issueDisplayNumber; - } - public function getIssueDisplayNumber() - { - return $this->issueDisplayNumber; - } - public function setIssueOrderNumber($issueOrderNumber) - { - $this->issueOrderNumber = $issueOrderNumber; - } - public function getIssueOrderNumber() - { - return $this->issueOrderNumber; - } -} diff --git a/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php deleted file mode 100644 index 86e7b43d2..000000000 --- a/src/Google/Service/Calendar.php +++ /dev/null @@ -1,3858 +0,0 @@ - - * 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 -{ - /** Manage your calendars. */ - const CALENDAR = - "https://www.googleapis.com/auth/calendar"; - /** View your calendars. */ - const CALENDAR_READONLY = - "https://www.googleapis.com/auth/calendar.readonly"; - - public $acl; - public $calendarList; - public $calendars; - public $channels; - public $colors; - public $events; - public $freebusy; - public $settings; - - - /** - * Constructs the internal representation of the Calendar service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'calendar/v3/'; - $this->version = 'v3'; - $this->serviceName = 'calendar'; - - $this->acl = new Google_Service_Calendar_Acl_Resource( - $this, - $this->serviceName, - 'acl', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'calendars/{calendarId}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'calendars/{calendarId}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => 'calendars/{calendarId}/acl/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->calendarList = new Google_Service_Calendar_CalendarList_Resource( - $this, - $this->serviceName, - 'calendarList', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/me/calendarList', - 'httpMethod' => 'POST', - 'parameters' => array( - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'users/me/calendarList', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'minAccessRole' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'watch' => array( - 'path' => 'users/me/calendarList/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'minAccessRole' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->calendars = new Google_Service_Calendar_Calendars_Resource( - $this, - $this->serviceName, - 'calendars', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'calendars/{calendarId}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'calendars', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Calendar_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->colors = new Google_Service_Calendar_Colors_Resource( - $this, - $this->serviceName, - 'colors', - array( - 'methods' => array( - 'get' => array( - 'path' => 'colors', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->events = new Google_Service_Calendar_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'import' => array( - 'path' => 'calendars/{calendarId}/events/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'supportsAttachments' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => 'calendars/{calendarId}/events', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'supportsAttachments' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'instances' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'originalStart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'calendars/{calendarId}/events', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'iCalUID' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'privateExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sharedExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showHiddenInvitations' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'singleEvents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'move' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}/move', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destination' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'supportsAttachments' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'quickAdd' => array( - 'path' => 'calendars/{calendarId}/events/quickAdd', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'text' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'supportsAttachments' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'watch' => array( - 'path' => 'calendars/{calendarId}/events/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'iCalUID' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'privateExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sharedExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showHiddenInvitations' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'singleEvents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->freebusy = new Google_Service_Calendar_Freebusy_Resource( - $this, - $this->serviceName, - 'freebusy', - array( - 'methods' => array( - 'query' => array( - 'path' => 'freeBusy', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->settings = new Google_Service_Calendar_Settings_Resource( - $this, - $this->serviceName, - 'settings', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/me/settings/{setting}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'setting' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/me/settings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'users/me/settings/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "acl" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $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. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $ruleId ACL rule identifier. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $ruleId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns an access control rule. (acl.get) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $ruleId ACL rule identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function get($calendarId, $ruleId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_AclRule"); - } - - /** - * Creates an access control rule. (acl.insert) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_AclRule"); - } - - /** - * Returns the rules in the access control list for the calendar. (acl.listAcl) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param bool showDeleted Whether to include deleted ACLs in the result. - * Deleted ACLs are represented by role equal to "none". Deleted ACLs will - * always be included if syncToken is provided. Optional. The default is False. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. All entries deleted since the previous list request will always be in - * the result set and it is not allowed to set showDeleted to False. If the - * syncToken expires, the server will respond with a 410 GONE response code and - * the client should clear its storage and perform a full synchronization - * without any syncToken. Learn more about incremental synchronization. - * Optional. The default is to return all entries. - * @return Google_Service_Calendar_Acl - */ - public function listAcl($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Acl"); - } - - /** - * Updates an access control rule. This method supports patch semantics. - * (acl.patch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $ruleId ACL rule identifier. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_AclRule"); - } - - /** - * Updates an access control rule. (acl.update) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $ruleId ACL rule identifier. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_AclRule"); - } - - /** - * Watch for changes to ACL resources. (acl.watch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param bool showDeleted Whether to include deleted ACLs in the result. - * Deleted ACLs are represented by role equal to "none". Deleted ACLs will - * always be included if syncToken is provided. Optional. The default is False. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. All entries deleted since the previous list request will always be in - * the result set and it is not allowed to set showDeleted to False. If the - * syncToken expires, the server will respond with a 410 GONE response code and - * the client should clear its storage and perform a full synchronization - * without any syncToken. Learn more about incremental synchronization. - * Optional. The default is to return all entries. - * @return Google_Service_Calendar_Channel - */ - public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } -} - -/** - * The "calendarList" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $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. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns an entry on the user's calendar list. (calendarList.get) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function get($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - - /** - * Adds an entry to the user's calendar list. (calendarList.insert) - * - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat Whether to use the foregroundColor and - * backgroundColor fields to write the calendar colors (RGB). If this feature is - * used, the index-based colorId field will be set to the best matching option - * automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - - /** - * Returns entries on the user's calendar list. (calendarList.listCalendarList) - * - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param bool showDeleted Whether to include deleted calendar list entries - * in the result. Optional. The default is False. - * @opt_param bool showHidden Whether to show hidden entries. Optional. The - * default is False. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. If only read-only fields such as calendar properties or ACLs have - * changed, the entry won't be returned. All entries deleted and hidden since - * the previous list request will always be in the result set and it is not - * allowed to set showDeleted neither showHidden to False. To ensure client - * state consistency minAccessRole query parameter cannot be specified together - * with nextSyncToken. If the syncToken expires, the server will respond with a - * 410 GONE response code and the client should clear its storage and perform a - * full synchronization without any syncToken. Learn more about incremental - * synchronization. Optional. The default is to return all entries. - * @return Google_Service_Calendar_CalendarList - */ - public function listCalendarList($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_CalendarList"); - } - - /** - * Updates an entry on the user's calendar list. This method supports patch - * semantics. (calendarList.patch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat Whether to use the foregroundColor and - * backgroundColor fields to write the calendar colors (RGB). If this feature is - * used, the index-based colorId field will be set to the best matching option - * automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - - /** - * Updates an entry on the user's calendar list. (calendarList.update) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat Whether to use the foregroundColor and - * backgroundColor fields to write the calendar colors (RGB). If this feature is - * used, the index-based colorId field will be set to the best matching option - * automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - - /** - * Watch for changes to CalendarList resources. (calendarList.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string minAccessRole The minimum access role for the user in the - * returned entries. Optional. The default is no restriction. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param bool showDeleted Whether to include deleted calendar list entries - * in the result. Optional. The default is False. - * @opt_param bool showHidden Whether to show hidden entries. Optional. The - * default is False. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. If only read-only fields such as calendar properties or ACLs have - * changed, the entry won't be returned. All entries deleted and hidden since - * the previous list request will always be in the result set and it is not - * allowed to set showDeleted neither showHidden to False. To ensure client - * state consistency minAccessRole query parameter cannot be specified together - * with nextSyncToken. If the syncToken expires, the server will respond with a - * 410 GONE response code and the client should clear its storage and perform a - * full synchronization without any syncToken. Learn more about incremental - * synchronization. Optional. The default is to return all entries. - * @return Google_Service_Calendar_Channel - */ - public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } -} - -/** - * The "calendars" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $calendars = $calendarService->calendars; - * - */ -class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource -{ - - /** - * Clears a primary calendar. This operation deletes all events associated with - * the primary calendar of an account. (calendars.clear) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - */ - public function clear($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('clear', array($params)); - } - - /** - * Deletes a secondary calendar. Use calendars.clear for clearing all events on - * primary calendars. (calendars.delete) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns metadata for a calendar. (calendars.get) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function get($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Calendar"); - } - - /** - * Creates a secondary calendar. (calendars.insert) - * - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_Calendar"); - } - - /** - * Updates metadata for a calendar. This method supports patch semantics. - * (calendars.patch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_Calendar"); - } - - /** - * Updates metadata for a calendar. (calendars.update) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_Calendar"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $channels = $calendarService->channels; - * - */ -class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource -{ - - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } -} - -/** - * The "colors" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $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); - return $this->call('get', array($params), "Google_Service_Calendar_Colors"); - } -} - -/** - * The "events" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $events = $calendarService->events; - * - */ -class Google_Service_Calendar_Events_Resource extends Google_Service_Resource -{ - - /** - * Deletes an event. (events.delete) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $eventId Event identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications Whether to send notifications about the - * deletion of the event. Optional. The default is False. - */ - public function delete($calendarId, $eventId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns an event. (events.get) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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); - return $this->call('get', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Imports an event. This operation is used to add a private copy of an existing - * event to a calendar. (events.import) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_Event $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. Optional. The default is False. - * @return Google_Service_Calendar_Event - */ - public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Creates an event. (events.insert) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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. - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. 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); - return $this->call('insert', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Returns instances of the specified recurring event. (events.instances) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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. By default the value is 250 events. The page size can never be larger - * than 2500 events. 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. Must be - * an RFC3339 timestamp with mandatory time zone offset. - * @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. Must be an - * RFC3339 timestamp with mandatory time zone offset. - * @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); - return $this->call('instances', array($params), "Google_Service_Calendar_Events"); - } - - /** - * Returns events on the specified calendar. (events.listEvents) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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 event ID in the iCalendar format 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. By default the value is 250 events. The page size can never be larger - * than 2500 events. 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 privateExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only private properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param string q Free text search terms to find events that match these - * terms in any field, except for extended properties. Optional. - * @opt_param string sharedExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only shared properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param 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 syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. All events deleted since the previous list request will always be in - * the result set and it is not allowed to set showDeleted to False. There are - * several query parameters that cannot be specified together with nextSyncToken - * to ensure consistency of the client state. - * - * These are: - iCalUID - orderBy - privateExtendedProperty - q - - * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken - * expires, the server will respond with a 410 GONE response code and the client - * should clear its storage and perform a full synchronization without any - * syncToken. Learn more about incremental synchronization. Optional. The - * default is to return all entries. - * @opt_param string timeMax Upper bound (exclusive) for an event's start time - * to filter by. Optional. The default is not to filter by start time. Must be - * an RFC3339 timestamp with mandatory time zone offset, e.g., - * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided - * but will be ignored. - * @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. Must be an - * RFC3339 timestamp with mandatory time zone offset, e.g., - * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided - * but will be ignored. - * @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 RFC3339 timestamp) to filter by. When specified, entries deleted - * since this time will always be included regardless of showDeleted. Optional. - * The default is not to filter by last modification time. - * @return Google_Service_Calendar_Events - */ - public function listEvents($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Events"); - } - - /** - * Moves an event to another calendar, i.e. changes an event's organizer. - * (events.move) - * - * @param string $calendarId Calendar identifier of the source calendar where - * the event currently is on. - * @param string $eventId Event identifier. - * @param string $destination Calendar identifier of the target calendar where - * the event is to be moved to. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications Whether to send notifications about the - * change of the event's organizer. Optional. The default is False. - * @return Google_Service_Calendar_Event - */ - public function move($calendarId, $eventId, $destination, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination); - $params = array_merge($params, $optParams); - return $this->call('move', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Updates an event. This method supports patch semantics. (events.patch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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. - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. 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); - return $this->call('patch', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Creates an event based on a simple text string. (events.quickAdd) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param string $text The text describing the event to be created. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications Whether to send notifications about the - * creation of the event. Optional. The default is False. - * @return Google_Service_Calendar_Event - */ - public function quickAdd($calendarId, $text, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'text' => $text); - $params = array_merge($params, $optParams); - return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Updates an event. (events.update) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @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. - * @opt_param bool supportsAttachments Whether API client performing operation - * supports event attachments. 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); - return $this->call('update', array($params), "Google_Service_Calendar_Event"); - } - - /** - * Watch for changes to Events resources. (events.watch) - * - * @param string $calendarId Calendar identifier. To retrieve calendar IDs call - * the calendarList.list method. If you want to access the primary calendar of - * the currently logged in user, use the "primary" keyword. - * @param Google_Channel $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 string iCalUID Specifies event ID in the iCalendar format 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. By default the value is 250 events. The page size can never be larger - * than 2500 events. 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 privateExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only private properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param string q Free text search terms to find events that match these - * terms in any field, except for extended properties. Optional. - * @opt_param string sharedExtendedProperty Extended properties constraint - * specified as propertyName=value. Matches only shared properties. This - * parameter might be repeated multiple times to return events that match all - * given constraints. - * @opt_param 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 syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. All events deleted since the previous list request will always be in - * the result set and it is not allowed to set showDeleted to False. There are - * several query parameters that cannot be specified together with nextSyncToken - * to ensure consistency of the client state. - * - * These are: - iCalUID - orderBy - privateExtendedProperty - q - - * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken - * expires, the server will respond with a 410 GONE response code and the client - * should clear its storage and perform a full synchronization without any - * syncToken. Learn more about incremental synchronization. Optional. The - * default is to return all entries. - * @opt_param string timeMax Upper bound (exclusive) for an event's start time - * to filter by. Optional. The default is not to filter by start time. Must be - * an RFC3339 timestamp with mandatory time zone offset, e.g., - * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided - * but will be ignored. - * @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. Must be an - * RFC3339 timestamp with mandatory time zone offset, e.g., - * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided - * but will be ignored. - * @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 RFC3339 timestamp) to filter by. When specified, entries deleted - * since this time will always be included regardless of showDeleted. Optional. - * The default is not to filter by last modification time. - * @return Google_Service_Calendar_Channel - */ - public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } -} - -/** - * The "freebusy" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $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); - return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse"); - } -} - -/** - * The "settings" collection of methods. - * Typical usage is: - * - * $calendarService = new Google_Service_Calendar(...); - * $settings = $calendarService->settings; - * - */ -class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource -{ - - /** - * Returns a single user setting. (settings.get) - * - * @param string $setting The id of the user setting. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Setting - */ - public function get($setting, $optParams = array()) - { - $params = array('setting' => $setting); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Setting"); - } - - /** - * Returns all user settings for the authenticated user. (settings.listSettings) - * - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full - * synchronization without any syncToken. Learn more about incremental - * synchronization. Optional. The default is to return all entries. - * @return Google_Service_Calendar_Settings - */ - public function listSettings($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Settings"); - } - - /** - * Watch for changes to Settings resources. (settings.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of entries returned on one result - * page. By default the value is 100 entries. The page size can never be larger - * than 250 entries. Optional. - * @opt_param string pageToken Token specifying which result page to return. - * Optional. - * @opt_param string syncToken Token obtained from the nextSyncToken field - * returned on the last page of results from the previous list request. It makes - * the result of this list request contain only entries that have changed since - * then. If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full - * synchronization without any syncToken. Learn more about incremental - * synchronization. Optional. The default is to return all entries. - * @return Google_Service_Calendar_Channel - */ - public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } -} - - - - -class Google_Service_Calendar_Acl extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Calendar_AclRule'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; - - - 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 setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } -} - -class Google_Service_Calendar_AclRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - public $role; - protected $scopeType = 'Google_Service_Calendar_AclRuleScope'; - protected $scopeDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Calendar_CalendarListEntry'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } -} - -class Google_Service_Calendar_CalendarListEntry extends Google_Collection -{ - protected $collection_key = 'defaultReminders'; - protected $internal_gapi_mappings = array( - ); - public $accessRole; - public $backgroundColor; - public $colorId; - protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; - protected $defaultRemindersDataType = 'array'; - public $deleted; - public $description; - public $etag; - public $foregroundColor; - public $hidden; - public $id; - public $kind; - public $location; - protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings'; - protected $notificationSettingsDataType = ''; - public $primary; - public $selected; - public $summary; - public $summaryOverride; - public $timeZone; - - - public function setAccessRole($accessRole) - { - $this->accessRole = $accessRole; - } - public function 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 setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - 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 setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings) - { - $this->notificationSettings = $notificationSettings; - } - public function getNotificationSettings() - { - return $this->notificationSettings; - } - 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_CalendarListEntryNotificationSettings extends Google_Collection -{ - protected $collection_key = 'notifications'; - protected $internal_gapi_mappings = array( - ); - protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; - protected $notificationsDataType = 'array'; - - - public function setNotifications($notifications) - { - $this->notifications = $notifications; - } - public function getNotifications() - { - return $this->notifications; - } -} - -class Google_Service_Calendar_CalendarNotification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $method; - public $type; - - - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Calendar_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function 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 setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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_Calendar_ColorDefinition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $calendarType = 'Google_Service_Calendar_ColorDefinition'; - protected $calendarDataType = 'map'; - protected $eventType = 'Google_Service_Calendar_ColorDefinition'; - protected $eventDataType = 'map'; - public $kind; - public $updated; - - - public function setCalendar($calendar) - { - $this->calendar = $calendar; - } - public function getCalendar() - { - return $this->calendar; - } - public function setEvent($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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'recurrence'; - protected $internal_gapi_mappings = array( - ); - public $anyoneCanAddSelf; - protected $attachmentsType = 'Google_Service_Calendar_EventAttachment'; - protected $attachmentsDataType = 'array'; - protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; - protected $attendeesDataType = 'array'; - public $attendeesOmitted; - public $colorId; - public $created; - protected $creatorType = 'Google_Service_Calendar_EventCreator'; - protected $creatorDataType = ''; - public $description; - protected $endType = 'Google_Service_Calendar_EventDateTime'; - protected $endDataType = ''; - public $endTimeUnspecified; - public $etag; - protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties'; - protected $extendedPropertiesDataType = ''; - protected $gadgetType = 'Google_Service_Calendar_EventGadget'; - protected $gadgetDataType = ''; - public $guestsCanInviteOthers; - public $guestsCanModify; - public $guestsCanSeeOtherGuests; - public $hangoutLink; - public $htmlLink; - public $iCalUID; - public $id; - public $kind; - public $location; - public $locked; - protected $organizerType = 'Google_Service_Calendar_EventOrganizer'; - protected $organizerDataType = ''; - protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime'; - protected $originalStartTimeDataType = ''; - public $privateCopy; - public $recurrence; - public $recurringEventId; - protected $remindersType = 'Google_Service_Calendar_EventReminders'; - protected $remindersDataType = ''; - public $sequence; - protected $sourceType = 'Google_Service_Calendar_EventSource'; - protected $sourceDataType = ''; - protected $startType = 'Google_Service_Calendar_EventDateTime'; - protected $startDataType = ''; - public $status; - public $summary; - public $transparency; - public $updated; - public $visibility; - - - public function setAnyoneCanAddSelf($anyoneCanAddSelf) - { - $this->anyoneCanAddSelf = $anyoneCanAddSelf; - } - public function getAnyoneCanAddSelf() - { - return $this->anyoneCanAddSelf; - } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function getAttachments() - { - return $this->attachments; - } - 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_EventAttachment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fileId; - public $fileUrl; - public $iconLink; - public $mimeType; - public $title; - - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - public function getFileId() - { - return $this->fileId; - } - public function setFileUrl($fileUrl) - { - $this->fileUrl = $fileUrl; - } - public function getFileUrl() - { - return $this->fileUrl; - } - public function setIconLink($iconLink) - { - $this->iconLink = $iconLink; - } - public function getIconLink() - { - return $this->iconLink; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Calendar_EventAttendee extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'overrides'; - protected $internal_gapi_mappings = array( - ); - protected $overridesType = 'Google_Service_Calendar_EventReminder'; - protected $overridesDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $accessRole; - protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; - protected $defaultRemindersDataType = 'array'; - public $description; - public $etag; - protected $itemsType = 'Google_Service_Calendar_Event'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; - public $summary; - public $timeZone; - public $updated; - - - public function setAccessRole($accessRole) - { - $this->accessRole = $accessRole; - } - public function 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 setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } - 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 $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $busyType = 'Google_Service_Calendar_TimePeriod'; - protected $busyDataType = 'array'; - protected $errorsType = 'Google_Service_Calendar_Error'; - protected $errorsDataType = 'array'; - - - public function setBusy($busy) - { - $this->busy = $busy; - } - public function 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 -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $calendars; - protected $errorsType = 'Google_Service_Calendar_Error'; - protected $errorsDataType = 'array'; - - - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $calendarExpansionMax; - public $groupExpansionMax; - protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem'; - protected $itemsDataType = 'array'; - public $timeMax; - public $timeMin; - public $timeZone; - - - public function setCalendarExpansionMax($calendarExpansionMax) - { - $this->calendarExpansionMax = $calendarExpansionMax; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Calendar_FreeBusyResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar'; - protected $calendarsDataType = 'map'; - protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup'; - protected $groupsDataType = 'map'; - public $kind; - public $timeMax; - public $timeMin; - - - public function setCalendars($calendars) - { - $this->calendars = $calendars; - } - public function getCalendars() - { - return $this->calendars; - } - public function setGroups($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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Calendar_Setting'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } -} - -class Google_Service_Calendar_TimePeriod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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/CivicInfo.php b/src/Google/Service/CivicInfo.php deleted file mode 100644 index 7f2817a81..000000000 --- a/src/Google/Service/CivicInfo.php +++ /dev/null @@ -1,1642 +0,0 @@ - - * An API for accessing civic information.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_CivicInfo extends Google_Service -{ - - - public $divisions; - public $elections; - public $representatives; - - - /** - * Constructs the internal representation of the CivicInfo service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'civicinfo/v2/'; - $this->version = 'v2'; - $this->serviceName = 'civicinfo'; - - $this->divisions = new Google_Service_CivicInfo_Divisions_Resource( - $this, - $this->serviceName, - 'divisions', - array( - 'methods' => array( - 'search' => array( - 'path' => 'divisions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->elections = new Google_Service_CivicInfo_Elections_Resource( - $this, - $this->serviceName, - 'elections', - array( - 'methods' => array( - 'electionQuery' => array( - 'path' => 'elections', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'voterInfoQuery' => array( - 'path' => 'voterinfo', - 'httpMethod' => 'GET', - 'parameters' => array( - 'address' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'electionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'officialOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->representatives = new Google_Service_CivicInfo_Representatives_Resource( - $this, - $this->serviceName, - 'representatives', - array( - 'methods' => array( - 'representativeInfoByAddress' => array( - 'path' => 'representatives', - 'httpMethod' => 'GET', - 'parameters' => array( - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeOffices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'levels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'roles' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'representativeInfoByDivision' => array( - 'path' => 'representatives/{ocdId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ocdId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'levels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'recursive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'roles' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "divisions" collection of methods. - * Typical usage is: - * - * $civicinfoService = new Google_Service_CivicInfo(...); - * $divisions = $civicinfoService->divisions; - * - */ -class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resource -{ - - /** - * Searches for political divisions by their natural name or OCD ID. - * (divisions.search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string query The search query. Queries can cover any parts of a - * OCD ID or a human readable division name. All words given in the query are - * treated as required patterns. In addition to that, most query operators of - * the Apache Lucene library are supported. See - * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html - * @return Google_Service_CivicInfo_DivisionSearchResponse - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse"); - } -} - -/** - * The "elections" collection of methods. - * Typical usage is: - * - * $civicinfoService = new Google_Service_CivicInfo(...); - * $elections = $civicinfoService->elections; - * - */ -class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource -{ - - /** - * List of available elections to query. (elections.electionQuery) - * - * @param array $optParams Optional parameters. - * @return Google_Service_CivicInfo_ElectionsQueryResponse - */ - public function electionQuery($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse"); - } - - /** - * Looks up information relevant to a voter based on the voter's registered - * address. (elections.voterInfoQuery) - * - * @param string $address The registered address of the voter to look up. - * @param array $optParams Optional parameters. - * - * @opt_param string electionId The unique ID of the election to look up. A list - * of election IDs can be obtained at - * https://www.googleapis.com/civicinfo/{version}/elections - * @opt_param bool officialOnly If set to true, only data from official state - * sources will be returned. - * @return Google_Service_CivicInfo_VoterInfoResponse - */ - public function voterInfoQuery($address, $optParams = array()) - { - $params = array('address' => $address); - $params = array_merge($params, $optParams); - return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse"); - } -} - -/** - * The "representatives" collection of methods. - * Typical usage is: - * - * $civicinfoService = new Google_Service_CivicInfo(...); - * $representatives = $civicinfoService->representatives; - * - */ -class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource -{ - - /** - * Looks up political geography and representative information for a single - * address. (representatives.representativeInfoByAddress) - * - * @param array $optParams Optional parameters. - * - * @opt_param string address The address to look up. May only be specified if - * the field ocdId is not given in the URL. - * @opt_param bool includeOffices Whether to return information about offices - * and officials. If false, only the top-level district information will be - * returned. - * @opt_param string levels A list of office levels to filter by. Only offices - * that serve at least one of these levels will be returned. Divisions that - * don't contain a matching office will not be returned. - * @opt_param string roles A list of office roles to filter by. Only offices - * fulfilling one of these roles will be returned. Divisions that don't contain - * a matching office will not be returned. - * @return Google_Service_CivicInfo_RepresentativeInfoResponse - */ - public function representativeInfoByAddress($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('representativeInfoByAddress', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); - } - - /** - * Looks up representative information for a single geographic division. - * (representatives.representativeInfoByDivision) - * - * @param string $ocdId The Open Civic Data division identifier of the division - * to look up. - * @param array $optParams Optional parameters. - * - * @opt_param string levels A list of office levels to filter by. Only offices - * that serve at least one of these levels will be returned. Divisions that - * don't contain a matching office will not be returned. - * @opt_param bool recursive If true, information about all divisions contained - * in the division requested will be included as well. For example, if querying - * ocd-division/country:us/district:dc, this would also return all DC's wards - * and ANCs. - * @opt_param string roles A list of office roles to filter by. Only offices - * fulfilling one of these roles will be returned. Divisions that don't contain - * a matching office will not be returned. - * @return Google_Service_CivicInfo_RepresentativeInfoData - */ - public function representativeInfoByDivision($ocdId, $optParams = array()) - { - $params = array('ocdId' => $ocdId); - $params = array_merge($params, $optParams); - return $this->call('representativeInfoByDivision', array($params), "Google_Service_CivicInfo_RepresentativeInfoData"); - } -} - - - - -class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - "localJurisdiction" => "local_jurisdiction", - ); - protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody'; - protected $electionAdministrationBodyDataType = ''; - public $id; - protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion'; - protected $localJurisdictionDataType = ''; - public $name; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - - - public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody) - { - $this->electionAdministrationBody = $electionAdministrationBody; - } - public function getElectionAdministrationBody() - { - return $this->electionAdministrationBody; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction) - { - $this->localJurisdiction = $localJurisdiction; - } - public function getLocalJurisdiction() - { - return $this->localJurisdiction; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } -} - -class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection -{ - protected $collection_key = 'voter_services'; - protected $internal_gapi_mappings = array( - "voterServices" => "voter_services", - ); - public $absenteeVotingInfoUrl; - public $ballotInfoUrl; - protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $correspondenceAddressDataType = ''; - public $electionInfoUrl; - protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial'; - protected $electionOfficialsDataType = 'array'; - public $electionRegistrationConfirmationUrl; - public $electionRegistrationUrl; - public $electionRulesUrl; - public $hoursOfOperation; - public $name; - protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $physicalAddressDataType = ''; - public $voterServices; - public $votingLocationFinderUrl; - - - public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl) - { - $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl; - } - public function getAbsenteeVotingInfoUrl() - { - return $this->absenteeVotingInfoUrl; - } - public function setBallotInfoUrl($ballotInfoUrl) - { - $this->ballotInfoUrl = $ballotInfoUrl; - } - public function getBallotInfoUrl() - { - return $this->ballotInfoUrl; - } - public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress) - { - $this->correspondenceAddress = $correspondenceAddress; - } - public function getCorrespondenceAddress() - { - return $this->correspondenceAddress; - } - public function setElectionInfoUrl($electionInfoUrl) - { - $this->electionInfoUrl = $electionInfoUrl; - } - public function getElectionInfoUrl() - { - return $this->electionInfoUrl; - } - public function setElectionOfficials($electionOfficials) - { - $this->electionOfficials = $electionOfficials; - } - public function getElectionOfficials() - { - return $this->electionOfficials; - } - public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl) - { - $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; - } - public function getElectionRegistrationConfirmationUrl() - { - return $this->electionRegistrationConfirmationUrl; - } - public function setElectionRegistrationUrl($electionRegistrationUrl) - { - $this->electionRegistrationUrl = $electionRegistrationUrl; - } - public function getElectionRegistrationUrl() - { - return $this->electionRegistrationUrl; - } - public function setElectionRulesUrl($electionRulesUrl) - { - $this->electionRulesUrl = $electionRulesUrl; - } - public function getElectionRulesUrl() - { - return $this->electionRulesUrl; - } - public function setHoursOfOperation($hoursOfOperation) - { - $this->hoursOfOperation = $hoursOfOperation; - } - public function getHoursOfOperation() - { - return $this->hoursOfOperation; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress) - { - $this->physicalAddress = $physicalAddress; - } - public function getPhysicalAddress() - { - return $this->physicalAddress; - } - public function setVoterServices($voterServices) - { - $this->voterServices = $voterServices; - } - public function getVoterServices() - { - return $this->voterServices; - } - public function setVotingLocationFinderUrl($votingLocationFinderUrl) - { - $this->votingLocationFinderUrl = $votingLocationFinderUrl; - } - public function getVotingLocationFinderUrl() - { - return $this->votingLocationFinderUrl; - } -} - -class Google_Service_CivicInfo_Candidate extends Google_Collection -{ - protected $collection_key = 'channels'; - protected $internal_gapi_mappings = array( - ); - public $candidateUrl; - protected $channelsType = 'Google_Service_CivicInfo_Channel'; - protected $channelsDataType = 'array'; - public $email; - public $name; - public $orderOnBallot; - public $party; - public $phone; - public $photoUrl; - - - public function setCandidateUrl($candidateUrl) - { - $this->candidateUrl = $candidateUrl; - } - public function getCandidateUrl() - { - return $this->candidateUrl; - } - public function setChannels($channels) - { - $this->channels = $channels; - } - public function getChannels() - { - return $this->channels; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOrderOnBallot($orderOnBallot) - { - $this->orderOnBallot = $orderOnBallot; - } - public function getOrderOnBallot() - { - return $this->orderOnBallot; - } - public function setParty($party) - { - $this->party = $party; - } - public function getParty() - { - return $this->party; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } -} - -class Google_Service_CivicInfo_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CivicInfo_Contest extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - public $ballotPlacement; - protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; - protected $candidatesDataType = 'array'; - protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict'; - protected $districtDataType = ''; - public $electorateSpecifications; - public $id; - public $level; - public $numberElected; - public $numberVotingFor; - public $office; - public $primaryParty; - public $referendumBallotResponses; - public $referendumBrief; - public $referendumConStatement; - public $referendumEffectOfAbstain; - public $referendumPassageThreshold; - public $referendumProStatement; - public $referendumSubtitle; - public $referendumText; - public $referendumTitle; - public $referendumUrl; - public $roles; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - public $special; - public $type; - - - public function setBallotPlacement($ballotPlacement) - { - $this->ballotPlacement = $ballotPlacement; - } - public function getBallotPlacement() - { - return $this->ballotPlacement; - } - public function setCandidates($candidates) - { - $this->candidates = $candidates; - } - public function getCandidates() - { - return $this->candidates; - } - public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district) - { - $this->district = $district; - } - public function getDistrict() - { - return $this->district; - } - public function setElectorateSpecifications($electorateSpecifications) - { - $this->electorateSpecifications = $electorateSpecifications; - } - public function getElectorateSpecifications() - { - return $this->electorateSpecifications; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setNumberElected($numberElected) - { - $this->numberElected = $numberElected; - } - public function getNumberElected() - { - return $this->numberElected; - } - public function setNumberVotingFor($numberVotingFor) - { - $this->numberVotingFor = $numberVotingFor; - } - public function getNumberVotingFor() - { - return $this->numberVotingFor; - } - public function setOffice($office) - { - $this->office = $office; - } - public function getOffice() - { - return $this->office; - } - public function setPrimaryParty($primaryParty) - { - $this->primaryParty = $primaryParty; - } - public function getPrimaryParty() - { - return $this->primaryParty; - } - public function setReferendumBallotResponses($referendumBallotResponses) - { - $this->referendumBallotResponses = $referendumBallotResponses; - } - public function getReferendumBallotResponses() - { - return $this->referendumBallotResponses; - } - public function setReferendumBrief($referendumBrief) - { - $this->referendumBrief = $referendumBrief; - } - public function getReferendumBrief() - { - return $this->referendumBrief; - } - public function setReferendumConStatement($referendumConStatement) - { - $this->referendumConStatement = $referendumConStatement; - } - public function getReferendumConStatement() - { - return $this->referendumConStatement; - } - public function setReferendumEffectOfAbstain($referendumEffectOfAbstain) - { - $this->referendumEffectOfAbstain = $referendumEffectOfAbstain; - } - public function getReferendumEffectOfAbstain() - { - return $this->referendumEffectOfAbstain; - } - public function setReferendumPassageThreshold($referendumPassageThreshold) - { - $this->referendumPassageThreshold = $referendumPassageThreshold; - } - public function getReferendumPassageThreshold() - { - return $this->referendumPassageThreshold; - } - public function setReferendumProStatement($referendumProStatement) - { - $this->referendumProStatement = $referendumProStatement; - } - public function getReferendumProStatement() - { - return $this->referendumProStatement; - } - public function setReferendumSubtitle($referendumSubtitle) - { - $this->referendumSubtitle = $referendumSubtitle; - } - public function getReferendumSubtitle() - { - return $this->referendumSubtitle; - } - public function setReferendumText($referendumText) - { - $this->referendumText = $referendumText; - } - public function getReferendumText() - { - return $this->referendumText; - } - public function setReferendumTitle($referendumTitle) - { - $this->referendumTitle = $referendumTitle; - } - public function getReferendumTitle() - { - return $this->referendumTitle; - } - public function setReferendumUrl($referendumUrl) - { - $this->referendumUrl = $referendumUrl; - } - public function getReferendumUrl() - { - return $this->referendumUrl; - } - public function setRoles($roles) - { - $this->roles = $roles; - } - public function getRoles() - { - return $this->roles; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } - public function setSpecial($special) - { - $this->special = $special; - } - public function getSpecial() - { - return $this->special; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; - protected $resultsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} - -class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection -{ - protected $collection_key = 'aliases'; - protected $internal_gapi_mappings = array( - ); - public $aliases; - public $name; - public $ocdId; - - - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() - { - return $this->aliases; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOcdId($ocdId) - { - $this->ocdId = $ocdId; - } - public function getOcdId() - { - return $this->ocdId; - } -} - -class Google_Service_CivicInfo_Election extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $electionDay; - public $id; - public $name; - public $ocdDivisionId; - - - public function setElectionDay($electionDay) - { - $this->electionDay = $electionDay; - } - public function getElectionDay() - { - return $this->electionDay; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOcdDivisionId($ocdDivisionId) - { - $this->ocdDivisionId = $ocdDivisionId; - } - public function getOcdDivisionId() - { - return $this->ocdDivisionId; - } -} - -class Google_Service_CivicInfo_ElectionOfficial extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $emailAddress; - public $faxNumber; - public $name; - public $officePhoneNumber; - public $title; - - - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setFaxNumber($faxNumber) - { - $this->faxNumber = $faxNumber; - } - public function getFaxNumber() - { - return $this->faxNumber; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOfficePhoneNumber($officePhoneNumber) - { - $this->officePhoneNumber = $officePhoneNumber; - } - public function getOfficePhoneNumber() - { - return $this->officePhoneNumber; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection -{ - protected $collection_key = 'elections'; - protected $internal_gapi_mappings = array( - ); - protected $electionsType = 'Google_Service_CivicInfo_Election'; - protected $electionsDataType = 'array'; - public $kind; - - - public function setElections($elections) - { - $this->elections = $elections; - } - public function getElections() - { - return $this->elections; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - public $scope; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScope($scope) - { - $this->scope = $scope; - } - public function getScope() - { - return $this->scope; - } -} - -class Google_Service_CivicInfo_GeographicDivision extends Google_Collection -{ - protected $collection_key = 'officeIndices'; - protected $internal_gapi_mappings = array( - ); - public $alsoKnownAs; - public $name; - public $officeIndices; - - - public function setAlsoKnownAs($alsoKnownAs) - { - $this->alsoKnownAs = $alsoKnownAs; - } - public function getAlsoKnownAs() - { - return $this->alsoKnownAs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOfficeIndices($officeIndices) - { - $this->officeIndices = $officeIndices; - } - public function getOfficeIndices() - { - return $this->officeIndices; - } -} - -class Google_Service_CivicInfo_Office extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - public $divisionId; - public $levels; - public $name; - public $officialIndices; - public $roles; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - - - public function setDivisionId($divisionId) - { - $this->divisionId = $divisionId; - } - public function getDivisionId() - { - return $this->divisionId; - } - public function setLevels($levels) - { - $this->levels = $levels; - } - public function getLevels() - { - return $this->levels; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOfficialIndices($officialIndices) - { - $this->officialIndices = $officialIndices; - } - public function getOfficialIndices() - { - return $this->officialIndices; - } - public function setRoles($roles) - { - $this->roles = $roles; - } - public function getRoles() - { - return $this->roles; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } -} - -class Google_Service_CivicInfo_Official extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $addressDataType = 'array'; - protected $channelsType = 'Google_Service_CivicInfo_Channel'; - protected $channelsDataType = 'array'; - public $emails; - public $name; - public $party; - public $phones; - public $photoUrl; - public $urls; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setChannels($channels) - { - $this->channels = $channels; - } - public function getChannels() - { - return $this->channels; - } - public function setEmails($emails) - { - $this->emails = $emails; - } - public function getEmails() - { - return $this->emails; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParty($party) - { - $this->party = $party; - } - public function getParty() - { - return $this->party; - } - public function setPhones($phones) - { - $this->phones = $phones; - } - public function getPhones() - { - return $this->phones; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setUrls($urls) - { - $this->urls = $urls; - } - public function getUrls() - { - return $this->urls; - } -} - -class Google_Service_CivicInfo_PollingLocation extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $addressDataType = ''; - public $endDate; - public $id; - public $name; - public $notes; - public $pollingHours; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - public $startDate; - public $voterServices; - - - public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPollingHours($pollingHours) - { - $this->pollingHours = $pollingHours; - } - public function getPollingHours() - { - return $this->pollingHours; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setVoterServices($voterServices) - { - $this->voterServices = $voterServices; - } - public function getVoterServices() - { - return $this->voterServices; - } -} - -class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection -{ - protected $collection_key = 'officials'; - protected $internal_gapi_mappings = array( - ); - protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; - protected $divisionsDataType = 'map'; - protected $officesType = 'Google_Service_CivicInfo_Office'; - protected $officesDataType = 'array'; - protected $officialsType = 'Google_Service_CivicInfo_Official'; - protected $officialsDataType = 'array'; - - - public function setDivisions($divisions) - { - $this->divisions = $divisions; - } - public function getDivisions() - { - return $this->divisions; - } - public function setOffices($offices) - { - $this->offices = $offices; - } - public function getOffices() - { - return $this->offices; - } - public function setOfficials($officials) - { - $this->officials = $officials; - } - public function getOfficials() - { - return $this->officials; - } -} - -class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection -{ - protected $collection_key = 'officials'; - protected $internal_gapi_mappings = array( - ); - protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; - protected $divisionsDataType = 'map'; - public $kind; - protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $normalizedInputDataType = ''; - protected $officesType = 'Google_Service_CivicInfo_Office'; - protected $officesDataType = 'array'; - protected $officialsType = 'Google_Service_CivicInfo_Official'; - protected $officialsDataType = 'array'; - - - public function setDivisions($divisions) - { - $this->divisions = $divisions; - } - public function getDivisions() - { - return $this->divisions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) - { - $this->normalizedInput = $normalizedInput; - } - public function getNormalizedInput() - { - return $this->normalizedInput; - } - public function setOffices($offices) - { - $this->offices = $offices; - } - public function getOffices() - { - return $this->offices; - } - public function setOfficials($officials) - { - $this->officials = $officials; - } - public function getOfficials() - { - return $this->officials; - } -} - -class Google_Service_CivicInfo_SimpleAddressType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $city; - public $line1; - public $line2; - public $line3; - public $locationName; - public $state; - public $zip; - - - public function setCity($city) - { - $this->city = $city; - } - public function getCity() - { - return $this->city; - } - public function setLine1($line1) - { - $this->line1 = $line1; - } - public function getLine1() - { - return $this->line1; - } - public function setLine2($line2) - { - $this->line2 = $line2; - } - public function getLine2() - { - return $this->line2; - } - public function setLine3($line3) - { - $this->line3 = $line3; - } - public function getLine3() - { - return $this->line3; - } - public function setLocationName($locationName) - { - $this->locationName = $locationName; - } - public function getLocationName() - { - return $this->locationName; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setZip($zip) - { - $this->zip = $zip; - } - public function getZip() - { - return $this->zip; - } -} - -class Google_Service_CivicInfo_Source extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $official; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOfficial($official) - { - $this->official = $official; - } - public function getOfficial() - { - return $this->official; - } -} - -class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection -{ - protected $collection_key = 'state'; - protected $internal_gapi_mappings = array( - ); - protected $contestsType = 'Google_Service_CivicInfo_Contest'; - protected $contestsDataType = 'array'; - protected $dropOffLocationsType = 'Google_Service_CivicInfo_PollingLocation'; - protected $dropOffLocationsDataType = 'array'; - protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; - protected $earlyVoteSitesDataType = 'array'; - protected $electionType = 'Google_Service_CivicInfo_Election'; - protected $electionDataType = ''; - public $kind; - public $mailOnly; - protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $normalizedInputDataType = ''; - protected $otherElectionsType = 'Google_Service_CivicInfo_Election'; - protected $otherElectionsDataType = 'array'; - protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; - protected $pollingLocationsDataType = 'array'; - public $precinctId; - protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; - protected $stateDataType = 'array'; - - - public function setContests($contests) - { - $this->contests = $contests; - } - public function getContests() - { - return $this->contests; - } - public function setDropOffLocations($dropOffLocations) - { - $this->dropOffLocations = $dropOffLocations; - } - public function getDropOffLocations() - { - return $this->dropOffLocations; - } - public function setEarlyVoteSites($earlyVoteSites) - { - $this->earlyVoteSites = $earlyVoteSites; - } - public function getEarlyVoteSites() - { - return $this->earlyVoteSites; - } - public function setElection(Google_Service_CivicInfo_Election $election) - { - $this->election = $election; - } - public function getElection() - { - return $this->election; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMailOnly($mailOnly) - { - $this->mailOnly = $mailOnly; - } - public function getMailOnly() - { - return $this->mailOnly; - } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) - { - $this->normalizedInput = $normalizedInput; - } - public function getNormalizedInput() - { - return $this->normalizedInput; - } - public function setOtherElections($otherElections) - { - $this->otherElections = $otherElections; - } - public function getOtherElections() - { - return $this->otherElections; - } - public function setPollingLocations($pollingLocations) - { - $this->pollingLocations = $pollingLocations; - } - public function getPollingLocations() - { - return $this->pollingLocations; - } - public function setPrecinctId($precinctId) - { - $this->precinctId = $precinctId; - } - public function getPrecinctId() - { - return $this->precinctId; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} diff --git a/src/Google/Service/Classroom.php b/src/Google/Service/Classroom.php deleted file mode 100644 index aaca6ec49..000000000 --- a/src/Google/Service/Classroom.php +++ /dev/null @@ -1,1533 +0,0 @@ - - * Google Classroom API

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Classroom extends Google_Service -{ - /** Manage your Google Classroom classes. */ - const CLASSROOM_COURSES = - "https://www.googleapis.com/auth/classroom.courses"; - /** View your Google Classroom classes. */ - const CLASSROOM_COURSES_READONLY = - "https://www.googleapis.com/auth/classroom.courses.readonly"; - /** View the email addresses of people in your classes. */ - const CLASSROOM_PROFILE_EMAILS = - "https://www.googleapis.com/auth/classroom.profile.emails"; - /** View the profile photos of people in your classes. */ - const CLASSROOM_PROFILE_PHOTOS = - "https://www.googleapis.com/auth/classroom.profile.photos"; - /** Manage your Google Classroom class rosters. */ - const CLASSROOM_ROSTERS = - "https://www.googleapis.com/auth/classroom.rosters"; - /** View your Google Classroom class rosters. */ - const CLASSROOM_ROSTERS_READONLY = - "https://www.googleapis.com/auth/classroom.rosters.readonly"; - - public $courses; - public $courses_aliases; - public $courses_students; - public $courses_teachers; - public $invitations; - public $userProfiles; - - - /** - * Constructs the internal representation of the Classroom service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://classroom.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'classroom'; - - $this->courses = new Google_Service_Classroom_Courses_Resource( - $this, - $this->serviceName, - 'courses', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/courses', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/courses/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/courses/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/courses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'studentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'teacherId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1/courses/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'v1/courses/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->courses_aliases = new Google_Service_Classroom_CoursesAliases_Resource( - $this, - $this->serviceName, - 'aliases', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/courses/{courseId}/aliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/courses/{courseId}/aliases/{alias}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alias' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/courses/{courseId}/aliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->courses_students = new Google_Service_Classroom_CoursesStudents_Resource( - $this, - $this->serviceName, - 'students', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/courses/{courseId}/students', - 'httpMethod' => 'POST', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'enrollmentCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'v1/courses/{courseId}/students/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/courses/{courseId}/students/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/courses/{courseId}/students', - 'httpMethod' => 'GET', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->courses_teachers = new Google_Service_Classroom_CoursesTeachers_Resource( - $this, - $this->serviceName, - 'teachers', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/courses/{courseId}/teachers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/courses/{courseId}/teachers/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/courses/{courseId}/teachers/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/courses/{courseId}/teachers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'courseId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->invitations = new Google_Service_Classroom_Invitations_Resource( - $this, - $this->serviceName, - 'invitations', - array( - 'methods' => array( - 'accept' => array( - 'path' => 'v1/invitations/{id}:accept', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'v1/invitations', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/invitations/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/invitations/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/invitations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'courseId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->userProfiles = new Google_Service_Classroom_UserProfiles_Resource( - $this, - $this->serviceName, - 'userProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/userProfiles/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "courses" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $courses = $classroomService->courses; - * - */ -class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource -{ - - /** - * Creates a course. The user specified in `ownerId` is the owner of the created - * course and added as a teacher. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to create - * courses or for access errors. * `NOT_FOUND` if the primary teacher is not a - * valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled - * or for the following request errors: * UserGroupsMembershipLimitReached * - * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists. - * (courses.create) - * - * @param Google_Course $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Course - */ - public function create(Google_Service_Classroom_Course $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Classroom_Course"); - } - - /** - * Deletes a course. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested course or for access errors. * `NOT_FOUND` if no course exists with - * the requested ID. (courses.delete) - * - * @param string $id Identifier of the course to delete. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Returns a course. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to access the - * requested course or for access errors. * `NOT_FOUND` if no course exists with - * the requested ID. (courses.get) - * - * @param string $id Identifier of the course to return. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Course - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Classroom_Course"); - } - - /** - * Returns a list of courses that the requesting user is permitted to view, - * restricted to those that match the request. This method returns the following - * error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if - * the query argument is malformed. * `NOT_FOUND` if any users specified in the - * query arguments do not exist. (courses.listCourses) - * - * @param array $optParams Optional parameters. - * - * @opt_param string studentId Restricts returned courses to those having a - * student with the specified identifier. The identifier can be one of the - * following: * the numeric identifier for the user * the email address of the - * user * the string literal `"me"`, indicating the requesting user - * @opt_param string teacherId Restricts returned courses to those having a - * teacher with the specified identifier. The identifier can be one of the - * following: * the numeric identifier for the user * the email address of the - * user * the string literal `"me"`, indicating the requesting user - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. The server may - * return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. - * @return Google_Service_Classroom_ListCoursesResponse - */ - public function listCourses($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Classroom_ListCoursesResponse"); - } - - /** - * Updates one or more fields in a course. This method returns the following - * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * modify the requested course or for access errors. * `NOT_FOUND` if no course - * exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are - * specified in the update mask or if no update mask is supplied. * - * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable - * (courses.patch) - * - * @param string $id Identifier of the course to update. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param Google_Course $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask Mask that identifies which fields on the course - * to update. This field is required to do an update. The update will fail if - * invalid fields are specified. The following fields are valid: * `name` * - * `section` * `descriptionHeading` * `description` * `room` * `courseState` - * When set in a query parameter, this field should be specified as - * `updateMask=,,...` - * @return Google_Service_Classroom_Course - */ - public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Classroom_Course"); - } - - /** - * Updates a course. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to modify the - * requested course or for access errors. * `NOT_FOUND` if no course exists with - * the requested ID. * `FAILED_PRECONDITION` for the following request errors: * - * CourseNotModifiable (courses.update) - * - * @param string $id Identifier of the course to update. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param Google_Course $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Course - */ - public function update($id, Google_Service_Classroom_Course $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Classroom_Course"); - } -} - -/** - * The "aliases" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $aliases = $classroomService->aliases; - * - */ -class Google_Service_Classroom_CoursesAliases_Resource extends Google_Service_Resource -{ - - /** - * Creates an alias for a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to create the - * alias or for access errors. * `NOT_FOUND` if the course does not exist. * - * `ALREADY_EXISTS` if the alias already exists. (aliases.create) - * - * @param string $courseId Identifier of the course to alias. This identifier - * can be either the Classroom-assigned identifier or an alias. - * @param Google_CourseAlias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_CourseAlias - */ - public function create($courseId, Google_Service_Classroom_CourseAlias $postBody, $optParams = array()) - { - $params = array('courseId' => $courseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Classroom_CourseAlias"); - } - - /** - * Deletes an alias of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to remove the - * alias or for access errors. * `NOT_FOUND` if the alias does not exist. - * (aliases.delete) - * - * @param string $courseId Identifier of the course whose alias should be - * deleted. This identifier can be either the Classroom-assigned identifier or - * an alias. - * @param string $alias Alias to delete. This may not be the Classroom-assigned - * identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function delete($courseId, $alias, $optParams = array()) - { - $params = array('courseId' => $courseId, 'alias' => $alias); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Returns a list of aliases for a course. This method returns the following - * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * access the course or for access errors. * `NOT_FOUND` if the course does not - * exist. (aliases.listCoursesAliases) - * - * @param string $courseId The identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. The server may - * return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. - * @return Google_Service_Classroom_ListCourseAliasesResponse - */ - public function listCoursesAliases($courseId, $optParams = array()) - { - $params = array('courseId' => $courseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Classroom_ListCourseAliasesResponse"); - } -} -/** - * The "students" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $students = $classroomService->students; - * - */ -class Google_Service_Classroom_CoursesStudents_Resource extends Google_Service_Resource -{ - - /** - * Adds a user as a student of a course. This method returns the following error - * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * create students in this course or for access errors. * `NOT_FOUND` if the - * requested course ID does not exist. * `FAILED_PRECONDITION` if the requested - * user's account is disabled, for the following request errors: * - * CourseMemberLimitReached * CourseNotModifiable * - * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a - * student or teacher in the course. (students.create) - * - * @param string $courseId Identifier of the course to create the student in. - * This identifier can be either the Classroom-assigned identifier or an alias. - * @param Google_Student $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string enrollmentCode Enrollment code of the course to create the - * student in. This code is required if userId corresponds to the requesting - * user; it may be omitted if the requesting user has administrative permissions - * to create students for any user. - * @return Google_Service_Classroom_Student - */ - public function create($courseId, Google_Service_Classroom_Student $postBody, $optParams = array()) - { - $params = array('courseId' => $courseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Classroom_Student"); - } - - /** - * Deletes a student of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * students of this course or for access errors. * `NOT_FOUND` if no student of - * this course has the requested ID or if the course does not exist. - * (students.delete) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the student to delete. The identifier can - * be one of the following: * the numeric identifier for the user * the email - * address of the user * the string literal `"me"`, indicating the requesting - * user - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function delete($courseId, $userId, $optParams = array()) - { - $params = array('courseId' => $courseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Returns a student of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * students of this course or for access errors. * `NOT_FOUND` if no student of - * this course has the requested ID or if the course does not exist. - * (students.get) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the student to return. The identifier can - * be one of the following: * the numeric identifier for the user * the email - * address of the user * the string literal `"me"`, indicating the requesting - * user - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Student - */ - public function get($courseId, $userId, $optParams = array()) - { - $params = array('courseId' => $courseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Classroom_Student"); - } - - /** - * Returns a list of students of this course that the requester is permitted to - * view. This method returns the following error codes: * `NOT_FOUND` if the - * course does not exist. * `PERMISSION_DENIED` for access errors. - * (students.listCoursesStudents) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. The server may return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. - * @return Google_Service_Classroom_ListStudentsResponse - */ - public function listCoursesStudents($courseId, $optParams = array()) - { - $params = array('courseId' => $courseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Classroom_ListStudentsResponse"); - } -} -/** - * The "teachers" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $teachers = $classroomService->teachers; - * - */ -class Google_Service_Classroom_CoursesTeachers_Resource extends Google_Service_Resource -{ - - /** - * Creates a teacher of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to create - * teachers in this course or for access errors. * `NOT_FOUND` if the requested - * course ID does not exist. * `FAILED_PRECONDITION` if the requested user's - * account is disabled, for the following request errors: * - * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * - * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a - * teacher or student in the course. (teachers.create) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param Google_Teacher $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Teacher - */ - public function create($courseId, Google_Service_Classroom_Teacher $postBody, $optParams = array()) - { - $params = array('courseId' => $courseId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Classroom_Teacher"); - } - - /** - * Deletes a teacher of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to delete - * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of - * this course has the requested ID or if the course does not exist. * - * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of - * this course. (teachers.delete) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the teacher to delete. The identifier can - * be one of the following: * the numeric identifier for the user * the email - * address of the user * the string literal `"me"`, indicating the requesting - * user - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function delete($courseId, $userId, $optParams = array()) - { - $params = array('courseId' => $courseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Returns a teacher of a course. This method returns the following error codes: - * * `PERMISSION_DENIED` if the requesting user is not permitted to view - * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of - * this course has the requested ID or if the course does not exist. - * (teachers.get) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param string $userId Identifier of the teacher to return. The identifier can - * be one of the following: * the numeric identifier for the user * the email - * address of the user * the string literal `"me"`, indicating the requesting - * user - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Teacher - */ - public function get($courseId, $userId, $optParams = array()) - { - $params = array('courseId' => $courseId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Classroom_Teacher"); - } - - /** - * Returns a list of teachers of this course that the requester is permitted to - * view. This method returns the following error codes: * `NOT_FOUND` if the - * course does not exist. * `PERMISSION_DENIED` for access errors. - * (teachers.listCoursesTeachers) - * - * @param string $courseId Identifier of the course. This identifier can be - * either the Classroom-assigned identifier or an alias. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. The server may return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. - * @return Google_Service_Classroom_ListTeachersResponse - */ - public function listCoursesTeachers($courseId, $optParams = array()) - { - $params = array('courseId' => $courseId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Classroom_ListTeachersResponse"); - } -} - -/** - * The "invitations" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $invitations = $classroomService->invitations; - * - */ -class Google_Service_Classroom_Invitations_Resource extends Google_Service_Resource -{ - - /** - * Accepts an invitation, removing it and adding the invited user to the - * teachers or students (as appropriate) of the specified course. Only the - * invited user may accept an invitation. This method returns the following - * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to - * accept the requested invitation or for access errors. * `FAILED_PRECONDITION` - * for the following request errors: * CourseMemberLimitReached * - * CourseNotModifiable * CourseTeacherLimitReached * - * UserGroupsMembershipLimitReached * `NOT_FOUND` if no invitation exists with - * the requested ID. (invitations.accept) - * - * @param string $id Identifier of the invitation to accept. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function accept($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('accept', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Creates an invitation. Only one invitation for a user and course may exist at - * a time. Delete and re-create an invitation to make changes. This method - * returns the following error codes: * `PERMISSION_DENIED` if the requesting - * user is not permitted to create invitations for this course or for access - * errors. * `NOT_FOUND` if the course or the user does not exist. * - * `FAILED_PRECONDITION` if the requested user's account is disabled or if the - * user already has this role or a role with greater permissions. * - * `ALREADY_EXISTS` if an invitation for the specified user and course already - * exists. (invitations.create) - * - * @param Google_Invitation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Invitation - */ - public function create(Google_Service_Classroom_Invitation $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Classroom_Invitation"); - } - - /** - * Deletes an invitation. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - * requested invitation or for access errors. * `NOT_FOUND` if no invitation - * exists with the requested ID. (invitations.delete) - * - * @param string $id Identifier of the invitation to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Empty - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); - } - - /** - * Returns an invitation. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to view the - * requested invitation or for access errors. * `NOT_FOUND` if no invitation - * exists with the requested ID. (invitations.get) - * - * @param string $id Identifier of the invitation to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_Invitation - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Classroom_Invitation"); - } - - /** - * Returns a list of invitations that the requesting user is permitted to view, - * restricted to those that match the list request. *Note:* At least one of - * `user_id` or `course_id` must be supplied. Both fields can be supplied. This - * method returns the following error codes: * `PERMISSION_DENIED` for access - * errors. (invitations.listInvitations) - * - * @param array $optParams Optional parameters. - * - * @opt_param string userId Restricts returned invitations to those for a - * specific user. The identifier can be one of the following: * the numeric - * identifier for the user * the email address of the user * the string literal - * `"me"`, indicating the requesting user - * @opt_param string courseId Restricts returned invitations to those for a - * course with the specified identifier. - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. The server may return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. The - * list request must be otherwise identical to the one that resulted in this - * token. - * @return Google_Service_Classroom_ListInvitationsResponse - */ - public function listInvitations($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Classroom_ListInvitationsResponse"); - } -} - -/** - * The "userProfiles" collection of methods. - * Typical usage is: - * - * $classroomService = new Google_Service_Classroom(...); - * $userProfiles = $classroomService->userProfiles; - * - */ -class Google_Service_Classroom_UserProfiles_Resource extends Google_Service_Resource -{ - - /** - * Returns a user profile. This method returns the following error codes: * - * `PERMISSION_DENIED` if the requesting user is not permitted to access this - * user profile or if no profile exists with the requested ID or for access - * errors. (userProfiles.get) - * - * @param string $userId Identifier of the profile to return. The identifier can - * be one of the following: * the numeric identifier for the user * the email - * address of the user * the string literal `"me"`, indicating the requesting - * user - * @param array $optParams Optional parameters. - * @return Google_Service_Classroom_UserProfile - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Classroom_UserProfile"); - } -} - - - - -class Google_Service_Classroom_Course extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alternateLink; - public $courseState; - public $creationTime; - public $description; - public $descriptionHeading; - public $enrollmentCode; - public $id; - public $name; - public $ownerId; - public $room; - public $section; - public $updateTime; - - - public function setAlternateLink($alternateLink) - { - $this->alternateLink = $alternateLink; - } - public function getAlternateLink() - { - return $this->alternateLink; - } - public function setCourseState($courseState) - { - $this->courseState = $courseState; - } - public function getCourseState() - { - return $this->courseState; - } - 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 setDescriptionHeading($descriptionHeading) - { - $this->descriptionHeading = $descriptionHeading; - } - public function getDescriptionHeading() - { - return $this->descriptionHeading; - } - public function setEnrollmentCode($enrollmentCode) - { - $this->enrollmentCode = $enrollmentCode; - } - public function getEnrollmentCode() - { - return $this->enrollmentCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOwnerId($ownerId) - { - $this->ownerId = $ownerId; - } - public function getOwnerId() - { - return $this->ownerId; - } - public function setRoom($room) - { - $this->room = $room; - } - public function getRoom() - { - return $this->room; - } - public function setSection($section) - { - $this->section = $section; - } - public function getSection() - { - return $this->section; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } -} - -class Google_Service_Classroom_CourseAlias extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alias; - - - public function setAlias($alias) - { - $this->alias = $alias; - } - public function getAlias() - { - return $this->alias; - } -} - -class Google_Service_Classroom_Empty extends Google_Model -{ -} - -class Google_Service_Classroom_GlobalPermission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $permission; - - - public function setPermission($permission) - { - $this->permission = $permission; - } - public function getPermission() - { - return $this->permission; - } -} - -class Google_Service_Classroom_Invitation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $courseId; - public $id; - public $role; - public $userId; - - - public function setCourseId($courseId) - { - $this->courseId = $courseId; - } - public function getCourseId() - { - return $this->courseId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Classroom_ListCourseAliasesResponse extends Google_Collection -{ - protected $collection_key = 'aliases'; - protected $internal_gapi_mappings = array( - ); - protected $aliasesType = 'Google_Service_Classroom_CourseAlias'; - protected $aliasesDataType = 'array'; - public $nextPageToken; - - - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() - { - return $this->aliases; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Classroom_ListCoursesResponse extends Google_Collection -{ - protected $collection_key = 'courses'; - protected $internal_gapi_mappings = array( - ); - protected $coursesType = 'Google_Service_Classroom_Course'; - protected $coursesDataType = 'array'; - public $nextPageToken; - - - public function setCourses($courses) - { - $this->courses = $courses; - } - public function getCourses() - { - return $this->courses; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Classroom_ListInvitationsResponse extends Google_Collection -{ - protected $collection_key = 'invitations'; - protected $internal_gapi_mappings = array( - ); - protected $invitationsType = 'Google_Service_Classroom_Invitation'; - protected $invitationsDataType = 'array'; - public $nextPageToken; - - - public function setInvitations($invitations) - { - $this->invitations = $invitations; - } - public function getInvitations() - { - return $this->invitations; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Classroom_ListStudentsResponse extends Google_Collection -{ - protected $collection_key = 'students'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $studentsType = 'Google_Service_Classroom_Student'; - protected $studentsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setStudents($students) - { - $this->students = $students; - } - public function getStudents() - { - return $this->students; - } -} - -class Google_Service_Classroom_ListTeachersResponse extends Google_Collection -{ - protected $collection_key = 'teachers'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $teachersType = 'Google_Service_Classroom_Teacher'; - protected $teachersDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTeachers($teachers) - { - $this->teachers = $teachers; - } - public function getTeachers() - { - return $this->teachers; - } -} - -class Google_Service_Classroom_Name extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $familyName; - public $fullName; - public $givenName; - - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } - public function getFullName() - { - return $this->fullName; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } -} - -class Google_Service_Classroom_Student extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $courseId; - protected $profileType = 'Google_Service_Classroom_UserProfile'; - protected $profileDataType = ''; - public $userId; - - - public function setCourseId($courseId) - { - $this->courseId = $courseId; - } - public function getCourseId() - { - return $this->courseId; - } - public function setProfile(Google_Service_Classroom_UserProfile $profile) - { - $this->profile = $profile; - } - public function getProfile() - { - return $this->profile; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Classroom_Teacher extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $courseId; - protected $profileType = 'Google_Service_Classroom_UserProfile'; - protected $profileDataType = ''; - public $userId; - - - public function setCourseId($courseId) - { - $this->courseId = $courseId; - } - public function getCourseId() - { - return $this->courseId; - } - public function setProfile(Google_Service_Classroom_UserProfile $profile) - { - $this->profile = $profile; - } - public function getProfile() - { - return $this->profile; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Classroom_UserProfile extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $emailAddress; - public $id; - protected $nameType = 'Google_Service_Classroom_Name'; - protected $nameDataType = ''; - protected $permissionsType = 'Google_Service_Classroom_GlobalPermission'; - protected $permissionsDataType = 'array'; - public $photoUrl; - - - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName(Google_Service_Classroom_Name $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } -} diff --git a/src/Google/Service/CloudMonitoring.php b/src/Google/Service/CloudMonitoring.php deleted file mode 100644 index 193e8c829..000000000 --- a/src/Google/Service/CloudMonitoring.php +++ /dev/null @@ -1,1163 +0,0 @@ - - * Accesses Google Cloud Monitoring data.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_CloudMonitoring extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ - const MONITORING = - "https://www.googleapis.com/auth/monitoring"; - - public $metricDescriptors; - public $timeseries; - public $timeseriesDescriptors; - - - /** - * Constructs the internal representation of the CloudMonitoring service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'cloudmonitoring/v2beta2/projects/'; - $this->version = 'v2beta2'; - $this->serviceName = 'cloudmonitoring'; - - $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( - $this, - $this->serviceName, - 'metricDescriptors', - array( - 'methods' => array( - 'create' => array( - 'path' => '{project}/metricDescriptors', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/metricDescriptors/{metric}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/metricDescriptors', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->timeseries = new Google_Service_CloudMonitoring_Timeseries_Resource( - $this, - $this->serviceName, - 'timeseries', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseries/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'aggregator' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'window' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'write' => array( - 'path' => '{project}/timeseries:write', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource( - $this, - $this->serviceName, - 'timeseriesDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseriesDescriptors/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'aggregator' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'window' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "metricDescriptors" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); - * $metricDescriptors = $cloudmonitoringService->metricDescriptors; - * - */ -class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource -{ - - /** - * Create a new metric. (metricDescriptors.create) - * - * @param string $project The project id. The value can be the numeric project - * ID or string-based project name. - * @param Google_MetricDescriptor $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudMonitoring_MetricDescriptor - */ - public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor"); - } - - /** - * Delete an existing metric. (metricDescriptors.delete) - * - * @param string $project The project ID to which the metric belongs. - * @param string $metric Name of the metric. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse - */ - public function delete($project, $metric, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse"); - } - - /** - * List metric descriptors that match the query. If the query is not set, then - * all of the metric descriptors will be returned. Large responses will be - * paginated, use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) - * - * @param string $project The project id. The value can be the numeric project - * ID or string-based project name. - * @param array $optParams Optional parameters. - * - * @opt_param int count Maximum number of metric descriptors per page. Used for - * pagination. If not specified, count = 100. - * @opt_param string pageToken The pagination token, which is used to page - * through large result sets. Set this value to the value of the nextPageToken - * to retrieve the next page of results. - * @opt_param string query The query used to search against existing metrics. - * Separate keywords with a space; the service joins all keywords with AND, - * meaning that all keywords must match for a metric to be returned. If this - * field is omitted, all metrics are returned. If an empty string is passed with - * this field, no metrics are returned. - * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse - */ - public function listMetricDescriptors($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse"); - } -} - -/** - * The "timeseries" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); - * $timeseries = $cloudmonitoringService->timeseries; - * - */ -class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_Resource -{ - - /** - * List the data points of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseries.listTimeseries) - * - * @param string $project The project ID to which this time series belongs. The - * value can be the numeric project ID or string-based project name. - * @param string $metric Metric names are protocol-free URLs as listed in the - * Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest End of the time interval (inclusive), which is - * expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param string aggregator The aggregation function that will reduce the - * data points in each window to a single point. This parameter is only valid - * for non-cumulative metrics with a value type of INT64 or DOUBLE. - * @opt_param int count Maximum number of data points per page, which is used - * for pagination of results. - * @opt_param string labels A collection of labels for the matching time series, - * which are represented as: - key==value: key equals the value - key=~value: - * key regex matches the value - key!=value: key does not equal the value - - * key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string oldest Start of the time interval (exclusive), which is - * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is - * specified, the default time interval will be (youngest - 4 hours, youngest] - * @opt_param string pageToken The pagination token, which is used to page - * through large result sets. Set this value to the value of the nextPageToken - * to retrieve the next page of results. - * @opt_param string timespan Length of the time interval to query, which is an - * alternative way to declare the interval: (youngest - timespan, youngest]. The - * timespan and oldest parameters should not be used together. Units: - s: - * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. - * Only one unit is allowed, for example: 2w3d is not allowed; you should use - * 17d instead. - * - * If neither oldest nor timespan is specified, the default time interval will - * be (youngest - 4 hours, youngest]. - * @opt_param string window The sampling window. At most one data point will be - * returned for each window in the requested time interval. This parameter is - * only valid for non-cumulative metric types. Units: - m: minute - h: hour - - * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: - * 2w3d is not allowed; you should use 17d instead. - * @return Google_Service_CloudMonitoring_ListTimeseriesResponse - */ - public function listTimeseries($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); - } - - /** - * Put data points to one or more time series for one or more metrics. If a time - * series does not exist, a new time series will be created. It is not allowed - * to write a time series point that is older than the existing youngest point - * of that time series. Points that are older than the existing youngest point - * of that time series will be discarded silently. Therefore, users should make - * sure that points of a time series are written sequentially in the order of - * their end time. (timeseries.write) - * - * @param string $project The project ID. The value can be the numeric project - * ID or string-based project name. - * @param Google_WriteTimeseriesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse - */ - public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse"); - } -} - -/** - * The "timeseriesDescriptors" collection of methods. - * Typical usage is: - * - * $cloudmonitoringService = new Google_Service_CloudMonitoring(...); - * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors; - * - */ -class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource -{ - - /** - * List the descriptors of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) - * - * @param string $project The project ID to which this time series belongs. The - * value can be the numeric project ID or string-based project name. - * @param string $metric Metric names are protocol-free URLs as listed in the - * Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest End of the time interval (inclusive), which is - * expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param string aggregator The aggregation function that will reduce the - * data points in each window to a single point. This parameter is only valid - * for non-cumulative metrics with a value type of INT64 or DOUBLE. - * @opt_param int count Maximum number of time series descriptors per page. Used - * for pagination. If not specified, count = 100. - * @opt_param string labels A collection of labels for the matching time series, - * which are represented as: - key==value: key equals the value - key=~value: - * key regex matches the value - key!=value: key does not equal the value - - * key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string oldest Start of the time interval (exclusive), which is - * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is - * specified, the default time interval will be (youngest - 4 hours, youngest] - * @opt_param string pageToken The pagination token, which is used to page - * through large result sets. Set this value to the value of the nextPageToken - * to retrieve the next page of results. - * @opt_param string timespan Length of the time interval to query, which is an - * alternative way to declare the interval: (youngest - timespan, youngest]. The - * timespan and oldest parameters should not be used together. Units: - s: - * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w. - * Only one unit is allowed, for example: 2w3d is not allowed; you should use - * 17d instead. - * - * If neither oldest nor timespan is specified, the default time interval will - * be (youngest - 4 hours, youngest]. - * @opt_param string window The sampling window. At most one data point will be - * returned for each window in the requested time interval. This parameter is - * only valid for non-cumulative metric types. Units: - m: minute - h: hour - - * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: - * 2w3d is not allowed; you should use 17d instead. - * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse - */ - public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse"); - } -} - - - - -class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; - protected $metricsDataType = 'array'; - public $nextPageToken; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection -{ - protected $collection_key = 'timeseries'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; - protected $timeseriesDataType = 'array'; - public $youngest; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOldest($oldest) - { - $this->oldest = $oldest; - } - public function getOldest() - { - return $this->oldest; - } - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } - public function getTimeseries() - { - return $this->timeseries; - } - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } - public function getYoungest() - { - return $this->youngest; - } -} - -class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection -{ - protected $collection_key = 'timeseries'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries'; - protected $timeseriesDataType = 'array'; - public $youngest; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOldest($oldest) - { - $this->oldest = $oldest; - } - public function getOldest() - { - return $this->oldest; - } - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } - public function getTimeseries() - { - return $this->timeseries; - } - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } - public function getYoungest() - { - return $this->youngest; - } -} - -class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - public $description; - protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; - protected $labelsDataType = 'array'; - public $name; - public $project; - protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor'; - protected $typeDescriptorDataType = ''; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) - { - $this->typeDescriptor = $typeDescriptor; - } - public function getTypeDescriptor() - { - return $this->typeDescriptor; - } -} - -class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $key; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $metricType; - public $valueType; - - - public function setMetricType($metricType) - { - $this->metricType = $metricType; - } - public function getMetricType() - { - return $this->metricType; - } - public function setValueType($valueType) - { - $this->valueType = $valueType; - } - public function getValueType() - { - return $this->valueType; - } -} - -class Google_Service_CloudMonitoring_Point extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $boolValue; - protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution'; - protected $distributionValueDataType = ''; - public $doubleValue; - public $end; - public $int64Value; - public $start; - public $stringValue; - - - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } - public function getBoolValue() - { - return $this->boolValue; - } - public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue) - { - $this->distributionValue = $distributionValue; - } - public function getDistributionValue() - { - return $this->distributionValue; - } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } - public function getDoubleValue() - { - return $this->doubleValue; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setInt64Value($int64Value) - { - $this->int64Value = $int64Value; - } - public function getInt64Value() - { - return $this->int64Value; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } -} - -class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection -{ - protected $collection_key = 'buckets'; - protected $internal_gapi_mappings = array( - ); - protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; - protected $bucketsDataType = 'array'; - protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; - protected $overflowBucketDataType = ''; - protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket'; - protected $underflowBucketDataType = ''; - - - public function setBuckets($buckets) - { - $this->buckets = $buckets; - } - public function getBuckets() - { - return $this->buckets; - } - public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket) - { - $this->overflowBucket = $overflowBucket; - } - public function getOverflowBucket() - { - return $this->overflowBucket; - } - public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket) - { - $this->underflowBucket = $underflowBucket; - } - public function getUnderflowBucket() - { - return $this->underflowBucket; - } -} - -class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $lowerBound; - public $upperBound; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } - public function getLowerBound() - { - return $this->lowerBound; - } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $lowerBound; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } - public function getLowerBound() - { - return $this->lowerBound; - } -} - -class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $upperBound; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_CloudMonitoring_Timeseries extends Google_Collection -{ - protected $collection_key = 'points'; - protected $internal_gapi_mappings = array( - ); - protected $pointsType = 'Google_Service_CloudMonitoring_Point'; - protected $pointsDataType = 'array'; - protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; - protected $timeseriesDescDataType = ''; - - - public function setPoints($points) - { - $this->points = $points; - } - public function getPoints() - { - return $this->points; - } - public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) - { - $this->timeseriesDesc = $timeseriesDesc; - } - public function getTimeseriesDesc() - { - return $this->timeseriesDesc; - } -} - -class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $labels; - public $metric; - public $project; - - - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } -} - -class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CloudMonitoring_TimeseriesPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $pointType = 'Google_Service_CloudMonitoring_Point'; - protected $pointDataType = ''; - protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; - protected $timeseriesDescDataType = ''; - - - public function setPoint(Google_Service_CloudMonitoring_Point $point) - { - $this->point = $point; - } - public function getPoint() - { - return $this->point; - } - public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) - { - $this->timeseriesDesc = $timeseriesDesc; - } - public function getTimeseriesDesc() - { - return $this->timeseriesDesc; - } -} - -class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection -{ - protected $collection_key = 'timeseries'; - protected $internal_gapi_mappings = array( - ); - public $commonLabels; - protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint'; - protected $timeseriesDataType = 'array'; - - - public function setCommonLabels($commonLabels) - { - $this->commonLabels = $commonLabels; - } - public function getCommonLabels() - { - return $this->commonLabels; - } - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } - public function getTimeseries() - { - return $this->timeseries; - } -} - -class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} diff --git a/src/Google/Service/CloudUserAccounts.php b/src/Google/Service/CloudUserAccounts.php deleted file mode 100644 index 86ed3a0f4..000000000 --- a/src/Google/Service/CloudUserAccounts.php +++ /dev/null @@ -1,2405 +0,0 @@ - - * Creates and manages users and groups for accessing Google Compute Engine - * virtual machines.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_CloudUserAccounts extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** Manage your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS = - "https://www.googleapis.com/auth/cloud.useraccounts"; - /** View your Google Cloud User Accounts. */ - const CLOUD_USERACCOUNTS_READONLY = - "https://www.googleapis.com/auth/cloud.useraccounts.readonly"; - - public $globalAccountsOperations; - public $groups; - public $linux; - public $users; - - - /** - * Constructs the internal representation of the CloudUserAccounts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'clouduseraccounts/vm_alpha/projects/'; - $this->version = 'vm_alpha'; - $this->serviceName = 'clouduseraccounts'; - - $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource( - $this, - $this->serviceName, - 'globalAccountsOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_CloudUserAccounts_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'addMember' => array( - 'path' => '{project}/global/groups/{groupName}/addMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => '{project}/global/groups/{resource}/getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeMember' => array( - 'path' => '{project}/global/groups/{groupName}/removeMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setIamPolicy' => array( - 'path' => '{project}/global/groups/{resource}/setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => '{project}/global/groups/{resource}/testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->linux = new Google_Service_CloudUserAccounts_Linux_Resource( - $this, - $this->serviceName, - 'linux', - array( - 'methods' => array( - 'getAuthorizedKeysView' => array( - 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'login' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'getLinuxAccountViews' => array( - 'path' => '{project}/zones/{zone}/linuxAccountViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_CloudUserAccounts_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'addPublicKey' => array( - 'path' => '{project}/global/users/{user}/addPublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => '{project}/global/users/{resource}/getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removePublicKey' => array( - 'path' => '{project}/global/users/{user}/removePublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setIamPolicy' => array( - 'path' => '{project}/global/users/{resource}/setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => '{project}/global/users/{resource}/testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "globalAccountsOperations" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations; - * - */ -class Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified operation resource. (globalAccountsOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalAccountsOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalAccountsOperations.listGlobalAccountsOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_CloudUserAccounts_OperationList - */ - public function listGlobalAccountsOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $groups = $clouduseraccountsService->groups; - * - */ -class Google_Service_CloudUserAccounts_Groups_Resource extends Google_Service_Resource -{ - - /** - * Adds users to the specified group. (groups.addMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsAddMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Deletes the specified Group resource. (groups.delete) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function delete($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Returns the specified Group resource. (groups.get) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the Group resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Group - */ - public function get($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group"); - } - - /** - * Gets the access control policy for a resource. May be empty if no such policy - * or resource exists. (groups.getIamPolicy) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Policy - */ - public function getIamPolicy($project, $resource, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); - } - - /** - * Creates a Group resource in the specified project using the data included in - * the request. (groups.insert) - * - * @param string $project Project ID for this request. - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves the list of groups contained within the specified project. - * (groups.listGroups) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_CloudUserAccounts_GroupList - */ - public function listGroups($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList"); - } - - /** - * Removes users from the specified group. (groups.removeMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsRemoveMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (groups.setIamPolicy) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param Google_Policy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Policy - */ - public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (groups.testIamPermissions) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param Google_TestPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_TestPermissionsResponse - */ - public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse"); - } -} - -/** - * The "linux" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $linux = $clouduseraccountsService->linux; - * - */ -class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of authorized public keys for a specific user account. - * (linux.getAuthorizedKeysView) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $user The user account for which you want to get a list of - * authorized public keys. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the view. - * @param array $optParams Optional parameters. - * - * @opt_param bool login Whether the view was requested as part of a user- - * initiated login. - * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse - */ - public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse"); - } - - /** - * Retrieves a list of user accounts for an instance within a specific project. - * (linux.getLinuxAccountViews) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $instance The fully-qualified URL of the virtual machine - * requesting the views. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse - */ - public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...); - * $users = $clouduseraccountsService->users; - * - */ -class Google_Service_CloudUserAccounts_Users_Resource extends Google_Service_Resource -{ - - /** - * Adds a public key to the specified User resource with the data included in - * the request. (users.addPublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param Google_PublicKey $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Deletes the specified User resource. (users.delete) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function delete($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Returns the specified User resource. (users.get) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_User - */ - public function get($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User"); - } - - /** - * Gets the access control policy for a resource. May be empty if no such policy - * or resource exists. (users.getIamPolicy) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Policy - */ - public function getIamPolicy($project, $resource, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); - } - - /** - * Creates a User resource in the specified project using the data included in - * the request. (users.insert) - * - * @param string $project Project ID for this request. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Retrieves a list of users contained within the specified project. - * (users.listUsers) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_CloudUserAccounts_UserList - */ - public function listUsers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList"); - } - - /** - * Removes the specified public key from the user. (users.removePublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param string $fingerprint The fingerprint of the public key to delete. - * Public keys are identified by their fingerprint, which is defined by RFC4716 - * to be the MD5 digest of the public key. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Operation - */ - public function removePublicKey($project, $user, $fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); - $params = array_merge($params, $optParams); - return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation"); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (users.setIamPolicy) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param Google_Policy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_Policy - */ - public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (users.testIamPermissions) - * - * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param Google_TestPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudUserAccounts_TestPermissionsResponse - */ - public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse"); - } -} - - - - -class Google_Service_CloudUserAccounts_AuditConfig extends Google_Collection -{ - protected $collection_key = 'exemptedMembers'; - protected $internal_gapi_mappings = array( - ); - public $exemptedMembers; - public $service; - - - public function setExemptedMembers($exemptedMembers) - { - $this->exemptedMembers = $exemptedMembers; - } - public function getExemptedMembers() - { - return $this->exemptedMembers; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $keys; - public $sudoer; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } - public function setSudoer($sudoer) - { - $this->sudoer = $sudoer; - } - public function getSudoer() - { - return $this->sudoer; - } -} - -class Google_Service_CloudUserAccounts_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } -} - -class Google_Service_CloudUserAccounts_Condition extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - public $iam; - public $op; - public $svc; - public $sys; - public $value; - public $values; - - - public function setIam($iam) - { - $this->iam = $iam; - } - public function getIam() - { - return $this->iam; - } - public function setOp($op) - { - $this->op = $op; - } - public function getOp() - { - return $this->op; - } - public function setSvc($svc) - { - $this->svc = $svc; - } - public function getSvc() - { - return $this->svc; - } - public function setSys($sys) - { - $this->sys = $sys; - } - public function getSys() - { - return $this->sys; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; - } -} - -class Google_Service_CloudUserAccounts_Group extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $members; - public $name; - public $selfLink; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - 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_CloudUserAccounts_GroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_Group'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection -{ - protected $collection_key = 'userViews'; - protected $internal_gapi_mappings = array( - ); - protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView'; - protected $groupViewsDataType = 'array'; - public $kind; - protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView'; - protected $userViewsDataType = 'array'; - - - public function setGroupViews($groupViews) - { - $this->groupViews = $groupViews; - } - public function getGroupViews() - { - return $this->groupViews; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserViews($userViews) - { - $this->userViews = $userViews; - } - public function getUserViews() - { - return $this->userViews; - } -} - -class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $gid; - public $groupName; - public $members; - - - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setGroupName($groupName) - { - $this->groupName = $groupName; - } - public function getGroupName() - { - return $this->groupName; - } - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } -} - -class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gecos; - public $gid; - public $homeDirectory; - public $shell; - public $uid; - public $username; - - - public function setGecos($gecos) - { - $this->gecos = $gecos; - } - public function getGecos() - { - return $this->gecos; - } - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setHomeDirectory($homeDirectory) - { - $this->homeDirectory = $homeDirectory; - } - public function getHomeDirectory() - { - return $this->homeDirectory; - } - public function setShell($shell) - { - $this->shell = $shell; - } - public function getShell() - { - return $this->shell; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_CloudUserAccounts_LogConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $counterType = 'Google_Service_CloudUserAccounts_LogConfigCounterOptions'; - protected $counterDataType = ''; - - - public function setCounter(Google_Service_CloudUserAccounts_LogConfigCounterOptions $counter) - { - $this->counter = $counter; - } - public function getCounter() - { - return $this->counter; - } -} - -class Google_Service_CloudUserAccounts_LogConfigCounterOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $field; - public $metric; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } -} - -class Google_Service_CloudUserAccounts_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $description; - public $endTime; - protected $errorType = 'Google_Service_CloudUserAccounts_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function 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 setError(Google_Service_CloudUserAccounts_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_CloudUserAccounts_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CloudUserAccounts_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_CloudUserAccounts_Policy extends Google_Collection -{ - protected $collection_key = 'rules'; - protected $internal_gapi_mappings = array( - ); - protected $auditConfigsType = 'Google_Service_CloudUserAccounts_AuditConfig'; - protected $auditConfigsDataType = 'array'; - protected $bindingsType = 'Google_Service_CloudUserAccounts_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - public $iamOwned; - protected $rulesType = 'Google_Service_CloudUserAccounts_Rule'; - protected $rulesDataType = 'array'; - public $version; - - - public function setAuditConfigs($auditConfigs) - { - $this->auditConfigs = $auditConfigs; - } - public function getAuditConfigs() - { - return $this->auditConfigs; - } - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setIamOwned($iamOwned) - { - $this->iamOwned = $iamOwned; - } - public function getIamOwned() - { - return $this->iamOwned; - } - public function setRules($rules) - { - $this->rules = $rules; - } - public function getRules() - { - return $this->rules; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_CloudUserAccounts_PublicKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $expirationTimestamp; - public $fingerprint; - public $key; - - - 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 setExpirationTimestamp($expirationTimestamp) - { - $this->expirationTimestamp = $expirationTimestamp; - } - public function getExpirationTimestamp() - { - return $this->expirationTimestamp; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_CloudUserAccounts_Rule extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $action; - protected $conditionsType = 'Google_Service_CloudUserAccounts_Condition'; - protected $conditionsDataType = 'array'; - public $description; - public $ins; - protected $logConfigsType = 'Google_Service_CloudUserAccounts_LogConfig'; - protected $logConfigsDataType = 'array'; - public $notIns; - public $permissions; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setConditions($conditions) - { - $this->conditions = $conditions; - } - public function getConditions() - { - return $this->conditions; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIns($ins) - { - $this->ins = $ins; - } - public function getIns() - { - return $this->ins; - } - public function setLogConfigs($logConfigs) - { - $this->logConfigs = $logConfigs; - } - public function getLogConfigs() - { - return $this->logConfigs; - } - public function setNotIns($notIns) - { - $this->notIns = $notIns; - } - public function getNotIns() - { - return $this->notIns; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_CloudUserAccounts_TestPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_CloudUserAccounts_TestPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_CloudUserAccounts_User extends Google_Collection -{ - protected $collection_key = 'publicKeys'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $groups; - public $id; - public $kind; - public $name; - public $owner; - protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey'; - protected $publicKeysDataType = 'array'; - public $selfLink; - - - 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 setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setOwner($owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setPublicKeys($publicKeys) - { - $this->publicKeys = $publicKeys; - } - public function getPublicKeys() - { - return $this->publicKeys; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_CloudUserAccounts_UserList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_CloudUserAccounts_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} diff --git a/src/Google/Service/Cloudbilling.php b/src/Google/Service/Cloudbilling.php deleted file mode 100644 index 21d5fd7df..000000000 --- a/src/Google/Service/Cloudbilling.php +++ /dev/null @@ -1,446 +0,0 @@ - - * Retrieves Google Developers Console billing accounts and associates them with - * projects.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Cloudbilling extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $billingAccounts; - public $billingAccounts_projects; - public $projects; - - - /** - * Constructs the internal representation of the Cloudbilling service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://cloudbilling.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudbilling'; - - $this->billingAccounts = new Google_Service_Cloudbilling_BillingAccounts_Resource( - $this, - $this->serviceName, - 'billingAccounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/billingAccounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->billingAccounts_projects = new Google_Service_Cloudbilling_BillingAccountsProjects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/{+name}/projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Cloudbilling_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'getBillingInfo' => array( - 'path' => 'v1/{+name}/billingInfo', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateBillingInfo' => array( - 'path' => 'v1/{+name}/billingInfo', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "billingAccounts" collection of methods. - * Typical usage is: - * - * $cloudbillingService = new Google_Service_Cloudbilling(...); - * $billingAccounts = $cloudbillingService->billingAccounts; - * - */ -class Google_Service_Cloudbilling_BillingAccounts_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a billing account. The current authenticated user must - * be an [owner of the billing - * account](https://support.google.com/cloud/answer/4430947). - * (billingAccounts.get) - * - * @param string $name The resource name of the billing account to retrieve. For - * example, `billingAccounts/012345-567890-ABCDEF`. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbilling_BillingAccount - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudbilling_BillingAccount"); - } - - /** - * Lists the billing accounts that the current authenticated user - * [owns](https://support.google.com/cloud/answer/4430947). - * (billingAccounts.listBillingAccounts) - * - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Requested page size. The maximum page size is 100; - * this is also the default. - * @opt_param string pageToken A token identifying a page of results to return. - * This should be a `next_page_token` value returned from a previous - * `ListBillingAccounts` call. If unspecified, the first page of results is - * returned. - * @return Google_Service_Cloudbilling_ListBillingAccountsResponse - */ - public function listBillingAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudbilling_ListBillingAccountsResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudbillingService = new Google_Service_Cloudbilling(...); - * $projects = $cloudbillingService->projects; - * - */ -class Google_Service_Cloudbilling_BillingAccountsProjects_Resource extends Google_Service_Resource -{ - - /** - * Lists the projects associated with a billing account. The current - * authenticated user must be an [owner of the billing - * account](https://support.google.com/cloud/answer/4430947). - * (projects.listBillingAccountsProjects) - * - * @param string $name The resource name of the billing account associated with - * the projects that you want to list. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Requested page size. The maximum page size is 100; - * this is also the default. - * @opt_param string pageToken A token identifying a page of results to be - * returned. This should be a `next_page_token` value returned from a previous - * `ListProjectBillingInfo` call. If unspecified, the first page of results is - * returned. - * @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse - */ - public function listBillingAccountsProjects($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudbilling_ListProjectBillingInfoResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudbillingService = new Google_Service_Cloudbilling(...); - * $projects = $cloudbillingService->projects; - * - */ -class Google_Service_Cloudbilling_Projects_Resource extends Google_Service_Resource -{ - - /** - * Gets the billing information for a project. The current authenticated user - * must have [permission to view the project](https://cloud.google.com/docs - * /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo) - * - * @param string $name The resource name of the project for which billing - * information is retrieved. For example, `projects/tokyo-rain-123`. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbilling_ProjectBillingInfo - */ - public function getBillingInfo($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('getBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo"); - } - - /** - * Sets or updates the billing account associated with a project. You specify - * the new billing account by setting the `billing_account_name` in the - * `ProjectBillingInfo` resource to the resource name of a billing account. - * Associating a project with an open billing account enables billing on the - * project and allows charges for resource usage. If the project already had a - * billing account, this method changes the billing account used for resource - * usage charges. *Note:* Incurred charges that have not yet been reported in - * the transaction history of the Google Developers Console may be billed to the - * new billing account, even if the charge occurred before the new billing - * account was assigned to the project. The current authenticated user must have - * ownership privileges for both the [project](https://cloud.google.com/docs - * /permissions-overview#h.bgs0oxofvnoo ) and the [billing - * account](https://support.google.com/cloud/answer/4430947). You can disable - * billing on the project by setting the `billing_account_name` field to empty. - * This action disassociates the current billing account from the project. Any - * billable activity of your in-use services will stop, and your application - * could stop functioning as expected. Any unbilled charges to date will be - * billed to the previously associated account. The current authenticated user - * must be either an owner of the project or an owner of the billing account for - * the project. Note that associating a project with a *closed* billing account - * will have much the same effect as disabling billing on the project: any paid - * resources used by the project will be shut down. Thus, unless you wish to - * disable billing, you should always call this method with the name of an - * *open* billing account. (projects.updateBillingInfo) - * - * @param string $name The resource name of the project associated with the - * billing information that you want to update. For example, `projects/tokyo- - * rain-123`. - * @param Google_ProjectBillingInfo $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudbilling_ProjectBillingInfo - */ - public function updateBillingInfo($name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo"); - } -} - - - - -class Google_Service_Cloudbilling_BillingAccount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $name; - public $open; - - - 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 setOpen($open) - { - $this->open = $open; - } - public function getOpen() - { - return $this->open; - } -} - -class Google_Service_Cloudbilling_ListBillingAccountsResponse extends Google_Collection -{ - protected $collection_key = 'billingAccounts'; - protected $internal_gapi_mappings = array( - ); - protected $billingAccountsType = 'Google_Service_Cloudbilling_BillingAccount'; - protected $billingAccountsDataType = 'array'; - public $nextPageToken; - - - public function setBillingAccounts($billingAccounts) - { - $this->billingAccounts = $billingAccounts; - } - public function getBillingAccounts() - { - return $this->billingAccounts; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Cloudbilling_ListProjectBillingInfoResponse extends Google_Collection -{ - protected $collection_key = 'projectBillingInfo'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $projectBillingInfoType = 'Google_Service_Cloudbilling_ProjectBillingInfo'; - protected $projectBillingInfoDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setProjectBillingInfo($projectBillingInfo) - { - $this->projectBillingInfo = $projectBillingInfo; - } - public function getProjectBillingInfo() - { - return $this->projectBillingInfo; - } -} - -class Google_Service_Cloudbilling_ProjectBillingInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $billingAccountName; - public $billingEnabled; - public $name; - public $projectId; - - - public function setBillingAccountName($billingAccountName) - { - $this->billingAccountName = $billingAccountName; - } - public function getBillingAccountName() - { - return $this->billingAccountName; - } - public function setBillingEnabled($billingEnabled) - { - $this->billingEnabled = $billingEnabled; - } - public function getBillingEnabled() - { - return $this->billingEnabled; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} diff --git a/src/Google/Service/Cloudbuild.php b/src/Google/Service/Cloudbuild.php deleted file mode 100644 index efc359ab4..000000000 --- a/src/Google/Service/Cloudbuild.php +++ /dev/null @@ -1,740 +0,0 @@ - - * Builds container images in the cloud.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_CloudBuild extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $operations; - public $projects_builds; - - - /** - * Constructs the internal representation of the CloudBuild service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://cloudbuild.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudbuild'; - - $this->operations = new Google_Service_CloudBuild_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects_builds = new Google_Service_CloudBuild_ProjectsBuilds_Resource( - $this, - $this->serviceName, - 'builds', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'v1/projects/{projectId}/builds/{id}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'v1/projects/{projectId}/builds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}/builds/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/builds', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $cloudbuildService = new Google_Service_CloudBuild(...); - * $operations = $cloudbuildService->operations; - * - */ -class Google_Service_CloudBuild_Operations_Resource extends Google_Service_Resource -{ - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) - * - * @param string $name The name of the operation resource. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudBuild_Operation - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudBuild_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. - * - * NOTE: the `name` binding below allows API services to override the binding to - * use different resource name schemes, such as `users/operations`. - * (operations.listOperations) - * - * @param string $name The name of the operation collection. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The standard list page size. - * @opt_param string filter The standard list filter. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_CloudBuild_ListOperationsResponse - */ - public function listOperations($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudBuild_ListOperationsResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudbuildService = new Google_Service_CloudBuild(...); - * $projects = $cloudbuildService->projects; - * - */ -class Google_Service_CloudBuild_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "builds" collection of methods. - * Typical usage is: - * - * $cloudbuildService = new Google_Service_CloudBuild(...); - * $builds = $cloudbuildService->builds; - * - */ -class Google_Service_CloudBuild_ProjectsBuilds_Resource extends Google_Service_Resource -{ - - /** - * Cancels a requested build in progress. (builds.cancel) - * - * @param string $projectId ID of the project. - * @param string $id ID of the build. - * @param Google_CancelBuildRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudBuild_Build - */ - public function cancel($projectId, $id, Google_Service_CloudBuild_CancelBuildRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_CloudBuild_Build"); - } - - /** - * Starts a build with the specified configuration. - * - * The long-running Operation returned by this method will include the ID of the - * build, which can be passed to GetBuild to determine its status (e.g., success - * or failure). (builds.create) - * - * @param string $projectId ID of the project. - * @param Google_Build $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudBuild_Operation - */ - public function create($projectId, Google_Service_CloudBuild_Build $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_CloudBuild_Operation"); - } - - /** - * Returns information about a previously requested build. - * - * The Build that is returned includes its status (e.g., success or failure, or - * in-progress), and timing information. (builds.get) - * - * @param string $projectId ID of the project. - * @param string $id ID of the build. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudBuild_Build - */ - public function get($projectId, $id, $optParams = array()) - { - $params = array('projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_CloudBuild_Build"); - } - - /** - * Lists previously requested builds. - * - * Previously requested builds may still be in-progress, or may have finished - * successfully or unsuccessfully. (builds.listProjectsBuilds) - * - * @param string $projectId ID of the project. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Number of results to return in the list. - * @opt_param string pageToken Token to provide to skip to a particular spot in - * the list. - * @return Google_Service_CloudBuild_ListBuildsResponse - */ - public function listProjectsBuilds($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudBuild_ListBuildsResponse"); - } -} - - - - -class Google_Service_CloudBuild_Build extends Google_Collection -{ - protected $collection_key = 'steps'; - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $finishTime; - public $id; - public $images; - public $logsBucket; - public $projectId; - protected $resultsType = 'Google_Service_CloudBuild_Results'; - protected $resultsDataType = ''; - protected $sourceType = 'Google_Service_CloudBuild_Source'; - protected $sourceDataType = ''; - public $startTime; - public $status; - protected $stepsType = 'Google_Service_CloudBuild_BuildStep'; - protected $stepsDataType = 'array'; - public $timeout; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setFinishTime($finishTime) - { - $this->finishTime = $finishTime; - } - public function getFinishTime() - { - return $this->finishTime; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImages($images) - { - $this->images = $images; - } - public function getImages() - { - return $this->images; - } - public function setLogsBucket($logsBucket) - { - $this->logsBucket = $logsBucket; - } - public function getLogsBucket() - { - return $this->logsBucket; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setResults(Google_Service_CloudBuild_Results $results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } - public function setSource(Google_Service_CloudBuild_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - 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 setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } - public function setTimeout($timeout) - { - $this->timeout = $timeout; - } - public function getTimeout() - { - return $this->timeout; - } -} - -class Google_Service_CloudBuild_BuildOperationMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $buildType = 'Google_Service_CloudBuild_Build'; - protected $buildDataType = ''; - - - public function setBuild(Google_Service_CloudBuild_Build $build) - { - $this->build = $build; - } - public function getBuild() - { - return $this->build; - } -} - -class Google_Service_CloudBuild_BuildStep extends Google_Collection -{ - protected $collection_key = 'env'; - protected $internal_gapi_mappings = array( - ); - public $args; - public $dir; - public $env; - public $name; - - - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setDir($dir) - { - $this->dir = $dir; - } - public function getDir() - { - return $this->dir; - } - public function setEnv($env) - { - $this->env = $env; - } - public function getEnv() - { - return $this->env; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_CloudBuild_BuiltImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $digest; - public $name; - - - public function setDigest($digest) - { - $this->digest = $digest; - } - public function getDigest() - { - return $this->digest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_CloudBuild_CancelBuildRequest extends Google_Model -{ -} - -class Google_Service_CloudBuild_ListBuildsResponse extends Google_Collection -{ - protected $collection_key = 'builds'; - protected $internal_gapi_mappings = array( - ); - protected $buildsType = 'Google_Service_CloudBuild_Build'; - protected $buildsDataType = 'array'; - public $nextPageToken; - - - public function setBuilds($builds) - { - $this->builds = $builds; - } - public function getBuilds() - { - return $this->builds; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_CloudBuild_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_CloudBuild_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_CloudBuild_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_CloudBuild_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_CloudBuild_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_CloudBuild_Results extends Google_Collection -{ - protected $collection_key = 'images'; - protected $internal_gapi_mappings = array( - ); - protected $imagesType = 'Google_Service_CloudBuild_BuiltImage'; - protected $imagesDataType = 'array'; - - - public function setImages($images) - { - $this->images = $images; - } - public function getImages() - { - return $this->images; - } -} - -class Google_Service_CloudBuild_Source extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $storageSourceType = 'Google_Service_CloudBuild_StorageSource'; - protected $storageSourceDataType = ''; - - - public function setStorageSource(Google_Service_CloudBuild_StorageSource $storageSource) - { - $this->storageSource = $storageSource; - } - public function getStorageSource() - { - return $this->storageSource; - } -} - -class Google_Service_CloudBuild_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_CloudBuild_StorageSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucket; - public $object; - - - public function setBucket($bucket) - { - $this->bucket = $bucket; - } - public function getBucket() - { - return $this->bucket; - } - public function setObject($object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } -} diff --git a/src/Google/Service/Clouddebugger.php b/src/Google/Service/Clouddebugger.php deleted file mode 100644 index 55218933f..000000000 --- a/src/Google/Service/Clouddebugger.php +++ /dev/null @@ -1,1450 +0,0 @@ - - * Lets you examine the stack and variables of your running application without - * stopping or slowing it down.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Clouddebugger extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage cloud debugger. */ - const CLOUD_DEBUGGER = - "https://www.googleapis.com/auth/cloud_debugger"; - /** Manage active breakpoints in cloud debugger. */ - const CLOUD_DEBUGLETCONTROLLER = - "https://www.googleapis.com/auth/cloud_debugletcontroller"; - - public $controller_debuggees; - public $controller_debuggees_breakpoints; - public $debugger_debuggees; - public $debugger_debuggees_breakpoints; - - - /** - * Constructs the internal representation of the Clouddebugger service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://clouddebugger.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v2'; - $this->serviceName = 'clouddebugger'; - - $this->controller_debuggees = new Google_Service_Clouddebugger_ControllerDebuggees_Resource( - $this, - $this->serviceName, - 'debuggees', - array( - 'methods' => array( - 'register' => array( - 'path' => 'v2/controller/debuggees/register', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->controller_debuggees_breakpoints = new Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource( - $this, - $this->serviceName, - 'breakpoints', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints', - 'httpMethod' => 'GET', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'waitToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'successOnTimeout' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->debugger_debuggees = new Google_Service_Clouddebugger_DebuggerDebuggees_Resource( - $this, - $this->serviceName, - 'debuggees', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/debugger/debuggees', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->debugger_debuggees_breakpoints = new Google_Service_Clouddebugger_DebuggerDebuggeesBreakpoints_Resource( - $this, - $this->serviceName, - 'breakpoints', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'breakpointId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'breakpointId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints', - 'httpMethod' => 'GET', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeAllUsers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'action.value' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stripResults' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'waitToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'set' => array( - 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'debuggeeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "controller" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $controller = $clouddebuggerService->controller; - * - */ -class Google_Service_Clouddebugger_Controller_Resource extends Google_Service_Resource -{ -} - -/** - * The "debuggees" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $debuggees = $clouddebuggerService->debuggees; - * - */ -class Google_Service_Clouddebugger_ControllerDebuggees_Resource extends Google_Service_Resource -{ - - /** - * Registers the debuggee with the controller service. All agents attached to - * the same application should call this method with the same request content to - * get back the same stable `debuggee_id`. Agents should call this method again - * whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method. - * This allows the controller service to disable the agent or recover from any - * data loss. If the debuggee is disabled by the server, the response will have - * `is_disabled` set to `true`. (debuggees.register) - * - * @param Google_RegisterDebuggeeRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Clouddebugger_RegisterDebuggeeResponse - */ - public function register(Google_Service_Clouddebugger_RegisterDebuggeeRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('register', array($params), "Google_Service_Clouddebugger_RegisterDebuggeeResponse"); - } -} - -/** - * The "breakpoints" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $breakpoints = $clouddebuggerService->breakpoints; - * - */ -class Google_Service_Clouddebugger_ControllerDebuggeesBreakpoints_Resource extends Google_Service_Resource -{ - - /** - * Returns the list of all active breakpoints for the debuggee. The breakpoint - * specification (location, condition, and expression fields) is semantically - * immutable, although the field values may change. For example, an agent may - * update the location line number to reflect the actual line where the - * breakpoint was set, but this doesn't change the breakpoint semantics. This - * means that an agent does not need to check if a breakpoint has changed when - * it encounters the same breakpoint on a successive call. Moreover, an agent - * should remember the breakpoints that are completed until the controller - * removes them from the active list to avoid setting those breakpoints again. - * (breakpoints.listControllerDebuggeesBreakpoints) - * - * @param string $debuggeeId Identifies the debuggee. - * @param array $optParams Optional parameters. - * - * @opt_param string waitToken A wait token that, if specified, blocks the - * method call until the list of active breakpoints has changed, or a server - * selected timeout has expired. The value should be set from the last returned - * response. - * @opt_param bool successOnTimeout If set to `true`, returns - * `google.rpc.Code.OK` status and sets the `wait_expired` response field to - * `true` when the server-selected timeout has expired (recommended). If set to - * `false`, returns `google.rpc.Code.ABORTED` status when the server-selected - * timeout has expired (deprecated). - * @return Google_Service_Clouddebugger_ListActiveBreakpointsResponse - */ - public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Clouddebugger_ListActiveBreakpointsResponse"); - } - - /** - * Updates the breakpoint state or mutable fields. The entire Breakpoint message - * must be sent back to the controller service. Updates to active breakpoint - * fields are only allowed if the new value does not change the breakpoint - * specification. Updates to the `location`, `condition` and `expression` fields - * should not alter the breakpoint semantics. These may only make changes such - * as canonicalizing a value or snapping the location to the correct line of - * code. (breakpoints.update) - * - * @param string $debuggeeId Identifies the debuggee being debugged. - * @param string $id Breakpoint identifier, unique in the scope of the debuggee. - * @param Google_UpdateActiveBreakpointRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Clouddebugger_UpdateActiveBreakpointResponse - */ - public function update($debuggeeId, $id, Google_Service_Clouddebugger_UpdateActiveBreakpointRequest $postBody, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Clouddebugger_UpdateActiveBreakpointResponse"); - } -} - -/** - * The "debugger" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $debugger = $clouddebuggerService->debugger; - * - */ -class Google_Service_Clouddebugger_Debugger_Resource extends Google_Service_Resource -{ -} - -/** - * The "debuggees" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $debuggees = $clouddebuggerService->debuggees; - * - */ -class Google_Service_Clouddebugger_DebuggerDebuggees_Resource extends Google_Service_Resource -{ - - /** - * Lists all the debuggees that the user can set breakpoints to. - * (debuggees.listDebuggerDebuggees) - * - * @param array $optParams Optional parameters. - * - * @opt_param string project Project number of a Google Cloud project whose - * debuggees to list. - * @opt_param bool includeInactive When set to `true`, the result includes all - * debuggees. Otherwise, the result includes only debuggees that are active. - * @return Google_Service_Clouddebugger_ListDebuggeesResponse - */ - public function listDebuggerDebuggees($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Clouddebugger_ListDebuggeesResponse"); - } -} - -/** - * The "breakpoints" collection of methods. - * Typical usage is: - * - * $clouddebuggerService = new Google_Service_Clouddebugger(...); - * $breakpoints = $clouddebuggerService->breakpoints; - * - */ -class Google_Service_Clouddebugger_DebuggerDebuggeesBreakpoints_Resource extends Google_Service_Resource -{ - - /** - * Deletes the breakpoint from the debuggee. (breakpoints.delete) - * - * @param string $debuggeeId ID of the debuggee whose breakpoint to delete. - * @param string $breakpointId ID of the breakpoint to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Clouddebugger_Empty - */ - public function delete($debuggeeId, $breakpointId, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Clouddebugger_Empty"); - } - - /** - * Gets breakpoint information. (breakpoints.get) - * - * @param string $debuggeeId ID of the debuggee whose breakpoint to get. - * @param string $breakpointId ID of the breakpoint to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Clouddebugger_GetBreakpointResponse - */ - public function get($debuggeeId, $breakpointId, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Clouddebugger_GetBreakpointResponse"); - } - - /** - * Lists all breakpoints for the debuggee. - * (breakpoints.listDebuggerDebuggeesBreakpoints) - * - * @param string $debuggeeId ID of the debuggee whose breakpoints to list. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeAllUsers When set to `true`, the response includes the - * list of breakpoints set by any user. Otherwise, it includes only breakpoints - * set by the caller. - * @opt_param bool includeInactive When set to `true`, the response includes - * active and inactive breakpoints. Otherwise, it includes only active - * breakpoints. - * @opt_param string action.value Only breakpoints with the specified action - * will pass the filter. - * @opt_param bool stripResults When set to `true`, the response breakpoints are - * stripped of the results fields: `stack_frames`, `evaluated_expressions` and - * `variable_table`. - * @opt_param string waitToken A wait token that, if specified, blocks the call - * until the breakpoints list has changed, or a server selected timeout has - * expired. The value should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be - * called again with the same `wait_token`. - * @return Google_Service_Clouddebugger_ListBreakpointsResponse - */ - public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Clouddebugger_ListBreakpointsResponse"); - } - - /** - * Sets the breakpoint to the debuggee. (breakpoints.set) - * - * @param string $debuggeeId ID of the debuggee where the breakpoint is to be - * set. - * @param Google_Breakpoint $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Clouddebugger_SetBreakpointResponse - */ - public function set($debuggeeId, Google_Service_Clouddebugger_Breakpoint $postBody, $optParams = array()) - { - $params = array('debuggeeId' => $debuggeeId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_Clouddebugger_SetBreakpointResponse"); - } -} - - - - -class Google_Service_Clouddebugger_AliasContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - 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_Clouddebugger_Breakpoint extends Google_Collection -{ - protected $collection_key = 'variableTable'; - protected $internal_gapi_mappings = array( - ); - public $action; - public $condition; - public $createTime; - protected $evaluatedExpressionsType = 'Google_Service_Clouddebugger_Variable'; - protected $evaluatedExpressionsDataType = 'array'; - public $expressions; - public $finalTime; - public $id; - public $isFinalState; - protected $locationType = 'Google_Service_Clouddebugger_SourceLocation'; - protected $locationDataType = ''; - public $logLevel; - public $logMessageFormat; - protected $stackFramesType = 'Google_Service_Clouddebugger_StackFrame'; - protected $stackFramesDataType = 'array'; - protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; - protected $statusDataType = ''; - public $userEmail; - protected $variableTableType = 'Google_Service_Clouddebugger_Variable'; - protected $variableTableDataType = 'array'; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setEvaluatedExpressions($evaluatedExpressions) - { - $this->evaluatedExpressions = $evaluatedExpressions; - } - public function getEvaluatedExpressions() - { - return $this->evaluatedExpressions; - } - public function setExpressions($expressions) - { - $this->expressions = $expressions; - } - public function getExpressions() - { - return $this->expressions; - } - public function setFinalTime($finalTime) - { - $this->finalTime = $finalTime; - } - public function getFinalTime() - { - return $this->finalTime; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsFinalState($isFinalState) - { - $this->isFinalState = $isFinalState; - } - public function getIsFinalState() - { - return $this->isFinalState; - } - public function setLocation(Google_Service_Clouddebugger_SourceLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setLogLevel($logLevel) - { - $this->logLevel = $logLevel; - } - public function getLogLevel() - { - return $this->logLevel; - } - public function setLogMessageFormat($logMessageFormat) - { - $this->logMessageFormat = $logMessageFormat; - } - public function getLogMessageFormat() - { - return $this->logMessageFormat; - } - public function setStackFrames($stackFrames) - { - $this->stackFrames = $stackFrames; - } - public function getStackFrames() - { - return $this->stackFrames; - } - public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } - public function getUserEmail() - { - return $this->userEmail; - } - public function setVariableTable($variableTable) - { - $this->variableTable = $variableTable; - } - public function getVariableTable() - { - return $this->variableTable; - } -} - -class Google_Service_Clouddebugger_CloudRepoSourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $aliasContextType = 'Google_Service_Clouddebugger_AliasContext'; - protected $aliasContextDataType = ''; - public $aliasName; - protected $repoIdType = 'Google_Service_Clouddebugger_RepoId'; - protected $repoIdDataType = ''; - public $revisionId; - - - public function setAliasContext(Google_Service_Clouddebugger_AliasContext $aliasContext) - { - $this->aliasContext = $aliasContext; - } - public function getAliasContext() - { - return $this->aliasContext; - } - public function setAliasName($aliasName) - { - $this->aliasName = $aliasName; - } - public function getAliasName() - { - return $this->aliasName; - } - public function setRepoId(Google_Service_Clouddebugger_RepoId $repoId) - { - $this->repoId = $repoId; - } - public function getRepoId() - { - return $this->repoId; - } - public function setRevisionId($revisionId) - { - $this->revisionId = $revisionId; - } - public function getRevisionId() - { - return $this->revisionId; - } -} - -class Google_Service_Clouddebugger_CloudWorkspaceId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - protected $repoIdType = 'Google_Service_Clouddebugger_RepoId'; - protected $repoIdDataType = ''; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRepoId(Google_Service_Clouddebugger_RepoId $repoId) - { - $this->repoId = $repoId; - } - public function getRepoId() - { - return $this->repoId; - } -} - -class Google_Service_Clouddebugger_CloudWorkspaceSourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $snapshotId; - protected $workspaceIdType = 'Google_Service_Clouddebugger_CloudWorkspaceId'; - protected $workspaceIdDataType = ''; - - - public function setSnapshotId($snapshotId) - { - $this->snapshotId = $snapshotId; - } - public function getSnapshotId() - { - return $this->snapshotId; - } - public function setWorkspaceId(Google_Service_Clouddebugger_CloudWorkspaceId $workspaceId) - { - $this->workspaceId = $workspaceId; - } - public function getWorkspaceId() - { - return $this->workspaceId; - } -} - -class Google_Service_Clouddebugger_Debuggee extends Google_Collection -{ - protected $collection_key = 'sourceContexts'; - protected $internal_gapi_mappings = array( - ); - public $agentVersion; - public $description; - protected $extSourceContextsType = 'Google_Service_Clouddebugger_ExtendedSourceContext'; - protected $extSourceContextsDataType = 'array'; - public $id; - public $isDisabled; - public $isInactive; - public $labels; - public $project; - protected $sourceContextsType = 'Google_Service_Clouddebugger_SourceContext'; - protected $sourceContextsDataType = 'array'; - protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; - protected $statusDataType = ''; - public $uniquifier; - - - public function setAgentVersion($agentVersion) - { - $this->agentVersion = $agentVersion; - } - public function getAgentVersion() - { - return $this->agentVersion; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExtSourceContexts($extSourceContexts) - { - $this->extSourceContexts = $extSourceContexts; - } - public function getExtSourceContexts() - { - return $this->extSourceContexts; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsDisabled($isDisabled) - { - $this->isDisabled = $isDisabled; - } - public function getIsDisabled() - { - return $this->isDisabled; - } - public function setIsInactive($isInactive) - { - $this->isInactive = $isInactive; - } - public function getIsInactive() - { - return $this->isInactive; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setSourceContexts($sourceContexts) - { - $this->sourceContexts = $sourceContexts; - } - public function getSourceContexts() - { - return $this->sourceContexts; - } - public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUniquifier($uniquifier) - { - $this->uniquifier = $uniquifier; - } - public function getUniquifier() - { - return $this->uniquifier; - } -} - -class Google_Service_Clouddebugger_Empty extends Google_Model -{ -} - -class Google_Service_Clouddebugger_ExtendedSourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contextType = 'Google_Service_Clouddebugger_SourceContext'; - protected $contextDataType = ''; - public $labels; - - - public function setContext(Google_Service_Clouddebugger_SourceContext $context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } -} - -class Google_Service_Clouddebugger_FormatMessage extends Google_Collection -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $format; - public $parameters; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } - public function getParameters() - { - return $this->parameters; - } -} - -class Google_Service_Clouddebugger_GerritSourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $aliasContextType = 'Google_Service_Clouddebugger_AliasContext'; - protected $aliasContextDataType = ''; - public $aliasName; - public $gerritProject; - public $hostUri; - public $revisionId; - - - public function setAliasContext(Google_Service_Clouddebugger_AliasContext $aliasContext) - { - $this->aliasContext = $aliasContext; - } - public function getAliasContext() - { - return $this->aliasContext; - } - public function setAliasName($aliasName) - { - $this->aliasName = $aliasName; - } - public function getAliasName() - { - return $this->aliasName; - } - public function setGerritProject($gerritProject) - { - $this->gerritProject = $gerritProject; - } - public function getGerritProject() - { - return $this->gerritProject; - } - public function setHostUri($hostUri) - { - $this->hostUri = $hostUri; - } - public function getHostUri() - { - return $this->hostUri; - } - public function setRevisionId($revisionId) - { - $this->revisionId = $revisionId; - } - public function getRevisionId() - { - return $this->revisionId; - } -} - -class Google_Service_Clouddebugger_GetBreakpointResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; - protected $breakpointDataType = ''; - - - public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) - { - $this->breakpoint = $breakpoint; - } - public function getBreakpoint() - { - return $this->breakpoint; - } -} - -class Google_Service_Clouddebugger_GitSourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $revisionId; - public $url; - - - public function setRevisionId($revisionId) - { - $this->revisionId = $revisionId; - } - public function getRevisionId() - { - return $this->revisionId; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Clouddebugger_ListActiveBreakpointsResponse extends Google_Collection -{ - protected $collection_key = 'breakpoints'; - protected $internal_gapi_mappings = array( - ); - protected $breakpointsType = 'Google_Service_Clouddebugger_Breakpoint'; - protected $breakpointsDataType = 'array'; - public $nextWaitToken; - public $waitExpired; - - - public function setBreakpoints($breakpoints) - { - $this->breakpoints = $breakpoints; - } - public function getBreakpoints() - { - return $this->breakpoints; - } - public function setNextWaitToken($nextWaitToken) - { - $this->nextWaitToken = $nextWaitToken; - } - public function getNextWaitToken() - { - return $this->nextWaitToken; - } - public function setWaitExpired($waitExpired) - { - $this->waitExpired = $waitExpired; - } - public function getWaitExpired() - { - return $this->waitExpired; - } -} - -class Google_Service_Clouddebugger_ListBreakpointsResponse extends Google_Collection -{ - protected $collection_key = 'breakpoints'; - protected $internal_gapi_mappings = array( - ); - protected $breakpointsType = 'Google_Service_Clouddebugger_Breakpoint'; - protected $breakpointsDataType = 'array'; - public $nextWaitToken; - - - public function setBreakpoints($breakpoints) - { - $this->breakpoints = $breakpoints; - } - public function getBreakpoints() - { - return $this->breakpoints; - } - public function setNextWaitToken($nextWaitToken) - { - $this->nextWaitToken = $nextWaitToken; - } - public function getNextWaitToken() - { - return $this->nextWaitToken; - } -} - -class Google_Service_Clouddebugger_ListDebuggeesResponse extends Google_Collection -{ - protected $collection_key = 'debuggees'; - protected $internal_gapi_mappings = array( - ); - protected $debuggeesType = 'Google_Service_Clouddebugger_Debuggee'; - protected $debuggeesDataType = 'array'; - - - public function setDebuggees($debuggees) - { - $this->debuggees = $debuggees; - } - public function getDebuggees() - { - return $this->debuggees; - } -} - -class Google_Service_Clouddebugger_ProjectRepoId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $projectId; - public $repoName; - - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRepoName($repoName) - { - $this->repoName = $repoName; - } - public function getRepoName() - { - return $this->repoName; - } -} - -class Google_Service_Clouddebugger_RegisterDebuggeeRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $debuggeeType = 'Google_Service_Clouddebugger_Debuggee'; - protected $debuggeeDataType = ''; - - - public function setDebuggee(Google_Service_Clouddebugger_Debuggee $debuggee) - { - $this->debuggee = $debuggee; - } - public function getDebuggee() - { - return $this->debuggee; - } -} - -class Google_Service_Clouddebugger_RegisterDebuggeeResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $debuggeeType = 'Google_Service_Clouddebugger_Debuggee'; - protected $debuggeeDataType = ''; - - - public function setDebuggee(Google_Service_Clouddebugger_Debuggee $debuggee) - { - $this->debuggee = $debuggee; - } - public function getDebuggee() - { - return $this->debuggee; - } -} - -class Google_Service_Clouddebugger_RepoId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $projectRepoIdType = 'Google_Service_Clouddebugger_ProjectRepoId'; - protected $projectRepoIdDataType = ''; - public $uid; - - - public function setProjectRepoId(Google_Service_Clouddebugger_ProjectRepoId $projectRepoId) - { - $this->projectRepoId = $projectRepoId; - } - public function getProjectRepoId() - { - return $this->projectRepoId; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } -} - -class Google_Service_Clouddebugger_SetBreakpointResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; - protected $breakpointDataType = ''; - - - public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) - { - $this->breakpoint = $breakpoint; - } - public function getBreakpoint() - { - return $this->breakpoint; - } -} - -class Google_Service_Clouddebugger_SourceContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloudRepoType = 'Google_Service_Clouddebugger_CloudRepoSourceContext'; - protected $cloudRepoDataType = ''; - protected $cloudWorkspaceType = 'Google_Service_Clouddebugger_CloudWorkspaceSourceContext'; - protected $cloudWorkspaceDataType = ''; - protected $gerritType = 'Google_Service_Clouddebugger_GerritSourceContext'; - protected $gerritDataType = ''; - protected $gitType = 'Google_Service_Clouddebugger_GitSourceContext'; - protected $gitDataType = ''; - - - public function setCloudRepo(Google_Service_Clouddebugger_CloudRepoSourceContext $cloudRepo) - { - $this->cloudRepo = $cloudRepo; - } - public function getCloudRepo() - { - return $this->cloudRepo; - } - public function setCloudWorkspace(Google_Service_Clouddebugger_CloudWorkspaceSourceContext $cloudWorkspace) - { - $this->cloudWorkspace = $cloudWorkspace; - } - public function getCloudWorkspace() - { - return $this->cloudWorkspace; - } - public function setGerrit(Google_Service_Clouddebugger_GerritSourceContext $gerrit) - { - $this->gerrit = $gerrit; - } - public function getGerrit() - { - return $this->gerrit; - } - public function setGit(Google_Service_Clouddebugger_GitSourceContext $git) - { - $this->git = $git; - } - public function getGit() - { - return $this->git; - } -} - -class Google_Service_Clouddebugger_SourceLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $line; - public $path; - - - public function setLine($line) - { - $this->line = $line; - } - public function getLine() - { - return $this->line; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Clouddebugger_StackFrame extends Google_Collection -{ - protected $collection_key = 'locals'; - protected $internal_gapi_mappings = array( - ); - protected $argumentsType = 'Google_Service_Clouddebugger_Variable'; - protected $argumentsDataType = 'array'; - public $function; - protected $localsType = 'Google_Service_Clouddebugger_Variable'; - protected $localsDataType = 'array'; - protected $locationType = 'Google_Service_Clouddebugger_SourceLocation'; - protected $locationDataType = ''; - - - public function setArguments($arguments) - { - $this->arguments = $arguments; - } - public function getArguments() - { - return $this->arguments; - } - public function setFunction($function) - { - $this->function = $function; - } - public function getFunction() - { - return $this->function; - } - public function setLocals($locals) - { - $this->locals = $locals; - } - public function getLocals() - { - return $this->locals; - } - public function setLocation(Google_Service_Clouddebugger_SourceLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } -} - -class Google_Service_Clouddebugger_StatusMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $descriptionType = 'Google_Service_Clouddebugger_FormatMessage'; - protected $descriptionDataType = ''; - public $isError; - public $refersTo; - - - public function setDescription(Google_Service_Clouddebugger_FormatMessage $description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIsError($isError) - { - $this->isError = $isError; - } - public function getIsError() - { - return $this->isError; - } - public function setRefersTo($refersTo) - { - $this->refersTo = $refersTo; - } - public function getRefersTo() - { - return $this->refersTo; - } -} - -class Google_Service_Clouddebugger_UpdateActiveBreakpointRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $breakpointType = 'Google_Service_Clouddebugger_Breakpoint'; - protected $breakpointDataType = ''; - - - public function setBreakpoint(Google_Service_Clouddebugger_Breakpoint $breakpoint) - { - $this->breakpoint = $breakpoint; - } - public function getBreakpoint() - { - return $this->breakpoint; - } -} - -class Google_Service_Clouddebugger_UpdateActiveBreakpointResponse extends Google_Model -{ -} - -class Google_Service_Clouddebugger_Variable extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - protected $membersType = 'Google_Service_Clouddebugger_Variable'; - protected $membersDataType = 'array'; - public $name; - protected $statusType = 'Google_Service_Clouddebugger_StatusMessage'; - protected $statusDataType = ''; - public $type; - public $value; - public $varTableIndex; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setStatus(Google_Service_Clouddebugger_StatusMessage $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } - public function setVarTableIndex($varTableIndex) - { - $this->varTableIndex = $varTableIndex; - } - public function getVarTableIndex() - { - return $this->varTableIndex; - } -} diff --git a/src/Google/Service/Cloudlatencytest.php b/src/Google/Service/Cloudlatencytest.php deleted file mode 100644 index 09254ffd7..000000000 --- a/src/Google/Service/Cloudlatencytest.php +++ /dev/null @@ -1,295 +0,0 @@ - - * A Test API to report latency data.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Cloudlatencytest extends Google_Service -{ - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = - "https://www.googleapis.com/auth/monitoring.readonly"; - - public $statscollection; - - - /** - * Constructs the internal representation of the Cloudlatencytest service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://cloudlatencytest-pa.googleapis.com/'; - $this->servicePath = 'v2/statscollection/'; - $this->version = 'v2'; - $this->serviceName = 'cloudlatencytest'; - - $this->statscollection = new Google_Service_Cloudlatencytest_Statscollection_Resource( - $this, - $this->serviceName, - 'statscollection', - array( - 'methods' => array( - 'updateaggregatedstats' => array( - 'path' => 'updateaggregatedstats', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'updatestats' => array( - 'path' => 'updatestats', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "statscollection" collection of methods. - * Typical usage is: - * - * $cloudlatencytestService = new Google_Service_Cloudlatencytest(...); - * $statscollection = $cloudlatencytestService->statscollection; - * - */ -class Google_Service_Cloudlatencytest_Statscollection_Resource extends Google_Service_Resource -{ - - /** - * RPC to update the new TCP stats. (statscollection.updateaggregatedstats) - * - * @param Google_AggregatedStats $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudlatencytest_AggregatedStatsReply - */ - public function updateaggregatedstats(Google_Service_Cloudlatencytest_AggregatedStats $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateaggregatedstats', array($params), "Google_Service_Cloudlatencytest_AggregatedStatsReply"); - } - - /** - * RPC to update the new TCP stats. (statscollection.updatestats) - * - * @param Google_Stats $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudlatencytest_StatsReply - */ - public function updatestats(Google_Service_Cloudlatencytest_Stats $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updatestats', array($params), "Google_Service_Cloudlatencytest_StatsReply"); - } -} - - - - -class Google_Service_Cloudlatencytest_AggregatedStats extends Google_Collection -{ - protected $collection_key = 'stats'; - protected $internal_gapi_mappings = array( - ); - protected $statsType = 'Google_Service_Cloudlatencytest_Stats'; - protected $statsDataType = 'array'; - - - public function setStats($stats) - { - $this->stats = $stats; - } - public function getStats() - { - return $this->stats; - } -} - -class Google_Service_Cloudlatencytest_AggregatedStatsReply extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $testValue; - - - public function setTestValue($testValue) - { - $this->testValue = $testValue; - } - public function getTestValue() - { - return $this->testValue; - } -} - -class Google_Service_Cloudlatencytest_DoubleValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $label; - public $value; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Cloudlatencytest_IntValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $label; - public $value; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Cloudlatencytest_Stats extends Google_Collection -{ - protected $collection_key = 'stringValues'; - protected $internal_gapi_mappings = array( - ); - protected $doubleValuesType = 'Google_Service_Cloudlatencytest_DoubleValue'; - protected $doubleValuesDataType = 'array'; - protected $intValuesType = 'Google_Service_Cloudlatencytest_IntValue'; - protected $intValuesDataType = 'array'; - protected $stringValuesType = 'Google_Service_Cloudlatencytest_StringValue'; - protected $stringValuesDataType = 'array'; - public $time; - - - public function setDoubleValues($doubleValues) - { - $this->doubleValues = $doubleValues; - } - public function getDoubleValues() - { - return $this->doubleValues; - } - public function setIntValues($intValues) - { - $this->intValues = $intValues; - } - public function getIntValues() - { - return $this->intValues; - } - public function setStringValues($stringValues) - { - $this->stringValues = $stringValues; - } - public function getStringValues() - { - return $this->stringValues; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Cloudlatencytest_StatsReply extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $testValue; - - - public function setTestValue($testValue) - { - $this->testValue = $testValue; - } - public function getTestValue() - { - return $this->testValue; - } -} - -class Google_Service_Cloudlatencytest_StringValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $label; - public $value; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} diff --git a/src/Google/Service/Cloudresourcemanager.php b/src/Google/Service/Cloudresourcemanager.php deleted file mode 100644 index ac8c08f7f..000000000 --- a/src/Google/Service/Cloudresourcemanager.php +++ /dev/null @@ -1,611 +0,0 @@ - - * The Google Cloud Resource Manager API provides methods for creating, reading, - * and updating project metadata.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Cloudresourcemanager extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - - public $projects; - - - /** - * Constructs the internal representation of the Cloudresourcemanager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudresourcemanager'; - - $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v1/projects/{projectId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1/projects/{resource}:getIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/projects/{resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/projects/{resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'v1/projects/{projectId}:undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1/projects/{projectId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...); - * $projects = $cloudresourcemanagerService->projects; - * - */ -class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource -{ - - /** - * Marks the Project identified by the specified `project_id` (for example, `my- - * project-123`) for deletion. This method will only affect the Project if the - * following criteria are met: + The Project does not have a billing account - * associated with it. + The Project has a lifecycle state of ACTIVE. This - * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. - * The deletion starts at an unspecified time, at which point the lifecycle - * state changes to DELETE_IN_PROGRESS. Until the deletion completes, you can - * check the lifecycle state checked by retrieving the Project with GetProject, - * and the Project remains visible to ListProjects. However, you cannot update - * the project. After the deletion completes, the Project is not retrievable by - * the GetProject and ListProjects methods. The caller must have modify - * permissions for this Project. (projects.delete) - * - * @param string $projectId The Project ID (for example, `foo-bar-123`). - * Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Empty - */ - public function delete($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty"); - } - - /** - * Retrieves the Project identified by the specified `project_id` (for example, - * `my-project-123`). The caller must have read permissions for this Project. - * (projects.get) - * - * @param string $projectId The Project ID (for example, `my-project-123`). - * Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Project - */ - public function get($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project"); - } - - /** - * Returns the IAM access control policy for the specified Project. Permission - * is denied if the policy or the resource does not exist. - * (projects.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `getIamPolicy` - * documentation. - * @param Google_GetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Policy - */ - public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); - } - - /** - * Lists Projects that are visible to the user and satisfy the specified filter. - * This method returns Projects in an unspecified order. New Projects do not - * necessarily appear at the end of the list. (projects.listProjects) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A pagination token returned from a previous call - * to ListProjects that indicates from where listing should continue. Optional. - * @opt_param int pageSize The maximum number of Projects to return in the - * response. The server can return fewer Projects than requested. If - * unspecified, server picks an appropriate default. Optional. - * @opt_param string filter An expression for filtering the results of the - * request. Filter rules are case insensitive. The fields eligible for filtering - * are: + `name` + `id` + labels.key where *key* is the name of a label Some - * examples of using labels as filters: |Filter|Description| - * |------|-----------| |name:*|The project has a name.| |name:Howl|The - * project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.| - * |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label - * `color`.| |labels.color:red|The project's label `color` has the value `red`.| - * |labels.color:red label.size:big|The project's label `color` has the value - * `red` and its label `size` has the value `big`. Optional. - * @return Google_Service_Cloudresourcemanager_ListProjectsResponse - */ - public function listProjects($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse"); - } - - /** - * Sets the IAM access control policy for the specified Project. Replaces any - * existing policy. The following constraints apply when using `setIamPolicy()`: - * + Project currently supports only `user:{emailid}` and - * `serviceAccount:{emailid}` members in a `Binding` of a `Policy`. + To be - * added as an `owner`, a user must be invited via Cloud Platform console and - * must accept the invitation. + Members cannot be added to more than one role - * in the same policy. + There must be at least one owner who has accepted the - * Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to - * to remove the last ToS-accepted owner from the policy will fail. + Calling - * this method requires enabling the App Engine Admin API. Note: Removing - * service accounts from policies or changing their roles can render services - * completely inoperable. It is important to understand how the service account - * is being used before removing or updating its roles. (projects.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `setIamPolicy` - * documentation. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Policy - */ - public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy"); - } - - /** - * Returns permissions that a caller has on the specified Project. - * (projects.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which the policy detail is - * being requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `testIamPermissions` - * documentation. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse"); - } - - /** - * Restores the Project identified by the specified `project_id` (for example, - * `my-project-123`). You can only use this method for a Project that has a - * lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a - * lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The - * caller must have modify permissions for this Project. (projects.undelete) - * - * @param string $projectId The project ID (for example, `foo-bar-123`). - * Required. - * @param Google_UndeleteProjectRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Empty - */ - public function undelete($projectId, Google_Service_Cloudresourcemanager_UndeleteProjectRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty"); - } - - /** - * Updates the attributes of the Project identified by the specified - * `project_id` (for example, `my-project-123`). The caller must have modify - * permissions for this Project. (projects.update) - * - * @param string $projectId The project ID (for example, `my-project-123`). - * Required. - * @param Google_Project $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudresourcemanager_Project - */ - public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project"); - } -} - - - - -class Google_Service_Cloudresourcemanager_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } -} - -class Google_Service_Cloudresourcemanager_Empty extends Google_Model -{ -} - -class Google_Service_Cloudresourcemanager_GetIamPolicyRequest extends Google_Model -{ -} - -class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection -{ - protected $collection_key = 'projects'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $projectsType = 'Google_Service_Cloudresourcemanager_Project'; - protected $projectsDataType = 'array'; - - - 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; - } -} - -class Google_Service_Cloudresourcemanager_Policy extends Google_Collection -{ - protected $collection_key = 'bindings'; - protected $internal_gapi_mappings = array( - ); - protected $bindingsType = 'Google_Service_Cloudresourcemanager_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - public $version; - - - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Cloudresourcemanager_Project extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $labels; - public $lifecycleState; - public $name; - protected $parentType = 'Google_Service_Cloudresourcemanager_ResourceId'; - protected $parentDataType = ''; - public $projectId; - public $projectNumber; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setLifecycleState($lifecycleState) - { - $this->lifecycleState = $lifecycleState; - } - public function getLifecycleState() - { - return $this->lifecycleState; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParent(Google_Service_Cloudresourcemanager_ResourceId $parent) - { - $this->parent = $parent; - } - public function getParent() - { - return $this->parent; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } -} - -class Google_Service_Cloudresourcemanager_ResourceId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Cloudresourcemanager_SetIamPolicyRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $policyType = 'Google_Service_Cloudresourcemanager_Policy'; - protected $policyDataType = ''; - - - public function setPolicy(Google_Service_Cloudresourcemanager_Policy $policy) - { - $this->policy = $policy; - } - public function getPolicy() - { - return $this->policy; - } -} - -class Google_Service_Cloudresourcemanager_TestIamPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Cloudresourcemanager_TestIamPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Cloudresourcemanager_UndeleteProjectRequest extends Google_Model -{ -} diff --git a/src/Google/Service/Cloudsearch.php b/src/Google/Service/Cloudsearch.php deleted file mode 100644 index 4a72df8fa..000000000 --- a/src/Google/Service/Cloudsearch.php +++ /dev/null @@ -1,53 +0,0 @@ - - * The Google Cloud Search API defines an application interface to index - * documents that contain structured data and to search those indexes. It - * supports full text search.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Cloudsearch extends Google_Service -{ - - - - - - /** - * Constructs the internal representation of the Cloudsearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudsearch'; - - } -} diff --git a/src/Google/Service/Cloudtrace.php b/src/Google/Service/Cloudtrace.php deleted file mode 100644 index 32ecb1412..000000000 --- a/src/Google/Service/Cloudtrace.php +++ /dev/null @@ -1,398 +0,0 @@ - - * The Cloud Trace API allows you to send traces to and retrieve traces from - * Google Cloud Trace.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Cloudtrace extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $projects; - public $projects_traces; - - - /** - * Constructs the internal representation of the Cloudtrace service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://cloudtrace.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'cloudtrace'; - - $this->projects = new Google_Service_Cloudtrace_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'patchTraces' => array( - 'path' => 'v1/projects/{projectId}/traces', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_traces = new Google_Service_Cloudtrace_ProjectsTraces_Resource( - $this, - $this->serviceName, - 'traces', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/projects/{projectId}/traces/{traceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'traceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/traces', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $cloudtraceService = new Google_Service_Cloudtrace(...); - * $projects = $cloudtraceService->projects; - * - */ -class Google_Service_Cloudtrace_Projects_Resource extends Google_Service_Resource -{ - - /** - * Sends new traces to Cloud Trace or updates existing traces. If the ID of a - * trace that you send matches that of an existing trace, any fields in the - * existing trace and its spans are overwritten by the provided values, and any - * new fields provided are merged with the existing trace data. If the ID does - * not match, a new trace is created. (projects.patchTraces) - * - * @param string $projectId ID of the Cloud project where the trace data is - * stored. - * @param Google_Traces $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudtrace_Empty - */ - public function patchTraces($projectId, Google_Service_Cloudtrace_Traces $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patchTraces', array($params), "Google_Service_Cloudtrace_Empty"); - } -} - -/** - * The "traces" collection of methods. - * Typical usage is: - * - * $cloudtraceService = new Google_Service_Cloudtrace(...); - * $traces = $cloudtraceService->traces; - * - */ -class Google_Service_Cloudtrace_ProjectsTraces_Resource extends Google_Service_Resource -{ - - /** - * Gets a single trace by its ID. (traces.get) - * - * @param string $projectId ID of the Cloud project where the trace data is - * stored. - * @param string $traceId ID of the trace to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Cloudtrace_Trace - */ - public function get($projectId, $traceId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'traceId' => $traceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Cloudtrace_Trace"); - } - - /** - * Returns of a list of traces that match the specified filter conditions. - * (traces.listProjectsTraces) - * - * @param string $projectId ID of the Cloud project where the trace data is - * stored. - * @param array $optParams Optional parameters. - * - * @opt_param string view Type of data returned for traces in the list. - * Optional. Default is `MINIMAL`. - * @opt_param int pageSize Maximum number of traces to return. If not specified - * or <= 0, the implementation selects a reasonable value. The implementation - * may return fewer traces than the requested page size. Optional. - * @opt_param string pageToken Token identifying the page of results to return. - * If provided, use the value of the `next_page_token` field from a previous - * request. Optional. - * @opt_param string startTime End of the time interval (inclusive) during which - * the trace data was collected from the application. - * @opt_param string endTime Start of the time interval (inclusive) during which - * the trace data was collected from the application. - * @opt_param string filter An optional filter for the request. - * @opt_param string orderBy Field used to sort the returned traces. Optional. - * Can be one of the following: * `trace_id` * `name` (`name` field of root span - * in the trace) * `duration` (difference between `end_time` and `start_time` - * fields of the root span) * `start` (`start_time` field of the root span) - * Descending order can be specified by appending `desc` to the sort field (for - * example, `name desc`). Only one sort field is permitted. - * @return Google_Service_Cloudtrace_ListTracesResponse - */ - public function listProjectsTraces($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Cloudtrace_ListTracesResponse"); - } -} - - - - -class Google_Service_Cloudtrace_Empty extends Google_Model -{ -} - -class Google_Service_Cloudtrace_ListTracesResponse extends Google_Collection -{ - protected $collection_key = 'traces'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $tracesType = 'Google_Service_Cloudtrace_Trace'; - protected $tracesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTraces($traces) - { - $this->traces = $traces; - } - public function getTraces() - { - return $this->traces; - } -} - -class Google_Service_Cloudtrace_Trace extends Google_Collection -{ - protected $collection_key = 'spans'; - protected $internal_gapi_mappings = array( - ); - public $projectId; - protected $spansType = 'Google_Service_Cloudtrace_TraceSpan'; - protected $spansDataType = 'array'; - public $traceId; - - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSpans($spans) - { - $this->spans = $spans; - } - public function getSpans() - { - return $this->spans; - } - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - public function getTraceId() - { - return $this->traceId; - } -} - -class Google_Service_Cloudtrace_TraceSpan extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $kind; - public $labels; - public $name; - public $parentSpanId; - public $spanId; - public $startTime; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentSpanId($parentSpanId) - { - $this->parentSpanId = $parentSpanId; - } - public function getParentSpanId() - { - return $this->parentSpanId; - } - public function setSpanId($spanId) - { - $this->spanId = $spanId; - } - public function getSpanId() - { - return $this->spanId; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_Cloudtrace_Traces extends Google_Collection -{ - protected $collection_key = 'traces'; - protected $internal_gapi_mappings = array( - ); - protected $tracesType = 'Google_Service_Cloudtrace_Trace'; - protected $tracesDataType = 'array'; - - - public function setTraces($traces) - { - $this->traces = $traces; - } - public function getTraces() - { - return $this->traces; - } -} diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php deleted file mode 100644 index 54c7f57fd..000000000 --- a/src/Google/Service/Compute.php +++ /dev/null @@ -1,19396 +0,0 @@ - - * 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 -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = - "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = - "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - - public $addresses; - public $autoscalers; - public $backendServices; - public $diskTypes; - public $disks; - public $firewalls; - public $forwardingRules; - public $globalAddresses; - public $globalForwardingRules; - public $globalOperations; - public $httpHealthChecks; - public $httpsHealthChecks; - public $images; - public $instanceGroupManagers; - public $instanceGroups; - public $instanceTemplates; - public $instances; - public $licenses; - public $machineTypes; - public $networks; - public $projects; - public $regionOperations; - public $regions; - public $routes; - public $snapshots; - public $sslCertificates; - public $subnetworks; - public $targetHttpProxies; - public $targetHttpsProxies; - public $targetInstances; - public $targetPools; - public $targetVpnGateways; - public $urlMaps; - public $vpnTunnels; - public $zoneOperations; - public $zones; - - - /** - * Constructs the internal representation of the Compute service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'compute/v1/projects/'; - $this->version = 'v1'; - $this->serviceName = 'compute'; - - $this->addresses = new Google_Service_Compute_Addresses_Resource( - $this, - $this->serviceName, - 'addresses', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->autoscalers = new Google_Service_Compute_Autoscalers_Resource( - $this, - $this->serviceName, - 'autoscalers', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/autoscalers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->backendServices = new Google_Service_Compute_BackendServices_Resource( - $this, - $this->serviceName, - 'backendServices', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/global/backendServices/{backendService}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( - $this, - $this->serviceName, - 'diskTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'diskType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->disks = new Google_Service_Compute_Disks_Resource( - $this, - $this->serviceName, - 'disks', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'createSnapshot' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceImage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->firewalls = new Google_Service_Compute_Firewalls_Resource( - $this, - $this->serviceName, - 'firewalls', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource( - $this, - $this->serviceName, - 'forwardingRules', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( - $this, - $this->serviceName, - 'globalAddresses', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( - $this, - $this->serviceName, - 'globalForwardingRules', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( - $this, - $this->serviceName, - 'globalOperations', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource( - $this, - $this->serviceName, - 'httpHealthChecks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->httpsHealthChecks = new Google_Service_Compute_HttpsHealthChecks_Resource( - $this, - $this->serviceName, - 'httpsHealthChecks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpsHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpsHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/httpsHealthChecks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/httpsHealthChecks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpsHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpsHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->images = new Google_Service_Compute_Images_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deprecate' => array( - 'path' => '{project}/global/images/{image}/deprecate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->instanceGroupManagers = new Google_Service_Compute_InstanceGroupManagers_Resource( - $this, - $this->serviceName, - 'instanceGroupManagers', - array( - 'methods' => array( - 'abandonInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instanceGroupManagers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listManagedInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'recreateInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resize' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'size' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'setInstanceTemplate' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTargetPools' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->instanceGroups = new Google_Service_Compute_InstanceGroups_Resource( - $this, - $this->serviceName, - 'instanceGroups', - array( - 'methods' => array( - 'addInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instanceGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setNamedPorts' => array( - 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroup' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( - $this, - $this->serviceName, - 'instanceTemplates', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceTemplate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceTemplate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/instanceTemplates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/instanceTemplates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->instances = new Google_Service_Compute_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'addAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'attachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accessConfig' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'detachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getSerialPortOutput' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'port' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'reset' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setDiskAutoDelete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoDelete' => array( - 'location' => 'query', - 'type' => 'boolean', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setMachineType' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setMachineType', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setMetadata' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setScheduling' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTags' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'start' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/start', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stop' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/stop', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->licenses = new Google_Service_Compute_Licenses_Resource( - $this, - $this->serviceName, - 'licenses', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/licenses/{license}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'license' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( - $this, - $this->serviceName, - 'machineTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'machineType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->networks = new Google_Service_Compute_Networks_Resource( - $this, - $this->serviceName, - 'networks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Compute_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'moveDisk' => array( - 'path' => '{project}/moveDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'moveInstance' => array( - 'path' => '{project}/moveInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setCommonInstanceMetadata' => array( - 'path' => '{project}/setCommonInstanceMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setUsageExportBucket' => array( - 'path' => '{project}/setUsageExportBucket', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( - $this, - $this->serviceName, - 'regionOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->regions = new Google_Service_Compute_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/regions/{region}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->routes = new Google_Service_Compute_Routes_Resource( - $this, - $this->serviceName, - 'routes', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Compute_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCertificates = new Google_Service_Compute_SslCertificates_Resource( - $this, - $this->serviceName, - 'sslCertificates', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/sslCertificates/{sslCertificate}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sslCertificate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/sslCertificates/{sslCertificate}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sslCertificate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/sslCertificates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/sslCertificates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->subnetworks = new Google_Service_Compute_Subnetworks_Resource( - $this, - $this->serviceName, - 'subnetworks', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/subnetworks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subnetwork' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subnetwork' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/subnetworks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/subnetworks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( - $this, - $this->serviceName, - 'targetHttpProxies', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetHttpsProxies = new Google_Service_Compute_TargetHttpsProxies_Resource( - $this, - $this->serviceName, - 'targetHttpsProxies', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpsProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpsProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpsProxies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/targetHttpsProxies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setSslCertificates' => array( - 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpsProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpsProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( - $this, - $this->serviceName, - 'targetInstances', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->targetPools = new Google_Service_Compute_TargetPools_Resource( - $this, - $this->serviceName, - 'targetPools', - array( - 'methods' => array( - 'addHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'addInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setBackup' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'failoverRatio' => array( - 'location' => 'query', - 'type' => 'number', - ), - ), - ), - ) - ) - ); - $this->targetVpnGateways = new Google_Service_Compute_TargetVpnGateways_Resource( - $this, - $this->serviceName, - 'targetVpnGateways', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetVpnGateways', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( - $this, - $this->serviceName, - 'urlMaps', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'validate' => array( - 'path' => '{project}/global/urlMaps/{urlMap}/validate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->vpnTunnels = new Google_Service_Compute_VpnTunnels_Resource( - $this, - $this->serviceName, - 'vpnTunnels', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/vpnTunnels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->zones = new Google_Service_Compute_Zones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "addresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $addresses = $computeService->addresses; - * - */ -class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of addresses. (addresses.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_AddressAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); - } - - /** - * Deletes the specified address resource. (addresses.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified address resource. (addresses.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (addresses.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of addresses contained within the specified region. - * (addresses.listAddresses) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_AddressList - */ - public function listAddresses($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } -} - -/** - * The "autoscalers" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $autoscalers = $computeService->autoscalers; - * - */ -class Google_Service_Compute_Autoscalers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of autoscalers. (autoscalers.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_AutoscalerAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AutoscalerAggregatedList"); - } - - /** - * Deletes the specified autoscaler. (autoscalers.delete) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $autoscaler Name of the autoscaler to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified autoscaler resource. Get a list of available - * autoscalers by making a list() request. (autoscalers.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $autoscaler Name of the autoscaler to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Autoscaler - */ - public function get($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Autoscaler"); - } - - /** - * Creates an autoscaler in the specified project using the data included in the - * request. (autoscalers.insert) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of autoscalers contained within the specified zone. - * (autoscalers.listAutoscalers) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_AutoscalerList - */ - public function listAutoscalers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AutoscalerList"); - } - - /** - * Updates an autoscaler in the specified project using the data included in the - * request. This method supports patch semantics. (autoscalers.patch) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $autoscaler Name of the autoscaler to update. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $zone, $autoscaler, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates an autoscaler in the specified project using the data included in the - * request. (autoscalers.update) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string autoscaler Name of the autoscaler to update. - * @return Google_Service_Compute_Operation - */ - public function update($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "backendServices" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $backendServices = $computeService->backendServices; - * - */ -class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified BackendService resource. (backendServices.delete) - * - * @param string $project Project ID for this request. - * @param string $backendService Name of the BackendService resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified BackendService resource. Get a list of available - * backend services by making a list() request. (backendServices.get) - * - * @param string $project Project ID for this request. - * @param string $backendService Name of the BackendService resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendService - */ - public function get($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_BackendService"); - } - - /** - * Gets the most recent health check results for this BackendService. - * (backendServices.getHealth) - * - * @param string $project - * @param string $backendService Name of the BackendService resource to which - * the queried instance belongs. - * @param Google_ResourceGroupReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendServiceGroupHealth - */ - public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); - } - - /** - * Creates a BackendService resource in the specified project using the data - * included in the request. There are several restrictions and guidelines to - * keep in mind when creating a backend service. Read Restrictions and - * Guidelines for more information. (backendServices.insert) - * - * @param string $project Project ID for this request. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of BackendService resources available to the specified - * project. (backendServices.listBackendServices) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_BackendServiceList - */ - public function listBackendServices($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); - } - - /** - * Updates the entire content of the BackendService resource. There are several - * restrictions and guidelines to keep in mind when updating a backend service. - * Read Restrictions and Guidelines for more information. This method supports - * patch semantics. (backendServices.patch) - * - * @param string $project Project ID for this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates the entire content of the BackendService resource. There are several - * restrictions and guidelines to keep in mind when updating a backend service. - * Read Restrictions and Guidelines for more information. - * (backendServices.update) - * - * @param string $project Project ID for this request. - * @param string $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "diskTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $diskTypes = $computeService->diskTypes; - * - */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of disk types. (diskTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_DiskTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); - } - - /** - * Returns the specified disk type. Get a list of available disk types by making - * a list() request. (diskTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $diskType Name of the disk type to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType - */ - public function get($project, $zone, $diskType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); - } - - /** - * Retrieves a list of disk types available to the specified project. - * (diskTypes.listDiskTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_DiskTypeList - */ - public function listDiskTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); - } -} - -/** - * The "disks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $disks = $computeService->disks; - * - */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of persistent disks. (disks.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_DiskAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); - } - - /** - * Creates a snapshot of a specified persistent disk. (disks.createSnapshot) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to snapshot. - * @param Google_Snapshot $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes the specified persistent disk. Deleting a disk removes its data - * permanently and is irreversible. However, deleting a disk does not delete any - * snapshots previously made from the disk. You must separately delete - * snapshots. (disks.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns a specified persistent disk. Get a list of available persistent disks - * by making a list() request. (disks.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Disk - */ - public function get($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Disk"); - } - - /** - * Creates a persistent disk in the specified project using the data in the - * request. You can create a disk with a sourceImage, a sourceSnapshot, or - * create an empty 200 GB data disk by omitting all properties. You can also - * create a disk that is larger than the default size by specifying the sizeGb - * property. (disks.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param Google_Disk $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string sourceImage Optional. Source image to restore onto a disk. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of persistent disks contained within the specified zone. - * (disks.listDisks) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_DiskList - */ - public function listDisks($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskList"); - } -} - -/** - * The "firewalls" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $firewalls = $computeService->firewalls; - * - */ -class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified firewall. (firewalls.delete) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall rule to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified firewall. (firewalls.get) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall rule to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Firewall - */ - public function get($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Firewall"); - } - - /** - * Creates a firewall rule in the specified project using the data included in - * the request. (firewalls.insert) - * - * @param string $project Project ID for this request. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of firewall rules available to the specified project. - * (firewalls.listFirewalls) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_FirewallList - */ - public function listFirewalls($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); - } - - /** - * Updates the specified firewall rule with the data included in the request. - * This method supports patch semantics. (firewalls.patch) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall rule to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates the specified firewall rule with the data included in the request. - * (firewalls.update) - * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall rule to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "forwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $forwardingRules = $computeService->forwardingRules; - * - */ -class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of forwarding rules. - * (forwardingRules.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_ForwardingRuleAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); - } - - /** - * Deletes the specified ForwardingRule resource. (forwardingRules.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified ForwardingRule resource. (forwardingRules.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (forwardingRules.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of ForwardingRule resources available to the specified - * project and region. (forwardingRules.listForwardingRules) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listForwardingRules($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - - /** - * Changes target URL for forwarding rule. The new target should be of the same - * type as the old target. (forwardingRules.setTarget) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "globalAddresses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalAddresses = $computeService->globalAddresses; - * - */ -class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified address resource. (globalAddresses.delete) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified address resource. Get a list of available addresses by - * making a list() request. (globalAddresses.get) - * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - - /** - * Creates an address resource in the specified project using the data included - * in the request. (globalAddresses.insert) - * - * @param string $project Project ID for this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of global addresses. (globalAddresses.listGlobalAddresses) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_AddressList - */ - public function listGlobalAddresses($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } -} - -/** - * The "globalForwardingRules" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalForwardingRules = $computeService->globalForwardingRules; - * - */ -class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) - * - * @param string $project Project ID for this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified ForwardingRule resource. Get a list of available - * forwarding rules by making a list() request. (globalForwardingRules.get) - * - * @param string $project Project ID for this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (globalForwardingRules.insert) - * - * @param string $project Project ID for this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of ForwardingRule resources available to the specified - * project. (globalForwardingRules.listGlobalForwardingRules) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listGlobalForwardingRules($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - - /** - * Changes target URL for forwarding rule. The new target should be of the same - * type as the old target. (globalForwardingRules.setTarget) - * - * @param string $project Project ID for this request. - * @param string $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "globalOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $globalOperations = $computeService->globalOperations; - * - */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of all operations. - * (globalOperations.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_OperationAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); - } - - /** - * Deletes the specified Operations resource. (globalOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified Operations resource. Get a list of operations by - * making a list() request. (globalOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of Operation resources contained within the specified - * project. (globalOperations.listGlobalOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_OperationList - */ - public function listGlobalOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "httpHealthChecks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $httpHealthChecks = $computeService->httpHealthChecks; - * - */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) - * - * @param string $project Project ID for this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified HttpHealthCheck resource. Get a list of available HTTP - * health checks by making a list() request. (httpHealthChecks.get) - * - * @param string $project Project ID for this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck - */ - public function get($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); - } - - /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) - * - * @param string $project Project ID for this request. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_HttpHealthCheckList - */ - public function listHttpHealthChecks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); - } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) - * - * @param string $project Project ID for this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.update) - * - * @param string $project Project ID for this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "httpsHealthChecks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $httpsHealthChecks = $computeService->httpsHealthChecks; - * - */ -class Google_Service_Compute_HttpsHealthChecks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified HttpsHealthCheck resource. (httpsHealthChecks.delete) - * - * @param string $project Project ID for this request. - * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $httpsHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified HttpsHealthCheck resource. Get a list of available - * HTTPS health checks by making a list() request. (httpsHealthChecks.get) - * - * @param string $project Project ID for this request. - * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpsHealthCheck - */ - public function get($project, $httpsHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpsHealthCheck"); - } - - /** - * Creates a HttpsHealthCheck resource in the specified project using the data - * included in the request. (httpsHealthChecks.insert) - * - * @param string $project Project ID for this request. - * @param Google_HttpsHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of HttpsHealthCheck resources available to the specified - * project. (httpsHealthChecks.listHttpsHealthChecks) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_HttpsHealthCheckList - */ - public function listHttpsHealthChecks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpsHealthCheckList"); - } - - /** - * Updates a HttpsHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpsHealthChecks.patch) - * - * @param string $project Project ID for this request. - * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to - * update. - * @param Google_HttpsHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates a HttpsHealthCheck resource in the specified project using the data - * included in the request. (httpsHealthChecks.update) - * - * @param string $project Project ID for this request. - * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to - * update. - * @param Google_HttpsHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "images" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $images = $computeService->images; - * - */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified image. (images.delete) - * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. - * (images.deprecate) - * - * @param string $project Project ID for this request. - * @param string $image Image name. - * @param Google_DeprecationStatus $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified image. Get a list of available images by making a - * list() request. (images.get) - * - * @param string $project Project ID for this request. - * @param string $image Name of the image resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Image - */ - public function get($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Image"); - } - - /** - * Creates an image in the specified project using the data included in the - * request. (images.insert) - * - * @param string $project Project ID for this request. - * @param Google_Image $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of private images available to the specified project. - * Private images are images you create that belong to your project. This method - * does not get any images that belong to other projects, including publicly- - * available images, like Debian 7. If you want to get a list of publicly- - * available images, use this method to make a request to the respective image - * project, such as debian-cloud or windows-cloud. - * - * See Accessing images for more information. (images.listImages) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_ImageList - */ - public function listImages($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ImageList"); - } -} - -/** - * The "instanceGroupManagers" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instanceGroupManagers = $computeService->instanceGroupManagers; - * - */ -class Google_Service_Compute_InstanceGroupManagers_Resource extends Google_Service_Resource -{ - - /** - * Schedules a group action to remove the specified instances from the managed - * instance group. Abandoning an instance does not delete the instance, but it - * does remove the instance from any target pools that are applied by the - * managed instance group. This method reduces the targetSize of the managed - * instance group by the number of instances that you abandon. This operation is - * marked as DONE when the action is scheduled even if the instances have not - * yet been removed from the group. You must separately verify the status of the - * abandoning action with the listmanagedinstances method. - * (instanceGroupManagers.abandonInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('abandonInstances', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of managed instance groups and groups them by zone. - * (instanceGroupManagers.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceGroupManagerAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupManagerAggregatedList"); - } - - /** - * Deletes the specified managed instance group and all of the instances in that - * group. Note that the instance group must not belong to a backend service. - * Read Deleting an instance group for more information. - * (instanceGroupManagers.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Schedules a group action to delete the specified instances in the managed - * instance group. The instances are also removed from any target pools of which - * they were a member. This method reduces the targetSize of the managed - * instance group by the number of instances that you delete. This operation is - * marked as DONE when the action is scheduled even if the instances are still - * being deleted. You must separately verify the status of the deleting action - * with the listmanagedinstances method. (instanceGroupManagers.deleteInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteInstances', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns all of the details about the specified managed instance group. Get a - * list of available managed instance groups by making a list() request. - * (instanceGroupManagers.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceGroupManager - */ - public function get($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceGroupManager"); - } - - /** - * Creates a managed instance group using the information that you specify in - * the request. After the group is created, it schedules an action to create - * instances in the group using the specified instance template. This operation - * is marked as DONE when the group is created even if the instances in the - * group have not yet been created. You must separately verify the status of the - * individual instances with the listmanagedinstances method. - * (instanceGroupManagers.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where you want to create the managed - * instance group. - * @param Google_InstanceGroupManager $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of managed instance groups that are contained within the - * specified project and zone. (instanceGroupManagers.listInstanceGroupManagers) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceGroupManagerList - */ - public function listInstanceGroupManagers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupManagerList"); - } - - /** - * Lists all of the instances in the managed instance group. Each instance in - * the list has a currentAction, which indicates the action that the managed - * instance group is performing on the instance. For example, if the group is - * still creating an instance, the currentAction is CREATING. If a previous - * action failed, the list displays the errors for that failed action. - * (instanceGroupManagers.listManagedInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse - */ - public function listManagedInstances($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('listManagedInstances', array($params), "Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse"); - } - - /** - * Schedules a group action to recreate the specified instances in the managed - * instance group. The instances are deleted and recreated using the current - * instance template for the managed instance group. This operation is marked as - * DONE when the action is scheduled even if the instances have not yet been - * recreated. You must separately verify the status of the recreating action - * with the listmanagedinstances method. - * (instanceGroupManagers.recreateInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('recreateInstances', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Resizes the managed instance group. If you increase the size, the group - * creates new instances using the current instance template. If you decrease - * the size, the group deletes instances. The resize operation is marked DONE - * when the resize actions are scheduled even if the group has not yet added or - * deleted any instances. You must separately verify the status of the creating - * or deleting actions with the listmanagedinstances method. - * (instanceGroupManagers.resize) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param int $size The number of running instances that the managed instance - * group should maintain at any given time. The group automatically adds or - * removes instances to maintain the number of instances specified by this - * parameter. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); - $params = array_merge($params, $optParams); - return $this->call('resize', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Specifies the instance template to use when creating new instances in this - * group. The templates for existing instances in the group do not change unless - * you recreate them. (instanceGroupManagers.setInstanceTemplate) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setInstanceTemplate', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Modifies the target pools to which all instances in this managed instance - * group are assigned. The target pools automatically apply to all of the - * instances in the managed instance group. This operation is marked DONE when - * you make the request even if the instances have not yet been added to their - * target pools. The change might take some time to apply to all of the - * instances in the group depending on the size of the group. - * (instanceGroupManagers.setTargetPools) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the managed instance group is - * located. - * @param string $instanceGroupManager The name of the managed instance group. - * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTargetPools', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "instanceGroups" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instanceGroups = $computeService->instanceGroups; - * - */ -class Google_Service_Compute_InstanceGroups_Resource extends Google_Service_Resource -{ - - /** - * Adds a list of instances to the specified instance group. All of the - * instances in the instance group must be in the same network/subnetwork. Read - * Adding instances for more information. (instanceGroups.addInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group where you are - * adding instances. - * @param Google_InstanceGroupsAddInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsAddInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addInstances', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of instance groups and sorts them by zone. - * (instanceGroups.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceGroupAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupAggregatedList"); - } - - /** - * Deletes the specified instance group. The instances in the group are not - * deleted. Note that instance group must not belong to a backend service. Read - * Deleting an instance group for more information. (instanceGroups.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $instanceGroup, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified instance group. Get a list of available instance groups - * by making a list() request. (instanceGroups.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceGroup - */ - public function get($project, $zone, $instanceGroup, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceGroup"); - } - - /** - * Creates an instance group in the specified project using the parameters that - * are included in the request. (instanceGroups.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where you want to create the - * instance group. - * @param Google_InstanceGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_InstanceGroup $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of instance groups that are located in the specified - * project and zone. (instanceGroups.listInstanceGroups) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceGroupList - */ - public function listInstanceGroups($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupList"); - } - - /** - * Lists the instances in the specified instance group. - * (instanceGroups.listInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group from which you - * want to generate a list of included instances. - * @param Google_InstanceGroupsListInstancesRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceGroupsListInstances - */ - public function listInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsListInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('listInstances', array($params), "Google_Service_Compute_InstanceGroupsListInstances"); - } - - /** - * Removes one or more instances from the specified instance group, but does not - * delete those instances. (instanceGroups.removeInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group where the - * specified instances will be removed. - * @param Google_InstanceGroupsRemoveInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsRemoveInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeInstances', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets the named ports for the specified instance group. - * (instanceGroups.setNamedPorts) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone where the instance group is located. - * @param string $instanceGroup The name of the instance group where the named - * ports are updated. - * @param Google_InstanceGroupsSetNamedPortsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setNamedPorts($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsSetNamedPortsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setNamedPorts', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "instanceTemplates" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $instanceTemplates = $computeService->instanceTemplates; - * - */ -class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified instance template. If you delete an instance template - * that is being referenced from another instance group, the instance group will - * not be able to create or recreate virtual machine instances. Deleting an - * instance template is permanent and cannot be undone. - * (instanceTemplates.delete) - * - * @param string $project Project ID for this request. - * @param string $instanceTemplate The name of the instance template to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $instanceTemplate, $optParams = array()) - { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified instance template. Get a list of available instance - * templates by making a list() request. (instanceTemplates.get) - * - * @param string $project Project ID for this request. - * @param string $instanceTemplate The name of the instance template. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceTemplate - */ - public function get($project, $instanceTemplate, $optParams = array()) - { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); - } - - /** - * Creates an instance template in the specified project using the data that is - * included in the request. If you are creating a new template to update an - * existing instance group, your new instance template must use the same network - * or, if applicable, the same subnetwork as the original template. - * (instanceTemplates.insert) - * - * @param string $project Project ID for this request. - * @param Google_InstanceTemplate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of instance templates that are contained within the - * specified project and zone. (instanceTemplates.listInstanceTemplates) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceTemplateList - */ - public function listInstanceTemplates($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $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 ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $networkInterface The name of the network interface to add to - * this instance. - * @param Google_AccessConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves aggregated list of instances. (instances.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); - } - - /** - * Attaches a Disk resource to an instance. (instances.attachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param Google_AttachedDisk $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes the specified Instance resource. For more information, see Stopping - * or Deleting an Instance. (instances.delete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Deletes an access config from an instance's network interface. - * (instances.deleteAccessConfig) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name for this request. - * @param string $accessConfig The name of the access config to delete. - * @param string $networkInterface The name of the network interface. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); - $params = array_merge($params, $optParams); - return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Detaches a disk from an instance. (instances.detachDisk) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param string $deviceName Disk device name to detach. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified Instance resource. Get a list of available instances by - * making a list() request. (instances.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Instance - */ - public function get($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Instance"); - } - - /** - * Returns the specified instance's serial port output. - * (instances.getSerialPortOutput) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param int port Specifies which COM or serial port to retrieve data from. - * @return Google_Service_Compute_SerialPortOutput - */ - public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); - } - - /** - * Creates an instance resource in the specified project using the data included - * in the request. (instances.insert) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param Google_Instance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of instances contained within the specified zone. - * (instances.listInstances) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_InstanceList - */ - public function listInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); - } - - /** - * Performs a hard reset on the instance. (instances.reset) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function reset($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets the auto-delete flag for a disk attached to an instance. - * (instances.setDiskAutoDelete) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance The instance name. - * @param bool $autoDelete Whether to auto-delete the disk when the instance is - * deleted. - * @param string $deviceName The device name of the disk to modify. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Changes the machine type for a stopped instance to the machine type specified - * in the request. (instances.setMachineType) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param Google_InstancesSetMachineTypeRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setMachineType($project, $zone, $instance, Google_Service_Compute_InstancesSetMachineTypeRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setMachineType', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets metadata for the specified instance to the data included in the request. - * (instances.setMetadata) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets an instance's scheduling options. (instances.setScheduling) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param Google_Scheduling $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets tags for the specified instance to the data included in the request. - * (instances.setTags) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance scoping this request. - * @param Google_Tags $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Starts an instance that was stopped using the using the instances().stop - * method. For more information, see Restart an instance. (instances.start) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to start. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function start($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('start', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Stops a running instance, shutting it down cleanly, and allows you to restart - * the instance at a later time. Stopped instances do not incur per-minute, - * virtual machine usage charges while they are stopped, but any resources that - * the virtual machine is using, such as persistent disks and static IP - * addresses, will continue to be charged until they are deleted. For more - * information, see Stopping an instance. (instances.stop) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $instance Name of the instance resource to stop. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function stop($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "licenses" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $licenses = $computeService->licenses; - * - */ -class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified License resource. Get a list of available licenses by - * making a list() request. (licenses.get) - * - * @param string $project Project ID for this request. - * @param string $license Name of the License resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_License - */ - public function get($project, $license, $optParams = array()) - { - $params = array('project' => $project, 'license' => $license); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_License"); - } -} - -/** - * The "machineTypes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $machineTypes = $computeService->machineTypes; - * - */ -class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of machine types. (machineTypes.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_MachineTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); - } - - /** - * Returns the specified machine type. Get a list of available machine types by - * making a list() request. (machineTypes.get) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param string $machineType Name of the machine type to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_MachineType - */ - public function get($project, $zone, $machineType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_MachineType"); - } - - /** - * Retrieves a list of machine types available to the specified project. - * (machineTypes.listMachineTypes) - * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_MachineTypeList - */ - public function listMachineTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); - } -} - -/** - * The "networks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $networks = $computeService->networks; - * - */ -class Google_Service_Compute_Networks_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified network. (networks.delete) - * - * @param string $project Project ID for this request. - * @param string $network Name of the network to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified network. Get a list of available networks by making a - * list() request. (networks.get) - * - * @param string $project Project ID for this request. - * @param string $network Name of the network to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Network - */ - public function get($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Network"); - } - - /** - * Creates a network in the specified project using the data included in the - * request. (networks.insert) - * - * @param string $project Project ID for this request. - * @param Google_Network $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of networks available to the specified project. - * (networks.listNetworks) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_NetworkList - */ - public function listNetworks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $projects = $computeService->projects; - * - */ -class Google_Service_Compute_Projects_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified Project resource. (projects.get) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Project - */ - public function get($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Project"); - } - - /** - * Moves a persistent disk from one zone to another. (projects.moveDisk) - * - * @param string $project Project ID for this request. - * @param Google_DiskMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Moves an instance and its attached persistent disks from one zone to another. - * (projects.moveInstance) - * - * @param string $project Project ID for this request. - * @param Google_InstanceMoveRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Sets metadata common to all instances within the specified project using the - * data included in the request. (projects.setCommonInstanceMetadata) - * - * @param string $project Project ID for this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Enables the usage export feature and sets the usage export bucket where - * reports are stored. If you provide an empty request body using this method, - * the usage export feature will be disabled. (projects.setUsageExportBucket) - * - * @param string $project Project ID for this request. - * @param Google_UsageExportLocation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "regionOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regionOperations = $computeService->regionOperations; - * - */ -class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified region-specific Operations resource. - * (regionOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified region-specific Operations resource. - * (regionOperations.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of Operation resources contained within the specified - * region. (regionOperations.listRegionOperations) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_OperationList - */ - public function listRegionOperations($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $regions = $computeService->regions; - * - */ -class Google_Service_Compute_Regions_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified Region resource. Get a list of available regions by - * making a list() request. (regions.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Region - */ - public function get($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Region"); - } - - /** - * Retrieves the list of region resources available to the specified project. - * (regions.listRegions) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_RegionList - */ - public function listRegions($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RegionList"); - } -} - -/** - * The "routes" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $routes = $computeService->routes; - * - */ -class Google_Service_Compute_Routes_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified Route resource. (routes.delete) - * - * @param string $project Project ID for this request. - * @param string $route Name of the Route resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified Route resource. Get a list of available routes by - * making a list() request. (routes.get) - * - * @param string $project Project ID for this request. - * @param string $route Name of the Route resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Route - */ - public function get($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Route"); - } - - /** - * Creates a Route resource in the specified project using the data included in - * the request. (routes.insert) - * - * @param string $project Project ID for this request. - * @param Google_Route $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of Route resources available to the specified project. - * (routes.listRoutes) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_RouteList - */ - public function listRoutes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RouteList"); - } -} - -/** - * The "snapshots" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $snapshots = $computeService->snapshots; - * - */ -class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single - * snapshot might not necessarily delete all the data on that snapshot. If any - * data on the snapshot that is marked for deletion is needed for subsequent - * snapshots, the data will be moved to the next corresponding snapshot. - * - * For more information, see Deleting snaphots. (snapshots.delete) - * - * @param string $project Project ID for this request. - * @param string $snapshot Name of the Snapshot resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $snapshot, $optParams = array()) - { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified Snapshot resource. Get a list of available snapshots by - * making a list() request. (snapshots.get) - * - * @param string $project Project ID for this request. - * @param string $snapshot Name of the Snapshot resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Snapshot - */ - public function get($project, $snapshot, $optParams = array()) - { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); - } - - /** - * Retrieves the list of Snapshot resources contained within the specified - * project. (snapshots.listSnapshots) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_SnapshotList - */ - public function listSnapshots($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); - } -} - -/** - * The "sslCertificates" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $sslCertificates = $computeService->sslCertificates; - * - */ -class Google_Service_Compute_SslCertificates_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified SslCertificate resource. (sslCertificates.delete) - * - * @param string $project Project ID for this request. - * @param string $sslCertificate Name of the SslCertificate resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $sslCertificate, $optParams = array()) - { - $params = array('project' => $project, 'sslCertificate' => $sslCertificate); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified SslCertificate resource. Get a list of available SSL - * certificates by making a list() request. (sslCertificates.get) - * - * @param string $project Project ID for this request. - * @param string $sslCertificate Name of the SslCertificate resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_SslCertificate - */ - public function get($project, $sslCertificate, $optParams = array()) - { - $params = array('project' => $project, 'sslCertificate' => $sslCertificate); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_SslCertificate"); - } - - /** - * Creates a SslCertificate resource in the specified project using the data - * included in the request. (sslCertificates.insert) - * - * @param string $project Project ID for this request. - * @param Google_SslCertificate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_SslCertificate $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of SslCertificate resources available to the specified - * project. (sslCertificates.listSslCertificates) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_SslCertificateList - */ - public function listSslCertificates($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SslCertificateList"); - } -} - -/** - * The "subnetworks" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $subnetworks = $computeService->subnetworks; - * - */ -class Google_Service_Compute_Subnetworks_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of subnetworks. (subnetworks.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_SubnetworkAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_SubnetworkAggregatedList"); - } - - /** - * Deletes the specified subnetwork. (subnetworks.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $subnetwork Name of the Subnetwork resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $subnetwork, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified subnetwork. Get a list of available subnetworks by - * making a list() request. (subnetworks.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $subnetwork Name of the Subnetwork resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Subnetwork - */ - public function get($project, $region, $subnetwork, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Subnetwork"); - } - - /** - * Creates a subnetwork in the specified project using the data included in the - * request. (subnetworks.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param Google_Subnetwork $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_Subnetwork $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of subnetworks available to the specified project. - * (subnetworks.listSubnetworks) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_SubnetworkList - */ - public function listSubnetworks($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SubnetworkList"); - } -} - -/** - * The "targetHttpProxies" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetHttpProxies = $computeService->targetHttpProxies; - * - */ -class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) - * - * @param string $project Project ID for this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetHttpProxy resource. Get a list of available - * target HTTP proxies by making a list() request. (targetHttpProxies.get) - * - * @param string $project Project ID for this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetHttpProxy - */ - public function get($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); - } - - /** - * Creates a TargetHttpProxy resource in the specified project using the data - * included in the request. (targetHttpProxies.insert) - * - * @param string $project Project ID for this request. - * @param Google_TargetHttpProxy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetHttpProxy resources available to the specified - * project. (targetHttpProxies.listTargetHttpProxies) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetHttpProxyList - */ - public function listTargetHttpProxies($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); - } - - /** - * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) - * - * @param string $project Project ID for this request. - * @param string $targetHttpProxy Name of the TargetHttpProxy to set a URL map - * for. - * @param Google_UrlMapReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "targetHttpsProxies" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetHttpsProxies = $computeService->targetHttpsProxies; - * - */ -class Google_Service_Compute_TargetHttpsProxies_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete) - * - * @param string $project Project ID for this request. - * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to - * delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $targetHttpsProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetHttpsProxy resource. Get a list of available - * target HTTPS proxies by making a list() request. (targetHttpsProxies.get) - * - * @param string $project Project ID for this request. - * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to - * return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetHttpsProxy - */ - public function get($project, $targetHttpsProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpsProxy"); - } - - /** - * Creates a TargetHttpsProxy resource in the specified project using the data - * included in the request. (targetHttpsProxies.insert) - * - * @param string $project Project ID for this request. - * @param Google_TargetHttpsProxy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of TargetHttpsProxy resources available to the specified - * project. (targetHttpsProxies.listTargetHttpsProxies) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetHttpsProxyList - */ - public function listTargetHttpsProxies($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpsProxyList"); - } - - /** - * Replaces SslCertificates for TargetHttpsProxy. - * (targetHttpsProxies.setSslCertificates) - * - * @param string $project Project ID for this request. - * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set - * an SslCertificates resource for. - * @param Google_TargetHttpsProxiesSetSslCertificatesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setSslCertificates($project, $targetHttpsProxy, Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap) - * - * @param string $project Project ID for this request. - * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose - * URL map is to be set. - * @param Google_UrlMapReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUrlMap($project, $targetHttpsProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "targetInstances" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetInstances = $computeService->targetInstances; - * - */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of target instances. - * (targetInstances.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetInstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); - } - - /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified TargetInstance resource. Get a list of available target - * instances by making a list() request. (targetInstances.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param string $targetInstance Name of the TargetInstance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance - */ - public function get($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); - } - - /** - * Creates a TargetInstance resource in the specified project and zone using the - * data included in the request. (targetInstances.insert) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param Google_TargetInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of TargetInstance resources available to the specified - * project and zone. (targetInstances.listTargetInstances) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetInstanceList - */ - public function listTargetInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); - } -} - -/** - * The "targetPools" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetPools = $computeService->targetPools; - * - */ -class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource -{ - - /** - * Adds health check URLs to a target pool. (targetPools.addHealthCheck) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the target pool to add a health check to. - * @param Google_TargetPoolsAddHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Adds an instance to a target pool. (targetPools.addInstance) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to add instances - * to. - * @param Google_TargetPoolsAddInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves an aggregated list of target pools. (targetPools.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetPoolAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); - } - - /** - * Deletes the specified target pool. (targetPools.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified target pool. Get a list of available target pools by - * making a list() request. (targetPools.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPool - */ - public function get($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); - } - - /** - * Gets the most recent health check results for each IP for the instance that - * is referenced by the given target pool. (targetPools.getHealth) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to which the - * queried instance belongs. - * @param Google_InstanceReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPoolInstanceHealth - */ - public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); - } - - /** - * Creates a target pool in the specified project and region using the data - * included in the request. (targetPools.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param Google_TargetPool $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of target pools available to the specified project and - * region. (targetPools.listTargetPools) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetPoolList - */ - public function listTargetPools($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); - } - - /** - * Removes health check URL from a target pool. (targetPools.removeHealthCheck) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $targetPool Name of the target pool to remove health checks - * from. - * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Removes instance URL from a target pool. (targetPools.removeInstance) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to remove instances - * from. - * @param Google_TargetPoolsRemoveInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Changes a backup target pool's configurations. (targetPools.setBackup) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region scoping this request. - * @param string $targetPool Name of the TargetPool resource to set a backup - * pool for. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * - * @opt_param float failoverRatio New failoverRatio value for the target pool. - * @return Google_Service_Compute_Operation - */ - public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); - } -} - -/** - * The "targetVpnGateways" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $targetVpnGateways = $computeService->targetVpnGateways; - * - */ -class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of target VPN gateways. - * (targetVpnGateways.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetVpnGatewayAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); - } - - /** - * Deletes the specified target VPN gateway. (targetVpnGateways.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $targetVpnGateway Name of the target VPN gateway to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetVpnGateway, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified target VPN gateway. Get a list of available target VPN - * gateways by making a list() request. (targetVpnGateways.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $targetVpnGateway Name of the target VPN gateway to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetVpnGateway - */ - public function get($project, $region, $targetVpnGateway, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); - } - - /** - * Creates a target VPN gateway in the specified project and region using the - * data included in the request. (targetVpnGateways.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param Google_TargetVpnGateway $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of target VPN gateways available to the specified project - * and region. (targetVpnGateways.listTargetVpnGateways) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_TargetVpnGatewayList - */ - public function listTargetVpnGateways($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); - } -} - -/** - * The "urlMaps" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $urlMaps = $computeService->urlMaps; - * - */ -class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified UrlMap resource. (urlMaps.delete) - * - * @param string $project Project ID for this request. - * @param string $urlMap Name of the UrlMap resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified UrlMap resource. Get a list of available URL maps by - * making a list() request. (urlMaps.get) - * - * @param string $project Project ID for this request. - * @param string $urlMap Name of the UrlMap resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMap - */ - public function get($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); - } - - /** - * Creates a UrlMap resource in the specified project using the data included in - * the request. (urlMaps.insert) - * - * @param string $project Project ID for this request. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves the list of UrlMap resources available to the specified project. - * (urlMaps.listUrlMaps) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_UrlMapList - */ - public function listUrlMaps($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); - } - - /** - * Updates the entire content of the UrlMap resource. This method supports patch - * semantics. (urlMaps.patch) - * - * @param string $project Project ID for this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Updates the entire content of the UrlMap resource. (urlMaps.update) - * - * @param string $project Project ID for this request. - * @param string $urlMap Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Runs static validation for the UrlMap. In particular, the tests of the - * provided UrlMap will be run. Calling this method does NOT create the UrlMap. - * (urlMaps.validate) - * - * @param string $project Project ID for this request. - * @param string $urlMap Name of the UrlMap resource to be validated as. - * @param Google_UrlMapsValidateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMapsValidateResponse - */ - public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); - } -} - -/** - * The "vpnTunnels" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $vpnTunnels = $computeService->vpnTunnels; - * - */ -class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an aggregated list of VPN tunnels. (vpnTunnels.aggregatedList) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_VpnTunnelAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); - } - - /** - * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $vpnTunnel, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Returns the specified VpnTunnel resource. Get a list of available VPN tunnels - * by making a list() request. (vpnTunnels.get) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param string $vpnTunnel Name of the VpnTunnel resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_VpnTunnel - */ - public function get($project, $region, $vpnTunnel, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); - } - - /** - * Creates a VpnTunnel resource in the specified project and region using the - * data included in the request. (vpnTunnels.insert) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param Google_VpnTunnel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of VpnTunnel resources contained in the specified project - * and region. (vpnTunnels.listVpnTunnels) - * - * @param string $project Project ID for this request. - * @param string $region Name of the region for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_VpnTunnelList - */ - public function listVpnTunnels($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); - } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $zoneOperations = $computeService->zoneOperations; - * - */ -class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified zone-specific Operations resource. - * (zoneOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $operation Name of the Operations resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified zone-specific Operations resource. - * (zoneOperations.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $operation Name of the Operations resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - - /** - * Retrieves a list of Operation resources contained within the specified zone. - * (zoneOperations.listZoneOperations) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } -} - -/** - * The "zones" collection of methods. - * Typical usage is: - * - * $computeService = new Google_Service_Compute(...); - * $zones = $computeService->zones; - * - */ -class Google_Service_Compute_Zones_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified Zone resource. Get a list of available zones by making - * a list() request. (zones.get) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Zone - */ - public function get($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Zone"); - } - - /** - * Retrieves the list of Zone resources available to the specified project. - * (zones.listZones) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_Compute_ZoneList - */ - public function listZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); - } -} - - - - -class Google_Service_Compute_AccessConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - public $natIP; - public $type; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNatIP($natIP) - { - $this->natIP = $natIP; - } - public function getNatIP() - { - return $this->natIP; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_Address extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $address; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $region; - public $selfLink; - public $status; - public $users; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Compute_AddressAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Address'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressesScopedList extends Google_Collection -{ - protected $collection_key = 'addresses'; - protected $internal_gapi_mappings = array( - ); - protected $addressesType = 'Google_Service_Compute_Address'; - protected $addressesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; - protected $warningDataType = ''; - - - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } - public function getAddresses() - { - return $this->addresses; - } - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_AttachedDisk extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $autoDelete; - public $boot; - public $deviceName; - public $index; - protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; - protected $initializeParamsDataType = ''; - public $interface; - public $kind; - public $licenses; - public $mode; - public $source; - public $type; - - - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } - public function getAutoDelete() - { - return $this->autoDelete; - } - public function setBoot($boot) - { - $this->boot = $boot; - } - public function getBoot() - { - return $this->boot; - } - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } - public function getDeviceName() - { - return $this->deviceName; - } - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } - public function getInitializeParams() - { - return $this->initializeParams; - } - public function setInterface($interface) - { - $this->interface = $interface; - } - public function getInterface() - { - return $this->interface; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setMode($mode) - { - $this->mode = $mode; - } - public function getMode() - { - return $this->mode; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskName; - public $diskSizeGb; - public $diskType; - public $sourceImage; - - - public function setDiskName($diskName) - { - $this->diskName = $diskName; - } - public function getDiskName() - { - return $this->diskName; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - public function getSourceImage() - { - return $this->sourceImage; - } -} - -class Google_Service_Compute_Autoscaler extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $autoscalingPolicyType = 'Google_Service_Compute_AutoscalingPolicy'; - protected $autoscalingPolicyDataType = ''; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $target; - public $zone; - - - public function setAutoscalingPolicy(Google_Service_Compute_AutoscalingPolicy $autoscalingPolicy) - { - $this->autoscalingPolicy = $autoscalingPolicy; - } - public function getAutoscalingPolicy() - { - return $this->autoscalingPolicy; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_AutoscalerAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_AutoscalersScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AutoscalerList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Autoscaler'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AutoscalersScopedList extends Google_Collection -{ - protected $collection_key = 'autoscalers'; - protected $internal_gapi_mappings = array( - ); - protected $autoscalersType = 'Google_Service_Compute_Autoscaler'; - protected $autoscalersDataType = 'array'; - protected $warningType = 'Google_Service_Compute_AutoscalersScopedListWarning'; - protected $warningDataType = ''; - - - public function setAutoscalers($autoscalers) - { - $this->autoscalers = $autoscalers; - } - public function getAutoscalers() - { - return $this->autoscalers; - } - public function setWarning(Google_Service_Compute_AutoscalersScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_AutoscalersScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_AutoscalersScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_AutoscalersScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_AutoscalingPolicy extends Google_Collection -{ - protected $collection_key = 'customMetricUtilizations'; - protected $internal_gapi_mappings = array( - ); - public $coolDownPeriodSec; - protected $cpuUtilizationType = 'Google_Service_Compute_AutoscalingPolicyCpuUtilization'; - protected $cpuUtilizationDataType = ''; - protected $customMetricUtilizationsType = 'Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization'; - protected $customMetricUtilizationsDataType = 'array'; - protected $loadBalancingUtilizationType = 'Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization'; - protected $loadBalancingUtilizationDataType = ''; - public $maxNumReplicas; - public $minNumReplicas; - - - public function setCoolDownPeriodSec($coolDownPeriodSec) - { - $this->coolDownPeriodSec = $coolDownPeriodSec; - } - public function getCoolDownPeriodSec() - { - return $this->coolDownPeriodSec; - } - public function setCpuUtilization(Google_Service_Compute_AutoscalingPolicyCpuUtilization $cpuUtilization) - { - $this->cpuUtilization = $cpuUtilization; - } - public function getCpuUtilization() - { - return $this->cpuUtilization; - } - public function setCustomMetricUtilizations($customMetricUtilizations) - { - $this->customMetricUtilizations = $customMetricUtilizations; - } - public function getCustomMetricUtilizations() - { - return $this->customMetricUtilizations; - } - public function setLoadBalancingUtilization(Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) - { - $this->loadBalancingUtilization = $loadBalancingUtilization; - } - public function getLoadBalancingUtilization() - { - return $this->loadBalancingUtilization; - } - public function setMaxNumReplicas($maxNumReplicas) - { - $this->maxNumReplicas = $maxNumReplicas; - } - public function getMaxNumReplicas() - { - return $this->maxNumReplicas; - } - public function setMinNumReplicas($minNumReplicas) - { - $this->minNumReplicas = $minNumReplicas; - } - public function getMinNumReplicas() - { - return $this->minNumReplicas; - } -} - -class Google_Service_Compute_AutoscalingPolicyCpuUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $utilizationTarget; - - - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } -} - -class Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $metric; - public $utilizationTarget; - public $utilizationTargetType; - - - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } - public function setUtilizationTargetType($utilizationTargetType) - { - $this->utilizationTargetType = $utilizationTargetType; - } - public function getUtilizationTargetType() - { - return $this->utilizationTargetType; - } -} - -class Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $utilizationTarget; - - - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } -} - -class Google_Service_Compute_Backend extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $balancingMode; - public $capacityScaler; - public $description; - public $group; - public $maxRate; - public $maxRatePerInstance; - public $maxUtilization; - - - public function setBalancingMode($balancingMode) - { - $this->balancingMode = $balancingMode; - } - public function getBalancingMode() - { - return $this->balancingMode; - } - public function setCapacityScaler($capacityScaler) - { - $this->capacityScaler = $capacityScaler; - } - public function getCapacityScaler() - { - return $this->capacityScaler; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } - public function setMaxRate($maxRate) - { - $this->maxRate = $maxRate; - } - public function getMaxRate() - { - return $this->maxRate; - } - public function setMaxRatePerInstance($maxRatePerInstance) - { - $this->maxRatePerInstance = $maxRatePerInstance; - } - public function getMaxRatePerInstance() - { - return $this->maxRatePerInstance; - } - public function setMaxUtilization($maxUtilization) - { - $this->maxUtilization = $maxUtilization; - } - public function getMaxUtilization() - { - return $this->maxUtilization; - } -} - -class Google_Service_Compute_BackendService extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $backendsType = 'Google_Service_Compute_Backend'; - protected $backendsDataType = 'array'; - public $creationTimestamp; - public $description; - public $fingerprint; - public $healthChecks; - public $id; - public $kind; - public $name; - public $port; - public $portName; - public $protocol; - public $selfLink; - public $timeoutSec; - - - public function setBackends($backends) - { - $this->backends = $backends; - } - public function getBackends() - { - return $this->backends; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setPortName($portName) - { - $this->portName = $portName; - } - public function getPortName() - { - return $this->portName; - } - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } - public function getProtocol() - { - return $this->protocol; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } -} - -class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection -{ - protected $collection_key = 'healthStatus'; - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_BackendServiceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_BackendService'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DeprecationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setDeprecated($deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setObsolete($obsolete) - { - $this->obsolete = $obsolete; - } - public function getObsolete() - { - return $this->obsolete; - } - public function setReplacement($replacement) - { - $this->replacement = $replacement; - } - public function getReplacement() - { - return $this->replacement; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Compute_Disk extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $lastAttachTimestamp; - public $lastDetachTimestamp; - public $licenses; - public $name; - public $options; - public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $users; - 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 setLastAttachTimestamp($lastAttachTimestamp) - { - $this->lastAttachTimestamp = $lastAttachTimestamp; - } - public function getLastAttachTimestamp() - { - return $this->lastAttachTimestamp; - } - public function setLastDetachTimestamp($lastDetachTimestamp) - { - $this->lastDetachTimestamp = $lastDetachTimestamp; - } - public function getLastDetachTimestamp() - { - return $this->lastDetachTimestamp; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptions($options) - { - $this->options = $options; - } - public function getOptions() - { - return $this->options; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSizeGb($sizeGb) - { - $this->sizeGb = $sizeGb; - } - public function getSizeGb() - { - return $this->sizeGb; - } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - public function getSourceImage() - { - return $this->sourceImage; - } - public function setSourceImageId($sourceImageId) - { - $this->sourceImageId = $sourceImageId; - } - public function getSourceImageId() - { - return $this->sourceImageId; - } - public function setSourceSnapshot($sourceSnapshot) - { - $this->sourceSnapshot = $sourceSnapshot; - } - public function getSourceSnapshot() - { - return $this->sourceSnapshot; - } - public function setSourceSnapshotId($sourceSnapshotId) - { - $this->sourceSnapshotId = $sourceSnapshotId; - } - public function getSourceSnapshotId() - { - return $this->sourceSnapshotId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Disk'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskMoveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destinationZone; - public $targetDisk; - - - public function setDestinationZone($destinationZone) - { - $this->destinationZone = $destinationZone; - } - public function getDestinationZone() - { - return $this->destinationZone; - } - public function setTargetDisk($targetDisk) - { - $this->targetDisk = $targetDisk; - } - public function getTargetDisk() - { - return $this->targetDisk; - } -} - -class Google_Service_Compute_DiskType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $defaultDiskSizeGb; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $validDiskSize; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDefaultDiskSizeGb($defaultDiskSizeGb) - { - $this->defaultDiskSizeGb = $defaultDiskSizeGb; - } - public function getDefaultDiskSizeGb() - { - return $this->defaultDiskSizeGb; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setValidDiskSize($validDiskSize) - { - $this->validDiskSize = $validDiskSize; - } - public function getValidDiskSize() - { - return $this->validDiskSize; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypeList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_DiskType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypesScopedList extends Google_Collection -{ - protected $collection_key = 'diskTypes'; - protected $internal_gapi_mappings = array( - ); - protected $diskTypesType = 'Google_Service_Compute_DiskType'; - protected $diskTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; - protected $warningDataType = ''; - - - public function setDiskTypes($diskTypes) - { - $this->diskTypes = $diskTypes; - } - public function getDiskTypes() - { - return $this->diskTypes; - } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_DisksScopedList extends Google_Collection -{ - protected $collection_key = 'disks'; - protected $internal_gapi_mappings = array( - ); - protected $disksType = 'Google_Service_Compute_Disk'; - protected $disksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; - protected $warningDataType = ''; - - - public function setDisks($disks) - { - $this->disks = $disks; - } - public function getDisks() - { - return $this->disks; - } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Firewall extends Google_Collection -{ - protected $collection_key = 'targetTags'; - protected $internal_gapi_mappings = array( - ); - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $network; - public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; - - - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } - public function getAllowed() - { - return $this->allowed; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceRanges($sourceRanges) - { - $this->sourceRanges = $sourceRanges; - } - public function getSourceRanges() - { - return $this->sourceRanges; - } - public function setSourceTags($sourceTags) - { - $this->sourceTags = $sourceTags; - } - public function getSourceTags() - { - return $this->sourceTags; - } - public function setTargetTags($targetTags) - { - $this->targetTags = $targetTags; - } - public function getTargetTags() - { - return $this->targetTags; - } -} - -class Google_Service_Compute_FirewallAllowed extends Google_Collection -{ - protected $collection_key = 'ports'; - protected $internal_gapi_mappings = array( - "iPProtocol" => "IPProtocol", - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Firewall'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - "iPAddress" => "IPAddress", - "iPProtocol" => "IPProtocol", - ); - public $iPAddress; - public $iPProtocol; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $portRange; - public $region; - public $selfLink; - public $target; - - - public function setIPAddress($iPAddress) - { - $this->iPAddress = $iPAddress; - } - public function getIPAddress() - { - return $this->iPAddress; - } - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } - public function getIPProtocol() - { - return $this->iPProtocol; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPortRange($portRange) - { - $this->portRange = $portRange; - } - public function getPortRange() - { - return $this->portRange; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRuleList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRule'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection -{ - protected $collection_key = 'forwardingRules'; - protected $internal_gapi_mappings = array( - ); - protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; - protected $forwardingRulesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; - protected $warningDataType = ''; - - - public function setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - public function getForwardingRules() - { - return $this->forwardingRules; - } - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_HealthCheckReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthCheck; - - - public function setHealthCheck($healthCheck) - { - $this->healthCheck = $healthCheck; - } - public function getHealthCheck() - { - return $this->healthCheck; - } -} - -class Google_Service_Compute_HealthStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthState; - public $instance; - public $ipAddress; - public $port; - - - public function setHealthState($healthState) - { - $this->healthState = $healthState; - } - public function getHealthState() - { - return $this->healthState; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } -} - -class Google_Service_Compute_HostRule extends Google_Collection -{ - protected $collection_key = 'hosts'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $hosts; - public $pathMatcher; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHosts($hosts) - { - $this->hosts = $hosts; - } - public function getHosts() - { - return $this->hosts; - } - public function setPathMatcher($pathMatcher) - { - $this->pathMatcher = $pathMatcher; - } - public function getPathMatcher() - { - return $this->pathMatcher; - } -} - -class Google_Service_Compute_HttpHealthCheck extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $checkIntervalSec; - public $creationTimestamp; - public $description; - public $healthyThreshold; - public $host; - public $id; - public $kind; - public $name; - public $port; - public $requestPath; - public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; - - - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setRequestPath($requestPath) - { - $this->requestPath = $requestPath; - } - public function getRequestPath() - { - return $this->requestPath; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_HttpsHealthCheck extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $checkIntervalSec; - public $creationTimestamp; - public $description; - public $healthyThreshold; - public $host; - public $id; - public $kind; - public $name; - public $port; - public $requestPath; - public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; - - - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setRequestPath($requestPath) - { - $this->requestPath = $requestPath; - } - public function getRequestPath() - { - return $this->requestPath; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Compute_HttpsHealthCheckList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_HttpsHealthCheck'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Image extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $archiveSizeBytes; - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $sourceType; - public $status; - - - public function setArchiveSizeBytes($archiveSizeBytes) - { - $this->archiveSizeBytes = $archiveSizeBytes; - } - public function getArchiveSizeBytes() - { - return $this->archiveSizeBytes; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) - { - $this->rawDisk = $rawDisk; - } - public function getRawDisk() - { - return $this->rawDisk; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - public function getSourceDisk() - { - return $this->sourceDisk; - } - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - public function setSourceType($sourceType) - { - $this->sourceType = $sourceType; - } - public function getSourceType() - { - return $this->sourceType; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ImageList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Image'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ImageRawDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'serviceAccounts'; - protected $internal_gapi_mappings = array( - ); - public $canIpForward; - public $cpuPlatform; - public $creationTimestamp; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $id; - public $kind; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - public $name; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - public $selfLink; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $status; - public $statusMessage; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - public $zone; - - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - public function setCpuPlatform($cpuPlatform) - { - $this->cpuPlatform = $cpuPlatform; - } - public function getCpuPlatform() - { - return $this->cpuPlatform; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisks($disks) - { - $this->disks = $disks; - } - public function getDisks() - { - return $this->disks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } - public function setMetadata(Google_Service_Compute_Metadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - public function getScheduling() - { - return $this->scheduling; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTags(Google_Service_Compute_Tags $tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_InstanceAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroup extends Google_Collection -{ - protected $collection_key = 'namedPorts'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $fingerprint; - public $id; - public $kind; - public $name; - protected $namedPortsType = 'Google_Service_Compute_NamedPort'; - protected $namedPortsDataType = 'array'; - public $network; - public $selfLink; - public $size; - public $subnetwork; - 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 setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - 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 setNamedPorts($namedPorts) - { - $this->namedPorts = $namedPorts; - } - public function getNamedPorts() - { - return $this->namedPorts; - } - 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 setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSubnetwork($subnetwork) - { - $this->subnetwork = $subnetwork; - } - public function getSubnetwork() - { - return $this->subnetwork; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_InstanceGroupAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceGroupsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceGroup'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroupManager extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - public $baseInstanceName; - public $creationTimestamp; - protected $currentActionsType = 'Google_Service_Compute_InstanceGroupManagerActionsSummary'; - protected $currentActionsDataType = ''; - public $description; - public $fingerprint; - public $id; - public $instanceGroup; - public $instanceTemplate; - public $kind; - public $name; - protected $namedPortsType = 'Google_Service_Compute_NamedPort'; - protected $namedPortsDataType = 'array'; - public $selfLink; - public $targetPools; - public $targetSize; - public $zone; - - - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setCurrentActions(Google_Service_Compute_InstanceGroupManagerActionsSummary $currentActions) - { - $this->currentActions = $currentActions; - } - public function getCurrentActions() - { - return $this->currentActions; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstanceGroup($instanceGroup) - { - $this->instanceGroup = $instanceGroup; - } - public function getInstanceGroup() - { - return $this->instanceGroup; - } - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } - 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 setNamedPorts($namedPorts) - { - $this->namedPorts = $namedPorts; - } - public function getNamedPorts() - { - return $this->namedPorts; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } - public function setTargetSize($targetSize) - { - $this->targetSize = $targetSize; - } - public function getTargetSize() - { - return $this->targetSize; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_InstanceGroupManagerActionsSummary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $abandoning; - public $creating; - public $deleting; - public $none; - public $recreating; - public $refreshing; - public $restarting; - - - public function setAbandoning($abandoning) - { - $this->abandoning = $abandoning; - } - public function getAbandoning() - { - return $this->abandoning; - } - public function setCreating($creating) - { - $this->creating = $creating; - } - public function getCreating() - { - return $this->creating; - } - public function setDeleting($deleting) - { - $this->deleting = $deleting; - } - public function getDeleting() - { - return $this->deleting; - } - public function setNone($none) - { - $this->none = $none; - } - public function getNone() - { - return $this->none; - } - public function setRecreating($recreating) - { - $this->recreating = $recreating; - } - public function getRecreating() - { - return $this->recreating; - } - public function setRefreshing($refreshing) - { - $this->refreshing = $refreshing; - } - public function getRefreshing() - { - return $this->refreshing; - } - public function setRestarting($restarting) - { - $this->restarting = $restarting; - } - public function getRestarting() - { - return $this->restarting; - } -} - -class Google_Service_Compute_InstanceGroupManagerAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceGroupManagersScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroupManagerList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceGroupManager'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse extends Google_Collection -{ - protected $collection_key = 'managedInstances'; - protected $internal_gapi_mappings = array( - ); - protected $managedInstancesType = 'Google_Service_Compute_ManagedInstance'; - protected $managedInstancesDataType = 'array'; - - - public function setManagedInstances($managedInstances) - { - $this->managedInstances = $managedInstances; - } - public function getManagedInstances() - { - return $this->managedInstances; - } -} - -class Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_InstanceGroupManagersScopedList extends Google_Collection -{ - protected $collection_key = 'instanceGroupManagers'; - protected $internal_gapi_mappings = array( - ); - protected $instanceGroupManagersType = 'Google_Service_Compute_InstanceGroupManager'; - protected $instanceGroupManagersDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarning'; - protected $warningDataType = ''; - - - public function setInstanceGroupManagers($instanceGroupManagers) - { - $this->instanceGroupManagers = $instanceGroupManagers; - } - public function getInstanceGroupManagers() - { - return $this->instanceGroupManagers; - } - public function setWarning(Google_Service_Compute_InstanceGroupManagersScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_InstanceGroupManagersScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_InstanceGroupManagersScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceTemplate; - - - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } -} - -class Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - public $targetPools; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } -} - -class Google_Service_Compute_InstanceGroupsAddInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_InstanceGroupsListInstances extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceWithNamedPorts'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceGroupsListInstancesRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceState; - - - public function setInstanceState($instanceState) - { - $this->instanceState = $instanceState; - } - public function getInstanceState() - { - return $this->instanceState; - } -} - -class Google_Service_Compute_InstanceGroupsRemoveInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_InstanceGroupsScopedList extends Google_Collection -{ - protected $collection_key = 'instanceGroups'; - protected $internal_gapi_mappings = array( - ); - protected $instanceGroupsType = 'Google_Service_Compute_InstanceGroup'; - protected $instanceGroupsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstanceGroupsScopedListWarning'; - protected $warningDataType = ''; - - - public function setInstanceGroups($instanceGroups) - { - $this->instanceGroups = $instanceGroups; - } - public function getInstanceGroups() - { - return $this->instanceGroups; - } - public function setWarning(Google_Service_Compute_InstanceGroupsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_InstanceGroupsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_InstanceGroupsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_InstanceGroupsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_InstanceGroupsSetNamedPortsRequest extends Google_Collection -{ - protected $collection_key = 'namedPorts'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - protected $namedPortsType = 'Google_Service_Compute_NamedPort'; - protected $namedPortsDataType = 'array'; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setNamedPorts($namedPorts) - { - $this->namedPorts = $namedPorts; - } - public function getNamedPorts() - { - return $this->namedPorts; - } -} - -class Google_Service_Compute_InstanceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Instance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceMoveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destinationZone; - public $targetInstance; - - - public function setDestinationZone($destinationZone) - { - $this->destinationZone = $destinationZone; - } - public function getDestinationZone() - { - return $this->destinationZone; - } - public function setTargetInstance($targetInstance) - { - $this->targetInstance = $targetInstance; - } - public function getTargetInstance() - { - return $this->targetInstance; - } -} - -class Google_Service_Compute_InstanceProperties extends Google_Collection -{ - protected $collection_key = 'serviceAccounts'; - protected $internal_gapi_mappings = array( - ); - public $canIpForward; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - 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 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 setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - public function getScheduling() - { - return $this->scheduling; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setTags(Google_Service_Compute_Tags $tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_Compute_InstanceReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instance; - - - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } -} - -class Google_Service_Compute_InstanceTemplate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - protected $propertiesType = 'Google_Service_Compute_InstanceProperties'; - protected $propertiesDataType = ''; - public $selfLink; - - - 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 setProperties(Google_Service_Compute_InstanceProperties $properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceTemplateList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_InstanceTemplate'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceWithNamedPorts extends Google_Collection -{ - protected $collection_key = 'namedPorts'; - protected $internal_gapi_mappings = array( - ); - public $instance; - protected $namedPortsType = 'Google_Service_Compute_NamedPort'; - protected $namedPortsDataType = 'array'; - public $status; - - - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setNamedPorts($namedPorts) - { - $this->namedPorts = $namedPorts; - } - public function getNamedPorts() - { - return $this->namedPorts; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_InstancesScopedList extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_Instance'; - protected $instancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; - protected $warningDataType = ''; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } - public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_InstancesSetMachineTypeRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $machineType; - - - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } -} - -class Google_Service_Compute_License extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $chargesUseFee; - public $kind; - public $name; - public $selfLink; - - - public function setChargesUseFee($chargesUseFee) - { - $this->chargesUseFee = $chargesUseFee; - } - public function getChargesUseFee() - { - return $this->chargesUseFee; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineType extends Google_Collection -{ - protected $collection_key = 'scratchDisks'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $guestCpus; - public $id; - public $imageSpaceGb; - public $kind; - public $maximumPersistentDisks; - public $maximumPersistentDisksSizeGb; - public $memoryMb; - public $name; - protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; - protected $scratchDisksDataType = 'array'; - public $selfLink; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGuestCpus($guestCpus) - { - $this->guestCpus = $guestCpus; - } - public function getGuestCpus() - { - return $this->guestCpus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImageSpaceGb($imageSpaceGb) - { - $this->imageSpaceGb = $imageSpaceGb; - } - public function getImageSpaceGb() - { - return $this->imageSpaceGb; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaximumPersistentDisks($maximumPersistentDisks) - { - $this->maximumPersistentDisks = $maximumPersistentDisks; - } - public function getMaximumPersistentDisks() - { - return $this->maximumPersistentDisks; - } - public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) - { - $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; - } - public function getMaximumPersistentDisksSizeGb() - { - return $this->maximumPersistentDisksSizeGb; - } - public function setMemoryMb($memoryMb) - { - $this->memoryMb = $memoryMb; - } - public function getMemoryMb() - { - return $this->memoryMb; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScratchDisks($scratchDisks) - { - $this->scratchDisks = $scratchDisks; - } - public function getScratchDisks() - { - return $this->scratchDisks; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_MachineType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskGb; - - - public function setDiskGb($diskGb) - { - $this->diskGb = $diskGb; - } - public function getDiskGb() - { - return $this->diskGb; - } -} - -class Google_Service_Compute_MachineTypesScopedList extends Google_Collection -{ - protected $collection_key = 'machineTypes'; - protected $internal_gapi_mappings = array( - ); - protected $machineTypesType = 'Google_Service_Compute_MachineType'; - protected $machineTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; - protected $warningDataType = ''; - - - public function setMachineTypes($machineTypes) - { - $this->machineTypes = $machineTypes; - } - public function getMachineTypes() - { - return $this->machineTypes; - } - public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ManagedInstance extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentAction; - public $id; - public $instance; - public $instanceStatus; - protected $lastAttemptType = 'Google_Service_Compute_ManagedInstanceLastAttempt'; - protected $lastAttemptDataType = ''; - - - public function setCurrentAction($currentAction) - { - $this->currentAction = $currentAction; - } - public function getCurrentAction() - { - return $this->currentAction; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setInstanceStatus($instanceStatus) - { - $this->instanceStatus = $instanceStatus; - } - public function getInstanceStatus() - { - return $this->instanceStatus; - } - public function setLastAttempt(Google_Service_Compute_ManagedInstanceLastAttempt $lastAttempt) - { - $this->lastAttempt = $lastAttempt; - } - public function getLastAttempt() - { - return $this->lastAttempt; - } -} - -class Google_Service_Compute_ManagedInstanceLastAttempt extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrors'; - protected $errorsDataType = ''; - - - public function setErrors(Google_Service_Compute_ManagedInstanceLastAttemptErrors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Compute_ManagedInstanceLastAttemptErrors extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - protected $itemsType = 'Google_Service_Compute_MetadataItems'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_MetadataItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_NamedPort extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $port; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } -} - -class Google_Service_Compute_Network extends Google_Collection -{ - protected $collection_key = 'subnetworks'; - protected $internal_gapi_mappings = array( - "iPv4Range" => "IPv4Range", - ); - public $iPv4Range; - public $autoCreateSubnetworks; - public $creationTimestamp; - public $description; - public $gatewayIPv4; - public $id; - public $kind; - public $name; - public $selfLink; - public $subnetworks; - - - public function setIPv4Range($iPv4Range) - { - $this->iPv4Range = $iPv4Range; - } - public function getIPv4Range() - { - return $this->iPv4Range; - } - public function setAutoCreateSubnetworks($autoCreateSubnetworks) - { - $this->autoCreateSubnetworks = $autoCreateSubnetworks; - } - public function getAutoCreateSubnetworks() - { - return $this->autoCreateSubnetworks; - } - 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; - } - public function setSubnetworks($subnetworks) - { - $this->subnetworks = $subnetworks; - } - public function getSubnetworks() - { - return $this->subnetworks; - } -} - -class Google_Service_Compute_NetworkInterface extends Google_Collection -{ - protected $collection_key = 'accessConfigs'; - protected $internal_gapi_mappings = array( - ); - protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIP; - public $subnetwork; - - - 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; - } - public function setSubnetwork($subnetwork) - { - $this->subnetwork = $subnetwork; - } - public function getSubnetwork() - { - return $this->subnetwork; - } -} - -class Google_Service_Compute_NetworkList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Network'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $description; - public $endTime; - protected $errorType = 'Google_Service_Compute_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Compute_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function 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 setError(Google_Service_Compute_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_OperationAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Compute_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_OperationsScopedList extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - protected $operationsType = 'Google_Service_Compute_Operation'; - protected $operationsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; - protected $warningDataType = ''; - - - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } - public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_PathMatcher extends Google_Collection -{ - protected $collection_key = 'pathRules'; - protected $internal_gapi_mappings = array( - ); - public $defaultService; - public $description; - public $name; - protected $pathRulesType = 'Google_Service_Compute_PathRule'; - protected $pathRulesDataType = 'array'; - - - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - public function getDefaultService() - { - return $this->defaultService; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPathRules($pathRules) - { - $this->pathRules = $pathRules; - } - public function getPathRules() - { - return $this->pathRules; - } -} - -class Google_Service_Compute_PathRule extends Google_Collection -{ - protected $collection_key = 'paths'; - protected $internal_gapi_mappings = array( - ); - public $paths; - public $service; - - - public function setPaths($paths) - { - $this->paths = $paths; - } - public function getPaths() - { - return $this->paths; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_Project extends Google_Collection -{ - protected $collection_key = 'quotas'; - protected $internal_gapi_mappings = array( - ); - protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; - protected $commonInstanceMetadataDataType = ''; - public $creationTimestamp; - public $description; - public $enabledFeatures; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; - protected $usageExportLocationDataType = ''; - - - public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) - { - $this->commonInstanceMetadata = $commonInstanceMetadata; - } - public function getCommonInstanceMetadata() - { - return $this->commonInstanceMetadata; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEnabledFeatures($enabledFeatures) - { - $this->enabledFeatures = $enabledFeatures; - } - public function getEnabledFeatures() - { - return $this->enabledFeatures; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - public function getQuotas() - { - return $this->quotas; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) - { - $this->usageExportLocation = $usageExportLocation; - } - public function getUsageExportLocation() - { - return $this->usageExportLocation; - } -} - -class Google_Service_Compute_Quota extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $limit; - public $metric; - public $usage; - - - public function setLimit($limit) - { - $this->limit = $limit; - } - public function getLimit() - { - return $this->limit; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } - public function setUsage($usage) - { - $this->usage = $usage; - } - public function getUsage() - { - return $this->usage; - } -} - -class Google_Service_Compute_Region extends Google_Collection -{ - protected $collection_key = 'zones'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - public $status; - public $zones; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - public function getQuotas() - { - return $this->quotas; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setZones($zones) - { - $this->zones = $zones; - } - public function getZones() - { - return $this->zones; - } -} - -class Google_Service_Compute_RegionList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Region'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ResourceGroupReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $group; - - - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } -} - -class Google_Service_Compute_Route extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $destRange; - public $id; - public $kind; - public $name; - public $network; - public $nextHopGateway; - public $nextHopInstance; - public $nextHopIp; - public $nextHopNetwork; - public $nextHopVpnTunnel; - public $priority; - public $selfLink; - public $tags; - protected $warningsType = 'Google_Service_Compute_RouteWarnings'; - protected $warningsDataType = 'array'; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDestRange($destRange) - { - $this->destRange = $destRange; - } - public function getDestRange() - { - return $this->destRange; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNextHopGateway($nextHopGateway) - { - $this->nextHopGateway = $nextHopGateway; - } - public function getNextHopGateway() - { - return $this->nextHopGateway; - } - public function setNextHopInstance($nextHopInstance) - { - $this->nextHopInstance = $nextHopInstance; - } - public function getNextHopInstance() - { - return $this->nextHopInstance; - } - public function setNextHopIp($nextHopIp) - { - $this->nextHopIp = $nextHopIp; - } - public function getNextHopIp() - { - return $this->nextHopIp; - } - public function setNextHopNetwork($nextHopNetwork) - { - $this->nextHopNetwork = $nextHopNetwork; - } - public function getNextHopNetwork() - { - return $this->nextHopNetwork; - } - public function setNextHopVpnTunnel($nextHopVpnTunnel) - { - $this->nextHopVpnTunnel = $nextHopVpnTunnel; - } - public function getNextHopVpnTunnel() - { - return $this->nextHopVpnTunnel; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Compute_RouteList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Route'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_RouteWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_RouteWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_RouteWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Scheduling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $automaticRestart; - public $onHostMaintenance; - public $preemptible; - - - public function setAutomaticRestart($automaticRestart) - { - $this->automaticRestart = $automaticRestart; - } - public function getAutomaticRestart() - { - return $this->automaticRestart; - } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } - public function setPreemptible($preemptible) - { - $this->preemptible = $preemptible; - } - public function getPreemptible() - { - return $this->preemptible; - } -} - -class Google_Service_Compute_SerialPortOutput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'scopes'; - protected $internal_gapi_mappings = array( - ); - public $email; - public $scopes; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } - public function getScopes() - { - return $this->scopes; - } -} - -class Google_Service_Compute_Snapshot extends Google_Collection -{ - protected $collection_key = 'licenses'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $status; - public $storageBytes; - public $storageBytesStatus; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - public function getLicenses() - { - return $this->licenses; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - public function getSourceDisk() - { - return $this->sourceDisk; - } - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStorageBytes($storageBytes) - { - $this->storageBytes = $storageBytes; - } - public function getStorageBytes() - { - return $this->storageBytes; - } - public function setStorageBytesStatus($storageBytesStatus) - { - $this->storageBytesStatus = $storageBytesStatus; - } - public function getStorageBytesStatus() - { - return $this->storageBytesStatus; - } -} - -class Google_Service_Compute_SnapshotList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Snapshot'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_SslCertificate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $certificate; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $privateKey; - public $selfLink; - - - public function setCertificate($certificate) - { - $this->certificate = $certificate; - } - public function getCertificate() - { - return $this->certificate; - } - 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 setPrivateKey($privateKey) - { - $this->privateKey = $privateKey; - } - public function getPrivateKey() - { - return $this->privateKey; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_SslCertificateList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_SslCertificate'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Subnetwork extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $gatewayAddress; - public $id; - public $ipCidrRange; - public $kind; - public $name; - public $network; - public $region; - public $selfLink; - - - 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 setGatewayAddress($gatewayAddress) - { - $this->gatewayAddress = $gatewayAddress; - } - public function getGatewayAddress() - { - return $this->gatewayAddress; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIpCidrRange($ipCidrRange) - { - $this->ipCidrRange = $ipCidrRange; - } - public function getIpCidrRange() - { - return $this->ipCidrRange; - } - 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 setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_SubnetworkAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_SubnetworksScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_SubnetworkList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Subnetwork'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_SubnetworksScopedList extends Google_Collection -{ - protected $collection_key = 'subnetworks'; - protected $internal_gapi_mappings = array( - ); - protected $subnetworksType = 'Google_Service_Compute_Subnetwork'; - protected $subnetworksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_SubnetworksScopedListWarning'; - protected $warningDataType = ''; - - - public function setSubnetworks($subnetworks) - { - $this->subnetworks = $subnetworks; - } - public function getSubnetworks() - { - return $this->subnetworks; - } - public function setWarning(Google_Service_Compute_SubnetworksScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_SubnetworksScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_SubnetworksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_SubnetworksScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Tags extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - public $items; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } -} - -class Google_Service_Compute_TargetHttpProxy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $urlMap; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_TargetHttpProxyList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest extends Google_Collection -{ - protected $collection_key = 'sslCertificates'; - protected $internal_gapi_mappings = array( - ); - public $sslCertificates; - - - public function setSslCertificates($sslCertificates) - { - $this->sslCertificates = $sslCertificates; - } - public function getSslCertificates() - { - return $this->sslCertificates; - } -} - -class Google_Service_Compute_TargetHttpsProxy extends Google_Collection -{ - protected $collection_key = 'sslCertificates'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $sslCertificates; - public $urlMap; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSslCertificates($sslCertificates) - { - $this->sslCertificates = $sslCertificates; - } - public function getSslCertificates() - { - return $this->sslCertificates; - } - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_TargetHttpsProxyList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetHttpsProxy'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstance extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $instance; - public $kind; - public $name; - public $natPolicy; - public $selfLink; - public $zone; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNatPolicy($natPolicy) - { - $this->natPolicy = $natPolicy; - } - public function getNatPolicy() - { - return $this->natPolicy; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstanceList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection -{ - protected $collection_key = 'targetInstances'; - protected $internal_gapi_mappings = array( - ); - protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; - protected $targetInstancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetInstances($targetInstances) - { - $this->targetInstances = $targetInstances; - } - public function getTargetInstances() - { - return $this->targetInstances; - } - public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetPool extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $backupPool; - public $creationTimestamp; - public $description; - public $failoverRatio; - public $healthChecks; - public $id; - public $instances; - public $kind; - public $name; - public $region; - public $selfLink; - public $sessionAffinity; - - - public function setBackupPool($backupPool) - { - $this->backupPool = $backupPool; - } - public function getBackupPool() - { - return $this->backupPool; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFailoverRatio($failoverRatio) - { - $this->failoverRatio = $failoverRatio; - } - public function getFailoverRatio() - { - return $this->failoverRatio; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSessionAffinity($sessionAffinity) - { - $this->sessionAffinity = $sessionAffinity; - } - public function getSessionAffinity() - { - return $this->sessionAffinity; - } -} - -class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection -{ - protected $collection_key = 'healthStatus'; - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_TargetPoolList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPool'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; - protected $targetPoolsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } - public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $target; - - - public function setTarget($target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_TargetVpnGateway extends Google_Collection -{ - protected $collection_key = 'tunnels'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $forwardingRules; - public $id; - public $kind; - public $name; - public $network; - public $region; - public $selfLink; - public $status; - public $tunnels; - - - 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 setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - public function getForwardingRules() - { - return $this->forwardingRules; - } - 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 setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTunnels($tunnels) - { - $this->tunnels = $tunnels; - } - public function getTunnels() - { - return $this->tunnels; - } -} - -class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_TargetVpnGateway'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection -{ - protected $collection_key = 'targetVpnGateways'; - protected $internal_gapi_mappings = array( - ); - protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway'; - protected $targetVpnGatewaysDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning'; - protected $warningDataType = ''; - - - public function setTargetVpnGateways($targetVpnGateways) - { - $this->targetVpnGateways = $targetVpnGateways; - } - public function getTargetVpnGateways() - { - return $this->targetVpnGateways; - } - public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_TestFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualService; - public $expectedService; - public $host; - public $path; - - - public function setActualService($actualService) - { - $this->actualService = $actualService; - } - public function getActualService() - { - return $this->actualService; - } - public function setExpectedService($expectedService) - { - $this->expectedService = $expectedService; - } - public function getExpectedService() - { - return $this->expectedService; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Compute_UrlMap extends Google_Collection -{ - protected $collection_key = 'tests'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $defaultService; - public $description; - public $fingerprint; - protected $hostRulesType = 'Google_Service_Compute_HostRule'; - protected $hostRulesDataType = 'array'; - public $id; - public $kind; - public $name; - protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; - protected $pathMatchersDataType = 'array'; - public $selfLink; - protected $testsType = 'Google_Service_Compute_UrlMapTest'; - protected $testsDataType = 'array'; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - public function getDefaultService() - { - return $this->defaultService; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setHostRules($hostRules) - { - $this->hostRules = $hostRules; - } - public function getHostRules() - { - return $this->hostRules; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPathMatchers($pathMatchers) - { - $this->pathMatchers = $pathMatchers; - } - public function getPathMatchers() - { - return $this->pathMatchers; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setTests($tests) - { - $this->tests = $tests; - } - public function getTests() - { - return $this->tests; - } -} - -class Google_Service_Compute_UrlMapList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_UrlMap'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_UrlMapReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $urlMap; - - - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_UrlMapTest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $host; - public $path; - public $service; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_UrlMapValidationResult extends Google_Collection -{ - protected $collection_key = 'testFailures'; - protected $internal_gapi_mappings = array( - ); - public $loadErrors; - public $loadSucceeded; - protected $testFailuresType = 'Google_Service_Compute_TestFailure'; - protected $testFailuresDataType = 'array'; - public $testPassed; - - - public function setLoadErrors($loadErrors) - { - $this->loadErrors = $loadErrors; - } - public function getLoadErrors() - { - return $this->loadErrors; - } - public function setLoadSucceeded($loadSucceeded) - { - $this->loadSucceeded = $loadSucceeded; - } - public function getLoadSucceeded() - { - return $this->loadSucceeded; - } - public function setTestFailures($testFailures) - { - $this->testFailures = $testFailures; - } - public function getTestFailures() - { - return $this->testFailures; - } - public function setTestPassed($testPassed) - { - $this->testPassed = $testPassed; - } - public function getTestPassed() - { - return $this->testPassed; - } -} - -class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Compute_UrlMap'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Compute_UrlMap $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; - protected $resultDataType = ''; - - - public function setResult(Google_Service_Compute_UrlMapValidationResult $result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Compute_UsageExportLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucketName; - public $reportNamePrefix; - - - public function setBucketName($bucketName) - { - $this->bucketName = $bucketName; - } - public function getBucketName() - { - return $this->bucketName; - } - public function setReportNamePrefix($reportNamePrefix) - { - $this->reportNamePrefix = $reportNamePrefix; - } - public function getReportNamePrefix() - { - return $this->reportNamePrefix; - } -} - -class Google_Service_Compute_VpnTunnel extends Google_Collection -{ - protected $collection_key = 'localTrafficSelector'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $detailedStatus; - public $id; - public $ikeVersion; - public $kind; - public $localTrafficSelector; - public $name; - public $peerIp; - public $region; - public $selfLink; - public $sharedSecret; - public $sharedSecretHash; - public $status; - public $targetVpnGateway; - - - 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 setDetailedStatus($detailedStatus) - { - $this->detailedStatus = $detailedStatus; - } - public function getDetailedStatus() - { - return $this->detailedStatus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIkeVersion($ikeVersion) - { - $this->ikeVersion = $ikeVersion; - } - public function getIkeVersion() - { - return $this->ikeVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalTrafficSelector($localTrafficSelector) - { - $this->localTrafficSelector = $localTrafficSelector; - } - public function getLocalTrafficSelector() - { - return $this->localTrafficSelector; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPeerIp($peerIp) - { - $this->peerIp = $peerIp; - } - public function getPeerIp() - { - return $this->peerIp; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSharedSecret($sharedSecret) - { - $this->sharedSecret = $sharedSecret; - } - public function getSharedSecret() - { - return $this->sharedSecret; - } - public function setSharedSecretHash($sharedSecretHash) - { - $this->sharedSecretHash = $sharedSecretHash; - } - public function getSharedSecretHash() - { - return $this->sharedSecretHash; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTargetVpnGateway($targetVpnGateway) - { - $this->targetVpnGateway = $targetVpnGateway; - } - public function getTargetVpnGateway() - { - return $this->targetVpnGateway; - } -} - -class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_VpnTunnelList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_VpnTunnel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection -{ - protected $collection_key = 'vpnTunnels'; - protected $internal_gapi_mappings = array( - ); - protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel'; - protected $vpnTunnelsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning'; - protected $warningDataType = ''; - - - public function setVpnTunnels($vpnTunnels) - { - $this->vpnTunnels = $vpnTunnels; - } - public function getVpnTunnels() - { - return $this->vpnTunnels; - } - public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Zone extends Google_Collection -{ - protected $collection_key = 'maintenanceWindows'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows'; - protected $maintenanceWindowsDataType = 'array'; - public $name; - public $region; - public $selfLink; - public $status; - - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - public function getDeprecated() - { - return $this->deprecated; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaintenanceWindows($maintenanceWindows) - { - $this->maintenanceWindows = $maintenanceWindows; - } - public function getMaintenanceWindows() - { - return $this->maintenanceWindows; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ZoneList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Compute_Zone'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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/Computeaccounts.php b/src/Google/Service/Computeaccounts.php deleted file mode 100644 index 35eacaf47..000000000 --- a/src/Google/Service/Computeaccounts.php +++ /dev/null @@ -1,1689 +0,0 @@ - - * API for the Google Compute Accounts service.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Computeaccounts extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** New Service: https://www.googleapis.com/auth/computeaccounts. */ - const COMPUTEACCOUNTS = - "https://www.googleapis.com/auth/computeaccounts"; - /** New Service: https://www.googleapis.com/auth/computeaccounts.readonly. */ - const COMPUTEACCOUNTS_READONLY = - "https://www.googleapis.com/auth/computeaccounts.readonly"; - - public $globalAccountsOperations; - public $groups; - public $linux; - public $users; - - - /** - * Constructs the internal representation of the Computeaccounts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'computeaccounts/alpha/projects/'; - $this->version = 'alpha'; - $this->serviceName = 'computeaccounts'; - - $this->globalAccountsOperations = new Google_Service_Computeaccounts_GlobalAccountsOperations_Resource( - $this, - $this->serviceName, - 'globalAccountsOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_Computeaccounts_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'addMember' => array( - 'path' => '{project}/global/groups/{groupName}/addMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/groups/{groupName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeMember' => array( - 'path' => '{project}/global/groups/{groupName}/removeMember', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'groupName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->linux = new Google_Service_Computeaccounts_Linux_Resource( - $this, - $this->serviceName, - 'linux', - array( - 'methods' => array( - 'getAuthorizedKeysView' => array( - 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getLinuxAccountViews' => array( - 'path' => '{project}/zones/{zone}/linuxAccountViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'user' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Computeaccounts_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'addPublicKey' => array( - 'path' => '{project}/global/users/{user}/addPublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/users/{user}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removePublicKey' => array( - 'path' => '{project}/global/users/{user}/removePublicKey', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'user' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "globalAccountsOperations" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations; - * - */ -class Google_Service_Computeaccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified operation resource. (globalAccountsOperations.delete) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the specified operation resource. (globalAccountsOperations.get) - * - * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalAccountsOperations.listGlobalAccountsOperations) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_OperationList - */ - public function listGlobalAccountsOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_OperationList"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $groups = $computeaccountsService->groups; - * - */ -class Google_Service_Computeaccounts_Groups_Resource extends Google_Service_Resource -{ - - /** - * Adds users to the specified group. (groups.addMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsAddMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function addMember($project, $groupName, Google_Service_Computeaccounts_GroupsAddMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addMember', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Deletes the specified group resource. (groups.delete) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function delete($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Returns the specified group resource. (groups.get) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Group - */ - public function get($project, $groupName, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_Group"); - } - - /** - * Creates a group resource in the specified project using the data included in - * the request. (groups.insert) - * - * @param string $project Project ID for this request. - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function insert($project, Google_Service_Computeaccounts_Group $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of groups contained within the specified project. - * (groups.listGroups) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_GroupList - */ - public function listGroups($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_GroupList"); - } - - /** - * Removes users from the specified group. (groups.removeMember) - * - * @param string $project Project ID for this request. - * @param string $groupName Name of the group for this request. - * @param Google_GroupsRemoveMemberRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function removeMember($project, $groupName, Google_Service_Computeaccounts_GroupsRemoveMemberRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeMember', array($params), "Google_Service_Computeaccounts_Operation"); - } -} - -/** - * The "linux" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $linux = $computeaccountsService->linux; - * - */ -class Google_Service_Computeaccounts_Linux_Resource extends Google_Service_Resource -{ - - /** - * Returns the AuthorizedKeysView of the specified user. - * (linux.getAuthorizedKeysView) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $user Username of the AuthorizedKeysView to return. - * @param string $instance The fully-qualified URL of the instance requesting - * the view. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse - */ - public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getAuthorizedKeysView', array($params), "Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse"); - } - - /** - * Retrieves the Linux views for an instance contained within the specified - * project. (linux.getLinuxAccountViews) - * - * @param string $project Project ID for this request. - * @param string $zone Name of the zone for this request. - * @param string $instance The fully-qualified URL of the instance requesting - * the views. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string user If provided, the user whose login is triggering an - * immediate refresh of the views. - * @return Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse - */ - public function getLinuxAccountViews($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getLinuxAccountViews', array($params), "Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $computeaccountsService = new Google_Service_Computeaccounts(...); - * $users = $computeaccountsService->users; - * - */ -class Google_Service_Computeaccounts_Users_Resource extends Google_Service_Resource -{ - - /** - * Adds a public key to the specified user using the data included in the - * request. (users.addPublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param Google_PublicKey $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function addPublicKey($project, $user, Google_Service_Computeaccounts_PublicKey $postBody, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addPublicKey', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Deletes the specified user resource. (users.delete) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function delete($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Returns the specified user resource. (users.get) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_User - */ - public function get($project, $user, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Computeaccounts_User"); - } - - /** - * Creates a user resource in the specified project using the data included in - * the request. (users.insert) - * - * @param string $project Project ID for this request. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function insert($project, Google_Service_Computeaccounts_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation"); - } - - /** - * Retrieves the list of users contained within the specified project. - * (users.listUsers) - * - * @param string $project Project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @return Google_Service_Computeaccounts_UserList - */ - public function listUsers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Computeaccounts_UserList"); - } - - /** - * Removes the specified public key from the user. (users.removePublicKey) - * - * @param string $project Project ID for this request. - * @param string $user Name of the user for this request. - * @param string $fingerprint The fingerprint of the public key to delete. - * Public keys are identified by their fingerprint, which is defined by RFC4716 - * to be the MD5 digest of the public key. - * @param array $optParams Optional parameters. - * @return Google_Service_Computeaccounts_Operation - */ - public function removePublicKey($project, $user, $fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint); - $params = array_merge($params, $optParams); - return $this->call('removePublicKey', array($params), "Google_Service_Computeaccounts_Operation"); - } -} - - - - -class Google_Service_Computeaccounts_AuthorizedKeysView extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $keys; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Computeaccounts_Group extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $members; - public $name; - public $selfLink; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - 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_Computeaccounts_GroupList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_Group'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_GroupsAddMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Computeaccounts_GroupsRemoveMemberRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $users; - - - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Computeaccounts_LinuxAccountViews extends Google_Collection -{ - protected $collection_key = 'userViews'; - protected $internal_gapi_mappings = array( - ); - protected $groupViewsType = 'Google_Service_Computeaccounts_LinuxGroupView'; - protected $groupViewsDataType = 'array'; - public $kind; - protected $userViewsType = 'Google_Service_Computeaccounts_LinuxUserView'; - protected $userViewsDataType = 'array'; - - - public function setGroupViews($groupViews) - { - $this->groupViews = $groupViews; - } - public function getGroupViews() - { - return $this->groupViews; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserViews($userViews) - { - $this->userViews = $userViews; - } - public function getUserViews() - { - return $this->userViews; - } -} - -class Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Computeaccounts_AuthorizedKeysView'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Computeaccounts_AuthorizedKeysView $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceType = 'Google_Service_Computeaccounts_LinuxAccountViews'; - protected $resourceDataType = ''; - - - public function setResource(Google_Service_Computeaccounts_LinuxAccountViews $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Computeaccounts_LinuxGroupView extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $gid; - public $groupName; - public $members; - - - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setGroupName($groupName) - { - $this->groupName = $groupName; - } - public function getGroupName() - { - return $this->groupName; - } - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } -} - -class Google_Service_Computeaccounts_LinuxUserView extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gecos; - public $gid; - public $homeDirectory; - public $shell; - public $uid; - public $username; - - - public function setGecos($gecos) - { - $this->gecos = $gecos; - } - public function getGecos() - { - return $this->gecos; - } - public function setGid($gid) - { - $this->gid = $gid; - } - public function getGid() - { - return $this->gid; - } - public function setHomeDirectory($homeDirectory) - { - $this->homeDirectory = $homeDirectory; - } - public function getHomeDirectory() - { - return $this->homeDirectory; - } - public function setShell($shell) - { - $this->shell = $shell; - } - public function getShell() - { - return $this->shell; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Computeaccounts_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Computeaccounts_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Computeaccounts_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Computeaccounts_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Computeaccounts_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Computeaccounts_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Computeaccounts_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Computeaccounts_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Computeaccounts_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Computeaccounts_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Computeaccounts_PublicKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $expirationTimestamp; - public $fingerprint; - public $key; - - - 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 setExpirationTimestamp($expirationTimestamp) - { - $this->expirationTimestamp = $expirationTimestamp; - } - public function getExpirationTimestamp() - { - return $this->expirationTimestamp; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } -} - -class Google_Service_Computeaccounts_User extends Google_Collection -{ - protected $collection_key = 'publicKeys'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - public $groups; - public $id; - public $kind; - public $name; - public $owner; - protected $publicKeysType = 'Google_Service_Computeaccounts_PublicKey'; - protected $publicKeysDataType = 'array'; - public $selfLink; - - - 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 setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setOwner($owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setPublicKeys($publicKeys) - { - $this->publicKeys = $publicKeys; - } - public function getPublicKeys() - { - return $this->publicKeys; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Computeaccounts_UserList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Computeaccounts_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} diff --git a/src/Google/Service/Container.php b/src/Google/Service/Container.php deleted file mode 100644 index 68b147e40..000000000 --- a/src/Google/Service/Container.php +++ /dev/null @@ -1,913 +0,0 @@ - - * The Google Container Engine API is used for building and managing container - * based applications, powered by the open source Kubernetes technology.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Container extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $projects_zones; - public $projects_zones_clusters; - public $projects_zones_operations; - - - /** - * Constructs the internal representation of the Container service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://container.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'container'; - - $this->projects_zones = new Google_Service_Container_ProjectsZones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'getServerconfig' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/serverconfig', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource( - $this, - $this->serviceName, - 'clusters', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $projects = $containerService->projects; - * - */ -class Google_Service_Container_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "zones" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $zones = $containerService->zones; - * - */ -class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource -{ - - /** - * Returns configuration info about the Container Engine service. - * (zones.getServerconfig) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) to return operations for, or "-" for - * all zones. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ServerConfig - */ - public function getServerconfig($projectId, $zone, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('getServerconfig', array($params), "Google_Service_Container_ServerConfig"); - } -} - -/** - * The "clusters" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $clusters = $containerService->clusters; - * - */ -class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Service_Resource -{ - - /** - * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances, plus a Kubernetes master endpoint. By default, the - * cluster is created in the project's [default - * network](/compute/docs/networking#networks_1). One firewall is added for the - * cluster. After cluster creation, the cluster creates routes for each node to - * allow the containers on that node to communicate with all other instances in - * the cluster. Finally, an entry is added to the project's global metadata - * indicating which CIDR range is being used by the cluster. (clusters.create) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides. - * @param Google_CreateClusterRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Operation - */ - public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Container_Operation"); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. - * Firewalls and routes that were configured during cluster creation are also - * deleted. (clusters.delete) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides. - * @param string $clusterId The name of the cluster to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Operation - */ - public function delete($projectId, $zone, $clusterId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Container_Operation"); - } - - /** - * Gets a specific cluster. (clusters.get) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides. - * @param string $clusterId The name of the cluster to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Cluster - */ - public function get($projectId, $zone, $clusterId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Container_Cluster"); - } - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. (clusters.listProjectsZonesClusters) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" - * for all zones. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListClustersResponse - */ - public function listProjectsZonesClusters($projectId, $zone, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); - } - - /** - * Update settings of a specific cluster. (clusters.update) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides. - * @param string $clusterId The name of the cluster to upgrade. - * @param Google_UpdateClusterRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Operation - */ - public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Container_Operation"); - } -} -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $operations = $containerService->operations; - * - */ -class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_Service_Resource -{ - - /** - * Gets the specified operation. (operations.get) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) in which the cluster resides. - * @param string $operationId The server-assigned `name` of the operation. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_Operation - */ - public function get($projectId, $zone, $operationId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Container_Operation"); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * (operations.listProjectsZonesOperations) - * - * @param string $projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param string $zone The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) to return operations for, or "-" for - * all zones. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListOperationsResponse - */ - public function listProjectsZonesOperations($projectId, $zone, $optParams = array()) - { - $params = array('projectId' => $projectId, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse"); - } -} - - - - -class Google_Service_Container_Cluster extends Google_Collection -{ - protected $collection_key = 'instanceGroupUrls'; - protected $internal_gapi_mappings = array( - ); - public $clusterIpv4Cidr; - public $createTime; - public $currentMasterVersion; - public $currentNodeVersion; - public $description; - public $endpoint; - public $initialClusterVersion; - public $initialNodeCount; - public $instanceGroupUrls; - public $loggingService; - protected $masterAuthType = 'Google_Service_Container_MasterAuth'; - protected $masterAuthDataType = ''; - public $monitoringService; - public $name; - public $network; - protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; - protected $nodeConfigDataType = ''; - public $nodeIpv4CidrSize; - public $selfLink; - public $servicesIpv4Cidr; - public $status; - public $statusMessage; - public $zone; - - - public function setClusterIpv4Cidr($clusterIpv4Cidr) - { - $this->clusterIpv4Cidr = $clusterIpv4Cidr; - } - public function getClusterIpv4Cidr() - { - return $this->clusterIpv4Cidr; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setCurrentMasterVersion($currentMasterVersion) - { - $this->currentMasterVersion = $currentMasterVersion; - } - public function getCurrentMasterVersion() - { - return $this->currentMasterVersion; - } - public function setCurrentNodeVersion($currentNodeVersion) - { - $this->currentNodeVersion = $currentNodeVersion; - } - public function getCurrentNodeVersion() - { - return $this->currentNodeVersion; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEndpoint($endpoint) - { - $this->endpoint = $endpoint; - } - public function getEndpoint() - { - return $this->endpoint; - } - public function setInitialClusterVersion($initialClusterVersion) - { - $this->initialClusterVersion = $initialClusterVersion; - } - public function getInitialClusterVersion() - { - return $this->initialClusterVersion; - } - public function setInitialNodeCount($initialNodeCount) - { - $this->initialNodeCount = $initialNodeCount; - } - public function getInitialNodeCount() - { - return $this->initialNodeCount; - } - public function setInstanceGroupUrls($instanceGroupUrls) - { - $this->instanceGroupUrls = $instanceGroupUrls; - } - public function getInstanceGroupUrls() - { - return $this->instanceGroupUrls; - } - public function setLoggingService($loggingService) - { - $this->loggingService = $loggingService; - } - public function getLoggingService() - { - return $this->loggingService; - } - public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth) - { - $this->masterAuth = $masterAuth; - } - public function getMasterAuth() - { - return $this->masterAuth; - } - public function setMonitoringService($monitoringService) - { - $this->monitoringService = $monitoringService; - } - public function getMonitoringService() - { - return $this->monitoringService; - } - 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 setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig) - { - $this->nodeConfig = $nodeConfig; - } - public function getNodeConfig() - { - return $this->nodeConfig; - } - public function setNodeIpv4CidrSize($nodeIpv4CidrSize) - { - $this->nodeIpv4CidrSize = $nodeIpv4CidrSize; - } - public function getNodeIpv4CidrSize() - { - return $this->nodeIpv4CidrSize; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServicesIpv4Cidr($servicesIpv4Cidr) - { - $this->servicesIpv4Cidr = $servicesIpv4Cidr; - } - public function getServicesIpv4Cidr() - { - return $this->servicesIpv4Cidr; - } - 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 setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Container_ClusterUpdate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $desiredNodeVersion; - - - public function setDesiredNodeVersion($desiredNodeVersion) - { - $this->desiredNodeVersion = $desiredNodeVersion; - } - public function getDesiredNodeVersion() - { - return $this->desiredNodeVersion; - } -} - -class Google_Service_Container_CreateClusterRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clusterType = 'Google_Service_Container_Cluster'; - protected $clusterDataType = ''; - - - public function setCluster(Google_Service_Container_Cluster $cluster) - { - $this->cluster = $cluster; - } - public function getCluster() - { - return $this->cluster; - } -} - -class Google_Service_Container_ListClustersResponse extends Google_Collection -{ - protected $collection_key = 'clusters'; - protected $internal_gapi_mappings = array( - ); - protected $clustersType = 'Google_Service_Container_Cluster'; - protected $clustersDataType = 'array'; - - - public function setClusters($clusters) - { - $this->clusters = $clusters; - } - public function getClusters() - { - return $this->clusters; - } -} - -class Google_Service_Container_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - protected $operationsType = 'Google_Service_Container_Operation'; - protected $operationsDataType = 'array'; - - - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Container_MasterAuth extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientCertificate; - public $clientKey; - public $clusterCaCertificate; - public $password; - public $username; - - - public function setClientCertificate($clientCertificate) - { - $this->clientCertificate = $clientCertificate; - } - public function getClientCertificate() - { - return $this->clientCertificate; - } - public function setClientKey($clientKey) - { - $this->clientKey = $clientKey; - } - public function getClientKey() - { - return $this->clientKey; - } - public function setClusterCaCertificate($clusterCaCertificate) - { - $this->clusterCaCertificate = $clusterCaCertificate; - } - public function getClusterCaCertificate() - { - return $this->clusterCaCertificate; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_Container_NodeConfig extends Google_Collection -{ - protected $collection_key = 'oauthScopes'; - protected $internal_gapi_mappings = array( - ); - public $diskSizeGb; - public $machineType; - public $oauthScopes; - - - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } - public function setOauthScopes($oauthScopes) - { - $this->oauthScopes = $oauthScopes; - } - public function getOauthScopes() - { - return $this->oauthScopes; - } -} - -class Google_Service_Container_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $operationType; - public $selfLink; - public $status; - public $statusMessage; - public $targetLink; - public $zone; - - - 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 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 setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Container_ServerConfig extends Google_Collection -{ - protected $collection_key = 'validNodeVersions'; - protected $internal_gapi_mappings = array( - ); - public $defaultClusterVersion; - public $validNodeVersions; - - - public function setDefaultClusterVersion($defaultClusterVersion) - { - $this->defaultClusterVersion = $defaultClusterVersion; - } - public function getDefaultClusterVersion() - { - return $this->defaultClusterVersion; - } - public function setValidNodeVersions($validNodeVersions) - { - $this->validNodeVersions = $validNodeVersions; - } - public function getValidNodeVersions() - { - return $this->validNodeVersions; - } -} - -class Google_Service_Container_UpdateClusterRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $updateType = 'Google_Service_Container_ClusterUpdate'; - protected $updateDataType = ''; - - - public function setUpdate(Google_Service_Container_ClusterUpdate $update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } -} diff --git a/src/Google/Service/Coordinate.php b/src/Google/Service/Coordinate.php deleted file mode 100644 index f8f1d746e..000000000 --- a/src/Google/Service/Coordinate.php +++ /dev/null @@ -1,1570 +0,0 @@ - - * Lets you view and manage jobs in a Coordinate team.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Coordinate extends Google_Service -{ - /** View and manage your Google Maps Coordinate jobs. */ - const COORDINATE = - "https://www.googleapis.com/auth/coordinate"; - /** View your Google Coordinate jobs. */ - const COORDINATE_READONLY = - "https://www.googleapis.com/auth/coordinate.readonly"; - - public $customFieldDef; - public $jobs; - public $location; - public $schedule; - public $team; - public $worker; - - - /** - * Constructs the internal representation of the Coordinate service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'coordinate/v1/'; - $this->version = 'v1'; - $this->serviceName = 'coordinate'; - - $this->customFieldDef = new Google_Service_Coordinate_CustomFieldDef_Resource( - $this, - $this->serviceName, - 'customFieldDef', - array( - 'methods' => array( - 'list' => array( - 'path' => 'teams/{teamId}/custom_fields', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->jobs = new Google_Service_Coordinate_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'teams/{teamId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - 'required' => true, - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - 'required' => true, - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'teams/{teamId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'minModifiedTimestampMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'omitJobChanges' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'progress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'progress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->location = new Google_Service_Coordinate_Location_Resource( - $this, - $this->serviceName, - 'location', - array( - 'methods' => array( - 'list' => array( - 'path' => 'teams/{teamId}/workers/{workerEmail}/locations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'workerEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTimestampMs' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->schedule = new Google_Service_Coordinate_Schedule_Resource( - $this, - $this->serviceName, - 'schedule', - array( - 'methods' => array( - 'get' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allDay' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'duration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allDay' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'duration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->team = new Google_Service_Coordinate_Team_Resource( - $this, - $this->serviceName, - 'team', - array( - 'methods' => array( - 'list' => array( - 'path' => 'teams', - 'httpMethod' => 'GET', - 'parameters' => array( - 'admin' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dispatcher' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'worker' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->worker = new Google_Service_Coordinate_Worker_Resource( - $this, - $this->serviceName, - 'worker', - array( - 'methods' => array( - 'list' => array( - 'path' => 'teams/{teamId}/workers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "customFieldDef" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $customFieldDef = $coordinateService->customFieldDef; - * - */ -class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of custom field definitions for a team. - * (customFieldDef.listCustomFieldDef) - * - * @param string $teamId Team ID - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_CustomFieldDefListResponse - */ - public function listCustomFieldDef($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse"); - } -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $jobs = $coordinateService->jobs; - * - */ -class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a job, including all the changes made to the job. (jobs.get) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_Job - */ - public function get($teamId, $jobId, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Coordinate_Job"); - } - - /** - * Inserts a new job. Only the state field of the job should be set. - * (jobs.insert) - * - * @param string $teamId Team ID - * @param string $address Job address as newline (Unix) separated string - * @param double $lat The latitude coordinate of this job's location. - * @param double $lng The longitude coordinate of this job's location. - * @param string $title Job title - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string assignee Assignee email address, or empty string to - * unassign. - * @opt_param string customField Sets the value of custom fields. To set a - * custom field, pass the field id (from /team/teamId/custom_fields), a URL - * escaped '=' character, and the desired value as a parameter. For example, - * customField=12%3DAlice. Repeat the parameter for each custom field. Note that - * '=' cannot appear in the parameter value. Specifying an invalid, or inactive - * enum field will result in an error 500. - * @opt_param string customerName Customer name - * @opt_param string customerPhoneNumber Customer phone number - * @opt_param string note Job note as newline (Unix) separated string - * @return Google_Service_Coordinate_Job - */ - public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Coordinate_Job"); - } - - /** - * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs) - * - * @param string $teamId Team ID - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of results to return in one page. - * @opt_param string minModifiedTimestampMs Minimum time a job was modified in - * milliseconds since epoch. - * @opt_param bool omitJobChanges Whether to omit detail job history - * information. - * @opt_param string pageToken Continuation token - * @return Google_Service_Coordinate_JobListResponse - */ - public function listJobs($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse"); - } - - /** - * Updates a job. Fields that are set in the job state will be updated. This - * method supports patch semantics. (jobs.patch) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string address Job address as newline (Unix) separated string - * @opt_param string assignee Assignee email address, or empty string to - * unassign. - * @opt_param string customField Sets the value of custom fields. To set a - * custom field, pass the field id (from /team/teamId/custom_fields), a URL - * escaped '=' character, and the desired value as a parameter. For example, - * customField=12%3DAlice. Repeat the parameter for each custom field. Note that - * '=' cannot appear in the parameter value. Specifying an invalid, or inactive - * enum field will result in an error 500. - * @opt_param string customerName Customer name - * @opt_param string customerPhoneNumber Customer phone number - * @opt_param double lat The latitude coordinate of this job's location. - * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string note Job note as newline (Unix) separated string - * @opt_param string progress Job progress - * @opt_param string title Job title - * @return Google_Service_Coordinate_Job - */ - public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Coordinate_Job"); - } - - /** - * Updates a job. Fields that are set in the job state will be updated. - * (jobs.update) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string address Job address as newline (Unix) separated string - * @opt_param string assignee Assignee email address, or empty string to - * unassign. - * @opt_param string customField Sets the value of custom fields. To set a - * custom field, pass the field id (from /team/teamId/custom_fields), a URL - * escaped '=' character, and the desired value as a parameter. For example, - * customField=12%3DAlice. Repeat the parameter for each custom field. Note that - * '=' cannot appear in the parameter value. Specifying an invalid, or inactive - * enum field will result in an error 500. - * @opt_param string customerName Customer name - * @opt_param string customerPhoneNumber Customer phone number - * @opt_param double lat The latitude coordinate of this job's location. - * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string note Job note as newline (Unix) separated string - * @opt_param string progress Job progress - * @opt_param string title Job title - * @return Google_Service_Coordinate_Job - */ - public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Coordinate_Job"); - } -} - -/** - * The "location" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $location = $coordinateService->location; - * - */ -class Google_Service_Coordinate_Location_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of locations for a worker. (location.listLocation) - * - * @param string $teamId Team ID - * @param string $workerEmail Worker email address. - * @param string $startTimestampMs Start timestamp in milliseconds since the - * epoch. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of results to return in one page. - * @opt_param string pageToken Continuation token - * @return Google_Service_Coordinate_LocationListResponse - */ - public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) - { - $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse"); - } -} - -/** - * The "schedule" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $schedule = $coordinateService->schedule; - * - */ -class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the schedule for a job. (schedule.get) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_Schedule - */ - public function get($teamId, $jobId, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Coordinate_Schedule"); - } - - /** - * Replaces the schedule of a job with the provided schedule. This method - * supports patch semantics. (schedule.patch) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param Google_Schedule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool allDay Whether the job is scheduled for the whole day. Time - * of day in start/end times is ignored if this is true. - * @opt_param string duration Job duration in milliseconds. - * @opt_param string endTime Scheduled end time in milliseconds since epoch. - * @opt_param string startTime Scheduled start time in milliseconds since epoch. - * @return Google_Service_Coordinate_Schedule - */ - public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule"); - } - - /** - * Replaces the schedule of a job with the provided schedule. (schedule.update) - * - * @param string $teamId Team ID - * @param string $jobId Job number - * @param Google_Schedule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool allDay Whether the job is scheduled for the whole day. Time - * of day in start/end times is ignored if this is true. - * @opt_param string duration Job duration in milliseconds. - * @opt_param string endTime Scheduled end time in milliseconds since epoch. - * @opt_param string startTime Scheduled start time in milliseconds since epoch. - * @return Google_Service_Coordinate_Schedule - */ - public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Coordinate_Schedule"); - } -} - -/** - * The "team" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $team = $coordinateService->team; - * - */ -class Google_Service_Coordinate_Team_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of teams for a user. (team.listTeam) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool admin Whether to include teams for which the user has the - * Admin role. - * @opt_param bool dispatcher Whether to include teams for which the user has - * the Dispatcher role. - * @opt_param bool worker Whether to include teams for which the user has the - * Worker role. - * @return Google_Service_Coordinate_TeamListResponse - */ - public function listTeam($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_TeamListResponse"); - } -} - -/** - * The "worker" collection of methods. - * Typical usage is: - * - * $coordinateService = new Google_Service_Coordinate(...); - * $worker = $coordinateService->worker; - * - */ -class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of workers in a team. (worker.listWorker) - * - * @param string $teamId Team ID - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_WorkerListResponse - */ - public function listWorker($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse"); - } -} - - - - -class Google_Service_Coordinate_CustomField extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customFieldId; - public $kind; - public $value; - - - public function setCustomFieldId($customFieldId) - { - $this->customFieldId = $customFieldId; - } - public function getCustomFieldId() - { - return $this->customFieldId; - } - 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_Coordinate_CustomFieldDef extends Google_Collection -{ - protected $collection_key = 'enumitems'; - protected $internal_gapi_mappings = array( - ); - public $enabled; - protected $enumitemsType = 'Google_Service_Coordinate_EnumItemDef'; - protected $enumitemsDataType = 'array'; - public $id; - public $kind; - public $name; - public $requiredForCheckout; - public $type; - - - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setEnumitems($enumitems) - { - $this->enumitems = $enumitems; - } - public function getEnumitems() - { - return $this->enumitems; - } - 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 setRequiredForCheckout($requiredForCheckout) - { - $this->requiredForCheckout = $requiredForCheckout; - } - public function getRequiredForCheckout() - { - return $this->requiredForCheckout; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Coordinate_CustomFields extends Google_Collection -{ - protected $collection_key = 'customField'; - protected $internal_gapi_mappings = array( - ); - protected $customFieldType = 'Google_Service_Coordinate_CustomField'; - protected $customFieldDataType = 'array'; - public $kind; - - - public function setCustomField($customField) - { - $this->customField = $customField; - } - public function getCustomField() - { - return $this->customField; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Coordinate_EnumItemDef extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $active; - public $kind; - public $value; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - 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_Coordinate_Job extends Google_Collection -{ - protected $collection_key = 'jobChange'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; - protected $jobChangeDataType = 'array'; - public $kind; - protected $stateType = 'Google_Service_Coordinate_JobState'; - protected $stateDataType = ''; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setJobChange($jobChange) - { - $this->jobChange = $jobChange; - } - public function getJobChange() - { - return $this->jobChange; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setState(Google_Service_Coordinate_JobState $state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Coordinate_JobChange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $stateType = 'Google_Service_Coordinate_JobState'; - protected $stateDataType = ''; - public $timestamp; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setState(Google_Service_Coordinate_JobState $state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } -} - -class Google_Service_Coordinate_JobListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Coordinate_Job'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Coordinate_JobState extends Google_Collection -{ - protected $collection_key = 'note'; - protected $internal_gapi_mappings = array( - ); - public $assignee; - protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; - protected $customFieldsDataType = ''; - public $customerName; - public $customerPhoneNumber; - public $kind; - protected $locationType = 'Google_Service_Coordinate_Location'; - protected $locationDataType = ''; - public $note; - public $progress; - public $title; - - - public function setAssignee($assignee) - { - $this->assignee = $assignee; - } - public function getAssignee() - { - return $this->assignee; - } - public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields) - { - $this->customFields = $customFields; - } - public function getCustomFields() - { - return $this->customFields; - } - public function setCustomerName($customerName) - { - $this->customerName = $customerName; - } - public function getCustomerName() - { - return $this->customerName; - } - public function setCustomerPhoneNumber($customerPhoneNumber) - { - $this->customerPhoneNumber = $customerPhoneNumber; - } - public function getCustomerPhoneNumber() - { - return $this->customerPhoneNumber; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocation(Google_Service_Coordinate_Location $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setNote($note) - { - $this->note = $note; - } - public function getNote() - { - return $this->note; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Coordinate_Location extends Google_Collection -{ - protected $collection_key = 'addressLine'; - protected $internal_gapi_mappings = array( - ); - public $addressLine; - public $kind; - public $lat; - public $lng; - - - public function setAddressLine($addressLine) - { - $this->addressLine = $addressLine; - } - public function getAddressLine() - { - return $this->addressLine; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - 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; - } -} - -class Google_Service_Coordinate_LocationListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination'; - protected $tokenPaginationDataType = ''; - - - public function setItems($items) - { - $this->items = $items; - } - public function 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 setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } -} - -class Google_Service_Coordinate_LocationRecord extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $collectionTime; - public $confidenceRadius; - public $kind; - public $latitude; - public $longitude; - - - public function setCollectionTime($collectionTime) - { - $this->collectionTime = $collectionTime; - } - public function getCollectionTime() - { - return $this->collectionTime; - } - public function setConfidenceRadius($confidenceRadius) - { - $this->confidenceRadius = $confidenceRadius; - } - public function getConfidenceRadius() - { - return $this->confidenceRadius; - } - 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; - } -} - -class Google_Service_Coordinate_Schedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allDay; - public $duration; - public $endTime; - public $kind; - public $startTime; - - - public function setAllDay($allDay) - { - $this->allDay = $allDay; - } - public function getAllDay() - { - return $this->allDay; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_Coordinate_Team extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Coordinate_TeamListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Coordinate_Team'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Coordinate_TokenPagination extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - public $previousPageToken; - - - 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_Coordinate_Worker extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - - - 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_Coordinate_WorkerListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Coordinate_Worker'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} diff --git a/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php deleted file mode 100644 index 71eef436a..000000000 --- a/src/Google/Service/Customsearch.php +++ /dev/null @@ -1,1265 +0,0 @@ - - * 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) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'customsearch/'; - $this->version = 'v1'; - $this->serviceName = 'customsearch'; - - $this->cse = new Google_Service_Customsearch_Cse_Resource( - $this, - $this->serviceName, - 'cse', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'c2coff' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cref' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cx' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dateRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'exactTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'excludeTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fileType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'gl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'googlehost' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'highRange' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hq' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgColorType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgDominantColor' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgSize' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'linkSite' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lowRange' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'num' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relatedSite' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rights' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safe' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteSearchFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "cse" collection of methods. - * Typical usage is: - * - * $customsearchService = new Google_Service_Customsearch(...); - * $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.listCse) - * - * @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); - return $this->call('list', array($params), "Google_Service_Customsearch_Search"); - } -} - - - - -class Google_Service_Customsearch_Context extends Google_Collection -{ - protected $collection_key = 'facets'; - protected $internal_gapi_mappings = array( - ); - protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; - protected $facetsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - "labelWithOp" => "label_with_op", - ); - public $anchor; - public $label; - public $labelWithOp; - - - 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; - } - public function setLabelWithOp($labelWithOp) - { - $this->labelWithOp = $labelWithOp; - } - public function getLabelWithOp() - { - return $this->labelWithOp; - } -} - -class Google_Service_Customsearch_Promotion extends Google_Collection -{ - protected $collection_key = 'bodyLines'; - protected $internal_gapi_mappings = array( - ); - protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; - protected $bodyLinesDataType = 'array'; - public $displayLink; - public $htmlTitle; - protected $imageType = 'Google_Service_Customsearch_PromotionImage'; - protected $imageDataType = ''; - public $link; - public $title; - - - public function setBodyLines($bodyLines) - { - $this->bodyLines = $bodyLines; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - public $cacheId; - public $displayLink; - public $fileFormat; - public $formattedUrl; - public $htmlFormattedUrl; - public $htmlSnippet; - public $htmlTitle; - protected $imageType = 'Google_Service_Customsearch_ResultImage'; - protected $imageDataType = ''; - public $kind; - protected $labelsType = 'Google_Service_Customsearch_ResultLabels'; - protected $labelsDataType = 'array'; - public $link; - public $mime; - public $pagemap; - public $snippet; - public $title; - - - public function setCacheId($cacheId) - { - $this->cacheId = $cacheId; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - "labelWithOp" => "label_with_op", - ); - public $displayName; - public $labelWithOp; - public $name; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setLabelWithOp($labelWithOp) - { - $this->labelWithOp = $labelWithOp; - } - public function getLabelWithOp() - { - return $this->labelWithOp; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Customsearch_Search extends Google_Collection -{ - protected $collection_key = 'promotions'; - protected $internal_gapi_mappings = array( - ); - protected $contextType = 'Google_Service_Customsearch_Context'; - protected $contextDataType = ''; - protected $itemsType = 'Google_Service_Customsearch_Result'; - protected $itemsDataType = 'array'; - public $kind; - protected $promotionsType = 'Google_Service_Customsearch_Promotion'; - protected $promotionsDataType = 'array'; - protected $queriesType = 'Google_Service_Customsearch_Query'; - protected $queriesDataType = 'map'; - protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation'; - protected $searchInformationDataType = ''; - protected $spellingType = 'Google_Service_Customsearch_SearchSpelling'; - protected $spellingDataType = ''; - protected $urlType = 'Google_Service_Customsearch_SearchUrl'; - protected $urlDataType = ''; - - - public function setContext(Google_Service_Customsearch_Context $context) - { - $this->context = $context; - } - public function 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($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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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/DataTransfer.php b/src/Google/Service/DataTransfer.php deleted file mode 100644 index 5b6943e03..000000000 --- a/src/Google/Service/DataTransfer.php +++ /dev/null @@ -1,554 +0,0 @@ - - * Transfers user data from one user to another.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_DataTransfer extends Google_Service -{ - /** View and manage data transfers between users in your organization. */ - const ADMIN_DATATRANSFER = - "https://www.googleapis.com/auth/admin.datatransfer"; - /** View data transfers between users in your organization. */ - const ADMIN_DATATRANSFER_READONLY = - "https://www.googleapis.com/auth/admin.datatransfer.readonly"; - - public $applications; - public $transfers; - - - /** - * Constructs the internal representation of the DataTransfer service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'admin/datatransfer/v1/'; - $this->version = 'datatransfer_v1'; - $this->serviceName = 'admin'; - - $this->applications = new Google_Service_DataTransfer_Applications_Resource( - $this, - $this->serviceName, - 'applications', - array( - 'methods' => array( - 'get' => array( - 'path' => 'applications/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'applications', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->transfers = new Google_Service_DataTransfer_Transfers_Resource( - $this, - $this->serviceName, - 'transfers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'transfers/{dataTransferId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'dataTransferId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'transfers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'transfers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'newOwnerUserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'oldOwnerUserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "applications" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_DataTransfer(...); - * $applications = $adminService->applications; - * - */ -class Google_Service_DataTransfer_Applications_Resource extends Google_Service_Resource -{ - - /** - * Retrieves information about an application for the given application ID. - * (applications.get) - * - * @param string $applicationId ID of the application resource to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_DataTransfer_Application - */ - public function get($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DataTransfer_Application"); - } - - /** - * Lists the applications available for data transfer for a customer. - * (applications.listApplications) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customerId Immutable ID of the Google Apps account. - * @opt_param int maxResults Maximum number of results to return. Default is - * 100. - * @opt_param string pageToken Token to specify next page in the list. - * @return Google_Service_DataTransfer_ApplicationsListResponse - */ - public function listApplications($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DataTransfer_ApplicationsListResponse"); - } -} - -/** - * The "transfers" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_DataTransfer(...); - * $transfers = $adminService->transfers; - * - */ -class Google_Service_DataTransfer_Transfers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a data transfer request by its resource ID. (transfers.get) - * - * @param string $dataTransferId ID of the resource to be retrieved. This is - * returned in the response from the insert method. - * @param array $optParams Optional parameters. - * @return Google_Service_DataTransfer_DataTransfer - */ - public function get($dataTransferId, $optParams = array()) - { - $params = array('dataTransferId' => $dataTransferId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DataTransfer_DataTransfer"); - } - - /** - * Inserts a data transfer request. (transfers.insert) - * - * @param Google_DataTransfer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DataTransfer_DataTransfer - */ - public function insert(Google_Service_DataTransfer_DataTransfer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_DataTransfer_DataTransfer"); - } - - /** - * Lists the transfers for a customer by source user, destination user, or - * status. (transfers.listTransfers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customerId Immutable ID of the Google Apps account. - * @opt_param int maxResults Maximum number of results to return. Default is - * 100. - * @opt_param string newOwnerUserId Destination user's profile ID. - * @opt_param string oldOwnerUserId Source user's profile ID. - * @opt_param string pageToken Token to specify the next page in the list. - * @opt_param string status Status of the transfer. - * @return Google_Service_DataTransfer_DataTransfersListResponse - */ - public function listTransfers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DataTransfer_DataTransfersListResponse"); - } -} - - - - -class Google_Service_DataTransfer_Application extends Google_Collection -{ - protected $collection_key = 'transferParams'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - public $name; - protected $transferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam'; - protected $transferParamsDataType = 'array'; - - - 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 setTransferParams($transferParams) - { - $this->transferParams = $transferParams; - } - public function getTransferParams() - { - return $this->transferParams; - } -} - -class Google_Service_DataTransfer_ApplicationDataTransfer extends Google_Collection -{ - protected $collection_key = 'applicationTransferParams'; - protected $internal_gapi_mappings = array( - ); - public $applicationId; - protected $applicationTransferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam'; - protected $applicationTransferParamsDataType = 'array'; - public $applicationTransferStatus; - - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - public function getApplicationId() - { - return $this->applicationId; - } - public function setApplicationTransferParams($applicationTransferParams) - { - $this->applicationTransferParams = $applicationTransferParams; - } - public function getApplicationTransferParams() - { - return $this->applicationTransferParams; - } - public function setApplicationTransferStatus($applicationTransferStatus) - { - $this->applicationTransferStatus = $applicationTransferStatus; - } - public function getApplicationTransferStatus() - { - return $this->applicationTransferStatus; - } -} - -class Google_Service_DataTransfer_ApplicationTransferParam extends Google_Collection -{ - protected $collection_key = 'value'; - protected $internal_gapi_mappings = array( - ); - 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_DataTransfer_ApplicationsListResponse extends Google_Collection -{ - protected $collection_key = 'applications'; - protected $internal_gapi_mappings = array( - ); - protected $applicationsType = 'Google_Service_DataTransfer_Application'; - protected $applicationsDataType = 'array'; - public $etag; - public $kind; - public $nextPageToken; - - - public function setApplications($applications) - { - $this->applications = $applications; - } - public function getApplications() - { - return $this->applications; - } - 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_DataTransfer_DataTransfer extends Google_Collection -{ - protected $collection_key = 'applicationDataTransfers'; - protected $internal_gapi_mappings = array( - ); - protected $applicationDataTransfersType = 'Google_Service_DataTransfer_ApplicationDataTransfer'; - protected $applicationDataTransfersDataType = 'array'; - public $etag; - public $id; - public $kind; - public $newOwnerUserId; - public $oldOwnerUserId; - public $overallTransferStatusCode; - public $requestTime; - - - public function setApplicationDataTransfers($applicationDataTransfers) - { - $this->applicationDataTransfers = $applicationDataTransfers; - } - public function getApplicationDataTransfers() - { - return $this->applicationDataTransfers; - } - 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 setNewOwnerUserId($newOwnerUserId) - { - $this->newOwnerUserId = $newOwnerUserId; - } - public function getNewOwnerUserId() - { - return $this->newOwnerUserId; - } - public function setOldOwnerUserId($oldOwnerUserId) - { - $this->oldOwnerUserId = $oldOwnerUserId; - } - public function getOldOwnerUserId() - { - return $this->oldOwnerUserId; - } - public function setOverallTransferStatusCode($overallTransferStatusCode) - { - $this->overallTransferStatusCode = $overallTransferStatusCode; - } - public function getOverallTransferStatusCode() - { - return $this->overallTransferStatusCode; - } - public function setRequestTime($requestTime) - { - $this->requestTime = $requestTime; - } - public function getRequestTime() - { - return $this->requestTime; - } -} - -class Google_Service_DataTransfer_DataTransfersListResponse extends Google_Collection -{ - protected $collection_key = 'dataTransfers'; - protected $internal_gapi_mappings = array( - ); - protected $dataTransfersType = 'Google_Service_DataTransfer_DataTransfer'; - protected $dataTransfersDataType = 'array'; - public $etag; - public $kind; - public $nextPageToken; - - - public function setDataTransfers($dataTransfers) - { - $this->dataTransfers = $dataTransfers; - } - public function getDataTransfers() - { - return $this->dataTransfers; - } - 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; - } -} diff --git a/src/Google/Service/Dataflow.php b/src/Google/Service/Dataflow.php deleted file mode 100644 index f59d8d4d2..000000000 --- a/src/Google/Service/Dataflow.php +++ /dev/null @@ -1,4014 +0,0 @@ - - * Google Dataflow API.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Dataflow extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - - public $projects; - public $projects_jobs; - public $projects_jobs_messages; - public $projects_jobs_workItems; - - - /** - * Constructs the internal representation of the Dataflow service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://dataflow.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1b3'; - $this->serviceName = 'dataflow'; - - $this->projects = new Google_Service_Dataflow_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'workerMessages' => array( - 'path' => 'v1b3/projects/{projectId}/WorkerMessages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_jobs = new Google_Service_Dataflow_ProjectsJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1b3/projects/{projectId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'replaceJobId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getMetrics' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v1b3/projects/{projectId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_jobs_messages = new Google_Service_Dataflow_ProjectsJobsMessages_Resource( - $this, - $this->serviceName, - 'messages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'minimumImportance' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects_jobs_workItems = new Google_Service_Dataflow_ProjectsJobsWorkItems_Resource( - $this, - $this->serviceName, - 'workItems', - array( - 'methods' => array( - 'lease' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reportStatus' => array( - 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $projects = $dataflowService->projects; - * - */ -class Google_Service_Dataflow_Projects_Resource extends Google_Service_Resource -{ - - /** - * Send a worker_message to the service. (projects.workerMessages) - * - * @param string $projectId The project to send the WorkerMessages to. - * @param Google_SendWorkerMessagesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_SendWorkerMessagesResponse - */ - public function workerMessages($projectId, Google_Service_Dataflow_SendWorkerMessagesRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('workerMessages', array($params), "Google_Service_Dataflow_SendWorkerMessagesResponse"); - } -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $jobs = $dataflowService->jobs; - * - */ -class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resource -{ - - /** - * Creates a dataflow job. (jobs.create) - * - * @param string $projectId The project which owns the job. - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string view Level of information requested in response. - * @opt_param string replaceJobId DEPRECATED. This field is now on the Job - * message. - * @return Google_Service_Dataflow_Job - */ - public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dataflow_Job"); - } - - /** - * Gets the state of the specified dataflow job. (jobs.get) - * - * @param string $projectId The project which owns the job. - * @param string $jobId Identifies a single job. - * @param array $optParams Optional parameters. - * - * @opt_param string view Level of information requested in response. - * @return Google_Service_Dataflow_Job - */ - public function get($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dataflow_Job"); - } - - /** - * Request the job status. (jobs.getMetrics) - * - * @param string $projectId A project id. - * @param string $jobId The job to get messages for. - * @param array $optParams Optional parameters. - * - * @opt_param string startTime Return only metric data that has changed since - * this time. Default is to return all information about all metrics for the - * job. - * @return Google_Service_Dataflow_JobMetrics - */ - public function getMetrics($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); - } - - /** - * List the jobs of a project (jobs.listProjectsJobs) - * - * @param string $projectId The project which owns the jobs. - * @param array $optParams Optional parameters. - * - * @opt_param string view Level of information requested in response. Default is - * SUMMARY. - * @opt_param int pageSize If there are many jobs, limit response to at most - * this many. The actual number of jobs returned will be the lesser of - * max_responses and an unspecified server-defined limit. - * @opt_param string pageToken Set this to the 'next_page_token' field of a - * previous response to request additional results in a long list. - * @return Google_Service_Dataflow_ListJobsResponse - */ - public function listProjectsJobs($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); - } - - /** - * Updates the state of an existing dataflow job. (jobs.update) - * - * @param string $projectId The project which owns the job. - * @param string $jobId Identifies a single job. - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_Job - */ - public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dataflow_Job"); - } -} - -/** - * The "messages" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $messages = $dataflowService->messages; - * - */ -class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Service_Resource -{ - - /** - * Request the job status. (messages.listProjectsJobsMessages) - * - * @param string $projectId A project id. - * @param string $jobId The job to get messages about. - * @param array $optParams Optional parameters. - * - * @opt_param string minimumImportance Filter to only get messages with - * importance >= level - * @opt_param int pageSize If specified, determines the maximum number of - * messages to return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * @opt_param string pageToken If supplied, this should be the value of - * next_page_token returned by an earlier call. This will cause the next page of - * results to be returned. - * @opt_param string startTime If specified, return only messages with - * timestamps >= start_time. The default is the job creation time (i.e. - * beginning of messages). - * @opt_param string endTime Return only messages with timestamps < end_time. - * The default is now (i.e. return up to the latest messages available). - * @return Google_Service_Dataflow_ListJobMessagesResponse - */ - public function listProjectsJobsMessages($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse"); - } -} -/** - * The "workItems" collection of methods. - * Typical usage is: - * - * $dataflowService = new Google_Service_Dataflow(...); - * $workItems = $dataflowService->workItems; - * - */ -class Google_Service_Dataflow_ProjectsJobsWorkItems_Resource extends Google_Service_Resource -{ - - /** - * Leases a dataflow WorkItem to run. (workItems.lease) - * - * @param string $projectId Identifies the project this worker belongs to. - * @param string $jobId Identifies the workflow job this worker belongs to. - * @param Google_LeaseWorkItemRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_LeaseWorkItemResponse - */ - public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); - } - - /** - * Reports the status of dataflow WorkItems leased by a worker. - * (workItems.reportStatus) - * - * @param string $projectId The project which owns the WorkItem's job. - * @param string $jobId The job which the WorkItem is part of. - * @param Google_ReportWorkItemStatusRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataflow_ReportWorkItemStatusResponse - */ - public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse"); - } -} - - - - -class Google_Service_Dataflow_ApproximateProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $percentComplete; - protected $positionType = 'Google_Service_Dataflow_Position'; - protected $positionDataType = ''; - public $remainingTime; - - - public function setPercentComplete($percentComplete) - { - $this->percentComplete = $percentComplete; - } - public function getPercentComplete() - { - return $this->percentComplete; - } - public function setPosition(Google_Service_Dataflow_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setRemainingTime($remainingTime) - { - $this->remainingTime = $remainingTime; - } - public function getRemainingTime() - { - return $this->remainingTime; - } -} - -class Google_Service_Dataflow_ApproximateReportedProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $consumedParallelismType = 'Google_Service_Dataflow_ReportedParallelism'; - protected $consumedParallelismDataType = ''; - public $fractionConsumed; - protected $positionType = 'Google_Service_Dataflow_Position'; - protected $positionDataType = ''; - protected $remainingParallelismType = 'Google_Service_Dataflow_ReportedParallelism'; - protected $remainingParallelismDataType = ''; - - - public function setConsumedParallelism(Google_Service_Dataflow_ReportedParallelism $consumedParallelism) - { - $this->consumedParallelism = $consumedParallelism; - } - public function getConsumedParallelism() - { - return $this->consumedParallelism; - } - public function setFractionConsumed($fractionConsumed) - { - $this->fractionConsumed = $fractionConsumed; - } - public function getFractionConsumed() - { - return $this->fractionConsumed; - } - public function setPosition(Google_Service_Dataflow_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setRemainingParallelism(Google_Service_Dataflow_ReportedParallelism $remainingParallelism) - { - $this->remainingParallelism = $remainingParallelism; - } - public function getRemainingParallelism() - { - return $this->remainingParallelism; - } -} - -class Google_Service_Dataflow_ApproximateSplitRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fractionConsumed; - protected $positionType = 'Google_Service_Dataflow_Position'; - protected $positionDataType = ''; - - - public function setFractionConsumed($fractionConsumed) - { - $this->fractionConsumed = $fractionConsumed; - } - public function getFractionConsumed() - { - return $this->fractionConsumed; - } - public function setPosition(Google_Service_Dataflow_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Dataflow_AutoscalingSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $algorithm; - public $maxNumWorkers; - - - public function setAlgorithm($algorithm) - { - $this->algorithm = $algorithm; - } - public function getAlgorithm() - { - return $this->algorithm; - } - public function setMaxNumWorkers($maxNumWorkers) - { - $this->maxNumWorkers = $maxNumWorkers; - } - public function getMaxNumWorkers() - { - return $this->maxNumWorkers; - } -} - -class Google_Service_Dataflow_ComputationTopology extends Google_Collection -{ - protected $collection_key = 'stateFamilies'; - protected $internal_gapi_mappings = array( - ); - public $computationId; - protected $inputsType = 'Google_Service_Dataflow_StreamLocation'; - protected $inputsDataType = 'array'; - protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation'; - protected $keyRangesDataType = 'array'; - protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; - protected $outputsDataType = 'array'; - protected $stateFamiliesType = 'Google_Service_Dataflow_StateFamilyConfig'; - protected $stateFamiliesDataType = 'array'; - public $systemStageName; - public $userStageName; - - - public function setComputationId($computationId) - { - $this->computationId = $computationId; - } - public function getComputationId() - { - return $this->computationId; - } - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } - public function setKeyRanges($keyRanges) - { - $this->keyRanges = $keyRanges; - } - public function getKeyRanges() - { - return $this->keyRanges; - } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } - public function setStateFamilies($stateFamilies) - { - $this->stateFamilies = $stateFamilies; - } - public function getStateFamilies() - { - return $this->stateFamilies; - } - public function setSystemStageName($systemStageName) - { - $this->systemStageName = $systemStageName; - } - public function getSystemStageName() - { - return $this->systemStageName; - } - public function setUserStageName($userStageName) - { - $this->userStageName = $userStageName; - } - public function getUserStageName() - { - return $this->userStageName; - } -} - -class Google_Service_Dataflow_ConcatPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $index; - protected $positionType = 'Google_Service_Dataflow_Position'; - protected $positionDataType = ''; - - - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } - public function setPosition(Google_Service_Dataflow_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Dataflow_CustomSourceLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $stateful; - - - public function setStateful($stateful) - { - $this->stateful = $stateful; - } - public function getStateful() - { - return $this->stateful; - } -} - -class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection -{ - protected $collection_key = 'dataDisks'; - protected $internal_gapi_mappings = array( - ); - public $dataDisks; - public $vmInstance; - - - public function setDataDisks($dataDisks) - { - $this->dataDisks = $dataDisks; - } - public function getDataDisks() - { - return $this->dataDisks; - } - public function setVmInstance($vmInstance) - { - $this->vmInstance = $vmInstance; - } - public function getVmInstance() - { - return $this->vmInstance; - } -} - -class Google_Service_Dataflow_DerivedSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $derivationMode; - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setDerivationMode($derivationMode) - { - $this->derivationMode = $derivationMode; - } - public function getDerivationMode() - { - return $this->derivationMode; - } - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_Disk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskType; - public $mountPoint; - public $sizeGb; - - - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - public function setMountPoint($mountPoint) - { - $this->mountPoint = $mountPoint; - } - public function getMountPoint() - { - return $this->mountPoint; - } - public function setSizeGb($sizeGb) - { - $this->sizeGb = $sizeGb; - } - public function getSizeGb() - { - return $this->sizeGb; - } -} - -class Google_Service_Dataflow_DynamicSourceSplit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $primaryType = 'Google_Service_Dataflow_DerivedSource'; - protected $primaryDataType = ''; - protected $residualType = 'Google_Service_Dataflow_DerivedSource'; - protected $residualDataType = ''; - - - public function setPrimary(Google_Service_Dataflow_DerivedSource $primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setResidual(Google_Service_Dataflow_DerivedSource $residual) - { - $this->residual = $residual; - } - public function getResidual() - { - return $this->residual; - } -} - -class Google_Service_Dataflow_Environment extends Google_Collection -{ - protected $collection_key = 'workerPools'; - protected $internal_gapi_mappings = array( - ); - public $clusterManagerApiService; - public $dataset; - public $experiments; - public $internalExperiments; - public $sdkPipelineOptions; - public $tempStoragePrefix; - public $userAgent; - public $version; - protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool'; - protected $workerPoolsDataType = 'array'; - - - public function setClusterManagerApiService($clusterManagerApiService) - { - $this->clusterManagerApiService = $clusterManagerApiService; - } - public function getClusterManagerApiService() - { - return $this->clusterManagerApiService; - } - public function setDataset($dataset) - { - $this->dataset = $dataset; - } - public function getDataset() - { - return $this->dataset; - } - public function setExperiments($experiments) - { - $this->experiments = $experiments; - } - public function getExperiments() - { - return $this->experiments; - } - public function setInternalExperiments($internalExperiments) - { - $this->internalExperiments = $internalExperiments; - } - public function getInternalExperiments() - { - return $this->internalExperiments; - } - public function setSdkPipelineOptions($sdkPipelineOptions) - { - $this->sdkPipelineOptions = $sdkPipelineOptions; - } - public function getSdkPipelineOptions() - { - return $this->sdkPipelineOptions; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - public function getUserAgent() - { - return $this->userAgent; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - public function setWorkerPools($workerPools) - { - $this->workerPools = $workerPools; - } - public function getWorkerPools() - { - return $this->workerPools; - } -} - -class Google_Service_Dataflow_FlattenInstruction extends Google_Collection -{ - protected $collection_key = 'inputs'; - protected $internal_gapi_mappings = array( - ); - protected $inputsType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputsDataType = 'array'; - - - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } -} - -class Google_Service_Dataflow_InstructionInput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $outputNum; - public $producerInstructionIndex; - - - public function setOutputNum($outputNum) - { - $this->outputNum = $outputNum; - } - public function getOutputNum() - { - return $this->outputNum; - } - public function setProducerInstructionIndex($producerInstructionIndex) - { - $this->producerInstructionIndex = $producerInstructionIndex; - } - public function getProducerInstructionIndex() - { - return $this->producerInstructionIndex; - } -} - -class Google_Service_Dataflow_InstructionOutput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $codec; - public $name; - public $systemName; - - - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } -} - -class Google_Service_Dataflow_Job extends Google_Collection -{ - protected $collection_key = 'tempFiles'; - protected $internal_gapi_mappings = array( - ); - public $clientRequestId; - public $createTime; - public $currentState; - public $currentStateTime; - protected $environmentType = 'Google_Service_Dataflow_Environment'; - protected $environmentDataType = ''; - protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; - protected $executionInfoDataType = ''; - public $id; - public $name; - public $projectId; - public $replaceJobId; - public $replacedByJobId; - public $requestedState; - protected $stepsType = 'Google_Service_Dataflow_Step'; - protected $stepsDataType = 'array'; - public $tempFiles; - public $transformNameMapping; - public $type; - - - public function setClientRequestId($clientRequestId) - { - $this->clientRequestId = $clientRequestId; - } - public function getClientRequestId() - { - return $this->clientRequestId; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - public function getCurrentState() - { - return $this->currentState; - } - public function setCurrentStateTime($currentStateTime) - { - $this->currentStateTime = $currentStateTime; - } - public function getCurrentStateTime() - { - return $this->currentStateTime; - } - public function setEnvironment(Google_Service_Dataflow_Environment $environment) - { - $this->environment = $environment; - } - public function getEnvironment() - { - return $this->environment; - } - public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo) - { - $this->executionInfo = $executionInfo; - } - public function getExecutionInfo() - { - return $this->executionInfo; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReplaceJobId($replaceJobId) - { - $this->replaceJobId = $replaceJobId; - } - public function getReplaceJobId() - { - return $this->replaceJobId; - } - public function setReplacedByJobId($replacedByJobId) - { - $this->replacedByJobId = $replacedByJobId; - } - public function getReplacedByJobId() - { - return $this->replacedByJobId; - } - public function setRequestedState($requestedState) - { - $this->requestedState = $requestedState; - } - public function getRequestedState() - { - return $this->requestedState; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } - public function setTempFiles($tempFiles) - { - $this->tempFiles = $tempFiles; - } - public function getTempFiles() - { - return $this->tempFiles; - } - public function setTransformNameMapping($transformNameMapping) - { - $this->transformNameMapping = $transformNameMapping; - } - public function getTransformNameMapping() - { - return $this->transformNameMapping; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dataflow_JobExecutionInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo'; - protected $stagesDataType = 'map'; - - - public function setStages($stages) - { - $this->stages = $stages; - } - public function getStages() - { - return $this->stages; - } -} - -class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection -{ - protected $collection_key = 'stepName'; - protected $internal_gapi_mappings = array( - ); - public $stepName; - - - public function setStepName($stepName) - { - $this->stepName = $stepName; - } - public function getStepName() - { - return $this->stepName; - } -} - -class Google_Service_Dataflow_JobMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $messageImportance; - public $messageText; - public $time; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMessageImportance($messageImportance) - { - $this->messageImportance = $messageImportance; - } - public function getMessageImportance() - { - return $this->messageImportance; - } - public function setMessageText($messageText) - { - $this->messageText = $messageText; - } - public function getMessageText() - { - return $this->messageText; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Dataflow_JobMetrics extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - public $metricTime; - protected $metricsType = 'Google_Service_Dataflow_MetricUpdate'; - protected $metricsDataType = 'array'; - - - public function setMetricTime($metricTime) - { - $this->metricTime = $metricTime; - } - public function getMetricTime() - { - return $this->metricTime; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } -} - -class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataDisk; - public $end; - public $start; - - - public function setDataDisk($dataDisk) - { - $this->dataDisk = $dataDisk; - } - public function getDataDisk() - { - return $this->dataDisk; - } - 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; - } -} - -class Google_Service_Dataflow_KeyRangeLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataDisk; - public $deliveryEndpoint; - public $end; - public $persistentDirectory; - public $start; - - - public function setDataDisk($dataDisk) - { - $this->dataDisk = $dataDisk; - } - public function getDataDisk() - { - return $this->dataDisk; - } - public function setDeliveryEndpoint($deliveryEndpoint) - { - $this->deliveryEndpoint = $deliveryEndpoint; - } - public function getDeliveryEndpoint() - { - return $this->deliveryEndpoint; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPersistentDirectory($persistentDirectory) - { - $this->persistentDirectory = $persistentDirectory; - } - public function getPersistentDirectory() - { - return $this->persistentDirectory; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection -{ - protected $collection_key = 'workerCapabilities'; - protected $internal_gapi_mappings = array( - ); - public $currentWorkerTime; - public $requestedLeaseDuration; - public $workItemTypes; - public $workerCapabilities; - public $workerId; - - - public function setCurrentWorkerTime($currentWorkerTime) - { - $this->currentWorkerTime = $currentWorkerTime; - } - public function getCurrentWorkerTime() - { - return $this->currentWorkerTime; - } - public function setRequestedLeaseDuration($requestedLeaseDuration) - { - $this->requestedLeaseDuration = $requestedLeaseDuration; - } - public function getRequestedLeaseDuration() - { - return $this->requestedLeaseDuration; - } - public function setWorkItemTypes($workItemTypes) - { - $this->workItemTypes = $workItemTypes; - } - public function getWorkItemTypes() - { - return $this->workItemTypes; - } - public function setWorkerCapabilities($workerCapabilities) - { - $this->workerCapabilities = $workerCapabilities; - } - public function getWorkerCapabilities() - { - return $this->workerCapabilities; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection -{ - protected $collection_key = 'workItems'; - protected $internal_gapi_mappings = array( - ); - protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; - protected $workItemsDataType = 'array'; - - - public function setWorkItems($workItems) - { - $this->workItems = $workItems; - } - public function getWorkItems() - { - return $this->workItems; - } -} - -class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection -{ - protected $collection_key = 'jobMessages'; - protected $internal_gapi_mappings = array( - ); - protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage'; - protected $jobMessagesDataType = 'array'; - public $nextPageToken; - - - public function setJobMessages($jobMessages) - { - $this->jobMessages = $jobMessages; - } - public function getJobMessages() - { - return $this->jobMessages; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataflow_ListJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_Dataflow_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataflow_MapTask extends Google_Collection -{ - protected $collection_key = 'instructions'; - protected $internal_gapi_mappings = array( - ); - protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; - protected $instructionsDataType = 'array'; - public $stageName; - public $systemName; - - - public function setInstructions($instructions) - { - $this->instructions = $instructions; - } - public function getInstructions() - { - return $this->instructions; - } - public function setStageName($stageName) - { - $this->stageName = $stageName; - } - public function getStageName() - { - return $this->stageName; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } -} - -class Google_Service_Dataflow_MetricStructuredName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $context; - public $name; - public $origin; - - - public function setContext($context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOrigin($origin) - { - $this->origin = $origin; - } - public function getOrigin() - { - return $this->origin; - } -} - -class Google_Service_Dataflow_MetricUpdate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cumulative; - public $internal; - public $kind; - public $meanCount; - public $meanSum; - protected $nameType = 'Google_Service_Dataflow_MetricStructuredName'; - protected $nameDataType = ''; - public $scalar; - public $set; - public $updateTime; - - - public function setCumulative($cumulative) - { - $this->cumulative = $cumulative; - } - public function getCumulative() - { - return $this->cumulative; - } - public function setInternal($internal) - { - $this->internal = $internal; - } - public function getInternal() - { - return $this->internal; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMeanCount($meanCount) - { - $this->meanCount = $meanCount; - } - public function getMeanCount() - { - return $this->meanCount; - } - public function setMeanSum($meanSum) - { - $this->meanSum = $meanSum; - } - public function getMeanSum() - { - return $this->meanSum; - } - public function setName(Google_Service_Dataflow_MetricStructuredName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScalar($scalar) - { - $this->scalar = $scalar; - } - public function getScalar() - { - return $this->scalar; - } - public function setSet($set) - { - $this->set = $set; - } - public function getSet() - { - return $this->set; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } -} - -class Google_Service_Dataflow_MountedDataDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataDisk; - - - public function setDataDisk($dataDisk) - { - $this->dataDisk = $dataDisk; - } - public function getDataDisk() - { - return $this->dataDisk; - } -} - -class Google_Service_Dataflow_MultiOutputInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $tag; - - - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_Package extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $location; - public $name; - - - 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; - } -} - -class Google_Service_Dataflow_ParDoInstruction extends Google_Collection -{ - protected $collection_key = 'sideInputs'; - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo'; - protected $multiOutputInfosDataType = 'array'; - public $numOutputs; - protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; - protected $sideInputsDataType = 'array'; - public $userFn; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setMultiOutputInfos($multiOutputInfos) - { - $this->multiOutputInfos = $multiOutputInfos; - } - public function getMultiOutputInfos() - { - return $this->multiOutputInfos; - } - public function setNumOutputs($numOutputs) - { - $this->numOutputs = $numOutputs; - } - public function getNumOutputs() - { - return $this->numOutputs; - } - public function setSideInputs($sideInputs) - { - $this->sideInputs = $sideInputs; - } - public function getSideInputs() - { - return $this->sideInputs; - } - public function setUserFn($userFn) - { - $this->userFn = $userFn; - } - public function getUserFn() - { - return $this->userFn; - } -} - -class Google_Service_Dataflow_ParallelInstruction extends Google_Collection -{ - protected $collection_key = 'outputs'; - protected $internal_gapi_mappings = array( - ); - protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction'; - protected $flattenDataType = ''; - public $name; - protected $outputsType = 'Google_Service_Dataflow_InstructionOutput'; - protected $outputsDataType = 'array'; - protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction'; - protected $parDoDataType = ''; - protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction'; - protected $partialGroupByKeyDataType = ''; - protected $readType = 'Google_Service_Dataflow_ReadInstruction'; - protected $readDataType = ''; - public $systemName; - protected $writeType = 'Google_Service_Dataflow_WriteInstruction'; - protected $writeDataType = ''; - - - public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten) - { - $this->flatten = $flatten; - } - public function getFlatten() - { - return $this->flatten; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } - public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo) - { - $this->parDo = $parDo; - } - public function getParDo() - { - return $this->parDo; - } - public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey) - { - $this->partialGroupByKey = $partialGroupByKey; - } - public function getPartialGroupByKey() - { - return $this->partialGroupByKey; - } - public function setRead(Google_Service_Dataflow_ReadInstruction $read) - { - $this->read = $read; - } - public function getRead() - { - return $this->read; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } - public function setWrite(Google_Service_Dataflow_WriteInstruction $write) - { - $this->write = $write; - } - public function getWrite() - { - return $this->write; - } -} - -class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Collection -{ - protected $collection_key = 'sideInputs'; - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - public $inputElementCodec; - protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; - protected $sideInputsDataType = 'array'; - public $valueCombiningFn; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setInputElementCodec($inputElementCodec) - { - $this->inputElementCodec = $inputElementCodec; - } - public function getInputElementCodec() - { - return $this->inputElementCodec; - } - public function setSideInputs($sideInputs) - { - $this->sideInputs = $sideInputs; - } - public function getSideInputs() - { - return $this->sideInputs; - } - public function setValueCombiningFn($valueCombiningFn) - { - $this->valueCombiningFn = $valueCombiningFn; - } - public function getValueCombiningFn() - { - return $this->valueCombiningFn; - } -} - -class Google_Service_Dataflow_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $byteOffset; - protected $concatPositionType = 'Google_Service_Dataflow_ConcatPosition'; - protected $concatPositionDataType = ''; - public $end; - public $key; - public $recordIndex; - public $shufflePosition; - - - public function setByteOffset($byteOffset) - { - $this->byteOffset = $byteOffset; - } - public function getByteOffset() - { - return $this->byteOffset; - } - public function setConcatPosition(Google_Service_Dataflow_ConcatPosition $concatPosition) - { - $this->concatPosition = $concatPosition; - } - public function getConcatPosition() - { - return $this->concatPosition; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setRecordIndex($recordIndex) - { - $this->recordIndex = $recordIndex; - } - public function getRecordIndex() - { - return $this->recordIndex; - } - public function setShufflePosition($shufflePosition) - { - $this->shufflePosition = $shufflePosition; - } - public function getShufflePosition() - { - return $this->shufflePosition; - } -} - -class Google_Service_Dataflow_PubsubLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dropLateData; - public $idLabel; - public $subscription; - public $timestampLabel; - public $topic; - public $trackingSubscription; - - - public function setDropLateData($dropLateData) - { - $this->dropLateData = $dropLateData; - } - public function getDropLateData() - { - return $this->dropLateData; - } - public function setIdLabel($idLabel) - { - $this->idLabel = $idLabel; - } - public function getIdLabel() - { - return $this->idLabel; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTimestampLabel($timestampLabel) - { - $this->timestampLabel = $timestampLabel; - } - public function getTimestampLabel() - { - return $this->timestampLabel; - } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } - public function setTrackingSubscription($trackingSubscription) - { - $this->trackingSubscription = $trackingSubscription; - } - public function getTrackingSubscription() - { - return $this->trackingSubscription; - } -} - -class Google_Service_Dataflow_ReadInstruction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection -{ - protected $collection_key = 'workItemStatuses'; - protected $internal_gapi_mappings = array( - ); - public $currentWorkerTime; - protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; - protected $workItemStatusesDataType = 'array'; - public $workerId; - - - public function setCurrentWorkerTime($currentWorkerTime) - { - $this->currentWorkerTime = $currentWorkerTime; - } - public function getCurrentWorkerTime() - { - return $this->currentWorkerTime; - } - public function setWorkItemStatuses($workItemStatuses) - { - $this->workItemStatuses = $workItemStatuses; - } - public function getWorkItemStatuses() - { - return $this->workItemStatuses; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection -{ - protected $collection_key = 'workItemServiceStates'; - protected $internal_gapi_mappings = array( - ); - protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; - protected $workItemServiceStatesDataType = 'array'; - - - public function setWorkItemServiceStates($workItemServiceStates) - { - $this->workItemServiceStates = $workItemServiceStates; - } - public function getWorkItemServiceStates() - { - return $this->workItemServiceStates; - } -} - -class Google_Service_Dataflow_ReportedParallelism extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isInfinite; - public $value; - - - public function setIsInfinite($isInfinite) - { - $this->isInfinite = $isInfinite; - } - public function getIsInfinite() - { - return $this->isInfinite; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Dataflow_SendWorkerMessagesRequest extends Google_Collection -{ - protected $collection_key = 'workerMessages'; - protected $internal_gapi_mappings = array( - ); - protected $workerMessagesType = 'Google_Service_Dataflow_WorkerMessage'; - protected $workerMessagesDataType = 'array'; - - - public function setWorkerMessages($workerMessages) - { - $this->workerMessages = $workerMessages; - } - public function getWorkerMessages() - { - return $this->workerMessages; - } -} - -class Google_Service_Dataflow_SendWorkerMessagesResponse extends Google_Collection -{ - protected $collection_key = 'workerMessageResponses'; - protected $internal_gapi_mappings = array( - ); - protected $workerMessageResponsesType = 'Google_Service_Dataflow_WorkerMessageResponse'; - protected $workerMessageResponsesDataType = 'array'; - - - public function setWorkerMessageResponses($workerMessageResponses) - { - $this->workerMessageResponses = $workerMessageResponses; - } - public function getWorkerMessageResponses() - { - return $this->workerMessageResponses; - } -} - -class Google_Service_Dataflow_SeqMapTask extends Google_Collection -{ - protected $collection_key = 'outputInfos'; - protected $internal_gapi_mappings = array( - ); - protected $inputsType = 'Google_Service_Dataflow_SideInputInfo'; - protected $inputsDataType = 'array'; - public $name; - protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo'; - protected $outputInfosDataType = 'array'; - public $stageName; - public $systemName; - public $userFn; - - - public function setInputs($inputs) - { - $this->inputs = $inputs; - } - public function getInputs() - { - return $this->inputs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOutputInfos($outputInfos) - { - $this->outputInfos = $outputInfos; - } - public function getOutputInfos() - { - return $this->outputInfos; - } - public function setStageName($stageName) - { - $this->stageName = $stageName; - } - public function getStageName() - { - return $this->stageName; - } - public function setSystemName($systemName) - { - $this->systemName = $systemName; - } - public function getSystemName() - { - return $this->systemName; - } - public function setUserFn($userFn) - { - $this->userFn = $userFn; - } - public function getUserFn() - { - return $this->userFn; - } -} - -class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sinkType = 'Google_Service_Dataflow_Sink'; - protected $sinkDataType = ''; - public $tag; - - - public function setSink(Google_Service_Dataflow_Sink $sink) - { - $this->sink = $sink; - } - public function getSink() - { - return $this->sink; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_ShellTask extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $command; - public $exitCode; - - - public function setCommand($command) - { - $this->command = $command; - } - public function getCommand() - { - return $this->command; - } - public function setExitCode($exitCode) - { - $this->exitCode = $exitCode; - } - public function getExitCode() - { - return $this->exitCode; - } -} - -class Google_Service_Dataflow_SideInputInfo extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $sourcesType = 'Google_Service_Dataflow_Source'; - protected $sourcesDataType = 'array'; - public $tag; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_Sink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $codec; - public $spec; - - - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setSpec($spec) - { - $this->spec = $spec; - } - public function getSpec() - { - return $this->spec; - } -} - -class Google_Service_Dataflow_Source extends Google_Collection -{ - protected $collection_key = 'baseSpecs'; - protected $internal_gapi_mappings = array( - ); - public $baseSpecs; - public $codec; - public $doesNotNeedSplitting; - protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; - protected $metadataDataType = ''; - public $spec; - - - public function setBaseSpecs($baseSpecs) - { - $this->baseSpecs = $baseSpecs; - } - public function getBaseSpecs() - { - return $this->baseSpecs; - } - public function setCodec($codec) - { - $this->codec = $codec; - } - public function getCodec() - { - return $this->codec; - } - public function setDoesNotNeedSplitting($doesNotNeedSplitting) - { - $this->doesNotNeedSplitting = $doesNotNeedSplitting; - } - public function getDoesNotNeedSplitting() - { - return $this->doesNotNeedSplitting; - } - public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSpec($spec) - { - $this->spec = $spec; - } - public function getSpec() - { - return $this->spec; - } -} - -class Google_Service_Dataflow_SourceFork extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $primaryType = 'Google_Service_Dataflow_SourceSplitShard'; - protected $primaryDataType = ''; - protected $primarySourceType = 'Google_Service_Dataflow_DerivedSource'; - protected $primarySourceDataType = ''; - protected $residualType = 'Google_Service_Dataflow_SourceSplitShard'; - protected $residualDataType = ''; - protected $residualSourceType = 'Google_Service_Dataflow_DerivedSource'; - protected $residualSourceDataType = ''; - - - public function setPrimary(Google_Service_Dataflow_SourceSplitShard $primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setPrimarySource(Google_Service_Dataflow_DerivedSource $primarySource) - { - $this->primarySource = $primarySource; - } - public function getPrimarySource() - { - return $this->primarySource; - } - public function setResidual(Google_Service_Dataflow_SourceSplitShard $residual) - { - $this->residual = $residual; - } - public function getResidual() - { - return $this->residual; - } - public function setResidualSource(Google_Service_Dataflow_DerivedSource $residualSource) - { - $this->residualSource = $residualSource; - } - public function getResidualSource() - { - return $this->residualSource; - } -} - -class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; - protected $metadataDataType = ''; - - - public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } -} - -class Google_Service_Dataflow_SourceMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $estimatedSizeBytes; - public $infinite; - public $producesSortedKeys; - - - public function setEstimatedSizeBytes($estimatedSizeBytes) - { - $this->estimatedSizeBytes = $estimatedSizeBytes; - } - public function getEstimatedSizeBytes() - { - return $this->estimatedSizeBytes; - } - public function setInfinite($infinite) - { - $this->infinite = $infinite; - } - public function getInfinite() - { - return $this->infinite; - } - public function setProducesSortedKeys($producesSortedKeys) - { - $this->producesSortedKeys = $producesSortedKeys; - } - public function getProducesSortedKeys() - { - return $this->producesSortedKeys; - } -} - -class Google_Service_Dataflow_SourceOperationRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest'; - protected $getMetadataDataType = ''; - protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest'; - protected $splitDataType = ''; - - - public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata) - { - $this->getMetadata = $getMetadata; - } - public function getGetMetadata() - { - return $this->getMetadata; - } - public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split) - { - $this->split = $split; - } - public function getSplit() - { - return $this->split; - } -} - -class Google_Service_Dataflow_SourceOperationResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse'; - protected $getMetadataDataType = ''; - protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse'; - protected $splitDataType = ''; - - - public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata) - { - $this->getMetadata = $getMetadata; - } - public function getGetMetadata() - { - return $this->getMetadata; - } - public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split) - { - $this->split = $split; - } - public function getSplit() - { - return $this->split; - } -} - -class Google_Service_Dataflow_SourceSplitOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $desiredBundleSizeBytes; - public $desiredShardSizeBytes; - - - public function setDesiredBundleSizeBytes($desiredBundleSizeBytes) - { - $this->desiredBundleSizeBytes = $desiredBundleSizeBytes; - } - public function getDesiredBundleSizeBytes() - { - return $this->desiredBundleSizeBytes; - } - public function setDesiredShardSizeBytes($desiredShardSizeBytes) - { - $this->desiredShardSizeBytes = $desiredShardSizeBytes; - } - public function getDesiredShardSizeBytes() - { - return $this->desiredShardSizeBytes; - } -} - -class Google_Service_Dataflow_SourceSplitRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions'; - protected $optionsDataType = ''; - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options) - { - $this->options = $options; - } - public function getOptions() - { - return $this->options; - } - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection -{ - protected $collection_key = 'shards'; - protected $internal_gapi_mappings = array( - ); - protected $bundlesType = 'Google_Service_Dataflow_DerivedSource'; - protected $bundlesDataType = 'array'; - public $outcome; - protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard'; - protected $shardsDataType = 'array'; - - - public function setBundles($bundles) - { - $this->bundles = $bundles; - } - public function getBundles() - { - return $this->bundles; - } - public function setOutcome($outcome) - { - $this->outcome = $outcome; - } - public function getOutcome() - { - return $this->outcome; - } - public function setShards($shards) - { - $this->shards = $shards; - } - public function getShards() - { - return $this->shards; - } -} - -class Google_Service_Dataflow_SourceSplitShard extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $derivationMode; - protected $sourceType = 'Google_Service_Dataflow_Source'; - protected $sourceDataType = ''; - - - public function setDerivationMode($derivationMode) - { - $this->derivationMode = $derivationMode; - } - public function getDerivationMode() - { - return $this->derivationMode; - } - public function setSource(Google_Service_Dataflow_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Dataflow_StateFamilyConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isRead; - public $stateFamily; - - - public function setIsRead($isRead) - { - $this->isRead = $isRead; - } - public function getIsRead() - { - return $this->isRead; - } - public function setStateFamily($stateFamily) - { - $this->stateFamily = $stateFamily; - } - public function getStateFamily() - { - return $this->stateFamily; - } -} - -class Google_Service_Dataflow_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Dataflow_Step extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - public $properties; - - - 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 setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Dataflow_StreamLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $customSourceLocationType = 'Google_Service_Dataflow_CustomSourceLocation'; - protected $customSourceLocationDataType = ''; - protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; - protected $pubsubLocationDataType = ''; - protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation'; - protected $sideInputLocationDataType = ''; - protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation'; - protected $streamingStageLocationDataType = ''; - - - public function setCustomSourceLocation(Google_Service_Dataflow_CustomSourceLocation $customSourceLocation) - { - $this->customSourceLocation = $customSourceLocation; - } - public function getCustomSourceLocation() - { - return $this->customSourceLocation; - } - public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) - { - $this->pubsubLocation = $pubsubLocation; - } - public function getPubsubLocation() - { - return $this->pubsubLocation; - } - public function setSideInputLocation(Google_Service_Dataflow_StreamingSideInputLocation $sideInputLocation) - { - $this->sideInputLocation = $sideInputLocation; - } - public function getSideInputLocation() - { - return $this->sideInputLocation; - } - public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation) - { - $this->streamingStageLocation = $streamingStageLocation; - } - public function getStreamingStageLocation() - { - return $this->streamingStageLocation; - } -} - -class Google_Service_Dataflow_StreamingComputationRanges extends Google_Collection -{ - protected $collection_key = 'rangeAssignments'; - protected $internal_gapi_mappings = array( - ); - public $computationId; - protected $rangeAssignmentsType = 'Google_Service_Dataflow_KeyRangeDataDiskAssignment'; - protected $rangeAssignmentsDataType = 'array'; - - - public function setComputationId($computationId) - { - $this->computationId = $computationId; - } - public function getComputationId() - { - return $this->computationId; - } - public function setRangeAssignments($rangeAssignments) - { - $this->rangeAssignments = $rangeAssignments; - } - public function getRangeAssignments() - { - return $this->rangeAssignments; - } -} - -class Google_Service_Dataflow_StreamingComputationTask extends Google_Collection -{ - protected $collection_key = 'dataDisks'; - protected $internal_gapi_mappings = array( - ); - protected $computationRangesType = 'Google_Service_Dataflow_StreamingComputationRanges'; - protected $computationRangesDataType = 'array'; - protected $dataDisksType = 'Google_Service_Dataflow_MountedDataDisk'; - protected $dataDisksDataType = 'array'; - public $taskType; - - - public function setComputationRanges($computationRanges) - { - $this->computationRanges = $computationRanges; - } - public function getComputationRanges() - { - return $this->computationRanges; - } - public function setDataDisks($dataDisks) - { - $this->dataDisks = $dataDisks; - } - public function getDataDisks() - { - return $this->dataDisks; - } - public function setTaskType($taskType) - { - $this->taskType = $taskType; - } - public function getTaskType() - { - return $this->taskType; - } -} - -class Google_Service_Dataflow_StreamingSetupTask extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $drain; - public $receiveWorkPort; - protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; - protected $streamingComputationTopologyDataType = ''; - public $workerHarnessPort; - - - public function setDrain($drain) - { - $this->drain = $drain; - } - public function getDrain() - { - return $this->drain; - } - public function setReceiveWorkPort($receiveWorkPort) - { - $this->receiveWorkPort = $receiveWorkPort; - } - public function getReceiveWorkPort() - { - return $this->receiveWorkPort; - } - public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology) - { - $this->streamingComputationTopology = $streamingComputationTopology; - } - public function getStreamingComputationTopology() - { - return $this->streamingComputationTopology; - } - public function setWorkerHarnessPort($workerHarnessPort) - { - $this->workerHarnessPort = $workerHarnessPort; - } - public function getWorkerHarnessPort() - { - return $this->workerHarnessPort; - } -} - -class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $stateFamily; - public $tag; - - - public function setStateFamily($stateFamily) - { - $this->stateFamily = $stateFamily; - } - public function getStateFamily() - { - return $this->stateFamily; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dataflow_StreamingStageLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $streamId; - - - public function setStreamId($streamId) - { - $this->streamId = $streamId; - } - public function getStreamId() - { - return $this->streamId; - } -} - -class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection -{ - protected $collection_key = 'oauthScopes'; - protected $internal_gapi_mappings = array( - ); - public $alsologtostderr; - public $baseTaskDir; - public $baseUrl; - public $commandlinesFileName; - public $continueOnException; - public $dataflowApiVersion; - public $harnessCommand; - public $languageHint; - public $logDir; - public $logToSerialconsole; - public $logUploadLocation; - public $oauthScopes; - protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; - protected $parallelWorkerSettingsDataType = ''; - public $streamingWorkerMainClass; - public $taskGroup; - public $taskUser; - public $tempStoragePrefix; - public $vmId; - public $workflowFileName; - - - public function setAlsologtostderr($alsologtostderr) - { - $this->alsologtostderr = $alsologtostderr; - } - public function getAlsologtostderr() - { - return $this->alsologtostderr; - } - public function setBaseTaskDir($baseTaskDir) - { - $this->baseTaskDir = $baseTaskDir; - } - public function getBaseTaskDir() - { - return $this->baseTaskDir; - } - public function setBaseUrl($baseUrl) - { - $this->baseUrl = $baseUrl; - } - public function getBaseUrl() - { - return $this->baseUrl; - } - public function setCommandlinesFileName($commandlinesFileName) - { - $this->commandlinesFileName = $commandlinesFileName; - } - public function getCommandlinesFileName() - { - return $this->commandlinesFileName; - } - public function setContinueOnException($continueOnException) - { - $this->continueOnException = $continueOnException; - } - public function getContinueOnException() - { - return $this->continueOnException; - } - public function setDataflowApiVersion($dataflowApiVersion) - { - $this->dataflowApiVersion = $dataflowApiVersion; - } - public function getDataflowApiVersion() - { - return $this->dataflowApiVersion; - } - public function setHarnessCommand($harnessCommand) - { - $this->harnessCommand = $harnessCommand; - } - public function getHarnessCommand() - { - return $this->harnessCommand; - } - public function setLanguageHint($languageHint) - { - $this->languageHint = $languageHint; - } - public function getLanguageHint() - { - return $this->languageHint; - } - public function setLogDir($logDir) - { - $this->logDir = $logDir; - } - public function getLogDir() - { - return $this->logDir; - } - public function setLogToSerialconsole($logToSerialconsole) - { - $this->logToSerialconsole = $logToSerialconsole; - } - public function getLogToSerialconsole() - { - return $this->logToSerialconsole; - } - public function setLogUploadLocation($logUploadLocation) - { - $this->logUploadLocation = $logUploadLocation; - } - public function getLogUploadLocation() - { - return $this->logUploadLocation; - } - public function setOauthScopes($oauthScopes) - { - $this->oauthScopes = $oauthScopes; - } - public function getOauthScopes() - { - return $this->oauthScopes; - } - public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings) - { - $this->parallelWorkerSettings = $parallelWorkerSettings; - } - public function getParallelWorkerSettings() - { - return $this->parallelWorkerSettings; - } - public function setStreamingWorkerMainClass($streamingWorkerMainClass) - { - $this->streamingWorkerMainClass = $streamingWorkerMainClass; - } - public function getStreamingWorkerMainClass() - { - return $this->streamingWorkerMainClass; - } - public function setTaskGroup($taskGroup) - { - $this->taskGroup = $taskGroup; - } - public function getTaskGroup() - { - return $this->taskGroup; - } - public function setTaskUser($taskUser) - { - $this->taskUser = $taskUser; - } - public function getTaskUser() - { - return $this->taskUser; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setVmId($vmId) - { - $this->vmId = $vmId; - } - public function getVmId() - { - return $this->vmId; - } - public function setWorkflowFileName($workflowFileName) - { - $this->workflowFileName = $workflowFileName; - } - public function getWorkflowFileName() - { - return $this->workflowFileName; - } -} - -class Google_Service_Dataflow_TopologyConfig extends Google_Collection -{ - protected $collection_key = 'dataDiskAssignments'; - protected $internal_gapi_mappings = array( - ); - protected $computationsType = 'Google_Service_Dataflow_ComputationTopology'; - protected $computationsDataType = 'array'; - protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; - protected $dataDiskAssignmentsDataType = 'array'; - public $forwardingKeyBits; - public $userStageToComputationNameMap; - - - public function setComputations($computations) - { - $this->computations = $computations; - } - public function getComputations() - { - return $this->computations; - } - public function setDataDiskAssignments($dataDiskAssignments) - { - $this->dataDiskAssignments = $dataDiskAssignments; - } - public function getDataDiskAssignments() - { - return $this->dataDiskAssignments; - } - public function setForwardingKeyBits($forwardingKeyBits) - { - $this->forwardingKeyBits = $forwardingKeyBits; - } - public function getForwardingKeyBits() - { - return $this->forwardingKeyBits; - } - public function setUserStageToComputationNameMap($userStageToComputationNameMap) - { - $this->userStageToComputationNameMap = $userStageToComputationNameMap; - } - public function getUserStageToComputationNameMap() - { - return $this->userStageToComputationNameMap; - } -} - -class Google_Service_Dataflow_WorkItem extends Google_Collection -{ - protected $collection_key = 'packages'; - protected $internal_gapi_mappings = array( - ); - public $configuration; - public $id; - public $initialReportIndex; - public $jobId; - public $leaseExpireTime; - protected $mapTaskType = 'Google_Service_Dataflow_MapTask'; - protected $mapTaskDataType = ''; - protected $packagesType = 'Google_Service_Dataflow_Package'; - protected $packagesDataType = 'array'; - public $projectId; - public $reportStatusInterval; - protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask'; - protected $seqMapTaskDataType = ''; - protected $shellTaskType = 'Google_Service_Dataflow_ShellTask'; - protected $shellTaskDataType = ''; - protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest'; - protected $sourceOperationTaskDataType = ''; - protected $streamingComputationTaskType = 'Google_Service_Dataflow_StreamingComputationTask'; - protected $streamingComputationTaskDataType = ''; - protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask'; - protected $streamingSetupTaskDataType = ''; - - - public function setConfiguration($configuration) - { - $this->configuration = $configuration; - } - public function getConfiguration() - { - return $this->configuration; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInitialReportIndex($initialReportIndex) - { - $this->initialReportIndex = $initialReportIndex; - } - public function getInitialReportIndex() - { - return $this->initialReportIndex; - } - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } - public function setLeaseExpireTime($leaseExpireTime) - { - $this->leaseExpireTime = $leaseExpireTime; - } - public function getLeaseExpireTime() - { - return $this->leaseExpireTime; - } - public function setMapTask(Google_Service_Dataflow_MapTask $mapTask) - { - $this->mapTask = $mapTask; - } - public function getMapTask() - { - return $this->mapTask; - } - public function setPackages($packages) - { - $this->packages = $packages; - } - public function getPackages() - { - return $this->packages; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReportStatusInterval($reportStatusInterval) - { - $this->reportStatusInterval = $reportStatusInterval; - } - public function getReportStatusInterval() - { - return $this->reportStatusInterval; - } - public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask) - { - $this->seqMapTask = $seqMapTask; - } - public function getSeqMapTask() - { - return $this->seqMapTask; - } - public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask) - { - $this->shellTask = $shellTask; - } - public function getShellTask() - { - return $this->shellTask; - } - public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask) - { - $this->sourceOperationTask = $sourceOperationTask; - } - public function getSourceOperationTask() - { - return $this->sourceOperationTask; - } - public function setStreamingComputationTask(Google_Service_Dataflow_StreamingComputationTask $streamingComputationTask) - { - $this->streamingComputationTask = $streamingComputationTask; - } - public function getStreamingComputationTask() - { - return $this->streamingComputationTask; - } - public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask) - { - $this->streamingSetupTask = $streamingSetupTask; - } - public function getStreamingSetupTask() - { - return $this->streamingSetupTask; - } -} - -class Google_Service_Dataflow_WorkItemServiceState extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $harnessData; - public $leaseExpireTime; - public $nextReportIndex; - public $reportStatusInterval; - protected $splitRequestType = 'Google_Service_Dataflow_ApproximateSplitRequest'; - protected $splitRequestDataType = ''; - protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; - protected $suggestedStopPointDataType = ''; - protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; - protected $suggestedStopPositionDataType = ''; - - - public function setHarnessData($harnessData) - { - $this->harnessData = $harnessData; - } - public function getHarnessData() - { - return $this->harnessData; - } - public function setLeaseExpireTime($leaseExpireTime) - { - $this->leaseExpireTime = $leaseExpireTime; - } - public function getLeaseExpireTime() - { - return $this->leaseExpireTime; - } - public function setNextReportIndex($nextReportIndex) - { - $this->nextReportIndex = $nextReportIndex; - } - public function getNextReportIndex() - { - return $this->nextReportIndex; - } - public function setReportStatusInterval($reportStatusInterval) - { - $this->reportStatusInterval = $reportStatusInterval; - } - public function getReportStatusInterval() - { - return $this->reportStatusInterval; - } - public function setSplitRequest(Google_Service_Dataflow_ApproximateSplitRequest $splitRequest) - { - $this->splitRequest = $splitRequest; - } - public function getSplitRequest() - { - return $this->splitRequest; - } - public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) - { - $this->suggestedStopPoint = $suggestedStopPoint; - } - public function getSuggestedStopPoint() - { - return $this->suggestedStopPoint; - } - public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition) - { - $this->suggestedStopPosition = $suggestedStopPosition; - } - public function getSuggestedStopPosition() - { - return $this->suggestedStopPosition; - } -} - -class Google_Service_Dataflow_WorkItemStatus extends Google_Collection -{ - protected $collection_key = 'metricUpdates'; - protected $internal_gapi_mappings = array( - ); - public $completed; - protected $dynamicSourceSplitType = 'Google_Service_Dataflow_DynamicSourceSplit'; - protected $dynamicSourceSplitDataType = ''; - protected $errorsType = 'Google_Service_Dataflow_Status'; - protected $errorsDataType = 'array'; - protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate'; - protected $metricUpdatesDataType = 'array'; - protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; - protected $progressDataType = ''; - public $reportIndex; - protected $reportedProgressType = 'Google_Service_Dataflow_ApproximateReportedProgress'; - protected $reportedProgressDataType = ''; - public $requestedLeaseDuration; - protected $sourceForkType = 'Google_Service_Dataflow_SourceFork'; - protected $sourceForkDataType = ''; - protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse'; - protected $sourceOperationResponseDataType = ''; - protected $stopPositionType = 'Google_Service_Dataflow_Position'; - protected $stopPositionDataType = ''; - public $workItemId; - - - public function setCompleted($completed) - { - $this->completed = $completed; - } - public function getCompleted() - { - return $this->completed; - } - public function setDynamicSourceSplit(Google_Service_Dataflow_DynamicSourceSplit $dynamicSourceSplit) - { - $this->dynamicSourceSplit = $dynamicSourceSplit; - } - public function getDynamicSourceSplit() - { - return $this->dynamicSourceSplit; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setMetricUpdates($metricUpdates) - { - $this->metricUpdates = $metricUpdates; - } - public function getMetricUpdates() - { - return $this->metricUpdates; - } - public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setReportIndex($reportIndex) - { - $this->reportIndex = $reportIndex; - } - public function getReportIndex() - { - return $this->reportIndex; - } - public function setReportedProgress(Google_Service_Dataflow_ApproximateReportedProgress $reportedProgress) - { - $this->reportedProgress = $reportedProgress; - } - public function getReportedProgress() - { - return $this->reportedProgress; - } - public function setRequestedLeaseDuration($requestedLeaseDuration) - { - $this->requestedLeaseDuration = $requestedLeaseDuration; - } - public function getRequestedLeaseDuration() - { - return $this->requestedLeaseDuration; - } - public function setSourceFork(Google_Service_Dataflow_SourceFork $sourceFork) - { - $this->sourceFork = $sourceFork; - } - public function getSourceFork() - { - return $this->sourceFork; - } - public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse) - { - $this->sourceOperationResponse = $sourceOperationResponse; - } - public function getSourceOperationResponse() - { - return $this->sourceOperationResponse; - } - public function setStopPosition(Google_Service_Dataflow_Position $stopPosition) - { - $this->stopPosition = $stopPosition; - } - public function getStopPosition() - { - return $this->stopPosition; - } - public function setWorkItemId($workItemId) - { - $this->workItemId = $workItemId; - } - public function getWorkItemId() - { - return $this->workItemId; - } -} - -class Google_Service_Dataflow_WorkerHealthReport extends Google_Collection -{ - protected $collection_key = 'pods'; - protected $internal_gapi_mappings = array( - ); - public $pods; - public $reportInterval; - public $vmIsHealthy; - public $vmStartupTime; - - - public function setPods($pods) - { - $this->pods = $pods; - } - public function getPods() - { - return $this->pods; - } - public function setReportInterval($reportInterval) - { - $this->reportInterval = $reportInterval; - } - public function getReportInterval() - { - return $this->reportInterval; - } - public function setVmIsHealthy($vmIsHealthy) - { - $this->vmIsHealthy = $vmIsHealthy; - } - public function getVmIsHealthy() - { - return $this->vmIsHealthy; - } - public function setVmStartupTime($vmStartupTime) - { - $this->vmStartupTime = $vmStartupTime; - } - public function getVmStartupTime() - { - return $this->vmStartupTime; - } -} - -class Google_Service_Dataflow_WorkerHealthReportResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $reportInterval; - - - public function setReportInterval($reportInterval) - { - $this->reportInterval = $reportInterval; - } - public function getReportInterval() - { - return $this->reportInterval; - } -} - -class Google_Service_Dataflow_WorkerMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $labels; - public $time; - protected $workerHealthReportType = 'Google_Service_Dataflow_WorkerHealthReport'; - protected $workerHealthReportDataType = ''; - protected $workerMessageCodeType = 'Google_Service_Dataflow_WorkerMessageCode'; - protected $workerMessageCodeDataType = ''; - - - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } - public function setWorkerHealthReport(Google_Service_Dataflow_WorkerHealthReport $workerHealthReport) - { - $this->workerHealthReport = $workerHealthReport; - } - public function getWorkerHealthReport() - { - return $this->workerHealthReport; - } - public function setWorkerMessageCode(Google_Service_Dataflow_WorkerMessageCode $workerMessageCode) - { - $this->workerMessageCode = $workerMessageCode; - } - public function getWorkerMessageCode() - { - return $this->workerMessageCode; - } -} - -class Google_Service_Dataflow_WorkerMessageCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $parameters; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } - public function getParameters() - { - return $this->parameters; - } -} - -class Google_Service_Dataflow_WorkerMessageResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $workerHealthReportResponseType = 'Google_Service_Dataflow_WorkerHealthReportResponse'; - protected $workerHealthReportResponseDataType = ''; - - - public function setWorkerHealthReportResponse(Google_Service_Dataflow_WorkerHealthReportResponse $workerHealthReportResponse) - { - $this->workerHealthReportResponse = $workerHealthReportResponse; - } - public function getWorkerHealthReportResponse() - { - return $this->workerHealthReportResponse; - } -} - -class Google_Service_Dataflow_WorkerPool extends Google_Collection -{ - protected $collection_key = 'packages'; - protected $internal_gapi_mappings = array( - ); - protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings'; - protected $autoscalingSettingsDataType = ''; - protected $dataDisksType = 'Google_Service_Dataflow_Disk'; - protected $dataDisksDataType = 'array'; - public $defaultPackageSet; - public $diskSizeGb; - public $diskSourceImage; - public $diskType; - public $kind; - public $machineType; - public $metadata; - public $network; - public $numWorkers; - public $onHostMaintenance; - protected $packagesType = 'Google_Service_Dataflow_Package'; - protected $packagesDataType = 'array'; - public $poolArgs; - public $subnetwork; - protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; - protected $taskrunnerSettingsDataType = ''; - public $teardownPolicy; - public $workerHarnessContainerImage; - public $zone; - - - public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings) - { - $this->autoscalingSettings = $autoscalingSettings; - } - public function getAutoscalingSettings() - { - return $this->autoscalingSettings; - } - public function setDataDisks($dataDisks) - { - $this->dataDisks = $dataDisks; - } - public function getDataDisks() - { - return $this->dataDisks; - } - public function setDefaultPackageSet($defaultPackageSet) - { - $this->defaultPackageSet = $defaultPackageSet; - } - public function getDefaultPackageSet() - { - return $this->defaultPackageSet; - } - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setDiskSourceImage($diskSourceImage) - { - $this->diskSourceImage = $diskSourceImage; - } - public function getDiskSourceImage() - { - return $this->diskSourceImage; - } - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - 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($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNumWorkers($numWorkers) - { - $this->numWorkers = $numWorkers; - } - public function getNumWorkers() - { - return $this->numWorkers; - } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } - public function setPackages($packages) - { - $this->packages = $packages; - } - public function getPackages() - { - return $this->packages; - } - public function setPoolArgs($poolArgs) - { - $this->poolArgs = $poolArgs; - } - public function getPoolArgs() - { - return $this->poolArgs; - } - public function setSubnetwork($subnetwork) - { - $this->subnetwork = $subnetwork; - } - public function getSubnetwork() - { - return $this->subnetwork; - } - public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) - { - $this->taskrunnerSettings = $taskrunnerSettings; - } - public function getTaskrunnerSettings() - { - return $this->taskrunnerSettings; - } - public function setTeardownPolicy($teardownPolicy) - { - $this->teardownPolicy = $teardownPolicy; - } - public function getTeardownPolicy() - { - return $this->teardownPolicy; - } - public function setWorkerHarnessContainerImage($workerHarnessContainerImage) - { - $this->workerHarnessContainerImage = $workerHarnessContainerImage; - } - public function getWorkerHarnessContainerImage() - { - return $this->workerHarnessContainerImage; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Dataflow_WorkerSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $baseUrl; - public $reportingEnabled; - public $servicePath; - public $shuffleServicePath; - public $tempStoragePrefix; - public $workerId; - - - public function setBaseUrl($baseUrl) - { - $this->baseUrl = $baseUrl; - } - public function getBaseUrl() - { - return $this->baseUrl; - } - public function setReportingEnabled($reportingEnabled) - { - $this->reportingEnabled = $reportingEnabled; - } - public function getReportingEnabled() - { - return $this->reportingEnabled; - } - public function setServicePath($servicePath) - { - $this->servicePath = $servicePath; - } - public function getServicePath() - { - return $this->servicePath; - } - public function setShuffleServicePath($shuffleServicePath) - { - $this->shuffleServicePath = $shuffleServicePath; - } - public function getShuffleServicePath() - { - return $this->shuffleServicePath; - } - public function setTempStoragePrefix($tempStoragePrefix) - { - $this->tempStoragePrefix = $tempStoragePrefix; - } - public function getTempStoragePrefix() - { - return $this->tempStoragePrefix; - } - public function setWorkerId($workerId) - { - $this->workerId = $workerId; - } - public function getWorkerId() - { - return $this->workerId; - } -} - -class Google_Service_Dataflow_WriteInstruction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Dataflow_InstructionInput'; - protected $inputDataType = ''; - protected $sinkType = 'Google_Service_Dataflow_Sink'; - protected $sinkDataType = ''; - - - public function setInput(Google_Service_Dataflow_InstructionInput $input) - { - $this->input = $input; - } - public function getInput() - { - return $this->input; - } - public function setSink(Google_Service_Dataflow_Sink $sink) - { - $this->sink = $sink; - } - public function getSink() - { - return $this->sink; - } -} diff --git a/src/Google/Service/Dataproc.php b/src/Google/Service/Dataproc.php deleted file mode 100644 index 5f71b98f4..000000000 --- a/src/Google/Service/Dataproc.php +++ /dev/null @@ -1,2458 +0,0 @@ - - * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Dataproc extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Administrate log data for your projects. */ - const LOGGING_ADMIN = - "https://www.googleapis.com/auth/logging.admin"; - /** View log data for your projects. */ - const LOGGING_READ = - "https://www.googleapis.com/auth/logging.read"; - /** Submit log data for your projects. */ - const LOGGING_WRITE = - "https://www.googleapis.com/auth/logging.write"; - - public $media; - public $projects_regions_clusters; - public $projects_regions_jobs; - public $projects_regions_operations; - - - /** - * Constructs the internal representation of the Dataproc service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://dataproc.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'dataproc'; - - $this->media = new Google_Service_Dataproc_Media_Resource( - $this, - $this->serviceName, - 'media', - array( - 'methods' => array( - 'download' => array( - 'path' => 'v1/media/{+resourceName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resourceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'v1/media/{+resourceName}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resourceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_regions_clusters = new Google_Service_Dataproc_ProjectsRegionsClusters_Resource( - $this, - $this->serviceName, - 'clusters', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'diagnose' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clusterName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects_regions_jobs = new Google_Service_Dataproc_ProjectsRegionsJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'clusterName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'jobStateMatcher' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submit' => array( - 'path' => 'v1/projects/{projectId}/regions/{region}/jobs:submit', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_regions_operations = new Google_Service_Dataproc_ProjectsRegionsOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'v1/{+name}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "media" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $media = $dataprocService->media; - * - */ -class Google_Service_Dataproc_Media_Resource extends Google_Service_Resource -{ - - /** - * Method for media download. Download is supported on the URI - * `/v1/media/{+name}?alt=media`. (media.download) - * - * @param string $resourceName Name of the media that is being downloaded. See - * ByteStream.ReadRequest.resource_name. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Media - */ - public function download($resourceName, $optParams = array()) - { - $params = array('resourceName' => $resourceName); - $params = array_merge($params, $optParams); - return $this->call('download', array($params), "Google_Service_Dataproc_Media"); - } - - /** - * Method for media upload. Upload is supported on the URI - * `/upload/v1/media/{+name}`. (media.upload) - * - * @param string $resourceName Name of the media that is being downloaded. See - * ByteStream.ReadRequest.resource_name. - * @param Google_Media $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Media - */ - public function upload($resourceName, Google_Service_Dataproc_Media $postBody, $optParams = array()) - { - $params = array('resourceName' => $resourceName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_Dataproc_Media"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $projects = $dataprocService->projects; - * - */ -class Google_Service_Dataproc_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $regions = $dataprocService->regions; - * - */ -class Google_Service_Dataproc_ProjectsRegions_Resource extends Google_Service_Resource -{ -} - -/** - * The "clusters" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $clusters = $dataprocService->clusters; - * - */ -class Google_Service_Dataproc_ProjectsRegionsClusters_Resource extends Google_Service_Resource -{ - - /** - * Creates a cluster in a project. (clusters.create) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param Google_Cluster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Operation - */ - public function create($projectId, $region, Google_Service_Dataproc_Cluster $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dataproc_Operation"); - } - - /** - * Deletes a cluster in a project. (clusters.delete) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $clusterName [Required] The cluster name. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Operation - */ - public function delete($projectId, $region, $clusterName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Dataproc_Operation"); - } - - /** - * Gets cluster diagnostic information. After the operation completes, the - * Operation.response field contains `DiagnoseClusterOutputLocation`. - * (clusters.diagnose) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $clusterName [Required] The cluster name. - * @param Google_DiagnoseClusterRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Operation - */ - public function diagnose($projectId, $region, $clusterName, Google_Service_Dataproc_DiagnoseClusterRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('diagnose', array($params), "Google_Service_Dataproc_Operation"); - } - - /** - * Gets the resource representation for a cluster in a project. (clusters.get) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $clusterName [Required] The cluster name. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Cluster - */ - public function get($projectId, $region, $clusterName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dataproc_Cluster"); - } - - /** - * Lists all regions/{region}/clusters in a project. - * (clusters.listProjectsRegionsClusters) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The standard List page size. - * @opt_param string pageToken The standard List page token. - * @return Google_Service_Dataproc_ListClustersResponse - */ - public function listProjectsRegionsClusters($projectId, $region, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataproc_ListClustersResponse"); - } - - /** - * Updates a cluster in a project. (clusters.patch) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project the cluster belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $clusterName [Required] The cluster name. - * @param Google_Cluster $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask [Required] Specifies the path, relative to - * Cluster, of the field to update. For example, to change the number of workers - * in a cluster to 5, the update_mask parameter would be specified as - * config.worker_config.num_instances, and the `PATCH` request body would - * specify the new value, as follows: { "config":{ "workerConfig":{ - * "numInstances":"5" } } } Note: Currently, config.worker_config.num_instances - * is the only field that can be updated. - * @return Google_Service_Dataproc_Operation - */ - public function patch($projectId, $region, $clusterName, Google_Service_Dataproc_Cluster $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dataproc_Operation"); - } -} -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $jobs = $dataprocService->jobs; - * - */ -class Google_Service_Dataproc_ProjectsRegionsJobs_Resource extends Google_Service_Resource -{ - - /** - * Starts a job cancellation request. To access the job resource after - * cancellation, call [regions/{region}/jobs.list](/dataproc/reference/rest/v1/p - * rojects.regions.jobs/list) or [regions/{region}/jobs.get](/dataproc/reference - * /rest/v1/projects.regions.jobs/get). (jobs.cancel) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the job belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $jobId [Required] The job ID. - * @param Google_CancelJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Job - */ - public function cancel($projectId, $region, $jobId, Google_Service_Dataproc_CancelJobRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Dataproc_Job"); - } - - /** - * Deletes the job from the project. If the job is active, the delete fails, and - * the response returns `FAILED_PRECONDITION`. (jobs.delete) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the job belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $jobId [Required] The job ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Empty - */ - public function delete($projectId, $region, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Dataproc_Empty"); - } - - /** - * Gets the resource representation for a job in a project. (jobs.get) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the job belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param string $jobId [Required] The job ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Job - */ - public function get($projectId, $region, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dataproc_Job"); - } - - /** - * Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the job belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize [Optional] The number of results to return in each - * response. - * @opt_param string pageToken [Optional] The page token, returned by a previous - * call, to request the next page of results. - * @opt_param string clusterName [Optional] If set, the returned jobs list - * includes only jobs that were submitted to the named cluster. - * @opt_param string jobStateMatcher [Optional] Specifies enumerated categories - * of jobs to list. - * @return Google_Service_Dataproc_ListJobsResponse - */ - public function listProjectsRegionsJobs($projectId, $region, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataproc_ListJobsResponse"); - } - - /** - * Submits a job to a cluster. (jobs.submit) - * - * @param string $projectId [Required] The ID of the Google Cloud Platform - * project that the job belongs to. - * @param string $region [Required] The Cloud Dataproc region in which to handle - * the request. - * @param Google_SubmitJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Job - */ - public function submit($projectId, $region, Google_Service_Dataproc_SubmitJobRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('submit', array($params), "Google_Service_Dataproc_Job"); - } -} -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $dataprocService = new Google_Service_Dataproc(...); - * $operations = $dataprocService->operations; - * - */ -class Google_Service_Dataproc_ProjectsRegionsOperations_Resource extends Google_Service_Resource -{ - - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not guaranteed. - * If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. (operations.cancel) - * - * @param string $name The name of the operation resource to be cancelled. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Empty - */ - public function cancel($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Dataproc_Empty"); - } - - /** - * Deletes a long-running operation. This method indicates that the client is no - * longer interested in the operation result. It does not cancel the operation. - * If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) - * - * @param string $name The name of the operation resource to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Empty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Dataproc_Empty"); - } - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) - * - * @param string $name The name of the operation resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Dataproc_Operation - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dataproc_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users/operations`. - * (operations.listProjectsRegionsOperations) - * - * @param string $name The name of the operation collection. - * @param array $optParams Optional parameters. - * - * @opt_param string filter The standard list filter. - * @opt_param int pageSize The standard list page size. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_Dataproc_ListOperationsResponse - */ - public function listProjectsRegionsOperations($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dataproc_ListOperationsResponse"); - } -} - - - - -class Google_Service_Dataproc_CancelJobRequest extends Google_Model -{ -} - -class Google_Service_Dataproc_Cluster extends Google_Collection -{ - protected $collection_key = 'statusHistory'; - protected $internal_gapi_mappings = array( - ); - public $clusterName; - public $clusterUuid; - protected $configType = 'Google_Service_Dataproc_ClusterConfig'; - protected $configDataType = ''; - public $projectId; - protected $statusType = 'Google_Service_Dataproc_ClusterStatus'; - protected $statusDataType = ''; - protected $statusHistoryType = 'Google_Service_Dataproc_ClusterStatus'; - protected $statusHistoryDataType = 'array'; - - - public function setClusterName($clusterName) - { - $this->clusterName = $clusterName; - } - public function getClusterName() - { - return $this->clusterName; - } - public function setClusterUuid($clusterUuid) - { - $this->clusterUuid = $clusterUuid; - } - public function getClusterUuid() - { - return $this->clusterUuid; - } - public function setConfig(Google_Service_Dataproc_ClusterConfig $config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setStatus(Google_Service_Dataproc_ClusterStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusHistory($statusHistory) - { - $this->statusHistory = $statusHistory; - } - public function getStatusHistory() - { - return $this->statusHistory; - } -} - -class Google_Service_Dataproc_ClusterConfig extends Google_Collection -{ - protected $collection_key = 'initializationActions'; - protected $internal_gapi_mappings = array( - ); - public $configBucket; - protected $gceClusterConfigType = 'Google_Service_Dataproc_GceClusterConfig'; - protected $gceClusterConfigDataType = ''; - protected $initializationActionsType = 'Google_Service_Dataproc_NodeInitializationAction'; - protected $initializationActionsDataType = 'array'; - protected $masterConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; - protected $masterConfigDataType = ''; - protected $secondaryWorkerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; - protected $secondaryWorkerConfigDataType = ''; - protected $softwareConfigType = 'Google_Service_Dataproc_SoftwareConfig'; - protected $softwareConfigDataType = ''; - protected $workerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig'; - protected $workerConfigDataType = ''; - - - public function setConfigBucket($configBucket) - { - $this->configBucket = $configBucket; - } - public function getConfigBucket() - { - return $this->configBucket; - } - public function setGceClusterConfig(Google_Service_Dataproc_GceClusterConfig $gceClusterConfig) - { - $this->gceClusterConfig = $gceClusterConfig; - } - public function getGceClusterConfig() - { - return $this->gceClusterConfig; - } - public function setInitializationActions($initializationActions) - { - $this->initializationActions = $initializationActions; - } - public function getInitializationActions() - { - return $this->initializationActions; - } - public function setMasterConfig(Google_Service_Dataproc_InstanceGroupConfig $masterConfig) - { - $this->masterConfig = $masterConfig; - } - public function getMasterConfig() - { - return $this->masterConfig; - } - public function setSecondaryWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $secondaryWorkerConfig) - { - $this->secondaryWorkerConfig = $secondaryWorkerConfig; - } - public function getSecondaryWorkerConfig() - { - return $this->secondaryWorkerConfig; - } - public function setSoftwareConfig(Google_Service_Dataproc_SoftwareConfig $softwareConfig) - { - $this->softwareConfig = $softwareConfig; - } - public function getSoftwareConfig() - { - return $this->softwareConfig; - } - public function setWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $workerConfig) - { - $this->workerConfig = $workerConfig; - } - public function getWorkerConfig() - { - return $this->workerConfig; - } -} - -class Google_Service_Dataproc_ClusterOperationMetadata extends Google_Collection -{ - protected $collection_key = 'statusHistory'; - protected $internal_gapi_mappings = array( - ); - public $clusterName; - public $clusterUuid; - public $description; - public $operationType; - protected $statusType = 'Google_Service_Dataproc_ClusterOperationStatus'; - protected $statusDataType = ''; - protected $statusHistoryType = 'Google_Service_Dataproc_ClusterOperationStatus'; - protected $statusHistoryDataType = 'array'; - - - public function setClusterName($clusterName) - { - $this->clusterName = $clusterName; - } - public function getClusterName() - { - return $this->clusterName; - } - public function setClusterUuid($clusterUuid) - { - $this->clusterUuid = $clusterUuid; - } - public function getClusterUuid() - { - return $this->clusterUuid; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setStatus(Google_Service_Dataproc_ClusterOperationStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusHistory($statusHistory) - { - $this->statusHistory = $statusHistory; - } - public function getStatusHistory() - { - return $this->statusHistory; - } -} - -class Google_Service_Dataproc_ClusterOperationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $details; - public $innerState; - public $state; - public $stateStartTime; - - - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setInnerState($innerState) - { - $this->innerState = $innerState; - } - public function getInnerState() - { - return $this->innerState; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStateStartTime($stateStartTime) - { - $this->stateStartTime = $stateStartTime; - } - public function getStateStartTime() - { - return $this->stateStartTime; - } -} - -class Google_Service_Dataproc_ClusterStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $detail; - public $state; - public $stateStartTime; - - - public function setDetail($detail) - { - $this->detail = $detail; - } - public function getDetail() - { - return $this->detail; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStateStartTime($stateStartTime) - { - $this->stateStartTime = $stateStartTime; - } - public function getStateStartTime() - { - return $this->stateStartTime; - } -} - -class Google_Service_Dataproc_DiagnoseClusterOutputLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $outputUri; - - - public function setOutputUri($outputUri) - { - $this->outputUri = $outputUri; - } - public function getOutputUri() - { - return $this->outputUri; - } -} - -class Google_Service_Dataproc_DiagnoseClusterRequest extends Google_Model -{ -} - -class Google_Service_Dataproc_DiagnoseClusterResults extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $outputUri; - - - public function setOutputUri($outputUri) - { - $this->outputUri = $outputUri; - } - public function getOutputUri() - { - return $this->outputUri; - } -} - -class Google_Service_Dataproc_DiskConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bootDiskSizeGb; - public $numLocalSsds; - - - public function setBootDiskSizeGb($bootDiskSizeGb) - { - $this->bootDiskSizeGb = $bootDiskSizeGb; - } - public function getBootDiskSizeGb() - { - return $this->bootDiskSizeGb; - } - public function setNumLocalSsds($numLocalSsds) - { - $this->numLocalSsds = $numLocalSsds; - } - public function getNumLocalSsds() - { - return $this->numLocalSsds; - } -} - -class Google_Service_Dataproc_Empty extends Google_Model -{ -} - -class Google_Service_Dataproc_GceClusterConfig extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $metadata; - public $networkUri; - public $serviceAccountScopes; - public $subnetworkUri; - public $tags; - public $zoneUri; - - - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setNetworkUri($networkUri) - { - $this->networkUri = $networkUri; - } - public function getNetworkUri() - { - return $this->networkUri; - } - public function setServiceAccountScopes($serviceAccountScopes) - { - $this->serviceAccountScopes = $serviceAccountScopes; - } - public function getServiceAccountScopes() - { - return $this->serviceAccountScopes; - } - public function setSubnetworkUri($subnetworkUri) - { - $this->subnetworkUri = $subnetworkUri; - } - public function getSubnetworkUri() - { - return $this->subnetworkUri; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setZoneUri($zoneUri) - { - $this->zoneUri = $zoneUri; - } - public function getZoneUri() - { - return $this->zoneUri; - } -} - -class Google_Service_Dataproc_HadoopJob extends Google_Collection -{ - protected $collection_key = 'jarFileUris'; - protected $internal_gapi_mappings = array( - ); - public $archiveUris; - public $args; - public $fileUris; - public $jarFileUris; - protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; - protected $loggingConfigDataType = ''; - public $mainClass; - public $mainJarFileUri; - public $properties; - - - public function setArchiveUris($archiveUris) - { - $this->archiveUris = $archiveUris; - } - public function getArchiveUris() - { - return $this->archiveUris; - } - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFileUris($fileUris) - { - $this->fileUris = $fileUris; - } - public function getFileUris() - { - return $this->fileUris; - } - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) - { - $this->loggingConfig = $loggingConfig; - } - public function getLoggingConfig() - { - return $this->loggingConfig; - } - public function setMainClass($mainClass) - { - $this->mainClass = $mainClass; - } - public function getMainClass() - { - return $this->mainClass; - } - public function setMainJarFileUri($mainJarFileUri) - { - $this->mainJarFileUri = $mainJarFileUri; - } - public function getMainJarFileUri() - { - return $this->mainJarFileUri; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Dataproc_HiveJob extends Google_Collection -{ - protected $collection_key = 'jarFileUris'; - protected $internal_gapi_mappings = array( - ); - public $continueOnFailure; - public $jarFileUris; - public $properties; - public $queryFileUri; - protected $queryListType = 'Google_Service_Dataproc_QueryList'; - protected $queryListDataType = ''; - public $scriptVariables; - - - public function setContinueOnFailure($continueOnFailure) - { - $this->continueOnFailure = $continueOnFailure; - } - public function getContinueOnFailure() - { - return $this->continueOnFailure; - } - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setQueryFileUri($queryFileUri) - { - $this->queryFileUri = $queryFileUri; - } - public function getQueryFileUri() - { - return $this->queryFileUri; - } - public function setQueryList(Google_Service_Dataproc_QueryList $queryList) - { - $this->queryList = $queryList; - } - public function getQueryList() - { - return $this->queryList; - } - public function setScriptVariables($scriptVariables) - { - $this->scriptVariables = $scriptVariables; - } - public function getScriptVariables() - { - return $this->scriptVariables; - } -} - -class Google_Service_Dataproc_InstanceGroupConfig extends Google_Collection -{ - protected $collection_key = 'instanceNames'; - protected $internal_gapi_mappings = array( - ); - protected $diskConfigType = 'Google_Service_Dataproc_DiskConfig'; - protected $diskConfigDataType = ''; - public $imageUri; - public $instanceNames; - public $isPreemptible; - public $machineTypeUri; - protected $managedGroupConfigType = 'Google_Service_Dataproc_ManagedGroupConfig'; - protected $managedGroupConfigDataType = ''; - public $numInstances; - - - public function setDiskConfig(Google_Service_Dataproc_DiskConfig $diskConfig) - { - $this->diskConfig = $diskConfig; - } - public function getDiskConfig() - { - return $this->diskConfig; - } - public function setImageUri($imageUri) - { - $this->imageUri = $imageUri; - } - public function getImageUri() - { - return $this->imageUri; - } - public function setInstanceNames($instanceNames) - { - $this->instanceNames = $instanceNames; - } - public function getInstanceNames() - { - return $this->instanceNames; - } - public function setIsPreemptible($isPreemptible) - { - $this->isPreemptible = $isPreemptible; - } - public function getIsPreemptible() - { - return $this->isPreemptible; - } - public function setMachineTypeUri($machineTypeUri) - { - $this->machineTypeUri = $machineTypeUri; - } - public function getMachineTypeUri() - { - return $this->machineTypeUri; - } - public function setManagedGroupConfig(Google_Service_Dataproc_ManagedGroupConfig $managedGroupConfig) - { - $this->managedGroupConfig = $managedGroupConfig; - } - public function getManagedGroupConfig() - { - return $this->managedGroupConfig; - } - public function setNumInstances($numInstances) - { - $this->numInstances = $numInstances; - } - public function getNumInstances() - { - return $this->numInstances; - } -} - -class Google_Service_Dataproc_Job extends Google_Collection -{ - protected $collection_key = 'statusHistory'; - protected $internal_gapi_mappings = array( - ); - public $driverControlFilesUri; - public $driverOutputResourceUri; - protected $hadoopJobType = 'Google_Service_Dataproc_HadoopJob'; - protected $hadoopJobDataType = ''; - protected $hiveJobType = 'Google_Service_Dataproc_HiveJob'; - protected $hiveJobDataType = ''; - protected $pigJobType = 'Google_Service_Dataproc_PigJob'; - protected $pigJobDataType = ''; - protected $placementType = 'Google_Service_Dataproc_JobPlacement'; - protected $placementDataType = ''; - protected $pysparkJobType = 'Google_Service_Dataproc_PySparkJob'; - protected $pysparkJobDataType = ''; - protected $referenceType = 'Google_Service_Dataproc_JobReference'; - protected $referenceDataType = ''; - protected $sparkJobType = 'Google_Service_Dataproc_SparkJob'; - protected $sparkJobDataType = ''; - protected $sparkSqlJobType = 'Google_Service_Dataproc_SparkSqlJob'; - protected $sparkSqlJobDataType = ''; - protected $statusType = 'Google_Service_Dataproc_JobStatus'; - protected $statusDataType = ''; - protected $statusHistoryType = 'Google_Service_Dataproc_JobStatus'; - protected $statusHistoryDataType = 'array'; - - - public function setDriverControlFilesUri($driverControlFilesUri) - { - $this->driverControlFilesUri = $driverControlFilesUri; - } - public function getDriverControlFilesUri() - { - return $this->driverControlFilesUri; - } - public function setDriverOutputResourceUri($driverOutputResourceUri) - { - $this->driverOutputResourceUri = $driverOutputResourceUri; - } - public function getDriverOutputResourceUri() - { - return $this->driverOutputResourceUri; - } - public function setHadoopJob(Google_Service_Dataproc_HadoopJob $hadoopJob) - { - $this->hadoopJob = $hadoopJob; - } - public function getHadoopJob() - { - return $this->hadoopJob; - } - public function setHiveJob(Google_Service_Dataproc_HiveJob $hiveJob) - { - $this->hiveJob = $hiveJob; - } - public function getHiveJob() - { - return $this->hiveJob; - } - public function setPigJob(Google_Service_Dataproc_PigJob $pigJob) - { - $this->pigJob = $pigJob; - } - public function getPigJob() - { - return $this->pigJob; - } - public function setPlacement(Google_Service_Dataproc_JobPlacement $placement) - { - $this->placement = $placement; - } - public function getPlacement() - { - return $this->placement; - } - public function setPysparkJob(Google_Service_Dataproc_PySparkJob $pysparkJob) - { - $this->pysparkJob = $pysparkJob; - } - public function getPysparkJob() - { - return $this->pysparkJob; - } - public function setReference(Google_Service_Dataproc_JobReference $reference) - { - $this->reference = $reference; - } - public function getReference() - { - return $this->reference; - } - public function setSparkJob(Google_Service_Dataproc_SparkJob $sparkJob) - { - $this->sparkJob = $sparkJob; - } - public function getSparkJob() - { - return $this->sparkJob; - } - public function setSparkSqlJob(Google_Service_Dataproc_SparkSqlJob $sparkSqlJob) - { - $this->sparkSqlJob = $sparkSqlJob; - } - public function getSparkSqlJob() - { - return $this->sparkSqlJob; - } - public function setStatus(Google_Service_Dataproc_JobStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusHistory($statusHistory) - { - $this->statusHistory = $statusHistory; - } - public function getStatusHistory() - { - return $this->statusHistory; - } -} - -class Google_Service_Dataproc_JobPlacement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clusterName; - public $clusterUuid; - - - public function setClusterName($clusterName) - { - $this->clusterName = $clusterName; - } - public function getClusterName() - { - return $this->clusterName; - } - public function setClusterUuid($clusterUuid) - { - $this->clusterUuid = $clusterUuid; - } - public function getClusterUuid() - { - return $this->clusterUuid; - } -} - -class Google_Service_Dataproc_JobReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dataproc_JobStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $details; - public $state; - public $stateStartTime; - - - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStateStartTime($stateStartTime) - { - $this->stateStartTime = $stateStartTime; - } - public function getStateStartTime() - { - return $this->stateStartTime; - } -} - -class Google_Service_Dataproc_ListClustersResponse extends Google_Collection -{ - protected $collection_key = 'clusters'; - protected $internal_gapi_mappings = array( - ); - protected $clustersType = 'Google_Service_Dataproc_Cluster'; - protected $clustersDataType = 'array'; - public $nextPageToken; - - - public function setClusters($clusters) - { - $this->clusters = $clusters; - } - public function getClusters() - { - return $this->clusters; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataproc_ListJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_Dataproc_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dataproc_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_Dataproc_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Dataproc_LoggingConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $driverLogLevels; - - - public function setDriverLogLevels($driverLogLevels) - { - $this->driverLogLevels = $driverLogLevels; - } - public function getDriverLogLevels() - { - return $this->driverLogLevels; - } -} - -class Google_Service_Dataproc_ManagedGroupConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceGroupManagerName; - public $instanceTemplateName; - - - public function setInstanceGroupManagerName($instanceGroupManagerName) - { - $this->instanceGroupManagerName = $instanceGroupManagerName; - } - public function getInstanceGroupManagerName() - { - return $this->instanceGroupManagerName; - } - public function setInstanceTemplateName($instanceTemplateName) - { - $this->instanceTemplateName = $instanceTemplateName; - } - public function getInstanceTemplateName() - { - return $this->instanceTemplateName; - } -} - -class Google_Service_Dataproc_Media extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $resourceName; - - - public function setResourceName($resourceName) - { - $this->resourceName = $resourceName; - } - public function getResourceName() - { - return $this->resourceName; - } -} - -class Google_Service_Dataproc_NodeInitializationAction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executableFile; - public $executionTimeout; - - - public function setExecutableFile($executableFile) - { - $this->executableFile = $executableFile; - } - public function getExecutableFile() - { - return $this->executableFile; - } - public function setExecutionTimeout($executionTimeout) - { - $this->executionTimeout = $executionTimeout; - } - public function getExecutionTimeout() - { - return $this->executionTimeout; - } -} - -class Google_Service_Dataproc_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_Dataproc_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_Dataproc_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Dataproc_OperationMetadata extends Google_Collection -{ - protected $collection_key = 'statusHistory'; - protected $internal_gapi_mappings = array( - ); - public $clusterName; - public $clusterUuid; - public $description; - public $details; - public $endTime; - public $innerState; - public $insertTime; - public $operationType; - public $startTime; - public $state; - protected $statusType = 'Google_Service_Dataproc_OperationStatus'; - protected $statusDataType = ''; - protected $statusHistoryType = 'Google_Service_Dataproc_OperationStatus'; - protected $statusHistoryDataType = 'array'; - - - public function setClusterName($clusterName) - { - $this->clusterName = $clusterName; - } - public function getClusterName() - { - return $this->clusterName; - } - public function setClusterUuid($clusterUuid) - { - $this->clusterUuid = $clusterUuid; - } - public function getClusterUuid() - { - return $this->clusterUuid; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setInnerState($innerState) - { - $this->innerState = $innerState; - } - public function getInnerState() - { - return $this->innerState; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStatus(Google_Service_Dataproc_OperationStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusHistory($statusHistory) - { - $this->statusHistory = $statusHistory; - } - public function getStatusHistory() - { - return $this->statusHistory; - } -} - -class Google_Service_Dataproc_OperationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $details; - public $innerState; - public $state; - public $stateStartTime; - - - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setInnerState($innerState) - { - $this->innerState = $innerState; - } - public function getInnerState() - { - return $this->innerState; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStateStartTime($stateStartTime) - { - $this->stateStartTime = $stateStartTime; - } - public function getStateStartTime() - { - return $this->stateStartTime; - } -} - -class Google_Service_Dataproc_PigJob extends Google_Collection -{ - protected $collection_key = 'jarFileUris'; - protected $internal_gapi_mappings = array( - ); - public $continueOnFailure; - public $jarFileUris; - protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; - protected $loggingConfigDataType = ''; - public $properties; - public $queryFileUri; - protected $queryListType = 'Google_Service_Dataproc_QueryList'; - protected $queryListDataType = ''; - public $scriptVariables; - - - public function setContinueOnFailure($continueOnFailure) - { - $this->continueOnFailure = $continueOnFailure; - } - public function getContinueOnFailure() - { - return $this->continueOnFailure; - } - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) - { - $this->loggingConfig = $loggingConfig; - } - public function getLoggingConfig() - { - return $this->loggingConfig; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setQueryFileUri($queryFileUri) - { - $this->queryFileUri = $queryFileUri; - } - public function getQueryFileUri() - { - return $this->queryFileUri; - } - public function setQueryList(Google_Service_Dataproc_QueryList $queryList) - { - $this->queryList = $queryList; - } - public function getQueryList() - { - return $this->queryList; - } - public function setScriptVariables($scriptVariables) - { - $this->scriptVariables = $scriptVariables; - } - public function getScriptVariables() - { - return $this->scriptVariables; - } -} - -class Google_Service_Dataproc_PySparkJob extends Google_Collection -{ - protected $collection_key = 'pythonFileUris'; - protected $internal_gapi_mappings = array( - ); - public $archiveUris; - public $args; - public $fileUris; - public $jarFileUris; - protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; - protected $loggingConfigDataType = ''; - public $mainPythonFileUri; - public $properties; - public $pythonFileUris; - - - public function setArchiveUris($archiveUris) - { - $this->archiveUris = $archiveUris; - } - public function getArchiveUris() - { - return $this->archiveUris; - } - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFileUris($fileUris) - { - $this->fileUris = $fileUris; - } - public function getFileUris() - { - return $this->fileUris; - } - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) - { - $this->loggingConfig = $loggingConfig; - } - public function getLoggingConfig() - { - return $this->loggingConfig; - } - public function setMainPythonFileUri($mainPythonFileUri) - { - $this->mainPythonFileUri = $mainPythonFileUri; - } - public function getMainPythonFileUri() - { - return $this->mainPythonFileUri; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setPythonFileUris($pythonFileUris) - { - $this->pythonFileUris = $pythonFileUris; - } - public function getPythonFileUris() - { - return $this->pythonFileUris; - } -} - -class Google_Service_Dataproc_QueryList extends Google_Collection -{ - protected $collection_key = 'queries'; - protected $internal_gapi_mappings = array( - ); - public $queries; - - - public function setQueries($queries) - { - $this->queries = $queries; - } - public function getQueries() - { - return $this->queries; - } -} - -class Google_Service_Dataproc_SoftwareConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $imageVersion; - public $properties; - - - public function setImageVersion($imageVersion) - { - $this->imageVersion = $imageVersion; - } - public function getImageVersion() - { - return $this->imageVersion; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Dataproc_SparkJob extends Google_Collection -{ - protected $collection_key = 'jarFileUris'; - protected $internal_gapi_mappings = array( - ); - public $archiveUris; - public $args; - public $fileUris; - public $jarFileUris; - protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; - protected $loggingConfigDataType = ''; - public $mainClass; - public $mainJarFileUri; - public $properties; - - - public function setArchiveUris($archiveUris) - { - $this->archiveUris = $archiveUris; - } - public function getArchiveUris() - { - return $this->archiveUris; - } - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFileUris($fileUris) - { - $this->fileUris = $fileUris; - } - public function getFileUris() - { - return $this->fileUris; - } - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) - { - $this->loggingConfig = $loggingConfig; - } - public function getLoggingConfig() - { - return $this->loggingConfig; - } - public function setMainClass($mainClass) - { - $this->mainClass = $mainClass; - } - public function getMainClass() - { - return $this->mainClass; - } - public function setMainJarFileUri($mainJarFileUri) - { - $this->mainJarFileUri = $mainJarFileUri; - } - public function getMainJarFileUri() - { - return $this->mainJarFileUri; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Dataproc_SparkSqlJob extends Google_Collection -{ - protected $collection_key = 'jarFileUris'; - protected $internal_gapi_mappings = array( - ); - public $jarFileUris; - protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig'; - protected $loggingConfigDataType = ''; - public $properties; - public $queryFileUri; - protected $queryListType = 'Google_Service_Dataproc_QueryList'; - protected $queryListDataType = ''; - public $scriptVariables; - - - public function setJarFileUris($jarFileUris) - { - $this->jarFileUris = $jarFileUris; - } - public function getJarFileUris() - { - return $this->jarFileUris; - } - public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig) - { - $this->loggingConfig = $loggingConfig; - } - public function getLoggingConfig() - { - return $this->loggingConfig; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setQueryFileUri($queryFileUri) - { - $this->queryFileUri = $queryFileUri; - } - public function getQueryFileUri() - { - return $this->queryFileUri; - } - public function setQueryList(Google_Service_Dataproc_QueryList $queryList) - { - $this->queryList = $queryList; - } - public function getQueryList() - { - return $this->queryList; - } - public function setScriptVariables($scriptVariables) - { - $this->scriptVariables = $scriptVariables; - } - public function getScriptVariables() - { - return $this->scriptVariables; - } -} - -class Google_Service_Dataproc_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Dataproc_SubmitJobRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $jobType = 'Google_Service_Dataproc_Job'; - protected $jobDataType = ''; - - - public function setJob(Google_Service_Dataproc_Job $job) - { - $this->job = $job; - } - public function getJob() - { - return $this->job; - } -} diff --git a/src/Google/Service/Datastore.php b/src/Google/Service/Datastore.php deleted file mode 100644 index 2a4216dff..000000000 --- a/src/Google/Service/Datastore.php +++ /dev/null @@ -1,1521 +0,0 @@ - - * API for accessing Google Cloud Datastore.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Datastore extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Cloud Datastore data. */ - const DATASTORE = - "https://www.googleapis.com/auth/datastore"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - - public $datasets; - - - /** - * Constructs the internal representation of the Datastore service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'datastore/v1beta2/datasets/'; - $this->version = 'v1beta2'; - $this->serviceName = 'datastore'; - - $this->datasets = new Google_Service_Datastore_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'allocateIds' => array( - 'path' => '{datasetId}/allocateIds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'beginTransaction' => array( - 'path' => '{datasetId}/beginTransaction', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'commit' => array( - 'path' => '{datasetId}/commit', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'lookup' => array( - 'path' => '{datasetId}/lookup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'rollback' => array( - 'path' => '{datasetId}/rollback', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'runQuery' => array( - 'path' => '{datasetId}/runQuery', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $datastoreService = new Google_Service_Datastore(...); - * $datasets = $datastoreService->datasets; - * - */ -class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource -{ - - /** - * Allocate IDs for incomplete keys (useful for referencing an entity before it - * is inserted). (datasets.allocateIds) - * - * @param string $datasetId Identifies the dataset. - * @param Google_AllocateIdsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_AllocateIdsResponse - */ - public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse"); - } - - /** - * Begin a new transaction. (datasets.beginTransaction) - * - * @param string $datasetId Identifies the dataset. - * @param Google_BeginTransactionRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_BeginTransactionResponse - */ - public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse"); - } - - /** - * Commit a transaction, optionally creating, deleting or modifying some - * entities. (datasets.commit) - * - * @param string $datasetId Identifies the dataset. - * @param Google_CommitRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_CommitResponse - */ - public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse"); - } - - /** - * Look up some entities by key. (datasets.lookup) - * - * @param string $datasetId Identifies the dataset. - * @param Google_LookupRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_LookupResponse - */ - public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse"); - } - - /** - * Roll back a transaction. (datasets.rollback) - * - * @param string $datasetId Identifies the dataset. - * @param Google_RollbackRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_RollbackResponse - */ - public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse"); - } - - /** - * Query for entities. (datasets.runQuery) - * - * @param string $datasetId Identifies the dataset. - * @param Google_RunQueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_RunQueryResponse - */ - public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse"); - } -} - - - - -class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; - - - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Datastore_BeginTransactionRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isolationLevel; - - - public function setIsolationLevel($isolationLevel) - { - $this->isolationLevel = $isolationLevel; - } - public function getIsolationLevel() - { - return $this->isolationLevel; - } -} - -class Google_Service_Datastore_BeginTransactionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - public $transaction; - - - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } - public function getTransaction() - { - return $this->transaction; - } -} - -class Google_Service_Datastore_CommitRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ignoreReadOnly; - public $mode; - protected $mutationType = 'Google_Service_Datastore_Mutation'; - protected $mutationDataType = ''; - public $transaction; - - - public function setIgnoreReadOnly($ignoreReadOnly) - { - $this->ignoreReadOnly = $ignoreReadOnly; - } - public function getIgnoreReadOnly() - { - return $this->ignoreReadOnly; - } - public function setMode($mode) - { - $this->mode = $mode; - } - public function getMode() - { - return $this->mode; - } - public function setMutation(Google_Service_Datastore_Mutation $mutation) - { - $this->mutation = $mutation; - } - public function getMutation() - { - return $this->mutation; - } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } - public function getTransaction() - { - return $this->transaction; - } -} - -class Google_Service_Datastore_CommitResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $mutationResultType = 'Google_Service_Datastore_MutationResult'; - protected $mutationResultDataType = ''; - - - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } - public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult) - { - $this->mutationResult = $mutationResult; - } - public function getMutationResult() - { - return $this->mutationResult; - } -} - -class Google_Service_Datastore_CompositeFilter extends Google_Collection -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_Datastore_Filter'; - protected $filtersDataType = 'array'; - public $operator; - - - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } -} - -class Google_Service_Datastore_Entity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $keyType = 'Google_Service_Datastore_Key'; - protected $keyDataType = ''; - protected $propertiesType = 'Google_Service_Datastore_Property'; - protected $propertiesDataType = 'map'; - - - public function setKey(Google_Service_Datastore_Key $key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } -} - -class Google_Service_Datastore_EntityResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $entityType = 'Google_Service_Datastore_Entity'; - protected $entityDataType = ''; - - - public function setEntity(Google_Service_Datastore_Entity $entity) - { - $this->entity = $entity; - } - public function getEntity() - { - return $this->entity; - } -} - -class Google_Service_Datastore_Filter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter'; - protected $compositeFilterDataType = ''; - protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter'; - protected $propertyFilterDataType = ''; - - - public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter) - { - $this->compositeFilter = $compositeFilter; - } - public function getCompositeFilter() - { - return $this->compositeFilter; - } - public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter) - { - $this->propertyFilter = $propertyFilter; - } - public function getPropertyFilter() - { - return $this->propertyFilter; - } -} - -class Google_Service_Datastore_GqlQuery extends Google_Collection -{ - protected $collection_key = 'numberArgs'; - protected $internal_gapi_mappings = array( - ); - public $allowLiteral; - protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg'; - protected $nameArgsDataType = 'array'; - protected $numberArgsType = 'Google_Service_Datastore_GqlQueryArg'; - protected $numberArgsDataType = 'array'; - public $queryString; - - - public function setAllowLiteral($allowLiteral) - { - $this->allowLiteral = $allowLiteral; - } - public function getAllowLiteral() - { - return $this->allowLiteral; - } - public function setNameArgs($nameArgs) - { - $this->nameArgs = $nameArgs; - } - public function getNameArgs() - { - return $this->nameArgs; - } - public function setNumberArgs($numberArgs) - { - $this->numberArgs = $numberArgs; - } - public function getNumberArgs() - { - return $this->numberArgs; - } - public function setQueryString($queryString) - { - $this->queryString = $queryString; - } - public function getQueryString() - { - return $this->queryString; - } -} - -class Google_Service_Datastore_GqlQueryArg extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cursor; - public $name; - protected $valueType = 'Google_Service_Datastore_Value'; - protected $valueDataType = ''; - - - public function setCursor($cursor) - { - $this->cursor = $cursor; - } - public function getCursor() - { - return $this->cursor; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setValue(Google_Service_Datastore_Value $value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Datastore_Key extends Google_Collection -{ - protected $collection_key = 'path'; - protected $internal_gapi_mappings = array( - ); - protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; - protected $partitionIdDataType = ''; - protected $pathType = 'Google_Service_Datastore_KeyPathElement'; - protected $pathDataType = 'array'; - - - public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) - { - $this->partitionId = $partitionId; - } - public function getPartitionId() - { - return $this->partitionId; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Datastore_KeyPathElement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Datastore_KindExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Datastore_LookupRequest extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; - protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; - protected $readOptionsDataType = ''; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) - { - $this->readOptions = $readOptions; - } - public function getReadOptions() - { - return $this->readOptions; - } -} - -class Google_Service_Datastore_LookupResponse extends Google_Collection -{ - protected $collection_key = 'missing'; - protected $internal_gapi_mappings = array( - ); - protected $deferredType = 'Google_Service_Datastore_Key'; - protected $deferredDataType = 'array'; - protected $foundType = 'Google_Service_Datastore_EntityResult'; - protected $foundDataType = 'array'; - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $missingType = 'Google_Service_Datastore_EntityResult'; - protected $missingDataType = 'array'; - - - public function setDeferred($deferred) - { - $this->deferred = $deferred; - } - public function getDeferred() - { - return $this->deferred; - } - public function setFound($found) - { - $this->found = $found; - } - public function getFound() - { - return $this->found; - } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } - public function setMissing($missing) - { - $this->missing = $missing; - } - public function getMissing() - { - return $this->missing; - } -} - -class Google_Service_Datastore_Mutation extends Google_Collection -{ - protected $collection_key = 'upsert'; - protected $internal_gapi_mappings = array( - ); - protected $deleteType = 'Google_Service_Datastore_Key'; - protected $deleteDataType = 'array'; - public $force; - protected $insertType = 'Google_Service_Datastore_Entity'; - protected $insertDataType = 'array'; - protected $insertAutoIdType = 'Google_Service_Datastore_Entity'; - protected $insertAutoIdDataType = 'array'; - protected $updateType = 'Google_Service_Datastore_Entity'; - protected $updateDataType = 'array'; - protected $upsertType = 'Google_Service_Datastore_Entity'; - protected $upsertDataType = 'array'; - - - public function setDelete($delete) - { - $this->delete = $delete; - } - public function getDelete() - { - return $this->delete; - } - public function setForce($force) - { - $this->force = $force; - } - public function getForce() - { - return $this->force; - } - public function setInsert($insert) - { - $this->insert = $insert; - } - public function getInsert() - { - return $this->insert; - } - public function setInsertAutoId($insertAutoId) - { - $this->insertAutoId = $insertAutoId; - } - public function getInsertAutoId() - { - return $this->insertAutoId; - } - public function setUpdate($update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } - public function setUpsert($upsert) - { - $this->upsert = $upsert; - } - public function getUpsert() - { - return $this->upsert; - } -} - -class Google_Service_Datastore_MutationResult extends Google_Collection -{ - protected $collection_key = 'insertAutoIdKeys'; - protected $internal_gapi_mappings = array( - ); - public $indexUpdates; - protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; - protected $insertAutoIdKeysDataType = 'array'; - - - public function setIndexUpdates($indexUpdates) - { - $this->indexUpdates = $indexUpdates; - } - public function getIndexUpdates() - { - return $this->indexUpdates; - } - public function setInsertAutoIdKeys($insertAutoIdKeys) - { - $this->insertAutoIdKeys = $insertAutoIdKeys; - } - public function getInsertAutoIdKeys() - { - return $this->insertAutoIdKeys; - } -} - -class Google_Service_Datastore_PartitionId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $namespace; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setNamespace($namespace) - { - $this->namespace = $namespace; - } - public function getNamespace() - { - return $this->namespace; - } -} - -class Google_Service_Datastore_Property extends Google_Collection -{ - protected $collection_key = 'listValue'; - protected $internal_gapi_mappings = array( - ); - public $blobKeyValue; - public $blobValue; - public $booleanValue; - public $dateTimeValue; - public $doubleValue; - protected $entityValueType = 'Google_Service_Datastore_Entity'; - protected $entityValueDataType = ''; - public $indexed; - public $integerValue; - protected $keyValueType = 'Google_Service_Datastore_Key'; - protected $keyValueDataType = ''; - protected $listValueType = 'Google_Service_Datastore_Value'; - protected $listValueDataType = 'array'; - public $meaning; - public $stringValue; - - - public function setBlobKeyValue($blobKeyValue) - { - $this->blobKeyValue = $blobKeyValue; - } - public function getBlobKeyValue() - { - return $this->blobKeyValue; - } - public function setBlobValue($blobValue) - { - $this->blobValue = $blobValue; - } - public function getBlobValue() - { - return $this->blobValue; - } - public function setBooleanValue($booleanValue) - { - $this->booleanValue = $booleanValue; - } - public function getBooleanValue() - { - return $this->booleanValue; - } - public function setDateTimeValue($dateTimeValue) - { - $this->dateTimeValue = $dateTimeValue; - } - public function getDateTimeValue() - { - return $this->dateTimeValue; - } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } - public function getDoubleValue() - { - return $this->doubleValue; - } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) - { - $this->entityValue = $entityValue; - } - public function getEntityValue() - { - return $this->entityValue; - } - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } - public function getIndexed() - { - return $this->indexed; - } - public function setIntegerValue($integerValue) - { - $this->integerValue = $integerValue; - } - public function getIntegerValue() - { - return $this->integerValue; - } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) - { - $this->keyValue = $keyValue; - } - public function getKeyValue() - { - return $this->keyValue; - } - public function setListValue($listValue) - { - $this->listValue = $listValue; - } - public function getListValue() - { - return $this->listValue; - } - public function setMeaning($meaning) - { - $this->meaning = $meaning; - } - public function getMeaning() - { - return $this->meaning; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } -} - -class Google_Service_Datastore_PropertyExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aggregationFunction; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; - - - public function setAggregationFunction($aggregationFunction) - { - $this->aggregationFunction = $aggregationFunction; - } - public function getAggregationFunction() - { - return $this->aggregationFunction; - } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } - public function getProperty() - { - return $this->property; - } -} - -class Google_Service_Datastore_PropertyFilter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operator; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; - protected $valueType = 'Google_Service_Datastore_Value'; - protected $valueDataType = ''; - - - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } - public function getProperty() - { - return $this->property; - } - public function setValue(Google_Service_Datastore_Value $value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Datastore_PropertyOrder extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $direction; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; - - - public function setDirection($direction) - { - $this->direction = $direction; - } - public function getDirection() - { - return $this->direction; - } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } - public function getProperty() - { - return $this->property; - } -} - -class Google_Service_Datastore_PropertyReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Datastore_Query extends Google_Collection -{ - protected $collection_key = 'projection'; - protected $internal_gapi_mappings = array( - ); - public $endCursor; - protected $filterType = 'Google_Service_Datastore_Filter'; - protected $filterDataType = ''; - protected $groupByType = 'Google_Service_Datastore_PropertyReference'; - protected $groupByDataType = 'array'; - protected $kindsType = 'Google_Service_Datastore_KindExpression'; - protected $kindsDataType = 'array'; - public $limit; - public $offset; - protected $orderType = 'Google_Service_Datastore_PropertyOrder'; - protected $orderDataType = 'array'; - protected $projectionType = 'Google_Service_Datastore_PropertyExpression'; - protected $projectionDataType = 'array'; - public $startCursor; - - - public function setEndCursor($endCursor) - { - $this->endCursor = $endCursor; - } - public function getEndCursor() - { - return $this->endCursor; - } - public function setFilter(Google_Service_Datastore_Filter $filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setGroupBy($groupBy) - { - $this->groupBy = $groupBy; - } - public function getGroupBy() - { - return $this->groupBy; - } - public function setKinds($kinds) - { - $this->kinds = $kinds; - } - public function getKinds() - { - return $this->kinds; - } - public function setLimit($limit) - { - $this->limit = $limit; - } - public function getLimit() - { - return $this->limit; - } - public function setOffset($offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setOrder($order) - { - $this->order = $order; - } - public function getOrder() - { - return $this->order; - } - public function setProjection($projection) - { - $this->projection = $projection; - } - public function getProjection() - { - return $this->projection; - } - public function setStartCursor($startCursor) - { - $this->startCursor = $startCursor; - } - public function getStartCursor() - { - return $this->startCursor; - } -} - -class Google_Service_Datastore_QueryResultBatch extends Google_Collection -{ - protected $collection_key = 'entityResults'; - protected $internal_gapi_mappings = array( - ); - public $endCursor; - public $entityResultType; - protected $entityResultsType = 'Google_Service_Datastore_EntityResult'; - protected $entityResultsDataType = 'array'; - public $moreResults; - public $skippedResults; - - - public function setEndCursor($endCursor) - { - $this->endCursor = $endCursor; - } - public function getEndCursor() - { - return $this->endCursor; - } - public function setEntityResultType($entityResultType) - { - $this->entityResultType = $entityResultType; - } - public function getEntityResultType() - { - return $this->entityResultType; - } - public function setEntityResults($entityResults) - { - $this->entityResults = $entityResults; - } - public function getEntityResults() - { - return $this->entityResults; - } - public function setMoreResults($moreResults) - { - $this->moreResults = $moreResults; - } - public function getMoreResults() - { - return $this->moreResults; - } - public function setSkippedResults($skippedResults) - { - $this->skippedResults = $skippedResults; - } - public function getSkippedResults() - { - return $this->skippedResults; - } -} - -class Google_Service_Datastore_ReadOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $readConsistency; - public $transaction; - - - public function setReadConsistency($readConsistency) - { - $this->readConsistency = $readConsistency; - } - public function getReadConsistency() - { - return $this->readConsistency; - } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } - public function getTransaction() - { - return $this->transaction; - } -} - -class Google_Service_Datastore_ResponseHeader extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Datastore_RollbackRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $transaction; - - - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } - public function getTransaction() - { - return $this->transaction; - } -} - -class Google_Service_Datastore_RollbackResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - - - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } -} - -class Google_Service_Datastore_RunQueryRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery'; - protected $gqlQueryDataType = ''; - protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; - protected $partitionIdDataType = ''; - protected $queryType = 'Google_Service_Datastore_Query'; - protected $queryDataType = ''; - protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; - protected $readOptionsDataType = ''; - - - public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery) - { - $this->gqlQuery = $gqlQuery; - } - public function getGqlQuery() - { - return $this->gqlQuery; - } - public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) - { - $this->partitionId = $partitionId; - } - public function getPartitionId() - { - return $this->partitionId; - } - public function setQuery(Google_Service_Datastore_Query $query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) - { - $this->readOptions = $readOptions; - } - public function getReadOptions() - { - return $this->readOptions; - } -} - -class Google_Service_Datastore_RunQueryResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $batchType = 'Google_Service_Datastore_QueryResultBatch'; - protected $batchDataType = ''; - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - - - public function setBatch(Google_Service_Datastore_QueryResultBatch $batch) - { - $this->batch = $batch; - } - public function getBatch() - { - return $this->batch; - } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } - public function getHeader() - { - return $this->header; - } -} - -class Google_Service_Datastore_Value extends Google_Collection -{ - protected $collection_key = 'listValue'; - protected $internal_gapi_mappings = array( - ); - public $blobKeyValue; - public $blobValue; - public $booleanValue; - public $dateTimeValue; - public $doubleValue; - protected $entityValueType = 'Google_Service_Datastore_Entity'; - protected $entityValueDataType = ''; - public $indexed; - public $integerValue; - protected $keyValueType = 'Google_Service_Datastore_Key'; - protected $keyValueDataType = ''; - protected $listValueType = 'Google_Service_Datastore_Value'; - protected $listValueDataType = 'array'; - public $meaning; - public $stringValue; - - - public function setBlobKeyValue($blobKeyValue) - { - $this->blobKeyValue = $blobKeyValue; - } - public function getBlobKeyValue() - { - return $this->blobKeyValue; - } - public function setBlobValue($blobValue) - { - $this->blobValue = $blobValue; - } - public function getBlobValue() - { - return $this->blobValue; - } - public function setBooleanValue($booleanValue) - { - $this->booleanValue = $booleanValue; - } - public function getBooleanValue() - { - return $this->booleanValue; - } - public function setDateTimeValue($dateTimeValue) - { - $this->dateTimeValue = $dateTimeValue; - } - public function getDateTimeValue() - { - return $this->dateTimeValue; - } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } - public function getDoubleValue() - { - return $this->doubleValue; - } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) - { - $this->entityValue = $entityValue; - } - public function getEntityValue() - { - return $this->entityValue; - } - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } - public function getIndexed() - { - return $this->indexed; - } - public function setIntegerValue($integerValue) - { - $this->integerValue = $integerValue; - } - public function getIntegerValue() - { - return $this->integerValue; - } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) - { - $this->keyValue = $keyValue; - } - public function getKeyValue() - { - return $this->keyValue; - } - public function setListValue($listValue) - { - $this->listValue = $listValue; - } - public function getListValue() - { - return $this->listValue; - } - public function setMeaning($meaning) - { - $this->meaning = $meaning; - } - public function getMeaning() - { - return $this->meaning; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } -} diff --git a/src/Google/Service/DeploymentManager.php b/src/Google/Service/DeploymentManager.php deleted file mode 100644 index 570657a06..000000000 --- a/src/Google/Service/DeploymentManager.php +++ /dev/null @@ -1,2182 +0,0 @@ - - * The Deployment Manager API allows users to declaratively configure, deploy - * and run complex solutions on the Google Cloud Platform.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_DeploymentManager extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $deployments; - public $manifests; - public $operations; - public $resources; - public $types; - - - /** - * Constructs the internal representation of the DeploymentManager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'deploymentmanager/v2/projects/'; - $this->version = 'v2'; - $this->serviceName = 'deploymentmanager'; - - $this->deployments = new Google_Service_DeploymentManager_Deployments_Resource( - $this, - $this->serviceName, - 'deployments', - array( - 'methods' => array( - 'cancelPreview' => array( - 'path' => '{project}/global/deployments/{deployment}/cancelPreview', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'preview' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'createPolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'deletePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'preview' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'stop' => array( - 'path' => '{project}/global/deployments/{deployment}/stop', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/deployments/{deployment}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'createPolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'deletePolicy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'preview' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->manifests = new Google_Service_DeploymentManager_Manifests_Resource( - $this, - $this->serviceName, - 'manifests', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'manifest' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/manifests', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_DeploymentManager_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->resources = new Google_Service_DeploymentManager_Resources_Resource( - $this, - $this->serviceName, - 'resources', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/deployments/{deployment}/resources/{resource}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/deployments/{deployment}/resources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deployment' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->types = new Google_Service_DeploymentManager_Types_Resource( - $this, - $this->serviceName, - 'types', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/global/types', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "deployments" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $deployments = $deploymentmanagerService->deployments; - * - */ -class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource -{ - - /** - * Cancels and removes the preview currently associated with the deployment. - * (deployments.cancelPreview) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_DeploymentsCancelPreviewRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function cancelPreview($project, $deployment, Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancelPreview', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Deletes a deployment and all of the resources in the deployment. - * (deployments.delete) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function delete($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Gets information about a specific deployment. (deployments.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Deployment - */ - public function get($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment"); - } - - /** - * Creates a deployment and all of the resources described by the deployment - * manifest. (deployments.insert) - * - * @param string $project The project ID for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool preview If set to true, creates a deployment and creates - * "shell" resources but does not actually instantiate these resources. This - * allows you to preview what your deployment looks like. After previewing a - * deployment, you can deploy your resources by making a request with the - * update() method or you can use the cancelPreview() method to cancel the - * preview altogether. Note that the deployment will still exist after you - * cancel the preview and you must separately delete this deployment if you want - * to remove it. - * @return Google_Service_DeploymentManager_Operation - */ - public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Lists all deployments for a given project. (deployments.listDeployments) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances whose name is not equal to example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_DeploymentManager_DeploymentsListResponse - */ - public function listDeployments($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse"); - } - - /** - * Updates a deployment and all of the resources described by the deployment - * manifest. This method supports patch semantics. (deployments.patch) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param bool preview If set to true, updates the deployment and creates - * and updates the "shell" resources but does not actually alter or instantiate - * these resources. This allows you to preview what your deployment will look - * like. You can use this intent to preview how an update would affect your - * deployment. You must provide a target.config with a configuration if this is - * set to true. After previewing a deployment, you can deploy your resources by - * making a request with the update() or you can cancelPreview() to remove the - * preview altogether. Note that the deployment will still exist after you - * cancel the preview and you must separately delete this deployment if you want - * to remove it. - * @return Google_Service_DeploymentManager_Operation - */ - public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Stops an ongoing operation. This does not roll back any work that has already - * been completed, but prevents any new work from being started. - * (deployments.stop) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_DeploymentsStopRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function stop($project, $deployment, Google_Service_DeploymentManager_DeploymentsStopRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Updates a deployment and all of the resources described by the deployment - * manifest. (deployments.update) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string createPolicy Sets the policy to use for creating new - * resources. - * @opt_param string deletePolicy Sets the policy to use for deleting resources. - * @opt_param bool preview If set to true, updates the deployment and creates - * and updates the "shell" resources but does not actually alter or instantiate - * these resources. This allows you to preview what your deployment will look - * like. You can use this intent to preview how an update would affect your - * deployment. You must provide a target.config with a configuration if this is - * set to true. After previewing a deployment, you can deploy your resources by - * making a request with the update() or you can cancelPreview() to remove the - * preview altogether. Note that the deployment will still exist after you - * cancel the preview and you must separately delete this deployment if you want - * to remove it. - * @return Google_Service_DeploymentManager_Operation - */ - public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation"); - } -} - -/** - * The "manifests" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $manifests = $deploymentmanagerService->manifests; - * - */ -class Google_Service_DeploymentManager_Manifests_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a specific manifest. (manifests.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $manifest The name of the manifest for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Manifest - */ - public function get($project, $deployment, $manifest, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest"); - } - - /** - * Lists all manifests for a given deployment. (manifests.listManifests) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances whose name is not equal to example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_DeploymentManager_ManifestsListResponse - */ - public function listManifests($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $operations = $deploymentmanagerService->operations; - * - */ -class Google_Service_DeploymentManager_Operations_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a specific operation. (operations.get) - * - * @param string $project The project ID for this request. - * @param string $operation The name of the operation for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation"); - } - - /** - * Lists all operations for a project. (operations.listOperations) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances whose name is not equal to example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_DeploymentManager_OperationsListResponse - */ - public function listOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse"); - } -} - -/** - * The "resources" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $resources = $deploymentmanagerService->resources; - * - */ -class Google_Service_DeploymentManager_Resources_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a single resource. (resources.get) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param string $resource The name of the resource for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_DeploymentManager_DeploymentmanagerResource - */ - public function get($project, $deployment, $resource, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource"); - } - - /** - * Lists all resources in a given deployment. (resources.listResources) - * - * @param string $project The project ID for this request. - * @param string $deployment The name of the deployment for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances whose name is not equal to example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_DeploymentManager_ResourcesListResponse - */ - public function listResources($project, $deployment, $optParams = array()) - { - $params = array('project' => $project, 'deployment' => $deployment); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse"); - } -} - -/** - * The "types" collection of methods. - * Typical usage is: - * - * $deploymentmanagerService = new Google_Service_DeploymentManager(...); - * $types = $deploymentmanagerService->types; - * - */ -class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Resource -{ - - /** - * Lists all resource types for Deployment Manager. (types.listTypes) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances whose name is not equal to example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_DeploymentManager_TypesListResponse - */ - public function listTypes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse"); - } -} - - - - -class Google_Service_DeploymentManager_ConfigFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } -} - -class Google_Service_DeploymentManager_Deployment extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $fingerprint; - public $id; - public $insertTime; - protected $labelsType = 'Google_Service_DeploymentManager_DeploymentLabelEntry'; - protected $labelsDataType = 'array'; - public $manifest; - public $name; - protected $operationType = 'Google_Service_DeploymentManager_Operation'; - protected $operationDataType = ''; - protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration'; - protected $targetDataType = ''; - protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; - protected $updateDataType = ''; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function 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 setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperation(Google_Service_DeploymentManager_Operation $operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target) - { - $this->target = $target; - } - public function getTarget() - { - return $this->target; - } - public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } -} - -class Google_Service_DeploymentManager_DeploymentLabelEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_DeploymentUpdate extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - protected $labelsType = 'Google_Service_DeploymentManager_DeploymentUpdateLabelEntry'; - protected $labelsDataType = 'array'; - public $manifest; - - - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } -} - -class Google_Service_DeploymentManager_DeploymentUpdateLabelEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_DeploymentmanagerResource extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $finalProperties; - public $id; - public $insertTime; - public $manifest; - public $name; - public $properties; - public $type; - protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate'; - protected $updateDataType = ''; - public $updateTime; - public $url; - protected $warningsType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings'; - protected $warningsDataType = 'array'; - - - public function setFinalProperties($finalProperties) - { - $this->finalProperties = $finalProperties; - } - public function getFinalProperties() - { - return $this->finalProperties; - } - 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 setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } - public function setUpdateTime($updateTime) - { - $this->updateTime = $updateTime; - } - public function getUpdateTime() - { - return $this->updateTime; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_DeploymentsCancelPreviewRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } -} - -class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection -{ - protected $collection_key = 'deployments'; - protected $internal_gapi_mappings = array( - ); - protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment'; - protected $deploymentsDataType = 'array'; - public $nextPageToken; - - - public function setDeployments($deployments) - { - $this->deployments = $deployments; - } - public function getDeployments() - { - return $this->deployments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_DeploymentManager_DeploymentsStopRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } -} - -class Google_Service_DeploymentManager_ImportFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - public $name; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_DeploymentManager_Manifest extends Google_Collection -{ - protected $collection_key = 'imports'; - protected $internal_gapi_mappings = array( - ); - protected $configType = 'Google_Service_DeploymentManager_ConfigFile'; - protected $configDataType = ''; - public $expandedConfig; - public $id; - protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; - protected $importsDataType = 'array'; - public $insertTime; - public $layout; - public $name; - public $selfLink; - - - public function setConfig(Google_Service_DeploymentManager_ConfigFile $config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setExpandedConfig($expandedConfig) - { - $this->expandedConfig = $expandedConfig; - } - public function getExpandedConfig() - { - return $this->expandedConfig; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImports($imports) - { - $this->imports = $imports; - } - public function getImports() - { - return $this->imports; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setLayout($layout) - { - $this->layout = $layout; - } - public function getLayout() - { - return $this->layout; - } - 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_DeploymentManager_ManifestsListResponse extends Google_Collection -{ - protected $collection_key = 'manifests'; - protected $internal_gapi_mappings = array( - ); - protected $manifestsType = 'Google_Service_DeploymentManager_Manifest'; - protected $manifestsDataType = 'array'; - public $nextPageToken; - - - public function setManifests($manifests) - { - $this->manifests = $manifests; - } - public function getManifests() - { - return $this->manifests; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_DeploymentManager_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $description; - public $endTime; - protected $errorType = 'Google_Service_DeploymentManager_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function 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 setError(Google_Service_DeploymentManager_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_DeploymentManager_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_DeploymentManager_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - protected $errorType = 'Google_Service_DeploymentManager_ResourceUpdateError'; - protected $errorDataType = ''; - public $finalProperties; - public $intent; - public $manifest; - public $properties; - public $state; - protected $warningsType = 'Google_Service_DeploymentManager_ResourceUpdateWarnings'; - protected $warningsDataType = 'array'; - - - public function setError(Google_Service_DeploymentManager_ResourceUpdateError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setFinalProperties($finalProperties) - { - $this->finalProperties = $finalProperties; - } - public function getFinalProperties() - { - return $this->finalProperties; - } - public function setIntent($intent) - { - $this->intent = $intent; - } - public function getIntent() - { - return $this->intent; - } - public function setManifest($manifest) - { - $this->manifest = $manifest; - } - public function getManifest() - { - return $this->manifest; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_DeploymentManager_ResourceUpdateError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_DeploymentManager_ResourceUpdateErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_DeploymentManager_ResourceUpdateErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_ResourceUpdateWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_DeploymentManager_ResourceUpdateWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_DeploymentManager_ResourceUpdateWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DeploymentManager_ResourcesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource'; - protected $resourcesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection -{ - protected $collection_key = 'imports'; - protected $internal_gapi_mappings = array( - ); - protected $configType = 'Google_Service_DeploymentManager_ConfigFile'; - protected $configDataType = ''; - protected $importsType = 'Google_Service_DeploymentManager_ImportFile'; - protected $importsDataType = 'array'; - - - public function setConfig(Google_Service_DeploymentManager_ConfigFile $config) - { - $this->config = $config; - } - public function getConfig() - { - return $this->config; - } - public function setImports($imports) - { - $this->imports = $imports; - } - public function getImports() - { - return $this->imports; - } -} - -class Google_Service_DeploymentManager_Type extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $insertTime; - public $name; - public $selfLink; - - - 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 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_DeploymentManager_TypesListResponse extends Google_Collection -{ - protected $collection_key = 'types'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $typesType = 'Google_Service_DeploymentManager_Type'; - protected $typesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTypes($types) - { - $this->types = $types; - } - public function getTypes() - { - return $this->types; - } -} diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php deleted file mode 100644 index a63ba0c8b..000000000 --- a/src/Google/Service/Dfareporting.php +++ /dev/null @@ -1,21522 +0,0 @@ - - * Manage your DoubleClick Campaign Manager ad campaigns and reports.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Dfareporting extends Google_Service -{ - /** View and manage DoubleClick for Advertisers reports. */ - const DFAREPORTING = - "https://www.googleapis.com/auth/dfareporting"; - /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */ - const DFATRAFFICKING = - "https://www.googleapis.com/auth/dfatrafficking"; - - public $accountActiveAdSummaries; - public $accountPermissionGroups; - public $accountPermissions; - public $accountUserProfiles; - public $accounts; - public $ads; - public $advertiserGroups; - public $advertisers; - public $browsers; - public $campaignCreativeAssociations; - public $campaigns; - public $changeLogs; - public $cities; - public $connectionTypes; - public $contentCategories; - public $countries; - public $creativeAssets; - public $creativeFieldValues; - public $creativeFields; - public $creativeGroups; - public $creatives; - public $dimensionValues; - public $directorySiteContacts; - public $directorySites; - public $eventTags; - public $files; - public $floodlightActivities; - public $floodlightActivityGroups; - public $floodlightConfigurations; - public $inventoryItems; - public $landingPages; - public $metros; - public $mobileCarriers; - public $operatingSystemVersions; - public $operatingSystems; - public $orderDocuments; - public $orders; - public $placementGroups; - public $placementStrategies; - public $placements; - public $platformTypes; - public $postalCodes; - public $projects; - public $regions; - public $remarketingListShares; - public $remarketingLists; - public $reports; - public $reports_compatibleFields; - public $reports_files; - public $sites; - public $sizes; - public $subaccounts; - public $targetableRemarketingLists; - public $userProfiles; - public $userRolePermissionGroups; - public $userRolePermissions; - public $userRoles; - - - /** - * Constructs the internal representation of the Dfareporting service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'dfareporting/v2.4/'; - $this->version = 'v2.4'; - $this->serviceName = 'dfareporting'; - - $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( - $this, - $this->serviceName, - 'accountActiveAdSummaries', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'summaryAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountPermissionGroups = new Google_Service_Dfareporting_AccountPermissionGroups_Resource( - $this, - $this->serviceName, - 'accountPermissionGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountPermissionGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountPermissions = new Google_Service_Dfareporting_AccountPermissions_Resource( - $this, - $this->serviceName, - 'accountPermissions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountPermissions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountPermissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountUserProfiles = new Google_Service_Dfareporting_AccountUserProfiles_Resource( - $this, - $this->serviceName, - 'accountUserProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userRoleId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/accountUserProfiles', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts = new Google_Service_Dfareporting_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/accounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/accounts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->ads = new Google_Service_Dfareporting_Ads_Resource( - $this, - $this->serviceName, - 'ads', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/ads/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'audienceSegmentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'compatibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creativeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'creativeOptimizationConfigurationIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'creativeType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dynamicClickTracker' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'landingPageIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'overriddenEventTagId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'remarketingListIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sslCompliant' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sslRequired' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/ads', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->advertiserGroups = new Google_Service_Dfareporting_AdvertiserGroups_Resource( - $this, - $this->serviceName, - 'advertiserGroups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/advertiserGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->advertisers = new Google_Service_Dfareporting_Advertisers_Resource( - $this, - $this->serviceName, - 'advertisers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/advertisers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'floodlightConfigurationIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'includeAdvertisersWithoutGroupsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'onlyParent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/advertisers', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->browsers = new Google_Service_Dfareporting_Browsers_Resource( - $this, - $this->serviceName, - 'browsers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/browsers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->campaignCreativeAssociations = new Google_Service_Dfareporting_CampaignCreativeAssociations_Resource( - $this, - $this->serviceName, - 'campaignCreativeAssociations', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->campaigns = new Google_Service_Dfareporting_Campaigns_Resource( - $this, - $this->serviceName, - 'campaigns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'defaultLandingPageName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'defaultLandingPageUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'atLeastOneOptimizationActivity' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'excludedIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'overriddenEventTagId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/campaigns', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->changeLogs = new Google_Service_Dfareporting_ChangeLogs_Resource( - $this, - $this->serviceName, - 'changeLogs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/changeLogs/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/changeLogs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'action' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxChangeTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'minChangeTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'objectIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'objectType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProfileIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->cities = new Google_Service_Dfareporting_Cities_Resource( - $this, - $this->serviceName, - 'cities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/cities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'countryDartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'dartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'namePrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionDartIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->connectionTypes = new Google_Service_Dfareporting_ConnectionTypes_Resource( - $this, - $this->serviceName, - 'connectionTypes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/connectionTypes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/connectionTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->contentCategories = new Google_Service_Dfareporting_ContentCategories_Resource( - $this, - $this->serviceName, - 'contentCategories', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/contentCategories/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/contentCategories/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/contentCategories', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->countries = new Google_Service_Dfareporting_Countries_Resource( - $this, - $this->serviceName, - 'countries', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/countries/{dartId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dartId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/countries', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeAssets = new Google_Service_Dfareporting_CreativeAssets_Resource( - $this, - $this->serviceName, - 'creativeAssets', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeFieldValues = new Google_Service_Dfareporting_CreativeFieldValues_Resource( - $this, - $this->serviceName, - 'creativeFieldValues', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'creativeFieldId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeFields = new Google_Service_Dfareporting_CreativeFields_Resource( - $this, - $this->serviceName, - 'creativeFields', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/creativeFields/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeFields', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creativeGroups = new Google_Service_Dfareporting_CreativeGroups_Resource( - $this, - $this->serviceName, - 'creativeGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'groupNumber' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creativeGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->creatives = new Google_Service_Dfareporting_Creatives_Resource( - $this, - $this->serviceName, - 'creatives', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/creatives/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'companionCreativeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'creativeFieldIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'renderingIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'studioCreativeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'types' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/creatives', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( - $this, - $this->serviceName, - 'dimensionValues', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/dimensionvalues/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->directorySiteContacts = new Google_Service_Dfareporting_DirectorySiteContacts_Resource( - $this, - $this->serviceName, - 'directorySiteContacts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->directorySites = new Google_Service_Dfareporting_DirectorySites_Resource( - $this, - $this->serviceName, - 'directorySites', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/directorySites/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/directorySites', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/directorySites', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acceptsInStreamVideoPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'acceptsInterstitialPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'acceptsPublisherPaidPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'countryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dfp_network_code' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->eventTags = new Google_Service_Dfareporting_EventTags_Resource( - $this, - $this->serviceName, - 'eventTags', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/eventTags/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/eventTags/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'definitionsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'enabled' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'eventTagTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/eventTags', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->files = new Google_Service_Dfareporting_Files_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->floodlightActivities = new Google_Service_Dfareporting_FloodlightActivities_Resource( - $this, - $this->serviceName, - 'floodlightActivities', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'generatetag' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'floodlightActivityId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightActivityGroupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'floodlightActivityGroupName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightActivityGroupTagString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightActivityGroupType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightConfigurationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tagString' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivities', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->floodlightActivityGroups = new Google_Service_Dfareporting_FloodlightActivityGroups_Resource( - $this, - $this->serviceName, - 'floodlightActivityGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'floodlightConfigurationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->floodlightConfigurations = new Google_Service_Dfareporting_FloodlightConfigurations_Resource( - $this, - $this->serviceName, - 'floodlightConfigurations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/floodlightConfigurations', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->inventoryItems = new Google_Service_Dfareporting_InventoryItems_Resource( - $this, - $this->serviceName, - 'inventoryItems', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'inPlan' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( - $this, - $this->serviceName, - 'landingPages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->metros = new Google_Service_Dfareporting_Metros_Resource( - $this, - $this->serviceName, - 'metros', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/metros', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->mobileCarriers = new Google_Service_Dfareporting_MobileCarriers_Resource( - $this, - $this->serviceName, - 'mobileCarriers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/mobileCarriers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operatingSystemVersions = new Google_Service_Dfareporting_OperatingSystemVersions_Resource( - $this, - $this->serviceName, - 'operatingSystemVersions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/operatingSystemVersions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operatingSystems = new Google_Service_Dfareporting_OperatingSystems_Resource( - $this, - $this->serviceName, - 'operatingSystems', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dartId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/operatingSystems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->orderDocuments = new Google_Service_Dfareporting_OrderDocuments_Resource( - $this, - $this->serviceName, - 'orderDocuments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'approved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->orders = new Google_Service_Dfareporting_Orders_Resource( - $this, - $this->serviceName, - 'orders', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( - $this, - $this->serviceName, - 'placementGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/placementGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'contentCategoryIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxEndDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxStartDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minEndDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minStartDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementGroupType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementStrategyIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pricingTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placementGroups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( - $this, - $this->serviceName, - 'placementStrategies', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placementStrategies', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->placements = new Google_Service_Dfareporting_Placements_Resource( - $this, - $this->serviceName, - 'placements', - array( - 'methods' => array( - 'generatetags' => array( - 'path' => 'userprofiles/{profileId}/placements/generatetags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'tagFormats' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/placements/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'archived' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'compatibilities' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'contentCategoryIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'groupIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxEndDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxStartDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minEndDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minStartDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'paymentSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placementStrategyIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pricingTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sizeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/placements', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->platformTypes = new Google_Service_Dfareporting_PlatformTypes_Resource( - $this, - $this->serviceName, - 'platformTypes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/platformTypes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/platformTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->postalCodes = new Google_Service_Dfareporting_PostalCodes_Resource( - $this, - $this->serviceName, - 'postalCodes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/postalCodes/{code}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'code' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/postalCodes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Dfareporting_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/projects/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->regions = new Google_Service_Dfareporting_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'userprofiles/{profileId}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->remarketingListShares = new Google_Service_Dfareporting_RemarketingListShares_Resource( - $this, - $this->serviceName, - 'remarketingListShares', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'remarketingListId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'remarketingListId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/remarketingListShares', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->remarketingLists = new Google_Service_Dfareporting_RemarketingLists_Resource( - $this, - $this->serviceName, - 'remarketingLists', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'floodlightActivityId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/remarketingLists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_Dfareporting_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'run' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'synchronous' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( - $this, - $this->serviceName, - 'compatibleFields', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sites = new Google_Service_Dfareporting_Sites_Resource( - $this, - $this->serviceName, - 'sites', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/sites/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acceptsInStreamVideoPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'acceptsInterstitialPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'acceptsPublisherPaidPlacements' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'adWordsSite' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'approved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'campaignIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'unmappedSite' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/sites', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sizes = new Google_Service_Dfareporting_Sizes_Resource( - $this, - $this->serviceName, - 'sizes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/sizes/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/sizes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/sizes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'height' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'iabStandard' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'width' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->subaccounts = new Google_Service_Dfareporting_Subaccounts_Resource( - $this, - $this->serviceName, - 'subaccounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/subaccounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/subaccounts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetableRemarketingLists = new Google_Service_Dfareporting_TargetableRemarketingLists_Resource( - $this, - $this->serviceName, - 'targetableRemarketingLists', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/targetableRemarketingLists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'active' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( - $this, - $this->serviceName, - 'userProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->userRolePermissionGroups = new Google_Service_Dfareporting_UserRolePermissionGroups_Resource( - $this, - $this->serviceName, - 'userRolePermissionGroups', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissionGroups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->userRolePermissions = new Google_Service_Dfareporting_UserRolePermissions_Resource( - $this, - $this->serviceName, - 'userRolePermissions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRolePermissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->userRoles = new Google_Service_Dfareporting_UserRoles_Resource( - $this, - $this->serviceName, - 'userRoles', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/userRoles/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/userRoles/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountUserRoleOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'subaccountId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/userRoles', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accountActiveAdSummaries" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries; - * - */ -class Google_Service_Dfareporting_AccountActiveAdSummaries_Resource extends Google_Service_Resource -{ - - /** - * Gets the account's active ad summary by account ID. - * (accountActiveAdSummaries.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $summaryAccountId Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountActiveAdSummary - */ - public function get($profileId, $summaryAccountId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary"); - } -} - -/** - * The "accountPermissionGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; - * - */ -class Google_Service_Dfareporting_AccountPermissionGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one account permission group by ID. (accountPermissionGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account permission group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup"); - } - - /** - * Retrieves the list of account permission groups. - * (accountPermissionGroups.listAccountPermissionGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse - */ - public function listAccountPermissionGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse"); - } -} - -/** - * The "accountPermissions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountPermissions = $dfareportingService->accountPermissions; - * - */ -class Google_Service_Dfareporting_AccountPermissions_Resource extends Google_Service_Resource -{ - - /** - * Gets one account permission by ID. (accountPermissions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account permission ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermission - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission"); - } - - /** - * Retrieves the list of account permissions. - * (accountPermissions.listAccountPermissions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountPermissionsListResponse - */ - public function listAccountPermissions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse"); - } -} - -/** - * The "accountUserProfiles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accountUserProfiles = $dfareportingService->accountUserProfiles; - * - */ -class Google_Service_Dfareporting_AccountUserProfiles_Resource extends Google_Service_Resource -{ - - /** - * Gets one account user profile by ID. (accountUserProfiles.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User profile ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Inserts a new account user profile. (accountUserProfiles.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Retrieves a list of account user profiles, possibly filtered. - * (accountUserProfiles.listAccountUserProfiles) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active user profiles. - * @opt_param string ids Select only user profiles with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "user profile*2015" will - * return objects with names like "user profile June 2015", "user profile April - * 2015", or simply "user profile 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "user profile" will match objects with name "my user - * profile", "user profile 2015", or simply "user profile". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string subaccountId Select only user profiles with the specified - * subaccount ID. - * @opt_param string userRoleId Select only user profiles with the specified - * user role ID. - * @return Google_Service_Dfareporting_AccountUserProfilesListResponse - */ - public function listAccountUserProfiles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse"); - } - - /** - * Updates an existing account user profile. This method supports patch - * semantics. (accountUserProfiles.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User profile ID. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } - - /** - * Updates an existing account user profile. (accountUserProfiles.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AccountUserProfile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AccountUserProfile - */ - public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile"); - } -} - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $accounts = $dfareportingService->accounts; - * - */ -class Google_Service_Dfareporting_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Gets one account by ID. (accounts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Account"); - } - - /** - * Retrieves the list of accounts, possibly filtered. (accounts.listAccounts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active accounts. Don't set this field to - * select both active and non-active accounts. - * @opt_param string ids Select only accounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "account*2015" will return objects - * with names like "account June 2015", "account April 2015", or simply "account - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "account" will - * match objects with name "my account", "account 2015", or simply "account". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_AccountsListResponse - */ - public function listAccounts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse"); - } - - /** - * Updates an existing account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Account ID. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Account"); - } - - /** - * Updates an existing account. (accounts.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Account - */ - public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Account"); - } -} - -/** - * The "ads" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $ads = $dfareportingService->ads; - * - */ -class Google_Service_Dfareporting_Ads_Resource extends Google_Service_Resource -{ - - /** - * Gets one ad by ID. (ads.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Ad ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Inserts a new ad. (ads.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Retrieves a list of ads, possibly filtered. (ads.listAds) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active ads. - * @opt_param string advertiserId Select only ads with this advertiser ID. - * @opt_param bool archived Select only archived ads. - * @opt_param string audienceSegmentIds Select only ads with these audience - * segment IDs. - * @opt_param string campaignIds Select only ads with these campaign IDs. - * @opt_param string compatibility Select default ads with the specified - * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile - * devices for regular or interstitial ads, respectively. APP and - * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to - * rendering an in-stream video ads developed with the VAST standard. - * @opt_param string creativeIds Select only ads with these creative IDs - * assigned. - * @opt_param string creativeOptimizationConfigurationIds Select only ads with - * these creative optimization configuration IDs. - * @opt_param string creativeType Select only ads with the specified - * creativeType. - * @opt_param bool dynamicClickTracker Select only dynamic click trackers. - * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic - * click trackers. If false, select static click trackers. Leave unset to select - * both. - * @opt_param string ids Select only ads with these IDs. - * @opt_param string landingPageIds Select only ads with these landing page IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string overriddenEventTagId Select only ads with this event tag - * override ID. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string placementIds Select only ads with these placement IDs - * assigned. - * @opt_param string remarketingListIds Select only ads whose list targeting - * expression use these remarketing list IDs. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "ad*2015" will return objects with - * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "ad" will match objects with name "my - * ad", "ad 2015", or simply "ad". - * @opt_param string sizeIds Select only ads with these size IDs. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param bool sslCompliant Select only ads that are SSL-compliant. - * @opt_param bool sslRequired Select only ads that require SSL. - * @opt_param string type Select only ads with these types. - * @return Google_Service_Dfareporting_AdsListResponse - */ - public function listAds($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse"); - } - - /** - * Updates an existing ad. This method supports patch semantics. (ads.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Ad ID. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad"); - } - - /** - * Updates an existing ad. (ads.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Ad $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Ad - */ - public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Ad"); - } -} - -/** - * The "advertiserGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $advertiserGroups = $dfareportingService->advertiserGroups; - * - */ -class Google_Service_Dfareporting_AdvertiserGroups_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing advertiser group. (advertiserGroups.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one advertiser group by ID. (advertiserGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Inserts a new advertiser group. (advertiserGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Retrieves a list of advertiser groups, possibly filtered. - * (advertiserGroups.listAdvertiserGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only advertiser groups with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser group June 2015", "advertiser group April 2015", - * or simply "advertiser group 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "advertisergroup" will match objects with name "my - * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse - */ - public function listAdvertiserGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse"); - } - - /** - * Updates an existing advertiser group. This method supports patch semantics. - * (advertiserGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser group ID. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } - - /** - * Updates an existing advertiser group. (advertiserGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_AdvertiserGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_AdvertiserGroup - */ - public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); - } -} - -/** - * The "advertisers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $advertisers = $dfareportingService->advertisers; - * - */ -class Google_Service_Dfareporting_Advertisers_Resource extends Google_Service_Resource -{ - - /** - * Gets one advertiser by ID. (advertisers.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Inserts a new advertiser. (advertisers.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Retrieves a list of advertisers, possibly filtered. - * (advertisers.listAdvertisers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserGroupIds Select only advertisers with these - * advertiser group IDs. - * @opt_param string floodlightConfigurationIds Select only advertisers with - * these floodlight configuration IDs. - * @opt_param string ids Select only advertisers with these IDs. - * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers - * which do not belong to any advertiser group. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param bool onlyParent Select only advertisers which use another - * advertiser's floodlight configuration. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects - * with names like "advertiser June 2015", "advertiser April 2015", or simply - * "advertiser 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "advertiser" will match objects with name "my advertiser", "advertiser 2015", - * or simply "advertiser". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string status Select only advertisers with the specified status. - * @opt_param string subaccountId Select only advertisers with these subaccount - * IDs. - * @return Google_Service_Dfareporting_AdvertisersListResponse - */ - public function listAdvertisers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse"); - } - - /** - * Updates an existing advertiser. This method supports patch semantics. - * (advertisers.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Advertiser ID. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser"); - } - - /** - * Updates an existing advertiser. (advertisers.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Advertiser $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Advertiser - */ - public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser"); - } -} - -/** - * The "browsers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $browsers = $dfareportingService->browsers; - * - */ -class Google_Service_Dfareporting_Browsers_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of browsers. (browsers.listBrowsers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_BrowsersListResponse - */ - public function listBrowsers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse"); - } -} - -/** - * The "campaignCreativeAssociations" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations; - * - */ -class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends Google_Service_Resource -{ - - /** - * Associates a creative with the specified campaign. This method creates a - * default ad with dimensions matching the creative in the campaign if such a - * default ad does not exist already. (campaignCreativeAssociations.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Campaign ID in this association. - * @param Google_CampaignCreativeAssociation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CampaignCreativeAssociation - */ - public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation"); - } - - /** - * Retrieves the list of creative IDs associated with the specified campaign. - * (campaignCreativeAssociations.listCampaignCreativeAssociations) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Campaign ID in this association. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse - */ - public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse"); - } -} - -/** - * The "campaigns" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $campaigns = $dfareportingService->campaigns; - * - */ -class Google_Service_Dfareporting_Campaigns_Resource extends Google_Service_Resource -{ - - /** - * Gets one campaign by ID. (campaigns.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Campaign ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Inserts a new campaign. (campaigns.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $defaultLandingPageName Default landing page name for this new - * campaign. Must be less than 256 characters long. - * @param string $defaultLandingPageUrl Default landing page URL for this new - * campaign. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Retrieves a list of campaigns, possibly filtered. (campaigns.listCampaigns) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserGroupIds Select only campaigns whose advertisers - * belong to these advertiser groups. - * @opt_param string advertiserIds Select only campaigns that belong to these - * advertisers. - * @opt_param bool archived Select only archived campaigns. Don't set this field - * to select both archived and non-archived campaigns. - * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that - * have at least one optimization activity. - * @opt_param string excludedIds Exclude campaigns with these IDs. - * @opt_param string ids Select only campaigns with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string overriddenEventTagId Select only campaigns that have - * overridden this event tag ID. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for campaigns by name or ID. - * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns - * with names like "campaign June 2015", "campaign April 2015", or simply - * "campaign 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "campaign" will match campaigns with name "my campaign", "campaign 2015", or - * simply "campaign". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string subaccountId Select only campaigns that belong to this - * subaccount. - * @return Google_Service_Dfareporting_CampaignsListResponse - */ - public function listCampaigns($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse"); - } - - /** - * Updates an existing campaign. This method supports patch semantics. - * (campaigns.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Campaign ID. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign"); - } - - /** - * Updates an existing campaign. (campaigns.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Campaign $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Campaign - */ - public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign"); - } -} - -/** - * The "changeLogs" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $changeLogs = $dfareportingService->changeLogs; - * - */ -class Google_Service_Dfareporting_ChangeLogs_Resource extends Google_Service_Resource -{ - - /** - * Gets one change log by ID. (changeLogs.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Change log ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ChangeLog - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog"); - } - - /** - * Retrieves a list of change logs. (changeLogs.listChangeLogs) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string action Select only change logs with the specified action. - * @opt_param string ids Select only change logs with these IDs. - * @opt_param string maxChangeTime Select only change logs whose change time is - * before the specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string minChangeTime Select only change logs whose change time is - * before the specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * @opt_param string objectIds Select only change logs with these object IDs. - * @opt_param string objectType Select only change logs with the specified - * object type. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Select only change logs whose object ID, user - * name, old or new values match the search string. - * @opt_param string userProfileIds Select only change logs with these user - * profile IDs. - * @return Google_Service_Dfareporting_ChangeLogsListResponse - */ - public function listChangeLogs($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse"); - } -} - -/** - * The "cities" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $cities = $dfareportingService->cities; - * - */ -class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of cities, possibly filtered. (cities.listCities) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string countryDartIds Select only cities from these countries. - * @opt_param string dartIds Select only cities with these DART IDs. - * @opt_param string namePrefix Select only cities with names starting with this - * prefix. - * @opt_param string regionDartIds Select only cities from these regions. - * @return Google_Service_Dfareporting_CitiesListResponse - */ - public function listCities($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse"); - } -} - -/** - * The "connectionTypes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $connectionTypes = $dfareportingService->connectionTypes; - * - */ -class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource -{ - - /** - * Gets one connection type by ID. (connectionTypes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Connection type ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ConnectionType - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType"); - } - - /** - * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ConnectionTypesListResponse - */ - public function listConnectionTypes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse"); - } -} - -/** - * The "contentCategories" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $contentCategories = $dfareportingService->contentCategories; - * - */ -class Google_Service_Dfareporting_ContentCategories_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing content category. (contentCategories.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one content category by ID. (contentCategories.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Inserts a new content category. (contentCategories.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Retrieves a list of content categories, possibly filtered. - * (contentCategories.listContentCategories) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only content categories with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "contentcategory*2015" will return - * objects with names like "contentcategory June 2015", "contentcategory April - * 2015", or simply "contentcategory 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "contentcategory" will match objects with name - * "my contentcategory", "contentcategory 2015", or simply "contentcategory". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_ContentCategoriesListResponse - */ - public function listContentCategories($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse"); - } - - /** - * Updates an existing content category. This method supports patch semantics. - * (contentCategories.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Content category ID. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory"); - } - - /** - * Updates an existing content category. (contentCategories.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_ContentCategory $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_ContentCategory - */ - public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory"); - } -} - -/** - * The "countries" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $countries = $dfareportingService->countries; - * - */ -class Google_Service_Dfareporting_Countries_Resource extends Google_Service_Resource -{ - - /** - * Gets one country by ID. (countries.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $dartId Country DART ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Country - */ - public function get($profileId, $dartId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'dartId' => $dartId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Country"); - } - - /** - * Retrieves a list of countries. (countries.listCountries) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CountriesListResponse - */ - public function listCountries($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse"); - } -} - -/** - * The "creativeAssets" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeAssets = $dfareportingService->creativeAssets; - * - */ -class Google_Service_Dfareporting_CreativeAssets_Resource extends Google_Service_Resource -{ - - /** - * Inserts a new creative asset. (creativeAssets.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Advertiser ID of this creative. This is a - * required field. - * @param Google_CreativeAssetMetadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeAssetMetadata - */ - public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata"); - } -} - -/** - * The "creativeFieldValues" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeFieldValues = $dfareportingService->creativeFieldValues; - * - */ -class Google_Service_Dfareporting_CreativeFieldValues_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing creative field value. (creativeFieldValues.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $creativeFieldId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one creative field value by ID. (creativeFieldValues.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function get($profileId, $creativeFieldId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Inserts a new creative field value. (creativeFieldValues.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Retrieves a list of creative field values, possibly filtered. - * (creativeFieldValues.listCreativeFieldValues) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only creative field values with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for creative field values by - * their values. Wildcards (e.g. *) are not allowed. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse - */ - public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse"); - } - - /** - * Updates an existing creative field value. This method supports patch - * semantics. (creativeFieldValues.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param string $id Creative Field Value ID - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } - - /** - * Updates an existing creative field value. (creativeFieldValues.update) - * - * @param string $profileId User profile ID associated with this request. - * @param string $creativeFieldId Creative field ID for this creative field - * value. - * @param Google_CreativeFieldValue $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeFieldValue - */ - public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); - } -} - -/** - * The "creativeFields" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeFields = $dfareportingService->creativeFields; - * - */ -class Google_Service_Dfareporting_CreativeFields_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing creative field. (creativeFields.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one creative field by ID. (creativeFields.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Inserts a new creative field. (creativeFields.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Retrieves a list of creative fields, possibly filtered. - * (creativeFields.listCreativeFields) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserIds Select only creative fields that belong to - * these advertisers. - * @opt_param string ids Select only creative fields with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for creative fields by name - * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will - * return creative fields with names like "creativefield June 2015", - * "creativefield April 2015", or simply "creativefield 2015". Most of the - * searches also add wild-cards implicitly at the start and the end of the - * search string. For example, a search string of "creativefield" will match - * creative fields with the name "my creativefield", "creativefield 2015", or - * simply "creativefield". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeFieldsListResponse - */ - public function listCreativeFields($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse"); - } - - /** - * Updates an existing creative field. This method supports patch semantics. - * (creativeFields.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative Field ID - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField"); - } - - /** - * Updates an existing creative field. (creativeFields.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeField $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeField - */ - public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField"); - } -} - -/** - * The "creativeGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creativeGroups = $dfareportingService->creativeGroups; - * - */ -class Google_Service_Dfareporting_CreativeGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one creative group by ID. (creativeGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Inserts a new creative group. (creativeGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Retrieves a list of creative groups, possibly filtered. - * (creativeGroups.listCreativeGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserIds Select only creative groups that belong to - * these advertisers. - * @opt_param int groupNumber Select only creative groups that belong to this - * subgroup. - * @opt_param string ids Select only creative groups with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for creative groups by name - * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will - * return creative groups with names like "creativegroup June 2015", - * "creativegroup April 2015", or simply "creativegroup 2015". Most of the - * searches also add wild-cards implicitly at the start and the end of the - * search string. For example, a search string of "creativegroup" will match - * creative groups with the name "my creativegroup", "creativegroup 2015", or - * simply "creativegroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_CreativeGroupsListResponse - */ - public function listCreativeGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse"); - } - - /** - * Updates an existing creative group. This method supports patch semantics. - * (creativeGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative group ID. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } - - /** - * Updates an existing creative group. (creativeGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_CreativeGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CreativeGroup - */ - public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup"); - } -} - -/** - * The "creatives" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $creatives = $dfareportingService->creatives; - * - */ -class Google_Service_Dfareporting_Creatives_Resource extends Google_Service_Resource -{ - - /** - * Gets one creative by ID. (creatives.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Inserts a new creative. (creatives.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Retrieves a list of creatives, possibly filtered. (creatives.listCreatives) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active creatives. Leave blank to select - * active and inactive creatives. - * @opt_param string advertiserId Select only creatives with this advertiser ID. - * @opt_param bool archived Select only archived creatives. Leave blank to - * select archived and unarchived creatives. - * @opt_param string campaignId Select only creatives with this campaign ID. - * @opt_param string companionCreativeIds Select only in-stream video creatives - * with these companion IDs. - * @opt_param string creativeFieldIds Select only creatives with these creative - * field IDs. - * @opt_param string ids Select only creatives with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string renderingIds Select only creatives with these rendering - * IDs. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "creative*2015" will return objects - * with names like "creative June 2015", "creative April 2015", or simply - * "creative 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "creative" will match objects with name "my creative", "creative 2015", or - * simply "creative". - * @opt_param string sizeIds Select only creatives with these size IDs. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string studioCreativeId Select only creatives corresponding to - * this Studio creative ID. - * @opt_param string types Select only creatives with these creative types. - * @return Google_Service_Dfareporting_CreativesListResponse - */ - public function listCreatives($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse"); - } - - /** - * Updates an existing creative. This method supports patch semantics. - * (creatives.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Creative ID. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative"); - } - - /** - * Updates an existing creative. (creatives.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Creative - */ - public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Creative"); - } -} - -/** - * The "dimensionValues" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); - } -} - -/** - * The "directorySiteContacts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $directorySiteContacts = $dfareportingService->directorySiteContacts; - * - */ -class Google_Service_Dfareporting_DirectorySiteContacts_Resource extends Google_Service_Resource -{ - - /** - * Gets one directory site contact by ID. (directorySiteContacts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Directory site contact ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySiteContact - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); - } - - /** - * Retrieves a list of directory site contacts, possibly filtered. - * (directorySiteContacts.listDirectorySiteContacts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string directorySiteIds Select only directory site contacts with - * these directory site IDs. This is a required field. - * @opt_param string ids Select only directory site contacts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "directory site contact*2015" - * will return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "directory site - * contact" will match objects with name "my directory site contact", "directory - * site contact 2015", or simply "directory site contact". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse - */ - public function listDirectorySiteContacts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); - } -} - -/** - * The "directorySites" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $directorySites = $dfareportingService->directorySites; - * - */ -class Google_Service_Dfareporting_DirectorySites_Resource extends Google_Service_Resource -{ - - /** - * Gets one directory site by ID. (directorySites.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Directory site ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySite - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); - } - - /** - * Inserts a new directory site. (directorySites.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_DirectorySite $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySite - */ - public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite"); - } - - /** - * Retrieves a list of directory sites, possibly filtered. - * (directorySites.listDirectorySites) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. - * @opt_param bool acceptsInterstitialPlacements This search filter is no longer - * supported and will have no effect on the results returned. - * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites - * that accept publisher paid placements. This field can be left blank. - * @opt_param bool active Select only active directory sites. Leave blank to - * retrieve both active and inactive directory sites. - * @opt_param string countryId Select only directory sites with this country ID. - * @opt_param string dfp_network_code Select only directory sites with this DFP - * network code. - * @opt_param string ids Select only directory sites with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string parentId Select only directory sites with this parent ID. - * @opt_param string searchString Allows searching for objects by name, ID or - * URL. Wildcards (*) are allowed. For example, "directory site*2015" will - * return objects with names like "directory site June 2015", "directory site - * April 2015", or simply "directory site 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply, "directory site". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_DirectorySitesListResponse - */ - public function listDirectorySites($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse"); - } -} - -/** - * The "eventTags" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $eventTags = $dfareportingService->eventTags; - * - */ -class Google_Service_Dfareporting_EventTags_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing event tag. (eventTags.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one event tag by ID. (eventTags.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Inserts a new event tag. (eventTags.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string adId Select only event tags that belong to this ad. - * @opt_param string advertiserId Select only event tags that belong to this - * advertiser. - * @opt_param string campaignId Select only event tags that belong to this - * campaign. - * @opt_param bool definitionsOnly Examine only the specified campaign or - * advertiser's event tags for matching selector criteria. When set to false, - * the parent advertiser and parent campaign of the specified ad or campaign is - * examined as well. In addition, when set to false, the status field is - * examined as well, along with the enabledByDefault field. This parameter can - * not be set to true when adId is specified as ads do not define their own even - * tags. - * @opt_param bool enabled Select only enabled event tags. What is considered - * enabled or disabled depends on the definitionsOnly parameter. When - * definitionsOnly is set to true, only the specified advertiser or campaign's - * event tags' enabledByDefault field is examined. When definitionsOnly is set - * to false, the specified ad or specified campaign's parent advertiser's or - * parent campaign's event tags' enabledByDefault and status fields are examined - * as well. - * @opt_param string eventTagTypes Select only event tags with the specified - * event tag types. Event tag types can be used to specify whether to use a - * third-party pixel, a third-party JavaScript URL, or a third-party click- - * through URL for either impression or click tracking. - * @opt_param string ids Select only event tags with these IDs. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects - * with names like "eventtag June 2015", "eventtag April 2015", or simply - * "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or - * simply "eventtag". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_EventTagsListResponse - */ - public function listEventTags($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse"); - } - - /** - * Updates an existing event tag. This method supports patch semantics. - * (eventTags.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Event tag ID. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag"); - } - - /** - * Updates an existing event tag. (eventTags.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_EventTag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_EventTag - */ - public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag"); - } -} - -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $files = $dfareportingService->files; - * - */ -class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a report file by its report ID and file ID. (files.get) - * - * @param string $reportId The ID of the report. - * @param string $fileId The ID of the report file. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function get($reportId, $fileId, $optParams = array()) - { - $params = array('reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Lists files for a user profile. (files.listFiles) - * - * @param string $profileId The DFA profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param 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 scope The scope that defines which results are returned, - * default is 'MINE'. - * @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); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } -} - -/** - * The "floodlightActivities" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightActivities = $dfareportingService->floodlightActivities; - * - */ -class Google_Service_Dfareporting_FloodlightActivities_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing floodlight activity. (floodlightActivities.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Generates a tag for a floodlight activity. (floodlightActivities.generatetag) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string floodlightActivityId Floodlight activity ID for which we - * want to generate a tag. - * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse - */ - public function generatetag($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse"); - } - - /** - * Gets one floodlight activity by ID. (floodlightActivities.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Inserts a new floodlight activity. (floodlightActivities.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Retrieves a list of floodlight activities, possibly filtered. - * (floodlightActivities.listFloodlightActivities) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserId Select only floodlight activities for the - * specified advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * @opt_param string floodlightActivityGroupIds Select only floodlight - * activities with the specified floodlight activity group IDs. - * @opt_param string floodlightActivityGroupName Select only floodlight - * activities with the specified floodlight activity group name. - * @opt_param string floodlightActivityGroupTagString Select only floodlight - * activities with the specified floodlight activity group tag string. - * @opt_param string floodlightActivityGroupType Select only floodlight - * activities with the specified floodlight activity group type. - * @opt_param string floodlightConfigurationId Select only floodlight activities - * for the specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activities with the specified - * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for - * a non-empty result. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return - * objects with names like "floodlightactivity June 2015", "floodlightactivity - * April 2015", or simply "floodlightactivity 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name - * "my floodlightactivity activity", "floodlightactivity 2015", or simply - * "floodlightactivity". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string tagString Select only floodlight activities with the - * specified tag string. - * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse - */ - public function listFloodlightActivities($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse"); - } - - /** - * Updates an existing floodlight activity. This method supports patch - * semantics. (floodlightActivities.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity ID. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } - - /** - * Updates an existing floodlight activity. (floodlightActivities.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivity - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity"); - } -} - -/** - * The "floodlightActivityGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups; - * - */ -class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Inserts a new floodlight activity group. (floodlightActivityGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Retrieves a list of floodlight activity groups, possibly filtered. - * (floodlightActivityGroups.listFloodlightActivityGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserId Select only floodlight activity groups with - * the specified advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * @opt_param string floodlightConfigurationId Select only floodlight activity - * groups with the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * @opt_param string ids Select only floodlight activity groups with the - * specified IDs. Must specify either advertiserId or floodlightConfigurationId - * for a non-empty result. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will - * return objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of - * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Select only floodlight activity groups with the - * specified floodlight activity group type. - * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse - */ - public function listFloodlightActivityGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse"); - } - - /** - * Updates an existing floodlight activity group. This method supports patch - * semantics. (floodlightActivityGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight activity Group ID. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } - - /** - * Updates an existing floodlight activity group. - * (floodlightActivityGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightActivityGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightActivityGroup - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); - } -} - -/** - * The "floodlightConfigurations" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $floodlightConfigurations = $dfareportingService->floodlightConfigurations; - * - */ -class Google_Service_Dfareporting_FloodlightConfigurations_Resource extends Google_Service_Resource -{ - - /** - * Gets one floodlight configuration by ID. (floodlightConfigurations.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight configuration ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } - - /** - * Retrieves a list of floodlight configurations, possibly filtered. - * (floodlightConfigurations.listFloodlightConfigurations) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Set of IDs of floodlight configurations to retrieve. - * Required field; otherwise an empty list will be returned. - * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse - */ - public function listFloodlightConfigurations($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse"); - } - - /** - * Updates an existing floodlight configuration. This method supports patch - * semantics. (floodlightConfigurations.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Floodlight configuration ID. - * @param Google_FloodlightConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } - - /** - * Updates an existing floodlight configuration. - * (floodlightConfigurations.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_FloodlightConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_FloodlightConfiguration - */ - public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); - } -} - -/** - * The "inventoryItems" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $inventoryItems = $dfareportingService->inventoryItems; - * - */ -class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource -{ - - /** - * Gets one inventory item by ID. (inventoryItems.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param string $id Inventory item ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_InventoryItem - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem"); - } - - /** - * Retrieves a list of inventory items, possibly filtered. - * (inventoryItems.listInventoryItems) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only inventory items with these IDs. - * @opt_param bool inPlan Select only inventory items that are in plan. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string orderId Select only inventory items that belong to - * specified orders. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string siteId Select only inventory items that are associated with - * these sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string type Select only inventory items with this type. - * @return Google_Service_Dfareporting_InventoryItemsListResponse - */ - public function listInventoryItems($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse"); - } -} - -/** - * The "landingPages" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $landingPages = $dfareportingService->landingPages; - * - */ -class Google_Service_Dfareporting_LandingPages_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing campaign landing page. (landingPages.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $campaignId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one campaign landing page by ID. (landingPages.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function get($profileId, $campaignId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Inserts a new landing page for the specified campaign. (landingPages.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Retrieves the list of landing pages for the specified campaign. - * (landingPages.listLandingPages) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPagesListResponse - */ - public function listLandingPages($profileId, $campaignId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse"); - } - - /** - * Updates an existing campaign landing page. This method supports patch - * semantics. (landingPages.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param string $id Landing page ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage"); - } - - /** - * Updates an existing campaign landing page. (landingPages.update) - * - * @param string $profileId User profile ID associated with this request. - * @param string $campaignId Landing page campaign ID. - * @param Google_LandingPage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_LandingPage - */ - public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage"); - } -} - -/** - * The "metros" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $metros = $dfareportingService->metros; - * - */ -class Google_Service_Dfareporting_Metros_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of metros. (metros.listMetros) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MetrosListResponse - */ - public function listMetros($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse"); - } -} - -/** - * The "mobileCarriers" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $mobileCarriers = $dfareportingService->mobileCarriers; - * - */ -class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource -{ - - /** - * Gets one mobile carrier by ID. (mobileCarriers.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Mobile carrier ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MobileCarrier - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier"); - } - - /** - * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_MobileCarriersListResponse - */ - public function listMobileCarriers($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse"); - } -} - -/** - * The "operatingSystemVersions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $operatingSystemVersions = $dfareportingService->operatingSystemVersions; - * - */ -class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource -{ - - /** - * Gets one operating system version by ID. (operatingSystemVersions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Operating system version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemVersion - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion"); - } - - /** - * Retrieves a list of operating system versions. - * (operatingSystemVersions.listOperatingSystemVersions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse - */ - public function listOperatingSystemVersions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse"); - } -} - -/** - * The "operatingSystems" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $operatingSystems = $dfareportingService->operatingSystems; - * - */ -class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource -{ - - /** - * Gets one operating system by DART ID. (operatingSystems.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $dartId Operating system DART ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystem - */ - public function get($profileId, $dartId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'dartId' => $dartId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem"); - } - - /** - * Retrieves a list of operating systems. - * (operatingSystems.listOperatingSystems) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OperatingSystemsListResponse - */ - public function listOperatingSystems($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse"); - } -} - -/** - * The "orderDocuments" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $orderDocuments = $dfareportingService->orderDocuments; - * - */ -class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource -{ - - /** - * Gets one order document by ID. (orderDocuments.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param string $id Order document ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_OrderDocument - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument"); - } - - /** - * Retrieves a list of order documents, possibly filtered. - * (orderDocuments.listOrderDocuments) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for order documents. - * @param array $optParams Optional parameters. - * - * @opt_param bool approved Select only order documents that have been approved - * by at least one user. - * @opt_param string ids Select only order documents with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string orderId Select only order documents for specified orders. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for order documents by name - * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will - * return order documents with names like "orderdocument June 2015", - * "orderdocument April 2015", or simply "orderdocument 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "orderdocument" will match order - * documents with name "my orderdocument", "orderdocument 2015", or simply - * "orderdocument". - * @opt_param string siteId Select only order documents that are associated with - * these sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_OrderDocumentsListResponse - */ - public function listOrderDocuments($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse"); - } -} - -/** - * The "orders" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $orders = $dfareportingService->orders; - * - */ -class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource -{ - - /** - * Gets one order by ID. (orders.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for orders. - * @param string $id Order ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Order - */ - public function get($profileId, $projectId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Order"); - } - - /** - * Retrieves a list of orders, possibly filtered. (orders.listOrders) - * - * @param string $profileId User profile ID associated with this request. - * @param string $projectId Project ID for orders. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only orders with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for orders by name or ID. - * Wildcards (*) are allowed. For example, "order*2015" will return orders with - * names like "order June 2015", "order April 2015", or simply "order 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "order" will match - * orders with name "my order", "order 2015", or simply "order". - * @opt_param string siteId Select only orders that are associated with these - * site IDs. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_OrdersListResponse - */ - public function listOrders($profileId, $projectId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse"); - } -} - -/** - * The "placementGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placementGroups = $dfareportingService->placementGroups; - * - */ -class Google_Service_Dfareporting_PlacementGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one placement group by ID. (placementGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Inserts a new placement group. (placementGroups.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Retrieves a list of placement groups, possibly filtered. - * (placementGroups.listPlacementGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserIds Select only placement groups that belong to - * these advertisers. - * @opt_param bool archived Select only archived placements. Don't set this - * field to select both archived and non-archived placements. - * @opt_param string campaignIds Select only placement groups that belong to - * these campaigns. - * @opt_param string contentCategoryIds Select only placement groups that are - * associated with these content categories. - * @opt_param string directorySiteIds Select only placement groups that are - * associated with these directory sites. - * @opt_param string ids Select only placement groups with these IDs. - * @opt_param string maxEndDate Select only placements or placement groups whose - * end date is on or before the specified maxEndDate. The date should be - * formatted as "yyyy-MM-dd". - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string maxStartDate Select only placements or placement groups - * whose start date is on or before the specified maxStartDate. The date should - * be formatted as "yyyy-MM-dd". - * @opt_param string minEndDate Select only placements or placement groups whose - * end date is on or after the specified minEndDate. The date should be - * formatted as "yyyy-MM-dd". - * @opt_param string minStartDate Select only placements or placement groups - * whose start date is on or after the specified minStartDate. The date should - * be formatted as "yyyy-MM-dd". - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string placementGroupType Select only placement groups belonging - * with this group type. A package is a simple group of placements that acts as - * a single pricing point for a group of tags. A roadblock is a group of - * placements that not only acts as a single pricing point but also assumes that - * all the tags in it will be served at the same time. A roadblock requires one - * of its assigned placements to be marked as primary for reporting. - * @opt_param string placementStrategyIds Select only placement groups that are - * associated with these placement strategies. - * @opt_param string pricingTypes Select only placement groups with these - * pricing types. - * @opt_param string searchString Allows searching for placement groups by name - * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups with - * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". - * @opt_param string siteIds Select only placement groups that are associated - * with these sites. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_PlacementGroupsListResponse - */ - public function listPlacementGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse"); - } - - /** - * Updates an existing placement group. This method supports patch semantics. - * (placementGroups.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement group ID. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } - - /** - * Updates an existing placement group. (placementGroups.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementGroup $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementGroup - */ - public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup"); - } -} - -/** - * The "placementStrategies" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placementStrategies = $dfareportingService->placementStrategies; - * - */ -class Google_Service_Dfareporting_PlacementStrategies_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing placement strategy. (placementStrategies.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one placement strategy by ID. (placementStrategies.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Inserts a new placement strategy. (placementStrategies.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Retrieves a list of placement strategies, possibly filtered. - * (placementStrategies.listPlacementStrategies) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only placement strategies with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return - * objects with names like "placementstrategy June 2015", "placementstrategy - * April 2015", or simply "placementstrategy 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementstrategy" will match objects with name - * "my placementstrategy", "placementstrategy 2015", or simply - * "placementstrategy". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_PlacementStrategiesListResponse - */ - public function listPlacementStrategies($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse"); - } - - /** - * Updates an existing placement strategy. This method supports patch semantics. - * (placementStrategies.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement strategy ID. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } - - /** - * Updates an existing placement strategy. (placementStrategies.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_PlacementStrategy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlacementStrategy - */ - public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy"); - } -} - -/** - * The "placements" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $placements = $dfareportingService->placements; - * - */ -class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Resource -{ - - /** - * Generates tags for a placement. (placements.generatetags) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string campaignId Generate placements belonging to this campaign. - * This is a required field. - * @opt_param string placementIds Generate tags for these placements. - * @opt_param string tagFormats Tag formats to generate for these placements. - * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse - */ - public function generatetags($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse"); - } - - /** - * Gets one placement by ID. (placements.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Inserts a new placement. (placements.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Retrieves a list of placements, possibly filtered. - * (placements.listPlacements) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserIds Select only placements that belong to these - * advertisers. - * @opt_param bool archived Select only archived placements. Don't set this - * field to select both archived and non-archived placements. - * @opt_param string campaignIds Select only placements that belong to these - * campaigns. - * @opt_param string compatibilities Select only placements that are associated - * with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to - * rendering either on desktop or on mobile devices for regular or interstitial - * ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - * with the VAST standard. - * @opt_param string contentCategoryIds Select only placements that are - * associated with these content categories. - * @opt_param string directorySiteIds Select only placements that are associated - * with these directory sites. - * @opt_param string groupIds Select only placements that belong to these - * placement groups. - * @opt_param string ids Select only placements with these IDs. - * @opt_param string maxEndDate Select only placements or placement groups whose - * end date is on or before the specified maxEndDate. The date should be - * formatted as "yyyy-MM-dd". - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string maxStartDate Select only placements or placement groups - * whose start date is on or before the specified maxStartDate. The date should - * be formatted as "yyyy-MM-dd". - * @opt_param string minEndDate Select only placements or placement groups whose - * end date is on or after the specified minEndDate. The date should be - * formatted as "yyyy-MM-dd". - * @opt_param string minStartDate Select only placements or placement groups - * whose start date is on or after the specified minStartDate. The date should - * be formatted as "yyyy-MM-dd". - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string paymentSource Select only placements with this payment - * source. - * @opt_param string placementStrategyIds Select only placements that are - * associated with these placement strategies. - * @opt_param string pricingTypes Select only placements with these pricing - * types. - * @opt_param string searchString Allows searching for placements by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placements with names like "placement June 2015", "placement May 2015", or - * simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * @opt_param string siteIds Select only placements that are associated with - * these sites. - * @opt_param string sizeIds Select only placements that are associated with - * these sizes. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_PlacementsListResponse - */ - public function listPlacements($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse"); - } - - /** - * Updates an existing placement. This method supports patch semantics. - * (placements.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Placement ID. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement"); - } - - /** - * Updates an existing placement. (placements.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Placement $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Placement - */ - public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Placement"); - } -} - -/** - * The "platformTypes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $platformTypes = $dfareportingService->platformTypes; - * - */ -class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource -{ - - /** - * Gets one platform type by ID. (platformTypes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Platform type ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlatformType - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType"); - } - - /** - * Retrieves a list of platform types. (platformTypes.listPlatformTypes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PlatformTypesListResponse - */ - public function listPlatformTypes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse"); - } -} - -/** - * The "postalCodes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $postalCodes = $dfareportingService->postalCodes; - * - */ -class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource -{ - - /** - * Gets one postal code by ID. (postalCodes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $code Postal code ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PostalCode - */ - public function get($profileId, $code, $optParams = array()) - { - $params = array('profileId' => $profileId, 'code' => $code); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode"); - } - - /** - * Retrieves a list of postal codes. (postalCodes.listPostalCodes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_PostalCodesListResponse - */ - public function listPostalCodes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $projects = $dfareportingService->projects; - * - */ -class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource -{ - - /** - * Gets one project by ID. (projects.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Project - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Project"); - } - - /** - * Retrieves a list of projects, possibly filtered. (projects.listProjects) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string advertiserIds Select only projects with these advertiser - * IDs. - * @opt_param string ids Select only projects with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for projects by name or ID. - * Wildcards (*) are allowed. For example, "project*2015" will return projects - * with names like "project June 2015", "project April 2015", or simply "project - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "project" will - * match projects with name "my project", "project 2015", or simply "project". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_ProjectsListResponse - */ - public function listProjects($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse"); - } -} - -/** - * The "regions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $regions = $dfareportingService->regions; - * - */ -class Google_Service_Dfareporting_Regions_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of regions. (regions.listRegions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RegionsListResponse - */ - public function listRegions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse"); - } -} - -/** - * The "remarketingListShares" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $remarketingListShares = $dfareportingService->remarketingListShares; - * - */ -class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list share by remarketing list ID. - * (remarketingListShares.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $remarketingListId Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function get($profileId, $remarketingListId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } - - /** - * Updates an existing remarketing list share. This method supports patch - * semantics. (remarketingListShares.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $remarketingListId Remarketing list ID. - * @param Google_RemarketingListShare $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } - - /** - * Updates an existing remarketing list share. (remarketingListShares.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingListShare $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingListShare - */ - public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare"); - } -} - -/** - * The "remarketingLists" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $remarketingLists = $dfareportingService->remarketingLists; - * - */ -class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list by ID. (remarketingLists.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Inserts a new remarketing list. (remarketingLists.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Retrieves a list of remarketing lists, possibly filtered. - * (remarketingLists.listRemarketingLists) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Select only remarketing lists owned by this - * advertiser. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active or only inactive remarketing lists. - * @opt_param string floodlightActivityId Select only remarketing lists that - * have this floodlight activity ID. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string name Allows searching for objects by name or ID. Wildcards - * (*) are allowed. For example, "remarketing list*2015" will return objects - * with names like "remarketing list June 2015", "remarketing list April 2015", - * or simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_RemarketingListsListResponse - */ - public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse"); - } - - /** - * Updates an existing remarketing list. This method supports patch semantics. - * (remarketingLists.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList"); - } - - /** - * Updates an existing remarketing list. (remarketingLists.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_RemarketingList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_RemarketingList - */ - public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a report by its ID. (reports.get) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function get($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Creates a report. (reports.insert) - * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Retrieves list of reports. (reports.listReports) - * - * @param string $profileId The DFA user profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param 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 scope The scope that defines which results are returned, - * default is 'MINE'. - * @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); - return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); - } - - /** - * Updates a report. This method supports patch semantics. (reports.patch) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); - } - - /** - * Runs a report. (reports.run) - * - * @param string $profileId The DFA profile ID. - * @param string $reportId The ID of the report. - * @param array $optParams Optional parameters. - * - * @opt_param bool synchronous If set and true, tries to run the report - * synchronously. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function run($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Updates a report. (reports.update) - * - * @param string $profileId The DFA user profile ID. - * @param string $reportId The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); - } -} - -/** - * The "compatibleFields" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $compatibleFields = $dfareportingService->compatibleFields; - * - */ -class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource -{ - - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the input - * report and user permissions. (compatibleFields.query) - * - * @param string $profileId The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CompatibleFields - */ - public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); - } -} -/** - * The "files" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - - /** - * Lists files for a report. (files.listReportsFiles) - * - * @param string $profileId The DFA profile ID. - * @param string $reportId The ID of the parent report. - * @param array $optParams Optional parameters. - * - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } -} - -/** - * The "sites" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $sites = $dfareportingService->sites; - * - */ -class Google_Service_Dfareporting_Sites_Resource extends Google_Service_Resource -{ - - /** - * Gets one site by ID. (sites.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Site ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Inserts a new site. (sites.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Retrieves a list of sites, possibly filtered. (sites.listSites) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool acceptsInStreamVideoPlacements This search filter is no - * longer supported and will have no effect on the results returned. - * @opt_param bool acceptsInterstitialPlacements This search filter is no longer - * supported and will have no effect on the results returned. - * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept - * publisher paid placements. - * @opt_param bool adWordsSite Select only AdWords sites. - * @opt_param bool approved Select only approved sites. - * @opt_param string campaignIds Select only sites with these campaign IDs. - * @opt_param string directorySiteIds Select only sites with these directory - * site IDs. - * @opt_param string ids Select only sites with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name, ID or - * keyName. Wildcards (*) are allowed. For example, "site*2015" will return - * objects with names like "site June 2015", "site April 2015", or simply "site - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "site" will - * match objects with name "my site", "site 2015", or simply "site". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string subaccountId Select only sites with this subaccount ID. - * @opt_param bool unmappedSite Select only sites that have not been mapped to a - * directory site. - * @return Google_Service_Dfareporting_SitesListResponse - */ - public function listSites($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse"); - } - - /** - * Updates an existing site. This method supports patch semantics. (sites.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Site ID. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Site"); - } - - /** - * Updates an existing site. (sites.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Site $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Site - */ - public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Site"); - } -} - -/** - * The "sizes" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $sizes = $dfareportingService->sizes; - * - */ -class Google_Service_Dfareporting_Sizes_Resource extends Google_Service_Resource -{ - - /** - * Gets one size by ID. (sizes.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Size ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Size - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Size"); - } - - /** - * Inserts a new size. (sizes.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Size $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Size - */ - public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); - } - - /** - * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param int height Select only sizes with this height. - * @opt_param bool iabStandard Select only IAB standard sizes. - * @opt_param string ids Select only sizes with these IDs. - * @opt_param int width Select only sizes with this width. - * @return Google_Service_Dfareporting_SizesListResponse - */ - public function listSizes($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse"); - } -} - -/** - * The "subaccounts" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $subaccounts = $dfareportingService->subaccounts; - * - */ -class Google_Service_Dfareporting_Subaccounts_Resource extends Google_Service_Resource -{ - - /** - * Gets one subaccount by ID. (subaccounts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Subaccount ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Inserts a new subaccount. (subaccounts.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Gets a list of subaccounts, possibly filtered. (subaccounts.listSubaccounts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only subaccounts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects - * with names like "subaccount June 2015", "subaccount April 2015", or simply - * "subaccount 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "subaccount" will match objects with name "my subaccount", "subaccount 2015", - * or simply "subaccount". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_SubaccountsListResponse - */ - public function listSubaccounts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse"); - } - - /** - * Updates an existing subaccount. This method supports patch semantics. - * (subaccounts.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Subaccount ID. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount"); - } - - /** - * Updates an existing subaccount. (subaccounts.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_Subaccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Subaccount - */ - public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount"); - } -} - -/** - * The "targetableRemarketingLists" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists; - * - */ -class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource -{ - - /** - * Gets one remarketing list by ID. (targetableRemarketingLists.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Remarketing list ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_TargetableRemarketingList - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList"); - } - - /** - * Retrieves a list of targetable remarketing lists, possibly filtered. - * (targetableRemarketingLists.listTargetableRemarketingLists) - * - * @param string $profileId User profile ID associated with this request. - * @param string $advertiserId Select only targetable remarketing lists - * targetable by these advertisers. - * @param array $optParams Optional parameters. - * - * @opt_param bool active Select only active or only inactive targetable - * remarketing lists. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string name Allows searching for objects by name or ID. Wildcards - * (*) are allowed. For example, "remarketing list*2015" will return objects - * with names like "remarketing list June 2015", "remarketing list April 2015", - * or simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse - */ - public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse"); - } -} - -/** - * The "userProfiles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $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); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); - } - - /** - * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserProfileList - */ - public function listUserProfiles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); - } -} - -/** - * The "userRolePermissionGroups" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups; - * - */ -class Google_Service_Dfareporting_UserRolePermissionGroups_Resource extends Google_Service_Resource -{ - - /** - * Gets one user role permission group by ID. (userRolePermissionGroups.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role permission group ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermissionGroup - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup"); - } - - /** - * Gets a list of all supported user role permission groups. - * (userRolePermissionGroups.listUserRolePermissionGroups) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse - */ - public function listUserRolePermissionGroups($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse"); - } -} - -/** - * The "userRolePermissions" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRolePermissions = $dfareportingService->userRolePermissions; - * - */ -class Google_Service_Dfareporting_UserRolePermissions_Resource extends Google_Service_Resource -{ - - /** - * Gets one user role permission by ID. (userRolePermissions.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role permission ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRolePermission - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission"); - } - - /** - * Gets a list of user role permissions, possibly filtered. - * (userRolePermissions.listUserRolePermissions) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string ids Select only user role permissions with these IDs. - * @return Google_Service_Dfareporting_UserRolePermissionsListResponse - */ - public function listUserRolePermissions($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse"); - } -} - -/** - * The "userRoles" collection of methods. - * Typical usage is: - * - * $dfareportingService = new Google_Service_Dfareporting(...); - * $userRoles = $dfareportingService->userRoles; - * - */ -class Google_Service_Dfareporting_UserRoles_Resource extends Google_Service_Resource -{ - - /** - * Deletes an existing user role. (userRoles.delete) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets one user role by ID. (userRoles.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Inserts a new user role. (userRoles.insert) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Retrieves a list of user roles, possibly filtered. (userRoles.listUserRoles) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param bool accountUserRoleOnly Select only account level user roles not - * associated with any specific subaccount. - * @opt_param string ids Select only user roles with the specified IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name or ID. - * Wildcards (*) are allowed. For example, "userrole*2015" will return objects - * with names like "userrole June 2015", "userrole April 2015", or simply - * "userrole 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of - * "userrole" will match objects with name "my userrole", "userrole 2015", or - * simply "userrole". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results, default is ASCENDING. - * @opt_param string subaccountId Select only user roles that belong to this - * subaccount. - * @return Google_Service_Dfareporting_UserRolesListResponse - */ - public function listUserRoles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse"); - } - - /** - * Updates an existing user role. This method supports patch semantics. - * (userRoles.patch) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id User role ID. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole"); - } - - /** - * Updates an existing user role. (userRoles.update) - * - * @param string $profileId User profile ID associated with this request. - * @param Google_UserRole $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserRole - */ - public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole"); - } -} - - - - -class Google_Service_Dfareporting_Account extends Google_Collection -{ - protected $collection_key = 'availablePermissionIds'; - protected $internal_gapi_mappings = array( - ); - public $accountPermissionIds; - public $accountProfile; - public $active; - public $activeAdsLimitTier; - public $activeViewOptOut; - public $availablePermissionIds; - public $comscoreVceEnabled; - public $countryId; - public $currencyId; - public $defaultCreativeSizeId; - public $description; - public $id; - public $kind; - public $locale; - public $maximumImageSize; - public $name; - public $nielsenOcrEnabled; - protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration'; - protected $reportsConfigurationDataType = ''; - public $teaserSizeLimit; - - - public function setAccountPermissionIds($accountPermissionIds) - { - $this->accountPermissionIds = $accountPermissionIds; - } - public function getAccountPermissionIds() - { - return $this->accountPermissionIds; - } - public function setAccountProfile($accountProfile) - { - $this->accountProfile = $accountProfile; - } - public function getAccountProfile() - { - return $this->accountProfile; - } - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setActiveAdsLimitTier($activeAdsLimitTier) - { - $this->activeAdsLimitTier = $activeAdsLimitTier; - } - public function getActiveAdsLimitTier() - { - return $this->activeAdsLimitTier; - } - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setAvailablePermissionIds($availablePermissionIds) - { - $this->availablePermissionIds = $availablePermissionIds; - } - public function getAvailablePermissionIds() - { - return $this->availablePermissionIds; - } - public function setComscoreVceEnabled($comscoreVceEnabled) - { - $this->comscoreVceEnabled = $comscoreVceEnabled; - } - public function getComscoreVceEnabled() - { - return $this->comscoreVceEnabled; - } - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - public function getCountryId() - { - return $this->countryId; - } - public function setCurrencyId($currencyId) - { - $this->currencyId = $currencyId; - } - public function getCurrencyId() - { - return $this->currencyId; - } - public function setDefaultCreativeSizeId($defaultCreativeSizeId) - { - $this->defaultCreativeSizeId = $defaultCreativeSizeId; - } - public function getDefaultCreativeSizeId() - { - return $this->defaultCreativeSizeId; - } - 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($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setMaximumImageSize($maximumImageSize) - { - $this->maximumImageSize = $maximumImageSize; - } - public function getMaximumImageSize() - { - return $this->maximumImageSize; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNielsenOcrEnabled($nielsenOcrEnabled) - { - $this->nielsenOcrEnabled = $nielsenOcrEnabled; - } - public function getNielsenOcrEnabled() - { - return $this->nielsenOcrEnabled; - } - public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration) - { - $this->reportsConfiguration = $reportsConfiguration; - } - public function getReportsConfiguration() - { - return $this->reportsConfiguration; - } - public function setTeaserSizeLimit($teaserSizeLimit) - { - $this->teaserSizeLimit = $teaserSizeLimit; - } - public function getTeaserSizeLimit() - { - return $this->teaserSizeLimit; - } -} - -class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $activeAds; - public $activeAdsLimitTier; - public $availableAds; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setActiveAds($activeAds) - { - $this->activeAds = $activeAds; - } - public function getActiveAds() - { - return $this->activeAds; - } - public function setActiveAdsLimitTier($activeAdsLimitTier) - { - $this->activeAdsLimitTier = $activeAdsLimitTier; - } - public function getActiveAdsLimitTier() - { - return $this->activeAdsLimitTier; - } - public function setAvailableAds($availableAds) - { - $this->availableAds = $availableAds; - } - public function getAvailableAds() - { - return $this->availableAds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountPermission extends Google_Collection -{ - protected $collection_key = 'accountProfiles'; - protected $internal_gapi_mappings = array( - ); - public $accountProfiles; - public $id; - public $kind; - public $level; - public $name; - public $permissionGroupId; - - - public function setAccountProfiles($accountProfiles) - { - $this->accountProfiles = $accountProfiles; - } - public function getAccountProfiles() - { - return $this->accountProfiles; - } - 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 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 setPermissionGroupId($permissionGroupId) - { - $this->permissionGroupId = $permissionGroupId; - } - public function getPermissionGroupId() - { - return $this->permissionGroupId; - } -} - -class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'accountPermissionGroups'; - protected $internal_gapi_mappings = array( - ); - protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup'; - protected $accountPermissionGroupsDataType = 'array'; - public $kind; - - - public function setAccountPermissionGroups($accountPermissionGroups) - { - $this->accountPermissionGroups = $accountPermissionGroups; - } - public function getAccountPermissionGroups() - { - return $this->accountPermissionGroups; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection -{ - protected $collection_key = 'accountPermissions'; - protected $internal_gapi_mappings = array( - ); - protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission'; - protected $accountPermissionsDataType = 'array'; - public $kind; - - - public function setAccountPermissions($accountPermissions) - { - $this->accountPermissions = $accountPermissions; - } - public function getAccountPermissions() - { - return $this->accountPermissions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_AccountUserProfile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $advertiserFilterDataType = ''; - protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $campaignFilterDataType = ''; - public $comments; - public $email; - public $id; - public $kind; - public $locale; - public $name; - protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $siteFilterDataType = ''; - public $subaccountId; - public $traffickerType; - public $userAccessType; - protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter'; - protected $userRoleFilterDataType = ''; - public $userRoleId; - - - 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 setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter) - { - $this->advertiserFilter = $advertiserFilter; - } - public function getAdvertiserFilter() - { - return $this->advertiserFilter; - } - public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter) - { - $this->campaignFilter = $campaignFilter; - } - public function getCampaignFilter() - { - return $this->campaignFilter; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocale($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 setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter) - { - $this->siteFilter = $siteFilter; - } - public function getSiteFilter() - { - return $this->siteFilter; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTraffickerType($traffickerType) - { - $this->traffickerType = $traffickerType; - } - public function getTraffickerType() - { - return $this->traffickerType; - } - public function setUserAccessType($userAccessType) - { - $this->userAccessType = $userAccessType; - } - public function getUserAccessType() - { - return $this->userAccessType; - } - public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter) - { - $this->userRoleFilter = $userRoleFilter; - } - public function getUserRoleFilter() - { - return $this->userRoleFilter; - } - public function setUserRoleId($userRoleId) - { - $this->userRoleId = $userRoleId; - } - public function getUserRoleId() - { - return $this->userRoleId; - } -} - -class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection -{ - protected $collection_key = 'accountUserProfiles'; - protected $internal_gapi_mappings = array( - ); - protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile'; - protected $accountUserProfilesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAccountUserProfiles($accountUserProfiles) - { - $this->accountUserProfiles = $accountUserProfiles; - } - public function getAccountUserProfiles() - { - return $this->accountUserProfiles; - } - 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_AccountsListResponse extends Google_Collection -{ - protected $collection_key = 'accounts'; - protected $internal_gapi_mappings = array( - ); - protected $accountsType = 'Google_Service_Dfareporting_Account'; - protected $accountsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAccounts($accounts) - { - $this->accounts = $accounts; - } - public function getAccounts() - { - return $this->accounts; - } - 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_Activities extends Google_Collection -{ - protected $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filtersDataType = 'array'; - 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_Ad extends Google_Collection -{ - protected $collection_key = 'placementAssignments'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $audienceSegmentId; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; - protected $clickThroughUrlSuffixPropertiesDataType = ''; - public $comments; - public $compatibility; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; - protected $creativeGroupAssignmentsDataType = 'array'; - protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation'; - protected $creativeRotationDataType = ''; - protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting'; - protected $dayPartTargetingDataType = ''; - protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; - protected $defaultClickThroughEventTagPropertiesDataType = ''; - protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule'; - protected $deliveryScheduleDataType = ''; - public $dynamicClickTracker; - public $endTime; - protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; - protected $eventTagOverridesDataType = 'array'; - protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting'; - protected $geoTargetingDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression'; - protected $keyValueTargetingExpressionDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment'; - protected $placementAssignmentsDataType = 'array'; - protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression'; - protected $remarketingListExpressionDataType = ''; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslCompliant; - public $sslRequired; - public $startTime; - public $subaccountId; - protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting'; - protected $technologyTargetingDataType = ''; - public $type; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setAudienceSegmentId($audienceSegmentId) - { - $this->audienceSegmentId = $audienceSegmentId; - } - public function getAudienceSegmentId() - { - return $this->audienceSegmentId; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) - { - $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; - } - public function getClickThroughUrlSuffixProperties() - { - return $this->clickThroughUrlSuffixProperties; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setCreativeGroupAssignments($creativeGroupAssignments) - { - $this->creativeGroupAssignments = $creativeGroupAssignments; - } - public function getCreativeGroupAssignments() - { - return $this->creativeGroupAssignments; - } - public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation) - { - $this->creativeRotation = $creativeRotation; - } - public function getCreativeRotation() - { - return $this->creativeRotation; - } - public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting) - { - $this->dayPartTargeting = $dayPartTargeting; - } - public function getDayPartTargeting() - { - return $this->dayPartTargeting; - } - public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) - { - $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; - } - public function getDefaultClickThroughEventTagProperties() - { - return $this->defaultClickThroughEventTagProperties; - } - public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule) - { - $this->deliverySchedule = $deliverySchedule; - } - public function getDeliverySchedule() - { - return $this->deliverySchedule; - } - public function setDynamicClickTracker($dynamicClickTracker) - { - $this->dynamicClickTracker = $dynamicClickTracker; - } - public function getDynamicClickTracker() - { - return $this->dynamicClickTracker; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEventTagOverrides($eventTagOverrides) - { - $this->eventTagOverrides = $eventTagOverrides; - } - public function getEventTagOverrides() - { - return $this->eventTagOverrides; - } - public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting) - { - $this->geoTargeting = $geoTargeting; - } - public function getGeoTargeting() - { - return $this->geoTargeting; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression) - { - $this->keyValueTargetingExpression = $keyValueTargetingExpression; - } - public function getKeyValueTargetingExpression() - { - return $this->keyValueTargetingExpression; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPlacementAssignments($placementAssignments) - { - $this->placementAssignments = $placementAssignments; - } - public function getPlacementAssignments() - { - return $this->placementAssignments; - } - public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression) - { - $this->remarketingListExpression = $remarketingListExpression; - } - public function getRemarketingListExpression() - { - return $this->remarketingListExpression; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting) - { - $this->technologyTargeting = $technologyTargeting; - } - public function getTechnologyTargeting() - { - return $this->technologyTargeting; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dfareporting_AdSlot extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $comment; - public $compatibility; - public $height; - public $linkedPlacementId; - public $name; - public $paymentSourceType; - public $primary; - public $width; - - - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setLinkedPlacementId($linkedPlacementId) - { - $this->linkedPlacementId = $linkedPlacementId; - } - public function getLinkedPlacementId() - { - return $this->linkedPlacementId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPaymentSourceType($paymentSourceType) - { - $this->paymentSourceType = $paymentSourceType; - } - public function getPaymentSourceType() - { - return $this->paymentSourceType; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Dfareporting_AdsListResponse extends Google_Collection -{ - protected $collection_key = 'ads'; - protected $internal_gapi_mappings = array( - ); - protected $adsType = 'Google_Service_Dfareporting_Ad'; - protected $adsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAds($ads) - { - $this->ads = $ads; - } - public function getAds() - { - return $this->ads; - } - 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_Advertiser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserGroupId; - public $clickThroughUrlSuffix; - public $defaultClickThroughEventTagId; - public $defaultEmail; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - public $name; - public $originalFloodlightConfigurationId; - public $status; - public $subaccountId; - public $suspended; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdvertiserGroupId($advertiserGroupId) - { - $this->advertiserGroupId = $advertiserGroupId; - } - public function getAdvertiserGroupId() - { - return $this->advertiserGroupId; - } - public function setClickThroughUrlSuffix($clickThroughUrlSuffix) - { - $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; - } - public function getClickThroughUrlSuffix() - { - return $this->clickThroughUrlSuffix; - } - public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) - { - $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; - } - public function getDefaultClickThroughEventTagId() - { - return $this->defaultClickThroughEventTagId; - } - public function setDefaultEmail($defaultEmail) - { - $this->defaultEmail = $defaultEmail; - } - public function getDefaultEmail() - { - return $this->defaultEmail; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - 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 setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId) - { - $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId; - } - public function getOriginalFloodlightConfigurationId() - { - return $this->originalFloodlightConfigurationId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setSuspended($suspended) - { - $this->suspended = $suspended; - } - public function getSuspended() - { - return $this->suspended; - } -} - -class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'advertiserGroups'; - protected $internal_gapi_mappings = array( - ); - protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup'; - protected $advertiserGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAdvertiserGroups($advertiserGroups) - { - $this->advertiserGroups = $advertiserGroups; - } - public function getAdvertiserGroups() - { - return $this->advertiserGroups; - } - 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_AdvertisersListResponse extends Google_Collection -{ - protected $collection_key = 'advertisers'; - protected $internal_gapi_mappings = array( - ); - protected $advertisersType = 'Google_Service_Dfareporting_Advertiser'; - protected $advertisersDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setAdvertisers($advertisers) - { - $this->advertisers = $advertisers; - } - public function getAdvertisers() - { - return $this->advertisers; - } - 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_AudienceSegment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allocation; - public $id; - public $name; - - - public function setAllocation($allocation) - { - $this->allocation = $allocation; - } - public function getAllocation() - { - return $this->allocation; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection -{ - protected $collection_key = 'audienceSegments'; - protected $internal_gapi_mappings = array( - ); - protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment'; - protected $audienceSegmentsDataType = 'array'; - public $id; - public $name; - - - public function setAudienceSegments($audienceSegments) - { - $this->audienceSegments = $audienceSegments; - } - public function getAudienceSegments() - { - return $this->audienceSegments; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_Browser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $browserVersionId; - public $dartId; - public $kind; - public $majorVersion; - public $minorVersion; - public $name; - - - public function setBrowserVersionId($browserVersionId) - { - $this->browserVersionId = $browserVersionId; - } - public function getBrowserVersionId() - { - return $this->browserVersionId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMajorVersion($majorVersion) - { - $this->majorVersion = $majorVersion; - } - public function getMajorVersion() - { - return $this->majorVersion; - } - public function setMinorVersion($minorVersion) - { - $this->minorVersion = $minorVersion; - } - public function getMinorVersion() - { - return $this->minorVersion; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection -{ - protected $collection_key = 'browsers'; - protected $internal_gapi_mappings = array( - ); - protected $browsersType = 'Google_Service_Dfareporting_Browser'; - protected $browsersDataType = 'array'; - public $kind; - - - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } - public function getBrowsers() - { - return $this->browsers; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_Campaign extends Google_Collection -{ - protected $collection_key = 'traffickerEmails'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; - protected $additionalCreativeOptimizationConfigurationsDataType = 'array'; - public $advertiserGroupId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup'; - protected $audienceSegmentGroupsDataType = 'array'; - public $billingInvoiceCode; - protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; - protected $clickThroughUrlSuffixPropertiesDataType = ''; - public $comment; - public $comscoreVceEnabled; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $creativeGroupIds; - protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; - protected $creativeOptimizationConfigurationDataType = ''; - protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; - protected $defaultClickThroughEventTagPropertiesDataType = ''; - public $endDate; - protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; - protected $eventTagOverridesDataType = 'array'; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $name; - public $nielsenOcrEnabled; - public $startDate; - public $subaccountId; - public $traffickerEmails; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations) - { - $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations; - } - public function getAdditionalCreativeOptimizationConfigurations() - { - return $this->additionalCreativeOptimizationConfigurations; - } - public function setAdvertiserGroupId($advertiserGroupId) - { - $this->advertiserGroupId = $advertiserGroupId; - } - public function getAdvertiserGroupId() - { - return $this->advertiserGroupId; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setAudienceSegmentGroups($audienceSegmentGroups) - { - $this->audienceSegmentGroups = $audienceSegmentGroups; - } - public function getAudienceSegmentGroups() - { - return $this->audienceSegmentGroups; - } - public function setBillingInvoiceCode($billingInvoiceCode) - { - $this->billingInvoiceCode = $billingInvoiceCode; - } - public function getBillingInvoiceCode() - { - return $this->billingInvoiceCode; - } - public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) - { - $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; - } - public function getClickThroughUrlSuffixProperties() - { - return $this->clickThroughUrlSuffixProperties; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setComscoreVceEnabled($comscoreVceEnabled) - { - $this->comscoreVceEnabled = $comscoreVceEnabled; - } - public function getComscoreVceEnabled() - { - return $this->comscoreVceEnabled; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setCreativeGroupIds($creativeGroupIds) - { - $this->creativeGroupIds = $creativeGroupIds; - } - public function getCreativeGroupIds() - { - return $this->creativeGroupIds; - } - public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration) - { - $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration; - } - public function getCreativeOptimizationConfiguration() - { - return $this->creativeOptimizationConfiguration; - } - public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) - { - $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; - } - public function getDefaultClickThroughEventTagProperties() - { - return $this->defaultClickThroughEventTagProperties; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setEventTagOverrides($eventTagOverrides) - { - $this->eventTagOverrides = $eventTagOverrides; - } - public function getEventTagOverrides() - { - return $this->eventTagOverrides; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNielsenOcrEnabled($nielsenOcrEnabled) - { - $this->nielsenOcrEnabled = $nielsenOcrEnabled; - } - public function getNielsenOcrEnabled() - { - return $this->nielsenOcrEnabled; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTraffickerEmails($traffickerEmails) - { - $this->traffickerEmails = $traffickerEmails; - } - public function getTraffickerEmails() - { - return $this->traffickerEmails; - } -} - -class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeId; - public $kind; - - - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection -{ - protected $collection_key = 'campaignCreativeAssociations'; - protected $internal_gapi_mappings = array( - ); - protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation'; - protected $campaignCreativeAssociationsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCampaignCreativeAssociations($campaignCreativeAssociations) - { - $this->campaignCreativeAssociations = $campaignCreativeAssociations; - } - public function getCampaignCreativeAssociations() - { - return $this->campaignCreativeAssociations; - } - 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_CampaignsListResponse extends Google_Collection -{ - protected $collection_key = 'campaigns'; - protected $internal_gapi_mappings = array( - ); - protected $campaignsType = 'Google_Service_Dfareporting_Campaign'; - protected $campaignsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCampaigns($campaigns) - { - $this->campaigns = $campaigns; - } - public function getCampaigns() - { - return $this->campaigns; - } - 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_ChangeLog extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $action; - public $changeTime; - public $fieldName; - public $id; - public $kind; - public $newValue; - public $objectId; - public $objectType; - public $oldValue; - public $subaccountId; - public $transactionId; - public $userProfileId; - public $userProfileName; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setChangeTime($changeTime) - { - $this->changeTime = $changeTime; - } - public function getChangeTime() - { - return $this->changeTime; - } - public function setFieldName($fieldName) - { - $this->fieldName = $fieldName; - } - public function getFieldName() - { - return $this->fieldName; - } - 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 setNewValue($newValue) - { - $this->newValue = $newValue; - } - public function getNewValue() - { - return $this->newValue; - } - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - public function getObjectId() - { - return $this->objectId; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOldValue($oldValue) - { - $this->oldValue = $oldValue; - } - public function getOldValue() - { - return $this->oldValue; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTransactionId($transactionId) - { - $this->transactionId = $transactionId; - } - public function getTransactionId() - { - return $this->transactionId; - } - public function setUserProfileId($userProfileId) - { - $this->userProfileId = $userProfileId; - } - public function getUserProfileId() - { - return $this->userProfileId; - } - public function setUserProfileName($userProfileName) - { - $this->userProfileName = $userProfileName; - } - public function getUserProfileName() - { - return $this->userProfileName; - } -} - -class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection -{ - protected $collection_key = 'changeLogs'; - protected $internal_gapi_mappings = array( - ); - protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog'; - protected $changeLogsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setChangeLogs($changeLogs) - { - $this->changeLogs = $changeLogs; - } - public function getChangeLogs() - { - return $this->changeLogs; - } - 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_CitiesListResponse extends Google_Collection -{ - protected $collection_key = 'cities'; - protected $internal_gapi_mappings = array( - ); - protected $citiesType = 'Google_Service_Dfareporting_City'; - protected $citiesDataType = 'array'; - public $kind; - - - public function setCities($cities) - { - $this->cities = $cities; - } - public function getCities() - { - return $this->cities; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_City extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $kind; - public $metroCode; - public $metroDmaId; - public $name; - public $regionCode; - public $regionDartId; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetroCode($metroCode) - { - $this->metroCode = $metroCode; - } - public function getMetroCode() - { - return $this->metroCode; - } - public function setMetroDmaId($metroDmaId) - { - $this->metroDmaId = $metroDmaId; - } - public function getMetroDmaId() - { - return $this->metroDmaId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRegionCode($regionCode) - { - $this->regionCode = $regionCode; - } - public function getRegionCode() - { - return $this->regionCode; - } - public function setRegionDartId($regionDartId) - { - $this->regionDartId = $regionDartId; - } - public function getRegionDartId() - { - return $this->regionDartId; - } -} - -class Google_Service_Dfareporting_ClickTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $eventName; - public $name; - public $value; - - - public function setEventName($eventName) - { - $this->eventName = $eventName; - } - public function getEventName() - { - return $this->eventName; - } - 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_Dfareporting_ClickThroughUrl extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $computedClickThroughUrl; - public $customClickThroughUrl; - public $defaultLandingPage; - public $landingPageId; - - - public function setComputedClickThroughUrl($computedClickThroughUrl) - { - $this->computedClickThroughUrl = $computedClickThroughUrl; - } - public function getComputedClickThroughUrl() - { - return $this->computedClickThroughUrl; - } - public function setCustomClickThroughUrl($customClickThroughUrl) - { - $this->customClickThroughUrl = $customClickThroughUrl; - } - public function getCustomClickThroughUrl() - { - return $this->customClickThroughUrl; - } - public function setDefaultLandingPage($defaultLandingPage) - { - $this->defaultLandingPage = $defaultLandingPage; - } - public function getDefaultLandingPage() - { - return $this->defaultLandingPage; - } - public function setLandingPageId($landingPageId) - { - $this->landingPageId = $landingPageId; - } - public function getLandingPageId() - { - return $this->landingPageId; - } -} - -class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickThroughUrlSuffix; - public $overrideInheritedSuffix; - - - public function setClickThroughUrlSuffix($clickThroughUrlSuffix) - { - $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; - } - public function getClickThroughUrlSuffix() - { - return $this->clickThroughUrlSuffix; - } - public function setOverrideInheritedSuffix($overrideInheritedSuffix) - { - $this->overrideInheritedSuffix = $overrideInheritedSuffix; - } - public function getOverrideInheritedSuffix() - { - return $this->overrideInheritedSuffix; - } -} - -class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - public $creativeId; - - - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } -} - -class Google_Service_Dfareporting_CompatibleFields extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; - protected $crossDimensionReachReportCompatibleFieldsDataType = ''; - protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; - protected $floodlightReportCompatibleFieldsDataType = ''; - public $kind; - protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; - protected $pathToConversionReportCompatibleFieldsDataType = ''; - protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; - protected $reachReportCompatibleFieldsDataType = ''; - protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; - protected $reportCompatibleFieldsDataType = ''; - - - public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) - { - $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; - } - public function getCrossDimensionReachReportCompatibleFields() - { - return $this->crossDimensionReachReportCompatibleFields; - } - public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) - { - $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; - } - public function getFloodlightReportCompatibleFields() - { - return $this->floodlightReportCompatibleFields; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) - { - $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; - } - public function getPathToConversionReportCompatibleFields() - { - return $this->pathToConversionReportCompatibleFields; - } - public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) - { - $this->reachReportCompatibleFields = $reachReportCompatibleFields; - } - public function getReachReportCompatibleFields() - { - return $this->reachReportCompatibleFields; - } - public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) - { - $this->reportCompatibleFields = $reportCompatibleFields; - } - public function getReportCompatibleFields() - { - return $this->reportCompatibleFields; - } -} - -class Google_Service_Dfareporting_ConnectionType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_ConnectionTypesListResponse extends Google_Collection -{ - protected $collection_key = 'connectionTypes'; - protected $internal_gapi_mappings = array( - ); - protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; - protected $connectionTypesDataType = 'array'; - public $kind; - - - public function setConnectionTypes($connectionTypes) - { - $this->connectionTypes = $connectionTypes; - } - public function getConnectionTypes() - { - return $this->connectionTypes; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection -{ - protected $collection_key = 'contentCategories'; - protected $internal_gapi_mappings = array( - ); - protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory'; - protected $contentCategoriesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setContentCategories($contentCategories) - { - $this->contentCategories = $contentCategories; - } - public function getContentCategories() - { - return $this->contentCategories; - } - 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_ContentCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection -{ - protected $collection_key = 'countries'; - protected $internal_gapi_mappings = array( - ); - protected $countriesType = 'Google_Service_Dfareporting_Country'; - protected $countriesDataType = 'array'; - public $kind; - - - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_Country extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $dartId; - public $kind; - public $name; - public $sslEnabled; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - 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 setSslEnabled($sslEnabled) - { - $this->sslEnabled = $sslEnabled; - } - public function getSslEnabled() - { - return $this->sslEnabled; - } -} - -class Google_Service_Dfareporting_Creative extends Google_Collection -{ - protected $collection_key = 'timerCustomEvents'; - protected $internal_gapi_mappings = array( - "autoAdvanceImages" => "auto_advance_images", - ); - public $accountId; - public $active; - public $adParameters; - public $adTagKeys; - public $advertiserId; - public $allowScriptAccess; - public $archived; - public $artworkType; - public $authoringSource; - public $authoringTool; - public $autoAdvanceImages; - public $backgroundColor; - public $backupImageClickThroughUrl; - public $backupImageFeatures; - public $backupImageReportingLabel; - protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow'; - protected $backupImageTargetWindowDataType = ''; - protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; - protected $clickTagsDataType = 'array'; - public $commercialId; - public $companionCreatives; - public $compatibility; - public $convertFlashToHtml5; - protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $counterCustomEventsDataType = 'array'; - protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; - protected $creativeAssetsDataType = 'array'; - protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment'; - protected $creativeFieldAssignmentsDataType = 'array'; - public $customKeyValues; - protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $exitCustomEventsDataType = 'array'; - protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand'; - protected $fsCommandDataType = ''; - public $htmlCode; - public $htmlCodeLocked; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $latestTraffickedCreativeId; - public $name; - public $overrideCss; - public $redirectUrl; - public $renderingId; - protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $renderingIdDimensionValueDataType = ''; - public $requiredFlashPluginVersion; - public $requiredFlashVersion; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $skippable; - public $sslCompliant; - public $sslOverride; - public $studioAdvertiserId; - public $studioCreativeId; - public $studioTraffickedCreativeId; - public $subaccountId; - public $thirdPartyBackupImageImpressionsUrl; - public $thirdPartyRichMediaImpressionsUrl; - protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl'; - protected $thirdPartyUrlsDataType = 'array'; - protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $timerCustomEventsDataType = 'array'; - public $totalFileSize; - public $type; - public $version; - public $videoDescription; - public $videoDuration; - - - 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 setAdParameters($adParameters) - { - $this->adParameters = $adParameters; - } - public function getAdParameters() - { - return $this->adParameters; - } - public function setAdTagKeys($adTagKeys) - { - $this->adTagKeys = $adTagKeys; - } - public function getAdTagKeys() - { - return $this->adTagKeys; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAllowScriptAccess($allowScriptAccess) - { - $this->allowScriptAccess = $allowScriptAccess; - } - public function getAllowScriptAccess() - { - return $this->allowScriptAccess; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setAuthoringSource($authoringSource) - { - $this->authoringSource = $authoringSource; - } - public function getAuthoringSource() - { - return $this->authoringSource; - } - public function setAuthoringTool($authoringTool) - { - $this->authoringTool = $authoringTool; - } - public function getAuthoringTool() - { - return $this->authoringTool; - } - public function setAutoAdvanceImages($autoAdvanceImages) - { - $this->autoAdvanceImages = $autoAdvanceImages; - } - public function getAutoAdvanceImages() - { - return $this->autoAdvanceImages; - } - public function setBackgroundColor($backgroundColor) - { - $this->backgroundColor = $backgroundColor; - } - public function getBackgroundColor() - { - return $this->backgroundColor; - } - public function setBackupImageClickThroughUrl($backupImageClickThroughUrl) - { - $this->backupImageClickThroughUrl = $backupImageClickThroughUrl; - } - public function getBackupImageClickThroughUrl() - { - return $this->backupImageClickThroughUrl; - } - public function setBackupImageFeatures($backupImageFeatures) - { - $this->backupImageFeatures = $backupImageFeatures; - } - public function getBackupImageFeatures() - { - return $this->backupImageFeatures; - } - public function setBackupImageReportingLabel($backupImageReportingLabel) - { - $this->backupImageReportingLabel = $backupImageReportingLabel; - } - public function getBackupImageReportingLabel() - { - return $this->backupImageReportingLabel; - } - public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow) - { - $this->backupImageTargetWindow = $backupImageTargetWindow; - } - public function getBackupImageTargetWindow() - { - return $this->backupImageTargetWindow; - } - public function setClickTags($clickTags) - { - $this->clickTags = $clickTags; - } - public function getClickTags() - { - return $this->clickTags; - } - public function setCommercialId($commercialId) - { - $this->commercialId = $commercialId; - } - public function getCommercialId() - { - return $this->commercialId; - } - public function setCompanionCreatives($companionCreatives) - { - $this->companionCreatives = $companionCreatives; - } - public function getCompanionCreatives() - { - return $this->companionCreatives; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setConvertFlashToHtml5($convertFlashToHtml5) - { - $this->convertFlashToHtml5 = $convertFlashToHtml5; - } - public function getConvertFlashToHtml5() - { - return $this->convertFlashToHtml5; - } - public function setCounterCustomEvents($counterCustomEvents) - { - $this->counterCustomEvents = $counterCustomEvents; - } - public function getCounterCustomEvents() - { - return $this->counterCustomEvents; - } - public function setCreativeAssets($creativeAssets) - { - $this->creativeAssets = $creativeAssets; - } - public function getCreativeAssets() - { - return $this->creativeAssets; - } - public function setCreativeFieldAssignments($creativeFieldAssignments) - { - $this->creativeFieldAssignments = $creativeFieldAssignments; - } - public function getCreativeFieldAssignments() - { - return $this->creativeFieldAssignments; - } - public function setCustomKeyValues($customKeyValues) - { - $this->customKeyValues = $customKeyValues; - } - public function getCustomKeyValues() - { - return $this->customKeyValues; - } - public function setExitCustomEvents($exitCustomEvents) - { - $this->exitCustomEvents = $exitCustomEvents; - } - public function getExitCustomEvents() - { - return $this->exitCustomEvents; - } - public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand) - { - $this->fsCommand = $fsCommand; - } - public function getFsCommand() - { - return $this->fsCommand; - } - public function setHtmlCode($htmlCode) - { - $this->htmlCode = $htmlCode; - } - public function getHtmlCode() - { - return $this->htmlCode; - } - public function setHtmlCodeLocked($htmlCodeLocked) - { - $this->htmlCodeLocked = $htmlCodeLocked; - } - public function getHtmlCodeLocked() - { - return $this->htmlCodeLocked; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLatestTraffickedCreativeId($latestTraffickedCreativeId) - { - $this->latestTraffickedCreativeId = $latestTraffickedCreativeId; - } - public function getLatestTraffickedCreativeId() - { - return $this->latestTraffickedCreativeId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverrideCss($overrideCss) - { - $this->overrideCss = $overrideCss; - } - public function getOverrideCss() - { - return $this->overrideCss; - } - public function setRedirectUrl($redirectUrl) - { - $this->redirectUrl = $redirectUrl; - } - public function getRedirectUrl() - { - return $this->redirectUrl; - } - public function setRenderingId($renderingId) - { - $this->renderingId = $renderingId; - } - public function getRenderingId() - { - return $this->renderingId; - } - public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue) - { - $this->renderingIdDimensionValue = $renderingIdDimensionValue; - } - public function getRenderingIdDimensionValue() - { - return $this->renderingIdDimensionValue; - } - public function setRequiredFlashPluginVersion($requiredFlashPluginVersion) - { - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - } - public function getRequiredFlashPluginVersion() - { - return $this->requiredFlashPluginVersion; - } - public function setRequiredFlashVersion($requiredFlashVersion) - { - $this->requiredFlashVersion = $requiredFlashVersion; - } - public function getRequiredFlashVersion() - { - return $this->requiredFlashVersion; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSkippable($skippable) - { - $this->skippable = $skippable; - } - public function getSkippable() - { - return $this->skippable; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setSslOverride($sslOverride) - { - $this->sslOverride = $sslOverride; - } - public function getSslOverride() - { - return $this->sslOverride; - } - public function setStudioAdvertiserId($studioAdvertiserId) - { - $this->studioAdvertiserId = $studioAdvertiserId; - } - public function getStudioAdvertiserId() - { - return $this->studioAdvertiserId; - } - public function setStudioCreativeId($studioCreativeId) - { - $this->studioCreativeId = $studioCreativeId; - } - public function getStudioCreativeId() - { - return $this->studioCreativeId; - } - public function setStudioTraffickedCreativeId($studioTraffickedCreativeId) - { - $this->studioTraffickedCreativeId = $studioTraffickedCreativeId; - } - public function getStudioTraffickedCreativeId() - { - return $this->studioTraffickedCreativeId; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl) - { - $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl; - } - public function getThirdPartyBackupImageImpressionsUrl() - { - return $this->thirdPartyBackupImageImpressionsUrl; - } - public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl) - { - $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl; - } - public function getThirdPartyRichMediaImpressionsUrl() - { - return $this->thirdPartyRichMediaImpressionsUrl; - } - public function setThirdPartyUrls($thirdPartyUrls) - { - $this->thirdPartyUrls = $thirdPartyUrls; - } - public function getThirdPartyUrls() - { - return $this->thirdPartyUrls; - } - public function setTimerCustomEvents($timerCustomEvents) - { - $this->timerCustomEvents = $timerCustomEvents; - } - public function getTimerCustomEvents() - { - return $this->timerCustomEvents; - } - public function setTotalFileSize($totalFileSize) - { - $this->totalFileSize = $totalFileSize; - } - public function getTotalFileSize() - { - return $this->totalFileSize; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - public function setVideoDescription($videoDescription) - { - $this->videoDescription = $videoDescription; - } - public function getVideoDescription() - { - return $this->videoDescription; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } -} - -class Google_Service_Dfareporting_CreativeAsset extends Google_Collection -{ - protected $collection_key = 'detectedFeatures'; - protected $internal_gapi_mappings = array( - ); - public $actionScript3; - public $active; - public $alignment; - public $artworkType; - protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; - protected $assetIdentifierDataType = ''; - protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; - protected $backupImageExitDataType = ''; - public $bitRate; - public $childAssetType; - protected $collapsedSizeType = 'Google_Service_Dfareporting_Size'; - protected $collapsedSizeDataType = ''; - public $customStartTimeValue; - public $detectedFeatures; - public $displayType; - public $duration; - public $durationType; - protected $expandedDimensionType = 'Google_Service_Dfareporting_Size'; - protected $expandedDimensionDataType = ''; - public $fileSize; - public $flashVersion; - public $hideFlashObjects; - public $hideSelectionBoxes; - public $horizontallyLocked; - public $id; - public $mimeType; - protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $offsetDataType = ''; - public $originalBackup; - protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $positionDataType = ''; - public $positionLeftUnit; - public $positionTopUnit; - public $progressiveServingUrl; - public $pushdown; - public $pushdownDuration; - public $role; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslCompliant; - public $startTimeType; - public $streamingServingUrl; - public $transparency; - public $verticallyLocked; - public $videoDuration; - public $windowMode; - public $zIndex; - public $zipFilename; - public $zipFilesize; - - - public function setActionScript3($actionScript3) - { - $this->actionScript3 = $actionScript3; - } - public function getActionScript3() - { - return $this->actionScript3; - } - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setAlignment($alignment) - { - $this->alignment = $alignment; - } - public function getAlignment() - { - return $this->alignment; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) - { - $this->assetIdentifier = $assetIdentifier; - } - public function getAssetIdentifier() - { - return $this->assetIdentifier; - } - public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit) - { - $this->backupImageExit = $backupImageExit; - } - public function getBackupImageExit() - { - return $this->backupImageExit; - } - public function setBitRate($bitRate) - { - $this->bitRate = $bitRate; - } - public function getBitRate() - { - return $this->bitRate; - } - public function setChildAssetType($childAssetType) - { - $this->childAssetType = $childAssetType; - } - public function getChildAssetType() - { - return $this->childAssetType; - } - public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize) - { - $this->collapsedSize = $collapsedSize; - } - public function getCollapsedSize() - { - return $this->collapsedSize; - } - public function setCustomStartTimeValue($customStartTimeValue) - { - $this->customStartTimeValue = $customStartTimeValue; - } - public function getCustomStartTimeValue() - { - return $this->customStartTimeValue; - } - public function setDetectedFeatures($detectedFeatures) - { - $this->detectedFeatures = $detectedFeatures; - } - public function getDetectedFeatures() - { - return $this->detectedFeatures; - } - public function setDisplayType($displayType) - { - $this->displayType = $displayType; - } - public function getDisplayType() - { - return $this->displayType; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setDurationType($durationType) - { - $this->durationType = $durationType; - } - public function getDurationType() - { - return $this->durationType; - } - public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension) - { - $this->expandedDimension = $expandedDimension; - } - public function getExpandedDimension() - { - return $this->expandedDimension; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setFlashVersion($flashVersion) - { - $this->flashVersion = $flashVersion; - } - public function getFlashVersion() - { - return $this->flashVersion; - } - public function setHideFlashObjects($hideFlashObjects) - { - $this->hideFlashObjects = $hideFlashObjects; - } - public function getHideFlashObjects() - { - return $this->hideFlashObjects; - } - public function setHideSelectionBoxes($hideSelectionBoxes) - { - $this->hideSelectionBoxes = $hideSelectionBoxes; - } - public function getHideSelectionBoxes() - { - return $this->hideSelectionBoxes; - } - public function setHorizontallyLocked($horizontallyLocked) - { - $this->horizontallyLocked = $horizontallyLocked; - } - public function getHorizontallyLocked() - { - return $this->horizontallyLocked; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setOriginalBackup($originalBackup) - { - $this->originalBackup = $originalBackup; - } - public function getOriginalBackup() - { - return $this->originalBackup; - } - public function setPosition(Google_Service_Dfareporting_OffsetPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setPositionLeftUnit($positionLeftUnit) - { - $this->positionLeftUnit = $positionLeftUnit; - } - public function getPositionLeftUnit() - { - return $this->positionLeftUnit; - } - public function setPositionTopUnit($positionTopUnit) - { - $this->positionTopUnit = $positionTopUnit; - } - public function getPositionTopUnit() - { - return $this->positionTopUnit; - } - public function setProgressiveServingUrl($progressiveServingUrl) - { - $this->progressiveServingUrl = $progressiveServingUrl; - } - public function getProgressiveServingUrl() - { - return $this->progressiveServingUrl; - } - public function setPushdown($pushdown) - { - $this->pushdown = $pushdown; - } - public function getPushdown() - { - return $this->pushdown; - } - public function setPushdownDuration($pushdownDuration) - { - $this->pushdownDuration = $pushdownDuration; - } - public function getPushdownDuration() - { - return $this->pushdownDuration; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStartTimeType($startTimeType) - { - $this->startTimeType = $startTimeType; - } - public function getStartTimeType() - { - return $this->startTimeType; - } - public function setStreamingServingUrl($streamingServingUrl) - { - $this->streamingServingUrl = $streamingServingUrl; - } - public function getStreamingServingUrl() - { - return $this->streamingServingUrl; - } - public function setTransparency($transparency) - { - $this->transparency = $transparency; - } - public function getTransparency() - { - return $this->transparency; - } - public function setVerticallyLocked($verticallyLocked) - { - $this->verticallyLocked = $verticallyLocked; - } - public function getVerticallyLocked() - { - return $this->verticallyLocked; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } - public function setWindowMode($windowMode) - { - $this->windowMode = $windowMode; - } - public function getWindowMode() - { - return $this->windowMode; - } - public function setZIndex($zIndex) - { - $this->zIndex = $zIndex; - } - public function getZIndex() - { - return $this->zIndex; - } - public function setZipFilename($zipFilename) - { - $this->zipFilename = $zipFilename; - } - public function getZipFilename() - { - return $this->zipFilename; - } - public function setZipFilesize($zipFilesize) - { - $this->zipFilesize = $zipFilesize; - } - public function getZipFilesize() - { - return $this->zipFilesize; - } -} - -class Google_Service_Dfareporting_CreativeAssetId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $type; - - - 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_Dfareporting_CreativeAssetMetadata extends Google_Collection -{ - protected $collection_key = 'warnedValidationRules'; - protected $internal_gapi_mappings = array( - ); - protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; - protected $assetIdentifierDataType = ''; - protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; - protected $clickTagsDataType = 'array'; - public $detectedFeatures; - public $kind; - public $warnedValidationRules; - - - public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) - { - $this->assetIdentifier = $assetIdentifier; - } - public function getAssetIdentifier() - { - return $this->assetIdentifier; - } - public function setClickTags($clickTags) - { - $this->clickTags = $clickTags; - } - public function getClickTags() - { - return $this->clickTags; - } - public function setDetectedFeatures($detectedFeatures) - { - $this->detectedFeatures = $detectedFeatures; - } - public function getDetectedFeatures() - { - return $this->detectedFeatures; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setWarnedValidationRules($warnedValidationRules) - { - $this->warnedValidationRules = $warnedValidationRules; - } - public function getWarnedValidationRules() - { - return $this->warnedValidationRules; - } -} - -class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection -{ - protected $collection_key = 'richMediaExitOverrides'; - protected $internal_gapi_mappings = array( - ); - public $active; - public $applyEventTags; - protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; - protected $clickThroughUrlDataType = ''; - protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride'; - protected $companionCreativeOverridesDataType = 'array'; - protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; - protected $creativeGroupAssignmentsDataType = 'array'; - public $creativeId; - protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $creativeIdDimensionValueDataType = ''; - public $endTime; - protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride'; - protected $richMediaExitOverridesDataType = 'array'; - public $sequence; - public $sslCompliant; - public $startTime; - public $weight; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setApplyEventTags($applyEventTags) - { - $this->applyEventTags = $applyEventTags; - } - public function getApplyEventTags() - { - return $this->applyEventTags; - } - public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } - public function setCompanionCreativeOverrides($companionCreativeOverrides) - { - $this->companionCreativeOverrides = $companionCreativeOverrides; - } - public function getCompanionCreativeOverrides() - { - return $this->companionCreativeOverrides; - } - public function setCreativeGroupAssignments($creativeGroupAssignments) - { - $this->creativeGroupAssignments = $creativeGroupAssignments; - } - public function getCreativeGroupAssignments() - { - return $this->creativeGroupAssignments; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue) - { - $this->creativeIdDimensionValue = $creativeIdDimensionValue; - } - public function getCreativeIdDimensionValue() - { - return $this->creativeIdDimensionValue; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setRichMediaExitOverrides($richMediaExitOverrides) - { - $this->richMediaExitOverrides = $richMediaExitOverrides; - } - public function getRichMediaExitOverrides() - { - return $this->richMediaExitOverrides; - } - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - public function getSequence() - { - return $this->sequence; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setWeight($weight) - { - $this->weight = $weight; - } - public function getWeight() - { - return $this->weight; - } -} - -class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $advertiserCustomEventId; - public $advertiserCustomEventName; - public $advertiserCustomEventType; - public $artworkLabel; - public $artworkType; - public $exitUrl; - public $id; - protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties'; - protected $popupWindowPropertiesDataType = ''; - public $targetType; - public $videoReportingId; - - - public function setAdvertiserCustomEventId($advertiserCustomEventId) - { - $this->advertiserCustomEventId = $advertiserCustomEventId; - } - public function getAdvertiserCustomEventId() - { - return $this->advertiserCustomEventId; - } - public function setAdvertiserCustomEventName($advertiserCustomEventName) - { - $this->advertiserCustomEventName = $advertiserCustomEventName; - } - public function getAdvertiserCustomEventName() - { - return $this->advertiserCustomEventName; - } - public function setAdvertiserCustomEventType($advertiserCustomEventType) - { - $this->advertiserCustomEventType = $advertiserCustomEventType; - } - public function getAdvertiserCustomEventType() - { - return $this->advertiserCustomEventType; - } - public function setArtworkLabel($artworkLabel) - { - $this->artworkLabel = $artworkLabel; - } - public function getArtworkLabel() - { - return $this->artworkLabel; - } - public function setArtworkType($artworkType) - { - $this->artworkType = $artworkType; - } - public function getArtworkType() - { - return $this->artworkType; - } - public function setExitUrl($exitUrl) - { - $this->exitUrl = $exitUrl; - } - public function getExitUrl() - { - return $this->exitUrl; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties) - { - $this->popupWindowProperties = $popupWindowProperties; - } - public function getPopupWindowProperties() - { - return $this->popupWindowProperties; - } - public function setTargetType($targetType) - { - $this->targetType = $targetType; - } - public function getTargetType() - { - return $this->targetType; - } - public function setVideoReportingId($videoReportingId) - { - $this->videoReportingId = $videoReportingId; - } - public function getVideoReportingId() - { - return $this->videoReportingId; - } -} - -class Google_Service_Dfareporting_CreativeField extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $id; - public $kind; - public $name; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeFieldId; - public $creativeFieldValueId; - - - public function setCreativeFieldId($creativeFieldId) - { - $this->creativeFieldId = $creativeFieldId; - } - public function getCreativeFieldId() - { - return $this->creativeFieldId; - } - public function setCreativeFieldValueId($creativeFieldValueId) - { - $this->creativeFieldValueId = $creativeFieldValueId; - } - public function getCreativeFieldValueId() - { - return $this->creativeFieldValueId; - } -} - -class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $value; - - - 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_CreativeFieldValuesListResponse extends Google_Collection -{ - protected $collection_key = 'creativeFieldValues'; - protected $internal_gapi_mappings = array( - ); - protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue'; - protected $creativeFieldValuesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeFieldValues($creativeFieldValues) - { - $this->creativeFieldValues = $creativeFieldValues; - } - public function getCreativeFieldValues() - { - return $this->creativeFieldValues; - } - 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_CreativeFieldsListResponse extends Google_Collection -{ - protected $collection_key = 'creativeFields'; - protected $internal_gapi_mappings = array( - ); - protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField'; - protected $creativeFieldsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeFields($creativeFields) - { - $this->creativeFields = $creativeFields; - } - public function getCreativeFields() - { - return $this->creativeFields; - } - 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_CreativeGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $groupNumber; - public $id; - public $kind; - public $name; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setGroupNumber($groupNumber) - { - $this->groupNumber = $groupNumber; - } - public function getGroupNumber() - { - return $this->groupNumber; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creativeGroupId; - public $creativeGroupNumber; - - - public function setCreativeGroupId($creativeGroupId) - { - $this->creativeGroupId = $creativeGroupId; - } - public function getCreativeGroupId() - { - return $this->creativeGroupId; - } - public function setCreativeGroupNumber($creativeGroupNumber) - { - $this->creativeGroupNumber = $creativeGroupNumber; - } - public function getCreativeGroupNumber() - { - return $this->creativeGroupNumber; - } -} - -class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'creativeGroups'; - protected $internal_gapi_mappings = array( - ); - protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup'; - protected $creativeGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreativeGroups($creativeGroups) - { - $this->creativeGroups = $creativeGroups; - } - public function getCreativeGroups() - { - return $this->creativeGroups; - } - 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_CreativeOptimizationConfiguration extends Google_Collection -{ - protected $collection_key = 'optimizationActivitys'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity'; - protected $optimizationActivitysDataType = 'array'; - public $optimizationModel; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptimizationActivitys($optimizationActivitys) - { - $this->optimizationActivitys = $optimizationActivitys; - } - public function getOptimizationActivitys() - { - return $this->optimizationActivitys; - } - public function setOptimizationModel($optimizationModel) - { - $this->optimizationModel = $optimizationModel; - } - public function getOptimizationModel() - { - return $this->optimizationModel; - } -} - -class Google_Service_Dfareporting_CreativeRotation extends Google_Collection -{ - protected $collection_key = 'creativeAssignments'; - protected $internal_gapi_mappings = array( - ); - protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment'; - protected $creativeAssignmentsDataType = 'array'; - public $creativeOptimizationConfigurationId; - public $type; - public $weightCalculationStrategy; - - - public function setCreativeAssignments($creativeAssignments) - { - $this->creativeAssignments = $creativeAssignments; - } - public function getCreativeAssignments() - { - return $this->creativeAssignments; - } - public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId) - { - $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId; - } - public function getCreativeOptimizationConfigurationId() - { - return $this->creativeOptimizationConfigurationId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWeightCalculationStrategy($weightCalculationStrategy) - { - $this->weightCalculationStrategy = $weightCalculationStrategy; - } - public function getWeightCalculationStrategy() - { - return $this->weightCalculationStrategy; - } -} - -class Google_Service_Dfareporting_CreativeSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $iFrameFooter; - public $iFrameHeader; - - - public function setIFrameFooter($iFrameFooter) - { - $this->iFrameFooter = $iFrameFooter; - } - public function getIFrameFooter() - { - return $this->iFrameFooter; - } - public function setIFrameHeader($iFrameHeader) - { - $this->iFrameHeader = $iFrameHeader; - } - public function getIFrameHeader() - { - return $this->iFrameHeader; - } -} - -class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection -{ - protected $collection_key = 'creatives'; - protected $internal_gapi_mappings = array( - ); - protected $creativesType = 'Google_Service_Dfareporting_Creative'; - protected $creativesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setCreatives($creatives) - { - $this->creatives = $creatives; - } - public function getCreatives() - { - return $this->creatives; - } - 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_CrossDimensionReachReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'overlapMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; - protected $breakdownDataType = 'array'; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $overlapMetricsDataType = 'array'; - - - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } - public function getBreakdown() - { - return $this->breakdown; - } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setOverlapMetrics($overlapMetrics) - { - $this->overlapMetrics = $overlapMetrics; - } - public function getOverlapMetrics() - { - return $this->overlapMetrics; - } -} - -class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection -{ - protected $collection_key = 'filteredEventIds'; - protected $internal_gapi_mappings = array( - ); - protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filteredEventIdsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_DayPartTargeting extends Google_Collection -{ - protected $collection_key = 'hoursOfDay'; - protected $internal_gapi_mappings = array( - ); - public $daysOfWeek; - public $hoursOfDay; - public $userLocalTime; - - - public function setDaysOfWeek($daysOfWeek) - { - $this->daysOfWeek = $daysOfWeek; - } - public function getDaysOfWeek() - { - return $this->daysOfWeek; - } - public function setHoursOfDay($hoursOfDay) - { - $this->hoursOfDay = $hoursOfDay; - } - public function getHoursOfDay() - { - return $this->hoursOfDay; - } - public function setUserLocalTime($userLocalTime) - { - $this->userLocalTime = $userLocalTime; - } - public function getUserLocalTime() - { - return $this->userLocalTime; - } -} - -class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $defaultClickThroughEventTagId; - public $overrideInheritedEventTag; - - - public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) - { - $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; - } - public function getDefaultClickThroughEventTagId() - { - return $this->defaultClickThroughEventTagId; - } - public function setOverrideInheritedEventTag($overrideInheritedEventTag) - { - $this->overrideInheritedEventTag = $overrideInheritedEventTag; - } - public function getOverrideInheritedEventTag() - { - return $this->overrideInheritedEventTag; - } -} - -class Google_Service_Dfareporting_DeliverySchedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap'; - protected $frequencyCapDataType = ''; - public $hardCutoff; - public $impressionRatio; - public $priority; - - - public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap) - { - $this->frequencyCap = $frequencyCap; - } - public function getFrequencyCap() - { - return $this->frequencyCap; - } - public function setHardCutoff($hardCutoff) - { - $this->hardCutoff = $hardCutoff; - } - public function getHardCutoff() - { - return $this->hardCutoff; - } - public function setImpressionRatio($impressionRatio) - { - $this->impressionRatio = $impressionRatio; - } - public function getImpressionRatio() - { - return $this->impressionRatio; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } -} - -class Google_Service_Dfareporting_DfareportingFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $etag; - public $fileName; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $reportId; - public $status; - protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; - protected $urlsDataType = ''; - - - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_DfpSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - "dfpNetworkCode" => "dfp_network_code", - "dfpNetworkName" => "dfp_network_name", - ); - public $dfpNetworkCode; - public $dfpNetworkName; - public $programmaticPlacementAccepted; - public $pubPaidPlacementAccepted; - public $publisherPortalOnly; - - - public function setDfpNetworkCode($dfpNetworkCode) - { - $this->dfpNetworkCode = $dfpNetworkCode; - } - public function getDfpNetworkCode() - { - return $this->dfpNetworkCode; - } - public function setDfpNetworkName($dfpNetworkName) - { - $this->dfpNetworkName = $dfpNetworkName; - } - public function getDfpNetworkName() - { - return $this->dfpNetworkName; - } - public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted) - { - $this->programmaticPlacementAccepted = $programmaticPlacementAccepted; - } - public function getProgrammaticPlacementAccepted() - { - return $this->programmaticPlacementAccepted; - } - public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted) - { - $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted; - } - public function getPubPaidPlacementAccepted() - { - return $this->pubPaidPlacementAccepted; - } - public function setPublisherPortalOnly($publisherPortalOnly) - { - $this->publisherPortalOnly = $publisherPortalOnly; - } - public function getPublisherPortalOnly() - { - return $this->publisherPortalOnly; - } -} - -class Google_Service_Dfareporting_Dimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - 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_Dfareporting_DimensionFilter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $dimensionName; - public $etag; - public $id; - public $kind; - public $matchType; - 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 setMatchType($matchType) - { - $this->matchType = $matchType; - } - public function getMatchType() - { - return $this->matchType; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Dfareporting_DimensionValueList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - public $dimensionName; - public $endDate; - protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; - protected $filtersDataType = 'array'; - public $kind; - public $startDate; - - - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } - public function 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_DirectorySite extends Google_Collection -{ - protected $collection_key = 'interstitialTagFormats'; - protected $internal_gapi_mappings = array( - ); - public $active; - protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; - protected $contactAssignmentsDataType = 'array'; - public $countryId; - public $currencyId; - public $description; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $inpageTagFormats; - public $interstitialTagFormats; - public $kind; - public $name; - public $parentId; - protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; - protected $settingsDataType = ''; - public $url; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setContactAssignments($contactAssignments) - { - $this->contactAssignments = $contactAssignments; - } - public function getContactAssignments() - { - return $this->contactAssignments; - } - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - public function getCountryId() - { - return $this->countryId; - } - public function setCurrencyId($currencyId) - { - $this->currencyId = $currencyId; - } - public function getCurrencyId() - { - return $this->currencyId; - } - 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setInpageTagFormats($inpageTagFormats) - { - $this->inpageTagFormats = $inpageTagFormats; - } - public function getInpageTagFormats() - { - return $this->inpageTagFormats; - } - public function setInterstitialTagFormats($interstitialTagFormats) - { - $this->interstitialTagFormats = $interstitialTagFormats; - } - public function getInterstitialTagFormats() - { - return $this->interstitialTagFormats; - } - 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 setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } - public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $email; - public $firstName; - public $id; - public $kind; - public $lastName; - public $phone; - public $role; - public $title; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - 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 setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - 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_Dfareporting_DirectorySiteContactAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactId; - public $visibility; - - - public function setContactId($contactId) - { - $this->contactId = $contactId; - } - public function getContactId() - { - return $this->contactId; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection -{ - protected $collection_key = 'directorySiteContacts'; - protected $internal_gapi_mappings = array( - ); - protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; - protected $directorySiteContactsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setDirectorySiteContacts($directorySiteContacts) - { - $this->directorySiteContacts = $directorySiteContacts; - } - public function getDirectorySiteContacts() - { - return $this->directorySiteContacts; - } - 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_DirectorySiteSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - "dfpSettings" => "dfp_settings", - "instreamVideoPlacementAccepted" => "instream_video_placement_accepted", - ); - public $activeViewOptOut; - protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings'; - protected $dfpSettingsDataType = ''; - public $instreamVideoPlacementAccepted; - public $interstitialPlacementAccepted; - public $nielsenOcrOptOut; - public $verificationTagOptOut; - public $videoActiveViewOptOut; - - - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings) - { - $this->dfpSettings = $dfpSettings; - } - public function getDfpSettings() - { - return $this->dfpSettings; - } - public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted) - { - $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted; - } - public function getInstreamVideoPlacementAccepted() - { - return $this->instreamVideoPlacementAccepted; - } - public function setInterstitialPlacementAccepted($interstitialPlacementAccepted) - { - $this->interstitialPlacementAccepted = $interstitialPlacementAccepted; - } - public function getInterstitialPlacementAccepted() - { - return $this->interstitialPlacementAccepted; - } - public function setNielsenOcrOptOut($nielsenOcrOptOut) - { - $this->nielsenOcrOptOut = $nielsenOcrOptOut; - } - public function getNielsenOcrOptOut() - { - return $this->nielsenOcrOptOut; - } - public function setVerificationTagOptOut($verificationTagOptOut) - { - $this->verificationTagOptOut = $verificationTagOptOut; - } - public function getVerificationTagOptOut() - { - return $this->verificationTagOptOut; - } - public function setVideoActiveViewOptOut($videoActiveViewOptOut) - { - $this->videoActiveViewOptOut = $videoActiveViewOptOut; - } - public function getVideoActiveViewOptOut() - { - return $this->videoActiveViewOptOut; - } -} - -class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection -{ - protected $collection_key = 'directorySites'; - protected $internal_gapi_mappings = array( - ); - protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite'; - protected $directorySitesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setDirectorySites($directorySites) - { - $this->directorySites = $directorySites; - } - public function getDirectorySites() - { - return $this->directorySites; - } - 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_EventTag extends Google_Collection -{ - protected $collection_key = 'siteIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $enabledByDefault; - public $excludeFromAdxRequests; - public $id; - public $kind; - public $name; - public $siteFilterType; - public $siteIds; - public $sslCompliant; - public $status; - public $subaccountId; - public $type; - public $url; - public $urlEscapeLevels; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setEnabledByDefault($enabledByDefault) - { - $this->enabledByDefault = $enabledByDefault; - } - public function getEnabledByDefault() - { - return $this->enabledByDefault; - } - public function setExcludeFromAdxRequests($excludeFromAdxRequests) - { - $this->excludeFromAdxRequests = $excludeFromAdxRequests; - } - public function getExcludeFromAdxRequests() - { - return $this->excludeFromAdxRequests; - } - 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 setSiteFilterType($siteFilterType) - { - $this->siteFilterType = $siteFilterType; - } - public function getSiteFilterType() - { - return $this->siteFilterType; - } - public function setSiteIds($siteIds) - { - $this->siteIds = $siteIds; - } - public function getSiteIds() - { - return $this->siteIds; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - 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; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setUrlEscapeLevels($urlEscapeLevels) - { - $this->urlEscapeLevels = $urlEscapeLevels; - } - public function getUrlEscapeLevels() - { - return $this->urlEscapeLevels; - } -} - -class Google_Service_Dfareporting_EventTagOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $enabled; - public $id; - - - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection -{ - protected $collection_key = 'eventTags'; - protected $internal_gapi_mappings = array( - ); - protected $eventTagsType = 'Google_Service_Dfareporting_EventTag'; - protected $eventTagsDataType = 'array'; - public $kind; - - - public function setEventTags($eventTags) - { - $this->eventTags = $eventTags; - } - public function getEventTags() - { - return $this->eventTags; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FileList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; - protected $itemsDataType = 'array'; - 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_Flight extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endDate; - public $rateOrCost; - public $startDate; - public $units; - - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setRateOrCost($rateOrCost) - { - $this->rateOrCost = $rateOrCost; - } - public function getRateOrCost() - { - return $this->rateOrCost; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setUnits($units) - { - $this->units = $units; - } - public function getUnits() - { - return $this->units; - } -} - -class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityTag; - public $kind; - - - public function setFloodlightActivityTag($floodlightActivityTag) - { - $this->floodlightActivityTag = $floodlightActivityTag; - } - public function getFloodlightActivityTag() - { - return $this->floodlightActivityTag; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightActivities'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity'; - protected $floodlightActivitiesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setFloodlightActivities($floodlightActivities) - { - $this->floodlightActivities = $floodlightActivities; - } - public function getFloodlightActivities() - { - return $this->floodlightActivities; - } - 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_FloodlightActivity extends Google_Collection -{ - protected $collection_key = 'userDefinedVariableTypes'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $cacheBustingType; - public $countingMethod; - protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; - protected $defaultTagsDataType = 'array'; - public $expectedUrl; - public $floodlightActivityGroupId; - public $floodlightActivityGroupName; - public $floodlightActivityGroupTagString; - public $floodlightActivityGroupType; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $hidden; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $imageTagEnabled; - public $kind; - public $name; - public $notes; - protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag'; - protected $publisherTagsDataType = 'array'; - public $secure; - public $sslCompliant; - public $sslRequired; - public $subaccountId; - public $tagFormat; - public $tagString; - public $userDefinedVariableTypes; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setCacheBustingType($cacheBustingType) - { - $this->cacheBustingType = $cacheBustingType; - } - public function getCacheBustingType() - { - return $this->cacheBustingType; - } - public function setCountingMethod($countingMethod) - { - $this->countingMethod = $countingMethod; - } - public function getCountingMethod() - { - return $this->countingMethod; - } - public function setDefaultTags($defaultTags) - { - $this->defaultTags = $defaultTags; - } - public function getDefaultTags() - { - return $this->defaultTags; - } - public function setExpectedUrl($expectedUrl) - { - $this->expectedUrl = $expectedUrl; - } - public function getExpectedUrl() - { - return $this->expectedUrl; - } - public function setFloodlightActivityGroupId($floodlightActivityGroupId) - { - $this->floodlightActivityGroupId = $floodlightActivityGroupId; - } - public function getFloodlightActivityGroupId() - { - return $this->floodlightActivityGroupId; - } - public function setFloodlightActivityGroupName($floodlightActivityGroupName) - { - $this->floodlightActivityGroupName = $floodlightActivityGroupName; - } - public function getFloodlightActivityGroupName() - { - return $this->floodlightActivityGroupName; - } - public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString) - { - $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString; - } - public function getFloodlightActivityGroupTagString() - { - return $this->floodlightActivityGroupTagString; - } - public function setFloodlightActivityGroupType($floodlightActivityGroupType) - { - $this->floodlightActivityGroupType = $floodlightActivityGroupType; - } - public function getFloodlightActivityGroupType() - { - return $this->floodlightActivityGroupType; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - 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 setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setImageTagEnabled($imageTagEnabled) - { - $this->imageTagEnabled = $imageTagEnabled; - } - public function getImageTagEnabled() - { - return $this->imageTagEnabled; - } - 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 setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPublisherTags($publisherTags) - { - $this->publisherTags = $publisherTags; - } - public function getPublisherTags() - { - return $this->publisherTags; - } - public function setSecure($secure) - { - $this->secure = $secure; - } - public function getSecure() - { - return $this->secure; - } - public function setSslCompliant($sslCompliant) - { - $this->sslCompliant = $sslCompliant; - } - public function getSslCompliant() - { - return $this->sslCompliant; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagFormat($tagFormat) - { - $this->tagFormat = $tagFormat; - } - public function getTagFormat() - { - return $this->tagFormat; - } - public function setTagString($tagString) - { - $this->tagString = $tagString; - } - public function getTagString() - { - return $this->tagString; - } - public function setUserDefinedVariableTypes($userDefinedVariableTypes) - { - $this->userDefinedVariableTypes = $userDefinedVariableTypes; - } - public function getUserDefinedVariableTypes() - { - return $this->userDefinedVariableTypes; - } -} - -class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - public $tag; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $floodlightConfigurationId; - protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigurationIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - public $name; - public $subaccountId; - public $tagString; - public $type; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setFloodlightConfigurationId($floodlightConfigurationId) - { - $this->floodlightConfigurationId = $floodlightConfigurationId; - } - public function getFloodlightConfigurationId() - { - return $this->floodlightConfigurationId; - } - public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) - { - $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; - } - public function getFloodlightConfigurationIdDimensionValue() - { - return $this->floodlightConfigurationIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - 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 setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagString($tagString) - { - $this->tagString = $tagString; - } - public function getTagString() - { - return $this->tagString; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightActivityGroups'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup'; - protected $floodlightActivityGroupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setFloodlightActivityGroups($floodlightActivityGroups) - { - $this->floodlightActivityGroups = $floodlightActivityGroups; - } - public function getFloodlightActivityGroups() - { - return $this->floodlightActivityGroups; - } - 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_FloodlightActivityPublisherDynamicTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickThrough; - public $directorySiteId; - protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; - protected $dynamicTagDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - public $viewThrough; - - - public function setClickThrough($clickThrough) - { - $this->clickThrough = $clickThrough; - } - public function getClickThrough() - { - return $this->clickThrough; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag) - { - $this->dynamicTag = $dynamicTag; - } - public function getDynamicTag() - { - return $this->dynamicTag; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setViewThrough($viewThrough) - { - $this->viewThrough = $viewThrough; - } - public function getViewThrough() - { - return $this->viewThrough; - } -} - -class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection -{ - protected $collection_key = 'userDefinedVariableConfigurations'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $analyticsDataSharingEnabled; - public $exposureToConversionEnabled; - public $firstDayOfWeek; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $inAppAttributionTrackingEnabled; - public $kind; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $naturalSearchConversionAttributionOption; - protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; - protected $omnitureSettingsDataType = ''; - public $standardVariableTypes; - public $subaccountId; - protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; - protected $tagSettingsDataType = ''; - protected $thirdPartyAuthenticationTokensType = 'Google_Service_Dfareporting_ThirdPartyAuthenticationToken'; - protected $thirdPartyAuthenticationTokensDataType = 'array'; - protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; - protected $userDefinedVariableConfigurationsDataType = 'array'; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled) - { - $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled; - } - public function getAnalyticsDataSharingEnabled() - { - return $this->analyticsDataSharingEnabled; - } - public function setExposureToConversionEnabled($exposureToConversionEnabled) - { - $this->exposureToConversionEnabled = $exposureToConversionEnabled; - } - public function getExposureToConversionEnabled() - { - return $this->exposureToConversionEnabled; - } - public function setFirstDayOfWeek($firstDayOfWeek) - { - $this->firstDayOfWeek = $firstDayOfWeek; - } - public function getFirstDayOfWeek() - { - return $this->firstDayOfWeek; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setInAppAttributionTrackingEnabled($inAppAttributionTrackingEnabled) - { - $this->inAppAttributionTrackingEnabled = $inAppAttributionTrackingEnabled; - } - public function getInAppAttributionTrackingEnabled() - { - return $this->inAppAttributionTrackingEnabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption) - { - $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption; - } - public function getNaturalSearchConversionAttributionOption() - { - return $this->naturalSearchConversionAttributionOption; - } - public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings) - { - $this->omnitureSettings = $omnitureSettings; - } - public function getOmnitureSettings() - { - return $this->omnitureSettings; - } - public function setStandardVariableTypes($standardVariableTypes) - { - $this->standardVariableTypes = $standardVariableTypes; - } - public function getStandardVariableTypes() - { - return $this->standardVariableTypes; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings) - { - $this->tagSettings = $tagSettings; - } - public function getTagSettings() - { - return $this->tagSettings; - } - public function setThirdPartyAuthenticationTokens($thirdPartyAuthenticationTokens) - { - $this->thirdPartyAuthenticationTokens = $thirdPartyAuthenticationTokens; - } - public function getThirdPartyAuthenticationTokens() - { - return $this->thirdPartyAuthenticationTokens; - } - public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) - { - $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; - } - public function getUserDefinedVariableConfigurations() - { - return $this->userDefinedVariableConfigurations; - } -} - -class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection -{ - protected $collection_key = 'floodlightConfigurations'; - protected $internal_gapi_mappings = array( - ); - protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration'; - protected $floodlightConfigurationsDataType = 'array'; - public $kind; - - - public function setFloodlightConfigurations($floodlightConfigurations) - { - $this->floodlightConfigurations = $floodlightConfigurations; - } - public function getFloodlightConfigurations() - { - return $this->floodlightConfigurations; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } -} - -class Google_Service_Dfareporting_FrequencyCap extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $duration; - public $impressions; - - - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setImpressions($impressions) - { - $this->impressions = $impressions; - } - public function getImpressions() - { - return $this->impressions; - } -} - -class Google_Service_Dfareporting_FsCommand extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $left; - public $positionOption; - public $top; - public $windowHeight; - public $windowWidth; - - - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setPositionOption($positionOption) - { - $this->positionOption = $positionOption; - } - public function getPositionOption() - { - return $this->positionOption; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } - public function setWindowHeight($windowHeight) - { - $this->windowHeight = $windowHeight; - } - public function getWindowHeight() - { - return $this->windowHeight; - } - public function setWindowWidth($windowWidth) - { - $this->windowWidth = $windowWidth; - } - public function getWindowWidth() - { - return $this->windowWidth; - } -} - -class Google_Service_Dfareporting_GeoTargeting extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - protected $citiesType = 'Google_Service_Dfareporting_City'; - protected $citiesDataType = 'array'; - protected $countriesType = 'Google_Service_Dfareporting_Country'; - protected $countriesDataType = 'array'; - public $excludeCountries; - protected $metrosType = 'Google_Service_Dfareporting_Metro'; - protected $metrosDataType = 'array'; - protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; - protected $postalCodesDataType = 'array'; - protected $regionsType = 'Google_Service_Dfareporting_Region'; - protected $regionsDataType = 'array'; - - - public function setCities($cities) - { - $this->cities = $cities; - } - public function getCities() - { - return $this->cities; - } - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setExcludeCountries($excludeCountries) - { - $this->excludeCountries = $excludeCountries; - } - public function getExcludeCountries() - { - return $this->excludeCountries; - } - public function setMetros($metros) - { - $this->metros = $metros; - } - public function getMetros() - { - return $this->metros; - } - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - public function getPostalCodes() - { - return $this->postalCodes; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_Dfareporting_InventoryItem extends Google_Collection -{ - protected $collection_key = 'adSlots'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot'; - protected $adSlotsDataType = 'array'; - public $advertiserId; - public $contentCategoryId; - public $estimatedClickThroughRate; - public $estimatedConversionRate; - public $id; - public $inPlan; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $negotiationChannelId; - public $orderId; - public $placementStrategyId; - protected $pricingType = 'Google_Service_Dfareporting_Pricing'; - protected $pricingDataType = ''; - public $projectId; - public $rfpId; - public $siteId; - public $subaccountId; - public $type; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAdSlots($adSlots) - { - $this->adSlots = $adSlots; - } - public function getAdSlots() - { - return $this->adSlots; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setEstimatedClickThroughRate($estimatedClickThroughRate) - { - $this->estimatedClickThroughRate = $estimatedClickThroughRate; - } - public function getEstimatedClickThroughRate() - { - return $this->estimatedClickThroughRate; - } - public function setEstimatedConversionRate($estimatedConversionRate) - { - $this->estimatedConversionRate = $estimatedConversionRate; - } - public function getEstimatedConversionRate() - { - return $this->estimatedConversionRate; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInPlan($inPlan) - { - $this->inPlan = $inPlan; - } - public function getInPlan() - { - return $this->inPlan; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNegotiationChannelId($negotiationChannelId) - { - $this->negotiationChannelId = $negotiationChannelId; - } - public function getNegotiationChannelId() - { - return $this->negotiationChannelId; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricing(Google_Service_Dfareporting_Pricing $pricing) - { - $this->pricing = $pricing; - } - public function getPricing() - { - return $this->pricing; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRfpId($rfpId) - { - $this->rfpId = $rfpId; - } - public function getRfpId() - { - return $this->rfpId; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - 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_InventoryItemsListResponse extends Google_Collection -{ - protected $collection_key = 'inventoryItems'; - protected $internal_gapi_mappings = array( - ); - protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem'; - protected $inventoryItemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setInventoryItems($inventoryItems) - { - $this->inventoryItems = $inventoryItems; - } - public function getInventoryItems() - { - return $this->inventoryItems; - } - 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_KeyValueTargetingExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expression; - - - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } -} - -class Google_Service_Dfareporting_LandingPage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $default; - public $id; - public $kind; - public $name; - public $url; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - 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 setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection -{ - protected $collection_key = 'landingPages'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage'; - protected $landingPagesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLandingPages($landingPages) - { - $this->landingPages = $landingPages; - } - public function getLandingPages() - { - return $this->landingPages; - } -} - -class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $time; - - - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection -{ - protected $collection_key = 'terms'; - protected $internal_gapi_mappings = array( - ); - protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm'; - protected $termsDataType = 'array'; - - - public function setTerms($terms) - { - $this->terms = $terms; - } - public function getTerms() - { - return $this->terms; - } -} - -class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection -{ - protected $collection_key = 'listPopulationClauses'; - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityId; - public $floodlightActivityName; - protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause'; - protected $listPopulationClausesDataType = 'array'; - - - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setFloodlightActivityName($floodlightActivityName) - { - $this->floodlightActivityName = $floodlightActivityName; - } - public function getFloodlightActivityName() - { - return $this->floodlightActivityName; - } - public function setListPopulationClauses($listPopulationClauses) - { - $this->listPopulationClauses = $listPopulationClauses; - } - public function getListPopulationClauses() - { - return $this->listPopulationClauses; - } -} - -class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contains; - public $negation; - public $operator; - public $remarketingListId; - public $type; - public $value; - public $variableFriendlyName; - public $variableName; - - - public function setContains($contains) - { - $this->contains = $contains; - } - public function getContains() - { - return $this->contains; - } - public function setNegation($negation) - { - $this->negation = $negation; - } - public function getNegation() - { - return $this->negation; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setRemarketingListId($remarketingListId) - { - $this->remarketingListId = $remarketingListId; - } - public function getRemarketingListId() - { - return $this->remarketingListId; - } - 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 setVariableFriendlyName($variableFriendlyName) - { - $this->variableFriendlyName = $variableFriendlyName; - } - public function getVariableFriendlyName() - { - return $this->variableFriendlyName; - } - public function setVariableName($variableName) - { - $this->variableName = $variableName; - } - public function getVariableName() - { - return $this->variableName; - } -} - -class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expression; - - - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } -} - -class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clickDuration; - public $postImpressionActivitiesDuration; - - - public function setClickDuration($clickDuration) - { - $this->clickDuration = $clickDuration; - } - public function getClickDuration() - { - return $this->clickDuration; - } - public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) - { - $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; - } - public function getPostImpressionActivitiesDuration() - { - return $this->postImpressionActivitiesDuration; - } -} - -class Google_Service_Dfareporting_Metric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - - - 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_Dfareporting_Metro extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $dmaId; - public $kind; - public $metroCode; - public $name; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setDmaId($dmaId) - { - $this->dmaId = $dmaId; - } - public function getDmaId() - { - return $this->dmaId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetroCode($metroCode) - { - $this->metroCode = $metroCode; - } - public function getMetroCode() - { - return $this->metroCode; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection -{ - protected $collection_key = 'metros'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $metrosType = 'Google_Service_Dfareporting_Metro'; - protected $metrosDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetros($metros) - { - $this->metros = $metros; - } - public function getMetros() - { - return $this->metros; - } -} - -class Google_Service_Dfareporting_MobileCarrier extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $id; - public $kind; - public $name; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - 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_Dfareporting_MobileCarriersListResponse extends Google_Collection -{ - protected $collection_key = 'mobileCarriers'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; - protected $mobileCarriersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } -} - -class Google_Service_Dfareporting_ObjectFilter extends Google_Collection -{ - protected $collection_key = 'objectIds'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $objectIds; - public $status; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setObjectIds($objectIds) - { - $this->objectIds = $objectIds; - } - public function getObjectIds() - { - return $this->objectIds; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Dfareporting_OffsetPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $left; - public $top; - - - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } -} - -class Google_Service_Dfareporting_OmnitureSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $omnitureCostDataEnabled; - public $omnitureIntegrationEnabled; - - - public function setOmnitureCostDataEnabled($omnitureCostDataEnabled) - { - $this->omnitureCostDataEnabled = $omnitureCostDataEnabled; - } - public function getOmnitureCostDataEnabled() - { - return $this->omnitureCostDataEnabled; - } - public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled) - { - $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled; - } - public function getOmnitureIntegrationEnabled() - { - return $this->omnitureIntegrationEnabled; - } -} - -class Google_Service_Dfareporting_OperatingSystem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dartId; - public $desktop; - public $kind; - public $mobile; - public $name; - - - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - public function setDesktop($desktop) - { - $this->desktop = $desktop; - } - public function getDesktop() - { - return $this->desktop; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - public function getMobile() - { - return $this->mobile; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $majorVersion; - public $minorVersion; - public $name; - protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemDataType = ''; - - - 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 setMajorVersion($majorVersion) - { - $this->majorVersion = $majorVersion; - } - public function getMajorVersion() - { - return $this->majorVersion; - } - public function setMinorVersion($minorVersion) - { - $this->minorVersion = $minorVersion; - } - public function getMinorVersion() - { - return $this->minorVersion; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem) - { - $this->operatingSystem = $operatingSystem; - } - public function getOperatingSystem() - { - return $this->operatingSystem; - } -} - -class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection -{ - protected $collection_key = 'operatingSystemVersions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; - protected $operatingSystemVersionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperatingSystemVersions($operatingSystemVersions) - { - $this->operatingSystemVersions = $operatingSystemVersions; - } - public function getOperatingSystemVersions() - { - return $this->operatingSystemVersions; - } -} - -class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection -{ - protected $collection_key = 'operatingSystems'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperatingSystems($operatingSystems) - { - $this->operatingSystems = $operatingSystems; - } - public function getOperatingSystems() - { - return $this->operatingSystems; - } -} - -class Google_Service_Dfareporting_OptimizationActivity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $floodlightActivityId; - protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightActivityIdDimensionValueDataType = ''; - public $weight; - - - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue) - { - $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue; - } - public function getFloodlightActivityIdDimensionValue() - { - return $this->floodlightActivityIdDimensionValue; - } - public function setWeight($weight) - { - $this->weight = $weight; - } - public function getWeight() - { - return $this->weight; - } -} - -class Google_Service_Dfareporting_Order extends Google_Collection -{ - protected $collection_key = 'siteNames'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $approverUserProfileIds; - public $buyerInvoiceId; - public $buyerOrganizationName; - public $comments; - protected $contactsType = 'Google_Service_Dfareporting_OrderContact'; - protected $contactsDataType = 'array'; - public $id; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $notes; - public $planningTermId; - public $projectId; - public $sellerOrderId; - public $sellerOrganizationName; - public $siteId; - public $siteNames; - public $subaccountId; - public $termsAndConditions; - - - 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 setApproverUserProfileIds($approverUserProfileIds) - { - $this->approverUserProfileIds = $approverUserProfileIds; - } - public function getApproverUserProfileIds() - { - return $this->approverUserProfileIds; - } - public function setBuyerInvoiceId($buyerInvoiceId) - { - $this->buyerInvoiceId = $buyerInvoiceId; - } - public function getBuyerInvoiceId() - { - return $this->buyerInvoiceId; - } - public function setBuyerOrganizationName($buyerOrganizationName) - { - $this->buyerOrganizationName = $buyerOrganizationName; - } - public function getBuyerOrganizationName() - { - return $this->buyerOrganizationName; - } - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setContacts($contacts) - { - $this->contacts = $contacts; - } - public function getContacts() - { - return $this->contacts; - } - 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPlanningTermId($planningTermId) - { - $this->planningTermId = $planningTermId; - } - public function getPlanningTermId() - { - return $this->planningTermId; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSellerOrderId($sellerOrderId) - { - $this->sellerOrderId = $sellerOrderId; - } - public function getSellerOrderId() - { - return $this->sellerOrderId; - } - public function setSellerOrganizationName($sellerOrganizationName) - { - $this->sellerOrganizationName = $sellerOrganizationName; - } - public function getSellerOrganizationName() - { - return $this->sellerOrganizationName; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteNames($siteNames) - { - $this->siteNames = $siteNames; - } - public function getSiteNames() - { - return $this->siteNames; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTermsAndConditions($termsAndConditions) - { - $this->termsAndConditions = $termsAndConditions; - } - public function getTermsAndConditions() - { - return $this->termsAndConditions; - } -} - -class Google_Service_Dfareporting_OrderContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactInfo; - public $contactName; - public $contactTitle; - public $contactType; - public $signatureUserProfileId; - - - public function setContactInfo($contactInfo) - { - $this->contactInfo = $contactInfo; - } - public function getContactInfo() - { - return $this->contactInfo; - } - public function setContactName($contactName) - { - $this->contactName = $contactName; - } - public function getContactName() - { - return $this->contactName; - } - public function setContactTitle($contactTitle) - { - $this->contactTitle = $contactTitle; - } - public function getContactTitle() - { - return $this->contactTitle; - } - public function setContactType($contactType) - { - $this->contactType = $contactType; - } - public function getContactType() - { - return $this->contactType; - } - public function setSignatureUserProfileId($signatureUserProfileId) - { - $this->signatureUserProfileId = $signatureUserProfileId; - } - public function getSignatureUserProfileId() - { - return $this->signatureUserProfileId; - } -} - -class Google_Service_Dfareporting_OrderDocument extends Google_Collection -{ - protected $collection_key = 'lastSentRecipients'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $amendedOrderDocumentId; - public $approvedByUserProfileIds; - public $cancelled; - protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createdInfoDataType = ''; - public $effectiveDate; - public $id; - public $kind; - public $lastSentRecipients; - public $lastSentTime; - public $orderId; - public $projectId; - public $signed; - public $subaccountId; - public $title; - public $type; - - - 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 setAmendedOrderDocumentId($amendedOrderDocumentId) - { - $this->amendedOrderDocumentId = $amendedOrderDocumentId; - } - public function getAmendedOrderDocumentId() - { - return $this->amendedOrderDocumentId; - } - public function setApprovedByUserProfileIds($approvedByUserProfileIds) - { - $this->approvedByUserProfileIds = $approvedByUserProfileIds; - } - public function getApprovedByUserProfileIds() - { - return $this->approvedByUserProfileIds; - } - public function setCancelled($cancelled) - { - $this->cancelled = $cancelled; - } - public function getCancelled() - { - return $this->cancelled; - } - public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo) - { - $this->createdInfo = $createdInfo; - } - public function getCreatedInfo() - { - return $this->createdInfo; - } - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - public function getEffectiveDate() - { - return $this->effectiveDate; - } - 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 setLastSentRecipients($lastSentRecipients) - { - $this->lastSentRecipients = $lastSentRecipients; - } - public function getLastSentRecipients() - { - return $this->lastSentRecipients; - } - public function setLastSentTime($lastSentTime) - { - $this->lastSentTime = $lastSentTime; - } - public function getLastSentTime() - { - return $this->lastSentTime; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSigned($signed) - { - $this->signed = $signed; - } - public function getSigned() - { - return $this->signed; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - 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_Dfareporting_OrderDocumentsListResponse extends Google_Collection -{ - protected $collection_key = 'orderDocuments'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument'; - protected $orderDocumentsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrderDocuments($orderDocuments) - { - $this->orderDocuments = $orderDocuments; - } - public function getOrderDocuments() - { - return $this->orderDocuments; - } -} - -class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection -{ - protected $collection_key = 'orders'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $ordersType = 'Google_Service_Dfareporting_Order'; - protected $ordersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrders($orders) - { - $this->orders = $orders; - } - public function getOrders() - { - return $this->orders; - } -} - -class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'perInteractionDimensions'; - protected $internal_gapi_mappings = array( - ); - protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; - protected $customFloodlightVariablesDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $perInteractionDimensionsDataType = 'array'; - - - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } - public function setCustomFloodlightVariables($customFloodlightVariables) - { - $this->customFloodlightVariables = $customFloodlightVariables; - } - public function getCustomFloodlightVariables() - { - return $this->customFloodlightVariables; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPerInteractionDimensions($perInteractionDimensions) - { - $this->perInteractionDimensions = $perInteractionDimensions; - } - public function getPerInteractionDimensions() - { - return $this->perInteractionDimensions; - } -} - -class Google_Service_Dfareporting_Placement extends Google_Collection -{ - protected $collection_key = 'tagFormats'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $comment; - public $compatibility; - public $contentCategoryId; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $keyName; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $name; - public $paymentApproved; - public $paymentSource; - public $placementGroupId; - protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementGroupIdDimensionValueDataType = ''; - public $placementStrategyId; - protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; - protected $pricingScheduleDataType = ''; - public $primary; - protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $publisherUpdateInfoDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - protected $sizeType = 'Google_Service_Dfareporting_Size'; - protected $sizeDataType = ''; - public $sslRequired; - public $status; - public $subaccountId; - public $tagFormats; - protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; - protected $tagSettingDataType = ''; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setCompatibility($compatibility) - { - $this->compatibility = $compatibility; - } - public function getCompatibility() - { - return $this->compatibility; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyName($keyName) - { - $this->keyName = $keyName; - } - public function getKeyName() - { - return $this->keyName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPaymentApproved($paymentApproved) - { - $this->paymentApproved = $paymentApproved; - } - public function getPaymentApproved() - { - return $this->paymentApproved; - } - public function setPaymentSource($paymentSource) - { - $this->paymentSource = $paymentSource; - } - public function getPaymentSource() - { - return $this->paymentSource; - } - public function setPlacementGroupId($placementGroupId) - { - $this->placementGroupId = $placementGroupId; - } - public function getPlacementGroupId() - { - return $this->placementGroupId; - } - public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) - { - $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; - } - public function getPlacementGroupIdDimensionValue() - { - return $this->placementGroupIdDimensionValue; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) - { - $this->pricingSchedule = $pricingSchedule; - } - public function getPricingSchedule() - { - return $this->pricingSchedule; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) - { - $this->publisherUpdateInfo = $publisherUpdateInfo; - } - public function getPublisherUpdateInfo() - { - return $this->publisherUpdateInfo; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setSize(Google_Service_Dfareporting_Size $size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTagFormats($tagFormats) - { - $this->tagFormats = $tagFormats; - } - public function getTagFormats() - { - return $this->tagFormats; - } - public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) - { - $this->tagSetting = $tagSetting; - } - public function getTagSetting() - { - return $this->tagSetting; - } -} - -class Google_Service_Dfareporting_PlacementAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $active; - public $placementId; - protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $placementIdDimensionValueDataType = ''; - public $sslRequired; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setPlacementId($placementId) - { - $this->placementId = $placementId; - } - public function getPlacementId() - { - return $this->placementId; - } - public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) - { - $this->placementIdDimensionValue = $placementIdDimensionValue; - } - public function getPlacementIdDimensionValue() - { - return $this->placementIdDimensionValue; - } - public function setSslRequired($sslRequired) - { - $this->sslRequired = $sslRequired; - } - public function getSslRequired() - { - return $this->sslRequired; - } -} - -class Google_Service_Dfareporting_PlacementGroup extends Google_Collection -{ - protected $collection_key = 'childPlacementIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $archived; - public $campaignId; - protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $campaignIdDimensionValueDataType = ''; - public $childPlacementIds; - public $comment; - public $contentCategoryId; - protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $createInfoDataType = ''; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $externalId; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $placementGroupType; - public $placementStrategyId; - protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; - protected $pricingScheduleDataType = ''; - public $primaryPlacementId; - protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $primaryPlacementIdDimensionValueDataType = ''; - public $siteId; - protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $siteIdDimensionValueDataType = ''; - public $subaccountId; - - - 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 setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - public function setArchived($archived) - { - $this->archived = $archived; - } - public function getArchived() - { - return $this->archived; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) - { - $this->campaignIdDimensionValue = $campaignIdDimensionValue; - } - public function getCampaignIdDimensionValue() - { - return $this->campaignIdDimensionValue; - } - public function setChildPlacementIds($childPlacementIds) - { - $this->childPlacementIds = $childPlacementIds; - } - public function getChildPlacementIds() - { - return $this->childPlacementIds; - } - public function setComment($comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setContentCategoryId($contentCategoryId) - { - $this->contentCategoryId = $contentCategoryId; - } - public function getContentCategoryId() - { - return $this->contentCategoryId; - } - public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) - { - $this->createInfo = $createInfo; - } - public function getCreateInfo() - { - return $this->createInfo; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setExternalId($externalId) - { - $this->externalId = $externalId; - } - public function getExternalId() - { - return $this->externalId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPlacementGroupType($placementGroupType) - { - $this->placementGroupType = $placementGroupType; - } - public function getPlacementGroupType() - { - return $this->placementGroupType; - } - public function setPlacementStrategyId($placementStrategyId) - { - $this->placementStrategyId = $placementStrategyId; - } - public function getPlacementStrategyId() - { - return $this->placementStrategyId; - } - public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) - { - $this->pricingSchedule = $pricingSchedule; - } - public function getPricingSchedule() - { - return $this->pricingSchedule; - } - public function setPrimaryPlacementId($primaryPlacementId) - { - $this->primaryPlacementId = $primaryPlacementId; - } - public function getPrimaryPlacementId() - { - return $this->primaryPlacementId; - } - public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) - { - $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; - } - public function getPrimaryPlacementIdDimensionValue() - { - return $this->primaryPlacementIdDimensionValue; - } - public function setSiteId($siteId) - { - $this->siteId = $siteId; - } - public function getSiteId() - { - return $this->siteId; - } - public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) - { - $this->siteIdDimensionValue = $siteIdDimensionValue; - } - public function getSiteIdDimensionValue() - { - return $this->siteIdDimensionValue; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'placementGroups'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; - protected $placementGroupsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacementGroups($placementGroups) - { - $this->placementGroups = $placementGroups; - } - public function getPlacementGroups() - { - return $this->placementGroups; - } -} - -class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection -{ - protected $collection_key = 'placementStrategies'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; - protected $placementStrategiesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacementStrategies($placementStrategies) - { - $this->placementStrategies = $placementStrategies; - } - public function getPlacementStrategies() - { - return $this->placementStrategies; - } -} - -class Google_Service_Dfareporting_PlacementStrategy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $id; - public $kind; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Dfareporting_PlacementTag extends Google_Collection -{ - protected $collection_key = 'tagDatas'; - protected $internal_gapi_mappings = array( - ); - public $placementId; - protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; - protected $tagDatasDataType = 'array'; - - - public function setPlacementId($placementId) - { - $this->placementId = $placementId; - } - public function getPlacementId() - { - return $this->placementId; - } - public function setTagDatas($tagDatas) - { - $this->tagDatas = $tagDatas; - } - public function getTagDatas() - { - return $this->tagDatas; - } -} - -class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection -{ - protected $collection_key = 'placementTags'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; - protected $placementTagsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlacementTags($placementTags) - { - $this->placementTags = $placementTags; - } - public function getPlacementTags() - { - return $this->placementTags; - } -} - -class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection -{ - protected $collection_key = 'placements'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $placementsType = 'Google_Service_Dfareporting_Placement'; - protected $placementsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlacements($placements) - { - $this->placements = $placements; - } - public function getPlacements() - { - return $this->placements; - } -} - -class Google_Service_Dfareporting_PlatformType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_PlatformTypesListResponse extends Google_Collection -{ - protected $collection_key = 'platformTypes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; - protected $platformTypesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlatformTypes($platformTypes) - { - $this->platformTypes = $platformTypes; - } - public function getPlatformTypes() - { - return $this->platformTypes; - } -} - -class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dimensionType = 'Google_Service_Dfareporting_Size'; - protected $dimensionDataType = ''; - protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; - protected $offsetDataType = ''; - public $positionType; - public $showAddressBar; - public $showMenuBar; - public $showScrollBar; - public $showStatusBar; - public $showToolBar; - public $title; - - - public function setDimension(Google_Service_Dfareporting_Size $dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setPositionType($positionType) - { - $this->positionType = $positionType; - } - public function getPositionType() - { - return $this->positionType; - } - public function setShowAddressBar($showAddressBar) - { - $this->showAddressBar = $showAddressBar; - } - public function getShowAddressBar() - { - return $this->showAddressBar; - } - public function setShowMenuBar($showMenuBar) - { - $this->showMenuBar = $showMenuBar; - } - public function getShowMenuBar() - { - return $this->showMenuBar; - } - public function setShowScrollBar($showScrollBar) - { - $this->showScrollBar = $showScrollBar; - } - public function getShowScrollBar() - { - return $this->showScrollBar; - } - public function setShowStatusBar($showStatusBar) - { - $this->showStatusBar = $showStatusBar; - } - public function getShowStatusBar() - { - return $this->showStatusBar; - } - public function setShowToolBar($showToolBar) - { - $this->showToolBar = $showToolBar; - } - public function getShowToolBar() - { - return $this->showToolBar; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Dfareporting_PostalCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $countryCode; - public $countryDartId; - public $id; - public $kind; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - 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_Dfareporting_PostalCodesListResponse extends Google_Collection -{ - protected $collection_key = 'postalCodes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; - protected $postalCodesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - public function getPostalCodes() - { - return $this->postalCodes; - } -} - -class Google_Service_Dfareporting_Pricing extends Google_Collection -{ - protected $collection_key = 'flights'; - protected $internal_gapi_mappings = array( - ); - public $capCostType; - public $endDate; - protected $flightsType = 'Google_Service_Dfareporting_Flight'; - protected $flightsDataType = 'array'; - public $groupType; - public $pricingType; - public $startDate; - - - public function setCapCostType($capCostType) - { - $this->capCostType = $capCostType; - } - public function getCapCostType() - { - return $this->capCostType; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFlights($flights) - { - $this->flights = $flights; - } - public function getFlights() - { - return $this->flights; - } - public function setGroupType($groupType) - { - $this->groupType = $groupType; - } - public function getGroupType() - { - return $this->groupType; - } - public function setPricingType($pricingType) - { - $this->pricingType = $pricingType; - } - public function getPricingType() - { - return $this->pricingType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Dfareporting_PricingSchedule extends Google_Collection -{ - protected $collection_key = 'pricingPeriods'; - protected $internal_gapi_mappings = array( - ); - public $capCostOption; - public $disregardOverdelivery; - public $endDate; - public $flighted; - public $floodlightActivityId; - protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; - protected $pricingPeriodsDataType = 'array'; - public $pricingType; - public $startDate; - public $testingStartDate; - - - public function setCapCostOption($capCostOption) - { - $this->capCostOption = $capCostOption; - } - public function getCapCostOption() - { - return $this->capCostOption; - } - public function setDisregardOverdelivery($disregardOverdelivery) - { - $this->disregardOverdelivery = $disregardOverdelivery; - } - public function getDisregardOverdelivery() - { - return $this->disregardOverdelivery; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFlighted($flighted) - { - $this->flighted = $flighted; - } - public function getFlighted() - { - return $this->flighted; - } - public function setFloodlightActivityId($floodlightActivityId) - { - $this->floodlightActivityId = $floodlightActivityId; - } - public function getFloodlightActivityId() - { - return $this->floodlightActivityId; - } - public function setPricingPeriods($pricingPeriods) - { - $this->pricingPeriods = $pricingPeriods; - } - public function getPricingPeriods() - { - return $this->pricingPeriods; - } - public function setPricingType($pricingType) - { - $this->pricingType = $pricingType; - } - public function getPricingType() - { - return $this->pricingType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setTestingStartDate($testingStartDate) - { - $this->testingStartDate = $testingStartDate; - } - public function getTestingStartDate() - { - return $this->testingStartDate; - } -} - -class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endDate; - public $pricingComment; - public $rateOrCostNanos; - public $startDate; - public $units; - - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setPricingComment($pricingComment) - { - $this->pricingComment = $pricingComment; - } - public function getPricingComment() - { - return $this->pricingComment; - } - public function setRateOrCostNanos($rateOrCostNanos) - { - $this->rateOrCostNanos = $rateOrCostNanos; - } - public function getRateOrCostNanos() - { - return $this->rateOrCostNanos; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setUnits($units) - { - $this->units = $units; - } - public function getUnits() - { - return $this->units; - } -} - -class Google_Service_Dfareporting_Project extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $advertiserId; - public $audienceAgeGroup; - public $audienceGender; - public $budget; - public $clientBillingCode; - public $clientName; - public $endDate; - public $id; - public $kind; - protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; - protected $lastModifiedInfoDataType = ''; - public $name; - public $overview; - public $startDate; - public $subaccountId; - public $targetClicks; - public $targetConversions; - public $targetCpaNanos; - public $targetCpcNanos; - public $targetCpmNanos; - public $targetImpressions; - - - 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 setAudienceAgeGroup($audienceAgeGroup) - { - $this->audienceAgeGroup = $audienceAgeGroup; - } - public function getAudienceAgeGroup() - { - return $this->audienceAgeGroup; - } - public function setAudienceGender($audienceGender) - { - $this->audienceGender = $audienceGender; - } - public function getAudienceGender() - { - return $this->audienceGender; - } - public function setBudget($budget) - { - $this->budget = $budget; - } - public function getBudget() - { - return $this->budget; - } - public function setClientBillingCode($clientBillingCode) - { - $this->clientBillingCode = $clientBillingCode; - } - public function getClientBillingCode() - { - return $this->clientBillingCode; - } - public function setClientName($clientName) - { - $this->clientName = $clientName; - } - public function getClientName() - { - return $this->clientName; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - 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 setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) - { - $this->lastModifiedInfo = $lastModifiedInfo; - } - public function getLastModifiedInfo() - { - return $this->lastModifiedInfo; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverview($overview) - { - $this->overview = $overview; - } - public function getOverview() - { - return $this->overview; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } - public function setTargetClicks($targetClicks) - { - $this->targetClicks = $targetClicks; - } - public function getTargetClicks() - { - return $this->targetClicks; - } - public function setTargetConversions($targetConversions) - { - $this->targetConversions = $targetConversions; - } - public function getTargetConversions() - { - return $this->targetConversions; - } - public function setTargetCpaNanos($targetCpaNanos) - { - $this->targetCpaNanos = $targetCpaNanos; - } - public function getTargetCpaNanos() - { - return $this->targetCpaNanos; - } - public function setTargetCpcNanos($targetCpcNanos) - { - $this->targetCpcNanos = $targetCpcNanos; - } - public function getTargetCpcNanos() - { - return $this->targetCpcNanos; - } - public function setTargetCpmNanos($targetCpmNanos) - { - $this->targetCpmNanos = $targetCpmNanos; - } - public function getTargetCpmNanos() - { - return $this->targetCpmNanos; - } - public function setTargetImpressions($targetImpressions) - { - $this->targetImpressions = $targetImpressions; - } - public function getTargetImpressions() - { - return $this->targetImpressions; - } -} - -class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection -{ - protected $collection_key = 'projects'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $projectsType = 'Google_Service_Dfareporting_Project'; - protected $projectsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setProjects($projects) - { - $this->projects = $projects; - } - public function getProjects() - { - return $this->projects; - } -} - -class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'reachByFrequencyMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $reachByFrequencyMetricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) - { - $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; - } - public function getReachByFrequencyMetrics() - { - return $this->reachByFrequencyMetrics; - } -} - -class Google_Service_Dfareporting_Recipient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Region extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $countryCode; - public $countryDartId; - public $dartId; - public $kind; - public $name; - public $regionCode; - - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCountryDartId($countryDartId) - { - $this->countryDartId = $countryDartId; - } - public function getCountryDartId() - { - return $this->countryDartId; - } - public function setDartId($dartId) - { - $this->dartId = $dartId; - } - public function getDartId() - { - return $this->dartId; - } - 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 setRegionCode($regionCode) - { - $this->regionCode = $regionCode; - } - public function getRegionCode() - { - return $this->regionCode; - } -} - -class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $regionsType = 'Google_Service_Dfareporting_Region'; - protected $regionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_Dfareporting_RemarketingList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $description; - public $id; - public $kind; - public $lifeSpan; - protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule'; - protected $listPopulationRuleDataType = ''; - public $listSize; - public $listSource; - public $name; - public $subaccountId; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - public function getLifeSpan() - { - return $this->lifeSpan; - } - public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule) - { - $this->listPopulationRule = $listPopulationRule; - } - public function getListPopulationRule() - { - return $this->listPopulationRule; - } - public function setListSize($listSize) - { - $this->listSize = $listSize; - } - public function getListSize() - { - return $this->listSize; - } - public function setListSource($listSource) - { - $this->listSource = $listSource; - } - public function getListSource() - { - return $this->listSource; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection -{ - protected $collection_key = 'sharedAdvertiserIds'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $remarketingListId; - public $sharedAccountIds; - public $sharedAdvertiserIds; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRemarketingListId($remarketingListId) - { - $this->remarketingListId = $remarketingListId; - } - public function getRemarketingListId() - { - return $this->remarketingListId; - } - public function setSharedAccountIds($sharedAccountIds) - { - $this->sharedAccountIds = $sharedAccountIds; - } - public function getSharedAccountIds() - { - return $this->sharedAccountIds; - } - public function setSharedAdvertiserIds($sharedAdvertiserIds) - { - $this->sharedAdvertiserIds = $sharedAdvertiserIds; - } - public function getSharedAdvertiserIds() - { - return $this->sharedAdvertiserIds; - } -} - -class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection -{ - protected $collection_key = 'remarketingLists'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList'; - protected $remarketingListsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRemarketingLists($remarketingLists) - { - $this->remarketingLists = $remarketingLists; - } - public function getRemarketingLists() - { - return $this->remarketingLists; - } -} - -class Google_Service_Dfareporting_Report extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; - protected $criteriaDataType = ''; - protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; - protected $crossDimensionReachCriteriaDataType = ''; - protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; - protected $deliveryDataType = ''; - public $etag; - public $fileName; - protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; - protected $floodlightCriteriaDataType = ''; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $name; - public $ownerProfileId; - protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; - protected $pathToConversionCriteriaDataType = ''; - protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; - protected $reachCriteriaDataType = ''; - protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; - protected $scheduleDataType = ''; - public $subAccountId; - public $type; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - 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_ReportCompatibleFields extends Google_Collection -{ - protected $collection_key = 'pivotedActivityMetrics'; - protected $internal_gapi_mappings = array( - ); - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - - - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } -} - -class Google_Service_Dfareporting_ReportCriteria extends Google_Collection -{ - protected $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; - - - public function setActivities(Google_Service_Dfareporting_Activities $activities) - { - $this->activities = $activities; - } - public function 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 $collection_key = 'overlapMetricNames'; - protected $internal_gapi_mappings = array( - ); - protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; - protected $breakdownDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $dimension; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - public $metricNames; - public $overlapMetricNames; - public $pivoted; - - - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } - public function 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 -{ - protected $collection_key = 'recipients'; - protected $internal_gapi_mappings = array( - ); - public $emailOwner; - public $emailOwnerDeliveryType; - public $message; - protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; - protected $recipientsDataType = 'array'; - - - 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 $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; - - - public function setCustomRichMediaEvents($customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } - public function 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 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_Report'; - protected $itemsDataType = 'array'; - 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 $collection_key = 'perInteractionDimensions'; - protected $internal_gapi_mappings = array( - ); - protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $activityFiltersDataType = 'array'; - protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; - protected $customFloodlightVariablesDataType = 'array'; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $perInteractionDimensionsDataType = 'array'; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; - - - public function setActivityFilters($activityFilters) - { - $this->activityFilters = $activityFilters; - } - public function 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 setCustomRichMediaEvents($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 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'reachByFrequencyMetricNames'; - protected $internal_gapi_mappings = array( - ); - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $enableAllDimensionCombinations; - 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 setEnableAllDimensionCombinations($enableAllDimensionCombinations) - { - $this->enableAllDimensionCombinations = $enableAllDimensionCombinations; - } - public function getEnableAllDimensionCombinations() - { - return $this->enableAllDimensionCombinations; - } - 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 -{ - protected $collection_key = 'repeatsOnWeekDays'; - protected $internal_gapi_mappings = array( - ); - 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_ReportsConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $exposureToConversionEnabled; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - public $reportGenerationTimeZoneId; - - - public function setExposureToConversionEnabled($exposureToConversionEnabled) - { - $this->exposureToConversionEnabled = $exposureToConversionEnabled; - } - public function getExposureToConversionEnabled() - { - return $this->exposureToConversionEnabled; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId) - { - $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId; - } - public function getReportGenerationTimeZoneId() - { - return $this->reportGenerationTimeZoneId; - } -} - -class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customExitUrl; - public $exitId; - public $useCustomExitUrl; - - - public function setCustomExitUrl($customExitUrl) - { - $this->customExitUrl = $customExitUrl; - } - public function getCustomExitUrl() - { - return $this->customExitUrl; - } - public function setExitId($exitId) - { - $this->exitId = $exitId; - } - public function getExitId() - { - return $this->exitId; - } - public function setUseCustomExitUrl($useCustomExitUrl) - { - $this->useCustomExitUrl = $useCustomExitUrl; - } - public function getUseCustomExitUrl() - { - return $this->useCustomExitUrl; - } -} - -class Google_Service_Dfareporting_Site extends Google_Collection -{ - protected $collection_key = 'siteContacts'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $approved; - public $directorySiteId; - protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $directorySiteIdDimensionValueDataType = ''; - public $id; - protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $idDimensionValueDataType = ''; - public $keyName; - public $kind; - public $name; - protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact'; - protected $siteContactsDataType = 'array'; - protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; - protected $siteSettingsDataType = ''; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setApproved($approved) - { - $this->approved = $approved; - } - public function getApproved() - { - return $this->approved; - } - public function setDirectorySiteId($directorySiteId) - { - $this->directorySiteId = $directorySiteId; - } - public function getDirectorySiteId() - { - return $this->directorySiteId; - } - public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) - { - $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; - } - public function getDirectorySiteIdDimensionValue() - { - return $this->directorySiteIdDimensionValue; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) - { - $this->idDimensionValue = $idDimensionValue; - } - public function getIdDimensionValue() - { - return $this->idDimensionValue; - } - public function setKeyName($keyName) - { - $this->keyName = $keyName; - } - public function getKeyName() - { - return $this->keyName; - } - 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 setSiteContacts($siteContacts) - { - $this->siteContacts = $siteContacts; - } - public function getSiteContacts() - { - return $this->siteContacts; - } - public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings) - { - $this->siteSettings = $siteSettings; - } - public function getSiteSettings() - { - return $this->siteSettings; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_SiteContact extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $contactType; - public $email; - public $firstName; - public $id; - public $lastName; - public $phone; - public $title; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setContactType($contactType) - { - $this->contactType = $contactType; - } - public function getContactType() - { - return $this->contactType; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Dfareporting_SiteSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activeViewOptOut; - protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; - protected $creativeSettingsDataType = ''; - public $disableBrandSafeAds; - public $disableNewCookie; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; - protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; - protected $tagSettingDataType = ''; - public $videoActiveViewOptOut; - - - public function setActiveViewOptOut($activeViewOptOut) - { - $this->activeViewOptOut = $activeViewOptOut; - } - public function getActiveViewOptOut() - { - return $this->activeViewOptOut; - } - public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) - { - $this->creativeSettings = $creativeSettings; - } - public function getCreativeSettings() - { - return $this->creativeSettings; - } - public function setDisableBrandSafeAds($disableBrandSafeAds) - { - $this->disableBrandSafeAds = $disableBrandSafeAds; - } - public function getDisableBrandSafeAds() - { - return $this->disableBrandSafeAds; - } - public function setDisableNewCookie($disableNewCookie) - { - $this->disableNewCookie = $disableNewCookie; - } - public function getDisableNewCookie() - { - return $this->disableNewCookie; - } - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } - public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) - { - $this->tagSetting = $tagSetting; - } - public function getTagSetting() - { - return $this->tagSetting; - } - public function setVideoActiveViewOptOut($videoActiveViewOptOut) - { - $this->videoActiveViewOptOut = $videoActiveViewOptOut; - } - public function getVideoActiveViewOptOut() - { - return $this->videoActiveViewOptOut; - } -} - -class Google_Service_Dfareporting_SitesListResponse extends Google_Collection -{ - protected $collection_key = 'sites'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $sitesType = 'Google_Service_Dfareporting_Site'; - protected $sitesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSites($sites) - { - $this->sites = $sites; - } - public function getSites() - { - return $this->sites; - } -} - -class Google_Service_Dfareporting_Size extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $iab; - public $id; - public $kind; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setIab($iab) - { - $this->iab = $iab; - } - public function getIab() - { - return $this->iab; - } - 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 setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Dfareporting_SizesListResponse extends Google_Collection -{ - protected $collection_key = 'sizes'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $sizesType = 'Google_Service_Dfareporting_Size'; - protected $sizesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSizes($sizes) - { - $this->sizes = $sizes; - } - public function getSizes() - { - return $this->sizes; - } -} - -class Google_Service_Dfareporting_SortedDimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Subaccount extends Google_Collection -{ - protected $collection_key = 'availablePermissionIds'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $availablePermissionIds; - public $id; - public $kind; - public $name; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAvailablePermissionIds($availablePermissionIds) - { - $this->availablePermissionIds = $availablePermissionIds; - } - public function getAvailablePermissionIds() - { - return $this->availablePermissionIds; - } - 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_Dfareporting_SubaccountsListResponse extends Google_Collection -{ - protected $collection_key = 'subaccounts'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount'; - protected $subaccountsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSubaccounts($subaccounts) - { - $this->subaccounts = $subaccounts; - } - public function getSubaccounts() - { - return $this->subaccounts; - } -} - -class Google_Service_Dfareporting_TagData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adId; - public $clickTag; - public $creativeId; - public $format; - public $impressionTag; - - - public function setAdId($adId) - { - $this->adId = $adId; - } - public function getAdId() - { - return $this->adId; - } - public function setClickTag($clickTag) - { - $this->clickTag = $clickTag; - } - public function getClickTag() - { - return $this->clickTag; - } - public function setCreativeId($creativeId) - { - $this->creativeId = $creativeId; - } - public function getCreativeId() - { - return $this->creativeId; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setImpressionTag($impressionTag) - { - $this->impressionTag = $impressionTag; - } - public function getImpressionTag() - { - return $this->impressionTag; - } -} - -class Google_Service_Dfareporting_TagSetting extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $additionalKeyValues; - public $includeClickThroughUrls; - public $includeClickTracking; - public $keywordOption; - - - public function setAdditionalKeyValues($additionalKeyValues) - { - $this->additionalKeyValues = $additionalKeyValues; - } - public function getAdditionalKeyValues() - { - return $this->additionalKeyValues; - } - public function setIncludeClickThroughUrls($includeClickThroughUrls) - { - $this->includeClickThroughUrls = $includeClickThroughUrls; - } - public function getIncludeClickThroughUrls() - { - return $this->includeClickThroughUrls; - } - public function setIncludeClickTracking($includeClickTracking) - { - $this->includeClickTracking = $includeClickTracking; - } - public function getIncludeClickTracking() - { - return $this->includeClickTracking; - } - public function setKeywordOption($keywordOption) - { - $this->keywordOption = $keywordOption; - } - public function getKeywordOption() - { - return $this->keywordOption; - } -} - -class Google_Service_Dfareporting_TagSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dynamicTagEnabled; - public $imageTagEnabled; - - - public function setDynamicTagEnabled($dynamicTagEnabled) - { - $this->dynamicTagEnabled = $dynamicTagEnabled; - } - public function getDynamicTagEnabled() - { - return $this->dynamicTagEnabled; - } - public function setImageTagEnabled($imageTagEnabled) - { - $this->imageTagEnabled = $imageTagEnabled; - } - public function getImageTagEnabled() - { - return $this->imageTagEnabled; - } -} - -class Google_Service_Dfareporting_TargetWindow extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customHtml; - public $targetWindowOption; - - - public function setCustomHtml($customHtml) - { - $this->customHtml = $customHtml; - } - public function getCustomHtml() - { - return $this->customHtml; - } - public function setTargetWindowOption($targetWindowOption) - { - $this->targetWindowOption = $targetWindowOption; - } - public function getTargetWindowOption() - { - return $this->targetWindowOption; - } -} - -class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $active; - public $advertiserId; - protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; - protected $advertiserIdDimensionValueDataType = ''; - public $description; - public $id; - public $kind; - public $lifeSpan; - public $listSize; - public $listSource; - public $name; - public $subaccountId; - - - 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 setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) - { - $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; - } - public function getAdvertiserIdDimensionValue() - { - return $this->advertiserIdDimensionValue; - } - 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 setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - public function getLifeSpan() - { - return $this->lifeSpan; - } - public function setListSize($listSize) - { - $this->listSize = $listSize; - } - public function getListSize() - { - return $this->listSize; - } - public function setListSource($listSource) - { - $this->listSource = $listSource; - } - public function getListSource() - { - return $this->listSource; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection -{ - protected $collection_key = 'targetableRemarketingLists'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList'; - protected $targetableRemarketingListsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTargetableRemarketingLists($targetableRemarketingLists) - { - $this->targetableRemarketingLists = $targetableRemarketingLists; - } - public function getTargetableRemarketingLists() - { - return $this->targetableRemarketingLists; - } -} - -class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection -{ - protected $collection_key = 'platformTypes'; - protected $internal_gapi_mappings = array( - ); - protected $browsersType = 'Google_Service_Dfareporting_Browser'; - protected $browsersDataType = 'array'; - protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; - protected $connectionTypesDataType = 'array'; - protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; - protected $mobileCarriersDataType = 'array'; - protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; - protected $operatingSystemVersionsDataType = 'array'; - protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; - protected $operatingSystemsDataType = 'array'; - protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; - protected $platformTypesDataType = 'array'; - - - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } - public function getBrowsers() - { - return $this->browsers; - } - public function setConnectionTypes($connectionTypes) - { - $this->connectionTypes = $connectionTypes; - } - public function getConnectionTypes() - { - return $this->connectionTypes; - } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } - public function setOperatingSystemVersions($operatingSystemVersions) - { - $this->operatingSystemVersions = $operatingSystemVersions; - } - public function getOperatingSystemVersions() - { - return $this->operatingSystemVersions; - } - public function setOperatingSystems($operatingSystems) - { - $this->operatingSystems = $operatingSystems; - } - public function getOperatingSystems() - { - return $this->operatingSystems; - } - public function setPlatformTypes($platformTypes) - { - $this->platformTypes = $platformTypes; - } - public function getPlatformTypes() - { - return $this->platformTypes; - } -} - -class Google_Service_Dfareporting_ThirdPartyAuthenticationToken extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_ThirdPartyTrackingUrl extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $thirdPartyUrlType; - public $url; - - - public function setThirdPartyUrlType($thirdPartyUrlType) - { - $this->thirdPartyUrlType = $thirdPartyUrlType; - } - public function getThirdPartyUrlType() - { - return $this->thirdPartyUrlType; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataType; - public $reportName; - public $variableType; - - - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - public function getDataType() - { - return $this->dataType; - } - public function setReportName($reportName) - { - $this->reportName = $reportName; - } - public function getReportName() - { - return $this->reportName; - } - public function setVariableType($variableType) - { - $this->variableType = $variableType; - } - public function getVariableType() - { - return $this->variableType; - } -} - -class Google_Service_Dfareporting_UserProfile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Dfareporting_UserRole extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $defaultUserRole; - public $id; - public $kind; - public $name; - public $parentUserRoleId; - protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission'; - protected $permissionsDataType = 'array'; - public $subaccountId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setDefaultUserRole($defaultUserRole) - { - $this->defaultUserRole = $defaultUserRole; - } - public function getDefaultUserRole() - { - return $this->defaultUserRole; - } - 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 setParentUserRoleId($parentUserRoleId) - { - $this->parentUserRoleId = $parentUserRoleId; - } - public function getParentUserRoleId() - { - return $this->parentUserRoleId; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setSubaccountId($subaccountId) - { - $this->subaccountId = $subaccountId; - } - public function getSubaccountId() - { - return $this->subaccountId; - } -} - -class Google_Service_Dfareporting_UserRolePermission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $availability; - public $id; - public $kind; - public $name; - public $permissionGroupId; - - - public function setAvailability($availability) - { - $this->availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - 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 setPermissionGroupId($permissionGroupId) - { - $this->permissionGroupId = $permissionGroupId; - } - public function getPermissionGroupId() - { - return $this->permissionGroupId; - } -} - -class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection -{ - protected $collection_key = 'userRolePermissionGroups'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup'; - protected $userRolePermissionGroupsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserRolePermissionGroups($userRolePermissionGroups) - { - $this->userRolePermissionGroups = $userRolePermissionGroups; - } - public function getUserRolePermissionGroups() - { - return $this->userRolePermissionGroups; - } -} - -class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection -{ - protected $collection_key = 'userRolePermissions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission'; - protected $userRolePermissionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUserRolePermissions($userRolePermissions) - { - $this->userRolePermissions = $userRolePermissions; - } - public function getUserRolePermissions() - { - return $this->userRolePermissions; - } -} - -class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection -{ - protected $collection_key = 'userRoles'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $userRolesType = 'Google_Service_Dfareporting_UserRole'; - protected $userRolesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setUserRoles($userRoles) - { - $this->userRoles = $userRoles; - } - public function getUserRoles() - { - return $this->userRoles; - } -} diff --git a/src/Google/Service/Directory.php b/src/Google/Service/Directory.php deleted file mode 100644 index 48273270d..000000000 --- a/src/Google/Service/Directory.php +++ /dev/null @@ -1,7525 +0,0 @@ - - * The Admin SDK Directory API lets you view and manage enterprise resources - * such as users and groups, administrative notifications, security features, - * and more.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Directory extends Google_Service -{ - /** View and manage customer related information. */ - const ADMIN_DIRECTORY_CUSTOMER = - "https://www.googleapis.com/auth/admin.directory.customer"; - /** View customer related information. */ - const ADMIN_DIRECTORY_CUSTOMER_READONLY = - "https://www.googleapis.com/auth/admin.directory.customer.readonly"; - /** View and manage your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS = - "https://www.googleapis.com/auth/admin.directory.device.chromeos"; - /** View your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = - "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; - /** View and manage your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE = - "https://www.googleapis.com/auth/admin.directory.device.mobile"; - /** Manage your mobile devices by performing administrative tasks. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = - "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; - /** View your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = - "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; - /** View and manage the provisioning of domains for your customers. */ - const ADMIN_DIRECTORY_DOMAIN = - "https://www.googleapis.com/auth/admin.directory.domain"; - /** View domains related to your customers. */ - const ADMIN_DIRECTORY_DOMAIN_READONLY = - "https://www.googleapis.com/auth/admin.directory.domain.readonly"; - /** View and manage the provisioning of groups on your domain. */ - const ADMIN_DIRECTORY_GROUP = - "https://www.googleapis.com/auth/admin.directory.group"; - /** View and manage group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER = - "https://www.googleapis.com/auth/admin.directory.group.member"; - /** View group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = - "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; - /** View groups on your domain. */ - const ADMIN_DIRECTORY_GROUP_READONLY = - "https://www.googleapis.com/auth/admin.directory.group.readonly"; - /** View and manage notifications received on your domain. */ - const ADMIN_DIRECTORY_NOTIFICATIONS = - "https://www.googleapis.com/auth/admin.directory.notifications"; - /** View and manage organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT = - "https://www.googleapis.com/auth/admin.directory.orgunit"; - /** View organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT_READONLY = - "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; - /** View and manage the provisioning of calendar resources on your domain. */ - const ADMIN_DIRECTORY_RESOURCE_CALENDAR = - "https://www.googleapis.com/auth/admin.directory.resource.calendar"; - /** View calendar resources on your domain. */ - const ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY = - "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"; - /** Manage delegated admin roles for your domain. */ - const ADMIN_DIRECTORY_ROLEMANAGEMENT = - "https://www.googleapis.com/auth/admin.directory.rolemanagement"; - /** View delegated admin roles for your domain. */ - const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = - "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly"; - /** View and manage the provisioning of users on your domain. */ - const ADMIN_DIRECTORY_USER = - "https://www.googleapis.com/auth/admin.directory.user"; - /** View and manage user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS = - "https://www.googleapis.com/auth/admin.directory.user.alias"; - /** View user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS_READONLY = - "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; - /** View users on your domain. */ - const ADMIN_DIRECTORY_USER_READONLY = - "https://www.googleapis.com/auth/admin.directory.user.readonly"; - /** Manage data access permissions for users on your domain. */ - const ADMIN_DIRECTORY_USER_SECURITY = - "https://www.googleapis.com/auth/admin.directory.user.security"; - /** View and manage the provisioning of user schemas on your domain. */ - const ADMIN_DIRECTORY_USERSCHEMA = - "https://www.googleapis.com/auth/admin.directory.userschema"; - /** View user schemas on your domain. */ - const ADMIN_DIRECTORY_USERSCHEMA_READONLY = - "https://www.googleapis.com/auth/admin.directory.userschema.readonly"; - - public $asps; - public $channels; - public $chromeosdevices; - public $customers; - public $domainAliases; - public $domains; - public $groups; - public $groups_aliases; - public $members; - public $mobiledevices; - public $notifications; - public $orgunits; - public $privileges; - public $resources_calendars; - public $roleAssignments; - public $roles; - public $schemas; - public $tokens; - public $users; - public $users_aliases; - public $users_photos; - public $verificationCodes; - - - /** - * Constructs the internal representation of the Directory service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'admin/directory/v1/'; - $this->version = 'directory_v1'; - $this->serviceName = 'admin'; - - $this->asps = new Google_Service_Directory_Asps_Resource( - $this, - $this->serviceName, - 'asps', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/asps/{codeId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'codeId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/asps/{codeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'codeId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/asps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Directory_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => '/admin/directory_v1/channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource( - $this, - $this->serviceName, - 'chromeosdevices', - array( - 'methods' => array( - 'get' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/devices/chromeos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->customers = new Google_Service_Directory_Customers_Resource( - $this, - $this->serviceName, - 'customers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'customers/{customerKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'customers/{customerKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customers/{customerKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource( - $this, - $this->serviceName, - 'domainAliases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'domainAliasName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'domainAliasName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customer}/domainaliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/domainaliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parentDomainName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->domains = new Google_Service_Directory_Domains_Resource( - $this, - $this->serviceName, - 'domains', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/domains/{domainName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'domainName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/domains/{domainName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'domainName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customer}/domains', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/domains', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_Directory_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userKey' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource( - $this, - $this->serviceName, - 'aliases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}/aliases/{alias}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alias' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups/{groupKey}/aliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'groups/{groupKey}/aliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->members = new Google_Service_Directory_Members_Resource( - $this, - $this->serviceName, - 'members', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups/{groupKey}/members', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'groups/{groupKey}/members', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'roles' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource( - $this, - $this->serviceName, - 'mobiledevices', - array( - 'methods' => array( - 'action' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/devices/mobile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->notifications = new Google_Service_Directory_Notifications_Resource( - $this, - $this->serviceName, - 'notifications', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/notifications', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->orgunits = new Google_Service_Directory_Orgunits_Resource( - $this, - $this->serviceName, - 'orgunits', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customerId}/orgunits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/orgunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->privileges = new Google_Service_Directory_Privileges_Resource( - $this, - $this->serviceName, - 'privileges', - array( - 'methods' => array( - 'list' => array( - 'path' => 'customer/{customer}/roles/ALL/privileges', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->resources_calendars = new Google_Service_Directory_ResourcesCalendars_Resource( - $this, - $this->serviceName, - 'calendars', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'calendarResourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'calendarResourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customer}/resources/calendars', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/resources/calendars', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'calendarResourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'calendarResourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource( - $this, - $this->serviceName, - 'roleAssignments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleAssignmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleAssignmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customer}/roleassignments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/roleassignments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'roleId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userKey' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->roles = new Google_Service_Directory_Roles_Resource( - $this, - $this->serviceName, - 'roles', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/roles/{roleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/roles/{roleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customer}/roles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/roles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customer}/roles/{roleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customer}/roles/{roleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'roleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->schemas = new Google_Service_Directory_Schemas_Resource( - $this, - $this->serviceName, - 'schemas', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'schemaKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'schemaKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customerId}/schemas', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/schemas', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'schemaKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'schemaKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tokens = new Google_Service_Directory_Tokens_Resource( - $this, - $this->serviceName, - 'tokens', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/tokens', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Directory_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customFieldMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'viewType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'users', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customFieldMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'viewType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'makeAdmin' => array( - 'path' => 'users/{userKey}/makeAdmin', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'users/{userKey}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => 'users/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customFieldMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'viewType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource( - $this, - $this->serviceName, - 'aliases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/aliases/{alias}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alias' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/{userKey}/aliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/aliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'users/{userKey}/aliases/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource( - $this, - $this->serviceName, - 'photos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource( - $this, - $this->serviceName, - 'verificationCodes', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'users/{userKey}/verificationCodes/generate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'invalidate' => array( - 'path' => 'users/{userKey}/verificationCodes/invalidate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/verificationCodes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "asps" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $asps = $adminService->asps; - * - */ -class Google_Service_Directory_Asps_Resource extends Google_Service_Resource -{ - - /** - * Delete an ASP issued by a user. (asps.delete) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param int $codeId The unique ID of the ASP to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $codeId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'codeId' => $codeId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Get information about an ASP issued by a user. (asps.get) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param int $codeId The unique ID of the ASP. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Asp - */ - public function get($userKey, $codeId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'codeId' => $codeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Asp"); - } - - /** - * List the ASPs issued by a user. (asps.listAsps) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Asps - */ - public function listAsps($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Asps"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $channels = $adminService->channels; - * - */ -class Google_Service_Directory_Channels_Resource extends Google_Service_Resource -{ - - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } -} - -/** - * The "chromeosdevices" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $chromeosdevices = $adminService->chromeosdevices; - * - */ -class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource -{ - - /** - * Retrieve Chrome OS Device (chromeosdevices.get) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $deviceId Immutable id of Chrome OS Device - * @param array $optParams Optional parameters. - * - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function get($customerId, $deviceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); - } - - /** - * Retrieve all Chrome OS Devices of a customer (paginated) - * (chromeosdevices.listChromeosdevices) - * - * @param string $customerId Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. Default is 100 - * @opt_param string orderBy Column to use for sorting results - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @opt_param string query Search string in the format given at - * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. Only of use when orderBy is also used - * @return Google_Service_Directory_ChromeOsDevices - */ - public function listChromeosdevices($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); - } - - /** - * Update Chrome OS Device. This method supports patch semantics. - * (chromeosdevices.patch) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $deviceId Immutable id of Chrome OS Device - * @param Google_ChromeOsDevice $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); - } - - /** - * Update Chrome OS Device (chromeosdevices.update) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $deviceId Immutable id of Chrome OS Device - * @param Google_ChromeOsDevice $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice"); - } -} - -/** - * The "customers" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $customers = $adminService->customers; - * - */ -class Google_Service_Directory_Customers_Resource extends Google_Service_Resource -{ - - /** - * Retrives a customer. (customers.get) - * - * @param string $customerKey Id of the customer to be retrieved - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Customer - */ - public function get($customerKey, $optParams = array()) - { - $params = array('customerKey' => $customerKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Customer"); - } - - /** - * Updates a customer. This method supports patch semantics. (customers.patch) - * - * @param string $customerKey Id of the customer to be updated - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Customer - */ - public function patch($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) - { - $params = array('customerKey' => $customerKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Customer"); - } - - /** - * Updates a customer. (customers.update) - * - * @param string $customerKey Id of the customer to be updated - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Customer - */ - public function update($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) - { - $params = array('customerKey' => $customerKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Customer"); - } -} - -/** - * The "domainAliases" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $domainAliases = $adminService->domainAliases; - * - */ -class Google_Service_Directory_DomainAliases_Resource extends Google_Service_Resource -{ - - /** - * Deletes a Domain Alias of the customer. (domainAliases.delete) - * - * @param string $customer Immutable id of the Google Apps account. - * @param string $domainAliasName Name of domain alias to be retrieved. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $domainAliasName, $optParams = array()) - { - $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a domain alias of the customer. (domainAliases.get) - * - * @param string $customer Immutable id of the Google Apps account. - * @param string $domainAliasName Name of domain alias to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_DomainAlias - */ - public function get($customer, $domainAliasName, $optParams = array()) - { - $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_DomainAlias"); - } - - /** - * Inserts a Domain alias of the customer. (domainAliases.insert) - * - * @param string $customer Immutable id of the Google Apps account. - * @param Google_DomainAlias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_DomainAlias - */ - public function insert($customer, Google_Service_Directory_DomainAlias $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias"); - } - - /** - * Lists the domain aliases of the customer. (domainAliases.listDomainAliases) - * - * @param string $customer Immutable id of the Google Apps account. - * @param array $optParams Optional parameters. - * - * @opt_param string parentDomainName Name of the parent domain for which domain - * aliases are to be fetched. - * @return Google_Service_Directory_DomainAliases - */ - public function listDomainAliases($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_DomainAliases"); - } -} - -/** - * The "domains" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $domains = $adminService->domains; - * - */ -class Google_Service_Directory_Domains_Resource extends Google_Service_Resource -{ - - /** - * Deletes a domain of the customer. (domains.delete) - * - * @param string $customer Immutable id of the Google Apps account. - * @param string $domainName Name of domain to be deleted - * @param array $optParams Optional parameters. - */ - public function delete($customer, $domainName, $optParams = array()) - { - $params = array('customer' => $customer, 'domainName' => $domainName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrives a domain of the customer. (domains.get) - * - * @param string $customer Immutable id of the Google Apps account. - * @param string $domainName Name of domain to be retrieved - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Domains - */ - public function get($customer, $domainName, $optParams = array()) - { - $params = array('customer' => $customer, 'domainName' => $domainName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Domains"); - } - - /** - * Inserts a domain of the customer. (domains.insert) - * - * @param string $customer Immutable id of the Google Apps account. - * @param Google_Domains $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Domains - */ - public function insert($customer, Google_Service_Directory_Domains $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Domains"); - } - - /** - * Lists the domains of the customer. (domains.listDomains) - * - * @param string $customer Immutable id of the Google Apps account. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Domains2 - */ - public function listDomains($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Domains2"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $groups = $adminService->groups; - * - */ -class Google_Service_Directory_Groups_Resource extends Google_Service_Resource -{ - - /** - * Delete Group (groups.delete) - * - * @param string $groupKey Email or immutable Id of the group - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve Group (groups.get) - * - * @param string $groupKey Email or immutable Id of the group - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function get($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Group"); - } - - /** - * Create Group (groups.insert) - * - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Group"); - } - - /** - * Retrieve all groups in a domain (paginated) (groups.listGroups) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customer Immutable id of the Google Apps account. In case - * of multi-domain, to fetch all groups for a customer, fill this field instead - * of domain. - * @opt_param string domain Name of the domain. Fill this field to get groups - * from only this domain. To return all groups in a multi-domain fill customer - * field instead. - * @opt_param int maxResults Maximum number of results to return. Default is 200 - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string userKey Email or immutable Id of the user if only those - * groups are to be listed, the given user is a member of. If Id, it should - * match with id of user object - * @return Google_Service_Directory_Groups - */ - public function listGroups($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Groups"); - } - - /** - * Update Group. This method supports patch semantics. (groups.patch) - * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Group"); - } - - /** - * Update Group (groups.update) - * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Group"); - } -} - -/** - * The "aliases" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $aliases = $adminService->aliases; - * - */ -class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource -{ - - /** - * Remove a alias for the group (aliases.delete) - * - * @param string $groupKey Email or immutable Id of the group - * @param string $alias The alias to be removed - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $alias, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'alias' => $alias); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Add a alias for the group (aliases.insert) - * - * @param string $groupKey Email or immutable Id of the group - * @param Google_Alias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Alias - */ - public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Alias"); - } - - /** - * List all aliases for a group (aliases.listGroupsAliases) - * - * @param string $groupKey Email or immutable Id of the group - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Aliases - */ - public function listGroupsAliases($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Aliases"); - } -} - -/** - * The "members" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $members = $adminService->members; - * - */ -class Google_Service_Directory_Members_Resource extends Google_Service_Resource -{ - - /** - * Remove membership. (members.delete) - * - * @param string $groupKey Email or immutable Id of the group - * @param string $memberKey Email or immutable Id of the member - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $memberKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve Group Member (members.get) - * - * @param string $groupKey Email or immutable Id of the group - * @param string $memberKey Email or immutable Id of the member - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function get($groupKey, $memberKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Member"); - } - - /** - * Add user to the specified group. (members.insert) - * - * @param string $groupKey Email or immutable Id of the group - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Member"); - } - - /** - * Retrieve all members in a group (paginated) (members.listMembers) - * - * @param string $groupKey Email or immutable Id of the group - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. Default is 200 - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string roles Comma separated role values to filter list results - * on. - * @return Google_Service_Directory_Members - */ - public function listMembers($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Members"); - } - - /** - * Update membership of a user in the specified group. This method supports - * patch semantics. (members.patch) - * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param string $memberKey Email or immutable Id of the user. If Id, it should - * match with id of member object - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Member"); - } - - /** - * Update membership of a user in the specified group. (members.update) - * - * @param string $groupKey Email or immutable Id of the group. If Id, it should - * match with id of group object - * @param string $memberKey Email or immutable Id of the user. If Id, it should - * match with id of member object - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Member"); - } -} - -/** - * The "mobiledevices" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $mobiledevices = $adminService->mobiledevices; - * - */ -class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource -{ - - /** - * Take action on Mobile Device (mobiledevices.action) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $resourceId Immutable id of Mobile Device - * @param Google_MobileDeviceAction $postBody - * @param array $optParams Optional parameters. - */ - public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('action', array($params)); - } - - /** - * Delete Mobile Device (mobiledevices.delete) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $resourceId Immutable id of Mobile Device - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $resourceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve Mobile Device (mobiledevices.get) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $resourceId Immutable id of Mobile Device - * @param array $optParams Optional parameters. - * - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @return Google_Service_Directory_MobileDevice - */ - public function get($customerId, $resourceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_MobileDevice"); - } - - /** - * Retrieve all Mobile Devices of a customer (paginated) - * (mobiledevices.listMobiledevices) - * - * @param string $customerId Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. Default is 100 - * @opt_param string orderBy Column to use for sorting results - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string projection Restrict information returned to a set of - * selected fields. - * @opt_param string query Search string in the format given at - * http://support.google.com/a/bin/answer.py?hl=en=1408863#search - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. Only of use when orderBy is also used - * @return Google_Service_Directory_MobileDevices - */ - public function listMobiledevices($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_MobileDevices"); - } -} - -/** - * The "notifications" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $notifications = $adminService->notifications; - * - */ -class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource -{ - - /** - * Deletes a notification (notifications.delete) - * - * @param string $customer The unique ID for the customer's Google account. The - * customerId is also returned as part of the Users resource. - * @param string $notificationId The unique ID of the notification. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $notificationId, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a notification. (notifications.get) - * - * @param string $customer The unique ID for the customer's Google account. The - * customerId is also returned as part of the Users resource. - * @param string $notificationId The unique ID of the notification. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function get($customer, $notificationId, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Notification"); - } - - /** - * Retrieves a list of notifications. (notifications.listNotifications) - * - * @param string $customer The unique ID for the customer's Google account. - * @param array $optParams Optional parameters. - * - * @opt_param string language The ISO 639-1 code of the language notifications - * are returned in. The default is English (en). - * @opt_param string maxResults Maximum number of notifications to return per - * page. The default is 100. - * @opt_param string pageToken The token to specify the page of results to - * retrieve. - * @return Google_Service_Directory_Notifications - */ - public function listNotifications($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Notifications"); - } - - /** - * Updates a notification. This method supports patch semantics. - * (notifications.patch) - * - * @param string $customer The unique ID for the customer's Google account. - * @param string $notificationId The unique ID of the notification. - * @param Google_Notification $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Notification"); - } - - /** - * Updates a notification. (notifications.update) - * - * @param string $customer The unique ID for the customer's Google account. - * @param string $notificationId The unique ID of the notification. - * @param Google_Notification $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Notification"); - } -} - -/** - * The "orgunits" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $orgunits = $adminService->orgunits; - * - */ -class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource -{ - - /** - * Remove Organization Unit (orgunits.delete) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit or its Id - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $orgUnitPath, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve Organization Unit (orgunits.get) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit or its Id - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function get($customerId, $orgUnitPath, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_OrgUnit"); - } - - /** - * Add Organization Unit (orgunits.insert) - * - * @param string $customerId Immutable id of the Google Apps account - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit"); - } - - /** - * Retrieve all Organization Units (orgunits.listOrgunits) - * - * @param string $customerId Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param string orgUnitPath the URL-encoded organization unit's path or its - * Id - * @opt_param string type Whether to return all sub-organizations or just - * immediate children - * @return Google_Service_Directory_OrgUnits - */ - public function listOrgunits($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_OrgUnits"); - } - - /** - * Update Organization Unit. This method supports patch semantics. - * (orgunits.patch) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit or its Id - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit"); - } - - /** - * Update Organization Unit (orgunits.update) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit or its Id - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_OrgUnit"); - } -} - -/** - * The "privileges" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $privileges = $adminService->privileges; - * - */ -class Google_Service_Directory_Privileges_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a paginated list of all privileges for a customer. - * (privileges.listPrivileges) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Privileges - */ - public function listPrivileges($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Privileges"); - } -} - -/** - * The "resources" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $resources = $adminService->resources; - * - */ -class Google_Service_Directory_Resources_Resource extends Google_Service_Resource -{ -} - -/** - * The "calendars" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $calendars = $adminService->calendars; - * - */ -class Google_Service_Directory_ResourcesCalendars_Resource extends Google_Service_Resource -{ - - /** - * Deletes a calendar resource. (calendars.delete) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param string $calendarResourceId The unique ID of the calendar resource to - * delete. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $calendarResourceId, $optParams = array()) - { - $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a calendar resource. (calendars.get) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param string $calendarResourceId The unique ID of the calendar resource to - * retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_CalendarResource - */ - public function get($customer, $calendarResourceId, $optParams = array()) - { - $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_CalendarResource"); - } - - /** - * Inserts a calendar resource. (calendars.insert) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param Google_CalendarResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_CalendarResource - */ - public function insert($customer, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_CalendarResource"); - } - - /** - * Retrieves a list of calendar resources for an account. - * (calendars.listResourcesCalendars) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Token to specify the next page in the list. - * @return Google_Service_Directory_CalendarResources - */ - public function listResourcesCalendars($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_CalendarResources"); - } - - /** - * Updates a calendar resource. This method supports patch semantics. - * (calendars.patch) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param string $calendarResourceId The unique ID of the calendar resource to - * update. - * @param Google_CalendarResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_CalendarResource - */ - public function patch($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_CalendarResource"); - } - - /** - * Updates a calendar resource. (calendars.update) - * - * @param string $customer The unique ID for the customer's Google account. As - * an account administrator, you can also use the my_customer alias to represent - * your account's customer ID. - * @param string $calendarResourceId The unique ID of the calendar resource to - * update. - * @param Google_CalendarResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_CalendarResource - */ - public function update($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_CalendarResource"); - } -} - -/** - * The "roleAssignments" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $roleAssignments = $adminService->roleAssignments; - * - */ -class Google_Service_Directory_RoleAssignments_Resource extends Google_Service_Resource -{ - - /** - * Deletes a role assignment. (roleAssignments.delete) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleAssignmentId Immutable ID of the role assignment. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $roleAssignmentId, $optParams = array()) - { - $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve a role assignment. (roleAssignments.get) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleAssignmentId Immutable ID of the role assignment. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_RoleAssignment - */ - public function get($customer, $roleAssignmentId, $optParams = array()) - { - $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_RoleAssignment"); - } - - /** - * Creates a role assignment. (roleAssignments.insert) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param Google_RoleAssignment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_RoleAssignment - */ - public function insert($customer, Google_Service_Directory_RoleAssignment $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_RoleAssignment"); - } - - /** - * Retrieves a paginated list of all roleAssignments. - * (roleAssignments.listRoleAssignments) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Token to specify the next page in the list. - * @opt_param string roleId Immutable ID of a role. If included in the request, - * returns only role assignments containing this role ID. - * @opt_param string userKey The user's primary email address, alias email - * address, or unique user ID. If included in the request, returns role - * assignments only for this user. - * @return Google_Service_Directory_RoleAssignments - */ - public function listRoleAssignments($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_RoleAssignments"); - } -} - -/** - * The "roles" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $roles = $adminService->roles; - * - */ -class Google_Service_Directory_Roles_Resource extends Google_Service_Resource -{ - - /** - * Deletes a role. (roles.delete) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleId Immutable ID of the role. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $roleId, $optParams = array()) - { - $params = array('customer' => $customer, 'roleId' => $roleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a role. (roles.get) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleId Immutable ID of the role. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Role - */ - public function get($customer, $roleId, $optParams = array()) - { - $params = array('customer' => $customer, 'roleId' => $roleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Role"); - } - - /** - * Creates a role. (roles.insert) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param Google_Role $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Role - */ - public function insert($customer, Google_Service_Directory_Role $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Role"); - } - - /** - * Retrieves a paginated list of all the roles in a domain. (roles.listRoles) - * - * @param string $customer Immutable id of the Google Apps account. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Token to specify the next page in the list. - * @return Google_Service_Directory_Roles - */ - public function listRoles($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Roles"); - } - - /** - * Updates a role. This method supports patch semantics. (roles.patch) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleId Immutable ID of the role. - * @param Google_Role $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Role - */ - public function patch($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Role"); - } - - /** - * Updates a role. (roles.update) - * - * @param string $customer Immutable ID of the Google Apps account. - * @param string $roleId Immutable ID of the role. - * @param Google_Role $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Role - */ - public function update($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Role"); - } -} - -/** - * The "schemas" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $schemas = $adminService->schemas; - * - */ -class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource -{ - - /** - * Delete schema (schemas.delete) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $schemaKey, $optParams = array()) - { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve schema (schemas.get) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema - */ - public function get($customerId, $schemaKey, $optParams = array()) - { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Schema"); - } - - /** - * Create schema. (schemas.insert) - * - * @param string $customerId Immutable id of the Google Apps account - * @param Google_Schema $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema - */ - public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Schema"); - } - - /** - * Retrieve all schemas for a customer (schemas.listSchemas) - * - * @param string $customerId Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schemas - */ - public function listSchemas($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Schemas"); - } - - /** - * Update schema. This method supports patch semantics. (schemas.patch) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema. - * @param Google_Schema $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema - */ - public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Schema"); - } - - /** - * Update schema (schemas.update) - * - * @param string $customerId Immutable id of the Google Apps account - * @param string $schemaKey Name or immutable Id of the schema. - * @param Google_Schema $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Schema - */ - public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Schema"); - } -} - -/** - * The "tokens" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $tokens = $adminService->tokens; - * - */ -class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource -{ - - /** - * Delete all access tokens issued by a user for an application. (tokens.delete) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param string $clientId The Client ID of the application the token is issued - * to. - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $clientId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'clientId' => $clientId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Get information about an access token issued by a user. (tokens.get) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param string $clientId The Client ID of the application the token is issued - * to. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Token - */ - public function get($userKey, $clientId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'clientId' => $clientId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Token"); - } - - /** - * Returns the set of tokens specified user has issued to 3rd party - * applications. (tokens.listTokens) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Tokens - */ - public function listTokens($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Tokens"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $users = $adminService->users; - * - */ -class Google_Service_Directory_Users_Resource extends Google_Service_Resource -{ - - /** - * Delete user (users.delete) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * retrieve user (users.get) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - * - * @opt_param string customFieldMask Comma-separated list of schema names. All - * fields from these schemas are fetched. This should only be set when - * projection=custom. - * @opt_param string projection What subset of fields to fetch for this user. - * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC - * view of the user. - * @return Google_Service_Directory_User - */ - public function get($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_User"); - } - - /** - * create user. (users.insert) - * - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function insert(Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_User"); - } - - /** - * Retrieve either deleted users or all users in a domain (paginated) - * (users.listUsers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customFieldMask Comma-separated list of schema names. All - * fields from these schemas are fetched. This should only be set when - * projection=custom. - * @opt_param string customer Immutable id of the Google Apps account. In case - * of multi-domain, to fetch all users for a customer, fill this field instead - * of domain. - * @opt_param string domain Name of the domain. Fill this field to get users - * from only this domain. To return all users in a multi-domain fill customer - * field instead. - * @opt_param string event Event on which subscription is intended (if - * subscribing) - * @opt_param int maxResults Maximum number of results to return. Default is - * 100. Max allowed is 500 - * @opt_param string orderBy Column to use for sorting results - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string projection What subset of fields to fetch for this user. - * @opt_param string query Query string search. Should be of the form "". - * Complete documentation is at https://developers.google.com/admin- - * sdk/directory/v1/guides/search-users - * @opt_param string showDeleted If set to true retrieves the list of deleted - * users. Default is false - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. - * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC - * view of the user. - * @return Google_Service_Directory_Users - */ - public function listUsers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Users"); - } - - /** - * change admin status of a user (users.makeAdmin) - * - * @param string $userKey Email or immutable Id of the user as admin - * @param Google_UserMakeAdmin $postBody - * @param array $optParams Optional parameters. - */ - public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('makeAdmin', array($params)); - } - - /** - * update user. This method supports patch semantics. (users.patch) - * - * @param string $userKey Email or immutable Id of the user. If Id, it should - * match with id of user object - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_User"); - } - - /** - * Undelete a deleted user (users.undelete) - * - * @param string $userKey The immutable id of the user - * @param Google_UserUndelete $postBody - * @param array $optParams Optional parameters. - */ - public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params)); - } - - /** - * update user (users.update) - * - * @param string $userKey Email or immutable Id of the user. If Id, it should - * match with id of user object - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_User"); - } - - /** - * Watch for changes in users list (users.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customFieldMask Comma-separated list of schema names. All - * fields from these schemas are fetched. This should only be set when - * projection=custom. - * @opt_param string customer Immutable id of the Google Apps account. In case - * of multi-domain, to fetch all users for a customer, fill this field instead - * of domain. - * @opt_param string domain Name of the domain. Fill this field to get users - * from only this domain. To return all users in a multi-domain fill customer - * field instead. - * @opt_param string event Event on which subscription is intended (if - * subscribing) - * @opt_param int maxResults Maximum number of results to return. Default is - * 100. Max allowed is 500 - * @opt_param string orderBy Column to use for sorting results - * @opt_param string pageToken Token to specify next page in the list - * @opt_param string projection What subset of fields to fetch for this user. - * @opt_param string query Query string search. Should be of the form "". - * Complete documentation is at https://developers.google.com/admin- - * sdk/directory/v1/guides/search-users - * @opt_param string showDeleted If set to true retrieves the list of deleted - * users. Default is false - * @opt_param string sortOrder Whether to return results in ascending or - * descending order. - * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC - * view of the user. - * @return Google_Service_Directory_Channel - */ - public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Directory_Channel"); - } -} - -/** - * The "aliases" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $aliases = $adminService->aliases; - * - */ -class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource -{ - - /** - * Remove a alias for the user (aliases.delete) - * - * @param string $userKey Email or immutable Id of the user - * @param string $alias The alias to be removed - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $alias, $optParams = array()) - { - $params = array('userKey' => $userKey, 'alias' => $alias); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Add a alias for the user (aliases.insert) - * - * @param string $userKey Email or immutable Id of the user - * @param Google_Alias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Alias - */ - public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Alias"); - } - - /** - * List all aliases for a user (aliases.listUsersAliases) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - * - * @opt_param string event Event on which subscription is intended (if - * subscribing) - * @return Google_Service_Directory_Aliases - */ - public function listUsersAliases($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Aliases"); - } - - /** - * Watch for changes in user aliases list (aliases.watch) - * - * @param string $userKey Email or immutable Id of the user - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string event Event on which subscription is intended (if - * subscribing) - * @return Google_Service_Directory_Channel - */ - public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Directory_Channel"); - } -} -/** - * The "photos" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $photos = $adminService->photos; - * - */ -class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource -{ - - /** - * Remove photos for the user (photos.delete) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieve photo of a user (photos.get) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function get($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_UserPhoto"); - } - - /** - * Add a photo for the user. This method supports patch semantics. - * (photos.patch) - * - * @param string $userKey Email or immutable Id of the user - * @param Google_UserPhoto $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto"); - } - - /** - * Add a photo for the user (photos.update) - * - * @param string $userKey Email or immutable Id of the user - * @param Google_UserPhoto $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_UserPhoto"); - } -} - -/** - * The "verificationCodes" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Directory(...); - * $verificationCodes = $adminService->verificationCodes; - * - */ -class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource -{ - - /** - * Generate new backup verification codes for the user. - * (verificationCodes.generate) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function generate($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params)); - } - - /** - * Invalidate the current backup verification codes for the user. - * (verificationCodes.invalidate) - * - * @param string $userKey Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function invalidate($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('invalidate', array($params)); - } - - /** - * Returns the current set of valid backup verification codes for the specified - * user. (verificationCodes.listVerificationCodes) - * - * @param string $userKey Identifies the user in the API request. The value can - * be the user's primary email address, alias email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_VerificationCodes - */ - public function listVerificationCodes($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes"); - } -} - - - - -class Google_Service_Directory_Alias extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alias; - public $etag; - public $id; - public $kind; - public $primaryEmail; - - - public function setAlias($alias) - { - $this->alias = $alias; - } - public function getAlias() - { - return $this->alias; - } - 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 setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } -} - -class Google_Service_Directory_Aliases extends Google_Collection -{ - protected $collection_key = 'aliases'; - protected $internal_gapi_mappings = array( - ); - protected $aliasesType = 'Google_Service_Directory_Alias'; - protected $aliasesDataType = 'array'; - public $etag; - public $kind; - - - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() - { - return $this->aliases; - } - 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; - } -} - -class Google_Service_Directory_Asp extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $codeId; - public $creationTime; - public $etag; - public $kind; - public $lastTimeUsed; - public $name; - public $userKey; - - - public function setCodeId($codeId) - { - $this->codeId = $codeId; - } - public function getCodeId() - { - return $this->codeId; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - 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 setLastTimeUsed($lastTimeUsed) - { - $this->lastTimeUsed = $lastTimeUsed; - } - public function getLastTimeUsed() - { - return $this->lastTimeUsed; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setUserKey($userKey) - { - $this->userKey = $userKey; - } - public function getUserKey() - { - return $this->userKey; - } -} - -class Google_Service_Directory_Asps extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_Asp'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Directory_CalendarResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etags; - public $kind; - public $resourceDescription; - public $resourceEmail; - public $resourceId; - public $resourceName; - public $resourceType; - - - 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 setResourceDescription($resourceDescription) - { - $this->resourceDescription = $resourceDescription; - } - public function getResourceDescription() - { - return $this->resourceDescription; - } - public function setResourceEmail($resourceEmail) - { - $this->resourceEmail = $resourceEmail; - } - public function getResourceEmail() - { - return $this->resourceEmail; - } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setResourceName($resourceName) - { - $this->resourceName = $resourceName; - } - public function getResourceName() - { - return $this->resourceName; - } - public function setResourceType($resourceType) - { - $this->resourceType = $resourceType; - } - public function getResourceType() - { - return $this->resourceType; - } -} - -class Google_Service_Directory_CalendarResources extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_CalendarResource'; - protected $itemsDataType = 'array'; - 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_Directory_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function 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 setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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_Directory_ChromeOsDevice extends Google_Collection -{ - protected $collection_key = 'recentUsers'; - protected $internal_gapi_mappings = array( - ); - protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; - protected $activeTimeRangesDataType = 'array'; - public $annotatedAssetId; - public $annotatedLocation; - public $annotatedUser; - public $bootMode; - public $deviceId; - public $etag; - public $ethernetMacAddress; - public $firmwareVersion; - public $kind; - public $lastEnrollmentTime; - public $lastSync; - public $macAddress; - public $meid; - public $model; - public $notes; - public $orderNumber; - public $orgUnitPath; - public $osVersion; - public $platformVersion; - protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers'; - protected $recentUsersDataType = 'array'; - public $serialNumber; - public $status; - public $supportEndDate; - public $willAutoRenew; - - - public function setActiveTimeRanges($activeTimeRanges) - { - $this->activeTimeRanges = $activeTimeRanges; - } - public function getActiveTimeRanges() - { - return $this->activeTimeRanges; - } - public function setAnnotatedAssetId($annotatedAssetId) - { - $this->annotatedAssetId = $annotatedAssetId; - } - public function getAnnotatedAssetId() - { - return $this->annotatedAssetId; - } - public function setAnnotatedLocation($annotatedLocation) - { - $this->annotatedLocation = $annotatedLocation; - } - public function getAnnotatedLocation() - { - return $this->annotatedLocation; - } - public function setAnnotatedUser($annotatedUser) - { - $this->annotatedUser = $annotatedUser; - } - public function getAnnotatedUser() - { - return $this->annotatedUser; - } - public function setBootMode($bootMode) - { - $this->bootMode = $bootMode; - } - public function getBootMode() - { - return $this->bootMode; - } - public function setDeviceId($deviceId) - { - $this->deviceId = $deviceId; - } - public function getDeviceId() - { - return $this->deviceId; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEthernetMacAddress($ethernetMacAddress) - { - $this->ethernetMacAddress = $ethernetMacAddress; - } - public function getEthernetMacAddress() - { - return $this->ethernetMacAddress; - } - public function setFirmwareVersion($firmwareVersion) - { - $this->firmwareVersion = $firmwareVersion; - } - public function getFirmwareVersion() - { - return $this->firmwareVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastEnrollmentTime($lastEnrollmentTime) - { - $this->lastEnrollmentTime = $lastEnrollmentTime; - } - public function getLastEnrollmentTime() - { - return $this->lastEnrollmentTime; - } - public function setLastSync($lastSync) - { - $this->lastSync = $lastSync; - } - public function getLastSync() - { - return $this->lastSync; - } - public function setMacAddress($macAddress) - { - $this->macAddress = $macAddress; - } - public function getMacAddress() - { - return $this->macAddress; - } - public function setMeid($meid) - { - $this->meid = $meid; - } - public function getMeid() - { - return $this->meid; - } - public function setModel($model) - { - $this->model = $model; - } - public function getModel() - { - return $this->model; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setOrderNumber($orderNumber) - { - $this->orderNumber = $orderNumber; - } - public function getOrderNumber() - { - return $this->orderNumber; - } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } - public function setOsVersion($osVersion) - { - $this->osVersion = $osVersion; - } - public function getOsVersion() - { - return $this->osVersion; - } - public function setPlatformVersion($platformVersion) - { - $this->platformVersion = $platformVersion; - } - public function getPlatformVersion() - { - return $this->platformVersion; - } - public function setRecentUsers($recentUsers) - { - $this->recentUsers = $recentUsers; - } - public function getRecentUsers() - { - return $this->recentUsers; - } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } - public function getSerialNumber() - { - return $this->serialNumber; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSupportEndDate($supportEndDate) - { - $this->supportEndDate = $supportEndDate; - } - public function getSupportEndDate() - { - return $this->supportEndDate; - } - public function setWillAutoRenew($willAutoRenew) - { - $this->willAutoRenew = $willAutoRenew; - } - public function getWillAutoRenew() - { - return $this->willAutoRenew; - } -} - -class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activeTime; - public $date; - - - public function setActiveTime($activeTime) - { - $this->activeTime = $activeTime; - } - public function getActiveTime() - { - return $this->activeTime; - } - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } -} - -class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $type; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Directory_ChromeOsDevices extends Google_Collection -{ - protected $collection_key = 'chromeosdevices'; - protected $internal_gapi_mappings = array( - ); - protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; - protected $chromeosdevicesDataType = 'array'; - public $etag; - public $kind; - public $nextPageToken; - - - public function setChromeosdevices($chromeosdevices) - { - $this->chromeosdevices = $chromeosdevices; - } - public function getChromeosdevices() - { - return $this->chromeosdevices; - } - 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_Directory_Customer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alternateEmail; - public $customerCreationTime; - public $customerDomain; - public $etag; - public $id; - public $kind; - public $language; - public $phoneNumber; - protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress'; - protected $postalAddressDataType = ''; - - - public function setAlternateEmail($alternateEmail) - { - $this->alternateEmail = $alternateEmail; - } - public function getAlternateEmail() - { - return $this->alternateEmail; - } - public function setCustomerCreationTime($customerCreationTime) - { - $this->customerCreationTime = $customerCreationTime; - } - public function getCustomerCreationTime() - { - return $this->customerCreationTime; - } - public function setCustomerDomain($customerDomain) - { - $this->customerDomain = $customerDomain; - } - public function getCustomerDomain() - { - return $this->customerDomain; - } - 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 setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - public function getPhoneNumber() - { - return $this->phoneNumber; - } - public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress) - { - $this->postalAddress = $postalAddress; - } - public function getPostalAddress() - { - return $this->postalAddress; - } -} - -class Google_Service_Directory_CustomerPostalAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $addressLine1; - public $addressLine2; - public $addressLine3; - public $contactName; - public $countryCode; - 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 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_Directory_DomainAlias extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $domainAliasName; - public $etag; - public $kind; - public $parentDomainName; - public $verified; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDomainAliasName($domainAliasName) - { - $this->domainAliasName = $domainAliasName; - } - public function getDomainAliasName() - { - return $this->domainAliasName; - } - 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 setParentDomainName($parentDomainName) - { - $this->parentDomainName = $parentDomainName; - } - public function getParentDomainName() - { - return $this->parentDomainName; - } - public function setVerified($verified) - { - $this->verified = $verified; - } - public function getVerified() - { - return $this->verified; - } -} - -class Google_Service_Directory_DomainAliases extends Google_Collection -{ - protected $collection_key = 'domainAliases'; - protected $internal_gapi_mappings = array( - ); - protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; - protected $domainAliasesDataType = 'array'; - public $etag; - public $kind; - - - public function setDomainAliases($domainAliases) - { - $this->domainAliases = $domainAliases; - } - public function getDomainAliases() - { - return $this->domainAliases; - } - 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; - } -} - -class Google_Service_Directory_Domains extends Google_Collection -{ - protected $collection_key = 'domainAliases'; - protected $internal_gapi_mappings = array( - ); - public $creationTime; - protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; - protected $domainAliasesDataType = 'array'; - public $domainName; - public $etag; - public $isPrimary; - public $kind; - public $verified; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDomainAliases($domainAliases) - { - $this->domainAliases = $domainAliases; - } - public function getDomainAliases() - { - return $this->domainAliases; - } - public function setDomainName($domainName) - { - $this->domainName = $domainName; - } - public function getDomainName() - { - return $this->domainName; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setIsPrimary($isPrimary) - { - $this->isPrimary = $isPrimary; - } - public function getIsPrimary() - { - return $this->isPrimary; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVerified($verified) - { - $this->verified = $verified; - } - public function getVerified() - { - return $this->verified; - } -} - -class Google_Service_Directory_Domains2 extends Google_Collection -{ - protected $collection_key = 'domains'; - protected $internal_gapi_mappings = array( - ); - protected $domainsType = 'Google_Service_Directory_Domains'; - protected $domainsDataType = 'array'; - public $etag; - public $kind; - - - public function setDomains($domains) - { - $this->domains = $domains; - } - public function getDomains() - { - return $this->domains; - } - 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; - } -} - -class Google_Service_Directory_Group extends Google_Collection -{ - protected $collection_key = 'nonEditableAliases'; - protected $internal_gapi_mappings = array( - ); - public $adminCreated; - public $aliases; - public $description; - public $directMembersCount; - public $email; - public $etag; - public $id; - public $kind; - public $name; - public $nonEditableAliases; - - - public function setAdminCreated($adminCreated) - { - $this->adminCreated = $adminCreated; - } - public function getAdminCreated() - { - return $this->adminCreated; - } - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() - { - return $this->aliases; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDirectMembersCount($directMembersCount) - { - $this->directMembersCount = $directMembersCount; - } - public function getDirectMembersCount() - { - return $this->directMembersCount; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - 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 setNonEditableAliases($nonEditableAliases) - { - $this->nonEditableAliases = $nonEditableAliases; - } - public function getNonEditableAliases() - { - return $this->nonEditableAliases; - } -} - -class Google_Service_Directory_Groups extends Google_Collection -{ - protected $collection_key = 'groups'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $groupsType = 'Google_Service_Directory_Group'; - protected $groupsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setGroups($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 setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Directory_Member extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $etag; - public $id; - public $kind; - public $role; - public $type; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - 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 setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Directory_Members extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - protected $membersType = 'Google_Service_Directory_Member'; - protected $membersDataType = 'array'; - public $nextPageToken; - - - 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 setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Directory_MobileDevice extends Google_Collection -{ - protected $collection_key = 'otherAccountsInfo'; - protected $internal_gapi_mappings = array( - ); - public $adbStatus; - protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; - protected $applicationsDataType = 'array'; - public $basebandVersion; - public $buildNumber; - public $defaultLanguage; - public $developerOptionsStatus; - public $deviceCompromisedStatus; - public $deviceId; - public $email; - public $etag; - public $firstSync; - public $hardwareId; - public $imei; - public $kernelVersion; - public $kind; - public $lastSync; - public $managedAccountIsOnOwnerProfile; - public $meid; - public $model; - public $name; - public $networkOperator; - public $os; - public $otherAccountsInfo; - public $resourceId; - public $serialNumber; - public $status; - public $supportsWorkProfile; - public $type; - public $unknownSourcesStatus; - public $userAgent; - public $wifiMacAddress; - - - public function setAdbStatus($adbStatus) - { - $this->adbStatus = $adbStatus; - } - public function getAdbStatus() - { - return $this->adbStatus; - } - public function setApplications($applications) - { - $this->applications = $applications; - } - public function getApplications() - { - return $this->applications; - } - public function setBasebandVersion($basebandVersion) - { - $this->basebandVersion = $basebandVersion; - } - public function getBasebandVersion() - { - return $this->basebandVersion; - } - public function setBuildNumber($buildNumber) - { - $this->buildNumber = $buildNumber; - } - public function getBuildNumber() - { - return $this->buildNumber; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDeveloperOptionsStatus($developerOptionsStatus) - { - $this->developerOptionsStatus = $developerOptionsStatus; - } - public function getDeveloperOptionsStatus() - { - return $this->developerOptionsStatus; - } - public function setDeviceCompromisedStatus($deviceCompromisedStatus) - { - $this->deviceCompromisedStatus = $deviceCompromisedStatus; - } - public function getDeviceCompromisedStatus() - { - return $this->deviceCompromisedStatus; - } - public function setDeviceId($deviceId) - { - $this->deviceId = $deviceId; - } - public function getDeviceId() - { - return $this->deviceId; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFirstSync($firstSync) - { - $this->firstSync = $firstSync; - } - public function getFirstSync() - { - return $this->firstSync; - } - public function setHardwareId($hardwareId) - { - $this->hardwareId = $hardwareId; - } - public function getHardwareId() - { - return $this->hardwareId; - } - public function setImei($imei) - { - $this->imei = $imei; - } - public function getImei() - { - return $this->imei; - } - public function setKernelVersion($kernelVersion) - { - $this->kernelVersion = $kernelVersion; - } - public function getKernelVersion() - { - return $this->kernelVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastSync($lastSync) - { - $this->lastSync = $lastSync; - } - public function getLastSync() - { - return $this->lastSync; - } - public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) - { - $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; - } - public function getManagedAccountIsOnOwnerProfile() - { - return $this->managedAccountIsOnOwnerProfile; - } - public function setMeid($meid) - { - $this->meid = $meid; - } - public function getMeid() - { - return $this->meid; - } - public function setModel($model) - { - $this->model = $model; - } - public function getModel() - { - return $this->model; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetworkOperator($networkOperator) - { - $this->networkOperator = $networkOperator; - } - public function getNetworkOperator() - { - return $this->networkOperator; - } - public function setOs($os) - { - $this->os = $os; - } - public function getOs() - { - return $this->os; - } - public function setOtherAccountsInfo($otherAccountsInfo) - { - $this->otherAccountsInfo = $otherAccountsInfo; - } - public function getOtherAccountsInfo() - { - return $this->otherAccountsInfo; - } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } - public function getSerialNumber() - { - return $this->serialNumber; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSupportsWorkProfile($supportsWorkProfile) - { - $this->supportsWorkProfile = $supportsWorkProfile; - } - public function getSupportsWorkProfile() - { - return $this->supportsWorkProfile; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnknownSourcesStatus($unknownSourcesStatus) - { - $this->unknownSourcesStatus = $unknownSourcesStatus; - } - public function getUnknownSourcesStatus() - { - return $this->unknownSourcesStatus; - } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - public function getUserAgent() - { - return $this->userAgent; - } - public function setWifiMacAddress($wifiMacAddress) - { - $this->wifiMacAddress = $wifiMacAddress; - } - public function getWifiMacAddress() - { - return $this->wifiMacAddress; - } -} - -class Google_Service_Directory_MobileDeviceAction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $action; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } -} - -class Google_Service_Directory_MobileDeviceApplications extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $packageName; - public $permission; - public $versionCode; - public $versionName; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - public function getPackageName() - { - return $this->packageName; - } - public function setPermission($permission) - { - $this->permission = $permission; - } - public function getPermission() - { - return $this->permission; - } - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - public function getVersionCode() - { - return $this->versionCode; - } - public function setVersionName($versionName) - { - $this->versionName = $versionName; - } - public function getVersionName() - { - return $this->versionName; - } -} - -class Google_Service_Directory_MobileDevices extends Google_Collection -{ - protected $collection_key = 'mobiledevices'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; - protected $mobiledevicesDataType = 'array'; - public $nextPageToken; - - - 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 setMobiledevices($mobiledevices) - { - $this->mobiledevices = $mobiledevices; - } - public function getMobiledevices() - { - return $this->mobiledevices; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Directory_Notification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $body; - public $etag; - public $fromAddress; - public $isUnread; - public $kind; - public $notificationId; - public $sendTime; - public $subject; - - - public function setBody($body) - { - $this->body = $body; - } - public function getBody() - { - return $this->body; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFromAddress($fromAddress) - { - $this->fromAddress = $fromAddress; - } - public function getFromAddress() - { - return $this->fromAddress; - } - public function setIsUnread($isUnread) - { - $this->isUnread = $isUnread; - } - public function getIsUnread() - { - return $this->isUnread; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNotificationId($notificationId) - { - $this->notificationId = $notificationId; - } - public function getNotificationId() - { - return $this->notificationId; - } - public function setSendTime($sendTime) - { - $this->sendTime = $sendTime; - } - public function getSendTime() - { - return $this->sendTime; - } - public function setSubject($subject) - { - $this->subject = $subject; - } - public function getSubject() - { - return $this->subject; - } -} - -class Google_Service_Directory_Notifications extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_Notification'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $unreadNotificationsCount; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setUnreadNotificationsCount($unreadNotificationsCount) - { - $this->unreadNotificationsCount = $unreadNotificationsCount; - } - public function getUnreadNotificationsCount() - { - return $this->unreadNotificationsCount; - } -} - -class Google_Service_Directory_OrgUnit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $blockInheritance; - public $description; - public $etag; - public $kind; - public $name; - public $orgUnitId; - public $orgUnitPath; - public $parentOrgUnitId; - public $parentOrgUnitPath; - - - public function setBlockInheritance($blockInheritance) - { - $this->blockInheritance = $blockInheritance; - } - public function getBlockInheritance() - { - return $this->blockInheritance; - } - 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 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 setOrgUnitId($orgUnitId) - { - $this->orgUnitId = $orgUnitId; - } - public function getOrgUnitId() - { - return $this->orgUnitId; - } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } - public function setParentOrgUnitId($parentOrgUnitId) - { - $this->parentOrgUnitId = $parentOrgUnitId; - } - public function getParentOrgUnitId() - { - return $this->parentOrgUnitId; - } - public function setParentOrgUnitPath($parentOrgUnitPath) - { - $this->parentOrgUnitPath = $parentOrgUnitPath; - } - public function getParentOrgUnitPath() - { - return $this->parentOrgUnitPath; - } -} - -class Google_Service_Directory_OrgUnits extends Google_Collection -{ - protected $collection_key = 'organizationUnits'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; - protected $organizationUnitsDataType = 'array'; - - - 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 setOrganizationUnits($organizationUnits) - { - $this->organizationUnits = $organizationUnits; - } - public function getOrganizationUnits() - { - return $this->organizationUnits; - } -} - -class Google_Service_Directory_Privilege extends Google_Collection -{ - protected $collection_key = 'childPrivileges'; - protected $internal_gapi_mappings = array( - ); - protected $childPrivilegesType = 'Google_Service_Directory_Privilege'; - protected $childPrivilegesDataType = 'array'; - public $etag; - public $isOuScopable; - public $kind; - public $privilegeName; - public $serviceId; - public $serviceName; - - - public function setChildPrivileges($childPrivileges) - { - $this->childPrivileges = $childPrivileges; - } - public function getChildPrivileges() - { - return $this->childPrivileges; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setIsOuScopable($isOuScopable) - { - $this->isOuScopable = $isOuScopable; - } - public function getIsOuScopable() - { - return $this->isOuScopable; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPrivilegeName($privilegeName) - { - $this->privilegeName = $privilegeName; - } - public function getPrivilegeName() - { - return $this->privilegeName; - } - public function setServiceId($serviceId) - { - $this->serviceId = $serviceId; - } - public function getServiceId() - { - return $this->serviceId; - } - public function setServiceName($serviceName) - { - $this->serviceName = $serviceName; - } - public function getServiceName() - { - return $this->serviceName; - } -} - -class Google_Service_Directory_Privileges extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_Privilege'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Directory_Role extends Google_Collection -{ - protected $collection_key = 'rolePrivileges'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $isSuperAdminRole; - public $isSystemRole; - public $kind; - public $roleDescription; - public $roleId; - public $roleName; - protected $rolePrivilegesType = 'Google_Service_Directory_RoleRolePrivileges'; - protected $rolePrivilegesDataType = 'array'; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setIsSuperAdminRole($isSuperAdminRole) - { - $this->isSuperAdminRole = $isSuperAdminRole; - } - public function getIsSuperAdminRole() - { - return $this->isSuperAdminRole; - } - public function setIsSystemRole($isSystemRole) - { - $this->isSystemRole = $isSystemRole; - } - public function getIsSystemRole() - { - return $this->isSystemRole; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRoleDescription($roleDescription) - { - $this->roleDescription = $roleDescription; - } - public function getRoleDescription() - { - return $this->roleDescription; - } - public function setRoleId($roleId) - { - $this->roleId = $roleId; - } - public function getRoleId() - { - return $this->roleId; - } - public function setRoleName($roleName) - { - $this->roleName = $roleName; - } - public function getRoleName() - { - return $this->roleName; - } - public function setRolePrivileges($rolePrivileges) - { - $this->rolePrivileges = $rolePrivileges; - } - public function getRolePrivileges() - { - return $this->rolePrivileges; - } -} - -class Google_Service_Directory_RoleAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $assignedTo; - public $etag; - public $kind; - public $orgUnitId; - public $roleAssignmentId; - public $roleId; - public $scopeType; - - - public function setAssignedTo($assignedTo) - { - $this->assignedTo = $assignedTo; - } - public function getAssignedTo() - { - return $this->assignedTo; - } - 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 setOrgUnitId($orgUnitId) - { - $this->orgUnitId = $orgUnitId; - } - public function getOrgUnitId() - { - return $this->orgUnitId; - } - public function setRoleAssignmentId($roleAssignmentId) - { - $this->roleAssignmentId = $roleAssignmentId; - } - public function getRoleAssignmentId() - { - return $this->roleAssignmentId; - } - public function setRoleId($roleId) - { - $this->roleId = $roleId; - } - public function getRoleId() - { - return $this->roleId; - } - public function setScopeType($scopeType) - { - $this->scopeType = $scopeType; - } - public function getScopeType() - { - return $this->scopeType; - } -} - -class Google_Service_Directory_RoleAssignments extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_RoleAssignment'; - protected $itemsDataType = 'array'; - 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_Directory_RoleRolePrivileges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privilegeName; - public $serviceId; - - - public function setPrivilegeName($privilegeName) - { - $this->privilegeName = $privilegeName; - } - public function getPrivilegeName() - { - return $this->privilegeName; - } - public function setServiceId($serviceId) - { - $this->serviceId = $serviceId; - } - public function getServiceId() - { - return $this->serviceId; - } -} - -class Google_Service_Directory_Roles extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_Role'; - protected $itemsDataType = 'array'; - 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_Directory_Schema extends Google_Collection -{ - protected $collection_key = 'fields'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec'; - protected $fieldsDataType = 'array'; - public $kind; - public $schemaId; - public $schemaName; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFields($fields) - { - $this->fields = $fields; - } - public function getFields() - { - return $this->fields; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSchemaId($schemaId) - { - $this->schemaId = $schemaId; - } - public function getSchemaId() - { - return $this->schemaId; - } - public function setSchemaName($schemaName) - { - $this->schemaName = $schemaName; - } - public function getSchemaName() - { - return $this->schemaName; - } -} - -class Google_Service_Directory_SchemaFieldSpec extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $fieldId; - public $fieldName; - public $fieldType; - public $indexed; - public $kind; - public $multiValued; - protected $numericIndexingSpecType = 'Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec'; - protected $numericIndexingSpecDataType = ''; - public $readAccessType; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFieldId($fieldId) - { - $this->fieldId = $fieldId; - } - public function getFieldId() - { - return $this->fieldId; - } - public function setFieldName($fieldName) - { - $this->fieldName = $fieldName; - } - public function getFieldName() - { - return $this->fieldName; - } - public function setFieldType($fieldType) - { - $this->fieldType = $fieldType; - } - public function getFieldType() - { - return $this->fieldType; - } - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } - public function getIndexed() - { - return $this->indexed; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMultiValued($multiValued) - { - $this->multiValued = $multiValued; - } - public function getMultiValued() - { - return $this->multiValued; - } - public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec) - { - $this->numericIndexingSpec = $numericIndexingSpec; - } - public function getNumericIndexingSpec() - { - return $this->numericIndexingSpec; - } - public function setReadAccessType($readAccessType) - { - $this->readAccessType = $readAccessType; - } - public function getReadAccessType() - { - return $this->readAccessType; - } -} - -class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $maxValue; - public $minValue; - - - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } -} - -class Google_Service_Directory_Schemas extends Google_Collection -{ - protected $collection_key = 'schemas'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - protected $schemasType = 'Google_Service_Directory_Schema'; - protected $schemasDataType = 'array'; - - - 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 setSchemas($schemas) - { - $this->schemas = $schemas; - } - public function getSchemas() - { - return $this->schemas; - } -} - -class Google_Service_Directory_Token extends Google_Collection -{ - protected $collection_key = 'scopes'; - protected $internal_gapi_mappings = array( - ); - public $anonymous; - public $clientId; - public $displayText; - public $etag; - public $kind; - public $nativeApp; - public $scopes; - public $userKey; - - - public function setAnonymous($anonymous) - { - $this->anonymous = $anonymous; - } - public function getAnonymous() - { - return $this->anonymous; - } - public function setClientId($clientId) - { - $this->clientId = $clientId; - } - public function getClientId() - { - return $this->clientId; - } - public function setDisplayText($displayText) - { - $this->displayText = $displayText; - } - public function getDisplayText() - { - return $this->displayText; - } - 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 setNativeApp($nativeApp) - { - $this->nativeApp = $nativeApp; - } - public function getNativeApp() - { - return $this->nativeApp; - } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } - public function getScopes() - { - return $this->scopes; - } - public function setUserKey($userKey) - { - $this->userKey = $userKey; - } - public function getUserKey() - { - return $this->userKey; - } -} - -class Google_Service_Directory_Tokens extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_Token'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Directory_User extends Google_Collection -{ - protected $collection_key = 'nonEditableAliases'; - protected $internal_gapi_mappings = array( - ); - public $addresses; - public $agreedToTerms; - public $aliases; - public $changePasswordAtNextLogin; - public $creationTime; - public $customSchemas; - public $customerId; - public $deletionTime; - public $emails; - public $etag; - public $externalIds; - public $hashFunction; - public $id; - public $ims; - public $includeInGlobalAddressList; - public $ipWhitelisted; - public $isAdmin; - public $isDelegatedAdmin; - public $isMailboxSetup; - public $kind; - public $lastLoginTime; - protected $nameType = 'Google_Service_Directory_UserName'; - protected $nameDataType = ''; - public $nonEditableAliases; - public $notes; - public $orgUnitPath; - public $organizations; - public $password; - public $phones; - public $primaryEmail; - public $relations; - public $suspended; - public $suspensionReason; - public $thumbnailPhotoEtag; - public $thumbnailPhotoUrl; - public $websites; - - - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } - public function getAddresses() - { - return $this->addresses; - } - public function setAgreedToTerms($agreedToTerms) - { - $this->agreedToTerms = $agreedToTerms; - } - public function getAgreedToTerms() - { - return $this->agreedToTerms; - } - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() - { - return $this->aliases; - } - public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) - { - $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; - } - public function getChangePasswordAtNextLogin() - { - return $this->changePasswordAtNextLogin; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCustomSchemas($customSchemas) - { - $this->customSchemas = $customSchemas; - } - public function getCustomSchemas() - { - return $this->customSchemas; - } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - public function getCustomerId() - { - return $this->customerId; - } - public function setDeletionTime($deletionTime) - { - $this->deletionTime = $deletionTime; - } - public function getDeletionTime() - { - return $this->deletionTime; - } - public function setEmails($emails) - { - $this->emails = $emails; - } - public function getEmails() - { - return $this->emails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setExternalIds($externalIds) - { - $this->externalIds = $externalIds; - } - public function getExternalIds() - { - return $this->externalIds; - } - public function setHashFunction($hashFunction) - { - $this->hashFunction = $hashFunction; - } - public function getHashFunction() - { - return $this->hashFunction; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIms($ims) - { - $this->ims = $ims; - } - public function getIms() - { - return $this->ims; - } - public function setIncludeInGlobalAddressList($includeInGlobalAddressList) - { - $this->includeInGlobalAddressList = $includeInGlobalAddressList; - } - public function getIncludeInGlobalAddressList() - { - return $this->includeInGlobalAddressList; - } - public function setIpWhitelisted($ipWhitelisted) - { - $this->ipWhitelisted = $ipWhitelisted; - } - public function getIpWhitelisted() - { - return $this->ipWhitelisted; - } - public function setIsAdmin($isAdmin) - { - $this->isAdmin = $isAdmin; - } - public function getIsAdmin() - { - return $this->isAdmin; - } - public function setIsDelegatedAdmin($isDelegatedAdmin) - { - $this->isDelegatedAdmin = $isDelegatedAdmin; - } - public function getIsDelegatedAdmin() - { - return $this->isDelegatedAdmin; - } - public function setIsMailboxSetup($isMailboxSetup) - { - $this->isMailboxSetup = $isMailboxSetup; - } - public function getIsMailboxSetup() - { - return $this->isMailboxSetup; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastLoginTime($lastLoginTime) - { - $this->lastLoginTime = $lastLoginTime; - } - public function getLastLoginTime() - { - return $this->lastLoginTime; - } - public function setName(Google_Service_Directory_UserName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNonEditableAliases($nonEditableAliases) - { - $this->nonEditableAliases = $nonEditableAliases; - } - public function getNonEditableAliases() - { - return $this->nonEditableAliases; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } - public function getOrganizations() - { - return $this->organizations; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setPhones($phones) - { - $this->phones = $phones; - } - public function getPhones() - { - return $this->phones; - } - public function setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } - public function setRelations($relations) - { - $this->relations = $relations; - } - public function getRelations() - { - return $this->relations; - } - public function setSuspended($suspended) - { - $this->suspended = $suspended; - } - public function getSuspended() - { - return $this->suspended; - } - public function setSuspensionReason($suspensionReason) - { - $this->suspensionReason = $suspensionReason; - } - public function getSuspensionReason() - { - return $this->suspensionReason; - } - public function setThumbnailPhotoEtag($thumbnailPhotoEtag) - { - $this->thumbnailPhotoEtag = $thumbnailPhotoEtag; - } - public function getThumbnailPhotoEtag() - { - return $this->thumbnailPhotoEtag; - } - public function setThumbnailPhotoUrl($thumbnailPhotoUrl) - { - $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; - } - public function getThumbnailPhotoUrl() - { - return $this->thumbnailPhotoUrl; - } - public function setWebsites($websites) - { - $this->websites = $websites; - } - public function getWebsites() - { - return $this->websites; - } -} - -class Google_Service_Directory_UserAbout extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contentType; - public $value; - - - public function setContentType($contentType) - { - $this->contentType = $contentType; - } - public function getContentType() - { - return $this->contentType; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Directory_UserAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $countryCode; - public $customType; - public $extendedAddress; - public $formatted; - public $locality; - public $poBox; - public $postalCode; - public $primary; - public $region; - public $sourceIsStructured; - public $streetAddress; - public $type; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setExtendedAddress($extendedAddress) - { - $this->extendedAddress = $extendedAddress; - } - public function getExtendedAddress() - { - return $this->extendedAddress; - } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } - public function getFormatted() - { - return $this->formatted; - } - public function setLocality($locality) - { - $this->locality = $locality; - } - public function getLocality() - { - return $this->locality; - } - public function setPoBox($poBox) - { - $this->poBox = $poBox; - } - public function getPoBox() - { - return $this->poBox; - } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - public function getPostalCode() - { - return $this->postalCode; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSourceIsStructured($sourceIsStructured) - { - $this->sourceIsStructured = $sourceIsStructured; - } - public function getSourceIsStructured() - { - return $this->sourceIsStructured; - } - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } - public function getStreetAddress() - { - return $this->streetAddress; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Directory_UserEmail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $customType; - public $primary; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Directory_UserExternalId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customType; - public $type; - public $value; - - - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - 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_Directory_UserIm extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customProtocol; - public $customType; - public $im; - public $primary; - public $protocol; - public $type; - - - public function setCustomProtocol($customProtocol) - { - $this->customProtocol = $customProtocol; - } - public function getCustomProtocol() - { - return $this->customProtocol; - } - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setIm($im) - { - $this->im = $im; - } - public function getIm() - { - return $this->im; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } - public function getProtocol() - { - return $this->protocol; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Directory_UserMakeAdmin extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $status; - - - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Directory_UserName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $familyName; - public $fullName; - public $givenName; - - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } - public function getFullName() - { - return $this->fullName; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } -} - -class Google_Service_Directory_UserOrganization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $costCenter; - public $customType; - public $department; - public $description; - public $domain; - public $location; - public $name; - public $primary; - public $symbol; - public $title; - public $type; - - - public function setCostCenter($costCenter) - { - $this->costCenter = $costCenter; - } - public function getCostCenter() - { - return $this->costCenter; - } - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setDepartment($department) - { - $this->department = $department; - } - public function getDepartment() - { - return $this->department; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - 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 setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setSymbol($symbol) - { - $this->symbol = $symbol; - } - public function getSymbol() - { - return $this->symbol; - } - 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_Directory_UserPhone extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customType; - public $primary; - public $type; - public $value; - - - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - 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_Directory_UserPhoto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $height; - public $id; - public $kind; - public $mimeType; - public $photoData; - public $primaryEmail; - public $width; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPhotoData($photoData) - { - $this->photoData = $photoData; - } - public function getPhotoData() - { - return $this->photoData; - } - public function setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Directory_UserRelation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customType; - public $type; - public $value; - - - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - 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_Directory_UserUndelete extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $orgUnitPath; - - - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } -} - -class Google_Service_Directory_UserWebsite extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customType; - public $primary; - public $type; - public $value; - - - public function setCustomType($customType) - { - $this->customType = $customType; - } - public function getCustomType() - { - return $this->customType; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - 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_Directory_Users extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - "triggerEvent" => "trigger_event", - ); - public $etag; - public $kind; - public $nextPageToken; - public $triggerEvent; - protected $usersType = 'Google_Service_Directory_User'; - protected $usersDataType = 'array'; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setTriggerEvent($triggerEvent) - { - $this->triggerEvent = $triggerEvent; - } - public function getTriggerEvent() - { - return $this->triggerEvent; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Directory_VerificationCode extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $userId; - public $verificationCode; - - - 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 setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } - public function setVerificationCode($verificationCode) - { - $this->verificationCode = $verificationCode; - } - public function getVerificationCode() - { - return $this->verificationCode; - } -} - -class Google_Service_Directory_VerificationCodes extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Directory_VerificationCode'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} diff --git a/src/Google/Service/Dns.php b/src/Google/Service/Dns.php deleted file mode 100644 index f41fe163a..000000000 --- a/src/Google/Service/Dns.php +++ /dev/null @@ -1,926 +0,0 @@ - - * The Google Cloud DNS API provides services for configuring and serving - * authoritative DNS records.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Dns extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READONLY = - "https://www.googleapis.com/auth/ndev.clouddns.readonly"; - /** View and manage your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READWRITE = - "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; - - public $changes; - public $managedZones; - public $projects; - public $resourceRecordSets; - - - /** - * Constructs the internal representation of the Dns service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'dns/v1/projects/'; - $this->version = 'v1'; - $this->serviceName = 'dns'; - - $this->changes = new Google_Service_Dns_Changes_Resource( - $this, - $this->serviceName, - 'changes', - array( - 'methods' => array( - 'create' => array( - 'path' => '{project}/managedZones/{managedZone}/changes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/managedZones/{managedZone}/changes/{changeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'changeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/managedZones/{managedZone}/changes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->managedZones = new Google_Service_Dns_ManagedZones_Resource( - $this, - $this->serviceName, - 'managedZones', - array( - 'methods' => array( - 'create' => array( - 'path' => '{project}/managedZones', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/managedZones/{managedZone}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/managedZones/{managedZone}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/managedZones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dnsName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Dns_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource( - $this, - $this->serviceName, - 'resourceRecordSets', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/managedZones/{managedZone}/rrsets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "changes" collection of methods. - * Typical usage is: - * - * $dnsService = new Google_Service_Dns(...); - * $changes = $dnsService->changes; - * - */ -class Google_Service_Dns_Changes_Resource extends Google_Service_Resource -{ - - /** - * Atomically update the ResourceRecordSet collection. (changes.create) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param Google_Change $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Change - */ - public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dns_Change"); - } - - /** - * Fetch the representation of an existing Change. (changes.get) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param string $changeId The identifier of the requested change, from a - * previous ResourceRecordSetsChangeResponse. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Change - */ - public function get($project, $managedZone, $changeId, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_Change"); - } - - /** - * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @opt_param string sortBy Sorting criterion. The only supported value is - * change sequence. - * @opt_param string sortOrder Sorting order direction: 'ascending' or - * 'descending'. - * @return Google_Service_Dns_ChangesListResponse - */ - public function listChanges($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse"); - } -} - -/** - * The "managedZones" collection of methods. - * Typical usage is: - * - * $dnsService = new Google_Service_Dns(...); - * $managedZones = $dnsService->managedZones; - * - */ -class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource -{ - - /** - * Create a new ManagedZone. (managedZones.create) - * - * @param string $project Identifies the project addressed by this request. - * @param Google_ManagedZone $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_ManagedZone - */ - public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); - } - - /** - * Delete a previously created ManagedZone. (managedZones.delete) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - */ - public function delete($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Fetch the representation of an existing ManagedZone. (managedZones.get) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_ManagedZone - */ - public function get($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); - } - - /** - * Enumerate ManagedZones that have been created but not yet deleted. - * (managedZones.listManagedZones) - * - * @param string $project Identifies the project addressed by this request. - * @param array $optParams Optional parameters. - * - * @opt_param string dnsName Restricts the list to return only zones with this - * domain name. - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @return Google_Service_Dns_ManagedZonesListResponse - */ - public function listManagedZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $dnsService = new Google_Service_Dns(...); - * $projects = $dnsService->projects; - * - */ -class Google_Service_Dns_Projects_Resource extends Google_Service_Resource -{ - - /** - * Fetch the representation of an existing Project. (projects.get) - * - * @param string $project Identifies the project addressed by this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Project - */ - public function get($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_Project"); - } -} - -/** - * The "resourceRecordSets" collection of methods. - * Typical usage is: - * - * $dnsService = new Google_Service_Dns(...); - * $resourceRecordSets = $dnsService->resourceRecordSets; - * - */ -class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource -{ - - /** - * Enumerate ResourceRecordSets that have been created but not yet deleted. - * (resourceRecordSets.listResourceRecordSets) - * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string name Restricts the list to return only records with this - * fully qualified domain name. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @opt_param string type Restricts the list to return only records of this - * type. If present, the "name" parameter must also be present. - * @return Google_Service_Dns_ResourceRecordSetsListResponse - */ - public function listResourceRecordSets($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse"); - } -} - - - - -class Google_Service_Dns_Change extends Google_Collection -{ - protected $collection_key = 'deletions'; - protected $internal_gapi_mappings = array( - ); - protected $additionsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $additionsDataType = 'array'; - protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $deletionsDataType = 'array'; - public $id; - public $kind; - public $startTime; - public $status; - - - public function setAdditions($additions) - { - $this->additions = $additions; - } - public function getAdditions() - { - return $this->additions; - } - public function setDeletions($deletions) - { - $this->deletions = $deletions; - } - public function getDeletions() - { - return $this->deletions; - } - 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 setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Dns_ChangesListResponse extends Google_Collection -{ - protected $collection_key = 'changes'; - protected $internal_gapi_mappings = array( - ); - protected $changesType = 'Google_Service_Dns_Change'; - protected $changesDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setChanges($changes) - { - $this->changes = $changes; - } - public function getChanges() - { - return $this->changes; - } - 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_Dns_ManagedZone extends Google_Collection -{ - protected $collection_key = 'nameServers'; - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $description; - public $dnsName; - public $id; - public $kind; - public $name; - public $nameServerSet; - public $nameServers; - - - 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 setDnsName($dnsName) - { - $this->dnsName = $dnsName; - } - public function getDnsName() - { - return $this->dnsName; - } - 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 setNameServerSet($nameServerSet) - { - $this->nameServerSet = $nameServerSet; - } - public function getNameServerSet() - { - return $this->nameServerSet; - } - public function setNameServers($nameServers) - { - $this->nameServers = $nameServers; - } - public function getNameServers() - { - return $this->nameServers; - } -} - -class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection -{ - protected $collection_key = 'managedZones'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $managedZonesType = 'Google_Service_Dns_ManagedZone'; - protected $managedZonesDataType = 'array'; - public $nextPageToken; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setManagedZones($managedZones) - { - $this->managedZones = $managedZones; - } - public function getManagedZones() - { - return $this->managedZones; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Dns_Project extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $number; - protected $quotaType = 'Google_Service_Dns_Quota'; - protected $quotaDataType = ''; - - - 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 setNumber($number) - { - $this->number = $number; - } - public function getNumber() - { - return $this->number; - } - public function setQuota(Google_Service_Dns_Quota $quota) - { - $this->quota = $quota; - } - public function getQuota() - { - return $this->quota; - } -} - -class Google_Service_Dns_Quota extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $managedZones; - public $resourceRecordsPerRrset; - public $rrsetAdditionsPerChange; - public $rrsetDeletionsPerChange; - public $rrsetsPerManagedZone; - public $totalRrdataSizePerChange; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setManagedZones($managedZones) - { - $this->managedZones = $managedZones; - } - public function getManagedZones() - { - return $this->managedZones; - } - public function setResourceRecordsPerRrset($resourceRecordsPerRrset) - { - $this->resourceRecordsPerRrset = $resourceRecordsPerRrset; - } - public function getResourceRecordsPerRrset() - { - return $this->resourceRecordsPerRrset; - } - public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange) - { - $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange; - } - public function getRrsetAdditionsPerChange() - { - return $this->rrsetAdditionsPerChange; - } - public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange) - { - $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange; - } - public function getRrsetDeletionsPerChange() - { - return $this->rrsetDeletionsPerChange; - } - public function setRrsetsPerManagedZone($rrsetsPerManagedZone) - { - $this->rrsetsPerManagedZone = $rrsetsPerManagedZone; - } - public function getRrsetsPerManagedZone() - { - return $this->rrsetsPerManagedZone; - } - public function setTotalRrdataSizePerChange($totalRrdataSizePerChange) - { - $this->totalRrdataSizePerChange = $totalRrdataSizePerChange; - } - public function getTotalRrdataSizePerChange() - { - return $this->totalRrdataSizePerChange; - } -} - -class Google_Service_Dns_ResourceRecordSet extends Google_Collection -{ - protected $collection_key = 'rrdatas'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $name; - public $rrdatas; - public $ttl; - 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 setRrdatas($rrdatas) - { - $this->rrdatas = $rrdatas; - } - public function getRrdatas() - { - return $this->rrdatas; - } - public function setTtl($ttl) - { - $this->ttl = $ttl; - } - public function getTtl() - { - return $this->ttl; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection -{ - protected $collection_key = 'rrsets'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $rrsetsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRrsets($rrsets) - { - $this->rrsets = $rrsets; - } - public function getRrsets() - { - return $this->rrsets; - } -} diff --git a/src/Google/Service/DoubleClickBidManager.php b/src/Google/Service/DoubleClickBidManager.php deleted file mode 100644 index 679834b0f..000000000 --- a/src/Google/Service/DoubleClickBidManager.php +++ /dev/null @@ -1,1234 +0,0 @@ - - * API for viewing and managing your reports in DoubleClick Bid Manager.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_DoubleClickBidManager extends Google_Service -{ - - - public $lineitems; - public $queries; - public $reports; - public $rubicon; - - - /** - * Constructs the internal representation of the DoubleClickBidManager - * service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'doubleclickbidmanager/v1/'; - $this->version = 'v1'; - $this->serviceName = 'doubleclickbidmanager'; - - $this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource( - $this, - $this->serviceName, - 'lineitems', - array( - 'methods' => array( - 'downloadlineitems' => array( - 'path' => 'lineitems/downloadlineitems', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'uploadlineitems' => array( - 'path' => 'lineitems/uploadlineitems', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource( - $this, - $this->serviceName, - 'queries', - array( - 'methods' => array( - 'createquery' => array( - 'path' => 'query', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'deletequery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getquery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'listqueries' => array( - 'path' => 'queries', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'runquery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'listreports' => array( - 'path' => 'queries/{queryId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rubicon = new Google_Service_DoubleClickBidManager_Rubicon_Resource( - $this, - $this->serviceName, - 'rubicon', - array( - 'methods' => array( - 'notifyproposalchange' => array( - 'path' => 'rubicon/notifyproposalchange', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "lineitems" collection of methods. - * Typical usage is: - * - * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...); - * $lineitems = $doubleclickbidmanagerService->lineitems; - * - */ -class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Service_Resource -{ - - /** - * Retrieves line items in CSV format. (lineitems.downloadlineitems) - * - * @param Google_DownloadLineItemsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_DownloadLineItemsResponse - */ - public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse"); - } - - /** - * Uploads line items in CSV format. (lineitems.uploadlineitems) - * - * @param Google_UploadLineItemsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_UploadLineItemsResponse - */ - public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse"); - } -} - -/** - * The "queries" collection of methods. - * Typical usage is: - * - * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...); - * $queries = $doubleclickbidmanagerService->queries; - * - */ -class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Service_Resource -{ - - /** - * Creates a query. (queries.createquery) - * - * @param Google_Query $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_Query - */ - public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query"); - } - - /** - * Deletes a stored query as well as the associated stored reports. - * (queries.deletequery) - * - * @param string $queryId Query ID to delete. - * @param array $optParams Optional parameters. - */ - public function deletequery($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('deletequery', array($params)); - } - - /** - * Retrieves a stored query. (queries.getquery) - * - * @param string $queryId Query ID to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_Query - */ - public function getquery($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query"); - } - - /** - * Retrieves stored queries. (queries.listqueries) - * - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_ListQueriesResponse - */ - public function listqueries($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse"); - } - - /** - * Runs a stored query to generate a report. (queries.runquery) - * - * @param string $queryId Query ID to run. - * @param Google_RunQueryRequest $postBody - * @param array $optParams Optional parameters. - */ - public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array()) - { - $params = array('queryId' => $queryId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('runquery', array($params)); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...); - * $reports = $doubleclickbidmanagerService->reports; - * - */ -class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Service_Resource -{ - - /** - * Retrieves stored reports. (reports.listreports) - * - * @param string $queryId Query ID with which the reports are associated. - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_ListReportsResponse - */ - public function listreports($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse"); - } -} - -/** - * The "rubicon" collection of methods. - * Typical usage is: - * - * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...); - * $rubicon = $doubleclickbidmanagerService->rubicon; - * - */ -class Google_Service_DoubleClickBidManager_Rubicon_Resource extends Google_Service_Resource -{ - - /** - * Update proposal upon actions of Rubicon publisher. - * (rubicon.notifyproposalchange) - * - * @param Google_NotifyProposalChangeRequest $postBody - * @param array $optParams Optional parameters. - */ - public function notifyproposalchange(Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('notifyproposalchange', array($params)); - } -} - - - - -class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection -{ - protected $collection_key = 'filterIds'; - protected $internal_gapi_mappings = array( - ); - public $fileSpec; - public $filterIds; - public $filterType; - public $format; - - - public function setFileSpec($fileSpec) - { - $this->fileSpec = $fileSpec; - } - public function getFileSpec() - { - return $this->fileSpec; - } - public function setFilterIds($filterIds) - { - $this->filterIds = $filterIds; - } - public function getFilterIds() - { - return $this->filterIds; - } - public function setFilterType($filterType) - { - $this->filterType = $filterType; - } - public function getFilterType() - { - return $this->filterType; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } -} - -class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lineItems; - - - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } -} - -class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DoubleClickBidManager_ListQueriesResponse extends Google_Collection -{ - protected $collection_key = 'queries'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; - protected $queriesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setQueries($queries) - { - $this->queries = $queries; - } - public function getQueries() - { - return $this->queries; - } -} - -class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection -{ - protected $collection_key = 'reports'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; - protected $reportsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setReports($reports) - { - $this->reports = $reports; - } - public function getReports() - { - return $this->reports; - } -} - -class Google_Service_DoubleClickBidManager_Note extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $message; - public $source; - public $timestamp; - public $username; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest extends Google_Collection -{ - protected $collection_key = 'notes'; - protected $internal_gapi_mappings = array( - ); - public $action; - public $href; - public $id; - protected $notesType = 'Google_Service_DoubleClickBidManager_Note'; - protected $notesDataType = 'array'; - public $token; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setHref($href) - { - $this->href = $href; - } - public function getHref() - { - return $this->href; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } -} - -class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair'; - protected $filtersDataType = 'array'; - public $groupBys; - public $includeInviteData; - public $metrics; - public $type; - - - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setGroupBys($groupBys) - { - $this->groupBys = $groupBys; - } - public function getGroupBys() - { - return $this->groupBys; - } - public function setIncludeInviteData($includeInviteData) - { - $this->includeInviteData = $includeInviteData; - } - public function getIncludeInviteData() - { - return $this->includeInviteData; - } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_DoubleClickBidManager_Query extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata'; - protected $metadataDataType = ''; - protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; - protected $paramsDataType = ''; - public $queryId; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - protected $scheduleType = 'Google_Service_DoubleClickBidManager_QuerySchedule'; - protected $scheduleDataType = ''; - public $timezoneCode; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) - { - $this->params = $params; - } - public function getParams() - { - return $this->params; - } - public function setQueryId($queryId) - { - $this->queryId = $queryId; - } - public function getQueryId() - { - return $this->queryId; - } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } - public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule) - { - $this->schedule = $schedule; - } - public function getSchedule() - { - return $this->schedule; - } - public function setTimezoneCode($timezoneCode) - { - $this->timezoneCode = $timezoneCode; - } - public function getTimezoneCode() - { - return $this->timezoneCode; - } -} - -class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection -{ - protected $collection_key = 'shareEmailAddress'; - protected $internal_gapi_mappings = array( - ); - public $dataRange; - public $format; - public $googleCloudStoragePathForLatestReport; - public $googleDrivePathForLatestReport; - public $latestReportRunTimeMs; - public $locale; - public $reportCount; - public $running; - public $sendNotification; - public $shareEmailAddress; - public $title; - - - public function setDataRange($dataRange) - { - $this->dataRange = $dataRange; - } - public function getDataRange() - { - return $this->dataRange; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport) - { - $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport; - } - public function getGoogleCloudStoragePathForLatestReport() - { - return $this->googleCloudStoragePathForLatestReport; - } - public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport) - { - $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport; - } - public function getGoogleDrivePathForLatestReport() - { - return $this->googleDrivePathForLatestReport; - } - public function setLatestReportRunTimeMs($latestReportRunTimeMs) - { - $this->latestReportRunTimeMs = $latestReportRunTimeMs; - } - public function getLatestReportRunTimeMs() - { - return $this->latestReportRunTimeMs; - } - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setReportCount($reportCount) - { - $this->reportCount = $reportCount; - } - public function getReportCount() - { - return $this->reportCount; - } - public function setRunning($running) - { - $this->running = $running; - } - public function getRunning() - { - return $this->running; - } - public function setSendNotification($sendNotification) - { - $this->sendNotification = $sendNotification; - } - public function getSendNotification() - { - return $this->sendNotification; - } - public function setShareEmailAddress($shareEmailAddress) - { - $this->shareEmailAddress = $shareEmailAddress; - } - public function getShareEmailAddress() - { - return $this->shareEmailAddress; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTimeMs; - public $frequency; - public $nextRunMinuteOfDay; - public $nextRunTimezoneCode; - - - public function setEndTimeMs($endTimeMs) - { - $this->endTimeMs = $endTimeMs; - } - public function getEndTimeMs() - { - return $this->endTimeMs; - } - public function setFrequency($frequency) - { - $this->frequency = $frequency; - } - public function getFrequency() - { - return $this->frequency; - } - public function setNextRunMinuteOfDay($nextRunMinuteOfDay) - { - $this->nextRunMinuteOfDay = $nextRunMinuteOfDay; - } - public function getNextRunMinuteOfDay() - { - return $this->nextRunMinuteOfDay; - } - public function setNextRunTimezoneCode($nextRunTimezoneCode) - { - $this->nextRunTimezoneCode = $nextRunTimezoneCode; - } - public function getNextRunTimezoneCode() - { - return $this->nextRunTimezoneCode; - } -} - -class Google_Service_DoubleClickBidManager_Report extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey'; - protected $keyDataType = ''; - protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata'; - protected $metadataDataType = ''; - protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; - protected $paramsDataType = ''; - - - public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) - { - $this->params = $params; - } - public function getParams() - { - return $this->params; - } -} - -class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $errorCode; - - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - public function getErrorCode() - { - return $this->errorCode; - } -} - -class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $queryId; - public $reportId; - - - public function setQueryId($queryId) - { - $this->queryId = $queryId; - } - public function getQueryId() - { - return $this->queryId; - } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } - public function getReportId() - { - return $this->reportId; - } -} - -class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $googleCloudStoragePath; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus'; - protected $statusDataType = ''; - - - public function setGoogleCloudStoragePath($googleCloudStoragePath) - { - $this->googleCloudStoragePath = $googleCloudStoragePath; - } - public function getGoogleCloudStoragePath() - { - return $this->googleCloudStoragePath; - } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } - public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure'; - protected $failureDataType = ''; - public $finishTimeMs; - public $format; - public $state; - - - public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure) - { - $this->failure = $failure; - } - public function getFailure() - { - return $this->failure; - } - public function setFinishTimeMs($finishTimeMs) - { - $this->finishTimeMs = $finishTimeMs; - } - public function getFinishTimeMs() - { - return $this->finishTimeMs; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $changed; - public $entityId; - public $entityName; - public $errors; - public $persisted; - public $rowNumber; - - - public function setChanged($changed) - { - $this->changed = $changed; - } - public function getChanged() - { - return $this->changed; - } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } - public function getEntityId() - { - return $this->entityId; - } - public function setEntityName($entityName) - { - $this->entityName = $entityName; - } - public function getEntityName() - { - return $this->entityName; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setPersisted($persisted) - { - $this->persisted = $persisted; - } - public function getPersisted() - { - return $this->persisted; - } - public function setRowNumber($rowNumber) - { - $this->rowNumber = $rowNumber; - } - public function getRowNumber() - { - return $this->rowNumber; - } -} - -class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataRange; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - public $timezoneCode; - - - public function setDataRange($dataRange) - { - $this->dataRange = $dataRange; - } - public function getDataRange() - { - return $this->dataRange; - } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } - public function setTimezoneCode($timezoneCode) - { - $this->timezoneCode = $timezoneCode; - } - public function getTimezoneCode() - { - return $this->timezoneCode; - } -} - -class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dryRun; - public $format; - public $lineItems; - - - public function setDryRun($dryRun) - { - $this->dryRun = $dryRun; - } - public function getDryRun() - { - return $this->dryRun; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } -} - -class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus'; - protected $uploadStatusDataType = ''; - - - public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection -{ - protected $collection_key = 'rowStatus'; - protected $internal_gapi_mappings = array( - ); - public $errors; - protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; - protected $rowStatusDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setRowStatus($rowStatus) - { - $this->rowStatus = $rowStatus; - } - public function getRowStatus() - { - return $this->rowStatus; - } -} diff --git a/src/Google/Service/Doubleclicksearch.php b/src/Google/Service/Doubleclicksearch.php deleted file mode 100644 index 401c25bb8..000000000 --- a/src/Google/Service/Doubleclicksearch.php +++ /dev/null @@ -1,1539 +0,0 @@ - - * Report and modify your advertising data in DoubleClick Search (for example, - * campaigns, ad groups, keywords, and conversions).

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Doubleclicksearch extends Google_Service -{ - /** View and manage your advertising data in DoubleClick Search. */ - const DOUBLECLICKSEARCH = - "https://www.googleapis.com/auth/doubleclicksearch"; - - public $conversion; - public $reports; - public $savedColumns; - - - /** - * Constructs the internal representation of the Doubleclicksearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'doubleclicksearch/v2/'; - $this->version = 'v2'; - $this->serviceName = 'doubleclicksearch'; - - $this->conversion = new Google_Service_Doubleclicksearch_Conversion_Resource( - $this, - $this->serviceName, - 'conversion', - array( - 'methods' => array( - 'get' => array( - 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion', - 'httpMethod' => 'GET', - 'parameters' => array( - 'agencyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'engineAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'rowCount' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startRow' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'adGroupId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'adId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'criterionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'conversion', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'conversion', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'agencyId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'engineAccountId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rowCount' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startRow' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'conversion', - 'httpMethod' => 'PUT', - 'parameters' => array(), - ),'updateAvailability' => array( - 'path' => 'conversion/updateAvailability', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->reports = new Google_Service_Doubleclicksearch_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports/generate', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getFile' => array( - 'path' => 'reports/{reportId}/files/{reportFragment}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportFragment' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'request' => array( - 'path' => 'reports', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->savedColumns = new Google_Service_Doubleclicksearch_SavedColumns_Resource( - $this, - $this->serviceName, - 'savedColumns', - array( - 'methods' => array( - 'list' => array( - 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'agencyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "conversion" collection of methods. - * Typical usage is: - * - * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); - * $conversion = $doubleclicksearchService->conversion; - * - */ -class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of conversions from a DoubleClick Search engine account. - * (conversion.get) - * - * @param string $agencyId Numeric ID of the agency. - * @param string $advertiserId Numeric ID of the advertiser. - * @param string $engineAccountId Numeric ID of the engine account. - * @param int $endDate Last date (inclusive) on which to retrieve conversions. - * Format is yyyymmdd. - * @param int $rowCount The number of conversions to return per call. - * @param int $startDate First date (inclusive) on which to retrieve - * conversions. Format is yyyymmdd. - * @param string $startRow The 0-based starting index for retrieving conversions - * results. - * @param array $optParams Optional parameters. - * - * @opt_param string adGroupId Numeric ID of the ad group. - * @opt_param string adId Numeric ID of the ad. - * @opt_param string campaignId Numeric ID of the campaign. - * @opt_param string criterionId Numeric ID of the criterion. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array()) - { - $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - - /** - * Inserts a batch of new conversions into DoubleClick Search. - * (conversion.insert) - * - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - - /** - * Updates a batch of conversions in DoubleClick Search. This method supports - * patch semantics. (conversion.patch) - * - * @param string $advertiserId Numeric ID of the advertiser. - * @param string $agencyId Numeric ID of the agency. - * @param int $endDate Last date (inclusive) on which to retrieve conversions. - * Format is yyyymmdd. - * @param string $engineAccountId Numeric ID of the engine account. - * @param int $rowCount The number of conversions to return per call. - * @param int $startDate First date (inclusive) on which to retrieve - * conversions. Format is yyyymmdd. - * @param string $startRow The 0-based starting index for retrieving conversions - * results. - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - - /** - * Updates a batch of conversions in DoubleClick Search. (conversion.update) - * - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - - /** - * Updates the availabilities of a batch of floodlight activities in DoubleClick - * Search. (conversion.updateAvailability) - * - * @param Google_UpdateAvailabilityRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse - */ - public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); - * $reports = $doubleclicksearchService->reports; - * - */ -class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_Resource -{ - - /** - * Generates and returns a report immediately. (reports.generate) - * - * @param Google_ReportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report"); - } - - /** - * Polls for the status of a report request. (reports.get) - * - * @param string $reportId ID of the report request being polled. - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function get($reportId, $optParams = array()) - { - $params = array('reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report"); - } - - /** - * Downloads a report file encoded in UTF-8. (reports.getFile) - * - * @param string $reportId ID of the report. - * @param int $reportFragment The index of the report fragment to download. - * @param array $optParams Optional parameters. - */ - public function getFile($reportId, $reportFragment, $optParams = array()) - { - $params = array('reportId' => $reportId, 'reportFragment' => $reportFragment); - $params = array_merge($params, $optParams); - return $this->call('getFile', array($params)); - } - - /** - * Inserts a report request into the reporting system. (reports.request) - * - * @param Google_ReportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report"); - } -} - -/** - * The "savedColumns" collection of methods. - * Typical usage is: - * - * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); - * $savedColumns = $doubleclicksearchService->savedColumns; - * - */ -class Google_Service_Doubleclicksearch_SavedColumns_Resource extends Google_Service_Resource -{ - - /** - * Retrieve the list of saved columns for a specified advertiser. - * (savedColumns.listSavedColumns) - * - * @param string $agencyId DS ID of the agency. - * @param string $advertiserId DS ID of the advertiser. - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_SavedColumnList - */ - public function listSavedColumns($agencyId, $advertiserId, $optParams = array()) - { - $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Doubleclicksearch_SavedColumnList"); - } -} - - - - -class Google_Service_Doubleclicksearch_Availability extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $advertiserId; - public $agencyId; - public $availabilityTimestamp; - public $segmentationId; - public $segmentationName; - public $segmentationType; - - - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } - public function getAgencyId() - { - return $this->agencyId; - } - public function setAvailabilityTimestamp($availabilityTimestamp) - { - $this->availabilityTimestamp = $availabilityTimestamp; - } - public function getAvailabilityTimestamp() - { - return $this->availabilityTimestamp; - } - public function setSegmentationId($segmentationId) - { - $this->segmentationId = $segmentationId; - } - public function getSegmentationId() - { - return $this->segmentationId; - } - public function setSegmentationName($segmentationName) - { - $this->segmentationName = $segmentationName; - } - public function getSegmentationName() - { - return $this->segmentationName; - } - public function setSegmentationType($segmentationType) - { - $this->segmentationType = $segmentationType; - } - public function getSegmentationType() - { - return $this->segmentationType; - } -} - -class Google_Service_Doubleclicksearch_Conversion extends Google_Collection -{ - protected $collection_key = 'customMetric'; - protected $internal_gapi_mappings = array( - ); - public $adGroupId; - public $adId; - public $advertiserId; - public $agencyId; - public $attributionModel; - public $campaignId; - public $channel; - public $clickId; - public $conversionId; - public $conversionModifiedTimestamp; - public $conversionTimestamp; - public $countMillis; - public $criterionId; - public $currencyCode; - protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension'; - protected $customDimensionDataType = 'array'; - protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; - protected $customMetricDataType = 'array'; - public $deviceType; - public $dsConversionId; - public $engineAccountId; - public $floodlightOrderId; - public $inventoryAccountId; - public $productCountry; - public $productGroupId; - public $productId; - public $productLanguage; - public $quantityMillis; - public $revenueMicros; - public $segmentationId; - public $segmentationName; - public $segmentationType; - public $state; - public $storeId; - public $type; - - - public function setAdGroupId($adGroupId) - { - $this->adGroupId = $adGroupId; - } - public function getAdGroupId() - { - return $this->adGroupId; - } - public function setAdId($adId) - { - $this->adId = $adId; - } - public function getAdId() - { - return $this->adId; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } - public function getAgencyId() - { - return $this->agencyId; - } - public function setAttributionModel($attributionModel) - { - $this->attributionModel = $attributionModel; - } - public function getAttributionModel() - { - return $this->attributionModel; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setChannel($channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setClickId($clickId) - { - $this->clickId = $clickId; - } - public function getClickId() - { - return $this->clickId; - } - public function setConversionId($conversionId) - { - $this->conversionId = $conversionId; - } - public function getConversionId() - { - return $this->conversionId; - } - public function setConversionModifiedTimestamp($conversionModifiedTimestamp) - { - $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; - } - public function getConversionModifiedTimestamp() - { - return $this->conversionModifiedTimestamp; - } - public function setConversionTimestamp($conversionTimestamp) - { - $this->conversionTimestamp = $conversionTimestamp; - } - public function getConversionTimestamp() - { - return $this->conversionTimestamp; - } - public function setCountMillis($countMillis) - { - $this->countMillis = $countMillis; - } - public function getCountMillis() - { - return $this->countMillis; - } - public function setCriterionId($criterionId) - { - $this->criterionId = $criterionId; - } - public function getCriterionId() - { - return $this->criterionId; - } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - public function setCustomDimension($customDimension) - { - $this->customDimension = $customDimension; - } - public function getCustomDimension() - { - return $this->customDimension; - } - public function setCustomMetric($customMetric) - { - $this->customMetric = $customMetric; - } - public function getCustomMetric() - { - return $this->customMetric; - } - public function setDeviceType($deviceType) - { - $this->deviceType = $deviceType; - } - public function getDeviceType() - { - return $this->deviceType; - } - public function setDsConversionId($dsConversionId) - { - $this->dsConversionId = $dsConversionId; - } - public function getDsConversionId() - { - return $this->dsConversionId; - } - public function setEngineAccountId($engineAccountId) - { - $this->engineAccountId = $engineAccountId; - } - public function getEngineAccountId() - { - return $this->engineAccountId; - } - public function setFloodlightOrderId($floodlightOrderId) - { - $this->floodlightOrderId = $floodlightOrderId; - } - public function getFloodlightOrderId() - { - return $this->floodlightOrderId; - } - public function setInventoryAccountId($inventoryAccountId) - { - $this->inventoryAccountId = $inventoryAccountId; - } - public function getInventoryAccountId() - { - return $this->inventoryAccountId; - } - public function setProductCountry($productCountry) - { - $this->productCountry = $productCountry; - } - public function getProductCountry() - { - return $this->productCountry; - } - public function setProductGroupId($productGroupId) - { - $this->productGroupId = $productGroupId; - } - public function getProductGroupId() - { - return $this->productGroupId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setProductLanguage($productLanguage) - { - $this->productLanguage = $productLanguage; - } - public function getProductLanguage() - { - return $this->productLanguage; - } - public function setQuantityMillis($quantityMillis) - { - $this->quantityMillis = $quantityMillis; - } - public function getQuantityMillis() - { - return $this->quantityMillis; - } - public function setRevenueMicros($revenueMicros) - { - $this->revenueMicros = $revenueMicros; - } - public function getRevenueMicros() - { - return $this->revenueMicros; - } - public function setSegmentationId($segmentationId) - { - $this->segmentationId = $segmentationId; - } - public function getSegmentationId() - { - return $this->segmentationId; - } - public function setSegmentationName($segmentationName) - { - $this->segmentationName = $segmentationName; - } - public function getSegmentationName() - { - return $this->segmentationName; - } - public function setSegmentationType($segmentationType) - { - $this->segmentationType = $segmentationType; - } - public function getSegmentationType() - { - return $this->segmentationType; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setStoreId($storeId) - { - $this->storeId = $storeId; - } - public function getStoreId() - { - return $this->storeId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection -{ - protected $collection_key = 'conversion'; - protected $internal_gapi_mappings = array( - ); - protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; - protected $conversionDataType = 'array'; - public $kind; - - - public function setConversion($conversion) - { - $this->conversion = $conversion; - } - public function getConversion() - { - return $this->conversion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Doubleclicksearch_CustomMetric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Doubleclicksearch_Report extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; - protected $filesDataType = 'array'; - public $id; - public $isReportReady; - public $kind; - protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest'; - protected $requestDataType = ''; - public $rowCount; - public $rows; - public $statisticsCurrencyCode; - public $statisticsTimeZone; - - - public function setFiles($files) - { - $this->files = $files; - } - public function getFiles() - { - return $this->files; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsReportReady($isReportReady) - { - $this->isReportReady = $isReportReady; - } - public function getIsReportReady() - { - return $this->isReportReady; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request) - { - $this->request = $request; - } - public function getRequest() - { - return $this->request; - } - public function setRowCount($rowCount) - { - $this->rowCount = $rowCount; - } - public function getRowCount() - { - return $this->rowCount; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } - public function setStatisticsCurrencyCode($statisticsCurrencyCode) - { - $this->statisticsCurrencyCode = $statisticsCurrencyCode; - } - public function getStatisticsCurrencyCode() - { - return $this->statisticsCurrencyCode; - } - public function setStatisticsTimeZone($statisticsTimeZone) - { - $this->statisticsTimeZone = $statisticsTimeZone; - } - public function getStatisticsTimeZone() - { - return $this->statisticsTimeZone; - } -} - -class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $columnName; - public $customDimensionName; - public $customMetricName; - public $endDate; - public $groupByColumn; - public $headerText; - public $platformSource; - public $productReportPerspective; - public $savedColumnName; - public $startDate; - - - public function setColumnName($columnName) - { - $this->columnName = $columnName; - } - public function getColumnName() - { - return $this->columnName; - } - public function setCustomDimensionName($customDimensionName) - { - $this->customDimensionName = $customDimensionName; - } - public function getCustomDimensionName() - { - return $this->customDimensionName; - } - public function setCustomMetricName($customMetricName) - { - $this->customMetricName = $customMetricName; - } - public function getCustomMetricName() - { - return $this->customMetricName; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setGroupByColumn($groupByColumn) - { - $this->groupByColumn = $groupByColumn; - } - public function getGroupByColumn() - { - return $this->groupByColumn; - } - public function setHeaderText($headerText) - { - $this->headerText = $headerText; - } - public function getHeaderText() - { - return $this->headerText; - } - public function setPlatformSource($platformSource) - { - $this->platformSource = $platformSource; - } - public function getPlatformSource() - { - return $this->platformSource; - } - public function setProductReportPerspective($productReportPerspective) - { - $this->productReportPerspective = $productReportPerspective; - } - public function getProductReportPerspective() - { - return $this->productReportPerspective; - } - public function setSavedColumnName($savedColumnName) - { - $this->savedColumnName = $savedColumnName; - } - public function getSavedColumnName() - { - return $this->savedColumnName; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $byteCount; - public $url; - - - public function setByteCount($byteCount) - { - $this->byteCount = $byteCount; - } - public function getByteCount() - { - return $this->byteCount; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection -{ - protected $collection_key = 'orderBy'; - protected $internal_gapi_mappings = array( - ); - protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnsDataType = 'array'; - public $downloadFormat; - protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters'; - protected $filtersDataType = 'array'; - public $includeDeletedEntities; - public $includeRemovedEntities; - public $maxRowsPerFile; - protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy'; - protected $orderByDataType = 'array'; - protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope'; - protected $reportScopeDataType = ''; - public $reportType; - public $rowCount; - public $startRow; - public $statisticsCurrency; - protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange'; - protected $timeRangeDataType = ''; - public $verifySingleTimeZone; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setDownloadFormat($downloadFormat) - { - $this->downloadFormat = $downloadFormat; - } - public function getDownloadFormat() - { - return $this->downloadFormat; - } - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setIncludeDeletedEntities($includeDeletedEntities) - { - $this->includeDeletedEntities = $includeDeletedEntities; - } - public function getIncludeDeletedEntities() - { - return $this->includeDeletedEntities; - } - public function setIncludeRemovedEntities($includeRemovedEntities) - { - $this->includeRemovedEntities = $includeRemovedEntities; - } - public function getIncludeRemovedEntities() - { - return $this->includeRemovedEntities; - } - public function setMaxRowsPerFile($maxRowsPerFile) - { - $this->maxRowsPerFile = $maxRowsPerFile; - } - public function getMaxRowsPerFile() - { - return $this->maxRowsPerFile; - } - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - public function getOrderBy() - { - return $this->orderBy; - } - public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope) - { - $this->reportScope = $reportScope; - } - public function getReportScope() - { - return $this->reportScope; - } - public function setReportType($reportType) - { - $this->reportType = $reportType; - } - public function getReportType() - { - return $this->reportType; - } - public function setRowCount($rowCount) - { - $this->rowCount = $rowCount; - } - public function getRowCount() - { - return $this->rowCount; - } - public function setStartRow($startRow) - { - $this->startRow = $startRow; - } - public function getStartRow() - { - return $this->startRow; - } - public function setStatisticsCurrency($statisticsCurrency) - { - $this->statisticsCurrency = $statisticsCurrency; - } - public function getStatisticsCurrency() - { - return $this->statisticsCurrency; - } - public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange) - { - $this->timeRange = $timeRange; - } - public function getTimeRange() - { - return $this->timeRange; - } - public function setVerifySingleTimeZone($verifySingleTimeZone) - { - $this->verifySingleTimeZone = $verifySingleTimeZone; - } - public function getVerifySingleTimeZone() - { - return $this->verifySingleTimeZone; - } -} - -class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnDataType = ''; - public $operator; - public $values; - - - public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) - { - $this->column = $column; - } - public function getColumn() - { - return $this->column; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; - } -} - -class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnDataType = ''; - public $sortOrder; - - - public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) - { - $this->column = $column; - } - public function getColumn() - { - return $this->column; - } - public function setSortOrder($sortOrder) - { - $this->sortOrder = $sortOrder; - } - public function getSortOrder() - { - return $this->sortOrder; - } -} - -class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adGroupId; - public $adId; - public $advertiserId; - public $agencyId; - public $campaignId; - public $engineAccountId; - public $keywordId; - - - public function setAdGroupId($adGroupId) - { - $this->adGroupId = $adGroupId; - } - public function getAdGroupId() - { - return $this->adGroupId; - } - public function setAdId($adId) - { - $this->adId = $adId; - } - public function getAdId() - { - return $this->adId; - } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } - public function getAdvertiserId() - { - return $this->advertiserId; - } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } - public function getAgencyId() - { - return $this->agencyId; - } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } - public function getCampaignId() - { - return $this->campaignId; - } - public function setEngineAccountId($engineAccountId) - { - $this->engineAccountId = $engineAccountId; - } - public function getEngineAccountId() - { - return $this->engineAccountId; - } - public function setKeywordId($keywordId) - { - $this->keywordId = $keywordId; - } - public function getKeywordId() - { - return $this->keywordId; - } -} - -class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $changedAttributesSinceTimestamp; - public $changedMetricsSinceTimestamp; - public $endDate; - public $startDate; - - - public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp) - { - $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp; - } - public function getChangedAttributesSinceTimestamp() - { - return $this->changedAttributesSinceTimestamp; - } - public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) - { - $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; - } - public function getChangedMetricsSinceTimestamp() - { - return $this->changedMetricsSinceTimestamp; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $savedColumnName; - public $type; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSavedColumnName($savedColumnName) - { - $this->savedColumnName = $savedColumnName; - } - public function getSavedColumnName() - { - return $this->savedColumnName; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection -{ - protected $collection_key = 'availabilities'; - protected $internal_gapi_mappings = array( - ); - protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; - protected $availabilitiesDataType = 'array'; - - - public function setAvailabilities($availabilities) - { - $this->availabilities = $availabilities; - } - public function getAvailabilities() - { - return $this->availabilities; - } -} - -class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection -{ - protected $collection_key = 'availabilities'; - protected $internal_gapi_mappings = array( - ); - protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; - protected $availabilitiesDataType = 'array'; - - - public function setAvailabilities($availabilities) - { - $this->availabilities = $availabilities; - } - public function getAvailabilities() - { - return $this->availabilities; - } -} diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php deleted file mode 100644 index 55b167aea..000000000 --- a/src/Google/Service/Drive.php +++ /dev/null @@ -1,3305 +0,0 @@ - - * 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 -{ - /** View and manage the files in your Google Drive. */ - const DRIVE = - "https://www.googleapis.com/auth/drive"; - /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = - "https://www.googleapis.com/auth/drive.appdata"; - /** View and manage Google Drive files and folders that you have opened or created with this app. */ - const DRIVE_FILE = - "https://www.googleapis.com/auth/drive.file"; - /** View and manage metadata of files in your Google Drive. */ - const DRIVE_METADATA = - "https://www.googleapis.com/auth/drive.metadata"; - /** View metadata for files in your Google Drive. */ - const DRIVE_METADATA_READONLY = - "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the photos, videos and albums in your Google Photos. */ - const DRIVE_PHOTOS_READONLY = - "https://www.googleapis.com/auth/drive.photos.readonly"; - /** View the files in your Google Drive. */ - const DRIVE_READONLY = - "https://www.googleapis.com/auth/drive.readonly"; - /** Modify your Google Apps Script scripts' behavior. */ - const DRIVE_SCRIPTS = - "https://www.googleapis.com/auth/drive.scripts"; - - public $about; - public $changes; - public $channels; - public $comments; - public $files; - public $permissions; - public $replies; - public $revisions; - - - /** - * Constructs the internal representation of the Drive service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'drive/v3/'; - $this->version = 'v3'; - $this->serviceName = 'drive'; - - $this->about = new Google_Service_Drive_About_Resource( - $this, - $this->serviceName, - 'about', - array( - 'methods' => array( - 'get' => array( - 'path' => 'about', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->changes = new Google_Service_Drive_Changes_Resource( - $this, - $this->serviceName, - 'changes', - array( - 'methods' => array( - 'getStartPageToken' => array( - 'path' => 'changes/startPageToken', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'list' => array( - 'path' => 'changes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'includeRemoved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'restrictToMyDrive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'spaces' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'changes/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'includeRemoved' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'restrictToMyDrive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'spaces' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Drive_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->comments = new Google_Service_Drive_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'create' => array( - 'path' => 'files/{fileId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startModifiedTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->files = new Google_Service_Drive_Files_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'copy' => array( - 'path' => 'files/{fileId}/copy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ignoreDefaultVisibility' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'keepRevisionForever' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'create' => array( - 'path' => 'files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'ignoreDefaultVisibility' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'keepRevisionForever' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'emptyTrash' => array( - 'path' => 'files/trash', - 'httpMethod' => 'DELETE', - 'parameters' => array(), - ),'export' => array( - 'path' => 'files/{fileId}/export', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'mimeType' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'generateIds' => array( - 'path' => 'files/generateIds', - 'httpMethod' => 'GET', - 'parameters' => array( - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'space' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acknowledgeAbuse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'corpus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'spaces' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'addParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'keepRevisionForever' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'removeParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'watch' => array( - 'path' => 'files/{fileId}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acknowledgeAbuse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->permissions = new Google_Service_Drive_Permissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'files/{fileId}/permissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'emailMessage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sendNotificationEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'transferOwnership' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'transferOwnership' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->replies = new Google_Service_Drive_Replies_Resource( - $this, - $this->serviceName, - 'replies', - array( - 'methods' => array( - 'create' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->revisions = new Google_Service_Drive_Revisions_Resource( - $this, - $this->serviceName, - 'revisions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acknowledgeAbuse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/revisions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "about" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $about = $driveService->about; - * - */ -class Google_Service_Drive_About_Resource extends Google_Service_Resource -{ - - /** - * Gets information about the user, the user's Drive, and system capabilities. - * (about.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_About - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_About"); - } -} - -/** - * The "changes" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $changes = $driveService->changes; - * - */ -class Google_Service_Drive_Changes_Resource extends Google_Service_Resource -{ - - /** - * Gets the starting pageToken for listing future changes. - * (changes.getStartPageToken) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_StartPageToken - */ - public function getStartPageToken($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getStartPageToken', array($params), "Google_Service_Drive_StartPageToken"); - } - - /** - * Lists changes for a user. (changes.listChanges) - * - * @param string $pageToken The token for continuing a previous list request on - * the next page. This should be set to the value of 'nextPageToken' from the - * previous response or to the response from the getStartPageToken method. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeRemoved Whether to include changes indicating that - * items have left the view of the changes list, for example by deletion or lost - * access. - * @opt_param int pageSize The maximum number of changes to return per page. - * @opt_param bool restrictToMyDrive Whether to restrict the results to changes - * inside the My Drive hierarchy. This omits changes to files such as those in - * the Application Data folder or shared files which have not been added to My - * Drive. - * @opt_param string spaces A comma-separated list of spaces to query within the - * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. - * @return Google_Service_Drive_ChangeList - */ - public function listChanges($pageToken, $optParams = array()) - { - $params = array('pageToken' => $pageToken); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); - } - - /** - * Subscribes to changes for a user. (changes.watch) - * - * @param string $pageToken The token for continuing a previous list request on - * the next page. This should be set to the value of 'nextPageToken' from the - * previous response or to the response from the getStartPageToken method. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool includeRemoved Whether to include changes indicating that - * items have left the view of the changes list, for example by deletion or lost - * access. - * @opt_param int pageSize The maximum number of changes to return per page. - * @opt_param bool restrictToMyDrive Whether to restrict the results to changes - * inside the My Drive hierarchy. This omits changes to files such as those in - * the Application Data folder or shared files which have not been added to My - * Drive. - * @opt_param string spaces A comma-separated list of spaces to query within the - * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. - * @return Google_Service_Drive_Channel - */ - public function watch($pageToken, Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('pageToken' => $pageToken, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Drive_Channel"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $channels = $driveService->channels; - * - */ -class Google_Service_Drive_Channels_Resource extends Google_Service_Resource -{ - - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $comments = $driveService->comments; - * - */ -class Google_Service_Drive_Comments_Resource extends Google_Service_Resource -{ - - /** - * Creates a new comment on a file. (comments.create) - * - * @param string $fileId The ID of the file. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function create($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Drive_Comment"); - } - - /** - * Deletes a comment. (comments.delete) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a comment by ID. (comments.get) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted Whether to return deleted comments. Deleted - * comments will not include their original content. - * @return Google_Service_Drive_Comment - */ - public function get($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Comment"); - } - - /** - * Lists a file's comments. (comments.listComments) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted Whether to include deleted comments. Deleted - * comments will not include their original content. - * @opt_param int pageSize The maximum number of comments to return per page. - * @opt_param string pageToken The token for continuing a previous list request - * on the next page. This should be set to the value of 'nextPageToken' from the - * previous response. - * @opt_param string startModifiedTime The minimum value of 'modifiedTime' for - * the result comments (RFC 3339 date-time). - * @return Google_Service_Drive_CommentList - */ - public function listComments($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_CommentList"); - } - - /** - * Updates a comment with patch semantics. (comments.update) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Comment"); - } -} - -/** - * The "files" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $files = $driveService->files; - * - */ -class Google_Service_Drive_Files_Resource extends Google_Service_Resource -{ - - /** - * Creates a copy of a file and applies any requested updates with patch - * semantics. (files.copy) - * - * @param string $fileId The ID of the file. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's - * default visibility settings for the created file. Domain administrators can - * choose to make all uploaded files visible to the domain by default; this - * parameter bypasses that behavior for the request. Permissions are still - * inherited from parent folders. - * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in - * the new head revision. This is only applicable to files with binary content - * in Drive. - * @opt_param string ocrLanguage A language hint for OCR processing during image - * import (ISO 639-1 code). - * @return Google_Service_Drive_DriveFile - */ - public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Creates a new file. (files.create) - * - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's - * default visibility settings for the created file. Domain administrators can - * choose to make all uploaded files visible to the domain by default; this - * parameter bypasses that behavior for the request. Permissions are still - * inherited from parent folders. - * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in - * the new head revision. This is only applicable to files with binary content - * in Drive. - * @opt_param string ocrLanguage A language hint for OCR processing during image - * import (ISO 639-1 code). - * @opt_param bool useContentAsIndexableText Whether to use the uploaded content - * as indexable text. - * @return Google_Service_Drive_DriveFile - */ - public function create(Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Permanently deletes a file owned by the user without moving it to the trash. - * If the target is a folder, all descendants owned by the user are also - * deleted. (files.delete) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Permanently deletes all of the user's trashed files. (files.emptyTrash) - * - * @param array $optParams Optional parameters. - */ - public function emptyTrash($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('emptyTrash', array($params)); - } - - /** - * Exports a Google Doc to the requested MIME type and returns the exported - * content. (files.export) - * - * @param string $fileId The ID of the file. - * @param string $mimeType The MIME type of the format requested for this - * export. - * @param array $optParams Optional parameters. - */ - public function export($fileId, $mimeType, $optParams = array()) - { - $params = array('fileId' => $fileId, 'mimeType' => $mimeType); - $params = array_merge($params, $optParams); - return $this->call('export', array($params)); - } - - /** - * Generates a set of file IDs which can be provided in create requests. - * (files.generateIds) - * - * @param array $optParams Optional parameters. - * - * @opt_param int count The number of IDs to return. - * @opt_param string space The space in which the IDs can be used to create new - * files. Supported values are 'drive' and 'appDataFolder'. - * @return Google_Service_Drive_GeneratedIds - */ - public function generateIds($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds"); - } - - /** - * Gets a file's metadata or content by ID. (files.get) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * - * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. This is only applicable - * when alt=media. - * @return Google_Service_Drive_DriveFile - */ - public function get($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Lists or searches files. (files.listFiles) - * - * @param array $optParams Optional parameters. - * - * @opt_param string corpus The source of files to list. - * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are - * 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', - * 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and - * 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed - * with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime - * desc,name. Please note that there is a current limitation for users with - * approximately one million files in which the requested sort order is ignored. - * @opt_param int pageSize The maximum number of files to return per page. - * @opt_param string pageToken The token for continuing a previous list request - * on the next page. This should be set to the value of 'nextPageToken' from the - * previous response. - * @opt_param string q A query for filtering the file results. See the "Search - * for Files" guide for supported syntax. - * @opt_param string spaces A comma-separated list of spaces to query within the - * corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. - * @return Google_Service_Drive_FileList - */ - public function listFiles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_FileList"); - } - - /** - * Updates a file's metadata and/or content with patch semantics. (files.update) - * - * @param string $fileId The ID of the file. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string addParents A comma-separated list of parent IDs to add. - * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in - * the new head revision. This is only applicable to files with binary content - * in Drive. - * @opt_param string ocrLanguage A language hint for OCR processing during image - * import (ISO 639-1 code). - * @opt_param string removeParents A comma-separated list of parent IDs to - * remove. - * @opt_param bool useContentAsIndexableText Whether to use the uploaded 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); - return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); - } - - /** - * Subscribes to changes to a file (files.watch) - * - * @param string $fileId The ID of the file. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. This is only applicable - * when alt=media. - * @return Google_Service_Drive_Channel - */ - public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Drive_Channel"); - } -} - -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $permissions = $driveService->permissions; - * - */ -class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource -{ - - /** - * Creates a permission for a file. (permissions.create) - * - * @param string $fileId The ID of the file. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string emailMessage A custom message to include in the - * notification email. - * @opt_param bool sendNotificationEmail Whether to send a notification email - * when sharing to users or groups. This defaults to true for users and groups, - * and is not allowed for other requests. It must not be disabled for ownership - * transfers. - * @opt_param bool transferOwnership Whether to transfer ownership to the - * specified user and downgrade the current owner to a writer. This parameter is - * required as an acknowledgement of the side effect. - * @return Google_Service_Drive_Permission - */ - public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Drive_Permission"); - } - - /** - * Deletes a permission. (permissions.delete) - * - * @param string $fileId The ID of the file. - * @param string $permissionId The ID of the permission. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $permissionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a permission by ID. (permissions.get) - * - * @param string $fileId The ID of the file. - * @param string $permissionId The ID of the permission. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Permission - */ - public function get($fileId, $permissionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Permission"); - } - - /** - * Lists a file's permissions. (permissions.listPermissions) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PermissionList - */ - public function listPermissions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); - } - - /** - * Updates a permission with patch semantics. (permissions.update) - * - * @param string $fileId The ID of the file. - * @param string $permissionId The ID of the permission. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool transferOwnership Whether to transfer ownership to the - * specified user and downgrade the current owner to a writer. This parameter is - * required as an acknowledgement of the side effect. - * @return Google_Service_Drive_Permission - */ - public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Permission"); - } -} - -/** - * The "replies" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $replies = $driveService->replies; - * - */ -class Google_Service_Drive_Replies_Resource extends Google_Service_Resource -{ - - /** - * Creates a new reply to a comment. (replies.create) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param Google_Reply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Reply - */ - public function create($fileId, $commentId, Google_Service_Drive_Reply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Drive_Reply"); - } - - /** - * Deletes a reply. (replies.delete) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param string $replyId The ID of the reply. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $commentId, $replyId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a reply by ID. (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 Whether to return deleted replies. Deleted - * replies will not include their original content. - * @return Google_Service_Drive_Reply - */ - public function get($fileId, $commentId, $replyId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Reply"); - } - - /** - * Lists a comment's replies. (replies.listReplies) - * - * @param string $fileId The ID of the file. - * @param string $commentId The ID of the comment. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted Whether to include deleted replies. Deleted - * replies will not include their original content. - * @opt_param int pageSize The maximum number of replies to return per page. - * @opt_param string pageToken The token for continuing a previous list request - * on the next page. This should be set to the value of 'nextPageToken' from the - * previous response. - * @return Google_Service_Drive_ReplyList - */ - public function listReplies($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ReplyList"); - } - - /** - * Updates a reply with patch semantics. (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_Reply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Reply - */ - public function update($fileId, $commentId, $replyId, Google_Service_Drive_Reply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Reply"); - } -} - -/** - * The "revisions" collection of methods. - * Typical usage is: - * - * $driveService = new Google_Service_Drive(...); - * $revisions = $driveService->revisions; - * - */ -class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource -{ - - /** - * Permanently deletes a revision. This method is only applicable to files with - * binary content in Drive. (revisions.delete) - * - * @param string $fileId The ID of the file. - * @param string $revisionId The ID of the revision. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $revisionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a revision's metadata or content by ID. (revisions.get) - * - * @param string $fileId The ID of the file. - * @param string $revisionId The ID of the revision. - * @param array $optParams Optional parameters. - * - * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk - * of downloading known malware or other abusive files. This is only applicable - * when alt=media. - * @return Google_Service_Drive_Revision - */ - public function get($fileId, $revisionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Revision"); - } - - /** - * Lists a file's revisions. (revisions.listRevisions) - * - * @param string $fileId The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_RevisionList - */ - public function listRevisions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); - } - - /** - * Updates a revision with patch semantics. (revisions.update) - * - * @param string $fileId The ID of the file. - * @param string $revisionId The ID of the revision. - * @param Google_Revision $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Revision"); - } -} - - - - -class Google_Service_Drive_About extends Google_Collection -{ - protected $collection_key = 'folderColorPalette'; - protected $internal_gapi_mappings = array( - ); - public $appInstalled; - public $exportFormats; - public $folderColorPalette; - public $importFormats; - public $kind; - public $maxImportSizes; - public $maxUploadSize; - protected $storageQuotaType = 'Google_Service_Drive_AboutStorageQuota'; - protected $storageQuotaDataType = ''; - protected $userType = 'Google_Service_Drive_User'; - protected $userDataType = ''; - - - public function setAppInstalled($appInstalled) - { - $this->appInstalled = $appInstalled; - } - public function getAppInstalled() - { - return $this->appInstalled; - } - public function setExportFormats($exportFormats) - { - $this->exportFormats = $exportFormats; - } - public function getExportFormats() - { - return $this->exportFormats; - } - public function setFolderColorPalette($folderColorPalette) - { - $this->folderColorPalette = $folderColorPalette; - } - public function getFolderColorPalette() - { - return $this->folderColorPalette; - } - public function setImportFormats($importFormats) - { - $this->importFormats = $importFormats; - } - public function getImportFormats() - { - return $this->importFormats; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxImportSizes($maxImportSizes) - { - $this->maxImportSizes = $maxImportSizes; - } - public function getMaxImportSizes() - { - return $this->maxImportSizes; - } - public function setMaxUploadSize($maxUploadSize) - { - $this->maxUploadSize = $maxUploadSize; - } - public function getMaxUploadSize() - { - return $this->maxUploadSize; - } - public function setStorageQuota(Google_Service_Drive_AboutStorageQuota $storageQuota) - { - $this->storageQuota = $storageQuota; - } - public function getStorageQuota() - { - return $this->storageQuota; - } - public function setUser(Google_Service_Drive_User $user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_Drive_AboutStorageQuota extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $limit; - public $usage; - public $usageInDrive; - public $usageInDriveTrash; - - - public function setLimit($limit) - { - $this->limit = $limit; - } - public function getLimit() - { - return $this->limit; - } - public function setUsage($usage) - { - $this->usage = $usage; - } - public function getUsage() - { - return $this->usage; - } - public function setUsageInDrive($usageInDrive) - { - $this->usageInDrive = $usageInDrive; - } - public function getUsageInDrive() - { - return $this->usageInDrive; - } - public function setUsageInDriveTrash($usageInDriveTrash) - { - $this->usageInDriveTrash = $usageInDriveTrash; - } - public function getUsageInDriveTrash() - { - return $this->usageInDriveTrash; - } -} - -class Google_Service_Drive_Change extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $fileType = 'Google_Service_Drive_DriveFile'; - protected $fileDataType = ''; - public $fileId; - public $kind; - public $removed; - public $time; - - - 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 setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRemoved($removed) - { - $this->removed = $removed; - } - public function getRemoved() - { - return $this->removed; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Drive_ChangeList extends Google_Collection -{ - protected $collection_key = 'changes'; - protected $internal_gapi_mappings = array( - ); - protected $changesType = 'Google_Service_Drive_Change'; - protected $changesDataType = 'array'; - public $kind; - public $newStartPageToken; - public $nextPageToken; - - - public function setChanges($changes) - { - $this->changes = $changes; - } - public function getChanges() - { - return $this->changes; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewStartPageToken($newStartPageToken) - { - $this->newStartPageToken = $newStartPageToken; - } - public function getNewStartPageToken() - { - return $this->newStartPageToken; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Drive_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function 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 setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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_Drive_Comment extends Google_Collection -{ - protected $collection_key = 'replies'; - protected $internal_gapi_mappings = array( - ); - public $anchor; - protected $authorType = 'Google_Service_Drive_User'; - protected $authorDataType = ''; - public $content; - public $createdTime; - public $deleted; - public $htmlContent; - public $id; - public $kind; - public $modifiedTime; - protected $quotedFileContentType = 'Google_Service_Drive_CommentQuotedFileContent'; - protected $quotedFileContentDataType = ''; - protected $repliesType = 'Google_Service_Drive_Reply'; - protected $repliesDataType = 'array'; - public $resolved; - - - 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 setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - public function getCreatedTime() - { - return $this->createdTime; - } - 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 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 setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - public function getModifiedTime() - { - return $this->modifiedTime; - } - public function setQuotedFileContent(Google_Service_Drive_CommentQuotedFileContent $quotedFileContent) - { - $this->quotedFileContent = $quotedFileContent; - } - public function getQuotedFileContent() - { - return $this->quotedFileContent; - } - public function setReplies($replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setResolved($resolved) - { - $this->resolved = $resolved; - } - public function getResolved() - { - return $this->resolved; - } -} - -class Google_Service_Drive_CommentList extends Google_Collection -{ - protected $collection_key = 'comments'; - protected $internal_gapi_mappings = array( - ); - protected $commentsType = 'Google_Service_Drive_Comment'; - protected $commentsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - 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_Drive_CommentQuotedFileContent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $mimeType; - public $value; - - - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Drive_DriveFile extends Google_Collection -{ - protected $collection_key = 'spaces'; - protected $internal_gapi_mappings = array( - ); - public $appProperties; - protected $capabilitiesType = 'Google_Service_Drive_DriveFileCapabilities'; - protected $capabilitiesDataType = ''; - protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints'; - protected $contentHintsDataType = ''; - public $createdTime; - public $description; - public $explicitlyTrashed; - public $fileExtension; - public $folderColorRgb; - public $fullFileExtension; - public $headRevisionId; - public $iconLink; - public $id; - protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; - protected $imageMediaMetadataDataType = ''; - public $kind; - protected $lastModifyingUserType = 'Google_Service_Drive_User'; - protected $lastModifyingUserDataType = ''; - public $md5Checksum; - public $mimeType; - public $modifiedByMeTime; - public $modifiedTime; - public $name; - public $originalFilename; - public $ownedByMe; - protected $ownersType = 'Google_Service_Drive_User'; - protected $ownersDataType = 'array'; - public $parents; - protected $permissionsType = 'Google_Service_Drive_Permission'; - protected $permissionsDataType = 'array'; - public $properties; - public $quotaBytesUsed; - public $shared; - public $sharedWithMeTime; - protected $sharingUserType = 'Google_Service_Drive_User'; - protected $sharingUserDataType = ''; - public $size; - public $spaces; - public $starred; - public $thumbnailLink; - public $trashed; - public $version; - protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata'; - protected $videoMediaMetadataDataType = ''; - public $viewedByMe; - public $viewedByMeTime; - public $viewersCanCopyContent; - public $webContentLink; - public $webViewLink; - public $writersCanShare; - - - public function setAppProperties($appProperties) - { - $this->appProperties = $appProperties; - } - public function getAppProperties() - { - return $this->appProperties; - } - public function setCapabilities(Google_Service_Drive_DriveFileCapabilities $capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setContentHints(Google_Service_Drive_DriveFileContentHints $contentHints) - { - $this->contentHints = $contentHints; - } - public function getContentHints() - { - return $this->contentHints; - } - public function setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - public function getCreatedTime() - { - return $this->createdTime; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExplicitlyTrashed($explicitlyTrashed) - { - $this->explicitlyTrashed = $explicitlyTrashed; - } - public function getExplicitlyTrashed() - { - return $this->explicitlyTrashed; - } - public function setFileExtension($fileExtension) - { - $this->fileExtension = $fileExtension; - } - public function getFileExtension() - { - return $this->fileExtension; - } - public function setFolderColorRgb($folderColorRgb) - { - $this->folderColorRgb = $folderColorRgb; - } - public function getFolderColorRgb() - { - return $this->folderColorRgb; - } - public function setFullFileExtension($fullFileExtension) - { - $this->fullFileExtension = $fullFileExtension; - } - public function getFullFileExtension() - { - return $this->fullFileExtension; - } - public function setHeadRevisionId($headRevisionId) - { - $this->headRevisionId = $headRevisionId; - } - public function getHeadRevisionId() - { - return $this->headRevisionId; - } - public function setIconLink($iconLink) - { - $this->iconLink = $iconLink; - } - public function getIconLink() - { - return $this->iconLink; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) - { - $this->imageMediaMetadata = $imageMediaMetadata; - } - public function getImageMediaMetadata() - { - return $this->imageMediaMetadata; - } - public function 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 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 setModifiedByMeTime($modifiedByMeTime) - { - $this->modifiedByMeTime = $modifiedByMeTime; - } - public function getModifiedByMeTime() - { - return $this->modifiedByMeTime; - } - public function setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - public function getModifiedTime() - { - return $this->modifiedTime; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOriginalFilename($originalFilename) - { - $this->originalFilename = $originalFilename; - } - public function getOriginalFilename() - { - return $this->originalFilename; - } - public function setOwnedByMe($ownedByMe) - { - $this->ownedByMe = $ownedByMe; - } - public function getOwnedByMe() - { - return $this->ownedByMe; - } - public function setOwners($owners) - { - $this->owners = $owners; - } - public function getOwners() - { - return $this->owners; - } - public function setParents($parents) - { - $this->parents = $parents; - } - public function getParents() - { - return $this->parents; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setQuotaBytesUsed($quotaBytesUsed) - { - $this->quotaBytesUsed = $quotaBytesUsed; - } - public function getQuotaBytesUsed() - { - return $this->quotaBytesUsed; - } - public function setShared($shared) - { - $this->shared = $shared; - } - public function getShared() - { - return $this->shared; - } - public function setSharedWithMeTime($sharedWithMeTime) - { - $this->sharedWithMeTime = $sharedWithMeTime; - } - public function getSharedWithMeTime() - { - return $this->sharedWithMeTime; - } - public function setSharingUser(Google_Service_Drive_User $sharingUser) - { - $this->sharingUser = $sharingUser; - } - public function getSharingUser() - { - return $this->sharingUser; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSpaces($spaces) - { - $this->spaces = $spaces; - } - public function getSpaces() - { - return $this->spaces; - } - public function setStarred($starred) - { - $this->starred = $starred; - } - public function getStarred() - { - return $this->starred; - } - public function setThumbnailLink($thumbnailLink) - { - $this->thumbnailLink = $thumbnailLink; - } - public function getThumbnailLink() - { - return $this->thumbnailLink; - } - public function setTrashed($trashed) - { - $this->trashed = $trashed; - } - public function getTrashed() - { - return $this->trashed; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } - public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata) - { - $this->videoMediaMetadata = $videoMediaMetadata; - } - public function getVideoMediaMetadata() - { - return $this->videoMediaMetadata; - } - public function setViewedByMe($viewedByMe) - { - $this->viewedByMe = $viewedByMe; - } - public function getViewedByMe() - { - return $this->viewedByMe; - } - public function setViewedByMeTime($viewedByMeTime) - { - $this->viewedByMeTime = $viewedByMeTime; - } - public function getViewedByMeTime() - { - return $this->viewedByMeTime; - } - public function setViewersCanCopyContent($viewersCanCopyContent) - { - $this->viewersCanCopyContent = $viewersCanCopyContent; - } - public function getViewersCanCopyContent() - { - return $this->viewersCanCopyContent; - } - 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_DriveFileCapabilities extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canComment; - public $canCopy; - public $canEdit; - public $canReadRevisions; - public $canShare; - - - public function setCanComment($canComment) - { - $this->canComment = $canComment; - } - public function getCanComment() - { - return $this->canComment; - } - public function setCanCopy($canCopy) - { - $this->canCopy = $canCopy; - } - public function getCanCopy() - { - return $this->canCopy; - } - public function setCanEdit($canEdit) - { - $this->canEdit = $canEdit; - } - public function getCanEdit() - { - return $this->canEdit; - } - public function setCanReadRevisions($canReadRevisions) - { - $this->canReadRevisions = $canReadRevisions; - } - public function getCanReadRevisions() - { - return $this->canReadRevisions; - } - public function setCanShare($canShare) - { - $this->canShare = $canShare; - } - public function getCanShare() - { - return $this->canShare; - } -} - -class Google_Service_Drive_DriveFileContentHints extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $indexableText; - protected $thumbnailType = 'Google_Service_Drive_DriveFileContentHintsThumbnail'; - protected $thumbnailDataType = ''; - - - public function setIndexableText($indexableText) - { - $this->indexableText = $indexableText; - } - public function getIndexableText() - { - return $this->indexableText; - } - public function setThumbnail(Google_Service_Drive_DriveFileContentHintsThumbnail $thumbnail) - { - $this->thumbnail = $thumbnail; - } - public function getThumbnail() - { - return $this->thumbnail; - } -} - -class Google_Service_Drive_DriveFileContentHintsThumbnail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_DriveFileImageMediaMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aperture; - public $cameraMake; - public $cameraModel; - public $colorSpace; - public $exposureBias; - public $exposureMode; - public $exposureTime; - public $flashUsed; - public $focalLength; - public $height; - public $isoSpeed; - public $lens; - protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation'; - protected $locationDataType = ''; - public $maxApertureValue; - public $meteringMode; - public $rotation; - public $sensor; - public $subjectDistance; - public $time; - 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 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 setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_DriveFileVideoMediaMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $durationMillis; - public $height; - public $width; - - - public function setDurationMillis($durationMillis) - { - $this->durationMillis = $durationMillis; - } - public function getDurationMillis() - { - return $this->durationMillis; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Drive_FileList extends Google_Collection -{ - protected $collection_key = 'files'; - protected $internal_gapi_mappings = array( - ); - protected $filesType = 'Google_Service_Drive_DriveFile'; - protected $filesDataType = 'array'; - public $kind; - public $nextPageToken; - - - 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 setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Drive_GeneratedIds extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - public $kind; - public $space; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSpace($space) - { - $this->space = $space; - } - public function getSpace() - { - return $this->space; - } -} - -class Google_Service_Drive_Permission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowFileDiscovery; - public $displayName; - public $domain; - public $emailAddress; - public $id; - public $kind; - public $photoLink; - public $role; - public $type; - - - public function setAllowFileDiscovery($allowFileDiscovery) - { - $this->allowFileDiscovery = $allowFileDiscovery; - } - public function getAllowFileDiscovery() - { - return $this->allowFileDiscovery; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - 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 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 setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Drive_PermissionList extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $permissionsType = 'Google_Service_Drive_Permission'; - protected $permissionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Drive_Reply extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $action; - protected $authorType = 'Google_Service_Drive_User'; - protected $authorDataType = ''; - public $content; - public $createdTime; - public $deleted; - public $htmlContent; - public $id; - public $kind; - public $modifiedTime; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - 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 setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - public function getCreatedTime() - { - return $this->createdTime; - } - 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 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 setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - public function getModifiedTime() - { - return $this->modifiedTime; - } -} - -class Google_Service_Drive_ReplyList extends Google_Collection -{ - protected $collection_key = 'replies'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $repliesType = 'Google_Service_Drive_Reply'; - protected $repliesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReplies($replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } -} - -class Google_Service_Drive_Revision extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $keepForever; - public $kind; - protected $lastModifyingUserType = 'Google_Service_Drive_User'; - protected $lastModifyingUserDataType = ''; - public $md5Checksum; - public $mimeType; - public $modifiedTime; - public $originalFilename; - public $publishAuto; - public $published; - public $publishedOutsideDomain; - public $size; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKeepForever($keepForever) - { - $this->keepForever = $keepForever; - } - public function getKeepForever() - { - return $this->keepForever; - } - 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 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 setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - public function getModifiedTime() - { - return $this->modifiedTime; - } - public function setOriginalFilename($originalFilename) - { - $this->originalFilename = $originalFilename; - } - public function getOriginalFilename() - { - return $this->originalFilename; - } - 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 setPublishedOutsideDomain($publishedOutsideDomain) - { - $this->publishedOutsideDomain = $publishedOutsideDomain; - } - public function getPublishedOutsideDomain() - { - return $this->publishedOutsideDomain; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} - -class Google_Service_Drive_RevisionList extends Google_Collection -{ - protected $collection_key = 'revisions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $revisionsType = 'Google_Service_Drive_Revision'; - protected $revisionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRevisions($revisions) - { - $this->revisions = $revisions; - } - public function getRevisions() - { - return $this->revisions; - } -} - -class Google_Service_Drive_StartPageToken extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $startPageToken; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartPageToken($startPageToken) - { - $this->startPageToken = $startPageToken; - } - public function getStartPageToken() - { - return $this->startPageToken; - } -} - -class Google_Service_Drive_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $emailAddress; - public $kind; - public $me; - public $permissionId; - public $photoLink; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMe($me) - { - $this->me = $me; - } - public function getMe() - { - return $this->me; - } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - public function getPermissionId() - { - return $this->permissionId; - } - public function setPhotoLink($photoLink) - { - $this->photoLink = $photoLink; - } - public function getPhotoLink() - { - return $this->photoLink; - } -} diff --git a/src/Google/Service/Fitness.php b/src/Google/Service/Fitness.php deleted file mode 100644 index 4a9f06304..000000000 --- a/src/Google/Service/Fitness.php +++ /dev/null @@ -1,1568 +0,0 @@ - - * Google Fit API

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Fitness extends Google_Service -{ - /** View your activity information in Google Fit. */ - const FITNESS_ACTIVITY_READ = - "https://www.googleapis.com/auth/fitness.activity.read"; - /** View and store your activity information in Google Fit. */ - const FITNESS_ACTIVITY_WRITE = - "https://www.googleapis.com/auth/fitness.activity.write"; - /** View body sensor information in Google Fit. */ - const FITNESS_BODY_READ = - "https://www.googleapis.com/auth/fitness.body.read"; - /** View and store body sensor data in Google Fit. */ - const FITNESS_BODY_WRITE = - "https://www.googleapis.com/auth/fitness.body.write"; - /** View your stored location data in Google Fit. */ - const FITNESS_LOCATION_READ = - "https://www.googleapis.com/auth/fitness.location.read"; - /** View and store your location data in Google Fit. */ - const FITNESS_LOCATION_WRITE = - "https://www.googleapis.com/auth/fitness.location.write"; - - public $users_dataSources; - public $users_dataSources_datasets; - public $users_dataset; - public $users_sessions; - - - /** - * Constructs the internal representation of the Fitness service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'fitness/v1/users/'; - $this->version = 'v1'; - $this->serviceName = 'fitness'; - - $this->users_dataSources = new Google_Service_Fitness_UsersDataSources_Resource( - $this, - $this->serviceName, - 'dataSources', - array( - 'methods' => array( - 'create' => array( - 'path' => '{userId}/dataSources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/dataSources/{dataSourceId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/dataSources/{dataSourceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/dataSources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataTypeName' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'patch' => array( - 'path' => '{userId}/dataSources/{dataSourceId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{userId}/dataSources/{dataSourceId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_dataSources_datasets = new Google_Service_Fitness_UsersDataSourcesDatasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'currentTimeMillis' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedTimeMillis' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'currentTimeMillis' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_dataset = new Google_Service_Fitness_UsersDataset_Resource( - $this, - $this->serviceName, - 'dataset', - array( - 'methods' => array( - 'aggregate' => array( - 'path' => '{userId}/dataset:aggregate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_sessions = new Google_Service_Fitness_UsersSessions_Resource( - $this, - $this->serviceName, - 'sessions', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{userId}/sessions/{sessionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sessionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'currentTimeMillis' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{userId}/sessions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => '{userId}/sessions/{sessionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sessionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'currentTimeMillis' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $fitnessService = new Google_Service_Fitness(...); - * $users = $fitnessService->users; - * - */ -class Google_Service_Fitness_Users_Resource extends Google_Service_Resource -{ -} - -/** - * The "dataSources" collection of methods. - * Typical usage is: - * - * $fitnessService = new Google_Service_Fitness(...); - * $dataSources = $fitnessService->dataSources; - * - */ -class Google_Service_Fitness_UsersDataSources_Resource extends Google_Service_Resource -{ - - /** - * Creates a new data source that is unique across all data sources belonging to - * this user. The data stream ID field can be omitted and will be generated by - * the server with the correct format. The data stream ID is an ordered - * combination of some fields from the data source. In addition to the data - * source fields reflected into the data source ID, the developer project number - * that is authenticated when creating the data source is included. This - * developer project number is obfuscated when read by any other developer - * reading public data types. (dataSources.create) - * - * @param string $userId Create the data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param Google_DataSource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function create($userId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Fitness_DataSource"); - } - - /** - * Delete the data source if there are no datapoints associated with it - * (dataSources.delete) - * - * @param string $userId Retrieve a data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function delete($userId, $dataSourceId, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Fitness_DataSource"); - } - - /** - * Returns a data source identified by a data stream ID. (dataSources.get) - * - * @param string $userId Retrieve a data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source to - * retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function get($userId, $dataSourceId, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fitness_DataSource"); - } - - /** - * Lists all data sources that are visible to the developer, using the OAuth - * scopes provided. The list is not exhaustive: the user may have private data - * sources that are only visible to other developers or calls using other - * scopes. (dataSources.listUsersDataSources) - * - * @param string $userId List data sources for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param array $optParams Optional parameters. - * - * @opt_param string dataTypeName The names of data types to include in the - * list. If not specified, all data sources will be returned. - * @return Google_Service_Fitness_ListDataSourcesResponse - */ - public function listUsersDataSources($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse"); - } - - /** - * Updates a given data source. It is an error to modify the data source's data - * stream ID, data type, type, stream name or device information apart from the - * device version. Changing these fields would require a new unique data stream - * ID and separate data source. - * - * Data sources are identified by their data stream ID. This method supports - * patch semantics. (dataSources.patch) - * - * @param string $userId Update the data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source to update. - * @param Google_DataSource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fitness_DataSource"); - } - - /** - * Updates a given data source. It is an error to modify the data source's data - * stream ID, data type, type, stream name or device information apart from the - * device version. Changing these fields would require a new unique data stream - * ID and separate data source. - * - * Data sources are identified by their data stream ID. (dataSources.update) - * - * @param string $userId Update the data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source to update. - * @param Google_DataSource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function update($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fitness_DataSource"); - } -} - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $fitnessService = new Google_Service_Fitness(...); - * $datasets = $fitnessService->datasets; - * - */ -class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Service_Resource -{ - - /** - * Performs an inclusive delete of all data points whose start and end times - * have any overlap with the time range specified by the dataset ID. For most - * data types, the entire data point will be deleted. For data types where the - * time span represents a consistent value (such as - * com.google.activity.segment), and a data point straddles either end point of - * the dataset, only the overlapping portion of the data point will be deleted. - * (datasets.delete) - * - * @param string $userId Delete a dataset for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source that - * created the dataset. - * @param string $datasetId Dataset identifier that is a composite of the - * minimum data point start time and maximum data point end time represented as - * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" - * where startTime and endTime are 64 bit integers. - * @param array $optParams Optional parameters. - * - * @opt_param string currentTimeMillis The client's current time in milliseconds - * since epoch. - * @opt_param string modifiedTimeMillis When the operation was performed on the - * client. - */ - public function delete($userId, $dataSourceId, $datasetId, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns a dataset containing all data points whose start and end times - * overlap with the specified range of the dataset minimum start time and - * maximum end time. Specifically, any data point whose start time is less than - * or equal to the dataset end time and whose end time is greater than or equal - * to the dataset start time. (datasets.get) - * - * @param string $userId Retrieve a dataset for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source that - * created the dataset. - * @param string $datasetId Dataset identifier that is a composite of the - * minimum data point start time and maximum data point end time represented as - * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" - * where startTime and endTime are 64 bit integers. - * @param array $optParams Optional parameters. - * - * @opt_param int limit If specified, no more than this many data points will be - * included in the dataset. If the there are more data points in the dataset, - * nextPageToken will be set in the dataset response. - * @opt_param string pageToken The continuation token, which is used to page - * through large datasets. To get the next page of a dataset, set this parameter - * to the value of nextPageToken from the previous response. Each subsequent - * call will yield a partial dataset with data point end timestamps that are - * strictly smaller than those in the previous partial response. - * @return Google_Service_Fitness_Dataset - */ - public function get($userId, $dataSourceId, $datasetId, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fitness_Dataset"); - } - - /** - * Adds data points to a dataset. The dataset need not be previously created. - * All points within the given dataset will be returned with subsquent calls to - * retrieve this dataset. Data points can belong to more than one dataset. This - * method does not use patch semantics. (datasets.patch) - * - * @param string $userId Patch a dataset for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source that - * created the dataset. - * @param string $datasetId Dataset identifier that is a composite of the - * minimum data point start time and maximum data point end time represented as - * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" - * where startTime and endTime are 64 bit integers. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string currentTimeMillis The client's current time in milliseconds - * since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the - * request body are in nanoseconds instead of milliseconds. - * @return Google_Service_Fitness_Dataset - */ - public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness_Dataset $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fitness_Dataset"); - } -} -/** - * The "dataset" collection of methods. - * Typical usage is: - * - * $fitnessService = new Google_Service_Fitness(...); - * $dataset = $fitnessService->dataset; - * - */ -class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resource -{ - - /** - * Aggregates data of a certain type or stream into buckets divided by a given - * type of boundary. Multiple data sets of multiple types and from multiple - * sources can be aggreated into exactly one bucket type per request. - * (dataset.aggregate) - * - * @param string $userId Aggregate data for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param Google_AggregateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_AggregateResponse - */ - public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse"); - } -} -/** - * The "sessions" collection of methods. - * Typical usage is: - * - * $fitnessService = new Google_Service_Fitness(...); - * $sessions = $fitnessService->sessions; - * - */ -class Google_Service_Fitness_UsersSessions_Resource extends Google_Service_Resource -{ - - /** - * Deletes a session specified by the given session ID. (sessions.delete) - * - * @param string $userId Delete a session for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param string $sessionId The ID of the session to be deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string currentTimeMillis The client's current time in milliseconds - * since epoch. - */ - public function delete($userId, $sessionId, $optParams = array()) - { - $params = array('userId' => $userId, 'sessionId' => $sessionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Lists sessions previously created. (sessions.listUsersSessions) - * - * @param string $userId List sessions for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param array $optParams Optional parameters. - * - * @opt_param string endTime An RFC3339 timestamp. Only sessions ending between - * the start and end times will be included in the response. - * @opt_param bool includeDeleted If true, deleted sessions will be returned. - * When set to true, sessions returned in this response will only have an ID and - * will not have any other fields. - * @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 startTime An RFC3339 timestamp. Only sessions ending - * between the start and end times will be included in the response. - * @return Google_Service_Fitness_ListSessionsResponse - */ - public function listUsersSessions($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fitness_ListSessionsResponse"); - } - - /** - * Updates or insert a given session. (sessions.update) - * - * @param string $userId Create sessions for the person identified. Use me to - * indicate the authenticated user. Only me is supported at this time. - * @param string $sessionId The ID of the session to be created. - * @param Google_Session $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string currentTimeMillis The client's current time in milliseconds - * since epoch. - * @return Google_Service_Fitness_Session - */ - public function update($userId, $sessionId, Google_Service_Fitness_Session $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fitness_Session"); - } -} - - - - -class Google_Service_Fitness_AggregateBucket extends Google_Collection -{ - protected $collection_key = 'dataset'; - protected $internal_gapi_mappings = array( - ); - public $activity; - protected $datasetType = 'Google_Service_Fitness_Dataset'; - protected $datasetDataType = 'array'; - public $endTimeMillis; - protected $sessionType = 'Google_Service_Fitness_Session'; - protected $sessionDataType = ''; - public $startTimeMillis; - public $type; - - - public function setActivity($activity) - { - $this->activity = $activity; - } - public function getActivity() - { - return $this->activity; - } - public function setDataset($dataset) - { - $this->dataset = $dataset; - } - public function getDataset() - { - return $this->dataset; - } - public function setEndTimeMillis($endTimeMillis) - { - $this->endTimeMillis = $endTimeMillis; - } - public function getEndTimeMillis() - { - return $this->endTimeMillis; - } - public function setSession(Google_Service_Fitness_Session $session) - { - $this->session = $session; - } - public function getSession() - { - return $this->session; - } - public function setStartTimeMillis($startTimeMillis) - { - $this->startTimeMillis = $startTimeMillis; - } - public function getStartTimeMillis() - { - return $this->startTimeMillis; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Fitness_AggregateBy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dataSourceId; - public $dataTypeName; - - - public function setDataSourceId($dataSourceId) - { - $this->dataSourceId = $dataSourceId; - } - public function getDataSourceId() - { - return $this->dataSourceId; - } - public function setDataTypeName($dataTypeName) - { - $this->dataTypeName = $dataTypeName; - } - public function getDataTypeName() - { - return $this->dataTypeName; - } -} - -class Google_Service_Fitness_AggregateRequest extends Google_Collection -{ - protected $collection_key = 'aggregateBy'; - protected $internal_gapi_mappings = array( - ); - protected $aggregateByType = 'Google_Service_Fitness_AggregateBy'; - protected $aggregateByDataType = 'array'; - protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity'; - protected $bucketByActivitySegmentDataType = ''; - protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity'; - protected $bucketByActivityTypeDataType = ''; - protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession'; - protected $bucketBySessionDataType = ''; - protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime'; - protected $bucketByTimeDataType = ''; - public $endTimeMillis; - public $startTimeMillis; - - - public function setAggregateBy($aggregateBy) - { - $this->aggregateBy = $aggregateBy; - } - public function getAggregateBy() - { - return $this->aggregateBy; - } - public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment) - { - $this->bucketByActivitySegment = $bucketByActivitySegment; - } - public function getBucketByActivitySegment() - { - return $this->bucketByActivitySegment; - } - public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType) - { - $this->bucketByActivityType = $bucketByActivityType; - } - public function getBucketByActivityType() - { - return $this->bucketByActivityType; - } - public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession) - { - $this->bucketBySession = $bucketBySession; - } - public function getBucketBySession() - { - return $this->bucketBySession; - } - public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime) - { - $this->bucketByTime = $bucketByTime; - } - public function getBucketByTime() - { - return $this->bucketByTime; - } - public function setEndTimeMillis($endTimeMillis) - { - $this->endTimeMillis = $endTimeMillis; - } - public function getEndTimeMillis() - { - return $this->endTimeMillis; - } - public function setStartTimeMillis($startTimeMillis) - { - $this->startTimeMillis = $startTimeMillis; - } - public function getStartTimeMillis() - { - return $this->startTimeMillis; - } -} - -class Google_Service_Fitness_AggregateResponse extends Google_Collection -{ - protected $collection_key = 'bucket'; - protected $internal_gapi_mappings = array( - ); - protected $bucketType = 'Google_Service_Fitness_AggregateBucket'; - protected $bucketDataType = 'array'; - - - public function setBucket($bucket) - { - $this->bucket = $bucket; - } - public function getBucket() - { - return $this->bucket; - } -} - -class Google_Service_Fitness_Application extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $detailsUrl; - public $name; - public $packageName; - public $version; - - - public function setDetailsUrl($detailsUrl) - { - $this->detailsUrl = $detailsUrl; - } - public function getDetailsUrl() - { - return $this->detailsUrl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - public function getPackageName() - { - return $this->packageName; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Fitness_BucketByActivity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activityDataSourceId; - public $minDurationMillis; - - - public function setActivityDataSourceId($activityDataSourceId) - { - $this->activityDataSourceId = $activityDataSourceId; - } - public function getActivityDataSourceId() - { - return $this->activityDataSourceId; - } - public function setMinDurationMillis($minDurationMillis) - { - $this->minDurationMillis = $minDurationMillis; - } - public function getMinDurationMillis() - { - return $this->minDurationMillis; - } -} - -class Google_Service_Fitness_BucketBySession extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $minDurationMillis; - - - public function setMinDurationMillis($minDurationMillis) - { - $this->minDurationMillis = $minDurationMillis; - } - public function getMinDurationMillis() - { - return $this->minDurationMillis; - } -} - -class Google_Service_Fitness_BucketByTime extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $durationMillis; - - - public function setDurationMillis($durationMillis) - { - $this->durationMillis = $durationMillis; - } - public function getDurationMillis() - { - return $this->durationMillis; - } -} - -class Google_Service_Fitness_DataPoint extends Google_Collection -{ - protected $collection_key = 'value'; - protected $internal_gapi_mappings = array( - ); - public $computationTimeMillis; - public $dataTypeName; - public $endTimeNanos; - public $modifiedTimeMillis; - public $originDataSourceId; - public $rawTimestampNanos; - public $startTimeNanos; - protected $valueType = 'Google_Service_Fitness_Value'; - protected $valueDataType = 'array'; - - - public function setComputationTimeMillis($computationTimeMillis) - { - $this->computationTimeMillis = $computationTimeMillis; - } - public function getComputationTimeMillis() - { - return $this->computationTimeMillis; - } - public function setDataTypeName($dataTypeName) - { - $this->dataTypeName = $dataTypeName; - } - public function getDataTypeName() - { - return $this->dataTypeName; - } - public function setEndTimeNanos($endTimeNanos) - { - $this->endTimeNanos = $endTimeNanos; - } - public function getEndTimeNanos() - { - return $this->endTimeNanos; - } - public function setModifiedTimeMillis($modifiedTimeMillis) - { - $this->modifiedTimeMillis = $modifiedTimeMillis; - } - public function getModifiedTimeMillis() - { - return $this->modifiedTimeMillis; - } - public function setOriginDataSourceId($originDataSourceId) - { - $this->originDataSourceId = $originDataSourceId; - } - public function getOriginDataSourceId() - { - return $this->originDataSourceId; - } - public function setRawTimestampNanos($rawTimestampNanos) - { - $this->rawTimestampNanos = $rawTimestampNanos; - } - public function getRawTimestampNanos() - { - return $this->rawTimestampNanos; - } - public function setStartTimeNanos($startTimeNanos) - { - $this->startTimeNanos = $startTimeNanos; - } - public function getStartTimeNanos() - { - return $this->startTimeNanos; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Fitness_DataSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $applicationType = 'Google_Service_Fitness_Application'; - protected $applicationDataType = ''; - public $dataStreamId; - public $dataStreamName; - protected $dataTypeType = 'Google_Service_Fitness_DataType'; - protected $dataTypeDataType = ''; - protected $deviceType = 'Google_Service_Fitness_Device'; - protected $deviceDataType = ''; - public $name; - public $type; - - - public function setApplication(Google_Service_Fitness_Application $application) - { - $this->application = $application; - } - public function getApplication() - { - return $this->application; - } - public function setDataStreamId($dataStreamId) - { - $this->dataStreamId = $dataStreamId; - } - public function getDataStreamId() - { - return $this->dataStreamId; - } - public function setDataStreamName($dataStreamName) - { - $this->dataStreamName = $dataStreamName; - } - public function getDataStreamName() - { - return $this->dataStreamName; - } - public function setDataType(Google_Service_Fitness_DataType $dataType) - { - $this->dataType = $dataType; - } - public function getDataType() - { - return $this->dataType; - } - public function setDevice(Google_Service_Fitness_Device $device) - { - $this->device = $device; - } - public function getDevice() - { - return $this->device; - } - 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_Fitness_DataType extends Google_Collection -{ - protected $collection_key = 'field'; - protected $internal_gapi_mappings = array( - ); - protected $fieldType = 'Google_Service_Fitness_DataTypeField'; - protected $fieldDataType = 'array'; - public $name; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Fitness_DataTypeField extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $format; - public $name; - public $optional; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOptional($optional) - { - $this->optional = $optional; - } - public function getOptional() - { - return $this->optional; - } -} - -class Google_Service_Fitness_Dataset extends Google_Collection -{ - protected $collection_key = 'point'; - protected $internal_gapi_mappings = array( - ); - public $dataSourceId; - public $maxEndTimeNs; - public $minStartTimeNs; - public $nextPageToken; - protected $pointType = 'Google_Service_Fitness_DataPoint'; - protected $pointDataType = 'array'; - - - public function setDataSourceId($dataSourceId) - { - $this->dataSourceId = $dataSourceId; - } - public function getDataSourceId() - { - return $this->dataSourceId; - } - public function setMaxEndTimeNs($maxEndTimeNs) - { - $this->maxEndTimeNs = $maxEndTimeNs; - } - public function getMaxEndTimeNs() - { - return $this->maxEndTimeNs; - } - public function setMinStartTimeNs($minStartTimeNs) - { - $this->minStartTimeNs = $minStartTimeNs; - } - public function getMinStartTimeNs() - { - return $this->minStartTimeNs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPoint($point) - { - $this->point = $point; - } - public function getPoint() - { - return $this->point; - } -} - -class Google_Service_Fitness_Device extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $manufacturer; - public $model; - public $type; - public $uid; - public $version; - - - public function setManufacturer($manufacturer) - { - $this->manufacturer = $manufacturer; - } - public function getManufacturer() - { - return $this->manufacturer; - } - public function setModel($model) - { - $this->model = $model; - } - public function getModel() - { - return $this->model; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUid($uid) - { - $this->uid = $uid; - } - public function getUid() - { - return $this->uid; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection -{ - protected $collection_key = 'dataSource'; - protected $internal_gapi_mappings = array( - ); - protected $dataSourceType = 'Google_Service_Fitness_DataSource'; - protected $dataSourceDataType = 'array'; - - - public function setDataSource($dataSource) - { - $this->dataSource = $dataSource; - } - public function getDataSource() - { - return $this->dataSource; - } -} - -class Google_Service_Fitness_ListSessionsResponse extends Google_Collection -{ - protected $collection_key = 'session'; - protected $internal_gapi_mappings = array( - ); - protected $deletedSessionType = 'Google_Service_Fitness_Session'; - protected $deletedSessionDataType = 'array'; - public $nextPageToken; - protected $sessionType = 'Google_Service_Fitness_Session'; - protected $sessionDataType = 'array'; - - - public function setDeletedSession($deletedSession) - { - $this->deletedSession = $deletedSession; - } - public function getDeletedSession() - { - return $this->deletedSession; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSession($session) - { - $this->session = $session; - } - public function getSession() - { - return $this->session; - } -} - -class Google_Service_Fitness_MapValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $fpVal; - - - public function setFpVal($fpVal) - { - $this->fpVal = $fpVal; - } - public function getFpVal() - { - return $this->fpVal; - } -} - -class Google_Service_Fitness_Session extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activeTimeMillis; - public $activityType; - protected $applicationType = 'Google_Service_Fitness_Application'; - protected $applicationDataType = ''; - public $description; - public $endTimeMillis; - public $id; - public $modifiedTimeMillis; - public $name; - public $startTimeMillis; - - - public function setActiveTimeMillis($activeTimeMillis) - { - $this->activeTimeMillis = $activeTimeMillis; - } - public function getActiveTimeMillis() - { - return $this->activeTimeMillis; - } - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - public function getActivityType() - { - return $this->activityType; - } - public function setApplication(Google_Service_Fitness_Application $application) - { - $this->application = $application; - } - public function getApplication() - { - return $this->application; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEndTimeMillis($endTimeMillis) - { - $this->endTimeMillis = $endTimeMillis; - } - public function getEndTimeMillis() - { - return $this->endTimeMillis; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setModifiedTimeMillis($modifiedTimeMillis) - { - $this->modifiedTimeMillis = $modifiedTimeMillis; - } - public function getModifiedTimeMillis() - { - return $this->modifiedTimeMillis; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setStartTimeMillis($startTimeMillis) - { - $this->startTimeMillis = $startTimeMillis; - } - public function getStartTimeMillis() - { - return $this->startTimeMillis; - } -} - -class Google_Service_Fitness_Value extends Google_Collection -{ - protected $collection_key = 'mapVal'; - protected $internal_gapi_mappings = array( - ); - public $fpVal; - public $intVal; - protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry'; - protected $mapValDataType = 'array'; - public $stringVal; - - - public function setFpVal($fpVal) - { - $this->fpVal = $fpVal; - } - public function getFpVal() - { - return $this->fpVal; - } - public function setIntVal($intVal) - { - $this->intVal = $intVal; - } - public function getIntVal() - { - return $this->intVal; - } - public function setMapVal($mapVal) - { - $this->mapVal = $mapVal; - } - public function getMapVal() - { - return $this->mapVal; - } - public function setStringVal($stringVal) - { - $this->stringVal = $stringVal; - } - public function getStringVal() - { - return $this->stringVal; - } -} - -class Google_Service_Fitness_ValueMapValEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - protected $valueType = 'Google_Service_Fitness_MapValue'; - protected $valueDataType = ''; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValue(Google_Service_Fitness_MapValue $value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} diff --git a/src/Google/Service/Freebase.php b/src/Google/Service/Freebase.php deleted file mode 100644 index 8414387e8..000000000 --- a/src/Google/Service/Freebase.php +++ /dev/null @@ -1,453 +0,0 @@ - - * Find Freebase entities using textual queries and other constraints.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Freebase extends Google_Service -{ - - - - private $base_methods; - - /** - * Constructs the internal representation of the Freebase service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'freebase/v1/'; - $this->version = 'v1'; - $this->serviceName = 'freebase'; - - $this->base_methods = new Google_Service_Resource( - $this, - $this->serviceName, - '', - array( - 'methods' => array( - 'reconcile' => array( - 'path' => 'reconcile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'confidence' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'kind' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'lang' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'prop' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'search' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'as_of_time' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'callback' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cursor' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'encode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'exact' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'help' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'indent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'lang' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mid' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'mql_output' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'output' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'prefixed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scoring' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'spell' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stemmed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'with' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'without' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } - /** - * Reconcile entities to Freebase open data. (reconcile) - * - * @param array $optParams Optional parameters. - * - * @opt_param float confidence Required confidence for a candidate to match. - * Must be between .5 and 1.0 - * @opt_param string kind Classifications of entity e.g. type, category, title. - * @opt_param string lang Languages for names and values. First language is used - * for display. Default is 'en'. - * @opt_param int limit Maximum number of candidates to return. - * @opt_param string name Name of entity. - * @opt_param string prop Property values for entity formatted as : - * @return Google_Service_Freebase_ReconcileGet - */ - public function reconcile($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('reconcile', array($params), "Google_Service_Freebase_ReconcileGet"); - } - /** - * Search Freebase open data. (search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string as_of_time A mql as_of_time value to use with mql_output - * queries. - * @opt_param string callback JS method name for JSONP callbacks. - * @opt_param int cursor The cursor value to use for the next page of results. - * @opt_param string domain Restrict to topics with this Freebase domain id. - * @opt_param string encode The encoding of the response. You can use this - * parameter to enable html encoding. - * @opt_param bool exact Query on exact name and keys only. - * @opt_param string filter A filter to apply to the query. - * @opt_param string format Structural format of the json response. - * @opt_param string help The keyword to request help on. - * @opt_param bool indent Whether to indent the json results or not. - * @opt_param string lang The code of the language to run the query with. - * Default is 'en'. - * @opt_param int limit Maximum number of results to return. - * @opt_param string mid A mid to use instead of a query. - * @opt_param string mql_output The MQL query to run againist the results to - * extract more data. - * @opt_param string output An output expression to request data from matches. - * @opt_param bool prefixed Prefix match against names and aliases. - * @opt_param string query Query term to search for. - * @opt_param string scoring Relevance scoring algorithm to use. - * @opt_param string spell Request 'did you mean' suggestions - * @opt_param bool stemmed Query on stemmed names and aliases. May not be used - * with prefixed. - * @opt_param string type Restrict to topics with this Freebase type id. - * @opt_param string with A rule to match against. - * @opt_param string without A rule to not match against. - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('search', array($params)); - } -} - - - - - -class Google_Service_Freebase_ReconcileCandidate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $confidence; - public $lang; - public $mid; - public $name; - protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable'; - protected $notableDataType = ''; - - - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } - public function getConfidence() - { - return $this->confidence; - } - public function setLang($lang) - { - $this->lang = $lang; - } - public function getLang() - { - return $this->lang; - } - public function setMid($mid) - { - $this->mid = $mid; - } - public function getMid() - { - return $this->mid; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable) - { - $this->notable = $notable; - } - public function getNotable() - { - return $this->notable; - } -} - -class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Freebase_ReconcileGet extends Google_Collection -{ - protected $collection_key = 'warning'; - protected $internal_gapi_mappings = array( - ); - protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate'; - protected $candidateDataType = 'array'; - protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts'; - protected $costsDataType = ''; - protected $matchType = 'Google_Service_Freebase_ReconcileCandidate'; - protected $matchDataType = ''; - protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning'; - protected $warningDataType = 'array'; - - - public function setCandidate($candidate) - { - $this->candidate = $candidate; - } - public function getCandidate() - { - return $this->candidate; - } - public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs) - { - $this->costs = $costs; - } - public function getCosts() - { - return $this->costs; - } - public function setMatch(Google_Service_Freebase_ReconcileCandidate $match) - { - $this->match = $match; - } - public function getMatch() - { - return $this->match; - } - public function setWarning($warning) - { - $this->warning = $warning; - } - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Freebase_ReconcileGetCosts extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hits; - public $ms; - - - public function setHits($hits) - { - $this->hits = $hits; - } - public function getHits() - { - return $this->hits; - } - public function setMs($ms) - { - $this->ms = $ms; - } - public function getMs() - { - return $this->ms; - } -} - -class Google_Service_Freebase_ReconcileGetWarning extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $location; - public $message; - public $reason; - - - 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; - } -} diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php deleted file mode 100644 index 8b2c6498c..000000000 --- a/src/Google/Service/Fusiontables.php +++ /dev/null @@ -1,2485 +0,0 @@ - - * 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 -{ - /** Manage your Fusion Tables. */ - const FUSIONTABLES = - "https://www.googleapis.com/auth/fusiontables"; - /** View your Fusion Tables. */ - const FUSIONTABLES_READONLY = - "https://www.googleapis.com/auth/fusiontables.readonly"; - - public $column; - public $query; - public $style; - public $table; - public $task; - public $template; - - - /** - * Constructs the internal representation of the Fusiontables service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'fusiontables/v2/'; - $this->version = 'v2'; - $this->serviceName = 'fusiontables'; - - $this->column = new Google_Service_Fusiontables_Column_Resource( - $this, - $this->serviceName, - 'column', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/columns', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/columns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->query = new Google_Service_Fusiontables_Query_Resource( - $this, - $this->serviceName, - 'query', - array( - 'methods' => array( - 'sql' => array( - 'path' => 'query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'sql' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hdrs' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'typed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'sqlGet' => array( - 'path' => 'query', - 'httpMethod' => 'GET', - 'parameters' => array( - 'sql' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hdrs' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'typed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->style = new Google_Service_Fusiontables_Style_Resource( - $this, - $this->serviceName, - 'style', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/styles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/styles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->table = new Google_Service_Fusiontables_Table_Resource( - $this, - $this->serviceName, - 'table', - array( - 'methods' => array( - 'copy' => array( - 'path' => 'tables/{tableId}/copy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'copyPresentation' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'importRows' => array( - 'path' => 'tables/{tableId}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'encoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'isStrict' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'importTable' => array( - 'path' => 'tables/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'encoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'tables', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replaceViewDefinition' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'replaceRows' => array( - 'path' => 'tables/{tableId}/replace', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'encoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'isStrict' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replaceViewDefinition' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->task = new Google_Service_Fusiontables_Task_Resource( - $this, - $this->serviceName, - 'task', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/tasks/{taskId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/tasks/{taskId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->template = new Google_Service_Fusiontables_Template_Resource( - $this, - $this->serviceName, - 'template', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/templates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/templates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "column" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $column = $fusiontablesService->column; - * - */ -class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource -{ - - /** - * Deletes the specified column. (column.delete) - * - * @param string $tableId Table from which the column is being deleted. - * @param string $columnId Name or identifier for the column being deleted. - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $columnId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a specific column by its ID. (column.get) - * - * @param string $tableId Table to which the column belongs. - * @param string $columnId Name or identifier for the column that is being - * requested. - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function get($tableId, $columnId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); - } - - /** - * Adds a new column to the table. (column.insert) - * - * @param string $tableId Table for which a new column is being added. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); - } - - /** - * Retrieves a list of columns. (column.listColumn) - * - * @param string $tableId Table whose columns are being listed. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of columns to return. Default is - * 5. - * @opt_param string pageToken Continuation token specifying which result page - * to return. - * @return Google_Service_Fusiontables_ColumnList - */ - public function listColumn($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); - } - - /** - * Updates the name or type of an existing column. This method supports patch - * semantics. (column.patch) - * - * @param string $tableId Table for which the column is being updated. - * @param string $columnId Name or identifier for the column that is being - * updated. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); - } - - /** - * Updates the name or type of an existing column. (column.update) - * - * @param string $tableId Table for which the column is being updated. - * @param string $columnId Name or identifier for the column that is being - * updated. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Column"); - } -} - -/** - * The "query" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $query = $fusiontablesService->query; - * - */ -class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource -{ - - /** - * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT - * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql) - * - * @param string $sql A Fusion Tables SQL statement, which can be any of - - * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE - * @param array $optParams Optional parameters. - * - * @opt_param bool hdrs Whether column names are included in the first row. - * Default is true. - * @opt_param bool typed Whether typed values are 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); - return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse"); - } - - /** - * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE - * (query.sqlGet) - * - * @param string $sql A SQL statement which can be any of - SELECT - SHOW - - * DESCRIBE - * @param array $optParams Optional parameters. - * - * @opt_param bool hdrs Whether column names are included (in the first row). - * Default is true. - * @opt_param bool typed Whether typed values are 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); - return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse"); - } -} - -/** - * The "style" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a specific style. (style.get) - * - * @param string $tableId Table to which the requested style belongs - * @param int $styleId Identifier (integer) for a specific style in a table - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function get($tableId, $styleId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - - /** - * Adds a new style for the table. (style.insert) - * - * @param string $tableId Table for which a new style is being added - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - - /** - * Retrieves a list of styles. (style.listStyle) - * - * @param string $tableId Table whose styles are being listed - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); - } - - /** - * Updates an existing style. This method supports patch semantics. - * (style.patch) - * - * @param string $tableId Table whose style is being updated. - * @param int $styleId Identifier (within a table) for the style being updated. - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - - /** - * Updates an existing style. (style.update) - * - * @param string $tableId Table whose style is being updated. - * @param int $styleId Identifier (within a table) for the style being updated. - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting"); - } -} - -/** - * The "table" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $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); - return $this->call('copy', array($params), "Google_Service_Fusiontables_Table"); - } - - /** - * Deletes a table. (table.delete) - * - * @param string $tableId ID of the table to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a specific table by its ID. (table.get) - * - * @param string $tableId Identifier for the table being requested. - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Table - */ - public function get($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Table"); - } - - /** - * Imports 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 line up to which data will be - * imported. Default is to import the entire file. If endLine is negative, it is - * an offset from the end of the file; the imported content will exclude the - * last endLine lines. - * @opt_param bool isStrict Whether the imported 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); - return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import"); - } - - /** - * Imports a new table. (table.importTable) - * - * @param string $name The name to be assigned to the new table. - * @param array $optParams Optional parameters. - * - * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ,. - * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * auto-detect if you are unsure of the encoding. - * @return Google_Service_Fusiontables_Table - */ - public function importTable($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table"); - } - - /** - * Creates a new table. (table.insert) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Table - */ - public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Table"); - } - - /** - * Retrieves a list of tables a user owns. (table.listTable) - * - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of tables to return. Default is - * 5. - * @opt_param string pageToken Continuation token specifying which result page - * to return. - * @return Google_Service_Fusiontables_TableList - */ - public function listTable($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_TableList"); - } - - /** - * Updates an existing table. Unless explicitly requested, only the name, - * description, and attribution will be updated. This method supports patch - * semantics. (table.patch) - * - * @param string $tableId ID of the table that is being updated. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool replaceViewDefinition Whether the view definition is also - * updated. The specified view definition replaces the existing one. Only a view - * can be updated with a new definition. - * @return Google_Service_Fusiontables_Table - */ - public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Table"); - } - - /** - * Replaces rows of an existing table. Current rows remain visible until all - * replacement rows are ready. (table.replaceRows) - * - * @param string $tableId Table whose rows will be replaced. - * @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 line up to which data will be - * imported. Default is to import the entire file. If endLine is negative, it is - * an offset from the end of the file; the imported content will exclude the - * last endLine lines. - * @opt_param bool isStrict Whether the imported CSV must have the same number - * of column values for each row. If true, throws an exception if the CSV does - * not have the same number of columns. If false, rows with fewer column 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_Task - */ - public function replaceRows($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('replaceRows', array($params), "Google_Service_Fusiontables_Task"); - } - - /** - * 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 Whether the view definition is also - * updated. The specified view definition replaces the existing one. Only a view - * can be updated with a new definition. - * @return Google_Service_Fusiontables_Table - */ - public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Table"); - } -} - -/** - * The "task" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $task = $fusiontablesService->task; - * - */ -class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource -{ - - /** - * Deletes a specific task by its ID, unless that task has already started - * running. (task.delete) - * - * @param string $tableId Table from which the task is being deleted. - * @param string $taskId The identifier of the task to delete. - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $taskId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'taskId' => $taskId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a specific task by its ID. (task.get) - * - * @param string $tableId Table to which the task belongs. - * @param string $taskId The identifier of the task to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Task - */ - public function get($tableId, $taskId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'taskId' => $taskId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Task"); - } - - /** - * Retrieves a list of tasks. (task.listTask) - * - * @param string $tableId Table whose tasks are being listed. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of tasks to return. Default is 5. - * @opt_param string pageToken Continuation token specifying which result page - * to return. - * @opt_param string startIndex Index of the first result returned in the - * current page. - * @return Google_Service_Fusiontables_TaskList - */ - public function listTask($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList"); - } -} - -/** - * The "template" collection of methods. - * Typical usage is: - * - * $fusiontablesService = new Google_Service_Fusiontables(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a specific template by its id (template.get) - * - * @param string $tableId Table to which the template belongs - * @param int $templateId Identifier for the template that is being requested - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function get($tableId, $templateId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Template"); - } - - /** - * Creates a new template for the table. (template.insert) - * - * @param string $tableId Table for which a new template is being created - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Template"); - } - - /** - * Retrieves a list of templates. (template.listTemplate) - * - * @param string $tableId Identifier for the table whose templates are being - * requested - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList"); - } - - /** - * Updates an existing template. This method supports patch semantics. - * (template.patch) - * - * @param string $tableId Table to which the updated template belongs - * @param int $templateId Identifier for the template that is being updated - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Template"); - } - - /** - * Updates an existing template (template.update) - * - * @param string $tableId Table to which the updated template belongs - * @param int $templateId Identifier for the template that is being updated - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Template"); - } -} - - - - -class Google_Service_Fusiontables_Bucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Collection -{ - protected $collection_key = 'validValues'; - protected $internal_gapi_mappings = array( - ); - protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; - protected $baseColumnDataType = ''; - public $columnId; - public $columnJsonSchema; - public $columnPropertiesJson; - public $description; - public $formatPattern; - public $graphPredicate; - public $kind; - public $name; - public $type; - public $validValues; - public $validateData; - - - 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 setColumnJsonSchema($columnJsonSchema) - { - $this->columnJsonSchema = $columnJsonSchema; - } - public function getColumnJsonSchema() - { - return $this->columnJsonSchema; - } - public function setColumnPropertiesJson($columnPropertiesJson) - { - $this->columnPropertiesJson = $columnPropertiesJson; - } - public function getColumnPropertiesJson() - { - return $this->columnPropertiesJson; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFormatPattern($formatPattern) - { - $this->formatPattern = $formatPattern; - } - public function getFormatPattern() - { - return $this->formatPattern; - } - public function setGraphPredicate($graphPredicate) - { - $this->graphPredicate = $graphPredicate; - } - public function getGraphPredicate() - { - return $this->graphPredicate; - } - 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; - } - public function setValidValues($validValues) - { - $this->validValues = $validValues; - } - public function getValidValues() - { - return $this->validValues; - } - public function setValidateData($validateData) - { - $this->validateData = $validateData; - } - public function getValidateData() - { - return $this->validateData; - } -} - -class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Fusiontables_Column'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Fusiontables_Geometry extends Google_Collection -{ - protected $collection_key = 'geometries'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $strokeColor; - protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeColorStylerDataType = ''; - public $strokeOpacity; - public $strokeWeight; - protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeWeightStylerDataType = ''; - - - public function setStrokeColor($strokeColor) - { - $this->strokeColor = $strokeColor; - } - public function 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 -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $iconName; - protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $iconStylerDataType = ''; - - - 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 -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $fillColor; - protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $fillColorStylerDataType = ''; - public $fillOpacity; - public $strokeColor; - protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeColorStylerDataType = ''; - public $strokeOpacity; - public $strokeWeight; - protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeWeightStylerDataType = ''; - - - public function setFillColor($fillColor) - { - $this->fillColor = $fillColor; - } - public function 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 -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'buckets'; - protected $internal_gapi_mappings = array( - ); - protected $bucketsType = 'Google_Service_Fusiontables_Bucket'; - protected $bucketsDataType = 'array'; - public $columnName; - protected $gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient'; - protected $gradientDataType = ''; - public $kind; - - - public function setBuckets($buckets) - { - $this->buckets = $buckets; - } - public function 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 $collection_key = 'colors'; - protected $internal_gapi_mappings = array( - ); - protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors'; - protected $colorsDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle'; - protected $markerOptionsDataType = ''; - public $name; - protected $polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle'; - protected $polygonOptionsDataType = ''; - protected $polylineOptionsType = 'Google_Service_Fusiontables_LineStyle'; - protected $polylineOptionsDataType = ''; - public $styleId; - public $tableId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Fusiontables_StyleSetting'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Fusiontables_Table extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - public $attribution; - public $attributionLink; - public $baseTableIds; - public $columnPropertiesJsonSchema; - protected $columnsType = 'Google_Service_Fusiontables_Column'; - protected $columnsDataType = 'array'; - public $description; - public $isExportable; - public $kind; - public $name; - public $sql; - public $tableId; - public $tablePropertiesJson; - public $tablePropertiesJsonSchema; - - - 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 setColumnPropertiesJsonSchema($columnPropertiesJsonSchema) - { - $this->columnPropertiesJsonSchema = $columnPropertiesJsonSchema; - } - public function getColumnPropertiesJsonSchema() - { - return $this->columnPropertiesJsonSchema; - } - 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; - } - public function setTablePropertiesJson($tablePropertiesJson) - { - $this->tablePropertiesJson = $tablePropertiesJson; - } - public function getTablePropertiesJson() - { - return $this->tablePropertiesJson; - } - public function setTablePropertiesJsonSchema($tablePropertiesJsonSchema) - { - $this->tablePropertiesJsonSchema = $tablePropertiesJsonSchema; - } - public function getTablePropertiesJsonSchema() - { - return $this->tablePropertiesJsonSchema; - } -} - -class Google_Service_Fusiontables_TableList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Fusiontables_Table'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Fusiontables_Task extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $progress; - public $started; - public $taskId; - public $type; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setStarted($started) - { - $this->started = $started; - } - public function getStarted() - { - return $this->started; - } - public function setTaskId($taskId) - { - $this->taskId = $taskId; - } - public function getTaskId() - { - return $this->taskId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Fusiontables_TaskList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Fusiontables_Task'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Fusiontables_Template extends Google_Collection -{ - protected $collection_key = 'automaticColumnNames'; - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Fusiontables_Template'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} diff --git a/src/Google/Service/Games.php b/src/Google/Service/Games.php deleted file mode 100644 index b934ac4ac..000000000 --- a/src/Google/Service/Games.php +++ /dev/null @@ -1,7503 +0,0 @@ - - * The API for Google Play Game Services.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Games extends Google_Service -{ - /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = - "https://www.googleapis.com/auth/drive.appdata"; - /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = - "https://www.googleapis.com/auth/games"; - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - - public $achievementDefinitions; - public $achievements; - public $applications; - public $events; - public $leaderboards; - public $metagame; - public $players; - public $pushtokens; - public $questMilestones; - public $quests; - public $revisions; - public $rooms; - public $scores; - public $snapshots; - public $turnBasedMatches; - - - /** - * Constructs the internal representation of the Games service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'games/v1/'; - $this->version = 'v1'; - $this->serviceName = 'games'; - - $this->achievementDefinitions = new Google_Service_Games_AchievementDefinitions_Resource( - $this, - $this->serviceName, - 'achievementDefinitions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'achievements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->achievements = new Google_Service_Games_Achievements_Resource( - $this, - $this->serviceName, - 'achievements', - array( - 'methods' => array( - 'increment' => array( - 'path' => 'achievements/{achievementId}/increment', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'stepsToIncrement' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/achievements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'state' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'reveal' => array( - 'path' => 'achievements/{achievementId}/reveal', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setStepsAtLeast' => array( - 'path' => 'achievements/{achievementId}/setStepsAtLeast', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'steps' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'unlock' => array( - 'path' => 'achievements/{achievementId}/unlock', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateMultiple' => array( - 'path' => 'achievements/updateMultiple', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->applications = new Google_Service_Games_Applications_Resource( - $this, - $this->serviceName, - 'applications', - array( - 'methods' => array( - 'get' => array( - 'path' => 'applications/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'platformType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'played' => array( - 'path' => 'applications/played', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verify' => array( - 'path' => 'applications/{applicationId}/verify', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->events = new Google_Service_Games_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'listByPlayer' => array( - 'path' => 'events', - 'httpMethod' => 'GET', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listDefinitions' => array( - 'path' => 'eventDefinitions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'record' => array( - 'path' => 'events', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->leaderboards = new Google_Service_Games_Leaderboards_Resource( - $this, - $this->serviceName, - 'leaderboards', - array( - 'methods' => array( - 'get' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'leaderboards', - 'httpMethod' => 'GET', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->metagame = new Google_Service_Games_Metagame_Resource( - $this, - $this->serviceName, - 'metagame', - array( - 'methods' => array( - 'getMetagameConfig' => array( - 'path' => 'metagameConfig', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'listCategoriesByPlayer' => array( - 'path' => 'players/{playerId}/categories/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->players = new Google_Service_Games_Players_Resource( - $this, - $this->serviceName, - 'players', - array( - 'methods' => array( - 'get' => array( - 'path' => 'players/{playerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/me/players/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->pushtokens = new Google_Service_Games_Pushtokens_Resource( - $this, - $this->serviceName, - 'pushtokens', - array( - 'methods' => array( - 'remove' => array( - 'path' => 'pushtokens/remove', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'pushtokens', - 'httpMethod' => 'PUT', - 'parameters' => array(), - ), - ) - ) - ); - $this->questMilestones = new Google_Service_Games_QuestMilestones_Resource( - $this, - $this->serviceName, - 'questMilestones', - array( - 'methods' => array( - 'claim' => array( - 'path' => 'quests/{questId}/milestones/{milestoneId}/claim', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'milestoneId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->quests = new Google_Service_Games_Quests_Resource( - $this, - $this->serviceName, - 'quests', - array( - 'methods' => array( - 'accept' => array( - 'path' => 'quests/{questId}/accept', - 'httpMethod' => 'POST', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/quests', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->revisions = new Google_Service_Games_Revisions_Resource( - $this, - $this->serviceName, - 'revisions', - array( - 'methods' => array( - 'check' => array( - 'path' => 'revisions/check', - 'httpMethod' => 'GET', - 'parameters' => array( - 'clientRevision' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rooms = new Google_Service_Games_Rooms_Resource( - $this, - $this->serviceName, - 'rooms', - array( - 'methods' => array( - 'create' => array( - 'path' => 'rooms/create', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'decline' => array( - 'path' => 'rooms/{roomId}/decline', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'rooms/{roomId}/dismiss', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rooms/{roomId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'join' => array( - 'path' => 'rooms/{roomId}/join', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leave' => array( - 'path' => 'rooms/{roomId}/leave', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'rooms', - 'httpMethod' => 'GET', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'reportStatus' => array( - 'path' => 'rooms/{roomId}/reportstatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->scores = new Google_Service_Games_Scores_Resource( - $this, - $this->serviceName, - 'scores', - array( - 'methods' => array( - 'get' => array( - 'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeRankType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listWindow' => array( - 'path' => 'leaderboards/{leaderboardId}/window/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'resultsAbove' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'returnTopIfAbsent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'submit' => array( - 'path' => 'leaderboards/{leaderboardId}/scores', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'score' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scoreTag' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submitMultiple' => array( - 'path' => 'leaderboards/scores', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Games_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'get' => array( - 'path' => 'snapshots/{snapshotId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'snapshotId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->turnBasedMatches = new Google_Service_Games_TurnBasedMatches_Resource( - $this, - $this->serviceName, - 'turnBasedMatches', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'turnbasedmatches/{matchId}/cancel', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'turnbasedmatches/create', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'decline' => array( - 'path' => 'turnbasedmatches/{matchId}/decline', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'turnbasedmatches/{matchId}/dismiss', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'finish' => array( - 'path' => 'turnbasedmatches/{matchId}/finish', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'turnbasedmatches/{matchId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'join' => array( - 'path' => 'turnbasedmatches/{matchId}/join', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leave' => array( - 'path' => 'turnbasedmatches/{matchId}/leave', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leaveTurn' => array( - 'path' => 'turnbasedmatches/{matchId}/leaveTurn', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'matchVersion' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pendingParticipantId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'turnbasedmatches', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxCompletedMatches' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rematch' => array( - 'path' => 'turnbasedmatches/{matchId}/rematch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'sync' => array( - 'path' => 'turnbasedmatches/sync', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxCompletedMatches' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'takeTurn' => array( - 'path' => 'turnbasedmatches/{matchId}/turn', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "achievementDefinitions" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $achievementDefinitions = $gamesService->achievementDefinitions; - * - */ -class Google_Service_Games_AchievementDefinitions_Resource extends Google_Service_Resource -{ - - /** - * Lists all the achievement definitions for your application. - * (achievementDefinitions.listAchievementDefinitions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of achievement resources to - * return in the response, used for paging. For any response, the actual number - * of achievement resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_AchievementDefinitionsListResponse - */ - public function listAchievementDefinitions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_AchievementDefinitionsListResponse"); - } -} - -/** - * The "achievements" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $achievements = $gamesService->achievements; - * - */ -class Google_Service_Games_Achievements_Resource extends Google_Service_Resource -{ - - /** - * Increments the steps of the achievement with the given ID for the currently - * authenticated player. (achievements.increment) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param int $stepsToIncrement The number of steps to increment. - * @param array $optParams Optional parameters. - * - * @opt_param string requestId A randomly generated numeric ID for each request - * specified by the caller. This number is used at the server to ensure that the - * request is handled correctly across retries. - * @return Google_Service_Games_AchievementIncrementResponse - */ - public function increment($achievementId, $stepsToIncrement, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement); - $params = array_merge($params, $optParams); - return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse"); - } - - /** - * Lists the progress for all your application's achievements for the currently - * authenticated player. (achievements.listAchievements) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of achievement resources to - * return in the response, used for paging. For any response, the actual number - * of achievement resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @opt_param string state Tells the server to return only achievements with the - * specified state. If this parameter isn't specified, all achievements are - * returned. - * @return Google_Service_Games_PlayerAchievementListResponse - */ - public function listAchievements($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse"); - } - - /** - * Sets the state of the achievement with the given ID to REVEALED for the - * currently authenticated player. (achievements.reveal) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementRevealResponse - */ - public function reveal($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse"); - } - - /** - * Sets the steps for the currently authenticated player towards unlocking an - * achievement. If the steps parameter is less than the current number of steps - * that the player already gained for the achievement, the achievement is not - * modified. (achievements.setStepsAtLeast) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param int $steps The minimum value to set the steps to. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementSetStepsAtLeastResponse - */ - public function setStepsAtLeast($achievementId, $steps, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'steps' => $steps); - $params = array_merge($params, $optParams); - return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse"); - } - - /** - * Unlocks this achievement for the currently authenticated player. - * (achievements.unlock) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementUnlockResponse - */ - public function unlock($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse"); - } - - /** - * Updates multiple achievements for the currently authenticated player. - * (achievements.updateMultiple) - * - * @param Google_AchievementUpdateMultipleRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementUpdateMultipleResponse - */ - public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateMultiple', array($params), "Google_Service_Games_AchievementUpdateMultipleResponse"); - } -} - -/** - * The "applications" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $applications = $gamesService->applications; - * - */ -class Google_Service_Games_Applications_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the metadata of the application with the given ID. If the requested - * application is not available for the specified platformType, the returned - * response will not include any instance data. (applications.get) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param string platformType Restrict application details returned to the - * specific platform. - * @return Google_Service_Games_Application - */ - public function get($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Application"); - } - - /** - * Indicate that the the currently authenticated user is playing your - * application. (applications.played) - * - * @param array $optParams Optional parameters. - */ - public function played($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('played', array($params)); - } - - /** - * Verifies the auth token provided with this request is for the application - * with the specified ID, and returns the ID of the player it was granted for. - * (applications.verify) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_ApplicationVerifyResponse - */ - public function verify($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('verify', array($params), "Google_Service_Games_ApplicationVerifyResponse"); - } -} - -/** - * The "events" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $events = $gamesService->events; - * - */ -class Google_Service_Games_Events_Resource extends Google_Service_Resource -{ - - /** - * Returns a list showing the current progress on events in this application for - * the currently authenticated user. (events.listByPlayer) - * - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of events to return in the - * response, used for paging. For any response, the actual number of events to - * return may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_PlayerEventListResponse - */ - public function listByPlayer($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse"); - } - - /** - * Returns a list of the event definitions in this application. - * (events.listDefinitions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of event definitions to return - * in the response, used for paging. For any response, the actual number of - * event definitions to return may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_EventDefinitionListResponse - */ - public function listDefinitions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); - } - - /** - * Records a batch of changes to the number of times events have occurred for - * the currently authenticated user of this application. (events.record) - * - * @param Google_EventRecordRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_EventUpdateResponse - */ - public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse"); - } -} - -/** - * The "leaderboards" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $leaderboards = $gamesService->leaderboards; - * - */ -class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the metadata of the leaderboard with the given ID. - * (leaderboards.get) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Leaderboard - */ - public function get($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Leaderboard"); - } - - /** - * Lists all the leaderboard metadata for your application. - * (leaderboards.listLeaderboards) - * - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of leaderboards to return in the - * response. For any response, the actual number of leaderboards returned may be - * less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_LeaderboardListResponse - */ - public function listLeaderboards($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_LeaderboardListResponse"); - } -} - -/** - * The "metagame" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $metagame = $gamesService->metagame; - * - */ -class Google_Service_Games_Metagame_Resource extends Google_Service_Resource -{ - - /** - * Return the metagame configuration data for the calling application. - * (metagame.getMetagameConfig) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Games_MetagameConfig - */ - public function getMetagameConfig($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); - } - - /** - * List play data aggregated per category for the player corresponding to - * playerId. (metagame.listCategoriesByPlayer) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param string $collection The collection of categories for which data will be - * returned. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of category resources to return - * in the response, used for paging. For any response, the actual number of - * category resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_CategoryListResponse - */ - public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) - { - $params = array('playerId' => $playerId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse"); - } -} - -/** - * The "players" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $players = $gamesService->players; - * - */ -class Google_Service_Games_Players_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the Player resource with the given ID. To retrieve the player for - * the currently authenticated user, set playerId to me. (players.get) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Player - */ - public function get($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Player"); - } - - /** - * Get the collection of players for the currently authenticated user. - * (players.listPlayers) - * - * @param string $collection Collection of players being retrieved - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of player resources to return in - * the response, used for paging. For any response, the actual number of player - * resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_PlayerListResponse - */ - public function listPlayers($collection, $optParams = array()) - { - $params = array('collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse"); - } -} - -/** - * The "pushtokens" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $pushtokens = $gamesService->pushtokens; - * - */ -class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource -{ - - /** - * Removes a push token for the current user and application. Removing a non- - * existent push token will report success. (pushtokens.remove) - * - * @param Google_PushTokenId $postBody - * @param array $optParams Optional parameters. - */ - public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } - - /** - * Registers a push token for the current user and application. - * (pushtokens.update) - * - * @param Google_PushToken $postBody - * @param array $optParams Optional parameters. - */ - public function update(Google_Service_Games_PushToken $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params)); - } -} - -/** - * The "questMilestones" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $questMilestones = $gamesService->questMilestones; - * - */ -class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resource -{ - - /** - * Report that a reward for the milestone corresponding to milestoneId for the - * quest corresponding to questId has been claimed by the currently authorized - * user. (questMilestones.claim) - * - * @param string $questId The ID of the quest. - * @param string $milestoneId The ID of the milestone. - * @param string $requestId A numeric ID to ensure that the request is handled - * correctly across retries. Your client application must generate this ID - * randomly. - * @param array $optParams Optional parameters. - */ - public function claim($questId, $milestoneId, $requestId, $optParams = array()) - { - $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId); - $params = array_merge($params, $optParams); - return $this->call('claim', array($params)); - } -} - -/** - * The "quests" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $quests = $gamesService->quests; - * - */ -class Google_Service_Games_Quests_Resource extends Google_Service_Resource -{ - - /** - * Indicates that the currently authorized user will participate in the quest. - * (quests.accept) - * - * @param string $questId The ID of the quest. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Quest - */ - public function accept($questId, $optParams = array()) - { - $params = array('questId' => $questId); - $params = array_merge($params, $optParams); - return $this->call('accept', array($params), "Google_Service_Games_Quest"); - } - - /** - * Get a list of quests for your application and the currently authenticated - * player. (quests.listQuests) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of quest resources to return in - * the response, used for paging. For any response, the actual number of quest - * resources returned may be less than the specified maxResults. Acceptable - * values are 1 to 50, inclusive. (Default: 50). - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_QuestListResponse - */ - public function listQuests($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_QuestListResponse"); - } -} - -/** - * The "revisions" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $revisions = $gamesService->revisions; - * - */ -class Google_Service_Games_Revisions_Resource extends Google_Service_Resource -{ - - /** - * Checks whether the games client is out of date. (revisions.check) - * - * @param string $clientRevision The revision of the client SDK used by your - * application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of - * PLATFORM_TYPE are: - "ANDROID" - Client is running the Android SDK. - - * "IOS" - Client is running the iOS SDK. - "WEB_APP" - Client is running as a - * Web App. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_RevisionCheckResponse - */ - public function check($clientRevision, $optParams = array()) - { - $params = array('clientRevision' => $clientRevision); - $params = array_merge($params, $optParams); - return $this->call('check', array($params), "Google_Service_Games_RevisionCheckResponse"); - } -} - -/** - * The "rooms" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $rooms = $gamesService->rooms; - * - */ -class Google_Service_Games_Rooms_Resource extends Google_Service_Resource -{ - - /** - * Create a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.create) - * - * @param Google_RoomCreateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Room - */ - public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Games_Room"); - } - - /** - * Decline an invitation to join a room. For internal use by the Games SDK only. - * Calling this method directly is unsupported. (rooms.decline) - * - * @param string $roomId The ID of the room. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Room - */ - public function decline($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('decline', array($params), "Google_Service_Games_Room"); - } - - /** - * Dismiss an invitation to join a room. For internal use by the Games SDK only. - * Calling this method directly is unsupported. (rooms.dismiss) - * - * @param string $roomId The ID of the room. - * @param array $optParams Optional parameters. - */ - public function dismiss($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - - /** - * Get the data for a room. (rooms.get) - * - * @param string $roomId The ID of the room. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Room - */ - public function get($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Room"); - } - - /** - * Join a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.join) - * - * @param string $roomId The ID of the room. - * @param Google_RoomJoinRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Room - */ - public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('join', array($params), "Google_Service_Games_Room"); - } - - /** - * Leave a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.leave) - * - * @param string $roomId The ID of the room. - * @param Google_RoomLeaveRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Room - */ - public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('leave', array($params), "Google_Service_Games_Room"); - } - - /** - * Returns invitations to join rooms. (rooms.listRooms) - * - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of rooms to return in the - * response, used for paging. For any response, the actual number of rooms to - * return may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_RoomList - */ - public function listRooms($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_RoomList"); - } - - /** - * Updates sent by a client reporting the status of peers in a room. For - * internal use by the Games SDK only. Calling this method directly is - * unsupported. (rooms.reportStatus) - * - * @param string $roomId The ID of the room. - * @param Google_RoomP2PStatuses $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_RoomStatus - */ - public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportStatus', array($params), "Google_Service_Games_RoomStatus"); - } -} - -/** - * The "scores" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $scores = $gamesService->scores; - * - */ -class Google_Service_Games_Scores_Resource extends Google_Service_Resource -{ - - /** - * Get high scores, and optionally ranks, in leaderboards for the currently - * authenticated player. For a specific time span, leaderboardId can be set to - * ALL to retrieve data for all leaderboards in a given time span. NOTE: You - * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; - * only one parameter may be set to 'ALL'. (scores.get) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param string $leaderboardId The ID of the leaderboard. Can be set to 'ALL' - * to retrieve data for all leaderboards for this application. - * @param string $timeSpan The time span for the scores and ranks you're - * requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string includeRankType The types of ranks to return. If the - * parameter is omitted, no ranks will be returned. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of leaderboard scores to return - * in the response. For any response, the actual number of leaderboard scores - * returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_PlayerLeaderboardScoreListResponse - */ - public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) - { - $params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse"); - } - - /** - * Lists the scores in a leaderboard, starting from the top. (scores.listScores) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param string $collection The collection of scores you're requesting. - * @param string $timeSpan The time span for the scores and ranks you're - * requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of leaderboard scores to return - * in the response. For any response, the actual number of leaderboard scores - * returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_LeaderboardScores - */ - public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores"); - } - - /** - * Lists the scores in a leaderboard around (and including) a player's score. - * (scores.listWindow) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param string $collection The collection of scores you're requesting. - * @param string $timeSpan The time span for the scores and ranks you're - * requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of leaderboard scores to return - * in the response. For any response, the actual number of leaderboard scores - * returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @opt_param int resultsAbove The preferred number of scores to return above - * the player's score. More scores may be returned if the player is at the - * bottom of the leaderboard; fewer may be returned if the player is at the top. - * Must be less than or equal to maxResults. - * @opt_param bool returnTopIfAbsent True if the top scores should be returned - * when the player is not in the leaderboard. Defaults to true. - * @return Google_Service_Games_LeaderboardScores - */ - public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores"); - } - - /** - * Submits a score to the specified leaderboard. (scores.submit) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param string $score The score you're submitting. The submitted score is - * ignored if it is worse than a previously submitted score, where worse depends - * on the leaderboard sort order. The meaning of the score value depends on the - * leaderboard format type. For fixed-point, the score represents the raw value. - * For time, the score represents elapsed time in milliseconds. For currency, - * the score represents a value in micro units. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param string scoreTag Additional information about the score you're - * submitting. Values must contain no more than 64 URI-safe characters as - * defined by section 2.3 of RFC 3986. - * @return Google_Service_Games_PlayerScoreResponse - */ - public function submit($leaderboardId, $score, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'score' => $score); - $params = array_merge($params, $optParams); - return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse"); - } - - /** - * Submits multiple scores to leaderboards. (scores.submitMultiple) - * - * @param Google_PlayerScoreSubmissionList $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_PlayerScoreListResponse - */ - public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('submitMultiple', array($params), "Google_Service_Games_PlayerScoreListResponse"); - } -} - -/** - * The "snapshots" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $snapshots = $gamesService->snapshots; - * - */ -class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource -{ - - /** - * Retrieves the metadata for a given snapshot ID. (snapshots.get) - * - * @param string $snapshotId The ID of the snapshot. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_Snapshot - */ - public function get($snapshotId, $optParams = array()) - { - $params = array('snapshotId' => $snapshotId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Snapshot"); - } - - /** - * Retrieves a list of snapshots created by your application for the player - * corresponding to the player ID. (snapshots.listSnapshots) - * - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxResults The maximum number of snapshot resources to return - * in the response, used for paging. For any response, the actual number of - * snapshot resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_SnapshotListResponse - */ - public function listSnapshots($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse"); - } -} - -/** - * The "turnBasedMatches" collection of methods. - * Typical usage is: - * - * $gamesService = new Google_Service_Games(...); - * $turnBasedMatches = $gamesService->turnBasedMatches; - * - */ -class Google_Service_Games_TurnBasedMatches_Resource extends Google_Service_Resource -{ - - /** - * Cancel a turn-based match. (turnBasedMatches.cancel) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - */ - public function cancel($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - - /** - * Create a turn-based match. (turnBasedMatches.create) - * - * @param Google_TurnBasedMatchCreateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Decline an invitation to play a turn-based match. (turnBasedMatches.decline) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function decline($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Dismiss a turn-based match from the match list. The match will no longer show - * up in the list and will not generate notifications. - * (turnBasedMatches.dismiss) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - */ - public function dismiss($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - - /** - * Finish a turn-based match. Each player should make this call once, after all - * results are in. Only the player whose turn it is may make the first call to - * Finish, and can pass in the final match state. (turnBasedMatches.finish) - * - * @param string $matchId The ID of the match. - * @param Google_TurnBasedMatchResults $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array()) - { - $params = array('matchId' => $matchId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Get the data for a turn-based match. (turnBasedMatches.get) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeMatchData Get match data along with metadata. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function get($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Join a turn-based match. (turnBasedMatches.join) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function join($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Leave a turn-based match when it is not the current player's turn, without - * canceling the match. (turnBasedMatches.leave) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function leave($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Leave a turn-based match during the current player's turn, without canceling - * the match. (turnBasedMatches.leaveTurn) - * - * @param string $matchId The ID of the match. - * @param int $matchVersion The version of the match being updated. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param string pendingParticipantId The ID of another participant who - * should take their turn next. If not set, the match will wait for other - * player(s) to join via automatching; this is only valid if automatch criteria - * is set on the match with remaining slots for automatched players. - * @return Google_Service_Games_TurnBasedMatch - */ - public function leaveTurn($matchId, $matchVersion, $optParams = array()) - { - $params = array('matchId' => $matchId, 'matchVersion' => $matchVersion); - $params = array_merge($params, $optParams); - return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch"); - } - - /** - * Returns turn-based matches the player is or was involved in. - * (turnBasedMatches.listTurnBasedMatches) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeMatchData True if match data should be returned in the - * response. Note that not all data will necessarily be returned if - * include_match_data is true; the server may decide to only return data for - * some of the matches to limit download size for the client. The remainder of - * the data for these matches will be retrievable on request. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxCompletedMatches The maximum number of completed or - * canceled matches to return in the response. If not set, all matches returned - * could be completed or canceled. - * @opt_param int maxResults The maximum number of matches to return in the - * response, used for paging. For any response, the actual number of matches to - * return may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_TurnBasedMatchList - */ - public function listTurnBasedMatches($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList"); - } - - /** - * Create a rematch of a match that was previously completed, with the same - * participants. This can be called by only one player on a match still in their - * list; the player must have called Finish first. Returns the newly created - * match; it will be the caller's turn. (turnBasedMatches.rematch) - * - * @param string $matchId The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param string requestId A randomly generated numeric ID for each request - * specified by the caller. This number is used at the server to ensure that the - * request is handled correctly across retries. - * @return Google_Service_Games_TurnBasedMatchRematch - */ - public function rematch($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch"); - } - - /** - * Returns turn-based matches the player is or was involved in that changed - * since the last sync call, with the least recent changes coming first. Matches - * that should be removed from the local cache will have a status of - * MATCH_DELETED. (turnBasedMatches.sync) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeMatchData True if match data should be returned in the - * response. Note that not all data will necessarily be returned if - * include_match_data is true; the server may decide to only return data for - * some of the matches to limit download size for the client. The remainder of - * the data for these matches will be retrievable on request. - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @opt_param int maxCompletedMatches The maximum number of completed or - * canceled matches to return in the response. If not set, all matches returned - * could be completed or canceled. - * @opt_param int maxResults The maximum number of matches to return in the - * response, used for paging. For any response, the actual number of matches to - * return may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_Games_TurnBasedMatchSync - */ - public function sync($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync"); - } - - /** - * Commit the results of a player turn. (turnBasedMatches.takeTurn) - * - * @param string $matchId The ID of the match. - * @param Google_TurnBasedMatchTurn $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language The preferred language to use for strings returned - * by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array()) - { - $params = array('matchId' => $matchId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('takeTurn', array($params), "Google_Service_Games_TurnBasedMatch"); - } -} - - - - -class Google_Service_Games_AchievementDefinition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $achievementType; - public $description; - public $experiencePoints; - public $formattedTotalSteps; - public $id; - public $initialState; - public $isRevealedIconUrlDefault; - public $isUnlockedIconUrlDefault; - public $kind; - public $name; - public $revealedIconUrl; - public $totalSteps; - public $unlockedIconUrl; - - - public function setAchievementType($achievementType) - { - $this->achievementType = $achievementType; - } - public function getAchievementType() - { - return $this->achievementType; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - public function getExperiencePoints() - { - return $this->experiencePoints; - } - public function setFormattedTotalSteps($formattedTotalSteps) - { - $this->formattedTotalSteps = $formattedTotalSteps; - } - public function getFormattedTotalSteps() - { - return $this->formattedTotalSteps; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInitialState($initialState) - { - $this->initialState = $initialState; - } - public function getInitialState() - { - return $this->initialState; - } - public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault) - { - $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault; - } - public function getIsRevealedIconUrlDefault() - { - return $this->isRevealedIconUrlDefault; - } - public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault) - { - $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault; - } - public function getIsUnlockedIconUrlDefault() - { - return $this->isUnlockedIconUrlDefault; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRevealedIconUrl($revealedIconUrl) - { - $this->revealedIconUrl = $revealedIconUrl; - } - public function getRevealedIconUrl() - { - return $this->revealedIconUrl; - } - public function setTotalSteps($totalSteps) - { - $this->totalSteps = $totalSteps; - } - public function getTotalSteps() - { - return $this->totalSteps; - } - public function setUnlockedIconUrl($unlockedIconUrl) - { - $this->unlockedIconUrl = $unlockedIconUrl; - } - public function getUnlockedIconUrl() - { - return $this->unlockedIconUrl; - } -} - -class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_AchievementDefinition'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_AchievementIncrementResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentSteps; - public $kind; - public $newlyUnlocked; - - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - public function getCurrentSteps() - { - return $this->currentSteps; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } -} - -class Google_Service_Games_AchievementRevealResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentState; - public $kind; - - - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - public function getCurrentState() - { - return $this->currentState; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentSteps; - public $kind; - public $newlyUnlocked; - - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - public function getCurrentSteps() - { - return $this->currentSteps; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } -} - -class Google_Service_Games_AchievementUnlockResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $newlyUnlocked; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } -} - -class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection -{ - protected $collection_key = 'updates'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; - protected $updatesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdates($updates) - { - $this->updates = $updates; - } - public function getUpdates() - { - return $this->updates; - } -} - -class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection -{ - protected $collection_key = 'updatedAchievements'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; - protected $updatedAchievementsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdatedAchievements($updatedAchievements) - { - $this->updatedAchievements = $updatedAchievements; - } - public function getUpdatedAchievements() - { - return $this->updatedAchievements; - } -} - -class Google_Service_Games_AchievementUpdateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $achievementId; - protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement'; - protected $incrementPayloadDataType = ''; - public $kind; - protected $setStepsAtLeastPayloadType = 'Google_Service_Games_GamesAchievementSetStepsAtLeast'; - protected $setStepsAtLeastPayloadDataType = ''; - public $updateType; - - - public function setAchievementId($achievementId) - { - $this->achievementId = $achievementId; - } - public function getAchievementId() - { - return $this->achievementId; - } - public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload) - { - $this->incrementPayload = $incrementPayload; - } - public function getIncrementPayload() - { - return $this->incrementPayload; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload) - { - $this->setStepsAtLeastPayload = $setStepsAtLeastPayload; - } - public function getSetStepsAtLeastPayload() - { - return $this->setStepsAtLeastPayload; - } - public function setUpdateType($updateType) - { - $this->updateType = $updateType; - } - public function getUpdateType() - { - return $this->updateType; - } -} - -class Google_Service_Games_AchievementUpdateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $achievementId; - public $currentState; - public $currentSteps; - public $kind; - public $newlyUnlocked; - public $updateOccurred; - - - public function setAchievementId($achievementId) - { - $this->achievementId = $achievementId; - } - public function getAchievementId() - { - return $this->achievementId; - } - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - public function getCurrentState() - { - return $this->currentState; - } - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - public function getCurrentSteps() - { - return $this->currentSteps; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } - public function setUpdateOccurred($updateOccurred) - { - $this->updateOccurred = $updateOccurred; - } - public function getUpdateOccurred() - { - return $this->updateOccurred; - } -} - -class Google_Service_Games_AggregateStats extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $kind; - public $max; - public $min; - public $sum; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMax($max) - { - $this->max = $max; - } - public function getMax() - { - return $this->max; - } - public function setMin($min) - { - $this->min = $min; - } - public function getMin() - { - return $this->min; - } - public function setSum($sum) - { - $this->sum = $sum; - } - public function getSum() - { - return $this->sum; - } -} - -class Google_Service_Games_AnonymousPlayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $avatarImageUrl; - public $displayName; - public $kind; - - - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_Application extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - "achievementCount" => "achievement_count", - "leaderboardCount" => "leaderboard_count", - ); - public $achievementCount; - protected $assetsType = 'Google_Service_Games_ImageAsset'; - protected $assetsDataType = 'array'; - public $author; - protected $categoryType = 'Google_Service_Games_ApplicationCategory'; - protected $categoryDataType = ''; - public $description; - public $enabledFeatures; - public $id; - protected $instancesType = 'Google_Service_Games_Instance'; - protected $instancesDataType = 'array'; - public $kind; - public $lastUpdatedTimestamp; - public $leaderboardCount; - public $name; - public $themeColor; - - - public function setAchievementCount($achievementCount) - { - $this->achievementCount = $achievementCount; - } - public function getAchievementCount() - { - return $this->achievementCount; - } - public function setAssets($assets) - { - $this->assets = $assets; - } - public function getAssets() - { - return $this->assets; - } - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setCategory(Google_Service_Games_ApplicationCategory $category) - { - $this->category = $category; - } - public function getCategory() - { - return $this->category; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEnabledFeatures($enabledFeatures) - { - $this->enabledFeatures = $enabledFeatures; - } - public function getEnabledFeatures() - { - return $this->enabledFeatures; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) - { - $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; - } - public function getLastUpdatedTimestamp() - { - return $this->lastUpdatedTimestamp; - } - public function setLeaderboardCount($leaderboardCount) - { - $this->leaderboardCount = $leaderboardCount; - } - public function getLeaderboardCount() - { - return $this->leaderboardCount; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setThemeColor($themeColor) - { - $this->themeColor = $themeColor; - } - public function getThemeColor() - { - return $this->themeColor; - } -} - -class Google_Service_Games_ApplicationCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $primary; - public $secondary; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setSecondary($secondary) - { - $this->secondary = $secondary; - } - public function getSecondary() - { - return $this->secondary; - } -} - -class Google_Service_Games_ApplicationVerifyResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - "playerId" => "player_id", - ); - public $kind; - public $playerId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - public function getPlayerId() - { - return $this->playerId; - } -} - -class Google_Service_Games_Category extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $category; - public $experiencePoints; - public $kind; - - - public function setCategory($category) - { - $this->category = $category; - } - public function getCategory() - { - return $this->category; - } - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - public function getExperiencePoints() - { - return $this->experiencePoints; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_CategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Category'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_EventBatchRecordFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $failureCause; - public $kind; - protected $rangeType = 'Google_Service_Games_EventPeriodRange'; - protected $rangeDataType = ''; - - - public function setFailureCause($failureCause) - { - $this->failureCause = $failureCause; - } - public function getFailureCause() - { - return $this->failureCause; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRange(Google_Service_Games_EventPeriodRange $range) - { - $this->range = $range; - } - public function getRange() - { - return $this->range; - } -} - -class Google_Service_Games_EventChild extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $childId; - public $kind; - - - public function setChildId($childId) - { - $this->childId = $childId; - } - public function getChildId() - { - return $this->childId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_EventDefinition extends Google_Collection -{ - protected $collection_key = 'childEvents'; - protected $internal_gapi_mappings = array( - ); - protected $childEventsType = 'Google_Service_Games_EventChild'; - protected $childEventsDataType = 'array'; - public $description; - public $displayName; - public $id; - public $imageUrl; - public $isDefaultImageUrl; - public $kind; - public $visibility; - - - public function setChildEvents($childEvents) - { - $this->childEvents = $childEvents; - } - public function getChildEvents() - { - return $this->childEvents; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setIsDefaultImageUrl($isDefaultImageUrl) - { - $this->isDefaultImageUrl = $isDefaultImageUrl; - } - public function getIsDefaultImageUrl() - { - return $this->isDefaultImageUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_Games_EventDefinitionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_EventDefinition'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_EventPeriodRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $periodEndMillis; - public $periodStartMillis; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPeriodEndMillis($periodEndMillis) - { - $this->periodEndMillis = $periodEndMillis; - } - public function getPeriodEndMillis() - { - return $this->periodEndMillis; - } - public function setPeriodStartMillis($periodStartMillis) - { - $this->periodStartMillis = $periodStartMillis; - } - public function getPeriodStartMillis() - { - return $this->periodStartMillis; - } -} - -class Google_Service_Games_EventPeriodUpdate extends Google_Collection -{ - protected $collection_key = 'updates'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; - protected $timePeriodDataType = ''; - protected $updatesType = 'Google_Service_Games_EventUpdateRequest'; - protected $updatesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) - { - $this->timePeriod = $timePeriod; - } - public function getTimePeriod() - { - return $this->timePeriod; - } - public function setUpdates($updates) - { - $this->updates = $updates; - } - public function getUpdates() - { - return $this->updates; - } -} - -class Google_Service_Games_EventRecordFailure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $eventId; - public $failureCause; - public $kind; - - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setFailureCause($failureCause) - { - $this->failureCause = $failureCause; - } - public function getFailureCause() - { - return $this->failureCause; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_EventRecordRequest extends Google_Collection -{ - protected $collection_key = 'timePeriods'; - protected $internal_gapi_mappings = array( - ); - public $currentTimeMillis; - public $kind; - public $requestId; - protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate'; - protected $timePeriodsDataType = 'array'; - - - public function setCurrentTimeMillis($currentTimeMillis) - { - $this->currentTimeMillis = $currentTimeMillis; - } - public function getCurrentTimeMillis() - { - return $this->currentTimeMillis; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setTimePeriods($timePeriods) - { - $this->timePeriods = $timePeriods; - } - public function getTimePeriods() - { - return $this->timePeriods; - } -} - -class Google_Service_Games_EventUpdateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $definitionId; - public $kind; - public $updateCount; - - - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - public function getDefinitionId() - { - return $this->definitionId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdateCount($updateCount) - { - $this->updateCount = $updateCount; - } - public function getUpdateCount() - { - return $this->updateCount; - } -} - -class Google_Service_Games_EventUpdateResponse extends Google_Collection -{ - protected $collection_key = 'playerEvents'; - protected $internal_gapi_mappings = array( - ); - protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; - protected $batchFailuresDataType = 'array'; - protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; - protected $eventFailuresDataType = 'array'; - public $kind; - protected $playerEventsType = 'Google_Service_Games_PlayerEvent'; - protected $playerEventsDataType = 'array'; - - - public function setBatchFailures($batchFailures) - { - $this->batchFailures = $batchFailures; - } - public function getBatchFailures() - { - return $this->batchFailures; - } - public function setEventFailures($eventFailures) - { - $this->eventFailures = $eventFailures; - } - public function getEventFailures() - { - return $this->eventFailures; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayerEvents($playerEvents) - { - $this->playerEvents = $playerEvents; - } - public function getPlayerEvents() - { - return $this->playerEvents; - } -} - -class Google_Service_Games_GamesAchievementIncrement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $requestId; - public $steps; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } -} - -class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $steps; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSteps($steps) - { - $this->steps = $steps; - } - public function getSteps() - { - return $this->steps; - } -} - -class Google_Service_Games_ImageAsset extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $kind; - public $name; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Games_Instance extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $acquisitionUri; - protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; - protected $androidInstanceDataType = ''; - protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails'; - protected $iosInstanceDataType = ''; - public $kind; - public $name; - public $platformType; - public $realtimePlay; - public $turnBasedPlay; - protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; - protected $webInstanceDataType = ''; - - - public function setAcquisitionUri($acquisitionUri) - { - $this->acquisitionUri = $acquisitionUri; - } - public function getAcquisitionUri() - { - return $this->acquisitionUri; - } - public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) - { - $this->androidInstance = $androidInstance; - } - public function getAndroidInstance() - { - return $this->androidInstance; - } - public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) - { - $this->iosInstance = $iosInstance; - } - public function getIosInstance() - { - return $this->iosInstance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPlatformType($platformType) - { - $this->platformType = $platformType; - } - public function getPlatformType() - { - return $this->platformType; - } - public function setRealtimePlay($realtimePlay) - { - $this->realtimePlay = $realtimePlay; - } - public function getRealtimePlay() - { - return $this->realtimePlay; - } - public function setTurnBasedPlay($turnBasedPlay) - { - $this->turnBasedPlay = $turnBasedPlay; - } - public function getTurnBasedPlay() - { - return $this->turnBasedPlay; - } - public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) - { - $this->webInstance = $webInstance; - } - public function getWebInstance() - { - return $this->webInstance; - } -} - -class Google_Service_Games_InstanceAndroidDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $enablePiracyCheck; - public $kind; - public $packageName; - public $preferred; - - - public function setEnablePiracyCheck($enablePiracyCheck) - { - $this->enablePiracyCheck = $enablePiracyCheck; - } - public function getEnablePiracyCheck() - { - return $this->enablePiracyCheck; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - public function getPackageName() - { - return $this->packageName; - } - public function setPreferred($preferred) - { - $this->preferred = $preferred; - } - public function getPreferred() - { - return $this->preferred; - } -} - -class Google_Service_Games_InstanceIosDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bundleIdentifier; - public $itunesAppId; - public $kind; - public $preferredForIpad; - public $preferredForIphone; - public $supportIpad; - public $supportIphone; - - - public function setBundleIdentifier($bundleIdentifier) - { - $this->bundleIdentifier = $bundleIdentifier; - } - public function getBundleIdentifier() - { - return $this->bundleIdentifier; - } - public function setItunesAppId($itunesAppId) - { - $this->itunesAppId = $itunesAppId; - } - public function getItunesAppId() - { - return $this->itunesAppId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPreferredForIpad($preferredForIpad) - { - $this->preferredForIpad = $preferredForIpad; - } - public function getPreferredForIpad() - { - return $this->preferredForIpad; - } - public function setPreferredForIphone($preferredForIphone) - { - $this->preferredForIphone = $preferredForIphone; - } - public function getPreferredForIphone() - { - return $this->preferredForIphone; - } - public function setSupportIpad($supportIpad) - { - $this->supportIpad = $supportIpad; - } - public function getSupportIpad() - { - return $this->supportIpad; - } - public function setSupportIphone($supportIphone) - { - $this->supportIphone = $supportIphone; - } - public function getSupportIphone() - { - return $this->supportIphone; - } -} - -class Google_Service_Games_InstanceWebDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $launchUrl; - public $preferred; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLaunchUrl($launchUrl) - { - $this->launchUrl = $launchUrl; - } - public function getLaunchUrl() - { - return $this->launchUrl; - } - public function setPreferred($preferred) - { - $this->preferred = $preferred; - } - public function getPreferred() - { - return $this->preferred; - } -} - -class Google_Service_Games_Leaderboard extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $iconUrl; - public $id; - public $isIconUrlDefault; - public $kind; - public $name; - public $order; - - - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsIconUrlDefault($isIconUrlDefault) - { - $this->isIconUrlDefault = $isIconUrlDefault; - } - public function getIsIconUrlDefault() - { - return $this->isIconUrlDefault; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOrder($order) - { - $this->order = $order; - } - public function getOrder() - { - return $this->order; - } -} - -class Google_Service_Games_LeaderboardEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedScore; - public $formattedScoreRank; - public $kind; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $scoreRank; - public $scoreTag; - public $scoreValue; - public $timeSpan; - public $writeTimestampMillis; - - - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - public function getFormattedScore() - { - return $this->formattedScore; - } - public function setFormattedScoreRank($formattedScoreRank) - { - $this->formattedScoreRank = $formattedScoreRank; - } - public function getFormattedScoreRank() - { - return $this->formattedScoreRank; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - public function getPlayer() - { - return $this->player; - } - public function setScoreRank($scoreRank) - { - $this->scoreRank = $scoreRank; - } - public function getScoreRank() - { - return $this->scoreRank; - } - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - public function getScoreTag() - { - return $this->scoreTag; - } - public function setScoreValue($scoreValue) - { - $this->scoreValue = $scoreValue; - } - public function getScoreValue() - { - return $this->scoreValue; - } - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } - public function setWriteTimestampMillis($writeTimestampMillis) - { - $this->writeTimestampMillis = $writeTimestampMillis; - } - public function getWriteTimestampMillis() - { - return $this->writeTimestampMillis; - } -} - -class Google_Service_Games_LeaderboardListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Leaderboard'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_LeaderboardScoreRank extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedNumScores; - public $formattedRank; - public $kind; - public $numScores; - public $rank; - - - public function setFormattedNumScores($formattedNumScores) - { - $this->formattedNumScores = $formattedNumScores; - } - public function getFormattedNumScores() - { - return $this->formattedNumScores; - } - public function setFormattedRank($formattedRank) - { - $this->formattedRank = $formattedRank; - } - public function getFormattedRank() - { - return $this->formattedRank; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNumScores($numScores) - { - $this->numScores = $numScores; - } - public function getNumScores() - { - return $this->numScores; - } - public function setRank($rank) - { - $this->rank = $rank; - } - public function getRank() - { - return $this->rank; - } -} - -class Google_Service_Games_LeaderboardScores extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $numScores; - protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry'; - protected $playerScoreDataType = ''; - public $prevPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setNumScores($numScores) - { - $this->numScores = $numScores; - } - public function getNumScores() - { - return $this->numScores; - } - public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) - { - $this->playerScore = $playerScore; - } - public function getPlayerScore() - { - return $this->playerScore; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } -} - -class Google_Service_Games_MetagameConfig extends Google_Collection -{ - protected $collection_key = 'playerLevels'; - protected $internal_gapi_mappings = array( - ); - public $currentVersion; - public $kind; - protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; - protected $playerLevelsDataType = 'array'; - - - public function setCurrentVersion($currentVersion) - { - $this->currentVersion = $currentVersion; - } - public function getCurrentVersion() - { - return $this->currentVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayerLevels($playerLevels) - { - $this->playerLevels = $playerLevels; - } - public function getPlayerLevels() - { - return $this->playerLevels; - } -} - -class Google_Service_Games_NetworkDiagnostics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $androidNetworkSubtype; - public $androidNetworkType; - public $iosNetworkType; - public $kind; - public $networkOperatorCode; - public $networkOperatorName; - public $registrationLatencyMillis; - - - public function setAndroidNetworkSubtype($androidNetworkSubtype) - { - $this->androidNetworkSubtype = $androidNetworkSubtype; - } - public function getAndroidNetworkSubtype() - { - return $this->androidNetworkSubtype; - } - public function setAndroidNetworkType($androidNetworkType) - { - $this->androidNetworkType = $androidNetworkType; - } - public function getAndroidNetworkType() - { - return $this->androidNetworkType; - } - public function setIosNetworkType($iosNetworkType) - { - $this->iosNetworkType = $iosNetworkType; - } - public function getIosNetworkType() - { - return $this->iosNetworkType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNetworkOperatorCode($networkOperatorCode) - { - $this->networkOperatorCode = $networkOperatorCode; - } - public function getNetworkOperatorCode() - { - return $this->networkOperatorCode; - } - public function setNetworkOperatorName($networkOperatorName) - { - $this->networkOperatorName = $networkOperatorName; - } - public function getNetworkOperatorName() - { - return $this->networkOperatorName; - } - public function setRegistrationLatencyMillis($registrationLatencyMillis) - { - $this->registrationLatencyMillis = $registrationLatencyMillis; - } - public function getRegistrationLatencyMillis() - { - return $this->registrationLatencyMillis; - } -} - -class Google_Service_Games_ParticipantResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $participantId; - public $placing; - public $result; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - public function getParticipantId() - { - return $this->participantId; - } - public function setPlacing($placing) - { - $this->placing = $placing; - } - public function getPlacing() - { - return $this->placing; - } - public function setResult($result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Games_PeerChannelDiagnostics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; - protected $bytesReceivedDataType = ''; - protected $bytesSentType = 'Google_Service_Games_AggregateStats'; - protected $bytesSentDataType = ''; - public $kind; - public $numMessagesLost; - public $numMessagesReceived; - public $numMessagesSent; - public $numSendFailures; - protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; - protected $roundtripLatencyMillisDataType = ''; - - - public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) - { - $this->bytesReceived = $bytesReceived; - } - public function getBytesReceived() - { - return $this->bytesReceived; - } - public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) - { - $this->bytesSent = $bytesSent; - } - public function getBytesSent() - { - return $this->bytesSent; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNumMessagesLost($numMessagesLost) - { - $this->numMessagesLost = $numMessagesLost; - } - public function getNumMessagesLost() - { - return $this->numMessagesLost; - } - public function setNumMessagesReceived($numMessagesReceived) - { - $this->numMessagesReceived = $numMessagesReceived; - } - public function getNumMessagesReceived() - { - return $this->numMessagesReceived; - } - public function setNumMessagesSent($numMessagesSent) - { - $this->numMessagesSent = $numMessagesSent; - } - public function getNumMessagesSent() - { - return $this->numMessagesSent; - } - public function setNumSendFailures($numSendFailures) - { - $this->numSendFailures = $numSendFailures; - } - public function getNumSendFailures() - { - return $this->numSendFailures; - } - public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) - { - $this->roundtripLatencyMillis = $roundtripLatencyMillis; - } - public function getRoundtripLatencyMillis() - { - return $this->roundtripLatencyMillis; - } -} - -class Google_Service_Games_PeerSessionDiagnostics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $connectedTimestampMillis; - public $kind; - public $participantId; - protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $reliableChannelDataType = ''; - protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $unreliableChannelDataType = ''; - - - public function setConnectedTimestampMillis($connectedTimestampMillis) - { - $this->connectedTimestampMillis = $connectedTimestampMillis; - } - public function getConnectedTimestampMillis() - { - return $this->connectedTimestampMillis; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - public function getParticipantId() - { - return $this->participantId; - } - public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) - { - $this->reliableChannel = $reliableChannel; - } - public function getReliableChannel() - { - return $this->reliableChannel; - } - public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) - { - $this->unreliableChannel = $unreliableChannel; - } - public function getUnreliableChannel() - { - return $this->unreliableChannel; - } -} - -class Google_Service_Games_Played extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoMatched; - public $kind; - public $timeMillis; - - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - public function getAutoMatched() - { - return $this->autoMatched; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTimeMillis($timeMillis) - { - $this->timeMillis = $timeMillis; - } - public function getTimeMillis() - { - return $this->timeMillis; - } -} - -class Google_Service_Games_Player extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $avatarImageUrl; - public $bannerUrlLandscape; - public $bannerUrlPortrait; - public $displayName; - protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; - protected $experienceInfoDataType = ''; - public $kind; - protected $lastPlayedWithType = 'Google_Service_Games_Played'; - protected $lastPlayedWithDataType = ''; - protected $nameType = 'Google_Service_Games_PlayerName'; - protected $nameDataType = ''; - public $originalPlayerId; - public $playerId; - public $title; - - - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } - public function setBannerUrlLandscape($bannerUrlLandscape) - { - $this->bannerUrlLandscape = $bannerUrlLandscape; - } - public function getBannerUrlLandscape() - { - return $this->bannerUrlLandscape; - } - public function setBannerUrlPortrait($bannerUrlPortrait) - { - $this->bannerUrlPortrait = $bannerUrlPortrait; - } - public function getBannerUrlPortrait() - { - return $this->bannerUrlPortrait; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo) - { - $this->experienceInfo = $experienceInfo; - } - public function getExperienceInfo() - { - return $this->experienceInfo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) - { - $this->lastPlayedWith = $lastPlayedWith; - } - public function getLastPlayedWith() - { - return $this->lastPlayedWith; - } - public function setName(Google_Service_Games_PlayerName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOriginalPlayerId($originalPlayerId) - { - $this->originalPlayerId = $originalPlayerId; - } - public function getOriginalPlayerId() - { - return $this->originalPlayerId; - } - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - public function getPlayerId() - { - return $this->playerId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Games_PlayerAchievement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $achievementState; - public $currentSteps; - public $experiencePoints; - public $formattedCurrentStepsString; - public $id; - public $kind; - public $lastUpdatedTimestamp; - - - public function setAchievementState($achievementState) - { - $this->achievementState = $achievementState; - } - public function getAchievementState() - { - return $this->achievementState; - } - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - public function getCurrentSteps() - { - return $this->currentSteps; - } - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - public function getExperiencePoints() - { - return $this->experiencePoints; - } - public function setFormattedCurrentStepsString($formattedCurrentStepsString) - { - $this->formattedCurrentStepsString = $formattedCurrentStepsString; - } - public function getFormattedCurrentStepsString() - { - return $this->formattedCurrentStepsString; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) - { - $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; - } - public function getLastUpdatedTimestamp() - { - return $this->lastUpdatedTimestamp; - } -} - -class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_PlayerAchievement'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_PlayerEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $definitionId; - public $formattedNumEvents; - public $kind; - public $numEvents; - public $playerId; - - - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - public function getDefinitionId() - { - return $this->definitionId; - } - public function setFormattedNumEvents($formattedNumEvents) - { - $this->formattedNumEvents = $formattedNumEvents; - } - public function getFormattedNumEvents() - { - return $this->formattedNumEvents; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNumEvents($numEvents) - { - $this->numEvents = $numEvents; - } - public function getNumEvents() - { - return $this->numEvents; - } - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - public function getPlayerId() - { - return $this->playerId; - } -} - -class Google_Service_Games_PlayerEventListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_PlayerEvent'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_PlayerExperienceInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentExperiencePoints; - protected $currentLevelType = 'Google_Service_Games_PlayerLevel'; - protected $currentLevelDataType = ''; - public $kind; - public $lastLevelUpTimestampMillis; - protected $nextLevelType = 'Google_Service_Games_PlayerLevel'; - protected $nextLevelDataType = ''; - - - public function setCurrentExperiencePoints($currentExperiencePoints) - { - $this->currentExperiencePoints = $currentExperiencePoints; - } - public function getCurrentExperiencePoints() - { - return $this->currentExperiencePoints; - } - public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) - { - $this->currentLevel = $currentLevel; - } - public function getCurrentLevel() - { - return $this->currentLevel; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) - { - $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; - } - public function getLastLevelUpTimestampMillis() - { - return $this->lastLevelUpTimestampMillis; - } - public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) - { - $this->nextLevel = $nextLevel; - } - public function getNextLevel() - { - return $this->nextLevel; - } -} - -class Google_Service_Games_PlayerLeaderboardScore extends Google_Model -{ - protected $internal_gapi_mappings = array( - "leaderboardId" => "leaderboard_id", - ); - public $kind; - public $leaderboardId; - protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $publicRankDataType = ''; - public $scoreString; - public $scoreTag; - public $scoreValue; - protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $socialRankDataType = ''; - public $timeSpan; - public $writeTimestamp; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - public function getLeaderboardId() - { - return $this->leaderboardId; - } - public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) - { - $this->publicRank = $publicRank; - } - public function getPublicRank() - { - return $this->publicRank; - } - public function setScoreString($scoreString) - { - $this->scoreString = $scoreString; - } - public function getScoreString() - { - return $this->scoreString; - } - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - public function getScoreTag() - { - return $this->scoreTag; - } - public function setScoreValue($scoreValue) - { - $this->scoreValue = $scoreValue; - } - public function getScoreValue() - { - return $this->scoreValue; - } - public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) - { - $this->socialRank = $socialRank; - } - public function getSocialRank() - { - return $this->socialRank; - } - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } - public function setWriteTimestamp($writeTimestamp) - { - $this->writeTimestamp = $writeTimestamp; - } - public function getWriteTimestamp() - { - return $this->writeTimestamp; - } -} - -class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - public function getPlayer() - { - return $this->player; - } -} - -class Google_Service_Games_PlayerLevel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $level; - public $maxExperiencePoints; - public $minExperiencePoints; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setMaxExperiencePoints($maxExperiencePoints) - { - $this->maxExperiencePoints = $maxExperiencePoints; - } - public function getMaxExperiencePoints() - { - return $this->maxExperiencePoints; - } - public function setMinExperiencePoints($minExperiencePoints) - { - $this->minExperiencePoints = $minExperiencePoints; - } - public function getMinExperiencePoints() - { - return $this->minExperiencePoints; - } -} - -class Google_Service_Games_PlayerListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Player'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_PlayerName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $familyName; - public $givenName; - - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } -} - -class Google_Service_Games_PlayerScore extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedScore; - public $kind; - public $score; - public $scoreTag; - public $timeSpan; - - - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - public function getFormattedScore() - { - return $this->formattedScore; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setScore($score) - { - $this->score = $score; - } - public function getScore() - { - return $this->score; - } - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - public function getScoreTag() - { - return $this->scoreTag; - } - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } -} - -class Google_Service_Games_PlayerScoreListResponse extends Google_Collection -{ - protected $collection_key = 'submittedScores'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; - protected $submittedScoresDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSubmittedScores($submittedScores) - { - $this->submittedScores = $submittedScores; - } - public function getSubmittedScores() - { - return $this->submittedScores; - } -} - -class Google_Service_Games_PlayerScoreResponse extends Google_Collection -{ - protected $collection_key = 'unbeatenScores'; - protected $internal_gapi_mappings = array( - ); - public $beatenScoreTimeSpans; - public $formattedScore; - public $kind; - public $leaderboardId; - public $scoreTag; - protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; - protected $unbeatenScoresDataType = 'array'; - - - public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) - { - $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; - } - public function getBeatenScoreTimeSpans() - { - return $this->beatenScoreTimeSpans; - } - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - public function getFormattedScore() - { - return $this->formattedScore; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - public function getLeaderboardId() - { - return $this->leaderboardId; - } - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - public function getScoreTag() - { - return $this->scoreTag; - } - public function setUnbeatenScores($unbeatenScores) - { - $this->unbeatenScores = $unbeatenScores; - } - public function getUnbeatenScores() - { - return $this->unbeatenScores; - } -} - -class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection -{ - protected $collection_key = 'scores'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $scoresType = 'Google_Service_Games_ScoreSubmission'; - protected $scoresDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setScores($scores) - { - $this->scores = $scores; - } - public function getScores() - { - return $this->scores; - } -} - -class Google_Service_Games_PushToken extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientRevision; - protected $idType = 'Google_Service_Games_PushTokenId'; - protected $idDataType = ''; - public $kind; - public $language; - - - public function setClientRevision($clientRevision) - { - $this->clientRevision = $clientRevision; - } - public function getClientRevision() - { - return $this->clientRevision; - } - public function setId(Google_Service_Games_PushTokenId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } -} - -class Google_Service_Games_PushTokenId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $iosType = 'Google_Service_Games_PushTokenIdIos'; - protected $iosDataType = ''; - public $kind; - - - public function setIos(Google_Service_Games_PushTokenIdIos $ios) - { - $this->ios = $ios; - } - public function getIos() - { - return $this->ios; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_PushTokenIdIos extends Google_Model -{ - protected $internal_gapi_mappings = array( - "apnsDeviceToken" => "apns_device_token", - "apnsEnvironment" => "apns_environment", - ); - public $apnsDeviceToken; - public $apnsEnvironment; - - - public function setApnsDeviceToken($apnsDeviceToken) - { - $this->apnsDeviceToken = $apnsDeviceToken; - } - public function getApnsDeviceToken() - { - return $this->apnsDeviceToken; - } - public function setApnsEnvironment($apnsEnvironment) - { - $this->apnsEnvironment = $apnsEnvironment; - } - public function getApnsEnvironment() - { - return $this->apnsEnvironment; - } -} - -class Google_Service_Games_Quest extends Google_Collection -{ - protected $collection_key = 'milestones'; - protected $internal_gapi_mappings = array( - ); - public $acceptedTimestampMillis; - public $applicationId; - public $bannerUrl; - public $description; - public $endTimestampMillis; - public $iconUrl; - public $id; - public $isDefaultBannerUrl; - public $isDefaultIconUrl; - public $kind; - public $lastUpdatedTimestampMillis; - protected $milestonesType = 'Google_Service_Games_QuestMilestone'; - protected $milestonesDataType = 'array'; - public $name; - public $notifyTimestampMillis; - public $startTimestampMillis; - public $state; - - - public function setAcceptedTimestampMillis($acceptedTimestampMillis) - { - $this->acceptedTimestampMillis = $acceptedTimestampMillis; - } - public function getAcceptedTimestampMillis() - { - return $this->acceptedTimestampMillis; - } - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - public function getApplicationId() - { - return $this->applicationId; - } - public function setBannerUrl($bannerUrl) - { - $this->bannerUrl = $bannerUrl; - } - public function getBannerUrl() - { - return $this->bannerUrl; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEndTimestampMillis($endTimestampMillis) - { - $this->endTimestampMillis = $endTimestampMillis; - } - public function getEndTimestampMillis() - { - return $this->endTimestampMillis; - } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsDefaultBannerUrl($isDefaultBannerUrl) - { - $this->isDefaultBannerUrl = $isDefaultBannerUrl; - } - public function getIsDefaultBannerUrl() - { - return $this->isDefaultBannerUrl; - } - public function setIsDefaultIconUrl($isDefaultIconUrl) - { - $this->isDefaultIconUrl = $isDefaultIconUrl; - } - public function getIsDefaultIconUrl() - { - return $this->isDefaultIconUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) - { - $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; - } - public function getLastUpdatedTimestampMillis() - { - return $this->lastUpdatedTimestampMillis; - } - public function setMilestones($milestones) - { - $this->milestones = $milestones; - } - public function getMilestones() - { - return $this->milestones; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotifyTimestampMillis($notifyTimestampMillis) - { - $this->notifyTimestampMillis = $notifyTimestampMillis; - } - public function getNotifyTimestampMillis() - { - return $this->notifyTimestampMillis; - } - public function setStartTimestampMillis($startTimestampMillis) - { - $this->startTimestampMillis = $startTimestampMillis; - } - public function getStartTimestampMillis() - { - return $this->startTimestampMillis; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Games_QuestContribution extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedValue; - public $kind; - public $value; - - - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - public function getFormattedValue() - { - return $this->formattedValue; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Games_QuestCriterion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $completionContributionType = 'Google_Service_Games_QuestContribution'; - protected $completionContributionDataType = ''; - protected $currentContributionType = 'Google_Service_Games_QuestContribution'; - protected $currentContributionDataType = ''; - public $eventId; - protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution'; - protected $initialPlayerProgressDataType = ''; - public $kind; - - - public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution) - { - $this->completionContribution = $completionContribution; - } - public function getCompletionContribution() - { - return $this->completionContribution; - } - public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution) - { - $this->currentContribution = $currentContribution; - } - public function getCurrentContribution() - { - return $this->currentContribution; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress) - { - $this->initialPlayerProgress = $initialPlayerProgress; - } - public function getInitialPlayerProgress() - { - return $this->initialPlayerProgress; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_QuestListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Quest'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_QuestMilestone extends Google_Collection -{ - protected $collection_key = 'criteria'; - protected $internal_gapi_mappings = array( - ); - public $completionRewardData; - protected $criteriaType = 'Google_Service_Games_QuestCriterion'; - protected $criteriaDataType = 'array'; - public $id; - public $kind; - public $state; - - - public function setCompletionRewardData($completionRewardData) - { - $this->completionRewardData = $completionRewardData; - } - public function getCompletionRewardData() - { - return $this->completionRewardData; - } - public function setCriteria($criteria) - { - $this->criteria = $criteria; - } - public function getCriteria() - { - return $this->criteria; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Google_Service_Games_RevisionCheckResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $apiVersion; - public $kind; - public $revisionStatus; - - - public function setApiVersion($apiVersion) - { - $this->apiVersion = $apiVersion; - } - public function getApiVersion() - { - return $this->apiVersion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRevisionStatus($revisionStatus) - { - $this->revisionStatus = $revisionStatus; - } - public function getRevisionStatus() - { - return $this->revisionStatus; - } -} - -class Google_Service_Games_Room extends Google_Collection -{ - protected $collection_key = 'participants'; - protected $internal_gapi_mappings = array( - ); - public $applicationId; - protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; - protected $autoMatchingStatusDataType = ''; - protected $creationDetailsType = 'Google_Service_Games_RoomModification'; - protected $creationDetailsDataType = ''; - public $description; - public $inviterId; - public $kind; - protected $lastUpdateDetailsType = 'Google_Service_Games_RoomModification'; - protected $lastUpdateDetailsDataType = ''; - protected $participantsType = 'Google_Service_Games_RoomParticipant'; - protected $participantsDataType = 'array'; - public $roomId; - public $roomStatusVersion; - public $status; - public $variant; - - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - public function getApplicationId() - { - return $this->applicationId; - } - public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) - { - $this->autoMatchingStatus = $autoMatchingStatus; - } - public function getAutoMatchingStatus() - { - return $this->autoMatchingStatus; - } - public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails) - { - $this->creationDetails = $creationDetails; - } - public function getCreationDetails() - { - return $this->creationDetails; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setInviterId($inviterId) - { - $this->inviterId = $inviterId; - } - public function getInviterId() - { - return $this->inviterId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails) - { - $this->lastUpdateDetails = $lastUpdateDetails; - } - public function getLastUpdateDetails() - { - return $this->lastUpdateDetails; - } - public function setParticipants($participants) - { - $this->participants = $participants; - } - public function getParticipants() - { - return $this->participants; - } - public function setRoomId($roomId) - { - $this->roomId = $roomId; - } - public function getRoomId() - { - return $this->roomId; - } - public function setRoomStatusVersion($roomStatusVersion) - { - $this->roomStatusVersion = $roomStatusVersion; - } - public function getRoomStatusVersion() - { - return $this->roomStatusVersion; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setVariant($variant) - { - $this->variant = $variant; - } - public function getVariant() - { - return $this->variant; - } -} - -class Google_Service_Games_RoomAutoMatchStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $waitEstimateSeconds; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setWaitEstimateSeconds($waitEstimateSeconds) - { - $this->waitEstimateSeconds = $waitEstimateSeconds; - } - public function getWaitEstimateSeconds() - { - return $this->waitEstimateSeconds; - } -} - -class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $exclusiveBitmask; - public $kind; - public $maxAutoMatchingPlayers; - public $minAutoMatchingPlayers; - - - public function setExclusiveBitmask($exclusiveBitmask) - { - $this->exclusiveBitmask = $exclusiveBitmask; - } - public function getExclusiveBitmask() - { - return $this->exclusiveBitmask; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) - { - $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; - } - public function getMaxAutoMatchingPlayers() - { - return $this->maxAutoMatchingPlayers; - } - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) - { - $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; - } - public function getMinAutoMatchingPlayers() - { - return $this->minAutoMatchingPlayers; - } -} - -class Google_Service_Games_RoomClientAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $xmppAddress; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setXmppAddress($xmppAddress) - { - $this->xmppAddress = $xmppAddress; - } - public function getXmppAddress() - { - return $this->xmppAddress; - } -} - -class Google_Service_Games_RoomCreateRequest extends Google_Collection -{ - protected $collection_key = 'invitedPlayerIds'; - protected $internal_gapi_mappings = array( - ); - protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $invitedPlayerIds; - public $kind; - protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; - protected $networkDiagnosticsDataType = ''; - public $requestId; - public $variant; - - - public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - public function getClientAddress() - { - return $this->clientAddress; - } - public function setInvitedPlayerIds($invitedPlayerIds) - { - $this->invitedPlayerIds = $invitedPlayerIds; - } - public function getInvitedPlayerIds() - { - return $this->invitedPlayerIds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) - { - $this->networkDiagnostics = $networkDiagnostics; - } - public function getNetworkDiagnostics() - { - return $this->networkDiagnostics; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setVariant($variant) - { - $this->variant = $variant; - } - public function getVariant() - { - return $this->variant; - } -} - -class Google_Service_Games_RoomJoinRequest extends Google_Collection -{ - protected $collection_key = 'capabilities'; - protected $internal_gapi_mappings = array( - ); - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $kind; - protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; - protected $networkDiagnosticsDataType = ''; - - - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - public function getClientAddress() - { - return $this->clientAddress; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) - { - $this->networkDiagnostics = $networkDiagnostics; - } - public function getNetworkDiagnostics() - { - return $this->networkDiagnostics; - } -} - -class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection -{ - protected $collection_key = 'peerSession'; - protected $internal_gapi_mappings = array( - ); - public $androidNetworkSubtype; - public $androidNetworkType; - public $iosNetworkType; - public $kind; - public $networkOperatorCode; - public $networkOperatorName; - protected $peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics'; - protected $peerSessionDataType = 'array'; - public $socketsUsed; - - - public function setAndroidNetworkSubtype($androidNetworkSubtype) - { - $this->androidNetworkSubtype = $androidNetworkSubtype; - } - public function getAndroidNetworkSubtype() - { - return $this->androidNetworkSubtype; - } - public function setAndroidNetworkType($androidNetworkType) - { - $this->androidNetworkType = $androidNetworkType; - } - public function getAndroidNetworkType() - { - return $this->androidNetworkType; - } - public function setIosNetworkType($iosNetworkType) - { - $this->iosNetworkType = $iosNetworkType; - } - public function getIosNetworkType() - { - return $this->iosNetworkType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNetworkOperatorCode($networkOperatorCode) - { - $this->networkOperatorCode = $networkOperatorCode; - } - public function getNetworkOperatorCode() - { - return $this->networkOperatorCode; - } - public function setNetworkOperatorName($networkOperatorName) - { - $this->networkOperatorName = $networkOperatorName; - } - public function getNetworkOperatorName() - { - return $this->networkOperatorName; - } - public function setPeerSession($peerSession) - { - $this->peerSession = $peerSession; - } - public function getPeerSession() - { - return $this->peerSession; - } - public function setSocketsUsed($socketsUsed) - { - $this->socketsUsed = $socketsUsed; - } - public function getSocketsUsed() - { - return $this->socketsUsed; - } -} - -class Google_Service_Games_RoomLeaveRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics'; - protected $leaveDiagnosticsDataType = ''; - public $reason; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics) - { - $this->leaveDiagnostics = $leaveDiagnostics; - } - public function getLeaveDiagnostics() - { - return $this->leaveDiagnostics; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_Games_RoomList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Room'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_RoomModification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $modifiedTimestampMillis; - public $participantId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setModifiedTimestampMillis($modifiedTimestampMillis) - { - $this->modifiedTimestampMillis = $modifiedTimestampMillis; - } - public function getModifiedTimestampMillis() - { - return $this->modifiedTimestampMillis; - } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - public function getParticipantId() - { - return $this->participantId; - } -} - -class Google_Service_Games_RoomP2PStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - "errorReason" => "error_reason", - ); - public $connectionSetupLatencyMillis; - public $error; - public $errorReason; - public $kind; - public $participantId; - public $status; - public $unreliableRoundtripLatencyMillis; - - - public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis) - { - $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis; - } - public function getConnectionSetupLatencyMillis() - { - return $this->connectionSetupLatencyMillis; - } - public function setError($error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setErrorReason($errorReason) - { - $this->errorReason = $errorReason; - } - public function getErrorReason() - { - return $this->errorReason; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - public function getParticipantId() - { - return $this->participantId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis) - { - $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis; - } - public function getUnreliableRoundtripLatencyMillis() - { - return $this->unreliableRoundtripLatencyMillis; - } -} - -class Google_Service_Games_RoomP2PStatuses extends Google_Collection -{ - protected $collection_key = 'updates'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; - protected $updatesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdates($updates) - { - $this->updates = $updates; - } - public function getUpdates() - { - return $this->updates; - } -} - -class Google_Service_Games_RoomParticipant extends Google_Collection -{ - protected $collection_key = 'capabilities'; - protected $internal_gapi_mappings = array( - ); - public $autoMatched; - protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; - protected $autoMatchedPlayerDataType = ''; - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $connected; - public $id; - public $kind; - public $leaveReason; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $status; - - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - public function getAutoMatched() - { - return $this->autoMatched; - } - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) - { - $this->autoMatchedPlayer = $autoMatchedPlayer; - } - public function getAutoMatchedPlayer() - { - return $this->autoMatchedPlayer; - } - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - public function getClientAddress() - { - return $this->clientAddress; - } - public function setConnected($connected) - { - $this->connected = $connected; - } - public function getConnected() - { - return $this->connected; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaveReason($leaveReason) - { - $this->leaveReason = $leaveReason; - } - public function getLeaveReason() - { - return $this->leaveReason; - } - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - public function getPlayer() - { - return $this->player; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Games_RoomStatus extends Google_Collection -{ - protected $collection_key = 'participants'; - protected $internal_gapi_mappings = array( - ); - protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; - protected $autoMatchingStatusDataType = ''; - public $kind; - protected $participantsType = 'Google_Service_Games_RoomParticipant'; - protected $participantsDataType = 'array'; - public $roomId; - public $status; - public $statusVersion; - - - public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) - { - $this->autoMatchingStatus = $autoMatchingStatus; - } - public function getAutoMatchingStatus() - { - return $this->autoMatchingStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setParticipants($participants) - { - $this->participants = $participants; - } - public function getParticipants() - { - return $this->participants; - } - public function setRoomId($roomId) - { - $this->roomId = $roomId; - } - public function getRoomId() - { - return $this->roomId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusVersion($statusVersion) - { - $this->statusVersion = $statusVersion; - } - public function getStatusVersion() - { - return $this->statusVersion; - } -} - -class Google_Service_Games_ScoreSubmission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $leaderboardId; - public $score; - public $scoreTag; - public $signature; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - public function getLeaderboardId() - { - return $this->leaderboardId; - } - public function setScore($score) - { - $this->score = $score; - } - public function getScore() - { - return $this->score; - } - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - public function getScoreTag() - { - return $this->scoreTag; - } - public function setSignature($signature) - { - $this->signature = $signature; - } - public function getSignature() - { - return $this->signature; - } -} - -class Google_Service_Games_Snapshot extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $coverImageType = 'Google_Service_Games_SnapshotImage'; - protected $coverImageDataType = ''; - public $description; - public $driveId; - public $durationMillis; - public $id; - public $kind; - public $lastModifiedMillis; - public $progressValue; - public $title; - public $type; - public $uniqueName; - - - public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage) - { - $this->coverImage = $coverImage; - } - public function getCoverImage() - { - return $this->coverImage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDriveId($driveId) - { - $this->driveId = $driveId; - } - public function getDriveId() - { - return $this->driveId; - } - public function setDurationMillis($durationMillis) - { - $this->durationMillis = $durationMillis; - } - public function getDurationMillis() - { - return $this->durationMillis; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastModifiedMillis($lastModifiedMillis) - { - $this->lastModifiedMillis = $lastModifiedMillis; - } - public function getLastModifiedMillis() - { - return $this->lastModifiedMillis; - } - public function setProgressValue($progressValue) - { - $this->progressValue = $progressValue; - } - public function getProgressValue() - { - return $this->progressValue; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUniqueName($uniqueName) - { - $this->uniqueName = $uniqueName; - } - public function getUniqueName() - { - return $this->uniqueName; - } -} - -class Google_Service_Games_SnapshotImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - "mimeType" => "mime_type", - ); - public $height; - public $kind; - public $mimeType; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Games_SnapshotListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_Snapshot'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $exclusiveBitmask; - public $kind; - public $maxAutoMatchingPlayers; - public $minAutoMatchingPlayers; - - - public function setExclusiveBitmask($exclusiveBitmask) - { - $this->exclusiveBitmask = $exclusiveBitmask; - } - public function getExclusiveBitmask() - { - return $this->exclusiveBitmask; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) - { - $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; - } - public function getMaxAutoMatchingPlayers() - { - return $this->maxAutoMatchingPlayers; - } - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) - { - $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; - } - public function getMinAutoMatchingPlayers() - { - return $this->minAutoMatchingPlayers; - } -} - -class Google_Service_Games_TurnBasedMatch extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - public $applicationId; - protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - protected $creationDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; - protected $creationDetailsDataType = ''; - protected $dataType = 'Google_Service_Games_TurnBasedMatchData'; - protected $dataDataType = ''; - public $description; - public $inviterId; - public $kind; - protected $lastUpdateDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; - protected $lastUpdateDetailsDataType = ''; - public $matchId; - public $matchNumber; - public $matchVersion; - protected $participantsType = 'Google_Service_Games_TurnBasedMatchParticipant'; - protected $participantsDataType = 'array'; - public $pendingParticipantId; - protected $previousMatchDataType = 'Google_Service_Games_TurnBasedMatchData'; - protected $previousMatchDataDataType = ''; - public $rematchId; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - public $status; - public $userMatchStatus; - public $variant; - public $withParticipantId; - - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - public function getApplicationId() - { - return $this->applicationId; - } - public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails) - { - $this->creationDetails = $creationDetails; - } - public function getCreationDetails() - { - return $this->creationDetails; - } - public function setData(Google_Service_Games_TurnBasedMatchData $data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setInviterId($inviterId) - { - $this->inviterId = $inviterId; - } - public function getInviterId() - { - return $this->inviterId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails) - { - $this->lastUpdateDetails = $lastUpdateDetails; - } - public function getLastUpdateDetails() - { - return $this->lastUpdateDetails; - } - public function setMatchId($matchId) - { - $this->matchId = $matchId; - } - public function getMatchId() - { - return $this->matchId; - } - public function setMatchNumber($matchNumber) - { - $this->matchNumber = $matchNumber; - } - public function getMatchNumber() - { - return $this->matchNumber; - } - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - public function getMatchVersion() - { - return $this->matchVersion; - } - public function setParticipants($participants) - { - $this->participants = $participants; - } - public function getParticipants() - { - return $this->participants; - } - public function setPendingParticipantId($pendingParticipantId) - { - $this->pendingParticipantId = $pendingParticipantId; - } - public function getPendingParticipantId() - { - return $this->pendingParticipantId; - } - public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData) - { - $this->previousMatchData = $previousMatchData; - } - public function getPreviousMatchData() - { - return $this->previousMatchData; - } - public function setRematchId($rematchId) - { - $this->rematchId = $rematchId; - } - public function getRematchId() - { - return $this->rematchId; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUserMatchStatus($userMatchStatus) - { - $this->userMatchStatus = $userMatchStatus; - } - public function getUserMatchStatus() - { - return $this->userMatchStatus; - } - public function setVariant($variant) - { - $this->variant = $variant; - } - public function getVariant() - { - return $this->variant; - } - public function setWithParticipantId($withParticipantId) - { - $this->withParticipantId = $withParticipantId; - } - public function getWithParticipantId() - { - return $this->withParticipantId; - } -} - -class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection -{ - protected $collection_key = 'invitedPlayerIds'; - protected $internal_gapi_mappings = array( - ); - protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - public $invitedPlayerIds; - public $kind; - public $requestId; - public $variant; - - - public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - public function setInvitedPlayerIds($invitedPlayerIds) - { - $this->invitedPlayerIds = $invitedPlayerIds; - } - public function getInvitedPlayerIds() - { - return $this->invitedPlayerIds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setVariant($variant) - { - $this->variant = $variant; - } - public function getVariant() - { - return $this->variant; - } -} - -class Google_Service_Games_TurnBasedMatchData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $data; - public $dataAvailable; - public $kind; - - - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setDataAvailable($dataAvailable) - { - $this->dataAvailable = $dataAvailable; - } - public function getDataAvailable() - { - return $this->dataAvailable; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $data; - public $kind; - - - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Games_TurnBasedMatchList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_TurnBasedMatchModification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $modifiedTimestampMillis; - public $participantId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setModifiedTimestampMillis($modifiedTimestampMillis) - { - $this->modifiedTimestampMillis = $modifiedTimestampMillis; - } - public function getModifiedTimestampMillis() - { - return $this->modifiedTimestampMillis; - } - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - public function getParticipantId() - { - return $this->participantId; - } -} - -class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoMatched; - protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; - protected $autoMatchedPlayerDataType = ''; - public $id; - public $kind; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $status; - - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - public function getAutoMatched() - { - return $this->autoMatched; - } - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) - { - $this->autoMatchedPlayer = $autoMatchedPlayer; - } - public function getAutoMatchedPlayer() - { - return $this->autoMatchedPlayer; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - public function getPlayer() - { - return $this->player; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Games_TurnBasedMatchRematch extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch'; - protected $previousMatchDataType = ''; - protected $rematchType = 'Google_Service_Games_TurnBasedMatch'; - protected $rematchDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch) - { - $this->previousMatch = $previousMatch; - } - public function getPreviousMatch() - { - return $this->previousMatch; - } - public function setRematch(Google_Service_Games_TurnBasedMatch $rematch) - { - $this->rematch = $rematch; - } - public function getRematch() - { - return $this->rematch; - } -} - -class Google_Service_Games_TurnBasedMatchResults extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; - protected $dataDataType = ''; - public $kind; - public $matchVersion; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - - - public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - public function getMatchVersion() - { - return $this->matchVersion; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} - -class Google_Service_Games_TurnBasedMatchSync extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; - protected $itemsDataType = 'array'; - public $kind; - public $moreAvailable; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMoreAvailable($moreAvailable) - { - $this->moreAvailable = $moreAvailable; - } - public function getMoreAvailable() - { - return $this->moreAvailable; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; - protected $dataDataType = ''; - public $kind; - public $matchVersion; - public $pendingParticipantId; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - - - public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - public function getMatchVersion() - { - return $this->matchVersion; - } - public function setPendingParticipantId($pendingParticipantId) - { - $this->pendingParticipantId = $pendingParticipantId; - } - public function getPendingParticipantId() - { - return $this->pendingParticipantId; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} diff --git a/src/Google/Service/GamesConfiguration.php b/src/Google/Service/GamesConfiguration.php deleted file mode 100644 index 3878f0b07..000000000 --- a/src/Google/Service/GamesConfiguration.php +++ /dev/null @@ -1,1068 +0,0 @@ - - * The Publishing API for Google Play Game Services.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_GamesConfiguration extends Google_Service -{ - /** View and manage your Google Play Developer account. */ - const ANDROIDPUBLISHER = - "https://www.googleapis.com/auth/androidpublisher"; - - public $achievementConfigurations; - public $imageConfigurations; - public $leaderboardConfigurations; - - - /** - * Constructs the internal representation of the GamesConfiguration service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'games/v1configuration/'; - $this->version = 'v1configuration'; - $this->serviceName = 'gamesConfiguration'; - - $this->achievementConfigurations = new Google_Service_GamesConfiguration_AchievementConfigurations_Resource( - $this, - $this->serviceName, - 'achievementConfigurations', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'achievements/{achievementId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'achievements/{achievementId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'applications/{applicationId}/achievements', - 'httpMethod' => 'POST', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'applications/{applicationId}/achievements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'achievements/{achievementId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'achievements/{achievementId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->imageConfigurations = new Google_Service_GamesConfiguration_ImageConfigurations_Resource( - $this, - $this->serviceName, - 'imageConfigurations', - array( - 'methods' => array( - 'upload' => array( - 'path' => 'images/{resourceId}/imageType/{imageType}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource( - $this, - $this->serviceName, - 'leaderboardConfigurations', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'applications/{applicationId}/leaderboards', - 'httpMethod' => 'POST', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'applications/{applicationId}/leaderboards', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "achievementConfigurations" collection of methods. - * Typical usage is: - * - * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); - * $achievementConfigurations = $gamesConfigurationService->achievementConfigurations; - * - */ -class Google_Service_GamesConfiguration_AchievementConfigurations_Resource extends Google_Service_Resource -{ - - /** - * Delete the achievement configuration with the given ID. - * (achievementConfigurations.delete) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - */ - public function delete($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the metadata of the achievement configuration with the given ID. - * (achievementConfigurations.get) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_AchievementConfiguration - */ - public function get($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); - } - - /** - * Insert a new achievement configuration in this application. - * (achievementConfigurations.insert) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param Google_AchievementConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_AchievementConfiguration - */ - public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); - } - - /** - * Returns a list of the achievement configurations in this application. - * (achievementConfigurations.listAchievementConfigurations) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults The maximum number of resource configurations to - * return in the response, used for paging. For any response, the actual number - * of resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse - */ - public function listAchievementConfigurations($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse"); - } - - /** - * Update the metadata of the achievement configuration with the given ID. This - * method supports patch semantics. (achievementConfigurations.patch) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param Google_AchievementConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_AchievementConfiguration - */ - public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); - } - - /** - * Update the metadata of the achievement configuration with the given ID. - * (achievementConfigurations.update) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param Google_AchievementConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_AchievementConfiguration - */ - public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration"); - } -} - -/** - * The "imageConfigurations" collection of methods. - * Typical usage is: - * - * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); - * $imageConfigurations = $gamesConfigurationService->imageConfigurations; - * - */ -class Google_Service_GamesConfiguration_ImageConfigurations_Resource extends Google_Service_Resource -{ - - /** - * Uploads an image for a resource with the given ID and image type. - * (imageConfigurations.upload) - * - * @param string $resourceId The ID of the resource used by this method. - * @param string $imageType Selects which image in a resource for this method. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_ImageConfiguration - */ - public function upload($resourceId, $imageType, $optParams = array()) - { - $params = array('resourceId' => $resourceId, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_GamesConfiguration_ImageConfiguration"); - } -} - -/** - * The "leaderboardConfigurations" collection of methods. - * Typical usage is: - * - * $gamesConfigurationService = new Google_Service_GamesConfiguration(...); - * $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations; - * - */ -class Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource extends Google_Service_Resource -{ - - /** - * Delete the leaderboard configuration with the given ID. - * (leaderboardConfigurations.delete) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param array $optParams Optional parameters. - */ - public function delete($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the metadata of the leaderboard configuration with the given ID. - * (leaderboardConfigurations.get) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_LeaderboardConfiguration - */ - public function get($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); - } - - /** - * Insert a new leaderboard configuration in this application. - * (leaderboardConfigurations.insert) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param Google_LeaderboardConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_LeaderboardConfiguration - */ - public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); - } - - /** - * Returns a list of the leaderboard configurations in this application. - * (leaderboardConfigurations.listLeaderboardConfigurations) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults The maximum number of resource configurations to - * return in the response, used for paging. For any response, the actual number - * of resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse - */ - public function listLeaderboardConfigurations($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse"); - } - - /** - * Update the metadata of the leaderboard configuration with the given ID. This - * method supports patch semantics. (leaderboardConfigurations.patch) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param Google_LeaderboardConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_LeaderboardConfiguration - */ - public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); - } - - /** - * Update the metadata of the leaderboard configuration with the given ID. - * (leaderboardConfigurations.update) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param Google_LeaderboardConfiguration $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_GamesConfiguration_LeaderboardConfiguration - */ - public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration"); - } -} - - - - -class Google_Service_GamesConfiguration_AchievementConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $achievementType; - protected $draftType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail'; - protected $draftDataType = ''; - public $id; - public $initialState; - public $kind; - protected $publishedType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail'; - protected $publishedDataType = ''; - public $stepsToUnlock; - public $token; - - - public function setAchievementType($achievementType) - { - $this->achievementType = $achievementType; - } - public function getAchievementType() - { - return $this->achievementType; - } - public function setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft) - { - $this->draft = $draft; - } - public function getDraft() - { - return $this->draft; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInitialState($initialState) - { - $this->initialState = $initialState; - } - public function getInitialState() - { - return $this->initialState; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published) - { - $this->published = $published; - } - public function getPublished() - { - return $this->published; - } - public function setStepsToUnlock($stepsToUnlock) - { - $this->stepsToUnlock = $stepsToUnlock; - } - public function getStepsToUnlock() - { - return $this->stepsToUnlock; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } -} - -class Google_Service_GamesConfiguration_AchievementConfigurationDetail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $descriptionType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $descriptionDataType = ''; - public $iconUrl; - public $kind; - protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $nameDataType = ''; - public $pointValue; - public $sortRank; - - - public function setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPointValue($pointValue) - { - $this->pointValue = $pointValue; - } - public function getPointValue() - { - return $this->pointValue; - } - public function setSortRank($sortRank) - { - $this->sortRank = $sortRank; - } - public function getSortRank() - { - return $this->sortRank; - } -} - -class Google_Service_GamesConfiguration_AchievementConfigurationListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_GamesConfiguration_AchievementConfiguration'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_GamesConfiguration_GamesNumberAffixConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $fewType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $fewDataType = ''; - protected $manyType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $manyDataType = ''; - protected $oneType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $oneDataType = ''; - protected $otherType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $otherDataType = ''; - protected $twoType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $twoDataType = ''; - protected $zeroType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $zeroDataType = ''; - - - public function setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few) - { - $this->few = $few; - } - public function getFew() - { - return $this->few; - } - public function setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many) - { - $this->many = $many; - } - public function getMany() - { - return $this->many; - } - public function setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one) - { - $this->one = $one; - } - public function getOne() - { - return $this->one; - } - public function setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other) - { - $this->other = $other; - } - public function getOther() - { - return $this->other; - } - public function setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two) - { - $this->two = $two; - } - public function getTwo() - { - return $this->two; - } - public function setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero) - { - $this->zero = $zero; - } - public function getZero() - { - return $this->zero; - } -} - -class Google_Service_GamesConfiguration_GamesNumberFormatConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currencyCode; - public $numDecimalPlaces; - public $numberFormatType; - protected $suffixType = 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration'; - protected $suffixDataType = ''; - - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - public function setNumDecimalPlaces($numDecimalPlaces) - { - $this->numDecimalPlaces = $numDecimalPlaces; - } - public function getNumDecimalPlaces() - { - return $this->numDecimalPlaces; - } - public function setNumberFormatType($numberFormatType) - { - $this->numberFormatType = $numberFormatType; - } - public function getNumberFormatType() - { - return $this->numberFormatType; - } - public function setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix) - { - $this->suffix = $suffix; - } - public function getSuffix() - { - return $this->suffix; - } -} - -class Google_Service_GamesConfiguration_ImageConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $imageType; - public $kind; - public $resourceId; - public $url; - - - public function setImageType($imageType) - { - $this->imageType = $imageType; - } - public function getImageType() - { - return $this->imageType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_GamesConfiguration_LeaderboardConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $draftType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail'; - protected $draftDataType = ''; - public $id; - public $kind; - protected $publishedType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail'; - protected $publishedDataType = ''; - public $scoreMax; - public $scoreMin; - public $scoreOrder; - public $token; - - - public function setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft) - { - $this->draft = $draft; - } - public function getDraft() - { - return $this->draft; - } - 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(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published) - { - $this->published = $published; - } - public function getPublished() - { - return $this->published; - } - public function setScoreMax($scoreMax) - { - $this->scoreMax = $scoreMax; - } - public function getScoreMax() - { - return $this->scoreMax; - } - public function setScoreMin($scoreMin) - { - $this->scoreMin = $scoreMin; - } - public function getScoreMin() - { - return $this->scoreMin; - } - public function setScoreOrder($scoreOrder) - { - $this->scoreOrder = $scoreOrder; - } - public function getScoreOrder() - { - return $this->scoreOrder; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } -} - -class Google_Service_GamesConfiguration_LeaderboardConfigurationDetail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $iconUrl; - public $kind; - protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle'; - protected $nameDataType = ''; - protected $scoreFormatType = 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration'; - protected $scoreFormatDataType = ''; - public $sortRank; - - - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - public function getIconUrl() - { - return $this->iconUrl; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat) - { - $this->scoreFormat = $scoreFormat; - } - public function getScoreFormat() - { - return $this->scoreFormat; - } - public function setSortRank($sortRank) - { - $this->sortRank = $sortRank; - } - public function getSortRank() - { - return $this->sortRank; - } -} - -class Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_GamesConfiguration_LeaderboardConfiguration'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_GamesConfiguration_LocalizedString extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $locale; - public $value; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_GamesConfiguration_LocalizedStringBundle extends Google_Collection -{ - protected $collection_key = 'translations'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $translationsType = 'Google_Service_GamesConfiguration_LocalizedString'; - protected $translationsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTranslations($translations) - { - $this->translations = $translations; - } - public function getTranslations() - { - return $this->translations; - } -} diff --git a/src/Google/Service/GamesManagement.php b/src/Google/Service/GamesManagement.php deleted file mode 100644 index a1cf096fe..000000000 --- a/src/Google/Service/GamesManagement.php +++ /dev/null @@ -1,1413 +0,0 @@ - - * The Management API for Google Play Game Services.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_GamesManagement extends Google_Service -{ - /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = - "https://www.googleapis.com/auth/games"; - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - - public $achievements; - public $applications; - public $events; - public $players; - public $quests; - public $rooms; - public $scores; - public $turnBasedMatches; - - - /** - * Constructs the internal representation of the GamesManagement service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'games/v1management/'; - $this->version = 'v1management'; - $this->serviceName = 'gamesManagement'; - - $this->achievements = new Google_Service_GamesManagement_Achievements_Resource( - $this, - $this->serviceName, - 'achievements', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'achievements/{achievementId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'achievements/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetAllForAllPlayers' => array( - 'path' => 'achievements/resetAllForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'achievements/{achievementId}/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetMultipleForAllPlayers' => array( - 'path' => 'achievements/resetMultipleForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->applications = new Google_Service_GamesManagement_Applications_Resource( - $this, - $this->serviceName, - 'applications', - array( - 'methods' => array( - 'listHidden' => array( - 'path' => 'applications/{applicationId}/players/hidden', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->events = new Google_Service_GamesManagement_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'events/{eventId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'events/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetAllForAllPlayers' => array( - 'path' => 'events/resetAllForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'events/{eventId}/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetMultipleForAllPlayers' => array( - 'path' => 'events/resetMultipleForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->players = new Google_Service_GamesManagement_Players_Resource( - $this, - $this->serviceName, - 'players', - array( - 'methods' => array( - 'hide' => array( - 'path' => 'applications/{applicationId}/players/hidden/{playerId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unhide' => array( - 'path' => 'applications/{applicationId}/players/hidden/{playerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->quests = new Google_Service_GamesManagement_Quests_Resource( - $this, - $this->serviceName, - 'quests', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'quests/{questId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'quests/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetAllForAllPlayers' => array( - 'path' => 'quests/resetAllForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'quests/{questId}/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetMultipleForAllPlayers' => array( - 'path' => 'quests/resetMultipleForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->rooms = new Google_Service_GamesManagement_Rooms_Resource( - $this, - $this->serviceName, - 'rooms', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'rooms/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'rooms/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->scores = new Google_Service_GamesManagement_Scores_Resource( - $this, - $this->serviceName, - 'scores', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'scores/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetAllForAllPlayers' => array( - 'path' => 'scores/resetAllForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetMultipleForAllPlayers' => array( - 'path' => 'scores/resetMultipleForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource( - $this, - $this->serviceName, - 'turnBasedMatches', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'turnbasedmatches/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'turnbasedmatches/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "achievements" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $achievements = $gamesManagementService->achievements; - * - */ -class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource -{ - - /** - * Resets the achievement with the given ID for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (achievements.reset) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_AchievementResetResponse - */ - public function reset($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse"); - } - - /** - * Resets all achievements for the currently authenticated player for your - * application. This method is only accessible to whitelisted tester accounts - * for your application. (achievements.resetAll) - * - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_AchievementResetAllResponse - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); - } - - /** - * Resets all draft achievements for all players. This method is only available - * to user accounts for your developer console. - * (achievements.resetAllForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetAllForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAllForAllPlayers', array($params)); - } - - /** - * Resets the achievement with the given ID for all players. This method is only - * available to user accounts for your developer console. Only draft - * achievements can be reset. (achievements.resetForAllPlayers) - * - * @param string $achievementId The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } - - /** - * Resets achievements with the given IDs for all players. This method is only - * available to user accounts for your developer console. Only draft - * achievements may be reset. (achievements.resetMultipleForAllPlayers) - * - * @param Google_AchievementResetMultipleForAllRequest $postBody - * @param array $optParams Optional parameters. - */ - public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetMultipleForAllPlayers', array($params)); - } -} - -/** - * The "applications" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $applications = $gamesManagementService->applications; - * - */ -class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource -{ - - /** - * Get the list of players hidden from the given application. This method is - * only available to user accounts for your developer console. - * (applications.listHidden) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults The maximum number of player resources to return in - * the response, used for paging. For any response, the actual number of player - * resources returned may be less than the specified maxResults. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_GamesManagement_HiddenPlayerList - */ - public function listHidden($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList"); - } -} - -/** - * The "events" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $events = $gamesManagementService->events; - * - */ -class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource -{ - - /** - * Resets all player progress on the event with the given ID for the currently - * authenticated player. This method is only accessible to whitelisted tester - * accounts for your application. All quests for this player that use the event - * will also be reset. (events.reset) - * - * @param string $eventId The ID of the event. - * @param array $optParams Optional parameters. - */ - public function reset($eventId, $optParams = array()) - { - $params = array('eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } - - /** - * Resets all player progress on all events for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. All quests for this player will also be reset. - * (events.resetAll) - * - * @param array $optParams Optional parameters. - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params)); - } - - /** - * Resets all draft events for all players. This method is only available to - * user accounts for your developer console. All quests that use any of these - * events will also be reset. (events.resetAllForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetAllForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAllForAllPlayers', array($params)); - } - - /** - * Resets the event with the given ID for all players. This method is only - * available to user accounts for your developer console. Only draft events can - * be reset. All quests that use the event will also be reset. - * (events.resetForAllPlayers) - * - * @param string $eventId The ID of the event. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($eventId, $optParams = array()) - { - $params = array('eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } - - /** - * Resets events with the given IDs for all players. This method is only - * available to user accounts for your developer console. Only draft events may - * be reset. All quests that use any of the events will also be reset. - * (events.resetMultipleForAllPlayers) - * - * @param Google_EventsResetMultipleForAllRequest $postBody - * @param array $optParams Optional parameters. - */ - public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetMultipleForAllPlayers', array($params)); - } -} - -/** - * The "players" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $players = $gamesManagementService->players; - * - */ -class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource -{ - - /** - * Hide the given player's leaderboard scores from the given application. This - * method is only available to user accounts for your developer console. - * (players.hide) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - */ - public function hide($applicationId, $playerId, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('hide', array($params)); - } - - /** - * Unhide the given player's leaderboard scores from the given application. This - * method is only available to user accounts for your developer console. - * (players.unhide) - * - * @param string $applicationId The application ID from the Google Play - * developer console. - * @param string $playerId A player ID. A value of me may be used in place of - * the authenticated player's ID. - * @param array $optParams Optional parameters. - */ - public function unhide($applicationId, $playerId, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('unhide', array($params)); - } -} - -/** - * The "quests" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $quests = $gamesManagementService->quests; - * - */ -class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource -{ - - /** - * Resets all player progress on the quest with the given ID for the currently - * authenticated player. This method is only accessible to whitelisted tester - * accounts for your application. (quests.reset) - * - * @param string $questId The ID of the quest. - * @param array $optParams Optional parameters. - */ - public function reset($questId, $optParams = array()) - { - $params = array('questId' => $questId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } - - /** - * Resets all player progress on all quests for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (quests.resetAll) - * - * @param array $optParams Optional parameters. - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params)); - } - - /** - * Resets all draft quests for all players. This method is only available to - * user accounts for your developer console. (quests.resetAllForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetAllForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAllForAllPlayers', array($params)); - } - - /** - * Resets all player progress on the quest with the given ID for all players. - * This method is only available to user accounts for your developer console. - * Only draft quests can be reset. (quests.resetForAllPlayers) - * - * @param string $questId The ID of the quest. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($questId, $optParams = array()) - { - $params = array('questId' => $questId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } - - /** - * Resets quests with the given IDs for all players. This method is only - * available to user accounts for your developer console. Only draft quests may - * be reset. (quests.resetMultipleForAllPlayers) - * - * @param Google_QuestsResetMultipleForAllRequest $postBody - * @param array $optParams Optional parameters. - */ - public function resetMultipleForAllPlayers(Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetMultipleForAllPlayers', array($params)); - } -} - -/** - * The "rooms" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $rooms = $gamesManagementService->rooms; - * - */ -class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource -{ - - /** - * Reset all rooms for the currently authenticated player for your application. - * This method is only accessible to whitelisted tester accounts for your - * application. (rooms.reset) - * - * @param array $optParams Optional parameters. - */ - public function reset($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } - - /** - * Deletes rooms where the only room participants are from whitelisted tester - * accounts for your application. This method is only available to user accounts - * for your developer console. (rooms.resetForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } -} - -/** - * The "scores" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $scores = $gamesManagementService->scores; - * - */ -class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource -{ - - /** - * Resets scores for the leaderboard with the given ID for the currently - * authenticated player. This method is only accessible to whitelisted tester - * accounts for your application. (scores.reset) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_PlayerScoreResetResponse - */ - public function reset($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); - } - - /** - * Resets all scores for all leaderboards for the currently authenticated - * players. This method is only accessible to whitelisted tester accounts for - * your application. (scores.resetAll) - * - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_PlayerScoreResetAllResponse - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse"); - } - - /** - * Resets scores for all draft leaderboards for all players. This method is only - * available to user accounts for your developer console. - * (scores.resetAllForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetAllForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAllForAllPlayers', array($params)); - } - - /** - * Resets scores for the leaderboard with the given ID for all players. This - * method is only available to user accounts for your developer console. Only - * draft leaderboards can be reset. (scores.resetForAllPlayers) - * - * @param string $leaderboardId The ID of the leaderboard. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } - - /** - * Resets scores for the leaderboards with the given IDs for all players. This - * method is only available to user accounts for your developer console. Only - * draft leaderboards may be reset. (scores.resetMultipleForAllPlayers) - * - * @param Google_ScoresResetMultipleForAllRequest $postBody - * @param array $optParams Optional parameters. - */ - public function resetMultipleForAllPlayers(Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetMultipleForAllPlayers', array($params)); - } -} - -/** - * The "turnBasedMatches" collection of methods. - * Typical usage is: - * - * $gamesManagementService = new Google_Service_GamesManagement(...); - * $turnBasedMatches = $gamesManagementService->turnBasedMatches; - * - */ -class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource -{ - - /** - * Reset all turn-based match data for a user. This method is only accessible to - * whitelisted tester accounts for your application. (turnBasedMatches.reset) - * - * @param array $optParams Optional parameters. - */ - public function reset($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } - - /** - * Deletes turn-based matches where the only match participants are from - * whitelisted tester accounts for your application. This method is only - * available to user accounts for your developer console. - * (turnBasedMatches.resetForAllPlayers) - * - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } -} - - - - -class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; - protected $resultsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} - -class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection -{ - protected $collection_key = 'achievement_ids'; - protected $internal_gapi_mappings = array( - "achievementIds" => "achievement_ids", - ); - public $achievementIds; - public $kind; - - - public function setAchievementIds($achievementIds) - { - $this->achievementIds = $achievementIds; - } - public function getAchievementIds() - { - return $this->achievementIds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentState; - public $definitionId; - public $kind; - public $updateOccurred; - - - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - public function getCurrentState() - { - return $this->currentState; - } - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - public function getDefinitionId() - { - return $this->definitionId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdateOccurred($updateOccurred) - { - $this->updateOccurred = $updateOccurred; - } - public function getUpdateOccurred() - { - return $this->updateOccurred; - } -} - -class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection -{ - protected $collection_key = 'event_ids'; - protected $internal_gapi_mappings = array( - "eventIds" => "event_ids", - ); - public $eventIds; - public $kind; - - - public function setEventIds($eventIds) - { - $this->eventIds = $eventIds; - } - public function getEventIds() - { - return $this->eventIds; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoMatched; - public $timeMillis; - - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - public function getAutoMatched() - { - return $this->autoMatched; - } - public function setTimeMillis($timeMillis) - { - $this->timeMillis = $timeMillis; - } - public function getTimeMillis() - { - return $this->timeMillis; - } -} - -class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currentExperiencePoints; - protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; - protected $currentLevelDataType = ''; - public $lastLevelUpTimestampMillis; - protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; - protected $nextLevelDataType = ''; - - - public function setCurrentExperiencePoints($currentExperiencePoints) - { - $this->currentExperiencePoints = $currentExperiencePoints; - } - public function getCurrentExperiencePoints() - { - return $this->currentExperiencePoints; - } - public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) - { - $this->currentLevel = $currentLevel; - } - public function getCurrentLevel() - { - return $this->currentLevel; - } - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) - { - $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; - } - public function getLastLevelUpTimestampMillis() - { - return $this->lastLevelUpTimestampMillis; - } - public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) - { - $this->nextLevel = $nextLevel; - } - public function getNextLevel() - { - return $this->nextLevel; - } -} - -class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $level; - public $maxExperiencePoints; - public $minExperiencePoints; - - - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setMaxExperiencePoints($maxExperiencePoints) - { - $this->maxExperiencePoints = $maxExperiencePoints; - } - public function getMaxExperiencePoints() - { - return $this->maxExperiencePoints; - } - public function setMinExperiencePoints($minExperiencePoints) - { - $this->minExperiencePoints = $minExperiencePoints; - } - public function getMinExperiencePoints() - { - return $this->minExperiencePoints; - } -} - -class Google_Service_GamesManagement_HiddenPlayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hiddenTimeMillis; - public $kind; - protected $playerType = 'Google_Service_GamesManagement_Player'; - protected $playerDataType = ''; - - - public function setHiddenTimeMillis($hiddenTimeMillis) - { - $this->hiddenTimeMillis = $hiddenTimeMillis; - } - public function getHiddenTimeMillis() - { - return $this->hiddenTimeMillis; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPlayer(Google_Service_GamesManagement_Player $player) - { - $this->player = $player; - } - public function getPlayer() - { - return $this->player; - } -} - -class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_GamesManagement_Player extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $avatarImageUrl; - public $bannerUrlLandscape; - public $bannerUrlPortrait; - public $displayName; - protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; - protected $experienceInfoDataType = ''; - public $kind; - protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource'; - protected $lastPlayedWithDataType = ''; - protected $nameType = 'Google_Service_GamesManagement_PlayerName'; - protected $nameDataType = ''; - public $originalPlayerId; - public $playerId; - public $title; - - - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } - public function setBannerUrlLandscape($bannerUrlLandscape) - { - $this->bannerUrlLandscape = $bannerUrlLandscape; - } - public function getBannerUrlLandscape() - { - return $this->bannerUrlLandscape; - } - public function setBannerUrlPortrait($bannerUrlPortrait) - { - $this->bannerUrlPortrait = $bannerUrlPortrait; - } - public function getBannerUrlPortrait() - { - return $this->bannerUrlPortrait; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) - { - $this->experienceInfo = $experienceInfo; - } - public function getExperienceInfo() - { - return $this->experienceInfo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) - { - $this->lastPlayedWith = $lastPlayedWith; - } - public function getLastPlayedWith() - { - return $this->lastPlayedWith; - } - public function setName(Google_Service_GamesManagement_PlayerName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOriginalPlayerId($originalPlayerId) - { - $this->originalPlayerId = $originalPlayerId; - } - public function getOriginalPlayerId() - { - return $this->originalPlayerId; - } - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - public function getPlayerId() - { - return $this->playerId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_GamesManagement_PlayerName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection -{ - protected $collection_key = 'results'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse'; - protected $resultsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResults($results) - { - $this->results = $results; - } - public function getResults() - { - return $this->results; - } -} - -class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection -{ - protected $collection_key = 'resetScoreTimeSpans'; - protected $internal_gapi_mappings = array( - ); - public $definitionId; - public $kind; - public $resetScoreTimeSpans; - - - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - public function getDefinitionId() - { - return $this->definitionId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResetScoreTimeSpans($resetScoreTimeSpans) - { - $this->resetScoreTimeSpans = $resetScoreTimeSpans; - } - public function getResetScoreTimeSpans() - { - return $this->resetScoreTimeSpans; - } -} - -class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection -{ - protected $collection_key = 'quest_ids'; - protected $internal_gapi_mappings = array( - "questIds" => "quest_ids", - ); - public $kind; - public $questIds; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setQuestIds($questIds) - { - $this->questIds = $questIds; - } - public function getQuestIds() - { - return $this->questIds; - } -} - -class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection -{ - protected $collection_key = 'leaderboard_ids'; - protected $internal_gapi_mappings = array( - "leaderboardIds" => "leaderboard_ids", - ); - public $kind; - public $leaderboardIds; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLeaderboardIds($leaderboardIds) - { - $this->leaderboardIds = $leaderboardIds; - } - public function getLeaderboardIds() - { - return $this->leaderboardIds; - } -} diff --git a/src/Google/Service/Genomics.php b/src/Google/Service/Genomics.php deleted file mode 100644 index cdb7a6559..000000000 --- a/src/Google/Service/Genomics.php +++ /dev/null @@ -1,4310 +0,0 @@ - - * An API to store, process, explore, and share genomic data. It supports - * reference-based alignments, genetic variants, and reference genomes. This API - * provides an implementation of the Global Alliance for Genomics and Health - * (GA4GH) v0.5.1 API as well as several extensions.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Genomics extends Google_Service -{ - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = - "https://www.googleapis.com/auth/bigquery"; - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage Genomics data. */ - const GENOMICS = - "https://www.googleapis.com/auth/genomics"; - /** View Genomics data. */ - const GENOMICS_READONLY = - "https://www.googleapis.com/auth/genomics.readonly"; - - public $callsets; - public $datasets; - public $operations; - public $readgroupsets; - public $readgroupsets_coveragebuckets; - public $reads; - public $references; - public $references_bases; - public $referencesets; - public $variants; - public $variantsets; - - - /** - * Constructs the internal representation of the Genomics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://genomics.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'genomics'; - - $this->callsets = new Google_Service_Genomics_Callsets_Resource( - $this, - $this->serviceName, - 'callsets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/callsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/callsets/{callSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/callsets/{callSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'v1/callsets/{callSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'v1/callsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->datasets = new Google_Service_Genomics_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/datasets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1/datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'v1/datasets/{datasetId}:undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_Genomics_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'v1/{+name}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->readgroupsets = new Google_Service_Genomics_Readgroupsets_Resource( - $this, - $this->serviceName, - 'readgroupsets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v1/readgroupsets/{readGroupSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'v1/readgroupsets/{readGroupSetId}:export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/readgroupsets/{readGroupSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'v1/readgroupsets:import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'v1/readgroupsets/{readGroupSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'v1/readgroupsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource( - $this, - $this->serviceName, - 'coveragebuckets', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'referenceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'targetBucketWidth' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->reads = new Google_Service_Genomics_Reads_Resource( - $this, - $this->serviceName, - 'reads', - array( - 'methods' => array( - 'search' => array( - 'path' => 'v1/reads/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'stream' => array( - 'path' => 'v1/reads:stream', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references = new Google_Service_Genomics_References_Resource( - $this, - $this->serviceName, - 'references', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/references/{referenceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'v1/references/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references_bases = new Google_Service_Genomics_ReferencesBases_Resource( - $this, - $this->serviceName, - 'bases', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/references/{referenceId}/bases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'start' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->referencesets = new Google_Service_Genomics_Referencesets_Resource( - $this, - $this->serviceName, - 'referencesets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/referencesets/{referenceSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'v1/referencesets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->variants = new Google_Service_Genomics_Variants_Resource( - $this, - $this->serviceName, - 'variants', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/variants', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/variants/{variantId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/variants/{variantId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'v1/variants:import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'merge' => array( - 'path' => 'v1/variants:merge', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'v1/variants/{variantId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'v1/variants/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'stream' => array( - 'path' => 'v1/variants:stream', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->variantsets = new Google_Service_Genomics_Variantsets_Resource( - $this, - $this->serviceName, - 'variantsets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/variantsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'v1/variantsets/{variantSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'v1/variantsets/{variantSetId}:export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/variantsets/{variantSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'v1/variantsets/{variantSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateMask' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'v1/variantsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "callsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $callsets = $genomicsService->callsets; - * - */ -class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new call set. For the definitions of call sets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (callsets.create) - * - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Deletes a call set. For the definitions of call sets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (callsets.delete) - * - * @param string $callSetId The ID of the call set to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Gets a call set by ID. For the definitions of call sets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (callsets.get) - * - * @param string $callSetId The ID of the call set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function get($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Updates a call set. For the definitions of call sets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This method supports patch semantics. (callsets.patch) - * - * @param string $callSetId The ID of the call set to be updated. - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask An optional mask specifying which fields to - * update. At this time, the only mutable field is name. The only acceptable - * value is "name". If unspecified, all mutable fields will be updated. - * @return Google_Service_Genomics_CallSet - */ - public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('callSetId' => $callSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Gets a list of call sets matching the criteria. For the definitions of call - * sets and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schema - * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178). - * (callsets.search) - * - * @param Google_SearchCallSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchCallSetsResponse - */ - public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); - } -} - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $datasets = $genomicsService->datasets; - * - */ -class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new dataset. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (datasets.create) - * - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Deletes a dataset. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (datasets.delete) - * - * @param string $datasetId The ID of the dataset to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Gets a dataset by ID. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (datasets.get) - * - * @param string $datasetId The ID of the dataset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function get($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Gets the access control policy for the dataset. This is empty if the policy - * or resource does not exist. See Getting a Policy for more information. For - * the definitions of datasets and other genomics resources, see [Fundamentals - * of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- - * genomics) (datasets.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. Format is `datasets/`. - * @param Google_GetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Policy - */ - public function getIamPolicy($resource, Google_Service_Genomics_GetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Genomics_Policy"); - } - - /** - * Lists datasets within a project. For the definitions of datasets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (datasets.listDatasets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string projectId Required. The project to list datasets for. - * @opt_param int pageSize The maximum number of results to return in a single - * page. If unspecified, defaults to 50. The maximum value is 1024. - * @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_Service_Genomics_ListDatasetsResponse - */ - public function listDatasets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); - } - - /** - * Updates a dataset. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This method supports patch semantics. (datasets.patch) - * - * @param string $datasetId The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask An optional mask specifying which fields to - * update. At this time, the only mutable field is name. The only acceptable - * value is "name". If unspecified, all mutable fields will be updated. - * @return Google_Service_Genomics_Dataset - */ - public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Sets the access control policy on the specified dataset. Replaces any - * existing policy. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * See Setting a Policy for more information. (datasets.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. Format is `datasets/`. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Policy - */ - public function setIamPolicy($resource, Google_Service_Genomics_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Genomics_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. See Testing - * Permissions for more information. For the definitions of datasets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (datasets.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. Format is `datasets/`. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Genomics_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Genomics_TestIamPermissionsResponse"); - } - - /** - * Undeletes a dataset by restoring a dataset which was deleted via this API. - * For the definitions of datasets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) This operation is only possible for a week - * after the deletion occurred. (datasets.undelete) - * - * @param string $datasetId The ID of the dataset to be undeleted. - * @param Google_UndeleteDatasetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function undelete($datasetId, Google_Service_Genomics_UndeleteDatasetRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $operations = $genomicsService->operations; - * - */ -class Google_Service_Genomics_Operations_Resource extends Google_Service_Resource -{ - - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not guaranteed. - * Clients may use Operations.GetOperation or Operations.ListOperations to check - * whether the cancellation succeeded or the operation completed despite - * cancellation. (operations.cancel) - * - * @param string $name The name of the operation resource to be cancelled. - * @param Google_CancelOperationRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function cancel($name, Google_Service_Genomics_CancelOperationRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) - * - * @param string $name The name of the operation resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Operation - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. - * (operations.listOperations) - * - * @param string $name The name of the operation collection. - * @param array $optParams Optional parameters. - * - * @opt_param string filter A string for filtering Operations. The following - * filter fields are supported: * projectId: Required. Corresponds to - * OperationMetadata.projectId. * createTime: The time this job was created, in - * seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use - * `>=` and/or `= 1432140000` * `projectId = my-project AND createTime >= - * 1432140000 AND createTime <= 1432150000 AND status = RUNNING` - * @opt_param int pageSize The maximum number of results to return. If - * unspecified, defaults to 256. The maximum value is 2048. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_Genomics_ListOperationsResponse - */ - public function listOperations($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListOperationsResponse"); - } -} - -/** - * The "readgroupsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $readgroupsets = $genomicsService->readgroupsets; - * - */ -class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Resource -{ - - /** - * Deletes a read group set. For the definitions of read group sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (readgroupsets.delete) - * - * @param string $readGroupSetId The ID of the read group set to be deleted. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Exports a read group set to a BAM file in Google Cloud Storage. For the - * definitions of read group sets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) Note that currently there may be some - * differences between exported BAM files and the original BAM file at the time - * of import. See - * [ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) - * for caveats. (readgroupsets.export) - * - * @param string $readGroupSetId Required. The ID of the read group set to - * export. The caller must have READ access to this read group set. - * @param Google_ExportReadGroupSetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Operation - */ - public function export($readGroupSetId, Google_Service_Genomics_ExportReadGroupSetRequest $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_Operation"); - } - - /** - * Gets a read group set by ID. For the definitions of read group sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (readgroupsets.get) - * - * @param string $readGroupSetId The ID of the read group set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function get($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - - /** - * Creates read group sets by asynchronously importing the provided information. - * For the definitions of read group sets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) The caller must have WRITE permissions to - * the dataset. ## Notes on [BAM](https://samtools.github.io/hts- - * specs/SAMv1.pdf) import - Tags will be converted to strings - tag types are - * not preserved - Comments (`@CO`) in the input file header will not be - * preserved - Original header order of references (`@SQ`) will not be preserved - * - Any reverse stranded unmapped reads will be reverse complemented, and their - * qualities (also the "BQ" and "OQ" tags, if any) will be reversed - Unmapped - * reads will be stripped of positional information (reference name and - * position) (readgroupsets.import) - * - * @param Google_ImportReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Operation - */ - public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_Operation"); - } - - /** - * Updates a read group set. For the definitions of read group sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This method supports patch semantics. (readgroupsets.patch) - * - * @param string $readGroupSetId The ID of the read group set to be updated. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param Google_ReadGroupSet $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask An optional mask specifying which fields to - * update. Supported fields: * name. * referenceSetId. Leaving `updateMask` - * unset is equivalent to specifying all mutable fields. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - - /** - * Searches for read group sets matching the criteria. For the definitions of - * read group sets and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/s - * chemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135). - * (readgroupsets.search) - * - * @param Google_SearchReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadGroupSetsResponse - */ - public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); - } -} - -/** - * The "coveragebuckets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $coveragebuckets = $genomicsService->coveragebuckets; - * - */ -class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Google_Service_Resource -{ - - /** - * Lists fixed width coverage buckets for a read group set, each of which - * correspond to a range of a reference sequence. Each bucket summarizes - * coverage information across its corresponding genomic range. For the - * definitions of read group sets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) Coverage is defined as the number of reads - * which are aligned to a given base in the reference sequence. Coverage buckets - * are available at several precomputed bucket widths, enabling retrieval of - * various coverage 'zoom levels'. The caller must have READ permissions for the - * target read group set. (coveragebuckets.listReadgroupsetsCoveragebuckets) - * - * @param string $readGroupSetId Required. The ID of the read group set over - * which coverage is requested. - * @param array $optParams Optional parameters. - * - * @opt_param string referenceName The name of the reference to query, within - * the reference set associated with this query. Optional. - * @opt_param string start The start position of the range on the reference, - * 0-based inclusive. If specified, `referenceName` must also be specified. - * Defaults to 0. - * @opt_param string end The end position of the range on the reference, 0-based - * exclusive. If specified, `referenceName` must also be specified. If unset or - * 0, defaults to the length of the reference. - * @opt_param string targetBucketWidth The desired width of each reported - * coverage bucket in base pairs. This will be rounded down to the nearest - * precomputed bucket width; the value of which is returned as `bucketWidth` in - * the response. Defaults to infinity (each bucket spans an entire reference - * sequence) or the length of the target range, if specified. The smallest - * precomputed `bucketWidth` is currently 2048 base pairs; this is subject to - * change. - * @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 int pageSize The maximum number of results to return in a single - * page. If unspecified, defaults to 1024. The maximum value is 2048. - * @return Google_Service_Genomics_ListCoverageBucketsResponse - */ - public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); - } -} - -/** - * The "reads" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $reads = $genomicsService->reads; - * - */ -class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource -{ - - /** - * Gets a list of reads for one or more read group sets. For the definitions of - * read group sets and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Reads search operates over a genomic coordinate space of reference sequence & - * position defined over the reference sequences to which the requested read - * group sets are aligned. If a target positional range is specified, search - * returns all reads whose alignment to the reference genome overlap the range. - * A query which specifies only read group set IDs yields all reads in those - * read group sets, including unmapped reads. All reads returned (including - * reads on subsequent pages) are ordered by genomic coordinate (by reference - * sequence, then position). Reads with equivalent genomic coordinates are - * returned in an unspecified order. This order is consistent, such that two - * queries for the same content (regardless of page size) yield reads in the - * same order across their respective streams of paginated responses. Implements - * [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/ - * src/main/resources/avro/readmethods.avdl#L85). (reads.search) - * - * @param Google_SearchReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsResponse - */ - public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); - } - - /** - * Returns a stream of all the reads matching the search request, ordered by - * reference name, position, and ID. (reads.stream) - * - * @param Google_StreamReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_StreamReadsResponse - */ - public function stream(Google_Service_Genomics_StreamReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stream', array($params), "Google_Service_Genomics_StreamReadsResponse"); - } -} - -/** - * The "references" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $references = $genomicsService->references; - * - */ -class Google_Service_Genomics_References_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference. For the definitions of references and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/ - * blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L158). - * (references.get) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Reference - */ - public function get($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Reference"); - } - - /** - * Searches for references which match the given criteria. For the definitions - * of references and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/sche - * mas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L146). - * (references.search) - * - * @param Google_SearchReferencesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferencesResponse - */ - public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse"); - } -} - -/** - * The "bases" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $bases = $genomicsService->bases; - * - */ -class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Resource -{ - - /** - * Lists the bases in a reference, optionally restricted to a range. For the - * definitions of references and other genomics resources, see [Fundamentals of - * Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- - * genomics) Implements [GlobalAllianceApi.getReferenceBases](https://github.com - * /ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221 - * ). (bases.listReferencesBases) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * - * @opt_param string start The start position (0-based) of this query. Defaults - * to 0. - * @opt_param string end The end position (0-based, exclusive) of this query. - * Defaults to the length of this reference. - * @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 int pageSize The maximum number of bases to return in a single - * page. If unspecified, defaults to 200Kbp (kilo base pairs). The maximum value - * is 10Mbp (mega base pairs). - * @return Google_Service_Genomics_ListBasesResponse - */ - public function listReferencesBases($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse"); - } -} - -/** - * The "referencesets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $referencesets = $genomicsService->referencesets; - * - */ -class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference set. For the definitions of references and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schem - * as/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L83). - * (referencesets.get) - * - * @param string $referenceSetId The ID of the reference set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReferenceSet - */ - public function get($referenceSetId, $optParams = array()) - { - $params = array('referenceSetId' => $referenceSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); - } - - /** - * Searches for reference sets which match the given criteria. For the - * definitions of references and other genomics resources, see [Fundamentals of - * Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- - * genomics) Implements [GlobalAllianceApi.searchReferenceSets](https://github.c - * om/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L7 - * 1) (referencesets.search) - * - * @param Google_SearchReferenceSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferenceSetsResponse - */ - public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse"); - } -} - -/** - * The "variants" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variants = $genomicsService->variants; - * - */ -class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource -{ - - /** - * Creates a new variant. For the definitions of variants and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variants.create) - * - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Deletes a variant. For the definitions of variants and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variants.delete) - * - * @param string $variantId The ID of the variant to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Gets a variant by ID. For the definitions of variants and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variants.get) - * - * @param string $variantId The ID of the variant. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function get($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Creates variant data by asynchronously importing the provided information. - * For the definitions of variant sets and other genomics resources, see - * [Fundamentals of Google Genomics](https://cloud.google.com/genomics - * /fundamentals-of-google-genomics) The variants for import will be merged with - * any existing variant that matches its reference sequence, start, end, - * reference bases, and alternative bases. If no such variant exists, a new one - * will be created. When variants are merged, the call information from the new - * variant is added to the existing variant, and other fields (such as key/value - * pairs) are discarded. In particular, this means for merged VCF variants that - * have conflicting INFO fields, some data will be arbitrarily discarded. As a - * special case, for single-sample VCF files, QUAL and FILTER fields will be - * moved to the call level; these are sometimes interpreted in a call-specific - * context. Imported VCF headers are appended to the metadata already in a - * variant set. (variants.import) - * - * @param Google_ImportVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Operation - */ - public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_Operation"); - } - - /** - * Merges the given variants with existing variants. For the definitions of - * variants and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Each variant will be merged with an existing variant that matches its - * reference sequence, start, end, reference bases, and alternative bases. If no - * such variant exists, a new one will be created. When variants are merged, the - * call information from the new variant is added to the existing variant, and - * other fields (such as key/value pairs) are discarded. (variants.merge) - * - * @param Google_MergeVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function merge(Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('merge', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Updates a variant. For the definitions of variants and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This method supports patch semantics. Returns the modified variant without - * its calls. (variants.patch) - * - * @param string $variantId The ID of the variant to be updated. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask An optional mask specifying which fields to - * update. At this time, mutable fields are names and info. Acceptable values - * are "names" and "info". If unspecified, all mutable fields will be updated. - * @return Google_Service_Genomics_Variant - */ - public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Gets a list of variants matching the criteria. For the definitions of - * variants and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Implements [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schema - * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126). - * (variants.search) - * - * @param Google_SearchVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantsResponse - */ - public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); - } - - /** - * Returns a stream of all the variants matching the search request, ordered by - * reference name, position, and ID. (variants.stream) - * - * @param Google_StreamVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_StreamVariantsResponse - */ - public function stream(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stream', array($params), "Google_Service_Genomics_StreamVariantsResponse"); - } -} - -/** - * The "variantsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variantsets = $genomicsService->variantsets; - * - */ -class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new variant set. For the definitions of variant sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * The provided variant set must have a valid `datasetId` set - all other fields - * are optional. Note that the `id` field will be ignored, as this is assigned - * by the server. (variantsets.create) - * - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function create(Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Deletes a variant set including all variants, call sets, and calls within. - * This is not reversible. For the definitions of variant sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variantsets.delete) - * - * @param string $variantSetId The ID of the variant set to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Empty - */ - public function delete($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Genomics_Empty"); - } - - /** - * Exports variant set data to an external destination. For the definitions of - * variant sets and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variantsets.export) - * - * @param string $variantSetId Required. The ID of the variant set that contains - * variant data which should be exported. The caller must have READ access to - * this variant set. - * @param Google_ExportVariantSetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Operation - */ - public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_Operation"); - } - - /** - * Gets a variant set by ID. For the definitions of variant sets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variantsets.get) - * - * @param string $variantSetId Required. The ID of the variant set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function get($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Updates a variant set using patch semantics. For the definitions of variant - * sets and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * (variantsets.patch) - * - * @param string $variantSetId The ID of the variant to be updated (must already - * exist). - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string updateMask An optional mask specifying which fields to - * update. Supported fields: * metadata. Leaving `updateMask` unset is - * equivalent to specifying all mutable fields. - * @return Google_Service_Genomics_VariantSet - */ - public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Returns a list of all variant sets matching search criteria. For the - * definitions of variant sets and other genomics resources, see [Fundamentals - * of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- - * genomics) Implements [GlobalAllianceApi.searchVariantSets](https://github.com - * /ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49). - * (variantsets.search) - * - * @param Google_SearchVariantSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantSetsResponse - */ - public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); - } -} - - - - -class Google_Service_Genomics_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } -} - -class Google_Service_Genomics_CallSet extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $created; - public $id; - public $info; - public $name; - public $sampleId; - public $variantSetIds; - - - 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 setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_CancelOperationRequest extends Google_Model -{ -} - -class Google_Service_Genomics_CigarUnit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operation; - public $operationLength; - public $referenceSequence; - - - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setOperationLength($operationLength) - { - $this->operationLength = $operationLength; - } - public function getOperationLength() - { - return $this->operationLength; - } - public function setReferenceSequence($referenceSequence) - { - $this->referenceSequence = $referenceSequence; - } - public function getReferenceSequence() - { - return $this->referenceSequence; - } -} - -class Google_Service_Genomics_CoverageBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $meanCoverage; - protected $rangeType = 'Google_Service_Genomics_Range'; - protected $rangeDataType = ''; - - - public function setMeanCoverage($meanCoverage) - { - $this->meanCoverage = $meanCoverage; - } - public function getMeanCoverage() - { - return $this->meanCoverage; - } - public function setRange(Google_Service_Genomics_Range $range) - { - $this->range = $range; - } - public function getRange() - { - return $this->range; - } -} - -class Google_Service_Genomics_Dataset extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $id; - public $name; - public $projectId; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_Genomics_Empty extends Google_Model -{ -} - -class Google_Service_Genomics_Experiment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instrumentModel; - public $libraryId; - public $platformUnit; - public $sequencingCenter; - - - public function setInstrumentModel($instrumentModel) - { - $this->instrumentModel = $instrumentModel; - } - public function getInstrumentModel() - { - return $this->instrumentModel; - } - public function setLibraryId($libraryId) - { - $this->libraryId = $libraryId; - } - public function getLibraryId() - { - return $this->libraryId; - } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setSequencingCenter($sequencingCenter) - { - $this->sequencingCenter = $sequencingCenter; - } - public function getSequencingCenter() - { - return $this->sequencingCenter; - } -} - -class Google_Service_Genomics_ExportReadGroupSetRequest extends Google_Collection -{ - protected $collection_key = 'referenceNames'; - protected $internal_gapi_mappings = array( - ); - public $exportUri; - public $projectId; - public $referenceNames; - - - public function setExportUri($exportUri) - { - $this->exportUri = $exportUri; - } - public function getExportUri() - { - return $this->exportUri; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReferenceNames($referenceNames) - { - $this->referenceNames = $referenceNames; - } - public function getReferenceNames() - { - return $this->referenceNames; - } -} - -class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection -{ - protected $collection_key = 'callSetIds'; - protected $internal_gapi_mappings = array( - ); - public $bigqueryDataset; - public $bigqueryTable; - public $callSetIds; - public $format; - public $projectId; - - - public function setBigqueryDataset($bigqueryDataset) - { - $this->bigqueryDataset = $bigqueryDataset; - } - public function getBigqueryDataset() - { - return $this->bigqueryDataset; - } - public function setBigqueryTable($bigqueryTable) - { - $this->bigqueryTable = $bigqueryTable; - } - public function getBigqueryTable() - { - return $this->bigqueryTable; - } - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_Genomics_GetIamPolicyRequest extends Google_Model -{ -} - -class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $partitionStrategy; - public $referenceSetId; - public $sourceUris; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setPartitionStrategy($partitionStrategy) - { - $this->partitionStrategy = $partitionStrategy; - } - public function getPartitionStrategy() - { - return $this->partitionStrategy; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $readGroupSetIds; - - - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } -} - -class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $format; - public $normalizeReferenceNames; - public $sourceUris; - public $variantSetId; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setNormalizeReferenceNames($normalizeReferenceNames) - { - $this->normalizeReferenceNames = $normalizeReferenceNames; - } - public function getNormalizeReferenceNames() - { - return $this->normalizeReferenceNames; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } -} - -class Google_Service_Genomics_ImportVariantsResponse extends Google_Collection -{ - protected $collection_key = 'callSetIds'; - protected $internal_gapi_mappings = array( - ); - public $callSetIds; - - - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } -} - -class Google_Service_Genomics_LinearAlignment extends Google_Collection -{ - protected $collection_key = 'cigar'; - protected $internal_gapi_mappings = array( - ); - protected $cigarType = 'Google_Service_Genomics_CigarUnit'; - protected $cigarDataType = 'array'; - public $mappingQuality; - protected $positionType = 'Google_Service_Genomics_Position'; - protected $positionDataType = ''; - - - public function setCigar($cigar) - { - $this->cigar = $cigar; - } - public function getCigar() - { - return $this->cigar; - } - public function setMappingQuality($mappingQuality) - { - $this->mappingQuality = $mappingQuality; - } - public function getMappingQuality() - { - return $this->mappingQuality; - } - public function setPosition(Google_Service_Genomics_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Genomics_ListBasesResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $offset; - public $sequence; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOffset($offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - public function getSequence() - { - return $this->sequence; - } -} - -class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection -{ - protected $collection_key = 'coverageBuckets'; - protected $internal_gapi_mappings = array( - ); - public $bucketWidth; - protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; - protected $coverageBucketsDataType = 'array'; - public $nextPageToken; - - - public function setBucketWidth($bucketWidth) - { - $this->bucketWidth = $bucketWidth; - } - public function getBucketWidth() - { - return $this->bucketWidth; - } - public function setCoverageBuckets($coverageBuckets) - { - $this->coverageBuckets = $coverageBuckets; - } - public function getCoverageBuckets() - { - return $this->coverageBuckets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection -{ - protected $collection_key = 'datasets'; - protected $internal_gapi_mappings = array( - ); - protected $datasetsType = 'Google_Service_Genomics_Dataset'; - protected $datasetsDataType = 'array'; - public $nextPageToken; - - - public function setDatasets($datasets) - { - $this->datasets = $datasets; - } - public function getDatasets() - { - return $this->datasets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_Genomics_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - public $variantSetId; - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_Genomics_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_Genomics_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Genomics_OperationEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } -} - -class Google_Service_Genomics_OperationMetadata extends Google_Collection -{ - protected $collection_key = 'events'; - protected $internal_gapi_mappings = array( - ); - public $createTime; - protected $eventsType = 'Google_Service_Genomics_OperationEvent'; - protected $eventsDataType = 'array'; - public $projectId; - public $request; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setEvents($events) - { - $this->events = $events; - } - public function getEvents() - { - return $this->events; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRequest($request) - { - $this->request = $request; - } - public function getRequest() - { - return $this->request; - } -} - -class Google_Service_Genomics_Policy extends Google_Collection -{ - protected $collection_key = 'bindings'; - protected $internal_gapi_mappings = array( - ); - protected $bindingsType = 'Google_Service_Genomics_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - public $version; - - - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Genomics_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $position; - public $referenceName; - public $reverseStrand; - - - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setReverseStrand($reverseStrand) - { - $this->reverseStrand = $reverseStrand; - } - public function getReverseStrand() - { - return $this->reverseStrand; - } -} - -class Google_Service_Genomics_Program extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commandLine; - public $id; - public $name; - public $prevProgramId; - public $version; - - - public function setCommandLine($commandLine) - { - $this->commandLine = $commandLine; - } - public function getCommandLine() - { - return $this->commandLine; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPrevProgramId($prevProgramId) - { - $this->prevProgramId = $prevProgramId; - } - public function getPrevProgramId() - { - return $this->prevProgramId; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Genomics_Range extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_Read extends Google_Collection -{ - protected $collection_key = 'alignedQuality'; - protected $internal_gapi_mappings = array( - ); - public $alignedQuality; - public $alignedSequence; - protected $alignmentType = 'Google_Service_Genomics_LinearAlignment'; - protected $alignmentDataType = ''; - public $duplicateFragment; - public $failedVendorQualityChecks; - public $fragmentLength; - public $fragmentName; - public $id; - public $info; - protected $nextMatePositionType = 'Google_Service_Genomics_Position'; - protected $nextMatePositionDataType = ''; - public $numberReads; - public $properPlacement; - public $readGroupId; - public $readGroupSetId; - public $readNumber; - public $secondaryAlignment; - public $supplementaryAlignment; - - - public function setAlignedQuality($alignedQuality) - { - $this->alignedQuality = $alignedQuality; - } - public function getAlignedQuality() - { - return $this->alignedQuality; - } - public function setAlignedSequence($alignedSequence) - { - $this->alignedSequence = $alignedSequence; - } - public function getAlignedSequence() - { - return $this->alignedSequence; - } - public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment) - { - $this->alignment = $alignment; - } - public function getAlignment() - { - return $this->alignment; - } - public function setDuplicateFragment($duplicateFragment) - { - $this->duplicateFragment = $duplicateFragment; - } - public function getDuplicateFragment() - { - return $this->duplicateFragment; - } - public function setFailedVendorQualityChecks($failedVendorQualityChecks) - { - $this->failedVendorQualityChecks = $failedVendorQualityChecks; - } - public function getFailedVendorQualityChecks() - { - return $this->failedVendorQualityChecks; - } - public function setFragmentLength($fragmentLength) - { - $this->fragmentLength = $fragmentLength; - } - public function getFragmentLength() - { - return $this->fragmentLength; - } - public function setFragmentName($fragmentName) - { - $this->fragmentName = $fragmentName; - } - public function getFragmentName() - { - return $this->fragmentName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePosition) - { - $this->nextMatePosition = $nextMatePosition; - } - public function getNextMatePosition() - { - return $this->nextMatePosition; - } - public function setNumberReads($numberReads) - { - $this->numberReads = $numberReads; - } - public function getNumberReads() - { - return $this->numberReads; - } - public function setProperPlacement($properPlacement) - { - $this->properPlacement = $properPlacement; - } - public function getProperPlacement() - { - return $this->properPlacement; - } - public function setReadGroupId($readGroupId) - { - $this->readGroupId = $readGroupId; - } - public function getReadGroupId() - { - return $this->readGroupId; - } - public function setReadGroupSetId($readGroupSetId) - { - $this->readGroupSetId = $readGroupSetId; - } - public function getReadGroupSetId() - { - return $this->readGroupSetId; - } - public function setReadNumber($readNumber) - { - $this->readNumber = $readNumber; - } - public function getReadNumber() - { - return $this->readNumber; - } - public function setSecondaryAlignment($secondaryAlignment) - { - $this->secondaryAlignment = $secondaryAlignment; - } - public function getSecondaryAlignment() - { - return $this->secondaryAlignment; - } - public function setSupplementaryAlignment($supplementaryAlignment) - { - $this->supplementaryAlignment = $supplementaryAlignment; - } - public function getSupplementaryAlignment() - { - return $this->supplementaryAlignment; - } -} - -class Google_Service_Genomics_ReadGroup extends Google_Collection -{ - protected $collection_key = 'programs'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $description; - protected $experimentType = 'Google_Service_Genomics_Experiment'; - protected $experimentDataType = ''; - public $id; - public $info; - public $name; - public $predictedInsertSize; - protected $programsType = 'Google_Service_Genomics_Program'; - protected $programsDataType = 'array'; - public $referenceSetId; - public $sampleId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExperiment(Google_Service_Genomics_Experiment $experiment) - { - $this->experiment = $experiment; - } - public function getExperiment() - { - return $this->experiment; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPredictedInsertSize($predictedInsertSize) - { - $this->predictedInsertSize = $predictedInsertSize; - } - public function getPredictedInsertSize() - { - return $this->predictedInsertSize; - } - public function setPrograms($programs) - { - $this->programs = $programs; - } - public function getPrograms() - { - return $this->programs; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } -} - -class Google_Service_Genomics_ReadGroupSet extends Google_Collection -{ - protected $collection_key = 'readGroups'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $filename; - public $id; - public $info; - public $name; - protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; - protected $readGroupsDataType = 'array'; - public $referenceSetId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReadGroups($readGroups) - { - $this->readGroups = $readGroups; - } - public function getReadGroups() - { - return $this->readGroups; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } -} - -class Google_Service_Genomics_Reference extends Google_Collection -{ - protected $collection_key = 'sourceAccessions'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $length; - public $md5checksum; - public $name; - public $ncbiTaxonId; - public $sourceAccessions; - public $sourceUri; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLength($length) - { - $this->length = $length; - } - public function getLength() - { - return $this->length; - } - public function setMd5checksum($md5checksum) - { - $this->md5checksum = $md5checksum; - } - public function getMd5checksum() - { - return $this->md5checksum; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNcbiTaxonId($ncbiTaxonId) - { - $this->ncbiTaxonId = $ncbiTaxonId; - } - public function getNcbiTaxonId() - { - return $this->ncbiTaxonId; - } - public function setSourceAccessions($sourceAccessions) - { - $this->sourceAccessions = $sourceAccessions; - } - public function getSourceAccessions() - { - return $this->sourceAccessions; - } - public function setSourceUri($sourceUri) - { - $this->sourceUri = $sourceUri; - } - public function getSourceUri() - { - return $this->sourceUri; - } -} - -class Google_Service_Genomics_ReferenceBound extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $referenceName; - public $upperBound; - - - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } - public function getUpperBound() - { - return $this->upperBound; - } -} - -class Google_Service_Genomics_ReferenceSet extends Google_Collection -{ - protected $collection_key = 'sourceAccessions'; - protected $internal_gapi_mappings = array( - ); - public $assemblyId; - public $description; - public $id; - public $md5checksum; - public $ncbiTaxonId; - public $referenceIds; - public $sourceAccessions; - public $sourceUri; - - - public function setAssemblyId($assemblyId) - { - $this->assemblyId = $assemblyId; - } - public function getAssemblyId() - { - return $this->assemblyId; - } - 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 setMd5checksum($md5checksum) - { - $this->md5checksum = $md5checksum; - } - public function getMd5checksum() - { - return $this->md5checksum; - } - public function setNcbiTaxonId($ncbiTaxonId) - { - $this->ncbiTaxonId = $ncbiTaxonId; - } - public function getNcbiTaxonId() - { - return $this->ncbiTaxonId; - } - public function setReferenceIds($referenceIds) - { - $this->referenceIds = $referenceIds; - } - public function getReferenceIds() - { - return $this->referenceIds; - } - public function setSourceAccessions($sourceAccessions) - { - $this->sourceAccessions = $sourceAccessions; - } - public function getSourceAccessions() - { - return $this->sourceAccessions; - } - public function setSourceUri($sourceUri) - { - $this->sourceUri = $sourceUri; - } - public function getSourceUri() - { - return $this->sourceUri; - } -} - -class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $name; - public $pageSize; - public $pageToken; - public $variantSetIds; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection -{ - protected $collection_key = 'callSets'; - protected $internal_gapi_mappings = array( - ); - protected $callSetsType = 'Google_Service_Genomics_CallSet'; - protected $callSetsDataType = 'array'; - public $nextPageToken; - - - public function setCallSets($callSets) - { - $this->callSets = $callSets; - } - public function getCallSets() - { - return $this->callSets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'datasetIds'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $name; - public $pageSize; - public $pageToken; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection -{ - protected $collection_key = 'readGroupSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; - protected $readGroupSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReadGroupSets($readGroupSets) - { - $this->readGroupSets = $readGroupSets; - } - public function getReadGroupSets() - { - return $this->readGroupSets; - } -} - -class Google_Service_Genomics_SearchReadsRequest extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $end; - public $pageSize; - public $pageToken; - public $readGroupIds; - public $readGroupSetIds; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReadGroupIds($readGroupIds) - { - $this->readGroupIds = $readGroupIds; - } - public function getReadGroupIds() - { - return $this->readGroupIds; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_SearchReadsResponse extends Google_Collection -{ - protected $collection_key = 'alignments'; - protected $internal_gapi_mappings = array( - ); - protected $alignmentsType = 'Google_Service_Genomics_Read'; - protected $alignmentsDataType = 'array'; - public $nextPageToken; - - - public function setAlignments($alignments) - { - $this->alignments = $alignments; - } - public function getAlignments() - { - return $this->alignments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection -{ - protected $collection_key = 'md5checksums'; - protected $internal_gapi_mappings = array( - ); - public $accessions; - public $assemblyId; - public $md5checksums; - public $pageSize; - public $pageToken; - - - public function setAccessions($accessions) - { - $this->accessions = $accessions; - } - public function getAccessions() - { - return $this->accessions; - } - public function setAssemblyId($assemblyId) - { - $this->assemblyId = $assemblyId; - } - public function getAssemblyId() - { - return $this->assemblyId; - } - public function setMd5checksums($md5checksums) - { - $this->md5checksums = $md5checksums; - } - public function getMd5checksums() - { - return $this->md5checksums; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection -{ - protected $collection_key = 'referenceSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet'; - protected $referenceSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReferenceSets($referenceSets) - { - $this->referenceSets = $referenceSets; - } - public function getReferenceSets() - { - return $this->referenceSets; - } -} - -class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection -{ - protected $collection_key = 'md5checksums'; - protected $internal_gapi_mappings = array( - ); - public $accessions; - public $md5checksums; - public $pageSize; - public $pageToken; - public $referenceSetId; - - - public function setAccessions($accessions) - { - $this->accessions = $accessions; - } - public function getAccessions() - { - return $this->accessions; - } - public function setMd5checksums($md5checksums) - { - $this->md5checksums = $md5checksums; - } - public function getMd5checksums() - { - return $this->md5checksums; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } -} - -class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection -{ - protected $collection_key = 'references'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $referencesType = 'Google_Service_Genomics_Reference'; - protected $referencesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReferences($references) - { - $this->references = $references; - } - public function getReferences() - { - return $this->references; - } -} - -class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection -{ - protected $collection_key = 'datasetIds'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $pageSize; - public $pageToken; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection -{ - protected $collection_key = 'variantSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $variantSetsType = 'Google_Service_Genomics_VariantSet'; - protected $variantSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setVariantSets($variantSets) - { - $this->variantSets = $variantSets; - } - public function getVariantSets() - { - return $this->variantSets; - } -} - -class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $callSetIds; - public $end; - public $maxCalls; - public $pageSize; - public $pageToken; - public $referenceName; - public $start; - public $variantName; - public $variantSetIds; - - - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setMaxCalls($maxCalls) - { - $this->maxCalls = $maxCalls; - } - public function getMaxCalls() - { - return $this->maxCalls; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantName($variantName) - { - $this->variantName = $variantName; - } - public function getVariantName() - { - return $this->variantName; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_SetIamPolicyRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $policyType = 'Google_Service_Genomics_Policy'; - protected $policyDataType = ''; - - - public function setPolicy(Google_Service_Genomics_Policy $policy) - { - $this->policy = $policy; - } - public function getPolicy() - { - return $this->policy; - } -} - -class Google_Service_Genomics_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Genomics_StreamReadsRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $projectId; - public $readGroupSetId; - public $referenceName; - public $shard; - public $start; - public $totalShards; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReadGroupSetId($readGroupSetId) - { - $this->readGroupSetId = $readGroupSetId; - } - public function getReadGroupSetId() - { - return $this->readGroupSetId; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setShard($shard) - { - $this->shard = $shard; - } - public function getShard() - { - return $this->shard; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setTotalShards($totalShards) - { - $this->totalShards = $totalShards; - } - public function getTotalShards() - { - return $this->totalShards; - } -} - -class Google_Service_Genomics_StreamReadsResponse extends Google_Collection -{ - protected $collection_key = 'alignments'; - protected $internal_gapi_mappings = array( - ); - protected $alignmentsType = 'Google_Service_Genomics_Read'; - protected $alignmentsDataType = 'array'; - - - public function setAlignments($alignments) - { - $this->alignments = $alignments; - } - public function getAlignments() - { - return $this->alignments; - } -} - -class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection -{ - protected $collection_key = 'callSetIds'; - protected $internal_gapi_mappings = array( - ); - public $callSetIds; - public $end; - public $projectId; - public $referenceName; - public $start; - public $variantSetId; - - - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } -} - -class Google_Service_Genomics_StreamVariantsResponse extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_TestIamPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Genomics_TestIamPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Genomics_UndeleteDatasetRequest extends Google_Model -{ -} - -class Google_Service_Genomics_Variant extends Google_Collection -{ - protected $collection_key = 'names'; - protected $internal_gapi_mappings = array( - ); - public $alternateBases; - protected $callsType = 'Google_Service_Genomics_VariantCall'; - protected $callsDataType = 'array'; - public $created; - public $end; - public $filter; - public $id; - public $info; - public $names; - public $quality; - public $referenceBases; - public $referenceName; - public $start; - public $variantSetId; - - - public function setAlternateBases($alternateBases) - { - $this->alternateBases = $alternateBases; - } - public function getAlternateBases() - { - return $this->alternateBases; - } - public function setCalls($calls) - { - $this->calls = $calls; - } - public function getCalls() - { - return $this->calls; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setNames($names) - { - $this->names = $names; - } - public function getNames() - { - return $this->names; - } - public function setQuality($quality) - { - $this->quality = $quality; - } - public function getQuality() - { - return $this->quality; - } - public function setReferenceBases($referenceBases) - { - $this->referenceBases = $referenceBases; - } - public function getReferenceBases() - { - return $this->referenceBases; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } -} - -class Google_Service_Genomics_VariantCall extends Google_Collection -{ - protected $collection_key = 'genotypeLikelihood'; - protected $internal_gapi_mappings = array( - ); - public $callSetId; - public $callSetName; - public $genotype; - public $genotypeLikelihood; - public $info; - public $phaseset; - - - public function setCallSetId($callSetId) - { - $this->callSetId = $callSetId; - } - public function getCallSetId() - { - return $this->callSetId; - } - public function setCallSetName($callSetName) - { - $this->callSetName = $callSetName; - } - public function getCallSetName() - { - return $this->callSetName; - } - public function setGenotype($genotype) - { - $this->genotype = $genotype; - } - public function getGenotype() - { - return $this->genotype; - } - public function setGenotypeLikelihood($genotypeLikelihood) - { - $this->genotypeLikelihood = $genotypeLikelihood; - } - public function getGenotypeLikelihood() - { - return $this->genotypeLikelihood; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setPhaseset($phaseset) - { - $this->phaseset = $phaseset; - } - public function getPhaseset() - { - return $this->phaseset; - } -} - -class Google_Service_Genomics_VariantSet extends Google_Collection -{ - protected $collection_key = 'referenceBounds'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $id; - protected $metadataType = 'Google_Service_Genomics_VariantSetMetadata'; - protected $metadataDataType = 'array'; - protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; - protected $referenceBoundsDataType = 'array'; - public $referenceSetId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setReferenceBounds($referenceBounds) - { - $this->referenceBounds = $referenceBounds; - } - public function getReferenceBounds() - { - return $this->referenceBounds; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } -} - -class Google_Service_Genomics_VariantSetMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $info; - public $key; - public $number; - public $type; - public $value; - - - 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 setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setNumber($number) - { - $this->number = $number; - } - public function getNumber() - { - return $this->number; - } - 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; - } -} diff --git a/src/Google/Service/Gmail.php b/src/Google/Service/Gmail.php deleted file mode 100644 index b0c60fbc1..000000000 --- a/src/Google/Service/Gmail.php +++ /dev/null @@ -1,2265 +0,0 @@ - - * Access Gmail mailboxes including sending user email.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Gmail extends Google_Service -{ - /** View and manage your mail. */ - const MAIL_GOOGLE_COM = - "https://mail.google.com/"; - /** Manage drafts and send emails. */ - const GMAIL_COMPOSE = - "https://www.googleapis.com/auth/gmail.compose"; - /** Insert mail into your mailbox. */ - const GMAIL_INSERT = - "https://www.googleapis.com/auth/gmail.insert"; - /** Manage mailbox labels. */ - const GMAIL_LABELS = - "https://www.googleapis.com/auth/gmail.labels"; - /** View and modify but not delete your email. */ - const GMAIL_MODIFY = - "https://www.googleapis.com/auth/gmail.modify"; - /** View your emails messages and settings. */ - const GMAIL_READONLY = - "https://www.googleapis.com/auth/gmail.readonly"; - /** Send email on your behalf. */ - const GMAIL_SEND = - "https://www.googleapis.com/auth/gmail.send"; - - public $users; - public $users_drafts; - public $users_history; - public $users_labels; - public $users_messages; - public $users_messages_attachments; - public $users_threads; - - - /** - * Constructs the internal representation of the Gmail service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'gmail/v1/users/'; - $this->version = 'v1'; - $this->serviceName = 'gmail'; - - $this->users = new Google_Service_Gmail_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'getProfile' => array( - 'path' => '{userId}/profile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stop' => array( - 'path' => '{userId}/stop', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => '{userId}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( - $this, - $this->serviceName, - 'drafts', - array( - 'methods' => array( - 'create' => array( - 'path' => '{userId}/drafts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{userId}/drafts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'send' => array( - 'path' => '{userId}/drafts/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_history = new Google_Service_Gmail_UsersHistory_Resource( - $this, - $this->serviceName, - 'history', - array( - 'methods' => array( - 'list' => array( - 'path' => '{userId}/history', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'labelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startHistoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_labels = new Google_Service_Gmail_UsersLabels_Resource( - $this, - $this->serviceName, - 'labels', - array( - 'methods' => array( - 'create' => array( - 'path' => '{userId}/labels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/labels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages = new Google_Service_Gmail_UsersMessages_Resource( - $this, - $this->serviceName, - 'messages', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => '{userId}/messages/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/messages/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/messages/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metadataHeaders' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'import' => array( - 'path' => '{userId}/messages/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'internalDateSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'neverMarkSpam' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'processForCalendar' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => '{userId}/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'internalDateSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{userId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'modify' => array( - 'path' => '{userId}/messages/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'send' => array( - 'path' => '{userId}/messages/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => '{userId}/messages/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => '{userId}/messages/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages_attachments = new Google_Service_Gmail_UsersMessagesAttachments_Resource( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'get' => array( - 'path' => '{userId}/messages/{messageId}/attachments/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'messageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_threads = new Google_Service_Gmail_UsersThreads_Resource( - $this, - $this->serviceName, - 'threads', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{userId}/threads/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/threads/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metadataHeaders' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/threads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'modify' => array( - 'path' => '{userId}/threads/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => '{userId}/threads/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => '{userId}/threads/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $users = $gmailService->users; - * - */ -class Google_Service_Gmail_Users_Resource extends Google_Service_Resource -{ - - /** - * Gets the current user's Gmail profile. (users.getProfile) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Profile - */ - public function getProfile($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); - } - - /** - * Stop receiving push notifications for the given user mailbox. (users.stop) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - */ - public function stop($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } - - /** - * Set up or update a push notification watch on the given user mailbox. - * (users.watch) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_WatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_WatchResponse - */ - public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); - } -} - -/** - * The "drafts" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $drafts = $gmailService->drafts; - * - */ -class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource -{ - - /** - * Creates a new draft with the DRAFT label. (drafts.create) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Draft"); - } - - /** - * Immediately and permanently deletes the specified draft. Does not simply - * trash it. (drafts.delete) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets the specified draft. (drafts.get) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the draft in. - * @return Google_Service_Gmail_Draft - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Draft"); - } - - /** - * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSpamTrash Include drafts from SPAM and TRASH in the - * results. - * @opt_param string maxResults Maximum number of drafts to return. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @return Google_Service_Gmail_ListDraftsResponse - */ - public function listUsersDrafts($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); - } - - /** - * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc - * headers. (drafts.send) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Replaces a draft's content. (drafts.update) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to update. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Draft"); - } -} -/** - * The "history" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $history = $gmailService->history; - * - */ -class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource -{ - - /** - * Lists the history of all changes to the given mailbox. History results are - * returned in chronological order (increasing historyId). - * (history.listUsersHistory) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string labelId Only return messages with a label matching the ID. - * @opt_param string maxResults The maximum number of history records to return. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string startHistoryId Required. Returns history records after the - * specified startHistoryId. The supplied startHistoryId should be obtained from - * the historyId of a message, thread, or previous list response. History IDs - * increase chronologically but are not contiguous with random gaps in between - * valid IDs. Supplying an invalid or out of date startHistoryId typically - * returns an HTTP 404 error code. A historyId is typically valid for at least a - * week, but in some rare circumstances may be valid for only a few hours. If - * you receive an HTTP 404 error response, your application should perform a - * full sync. If you receive no nextPageToken in the response, there are no - * updates to retrieve and you can store the returned historyId for a future - * request. - * @return Google_Service_Gmail_ListHistoryResponse - */ - public function listUsersHistory($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); - } -} -/** - * The "labels" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $labels = $gmailService->labels; - * - */ -class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource -{ - - /** - * Creates a new label. (labels.create) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Label"); - } - - /** - * Immediately and permanently deletes the specified label and removes it from - * any messages and threads that it is applied to. (labels.delete) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets the specified label. (labels.get) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Label"); - } - - /** - * Lists all labels in the user's mailbox. (labels.listUsersLabels) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListLabelsResponse - */ - public function listUsersLabels($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); - } - - /** - * Updates the specified label. This method supports patch semantics. - * (labels.patch) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_Label"); - } - - /** - * Updates the specified label. (labels.update) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Label"); - } -} -/** - * The "messages" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $messages = $gmailService->messages; - * - */ -class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource -{ - - /** - * Deletes many messages by message ID. Provides no guarantees that messages - * were not already deleted or even existed at all. (messages.batchDelete) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_BatchDeleteMessagesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($userId, Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - - /** - * Immediately and permanently deletes the specified message. This operation - * cannot be undone. Prefer messages.trash instead. (messages.delete) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets the specified message. (messages.get) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the message in. - * @opt_param string metadataHeaders When given and format is METADATA, only - * include headers specified. - * @return Google_Service_Gmail_Message - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Imports a message into only this user's mailbox, with standard email delivery - * scanning and classification similar to receiving via SMTP. Does not send a - * message. (messages.import) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Apps Vault to a Vault administrator. Only used for - * Google Apps for Work accounts. - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and - * never mark this email as SPAM in the mailbox. - * @opt_param bool processForCalendar Process calendar invites in the email and - * add any extracted meetings to the Google Calendar for this user. - * @return Google_Service_Gmail_Message - */ - public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Directly inserts a message into only this user's mailbox similar to IMAP - * APPEND, bypassing most scanning and classification. Does not send a message. - * (messages.insert) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Apps Vault to a Vault administrator. Only used for - * Google Apps for Work accounts. - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @return Google_Service_Gmail_Message - */ - public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Lists the messages in the user's mailbox. (messages.listUsersMessages) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSpamTrash Include messages from SPAM and TRASH in the - * results. - * @opt_param string labelIds Only return messages with labels that match all of - * the specified label IDs. - * @opt_param string maxResults Maximum number of messages to return. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string q Only return messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". - * @return Google_Service_Gmail_ListMessagesResponse - */ - public function listUsersMessages($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); - } - - /** - * Modifies the labels on the specified message. (messages.modify) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to modify. - * @param Google_ModifyMessageRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Sends the specified message to the recipients in the To, Cc, and Bcc headers. - * (messages.send) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Moves the specified message to the trash. (messages.trash) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Message"); - } - - /** - * Removes the specified message from the trash. (messages.untrash) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); - } -} - -/** - * The "attachments" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $attachments = $gmailService->attachments; - * - */ -class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Service_Resource -{ - - /** - * Gets the specified message attachment. (attachments.get) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $messageId The ID of the message containing the attachment. - * @param string $id The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_MessagePartBody - */ - public function get($userId, $messageId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); - } -} -/** - * The "threads" collection of methods. - * Typical usage is: - * - * $gmailService = new Google_Service_Gmail(...); - * $threads = $gmailService->threads; - * - */ -class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource -{ - - /** - * Immediately and permanently deletes the specified thread. This operation - * cannot be undone. Prefer threads.trash instead. (threads.delete) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id ID of the Thread to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets the specified thread. (threads.get) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the messages in. - * @opt_param string metadataHeaders When given and format is METADATA, only - * include headers specified. - * @return Google_Service_Gmail_Thread - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Thread"); - } - - /** - * Lists the threads in the user's mailbox. (threads.listUsersThreads) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the - * results. - * @opt_param string labelIds Only return threads with labels that match all of - * the specified label IDs. - * @opt_param string maxResults Maximum number of threads to return. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string q Only return threads matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". - * @return Google_Service_Gmail_ListThreadsResponse - */ - public function listUsersThreads($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); - } - - /** - * Modifies the labels applied to the thread. This applies to all messages in - * the thread. (threads.modify) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to modify. - * @param Google_ModifyThreadRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); - } - - /** - * Moves the specified thread to the trash. (threads.trash) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); - } - - /** - * Removes the specified thread from the trash. (threads.untrash) - * - * @param string $userId The user's email address. The special value me can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); - } -} - - - - -class Google_Service_Gmail_BatchDeleteMessagesRequest extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_Gmail_Draft extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Gmail_History extends Google_Collection -{ - protected $collection_key = 'messagesDeleted'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $labelsAddedType = 'Google_Service_Gmail_HistoryLabelAdded'; - protected $labelsAddedDataType = 'array'; - protected $labelsRemovedType = 'Google_Service_Gmail_HistoryLabelRemoved'; - protected $labelsRemovedDataType = 'array'; - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; - protected $messagesAddedType = 'Google_Service_Gmail_HistoryMessageAdded'; - protected $messagesAddedDataType = 'array'; - protected $messagesDeletedType = 'Google_Service_Gmail_HistoryMessageDeleted'; - protected $messagesDeletedDataType = 'array'; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabelsAdded($labelsAdded) - { - $this->labelsAdded = $labelsAdded; - } - public function getLabelsAdded() - { - return $this->labelsAdded; - } - public function setLabelsRemoved($labelsRemoved) - { - $this->labelsRemoved = $labelsRemoved; - } - public function getLabelsRemoved() - { - return $this->labelsRemoved; - } - public function setMessages($messages) - { - $this->messages = $messages; - } - public function getMessages() - { - return $this->messages; - } - public function setMessagesAdded($messagesAdded) - { - $this->messagesAdded = $messagesAdded; - } - public function getMessagesAdded() - { - return $this->messagesAdded; - } - public function setMessagesDeleted($messagesDeleted) - { - $this->messagesDeleted = $messagesDeleted; - } - public function getMessagesDeleted() - { - return $this->messagesDeleted; - } -} - -class Google_Service_Gmail_HistoryLabelAdded extends Google_Collection -{ - protected $collection_key = 'labelIds'; - protected $internal_gapi_mappings = array( - ); - public $labelIds; - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; - - - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Gmail_HistoryLabelRemoved extends Google_Collection -{ - protected $collection_key = 'labelIds'; - protected $internal_gapi_mappings = array( - ); - public $labelIds; - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; - - - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Gmail_HistoryMessageAdded extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; - - - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Gmail_HistoryMessageDeleted extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; - - - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Gmail_Label extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $labelListVisibility; - public $messageListVisibility; - public $messagesTotal; - public $messagesUnread; - public $name; - public $threadsTotal; - public $threadsUnread; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabelListVisibility($labelListVisibility) - { - $this->labelListVisibility = $labelListVisibility; - } - public function getLabelListVisibility() - { - return $this->labelListVisibility; - } - public function setMessageListVisibility($messageListVisibility) - { - $this->messageListVisibility = $messageListVisibility; - } - public function getMessageListVisibility() - { - return $this->messageListVisibility; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setMessagesUnread($messagesUnread) - { - $this->messagesUnread = $messagesUnread; - } - public function getMessagesUnread() - { - return $this->messagesUnread; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } - public function setThreadsUnread($threadsUnread) - { - $this->threadsUnread = $threadsUnread; - } - public function getThreadsUnread() - { - return $this->threadsUnread; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Gmail_ListDraftsResponse extends Google_Collection -{ - protected $collection_key = 'drafts'; - protected $internal_gapi_mappings = array( - ); - protected $draftsType = 'Google_Service_Gmail_Draft'; - protected $draftsDataType = 'array'; - public $nextPageToken; - public $resultSizeEstimate; - - - public function setDrafts($drafts) - { - $this->drafts = $drafts; - } - public function getDrafts() - { - return $this->drafts; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} - -class Google_Service_Gmail_ListHistoryResponse extends Google_Collection -{ - protected $collection_key = 'history'; - protected $internal_gapi_mappings = array( - ); - protected $historyType = 'Google_Service_Gmail_History'; - protected $historyDataType = 'array'; - public $historyId; - public $nextPageToken; - - - public function setHistory($history) - { - $this->history = $history; - } - public function getHistory() - { - return $this->history; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Gmail_ListLabelsResponse extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - protected $labelsType = 'Google_Service_Gmail_Label'; - protected $labelsDataType = 'array'; - - - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } -} - -class Google_Service_Gmail_ListMessagesResponse extends Google_Collection -{ - protected $collection_key = 'messages'; - protected $internal_gapi_mappings = array( - ); - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; - public $nextPageToken; - public $resultSizeEstimate; - - - public function setMessages($messages) - { - $this->messages = $messages; - } - public function getMessages() - { - return $this->messages; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} - -class Google_Service_Gmail_ListThreadsResponse extends Google_Collection -{ - protected $collection_key = 'threads'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $resultSizeEstimate; - protected $threadsType = 'Google_Service_Gmail_Thread'; - protected $threadsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } - public function setThreads($threads) - { - $this->threads = $threads; - } - public function getThreads() - { - return $this->threads; - } -} - -class Google_Service_Gmail_Message extends Google_Collection -{ - protected $collection_key = 'labelIds'; - protected $internal_gapi_mappings = array( - ); - public $historyId; - public $id; - public $internalDate; - public $labelIds; - protected $payloadType = 'Google_Service_Gmail_MessagePart'; - protected $payloadDataType = ''; - public $raw; - public $sizeEstimate; - public $snippet; - public $threadId; - - - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalDate($internalDate) - { - $this->internalDate = $internalDate; - } - public function getInternalDate() - { - return $this->internalDate; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setPayload(Google_Service_Gmail_MessagePart $payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - public function setRaw($raw) - { - $this->raw = $raw; - } - public function getRaw() - { - return $this->raw; - } - public function setSizeEstimate($sizeEstimate) - { - $this->sizeEstimate = $sizeEstimate; - } - public function getSizeEstimate() - { - return $this->sizeEstimate; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setThreadId($threadId) - { - $this->threadId = $threadId; - } - public function getThreadId() - { - return $this->threadId; - } -} - -class Google_Service_Gmail_MessagePart extends Google_Collection -{ - protected $collection_key = 'parts'; - protected $internal_gapi_mappings = array( - ); - protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; - protected $bodyDataType = ''; - public $filename; - protected $headersType = 'Google_Service_Gmail_MessagePartHeader'; - protected $headersDataType = 'array'; - public $mimeType; - public $partId; - protected $partsType = 'Google_Service_Gmail_MessagePart'; - protected $partsDataType = 'array'; - - - public function setBody(Google_Service_Gmail_MessagePartBody $body) - { - $this->body = $body; - } - public function getBody() - { - return $this->body; - } - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - public function setHeaders($headers) - { - $this->headers = $headers; - } - public function getHeaders() - { - return $this->headers; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPartId($partId) - { - $this->partId = $partId; - } - public function getPartId() - { - return $this->partId; - } - public function setParts($parts) - { - $this->parts = $parts; - } - public function getParts() - { - return $this->parts; - } -} - -class Google_Service_Gmail_MessagePartBody extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $attachmentId; - public $data; - public $size; - - - public function setAttachmentId($attachmentId) - { - $this->attachmentId = $attachmentId; - } - public function getAttachmentId() - { - return $this->attachmentId; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} - -class Google_Service_Gmail_MessagePartHeader extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Gmail_ModifyMessageRequest extends Google_Collection -{ - protected $collection_key = 'removeLabelIds'; - protected $internal_gapi_mappings = array( - ); - public $addLabelIds; - public $removeLabelIds; - - - public function setAddLabelIds($addLabelIds) - { - $this->addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} - -class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection -{ - protected $collection_key = 'removeLabelIds'; - protected $internal_gapi_mappings = array( - ); - public $addLabelIds; - public $removeLabelIds; - - - public function setAddLabelIds($addLabelIds) - { - $this->addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} - -class Google_Service_Gmail_Profile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $emailAddress; - public $historyId; - public $messagesTotal; - public $threadsTotal; - - - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } -} - -class Google_Service_Gmail_Thread extends Google_Collection -{ - protected $collection_key = 'messages'; - protected $internal_gapi_mappings = array( - ); - public $historyId; - public $id; - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; - public $snippet; - - - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMessages($messages) - { - $this->messages = $messages; - } - public function getMessages() - { - return $this->messages; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_Gmail_WatchRequest extends Google_Collection -{ - protected $collection_key = 'labelIds'; - protected $internal_gapi_mappings = array( - ); - public $labelFilterAction; - public $labelIds; - public $topicName; - - - public function setLabelFilterAction($labelFilterAction) - { - $this->labelFilterAction = $labelFilterAction; - } - public function getLabelFilterAction() - { - return $this->labelFilterAction; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setTopicName($topicName) - { - $this->topicName = $topicName; - } - public function getTopicName() - { - return $this->topicName; - } -} - -class Google_Service_Gmail_WatchResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expiration; - public $historyId; - - - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } -} diff --git a/src/Google/Service/GroupsMigration.php b/src/Google/Service/GroupsMigration.php deleted file mode 100644 index 01b257a2d..000000000 --- a/src/Google/Service/GroupsMigration.php +++ /dev/null @@ -1,130 +0,0 @@ - - * Groups Migration Api.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_GroupsMigration extends Google_Service -{ - /** Manage messages in groups on your domain. */ - const APPS_GROUPS_MIGRATION = - "https://www.googleapis.com/auth/apps.groups.migration"; - - public $archive; - - - /** - * Constructs the internal representation of the GroupsMigration service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'groups/v1/groups/'; - $this->version = 'v1'; - $this->serviceName = 'groupsmigration'; - - $this->archive = new Google_Service_GroupsMigration_Archive_Resource( - $this, - $this->serviceName, - 'archive', - array( - 'methods' => array( - 'insert' => array( - 'path' => '{groupId}/archive', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "archive" collection of methods. - * Typical usage is: - * - * $groupsmigrationService = new Google_Service_GroupsMigration(...); - * $archive = $groupsmigrationService->archive; - * - */ -class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource -{ - - /** - * Inserts a new mail into the archive of the Google group. (archive.insert) - * - * @param string $groupId The group ID - * @param array $optParams Optional parameters. - * @return Google_Service_GroupsMigration_Groups - */ - public function insert($groupId, $optParams = array()) - { - $params = array('groupId' => $groupId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups"); - } -} - - - - -class Google_Service_GroupsMigration_Groups extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $responseCode; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } - public function getResponseCode() - { - return $this->responseCode; - } -} diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php deleted file mode 100644 index 41f105339..000000000 --- a/src/Google/Service/Groupssettings.php +++ /dev/null @@ -1,415 +0,0 @@ - - * 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 -{ - /** View and manage the settings of a Google Apps Group. */ - const APPS_GROUPS_SETTINGS = - "https://www.googleapis.com/auth/apps.groups.settings"; - - public $groups; - - - /** - * Constructs the internal representation of the Groupssettings service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'groups/v1/groups/'; - $this->version = 'v1'; - $this->serviceName = 'groupssettings'; - - $this->groups = new Google_Service_Groupssettings_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'get' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $groupssettingsService = new Google_Service_Groupssettings(...); - * $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); - return $this->call('get', array($params), "Google_Service_Groupssettings_Groups"); - } - - /** - * Updates an existing resource. This method supports patch semantics. - * (groups.patch) - * - * @param string $groupUniqueId The resource ID - * @param Google_Groups $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Groupssettings_Groups - */ - public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) - { - $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups"); - } - - /** - * Updates an existing resource. (groups.update) - * - * @param string $groupUniqueId The resource ID - * @param Google_Groups $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Groupssettings_Groups - */ - public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) - { - $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Groupssettings_Groups"); - } -} - - - - -class Google_Service_Groupssettings_Groups extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $allowExternalMembers; - public $allowGoogleCommunication; - public $allowWebPosting; - public $archiveOnly; - public $customReplyTo; - public $defaultMessageDenyNotificationText; - public $description; - public $email; - public $includeInGlobalAddressList; - public $isArchived; - public $kind; - public $maxMessageBytes; - public $membersCanPostAsTheGroup; - public $messageDisplayFont; - public $messageModerationLevel; - public $name; - public $primaryLanguage; - public $replyTo; - public $sendMessageDenyNotification; - public $showInGroupDirectory; - public $spamModerationLevel; - public $whoCanContactOwner; - public $whoCanInvite; - public $whoCanJoin; - public $whoCanLeaveGroup; - public $whoCanPostMessage; - public $whoCanViewGroup; - public $whoCanViewMembership; - - - public function setAllowExternalMembers($allowExternalMembers) - { - $this->allowExternalMembers = $allowExternalMembers; - } - 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 setWhoCanContactOwner($whoCanContactOwner) - { - $this->whoCanContactOwner = $whoCanContactOwner; - } - public function getWhoCanContactOwner() - { - return $this->whoCanContactOwner; - } - 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 setWhoCanLeaveGroup($whoCanLeaveGroup) - { - $this->whoCanLeaveGroup = $whoCanLeaveGroup; - } - public function getWhoCanLeaveGroup() - { - return $this->whoCanLeaveGroup; - } - 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/Iam.php b/src/Google/Service/Iam.php deleted file mode 100644 index 764478bf9..000000000 --- a/src/Google/Service/Iam.php +++ /dev/null @@ -1,1105 +0,0 @@ - - * Manages identity and access control for Google Cloud Platform resources, - * including the creation of service accounts, which you can use to authenticate - * to Google and make API calls.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Iam extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $projects_serviceAccounts; - public $projects_serviceAccounts_keys; - - - /** - * Constructs the internal representation of the Iam service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://iam.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'iam'; - - $this->projects_serviceAccounts = new Google_Service_Iam_ProjectsServiceAccounts_Resource( - $this, - $this->serviceName, - 'serviceAccounts', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/{+name}/serviceAccounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}/serviceAccounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'signBlob' => array( - 'path' => 'v1/{+name}:signBlob', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_serviceAccounts_keys = new Google_Service_Iam_ProjectsServiceAccountsKeys_Resource( - $this, - $this->serviceName, - 'keys', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/{+name}/keys', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}/keys', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'keyTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $iamService = new Google_Service_Iam(...); - * $projects = $iamService->projects; - * - */ -class Google_Service_Iam_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "serviceAccounts" collection of methods. - * Typical usage is: - * - * $iamService = new Google_Service_Iam(...); - * $serviceAccounts = $iamService->serviceAccounts; - * - */ -class Google_Service_Iam_ProjectsServiceAccounts_Resource extends Google_Service_Resource -{ - - /** - * Creates a service account and returns it. (serviceAccounts.create) - * - * @param string $name Required. The resource name of the project associated - * with the service accounts, such as "projects/123" - * @param Google_CreateServiceAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_ServiceAccount - */ - public function create($name, Google_Service_Iam_CreateServiceAccountRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Iam_ServiceAccount"); - } - - /** - * Deletes a service acount. (serviceAccounts.delete) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_Empty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Iam_Empty"); - } - - /** - * Gets a ServiceAccount (serviceAccounts.get) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_ServiceAccount - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount"); - } - - /** - * Returns the IAM access control policy for specified IAM resource. - * (serviceAccounts.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `getIamPolicy` - * documentation. - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_Policy - */ - public function getIamPolicy($resource, $optParams = array()) - { - $params = array('resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Iam_Policy"); - } - - /** - * Lists service accounts for a project. - * (serviceAccounts.listProjectsServiceAccounts) - * - * @param string $name Required. The resource name of the project associated - * with the service accounts, such as "projects/123" - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Optional limit on the number of service accounts to - * include in the response. Further accounts can subsequently be obtained by - * including the [ListServiceAccountsResponse.next_page_token] in a subsequent - * request. - * @opt_param string pageToken Optional pagination token returned in an earlier - * [ListServiceAccountsResponse.next_page_token]. - * @return Google_Service_Iam_ListServiceAccountsResponse - */ - public function listProjectsServiceAccounts($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse"); - } - - /** - * Sets the IAM access control policy for the specified IAM resource. - * (serviceAccounts.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `setIamPolicy` - * documentation. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_Policy - */ - public function setIamPolicy($resource, Google_Service_Iam_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy"); - } - - /** - * Signs a blob using a service account. (serviceAccounts.signBlob) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. - * @param Google_SignBlobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_SignBlobResponse - */ - public function signBlob($name, Google_Service_Iam_SignBlobRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse"); - } - - /** - * Tests the specified permissions against the IAM access control policy for the - * specified IAM resource. (serviceAccounts.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which the policy detail is - * being requested. `resource` is usually specified as a path, such as - * `projectsprojectzoneszonedisksdisk*`. The format for the path specified in - * this value is resource specific and is specified in the `testIamPermissions` - * documentation. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Iam_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse"); - } - - /** - * Updates a service account. Currently, only the following fields are - * updatable: 'display_name' . The 'etag' is mandatory. (serviceAccounts.update) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". In requests using '-' as a - * wildcard for the project, will infer the project from the account and the - * account value can be the email address or the unique_id of the service - * account. In responses the resource name will always be in the format - * "projects/{project}/serviceAccounts/{email}". - * @param Google_ServiceAccount $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_ServiceAccount - */ - public function update($name, Google_Service_Iam_ServiceAccount $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Iam_ServiceAccount"); - } -} - -/** - * The "keys" collection of methods. - * Typical usage is: - * - * $iamService = new Google_Service_Iam(...); - * $keys = $iamService->keys; - * - */ -class Google_Service_Iam_ProjectsServiceAccountsKeys_Resource extends Google_Service_Resource -{ - - /** - * Creates a service account key and returns it. (keys.create) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. - * @param Google_CreateServiceAccountKeyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_ServiceAccountKey - */ - public function create($name, Google_Service_Iam_CreateServiceAccountKeyRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Iam_ServiceAccountKey"); - } - - /** - * Deletes a service account key. (keys.delete) - * - * @param string $name The resource name of the service account key in the - * format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' - * as a wildcard for the project will infer the project from the account. The - * account value can be the email address or the unique_id of the service - * account. - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_Empty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Iam_Empty"); - } - - /** - * Gets the ServiceAccountKey by key id. (keys.get) - * - * @param string $name The resource name of the service account key in the - * format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' - * as a wildcard for the project will infer the project from the account. The - * account value can be the email address or the unique_id of the service - * account. - * @param array $optParams Optional parameters. - * @return Google_Service_Iam_ServiceAccountKey - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Iam_ServiceAccountKey"); - } - - /** - * Lists service account keys (keys.listProjectsServiceAccountsKeys) - * - * @param string $name The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. - * @param array $optParams Optional parameters. - * - * @opt_param string keyTypes The type of keys the user wants to list. If empty, - * all key types are included in the response. Duplicate key types are not - * allowed. - * @return Google_Service_Iam_ListServiceAccountKeysResponse - */ - public function listProjectsServiceAccountsKeys($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountKeysResponse"); - } -} - - - - -class Google_Service_Iam_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } -} - -class Google_Service_Iam_CloudAuditOptions extends Google_Model -{ -} - -class Google_Service_Iam_Condition extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - public $iam; - public $op; - public $svc; - public $sys; - public $value; - public $values; - - - public function setIam($iam) - { - $this->iam = $iam; - } - public function getIam() - { - return $this->iam; - } - public function setOp($op) - { - $this->op = $op; - } - public function getOp() - { - return $this->op; - } - public function setSvc($svc) - { - $this->svc = $svc; - } - public function getSvc() - { - return $this->svc; - } - public function setSys($sys) - { - $this->sys = $sys; - } - public function getSys() - { - return $this->sys; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; - } -} - -class Google_Service_Iam_CounterOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $field; - public $metric; - - - public function setField($field) - { - $this->field = $field; - } - public function getField() - { - return $this->field; - } - public function setMetric($metric) - { - $this->metric = $metric; - } - public function getMetric() - { - return $this->metric; - } -} - -class Google_Service_Iam_CreateServiceAccountKeyRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privateKeyType; - - - public function setPrivateKeyType($privateKeyType) - { - $this->privateKeyType = $privateKeyType; - } - public function getPrivateKeyType() - { - return $this->privateKeyType; - } -} - -class Google_Service_Iam_CreateServiceAccountRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $serviceAccountType = 'Google_Service_Iam_ServiceAccount'; - protected $serviceAccountDataType = ''; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setServiceAccount(Google_Service_Iam_ServiceAccount $serviceAccount) - { - $this->serviceAccount = $serviceAccount; - } - public function getServiceAccount() - { - return $this->serviceAccount; - } -} - -class Google_Service_Iam_DataAccessOptions extends Google_Model -{ -} - -class Google_Service_Iam_Empty extends Google_Model -{ -} - -class Google_Service_Iam_ListServiceAccountKeysResponse extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - protected $keysType = 'Google_Service_Iam_ServiceAccountKey'; - protected $keysDataType = 'array'; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Iam_ListServiceAccountsResponse extends Google_Collection -{ - protected $collection_key = 'accounts'; - protected $internal_gapi_mappings = array( - ); - protected $accountsType = 'Google_Service_Iam_ServiceAccount'; - protected $accountsDataType = 'array'; - public $nextPageToken; - - - public function setAccounts($accounts) - { - $this->accounts = $accounts; - } - public function getAccounts() - { - return $this->accounts; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Iam_LogConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloudAuditType = 'Google_Service_Iam_CloudAuditOptions'; - protected $cloudAuditDataType = ''; - protected $counterType = 'Google_Service_Iam_CounterOptions'; - protected $counterDataType = ''; - protected $dataAccessType = 'Google_Service_Iam_DataAccessOptions'; - protected $dataAccessDataType = ''; - - - public function setCloudAudit(Google_Service_Iam_CloudAuditOptions $cloudAudit) - { - $this->cloudAudit = $cloudAudit; - } - public function getCloudAudit() - { - return $this->cloudAudit; - } - public function setCounter(Google_Service_Iam_CounterOptions $counter) - { - $this->counter = $counter; - } - public function getCounter() - { - return $this->counter; - } - public function setDataAccess(Google_Service_Iam_DataAccessOptions $dataAccess) - { - $this->dataAccess = $dataAccess; - } - public function getDataAccess() - { - return $this->dataAccess; - } -} - -class Google_Service_Iam_Policy extends Google_Collection -{ - protected $collection_key = 'rules'; - protected $internal_gapi_mappings = array( - ); - protected $bindingsType = 'Google_Service_Iam_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - protected $rulesType = 'Google_Service_Iam_Rule'; - protected $rulesDataType = 'array'; - public $version; - - - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setRules($rules) - { - $this->rules = $rules; - } - public function getRules() - { - return $this->rules; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Iam_Rule extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $action; - protected $conditionsType = 'Google_Service_Iam_Condition'; - protected $conditionsDataType = 'array'; - public $description; - public $in; - protected $logConfigType = 'Google_Service_Iam_LogConfig'; - protected $logConfigDataType = 'array'; - public $notIn; - public $permissions; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setConditions($conditions) - { - $this->conditions = $conditions; - } - public function getConditions() - { - return $this->conditions; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIn($in) - { - $this->in = $in; - } - public function getIn() - { - return $this->in; - } - public function setLogConfig($logConfig) - { - $this->logConfig = $logConfig; - } - public function getLogConfig() - { - return $this->logConfig; - } - public function setNotIn($notIn) - { - $this->notIn = $notIn; - } - public function getNotIn() - { - return $this->notIn; - } - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Iam_ServiceAccount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $email; - public $etag; - public $name; - public $oauth2ClientId; - public $projectId; - public $uniqueId; - - - 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 setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOauth2ClientId($oauth2ClientId) - { - $this->oauth2ClientId = $oauth2ClientId; - } - public function getOauth2ClientId() - { - return $this->oauth2ClientId; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setUniqueId($uniqueId) - { - $this->uniqueId = $uniqueId; - } - public function getUniqueId() - { - return $this->uniqueId; - } -} - -class Google_Service_Iam_ServiceAccountKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $privateKeyData; - public $privateKeyType; - public $validAfterTime; - public $validBeforeTime; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPrivateKeyData($privateKeyData) - { - $this->privateKeyData = $privateKeyData; - } - public function getPrivateKeyData() - { - return $this->privateKeyData; - } - public function setPrivateKeyType($privateKeyType) - { - $this->privateKeyType = $privateKeyType; - } - public function getPrivateKeyType() - { - return $this->privateKeyType; - } - public function setValidAfterTime($validAfterTime) - { - $this->validAfterTime = $validAfterTime; - } - public function getValidAfterTime() - { - return $this->validAfterTime; - } - public function setValidBeforeTime($validBeforeTime) - { - $this->validBeforeTime = $validBeforeTime; - } - public function getValidBeforeTime() - { - return $this->validBeforeTime; - } -} - -class Google_Service_Iam_SetIamPolicyRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $policyType = 'Google_Service_Iam_Policy'; - protected $policyDataType = ''; - - - public function setPolicy(Google_Service_Iam_Policy $policy) - { - $this->policy = $policy; - } - public function getPolicy() - { - return $this->policy; - } -} - -class Google_Service_Iam_SignBlobRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bytesToSign; - - - public function setBytesToSign($bytesToSign) - { - $this->bytesToSign = $bytesToSign; - } - public function getBytesToSign() - { - return $this->bytesToSign; - } -} - -class Google_Service_Iam_SignBlobResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $keyId; - public $signature; - - - public function setKeyId($keyId) - { - $this->keyId = $keyId; - } - public function getKeyId() - { - return $this->keyId; - } - public function setSignature($signature) - { - $this->signature = $signature; - } - public function getSignature() - { - return $this->signature; - } -} - -class Google_Service_Iam_TestIamPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Iam_TestIamPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} diff --git a/src/Google/Service/IdentityToolkit.php b/src/Google/Service/IdentityToolkit.php deleted file mode 100644 index 1e5035e36..000000000 --- a/src/Google/Service/IdentityToolkit.php +++ /dev/null @@ -1,2771 +0,0 @@ - - * Help the third party sites to implement federated login.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_IdentityToolkit extends Google_Service -{ - - - public $relyingparty; - - - /** - * Constructs the internal representation of the IdentityToolkit service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'identitytoolkit/v3/relyingparty/'; - $this->version = 'v3'; - $this->serviceName = 'identitytoolkit'; - - $this->relyingparty = new Google_Service_IdentityToolkit_Relyingparty_Resource( - $this, - $this->serviceName, - 'relyingparty', - array( - 'methods' => array( - 'createAuthUri' => array( - 'path' => 'createAuthUri', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'deleteAccount' => array( - 'path' => 'deleteAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'downloadAccount' => array( - 'path' => 'downloadAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getAccountInfo' => array( - 'path' => 'getAccountInfo', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getOobConfirmationCode' => array( - 'path' => 'getOobConfirmationCode', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getProjectConfig' => array( - 'path' => 'getProjectConfig', - 'httpMethod' => 'GET', - 'parameters' => array( - 'delegatedProjectNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getPublicKeys' => array( - 'path' => 'publicKeys', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'getRecaptchaParam' => array( - 'path' => 'getRecaptchaParam', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'resetPassword' => array( - 'path' => 'resetPassword', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'setAccountInfo' => array( - 'path' => 'setAccountInfo', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'setProjectConfig' => array( - 'path' => 'setProjectConfig', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'signOutUser' => array( - 'path' => 'signOutUser', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'signupNewUser' => array( - 'path' => 'signupNewUser', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'uploadAccount' => array( - 'path' => 'uploadAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyAssertion' => array( - 'path' => 'verifyAssertion', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyCustomToken' => array( - 'path' => 'verifyCustomToken', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyPassword' => array( - 'path' => 'verifyPassword', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "relyingparty" collection of methods. - * Typical usage is: - * - * $identitytoolkitService = new Google_Service_IdentityToolkit(...); - * $relyingparty = $identitytoolkitService->relyingparty; - * - */ -class Google_Service_IdentityToolkit_Relyingparty_Resource extends Google_Service_Resource -{ - - /** - * Creates the URI used by the IdP to authenticate the user. - * (relyingparty.createAuthUri) - * - * @param Google_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_CreateAuthUriResponse - */ - public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse"); - } - - /** - * Delete user account. (relyingparty.deleteAccount) - * - * @param Google_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_DeleteAccountResponse - */ - public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse"); - } - - /** - * Batch download user accounts. (relyingparty.downloadAccount) - * - * @param Google_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_DownloadAccountResponse - */ - public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse"); - } - - /** - * Returns the account info. (relyingparty.getAccountInfo) - * - * @param Google_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_GetAccountInfoResponse - */ - public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse"); - } - - /** - * Get a code for user action confirmation. - * (relyingparty.getOobConfirmationCode) - * - * @param Google_Relyingparty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse - */ - public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingparty $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse"); - } - - /** - * Get project configuration. (relyingparty.getProjectConfig) - * - * @param array $optParams Optional parameters. - * - * @opt_param string delegatedProjectNumber Delegated GCP project number of the - * request. - * @opt_param string projectNumber GCP project number of the request. - * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse - */ - public function getProjectConfig($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse"); - } - - /** - * Get token signing public key. (relyingparty.getPublicKeys) - * - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse - */ - public function getPublicKeys($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); - } - - /** - * Get recaptcha secure param. (relyingparty.getRecaptchaParam) - * - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_GetRecaptchaParamResponse - */ - public function getRecaptchaParam($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getRecaptchaParam', array($params), "Google_Service_IdentityToolkit_GetRecaptchaParamResponse"); - } - - /** - * Reset password for a user. (relyingparty.resetPassword) - * - * @param Google_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_ResetPasswordResponse - */ - public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse"); - } - - /** - * Set account info for a user. (relyingparty.setAccountInfo) - * - * @param Google_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_SetAccountInfoResponse - */ - public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); - } - - /** - * Set project configuration. (relyingparty.setProjectConfig) - * - * @param Google_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse - */ - public function setProjectConfig(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse"); - } - - /** - * Sign out user. (relyingparty.signOutUser) - * - * @param Google_IdentitytoolkitRelyingpartySignOutUserRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse - */ - public function signOutUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('signOutUser', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse"); - } - - /** - * Signup new user. (relyingparty.signupNewUser) - * - * @param Google_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_SignupNewUserResponse - */ - public function signupNewUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('signupNewUser', array($params), "Google_Service_IdentityToolkit_SignupNewUserResponse"); - } - - /** - * Batch upload existing user accounts. (relyingparty.uploadAccount) - * - * @param Google_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_UploadAccountResponse - */ - public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse"); - } - - /** - * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion) - * - * @param Google_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_VerifyAssertionResponse - */ - public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse"); - } - - /** - * Verifies the developer asserted ID token. (relyingparty.verifyCustomToken) - * - * @param Google_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_VerifyCustomTokenResponse - */ - public function verifyCustomToken(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyCustomToken', array($params), "Google_Service_IdentityToolkit_VerifyCustomTokenResponse"); - } - - /** - * Verifies the user entered password. (relyingparty.verifyPassword) - * - * @param Google_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_VerifyPasswordResponse - */ - public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyPassword', array($params), "Google_Service_IdentityToolkit_VerifyPasswordResponse"); - } -} - - - - -class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Collection -{ - protected $collection_key = 'allProviders'; - protected $internal_gapi_mappings = array( - ); - public $allProviders; - public $authUri; - public $captchaRequired; - public $forExistingProvider; - public $kind; - public $providerId; - public $registered; - public $sessionId; - - - public function setAllProviders($allProviders) - { - $this->allProviders = $allProviders; - } - public function getAllProviders() - { - return $this->allProviders; - } - public function setAuthUri($authUri) - { - $this->authUri = $authUri; - } - public function getAuthUri() - { - return $this->authUri; - } - public function setCaptchaRequired($captchaRequired) - { - $this->captchaRequired = $captchaRequired; - } - public function getCaptchaRequired() - { - return $this->captchaRequired; - } - public function setForExistingProvider($forExistingProvider) - { - $this->forExistingProvider = $forExistingProvider; - } - public function getForExistingProvider() - { - return $this->forExistingProvider; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } - public function getProviderId() - { - return $this->providerId; - } - public function setRegistered($registered) - { - $this->registered = $registered; - } - public function getRegistered() - { - return $this->registered; - } - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - public function getSessionId() - { - return $this->sessionId; - } -} - -class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_IdentityToolkit_EmailTemplate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $body; - public $format; - public $from; - public $fromDisplayName; - public $replyTo; - public $subject; - - - public function setBody($body) - { - $this->body = $body; - } - public function getBody() - { - return $this->body; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setFrom($from) - { - $this->from = $from; - } - public function getFrom() - { - return $this->from; - } - public function setFromDisplayName($fromDisplayName) - { - $this->fromDisplayName = $fromDisplayName; - } - public function getFromDisplayName() - { - return $this->fromDisplayName; - } - public function setReplyTo($replyTo) - { - $this->replyTo = $replyTo; - } - public function getReplyTo() - { - return $this->replyTo; - } - public function setSubject($subject) - { - $this->subject = $subject; - } - public function getSubject() - { - return $this->subject; - } -} - -class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $kind; - public $oobCode; - - - 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; - } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } - public function getOobCode() - { - return $this->oobCode; - } -} - -class Google_Service_IdentityToolkit_GetRecaptchaParamResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $recaptchaSiteKey; - public $recaptchaStoken; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRecaptchaSiteKey($recaptchaSiteKey) - { - $this->recaptchaSiteKey = $recaptchaSiteKey; - } - public function getRecaptchaSiteKey() - { - return $this->recaptchaSiteKey; - } - public function setRecaptchaStoken($recaptchaStoken) - { - $this->recaptchaStoken = $recaptchaStoken; - } - public function getRecaptchaStoken() - { - return $this->recaptchaStoken; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $appId; - public $clientId; - public $context; - public $continueUri; - public $identifier; - public $oauthConsumerKey; - public $oauthScope; - public $openidRealm; - public $otaApp; - public $providerId; - - - public function setAppId($appId) - { - $this->appId = $appId; - } - public function getAppId() - { - return $this->appId; - } - public function setClientId($clientId) - { - $this->clientId = $clientId; - } - public function getClientId() - { - return $this->clientId; - } - public function setContext($context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setContinueUri($continueUri) - { - $this->continueUri = $continueUri; - } - public function getContinueUri() - { - return $this->continueUri; - } - public function setIdentifier($identifier) - { - $this->identifier = $identifier; - } - public function getIdentifier() - { - return $this->identifier; - } - public function setOauthConsumerKey($oauthConsumerKey) - { - $this->oauthConsumerKey = $oauthConsumerKey; - } - public function getOauthConsumerKey() - { - return $this->oauthConsumerKey; - } - public function setOauthScope($oauthScope) - { - $this->oauthScope = $oauthScope; - } - public function getOauthScope() - { - return $this->oauthScope; - } - public function setOpenidRealm($openidRealm) - { - $this->openidRealm = $openidRealm; - } - public function getOpenidRealm() - { - return $this->openidRealm; - } - public function setOtaApp($otaApp) - { - $this->otaApp = $otaApp; - } - public function getOtaApp() - { - return $this->otaApp; - } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } - public function getProviderId() - { - return $this->providerId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $delegatedProjectNumber; - public $localId; - - - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $delegatedProjectNumber; - public $maxResults; - public $nextPageToken; - - - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - public function getMaxResults() - { - return $this->maxResults; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection -{ - protected $collection_key = 'localId'; - protected $internal_gapi_mappings = array( - ); - public $delegatedProjectNumber; - public $email; - public $idToken; - public $localId; - - - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse extends Google_Collection -{ - protected $collection_key = 'idpConfig'; - protected $internal_gapi_mappings = array( - ); - public $allowPasswordUser; - public $apiKey; - public $authorizedDomains; - protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $changeEmailTemplateDataType = ''; - protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig'; - protected $idpConfigDataType = 'array'; - public $projectId; - protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $resetPasswordTemplateDataType = ''; - public $useEmailSending; - protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $verifyEmailTemplateDataType = ''; - - - public function setAllowPasswordUser($allowPasswordUser) - { - $this->allowPasswordUser = $allowPasswordUser; - } - public function getAllowPasswordUser() - { - return $this->allowPasswordUser; - } - public function setApiKey($apiKey) - { - $this->apiKey = $apiKey; - } - public function getApiKey() - { - return $this->apiKey; - } - public function setAuthorizedDomains($authorizedDomains) - { - $this->authorizedDomains = $authorizedDomains; - } - public function getAuthorizedDomains() - { - return $this->authorizedDomains; - } - public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate) - { - $this->changeEmailTemplate = $changeEmailTemplate; - } - public function getChangeEmailTemplate() - { - return $this->changeEmailTemplate; - } - public function setIdpConfig($idpConfig) - { - $this->idpConfig = $idpConfig; - } - public function getIdpConfig() - { - return $this->idpConfig; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate) - { - $this->resetPasswordTemplate = $resetPasswordTemplate; - } - public function getResetPasswordTemplate() - { - return $this->resetPasswordTemplate; - } - public function setUseEmailSending($useEmailSending) - { - $this->useEmailSending = $useEmailSending; - } - public function getUseEmailSending() - { - return $this->useEmailSending; - } - public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate) - { - $this->verifyEmailTemplate = $verifyEmailTemplate; - } - public function getVerifyEmailTemplate() - { - return $this->verifyEmailTemplate; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $newPassword; - public $oldPassword; - public $oobCode; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setNewPassword($newPassword) - { - $this->newPassword = $newPassword; - } - public function getNewPassword() - { - return $this->newPassword; - } - public function setOldPassword($oldPassword) - { - $this->oldPassword = $oldPassword; - } - public function getOldPassword() - { - return $this->oldPassword; - } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } - public function getOobCode() - { - return $this->oobCode; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection -{ - protected $collection_key = 'provider'; - protected $internal_gapi_mappings = array( - ); - public $captchaChallenge; - public $captchaResponse; - public $delegatedProjectNumber; - public $deleteAttribute; - public $disableUser; - public $displayName; - public $email; - public $emailVerified; - public $idToken; - public $instanceId; - public $localId; - public $oobCode; - public $password; - public $photoUrl; - public $provider; - public $returnSecureToken; - public $upgradeToFederatedLogin; - public $validSince; - - - public function setCaptchaChallenge($captchaChallenge) - { - $this->captchaChallenge = $captchaChallenge; - } - public function getCaptchaChallenge() - { - return $this->captchaChallenge; - } - public function setCaptchaResponse($captchaResponse) - { - $this->captchaResponse = $captchaResponse; - } - public function getCaptchaResponse() - { - return $this->captchaResponse; - } - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setDeleteAttribute($deleteAttribute) - { - $this->deleteAttribute = $deleteAttribute; - } - public function getDeleteAttribute() - { - return $this->deleteAttribute; - } - public function setDisableUser($disableUser) - { - $this->disableUser = $disableUser; - } - public function getDisableUser() - { - return $this->disableUser; - } - 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 setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } - public function getEmailVerified() - { - return $this->emailVerified; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } - public function getOobCode() - { - return $this->oobCode; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProvider($provider) - { - $this->provider = $provider; - } - public function getProvider() - { - return $this->provider; - } - public function setReturnSecureToken($returnSecureToken) - { - $this->returnSecureToken = $returnSecureToken; - } - public function getReturnSecureToken() - { - return $this->returnSecureToken; - } - public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) - { - $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; - } - public function getUpgradeToFederatedLogin() - { - return $this->upgradeToFederatedLogin; - } - public function setValidSince($validSince) - { - $this->validSince = $validSince; - } - public function getValidSince() - { - return $this->validSince; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest extends Google_Collection -{ - protected $collection_key = 'idpConfig'; - protected $internal_gapi_mappings = array( - ); - public $allowPasswordUser; - public $apiKey; - protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $changeEmailTemplateDataType = ''; - public $delegatedProjectNumber; - protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig'; - protected $idpConfigDataType = 'array'; - protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $resetPasswordTemplateDataType = ''; - public $useEmailSending; - protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate'; - protected $verifyEmailTemplateDataType = ''; - - - public function setAllowPasswordUser($allowPasswordUser) - { - $this->allowPasswordUser = $allowPasswordUser; - } - public function getAllowPasswordUser() - { - return $this->allowPasswordUser; - } - public function setApiKey($apiKey) - { - $this->apiKey = $apiKey; - } - public function getApiKey() - { - return $this->apiKey; - } - public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate) - { - $this->changeEmailTemplate = $changeEmailTemplate; - } - public function getChangeEmailTemplate() - { - return $this->changeEmailTemplate; - } - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setIdpConfig($idpConfig) - { - $this->idpConfig = $idpConfig; - } - public function getIdpConfig() - { - return $this->idpConfig; - } - public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate) - { - $this->resetPasswordTemplate = $resetPasswordTemplate; - } - public function getResetPasswordTemplate() - { - return $this->resetPasswordTemplate; - } - public function setUseEmailSending($useEmailSending) - { - $this->useEmailSending = $useEmailSending; - } - public function getUseEmailSending() - { - return $this->useEmailSending; - } - public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate) - { - $this->verifyEmailTemplate = $verifyEmailTemplate; - } - public function getVerifyEmailTemplate() - { - return $this->verifyEmailTemplate; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $projectId; - - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceId; - public $localId; - - - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $localId; - - - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $captchaChallenge; - public $captchaResponse; - public $displayName; - public $email; - public $idToken; - public $instanceId; - public $password; - public $returnSecureToken; - - - public function setCaptchaChallenge($captchaChallenge) - { - $this->captchaChallenge = $captchaChallenge; - } - public function getCaptchaChallenge() - { - return $this->captchaChallenge; - } - public function setCaptchaResponse($captchaResponse) - { - $this->captchaResponse = $captchaResponse; - } - public function getCaptchaResponse() - { - return $this->captchaResponse; - } - 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 setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setReturnSecureToken($returnSecureToken) - { - $this->returnSecureToken = $returnSecureToken; - } - public function getReturnSecureToken() - { - return $this->returnSecureToken; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $delegatedProjectNumber; - public $hashAlgorithm; - public $memoryCost; - public $rounds; - public $saltSeparator; - public $signerKey; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; - - - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setHashAlgorithm($hashAlgorithm) - { - $this->hashAlgorithm = $hashAlgorithm; - } - public function getHashAlgorithm() - { - return $this->hashAlgorithm; - } - public function setMemoryCost($memoryCost) - { - $this->memoryCost = $memoryCost; - } - public function getMemoryCost() - { - return $this->memoryCost; - } - public function setRounds($rounds) - { - $this->rounds = $rounds; - } - public function getRounds() - { - return $this->rounds; - } - public function setSaltSeparator($saltSeparator) - { - $this->saltSeparator = $saltSeparator; - } - public function getSaltSeparator() - { - return $this->saltSeparator; - } - public function setSignerKey($signerKey) - { - $this->signerKey = $signerKey; - } - public function getSignerKey() - { - return $this->signerKey; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $delegatedProjectNumber; - public $idToken; - public $instanceId; - public $pendingIdToken; - public $postBody; - public $requestUri; - public $returnRefreshToken; - public $returnSecureToken; - public $sessionId; - - - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setPendingIdToken($pendingIdToken) - { - $this->pendingIdToken = $pendingIdToken; - } - public function getPendingIdToken() - { - return $this->pendingIdToken; - } - public function setPostBody($postBody) - { - $this->postBody = $postBody; - } - public function getPostBody() - { - return $this->postBody; - } - public function setRequestUri($requestUri) - { - $this->requestUri = $requestUri; - } - public function getRequestUri() - { - return $this->requestUri; - } - public function setReturnRefreshToken($returnRefreshToken) - { - $this->returnRefreshToken = $returnRefreshToken; - } - public function getReturnRefreshToken() - { - return $this->returnRefreshToken; - } - public function setReturnSecureToken($returnSecureToken) - { - $this->returnSecureToken = $returnSecureToken; - } - public function getReturnSecureToken() - { - return $this->returnSecureToken; - } - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - public function getSessionId() - { - return $this->sessionId; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceId; - public $returnSecureToken; - public $token; - - - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setReturnSecureToken($returnSecureToken) - { - $this->returnSecureToken = $returnSecureToken; - } - public function getReturnSecureToken() - { - return $this->returnSecureToken; - } - public function setToken($token) - { - $this->token = $token; - } - public function getToken() - { - return $this->token; - } -} - -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $captchaChallenge; - public $captchaResponse; - public $delegatedProjectNumber; - public $email; - public $idToken; - public $instanceId; - public $password; - public $pendingIdToken; - public $returnSecureToken; - - - public function setCaptchaChallenge($captchaChallenge) - { - $this->captchaChallenge = $captchaChallenge; - } - public function getCaptchaChallenge() - { - return $this->captchaChallenge; - } - public function setCaptchaResponse($captchaResponse) - { - $this->captchaResponse = $captchaResponse; - } - public function getCaptchaResponse() - { - return $this->captchaResponse; - } - public function setDelegatedProjectNumber($delegatedProjectNumber) - { - $this->delegatedProjectNumber = $delegatedProjectNumber; - } - public function getDelegatedProjectNumber() - { - return $this->delegatedProjectNumber; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setPendingIdToken($pendingIdToken) - { - $this->pendingIdToken = $pendingIdToken; - } - public function getPendingIdToken() - { - return $this->pendingIdToken; - } - public function setReturnSecureToken($returnSecureToken) - { - $this->returnSecureToken = $returnSecureToken; - } - public function getReturnSecureToken() - { - return $this->returnSecureToken; - } -} - -class Google_Service_IdentityToolkit_IdpConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientId; - public $enabled; - public $experimentPercent; - public $provider; - - - public function setClientId($clientId) - { - $this->clientId = $clientId; - } - public function getClientId() - { - return $this->clientId; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setExperimentPercent($experimentPercent) - { - $this->experimentPercent = $experimentPercent; - } - public function getExperimentPercent() - { - return $this->experimentPercent; - } - public function setProvider($provider) - { - $this->provider = $provider; - } - public function getProvider() - { - return $this->provider; - } -} - -class Google_Service_IdentityToolkit_Relyingparty extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $captchaResp; - public $challenge; - public $email; - public $idToken; - public $kind; - public $newEmail; - public $requestType; - public $userIp; - - - public function setCaptchaResp($captchaResp) - { - $this->captchaResp = $captchaResp; - } - public function getCaptchaResp() - { - return $this->captchaResp; - } - public function setChallenge($challenge) - { - $this->challenge = $challenge; - } - public function getChallenge() - { - return $this->challenge; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewEmail($newEmail) - { - $this->newEmail = $newEmail; - } - public function getNewEmail() - { - return $this->newEmail; - } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } - public function getRequestType() - { - return $this->requestType; - } - public function setUserIp($userIp) - { - $this->userIp = $userIp; - } - public function getUserIp() - { - return $this->userIp; - } -} - -class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $kind; - - - 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_IdentityToolkit_SetAccountInfoResponse extends Google_Collection -{ - protected $collection_key = 'providerUserInfo'; - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $email; - public $expiresIn; - public $idToken; - public $kind; - public $newEmail; - public $photoUrl; - protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; - protected $providerUserInfoDataType = 'array'; - public $refreshToken; - - - 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 setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNewEmail($newEmail) - { - $this->newEmail = $newEmail; - } - public function getNewEmail() - { - return $this->newEmail; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProviderUserInfo($providerUserInfo) - { - $this->providerUserInfo = $providerUserInfo; - } - public function getProviderUserInfo() - { - return $this->providerUserInfo; - } - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - public function getRefreshToken() - { - return $this->refreshToken; - } -} - -class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $photoUrl; - public $providerId; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } - public function getProviderId() - { - return $this->providerId; - } -} - -class Google_Service_IdentityToolkit_SignupNewUserResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $email; - public $expiresIn; - public $idToken; - public $kind; - public $localId; - public $refreshToken; - - - 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 setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - public function getRefreshToken() - { - return $this->refreshToken; - } -} - -class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection -{ - protected $collection_key = 'error'; - protected $internal_gapi_mappings = array( - ); - protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError'; - protected $errorDataType = 'array'; - public $kind; - - - public function setError($error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $index; - public $message; - - - public function setIndex($index) - { - $this->index = $index; - } - public function getIndex() - { - return $this->index; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_IdentityToolkit_UserInfo extends Google_Collection -{ - protected $collection_key = 'providerUserInfo'; - protected $internal_gapi_mappings = array( - ); - public $disabled; - public $displayName; - public $email; - public $emailVerified; - public $localId; - public $passwordHash; - public $passwordUpdatedAt; - public $photoUrl; - protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo'; - protected $providerUserInfoDataType = 'array'; - public $salt; - public $validSince; - public $version; - - - public function setDisabled($disabled) - { - $this->disabled = $disabled; - } - public function getDisabled() - { - return $this->disabled; - } - 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 setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } - public function getEmailVerified() - { - return $this->emailVerified; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } - public function setPasswordHash($passwordHash) - { - $this->passwordHash = $passwordHash; - } - public function getPasswordHash() - { - return $this->passwordHash; - } - public function setPasswordUpdatedAt($passwordUpdatedAt) - { - $this->passwordUpdatedAt = $passwordUpdatedAt; - } - public function getPasswordUpdatedAt() - { - return $this->passwordUpdatedAt; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProviderUserInfo($providerUserInfo) - { - $this->providerUserInfo = $providerUserInfo; - } - public function getProviderUserInfo() - { - return $this->providerUserInfo; - } - public function setSalt($salt) - { - $this->salt = $salt; - } - public function getSalt() - { - return $this->salt; - } - public function setValidSince($validSince) - { - $this->validSince = $validSince; - } - public function getValidSince() - { - return $this->validSince; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $email; - public $federatedId; - public $photoUrl; - public $providerId; - public $rawId; - - - 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 setFederatedId($federatedId) - { - $this->federatedId = $federatedId; - } - public function getFederatedId() - { - return $this->federatedId; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } - public function getProviderId() - { - return $this->providerId; - } - public function setRawId($rawId) - { - $this->rawId = $rawId; - } - public function getRawId() - { - return $this->rawId; - } -} - -class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection -{ - protected $collection_key = 'verifiedProvider'; - protected $internal_gapi_mappings = array( - ); - public $action; - public $appInstallationUrl; - public $appScheme; - public $context; - public $dateOfBirth; - public $displayName; - public $email; - public $emailRecycled; - public $emailVerified; - public $expiresIn; - public $federatedId; - public $firstName; - public $fullName; - public $idToken; - public $inputEmail; - public $kind; - public $language; - public $lastName; - public $localId; - public $needConfirmation; - public $needEmail; - public $nickName; - public $oauthAccessToken; - public $oauthAuthorizationCode; - public $oauthExpireIn; - public $oauthRequestToken; - public $oauthScope; - public $oauthTokenSecret; - public $originalEmail; - public $photoUrl; - public $providerId; - public $refreshToken; - public $timeZone; - public $verifiedProvider; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setAppInstallationUrl($appInstallationUrl) - { - $this->appInstallationUrl = $appInstallationUrl; - } - public function getAppInstallationUrl() - { - return $this->appInstallationUrl; - } - public function setAppScheme($appScheme) - { - $this->appScheme = $appScheme; - } - public function getAppScheme() - { - return $this->appScheme; - } - public function setContext($context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setDateOfBirth($dateOfBirth) - { - $this->dateOfBirth = $dateOfBirth; - } - public function getDateOfBirth() - { - return $this->dateOfBirth; - } - 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 setEmailRecycled($emailRecycled) - { - $this->emailRecycled = $emailRecycled; - } - public function getEmailRecycled() - { - return $this->emailRecycled; - } - public function setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } - public function getEmailVerified() - { - return $this->emailVerified; - } - public function setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setFederatedId($federatedId) - { - $this->federatedId = $federatedId; - } - public function getFederatedId() - { - return $this->federatedId; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } - public function getFullName() - { - return $this->fullName; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setInputEmail($inputEmail) - { - $this->inputEmail = $inputEmail; - } - public function getInputEmail() - { - return $this->inputEmail; - } - 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 setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } - public function setNeedConfirmation($needConfirmation) - { - $this->needConfirmation = $needConfirmation; - } - public function getNeedConfirmation() - { - return $this->needConfirmation; - } - public function setNeedEmail($needEmail) - { - $this->needEmail = $needEmail; - } - public function getNeedEmail() - { - return $this->needEmail; - } - public function setNickName($nickName) - { - $this->nickName = $nickName; - } - public function getNickName() - { - return $this->nickName; - } - public function setOauthAccessToken($oauthAccessToken) - { - $this->oauthAccessToken = $oauthAccessToken; - } - public function getOauthAccessToken() - { - return $this->oauthAccessToken; - } - public function setOauthAuthorizationCode($oauthAuthorizationCode) - { - $this->oauthAuthorizationCode = $oauthAuthorizationCode; - } - public function getOauthAuthorizationCode() - { - return $this->oauthAuthorizationCode; - } - public function setOauthExpireIn($oauthExpireIn) - { - $this->oauthExpireIn = $oauthExpireIn; - } - public function getOauthExpireIn() - { - return $this->oauthExpireIn; - } - public function setOauthRequestToken($oauthRequestToken) - { - $this->oauthRequestToken = $oauthRequestToken; - } - public function getOauthRequestToken() - { - return $this->oauthRequestToken; - } - public function setOauthScope($oauthScope) - { - $this->oauthScope = $oauthScope; - } - public function getOauthScope() - { - return $this->oauthScope; - } - public function setOauthTokenSecret($oauthTokenSecret) - { - $this->oauthTokenSecret = $oauthTokenSecret; - } - public function getOauthTokenSecret() - { - return $this->oauthTokenSecret; - } - public function setOriginalEmail($originalEmail) - { - $this->originalEmail = $originalEmail; - } - public function getOriginalEmail() - { - return $this->originalEmail; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } - public function getProviderId() - { - return $this->providerId; - } - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - public function getRefreshToken() - { - return $this->refreshToken; - } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } - public function getTimeZone() - { - return $this->timeZone; - } - public function setVerifiedProvider($verifiedProvider) - { - $this->verifiedProvider = $verifiedProvider; - } - public function getVerifiedProvider() - { - return $this->verifiedProvider; - } -} - -class Google_Service_IdentityToolkit_VerifyCustomTokenResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expiresIn; - public $idToken; - public $kind; - public $refreshToken; - - - public function setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - public function getRefreshToken() - { - return $this->refreshToken; - } -} - -class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $email; - public $expiresIn; - public $idToken; - public $kind; - public $localId; - public $oauthAccessToken; - public $oauthAuthorizationCode; - public $oauthExpireIn; - public $photoUrl; - public $refreshToken; - public $registered; - - - 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 setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } - public function getIdToken() - { - return $this->idToken; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalId($localId) - { - $this->localId = $localId; - } - public function getLocalId() - { - return $this->localId; - } - public function setOauthAccessToken($oauthAccessToken) - { - $this->oauthAccessToken = $oauthAccessToken; - } - public function getOauthAccessToken() - { - return $this->oauthAccessToken; - } - public function setOauthAuthorizationCode($oauthAuthorizationCode) - { - $this->oauthAuthorizationCode = $oauthAuthorizationCode; - } - public function getOauthAuthorizationCode() - { - return $this->oauthAuthorizationCode; - } - public function setOauthExpireIn($oauthExpireIn) - { - $this->oauthExpireIn = $oauthExpireIn; - } - public function getOauthExpireIn() - { - return $this->oauthExpireIn; - } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } - public function getPhotoUrl() - { - return $this->photoUrl; - } - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - public function getRefreshToken() - { - return $this->refreshToken; - } - public function setRegistered($registered) - { - $this->registered = $registered; - } - public function getRegistered() - { - return $this->registered; - } -} diff --git a/src/Google/Service/Kgsearch.php b/src/Google/Service/Kgsearch.php deleted file mode 100644 index 0fa239a5f..000000000 --- a/src/Google/Service/Kgsearch.php +++ /dev/null @@ -1,178 +0,0 @@ - - * Knowledge Graph Search API allows developers to search the Google Knowledge - * Graph for entities.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Kgsearch extends Google_Service -{ - - - public $entities; - - - /** - * Constructs the internal representation of the Kgsearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://kgsearch.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'kgsearch'; - - $this->entities = new Google_Service_Kgsearch_Entities_Resource( - $this, - $this->serviceName, - 'entities', - array( - 'methods' => array( - 'search' => array( - 'path' => 'v1/entities:search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'languages' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'types' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'indent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "entities" collection of methods. - * Typical usage is: - * - * $kgsearchService = new Google_Service_Kgsearch(...); - * $entities = $kgsearchService->entities; - * - */ -class Google_Service_Kgsearch_Entities_Resource extends Google_Service_Resource -{ - - /** - * Searches Knowledge Graph for entities that match the constraints. A list of - * matched entities will be returned in response, which will be in JSON-LD - * format and compatible with http://schema.org (entities.search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string query The literal query string for search. - * @opt_param string ids The list of entity id to be used for search instead of - * query string. - * @opt_param string languages The list of language codes (defined in ISO 693) - * to run the query with, e.g. 'en'. - * @opt_param string types Restricts returned entities with these types, e.g. - * Person (as defined in http://schema.org/Person). - * @opt_param bool indent Enables indenting of json results. - * @opt_param bool prefix Enables prefix match against names and aliases of - * entities - * @opt_param int limit Limits the number of entities to be returned. - * @return Google_Service_Kgsearch_SearchResponse - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Kgsearch_SearchResponse"); - } -} - - - - -class Google_Service_Kgsearch_SearchResponse extends Google_Collection -{ - protected $collection_key = 'itemListElement'; - protected $internal_gapi_mappings = array( - ); - public $context; - public $itemListElement; - public $type; - - - public function setContext($context) - { - $this->context = $context; - } - public function getContext() - { - return $this->context; - } - public function setItemListElement($itemListElement) - { - $this->itemListElement = $itemListElement; - } - public function getItemListElement() - { - return $this->itemListElement; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php deleted file mode 100644 index 9afcb5bc8..000000000 --- a/src/Google/Service/Licensing.php +++ /dev/null @@ -1,479 +0,0 @@ - - * 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 -{ - /** View and manage Google Apps licenses for your domain. */ - const APPS_LICENSING = - "https://www.googleapis.com/auth/apps.licensing"; - - public $licenseAssignments; - - - /** - * Constructs the internal representation of the Licensing service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'apps/licensing/v1/product/'; - $this->version = 'v1'; - $this->serviceName = 'licensing'; - - $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource( - $this, - $this->serviceName, - 'licenseAssignments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{productId}/sku/{skuId}/user', - 'httpMethod' => 'POST', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'listForProduct' => array( - 'path' => '{productId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listForProductAndSku' => array( - 'path' => '{productId}/sku/{skuId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "licenseAssignments" collection of methods. - * Typical usage is: - * - * $licensingService = new Google_Service_Licensing(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Get license assignment of a particular product and sku for a user - * (licenseAssignments.get) - * - * @param string $productId Name for product - * @param string $skuId Name for sku - * @param string $userId email id or unique Id of the user - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function get($productId, $skuId, $userId, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - - /** - * Assign License. (licenseAssignments.insert) - * - * @param string $productId Name for product - * @param string $skuId Name for sku - * @param Google_LicenseAssignmentInsert $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - - /** - * List license assignments for given product of the customer. - * (licenseAssignments.listForProduct) - * - * @param string $productId Name for product - * @param string $customerId CustomerId represents the customer for whom - * licenseassignments are queried - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList"); - } - - /** - * List license assignments for given product and sku of the customer. - * (licenseAssignments.listForProductAndSku) - * - * @param string $productId Name for product - * @param string $skuId Name for sku - * @param string $customerId CustomerId represents the customer for whom - * licenseassignments are queried - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList"); - } - - /** - * Assign License. This method supports patch semantics. - * (licenseAssignments.patch) - * - * @param string $productId Name for product - * @param string $skuId Name for sku for which license would be revoked - * @param string $userId email id or unique Id of the user - * @param Google_LicenseAssignment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - - /** - * Assign License. (licenseAssignments.update) - * - * @param string $productId Name for product - * @param string $skuId Name for sku for which license would be revoked - * @param string $userId email id or unique Id of the user - * @param Google_LicenseAssignment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment"); - } -} - - - - -class Google_Service_Licensing_LicenseAssignment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $userId; - - - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} - -class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Licensing_LicenseAssignment'; - protected $itemsDataType = 'array'; - 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/Logging.php b/src/Google/Service/Logging.php deleted file mode 100644 index 84bbcd451..000000000 --- a/src/Google/Service/Logging.php +++ /dev/null @@ -1,1651 +0,0 @@ - - * The Google Cloud Logging API lets you write log entries and manage your logs, - * log sinks and logs-based metrics.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Logging extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** Administrate log data for your projects. */ - const LOGGING_ADMIN = - "https://www.googleapis.com/auth/logging.admin"; - /** View log data for your projects. */ - const LOGGING_READ = - "https://www.googleapis.com/auth/logging.read"; - /** Submit log data for your projects. */ - const LOGGING_WRITE = - "https://www.googleapis.com/auth/logging.write"; - - public $entries; - public $monitoredResourceDescriptors; - public $projects_logs; - public $projects_metrics; - public $projects_sinks; - - - /** - * Constructs the internal representation of the Logging service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://logging.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v2beta1'; - $this->serviceName = 'logging'; - - $this->entries = new Google_Service_Logging_Entries_Resource( - $this, - $this->serviceName, - 'entries', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2beta1/entries:list', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'write' => array( - 'path' => 'v2beta1/entries:write', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->monitoredResourceDescriptors = new Google_Service_Logging_MonitoredResourceDescriptors_Resource( - $this, - $this->serviceName, - 'monitoredResourceDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2beta1/monitoredResourceDescriptors', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( - $this, - $this->serviceName, - 'logs', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'v2beta1/{+logName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'logName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v2beta1/{+projectName}/metrics', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v2beta1/{+metricName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'metricName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v2beta1/{+metricName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'metricName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2beta1/{+projectName}/metrics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'v2beta1/{+metricName}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'metricName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_sinks = new Google_Service_Logging_ProjectsSinks_Resource( - $this, - $this->serviceName, - 'sinks', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v2beta1/{+projectName}/sinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v2beta1/{+sinkName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'sinkName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v2beta1/{+sinkName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'sinkName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v2beta1/{+projectName}/sinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'v2beta1/{+sinkName}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'sinkName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "entries" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $entries = $loggingService->entries; - * - */ -class Google_Service_Logging_Entries_Resource extends Google_Service_Resource -{ - - /** - * Lists log entries. Use this method to retrieve log entries from Cloud - * Logging. For ways to export log entries, see [Exporting - * Logs](/logging/docs/export). (entries.listEntries) - * - * @param Google_ListLogEntriesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_ListLogEntriesResponse - */ - public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); - } - - /** - * Writes log entries to Cloud Logging. All log entries in Cloud Logging are - * written by this method. (entries.write) - * - * @param Google_WriteLogEntriesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_WriteLogEntriesResponse - */ - public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); - } -} - -/** - * The "monitoredResourceDescriptors" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $monitoredResourceDescriptors = $loggingService->monitoredResourceDescriptors; - * - */ -class Google_Service_Logging_MonitoredResourceDescriptors_Resource extends Google_Service_Resource -{ - - /** - * Lists monitored resource descriptors that are used by Cloud Logging. - * (monitoredResourceDescriptors.listMonitoredResourceDescriptors) - * - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Fewer results might be returned. You must check for the - * `nextPageToken` result to determine if additional results are available, - * which you can retrieve by passing the `nextPageToken` value in the - * `pageToken` parameter to the next request. - * @opt_param string pageToken Optional. If the `pageToken` request parameter is - * supplied, then the next page of results in the set are retrieved. The - * `pageToken` parameter must be set with the value of the `nextPageToken` - * result parameter from the previous request. - * @return Google_Service_Logging_ListMonitoredResourceDescriptorsResponse - */ - public function listMonitoredResourceDescriptors($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListMonitoredResourceDescriptorsResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $projects = $loggingService->projects; - * - */ -class Google_Service_Logging_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "logs" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $logs = $loggingService->logs; - * - */ -class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource -{ - - /** - * Deletes a log and all its log entries. The log will reappear if it receives - * new entries. (logs.delete) - * - * @param string $logName Required. The resource name of the log to delete. - * Example: `"projects/my-project/logs/syslog"`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($logName, $optParams = array()) - { - $params = array('logName' => $logName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } -} -/** - * The "metrics" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $metrics = $loggingService->metrics; - * - */ -class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource -{ - - /** - * Creates a logs-based metric. (metrics.create) - * - * @param string $projectName The resource name of the project in which to - * create the metric. Example: `"projects/my-project-id"`. The new metric must - * be provided in the request. - * @param Google_LogMetric $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function create($projectName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Logging_LogMetric"); - } - - /** - * Deletes a logs-based metric. (metrics.delete) - * - * @param string $metricName The resource name of the metric to delete. Example: - * `"projects/my-project-id/metrics/my-metric-id"`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($metricName, $optParams = array()) - { - $params = array('metricName' => $metricName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } - - /** - * Gets a logs-based metric. (metrics.get) - * - * @param string $metricName The resource name of the desired metric. Example: - * `"projects/my-project-id/metrics/my-metric-id"`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function get($metricName, $optParams = array()) - { - $params = array('metricName' => $metricName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Logging_LogMetric"); - } - - /** - * Lists logs-based metrics. (metrics.listProjectsMetrics) - * - * @param string $projectName Required. The resource name of the project - * containing the metrics. Example: `"projects/my-project-id"`. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Optional. If the `pageToken` request parameter is - * supplied, then the next page of results in the set are retrieved. The - * `pageToken` parameter must be set with the value of the `nextPageToken` - * result parameter from the previous request. The value of `projectName` must - * be the same as in the previous request. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Fewer results might be returned. You must check for the - * `nextPageToken` result to determine if additional results are available, - * which you can retrieve by passing the `nextPageToken` value in the - * `pageToken` parameter to the next request. - * @return Google_Service_Logging_ListLogMetricsResponse - */ - public function listProjectsMetrics($projectName, $optParams = array()) - { - $params = array('projectName' => $projectName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse"); - } - - /** - * Creates or updates a logs-based metric. (metrics.update) - * - * @param string $metricName The resource name of the metric to update. Example: - * `"projects/my-project-id/metrics/my-metric-id"`. The updated metric must be - * provided in the request and have the same identifier that is specified in - * `metricName`. If the metric does not exist, it is created. - * @param Google_LogMetric $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogMetric - */ - public function update($metricName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) - { - $params = array('metricName' => $metricName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Logging_LogMetric"); - } -} -/** - * The "sinks" collection of methods. - * Typical usage is: - * - * $loggingService = new Google_Service_Logging(...); - * $sinks = $loggingService->sinks; - * - */ -class Google_Service_Logging_ProjectsSinks_Resource extends Google_Service_Resource -{ - - /** - * Creates a sink. (sinks.create) - * - * @param string $projectName The resource name of the project in which to - * create the sink. Example: `"projects/my-project-id"`. The new sink must be - * provided in the request. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function create($projectName, Google_Service_Logging_LogSink $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Logging_LogSink"); - } - - /** - * Deletes a sink. (sinks.delete) - * - * @param string $sinkName The resource name of the sink to delete. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_Empty - */ - public function delete($sinkName, $optParams = array()) - { - $params = array('sinkName' => $sinkName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Logging_Empty"); - } - - /** - * Gets a sink. (sinks.get) - * - * @param string $sinkName The resource name of the sink to return. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function get($sinkName, $optParams = array()) - { - $params = array('sinkName' => $sinkName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Logging_LogSink"); - } - - /** - * Lists sinks. (sinks.listProjectsSinks) - * - * @param string $projectName Required. The resource name of the project - * containing the sinks. Example: `"projects/my-logging-project"`, - * `"projects/01234567890"`. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Optional. If the `pageToken` request parameter is - * supplied, then the next page of results in the set are retrieved. The - * `pageToken` parameter must be set with the value of the `nextPageToken` - * result parameter from the previous request. The value of `projectName` must - * be the same as in the previous request. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Fewer results might be returned. You must check for the - * `nextPageToken` result to determine if additional results are available, - * which you can retrieve by passing the `nextPageToken` value in the - * `pageToken` parameter to the next request. - * @return Google_Service_Logging_ListSinksResponse - */ - public function listProjectsSinks($projectName, $optParams = array()) - { - $params = array('projectName' => $projectName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse"); - } - - /** - * Creates or updates a sink. (sinks.update) - * - * @param string $sinkName The resource name of the sink to update. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be - * provided in the request and have the same name that is specified in - * `sinkName`. If the sink does not exist, it is created. - * @param Google_LogSink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Logging_LogSink - */ - public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) - { - $params = array('sinkName' => $sinkName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Logging_LogSink"); - } -} - - - - -class Google_Service_Logging_Empty extends Google_Model -{ -} - -class Google_Service_Logging_HttpRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cacheHit; - public $referer; - public $remoteIp; - public $requestMethod; - public $requestSize; - public $requestUrl; - public $responseSize; - public $status; - public $userAgent; - public $validatedWithOriginServer; - - - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } - public function getCacheHit() - { - return $this->cacheHit; - } - public function setReferer($referer) - { - $this->referer = $referer; - } - public function getReferer() - { - return $this->referer; - } - public function setRemoteIp($remoteIp) - { - $this->remoteIp = $remoteIp; - } - public function getRemoteIp() - { - return $this->remoteIp; - } - public function setRequestMethod($requestMethod) - { - $this->requestMethod = $requestMethod; - } - public function getRequestMethod() - { - return $this->requestMethod; - } - public function setRequestSize($requestSize) - { - $this->requestSize = $requestSize; - } - public function getRequestSize() - { - return $this->requestSize; - } - public function setRequestUrl($requestUrl) - { - $this->requestUrl = $requestUrl; - } - public function getRequestUrl() - { - return $this->requestUrl; - } - public function setResponseSize($responseSize) - { - $this->responseSize = $responseSize; - } - public function getResponseSize() - { - return $this->responseSize; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - public function getUserAgent() - { - return $this->userAgent; - } - public function setValidatedWithOriginServer($validatedWithOriginServer) - { - $this->validatedWithOriginServer = $validatedWithOriginServer; - } - public function getValidatedWithOriginServer() - { - return $this->validatedWithOriginServer; - } -} - -class Google_Service_Logging_LabelDescriptor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $key; - public $valueType; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValueType($valueType) - { - $this->valueType = $valueType; - } - public function getValueType() - { - return $this->valueType; - } -} - -class Google_Service_Logging_ListLogEntriesRequest extends Google_Collection -{ - protected $collection_key = 'projectIds'; - protected $internal_gapi_mappings = array( - ); - public $filter; - public $orderBy; - public $pageSize; - public $pageToken; - public $projectIds; - - - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - public function getOrderBy() - { - return $this->orderBy; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setProjectIds($projectIds) - { - $this->projectIds = $projectIds; - } - public function getProjectIds() - { - return $this->projectIds; - } -} - -class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_Logging_LogEntry'; - protected $entriesDataType = 'array'; - public $nextPageToken; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection -{ - protected $collection_key = 'metrics'; - protected $internal_gapi_mappings = array( - ); - protected $metricsType = 'Google_Service_Logging_LogMetric'; - protected $metricsDataType = 'array'; - public $nextPageToken; - - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - public function getMetrics() - { - return $this->metrics; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Logging_ListMonitoredResourceDescriptorsResponse extends Google_Collection -{ - protected $collection_key = 'resourceDescriptors'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourceDescriptorsType = 'Google_Service_Logging_MonitoredResourceDescriptor'; - protected $resourceDescriptorsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResourceDescriptors($resourceDescriptors) - { - $this->resourceDescriptors = $resourceDescriptors; - } - public function getResourceDescriptors() - { - return $this->resourceDescriptors; - } -} - -class Google_Service_Logging_ListSinksResponse extends Google_Collection -{ - protected $collection_key = 'sinks'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $sinksType = 'Google_Service_Logging_LogSink'; - protected $sinksDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSinks($sinks) - { - $this->sinks = $sinks; - } - public function getSinks() - { - return $this->sinks; - } -} - -class Google_Service_Logging_LogEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $httpRequestType = 'Google_Service_Logging_HttpRequest'; - protected $httpRequestDataType = ''; - public $insertId; - public $jsonPayload; - public $labels; - public $logName; - protected $operationType = 'Google_Service_Logging_LogEntryOperation'; - protected $operationDataType = ''; - public $protoPayload; - protected $resourceType = 'Google_Service_Logging_MonitoredResource'; - protected $resourceDataType = ''; - public $severity; - public $textPayload; - public $timestamp; - - - public function setHttpRequest(Google_Service_Logging_HttpRequest $httpRequest) - { - $this->httpRequest = $httpRequest; - } - public function getHttpRequest() - { - return $this->httpRequest; - } - public function setInsertId($insertId) - { - $this->insertId = $insertId; - } - public function getInsertId() - { - return $this->insertId; - } - public function setJsonPayload($jsonPayload) - { - $this->jsonPayload = $jsonPayload; - } - public function getJsonPayload() - { - return $this->jsonPayload; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setLogName($logName) - { - $this->logName = $logName; - } - public function getLogName() - { - return $this->logName; - } - public function setOperation(Google_Service_Logging_LogEntryOperation $operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setProtoPayload($protoPayload) - { - $this->protoPayload = $protoPayload; - } - public function getProtoPayload() - { - return $this->protoPayload; - } - public function setResource(Google_Service_Logging_MonitoredResource $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setTextPayload($textPayload) - { - $this->textPayload = $textPayload; - } - public function getTextPayload() - { - return $this->textPayload; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } -} - -class Google_Service_Logging_LogEntryOperation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $first; - public $id; - public $last; - public $producer; - - - public function setFirst($first) - { - $this->first = $first; - } - public function getFirst() - { - return $this->first; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLast($last) - { - $this->last = $last; - } - public function getLast() - { - return $this->last; - } - public function setProducer($producer) - { - $this->producer = $producer; - } - public function getProducer() - { - return $this->producer; - } -} - -class Google_Service_Logging_LogLine extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $logMessage; - public $severity; - protected $sourceLocationType = 'Google_Service_Logging_SourceLocation'; - protected $sourceLocationDataType = ''; - public $time; - - - public function setLogMessage($logMessage) - { - $this->logMessage = $logMessage; - } - public function getLogMessage() - { - return $this->logMessage; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation) - { - $this->sourceLocation = $sourceLocation; - } - public function getSourceLocation() - { - return $this->sourceLocation; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Logging_LogMetric extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $filter; - public $name; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Logging_LogSink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destination; - public $filter; - public $name; - public $outputVersionFormat; - - - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOutputVersionFormat($outputVersionFormat) - { - $this->outputVersionFormat = $outputVersionFormat; - } - public function getOutputVersionFormat() - { - return $this->outputVersionFormat; - } -} - -class Google_Service_Logging_MonitoredResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $labels; - public $type; - - - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Logging_MonitoredResourceDescriptor extends Google_Collection -{ - protected $collection_key = 'labels'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $displayName; - protected $labelsType = 'Google_Service_Logging_LabelDescriptor'; - protected $labelsDataType = 'array'; - public $type; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Logging_RequestLog extends Google_Collection -{ - protected $collection_key = 'sourceReference'; - protected $internal_gapi_mappings = array( - ); - public $appEngineRelease; - public $appId; - public $cost; - public $endTime; - public $finished; - public $host; - public $httpVersion; - public $instanceId; - public $instanceIndex; - public $ip; - public $latency; - protected $lineType = 'Google_Service_Logging_LogLine'; - protected $lineDataType = 'array'; - public $megaCycles; - public $method; - public $moduleId; - public $nickname; - public $pendingTime; - public $referrer; - public $requestId; - public $resource; - public $responseSize; - protected $sourceReferenceType = 'Google_Service_Logging_SourceReference'; - protected $sourceReferenceDataType = 'array'; - public $startTime; - public $status; - public $taskName; - public $taskQueueName; - public $traceId; - public $urlMapEntry; - public $userAgent; - public $versionId; - public $wasLoadingRequest; - - - public function setAppEngineRelease($appEngineRelease) - { - $this->appEngineRelease = $appEngineRelease; - } - public function getAppEngineRelease() - { - return $this->appEngineRelease; - } - public function setAppId($appId) - { - $this->appId = $appId; - } - public function getAppId() - { - return $this->appId; - } - public function setCost($cost) - { - $this->cost = $cost; - } - public function getCost() - { - return $this->cost; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setFinished($finished) - { - $this->finished = $finished; - } - public function getFinished() - { - return $this->finished; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setHttpVersion($httpVersion) - { - $this->httpVersion = $httpVersion; - } - public function getHttpVersion() - { - return $this->httpVersion; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setInstanceIndex($instanceIndex) - { - $this->instanceIndex = $instanceIndex; - } - public function getInstanceIndex() - { - return $this->instanceIndex; - } - public function setIp($ip) - { - $this->ip = $ip; - } - public function getIp() - { - return $this->ip; - } - public function setLatency($latency) - { - $this->latency = $latency; - } - public function getLatency() - { - return $this->latency; - } - public function setLine($line) - { - $this->line = $line; - } - public function getLine() - { - return $this->line; - } - public function setMegaCycles($megaCycles) - { - $this->megaCycles = $megaCycles; - } - public function getMegaCycles() - { - return $this->megaCycles; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setModuleId($moduleId) - { - $this->moduleId = $moduleId; - } - public function getModuleId() - { - return $this->moduleId; - } - public function setNickname($nickname) - { - $this->nickname = $nickname; - } - public function getNickname() - { - return $this->nickname; - } - public function setPendingTime($pendingTime) - { - $this->pendingTime = $pendingTime; - } - public function getPendingTime() - { - return $this->pendingTime; - } - public function setReferrer($referrer) - { - $this->referrer = $referrer; - } - public function getReferrer() - { - return $this->referrer; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setResource($resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } - public function setResponseSize($responseSize) - { - $this->responseSize = $responseSize; - } - public function getResponseSize() - { - return $this->responseSize; - } - public function setSourceReference($sourceReference) - { - $this->sourceReference = $sourceReference; - } - public function getSourceReference() - { - return $this->sourceReference; - } - 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 setTaskName($taskName) - { - $this->taskName = $taskName; - } - public function getTaskName() - { - return $this->taskName; - } - public function setTaskQueueName($taskQueueName) - { - $this->taskQueueName = $taskQueueName; - } - public function getTaskQueueName() - { - return $this->taskQueueName; - } - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - public function getTraceId() - { - return $this->traceId; - } - public function setUrlMapEntry($urlMapEntry) - { - $this->urlMapEntry = $urlMapEntry; - } - public function getUrlMapEntry() - { - return $this->urlMapEntry; - } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - public function getUserAgent() - { - return $this->userAgent; - } - public function setVersionId($versionId) - { - $this->versionId = $versionId; - } - public function getVersionId() - { - return $this->versionId; - } - public function setWasLoadingRequest($wasLoadingRequest) - { - $this->wasLoadingRequest = $wasLoadingRequest; - } - public function getWasLoadingRequest() - { - return $this->wasLoadingRequest; - } -} - -class Google_Service_Logging_SourceLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $file; - public $functionName; - public $line; - - - public function setFile($file) - { - $this->file = $file; - } - public function getFile() - { - return $this->file; - } - public function setFunctionName($functionName) - { - $this->functionName = $functionName; - } - public function getFunctionName() - { - return $this->functionName; - } - public function setLine($line) - { - $this->line = $line; - } - public function getLine() - { - return $this->line; - } -} - -class Google_Service_Logging_SourceReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $repository; - public $revisionId; - - - public function setRepository($repository) - { - $this->repository = $repository; - } - public function getRepository() - { - return $this->repository; - } - public function setRevisionId($revisionId) - { - $this->revisionId = $revisionId; - } - public function getRevisionId() - { - return $this->revisionId; - } -} - -class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_Logging_LogEntry'; - protected $entriesDataType = 'array'; - public $labels; - public $logName; - protected $resourceType = 'Google_Service_Logging_MonitoredResource'; - protected $resourceDataType = ''; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setLabels($labels) - { - $this->labels = $labels; - } - public function getLabels() - { - return $this->labels; - } - public function setLogName($logName) - { - $this->logName = $logName; - } - public function getLogName() - { - return $this->logName; - } - public function setResource(Google_Service_Logging_MonitoredResource $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model -{ -} diff --git a/src/Google/Service/Manager.php b/src/Google/Service/Manager.php deleted file mode 100644 index 71cff080a..000000000 --- a/src/Google/Service/Manager.php +++ /dev/null @@ -1,1845 +0,0 @@ - - * The Deployment Manager API allows users to declaratively configure, deploy - * and run complex solutions on the Google Cloud Platform.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Manager extends Google_Service -{ - /** View and manage your applications deployed on Google App Engine. */ - const APPENGINE_ADMIN = - "https://www.googleapis.com/auth/appengine.admin"; - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $deployments; - public $templates; - - - /** - * Constructs the internal representation of the Manager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'manager/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'manager'; - - $this->deployments = new Google_Service_Manager_Deployments_Resource( - $this, - $this->serviceName, - 'deployments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deploymentName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deploymentName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectId}/regions/{region}/deployments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectId}/regions/{region}/deployments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->templates = new Google_Service_Manager_Templates_Resource( - $this, - $this->serviceName, - 'templates', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectId}/templates/{templateName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectId}/templates/{templateName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectId}/templates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectId}/templates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "deployments" collection of methods. - * Typical usage is: - * - * $managerService = new Google_Service_Manager(...); - * $deployments = $managerService->deployments; - * - */ -class Google_Service_Manager_Deployments_Resource extends Google_Service_Resource -{ - - /** - * (deployments.delete) - * - * @param string $projectId - * @param string $region - * @param string $deploymentName - * @param array $optParams Optional parameters. - */ - public function delete($projectId, $region, $deploymentName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * (deployments.get) - * - * @param string $projectId - * @param string $region - * @param string $deploymentName - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Deployment - */ - public function get($projectId, $region, $deploymentName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Manager_Deployment"); - } - - /** - * (deployments.insert) - * - * @param string $projectId - * @param string $region - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Deployment - */ - public function insert($projectId, $region, Google_Service_Manager_Deployment $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Manager_Deployment"); - } - - /** - * (deployments.listDeployments) - * - * @param string $projectId - * @param string $region - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @return Google_Service_Manager_DeploymentsListResponse - */ - public function listDeployments($projectId, $region, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Manager_DeploymentsListResponse"); - } -} - -/** - * The "templates" collection of methods. - * Typical usage is: - * - * $managerService = new Google_Service_Manager(...); - * $templates = $managerService->templates; - * - */ -class Google_Service_Manager_Templates_Resource extends Google_Service_Resource -{ - - /** - * (templates.delete) - * - * @param string $projectId - * @param string $templateName - * @param array $optParams Optional parameters. - */ - public function delete($projectId, $templateName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'templateName' => $templateName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * (templates.get) - * - * @param string $projectId - * @param string $templateName - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Template - */ - public function get($projectId, $templateName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'templateName' => $templateName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Manager_Template"); - } - - /** - * (templates.insert) - * - * @param string $projectId - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Template - */ - public function insert($projectId, Google_Service_Manager_Template $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Manager_Template"); - } - - /** - * (templates.listTemplates) - * - * @param string $projectId - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 100, inclusive. (Default: 50) - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @return Google_Service_Manager_TemplatesListResponse - */ - public function listTemplates($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Manager_TemplatesListResponse"); - } -} - - - - -class Google_Service_Manager_AccessConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $natIp; - public $type; - - - 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_Manager_Action extends Google_Collection -{ - protected $collection_key = 'commands'; - protected $internal_gapi_mappings = array( - ); - public $commands; - public $timeoutMs; - - - public function setCommands($commands) - { - $this->commands = $commands; - } - public function getCommands() - { - return $this->commands; - } - public function setTimeoutMs($timeoutMs) - { - $this->timeoutMs = $timeoutMs; - } - public function getTimeoutMs() - { - return $this->timeoutMs; - } -} - -class Google_Service_Manager_AllowedRule extends Google_Collection -{ - protected $collection_key = 'ports'; - protected $internal_gapi_mappings = array( - "iPProtocol" => "IPProtocol", - ); - 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_Manager_AutoscalingModule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $coolDownPeriodSec; - public $description; - public $maxNumReplicas; - public $minNumReplicas; - public $signalType; - public $targetModule; - public $targetUtilization; - - - public function setCoolDownPeriodSec($coolDownPeriodSec) - { - $this->coolDownPeriodSec = $coolDownPeriodSec; - } - public function getCoolDownPeriodSec() - { - return $this->coolDownPeriodSec; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setMaxNumReplicas($maxNumReplicas) - { - $this->maxNumReplicas = $maxNumReplicas; - } - public function getMaxNumReplicas() - { - return $this->maxNumReplicas; - } - public function setMinNumReplicas($minNumReplicas) - { - $this->minNumReplicas = $minNumReplicas; - } - public function getMinNumReplicas() - { - return $this->minNumReplicas; - } - public function setSignalType($signalType) - { - $this->signalType = $signalType; - } - public function getSignalType() - { - return $this->signalType; - } - public function setTargetModule($targetModule) - { - $this->targetModule = $targetModule; - } - public function getTargetModule() - { - return $this->targetModule; - } - public function setTargetUtilization($targetUtilization) - { - $this->targetUtilization = $targetUtilization; - } - public function getTargetUtilization() - { - return $this->targetUtilization; - } -} - -class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoscalingConfigUrl; - - - public function setAutoscalingConfigUrl($autoscalingConfigUrl) - { - $this->autoscalingConfigUrl = $autoscalingConfigUrl; - } - public function getAutoscalingConfigUrl() - { - return $this->autoscalingConfigUrl; - } -} - -class Google_Service_Manager_DeployState extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $details; - public $status; - - - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Manager_Deployment extends Google_Collection -{ - protected $collection_key = 'overrides'; - protected $internal_gapi_mappings = array( - ); - public $creationDate; - public $description; - protected $modulesType = 'Google_Service_Manager_ModuleStatus'; - protected $modulesDataType = 'map'; - public $name; - protected $overridesType = 'Google_Service_Manager_ParamOverride'; - protected $overridesDataType = 'array'; - protected $stateType = 'Google_Service_Manager_DeployState'; - protected $stateDataType = ''; - public $templateName; - - - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setModules($modules) - { - $this->modules = $modules; - } - public function getModules() - { - return $this->modules; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOverrides($overrides) - { - $this->overrides = $overrides; - } - public function getOverrides() - { - return $this->overrides; - } - public function setState(Google_Service_Manager_DeployState $state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } - public function getTemplateName() - { - return $this->templateName; - } -} - -class Google_Service_Manager_DeploymentsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_Manager_Deployment'; - protected $resourcesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Manager_DiskAttachment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deviceName; - public $index; - - - 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; - } -} - -class Google_Service_Manager_EnvVariable extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hidden; - public $value; - - - public function setHidden($hidden) - { - $this->hidden = $hidden; - } - public function getHidden() - { - return $this->hidden; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Manager_ExistingDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; - protected $attachmentDataType = ''; - public $source; - - - public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } - public function getAttachment() - { - return $this->attachment; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Manager_FirewallModule extends Google_Collection -{ - protected $collection_key = 'targetTags'; - protected $internal_gapi_mappings = array( - ); - protected $allowedType = 'Google_Service_Manager_AllowedRule'; - protected $allowedDataType = 'array'; - public $description; - public $network; - public $sourceRanges; - public $sourceTags; - public $targetTags; - - - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } - public function getAllowed() - { - return $this->allowed; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - 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_Manager_FirewallModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $firewallUrl; - - - public function setFirewallUrl($firewallUrl) - { - $this->firewallUrl = $firewallUrl; - } - public function getFirewallUrl() - { - return $this->firewallUrl; - } -} - -class Google_Service_Manager_HealthCheckModule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $checkIntervalSec; - public $description; - public $healthyThreshold; - public $host; - public $path; - public $port; - public $timeoutSec; - public $unhealthyThreshold; - - - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - public function getTimeoutSec() - { - return $this->timeoutSec; - } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthCheckUrl; - - - public function setHealthCheckUrl($healthCheckUrl) - { - $this->healthCheckUrl = $healthCheckUrl; - } - public function getHealthCheckUrl() - { - return $this->healthCheckUrl; - } -} - -class Google_Service_Manager_LbModule extends Google_Collection -{ - protected $collection_key = 'targetModules'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $healthChecks; - public $ipAddress; - public $ipProtocol; - public $portRange; - public $sessionAffinity; - public $targetModules; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setIpProtocol($ipProtocol) - { - $this->ipProtocol = $ipProtocol; - } - public function getIpProtocol() - { - return $this->ipProtocol; - } - public function setPortRange($portRange) - { - $this->portRange = $portRange; - } - public function getPortRange() - { - return $this->portRange; - } - public function setSessionAffinity($sessionAffinity) - { - $this->sessionAffinity = $sessionAffinity; - } - public function getSessionAffinity() - { - return $this->sessionAffinity; - } - public function setTargetModules($targetModules) - { - $this->targetModules = $targetModules; - } - public function getTargetModules() - { - return $this->targetModules; - } -} - -class Google_Service_Manager_LbModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $forwardingRuleUrl; - public $targetPoolUrl; - - - public function setForwardingRuleUrl($forwardingRuleUrl) - { - $this->forwardingRuleUrl = $forwardingRuleUrl; - } - public function getForwardingRuleUrl() - { - return $this->forwardingRuleUrl; - } - public function setTargetPoolUrl($targetPoolUrl) - { - $this->targetPoolUrl = $targetPoolUrl; - } - public function getTargetPoolUrl() - { - return $this->targetPoolUrl; - } -} - -class Google_Service_Manager_Metadata extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $fingerPrint; - protected $itemsType = 'Google_Service_Manager_MetadataItem'; - protected $itemsDataType = 'array'; - - - 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_Manager_MetadataItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Manager_Module extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $autoscalingModuleType = 'Google_Service_Manager_AutoscalingModule'; - protected $autoscalingModuleDataType = ''; - protected $firewallModuleType = 'Google_Service_Manager_FirewallModule'; - protected $firewallModuleDataType = ''; - protected $healthCheckModuleType = 'Google_Service_Manager_HealthCheckModule'; - protected $healthCheckModuleDataType = ''; - protected $lbModuleType = 'Google_Service_Manager_LbModule'; - protected $lbModuleDataType = ''; - protected $networkModuleType = 'Google_Service_Manager_NetworkModule'; - protected $networkModuleDataType = ''; - protected $replicaPoolModuleType = 'Google_Service_Manager_ReplicaPoolModule'; - protected $replicaPoolModuleDataType = ''; - public $type; - - - public function setAutoscalingModule(Google_Service_Manager_AutoscalingModule $autoscalingModule) - { - $this->autoscalingModule = $autoscalingModule; - } - public function getAutoscalingModule() - { - return $this->autoscalingModule; - } - public function setFirewallModule(Google_Service_Manager_FirewallModule $firewallModule) - { - $this->firewallModule = $firewallModule; - } - public function getFirewallModule() - { - return $this->firewallModule; - } - public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $healthCheckModule) - { - $this->healthCheckModule = $healthCheckModule; - } - public function getHealthCheckModule() - { - return $this->healthCheckModule; - } - public function setLbModule(Google_Service_Manager_LbModule $lbModule) - { - $this->lbModule = $lbModule; - } - public function getLbModule() - { - return $this->lbModule; - } - public function setNetworkModule(Google_Service_Manager_NetworkModule $networkModule) - { - $this->networkModule = $networkModule; - } - public function getNetworkModule() - { - return $this->networkModule; - } - public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $replicaPoolModule) - { - $this->replicaPoolModule = $replicaPoolModule; - } - public function getReplicaPoolModule() - { - return $this->replicaPoolModule; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Manager_ModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $autoscalingModuleStatusType = 'Google_Service_Manager_AutoscalingModuleStatus'; - protected $autoscalingModuleStatusDataType = ''; - protected $firewallModuleStatusType = 'Google_Service_Manager_FirewallModuleStatus'; - protected $firewallModuleStatusDataType = ''; - protected $healthCheckModuleStatusType = 'Google_Service_Manager_HealthCheckModuleStatus'; - protected $healthCheckModuleStatusDataType = ''; - protected $lbModuleStatusType = 'Google_Service_Manager_LbModuleStatus'; - protected $lbModuleStatusDataType = ''; - protected $networkModuleStatusType = 'Google_Service_Manager_NetworkModuleStatus'; - protected $networkModuleStatusDataType = ''; - protected $replicaPoolModuleStatusType = 'Google_Service_Manager_ReplicaPoolModuleStatus'; - protected $replicaPoolModuleStatusDataType = ''; - protected $stateType = 'Google_Service_Manager_DeployState'; - protected $stateDataType = ''; - public $type; - - - public function setAutoscalingModuleStatus(Google_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus) - { - $this->autoscalingModuleStatus = $autoscalingModuleStatus; - } - public function getAutoscalingModuleStatus() - { - return $this->autoscalingModuleStatus; - } - public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleStatus $firewallModuleStatus) - { - $this->firewallModuleStatus = $firewallModuleStatus; - } - public function getFirewallModuleStatus() - { - return $this->firewallModuleStatus; - } - public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus) - { - $this->healthCheckModuleStatus = $healthCheckModuleStatus; - } - public function getHealthCheckModuleStatus() - { - return $this->healthCheckModuleStatus; - } - public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModuleStatus) - { - $this->lbModuleStatus = $lbModuleStatus; - } - public function getLbModuleStatus() - { - return $this->lbModuleStatus; - } - public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatus $networkModuleStatus) - { - $this->networkModuleStatus = $networkModuleStatus; - } - public function getNetworkModuleStatus() - { - return $this->networkModuleStatus; - } - public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus) - { - $this->replicaPoolModuleStatus = $replicaPoolModuleStatus; - } - public function getReplicaPoolModuleStatus() - { - return $this->replicaPoolModuleStatus; - } - public function setState(Google_Service_Manager_DeployState $state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Manager_NetworkInterface extends Google_Collection -{ - protected $collection_key = 'accessConfigs'; - protected $internal_gapi_mappings = array( - ); - protected $accessConfigsType = 'Google_Service_Manager_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIp; - - - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } - public function getAccessConfigs() - { - return $this->accessConfigs; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNetworkIp($networkIp) - { - $this->networkIp = $networkIp; - } - public function getNetworkIp() - { - return $this->networkIp; - } -} - -class Google_Service_Manager_NetworkModule extends Google_Model -{ - protected $internal_gapi_mappings = array( - "iPv4Range" => "IPv4Range", - ); - public $iPv4Range; - public $description; - public $gatewayIPv4; - - - public function setIPv4Range($iPv4Range) - { - $this->iPv4Range = $iPv4Range; - } - public function getIPv4Range() - { - return $this->iPv4Range; - } - 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; - } -} - -class Google_Service_Manager_NetworkModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $networkUrl; - - - public function setNetworkUrl($networkUrl) - { - $this->networkUrl = $networkUrl; - } - public function getNetworkUrl() - { - return $this->networkUrl; - } -} - -class Google_Service_Manager_NewDisk extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; - protected $attachmentDataType = ''; - public $autoDelete; - public $boot; - protected $initializeParamsType = 'Google_Service_Manager_NewDiskInitializeParams'; - protected $initializeParamsDataType = ''; - - - public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } - public function getAttachment() - { - return $this->attachment; - } - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } - public function getAutoDelete() - { - return $this->autoDelete; - } - public function setBoot($boot) - { - $this->boot = $boot; - } - public function getBoot() - { - return $this->boot; - } - public function setInitializeParams(Google_Service_Manager_NewDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } - public function getInitializeParams() - { - return $this->initializeParams; - } -} - -class Google_Service_Manager_NewDiskInitializeParams extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $diskSizeGb; - public $diskType; - public $sourceImage; - - - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - public function getDiskType() - { - return $this->diskType; - } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - public function getSourceImage() - { - return $this->sourceImage; - } -} - -class Google_Service_Manager_ParamOverride extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $path; - public $value; - - - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Manager_ReplicaPoolModule extends Google_Collection -{ - protected $collection_key = 'healthChecks'; - protected $internal_gapi_mappings = array( - ); - protected $envVariablesType = 'Google_Service_Manager_EnvVariable'; - protected $envVariablesDataType = 'map'; - public $healthChecks; - public $numReplicas; - protected $replicaPoolParamsType = 'Google_Service_Manager_ReplicaPoolParams'; - protected $replicaPoolParamsDataType = ''; - public $resourceView; - - - public function setEnvVariables($envVariables) - { - $this->envVariables = $envVariables; - } - public function getEnvVariables() - { - return $this->envVariables; - } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - public function getHealthChecks() - { - return $this->healthChecks; - } - public function setNumReplicas($numReplicas) - { - $this->numReplicas = $numReplicas; - } - public function getNumReplicas() - { - return $this->numReplicas; - } - public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $replicaPoolParams) - { - $this->replicaPoolParams = $replicaPoolParams; - } - public function getReplicaPoolParams() - { - return $this->replicaPoolParams; - } - public function setResourceView($resourceView) - { - $this->resourceView = $resourceView; - } - public function getResourceView() - { - return $this->resourceView; - } -} - -class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $replicaPoolUrl; - public $resourceViewUrl; - - - public function setReplicaPoolUrl($replicaPoolUrl) - { - $this->replicaPoolUrl = $replicaPoolUrl; - } - public function getReplicaPoolUrl() - { - return $this->replicaPoolUrl; - } - public function setResourceViewUrl($resourceViewUrl) - { - $this->resourceViewUrl = $resourceViewUrl; - } - public function getResourceViewUrl() - { - return $this->resourceViewUrl; - } -} - -class Google_Service_Manager_ReplicaPoolParams extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1'; - protected $v1beta1DataType = ''; - - - public function setV1beta1(Google_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1) - { - $this->v1beta1 = $v1beta1; - } - public function getV1beta1() - { - return $this->v1beta1; - } -} - -class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection -{ - protected $collection_key = 'serviceAccounts'; - protected $internal_gapi_mappings = array( - ); - public $autoRestart; - public $baseInstanceName; - public $canIpForward; - public $description; - protected $disksToAttachType = 'Google_Service_Manager_ExistingDisk'; - protected $disksToAttachDataType = 'array'; - protected $disksToCreateType = 'Google_Service_Manager_NewDisk'; - protected $disksToCreateDataType = 'array'; - public $initAction; - public $machineType; - protected $metadataType = 'Google_Service_Manager_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Manager_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - public $onHostMaintenance; - protected $serviceAccountsType = 'Google_Service_Manager_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Manager_Tag'; - protected $tagsDataType = ''; - public $zone; - - - public function setAutoRestart($autoRestart) - { - $this->autoRestart = $autoRestart; - } - public function getAutoRestart() - { - return $this->autoRestart; - } - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - public function getCanIpForward() - { - return $this->canIpForward; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisksToAttach($disksToAttach) - { - $this->disksToAttach = $disksToAttach; - } - public function getDisksToAttach() - { - return $this->disksToAttach; - } - public function setDisksToCreate($disksToCreate) - { - $this->disksToCreate = $disksToCreate; - } - public function getDisksToCreate() - { - return $this->disksToCreate; - } - public function setInitAction($initAction) - { - $this->initAction = $initAction; - } - public function getInitAction() - { - return $this->initAction; - } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - public function getMachineType() - { - return $this->machineType; - } - public function setMetadata(Google_Service_Manager_Metadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - public function setTags(Google_Service_Manager_Tag $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_Manager_ServiceAccount extends Google_Collection -{ - protected $collection_key = 'scopes'; - protected $internal_gapi_mappings = array( - ); - 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_Manager_Tag extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - 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_Manager_Template extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $actionsType = 'Google_Service_Manager_Action'; - protected $actionsDataType = 'map'; - public $description; - protected $modulesType = 'Google_Service_Manager_Module'; - protected $modulesDataType = 'map'; - public $name; - - - public function setActions($actions) - { - $this->actions = $actions; - } - public function getActions() - { - return $this->actions; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setModules($modules) - { - $this->modules = $modules; - } - public function getModules() - { - return $this->modules; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Manager_TemplatesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $resourcesType = 'Google_Service_Manager_Template'; - protected $resourcesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} diff --git a/src/Google/Service/MapsEngine.php b/src/Google/Service/MapsEngine.php deleted file mode 100644 index 88a982c29..000000000 --- a/src/Google/Service/MapsEngine.php +++ /dev/null @@ -1,6421 +0,0 @@ - - * The Google Maps Engine API allows developers to store and query geospatial - * vector and raster data.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_MapsEngine extends Google_Service -{ - /** View and manage your Google My Maps data. */ - const MAPSENGINE = - "https://www.googleapis.com/auth/mapsengine"; - /** View your Google My Maps data. */ - const MAPSENGINE_READONLY = - "https://www.googleapis.com/auth/mapsengine.readonly"; - - public $assets; - public $assets_parents; - public $assets_permissions; - public $layers; - public $layers_parents; - public $layers_permissions; - public $maps; - public $maps_permissions; - public $projects; - public $projects_icons; - public $rasterCollections; - public $rasterCollections_parents; - public $rasterCollections_permissions; - public $rasterCollections_rasters; - public $rasters; - public $rasters_files; - public $rasters_parents; - public $rasters_permissions; - public $tables; - public $tables_features; - public $tables_files; - public $tables_parents; - public $tables_permissions; - - - /** - * Constructs the internal representation of the MapsEngine service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'mapsengine/v1/'; - $this->version = 'v1'; - $this->serviceName = 'mapsengine'; - - $this->assets = new Google_Service_MapsEngine_Assets_Resource( - $this, - $this->serviceName, - 'assets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'assets/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'assets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'assets/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->assets_permissions = new Google_Service_MapsEngine_AssetsPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'assets/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->layers = new Google_Service_MapsEngine_Layers_Resource( - $this, - $this->serviceName, - 'layers', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'layers/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'layers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'process' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getPublished' => array( - 'path' => 'layers/{id}/published', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'layers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'processingStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listPublished' => array( - 'path' => 'layers/published', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'layers/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'layers/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'force' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'unpublish' => array( - 'path' => 'layers/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'layers/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->layers_permissions = new Google_Service_MapsEngine_LayersPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'layers/{id}/permissions/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchUpdate' => array( - 'path' => 'layers/{id}/permissions/batchUpdate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'layers/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->maps = new Google_Service_MapsEngine_Maps_Resource( - $this, - $this->serviceName, - 'maps', - array( - 'methods' => array( - 'create' => array( - 'path' => 'maps', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getPublished' => array( - 'path' => 'maps/{id}/published', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'maps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'processingStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listPublished' => array( - 'path' => 'maps/published', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'maps/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'force' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'unpublish' => array( - 'path' => 'maps/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->maps_permissions = new Google_Service_MapsEngine_MapsPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'maps/{id}/permissions/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchUpdate' => array( - 'path' => 'maps/{id}/permissions/batchUpdate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'maps/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_MapsEngine_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->projects_icons = new Google_Service_MapsEngine_ProjectsIcons_Resource( - $this, - $this->serviceName, - 'icons', - array( - 'methods' => array( - 'create' => array( - 'path' => 'projects/{projectId}/icons', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/icons/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/icons', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( - $this, - $this->serviceName, - 'rasterCollections', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'rasterCollections/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'processingStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'rasterCollections/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasterCollections/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->rasterCollections_permissions = new Google_Service_MapsEngine_RasterCollectionsPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'rasterCollections/{id}/permissions/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchUpdate' => array( - 'path' => 'rasterCollections/{id}/permissions/batchUpdate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'rasterCollections/{id}/rasters/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'rasterCollections/{id}/rasters/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections/{id}/rasters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->rasters = new Google_Service_MapsEngine_Rasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'processingStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'rasters/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'rasters/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'rasters/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasters/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->rasters_permissions = new Google_Service_MapsEngine_RastersPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'rasters/{id}/permissions/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchUpdate' => array( - 'path' => 'rasters/{id}/permissions/batchUpdate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasters/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tables = new Google_Service_MapsEngine_Tables_Resource( - $this, - $this->serviceName, - 'tables', - array( - 'methods' => array( - 'create' => array( - 'path' => 'tables', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'processingStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'search' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'tables/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'tables/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource( - $this, - $this->serviceName, - 'features', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'tables/{id}/features/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'tables/{id}/features/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchPatch' => array( - 'path' => 'tables/{id}/features/batchPatch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/features/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables/{id}/features', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'intersects' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'include' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'where' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'tables/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'tables/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->tables_permissions = new Google_Service_MapsEngine_TablesPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'tables/{id}/permissions/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchUpdate' => array( - 'path' => 'tables/{id}/permissions/batchUpdate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{id}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "assets" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $assets = $mapsengineService->assets; - * - */ -class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource -{ - - /** - * Return metadata for a particular asset. (assets.get) - * - * @param string $id The ID of the asset. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Asset - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); - } - - /** - * Return all assets readable by the current user. (assets.listAssets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @opt_param string type A comma separated list of asset types. Returned assets - * will have one of the types from the provided list. Supported values are - * 'map', 'layer', 'rasterCollection' and 'table'. - * @return Google_Service_MapsEngine_AssetsListResponse - */ - public function listAssets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_AssetsListResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified asset. (parents.listAssetsParents) - * - * @param string $id The ID of the asset whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listAssetsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_AssetsPermissions_Resource extends Google_Service_Resource -{ - - /** - * Return all of the permissions for the specified asset. - * (permissions.listAssetsPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listAssetsPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} - -/** - * The "layers" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $layers = $mapsengineService->layers; - * - */ -class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource -{ - - /** - * Cancel processing on a layer asset. (layers.cancelProcessing) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - - /** - * Create a layer asset. (layers.create) - * - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool process Whether to queue the created layer for processing. - * @return Google_Service_MapsEngine_Layer - */ - public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); - } - - /** - * Delete a layer. (layers.delete) - * - * @param string $id The ID of the layer. Only the layer creator or project - * owner are permitted to delete. If the layer is published, or included in a - * map, the request will fail. Unpublish the layer, and remove it from all maps - * prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Return metadata for a particular layer. (layers.get) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * - * @opt_param string version Deprecated: The version parameter indicates which - * version of the layer should be returned. When version is set to published, - * the published version of the layer will be returned. Please use the - * layers.getPublished endpoint instead. - * @return Google_Service_MapsEngine_Layer - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); - } - - /** - * Return the published metadata for a particular layer. (layers.getPublished) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishedLayer - */ - public function getPublished($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedLayer"); - } - - /** - * Return all layers readable by the current user. (layers.listLayers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string processingStatus - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_LayersListResponse - */ - public function listLayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); - } - - /** - * Return all published layers readable by the current user. - * (layers.listPublished) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @return Google_Service_MapsEngine_PublishedLayersListResponse - */ - public function listPublished($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedLayersListResponse"); - } - - /** - * Mutate a layer asset. (layers.patch) - * - * @param string $id The ID of the layer. - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - - /** - * Process a layer asset. (layers.process) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - - /** - * Publish a layer asset. (layers.publish) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * - * @opt_param bool force If set to true, the API will allow publication of the - * layer even if it's out of date. If not true, you'll need to reprocess any - * out-of-date layer before publishing. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - - /** - * Unpublish a layer asset. (layers.unpublish) - * - * @param string $id The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified layer. (parents.listLayersParents) - * - * @param string $id The ID of the layer whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listLayersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_LayersPermissions_Resource extends Google_Service_Resource -{ - - /** - * Remove permission entries from an already existing asset. - * (permissions.batchDelete) - * - * @param string $id The ID of the asset from which permissions will be removed. - * @param Google_PermissionsBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); - } - - /** - * Add or update permission entries to an already existing asset. - * - * An asset can hold up to 20 different permission entries. Each batchInsert - * request is atomic. (permissions.batchUpdate) - * - * @param string $id The ID of the asset to which permissions will be added. - * @param Google_PermissionsBatchUpdateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse - */ - public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); - } - - /** - * Return all of the permissions for the specified asset. - * (permissions.listLayersPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listLayersPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} - -/** - * The "maps" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $maps = $mapsengineService->maps; - * - */ -class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource -{ - - /** - * Create a map asset. (maps.create) - * - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Map - */ - public function create(Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); - } - - /** - * Delete a map. (maps.delete) - * - * @param string $id The ID of the map. Only the map creator or project owner - * are permitted to delete. If the map is published the request will fail. - * Unpublish the map prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Return metadata for a particular map. (maps.get) - * - * @param string $id The ID of the map. - * @param array $optParams Optional parameters. - * - * @opt_param string version Deprecated: The version parameter indicates which - * version of the map should be returned. When version is set to published, the - * published version of the map will be returned. Please use the - * maps.getPublished endpoint instead. - * @return Google_Service_MapsEngine_Map - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); - } - - /** - * Return the published metadata for a particular map. (maps.getPublished) - * - * @param string $id The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishedMap - */ - public function getPublished($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getPublished', array($params), "Google_Service_MapsEngine_PublishedMap"); - } - - /** - * Return all maps readable by the current user. (maps.listMaps) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string processingStatus - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_MapsListResponse - */ - public function listMaps($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); - } - - /** - * Return all published maps readable by the current user. (maps.listPublished) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @return Google_Service_MapsEngine_PublishedMapsListResponse - */ - public function listPublished($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listPublished', array($params), "Google_Service_MapsEngine_PublishedMapsListResponse"); - } - - /** - * Mutate a map asset. (maps.patch) - * - * @param string $id The ID of the map. - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - - /** - * Publish a map asset. (maps.publish) - * - * @param string $id The ID of the map. - * @param array $optParams Optional parameters. - * - * @opt_param bool force If set to true, the API will allow publication of the - * map even if it's out of date. If false, the map must have a processingStatus - * of complete before publishing. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - - /** - * Unpublish a map asset. (maps.unpublish) - * - * @param string $id The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } -} - -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_MapsPermissions_Resource extends Google_Service_Resource -{ - - /** - * Remove permission entries from an already existing asset. - * (permissions.batchDelete) - * - * @param string $id The ID of the asset from which permissions will be removed. - * @param Google_PermissionsBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); - } - - /** - * Add or update permission entries to an already existing asset. - * - * An asset can hold up to 20 different permission entries. Each batchInsert - * request is atomic. (permissions.batchUpdate) - * - * @param string $id The ID of the asset to which permissions will be added. - * @param Google_PermissionsBatchUpdateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse - */ - public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); - } - - /** - * Return all of the permissions for the specified asset. - * (permissions.listMapsPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listMapsPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $projects = $mapsengineService->projects; - * - */ -class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resource -{ - - /** - * Return all projects readable by the current user. (projects.listProjects) - * - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProjectsListResponse - */ - public function listProjects($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ProjectsListResponse"); - } -} - -/** - * The "icons" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $icons = $mapsengineService->icons; - * - */ -class Google_Service_MapsEngine_ProjectsIcons_Resource extends Google_Service_Resource -{ - - /** - * Create an icon. (icons.create) - * - * @param string $projectId The ID of the project. - * @param Google_Icon $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Icon - */ - public function create($projectId, Google_Service_MapsEngine_Icon $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Icon"); - } - - /** - * Return an icon or its associated metadata (icons.get) - * - * @param string $projectId The ID of the project. - * @param string $id The ID of the icon. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Icon - */ - public function get($projectId, $id, $optParams = array()) - { - $params = array('projectId' => $projectId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Icon"); - } - - /** - * Return all icons in the current project (icons.listProjectsIcons) - * - * @param string $projectId The ID of the project. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_IconsListResponse - */ - public function listProjectsIcons($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_IconsListResponse"); - } -} - -/** - * The "rasterCollections" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasterCollections = $mapsengineService->rasterCollections; - * - */ -class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource -{ - - /** - * Cancel processing on a raster collection asset. - * (rasterCollections.cancelProcessing) - * - * @param string $id The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - - /** - * Create a raster collection asset. (rasterCollections.create) - * - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function create(Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - - /** - * Delete a raster collection. (rasterCollections.delete) - * - * @param string $id The ID of the raster collection. Only the raster collection - * creator or project owner are permitted to delete. If the rastor collection is - * included in a layer, the request will fail. Remove the raster collection from - * all layers prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Return metadata for a particular raster collection. (rasterCollections.get) - * - * @param string $id The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - - /** - * Return all raster collections readable by the current user. - * (rasterCollections.listRasterCollections) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string processingStatus - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_RasterCollectionsListResponse - */ - public function listRasterCollections($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); - } - - /** - * Mutate a raster collection asset. (rasterCollections.patch) - * - * @param string $id The ID of the raster collection. - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - - /** - * Process a raster collection asset. (rasterCollections.process) - * - * @param string $id The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } -} - -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified raster collection. - * (parents.listRasterCollectionsParents) - * - * @param string $id The ID of the raster collection whose parents will be - * listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRasterCollectionsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_RasterCollectionsPermissions_Resource extends Google_Service_Resource -{ - - /** - * Remove permission entries from an already existing asset. - * (permissions.batchDelete) - * - * @param string $id The ID of the asset from which permissions will be removed. - * @param Google_PermissionsBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); - } - - /** - * Add or update permission entries to an already existing asset. - * - * An asset can hold up to 20 different permission entries. Each batchInsert - * request is atomic. (permissions.batchUpdate) - * - * @param string $id The ID of the asset to which permissions will be added. - * @param Google_PermissionsBatchUpdateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse - */ - public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); - } - - /** - * Return all of the permissions for the specified asset. - * (permissions.listRasterCollectionsPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listRasterCollectionsPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} -/** - * The "rasters" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasters = $mapsengineService->rasters; - * - */ -class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google_Service_Resource -{ - - /** - * Remove rasters from an existing raster collection. - * - * Up to 50 rasters can be included in a single batchDelete request. Each - * batchDelete request is atomic. (rasters.batchDelete) - * - * @param string $id The ID of the raster collection to which these rasters - * belong. - * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); - } - - /** - * Add rasters to an existing raster collection. Rasters must be successfully - * processed in order to be added to a raster collection. - * - * Up to 50 rasters can be included in a single batchInsert request. Each - * batchInsert request is atomic. (rasters.batchInsert) - * - * @param string $id The ID of the raster collection to which these rasters - * belong. - * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse - */ - public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); - } - - /** - * Return all rasters within a raster collection. - * (rasters.listRasterCollectionsRasters) - * - * @param string $id The ID of the raster collection to which these rasters - * belong. - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse - */ - public function listRasterCollectionsRasters($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); - } -} - -/** - * The "rasters" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasters = $mapsengineService->rasters; - * - */ -class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource -{ - - /** - * Delete a raster. (rasters.delete) - * - * @param string $id The ID of the raster. Only the raster creator or project - * owner are permitted to delete. If the raster is included in a layer or - * mosaic, the request will fail. Remove it from all parents prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Return metadata for a single raster. (rasters.get) - * - * @param string $id The ID of the raster. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); - } - - /** - * Return all rasters readable by the current user. (rasters.listRasters) - * - * @param string $projectId The ID of a Maps Engine project, used to filter the - * response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string processingStatus - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_RastersListResponse - */ - public function listRasters($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RastersListResponse"); - } - - /** - * Mutate a raster asset. (rasters.patch) - * - * @param string $id The ID of the raster. - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - - /** - * Process a raster asset. (rasters.process) - * - * @param string $id The ID of the raster. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - - /** - * Create a skeleton raster asset for upload. (rasters.upload) - * - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); - } -} - -/** - * The "files" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $files = $mapsengineService->files; - * - */ -class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Resource -{ - - /** - * Upload a file to a raster asset. (files.insert) - * - * @param string $id The ID of the raster asset. - * @param string $filename The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } -} -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified rasters. (parents.listRastersParents) - * - * @param string $id The ID of the rasters whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRastersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_RastersPermissions_Resource extends Google_Service_Resource -{ - - /** - * Remove permission entries from an already existing asset. - * (permissions.batchDelete) - * - * @param string $id The ID of the asset from which permissions will be removed. - * @param Google_PermissionsBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); - } - - /** - * Add or update permission entries to an already existing asset. - * - * An asset can hold up to 20 different permission entries. Each batchInsert - * request is atomic. (permissions.batchUpdate) - * - * @param string $id The ID of the asset to which permissions will be added. - * @param Google_PermissionsBatchUpdateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse - */ - public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); - } - - /** - * Return all of the permissions for the specified asset. - * (permissions.listRastersPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listRastersPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} - -/** - * The "tables" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $tables = $mapsengineService->tables; - * - */ -class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource -{ - - /** - * Create a table asset. (tables.create) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function create(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); - } - - /** - * Delete a table. (tables.delete) - * - * @param string $id The ID of the table. Only the table creator or project - * owner are permitted to delete. If the table is included in a layer, the - * request will fail. Remove it from all layers prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Return metadata for a particular table, including the schema. (tables.get) - * - * @param string $id The ID of the table. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * @return Google_Service_MapsEngine_Table - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); - } - - /** - * Return all tables readable by the current user. (tables.listTables) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after - * this time. - * @opt_param string createdAfter An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or after - * this time. - * @opt_param string processingStatus - * @opt_param string projectId The ID of a Maps Engine project, used to filter - * the response. To list all available projects with their IDs, send a Projects: - * list request. You can also find your project ID as the value of the - * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string tags A comma separated list of tags. Returned assets will - * contain all the tags from the list. - * @opt_param string search An unstructured search string used to filter the set - * of results based on asset metadata. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 100. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string creatorEmail An email address representing a user. Returned - * assets that have been created by the user associated with the provided email - * address. - * @opt_param string bbox A bounding box, expressed as "west,south,east,north". - * If set, only assets which intersect this bounding box will be returned. - * @opt_param string modifiedBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been modified at or before - * this time. - * @opt_param string createdBefore An RFC 3339 formatted date-time value (e.g. - * 1970-01-01T00:00:00Z). Returned assets will have been created at or before - * this time. - * @opt_param string role The role parameter indicates that the response should - * only contain assets where the current user has the specified level of access. - * @return Google_Service_MapsEngine_TablesListResponse - */ - public function listTables($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); - } - - /** - * Mutate a table asset. (tables.patch) - * - * @param string $id The ID of the table. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - - /** - * Process a table asset. (tables.process) - * - * @param string $id The ID of the table. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - - /** - * Create a placeholder table asset to which table files can be uploaded. Once - * the placeholder has been created, files are uploaded to the - * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files - * endpoint. See Table Upload in the Developer's Guide or Table.files: insert in - * the reference documentation for more information. (tables.upload) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function upload(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Table"); - } -} - -/** - * The "features" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $features = $mapsengineService->features; - * - */ -class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_Resource -{ - - /** - * Delete all features matching the given IDs. (features.batchDelete) - * - * @param string $id The ID of the table that contains the features to be - * deleted. - * @param Google_FeaturesBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - - /** - * Append features to an existing table. - * - * A single batchInsert request can create: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * For more information about inserting features, read Creating features in the - * Google Maps Engine developer's guide. (features.batchInsert) - * - * @param string $id The ID of the table to append the features to. - * @param Google_FeaturesBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params)); - } - - /** - * Update the supplied features. - * - * A single batchPatch request can update: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * Feature updates use HTTP PATCH semantics: - * - * - A supplied value replaces an existing value (if any) in that field. - - * Omitted fields remain unchanged. - Complex values in geometries and - * properties must be replaced as atomic units. For example, providing just the - * coordinates of a geometry is not allowed; the complete geometry, including - * type, must be supplied. - Setting a property's value to null deletes that - * property. For more information about updating features, read Updating - * features in the Google Maps Engine developer's guide. (features.batchPatch) - * - * @param string $id The ID of the table containing the features to be patched. - * @param Google_FeaturesBatchPatchRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchPatch', array($params)); - } - - /** - * Return a single feature, given its ID. (features.get) - * - * @param string $tableId The ID of the table. - * @param string $id The ID of the feature to get. - * @param array $optParams Optional parameters. - * - * @opt_param string version The table version to access. See Accessing Public - * Data for information. - * @opt_param string select A SQL-like projection clause used to specify - * returned properties. If this parameter is not included, all properties are - * returned. - * @return Google_Service_MapsEngine_Feature - */ - public function get($tableId, $id, $optParams = array()) - { - $params = array('tableId' => $tableId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); - } - - /** - * Return all features readable by the current user. - * (features.listTablesFeatures) - * - * @param string $id The ID of the table to which these features belong. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy An SQL-like order by clause used to sort results. - * If this parameter is not included, the order of features is undefined. - * @opt_param string intersects A geometry literal that specifies the spatial - * restriction of the query. - * @opt_param string maxResults The maximum number of items to include in the - * response, used for paging. The maximum supported value is 1000. - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string version The table version to access. See Accessing Public - * Data for information. - * @opt_param string limit The total number of features to return from the - * query, irrespective of the number of pages. - * @opt_param string include A comma separated list of optional data to include. - * Optional data available: schema. - * @opt_param string where An SQL-like predicate used to filter results. - * @opt_param string select A SQL-like projection clause used to specify - * returned properties. If this parameter is not included, all properties are - * returned. - * @return Google_Service_MapsEngine_FeaturesListResponse - */ - public function listTablesFeatures($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_FeaturesListResponse"); - } -} -/** - * The "files" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $files = $mapsengineService->files; - * - */ -class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Resource -{ - - /** - * Upload a file to a placeholder table asset. See Table Upload in the - * Developer's Guide for more information. Supported file types are listed in - * the Supported data formats and limits article of the Google Maps Engine help - * center. (files.insert) - * - * @param string $id The ID of the table asset. - * @param string $filename The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } -} -/** - * The "parents" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $parents = $mapsengineService->parents; - * - */ -class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Resource -{ - - /** - * Return all parent ids of the specified table. (parents.listTablesParents) - * - * @param string $id The ID of the table whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, used to page through - * large result sets. To get the next page of results, set this parameter to the - * value of nextPageToken from the previous response. - * @opt_param string maxResults The maximum number of items to include in a - * single response page. The maximum supported value is 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listTablesParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $permissions = $mapsengineService->permissions; - * - */ -class Google_Service_MapsEngine_TablesPermissions_Resource extends Google_Service_Resource -{ - - /** - * Remove permission entries from an already existing asset. - * (permissions.batchDelete) - * - * @param string $id The ID of the asset from which permissions will be removed. - * @param Google_PermissionsBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); - } - - /** - * Add or update permission entries to an already existing asset. - * - * An asset can hold up to 20 different permission entries. Each batchInsert - * request is atomic. (permissions.batchUpdate) - * - * @param string $id The ID of the asset to which permissions will be added. - * @param Google_PermissionsBatchUpdateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse - */ - public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); - } - - /** - * Return all of the permissions for the specified asset. - * (permissions.listTablesPermissions) - * - * @param string $id The ID of the asset whose permissions will be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PermissionsListResponse - */ - public function listTablesPermissions($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse"); - } -} - - - - -class Google_Service_MapsEngine_AcquisitionTime extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $end; - public $precision; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPrecision($precision) - { - $this->precision = $precision; - } - public function getPrecision() - { - return $this->precision; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_MapsEngine_Asset extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $bbox; - public $creationTime; - public $creatorEmail; - public $description; - public $etag; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $name; - public $projectId; - public $resource; - public $tags; - public $type; - public $writersCanEditPermissions; - - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - 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 setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setResource($resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection -{ - protected $collection_key = 'assets'; - protected $internal_gapi_mappings = array( - ); - protected $assetsType = 'Google_Service_MapsEngine_Asset'; - protected $assetsDataType = 'array'; - public $nextPageToken; - - - public function setAssets($assets) - { - $this->assets = $assets; - } - public function getAssets() - { - return $this->assets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_Border extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $color; - public $opacity; - public $width; - - - 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; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_MapsEngine_Color extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_MapsEngine_Datasource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_MapsEngine_DisplayRule extends Google_Collection -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_MapsEngine_Filter'; - protected $filtersDataType = 'array'; - protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; - protected $lineOptionsDataType = ''; - public $name; - protected $pointOptionsType = 'Google_Service_MapsEngine_PointStyle'; - protected $pointOptionsDataType = ''; - protected $polygonOptionsType = 'Google_Service_MapsEngine_PolygonStyle'; - protected $polygonOptionsDataType = ''; - protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; - protected $zoomLevelsDataType = ''; - - - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) - { - $this->lineOptions = $lineOptions; - } - public function getLineOptions() - { - return $this->lineOptions; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) - { - $this->pointOptions = $pointOptions; - } - public function getPointOptions() - { - return $this->pointOptions; - } - public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) - { - $this->polygonOptions = $polygonOptions; - } - public function getPolygonOptions() - { - return $this->polygonOptions; - } - public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) - { - $this->zoomLevels = $zoomLevels; - } - public function getZoomLevels() - { - return $this->zoomLevels; - } -} - -class Google_Service_MapsEngine_Feature extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometryDataType = ''; - public $properties; - public $type; - - - public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) - { - $this->geometry = $geometry; - } - public function getGeometry() - { - return $this->geometry; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_FeatureInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } -} - -class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection -{ - protected $collection_key = 'primaryKeys'; - protected $internal_gapi_mappings = array( - "gxIds" => "gx_ids", - ); - public $gxIds; - public $primaryKeys; - - - public function setGxIds($gxIds) - { - $this->gxIds = $gxIds; - } - public function getGxIds() - { - return $this->gxIds; - } - public function setPrimaryKeys($primaryKeys) - { - $this->primaryKeys = $primaryKeys; - } - public function getPrimaryKeys() - { - return $this->primaryKeys; - } -} - -class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection -{ - protected $collection_key = 'features'; - protected $internal_gapi_mappings = array( - ); - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - public $normalizeGeometries; - - - public function setFeatures($features) - { - $this->features = $features; - } - public function getFeatures() - { - return $this->features; - } - public function setNormalizeGeometries($normalizeGeometries) - { - $this->normalizeGeometries = $normalizeGeometries; - } - public function getNormalizeGeometries() - { - return $this->normalizeGeometries; - } -} - -class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection -{ - protected $collection_key = 'features'; - protected $internal_gapi_mappings = array( - ); - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - public $normalizeGeometries; - - - public function setFeatures($features) - { - $this->features = $features; - } - public function getFeatures() - { - return $this->features; - } - public function setNormalizeGeometries($normalizeGeometries) - { - $this->normalizeGeometries = $normalizeGeometries; - } - public function getNormalizeGeometries() - { - return $this->normalizeGeometries; - } -} - -class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection -{ - protected $collection_key = 'features'; - protected $internal_gapi_mappings = array( - ); - public $allowedQueriesPerSecond; - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - public $nextPageToken; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $type; - - - public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) - { - $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; - } - public function getAllowedQueriesPerSecond() - { - return $this->allowedQueriesPerSecond; - } - public function setFeatures($features) - { - $this->features = $features; - } - public function getFeatures() - { - return $this->features; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } - public function getSchema() - { - return $this->schema; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_Filter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $column; - public $operator; - public $value; - - - public function setColumn($column) - { - $this->column = $column; - } - public function getColumn() - { - return $this->column; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'geometries'; - protected $internal_gapi_mappings = array( - ); - protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometriesDataType = 'array'; - protected function gapiInit() - { - $this->type = 'GeometryCollection'; - } - - public function setGeometries($geometries) - { - $this->geometries = $geometries; - } - public function getGeometries() - { - return $this->geometries; - } -} - -class Google_Service_MapsEngine_GeoJsonLineString extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'LineString'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'MultiLineString'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'MultiPoint'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'MultiPolygon'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonPoint extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'Point'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Service_MapsEngine_GeoJsonGeometry -{ - protected $collection_key = 'coordinates'; - protected $internal_gapi_mappings = array( - ); - public $coordinates; - protected function gapiInit() - { - $this->type = 'Polygon'; - } - - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } - public function getCoordinates() - { - return $this->coordinates; - } -} - -class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model -{ -} - -class Google_Service_MapsEngine_Icon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $name; - - - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_MapsEngine_IconStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - protected $scaledShapeType = 'Google_Service_MapsEngine_ScaledShape'; - protected $scaledShapeDataType = ''; - protected $scalingFunctionType = 'Google_Service_MapsEngine_ScalingFunction'; - protected $scalingFunctionDataType = ''; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setScaledShape(Google_Service_MapsEngine_ScaledShape $scaledShape) - { - $this->scaledShape = $scaledShape; - } - public function getScaledShape() - { - return $this->scaledShape; - } - public function setScalingFunction(Google_Service_MapsEngine_ScalingFunction $scalingFunction) - { - $this->scalingFunction = $scalingFunction; - } - public function getScalingFunction() - { - return $this->scalingFunction; - } -} - -class Google_Service_MapsEngine_IconsListResponse extends Google_Collection -{ - protected $collection_key = 'icons'; - protected $internal_gapi_mappings = array( - ); - protected $iconsType = 'Google_Service_MapsEngine_Icon'; - protected $iconsDataType = 'array'; - public $nextPageToken; - - - public function setIcons($icons) - { - $this->icons = $icons; - } - public function getIcons() - { - return $this->icons; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_LabelStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $color; - public $column; - public $fontStyle; - public $fontWeight; - public $opacity; - protected $outlineType = 'Google_Service_MapsEngine_Color'; - protected $outlineDataType = ''; - public $size; - - - public function setColor($color) - { - $this->color = $color; - } - public function getColor() - { - return $this->color; - } - public function setColumn($column) - { - $this->column = $column; - } - public function getColumn() - { - return $this->column; - } - public function setFontStyle($fontStyle) - { - $this->fontStyle = $fontStyle; - } - public function getFontStyle() - { - return $this->fontStyle; - } - public function setFontWeight($fontWeight) - { - $this->fontWeight = $fontWeight; - } - public function getFontWeight() - { - return $this->fontWeight; - } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } - public function getOpacity() - { - return $this->opacity; - } - public function setOutline(Google_Service_MapsEngine_Color $outline) - { - $this->outline = $outline; - } - public function getOutline() - { - return $this->outline; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} - -class Google_Service_MapsEngine_Layer extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $bbox; - public $creationTime; - public $creatorEmail; - public $datasourceType; - protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; - protected $datasourcesDataType = 'array'; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $layerType; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - public $publishingStatus; - protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; - protected $styleDataType = ''; - public $tags; - public $writersCanEditPermissions; - - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - public function setDatasourceType($datasourceType) - { - $this->datasourceType = $datasourceType; - } - public function getDatasourceType() - { - return $this->datasourceType; - } - public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) - { - $this->datasources = $datasources; - } - public function getDatasources() - { - return $this->datasources; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - public function getDraftAccessList() - { - return $this->draftAccessList; - } - 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 setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setLayerType($layerType) - { - $this->layerType = $layerType; - } - public function getLayerType() - { - return $this->layerType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - public function setPublishingStatus($publishingStatus) - { - $this->publishingStatus = $publishingStatus; - } - public function getPublishingStatus() - { - return $this->publishingStatus; - } - public function setStyle(Google_Service_MapsEngine_VectorStyle $style) - { - $this->style = $style; - } - public function getStyle() - { - return $this->style; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_LayersListResponse extends Google_Collection -{ - protected $collection_key = 'layers'; - protected $internal_gapi_mappings = array( - ); - protected $layersType = 'Google_Service_MapsEngine_Layer'; - protected $layersDataType = 'array'; - public $nextPageToken; - - - public function setLayers($layers) - { - $this->layers = $layers; - } - public function getLayers() - { - return $this->layers; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_LineStyle extends Google_Collection -{ - protected $collection_key = 'dash'; - protected $internal_gapi_mappings = array( - ); - protected $borderType = 'Google_Service_MapsEngine_Border'; - protected $borderDataType = ''; - public $dash; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; - protected $strokeDataType = ''; - - - public function setBorder(Google_Service_MapsEngine_Border $border) - { - $this->border = $border; - } - public function getBorder() - { - return $this->border; - } - public function setDash($dash) - { - $this->dash = $dash; - } - public function getDash() - { - return $this->dash; - } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) - { - $this->stroke = $stroke; - } - public function getStroke() - { - return $this->stroke; - } -} - -class Google_Service_MapsEngine_LineStyleStroke extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $color; - public $opacity; - public $width; - - - 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; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_MapsEngine_Map extends Google_Collection -{ - protected $collection_key = 'versions'; - protected $internal_gapi_mappings = array( - ); - public $bbox; - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = ''; - public $creationTime; - public $creatorEmail; - public $defaultViewport; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - public $publishingStatus; - public $tags; - public $versions; - public $writersCanEditPermissions; - - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setContents(Google_Service_MapsEngine_MapItem $contents) - { - $this->contents = $contents; - } - public function getContents() - { - return $this->contents; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - public function getDefaultViewport() - { - return $this->defaultViewport; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - public function getDraftAccessList() - { - return $this->draftAccessList; - } - 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 setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - public function setPublishingStatus($publishingStatus) - { - $this->publishingStatus = $publishingStatus; - } - public function getPublishingStatus() - { - return $this->publishingStatus; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setVersions($versions) - { - $this->versions = $versions; - } - public function getVersions() - { - return $this->versions; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_MapFolder extends Google_Service_MapsEngine_MapItem -{ - protected $collection_key = 'defaultViewport'; - protected $internal_gapi_mappings = array( - ); - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = 'array'; - public $defaultViewport; - public $expandable; - public $key; - public $name; - public $visibility; - protected function gapiInit() - { - $this->type = 'folder'; - } - - public function setContents($contents) - { - $this->contents = $contents; - } - public function getContents() - { - return $this->contents; - } - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - public function getDefaultViewport() - { - return $this->defaultViewport; - } - public function setExpandable($expandable) - { - $this->expandable = $expandable; - } - public function getExpandable() - { - return $this->expandable; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_MapKmlLink extends Google_Service_MapsEngine_MapItem -{ - protected $collection_key = 'defaultViewport'; - protected $internal_gapi_mappings = array( - ); - public $defaultViewport; - public $kmlUrl; - public $name; - public $visibility; - protected function gapiInit() - { - $this->type = 'kmlLink'; - } - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - public function getDefaultViewport() - { - return $this->defaultViewport; - } - public function setKmlUrl($kmlUrl) - { - $this->kmlUrl = $kmlUrl; - } - public function getKmlUrl() - { - return $this->kmlUrl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapLayer extends Google_Service_MapsEngine_MapItem -{ - protected $collection_key = 'defaultViewport'; - protected $internal_gapi_mappings = array( - ); - public $defaultViewport; - public $id; - public $key; - public $name; - public $visibility; - protected function gapiInit() - { - $this->type = 'layer'; - } - - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - public function getDefaultViewport() - { - return $this->defaultViewport; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_MapsEngine_MapsListResponse extends Google_Collection -{ - protected $collection_key = 'maps'; - protected $internal_gapi_mappings = array( - ); - protected $mapsType = 'Google_Service_MapsEngine_Map'; - protected $mapsDataType = 'array'; - public $nextPageToken; - - - public function setMaps($maps) - { - $this->maps = $maps; - } - public function getMaps() - { - return $this->maps; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_MapsengineFile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $filename; - public $size; - public $uploadStatus; - - - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_MapsEngine_Parent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} - -class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection -{ - protected $collection_key = 'parents'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $parentsType = 'Google_Service_MapsEngine_Parent'; - protected $parentsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setParents($parents) - { - $this->parents = $parents; - } - public function getParents() - { - return $this->parents; - } -} - -class Google_Service_MapsEngine_Permission extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $discoverable; - public $id; - public $role; - public $type; - - - public function setDiscoverable($discoverable) - { - $this->discoverable = $discoverable; - } - public function getDiscoverable() - { - return $this->discoverable; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_PermissionsBatchDeleteRequest extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_MapsEngine_PermissionsBatchDeleteResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_PermissionsBatchUpdateRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - protected $permissionsType = 'Google_Service_MapsEngine_Permission'; - protected $permissionsDataType = 'array'; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_MapsEngine_PermissionsBatchUpdateResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_PermissionsListResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - protected $permissionsType = 'Google_Service_MapsEngine_Permission'; - protected $permissionsDataType = 'array'; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_MapsEngine_PointStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $iconType = 'Google_Service_MapsEngine_IconStyle'; - protected $iconDataType = ''; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - - - public function setIcon(Google_Service_MapsEngine_IconStyle $icon) - { - $this->icon = $icon; - } - public function getIcon() - { - return $this->icon; - } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_MapsEngine_PolygonStyle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $fillType = 'Google_Service_MapsEngine_Color'; - protected $fillDataType = ''; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_Border'; - protected $strokeDataType = ''; - - - public function setFill(Google_Service_MapsEngine_Color $fill) - { - $this->fill = $fill; - } - public function getFill() - { - return $this->fill; - } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setStroke(Google_Service_MapsEngine_Border $stroke) - { - $this->stroke = $stroke; - } - public function getStroke() - { - return $this->stroke; - } -} - -class Google_Service_MapsEngine_ProcessResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_Project extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection -{ - protected $collection_key = 'projects'; - protected $internal_gapi_mappings = array( - ); - protected $projectsType = 'Google_Service_MapsEngine_Project'; - protected $projectsDataType = 'array'; - - - public function setProjects($projects) - { - $this->projects = $projects; - } - public function getProjects() - { - return $this->projects; - } -} - -class Google_Service_MapsEngine_PublishResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_PublishedLayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $layerType; - public $name; - public $projectId; - - - 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 setLayerType($layerType) - { - $this->layerType = $layerType; - } - public function getLayerType() - { - return $this->layerType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_MapsEngine_PublishedLayersListResponse extends Google_Collection -{ - protected $collection_key = 'layers'; - protected $internal_gapi_mappings = array( - ); - protected $layersType = 'Google_Service_MapsEngine_PublishedLayer'; - protected $layersDataType = 'array'; - public $nextPageToken; - - - public function setLayers($layers) - { - $this->layers = $layers; - } - public function getLayers() - { - return $this->layers; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_PublishedMap extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = ''; - public $defaultViewport; - public $description; - public $id; - public $name; - public $projectId; - - - public function setContents(Google_Service_MapsEngine_MapItem $contents) - { - $this->contents = $contents; - } - public function getContents() - { - return $this->contents; - } - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } - public function getDefaultViewport() - { - return $this->defaultViewport; - } - 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 setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } -} - -class Google_Service_MapsEngine_PublishedMapsListResponse extends Google_Collection -{ - protected $collection_key = 'maps'; - protected $internal_gapi_mappings = array( - ); - protected $mapsType = 'Google_Service_MapsEngine_PublishedMap'; - protected $mapsDataType = 'array'; - public $nextPageToken; - - - public function setMaps($maps) - { - $this->maps = $maps; - } - public function getMaps() - { - return $this->maps; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_MapsEngine_Raster extends Google_Collection -{ - protected $collection_key = 'files'; - protected $internal_gapi_mappings = array( - ); - protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; - protected $acquisitionTimeDataType = ''; - public $attribution; - public $bbox; - public $creationTime; - public $creatorEmail; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $maskType; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; - public $writersCanEditPermissions; - - - public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) - { - $this->acquisitionTime = $acquisitionTime; - } - public function getAcquisitionTime() - { - return $this->acquisitionTime; - } - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - public function getAttribution() - { - return $this->attribution; - } - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - public function getDraftAccessList() - { - return $this->draftAccessList; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFiles($files) - { - $this->files = $files; - } - public function getFiles() - { - return $this->files; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setMaskType($maskType) - { - $this->maskType = $maskType; - } - public function getMaskType() - { - return $this->maskType; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - public function getRasterType() - { - return $this->rasterType; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_RasterCollection extends Google_Collection -{ - protected $collection_key = 'bbox'; - protected $internal_gapi_mappings = array( - ); - public $attribution; - public $bbox; - public $creationTime; - public $creatorEmail; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $mosaic; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; - public $writersCanEditPermissions; - - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - public function getAttribution() - { - return $this->attribution; - } - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - public function getDraftAccessList() - { - return $this->draftAccessList; - } - 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 setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setMosaic($mosaic) - { - $this->mosaic = $mosaic; - } - public function getMosaic() - { - return $this->mosaic; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - public function getRasterType() - { - return $this->rasterType; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection -{ - protected $collection_key = 'rasterCollections'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; - protected $rasterCollectionsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRasterCollections($rasterCollections) - { - $this->rasterCollections = $rasterCollections; - } - public function getRasterCollections() - { - return $this->rasterCollections; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $bbox; - public $creationTime; - public $description; - public $id; - public $lastModifiedTime; - public $name; - public $projectId; - public $rasterType; - public $tags; - - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - 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 setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - 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 setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } - public function getRasterType() - { - return $this->rasterType; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection -{ - protected $collection_key = 'ids'; - protected $internal_gapi_mappings = array( - ); - public $ids; - - - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } -} - -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model -{ -} - -class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection -{ - protected $collection_key = 'rasters'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; - protected $rastersDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRasters($rasters) - { - $this->rasters = $rasters; - } - public function getRasters() - { - return $this->rasters; - } -} - -class Google_Service_MapsEngine_RastersListResponse extends Google_Collection -{ - protected $collection_key = 'rasters'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_Raster'; - protected $rastersDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setRasters($rasters) - { - $this->rasters = $rasters; - } - public function getRasters() - { - return $this->rasters; - } -} - -class Google_Service_MapsEngine_ScaledShape extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $borderType = 'Google_Service_MapsEngine_Border'; - protected $borderDataType = ''; - protected $fillType = 'Google_Service_MapsEngine_Color'; - protected $fillDataType = ''; - public $shape; - - - public function setBorder(Google_Service_MapsEngine_Border $border) - { - $this->border = $border; - } - public function getBorder() - { - return $this->border; - } - public function setFill(Google_Service_MapsEngine_Color $fill) - { - $this->fill = $fill; - } - public function getFill() - { - return $this->fill; - } - public function setShape($shape) - { - $this->shape = $shape; - } - public function getShape() - { - return $this->shape; - } -} - -class Google_Service_MapsEngine_ScalingFunction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $column; - public $scalingType; - protected $sizeRangeType = 'Google_Service_MapsEngine_SizeRange'; - protected $sizeRangeDataType = ''; - protected $valueRangeType = 'Google_Service_MapsEngine_ValueRange'; - protected $valueRangeDataType = ''; - - - public function setColumn($column) - { - $this->column = $column; - } - public function getColumn() - { - return $this->column; - } - public function setScalingType($scalingType) - { - $this->scalingType = $scalingType; - } - public function getScalingType() - { - return $this->scalingType; - } - public function setSizeRange(Google_Service_MapsEngine_SizeRange $sizeRange) - { - $this->sizeRange = $sizeRange; - } - public function getSizeRange() - { - return $this->sizeRange; - } - public function setValueRange(Google_Service_MapsEngine_ValueRange $valueRange) - { - $this->valueRange = $valueRange; - } - public function getValueRange() - { - return $this->valueRange; - } -} - -class Google_Service_MapsEngine_Schema extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; - protected $columnsDataType = 'array'; - public $primaryGeometry; - public $primaryKey; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setPrimaryGeometry($primaryGeometry) - { - $this->primaryGeometry = $primaryGeometry; - } - public function getPrimaryGeometry() - { - return $this->primaryGeometry; - } - public function setPrimaryKey($primaryKey) - { - $this->primaryKey = $primaryKey; - } - public function getPrimaryKey() - { - return $this->primaryKey; - } -} - -class Google_Service_MapsEngine_SizeRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $max; - public $min; - - - 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_MapsEngine_Table extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $bbox; - public $creationTime; - public $creatorEmail; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $lastModifierEmail; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $sourceEncoding; - public $tags; - public $writersCanEditPermissions; - - - public function setBbox($bbox) - { - $this->bbox = $bbox; - } - public function getBbox() - { - return $this->bbox; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setCreatorEmail($creatorEmail) - { - $this->creatorEmail = $creatorEmail; - } - public function getCreatorEmail() - { - return $this->creatorEmail; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } - public function getDraftAccessList() - { - return $this->draftAccessList; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFiles($files) - { - $this->files = $files; - } - public function getFiles() - { - return $this->files; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - public function setLastModifierEmail($lastModifierEmail) - { - $this->lastModifierEmail = $lastModifierEmail; - } - public function getLastModifierEmail() - { - return $this->lastModifierEmail; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } - public function getSchema() - { - return $this->schema; - } - public function setSourceEncoding($sourceEncoding) - { - $this->sourceEncoding = $sourceEncoding; - } - public function getSourceEncoding() - { - return $this->sourceEncoding; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setWritersCanEditPermissions($writersCanEditPermissions) - { - $this->writersCanEditPermissions = $writersCanEditPermissions; - } - public function getWritersCanEditPermissions() - { - return $this->writersCanEditPermissions; - } -} - -class Google_Service_MapsEngine_TableColumn extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $type; - - - 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_MapsEngine_TablesListResponse extends Google_Collection -{ - protected $collection_key = 'tables'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $tablesType = 'Google_Service_MapsEngine_Table'; - protected $tablesDataType = 'array'; - - - 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; - } -} - -class Google_Service_MapsEngine_ValueRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $max; - public $min; - - - 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_MapsEngine_VectorStyle extends Google_Collection -{ - protected $collection_key = 'displayRules'; - protected $internal_gapi_mappings = array( - ); - protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; - protected $displayRulesDataType = 'array'; - protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; - protected $featureInfoDataType = ''; - public $type; - - - public function setDisplayRules($displayRules) - { - $this->displayRules = $displayRules; - } - public function getDisplayRules() - { - return $this->displayRules; - } - public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) - { - $this->featureInfo = $featureInfo; - } - public function getFeatureInfo() - { - return $this->featureInfo; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_MapsEngine_ZoomLevels extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $max; - public $min; - - - 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; - } -} diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php deleted file mode 100644 index fbc52926c..000000000 --- a/src/Google/Service/Mirror.php +++ /dev/null @@ -1,1932 +0,0 @@ - - * 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 -{ - /** View your location. */ - const GLASS_LOCATION = - "https://www.googleapis.com/auth/glass.location"; - /** View and manage your Glass timeline. */ - const GLASS_TIMELINE = - "https://www.googleapis.com/auth/glass.timeline"; - - public $accounts; - public $contacts; - public $locations; - public $settings; - public $subscriptions; - public $timeline; - public $timeline_attachments; - - - /** - * Constructs the internal representation of the Mirror service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'mirror/v1/'; - $this->version = 'v1'; - $this->serviceName = 'mirror'; - - $this->accounts = new Google_Service_Mirror_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'accounts/{userToken}/{accountType}/{accountName}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userToken' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->contacts = new Google_Service_Mirror_Contacts_Resource( - $this, - $this->serviceName, - 'contacts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'contacts', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'contacts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->locations = new Google_Service_Mirror_Locations_Resource( - $this, - $this->serviceName, - 'locations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'locations/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'locations', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->settings = new Google_Service_Mirror_Settings_Resource( - $this, - $this->serviceName, - 'settings', - array( - 'methods' => array( - 'get' => array( - 'path' => 'settings/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'update' => array( - 'path' => 'subscriptions/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->timeline = new Google_Service_Mirror_Timeline_Resource( - $this, - $this->serviceName, - 'timeline', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'timeline', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'timeline', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bundleId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinnedOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'sourceItemId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'timeline/{itemId}/attachments/{attachmentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'attachmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'timeline/{itemId}/attachments/{attachmentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'attachmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'timeline/{itemId}/attachments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'timeline/{itemId}/attachments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $accounts = $mirrorService->accounts; - * - */ -class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Inserts a new account for a user (accounts.insert) - * - * @param string $userToken The ID for the user. - * @param string $accountType Account type to be passed to Android Account - * Manager. - * @param string $accountName The name of the account to be passed to the - * Android Account Manager. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Account - */ - public function insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array()) - { - $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Account"); - } -} - -/** - * The "contacts" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a single contact by ID. (contacts.get) - * - * @param string $id The ID of the contact. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Contact"); - } - - /** - * Inserts a new contact. (contacts.insert) - * - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Contact"); - } - - /** - * Retrieves a list of contacts for the authenticated user. - * (contacts.listContacts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_ContactsListResponse - */ - public function listContacts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse"); - } - - /** - * Updates a contact in place. This method supports patch semantics. - * (contacts.patch) - * - * @param string $id The ID of the contact. - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Mirror_Contact"); - } - - /** - * Updates a contact in place. (contacts.update) - * - * @param string $id The ID of the contact. - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_Contact"); - } -} - -/** - * The "locations" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $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); - return $this->call('get', array($params), "Google_Service_Mirror_Location"); - } - - /** - * Retrieves a list of locations for the user. (locations.listLocations) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_LocationsListResponse - */ - public function listLocations($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse"); - } -} - -/** - * The "settings" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $settings = $mirrorService->settings; - * - */ -class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource -{ - - /** - * Gets a single setting by ID. (settings.get) - * - * @param string $id The ID of the setting. The following IDs are valid: - - * locale - The key to the user’s language/locale (BCP 47 identifier) that - * Glassware should use to render localized content. - timezone - The key to - * the user’s current time zone region as defined in the tz database. Example: - * America/Los_Angeles. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Setting - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Setting"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Creates a new subscription. (subscriptions.insert) - * - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Subscription - */ - public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Subscription"); - } - - /** - * Retrieves a list of subscriptions for the authenticated user and service. - * (subscriptions.listSubscriptions) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_SubscriptionsListResponse - */ - public function listSubscriptions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse"); - } - - /** - * Updates an existing subscription in place. (subscriptions.update) - * - * @param string $id The ID of the subscription. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Subscription - */ - public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_Subscription"); - } -} - -/** - * The "timeline" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Gets a single timeline item by ID. (timeline.get) - * - * @param string $id The ID of the timeline item. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem"); - } - - /** - * Inserts a new item into the timeline. (timeline.insert) - * - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem"); - } - - /** - * Retrieves a list of timeline items for the authenticated user. - * (timeline.listTimeline) - * - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse"); - } - - /** - * Updates a timeline item in place. This method supports patch semantics. - * (timeline.patch) - * - * @param string $id The ID of the timeline item. - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem"); - } - - /** - * Updates a timeline item in place. (timeline.update) - * - * @param string $id The ID of the timeline item. - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem"); - } -} - -/** - * The "attachments" collection of methods. - * Typical usage is: - * - * $mirrorService = new Google_Service_Mirror(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Retrieves an attachment on a timeline item by item ID and attachment ID. - * (attachments.get) - * - * @param string $itemId The ID of the timeline item the attachment belongs to. - * @param string $attachmentId The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Attachment - */ - public function get($itemId, $attachmentId, $optParams = array()) - { - $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Attachment"); - } - - /** - * Adds a new attachment to a timeline item. (attachments.insert) - * - * @param string $itemId The ID of the timeline item the attachment belongs to. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Attachment - */ - public function insert($itemId, $optParams = array()) - { - $params = array('itemId' => $itemId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Attachment"); - } - - /** - * Returns a list of attachments for a timeline item. - * (attachments.listTimelineAttachments) - * - * @param string $itemId The ID of the timeline item whose attachments should be - * listed. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_AttachmentsListResponse - */ - public function listTimelineAttachments($itemId, $optParams = array()) - { - $params = array('itemId' => $itemId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_AttachmentsListResponse"); - } -} - - - - -class Google_Service_Mirror_Account extends Google_Collection -{ - protected $collection_key = 'userData'; - protected $internal_gapi_mappings = array( - ); - protected $authTokensType = 'Google_Service_Mirror_AuthToken'; - protected $authTokensDataType = 'array'; - public $features; - public $password; - protected $userDataType = 'Google_Service_Mirror_UserData'; - protected $userDataDataType = 'array'; - - - public function setAuthTokens($authTokens) - { - $this->authTokens = $authTokens; - } - public function getAuthTokens() - { - return $this->authTokens; - } - public function setFeatures($features) - { - $this->features = $features; - } - public function getFeatures() - { - return $this->features; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setUserData($userData) - { - $this->userData = $userData; - } - public function getUserData() - { - return $this->userData; - } -} - -class Google_Service_Mirror_Attachment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Mirror_Attachment'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Mirror_AuthToken extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $authToken; - public $type; - - - public function setAuthToken($authToken) - { - $this->authToken = $authToken; - } - public function getAuthToken() - { - return $this->authToken; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Mirror_Command extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Mirror_Contact extends Google_Collection -{ - protected $collection_key = 'sharingFeatures'; - protected $internal_gapi_mappings = array( - ); - protected $acceptCommandsType = 'Google_Service_Mirror_Command'; - protected $acceptCommandsDataType = 'array'; - public $acceptTypes; - public $displayName; - public $id; - public $imageUrls; - public $kind; - public $phoneNumber; - public $priority; - public $sharingFeatures; - public $source; - public $speakableName; - public $type; - - - public function setAcceptCommands($acceptCommands) - { - $this->acceptCommands = $acceptCommands; - } - public function getAcceptCommands() - { - return $this->acceptCommands; - } - 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 setSharingFeatures($sharingFeatures) - { - $this->sharingFeatures = $sharingFeatures; - } - public function getSharingFeatures() - { - return $this->sharingFeatures; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setSpeakableName($speakableName) - { - $this->speakableName = $speakableName; - } - public function getSpeakableName() - { - return $this->speakableName; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Mirror_ContactsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Mirror_Contact'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Mirror_Location extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Mirror_Location'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Mirror_MenuItem extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - "contextualCommand" => "contextual_command", - ); - public $action; - public $contextualCommand; - public $id; - public $payload; - public $removeWhenSelected; - protected $valuesType = 'Google_Service_Mirror_MenuValue'; - protected $valuesDataType = 'array'; - - - public function setAction($action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setContextualCommand($contextualCommand) - { - $this->contextualCommand = $contextualCommand; - } - public function getContextualCommand() - { - return $this->contextualCommand; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'userActions'; - protected $internal_gapi_mappings = array( - ); - public $collection; - public $itemId; - public $operation; - protected $userActionsType = 'Google_Service_Mirror_UserAction'; - protected $userActionsDataType = 'array'; - public $userToken; - public $verifyToken; - - - public function setCollection($collection) - { - $this->collection = $collection; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_Setting extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $value; - - - 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_Mirror_Subscription extends Google_Collection -{ - protected $collection_key = 'operation'; - protected $internal_gapi_mappings = array( - ); - public $callbackUrl; - public $collection; - public $id; - public $kind; - protected $notificationType = 'Google_Service_Mirror_Notification'; - protected $notificationDataType = ''; - public $operation; - public $updated; - public $userToken; - public $verifyToken; - - - public function setCallbackUrl($callbackUrl) - { - $this->callbackUrl = $callbackUrl; - } - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Mirror_Subscription'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Mirror_TimelineItem extends Google_Collection -{ - protected $collection_key = 'recipients'; - protected $internal_gapi_mappings = array( - ); - protected $attachmentsType = 'Google_Service_Mirror_Attachment'; - protected $attachmentsDataType = 'array'; - public $bundleId; - public $canonicalUrl; - public $created; - protected $creatorType = 'Google_Service_Mirror_Contact'; - protected $creatorDataType = ''; - public $displayTime; - public $etag; - public $html; - public $id; - public $inReplyTo; - public $isBundleCover; - public $isDeleted; - public $isPinned; - public $kind; - protected $locationType = 'Google_Service_Mirror_Location'; - protected $locationDataType = ''; - protected $menuItemsType = 'Google_Service_Mirror_MenuItem'; - protected $menuItemsDataType = 'array'; - protected $notificationType = 'Google_Service_Mirror_NotificationConfig'; - protected $notificationDataType = ''; - public $pinScore; - protected $recipientsType = 'Google_Service_Mirror_Contact'; - protected $recipientsDataType = 'array'; - public $selfLink; - public $sourceItemId; - public $speakableText; - public $speakableType; - public $text; - public $title; - public $updated; - - - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function 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 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 setSpeakableType($speakableType) - { - $this->speakableType = $speakableType; - } - public function getSpeakableType() - { - return $this->speakableType; - } - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Mirror_TimelineItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Mirror_UserAction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} - -class Google_Service_Mirror_UserData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} diff --git a/src/Google/Service/Oauth2.php b/src/Google/Service/Oauth2.php deleted file mode 100644 index 4715f2b1e..000000000 --- a/src/Google/Service/Oauth2.php +++ /dev/null @@ -1,503 +0,0 @@ - - * Lets you access OAuth2 protocol related APIs.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Oauth2 extends Google_Service -{ - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = - "https://www.googleapis.com/auth/plus.me"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = - "https://www.googleapis.com/auth/userinfo.profile"; - - public $userinfo; - public $userinfo_v2_me; - private $base_methods; - - /** - * Constructs the internal representation of the Oauth2 service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v2'; - $this->serviceName = 'oauth2'; - - $this->userinfo = new Google_Service_Oauth2_Userinfo_Resource( - $this, - $this->serviceName, - 'userinfo', - array( - 'methods' => array( - 'get' => array( - 'path' => 'oauth2/v2/userinfo', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource( - $this, - $this->serviceName, - 'me', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userinfo/v2/me', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->base_methods = new Google_Service_Resource( - $this, - $this->serviceName, - '', - array( - 'methods' => array( - 'getCertForOpenIdConnect' => array( - 'path' => 'oauth2/v2/certs', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'tokeninfo' => array( - 'path' => 'oauth2/v2/tokeninfo', - 'httpMethod' => 'POST', - 'parameters' => array( - 'access_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'token_handle' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } - /** - * (getCertForOpenIdConnect) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Oauth2_Jwk - */ - public function getCertForOpenIdConnect($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk"); - } - /** - * (tokeninfo) - * - * @param array $optParams Optional parameters. - * - * @opt_param string access_token - * @opt_param string id_token - * @opt_param string token_handle - * @return Google_Service_Oauth2_Tokeninfo - */ - public function tokeninfo($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo"); - } -} - - -/** - * The "userinfo" collection of methods. - * Typical usage is: - * - * $oauth2Service = new Google_Service_Oauth2(...); - * $userinfo = $oauth2Service->userinfo; - * - */ -class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource -{ - - /** - * (userinfo.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Oauth2_Userinfoplus - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); - } -} - -/** - * The "v2" collection of methods. - * Typical usage is: - * - * $oauth2Service = new Google_Service_Oauth2(...); - * $v2 = $oauth2Service->v2; - * - */ -class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource -{ -} - -/** - * The "me" collection of methods. - * Typical usage is: - * - * $oauth2Service = new Google_Service_Oauth2(...); - * $me = $oauth2Service->me; - * - */ -class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource -{ - - /** - * (me.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Oauth2_Userinfoplus - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); - } -} - - - - -class Google_Service_Oauth2_Jwk extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - protected $keysType = 'Google_Service_Oauth2_JwkKeys'; - protected $keysDataType = 'array'; - - - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } -} - -class Google_Service_Oauth2_JwkKeys extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alg; - public $e; - public $kid; - public $kty; - public $n; - public $use; - - - public function setAlg($alg) - { - $this->alg = $alg; - } - public function getAlg() - { - return $this->alg; - } - public function setE($e) - { - $this->e = $e; - } - public function getE() - { - return $this->e; - } - public function setKid($kid) - { - $this->kid = $kid; - } - public function getKid() - { - return $this->kid; - } - public function setKty($kty) - { - $this->kty = $kty; - } - public function getKty() - { - return $this->kty; - } - public function setN($n) - { - $this->n = $n; - } - public function getN() - { - return $this->n; - } - public function setUse($use) - { - $this->use = $use; - } - public function getUse() - { - return $this->use; - } -} - -class Google_Service_Oauth2_Tokeninfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - "accessType" => "access_type", - "expiresIn" => "expires_in", - "issuedTo" => "issued_to", - "tokenHandle" => "token_handle", - "userId" => "user_id", - "verifiedEmail" => "verified_email", - ); - public $accessType; - public $audience; - public $email; - public $expiresIn; - public $issuedTo; - public $scope; - public $tokenHandle; - public $userId; - public $verifiedEmail; - - - public function setAccessType($accessType) - { - $this->accessType = $accessType; - } - public function getAccessType() - { - return $this->accessType; - } - public function setAudience($audience) - { - $this->audience = $audience; - } - public function getAudience() - { - return $this->audience; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } - public function getExpiresIn() - { - return $this->expiresIn; - } - public function setIssuedTo($issuedTo) - { - $this->issuedTo = $issuedTo; - } - public function getIssuedTo() - { - return $this->issuedTo; - } - public function setScope($scope) - { - $this->scope = $scope; - } - public function getScope() - { - return $this->scope; - } - public function setTokenHandle($tokenHandle) - { - $this->tokenHandle = $tokenHandle; - } - public function getTokenHandle() - { - return $this->tokenHandle; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } - public function setVerifiedEmail($verifiedEmail) - { - $this->verifiedEmail = $verifiedEmail; - } - public function getVerifiedEmail() - { - return $this->verifiedEmail; - } -} - -class Google_Service_Oauth2_Userinfoplus extends Google_Model -{ - protected $internal_gapi_mappings = array( - "familyName" => "family_name", - "givenName" => "given_name", - "verifiedEmail" => "verified_email", - ); - public $email; - public $familyName; - public $gender; - public $givenName; - public $hd; - public $id; - public $link; - public $locale; - public $name; - public $picture; - public $verifiedEmail; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setGender($gender) - { - $this->gender = $gender; - } - public function getGender() - { - return $this->gender; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } - public function setHd($hd) - { - $this->hd = $hd; - } - public function getHd() - { - return $this->hd; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLink($link) - { - $this->link = $link; - } - public function getLink() - { - return $this->link; - } - public function setLocale($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 setPicture($picture) - { - $this->picture = $picture; - } - public function getPicture() - { - return $this->picture; - } - public function setVerifiedEmail($verifiedEmail) - { - $this->verifiedEmail = $verifiedEmail; - } - public function getVerifiedEmail() - { - return $this->verifiedEmail; - } -} diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php deleted file mode 100644 index af3cc093c..000000000 --- a/src/Google/Service/Pagespeedonline.php +++ /dev/null @@ -1,830 +0,0 @@ - - * 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) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'pagespeedonline/v2/'; - $this->version = 'v2'; - $this->serviceName = 'pagespeedonline'; - - $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource( - $this, - $this->serviceName, - 'pagespeedapi', - array( - 'methods' => array( - 'runpagespeed' => array( - 'path' => 'runPagespeed', - 'httpMethod' => 'GET', - 'parameters' => array( - 'url' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'filter_third_party_resources' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rule' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'screenshot' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'strategy' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "pagespeedapi" collection of methods. - * Typical usage is: - * - * $pagespeedonlineService = new Google_Service_Pagespeedonline(...); - * $pagespeedapi = $pagespeedonlineService->pagespeedapi; - * - */ -class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource -{ - - /** - * Runs PageSpeed analysis on the page at the specified URL, and returns - * PageSpeed scores, a list of suggestions to make that page faster, and other - * information. (pagespeedapi.runpagespeed) - * - * @param string $url The URL to fetch and analyze - * @param array $optParams Optional parameters. - * - * @opt_param bool filter_third_party_resources Indicates if third party - * resources should be filtered out before PageSpeed analysis. - * @opt_param string locale The locale used to localize formatted results - * @opt_param string rule A PageSpeed 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); - return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result"); - } -} - - - - -class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args'; - protected $argsDataType = 'array'; - 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_PagespeedApiFormatStringV2Args extends Google_Collection -{ - protected $collection_key = 'secondary_rects'; - protected $internal_gapi_mappings = array( - "secondaryRects" => "secondary_rects", - ); - public $key; - protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects'; - protected $rectsDataType = 'array'; - protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects'; - protected $secondaryRectsDataType = 'array'; - public $type; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setRects($rects) - { - $this->rects = $rects; - } - public function getRects() - { - return $this->rects; - } - public function setSecondaryRects($secondaryRects) - { - $this->secondaryRects = $secondaryRects; - } - public function getSecondaryRects() - { - return $this->secondaryRects; - } - 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_PagespeedApiFormatStringV2ArgsRects extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $left; - public $top; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $left; - public $top; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model -{ - protected $internal_gapi_mappings = array( - "mimeType" => "mime_type", - "pageRect" => "page_rect", - ); - public $data; - public $height; - public $key; - public $mimeType; - protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect'; - protected $pageRectDataType = ''; - 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 setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect) - { - $this->pageRect = $pageRect; - } - public function getPageRect() - { - return $this->pageRect; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $left; - public $top; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setLeft($left) - { - $this->left = $left; - } - public function getLeft() - { - return $this->left; - } - public function setTop($top) - { - $this->top = $top; - } - public function getTop() - { - return $this->top; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Pagespeedonline_Result extends Google_Collection -{ - protected $collection_key = 'invalidRules'; - protected $internal_gapi_mappings = array( - ); - protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults'; - protected $formattedResultsDataType = ''; - public $id; - public $invalidRules; - public $kind; - protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats'; - protected $pageStatsDataType = ''; - public $responseCode; - protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement'; - protected $ruleGroupsDataType = 'map'; - protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2'; - protected $screenshotDataType = ''; - public $title; - protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; - protected $versionDataType = ''; - - - 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 setRuleGroups($ruleGroups) - { - $this->ruleGroups = $ruleGroups; - } - public function getRuleGroups() - { - return $this->ruleGroups; - } - public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $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 -{ - protected $internal_gapi_mappings = array( - ); - public $locale; - protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement'; - protected $ruleResultsDataType = 'map'; - - - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setRuleResults($ruleResults) - { - $this->ruleResults = $ruleResults; - } - public function getRuleResults() - { - return $this->ruleResults; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection -{ - protected $collection_key = 'urlBlocks'; - protected $internal_gapi_mappings = array( - ); - public $groups; - public $localizedRuleName; - public $ruleImpact; - protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; - protected $summaryDataType = ''; - protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; - protected $urlBlocksDataType = 'array'; - - - public function setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - 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 setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary) - { - $this->summary = $summary; - } - public function getSummary() - { - return $this->summary; - } - public function setUrlBlocks($urlBlocks) - { - $this->urlBlocks = $urlBlocks; - } - public function getUrlBlocks() - { - return $this->urlBlocks; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; - protected $headerDataType = ''; - protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; - protected $urlsDataType = 'array'; - - - public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $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_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; - protected $detailsDataType = 'array'; - protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; - protected $resultDataType = ''; - - - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ResultRuleGroupsElement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $score; - - - public function setScore($score) - { - $this->score = $score; - } - public function getScore() - { - return $this->score; - } -} - -class Google_Service_Pagespeedonline_ResultVersion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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/Partners.php b/src/Google/Service/Partners.php deleted file mode 100644 index c5743b75f..000000000 --- a/src/Google/Service/Partners.php +++ /dev/null @@ -1,1606 +0,0 @@ - - * Lets advertisers search certified companies and create contact leads with - * them, and also audits the usage of clients.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Partners extends Google_Service -{ - - - public $clientMessages; - public $companies; - public $companies_leads; - public $userEvents; - public $userStates; - - - /** - * Constructs the internal representation of the Partners service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://partners.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v2'; - $this->serviceName = 'partners'; - - $this->clientMessages = new Google_Service_Partners_ClientMessages_Resource( - $this, - $this->serviceName, - 'clientMessages', - array( - 'methods' => array( - 'log' => array( - 'path' => 'v2/clientMessages:log', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->companies = new Google_Service_Partners_Companies_Resource( - $this, - $this->serviceName, - 'companies', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v2/companies/{companyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'companyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'requestMetadata.userOverrides.ipAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.userOverrides.userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'currencyCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v2/companies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'requestMetadata.userOverrides.ipAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.userOverrides.userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'companyName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minMonthlyBudget.currencyCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minMonthlyBudget.units' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minMonthlyBudget.nanos' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxMonthlyBudget.currencyCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxMonthlyBudget.units' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxMonthlyBudget.nanos' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'industries' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'services' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'languageCodes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'gpsMotivations' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'websiteUrl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->companies_leads = new Google_Service_Partners_CompaniesLeads_Resource( - $this, - $this->serviceName, - 'leads', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v2/companies/{companyId}/leads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'companyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->userEvents = new Google_Service_Partners_UserEvents_Resource( - $this, - $this->serviceName, - 'userEvents', - array( - 'methods' => array( - 'log' => array( - 'path' => 'v2/userEvents:log', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->userStates = new Google_Service_Partners_UserStates_Resource( - $this, - $this->serviceName, - 'userStates', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/userStates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'requestMetadata.userOverrides.ipAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.userOverrides.userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "clientMessages" collection of methods. - * Typical usage is: - * - * $partnersService = new Google_Service_Partners(...); - * $clientMessages = $partnersService->clientMessages; - * - */ -class Google_Service_Partners_ClientMessages_Resource extends Google_Service_Resource -{ - - /** - * Logs a generic message from the client, such as `Failed to render component`, - * `Profile page is running slow`, `More than 500 users have accessed this - * result.`, etc. (clientMessages.log) - * - * @param Google_LogMessageRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Partners_LogMessageResponse - */ - public function log(Google_Service_Partners_LogMessageRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('log', array($params), "Google_Service_Partners_LogMessageResponse"); - } -} - -/** - * The "companies" collection of methods. - * Typical usage is: - * - * $partnersService = new Google_Service_Partners(...); - * $companies = $partnersService->companies; - * - */ -class Google_Service_Partners_Companies_Resource extends Google_Service_Resource -{ - - /** - * Gets a company. (companies.get) - * - * @param string $companyId The ID of the company to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. - * @opt_param string view The view of `Company` resource to be returned. This - * must not be `COMPANY_VIEW_UNSPECIFIED`. - * @opt_param string orderBy How to order addresses within the returned company. - * Currently, only `address` and `address desc` is supported which will sorted - * by closest to farthest in distance from given address and farthest to closest - * distance from given address respectively. - * @opt_param string currencyCode If the company's budget is in a different - * currency code than this one, then the converted budget is converted to this - * currency code. - * @opt_param string address The address to use for sorting the company's - * addresses by proximity. If not given, the geo-located address of the request - * is used. Used when order_by is set. - * @return Google_Service_Partners_GetCompanyResponse - */ - public function get($companyId, $optParams = array()) - { - $params = array('companyId' => $companyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Partners_GetCompanyResponse"); - } - - /** - * Lists companies. (companies.listCompanies) - * - * @param array $optParams Optional parameters. - * - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. - * @opt_param int pageSize Requested page size. Server may return fewer - * companies than requested. If unspecified, server picks an appropriate - * default. - * @opt_param string pageToken A token identifying a page of results that the - * server returns. Typically, this is the value of - * `ListCompaniesResponse.next_page_token` returned from the previous call to - * ListCompanies. - * @opt_param string companyName Company name to search for. - * @opt_param string view The view of the `Company` resource to be returned. - * This must not be `COMPANY_VIEW_UNSPECIFIED`. - * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code - * defined in ISO 4217. - * @opt_param string minMonthlyBudget.units The whole units of the amount. For - * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the - * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If - * `units` is positive, `nanos` must be positive or zero. If `units` is zero, - * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` - * must be negative or zero. For example $-1.75 is represented as `units`=-1 and - * `nanos`=-750,000,000. - * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code - * defined in ISO 4217. - * @opt_param string maxMonthlyBudget.units The whole units of the amount. For - * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @opt_param int maxMonthlyBudget.nanos Number of nano (10^-9) units of the - * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If - * `units` is positive, `nanos` must be positive or zero. If `units` is zero, - * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` - * must be negative or zero. For example $-1.75 is represented as `units`=-1 and - * `nanos`=-750,000,000. - * @opt_param string industries List of industries the company can help with. - * @opt_param string services List of services the company can help with. - * @opt_param string languageCodes List of language codes that company can - * support. Only primary language subtags are accepted as defined by BCP 47 - * (IETF BCP 47, "Tags for Identifying Languages"). - * @opt_param string address The address to use when searching for companies. If - * not given, the geo-located address of the request is used. - * @opt_param string orderBy How to order addresses within the returned - * companies. Currently, only `address` and `address desc` is supported which - * will sorted by closest to farthest in distance from given address and - * farthest to closest distance from given address respectively. - * @opt_param string gpsMotivations List of reasons for using Google Partner - * Search to get companies. - * @opt_param string websiteUrl Website URL that will help to find a better - * matched company. . - * @return Google_Service_Partners_ListCompaniesResponse - */ - public function listCompanies($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Partners_ListCompaniesResponse"); - } -} - -/** - * The "leads" collection of methods. - * Typical usage is: - * - * $partnersService = new Google_Service_Partners(...); - * $leads = $partnersService->leads; - * - */ -class Google_Service_Partners_CompaniesLeads_Resource extends Google_Service_Resource -{ - - /** - * Creates an advertiser lead for the given company ID. (leads.create) - * - * @param string $companyId The ID of the company to contact. - * @param Google_CreateLeadRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Partners_CreateLeadResponse - */ - public function create($companyId, Google_Service_Partners_CreateLeadRequest $postBody, $optParams = array()) - { - $params = array('companyId' => $companyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Partners_CreateLeadResponse"); - } -} - -/** - * The "userEvents" collection of methods. - * Typical usage is: - * - * $partnersService = new Google_Service_Partners(...); - * $userEvents = $partnersService->userEvents; - * - */ -class Google_Service_Partners_UserEvents_Resource extends Google_Service_Resource -{ - - /** - * Logs a user event. (userEvents.log) - * - * @param Google_LogUserEventRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Partners_LogUserEventResponse - */ - public function log(Google_Service_Partners_LogUserEventRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('log', array($params), "Google_Service_Partners_LogUserEventResponse"); - } -} - -/** - * The "userStates" collection of methods. - * Typical usage is: - * - * $partnersService = new Google_Service_Partners(...); - * $userStates = $partnersService->userStates; - * - */ -class Google_Service_Partners_UserStates_Resource extends Google_Service_Resource -{ - - /** - * Lists states for current user. (userStates.listUserStates) - * - * @param array $optParams Optional parameters. - * - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. - * @return Google_Service_Partners_ListUserStatesResponse - */ - public function listUserStates($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Partners_ListUserStatesResponse"); - } -} - - - - -class Google_Service_Partners_CertificationExamStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $numberUsersPass; - public $type; - - - public function setNumberUsersPass($numberUsersPass) - { - $this->numberUsersPass = $numberUsersPass; - } - public function getNumberUsersPass() - { - return $this->numberUsersPass; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Partners_CertificationStatus extends Google_Collection -{ - protected $collection_key = 'examStatuses'; - protected $internal_gapi_mappings = array( - ); - protected $examStatusesType = 'Google_Service_Partners_CertificationExamStatus'; - protected $examStatusesDataType = 'array'; - public $isCertified; - public $type; - - - public function setExamStatuses($examStatuses) - { - $this->examStatuses = $examStatuses; - } - public function getExamStatuses() - { - return $this->examStatuses; - } - public function setIsCertified($isCertified) - { - $this->isCertified = $isCertified; - } - public function getIsCertified() - { - return $this->isCertified; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Partners_Company extends Google_Collection -{ - protected $collection_key = 'services'; - protected $internal_gapi_mappings = array( - ); - protected $certificationStatusesType = 'Google_Service_Partners_CertificationStatus'; - protected $certificationStatusesDataType = 'array'; - protected $convertedMinMonthlyBudgetType = 'Google_Service_Partners_Money'; - protected $convertedMinMonthlyBudgetDataType = ''; - public $id; - public $industries; - protected $localizedInfosType = 'Google_Service_Partners_LocalizedCompanyInfo'; - protected $localizedInfosDataType = 'array'; - protected $locationsType = 'Google_Service_Partners_Location'; - protected $locationsDataType = 'array'; - public $name; - protected $originalMinMonthlyBudgetType = 'Google_Service_Partners_Money'; - protected $originalMinMonthlyBudgetDataType = ''; - protected $publicProfileType = 'Google_Service_Partners_PublicProfile'; - protected $publicProfileDataType = ''; - protected $ranksType = 'Google_Service_Partners_Rank'; - protected $ranksDataType = 'array'; - public $services; - public $websiteUrl; - - - public function setCertificationStatuses($certificationStatuses) - { - $this->certificationStatuses = $certificationStatuses; - } - public function getCertificationStatuses() - { - return $this->certificationStatuses; - } - public function setConvertedMinMonthlyBudget(Google_Service_Partners_Money $convertedMinMonthlyBudget) - { - $this->convertedMinMonthlyBudget = $convertedMinMonthlyBudget; - } - public function getConvertedMinMonthlyBudget() - { - return $this->convertedMinMonthlyBudget; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIndustries($industries) - { - $this->industries = $industries; - } - public function getIndustries() - { - return $this->industries; - } - public function setLocalizedInfos($localizedInfos) - { - $this->localizedInfos = $localizedInfos; - } - public function getLocalizedInfos() - { - return $this->localizedInfos; - } - public function setLocations($locations) - { - $this->locations = $locations; - } - public function getLocations() - { - return $this->locations; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOriginalMinMonthlyBudget(Google_Service_Partners_Money $originalMinMonthlyBudget) - { - $this->originalMinMonthlyBudget = $originalMinMonthlyBudget; - } - public function getOriginalMinMonthlyBudget() - { - return $this->originalMinMonthlyBudget; - } - public function setPublicProfile(Google_Service_Partners_PublicProfile $publicProfile) - { - $this->publicProfile = $publicProfile; - } - public function getPublicProfile() - { - return $this->publicProfile; - } - public function setRanks($ranks) - { - $this->ranks = $ranks; - } - public function getRanks() - { - return $this->ranks; - } - public function setServices($services) - { - $this->services = $services; - } - public function getServices() - { - return $this->services; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Partners_CreateLeadRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $leadType = 'Google_Service_Partners_Lead'; - protected $leadDataType = ''; - protected $recaptchaChallengeType = 'Google_Service_Partners_RecaptchaChallenge'; - protected $recaptchaChallengeDataType = ''; - protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; - protected $requestMetadataDataType = ''; - - - public function setLead(Google_Service_Partners_Lead $lead) - { - $this->lead = $lead; - } - public function getLead() - { - return $this->lead; - } - public function setRecaptchaChallenge(Google_Service_Partners_RecaptchaChallenge $recaptchaChallenge) - { - $this->recaptchaChallenge = $recaptchaChallenge; - } - public function getRecaptchaChallenge() - { - return $this->recaptchaChallenge; - } - public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) - { - $this->requestMetadata = $requestMetadata; - } - public function getRequestMetadata() - { - return $this->requestMetadata; - } -} - -class Google_Service_Partners_CreateLeadResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $leadType = 'Google_Service_Partners_Lead'; - protected $leadDataType = ''; - public $recaptchaStatus; - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - - - public function setLead(Google_Service_Partners_Lead $lead) - { - $this->lead = $lead; - } - public function getLead() - { - return $this->lead; - } - public function setRecaptchaStatus($recaptchaStatus) - { - $this->recaptchaStatus = $recaptchaStatus; - } - public function getRecaptchaStatus() - { - return $this->recaptchaStatus; - } - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } -} - -class Google_Service_Partners_DebugInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $serverInfo; - public $serverTraceInfo; - public $serviceUrl; - - - public function setServerInfo($serverInfo) - { - $this->serverInfo = $serverInfo; - } - public function getServerInfo() - { - return $this->serverInfo; - } - public function setServerTraceInfo($serverTraceInfo) - { - $this->serverTraceInfo = $serverTraceInfo; - } - public function getServerTraceInfo() - { - return $this->serverTraceInfo; - } - public function setServiceUrl($serviceUrl) - { - $this->serviceUrl = $serviceUrl; - } - public function getServiceUrl() - { - return $this->serviceUrl; - } -} - -class Google_Service_Partners_EventData extends Google_Collection -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - public $key; - public $values; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setValues($values) - { - $this->values = $values; - } - public function getValues() - { - return $this->values; - } -} - -class Google_Service_Partners_GetCompanyResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $companyType = 'Google_Service_Partners_Company'; - protected $companyDataType = ''; - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - - - public function setCompany(Google_Service_Partners_Company $company) - { - $this->company = $company; - } - public function getCompany() - { - return $this->company; - } - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } -} - -class Google_Service_Partners_LatLng extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Partners_Lead extends Google_Collection -{ - protected $collection_key = 'gpsMotivations'; - protected $internal_gapi_mappings = array( - ); - public $comments; - public $email; - public $familyName; - public $givenName; - public $gpsMotivations; - public $id; - protected $minMonthlyBudgetType = 'Google_Service_Partners_Money'; - protected $minMonthlyBudgetDataType = ''; - public $phoneNumber; - public $type; - public $websiteUrl; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - 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; - } - public function setGpsMotivations($gpsMotivations) - { - $this->gpsMotivations = $gpsMotivations; - } - public function getGpsMotivations() - { - return $this->gpsMotivations; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMinMonthlyBudget(Google_Service_Partners_Money $minMonthlyBudget) - { - $this->minMonthlyBudget = $minMonthlyBudget; - } - public function getMinMonthlyBudget() - { - return $this->minMonthlyBudget; - } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - public function getPhoneNumber() - { - return $this->phoneNumber; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_Partners_ListCompaniesResponse extends Google_Collection -{ - protected $collection_key = 'companies'; - protected $internal_gapi_mappings = array( - ); - protected $companiesType = 'Google_Service_Partners_Company'; - protected $companiesDataType = 'array'; - public $nextPageToken; - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - - - public function setCompanies($companies) - { - $this->companies = $companies; - } - public function getCompanies() - { - return $this->companies; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } -} - -class Google_Service_Partners_ListUserStatesResponse extends Google_Collection -{ - protected $collection_key = 'userStates'; - protected $internal_gapi_mappings = array( - ); - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - public $userStates; - - - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } - public function setUserStates($userStates) - { - $this->userStates = $userStates; - } - public function getUserStates() - { - return $this->userStates; - } -} - -class Google_Service_Partners_LocalizedCompanyInfo extends Google_Collection -{ - protected $collection_key = 'countryCodes'; - protected $internal_gapi_mappings = array( - ); - public $countryCodes; - public $displayName; - public $languageCode; - public $overview; - - - public function setCountryCodes($countryCodes) - { - $this->countryCodes = $countryCodes; - } - public function getCountryCodes() - { - return $this->countryCodes; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setLanguageCode($languageCode) - { - $this->languageCode = $languageCode; - } - public function getLanguageCode() - { - return $this->languageCode; - } - public function setOverview($overview) - { - $this->overview = $overview; - } - public function getOverview() - { - return $this->overview; - } -} - -class Google_Service_Partners_Location extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - protected $latLngType = 'Google_Service_Partners_LatLng'; - protected $latLngDataType = ''; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setLatLng(Google_Service_Partners_LatLng $latLng) - { - $this->latLng = $latLng; - } - public function getLatLng() - { - return $this->latLng; - } -} - -class Google_Service_Partners_LogMessageRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $clientInfo; - public $details; - public $level; - protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; - protected $requestMetadataDataType = ''; - - - public function setClientInfo($clientInfo) - { - $this->clientInfo = $clientInfo; - } - public function getClientInfo() - { - return $this->clientInfo; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } - public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) - { - $this->requestMetadata = $requestMetadata; - } - public function getRequestMetadata() - { - return $this->requestMetadata; - } -} - -class Google_Service_Partners_LogMessageResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - - - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } -} - -class Google_Service_Partners_LogUserEventRequest extends Google_Collection -{ - protected $collection_key = 'eventDatas'; - protected $internal_gapi_mappings = array( - ); - public $eventAction; - public $eventCategory; - protected $eventDatasType = 'Google_Service_Partners_EventData'; - protected $eventDatasDataType = 'array'; - public $eventScope; - protected $leadType = 'Google_Service_Partners_Lead'; - protected $leadDataType = ''; - protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata'; - protected $requestMetadataDataType = ''; - public $url; - - - public function setEventAction($eventAction) - { - $this->eventAction = $eventAction; - } - public function getEventAction() - { - return $this->eventAction; - } - public function setEventCategory($eventCategory) - { - $this->eventCategory = $eventCategory; - } - public function getEventCategory() - { - return $this->eventCategory; - } - public function setEventDatas($eventDatas) - { - $this->eventDatas = $eventDatas; - } - public function getEventDatas() - { - return $this->eventDatas; - } - public function setEventScope($eventScope) - { - $this->eventScope = $eventScope; - } - public function getEventScope() - { - return $this->eventScope; - } - public function setLead(Google_Service_Partners_Lead $lead) - { - $this->lead = $lead; - } - public function getLead() - { - return $this->lead; - } - public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata) - { - $this->requestMetadata = $requestMetadata; - } - public function getRequestMetadata() - { - return $this->requestMetadata; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Partners_LogUserEventResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata'; - protected $responseMetadataDataType = ''; - - - public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata) - { - $this->responseMetadata = $responseMetadata; - } - public function getResponseMetadata() - { - return $this->responseMetadata; - } -} - -class Google_Service_Partners_Money extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currencyCode; - public $nanos; - public $units; - - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - public function getCurrencyCode() - { - return $this->currencyCode; - } - public function setNanos($nanos) - { - $this->nanos = $nanos; - } - public function getNanos() - { - return $this->nanos; - } - public function setUnits($units) - { - $this->units = $units; - } - public function getUnits() - { - return $this->units; - } -} - -class Google_Service_Partners_PublicProfile extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayImageUrl; - public $displayName; - public $id; - public $url; - - - public function setDisplayImageUrl($displayImageUrl) - { - $this->displayImageUrl = $displayImageUrl; - } - public function getDisplayImageUrl() - { - return $this->displayImageUrl; - } - 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 setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Partners_Rank extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Partners_RecaptchaChallenge extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $response; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Partners_RequestMetadata extends Google_Collection -{ - protected $collection_key = 'experimentIds'; - protected $internal_gapi_mappings = array( - ); - public $experimentIds; - public $locale; - public $partnersSessionId; - protected $trafficSourceType = 'Google_Service_Partners_TrafficSource'; - protected $trafficSourceDataType = ''; - protected $userOverridesType = 'Google_Service_Partners_UserOverrides'; - protected $userOverridesDataType = ''; - - - public function setExperimentIds($experimentIds) - { - $this->experimentIds = $experimentIds; - } - public function getExperimentIds() - { - return $this->experimentIds; - } - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setPartnersSessionId($partnersSessionId) - { - $this->partnersSessionId = $partnersSessionId; - } - public function getPartnersSessionId() - { - return $this->partnersSessionId; - } - public function setTrafficSource(Google_Service_Partners_TrafficSource $trafficSource) - { - $this->trafficSource = $trafficSource; - } - public function getTrafficSource() - { - return $this->trafficSource; - } - public function setUserOverrides(Google_Service_Partners_UserOverrides $userOverrides) - { - $this->userOverrides = $userOverrides; - } - public function getUserOverrides() - { - return $this->userOverrides; - } -} - -class Google_Service_Partners_ResponseMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $debugInfoType = 'Google_Service_Partners_DebugInfo'; - protected $debugInfoDataType = ''; - - - public function setDebugInfo(Google_Service_Partners_DebugInfo $debugInfo) - { - $this->debugInfo = $debugInfo; - } - public function getDebugInfo() - { - return $this->debugInfo; - } -} - -class Google_Service_Partners_TrafficSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $trafficSourceId; - public $trafficSubId; - - - public function setTrafficSourceId($trafficSourceId) - { - $this->trafficSourceId = $trafficSourceId; - } - public function getTrafficSourceId() - { - return $this->trafficSourceId; - } - public function setTrafficSubId($trafficSubId) - { - $this->trafficSubId = $trafficSubId; - } - public function getTrafficSubId() - { - return $this->trafficSubId; - } -} - -class Google_Service_Partners_UserOverrides extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $userId; - - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setUserId($userId) - { - $this->userId = $userId; - } - public function getUserId() - { - return $this->userId; - } -} diff --git a/src/Google/Service/People.php b/src/Google/Service/People.php deleted file mode 100644 index 1bd22979a..000000000 --- a/src/Google/Service/People.php +++ /dev/null @@ -1,2004 +0,0 @@ - - * The Google People API service gives access to information about profiles and - * contacts.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_People extends Google_Service -{ - /** Manage your contacts. */ - const CONTACTS = - "https://www.googleapis.com/auth/contacts"; - /** View your contacts. */ - const CONTACTS_READONLY = - "https://www.googleapis.com/auth/contacts.readonly"; - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - /** View your street addresses. */ - const USER_ADDRESSES_READ = - "https://www.googleapis.com/auth/user.addresses.read"; - /** View your complete date of birth. */ - const USER_BIRTHDAY_READ = - "https://www.googleapis.com/auth/user.birthday.read"; - /** View your email addresses. */ - const USER_EMAILS_READ = - "https://www.googleapis.com/auth/user.emails.read"; - /** View your phone numbers. */ - const USER_PHONENUMBERS_READ = - "https://www.googleapis.com/auth/user.phonenumbers.read"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = - "https://www.googleapis.com/auth/userinfo.profile"; - - public $people; - public $people_connections; - - - /** - * Constructs the internal representation of the People service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://people.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'people'; - - $this->people = new Google_Service_People_People_Resource( - $this, - $this->serviceName, - 'people', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/{+resourceName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resourceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'requestMask.includeField' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getBatchGet' => array( - 'path' => 'v1/people:batchGet', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resourceNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMask.includeField' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->people_connections = new Google_Service_People_PeopleConnections_Resource( - $this, - $this->serviceName, - 'connections', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/{+resourceName}/connections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resourceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMask.includeField' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "people" collection of methods. - * Typical usage is: - * - * $peopleService = new Google_Service_People(...); - * $people = $peopleService->people; - * - */ -class Google_Service_People_People_Resource extends Google_Service_Resource -{ - - /** - * Provides information about a person resource for a resource name. Use - * `people/me` to indicate the authenticated user. (people.get) - * - * @param string $resourceName The resource name of the person to provide - * information about. - To get information about the authenticated user, specify - * `people/me`. - To get information about any user, specify the resource name - * that identifies the user, such as the resource names returned by - * [`people.connections.list`](/people/api/rest/v1/people.connections/list). - * @param array $optParams Optional parameters. - * - * @opt_param string requestMask.includeField Comma-separated list of fields to - * be included in the response. Omitting this field will include all fields. - * Each path should start with `person.`: for example, `person.names` or - * `person.photos`. - * @return Google_Service_People_Person - */ - public function get($resourceName, $optParams = array()) - { - $params = array('resourceName' => $resourceName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_People_Person"); - } - - /** - * Provides information about a list of specific people by specifying a list of - * requested resource names. Use `people/me` to indicate the authenticated user. - * (people.getBatchGet) - * - * @param array $optParams Optional parameters. - * - * @opt_param string resourceNames The resource name, such as one returned by - * [`people.connections.list`](/people/api/rest/v1/people.connections/list), of - * one of the people to provide information about. You can include this - * parameter up to 50 times in one request. - * @opt_param string requestMask.includeField Comma-separated list of fields to - * be included in the response. Omitting this field will include all fields. - * Each path should start with `person.`: for example, `person.names` or - * `person.photos`. - * @return Google_Service_People_GetPeopleResponse - */ - public function getBatchGet($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getBatchGet', array($params), "Google_Service_People_GetPeopleResponse"); - } -} - -/** - * The "connections" collection of methods. - * Typical usage is: - * - * $peopleService = new Google_Service_People(...); - * $connections = $peopleService->connections; - * - */ -class Google_Service_People_PeopleConnections_Resource extends Google_Service_Resource -{ - - /** - * Provides a list of the authenticated user's contacts merged with any linked - * profiles. (connections.listPeopleConnections) - * - * @param string $resourceName The resource name to return connections for. Only - * `people/me` is valid. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The token of the page to be returned. - * @opt_param int pageSize The number of connections to include in the response. - * Valid values are between 1 and 500, inclusive. Defaults to 100. - * @opt_param string sortOrder The order in which the connections should be - * sorted. Defaults to `LAST_MODIFIED_ASCENDING`. - * @opt_param string syncToken A sync token, returned by a previous call to - * `people.connections.list`. Only resources changed since the sync token was - * created are returned. - * @opt_param string requestMask.includeField Comma-separated list of fields to - * be included in the response. Omitting this field will include all fields. - * Each path should start with `person.`: for example, `person.names` or - * `person.photos`. - * @return Google_Service_People_ListConnectionsResponse - */ - public function listPeopleConnections($resourceName, $optParams = array()) - { - $params = array('resourceName' => $resourceName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_People_ListConnectionsResponse"); - } -} - - - - -class Google_Service_People_Address extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $city; - public $country; - public $countryCode; - public $extendedAddress; - public $formattedType; - public $formattedValue; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $poBox; - public $postalCode; - public $region; - public $streetAddress; - public $type; - - - public function setCity($city) - { - $this->city = $city; - } - public function getCity() - { - return $this->city; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - public function getCountryCode() - { - return $this->countryCode; - } - public function setExtendedAddress($extendedAddress) - { - $this->extendedAddress = $extendedAddress; - } - public function getExtendedAddress() - { - return $this->extendedAddress; - } - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - public function getFormattedValue() - { - return $this->formattedValue; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setPoBox($poBox) - { - $this->poBox = $poBox; - } - public function getPoBox() - { - return $this->poBox; - } - 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; - } - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } - public function getStreetAddress() - { - return $this->streetAddress; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_People_Biography extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Birthday extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dateType = 'Google_Service_People_Date'; - protected $dateDataType = ''; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $text; - - - public function setDate(Google_Service_People_Date $date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} - -class Google_Service_People_BraggingRights extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_ContactGroupMembership extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contactGroupId; - - - public function setContactGroupId($contactGroupId) - { - $this->contactGroupId = $contactGroupId; - } - public function getContactGroupId() - { - return $this->contactGroupId; - } -} - -class Google_Service_People_CoverPhoto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $default; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $url; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_People_Date extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $day; - public $month; - public $year; - - - public function setDay($day) - { - $this->day = $day; - } - public function getDay() - { - return $this->day; - } - public function setMonth($month) - { - $this->month = $month; - } - public function getMonth() - { - return $this->month; - } - public function setYear($year) - { - $this->year = $year; - } - public function getYear() - { - return $this->year; - } -} - -class Google_Service_People_DomainMembership extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $inViewerDomain; - - - public function setInViewerDomain($inViewerDomain) - { - $this->inViewerDomain = $inViewerDomain; - } - public function getInViewerDomain() - { - return $this->inViewerDomain; - } -} - -class Google_Service_People_EmailAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $type; - public $value; - - - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - 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_People_Event extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dateType = 'Google_Service_People_Date'; - protected $dateDataType = ''; - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $type; - - - public function setDate(Google_Service_People_Date $date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_People_FieldMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $primary; - protected $sourceType = 'Google_Service_People_Source'; - protected $sourceDataType = ''; - public $verified; - - - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setSource(Google_Service_People_Source $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setVerified($verified) - { - $this->verified = $verified; - } - public function getVerified() - { - return $this->verified; - } -} - -class Google_Service_People_Gender extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedValue; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - public function getFormattedValue() - { - return $this->formattedValue; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_GetPeopleResponse extends Google_Collection -{ - protected $collection_key = 'responses'; - protected $internal_gapi_mappings = array( - ); - protected $responsesType = 'Google_Service_People_PersonResponse'; - protected $responsesDataType = 'array'; - - - public function setResponses($responses) - { - $this->responses = $responses; - } - public function getResponses() - { - return $this->responses; - } -} - -class Google_Service_People_ImClient extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedProtocol; - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $protocol; - public $type; - public $username; - - - public function setFormattedProtocol($formattedProtocol) - { - $this->formattedProtocol = $formattedProtocol; - } - public function getFormattedProtocol() - { - return $this->formattedProtocol; - } - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } - public function getProtocol() - { - return $this->protocol; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} - -class Google_Service_People_Interest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_ListConnectionsResponse extends Google_Collection -{ - protected $collection_key = 'connections'; - protected $internal_gapi_mappings = array( - ); - protected $connectionsType = 'Google_Service_People_Person'; - protected $connectionsDataType = 'array'; - public $nextPageToken; - public $nextSyncToken; - - - public function setConnections($connections) - { - $this->connections = $connections; - } - public function getConnections() - { - return $this->connections; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } -} - -class Google_Service_People_Locale extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Membership extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contactGroupMembershipType = 'Google_Service_People_ContactGroupMembership'; - protected $contactGroupMembershipDataType = ''; - protected $domainMembershipType = 'Google_Service_People_DomainMembership'; - protected $domainMembershipDataType = ''; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - - - public function setContactGroupMembership(Google_Service_People_ContactGroupMembership $contactGroupMembership) - { - $this->contactGroupMembership = $contactGroupMembership; - } - public function getContactGroupMembership() - { - return $this->contactGroupMembership; - } - public function setDomainMembership(Google_Service_People_DomainMembership $domainMembership) - { - $this->domainMembership = $domainMembership; - } - public function getDomainMembership() - { - return $this->domainMembership; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } -} - -class Google_Service_People_Name extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $familyName; - public $givenName; - public $honorificPrefix; - public $honorificSuffix; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $middleName; - public $phoneticFamilyName; - public $phoneticGivenName; - public $phoneticHonorificPrefix; - public $phoneticHonorificSuffix; - public $phoneticMiddleName; - - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - 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; - } - public function setHonorificPrefix($honorificPrefix) - { - $this->honorificPrefix = $honorificPrefix; - } - public function getHonorificPrefix() - { - return $this->honorificPrefix; - } - public function setHonorificSuffix($honorificSuffix) - { - $this->honorificSuffix = $honorificSuffix; - } - public function getHonorificSuffix() - { - return $this->honorificSuffix; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setMiddleName($middleName) - { - $this->middleName = $middleName; - } - public function getMiddleName() - { - return $this->middleName; - } - public function setPhoneticFamilyName($phoneticFamilyName) - { - $this->phoneticFamilyName = $phoneticFamilyName; - } - public function getPhoneticFamilyName() - { - return $this->phoneticFamilyName; - } - public function setPhoneticGivenName($phoneticGivenName) - { - $this->phoneticGivenName = $phoneticGivenName; - } - public function getPhoneticGivenName() - { - return $this->phoneticGivenName; - } - public function setPhoneticHonorificPrefix($phoneticHonorificPrefix) - { - $this->phoneticHonorificPrefix = $phoneticHonorificPrefix; - } - public function getPhoneticHonorificPrefix() - { - return $this->phoneticHonorificPrefix; - } - public function setPhoneticHonorificSuffix($phoneticHonorificSuffix) - { - $this->phoneticHonorificSuffix = $phoneticHonorificSuffix; - } - public function getPhoneticHonorificSuffix() - { - return $this->phoneticHonorificSuffix; - } - public function setPhoneticMiddleName($phoneticMiddleName) - { - $this->phoneticMiddleName = $phoneticMiddleName; - } - public function getPhoneticMiddleName() - { - return $this->phoneticMiddleName; - } -} - -class Google_Service_People_Nickname extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $type; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - 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_People_Occupation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Organization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $current; - public $department; - public $domain; - protected $endDateType = 'Google_Service_People_Date'; - protected $endDateDataType = ''; - public $formattedType; - public $jobDescription; - public $location; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $name; - public $phoneticName; - protected $startDateType = 'Google_Service_People_Date'; - protected $startDateDataType = ''; - public $symbol; - public $title; - public $type; - - - public function setCurrent($current) - { - $this->current = $current; - } - public function getCurrent() - { - return $this->current; - } - public function setDepartment($department) - { - $this->department = $department; - } - public function getDepartment() - { - return $this->department; - } - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setEndDate(Google_Service_People_Date $endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setJobDescription($jobDescription) - { - $this->jobDescription = $jobDescription; - } - public function getJobDescription() - { - return $this->jobDescription; - } - public function setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setMetadata(Google_Service_People_FieldMetadata $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 setPhoneticName($phoneticName) - { - $this->phoneticName = $phoneticName; - } - public function getPhoneticName() - { - return $this->phoneticName; - } - public function setStartDate(Google_Service_People_Date $startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - public function setSymbol($symbol) - { - $this->symbol = $symbol; - } - public function getSymbol() - { - return $this->symbol; - } - 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_People_Person extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - protected $addressesType = 'Google_Service_People_Address'; - protected $addressesDataType = 'array'; - public $ageRange; - protected $biographiesType = 'Google_Service_People_Biography'; - protected $biographiesDataType = 'array'; - protected $birthdaysType = 'Google_Service_People_Birthday'; - protected $birthdaysDataType = 'array'; - protected $braggingRightsType = 'Google_Service_People_BraggingRights'; - protected $braggingRightsDataType = 'array'; - protected $coverPhotosType = 'Google_Service_People_CoverPhoto'; - protected $coverPhotosDataType = 'array'; - protected $emailAddressesType = 'Google_Service_People_EmailAddress'; - protected $emailAddressesDataType = 'array'; - public $etag; - protected $eventsType = 'Google_Service_People_Event'; - protected $eventsDataType = 'array'; - protected $gendersType = 'Google_Service_People_Gender'; - protected $gendersDataType = 'array'; - protected $imClientsType = 'Google_Service_People_ImClient'; - protected $imClientsDataType = 'array'; - protected $interestsType = 'Google_Service_People_Interest'; - protected $interestsDataType = 'array'; - protected $localesType = 'Google_Service_People_Locale'; - protected $localesDataType = 'array'; - protected $membershipsType = 'Google_Service_People_Membership'; - protected $membershipsDataType = 'array'; - protected $metadataType = 'Google_Service_People_PersonMetadata'; - protected $metadataDataType = ''; - protected $namesType = 'Google_Service_People_Name'; - protected $namesDataType = 'array'; - protected $nicknamesType = 'Google_Service_People_Nickname'; - protected $nicknamesDataType = 'array'; - protected $occupationsType = 'Google_Service_People_Occupation'; - protected $occupationsDataType = 'array'; - protected $organizationsType = 'Google_Service_People_Organization'; - protected $organizationsDataType = 'array'; - protected $phoneNumbersType = 'Google_Service_People_PhoneNumber'; - protected $phoneNumbersDataType = 'array'; - protected $photosType = 'Google_Service_People_Photo'; - protected $photosDataType = 'array'; - protected $relationsType = 'Google_Service_People_Relation'; - protected $relationsDataType = 'array'; - protected $relationshipInterestsType = 'Google_Service_People_RelationshipInterest'; - protected $relationshipInterestsDataType = 'array'; - protected $relationshipStatusesType = 'Google_Service_People_RelationshipStatus'; - protected $relationshipStatusesDataType = 'array'; - protected $residencesType = 'Google_Service_People_Residence'; - protected $residencesDataType = 'array'; - public $resourceName; - protected $skillsType = 'Google_Service_People_Skill'; - protected $skillsDataType = 'array'; - protected $taglinesType = 'Google_Service_People_Tagline'; - protected $taglinesDataType = 'array'; - protected $urlsType = 'Google_Service_People_Url'; - protected $urlsDataType = 'array'; - - - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } - public function getAddresses() - { - return $this->addresses; - } - public function setAgeRange($ageRange) - { - $this->ageRange = $ageRange; - } - public function getAgeRange() - { - return $this->ageRange; - } - public function setBiographies($biographies) - { - $this->biographies = $biographies; - } - public function getBiographies() - { - return $this->biographies; - } - public function setBirthdays($birthdays) - { - $this->birthdays = $birthdays; - } - public function getBirthdays() - { - return $this->birthdays; - } - public function setBraggingRights($braggingRights) - { - $this->braggingRights = $braggingRights; - } - public function getBraggingRights() - { - return $this->braggingRights; - } - public function setCoverPhotos($coverPhotos) - { - $this->coverPhotos = $coverPhotos; - } - public function getCoverPhotos() - { - return $this->coverPhotos; - } - public function setEmailAddresses($emailAddresses) - { - $this->emailAddresses = $emailAddresses; - } - public function getEmailAddresses() - { - return $this->emailAddresses; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEvents($events) - { - $this->events = $events; - } - public function getEvents() - { - return $this->events; - } - public function setGenders($genders) - { - $this->genders = $genders; - } - public function getGenders() - { - return $this->genders; - } - public function setImClients($imClients) - { - $this->imClients = $imClients; - } - public function getImClients() - { - return $this->imClients; - } - public function setInterests($interests) - { - $this->interests = $interests; - } - public function getInterests() - { - return $this->interests; - } - public function setLocales($locales) - { - $this->locales = $locales; - } - public function getLocales() - { - return $this->locales; - } - public function setMemberships($memberships) - { - $this->memberships = $memberships; - } - public function getMemberships() - { - return $this->memberships; - } - public function setMetadata(Google_Service_People_PersonMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setNames($names) - { - $this->names = $names; - } - public function getNames() - { - return $this->names; - } - public function setNicknames($nicknames) - { - $this->nicknames = $nicknames; - } - public function getNicknames() - { - return $this->nicknames; - } - public function setOccupations($occupations) - { - $this->occupations = $occupations; - } - public function getOccupations() - { - return $this->occupations; - } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } - public function getOrganizations() - { - return $this->organizations; - } - public function setPhoneNumbers($phoneNumbers) - { - $this->phoneNumbers = $phoneNumbers; - } - public function getPhoneNumbers() - { - return $this->phoneNumbers; - } - public function setPhotos($photos) - { - $this->photos = $photos; - } - public function getPhotos() - { - return $this->photos; - } - public function setRelations($relations) - { - $this->relations = $relations; - } - public function getRelations() - { - return $this->relations; - } - public function setRelationshipInterests($relationshipInterests) - { - $this->relationshipInterests = $relationshipInterests; - } - public function getRelationshipInterests() - { - return $this->relationshipInterests; - } - public function setRelationshipStatuses($relationshipStatuses) - { - $this->relationshipStatuses = $relationshipStatuses; - } - public function getRelationshipStatuses() - { - return $this->relationshipStatuses; - } - public function setResidences($residences) - { - $this->residences = $residences; - } - public function getResidences() - { - return $this->residences; - } - public function setResourceName($resourceName) - { - $this->resourceName = $resourceName; - } - public function getResourceName() - { - return $this->resourceName; - } - public function setSkills($skills) - { - $this->skills = $skills; - } - public function getSkills() - { - return $this->skills; - } - public function setTaglines($taglines) - { - $this->taglines = $taglines; - } - public function getTaglines() - { - return $this->taglines; - } - public function setUrls($urls) - { - $this->urls = $urls; - } - public function getUrls() - { - return $this->urls; - } -} - -class Google_Service_People_PersonMetadata extends Google_Collection -{ - protected $collection_key = 'sources'; - protected $internal_gapi_mappings = array( - ); - public $deleted; - public $objectType; - public $previousResourceNames; - protected $sourcesType = 'Google_Service_People_Source'; - protected $sourcesDataType = 'array'; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setPreviousResourceNames($previousResourceNames) - { - $this->previousResourceNames = $previousResourceNames; - } - public function getPreviousResourceNames() - { - return $this->previousResourceNames; - } - public function setSources($sources) - { - $this->sources = $sources; - } - public function getSources() - { - return $this->sources; - } -} - -class Google_Service_People_PersonResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $httpStatusCode; - protected $personType = 'Google_Service_People_Person'; - protected $personDataType = ''; - public $requestedResourceName; - - - public function setHttpStatusCode($httpStatusCode) - { - $this->httpStatusCode = $httpStatusCode; - } - public function getHttpStatusCode() - { - return $this->httpStatusCode; - } - public function setPerson(Google_Service_People_Person $person) - { - $this->person = $person; - } - public function getPerson() - { - return $this->person; - } - public function setRequestedResourceName($requestedResourceName) - { - $this->requestedResourceName = $requestedResourceName; - } - public function getRequestedResourceName() - { - return $this->requestedResourceName; - } -} - -class Google_Service_People_PhoneNumber extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canonicalForm; - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $type; - public $value; - - - public function setCanonicalForm($canonicalForm) - { - $this->canonicalForm = $canonicalForm; - } - public function getCanonicalForm() - { - return $this->canonicalForm; - } - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - 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_People_Photo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $url; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_People_Relation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $person; - public $type; - - - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setPerson($person) - { - $this->person = $person; - } - public function getPerson() - { - return $this->person; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_People_RelationshipInterest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedValue; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - public function getFormattedValue() - { - return $this->formattedValue; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_RelationshipStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedValue; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - public function getFormattedValue() - { - return $this->formattedValue; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Residence extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $current; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setCurrent($current) - { - $this->current = $current; - } - public function getCurrent() - { - return $this->current; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Skill extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Source extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_People_Tagline extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $value; - - - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_People_Url extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formattedType; - protected $metadataType = 'Google_Service_People_FieldMetadata'; - protected $metadataDataType = ''; - public $type; - public $value; - - - public function setFormattedType($formattedType) - { - $this->formattedType = $formattedType; - } - public function getFormattedType() - { - return $this->formattedType; - } - public function setMetadata(Google_Service_People_FieldMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - 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; - } -} diff --git a/src/Google/Service/Playmoviespartner.php b/src/Google/Service/Playmoviespartner.php deleted file mode 100644 index ecbd52a4e..000000000 --- a/src/Google/Service/Playmoviespartner.php +++ /dev/null @@ -1,1676 +0,0 @@ - - * Lets Google Play Movies Partners get the delivery status of their titles.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Playmoviespartner extends Google_Service -{ - /** View the digital assets you publish on Google Play Movies and TV. */ - const PLAYMOVIES_PARTNER_READONLY = - "https://www.googleapis.com/auth/playmovies_partner.readonly"; - - public $accounts_avails; - public $accounts_experienceLocales; - public $accounts_orders; - public $accounts_storeInfos; - public $accounts_storeInfos_country; - - - /** - * Constructs the internal representation of the Playmoviespartner service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://playmoviespartner.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'playmoviespartner'; - - $this->accounts_avails = new Google_Service_Playmoviespartner_AccountsAvails_Resource( - $this, - $this->serviceName, - 'avails', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/accounts/{accountId}/avails', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pphNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'studioNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'territories' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'altId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_experienceLocales = new Google_Service_Playmoviespartner_AccountsExperienceLocales_Resource( - $this, - $this->serviceName, - 'experienceLocales', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/accounts/{accountId}/experienceLocales/{elId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'elId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/accounts/{accountId}/experienceLocales', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pphNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'studioNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'titleLevelEidr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'editLevelEidr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'customId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'altCutId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_orders = new Google_Service_Playmoviespartner_AccountsOrders_Resource( - $this, - $this->serviceName, - 'orders', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/accounts/{accountId}/orders/{orderId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/accounts/{accountId}/orders', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pphNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'studioNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'customId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_storeInfos = new Google_Service_Playmoviespartner_AccountsStoreInfos_Resource( - $this, - $this->serviceName, - 'storeInfos', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/accounts/{accountId}/storeInfos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pphNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'studioNames' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'countries' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_storeInfos_country = new Google_Service_Playmoviespartner_AccountsStoreInfosCountry_Resource( - $this, - $this->serviceName, - 'country', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'videoId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'country' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $accounts = $playmoviespartnerService->accounts; - * - */ -class Google_Service_Playmoviespartner_Accounts_Resource extends Google_Service_Resource -{ -} - -/** - * The "avails" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $avails = $playmoviespartnerService->avails; - * - */ -class Google_Service_Playmoviespartner_AccountsAvails_Resource extends Google_Service_Resource -{ - - /** - * List Avails owned or managed by the partner. See _Authentication and - * Authorization rules_ and _List methods rules_ for more information about this - * method. (avails.listAccountsAvails) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize See _List methods rules_ for info about this field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. - * @opt_param string pphNames See _List methods rules_ for info about this - * field. - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string title Filter Avails that match a case-insensitive substring - * of the default Title name. - * @opt_param string territories Filter Avails that match (case-insensitive) any - * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples: - * "US", "us", "Us"). - * @opt_param string altId Filter Avails that match a case-insensitive, partner- - * specific custom id. - * @opt_param string videoIds Filter Avails that match any of the given - * `video_id`s. - * @return Google_Service_Playmoviespartner_ListAvailsResponse - */ - public function listAccountsAvails($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListAvailsResponse"); - } -} -/** - * The "experienceLocales" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $experienceLocales = $playmoviespartnerService->experienceLocales; - * - */ -class Google_Service_Playmoviespartner_AccountsExperienceLocales_Resource extends Google_Service_Resource -{ - - /** - * Get an ExperienceLocale given its id. See _Authentication and Authorization - * rules_ and _Get methods rules_ for more information about this method. - * (experienceLocales.get) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param string $elId REQUIRED. ExperienceLocale ID, as defined by Google. - * @param array $optParams Optional parameters. - * @return Google_Service_Playmoviespartner_ExperienceLocale - */ - public function get($accountId, $elId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'elId' => $elId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Playmoviespartner_ExperienceLocale"); - } - - /** - * List ExperienceLocales owned or managed by the partner. See _Authentication - * and Authorization rules_ and _List methods rules_ for more information about - * this method. (experienceLocales.listAccountsExperienceLocales) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize See _List methods rules_ for info about this field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. - * @opt_param string pphNames See _List methods rules_ for info about this - * field. - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given - * title-level EIDR. - * @opt_param string editLevelEidr Filter ExperienceLocales that match a given - * edit-level EIDR. - * @opt_param string status Filter ExperienceLocales that match one of the given - * status. - * @opt_param string customId Filter ExperienceLocales that match a case- - * insensitive, partner-specific custom id. - * @opt_param string altCutId Filter ExperienceLocales that match a case- - * insensitive, partner-specific Alternative Cut ID. - * @return Google_Service_Playmoviespartner_ListExperienceLocalesResponse - */ - public function listAccountsExperienceLocales($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListExperienceLocalesResponse"); - } -} -/** - * The "orders" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $orders = $playmoviespartnerService->orders; - * - */ -class Google_Service_Playmoviespartner_AccountsOrders_Resource extends Google_Service_Resource -{ - - /** - * Get an Order given its id. See _Authentication and Authorization rules_ and - * _Get methods rules_ for more information about this method. (orders.get) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param string $orderId REQUIRED. Order ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Playmoviespartner_Order - */ - public function get($accountId, $orderId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'orderId' => $orderId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Playmoviespartner_Order"); - } - - /** - * List Orders owned or managed by the partner. See _Authentication and - * Authorization rules_ and _List methods rules_ for more information about this - * method. (orders.listAccountsOrders) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize See _List methods rules_ for info about this field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. - * @opt_param string pphNames See _List methods rules_ for info about this - * field. - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string name Filter Orders that match a title name (case- - * insensitive, sub-string match). - * @opt_param string status Filter Orders that match one of the given status. - * @opt_param string customId Filter Orders that match a case-insensitive, - * partner-specific custom id. - * @return Google_Service_Playmoviespartner_ListOrdersResponse - */ - public function listAccountsOrders($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListOrdersResponse"); - } -} -/** - * The "storeInfos" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $storeInfos = $playmoviespartnerService->storeInfos; - * - */ -class Google_Service_Playmoviespartner_AccountsStoreInfos_Resource extends Google_Service_Resource -{ - - /** - * List StoreInfos owned or managed by the partner. See _Authentication and - * Authorization rules_ and _List methods rules_ for more information about this - * method. (storeInfos.listAccountsStoreInfos) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize See _List methods rules_ for info about this field. - * @opt_param string pageToken See _List methods rules_ for info about this - * field. - * @opt_param string pphNames See _List methods rules_ for info about this - * field. - * @opt_param string studioNames See _List methods rules_ for info about this - * field. - * @opt_param string videoId Filter StoreInfos that match a given `video_id`. - * NOTE: this field is deprecated and will be removed on V2; `video_ids` should - * be used instead. - * @opt_param string countries Filter StoreInfos that match (case-insensitive) - * any of the given country codes, using the "ISO 3166-1 alpha-2" format - * (examples: "US", "us", "Us"). - * @opt_param string name Filter StoreInfos that match a case-insensitive - * substring of the default name. - * @opt_param string videoIds Filter StoreInfos that match any of the given - * `video_id`s. - * @return Google_Service_Playmoviespartner_ListStoreInfosResponse - */ - public function listAccountsStoreInfos($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListStoreInfosResponse"); - } -} - -/** - * The "country" collection of methods. - * Typical usage is: - * - * $playmoviespartnerService = new Google_Service_Playmoviespartner(...); - * $country = $playmoviespartnerService->country; - * - */ -class Google_Service_Playmoviespartner_AccountsStoreInfosCountry_Resource extends Google_Service_Resource -{ - - /** - * Get a StoreInfo given its video id and country. See _Authentication and - * Authorization rules_ and _Get methods rules_ for more information about this - * method. (country.get) - * - * @param string $accountId REQUIRED. See _General rules_ for more information - * about this field. - * @param string $videoId REQUIRED. Video ID. - * @param string $country REQUIRED. Edit country. - * @param array $optParams Optional parameters. - * @return Google_Service_Playmoviespartner_StoreInfo - */ - public function get($accountId, $videoId, $country, $optParams = array()) - { - $params = array('accountId' => $accountId, 'videoId' => $videoId, 'country' => $country); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Playmoviespartner_StoreInfo"); - } -} - - - - -class Google_Service_Playmoviespartner_Avail extends Google_Collection -{ - protected $collection_key = 'pphNames'; - protected $internal_gapi_mappings = array( - ); - public $altId; - public $captionExemption; - public $captionIncluded; - public $contentId; - public $displayName; - public $encodeId; - public $end; - public $episodeAltId; - public $episodeNumber; - public $episodeTitleInternalAlias; - public $formatProfile; - public $licenseType; - public $pphNames; - public $priceType; - public $priceValue; - public $productId; - public $ratingReason; - public $ratingSystem; - public $ratingValue; - public $releaseDate; - public $seasonAltId; - public $seasonNumber; - public $seasonTitleInternalAlias; - public $seriesAltId; - public $seriesTitleInternalAlias; - public $start; - public $storeLanguage; - public $suppressionLiftDate; - public $territory; - public $titleInternalAlias; - public $videoId; - public $workType; - - - public function setAltId($altId) - { - $this->altId = $altId; - } - public function getAltId() - { - return $this->altId; - } - public function setCaptionExemption($captionExemption) - { - $this->captionExemption = $captionExemption; - } - public function getCaptionExemption() - { - return $this->captionExemption; - } - public function setCaptionIncluded($captionIncluded) - { - $this->captionIncluded = $captionIncluded; - } - public function getCaptionIncluded() - { - return $this->captionIncluded; - } - public function setContentId($contentId) - { - $this->contentId = $contentId; - } - public function getContentId() - { - return $this->contentId; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEncodeId($encodeId) - { - $this->encodeId = $encodeId; - } - public function getEncodeId() - { - return $this->encodeId; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setEpisodeAltId($episodeAltId) - { - $this->episodeAltId = $episodeAltId; - } - public function getEpisodeAltId() - { - return $this->episodeAltId; - } - public function setEpisodeNumber($episodeNumber) - { - $this->episodeNumber = $episodeNumber; - } - public function getEpisodeNumber() - { - return $this->episodeNumber; - } - public function setEpisodeTitleInternalAlias($episodeTitleInternalAlias) - { - $this->episodeTitleInternalAlias = $episodeTitleInternalAlias; - } - public function getEpisodeTitleInternalAlias() - { - return $this->episodeTitleInternalAlias; - } - public function setFormatProfile($formatProfile) - { - $this->formatProfile = $formatProfile; - } - public function getFormatProfile() - { - return $this->formatProfile; - } - public function setLicenseType($licenseType) - { - $this->licenseType = $licenseType; - } - public function getLicenseType() - { - return $this->licenseType; - } - public function setPphNames($pphNames) - { - $this->pphNames = $pphNames; - } - public function getPphNames() - { - return $this->pphNames; - } - public function setPriceType($priceType) - { - $this->priceType = $priceType; - } - public function getPriceType() - { - return $this->priceType; - } - public function setPriceValue($priceValue) - { - $this->priceValue = $priceValue; - } - public function getPriceValue() - { - return $this->priceValue; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setRatingReason($ratingReason) - { - $this->ratingReason = $ratingReason; - } - public function getRatingReason() - { - return $this->ratingReason; - } - public function setRatingSystem($ratingSystem) - { - $this->ratingSystem = $ratingSystem; - } - public function getRatingSystem() - { - return $this->ratingSystem; - } - public function setRatingValue($ratingValue) - { - $this->ratingValue = $ratingValue; - } - public function getRatingValue() - { - return $this->ratingValue; - } - public function setReleaseDate($releaseDate) - { - $this->releaseDate = $releaseDate; - } - public function getReleaseDate() - { - return $this->releaseDate; - } - public function setSeasonAltId($seasonAltId) - { - $this->seasonAltId = $seasonAltId; - } - public function getSeasonAltId() - { - return $this->seasonAltId; - } - public function setSeasonNumber($seasonNumber) - { - $this->seasonNumber = $seasonNumber; - } - public function getSeasonNumber() - { - return $this->seasonNumber; - } - public function setSeasonTitleInternalAlias($seasonTitleInternalAlias) - { - $this->seasonTitleInternalAlias = $seasonTitleInternalAlias; - } - public function getSeasonTitleInternalAlias() - { - return $this->seasonTitleInternalAlias; - } - public function setSeriesAltId($seriesAltId) - { - $this->seriesAltId = $seriesAltId; - } - public function getSeriesAltId() - { - return $this->seriesAltId; - } - public function setSeriesTitleInternalAlias($seriesTitleInternalAlias) - { - $this->seriesTitleInternalAlias = $seriesTitleInternalAlias; - } - public function getSeriesTitleInternalAlias() - { - return $this->seriesTitleInternalAlias; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setStoreLanguage($storeLanguage) - { - $this->storeLanguage = $storeLanguage; - } - public function getStoreLanguage() - { - return $this->storeLanguage; - } - public function setSuppressionLiftDate($suppressionLiftDate) - { - $this->suppressionLiftDate = $suppressionLiftDate; - } - public function getSuppressionLiftDate() - { - return $this->suppressionLiftDate; - } - public function setTerritory($territory) - { - $this->territory = $territory; - } - public function getTerritory() - { - return $this->territory; - } - public function setTitleInternalAlias($titleInternalAlias) - { - $this->titleInternalAlias = $titleInternalAlias; - } - public function getTitleInternalAlias() - { - return $this->titleInternalAlias; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setWorkType($workType) - { - $this->workType = $workType; - } - public function getWorkType() - { - return $this->workType; - } -} - -class Google_Service_Playmoviespartner_ExperienceLocale extends Google_Collection -{ - protected $collection_key = 'pphNames'; - protected $internal_gapi_mappings = array( - ); - public $altCutId; - public $approvedTime; - public $channelId; - public $country; - public $createdTime; - public $customIds; - public $earliestAvailStartTime; - public $editLevelEidr; - public $elId; - public $inventoryId; - public $language; - public $name; - public $normalizedPriority; - public $playableSequenceId; - public $pphNames; - public $presentationId; - public $priority; - public $status; - public $studioName; - public $titleLevelEidr; - public $trailerId; - public $type; - public $videoId; - - - public function setAltCutId($altCutId) - { - $this->altCutId = $altCutId; - } - public function getAltCutId() - { - return $this->altCutId; - } - public function setApprovedTime($approvedTime) - { - $this->approvedTime = $approvedTime; - } - public function getApprovedTime() - { - return $this->approvedTime; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - public function getCreatedTime() - { - return $this->createdTime; - } - public function setCustomIds($customIds) - { - $this->customIds = $customIds; - } - public function getCustomIds() - { - return $this->customIds; - } - public function setEarliestAvailStartTime($earliestAvailStartTime) - { - $this->earliestAvailStartTime = $earliestAvailStartTime; - } - public function getEarliestAvailStartTime() - { - return $this->earliestAvailStartTime; - } - public function setEditLevelEidr($editLevelEidr) - { - $this->editLevelEidr = $editLevelEidr; - } - public function getEditLevelEidr() - { - return $this->editLevelEidr; - } - public function setElId($elId) - { - $this->elId = $elId; - } - public function getElId() - { - return $this->elId; - } - public function setInventoryId($inventoryId) - { - $this->inventoryId = $inventoryId; - } - public function getInventoryId() - { - return $this->inventoryId; - } - 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; - } - public function setNormalizedPriority($normalizedPriority) - { - $this->normalizedPriority = $normalizedPriority; - } - public function getNormalizedPriority() - { - return $this->normalizedPriority; - } - public function setPlayableSequenceId($playableSequenceId) - { - $this->playableSequenceId = $playableSequenceId; - } - public function getPlayableSequenceId() - { - return $this->playableSequenceId; - } - public function setPphNames($pphNames) - { - $this->pphNames = $pphNames; - } - public function getPphNames() - { - return $this->pphNames; - } - public function setPresentationId($presentationId) - { - $this->presentationId = $presentationId; - } - public function getPresentationId() - { - return $this->presentationId; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStudioName($studioName) - { - $this->studioName = $studioName; - } - public function getStudioName() - { - return $this->studioName; - } - public function setTitleLevelEidr($titleLevelEidr) - { - $this->titleLevelEidr = $titleLevelEidr; - } - public function getTitleLevelEidr() - { - return $this->titleLevelEidr; - } - public function setTrailerId($trailerId) - { - $this->trailerId = $trailerId; - } - public function getTrailerId() - { - return $this->trailerId; - } - 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_Playmoviespartner_ListAvailsResponse extends Google_Collection -{ - protected $collection_key = 'avails'; - protected $internal_gapi_mappings = array( - ); - protected $availsType = 'Google_Service_Playmoviespartner_Avail'; - protected $availsDataType = 'array'; - public $nextPageToken; - - - public function setAvails($avails) - { - $this->avails = $avails; - } - public function getAvails() - { - return $this->avails; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Playmoviespartner_ListExperienceLocalesResponse extends Google_Collection -{ - protected $collection_key = 'experienceLocales'; - protected $internal_gapi_mappings = array( - ); - protected $experienceLocalesType = 'Google_Service_Playmoviespartner_ExperienceLocale'; - protected $experienceLocalesDataType = 'array'; - public $nextPageToken; - - - public function setExperienceLocales($experienceLocales) - { - $this->experienceLocales = $experienceLocales; - } - public function getExperienceLocales() - { - return $this->experienceLocales; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Playmoviespartner_ListOrdersResponse extends Google_Collection -{ - protected $collection_key = 'orders'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $ordersType = 'Google_Service_Playmoviespartner_Order'; - protected $ordersDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOrders($orders) - { - $this->orders = $orders; - } - public function getOrders() - { - return $this->orders; - } -} - -class Google_Service_Playmoviespartner_ListStoreInfosResponse extends Google_Collection -{ - protected $collection_key = 'storeInfos'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $storeInfosType = 'Google_Service_Playmoviespartner_StoreInfo'; - protected $storeInfosDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setStoreInfos($storeInfos) - { - $this->storeInfos = $storeInfos; - } - public function getStoreInfos() - { - return $this->storeInfos; - } -} - -class Google_Service_Playmoviespartner_Order extends Google_Collection -{ - protected $collection_key = 'countries'; - protected $internal_gapi_mappings = array( - ); - public $approvedTime; - public $channelId; - public $channelName; - public $countries; - public $customId; - public $earliestAvailStartTime; - public $episodeName; - public $legacyPriority; - public $name; - public $normalizedPriority; - public $orderId; - public $orderedTime; - public $pphName; - public $priority; - public $receivedTime; - public $rejectionNote; - public $seasonName; - public $showName; - public $status; - public $statusDetail; - public $studioName; - public $type; - public $videoId; - - - public function setApprovedTime($approvedTime) - { - $this->approvedTime = $approvedTime; - } - public function getApprovedTime() - { - return $this->approvedTime; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelName($channelName) - { - $this->channelName = $channelName; - } - public function getChannelName() - { - return $this->channelName; - } - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setCustomId($customId) - { - $this->customId = $customId; - } - public function getCustomId() - { - return $this->customId; - } - public function setEarliestAvailStartTime($earliestAvailStartTime) - { - $this->earliestAvailStartTime = $earliestAvailStartTime; - } - public function getEarliestAvailStartTime() - { - return $this->earliestAvailStartTime; - } - public function setEpisodeName($episodeName) - { - $this->episodeName = $episodeName; - } - public function getEpisodeName() - { - return $this->episodeName; - } - public function setLegacyPriority($legacyPriority) - { - $this->legacyPriority = $legacyPriority; - } - public function getLegacyPriority() - { - return $this->legacyPriority; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNormalizedPriority($normalizedPriority) - { - $this->normalizedPriority = $normalizedPriority; - } - public function getNormalizedPriority() - { - return $this->normalizedPriority; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setOrderedTime($orderedTime) - { - $this->orderedTime = $orderedTime; - } - public function getOrderedTime() - { - return $this->orderedTime; - } - public function setPphName($pphName) - { - $this->pphName = $pphName; - } - public function getPphName() - { - return $this->pphName; - } - public function setPriority($priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } - public function setReceivedTime($receivedTime) - { - $this->receivedTime = $receivedTime; - } - public function getReceivedTime() - { - return $this->receivedTime; - } - public function setRejectionNote($rejectionNote) - { - $this->rejectionNote = $rejectionNote; - } - public function getRejectionNote() - { - return $this->rejectionNote; - } - public function setSeasonName($seasonName) - { - $this->seasonName = $seasonName; - } - public function getSeasonName() - { - return $this->seasonName; - } - public function setShowName($showName) - { - $this->showName = $showName; - } - public function getShowName() - { - return $this->showName; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusDetail($statusDetail) - { - $this->statusDetail = $statusDetail; - } - public function getStatusDetail() - { - return $this->statusDetail; - } - public function setStudioName($studioName) - { - $this->studioName = $studioName; - } - public function getStudioName() - { - return $this->studioName; - } - 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_Playmoviespartner_StoreInfo extends Google_Collection -{ - protected $collection_key = 'subtitles'; - protected $internal_gapi_mappings = array( - ); - public $audioTracks; - public $country; - public $editLevelEidr; - public $episodeNumber; - public $hasAudio51; - public $hasEstOffer; - public $hasHdOffer; - public $hasInfoCards; - public $hasSdOffer; - public $hasVodOffer; - public $liveTime; - public $mid; - public $name; - public $pphNames; - public $seasonId; - public $seasonName; - public $seasonNumber; - public $showId; - public $showName; - public $studioName; - public $subtitles; - public $titleLevelEidr; - public $trailerId; - public $type; - public $videoId; - - - public function setAudioTracks($audioTracks) - { - $this->audioTracks = $audioTracks; - } - public function getAudioTracks() - { - return $this->audioTracks; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setEditLevelEidr($editLevelEidr) - { - $this->editLevelEidr = $editLevelEidr; - } - public function getEditLevelEidr() - { - return $this->editLevelEidr; - } - public function setEpisodeNumber($episodeNumber) - { - $this->episodeNumber = $episodeNumber; - } - public function getEpisodeNumber() - { - return $this->episodeNumber; - } - public function setHasAudio51($hasAudio51) - { - $this->hasAudio51 = $hasAudio51; - } - public function getHasAudio51() - { - return $this->hasAudio51; - } - public function setHasEstOffer($hasEstOffer) - { - $this->hasEstOffer = $hasEstOffer; - } - public function getHasEstOffer() - { - return $this->hasEstOffer; - } - public function setHasHdOffer($hasHdOffer) - { - $this->hasHdOffer = $hasHdOffer; - } - public function getHasHdOffer() - { - return $this->hasHdOffer; - } - public function setHasInfoCards($hasInfoCards) - { - $this->hasInfoCards = $hasInfoCards; - } - public function getHasInfoCards() - { - return $this->hasInfoCards; - } - public function setHasSdOffer($hasSdOffer) - { - $this->hasSdOffer = $hasSdOffer; - } - public function getHasSdOffer() - { - return $this->hasSdOffer; - } - public function setHasVodOffer($hasVodOffer) - { - $this->hasVodOffer = $hasVodOffer; - } - public function getHasVodOffer() - { - return $this->hasVodOffer; - } - public function setLiveTime($liveTime) - { - $this->liveTime = $liveTime; - } - public function getLiveTime() - { - return $this->liveTime; - } - public function setMid($mid) - { - $this->mid = $mid; - } - public function getMid() - { - return $this->mid; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPphNames($pphNames) - { - $this->pphNames = $pphNames; - } - public function getPphNames() - { - return $this->pphNames; - } - public function setSeasonId($seasonId) - { - $this->seasonId = $seasonId; - } - public function getSeasonId() - { - return $this->seasonId; - } - public function setSeasonName($seasonName) - { - $this->seasonName = $seasonName; - } - public function getSeasonName() - { - return $this->seasonName; - } - public function setSeasonNumber($seasonNumber) - { - $this->seasonNumber = $seasonNumber; - } - public function getSeasonNumber() - { - return $this->seasonNumber; - } - public function setShowId($showId) - { - $this->showId = $showId; - } - public function getShowId() - { - return $this->showId; - } - public function setShowName($showName) - { - $this->showName = $showName; - } - public function getShowName() - { - return $this->showName; - } - public function setStudioName($studioName) - { - $this->studioName = $studioName; - } - public function getStudioName() - { - return $this->studioName; - } - public function setSubtitles($subtitles) - { - $this->subtitles = $subtitles; - } - public function getSubtitles() - { - return $this->subtitles; - } - public function setTitleLevelEidr($titleLevelEidr) - { - $this->titleLevelEidr = $titleLevelEidr; - } - public function getTitleLevelEidr() - { - return $this->titleLevelEidr; - } - public function setTrailerId($trailerId) - { - $this->trailerId = $trailerId; - } - public function getTrailerId() - { - return $this->trailerId; - } - 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; - } -} diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php deleted file mode 100644 index 5821bd006..000000000 --- a/src/Google/Service/Plus.php +++ /dev/null @@ -1,2896 +0,0 @@ - - * The Google+ API enables developers to build on top of the Google+ platform.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Plus extends Google_Service -{ - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = - "https://www.googleapis.com/auth/plus.me"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = - "https://www.googleapis.com/auth/userinfo.profile"; - - public $activities; - public $comments; - public $people; - - - /** - * Constructs the internal representation of the Plus service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'plus/v1/'; - $this->version = 'v1'; - $this->serviceName = 'plus'; - - $this->activities = new Google_Service_Plus_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Plus_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->people = new Google_Service_Plus_People_Resource( - $this, - $this->serviceName, - 'people', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByActivity' => array( - 'path' => 'activities/{activityId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'search' => array( - 'path' => 'people', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $plusService = new Google_Service_Plus(...); - * $activities = $plusService->activities; - * - */ -class Google_Service_Plus_Activities_Resource extends Google_Service_Resource -{ - - /** - * Get an activity. (activities.get) - * - * @param string $activityId The ID of the activity to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Activity - */ - public function get($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Activity"); - } - - /** - * List all of the activities in the specified collection for a particular user. - * (activities.listActivities) - * - * @param string $userId The ID of the user to get activities for. The special - * value "me" can be used to indicate the authenticated user. - * @param string $collection The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_Plus_ActivityFeed - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_ActivityFeed"); - } - - /** - * Search public activities. (activities.search) - * - * @param string $query Full-text search query string. - * @param array $optParams Optional parameters. - * - * @opt_param string language Specify the preferred language to search with. See - * search language codes for available values. - * @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_Service_Plus_ActivityFeed - */ - public function search($query, $optParams = array()) - { - $params = array('query' => $query); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Plus_ActivityFeed"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $plusService = new Google_Service_Plus(...); - * $comments = $plusService->comments; - * - */ -class Google_Service_Plus_Comments_Resource extends Google_Service_Resource -{ - - /** - * Get a comment. (comments.get) - * - * @param string $commentId The ID of the comment to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Comment"); - } - - /** - * List all of the comments for an activity. (comments.listComments) - * - * @param string $activityId The ID of the activity to get comments for. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_Plus_CommentFeed - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_CommentFeed"); - } -} - -/** - * The "people" collection of methods. - * Typical usage is: - * - * $plusService = new Google_Service_Plus(...); - * $people = $plusService->people; - * - */ -class Google_Service_Plus_People_Resource extends Google_Service_Resource -{ - - /** - * Get a person's profile. If your app uses scope - * https://www.googleapis.com/auth/plus.login, this method is guaranteed to - * return ageRange and language. (people.get) - * - * @param string $userId The ID of the person to get the profile for. The - * special value "me" can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Person - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Person"); - } - - /** - * List all of the people in the specified collection. (people.listPeople) - * - * @param string $userId Get the collection of people for the person identified. - * Use "me" to indicate the authenticated user. - * @param string $collection The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_Plus_PeopleFeed - */ - public function listPeople($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed"); - } - - /** - * List all of the people in the specified collection for a particular activity. - * (people.listByActivity) - * - * @param string $activityId The ID of the activity to get the list of people - * for. - * @param string $collection The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_Plus_PeopleFeed - */ - public function listByActivity($activityId, $collection, $optParams = array()) - { - $params = array('activityId' => $activityId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed"); - } - - /** - * Search all public profiles. (people.search) - * - * @param string $query Specify a query string for full text search of public - * text in all profiles. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_Plus_PeopleFeed - */ - public function search($query, $optParams = array()) - { - $params = array('query' => $query); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Plus_PeopleFeed"); - } -} - - - - -class Google_Service_Plus_Acl extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $description; - protected $itemsType = 'Google_Service_Plus_PlusAclentryResource'; - protected $itemsDataType = 'array'; - public $kind; - - - 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; - } -} - -class Google_Service_Plus_Activity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_Plus_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_Plus_ActivityActor'; - protected $actorDataType = ''; - public $address; - public $annotation; - public $crosspostSource; - public $etag; - public $geocode; - public $id; - public $kind; - protected $locationType = 'Google_Service_Plus_Place'; - protected $locationDataType = ''; - protected $objectType = 'Google_Service_Plus_ActivityObject'; - protected $objectDataType = ''; - public $placeId; - public $placeName; - protected $providerType = 'Google_Service_Plus_ActivityProvider'; - protected $providerDataType = ''; - public $published; - public $radius; - public $title; - public $updated; - public $url; - public $verb; - - - public function setAccess(Google_Service_Plus_Acl $access) - { - $this->access = $access; - } - public function getAccess() - { - return $this->access; - } - public function setActor(Google_Service_Plus_ActivityActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setAnnotation($annotation) - { - $this->annotation = $annotation; - } - public function getAnnotation() - { - return $this->annotation; - } - public function setCrosspostSource($crosspostSource) - { - $this->crosspostSource = $crosspostSource; - } - public function getCrosspostSource() - { - return $this->crosspostSource; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setGeocode($geocode) - { - $this->geocode = $geocode; - } - public function getGeocode() - { - return $this->geocode; - } - 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(Google_Service_Plus_Place $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setObject(Google_Service_Plus_ActivityObject $object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } - public function setPlaceId($placeId) - { - $this->placeId = $placeId; - } - public function getPlaceId() - { - return $this->placeId; - } - public function setPlaceName($placeName) - { - $this->placeName = $placeName; - } - public function getPlaceName() - { - return $this->placeName; - } - public function setProvider(Google_Service_Plus_ActivityProvider $provider) - { - $this->provider = $provider; - } - public function getProvider() - { - return $this->provider; - } - public function setPublished($published) - { - $this->published = $published; - } - public function getPublished() - { - return $this->published; - } - public function setRadius($radius) - { - $this->radius = $radius; - } - public function getRadius() - { - return $this->radius; - } - 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; - } - public function setVerb($verb) - { - $this->verb = $verb; - } - public function getVerb() - { - return $this->verb; - } -} - -class Google_Service_Plus_ActivityActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityActorImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_Plus_ActivityActorName'; - protected $nameDataType = ''; - public $url; - protected $verificationType = 'Google_Service_Plus_ActivityActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_Plus_ActivityActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setName(Google_Service_Plus_ActivityActorName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_Plus_ActivityActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_Plus_ActivityActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_Plus_ActivityActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_ActivityActorName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_ActivityActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_Plus_ActivityFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - protected $itemsType = 'Google_Service_Plus_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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 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; - } - 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_Plus_ActivityObject extends Google_Collection -{ - protected $collection_key = 'attachments'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Plus_ActivityObjectActor'; - protected $actorDataType = ''; - protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments'; - protected $attachmentsDataType = 'array'; - public $content; - public $id; - public $objectType; - public $originalContent; - protected $plusonersType = 'Google_Service_Plus_ActivityObjectPlusoners'; - protected $plusonersDataType = ''; - protected $repliesType = 'Google_Service_Plus_ActivityObjectReplies'; - protected $repliesDataType = ''; - protected $resharersType = 'Google_Service_Plus_ActivityObjectResharers'; - protected $resharersDataType = ''; - public $url; - - - public function setActor(Google_Service_Plus_ActivityObjectActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function getAttachments() - { - return $this->attachments; - } - 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 setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } - public function getOriginalContent() - { - return $this->originalContent; - } - public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } - public function getPlusoners() - { - return $this->plusoners; - } - public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setResharers(Google_Service_Plus_ActivityObjectResharers $resharers) - { - $this->resharers = $resharers; - } - public function getResharers() - { - return $this->resharers; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_ActivityObjectActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage'; - protected $imageDataType = ''; - public $url; - protected $verificationType = 'Google_Service_Plus_ActivityObjectActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_Plus_ActivityObjectActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_Plus_ActivityObjectActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_Plus_ActivityObjectActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_ActivityObjectActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection -{ - protected $collection_key = 'thumbnails'; - protected $internal_gapi_mappings = array( - ); - public $content; - public $displayName; - protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed'; - protected $embedDataType = ''; - protected $fullImageType = 'Google_Service_Plus_ActivityObjectAttachmentsFullImage'; - protected $fullImageDataType = ''; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsImage'; - protected $imageDataType = ''; - public $objectType; - protected $thumbnailsType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnails'; - protected $thumbnailsDataType = 'array'; - public $url; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $embed) - { - $this->embed = $embed; - } - public function getEmbed() - { - return $this->embed; - } - public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullImage $fullImage) - { - $this->fullImage = $fullImage; - } - public function getFullImage() - { - return $this->fullImage; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setThumbnails($thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - public $url; - - - 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_Plus_ActivityObjectAttachmentsFullImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage'; - protected $imageDataType = ''; - public $url; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage $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_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_ActivityObjectReplies extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_ActivityObjectResharers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_ActivityProvider extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_Plus_Comment extends Google_Collection -{ - protected $collection_key = 'inReplyTo'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Plus_CommentActor'; - protected $actorDataType = ''; - public $etag; - public $id; - protected $inReplyToType = 'Google_Service_Plus_CommentInReplyTo'; - protected $inReplyToDataType = 'array'; - public $kind; - protected $objectType = 'Google_Service_Plus_CommentObject'; - protected $objectDataType = ''; - protected $plusonersType = 'Google_Service_Plus_CommentPlusoners'; - protected $plusonersDataType = ''; - public $published; - public $selfLink; - public $updated; - public $verb; - - - public function setActor(Google_Service_Plus_CommentActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - 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 setInReplyTo($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 setObject(Google_Service_Plus_CommentObject $object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } - public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } - public function getPlusoners() - { - return $this->plusoners; - } - 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 setVerb($verb) - { - $this->verb = $verb; - } - public function getVerb() - { - return $this->verb; - } -} - -class Google_Service_Plus_CommentActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_CommentActorImage'; - protected $imageDataType = ''; - public $url; - protected $verificationType = 'Google_Service_Plus_CommentActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_Plus_CommentActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_Plus_CommentActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_Plus_CommentActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_Plus_CommentActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_CommentActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_Plus_CommentFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - protected $itemsType = 'Google_Service_Plus_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $title; - public $updated; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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 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 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_Plus_CommentInReplyTo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $url; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_CommentObject extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - public $objectType; - public $originalContent; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } - public function getOriginalContent() - { - return $this->originalContent; - } -} - -class Google_Service_Plus_CommentPlusoners extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $totalItems; - - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Plus_PeopleFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Plus_Person'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 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 setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_Plus_Person extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - public $aboutMe; - protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange'; - protected $ageRangeDataType = ''; - public $birthday; - public $braggingRights; - public $circledByCount; - protected $coverType = 'Google_Service_Plus_PersonCover'; - protected $coverDataType = ''; - public $currentLocation; - public $displayName; - public $domain; - protected $emailsType = 'Google_Service_Plus_PersonEmails'; - protected $emailsDataType = 'array'; - public $etag; - public $gender; - public $id; - protected $imageType = 'Google_Service_Plus_PersonImage'; - protected $imageDataType = ''; - public $isPlusUser; - public $kind; - public $language; - protected $nameType = 'Google_Service_Plus_PersonName'; - protected $nameDataType = ''; - public $nickname; - public $objectType; - public $occupation; - protected $organizationsType = 'Google_Service_Plus_PersonOrganizations'; - protected $organizationsDataType = 'array'; - protected $placesLivedType = 'Google_Service_Plus_PersonPlacesLived'; - protected $placesLivedDataType = 'array'; - public $plusOneCount; - public $relationshipStatus; - public $skills; - public $tagline; - public $url; - protected $urlsType = 'Google_Service_Plus_PersonUrls'; - protected $urlsDataType = 'array'; - public $verified; - - - public function setAboutMe($aboutMe) - { - $this->aboutMe = $aboutMe; - } - public function getAboutMe() - { - return $this->aboutMe; - } - public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange) - { - $this->ageRange = $ageRange; - } - public function getAgeRange() - { - return $this->ageRange; - } - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - public function getBirthday() - { - return $this->birthday; - } - public function setBraggingRights($braggingRights) - { - $this->braggingRights = $braggingRights; - } - public function getBraggingRights() - { - return $this->braggingRights; - } - public function setCircledByCount($circledByCount) - { - $this->circledByCount = $circledByCount; - } - public function getCircledByCount() - { - return $this->circledByCount; - } - public function setCover(Google_Service_Plus_PersonCover $cover) - { - $this->cover = $cover; - } - public function getCover() - { - return $this->cover; - } - public function setCurrentLocation($currentLocation) - { - $this->currentLocation = $currentLocation; - } - public function getCurrentLocation() - { - return $this->currentLocation; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setEmails($emails) - { - $this->emails = $emails; - } - public function getEmails() - { - return $this->emails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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_Plus_PersonImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setIsPlusUser($isPlusUser) - { - $this->isPlusUser = $isPlusUser; - } - public function getIsPlusUser() - { - return $this->isPlusUser; - } - 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 setName(Google_Service_Plus_PersonName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNickname($nickname) - { - $this->nickname = $nickname; - } - public function getNickname() - { - return $this->nickname; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOccupation($occupation) - { - $this->occupation = $occupation; - } - public function getOccupation() - { - return $this->occupation; - } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } - public function getOrganizations() - { - return $this->organizations; - } - public function setPlacesLived($placesLived) - { - $this->placesLived = $placesLived; - } - public function getPlacesLived() - { - return $this->placesLived; - } - public function setPlusOneCount($plusOneCount) - { - $this->plusOneCount = $plusOneCount; - } - public function getPlusOneCount() - { - return $this->plusOneCount; - } - public function setRelationshipStatus($relationshipStatus) - { - $this->relationshipStatus = $relationshipStatus; - } - public function getRelationshipStatus() - { - return $this->relationshipStatus; - } - public function setSkills($skills) - { - $this->skills = $skills; - } - public function getSkills() - { - return $this->skills; - } - public function setTagline($tagline) - { - $this->tagline = $tagline; - } - public function getTagline() - { - return $this->tagline; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setUrls($urls) - { - $this->urls = $urls; - } - public function getUrls() - { - return $this->urls; - } - public function setVerified($verified) - { - $this->verified = $verified; - } - public function getVerified() - { - return $this->verified; - } -} - -class Google_Service_Plus_PersonAgeRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $max; - public $min; - - - 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_Plus_PersonCover extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo'; - protected $coverInfoDataType = ''; - protected $coverPhotoType = 'Google_Service_Plus_PersonCoverCoverPhoto'; - protected $coverPhotoDataType = ''; - public $layout; - - - public function setCoverInfo(Google_Service_Plus_PersonCoverCoverInfo $coverInfo) - { - $this->coverInfo = $coverInfo; - } - public function getCoverInfo() - { - return $this->coverInfo; - } - public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPhoto) - { - $this->coverPhoto = $coverPhoto; - } - public function getCoverPhoto() - { - return $this->coverPhoto; - } - public function setLayout($layout) - { - $this->layout = $layout; - } - public function getLayout() - { - return $this->layout; - } -} - -class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $leftImageOffset; - public $topImageOffset; - - - public function setLeftImageOffset($leftImageOffset) - { - $this->leftImageOffset = $leftImageOffset; - } - public function getLeftImageOffset() - { - return $this->leftImageOffset; - } - public function setTopImageOffset($topImageOffset) - { - $this->topImageOffset = $topImageOffset; - } - public function getTopImageOffset() - { - return $this->topImageOffset; - } -} - -class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_PersonEmails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_PersonImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isDefault; - public $url; - - - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Plus_PersonName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $familyName; - public $formatted; - public $givenName; - public $honorificPrefix; - public $honorificSuffix; - public $middleName; - - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } - public function getFormatted() - { - return $this->formatted; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } - public function setHonorificPrefix($honorificPrefix) - { - $this->honorificPrefix = $honorificPrefix; - } - public function getHonorificPrefix() - { - return $this->honorificPrefix; - } - public function setHonorificSuffix($honorificSuffix) - { - $this->honorificSuffix = $honorificSuffix; - } - public function getHonorificSuffix() - { - return $this->honorificSuffix; - } - public function setMiddleName($middleName) - { - $this->middleName = $middleName; - } - public function getMiddleName() - { - return $this->middleName; - } -} - -class Google_Service_Plus_PersonOrganizations extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $department; - public $description; - public $endDate; - public $location; - public $name; - public $primary; - public $startDate; - public $title; - public $type; - - - public function setDepartment($department) - { - $this->department = $department; - } - public function getDepartment() - { - return $this->department; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - 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 setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - 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_Plus_PersonPlacesLived extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $primary; - public $value; - - - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Plus_PersonUrls extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $label; - public $type; - public $value; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Plus_Place extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $addressType = 'Google_Service_Plus_PlaceAddress'; - protected $addressDataType = ''; - public $displayName; - public $id; - public $kind; - protected $positionType = 'Google_Service_Plus_PlacePosition'; - protected $positionDataType = ''; - - - public function setAddress(Google_Service_Plus_PlaceAddress $address) - { - $this->address = $address; - } - public function 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 setPosition(Google_Service_Plus_PlacePosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Plus_PlaceAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formatted; - - - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } - public function getFormatted() - { - return $this->formatted; - } -} - -class Google_Service_Plus_PlacePosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Plus_PlusAclentryResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - public $type; - - - 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 setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/src/Google/Service/PlusDomains.php b/src/Google/Service/PlusDomains.php deleted file mode 100644 index 2adef082c..000000000 --- a/src/Google/Service/PlusDomains.php +++ /dev/null @@ -1,3929 +0,0 @@ - - * The Google+ API enables developers to build on top of the Google+ platform.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_PlusDomains extends Google_Service -{ - /** View your circles and the people and pages in them. */ - const PLUS_CIRCLES_READ = - "https://www.googleapis.com/auth/plus.circles.read"; - /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ - const PLUS_CIRCLES_WRITE = - "https://www.googleapis.com/auth/plus.circles.write"; - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = - "https://www.googleapis.com/auth/plus.me"; - /** Send your photos and videos to Google+. */ - const PLUS_MEDIA_UPLOAD = - "https://www.googleapis.com/auth/plus.media.upload"; - /** View your own Google+ profile and profiles visible to you. */ - const PLUS_PROFILES_READ = - "https://www.googleapis.com/auth/plus.profiles.read"; - /** View your Google+ posts, comments, and stream. */ - const PLUS_STREAM_READ = - "https://www.googleapis.com/auth/plus.stream.read"; - /** Manage your Google+ posts, comments, and stream. */ - const PLUS_STREAM_WRITE = - "https://www.googleapis.com/auth/plus.stream.write"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = - "https://www.googleapis.com/auth/userinfo.profile"; - - public $activities; - public $audiences; - public $circles; - public $comments; - public $media; - public $people; - - - /** - * Constructs the internal representation of the PlusDomains service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'plusDomains/v1/'; - $this->version = 'v1'; - $this->serviceName = 'plusDomains'; - - $this->activities = new Google_Service_PlusDomains_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'people/{userId}/activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'preview' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->audiences = new Google_Service_PlusDomains_Audiences_Resource( - $this, - $this->serviceName, - 'audiences', - array( - 'methods' => array( - 'list' => array( - 'path' => 'people/{userId}/audiences', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->circles = new Google_Service_PlusDomains_Circles_Resource( - $this, - $this->serviceName, - 'circles', - array( - 'methods' => array( - 'addPeople' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'email' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'get' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'people/{userId}/circles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/circles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'remove' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removePeople' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'email' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'update' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_PlusDomains_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->media = new Google_Service_PlusDomains_Media_Resource( - $this, - $this->serviceName, - 'media', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'people/{userId}/media/{collection}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->people = new Google_Service_PlusDomains_People_Resource( - $this, - $this->serviceName, - 'people', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByActivity' => array( - 'path' => 'activities/{activityId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByCircle' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'GET', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $activities = $plusDomainsService->activities; - * - */ -class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Resource -{ - - /** - * Get an activity. (activities.get) - * - * @param string $activityId The ID of the activity to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Activity - */ - public function get($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Activity"); - } - - /** - * Create a new activity for the authenticated user. (activities.insert) - * - * @param string $userId The ID of the user to create the activity on behalf of. - * Its value should be "me", to indicate the authenticated user. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool preview If "true", extract the potential media attachments - * for a URL. The response will include all possible attachments for a URL, - * including video, photos, and articles based on the content of the page. - * @return Google_Service_PlusDomains_Activity - */ - public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity"); - } - - /** - * List all of the activities in the specified collection for a particular user. - * (activities.listActivities) - * - * @param string $userId The ID of the user to get activities for. The special - * value "me" can be used to indicate the authenticated user. - * @param string $collection The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_PlusDomains_ActivityFeed - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_ActivityFeed"); - } -} - -/** - * The "audiences" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $audiences = $plusDomainsService->audiences; - * - */ -class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resource -{ - - /** - * List all of the audiences to which a user can share. - * (audiences.listAudiences) - * - * @param string $userId The ID of the user to get audiences for. The special - * value "me" can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of circles to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. - * @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_Service_PlusDomains_AudiencesFeed - */ - public function listAudiences($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_AudiencesFeed"); - } -} - -/** - * The "circles" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $circles = $plusDomainsService->circles; - * - */ -class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resource -{ - - /** - * Add a person to a circle. Google+ limits certain circle operations, including - * the number of circle adds. Learn More. (circles.addPeople) - * - * @param string $circleId The ID of the circle to add the person to. - * @param array $optParams Optional parameters. - * - * @opt_param string email Email of the people to add to the circle. Optional, - * can be repeated. - * @opt_param string userId IDs of the people to add to the circle. Optional, - * can be repeated. - * @return Google_Service_PlusDomains_Circle - */ - public function addPeople($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('addPeople', array($params), "Google_Service_PlusDomains_Circle"); - } - - /** - * Get a circle. (circles.get) - * - * @param string $circleId The ID of the circle to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function get($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Circle"); - } - - /** - * Create a new circle for the authenticated user. (circles.insert) - * - * @param string $userId The ID of the user to create the circle on behalf of. - * The value "me" can be used to indicate the authenticated user. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Circle"); - } - - /** - * List all of the circles for a user. (circles.listCircles) - * - * @param string $userId The ID of the user to get circles for. The special - * value "me" can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of circles to include in the - * response, which is used for paging. For any response, the actual number - * returned might be less than the specified maxResults. - * @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_Service_PlusDomains_CircleFeed - */ - public function listCircles($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_CircleFeed"); - } - - /** - * Update a circle's description. This method supports patch semantics. - * (circles.patch) - * - * @param string $circleId The ID of the circle to update. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function patch($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('circleId' => $circleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_PlusDomains_Circle"); - } - - /** - * Delete a circle. (circles.remove) - * - * @param string $circleId The ID of the circle to delete. - * @param array $optParams Optional parameters. - */ - public function remove($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } - - /** - * Remove a person from a circle. (circles.removePeople) - * - * @param string $circleId The ID of the circle to remove the person from. - * @param array $optParams Optional parameters. - * - * @opt_param string email Email of the people to add to the circle. Optional, - * can be repeated. - * @opt_param string userId IDs of the people to remove from the circle. - * Optional, can be repeated. - */ - public function removePeople($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('removePeople', array($params)); - } - - /** - * Update a circle's description. (circles.update) - * - * @param string $circleId The ID of the circle to update. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function update($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('circleId' => $circleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_PlusDomains_Circle"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $comments = $plusDomainsService->comments; - * - */ -class Google_Service_PlusDomains_Comments_Resource extends Google_Service_Resource -{ - - /** - * Get a comment. (comments.get) - * - * @param string $commentId The ID of the comment to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Comment"); - } - - /** - * Create a new comment in reply to an activity. (comments.insert) - * - * @param string $activityId The ID of the activity to reply to. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Comment - */ - public function insert($activityId, Google_Service_PlusDomains_Comment $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Comment"); - } - - /** - * List all of the comments for an activity. (comments.listComments) - * - * @param string $activityId The ID of the activity to get comments for. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_PlusDomains_CommentFeed - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_CommentFeed"); - } -} - -/** - * The "media" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $media = $plusDomainsService->media; - * - */ -class Google_Service_PlusDomains_Media_Resource extends Google_Service_Resource -{ - - /** - * Add a new media item to an album. The current upload size limitations are - * 36MB for a photo and 1GB for a video. Uploads do not count against quota if - * photos are less than 2048 pixels on their longest side or videos are less - * than 15 minutes in length. (media.insert) - * - * @param string $userId The ID of the user to create the activity on behalf of. - * @param string $collection - * @param Google_Media $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Media - */ - public function insert($userId, $collection, Google_Service_PlusDomains_Media $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Media"); - } -} - -/** - * The "people" collection of methods. - * Typical usage is: - * - * $plusDomainsService = new Google_Service_PlusDomains(...); - * $people = $plusDomainsService->people; - * - */ -class Google_Service_PlusDomains_People_Resource extends Google_Service_Resource -{ - - /** - * Get a person's profile. (people.get) - * - * @param string $userId The ID of the person to get the profile for. The - * special value "me" can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Person - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Person"); - } - - /** - * List all of the people in the specified collection. (people.listPeople) - * - * @param string $userId Get the collection of people for the person identified. - * Use "me" to indicate the authenticated user. - * @param string $collection The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_PlusDomains_PeopleFeed - */ - public function listPeople($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } - - /** - * List all of the people in the specified collection for a particular activity. - * (people.listByActivity) - * - * @param string $activityId The ID of the activity to get the list of people - * for. - * @param string $collection The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_PlusDomains_PeopleFeed - */ - public function listByActivity($activityId, $collection, $optParams = array()) - { - $params = array('activityId' => $activityId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } - - /** - * List all of the people who are members of a circle. (people.listByCircle) - * - * @param string $circleId The ID of the circle to get the members of. - * @param array $optParams Optional parameters. - * - * @opt_param string 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_Service_PlusDomains_PeopleFeed - */ - public function listByCircle($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('listByCircle', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } -} - - - - -class Google_Service_PlusDomains_Acl extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $description; - public $domainRestricted; - protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDomainRestricted($domainRestricted) - { - $this->domainRestricted = $domainRestricted; - } - public function getDomainRestricted() - { - return $this->domainRestricted; - } - 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_PlusDomains_Activity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_PlusDomains_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_PlusDomains_ActivityActor'; - protected $actorDataType = ''; - public $address; - public $annotation; - public $crosspostSource; - public $etag; - public $geocode; - public $id; - public $kind; - protected $locationType = 'Google_Service_PlusDomains_Place'; - protected $locationDataType = ''; - protected $objectType = 'Google_Service_PlusDomains_ActivityObject'; - protected $objectDataType = ''; - public $placeId; - public $placeName; - protected $providerType = 'Google_Service_PlusDomains_ActivityProvider'; - protected $providerDataType = ''; - public $published; - public $radius; - public $title; - public $updated; - public $url; - public $verb; - - - public function setAccess(Google_Service_PlusDomains_Acl $access) - { - $this->access = $access; - } - public function getAccess() - { - return $this->access; - } - public function setActor(Google_Service_PlusDomains_ActivityActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setAnnotation($annotation) - { - $this->annotation = $annotation; - } - public function getAnnotation() - { - return $this->annotation; - } - public function setCrosspostSource($crosspostSource) - { - $this->crosspostSource = $crosspostSource; - } - public function getCrosspostSource() - { - return $this->crosspostSource; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setGeocode($geocode) - { - $this->geocode = $geocode; - } - public function getGeocode() - { - return $this->geocode; - } - 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(Google_Service_PlusDomains_Place $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setObject(Google_Service_PlusDomains_ActivityObject $object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } - public function setPlaceId($placeId) - { - $this->placeId = $placeId; - } - public function getPlaceId() - { - return $this->placeId; - } - public function setPlaceName($placeName) - { - $this->placeName = $placeName; - } - public function getPlaceName() - { - return $this->placeName; - } - public function setProvider(Google_Service_PlusDomains_ActivityProvider $provider) - { - $this->provider = $provider; - } - public function getProvider() - { - return $this->provider; - } - public function setPublished($published) - { - $this->published = $published; - } - public function getPublished() - { - return $this->published; - } - public function setRadius($radius) - { - $this->radius = $radius; - } - public function getRadius() - { - return $this->radius; - } - 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; - } - public function setVerb($verb) - { - $this->verb = $verb; - } - public function getVerb() - { - return $this->verb; - } -} - -class Google_Service_PlusDomains_ActivityActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_PlusDomains_ActivityActorName'; - protected $nameDataType = ''; - public $url; - protected $verificationType = 'Google_Service_PlusDomains_ActivityActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_PlusDomains_ActivityActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setName(Google_Service_PlusDomains_ActivityActorName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_PlusDomains_ActivityActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_PlusDomains_ActivityActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_ActivityActorName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_ActivityActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_PlusDomains_ActivityFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - protected $itemsType = 'Google_Service_PlusDomains_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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 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; - } - 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_PlusDomains_ActivityObject extends Google_Collection -{ - protected $collection_key = 'attachments'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor'; - protected $actorDataType = ''; - protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments'; - protected $attachmentsDataType = 'array'; - public $content; - public $id; - public $objectType; - public $originalContent; - protected $plusonersType = 'Google_Service_PlusDomains_ActivityObjectPlusoners'; - protected $plusonersDataType = ''; - protected $repliesType = 'Google_Service_PlusDomains_ActivityObjectReplies'; - protected $repliesDataType = ''; - protected $resharersType = 'Google_Service_PlusDomains_ActivityObjectResharers'; - protected $resharersDataType = ''; - protected $statusForViewerType = 'Google_Service_PlusDomains_ActivityObjectStatusForViewer'; - protected $statusForViewerDataType = ''; - public $url; - - - public function setActor(Google_Service_PlusDomains_ActivityObjectActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function getAttachments() - { - return $this->attachments; - } - 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 setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } - public function getOriginalContent() - { - return $this->originalContent; - } - public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } - public function getPlusoners() - { - return $this->plusoners; - } - public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers $resharers) - { - $this->resharers = $resharers; - } - public function getResharers() - { - return $this->resharers; - } - public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStatusForViewer $statusForViewer) - { - $this->statusForViewer = $statusForViewer; - } - public function getStatusForViewer() - { - return $this->statusForViewer; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage'; - protected $imageDataType = ''; - public $url; - protected $verificationType = 'Google_Service_PlusDomains_ActivityObjectActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_PlusDomains_ActivityObjectActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_PlusDomains_ActivityObjectActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_ActivityObjectActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection -{ - protected $collection_key = 'thumbnails'; - protected $internal_gapi_mappings = array( - ); - public $content; - public $displayName; - protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed'; - protected $embedDataType = ''; - protected $fullImageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage'; - protected $fullImageDataType = ''; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsImage'; - protected $imageDataType = ''; - public $objectType; - protected $previewThumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails'; - protected $previewThumbnailsDataType = 'array'; - protected $thumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails'; - protected $thumbnailsDataType = 'array'; - public $url; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed $embed) - { - $this->embed = $embed; - } - public function getEmbed() - { - return $this->embed; - } - public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage $fullImage) - { - $this->fullImage = $fullImage; - } - public function getFullImage() - { - return $this->fullImage; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setPreviewThumbnails($previewThumbnails) - { - $this->previewThumbnails = $previewThumbnails; - } - public function getPreviewThumbnails() - { - return $this->previewThumbnails; - } - public function setThumbnails($thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - public $url; - - - 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_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage'; - protected $imageDataType = ''; - public $url; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage $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_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_ActivityObjectReplies extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_ActivityObjectResharers extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_ActivityObjectStatusForViewer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canComment; - public $canPlusone; - public $canUpdate; - public $isPlusOned; - public $resharingDisabled; - - - public function setCanComment($canComment) - { - $this->canComment = $canComment; - } - public function getCanComment() - { - return $this->canComment; - } - public function setCanPlusone($canPlusone) - { - $this->canPlusone = $canPlusone; - } - public function getCanPlusone() - { - return $this->canPlusone; - } - public function setCanUpdate($canUpdate) - { - $this->canUpdate = $canUpdate; - } - public function getCanUpdate() - { - return $this->canUpdate; - } - public function setIsPlusOned($isPlusOned) - { - $this->isPlusOned = $isPlusOned; - } - public function getIsPlusOned() - { - return $this->isPlusOned; - } - public function setResharingDisabled($resharingDisabled) - { - $this->resharingDisabled = $resharingDisabled; - } - public function getResharingDisabled() - { - return $this->resharingDisabled; - } -} - -class Google_Service_PlusDomains_ActivityProvider extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_PlusDomains_Audience extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; - protected $itemDataType = ''; - public $kind; - public $memberCount; - public $visibility; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $item) - { - $this->item = $item; - } - public function getItem() - { - return $this->item; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMemberCount($memberCount) - { - $this->memberCount = $memberCount; - } - public function getMemberCount() - { - return $this->memberCount; - } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Audience'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_PlusDomains_Circle extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $displayName; - public $etag; - public $id; - public $kind; - protected $peopleType = 'Google_Service_PlusDomains_CirclePeople'; - protected $peopleDataType = ''; - public $selfLink; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - 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 setPeople(Google_Service_PlusDomains_CirclePeople $people) - { - $this->people = $people; - } - public function getPeople() - { - return $this->people; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_PlusDomains_CircleFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Circle'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_PlusDomains_CirclePeople extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $totalItems; - - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_PlusDomains_Comment extends Google_Collection -{ - protected $collection_key = 'inReplyTo'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_PlusDomains_CommentActor'; - protected $actorDataType = ''; - public $etag; - public $id; - protected $inReplyToType = 'Google_Service_PlusDomains_CommentInReplyTo'; - protected $inReplyToDataType = 'array'; - public $kind; - protected $objectType = 'Google_Service_PlusDomains_CommentObject'; - protected $objectDataType = ''; - protected $plusonersType = 'Google_Service_PlusDomains_CommentPlusoners'; - protected $plusonersDataType = ''; - public $published; - public $selfLink; - public $updated; - public $verb; - - - public function setActor(Google_Service_PlusDomains_CommentActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - 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 setInReplyTo($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 setObject(Google_Service_PlusDomains_CommentObject $object) - { - $this->object = $object; - } - public function getObject() - { - return $this->object; - } - public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } - public function getPlusoners() - { - return $this->plusoners; - } - 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 setVerb($verb) - { - $this->verb = $verb; - } - public function getVerb() - { - return $this->verb; - } -} - -class Google_Service_PlusDomains_CommentActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfo'; - protected $clientSpecificActorInfoDataType = ''; - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_CommentActorImage'; - protected $imageDataType = ''; - public $url; - protected $verificationType = 'Google_Service_PlusDomains_CommentActorVerification'; - protected $verificationDataType = ''; - - - public function setClientSpecificActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfo $clientSpecificActorInfo) - { - $this->clientSpecificActorInfo = $clientSpecificActorInfo; - } - public function getClientSpecificActorInfo() - { - return $this->clientSpecificActorInfo; - } - 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_PlusDomains_CommentActorImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setVerification(Google_Service_PlusDomains_CommentActorVerification $verification) - { - $this->verification = $verification; - } - public function getVerification() - { - return $this->verification; - } -} - -class Google_Service_PlusDomains_CommentActorClientSpecificActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $youtubeActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo'; - protected $youtubeActorInfoDataType = ''; - - - public function setYoutubeActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo) - { - $this->youtubeActorInfo = $youtubeActorInfo; - } - public function getYoutubeActorInfo() - { - return $this->youtubeActorInfo; - } -} - -class Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } -} - -class Google_Service_PlusDomains_CommentActorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_CommentActorVerification extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adHocVerified; - - - public function setAdHocVerified($adHocVerified) - { - $this->adHocVerified = $adHocVerified; - } - public function getAdHocVerified() - { - return $this->adHocVerified; - } -} - -class Google_Service_PlusDomains_CommentFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - protected $itemsType = 'Google_Service_PlusDomains_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $title; - public $updated; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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 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 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_PlusDomains_CommentInReplyTo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $url; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_CommentObject extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - public $objectType; - public $originalContent; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } - public function getOriginalContent() - { - return $this->originalContent; - } -} - -class Google_Service_PlusDomains_CommentPlusoners extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $totalItems; - - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_PlusDomains_Media extends Google_Collection -{ - protected $collection_key = 'streams'; - protected $internal_gapi_mappings = array( - ); - protected $authorType = 'Google_Service_PlusDomains_MediaAuthor'; - protected $authorDataType = ''; - public $displayName; - public $etag; - protected $exifType = 'Google_Service_PlusDomains_MediaExif'; - protected $exifDataType = ''; - public $height; - public $id; - public $kind; - public $mediaCreatedTime; - public $mediaUrl; - public $published; - public $sizeBytes; - protected $streamsType = 'Google_Service_PlusDomains_Videostream'; - protected $streamsDataType = 'array'; - public $summary; - public $updated; - public $url; - public $videoDuration; - public $videoStatus; - public $width; - - - public function setAuthor(Google_Service_PlusDomains_MediaAuthor $author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setExif(Google_Service_PlusDomains_MediaExif $exif) - { - $this->exif = $exif; - } - public function getExif() - { - return $this->exif; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMediaCreatedTime($mediaCreatedTime) - { - $this->mediaCreatedTime = $mediaCreatedTime; - } - public function getMediaCreatedTime() - { - return $this->mediaCreatedTime; - } - public function setMediaUrl($mediaUrl) - { - $this->mediaUrl = $mediaUrl; - } - public function getMediaUrl() - { - return $this->mediaUrl; - } - public function setPublished($published) - { - $this->published = $published; - } - public function getPublished() - { - return $this->published; - } - public function setSizeBytes($sizeBytes) - { - $this->sizeBytes = $sizeBytes; - } - public function getSizeBytes() - { - return $this->sizeBytes; - } - public function setStreams($streams) - { - $this->streams = $streams; - } - public function getStreams() - { - return $this->streams; - } - public function setSummary($summary) - { - $this->summary = $summary; - } - public function getSummary() - { - return $this->summary; - } - 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; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } - public function setVideoStatus($videoStatus) - { - $this->videoStatus = $videoStatus; - } - public function getVideoStatus() - { - return $this->videoStatus; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} - -class Google_Service_PlusDomains_MediaAuthor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_MediaAuthorImage'; - protected $imageDataType = ''; - 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_PlusDomains_MediaAuthorImage $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_PlusDomains_MediaAuthorImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $url; - - - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_MediaExif extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $time; - - - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_PlusDomains_PeopleFeed extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Person'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 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 setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } -} - -class Google_Service_PlusDomains_Person extends Google_Collection -{ - protected $collection_key = 'urls'; - protected $internal_gapi_mappings = array( - ); - public $aboutMe; - public $birthday; - public $braggingRights; - public $circledByCount; - protected $coverType = 'Google_Service_PlusDomains_PersonCover'; - protected $coverDataType = ''; - public $currentLocation; - public $displayName; - public $domain; - protected $emailsType = 'Google_Service_PlusDomains_PersonEmails'; - protected $emailsDataType = 'array'; - public $etag; - public $gender; - public $id; - protected $imageType = 'Google_Service_PlusDomains_PersonImage'; - protected $imageDataType = ''; - public $isPlusUser; - public $kind; - protected $nameType = 'Google_Service_PlusDomains_PersonName'; - protected $nameDataType = ''; - public $nickname; - public $objectType; - public $occupation; - protected $organizationsType = 'Google_Service_PlusDomains_PersonOrganizations'; - protected $organizationsDataType = 'array'; - protected $placesLivedType = 'Google_Service_PlusDomains_PersonPlacesLived'; - protected $placesLivedDataType = 'array'; - public $plusOneCount; - public $relationshipStatus; - public $skills; - public $tagline; - public $url; - protected $urlsType = 'Google_Service_PlusDomains_PersonUrls'; - protected $urlsDataType = 'array'; - public $verified; - - - public function setAboutMe($aboutMe) - { - $this->aboutMe = $aboutMe; - } - public function getAboutMe() - { - return $this->aboutMe; - } - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - public function getBirthday() - { - return $this->birthday; - } - public function setBraggingRights($braggingRights) - { - $this->braggingRights = $braggingRights; - } - public function getBraggingRights() - { - return $this->braggingRights; - } - public function setCircledByCount($circledByCount) - { - $this->circledByCount = $circledByCount; - } - public function getCircledByCount() - { - return $this->circledByCount; - } - public function setCover(Google_Service_PlusDomains_PersonCover $cover) - { - $this->cover = $cover; - } - public function getCover() - { - return $this->cover; - } - public function setCurrentLocation($currentLocation) - { - $this->currentLocation = $currentLocation; - } - public function getCurrentLocation() - { - return $this->currentLocation; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setEmails($emails) - { - $this->emails = $emails; - } - public function getEmails() - { - return $this->emails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - 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_PlusDomains_PersonImage $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setIsPlusUser($isPlusUser) - { - $this->isPlusUser = $isPlusUser; - } - public function getIsPlusUser() - { - return $this->isPlusUser; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName(Google_Service_PlusDomains_PersonName $name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNickname($nickname) - { - $this->nickname = $nickname; - } - public function getNickname() - { - return $this->nickname; - } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } - public function getObjectType() - { - return $this->objectType; - } - public function setOccupation($occupation) - { - $this->occupation = $occupation; - } - public function getOccupation() - { - return $this->occupation; - } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } - public function getOrganizations() - { - return $this->organizations; - } - public function setPlacesLived($placesLived) - { - $this->placesLived = $placesLived; - } - public function getPlacesLived() - { - return $this->placesLived; - } - public function setPlusOneCount($plusOneCount) - { - $this->plusOneCount = $plusOneCount; - } - public function getPlusOneCount() - { - return $this->plusOneCount; - } - public function setRelationshipStatus($relationshipStatus) - { - $this->relationshipStatus = $relationshipStatus; - } - public function getRelationshipStatus() - { - return $this->relationshipStatus; - } - public function setSkills($skills) - { - $this->skills = $skills; - } - public function getSkills() - { - return $this->skills; - } - public function setTagline($tagline) - { - $this->tagline = $tagline; - } - public function getTagline() - { - return $this->tagline; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setUrls($urls) - { - $this->urls = $urls; - } - public function getUrls() - { - return $this->urls; - } - public function setVerified($verified) - { - $this->verified = $verified; - } - public function getVerified() - { - return $this->verified; - } -} - -class Google_Service_PlusDomains_PersonCover extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $coverInfoType = 'Google_Service_PlusDomains_PersonCoverCoverInfo'; - protected $coverInfoDataType = ''; - protected $coverPhotoType = 'Google_Service_PlusDomains_PersonCoverCoverPhoto'; - protected $coverPhotoDataType = ''; - public $layout; - - - public function setCoverInfo(Google_Service_PlusDomains_PersonCoverCoverInfo $coverInfo) - { - $this->coverInfo = $coverInfo; - } - public function getCoverInfo() - { - return $this->coverInfo; - } - public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $coverPhoto) - { - $this->coverPhoto = $coverPhoto; - } - public function getCoverPhoto() - { - return $this->coverPhoto; - } - public function setLayout($layout) - { - $this->layout = $layout; - } - public function getLayout() - { - return $this->layout; - } -} - -class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $leftImageOffset; - public $topImageOffset; - - - public function setLeftImageOffset($leftImageOffset) - { - $this->leftImageOffset = $leftImageOffset; - } - public function getLeftImageOffset() - { - return $this->leftImageOffset; - } - public function setTopImageOffset($topImageOffset) - { - $this->topImageOffset = $topImageOffset; - } - public function getTopImageOffset() - { - return $this->topImageOffset; - } -} - -class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_PersonEmails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_PersonImage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isDefault; - public $url; - - - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_PlusDomains_PersonName extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $familyName; - public $formatted; - public $givenName; - public $honorificPrefix; - public $honorificSuffix; - public $middleName; - - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - public function getFamilyName() - { - return $this->familyName; - } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } - public function getFormatted() - { - return $this->formatted; - } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - public function getGivenName() - { - return $this->givenName; - } - public function setHonorificPrefix($honorificPrefix) - { - $this->honorificPrefix = $honorificPrefix; - } - public function getHonorificPrefix() - { - return $this->honorificPrefix; - } - public function setHonorificSuffix($honorificSuffix) - { - $this->honorificSuffix = $honorificSuffix; - } - public function getHonorificSuffix() - { - return $this->honorificSuffix; - } - public function setMiddleName($middleName) - { - $this->middleName = $middleName; - } - public function getMiddleName() - { - return $this->middleName; - } -} - -class Google_Service_PlusDomains_PersonOrganizations extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $department; - public $description; - public $endDate; - public $location; - public $name; - public $primary; - public $startDate; - public $title; - public $type; - - - public function setDepartment($department) - { - $this->department = $department; - } - public function getDepartment() - { - return $this->department; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - 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 setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } - 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_PlusDomains_PersonPlacesLived extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $primary; - public $value; - - - public function setPrimary($primary) - { - $this->primary = $primary; - } - public function getPrimary() - { - return $this->primary; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_PlusDomains_PersonUrls extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $label; - public $type; - public $value; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_PlusDomains_Place extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $addressType = 'Google_Service_PlusDomains_PlaceAddress'; - protected $addressDataType = ''; - public $displayName; - public $id; - public $kind; - protected $positionType = 'Google_Service_PlusDomains_PlacePosition'; - protected $positionDataType = ''; - - - public function setAddress(Google_Service_PlusDomains_PlaceAddress $address) - { - $this->address = $address; - } - public function 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 setPosition(Google_Service_PlusDomains_PlacePosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_PlusDomains_PlaceAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $formatted; - - - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } - public function getFormatted() - { - return $this->formatted; - } -} - -class Google_Service_PlusDomains_PlacePosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_PlusDomains_PlusDomainsAclentryResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $displayName; - public $id; - public $type; - - - 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 setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_PlusDomains_Videostream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $type; - public $url; - public $width; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php deleted file mode 100644 index 829bce0c8..000000000 --- a/src/Google/Service/Prediction.php +++ /dev/null @@ -1,1208 +0,0 @@ - - * 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 -{ - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = - "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = - "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - /** Manage your data in the Google Prediction API. */ - const PREDICTION = - "https://www.googleapis.com/auth/prediction"; - - public $hostedmodels; - public $trainedmodels; - - - /** - * Constructs the internal representation of the Prediction service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'prediction/v1.6/projects/'; - $this->version = 'v1.6'; - $this->serviceName = 'prediction'; - - $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource( - $this, - $this->serviceName, - 'hostedmodels', - array( - 'methods' => array( - 'predict' => array( - 'path' => '{project}/hostedmodels/{hostedModelName}/predict', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hostedModelName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource( - $this, - $this->serviceName, - 'trainedmodels', - array( - 'methods' => array( - 'analyze' => array( - 'path' => '{project}/trainedmodels/{id}/analyze', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/trainedmodels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/trainedmodels/list', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'predict' => array( - 'path' => '{project}/trainedmodels/{id}/predict', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "hostedmodels" collection of methods. - * Typical usage is: - * - * $predictionService = new Google_Service_Prediction(...); - * $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 $project The project associated with the model. - * @param string $hostedModelName The name of a hosted model. - * @param Google_Input $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Output - */ - public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) - { - $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('predict', array($params), "Google_Service_Prediction_Output"); - } -} - -/** - * The "trainedmodels" collection of methods. - * Typical usage is: - * - * $predictionService = new Google_Service_Prediction(...); - * $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 $project The project associated with the model. - * @param string $id The unique name for the predictive model. - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Analyze - */ - public function analyze($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze"); - } - - /** - * Delete a trained model. (trainedmodels.delete) - * - * @param string $project The project associated with the model. - * @param string $id The unique name for the predictive model. - * @param array $optParams Optional parameters. - */ - public function delete($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Check training status of your model. (trainedmodels.get) - * - * @param string $project The project associated with the model. - * @param string $id The unique name for the predictive model. - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function get($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Prediction_Insert2"); - } - - /** - * Train a Prediction API model. (trainedmodels.insert) - * - * @param string $project The project associated with the model. - * @param Google_Insert $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Prediction_Insert2"); - } - - /** - * List available models. (trainedmodels.listTrainedmodels) - * - * @param string $project The project associated with the model. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of results to return. - * @opt_param string pageToken Pagination token. - * @return Google_Service_Prediction_PredictionList - */ - public function listTrainedmodels($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Prediction_PredictionList"); - } - - /** - * Submit model id and request a prediction. (trainedmodels.predict) - * - * @param string $project The project associated with the model. - * @param string $id The unique name for the predictive model. - * @param Google_Input $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Output - */ - public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('predict', array($params), "Google_Service_Prediction_Output"); - } - - /** - * Add new data to a trained model. (trainedmodels.update) - * - * @param string $project The project associated with the model. - * @param string $id The unique name for the predictive model. - * @param Google_Update $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Prediction_Insert2"); - } -} - - - - -class Google_Service_Prediction_Analyze extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; - protected $dataDescriptionDataType = ''; - public $errors; - public $id; - public $kind; - protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription'; - protected $modelDescriptionDataType = ''; - public $selfLink; - - - public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription) - { - $this->dataDescription = $dataDescription; - } - 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 $collection_key = 'features'; - protected $internal_gapi_mappings = array( - ); - protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; - protected $featuresDataType = 'array'; - protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; - protected $outputFeatureDataType = ''; - - - public function setFeatures($features) - { - $this->features = $features; - } - public function 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 $internal_gapi_mappings = array( - ); - protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical'; - protected $categoricalDataType = ''; - public $index; - protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric'; - protected $numericDataType = ''; - protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText'; - protected $textDataType = ''; - - - public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical) - { - $this->categorical = $categorical; - } - public function 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 -{ - protected $collection_key = 'values'; - protected $internal_gapi_mappings = array( - ); - public $count; - protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; - protected $valuesDataType = 'array'; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $count; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } -} - -class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection -{ - protected $collection_key = 'text'; - protected $internal_gapi_mappings = array( - ); - protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; - protected $numericDataType = ''; - protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; - protected $textDataType = 'array'; - - - public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) - { - $this->numeric = $numeric; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $confusionMatrix; - public $confusionMatrixRowTotals; - protected $modelinfoType = 'Google_Service_Prediction_Insert2'; - protected $modelinfoDataType = ''; - - - 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_Insert2 $modelinfo) - { - $this->modelinfo = $modelinfo; - } - public function getModelinfo() - { - return $this->modelinfo; - } -} - -class Google_Service_Prediction_Input extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $inputType = 'Google_Service_Prediction_InputInput'; - protected $inputDataType = ''; - - - 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 -{ - protected $collection_key = 'csvInstance'; - protected $internal_gapi_mappings = array( - ); - public $csvInstance; - - - public function setCsvInstance($csvInstance) - { - $this->csvInstance = $csvInstance; - } - public function getCsvInstance() - { - return $this->csvInstance; - } -} - -class Google_Service_Prediction_Insert extends Google_Collection -{ - protected $collection_key = 'utility'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $modelType; - public $sourceModel; - public $storageDataLocation; - public $storagePMMLLocation; - public $storagePMMLModelLocation; - protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances'; - protected $trainingInstancesDataType = 'array'; - public $utility; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setModelType($modelType) - { - $this->modelType = $modelType; - } - public function getModelType() - { - return $this->modelType; - } - public function setSourceModel($sourceModel) - { - $this->sourceModel = $sourceModel; - } - public function getSourceModel() - { - return $this->sourceModel; - } - 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 setTrainingInstances($trainingInstances) - { - $this->trainingInstances = $trainingInstances; - } - public function getTrainingInstances() - { - return $this->trainingInstances; - } - public function setUtility($utility) - { - $this->utility = $utility; - } - public function getUtility() - { - return $this->utility; - } -} - -class Google_Service_Prediction_Insert2 extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $created; - public $id; - public $kind; - protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo'; - protected $modelInfoDataType = ''; - public $modelType; - public $selfLink; - public $storageDataLocation; - public $storagePMMLLocation; - public $storagePMMLModelLocation; - public $trainingComplete; - public $trainingStatus; - - - public function setCreated($created) - { - $this->created = $created; - } - public function 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_Insert2ModelInfo $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 setTrainingStatus($trainingStatus) - { - $this->trainingStatus = $trainingStatus; - } - public function getTrainingStatus() - { - return $this->trainingStatus; - } -} - -class Google_Service_Prediction_Insert2ModelInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_InsertTrainingInstances extends Google_Collection -{ - protected $collection_key = 'csvInstance'; - protected $internal_gapi_mappings = array( - ); - 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_Output extends Google_Collection -{ - protected $collection_key = 'outputMulti'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $outputLabel; - protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti'; - protected $outputMultiDataType = 'array'; - public $outputValue; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Prediction_Insert2'; - protected $itemsDataType = 'array'; - 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_Update extends Google_Collection -{ - protected $collection_key = 'csvInstance'; - protected $internal_gapi_mappings = array( - ); - 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; - } -} diff --git a/src/Google/Service/Proximitybeacon.php b/src/Google/Service/Proximitybeacon.php deleted file mode 100644 index a0f14e3a5..000000000 --- a/src/Google/Service/Proximitybeacon.php +++ /dev/null @@ -1,1204 +0,0 @@ - - * This API provides services to register, manage, index, and search beacons.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Proximitybeacon extends Google_Service -{ - - - public $beaconinfo; - public $beacons; - public $beacons_attachments; - public $beacons_diagnostics; - public $namespaces; - - - /** - * Constructs the internal representation of the Proximitybeacon service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://proximitybeacon.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1beta1'; - $this->serviceName = 'proximitybeacon'; - - $this->beaconinfo = new Google_Service_Proximitybeacon_Beaconinfo_Resource( - $this, - $this->serviceName, - 'beaconinfo', - array( - 'methods' => array( - 'getforobserved' => array( - 'path' => 'v1beta1/beaconinfo:getforobserved', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->beacons = new Google_Service_Proximitybeacon_Beacons_Resource( - $this, - $this->serviceName, - 'beacons', - array( - 'methods' => array( - 'activate' => array( - 'path' => 'v1beta1/{+beaconName}:activate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deactivate' => array( - 'path' => 'v1beta1/{+beaconName}:deactivate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'decommission' => array( - 'path' => 'v1beta1/{+beaconName}:decommission', - 'httpMethod' => 'POST', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1beta1/{+beaconName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta1/beacons', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'register' => array( - 'path' => 'v1beta1/beacons:register', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'v1beta1/{+beaconName}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->beacons_attachments = new Google_Service_Proximitybeacon_BeaconsAttachments_Resource( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'v1beta1/{+beaconName}/attachments:batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'namespacedType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'create' => array( - 'path' => 'v1beta1/{+beaconName}/attachments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1beta1/{+attachmentName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'attachmentName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1beta1/{+beaconName}/attachments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'namespacedType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->beacons_diagnostics = new Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource( - $this, - $this->serviceName, - 'diagnostics', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1beta1/{+beaconName}/diagnostics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'beaconName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alertFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->namespaces = new Google_Service_Proximitybeacon_Namespaces_Resource( - $this, - $this->serviceName, - 'namespaces', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1beta1/namespaces', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "beaconinfo" collection of methods. - * Typical usage is: - * - * $proximitybeaconService = new Google_Service_Proximitybeacon(...); - * $beaconinfo = $proximitybeaconService->beaconinfo; - * - */ -class Google_Service_Proximitybeacon_Beaconinfo_Resource extends Google_Service_Resource -{ - - /** - * Given one or more beacon observations, returns any beacon information and - * attachments accessible to your application. (beaconinfo.getforobserved) - * - * @param Google_GetInfoForObservedBeaconsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse - */ - public function getforobserved(Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getforobserved', array($params), "Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse"); - } -} - -/** - * The "beacons" collection of methods. - * Typical usage is: - * - * $proximitybeaconService = new Google_Service_Proximitybeacon(...); - * $beacons = $proximitybeaconService->beacons; - * - */ -class Google_Service_Proximitybeacon_Beacons_Resource extends Google_Service_Resource -{ - - /** - * (Re)activates a beacon. A beacon that is active will return information and - * attachment data when queried via `beaconinfo.getforobserved`. Calling this - * method on an already active beacon will do nothing (but will return a - * successful response code). (beacons.activate) - * - * @param string $beaconName The beacon to activate. Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Empty - */ - public function activate($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('activate', array($params), "Google_Service_Proximitybeacon_Empty"); - } - - /** - * Deactivates a beacon. Once deactivated, the API will not return information - * nor attachment data for the beacon when queried via - * `beaconinfo.getforobserved`. Calling this method on an already inactive - * beacon will do nothing (but will return a successful response code). - * (beacons.deactivate) - * - * @param string $beaconName The beacon name of this beacon. - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Empty - */ - public function deactivate($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('deactivate', array($params), "Google_Service_Proximitybeacon_Empty"); - } - - /** - * Decommissions the specified beacon in the service. This beacon will no longer - * be returned from `beaconinfo.getforobserved`. This operation is permanent -- - * you will not be able to re-register a beacon with this ID again. - * (beacons.decommission) - * - * @param string $beaconName Beacon that should be decommissioned. Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Empty - */ - public function decommission($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('decommission', array($params), "Google_Service_Proximitybeacon_Empty"); - } - - /** - * Returns detailed information about the specified beacon. (beacons.get) - * - * @param string $beaconName Beacon that is requested. - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Beacon - */ - public function get($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Proximitybeacon_Beacon"); - } - - /** - * Searches the beacon registry for beacons that match the given search - * criteria. Only those beacons that the client has permission to list will be - * returned. (beacons.listBeacons) - * - * @param array $optParams Optional parameters. - * - * @opt_param string q Filter query string that supports the following field - * filters: * `description:""` For example: `description:"Room 3"` Returns - * beacons whose description matches tokens in the string "Room 3" (not - * necessarily that exact string). The string must be double-quoted. * `status:` - * For example: `status:active` Returns beacons whose status matches the given - * value. Values must be one of the Beacon.Status enum values (case - * insensitive). Accepts multiple filters which will be combined with OR logic. - * * `stability:` For example: `stability:mobile` Returns beacons whose expected - * stability matches the given value. Values must be one of the Beacon.Stability - * enum values (case insensitive). Accepts multiple filters which will be - * combined with OR logic. * `place_id:""` For example: - * `place_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="` Returns beacons explicitly - * registered at the given place, expressed as a Place ID obtained from [Google - * Places API](/places/place-id). Does not match places inside the given place. - * Does not consider the beacon's actual location (which may be different from - * its registered place). Accepts multiple filters that will be combined with OR - * logic. The place ID must be double-quoted. * `registration_time[|=]` For - * example: `registration_time>=1433116800` Returns beacons whose registration - * time matches the given filter. Supports the operators: , =. Timestamp must be - * expressed as an integer number of seconds since midnight January 1, 1970 UTC. - * Accepts at most two filters that will be combined with AND logic, to support - * "between" semantics. If more than two are supplied, the latter ones are - * ignored. * `lat: lng: radius:` For example: `lat:51.1232343 lng:-1.093852 - * radius:1000` Returns beacons whose registered location is within the given - * circle. When any of these fields are given, all are required. Latitude and - * longitude must be decimal degrees between -90.0 and 90.0 and between -180.0 - * and 180.0 respectively. Radius must be an integer number of meters less than - * 1,000,000 (1000 km). * `property:"="` For example: `property:"battery- - * type=CR2032"` Returns beacons which have a property of the given name and - * value. Supports multiple filters which will be combined with OR logic. The - * entire name=value string must be double-quoted as one string. * - * `attachment_type:""` For example: `attachment_type:"my-namespace/my-type"` - * Returns beacons having at least one attachment of the given namespaced type. - * Supports "any within this namespace" via the partial wildcard syntax: "my- - * namespace". Supports multiple filters which will be combined with OR logic. - * The string must be double-quoted. Multiple filters on the same field are - * combined with OR logic (except registration_time which is combined with AND - * logic). Multiple filters on different fields are combined with AND logic. - * Filters should be separated by spaces. As with any HTTP query string - * parameter, the whole filter expression must be URL-encoded. Example REST - * request: `GET - * /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000` - * @opt_param string pageToken A pagination token obtained from a previous - * request to list beacons. - * @opt_param int pageSize The maximum number of records to return for this - * request, up to a server-defined upper limit. - * @return Google_Service_Proximitybeacon_ListBeaconsResponse - */ - public function listBeacons($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconsResponse"); - } - - /** - * Registers a previously unregistered beacon given its `advertisedId`. These - * IDs are unique within the system. An ID can be registered only once. - * (beacons.register) - * - * @param Google_Beacon $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Beacon - */ - public function register(Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('register', array($params), "Google_Service_Proximitybeacon_Beacon"); - } - - /** - * Updates the information about the specified beacon. **Any field that you do - * not populate in the submitted beacon will be permanently erased**, so you - * should follow the "read, modify, write" pattern to avoid inadvertently - * destroying data. Changes to the beacon status via this method will be - * silently ignored. To update beacon status, use the separate methods on this - * API for (de)activation and decommissioning. (beacons.update) - * - * @param string $beaconName Resource name of this beacon. A beacon name has the - * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - * the beacon and N is a code for the beacon's type. Possible values are `3` for - * Eddystone, `1` for iBeacon, or `5` for AltBeacon. This field must be left - * empty when registering. After reading a beacon, clients can use the name for - * future operations. - * @param Google_Beacon $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Beacon - */ - public function update($beaconName, Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array()) - { - $params = array('beaconName' => $beaconName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Proximitybeacon_Beacon"); - } -} - -/** - * The "attachments" collection of methods. - * Typical usage is: - * - * $proximitybeaconService = new Google_Service_Proximitybeacon(...); - * $attachments = $proximitybeaconService->attachments; - * - */ -class Google_Service_Proximitybeacon_BeaconsAttachments_Resource extends Google_Service_Resource -{ - - /** - * Deletes multiple attachments on a given beacon. This operation is permanent - * and cannot be undone. You can optionally specify `namespacedType` to choose - * which attachments should be deleted. If you do not specify `namespacedType`, - * all your attachments on the given beacon will be deleted. You also may - * explicitly specify `*` to delete all. (attachments.batchDelete) - * - * @param string $beaconName The beacon whose attachments are to be deleted. - * Required. - * @param array $optParams Optional parameters. - * - * @opt_param string namespacedType Specifies the namespace and type of - * attachments to delete in `namespace/type` format. Accepts `*` to specify "all - * types in all namespaces". Optional. - * @return Google_Service_Proximitybeacon_DeleteAttachmentsResponse - */ - public function batchDelete($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_Proximitybeacon_DeleteAttachmentsResponse"); - } - - /** - * Associates the given data with the specified beacon. Attachment data must - * contain two parts: - A namespaced type. - The actual attachment data itself. - * The namespaced type consists of two parts, the namespace and the type. The - * namespace must be one of the values returned by the `namespaces` endpoint, - * while the type can be a string of any characters except for the forward slash - * (`/`) up to 100 characters in length. Attachment data can be up to 1024 bytes - * long. (attachments.create) - * - * @param string $beaconName The beacon on which the attachment should be - * created. Required. - * @param Google_BeaconAttachment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_BeaconAttachment - */ - public function create($beaconName, Google_Service_Proximitybeacon_BeaconAttachment $postBody, $optParams = array()) - { - $params = array('beaconName' => $beaconName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Proximitybeacon_BeaconAttachment"); - } - - /** - * Deletes the specified attachment for the given beacon. Each attachment has a - * unique attachment name (`attachmentName`) which is returned when you fetch - * the attachment data via this API. You specify this with the delete request to - * control which attachment is removed. This operation cannot be undone. - * (attachments.delete) - * - * @param string $attachmentName The attachment name (`attachmentName`) of the - * attachment to remove. For example: - * `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738` Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_Empty - */ - public function delete($attachmentName, $optParams = array()) - { - $params = array('attachmentName' => $attachmentName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Proximitybeacon_Empty"); - } - - /** - * Returns the attachments for the specified beacon that match the specified - * namespaced-type pattern. To control which namespaced types are returned, you - * add the `namespacedType` query parameter to the request. You must either use - * `*`, to return all attachments, or the namespace must be one of the ones - * returned from the `namespaces` endpoint. (attachments.listBeaconsAttachments) - * - * @param string $beaconName The beacon whose attachments are to be fetched. - * Required. - * @param array $optParams Optional parameters. - * - * @opt_param string namespacedType Specifies the namespace and type of - * attachment to include in response in namespace/type format. Accepts `*` to - * specify "all types in all namespaces". - * @return Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse - */ - public function listBeaconsAttachments($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse"); - } -} -/** - * The "diagnostics" collection of methods. - * Typical usage is: - * - * $proximitybeaconService = new Google_Service_Proximitybeacon(...); - * $diagnostics = $proximitybeaconService->diagnostics; - * - */ -class Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource extends Google_Service_Resource -{ - - /** - * List the diagnostics for a single beacon. You can also list diagnostics for - * all the beacons owned by your Google Developers Console project by using the - * beacon name `beacons/-`. (diagnostics.listBeaconsDiagnostics) - * - * @param string $beaconName Beacon that the diagnostics are for. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Specifies the maximum number of results to return. - * Defaults to 10. Maximum 1000. Optional. - * @opt_param string pageToken Requests results that occur after the - * `page_token`, obtained from the response to a previous request. Optional. - * @opt_param string alertFilter Requests only beacons that have the given - * alert. For example, to find beacons that have low batteries use - * `alert_filter=LOW_BATTERY`. - * @return Google_Service_Proximitybeacon_ListDiagnosticsResponse - */ - public function listBeaconsDiagnostics($beaconName, $optParams = array()) - { - $params = array('beaconName' => $beaconName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListDiagnosticsResponse"); - } -} - -/** - * The "namespaces" collection of methods. - * Typical usage is: - * - * $proximitybeaconService = new Google_Service_Proximitybeacon(...); - * $namespaces = $proximitybeaconService->namespaces; - * - */ -class Google_Service_Proximitybeacon_Namespaces_Resource extends Google_Service_Resource -{ - - /** - * Lists all attachment namespaces owned by your Google Developers Console - * project. Attachment data associated with a beacon must include a namespaced - * type, and the namespace must be owned by your project. - * (namespaces.listNamespaces) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Proximitybeacon_ListNamespacesResponse - */ - public function listNamespaces($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListNamespacesResponse"); - } -} - - - - -class Google_Service_Proximitybeacon_AdvertisedId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Proximitybeacon_AttachmentInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $data; - public $namespacedType; - - - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setNamespacedType($namespacedType) - { - $this->namespacedType = $namespacedType; - } - public function getNamespacedType() - { - return $this->namespacedType; - } -} - -class Google_Service_Proximitybeacon_Beacon extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; - protected $advertisedIdDataType = ''; - public $beaconName; - public $description; - public $expectedStability; - protected $indoorLevelType = 'Google_Service_Proximitybeacon_IndoorLevel'; - protected $indoorLevelDataType = ''; - protected $latLngType = 'Google_Service_Proximitybeacon_LatLng'; - protected $latLngDataType = ''; - public $placeId; - public $properties; - public $status; - - - public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) - { - $this->advertisedId = $advertisedId; - } - public function getAdvertisedId() - { - return $this->advertisedId; - } - public function setBeaconName($beaconName) - { - $this->beaconName = $beaconName; - } - public function getBeaconName() - { - return $this->beaconName; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExpectedStability($expectedStability) - { - $this->expectedStability = $expectedStability; - } - public function getExpectedStability() - { - return $this->expectedStability; - } - public function setIndoorLevel(Google_Service_Proximitybeacon_IndoorLevel $indoorLevel) - { - $this->indoorLevel = $indoorLevel; - } - public function getIndoorLevel() - { - return $this->indoorLevel; - } - public function setLatLng(Google_Service_Proximitybeacon_LatLng $latLng) - { - $this->latLng = $latLng; - } - public function getLatLng() - { - return $this->latLng; - } - public function setPlaceId($placeId) - { - $this->placeId = $placeId; - } - public function getPlaceId() - { - return $this->placeId; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Proximitybeacon_BeaconAttachment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $attachmentName; - public $data; - public $namespacedType; - - - public function setAttachmentName($attachmentName) - { - $this->attachmentName = $attachmentName; - } - public function getAttachmentName() - { - return $this->attachmentName; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setNamespacedType($namespacedType) - { - $this->namespacedType = $namespacedType; - } - public function getNamespacedType() - { - return $this->namespacedType; - } -} - -class Google_Service_Proximitybeacon_BeaconInfo extends Google_Collection -{ - protected $collection_key = 'attachments'; - protected $internal_gapi_mappings = array( - ); - protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; - protected $advertisedIdDataType = ''; - protected $attachmentsType = 'Google_Service_Proximitybeacon_AttachmentInfo'; - protected $attachmentsDataType = 'array'; - public $beaconName; - public $description; - - - public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) - { - $this->advertisedId = $advertisedId; - } - public function getAdvertisedId() - { - return $this->advertisedId; - } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function getAttachments() - { - return $this->attachments; - } - public function setBeaconName($beaconName) - { - $this->beaconName = $beaconName; - } - public function getBeaconName() - { - return $this->beaconName; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } -} - -class Google_Service_Proximitybeacon_Date extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $day; - public $month; - public $year; - - - public function setDay($day) - { - $this->day = $day; - } - public function getDay() - { - return $this->day; - } - public function setMonth($month) - { - $this->month = $month; - } - public function getMonth() - { - return $this->month; - } - public function setYear($year) - { - $this->year = $year; - } - public function getYear() - { - return $this->year; - } -} - -class Google_Service_Proximitybeacon_DeleteAttachmentsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $numDeleted; - - - public function setNumDeleted($numDeleted) - { - $this->numDeleted = $numDeleted; - } - public function getNumDeleted() - { - return $this->numDeleted; - } -} - -class Google_Service_Proximitybeacon_Diagnostics extends Google_Collection -{ - protected $collection_key = 'alerts'; - protected $internal_gapi_mappings = array( - ); - public $alerts; - public $beaconName; - protected $estimatedLowBatteryDateType = 'Google_Service_Proximitybeacon_Date'; - protected $estimatedLowBatteryDateDataType = ''; - - - public function setAlerts($alerts) - { - $this->alerts = $alerts; - } - public function getAlerts() - { - return $this->alerts; - } - public function setBeaconName($beaconName) - { - $this->beaconName = $beaconName; - } - public function getBeaconName() - { - return $this->beaconName; - } - public function setEstimatedLowBatteryDate(Google_Service_Proximitybeacon_Date $estimatedLowBatteryDate) - { - $this->estimatedLowBatteryDate = $estimatedLowBatteryDate; - } - public function getEstimatedLowBatteryDate() - { - return $this->estimatedLowBatteryDate; - } -} - -class Google_Service_Proximitybeacon_Empty extends Google_Model -{ -} - -class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest extends Google_Collection -{ - protected $collection_key = 'observations'; - protected $internal_gapi_mappings = array( - ); - public $namespacedTypes; - protected $observationsType = 'Google_Service_Proximitybeacon_Observation'; - protected $observationsDataType = 'array'; - - - public function setNamespacedTypes($namespacedTypes) - { - $this->namespacedTypes = $namespacedTypes; - } - public function getNamespacedTypes() - { - return $this->namespacedTypes; - } - public function setObservations($observations) - { - $this->observations = $observations; - } - public function getObservations() - { - return $this->observations; - } -} - -class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse extends Google_Collection -{ - protected $collection_key = 'beacons'; - protected $internal_gapi_mappings = array( - ); - protected $beaconsType = 'Google_Service_Proximitybeacon_BeaconInfo'; - protected $beaconsDataType = 'array'; - - - public function setBeacons($beacons) - { - $this->beacons = $beacons; - } - public function getBeacons() - { - return $this->beacons; - } -} - -class Google_Service_Proximitybeacon_IndoorLevel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_Proximitybeacon_LatLng extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Proximitybeacon_ListBeaconAttachmentsResponse extends Google_Collection -{ - protected $collection_key = 'attachments'; - protected $internal_gapi_mappings = array( - ); - protected $attachmentsType = 'Google_Service_Proximitybeacon_BeaconAttachment'; - protected $attachmentsDataType = 'array'; - - - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } - public function getAttachments() - { - return $this->attachments; - } -} - -class Google_Service_Proximitybeacon_ListBeaconsResponse extends Google_Collection -{ - protected $collection_key = 'beacons'; - protected $internal_gapi_mappings = array( - ); - protected $beaconsType = 'Google_Service_Proximitybeacon_Beacon'; - protected $beaconsDataType = 'array'; - public $nextPageToken; - public $totalCount; - - - public function setBeacons($beacons) - { - $this->beacons = $beacons; - } - public function getBeacons() - { - return $this->beacons; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTotalCount($totalCount) - { - $this->totalCount = $totalCount; - } - public function getTotalCount() - { - return $this->totalCount; - } -} - -class Google_Service_Proximitybeacon_ListDiagnosticsResponse extends Google_Collection -{ - protected $collection_key = 'diagnostics'; - protected $internal_gapi_mappings = array( - ); - protected $diagnosticsType = 'Google_Service_Proximitybeacon_Diagnostics'; - protected $diagnosticsDataType = 'array'; - public $nextPageToken; - - - public function setDiagnostics($diagnostics) - { - $this->diagnostics = $diagnostics; - } - public function getDiagnostics() - { - return $this->diagnostics; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Proximitybeacon_ListNamespacesResponse extends Google_Collection -{ - protected $collection_key = 'namespaces'; - protected $internal_gapi_mappings = array( - ); - protected $namespacesType = 'Google_Service_Proximitybeacon_ProximitybeaconNamespace'; - protected $namespacesDataType = 'array'; - - - public function setNamespaces($namespaces) - { - $this->namespaces = $namespaces; - } - public function getNamespaces() - { - return $this->namespaces; - } -} - -class Google_Service_Proximitybeacon_Observation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId'; - protected $advertisedIdDataType = ''; - public $telemetry; - public $timestampMs; - - - public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId) - { - $this->advertisedId = $advertisedId; - } - public function getAdvertisedId() - { - return $this->advertisedId; - } - public function setTelemetry($telemetry) - { - $this->telemetry = $telemetry; - } - public function getTelemetry() - { - return $this->telemetry; - } - public function setTimestampMs($timestampMs) - { - $this->timestampMs = $timestampMs; - } - public function getTimestampMs() - { - return $this->timestampMs; - } -} - -class Google_Service_Proximitybeacon_ProximitybeaconNamespace extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $namespaceName; - public $servingVisibility; - - - public function setNamespaceName($namespaceName) - { - $this->namespaceName = $namespaceName; - } - public function getNamespaceName() - { - return $this->namespaceName; - } - public function setServingVisibility($servingVisibility) - { - $this->servingVisibility = $servingVisibility; - } - public function getServingVisibility() - { - return $this->servingVisibility; - } -} diff --git a/src/Google/Service/Pubsub.php b/src/Google/Service/Pubsub.php deleted file mode 100644 index ffd82a914..000000000 --- a/src/Google/Service/Pubsub.php +++ /dev/null @@ -1,1257 +0,0 @@ - - * Provides reliable, many-to-many, asynchronous messaging between applications.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Pubsub extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage Pub/Sub topics and subscriptions. */ - const PUBSUB = - "https://www.googleapis.com/auth/pubsub"; - - public $projects_subscriptions; - public $projects_topics; - public $projects_topics_subscriptions; - - - /** - * Constructs the internal representation of the Pubsub service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://pubsub.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'pubsub'; - - $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'acknowledge' => array( - 'path' => 'v1/{+subscription}:acknowledge', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+subscription}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+subscription}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+project}/subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'modifyAckDeadline' => array( - 'path' => 'v1/{+subscription}:modifyAckDeadline', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'modifyPushConfig' => array( - 'path' => 'v1/{+subscription}:modifyPushConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'pull' => array( - 'path' => 'v1/{+subscription}:pull', - 'httpMethod' => 'POST', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( - $this, - $this->serviceName, - 'topics', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+topic}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+topic}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIamPolicy' => array( - 'path' => 'v1/{+resource}:getIamPolicy', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+project}/topics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'publish' => array( - 'path' => 'v1/{+topic}:publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setIamPolicy' => array( - 'path' => 'v1/{+resource}:setIamPolicy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'testIamPermissions' => array( - 'path' => 'v1/{+resource}:testIamPermissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'resource' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/{+topic}/subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "projects" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $projects = $pubsubService->projects; - * - */ -class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource -{ -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $subscriptions = $pubsubService->subscriptions; - * - */ -class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource -{ - - /** - * Acknowledges the messages associated with the `ack_ids` in the - * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages - * from the subscription. Acknowledging a message whose ack deadline has expired - * may succeed, but such a message may be redelivered later. Acknowledging a - * message more than once will not result in an error. - * (subscriptions.acknowledge) - * - * @param string $subscription The subscription whose message is being - * acknowledged. - * @param Google_AcknowledgeRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty - */ - public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) - { - $params = array('subscription' => $subscription, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); - } - - /** - * Creates a subscription to a given topic for a given subscriber. If the - * subscription already exists, returns `ALREADY_EXISTS`. If the corresponding - * topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the - * request, the server will assign a random name for this subscription on the - * same project as the topic. (subscriptions.create) - * - * @param string $name The name of the subscription. It must have the format - * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must - * start with a letter, and contain only letters (`[A-Za-z]`), numbers - * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus - * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in - * length, and it must not start with `"goog"`. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Subscription - */ - public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); - } - - /** - * Deletes an existing subscription. All pending messages in the subscription - * are immediately dropped. Calls to `Pull` after deletion will return - * `NOT_FOUND`. After a subscription is deleted, a new one may be created with - * the same name, but the new one has no association with the old subscription, - * or its topic unless the same topic is specified. (subscriptions.delete) - * - * @param string $subscription The subscription to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty - */ - public function delete($subscription, $optParams = array()) - { - $params = array('subscription' => $subscription); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); - } - - /** - * Gets the configuration details of a subscription. (subscriptions.get) - * - * @param string $subscription The name of the subscription to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Subscription - */ - public function get($subscription, $optParams = array()) - { - $params = array('subscription' => $subscription); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); - } - - /** - * Gets the access control policy for a `resource`. Is empty if the policy or - * the resource does not exist. (subscriptions.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective GetIamPolicy rpc. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function getIamPolicy($resource, $optParams = array()) - { - $params = array('resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) - * - * @param string $project The name of the cloud project that subscriptions - * belong to. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of subscriptions to return. - * @opt_param string pageToken The value returned by the last - * `ListSubscriptionsResponse`; indicates that this is a continuation of a prior - * `ListSubscriptions` call, and that the system should return the next page of - * data. - * @return Google_Service_Pubsub_ListSubscriptionsResponse - */ - public function listProjectsSubscriptions($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); - } - - /** - * Modifies the ack deadline for a specific message. This method is useful to - * indicate that more time is needed to process a message by the subscriber, or - * to make the message available for redelivery if the processing was - * interrupted. (subscriptions.modifyAckDeadline) - * - * @param string $subscription The name of the subscription. - * @param Google_ModifyAckDeadlineRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty - */ - public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) - { - $params = array('subscription' => $subscription, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); - } - - /** - * Modifies the `PushConfig` for a specified subscription. This may be used to - * change a push subscription to a pull one (signified by an empty `PushConfig`) - * or vice versa, or change the endpoint URL and other attributes of a push - * subscription. Messages will accumulate for delivery continuously through the - * call regardless of changes to the `PushConfig`. - * (subscriptions.modifyPushConfig) - * - * @param string $subscription The name of the subscription. - * @param Google_ModifyPushConfigRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty - */ - public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) - { - $params = array('subscription' => $subscription, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); - } - - /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The server may return `UNAVAILABLE` if - * there are too many concurrent pull requests pending for the given - * subscription. (subscriptions.pull) - * - * @param string $subscription The subscription from which messages should be - * pulled. - * @param Google_PullRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullResponse - */ - public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) - { - $params = array('subscription' => $subscription, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (subscriptions.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective SetIamPolicy rpc. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (subscriptions.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective TestIamPermissions rpc. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); - } -} -/** - * The "topics" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $topics = $pubsubService->topics; - * - */ -class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource -{ - - /** - * Creates the given topic with the given name. (topics.create) - * - * @param string $name The name of the topic. It must have the format - * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, - * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), - * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs - * (`%`). It must be between 3 and 255 characters in length, and it must not - * start with `"goog"`. - * @param Google_Topic $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Topic - */ - public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); - } - - /** - * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does - * not exist. After a topic is deleted, a new topic may be created with the same - * name; this is an entirely new topic with none of the old configuration or - * subscriptions. Existing subscriptions to this topic are not deleted, but - * their `topic` field is set to `_deleted-topic_`. (topics.delete) - * - * @param string $topic Name of the topic to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Empty - */ - public function delete($topic, $optParams = array()) - { - $params = array('topic' => $topic); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); - } - - /** - * Gets the configuration of a topic. (topics.get) - * - * @param string $topic The name of the topic to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Topic - */ - public function get($topic, $optParams = array()) - { - $params = array('topic' => $topic); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); - } - - /** - * Gets the access control policy for a `resource`. Is empty if the policy or - * the resource does not exist. (topics.getIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * requested. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective GetIamPolicy rpc. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function getIamPolicy($resource, $optParams = array()) - { - $params = array('resource' => $resource); - $params = array_merge($params, $optParams); - return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Lists matching topics. (topics.listProjectsTopics) - * - * @param string $project The name of the cloud project that topics belong to. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of topics to return. - * @opt_param string pageToken The value returned by the last - * `ListTopicsResponse`; indicates that this is a continuation of a prior - * `ListTopics` call, and that the system should return the next page of data. - * @return Google_Service_Pubsub_ListTopicsResponse - */ - public function listProjectsTopics($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); - } - - /** - * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does - * not exist. The message payload must not be empty; it must contain either a - * non-empty data field, or at least one attribute. (topics.publish) - * - * @param string $topic The messages in the request will be published on this - * topic. - * @param Google_PublishRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishResponse - */ - public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) - { - $params = array('topic' => $topic, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. (topics.setIamPolicy) - * - * @param string $resource REQUIRED: The resource for which policy is being - * specified. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective SetIamPolicy rpc. - * @param Google_SetIamPolicyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Policy - */ - public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); - } - - /** - * Returns permissions that a caller has on the specified resource. - * (topics.testIamPermissions) - * - * @param string $resource REQUIRED: The resource for which policy detail is - * being requested. `resource` is usually specified as a path, such as, - * `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path - * specified in this value is resource specific and is specified in the - * documentation for the respective TestIamPermissions rpc. - * @param Google_TestIamPermissionsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_TestIamPermissionsResponse - */ - public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) - { - $params = array('resource' => $resource, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $pubsubService = new Google_Service_Pubsub(...); - * $subscriptions = $pubsubService->subscriptions; - * - */ -class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource -{ - - /** - * Lists the name of the subscriptions for this topic. - * (subscriptions.listProjectsTopicsSubscriptions) - * - * @param string $topic The name of the topic that subscriptions are attached - * to. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize Maximum number of subscription names to return. - * @opt_param string pageToken The value returned by the last - * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a - * prior `ListTopicSubscriptions` call, and that the system should return the - * next page of data. - * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse - */ - public function listProjectsTopicsSubscriptions($topic, $optParams = array()) - { - $params = array('topic' => $topic); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); - } -} - - - - -class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection -{ - protected $collection_key = 'ackIds'; - protected $internal_gapi_mappings = array( - ); - public $ackIds; - - - public function setAckIds($ackIds) - { - $this->ackIds = $ackIds; - } - public function getAckIds() - { - return $this->ackIds; - } -} - -class Google_Service_Pubsub_Binding extends Google_Collection -{ - protected $collection_key = 'members'; - protected $internal_gapi_mappings = array( - ); - public $members; - public $role; - - - public function setMembers($members) - { - $this->members = $members; - } - public function getMembers() - { - return $this->members; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } -} - -class Google_Service_Pubsub_Empty extends Google_Model -{ -} - -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection -{ - protected $collection_key = 'subscriptions'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionsDataType = 'array'; - - - 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; - } -} - -class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection -{ - protected $collection_key = 'subscriptions'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $subscriptions; - - - 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; - } -} - -class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection -{ - protected $collection_key = 'topics'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $topicsType = 'Google_Service_Pubsub_Topic'; - protected $topicsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTopics($topics) - { - $this->topics = $topics; - } - public function getTopics() - { - return $this->topics; - } -} - -class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection -{ - protected $collection_key = 'ackIds'; - protected $internal_gapi_mappings = array( - ); - public $ackDeadlineSeconds; - public $ackIds; - - - public function setAckDeadlineSeconds($ackDeadlineSeconds) - { - $this->ackDeadlineSeconds = $ackDeadlineSeconds; - } - public function getAckDeadlineSeconds() - { - return $this->ackDeadlineSeconds; - } - public function setAckIds($ackIds) - { - $this->ackIds = $ackIds; - } - public function getAckIds() - { - return $this->ackIds; - } -} - -class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; - protected $pushConfigDataType = ''; - - - public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) - { - $this->pushConfig = $pushConfig; - } - public function getPushConfig() - { - return $this->pushConfig; - } -} - -class Google_Service_Pubsub_Policy extends Google_Collection -{ - protected $collection_key = 'bindings'; - protected $internal_gapi_mappings = array( - ); - protected $bindingsType = 'Google_Service_Pubsub_Binding'; - protected $bindingsDataType = 'array'; - public $etag; - public $version; - - - public function setBindings($bindings) - { - $this->bindings = $bindings; - } - public function getBindings() - { - return $this->bindings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Pubsub_PublishRequest extends Google_Collection -{ - protected $collection_key = 'messages'; - protected $internal_gapi_mappings = array( - ); - protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messagesDataType = 'array'; - - - public function setMessages($messages) - { - $this->messages = $messages; - } - public function getMessages() - { - return $this->messages; - } -} - -class Google_Service_Pubsub_PublishResponse extends Google_Collection -{ - protected $collection_key = 'messageIds'; - protected $internal_gapi_mappings = array( - ); - public $messageIds; - - - public function setMessageIds($messageIds) - { - $this->messageIds = $messageIds; - } - public function getMessageIds() - { - return $this->messageIds; - } -} - -class Google_Service_Pubsub_PubsubMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $attributes; - public $data; - public $messageId; - public $publishTime; - - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - public function getAttributes() - { - return $this->attributes; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessageId($messageId) - { - $this->messageId = $messageId; - } - public function getMessageId() - { - return $this->messageId; - } - public function setPublishTime($publishTime) - { - $this->publishTime = $publishTime; - } - public function getPublishTime() - { - return $this->publishTime; - } -} - -class Google_Service_Pubsub_PullRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $maxMessages; - public $returnImmediately; - - - public function setMaxMessages($maxMessages) - { - $this->maxMessages = $maxMessages; - } - public function getMaxMessages() - { - return $this->maxMessages; - } - public function setReturnImmediately($returnImmediately) - { - $this->returnImmediately = $returnImmediately; - } - public function getReturnImmediately() - { - return $this->returnImmediately; - } -} - -class Google_Service_Pubsub_PullResponse extends Google_Collection -{ - protected $collection_key = 'receivedMessages'; - protected $internal_gapi_mappings = array( - ); - protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; - protected $receivedMessagesDataType = 'array'; - - - public function setReceivedMessages($receivedMessages) - { - $this->receivedMessages = $receivedMessages; - } - public function getReceivedMessages() - { - return $this->receivedMessages; - } -} - -class Google_Service_Pubsub_PushConfig extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $attributes; - public $pushEndpoint; - - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - public function getAttributes() - { - return $this->attributes; - } - public function setPushEndpoint($pushEndpoint) - { - $this->pushEndpoint = $pushEndpoint; - } - public function getPushEndpoint() - { - return $this->pushEndpoint; - } -} - -class Google_Service_Pubsub_ReceivedMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ackId; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - - - public function setAckId($ackId) - { - $this->ackId = $ackId; - } - public function getAckId() - { - return $this->ackId; - } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $policyType = 'Google_Service_Pubsub_Policy'; - protected $policyDataType = ''; - - - public function setPolicy(Google_Service_Pubsub_Policy $policy) - { - $this->policy = $policy; - } - public function getPolicy() - { - return $this->policy; - } -} - -class Google_Service_Pubsub_Subscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ackDeadlineSeconds; - public $name; - protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; - protected $pushConfigDataType = ''; - public $topic; - - - public function setAckDeadlineSeconds($ackDeadlineSeconds) - { - $this->ackDeadlineSeconds = $ackDeadlineSeconds; - } - public function getAckDeadlineSeconds() - { - return $this->ackDeadlineSeconds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) - { - $this->pushConfig = $pushConfig; - } - public function getPushConfig() - { - return $this->pushConfig; - } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } -} - -class Google_Service_Pubsub_TestIamPermissionsRequest extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Pubsub_TestIamPermissionsResponse extends Google_Collection -{ - protected $collection_key = 'permissions'; - protected $internal_gapi_mappings = array( - ); - public $permissions; - - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - public function getPermissions() - { - return $this->permissions; - } -} - -class Google_Service_Pubsub_Topic extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} diff --git a/src/Google/Service/QPXExpress.php b/src/Google/Service/QPXExpress.php deleted file mode 100644 index 5461f0bcd..000000000 --- a/src/Google/Service/QPXExpress.php +++ /dev/null @@ -1,1538 +0,0 @@ - - * Lets you find the least expensive flights between an origin and a - * destination.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_QPXExpress extends Google_Service -{ - - - public $trips; - - - /** - * Constructs the internal representation of the QPXExpress service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'qpxExpress/v1/trips/'; - $this->version = 'v1'; - $this->serviceName = 'qpxExpress'; - - $this->trips = new Google_Service_QPXExpress_Trips_Resource( - $this, - $this->serviceName, - 'trips', - array( - 'methods' => array( - 'search' => array( - 'path' => 'search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "trips" collection of methods. - * Typical usage is: - * - * $qpxExpressService = new Google_Service_QPXExpress(...); - * $trips = $qpxExpressService->trips; - * - */ -class Google_Service_QPXExpress_Trips_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of flights. (trips.search) - * - * @param Google_TripsSearchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_QPXExpress_TripsSearchResponse - */ - public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_QPXExpress_TripsSearchResponse"); - } -} - - - - -class Google_Service_QPXExpress_AircraftData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - public $name; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - 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_QPXExpress_AirportData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $city; - public $code; - public $kind; - public $name; - - - public function setCity($city) - { - $this->city = $city; - } - public function getCity() - { - return $this->city; - } - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - 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_QPXExpress_BagDescriptor extends Google_Collection -{ - protected $collection_key = 'description'; - protected $internal_gapi_mappings = array( - ); - public $commercialName; - public $count; - public $description; - public $kind; - public $subcode; - - - public function setCommercialName($commercialName) - { - $this->commercialName = $commercialName; - } - public function getCommercialName() - { - return $this->commercialName; - } - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSubcode($subcode) - { - $this->subcode = $subcode; - } - public function getSubcode() - { - return $this->subcode; - } -} - -class Google_Service_QPXExpress_CarrierData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - public $name; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - 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_QPXExpress_CityData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $country; - public $kind; - public $name; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - 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_QPXExpress_Data extends Google_Collection -{ - protected $collection_key = 'tax'; - protected $internal_gapi_mappings = array( - ); - protected $aircraftType = 'Google_Service_QPXExpress_AircraftData'; - protected $aircraftDataType = 'array'; - protected $airportType = 'Google_Service_QPXExpress_AirportData'; - protected $airportDataType = 'array'; - protected $carrierType = 'Google_Service_QPXExpress_CarrierData'; - protected $carrierDataType = 'array'; - protected $cityType = 'Google_Service_QPXExpress_CityData'; - protected $cityDataType = 'array'; - public $kind; - protected $taxType = 'Google_Service_QPXExpress_TaxData'; - protected $taxDataType = 'array'; - - - public function setAircraft($aircraft) - { - $this->aircraft = $aircraft; - } - public function getAircraft() - { - return $this->aircraft; - } - public function setAirport($airport) - { - $this->airport = $airport; - } - public function getAirport() - { - return $this->airport; - } - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setCity($city) - { - $this->city = $city; - } - public function getCity() - { - return $this->city; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTax($tax) - { - $this->tax = $tax; - } - public function getTax() - { - return $this->tax; - } -} - -class Google_Service_QPXExpress_FareInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $basisCode; - public $carrier; - public $destination; - public $id; - public $kind; - public $origin; - public $private; - - - public function setBasisCode($basisCode) - { - $this->basisCode = $basisCode; - } - public function getBasisCode() - { - return $this->basisCode; - } - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - 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 setOrigin($origin) - { - $this->origin = $origin; - } - public function getOrigin() - { - return $this->origin; - } - public function setPrivate($private) - { - $this->private = $private; - } - public function getPrivate() - { - return $this->private; - } -} - -class Google_Service_QPXExpress_FlightInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $number; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setNumber($number) - { - $this->number = $number; - } - public function getNumber() - { - return $this->number; - } -} - -class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection -{ - protected $collection_key = 'bagDescriptor'; - protected $internal_gapi_mappings = array( - ); - protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor'; - protected $bagDescriptorDataType = 'array'; - public $kilos; - public $kilosPerPiece; - public $kind; - public $pieces; - public $pounds; - - - public function setBagDescriptor($bagDescriptor) - { - $this->bagDescriptor = $bagDescriptor; - } - public function getBagDescriptor() - { - return $this->bagDescriptor; - } - public function setKilos($kilos) - { - $this->kilos = $kilos; - } - public function getKilos() - { - return $this->kilos; - } - public function setKilosPerPiece($kilosPerPiece) - { - $this->kilosPerPiece = $kilosPerPiece; - } - public function getKilosPerPiece() - { - return $this->kilosPerPiece; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPieces($pieces) - { - $this->pieces = $pieces; - } - public function getPieces() - { - return $this->pieces; - } - public function setPounds($pounds) - { - $this->pounds = $pounds; - } - public function getPounds() - { - return $this->pounds; - } -} - -class Google_Service_QPXExpress_LegInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aircraft; - public $arrivalTime; - public $changePlane; - public $connectionDuration; - public $departureTime; - public $destination; - public $destinationTerminal; - public $duration; - public $id; - public $kind; - public $meal; - public $mileage; - public $onTimePerformance; - public $operatingDisclosure; - public $origin; - public $originTerminal; - public $secure; - - - public function setAircraft($aircraft) - { - $this->aircraft = $aircraft; - } - public function getAircraft() - { - return $this->aircraft; - } - public function setArrivalTime($arrivalTime) - { - $this->arrivalTime = $arrivalTime; - } - public function getArrivalTime() - { - return $this->arrivalTime; - } - public function setChangePlane($changePlane) - { - $this->changePlane = $changePlane; - } - public function getChangePlane() - { - return $this->changePlane; - } - public function setConnectionDuration($connectionDuration) - { - $this->connectionDuration = $connectionDuration; - } - public function getConnectionDuration() - { - return $this->connectionDuration; - } - public function setDepartureTime($departureTime) - { - $this->departureTime = $departureTime; - } - public function getDepartureTime() - { - return $this->departureTime; - } - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setDestinationTerminal($destinationTerminal) - { - $this->destinationTerminal = $destinationTerminal; - } - public function getDestinationTerminal() - { - return $this->destinationTerminal; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - 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 setMeal($meal) - { - $this->meal = $meal; - } - public function getMeal() - { - return $this->meal; - } - public function setMileage($mileage) - { - $this->mileage = $mileage; - } - public function getMileage() - { - return $this->mileage; - } - public function setOnTimePerformance($onTimePerformance) - { - $this->onTimePerformance = $onTimePerformance; - } - public function getOnTimePerformance() - { - return $this->onTimePerformance; - } - public function setOperatingDisclosure($operatingDisclosure) - { - $this->operatingDisclosure = $operatingDisclosure; - } - public function getOperatingDisclosure() - { - return $this->operatingDisclosure; - } - public function setOrigin($origin) - { - $this->origin = $origin; - } - public function getOrigin() - { - return $this->origin; - } - public function setOriginTerminal($originTerminal) - { - $this->originTerminal = $originTerminal; - } - public function getOriginTerminal() - { - return $this->originTerminal; - } - public function setSecure($secure) - { - $this->secure = $secure; - } - public function getSecure() - { - return $this->secure; - } -} - -class Google_Service_QPXExpress_PassengerCounts extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adultCount; - public $childCount; - public $infantInLapCount; - public $infantInSeatCount; - public $kind; - public $seniorCount; - - - public function setAdultCount($adultCount) - { - $this->adultCount = $adultCount; - } - public function getAdultCount() - { - return $this->adultCount; - } - public function setChildCount($childCount) - { - $this->childCount = $childCount; - } - public function getChildCount() - { - return $this->childCount; - } - public function setInfantInLapCount($infantInLapCount) - { - $this->infantInLapCount = $infantInLapCount; - } - public function getInfantInLapCount() - { - return $this->infantInLapCount; - } - public function setInfantInSeatCount($infantInSeatCount) - { - $this->infantInSeatCount = $infantInSeatCount; - } - public function getInfantInSeatCount() - { - return $this->infantInSeatCount; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSeniorCount($seniorCount) - { - $this->seniorCount = $seniorCount; - } - public function getSeniorCount() - { - return $this->seniorCount; - } -} - -class Google_Service_QPXExpress_PricingInfo extends Google_Collection -{ - protected $collection_key = 'tax'; - protected $internal_gapi_mappings = array( - ); - public $baseFareTotal; - protected $fareType = 'Google_Service_QPXExpress_FareInfo'; - protected $fareDataType = 'array'; - public $fareCalculation; - public $kind; - public $latestTicketingTime; - protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; - protected $passengersDataType = ''; - public $ptc; - public $refundable; - public $saleFareTotal; - public $saleTaxTotal; - public $saleTotal; - protected $segmentPricingType = 'Google_Service_QPXExpress_SegmentPricing'; - protected $segmentPricingDataType = 'array'; - protected $taxType = 'Google_Service_QPXExpress_TaxInfo'; - protected $taxDataType = 'array'; - - - public function setBaseFareTotal($baseFareTotal) - { - $this->baseFareTotal = $baseFareTotal; - } - public function getBaseFareTotal() - { - return $this->baseFareTotal; - } - public function setFare($fare) - { - $this->fare = $fare; - } - public function getFare() - { - return $this->fare; - } - public function setFareCalculation($fareCalculation) - { - $this->fareCalculation = $fareCalculation; - } - public function getFareCalculation() - { - return $this->fareCalculation; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLatestTicketingTime($latestTicketingTime) - { - $this->latestTicketingTime = $latestTicketingTime; - } - public function getLatestTicketingTime() - { - return $this->latestTicketingTime; - } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) - { - $this->passengers = $passengers; - } - public function getPassengers() - { - return $this->passengers; - } - public function setPtc($ptc) - { - $this->ptc = $ptc; - } - public function getPtc() - { - return $this->ptc; - } - public function setRefundable($refundable) - { - $this->refundable = $refundable; - } - public function getRefundable() - { - return $this->refundable; - } - public function setSaleFareTotal($saleFareTotal) - { - $this->saleFareTotal = $saleFareTotal; - } - public function getSaleFareTotal() - { - return $this->saleFareTotal; - } - public function setSaleTaxTotal($saleTaxTotal) - { - $this->saleTaxTotal = $saleTaxTotal; - } - public function getSaleTaxTotal() - { - return $this->saleTaxTotal; - } - public function setSaleTotal($saleTotal) - { - $this->saleTotal = $saleTotal; - } - public function getSaleTotal() - { - return $this->saleTotal; - } - public function setSegmentPricing($segmentPricing) - { - $this->segmentPricing = $segmentPricing; - } - public function getSegmentPricing() - { - return $this->segmentPricing; - } - public function setTax($tax) - { - $this->tax = $tax; - } - public function getTax() - { - return $this->tax; - } -} - -class Google_Service_QPXExpress_SegmentInfo extends Google_Collection -{ - protected $collection_key = 'leg'; - protected $internal_gapi_mappings = array( - ); - public $bookingCode; - public $bookingCodeCount; - public $cabin; - public $connectionDuration; - public $duration; - protected $flightType = 'Google_Service_QPXExpress_FlightInfo'; - protected $flightDataType = ''; - public $id; - public $kind; - protected $legType = 'Google_Service_QPXExpress_LegInfo'; - protected $legDataType = 'array'; - public $marriedSegmentGroup; - public $subjectToGovernmentApproval; - - - public function setBookingCode($bookingCode) - { - $this->bookingCode = $bookingCode; - } - public function getBookingCode() - { - return $this->bookingCode; - } - public function setBookingCodeCount($bookingCodeCount) - { - $this->bookingCodeCount = $bookingCodeCount; - } - public function getBookingCodeCount() - { - return $this->bookingCodeCount; - } - public function setCabin($cabin) - { - $this->cabin = $cabin; - } - public function getCabin() - { - return $this->cabin; - } - public function setConnectionDuration($connectionDuration) - { - $this->connectionDuration = $connectionDuration; - } - public function getConnectionDuration() - { - return $this->connectionDuration; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setFlight(Google_Service_QPXExpress_FlightInfo $flight) - { - $this->flight = $flight; - } - public function getFlight() - { - return $this->flight; - } - 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 setLeg($leg) - { - $this->leg = $leg; - } - public function getLeg() - { - return $this->leg; - } - public function setMarriedSegmentGroup($marriedSegmentGroup) - { - $this->marriedSegmentGroup = $marriedSegmentGroup; - } - public function getMarriedSegmentGroup() - { - return $this->marriedSegmentGroup; - } - public function setSubjectToGovernmentApproval($subjectToGovernmentApproval) - { - $this->subjectToGovernmentApproval = $subjectToGovernmentApproval; - } - public function getSubjectToGovernmentApproval() - { - return $this->subjectToGovernmentApproval; - } -} - -class Google_Service_QPXExpress_SegmentPricing extends Google_Collection -{ - protected $collection_key = 'freeBaggageOption'; - protected $internal_gapi_mappings = array( - ); - public $fareId; - protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance'; - protected $freeBaggageOptionDataType = 'array'; - public $kind; - public $segmentId; - - - public function setFareId($fareId) - { - $this->fareId = $fareId; - } - public function getFareId() - { - return $this->fareId; - } - public function setFreeBaggageOption($freeBaggageOption) - { - $this->freeBaggageOption = $freeBaggageOption; - } - public function getFreeBaggageOption() - { - return $this->freeBaggageOption; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSegmentId($segmentId) - { - $this->segmentId = $segmentId; - } - public function getSegmentId() - { - return $this->segmentId; - } -} - -class Google_Service_QPXExpress_SliceInfo extends Google_Collection -{ - protected $collection_key = 'segment'; - protected $internal_gapi_mappings = array( - ); - public $duration; - public $kind; - protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; - protected $segmentDataType = 'array'; - - - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSegment($segment) - { - $this->segment = $segment; - } - public function getSegment() - { - return $this->segment; - } -} - -class Google_Service_QPXExpress_SliceInput extends Google_Collection -{ - protected $collection_key = 'prohibitedCarrier'; - protected $internal_gapi_mappings = array( - ); - public $alliance; - public $date; - public $destination; - public $kind; - public $maxConnectionDuration; - public $maxStops; - public $origin; - public $permittedCarrier; - protected $permittedDepartureTimeType = 'Google_Service_QPXExpress_TimeOfDayRange'; - protected $permittedDepartureTimeDataType = ''; - public $preferredCabin; - public $prohibitedCarrier; - - - public function setAlliance($alliance) - { - $this->alliance = $alliance; - } - public function getAlliance() - { - return $this->alliance; - } - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setDestination($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 setMaxConnectionDuration($maxConnectionDuration) - { - $this->maxConnectionDuration = $maxConnectionDuration; - } - public function getMaxConnectionDuration() - { - return $this->maxConnectionDuration; - } - public function setMaxStops($maxStops) - { - $this->maxStops = $maxStops; - } - public function getMaxStops() - { - return $this->maxStops; - } - public function setOrigin($origin) - { - $this->origin = $origin; - } - public function getOrigin() - { - return $this->origin; - } - public function setPermittedCarrier($permittedCarrier) - { - $this->permittedCarrier = $permittedCarrier; - } - public function getPermittedCarrier() - { - return $this->permittedCarrier; - } - public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime) - { - $this->permittedDepartureTime = $permittedDepartureTime; - } - public function getPermittedDepartureTime() - { - return $this->permittedDepartureTime; - } - public function setPreferredCabin($preferredCabin) - { - $this->preferredCabin = $preferredCabin; - } - public function getPreferredCabin() - { - return $this->preferredCabin; - } - public function setProhibitedCarrier($prohibitedCarrier) - { - $this->prohibitedCarrier = $prohibitedCarrier; - } - public function getProhibitedCarrier() - { - return $this->prohibitedCarrier; - } -} - -class Google_Service_QPXExpress_TaxData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_QPXExpress_TaxInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $chargeType; - public $code; - public $country; - public $id; - public $kind; - public $salePrice; - - - public function setChargeType($chargeType) - { - $this->chargeType = $chargeType; - } - public function getChargeType() - { - return $this->chargeType; - } - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - 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 setSalePrice($salePrice) - { - $this->salePrice = $salePrice; - } - public function getSalePrice() - { - return $this->salePrice; - } -} - -class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $earliestTime; - public $kind; - public $latestTime; - - - public function setEarliestTime($earliestTime) - { - $this->earliestTime = $earliestTime; - } - public function getEarliestTime() - { - return $this->earliestTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLatestTime($latestTime) - { - $this->latestTime = $latestTime; - } - public function getLatestTime() - { - return $this->latestTime; - } -} - -class Google_Service_QPXExpress_TripOption extends Google_Collection -{ - protected $collection_key = 'slice'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - protected $pricingType = 'Google_Service_QPXExpress_PricingInfo'; - protected $pricingDataType = 'array'; - public $saleTotal; - protected $sliceType = 'Google_Service_QPXExpress_SliceInfo'; - protected $sliceDataType = 'array'; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPricing($pricing) - { - $this->pricing = $pricing; - } - public function getPricing() - { - return $this->pricing; - } - public function setSaleTotal($saleTotal) - { - $this->saleTotal = $saleTotal; - } - public function getSaleTotal() - { - return $this->saleTotal; - } - public function setSlice($slice) - { - $this->slice = $slice; - } - public function getSlice() - { - return $this->slice; - } -} - -class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection -{ - protected $collection_key = 'slice'; - protected $internal_gapi_mappings = array( - ); - public $maxPrice; - protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; - protected $passengersDataType = ''; - public $refundable; - public $saleCountry; - protected $sliceType = 'Google_Service_QPXExpress_SliceInput'; - protected $sliceDataType = 'array'; - public $solutions; - - - public function setMaxPrice($maxPrice) - { - $this->maxPrice = $maxPrice; - } - public function getMaxPrice() - { - return $this->maxPrice; - } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) - { - $this->passengers = $passengers; - } - public function getPassengers() - { - return $this->passengers; - } - public function setRefundable($refundable) - { - $this->refundable = $refundable; - } - public function getRefundable() - { - return $this->refundable; - } - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - public function getSaleCountry() - { - return $this->saleCountry; - } - public function setSlice($slice) - { - $this->slice = $slice; - } - public function getSlice() - { - return $this->slice; - } - public function setSolutions($solutions) - { - $this->solutions = $solutions; - } - public function getSolutions() - { - return $this->solutions; - } -} - -class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection -{ - protected $collection_key = 'tripOption'; - protected $internal_gapi_mappings = array( - ); - protected $dataType = 'Google_Service_QPXExpress_Data'; - protected $dataDataType = ''; - public $kind; - public $requestId; - protected $tripOptionType = 'Google_Service_QPXExpress_TripOption'; - protected $tripOptionDataType = 'array'; - - - public function setData(Google_Service_QPXExpress_Data $data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - public function setTripOption($tripOption) - { - $this->tripOption = $tripOption; - } - public function getTripOption() - { - return $this->tripOption; - } -} - -class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest'; - protected $requestDataType = ''; - - - public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request) - { - $this->request = $request; - } - public function getRequest() - { - return $this->request; - } -} - -class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse'; - protected $tripsDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips) - { - $this->trips = $trips; - } - public function getTrips() - { - return $this->trips; - } -} diff --git a/src/Google/Service/Replicapool.php b/src/Google/Service/Replicapool.php deleted file mode 100644 index 890251e46..000000000 --- a/src/Google/Service/Replicapool.php +++ /dev/null @@ -1,1313 +0,0 @@ - - * The Google Compute Engine Instance Group Manager API provides groups of - * homogenous Compute Engine Instances.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Replicapool extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; - - public $instanceGroupManagers; - public $zoneOperations; - - - /** - * Constructs the internal representation of the Replicapool service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'replicapool/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'replicapool'; - - $this->instanceGroupManagers = new Google_Service_Replicapool_InstanceGroupManagers_Resource( - $this, - $this->serviceName, - 'instanceGroupManagers', - array( - 'methods' => array( - 'abandonInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'size' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'recreateInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resize' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'size' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'setInstanceTemplate' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTargetPools' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Replicapool_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "instanceGroupManagers" collection of methods. - * Typical usage is: - * - * $replicapoolService = new Google_Service_Replicapool(...); - * $instanceGroupManagers = $replicapoolService->instanceGroupManagers; - * - */ -class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_Service_Resource -{ - - /** - * Removes the specified instances from the managed instance group, and from any - * target pools of which they were members, without deleting the instances. - * (instanceGroupManagers.abandonInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Deletes the instance group manager and all instances contained within. If - * you'd like to delete the manager without deleting the instances, you must - * first abandon the instances to remove them from the group. - * (instanceGroupManagers.delete) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager Name of the Instance Group Manager - * resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function delete($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Deletes the specified instances. The instances are deleted, then removed from - * the instance group and any target pools of which they were a member. The - * targetSize of the instance group manager is reduced by the number of - * instances deleted. (instanceGroupManagers.deleteInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Returns the specified Instance Group Manager resource. - * (instanceGroupManagers.get) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager Name of the instance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_InstanceGroupManager - */ - public function get($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager"); - } - - /** - * Creates an instance group manager, as well as the instance group and the - * specified number of instances. (instanceGroupManagers.insert) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param int $size Number of instances that should exist. - * @param Google_InstanceGroupManager $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Retrieves the list of Instance Group Manager resources contained within the - * specified zone. (instanceGroupManagers.listInstanceGroupManagers) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @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 value is 500 and default value is 500. - * @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_Replicapool_InstanceGroupManagerList - */ - public function listInstanceGroupManagers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList"); - } - - /** - * Recreates the specified instances. The instances are deleted, then recreated - * using the instance group manager's current instance template. - * (instanceGroupManagers.recreateInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Resizes the managed instance group up or down. If resized up, new instances - * are created using the current instance template. If resized down, instances - * are removed in the order outlined in Resizing a managed instance group. - * (instanceGroupManagers.resize) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param int $size Number of instances that should exist in this Instance Group - * Manager. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); - $params = array_merge($params, $optParams); - return $this->call('resize', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Sets the instance template to use when creating new instances in this group. - * Existing instances are not affected. - * (instanceGroupManagers.setInstanceTemplate) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Modifies the target pools to which all new instances in this group are - * assigned. Existing instances in the group are not affected. - * (instanceGroupManagers.setTargetPools) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation"); - } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $replicapoolService = new Google_Service_Replicapool(...); - * $zoneOperations = $replicapoolService->zoneOperations; - * - */ -class Google_Service_Replicapool_ZoneOperations_Resource extends Google_Service_Resource -{ - - /** - * 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_Replicapool_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @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_Replicapool_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_OperationList"); - } -} - - - - -class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy'; - protected $autoHealingPoliciesDataType = 'array'; - public $baseInstanceName; - public $creationTimestamp; - public $currentSize; - public $description; - public $fingerprint; - public $group; - public $id; - public $instanceTemplate; - public $kind; - public $name; - public $selfLink; - public $targetPools; - public $targetSize; - - - public function setAutoHealingPolicies($autoHealingPolicies) - { - $this->autoHealingPolicies = $autoHealingPolicies; - } - public function getAutoHealingPolicies() - { - return $this->autoHealingPolicies; - } - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setCurrentSize($currentSize) - { - $this->currentSize = $currentSize; - } - public function getCurrentSize() - { - return $this->currentSize; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } - 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 setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } - public function setTargetSize($targetSize) - { - $this->targetSize = $targetSize; - } - public function getTargetSize() - { - return $this->targetSize; - } -} - -class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection -{ - protected $collection_key = 'instances'; - protected $internal_gapi_mappings = array( - ); - public $instances; - - - public function setInstances($instances) - { - $this->instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instanceTemplate; - - - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } -} - -class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection -{ - protected $collection_key = 'targetPools'; - protected $internal_gapi_mappings = array( - ); - public $fingerprint; - public $targetPools; - - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } -} - -class Google_Service_Replicapool_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Replicapool_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Replicapool_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Replicapool_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Replicapool_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Replicapool_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapool_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Replicapool_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Replicapool_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Replicapool_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Replicapool_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actionType; - public $healthCheck; - - - public function setActionType($actionType) - { - $this->actionType = $actionType; - } - public function getActionType() - { - return $this->actionType; - } - public function setHealthCheck($healthCheck) - { - $this->healthCheck = $healthCheck; - } - public function getHealthCheck() - { - return $this->healthCheck; - } -} diff --git a/src/Google/Service/Replicapoolupdater.php b/src/Google/Service/Replicapoolupdater.php deleted file mode 100644 index 839fd0970..000000000 --- a/src/Google/Service/Replicapoolupdater.php +++ /dev/null @@ -1,1354 +0,0 @@ - - * Updates groups of Compute Engine instances.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Replicapoolupdater extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage replica pools. */ - const REPLICAPOOL = - "https://www.googleapis.com/auth/replicapool"; - /** View replica pools. */ - const REPLICAPOOL_READONLY = - "https://www.googleapis.com/auth/replicapool.readonly"; - - public $rollingUpdates; - public $zoneOperations; - - - /** - * Constructs the internal representation of the Replicapoolupdater service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'replicapoolupdater/v1beta1/projects/'; - $this->version = 'v1beta1'; - $this->serviceName = 'replicapoolupdater'; - - $this->rollingUpdates = new Google_Service_Replicapoolupdater_RollingUpdates_Resource( - $this, - $this->serviceName, - 'rollingUpdates', - array( - 'methods' => array( - 'cancel' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listInstanceUpdates' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'pause' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resume' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'rollback' => array( - 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'rollingUpdate' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Replicapoolupdater_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "rollingUpdates" collection of methods. - * Typical usage is: - * - * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); - * $rollingUpdates = $replicapoolupdaterService->rollingUpdates; - * - */ -class Google_Service_Replicapoolupdater_RollingUpdates_Resource extends Google_Service_Resource -{ - - /** - * Cancels an update. The update must be PAUSED before it can be cancelled. This - * has no effect if the update is already CANCELLED. (rollingUpdates.cancel) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Operation - */ - public function cancel($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Replicapoolupdater_Operation"); - } - - /** - * Returns information about an update. (rollingUpdates.get) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_RollingUpdate - */ - public function get($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapoolupdater_RollingUpdate"); - } - - /** - * Inserts and starts a new update. (rollingUpdates.insert) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param Google_RollingUpdate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Operation - */ - public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_Operation"); - } - - /** - * Lists recent updates for a given managed instance group, in reverse - * chronological order and paginated format. (rollingUpdates.listRollingUpdates) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @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 value is 500 and default value is 500. - * @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_Replicapoolupdater_RollingUpdateList - */ - public function listRollingUpdates($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapoolupdater_RollingUpdateList"); - } - - /** - * Lists the current status for each instance within a given update. - * (rollingUpdates.listInstanceUpdates) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @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 value is 500 and default value is 500. - * @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_Replicapoolupdater_InstanceUpdateList - */ - public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList"); - } - - /** - * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no - * effect if invoked when the state of the update is PAUSED. - * (rollingUpdates.pause) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Operation - */ - public function pause($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('pause', array($params), "Google_Service_Replicapoolupdater_Operation"); - } - - /** - * Continues an update in PAUSED state. Has no effect if invoked when the state - * of the update is ROLLED_OUT. (rollingUpdates.resume) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Operation - */ - public function resume($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('resume', array($params), "Google_Service_Replicapoolupdater_Operation"); - } - - /** - * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect - * if invoked when the state of the update is ROLLED_BACK. - * (rollingUpdates.rollback) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the update's target - * resides. - * @param string $rollingUpdate The name of the update. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Operation - */ - public function rollback($project, $zone, $rollingUpdate, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); - $params = array_merge($params, $optParams); - return $this->call('rollback', array($params), "Google_Service_Replicapoolupdater_Operation"); - } -} - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); - * $zoneOperations = $replicapoolupdaterService->zoneOperations; - * - */ -class Google_Service_Replicapoolupdater_ZoneOperations_Resource extends Google_Service_Resource -{ - - /** - * 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_Replicapoolupdater_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation"); - } - - /** - * Retrieves the list of Operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @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_Replicapoolupdater_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapoolupdater_OperationList"); - } -} - - - - -class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $errorType = 'Google_Service_Replicapoolupdater_InstanceUpdateError'; - protected $errorDataType = ''; - public $instance; - public $status; - - - public function setError(Google_Service_Replicapoolupdater_InstanceUpdateError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Replicapoolupdater_InstanceUpdateError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapoolupdater_InstanceUpdateList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; - protected $itemsDataType = 'array'; - 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_Replicapoolupdater_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Replicapoolupdater_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Replicapoolupdater_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Replicapoolupdater_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Replicapoolupdater_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Replicapoolupdater_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapoolupdater_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Replicapoolupdater_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Replicapoolupdater_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Replicapoolupdater_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Replicapoolupdater_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapoolupdater_RollingUpdate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actionType; - public $creationTimestamp; - public $description; - protected $errorType = 'Google_Service_Replicapoolupdater_RollingUpdateError'; - protected $errorDataType = ''; - public $id; - public $instanceGroup; - public $instanceGroupManager; - public $instanceTemplate; - public $kind; - public $oldInstanceTemplate; - protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; - protected $policyDataType = ''; - public $progress; - public $selfLink; - public $status; - public $statusMessage; - public $user; - - - public function setActionType($actionType) - { - $this->actionType = $actionType; - } - public function getActionType() - { - return $this->actionType; - } - 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 setError(Google_Service_Replicapoolupdater_RollingUpdateError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstanceGroup($instanceGroup) - { - $this->instanceGroup = $instanceGroup; - } - public function getInstanceGroup() - { - return $this->instanceGroup; - } - public function setInstanceGroupManager($instanceGroupManager) - { - $this->instanceGroupManager = $instanceGroupManager; - } - public function getInstanceGroupManager() - { - return $this->instanceGroupManager; - } - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOldInstanceTemplate($oldInstanceTemplate) - { - $this->oldInstanceTemplate = $oldInstanceTemplate; - } - public function getOldInstanceTemplate() - { - return $this->oldInstanceTemplate; - } - public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy) - { - $this->policy = $policy; - } - public function getPolicy() - { - return $this->policy; - } - 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 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 setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_Replicapoolupdater_RollingUpdateError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Replicapoolupdater_RollingUpdateErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Replicapoolupdater_RollingUpdateErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Replicapoolupdater_RollingUpdateList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Replicapoolupdater_RollingUpdate'; - protected $itemsDataType = 'array'; - 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_Replicapoolupdater_RollingUpdatePolicy extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $autoPauseAfterInstances; - public $instanceStartupTimeoutSec; - public $maxNumConcurrentInstances; - public $maxNumFailedInstances; - public $minInstanceUpdateTimeSec; - - - public function setAutoPauseAfterInstances($autoPauseAfterInstances) - { - $this->autoPauseAfterInstances = $autoPauseAfterInstances; - } - public function getAutoPauseAfterInstances() - { - return $this->autoPauseAfterInstances; - } - public function setInstanceStartupTimeoutSec($instanceStartupTimeoutSec) - { - $this->instanceStartupTimeoutSec = $instanceStartupTimeoutSec; - } - public function getInstanceStartupTimeoutSec() - { - return $this->instanceStartupTimeoutSec; - } - public function setMaxNumConcurrentInstances($maxNumConcurrentInstances) - { - $this->maxNumConcurrentInstances = $maxNumConcurrentInstances; - } - public function getMaxNumConcurrentInstances() - { - return $this->maxNumConcurrentInstances; - } - public function setMaxNumFailedInstances($maxNumFailedInstances) - { - $this->maxNumFailedInstances = $maxNumFailedInstances; - } - public function getMaxNumFailedInstances() - { - return $this->maxNumFailedInstances; - } - public function setMinInstanceUpdateTimeSec($minInstanceUpdateTimeSec) - { - $this->minInstanceUpdateTimeSec = $minInstanceUpdateTimeSec; - } - public function getMinInstanceUpdateTimeSec() - { - return $this->minInstanceUpdateTimeSec; - } -} diff --git a/src/Google/Service/Reports.php b/src/Google/Service/Reports.php deleted file mode 100644 index b782004bf..000000000 --- a/src/Google/Service/Reports.php +++ /dev/null @@ -1,1128 +0,0 @@ - - * Allows the administrators of Google Apps customers to fetch reports about the - * usage, collaboration, security and risk for their users.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Reports extends Google_Service -{ - /** View audit reports of Google Apps for your domain. */ - const ADMIN_REPORTS_AUDIT_READONLY = - "https://www.googleapis.com/auth/admin.reports.audit.readonly"; - /** View usage reports of Google Apps for your domain. */ - const ADMIN_REPORTS_USAGE_READONLY = - "https://www.googleapis.com/auth/admin.reports.usage.readonly"; - - public $activities; - public $channels; - public $customerUsageReports; - public $userUsageReport; - - - /** - * Constructs the internal representation of the Reports service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'admin/reports/v1/'; - $this->version = 'reports_v1'; - $this->serviceName = 'admin'; - - $this->activities = new Google_Service_Reports_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'activity/users/{userKey}/applications/{applicationName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'activity/users/{userKey}/applications/{applicationName}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Reports_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => '/admin/reports_v1/channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->customerUsageReports = new Google_Service_Reports_CustomerUsageReports_Resource( - $this, - $this->serviceName, - 'customerUsageReports', - array( - 'methods' => array( - 'get' => array( - 'path' => 'usage/dates/{date}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parameters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->userUsageReport = new Google_Service_Reports_UserUsageReport_Resource( - $this, - $this->serviceName, - 'userUsageReport', - array( - 'methods' => array( - 'get' => array( - 'path' => 'usage/users/{userKey}/dates/{date}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parameters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Reports(...); - * $activities = $adminService->activities; - * - */ -class Google_Service_Reports_Activities_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of activities for a specific customer and application. - * (activities.listActivities) - * - * @param string $userKey Represents the profile id or the user email for which - * the data should be filtered. When 'all' is specified as the userKey, it - * returns usageReports for all users. - * @param string $applicationName Application name for which the events are to - * be retrieved. - * @param array $optParams Optional parameters. - * - * @opt_param string actorIpAddress IP Address of host where the event was - * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string eventName Name of the event being queried. - * @opt_param string filters Event parameters in the form [parameter1 - * name][operator][parameter1 value],[parameter2 name][operator][parameter2 - * value],... - * @opt_param int maxResults Number of activity records to be shown in each - * page. - * @opt_param string pageToken Token to specify next page. - * @opt_param string startTime Return events which occured at or after this - * time. - * @return Google_Service_Reports_Activities - */ - public function listActivities($userKey, $applicationName, $optParams = array()) - { - $params = array('userKey' => $userKey, 'applicationName' => $applicationName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Reports_Activities"); - } - - /** - * Push changes to activities (activities.watch) - * - * @param string $userKey Represents the profile id or the user email for which - * the data should be filtered. When 'all' is specified as the userKey, it - * returns usageReports for all users. - * @param string $applicationName Application name for which the events are to - * be retrieved. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string actorIpAddress IP Address of host where the event was - * performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. - * @opt_param string endTime Return events which occured at or before this time. - * @opt_param string eventName Name of the event being queried. - * @opt_param string filters Event parameters in the form [parameter1 - * name][operator][parameter1 value],[parameter2 name][operator][parameter2 - * value],... - * @opt_param int maxResults Number of activity records to be shown in each - * page. - * @opt_param string pageToken Token to specify next page. - * @opt_param string startTime Return events which occured at or after this - * time. - * @return Google_Service_Reports_Channel - */ - public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Reports_Channel"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Reports(...); - * $channels = $adminService->channels; - * - */ -class Google_Service_Reports_Channels_Resource extends Google_Service_Resource -{ - - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Reports_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } -} - -/** - * The "customerUsageReports" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Reports(...); - * $customerUsageReports = $adminService->customerUsageReports; - * - */ -class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a report which is a collection of properties / statistics for a - * specific customer. (customerUsageReports.get) - * - * @param string $date Represents the date in yyyy-mm-dd format for which the - * data is to be fetched. - * @param array $optParams Optional parameters. - * - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. - * @opt_param string pageToken Token to specify next page. - * @opt_param string parameters Represents the application name, parameter name - * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. - * @return Google_Service_Reports_UsageReports - */ - public function get($date, $optParams = array()) - { - $params = array('date' => $date); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); - } -} - -/** - * The "userUsageReport" collection of methods. - * Typical usage is: - * - * $adminService = new Google_Service_Reports(...); - * $userUsageReport = $adminService->userUsageReport; - * - */ -class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a report which is a collection of properties / statistics for a set - * of users. (userUsageReport.get) - * - * @param string $userKey Represents the profile id or the user email for which - * the data should be filtered. - * @param string $date Represents the date in yyyy-mm-dd format for which the - * data is to be fetched. - * @param array $optParams Optional parameters. - * - * @opt_param string customerId Represents the customer for which the data is to - * be fetched. - * @opt_param string filters Represents the set of filters including parameter - * operator value. - * @opt_param string maxResults Maximum number of results to return. Maximum - * allowed is 1000 - * @opt_param string pageToken Token to specify next page. - * @opt_param string parameters Represents the application name, parameter name - * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. - * @return Google_Service_Reports_UsageReports - */ - public function get($userKey, $date, $optParams = array()) - { - $params = array('userKey' => $userKey, 'date' => $date); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); - } -} - - - - -class Google_Service_Reports_Activities extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Reports_Activity'; - protected $itemsDataType = 'array'; - 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_Reports_Activity extends Google_Collection -{ - protected $collection_key = 'events'; - protected $internal_gapi_mappings = array( - ); - protected $actorType = 'Google_Service_Reports_ActivityActor'; - protected $actorDataType = ''; - public $etag; - protected $eventsType = 'Google_Service_Reports_ActivityEvents'; - protected $eventsDataType = 'array'; - protected $idType = 'Google_Service_Reports_ActivityId'; - protected $idDataType = ''; - public $ipAddress; - public $kind; - public $ownerDomain; - - - public function setActor(Google_Service_Reports_ActivityActor $actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEvents($events) - { - $this->events = $events; - } - public function getEvents() - { - return $this->events; - } - public function setId(Google_Service_Reports_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_Reports_ActivityActor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $callerType; - public $email; - public $key; - public $profileId; - - - 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; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } -} - -class Google_Service_Reports_ActivityEvents extends Google_Collection -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $name; - protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters'; - protected $parametersDataType = 'array'; - public $type; - - - 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; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Reports_ActivityEventsParameters extends Google_Collection -{ - protected $collection_key = 'multiValue'; - protected $internal_gapi_mappings = array( - ); - public $boolValue; - public $intValue; - public $multiIntValue; - public $multiValue; - public $name; - public $value; - - - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } - public function getBoolValue() - { - return $this->boolValue; - } - public function setIntValue($intValue) - { - $this->intValue = $intValue; - } - public function getIntValue() - { - return $this->intValue; - } - public function setMultiIntValue($multiIntValue) - { - $this->multiIntValue = $multiIntValue; - } - public function getMultiIntValue() - { - return $this->multiIntValue; - } - public function setMultiValue($multiValue) - { - $this->multiValue = $multiValue; - } - public function getMultiValue() - { - return $this->multiValue; - } - 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_Reports_ActivityId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $applicationName; - public $customerId; - public $time; - public $uniqueQualifier; - - - public function setApplicationName($applicationName) - { - $this->applicationName = $applicationName; - } - public function getApplicationName() - { - return $this->applicationName; - } - 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 setUniqueQualifier($uniqueQualifier) - { - $this->uniqueQualifier = $uniqueQualifier; - } - public function getUniqueQualifier() - { - return $this->uniqueQualifier; - } -} - -class Google_Service_Reports_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function 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 setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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_Reports_UsageReport extends Google_Collection -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $date; - protected $entityType = 'Google_Service_Reports_UsageReportEntity'; - protected $entityDataType = ''; - public $etag; - public $kind; - protected $parametersType = 'Google_Service_Reports_UsageReportParameters'; - protected $parametersDataType = 'array'; - - - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setEntity(Google_Service_Reports_UsageReportEntity $entity) - { - $this->entity = $entity; - } - public function getEntity() - { - return $this->entity; - } - 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 setParameters($parameters) - { - $this->parameters = $parameters; - } - public function getParameters() - { - return $this->parameters; - } -} - -class Google_Service_Reports_UsageReportEntity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customerId; - public $profileId; - public $type; - public $userEmail; - - - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - public function getCustomerId() - { - return $this->customerId; - } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - public function getProfileId() - { - return $this->profileId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } - public function getUserEmail() - { - return $this->userEmail; - } -} - -class Google_Service_Reports_UsageReportParameters extends Google_Collection -{ - protected $collection_key = 'msgValue'; - protected $internal_gapi_mappings = array( - ); - public $boolValue; - public $datetimeValue; - public $intValue; - public $msgValue; - public $name; - public $stringValue; - - - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } - public function getBoolValue() - { - return $this->boolValue; - } - public function setDatetimeValue($datetimeValue) - { - $this->datetimeValue = $datetimeValue; - } - public function getDatetimeValue() - { - return $this->datetimeValue; - } - public function setIntValue($intValue) - { - $this->intValue = $intValue; - } - public function getIntValue() - { - return $this->intValue; - } - public function setMsgValue($msgValue) - { - $this->msgValue = $msgValue; - } - public function getMsgValue() - { - return $this->msgValue; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } - public function getStringValue() - { - return $this->stringValue; - } -} - -class Google_Service_Reports_UsageReports extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $nextPageToken; - protected $usageReportsType = 'Google_Service_Reports_UsageReport'; - protected $usageReportsDataType = 'array'; - protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings'; - protected $warningsDataType = 'array'; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function 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 setUsageReports($usageReports) - { - $this->usageReports = $usageReports; - } - public function getUsageReports() - { - return $this->usageReports; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Reports_UsageReportsWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Reports_UsageReportsWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php deleted file mode 100644 index bf71e908b..000000000 --- a/src/Google/Service/Reseller.php +++ /dev/null @@ -1,1153 +0,0 @@ - - * Creates and manages 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 -{ - /** Manage users on your domain. */ - const APPS_ORDER = - "https://www.googleapis.com/auth/apps.order"; - /** Manage users on your domain. */ - const APPS_ORDER_READONLY = - "https://www.googleapis.com/auth/apps.order.readonly"; - - public $customers; - public $subscriptions; - - - /** - * Constructs the internal representation of the Reseller service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'apps/reseller/v1/'; - $this->version = 'v1'; - $this->serviceName = 'reseller'; - - $this->customers = new Google_Service_Reseller_Customers_Resource( - $this, - $this->serviceName, - 'customers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'activate' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/activate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'changePlan' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'changeRenewalSettings' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'changeSeats' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deletionType' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customers/{customerId}/subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerNamePrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'startPaidService' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'suspend' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/suspend', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "customers" collection of methods. - * Typical usage is: - * - * $resellerService = new Google_Service_Reseller(...); - * $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); - return $this->call('get', array($params), "Google_Service_Reseller_Customer"); - } - - /** - * Creates a customer resource if one does not already exist. (customers.insert) - * - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken An auth token needed for inserting a - * customer for which domain already exists. Can be generated at - * https://admin.google.com/TransferToken. Optional. - * @return Google_Service_Reseller_Customer - */ - public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); - } - - /** - * Update a customer resource if one it exists and is owned by the reseller. - * This method supports patch semantics. (customers.patch) - * - * @param string $customerId Id of the Customer - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Customer - */ - public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); - } - - /** - * Update a customer resource if one it exists and is owned by the reseller. - * (customers.update) - * - * @param string $customerId Id of the Customer - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Customer - */ - public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Reseller_Customer"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $resellerService = new Google_Service_Reseller(...); - * $subscriptions = $resellerService->subscriptions; - * - */ -class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource -{ - - /** - * Activates a subscription previously suspended by the reseller - * (subscriptions.activate) - * - * @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 activate($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('activate', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Changes the plan of a subscription (subscriptions.changePlan) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param Google_ChangePlanRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Changes the renewal settings of a subscription - * (subscriptions.changeRenewalSettings) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param Google_RenewalSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Changes the seats configuration of a subscription (subscriptions.changeSeats) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param Google_Seats $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Cancels/Downgrades a subscription. (subscriptions.delete) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param string $deletionType Whether the subscription is to be fully cancelled - * or downgraded - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a subscription of the customer. (subscriptions.get) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function get($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Creates/Transfers a subscription for the customer. (subscriptions.insert) - * - * @param string $customerId Id of the Customer - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken An auth token needed for transferring a - * subscription. Can be generated at https://www.google.com/a/cpanel/customer- - * domain/TransferToken. Optional. - * @return Google_Service_Reseller_Subscription - */ - public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Lists subscriptions of a reseller, optionally filtered by a customer name - * prefix. (subscriptions.listSubscriptions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken An auth token needed if the customer is - * not a resold customer of this reseller. Can be generated at - * https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. - * @opt_param string customerId Id of the Customer - * @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); - return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions"); - } - - /** - * Starts paid service of a trial subscription (subscriptions.startPaidService) - * - * @param string $customerId Id of the Customer - * @param string $subscriptionId Id of the subscription, which is unique for a - * customer - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function startPaidService($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); - } - - /** - * Suspends an active subscription (subscriptions.suspend) - * - * @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 suspend($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription"); - } -} - - - - -class Google_Service_Reseller_Address extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $planName; - public $purchaseOrderId; - protected $seatsType = 'Google_Service_Reseller_Seats'; - protected $seatsDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $alternateEmail; - public $customerDomain; - public $customerDomainVerified; - public $customerId; - public $kind; - public $phoneNumber; - protected $postalAddressType = 'Google_Service_Reseller_Address'; - protected $postalAddressDataType = ''; - public $resourceUiUrl; - - - public function setAlternateEmail($alternateEmail) - { - $this->alternateEmail = $alternateEmail; - } - public function getAlternateEmail() - { - return $this->alternateEmail; - } - public function setCustomerDomain($customerDomain) - { - $this->customerDomain = $customerDomain; - } - public function getCustomerDomain() - { - return $this->customerDomain; - } - public function setCustomerDomainVerified($customerDomainVerified) - { - $this->customerDomainVerified = $customerDomainVerified; - } - public function getCustomerDomainVerified() - { - return $this->customerDomainVerified; - } - 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; - } - public function setResourceUiUrl($resourceUiUrl) - { - $this->resourceUiUrl = $resourceUiUrl; - } - public function getResourceUiUrl() - { - return $this->resourceUiUrl; - } -} - -class Google_Service_Reseller_RenewalSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $licensedNumberOfSeats; - public $maximumNumberOfSeats; - public $numberOfSeats; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLicensedNumberOfSeats($licensedNumberOfSeats) - { - $this->licensedNumberOfSeats = $licensedNumberOfSeats; - } - public function getLicensedNumberOfSeats() - { - return $this->licensedNumberOfSeats; - } - 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_Collection -{ - protected $collection_key = 'suspensionReasons'; - protected $internal_gapi_mappings = array( - ); - public $billingMethod; - public $creationTime; - public $customerDomain; - public $customerId; - public $kind; - protected $planType = 'Google_Service_Reseller_SubscriptionPlan'; - protected $planDataType = ''; - public $purchaseOrderId; - protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings'; - protected $renewalSettingsDataType = ''; - public $resourceUiUrl; - protected $seatsType = 'Google_Service_Reseller_Seats'; - protected $seatsDataType = ''; - public $skuId; - public $status; - public $subscriptionId; - public $suspensionReasons; - protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; - protected $transferInfoDataType = ''; - protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; - protected $trialSettingsDataType = ''; - - - public function setBillingMethod($billingMethod) - { - $this->billingMethod = $billingMethod; - } - public function getBillingMethod() - { - return $this->billingMethod; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - 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 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 setResourceUiUrl($resourceUiUrl) - { - $this->resourceUiUrl = $resourceUiUrl; - } - public function getResourceUiUrl() - { - return $this->resourceUiUrl; - } - 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 setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setSubscriptionId($subscriptionId) - { - $this->subscriptionId = $subscriptionId; - } - public function getSubscriptionId() - { - return $this->subscriptionId; - } - public function setSuspensionReasons($suspensionReasons) - { - $this->suspensionReasons = $suspensionReasons; - } - public function getSuspensionReasons() - { - return $this->suspensionReasons; - } - public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) - { - $this->transferInfo = $transferInfo; - } - public function getTransferInfo() - { - return $this->transferInfo; - } - 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 $internal_gapi_mappings = array( - ); - protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval'; - protected $commitmentIntervalDataType = ''; - public $isCommitmentPlan; - public $planName; - - - public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval) - { - $this->commitmentInterval = $commitmentInterval; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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_SubscriptionTransferInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $minimumTransferableSeats; - public $transferabilityExpirationTime; - - - public function setMinimumTransferableSeats($minimumTransferableSeats) - { - $this->minimumTransferableSeats = $minimumTransferableSeats; - } - public function getMinimumTransferableSeats() - { - return $this->minimumTransferableSeats; - } - public function setTransferabilityExpirationTime($transferabilityExpirationTime) - { - $this->transferabilityExpirationTime = $transferabilityExpirationTime; - } - public function getTransferabilityExpirationTime() - { - return $this->transferabilityExpirationTime; - } -} - -class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'subscriptions'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; - protected $subscriptionsDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSubscriptions($subscriptions) - { - $this->subscriptions = $subscriptions; - } - public function getSubscriptions() - { - return $this->subscriptions; - } -} diff --git a/src/Google/Service/Resourceviews.php b/src/Google/Service/Resourceviews.php deleted file mode 100644 index 2b37766ce..000000000 --- a/src/Google/Service/Resourceviews.php +++ /dev/null @@ -1,1341 +0,0 @@ - - * The Resource View API allows users to create and manage logical sets of - * Google Compute Engine instances.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Resourceviews extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $zoneOperations; - public $zoneViews; - - - /** - * Constructs the internal representation of the Resourceviews service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'resourceviews/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'resourceviews'; - - $this->zoneOperations = new Google_Service_Resourceviews_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->zoneViews = new Google_Service_Resourceviews_ZoneViews_Resource( - $this, - $this->serviceName, - 'zoneViews', - array( - 'methods' => array( - 'addResources' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getService' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/getService', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/resourceViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/resourceViews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listResources' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/resources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'listState' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serviceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeResources' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setService' => array( - 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/setService', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceView' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "zoneOperations" collection of methods. - * Typical usage is: - * - * $resourceviewsService = new Google_Service_Resourceviews(...); - * $zoneOperations = $resourceviewsService->zoneOperations; - * - */ -class Google_Service_Resourceviews_ZoneOperations_Resource extends Google_Service_Resource -{ - - /** - * 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_Resourceviews_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Resourceviews_Operation"); - } - - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @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_Resourceviews_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_OperationList"); - } -} - -/** - * The "zoneViews" collection of methods. - * Typical usage is: - * - * $resourceviewsService = new Google_Service_Resourceviews(...); - * $zoneViews = $resourceviewsService->zoneViews; - * - */ -class Google_Service_Resourceviews_ZoneViews_Resource extends Google_Service_Resource -{ - - /** - * Add resources to the view. (zoneViews.addResources) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param Google_ZoneViewsAddResourcesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_Operation - */ - public function addResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addResources', array($params), "Google_Service_Resourceviews_Operation"); - } - - /** - * Delete a resource view. (zoneViews.delete) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_Operation - */ - public function delete($project, $zone, $resourceView, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Resourceviews_Operation"); - } - - /** - * Get the information of a zonal resource view. (zoneViews.get) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ResourceView - */ - public function get($project, $zone, $resourceView, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); - } - - /** - * Get the service information of a resource view or a resource. - * (zoneViews.getService) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string resourceName The name of the resource if user wants to get - * the service information of the resource. - * @return Google_Service_Resourceviews_ZoneViewsGetServiceResponse - */ - public function getService($project, $zone, $resourceView, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); - $params = array_merge($params, $optParams); - return $this->call('getService', array($params), "Google_Service_Resourceviews_ZoneViewsGetServiceResponse"); - } - - /** - * Create a resource view. (zoneViews.insert) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param Google_ResourceView $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_Operation - */ - public function insert($project, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Resourceviews_Operation"); - } - - /** - * List resource views. (zoneViews.listZoneViews) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 5000, inclusive. (Default: 5000) - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @return Google_Service_Resourceviews_ZoneViewsList - */ - public function listZoneViews($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsList"); - } - - /** - * List the resources of the resource view. (zoneViews.listResources) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string format The requested format of the return value. It can be - * URL or URL_PORT. A JSON object will be included in the response based on the - * format. The default format is NONE, which results in no JSON in the response. - * @opt_param string listState The state of the instance to list. By default, it - * lists all instances. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 0 to 5000, inclusive. (Default: 5000) - * @opt_param string pageToken Specifies a nextPageToken returned by a previous - * list request. This token can be used to request the next page of results from - * a previous list request. - * @opt_param string serviceName The service name to return in the response. It - * is optional and if it is not set, all the service end points will be - * returned. - * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse - */ - public function listResources($project, $zone, $resourceView, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); - $params = array_merge($params, $optParams); - return $this->call('listResources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); - } - - /** - * Remove resources from the view. (zoneViews.removeResources) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param Google_ZoneViewsRemoveResourcesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_Operation - */ - public function removeResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeResources', array($params), "Google_Service_Resourceviews_Operation"); - } - - /** - * Update the service information of a resource view or a resource. - * (zoneViews.setService) - * - * @param string $project The project name of the resource view. - * @param string $zone The zone name of the resource view. - * @param string $resourceView The name of the resource view. - * @param Google_ZoneViewsSetServiceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_Operation - */ - public function setService($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsSetServiceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setService', array($params), "Google_Service_Resourceviews_Operation"); - } -} - - - - -class Google_Service_Resourceviews_Label extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Resourceviews_ListResourceResponseItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endpoints; - public $resource; - - - public function setEndpoints($endpoints) - { - $this->endpoints = $endpoints; - } - public function getEndpoints() - { - return $this->endpoints; - } - public function setResource($resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Resourceviews_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Resourceviews_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Resourceviews_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_Resourceviews_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Resourceviews_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_Resourceviews_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Resourceviews_OperationList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $id; - protected $itemsType = 'Google_Service_Resourceviews_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Resourceviews_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_Resourceviews_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Resourceviews_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Resourceviews_ResourceView extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $creationTimestamp; - public $description; - protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; - protected $endpointsDataType = 'array'; - public $fingerprint; - public $id; - public $kind; - protected $labelsType = 'Google_Service_Resourceviews_Label'; - protected $labelsDataType = 'array'; - public $name; - public $network; - public $resources; - public $selfLink; - public $size; - - - 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 setEndpoints($endpoints) - { - $this->endpoints = $endpoints; - } - public function getEndpoints() - { - return $this->endpoints; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - 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 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 setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } - 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; - } -} - -class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $port; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } -} - -class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $resources; - - - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection -{ - protected $collection_key = 'endpoints'; - protected $internal_gapi_mappings = array( - ); - protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; - protected $endpointsDataType = 'array'; - public $fingerprint; - - - public function setEndpoints($endpoints) - { - $this->endpoints = $endpoints; - } - public function getEndpoints() - { - return $this->endpoints; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } -} - -class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Resourceviews_ResourceView'; - protected $itemsDataType = 'array'; - 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_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Resourceviews_ListResourceResponseItem'; - protected $itemsDataType = 'array'; - public $network; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setNetwork($network) - { - $this->network = $network; - } - public function getNetwork() - { - return $this->network; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $resources; - - - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection -{ - protected $collection_key = 'endpoints'; - protected $internal_gapi_mappings = array( - ); - protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint'; - protected $endpointsDataType = 'array'; - public $fingerprint; - public $resourceName; - - - public function setEndpoints($endpoints) - { - $this->endpoints = $endpoints; - } - public function getEndpoints() - { - return $this->endpoints; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setResourceName($resourceName) - { - $this->resourceName = $resourceName; - } - public function getResourceName() - { - return $this->resourceName; - } -} diff --git a/src/Google/Service/SQLAdmin.php b/src/Google/Service/SQLAdmin.php deleted file mode 100644 index 7ea799084..000000000 --- a/src/Google/Service/SQLAdmin.php +++ /dev/null @@ -1,3841 +0,0 @@ - - * API for Cloud SQL database instance management.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $databases; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - public $users; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'sql/v1beta4/'; - $this->version = 'v1beta4'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->databases = new Google_Service_SQLAdmin_Databases_Resource( - $this, - $this->serviceName, - 'databases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/{instance}/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'failover' => array( - 'path' => 'projects/{project}/instances/{instance}/failover', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'startReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/startReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stopReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/stopReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'createEphemeral' => array( - 'path' => 'projects/{project}/instances/{instance}/createEphemeral', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_SQLAdmin_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $backupRuns = $sqladminService->backupRuns; - * - */ -class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource -{ - - /** - * Deletes the backup taken by a backup run. (backupRuns.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $id The ID of the Backup Run to delete. To find a Backup Run - * ID, use the list method. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $id, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a backup run. - * (backupRuns.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $id The ID of this Backup Run. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_BackupRun - */ - public function get($project, $instance, $id, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); - } - - /** - * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. - * (backupRuns.listBackupRuns) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults Maximum number of backup runs per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_BackupRunsListResponse - */ - public function listBackupRuns($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); - } -} - -/** - * The "databases" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $databases = $sqladminService->databases; - * - */ -class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource -{ - - /** - * Deletes a database from a Cloud SQL instance. (databases.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be deleted in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a database inside a Cloud - * SQL instance. (databases.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Database - */ - public function get($project, $instance, $database, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); - } - - /** - * Inserts a resource containing information about a database inside a Cloud SQL - * instance. (databases.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists databases in the specified Cloud SQL instance. - * (databases.listDatabases) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabasesListResponse - */ - public function listDatabases($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. This method supports patch semantics. (databases.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates a resource containing information about a database inside a Cloud SQL - * instance. (databases.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $database Name of the database to be updated in the instance. - * @param Google_Database $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "flags" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $flags = $sqladminService->flags; - * - */ -class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource -{ - - /** - * List all available database flags for Google Cloud SQL instances. - * (flags.listFlags) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_FlagsListResponse - */ - public function listFlags($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $instances = $sqladminService->instances; - * - */ -class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource -{ - - /** - * Creates a Cloud SQL instance as a clone of the source instance. The API is - * not ready for Second Generation instances yet. (instances.cloneInstances) - * - * @param string $project Project ID of the source as well as the clone Cloud - * SQL instance. - * @param string $instance The ID of the Cloud SQL instance to be cloned - * (source). This does not include the project ID. - * @param Google_InstancesCloneRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes a Cloud SQL instance. (instances.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) - * - * @param string $project Project ID of the project that contains the instance - * to be exported. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesExportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Failover the instance to its failover replica instance. (instances.failover) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesFailoverRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function failover($project, $instance, Google_Service_SQLAdmin_InstancesFailoverRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('failover', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a resource containing information about a Cloud SQL instance. - * (instances.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabaseInstance - */ - public function get($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); - } - - /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud - * Storage. (instances.import) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesImportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new Cloud SQL instance. (instances.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists instances under a given project in the alphabetical order of the - * instance name. (instances.listInstances) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of results to return per - * response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_InstancesListResponse - */ - public function listInstances($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch.. This method supports patch - * semantics. (instances.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Promotes the read replica instance to be a stand-alone Cloud SQL instance. - * (instances.promoteReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function promoteReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function resetSslConfig($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restarts a Cloud SQL instance. (instances.restart) - * - * @param string $project Project ID of the project that contains the instance - * to be restarted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restart($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstancesRestoreBackupRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Starts the replication in the read replica instance. (instances.startReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function startReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Stops the replication in the read replica instance. (instances.stopReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function stopReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch. (instances.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $operations = $sqladminService->operations; - * - */ -class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource -{ - - /** - * Retrieves an instance operation that has been performed on an instance. - * (operations.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $operation Instance operation ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists all instance operations that have been performed on the given Cloud SQL - * instance in the reverse chronological order of the start time. - * (operations.listOperations) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of operations per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Google_Service_SQLAdmin_OperationsListResponse - */ - public function listOperations($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); - } -} - -/** - * The "sslCerts" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $sslCerts = $sqladminService->sslCerts; - * - */ -class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource -{ - - /** - * Generates a short-lived X509 certificate containing the provided public key - * and signed by a private key specific to the target instance. Users may use - * the certificate to authenticate as themselves when connecting to the - * database. (sslCerts.createEphemeral) - * - * @param string $project Project ID of the Cloud SQL project. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_SslCertsCreateEphemeralRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCert - */ - public function createEphemeral($project, $instance, Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createEphemeral', array($params), "Google_Service_SQLAdmin_SslCert"); - } - - /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Retrieves a particular SSL certificate. Does not include the private key - * (required for usage). The private key must be saved from the response to - * initial creation. (sslCerts.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCert - */ - public function get($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); - } - - /** - * Creates an SSL certificate and returns it along with the private key and - * server certificate authority. The new certificate will not be usable until - * the instance is restarted. (sslCerts.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_SslCertsInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsInsertResponse - */ - public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); - } - - /** - * Lists all of the current SSL certificates for the instance. - * (sslCerts.listSslCerts) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsListResponse - */ - public function listSslCerts($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); - } -} - -/** - * The "tiers" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $tiers = $sqladminService->tiers; - * - */ -class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource -{ - - /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) - * - * @param string $project Project ID of the project for which to list tiers. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_TiersListResponse - */ - public function listTiers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); - } -} - -/** - * The "users" collection of methods. - * Typical usage is: - * - * $sqladminService = new Google_Service_SQLAdmin(...); - * $users = $sqladminService->users; - * - */ -class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource -{ - - /** - * Deletes a user from a Cloud SQL instance. (users.delete) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function delete($project, $instance, $host, $name, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Creates a new user in a Cloud SQL instance. (users.insert) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); - } - - /** - * Lists users in the specified Cloud SQL instance. (users.listUsers) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_UsersListResponse - */ - public function listUsers($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); - } - - /** - * Updates an existing user in a Cloud SQL instance. (users.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param string $host Host of the user in the instance. - * @param string $name Name of the user in the instance. - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_Operation - */ - public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); - } -} - - - - -class Google_Service_SQLAdmin_AclEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expirationTime; - public $kind; - public $name; - public $value; - - - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - 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 setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binaryLogEnabled; - public $enabled; - public $kind; - public $startTime; - - - public function setBinaryLogEnabled($binaryLogEnabled) - { - $this->binaryLogEnabled = $binaryLogEnabled; - } - public function getBinaryLogEnabled() - { - return $this->binaryLogEnabled; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_SQLAdmin_BackupRun extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - public $id; - public $instance; - public $kind; - public $selfLink; - public $startTime; - public $status; - public $windowStartTime; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function 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 setWindowStartTime($windowStartTime) - { - $this->windowStartTime = $windowStartTime; - } - public function getWindowStartTime() - { - return $this->windowStartTime; - } -} - -class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binLogFileName; - public $binLogPosition; - public $kind; - - - public function setBinLogFileName($binLogFileName) - { - $this->binLogFileName = $binLogFileName; - } - public function getBinLogFileName() - { - return $this->binLogFileName; - } - public function setBinLogPosition($binLogPosition) - { - $this->binLogPosition = $binLogPosition; - } - public function getBinLogPosition() - { - return $this->binLogPosition; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_CloneContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; - protected $binLogCoordinatesDataType = ''; - public $destinationInstanceName; - public $kind; - - - public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) - { - $this->binLogCoordinates = $binLogCoordinates; - } - public function getBinLogCoordinates() - { - return $this->binLogCoordinates; - } - public function setDestinationInstanceName($destinationInstanceName) - { - $this->destinationInstanceName = $destinationInstanceName; - } - public function getDestinationInstanceName() - { - return $this->destinationInstanceName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Database extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $charset; - public $collation; - public $etag; - public $instance; - public $kind; - public $name; - public $project; - public $selfLink; - - - public function setCharset($charset) - { - $this->charset = $charset; - } - public function getCharset() - { - return $this->charset; - } - public function setCollation($collation) - { - $this->collation = $collation; - } - public function getCollation() - { - return $this->collation; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_SQLAdmin_DatabaseInstance extends Google_Collection -{ - protected $collection_key = 'suspensionReason'; - protected $internal_gapi_mappings = array( - ); - public $backendType; - public $currentDiskSize; - public $databaseVersion; - public $etag; - protected $failoverReplicaType = 'Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica'; - protected $failoverReplicaDataType = ''; - public $instanceType; - protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; - protected $ipAddressesDataType = 'array'; - public $ipv6Address; - public $kind; - public $masterInstanceName; - public $maxDiskSize; - public $name; - protected $onPremisesConfigurationType = 'Google_Service_SQLAdmin_OnPremisesConfiguration'; - protected $onPremisesConfigurationDataType = ''; - public $project; - public $region; - protected $replicaConfigurationType = 'Google_Service_SQLAdmin_ReplicaConfiguration'; - protected $replicaConfigurationDataType = ''; - public $replicaNames; - public $selfLink; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - public $serviceAccountEmailAddress; - protected $settingsType = 'Google_Service_SQLAdmin_Settings'; - protected $settingsDataType = ''; - public $state; - public $suspensionReason; - - - public function setBackendType($backendType) - { - $this->backendType = $backendType; - } - public function getBackendType() - { - return $this->backendType; - } - public function setCurrentDiskSize($currentDiskSize) - { - $this->currentDiskSize = $currentDiskSize; - } - public function getCurrentDiskSize() - { - return $this->currentDiskSize; - } - public function setDatabaseVersion($databaseVersion) - { - $this->databaseVersion = $databaseVersion; - } - public function getDatabaseVersion() - { - return $this->databaseVersion; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFailoverReplica(Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica $failoverReplica) - { - $this->failoverReplica = $failoverReplica; - } - public function getFailoverReplica() - { - return $this->failoverReplica; - } - public function setInstanceType($instanceType) - { - $this->instanceType = $instanceType; - } - public function getInstanceType() - { - return $this->instanceType; - } - public function setIpAddresses($ipAddresses) - { - $this->ipAddresses = $ipAddresses; - } - public function getIpAddresses() - { - return $this->ipAddresses; - } - public function setIpv6Address($ipv6Address) - { - $this->ipv6Address = $ipv6Address; - } - public function getIpv6Address() - { - return $this->ipv6Address; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMasterInstanceName($masterInstanceName) - { - $this->masterInstanceName = $masterInstanceName; - } - public function getMasterInstanceName() - { - return $this->masterInstanceName; - } - public function setMaxDiskSize($maxDiskSize) - { - $this->maxDiskSize = $maxDiskSize; - } - public function getMaxDiskSize() - { - return $this->maxDiskSize; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOnPremisesConfiguration(Google_Service_SQLAdmin_OnPremisesConfiguration $onPremisesConfiguration) - { - $this->onPremisesConfiguration = $onPremisesConfiguration; - } - public function getOnPremisesConfiguration() - { - return $this->onPremisesConfiguration; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setReplicaConfiguration(Google_Service_SQLAdmin_ReplicaConfiguration $replicaConfiguration) - { - $this->replicaConfiguration = $replicaConfiguration; - } - public function getReplicaConfiguration() - { - return $this->replicaConfiguration; - } - public function setReplicaNames($replicaNames) - { - $this->replicaNames = $replicaNames; - } - public function getReplicaNames() - { - return $this->replicaNames; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } - public function setServiceAccountEmailAddress($serviceAccountEmailAddress) - { - $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; - } - public function getServiceAccountEmailAddress() - { - return $this->serviceAccountEmailAddress; - } - public function setSettings(Google_Service_SQLAdmin_Settings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setSuspensionReason($suspensionReason) - { - $this->suspensionReason = $suspensionReason; - } - public function getSuspensionReason() - { - return $this->suspensionReason; - } -} - -class Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $available; - public $name; - - - public function setAvailable($available) - { - $this->available = $available; - } - public function getAvailable() - { - return $this->available; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Database'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ExportContext extends Google_Collection -{ - protected $collection_key = 'databases'; - protected $internal_gapi_mappings = array( - ); - protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; - protected $csvExportOptionsDataType = ''; - public $databases; - public $fileType; - public $kind; - protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; - protected $sqlExportOptionsDataType = ''; - public $uri; - - - public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) - { - $this->csvExportOptions = $csvExportOptions; - } - public function getCsvExportOptions() - { - return $this->csvExportOptions; - } - public function setDatabases($databases) - { - $this->databases = $databases; - } - public function getDatabases() - { - return $this->databases; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) - { - $this->sqlExportOptions = $sqlExportOptions; - } - public function getSqlExportOptions() - { - return $this->sqlExportOptions; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $selectQuery; - - - public function setSelectQuery($selectQuery) - { - $this->selectQuery = $selectQuery; - } - public function getSelectQuery() - { - return $this->selectQuery; - } -} - -class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection -{ - protected $collection_key = 'tables'; - protected $internal_gapi_mappings = array( - ); - public $schemaOnly; - public $tables; - - - public function setSchemaOnly($schemaOnly) - { - $this->schemaOnly = $schemaOnly; - } - public function getSchemaOnly() - { - return $this->schemaOnly; - } - public function setTables($tables) - { - $this->tables = $tables; - } - public function getTables() - { - return $this->tables; - } -} - -class Google_Service_SQLAdmin_FailoverContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $settingsVersion; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } - public function getSettingsVersion() - { - return $this->settingsVersion; - } -} - -class Google_Service_SQLAdmin_Flag extends Google_Collection -{ - protected $collection_key = 'appliesTo'; - protected $internal_gapi_mappings = array( - ); - public $allowedStringValues; - public $appliesTo; - public $kind; - public $maxValue; - public $minValue; - public $name; - public $requiresRestart; - public $type; - - - public function setAllowedStringValues($allowedStringValues) - { - $this->allowedStringValues = $allowedStringValues; - } - public function getAllowedStringValues() - { - return $this->allowedStringValues; - } - public function setAppliesTo($appliesTo) - { - $this->appliesTo = $appliesTo; - } - public function getAppliesTo() - { - return $this->appliesTo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setRequiresRestart($requiresRestart) - { - $this->requiresRestart = $requiresRestart; - } - public function getRequiresRestart() - { - return $this->requiresRestart; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Flag'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_ImportContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; - protected $csvImportOptionsDataType = ''; - public $database; - public $fileType; - public $kind; - public $uri; - - - public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) - { - $this->csvImportOptions = $csvImportOptions; - } - public function getCsvImportOptions() - { - return $this->csvImportOptions; - } - public function setDatabase($database) - { - $this->database = $database; - } - public function getDatabase() - { - return $this->database; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection -{ - protected $collection_key = 'columns'; - protected $internal_gapi_mappings = array( - ); - public $columns; - public $table; - - - public function setColumns($columns) - { - $this->columns = $columns; - } - public function getColumns() - { - return $this->columns; - } - public function setTable($table) - { - $this->table = $table; - } - public function getTable() - { - return $this->table; - } -} - -class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; - protected $cloneContextDataType = ''; - - - public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) - { - $this->cloneContext = $cloneContext; - } - public function getCloneContext() - { - return $this->cloneContext; - } -} - -class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - - - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } -} - -class Google_Service_SQLAdmin_InstancesFailoverRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $failoverContextType = 'Google_Service_SQLAdmin_FailoverContext'; - protected $failoverContextDataType = ''; - - - public function setFailoverContext(Google_Service_SQLAdmin_FailoverContext $failoverContext) - { - $this->failoverContext = $failoverContext; - } - public function getFailoverContext() - { - return $this->failoverContext; - } -} - -class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - - - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } -} - -class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; - protected $restoreBackupContextDataType = ''; - - - public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) - { - $this->restoreBackupContext = $restoreBackupContext; - } - public function getRestoreBackupContext() - { - return $this->restoreBackupContext; - } -} - -class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection -{ - protected $collection_key = 'authorizedNetworks'; - protected $internal_gapi_mappings = array( - ); - protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; - protected $authorizedNetworksDataType = 'array'; - public $ipv4Enabled; - public $requireSsl; - - - public function setAuthorizedNetworks($authorizedNetworks) - { - $this->authorizedNetworks = $authorizedNetworks; - } - public function getAuthorizedNetworks() - { - return $this->authorizedNetworks; - } - public function setIpv4Enabled($ipv4Enabled) - { - $this->ipv4Enabled = $ipv4Enabled; - } - public function getIpv4Enabled() - { - return $this->ipv4Enabled; - } - public function setRequireSsl($requireSsl) - { - $this->requireSsl = $requireSsl; - } - public function getRequireSsl() - { - return $this->requireSsl; - } -} - -class Google_Service_SQLAdmin_IpMapping extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $timeToRetire; - - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setTimeToRetire($timeToRetire) - { - $this->timeToRetire = $timeToRetire; - } - public function getTimeToRetire() - { - return $this->timeToRetire; - } -} - -class Google_Service_SQLAdmin_LocationPreference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $followGaeApplication; - public $kind; - public $zone; - - - public function setFollowGaeApplication($followGaeApplication) - { - $this->followGaeApplication = $followGaeApplication; - } - public function getFollowGaeApplication() - { - return $this->followGaeApplication; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_SQLAdmin_MaintenanceWindow extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $day; - public $hour; - public $kind; - public $updateTrack; - - - public function setDay($day) - { - $this->day = $day; - } - public function getDay() - { - return $this->day; - } - public function setHour($hour) - { - $this->hour = $hour; - } - public function getHour() - { - return $this->hour; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUpdateTrack($updateTrack) - { - $this->updateTrack = $updateTrack; - } - public function getUpdateTrack() - { - return $this->updateTrack; - } -} - -class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caCertificate; - public $clientCertificate; - public $clientKey; - public $connectRetryInterval; - public $dumpFilePath; - public $kind; - public $masterHeartbeatPeriod; - public $password; - public $sslCipher; - public $username; - public $verifyServerCertificate; - - - public function setCaCertificate($caCertificate) - { - $this->caCertificate = $caCertificate; - } - public function getCaCertificate() - { - return $this->caCertificate; - } - public function setClientCertificate($clientCertificate) - { - $this->clientCertificate = $clientCertificate; - } - public function getClientCertificate() - { - return $this->clientCertificate; - } - public function setClientKey($clientKey) - { - $this->clientKey = $clientKey; - } - public function getClientKey() - { - return $this->clientKey; - } - public function setConnectRetryInterval($connectRetryInterval) - { - $this->connectRetryInterval = $connectRetryInterval; - } - public function getConnectRetryInterval() - { - return $this->connectRetryInterval; - } - public function setDumpFilePath($dumpFilePath) - { - $this->dumpFilePath = $dumpFilePath; - } - public function getDumpFilePath() - { - return $this->dumpFilePath; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMasterHeartbeatPeriod($masterHeartbeatPeriod) - { - $this->masterHeartbeatPeriod = $masterHeartbeatPeriod; - } - public function getMasterHeartbeatPeriod() - { - return $this->masterHeartbeatPeriod; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setSslCipher($sslCipher) - { - $this->sslCipher = $sslCipher; - } - public function getSslCipher() - { - return $this->sslCipher; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } - public function setVerifyServerCertificate($verifyServerCertificate) - { - $this->verifyServerCertificate = $verifyServerCertificate; - } - public function getVerifyServerCertificate() - { - return $this->verifyServerCertificate; - } -} - -class Google_Service_SQLAdmin_OnPremisesConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hostPort; - public $kind; - - - public function setHostPort($hostPort) - { - $this->hostPort = $hostPort; - } - public function getHostPort() - { - return $this->hostPort; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $endTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationErrors'; - protected $errorDataType = ''; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $selfLink; - public $startTime; - public $status; - public $targetId; - public $targetLink; - public $targetProject; - public $user; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setError(Google_Service_SQLAdmin_OperationErrors $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - 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 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 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 setTargetProject($targetProject) - { - $this->targetProject = $targetProject; - } - public function getTargetProject() - { - return $this->targetProject; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } -} - -class Google_Service_SQLAdmin_OperationError extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_SQLAdmin_OperationErrors extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorsDataType = 'array'; - public $kind; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $failoverTarget; - public $kind; - protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration'; - protected $mysqlReplicaConfigurationDataType = ''; - - - public function setFailoverTarget($failoverTarget) - { - $this->failoverTarget = $failoverTarget; - } - public function getFailoverTarget() - { - return $this->failoverTarget; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMysqlReplicaConfiguration(Google_Service_SQLAdmin_MySqlReplicaConfiguration $mysqlReplicaConfiguration) - { - $this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration; - } - public function getMysqlReplicaConfiguration() - { - return $this->mysqlReplicaConfiguration; - } -} - -class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupRunId; - public $instanceId; - public $kind; - - - public function setBackupRunId($backupRunId) - { - $this->backupRunId = $backupRunId; - } - public function getBackupRunId() - { - return $this->backupRunId; - } - public function setInstanceId($instanceId) - { - $this->instanceId = $instanceId; - } - public function getInstanceId() - { - return $this->instanceId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Settings extends Google_Collection -{ - protected $collection_key = 'databaseFlags'; - protected $internal_gapi_mappings = array( - ); - public $activationPolicy; - public $authorizedGaeApplications; - protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = ''; - public $crashSafeReplicationEnabled; - public $dataDiskSizeGb; - public $dataDiskType; - protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; - protected $databaseFlagsDataType = 'array'; - public $databaseReplicationEnabled; - protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; - protected $ipConfigurationDataType = ''; - public $kind; - protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; - protected $locationPreferenceDataType = ''; - protected $maintenanceWindowType = 'Google_Service_SQLAdmin_MaintenanceWindow'; - protected $maintenanceWindowDataType = ''; - public $pricingPlan; - public $replicationType; - public $settingsVersion; - public $tier; - - - public function setActivationPolicy($activationPolicy) - { - $this->activationPolicy = $activationPolicy; - } - public function getActivationPolicy() - { - return $this->activationPolicy; - } - public function setAuthorizedGaeApplications($authorizedGaeApplications) - { - $this->authorizedGaeApplications = $authorizedGaeApplications; - } - public function getAuthorizedGaeApplications() - { - return $this->authorizedGaeApplications; - } - public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled) - { - $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled; - } - public function getCrashSafeReplicationEnabled() - { - return $this->crashSafeReplicationEnabled; - } - public function setDataDiskSizeGb($dataDiskSizeGb) - { - $this->dataDiskSizeGb = $dataDiskSizeGb; - } - public function getDataDiskSizeGb() - { - return $this->dataDiskSizeGb; - } - public function setDataDiskType($dataDiskType) - { - $this->dataDiskType = $dataDiskType; - } - public function getDataDiskType() - { - return $this->dataDiskType; - } - public function setDatabaseFlags($databaseFlags) - { - $this->databaseFlags = $databaseFlags; - } - public function getDatabaseFlags() - { - return $this->databaseFlags; - } - public function setDatabaseReplicationEnabled($databaseReplicationEnabled) - { - $this->databaseReplicationEnabled = $databaseReplicationEnabled; - } - public function getDatabaseReplicationEnabled() - { - return $this->databaseReplicationEnabled; - } - public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) - { - $this->ipConfiguration = $ipConfiguration; - } - public function getIpConfiguration() - { - return $this->ipConfiguration; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) - { - $this->locationPreference = $locationPreference; - } - public function getLocationPreference() - { - return $this->locationPreference; - } - public function setMaintenanceWindow(Google_Service_SQLAdmin_MaintenanceWindow $maintenanceWindow) - { - $this->maintenanceWindow = $maintenanceWindow; - } - public function getMaintenanceWindow() - { - return $this->maintenanceWindow; - } - public function setPricingPlan($pricingPlan) - { - $this->pricingPlan = $pricingPlan; - } - public function getPricingPlan() - { - return $this->pricingPlan; - } - public function setReplicationType($replicationType) - { - $this->replicationType = $replicationType; - } - public function getReplicationType() - { - return $this->replicationType; - } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } - public function getSettingsVersion() - { - return $this->settingsVersion; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_SslCert extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cert; - public $certSerialNumber; - public $commonName; - public $createTime; - public $expirationTime; - public $instance; - public $kind; - public $selfLink; - public $sha1Fingerprint; - - - public function setCert($cert) - { - $this->cert = $cert; - } - public function getCert() - { - return $this->cert; - } - public function setCertSerialNumber($certSerialNumber) - { - $this->certSerialNumber = $certSerialNumber; - } - public function getCertSerialNumber() - { - return $this->certSerialNumber; - } - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setSha1Fingerprint($sha1Fingerprint) - { - $this->sha1Fingerprint = $sha1Fingerprint; - } - public function getSha1Fingerprint() - { - return $this->sha1Fingerprint; - } -} - -class Google_Service_SQLAdmin_SslCertDetail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; - protected $certInfoDataType = ''; - public $certPrivateKey; - - - public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) - { - $this->certInfo = $certInfo; - } - public function getCertInfo() - { - return $this->certInfo; - } - public function setCertPrivateKey($certPrivateKey) - { - $this->certPrivateKey = $certPrivateKey; - } - public function getCertPrivateKey() - { - return $this->certPrivateKey; - } -} - -class Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - "publicKey" => "public_key", - ); - public $publicKey; - - - public function setPublicKey($publicKey) - { - $this->publicKey = $publicKey; - } - public function getPublicKey() - { - return $this->publicKey; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commonName; - - - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } -} - -class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; - protected $clientCertDataType = ''; - public $kind; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - - - public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) - { - $this->clientCert = $clientCert; - } - public function getClientCert() - { - return $this->clientCert; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } -} - -class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_Tier extends Google_Collection -{ - protected $collection_key = 'region'; - protected $internal_gapi_mappings = array( - "diskQuota" => "DiskQuota", - "rAM" => "RAM", - ); - public $diskQuota; - public $rAM; - public $kind; - public $region; - public $tier; - - - public function setDiskQuota($diskQuota) - { - $this->diskQuota = $diskQuota; - } - public function getDiskQuota() - { - return $this->diskQuota; - } - public function setRAM($rAM) - { - $this->rAM = $rAM; - } - public function getRAM() - { - return $this->rAM; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_Tier'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_SQLAdmin_User extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $host; - public $instance; - public $kind; - public $name; - public $password; - public $project; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setHost($host) - { - $this->host = $host; - } - public function getHost() - { - return $this->host; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } -} - -class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SQLAdmin_User'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} diff --git a/src/Google/Service/Script.php b/src/Google/Service/Script.php deleted file mode 100644 index 61406feec..000000000 --- a/src/Google/Service/Script.php +++ /dev/null @@ -1,356 +0,0 @@ - - * An API for executing Google Apps Script projects.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Script extends Google_Service -{ - /** View and manage your mail. */ - const MAIL_GOOGLE_COM = - "https://mail.google.com/"; - /** Manage your calendars. */ - const WWW_GOOGLE_COM_CALENDAR_FEEDS = - "https://www.google.com/calendar/feeds"; - /** Manage your contacts. */ - const WWW_GOOGLE_COM_M8_FEEDS = - "https://www.google.com/m8/feeds"; - /** View and manage the provisioning of groups on your domain. */ - const ADMIN_DIRECTORY_GROUP = - "https://www.googleapis.com/auth/admin.directory.group"; - /** View and manage the provisioning of users on your domain. */ - const ADMIN_DIRECTORY_USER = - "https://www.googleapis.com/auth/admin.directory.user"; - /** View and manage the files in your Google Drive. */ - const DRIVE = - "https://www.googleapis.com/auth/drive"; - /** View and manage your forms in Google Drive. */ - const FORMS = - "https://www.googleapis.com/auth/forms"; - /** View and manage forms that this application has been installed in. */ - const FORMS_CURRENTONLY = - "https://www.googleapis.com/auth/forms.currentonly"; - /** View and manage your Google Groups. */ - const GROUPS = - "https://www.googleapis.com/auth/groups"; - /** View your email address. */ - const USERINFO_EMAIL = - "https://www.googleapis.com/auth/userinfo.email"; - - public $scripts; - - - /** - * Constructs the internal representation of the Script service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://script.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'script'; - - $this->scripts = new Google_Service_Script_Scripts_Resource( - $this, - $this->serviceName, - 'scripts', - array( - 'methods' => array( - 'run' => array( - 'path' => 'v1/scripts/{scriptId}:run', - 'httpMethod' => 'POST', - 'parameters' => array( - 'scriptId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "scripts" collection of methods. - * Typical usage is: - * - * $scriptService = new Google_Service_Script(...); - * $scripts = $scriptService->scripts; - * - */ -class Google_Service_Script_Scripts_Resource extends Google_Service_Resource -{ - - /** - * Runs a function in an Apps Script project that has been deployed for use with - * the Apps Script Execution API. This method requires authorization with an - * OAuth 2.0 token that includes at least one of the scopes listed in the - * [Authentication](#authentication) section; script projects that do not - * require authorization cannot be executed through this API. To find the - * correct scopes to include in the authentication token, open the project in - * the script editor, then select **File > Project properties** and click the - * **Scopes** tab. (scripts.run) - * - * @param string $scriptId The project key of the script to be executed. To find - * the project key, open the project in the script editor, then select **File > - * Project properties**. - * @param Google_ExecutionRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Script_Operation - */ - public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array()) - { - $params = array('scriptId' => $scriptId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('run', array($params), "Google_Service_Script_Operation"); - } -} - - - - -class Google_Service_Script_ExecutionError extends Google_Collection -{ - protected $collection_key = 'scriptStackTraceElements'; - protected $internal_gapi_mappings = array( - ); - public $errorMessage; - public $errorType; - protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement'; - protected $scriptStackTraceElementsDataType = 'array'; - - - public function setErrorMessage($errorMessage) - { - $this->errorMessage = $errorMessage; - } - public function getErrorMessage() - { - return $this->errorMessage; - } - public function setErrorType($errorType) - { - $this->errorType = $errorType; - } - public function getErrorType() - { - return $this->errorType; - } - public function setScriptStackTraceElements($scriptStackTraceElements) - { - $this->scriptStackTraceElements = $scriptStackTraceElements; - } - public function getScriptStackTraceElements() - { - return $this->scriptStackTraceElements; - } -} - -class Google_Service_Script_ExecutionRequest extends Google_Collection -{ - protected $collection_key = 'parameters'; - protected $internal_gapi_mappings = array( - ); - public $devMode; - public $function; - public $parameters; - public $sessionState; - - - public function setDevMode($devMode) - { - $this->devMode = $devMode; - } - public function getDevMode() - { - return $this->devMode; - } - public function setFunction($function) - { - $this->function = $function; - } - public function getFunction() - { - return $this->function; - } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } - public function getParameters() - { - return $this->parameters; - } - public function setSessionState($sessionState) - { - $this->sessionState = $sessionState; - } - public function getSessionState() - { - return $this->sessionState; - } -} - -class Google_Service_Script_ExecutionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $result; - - - public function setResult($result) - { - $this->result = $result; - } - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Script_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_Script_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_Script_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Script_ScriptStackTraceElement extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $function; - public $lineNumber; - - - public function setFunction($function) - { - $this->function = $function; - } - public function getFunction() - { - return $this->function; - } - public function setLineNumber($lineNumber) - { - $this->lineNumber = $lineNumber; - } - public function getLineNumber() - { - return $this->lineNumber; - } -} - -class Google_Service_Script_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} diff --git a/src/Google/Service/ServiceRegistry.php b/src/Google/Service/ServiceRegistry.php deleted file mode 100644 index 3d8732958..000000000 --- a/src/Google/Service/ServiceRegistry.php +++ /dev/null @@ -1,966 +0,0 @@ - - * The Service Registry API allows users to manage service endpoints in Service - * Registry and use DNS-based service discovery / name resolution.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_ServiceRegistry extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = - "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = - "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - - public $endpoints; - public $operations; - - - /** - * Constructs the internal representation of the ServiceRegistry service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'serviceregistry/alpha/projects/'; - $this->version = 'alpha'; - $this->serviceName = 'serviceregistry'; - - $this->endpoints = new Google_Service_ServiceRegistry_Endpoints_Resource( - $this, - $this->serviceName, - 'endpoints', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/endpoints/{endpoint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endpoint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/endpoints/{endpoint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endpoint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/endpoints', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/endpoints', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/endpoints/{endpoint}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endpoint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/endpoints/{endpoint}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endpoint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_ServiceRegistry_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "endpoints" collection of methods. - * Typical usage is: - * - * $serviceregistryService = new Google_Service_ServiceRegistry(...); - * $endpoints = $serviceregistryService->endpoints; - * - */ -class Google_Service_ServiceRegistry_Endpoints_Resource extends Google_Service_Resource -{ - - /** - * Deletes an endpoint. (endpoints.delete) - * - * @param string $project The project ID for this request. - * @param string $endpoint The name of the endpoint for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Operation - */ - public function delete($project, $endpoint, $optParams = array()) - { - $params = array('project' => $project, 'endpoint' => $endpoint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_ServiceRegistry_Operation"); - } - - /** - * Gets an endpoint. (endpoints.get) - * - * @param string $project The project ID for this request. - * @param string $endpoint The name of the endpoint for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Endpoint - */ - public function get($project, $endpoint, $optParams = array()) - { - $params = array('project' => $project, 'endpoint' => $endpoint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ServiceRegistry_Endpoint"); - } - - /** - * Creates an endpoint. (endpoints.insert) - * - * @param string $project The project ID for this request. - * @param Google_Endpoint $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Operation - */ - public function insert($project, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ServiceRegistry_Operation"); - } - - /** - * Lists endpoints for a project. (endpoints.listEndpoints) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_ServiceRegistry_EndpointsListResponse - */ - public function listEndpoints($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ServiceRegistry_EndpointsListResponse"); - } - - /** - * Updates an endpoint. This method supports patch semantics. (endpoints.patch) - * - * @param string $project The project ID for this request. - * @param string $endpoint The name of the endpoint for this request. - * @param Google_Endpoint $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Operation - */ - public function patch($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) - { - $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ServiceRegistry_Operation"); - } - - /** - * Updates an endpoint. (endpoints.update) - * - * @param string $project The project ID for this request. - * @param string $endpoint The name of the endpoint for this request. - * @param Google_Endpoint $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Operation - */ - public function update($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array()) - { - $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ServiceRegistry_Operation"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $serviceregistryService = new Google_Service_ServiceRegistry(...); - * $operations = $serviceregistryService->operations; - * - */ -class Google_Service_ServiceRegistry_Operations_Resource extends Google_Service_Resource -{ - - /** - * Gets information about a specific operation. (operations.get) - * - * @param string $project The project ID for this request. - * @param string $operation The name of the operation for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceRegistry_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ServiceRegistry_Operation"); - } - - /** - * Lists all operations for a project. (operations.listOperations) - * - * @param string $project The project ID for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Sets a filter expression for filtering listed - * resources, in the form filter={expression}. Your {expression} must be in the - * format: field_name comparison_string literal_string. - * - * The field_name is the name of the field you want to compare. Only atomic - * field types are supported (string, number, boolean). The comparison_string - * must be either eq (equals) or ne (not equals). The literal_string is the - * string value to filter to. The literal value must be valid for the type of - * field you are filtering by (string, number, boolean). For string fields, the - * literal value is interpreted as a regular expression using RE2 syntax. The - * literal value must match the entire field. - * - * For example, to filter for instances that do not have a name of example- - * instance, you would use filter=name ne example-instance. - * - * Compute Engine Beta API Only: If you use filtering in the Beta API, you can - * also filter on nested fields. For example, you could filter on instances that - * have set the scheduling.automaticRestart field to true. In particular, use - * filtering on nested fields to take advantage of instance labels to organize - * and filter results based on label values. - * - * The Beta API also supports filtering on multiple expressions by providing - * each separate expression within parentheses. For example, - * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple - * expressions are treated as AND expressions, meaning that resources must match - * all expressions to pass the filters. - * @opt_param string maxResults The maximum number of results per page that - * should be returned. If the number of available results is larger than - * maxResults, Compute Engine returns a nextPageToken that can be used to get - * the next page of results in subsequent list requests. - * @opt_param string orderBy Sorts list results by a certain order. By default, - * results are returned in alphanumerical order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp - * using orderBy="creationTimestamp desc". This sorts results based on the - * creationTimestamp field in reverse chronological order (newest result first). - * Use this to sort resources like operations so that the newest operation is - * returned first. - * - * Currently, only sorting by name or creationTimestamp desc is supported. - * @opt_param string pageToken Specifies a page token to use. Set pageToken to - * the nextPageToken returned by a previous list request to get the next page of - * results. - * @return Google_Service_ServiceRegistry_OperationsListResponse - */ - public function listOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ServiceRegistry_OperationsListResponse"); - } -} - - - - -class Google_Service_ServiceRegistry_Endpoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $creationTimestamp; - public $description; - public $fingerprint; - public $id; - public $name; - public $port; - public $selfLink; - public $state; - protected $visibilityType = 'Google_Service_ServiceRegistry_EndpointEndpointVisibility'; - protected $visibilityDataType = ''; - - - public function setAddress($address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setVisibility(Google_Service_ServiceRegistry_EndpointEndpointVisibility $visibility) - { - $this->visibility = $visibility; - } - public function getVisibility() - { - return $this->visibility; - } -} - -class Google_Service_ServiceRegistry_EndpointEndpointVisibility extends Google_Collection -{ - protected $collection_key = 'networks'; - protected $internal_gapi_mappings = array( - ); - public $networks; - - - public function setNetworks($networks) - { - $this->networks = $networks; - } - public function getNetworks() - { - return $this->networks; - } -} - -class Google_Service_ServiceRegistry_EndpointsListResponse extends Google_Collection -{ - protected $collection_key = 'endpoints'; - protected $internal_gapi_mappings = array( - ); - protected $endpointsType = 'Google_Service_ServiceRegistry_Endpoint'; - protected $endpointsDataType = 'array'; - public $nextPageToken; - - - public function setEndpoints($endpoints) - { - $this->endpoints = $endpoints; - } - public function getEndpoints() - { - return $this->endpoints; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_ServiceRegistry_Operation extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $clientOperationId; - public $creationTimestamp; - public $description; - public $endTime; - protected $errorType = 'Google_Service_ServiceRegistry_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_ServiceRegistry_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function 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 setError(Google_Service_ServiceRegistry_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_ServiceRegistry_OperationError extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - protected $errorsType = 'Google_Service_ServiceRegistry_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ServiceRegistry_OperationErrorErrors extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ServiceRegistry_OperationWarnings extends Google_Collection -{ - protected $collection_key = 'data'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $dataType = 'Google_Service_ServiceRegistry_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ServiceRegistry_OperationWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_ServiceRegistry_OperationsListResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_ServiceRegistry_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} diff --git a/src/Google/Service/ShoppingContent.php b/src/Google/Service/ShoppingContent.php deleted file mode 100644 index 33a6321a8..000000000 --- a/src/Google/Service/ShoppingContent.php +++ /dev/null @@ -1,9408 +0,0 @@ - - * Manage product items, inventory, and Merchant Center accounts for Google - * Shopping.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_ShoppingContent extends Google_Service -{ - /** Manage your product listings and accounts for Google Shopping. */ - const CONTENT = - "https://www.googleapis.com/auth/content"; - - public $accounts; - public $accountshipping; - public $accountstatuses; - public $accounttax; - public $datafeeds; - public $datafeedstatuses; - public $inventory; - public $orders; - public $products; - public $productstatuses; - - - /** - * Constructs the internal representation of the ShoppingContent service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'content/v2/'; - $this->version = 'v2'; - $this->serviceName = 'content'; - - $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'authinfo' => array( - 'path' => 'accounts/authinfo', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'custombatch' => array( - 'path' => 'accounts/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource( - $this, - $this->serviceName, - 'accountshipping', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accountshipping/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/accountshipping/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accountshipping', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/accountshipping/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{merchantId}/accountshipping/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( - $this, - $this->serviceName, - 'accountstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accountstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/accountstatuses/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accountstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource( - $this, - $this->serviceName, - 'accounttax', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accounttax/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/accounttax/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accounttax', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/accounttax/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{merchantId}/accounttax/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( - $this, - $this->serviceName, - 'datafeeds', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'datafeeds/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource( - $this, - $this->serviceName, - 'datafeedstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'datafeedstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeedstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource( - $this, - $this->serviceName, - 'inventory', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'inventory/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'set' => array( - 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'storeCode' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->orders = new Google_Service_ShoppingContent_Orders_Resource( - $this, - $this->serviceName, - 'orders', - array( - 'methods' => array( - 'acknowledge' => array( - 'path' => '{merchantId}/orders/{orderId}/acknowledge', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'advancetestorder' => array( - 'path' => '{merchantId}/testorders/{orderId}/advance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'cancel' => array( - 'path' => '{merchantId}/orders/{orderId}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'cancellineitem' => array( - 'path' => '{merchantId}/orders/{orderId}/cancelLineItem', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'createtestorder' => array( - 'path' => '{merchantId}/testorders', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'custombatch' => array( - 'path' => 'orders/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/orders/{orderId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getbymerchantorderid' => array( - 'path' => '{merchantId}/ordersbymerchantid/{merchantOrderId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'merchantOrderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'gettestordertemplate' => array( - 'path' => '{merchantId}/testordertemplates/{templateName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/orders', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'acknowledged' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placedDateEnd' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'placedDateStart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'statuses' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'refund' => array( - 'path' => '{merchantId}/orders/{orderId}/refund', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'returnlineitem' => array( - 'path' => '{merchantId}/orders/{orderId}/returnLineItem', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'shiplineitems' => array( - 'path' => '{merchantId}/orders/{orderId}/shipLineItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updatemerchantorderid' => array( - 'path' => '{merchantId}/orders/{orderId}/updateMerchantOrderId', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateshipment' => array( - 'path' => '{merchantId}/orders/{orderId}/updateShipment', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->products = new Google_Service_ShoppingContent_Products_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'products/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInvalidInsertedItems' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource( - $this, - $this->serviceName, - 'productstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'productstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/productstatuses/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/productstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInvalidInsertedItems' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accounts = $contentService->accounts; - * - */ -class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Returns information about the authenticated user. (accounts.authinfo) - * - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse - */ - public function authinfo($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse"); - } - - /** - * Retrieves, inserts, updates, and deletes multiple Merchant Center - * (sub-)accounts in a single request. (accounts.custombatch) - * - * @param Google_AccountsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse"); - } - - /** - * Deletes a Merchant Center sub-account. (accounts.delete) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account. - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - */ - public function delete($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a Merchant Center account. (accounts.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Account - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Account"); - } - - /** - * Creates a Merchant Center sub-account. (accounts.insert) - * - * @param string $merchantId The ID of the managing account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Account - */ - public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); - } - - /** - * Lists the sub-accounts in your Merchant Center account. - * (accounts.listAccounts) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of accounts to return in the - * response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_AccountsListResponse - */ - public function listAccounts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); - } - - /** - * Updates a Merchant Center account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Account - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); - } - - /** - * Updates a Merchant Center account. (accounts.update) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Account - */ - public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_Account"); - } -} - -/** - * The "accountshipping" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accountshipping = $contentService->accountshipping; - * - */ -class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource -{ - - /** - * Retrieves and updates the shipping settings of multiple accounts in a single - * request. (accountshipping.custombatch) - * - * @param Google_AccountshippingCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse"); - } - - /** - * Retrieves the shipping settings of the account. (accountshipping.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account shipping settings. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountShipping - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping"); - } - - /** - * Lists the shipping settings of the sub-accounts in your Merchant Center - * account. (accountshipping.listAccountshipping) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of shipping settings to - * return in the response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_AccountshippingListResponse - */ - public function listAccountshipping($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse"); - } - - /** - * Updates the shipping settings of the account. This method supports patch - * semantics. (accountshipping.patch) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account shipping settings. - * @param Google_AccountShipping $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountShipping - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); - } - - /** - * Updates the shipping settings of the account. (accountshipping.update) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account shipping settings. - * @param Google_AccountShipping $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountShipping - */ - public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping"); - } -} - -/** - * The "accountstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accountstatuses = $contentService->accountstatuses; - * - */ -class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource -{ - - /** - * (accountstatuses.custombatch) - * - * @param Google_AccountstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); - } - - /** - * Retrieves the status of a Merchant Center account. (accountstatuses.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountStatus - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); - } - - /** - * Lists the statuses of the sub-accounts in your Merchant Center account. - * (accountstatuses.listAccountstatuses) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of account statuses to return - * in the response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_AccountstatusesListResponse - */ - public function listAccountstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse"); - } -} - -/** - * The "accounttax" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $accounttax = $contentService->accounttax; - * - */ -class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource -{ - - /** - * Retrieves and updates tax settings of multiple accounts in a single request. - * (accounttax.custombatch) - * - * @param Google_AccounttaxCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse"); - } - - /** - * Retrieves the tax settings of the account. (accounttax.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account tax settings. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountTax - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax"); - } - - /** - * Lists the tax settings of the sub-accounts in your Merchant Center account. - * (accounttax.listAccounttax) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of tax settings to return in - * the response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_AccounttaxListResponse - */ - public function listAccounttax($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse"); - } - - /** - * Updates the tax settings of the account. This method supports patch - * semantics. (accounttax.patch) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account tax settings. - * @param Google_AccountTax $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountTax - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); - } - - /** - * Updates the tax settings of the account. (accounttax.update) - * - * @param string $merchantId The ID of the managing account. - * @param string $accountId The ID of the account for which to get/update - * account tax settings. - * @param Google_AccountTax $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountTax - */ - public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountTax"); - } -} - -/** - * The "datafeeds" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $datafeeds = $contentService->datafeeds; - * - */ -class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource -{ - - /** - * (datafeeds.custombatch) - * - * @param Google_DatafeedsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); - } - - /** - * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) - * - * @param string $merchantId - * @param string $datafeedId - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - */ - public function delete($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) - * - * @param string $merchantId - * @param string $datafeedId - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - - /** - * Registers a datafeed with your Merchant Center account. (datafeeds.insert) - * - * @param string $merchantId - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - - /** - * Lists the datafeeds in your Merchant Center account. - * (datafeeds.listDatafeeds) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of products to return in the - * response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_DatafeedsListResponse - */ - public function listDatafeeds($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); - } - - /** - * Updates a datafeed of your Merchant Center account. This method supports - * patch semantics. (datafeeds.patch) - * - * @param string $merchantId - * @param string $datafeedId - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - - /** - * Updates a datafeed of your Merchant Center account. (datafeeds.update) - * - * @param string $merchantId - * @param string $datafeedId - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_Datafeed"); - } -} - -/** - * The "datafeedstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $datafeedstatuses = $contentService->datafeedstatuses; - * - */ -class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Service_Resource -{ - - /** - * (datafeedstatuses.custombatch) - * - * @param Google_DatafeedstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse"); - } - - /** - * Retrieves the status of a datafeed from your Merchant Center account. - * (datafeedstatuses.get) - * - * @param string $merchantId - * @param string $datafeedId - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedStatus - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus"); - } - - /** - * Lists the statuses of the datafeeds in your Merchant Center account. - * (datafeedstatuses.listDatafeedstatuses) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maximum number of products to return in the - * response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse - */ - public function listDatafeedstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedstatusesListResponse"); - } -} - -/** - * The "inventory" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $inventory = $contentService->inventory; - * - */ -class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_Resource -{ - - /** - * Updates price and availability for multiple products or stores in a single - * request. This operation does not update the expiration date of the products. - * (inventory.custombatch) - * - * @param Google_InventoryCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); - } - - /** - * Updates price and availability of a product in your Merchant Center account. - * This operation does not update the expiration date of the product. - * (inventory.set) - * - * @param string $merchantId The ID of the managing account. - * @param string $storeCode The code of the store for which to update price and - * availability. Use online to update price and availability of an online - * product. - * @param string $productId The ID of the product for which to update price and - * availability. - * @param Google_InventorySetRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_InventorySetResponse - */ - public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse"); - } -} - -/** - * The "orders" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $orders = $contentService->orders; - * - */ -class Google_Service_ShoppingContent_Orders_Resource extends Google_Service_Resource -{ - - /** - * Marks an order as acknowledged. (orders.acknowledge) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersAcknowledgeRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersAcknowledgeResponse - */ - public function acknowledge($merchantId, $orderId, Google_Service_ShoppingContent_OrdersAcknowledgeRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params), "Google_Service_ShoppingContent_OrdersAcknowledgeResponse"); - } - - /** - * Sandbox only. Moves a test order from state "inProgress" to state - * "pendingShipment". (orders.advancetestorder) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the test order to modify. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse - */ - public function advancetestorder($merchantId, $orderId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId); - $params = array_merge($params, $optParams); - return $this->call('advancetestorder', array($params), "Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse"); - } - - /** - * Cancels all line items in an order. (orders.cancel) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order to cancel. - * @param Google_OrdersCancelRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersCancelResponse - */ - public function cancel($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_ShoppingContent_OrdersCancelResponse"); - } - - /** - * Cancels a line item. (orders.cancellineitem) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersCancelLineItemRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersCancelLineItemResponse - */ - public function cancellineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelLineItemRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancellineitem', array($params), "Google_Service_ShoppingContent_OrdersCancelLineItemResponse"); - } - - /** - * Sandbox only. Creates a test order. (orders.createtestorder) - * - * @param string $merchantId The ID of the managing account. - * @param Google_OrdersCreateTestOrderRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersCreateTestOrderResponse - */ - public function createtestorder($merchantId, Google_Service_ShoppingContent_OrdersCreateTestOrderRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createtestorder', array($params), "Google_Service_ShoppingContent_OrdersCreateTestOrderResponse"); - } - - /** - * Retrieves or modifies multiple orders in a single request. - * (orders.custombatch) - * - * @param Google_OrdersCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_OrdersCustomBatchResponse"); - } - - /** - * Retrieves an order from your Merchant Center account. (orders.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Order - */ - public function get($merchantId, $orderId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Order"); - } - - /** - * Retrieves an order using merchant order id. (orders.getbymerchantorderid) - * - * @param string $merchantId The ID of the managing account. - * @param string $merchantOrderId The merchant order id to be looked for. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse - */ - public function getbymerchantorderid($merchantId, $merchantOrderId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'merchantOrderId' => $merchantOrderId); - $params = array_merge($params, $optParams); - return $this->call('getbymerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse"); - } - - /** - * Sandbox only. Retrieves an order template that can be used to quickly create - * a new order in sandbox. (orders.gettestordertemplate) - * - * @param string $merchantId The ID of the managing account. - * @param string $templateName The name of the template to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse - */ - public function gettestordertemplate($merchantId, $templateName, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'templateName' => $templateName); - $params = array_merge($params, $optParams); - return $this->call('gettestordertemplate', array($params), "Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse"); - } - - /** - * Lists the orders in your Merchant Center account. (orders.listOrders) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param bool acknowledged Obtains orders that match the acknowledgement - * status. When set to true, obtains orders that have been acknowledged. When - * false, obtains orders that have not been acknowledged. We recommend using - * this filter set to false, in conjunction with the acknowledge call, such that - * only un-acknowledged orders are returned. - * @opt_param string maxResults The maximum number of orders to return in the - * response, used for paging. The default value is 25 orders per page, and the - * maximum allowed value is 250 orders per page. Known issue: All List calls - * will return all Orders without limit regardless of the value of this field. - * @opt_param string orderBy The ordering of the returned list. The only - * supported value are placedDate desc and placedDate asc for now, which returns - * orders sorted by placement date. "placedDate desc" stands for listing orders - * by placement date, from oldest to most recent. "placedDate asc" stands for - * listing orders by placement date, from most recent to oldest. In future - * releases we'll support other sorting criteria. - * @opt_param string pageToken The token returned by the previous request. - * @opt_param string placedDateEnd Obtains orders placed before this date - * (exclusively), in ISO 8601 format. - * @opt_param string placedDateStart Obtains orders placed after this date - * (inclusively), in ISO 8601 format. - * @opt_param string statuses Obtains orders that match any of the specified - * statuses. Multiple values can be specified with comma separation. - * Additionally, please note that active is a shortcut for pendingShipment and - * partiallyShipped, and completed is a shortcut for shipped , - * partiallyDelivered, delivered, partiallyReturned, returned, and canceled. - * @return Google_Service_ShoppingContent_OrdersListResponse - */ - public function listOrders($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_OrdersListResponse"); - } - - /** - * Refund a portion of the order, up to the full amount paid. (orders.refund) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order to refund. - * @param Google_OrdersRefundRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersRefundResponse - */ - public function refund($merchantId, $orderId, Google_Service_ShoppingContent_OrdersRefundRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('refund', array($params), "Google_Service_ShoppingContent_OrdersRefundResponse"); - } - - /** - * Returns a line item. (orders.returnlineitem) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersReturnLineItemRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersReturnLineItemResponse - */ - public function returnlineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('returnlineitem', array($params), "Google_Service_ShoppingContent_OrdersReturnLineItemResponse"); - } - - /** - * Marks line item(s) as shipped. (orders.shiplineitems) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersShipLineItemsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersShipLineItemsResponse - */ - public function shiplineitems($merchantId, $orderId, Google_Service_ShoppingContent_OrdersShipLineItemsRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('shiplineitems', array($params), "Google_Service_ShoppingContent_OrdersShipLineItemsResponse"); - } - - /** - * Updates the merchant order ID for a given order. - * (orders.updatemerchantorderid) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersUpdateMerchantOrderIdRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse - */ - public function updatemerchantorderid($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updatemerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse"); - } - - /** - * Updates a shipment's status, carrier, and/or tracking ID. - * (orders.updateshipment) - * - * @param string $merchantId The ID of the managing account. - * @param string $orderId The ID of the order. - * @param Google_OrdersUpdateShipmentRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersUpdateShipmentResponse - */ - public function updateshipment($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateShipmentRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateshipment', array($params), "Google_Service_ShoppingContent_OrdersUpdateShipmentResponse"); - } -} - -/** - * The "products" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $products = $contentService->products; - * - */ -class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Resource -{ - - /** - * Retrieves, inserts, and deletes multiple products in a single request. - * (products.custombatch) - * - * @param Google_ProductsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse"); - } - - /** - * Deletes a product from your Merchant Center account. (products.delete) - * - * @param string $merchantId The ID of the managing account. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - */ - public function delete($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves a product from your Merchant Center account. (products.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Product - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Product"); - } - - /** - * Uploads a product to your Merchant Center account. (products.insert) - * - * @param string $merchantId The ID of the managing account. - * @param Google_Product $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Product - */ - public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product"); - } - - /** - * Lists the products in your Merchant Center account. (products.listProducts) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInvalidInsertedItems Flag to include the invalid - * inserted items in the result of the list request. By default the invalid - * items are not shown (the default value is false). - * @opt_param string maxResults The maximum number of products to return in the - * response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_ProductsListResponse - */ - public function listProducts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductsListResponse"); - } -} - -/** - * The "productstatuses" collection of methods. - * Typical usage is: - * - * $contentService = new Google_Service_ShoppingContent(...); - * $productstatuses = $contentService->productstatuses; - * - */ -class Google_Service_ShoppingContent_Productstatuses_Resource extends Google_Service_Resource -{ - - /** - * Gets the statuses of multiple products in a single request. - * (productstatuses.custombatch) - * - * @param Google_ProductstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); - } - - /** - * Gets the status of a product from your Merchant Center account. - * (productstatuses.get) - * - * @param string $merchantId The ID of the managing account. - * @param string $productId The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_ProductStatus - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); - } - - /** - * Lists the statuses of the products in your Merchant Center account. - * (productstatuses.listProductstatuses) - * - * @param string $merchantId The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInvalidInsertedItems Flag to include the invalid - * inserted items in the result of the list request. By default the invalid - * items are not shown (the default value is false). - * @opt_param string maxResults The maximum number of product statuses to return - * in the response, used for paging. - * @opt_param string pageToken The token returned by the previous request. - * @return Google_Service_ShoppingContent_ProductstatusesListResponse - */ - public function listProductstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse"); - } -} - - - - -class Google_Service_ShoppingContent_Account extends Google_Collection -{ - protected $collection_key = 'users'; - protected $internal_gapi_mappings = array( - ); - public $adultContent; - protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; - protected $adwordsLinksDataType = 'array'; - public $id; - public $kind; - public $name; - public $reviewsUrl; - public $sellerId; - protected $usersType = 'Google_Service_ShoppingContent_AccountUser'; - protected $usersDataType = 'array'; - public $websiteUrl; - - - public function setAdultContent($adultContent) - { - $this->adultContent = $adultContent; - } - public function getAdultContent() - { - return $this->adultContent; - } - public function setAdwordsLinks($adwordsLinks) - { - $this->adwordsLinks = $adwordsLinks; - } - public function getAdwordsLinks() - { - return $this->adwordsLinks; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReviewsUrl($reviewsUrl) - { - $this->reviewsUrl = $reviewsUrl; - } - public function getReviewsUrl() - { - return $this->reviewsUrl; - } - public function setSellerId($sellerId) - { - $this->sellerId = $sellerId; - } - public function getSellerId() - { - return $this->sellerId; - } - public function setUsers($users) - { - $this->users = $users; - } - public function getUsers() - { - return $this->users; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adwordsId; - public $status; - - - public function setAdwordsId($adwordsId) - { - $this->adwordsId = $adwordsId; - } - public function getAdwordsId() - { - return $this->adwordsId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_ShoppingContent_AccountIdentifier extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aggregatorId; - public $merchantId; - - - public function setAggregatorId($aggregatorId) - { - $this->aggregatorId = $aggregatorId; - } - public function getAggregatorId() - { - return $this->aggregatorId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } -} - -class Google_Service_ShoppingContent_AccountShipping extends Google_Collection -{ - protected $collection_key = 'services'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate'; - protected $carrierRatesDataType = 'array'; - public $kind; - protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup'; - protected $locationGroupsDataType = 'array'; - protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable'; - protected $rateTablesDataType = 'array'; - protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService'; - protected $servicesDataType = 'array'; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCarrierRates($carrierRates) - { - $this->carrierRates = $carrierRates; - } - public function getCarrierRates() - { - return $this->carrierRates; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocationGroups($locationGroups) - { - $this->locationGroups = $locationGroups; - } - public function getLocationGroups() - { - return $this->locationGroups; - } - public function setRateTables($rateTables) - { - $this->rateTables = $rateTables; - } - public function getRateTables() - { - return $this->rateTables; - } - public function setServices($services) - { - $this->services = $services; - } - public function getServices() - { - return $this->services; - } -} - -class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $carrierService; - protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price'; - protected $modifierFlatRateDataType = ''; - public $modifierPercent; - public $name; - public $saleCountry; - public $shippingOrigin; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setCarrierService($carrierService) - { - $this->carrierService = $carrierService; - } - public function getCarrierService() - { - return $this->carrierService; - } - public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate) - { - $this->modifierFlatRate = $modifierFlatRate; - } - public function getModifierFlatRate() - { - return $this->modifierFlatRate; - } - public function setModifierPercent($modifierPercent) - { - $this->modifierPercent = $modifierPercent; - } - public function getModifierPercent() - { - return $this->modifierPercent; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - public function getSaleCountry() - { - return $this->saleCountry; - } - public function setShippingOrigin($shippingOrigin) - { - $this->shippingOrigin = $shippingOrigin; - } - public function getShippingOrigin() - { - return $this->shippingOrigin; - } -} - -class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deliveryLocationGroup; - public $deliveryLocationId; - public $deliveryPostalCode; - protected $deliveryPostalCodeRangeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; - protected $deliveryPostalCodeRangeDataType = ''; - protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; - protected $priceMaxDataType = ''; - public $shippingLabel; - protected $weightMaxType = 'Google_Service_ShoppingContent_Weight'; - protected $weightMaxDataType = ''; - - - public function setDeliveryLocationGroup($deliveryLocationGroup) - { - $this->deliveryLocationGroup = $deliveryLocationGroup; - } - public function getDeliveryLocationGroup() - { - return $this->deliveryLocationGroup; - } - public function setDeliveryLocationId($deliveryLocationId) - { - $this->deliveryLocationId = $deliveryLocationId; - } - public function getDeliveryLocationId() - { - return $this->deliveryLocationId; - } - public function setDeliveryPostalCode($deliveryPostalCode) - { - $this->deliveryPostalCode = $deliveryPostalCode; - } - public function getDeliveryPostalCode() - { - return $this->deliveryPostalCode; - } - public function setDeliveryPostalCodeRange(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCodeRange) - { - $this->deliveryPostalCodeRange = $deliveryPostalCodeRange; - } - public function getDeliveryPostalCodeRange() - { - return $this->deliveryPostalCodeRange; - } - public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax) - { - $this->priceMax = $priceMax; - } - public function getPriceMax() - { - return $this->priceMax; - } - public function setShippingLabel($shippingLabel) - { - $this->shippingLabel = $shippingLabel; - } - public function getShippingLabel() - { - return $this->shippingLabel; - } - public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax) - { - $this->weightMax = $weightMax; - } - public function getWeightMax() - { - return $this->weightMax; - } -} - -class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection -{ - protected $collection_key = 'postalCodes'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $locationIds; - public $name; - protected $postalCodeRangesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; - protected $postalCodeRangesDataType = 'array'; - public $postalCodes; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setLocationIds($locationIds) - { - $this->locationIds = $locationIds; - } - public function getLocationIds() - { - return $this->locationIds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPostalCodeRanges($postalCodeRanges) - { - $this->postalCodeRanges = $postalCodeRanges; - } - public function getPostalCodeRanges() - { - return $this->postalCodeRanges; - } - public function setPostalCodes($postalCodes) - { - $this->postalCodes = $postalCodes; - } - public function getPostalCodes() - { - return $this->postalCodes; - } -} - -class Google_Service_ShoppingContent_AccountShippingPostalCodeRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} - -class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection -{ - protected $collection_key = 'content'; - protected $internal_gapi_mappings = array( - ); - protected $contentType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; - protected $contentDataType = 'array'; - public $name; - public $saleCountry; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - public function getSaleCountry() - { - return $this->saleCountry; - } -} - -class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; - protected $conditionDataType = ''; - protected $rateType = 'Google_Service_ShoppingContent_Price'; - protected $rateDataType = ''; - - - public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setRate(Google_Service_ShoppingContent_Price $rate) - { - $this->rate = $rate; - } - public function getRate() - { - return $this->rate; - } -} - -class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $active; - protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; - protected $calculationMethodDataType = ''; - protected $costRuleTreeType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; - protected $costRuleTreeDataType = ''; - public $name; - public $saleCountry; - - - public function setActive($active) - { - $this->active = $active; - } - public function getActive() - { - return $this->active; - } - public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) - { - $this->calculationMethod = $calculationMethod; - } - public function getCalculationMethod() - { - return $this->calculationMethod; - } - public function setCostRuleTree(Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule $costRuleTree) - { - $this->costRuleTree = $costRuleTree; - } - public function getCostRuleTree() - { - return $this->costRuleTree; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } - public function getSaleCountry() - { - return $this->saleCountry; - } -} - -class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrierRate; - public $excluded; - protected $flatRateType = 'Google_Service_ShoppingContent_Price'; - protected $flatRateDataType = ''; - public $percentageRate; - public $rateTable; - - - public function setCarrierRate($carrierRate) - { - $this->carrierRate = $carrierRate; - } - public function getCarrierRate() - { - return $this->carrierRate; - } - public function setExcluded($excluded) - { - $this->excluded = $excluded; - } - public function getExcluded() - { - return $this->excluded; - } - public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate) - { - $this->flatRate = $flatRate; - } - public function getFlatRate() - { - return $this->flatRate; - } - public function setPercentageRate($percentageRate) - { - $this->percentageRate = $percentageRate; - } - public function getPercentageRate() - { - return $this->percentageRate; - } - public function setRateTable($rateTable) - { - $this->rateTable = $rateTable; - } - public function getRateTable() - { - return $this->rateTable; - } -} - -class Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule extends Google_Collection -{ - protected $collection_key = 'children'; - protected $internal_gapi_mappings = array( - ); - protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; - protected $calculationMethodDataType = ''; - protected $childrenType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; - protected $childrenDataType = 'array'; - protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; - protected $conditionDataType = ''; - - - public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) - { - $this->calculationMethod = $calculationMethod; - } - public function getCalculationMethod() - { - return $this->calculationMethod; - } - public function setChildren($children) - { - $this->children = $children; - } - public function getChildren() - { - return $this->children; - } - public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } -} - -class Google_Service_ShoppingContent_AccountStatus extends Google_Collection -{ - protected $collection_key = 'dataQualityIssues'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - public $kind; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection -{ - protected $collection_key = 'exampleItems'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $displayedValue; - protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; - protected $exampleItemsDataType = 'array'; - public $id; - public $lastChecked; - public $numItems; - public $severity; - public $submittedValue; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDisplayedValue($displayedValue) - { - $this->displayedValue = $displayedValue; - } - public function getDisplayedValue() - { - return $this->displayedValue; - } - public function setExampleItems($exampleItems) - { - $this->exampleItems = $exampleItems; - } - public function getExampleItems() - { - return $this->exampleItems; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastChecked($lastChecked) - { - $this->lastChecked = $lastChecked; - } - public function getLastChecked() - { - return $this->lastChecked; - } - public function setNumItems($numItems) - { - $this->numItems = $numItems; - } - public function getNumItems() - { - return $this->numItems; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - public function getSubmittedValue() - { - return $this->submittedValue; - } -} - -class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $itemId; - public $link; - public $submittedValue; - public $title; - public $valueOnLandingPage; - - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - public function getItemId() - { - return $this->itemId; - } - public function setLink($link) - { - $this->link = $link; - } - public function getLink() - { - return $this->link; - } - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - public function getSubmittedValue() - { - return $this->submittedValue; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } -} - -class Google_Service_ShoppingContent_AccountTax extends Google_Collection -{ - protected $collection_key = 'rules'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $kind; - protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule'; - protected $rulesDataType = 'array'; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRules($rules) - { - $this->rules = $rules; - } - public function getRules() - { - return $this->rules; - } -} - -class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $locationId; - public $ratePercent; - public $shippingTaxed; - public $useGlobalRate; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setLocationId($locationId) - { - $this->locationId = $locationId; - } - public function getLocationId() - { - return $this->locationId; - } - public function setRatePercent($ratePercent) - { - $this->ratePercent = $ratePercent; - } - public function getRatePercent() - { - return $this->ratePercent; - } - public function setShippingTaxed($shippingTaxed) - { - $this->shippingTaxed = $shippingTaxed; - } - public function getShippingTaxed() - { - return $this->shippingTaxed; - } - public function setUseGlobalRate($useGlobalRate) - { - $this->useGlobalRate = $useGlobalRate; - } - public function getUseGlobalRate() - { - return $this->useGlobalRate; - } -} - -class Google_Service_ShoppingContent_AccountUser extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $admin; - public $emailAddress; - - - public function setAdmin($admin) - { - $this->admin = $admin; - } - public function getAdmin() - { - return $this->admin; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } -} - -class Google_Service_ShoppingContent_AccountsAuthInfoResponse extends Google_Collection -{ - protected $collection_key = 'accountIdentifiers'; - protected $internal_gapi_mappings = array( - ); - protected $accountIdentifiersType = 'Google_Service_ShoppingContent_AccountIdentifier'; - protected $accountIdentifiersDataType = 'array'; - public $kind; - - - public function setAccountIdentifiers($accountIdentifiers) - { - $this->accountIdentifiers = $accountIdentifiers; - } - public function getAccountIdentifiers() - { - return $this->accountIdentifiers; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; - public $accountId; - public $batchId; - public $merchantId; - public $method; - - - public function setAccount(Google_Service_ShoppingContent_Account $account) - { - $this->account = $account; - } - public function getAccount() - { - return $this->account; - } - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - - public function setAccount(Google_Service_ShoppingContent_Account $account) - { - $this->account = $account; - } - public function getAccount() - { - return $this->account; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Account'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_AccountshippingCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; - protected $accountShippingDataType = ''; - public $batchId; - public $merchantId; - public $method; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) - { - $this->accountShipping = $accountShipping; - } - public function getAccountShipping() - { - return $this->accountShipping; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccountshippingCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; - protected $accountShippingDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - - public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) - { - $this->accountShipping = $accountShipping; - } - public function getAccountShipping() - { - return $this->accountShipping; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountshippingListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_AccountShipping'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $batchId; - public $merchantId; - public $method; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; - protected $accountStatusDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - - public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) - { - $this->accountStatus = $accountStatus; - } - public function getAccountStatus() - { - return $this->accountStatus; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_AccounttaxCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; - protected $accountTaxDataType = ''; - public $batchId; - public $merchantId; - public $method; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) - { - $this->accountTax = $accountTax; - } - public function getAccountTax() - { - return $this->accountTax; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccounttaxCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; - protected $accountTaxDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - - public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) - { - $this->accountTax = $accountTax; - } - public function getAccountTax() - { - return $this->accountTax; - } - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccounttaxListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_AccountTax'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_Datafeed extends Google_Collection -{ - protected $collection_key = 'intendedDestinations'; - protected $internal_gapi_mappings = array( - ); - public $attributeLanguage; - public $contentLanguage; - public $contentType; - protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule'; - protected $fetchScheduleDataType = ''; - public $fileName; - protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat'; - protected $formatDataType = ''; - public $id; - public $intendedDestinations; - public $kind; - public $name; - public $targetCountry; - - - public function setAttributeLanguage($attributeLanguage) - { - $this->attributeLanguage = $attributeLanguage; - } - public function getAttributeLanguage() - { - return $this->attributeLanguage; - } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - public function getContentLanguage() - { - return $this->contentLanguage; - } - public function setContentType($contentType) - { - $this->contentType = $contentType; - } - public function getContentType() - { - return $this->contentType; - } - public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule) - { - $this->fetchSchedule = $fetchSchedule; - } - public function getFetchSchedule() - { - return $this->fetchSchedule; - } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - public function getFileName() - { - return $this->fileName; - } - public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIntendedDestinations($intendedDestinations) - { - $this->intendedDestinations = $intendedDestinations; - } - public function getIntendedDestinations() - { - return $this->intendedDestinations; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - public function getTargetCountry() - { - return $this->targetCountry; - } -} - -class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dayOfMonth; - public $fetchUrl; - public $hour; - public $password; - public $timeZone; - public $username; - public $weekday; - - - public function setDayOfMonth($dayOfMonth) - { - $this->dayOfMonth = $dayOfMonth; - } - public function getDayOfMonth() - { - return $this->dayOfMonth; - } - public function setFetchUrl($fetchUrl) - { - $this->fetchUrl = $fetchUrl; - } - public function getFetchUrl() - { - return $this->fetchUrl; - } - public function setHour($hour) - { - $this->hour = $hour; - } - public function getHour() - { - return $this->hour; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } - public function getTimeZone() - { - return $this->timeZone; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } - public function setWeekday($weekday) - { - $this->weekday = $weekday; - } - public function getWeekday() - { - return $this->weekday; - } -} - -class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $columnDelimiter; - public $fileEncoding; - public $quotingMode; - - - public function setColumnDelimiter($columnDelimiter) - { - $this->columnDelimiter = $columnDelimiter; - } - public function getColumnDelimiter() - { - return $this->columnDelimiter; - } - public function setFileEncoding($fileEncoding) - { - $this->fileEncoding = $fileEncoding; - } - public function getFileEncoding() - { - return $this->fileEncoding; - } - public function setQuotingMode($quotingMode) - { - $this->quotingMode = $quotingMode; - } - public function getQuotingMode() - { - return $this->quotingMode; - } -} - -class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $datafeedId; - protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; - protected $errorsDataType = 'array'; - public $itemsTotal; - public $itemsValid; - public $kind; - public $lastUploadDate; - public $processingStatus; - protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; - protected $warningsDataType = 'array'; - - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - public function getDatafeedId() - { - return $this->datafeedId; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setItemsTotal($itemsTotal) - { - $this->itemsTotal = $itemsTotal; - } - public function getItemsTotal() - { - return $this->itemsTotal; - } - public function setItemsValid($itemsValid) - { - $this->itemsValid = $itemsValid; - } - public function getItemsValid() - { - return $this->itemsValid; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUploadDate($lastUploadDate) - { - $this->lastUploadDate = $lastUploadDate; - } - public function getLastUploadDate() - { - return $this->lastUploadDate; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection -{ - protected $collection_key = 'examples'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $count; - protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; - protected $examplesDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setExamples($examples) - { - $this->examples = $examples; - } - public function getExamples() - { - return $this->examples; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $itemId; - public $lineNumber; - public $value; - - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - public function getItemId() - { - return $this->itemId; - } - public function setLineNumber($lineNumber) - { - $this->lineNumber = $lineNumber; - } - public function getLineNumber() - { - return $this->lineNumber; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; - protected $datafeedDataType = ''; - public $datafeedId; - public $merchantId; - public $method; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - public function getDatafeed() - { - return $this->datafeed; - } - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - public function getDatafeedId() - { - return $this->datafeedId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; - protected $datafeedDataType = ''; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - public function getDatafeed() - { - return $this->datafeed; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - public $datafeedId; - public $merchantId; - public $method; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - public function getDatafeedId() - { - return $this->datafeedId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus'; - protected $datafeedStatusDataType = ''; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus) - { - $this->datafeedStatus = $datafeedStatus; - } - public function getDatafeedStatus() - { - return $this->datafeedStatus; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_Error extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $domain; - public $message; - public $reason; - - - public function setDomain($domain) - { - $this->domain = $domain; - } - public function getDomain() - { - return $this->domain; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_ShoppingContent_Errors extends Google_Collection -{ - protected $collection_key = 'errors'; - protected $internal_gapi_mappings = array( - ); - public $code; - protected $errorsType = 'Google_Service_ShoppingContent_Error'; - protected $errorsDataType = 'array'; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ShoppingContent_Installment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $months; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setMonths($months) - { - $this->months = $months; - } - public function getMonths() - { - return $this->months; - } -} - -class Google_Service_ShoppingContent_Inventory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $availability; - protected $installmentType = 'Google_Service_ShoppingContent_Installment'; - protected $installmentDataType = ''; - public $kind; - protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - public $sellOnGoogleQuantity; - - - public function setAvailability($availability) - { - $this->availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - public function setInstallment(Google_Service_ShoppingContent_Installment $installment) - { - $this->installment = $installment; - } - public function getInstallment() - { - return $this->installment; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - public function getSalePrice() - { - return $this->salePrice; - } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - public function setSellOnGoogleQuantity($sellOnGoogleQuantity) - { - $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; - } - public function getSellOnGoogleQuantity() - { - return $this->sellOnGoogleQuantity; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; - protected $inventoryDataType = ''; - public $merchantId; - public $productId; - public $storeCode; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) - { - $this->inventory = $inventory; - } - public function getInventory() - { - return $this->inventory; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setStoreCode($storeCode) - { - $this->storeCode = $storeCode; - } - public function getStoreCode() - { - return $this->storeCode; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $availability; - protected $installmentType = 'Google_Service_ShoppingContent_Installment'; - protected $installmentDataType = ''; - protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - public $sellOnGoogleQuantity; - - - public function setAvailability($availability) - { - $this->availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - public function setInstallment(Google_Service_ShoppingContent_Installment $installment) - { - $this->installment = $installment; - } - public function getInstallment() - { - return $this->installment; - } - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - public function getSalePrice() - { - return $this->salePrice; - } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - public function setSellOnGoogleQuantity($sellOnGoogleQuantity) - { - $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; - } - public function getSellOnGoogleQuantity() - { - return $this->sellOnGoogleQuantity; - } -} - -class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $pointsValue; - public $ratio; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPointsValue($pointsValue) - { - $this->pointsValue = $pointsValue; - } - public function getPointsValue() - { - return $this->pointsValue; - } - public function setRatio($ratio) - { - $this->ratio = $ratio; - } - public function getRatio() - { - return $this->ratio; - } -} - -class Google_Service_ShoppingContent_Order extends Google_Collection -{ - protected $collection_key = 'shipments'; - protected $internal_gapi_mappings = array( - ); - public $acknowledged; - protected $customerType = 'Google_Service_ShoppingContent_OrderCustomer'; - protected $customerDataType = ''; - protected $deliveryDetailsType = 'Google_Service_ShoppingContent_OrderDeliveryDetails'; - protected $deliveryDetailsDataType = ''; - public $id; - public $kind; - protected $lineItemsType = 'Google_Service_ShoppingContent_OrderLineItem'; - protected $lineItemsDataType = 'array'; - public $merchantId; - public $merchantOrderId; - protected $netAmountType = 'Google_Service_ShoppingContent_Price'; - protected $netAmountDataType = ''; - protected $paymentMethodType = 'Google_Service_ShoppingContent_OrderPaymentMethod'; - protected $paymentMethodDataType = ''; - public $paymentStatus; - public $placedDate; - protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; - protected $promotionsDataType = 'array'; - protected $refundsType = 'Google_Service_ShoppingContent_OrderRefund'; - protected $refundsDataType = 'array'; - protected $shipmentsType = 'Google_Service_ShoppingContent_OrderShipment'; - protected $shipmentsDataType = 'array'; - protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; - protected $shippingCostDataType = ''; - protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; - protected $shippingCostTaxDataType = ''; - public $shippingOption; - public $status; - - - public function setAcknowledged($acknowledged) - { - $this->acknowledged = $acknowledged; - } - public function getAcknowledged() - { - return $this->acknowledged; - } - public function setCustomer(Google_Service_ShoppingContent_OrderCustomer $customer) - { - $this->customer = $customer; - } - public function getCustomer() - { - return $this->customer; - } - public function setDeliveryDetails(Google_Service_ShoppingContent_OrderDeliveryDetails $deliveryDetails) - { - $this->deliveryDetails = $deliveryDetails; - } - public function getDeliveryDetails() - { - return $this->deliveryDetails; - } - 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 setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMerchantOrderId($merchantOrderId) - { - $this->merchantOrderId = $merchantOrderId; - } - public function getMerchantOrderId() - { - return $this->merchantOrderId; - } - public function setNetAmount(Google_Service_ShoppingContent_Price $netAmount) - { - $this->netAmount = $netAmount; - } - public function getNetAmount() - { - return $this->netAmount; - } - public function setPaymentMethod(Google_Service_ShoppingContent_OrderPaymentMethod $paymentMethod) - { - $this->paymentMethod = $paymentMethod; - } - public function getPaymentMethod() - { - return $this->paymentMethod; - } - public function setPaymentStatus($paymentStatus) - { - $this->paymentStatus = $paymentStatus; - } - public function getPaymentStatus() - { - return $this->paymentStatus; - } - public function setPlacedDate($placedDate) - { - $this->placedDate = $placedDate; - } - public function getPlacedDate() - { - return $this->placedDate; - } - public function setPromotions($promotions) - { - $this->promotions = $promotions; - } - public function getPromotions() - { - return $this->promotions; - } - public function setRefunds($refunds) - { - $this->refunds = $refunds; - } - public function getRefunds() - { - return $this->refunds; - } - public function setShipments($shipments) - { - $this->shipments = $shipments; - } - public function getShipments() - { - return $this->shipments; - } - public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost) - { - $this->shippingCost = $shippingCost; - } - public function getShippingCost() - { - return $this->shippingCost; - } - public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax) - { - $this->shippingCostTax = $shippingCostTax; - } - public function getShippingCostTax() - { - return $this->shippingCostTax; - } - public function setShippingOption($shippingOption) - { - $this->shippingOption = $shippingOption; - } - public function getShippingOption() - { - return $this->shippingOption; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_ShoppingContent_OrderAddress extends Google_Collection -{ - protected $collection_key = 'streetAddress'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $fullAddress; - public $isPostOfficeBox; - public $locality; - public $postalCode; - public $recipientName; - public $region; - public $streetAddress; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setFullAddress($fullAddress) - { - $this->fullAddress = $fullAddress; - } - public function getFullAddress() - { - return $this->fullAddress; - } - public function setIsPostOfficeBox($isPostOfficeBox) - { - $this->isPostOfficeBox = $isPostOfficeBox; - } - public function getIsPostOfficeBox() - { - return $this->isPostOfficeBox; - } - public function setLocality($locality) - { - $this->locality = $locality; - } - public function getLocality() - { - return $this->locality; - } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - public function getPostalCode() - { - return $this->postalCode; - } - public function setRecipientName($recipientName) - { - $this->recipientName = $recipientName; - } - public function getRecipientName() - { - return $this->recipientName; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } - public function getStreetAddress() - { - return $this->streetAddress; - } -} - -class Google_Service_ShoppingContent_OrderCancellation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actor; - public $creationDate; - public $quantity; - public $reason; - public $reasonText; - - - public function setActor($actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrderCustomer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $explicitMarketingPreference; - public $fullName; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setExplicitMarketingPreference($explicitMarketingPreference) - { - $this->explicitMarketingPreference = $explicitMarketingPreference; - } - public function getExplicitMarketingPreference() - { - return $this->explicitMarketingPreference; - } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } - public function getFullName() - { - return $this->fullName; - } -} - -class Google_Service_ShoppingContent_OrderDeliveryDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $addressType = 'Google_Service_ShoppingContent_OrderAddress'; - protected $addressDataType = ''; - public $phoneNumber; - - - public function setAddress(Google_Service_ShoppingContent_OrderAddress $address) - { - $this->address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - public function getPhoneNumber() - { - return $this->phoneNumber; - } -} - -class Google_Service_ShoppingContent_OrderLineItem extends Google_Collection -{ - protected $collection_key = 'returns'; - protected $internal_gapi_mappings = array( - ); - protected $cancellationsType = 'Google_Service_ShoppingContent_OrderCancellation'; - protected $cancellationsDataType = 'array'; - public $id; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - protected $productType = 'Google_Service_ShoppingContent_OrderLineItemProduct'; - protected $productDataType = ''; - public $quantityCanceled; - public $quantityDelivered; - public $quantityOrdered; - public $quantityPending; - public $quantityReturned; - public $quantityShipped; - protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo'; - protected $returnInfoDataType = ''; - protected $returnsType = 'Google_Service_ShoppingContent_OrderReturn'; - protected $returnsDataType = 'array'; - protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails'; - protected $shippingDetailsDataType = ''; - protected $taxType = 'Google_Service_ShoppingContent_Price'; - protected $taxDataType = ''; - - - public function setCancellations($cancellations) - { - $this->cancellations = $cancellations; - } - public function getCancellations() - { - return $this->cancellations; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setProduct(Google_Service_ShoppingContent_OrderLineItemProduct $product) - { - $this->product = $product; - } - public function getProduct() - { - return $this->product; - } - public function setQuantityCanceled($quantityCanceled) - { - $this->quantityCanceled = $quantityCanceled; - } - public function getQuantityCanceled() - { - return $this->quantityCanceled; - } - public function setQuantityDelivered($quantityDelivered) - { - $this->quantityDelivered = $quantityDelivered; - } - public function getQuantityDelivered() - { - return $this->quantityDelivered; - } - public function setQuantityOrdered($quantityOrdered) - { - $this->quantityOrdered = $quantityOrdered; - } - public function getQuantityOrdered() - { - return $this->quantityOrdered; - } - public function setQuantityPending($quantityPending) - { - $this->quantityPending = $quantityPending; - } - public function getQuantityPending() - { - return $this->quantityPending; - } - public function setQuantityReturned($quantityReturned) - { - $this->quantityReturned = $quantityReturned; - } - public function getQuantityReturned() - { - return $this->quantityReturned; - } - public function setQuantityShipped($quantityShipped) - { - $this->quantityShipped = $quantityShipped; - } - public function getQuantityShipped() - { - return $this->quantityShipped; - } - public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo) - { - $this->returnInfo = $returnInfo; - } - public function getReturnInfo() - { - return $this->returnInfo; - } - public function setReturns($returns) - { - $this->returns = $returns; - } - public function getReturns() - { - return $this->returns; - } - public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails) - { - $this->shippingDetails = $shippingDetails; - } - public function getShippingDetails() - { - return $this->shippingDetails; - } - public function setTax(Google_Service_ShoppingContent_Price $tax) - { - $this->tax = $tax; - } - public function getTax() - { - return $this->tax; - } -} - -class Google_Service_ShoppingContent_OrderLineItemProduct extends Google_Collection -{ - protected $collection_key = 'variantAttributes'; - protected $internal_gapi_mappings = array( - ); - public $brand; - public $channel; - public $condition; - public $contentLanguage; - public $gtin; - public $id; - public $imageLink; - public $itemGroupId; - public $mpn; - public $offerId; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $shownImage; - public $targetCountry; - public $title; - protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute'; - protected $variantAttributesDataType = 'array'; - - - public function setBrand($brand) - { - $this->brand = $brand; - } - public function getBrand() - { - return $this->brand; - } - public function setChannel($channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - public function getContentLanguage() - { - return $this->contentLanguage; - } - public function setGtin($gtin) - { - $this->gtin = $gtin; - } - public function getGtin() - { - return $this->gtin; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImageLink($imageLink) - { - $this->imageLink = $imageLink; - } - public function getImageLink() - { - return $this->imageLink; - } - public function setItemGroupId($itemGroupId) - { - $this->itemGroupId = $itemGroupId; - } - public function getItemGroupId() - { - return $this->itemGroupId; - } - public function setMpn($mpn) - { - $this->mpn = $mpn; - } - public function getMpn() - { - return $this->mpn; - } - public function setOfferId($offerId) - { - $this->offerId = $offerId; - } - public function getOfferId() - { - return $this->offerId; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setShownImage($shownImage) - { - $this->shownImage = $shownImage; - } - public function getShownImage() - { - return $this->shownImage; - } - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - public function getTargetCountry() - { - return $this->targetCountry; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setVariantAttributes($variantAttributes) - { - $this->variantAttributes = $variantAttributes; - } - public function getVariantAttributes() - { - return $this->variantAttributes; - } -} - -class Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dimension; - public $value; - - - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_OrderLineItemReturnInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $daysToReturn; - public $isReturnable; - public $policyUrl; - - - public function setDaysToReturn($daysToReturn) - { - $this->daysToReturn = $daysToReturn; - } - public function getDaysToReturn() - { - return $this->daysToReturn; - } - public function setIsReturnable($isReturnable) - { - $this->isReturnable = $isReturnable; - } - public function getIsReturnable() - { - return $this->isReturnable; - } - public function setPolicyUrl($policyUrl) - { - $this->policyUrl = $policyUrl; - } - public function getPolicyUrl() - { - return $this->policyUrl; - } -} - -class Google_Service_ShoppingContent_OrderLineItemShippingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deliverByDate; - protected $methodType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod'; - protected $methodDataType = ''; - public $shipByDate; - - - public function setDeliverByDate($deliverByDate) - { - $this->deliverByDate = $deliverByDate; - } - public function getDeliverByDate() - { - return $this->deliverByDate; - } - public function setMethod(Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod $method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setShipByDate($shipByDate) - { - $this->shipByDate = $shipByDate; - } - public function getShipByDate() - { - return $this->shipByDate; - } -} - -class Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $maxDaysInTransit; - public $methodName; - public $minDaysInTransit; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setMaxDaysInTransit($maxDaysInTransit) - { - $this->maxDaysInTransit = $maxDaysInTransit; - } - public function getMaxDaysInTransit() - { - return $this->maxDaysInTransit; - } - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } - public function getMethodName() - { - return $this->methodName; - } - public function setMinDaysInTransit($minDaysInTransit) - { - $this->minDaysInTransit = $minDaysInTransit; - } - public function getMinDaysInTransit() - { - return $this->minDaysInTransit; - } -} - -class Google_Service_ShoppingContent_OrderPaymentMethod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $billingAddressType = 'Google_Service_ShoppingContent_OrderAddress'; - protected $billingAddressDataType = ''; - public $expirationMonth; - public $expirationYear; - public $lastFourDigits; - public $phoneNumber; - public $type; - - - public function setBillingAddress(Google_Service_ShoppingContent_OrderAddress $billingAddress) - { - $this->billingAddress = $billingAddress; - } - public function getBillingAddress() - { - return $this->billingAddress; - } - public function setExpirationMonth($expirationMonth) - { - $this->expirationMonth = $expirationMonth; - } - public function getExpirationMonth() - { - return $this->expirationMonth; - } - public function setExpirationYear($expirationYear) - { - $this->expirationYear = $expirationYear; - } - public function getExpirationYear() - { - return $this->expirationYear; - } - public function setLastFourDigits($lastFourDigits) - { - $this->lastFourDigits = $lastFourDigits; - } - public function getLastFourDigits() - { - return $this->lastFourDigits; - } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - public function getPhoneNumber() - { - return $this->phoneNumber; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_ShoppingContent_OrderPromotion extends Google_Collection -{ - protected $collection_key = 'benefits'; - protected $internal_gapi_mappings = array( - ); - protected $benefitsType = 'Google_Service_ShoppingContent_OrderPromotionBenefit'; - protected $benefitsDataType = 'array'; - public $effectiveDates; - public $genericRedemptionCode; - public $id; - public $longTitle; - public $productApplicability; - public $redemptionChannel; - - - public function setBenefits($benefits) - { - $this->benefits = $benefits; - } - public function getBenefits() - { - return $this->benefits; - } - public function setEffectiveDates($effectiveDates) - { - $this->effectiveDates = $effectiveDates; - } - public function getEffectiveDates() - { - return $this->effectiveDates; - } - public function setGenericRedemptionCode($genericRedemptionCode) - { - $this->genericRedemptionCode = $genericRedemptionCode; - } - public function getGenericRedemptionCode() - { - return $this->genericRedemptionCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLongTitle($longTitle) - { - $this->longTitle = $longTitle; - } - public function getLongTitle() - { - return $this->longTitle; - } - public function setProductApplicability($productApplicability) - { - $this->productApplicability = $productApplicability; - } - public function getProductApplicability() - { - return $this->productApplicability; - } - public function setRedemptionChannel($redemptionChannel) - { - $this->redemptionChannel = $redemptionChannel; - } - public function getRedemptionChannel() - { - return $this->redemptionChannel; - } -} - -class Google_Service_ShoppingContent_OrderPromotionBenefit extends Google_Collection -{ - protected $collection_key = 'offerIds'; - protected $internal_gapi_mappings = array( - ); - protected $discountType = 'Google_Service_ShoppingContent_Price'; - protected $discountDataType = ''; - public $offerIds; - public $subType; - protected $taxImpactType = 'Google_Service_ShoppingContent_Price'; - protected $taxImpactDataType = ''; - public $type; - - - public function setDiscount(Google_Service_ShoppingContent_Price $discount) - { - $this->discount = $discount; - } - public function getDiscount() - { - return $this->discount; - } - public function setOfferIds($offerIds) - { - $this->offerIds = $offerIds; - } - public function getOfferIds() - { - return $this->offerIds; - } - public function setSubType($subType) - { - $this->subType = $subType; - } - public function getSubType() - { - return $this->subType; - } - public function setTaxImpact(Google_Service_ShoppingContent_Price $taxImpact) - { - $this->taxImpact = $taxImpact; - } - public function getTaxImpact() - { - return $this->taxImpact; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_ShoppingContent_OrderRefund extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actor; - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $creationDate; - public $reason; - public $reasonText; - - - public function setActor($actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrderReturn extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actor; - public $creationDate; - public $quantity; - public $reason; - public $reasonText; - - - public function setActor($actor) - { - $this->actor = $actor; - } - public function getActor() - { - return $this->actor; - } - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrderShipment extends Google_Collection -{ - protected $collection_key = 'lineItems'; - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $creationDate; - public $deliveryDate; - public $id; - protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; - protected $lineItemsDataType = 'array'; - public $status; - public $trackingId; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setDeliveryDate($deliveryDate) - { - $this->deliveryDate = $deliveryDate; - } - public function getDeliveryDate() - { - return $this->deliveryDate; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} - -class Google_Service_ShoppingContent_OrderShipmentLineItemShipment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lineItemId; - public $quantity; - - - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } -} - -class Google_Service_ShoppingContent_OrdersAcknowledgeRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operationId; - - - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } -} - -class Google_Service_ShoppingContent_OrdersAcknowledgeResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $lineItemId; - public $operationId; - public $quantity; - public $reason; - public $reasonText; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCancelLineItemResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersCancelRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operationId; - public $reason; - public $reasonText; - - - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCancelResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersCreateTestOrderRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $templateName; - protected $testOrderType = 'Google_Service_ShoppingContent_TestOrder'; - protected $testOrderDataType = ''; - - - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } - public function getTemplateName() - { - return $this->templateName; - } - public function setTestOrder(Google_Service_ShoppingContent_TestOrder $testOrder) - { - $this->testOrder = $testOrder; - } - public function getTestOrder() - { - return $this->testOrder; - } -} - -class Google_Service_ShoppingContent_OrdersCreateTestOrderResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $orderId; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $cancelType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel'; - protected $cancelDataType = ''; - protected $cancelLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem'; - protected $cancelLineItemDataType = ''; - public $merchantId; - public $merchantOrderId; - public $method; - public $operationId; - public $orderId; - protected $refundType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund'; - protected $refundDataType = ''; - protected $returnLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem'; - protected $returnLineItemDataType = ''; - protected $shipLineItemsType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems'; - protected $shipLineItemsDataType = ''; - protected $updateShipmentType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment'; - protected $updateShipmentDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setCancel(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel $cancel) - { - $this->cancel = $cancel; - } - public function getCancel() - { - return $this->cancel; - } - public function setCancelLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem $cancelLineItem) - { - $this->cancelLineItem = $cancelLineItem; - } - public function getCancelLineItem() - { - return $this->cancelLineItem; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMerchantOrderId($merchantOrderId) - { - $this->merchantOrderId = $merchantOrderId; - } - public function getMerchantOrderId() - { - return $this->merchantOrderId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - public function setRefund(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund $refund) - { - $this->refund = $refund; - } - public function getRefund() - { - return $this->refund; - } - public function setReturnLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem $returnLineItem) - { - $this->returnLineItem = $returnLineItem; - } - public function getReturnLineItem() - { - return $this->returnLineItem; - } - public function setShipLineItems(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems $shipLineItems) - { - $this->shipLineItems = $shipLineItems; - } - public function getShipLineItems() - { - return $this->shipLineItems; - } - public function setUpdateShipment(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment $updateShipment) - { - $this->updateShipment = $updateShipment; - } - public function getUpdateShipment() - { - return $this->updateShipment; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $reason; - public $reasonText; - - - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $lineItemId; - public $quantity; - public $reason; - public $reasonText; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $reason; - public $reasonText; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lineItemId; - public $quantity; - public $reason; - public $reasonText; - - - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems extends Google_Collection -{ - protected $collection_key = 'lineItems'; - protected $internal_gapi_mappings = array( - ); - public $carrier; - protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; - protected $lineItemsDataType = 'array'; - public $shipmentId; - public $trackingId; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } - public function setShipmentId($shipmentId) - { - $this->shipmentId = $shipmentId; - } - public function getShipmentId() - { - return $this->shipmentId; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $shipmentId; - public $status; - public $trackingId; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setShipmentId($shipmentId) - { - $this->shipmentId = $shipmentId; - } - public function getShipmentId() - { - return $this->shipmentId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $executionStatus; - public $kind; - protected $orderType = 'Google_Service_ShoppingContent_Order'; - protected $orderDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOrder(Google_Service_ShoppingContent_Order $order) - { - $this->order = $order; - } - public function getOrder() - { - return $this->order; - } -} - -class Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $orderType = 'Google_Service_ShoppingContent_Order'; - protected $orderDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOrder(Google_Service_ShoppingContent_Order $order) - { - $this->order = $order; - } - public function getOrder() - { - return $this->order; - } -} - -class Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - protected $templateType = 'Google_Service_ShoppingContent_TestOrder'; - protected $templateDataType = ''; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTemplate(Google_Service_ShoppingContent_TestOrder $template) - { - $this->template = $template; - } - public function getTemplate() - { - return $this->template; - } -} - -class Google_Service_ShoppingContent_OrdersListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Order'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_OrdersRefundRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $operationId; - public $reason; - public $reasonText; - - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - public function getAmount() - { - return $this->amount; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersRefundResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersReturnLineItemRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lineItemId; - public $operationId; - public $quantity; - public $reason; - public $reasonText; - - - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} - -class Google_Service_ShoppingContent_OrdersReturnLineItemResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_Collection -{ - protected $collection_key = 'lineItems'; - protected $internal_gapi_mappings = array( - ); - public $carrier; - protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; - protected $lineItemsDataType = 'array'; - public $operationId; - public $shipmentId; - public $trackingId; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setShipmentId($shipmentId) - { - $this->shipmentId = $shipmentId; - } - public function getShipmentId() - { - return $this->shipmentId; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} - -class Google_Service_ShoppingContent_OrdersShipLineItemsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $merchantOrderId; - public $operationId; - - - public function setMerchantOrderId($merchantOrderId) - { - $this->merchantOrderId = $merchantOrderId; - } - public function getMerchantOrderId() - { - return $this->merchantOrderId; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } -} - -class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_OrdersUpdateShipmentRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $carrier; - public $operationId; - public $shipmentId; - public $status; - public $trackingId; - - - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setShipmentId($shipmentId) - { - $this->shipmentId = $shipmentId; - } - public function getShipmentId() - { - return $this->shipmentId; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} - -class Google_Service_ShoppingContent_OrdersUpdateShipmentResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $executionStatus; - public $kind; - - - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_Price extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $currency; - public $value; - - - public function setCurrency($currency) - { - $this->currency = $currency; - } - public function getCurrency() - { - return $this->currency; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_Product extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $additionalImageLinks; - public $adult; - public $adwordsGrouping; - public $adwordsLabels; - public $adwordsRedirect; - public $ageGroup; - protected $aspectsType = 'Google_Service_ShoppingContent_ProductAspect'; - protected $aspectsDataType = 'array'; - public $availability; - public $availabilityDate; - public $brand; - public $channel; - public $color; - public $condition; - public $contentLanguage; - protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; - protected $customAttributesDataType = 'array'; - protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup'; - protected $customGroupsDataType = 'array'; - public $customLabel0; - public $customLabel1; - public $customLabel2; - public $customLabel3; - public $customLabel4; - public $description; - protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; - protected $destinationsDataType = 'array'; - public $displayAdsId; - public $displayAdsLink; - public $displayAdsSimilarIds; - public $displayAdsTitle; - public $displayAdsValue; - public $energyEfficiencyClass; - public $expirationDate; - public $gender; - public $googleProductCategory; - public $gtin; - public $id; - public $identifierExists; - public $imageLink; - protected $installmentType = 'Google_Service_ShoppingContent_Installment'; - protected $installmentDataType = ''; - public $isBundle; - public $itemGroupId; - public $kind; - public $link; - protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - public $material; - public $mobileLink; - public $mpn; - public $multipack; - public $offerId; - public $onlineOnly; - public $pattern; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $productType; - public $promotionIds; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - public $sellOnGoogleQuantity; - protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; - protected $shippingDataType = 'array'; - protected $shippingHeightType = 'Google_Service_ShoppingContent_ProductShippingDimension'; - protected $shippingHeightDataType = ''; - public $shippingLabel; - protected $shippingLengthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; - protected $shippingLengthDataType = ''; - protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; - protected $shippingWeightDataType = ''; - protected $shippingWidthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; - protected $shippingWidthDataType = ''; - public $sizeSystem; - public $sizeType; - public $sizes; - public $targetCountry; - protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; - protected $taxesDataType = 'array'; - public $title; - protected $unitPricingBaseMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure'; - protected $unitPricingBaseMeasureDataType = ''; - protected $unitPricingMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingMeasure'; - protected $unitPricingMeasureDataType = ''; - public $validatedDestinations; - protected $warningsType = 'Google_Service_ShoppingContent_Error'; - protected $warningsDataType = 'array'; - - - public function setAdditionalImageLinks($additionalImageLinks) - { - $this->additionalImageLinks = $additionalImageLinks; - } - public function getAdditionalImageLinks() - { - return $this->additionalImageLinks; - } - public function setAdult($adult) - { - $this->adult = $adult; - } - public function getAdult() - { - return $this->adult; - } - public function setAdwordsGrouping($adwordsGrouping) - { - $this->adwordsGrouping = $adwordsGrouping; - } - public function getAdwordsGrouping() - { - return $this->adwordsGrouping; - } - public function setAdwordsLabels($adwordsLabels) - { - $this->adwordsLabels = $adwordsLabels; - } - public function getAdwordsLabels() - { - return $this->adwordsLabels; - } - public function setAdwordsRedirect($adwordsRedirect) - { - $this->adwordsRedirect = $adwordsRedirect; - } - public function getAdwordsRedirect() - { - return $this->adwordsRedirect; - } - public function setAgeGroup($ageGroup) - { - $this->ageGroup = $ageGroup; - } - public function getAgeGroup() - { - return $this->ageGroup; - } - public function setAspects($aspects) - { - $this->aspects = $aspects; - } - public function getAspects() - { - return $this->aspects; - } - public function setAvailability($availability) - { - $this->availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - public function setAvailabilityDate($availabilityDate) - { - $this->availabilityDate = $availabilityDate; - } - public function getAvailabilityDate() - { - return $this->availabilityDate; - } - public function setBrand($brand) - { - $this->brand = $brand; - } - public function getBrand() - { - return $this->brand; - } - public function setChannel($channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setColor($color) - { - $this->color = $color; - } - public function getColor() - { - return $this->color; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - public function getContentLanguage() - { - return $this->contentLanguage; - } - public function setCustomAttributes($customAttributes) - { - $this->customAttributes = $customAttributes; - } - public function getCustomAttributes() - { - return $this->customAttributes; - } - public function setCustomGroups($customGroups) - { - $this->customGroups = $customGroups; - } - public function getCustomGroups() - { - return $this->customGroups; - } - public function setCustomLabel0($customLabel0) - { - $this->customLabel0 = $customLabel0; - } - public function getCustomLabel0() - { - return $this->customLabel0; - } - public function setCustomLabel1($customLabel1) - { - $this->customLabel1 = $customLabel1; - } - public function getCustomLabel1() - { - return $this->customLabel1; - } - public function setCustomLabel2($customLabel2) - { - $this->customLabel2 = $customLabel2; - } - public function getCustomLabel2() - { - return $this->customLabel2; - } - public function setCustomLabel3($customLabel3) - { - $this->customLabel3 = $customLabel3; - } - public function getCustomLabel3() - { - return $this->customLabel3; - } - public function setCustomLabel4($customLabel4) - { - $this->customLabel4 = $customLabel4; - } - public function getCustomLabel4() - { - return $this->customLabel4; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setDestinations($destinations) - { - $this->destinations = $destinations; - } - public function getDestinations() - { - return $this->destinations; - } - public function setDisplayAdsId($displayAdsId) - { - $this->displayAdsId = $displayAdsId; - } - public function getDisplayAdsId() - { - return $this->displayAdsId; - } - public function setDisplayAdsLink($displayAdsLink) - { - $this->displayAdsLink = $displayAdsLink; - } - public function getDisplayAdsLink() - { - return $this->displayAdsLink; - } - public function setDisplayAdsSimilarIds($displayAdsSimilarIds) - { - $this->displayAdsSimilarIds = $displayAdsSimilarIds; - } - public function getDisplayAdsSimilarIds() - { - return $this->displayAdsSimilarIds; - } - public function setDisplayAdsTitle($displayAdsTitle) - { - $this->displayAdsTitle = $displayAdsTitle; - } - public function getDisplayAdsTitle() - { - return $this->displayAdsTitle; - } - public function setDisplayAdsValue($displayAdsValue) - { - $this->displayAdsValue = $displayAdsValue; - } - public function getDisplayAdsValue() - { - return $this->displayAdsValue; - } - public function setEnergyEfficiencyClass($energyEfficiencyClass) - { - $this->energyEfficiencyClass = $energyEfficiencyClass; - } - public function getEnergyEfficiencyClass() - { - return $this->energyEfficiencyClass; - } - public function setExpirationDate($expirationDate) - { - $this->expirationDate = $expirationDate; - } - public function getExpirationDate() - { - return $this->expirationDate; - } - public function setGender($gender) - { - $this->gender = $gender; - } - public function getGender() - { - return $this->gender; - } - public function setGoogleProductCategory($googleProductCategory) - { - $this->googleProductCategory = $googleProductCategory; - } - public function getGoogleProductCategory() - { - return $this->googleProductCategory; - } - public function setGtin($gtin) - { - $this->gtin = $gtin; - } - public function getGtin() - { - return $this->gtin; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIdentifierExists($identifierExists) - { - $this->identifierExists = $identifierExists; - } - public function getIdentifierExists() - { - return $this->identifierExists; - } - public function setImageLink($imageLink) - { - $this->imageLink = $imageLink; - } - public function getImageLink() - { - return $this->imageLink; - } - public function setInstallment(Google_Service_ShoppingContent_Installment $installment) - { - $this->installment = $installment; - } - public function getInstallment() - { - return $this->installment; - } - public function setIsBundle($isBundle) - { - $this->isBundle = $isBundle; - } - public function getIsBundle() - { - return $this->isBundle; - } - public function setItemGroupId($itemGroupId) - { - $this->itemGroupId = $itemGroupId; - } - public function getItemGroupId() - { - return $this->itemGroupId; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLink($link) - { - $this->link = $link; - } - public function getLink() - { - return $this->link; - } - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - public function setMaterial($material) - { - $this->material = $material; - } - public function getMaterial() - { - return $this->material; - } - public function setMobileLink($mobileLink) - { - $this->mobileLink = $mobileLink; - } - public function getMobileLink() - { - return $this->mobileLink; - } - public function setMpn($mpn) - { - $this->mpn = $mpn; - } - public function getMpn() - { - return $this->mpn; - } - public function setMultipack($multipack) - { - $this->multipack = $multipack; - } - public function getMultipack() - { - return $this->multipack; - } - public function setOfferId($offerId) - { - $this->offerId = $offerId; - } - public function getOfferId() - { - return $this->offerId; - } - public function setOnlineOnly($onlineOnly) - { - $this->onlineOnly = $onlineOnly; - } - public function getOnlineOnly() - { - return $this->onlineOnly; - } - public function setPattern($pattern) - { - $this->pattern = $pattern; - } - public function getPattern() - { - return $this->pattern; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setProductType($productType) - { - $this->productType = $productType; - } - public function getProductType() - { - return $this->productType; - } - public function setPromotionIds($promotionIds) - { - $this->promotionIds = $promotionIds; - } - public function getPromotionIds() - { - return $this->promotionIds; - } - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - public function getSalePrice() - { - return $this->salePrice; - } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - public function setSellOnGoogleQuantity($sellOnGoogleQuantity) - { - $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; - } - public function getSellOnGoogleQuantity() - { - return $this->sellOnGoogleQuantity; - } - public function setShipping($shipping) - { - $this->shipping = $shipping; - } - public function getShipping() - { - return $this->shipping; - } - public function setShippingHeight(Google_Service_ShoppingContent_ProductShippingDimension $shippingHeight) - { - $this->shippingHeight = $shippingHeight; - } - public function getShippingHeight() - { - return $this->shippingHeight; - } - public function setShippingLabel($shippingLabel) - { - $this->shippingLabel = $shippingLabel; - } - public function getShippingLabel() - { - return $this->shippingLabel; - } - public function setShippingLength(Google_Service_ShoppingContent_ProductShippingDimension $shippingLength) - { - $this->shippingLength = $shippingLength; - } - public function getShippingLength() - { - return $this->shippingLength; - } - public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) - { - $this->shippingWeight = $shippingWeight; - } - public function getShippingWeight() - { - return $this->shippingWeight; - } - public function setShippingWidth(Google_Service_ShoppingContent_ProductShippingDimension $shippingWidth) - { - $this->shippingWidth = $shippingWidth; - } - public function getShippingWidth() - { - return $this->shippingWidth; - } - public function setSizeSystem($sizeSystem) - { - $this->sizeSystem = $sizeSystem; - } - public function getSizeSystem() - { - return $this->sizeSystem; - } - public function setSizeType($sizeType) - { - $this->sizeType = $sizeType; - } - public function getSizeType() - { - return $this->sizeType; - } - public function setSizes($sizes) - { - $this->sizes = $sizes; - } - public function getSizes() - { - return $this->sizes; - } - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - public function getTargetCountry() - { - return $this->targetCountry; - } - public function setTaxes($taxes) - { - $this->taxes = $taxes; - } - public function getTaxes() - { - return $this->taxes; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setUnitPricingBaseMeasure(Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure $unitPricingBaseMeasure) - { - $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; - } - public function getUnitPricingBaseMeasure() - { - return $this->unitPricingBaseMeasure; - } - public function setUnitPricingMeasure(Google_Service_ShoppingContent_ProductUnitPricingMeasure $unitPricingMeasure) - { - $this->unitPricingMeasure = $unitPricingMeasure; - } - public function getUnitPricingMeasure() - { - return $this->unitPricingMeasure; - } - public function setValidatedDestinations($validatedDestinations) - { - $this->validatedDestinations = $validatedDestinations; - } - public function getValidatedDestinations() - { - return $this->validatedDestinations; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_ShoppingContent_ProductAspect extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $aspectName; - public $destinationName; - public $intention; - - - public function setAspectName($aspectName) - { - $this->aspectName = $aspectName; - } - public function getAspectName() - { - return $this->aspectName; - } - public function setDestinationName($destinationName) - { - $this->destinationName = $destinationName; - } - public function getDestinationName() - { - return $this->destinationName; - } - public function setIntention($intention) - { - $this->intention = $intention; - } - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $type; - public $unit; - public $value; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection -{ - protected $collection_key = 'attributes'; - protected $internal_gapi_mappings = array( - ); - protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; - protected $attributesDataType = 'array'; - public $name; - - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - public function getAttributes() - { - return $this->attributes; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_ShoppingContent_ProductDestination extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $destinationName; - public $intention; - - - public function setDestinationName($destinationName) - { - $this->destinationName = $destinationName; - } - public function getDestinationName() - { - return $this->destinationName; - } - public function setIntention($intention) - { - $this->intention = $intention; - } - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_ShoppingContent_ProductShipping extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $locationGroupName; - public $locationId; - public $postalCode; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $region; - public $service; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setLocationGroupName($locationGroupName) - { - $this->locationGroupName = $locationGroupName; - } - public function getLocationGroupName() - { - return $this->locationGroupName; - } - public function setLocationId($locationId) - { - $this->locationId = $locationId; - } - public function getLocationId() - { - return $this->locationId; - } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - public function getPostalCode() - { - return $this->postalCode; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setService($service) - { - $this->service = $service; - } - public function getService() - { - return $this->service; - } -} - -class Google_Service_ShoppingContent_ProductShippingDimension extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $unit; - public $value; - - - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $unit; - public $value; - - - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductStatus extends Google_Collection -{ - protected $collection_key = 'destinationStatuses'; - protected $internal_gapi_mappings = array( - ); - public $creationDate; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; - protected $destinationStatusesDataType = 'array'; - public $googleExpirationDate; - public $kind; - public $lastUpdateDate; - public $link; - public $productId; - public $title; - - - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } - public function getCreationDate() - { - return $this->creationDate; - } - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - public function setDestinationStatuses($destinationStatuses) - { - $this->destinationStatuses = $destinationStatuses; - } - public function getDestinationStatuses() - { - return $this->destinationStatuses; - } - public function setGoogleExpirationDate($googleExpirationDate) - { - $this->googleExpirationDate = $googleExpirationDate; - } - public function getGoogleExpirationDate() - { - return $this->googleExpirationDate; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastUpdateDate($lastUpdateDate) - { - $this->lastUpdateDate = $lastUpdateDate; - } - public function getLastUpdateDate() - { - return $this->lastUpdateDate; - } - public function setLink($link) - { - $this->link = $link; - } - public function getLink() - { - return $this->link; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $detail; - public $fetchStatus; - public $id; - public $location; - public $severity; - public $timestamp; - public $valueOnLandingPage; - public $valueProvided; - - - public function setDetail($detail) - { - $this->detail = $detail; - } - public function getDetail() - { - return $this->detail; - } - public function setFetchStatus($fetchStatus) - { - $this->fetchStatus = $fetchStatus; - } - public function getFetchStatus() - { - return $this->fetchStatus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } - public function setValueProvided($valueProvided) - { - $this->valueProvided = $valueProvided; - } - public function getValueProvided() - { - return $this->valueProvided; - } -} - -class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $approvalStatus; - public $destination; - public $intention; - - - public function setApprovalStatus($approvalStatus) - { - $this->approvalStatus = $approvalStatus; - } - public function getApprovalStatus() - { - return $this->approvalStatus; - } - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setIntention($intention) - { - $this->intention = $intention; - } - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_ShoppingContent_ProductTax extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $locationId; - public $postalCode; - public $rate; - public $region; - public $taxShip; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setLocationId($locationId) - { - $this->locationId = $locationId; - } - public function getLocationId() - { - return $this->locationId; - } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - public function getPostalCode() - { - return $this->postalCode; - } - public function setRate($rate) - { - $this->rate = $rate; - } - public function getRate() - { - return $this->rate; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setTaxShip($taxShip) - { - $this->taxShip = $taxShip; - } - public function getTaxShip() - { - return $this->taxShip; - } -} - -class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $unit; - public $value; - - - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $unit; - public $value; - - - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - public $merchantId; - public $method; - protected $productType = 'Google_Service_ShoppingContent_Product'; - protected $productDataType = ''; - public $productId; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setProduct(Google_Service_ShoppingContent_Product $product) - { - $this->product = $product; - } - public function getProduct() - { - return $this->product; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productType = 'Google_Service_ShoppingContent_Product'; - protected $productDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProduct(Google_Service_ShoppingContent_Product $product) - { - $this->product = $product; - } - public function getProduct() - { - return $this->product; - } -} - -class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Product'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - public $merchantId; - public $method; - public $productId; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus'; - protected $productStatusDataType = ''; - - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus) - { - $this->productStatus = $productStatus; - } - public function getProductStatus() - { - return $this->productStatus; - } -} - -class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection -{ - protected $collection_key = 'resources'; - protected $internal_gapi_mappings = array( - ); - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; - protected $resourcesDataType = 'array'; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResources($resources) - { - $this->resources = $resources; - } - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_TestOrder extends Google_Collection -{ - protected $collection_key = 'promotions'; - protected $internal_gapi_mappings = array( - ); - protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer'; - protected $customerDataType = ''; - public $kind; - protected $lineItemsType = 'Google_Service_ShoppingContent_TestOrderLineItem'; - protected $lineItemsDataType = 'array'; - protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod'; - protected $paymentMethodDataType = ''; - public $predefinedDeliveryAddress; - protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; - protected $promotionsDataType = 'array'; - protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; - protected $shippingCostDataType = ''; - protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; - protected $shippingCostTaxDataType = ''; - public $shippingOption; - - - public function setCustomer(Google_Service_ShoppingContent_TestOrderCustomer $customer) - { - $this->customer = $customer; - } - public function getCustomer() - { - return $this->customer; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - public function getLineItems() - { - return $this->lineItems; - } - public function setPaymentMethod(Google_Service_ShoppingContent_TestOrderPaymentMethod $paymentMethod) - { - $this->paymentMethod = $paymentMethod; - } - public function getPaymentMethod() - { - return $this->paymentMethod; - } - public function setPredefinedDeliveryAddress($predefinedDeliveryAddress) - { - $this->predefinedDeliveryAddress = $predefinedDeliveryAddress; - } - public function getPredefinedDeliveryAddress() - { - return $this->predefinedDeliveryAddress; - } - public function setPromotions($promotions) - { - $this->promotions = $promotions; - } - public function getPromotions() - { - return $this->promotions; - } - public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost) - { - $this->shippingCost = $shippingCost; - } - public function getShippingCost() - { - return $this->shippingCost; - } - public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax) - { - $this->shippingCostTax = $shippingCostTax; - } - public function getShippingCostTax() - { - return $this->shippingCostTax; - } - public function setShippingOption($shippingOption) - { - $this->shippingOption = $shippingOption; - } - public function getShippingOption() - { - return $this->shippingOption; - } -} - -class Google_Service_ShoppingContent_TestOrderCustomer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $email; - public $explicitMarketingPreference; - public $fullName; - - - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setExplicitMarketingPreference($explicitMarketingPreference) - { - $this->explicitMarketingPreference = $explicitMarketingPreference; - } - public function getExplicitMarketingPreference() - { - return $this->explicitMarketingPreference; - } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } - public function getFullName() - { - return $this->fullName; - } -} - -class Google_Service_ShoppingContent_TestOrderLineItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $productType = 'Google_Service_ShoppingContent_TestOrderLineItemProduct'; - protected $productDataType = ''; - public $quantityOrdered; - protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo'; - protected $returnInfoDataType = ''; - protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails'; - protected $shippingDetailsDataType = ''; - protected $unitTaxType = 'Google_Service_ShoppingContent_Price'; - protected $unitTaxDataType = ''; - - - public function setProduct(Google_Service_ShoppingContent_TestOrderLineItemProduct $product) - { - $this->product = $product; - } - public function getProduct() - { - return $this->product; - } - public function setQuantityOrdered($quantityOrdered) - { - $this->quantityOrdered = $quantityOrdered; - } - public function getQuantityOrdered() - { - return $this->quantityOrdered; - } - public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo) - { - $this->returnInfo = $returnInfo; - } - public function getReturnInfo() - { - return $this->returnInfo; - } - public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails) - { - $this->shippingDetails = $shippingDetails; - } - public function getShippingDetails() - { - return $this->shippingDetails; - } - public function setUnitTax(Google_Service_ShoppingContent_Price $unitTax) - { - $this->unitTax = $unitTax; - } - public function getUnitTax() - { - return $this->unitTax; - } -} - -class Google_Service_ShoppingContent_TestOrderLineItemProduct extends Google_Collection -{ - protected $collection_key = 'variantAttributes'; - protected $internal_gapi_mappings = array( - ); - public $brand; - public $channel; - public $condition; - public $contentLanguage; - public $gtin; - public $imageLink; - public $itemGroupId; - public $mpn; - public $offerId; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $targetCountry; - public $title; - protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute'; - protected $variantAttributesDataType = 'array'; - - - public function setBrand($brand) - { - $this->brand = $brand; - } - public function getBrand() - { - return $this->brand; - } - public function setChannel($channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - public function getContentLanguage() - { - return $this->contentLanguage; - } - public function setGtin($gtin) - { - $this->gtin = $gtin; - } - public function getGtin() - { - return $this->gtin; - } - public function setImageLink($imageLink) - { - $this->imageLink = $imageLink; - } - public function getImageLink() - { - return $this->imageLink; - } - public function setItemGroupId($itemGroupId) - { - $this->itemGroupId = $itemGroupId; - } - public function getItemGroupId() - { - return $this->itemGroupId; - } - public function setMpn($mpn) - { - $this->mpn = $mpn; - } - public function getMpn() - { - return $this->mpn; - } - public function setOfferId($offerId) - { - $this->offerId = $offerId; - } - public function getOfferId() - { - return $this->offerId; - } - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - public function getPrice() - { - return $this->price; - } - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - public function getTargetCountry() - { - return $this->targetCountry; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setVariantAttributes($variantAttributes) - { - $this->variantAttributes = $variantAttributes; - } - public function getVariantAttributes() - { - return $this->variantAttributes; - } -} - -class Google_Service_ShoppingContent_TestOrderPaymentMethod extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $expirationMonth; - public $expirationYear; - public $lastFourDigits; - public $predefinedBillingAddress; - public $type; - - - public function setExpirationMonth($expirationMonth) - { - $this->expirationMonth = $expirationMonth; - } - public function getExpirationMonth() - { - return $this->expirationMonth; - } - public function setExpirationYear($expirationYear) - { - $this->expirationYear = $expirationYear; - } - public function getExpirationYear() - { - return $this->expirationYear; - } - public function setLastFourDigits($lastFourDigits) - { - $this->lastFourDigits = $lastFourDigits; - } - public function getLastFourDigits() - { - return $this->lastFourDigits; - } - public function setPredefinedBillingAddress($predefinedBillingAddress) - { - $this->predefinedBillingAddress = $predefinedBillingAddress; - } - public function getPredefinedBillingAddress() - { - return $this->predefinedBillingAddress; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_ShoppingContent_Weight extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $unit; - public $value; - - - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php deleted file mode 100644 index eda138867..000000000 --- a/src/Google/Service/SiteVerification.php +++ /dev/null @@ -1,405 +0,0 @@ - - * Verifies 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 -{ - /** Manage the list of sites and domains you control. */ - const SITEVERIFICATION = - "https://www.googleapis.com/auth/siteverification"; - /** Manage your new site verifications with Google. */ - const SITEVERIFICATION_VERIFY_ONLY = - "https://www.googleapis.com/auth/siteverification.verify_only"; - - public $webResource; - - - /** - * Constructs the internal representation of the SiteVerification service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'siteVerification/v1/'; - $this->version = 'v1'; - $this->serviceName = 'siteVerification'; - - $this->webResource = new Google_Service_SiteVerification_WebResource_Resource( - $this, - $this->serviceName, - 'webResource', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getToken' => array( - 'path' => 'token', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'insert' => array( - 'path' => 'webResource', - 'httpMethod' => 'POST', - 'parameters' => array( - 'verificationMethod' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'webResource', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "webResource" collection of methods. - * Typical usage is: - * - * $siteVerificationService = new Google_Service_SiteVerification(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Get the most current data for a website or domain. (webResource.get) - * - * @param string $id The id of a verified site or domain. - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - - /** - * Get a verification token for placing on a website or domain. - * (webResource.getToken) - * - * @param Google_SiteVerificationWebResourceGettokenRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse - */ - public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse"); - } - - /** - * Attempt verification of a website or domain. (webResource.insert) - * - * @param string $verificationMethod The method to use for verifying a site or - * domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - - /** - * Get the list of your verified websites and domains. - * (webResource.listWebResource) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse - */ - public function listWebResource($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse"); - } - - /** - * Modify the list of owners for your website or domain. This method supports - * patch semantics. (webResource.patch) - * - * @param string $id The id of a verified site or domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - - /** - * Modify the list of owners for your website or domain. (webResource.update) - * - * @param string $id The id of a verified site or domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } -} - - - - -class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'; - protected $siteDataType = ''; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; - protected $itemsDataType = 'array'; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } -} - -class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection -{ - protected $collection_key = 'owners'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $owners; - protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; - protected $siteDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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/Spectrum.php b/src/Google/Service/Spectrum.php deleted file mode 100644 index 0383189be..000000000 --- a/src/Google/Service/Spectrum.php +++ /dev/null @@ -1,1752 +0,0 @@ - - * API for spectrum-management functions.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Spectrum extends Google_Service -{ - - - public $paws; - - - /** - * Constructs the internal representation of the Spectrum service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'spectrum/v1explorer/paws/'; - $this->version = 'v1explorer'; - $this->serviceName = 'spectrum'; - - $this->paws = new Google_Service_Spectrum_Paws_Resource( - $this, - $this->serviceName, - 'paws', - array( - 'methods' => array( - 'getSpectrum' => array( - 'path' => 'getSpectrum', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getSpectrumBatch' => array( - 'path' => 'getSpectrumBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'init' => array( - 'path' => 'init', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'notifySpectrumUse' => array( - 'path' => 'notifySpectrumUse', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'register' => array( - 'path' => 'register', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyDevice' => array( - 'path' => 'verifyDevice', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "paws" collection of methods. - * Typical usage is: - * - * $spectrumService = new Google_Service_Spectrum(...); - * $paws = $spectrumService->paws; - * - */ -class Google_Service_Spectrum_Paws_Resource extends Google_Service_Resource -{ - - /** - * Requests information about the available spectrum for a device at a location. - * Requests from a fixed-mode device must include owner information so the - * device can be registered with the database. (paws.getSpectrum) - * - * @param Google_PawsGetSpectrumRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsGetSpectrumResponse - */ - public function getSpectrum(Google_Service_Spectrum_PawsGetSpectrumRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getSpectrum', array($params), "Google_Service_Spectrum_PawsGetSpectrumResponse"); - } - - /** - * The Google Spectrum Database does not support batch requests, so this method - * always yields an UNIMPLEMENTED error. (paws.getSpectrumBatch) - * - * @param Google_PawsGetSpectrumBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsGetSpectrumBatchResponse - */ - public function getSpectrumBatch(Google_Service_Spectrum_PawsGetSpectrumBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getSpectrumBatch', array($params), "Google_Service_Spectrum_PawsGetSpectrumBatchResponse"); - } - - /** - * Initializes the connection between a white space device and the database. - * (paws.init) - * - * @param Google_PawsInitRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsInitResponse - */ - public function init(Google_Service_Spectrum_PawsInitRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('init', array($params), "Google_Service_Spectrum_PawsInitResponse"); - } - - /** - * Notifies the database that the device has selected certain frequency ranges - * for transmission. Only to be invoked when required by the regulator. The - * Google Spectrum Database does not operate in domains that require - * notification, so this always yields an UNIMPLEMENTED error. - * (paws.notifySpectrumUse) - * - * @param Google_PawsNotifySpectrumUseRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsNotifySpectrumUseResponse - */ - public function notifySpectrumUse(Google_Service_Spectrum_PawsNotifySpectrumUseRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('notifySpectrumUse', array($params), "Google_Service_Spectrum_PawsNotifySpectrumUseResponse"); - } - - /** - * The Google Spectrum Database implements registration in the getSpectrum - * method. As such this always returns an UNIMPLEMENTED error. (paws.register) - * - * @param Google_PawsRegisterRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsRegisterResponse - */ - public function register(Google_Service_Spectrum_PawsRegisterRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('register', array($params), "Google_Service_Spectrum_PawsRegisterResponse"); - } - - /** - * Validates a device for white space use in accordance with regulatory rules. - * The Google Spectrum Database does not support master/slave configurations, so - * this always yields an UNIMPLEMENTED error. (paws.verifyDevice) - * - * @param Google_PawsVerifyDeviceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsVerifyDeviceResponse - */ - public function verifyDevice(Google_Service_Spectrum_PawsVerifyDeviceRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyDevice', array($params), "Google_Service_Spectrum_PawsVerifyDeviceResponse"); - } -} - - - - -class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $height; - public $heightType; - public $heightUncertainty; - - - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setHeightType($heightType) - { - $this->heightType = $heightType; - } - public function getHeightType() - { - return $this->heightType; - } - public function setHeightUncertainty($heightUncertainty) - { - $this->heightUncertainty = $heightUncertainty; - } - public function getHeightUncertainty() - { - return $this->heightUncertainty; - } -} - -class Google_Service_Spectrum_DatabaseSpec extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $uri; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection -{ - protected $collection_key = 'databases'; - protected $internal_gapi_mappings = array( - ); - protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; - protected $databasesDataType = 'array'; - - - public function setDatabases($databases) - { - $this->databases = $databases; - } - public function getDatabases() - { - return $this->databases; - } -} - -class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection -{ - protected $collection_key = 'frequencyRanges'; - protected $internal_gapi_mappings = array( - ); - protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; - protected $frequencyRangesDataType = 'array'; - - - public function setFrequencyRanges($frequencyRanges) - { - $this->frequencyRanges = $frequencyRanges; - } - public function getFrequencyRanges() - { - return $this->frequencyRanges; - } -} - -class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection -{ - protected $collection_key = 'rulesetIds'; - protected $internal_gapi_mappings = array( - ); - public $etsiEnDeviceCategory; - public $etsiEnDeviceEmissionsClass; - public $etsiEnDeviceType; - public $etsiEnTechnologyId; - public $fccId; - public $fccTvbdDeviceType; - public $manufacturerId; - public $modelId; - public $rulesetIds; - public $serialNumber; - - - public function setEtsiEnDeviceCategory($etsiEnDeviceCategory) - { - $this->etsiEnDeviceCategory = $etsiEnDeviceCategory; - } - public function getEtsiEnDeviceCategory() - { - return $this->etsiEnDeviceCategory; - } - public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass) - { - $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass; - } - public function getEtsiEnDeviceEmissionsClass() - { - return $this->etsiEnDeviceEmissionsClass; - } - public function setEtsiEnDeviceType($etsiEnDeviceType) - { - $this->etsiEnDeviceType = $etsiEnDeviceType; - } - public function getEtsiEnDeviceType() - { - return $this->etsiEnDeviceType; - } - public function setEtsiEnTechnologyId($etsiEnTechnologyId) - { - $this->etsiEnTechnologyId = $etsiEnTechnologyId; - } - public function getEtsiEnTechnologyId() - { - return $this->etsiEnTechnologyId; - } - public function setFccId($fccId) - { - $this->fccId = $fccId; - } - public function getFccId() - { - return $this->fccId; - } - public function setFccTvbdDeviceType($fccTvbdDeviceType) - { - $this->fccTvbdDeviceType = $fccTvbdDeviceType; - } - public function getFccTvbdDeviceType() - { - return $this->fccTvbdDeviceType; - } - public function setManufacturerId($manufacturerId) - { - $this->manufacturerId = $manufacturerId; - } - public function getManufacturerId() - { - return $this->manufacturerId; - } - public function setModelId($modelId) - { - $this->modelId = $modelId; - } - public function getModelId() - { - return $this->modelId; - } - public function setRulesetIds($rulesetIds) - { - $this->rulesetIds = $rulesetIds; - } - public function getRulesetIds() - { - return $this->rulesetIds; - } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } - public function getSerialNumber() - { - return $this->serialNumber; - } -} - -class Google_Service_Spectrum_DeviceOwner extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $operatorType = 'Google_Service_Spectrum_Vcard'; - protected $operatorDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_Vcard'; - protected $ownerDataType = ''; - - - public function setOperator(Google_Service_Spectrum_Vcard $operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } - public function setOwner(Google_Service_Spectrum_Vcard $owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } -} - -class Google_Service_Spectrum_DeviceValidity extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - public $isValid; - public $reason; - - - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setIsValid($isValid) - { - $this->isValid = $isValid; - } - public function getIsValid() - { - return $this->isValid; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_Spectrum_EventTime extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $startTime; - public $stopTime; - - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStopTime($stopTime) - { - $this->stopTime = $stopTime; - } - public function getStopTime() - { - return $this->stopTime; - } -} - -class Google_Service_Spectrum_FrequencyRange extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $maxPowerDBm; - public $startHz; - public $stopHz; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setMaxPowerDBm($maxPowerDBm) - { - $this->maxPowerDBm = $maxPowerDBm; - } - public function getMaxPowerDBm() - { - return $this->maxPowerDBm; - } - public function setStartHz($startHz) - { - $this->startHz = $startHz; - } - public function getStartHz() - { - return $this->startHz; - } - public function setStopHz($stopHz) - { - $this->stopHz = $stopHz; - } - public function getStopHz() - { - return $this->stopHz; - } -} - -class Google_Service_Spectrum_GeoLocation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $confidence; - protected $pointType = 'Google_Service_Spectrum_GeoLocationEllipse'; - protected $pointDataType = ''; - protected $regionType = 'Google_Service_Spectrum_GeoLocationPolygon'; - protected $regionDataType = ''; - - - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } - public function getConfidence() - { - return $this->confidence; - } - public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point) - { - $this->point = $point; - } - public function getPoint() - { - return $this->point; - } - public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } -} - -class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $centerType = 'Google_Service_Spectrum_GeoLocationPoint'; - protected $centerDataType = ''; - public $orientation; - public $semiMajorAxis; - public $semiMinorAxis; - - - public function setCenter(Google_Service_Spectrum_GeoLocationPoint $center) - { - $this->center = $center; - } - public function getCenter() - { - return $this->center; - } - public function setOrientation($orientation) - { - $this->orientation = $orientation; - } - public function getOrientation() - { - return $this->orientation; - } - public function setSemiMajorAxis($semiMajorAxis) - { - $this->semiMajorAxis = $semiMajorAxis; - } - public function getSemiMajorAxis() - { - return $this->semiMajorAxis; - } - public function setSemiMinorAxis($semiMinorAxis) - { - $this->semiMinorAxis = $semiMinorAxis; - } - public function getSemiMinorAxis() - { - return $this->semiMinorAxis; - } -} - -class Google_Service_Spectrum_GeoLocationPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Spectrum_GeoLocationPolygon extends Google_Collection -{ - protected $collection_key = 'exterior'; - protected $internal_gapi_mappings = array( - ); - protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; - protected $exteriorDataType = 'array'; - - - public function setExterior($exterior) - { - $this->exterior = $exterior; - } - public function getExterior() - { - return $this->exterior; - } -} - -class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection -{ - protected $collection_key = 'spectrumSchedules'; - protected $internal_gapi_mappings = array( - ); - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; - protected $spectrumSchedulesDataType = 'array'; - - - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setSpectrumSchedules($spectrumSchedules) - { - $this->spectrumSchedules = $spectrumSchedules; - } - public function getSpectrumSchedules() - { - return $this->spectrumSchedules; - } -} - -class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection -{ - protected $collection_key = 'locations'; - protected $internal_gapi_mappings = array( - ); - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; - protected $capabilitiesDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationsType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationsDataType = 'array'; - protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $masterDeviceDescDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $ownerDataType = ''; - public $requestType; - public $type; - public $version; - - - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } - public function getAntenna() - { - return $this->antenna; - } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setLocations($locations) - { - $this->locations = $locations; - } - public function getLocations() - { - return $this->locations; - } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) - { - $this->masterDeviceDesc = $masterDeviceDesc; - } - public function getMasterDeviceDesc() - { - return $this->masterDeviceDesc; - } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } - public function getRequestType() - { - return $this->requestType; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection -{ - protected $collection_key = 'geoSpectrumSchedules'; - protected $internal_gapi_mappings = array( - ); - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $geoSpectrumSchedulesType = 'Google_Service_Spectrum_GeoSpectrumSchedule'; - protected $geoSpectrumSchedulesDataType = 'array'; - public $kind; - public $maxContiguousBwHz; - public $maxTotalBwHz; - public $needsSpectrumReport; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - public $timestamp; - public $type; - public $version; - - - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } - public function getDatabaseChange() - { - return $this->databaseChange; - } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setGeoSpectrumSchedules($geoSpectrumSchedules) - { - $this->geoSpectrumSchedules = $geoSpectrumSchedules; - } - public function getGeoSpectrumSchedules() - { - return $this->geoSpectrumSchedules; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxContiguousBwHz($maxContiguousBwHz) - { - $this->maxContiguousBwHz = $maxContiguousBwHz; - } - public function getMaxContiguousBwHz() - { - return $this->maxContiguousBwHz; - } - public function setMaxTotalBwHz($maxTotalBwHz) - { - $this->maxTotalBwHz = $maxTotalBwHz; - } - public function getMaxTotalBwHz() - { - return $this->maxTotalBwHz; - } - public function setNeedsSpectrumReport($needsSpectrumReport) - { - $this->needsSpectrumReport = $needsSpectrumReport; - } - public function getNeedsSpectrumReport() - { - return $this->needsSpectrumReport; - } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; - protected $capabilitiesDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $masterDeviceDescDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $ownerDataType = ''; - public $requestType; - public $type; - public $version; - - - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } - public function getAntenna() - { - return $this->antenna; - } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) - { - $this->capabilities = $capabilities; - } - public function getCapabilities() - { - return $this->capabilities; - } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) - { - $this->masterDeviceDesc = $masterDeviceDesc; - } - public function getMasterDeviceDesc() - { - return $this->masterDeviceDesc; - } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) - { - $this->owner = $owner; - } - public function getOwner() - { - return $this->owner; - } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } - public function getRequestType() - { - return $this->requestType; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection -{ - protected $collection_key = 'spectrumSchedules'; - protected $internal_gapi_mappings = array( - ); - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - public $kind; - public $maxContiguousBwHz; - public $maxTotalBwHz; - public $needsSpectrumReport; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; - protected $spectrumSchedulesDataType = 'array'; - public $timestamp; - public $type; - public $version; - - - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } - public function getDatabaseChange() - { - return $this->databaseChange; - } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxContiguousBwHz($maxContiguousBwHz) - { - $this->maxContiguousBwHz = $maxContiguousBwHz; - } - public function getMaxContiguousBwHz() - { - return $this->maxContiguousBwHz; - } - public function setMaxTotalBwHz($maxTotalBwHz) - { - $this->maxTotalBwHz = $maxTotalBwHz; - } - public function getMaxTotalBwHz() - { - return $this->maxTotalBwHz; - } - public function setNeedsSpectrumReport($needsSpectrumReport) - { - $this->needsSpectrumReport = $needsSpectrumReport; - } - public function getNeedsSpectrumReport() - { - return $this->needsSpectrumReport; - } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } - public function setSpectrumSchedules($spectrumSchedules) - { - $this->spectrumSchedules = $spectrumSchedules; - } - public function getSpectrumSchedules() - { - return $this->spectrumSchedules; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsInitRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - public $type; - public $version; - - - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsInitResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - public $kind; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - public $type; - public $version; - - - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } - public function getDatabaseChange() - { - return $this->databaseChange; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection -{ - protected $collection_key = 'spectra'; - protected $internal_gapi_mappings = array( - ); - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; - protected $spectraDataType = 'array'; - public $type; - public $version; - - - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setSpectra($spectra) - { - $this->spectra = $spectra; - } - public function getSpectra() - { - return $this->spectra; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $type; - public $version; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $deviceOwnerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $deviceOwnerDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - public $type; - public $version; - - - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } - public function getAntenna() - { - return $this->antenna; - } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } - public function getDeviceDesc() - { - return $this->deviceDesc; - } - public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner) - { - $this->deviceOwner = $deviceOwner; - } - public function getDeviceOwner() - { - return $this->deviceOwner; - } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - public $kind; - public $type; - public $version; - - - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } - public function getDatabaseChange() - { - return $this->databaseChange; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection -{ - protected $collection_key = 'deviceDescs'; - protected $internal_gapi_mappings = array( - ); - protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescsDataType = 'array'; - public $type; - public $version; - - - public function setDeviceDescs($deviceDescs) - { - $this->deviceDescs = $deviceDescs; - } - public function getDeviceDescs() - { - return $this->deviceDescs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection -{ - protected $collection_key = 'deviceValidities'; - protected $internal_gapi_mappings = array( - ); - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity'; - protected $deviceValiditiesDataType = 'array'; - public $kind; - public $type; - public $version; - - - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } - public function getDatabaseChange() - { - return $this->databaseChange; - } - public function setDeviceValidities($deviceValidities) - { - $this->deviceValidities = $deviceValidities; - } - public function getDeviceValidities() - { - return $this->deviceValidities; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Spectrum_RulesetInfo extends Google_Collection -{ - protected $collection_key = 'rulesetIds'; - protected $internal_gapi_mappings = array( - ); - public $authority; - public $maxLocationChange; - public $maxPollingSecs; - public $rulesetIds; - - - public function setAuthority($authority) - { - $this->authority = $authority; - } - public function getAuthority() - { - return $this->authority; - } - public function setMaxLocationChange($maxLocationChange) - { - $this->maxLocationChange = $maxLocationChange; - } - public function getMaxLocationChange() - { - return $this->maxLocationChange; - } - public function setMaxPollingSecs($maxPollingSecs) - { - $this->maxPollingSecs = $maxPollingSecs; - } - public function getMaxPollingSecs() - { - return $this->maxPollingSecs; - } - public function setRulesetIds($rulesetIds) - { - $this->rulesetIds = $rulesetIds; - } - public function getRulesetIds() - { - return $this->rulesetIds; - } -} - -class Google_Service_Spectrum_SpectrumMessage extends Google_Collection -{ - protected $collection_key = 'frequencyRanges'; - protected $internal_gapi_mappings = array( - ); - public $bandwidth; - protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; - protected $frequencyRangesDataType = 'array'; - - - public function setBandwidth($bandwidth) - { - $this->bandwidth = $bandwidth; - } - public function getBandwidth() - { - return $this->bandwidth; - } - public function setFrequencyRanges($frequencyRanges) - { - $this->frequencyRanges = $frequencyRanges; - } - public function getFrequencyRanges() - { - return $this->frequencyRanges; - } -} - -class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection -{ - protected $collection_key = 'spectra'; - protected $internal_gapi_mappings = array( - ); - protected $eventTimeType = 'Google_Service_Spectrum_EventTime'; - protected $eventTimeDataType = ''; - protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; - protected $spectraDataType = 'array'; - - - public function setEventTime(Google_Service_Spectrum_EventTime $eventTime) - { - $this->eventTime = $eventTime; - } - public function getEventTime() - { - return $this->eventTime; - } - public function setSpectra($spectra) - { - $this->spectra = $spectra; - } - public function getSpectra() - { - return $this->spectra; - } -} - -class Google_Service_Spectrum_Vcard extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $adrType = 'Google_Service_Spectrum_VcardAddress'; - protected $adrDataType = ''; - protected $emailType = 'Google_Service_Spectrum_VcardTypedText'; - protected $emailDataType = ''; - public $fn; - protected $orgType = 'Google_Service_Spectrum_VcardTypedText'; - protected $orgDataType = ''; - protected $telType = 'Google_Service_Spectrum_VcardTelephone'; - protected $telDataType = ''; - - - public function setAdr(Google_Service_Spectrum_VcardAddress $adr) - { - $this->adr = $adr; - } - public function getAdr() - { - return $this->adr; - } - public function setEmail(Google_Service_Spectrum_VcardTypedText $email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFn($fn) - { - $this->fn = $fn; - } - public function getFn() - { - return $this->fn; - } - public function setOrg(Google_Service_Spectrum_VcardTypedText $org) - { - $this->org = $org; - } - public function getOrg() - { - return $this->org; - } - public function setTel(Google_Service_Spectrum_VcardTelephone $tel) - { - $this->tel = $tel; - } - public function getTel() - { - return $this->tel; - } -} - -class Google_Service_Spectrum_VcardAddress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $country; - public $locality; - public $pobox; - public $region; - public $street; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setLocality($locality) - { - $this->locality = $locality; - } - public function getLocality() - { - return $this->locality; - } - public function setPobox($pobox) - { - $this->pobox = $pobox; - } - public function getPobox() - { - return $this->pobox; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setStreet($street) - { - $this->street = $street; - } - public function getStreet() - { - return $this->street; - } -} - -class Google_Service_Spectrum_VcardTelephone extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $uri; - - - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Google_Service_Spectrum_VcardTypedText extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $text; - - - public function setText($text) - { - $this->text = $text; - } - public function getText() - { - return $this->text; - } -} diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php deleted file mode 100644 index b42f92e73..000000000 --- a/src/Google/Service/Storage.php +++ /dev/null @@ -1,3378 +0,0 @@ - - * 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 -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** View your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM_READ_ONLY = - "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = - "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = - "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - - public $bucketAccessControls; - public $buckets; - public $channels; - public $defaultObjectAccessControls; - public $objectAccessControls; - public $objects; - - - /** - * Constructs the internal representation of the Storage service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'storage/v1/'; - $this->version = 'v1'; - $this->serviceName = 'storage'; - - $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource( - $this, - $this->serviceName, - 'bucketAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->buckets = new Google_Service_Storage_Buckets_Resource( - $this, - $this->serviceName, - 'buckets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedDefaultObjectAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedDefaultObjectAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedDefaultObjectAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Storage_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource( - $this, - $this->serviceName, - 'defaultObjectAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/defaultObjectAcl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/defaultObjectAcl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource( - $this, - $this->serviceName, - 'objectAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/o/{object}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/o/{object}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->objects = new Google_Service_Storage_Objects_Resource( - $this, - $this->serviceName, - 'objects', - array( - 'methods' => array( - 'compose' => array( - 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose', - 'httpMethod' => 'POST', - 'parameters' => array( - 'destinationBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationPredefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'copy' => array( - 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'sourceBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationPredefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sourceGeneration' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/o', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentEncoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/o', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'versions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rewrite' => array( - 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'sourceBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationPredefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxBytesRewrittenPerCall' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rewriteToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sourceGeneration' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watchAll' => array( - 'path' => 'b/{bucket}/o/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'versions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "bucketAccessControls" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $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, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - */ - public function delete($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns the ACL entry for the specified entity on the specified bucket. - * (bucketAccessControls.get) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function get($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); - } - - /** - * Creates a new ACL entry on the specified bucket. - * (bucketAccessControls.insert) - * - * @param string $bucket Name of a bucket. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); - } - - /** - * Retrieves ACL entries on the specified bucket. - * (bucketAccessControls.listBucketAccessControls) - * - * @param string $bucket Name of a bucket. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControls - */ - public function listBucketAccessControls($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); - } - - /** - * Updates an ACL entry on the specified bucket. This method supports patch - * semantics. (bucketAccessControls.patch) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); - } - - /** - * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl"); - } -} - -/** - * The "buckets" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $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 If set, only deletes the bucket if - * its metageneration matches this value. - * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if - * its metageneration does not match this value. - */ - public function delete($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns metadata for the specified bucket. (buckets.get) - * - * @param string $bucket Name of a bucket. - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch Makes the return of the bucket - * metadata conditional on whether the bucket's current metageneration matches - * the given value. - * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket - * metadata conditional on whether the bucket's current metageneration does not - * match the given value. - * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @return Google_Service_Storage_Bucket - */ - public function get($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_Bucket"); - } - - /** - * Creates a new bucket. (buckets.insert) - * - * @param string $project A valid API project identifier. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this bucket. - * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. - * @opt_param string projection Set of properties to return. Defaults to noAcl, - * unless the bucket resource specifies acl or defaultObjectAcl properties, when - * it defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); - } - - /** - * Retrieves a list of buckets for a given project. (buckets.listBuckets) - * - * @param string $project A valid API project identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string 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 prefix Filter results to buckets whose names begin with - * this prefix. - * @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); - return $this->call('list', array($params), "Google_Service_Storage_Buckets"); - } - - /** - * Updates a bucket. This method supports patch semantics. (buckets.patch) - * - * @param string $bucket Name of a bucket. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch Makes the return of the bucket - * metadata conditional on whether the bucket's current metageneration matches - * the given value. - * @opt_param string 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 predefinedAcl Apply a predefined set of access controls to - * this bucket. - * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. - * @opt_param string projection Set of properties to return. Defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); - } - - /** - * Updates a bucket. (buckets.update) - * - * @param string $bucket Name of a bucket. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch Makes the return of the bucket - * metadata conditional on whether the bucket's current metageneration matches - * the given value. - * @opt_param string 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 predefinedAcl Apply a predefined set of access controls to - * this bucket. - * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of - * default object access controls to this bucket. - * @opt_param string projection Set of properties to return. Defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_Bucket"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $channels = $storageService->channels; - * - */ -class Google_Service_Storage_Channels_Resource extends Google_Service_Resource -{ - - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Storage_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } -} - -/** - * The "defaultObjectAccessControls" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $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, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - */ - public function delete($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns the default object ACL entry for the specified entity on the - * specified bucket. (defaultObjectAccessControls.get) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function get($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Creates a new default object ACL entry on the specified bucket. - * (defaultObjectAccessControls.insert) - * - * @param string $bucket Name of a bucket. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Retrieves default object ACL entries on the specified bucket. - * (defaultObjectAccessControls.listDefaultObjectAccessControls) - * - * @param string $bucket Name of a bucket. - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch If present, only return default ACL - * listing if the bucket's current metageneration matches this value. - * @opt_param string ifMetagenerationNotMatch If present, only return default - * ACL listing if the bucket's current metageneration does not match the given - * value. - * @return Google_Service_Storage_ObjectAccessControls - */ - public function listDefaultObjectAccessControls($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); - } - - /** - * Updates a default object ACL entry on the specified bucket. This method - * supports patch semantics. (defaultObjectAccessControls.patch) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Updates a default object ACL entry on the specified bucket. - * (defaultObjectAccessControls.update) - * - * @param string $bucket Name of a bucket. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); - } -} - -/** - * The "objectAccessControls" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $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. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - */ - public function delete($bucket, $object, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns the ACL entry for the specified entity on the specified object. - * (objectAccessControls.get) - * - * @param string $bucket Name of a bucket. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function get($bucket, $object, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Creates a new ACL entry on the specified object. - * (objectAccessControls.insert) - * - * @param string $bucket Name of a bucket. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Retrieves ACL entries on the specified object. - * (objectAccessControls.listObjectAccessControls) - * - * @param string $bucket Name of a bucket. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - * @return Google_Service_Storage_ObjectAccessControls - */ - public function listObjectAccessControls($bucket, $object, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); - } - - /** - * Updates an ACL entry on the specified object. This method supports patch - * semantics. (objectAccessControls.patch) - * - * @param string $bucket Name of a bucket. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - - /** - * Updates an ACL entry on the specified object. (objectAccessControls.update) - * - * @param string $bucket Name of a bucket. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @param string $entity The entity holding the permission. Can be user-userId, - * user-emailAddress, group-groupId, group-emailAddress, allUsers, or - * allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation If present, selects a specific revision of this - * object (as opposed to the latest version, the default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); - } -} - -/** - * The "objects" collection of methods. - * Typical usage is: - * - * $storageService = new Google_Service_Storage(...); - * $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. For information - * about how to URL encode object names to be path safe, see Encoding URI Path - * Parts. - * @param Google_ComposeRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. - * @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); - return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Copies a source object to a destination object. 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. For information about - * how to URL encode object names to be path safe, see Encoding URI Path Parts. - * @param string $destinationBucket Name of the bucket in which to store the new - * object. Overrides the provided object metadata's bucket value, if any.For - * information about how to URL encode object names to be path safe, see - * Encoding URI Path Parts. - * @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 destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. - * @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); - return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Deletes an object and its metadata. Deletions are permanent if versioning is - * not enabled for the bucket, or if the generation parameter is used. - * (objects.delete) - * - * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @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); - return $this->call('delete', array($params)); - } - - /** - * Retrieves an object or its metadata. (objects.get) - * - * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @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); - return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Stores a new object and metadata. (objects.insert) - * - * @param string $bucket Name of the bucket in which to store the new object. - * Overrides the provided object metadata's bucket value, if any. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string contentEncoding If set, sets the contentEncoding property - * of the final object to this value. Setting this parameter is equivalent to - * setting the contentEncoding metadata property. This can be useful when - * uploading an object with uploadType=media to indicate the encoding of the - * content being uploaded. - * @opt_param string ifGenerationMatch Makes the operation conditional on - * whether the object's current generation matches the given value. - * @opt_param string 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. For information about how to URL encode object names to be path safe, - * see Encoding URI Path Parts. - * @opt_param string predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string projection Set of properties to return. Defaults to noAcl, - * unless the object resource specifies the acl property, when it defaults to - * full. - * @return Google_Service_Storage_StorageObject - */ - public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Retrieves a list of objects matching the criteria. (objects.listObjects) - * - * @param string $bucket Name of the bucket in which to look for objects. - * @param array $optParams Optional parameters. - * - * @opt_param string 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. The default value of this parameter is 1,000 items. - * @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 an object as distinct - * results. The default is false. For more information, see Object Versioning. - * @return Google_Service_Storage_Objects - */ - public function listObjects($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_Objects"); - } - - /** - * Updates an object's metadata. This method supports patch semantics. - * (objects.patch) - * - * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @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 predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string projection Set of properties to return. Defaults to full. - * @return Google_Service_Storage_StorageObject - */ - public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Rewrites a source object to a destination object. Optionally overrides - * metadata. (objects.rewrite) - * - * @param string $sourceBucket Name of the bucket in which to find the source - * object. - * @param string $sourceObject Name of the source object. For information about - * how to URL encode object names to be path safe, see Encoding URI Path Parts. - * @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. For information about how to URL encode object names to - * be path safe, see Encoding URI Path Parts. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string destinationPredefinedAcl Apply a predefined set of access - * controls to the destination object. - * @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 maxBytesRewrittenPerCall The maximum number of bytes that - * will be rewritten per rewrite request. Most callers shouldn't need to specify - * this parameter - it is primarily in place to support testing. If specified - * the value must be an integral multiple of 1 MiB (1048576). Also, this only - * applies to requests where the source and destination span locations and/or - * storage classes. Finally, this value must not change across rewrite calls - * else you'll get an error that the rewriteToken is invalid. - * @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 rewriteToken Include this field (from the previous rewrite - * response) on each rewrite request after the first one, until the rewrite - * response 'done' flag is true. Calls that provide a rewriteToken can omit all - * other request fields, but if included those fields must match the values - * provided in the first rewrite request. - * @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_RewriteResponse - */ - public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse"); - } - - /** - * Updates an object's metadata. (objects.update) - * - * @param string $bucket Name of the bucket in which the object resides. - * @param string $object Name of the object. For information about how to URL - * encode object names to be path safe, see Encoding URI Path Parts. - * @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 predefinedAcl Apply a predefined set of access controls to - * this object. - * @opt_param string projection Set of properties to return. Defaults to full. - * @return Google_Service_Storage_StorageObject - */ - public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); - } - - /** - * Watch for changes on all objects in a bucket. (objects.watchAll) - * - * @param string $bucket Name of the bucket in which to look for objects. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string 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. The default value of this parameter is 1,000 items. - * @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 an object as distinct - * results. The default is false. For more information, see Object Versioning. - * @return Google_Service_Storage_Channel - */ - public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watchAll', array($params), "Google_Service_Storage_Channel"); - } -} - - - - -class Google_Service_Storage_Bucket extends Google_Collection -{ - protected $collection_key = 'defaultObjectAcl'; - protected $internal_gapi_mappings = array( - ); - protected $aclType = 'Google_Service_Storage_BucketAccessControl'; - protected $aclDataType = 'array'; - protected $corsType = 'Google_Service_Storage_BucketCors'; - protected $corsDataType = 'array'; - protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl'; - protected $defaultObjectAclDataType = 'array'; - public $etag; - public $id; - public $kind; - protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle'; - protected $lifecycleDataType = ''; - public $location; - protected $loggingType = 'Google_Service_Storage_BucketLogging'; - protected $loggingDataType = ''; - public $metageneration; - public $name; - protected $ownerType = 'Google_Service_Storage_BucketOwner'; - protected $ownerDataType = ''; - public $projectNumber; - public $selfLink; - public $storageClass; - public $timeCreated; - public $updated; - protected $versioningType = 'Google_Service_Storage_BucketVersioning'; - protected $versioningDataType = ''; - protected $websiteType = 'Google_Service_Storage_BucketWebsite'; - protected $websiteDataType = ''; - - - 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 setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) - { - $this->lifecycle = $lifecycle; - } - public function getLifecycle() - { - return $this->lifecycle; - } - 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 setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - 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 setUpdated($updated) - { - $this->updated = $updated; - } - public function getUpdated() - { - return $this->updated; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $bucket; - public $domain; - public $email; - public $entity; - public $entityId; - public $etag; - public $id; - public $kind; - protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam'; - protected $projectTeamDataType = ''; - public $role; - public $selfLink; - - - public function setBucket($bucket) - { - $this->bucket = $bucket; - } - public function 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 setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) - { - $this->projectTeam = $projectTeam; - } - public function getProjectTeam() - { - return $this->projectTeam; - } - 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_BucketAccessControlProjectTeam extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $projectNumber; - public $team; - - - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setTeam($team) - { - $this->team = $team; - } - public function getTeam() - { - return $this->team; - } -} - -class Google_Service_Storage_BucketAccessControls extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Storage_BucketCors extends Google_Collection -{ - protected $collection_key = 'responseHeader'; - protected $internal_gapi_mappings = array( - ); - 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_BucketLifecycle extends Google_Collection -{ - protected $collection_key = 'rule'; - protected $internal_gapi_mappings = array( - ); - protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; - protected $ruleDataType = 'array'; - - - public function setRule($rule) - { - $this->rule = $rule; - } - public function getRule() - { - return $this->rule; - } -} - -class Google_Service_Storage_BucketLifecycleRule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; - protected $actionDataType = ''; - protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; - protected $conditionDataType = ''; - - - public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) - { - $this->action = $action; - } - public function getAction() - { - return $this->action; - } - public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } -} - -class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $age; - public $createdBefore; - public $isLive; - public $numNewerVersions; - - - public function setAge($age) - { - $this->age = $age; - } - public function getAge() - { - return $this->age; - } - public function setCreatedBefore($createdBefore) - { - $this->createdBefore = $createdBefore; - } - public function getCreatedBefore() - { - return $this->createdBefore; - } - public function setIsLive($isLive) - { - $this->isLive = $isLive; - } - public function getIsLive() - { - return $this->isLive; - } - public function setNumNewerVersions($numNewerVersions) - { - $this->numNewerVersions = $numNewerVersions; - } - public function getNumNewerVersions() - { - return $this->numNewerVersions; - } -} - -class Google_Service_Storage_BucketLogging extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $enabled; - - - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } -} - -class Google_Service_Storage_BucketWebsite extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Storage_Bucket'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Storage_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; - - - public function setAddress($address) - { - $this->address = $address; - } - public function 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 setPayload($payload) - { - $this->payload = $payload; - } - public function getPayload() - { - return $this->payload; - } - 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 $collection_key = 'sourceObjects'; - protected $internal_gapi_mappings = array( - ); - protected $destinationType = 'Google_Service_Storage_StorageObject'; - protected $destinationDataType = ''; - public $kind; - protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; - protected $sourceObjectsDataType = 'array'; - - - public function setDestination(Google_Service_Storage_StorageObject $destination) - { - $this->destination = $destination; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - public $generation; - public $name; - protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; - protected $objectPreconditionsDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $ifGenerationMatch; - - - public function setIfGenerationMatch($ifGenerationMatch) - { - $this->ifGenerationMatch = $ifGenerationMatch; - } - public function getIfGenerationMatch() - { - return $this->ifGenerationMatch; - } -} - -class Google_Service_Storage_ObjectAccessControl extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucket; - public $domain; - public $email; - public $entity; - public $entityId; - public $etag; - public $generation; - public $id; - public $kind; - public $object; - protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam'; - protected $projectTeamDataType = ''; - public $role; - public $selfLink; - - - public function setBucket($bucket) - { - $this->bucket = $bucket; - } - public function 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 setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) - { - $this->projectTeam = $projectTeam; - } - public function getProjectTeam() - { - return $this->projectTeam; - } - 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_ObjectAccessControlProjectTeam extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $projectNumber; - public $team; - - - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setTeam($team) - { - $this->team = $team; - } - public function getTeam() - { - return $this->team; - } -} - -class Google_Service_Storage_ObjectAccessControls extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = 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_Objects extends Google_Collection -{ - protected $collection_key = 'prefixes'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Storage_StorageObject'; - protected $itemsDataType = 'array'; - 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_RewriteResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - public $kind; - public $objectSize; - protected $resourceType = 'Google_Service_Storage_StorageObject'; - protected $resourceDataType = ''; - public $rewriteToken; - public $totalBytesRewritten; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setObjectSize($objectSize) - { - $this->objectSize = $objectSize; - } - public function getObjectSize() - { - return $this->objectSize; - } - public function setResource(Google_Service_Storage_StorageObject $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } - public function setRewriteToken($rewriteToken) - { - $this->rewriteToken = $rewriteToken; - } - public function getRewriteToken() - { - return $this->rewriteToken; - } - public function setTotalBytesRewritten($totalBytesRewritten) - { - $this->totalBytesRewritten = $totalBytesRewritten; - } - public function getTotalBytesRewritten() - { - return $this->totalBytesRewritten; - } -} - -class Google_Service_Storage_StorageObject extends Google_Collection -{ - protected $collection_key = 'acl'; - protected $internal_gapi_mappings = array( - ); - protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; - protected $aclDataType = 'array'; - public $bucket; - public $cacheControl; - public $componentCount; - public $contentDisposition; - public $contentEncoding; - public $contentLanguage; - public $contentType; - public $crc32c; - protected $customerEncryptionType = 'Google_Service_Storage_StorageObjectCustomerEncryption'; - protected $customerEncryptionDataType = ''; - public $etag; - public $generation; - public $id; - public $kind; - public $md5Hash; - public $mediaLink; - public $metadata; - public $metageneration; - public $name; - protected $ownerType = 'Google_Service_Storage_StorageObjectOwner'; - protected $ownerDataType = ''; - public $selfLink; - public $size; - public $storageClass; - public $timeCreated; - 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 setCustomerEncryption(Google_Service_Storage_StorageObjectCustomerEncryption $customerEncryption) - { - $this->customerEncryption = $customerEncryption; - } - public function getCustomerEncryption() - { - return $this->customerEncryption; - } - 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 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 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_StorageObjectCustomerEncryption extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $encryptionAlgorithm; - public $keySha256; - - - public function setEncryptionAlgorithm($encryptionAlgorithm) - { - $this->encryptionAlgorithm = $encryptionAlgorithm; - } - public function getEncryptionAlgorithm() - { - return $this->encryptionAlgorithm; - } - public function setKeySha256($keySha256) - { - $this->keySha256 = $keySha256; - } - public function getKeySha256() - { - return $this->keySha256; - } -} - -class Google_Service_Storage_StorageObjectOwner extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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/Storagetransfer.php b/src/Google/Service/Storagetransfer.php deleted file mode 100644 index bbafbddd0..000000000 --- a/src/Google/Service/Storagetransfer.php +++ /dev/null @@ -1,1463 +0,0 @@ - - * Transfers data from external data sources to a Google Cloud Storage bucket or - * between Google Cloud Storage buckets.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Storagetransfer extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $googleServiceAccounts; - public $transferJobs; - public $transferOperations; - public $v1; - - - /** - * Constructs the internal representation of the Storagetransfer service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://storagetransfer.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'storagetransfer'; - - $this->googleServiceAccounts = new Google_Service_Storagetransfer_GoogleServiceAccounts_Resource( - $this, - $this->serviceName, - 'googleServiceAccounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/googleServiceAccounts/{projectId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->transferJobs = new Google_Service_Storagetransfer_TransferJobs_Resource( - $this, - $this->serviceName, - 'transferJobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/transferJobs', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'v1/{+jobName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v1/transferJobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'v1/{+jobName}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'jobName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->transferOperations = new Google_Service_Storagetransfer_TransferOperations_Resource( - $this, - $this->serviceName, - 'transferOperations', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'v1/{+name}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'pause' => array( - 'path' => 'v1/{+name}:pause', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resume' => array( - 'path' => 'v1/{+name}:resume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->v1 = new Google_Service_Storagetransfer_V1_Resource( - $this, - $this->serviceName, - 'v1', - array( - 'methods' => array( - 'getGoogleServiceAccount' => array( - 'path' => 'v1:getGoogleServiceAccount', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "googleServiceAccounts" collection of methods. - * Typical usage is: - * - * $storagetransferService = new Google_Service_Storagetransfer(...); - * $googleServiceAccounts = $storagetransferService->googleServiceAccounts; - * - */ -class Google_Service_Storagetransfer_GoogleServiceAccounts_Resource extends Google_Service_Resource -{ - - /** - * Returns the Google service account that is used by Storage Transfer Service - * to access buckets in the project where transfers run or in other projects. - * Each Google service account is associated with one Google Developers Console - * project. Users should add this service account to the Google Cloud Storage - * bucket ACLs to grant access to Storage Transfer Service. This service account - * is created and owned by Storage Transfer Service and can only be used by - * Storage Transfer Service. (googleServiceAccounts.get) - * - * @param string $projectId The ID of the Google Developers Console project that - * the Google service account is associated with. Required. - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_GoogleServiceAccount - */ - public function get($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount"); - } -} - -/** - * The "transferJobs" collection of methods. - * Typical usage is: - * - * $storagetransferService = new Google_Service_Storagetransfer(...); - * $transferJobs = $storagetransferService->transferJobs; - * - */ -class Google_Service_Storagetransfer_TransferJobs_Resource extends Google_Service_Resource -{ - - /** - * Creates a transfer job that runs periodically. (transferJobs.create) - * - * @param Google_TransferJob $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_TransferJob - */ - public function create(Google_Service_Storagetransfer_TransferJob $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Storagetransfer_TransferJob"); - } - - /** - * Gets a transfer job. (transferJobs.get) - * - * @param string $jobName The job to get. Required. - * @param array $optParams Optional parameters. - * - * @opt_param string projectId The ID of the Google Developers Console project - * that owns the job. Required. - * @return Google_Service_Storagetransfer_TransferJob - */ - public function get($jobName, $optParams = array()) - { - $params = array('jobName' => $jobName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storagetransfer_TransferJob"); - } - - /** - * Lists transfer jobs. (transferJobs.listTransferJobs) - * - * @param array $optParams Optional parameters. - * - * @opt_param string filter A list of query parameters specified as JSON text in - * the form of {"`project_id`":"my_project_id", - * "`job_names`":["jobid1","jobid2",...], - * "`job_statuses`":["status1","status2",...]}. Since `job_names` and - * `job_statuses` support multiple values, their values must be specified with - * array notation. `project_id` is required. `job_names` and `job_statuses` are - * optional. The valid values for `job_statuses` are case-insensitive: - * `ENABLED`, `DISABLED`, and `DELETED`. - * @opt_param int pageSize The list page size. The max allowed value is 256. - * @opt_param string pageToken The list page token. - * @return Google_Service_Storagetransfer_ListTransferJobsResponse - */ - public function listTransferJobs($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storagetransfer_ListTransferJobsResponse"); - } - - /** - * Updates a transfer job. Updating a job's transfer spec does not affect - * transfer operations that are running already. Updating the scheduling of a - * job is not allowed. (transferJobs.patch) - * - * @param string $jobName The name of job to update. Required. - * @param Google_UpdateTransferJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_TransferJob - */ - public function patch($jobName, Google_Service_Storagetransfer_UpdateTransferJobRequest $postBody, $optParams = array()) - { - $params = array('jobName' => $jobName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storagetransfer_TransferJob"); - } -} - -/** - * The "transferOperations" collection of methods. - * Typical usage is: - * - * $storagetransferService = new Google_Service_Storagetransfer(...); - * $transferOperations = $storagetransferService->transferOperations; - * - */ -class Google_Service_Storagetransfer_TransferOperations_Resource extends Google_Service_Resource -{ - - /** - * Cancels a transfer. Use the get method to check whether the cancellation - * succeeded or whether the operation completed despite cancellation. - * (transferOperations.cancel) - * - * @param string $name The name of the operation resource to be cancelled. - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_Empty - */ - public function cancel($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params), "Google_Service_Storagetransfer_Empty"); - } - - /** - * This method is not supported and the server returns `UNIMPLEMENTED`. - * (transferOperations.delete) - * - * @param string $name The name of the operation resource to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_Empty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Storagetransfer_Empty"); - } - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. (transferOperations.get) - * - * @param string $name The name of the operation resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_Operation - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storagetransfer_Operation"); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users/operations`. - * (transferOperations.listTransferOperations) - * - * @param string $name The value `transferOperations`. - * @param array $optParams Optional parameters. - * - * @opt_param string filter The standard list filter. - * @opt_param int pageSize The standard list page size. - * @opt_param string pageToken The standard list page token. - * @return Google_Service_Storagetransfer_ListOperationsResponse - */ - public function listTransferOperations($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storagetransfer_ListOperationsResponse"); - } - - /** - * Pauses a transfer operation. (transferOperations.pause) - * - * @param string $name The name of the transfer operation. Required. - * @param Google_PauseTransferOperationRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_Empty - */ - public function pause($name, Google_Service_Storagetransfer_PauseTransferOperationRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('pause', array($params), "Google_Service_Storagetransfer_Empty"); - } - - /** - * Resumes a transfer operation that is paused. (transferOperations.resume) - * - * @param string $name The name of the transfer operation. Required. - * @param Google_ResumeTransferOperationRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storagetransfer_Empty - */ - public function resume($name, Google_Service_Storagetransfer_ResumeTransferOperationRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resume', array($params), "Google_Service_Storagetransfer_Empty"); - } -} - -/** - * The "v1" collection of methods. - * Typical usage is: - * - * $storagetransferService = new Google_Service_Storagetransfer(...); - * $v1 = $storagetransferService->v1; - * - */ -class Google_Service_Storagetransfer_V1_Resource extends Google_Service_Resource -{ - - /** - * Returns the Google service account that is used by Storage Transfer Service - * to access buckets in the project where transfers run or in other projects. - * Each Google service account is associated with one Google Developers Console - * project. Users should add this service account to the Google Cloud Storage - * bucket ACLs to grant access to Storage Transfer Service. This service account - * is created and owned by Storage Transfer Service and can only be used by - * Storage Transfer Service. (v1.getGoogleServiceAccount) - * - * @param array $optParams Optional parameters. - * - * @opt_param string projectId The ID of the Google Developers Console project - * that the Google service account is associated with. Required. - * @return Google_Service_Storagetransfer_GoogleServiceAccount - */ - public function getGoogleServiceAccount($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getGoogleServiceAccount', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount"); - } -} - - - - -class Google_Service_Storagetransfer_AwsAccessKey extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accessKeyId; - public $secretAccessKey; - - - public function setAccessKeyId($accessKeyId) - { - $this->accessKeyId = $accessKeyId; - } - public function getAccessKeyId() - { - return $this->accessKeyId; - } - public function setSecretAccessKey($secretAccessKey) - { - $this->secretAccessKey = $secretAccessKey; - } - public function getSecretAccessKey() - { - return $this->secretAccessKey; - } -} - -class Google_Service_Storagetransfer_AwsS3Data extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $awsAccessKeyType = 'Google_Service_Storagetransfer_AwsAccessKey'; - protected $awsAccessKeyDataType = ''; - public $bucketName; - - - public function setAwsAccessKey(Google_Service_Storagetransfer_AwsAccessKey $awsAccessKey) - { - $this->awsAccessKey = $awsAccessKey; - } - public function getAwsAccessKey() - { - return $this->awsAccessKey; - } - public function setBucketName($bucketName) - { - $this->bucketName = $bucketName; - } - public function getBucketName() - { - return $this->bucketName; - } -} - -class Google_Service_Storagetransfer_Date extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $day; - public $month; - public $year; - - - public function setDay($day) - { - $this->day = $day; - } - public function getDay() - { - return $this->day; - } - public function setMonth($month) - { - $this->month = $month; - } - public function getMonth() - { - return $this->month; - } - public function setYear($year) - { - $this->year = $year; - } - public function getYear() - { - return $this->year; - } -} - -class Google_Service_Storagetransfer_Empty extends Google_Model -{ -} - -class Google_Service_Storagetransfer_ErrorLogEntry extends Google_Collection -{ - protected $collection_key = 'errorDetails'; - protected $internal_gapi_mappings = array( - ); - public $errorDetails; - public $url; - - - public function setErrorDetails($errorDetails) - { - $this->errorDetails = $errorDetails; - } - public function getErrorDetails() - { - return $this->errorDetails; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_Storagetransfer_ErrorSummary extends Google_Collection -{ - protected $collection_key = 'errorLogEntries'; - protected $internal_gapi_mappings = array( - ); - public $errorCode; - public $errorCount; - protected $errorLogEntriesType = 'Google_Service_Storagetransfer_ErrorLogEntry'; - protected $errorLogEntriesDataType = 'array'; - - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - public function getErrorCode() - { - return $this->errorCode; - } - public function setErrorCount($errorCount) - { - $this->errorCount = $errorCount; - } - public function getErrorCount() - { - return $this->errorCount; - } - public function setErrorLogEntries($errorLogEntries) - { - $this->errorLogEntries = $errorLogEntries; - } - public function getErrorLogEntries() - { - return $this->errorLogEntries; - } -} - -class Google_Service_Storagetransfer_GcsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bucketName; - - - public function setBucketName($bucketName) - { - $this->bucketName = $bucketName; - } - public function getBucketName() - { - return $this->bucketName; - } -} - -class Google_Service_Storagetransfer_GoogleServiceAccount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountEmail; - - - public function setAccountEmail($accountEmail) - { - $this->accountEmail = $accountEmail; - } - public function getAccountEmail() - { - return $this->accountEmail; - } -} - -class Google_Service_Storagetransfer_HttpData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $listUrl; - - - public function setListUrl($listUrl) - { - $this->listUrl = $listUrl; - } - public function getListUrl() - { - return $this->listUrl; - } -} - -class Google_Service_Storagetransfer_ListOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $operationsType = 'Google_Service_Storagetransfer_Operation'; - protected $operationsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - -class Google_Service_Storagetransfer_ListTransferJobsResponse extends Google_Collection -{ - protected $collection_key = 'transferJobs'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $transferJobsType = 'Google_Service_Storagetransfer_TransferJob'; - protected $transferJobsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setTransferJobs($transferJobs) - { - $this->transferJobs = $transferJobs; - } - public function getTransferJobs() - { - return $this->transferJobs; - } -} - -class Google_Service_Storagetransfer_ObjectConditions extends Google_Collection -{ - protected $collection_key = 'includePrefixes'; - protected $internal_gapi_mappings = array( - ); - public $excludePrefixes; - public $includePrefixes; - public $maxTimeElapsedSinceLastModification; - public $minTimeElapsedSinceLastModification; - - - public function setExcludePrefixes($excludePrefixes) - { - $this->excludePrefixes = $excludePrefixes; - } - public function getExcludePrefixes() - { - return $this->excludePrefixes; - } - public function setIncludePrefixes($includePrefixes) - { - $this->includePrefixes = $includePrefixes; - } - public function getIncludePrefixes() - { - return $this->includePrefixes; - } - public function setMaxTimeElapsedSinceLastModification($maxTimeElapsedSinceLastModification) - { - $this->maxTimeElapsedSinceLastModification = $maxTimeElapsedSinceLastModification; - } - public function getMaxTimeElapsedSinceLastModification() - { - return $this->maxTimeElapsedSinceLastModification; - } - public function setMinTimeElapsedSinceLastModification($minTimeElapsedSinceLastModification) - { - $this->minTimeElapsedSinceLastModification = $minTimeElapsedSinceLastModification; - } - public function getMinTimeElapsedSinceLastModification() - { - return $this->minTimeElapsedSinceLastModification; - } -} - -class Google_Service_Storagetransfer_Operation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $done; - protected $errorType = 'Google_Service_Storagetransfer_Status'; - protected $errorDataType = ''; - public $metadata; - public $name; - public $response; - - - public function setDone($done) - { - $this->done = $done; - } - public function getDone() - { - return $this->done; - } - public function setError(Google_Service_Storagetransfer_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setMetadata($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 setResponse($response) - { - $this->response = $response; - } - public function getResponse() - { - return $this->response; - } -} - -class Google_Service_Storagetransfer_PauseTransferOperationRequest extends Google_Model -{ -} - -class Google_Service_Storagetransfer_ResumeTransferOperationRequest extends Google_Model -{ -} - -class Google_Service_Storagetransfer_Schedule extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $scheduleEndDateType = 'Google_Service_Storagetransfer_Date'; - protected $scheduleEndDateDataType = ''; - protected $scheduleStartDateType = 'Google_Service_Storagetransfer_Date'; - protected $scheduleStartDateDataType = ''; - protected $startTimeOfDayType = 'Google_Service_Storagetransfer_TimeOfDay'; - protected $startTimeOfDayDataType = ''; - - - public function setScheduleEndDate(Google_Service_Storagetransfer_Date $scheduleEndDate) - { - $this->scheduleEndDate = $scheduleEndDate; - } - public function getScheduleEndDate() - { - return $this->scheduleEndDate; - } - public function setScheduleStartDate(Google_Service_Storagetransfer_Date $scheduleStartDate) - { - $this->scheduleStartDate = $scheduleStartDate; - } - public function getScheduleStartDate() - { - return $this->scheduleStartDate; - } - public function setStartTimeOfDay(Google_Service_Storagetransfer_TimeOfDay $startTimeOfDay) - { - $this->startTimeOfDay = $startTimeOfDay; - } - public function getStartTimeOfDay() - { - return $this->startTimeOfDay; - } -} - -class Google_Service_Storagetransfer_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Storagetransfer_TimeOfDay extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hours; - public $minutes; - public $nanos; - public $seconds; - - - public function setHours($hours) - { - $this->hours = $hours; - } - public function getHours() - { - return $this->hours; - } - public function setMinutes($minutes) - { - $this->minutes = $minutes; - } - public function getMinutes() - { - return $this->minutes; - } - public function setNanos($nanos) - { - $this->nanos = $nanos; - } - public function getNanos() - { - return $this->nanos; - } - public function setSeconds($seconds) - { - $this->seconds = $seconds; - } - public function getSeconds() - { - return $this->seconds; - } -} - -class Google_Service_Storagetransfer_TransferCounters extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $bytesCopiedToSink; - public $bytesDeletedFromSink; - public $bytesDeletedFromSource; - public $bytesFailedToDeleteFromSink; - public $bytesFoundFromSource; - public $bytesFoundOnlyFromSink; - public $bytesFromSourceFailed; - public $bytesFromSourceSkippedBySync; - public $objectsCopiedToSink; - public $objectsDeletedFromSink; - public $objectsDeletedFromSource; - public $objectsFailedToDeleteFromSink; - public $objectsFoundFromSource; - public $objectsFoundOnlyFromSink; - public $objectsFromSourceFailed; - public $objectsFromSourceSkippedBySync; - - - public function setBytesCopiedToSink($bytesCopiedToSink) - { - $this->bytesCopiedToSink = $bytesCopiedToSink; - } - public function getBytesCopiedToSink() - { - return $this->bytesCopiedToSink; - } - public function setBytesDeletedFromSink($bytesDeletedFromSink) - { - $this->bytesDeletedFromSink = $bytesDeletedFromSink; - } - public function getBytesDeletedFromSink() - { - return $this->bytesDeletedFromSink; - } - public function setBytesDeletedFromSource($bytesDeletedFromSource) - { - $this->bytesDeletedFromSource = $bytesDeletedFromSource; - } - public function getBytesDeletedFromSource() - { - return $this->bytesDeletedFromSource; - } - public function setBytesFailedToDeleteFromSink($bytesFailedToDeleteFromSink) - { - $this->bytesFailedToDeleteFromSink = $bytesFailedToDeleteFromSink; - } - public function getBytesFailedToDeleteFromSink() - { - return $this->bytesFailedToDeleteFromSink; - } - public function setBytesFoundFromSource($bytesFoundFromSource) - { - $this->bytesFoundFromSource = $bytesFoundFromSource; - } - public function getBytesFoundFromSource() - { - return $this->bytesFoundFromSource; - } - public function setBytesFoundOnlyFromSink($bytesFoundOnlyFromSink) - { - $this->bytesFoundOnlyFromSink = $bytesFoundOnlyFromSink; - } - public function getBytesFoundOnlyFromSink() - { - return $this->bytesFoundOnlyFromSink; - } - public function setBytesFromSourceFailed($bytesFromSourceFailed) - { - $this->bytesFromSourceFailed = $bytesFromSourceFailed; - } - public function getBytesFromSourceFailed() - { - return $this->bytesFromSourceFailed; - } - public function setBytesFromSourceSkippedBySync($bytesFromSourceSkippedBySync) - { - $this->bytesFromSourceSkippedBySync = $bytesFromSourceSkippedBySync; - } - public function getBytesFromSourceSkippedBySync() - { - return $this->bytesFromSourceSkippedBySync; - } - public function setObjectsCopiedToSink($objectsCopiedToSink) - { - $this->objectsCopiedToSink = $objectsCopiedToSink; - } - public function getObjectsCopiedToSink() - { - return $this->objectsCopiedToSink; - } - public function setObjectsDeletedFromSink($objectsDeletedFromSink) - { - $this->objectsDeletedFromSink = $objectsDeletedFromSink; - } - public function getObjectsDeletedFromSink() - { - return $this->objectsDeletedFromSink; - } - public function setObjectsDeletedFromSource($objectsDeletedFromSource) - { - $this->objectsDeletedFromSource = $objectsDeletedFromSource; - } - public function getObjectsDeletedFromSource() - { - return $this->objectsDeletedFromSource; - } - public function setObjectsFailedToDeleteFromSink($objectsFailedToDeleteFromSink) - { - $this->objectsFailedToDeleteFromSink = $objectsFailedToDeleteFromSink; - } - public function getObjectsFailedToDeleteFromSink() - { - return $this->objectsFailedToDeleteFromSink; - } - public function setObjectsFoundFromSource($objectsFoundFromSource) - { - $this->objectsFoundFromSource = $objectsFoundFromSource; - } - public function getObjectsFoundFromSource() - { - return $this->objectsFoundFromSource; - } - public function setObjectsFoundOnlyFromSink($objectsFoundOnlyFromSink) - { - $this->objectsFoundOnlyFromSink = $objectsFoundOnlyFromSink; - } - public function getObjectsFoundOnlyFromSink() - { - return $this->objectsFoundOnlyFromSink; - } - public function setObjectsFromSourceFailed($objectsFromSourceFailed) - { - $this->objectsFromSourceFailed = $objectsFromSourceFailed; - } - public function getObjectsFromSourceFailed() - { - return $this->objectsFromSourceFailed; - } - public function setObjectsFromSourceSkippedBySync($objectsFromSourceSkippedBySync) - { - $this->objectsFromSourceSkippedBySync = $objectsFromSourceSkippedBySync; - } - public function getObjectsFromSourceSkippedBySync() - { - return $this->objectsFromSourceSkippedBySync; - } -} - -class Google_Service_Storagetransfer_TransferJob extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $creationTime; - public $deletionTime; - public $description; - public $lastModificationTime; - public $name; - public $projectId; - protected $scheduleType = 'Google_Service_Storagetransfer_Schedule'; - protected $scheduleDataType = ''; - public $status; - protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec'; - protected $transferSpecDataType = ''; - - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDeletionTime($deletionTime) - { - $this->deletionTime = $deletionTime; - } - public function getDeletionTime() - { - return $this->deletionTime; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLastModificationTime($lastModificationTime) - { - $this->lastModificationTime = $lastModificationTime; - } - public function getLastModificationTime() - { - return $this->lastModificationTime; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setSchedule(Google_Service_Storagetransfer_Schedule $schedule) - { - $this->schedule = $schedule; - } - public function getSchedule() - { - return $this->schedule; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec) - { - $this->transferSpec = $transferSpec; - } - public function getTransferSpec() - { - return $this->transferSpec; - } -} - -class Google_Service_Storagetransfer_TransferOperation extends Google_Collection -{ - protected $collection_key = 'errorBreakdowns'; - protected $internal_gapi_mappings = array( - ); - protected $countersType = 'Google_Service_Storagetransfer_TransferCounters'; - protected $countersDataType = ''; - public $endTime; - protected $errorBreakdownsType = 'Google_Service_Storagetransfer_ErrorSummary'; - protected $errorBreakdownsDataType = 'array'; - public $name; - public $projectId; - public $startTime; - public $status; - public $transferJobName; - protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec'; - protected $transferSpecDataType = ''; - - - public function setCounters(Google_Service_Storagetransfer_TransferCounters $counters) - { - $this->counters = $counters; - } - public function getCounters() - { - return $this->counters; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setErrorBreakdowns($errorBreakdowns) - { - $this->errorBreakdowns = $errorBreakdowns; - } - public function getErrorBreakdowns() - { - return $this->errorBreakdowns; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - 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 setTransferJobName($transferJobName) - { - $this->transferJobName = $transferJobName; - } - public function getTransferJobName() - { - return $this->transferJobName; - } - public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec) - { - $this->transferSpec = $transferSpec; - } - public function getTransferSpec() - { - return $this->transferSpec; - } -} - -class Google_Service_Storagetransfer_TransferOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleteObjectsFromSourceAfterTransfer; - public $deleteObjectsUniqueInSink; - public $overwriteObjectsAlreadyExistingInSink; - - - public function setDeleteObjectsFromSourceAfterTransfer($deleteObjectsFromSourceAfterTransfer) - { - $this->deleteObjectsFromSourceAfterTransfer = $deleteObjectsFromSourceAfterTransfer; - } - public function getDeleteObjectsFromSourceAfterTransfer() - { - return $this->deleteObjectsFromSourceAfterTransfer; - } - public function setDeleteObjectsUniqueInSink($deleteObjectsUniqueInSink) - { - $this->deleteObjectsUniqueInSink = $deleteObjectsUniqueInSink; - } - public function getDeleteObjectsUniqueInSink() - { - return $this->deleteObjectsUniqueInSink; - } - public function setOverwriteObjectsAlreadyExistingInSink($overwriteObjectsAlreadyExistingInSink) - { - $this->overwriteObjectsAlreadyExistingInSink = $overwriteObjectsAlreadyExistingInSink; - } - public function getOverwriteObjectsAlreadyExistingInSink() - { - return $this->overwriteObjectsAlreadyExistingInSink; - } -} - -class Google_Service_Storagetransfer_TransferSpec extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $awsS3DataSourceType = 'Google_Service_Storagetransfer_AwsS3Data'; - protected $awsS3DataSourceDataType = ''; - protected $gcsDataSinkType = 'Google_Service_Storagetransfer_GcsData'; - protected $gcsDataSinkDataType = ''; - protected $gcsDataSourceType = 'Google_Service_Storagetransfer_GcsData'; - protected $gcsDataSourceDataType = ''; - protected $httpDataSourceType = 'Google_Service_Storagetransfer_HttpData'; - protected $httpDataSourceDataType = ''; - protected $objectConditionsType = 'Google_Service_Storagetransfer_ObjectConditions'; - protected $objectConditionsDataType = ''; - protected $transferOptionsType = 'Google_Service_Storagetransfer_TransferOptions'; - protected $transferOptionsDataType = ''; - - - public function setAwsS3DataSource(Google_Service_Storagetransfer_AwsS3Data $awsS3DataSource) - { - $this->awsS3DataSource = $awsS3DataSource; - } - public function getAwsS3DataSource() - { - return $this->awsS3DataSource; - } - public function setGcsDataSink(Google_Service_Storagetransfer_GcsData $gcsDataSink) - { - $this->gcsDataSink = $gcsDataSink; - } - public function getGcsDataSink() - { - return $this->gcsDataSink; - } - public function setGcsDataSource(Google_Service_Storagetransfer_GcsData $gcsDataSource) - { - $this->gcsDataSource = $gcsDataSource; - } - public function getGcsDataSource() - { - return $this->gcsDataSource; - } - public function setHttpDataSource(Google_Service_Storagetransfer_HttpData $httpDataSource) - { - $this->httpDataSource = $httpDataSource; - } - public function getHttpDataSource() - { - return $this->httpDataSource; - } - public function setObjectConditions(Google_Service_Storagetransfer_ObjectConditions $objectConditions) - { - $this->objectConditions = $objectConditions; - } - public function getObjectConditions() - { - return $this->objectConditions; - } - public function setTransferOptions(Google_Service_Storagetransfer_TransferOptions $transferOptions) - { - $this->transferOptions = $transferOptions; - } - public function getTransferOptions() - { - return $this->transferOptions; - } -} - -class Google_Service_Storagetransfer_UpdateTransferJobRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $projectId; - protected $transferJobType = 'Google_Service_Storagetransfer_TransferJob'; - protected $transferJobDataType = ''; - public $updateTransferJobFieldMask; - - - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } - public function getProjectId() - { - return $this->projectId; - } - public function setTransferJob(Google_Service_Storagetransfer_TransferJob $transferJob) - { - $this->transferJob = $transferJob; - } - public function getTransferJob() - { - return $this->transferJob; - } - public function setUpdateTransferJobFieldMask($updateTransferJobFieldMask) - { - $this->updateTransferJobFieldMask = $updateTransferJobFieldMask; - } - public function getUpdateTransferJobFieldMask() - { - return $this->updateTransferJobFieldMask; - } -} diff --git a/src/Google/Service/TagManager.php b/src/Google/Service/TagManager.php deleted file mode 100644 index 2b343bca0..000000000 --- a/src/Google/Service/TagManager.php +++ /dev/null @@ -1,3891 +0,0 @@ - - * API for accessing Tag Manager accounts and containers.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_TagManager extends Google_Service -{ - /** Delete your Google Tag Manager containers. */ - const TAGMANAGER_DELETE_CONTAINERS = - "https://www.googleapis.com/auth/tagmanager.delete.containers"; - /** Manage your Google Tag Manager containers. */ - const TAGMANAGER_EDIT_CONTAINERS = - "https://www.googleapis.com/auth/tagmanager.edit.containers"; - /** Manage your Google Tag Manager container versions. */ - const TAGMANAGER_EDIT_CONTAINERVERSIONS = - "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; - /** Manage your Google Tag Manager accounts. */ - const TAGMANAGER_MANAGE_ACCOUNTS = - "https://www.googleapis.com/auth/tagmanager.manage.accounts"; - /** Manage user permissions of your Google Tag Manager data. */ - const TAGMANAGER_MANAGE_USERS = - "https://www.googleapis.com/auth/tagmanager.manage.users"; - /** Publish your Google Tag Manager containers. */ - const TAGMANAGER_PUBLISH = - "https://www.googleapis.com/auth/tagmanager.publish"; - /** View your Google Tag Manager containers. */ - const TAGMANAGER_READONLY = - "https://www.googleapis.com/auth/tagmanager.readonly"; - - public $accounts; - public $accounts_containers; - public $accounts_containers_environments; - public $accounts_containers_folders; - public $accounts_containers_folders_entities; - public $accounts_containers_move_folders; - public $accounts_containers_reauthorize_environments; - public $accounts_containers_tags; - public $accounts_containers_triggers; - public $accounts_containers_variables; - public $accounts_containers_versions; - public $accounts_permissions; - - - /** - * Constructs the internal representation of the TagManager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'tagmanager/v1/'; - $this->version = 'v1'; - $this->serviceName = 'tagmanager'; - - $this->accounts = new Google_Service_TagManager_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'update' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers = new Google_Service_TagManager_AccountsContainers_Resource( - $this, - $this->serviceName, - 'containers', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_environments = new Google_Service_TagManager_AccountsContainersEnvironments_Resource( - $this, - $this->serviceName, - 'environments', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'environmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'environmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'environmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'environmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_folders = new Google_Service_TagManager_AccountsContainersFolders_Resource( - $this, - $this->serviceName, - 'folders', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_folders_entities = new Google_Service_TagManager_AccountsContainersFoldersEntities_Resource( - $this, - $this->serviceName, - 'entities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_containers_move_folders = new Google_Service_TagManager_AccountsContainersMoveFolders_Resource( - $this, - $this->serviceName, - 'move_folders', - array( - 'methods' => array( - 'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'triggerId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'variableId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_containers_reauthorize_environments = new Google_Service_TagManager_AccountsContainersReauthorizeEnvironments_Resource( - $this, - $this->serviceName, - 'reauthorize_environments', - array( - 'methods' => array( - 'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'environmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_containers_tags = new Google_Service_TagManager_AccountsContainersTags_Resource( - $this, - $this->serviceName, - 'tags', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tagId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_triggers = new Google_Service_TagManager_AccountsContainersTriggers_Resource( - $this, - $this->serviceName, - 'triggers', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'triggerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_variables = new Google_Service_TagManager_AccountsContainersVariables_Resource( - $this, - $this->serviceName, - 'variables', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'variableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_containers_versions = new Google_Service_TagManager_AccountsContainersVersions_Resource( - $this, - $this->serviceName, - 'versions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'headers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'restore' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'containerVersionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_permissions = new Google_Service_TagManager_AccountsPermissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'create' => array( - 'path' => 'accounts/{accountId}/permissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/permissions/{permissionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "accounts" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $accounts = $tagmanagerService->accounts; - * - */ -class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resource -{ - - /** - * Gets a GTM Account. (accounts.get) - * - * @param string $accountId The GTM Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Account"); - } - - /** - * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListAccountsResponse - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse"); - } - - /** - * Updates a GTM Account. (accounts.update) - * - * @param string $accountId The GTM Account ID. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the account in storage. - * @return Google_Service_TagManager_Account - */ - public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Account"); - } -} - -/** - * The "containers" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $containers = $tagmanagerService->containers; - * - */ -class Google_Service_TagManager_AccountsContainers_Resource extends Google_Service_Resource -{ - - /** - * Creates a Container. (containers.create) - * - * @param string $accountId The GTM Account ID. - * @param Google_Container $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Container - */ - public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Container"); - } - - /** - * Deletes a Container. (containers.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a Container. (containers.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Container - */ - public function get($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Container"); - } - - /** - * Lists all Containers that belongs to a GTM Account. - * (containers.listAccountsContainers) - * - * @param string $accountId The GTM Account ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListContainersResponse - */ - public function listAccountsContainers($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse"); - } - - /** - * Updates a Container. (containers.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Container $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the container in storage. - * @return Google_Service_TagManager_Container - */ - public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Container"); - } -} - -/** - * The "environments" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $environments = $tagmanagerService->environments; - * - */ -class Google_Service_TagManager_AccountsContainersEnvironments_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Environment. (environments.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Environment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Environment - */ - public function create($accountId, $containerId, Google_Service_TagManager_Environment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Environment"); - } - - /** - * Deletes a GTM Environment. (environments.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $environmentId The GTM Environment ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $environmentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Environment. (environments.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $environmentId The GTM Environment ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Environment - */ - public function get($accountId, $containerId, $environmentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Environment"); - } - - /** - * Lists all GTM Environments of a GTM Container. - * (environments.listAccountsContainersEnvironments) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListEnvironmentsResponse - */ - public function listAccountsContainersEnvironments($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListEnvironmentsResponse"); - } - - /** - * Updates a GTM Environment. This method supports patch semantics. - * (environments.patch) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $environmentId The GTM Environment ID. - * @param Google_Environment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the environment in storage. - * @return Google_Service_TagManager_Environment - */ - public function patch($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_TagManager_Environment"); - } - - /** - * Updates a GTM Environment. (environments.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $environmentId The GTM Environment ID. - * @param Google_Environment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the environment in storage. - * @return Google_Service_TagManager_Environment - */ - public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Environment"); - } -} -/** - * The "folders" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $folders = $tagmanagerService->folders; - * - */ -class Google_Service_TagManager_AccountsContainersFolders_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Folder. (folders.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Folder $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Folder - */ - public function create($accountId, $containerId, Google_Service_TagManager_Folder $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Folder"); - } - - /** - * Deletes a GTM Folder. (folders.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $folderId The GTM Folder ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $folderId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Folder. (folders.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $folderId The GTM Folder ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Folder - */ - public function get($accountId, $containerId, $folderId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Folder"); - } - - /** - * Lists all GTM Folders of a Container. (folders.listAccountsContainersFolders) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListFoldersResponse - */ - public function listAccountsContainersFolders($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListFoldersResponse"); - } - - /** - * Updates a GTM Folder. (folders.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $folderId The GTM Folder ID. - * @param Google_Folder $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the folder in storage. - * @return Google_Service_TagManager_Folder - */ - public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Folder"); - } -} - -/** - * The "entities" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $entities = $tagmanagerService->entities; - * - */ -class Google_Service_TagManager_AccountsContainersFoldersEntities_Resource extends Google_Service_Resource -{ - - /** - * List all entities in a GTM Folder. - * (entities.listAccountsContainersFoldersEntities) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $folderId The GTM Folder ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_FolderEntities - */ - public function listAccountsContainersFoldersEntities($accountId, $containerId, $folderId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_FolderEntities"); - } -} -/** - * The "move_folders" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $move_folders = $tagmanagerService->move_folders; - * - */ -class Google_Service_TagManager_AccountsContainersMoveFolders_Resource extends Google_Service_Resource -{ - - /** - * Moves entities to a GTM Folder. (move_folders.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $folderId The GTM Folder ID. - * @param Google_Folder $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string tagId The tags to be moved to the folder. - * @opt_param string triggerId The triggers to be moved to the folder. - * @opt_param string variableId The variables to be moved to the folder. - */ - public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params)); - } -} -/** - * The "reauthorize_environments" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $reauthorize_environments = $tagmanagerService->reauthorize_environments; - * - */ -class Google_Service_TagManager_AccountsContainersReauthorizeEnvironments_Resource extends Google_Service_Resource -{ - - /** - * Re-generates the authorization code for a GTM Environment. - * (reauthorize_environments.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $environmentId The GTM Environment ID. - * @param Google_Environment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Environment - */ - public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Environment"); - } -} -/** - * The "tags" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $tags = $tagmanagerService->tags; - * - */ -class Google_Service_TagManager_AccountsContainersTags_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Tag. (tags.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Tag $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Tag - */ - public function create($accountId, $containerId, Google_Service_TagManager_Tag $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Tag"); - } - - /** - * Deletes a GTM Tag. (tags.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $tagId The GTM Tag ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $tagId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Tag. (tags.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $tagId The GTM Tag ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Tag - */ - public function get($accountId, $containerId, $tagId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Tag"); - } - - /** - * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListTagsResponse - */ - public function listAccountsContainersTags($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse"); - } - - /** - * Updates a GTM Tag. (tags.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $tagId The GTM Tag ID. - * @param Google_Tag $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the tag in storage. - * @return Google_Service_TagManager_Tag - */ - public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Tag"); - } -} -/** - * The "triggers" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $triggers = $tagmanagerService->triggers; - * - */ -class Google_Service_TagManager_AccountsContainersTriggers_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Trigger. (triggers.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Trigger $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Trigger - */ - public function create($accountId, $containerId, Google_Service_TagManager_Trigger $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Trigger"); - } - - /** - * Deletes a GTM Trigger. (triggers.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $triggerId The GTM Trigger ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $triggerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Trigger. (triggers.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $triggerId The GTM Trigger ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Trigger - */ - public function get($accountId, $containerId, $triggerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Trigger"); - } - - /** - * Lists all GTM Triggers of a Container. - * (triggers.listAccountsContainersTriggers) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListTriggersResponse - */ - public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListTriggersResponse"); - } - - /** - * Updates a GTM Trigger. (triggers.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $triggerId The GTM Trigger ID. - * @param Google_Trigger $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the trigger in storage. - * @return Google_Service_TagManager_Trigger - */ - public function update($accountId, $containerId, $triggerId, Google_Service_TagManager_Trigger $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Trigger"); - } -} -/** - * The "variables" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $variables = $tagmanagerService->variables; - * - */ -class Google_Service_TagManager_AccountsContainersVariables_Resource extends Google_Service_Resource -{ - - /** - * Creates a GTM Variable. (variables.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_Variable $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Variable - */ - public function create($accountId, $containerId, Google_Service_TagManager_Variable $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_Variable"); - } - - /** - * Deletes a GTM Variable. (variables.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $variableId The GTM Variable ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $variableId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a GTM Variable. (variables.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $variableId The GTM Variable ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_Variable - */ - public function get($accountId, $containerId, $variableId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_Variable"); - } - - /** - * Lists all GTM Variables of a Container. - * (variables.listAccountsContainersVariables) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListVariablesResponse - */ - public function listAccountsContainersVariables($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListVariablesResponse"); - } - - /** - * Updates a GTM Variable. (variables.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $variableId The GTM Variable ID. - * @param Google_Variable $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the variable in storage. - * @return Google_Service_TagManager_Variable - */ - public function update($accountId, $containerId, $variableId, Google_Service_TagManager_Variable $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_Variable"); - } -} -/** - * The "versions" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $versions = $tagmanagerService->versions; - * - */ -class Google_Service_TagManager_AccountsContainersVersions_Resource extends Google_Service_Resource -{ - - /** - * Creates a Container Version. (versions.create) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param Google_CreateContainerVersionRequestVersionOptions $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_CreateContainerVersionResponse - */ - public function create($accountId, $containerId, Google_Service_TagManager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_CreateContainerVersionResponse"); - } - - /** - * Deletes a Container Version. (versions.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a Container Version. (versions.get) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. Specify - * published to retrieve the currently published version. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ContainerVersion - */ - public function get($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_ContainerVersion"); - } - - /** - * Lists all Container Versions of a GTM Container. - * (versions.listAccountsContainersVersions) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param array $optParams Optional parameters. - * - * @opt_param bool headers Retrieve headers only when true. - * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when - * true. - * @return Google_Service_TagManager_ListContainerVersionsResponse - */ - public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListContainerVersionsResponse"); - } - - /** - * Publishes a Container Version. (versions.publish) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the container version in storage. - * @return Google_Service_TagManager_PublishContainerVersionResponse - */ - public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_TagManager_PublishContainerVersionResponse"); - } - - /** - * Restores a Container Version. This will overwrite the container's current - * configuration (including its variables, triggers and tags). The operation - * will not have any effect on the version that is being served (i.e. the - * published version). (versions.restore) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ContainerVersion - */ - public function restore($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('restore', array($params), "Google_Service_TagManager_ContainerVersion"); - } - - /** - * Undeletes a Container Version. (versions.undelete) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ContainerVersion - */ - public function undelete($accountId, $containerId, $containerVersionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_TagManager_ContainerVersion"); - } - - /** - * Updates a Container Version. (versions.update) - * - * @param string $accountId The GTM Account ID. - * @param string $containerId The GTM Container ID. - * @param string $containerVersionId The GTM Container Version ID. - * @param Google_ContainerVersion $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the container version in storage. - * @return Google_Service_TagManager_ContainerVersion - */ - public function update($accountId, $containerId, $containerVersionId, Google_Service_TagManager_ContainerVersion $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_ContainerVersion"); - } -} -/** - * The "permissions" collection of methods. - * Typical usage is: - * - * $tagmanagerService = new Google_Service_TagManager(...); - * $permissions = $tagmanagerService->permissions; - * - */ -class Google_Service_TagManager_AccountsPermissions_Resource extends Google_Service_Resource -{ - - /** - * Creates a user's Account & Container Permissions. (permissions.create) - * - * @param string $accountId The GTM Account ID. - * @param Google_UserAccess $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_UserAccess - */ - public function create($accountId, Google_Service_TagManager_UserAccess $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_UserAccess"); - } - - /** - * Removes a user from the account, revoking access to it and all of its - * containers. (permissions.delete) - * - * @param string $accountId The GTM Account ID. - * @param string $permissionId The GTM User ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $permissionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a user's Account & Container Permissions. (permissions.get) - * - * @param string $accountId The GTM Account ID. - * @param string $permissionId The GTM User ID. - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_UserAccess - */ - public function get($accountId, $permissionId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_TagManager_UserAccess"); - } - - /** - * List all users that have access to the account along with Account and - * Container Permissions granted to each of them. - * (permissions.listAccountsPermissions) - * - * @param string $accountId The GTM Account ID. @required - * tagmanager.accounts.permissions.list - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_ListAccountUsersResponse - */ - public function listAccountsPermissions($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_TagManager_ListAccountUsersResponse"); - } - - /** - * Updates a user's Account & Container Permissions. (permissions.update) - * - * @param string $accountId The GTM Account ID. - * @param string $permissionId The GTM User ID. - * @param Google_UserAccess $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_UserAccess - */ - public function update($accountId, $permissionId, Google_Service_TagManager_UserAccess $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_TagManager_UserAccess"); - } -} - - - - -class Google_Service_TagManager_Account extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $fingerprint; - public $name; - public $shareData; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setShareData($shareData) - { - $this->shareData = $shareData; - } - public function getShareData() - { - return $this->shareData; - } -} - -class Google_Service_TagManager_AccountAccess extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $permission; - - - public function setPermission($permission) - { - $this->permission = $permission; - } - public function getPermission() - { - return $this->permission; - } -} - -class Google_Service_TagManager_Condition extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - protected $parameterType = 'Google_Service_TagManager_Parameter'; - protected $parameterDataType = 'array'; - public $type; - - - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - public function getParameter() - { - return $this->parameter; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_TagManager_Container extends Google_Collection -{ - protected $collection_key = 'usageContext'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $domainName; - public $enabledBuiltInVariable; - public $fingerprint; - public $name; - public $notes; - public $publicId; - public $timeZoneCountryId; - public $timeZoneId; - public $usageContext; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setDomainName($domainName) - { - $this->domainName = $domainName; - } - public function getDomainName() - { - return $this->domainName; - } - public function setEnabledBuiltInVariable($enabledBuiltInVariable) - { - $this->enabledBuiltInVariable = $enabledBuiltInVariable; - } - public function getEnabledBuiltInVariable() - { - return $this->enabledBuiltInVariable; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setPublicId($publicId) - { - $this->publicId = $publicId; - } - public function getPublicId() - { - return $this->publicId; - } - public function setTimeZoneCountryId($timeZoneCountryId) - { - $this->timeZoneCountryId = $timeZoneCountryId; - } - public function getTimeZoneCountryId() - { - return $this->timeZoneCountryId; - } - public function setTimeZoneId($timeZoneId) - { - $this->timeZoneId = $timeZoneId; - } - public function getTimeZoneId() - { - return $this->timeZoneId; - } - public function setUsageContext($usageContext) - { - $this->usageContext = $usageContext; - } - public function getUsageContext() - { - return $this->usageContext; - } -} - -class Google_Service_TagManager_ContainerAccess extends Google_Collection -{ - protected $collection_key = 'permission'; - protected $internal_gapi_mappings = array( - ); - public $containerId; - public $permission; - - - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setPermission($permission) - { - $this->permission = $permission; - } - public function getPermission() - { - return $this->permission; - } -} - -class Google_Service_TagManager_ContainerVersion extends Google_Collection -{ - protected $collection_key = 'variable'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $containerType = 'Google_Service_TagManager_Container'; - protected $containerDataType = ''; - public $containerId; - public $containerVersionId; - public $deleted; - public $fingerprint; - protected $folderType = 'Google_Service_TagManager_Folder'; - protected $folderDataType = 'array'; - protected $macroType = 'Google_Service_TagManager_Macro'; - protected $macroDataType = 'array'; - public $name; - public $notes; - protected $ruleType = 'Google_Service_TagManager_Rule'; - protected $ruleDataType = 'array'; - protected $tagType = 'Google_Service_TagManager_Tag'; - protected $tagDataType = 'array'; - protected $triggerType = 'Google_Service_TagManager_Trigger'; - protected $triggerDataType = 'array'; - protected $variableType = 'Google_Service_TagManager_Variable'; - protected $variableDataType = 'array'; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainer(Google_Service_TagManager_Container $container) - { - $this->container = $container; - } - public function getContainer() - { - return $this->container; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setContainerVersionId($containerVersionId) - { - $this->containerVersionId = $containerVersionId; - } - public function getContainerVersionId() - { - return $this->containerVersionId; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setFolder($folder) - { - $this->folder = $folder; - } - public function getFolder() - { - return $this->folder; - } - public function setMacro($macro) - { - $this->macro = $macro; - } - public function getMacro() - { - return $this->macro; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setRule($rule) - { - $this->rule = $rule; - } - public function getRule() - { - return $this->rule; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } - public function setTrigger($trigger) - { - $this->trigger = $trigger; - } - public function getTrigger() - { - return $this->trigger; - } - public function setVariable($variable) - { - $this->variable = $variable; - } - public function getVariable() - { - return $this->variable; - } -} - -class Google_Service_TagManager_ContainerVersionHeader extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $containerVersionId; - public $deleted; - public $name; - public $numMacros; - public $numRules; - public $numTags; - public $numTriggers; - public $numVariables; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setContainerVersionId($containerVersionId) - { - $this->containerVersionId = $containerVersionId; - } - public function getContainerVersionId() - { - return $this->containerVersionId; - } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNumMacros($numMacros) - { - $this->numMacros = $numMacros; - } - public function getNumMacros() - { - return $this->numMacros; - } - public function setNumRules($numRules) - { - $this->numRules = $numRules; - } - public function getNumRules() - { - return $this->numRules; - } - public function setNumTags($numTags) - { - $this->numTags = $numTags; - } - public function getNumTags() - { - return $this->numTags; - } - public function setNumTriggers($numTriggers) - { - $this->numTriggers = $numTriggers; - } - public function getNumTriggers() - { - return $this->numTriggers; - } - public function setNumVariables($numVariables) - { - $this->numVariables = $numVariables; - } - public function getNumVariables() - { - return $this->numVariables; - } -} - -class Google_Service_TagManager_CreateContainerVersionRequestVersionOptions extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $notes; - public $quickPreview; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setQuickPreview($quickPreview) - { - $this->quickPreview = $quickPreview; - } - public function getQuickPreview() - { - return $this->quickPreview; - } -} - -class Google_Service_TagManager_CreateContainerVersionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $compilerError; - protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; - protected $containerVersionDataType = ''; - - - public function setCompilerError($compilerError) - { - $this->compilerError = $compilerError; - } - public function getCompilerError() - { - return $this->compilerError; - } - public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion) - { - $this->containerVersion = $containerVersion; - } - public function getContainerVersion() - { - return $this->containerVersion; - } -} - -class Google_Service_TagManager_Environment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $authorizationCode; - public $authorizationTimestampMs; - public $containerId; - public $containerVersionId; - public $description; - public $enableDebug; - public $environmentId; - public $fingerprint; - public $name; - public $type; - public $url; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAuthorizationCode($authorizationCode) - { - $this->authorizationCode = $authorizationCode; - } - public function getAuthorizationCode() - { - return $this->authorizationCode; - } - public function setAuthorizationTimestampMs($authorizationTimestampMs) - { - $this->authorizationTimestampMs = $authorizationTimestampMs; - } - public function getAuthorizationTimestampMs() - { - return $this->authorizationTimestampMs; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setContainerVersionId($containerVersionId) - { - $this->containerVersionId = $containerVersionId; - } - public function getContainerVersionId() - { - return $this->containerVersionId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setEnableDebug($enableDebug) - { - $this->enableDebug = $enableDebug; - } - public function getEnableDebug() - { - return $this->enableDebug; - } - public function setEnvironmentId($environmentId) - { - $this->environmentId = $environmentId; - } - public function getEnvironmentId() - { - return $this->environmentId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - 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 setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_TagManager_Folder extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $fingerprint; - public $folderId; - public $name; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setFolderId($folderId) - { - $this->folderId = $folderId; - } - public function getFolderId() - { - return $this->folderId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_TagManager_FolderEntities extends Google_Collection -{ - protected $collection_key = 'variable'; - protected $internal_gapi_mappings = array( - ); - protected $tagType = 'Google_Service_TagManager_Tag'; - protected $tagDataType = 'array'; - protected $triggerType = 'Google_Service_TagManager_Trigger'; - protected $triggerDataType = 'array'; - protected $variableType = 'Google_Service_TagManager_Variable'; - protected $variableDataType = 'array'; - - - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } - public function setTrigger($trigger) - { - $this->trigger = $trigger; - } - public function getTrigger() - { - return $this->trigger; - } - public function setVariable($variable) - { - $this->variable = $variable; - } - public function getVariable() - { - return $this->variable; - } -} - -class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collection -{ - protected $collection_key = 'userAccess'; - protected $internal_gapi_mappings = array( - ); - protected $userAccessType = 'Google_Service_TagManager_UserAccess'; - protected $userAccessDataType = 'array'; - - - public function setUserAccess($userAccess) - { - $this->userAccess = $userAccess; - } - public function getUserAccess() - { - return $this->userAccess; - } -} - -class Google_Service_TagManager_ListAccountsResponse extends Google_Collection -{ - protected $collection_key = 'accounts'; - protected $internal_gapi_mappings = array( - ); - protected $accountsType = 'Google_Service_TagManager_Account'; - protected $accountsDataType = 'array'; - - - public function setAccounts($accounts) - { - $this->accounts = $accounts; - } - public function getAccounts() - { - return $this->accounts; - } -} - -class Google_Service_TagManager_ListContainerVersionsResponse extends Google_Collection -{ - protected $collection_key = 'containerVersionHeader'; - protected $internal_gapi_mappings = array( - ); - protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; - protected $containerVersionDataType = 'array'; - protected $containerVersionHeaderType = 'Google_Service_TagManager_ContainerVersionHeader'; - protected $containerVersionHeaderDataType = 'array'; - - - public function setContainerVersion($containerVersion) - { - $this->containerVersion = $containerVersion; - } - public function getContainerVersion() - { - return $this->containerVersion; - } - public function setContainerVersionHeader($containerVersionHeader) - { - $this->containerVersionHeader = $containerVersionHeader; - } - public function getContainerVersionHeader() - { - return $this->containerVersionHeader; - } -} - -class Google_Service_TagManager_ListContainersResponse extends Google_Collection -{ - protected $collection_key = 'containers'; - protected $internal_gapi_mappings = array( - ); - protected $containersType = 'Google_Service_TagManager_Container'; - protected $containersDataType = 'array'; - - - public function setContainers($containers) - { - $this->containers = $containers; - } - public function getContainers() - { - return $this->containers; - } -} - -class Google_Service_TagManager_ListEnvironmentsResponse extends Google_Collection -{ - protected $collection_key = 'environments'; - protected $internal_gapi_mappings = array( - ); - protected $environmentsType = 'Google_Service_TagManager_Environment'; - protected $environmentsDataType = 'array'; - - - public function setEnvironments($environments) - { - $this->environments = $environments; - } - public function getEnvironments() - { - return $this->environments; - } -} - -class Google_Service_TagManager_ListFoldersResponse extends Google_Collection -{ - protected $collection_key = 'folders'; - protected $internal_gapi_mappings = array( - ); - protected $foldersType = 'Google_Service_TagManager_Folder'; - protected $foldersDataType = 'array'; - - - public function setFolders($folders) - { - $this->folders = $folders; - } - public function getFolders() - { - return $this->folders; - } -} - -class Google_Service_TagManager_ListTagsResponse extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - protected $tagsType = 'Google_Service_TagManager_Tag'; - protected $tagsDataType = 'array'; - - - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_TagManager_ListTriggersResponse extends Google_Collection -{ - protected $collection_key = 'triggers'; - protected $internal_gapi_mappings = array( - ); - protected $triggersType = 'Google_Service_TagManager_Trigger'; - protected $triggersDataType = 'array'; - - - public function setTriggers($triggers) - { - $this->triggers = $triggers; - } - public function getTriggers() - { - return $this->triggers; - } -} - -class Google_Service_TagManager_ListVariablesResponse extends Google_Collection -{ - protected $collection_key = 'variables'; - protected $internal_gapi_mappings = array( - ); - protected $variablesType = 'Google_Service_TagManager_Variable'; - protected $variablesDataType = 'array'; - - - public function setVariables($variables) - { - $this->variables = $variables; - } - public function getVariables() - { - return $this->variables; - } -} - -class Google_Service_TagManager_Macro extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $disablingRuleId; - public $enablingRuleId; - public $fingerprint; - public $macroId; - public $name; - public $notes; - protected $parameterType = 'Google_Service_TagManager_Parameter'; - protected $parameterDataType = 'array'; - public $parentFolderId; - public $scheduleEndMs; - public $scheduleStartMs; - public $type; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setDisablingRuleId($disablingRuleId) - { - $this->disablingRuleId = $disablingRuleId; - } - public function getDisablingRuleId() - { - return $this->disablingRuleId; - } - public function setEnablingRuleId($enablingRuleId) - { - $this->enablingRuleId = $enablingRuleId; - } - public function getEnablingRuleId() - { - return $this->enablingRuleId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setMacroId($macroId) - { - $this->macroId = $macroId; - } - public function getMacroId() - { - return $this->macroId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - public function getParameter() - { - return $this->parameter; - } - public function setParentFolderId($parentFolderId) - { - $this->parentFolderId = $parentFolderId; - } - public function getParentFolderId() - { - return $this->parentFolderId; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_TagManager_Parameter extends Google_Collection -{ - protected $collection_key = 'map'; - protected $internal_gapi_mappings = array( - ); - public $key; - protected $listType = 'Google_Service_TagManager_Parameter'; - protected $listDataType = 'array'; - protected $mapType = 'Google_Service_TagManager_Parameter'; - protected $mapDataType = 'array'; - public $type; - public $value; - - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setList($list) - { - $this->list = $list; - } - public function getList() - { - return $this->list; - } - public function setMap($map) - { - $this->map = $map; - } - public function getMap() - { - return $this->map; - } - 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_TagManager_PublishContainerVersionResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $compilerError; - protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion'; - protected $containerVersionDataType = ''; - - - public function setCompilerError($compilerError) - { - $this->compilerError = $compilerError; - } - public function getCompilerError() - { - return $this->compilerError; - } - public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion) - { - $this->containerVersion = $containerVersion; - } - public function getContainerVersion() - { - return $this->containerVersion; - } -} - -class Google_Service_TagManager_Rule extends Google_Collection -{ - protected $collection_key = 'condition'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $conditionType = 'Google_Service_TagManager_Condition'; - protected $conditionDataType = 'array'; - public $containerId; - public $fingerprint; - public $name; - public $notes; - public $ruleId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setCondition($condition) - { - $this->condition = $condition; - } - public function getCondition() - { - return $this->condition; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setRuleId($ruleId) - { - $this->ruleId = $ruleId; - } - public function getRuleId() - { - return $this->ruleId; - } -} - -class Google_Service_TagManager_SetupTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $stopOnSetupFailure; - public $tagName; - - - public function setStopOnSetupFailure($stopOnSetupFailure) - { - $this->stopOnSetupFailure = $stopOnSetupFailure; - } - public function getStopOnSetupFailure() - { - return $this->stopOnSetupFailure; - } - public function setTagName($tagName) - { - $this->tagName = $tagName; - } - public function getTagName() - { - return $this->tagName; - } -} - -class Google_Service_TagManager_Tag extends Google_Collection -{ - protected $collection_key = 'teardownTag'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $blockingRuleId; - public $blockingTriggerId; - public $containerId; - public $fingerprint; - public $firingRuleId; - public $firingTriggerId; - public $liveOnly; - public $name; - public $notes; - protected $parameterType = 'Google_Service_TagManager_Parameter'; - protected $parameterDataType = 'array'; - public $parentFolderId; - protected $priorityType = 'Google_Service_TagManager_Parameter'; - protected $priorityDataType = ''; - public $scheduleEndMs; - public $scheduleStartMs; - protected $setupTagType = 'Google_Service_TagManager_SetupTag'; - protected $setupTagDataType = 'array'; - public $tagFiringOption; - public $tagId; - protected $teardownTagType = 'Google_Service_TagManager_TeardownTag'; - protected $teardownTagDataType = 'array'; - public $type; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setBlockingRuleId($blockingRuleId) - { - $this->blockingRuleId = $blockingRuleId; - } - public function getBlockingRuleId() - { - return $this->blockingRuleId; - } - public function setBlockingTriggerId($blockingTriggerId) - { - $this->blockingTriggerId = $blockingTriggerId; - } - public function getBlockingTriggerId() - { - return $this->blockingTriggerId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setFiringRuleId($firingRuleId) - { - $this->firingRuleId = $firingRuleId; - } - public function getFiringRuleId() - { - return $this->firingRuleId; - } - public function setFiringTriggerId($firingTriggerId) - { - $this->firingTriggerId = $firingTriggerId; - } - public function getFiringTriggerId() - { - return $this->firingTriggerId; - } - public function setLiveOnly($liveOnly) - { - $this->liveOnly = $liveOnly; - } - public function getLiveOnly() - { - return $this->liveOnly; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - public function getParameter() - { - return $this->parameter; - } - public function setParentFolderId($parentFolderId) - { - $this->parentFolderId = $parentFolderId; - } - public function getParentFolderId() - { - return $this->parentFolderId; - } - public function setPriority(Google_Service_TagManager_Parameter $priority) - { - $this->priority = $priority; - } - public function getPriority() - { - return $this->priority; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setSetupTag($setupTag) - { - $this->setupTag = $setupTag; - } - public function getSetupTag() - { - return $this->setupTag; - } - public function setTagFiringOption($tagFiringOption) - { - $this->tagFiringOption = $tagFiringOption; - } - public function getTagFiringOption() - { - return $this->tagFiringOption; - } - public function setTagId($tagId) - { - $this->tagId = $tagId; - } - public function getTagId() - { - return $this->tagId; - } - public function setTeardownTag($teardownTag) - { - $this->teardownTag = $teardownTag; - } - public function getTeardownTag() - { - return $this->teardownTag; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_TagManager_TeardownTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $stopTeardownOnFailure; - public $tagName; - - - public function setStopTeardownOnFailure($stopTeardownOnFailure) - { - $this->stopTeardownOnFailure = $stopTeardownOnFailure; - } - public function getStopTeardownOnFailure() - { - return $this->stopTeardownOnFailure; - } - public function setTagName($tagName) - { - $this->tagName = $tagName; - } - public function getTagName() - { - return $this->tagName; - } -} - -class Google_Service_TagManager_Trigger extends Google_Collection -{ - protected $collection_key = 'filter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - protected $autoEventFilterType = 'Google_Service_TagManager_Condition'; - protected $autoEventFilterDataType = 'array'; - protected $checkValidationType = 'Google_Service_TagManager_Parameter'; - protected $checkValidationDataType = ''; - public $containerId; - protected $customEventFilterType = 'Google_Service_TagManager_Condition'; - protected $customEventFilterDataType = 'array'; - protected $enableAllVideosType = 'Google_Service_TagManager_Parameter'; - protected $enableAllVideosDataType = ''; - protected $eventNameType = 'Google_Service_TagManager_Parameter'; - protected $eventNameDataType = ''; - protected $filterType = 'Google_Service_TagManager_Condition'; - protected $filterDataType = 'array'; - public $fingerprint; - protected $intervalType = 'Google_Service_TagManager_Parameter'; - protected $intervalDataType = ''; - protected $limitType = 'Google_Service_TagManager_Parameter'; - protected $limitDataType = ''; - public $name; - public $parentFolderId; - public $triggerId; - public $type; - protected $uniqueTriggerIdType = 'Google_Service_TagManager_Parameter'; - protected $uniqueTriggerIdDataType = ''; - protected $videoPercentageListType = 'Google_Service_TagManager_Parameter'; - protected $videoPercentageListDataType = ''; - protected $waitForTagsType = 'Google_Service_TagManager_Parameter'; - protected $waitForTagsDataType = ''; - protected $waitForTagsTimeoutType = 'Google_Service_TagManager_Parameter'; - protected $waitForTagsTimeoutDataType = ''; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAutoEventFilter($autoEventFilter) - { - $this->autoEventFilter = $autoEventFilter; - } - public function getAutoEventFilter() - { - return $this->autoEventFilter; - } - public function setCheckValidation(Google_Service_TagManager_Parameter $checkValidation) - { - $this->checkValidation = $checkValidation; - } - public function getCheckValidation() - { - return $this->checkValidation; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setCustomEventFilter($customEventFilter) - { - $this->customEventFilter = $customEventFilter; - } - public function getCustomEventFilter() - { - return $this->customEventFilter; - } - public function setEnableAllVideos(Google_Service_TagManager_Parameter $enableAllVideos) - { - $this->enableAllVideos = $enableAllVideos; - } - public function getEnableAllVideos() - { - return $this->enableAllVideos; - } - public function setEventName(Google_Service_TagManager_Parameter $eventName) - { - $this->eventName = $eventName; - } - public function getEventName() - { - return $this->eventName; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setInterval(Google_Service_TagManager_Parameter $interval) - { - $this->interval = $interval; - } - public function getInterval() - { - return $this->interval; - } - public function setLimit(Google_Service_TagManager_Parameter $limit) - { - $this->limit = $limit; - } - public function getLimit() - { - return $this->limit; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setParentFolderId($parentFolderId) - { - $this->parentFolderId = $parentFolderId; - } - public function getParentFolderId() - { - return $this->parentFolderId; - } - public function setTriggerId($triggerId) - { - $this->triggerId = $triggerId; - } - public function getTriggerId() - { - return $this->triggerId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUniqueTriggerId(Google_Service_TagManager_Parameter $uniqueTriggerId) - { - $this->uniqueTriggerId = $uniqueTriggerId; - } - public function getUniqueTriggerId() - { - return $this->uniqueTriggerId; - } - public function setVideoPercentageList(Google_Service_TagManager_Parameter $videoPercentageList) - { - $this->videoPercentageList = $videoPercentageList; - } - public function getVideoPercentageList() - { - return $this->videoPercentageList; - } - public function setWaitForTags(Google_Service_TagManager_Parameter $waitForTags) - { - $this->waitForTags = $waitForTags; - } - public function getWaitForTags() - { - return $this->waitForTags; - } - public function setWaitForTagsTimeout(Google_Service_TagManager_Parameter $waitForTagsTimeout) - { - $this->waitForTagsTimeout = $waitForTagsTimeout; - } - public function getWaitForTagsTimeout() - { - return $this->waitForTagsTimeout; - } -} - -class Google_Service_TagManager_UserAccess extends Google_Collection -{ - protected $collection_key = 'containerAccess'; - protected $internal_gapi_mappings = array( - ); - protected $accountAccessType = 'Google_Service_TagManager_AccountAccess'; - protected $accountAccessDataType = ''; - public $accountId; - protected $containerAccessType = 'Google_Service_TagManager_ContainerAccess'; - protected $containerAccessDataType = 'array'; - public $emailAddress; - public $permissionId; - - - public function setAccountAccess(Google_Service_TagManager_AccountAccess $accountAccess) - { - $this->accountAccess = $accountAccess; - } - public function getAccountAccess() - { - return $this->accountAccess; - } - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerAccess($containerAccess) - { - $this->containerAccess = $containerAccess; - } - public function getContainerAccess() - { - return $this->containerAccess; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } - public function getPermissionId() - { - return $this->permissionId; - } -} - -class Google_Service_TagManager_Variable extends Google_Collection -{ - protected $collection_key = 'parameter'; - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $containerId; - public $disablingTriggerId; - public $enablingTriggerId; - public $fingerprint; - public $name; - public $notes; - protected $parameterType = 'Google_Service_TagManager_Parameter'; - protected $parameterDataType = 'array'; - public $parentFolderId; - public $scheduleEndMs; - public $scheduleStartMs; - public $type; - public $variableId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setContainerId($containerId) - { - $this->containerId = $containerId; - } - public function getContainerId() - { - return $this->containerId; - } - public function setDisablingTriggerId($disablingTriggerId) - { - $this->disablingTriggerId = $disablingTriggerId; - } - public function getDisablingTriggerId() - { - return $this->disablingTriggerId; - } - public function setEnablingTriggerId($enablingTriggerId) - { - $this->enablingTriggerId = $enablingTriggerId; - } - public function getEnablingTriggerId() - { - return $this->enablingTriggerId; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setNotes($notes) - { - $this->notes = $notes; - } - public function getNotes() - { - return $this->notes; - } - public function setParameter($parameter) - { - $this->parameter = $parameter; - } - public function getParameter() - { - return $this->parameter; - } - public function setParentFolderId($parentFolderId) - { - $this->parentFolderId = $parentFolderId; - } - public function getParentFolderId() - { - return $this->parentFolderId; - } - public function setScheduleEndMs($scheduleEndMs) - { - $this->scheduleEndMs = $scheduleEndMs; - } - public function getScheduleEndMs() - { - return $this->scheduleEndMs; - } - public function setScheduleStartMs($scheduleStartMs) - { - $this->scheduleStartMs = $scheduleStartMs; - } - public function getScheduleStartMs() - { - return $this->scheduleStartMs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVariableId($variableId) - { - $this->variableId = $variableId; - } - public function getVariableId() - { - return $this->variableId; - } -} diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php deleted file mode 100644 index 68bc4009d..000000000 --- a/src/Google/Service/Taskqueue.php +++ /dev/null @@ -1,690 +0,0 @@ - - * 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 -{ - /** Manage your Tasks and Taskqueues. */ - const TASKQUEUE = - "https://www.googleapis.com/auth/taskqueue"; - /** Consume Tasks from your Taskqueues. */ - const TASKQUEUE_CONSUMER = - "https://www.googleapis.com/auth/taskqueue.consumer"; - - public $taskqueues; - public $tasks; - - - /** - * Constructs the internal representation of the Taskqueue service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'taskqueue/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'taskqueue'; - - $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource( - $this, - $this->serviceName, - 'taskqueues', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/taskqueues/{taskqueue}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'getStats' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->tasks = new Google_Service_Taskqueue_Tasks_Resource( - $this, - $this->serviceName, - 'tasks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'lease' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'numTasks' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'leaseSecs' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'groupByTag' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'tag' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'newLeaseSeconds' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'newLeaseSeconds' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "taskqueues" collection of methods. - * Typical usage is: - * - * $taskqueueService = new Google_Service_Taskqueue(...); - * $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); - return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue"); - } -} - -/** - * The "tasks" collection of methods. - * Typical usage is: - * - * $taskqueueService = new Google_Service_Taskqueue(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Get a particular task from a TaskQueue. (tasks.get) - * - * @param string $project The project under which the queue lies. - * @param string $taskqueue The taskqueue in which the task belongs. - * @param string $task The task to get properties of. - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function get($project, $taskqueue, $task, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); - } - - /** - * Insert a new task in a TaskQueue (tasks.insert) - * - * @param string $project The project under which the queue lies - * @param string $taskqueue The taskqueue to insert the task into - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); - } - - /** - * Lease 1 or more tasks from a TaskQueue. (tasks.lease) - * - * @param string $project The project under which the queue lies. - * @param string $taskqueue The taskqueue to lease a task from. - * @param int $numTasks The number of tasks to lease. - * @param int $leaseSecs The lease in seconds. - * @param array $optParams Optional parameters. - * - * @opt_param bool groupByTag When true, all returned tasks will have the same - * tag - * @opt_param string tag The tag allowed for tasks in the response. Must only be - * specified if group_by_tag is true. If group_by_tag is true and tag is not - * specified the tag will be that of the oldest task by eta, i.e. the first - * available tag - * @return Google_Service_Taskqueue_Tasks - */ - public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs); - $params = array_merge($params, $optParams); - return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); - } - - /** - * List Tasks in a TaskQueue (tasks.listTasks) - * - * @param string $project The project under which the queue lies. - * @param string $taskqueue The id of the taskqueue to list tasks from. - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Tasks2 - */ - public function listTasks($project, $taskqueue, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); - } - - /** - * Update tasks that are leased out of a TaskQueue. This method supports patch - * semantics. (tasks.patch) - * - * @param string $project The project under which the queue lies. - * @param string $taskqueue - * @param string $task - * @param int $newLeaseSeconds The new lease in seconds. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); - } - - /** - * Update tasks that are leased out of a TaskQueue. (tasks.update) - * - * @param string $project The project under which the queue lies. - * @param string $taskqueue - * @param string $task - * @param int $newLeaseSeconds The new lease in seconds. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Taskqueue_Task"); - } -} - - - - -class Google_Service_Taskqueue_Task extends Google_Model -{ - protected $internal_gapi_mappings = array( - "retryCount" => "retry_count", - ); - public $enqueueTimestamp; - public $id; - public $kind; - public $leaseTimestamp; - public $payloadBase64; - public $queueName; - public $retryCount; - 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 setRetryCount($retryCount) - { - $this->retryCount = $retryCount; - } - public function getRetryCount() - { - return $this->retryCount; - } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } -} - -class Google_Service_Taskqueue_TaskQueue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl'; - protected $aclDataType = ''; - public $id; - public $kind; - public $maxLeases; - protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats'; - protected $statsDataType = ''; - - - public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl) - { - $this->acl = $acl; - } - public function 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 -{ - protected $collection_key = 'producerEmails'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Taskqueue_Task'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Taskqueue_Tasks2 extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Taskqueue_Task'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php deleted file mode 100644 index a24c2511b..000000000 --- a/src/Google/Service/Tasks.php +++ /dev/null @@ -1,908 +0,0 @@ - - * 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 -{ - /** Manage your tasks. */ - const TASKS = - "https://www.googleapis.com/auth/tasks"; - /** View your tasks. */ - const TASKS_READONLY = - "https://www.googleapis.com/auth/tasks.readonly"; - - public $tasklists; - public $tasks; - - - /** - * Constructs the internal representation of the Tasks service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'tasks/v1/'; - $this->version = 'v1'; - $this->serviceName = 'tasks'; - - $this->tasklists = new Google_Service_Tasks_Tasklists_Resource( - $this, - $this->serviceName, - 'tasklists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/@me/lists', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'users/@me/lists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tasks = new Google_Service_Tasks_Tasks_Resource( - $this, - $this->serviceName, - 'tasks', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'lists/{tasklist}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'lists/{tasklist}/tasks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parent' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'previous' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'lists/{tasklist}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'completedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'completedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dueMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dueMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showCompleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'move' => array( - 'path' => 'lists/{tasklist}/tasks/{task}/move', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parent' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'previous' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "tasklists" collection of methods. - * Typical usage is: - * - * $tasksService = new Google_Service_Tasks(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Returns the authenticated user's specified task list. (tasklists.get) - * - * @param string $tasklist Task list identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function get($tasklist, $optParams = array()) - { - $params = array('tasklist' => $tasklist); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); - } - - /** - * Creates a new task list and adds it to the authenticated user's task lists. - * (tasklists.insert) - * - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); - } - - /** - * Returns all the authenticated user's task lists. (tasklists.listTasklists) - * - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); - } - - /** - * Updates the authenticated user's specified task list. This method supports - * patch semantics. (tasklists.patch) - * - * @param string $tasklist Task list identifier. - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); - } - - /** - * Updates the authenticated user's specified task list. (tasklists.update) - * - * @param string $tasklist Task list identifier. - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); - } -} - -/** - * The "tasks" collection of methods. - * Typical usage is: - * - * $tasksService = new Google_Service_Tasks(...); - * $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); - return $this->call('clear', array($params)); - } - - /** - * Deletes the specified task from the task list. (tasks.delete) - * - * @param string $tasklist Task list identifier. - * @param string $task Task identifier. - * @param array $optParams Optional parameters. - */ - public function delete($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Returns the specified task. (tasks.get) - * - * @param string $tasklist Task list identifier. - * @param string $task Task identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function get($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tasks_Task"); - } - - /** - * Creates a new task on the specified task list. (tasks.insert) - * - * @param string $tasklist Task list identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string parent Parent task identifier. If the task is created at - * the top level, this parameter is omitted. Optional. - * @opt_param string previous Previous sibling task identifier. If the task is - * created at the first position among its siblings, this parameter is omitted. - * Optional. - * @return Google_Service_Tasks_Task - */ - public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Tasks_Task"); - } - - /** - * Returns all tasks in the specified task list. (tasks.listTasks) - * - * @param string $tasklist Task list identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); - } - - /** - * Moves the specified task to another position in the task list. This can - * include putting it as a child task under a new parent and/or move it to a - * different position among its sibling tasks. (tasks.move) - * - * @param string $tasklist Task list identifier. - * @param string $task Task identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string parent New parent task identifier. If the task is moved to - * the top level, this parameter is omitted. Optional. - * @opt_param string previous New previous sibling task identifier. If the task - * is moved to the first position among its siblings, this parameter is omitted. - * Optional. - * @return Google_Service_Tasks_Task - */ - public function move($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('move', array($params), "Google_Service_Tasks_Task"); - } - - /** - * Updates the specified task. This method supports patch semantics. - * (tasks.patch) - * - * @param string $tasklist Task list identifier. - * @param string $task Task identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tasks_Task"); - } - - /** - * Updates the specified task. (tasks.update) - * - * @param string $tasklist Task list identifier. - * @param string $task Task identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tasks_Task"); - } -} - - - - -class Google_Service_Tasks_Task extends Google_Collection -{ - protected $collection_key = 'links'; - protected $internal_gapi_mappings = array( - ); - public $completed; - public $deleted; - public $due; - public $etag; - public $hidden; - public $id; - public $kind; - protected $linksType = 'Google_Service_Tasks_TaskLinks'; - protected $linksDataType = 'array'; - public $notes; - public $parent; - public $position; - public $selfLink; - public $status; - public $title; - public $updated; - - - public function setCompleted($completed) - { - $this->completed = $completed; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Tasks_TaskList'; - protected $itemsDataType = 'array'; - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_Tasks_Task'; - protected $itemsDataType = 'array'; - 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 deleted file mode 100644 index 5391c68f6..000000000 --- a/src/Google/Service/Translate.php +++ /dev/null @@ -1,369 +0,0 @@ - - * 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) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'language/translate/'; - $this->version = 'v2'; - $this->serviceName = 'translate'; - - $this->detections = new Google_Service_Translate_Detections_Resource( - $this, - $this->serviceName, - 'detections', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/detect', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->languages = new Google_Service_Translate_Languages_Resource( - $this, - $this->serviceName, - 'languages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/languages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'target' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->translations = new Google_Service_Translate_Translations_Resource( - $this, - $this->serviceName, - 'translations', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'target' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'cid' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "detections" collection of methods. - * Typical usage is: - * - * $translateService = new Google_Service_Translate(...); - * $detections = $translateService->detections; - * - */ -class Google_Service_Translate_Detections_Resource extends Google_Service_Resource -{ - - /** - * Detect the language of text. (detections.listDetections) - * - * @param string $q The text to detect - * @param array $optParams Optional parameters. - * @return Google_Service_Translate_DetectionsListResponse - */ - public function listDetections($q, $optParams = array()) - { - $params = array('q' => $q); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Translate_DetectionsListResponse"); - } -} - -/** - * The "languages" collection of methods. - * Typical usage is: - * - * $translateService = new Google_Service_Translate(...); - * $languages = $translateService->languages; - * - */ -class Google_Service_Translate_Languages_Resource extends Google_Service_Resource -{ - - /** - * List the source/target languages supported by the API - * (languages.listLanguages) - * - * @param array $optParams Optional parameters. - * - * @opt_param string target the language and collation in which the localized - * results should be returned - * @return Google_Service_Translate_LanguagesListResponse - */ - public function listLanguages($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Translate_LanguagesListResponse"); - } -} - -/** - * The "translations" collection of methods. - * Typical usage is: - * - * $translateService = new Google_Service_Translate(...); - * $translations = $translateService->translations; - * - */ -class Google_Service_Translate_Translations_Resource extends Google_Service_Resource -{ - - /** - * Returns text translations from one language to another. - * (translations.listTranslations) - * - * @param string $q The text to translate - * @param string $target The target language into which the text should be - * translated - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Translate_TranslationsListResponse"); - } -} - - - - -class Google_Service_Translate_DetectionsListResponse extends Google_Collection -{ - protected $collection_key = 'detections'; - protected $internal_gapi_mappings = array( - ); - protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; - protected $detectionsDataType = 'array'; - - - public function setDetections($detections) - { - $this->detections = $detections; - } - public function getDetections() - { - return $this->detections; - } -} - -class Google_Service_Translate_DetectionsResourceItems extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'languages'; - protected $internal_gapi_mappings = array( - ); - protected $languagesType = 'Google_Service_Translate_LanguagesResource'; - protected $languagesDataType = 'array'; - - - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } -} - -class Google_Service_Translate_LanguagesResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'translations'; - protected $internal_gapi_mappings = array( - ); - protected $translationsType = 'Google_Service_Translate_TranslationsResource'; - protected $translationsDataType = 'array'; - - - public function setTranslations($translations) - { - $this->translations = $translations; - } - public function getTranslations() - { - return $this->translations; - } -} - -class Google_Service_Translate_TranslationsResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 deleted file mode 100644 index e9a6000ca..000000000 --- a/src/Google/Service/Urlshortener.php +++ /dev/null @@ -1,427 +0,0 @@ - - * 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 -{ - /** Manage your goo.gl short URLs. */ - const URLSHORTENER = - "https://www.googleapis.com/auth/urlshortener"; - - public $url; - - - /** - * Constructs the internal representation of the Urlshortener service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'urlshortener/v1/'; - $this->version = 'v1'; - $this->serviceName = 'urlshortener'; - - $this->url = new Google_Service_Urlshortener_Url_Resource( - $this, - $this->serviceName, - 'url', - array( - 'methods' => array( - 'get' => array( - 'path' => 'url', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shortUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'url', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'url/history', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "url" collection of methods. - * Typical usage is: - * - * $urlshortenerService = new Google_Service_Urlshortener(...); - * $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); - return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); - } - - /** - * Creates a new short URL. (url.insert) - * - * @param Google_Url $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Urlshortener_Url - */ - public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); - } - - /** - * Retrieves a list of URLs shortened by a user. (url.listUrl) - * - * @param array $optParams Optional parameters. - * - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory"); - } -} - - - - -class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection -{ - protected $collection_key = 'referrers'; - protected $internal_gapi_mappings = array( - ); - protected $browsersType = 'Google_Service_Urlshortener_StringCount'; - protected $browsersDataType = 'array'; - protected $countriesType = 'Google_Service_Urlshortener_StringCount'; - protected $countriesDataType = 'array'; - public $longUrlClicks; - protected $platformsType = 'Google_Service_Urlshortener_StringCount'; - protected $platformsDataType = 'array'; - protected $referrersType = 'Google_Service_Urlshortener_StringCount'; - protected $referrersDataType = 'array'; - public $shortUrlClicks; - - - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } - 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 $internal_gapi_mappings = array( - ); - protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $allTimeDataType = ''; - protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $dayDataType = ''; - protected $monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $monthDataType = ''; - protected $twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $twoHoursDataType = ''; - protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $weekDataType = ''; - - - public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime) - { - $this->allTime = $allTime; - } - public function 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary'; - protected $analyticsDataType = ''; - public $created; - public $id; - public $kind; - public $longUrl; - public $status; - - - public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics) - { - $this->analytics = $analytics; - } - public function 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Urlshortener_Url'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextPageToken; - public $totalItems; - - - public function setItems($items) - { - $this->items = $items; - } - public function 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/Vision.php b/src/Google/Service/Vision.php deleted file mode 100644 index 6384f601e..000000000 --- a/src/Google/Service/Vision.php +++ /dev/null @@ -1,1007 +0,0 @@ - - * The Google Cloud Vision API allows developers to easily integrate Google - * vision features, including image labeling, face, logo, and landmark - * detection, optical character recognition (OCR), and detection of explicit - * content, into applications.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Vision extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - - public $images; - - - /** - * Constructs the internal representation of the Vision service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://vision.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'vision'; - - $this->images = new Google_Service_Vision_Images_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'annotate' => array( - 'path' => 'v1/images:annotate', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } -} - - -/** - * The "images" collection of methods. - * Typical usage is: - * - * $visionService = new Google_Service_Vision(...); - * $images = $visionService->images; - * - */ -class Google_Service_Vision_Images_Resource extends Google_Service_Resource -{ - - /** - * Run image detection and annotation for a batch of images. (images.annotate) - * - * @param Google_BatchAnnotateImagesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Vision_BatchAnnotateImagesResponse - */ - public function annotate(Google_Service_Vision_BatchAnnotateImagesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('annotate', array($params), "Google_Service_Vision_BatchAnnotateImagesResponse"); - } -} - - - - -class Google_Service_Vision_AnnotateImageRequest extends Google_Collection -{ - protected $collection_key = 'features'; - protected $internal_gapi_mappings = array( - ); - protected $featuresType = 'Google_Service_Vision_Feature'; - protected $featuresDataType = 'array'; - protected $imageType = 'Google_Service_Vision_Image'; - protected $imageDataType = ''; - protected $imageContextType = 'Google_Service_Vision_ImageContext'; - protected $imageContextDataType = ''; - - - public function setFeatures($features) - { - $this->features = $features; - } - public function getFeatures() - { - return $this->features; - } - public function setImage(Google_Service_Vision_Image $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setImageContext(Google_Service_Vision_ImageContext $imageContext) - { - $this->imageContext = $imageContext; - } - public function getImageContext() - { - return $this->imageContext; - } -} - -class Google_Service_Vision_AnnotateImageResponse extends Google_Collection -{ - protected $collection_key = 'textAnnotations'; - protected $internal_gapi_mappings = array( - ); - protected $errorType = 'Google_Service_Vision_Status'; - protected $errorDataType = ''; - protected $faceAnnotationsType = 'Google_Service_Vision_FaceAnnotation'; - protected $faceAnnotationsDataType = 'array'; - protected $imagePropertiesAnnotationType = 'Google_Service_Vision_ImageProperties'; - protected $imagePropertiesAnnotationDataType = ''; - protected $labelAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; - protected $labelAnnotationsDataType = 'array'; - protected $landmarkAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; - protected $landmarkAnnotationsDataType = 'array'; - protected $logoAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; - protected $logoAnnotationsDataType = 'array'; - protected $safeSearchAnnotationType = 'Google_Service_Vision_SafeSearchAnnotation'; - protected $safeSearchAnnotationDataType = ''; - protected $textAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; - protected $textAnnotationsDataType = 'array'; - - - public function setError(Google_Service_Vision_Status $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setFaceAnnotations($faceAnnotations) - { - $this->faceAnnotations = $faceAnnotations; - } - public function getFaceAnnotations() - { - return $this->faceAnnotations; - } - public function setImagePropertiesAnnotation(Google_Service_Vision_ImageProperties $imagePropertiesAnnotation) - { - $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; - } - public function getImagePropertiesAnnotation() - { - return $this->imagePropertiesAnnotation; - } - public function setLabelAnnotations($labelAnnotations) - { - $this->labelAnnotations = $labelAnnotations; - } - public function getLabelAnnotations() - { - return $this->labelAnnotations; - } - public function setLandmarkAnnotations($landmarkAnnotations) - { - $this->landmarkAnnotations = $landmarkAnnotations; - } - public function getLandmarkAnnotations() - { - return $this->landmarkAnnotations; - } - public function setLogoAnnotations($logoAnnotations) - { - $this->logoAnnotations = $logoAnnotations; - } - public function getLogoAnnotations() - { - return $this->logoAnnotations; - } - public function setSafeSearchAnnotation(Google_Service_Vision_SafeSearchAnnotation $safeSearchAnnotation) - { - $this->safeSearchAnnotation = $safeSearchAnnotation; - } - public function getSafeSearchAnnotation() - { - return $this->safeSearchAnnotation; - } - public function setTextAnnotations($textAnnotations) - { - $this->textAnnotations = $textAnnotations; - } - public function getTextAnnotations() - { - return $this->textAnnotations; - } -} - -class Google_Service_Vision_BatchAnnotateImagesRequest extends Google_Collection -{ - protected $collection_key = 'requests'; - protected $internal_gapi_mappings = array( - ); - protected $requestsType = 'Google_Service_Vision_AnnotateImageRequest'; - protected $requestsDataType = 'array'; - - - public function setRequests($requests) - { - $this->requests = $requests; - } - public function getRequests() - { - return $this->requests; - } -} - -class Google_Service_Vision_BatchAnnotateImagesResponse extends Google_Collection -{ - protected $collection_key = 'responses'; - protected $internal_gapi_mappings = array( - ); - protected $responsesType = 'Google_Service_Vision_AnnotateImageResponse'; - protected $responsesDataType = 'array'; - - - public function setResponses($responses) - { - $this->responses = $responses; - } - public function getResponses() - { - return $this->responses; - } -} - -class Google_Service_Vision_BoundingPoly extends Google_Collection -{ - protected $collection_key = 'vertices'; - protected $internal_gapi_mappings = array( - ); - protected $verticesType = 'Google_Service_Vision_Vertex'; - protected $verticesDataType = 'array'; - - - public function setVertices($vertices) - { - $this->vertices = $vertices; - } - public function getVertices() - { - return $this->vertices; - } -} - -class Google_Service_Vision_Color extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $alpha; - public $blue; - public $green; - public $red; - - - public function setAlpha($alpha) - { - $this->alpha = $alpha; - } - public function getAlpha() - { - return $this->alpha; - } - public function setBlue($blue) - { - $this->blue = $blue; - } - public function getBlue() - { - return $this->blue; - } - public function setGreen($green) - { - $this->green = $green; - } - public function getGreen() - { - return $this->green; - } - public function setRed($red) - { - $this->red = $red; - } - public function getRed() - { - return $this->red; - } -} - -class Google_Service_Vision_ColorInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $colorType = 'Google_Service_Vision_Color'; - protected $colorDataType = ''; - public $pixelFraction; - public $score; - - - public function setColor(Google_Service_Vision_Color $color) - { - $this->color = $color; - } - public function getColor() - { - return $this->color; - } - public function setPixelFraction($pixelFraction) - { - $this->pixelFraction = $pixelFraction; - } - public function getPixelFraction() - { - return $this->pixelFraction; - } - public function setScore($score) - { - $this->score = $score; - } - public function getScore() - { - return $this->score; - } -} - -class Google_Service_Vision_DominantColorsAnnotation extends Google_Collection -{ - protected $collection_key = 'colors'; - protected $internal_gapi_mappings = array( - ); - protected $colorsType = 'Google_Service_Vision_ColorInfo'; - protected $colorsDataType = 'array'; - - - public function setColors($colors) - { - $this->colors = $colors; - } - public function getColors() - { - return $this->colors; - } -} - -class Google_Service_Vision_EntityAnnotation extends Google_Collection -{ - protected $collection_key = 'properties'; - protected $internal_gapi_mappings = array( - ); - protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; - protected $boundingPolyDataType = ''; - public $confidence; - public $description; - public $locale; - protected $locationsType = 'Google_Service_Vision_LocationInfo'; - protected $locationsDataType = 'array'; - public $mid; - protected $propertiesType = 'Google_Service_Vision_Property'; - protected $propertiesDataType = 'array'; - public $score; - public $topicality; - - - public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) - { - $this->boundingPoly = $boundingPoly; - } - public function getBoundingPoly() - { - return $this->boundingPoly; - } - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } - public function getConfidence() - { - return $this->confidence; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocale($locale) - { - $this->locale = $locale; - } - public function getLocale() - { - return $this->locale; - } - public function setLocations($locations) - { - $this->locations = $locations; - } - public function getLocations() - { - return $this->locations; - } - public function setMid($mid) - { - $this->mid = $mid; - } - public function getMid() - { - return $this->mid; - } - public function setProperties($properties) - { - $this->properties = $properties; - } - public function getProperties() - { - return $this->properties; - } - public function setScore($score) - { - $this->score = $score; - } - public function getScore() - { - return $this->score; - } - public function setTopicality($topicality) - { - $this->topicality = $topicality; - } - public function getTopicality() - { - return $this->topicality; - } -} - -class Google_Service_Vision_FaceAnnotation extends Google_Collection -{ - protected $collection_key = 'landmarks'; - protected $internal_gapi_mappings = array( - ); - public $angerLikelihood; - public $blurredLikelihood; - protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; - protected $boundingPolyDataType = ''; - public $detectionConfidence; - protected $fdBoundingPolyType = 'Google_Service_Vision_BoundingPoly'; - protected $fdBoundingPolyDataType = ''; - public $headwearLikelihood; - public $joyLikelihood; - public $landmarkingConfidence; - protected $landmarksType = 'Google_Service_Vision_Landmark'; - protected $landmarksDataType = 'array'; - public $panAngle; - public $rollAngle; - public $sorrowLikelihood; - public $surpriseLikelihood; - public $tiltAngle; - public $underExposedLikelihood; - - - public function setAngerLikelihood($angerLikelihood) - { - $this->angerLikelihood = $angerLikelihood; - } - public function getAngerLikelihood() - { - return $this->angerLikelihood; - } - public function setBlurredLikelihood($blurredLikelihood) - { - $this->blurredLikelihood = $blurredLikelihood; - } - public function getBlurredLikelihood() - { - return $this->blurredLikelihood; - } - public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) - { - $this->boundingPoly = $boundingPoly; - } - public function getBoundingPoly() - { - return $this->boundingPoly; - } - public function setDetectionConfidence($detectionConfidence) - { - $this->detectionConfidence = $detectionConfidence; - } - public function getDetectionConfidence() - { - return $this->detectionConfidence; - } - public function setFdBoundingPoly(Google_Service_Vision_BoundingPoly $fdBoundingPoly) - { - $this->fdBoundingPoly = $fdBoundingPoly; - } - public function getFdBoundingPoly() - { - return $this->fdBoundingPoly; - } - public function setHeadwearLikelihood($headwearLikelihood) - { - $this->headwearLikelihood = $headwearLikelihood; - } - public function getHeadwearLikelihood() - { - return $this->headwearLikelihood; - } - public function setJoyLikelihood($joyLikelihood) - { - $this->joyLikelihood = $joyLikelihood; - } - public function getJoyLikelihood() - { - return $this->joyLikelihood; - } - public function setLandmarkingConfidence($landmarkingConfidence) - { - $this->landmarkingConfidence = $landmarkingConfidence; - } - public function getLandmarkingConfidence() - { - return $this->landmarkingConfidence; - } - public function setLandmarks($landmarks) - { - $this->landmarks = $landmarks; - } - public function getLandmarks() - { - return $this->landmarks; - } - public function setPanAngle($panAngle) - { - $this->panAngle = $panAngle; - } - public function getPanAngle() - { - return $this->panAngle; - } - public function setRollAngle($rollAngle) - { - $this->rollAngle = $rollAngle; - } - public function getRollAngle() - { - return $this->rollAngle; - } - public function setSorrowLikelihood($sorrowLikelihood) - { - $this->sorrowLikelihood = $sorrowLikelihood; - } - public function getSorrowLikelihood() - { - return $this->sorrowLikelihood; - } - public function setSurpriseLikelihood($surpriseLikelihood) - { - $this->surpriseLikelihood = $surpriseLikelihood; - } - public function getSurpriseLikelihood() - { - return $this->surpriseLikelihood; - } - public function setTiltAngle($tiltAngle) - { - $this->tiltAngle = $tiltAngle; - } - public function getTiltAngle() - { - return $this->tiltAngle; - } - public function setUnderExposedLikelihood($underExposedLikelihood) - { - $this->underExposedLikelihood = $underExposedLikelihood; - } - public function getUnderExposedLikelihood() - { - return $this->underExposedLikelihood; - } -} - -class Google_Service_Vision_Feature extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $maxResults; - public $type; - - - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - public function getMaxResults() - { - return $this->maxResults; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Vision_Image extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $content; - protected $sourceType = 'Google_Service_Vision_ImageSource'; - protected $sourceDataType = ''; - - - public function setContent($content) - { - $this->content = $content; - } - public function getContent() - { - return $this->content; - } - public function setSource(Google_Service_Vision_ImageSource $source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Vision_ImageContext extends Google_Collection -{ - protected $collection_key = 'languageHints'; - protected $internal_gapi_mappings = array( - ); - public $languageHints; - protected $latLongRectType = 'Google_Service_Vision_LatLongRect'; - protected $latLongRectDataType = ''; - - - public function setLanguageHints($languageHints) - { - $this->languageHints = $languageHints; - } - public function getLanguageHints() - { - return $this->languageHints; - } - public function setLatLongRect(Google_Service_Vision_LatLongRect $latLongRect) - { - $this->latLongRect = $latLongRect; - } - public function getLatLongRect() - { - return $this->latLongRect; - } -} - -class Google_Service_Vision_ImageProperties extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $dominantColorsType = 'Google_Service_Vision_DominantColorsAnnotation'; - protected $dominantColorsDataType = ''; - - - public function setDominantColors(Google_Service_Vision_DominantColorsAnnotation $dominantColors) - { - $this->dominantColors = $dominantColors; - } - public function getDominantColors() - { - return $this->dominantColors; - } -} - -class Google_Service_Vision_ImageSource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gcsImageUri; - - - public function setGcsImageUri($gcsImageUri) - { - $this->gcsImageUri = $gcsImageUri; - } - public function getGcsImageUri() - { - return $this->gcsImageUri; - } -} - -class Google_Service_Vision_Landmark extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $positionType = 'Google_Service_Vision_Position'; - protected $positionDataType = ''; - public $type; - - - public function setPosition(Google_Service_Vision_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Vision_LatLng extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Vision_LatLongRect extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $maxLatLngType = 'Google_Service_Vision_LatLng'; - protected $maxLatLngDataType = ''; - protected $minLatLngType = 'Google_Service_Vision_LatLng'; - protected $minLatLngDataType = ''; - - - public function setMaxLatLng(Google_Service_Vision_LatLng $maxLatLng) - { - $this->maxLatLng = $maxLatLng; - } - public function getMaxLatLng() - { - return $this->maxLatLng; - } - public function setMinLatLng(Google_Service_Vision_LatLng $minLatLng) - { - $this->minLatLng = $minLatLng; - } - public function getMinLatLng() - { - return $this->minLatLng; - } -} - -class Google_Service_Vision_LocationInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $latLngType = 'Google_Service_Vision_LatLng'; - protected $latLngDataType = ''; - - - public function setLatLng(Google_Service_Vision_LatLng $latLng) - { - $this->latLng = $latLng; - } - public function getLatLng() - { - return $this->latLng; - } -} - -class Google_Service_Vision_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $x; - public $y; - public $z; - - - public function setX($x) - { - $this->x = $x; - } - public function getX() - { - return $this->x; - } - public function setY($y) - { - $this->y = $y; - } - public function getY() - { - return $this->y; - } - public function setZ($z) - { - $this->z = $z; - } - public function getZ() - { - return $this->z; - } -} - -class Google_Service_Vision_Property extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_Vision_SafeSearchAnnotation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $adult; - public $medical; - public $spoof; - public $violence; - - - public function setAdult($adult) - { - $this->adult = $adult; - } - public function getAdult() - { - return $this->adult; - } - public function setMedical($medical) - { - $this->medical = $medical; - } - public function getMedical() - { - return $this->medical; - } - public function setSpoof($spoof) - { - $this->spoof = $spoof; - } - public function getSpoof() - { - return $this->spoof; - } - public function setViolence($violence) - { - $this->violence = $violence; - } - public function getViolence() - { - return $this->violence; - } -} - -class Google_Service_Vision_Status extends Google_Collection -{ - protected $collection_key = 'details'; - protected $internal_gapi_mappings = array( - ); - public $code; - public $details; - public $message; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setMessage($message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Vision_Vertex extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $x; - public $y; - - - public function setX($x) - { - $this->x = $x; - } - public function getX() - { - return $this->x; - } - public function setY($y) - { - $this->y = $y; - } - public function getY() - { - return $this->y; - } -} diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php deleted file mode 100644 index c4a25b5cd..000000000 --- a/src/Google/Service/Webfonts.php +++ /dev/null @@ -1,214 +0,0 @@ - - * Accesses the metadata for all families served by Google Fonts, providing a - * list of families currently available (including available styles and a list - * of supported script subsets).

    - * - *

    - * 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) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'webfonts/v1/'; - $this->version = 'v1'; - $this->serviceName = 'webfonts'; - - $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource( - $this, - $this->serviceName, - 'webfonts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'webfonts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "webfonts" collection of methods. - * Typical usage is: - * - * $webfontsService = new Google_Service_Webfonts(...); - * $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.listWebfonts) - * - * @param array $optParams Optional parameters. - * - * @opt_param string sort Enables sorting of the list - * @return Google_Service_Webfonts_WebfontList - */ - public function listWebfonts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList"); - } -} - - - - -class Google_Service_Webfonts_Webfont extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - public $category; - public $family; - public $files; - public $kind; - public $lastModified; - public $subsets; - public $variants; - public $version; - - - public function setCategory($category) - { - $this->category = $category; - } - public function getCategory() - { - return $this->category; - } - 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 $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_Webfonts_Webfont'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} diff --git a/src/Google/Service/Webmasters.php b/src/Google/Service/Webmasters.php deleted file mode 100644 index 90d8c337b..000000000 --- a/src/Google/Service/Webmasters.php +++ /dev/null @@ -1,1201 +0,0 @@ - - * Lets you view Google Search Console data for your verified sites.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_Webmasters extends Google_Service -{ - /** View and manage Search Console data for your verified sites. */ - const WEBMASTERS = - "https://www.googleapis.com/auth/webmasters"; - /** View Search Console data for your verified sites. */ - const WEBMASTERS_READONLY = - "https://www.googleapis.com/auth/webmasters.readonly"; - - public $searchanalytics; - public $sitemaps; - public $sites; - public $urlcrawlerrorscounts; - public $urlcrawlerrorssamples; - - - /** - * Constructs the internal representation of the Webmasters service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'webmasters/v3/'; - $this->version = 'v3'; - $this->serviceName = 'webmasters'; - - $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( - $this, - $this->serviceName, - 'searchanalytics', - array( - 'methods' => array( - 'query' => array( - 'path' => 'sites/{siteUrl}/searchAnalytics/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( - $this, - $this->serviceName, - 'sitemaps', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites/{siteUrl}/sitemaps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sitemapIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submit' => array( - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'feedpath' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->sites = new Google_Service_Webmasters_Sites_Resource( - $this, - $this->serviceName, - 'sites', - array( - 'methods' => array( - 'add' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'sites/{siteUrl}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( - $this, - $this->serviceName, - 'urlcrawlerrorscounts', - array( - 'methods' => array( - 'query' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'latestCountsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( - $this, - $this->serviceName, - 'urlcrawlerrorssamples', - array( - 'methods' => array( - 'get' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'url' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', - 'httpMethod' => 'GET', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'markAsFixed' => array( - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'siteUrl' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'url' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'category' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'platform' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "searchanalytics" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $searchanalytics = $webmastersService->searchanalytics; - * - */ -class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource -{ - - /** - * Query your data with filters and parameters that you define. Returns zero or - * more rows grouped by the row keys that you define. You must define a date - * range of one or more days. - * - * When date is one of the group by values, any days without data are omitted - * from the result list. If you need to know which days have data, issue a broad - * date range query grouped by date for any metric, and see which day rows are - * returned. (searchanalytics.query) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param Google_SearchAnalyticsQueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse - */ - public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); - } -} - -/** - * The "sitemaps" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $sitemaps = $webmastersService->sitemaps; - * - */ -class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resource -{ - - /** - * Deletes a sitemap from this site. (sitemaps.delete) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the actual sitemap. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - */ - public function delete($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves information about a specific sitemap. (sitemaps.get) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the actual sitemap. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_WmxSitemap - */ - public function get($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); - } - - /** - * Lists the sitemaps-entries submitted for this site, or included in the - * sitemap index file (if sitemapIndex is specified in the request). - * (sitemaps.listSitemaps) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param array $optParams Optional parameters. - * - * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: - * http://www.example.com/sitemapindex.xml - * @return Google_Service_Webmasters_SitemapsListResponse - */ - public function listSitemaps($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); - } - - /** - * Submits a sitemap for a site. (sitemaps.submit) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $feedpath The URL of the sitemap to add. For example: - * http://www.example.com/sitemap.xml - * @param array $optParams Optional parameters. - */ - public function submit($siteUrl, $feedpath, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); - $params = array_merge($params, $optParams); - return $this->call('submit', array($params)); - } -} - -/** - * The "sites" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $sites = $webmastersService->sites; - * - */ -class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource -{ - - /** - * Adds a site to the set of the user's sites in Search Console. (sites.add) - * - * @param string $siteUrl The URL of the site to add. - * @param array $optParams Optional parameters. - */ - public function add($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('add', array($params)); - } - - /** - * Removes a site from the set of the user's Search Console sites. - * (sites.delete) - * - * @param string $siteUrl The URI of the property as defined in Search Console. - * Examples: http://www.example.com/ or android-app://com.example/ - * @param array $optParams Optional parameters. - */ - public function delete($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves information about specific site. (sites.get) - * - * @param string $siteUrl The URI of the property as defined in Search Console. - * Examples: http://www.example.com/ or android-app://com.example/ - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_WmxSite - */ - public function get($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); - } - - /** - * Lists the user's Search Console sites. (sites.listSites) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_SitesListResponse - */ - public function listSites($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); - } -} - -/** - * The "urlcrawlerrorscounts" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts; - * - */ -class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a time series of the number of URL crawl errors per error category - * and platform. (urlcrawlerrorscounts.query) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param array $optParams Optional parameters. - * - * @opt_param string category The crawl error category. For example: - * serverError. If not specified, returns results for all categories. - * @opt_param bool latestCountsOnly If true, returns only the latest crawl error - * counts. - * @opt_param string platform The user agent type (platform) that made the - * request. For example: web. If not specified, returns results for all - * platforms. - * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse - */ - public function query($siteUrl, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); - } -} - -/** - * The "urlcrawlerrorssamples" collection of methods. - * Typical usage is: - * - * $webmastersService = new Google_Service_Webmasters(...); - * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples; - * - */ -class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource -{ - - /** - * Retrieves details about crawl errors for a site's sample URL. - * (urlcrawlerrorssamples.get) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $url The relative path (without the site) of the sample URL. It - * must be one of the URLs returned by list(). For example, for the URL - * https://www.example.com/pagename on the site https://www.example.com/, the - * url value is pagename - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_UrlCrawlErrorsSample - */ - public function get($siteUrl, $url, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); - } - - /** - * Lists a site's sample URLs for the specified crawl error category and - * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse - */ - public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); - } - - /** - * Marks the provided site's sample URL as fixed, and removes it from the - * samples list. (urlcrawlerrorssamples.markAsFixed) - * - * @param string $siteUrl The site's URL, including protocol. For example: - * http://www.example.com/ - * @param string $url The relative path (without the site) of the sample URL. It - * must be one of the URLs returned by list(). For example, for the URL - * https://www.example.com/pagename on the site https://www.example.com/, the - * url value is pagename - * @param string $category The crawl error category. For example: - * authPermissions - * @param string $platform The user agent type (platform) that made the request. - * For example: web - * @param array $optParams Optional parameters. - */ - public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) - { - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); - $params = array_merge($params, $optParams); - return $this->call('markAsFixed', array($params)); - } -} - - - - -class Google_Service_Webmasters_ApiDataRow extends Google_Collection -{ - protected $collection_key = 'keys'; - protected $internal_gapi_mappings = array( - ); - public $clicks; - public $ctr; - public $impressions; - public $keys; - public $position; - - - public function setClicks($clicks) - { - $this->clicks = $clicks; - } - public function getClicks() - { - return $this->clicks; - } - public function setCtr($ctr) - { - $this->ctr = $ctr; - } - public function getCtr() - { - return $this->ctr; - } - public function setImpressions($impressions) - { - $this->impressions = $impressions; - } - public function getImpressions() - { - return $this->impressions; - } - public function setKeys($keys) - { - $this->keys = $keys; - } - public function getKeys() - { - return $this->keys; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $dimension; - public $expression; - public $operator; - - - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setExpression($expression) - { - $this->expression = $expression; - } - public function getExpression() - { - return $this->expression; - } - public function setOperator($operator) - { - $this->operator = $operator; - } - public function getOperator() - { - return $this->operator; - } -} - -class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection -{ - protected $collection_key = 'filters'; - protected $internal_gapi_mappings = array( - ); - protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter'; - protected $filtersDataType = 'array'; - public $groupType; - - - public function setFilters($filters) - { - $this->filters = $filters; - } - public function getFilters() - { - return $this->filters; - } - public function setGroupType($groupType) - { - $this->groupType = $groupType; - } - public function getGroupType() - { - return $this->groupType; - } -} - -class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection -{ - protected $collection_key = 'dimensions'; - protected $internal_gapi_mappings = array( - ); - public $aggregationType; - protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup'; - protected $dimensionFilterGroupsDataType = 'array'; - public $dimensions; - public $endDate; - public $rowLimit; - public $searchType; - public $startDate; - - - public function setAggregationType($aggregationType) - { - $this->aggregationType = $aggregationType; - } - public function getAggregationType() - { - return $this->aggregationType; - } - public function setDimensionFilterGroups($dimensionFilterGroups) - { - $this->dimensionFilterGroups = $dimensionFilterGroups; - } - public function getDimensionFilterGroups() - { - return $this->dimensionFilterGroups; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - public function getEndDate() - { - return $this->endDate; - } - public function setRowLimit($rowLimit) - { - $this->rowLimit = $rowLimit; - } - public function getRowLimit() - { - return $this->rowLimit; - } - public function setSearchType($searchType) - { - $this->searchType = $searchType; - } - public function getSearchType() - { - return $this->searchType; - } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - public function getStartDate() - { - return $this->startDate; - } -} - -class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - public $responseAggregationType; - protected $rowsType = 'Google_Service_Webmasters_ApiDataRow'; - protected $rowsDataType = 'array'; - - - public function setResponseAggregationType($responseAggregationType) - { - $this->responseAggregationType = $responseAggregationType; - } - public function getResponseAggregationType() - { - return $this->responseAggregationType; - } - public function setRows($rows) - { - $this->rows = $rows; - } - public function getRows() - { - return $this->rows; - } -} - -class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection -{ - protected $collection_key = 'sitemap'; - protected $internal_gapi_mappings = array( - ); - protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap'; - protected $sitemapDataType = 'array'; - - - public function setSitemap($sitemap) - { - $this->sitemap = $sitemap; - } - public function getSitemap() - { - return $this->sitemap; - } -} - -class Google_Service_Webmasters_SitesListResponse extends Google_Collection -{ - protected $collection_key = 'siteEntry'; - protected $internal_gapi_mappings = array( - ); - protected $siteEntryType = 'Google_Service_Webmasters_WmxSite'; - protected $siteEntryDataType = 'array'; - - - public function setSiteEntry($siteEntry) - { - $this->siteEntry = $siteEntry; - } - public function getSiteEntry() - { - return $this->siteEntry; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $count; - public $timestamp; - - - public function setCount($count) - { - $this->count = $count; - } - public function getCount() - { - return $this->count; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection -{ - protected $collection_key = 'entries'; - protected $internal_gapi_mappings = array( - ); - public $category; - protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount'; - protected $entriesDataType = 'array'; - public $platform; - - - public function setCategory($category) - { - $this->category = $category; - } - public function getCategory() - { - return $this->category; - } - public function setEntries($entries) - { - $this->entries = $entries; - } - public function getEntries() - { - return $this->entries; - } - public function setPlatform($platform) - { - $this->platform = $platform; - } - public function getPlatform() - { - return $this->platform; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection -{ - protected $collection_key = 'countPerTypes'; - protected $internal_gapi_mappings = array( - ); - protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType'; - protected $countPerTypesDataType = 'array'; - - - public function setCountPerTypes($countPerTypes) - { - $this->countPerTypes = $countPerTypes; - } - public function getCountPerTypes() - { - return $this->countPerTypes; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model -{ - protected $internal_gapi_mappings = array( - "firstDetected" => "first_detected", - "lastCrawled" => "last_crawled", - ); - public $firstDetected; - public $lastCrawled; - public $pageUrl; - public $responseCode; - protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails'; - protected $urlDetailsDataType = ''; - - - public function setFirstDetected($firstDetected) - { - $this->firstDetected = $firstDetected; - } - public function getFirstDetected() - { - return $this->firstDetected; - } - public function setLastCrawled($lastCrawled) - { - $this->lastCrawled = $lastCrawled; - } - public function getLastCrawled() - { - return $this->lastCrawled; - } - public function setPageUrl($pageUrl) - { - $this->pageUrl = $pageUrl; - } - public function getPageUrl() - { - return $this->pageUrl; - } - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } - public function getResponseCode() - { - return $this->responseCode; - } - public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) - { - $this->urlDetails = $urlDetails; - } - public function getUrlDetails() - { - return $this->urlDetails; - } -} - -class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection -{ - protected $collection_key = 'urlCrawlErrorSample'; - protected $internal_gapi_mappings = array( - ); - protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample'; - protected $urlCrawlErrorSampleDataType = 'array'; - - - public function setUrlCrawlErrorSample($urlCrawlErrorSample) - { - $this->urlCrawlErrorSample = $urlCrawlErrorSample; - } - public function getUrlCrawlErrorSample() - { - return $this->urlCrawlErrorSample; - } -} - -class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection -{ - protected $collection_key = 'linkedFromUrls'; - protected $internal_gapi_mappings = array( - ); - public $containingSitemaps; - public $linkedFromUrls; - - - public function setContainingSitemaps($containingSitemaps) - { - $this->containingSitemaps = $containingSitemaps; - } - public function getContainingSitemaps() - { - return $this->containingSitemaps; - } - public function setLinkedFromUrls($linkedFromUrls) - { - $this->linkedFromUrls = $linkedFromUrls; - } - public function getLinkedFromUrls() - { - return $this->linkedFromUrls; - } -} - -class Google_Service_Webmasters_WmxSite extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $permissionLevel; - public $siteUrl; - - - public function setPermissionLevel($permissionLevel) - { - $this->permissionLevel = $permissionLevel; - } - public function getPermissionLevel() - { - return $this->permissionLevel; - } - public function setSiteUrl($siteUrl) - { - $this->siteUrl = $siteUrl; - } - public function getSiteUrl() - { - return $this->siteUrl; - } -} - -class Google_Service_Webmasters_WmxSitemap extends Google_Collection -{ - protected $collection_key = 'contents'; - protected $internal_gapi_mappings = array( - ); - protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent'; - protected $contentsDataType = 'array'; - public $errors; - public $isPending; - public $isSitemapsIndex; - public $lastDownloaded; - public $lastSubmitted; - public $path; - public $type; - public $warnings; - - - public function setContents($contents) - { - $this->contents = $contents; - } - public function getContents() - { - return $this->contents; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setIsPending($isPending) - { - $this->isPending = $isPending; - } - public function getIsPending() - { - return $this->isPending; - } - public function setIsSitemapsIndex($isSitemapsIndex) - { - $this->isSitemapsIndex = $isSitemapsIndex; - } - public function getIsSitemapsIndex() - { - return $this->isSitemapsIndex; - } - public function setLastDownloaded($lastDownloaded) - { - $this->lastDownloaded = $lastDownloaded; - } - public function getLastDownloaded() - { - return $this->lastDownloaded; - } - public function setLastSubmitted($lastSubmitted) - { - $this->lastSubmitted = $lastSubmitted; - } - public function getLastSubmitted() - { - return $this->lastSubmitted; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Webmasters_WmxSitemapContent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $indexed; - public $submitted; - public $type; - - - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } - public function getIndexed() - { - return $this->indexed; - } - public function setSubmitted($submitted) - { - $this->submitted = $submitted; - } - public function getSubmitted() - { - return $this->submitted; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php deleted file mode 100644 index 46a1e2c38..000000000 --- a/src/Google/Service/YouTube.php +++ /dev/null @@ -1,14400 +0,0 @@ - - * 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 -{ - /** Manage your YouTube account. */ - const YOUTUBE = - "https://www.googleapis.com/auth/youtube"; - /** Manage your YouTube account. */ - const YOUTUBE_FORCE_SSL = - "https://www.googleapis.com/auth/youtube.force-ssl"; - /** View your YouTube account. */ - const YOUTUBE_READONLY = - "https://www.googleapis.com/auth/youtube.readonly"; - /** Manage your YouTube videos. */ - const YOUTUBE_UPLOAD = - "https://www.googleapis.com/auth/youtube.upload"; - /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = - "https://www.googleapis.com/auth/youtubepartner"; - /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ - const YOUTUBEPARTNER_CHANNEL_AUDIT = - "https://www.googleapis.com/auth/youtubepartner-channel-audit"; - - public $activities; - public $captions; - public $channelBanners; - public $channelSections; - public $channels; - public $commentThreads; - public $comments; - public $fanFundingEvents; - public $guideCategories; - public $i18nLanguages; - public $i18nRegions; - public $liveBroadcasts; - public $liveChatBans; - public $liveChatMessages; - public $liveChatModerators; - public $liveStreams; - public $playlistItems; - public $playlists; - public $search; - public $sponsors; - public $subscriptions; - public $thumbnails; - public $videoAbuseReportReasons; - public $videoCategories; - public $videos; - public $watermarks; - - - /** - * Constructs the internal representation of the YouTube service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'youtube/v3/'; - $this->version = 'v3'; - $this->serviceName = 'youtube'; - - $this->activities = new Google_Service_YouTube_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'home' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->captions = new Google_Service_YouTube_Captions_Resource( - $this, - $this->serviceName, - 'captions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'captions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'download' => array( - 'path' => 'captions/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tfmt' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tlang' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'captions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'captions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'captions', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOf' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sync' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( - $this, - $this->serviceName, - 'channelBanners', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'channelBanners/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( - $this, - $this->serviceName, - 'channelSections', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'channelSections', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'channelSections', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'channelSections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channelSections', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_YouTube_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'channels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forUsername' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'managedByMe' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( - $this, - $this->serviceName, - 'commentThreads', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'allThreadsRelatedToChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'commentThreads', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_YouTube_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'comments', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'textFormat' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'markAsSpam' => array( - 'path' => 'comments/markAsSpam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setModerationStatus' => array( - 'path' => 'comments/setModerationStatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'moderationStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'banAuthor' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'comments', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->fanFundingEvents = new Google_Service_YouTube_FanFundingEvents_Resource( - $this, - $this->serviceName, - 'fanFundingEvents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'fanFundingEvents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( - $this, - $this->serviceName, - 'guideCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'guideCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( - $this, - $this->serviceName, - 'i18nLanguages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nLanguages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( - $this, - $this->serviceName, - 'i18nRegions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nRegions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( - $this, - $this->serviceName, - 'liveBroadcasts', - array( - 'methods' => array( - 'bind' => array( - 'path' => 'liveBroadcasts/bind', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'control' => array( - 'path' => 'liveBroadcasts/control', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'displaySlate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'offsetTimeMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'walltime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'broadcastType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'transition' => array( - 'path' => 'liveBroadcasts/transition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveChatBans = new Google_Service_YouTube_LiveChatBans_Resource( - $this, - $this->serviceName, - 'liveChatBans', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveChat/bans', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'liveChat/bans', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->liveChatMessages = new Google_Service_YouTube_LiveChatMessages_Resource( - $this, - $this->serviceName, - 'liveChatMessages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveChat/messages', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'liveChat/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'liveChat/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'liveChatId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'profileImageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->liveChatModerators = new Google_Service_YouTube_LiveChatModerators_Resource( - $this, - $this->serviceName, - 'liveChatModerators', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveChat/moderators', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'liveChat/moderators', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'liveChat/moderators', - 'httpMethod' => 'GET', - 'parameters' => array( - 'liveChatId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( - $this, - $this->serviceName, - 'liveStreams', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( - $this, - $this->serviceName, - 'playlistItems', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'playlistId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->playlists = new Google_Service_YouTube_Playlists_Resource( - $this, - $this->serviceName, - 'playlists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlists', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'playlists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->search = new Google_Service_YouTube_Search_Resource( - $this, - $this->serviceName, - 'search', - array( - 'methods' => array( - 'list' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'eventType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forContentOwner' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'forDeveloper' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'forMine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locationRadius' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relatedToVideoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relevanceLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safeSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'topicId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCaption' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDefinition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDimension' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDuration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoEmbeddable' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoLicense' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoSyndicated' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoType' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sponsors = new Google_Service_YouTube_Sponsors_Resource( - $this, - $this->serviceName, - 'sponsors', - array( - 'methods' => array( - 'list' => array( - 'path' => 'sponsors', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( - $this, - $this->serviceName, - 'thumbnails', - array( - 'methods' => array( - 'set' => array( - 'path' => 'thumbnails/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( - $this, - $this->serviceName, - 'videoAbuseReportReasons', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoAbuseReportReasons', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( - $this, - $this->serviceName, - 'videoCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videos = new Google_Service_YouTube_Videos_Resource( - $this, - $this->serviceName, - 'videos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'videos', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getRating' => array( - 'path' => 'videos/getRating', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'videos', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'autoLevels' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'notifySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stabilize' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'videos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'chart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'myRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'videos/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reportAbuse' => array( - 'path' => 'videos/reportAbuse', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'videos', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( - $this, - $this->serviceName, - 'watermarks', - array( - 'methods' => array( - 'set' => array( - 'path' => 'watermarks/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'unset' => array( - 'path' => 'watermarks/unset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "activities" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.) - * - * Note: Even though an activity resource can contain information about actions - * like a user rating a video or marking a video as a favorite, you need to use - * other API methods to generate those activity resources. For example, you - * would use the API's videos.rate() method to rate a video and the - * playlistItems.insert() method to mark a video as a favorite. - * (activities.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Activity - */ - public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); - } - - /** - * Returns a list of channel activity events that match the request criteria. - * For example, you can retrieve events associated with a particular channel, - * events associated with the user's subscriptions and Google+ friends, or the - * YouTube home page feed, which is customized for each user. - * (activities.listActivities) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more activity resource properties that the API response will include. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in an - * 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 bool home Set this parameter's value to true to retrieve the - * activity feed that displays on the YouTube home page for the currently - * authenticated user. - * @opt_param string 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 retrieve a feed of - * the authenticated user's activities. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string 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. - * @opt_param string regionCode The regionCode parameter instructs the API to - * return results for the specified country. The parameter value is an ISO - * 3166-1 alpha-2 country code. YouTube uses this value when the authorized - * user's previous activity on YouTube does not provide enough information to - * generate the activity feed. - * @return Google_Service_YouTube_ActivityListResponse - */ - public function listActivities($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); - } -} - -/** - * The "captions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $captions = $youtubeService->captions; - * - */ -class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource -{ - - /** - * Deletes a specified caption track. (captions.delete) - * - * @param string $id The id parameter identifies the caption track that is being - * deleted. The value is a caption track ID as identified by the id property in - * a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Downloads a caption track. The caption track is returned in its original - * format unless the request specifies a value for the tfmt parameter and in its - * original language unless the request specifies a value for the tlang - * parameter. (captions.download) - * - * @param string $id The id parameter identifies the caption track that is being - * retrieved. The value is a caption track ID as identified by the id property - * in a caption resource. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param string tfmt The tfmt parameter specifies that the caption track - * should be returned in a specific format. If the parameter is not included in - * the request, the track is returned in its original format. - * @opt_param string tlang The tlang parameter specifies that the API response - * should return a translation of the specified caption track. The parameter - * value is an ISO 639-1 two-letter language code that identifies the desired - * caption language. The translation is generated by using machine translation, - * such as Google Translate. - */ - public function download($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('download', array($params)); - } - - /** - * Uploads a caption track. (captions.insert) - * - * @param string $part The part parameter specifies the caption resource parts - * that the API response will include. Set the parameter value to snippet. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param bool sync The sync parameter indicates whether YouTube should - * automatically synchronize the caption file with the audio track of the video. - * If you set the value to true, YouTube will disregard any time codes that are - * in the uploaded caption file and generate new time codes for the captions. - * - * You should set the sync parameter to true if you are uploading a transcript, - * which has no time codes, or if you suspect the time codes in your file are - * incorrect and want YouTube to try to fix them. - * @return Google_Service_YouTube_Caption - */ - public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); - } - - /** - * Returns a list of caption tracks that are associated with a specified video. - * Note that the API response does not contain the actual captions and that the - * captions.download method provides the ability to retrieve a caption track. - * (captions.listCaptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more caption resource parts that the API response will include. The - * part names that you can include in the parameter value are id and snippet. - * @param string $videoId The videoId parameter specifies the YouTube video ID - * of the video for which the API should return caption tracks. - * @param array $optParams Optional parameters. - * - * @opt_param string id The id parameter specifies a comma-separated list of IDs - * that identify the caption resources that should be retrieved. Each ID must - * identify a caption track associated with the specified video. - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is on behalf of. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_CaptionListResponse - */ - public function listCaptions($part, $videoId, $optParams = array()) - { - $params = array('part' => $part, 'videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); - } - - /** - * Updates a caption track. When updating a caption track, you can change the - * track's draft status, upload a new caption file for the track, or both. - * (captions.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. Set the property value to - * snippet if you are updating the track's draft status. Otherwise, set the - * property value to id. - * @param Google_Caption $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the - * request is be on behalf of - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @opt_param bool sync Note: The API server only processes the parameter value - * if the request contains an updated caption file. - * - * The sync parameter indicates whether YouTube should automatically synchronize - * the caption file with the audio track of the video. If you set the value to - * true, YouTube will automatically synchronize the caption track with the audio - * track. - * @return Google_Service_YouTube_Caption - */ - public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Caption"); - } -} - -/** - * The "channelBanners" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelBanners = $youtubeService->channelBanners; - * - */ -class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource -{ - - /** - * Uploads a channel banner image to YouTube. This method represents the first - * two steps in a three-step process to update the banner image for a channel: - * - * - Call the channelBanners.insert method to upload the binary image data to - * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 - * pixels. - Extract the url property's value from the response that the API - * returns for step 1. - Call the channels.update method to update the channel's - * branding settings. Set the brandingSettings.image.bannerExternalUrl - * property's value to the URL obtained in step 2. (channelBanners.insert) - * - * @param Google_ChannelBannerResource $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelBannerResource - */ - public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); - } -} - -/** - * The "channelSections" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $channelSections = $youtubeService->channelSections; - * - */ -class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource -{ - - /** - * Deletes a channelSection. (channelSections.delete) - * - * @param string $id The id parameter specifies the YouTube channelSection ID - * for the resource that is being deleted. In a channelSection resource, the id - * property specifies the YouTube channelSection ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a channelSection for the authenticated user's channel. - * (channelSections.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_ChannelSection - */ - public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); - } - - /** - * Returns channelSection resources that match the API request criteria. - * (channelSections.listChannelSections) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channelSection resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, and contentDetails. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * channelSection resource, the snippet property contains other properties, such - * as a display title for the channelSection. If you set part=snippet, the API - * response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string channelId The channelId parameter specifies a YouTube - * channel ID. The API will only return that channel's channelSections. - * @opt_param string hl The hl parameter indicates that the snippet.localized - * property values in the returned channelSection resources should be in the - * specified language if localized values for that language are available. For - * example, if the API request specifies hl=de, the snippet.localized properties - * in the API response will contain German titles if German titles are - * available. Channel owners can provide localized channel section titles using - * either the channelSections.insert or channelSections.update method. - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In - * a channelSection resource, the id property specifies the YouTube - * channelSection ID. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSectionListResponse - */ - public function listChannelSections($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); - } - - /** - * Update a channelSection. (channelSections.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); - } -} - -/** - * The "channels" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listChannels) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more channel resource properties that the API response will include. - * - * 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 forUsername The forUsername parameter specifies a YouTube - * username, thereby requesting the channel associated with that username. - * @opt_param string hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the brandingSettings - * part. - * @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 Note: This parameter is intended exclusively for - * YouTube content partners. - * - * 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 bool mySubscribers Use the subscriptions.list method and its - * mySubscribers parameter to retrieve a list of subscribers to the - * authenticated user's channel. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string 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); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); - } - - /** - * Updates a channel's metadata. Note that this method currently only supports - * updates to the channel resource's brandingSettings and invideoPromotion - * objects and their child properties. (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 API currently only allows the parameter value to be set to either - * brandingSettings or invideoPromotion. (You cannot update both of those parts - * with a single request.) - * - * Note that this method overrides the existing values for all of the mutable - * properties that are contained in any parts that the parameter value - * specifies. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. - * @return Google_Service_YouTube_Channel - */ - public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Channel"); - } -} - -/** - * The "commentThreads" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $commentThreads = $youtubeService->commentThreads; - * - */ -class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource -{ - - /** - * Creates a new top-level comment. To add a reply to an existing comment, use - * the comments.insert method instead. (commentThreads.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_CommentThread - */ - public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); - } - - /** - * Returns a list of comment threads that match the API request parameters. - * (commentThreads.listCommentThreads) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more commentThread resource properties that the API response will - * include. - * @param array $optParams Optional parameters. - * - * @opt_param string allThreadsRelatedToChannelId The - * allThreadsRelatedToChannelId parameter instructs the API to return all - * comment threads associated with the specified channel. The response can - * include comments about the channel or about the channel's videos. - * @opt_param string channelId The channelId parameter instructs the API to - * return comment threads containing comments about the specified channel. (The - * response will not include comments left on videos that the channel uploaded.) - * @opt_param string id The id parameter specifies a comma-separated list of - * comment thread IDs for the resources that should be retrieved. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string moderationStatus Set this parameter to limit the returned - * comment threads to a particular moderation state. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string order The order parameter specifies the order in which the - * API response should list comment threads. Valid values are: - time - Comment - * threads are ordered by time. This is the default behavior. - relevance - - * Comment threads are ordered by relevance.Note: This parameter is not - * supported for use in conjunction with the id parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string searchTerms The searchTerms parameter instructs the API to - * limit the API response to only contain comments that contain the specified - * search terms. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string textFormat Set this parameter's value to html or plainText - * to instruct the API to return the comments left by users in html formatted or - * in plain text. - * @opt_param string videoId The videoId parameter instructs the API to return - * comment threads associated with the specified video ID. - * @return Google_Service_YouTube_CommentThreadListResponse - */ - public function listCommentThreads($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); - } - - /** - * Modifies the top-level comment in a comment thread. (commentThreads.update) - * - * @param string $part The part parameter specifies a comma-separated list of - * commentThread resource properties that the API response will include. You - * must at least include the snippet part in the parameter value since that part - * contains all of the properties that the API request can update. - * @param Google_CommentThread $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_CommentThread - */ - public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); - } -} - -/** - * The "comments" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $comments = $youtubeService->comments; - * - */ -class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource -{ - - /** - * Deletes a comment. (comments.delete) - * - * @param string $id The id parameter specifies the comment 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); - return $this->call('delete', array($params)); - } - - /** - * Creates a reply to an existing comment. Note: To create a top-level comment, - * use the commentThreads.insert method. (comments.insert) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. Set the parameter value to snippet. The snippet part - * has a quota cost of 2 units. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); - } - - /** - * Returns a list of comments that match the API request parameters. - * (comments.listComments) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more comment resource properties that the API response will include. - * @param array $optParams Optional parameters. - * - * @opt_param string id The id parameter specifies a comma-separated list of - * comment IDs for the resources that are being retrieved. In a comment - * resource, the id property specifies the comment's ID. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identifies the next page of the result that can be - * retrieved. - * - * Note: This parameter is not supported for use in conjunction with the id - * parameter. - * @opt_param string parentId The parentId parameter specifies the ID of the - * comment for which replies should be retrieved. - * - * Note: YouTube currently supports replies only for top-level comments. - * However, replies to replies may be supported in the future. - * @opt_param string textFormat This parameter indicates whether the API should - * return comments formatted as HTML or as plain text. - * @return Google_Service_YouTube_CommentListResponse - */ - public function listComments($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); - } - - /** - * Expresses the caller's opinion that one or more comments should be flagged as - * spam. (comments.markAsSpam) - * - * @param string $id The id parameter specifies a comma-separated list of IDs of - * comments that the caller believes should be classified as spam. - * @param array $optParams Optional parameters. - */ - public function markAsSpam($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params)); - } - - /** - * Sets the moderation status of one or more comments. The API request must be - * authorized by the owner of the channel or video associated with the comments. - * (comments.setModerationStatus) - * - * @param string $id The id parameter specifies a comma-separated list of IDs - * that identify the comments for which you are updating the moderation status. - * @param string $moderationStatus Identifies the new moderation status of the - * specified comments. - * @param array $optParams Optional parameters. - * - * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you - * want to automatically reject any additional comments written by the comment's - * author. Set the parameter value to true to ban the author. - * - * Note: This parameter is only valid if the moderationStatus parameter is also - * set to rejected. - */ - public function setModerationStatus($id, $moderationStatus, $optParams = array()) - { - $params = array('id' => $id, 'moderationStatus' => $moderationStatus); - $params = array_merge($params, $optParams); - return $this->call('setModerationStatus', array($params)); - } - - /** - * Modifies a comment. (comments.update) - * - * @param string $part The part parameter identifies the properties that the API - * response will include. You must at least include the snippet part in the - * parameter value since that part contains all of the properties that the API - * request can update. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Comment - */ - public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Comment"); - } -} - -/** - * The "fanFundingEvents" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $fanFundingEvents = $youtubeService->fanFundingEvents; - * - */ -class Google_Service_YouTube_FanFundingEvents_Resource extends Google_Service_Resource -{ - - /** - * Lists fan funding events for a channel. - * (fanFundingEvents.listFanFundingEvents) - * - * @param string $part The part parameter specifies the fanFundingEvent 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 instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @return Google_Service_YouTube_FanFundingEventListResponse - */ - public function listFanFundingEvents($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_FanFundingEventListResponse"); - } -} - -/** - * The "guideCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listGuideCategories) - * - * @param string $part The part parameter specifies the guideCategory resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @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); - return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); - } -} - -/** - * The "i18nLanguages" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nLanguages = $youtubeService->i18nLanguages; - * - */ -class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of application languages that the YouTube website supports. - * (i18nLanguages.listI18nLanguages) - * - * @param string $part The part parameter specifies the i18nLanguage resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nLanguageListResponse - */ - public function listI18nLanguages($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); - } -} - -/** - * The "i18nRegions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $i18nRegions = $youtubeService->i18nRegions; - * - */ -class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of content regions that the YouTube website supports. - * (i18nRegions.listI18nRegions) - * - * @param string $part The part parameter specifies the i18nRegion resource - * properties that the API response will include. Set the parameter value to - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter specifies the language that should be - * used for text values in the API response. - * @return Google_Service_YouTube_I18nRegionListResponse - */ - public function listI18nRegions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); - } -} - -/** - * The "liveBroadcasts" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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, - * though a video stream may be bound to more than one broadcast. - * (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 onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string streamId The streamId parameter specifies the unique ID of - * the video stream that is being bound to a broadcast. If this parameter is - * omitted, the API will remove any existing binding between the broadcast and a - * video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Controls the settings for a slate that can be displayed in the broadcast - * stream. (liveBroadcasts.control) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * that uniquely identifies the broadcast in which the slate is being updated. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param bool displaySlate The displaySlate parameter specifies whether the - * slate is being enabled or disabled. - * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a - * positive time offset when the specified slate change will occur. The value is - * measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. - * Even though it is specified in milliseconds, the value is actually an - * approximation, and YouTube completes the requested action as closely as - * possible to that time. - * - * If you do not specify a value for this parameter, then YouTube performs the - * action as soon as possible. See the Getting started guide for more details. - * - * Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string walltime The walltime parameter specifies the wall clock - * time at which the specified slate change will occur. The value is specified - * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function control($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Deletes a broadcast. (liveBroadcasts.delete) - * - * @param string $id The id parameter specifies the YouTube live broadcast ID - * for the resource that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a broadcast. (liveBroadcasts.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Returns a list of YouTube broadcasts that match the API request parameters. - * (liveBroadcasts.listLiveBroadcasts) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string broadcastStatus The broadcastStatus parameter filters the - * API response to only include broadcasts with the specified status. - * @opt_param string broadcastType The broadcastType parameter filters the API - * response to only include broadcasts with the specified type. This is only - * compatible with the mine filter for now. - * @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. - * @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 onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string 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_LiveBroadcastListResponse - */ - public function listLiveBroadcasts($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); - } - - /** - * Changes the status of a YouTube live broadcast and initiates any processes - * associated with the new status. For example, when you transition a - * broadcast's status to testing, YouTube starts to transmit video to that - * broadcast's monitor stream. Before calling this method, you should confirm - * that the value of the status.streamStatus property for the stream bound to - * your broadcast is active. (liveBroadcasts.transition) - * - * @param string $broadcastStatus The broadcastStatus parameter identifies the - * state to which the broadcast is changing. Note that to transition a broadcast - * to either the testing or live state, the status.streamStatus must be active - * for the stream that the broadcast is bound to. - * @param string $id The id parameter specifies the unique ID of the broadcast - * that is transitioning to another status. - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveBroadcast resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function transition($broadcastStatus, $id, $part, $optParams = array()) - { - $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - - /** - * Updates a broadcast. For example, you could modify the broadcast settings - * defined in the liveBroadcast resource's contentDetails object. - * (liveBroadcasts.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, contentDetails, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a broadcast's privacy status is defined in the status - * part. As such, if your request is updating a private or unlisted broadcast, - * and the request's part parameter value includes the status part, the - * broadcast's privacy setting will be updated to whatever value the request - * body specifies. If the request body does not specify a value, the existing - * privacy setting will be removed and the broadcast will revert to the default - * privacy setting. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); - } -} - -/** - * The "liveChatBans" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $liveChatBans = $youtubeService->liveChatBans; - * - */ -class Google_Service_YouTube_LiveChatBans_Resource extends Google_Service_Resource -{ - - /** - * Removes a chat ban. (liveChatBans.delete) - * - * @param string $id The id parameter identifies the chat ban to remove. The - * value uniquely identifies both the ban and the chat. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a new ban to the chat. (liveChatBans.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 returns. Set the parameter value to snippet. - * @param Google_LiveChatBan $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_LiveChatBan - */ - public function insert($part, Google_Service_YouTube_LiveChatBan $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatBan"); - } -} - -/** - * The "liveChatMessages" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $liveChatMessages = $youtubeService->liveChatMessages; - * - */ -class Google_Service_YouTube_LiveChatMessages_Resource extends Google_Service_Resource -{ - - /** - * Deletes a chat message. (liveChatMessages.delete) - * - * @param string $id The id parameter specifies the YouTube chat message ID of - * 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); - return $this->call('delete', array($params)); - } - - /** - * Adds a message to a live chat. (liveChatMessages.insert) - * - * @param string $part The part parameter serves two purposes. It identifies the - * properties that the write operation will set as well as the properties that - * the API response will include. Set the parameter value to snippet. - * @param Google_LiveChatMessage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_LiveChatMessage - */ - public function insert($part, Google_Service_YouTube_LiveChatMessage $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatMessage"); - } - - /** - * Lists live chat messages for a specific chat. - * (liveChatMessages.listLiveChatMessages) - * - * @param string $liveChatId The liveChatId parameter specifies the ID of the - * chat whose messages will be returned. - * @param string $part The part parameter specifies the liveChatComment 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 instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of messages that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identify other pages that could be retrieved. - * @opt_param string profileImageSize The profileImageSize parameter specifies - * the size of the user profile pictures that should be returned in the result - * set. Default: 88. - * @return Google_Service_YouTube_LiveChatMessageListResponse - */ - public function listLiveChatMessages($liveChatId, $part, $optParams = array()) - { - $params = array('liveChatId' => $liveChatId, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveChatMessageListResponse"); - } -} - -/** - * The "liveChatModerators" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $liveChatModerators = $youtubeService->liveChatModerators; - * - */ -class Google_Service_YouTube_LiveChatModerators_Resource extends Google_Service_Resource -{ - - /** - * Removes a chat moderator. (liveChatModerators.delete) - * - * @param string $id The id parameter identifies the chat moderator to remove. - * The value uniquely identifies both the moderator and the chat. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Adds a new moderator for the chat. (liveChatModerators.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 returns. Set the parameter value to snippet. - * @param Google_LiveChatModerator $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_LiveChatModerator - */ - public function insert($part, Google_Service_YouTube_LiveChatModerator $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatModerator"); - } - - /** - * Lists moderators for a live chat. (liveChatModerators.listLiveChatModerators) - * - * @param string $liveChatId The liveChatId parameter specifies the YouTube live - * chat for which the API should return moderators. - * @param string $part The part parameter specifies the liveChatModerator - * resource parts that the API response will include. Supported values are id - * and snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @return Google_Service_YouTube_LiveChatModeratorListResponse - */ - public function listLiveChatModerators($liveChatId, $part, $optParams = array()) - { - $params = array('liveChatId' => $liveChatId, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveChatModeratorListResponse"); - } -} - -/** - * The "liveStreams" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a video stream. The stream enables you to send your video to YouTube, - * which can then broadcast the video to your audience. (liveStreams.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_LiveStream - */ - public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); - } - - /** - * Returns a list of video streams that match the API request parameters. - * (liveStreams.listLiveStreams) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more liveStream resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, cdn, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string 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. - * @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 onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string 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_LiveStreamListResponse - */ - public function listLiveStreams($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); - } - - /** - * Updates a video stream. If the properties that you want to change cannot be - * updated, then you need to create a new stream with the proper settings. - * (liveStreams.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * The part properties that you can include in the parameter value are id, - * snippet, cdn, and status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. If the request body does not specify a value for a mutable - * property, the existing value for that property will be removed. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_LiveStream - */ - public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); - } -} - -/** - * The "playlistItems" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a resource to a playlist. (playlistItems.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_PlaylistItem - */ - public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); - } - - /** - * Returns a collection of playlist items that match the API request parameters. - * You can retrieve all of the playlist items in a specified playlist or - * retrieve one or more playlist items by their unique IDs. - * (playlistItems.listPlaylistItems) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlistItem resource properties that the API response will - * include. - * - * 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 The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param 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); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); - } - - /** - * Modifies a playlist item. For example, you could update the item's position - * in the playlist. (playlistItems.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a playlist item can specify a start time and end - * time, which identify the times portion of the video that should play when - * users watch the video in the playlist. If your request is updating a playlist - * item that sets these values, and the request's part parameter value includes - * the contentDetails part, the playlist item's start and end times will be - * updated to whatever value the request body specifies. If the request body - * does not specify values, the existing start and end times will be removed and - * replaced with the default settings. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_PlaylistItem - */ - public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); - } -} - -/** - * The "playlists" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a playlist. (playlists.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @return Google_Service_YouTube_Playlist - */ - public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); - } - - /** - * Returns a collection of playlists that match the API request parameters. For - * example, you can retrieve all playlists that the authenticated user owns, or - * you can retrieve one or more playlists by their unique IDs. - * (playlists.listPlaylists) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more playlist resource properties that the API response will include. - * - * 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 hl The hl parameter should be used for filter out the - * properties that are not in the given language. Used for the snippet part. - * @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 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 playlists owned by the authenticated user. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string 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_PlaylistListResponse - */ - public function listPlaylists($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); - } - - /** - * Modifies a playlist. For example, you could change a playlist's title, - * description, or privacy status. (playlists.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that this method will override the existing values for mutable - * properties that are contained in any parts that the request body specifies. - * For example, a playlist's description is contained in the snippet part, which - * must be included in the request body. If the request does not specify a value - * for the snippet.description property, the playlist's existing description - * will be deleted. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_Playlist - */ - public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); - } -} - -/** - * The "search" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listSearch) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more search resource properties that the API response will include. - * Set the parameter value to snippet. - * @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 string eventType The eventType parameter restricts a search to - * broadcast events. If you specify a value for this parameter, you must also - * set the type parameter's value to video. - * @opt_param bool forContentOwner Note: This parameter is intended exclusively - * for YouTube content partners. - * - * The forContentOwner parameter restricts the search to only retrieve resources - * owned by the content owner specified by the onBehalfOfContentOwner parameter. - * The user must be authenticated using a CMS account linked to the specified - * content owner and onBehalfOfContentOwner must be provided. - * @opt_param bool forDeveloper The forDeveloper parameter restricts the search - * to only retrieve videos uploaded via the developer's application or website. - * The API server uses the request's authorization credentials to identify the - * developer. Therefore, a developer can restrict results to videos uploaded - * through the developer's own app or website but not to videos uploaded through - * other apps or sites. - * @opt_param bool forMine The forMine parameter restricts the search to only - * retrieve videos owned by the authenticated user. If you set this parameter to - * true, then the type parameter's value must also be set to video. - * @opt_param string location The location parameter, in conjunction with the - * locationRadius parameter, defines a circular geographic area and also - * restricts a search to videos that specify, in their metadata, a geographic - * location that falls within that area. The parameter value is a string that - * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). - * - * - The location parameter value identifies the point at the center of the - * area. - The locationRadius parameter specifies the maximum distance that the - * location associated with a video can be from that point for the video to - * still be included in the search results.The API returns an error if your - * request specifies a value for the location parameter but does not also - * specify a value for the locationRadius parameter. - * @opt_param string locationRadius The locationRadius parameter, in conjunction - * with the location parameter, defines a circular geographic area. - * - * The parameter value must be a floating point number followed by a measurement - * unit. Valid measurement units are m, km, ft, and mi. For example, valid - * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not - * support locationRadius parameter values larger than 1000 kilometers. - * - * Note: See the definition of the location parameter for more information. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string order The order parameter specifies the method that will be - * used to order resources in the API response. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @opt_param string 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. - * - * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude - * videos or to find videos that are associated with one of several search - * terms. For example, to search for videos matching either "boating" or - * "sailing", set the q parameter value to boating|sailing. Similarly, to search - * for videos matching either "boating" or "sailing" but not "fishing", set the - * q parameter value to boating|sailing -fishing. Note that the pipe character - * must be URL-escaped when it is sent in your API request. The URL-escaped - * value for the pipe character is %7C. - * @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 relevanceLanguage The relevanceLanguage parameter instructs - * the API to return search results that are most relevant to the specified - * language. The parameter value is typically an ISO 639-1 two-letter language - * code. However, you should use the values zh-Hans for simplified Chinese and - * zh-Hant for traditional Chinese. Please note that results in other languages - * will still be returned if they are highly relevant to the search query term. - * @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. The value is a comma-separated list - * of resource types. - * @opt_param string videoCaption The videoCaption parameter indicates whether - * the API should filter video search results based on whether they have - * captions. If you specify a value for this parameter, you must also set the - * type parameter's value to video. - * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string videoDefinition The videoDefinition parameter lets you - * restrict a search to only include either high definition (HD) or standard - * definition (SD) videos. HD videos are available for playback in at least - * 720p, though higher resolutions, like 1080p, might also be available. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @opt_param string videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. If you specify a value - * for this parameter, you must also set the type parameter's value to video. - * @opt_param string videoDuration The videoDuration parameter filters video - * search results based on their duration. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to - * restrict a search to only videos that can be embedded into a webpage. If you - * specify a value for this parameter, you must also set the type parameter's - * value to video. - * @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. If you specify a value for - * this parameter, you must also set the type parameter's value to video. - * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. If - * you specify a value for this parameter, you must also set the type - * parameter's value to video. - * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. If you specify a value for this - * parameter, you must also set the type parameter's value to video. - * @return Google_Service_YouTube_SearchListResponse - */ - public function listSearch($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); - } -} - -/** - * The "sponsors" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $sponsors = $youtubeService->sponsors; - * - */ -class Google_Service_YouTube_Sponsors_Resource extends Google_Service_Resource -{ - - /** - * Lists sponsors for a channel. (sponsors.listSponsors) - * - * @param string $part The part parameter specifies the sponsor resource parts - * that the API response will include. Supported values are id and snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string filter The filter parameter specifies which channel - * sponsors to return. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @return Google_Service_YouTube_SponsorListResponse - */ - public function listSponsors($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SponsorListResponse"); - } -} - -/** - * The "subscriptions" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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); - return $this->call('delete', array($params)); - } - - /** - * Adds a subscription for the authenticated user's channel. - * (subscriptions.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Subscription - */ - public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); - } - - /** - * Returns subscription resources that match the API request criteria. - * (subscriptions.listSubscriptions) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more subscription resource properties that the API response will - * include. - * - * 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 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 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 onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param string order The order parameter specifies the method that will be - * used to sort resources in the API response. - * @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_SubscriptionListResponse - */ - public function listSubscriptions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); - } -} - -/** - * The "thumbnails" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_ThumbnailSetResponse - */ - public function set($videoId, $optParams = array()) - { - $params = array('videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); - } -} - -/** - * The "videoAbuseReportReasons" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; - * - */ -class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource -{ - - /** - * Returns a list of abuse reasons that can be used for reporting abusive - * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) - * - * @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. - * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse - */ - public function listVideoAbuseReportReasons($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); - } -} - -/** - * The "videoCategories" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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.listVideoCategories) - * - * @param string $part The part parameter specifies the videoCategory resource - * properties that the API response will include. Set the parameter value to - * 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); - return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); - } -} - -/** - * The "videos" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $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. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Retrieves the ratings that the authorized user gave to a list of specified - * videos. (videos.getRating) - * - * @param string $id The id parameter specifies a comma-separated list of the - * YouTube video ID(s) for the resource(s) for which you are retrieving rating - * data. In a video resource, the id property specifies the video's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTube_VideoGetRatingResponse - */ - public function getRating($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); - } - - /** - * Uploads a video to YouTube and optionally sets the video's metadata. - * (videos.insert) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * Note that not all parts contain properties that can be set when inserting or - * updating a video. 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 indicates whether YouTube - * should automatically enhance the video's lighting and color. - * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send a notification about the new video to users who - * subscribe to the video's channel. A parameter value of True indicates that - * subscribers will be notified of newly uploaded videos. However, a channel - * owner who is uploading many videos might prefer to set the value to False to - * avoid sending a notification about each new video to the channel's - * subscribers. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be - * used in a properly authorized request. Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - * of the channel to which a video is being added. This parameter is required - * when a request specifies a value for the onBehalfOfContentOwner parameter, - * and it can only be used in conjunction with that parameter. In addition, the - * request must be authorized using a CMS account that is linked to the content - * owner that the onBehalfOfContentOwner parameter specifies. Finally, the - * channel that the onBehalfOfContentOwnerChannel parameter value specifies must - * be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - * - * This parameter is intended for YouTube content partners that own and manage - * many different YouTube channels. It allows content owners to authenticate - * once and perform actions on behalf of the channel specified in the parameter - * value, without having to provide authentication credentials for each separate - * channel. - * @opt_param bool stabilize The stabilize parameter indicates whether YouTube - * should adjust the video to remove shaky camera motions. - * @return Google_Service_YouTube_Video - */ - public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Video"); - } - - /** - * Returns a list of videos that match the API request parameters. - * (videos.listVideos) - * - * @param string $part The part parameter specifies a comma-separated list of - * one or more video resource properties that the API response will include. - * - * 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 chart The chart parameter identifies the chart that you - * want to retrieve. - * @opt_param string hl The hl parameter instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @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 locale DEPRECATED - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string 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 Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * - * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. - * @opt_param string regionCode The regionCode parameter instructs the API to - * select a video chart available in the specified region. This parameter can - * only be used in conjunction with the chart parameter. The parameter value is - * an ISO 3166-1 alpha-2 country code. - * @opt_param string videoCategoryId The videoCategoryId parameter identifies - * the video category for which the chart should be retrieved. This parameter - * can only be used in conjunction with the chart parameter. By default, charts - * are not restricted to a particular category. - * @return Google_Service_YouTube_VideoListResponse - */ - public function listVideos($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); - } - - /** - * Add a like or dislike rating to a video or remove a rating from a video. - * (videos.rate) - * - * @param string $id The id parameter specifies the YouTube video ID of the - * video that is being rated or having its rating removed. - * @param string $rating Specifies the rating to record. - * @param array $optParams Optional parameters. - */ - public function rate($id, $rating, $optParams = array()) - { - $params = array('id' => $id, 'rating' => $rating); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params)); - } - - /** - * Report abuse for a video. (videos.reportAbuse) - * - * @param Google_VideoAbuseReport $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportAbuse', array($params)); - } - - /** - * Updates a video's metadata. (videos.update) - * - * @param string $part The part parameter serves two purposes in this operation. - * It identifies the properties that the write operation will set as well as the - * properties that the API response will include. - * - * 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 parts contain properties that can be set when inserting - * or updating a video. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values - * that you can set or modify. If the parameter value specifies a part that does - * not contain mutable values, that part will still be included in the API - * response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The actual CMS - * account that the user authenticates with must be linked to the specified - * YouTube content owner. - * @return Google_Service_YouTube_Video - */ - public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Video"); - } -} - -/** - * The "watermarks" collection of methods. - * Typical usage is: - * - * $youtubeService = new Google_Service_YouTube(...); - * $watermarks = $youtubeService->watermarks; - * - */ -class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource -{ - - /** - * Uploads a watermark image to YouTube and sets it for a channel. - * (watermarks.set) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being provided. - * @param Google_InvideoBranding $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) - { - $params = array('channelId' => $channelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params)); - } - - /** - * Deletes a channel's watermark image. (watermarks.unsetWatermarks) - * - * @param string $channelId The channelId parameter specifies the YouTube - * channel ID for which the watermark is being unset. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function unsetWatermarks($channelId, $optParams = array()) - { - $params = array('channelId' => $channelId); - $params = array_merge($params, $optParams); - return $this->call('unset', array($params)); - } -} - - - - -class Google_Service_YouTube_AccessPolicy extends Google_Collection -{ - protected $collection_key = 'exception'; - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; - protected $snippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_ActivityContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; - protected $bulletinDataType = ''; - protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; - protected $channelItemDataType = ''; - protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; - protected $commentDataType = ''; - protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; - protected $favoriteDataType = ''; - protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; - protected $likeDataType = ''; - protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; - protected $playlistItemDataType = ''; - protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; - protected $promotedItemDataType = ''; - protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; - protected $recommendationDataType = ''; - protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; - protected $socialDataType = ''; - protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; - protected $subscriptionDataType = ''; - protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; - protected $uploadDataType = ''; - - - public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) - { - $this->bulletin = $bulletin; - } - public function getBulletin() - { - return $this->bulletin; - } - public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) - { - $this->channelItem = $channelItem; - } - public function getChannelItem() - { - return $this->channelItem; - } - public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) - { - $this->comment = $comment; - } - public function getComment() - { - return $this->comment; - } - public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) - { - $this->favorite = $favorite; - } - public function getFavorite() - { - return $this->favorite; - } - public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) - { - $this->like = $like; - } - public function getLike() - { - return $this->like; - } - public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) - { - $this->playlistItem = $playlistItem; - } - public function getPlaylistItem() - { - return $this->playlistItem; - } - public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) - { - $this->promotedItem = $promotedItem; - } - public function getPromotedItem() - { - return $this->promotedItem; - } - public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) - { - $this->recommendation = $recommendation; - } - public function getRecommendation() - { - return $this->recommendation; - } - public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) - { - $this->social = $social; - } - public function getSocial() - { - return $this->social; - } - public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) - { - $this->upload = $upload; - } - public function getUpload() - { - return $this->upload; - } -} - -class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $playlistId; - public $playlistItemId; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPlaylistItemId($playlistItemId) - { - $this->playlistItemId = $playlistItemId; - } - public function getPlaylistItemId() - { - return $this->playlistItemId; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection -{ - protected $collection_key = 'impressionUrl'; - protected $internal_gapi_mappings = array( - ); - public $adTag; - public $clickTrackingUrl; - public $creativeViewUrl; - public $ctaType; - public $customCtaButtonText; - public $descriptionText; - public $destinationUrl; - public $forecastingUrl; - public $impressionUrl; - public $videoId; - - - public function setAdTag($adTag) - { - $this->adTag = $adTag; - } - public function getAdTag() - { - return $this->adTag; - } - public function setClickTrackingUrl($clickTrackingUrl) - { - $this->clickTrackingUrl = $clickTrackingUrl; - } - public function getClickTrackingUrl() - { - return $this->clickTrackingUrl; - } - public function setCreativeViewUrl($creativeViewUrl) - { - $this->creativeViewUrl = $creativeViewUrl; - } - public function getCreativeViewUrl() - { - return $this->creativeViewUrl; - } - public function setCtaType($ctaType) - { - $this->ctaType = $ctaType; - } - public function getCtaType() - { - return $this->ctaType; - } - public function setCustomCtaButtonText($customCtaButtonText) - { - $this->customCtaButtonText = $customCtaButtonText; - } - public function getCustomCtaButtonText() - { - return $this->customCtaButtonText; - } - public function setDescriptionText($descriptionText) - { - $this->descriptionText = $descriptionText; - } - public function getDescriptionText() - { - return $this->descriptionText; - } - public function setDestinationUrl($destinationUrl) - { - $this->destinationUrl = $destinationUrl; - } - public function getDestinationUrl() - { - return $this->destinationUrl; - } - public function setForecastingUrl($forecastingUrl) - { - $this->forecastingUrl = $forecastingUrl; - } - public function getForecastingUrl() - { - return $this->forecastingUrl; - } - public function setImpressionUrl($impressionUrl) - { - $this->impressionUrl = $impressionUrl; - } - public function getImpressionUrl() - { - return $this->impressionUrl; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $reason; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $seedResourceIdDataType = ''; - - - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) - { - $this->seedResourceId = $seedResourceId; - } - public function getSeedResourceId() - { - return $this->seedResourceId; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $author; - public $imageUrl; - public $referenceUrl; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - public $type; - - - public function setAuthor($author) - { - $this->author = $author; - } - public function getAuthor() - { - return $this->author; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setReferenceUrl($referenceUrl) - { - $this->referenceUrl = $referenceUrl; - } - public function getReferenceUrl() - { - return $this->referenceUrl; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $videoId; - - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ActivityListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ActivitySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $groupId; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - public function getGroupId() - { - return $this->groupId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_Caption extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CaptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Caption'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CaptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $audioTrackType; - public $failureReason; - public $isAutoSynced; - public $isCC; - public $isDraft; - public $isEasyReader; - public $isLarge; - public $language; - public $lastUpdated; - public $name; - public $status; - public $trackKind; - public $videoId; - - - public function setAudioTrackType($audioTrackType) - { - $this->audioTrackType = $audioTrackType; - } - public function getAudioTrackType() - { - return $this->audioTrackType; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setIsAutoSynced($isAutoSynced) - { - $this->isAutoSynced = $isAutoSynced; - } - public function getIsAutoSynced() - { - return $this->isAutoSynced; - } - public function setIsCC($isCC) - { - $this->isCC = $isCC; - } - public function getIsCC() - { - return $this->isCC; - } - public function setIsDraft($isDraft) - { - $this->isDraft = $isDraft; - } - public function getIsDraft() - { - return $this->isDraft; - } - public function setIsEasyReader($isEasyReader) - { - $this->isEasyReader = $isEasyReader; - } - public function getIsEasyReader() - { - return $this->isEasyReader; - } - public function setIsLarge($isLarge) - { - $this->isLarge = $isLarge; - } - public function getIsLarge() - { - return $this->isLarge; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setLastUpdated($lastUpdated) - { - $this->lastUpdated = $lastUpdated; - } - public function getLastUpdated() - { - return $this->lastUpdated; - } - 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 setTrackKind($trackKind) - { - $this->trackKind = $trackKind; - } - public function getTrackKind() - { - return $this->trackKind; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_CdnSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $format; - protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; - protected $ingestionInfoDataType = ''; - public $ingestionType; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) - { - $this->ingestionInfo = $ingestionInfo; - } - public function getIngestionInfo() - { - return $this->ingestionInfo; - } - public function setIngestionType($ingestionType) - { - $this->ingestionType = $ingestionType; - } - public function getIngestionType() - { - return $this->ingestionType; - } -} - -class Google_Service_YouTube_Channel extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; - protected $auditDetailsDataType = ''; - protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; - protected $brandingSettingsDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; - protected $contentDetailsDataType = ''; - protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; - protected $contentOwnerDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - public $id; - protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; - protected $invideoPromotionDataType = ''; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_ChannelStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) - { - $this->auditDetails = $auditDetails; - } - public function getAuditDetails() - { - return $this->auditDetails; - } - public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) - { - $this->brandingSettings = $brandingSettings; - } - public function getBrandingSettings() - { - return $this->brandingSettings; - } - public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) - { - $this->contentOwnerDetails = $contentOwnerDetails; - } - public function getContentOwnerDetails() - { - return $this->contentOwnerDetails; - } - public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - public function getConversionPings() - { - return $this->conversionPings; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) - { - $this->invideoPromotion = $invideoPromotion; - } - public function getInvideoPromotion() - { - return $this->invideoPromotion; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_ChannelStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_ChannelAuditDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $communityGuidelinesGoodStanding; - public $contentIdClaimsGoodStanding; - public $copyrightStrikesGoodStanding; - public $overallGoodStanding; - - - public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) - { - $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; - } - public function getCommunityGuidelinesGoodStanding() - { - return $this->communityGuidelinesGoodStanding; - } - public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) - { - $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; - } - public function getContentIdClaimsGoodStanding() - { - return $this->contentIdClaimsGoodStanding; - } - public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) - { - $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; - } - public function getCopyrightStrikesGoodStanding() - { - return $this->copyrightStrikesGoodStanding; - } - public function setOverallGoodStanding($overallGoodStanding) - { - $this->overallGoodStanding = $overallGoodStanding; - } - public function getOverallGoodStanding() - { - return $this->overallGoodStanding; - } -} - -class Google_Service_YouTube_ChannelBannerResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $kind; - public $url; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUrl($url) - { - $this->url = $url; - } - public function getUrl() - { - return $this->url; - } -} - -class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection -{ - protected $collection_key = 'hints'; - protected $internal_gapi_mappings = array( - ); - protected $channelType = 'Google_Service_YouTube_ChannelSettings'; - protected $channelDataType = ''; - protected $hintsType = 'Google_Service_YouTube_PropertyValue'; - protected $hintsDataType = 'array'; - protected $imageType = 'Google_Service_YouTube_ImageSettings'; - protected $imageDataType = ''; - protected $watchType = 'Google_Service_YouTube_WatchSettings'; - protected $watchDataType = ''; - - - public function setChannel(Google_Service_YouTube_ChannelSettings $channel) - { - $this->channel = $channel; - } - public function getChannel() - { - return $this->channel; - } - public function setHints($hints) - { - $this->hints = $hints; - } - public function getHints() - { - return $this->hints; - } - public function setImage(Google_Service_YouTube_ImageSettings $image) - { - $this->image = $image; - } - public function getImage() - { - return $this->image; - } - public function setWatch(Google_Service_YouTube_WatchSettings $watch) - { - $this->watch = $watch; - } - public function getWatch() - { - return $this->watch; - } -} - -class Google_Service_YouTube_ChannelContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $googlePlusUserId; - protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; - protected $relatedPlaylistsDataType = ''; - - - public function setGooglePlusUserId($googlePlusUserId) - { - $this->googlePlusUserId = $googlePlusUserId; - } - public function getGooglePlusUserId() - { - return $this->googlePlusUserId; - } - public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) - { - $this->relatedPlaylists = $relatedPlaylists; - } - public function getRelatedPlaylists() - { - return $this->relatedPlaylists; - } -} - -class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $favorites; - public $likes; - public $uploads; - public $watchHistory; - public $watchLater; - - - public function setFavorites($favorites) - { - $this->favorites = $favorites; - } - public function getFavorites() - { - return $this->favorites; - } - public function setLikes($likes) - { - $this->likes = $likes; - } - public function getLikes() - { - return $this->likes; - } - public function setUploads($uploads) - { - $this->uploads = $uploads; - } - public function getUploads() - { - return $this->uploads; - } - public function setWatchHistory($watchHistory) - { - $this->watchHistory = $watchHistory; - } - public function getWatchHistory() - { - return $this->watchHistory; - } - public function setWatchLater($watchLater) - { - $this->watchLater = $watchLater; - } - public function getWatchLater() - { - return $this->watchLater; - } -} - -class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $contentOwner; - public $timeLinked; - - - public function setContentOwner($contentOwner) - { - $this->contentOwner = $contentOwner; - } - public function getContentOwner() - { - return $this->contentOwner; - } - public function setTimeLinked($timeLinked) - { - $this->timeLinked = $timeLinked; - } - public function getTimeLinked() - { - return $this->timeLinked; - } -} - -class Google_Service_YouTube_ChannelConversionPing extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $collection_key = 'pings'; - protected $internal_gapi_mappings = array( - ); - protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; - protected $pingsDataType = 'array'; - - - public function setPings($pings) - { - $this->pings = $pings; - } - public function getPings() - { - return $this->pings; - } -} - -class Google_Service_YouTube_ChannelListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Channel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelProfileDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelUrl; - public $displayName; - public $profileImageUrl; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelUrl($channelUrl) - { - $this->channelUrl = $channelUrl; - } - public function getChannelUrl() - { - return $this->channelUrl; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setProfileImageUrl($profileImageUrl) - { - $this->profileImageUrl = $profileImageUrl; - } - public function getProfileImageUrl() - { - return $this->profileImageUrl; - } -} - -class Google_Service_YouTube_ChannelSection extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizationsDataType = 'map'; - protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; - protected $snippetDataType = ''; - protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; - protected $targetingDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) - { - $this->targeting = $targeting; - } - public function getTargeting() - { - return $this->targeting; - } -} - -class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection -{ - protected $collection_key = 'playlists'; - protected $internal_gapi_mappings = array( - ); - public $channels; - public $playlists; - - - public function setChannels($channels) - { - $this->channels = $channels; - } - public function getChannels() - { - return $this->channels; - } - public function setPlaylists($playlists) - { - $this->playlists = $playlists; - } - public function getPlaylists() - { - return $this->playlists; - } -} - -class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ChannelSection'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $title; - - - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $defaultLanguage; - protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; - protected $localizedDataType = ''; - public $position; - public $style; - public $title; - public $type; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setStyle($style) - { - $this->style = $style; - } - public function getStyle() - { - return $this->style; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection -{ - protected $collection_key = 'regions'; - protected $internal_gapi_mappings = array( - ); - public $countries; - public $languages; - public $regions; - - - public function setCountries($countries) - { - $this->countries = $countries; - } - public function getCountries() - { - return $this->countries; - } - public function setLanguages($languages) - { - $this->languages = $languages; - } - public function getLanguages() - { - return $this->languages; - } - public function setRegions($regions) - { - $this->regions = $regions; - } - public function getRegions() - { - return $this->regions; - } -} - -class Google_Service_YouTube_ChannelSettings extends Google_Collection -{ - protected $collection_key = 'featuredChannelsUrls'; - protected $internal_gapi_mappings = array( - ); - public $country; - public $defaultLanguage; - public $defaultTab; - public $description; - public $featuredChannelsTitle; - public $featuredChannelsUrls; - public $keywords; - public $moderateComments; - public $profileColor; - public $showBrowseView; - public $showRelatedChannels; - public $title; - public $trackingAnalyticsAccountId; - public $unsubscribedTrailer; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDefaultTab($defaultTab) - { - $this->defaultTab = $defaultTab; - } - public function getDefaultTab() - { - return $this->defaultTab; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setFeaturedChannelsTitle($featuredChannelsTitle) - { - $this->featuredChannelsTitle = $featuredChannelsTitle; - } - public function getFeaturedChannelsTitle() - { - return $this->featuredChannelsTitle; - } - public function setFeaturedChannelsUrls($featuredChannelsUrls) - { - $this->featuredChannelsUrls = $featuredChannelsUrls; - } - public function getFeaturedChannelsUrls() - { - return $this->featuredChannelsUrls; - } - public function setKeywords($keywords) - { - $this->keywords = $keywords; - } - public function getKeywords() - { - return $this->keywords; - } - public function setModerateComments($moderateComments) - { - $this->moderateComments = $moderateComments; - } - public function getModerateComments() - { - return $this->moderateComments; - } - public function setProfileColor($profileColor) - { - $this->profileColor = $profileColor; - } - public function getProfileColor() - { - return $this->profileColor; - } - public function setShowBrowseView($showBrowseView) - { - $this->showBrowseView = $showBrowseView; - } - public function getShowBrowseView() - { - return $this->showBrowseView; - } - public function setShowRelatedChannels($showRelatedChannels) - { - $this->showRelatedChannels = $showRelatedChannels; - } - public function getShowRelatedChannels() - { - return $this->showRelatedChannels; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) - { - $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; - } - public function getTrackingAnalyticsAccountId() - { - return $this->trackingAnalyticsAccountId; - } - public function setUnsubscribedTrailer($unsubscribedTrailer) - { - $this->unsubscribedTrailer = $unsubscribedTrailer; - } - public function getUnsubscribedTrailer() - { - return $this->unsubscribedTrailer; - } -} - -class Google_Service_YouTube_ChannelSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $country; - public $customUrl; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCountry($country) - { - $this->country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setCustomUrl($customUrl) - { - $this->customUrl = $customUrl; - } - public function getCustomUrl() - { - return $this->customUrl; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $commentCount; - public $hiddenSubscriberCount; - public $subscriberCount; - public $videoCount; - public $viewCount; - - - public function setCommentCount($commentCount) - { - $this->commentCount = $commentCount; - } - public function getCommentCount() - { - return $this->commentCount; - } - public function setHiddenSubscriberCount($hiddenSubscriberCount) - { - $this->hiddenSubscriberCount = $hiddenSubscriberCount; - } - public function getHiddenSubscriberCount() - { - return $this->hiddenSubscriberCount; - } - public function setSubscriberCount($subscriberCount) - { - $this->subscriberCount = $subscriberCount; - } - public function getSubscriberCount() - { - return $this->subscriberCount; - } - public function setVideoCount($videoCount) - { - $this->videoCount = $videoCount; - } - public function getVideoCount() - { - return $this->videoCount; - } - public function setViewCount($viewCount) - { - $this->viewCount = $viewCount; - } - public function getViewCount() - { - return $this->viewCount; - } -} - -class Google_Service_YouTube_ChannelStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $isLinked; - public $longUploadsStatus; - public $privacyStatus; - - - public function setIsLinked($isLinked) - { - $this->isLinked = $isLinked; - } - public function getIsLinked() - { - return $this->isLinked; - } - public function setLongUploadsStatus($longUploadsStatus) - { - $this->longUploadsStatus = $longUploadsStatus; - } - public function getLongUploadsStatus() - { - return $this->longUploadsStatus; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $topicIds; - - - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_Comment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $authorChannelId; - public $authorChannelUrl; - public $authorDisplayName; - public $authorGoogleplusProfileUrl; - public $authorProfileImageUrl; - public $canRate; - public $channelId; - public $likeCount; - public $moderationStatus; - public $parentId; - public $publishedAt; - public $textDisplay; - public $textOriginal; - public $updatedAt; - public $videoId; - public $viewerRating; - - - public function setAuthorChannelId($authorChannelId) - { - $this->authorChannelId = $authorChannelId; - } - public function getAuthorChannelId() - { - return $this->authorChannelId; - } - public function setAuthorChannelUrl($authorChannelUrl) - { - $this->authorChannelUrl = $authorChannelUrl; - } - public function getAuthorChannelUrl() - { - return $this->authorChannelUrl; - } - public function setAuthorDisplayName($authorDisplayName) - { - $this->authorDisplayName = $authorDisplayName; - } - public function getAuthorDisplayName() - { - return $this->authorDisplayName; - } - public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) - { - $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; - } - public function getAuthorGoogleplusProfileUrl() - { - return $this->authorGoogleplusProfileUrl; - } - public function setAuthorProfileImageUrl($authorProfileImageUrl) - { - $this->authorProfileImageUrl = $authorProfileImageUrl; - } - public function getAuthorProfileImageUrl() - { - return $this->authorProfileImageUrl; - } - public function setCanRate($canRate) - { - $this->canRate = $canRate; - } - public function getCanRate() - { - return $this->canRate; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setLikeCount($likeCount) - { - $this->likeCount = $likeCount; - } - public function getLikeCount() - { - return $this->likeCount; - } - public function setModerationStatus($moderationStatus) - { - $this->moderationStatus = $moderationStatus; - } - public function getModerationStatus() - { - return $this->moderationStatus; - } - public function setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTextDisplay($textDisplay) - { - $this->textDisplay = $textDisplay; - } - public function getTextDisplay() - { - return $this->textDisplay; - } - public function setTextOriginal($textOriginal) - { - $this->textOriginal = $textOriginal; - } - public function getTextOriginal() - { - return $this->textOriginal; - } - public function setUpdatedAt($updatedAt) - { - $this->updatedAt = $updatedAt; - } - public function getUpdatedAt() - { - return $this->updatedAt; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setViewerRating($viewerRating) - { - $this->viewerRating = $viewerRating; - } - public function getViewerRating() - { - return $this->viewerRating; - } -} - -class Google_Service_YouTube_CommentThread extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; - protected $repliesDataType = ''; - protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) - { - $this->replies = $replies; - } - public function getReplies() - { - return $this->replies; - } - public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_CommentThread'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_CommentThreadReplies extends Google_Collection -{ - protected $collection_key = 'comments'; - protected $internal_gapi_mappings = array( - ); - protected $commentsType = 'Google_Service_YouTube_Comment'; - protected $commentsDataType = 'array'; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } -} - -class Google_Service_YouTube_CommentThreadSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $canReply; - public $channelId; - public $isPublic; - protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; - protected $topLevelCommentDataType = ''; - public $totalReplyCount; - public $videoId; - - - public function setCanReply($canReply) - { - $this->canReply = $canReply; - } - public function getCanReply() - { - return $this->canReply; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } - public function getIsPublic() - { - return $this->isPublic; - } - public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) - { - $this->topLevelComment = $topLevelComment; - } - public function getTopLevelComment() - { - return $this->topLevelComment; - } - public function setTotalReplyCount($totalReplyCount) - { - $this->totalReplyCount = $totalReplyCount; - } - public function getTotalReplyCount() - { - return $this->totalReplyCount; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_ContentRating extends Google_Collection -{ - protected $collection_key = 'djctqRatingReasons'; - protected $internal_gapi_mappings = array( - ); - public $acbRating; - public $agcomRating; - public $anatelRating; - public $bbfcRating; - public $bfvcRating; - public $bmukkRating; - public $catvRating; - public $catvfrRating; - public $cbfcRating; - public $cccRating; - public $cceRating; - public $chfilmRating; - public $chvrsRating; - public $cicfRating; - public $cnaRating; - public $cncRating; - public $csaRating; - public $cscfRating; - public $czfilmRating; - public $djctqRating; - public $djctqRatingReasons; - public $ecbmctRating; - public $eefilmRating; - public $egfilmRating; - public $eirinRating; - public $fcbmRating; - public $fcoRating; - public $fmocRating; - public $fpbRating; - public $fskRating; - public $grfilmRating; - public $icaaRating; - public $ifcoRating; - public $ilfilmRating; - public $incaaRating; - public $kfcbRating; - public $kijkwijzerRating; - public $kmrbRating; - public $lsfRating; - public $mccaaRating; - public $mccypRating; - public $mdaRating; - public $medietilsynetRating; - public $mekuRating; - public $mibacRating; - public $mocRating; - public $moctwRating; - public $mpaaRating; - public $mtrcbRating; - public $nbcRating; - public $nbcplRating; - public $nfrcRating; - public $nfvcbRating; - public $nkclvRating; - public $oflcRating; - public $pefilmRating; - public $rcnofRating; - public $resorteviolenciaRating; - public $rtcRating; - public $rteRating; - public $russiaRating; - public $skfilmRating; - public $smaisRating; - public $smsaRating; - public $tvpgRating; - public $ytRating; - - - public function setAcbRating($acbRating) - { - $this->acbRating = $acbRating; - } - public function getAcbRating() - { - return $this->acbRating; - } - public function setAgcomRating($agcomRating) - { - $this->agcomRating = $agcomRating; - } - public function getAgcomRating() - { - return $this->agcomRating; - } - public function setAnatelRating($anatelRating) - { - $this->anatelRating = $anatelRating; - } - public function getAnatelRating() - { - return $this->anatelRating; - } - public function setBbfcRating($bbfcRating) - { - $this->bbfcRating = $bbfcRating; - } - public function getBbfcRating() - { - return $this->bbfcRating; - } - public function setBfvcRating($bfvcRating) - { - $this->bfvcRating = $bfvcRating; - } - public function getBfvcRating() - { - return $this->bfvcRating; - } - public function setBmukkRating($bmukkRating) - { - $this->bmukkRating = $bmukkRating; - } - public function getBmukkRating() - { - return $this->bmukkRating; - } - public function setCatvRating($catvRating) - { - $this->catvRating = $catvRating; - } - public function getCatvRating() - { - return $this->catvRating; - } - public function setCatvfrRating($catvfrRating) - { - $this->catvfrRating = $catvfrRating; - } - public function getCatvfrRating() - { - return $this->catvfrRating; - } - public function setCbfcRating($cbfcRating) - { - $this->cbfcRating = $cbfcRating; - } - public function getCbfcRating() - { - return $this->cbfcRating; - } - public function setCccRating($cccRating) - { - $this->cccRating = $cccRating; - } - public function getCccRating() - { - return $this->cccRating; - } - public function setCceRating($cceRating) - { - $this->cceRating = $cceRating; - } - public function getCceRating() - { - return $this->cceRating; - } - public function setChfilmRating($chfilmRating) - { - $this->chfilmRating = $chfilmRating; - } - public function getChfilmRating() - { - return $this->chfilmRating; - } - public function setChvrsRating($chvrsRating) - { - $this->chvrsRating = $chvrsRating; - } - public function getChvrsRating() - { - return $this->chvrsRating; - } - public function setCicfRating($cicfRating) - { - $this->cicfRating = $cicfRating; - } - public function getCicfRating() - { - return $this->cicfRating; - } - public function setCnaRating($cnaRating) - { - $this->cnaRating = $cnaRating; - } - public function getCnaRating() - { - return $this->cnaRating; - } - public function setCncRating($cncRating) - { - $this->cncRating = $cncRating; - } - public function getCncRating() - { - return $this->cncRating; - } - public function setCsaRating($csaRating) - { - $this->csaRating = $csaRating; - } - public function getCsaRating() - { - return $this->csaRating; - } - public function setCscfRating($cscfRating) - { - $this->cscfRating = $cscfRating; - } - public function getCscfRating() - { - return $this->cscfRating; - } - public function setCzfilmRating($czfilmRating) - { - $this->czfilmRating = $czfilmRating; - } - public function getCzfilmRating() - { - return $this->czfilmRating; - } - public function setDjctqRating($djctqRating) - { - $this->djctqRating = $djctqRating; - } - public function getDjctqRating() - { - return $this->djctqRating; - } - public function setDjctqRatingReasons($djctqRatingReasons) - { - $this->djctqRatingReasons = $djctqRatingReasons; - } - public function getDjctqRatingReasons() - { - return $this->djctqRatingReasons; - } - public function setEcbmctRating($ecbmctRating) - { - $this->ecbmctRating = $ecbmctRating; - } - public function getEcbmctRating() - { - return $this->ecbmctRating; - } - public function setEefilmRating($eefilmRating) - { - $this->eefilmRating = $eefilmRating; - } - public function getEefilmRating() - { - return $this->eefilmRating; - } - public function setEgfilmRating($egfilmRating) - { - $this->egfilmRating = $egfilmRating; - } - public function getEgfilmRating() - { - return $this->egfilmRating; - } - public function setEirinRating($eirinRating) - { - $this->eirinRating = $eirinRating; - } - public function getEirinRating() - { - return $this->eirinRating; - } - public function setFcbmRating($fcbmRating) - { - $this->fcbmRating = $fcbmRating; - } - public function getFcbmRating() - { - return $this->fcbmRating; - } - public function setFcoRating($fcoRating) - { - $this->fcoRating = $fcoRating; - } - public function getFcoRating() - { - return $this->fcoRating; - } - public function setFmocRating($fmocRating) - { - $this->fmocRating = $fmocRating; - } - public function getFmocRating() - { - return $this->fmocRating; - } - public function setFpbRating($fpbRating) - { - $this->fpbRating = $fpbRating; - } - public function getFpbRating() - { - return $this->fpbRating; - } - public function setFskRating($fskRating) - { - $this->fskRating = $fskRating; - } - public function getFskRating() - { - return $this->fskRating; - } - public function setGrfilmRating($grfilmRating) - { - $this->grfilmRating = $grfilmRating; - } - public function getGrfilmRating() - { - return $this->grfilmRating; - } - public function setIcaaRating($icaaRating) - { - $this->icaaRating = $icaaRating; - } - public function getIcaaRating() - { - return $this->icaaRating; - } - public function setIfcoRating($ifcoRating) - { - $this->ifcoRating = $ifcoRating; - } - public function getIfcoRating() - { - return $this->ifcoRating; - } - public function setIlfilmRating($ilfilmRating) - { - $this->ilfilmRating = $ilfilmRating; - } - public function getIlfilmRating() - { - return $this->ilfilmRating; - } - public function setIncaaRating($incaaRating) - { - $this->incaaRating = $incaaRating; - } - public function getIncaaRating() - { - return $this->incaaRating; - } - public function setKfcbRating($kfcbRating) - { - $this->kfcbRating = $kfcbRating; - } - public function getKfcbRating() - { - return $this->kfcbRating; - } - public function setKijkwijzerRating($kijkwijzerRating) - { - $this->kijkwijzerRating = $kijkwijzerRating; - } - public function getKijkwijzerRating() - { - return $this->kijkwijzerRating; - } - public function setKmrbRating($kmrbRating) - { - $this->kmrbRating = $kmrbRating; - } - public function getKmrbRating() - { - return $this->kmrbRating; - } - public function setLsfRating($lsfRating) - { - $this->lsfRating = $lsfRating; - } - public function getLsfRating() - { - return $this->lsfRating; - } - public function setMccaaRating($mccaaRating) - { - $this->mccaaRating = $mccaaRating; - } - public function getMccaaRating() - { - return $this->mccaaRating; - } - public function setMccypRating($mccypRating) - { - $this->mccypRating = $mccypRating; - } - public function getMccypRating() - { - return $this->mccypRating; - } - public function setMdaRating($mdaRating) - { - $this->mdaRating = $mdaRating; - } - public function getMdaRating() - { - return $this->mdaRating; - } - public function setMedietilsynetRating($medietilsynetRating) - { - $this->medietilsynetRating = $medietilsynetRating; - } - public function getMedietilsynetRating() - { - return $this->medietilsynetRating; - } - public function setMekuRating($mekuRating) - { - $this->mekuRating = $mekuRating; - } - public function getMekuRating() - { - return $this->mekuRating; - } - public function setMibacRating($mibacRating) - { - $this->mibacRating = $mibacRating; - } - public function getMibacRating() - { - return $this->mibacRating; - } - public function setMocRating($mocRating) - { - $this->mocRating = $mocRating; - } - public function getMocRating() - { - return $this->mocRating; - } - public function setMoctwRating($moctwRating) - { - $this->moctwRating = $moctwRating; - } - public function getMoctwRating() - { - return $this->moctwRating; - } - public function setMpaaRating($mpaaRating) - { - $this->mpaaRating = $mpaaRating; - } - public function getMpaaRating() - { - return $this->mpaaRating; - } - public function setMtrcbRating($mtrcbRating) - { - $this->mtrcbRating = $mtrcbRating; - } - public function getMtrcbRating() - { - return $this->mtrcbRating; - } - public function setNbcRating($nbcRating) - { - $this->nbcRating = $nbcRating; - } - public function getNbcRating() - { - return $this->nbcRating; - } - public function setNbcplRating($nbcplRating) - { - $this->nbcplRating = $nbcplRating; - } - public function getNbcplRating() - { - return $this->nbcplRating; - } - public function setNfrcRating($nfrcRating) - { - $this->nfrcRating = $nfrcRating; - } - public function getNfrcRating() - { - return $this->nfrcRating; - } - public function setNfvcbRating($nfvcbRating) - { - $this->nfvcbRating = $nfvcbRating; - } - public function getNfvcbRating() - { - return $this->nfvcbRating; - } - public function setNkclvRating($nkclvRating) - { - $this->nkclvRating = $nkclvRating; - } - public function getNkclvRating() - { - return $this->nkclvRating; - } - public function setOflcRating($oflcRating) - { - $this->oflcRating = $oflcRating; - } - public function getOflcRating() - { - return $this->oflcRating; - } - public function setPefilmRating($pefilmRating) - { - $this->pefilmRating = $pefilmRating; - } - public function getPefilmRating() - { - return $this->pefilmRating; - } - public function setRcnofRating($rcnofRating) - { - $this->rcnofRating = $rcnofRating; - } - public function getRcnofRating() - { - return $this->rcnofRating; - } - public function setResorteviolenciaRating($resorteviolenciaRating) - { - $this->resorteviolenciaRating = $resorteviolenciaRating; - } - public function getResorteviolenciaRating() - { - return $this->resorteviolenciaRating; - } - public function setRtcRating($rtcRating) - { - $this->rtcRating = $rtcRating; - } - public function getRtcRating() - { - return $this->rtcRating; - } - public function setRteRating($rteRating) - { - $this->rteRating = $rteRating; - } - public function getRteRating() - { - return $this->rteRating; - } - public function setRussiaRating($russiaRating) - { - $this->russiaRating = $russiaRating; - } - public function getRussiaRating() - { - return $this->russiaRating; - } - public function setSkfilmRating($skfilmRating) - { - $this->skfilmRating = $skfilmRating; - } - public function getSkfilmRating() - { - return $this->skfilmRating; - } - public function setSmaisRating($smaisRating) - { - $this->smaisRating = $smaisRating; - } - public function getSmaisRating() - { - return $this->smaisRating; - } - public function setSmsaRating($smsaRating) - { - $this->smsaRating = $smsaRating; - } - public function getSmsaRating() - { - return $this->smsaRating; - } - public function setTvpgRating($tvpgRating) - { - $this->tvpgRating = $tvpgRating; - } - public function getTvpgRating() - { - return $this->tvpgRating; - } - public function setYtRating($ytRating) - { - $this->ytRating = $ytRating; - } - public function getYtRating() - { - return $this->ytRating; - } -} - -class Google_Service_YouTube_FanFundingEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_FanFundingEventSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_FanFundingEventSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_FanFundingEventListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_FanFundingEvent'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_FanFundingEventSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountMicros; - public $channelId; - public $commentText; - public $createdAt; - public $currency; - public $displayString; - protected $supporterDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; - protected $supporterDetailsDataType = ''; - - - public function setAmountMicros($amountMicros) - { - $this->amountMicros = $amountMicros; - } - public function getAmountMicros() - { - return $this->amountMicros; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setCommentText($commentText) - { - $this->commentText = $commentText; - } - public function getCommentText() - { - return $this->commentText; - } - public function setCreatedAt($createdAt) - { - $this->createdAt = $createdAt; - } - public function getCreatedAt() - { - return $this->createdAt; - } - public function setCurrency($currency) - { - $this->currency = $currency; - } - public function getCurrency() - { - return $this->currency; - } - public function setDisplayString($displayString) - { - $this->displayString = $displayString; - } - public function getDisplayString() - { - return $this->displayString; - } - public function setSupporterDetails(Google_Service_YouTube_ChannelProfileDetails $supporterDetails) - { - $this->supporterDetails = $supporterDetails; - } - public function getSupporterDetails() - { - return $this->supporterDetails; - } -} - -class Google_Service_YouTube_GeoPoint extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $altitude; - public $latitude; - public $longitude; - - - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } - public function getAltitude() - { - return $this->altitude; - } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - public function getLatitude() - { - return $this->latitude; - } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - public function getLongitude() - { - return $this->longitude; - } -} - -class Google_Service_YouTube_GuideCategory extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_GuideCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_GuideCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_I18nLanguage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $hl; - public $name; - - - public function setHl($hl) - { - $this->hl = $hl; - } - public function getHl() - { - return $this->hl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_I18nRegion extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nRegion'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_I18nRegionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $gl; - public $name; - - - public function setGl($gl) - { - $this->gl = $gl; - } - public function getGl() - { - return $this->gl; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} - -class Google_Service_YouTube_ImageSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $backgroundImageUrlDataType = ''; - public $bannerExternalUrl; - public $bannerImageUrl; - public $bannerMobileExtraHdImageUrl; - public $bannerMobileHdImageUrl; - public $bannerMobileImageUrl; - public $bannerMobileLowImageUrl; - public $bannerMobileMediumHdImageUrl; - public $bannerTabletExtraHdImageUrl; - public $bannerTabletHdImageUrl; - public $bannerTabletImageUrl; - public $bannerTabletLowImageUrl; - public $bannerTvHighImageUrl; - public $bannerTvImageUrl; - public $bannerTvLowImageUrl; - public $bannerTvMediumImageUrl; - protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageImapScriptDataType = ''; - protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageUrlDataType = ''; - protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageImapScriptDataType = ''; - protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageUrlDataType = ''; - public $trackingImageUrl; - public $watchIconImageUrl; - - - public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) - { - $this->backgroundImageUrl = $backgroundImageUrl; - } - public function getBackgroundImageUrl() - { - return $this->backgroundImageUrl; - } - public function setBannerExternalUrl($bannerExternalUrl) - { - $this->bannerExternalUrl = $bannerExternalUrl; - } - public function getBannerExternalUrl() - { - return $this->bannerExternalUrl; - } - public function setBannerImageUrl($bannerImageUrl) - { - $this->bannerImageUrl = $bannerImageUrl; - } - public function getBannerImageUrl() - { - return $this->bannerImageUrl; - } - public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) - { - $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; - } - public function getBannerMobileExtraHdImageUrl() - { - return $this->bannerMobileExtraHdImageUrl; - } - public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) - { - $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; - } - public function getBannerMobileHdImageUrl() - { - return $this->bannerMobileHdImageUrl; - } - public function setBannerMobileImageUrl($bannerMobileImageUrl) - { - $this->bannerMobileImageUrl = $bannerMobileImageUrl; - } - public function getBannerMobileImageUrl() - { - return $this->bannerMobileImageUrl; - } - public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) - { - $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; - } - public function getBannerMobileLowImageUrl() - { - return $this->bannerMobileLowImageUrl; - } - public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) - { - $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; - } - public function getBannerMobileMediumHdImageUrl() - { - return $this->bannerMobileMediumHdImageUrl; - } - public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) - { - $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; - } - public function getBannerTabletExtraHdImageUrl() - { - return $this->bannerTabletExtraHdImageUrl; - } - public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) - { - $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; - } - public function getBannerTabletHdImageUrl() - { - return $this->bannerTabletHdImageUrl; - } - public function setBannerTabletImageUrl($bannerTabletImageUrl) - { - $this->bannerTabletImageUrl = $bannerTabletImageUrl; - } - public function getBannerTabletImageUrl() - { - return $this->bannerTabletImageUrl; - } - public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) - { - $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; - } - public function getBannerTabletLowImageUrl() - { - return $this->bannerTabletLowImageUrl; - } - public function setBannerTvHighImageUrl($bannerTvHighImageUrl) - { - $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; - } - public function getBannerTvHighImageUrl() - { - return $this->bannerTvHighImageUrl; - } - public function setBannerTvImageUrl($bannerTvImageUrl) - { - $this->bannerTvImageUrl = $bannerTvImageUrl; - } - public function getBannerTvImageUrl() - { - return $this->bannerTvImageUrl; - } - public function setBannerTvLowImageUrl($bannerTvLowImageUrl) - { - $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; - } - public function getBannerTvLowImageUrl() - { - return $this->bannerTvLowImageUrl; - } - public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) - { - $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; - } - public function getBannerTvMediumImageUrl() - { - return $this->bannerTvMediumImageUrl; - } - public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) - { - $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; - } - public function getLargeBrandedBannerImageImapScript() - { - return $this->largeBrandedBannerImageImapScript; - } - public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) - { - $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; - } - public function getLargeBrandedBannerImageUrl() - { - return $this->largeBrandedBannerImageUrl; - } - public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) - { - $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; - } - public function getSmallBrandedBannerImageImapScript() - { - return $this->smallBrandedBannerImageImapScript; - } - public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) - { - $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; - } - public function getSmallBrandedBannerImageUrl() - { - return $this->smallBrandedBannerImageUrl; - } - public function setTrackingImageUrl($trackingImageUrl) - { - $this->trackingImageUrl = $trackingImageUrl; - } - public function getTrackingImageUrl() - { - return $this->trackingImageUrl; - } - public function setWatchIconImageUrl($watchIconImageUrl) - { - $this->watchIconImageUrl = $watchIconImageUrl; - } - public function getWatchIconImageUrl() - { - return $this->watchIconImageUrl; - } -} - -class Google_Service_YouTube_IngestionInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupIngestionAddress; - public $ingestionAddress; - public $streamName; - - - public function setBackupIngestionAddress($backupIngestionAddress) - { - $this->backupIngestionAddress = $backupIngestionAddress; - } - public function getBackupIngestionAddress() - { - return $this->backupIngestionAddress; - } - public function setIngestionAddress($ingestionAddress) - { - $this->ingestionAddress = $ingestionAddress; - } - public function getIngestionAddress() - { - return $this->ingestionAddress; - } - public function setStreamName($streamName) - { - $this->streamName = $streamName; - } - public function getStreamName() - { - return $this->streamName; - } -} - -class Google_Service_YouTube_InvideoBranding extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $imageBytes; - public $imageUrl; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $targetChannelId; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setImageBytes($imageBytes) - { - $this->imageBytes = $imageBytes; - } - public function getImageBytes() - { - return $this->imageBytes; - } - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - public function getImageUrl() - { - return $this->imageUrl; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setTargetChannelId($targetChannelId) - { - $this->targetChannelId = $targetChannelId; - } - public function getTargetChannelId() - { - return $this->targetChannelId; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_InvideoPosition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cornerPosition; - public $type; - - - public function setCornerPosition($cornerPosition) - { - $this->cornerPosition = $cornerPosition; - } - public function getCornerPosition() - { - return $this->cornerPosition; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_InvideoPromotion extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; - protected $defaultTimingDataType = ''; - protected $itemsType = 'Google_Service_YouTube_PromotedItem'; - protected $itemsDataType = 'array'; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $useSmartTiming; - - - public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) - { - $this->defaultTiming = $defaultTiming; - } - public function getDefaultTiming() - { - return $this->defaultTiming; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setUseSmartTiming($useSmartTiming) - { - $this->useSmartTiming = $useSmartTiming; - } - public function getUseSmartTiming() - { - return $this->useSmartTiming; - } -} - -class Google_Service_YouTube_InvideoTiming extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $durationMs; - public $offsetMs; - public $type; - - - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setOffsetMs($offsetMs) - { - $this->offsetMs = $offsetMs; - } - public function getOffsetMs() - { - return $this->offsetMs; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LanguageTag extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $value; - - - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_LiveBroadcast extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; - protected $topicDetailsDataType = ''; - - - 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 setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) - { - $this->statistics = $statistics; - } - public function getStatistics() - { - return $this->statistics; - } - public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - public function getTopicDetails() - { - return $this->topicDetails; - } -} - -class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $boundStreamId; - public $closedCaptionsType; - public $enableClosedCaptions; - public $enableContentEncryption; - public $enableDvr; - public $enableEmbed; - public $enableLowLatency; - protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; - protected $monitorStreamDataType = ''; - public $recordFromStart; - public $startWithSlate; - - - public function setBoundStreamId($boundStreamId) - { - $this->boundStreamId = $boundStreamId; - } - public function getBoundStreamId() - { - return $this->boundStreamId; - } - public function setClosedCaptionsType($closedCaptionsType) - { - $this->closedCaptionsType = $closedCaptionsType; - } - public function getClosedCaptionsType() - { - return $this->closedCaptionsType; - } - public function setEnableClosedCaptions($enableClosedCaptions) - { - $this->enableClosedCaptions = $enableClosedCaptions; - } - public function getEnableClosedCaptions() - { - return $this->enableClosedCaptions; - } - public function setEnableContentEncryption($enableContentEncryption) - { - $this->enableContentEncryption = $enableContentEncryption; - } - public function getEnableContentEncryption() - { - return $this->enableContentEncryption; - } - public function setEnableDvr($enableDvr) - { - $this->enableDvr = $enableDvr; - } - public function getEnableDvr() - { - return $this->enableDvr; - } - public function setEnableEmbed($enableEmbed) - { - $this->enableEmbed = $enableEmbed; - } - public function getEnableEmbed() - { - return $this->enableEmbed; - } - public function setEnableLowLatency($enableLowLatency) - { - $this->enableLowLatency = $enableLowLatency; - } - public function getEnableLowLatency() - { - return $this->enableLowLatency; - } - public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) - { - $this->monitorStream = $monitorStream; - } - public function getMonitorStream() - { - return $this->monitorStream; - } - public function setRecordFromStart($recordFromStart) - { - $this->recordFromStart = $recordFromStart; - } - public function getRecordFromStart() - { - return $this->recordFromStart; - } - public function setStartWithSlate($startWithSlate) - { - $this->startWithSlate = $startWithSlate; - } - public function getStartWithSlate() - { - return $this->startWithSlate; - } -} - -class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $actualEndTime; - public $actualStartTime; - public $channelId; - public $description; - public $isDefaultBroadcast; - public $liveChatId; - public $publishedAt; - public $scheduledEndTime; - public $scheduledStartTime; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setIsDefaultBroadcast($isDefaultBroadcast) - { - $this->isDefaultBroadcast = $isDefaultBroadcast; - } - public function getIsDefaultBroadcast() - { - return $this->isDefaultBroadcast; - } - public function setLiveChatId($liveChatId) - { - $this->liveChatId = $liveChatId; - } - public function getLiveChatId() - { - return $this->liveChatId; - } - 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_LiveBroadcastStatistics extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $concurrentViewers; - public $totalChatCount; - - - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setTotalChatCount($totalChatCount) - { - $this->totalChatCount = $totalChatCount; - } - public function getTotalChatCount() - { - return $this->totalChatCount; - } -} - -class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $lifeCycleStatus; - public $liveBroadcastPriority; - public $privacyStatus; - public $recordingStatus; - - - public function setLifeCycleStatus($lifeCycleStatus) - { - $this->lifeCycleStatus = $lifeCycleStatus; - } - public function getLifeCycleStatus() - { - return $this->lifeCycleStatus; - } - public function setLiveBroadcastPriority($liveBroadcastPriority) - { - $this->liveBroadcastPriority = $liveBroadcastPriority; - } - public function getLiveBroadcastPriority() - { - return $this->liveBroadcastPriority; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setRecordingStatus($recordingStatus) - { - $this->recordingStatus = $recordingStatus; - } - public function getRecordingStatus() - { - return $this->recordingStatus; - } -} - -class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; - protected $snippetDataType = ''; - public $type; - public $unmatched; - - - public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnmatched($unmatched) - { - $this->unmatched = $unmatched; - } - public function getUnmatched() - { - return $this->unmatched; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection -{ - protected $collection_key = 'topics'; - protected $internal_gapi_mappings = array( - ); - protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; - protected $topicsDataType = 'array'; - - - public function setTopics($topics) - { - $this->topics = $topics; - } - public function getTopics() - { - return $this->topics; - } -} - -class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $releaseDate; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReleaseDate($releaseDate) - { - $this->releaseDate = $releaseDate; - } - public function getReleaseDate() - { - return $this->releaseDate; - } -} - -class Google_Service_YouTube_LiveChatBan extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveChatBanSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_LiveChatBanSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_LiveChatBanSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $banDurationSeconds; - protected $bannedUserDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; - protected $bannedUserDetailsDataType = ''; - public $liveChatId; - public $type; - - - public function setBanDurationSeconds($banDurationSeconds) - { - $this->banDurationSeconds = $banDurationSeconds; - } - public function getBanDurationSeconds() - { - return $this->banDurationSeconds; - } - public function setBannedUserDetails(Google_Service_YouTube_ChannelProfileDetails $bannedUserDetails) - { - $this->bannedUserDetails = $bannedUserDetails; - } - public function getBannedUserDetails() - { - return $this->bannedUserDetails; - } - public function setLiveChatId($liveChatId) - { - $this->liveChatId = $liveChatId; - } - public function getLiveChatId() - { - return $this->liveChatId; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LiveChatFanFundingEventDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $amountDisplayString; - public $amountMicros; - public $currency; - public $userComment; - - - public function setAmountDisplayString($amountDisplayString) - { - $this->amountDisplayString = $amountDisplayString; - } - public function getAmountDisplayString() - { - return $this->amountDisplayString; - } - public function setAmountMicros($amountMicros) - { - $this->amountMicros = $amountMicros; - } - public function getAmountMicros() - { - return $this->amountMicros; - } - public function setCurrency($currency) - { - $this->currency = $currency; - } - public function getCurrency() - { - return $this->currency; - } - public function setUserComment($userComment) - { - $this->userComment = $userComment; - } - public function getUserComment() - { - return $this->userComment; - } -} - -class Google_Service_YouTube_LiveChatMessage extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $authorDetailsType = 'Google_Service_YouTube_LiveChatMessageAuthorDetails'; - protected $authorDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveChatMessageSnippet'; - protected $snippetDataType = ''; - - - public function setAuthorDetails(Google_Service_YouTube_LiveChatMessageAuthorDetails $authorDetails) - { - $this->authorDetails = $authorDetails; - } - public function getAuthorDetails() - { - return $this->authorDetails; - } - 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_LiveChatMessageSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_LiveChatMessageAuthorDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelUrl; - public $displayName; - public $isChatModerator; - public $isChatOwner; - public $isChatSponsor; - public $isVerified; - public $profileImageUrl; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelUrl($channelUrl) - { - $this->channelUrl = $channelUrl; - } - public function getChannelUrl() - { - return $this->channelUrl; - } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setIsChatModerator($isChatModerator) - { - $this->isChatModerator = $isChatModerator; - } - public function getIsChatModerator() - { - return $this->isChatModerator; - } - public function setIsChatOwner($isChatOwner) - { - $this->isChatOwner = $isChatOwner; - } - public function getIsChatOwner() - { - return $this->isChatOwner; - } - public function setIsChatSponsor($isChatSponsor) - { - $this->isChatSponsor = $isChatSponsor; - } - public function getIsChatSponsor() - { - return $this->isChatSponsor; - } - public function setIsVerified($isVerified) - { - $this->isVerified = $isVerified; - } - public function getIsVerified() - { - return $this->isVerified; - } - public function setProfileImageUrl($profileImageUrl) - { - $this->profileImageUrl = $profileImageUrl; - } - public function getProfileImageUrl() - { - return $this->profileImageUrl; - } -} - -class Google_Service_YouTube_LiveChatMessageListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveChatMessage'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $offlineAt; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $pollingIntervalMillis; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOfflineAt($offlineAt) - { - $this->offlineAt = $offlineAt; - } - public function getOfflineAt() - { - return $this->offlineAt; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPollingIntervalMillis($pollingIntervalMillis) - { - $this->pollingIntervalMillis = $pollingIntervalMillis; - } - public function getPollingIntervalMillis() - { - return $this->pollingIntervalMillis; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveChatMessageSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $authorChannelId; - public $displayMessage; - protected $fanFundingEventDetailsType = 'Google_Service_YouTube_LiveChatFanFundingEventDetails'; - protected $fanFundingEventDetailsDataType = ''; - public $hasDisplayContent; - public $liveChatId; - public $publishedAt; - protected $textMessageDetailsType = 'Google_Service_YouTube_LiveChatTextMessageDetails'; - protected $textMessageDetailsDataType = ''; - public $type; - - - public function setAuthorChannelId($authorChannelId) - { - $this->authorChannelId = $authorChannelId; - } - public function getAuthorChannelId() - { - return $this->authorChannelId; - } - public function setDisplayMessage($displayMessage) - { - $this->displayMessage = $displayMessage; - } - public function getDisplayMessage() - { - return $this->displayMessage; - } - public function setFanFundingEventDetails(Google_Service_YouTube_LiveChatFanFundingEventDetails $fanFundingEventDetails) - { - $this->fanFundingEventDetails = $fanFundingEventDetails; - } - public function getFanFundingEventDetails() - { - return $this->fanFundingEventDetails; - } - public function setHasDisplayContent($hasDisplayContent) - { - $this->hasDisplayContent = $hasDisplayContent; - } - public function getHasDisplayContent() - { - return $this->hasDisplayContent; - } - public function setLiveChatId($liveChatId) - { - $this->liveChatId = $liveChatId; - } - public function getLiveChatId() - { - return $this->liveChatId; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTextMessageDetails(Google_Service_YouTube_LiveChatTextMessageDetails $textMessageDetails) - { - $this->textMessageDetails = $textMessageDetails; - } - public function getTextMessageDetails() - { - return $this->textMessageDetails; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LiveChatModerator extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveChatModeratorSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_LiveChatModeratorSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_LiveChatModeratorListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveChatModerator'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveChatModeratorSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $liveChatId; - protected $moderatorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; - protected $moderatorDetailsDataType = ''; - - - public function setLiveChatId($liveChatId) - { - $this->liveChatId = $liveChatId; - } - public function getLiveChatId() - { - return $this->liveChatId; - } - public function setModeratorDetails(Google_Service_YouTube_ChannelProfileDetails $moderatorDetails) - { - $this->moderatorDetails = $moderatorDetails; - } - public function getModeratorDetails() - { - return $this->moderatorDetails; - } -} - -class Google_Service_YouTube_LiveChatTextMessageDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $messageText; - - - public function setMessageText($messageText) - { - $this->messageText = $messageText; - } - public function getMessageText() - { - return $this->messageText; - } -} - -class Google_Service_YouTube_LiveStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cdnType = 'Google_Service_YouTube_CdnSettings'; - protected $cdnDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; - protected $statusDataType = ''; - - - public function setCdn(Google_Service_YouTube_CdnSettings $cdn) - { - $this->cdn = $cdn; - } - public function getCdn() - { - return $this->cdn; - } - public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $reason; - public $severity; - public $type; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $closedCaptionsIngestionUrl; - public $isReusable; - - - public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) - { - $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; - } - public function getClosedCaptionsIngestionUrl() - { - return $this->closedCaptionsIngestionUrl; - } - public function setIsReusable($isReusable) - { - $this->isReusable = $isReusable; - } - public function getIsReusable() - { - return $this->isReusable; - } -} - -class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection -{ - protected $collection_key = 'configurationIssues'; - protected $internal_gapi_mappings = array( - ); - protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; - protected $configurationIssuesDataType = 'array'; - public $lastUpdateTimeSeconds; - public $status; - - - public function setConfigurationIssues($configurationIssues) - { - $this->configurationIssues = $configurationIssues; - } - public function getConfigurationIssues() - { - return $this->configurationIssues; - } - public function setLastUpdateTimeSeconds($lastUpdateTimeSeconds) - { - $this->lastUpdateTimeSeconds = $lastUpdateTimeSeconds; - } - public function getLastUpdateTimeSeconds() - { - return $this->lastUpdateTimeSeconds; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveStream'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_LiveStreamSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - public $isDefaultStream; - 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 setIsDefaultStream($isDefaultStream) - { - $this->isDefaultStream = $isDefaultStream; - } - public function getIsDefaultStream() - { - return $this->isDefaultStream; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; - protected $healthStatusDataType = ''; - public $streamStatus; - - - public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) - { - $this->healthStatus = $healthStatus; - } - public function getHealthStatus() - { - return $this->healthStatus; - } - public function setStreamStatus($streamStatus) - { - $this->streamStatus = $streamStatus; - } - public function getStreamStatus() - { - return $this->streamStatus; - } -} - -class Google_Service_YouTube_LocalizedProperty extends Google_Collection -{ - protected $collection_key = 'localized'; - protected $internal_gapi_mappings = array( - ); - public $default; - protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; - protected $defaultLanguageDataType = ''; - protected $localizedType = 'Google_Service_YouTube_LocalizedString'; - protected $localizedDataType = 'array'; - - - public function setDefault($default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setLocalized($localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } -} - -class Google_Service_YouTube_LocalizedString extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $language; - public $value; - - - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_YouTube_MonitorStreamInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $broadcastStreamDelayMs; - public $embedHtml; - public $enableMonitorStream; - - - public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) - { - $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; - } - public function getBroadcastStreamDelayMs() - { - return $this->broadcastStreamDelayMs; - } - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } - public function setEnableMonitorStream($enableMonitorStream) - { - $this->enableMonitorStream = $enableMonitorStream; - } - public function getEnableMonitorStream() - { - return $this->enableMonitorStream; - } -} - -class Google_Service_YouTube_PageInfo extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizationsDataType = 'map'; - protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; - protected $playerDataType = ''; - protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $itemCount; - - - public function setItemCount($itemCount) - { - $this->itemCount = $itemCount; - } - public function getItemCount() - { - return $this->itemCount; - } -} - -class Google_Service_YouTube_PlaylistItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; - protected $statusDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $playlistId; - public $position; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - public function getPlaylistId() - { - return $this->playlistId; - } - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistItemStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PlaylistListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Playlist'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_PlaylistLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistPlayer extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_PlaylistSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $defaultLanguage; - public $description; - protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_PlaylistStatus extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $privacyStatus; - - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } -} - -class Google_Service_YouTube_PromotedItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $customMessage; - protected $idType = 'Google_Service_YouTube_PromotedItemId'; - protected $idDataType = ''; - public $promotedByContentOwner; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - - public function setCustomMessage($customMessage) - { - $this->customMessage = $customMessage; - } - public function getCustomMessage() - { - return $this->customMessage; - } - public function setId(Google_Service_YouTube_PromotedItemId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setPromotedByContentOwner($promotedByContentOwner) - { - $this->promotedByContentOwner = $promotedByContentOwner; - } - public function getPromotedByContentOwner() - { - return $this->promotedByContentOwner; - } - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - public function getTiming() - { - return $this->timing; - } -} - -class Google_Service_YouTube_PromotedItemId extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $recentlyUploadedBy; - public $type; - public $videoId; - public $websiteUrl; - - - public function setRecentlyUploadedBy($recentlyUploadedBy) - { - $this->recentlyUploadedBy = $recentlyUploadedBy; - } - public function getRecentlyUploadedBy() - { - return $this->recentlyUploadedBy; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_YouTube_PropertyValue extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_SearchResult'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - public $regionCode; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setRegionCode($regionCode) - { - $this->regionCode = $regionCode; - } - public function getRegionCode() - { - return $this->regionCode; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SearchResult extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $idType = 'Google_Service_YouTube_ResourceId'; - protected $idDataType = ''; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId(Google_Service_YouTube_ResourceId $id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_SearchResultSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $liveBroadcastContent; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Sponsor extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SponsorSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SponsorSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_SponsorListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Sponsor'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SponsorSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - protected $sponsorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; - protected $sponsorDetailsDataType = ''; - public $sponsorSince; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setSponsorDetails(Google_Service_YouTube_ChannelProfileDetails $sponsorDetails) - { - $this->sponsorDetails = $sponsorDetails; - } - public function getSponsorDetails() - { - return $this->sponsorDetails; - } - public function setSponsorSince($sponsorSince) - { - $this->sponsorSince = $sponsorSince; - } - public function getSponsorSince() - { - return $this->sponsorSince; - } -} - -class Google_Service_YouTube_Subscription extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; - protected $snippetDataType = ''; - protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; - protected $subscriberSnippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) - { - $this->subscriberSnippet = $subscriberSnippet; - } - public function getSubscriberSnippet() - { - return $this->subscriberSnippet; - } -} - -class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activityType; - public $newItemCount; - public $totalItemCount; - - - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - public function getActivityType() - { - return $this->activityType; - } - public function setNewItemCount($newItemCount) - { - $this->newItemCount = $newItemCount; - } - public function getNewItemCount() - { - return $this->newItemCount; - } - public function setTotalItemCount($totalItemCount) - { - $this->totalItemCount = $totalItemCount; - } - public function getTotalItemCount() - { - return $this->totalItemCount; - } -} - -class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Subscription'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_SubscriptionSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $channelTitle; - public $description; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - public function getPublishedAt() - { - return $this->publishedAt; - } - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - public function getResourceId() - { - return $this->resourceId; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $channelId; - public $description; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - public function getThumbnails() - { - return $this->thumbnails; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_Thumbnail extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $defaultType = 'Google_Service_YouTube_Thumbnail'; - protected $defaultDataType = ''; - protected $highType = 'Google_Service_YouTube_Thumbnail'; - protected $highDataType = ''; - protected $maxresType = 'Google_Service_YouTube_Thumbnail'; - protected $maxresDataType = ''; - protected $mediumType = 'Google_Service_YouTube_Thumbnail'; - protected $mediumDataType = ''; - protected $standardType = 'Google_Service_YouTube_Thumbnail'; - protected $standardDataType = ''; - - - public function setDefault(Google_Service_YouTube_Thumbnail $default) - { - $this->default = $default; - } - public function getDefault() - { - return $this->default; - } - public function setHigh(Google_Service_YouTube_Thumbnail $high) - { - $this->high = $high; - } - public function getHigh() - { - return $this->high; - } - public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) - { - $this->maxres = $maxres; - } - public function getMaxres() - { - return $this->maxres; - } - public function setMedium(Google_Service_YouTube_Thumbnail $medium) - { - $this->medium = $medium; - } - public function getMedium() - { - return $this->medium; - } - public function setStandard(Google_Service_YouTube_Thumbnail $standard) - { - $this->standard = $standard; - } - public function getStandard() - { - return $this->standard; - } -} - -class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_TokenPagination extends Google_Model -{ -} - -class Google_Service_YouTube_Video extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; - protected $ageGatingDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; - protected $fileDetailsDataType = ''; - public $id; - public $kind; - protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; - protected $liveStreamingDetailsDataType = ''; - protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizationsDataType = 'map'; - protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; - protected $monetizationDetailsDataType = ''; - protected $playerType = 'Google_Service_YouTube_VideoPlayer'; - protected $playerDataType = ''; - protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; - protected $processingDetailsDataType = ''; - protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; - protected $projectDetailsDataType = ''; - protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; - protected $recordingDetailsDataType = ''; - protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_VideoStatus'; - protected $statusDataType = ''; - protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; - protected $suggestionsDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; - protected $topicDetailsDataType = ''; - - - public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) - { - $this->ageGating = $ageGating; - } - public function getAgeGating() - { - return $this->ageGating; - } - public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - public function getContentDetails() - { - return $this->contentDetails; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) - { - $this->fileDetails = $fileDetails; - } - public function getFileDetails() - { - return $this->fileDetails; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) - { - $this->liveStreamingDetails = $liveStreamingDetails; - } - public function getLiveStreamingDetails() - { - return $this->liveStreamingDetails; - } - public function setLocalizations($localizations) - { - $this->localizations = $localizations; - } - public function getLocalizations() - { - return $this->localizations; - } - 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_VideoAbuseReport extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $comments; - public $language; - public $reasonId; - public $secondaryReasonId; - public $videoId; - - - public function setComments($comments) - { - $this->comments = $comments; - } - public function getComments() - { - return $this->comments; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setReasonId($reasonId) - { - $this->reasonId = $reasonId; - } - public function getReasonId() - { - return $this->reasonId; - } - public function setSecondaryReasonId($secondaryReasonId) - { - $this->secondaryReasonId = $secondaryReasonId; - } - public function getSecondaryReasonId() - { - return $this->secondaryReasonId; - } - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - public function getVideoId() - { - return $this->videoId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection -{ - protected $collection_key = 'secondaryReasons'; - protected $internal_gapi_mappings = array( - ); - public $label; - protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; - protected $secondaryReasonsDataType = 'array'; - - - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } - public function setSecondaryReasons($secondaryReasons) - { - $this->secondaryReasons = $secondaryReasons; - } - public function getSecondaryReasons() - { - return $this->secondaryReasons; - } -} - -class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $label; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } -} - -class Google_Service_YouTube_VideoAgeGating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; - protected $snippetDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoCategorySnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $assignable; - public $channelId; - public $title; - - - public function setAssignable($assignable) - { - $this->assignable = $assignable; - } - public function getAssignable() - { - return $this->assignable; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $caption; - protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; - protected $contentRatingDataType = ''; - protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; - protected $countryRestrictionDataType = ''; - public $definition; - public $dimension; - public $duration; - public $licensedContent; - protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; - protected $regionRestrictionDataType = ''; - - - public function setCaption($caption) - { - $this->caption = $caption; - } - public function getCaption() - { - return $this->caption; - } - public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) - { - $this->contentRating = $contentRating; - } - public function getContentRating() - { - return $this->contentRating; - } - public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) - { - $this->countryRestriction = $countryRestriction; - } - public function getCountryRestriction() - { - return $this->countryRestriction; - } - public function setDefinition($definition) - { - $this->definition = $definition; - } - public function getDefinition() - { - return $this->definition; - } - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - public function getDimension() - { - return $this->dimension; - } - public function setDuration($duration) - { - $this->duration = $duration; - } - public function getDuration() - { - return $this->duration; - } - public function setLicensedContent($licensedContent) - { - $this->licensedContent = $licensedContent; - } - public function getLicensedContent() - { - return $this->licensedContent; - } - public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) - { - $this->regionRestriction = $regionRestriction; - } - public function getRegionRestriction() - { - return $this->regionRestriction; - } -} - -class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection -{ - protected $collection_key = 'blocked'; - protected $internal_gapi_mappings = array( - ); - 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_VideoFileDetails extends Google_Collection -{ - protected $collection_key = 'videoStreams'; - protected $internal_gapi_mappings = array( - ); - protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; - protected $audioStreamsDataType = 'array'; - public $bitrateBps; - public $container; - public $creationTime; - public $durationMs; - public $fileName; - public $fileSize; - public $fileType; - protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; - protected $recordingLocationDataType = ''; - protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; - protected $videoStreamsDataType = 'array'; - - - public function setAudioStreams($audioStreams) - { - $this->audioStreams = $audioStreams; - } - public function getAudioStreams() - { - return $this->audioStreams; - } - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - public function getBitrateBps() - { - return $this->bitrateBps; - } - public function setContainer($container) - { - $this->container = $container; - } - public function getContainer() - { - return $this->container; - } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - public function getCreationTime() - { - return $this->creationTime; - } - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - public function getDurationMs() - { - return $this->durationMs; - } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - public function getFileName() - { - return $this->fileName; - } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - public function getFileSize() - { - return $this->fileSize; - } - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - public function getFileType() - { - return $this->fileType; - } - public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) - { - $this->recordingLocation = $recordingLocation; - } - public function getRecordingLocation() - { - return $this->recordingLocation; - } - public function setVideoStreams($videoStreams) - { - $this->videoStreams = $videoStreams; - } - public function getVideoStreams() - { - return $this->videoStreams; - } -} - -class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoRating'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Video'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - public function getPageInfo() - { - return $this->pageInfo; - } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - public function getPrevPageToken() - { - return $this->prevPageToken; - } - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} - -class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $activeLiveChatId; - public $actualEndTime; - public $actualStartTime; - public $concurrentViewers; - public $scheduledEndTime; - public $scheduledStartTime; - - - public function setActiveLiveChatId($activeLiveChatId) - { - $this->activeLiveChatId = $activeLiveChatId; - } - public function getActiveLiveChatId() - { - return $this->activeLiveChatId; - } - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - public function getActualEndTime() - { - return $this->actualEndTime; - } - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - public function getActualStartTime() - { - return $this->actualStartTime; - } - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - public function setScheduledEndTime($scheduledEndTime) - { - $this->scheduledEndTime = $scheduledEndTime; - } - public function getScheduledEndTime() - { - return $this->scheduledEndTime; - } - public function setScheduledStartTime($scheduledStartTime) - { - $this->scheduledStartTime = $scheduledStartTime; - } - public function getScheduledStartTime() - { - return $this->scheduledStartTime; - } -} - -class Google_Service_YouTube_VideoLocalization extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $title; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $accessType = 'Google_Service_YouTube_AccessPolicy'; - protected $accessDataType = ''; - - - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embedHtml; - - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - public function getEmbedHtml() - { - return $this->embedHtml; - } -} - -class Google_Service_YouTube_VideoProcessingDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $editorSuggestionsAvailability; - public $fileDetailsAvailability; - public $processingFailureReason; - public $processingIssuesAvailability; - protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; - protected $processingProgressDataType = ''; - public $processingStatus; - public $tagSuggestionsAvailability; - public $thumbnailsAvailability; - - - public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) - { - $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; - } - public function getEditorSuggestionsAvailability() - { - return $this->editorSuggestionsAvailability; - } - public function setFileDetailsAvailability($fileDetailsAvailability) - { - $this->fileDetailsAvailability = $fileDetailsAvailability; - } - public function getFileDetailsAvailability() - { - return $this->fileDetailsAvailability; - } - public function setProcessingFailureReason($processingFailureReason) - { - $this->processingFailureReason = $processingFailureReason; - } - public function getProcessingFailureReason() - { - return $this->processingFailureReason; - } - public function setProcessingIssuesAvailability($processingIssuesAvailability) - { - $this->processingIssuesAvailability = $processingIssuesAvailability; - } - public function getProcessingIssuesAvailability() - { - return $this->processingIssuesAvailability; - } - public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) - { - $this->processingProgress = $processingProgress; - } - public function getProcessingProgress() - { - return $this->processingProgress; - } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - public function getProcessingStatus() - { - return $this->processingStatus; - } - public function setTagSuggestionsAvailability($tagSuggestionsAvailability) - { - $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; - } - public function getTagSuggestionsAvailability() - { - return $this->tagSuggestionsAvailability; - } - public function setThumbnailsAvailability($thumbnailsAvailability) - { - $this->thumbnailsAvailability = $thumbnailsAvailability; - } - public function getThumbnailsAvailability() - { - return $this->thumbnailsAvailability; - } -} - -class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $tags; - - - public function setTags($tags) - { - $this->tags = $tags; - } - public function getTags() - { - return $this->tags; - } -} - -class Google_Service_YouTube_VideoRating extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 $internal_gapi_mappings = array( - ); - protected $locationType = 'Google_Service_YouTube_GeoPoint'; - protected $locationDataType = ''; - public $locationDescription; - public $recordingDate; - - - public function setLocation(Google_Service_YouTube_GeoPoint $location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setLocationDescription($locationDescription) - { - $this->locationDescription = $locationDescription; - } - public function getLocationDescription() - { - return $this->locationDescription; - } - public function setRecordingDate($recordingDate) - { - $this->recordingDate = $recordingDate; - } - public function getRecordingDate() - { - return $this->recordingDate; - } -} - -class Google_Service_YouTube_VideoSnippet extends Google_Collection -{ - protected $collection_key = 'tags'; - protected $internal_gapi_mappings = array( - ); - public $categoryId; - public $channelId; - public $channelTitle; - public $defaultAudioLanguage; - public $defaultLanguage; - public $description; - public $liveBroadcastContent; - protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; - protected $localizedDataType = ''; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - public function getCategoryId() - { - return $this->categoryId; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - public function getChannelTitle() - { - return $this->channelTitle; - } - public function setDefaultAudioLanguage($defaultAudioLanguage) - { - $this->defaultAudioLanguage = $defaultAudioLanguage; - } - public function getDefaultAudioLanguage() - { - return $this->defaultAudioLanguage; - } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) - { - $this->localized = $localized; - } - public function getLocalized() - { - return $this->localized; - } - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $internal_gapi_mappings = array( - ); - public $embeddable; - public $failureReason; - public $license; - public $privacyStatus; - public $publicStatsViewable; - public $publishAt; - public $rejectionReason; - public $uploadStatus; - - - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - public function getEmbeddable() - { - return $this->embeddable; - } - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - public function getFailureReason() - { - return $this->failureReason; - } - public function setLicense($license) - { - $this->license = $license; - } - public function getLicense() - { - return $this->license; - } - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - public function setPublicStatsViewable($publicStatsViewable) - { - $this->publicStatsViewable = $publicStatsViewable; - } - public function getPublicStatsViewable() - { - return $this->publicStatsViewable; - } - public function setPublishAt($publishAt) - { - $this->publishAt = $publishAt; - } - public function getPublishAt() - { - return $this->publishAt; - } - public function setRejectionReason($rejectionReason) - { - $this->rejectionReason = $rejectionReason; - } - public function getRejectionReason() - { - return $this->rejectionReason; - } - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - public function getUploadStatus() - { - return $this->uploadStatus; - } -} - -class Google_Service_YouTube_VideoSuggestions extends Google_Collection -{ - protected $collection_key = 'tagSuggestions'; - protected $internal_gapi_mappings = array( - ); - public $editorSuggestions; - public $processingErrors; - public $processingHints; - public $processingWarnings; - protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; - protected $tagSuggestionsDataType = 'array'; - - - public function setEditorSuggestions($editorSuggestions) - { - $this->editorSuggestions = $editorSuggestions; - } - public function getEditorSuggestions() - { - return $this->editorSuggestions; - } - public function setProcessingErrors($processingErrors) - { - $this->processingErrors = $processingErrors; - } - public function getProcessingErrors() - { - return $this->processingErrors; - } - public function setProcessingHints($processingHints) - { - $this->processingHints = $processingHints; - } - public function getProcessingHints() - { - return $this->processingHints; - } - public function setProcessingWarnings($processingWarnings) - { - $this->processingWarnings = $processingWarnings; - } - public function getProcessingWarnings() - { - return $this->processingWarnings; - } - public function setTagSuggestions($tagSuggestions) - { - $this->tagSuggestions = $tagSuggestions; - } - public function getTagSuggestions() - { - return $this->tagSuggestions; - } -} - -class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection -{ - protected $collection_key = 'categoryRestricts'; - protected $internal_gapi_mappings = array( - ); - 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 -{ - protected $collection_key = 'topicIds'; - protected $internal_gapi_mappings = array( - ); - public $relevantTopicIds; - public $topicIds; - - - public function setRelevantTopicIds($relevantTopicIds) - { - $this->relevantTopicIds = $relevantTopicIds; - } - public function getRelevantTopicIds() - { - return $this->relevantTopicIds; - } - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - public function getTopicIds() - { - return $this->topicIds; - } -} - -class Google_Service_YouTube_WatchSettings extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 deleted file mode 100644 index 5ffcabd23..000000000 --- a/src/Google/Service/YouTubeAnalytics.php +++ /dev/null @@ -1,1213 +0,0 @@ - - * Retrieves your YouTube Analytics reports.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_YouTubeAnalytics extends Google_Service -{ - /** Manage your YouTube account. */ - const YOUTUBE = - "https://www.googleapis.com/auth/youtube"; - /** View your YouTube account. */ - const YOUTUBE_READONLY = - "https://www.googleapis.com/auth/youtube.readonly"; - /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = - "https://www.googleapis.com/auth/youtubepartner"; - /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_MONETARY_READONLY = - "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; - /** View YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_READONLY = - "https://www.googleapis.com/auth/yt-analytics.readonly"; - - public $batchReportDefinitions; - public $batchReports; - public $groupItems; - public $groups; - public $reports; - - - /** - * Constructs the internal representation of the YouTubeAnalytics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'youtube/analytics/v1/'; - $this->version = 'v1'; - $this->serviceName = 'youtubeAnalytics'; - - $this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( - $this, - $this->serviceName, - 'batchReportDefinitions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'batchReportDefinitions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( - $this, - $this->serviceName, - 'batchReports', - array( - 'methods' => array( - 'list' => array( - 'path' => 'batchReports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'batchReportDefinitionId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->groupItems = new Google_Service_YouTubeAnalytics_GroupItems_Resource( - $this, - $this->serviceName, - 'groupItems', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groupItems', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'groupItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'groupItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_YouTubeAnalytics_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'groups', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'groups', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'query' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'currency' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "batchReportDefinitions" collection of methods. - * Typical usage is: - * - * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); - * $batchReportDefinitions = $youtubeAnalyticsService->batchReportDefinitions; - * - */ -class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of available batch report definitions. - * (batchReportDefinitions.listBatchReportDefinitions) - * - * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * identifies the content owner that the user is acting on behalf of. - * @param array $optParams Optional parameters. - * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList - */ - public function listBatchReportDefinitions($onBehalfOfContentOwner, $optParams = array()) - { - $params = array('onBehalfOfContentOwner' => $onBehalfOfContentOwner); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList"); - } -} - -/** - * The "batchReports" collection of methods. - * Typical usage is: - * - * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); - * $batchReports = $youtubeAnalyticsService->batchReports; - * - */ -class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Service_Resource -{ - - /** - * Retrieves a list of processed batch reports. (batchReports.listBatchReports) - * - * @param string $batchReportDefinitionId The batchReportDefinitionId parameter - * specifies the ID of the batch reportort definition for which you are - * retrieving reports. - * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * identifies the content owner that the user is acting on behalf of. - * @param array $optParams Optional parameters. - * @return Google_Service_YouTubeAnalytics_BatchReportList - */ - public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwner, $optParams = array()) - { - $params = array('batchReportDefinitionId' => $batchReportDefinitionId, 'onBehalfOfContentOwner' => $onBehalfOfContentOwner); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportList"); - } -} - -/** - * The "groupItems" collection of methods. - * Typical usage is: - * - * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); - * $groupItems = $youtubeAnalyticsService->groupItems; - * - */ -class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource -{ - - /** - * Removes an item from a group. (groupItems.delete) - * - * @param string $id The id parameter specifies the YouTube group item ID for - * the group that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a group item. (groupItems.insert) - * - * @param Google_GroupItem $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTubeAnalytics_GroupItem - */ - public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem"); - } - - /** - * Returns a collection of group items that match the API request parameters. - * (groupItems.listGroupItems) - * - * @param string $groupId The id parameter specifies the unique ID of the group - * for which you want to retrieve group items. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTubeAnalytics_GroupItemListResponse - */ - public function listGroupItems($groupId, $optParams = array()) - { - $params = array('groupId' => $groupId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse"); - } -} - -/** - * The "groups" collection of methods. - * Typical usage is: - * - * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); - * $groups = $youtubeAnalyticsService->groups; - * - */ -class Google_Service_YouTubeAnalytics_Groups_Resource extends Google_Service_Resource -{ - - /** - * Deletes a group. (groups.delete) - * - * @param string $id The id parameter specifies the YouTube group ID for the - * group that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Creates a group. (groups.insert) - * - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTubeAnalytics_Group - */ - public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group"); - } - - /** - * Returns a collection of groups that match the API request parameters. For - * example, you can retrieve all groups that the authenticated user owns, or you - * can retrieve one or more groups by their unique IDs. (groups.listGroups) - * - * @param array $optParams Optional parameters. - * - * @opt_param string id The id parameter specifies a comma-separated list of the - * YouTube group ID(s) for the resource(s) that are being retrieved. In a group - * resource, the id property specifies the group's YouTube group ID. - * @opt_param bool mine Set this parameter's value to true to instruct the API - * to only return groups owned by the authenticated user. - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken property identifies the next page that can be retrieved. - * @return Google_Service_YouTubeAnalytics_GroupListResponse - */ - public function listGroups($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse"); - } - - /** - * Modifies a group. For example, you could change a group's title. - * (groups.update) - * - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner Note: This parameter is intended - * exclusively for YouTube content partners. - * - * The onBehalfOfContentOwner parameter indicates that the request's - * authorization credentials identify a YouTube CMS user who is acting on behalf - * of the content owner specified in the parameter value. This parameter is - * intended for YouTube content partners that own and manage many different - * YouTube channels. It allows content owners to authenticate once and get - * access to all their video and channel data, without having to provide - * authentication credentials for each individual channel. The CMS account that - * the user authenticates with must be linked to the specified YouTube content - * owner. - * @return Google_Service_YouTubeAnalytics_Group - */ - public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); - * $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 $startDate The start date for fetching YouTube Analytics data. - * The value should be in YYYY-MM-DD format. - * @param string $endDate The end date for fetching YouTube Analytics data. The - * value should be in YYYY-MM-DD format. - * @param string $metrics A comma-separated list of YouTube Analytics metrics, - * such as views or likes,dislikes. See the Available Reports document for a - * list of the reports that you can retrieve and the metrics available in each - * report, and see the Metrics document for definitions of those metrics. - * @param array $optParams Optional parameters. - * - * @opt_param string currency The currency to which financial metrics should be - * converted. The default is US Dollar (USD). If the result contains no - * financial metrics, this flag will be ignored. Responds with an error if the - * specified currency is not recognized. - * @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, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_YouTubeAnalytics_ResultTable"); - } -} - - - - -class Google_Service_YouTubeAnalytics_BatchReport extends Google_Collection -{ - protected $collection_key = 'outputs'; - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportOutputs'; - protected $outputsDataType = 'array'; - public $reportId; - protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTimeSpan'; - protected $timeSpanDataType = ''; - public $timeUpdated; - - - 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 setOutputs($outputs) - { - $this->outputs = $outputs; - } - public function getOutputs() - { - return $this->outputs; - } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } - public function getReportId() - { - return $this->reportId; - } - public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTimeSpan $timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } - public function setTimeUpdated($timeUpdated) - { - $this->timeUpdated = $timeUpdated; - } - public function getTimeUpdated() - { - return $this->timeUpdated; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportDefinition extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - public $name; - public $status; - public $type; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinition'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReport'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportOutputs extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $downloadUrl; - public $format; - public $type; - - - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } - public function getDownloadUrl() - { - return $this->downloadUrl; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportTimeSpan extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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_YouTubeAnalytics_Group extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet'; - protected $snippetDataType = ''; - - - public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $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_YouTubeAnalytics_GroupSnippet $snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} - -class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $itemCount; - public $itemType; - - - public function setItemCount($itemCount) - { - $this->itemCount = $itemCount; - } - public function getItemCount() - { - return $this->itemCount; - } - public function setItemType($itemType) - { - $this->itemType = $itemType; - } - public function getItemType() - { - return $this->itemType; - } -} - -class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $etag; - public $groupId; - public $id; - public $kind; - protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource'; - protected $resourceDataType = ''; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - public function getGroupId() - { - return $this->groupId; - } - 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 setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource) - { - $this->resource = $resource; - } - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $kind; - - - 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_YouTubeAnalytics_GroupListResponse extends Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - public $etag; - protected $itemsType = 'Google_Service_YouTubeAnalytics_Group'; - protected $itemsDataType = 'array'; - 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_YouTubeAnalytics_GroupSnippet extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $publishedAt; - public $title; - - - 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_YouTubeAnalytics_ResultTable extends Google_Collection -{ - protected $collection_key = 'rows'; - protected $internal_gapi_mappings = array( - ); - protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; - protected $columnHeadersDataType = 'array'; - 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 -{ - protected $internal_gapi_mappings = array( - ); - 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; - } -} diff --git a/src/Google/Service/YouTubeReporting.php b/src/Google/Service/YouTubeReporting.php deleted file mode 100644 index 583af34f7..000000000 --- a/src/Google/Service/YouTubeReporting.php +++ /dev/null @@ -1,680 +0,0 @@ - - * Schedules reporting jobs and downloads the resulting bulk data reports about - * YouTube channels, videos, etc. in the form of CSV files.

    - * - *

    - * For more information about this service, see the API - * Documentation - *

    - * - * @author Google, Inc. - */ -class Google_Service_YouTubeReporting extends Google_Service -{ - /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_MONETARY_READONLY = - "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; - /** View YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_READONLY = - "https://www.googleapis.com/auth/yt-analytics.readonly"; - - public $jobs; - public $jobs_reports; - public $media; - public $reportTypes; - - - /** - * Constructs the internal representation of the YouTubeReporting service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->rootUrl = 'https://youtubereporting.googleapis.com/'; - $this->servicePath = ''; - $this->version = 'v1'; - $this->serviceName = 'youtubereporting'; - - $this->jobs = new Google_Service_YouTubeReporting_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'v1/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'v1/jobs/{jobId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'v1/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v1/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->jobs_reports = new Google_Service_YouTubeReporting_JobsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'get' => array( - 'path' => 'v1/jobs/{jobId}/reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'v1/jobs/{jobId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->media = new Google_Service_YouTubeReporting_Media_Resource( - $this, - $this->serviceName, - 'media', - array( - 'methods' => array( - 'download' => array( - 'path' => 'v1/media/{+resourceName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'resourceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reportTypes = new Google_Service_YouTubeReporting_ReportTypes_Resource( - $this, - $this->serviceName, - 'reportTypes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1/reportTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $youtubereportingService = new Google_Service_YouTubeReporting(...); - * $jobs = $youtubereportingService->jobs; - * - */ -class Google_Service_YouTubeReporting_Jobs_Resource extends Google_Service_Resource -{ - - /** - * Creates a job and returns it. (jobs.create) - * - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @return Google_Service_YouTubeReporting_Job - */ - public function create(Google_Service_YouTubeReporting_Job $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_YouTubeReporting_Job"); - } - - /** - * Deletes a job. (jobs.delete) - * - * @param string $jobId The ID of the job to delete. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @return Google_Service_YouTubeReporting_Empty - */ - public function delete($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_YouTubeReporting_Empty"); - } - - /** - * Gets a job. (jobs.get) - * - * @param string $jobId The ID of the job to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @return Google_Service_YouTubeReporting_Job - */ - public function get($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_YouTubeReporting_Job"); - } - - /** - * Lists jobs. (jobs.listJobs) - * - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @opt_param int pageSize Requested page size. Server may return fewer jobs - * than requested. If unspecified, server will pick an appropriate default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportTypesResponse.next_page_token returned in response to the previous - * call to the `ListJobs` method. - * @return Google_Service_YouTubeReporting_ListJobsResponse - */ - public function listJobs($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListJobsResponse"); - } -} - -/** - * The "reports" collection of methods. - * Typical usage is: - * - * $youtubereportingService = new Google_Service_YouTubeReporting(...); - * $reports = $youtubereportingService->reports; - * - */ -class Google_Service_YouTubeReporting_JobsReports_Resource extends Google_Service_Resource -{ - - /** - * Gets the metadata of a specific report. (reports.get) - * - * @param string $jobId The ID of the job. - * @param string $reportId The ID of the report to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @return Google_Service_YouTubeReporting_Report - */ - public function get($jobId, $reportId, $optParams = array()) - { - $params = array('jobId' => $jobId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_YouTubeReporting_Report"); - } - - /** - * Lists reports created by a specific job. Returns NOT_FOUND if the job does - * not exist. (reports.listJobsReports) - * - * @param string $jobId The ID of the job. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @opt_param int pageSize Requested page size. Server may return fewer report - * types than requested. If unspecified, server will pick an appropriate - * default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportsResponse.next_page_token returned in response to the previous call - * to the `ListReports` method. - * @opt_param string createdAfter If set, only reports created after the - * specified date/time are returned. - * @return Google_Service_YouTubeReporting_ListReportsResponse - */ - public function listJobsReports($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportsResponse"); - } -} - -/** - * The "media" collection of methods. - * Typical usage is: - * - * $youtubereportingService = new Google_Service_YouTubeReporting(...); - * $media = $youtubereportingService->media; - * - */ -class Google_Service_YouTubeReporting_Media_Resource extends Google_Service_Resource -{ - - /** - * Method for media download. Download is supported on the URI - * `/v1/media/{+name}?alt=media`. (media.download) - * - * @param string $resourceName Name of the media that is being downloaded. See - * ByteStream.ReadRequest.resource_name. - * @param array $optParams Optional parameters. - * @return Google_Service_YouTubeReporting_Media - */ - public function download($resourceName, $optParams = array()) - { - $params = array('resourceName' => $resourceName); - $params = array_merge($params, $optParams); - return $this->call('download', array($params), "Google_Service_YouTubeReporting_Media"); - } -} - -/** - * The "reportTypes" collection of methods. - * Typical usage is: - * - * $youtubereportingService = new Google_Service_YouTubeReporting(...); - * $reportTypes = $youtubereportingService->reportTypes; - * - */ -class Google_Service_YouTubeReporting_ReportTypes_Resource extends Google_Service_Resource -{ - - /** - * Lists report types. (reportTypes.listReportTypes) - * - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). - * @opt_param int pageSize Requested page size. Server may return fewer report - * types than requested. If unspecified, server will pick an appropriate - * default. - * @opt_param string pageToken A token identifying a page of results the server - * should return. Typically, this is the value of - * ListReportTypesResponse.next_page_token returned in response to the previous - * call to the `ListReportTypes` method. - * @return Google_Service_YouTubeReporting_ListReportTypesResponse - */ - public function listReportTypes($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportTypesResponse"); - } -} - - - - -class Google_Service_YouTubeReporting_Empty extends Google_Model -{ -} - -class Google_Service_YouTubeReporting_Job extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $id; - public $name; - public $reportTypeId; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setReportTypeId($reportTypeId) - { - $this->reportTypeId = $reportTypeId; - } - public function getReportTypeId() - { - return $this->reportTypeId; - } -} - -class Google_Service_YouTubeReporting_ListJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_YouTubeReporting_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_YouTubeReporting_ListReportTypesResponse extends Google_Collection -{ - protected $collection_key = 'reportTypes'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $reportTypesType = 'Google_Service_YouTubeReporting_ReportType'; - protected $reportTypesDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReportTypes($reportTypes) - { - $this->reportTypes = $reportTypes; - } - public function getReportTypes() - { - return $this->reportTypes; - } -} - -class Google_Service_YouTubeReporting_ListReportsResponse extends Google_Collection -{ - protected $collection_key = 'reports'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $reportsType = 'Google_Service_YouTubeReporting_Report'; - protected $reportsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReports($reports) - { - $this->reports = $reports; - } - public function getReports() - { - return $this->reports; - } -} - -class Google_Service_YouTubeReporting_Media extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $resourceName; - - - public function setResourceName($resourceName) - { - $this->resourceName = $resourceName; - } - public function getResourceName() - { - return $this->resourceName; - } -} - -class Google_Service_YouTubeReporting_Report extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $createTime; - public $downloadUrl; - public $endTime; - public $id; - public $jobId; - public $startTime; - - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } - public function getDownloadUrl() - { - return $this->downloadUrl; - } - 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 setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Google_Service_YouTubeReporting_ReportType extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $name; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } -} diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index 39bb87b86..ec8465773 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -91,13 +91,12 @@ public function testModelMutation() public function testVariantTypes() { - $feature = new Google_Service_MapsEngine_Feature(); - $geometry = new Google_Service_MapsEngine_GeoJsonPoint(); - $geometry->setCoordinates(array(1, 0)); - $feature->setGeometry($geometry); - $data = json_decode(json_encode($feature->toSimpleObject()), true); - $this->assertEquals('Point', $data['geometry']['type']); - $this->assertEquals(1, $data['geometry']['coordinates'][0]); + $file = new Google_Service_Drive_DriveFile(); + $metadata = new Google_Service_Drive_DriveFileImageMediaMetadata(); + $metadata->setCameraMake('Pokémon Snap'); + $file->setImageMediaMetadata($metadata); + $data = json_decode(json_encode($file->toSimpleObject()), true); + $this->assertEquals('Pokémon Snap', $data['imageMediaMetadata']['cameraMake']); } public function testOddMappingNames() From 76fd394786c3db7a6f21df4657a13267cecc7e2e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 15 Mar 2016 11:22:17 -0700 Subject: [PATCH 0962/1274] passes in cache to token verifier by default --- src/Google/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 234d526a9..9a38edc82 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -663,7 +663,8 @@ public function revokeToken($token = null) public function verifyIdToken($idToken = null) { $tokenVerifier = new Google_AccessToken_Verify( - $this->getHttpClient() + $this->getHttpClient(), + $this->getCache() ); if (is_null($idToken)) { From bb90330039782d1dbcfd8a560740efd032ee4283 Mon Sep 17 00:00:00 2001 From: danielmirchandani Date: Wed, 6 Apr 2016 21:51:35 -0400 Subject: [PATCH 0963/1274] ExpiredException didn't have the correct namespace --- src/Google/AccessToken/Verify.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index e5f7ad46d..3e35f2f04 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -16,6 +16,7 @@ * limitations under the License. */ +use Firebase\JWT\ExpiredException as ExpiredExceptionV3; use Google\Auth\CacheInterface; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; @@ -107,6 +108,8 @@ public function verifyIdToken($idToken, $audience = null) return (array) $payload; } catch (ExpiredException $e) { return false; + } catch (ExpiredExceptionV3 $e) { + return false; } catch (DomainException $e) { // continue } From d5dd04c721da41dc95c1ffb609267c8640a91daf Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 27 Apr 2016 14:24:56 -0700 Subject: [PATCH 0964/1274] Create README.md --- src/Google/Service/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/Google/Service/README.md diff --git a/src/Google/Service/README.md b/src/Google/Service/README.md new file mode 100644 index 000000000..0de486206 --- /dev/null +++ b/src/Google/Service/README.md @@ -0,0 +1,5 @@ +# Google API Client Services + +Google API Client Service classes have been moved to the +[google-api-php-client-services](https://github.com/google/google-api-php-client-services) +repository. From f872fea738b8d2deea0a41f070929a67797e5349 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 13 May 2016 13:44:11 -0700 Subject: [PATCH 0965/1274] adds PSR-6 and removes custom caching (#943) * adds PSR-6 and removes custom caching * Adds callback * documents these changes in the README --- README.md | 33 ++- composer.json | 13 +- src/Google/AccessToken/Verify.php | 45 +-- src/Google/AuthHandler/AuthHandlerFactory.php | 6 +- src/Google/AuthHandler/Guzzle5AuthHandler.php | 18 +- src/Google/AuthHandler/Guzzle6AuthHandler.php | 18 +- src/Google/Cache/Apc.php | 125 --------- src/Google/Cache/Exception.php | 20 -- src/Google/Cache/File.php | 259 ------------------ src/Google/Cache/Memcache.php | 184 ------------- src/Google/Cache/Memory.php | 51 ---- src/Google/Cache/Null.php | 50 ---- src/Google/Client.php | 49 +++- tests/BaseTest.php | 13 +- tests/Google/AccessToken/VerifyTest.php | 2 +- tests/Google/CacheTest.php | 190 ------------- tests/Google/ClientTest.php | 48 +++- tests/clearToken.php | 5 +- tests/examples/batchTest.php | 2 +- tests/examples/serviceAccountTest.php | 2 +- 20 files changed, 190 insertions(+), 943 deletions(-) delete mode 100644 src/Google/Cache/Apc.php delete mode 100644 src/Google/Cache/Exception.php delete mode 100644 src/Google/Cache/File.php delete mode 100644 src/Google/Cache/Memcache.php delete mode 100644 src/Google/Cache/Memory.php delete mode 100644 src/Google/Cache/Null.php delete mode 100644 tests/Google/CacheTest.php diff --git a/README.md b/README.md index ff747d4bf..ff27d02ed 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ $ php -S localhost:8000 -t examples/ And then browsing to the host and port you specified (in the above example, `http://localhost:8000`). -```PHP +```php // include your composer dependencies require_once 'vendor/autoload.php'; @@ -79,6 +79,33 @@ foreach ($results as $item) { } ``` +### Caching ### + +It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client: + +```php +$cache = new Stash\Pool(new Stash\Driver\FileSystem); +$client->setCache($cache); +``` + +In this example we use [StashPHP](http://www.stashphp.com/). Add this to your project with composer: + +``` +composer require tedivm/stash +``` + +### Updating Tokens ### + +When using [Refresh Tokens](https://developers.google.com/identity/protocols/OAuth2InstalledApp#refresh) or [Service Account Credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview), it may be useful to perform some action when a new access token is granted. To do this, pass a callable to the `setTokenCallback` method on the client: + +```php +$logger = new Monolog\Logger; +$tokenCallback = function ($cacheKey, $accessToken) use ($logger) { + $logger->debug(sprintf('new access token received at cache key %s', $cacheKey)); +}; +$client->setTokenCallback($tokenCallback); +``` + ### Service Specific Examples ### YouTube: https://github.com/youtube/api-samples/tree/master/php @@ -87,9 +114,9 @@ YouTube: https://github.com/youtube/api-samples/tree/master/php ### What do I do if something isn't working? ### -For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client +For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client -If there is a specific bug with the library, please file a issue in the Github issues tracker, including a (minimal) example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. +If there is a specific bug with the library, please [file a issue](/Google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. ### How do I contribute? ### diff --git a/composer.json b/composer.json index 000b3f358..409a48d23 100644 --- a/composer.json +++ b/composer.json @@ -7,20 +7,23 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.7", + "google/auth": "0.8", "google/apiclient-services": "*@dev", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", "guzzlehttp/guzzle": "~5.2|~6.0", - "guzzlehttp/psr7": "1.2.*", - "psr/http-message": "1.0.*" + "guzzlehttp/psr7": "^1.2" }, "require-dev": { "phpunit/phpunit": "~4", "squizlabs/php_codesniffer": "~2.3", - "symfony/dom-crawler": "~2.0", - "symfony/css-selector": "~2.0" + "symfony/dom-crawler": "~2.1", + "symfony/css-selector": "~2.1", + "tedivm/stash": "^0.14.1" + }, + "suggest": { + "tedivm/stash": "For caching certs and tokens (using Google_Client::setCache)" }, "autoload": { "psr-0": { diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 3e35f2f04..2e8d4770d 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -17,11 +17,13 @@ */ use Firebase\JWT\ExpiredException as ExpiredExceptionV3; -use Google\Auth\CacheInterface; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use phpseclib\Crypt\RSA; use phpseclib\Math\BigInteger; +use Psr\Cache\CacheItemPoolInterface; +use Stash\Driver\FileSystem; +use Stash\Pool; /** * Wrapper around Google Access Tokens which provides convenience functions @@ -39,7 +41,7 @@ class Google_AccessToken_Verify private $http; /** - * @var Google\Auth\CacheInterface cache class + * @var Psr\Cache\CacheItemPoolInterface cache class */ private $cache; @@ -47,12 +49,16 @@ class Google_AccessToken_Verify * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. */ - public function __construct(ClientInterface $http = null, CacheInterface $cache = null) + public function __construct(ClientInterface $http = null, CacheItemPoolInterface $cache = null) { if (is_null($http)) { $http = new Client(); } + if (is_null($cache) && class_exists('Stash\Pool')) { + $cache = new Pool(new FileSystem); + } + $this->http = $http; $this->cache = $cache; $this->jwt = $this->getJwtService(); @@ -120,20 +126,9 @@ public function verifyIdToken($idToken, $audience = null) private function getCache() { - if (!$this->cache) { - $this->cache = $this->createDefaultCache(); - } - return $this->cache; } - private function createDefaultCache() - { - return new Google_Cache_File( - sys_get_temp_dir().'/google-api-php-client' - ); - } - /** * Retrieve and cache a certificates file. * @@ -174,14 +169,22 @@ private function retrieveCertsFromLocation($url) // are PEM encoded certificates. private function getFederatedSignOnCerts() { - $cache = $this->getCache(); + $certs = null; + if ($cache = $this->getCache()) { + $cacheItem = $cache->getItem('federated_signon_certs_v3', 3600); + $certs = $cacheItem->get(); + } - if (!$certs = $cache->get('federated_signon_certs_v3', 3600)) { + + if (!$certs) { $certs = $this->retrieveCertsFromLocation( self::FEDERATED_SIGNON_CERT_URL ); - $cache->set('federated_signon_certs_v3', $certs); + if ($cache) { + $cacheItem->set($certs); + $cache->save($cacheItem); + } } if (!isset($certs['keys'])) { @@ -200,9 +203,11 @@ private function getJwtService() $jwtClass = 'Firebase\JWT\JWT'; } - // adds 1 second to JWT leeway - // @see https://github.com/google/google-api-php-client/issues/827 - $jwtClass::$leeway = 1; + if (property_exists($jwtClass, 'leeway')) { + // adds 1 second to JWT leeway + // @see https://github.com/google/google-api-php-client/issues/827 + $jwtClass::$leeway = 1; + } return new $jwtClass; } diff --git a/src/Google/AuthHandler/AuthHandlerFactory.php b/src/Google/AuthHandler/AuthHandlerFactory.php index 4f2155a63..f1a3229ae 100644 --- a/src/Google/AuthHandler/AuthHandlerFactory.php +++ b/src/Google/AuthHandler/AuthHandlerFactory.php @@ -26,15 +26,15 @@ class Google_AuthHandler_AuthHandlerFactory * @return Google_AuthHandler_Guzzle5AuthHandler|Google_AuthHandler_Guzzle6AuthHandler * @throws Exception */ - public static function build($cache = null) + public static function build($cache = null, array $cacheConfig = []) { $version = ClientInterface::VERSION; switch ($version[0]) { case '5': - return new Google_AuthHandler_Guzzle5AuthHandler($cache); + return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig); case '6': - return new Google_AuthHandler_Guzzle6AuthHandler($cache); + return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig); default: throw new Exception('Version not supported'); } diff --git a/src/Google/AuthHandler/Guzzle5AuthHandler.php b/src/Google/AuthHandler/Guzzle5AuthHandler.php index 2d4d620bf..d3a4b0379 100644 --- a/src/Google/AuthHandler/Guzzle5AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle5AuthHandler.php @@ -1,6 +1,5 @@ cache = $cache; + $this->cacheConfig = $cacheConfig; } - public function attachCredentials(ClientInterface $http, CredentialsLoader $credentials) - { + public function attachCredentials( + ClientInterface $http, + CredentialsLoader $credentials, + callable $tokenCallback = null + ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. @@ -30,9 +35,10 @@ public function attachCredentials(ClientInterface $http, CredentialsLoader $cred $authHttpHandler = HttpHandlerFactory::build($authHttp); $subscriber = new AuthTokenSubscriber( $credentials, - [], + $this->cacheConfig, $this->cache, - $authHttpHandler + $authHttpHandler, + $tokenCallback ); $http->setDefaultOption('auth', 'google_auth'); diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php index 696723b5d..fb743e601 100644 --- a/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -1,6 +1,5 @@ cache = $cache; + $this->cacheConfig = $cacheConfig; } - public function attachCredentials(ClientInterface $http, CredentialsLoader $credentials) - { + public function attachCredentials( + ClientInterface $http, + CredentialsLoader $credentials, + callable $tokenCallback = null + ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. @@ -30,9 +35,10 @@ public function attachCredentials(ClientInterface $http, CredentialsLoader $cred $authHttpHandler = HttpHandlerFactory::build($authHttp); $middleware = new AuthTokenMiddleware( $credentials, - [], + $this->cacheConfig, $this->cache, - $authHttpHandler + $authHttpHandler, + $tokenCallback ); $config = $http->getConfig(); diff --git a/src/Google/Cache/Apc.php b/src/Google/Cache/Apc.php deleted file mode 100644 index f3bb1afe3..000000000 --- a/src/Google/Cache/Apc.php +++ /dev/null @@ -1,125 +0,0 @@ - - */ -class Google_Cache_Apc implements CacheInterface -{ - /** - * @var Psr\Log\LoggerInterface logger - */ - private $logger; - - public function __construct(LoggerInterface $logger = null) - { - $this->logger = $logger; - - if (! function_exists('apc_add') ) { - $error = "Apc functions not available"; - - $this->log('error', $error); - throw new Google_Cache_Exception($error); - } - } - - /** - * @inheritDoc - */ - public function get($key, $expiration = false) - { - $ret = apc_fetch($key); - if ($ret === false) { - $this->log( - 'debug', - 'APC cache miss', - array('key' => $key) - ); - return false; - } - if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->log( - 'debug', - 'APC cache miss (expired)', - array('key' => $key, 'var' => $ret) - ); - $this->delete($key); - return false; - } - - $this->log( - 'debug', - 'APC cache hit', - array('key' => $key, 'var' => $ret) - ); - - return $ret['data']; - } - - /** - * @inheritDoc - */ - public function set($key, $value) - { - $var = array('time' => time(), 'data' => $value); - $rc = apc_store($key, $var); - - if ($rc == false) { - $this->log( - 'error', - 'APC cache set failed', - array('key' => $key, 'var' => $var) - ); - throw new Google_Cache_Exception("Couldn't store data"); - } - - $this->log( - 'debug', - 'APC cache set', - array('key' => $key, 'var' => $var) - ); - } - - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - $this->log( - 'debug', - 'APC cache delete', - array('key' => $key) - ); - apc_delete($key); - } - - private function log($level, $message, $context = array()) - { - if ($this->logger) { - $this->logger->log($level, $message, $context); - } - } -} diff --git a/src/Google/Cache/Exception.php b/src/Google/Cache/Exception.php deleted file mode 100644 index 6e4102e43..000000000 --- a/src/Google/Cache/Exception.php +++ /dev/null @@ -1,20 +0,0 @@ - - */ -class Google_Cache_File implements CacheInterface -{ - const MAX_LOCK_RETRIES = 10; - private $path; - private $fh; - - /** - * @var use Psr\Log\LoggerInterface logger - */ - private $logger; - - public function __construct($path, LoggerInterface $logger = null) - { - $this->path = $path; - $this->logger = $logger; - } - - public function get($key, $expiration = false) - { - $storageFile = $this->getCacheFile($key); - $data = false; - - if (!file_exists($storageFile)) { - $this->log( - 'debug', - 'File cache miss', - array('key' => $key, 'file' => $storageFile) - ); - return false; - } - - if ($expiration) { - $mtime = filemtime($storageFile); - if ((time() - $mtime) >= $expiration) { - $this->log( - 'debug', - 'File cache miss (expired)', - array('key' => $key, 'file' => $storageFile) - ); - $this->delete($key); - return false; - } - } - - if ($this->acquireReadLock($storageFile)) { - if (filesize($storageFile) > 0) { - $data = fread($this->fh, filesize($storageFile)); - $data = unserialize($data); - } else { - $this->log( - 'debug', - 'Cache file was empty', - array('file' => $storageFile) - ); - } - $this->unlock(); - } - - $this->log( - 'debug', - 'File cache hit', - array('key' => $key, 'file' => $storageFile, 'var' => $data) - ); - - return $data; - } - - public function set($key, $value) - { - $storageFile = $this->getWriteableCacheFile($key); - if ($this->acquireWriteLock($storageFile)) { - // We serialize the whole request object, since we don't only want the - // responseContent but also the postBody used, headers, size, etc. - $data = serialize($value); - fwrite($this->fh, $data); - $this->unlock(); - - $this->log( - 'debug', - 'File cache set', - array('key' => $key, 'file' => $storageFile, 'var' => $value) - ); - } else { - $this->log( - 'notice', - 'File cache set failed', - array('key' => $key, 'file' => $storageFile) - ); - } - } - - public function delete($key) - { - $file = $this->getCacheFile($key); - if (file_exists($file) && !unlink($file)) { - $this->log( - 'error', - 'File cache delete failed', - array('key' => $key, 'file' => $file) - ); - throw new Google_Cache_Exception("Cache file could not be deleted"); - } - - $this->log( - 'debug', - 'File cache delete', - array('key' => $key, 'file' => $file) - ); - } - - private function getWriteableCacheFile($file) - { - return $this->getCacheFile($file, true); - } - - private function getCacheFile($file, $forWrite = false) - { - return $this->getCacheDir($file, $forWrite) . '/' . md5($file); - } - - private function getCacheDir($file, $forWrite) - { - // use the first 2 characters of the hash as a directory prefix - // this should prevent slowdowns due to huge directory listings - // and thus give some basic amount of scalability - $fileHash = substr(md5($file), 0, 2); - $processUser = null; - if (function_exists('posix_geteuid')) { - $processUser = posix_getpwuid(posix_geteuid())['name']; - } elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - $processUser = get_current_user(); - } - if (empty($processUser)) { - $this->log( - 'notice', - 'Process User get failed' - ); - } - $userHash = md5($processUser); - $dirHash = $userHash . DIRECTORY_SEPARATOR . $fileHash; - - // trim the directory separator from the path to prevent double separators - $rootCacheDir = rtrim($this->path, DIRECTORY_SEPARATOR); - $storageDir = $rootCacheDir . DIRECTORY_SEPARATOR . $dirHash; - - if ($forWrite && !is_dir($storageDir)) { - // create root dir - if (!is_dir($rootCacheDir)) { - if (!mkdir($rootCacheDir, 0777, true)) { - $this->log( - 'error', - 'File cache creation failed', - array('dir' => $rootCacheDir) - ); - throw new Google_Cache_Exception("Could not create cache directory: $rootCacheDir"); - } - } - - // create dir for file - if (!mkdir($storageDir, 0700, true)) { - $this->log( - 'error', - 'File cache creation failed', - array('dir' => $storageDir) - ); - throw new Google_Cache_Exception("Could not create cache directory: $storageDir"); - } - } - - return $storageDir; - } - - private function acquireReadLock($storageFile) - { - return $this->acquireLock(LOCK_SH, $storageFile); - } - - private function acquireWriteLock($storageFile) - { - $rc = $this->acquireLock(LOCK_EX, $storageFile); - if (!$rc) { - $this->log( - 'notice', - 'File cache write lock failed', - array('file' => $storageFile) - ); - $this->delete($storageFile); - } - return $rc; - } - - private function acquireLock($type, $storageFile) - { - $mode = $type == LOCK_EX ? "w" : "r"; - $this->fh = fopen($storageFile, $mode); - if (!$this->fh) { - $this->log( - 'error', - 'Failed to open file during lock acquisition', - array('file' => $storageFile) - ); - return false; - } - if ($type == LOCK_EX) { - chmod($storageFile, 0600); - } - $count = 0; - while (!flock($this->fh, $type | LOCK_NB)) { - // Sleep for 10ms. - usleep(10000); - if (++$count < self::MAX_LOCK_RETRIES) { - return false; - } - } - return true; - } - - public function unlock() - { - if ($this->fh) { - flock($this->fh, LOCK_UN); - } - } - - private function log($level, $message, $context = array()) - { - if ($this->logger) { - $this->logger->log($level, $message, $context); - } - } -} diff --git a/src/Google/Cache/Memcache.php b/src/Google/Cache/Memcache.php deleted file mode 100644 index ba4c6514b..000000000 --- a/src/Google/Cache/Memcache.php +++ /dev/null @@ -1,184 +0,0 @@ - - */ -class Google_Cache_Memcache implements CacheInterface -{ - private $connection = false; - private $mc = false; - private $host; - private $port; - - /** - * @var use Psr\Log\LoggerInterface logger - */ - private $logger; - - public function __construct($host = null, $port = null, LoggerInterface $logger = null) - { - $this->logger = $logger; - - if (!function_exists('memcache_connect') && !class_exists("Memcached")) { - $error = "Memcache functions not available"; - - $this->log('error', $error); - throw new Google_Cache_Exception($error); - } - - $this->host = $host; - $this->port = $port; - } - - /** - * @inheritDoc - */ - public function get($key, $expiration = false) - { - $this->connect(); - $ret = false; - if ($this->mc) { - $ret = $this->mc->get($key); - } else { - $ret = memcache_get($this->connection, $key); - } - if ($ret === false) { - $this->log( - 'debug', - 'Memcache cache miss', - array('key' => $key) - ); - return false; - } - if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->log( - 'debug', - 'Memcache cache miss (expired)', - array('key' => $key, 'var' => $ret) - ); - $this->delete($key); - return false; - } - - $this->log( - 'debug', - 'Memcache cache hit', - array('key' => $key, 'var' => $ret) - ); - - return $ret['data']; - } - - /** - * @inheritDoc - * @param string $key - * @param string $value - * @throws Google_Cache_Exception - */ - public function set($key, $value) - { - $this->connect(); - // we store it with the cache_time default expiration so objects will at - // least get cleaned eventually. - $data = array('time' => time(), 'data' => $value); - $rc = false; - if ($this->mc) { - $rc = $this->mc->set($key, $data); - } else { - $rc = memcache_set($this->connection, $key, $data, false); - } - if ($rc == false) { - $this->log( - 'error', - 'Memcache cache set failed', - array('key' => $key, 'var' => $data) - ); - - throw new Google_Cache_Exception("Couldn't store data in cache"); - } - - $this->log( - 'debug', - 'Memcache cache set', - array('key' => $key, 'var' => $data) - ); - } - - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - $this->connect(); - if ($this->mc) { - $this->mc->delete($key, 0); - } else { - memcache_delete($this->connection, $key, 0); - } - - $this->log( - 'debug', - 'Memcache cache delete', - array('key' => $key) - ); - } - - /** - * Lazy initialiser for memcache connection. Uses pconnect for to take - * advantage of the persistence pool where possible. - */ - private function connect() - { - if ($this->connection) { - return; - } - - if (class_exists("Memcached")) { - $this->mc = new Memcached(); - $this->mc->addServer($this->host, $this->port); - $this->connection = true; - } else { - $this->connection = memcache_pconnect($this->host, $this->port); - } - - if (! $this->connection) { - $error = "Couldn't connect to memcache server"; - - $this->log('error', $error); - throw new Google_Cache_Exception($error); - } - } - - private function log($level, $message, $context = array()) - { - if ($this->logger) { - $this->logger->log($level, $message, $context); - } - } -} diff --git a/src/Google/Cache/Memory.php b/src/Google/Cache/Memory.php deleted file mode 100644 index 97e10696b..000000000 --- a/src/Google/Cache/Memory.php +++ /dev/null @@ -1,51 +0,0 @@ -cache[$key]) ? $this->cache[$key] : false; - } - - /** - * @inheritDoc - */ - public function set($key, $value) - { - $this->cache[$key] = $value; - } - - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - unset($this->cache[$key]); - } -} diff --git a/src/Google/Cache/Null.php b/src/Google/Cache/Null.php deleted file mode 100644 index 723df9f93..000000000 --- a/src/Google/Cache/Null.php +++ /dev/null @@ -1,50 +0,0 @@ - array(), + + // cache config for downstream auth caching + 'cache_config' => [], + + // function to be called when an access token is fetched + // follows the signature function ($cacheKey, $accessToken) + 'token_callback' => null, ], $config ); @@ -359,7 +366,8 @@ public function authorize(ClientInterface $http = null, ClientInterface $authHtt $authHandler = $this->getAuthHandler(); if ($credentials) { - $http = $authHandler->attachCredentials($http, $credentials); + $callback = $this->config['token_callback']; + $http = $authHandler->attachCredentials($http, $credentials, $callback); } elseif ($token) { $http = $authHandler->attachToken($http, $token, (array) $scopes); } elseif ($key = $this->config['developer_key']) { @@ -604,6 +612,7 @@ public function setHostedDomain($hd) { $this->config['hd'] = $hd; } + /** * Set the prompt hint. Valid values are none, consent and select_account. * If no value is specified and the user has not previously authorized @@ -614,6 +623,7 @@ public function setPrompt($prompt) { $this->config['prompt'] = $prompt; } + /** * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which @@ -624,6 +634,7 @@ public function setOpenidRealm($realm) { $this->config['openid.realm'] = $realm; } + /** * If this is provided with the value true, and the authorization request is * granted, the authorization will include any previous authorizations @@ -635,6 +646,15 @@ public function setIncludeGrantedScopes($include) $this->config['include_granted_scopes'] = $include; } + /** + * sets function to be called when an access token is fetched + * @param callable $tokenCallback - function ($cacheKey, $accessToken) + */ + public function setTokenCallback(callable $tokenCallback) + { + $this->config['token_callback'] = $tokenCallback; + } + /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. @@ -918,25 +938,29 @@ protected function createOAuth2Service() /** * Set the Cache object - * @param Google\Auth\CacheInterface $cache + * @param Psr\Cache\CacheItemPoolInterface $cache */ - public function setCache(CacheInterface $cache) + public function setCache(CacheItemPoolInterface $cache) { $this->cache = $cache; } /** - * @return Google\Auth\CacheInterface Cache implementation + * @return Psr\Cache\CacheItemPoolInterface Cache implementation */ public function getCache() { - if (is_null($this->cache)) { - $this->cache = new Google_Cache_Memory(); - } - return $this->cache; } + /** + * @return Google\Auth\CacheInterface Cache implementation + */ + public function setCacheConfig(array $cacheConfig) + { + $this->config['cache_config'] = $cacheConfig; + } + /** * Set the Logger object * @param Psr\Log\LoggerInterface $logger @@ -1050,7 +1074,10 @@ protected function getAuthHandler() // sessions. // // @see https://github.com/google/google-api-php-client/issues/821 - return Google_AuthHandler_AuthHandlerFactory::build($this->getCache()); + return Google_AuthHandler_AuthHandlerFactory::build( + $this->getCache(), + $this->config['cache_config'] + ); } private function createUserRefreshCredentials($scope, $refreshToken) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 70a45726b..905e8b7c3 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -17,6 +17,8 @@ use GuzzleHttp\ClientInterface; use Symfony\Component\DomCrawler\Crawler; +use Stash\Driver\FileSystem; +use Stash\Pool; class BaseTest extends PHPUnit_Framework_TestCase { @@ -35,9 +37,10 @@ public function getClient() return $this->client; } - public function getCache() + public function getCache($path = null) { - return new Google_Cache_File(sys_get_temp_dir().'/google-api-php-client-tests'); + $path = $path ?: sys_get_temp_dir().'/google-api-php-client-tests'; + return new Pool(new FileSystem(['path' => $path])); } private function createClient() @@ -87,12 +90,14 @@ public function checkToken() { $client = $this->getClient(); $cache = $client->getCache(); + $cacheItem = $cache->getItem('access_token'); - if (!$token = $cache->get('access_token')) { + if (!$token = $cacheItem->get()) { if (!$token = $this->tryToGetAnAccessToken($client)) { return $this->markTestSkipped("Test requires access token"); } - $cache->set('access_token', $token); + $cacheItem->set($token); + $cache->save($cacheItem); } $client->setAccessToken($token); diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index cce448144..a6f4ef01d 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -98,7 +98,7 @@ public function testRetrieveCertsFromLocation() $certs = $method->invoke($verify, Google_AccessToken_Verify::FEDERATED_SIGNON_CERT_URL); $this->assertArrayHasKey('keys', $certs); - $this->assertEquals(2, count($certs['keys'])); + $this->assertGreaterThan(1, count($certs['keys'])); $this->assertArrayHasKey('alg', $certs['keys'][0]); $this->assertEquals('RS256', $certs['keys'][0]['alg']); } diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php deleted file mode 100644 index dd684e9ba..000000000 --- a/tests/Google/CacheTest.php +++ /dev/null @@ -1,190 +0,0 @@ -set('foo', 'bar'); - $this->assertEquals($cache->get('foo'), 'bar'); - - $this->getSetDelete($cache); - } - - public function testFileWithTrailingSlash() - { - $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; - $cache = new Google_Cache_File($dir); - $cache->set('foo', 'bar'); - $this->assertEquals($cache->get('foo'), 'bar'); - - $this->getSetDelete($cache); - } - - public function testBaseCacheDirectoryPermissions() - { - $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); - $cache = new Google_Cache_File($dir); - $cache->set('foo', 'bar'); - - $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); - $method->setAccessible(true); - $filename = $method->invoke($cache, 'foo'); - $stat = stat($dir); - - $this->assertEquals(0777 & ~umask(), $stat['mode'] & 0777); - } - - public function testCacheDirectoryPermissions() - { - $dir = sys_get_temp_dir() . '/google-api-php-client/tests/' . rand(); - $cache = new Google_Cache_File($dir); - $cache->set('foo', 'bar'); - - $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); - $method->setAccessible(true); - $filename = $method->invoke($cache, 'foo'); - $stat = stat(dirname($filename)); - - $this->assertEquals(0700, $stat['mode'] & 0777); - } - - public function testCacheFilePermissions() - { - $dir = sys_get_temp_dir() . '/google-api-php-client/tests/'; - $cache = new Google_Cache_File($dir); - $cache->set('foo', 'bar'); - - $method = new ReflectionMethod($cache, 'getWriteableCacheFile'); - $method->setAccessible(true); - $filename = $method->invoke($cache, 'foo'); - $stat = stat($filename); - - $this->assertEquals(0600, $stat['mode'] & 0777); - } - - public function testNull() - { - $cache = new Google_Cache_Null(); - $cache->set('foo', 'bar'); - $cache->delete('foo'); - $this->assertEquals(false, $cache->get('foo')); - - $cache->set('foo.1', 'bar.1'); - $this->assertEquals($cache->get('foo.1'), false); - - $cache->set('foo', 'baz'); - $this->assertEquals($cache->get('foo'), false); - - $cache->set('foo', null); - $cache->delete('foo'); - $this->assertEquals($cache->get('foo'), false); - } - - public function testMemory() - { - $cache = new Google_Cache_Memory(); - $cache->set('foo', 'bar'); - $cache->delete('foo'); - $this->assertEquals(false, $cache->get('foo')); - - $cache->set('foo.1', 'bar.1'); - $this->assertEquals($cache->get('foo.1'), 'bar.1'); - - $cache->set('foo', 'baz'); - $this->assertEquals($cache->get('foo'), 'baz'); - - $cache->delete('foo'); - $this->assertEquals($cache->get('foo'), false); - } - - /** - * @requires extension Memcache - */ - public function testMemcache() - { - $host = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null; - $port = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null; - if (!($host && $port)) { - $this->markTestSkipped('Test requires memcache host and port specified'); - } - - $cache = new Google_Cache_Memcache($host, $port); - - $this->getSetDelete($cache); - } - - /** - * @requires extension APC - */ - public function testAPC() - { - if (!ini_get('apc.enable_cli')) { - $this->markTestSkipped('Test requires APC enabled for CLI'); - } - $cache = new Google_Cache_Apc(); - - $this->getSetDelete($cache); - } - - public function getSetDelete($cache) - { - $cache->set('foo', 'bar'); - $cache->delete('foo'); - $this->assertEquals(false, $cache->get('foo')); - - $cache->set('foo.1', 'bar.1'); - $cache->delete('foo.1'); - $this->assertEquals($cache->get('foo.1'), false); - - $cache->set('foo', 'baz'); - $cache->delete('foo'); - $this->assertEquals($cache->get('foo'), false); - - $cache->set('foo', null); - $cache->delete('foo'); - $this->assertEquals($cache->get('foo'), false); - - $obj = new stdClass(); - $obj->foo = 'bar'; - $cache->set('foo', $obj); - $cache->delete('foo'); - $this->assertEquals($cache->get('foo'), false); - - $cache->set('foo.1', 'bar.1'); - $this->assertEquals($cache->get('foo.1'), 'bar.1'); - - $cache->set('foo', 'baz'); - $this->assertEquals($cache->get('foo'), 'baz'); - - $cache->set('foo', null); - $this->assertEquals($cache->get('foo'), null); - - $cache->set('1/2/3', 'bar'); - $this->assertEquals($cache->get('1/2/3'), 'bar'); - - $obj = new stdClass(); - $obj->foo = 'bar'; - $cache->set('foo', $obj); - $this->assertEquals($cache->get('foo'), $obj); - } -} diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 8369b4eb0..576daf432 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -254,7 +254,7 @@ public function testSettersGetters() $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); - $client->setCache(new Google_Cache_Null()); + $client->setCache($this->getMock('Psr\Cache\CacheItemPoolInterface')); $this->assertEquals('object', gettype($client->getCache())); try { @@ -497,4 +497,50 @@ public function testBadSubjectThrowsException() $this->assertContains('Invalid impersonation prn email address', (string) $response->getBody()); } } + + public function testTokenCallback() + { + $this->checkToken(); + + $client = $this->getClient(); + $accessToken = $client->getAccessToken(); + + if (!isset($accessToken['refresh_token'])) { + $this->markTestSkipped('Refresh Token required'); + } + + // make the auth library think the token is expired + $accessToken['expires_in'] = 0; + $cache = $client->getCache(); + $path = sys_get_temp_dir().'/google-api-php-client-tests-'.time(); + $client->setCache($this->getCache($path)); + $client->setAccessToken($accessToken); + + // create the callback function + $phpunit = $this; + $called = false; + $callback = function ($key, $value) use ($client, $cache, $phpunit, &$called) { + // go back to the previous cache + $client->setCache($cache); + + // assert the expected keys and values + $phpunit->assertContains('https---www.googleapis.com-auth-', $key); + $phpunit->assertNotNull($value); + $called = true; + }; + + // set the token callback to the client + $client->setTokenCallback($callback); + + // make a silly request to obtain a new token + $http = $client->authorize(); + $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + $newToken = $client->getAccessToken(); + + // go back to the previous cache + // (in case callback wasn't called) + $client->setCache($cache); + + $this->assertTrue($called); + } } diff --git a/tests/clearToken.php b/tests/clearToken.php index cd6fc5b2d..c0ef312fc 100644 --- a/tests/clearToken.php +++ b/tests/clearToken.php @@ -2,7 +2,8 @@ include_once __DIR__ . '/bootstrap.php'; $test = new BaseTest(); -print_r($test->getCache()->get('access_token')); -$test->getCache()->delete('access_token'); +$cacheItem = $test->getCache()->getItem('access_token'); +print_r($cacheItem->get()); +$test->getCache()->deleteItem('access_token'); echo "SUCCESS\n"; diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index b721ffd8a..c16ef8bea 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -29,7 +29,7 @@ public function testBatch() $nodes = $crawler->filter('br'); $this->assertEquals(20, count($nodes)); - $this->assertContains('The Life of Henry David Thoreau', $crawler->text()); + $this->assertContains('Life of Henry David Thoreau', $crawler->text()); $this->assertContains('George Bernard Shaw His Life and Works', $crawler->text()); } } \ No newline at end of file diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php index 3bef7133d..b12f6557d 100644 --- a/tests/examples/serviceAccountTest.php +++ b/tests/examples/serviceAccountTest.php @@ -29,6 +29,6 @@ public function testServiceAccount() $nodes = $crawler->filter('br'); $this->assertEquals(10, count($nodes)); - $this->assertContains('The Life of Henry David Thoreau', $crawler->text()); + $this->assertContains('Life of Henry David Thoreau', $crawler->text()); } } \ No newline at end of file From cd4d61678bc26267f3e5371735ae3f579709ea30 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 7 Jun 2016 18:30:25 -0700 Subject: [PATCH 0966/1274] Update README for v2.0 stable release (#968) --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index ff27d02ed..e49d36c6a 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ # Google APIs Client Library for PHP # -> ### NOTE: If you arrived here from `developers.google.com`, you should be using the [v1-branch](https://github.com/google/google-api-php-client/tree/v1-master) of this repo - ## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. @@ -29,7 +27,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.0.0@RC +composer require google/apiclient:^2.0 ``` Finally, be sure to include the autoloader: From feab52d4907589c7140ba6bb96894db8ec601378 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 8 Jun 2016 16:08:49 -0700 Subject: [PATCH 0967/1274] use google/auth 0.9 (#970) --- composer.json | 2 +- src/Google/Client.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 409a48d23..be5bdaf1e 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.8", + "google/auth": "0.9", "google/apiclient-services": "*@dev", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", diff --git a/src/Google/Client.php b/src/Google/Client.php index d67437c3e..c8592c70e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -1048,8 +1048,7 @@ private function createApplicationDefaultCredentials() 'private_key' => $signingKey, 'type' => 'service_account', ); - $keyStream = Psr7\stream_for(json_encode($serviceAccountCredentials)); - $credentials = CredentialsLoader::makeCredentials($scopes, $keyStream); + $credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); } else { $credentials = ApplicationDefaultCredentials::getCredentials($scopes); } From 984f6a96297242e901bde518489374a9dec209df Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 24 Jun 2016 09:44:42 -0700 Subject: [PATCH 0968/1274] adds service account, OAuth, general usage, and proxying to README (#972) --- README.md | 192 ++++++++++++++++++++++++++++++++++++++++++++- examples/README.md | 13 +++ 2 files changed, 202 insertions(+), 3 deletions(-) create mode 100644 examples/README.md diff --git a/README.md b/README.md index e49d36c6a..e307595e6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. ## Beta ## -This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code. +This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. ## Requirements ## * [PHP 5.4.0 or higher](http://www.php.net/) @@ -49,8 +49,8 @@ require_once '/path/to/google-api-php-client/vendor/autoload.php'; For additional installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). -## Basic Example ## -See the examples/ directory for examples of the key client features. You can +## Examples ## +See the [`examples/`](examples) directory for examples of the key client features. You can view them in your browser by running the php built-in web server. ``` @@ -60,6 +60,8 @@ $ php -S localhost:8000 -t examples/ And then browsing to the host and port you specified (in the above example, `http://localhost:8000`). +### Basic Example ### + ```php // include your composer dependencies require_once 'vendor/autoload.php'; @@ -77,6 +79,171 @@ foreach ($results as $item) { } ``` +### Authentication with OAuth ### + +> An example of this can be seen in [`examples/simple-file-upload.php`](examples/simple-file-upload.php). + +**NOTE:** If you are using Google App Engine or Google Compute Engine, you can skip steps 1-3, as Application Default Credentials are included automatically when `useApplicationDefaultCredentials` is called. + +1. Follow the instructions to [Create Web Application Credentials](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred) +1. Download the JSON credentials +1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: + + ```php + putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); + ``` + +1. Tell the Google client to use your service account credentials to authenticate: + + ```php + $client = new Google_Client(); + $client->useApplicationDefaultCredentials(); + ``` + +1. If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method setSubject: + + ```php + $ client->setSubject($user_to_impersonate); + ``` + +### Authentication with Service Accounts ### + +> An example of this can be seen in [`examples/service-account.php`](examples/service-account.php). + +1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount) +1. Download the JSON credentials +1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: + + ```php + putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); + ``` + +1. Tell the Google client to use your service account credentials to authenticate: + + ```php + $client = new Google_Client(); + $client->useApplicationDefaultCredentials(); + ``` + +1. Set the scopes required for the API you are going to call + + ```php + $client->addScope(Google_Service_Drive::DRIVE); + ``` + +1. If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method setSubject: + + ```php + $client->setSubject($user_to_impersonate); + ``` + +### Making Requests ### + +The classes used to call the API in [google-api-php-client-services](https://github.com/Google/google-api-php-client-services) are autogenerated. They map directly to the JSON requests and responses found in the [APIs Explorer](https://developers.google.com/apis-explorer/#p/). + +A JSON request to the [Datastore API](https://developers.google.com/apis-explorer/#p/datastore/v1beta3/datastore.projects.runQuery) would look like this: + +```json +POST https://datastore.googleapis.com/v1beta3/projects/YOUR_PROJECT_ID:runQuery?key=YOUR_API_KEY + +{ + "query": { + "kind": [{ + "name": "Book" + }], + "order": [{ + "property": { + "name": "title" + }, + "direction": "descending" + }], + "limit": 10 + } +} +``` + +Using this library, the same call would look something like this: + +```php +// create the datastore service class +$datastore = new Google_Service_Datastore($client) + +// build the query - this maps directly to the JSON +$query = new Google_Service_Datastore_Query([ + 'kind' => [ + [ + 'name' => 'Book', + ], + ], + 'order' => [ + 'property' => [ + 'name' => 'title', + ], + 'direction' => 'descending', + ], + 'limit' => 10, +]); + +// build the request and response +$request = new Google_Service_Datastore_RunQueryRequest(['query' => $query]); +$response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request); +``` + +However, as each property of the JSON API has a corresponding generated class, the above code could also be written lile this: + +```php +// create the datastore service class +$datastore = new Google_Service_Datastore($client) + +// build the query +$request = new Google_Service_Datastore_RunQueryRequest(); +$query = new Google_Service_Datastore_Query(); +// - set the order +$order = new Google_Service_Datastore_PropertyOrder(); +$order->setDirection('descending'); +$property = new Google_Service_Datastore_PropertyReference(); +$property->setName('title'); +$order->setProperty($property); +$query->setOrder([$order]); +// - set the kinds +$kind = new Google_Service_Datastore_KindExpression(); +$kind->setName('Book'); +$query->setKinds([$kind]); +// - set the limit +$query->setLimit(10); + +// add the query to the request and make the request +$request->setQuery($query); +$response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request); +``` + +The method used is a matter of preference, but *it will be very difficult to use this library without first understanding the JSON syntax for the API*, so it is recommended to look at the [APIs Explorer](https://developers.google.com/apis-explorer/#p/) before using any of the services here. + +### Making HTTP Requests Directly ### + +If Google Authentication is desired for external applications, or a Google API is not available yet in this library, HTTP requests can be made directly. + +The `authorize` method returns an authorized [Guzzle Client](http://docs.guzzlephp.org/), so any request made using the client will contain the corresponding authorization. + +```php +// create the Google client +$client = new Google_Client(); + +/** + * Set your method for authentication. Depending on the API, This could be + * directly with an access token, API key, or (recommended) using + * Application Default Credentials. + */ +$client->useApplicationDefaultCredentials(); +$client->addScope(Google_Service_Plus::PLUS_ME); + +// returns a Guzzle HTTP Client +$httpClient = $client->authorize(); + +// make an HTTP request +$response = $httpClient->get('https://www.googleapis.com/plus/v1/people/me'); +``` + ### Caching ### It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client: @@ -104,6 +271,25 @@ $tokenCallback = function ($cacheKey, $accessToken) use ($logger) { $client->setTokenCallback($tokenCallback); ``` +### Debugging Your HTTP Request using Charles ### + +It is often very useful to debug your API calls by viewing the raw HTTP request. This library supports the use of [Charles Web Proxy](https://www.charlesproxy.com/documentation/getting-started/). Download and run Charles, and then capture all HTTP traffic through Charles with the following code: + +```php +// FOR DEBUGGING ONLY +$httpClient = new GuzzleHttp\Client([ + 'proxy' => 'localhost:8888', // by default, Charles runs on localhost port 8888 + 'verify' => false, // otherwise HTTPS requests will fail. +]); + +$client = new Google_Client(); +$client->setHttpClient($httpClient); +``` + +Now all calls made by this library will appear in the Charles UI. + +One additional step is required in Charles to view SSL requests. Go to **Charles > Proxy > SSL Proxying Settings** and add the domain you'd like captured. In the case of the Google APIs, this is usually `*.googleapis.com`. + ### Service Specific Examples ### YouTube: https://github.com/youtube/api-samples/tree/master/php diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 000000000..447a93a22 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,13 @@ +# Examples for Google APIs Client Library for PHP # + +## How to run the examples ## + +1. Following the [Installation Instructions](../README.md#installation) +1. Run the PHP built-in web server. Supply the `-t` option to point to this directory: + + ``` + $ php -S localhost:8000 -t examples/ + ``` + +1. Point your browser to the host and port you specified, i.e `http://localhost:8000`. + From 42fc696a4888efbad4adb11818dc9add80e8042f Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 14 Jul 2016 14:27:18 -0700 Subject: [PATCH 0969/1274] adds auth code flow to README (#989) --- README.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e307595e6..0f8ad5f70 100644 --- a/README.md +++ b/README.md @@ -83,27 +83,37 @@ foreach ($results as $item) { > An example of this can be seen in [`examples/simple-file-upload.php`](examples/simple-file-upload.php). -**NOTE:** If you are using Google App Engine or Google Compute Engine, you can skip steps 1-3, as Application Default Credentials are included automatically when `useApplicationDefaultCredentials` is called. - 1. Follow the instructions to [Create Web Application Credentials](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred) 1. Download the JSON credentials -1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: +1. Set the path to these credentials using `Google_Client::setAuthConfig`: ```php - putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); + $client = new Google_Client(); + $client->setAuthConfig('/path/to/client_credentials.json'); ``` -1. Tell the Google client to use your service account credentials to authenticate: +1. Set the scopes required for the API you are going to call ```php - $client = new Google_Client(); - $client->useApplicationDefaultCredentials(); + $client->addScope(Google_Service_Drive::DRIVE); ``` -1. If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method setSubject: +1. Set your application's redirect URI ```php - $ client->setSubject($user_to_impersonate); + // Your redirect URI can be any registered URI, but in this example + // we redirect back to this same page + $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; + $client->setRedirectUri($redirect_uri); + ``` + +1. In the script handling the redirect URI, exchange the authorization code for an access token: + + ```php + if (isset($_GET['code'])) { + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + } ``` ### Authentication with Service Accounts ### @@ -189,7 +199,7 @@ $request = new Google_Service_Datastore_RunQueryRequest(['query' => $query]); $response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request); ``` -However, as each property of the JSON API has a corresponding generated class, the above code could also be written lile this: +However, as each property of the JSON API has a corresponding generated class, the above code could also be written like this: ```php // create the datastore service class From 04ba628b4df4032ecdedd28cb5ce30fad79a0b9b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 15 Jul 2016 15:27:59 -0700 Subject: [PATCH 0970/1274] allows string tokens in revoke method (#993) --- src/Google/AccessToken/Revoke.php | 16 ++++++++------- tests/Google/AccessToken/RevokeTest.php | 26 +++++++++---------------- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/Google/AccessToken/Revoke.php b/src/Google/AccessToken/Revoke.php index 807a6d90f..7acaea006 100644 --- a/src/Google/AccessToken/Revoke.php +++ b/src/Google/AccessToken/Revoke.php @@ -45,18 +45,20 @@ public function __construct(ClientInterface $http = null) * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. * - * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @param string|array $token The token (access token or a refresh token) that should be revoked. * @return boolean Returns True if the revocation was successful, otherwise False. */ - public function revokeToken(array $token) + public function revokeToken($token) { - if (isset($token['refresh_token'])) { - $tokenString = $token['refresh_token']; - } else { - $tokenString = $token['access_token']; + if (is_array($token)) { + if (isset($token['refresh_token'])) { + $token = $token['refresh_token']; + } else { + $token = $token['access_token']; + } } - $body = Psr7\stream_for(http_build_query(array('token' => $tokenString))); + $body = Psr7\stream_for(http_build_query(array('token' => $token))); $request = new Request( 'POST', Google_Client::OAUTH2_REVOKE_URI, diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index 0a2ee11df..7ced6befd 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -30,11 +30,11 @@ public function testRevokeAccess() $token = ''; $response = $this->getMock('Psr\Http\Message\ResponseInterface'); - $response->expects($this->exactly(2)) + $response->expects($this->exactly(3)) ->method('getStatusCode') ->will($this->returnValue(200)); $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly(2)) + $http->expects($this->exactly(3)) ->method('send') ->will($this->returnCallback( function ($request) use (&$token, $response) { @@ -49,13 +49,13 @@ function ($request) use (&$token, $response) { if ($this->isGuzzle5()) { $requestToken = null; $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(2)) + $request->expects($this->exactly(3)) ->method('getBody') ->will($this->returnCallback( function () use (&$requestToken) { return 'token='.$requestToken; })); - $http->expects($this->exactly(2)) + $http->expects($this->exactly(3)) ->method('createRequest') ->will($this->returnCallback( function ($method, $url, $params) use (&$requestToken, $request) { @@ -88,19 +88,11 @@ function ($method, $url, $params) use (&$requestToken, $request) { ); $this->assertTrue($revoke->revokeToken($t)); $this->assertEquals($refreshToken, $token); - } - public function testInvalidStringToken() - { - $phpVersion = phpversion(); - if ('7' === $phpVersion[0]) { - // primitive type hints actually throw exceptions in PHP7 - $this->setExpectedException('TypeError'); - } else { - $this->setExpectedException('PHPUnit_Framework_Error'); - } - // Test with string token - $revoke = new Google_AccessToken_Revoke(); - $revoke->revokeToken('ACCESS_TOKEN'); + // Test with token string. + $revoke = new Google_AccessToken_Revoke($http); + $t = $accessToken; + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); } } From e21a5972bc72d8116a52e7b5f5777c06b30ee160 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Jul 2016 11:40:47 -0700 Subject: [PATCH 0971/1274] tag client services (#1000) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index be5bdaf1e..312c7b437 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "0.9", - "google/apiclient-services": "*@dev", + "google/apiclient-services": "^0.5", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 18dd5534280318598e8770cb7929e9a542e91c0d Mon Sep 17 00:00:00 2001 From: Timothy Choi Date: Fri, 22 Jul 2016 02:41:10 +0800 Subject: [PATCH 0972/1274] Fix incorrect function call in UPGRADING.md (#996) --- UPGRADING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADING.md b/UPGRADING.md index f654570a4..230297000 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -175,7 +175,7 @@ $client->getAuth() **After** ```php -$client->useDefaultApplicationCredentials(); +$client->useApplicationDefaultCredentials(); $client->addScope('https://www.googleapis.com/auth/sqlservice.admin'); ``` From c157f563f17b6c50668c882c4f9b2fd889569f69 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 27 Jul 2016 14:24:51 -0700 Subject: [PATCH 0973/1274] add issue template and link to CONTRIBUTING.md in README (#1003) --- .github/ISSUE_TEMPLATE.md | 8 ++++++++ README.md | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..47cb46145 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,8 @@ +**Heads up!** + +We appreciate any bug reports or other contributions, but please note that this issue +tracker is only for this client library. We do not maintain the APIs that this client +library talks to. If you have an issue or questions with how to use a particular API, +you may be better off posting on Stackoverflow under the `google-api` tag. + +Thank you! diff --git a/README.md b/README.md index 0f8ad5f70..e71003449 100644 --- a/README.md +++ b/README.md @@ -304,6 +304,10 @@ One additional step is required in Charles to view SSL requests. Go to **Charles YouTube: https://github.com/youtube/api-samples/tree/master/php +## How Do I Contribute? ## + +Please see the [contributing](CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute). + ## Frequently Asked Questions ## ### What do I do if something isn't working? ### @@ -312,10 +316,6 @@ For support with the library the best place to ask is via the google-api-php-cli If there is a specific bug with the library, please [file a issue](/Google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. -### How do I contribute? ### - -We accept contributions via Github Pull Requests, but all contributors need to be covered by the standard Google Contributor License Agreement. You can find links, and more instructions, in the documentation: https://developers.google.com/api-client-library/php/contribute - ### I want an example of X! ### If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! From b9410f923f312b2a80c5cb9d10c80ed09b8e5da2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 27 Jul 2016 14:46:12 -0700 Subject: [PATCH 0974/1274] bump apiclient-services version (#1006) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 312c7b437..6812d58dc 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "0.9", - "google/apiclient-services": "^0.5", + "google/apiclient-services": "^0.6", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 98c73dc9c77e37a23af2bf2e2635a22098d34d22 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 10 Aug 2016 09:46:33 -0700 Subject: [PATCH 0975/1274] updates auth and uses in-memory cache (#1019) --- composer.json | 2 +- src/Google/AccessToken/Verify.php | 9 +++++++-- src/Google/Client.php | 17 +++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 6812d58dc..47b21750a 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.9", + "google/auth": "0.10", "google/apiclient-services": "^0.6", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 2e8d4770d..0980136a0 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -22,6 +22,7 @@ use phpseclib\Crypt\RSA; use phpseclib\Math\BigInteger; use Psr\Cache\CacheItemPoolInterface; +use Google\Auth\Cache\MemoryCacheItemPool; use Stash\Driver\FileSystem; use Stash\Pool; @@ -55,8 +56,12 @@ public function __construct(ClientInterface $http = null, CacheItemPoolInterface $http = new Client(); } - if (is_null($cache) && class_exists('Stash\Pool')) { - $cache = new Pool(new FileSystem); + if (is_null($cache)) { + if (class_exists('Stash\Pool')) { + $cache = new Pool(new FileSystem); + } else { + $cache = new MemoryCacheItemPool; + } } $this->http = $http; diff --git a/src/Google/Client.php b/src/Google/Client.php index c8592c70e..48e6c0b8e 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -16,6 +16,7 @@ */ use Google\Auth\ApplicationDefaultCredentials; +use Google\Auth\Cache\MemoryCacheItemPool; use Google\Auth\CredentialsLoader; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; @@ -950,6 +951,10 @@ public function setCache(CacheItemPoolInterface $cache) */ public function getCache() { + if (!$this->cache) { + $this->cache = $this->createDefaultCache(); + } + return $this->cache; } @@ -990,6 +995,18 @@ protected function createDefaultLogger() return $logger; } + protected function createDefaultCache() + { + // use filesystem cache by default if tedivm/stash exists + if (class_exists('Stash\Pool')) { + $cache = new Stash\Pool(new Stash\Driver\FileSystem); + } else { + $cache = new MemoryCacheItemPool; + } + + return $cache; + } + /** * Set the Http Client object * @param GuzzleHttp\ClientInterface $http From cf5975a75fd4edbad00d555e90fada9a5be340b0 Mon Sep 17 00:00:00 2001 From: Menno Holtkamp Date: Sat, 13 Aug 2016 00:45:07 +0200 Subject: [PATCH 0976/1274] Remove references to Google_Config (#1029) to prevent confusion --- src/Google/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 48e6c0b8e..ae574cc31 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -66,7 +66,7 @@ class Google_Client private $token; /** - * @var Google_Config $config + * @var array $config */ private $config; @@ -87,9 +87,9 @@ class Google_Client /** * Construct the Google Client. * - * @param $config Google_Config or string for the ini file to load + * @param array $config */ - public function __construct($config = array()) + public function __construct(array $config = array()) { $this->config = array_merge( [ From d86977834d3bb20a35cf7a8a0d94ed307ebc479e Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 13 Aug 2016 00:45:24 +0200 Subject: [PATCH 0977/1274] Update Client.php (#1030) Correct DocBlock @throws to LogicException --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index ae574cc31..d254879c0 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -676,7 +676,7 @@ public function revokeToken($token = null) * Verify an id_token. This method will verify the current id_token, if one * isn't provided. * - * @throws Google_Exception + * @throws LogicException * @param string|null $idToken The token (id_token) that should be verified. * @return array|false Returns the token payload as an array if the verification was * successful, false otherwise. From 8f3f7dbf19d257fb4cfb935f5b63b956454225b9 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 16 Aug 2016 15:23:46 -0700 Subject: [PATCH 0978/1274] fixes issue with BC breaking google/auth change (#1028) * fixes issue with BC breaking google/auth change --- src/Google/AuthHandler/Guzzle5AuthHandler.php | 13 ++++++++++--- src/Google/AuthHandler/Guzzle6AuthHandler.php | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/Google/AuthHandler/Guzzle5AuthHandler.php b/src/Google/AuthHandler/Guzzle5AuthHandler.php index d3a4b0379..4e4a8d68f 100644 --- a/src/Google/AuthHandler/Guzzle5AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle5AuthHandler.php @@ -2,6 +2,7 @@ use Google\Auth\CredentialsLoader; use Google\Auth\HttpHandler\HttpHandlerFactory; +use Google\Auth\FetchAuthTokenCache; use Google\Auth\Subscriber\AuthTokenSubscriber; use Google\Auth\Subscriber\ScopedAccessTokenSubscriber; use Google\Auth\Subscriber\SimpleSubscriber; @@ -28,6 +29,14 @@ public function attachCredentials( CredentialsLoader $credentials, callable $tokenCallback = null ) { + // use the provided cache + if ($this->cache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->cacheConfig, + $this->cache + ); + } // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. @@ -35,8 +44,6 @@ public function attachCredentials( $authHttpHandler = HttpHandlerFactory::build($authHttp); $subscriber = new AuthTokenSubscriber( $credentials, - $this->cacheConfig, - $this->cache, $authHttpHandler, $tokenCallback ); @@ -56,7 +63,7 @@ public function attachToken(ClientInterface $http, array $token, array $scopes) $subscriber = new ScopedAccessTokenSubscriber( $tokenFunc, $scopes, - [], + $this->cacheConfig, $this->cache ); diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php index fb743e601..fcdfb3b03 100644 --- a/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -2,6 +2,7 @@ use Google\Auth\CredentialsLoader; use Google\Auth\HttpHandler\HttpHandlerFactory; +use Google\Auth\FetchAuthTokenCache; use Google\Auth\Middleware\AuthTokenMiddleware; use Google\Auth\Middleware\ScopedAccessTokenMiddleware; use Google\Auth\Middleware\SimpleMiddleware; @@ -28,6 +29,14 @@ public function attachCredentials( CredentialsLoader $credentials, callable $tokenCallback = null ) { + // use the provided cache + if ($this->cache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->cacheConfig, + $this->cache + ); + } // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. @@ -35,8 +44,6 @@ public function attachCredentials( $authHttpHandler = HttpHandlerFactory::build($authHttp); $middleware = new AuthTokenMiddleware( $credentials, - $this->cacheConfig, - $this->cache, $authHttpHandler, $tokenCallback ); @@ -59,7 +66,7 @@ public function attachToken(ClientInterface $http, array $token, array $scopes) $middleware = new ScopedAccessTokenMiddleware( $tokenFunc, $scopes, - [], + $this->cacheConfig, $this->cache ); From be5f138d6bb871ff9e7eeaa532ebf62196ebe606 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 16 Aug 2016 15:24:27 -0700 Subject: [PATCH 0979/1274] uses syslog handler on appengine (#1025) * uses syslog handler on appengine --- src/Google/Client.php | 8 +++++++- tests/Google/ClientTest.php | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index d254879c0..6cb7d4de0 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -31,6 +31,7 @@ use Psr\Log\LoggerInterface; use Monolog\Logger; use Monolog\Handler\StreamHandler as MonologStreamHandler; +use Monolog\Handler\SyslogHandler as MonologSyslogHandler; /** * The Google API Client @@ -990,7 +991,12 @@ public function getLogger() protected function createDefaultLogger() { $logger = new Logger('google-api-php-client'); - $logger->pushHandler(new MonologStreamHandler('php://stderr', Logger::NOTICE)); + if ($this->isAppEngine()) { + $handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE); + } else { + $handler = new MonologStreamHandler('php://stderr', Logger::NOTICE); + } + $logger->pushHandler($handler); return $logger; } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 576daf432..4a7cb65de 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -243,6 +243,27 @@ public function testPrepareService() $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); } + public function testDefaultLogger() + { + $client = new Google_Client(); + $logger = $client->getLogger(); + $this->assertInstanceOf('Monolog\Logger', $logger); + $handler = $logger->popHandler(); + $this->assertInstanceOf('Monolog\Handler\StreamHandler', $handler); + } + + public function testDefaultLoggerAppEngine() + { + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Google_Client(); + $logger = $client->getLogger(); + $handler = $logger->popHandler(); + unset($_SERVER['SERVER_SOFTWARE']); + + $this->assertInstanceOf('Monolog\Logger', $logger); + $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler); + } + public function testSettersGetters() { $client = new Google_Client(); From 0b6c5b04595682362a17591a44e5df5249ff7779 Mon Sep 17 00:00:00 2001 From: Morton Fox Date: Tue, 23 Aug 2016 03:57:17 -0400 Subject: [PATCH 0980/1274] Fix issue tracker link (#1039) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e71003449..8d92a26fe 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ Please see the [contributing](CONTRIBUTING.md) page for more information. In par For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client -If there is a specific bug with the library, please [file a issue](/Google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. +If there is a specific bug with the library, please [file a issue](https://github.com/google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. ### I want an example of X! ### From 2f03c901d656e830eb2a830d4f80d4f787c840bf Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Tue, 23 Aug 2016 10:57:57 +0300 Subject: [PATCH 0981/1274] Highlight class constant in docs on GitHub (#1038) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d92a26fe..a5b98748b 100644 --- a/README.md +++ b/README.md @@ -340,7 +340,7 @@ $opt_params = array( ### How do I set a field to null? ### -The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to Google_Model::NULL_VALUE. This is a placeholder that will be replaced with a true null when sent over the wire. +The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to `Google_Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. ## Code Quality ## From 37adb8a6f4d4b27b9900d62d67bf1d54995a755c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 14 Sep 2016 12:33:35 -0700 Subject: [PATCH 0982/1274] updates google/apiclient-services to 0.7 (#1053) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 47b21750a..5b623904d 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "0.10", - "google/apiclient-services": "^0.6", + "google/apiclient-services": "^0.7", "firebase/php-jwt": "~2.0|~3.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", From 91eab51ba51e8b51882f07cf7f0e52683ae09228 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 17 Oct 2016 17:28:33 -0600 Subject: [PATCH 0983/1274] fixes cached client tests (#1079) --- tests/Google/ClientTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 4a7cb65de..1537821b9 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -90,7 +90,13 @@ private function checkCredentials($http, $fetcherClass, $sub = null) $class = new ReflectionClass(get_class($auth)); $property = $class->getProperty('fetcher'); $property->setAccessible(true); - $fetcher = $property->getValue($auth); + $cacheFetcher = $property->getValue($auth); + $this->assertInstanceOf('Google\Auth\FetchAuthTokenCache', $cacheFetcher); + + $class = new ReflectionClass(get_class($cacheFetcher)); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $fetcher = $property->getValue($cacheFetcher); $this->assertInstanceOf($fetcherClass, $fetcher); if ($sub) { From ae82aa20e814656dc484f64a6854a6f5549874f2 Mon Sep 17 00:00:00 2001 From: Nathan Marcos Date: Mon, 17 Oct 2016 21:30:26 -0200 Subject: [PATCH 0984/1274] Fix the approval_prompt default value. (#1066) --- src/Google/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 6cb7d4de0..f89314c41 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -552,8 +552,8 @@ public function setAccessType($accessType) /** * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. (This is the default value) - * {@code "auto"} to request auto-approval when possible. + * {@code "force"} to force the approval UI to appear. + * {@code "auto"} to request auto-approval when possible. (This is the default value) */ public function setApprovalPrompt($approvalPrompt) { From c7c1ec9ac43948851a842888c792c9a3ff1203bd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 24 Oct 2016 10:22:26 -0600 Subject: [PATCH 0985/1274] updates composer dependencies (#1082) * updates composer dependencies --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 5b623904d..2249afc3d 100644 --- a/composer.json +++ b/composer.json @@ -7,9 +7,9 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "0.10", - "google/apiclient-services": "^0.7", - "firebase/php-jwt": "~2.0|~3.0", + "google/auth": "^0.11", + "google/apiclient-services": "^0.8", + "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~2.0", "guzzlehttp/guzzle": "~5.2|~6.0", From f4a8ef0642cdbea0a07f6966158337bab846d4de Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 2 Nov 2016 08:28:02 -0600 Subject: [PATCH 0986/1274] removes stash logic, adds caching test for MemoryCache (#1085) --- .travis.yml | 1 + composer.json | 4 +- src/Google/AccessToken/Verify.php | 6 +- src/Google/Client.php | 9 +-- tests/BaseTest.php | 24 ++++++-- tests/Google/CacheTest.php | 99 +++++++++++++++++++++++++++++++ tests/Google/ClientTest.php | 1 + 7 files changed, 124 insertions(+), 20 deletions(-) create mode 100644 tests/Google/CacheTest.php diff --git a/.travis.yml b/.travis.yml index 11b8eeddd..09fc33b69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,7 @@ before_install: - composer self-update install: + - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then composer remove --dev cache/filesystem-adapter; fi - composer install - composer require guzzlehttp/guzzle:$GUZZLE_VERSION diff --git a/composer.json b/composer.json index 2249afc3d..58d30a18e 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", - "tedivm/stash": "^0.14.1" + "cache/filesystem-adapter": "^0.3.2" }, "suggest": { - "tedivm/stash": "For caching certs and tokens (using Google_Client::setCache)" + "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" }, "autoload": { "psr-0": { diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 0980136a0..dd070befc 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -57,11 +57,7 @@ public function __construct(ClientInterface $http = null, CacheItemPoolInterface } if (is_null($cache)) { - if (class_exists('Stash\Pool')) { - $cache = new Pool(new FileSystem); - } else { - $cache = new MemoryCacheItemPool; - } + $cache = new MemoryCacheItemPool; } $this->http = $http; diff --git a/src/Google/Client.php b/src/Google/Client.php index f89314c41..ec089c14c 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -1003,14 +1003,7 @@ protected function createDefaultLogger() protected function createDefaultCache() { - // use filesystem cache by default if tedivm/stash exists - if (class_exists('Stash\Pool')) { - $cache = new Stash\Pool(new Stash\Driver\FileSystem); - } else { - $cache = new MemoryCacheItemPool; - } - - return $cache; + return new MemoryCacheItemPool; } /** diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 905e8b7c3..feb671446 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -17,8 +17,9 @@ use GuzzleHttp\ClientInterface; use Symfony\Component\DomCrawler\Crawler; -use Stash\Driver\FileSystem; -use Stash\Pool; +use League\Flysystem\Adapter\Local; +use League\Flysystem\Filesystem; +use Cache\Adapter\Filesystem\FilesystemCachePool; class BaseTest extends PHPUnit_Framework_TestCase { @@ -39,8 +40,11 @@ public function getClient() public function getCache($path = null) { - $path = $path ?: sys_get_temp_dir().'/google-api-php-client-tests'; - return new Pool(new FileSystem(['path' => $path])); + $path = $path ?: sys_get_temp_dir().'/google-api-php-client-tests/'; + $filesystemAdapter = new Local($path); + $filesystem = new Filesystem($filesystemAdapter); + + return new FilesystemCachePool($filesystem); } private function createClient() @@ -81,7 +85,10 @@ private function createClient() list($clientId, $clientSecret) = $this->getClientIdAndSecret(); $client->setClientId($clientId); $client->setClientSecret($clientSecret); - $client->setCache($this->getCache()); + if (version_compare(PHP_VERSION, '5.5', '>=')) { + $client->setCache($this->getCache()); + } + return $client; } @@ -224,6 +231,13 @@ public function onlyGuzzle6() } } + public function onlyPhp55AndAbove() + { + if (version_compare(PHP_VERSION, '5.5', '<')) { + $this->markTestSkipped('PHP 5.5 and above only'); + } + } + public function onlyGuzzle5() { if (!$this->isGuzzle5()) { diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php new file mode 100644 index 000000000..f15c05935 --- /dev/null +++ b/tests/Google/CacheTest.php @@ -0,0 +1,99 @@ +checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $client->setAccessType('offline'); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + $client->setCache(new MemoryCacheItemPool); + + /* Refresh token when expired */ + if ($client->isAccessTokenExpired()) { + $client->refreshTokenWithAssertion(); + } + + /* Make a service call */ + $service = new Google_Service_Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf('Google_Service_Drive_FileList', $files); + } + + public function testFileCache() + { + $this->onlyPhp55AndAbove(); + $this->checkServiceAccountCredentials(); + + $client = new Google_Client(); + $client->useApplicationDefaultCredentials(); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + // filecache with new cache dir + $cache = $this->getCache(sys_get_temp_dir() . '/cloud-samples-tests-php-cache-test/'); + $client->setCache($cache); + + $token1 = null; + $client->setTokenCallback(function($cacheKey, $accessToken) use ($cache, &$token1) { + $token1 = $accessToken; + $cacheItem = $cache->getItem($cacheKey); + // expire the item + $cacheItem->expiresAt(new DateTime('now -1 second')); + $cache->save($cacheItem); + + $cacheItem2 = $cache->getItem($cacheKey); + }); + + /* Refresh token when expired */ + if ($client->isAccessTokenExpired()) { + $client->refreshTokenWithAssertion(); + } + + /* Make a service call */ + $service = new Google_Service_Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf('Google_Service_Drive_FileList', $files); + + sleep(1); + + // make sure the token expires + $client = new Google_Client(); + $client->useApplicationDefaultCredentials(); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + $client->setCache($cache); + $token2 = null; + $client->setTokenCallback(function($cacheKey, $accessToken) use (&$token2) { + $token2 = $accessToken; + }); + + /* Make another service call */ + $service = new Google_Service_Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf('Google_Service_Drive_FileList', $files); + + $this->assertNotEquals($token1, $token2); + } +} diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 1537821b9..1fe4b5081 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -527,6 +527,7 @@ public function testBadSubjectThrowsException() public function testTokenCallback() { + $this->onlyPhp55AndAbove(); $this->checkToken(); $client = $this->getClient(); From f59ce1e16bf55faf572acc8d002d9a94bc9df2ce Mon Sep 17 00:00:00 2001 From: Serge Postrash Date: Wed, 14 Dec 2016 04:32:56 +0300 Subject: [PATCH 0987/1274] Fixed misnamed param in phpdoc (#1107) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index ec089c14c..a8b799bc8 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -831,7 +831,7 @@ public function setAuthConfigFile($file) * This structure should match the file downloaded from * the "Download JSON" button on in the Google Developer * Console. - * @param string|array $json the configuration json + * @param string|array $config the configuration json * @throws Google_Exception */ public function setAuthConfig($config) From 8bd58aea3eb602f3d6db16fe724b2ad534a5c0ca Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 14 Dec 2016 17:12:59 -0800 Subject: [PATCH 0988/1274] fixes issue 1087 - ensures created is set for fetchAccessTokenWithAssertion (#1113) --- src/Google/Client.php | 9 +++++---- tests/Google/ClientTest.php | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index a8b799bc8..c3281ebdd 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -228,12 +228,13 @@ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) $credentials = $this->createApplicationDefaultCredentials(); $httpHandler = HttpHandlerFactory::build($authHttp); - $accessToken = $credentials->fetchAuthToken($httpHandler); - if ($accessToken && isset($accessToken['access_token'])) { - $this->setAccessToken($accessToken); + $creds = $credentials->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); + $this->setAccessToken($creds); } - return $accessToken; + return $creds; } /** diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 1fe4b5081..c7f0a6e32 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -497,6 +497,22 @@ public function testFetchAccessTokenWithAssertionFromFile() $this->assertArrayHasKey('access_token', $token); } + /** + * Test fetching an access token with assertion credentials + * populates the "created" field + */ + public function testFetchAccessTokenWithAssertionAddsCreated() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('created', $token); + } + /** * Test fetching an access token with assertion credentials * using "setAuthConfig" and "setSubject" but with user credentials From f95de907daa8ddd0f8fbd47480ecf377b9622a15 Mon Sep 17 00:00:00 2001 From: Daniele Montesi Date: Thu, 15 Dec 2016 02:25:10 +0100 Subject: [PATCH 0989/1274] Fix unused params in BaseTest (#1091) --- tests/BaseTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index feb671446..233ab4a7a 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -25,8 +25,6 @@ class BaseTest extends PHPUnit_Framework_TestCase { private $key; private $client; - private $memcacheHost; - private $memcachePort; protected $testDir = __DIR__; public function getClient() From 69838fb5037a8f8731fa4a6b033494f49cd303ea Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 28 Dec 2016 13:00:02 -0800 Subject: [PATCH 0990/1274] allows for older versions of phpseclib (#1118) * allows for older versions of phpseclib * uses --prefer-lowest instead of explicitly setting guzzle versions * remove hhvm, add php 7.1 --- .travis.yml | 18 +++++------ composer.json | 2 +- oauth-credentials.json | 1 + service-account-credentials.json | 1 + src/Google/AccessToken/Verify.php | 43 +++++++++++++++++++++---- tests/Google/AccessToken/VerifyTest.php | 13 +++++++- 6 files changed, 60 insertions(+), 18 deletions(-) create mode 120000 oauth-credentials.json create mode 120000 service-account-credentials.json diff --git a/.travis.yml b/.travis.yml index 09fc33b69..a7869dfee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,7 @@ env: global: - MEMCACHE_HOST=127.0.0.1 - MEMCACHE_PORT=11211 - matrix: - - GUZZLE_VERSION=~5.2 - - GUZZLE_VERSION=~6.0 + - COMPOSER_CMD="composer install" sudo: false @@ -22,21 +20,21 @@ php: - 5.5 - 5.6 - 7.0 - - hhvm + - 7.1 -# Guzzle 6.0 is not compatible with PHP 5.4 +# Test lowest dependencies on PHP 5.4 +# (Guzzle 5.2, phpseclib 0.3) matrix: - exclude: + include: - php: 5.4 - env: GUZZLE_VERSION=~6.0 + env: COMPOSER_CMD="composer update --prefer-lowest" RUN_PHP_CS=true before_install: - composer self-update install: - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then composer remove --dev cache/filesystem-adapter; fi - - composer install - - composer require guzzlehttp/guzzle:$GUZZLE_VERSION + - $(echo $COMPOSER_CMD) before_script: - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true @@ -44,5 +42,5 @@ before_script: script: - vendor/bin/phpunit - - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi + - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi diff --git a/composer.json b/composer.json index 58d30a18e..87b27db6d 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "google/apiclient-services": "^0.8", "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", - "phpseclib/phpseclib": "~2.0", + "phpseclib/phpseclib": "~0.3.10|~2.0", "guzzlehttp/guzzle": "~5.2|~6.0", "guzzlehttp/psr7": "^1.2" }, diff --git a/oauth-credentials.json b/oauth-credentials.json new file mode 120000 index 000000000..8cbff52a9 --- /dev/null +++ b/oauth-credentials.json @@ -0,0 +1 @@ +/Users/betterbrent/.gcloud/google-api-php-client-tests-credentials.json \ No newline at end of file diff --git a/service-account-credentials.json b/service-account-credentials.json new file mode 120000 index 000000000..bd0b09663 --- /dev/null +++ b/service-account-credentials.json @@ -0,0 +1 @@ +/Users/betterbrent/.gcloud/cloud-samples-tests-php.json \ No newline at end of file diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index dd070befc..52bae0d95 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -19,8 +19,6 @@ use Firebase\JWT\ExpiredException as ExpiredExceptionV3; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; -use phpseclib\Crypt\RSA; -use phpseclib\Math\BigInteger; use Psr\Cache\CacheItemPoolInterface; use Google\Auth\Cache\MemoryCacheItemPool; use Stash\Driver\FileSystem; @@ -86,10 +84,12 @@ public function verifyIdToken($idToken, $audience = null) // Check signature $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { - $modulus = new BigInteger($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new BigInteger($this->jwt->urlsafeB64Decode($cert['e']), 256); + $bigIntClass = $this->getBigIntClass(); + $rsaClass = $this->getRsaClass(); + $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - $rsa = new RSA(); + $rsa = new $rsaClass(); $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); try { @@ -213,6 +213,37 @@ private function getJwtService() return new $jwtClass; } + private function getRsaClass() + { + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA'; + } + + return 'Crypt_RSA'; + } + + private function getBigIntClass() + { + if (class_exists('phpseclib\Math\BigInteger')) { + return 'phpseclib\Math\BigInteger'; + } + + return 'Math_BigInteger'; + } + + private function getOpenSslConstant() + { + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; + } + + if (class_exists('Crypt_RSA')) { + return 'CRYPT_RSA_MODE_OPENSSL'; + } + + throw new \Exception('Cannot find RSA class'); + } + /** * phpseclib calls "phpinfo" by default, which requires special * whitelisting in the AppEngine VM environment. This function @@ -228,7 +259,7 @@ private function setPhpsecConstants() define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); } if (!defined('CRYPT_RSA_MODE')) { - define('CRYPT_RSA_MODE', RSA::MODE_OPENSSL); + define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant())); } } } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index a6f4ef01d..a641ce843 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -47,7 +47,7 @@ public function testPhpsecConstants() $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); $rsaMode = constant('CRYPT_RSA_MODE'); $this->assertEquals(true, $openSslEnable); - $this->assertEquals(phpseclib\Crypt\RSA::MODE_OPENSSL, $rsaMode); + $this->assertEquals(constant($this->getOpenSslConstant()), $rsaMode); } /** @@ -111,4 +111,15 @@ private function getJwtService() return new \JWT; } + + private function getOpenSslConstant() + { + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; + } + + if (class_exists('Crypt_RSA')) { + return 'CRYPT_RSA_MODE_OPENSSL'; + } + } } From a79457b1188275baec6f830b3c34d856ab852e4b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 28 Dec 2016 15:32:53 -0800 Subject: [PATCH 0991/1274] Update README.md (#1114) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a5b98748b..d70d1d4d8 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ This library is in Beta. We're comfortable enough with the stability and feature ## Requirements ## * [PHP 5.4.0 or higher](http://www.php.net/) +## Google Cloud Platform APIs +If you're looking to call the **Google Cloud Platform** APIs, you will want to use the [Google Cloud PHP](https://github.com/googlecloudplatform/google-cloud-php) library instead of this one. + ## Developer Documentation ## http://developers.google.com/api-client-library/php From d0fc0e1f0d2db88e066395fa548f9b87d50797fc Mon Sep 17 00:00:00 2001 From: Daniele Montesi Date: Thu, 29 Dec 2016 00:49:12 +0100 Subject: [PATCH 0992/1274] Remove unused $authHttp to Google_Client::authorize (#1090) --- src/Google/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index c3281ebdd..99fb0125a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -336,10 +336,9 @@ public function createAuthUrl($scope = null) * set in the Google API Client object * * @param GuzzleHttp\ClientInterface $http the http client object. - * @param GuzzleHttp\ClientInterface $authHttp an http client for authentication. * @return GuzzleHttp\ClientInterface the http client object */ - public function authorize(ClientInterface $http = null, ClientInterface $authHttp = null) + public function authorize(ClientInterface $http = null) { $credentials = null; $token = null; From af31104c7dc1041ada466bf79d583a1e5f88c940 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 4 Jan 2017 11:58:37 -0800 Subject: [PATCH 0993/1274] update libver version (#1120) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 99fb0125a..585a6a47f 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -39,7 +39,7 @@ */ class Google_Client { - const LIBVER = "2.0.0-alpha"; + const LIBVER = "2.1.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From 195fce80b1f16fe43113b7650cac955044afca1b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 5 Jan 2017 12:04:35 -0800 Subject: [PATCH 0994/1274] ensures refresh token is added back to the access token, adds tests (#1121) --- src/Google/Client.php | 3 ++ tests/Google/ClientTest.php | 77 ++++++++++++++++++++++++++++++++++++- 2 files changed, 79 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 585a6a47f..ea5de6d91 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -272,6 +272,9 @@ public function fetchAccessTokenWithRefreshToken($refreshToken = null) $creds = $auth->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = time(); + if (!isset($creds['refresh_token'])) { + $creds['refresh_token'] = $refreshToken; + } $this->setAccessToken($creds); } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index c7f0a6e32..80c732674 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -462,7 +462,82 @@ public function testRefreshTokenSetsValues() $client->setHttpClient($http); $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); $token = $client->getAccessToken(); - $this->assertEquals($token['id_token'], "ID_TOKEN"); + $this->assertEquals("ID_TOKEN", $token['id_token']); + } + + /** + * Test that the Refresh Token is set when refreshed. + */ + public function testRefreshTokenIsSetOnRefresh() + { + $refreshToken = 'REFRESH_TOKEN'; + $token = json_encode(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + )); + $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); + $postBody->expects($this->once()) + ->method('__toString') + ->will($this->returnValue($token)); + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($postBody)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($guzzle5Request)); + } + + $client = $this->getClient(); + $client->setHttpClient($http); + $client->fetchAccessTokenWithRefreshToken($refreshToken); + $token = $client->getAccessToken(); + $this->assertEquals($refreshToken, $token['refresh_token']); + } + + /** + * Test that the Refresh Token is not set when a new refresh token is returned. + */ + public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() + { + $refreshToken = 'REFRESH_TOKEN'; + $token = json_encode(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + 'refresh_token' => 'NEW_REFRESH_TOKEN' + )); + $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); + $postBody->expects($this->once()) + ->method('__toString') + ->will($this->returnValue($token)); + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getBody') + ->will($this->returnValue($postBody)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->once()) + ->method('send') + ->will($this->returnValue($response)); + + if ($this->isGuzzle5()) { + $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->expects($this->once()) + ->method('createRequest') + ->will($this->returnValue($guzzle5Request)); + } + + $client = $this->getClient(); + $client->setHttpClient($http); + $client->fetchAccessTokenWithRefreshToken($refreshToken); + $token = $client->getAccessToken(); + $this->assertEquals('NEW_REFRESH_TOKEN', $token['refresh_token']); } /** From 2a35d62987255328c7ee49da5ddf76d5d7720980 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 5 Jan 2017 16:09:18 -0800 Subject: [PATCH 0995/1274] ensures JWT leeway is restored after we set it (#1122) --- src/Google/AccessToken/Verify.php | 9 ++++++--- src/Google/Client.php | 7 ++++++- tests/Google/AccessToken/VerifyTest.php | 27 +++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 52bae0d95..adb2bec90 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -48,8 +48,11 @@ class Google_AccessToken_Verify * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. */ - public function __construct(ClientInterface $http = null, CacheItemPoolInterface $cache = null) - { + public function __construct( + ClientInterface $http = null, + CacheItemPoolInterface $cache = null, + $jwt = null + ) { if (is_null($http)) { $http = new Client(); } @@ -60,7 +63,7 @@ public function __construct(ClientInterface $http = null, CacheItemPoolInterface $this->http = $http; $this->cache = $cache; - $this->jwt = $this->getJwtService(); + $this->jwt = $jwt ?: $this->getJwtService(); } /** diff --git a/src/Google/Client.php b/src/Google/Client.php index ea5de6d91..b11ef6b33 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -138,6 +138,10 @@ public function __construct(array $config = array()) // function to be called when an access token is fetched // follows the signature function ($cacheKey, $accessToken) 'token_callback' => null, + + // Service class used in Google_Client::verifyIdToken. + // Explicitly pass this in to avoid setting JWT::$leeway + 'jwt' => null, ], $config ); @@ -689,7 +693,8 @@ public function verifyIdToken($idToken = null) { $tokenVerifier = new Google_AccessToken_Verify( $this->getHttpClient(), - $this->getCache() + $this->getCache(), + $this->jwt ); if (is_null($idToken)) { diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index a641ce843..351814324 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -87,6 +87,33 @@ public function testValidateIdToken() $this->assertTrue(strlen($payload['sub']) > 0); } + /** + * Most of the logic for ID token validation is in AuthTest - + * this is just a general check to ensure we verify a valid + * id token if one exists. + */ + public function testLeewayIsUnchangedWhenPassingInJwt() + { + $this->checkToken(); + + $jwt = $this->getJwtService(); + // set arbitrary leeway so we can check this later + $jwt::$leeway = $leeway = 1.5; + $client = $this->getClient(); + $token = $client->getAccessToken(); + if ($client->isAccessTokenExpired()) { + $token = $client->fetchAccessTokenWithRefreshToken(); + } + $segments = explode('.', $token['id_token']); + $this->assertEquals(3, count($segments)); + // Extract the client ID in this case as it wont be set on the test client. + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); + $verify = new Google_AccessToken_Verify($client->getHttpClient(), null, $jwt); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + // verify the leeway is set as it was + $this->assertEquals($leeway, $jwt::$leeway); + } + public function testRetrieveCertsFromLocation() { $client = $this->getClient(); From 8e3ac1ae153d536a2eee9e87e3fea097969f69eb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 6 Jan 2017 14:56:45 -0800 Subject: [PATCH 0996/1274] fixes reference to jwt config --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index b11ef6b33..3bd6d6319 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -694,7 +694,7 @@ public function verifyIdToken($idToken = null) $tokenVerifier = new Google_AccessToken_Verify( $this->getHttpClient(), $this->getCache(), - $this->jwt + $this->config['jwt'] ); if (is_null($idToken)) { From 7b1abf3b7b7c815c854c8fd60f2601ca0da5b7cb Mon Sep 17 00:00:00 2001 From: Willem Stuursma Date: Mon, 9 Jan 2017 20:32:14 +0100 Subject: [PATCH 0997/1274] Don't distribute tests, build files etc. for composer (#1069) Don't distribute tests, build files etc. when installing with Composer with `--prefer-dist` (the default). This saves lots of bandwith and file extraction when installing dependencies with default settings. --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d4e9c2512 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +/.github export-ignore +/.gitignore export-ignore +/.travis.yml export-ignore +/CONTRIBUTING.md export-ignore +/examples export-ignore +/phpunit.xml.dist export-ignore +/style export-ignore +/tests export-ignore +/UPGRADING.md export-ignore From 54abfa1d2b9476466df8f6a5fb00d160fdc4db62 Mon Sep 17 00:00:00 2001 From: AQNOUCH Mohammed Date: Mon, 9 Jan 2017 19:34:32 +0000 Subject: [PATCH 0998/1274] Fix typos in README(#1081) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d70d1d4d8..28d2f7eda 100644 --- a/README.md +++ b/README.md @@ -343,7 +343,7 @@ $opt_params = array( ### How do I set a field to null? ### -The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to `Google_Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. +The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google_Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. ## Code Quality ## From 45668e523a8b492a8479b76ac0d19637be367715 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 9 Jan 2017 14:37:09 -0800 Subject: [PATCH 0999/1274] updates Google_Client::LIBVER to 2.1.1 --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 3bd6d6319..b266068e0 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -39,7 +39,7 @@ */ class Google_Client { - const LIBVER = "2.1.0"; + const LIBVER = "2.1.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From e39fe36586407600b0c79623ae4817412a8ccc7e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 9 Jan 2017 15:08:43 -0800 Subject: [PATCH 1000/1274] removes errant symlinks --- oauth-credentials.json | 1 - service-account-credentials.json | 1 - 2 files changed, 2 deletions(-) delete mode 120000 oauth-credentials.json delete mode 120000 service-account-credentials.json diff --git a/oauth-credentials.json b/oauth-credentials.json deleted file mode 120000 index 8cbff52a9..000000000 --- a/oauth-credentials.json +++ /dev/null @@ -1 +0,0 @@ -/Users/betterbrent/.gcloud/google-api-php-client-tests-credentials.json \ No newline at end of file diff --git a/service-account-credentials.json b/service-account-credentials.json deleted file mode 120000 index bd0b09663..000000000 --- a/service-account-credentials.json +++ /dev/null @@ -1 +0,0 @@ -/Users/betterbrent/.gcloud/cloud-samples-tests-php.json \ No newline at end of file From d3c97912214abcdb846abadbf8bfd2859e74c3e5 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 11 Jan 2017 11:41:26 -0800 Subject: [PATCH 1001/1274] adds Large File Download example (#1127) --- examples/index.php | 1 + examples/large-file-download.php | 149 +++++++++++++++++++++++ examples/large-file-upload.php | 1 + tests/examples/indexTest.php | 2 +- tests/examples/largeFileDownloadTest.php | 52 ++++++++ 5 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 examples/large-file-download.php create mode 100644 tests/examples/largeFileDownloadTest.php diff --git a/examples/index.php b/examples/index.php index 5ae2e9cf4..dca566a87 100644 --- a/examples/index.php +++ b/examples/index.php @@ -36,6 +36,7 @@
  • A query using the service account functionality.
  • An example of a small file upload.
  • An example of a large file upload.
  • +
  • An example of a large file download.
  • An example of verifying and retrieving the id token.
  • An example of using multiple APIs.
  • diff --git a/examples/large-file-download.php b/examples/large-file-download.php new file mode 100644 index 000000000..51cf8b0bc --- /dev/null +++ b/examples/large-file-download.php @@ -0,0 +1,149 @@ +setAuthConfig($oauth_credentials); +$client->setRedirectUri($redirect_uri); +$client->addScope("https://www.googleapis.com/auth/drive"); +$service = new Google_Service_Drive($client); + +/************************************************ + * If we have a code back from the OAuth 2.0 flow, + * we need to exchange that with the + * Google_Client::fetchAccessTokenWithAuthCode() + * function. We store the resultant access token + * bundle in the session, and redirect to ourself. + ************************************************/ +if (isset($_GET['code'])) { + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); + + // store in the session also + $_SESSION['upload_token'] = $token; + + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); +} + +// set the access token as part of the client +if (!empty($_SESSION['upload_token'])) { + $client->setAccessToken($_SESSION['upload_token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['upload_token']); + } +} else { + $authUrl = $client->createAuthUrl(); +} + +/************************************************ + * If we're signed in then lets try to download our + * file. + ************************************************/ +if ($client->getAccessToken()) { + // Check for "Big File" and include the file ID and size + $files = $service->files->listFiles([ + 'q' => "name='Big File'", + 'fields' => 'files(id,size)' + ]); + + if (count($files) == 0) { + echo " +

    + Before you can use this sample, you need to + upload a large file to Drive. +

    "; + return; + } + + // If this is a POST, download the file + if ($_SERVER['REQUEST_METHOD'] == 'POST') { + // Determine the file's size and ID + $fileId = $files[0]->id; + $fileSize = intval($files[0]->size); + + // Get the authorized Guzzle HTTP client + $http = $client->authorize(); + + // Open a file for writing + $fp = fopen('Big File (downloaded)', 'w'); + + // Download in 1 MB chunks + $chunkSizeBytes = 1 * 1024 * 1024; + $chunkStart = 0; + + // Iterate over each chunk and write it to our file + while ($chunkStart < $fileSize) { + $chunkEnd = $chunkStart + $chunkSizeBytes; + $response = $http->request( + 'GET', + sprintf('/drive/v3/files/%s', $fileId), + [ + 'query' => ['alt' => 'media'], + 'headers' => [ + 'Range' => sprintf('bytes=%s-%s', $chunkStart, $chunkEnd) + ] + ] + ); + $chunkStart = $chunkEnd + 1; + fwrite($fp, $response->getBody()->getContents()); + } + // close the file pointer + fclose($fp); + + // redirect back to this example + header('Location: ' . filter_var($redirect_uri . '?downloaded', FILTER_SANITIZE_URL)); + } +} +?> + +
    + + + +
    +

    Your call was successful! Check your filesystem for the file:

    +

    Big File (downloaded)

    +
    + + + + + +
    + + diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index 1afda2cdd..0d966f020 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -157,6 +157,7 @@ function readVideoChunk ($handle, $chunkSize)

    Your call was successful! Check your drive for this file:

    name ?>

    +

    Now try downloading a large file from Drive.

    diff --git a/tests/examples/indexTest.php b/tests/examples/indexTest.php index d869f9145..f0ba28313 100644 --- a/tests/examples/indexTest.php +++ b/tests/examples/indexTest.php @@ -26,7 +26,7 @@ public function testIndex() $crawler = $this->loadExample('index.php'); $nodes = $crawler->filter('li'); - $this->assertEquals(8, count($nodes)); + $this->assertEquals(9, count($nodes)); $this->assertEquals('A query using simple API access', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/largeFileDownloadTest.php b/tests/examples/largeFileDownloadTest.php new file mode 100644 index 000000000..764b094f6 --- /dev/null +++ b/tests/examples/largeFileDownloadTest.php @@ -0,0 +1,52 @@ +checkServiceAccountCredentials(); + + $crawler = $this->loadExample('large-file-download.php'); + + $nodes = $crawler->filter('h1'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('File Download - Downloading a large file', $nodes->first()->text()); + + $nodes = $crawler->filter('a.login'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } + + public function testSimpleFileDownloadWithToken() + { + $this->checkToken(); + + global $_SESSION; + $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); + + $crawler = $this->loadExample('large-file-download.php'); + + $buttonText = 'Click here to download a large (20MB) test file'; + $nodes = $crawler->filter('input'); + $this->assertEquals(1, count($nodes)); + $this->assertEquals($buttonText, $nodes->first()->attr('value')); + } +} \ No newline at end of file From 360e656f48c3262a6f7fefc0207521efa66caedf Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 11 Jan 2017 11:44:46 -0800 Subject: [PATCH 1002/1274] update google/apiclient-servies to v0.9 (#1128) --- composer.json | 2 +- src/Google/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 87b27db6d..43bb2d8da 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "^0.11", - "google/apiclient-services": "^0.8", + "google/apiclient-services": "^0.9", "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", diff --git a/src/Google/Client.php b/src/Google/Client.php index b266068e0..5c377bbff 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -39,7 +39,7 @@ */ class Google_Client { - const LIBVER = "2.1.1"; + const LIBVER = "2.1.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From d1ff8c71cc74e4539a1c4cb76260119ebe7b0970 Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 18 Jan 2017 02:00:20 +0400 Subject: [PATCH 1003/1274] Added @deprecated comments (#1132) --- src/Google/Client.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/Client.php b/src/Google/Client.php index 5c377bbff..e04dc3c46 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -163,6 +163,7 @@ public function getLibraryVersion() * * @param $code string code from accounts.google.com * @return array access token + * @deprecated */ public function authenticate($code) { @@ -201,6 +202,7 @@ public function fetchAccessTokenWithAuthCode($code) * alias for fetchAccessTokenWithAssertion * * @return array access token + * @deprecated */ public function refreshTokenWithAssertion() { @@ -828,6 +830,7 @@ public function getConfig($name, $default = null) * * @param string $file the configuration file * @throws Google_Exception + * @deprecated */ public function setAuthConfigFile($file) { From 8f011b582e46285b29689e1b2b53a1965f1b6a86 Mon Sep 17 00:00:00 2001 From: IDLOCKED Date: Fri, 20 Jan 2017 05:49:28 +0900 Subject: [PATCH 1004/1274] Fix typos in README (#1130) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28d2f7eda..e2d6eb85a 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ Using this library, the same call would look something like this: ```php // create the datastore service class -$datastore = new Google_Service_Datastore($client) +$datastore = new Google_Service_Datastore($client); // build the query - this maps directly to the JSON $query = new Google_Service_Datastore_Query([ @@ -206,7 +206,7 @@ However, as each property of the JSON API has a corresponding generated class, t ```php // create the datastore service class -$datastore = new Google_Service_Datastore($client) +$datastore = new Google_Service_Datastore($client); // build the query $request = new Google_Service_Datastore_RunQueryRequest(); From c522a3ddf545f3f8c391307782c3429e76c39abd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 2 Feb 2017 14:41:36 -0800 Subject: [PATCH 1005/1274] fix createBatch call (#1137) --- examples/batch.php | 2 +- src/Google/Http/Batch.php | 18 ++++++++++++++---- tests/BaseTest.php | 1 - tests/Google/ServiceTest.php | 22 ++++++++++++++++++++++ 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/examples/batch.php b/examples/batch.php index 94118185f..ac9ebbae7 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -58,7 +58,7 @@ want to execute with keys of our choice - these keys will be reflected in the returned array. ************************************************/ -$batch = new Google_Http_Batch($client); +$batch = $service->createBatch(); $optParams = array('filter' => 'free-ebooks'); $req1 = $service->volumes->listVolumes('Henry David Thoreau', $optParams); $batch->add($req1, "thoreau"); diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index e344777b3..b4343067c 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -42,10 +42,20 @@ class Google_Http_Batch /** @var Google_Client */ private $client; - public function __construct(Google_Client $client) - { + private $rootUrl; + + private $batchPath; + + public function __construct( + Google_Client $client, + $boundary = false, + $rootUrl = null, + $batchPath = null + ) { $this->client = $client; - $this->boundary = mt_rand(); + $this->boundary = $boundary ?: mt_rand(); + $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); + $this->batchPath = $batchPath ?: self::BATCH_PATH; } public function add(RequestInterface $request, $key = false) @@ -104,7 +114,7 @@ public function execute() $body .= "--{$this->boundary}--"; $body = trim($body); - $url = Google_Client::API_BASE_PATH . '/' . self::BATCH_PATH; + $url = $this->rootUrl . '/' . $this->batchPath; $headers = array( 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => strlen($body), diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 233ab4a7a..7acb4adec 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -87,7 +87,6 @@ private function createClient() $client->setCache($this->getCache()); } - return $client; } diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index f119a5c42..a85b147e6 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -31,8 +31,30 @@ public function isAssociativeArray($array) } } +class TestService extends Google_Service +{ + public $batchPath = 'batch/test'; +} + class Google_ServiceTest extends PHPUnit_Framework_TestCase { + public function testCreateBatch() + { + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $client = $this->getMock('Google_Client'); + $client + ->expects($this->once()) + ->method('execute') + ->with($this->callback(function ($request) { + $this->assertEquals('/batch/test', $request->getRequestTarget()); + return $request; + })) + ->will($this->returnValue($response)); + $model = new TestService($client); + $batch = $model->createBatch(); + $this->assertInstanceOf('Google_Http_Batch', $batch); + $batch->execute(); + } public function testModel() { From e430670c9220492c2636f4a2c480561aac937100 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 13 Mar 2017 13:47:46 -0700 Subject: [PATCH 1006/1274] upgrade php client services to 0.11 (#1171) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 43bb2d8da..3f0619c17 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "^0.11", - "google/apiclient-services": "^0.9", + "google/apiclient-services": "^0.11", "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", From 43996f09df274158fd04fce98e8a82effe5f3717 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Wed, 22 Mar 2017 19:32:04 +0100 Subject: [PATCH 1007/1274] Static Code Analysis with Php Inspections (EA Extended) (#1174) * language level fixes * dead code dropped * one-time use variables inlined * control flow simplifications * changes code review * unnecessary parenthesises dropped * fixed CS --- src/Google/AccessToken/Revoke.php | 5 +---- src/Google/AccessToken/Verify.php | 4 ++-- src/Google/Client.php | 21 +++++++++------------ src/Google/Collection.php | 2 +- src/Google/Http/Batch.php | 6 +----- src/Google/Http/MediaFileUpload.php | 9 +++------ src/Google/Http/REST.php | 6 +++--- src/Google/Model.php | 3 +-- src/Google/Service/Resource.php | 2 +- src/Google/Task/Runner.php | 11 ++++------- tests/BaseTest.php | 6 +++--- tests/Google/ClientTest.php | 4 ++-- tests/Google/Service/TasksTest.php | 2 +- tests/Google/ServiceTest.php | 2 +- 14 files changed, 33 insertions(+), 50 deletions(-) diff --git a/src/Google/AccessToken/Revoke.php b/src/Google/AccessToken/Revoke.php index 7acaea006..29eb3fb36 100644 --- a/src/Google/AccessToken/Revoke.php +++ b/src/Google/AccessToken/Revoke.php @@ -72,10 +72,7 @@ public function revokeToken($token) $httpHandler = HttpHandlerFactory::build($this->http); $response = $httpHandler($request); - if ($response->getStatusCode() == 200) { - return true; - } - return false; + return $response->getStatusCode() == 200; } } diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index adb2bec90..748aa3df8 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -53,11 +53,11 @@ public function __construct( CacheItemPoolInterface $cache = null, $jwt = null ) { - if (is_null($http)) { + if (null === $http) { $http = new Client(); } - if (is_null($cache)) { + if (null === $cache) { $cache = new MemoryCacheItemPool; } diff --git a/src/Google/Client.php b/src/Google/Client.php index e04dc3c46..2fb29578c 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -262,7 +262,7 @@ public function refreshToken($refreshToken) */ public function fetchAccessTokenWithRefreshToken($refreshToken = null) { - if (is_null($refreshToken)) { + if (null === $refreshToken) { if (!isset($this->token['refresh_token'])) { throw new LogicException( 'refresh token must be passed in or set as part of setAccessToken' @@ -352,7 +352,7 @@ public function authorize(ClientInterface $http = null) $credentials = null; $token = null; $scopes = null; - if (is_null($http)) { + if (null === $http) { $http = $this->getHttpClient(); } @@ -366,7 +366,7 @@ public function authorize(ClientInterface $http = null) } elseif ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token - if ($this->isAccessTokenExpired() && isset($token['refresh_token'])) { + if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { $credentials = $this->createUserRefreshCredentials( $scopes, $token['refresh_token'] @@ -477,10 +477,7 @@ public function isAccessTokenExpired() } // If the token is set to expire in the next 30 seconds. - $expired = ($created - + ($this->token['expires_in'] - 30)) < time(); - - return $expired; + return ($created + ($this->token['expires_in'] - 30)) < time(); } public function getAuth() @@ -598,7 +595,7 @@ public function setApplicationName($applicationName) public function setRequestVisibleActions($requestVisibleActions) { if (is_array($requestVisibleActions)) { - $requestVisibleActions = join(" ", $requestVisibleActions); + $requestVisibleActions = implode(" ", $requestVisibleActions); } $this->config['request_visible_actions'] = $requestVisibleActions; } @@ -699,7 +696,7 @@ public function verifyIdToken($idToken = null) $this->config['jwt'] ); - if (is_null($idToken)) { + if (null === $idToken) { $token = $this->getAccessToken(); if (!isset($token['id_token'])) { throw new LogicException( @@ -764,8 +761,8 @@ public function prepareScopes() if (empty($this->requestedScopes)) { return null; } - $scopes = implode(' ', $this->requestedScopes); - return $scopes; + + return implode(' ', $this->requestedScopes); } /** @@ -1031,7 +1028,7 @@ public function setHttpClient(ClientInterface $http) */ public function getHttpClient() { - if (is_null($this->http)) { + if (null === $this->http) { $this->http = $this->createDefaultHttpClient(); } diff --git a/src/Google/Collection.php b/src/Google/Collection.php index b26e9e51d..7c478bc02 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,7 +1,7 @@ expected_classes[$key])) { - $class = $this->expected_classes[$key]; - } try { $response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]); diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 72a6eeaf8..bd38a71b6 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -221,9 +221,7 @@ private function process() Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType) ); - $mimeType = $this->mimeType ? - $this->mimeType : - $request->getHeaderLine('content-type'); + $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { $contentType = $mimeType; @@ -233,7 +231,7 @@ private function process() $postBody = $this->data; } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { // This is a multipart/related upload. - $boundary = $this->boundary ? $this->boundary : mt_rand(); + $boundary = $this->boundary ?: mt_rand(); $boundary = str_replace('"', '', $boundary); $contentType = 'multipart/related; boundary=' . $boundary; $related = "--$boundary\r\n"; @@ -280,7 +278,7 @@ public function getUploadType($meta) public function getResumeUri() { - if (is_null($this->resumeUri)) { + if (null === $this->resumeUri) { $this->resumeUri = $this->fetchResumeUri(); } @@ -289,7 +287,6 @@ public function getResumeUri() private function fetchResumeUri() { - $result = null; $body = $this->request->getBody(); if ($body) { $headers = array( diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index 7eccc9bee..c2156a2e8 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -51,7 +51,7 @@ public static function execute( array($client, $request, $expectedClass) ); - if (!is_null($retryMap)) { + if (null !== $retryMap) { $runner->setRetryMap($retryMap); } @@ -110,7 +110,7 @@ public static function decodeHttpResponse( $code = $response->getStatusCode(); // retry strategy - if ((intVal($code)) >= 400) { + if (intVal($code) >= 400) { // if we errored out, it should be safe to grab the response body $body = (string) $response->getBody(); @@ -149,7 +149,7 @@ private static function determineExpectedClass($expectedClass, RequestInterface } // if we don't have a request, we just use what's passed in - if (is_null($request)) { + if (null === $request) { return $expectedClass; } diff --git a/src/Google/Model.php b/src/Google/Model.php index 7168c945b..cd50c9a5e 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -192,8 +192,7 @@ private function nullPlaceholderCheck($value) */ private function getMappedName($key) { - if (isset($this->internal_gapi_mappings) && - isset($this->internal_gapi_mappings[$key])) { + if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { $key = $this->internal_gapi_mappings[$key]; } return $key; diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 96c24fc1a..a3c57ee2d 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -267,7 +267,7 @@ public function createRequestUri($restPath, $params) $queryVars = array(); foreach ($params as $paramName => $paramSpec) { if ($paramSpec['type'] == 'boolean') { - $paramSpec['value'] = ($paramSpec['value']) ? 'true' : 'false'; + $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; } if ($paramSpec['location'] == 'path') { $uriTemplateVars[$paramName] = $paramSpec['value']; diff --git a/src/Google/Task/Runner.php b/src/Google/Task/Runner.php index 9d7f6c932..2f25e990e 100644 --- a/src/Google/Task/Runner.php +++ b/src/Google/Task/Runner.php @@ -55,10 +55,6 @@ class Google_Task_Runner */ private $maxAttempts = 1; - /** - * @var string $name The name of the current task (used for logging). - */ - private $name; /** * @var callable $action The task to run and possibly retry. */ @@ -153,7 +149,6 @@ public function __construct( ); } - $this->name = $name; $this->action = $action; $this->arguments = $arguments; } @@ -269,8 +264,10 @@ public function allowedRetries($code, $errors = array()) return $this->retryMap[$code]; } - if (!empty($errors) && isset($errors[0]['reason']) && - isset($this->retryMap[$errors[0]['reason']])) { + if ( + !empty($errors) && + isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']]) + ) { return $this->retryMap[$errors[0]['reason']]; } diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 7acb4adec..bbbe94fbb 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -139,8 +139,8 @@ public function tryToGetAnAccessToken(Google_Client $client) private function getClientIdAndSecret() { - $clientId = getenv('GCLOUD_CLIENT_ID') ? getenv('GCLOUD_CLIENT_ID') : null; - $clientSecret = getenv('GCLOUD_CLIENT_SECRET') ? getenv('GCLOUD_CLIENT_SECRET') : null; + $clientId = getenv('GCLOUD_CLIENT_ID') ?: null; + $clientSecret = getenv('GCLOUD_CLIENT_SECRET') ?: null; return array($clientId, $clientSecret); } @@ -182,7 +182,7 @@ public function checkKey() public function loadKey() { - if (file_exists($f = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.apiKey')) { + if (file_exists($f = __DIR__ . DIRECTORY_SEPARATOR . '.apiKey')) { return file_get_contents($f); } } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 80c732674..72e4eab1a 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -50,7 +50,7 @@ private function checkAuthHandler($http, $className) $middlewares = $property->getValue($stack); $middleware = array_pop($middlewares); - if (is_null($className)) { + if (null === $className) { // only the default middlewares have been added $this->assertEquals(3, count($middlewares)); } else { @@ -60,7 +60,7 @@ private function checkAuthHandler($http, $className) } else { $listeners = $http->getEmitter()->listeners('before'); - if (is_null($className)) { + if (null === $className) { $this->assertEquals(0, count($listeners)); } else { $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 26e8a8fb6..7d7871985 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -59,7 +59,7 @@ public function testListTask() } $tasksArray = $tasks->listTasks($list['id']); - $this->assertTrue(sizeof($tasksArray) > 1); + $this->assertTrue(count($tasksArray) > 1); foreach ($tasksArray['items'] as $task) { $this->assertIsTask($task); } diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index a85b147e6..b0e49c3f3 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -108,7 +108,7 @@ class_exists($class), public function serviceProvider() { $classes = array(); - $path = dirname(dirname(dirname(__FILE__))) . '/src/Google/Service'; + $path = dirname(dirname(__DIR__)) . '/src/Google/Service'; foreach (glob($path . "/*.php") as $file) { $classes[] = array('Google_Service_' . basename($file, '.php')); } From a7a6cc6d24a664f1658e5b8cbd408ba989340a78 Mon Sep 17 00:00:00 2001 From: Zarko Stankovic Date: Fri, 31 Mar 2017 20:44:45 +0200 Subject: [PATCH 1008/1274] Fixed logger property docblock. (#1177) Logger is an implementation of `Psr\Log\LoggerInterface`. --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 2fb29578c..732148d10 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -72,7 +72,7 @@ class Google_Client private $config; /** - * @var Google_Logger_Abstract $logger + * @var Psr\Log\LoggerInterface $logger */ private $logger; From d317569eb5b374fa522c1de2d186a3010795b92d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 31 Mar 2017 11:45:07 -0700 Subject: [PATCH 1009/1274] Improve model contructor api (#1191) * improves Model construction by allowing nested properties through array passing * adds support for passing in created instances of properties in constructor --- src/Google/Collection.php | 36 ++++++++--------- src/Google/Model.php | 21 +++++++++- tests/Google/ModelTest.php | 81 +++++++++++++++++++++++++++++++++++++- 3 files changed, 117 insertions(+), 21 deletions(-) diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 7c478bc02..315dce601 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -15,31 +15,31 @@ class Google_Collection extends Google_Model implements Iterator, Countable public function rewind() { - if (isset($this->modelData[$this->collection_key]) - && is_array($this->modelData[$this->collection_key])) { - reset($this->modelData[$this->collection_key]); + if (isset($this->{$this->collection_key}) + && is_array($this->{$this->collection_key})) { + reset($this->{$this->collection_key}); } } public function current() { $this->coerceType($this->key()); - if (is_array($this->modelData[$this->collection_key])) { - return current($this->modelData[$this->collection_key]); + if (is_array($this->{$this->collection_key})) { + return current($this->{$this->collection_key}); } } public function key() { - if (isset($this->modelData[$this->collection_key]) - && is_array($this->modelData[$this->collection_key])) { - return key($this->modelData[$this->collection_key]); + if (isset($this->{$this->collection_key}) + && is_array($this->{$this->collection_key})) { + return key($this->{$this->collection_key}); } } public function next() { - return next($this->modelData[$this->collection_key]); + return next($this->{$this->collection_key}); } public function valid() @@ -50,10 +50,10 @@ public function valid() public function count() { - if (!isset($this->modelData[$this->collection_key])) { + if (!isset($this->{$this->collection_key})) { return 0; } - return count($this->modelData[$this->collection_key]); + return count($this->{$this->collection_key}); } public function offsetExists($offset) @@ -61,7 +61,7 @@ public function offsetExists($offset) if (!is_numeric($offset)) { return parent::offsetExists($offset); } - return isset($this->modelData[$this->collection_key][$offset]); + return isset($this->{$this->collection_key}[$offset]); } public function offsetGet($offset) @@ -70,7 +70,7 @@ public function offsetGet($offset) return parent::offsetGet($offset); } $this->coerceType($offset); - return $this->modelData[$this->collection_key][$offset]; + return $this->{$this->collection_key}[$offset]; } public function offsetSet($offset, $value) @@ -78,7 +78,7 @@ public function offsetSet($offset, $value) if (!is_numeric($offset)) { return parent::offsetSet($offset, $value); } - $this->modelData[$this->collection_key][$offset] = $value; + $this->{$this->collection_key}[$offset] = $value; } public function offsetUnset($offset) @@ -86,16 +86,16 @@ public function offsetUnset($offset) if (!is_numeric($offset)) { return parent::offsetUnset($offset); } - unset($this->modelData[$this->collection_key][$offset]); + unset($this->{$this->collection_key}[$offset]); } private function coerceType($offset) { $typeKey = $this->keyType($this->collection_key); - if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) { + if (isset($this->$typeKey) && !is_object($this->{$this->collection_key}[$offset])) { $type = $this->$typeKey; - $this->modelData[$this->collection_key][$offset] = - new $type($this->modelData[$this->collection_key][$offset]); + $this->{$this->collection_key}[$offset] = + new $type($this->{$this->collection_key}[$offset]); } } } diff --git a/src/Google/Model.php b/src/Google/Model.php index cd50c9a5e..61ea70a79 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -98,8 +98,25 @@ protected function mapTypes($array) { // Hard initialise simple types, lazy load more complex ones. foreach ($array as $key => $val) { - if ( !property_exists($this, $this->keyType($key)) && - property_exists($this, $key)) { + if (property_exists($this, $this->keyType($key))) { + $propertyClass = $this->{$this->keyType($key)}; + $dataType = $this->{$this->dataType($key)}; + if ($dataType == 'array' || $dataType == 'map') { + $this->$key = array(); + foreach ($val as $itemKey => $itemVal) { + if ($itemVal instanceof $propertyClass) { + $this->{$key}[$itemKey] = $itemVal; + } else { + $this->{$key}[$itemKey] = new $propertyClass($itemVal); + } + } + } elseif ($val instanceof $propertyClass) { + $this->$key = $val; + } else { + $this->$key = new $propertyClass($val); + } + unset($array[$key]); + } elseif (property_exists($this, $key)) { $this->$key = $val; unset($array[$key]); } elseif (property_exists($this, $camelKey = $this->camelCase($key))) { diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index ec8465773..688115f28 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -159,7 +159,7 @@ public function testUnsetPropertyOnModel() $this->assertFalse(isset($model->foo)); } - public function testCollection() + public function testCollectionWithItemsFromConstructor() { $data = json_decode( '{ @@ -185,4 +185,83 @@ public function testCollection() $this->assertEquals(4, $count); $this->assertEquals(1, $collection[0]->id); } + + public function testCollectionWithItemsFromSetter() + { + $data = json_decode( + '{ + "kind": "calendar#events", + "id": "1234566", + "etag": "abcdef", + "totalItems": 4 + }', + true + ); + $collection = new Google_Service_Calendar_Events($data); + $collection->setItems([ + new Google_Service_Calendar_Event(['id' => 1]), + new Google_Service_Calendar_Event(['id' => 2]), + new Google_Service_Calendar_Event(['id' => 3]), + new Google_Service_Calendar_Event(['id' => 4]), + ]); + $this->assertEquals(4, count($collection)); + $count = 0; + foreach ($collection as $col) { + $count++; + } + $this->assertEquals(4, $count); + $this->assertEquals(1, $collection[0]->id); + } + + public function testMapDataType() + { + $data = json_decode( + '{ + "calendar": { + "regular": { "background": "#FFF", "foreground": "#000" }, + "inverted": { "background": "#000", "foreground": "#FFF" } + } + }', + true + ); + $collection = new Google_Service_Calendar_Colors($data); + $this->assertEquals(2, count($collection->calendar)); + $this->assertTrue(isset($collection->calendar['regular'])); + $this->assertTrue(isset($collection->calendar['inverted'])); + $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); + $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); + $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); + } + + public function testPassingInstanceInConstructor() + { + $creator = new Google_Service_Calendar_EventCreator(); + $creator->setDisplayName('Brent Shaffer'); + $data = [ + "creator" => $creator + ]; + $event = new Google_Service_Calendar_Event($data); + $this->assertInstanceOf('Google_Service_Calendar_EventCreator', $event->getCreator()); + $this->assertEquals('Brent Shaffer', $event->creator->getDisplayName()); + } + + public function testPassingInstanceInConstructorForMap() + { + $regular = new Google_Service_Calendar_ColorDefinition(); + $regular->setBackground('#FFF'); + $regular->setForeground('#000'); + $data = [ + "calendar" => [ + "regular" => $regular, + "inverted" => [ "background" => "#000", "foreground" => "#FFF" ], + ] + ]; + $collection = new Google_Service_Calendar_Colors($data); + $this->assertEquals(2, count($collection->calendar)); + $this->assertTrue(isset($collection->calendar['regular'])); + $this->assertTrue(isset($collection->calendar['inverted'])); + $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); + $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); + $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); + } } From 37f9ea7532728bb68d476977a4fafee82e4855e3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 12 Jun 2017 16:41:30 -0700 Subject: [PATCH 1010/1274] Michaelbausor fix url shortener sample (#1240) --- examples/templates/base.php | 26 ++++++++++++++++++++++++++ examples/url-shortener.php | 21 ++++++++++++++++----- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/examples/templates/base.php b/examples/templates/base.php index 2d3a79f69..7a6f6e6ad 100644 --- a/examples/templates/base.php +++ b/examples/templates/base.php @@ -99,6 +99,16 @@ function missingOAuth2CredentialsWarning() return $ret; } +function invalidCsrfTokenWarning() +{ + $ret = " +

    + The CSRF token is invalid, your session probably expired. Please refresh the page. +

    "; + + return $ret; +} + function checkServiceAccountCredentialsFile() { // service account creds @@ -107,6 +117,22 @@ function checkServiceAccountCredentialsFile() return file_exists($application_creds) ? $application_creds : false; } +function getCsrfToken() +{ + if (!isset($_SESSION['csrf_token'])) { + $_SESSION['csrf_token'] = bin2hex(openssl_random_pseudo_bytes(32)); + } + + return $_SESSION['csrf_token']; +} + +function validateCsrfToken() +{ + return isset($_REQUEST['csrf_token']) + && isset($_SESSION['csrf_token']) + && $_REQUEST['csrf_token'] === $_SESSION['csrf_token']; +} + function getOAuthCredentialsFile() { // oauth2 creds diff --git a/examples/url-shortener.php b/examples/url-shortener.php index f9110984f..1c3deb322 100644 --- a/examples/url-shortener.php +++ b/examples/url-shortener.php @@ -61,6 +61,7 @@ ************************************************/ if (isset($_REQUEST['logout'])) { unset($_SESSION['access_token']); + unset($_SESSION['csrf_token']); } /************************************************ @@ -101,12 +102,17 @@ might happen here is the access token itself is refreshed if the application has offline access. ************************************************/ -if ($client->getAccessToken() && isset($_GET['url'])) { +if ($client->getAccessToken() && isset($_REQUEST['url'])) { + if (!validateCsrfToken()) { + echo invalidCsrfTokenWarning(); + return; + } $url = new Google_Service_Urlshortener_Url(); - $url->longUrl = $_GET['url']; + $url->longUrl = $_REQUEST['url']; $short = $service->url->insert($url); $_SESSION['access_token'] = $client->getAccessToken(); } + ?>
    @@ -115,18 +121,23 @@
    - + + - Logout +
    + + + +
    You created a short link!
    - Create another + Create another
    From b6969c0b0c1ee5bc35abc43240f758fbe60877b3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 13 Jun 2017 11:11:25 -0700 Subject: [PATCH 1011/1274] bumps to latest version of auth client and services (#1242) --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3f0619c17..5318c4b18 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "^0.11", - "google/apiclient-services": "^0.11", + "google/auth": "^1.0", + "google/apiclient-services": "^0.12", "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", From bb58ef574a9f012d6aad0a10db87cb7a155e3b76 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 13 Jun 2017 18:32:14 -0700 Subject: [PATCH 1012/1274] bumps minimum guzzle version to 5.3.1 for php7.1 compatibility (#1241) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5318c4b18..d86655dd6 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "firebase/php-jwt": "~2.0|~3.0|~4.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", - "guzzlehttp/guzzle": "~5.2|~6.0", + "guzzlehttp/guzzle": "~5.3.1|~6.0", "guzzlehttp/psr7": "^1.2" }, "require-dev": { From 7c17a717edf6bc9075d4f3b71a405b5e11b3584c Mon Sep 17 00:00:00 2001 From: ytn3rd Date: Fri, 30 Jun 2017 02:30:07 +1000 Subject: [PATCH 1013/1274] Added check for if range exists when getting progress for resumable upload. (#1209) --- src/Google/Http/MediaFileUpload.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index bd38a71b6..1ce9bb1d3 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -165,8 +165,11 @@ private function makePutRequest(RequestInterface $request) if (308 == $this->httpResultCode) { // Track the amount uploaded. - $range = explode('-', $response->getHeaderLine('range')); - $this->progress = $range[1] + 1; + $range = $response->getHeaderLine('range'); + if ($range) { + $range_array = explode('-', $range); + $this->progress = $range_array[1] + 1; + } // Allow for changing upload URLs. $location = $response->getHeaderLine('location'); From 43612c5a5bec4fce1073e211c0f8b3ed8c342df2 Mon Sep 17 00:00:00 2001 From: Amos Shacham Date: Thu, 29 Jun 2017 19:33:09 +0300 Subject: [PATCH 1014/1274] fetchAccessTokenWithAuthCode already sets the token (#1251) --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e2d6eb85a..7fc319705 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,6 @@ foreach ($results as $item) { ```php if (isset($_GET['code'])) { $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); } ``` From 291c5e852826efa05129a9363077638f2261a639 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 5 Jul 2017 22:31:22 -0700 Subject: [PATCH 1015/1274] allows for firebase 5.0 (#1258) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d86655dd6..8e217bf59 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "php": ">=5.4", "google/auth": "^1.0", "google/apiclient-services": "^0.12", - "firebase/php-jwt": "~2.0|~3.0|~4.0", + "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", "guzzlehttp/guzzle": "~5.3.1|~6.0", From 57f9ac3b61dc96ee8e02e3a8d85f45ab8357b7a5 Mon Sep 17 00:00:00 2001 From: Dan O'Meara Date: Fri, 7 Jul 2017 09:35:55 -0700 Subject: [PATCH 1016/1274] Add notice about maintenance mode (#1259) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7fc319705..03cea13d6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ # Google APIs Client Library for PHP # +## Library maintenance +This client library is supported but in maintenance mode only. We are fixing necessary bugs and adding essential features to ensure this library continues to meet your needs for accessing Google APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problems. + ## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. From 8d2d75ff43d864b21a3b6a8e20414bbc4eca4d98 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 10 Jul 2017 08:34:24 -0700 Subject: [PATCH 1017/1274] allow for any pre-1.0 version of apiclient-services (#1260) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8e217bf59..55129fd68 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.4", "google/auth": "^1.0", - "google/apiclient-services": "^0.12", + "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", "monolog/monolog": "^1.17", "phpseclib/phpseclib": "~0.3.10|~2.0", From f3fadd538315d62ebd1191d89ac791468c617260 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 10 Jul 2017 08:34:54 -0700 Subject: [PATCH 1018/1274] update LIBVER constant (#1243) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 732148d10..18955c193 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -39,7 +39,7 @@ */ class Google_Client { - const LIBVER = "2.1.2"; + const LIBVER = "2.2.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From 9bef2490ed545c9deac78b12efa38ec01527d5f3 Mon Sep 17 00:00:00 2001 From: Claire Ryan Date: Wed, 12 Jul 2017 12:40:33 -0700 Subject: [PATCH 1019/1274] Added missing is_array check (#1249) --- src/Google/Service/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index a3c57ee2d..fee039b3d 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -272,7 +272,7 @@ public function createRequestUri($restPath, $params) if ($paramSpec['location'] == 'path') { $uriTemplateVars[$paramName] = $paramSpec['value']; } else if ($paramSpec['location'] == 'query') { - if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { + if (is_array($paramSpec['value'])) { foreach ($paramSpec['value'] as $value) { $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); } From ee03fa4d8e9192c2000170b397d08cc08f83f1ee Mon Sep 17 00:00:00 2001 From: Gaspar Zaragoza Date: Thu, 14 Sep 2017 07:04:37 +1200 Subject: [PATCH 1020/1274] Add missing exception to the catch chain (#1284) --- src/Google/AccessToken/Verify.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 748aa3df8..33f11797d 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -17,6 +17,7 @@ */ use Firebase\JWT\ExpiredException as ExpiredExceptionV3; +use Firebase\JWT\SignatureInvalidException; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use Psr\Cache\CacheItemPoolInterface; @@ -120,6 +121,8 @@ public function verifyIdToken($idToken, $audience = null) return false; } catch (ExpiredExceptionV3 $e) { return false; + } catch (SignatureInvalidException $e) { + // continue } catch (DomainException $e) { // continue } From c144e9926578f1f054aabeaddf6d94b3a3ba600c Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 14 Sep 2017 07:05:20 +1200 Subject: [PATCH 1021/1274] Add missing space to README (#1282) --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e852a93ac..d8deaf3a0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ We'd love to accept your code patches! However, before we can take them, we have Please fill out either the individual or corporate Contributor License Agreement (CLA). * If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA](http://code.google.com/legal/individual-cla-v1.0.html). - * If you work for a company that wants to allow you to contribute your work to this client library, then you'll need to sign a[corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html). + * If you work for a company that wants to allow you to contribute your work to this client library, then you'll need to sign a [corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html). Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll add you to the official list of contributors and be able to accept your patches. From f3a84d107c09d92d7c160b1bc51d025dc108c29b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 25 Sep 2017 14:37:27 -0700 Subject: [PATCH 1022/1274] addresse keytype conflict (#1310) --- src/Google/Collection.php | 7 +++-- src/Google/Model.php | 55 +++++++++++++++++--------------------- tests/Google/ModelTest.php | 14 ++++++++++ 3 files changed, 41 insertions(+), 35 deletions(-) diff --git a/src/Google/Collection.php b/src/Google/Collection.php index 315dce601..df8d444d3 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -91,11 +91,10 @@ public function offsetUnset($offset) private function coerceType($offset) { - $typeKey = $this->keyType($this->collection_key); - if (isset($this->$typeKey) && !is_object($this->{$this->collection_key}[$offset])) { - $type = $this->$typeKey; + $keyType = $this->keyType($this->collection_key); + if ($keyType && !is_object($this->{$this->collection_key}[$offset])) { $this->{$this->collection_key}[$offset] = - new $type($this->{$this->collection_key}[$offset]); + new $keyType($this->{$this->collection_key}[$offset]); } } } diff --git a/src/Google/Model.php b/src/Google/Model.php index 61ea70a79..18262608b 100644 --- a/src/Google/Model.php +++ b/src/Google/Model.php @@ -53,32 +53,30 @@ final public function __construct() */ public function __get($key) { - $keyTypeName = $this->keyType($key); + $keyType = $this->keyType($key); $keyDataType = $this->dataType($key); - if (isset($this->$keyTypeName) && !isset($this->processed[$key])) { + if ($keyType && !isset($this->processed[$key])) { if (isset($this->modelData[$key])) { $val = $this->modelData[$key]; - } else if (isset($this->$keyDataType) && - ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) { + } elseif ($keyDataType == 'array' || $keyDataType == 'map') { $val = array(); } else { $val = null; } if ($this->isAssociativeArray($val)) { - if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) { + if ($keyDataType && 'map' == $keyDataType) { foreach ($val as $arrayKey => $arrayItem) { $this->modelData[$key][$arrayKey] = - $this->createObjectFromName($keyTypeName, $arrayItem); + new $keyType($arrayItem); } } else { - $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val); + $this->modelData[$key] = new $keyType($val); } } else if (is_array($val)) { $arrayObject = array(); foreach ($val as $arrayIndex => $arrayItem) { - $arrayObject[$arrayIndex] = - $this->createObjectFromName($keyTypeName, $arrayItem); + $arrayObject[$arrayIndex] = new $keyType($arrayItem); } $this->modelData[$key] = $arrayObject; } @@ -98,22 +96,21 @@ protected function mapTypes($array) { // Hard initialise simple types, lazy load more complex ones. foreach ($array as $key => $val) { - if (property_exists($this, $this->keyType($key))) { - $propertyClass = $this->{$this->keyType($key)}; - $dataType = $this->{$this->dataType($key)}; + if ($keyType = $this->keyType($key)) { + $dataType = $this->dataType($key); if ($dataType == 'array' || $dataType == 'map') { $this->$key = array(); foreach ($val as $itemKey => $itemVal) { - if ($itemVal instanceof $propertyClass) { + if ($itemVal instanceof $keyType) { $this->{$key}[$itemKey] = $itemVal; } else { - $this->{$key}[$itemKey] = new $propertyClass($itemVal); + $this->{$key}[$itemKey] = new $keyType($itemVal); } } - } elseif ($val instanceof $propertyClass) { + } elseif ($val instanceof $keyType) { $this->$key = $val; } else { - $this->$key = new $propertyClass($val); + $this->$key = new $keyType($val); } unset($array[$key]); } elseif (property_exists($this, $key)) { @@ -234,19 +231,6 @@ protected function isAssociativeArray($array) return false; } - /** - * Given a variable name, discover its type. - * - * @param $name - * @param $item - * @return object The object from the item. - */ - private function createObjectFromName($name, $item) - { - $type = $this->$name; - return new $type($item); - } - /** * Verify if $obj is an array. * @throws Google_Exception Thrown if $obj isn't an array. @@ -291,12 +275,21 @@ public function offsetUnset($offset) protected function keyType($key) { - return $key . "Type"; + $keyType = $key . "Type"; + + // ensure keyType is a valid class + if (property_exists($this, $keyType) && class_exists($this->$keyType)) { + return $this->$keyType; + } } protected function dataType($key) { - return $key . "DataType"; + $dataType = $key . "DataType"; + + if (property_exists($this, $dataType)) { + return $this->$dataType; + } } public function __isset($key) diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index 688115f28..64f306015 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -264,4 +264,18 @@ public function testPassingInstanceInConstructorForMap() $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); } + + /** + * @see https://github.com/google/google-api-php-client/issues/1308 + */ + public function testKeyTypePropertyConflict() + { + $data = [ + "duration" => 0, + "durationType" => "unknown", + ]; + $creativeAsset = new Google_Service_Dfareporting_CreativeAsset($data); + $this->assertEquals(0, $creativeAsset->getDuration()); + $this->assertEquals('unknown', $creativeAsset->getDurationType()); + } } From b69b8ac4bf6501793c389d4e013a79d09c85c5f2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 2 Nov 2017 18:19:53 -0700 Subject: [PATCH 1023/1274] increment Google_Client::LIBVER to 2.2.1 (#1311) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 18955c193..8f8329315 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -39,7 +39,7 @@ */ class Google_Client { - const LIBVER = "2.2.0"; + const LIBVER = "2.2.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From 0c4a7b6eaefe8b0a6334c044feab9790095b2ddb Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 8 Nov 2017 17:28:50 -0200 Subject: [PATCH 1024/1274] Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#1336) --- composer.json | 2 +- tests/BaseTest.php | 3 ++- tests/Google/ServiceTest.php | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 55129fd68..9f00dab71 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "~4", + "phpunit/phpunit": "~4.8.36", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", diff --git a/tests/BaseTest.php b/tests/BaseTest.php index bbbe94fbb..b1c3fc906 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -20,8 +20,9 @@ use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; use Cache\Adapter\Filesystem\FilesystemCachePool; +use PHPUnit\Framework\TestCase; -class BaseTest extends PHPUnit_Framework_TestCase +class BaseTest extends TestCase { private $key; private $client; diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index b0e49c3f3..b6b5d218c 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -18,6 +18,8 @@ * under the License. */ +use PHPUnit\Framework\TestCase; + class TestModel extends Google_Model { public function mapTypes($array) @@ -36,7 +38,7 @@ class TestService extends Google_Service public $batchPath = 'batch/test'; } -class Google_ServiceTest extends PHPUnit_Framework_TestCase +class Google_ServiceTest extends TestCase { public function testCreateBatch() { From 120181cdcb90e198efd19fd8c87b9cc639002974 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 30 Nov 2017 15:03:31 -0600 Subject: [PATCH 1025/1274] Add PHP 7.2 in preparation of the release tomorrow (#1351) --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a7869dfee..c3b1c8e1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 # Test lowest dependencies on PHP 5.4 # (Guzzle 5.2, phpseclib 0.3) From a11ca6c55cb3527ee0d14dc402ab7ea0e1d12ca4 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Thu, 30 Nov 2017 19:04:26 -0200 Subject: [PATCH 1026/1274] Refactoring tests (#1352) --- tests/Google/AccessToken/VerifyTest.php | 6 +++--- tests/Google/ClientTest.php | 10 +++++----- tests/Google/ModelTest.php | 12 ++++++------ tests/Google/ServiceTest.php | 16 ++++++++-------- tests/examples/batchTest.php | 4 ++-- tests/examples/idTokenTest.php | 4 ++-- tests/examples/indexTest.php | 2 +- tests/examples/largeFileDownloadTest.php | 6 +++--- tests/examples/largeFileUploadTest.php | 4 ++-- tests/examples/multiApiTest.php | 2 +- tests/examples/simpleFileUploadTest.php | 6 +++--- tests/examples/simpleQueryTest.php | 2 +- tests/examples/urlShortenerTest.php | 2 +- 13 files changed, 38 insertions(+), 38 deletions(-) diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index 351814324..aef6ec4de 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -46,7 +46,7 @@ public function testPhpsecConstants() $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); $rsaMode = constant('CRYPT_RSA_MODE'); - $this->assertEquals(true, $openSslEnable); + $this->assertTrue($openSslEnable); $this->assertEquals(constant($this->getOpenSslConstant()), $rsaMode); } @@ -67,7 +67,7 @@ public function testValidateIdToken() $token = $client->fetchAccessTokenWithRefreshToken(); } $segments = explode('.', $token['id_token']); - $this->assertEquals(3, count($segments)); + $this->assertCount(3, $segments); // Extract the client ID in this case as it wont be set on the test client. $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify($http); @@ -105,7 +105,7 @@ public function testLeewayIsUnchangedWhenPassingInJwt() $token = $client->fetchAccessTokenWithRefreshToken(); } $segments = explode('.', $token['id_token']); - $this->assertEquals(3, count($segments)); + $this->assertCount(3, $segments); // Extract the client ID in this case as it wont be set on the test client. $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify($client->getHttpClient(), null, $jwt); diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 72e4eab1a..ef61de326 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -52,7 +52,7 @@ private function checkAuthHandler($http, $className) if (null === $className) { // only the default middlewares have been added - $this->assertEquals(3, count($middlewares)); + $this->assertCount(3, $middlewares); } else { $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); $this->assertInstanceOf($authClass, $middleware[0]); @@ -61,11 +61,11 @@ private function checkAuthHandler($http, $className) $listeners = $http->getEmitter()->listeners('before'); if (null === $className) { - $this->assertEquals(0, count($listeners)); + $this->assertCount(0, $listeners); } else { $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); - $this->assertEquals(1, count($listeners)); - $this->assertEquals(2, count($listeners[0])); + $this->assertCount(1, $listeners); + $this->assertCount(2, $listeners[0]); $this->assertInstanceOf($authClass, $listeners[0][0]); } } @@ -180,7 +180,7 @@ public function testPrepareNoScopes() $client = new Google_Client(); $scopes = $client->prepareScopes(); - $this->assertEquals(null, $scopes); + $this->assertNull($scopes); } public function testNoAuthIsNull() diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index 64f306015..d1480868b 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -138,9 +138,9 @@ public function testJsonStructure() $this->assertArrayHasKey("publicE", $data['publicG'][0]); $this->assertArrayNotHasKey("publicF", $data['publicG'][0]); $this->assertEquals("hello", $data['publicG'][1]); - $this->assertEquals(false, $data['publicG'][2]); + $this->assertFalse($data['publicG'][2]); $this->assertArrayNotHasKey("data", $data); - $this->assertEquals(false, $data['publicH']); + $this->assertFalse($data['publicH']); $this->assertEquals(0, $data['publicI']); } @@ -177,7 +177,7 @@ public function testCollectionWithItemsFromConstructor() true ); $collection = new Google_Service_Calendar_Events($data); - $this->assertEquals(4, count($collection)); + $this->assertCount(4, $collection); $count = 0; foreach ($collection as $col) { $count++; @@ -204,7 +204,7 @@ public function testCollectionWithItemsFromSetter() new Google_Service_Calendar_Event(['id' => 3]), new Google_Service_Calendar_Event(['id' => 4]), ]); - $this->assertEquals(4, count($collection)); + $this->assertCount(4, $collection); $count = 0; foreach ($collection as $col) { $count++; @@ -225,7 +225,7 @@ public function testMapDataType() true ); $collection = new Google_Service_Calendar_Colors($data); - $this->assertEquals(2, count($collection->calendar)); + $this->assertCount(2, $collection->calendar); $this->assertTrue(isset($collection->calendar['regular'])); $this->assertTrue(isset($collection->calendar['inverted'])); $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); @@ -257,7 +257,7 @@ public function testPassingInstanceInConstructorForMap() ] ]; $collection = new Google_Service_Calendar_Colors($data); - $this->assertEquals(2, count($collection->calendar)); + $this->assertCount(2, $collection->calendar); $this->assertTrue(isset($collection->calendar['regular'])); $this->assertTrue(isset($collection->calendar['inverted'])); $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index b6b5d218c..ba5cc0831 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -85,15 +85,15 @@ public function testModel() $this->assertEquals('asdf', $model->name); $this->assertEquals('z', $model->gender); - $this->assertEquals(false, $model->isAssociativeArray("")); - $this->assertEquals(false, $model->isAssociativeArray(false)); - $this->assertEquals(false, $model->isAssociativeArray(null)); - $this->assertEquals(false, $model->isAssociativeArray(array())); - $this->assertEquals(false, $model->isAssociativeArray(array(1, 2))); - $this->assertEquals(false, $model->isAssociativeArray(array(1 => 2))); + $this->assertFalse($model->isAssociativeArray("")); + $this->assertFalse($model->isAssociativeArray(false)); + $this->assertFalse($model->isAssociativeArray(null)); + $this->assertFalse($model->isAssociativeArray(array())); + $this->assertFalse($model->isAssociativeArray(array(1, 2))); + $this->assertFalse($model->isAssociativeArray(array(1 => 2))); - $this->assertEquals(true, $model->isAssociativeArray(array('test' => 'a'))); - $this->assertEquals(true, $model->isAssociativeArray(array("a", "b" => 2))); + $this->assertTrue($model->isAssociativeArray(array('test' => 'a'))); + $this->assertTrue($model->isAssociativeArray(array("a", "b" => 2))); } /** diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index c16ef8bea..1db795925 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -28,8 +28,8 @@ public function testBatch() $crawler = $this->loadExample('batch.php'); $nodes = $crawler->filter('br'); - $this->assertEquals(20, count($nodes)); + $this->assertCount(20, $nodes); $this->assertContains('Life of Henry David Thoreau', $crawler->text()); $this->assertContains('George Bernard Shaw His Life and Works', $crawler->text()); } -} \ No newline at end of file +} diff --git a/tests/examples/idTokenTest.php b/tests/examples/idTokenTest.php index 4f44bc3a4..acc9fd1d8 100644 --- a/tests/examples/idTokenTest.php +++ b/tests/examples/idTokenTest.php @@ -28,11 +28,11 @@ public function testIdToken() $crawler = $this->loadExample('idtoken.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Retrieving An Id Token', $nodes->first()->text()); $nodes = $crawler->filter('a.login'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Connect Me!', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/indexTest.php b/tests/examples/indexTest.php index f0ba28313..d6a8cba67 100644 --- a/tests/examples/indexTest.php +++ b/tests/examples/indexTest.php @@ -26,7 +26,7 @@ public function testIndex() $crawler = $this->loadExample('index.php'); $nodes = $crawler->filter('li'); - $this->assertEquals(9, count($nodes)); + $this->assertCount(9, $nodes); $this->assertEquals('A query using simple API access', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/largeFileDownloadTest.php b/tests/examples/largeFileDownloadTest.php index 764b094f6..538b3ff70 100644 --- a/tests/examples/largeFileDownloadTest.php +++ b/tests/examples/largeFileDownloadTest.php @@ -27,11 +27,11 @@ public function testSimpleFileDownloadNoToken() $crawler = $this->loadExample('large-file-download.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('File Download - Downloading a large file', $nodes->first()->text()); $nodes = $crawler->filter('a.login'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Connect Me!', $nodes->first()->text()); } @@ -46,7 +46,7 @@ public function testSimpleFileDownloadWithToken() $buttonText = 'Click here to download a large (20MB) test file'; $nodes = $crawler->filter('input'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals($buttonText, $nodes->first()->attr('value')); } } \ No newline at end of file diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php index edbc0a259..ca9848879 100644 --- a/tests/examples/largeFileUploadTest.php +++ b/tests/examples/largeFileUploadTest.php @@ -28,11 +28,11 @@ public function testLargeFileUpload() $crawler = $this->loadExample('large-file-upload.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('File Upload - Uploading a large file', $nodes->first()->text()); $nodes = $crawler->filter('a.login'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Connect Me!', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/multiApiTest.php b/tests/examples/multiApiTest.php index 47d2b178b..51e0a9b2b 100644 --- a/tests/examples/multiApiTest.php +++ b/tests/examples/multiApiTest.php @@ -28,7 +28,7 @@ public function testMultiApi() $crawler = $this->loadExample('multi-api.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('User Query - Multiple APIs', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php index d81ccef01..54dce650a 100644 --- a/tests/examples/simpleFileUploadTest.php +++ b/tests/examples/simpleFileUploadTest.php @@ -28,11 +28,11 @@ public function testSimpleFileUploadNoToken() $crawler = $this->loadExample('simple-file-upload.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('File Upload - Uploading a simple file', $nodes->first()->text()); $nodes = $crawler->filter('a.login'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Connect Me!', $nodes->first()->text()); } @@ -47,7 +47,7 @@ public function testSimpleFileUploadWithToken() $buttonText = 'Click here to upload two small (1MB) test files'; $nodes = $crawler->filter('input'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals($buttonText, $nodes->first()->attr('value')); } } \ No newline at end of file diff --git a/tests/examples/simpleQueryTest.php b/tests/examples/simpleQueryTest.php index ad0f3b34e..3a302475c 100644 --- a/tests/examples/simpleQueryTest.php +++ b/tests/examples/simpleQueryTest.php @@ -31,7 +31,7 @@ public function testSimpleQuery() $this->assertEquals(20, count($nodes)); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('Simple API Access', $nodes->first()->text()); } } \ No newline at end of file diff --git a/tests/examples/urlShortenerTest.php b/tests/examples/urlShortenerTest.php index ea9d60c29..fc4b9aa7f 100644 --- a/tests/examples/urlShortenerTest.php +++ b/tests/examples/urlShortenerTest.php @@ -28,7 +28,7 @@ public function testUrlShortener() $crawler = $this->loadExample('url-shortener.php'); $nodes = $crawler->filter('h1'); - $this->assertEquals(1, count($nodes)); + $this->assertCount(1, $nodes); $this->assertEquals('User Query - URL Shortener', $nodes->first()->text()); } } \ No newline at end of file From 4b0ebf8b7e63a7a70cd844ab2e4895124dfbeca1 Mon Sep 17 00:00:00 2001 From: Andrew Berry Date: Tue, 5 Dec 2017 09:12:30 -0500 Subject: [PATCH 1027/1274] Document that not all APIs support service accounts --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 03cea13d6..0a34966e2 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,11 @@ foreach ($results as $item) { > An example of this can be seen in [`examples/service-account.php`](examples/service-account.php). +Some APIs +(such as the [YouTube Data API](https://developers.google.com/youtube/v3/)) do +not support service accounts. Check with the specific API documentation if API +calls return unexpected 401 or 403 errors. + 1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount) 1. Download the JSON credentials 1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: From 3eea433cec0816860583440ec48b25a91bcf8cde Mon Sep 17 00:00:00 2001 From: Galymzhan Date: Wed, 6 Dec 2017 01:45:34 +0000 Subject: [PATCH 1028/1274] fix certificate caching, fixes #1033 (#1322) --- src/Google/AccessToken/Verify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 33f11797d..09d71b9dd 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -178,7 +178,7 @@ private function getFederatedSignOnCerts() { $certs = null; if ($cache = $this->getCache()) { - $cacheItem = $cache->getItem('federated_signon_certs_v3', 3600); + $cacheItem = $cache->getItem('federated_signon_certs_v3'); $certs = $cacheItem->get(); } @@ -189,6 +189,7 @@ private function getFederatedSignOnCerts() ); if ($cache) { + $cacheItem->expiresAt(new DateTime('+1 hour')); $cacheItem->set($certs); $cache->save($cacheItem); } From c4449fb364e572218b833861b750696cd8c62b81 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 6 Dec 2017 19:21:10 -0200 Subject: [PATCH 1029/1274] Refactoring tests (#1355) --- tests/Google/AccessToken/VerifyTest.php | 8 ++++---- tests/Google/Http/BatchTest.php | 21 +++++++++++---------- tests/Google/Http/MediaFileUploadTest.php | 2 +- tests/Google/Service/PlusTest.php | 8 ++++---- tests/Google/Service/TasksTest.php | 2 +- tests/examples/serviceAccountTest.php | 4 ++-- tests/examples/simpleQueryTest.php | 4 ++-- 7 files changed, 25 insertions(+), 24 deletions(-) diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index aef6ec4de..e72c14897 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -72,8 +72,8 @@ public function testValidateIdToken() $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertTrue(isset($payload['sub'])); - $this->assertTrue(strlen($payload['sub']) > 0); + $this->assertArrayHasKey('sub', $payload); + $this->assertGreaterThan(0, strlen($payload['sub'])); // TODO: Need to be smart about testing/disabling the // caching for this test to make sense. Not sure how to do that @@ -83,8 +83,8 @@ public function testValidateIdToken() $data = json_decode($jwt->urlSafeB64Decode($segments[1])); $verify = new Google_AccessToken_Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertTrue(isset($payload['sub'])); - $this->assertTrue(strlen($payload['sub']) > 0); + $this->assertArrayHasKey('sub', $payload); + $this->assertGreaterThan(0, strlen($payload['sub'])); } /** diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 78a947eed..4ca7d18f2 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -36,9 +36,10 @@ public function testBatchRequestWithAuth() $batch->add($plus->people->get('me'), 'key3'); $result = $batch->execute(); - $this->assertTrue(isset($result['response-key1'])); - $this->assertTrue(isset($result['response-key2'])); - $this->assertTrue(isset($result['response-key3'])); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + $this->assertArrayHasKey('response-key3', $result); + } public function testBatchRequest() @@ -53,9 +54,9 @@ public function testBatchRequest() $batch->add($plus->people->get('+LarryPage'), 'key3'); $result = $batch->execute(); - $this->assertTrue(isset($result['response-key1'])); - $this->assertTrue(isset($result['response-key2'])); - $this->assertTrue(isset($result['response-key3'])); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + $this->assertArrayHasKey('response-key3', $result); } public function testBatchRequestWithPostBody() @@ -78,9 +79,9 @@ public function testBatchRequestWithPostBody() $batch->add($shortener->url->insert($url3), 'key3'); $result = $batch->execute(); - $this->assertTrue(isset($result['response-key1'])); - $this->assertTrue(isset($result['response-key2'])); - $this->assertTrue(isset($result['response-key3'])); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + $this->assertArrayHasKey('response-key3', $result); } public function testInvalidBatchRequest() @@ -94,7 +95,7 @@ public function testInvalidBatchRequest() $batch->add($plus->people->get('+LarryPage'), 'key2'); $result = $batch->execute(); - $this->assertTrue(isset($result['response-key2'])); + $this->assertArrayHasKey('response-key2', $result); $this->assertInstanceOf( 'Google_Service_Exception', $result['response-key1'] diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index a53663326..911424ad8 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -114,7 +114,7 @@ public function testGetResumeUri() // request the resumable url $uri = $media->getResumeUri(); - $this->assertTrue(is_string($uri)); + $this->assertInternalType('string', $uri); // parse the URL $parts = parse_url($uri); diff --git a/tests/Google/Service/PlusTest.php b/tests/Google/Service/PlusTest.php index edd012f52..c3e62a249 100644 --- a/tests/Google/Service/PlusTest.php +++ b/tests/Google/Service/PlusTest.php @@ -58,12 +58,12 @@ public function assertItem($item) { // assertArrayHasKey uses array_key_exists, which is not great: // it doesn't understand SPL ArrayAccess - $this->assertTrue(isset($item['actor'])); + $this->assertArrayHasKey('actor', $item); $this->assertInstanceOf('Google_Service_Plus_ActivityActor', $item->actor); $this->assertTrue(isset($item['actor']['displayName'])); $this->assertTrue(isset($item['actor']->url)); - $this->assertTrue(isset($item['object'])); - $this->assertTrue(isset($item['access'])); - $this->assertTrue(isset($item['provider'])); + $this->assertArrayHasKey('object', $item); + $this->assertArrayHasKey('access', $item); + $this->assertArrayHasKey('provider', $item); } } diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 7d7871985..0cae03732 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -59,7 +59,7 @@ public function testListTask() } $tasksArray = $tasks->listTasks($list['id']); - $this->assertTrue(count($tasksArray) > 1); + $this->assertGreaterThan(1, count($tasksArray)); foreach ($tasksArray['items'] as $task) { $this->assertIsTask($task); } diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php index b12f6557d..261059d8a 100644 --- a/tests/examples/serviceAccountTest.php +++ b/tests/examples/serviceAccountTest.php @@ -28,7 +28,7 @@ public function testServiceAccount() $crawler = $this->loadExample('service-account.php'); $nodes = $crawler->filter('br'); - $this->assertEquals(10, count($nodes)); + $this->assertCount(10, $nodes); $this->assertContains('Life of Henry David Thoreau', $crawler->text()); } -} \ No newline at end of file +} diff --git a/tests/examples/simpleQueryTest.php b/tests/examples/simpleQueryTest.php index 3a302475c..274332aca 100644 --- a/tests/examples/simpleQueryTest.php +++ b/tests/examples/simpleQueryTest.php @@ -28,10 +28,10 @@ public function testSimpleQuery() $crawler = $this->loadExample('simple-query.php'); $nodes = $crawler->filter('br'); - $this->assertEquals(20, count($nodes)); + $this->assertCount(20, $nodes); $nodes = $crawler->filter('h1'); $this->assertCount(1, $nodes); $this->assertEquals('Simple API Access', $nodes->first()->text()); } -} \ No newline at end of file +} From 2f44829a6a3cc42cb9b4bb9f407306a368589b3b Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 5 Jan 2018 08:58:00 -0800 Subject: [PATCH 1030/1274] Remove beta --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 03cea13d6..3cfd7a3ad 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,6 @@ This client library is supported but in maintenance mode only. We are fixing ne ## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. -## Beta ## -This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. - ## Requirements ## * [PHP 5.4.0 or higher](http://www.php.net/) From b071f1f8474d8073a35d95a7e4690ef0ecf9d0c3 Mon Sep 17 00:00:00 2001 From: Phobetor Date: Fri, 26 Jan 2018 21:12:17 +0100 Subject: [PATCH 1031/1274] Fix method documentation in Client.php (#1317) --- src/Google/Client.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 8f8329315..e88dda98a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -25,7 +25,6 @@ use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Ring\Client\StreamHandler; -use GuzzleHttp\Psr7; use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Message\RequestInterface; use Psr\Log\LoggerInterface; @@ -211,7 +210,7 @@ public function refreshTokenWithAssertion() /** * Fetches a fresh access token with a given assertion token. - * @param $assertionCredentials optional. + * @param ClientInterface $authHttp optional. * @return array access token */ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) @@ -441,11 +440,16 @@ public function getAccessToken() return $this->token; } + /** + * @return string|null + */ public function getRefreshToken() { if (isset($this->token['refresh_token'])) { return $this->token['refresh_token']; } + + return null; } /** @@ -480,6 +484,9 @@ public function isAccessTokenExpired() return ($created + ($this->token['expires_in'] - 30)) < time(); } + /** + * @deprecated See UPGRADING.md for more information + */ public function getAuth() { throw new BadMethodCallException( @@ -487,6 +494,9 @@ public function getAuth() ); } + /** + * @deprecated See UPGRADING.md for more information + */ public function setAuth($auth) { throw new BadMethodCallException( @@ -753,7 +763,7 @@ public function getScopes() } /** - * @return array + * @return string|null * @visible For Testing */ public function prepareScopes() @@ -886,7 +896,7 @@ public function setAuthConfig($config) /** * Use when the service account has been delegated domain wide access. * - * @param string subject an email address account to impersonate + * @param string $subject an email address account to impersonate */ public function setSubject($subject) { @@ -968,7 +978,7 @@ public function getCache() } /** - * @return Google\Auth\CacheInterface Cache implementation + * @param array $cacheConfig */ public function setCacheConfig(array $cacheConfig) { From ffb8b9ba2d5c212c34e0f00d93b48ea4bceda882 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 26 Jan 2018 12:12:54 -0800 Subject: [PATCH 1032/1274] Fixes guzzle5 tests (#1378) --- tests/Google/AccessToken/RevokeTest.php | 96 +++++++++++++++++++------ tests/Google/ClientTest.php | 21 ++++-- tests/Google/Service/ResourceTest.php | 51 ++++++++----- tests/Google/Task/RunnerTest.php | 11 ++- 4 files changed, 134 insertions(+), 45 deletions(-) diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index 7ced6befd..099b9bcd7 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -23,13 +23,15 @@ class Google_AccessToken_RevokeTest extends BaseTest { - public function testRevokeAccess() + public function testRevokeAccessGuzzle5() { + $this->onlyGuzzle5(); + $accessToken = 'ACCESS_TOKEN'; $refreshToken = 'REFRESH_TOKEN'; $token = ''; - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); $response->expects($this->exactly(3)) ->method('getStatusCode') ->will($this->returnValue(200)); @@ -45,27 +47,77 @@ function ($request) use (&$token, $response) { } )); - // adds support for extra "createRequest" step (required for Guzzle 5) - if ($this->isGuzzle5()) { - $requestToken = null; - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(3)) - ->method('getBody') - ->will($this->returnCallback( - function () use (&$requestToken) { - return 'token='.$requestToken; - })); - $http->expects($this->exactly(3)) - ->method('createRequest') + $requestToken = null; + $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); + $request->expects($this->exactly(3)) + ->method('getBody') ->will($this->returnCallback( - function ($method, $url, $params) use (&$requestToken, $request) { - parse_str((string) $params['body'], $fields); - $requestToken = isset($fields['token']) ? $fields['token'] : null; - - return $request; - } - )); - } + function () use (&$requestToken) { + return 'token='.$requestToken; + })); + $http->expects($this->exactly(3)) + ->method('createRequest') + ->will($this->returnCallback( + function ($method, $url, $params) use (&$requestToken, $request) { + parse_str((string) $params['body'], $fields); + $requestToken = isset($fields['token']) ? $fields['token'] : null; + + return $request; + } + )); + + $t = array( + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ); + + // Test with access token. + $revoke = new Google_AccessToken_Revoke($http); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + + // Test with refresh token. + $revoke = new Google_AccessToken_Revoke($http); + $t = array( + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($refreshToken, $token); + + // Test with token string. + $revoke = new Google_AccessToken_Revoke($http); + $t = $accessToken; + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + } + + public function testRevokeAccessGuzzle6() + { + $this->onlyGuzzle6(); + + $accessToken = 'ACCESS_TOKEN'; + $refreshToken = 'REFRESH_TOKEN'; + $token = ''; + + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response->expects($this->exactly(3)) + ->method('getStatusCode') + ->will($this->returnValue(200)); + $http = $this->getMock('GuzzleHttp\ClientInterface'); + $http->expects($this->exactly(3)) + ->method('send') + ->will($this->returnCallback( + function ($request) use (&$token, $response) { + parse_str((string) $request->getBody(), $fields); + $token = isset($fields['token']) ? $fields['token'] : null; + + return $response; + } + )); $t = array( 'access_token' => $accessToken, diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index ef61de326..3d317335c 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -192,6 +192,8 @@ public function testNoAuthIsNull() public function testPrepareService() { + $this->onlyGuzzle6(); + $client = new Google_Client(); $client->setScopes(array("scope1", "scope2")); $scopes = $client->prepareScopes(); @@ -243,7 +245,6 @@ public function testPrepareService() ->will($this->returnValue($guzzle5Request)); } - $client->setHttpClient($http); $dr_service = new Google_Service_Drive($client); $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); @@ -442,7 +443,11 @@ public function testRefreshTokenSetsValues() $postBody->expects($this->once()) ->method('__toString') ->will($this->returnValue($token)); - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + if ($this->isGuzzle5()) { + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + } else { + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + } $response->expects($this->once()) ->method('getBody') ->will($this->returnValue($postBody)); @@ -479,7 +484,11 @@ public function testRefreshTokenIsSetOnRefresh() $postBody->expects($this->once()) ->method('__toString') ->will($this->returnValue($token)); - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + if ($this->isGuzzle5()) { + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + } else { + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + } $response->expects($this->once()) ->method('getBody') ->will($this->returnValue($postBody)); @@ -517,7 +526,11 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() $postBody->expects($this->once()) ->method('__toString') ->will($this->returnValue($token)); - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + if ($this->isGuzzle5()) { + $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + } else { + $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + } $response->expects($this->once()) ->method('getBody') ->will($this->returnValue($postBody)); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 5bb7d9172..f8114ca90 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -22,6 +22,8 @@ use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Stream; +use GuzzleHttp\Message\Response as Guzzle5Response; +use GuzzleHttp\Stream\Stream as Guzzle5Stream; class Test_Google_Service extends Google_Service { @@ -188,8 +190,13 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); - $body = Psr7\stream_for('thisisnotvalidjson'); - $response = new Response(200, [], $body); + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('thisisnotvalidjson'); + $response = new Guzzle5Response(200, [], $body); + } else { + $body = Psr7\stream_for('thisisnotvalidjson'); + $response = new Response(200, [], $body); + } $http = $this->getMockBuilder("GuzzleHttp\Client") ->disableOriginalConstructor() @@ -235,8 +242,13 @@ public function testNoExpectedClassForAltMediaWithHttpFail() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); - $body = Psr7\stream_for('thisisnotvalidjson'); - $response = new Response(400, [], $body); + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('thisisnotvalidjson'); + $response = new Guzzle5Response(400, [], $body); + } else { + $body = Psr7\stream_for('thisisnotvalidjson'); + $response = new Response(400, [], $body); + } $http = $this->getMockBuilder("GuzzleHttp\Client") ->disableOriginalConstructor() @@ -286,8 +298,13 @@ public function testErrorResponseWithVeryLongBody() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); - $body = Psr7\stream_for('this will be pulled into memory'); - $response = new Response(400, [], $body); + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('this will be pulled into memory'); + $response = new Guzzle5Response(400, [], $body); + } else { + $body = Psr7\stream_for('this will be pulled into memory'); + $response = new Response(400, [], $body); + } $http = $this->getMockBuilder("GuzzleHttp\Client") ->disableOriginalConstructor() @@ -334,6 +351,8 @@ public function testErrorResponseWithVeryLongBody() public function testSuccessResponseWithVeryLongBody() { + $this->onlyGuzzle6(); + // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); @@ -348,12 +367,6 @@ public function testSuccessResponseWithVeryLongBody() ->method('send') ->will($this->returnValue($response)); - if ($this->isGuzzle5()) { - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); - } - $client = new Google_Client(); $client->setHttpClient($http); $service = new Test_Google_Service($client); @@ -386,14 +399,18 @@ public function testExceptionMessage() // set the "alt" parameter to "media" $request = new Request('GET', '/'); $errors = [ ["domain" => "foo"] ]; - - $body = Psr7\stream_for(json_encode([ + $content = json_encode([ 'error' => [ 'errors' => $errors ] - ])); - - $response = new Response(400, [], $body); + ]); + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory($content); + $response = new Guzzle5Response(400, [], $body); + } else { + $body = Psr7\stream_for($content); + $response = new Response(400, [], $body); + } $http = $this->getMockBuilder("GuzzleHttp\Client") ->disableOriginalConstructor() diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 9f03d1180..08f3dcefa 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -18,6 +18,8 @@ use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; +use GuzzleHttp\Message\Response as Guzzle5Response; +use GuzzleHttp\Stream\Stream as Guzzle5Stream; class Google_Task_RunnerTest extends BaseTest { @@ -655,8 +657,13 @@ public function getNextMockedCall($request) throw $current; } - $stream = Psr7\stream_for($current['body']); - $response = new Response($current['code'], $current['headers'], $stream); + if ($this->isGuzzle5()) { + $stream = Guzzle5Stream::factory($current['body']); + $response = new Guzzle5Response($current['code'], $current['headers'], $stream); + } else { + $stream = Psr7\stream_for($current['body']); + $response = new Response($current['code'], $current['headers'], $stream); + } return $response; } From 464f13124282ad64cef48ae94c16a07b53c46723 Mon Sep 17 00:00:00 2001 From: Ricardo Fontanelli Date: Fri, 25 Aug 2017 16:53:53 -0300 Subject: [PATCH 1033/1274] Fix directory and reports stop channel urls Report stop channel and Directory stop channel methods uses a different service path then their default class. When the lib build the full service url, the service path is duplicated. --- src/Google/Service/Resource.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index fee039b3d..7340af50d 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -255,6 +255,13 @@ protected function convertToArrayAndStripNulls($o) */ public function createRequestUri($restPath, $params) { + // Override the default servicePath address if the $restPath use a / + if ('/' == substr($restPath, 0, 1)) { + $requestUrl = substr($restPath, 1); + } else { + $requestUrl = $this->servicePath . $restPath; + } + // code for leading slash $requestUrl = $this->servicePath . $restPath; if ($this->rootUrl) { From 3e19a6ec9a9f25967bd3ac46c9afd066dfdd190a Mon Sep 17 00:00:00 2001 From: Ricardo Fontanelli Date: Fri, 25 Aug 2017 17:05:18 -0300 Subject: [PATCH 1034/1274] Remove white spaces at the end of the lines 258 and 262 --- src/Google/Service/Resource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 7340af50d..113439fa0 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -255,13 +255,13 @@ protected function convertToArrayAndStripNulls($o) */ public function createRequestUri($restPath, $params) { - // Override the default servicePath address if the $restPath use a / + // Override the default servicePath address if the $restPath use a / if ('/' == substr($restPath, 0, 1)) { $requestUrl = substr($restPath, 1); } else { - $requestUrl = $this->servicePath . $restPath; + $requestUrl = $this->servicePath . $restPath; } - + // code for leading slash $requestUrl = $this->servicePath . $restPath; if ($this->rootUrl) { From a46bc7f2fef966489011ea3b679ea1131fef0f92 Mon Sep 17 00:00:00 2001 From: Ricardo Fontanelli Date: Sat, 26 Aug 2017 17:48:18 -0300 Subject: [PATCH 1035/1274] Fix a requestUrl composition according the pattern used by google-api-php-client-services and provide a test to ensure that all changes doesn't break things --- src/Google/Service/Resource.php | 1 - tests/Google/Service/ResourceTest.php | 35 ++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 113439fa0..1f3d3710b 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -263,7 +263,6 @@ public function createRequestUri($restPath, $params) } // code for leading slash - $requestUrl = $this->servicePath . $restPath; if ($this->rootUrl) { if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { $requestUrl = '/' . $requestUrl; diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index f8114ca90..564412483 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -140,12 +140,35 @@ public function testCallServiceDefinedRoot() $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } - + + /* Some Google Service (Google_Service_Directory_Resource_Channels and Google_Service_Reports_Resource_Channels) use a different servicePath value that should override + the default servicePath value, it's represented by a / before the resource path. All other Services have no / before the path*/ + public function testCreateRequestUriForASelfDefinedServicePath() + { + $this->service->servicePath = '/admin/directory/v1/'; + $resource = new Google_Service_Resource( + $this->service, + 'test', + 'testResource', + array("methods" => + array( + 'testMethod' => array( + 'parameters' => array(), + 'path' => '/admin/directory_v1/watch/stop', + 'httpMethod' => 'POST', + ) + ) + ) + ); + $request = $resource->call('testMethod', array(array())); + $this->assertEquals('https://test.example.com/admin/directory_v1/watch/stop', (string) $request->getUri()); + } + public function testCreateRequestUri() { - $restPath = "/plus/{u}"; + $restPath = "plus/{u}"; $service = new Google_Service($this->client); - $service->servicePath = "http://localhost"; + $service->servicePath = "http://localhost/"; $resource = new Google_Service_Resource($service, 'test', 'testResource', array()); // Test Path @@ -161,7 +184,7 @@ public function testCreateRequestUri() $params['u']['type'] = 'string'; $params['u']['location'] = 'query'; $params['u']['value'] = 'me'; - $value = $resource->createRequestUri('/plus', $params); + $value = $resource->createRequestUri('plus', $params); $this->assertEquals("http://localhost/plus?u=me", $value); // Test Booleans @@ -173,7 +196,7 @@ public function testCreateRequestUri() $this->assertEquals("http://localhost/plus/true", $value); $params['u']['location'] = 'query'; - $value = $resource->createRequestUri('/plus', $params); + $value = $resource->createRequestUri('plus', $params); $this->assertEquals("http://localhost/plus?u=true", $value); // Test encoding @@ -181,7 +204,7 @@ public function testCreateRequestUri() $params['u']['type'] = 'string'; $params['u']['location'] = 'query'; $params['u']['value'] = '@me/'; - $value = $resource->createRequestUri('/plus', $params); + $value = $resource->createRequestUri('plus', $params); $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } From d669e0f3b92da94d5b4ed960d462dd3b0de920ea Mon Sep 17 00:00:00 2001 From: Ricardo Fontanelli Date: Sun, 4 Feb 2018 00:07:51 -0200 Subject: [PATCH 1036/1274] Update ResourceTest.php CHANGE: use proper comment blocks --- tests/Google/Service/ResourceTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 564412483..019cb553d 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -141,8 +141,12 @@ public function testCallServiceDefinedRoot() $this->assertEquals("POST", $request->getMethod()); } - /* Some Google Service (Google_Service_Directory_Resource_Channels and Google_Service_Reports_Resource_Channels) use a different servicePath value that should override - the default servicePath value, it's represented by a / before the resource path. All other Services have no / before the path*/ + /** + * Some Google Service (Google_Service_Directory_Resource_Channels and + * Google_Service_Reports_Resource_Channels) use a different servicePath value + * that should override the default servicePath value, it's represented by a / + * before the resource path. All other Services have no / before the path + */ public function testCreateRequestUriForASelfDefinedServicePath() { $this->service->servicePath = '/admin/directory/v1/'; From ceb9e53f70bf16a39f7334f7910ac8c5180f1760 Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Fri, 13 Apr 2018 11:18:59 -0700 Subject: [PATCH 1037/1274] Promote GCP APIs (#1416) --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3cfd7a3ad..a97bcc835 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,17 @@ # Google APIs Client Library for PHP # -## Library maintenance -This client library is supported but in maintenance mode only. We are fixing necessary bugs and adding essential features to ensure this library continues to meet your needs for accessing Google APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problems. - -## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. +These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. + +## Google Cloud Platform + +For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/GoogleCloudPlatform/google-cloud-php) which is under active development. + ## Requirements ## * [PHP 5.4.0 or higher](http://www.php.net/) -## Google Cloud Platform APIs -If you're looking to call the **Google Cloud Platform** APIs, you will want to use the [Google Cloud PHP](https://github.com/googlecloudplatform/google-cloud-php) library instead of this one. - ## Developer Documentation ## http://developers.google.com/api-client-library/php From a68d080658241cd059cd3434c55193630197f47f Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 13 Jun 2018 19:36:54 +0200 Subject: [PATCH 1038/1274] ensures leeway is at least 1, instead of setting it to 1 (#1455) --- src/Google/AccessToken/Verify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 09d71b9dd..bc0afcb39 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -211,8 +211,8 @@ private function getJwtService() $jwtClass = 'Firebase\JWT\JWT'; } - if (property_exists($jwtClass, 'leeway')) { - // adds 1 second to JWT leeway + if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + // Ensures JWT leeway is at least 1 // @see https://github.com/google/google-api-php-client/issues/827 $jwtClass::$leeway = 1; } From 1d2331093f39c9fd8b85b038b55cf7aa884fbf95 Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Wed, 13 Jun 2018 13:33:11 -0700 Subject: [PATCH 1039/1274] Update readme.md, remove Stash, add Cache (#1458) fixes #1101 --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b21873ee..0926d4fa5 100644 --- a/README.md +++ b/README.md @@ -265,14 +265,21 @@ $response = $httpClient->get('https://www.googleapis.com/plus/v1/people/me'); It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client: ```php -$cache = new Stash\Pool(new Stash\Driver\FileSystem); +use League\Flysystem\Adapter\Local; +use League\Flysystem\Filesystem; +use Cache\Adapter\Filesystem\FilesystemCachePool; + +$filesystemAdapter = new Local(__DIR__.'/'); +$filesystem = new Filesystem($filesystemAdapter); + +$cache = new FilesystemCachePool($filesystem); $client->setCache($cache); ``` -In this example we use [StashPHP](http://www.stashphp.com/). Add this to your project with composer: +In this example we use [PHP Cache](http://www.php-cache.com/). Add this to your project with composer: ``` -composer require tedivm/stash +composer require cache/filesystem-adapter ``` ### Updating Tokens ### From 4e0fd83510e579043e10e565528b323b7c2b3c81 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 20 Jun 2018 17:52:20 +0200 Subject: [PATCH 1040/1274] increment libver to 2.2.2 (#1462) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index e88dda98a..0f29a10ab 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.2.1"; + const LIBVER = "2.2.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; From f88a98dbaac0207e177419a15214ab4fcf30c47a Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Tue, 26 Jun 2018 17:23:02 -0700 Subject: [PATCH 1041/1274] examples: Remove extra setAccessKey call. (#1469) * examples: Remove extra setAccessKey call. * examples: fix broken redirect --- examples/idtoken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/idtoken.php b/examples/idtoken.php index f369bca67..74bf7ae64 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -58,13 +58,13 @@ ************************************************/ if (isset($_GET['code'])) { $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); // store in the session also $_SESSION['id_token_token'] = $token; // redirect back to the example header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + return; } /************************************************ From 09a0c02bb3ded15e0d3209507bed1030064dc07c Mon Sep 17 00:00:00 2001 From: Thea Flowers Date: Mon, 2 Jul 2018 12:46:49 -0700 Subject: [PATCH 1042/1274] Add Code of Conduct --- CODE_OF_CONDUCT.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..46b2a08ea --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, +and in the interest of fostering an open and welcoming community, +we pledge to respect all people who contribute through reporting issues, +posting feature requests, updating documentation, +submitting pull requests or patches, and other activities. + +We are committed to making participation in this project +a harassment-free experience for everyone, +regardless of level of experience, gender, gender identity and expression, +sexual orientation, disability, personal appearance, +body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, +such as physical or electronic +addresses, without explicit permission +* Other unethical or unprofessional conduct. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct. +By adopting this Code of Conduct, +project maintainers commit themselves to fairly and consistently +applying these principles to every aspect of managing this project. +Project maintainers who do not follow or enforce the Code of Conduct +may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior +may be reported by opening an issue +or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, +available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) From 593058802a4bada447e541a454601025c38bb2a9 Mon Sep 17 00:00:00 2001 From: Nanne Huiges Date: Wed, 25 Jul 2018 01:07:38 +0200 Subject: [PATCH 1043/1274] Updates phpdoc for Google_Client::setScopes (#1465) --- src/Google/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 0f29a10ab..1f3820c84 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -725,13 +725,13 @@ public function verifyIdToken($idToken = null) /** * Set the scopes to be requested. Must be called before createAuthUrl(). * Will remove any previously configured scopes. - * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.login', + * @param string|array $scope_or_scopes, ie: array('https://www.googleapis.com/auth/plus.login', * 'https://www.googleapis.com/auth/moderator') */ - public function setScopes($scopes) + public function setScopes($scope_or_scopes) { $this->requestedScopes = array(); - $this->addScope($scopes); + $this->addScope($scope_or_scopes); } /** From 4c2c1ee320ff0992cfa290292a9be4e07b9a6101 Mon Sep 17 00:00:00 2001 From: Konstantin Schmidt <31983699+Assimilationstheorie@users.noreply.github.com> Date: Wed, 25 Jul 2018 01:09:32 +0200 Subject: [PATCH 1044/1274] Small changes to examples/index.php (#1460) --- examples/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/index.php b/examples/index.php index dca566a87..10fc2f1f6 100644 --- a/examples/index.php +++ b/examples/index.php @@ -21,9 +21,9 @@
    You have not entered your API key -
    - API Key: - + " method="POST"> + API Key: +
    This can be found in the Google API Console
    From 123ef5ac2d187d01540fa9c8c04d37313e016bea Mon Sep 17 00:00:00 2001 From: Konstantin Schmidt <31983699+Assimilationstheorie@users.noreply.github.com> Date: Wed, 25 Jul 2018 01:10:20 +0200 Subject: [PATCH 1045/1274] misc updates to examples/url-shortener.php (#1456) --- examples/url-shortener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/url-shortener.php b/examples/url-shortener.php index 1c3deb322..4cef77aae 100644 --- a/examples/url-shortener.php +++ b/examples/url-shortener.php @@ -122,7 +122,7 @@
    - +
    From 9edd15c7a046ebb8bf047d2c0fa61f14c6886653 Mon Sep 17 00:00:00 2001 From: Yahav Date: Wed, 8 Aug 2018 00:44:49 +0300 Subject: [PATCH 1046/1274] Fixing the ability to provide custom retryMap (#1488) Fixes #1487 --- src/Google/Client.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 1f3820c84..224247140 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -130,6 +130,7 @@ public function __construct(array $config = array()) // Task Runner retry configuration // @see Google_Task_Runner 'retry' => array(), + 'retry_map' => null, // cache config for downstream auth caching 'cache_config' => [], @@ -795,7 +796,13 @@ public function execute(RequestInterface $request, $expectedClass = null) // this is where most of the grunt work is done $http = $this->authorize(); - return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']); + return Google_Http_REST::execute( + $http, + $request, + $expectedClass, + $this->config['retry'], + $this->config['retry_map'] + ); } /** From 787d68d528d382bccc6aea504d7296024380d7d1 Mon Sep 17 00:00:00 2001 From: Maxim Rubis Date: Fri, 10 Aug 2018 14:05:44 -0400 Subject: [PATCH 1047/1274] Update docs to install latest 2.x version (#1491) Escape caret symbol properly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0926d4fa5..8a8d16d82 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.0 +composer require google/apiclient:"^2.0" ``` Finally, be sure to include the autoloader: From 6fe60b1b5780925a23c71e2c86be09b50da46540 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 13 Aug 2018 11:26:37 -0700 Subject: [PATCH 1048/1274] Use new auth urls (#1492) --- src/Google/Client.php | 4 ++-- tests/BaseTest.php | 2 +- tests/Google/ClientTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 224247140..f280ef045 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -40,8 +40,8 @@ class Google_Client { const LIBVER = "2.2.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; - const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; - const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; + const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; + const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; const API_BASE_PATH = 'https://www.googleapis.com'; diff --git a/tests/BaseTest.php b/tests/BaseTest.php index b1c3fc906..92328283e 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -123,7 +123,7 @@ public function tryToGetAnAccessToken(Google_Client $client) $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); $client->setConfig('access_type', 'offline'); $authUrl = $client->createAuthUrl(); - + echo "\nGo to: $authUrl\n"; echo "\nPlease enter the auth code:\n"; ob_flush(); `open '$authUrl'`; diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 3d317335c..df9253075 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -342,7 +342,7 @@ public function testJsonConfig() $client = new Google_Client(); $device = '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. - ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://accounts.google.com/o/oauth2/token",'. + ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://oauth2.googleapis.com/token",'. '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. '"https://www.googleapis.com/oauth2/v1/certs"}}'; @@ -355,7 +355,7 @@ public function testJsonConfig() // Web config $client = new Google_Client(); $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . - ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://accounts.google.com/o/oauth2/token"' . + ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://oauth2.googleapis.com/token"' . ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. ',"client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. From 89b3b8c28cdaa709950995f375539429c064d2e5 Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Tue, 16 Oct 2018 17:07:47 -0700 Subject: [PATCH 1049/1274] Update default and doc values for setApprovalPrompt. (#1535) * Update default and doc values for setApprovalPrompt. --- src/Google/Client.php | 7 ++++--- tests/Google/ClientTest.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index f280ef045..7f75841e5 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -125,7 +125,7 @@ public function __construct(array $config = array()) 'login_hint' => '', 'request_visible_actions' => '', 'access_type' => 'online', - 'approval_prompt' => 'auto', + 'approval_prompt' => 'consent', // Task Runner retry configuration // @see Google_Task_Runner @@ -569,8 +569,9 @@ public function setAccessType($accessType) /** * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. - * {@code "auto"} to request auto-approval when possible. (This is the default value) + * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. + * {@code "consent"} Prompt the user for consent. + * {@code "select_account"} Prompt the user to select an account. */ public function setApprovalPrompt($approvalPrompt) { diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index df9253075..38d964bfa 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -224,7 +224,7 @@ public function testPrepareService() . '&redirect_uri=http%3A%2F%2Flocalhost%2F' . '&state=xyz' . '&scope=http%3A%2F%2Ftest.com%20scope2' - . '&approval_prompt=auto', + . '&approval_prompt=consent', $client->createAuthUrl() ); From 8865db9b279f06421b73f0fd0f513280251e433e Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 7 Nov 2018 14:57:57 -0800 Subject: [PATCH 1050/1274] Update GitHub issue templates --- CONTRIBUTING.md => .github/CONTRIBUTING.md | 0 .github/ISSUE_TEMPLATE.md | 8 ----- .github/ISSUE_TEMPLATE/bug_report.md | 36 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 21 +++++++++++++ .github/ISSUE_TEMPLATE/support_request.md | 7 +++++ 5 files changed, 64 insertions(+), 8 deletions(-) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (100%) delete mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/support_request.md diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 47cb46145..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,8 +0,0 @@ -**Heads up!** - -We appreciate any bug reports or other contributions, but please note that this issue -tracker is only for this client library. We do not maintain the APIs that this client -library talks to. If you have an issue or questions with how to use a particular API, -you may be better off posting on Stackoverflow under the `google-api` tag. - -Thank you! diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..e70487ba1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,36 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +Please run down the following list and make sure you've tried the usual "quick fixes": + + - Search the issues already opened: https://github.com/googleapis/google-api-php-client/issues + - Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+php + +If you are still having issues, please be sure to include as much information as possible: + +#### Environment details + + - OS: + - PHP version: + - Package name and version: + +#### Steps to reproduce + + 1. ... + +#### Code example + +```php +# example +``` + +Making sure to follow these steps will guarantee the quickest resolution possible. + +Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..20d075c25 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + + **Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + + **Describe the solution you'd like** +A clear and concise description of what you want to happen. + + **Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + + **Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md new file mode 100644 index 000000000..995869032 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +name: Support request +about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. + +--- + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. From 736ffceb170db1ec16e4fba83d0065996b23e855 Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Thu, 8 Nov 2018 10:57:15 -0800 Subject: [PATCH 1051/1274] Update README.md (#1547) --- .gitattributes | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index d4e9c2512..3ed46ef83 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,7 @@ +/.gitattributes export-ignore /.github export-ignore /.gitignore export-ignore /.travis.yml export-ignore -/CONTRIBUTING.md export-ignore /examples export-ignore /phpunit.xml.dist export-ignore /style export-ignore diff --git a/README.md b/README.md index 8a8d16d82..57ab2f27a 100644 --- a/README.md +++ b/README.md @@ -319,7 +319,7 @@ YouTube: https://github.com/youtube/api-samples/tree/master/php ## How Do I Contribute? ## -Please see the [contributing](CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute). +Please see the [contributing](.github/CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute). ## Frequently Asked Questions ## From baf254f1aec93ad4fe897035e8fe35e01b93daa0 Mon Sep 17 00:00:00 2001 From: Dan Bruce Date: Fri, 7 Dec 2018 16:26:21 -0600 Subject: [PATCH 1052/1274] Fix build status image (#1549) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 57ab2f27a..b6feab76e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/google/google-api-php-client.svg?branch=master)](https://travis-ci.org/google/google-api-php-client) +[![Build Status](https://travis-ci.org/googleapis/google-api-php-client.svg?branch=master)](https://travis-ci.org/googleapis/google-api-php-client) # Google APIs Client Library for PHP # From 8213cb813c196e6287055fcf008de3539a25d1ab Mon Sep 17 00:00:00 2001 From: David Supplee Date: Fri, 14 Dec 2018 10:08:34 -0800 Subject: [PATCH 1053/1274] fix tests (#1560) --- tests/Google/ClientTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 38d964bfa..c6a1fe242 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -445,6 +445,9 @@ public function testRefreshTokenSetsValues() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); } @@ -486,6 +489,9 @@ public function testRefreshTokenIsSetOnRefresh() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); } @@ -528,6 +534,9 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); } From dee3a8b840d87635b0e26da63202b163512f2d4e Mon Sep 17 00:00:00 2001 From: Matt Whisenhunt Date: Fri, 14 Dec 2018 10:19:46 -0800 Subject: [PATCH 1054/1274] Revert #1535. (#1556) --- src/Google/Client.php | 10 ++++++---- tests/Google/ClientTest.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 7f75841e5..17a3c9d07 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -125,7 +125,7 @@ public function __construct(array $config = array()) 'login_hint' => '', 'request_visible_actions' => '', 'access_type' => 'online', - 'approval_prompt' => 'consent', + 'approval_prompt' => 'auto', // Task Runner retry configuration // @see Google_Task_Runner @@ -569,9 +569,8 @@ public function setAccessType($accessType) /** * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. - * {@code "consent"} Prompt the user for consent. - * {@code "select_account"} Prompt the user to select an account. + * {@code "force"} to force the approval UI to appear. + * {@code "auto"} to request auto-approval when possible. (This is the default value) */ public function setApprovalPrompt($approvalPrompt) { @@ -638,6 +637,9 @@ public function setHostedDomain($hd) * If no value is specified and the user has not previously authorized * access, then the user is shown a consent screen. * @param $prompt string + * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. + * {@code "consent"} Prompt the user for consent. + * {@code "select_account"} Prompt the user to select an account. */ public function setPrompt($prompt) { diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index c6a1fe242..70360d224 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -224,7 +224,7 @@ public function testPrepareService() . '&redirect_uri=http%3A%2F%2Flocalhost%2F' . '&state=xyz' . '&scope=http%3A%2F%2Ftest.com%20scope2' - . '&approval_prompt=consent', + . '&approval_prompt=auto', $client->createAuthUrl() ); From 463d053d71ac826449cb42aeb942ea5f3a94367e Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 14 Dec 2018 11:29:41 -0700 Subject: [PATCH 1055/1274] Use double pipes in composer dependency file (#1505) use of single pipes is deprecated, see https://github.com/composer/composer/issues/6755#issue-266478234 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 9f00dab71..5cb3ca2e7 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,10 @@ "php": ">=5.4", "google/auth": "^1.0", "google/apiclient-services": "~0.13", - "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", + "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17", - "phpseclib/phpseclib": "~0.3.10|~2.0", - "guzzlehttp/guzzle": "~5.3.1|~6.0", + "phpseclib/phpseclib": "~0.3.10||~2.0", + "guzzlehttp/guzzle": "~5.3.1||~6.0", "guzzlehttp/psr7": "^1.2" }, "require-dev": { From 7e1f6fde5b5b62f6880e12fc5ad08f0aaec3a913 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 25 Feb 2019 12:29:17 -0500 Subject: [PATCH 1056/1274] Add UnexpectedValueException to documentation (#1592) --- src/Google/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 17a3c9d07..00e731bc5 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -697,7 +697,8 @@ public function revokeToken($token = null) * Verify an id_token. This method will verify the current id_token, if one * isn't provided. * - * @throws LogicException + * @throws LogicException If no token was provided and no token was set using `setAccessToken`. + * @throws UnexpectedValueException If the token is not a valid JWT. * @param string|null $idToken The token (id_token) that should be verified. * @return array|false Returns the token payload as an array if the verification was * successful, false otherwise. From 967ca9d565596f32cf12126e1394cfbc83d2ffed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 9 Apr 2019 16:17:43 +0200 Subject: [PATCH 1057/1274] Update `Google_Client::revokeToken()` docblock. (#1609) as Google_AccessToken_Revoke::revokeToken() accepts it --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 00e731bc5..d0a97bded 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -681,7 +681,7 @@ public function setTokenCallback(callable $tokenCallback) * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. * - * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @param string|array|null $token The token (access token or a refresh token) that should be revoked. * @return boolean Returns True if the revocation was successful, otherwise False. */ public function revokeToken($token = null) From 48ddf6c7c485d95ffdccaf61663d63c8ea843f69 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 16 Apr 2019 15:47:05 -0400 Subject: [PATCH 1058/1274] Add batch reset warning (#1613) --- src/Google/Http/Batch.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Google/Http/Batch.php b/src/Google/Http/Batch.php index 4c4868484..a808f696f 100644 --- a/src/Google/Http/Batch.php +++ b/src/Google/Http/Batch.php @@ -23,6 +23,10 @@ /** * Class to handle batched requests to the Google API service. + * + * Note that calls to `Google_Http_Batch::execute()` do not clear the queued + * requests. To start a new batch, be sure to create a new instance of this + * class. */ class Google_Http_Batch { From 6e72a864aad23cc020a097d6b0b650874e972c6b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 26 Apr 2019 16:21:31 +0200 Subject: [PATCH 1059/1274] Fix usage of undefined constants (#1621) --- src/Google/Http/MediaFileUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 1ce9bb1d3..600e6789e 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -317,7 +317,7 @@ private function fetchResumeUri() if (isset($body['error']['errors'])) { $message .= ': '; foreach ($body['error']['errors'] as $error) { - $message .= "{$error[domain]}, {$error[message]};"; + $message .= "{$error['domain']}, {$error['message']};"; } $message = rtrim($message, ';'); } From 1b76fa672c31e4cab58427f413315356682ba68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire?= Date: Fri, 3 May 2019 15:41:41 +0200 Subject: [PATCH 1060/1274] Specify configuration filepath when config file is not found (#1626) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index d0a97bded..832d7757a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -867,7 +867,7 @@ public function setAuthConfig($config) { if (is_string($config)) { if (!file_exists($config)) { - throw new InvalidArgumentException('file does not exist'); + throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config)); } $json = file_get_contents($config); From 537f0fbcbc7185bfaeeb5060994e662fb2cf04e7 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 16 May 2019 17:54:44 -0400 Subject: [PATCH 1061/1274] Add guzzle config to readme (#1625) --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index b6feab76e..75d57ad83 100644 --- a/README.md +++ b/README.md @@ -313,6 +313,27 @@ Now all calls made by this library will appear in the Charles UI. One additional step is required in Charles to view SSL requests. Go to **Charles > Proxy > SSL Proxying Settings** and add the domain you'd like captured. In the case of the Google APIs, this is usually `*.googleapis.com`. +### Controlling HTTP Client Configuration Directly + +Google API Client uses [Guzzle](http://docs.guzzlephp.org) as its default HTTP client. That means that you can control your HTTP requests in the same manner you would for any application using Guzzle. + +Let's say, for instance, we wished to apply a referrer to each request. + +```php +use GuzzleHttp\Client; + +$httpClient = new Client([ + 'headers' => [ + 'referer' => 'mysite.com' + ] +]); + +$client = new Google_Client(); +$client->setHttpClient($httpClient); +``` + +Other Guzzle features such as [Handlers and Middleware](http://docs.guzzlephp.org/en/stable/handlers-and-middleware.html) offer even more control. + ### Service Specific Examples ### YouTube: https://github.com/youtube/api-samples/tree/master/php From 4bfd3edc21cceaf45fc216a4196e1993cf7a89eb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 21 May 2019 11:06:55 -0700 Subject: [PATCH 1062/1274] Prepare for v2.2.3 (#1633) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 832d7757a..e1acef167 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.2.2"; + const LIBVER = "2.2.3"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 9b293e91c6ff7790f7bb8a96a13738202b97ff57 Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Fri, 7 Jun 2019 12:05:04 -0700 Subject: [PATCH 1063/1274] Delete url-shortener.php (#1646) --- examples/README.md | 6 ++ examples/index.php | 1 - examples/url-shortener.php | 144 ---------------------------- tests/examples/indexTest.php | 4 +- tests/examples/urlShortenerTest.php | 34 ------- 5 files changed, 8 insertions(+), 181 deletions(-) delete mode 100644 examples/url-shortener.php delete mode 100644 tests/examples/urlShortenerTest.php diff --git a/examples/README.md b/examples/README.md index 447a93a22..e62da9cf2 100644 --- a/examples/README.md +++ b/examples/README.md @@ -11,3 +11,9 @@ 1. Point your browser to the host and port you specified, i.e `http://localhost:8000`. +## G Suite OAuth Samples + +G Suite APIs such as Slides, Sheets, and Drive use 3-legged OAuth authentification. +Samples using OAuth can be found here: + +https://github.com/gsuitedevs/php-samples diff --git a/examples/index.php b/examples/index.php index 10fc2f1f6..89192bb2a 100644 --- a/examples/index.php +++ b/examples/index.php @@ -31,7 +31,6 @@
    • A query using simple API access
    • -
    • Authorize a url shortener, using OAuth 2.0 authentication.
    • An example of combining multiple calls into a batch request
    • A query using the service account functionality.
    • An example of a small file upload.
    • diff --git a/examples/url-shortener.php b/examples/url-shortener.php deleted file mode 100644 index 4cef77aae..000000000 --- a/examples/url-shortener.php +++ /dev/null @@ -1,144 +0,0 @@ -setAuthConfig($oauth_credentials); -$client->setRedirectUri($redirect_uri); -$client->addScope("https://www.googleapis.com/auth/urlshortener"); - -/************************************************ - * When we create the service here, we pass the - * client to it. The client then queries the service - * for the required scopes, and uses that when - * generating the authentication URL later. - ************************************************/ -$service = new Google_Service_Urlshortener($client); - -/************************************************ - * If we're logging out we just need to clear our - * local access token in this case - ************************************************/ -if (isset($_REQUEST['logout'])) { - unset($_SESSION['access_token']); - unset($_SESSION['csrf_token']); -} - -/************************************************ - * If we have a code back from the OAuth 2.0 flow, - * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() - * function. We store the resultant access token - * bundle in the session, and redirect to ourself. - ************************************************/ -if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); - - // store in the session also - $_SESSION['access_token'] = $token; - - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); -} - -/************************************************ - If we have an access token, we can make - requests, else we generate an authentication URL. - ************************************************/ -if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { - $client->setAccessToken($_SESSION['access_token']); -} else { - $authUrl = $client->createAuthUrl(); -} - -/************************************************ - If we're signed in and have a request to shorten - a URL, then we create a new URL object, set the - unshortened URL, and call the 'insert' method on - the 'url' resource. Note that we re-store the - access_token bundle, just in case anything - changed during the request - the main thing that - might happen here is the access token itself is - refreshed if the application has offline access. - ************************************************/ -if ($client->getAccessToken() && isset($_REQUEST['url'])) { - if (!validateCsrfToken()) { - echo invalidCsrfTokenWarning(); - return; - } - $url = new Google_Service_Urlshortener_Url(); - $url->longUrl = $_REQUEST['url']; - $short = $service->url->insert($url); - $_SESSION['access_token'] = $client->getAccessToken(); -} - -?> - -
      - - - -
      - - - -
      -
      - - - -
      - - You created a short link!
      - -
      -
      -
      - Create another - -
      - -loadExample('index.php'); $nodes = $crawler->filter('li'); - $this->assertCount(9, $nodes); + $this->assertCount(8, $nodes); $this->assertEquals('A query using simple API access', $nodes->first()->text()); } -} \ No newline at end of file +} diff --git a/tests/examples/urlShortenerTest.php b/tests/examples/urlShortenerTest.php deleted file mode 100644 index fc4b9aa7f..000000000 --- a/tests/examples/urlShortenerTest.php +++ /dev/null @@ -1,34 +0,0 @@ -checkKey(); - - $crawler = $this->loadExample('url-shortener.php'); - - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('User Query - URL Shortener', $nodes->first()->text()); - } -} \ No newline at end of file From 2d11de34a0dab8dcb872908f11e006c799b710f5 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Fri, 14 Jun 2019 09:59:47 -0700 Subject: [PATCH 1064/1274] Add option to toggle API format version (#1644) * Add option to toggle API format version * Fix tests * Use phpunit mock * Force trusty in builds * Fix style --- .travis.yml | 2 +- src/Google/Client.php | 23 +++++++++++++++++++++++ tests/Google/ClientTest.php | 27 +++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c3b1c8e1a..6ac93c160 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: php +dist: trusty services: - memcached @@ -44,4 +45,3 @@ before_script: script: - vendor/bin/phpunit - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi - diff --git a/src/Google/Client.php b/src/Google/Client.php index e1acef167..92c3b2328 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -142,6 +142,10 @@ public function __construct(array $config = array()) // Service class used in Google_Client::verifyIdToken. // Explicitly pass this in to avoid setting JWT::$leeway 'jwt' => null, + + // Setting api_format_v2 will return more detailed error messages + // from certain APIs. + 'api_format_v2' => false ], $config ); @@ -796,6 +800,13 @@ public function execute(RequestInterface $request, $expectedClass = null) . $this->getLibraryVersion() ); + if ($this->config['api_format_v2']) { + $request = $request->withHeader( + 'X-GOOG-API-FORMAT-VERSION', + 2 + ); + } + // call the authorize method // this is where most of the grunt work is done $http = $this->authorize(); @@ -1056,6 +1067,18 @@ public function getHttpClient() return $this->http; } + /** + * Set the API format version. + * + * `true` will use V2, which may return more useful error messages. + * + * @param bool $value + */ + public function setApiFormatV2($value) + { + $this->config['api_format_v2'] = (bool) $value; + } + protected function createDefaultHttpClient() { $options = ['exceptions' => false]; diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 70360d224..4152871a1 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -19,8 +19,10 @@ */ use GuzzleHttp\Client; -use GuzzleHttp\Event\RequestEvents; -use Psr\Http\Message\Request; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; +use Prophecy\Argument; +use Psr\Http\Message\RequestInterface; class Google_ClientTest extends BaseTest { @@ -684,4 +686,25 @@ public function testTokenCallback() $this->assertTrue($called); } + + public function testExecuteWithFormat() + { + $this->onlyGuzzle6(); + + $client = new Google_Client([ + 'api_format_v2' => true + ]); + + $guzzle = $this->getMock('GuzzleHttp\Client'); + $guzzle->expects($this->once()) + ->method('send') + ->with($this->callback(function (RequestInterface $request) { + return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; + }))->will($this->returnValue(new Response(200, [], null))); + + $client->setHttpClient($guzzle); + + $request = new Request('POST', 'http://foo.bar/'); + $client->execute($request); + } } From f449f53201e4172faa2e0560feb7e3055d8664ed Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Wed, 19 Jun 2019 11:21:28 -0700 Subject: [PATCH 1065/1274] =?UTF-8?q?docs:=20Adds=20developer=20docs=20to?= =?UTF-8?q?=20repo:=20Fixes=20#1648=20Fixes=20#1649=20Fixes=20#165?= =?UTF-8?q?=E2=80=A6=20(#1668)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Adds developer docs to repo: Fixes #1648 Fixes #1649 Fixes #1650 Fixes #1651 Fixes #1652 Fixes #1653 * docs: Add guide for OAuth web * docs: Fix oauth-server doc * docs: Fix docs links * docs: Address @eesheesh's comments * docs: Fix bad link --- README.md | 3 +- docs/README.md | 15 ++ docs/api-keys.md | 13 ++ docs/auth.md | 11 ++ docs/id-token.md | 22 +++ docs/install.md | 39 ++++ docs/media.md | 75 ++++++++ docs/oauth-server.md | 144 +++++++++++++++ docs/oauth-web.md | 424 +++++++++++++++++++++++++++++++++++++++++++ docs/pagination.md | 10 + docs/parameters.md | 14 ++ docs/start.md | 91 ++++++++++ 12 files changed, 860 insertions(+), 1 deletion(-) create mode 100644 docs/README.md create mode 100644 docs/api-keys.md create mode 100644 docs/auth.md create mode 100644 docs/id-token.md create mode 100644 docs/install.md create mode 100644 docs/media.md create mode 100644 docs/oauth-server.md create mode 100644 docs/oauth-web.md create mode 100644 docs/pagination.md create mode 100644 docs/parameters.md create mode 100644 docs/start.md diff --git a/README.md b/README.md index 75d57ad83..4911151b0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we r * [PHP 5.4.0 or higher](http://www.php.net/) ## Developer Documentation ## -http://developers.google.com/api-client-library/php + +The [docs folder](docs/) provides detailed guides for using this library. ## Installation ## diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 000000000..b7ad418c4 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,15 @@ +# Google API Client LIbrary for PHP Docs + +The Google API Client Library for PHP offers simple, flexible access to many Google APIs. + +## Documentation + +- [Getting Started](start.md) +- [API Keys](api-keys.md) +- [Auth](auth.md) +- [Installation](install.md) +- [Media](media.md) +- [OAuth Server](oauth-server.md) +- [OAuth Web](oauth-web.md) +- [Pagination](pagination.md) +- [Parameters](parameters.md) \ No newline at end of file diff --git a/docs/api-keys.md b/docs/api-keys.md new file mode 100644 index 000000000..c4a0da1f2 --- /dev/null +++ b/docs/api-keys.md @@ -0,0 +1,13 @@ +# API Keys + +When calling APIs that do not access private user data, you can use simple API keys. These keys are used to authenticate your application for accounting purposes. The Google Developers Console documentation also describes [API keys](https://developers.google.com/console/help/using-keys). + +> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Web Server Applications](docs/oauth-server.md) and [Using OAuth 2.0 for Server to Server Applications](docs/oauth-web.md) for more information. + +## Using API Keys + +To use API keys, call the `setDeveloperKey()` method of the `Google_Client` object before making any API calls. For example: + +```php +$client->setDeveloperKey($api_key); +``` \ No newline at end of file diff --git a/docs/auth.md b/docs/auth.md new file mode 100644 index 000000000..65dc24630 --- /dev/null +++ b/docs/auth.md @@ -0,0 +1,11 @@ +# Authorization + +The Google PHP Client Library supports several methods for making authenticated calls to the Google APIs. + +- [API Keys](api-keys.md) +- [OAuth 2.0 For Webservers](oauth-web.md) +- [OAuth 2.0 Service Accounts](oauth-server.md) + +In addition, it supports a method of identifying users without granting access to make Google API calls. + +- [ID Token Verification](id-token.md) \ No newline at end of file diff --git a/docs/id-token.md b/docs/id-token.md new file mode 100644 index 000000000..56456fa88 --- /dev/null +++ b/docs/id-token.md @@ -0,0 +1,22 @@ +# ID Token Authentication + +ID tokens allow authenticating a user securely without requiring a network call (in many cases), and without granting the server access to request user information from the Google APIs. + +> For a complete example, see the [idtoken.php](https://github.com/googleapis/google-api-php-client/blob/master/examples/idtoken.php) sample in the examples/ directory of the client library. + +This is accomplished because each ID token is a cryptographically signed, base64 encoded JSON structure. The token payload includes the Google user ID, the client ID of the application the user signed in to, and the issuer (in this case, Google). It also contains a cryptographic signature which can be verified with the public Google certificates to ensure that the token was created by Google. If the user has granted permission to view their email address to the application, the ID token will additionally include their email address. + +The token can be easily and securely verified with the PHP client library + +```php +function getUserFromToken($token) { + $ticket = $client->verifyIdToken($token); + if ($ticket) { + $data = $ticket->getAttributes(); + return $data['payload']['sub']; // user ID + } + return false +} +``` + +The library will automatically download and cache the certificate required for verification, and refresh it if it has expired. diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 000000000..84b9208d5 --- /dev/null +++ b/docs/install.md @@ -0,0 +1,39 @@ +# Installation + +This page contains information about installing the Google APIs Client Library for PHP. + +## Requirements + +* PHP version 5.4 or greater. + +## Obtaining the client library + +There are two options for obtaining the files for the client library. + +### Using Composer + +You can install the library by adding it as a dependency to your composer.json. + +```json +"require": { + "google/apiclient": "^2.0" +} +``` + +### Downloading from GitHub + +Follow [the instructions in the README](https://github.com/google/google-api-php-client#download-the-release) to download the package locally. + +### What to do with the files + +After obtaining the files, include the autloader. If you used Composer, your require statement will look like this: + +```php +require_once '/path/to/your-project/vendor/autoload.php'; +``` + +If you downloaded the package separately, your require statement will look like this: + +```php +require_once '/path/to/google-api-php-client/vendor/autoload.php'; +``` \ No newline at end of file diff --git a/docs/media.md b/docs/media.md new file mode 100644 index 000000000..783e632bc --- /dev/null +++ b/docs/media.md @@ -0,0 +1,75 @@ +# Media Upload + +The PHP client library allows for uploading large files for use with APIs such as Drive or YouTube. There are three different methods available. + +## Simple Upload + +In the simple upload case, the data is passed as the body of the request made to the server. This limits the ability to specify metadata, but is very easy to use. + +```php +$file = new Google_Service_Drive_DriveFile(); +$result = $service->files->insert($file, array( + 'data' => file_get_contents("path/to/file"), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'media' +)); +``` + +## Multipart File Upload + +With multipart file uploads, the uploaded file is sent as one part of a multipart form post. This allows metadata about the file object to be sent as part of the post as well. This is triggered by specifying the _multipart_ uploadType. + +```php +$file = new Google_Service_Drive_DriveFile(); +$file->setTitle("Hello World!"); +$result = $service->files->insert($file, array( + 'data' => file_get_contents("path/to/file"), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'multipart' +)); +``` + +## Resumable File Upload + +It is also possible to split the upload across multiple requests. This is convenient for larger files, and allows resumption of the upload if there is a problem. Resumable uploads can be sent with separate metadata. + +```php +$file = new Google_Service_Drive_DriveFile(); +$file->title = "Big File"; +$chunkSizeBytes = 1 * 1024 * 1024; + +// Call the API with the media upload, defer so it doesn't immediately return. +$client->setDefer(true); +$request = $service->files->insert($file); + +// Create a media file upload to represent our upload process. +$media = new Google_Http_MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true, + $chunkSizeBytes +); +$media->setFileSize(filesize("path/to/file")); + +// Upload the various chunks. $status will be false until the process is +// complete. +$status = false; +$handle = fopen("path/to/file", "rb"); +while (!$status && !feof($handle)) { + $chunk = fread($handle, $chunkSizeBytes); + $status = $media->nextChunk($chunk); + } + +// The final value of $status will be the data from the API for the object +// that has been uploaded. +$result = false; +if($status != false) { + $result = $status; +} + +fclose($handle); +// Reset to the client to execute requests immediately in the future. +$client->setDefer(false); +``` \ No newline at end of file diff --git a/docs/oauth-server.md b/docs/oauth-server.md new file mode 100644 index 000000000..f8db920be --- /dev/null +++ b/docs/oauth-server.md @@ -0,0 +1,144 @@ +# Using OAuth 2.0 for Server to Server Applications + +The Google APIs Client Library for PHP supports using OAuth 2.0 for server-to-server interactions such as those between a web application and a Google service. For this scenario you need a service account, which is an account that belongs to your application instead of to an individual end user. Your application calls Google APIs on behalf of the service account, so users aren't directly involved. This scenario is sometimes called "two-legged OAuth," or "2LO." (The related term "three-legged OAuth" refers to scenarios in which your application calls Google APIs on behalf of end users, and in which user consent is sometimes required.) + +Typically, an application uses a service account when the application uses Google APIs to work with its own data rather than a user's data. For example, an application that uses [Google Cloud Datastore](https://cloud.google.com/datastore/) for data persistence would use a service account to authenticate its calls to the Google Cloud Datastore API. + +If you have a G Suite domain—if you use [G Suite Business](https://gsuite.google.com), for example—an administrator of the G Suite domain can authorize an application to access user data on behalf of users in the G Suite domain. For example, an application that uses the [Google Calendar API](https://developers.google.com/google-apps/calendar/) to add events to the calendars of all users in a G Suite domain would use a service account to access the Google Calendar API on behalf of users. Authorizing a service account to access data on behalf of users in a domain is sometimes referred to as "delegating domain-wide authority" to a service account. + +> **Note:** When you use [G Suite Marketplace](https://www.google.com/enterprise/marketplace/) to install an application for your domain, the required permissions are automatically granted to the application. You do not need to manually authorize the service accounts that the application uses. + +> **Note:** Although you can use service accounts in applications that run from a G Suite domain, service accounts are not members of your G Suite account and aren't subject to domain policies set by G Suite administrators. For example, a policy set in the G Suite admin console to restrict the ability of Apps end users to share documents outside of the domain would not apply to service accounts. + +This document describes how an application can complete the server-to-server OAuth 2.0 flow by using the Google APIs Client Library for PHP. + +## Overview + +To support server-to-server interactions, first create a service account for your project in the Developers Console. If you want to access user data for users in your G Suite domain, then delegate domain-wide access to the service account. + +Then, your application prepares to make authorized API calls by using the service account's credentials to request an access token from the OAuth 2.0 auth server. + +Finally, your application can use the access token to call Google APIs. + +## Creating a service account + +A service account's credentials include a generated email address that is unique, a client ID, and at least one public/private key pair. + +If your application runs on Google App Engine, a service account is set up automatically when you create your project. + +If your application doesn't run on Google App Engine or Google Compute Engine, you must obtain these credentials in the Google Developers Console. To generate service-account credentials, or to view the public credentials that you've already generated, do the following: + +If your application runs on Google App Engine, a service account is set up automatically when you create your project. + +If your application doesn't run on Google App Engine or Google Compute Engine, you must obtain these credentials in the Google Developers Console. To generate service-account credentials, or to view the public credentials that you've already generated, do the following: + +1. Open the [**Service accounts** section](https://console.developers.google.com/permissions/serviceaccounts?project=_) of the Developers Console's **Permissions** page. +2. Click **Create service account**. +3. In the **Create service account** window, type a name for the service account and select **Furnish a new private key**. If you want to [grant G Suite domain-wide authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to the service account, also select **Enable G Suite Domain-wide Delegation**. Then, click **Create**. + +Your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of this key. You are responsible for storing it securely. + +You can return to the [Developers Console](https://console.developers.google.com/) at any time to view the client ID, email address, and public key fingerprints, or to generate additional public/private key pairs. For more details about service account credentials in the Developers Console, see [Service accounts](https://developers.google.com/console/help/service-accounts) in the Developers Console help file. + +Take note of the service account's email address and store the service account's private key file in a location accessible to your application. Your application needs them to make authorized API calls. + +**Note:** You must store and manage private keys securely in both development and production environments. Google does not keep a copy of your private keys, only your public keys. + +### Delegating domain-wide authority to the service account + +If your application runs in a G Suite domain and accesses user data, the service account that you created needs to be granted access to the user data that you want to access. + +The following steps must be performed by an administrator of the G Suite domain: + +1. Go to your G Suite domain’s [Admin console](http://admin.google.com). +2. Select **Security** from the list of controls. If you don't see **Security** listed, select **More controls** from the gray bar at the bottom of the page, then select **Security** from the list of controls. If you can't see the controls, make sure you're signed in as an administrator for the domain. +3. Select **Advanced settings** from the list of options. +4. Select **Manage third party OAuth Client access** in the **Authentication** section. +5. In the **Client name** field enter the service account's **Client ID**. +6. In the **One or More API Scopes** field enter the list of scopes that your application should be granted access to. For example, if your application needs domain-wide access to the Google Drive API and the Google Calendar API, enter: https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/calendar. +7. Click **Authorize**. + +Your application now has the authority to make API calls as users in your domain (to "impersonate" users). When you prepare to make authorized API calls, you specify the user to impersonate. + +[](#top_of_page)Preparing to make an authorized API call +-------------------------------------------------------- + +After you have obtained the client email address and private key from the Developers Console, set the path to these credentials in the `GOOGLE_APPLICATION_CREDENTIALS` environment variable ( **Note:** This is not required in the App Engine environment): + +```php +putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); +``` + +Call the `useApplicationDefaultCredentials` to use your service account credentials to authenticate: + +```php +$client = new Google_Client(); +$client->useApplicationDefaultCredentials(); +``` + +If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method `setSubject`: + +```php +$client->setSubject($user_to_impersonate); +``` + +Use the authorized `Google_Client` object to call Google APIs in your application. + +## Calling Google APIs + +Use the authorized `Google_Client` object to call Google APIs by completing the following steps: + +1. Build a service object for the API that you want to call, providing the authorized `Google_Client` object. For example, to call the Cloud SQL Administration API: + + ```php + $sqladmin = new Google_Service_SQLAdmin($client); + ``` + +2. Make requests to the API service using the [interface provided by the service object](https://developers.google.com/api-client-library/php/start/get_started#build). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: + + ```php + $response = $sqladmin->instances->listInstances('examinable-example-123')->getItems(); + ``` + +## Complete example + +The following example prints a JSON-formatted list of Cloud SQL instances in a project. + +To run this example: + +1. Create a new directory and change to it. For example: + + ```sh + mkdir ~/php-oauth2-example + cd ~/php-oauth2-example + ``` + +2. Install the [Google API Client Library](https://github.com/google/google-api-php-client) for PHP using [Composer](https://getcomposer.org): + + ```sh + composer require google/apiclient:^2.0 + ``` + +3. Create the file sqlinstances.php with the content below. +4. Run the example from the command line: + + ``` + php ~/php-oauth2-example/sqlinstances.php + ``` + +### sqlinstances.php + +```php +useApplicationDefaultCredentials(); + +$sqladmin = new Google_Service_SQLAdmin($client); +$response = $sqladmin->instances + ->listInstances('examinable-example-123')->getItems(); +echo json_encode($response) . "\n"; +``` \ No newline at end of file diff --git a/docs/oauth-web.md b/docs/oauth-web.md new file mode 100644 index 000000000..96314a76a --- /dev/null +++ b/docs/oauth-web.md @@ -0,0 +1,424 @@ +# Using OAuth 2.0 for Web Server Applications + +This document explains how web server applications use the Google API Client Library for PHP to implement OAuth 2.0 authorization to access Google APIs. OAuth 2.0 allows users to share specific data with an application while keeping their usernames, passwords, and other information private. For example, an application can use OAuth 2.0 to obtain permission from users to store files in their Google Drives. + +This OAuth 2.0 flow is specifically for user authorization. It is designed for applications that can store confidential information and maintain state. A properly authorized web server application can access an API while the user interacts with the application or after the user has left the application. + +Web server applications frequently also use [service accounts](oauth-server.md) to authorize API requests, particularly when calling Cloud APIs to access project-based data rather than user-specific data. Web server applications can use service accounts in conjunction with user authorization. + +## Prerequisites + +### Enable APIs for your project + +Any application that calls Google APIs needs to enable those APIs in the API Console. To enable the appropriate APIs for your project: + +1. Open the [Library](https://console.developers.google.com/apis/library) page in the API Console. +2. Select the project associated with your application. Create a project if you do not have one already. +3. Use the **Library** page to find each API that your application will use. Click on each API and enable it for your project. + +### Create authorization credentials + +Any application that uses OAuth 2.0 to access Google APIs must have authorization credentials that identify the application to Google's OAuth 2.0 server. The following steps explain how to create credentials for your project. Your applications can then use the credentials to access APIs that you have enabled for that project. + +1. Open the [Credentials page](https://console.developers.google.com/apis/credentials) in the API Console. +2. Click **Create credentials > OAuth client ID**. +3. Complete the form. Set the application type to `Web application`. Applications that use languages and frameworks like PHP, Java, Python, Ruby, and .NET must specify authorized **redirect URIs**. The redirect URIs are the endpoints to which the OAuth 2.0 server can send responses. + + For testing, you can specify URIs that refer to the local machine, such as `http://localhost:8080`. With that in mind, please note that all of the examples in this document use `http://localhost:8080` as the redirect URI. + + We recommend that you design your app's auth endpoints so that your application does not expose authorization codes to other resources on the page. + +After creating your credentials, download the **client_secret.json** file from the API Console. Securely store the file in a location that only your application can access. + +> **Important:** Do not store the **client_secret.json** file in a publicly-accessible location. In addition, if you share the source code to your application—for example, on GitHub—store the **client_secret.json** file outside of your source tree to avoid inadvertently sharing your client credentials. + +### Identify access scopes + +Scopes enable your application to only request access to the resources that it needs while also enabling users to control the amount of access that they grant to your application. Thus, there may be an inverse relationship between the number of scopes requested and the likelihood of obtaining user consent. + +Before you start implementing OAuth 2.0 authorization, we recommend that you identify the scopes that your app will need permission to access. + +We also recommend that your application request access to authorization scopes via an [incremental authorization](#incremental-authorization) process, in which your application requests access to user data in context. This best practice helps users to more easily understand why your application needs the access it is requesting. + +The [OAuth 2.0 API Scopes](https://developers.google.com/identity/protocols/googlescopes) document contains a full list of scopes that you might use to access Google APIs. + +> If your public application uses scopes that permit access to certain user data, it must pass review. If you see **unverified app** on the screen when testing your application, you must submit a verification request to remove it. Find out more about [unverified apps](https://support.google.com/cloud/answer/7454865) and get answers to [frequently asked questions about app verification](https://support.google.com/cloud/answer/9110914) in the Help Center. + +### Language-specific requirements + +To run any of the code samples in this document, you'll need a Google account, access to the Internet, and a web browser. If you are using one of the API client libraries, also see the language-specific requirements below. + +To run the PHP code samples in this document, you'll need: + +* PHP 5.4 or greater with the command-line interface (CLI) and JSON extension installed. +* The [Composer](https://getcomposer.org/) dependency management tool. +* The Google APIs Client Library for PHP: + ```sh + php composer.phar require google/apiclient:^2.0 + ``` + +## Obtaining OAuth 2.0 access tokens + +The following steps show how your application interacts with Google's OAuth 2.0 server to obtain a user's consent to perform an API request on the user's behalf. Your application must have that consent before it can execute a Google API request that requires user authorization. + +The list below quickly summarizes these steps: + +1. Your application identifies the permissions it needs. +2. Your application redirects the user to Google along with the list of requested permissions. +3. The user decides whether to grant the permissions to your application. +4. Your application finds out what the user decided. +5. If the user granted the requested permissions, your application retrieves tokens needed to make API requests on the user's behalf. + +### Step 1: Set authorization parameters + +Your first step is to create the authorization request. That request sets parameters that identify your application and define the permissions that the user will be asked to grant to your application. + +The code snippet below creates a `Google_Client()` object, which defines the parameters in the authorization request. + +That object uses information from your **client_secret.json** file to identify your application. The object also identifies the scopes that your application is requesting permission to access and the URL to your application's auth endpoint, which will handle the response from Google's OAuth 2.0 server. Finally, the code sets the optional access_type and include_granted_scopes parameters. + +For example, this code requests read-only, offline access to a user's Google Drive: + +```php +$client = new Google_Client(); +$client->setAuthConfig('client_secret.json'); +$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +$client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); +$client->setAccessType('offline'); // offline access +$client->setIncludeGrantedScopes(true); // incremental auth +``` + +The request specifies the following information: + +#### Parameters + +##### `client_id` + +**Required**. The client ID for your application. You can find this value in the [API Console](https://console.developers.google.com/). In PHP, call the `setAuthConfig` function to load authorization credentials from a **client_secret.json** file. + +```php +$client = new Google_Client(); +$client->setAuthConfig('client_secret.json'); +``` + +##### `redirect_uri` + +**Required**. Determines where the API server redirects the user after the user completes the authorization flow. The value must exactly match one of the authorized redirect URIs for the OAuth 2.0 client, which you configured in the [API Console](https://console.developers.google.com/). If this value doesn't match an authorized URI, you will get a 'redirect_uri_mismatch' error. Note that the `http` or `https` scheme, case, and trailing slash ('`/`') must all match. + +To set this value in PHP, call the `setRedirectUri` function. Note that you must specify a valid redirect URI for your API Console project. + +```php +$client->setRedirectUri('http://localhost:8080/oauth2callback.php'); +``` + +##### `scope` + +**Required**. A space-delimited list of scopes that identify the resources that your application could access on the user's behalf. These values inform the consent screen that Google displays to the user. + +Scopes enable your application to only request access to the resources that it needs while also enabling users to control the amount of access that they grant to your application. Thus, there is an inverse relationship between the number of scopes requested and the likelihood of obtaining user consent. To set this value in PHP, call the `addScope` function: + +```php +$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +``` + +The [OAuth 2.0 API Scopes](https://developers.google.com/identity/protocols/googlescopes) document provides a full list of scopes that you might use to access Google APIs. + +We recommend that your application request access to authorization scopes in context whenever possible. By requesting access to user data in context, via [incremental authorization](#Incremental-authorization), you help users to more easily understand why your application needs the access it is requesting. + +##### `access_type` + +**Recommended**. Indicates whether your application can refresh access tokens when the user is not present at the browser. Valid parameter values are `online`, which is the default value, and `offline`. + +Set the value to `offline` if your application needs to refresh access tokens when the user is not present at the browser. This is the method of refreshing access tokens described later in this document. This value instructs the Google authorization server to return a refresh token _and_ an access token the first time that your application exchanges an authorization code for tokens. + +To set this value in PHP, call the `setAccessType` function: + +```php +$client->setAccessType('offline'); +``` + +##### `state` + +**Recommended**. Specifies any string value that your application uses to maintain state between your authorization request and the authorization server's response. The server returns the exact value that you send as a `name=value` pair in the hash (`#`) fragment of the `redirect_uri` after the user consents to or denies your application's access request. + +You can use this parameter for several purposes, such as directing the user to the correct resource in your application, sending nonces, and mitigating cross-site request forgery. Since your `redirect_uri` can be guessed, using a `state` value can increase your assurance that an incoming connection is the result of an authentication request. If you generate a random string or encode the hash of a cookie or another value that captures the client's state, you can validate the response to additionally ensure that the request and response originated in the same browser, providing protection against attacks such as cross-site request forgery. See the [OpenID Connect](https://developers.google.com/identity/protocols/OpenIDConnect#createxsrftoken) documentation for an example of how to create and confirm a `state` token. + +To set this value in PHP, call the `setState` function: + +```php +$client->setState($sample_passthrough_value); +``` + +##### `include_granted_scopes` + +**Optional**. Enables applications to use incremental authorization to request access to additional scopes in context. If you set this parameter's value to `true` and the authorization request is granted, then the new access token will also cover any scopes to which the user previously granted the application access. See the [incremental authorization](#Incremental-authorization) section for examples. + +To set this value in PHP, call the `setIncludeGrantedScopes` function: + +```php +$client->setIncludeGrantedScopes(true); +``` + +##### `login_hint` + +**Optional**. If your application knows which user is trying to authenticate, it can use this parameter to provide a hint to the Google Authentication Server. The server uses the hint to simplify the login flow either by prefilling the email field in the sign-in form or by selecting the appropriate multi-login session. + +Set the parameter value to an email address or `sub` identifier, which is equivalent to the user's Google ID. + +To set this value in PHP, call the `setLoginHint` function: + +```php +$client->setLoginHint('timmerman@google.com'); +``` + +##### `prompt` + +**Optional**. A space-delimited, case-sensitive list of prompts to present the user. If you don't specify this parameter, the user will be prompted only the first time your app requests access. + +To set this value in PHP, call the `setApprovalPrompt` function: + +```php +$client->setApprovalPrompt('consent'); +``` + +Possible values are: + +`none` + +Do not display any authentication or consent screens. Must not be specified with other values. + +`consent` + +Prompt the user for consent. + +`select_account` + +Prompt the user to select an account. + +### Step 2: Redirect to Google's OAuth 2.0 server + +Redirect the user to Google's OAuth 2.0 server to initiate the authentication and authorization process. Typically, this occurs when your application first needs to access the user's data. In the case of [incremental authorization](#incremental-authorization), this step also occurs when your application first needs to access additional resources that it does not yet have permission to access. + +1. Generate a URL to request access from Google's OAuth 2.0 server: + + ```php + $auth_url = $client->createAuthUrl(); + ``` + +2. Redirect the user to `$auth_url`: + + ```php + header('Location: ' . filter_var($auth_url, FILTER_SANITIZE_URL)); + ``` + +Google's OAuth 2.0 server authenticates the user and obtains consent from the user for your application to access the requested scopes. The response is sent back to your application using the redirect URL you specified. + +### Step 3: Google prompts user for consent + +In this step, the user decides whether to grant your application the requested access. At this stage, Google displays a consent window that shows the name of your application and the Google API services that it is requesting permission to access with the user's authorization credentials. The user can then consent or refuse to grant access to your application. + +Your application doesn't need to do anything at this stage as it waits for the response from Google's OAuth 2.0 server indicating whether the access was granted. That response is explained in the following step. + +### Step 4: Handle the OAuth 2.0 server response + +The OAuth 2.0 server responds to your application's access request by using the URL specified in the request. + +If the user approves the access request, then the response contains an authorization code. If the user does not approve the request, the response contains an error message. The authorization code or error message that is returned to the web server appears on the query string, as shown below: + +An error response: + + https://oauth2.example.com/auth?error=access_denied + +An authorization code response: + + https://oauth2.example.com/auth?code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7 + +> **Important**: If your response endpoint renders an HTML page, any resources on that page will be able to see the authorization code in the URL. Scripts can read the URL directly, and the URL in the `Referer` HTTP header may be sent to any or all resources on the page. +> +> Carefully consider whether you want to send authorization credentials to all resources on that page (especially third-party scripts such as social plugins and analytics). To avoid this issue, we recommend that the server first handle the request, then redirect to another URL that doesn't include the response parameters. + +#### Sample OAuth 2.0 server response + +You can test this flow by clicking on the following sample URL, which requests read-only access to view metadata for files in your Google Drive: + +``` +https://accounts.google.com/o/oauth2/v2/auth? + scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.metadata.readonly& + access_type=offline& + include_granted_scopes=true& + state=state_parameter_passthrough_value& + redirect_uri=http%3A%2F%2Foauth2.example.com%2Fcallback& + response_type=code& + client_id=client_id +``` + +After completing the OAuth 2.0 flow, you should be redirected to `http://localhost/oauth2callback`, which will likely yield a `404 NOT FOUND` error unless your local machine serves a file at that address. The next step provides more detail about the information returned in the URI when the user is redirected back to your application. + +### Step 5: Exchange authorization code for refresh and access tokens + +After the web server receives the authorization code, it can exchange the authorization code for an access token. + +To exchange an authorization code for an access token, use the `authenticate` method: + +```php +$client->authenticate($_GET['code']); +``` + +You can retrieve the access token with the `getAccessToken` method: + +```php +$access_token = $client->getAccessToken(); +``` + +[](#top_of_page)Calling Google APIs +----------------------------------- + +Use the access token to call Google APIs by completing the following steps: + +1. If you need to apply an access token to a new `Google_Client` object—for example, if you stored the access token in a user session—use the `setAccessToken` method: + + ```php + $client->setAccessToken($access_token); + ``` + +2. Build a service object for the API that you want to call. You build a a service object by providing an authorized `Google_Client` object to the constructor for the API you want to call. For example, to call the Drive API: + + ```php + $drive = new Google_Service_Drive($client); + ``` + +3. Make requests to the API service using the [interface provided by the service object](start.md). For example, to list the files in the authenticated user's Google Drive: + + ```php + $files = $drive->files->listFiles(array())->getItems(); + ``` + +[](#top_of_page)Complete example +-------------------------------- + +The following example prints a JSON-formatted list of files in a user's Google Drive after the user authenticates and gives consent for the application to access the user's Drive files. + +To run this example: + +1. In the API Console, add the URL of the local machine to the list of redirect URLs. For example, add `http://localhost:8080`. +2. Create a new directory and change to it. For example: + + ```sh + mkdir ~/php-oauth2-example + cd ~/php-oauth2-example + ``` + +3. Install the [Google API Client Library](https://github.com/google/google-api-php-client) for PHP using [Composer](https://getcomposer.org): + + ```sh + composer require google/apiclient:^2.0 + ``` + +4. Create the files `index.php` and `oauth2callback.php` with the content below. +5. Run the example with a web server configured to serve PHP. If you use PHP 5.4 or newer, you can use PHP's built-in test web server: + + ```sh + php -S localhost:8080 ~/php-oauth2-example + ``` + +#### index.php + +```php +setAuthConfig('client_secrets.json'); +$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); + +if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { + $client->setAccessToken($_SESSION['access_token']); + $drive = new Google_Service_Drive($client); + $files = $drive->files->listFiles(array())->getItems(); + echo json_encode($files); +} else { + $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'; + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); +} +``` + +#### oauth2callback.php + +```php +setAuthConfigFile('client_secrets.json'); +$client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); +$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); + +if (! isset($_GET['code'])) { + $auth_url = $client->createAuthUrl(); + header('Location: ' . filter_var($auth_url, FILTER_SANITIZE_URL)); +} else { + $client->authenticate($_GET['code']); + $_SESSION['access_token'] = $client->getAccessToken(); + $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . '/'; + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); +} +``` + +## Incremental authorization + +In the OAuth 2.0 protocol, your app requests authorization to access resources, which are identified by scopes. It is considered a best user-experience practice to request authorization for resources at the time you need them. To enable that practice, Google's authorization server supports incremental authorization. This feature lets you request scopes as they are needed and, if the user grants permission, add those scopes to your existing access token for that user. + +For example, an app that lets people sample music tracks and create mixes might need very few resources at sign-in time, perhaps nothing more than the name of the person signing in. However, saving a completed mix would require access to their Google Drive. Most people would find it natural if they only were asked for access to their Google Drive at the time the app actually needed it. + +In this case, at sign-in time the app might request the `profile` scope to perform basic sign-in, and then later request the `https://www.googleapis.com/auth/drive.file` scope at the time of the first request to save a mix. + +To implement incremental authorization, you complete the normal flow for requesting an access token but make sure that the authorization request includes previously granted scopes. This approach allows your app to avoid having to manage multiple access tokens. + +The following rules apply to an access token obtained from an incremental authorization: + +* The token can be used to access resources corresponding to any of the scopes rolled into the new, combined authorization. +* When you use the refresh token for the combined authorization to obtain an access token, the access token represents the combined authorization and can be used for any of its scopes. +* The combined authorization includes all scopes that the user granted to the API project even if the grants were requested from different clients. For example, if a user granted access to one scope using an application's desktop client and then granted another scope to the same application via a mobile client, the combined authorization would include both scopes. +* If you revoke a token that represents a combined authorization, access to all of that authorization's scopes on behalf of the associated user are revoked simultaneously. + +The example for [setting authorization parameters](#Step-1-Set-authorization-parameters) demonstrates how to ensure authorization requests follow this best practice. The code snippet below also shows the code that you need to add to use incremental authorization. + +```php +$client->setIncludeGrantedScopes(true); +``` + +## Refreshing an access token (offline access) + +Access tokens periodically expire. You can refresh an access token without prompting the user for permission (including when the user is not present) if you requested offline access to the scopes associated with the token. + +If you use a Google API Client Library, the [client object](#Step-1-Set-authorization-parameters) refreshes the access token as needed as long as you configure that object for offline access. + +Requesting offline access is a requirement for any application that needs to access a Google API when the user is not present. For example, an app that performs backup services or executes actions at predetermined times needs to be able to refresh its access token when the user is not present. The default style of access is called `online`. + +Server-side web applications, installed applications, and devices all obtain refresh tokens during the authorization process. Refresh tokens are not typically used in client-side (JavaScript) web applications. + +If your application needs offline access to a Google API, set the API client's access type to `offline`: + +```php +$client->setAccessType("offline"); +``` + +After a user grants offline access to the requested scopes, you can continue to use the API client to access Google APIs on the user's behalf when the user is offline. The client object will refresh the access token as needed. + +## Revoking a token + +In some cases a user may wish to revoke access given to an application. A user can revoke access by visiting [Account Settings](https://security.google.com/settings/security/permissions). It is also possible for an application to programmatically revoke the access given to it. Programmatic revocation is important in instances where a user unsubscribes or removes an application. In other words, part of the removal process can include an API request to ensure the permissions granted to the application are removed. + +To programmatically revoke a token, call `revokeToken()`: + +```php +$client->revokeToken(); +``` + +**Note:** Following a successful revocation response, it might take some time before the revocation has full effect. + +Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see our [Site Policies](https://developers.google.com/terms/site-policies). Java is a registered trademark of Oracle and/or its affiliates. \ No newline at end of file diff --git a/docs/pagination.md b/docs/pagination.md new file mode 100644 index 000000000..22bf78721 --- /dev/null +++ b/docs/pagination.md @@ -0,0 +1,10 @@ +# Pagination + +Most list API calls have a maximum limit of results they will return in a single response. To allow retrieving more than this number of results, responses may return a pagination token which can be passed with a request in order to access subsequent pages. + +The token for the page will normally be found on list response objects, normally `nextPageToken`. This can be passed in the optional params. + +```php +$token = $results->getNextPageToken(); +$server->listActivities('me', 'public', array('pageToken' => $token)); +``` \ No newline at end of file diff --git a/docs/parameters.md b/docs/parameters.md new file mode 100644 index 000000000..029ebe4ec --- /dev/null +++ b/docs/parameters.md @@ -0,0 +1,14 @@ +# Standard Parameters + +Many API methods include support for certain optional parameters. In addition to these there are several standard parameters that can be applied to any API call. These are defined in the `Google_Service_Resource` class. + +## Parameters + +- **alt**: Specify an alternative response type, for example csv. +- **fields**: A comma separated list of fields that should be included in the response. Nested parameters can be specified with parens, e.g. key,parent(child/subsection). +- **userIp**: The IP of the end-user making the request. This is used in per-user request quotas, as defined in the Google Developers Console +- **quotaUser**: A user ID for the end user, an alternative to userIp for applying per-user request quotas +- **data**: Used as part of [media](media.md) +- **mimeType**: Used as part of [media](media.md) +- **uploadType**: Used as part of [media](media.md) +- **mediaUpload**: Used as part of [media](media.md) \ No newline at end of file diff --git a/docs/start.md b/docs/start.md new file mode 100644 index 000000000..a315d665e --- /dev/null +++ b/docs/start.md @@ -0,0 +1,91 @@ +# Getting Started + +This document provides all the basic information you need to start using the library. It covers important library concepts, shows examples for various use cases, and gives links to more information. + +## Setup + +There are a few setup steps you need to complete before you can use this library: + +1. If you don't already have a Google account, [sign up](https://www.google.com/accounts). +2. If you have never created a Google API project, read the [Managing Projects page](https://developers.google.com/console/help/#managingprojects) and create a project in the [Google Developers Console](https://console.developers.google.com/) +3. [Install](install.md) the library. + +## Authentication and authorization + +It is important to understand the basics of how API authentication and authorization are handled. All API calls must use either simple or authorized access (defined below). Many API methods require authorized access, but some can use either. Some API methods that can use either behave differently, depending on whether you use simple or authorized access. See the API's method documentation to determine the appropriate access type. + +### 1. Simple API access (API keys) + +These API calls do not access any private user data. Your application must authenticate itself as an application belonging to your Google Cloud project. This is needed to measure project usage for accounting purposes. + +#### Important concepts + +* **API key**: To authenticate your application, use an [API key](https://cloud.google.com/docs/authentication/api-keys) for your Google Cloud Console project. Every simple access call your application makes must include this key. + +> **Warning**: Keep your API key private. If someone obtains your key, they could use it to consume your quota or incur charges against your Google Cloud project. + + +### 2. Authorized API access (OAuth 2.0) + +These API calls access private user data. Before you can call them, the user that has access to the private data must grant your application access. Therefore, your application must be authenticated, the user must grant access for your application, and the user must be authenticated in order to grant that access. All of this is accomplished with [OAuth 2.0](https://developers.google.com/identity/protocols/OAuth2) and libraries written for it. + +#### Important concepts + +* **Scope**: Each API defines one or more scopes that declare a set of operations permitted. For example, an API might have read-only and read-write scopes. When your application requests access to user data, the request must include one or more scopes. The user needs to approve the scope of access your application is requesting. +* **Refresh and access tokens**: When a user grants your application access, the OAuth 2.0 authorization server provides your application with refresh and access tokens. These tokens are only valid for the scope requested. Your application uses access tokens to authorize API calls. Access tokens expire, but refresh tokens do not. Your application can use a refresh token to acquire a new access token. + + > **Warning**: Keep refresh and access tokens private. If someone obtains your tokens, they could use them to access private user data. + +* **Client ID and client secret**: These strings uniquely identify your application and are used to acquire tokens. They are created for your Google Cloud project on the [API Access pane](https://code.google.com/apis/console#:access) of the Google Cloud. There are three types of client IDs, so be sure to get the correct type for your application: + + * Web application client IDs + * Installed application client IDs + * [Service Account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) client IDs + + > **Warning**: Keep your client secret private. If someone obtains your client secret, they could use it to consume your quota, incur charges against your Google Cloud project, and request access to user data. + + +## Building and calling a service + +This section described how to build an API-specific service object, make calls to the service, and process the response. + +### Build the client object + +The client object is the primary container for classes and configuration in the library. + +```php +$client = new Google_Client(); +$client->setApplicationName("My Application"); +$client->setDeveloperKey("MY_SIMPLE_API_KEY"); +``` + +### Build the service object + +Services are called through queries to service specific objects. These are created by constructing the service object, and passing an instance of `Google_Client` to it. `Google_Client` contains the IO, authentication and other classes required by the service to function, and the service informs the client which scopes it uses to provide a default when authenticating a user. + +```php +$service = new Google_Service_Books($client); +``` + +### Calling an API + +Each API provides resources and methods, usually in a chain. These can be accessed from the service object in the form `$service->resource->method(args)`. Most method require some arguments, then accept a final parameter of an array containing optional parameters. For example, with the Google Books API, we can make a call to list volumes matching a certain string, and add an optional _filter_ parameter. + +```php +$optParams = array('filter' => 'free-ebooks'); +$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +``` + +### Handling the result + +There are two main types of response - items and collections of items. Each can be accessed either as an object or as an array. Collections implement the `Iterator` interface so can be used in foreach and other constructs. + +```php +foreach ($results as $item) { + echo $item['volumeInfo']['title'], "
      \n"; +} +``` + +## Google App Engine support + +This library works well with Google App Engine applications. The Memcache class is automatically used for caching, and the file IO is implemented with the use of the Streams API. \ No newline at end of file From a8a4d8187d33ac6e6eb484ec8285131666cb8c2e Mon Sep 17 00:00:00 2001 From: David Supplee Date: Thu, 20 Jun 2019 08:28:04 -0700 Subject: [PATCH 1066/1274] docs: Update links in README to point to new docs living inside repo (#1670) * docs: Update links in README to point to new docs living inside repo * docs: use correct link --- README.md | 8 ++++---- docs/oauth-server.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4911151b0..9d64d855a 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Uncompress the zip file you download, and include the autoloader in your project require_once '/path/to/google-api-php-client/vendor/autoload.php'; ``` -For additional installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). +For additional installation and setup instructions, see [the documentation](docs/). ## Examples ## See the [`examples/`](examples) directory for examples of the key client features. You can @@ -86,7 +86,7 @@ foreach ($results as $item) { > An example of this can be seen in [`examples/simple-file-upload.php`](examples/simple-file-upload.php). -1. Follow the instructions to [Create Web Application Credentials](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred) +1. Follow the instructions to [Create Web Application Credentials](docs/oauth-web.md#create-authorization-credentials) 1. Download the JSON credentials 1. Set the path to these credentials using `Google_Client::setAuthConfig`: @@ -127,7 +127,7 @@ Some APIs not support service accounts. Check with the specific API documentation if API calls return unexpected 401 or 403 errors. -1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount) +1. Follow the instructions to [Create a Service Account](docs/oauth-server.md#creating-a-service-account) 1. Download the JSON credentials 1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: @@ -341,7 +341,7 @@ YouTube: https://github.com/youtube/api-samples/tree/master/php ## How Do I Contribute? ## -Please see the [contributing](.github/CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute). +Please see the [contributing](.github/CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement. ## Frequently Asked Questions ## diff --git a/docs/oauth-server.md b/docs/oauth-server.md index f8db920be..cba985435 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -94,7 +94,7 @@ Use the authorized `Google_Client` object to call Google APIs by completing the $sqladmin = new Google_Service_SQLAdmin($client); ``` -2. Make requests to the API service using the [interface provided by the service object](https://developers.google.com/api-client-library/php/start/get_started#build). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: +2. Make requests to the API service using the [interface provided by the service object](https://github.com/googleapis/google-api-php-client/blob/master/docs/start.md#build-the-service-object). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: ```php $response = $sqladmin->instances->listInstances('examinable-example-123')->getItems(); @@ -141,4 +141,4 @@ $sqladmin = new Google_Service_SQLAdmin($client); $response = $sqladmin->instances ->listInstances('examinable-example-123')->getItems(); echo json_encode($response) . "\n"; -``` \ No newline at end of file +``` From e26bd86e877f347072319e4cdd144fd89b05114e Mon Sep 17 00:00:00 2001 From: Kslr Date: Sat, 29 Jun 2019 22:19:01 +0800 Subject: [PATCH 1067/1274] fix docs link (#1673) --- docs/api-keys.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-keys.md b/docs/api-keys.md index c4a0da1f2..8b109e669 100644 --- a/docs/api-keys.md +++ b/docs/api-keys.md @@ -2,7 +2,7 @@ When calling APIs that do not access private user data, you can use simple API keys. These keys are used to authenticate your application for accounting purposes. The Google Developers Console documentation also describes [API keys](https://developers.google.com/console/help/using-keys). -> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Web Server Applications](docs/oauth-server.md) and [Using OAuth 2.0 for Server to Server Applications](docs/oauth-web.md) for more information. +> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Web Server Applications](/docs/oauth-server.md) and [Using OAuth 2.0 for Server to Server Applications](/docs/oauth-web.md) for more information. ## Using API Keys @@ -10,4 +10,4 @@ To use API keys, call the `setDeveloperKey()` method of the `Google_Client` obje ```php $client->setDeveloperKey($api_key); -``` \ No newline at end of file +``` From 0c98c266da1b16611b88cf40981a57b4a56d2584 Mon Sep 17 00:00:00 2001 From: Niall Kennedy Date: Mon, 15 Jul 2019 16:22:39 -0700 Subject: [PATCH 1068/1274] Update README links (#1677) Updated links for correct URL fragment, scheme, of linked URLs. If a link leads to a redirect, update to its final location. --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9d64d855a..bb4227ce3 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ These client libraries are officially supported by Google. However, the librari ## Google Cloud Platform -For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/GoogleCloudPlatform/google-cloud-php) which is under active development. +For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/googleapis/google-cloud-php) which is under active development. ## Requirements ## -* [PHP 5.4.0 or higher](http://www.php.net/) +* [PHP 5.4.0 or higher](https://www.php.net/) ## Developer Documentation ## @@ -23,7 +23,7 @@ You can use **Composer** or simply **Download the Release** ### Composer -The preferred method is via [composer](https://getcomposer.org). Follow the +The preferred method is via [composer](https://getcomposer.org/). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed. @@ -41,7 +41,7 @@ require_once '/path/to/your-project/vendor/autoload.php'; ### Download the Release -If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/google/google-api-php-client/releases) page lists all stable versions. Download any file +If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/googleapis/google-api-php-client/releases) page lists all stable versions. Download any file with the name `google-api-php-client-[RELEASE_NAME].zip` for a package including this library and its dependencies. Uncompress the zip file you download, and include the autoloader in your project: @@ -156,7 +156,7 @@ calls return unexpected 401 or 403 errors. ### Making Requests ### -The classes used to call the API in [google-api-php-client-services](https://github.com/Google/google-api-php-client-services) are autogenerated. They map directly to the JSON requests and responses found in the [APIs Explorer](https://developers.google.com/apis-explorer/#p/). +The classes used to call the API in [google-api-php-client-services](https://github.com/googleapis/google-api-php-client-services) are autogenerated. They map directly to the JSON requests and responses found in the [APIs Explorer](https://developers.google.com/apis-explorer/#p/). A JSON request to the [Datastore API](https://developers.google.com/apis-explorer/#p/datastore/v1beta3/datastore.projects.runQuery) would look like this: @@ -263,7 +263,7 @@ $response = $httpClient->get('https://www.googleapis.com/plus/v1/people/me'); ### Caching ### -It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client: +It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](https://www.php-fig.org/psr/psr-6/) compatible library to the client: ```php use League\Flysystem\Adapter\Local; @@ -285,7 +285,7 @@ composer require cache/filesystem-adapter ### Updating Tokens ### -When using [Refresh Tokens](https://developers.google.com/identity/protocols/OAuth2InstalledApp#refresh) or [Service Account Credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview), it may be useful to perform some action when a new access token is granted. To do this, pass a callable to the `setTokenCallback` method on the client: +When using [Refresh Tokens](https://developers.google.com/identity/protocols/OAuth2InstalledApp#offline) or [Service Account Credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview), it may be useful to perform some action when a new access token is granted. To do this, pass a callable to the `setTokenCallback` method on the client: ```php $logger = new Monolog\Logger; @@ -316,7 +316,7 @@ One additional step is required in Charles to view SSL requests. Go to **Charles ### Controlling HTTP Client Configuration Directly -Google API Client uses [Guzzle](http://docs.guzzlephp.org) as its default HTTP client. That means that you can control your HTTP requests in the same manner you would for any application using Guzzle. +Google API Client uses [Guzzle](http://docs.guzzlephp.org/) as its default HTTP client. That means that you can control your HTTP requests in the same manner you would for any application using Guzzle. Let's say, for instance, we wished to apply a referrer to each request. @@ -347,9 +347,9 @@ Please see the [contributing](.github/CONTRIBUTING.md) page for more information ### What do I do if something isn't working? ### -For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client +For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: https://stackoverflow.com/questions/tagged/google-api-php-client -If there is a specific bug with the library, please [file a issue](https://github.com/google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. +If there is a specific bug with the library, please [file a issue](https://github.com/googleapis/google-api-php-client/issues) in the GitHub issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. ### I want an example of X! ### @@ -357,7 +357,7 @@ If X is a feature of the library, file away! If X is an example of using a speci ### Why do you still support 5.2? ### -When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: http://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible. +When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: https://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible. ### Why does Google_..._Service have weird names? ### From 803d146de921957e9e0de78fb7148f1a8a32dfce Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Fri, 19 Jul 2019 15:58:22 -0400 Subject: [PATCH 1069/1274] Remove note about PHP 5.2 support (#1678) * Remove note about PHP 5.2 support * Add v2 and v1 note --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb4227ce3..d4df596eb 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ The Google API Client Library enables you to work with Google APIs such as Googl These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. +**NOTE** The actively maintained (v2) version of this client requires PHP 5.4 or above. If you require support for PHP 5.2 or 5.3, use the v1 branch. + ## Google Cloud Platform For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/googleapis/google-cloud-php) which is under active development. @@ -355,10 +357,6 @@ If there is a specific bug with the library, please [file a issue](https://githu If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! -### Why do you still support 5.2? ### - -When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: https://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible. - ### Why does Google_..._Service have weird names? ### The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. From 5f98e13a007644d8faac97ea931e08e2a57c5d0b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 29 Jul 2019 14:59:14 +0200 Subject: [PATCH 1070/1274] Fix order of arguments for implode in Google_Service_Resource (#1683) --- src/Google/Service/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Resource.php b/src/Google/Service/Resource.php index 1f3d3710b..77070fc41 100644 --- a/src/Google/Service/Resource.php +++ b/src/Google/Service/Resource.php @@ -294,7 +294,7 @@ public function createRequestUri($restPath, $params) } if (count($queryVars)) { - $requestUrl .= '?' . implode($queryVars, '&'); + $requestUrl .= '?' . implode('&', $queryVars); } return $requestUrl; From 7826dd0c141280b7b882831ed3313343ce0e710b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 31 Jul 2019 20:30:17 +0200 Subject: [PATCH 1071/1274] =?UTF-8?q?Run=20tests=20against=20PHP=207.3+=20?= =?UTF-8?q?and=20check=20for=20cross-version=20support=E2=80=A6=20(#1684)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Move phpcs config to root folder * Run tests against PHP 7.3 and PHP 7.4 * Check for cross-version support for PHP 5.4 and higher * Only downgrade guzzle and phpseclib on Travis Prevents downgrading dev dependencies --- .gitignore | 1 + .travis.yml | 8 ++++++-- composer.json | 4 +++- style/ruleset.xml => phpcs.xml.dist | 5 +++++ 4 files changed, 15 insertions(+), 3 deletions(-) rename style/ruleset.xml => phpcs.xml.dist (98%) diff --git a/.gitignore b/.gitignore index 0a70c65d2..9b429eae6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store phpunit.xml +phpcs.xml composer.lock vendor examples/testfile-small.txt diff --git a/.travis.yml b/.travis.yml index 6ac93c160..80e158254 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,13 +23,17 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4snapshot # Test lowest dependencies on PHP 5.4 # (Guzzle 5.2, phpseclib 0.3) matrix: include: - php: 5.4 - env: COMPOSER_CMD="composer update --prefer-lowest" RUN_PHP_CS=true + env: COMPOSER_CMD="composer update phpseclib/phpseclib guzzlehttp/guzzle guzzlehttp/psr7 --prefer-lowest" RUN_PHP_CS=true + allow_failures: + - php: 7.4snapshot before_install: - composer self-update @@ -44,4 +48,4 @@ before_script: script: - vendor/bin/phpunit - - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src --standard=style/ruleset.xml -np; fi + - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src -np; fi diff --git a/composer.json b/composer.json index 5cb3ca2e7..ce1e12e73 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,9 @@ "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", - "cache/filesystem-adapter": "^0.3.2" + "cache/filesystem-adapter": "^0.3.2", + "phpcompatibility/php-compatibility": "^9.2", + "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" diff --git a/style/ruleset.xml b/phpcs.xml.dist similarity index 98% rename from style/ruleset.xml rename to phpcs.xml.dist index d61844541..4e4306986 100644 --- a/style/ruleset.xml +++ b/phpcs.xml.dist @@ -10,6 +10,11 @@ + + + + + From 7ea102e2a17a0d173929097f3ebb4663067ba571 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Fri, 16 Aug 2019 15:16:22 -0400 Subject: [PATCH 1072/1274] docs: Add note about cached access token (#1696) * docs: Add note about cached access token * warn about clear cache --- src/Google/Client.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Google/Client.php b/src/Google/Client.php index 92c3b2328..02d7ac873 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -416,6 +416,17 @@ public function isUsingApplicationDefaultCredentials() } /** + * Set the access token used for requests. + * + * Note that at the time requests are sent, tokens are cached. A token will be + * cached for each combination of service and authentication scopes. If a + * cache pool is not provided, creating a new instance of the client will + * allow modification of access tokens. If a persistent cache pool is + * provided, in order to change the access token, you must clear the cached + * token by calling `$client->getCache()->clear()`. (Use caution in this case, + * as calling `clear()` will remove all cache items, including any items not + * related to Google API PHP Client.) + * * @param string|array $token * @throws InvalidArgumentException */ From 5c2c77aa067c508c6adfba796e04ce102fc2844c Mon Sep 17 00:00:00 2001 From: Tchafack Duhamel Date: Mon, 19 Aug 2019 16:19:35 +0200 Subject: [PATCH 1073/1274] Update api-keys.md (#1699) --- docs/api-keys.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-keys.md b/docs/api-keys.md index 8b109e669..7828651f7 100644 --- a/docs/api-keys.md +++ b/docs/api-keys.md @@ -2,7 +2,7 @@ When calling APIs that do not access private user data, you can use simple API keys. These keys are used to authenticate your application for accounting purposes. The Google Developers Console documentation also describes [API keys](https://developers.google.com/console/help/using-keys). -> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Web Server Applications](/docs/oauth-server.md) and [Using OAuth 2.0 for Server to Server Applications](/docs/oauth-web.md) for more information. +> Note: If you do need to access private user data, you must use OAuth 2.0. See [Using OAuth 2.0 for Web Server Applications](/docs/oauth-web.md) and [Using OAuth 2.0 for Server to Server Applications](/docs/oauth-server.md) for more information. ## Using API Keys From 862042027be2c5741f019922e6d3e6f7ad678888 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 19 Aug 2019 13:59:21 -0400 Subject: [PATCH 1074/1274] docs: Change composer alternative wording. (#1697) Replaces #1685. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d4df596eb..36f04c81f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ require_once '/path/to/your-project/vendor/autoload.php'; ### Download the Release -If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/googleapis/google-api-php-client/releases) page lists all stable versions. Download any file +If you prefer not to use composer, you can download the package in its entirety. The [Releases](https://github.com/googleapis/google-api-php-client/releases) page lists all stable versions. Download any file with the name `google-api-php-client-[RELEASE_NAME].zip` for a package including this library and its dependencies. Uncompress the zip file you download, and include the autoloader in your project: From d6c7563bdf88d6a0719ea63e21c74dc86032364e Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 19 Aug 2019 14:09:46 -0400 Subject: [PATCH 1075/1274] Prepare v2.2.4 (#1698) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 02d7ac873..218aae5d2 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.2.3"; + const LIBVER = "2.2.4"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From e415916fbcba93910f737eb617dec0399afd9e1c Mon Sep 17 00:00:00 2001 From: Pierre Grimaud Date: Tue, 3 Sep 2019 16:38:35 +0200 Subject: [PATCH 1076/1274] Fix indefinite article in README.md (#1702) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36f04c81f..c0267f7ec 100644 --- a/README.md +++ b/README.md @@ -351,7 +351,7 @@ Please see the [contributing](.github/CONTRIBUTING.md) page for more information For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: https://stackoverflow.com/questions/tagged/google-api-php-client -If there is a specific bug with the library, please [file a issue](https://github.com/googleapis/google-api-php-client/issues) in the GitHub issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. +If there is a specific bug with the library, please [file an issue](https://github.com/googleapis/google-api-php-client/issues) in the GitHub issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address. ### I want an example of X! ### From 4b7c6abf154c84f885069c8f8475d11de83eb1e1 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Thu, 5 Sep 2019 14:22:28 +0200 Subject: [PATCH 1077/1274] chore: Adds phpcs.xml.dist as export-ignore (#1703) --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 3ed46ef83..68a0191a5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,6 +4,7 @@ /.travis.yml export-ignore /examples export-ignore /phpunit.xml.dist export-ignore +/phpcs.xml.dist export-ignore /style export-ignore /tests export-ignore /UPGRADING.md export-ignore From 76436eb1dcb8a0c3ffe51080640fb8707af0361e Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 5 Sep 2019 16:25:11 -0400 Subject: [PATCH 1078/1274] feat: Support Monolog v2 (#1705) --- composer.json | 2 +- tests/Google/Service/ResourceTest.php | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index ce1e12e73..d69dca5a8 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "google/auth": "^1.0", "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", - "monolog/monolog": "^1.17", + "monolog/monolog": "^1.17|^2.0", "phpseclib/phpseclib": "~0.3.10||~2.0", "guzzlehttp/guzzle": "~5.3.1||~6.0", "guzzlehttp/psr7": "^1.2" diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 019cb553d..9401bd6c9 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -60,9 +60,8 @@ public function setUp() $this->client = $this->getMockBuilder("Google_Client") ->disableOriginalConstructor() ->getMock(); - $this->logger = $this->getMockBuilder("Monolog\Logger") - ->disableOriginalConstructor() - ->getMock(); + $logger = $this->prophesize("Monolog\Logger"); + $this->logger = $logger->reveal(); $this->client->expects($this->any()) ->method("getLogger") ->will($this->returnValue($this->logger)); @@ -140,11 +139,11 @@ public function testCallServiceDefinedRoot() $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } - + /** - * Some Google Service (Google_Service_Directory_Resource_Channels and - * Google_Service_Reports_Resource_Channels) use a different servicePath value - * that should override the default servicePath value, it's represented by a / + * Some Google Service (Google_Service_Directory_Resource_Channels and + * Google_Service_Reports_Resource_Channels) use a different servicePath value + * that should override the default servicePath value, it's represented by a / * before the resource path. All other Services have no / before the path */ public function testCreateRequestUriForASelfDefinedServicePath() @@ -167,7 +166,7 @@ public function testCreateRequestUriForASelfDefinedServicePath() $request = $resource->call('testMethod', array(array())); $this->assertEquals('https://test.example.com/admin/directory_v1/watch/stop', (string) $request->getUri()); } - + public function testCreateRequestUri() { $restPath = "plus/{u}"; From 3215f78329910fd410456f71cf89ea32383d4f6d Mon Sep 17 00:00:00 2001 From: leo108 Date: Mon, 9 Sep 2019 23:14:40 +0800 Subject: [PATCH 1079/1274] docs: Fix annotation (#1706) --- src/Google/Http/MediaFileUpload.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 600e6789e..f4ee97683 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -67,9 +67,11 @@ class Google_Http_MediaFileUpload private $httpResultCode; /** - * @param $mimeType string - * @param $data string The bytes you want to upload. - * @param $resumable bool + * @param Google_Client $client + * @param RequestInterface $request + * @param string $mimeType + * @param string $data The bytes you want to upload. + * @param bool $resumable * @param bool $chunkSize File will be uploaded in chunks of this many bytes. * only used if resumable=True */ From ea5c94d975c150b6eb892abb5536d24205376d4e Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 9 Sep 2019 12:04:18 -0400 Subject: [PATCH 1080/1274] Prepare v2.3.0 (#1707) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 218aae5d2..eb79a48cc 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.2.4"; + const LIBVER = "2.3.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From e9e6d9033c49265c64a649be11f21e7f555b317b Mon Sep 17 00:00:00 2001 From: David Supplee Date: Tue, 10 Sep 2019 17:12:49 -0700 Subject: [PATCH 1081/1274] feat: Add x-goog-api-client header to requests (#1709) --- src/Google/Client.php | 24 ++++++++++++++++------ tests/Google/ClientTest.php | 41 +++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 6 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index eb79a48cc..d94698394 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -804,12 +804,24 @@ public function prepareScopes() */ public function execute(RequestInterface $request, $expectedClass = null) { - $request = $request->withHeader( - 'User-Agent', - $this->config['application_name'] - . " " . self::USER_AGENT_SUFFIX - . $this->getLibraryVersion() - ); + $request = $request + ->withHeader( + 'User-Agent', + sprintf( + '%s %s%s', + $this->config['application_name'], + self::USER_AGENT_SUFFIX, + $this->getLibraryVersion() + ) + ) + ->withHeader( + 'x-goog-api-client', + sprintf( + 'gl-php/%s gdcl/%s', + phpversion(), + $this->getLibraryVersion() + ) + ); if ($this->config['api_format_v2']) { $request = $request->withHeader( diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 4152871a1..3b118acf1 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -707,4 +707,45 @@ public function testExecuteWithFormat() $request = new Request('POST', 'http://foo.bar/'); $client->execute($request); } + + public function testExecuteSetsCorrectHeaders() + { + $this->onlyGuzzle6(); + + $client = new Google_Client(); + $guzzle = $this->getMock('GuzzleHttp\Client'); + $guzzle->expects($this->once()) + ->method('send') + ->with( + $this->callback( + function (RequestInterface $request) { + $userAgent = sprintf( + '%s%s', + Google_Client::USER_AGENT_SUFFIX, + Google_Client::LIBVER + ); + $xGoogApiClient = sprintf( + 'gl-php/%s gdcl/%s', + phpversion(), + Google_Client::LIBVER + ); + + if ($request->getHeaderLine('User-Agent') !== $userAgent) { + return false; + } + + if ($request->getHeaderLine('x-goog-api-client') !== $xGoogApiClient) { + return false; + } + + return true; + } + ) + )->will($this->returnValue(new Response(200, [], null))); + + $client->setHttpClient($guzzle); + + $request = new Request('POST', 'http://foo.bar/'); + $client->execute($request); + } } From cd3c37998020d91ae4eafca4f26a92da4dabba83 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Wed, 11 Sep 2019 10:38:10 -0700 Subject: [PATCH 1082/1274] Prepare v2.4.0 (#1711) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index d94698394..5785ac1f5 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.3.0"; + const LIBVER = "2.4.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 7478bc811dde1fd2b4c33403647e945a218f502a Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Mon, 4 Nov 2019 19:27:32 +0100 Subject: [PATCH 1083/1274] chore: remove sudo:false (#1732) This has been deprecated by travis and doesnt do anything anymore --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 80e158254..941ded4b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,6 @@ env: - MEMCACHE_PORT=11211 - COMPOSER_CMD="composer install" -sudo: false - cache: directories: - $HOME/.composer/cache From cc98cfb202fdcbe36fdf7c7ba28d94df9657bb40 Mon Sep 17 00:00:00 2001 From: Ajaz Ur Rehman Date: Fri, 8 Nov 2019 00:12:16 +0530 Subject: [PATCH 1084/1274] chore: fix documentation typo (#1741) fixed spelling of autoloader --- docs/install.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install.md b/docs/install.md index 84b9208d5..36bb6591b 100644 --- a/docs/install.md +++ b/docs/install.md @@ -26,7 +26,7 @@ Follow [the instructions in the README](https://github.com/google/google-api-php ### What to do with the files -After obtaining the files, include the autloader. If you used Composer, your require statement will look like this: +After obtaining the files, include the autoloader. If you used Composer, your require statement will look like this: ```php require_once '/path/to/your-project/vendor/autoload.php'; @@ -36,4 +36,4 @@ If you downloaded the package separately, your require statement will look like ```php require_once '/path/to/google-api-php-client/vendor/autoload.php'; -``` \ No newline at end of file +``` From 27ed75d7234a04e18b19138ea1e07b8efc5f9bbd Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Wed, 4 Dec 2019 10:27:44 -0600 Subject: [PATCH 1085/1274] docs: remove shutdown G+ API reference (#1751) * docs: remove shutdown G+ API reference * Update README.md Co-Authored-By: John Pedrie --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0267f7ec..faa17a03b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Google APIs Client Library for PHP # -The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. +The Google API Client Library enables you to work with Google APIs such as Gmail, Drive or YouTube on your server. These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. From aebe1d1f3df510969fca0269a29d83ed81a65d10 Mon Sep 17 00:00:00 2001 From: Miguel Barrero Date: Mon, 16 Dec 2019 13:52:04 -0400 Subject: [PATCH 1086/1274] docs: remove duplicate lines from oauth-server.md (#1761) removing duplicate text --- docs/oauth-server.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/oauth-server.md b/docs/oauth-server.md index cba985435..906fd082f 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -28,10 +28,6 @@ If your application runs on Google App Engine, a service account is set up autom If your application doesn't run on Google App Engine or Google Compute Engine, you must obtain these credentials in the Google Developers Console. To generate service-account credentials, or to view the public credentials that you've already generated, do the following: -If your application runs on Google App Engine, a service account is set up automatically when you create your project. - -If your application doesn't run on Google App Engine or Google Compute Engine, you must obtain these credentials in the Google Developers Console. To generate service-account credentials, or to view the public credentials that you've already generated, do the following: - 1. Open the [**Service accounts** section](https://console.developers.google.com/permissions/serviceaccounts?project=_) of the Developers Console's **Permissions** page. 2. Click **Create service account**. 3. In the **Create service account** window, type a name for the service account and select **Furnish a new private key**. If you want to [grant G Suite domain-wide authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to the service account, also select **Enable G Suite Domain-wide Delegation**. Then, click **Create**. From 2a652bfaab250ea7b6dfae46a917f2a6d7997f6f Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Wed, 18 Dec 2019 17:28:25 -0500 Subject: [PATCH 1087/1274] tests: Upgrade unit tests for PHP 7.4 compat (#1710) * fix: Upgrade unit tests for PHP 7.4 compat * switch from 7.4 snapshot to 7.4 stable --- .travis.yml | 8 +- composer.json | 2 +- tests/BaseTest.php | 14 ++ tests/Google/AccessToken/RevokeTest.php | 255 +++++++++++------------ tests/Google/AccessToken/VerifyTest.php | 2 - tests/Google/ClientTest.php | 257 +++++++++++++----------- tests/Google/Service/ResourceTest.php | 156 +++++++------- tests/Google/ServiceTest.php | 22 +- tests/Google/Task/RunnerTest.php | 34 ++-- 9 files changed, 393 insertions(+), 357 deletions(-) diff --git a/.travis.yml b/.travis.yml index 941ded4b2..0f09f4137 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ php: - 7.1 - 7.2 - 7.3 - - 7.4snapshot + - 7.4 # Test lowest dependencies on PHP 5.4 # (Guzzle 5.2, phpseclib 0.3) @@ -30,8 +30,6 @@ matrix: include: - php: 5.4 env: COMPOSER_CMD="composer update phpseclib/phpseclib guzzlehttp/guzzle guzzlehttp/psr7 --prefer-lowest" RUN_PHP_CS=true - allow_failures: - - php: 7.4snapshot before_install: - composer self-update @@ -40,10 +38,6 @@ install: - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then composer remove --dev cache/filesystem-adapter; fi - $(echo $COMPOSER_CMD) -before_script: - - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - script: - vendor/bin/phpunit - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src -np; fi diff --git a/composer.json b/composer.json index d69dca5a8..19f0e2f8d 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "~4.8.36", + "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 92328283e..4c0afec55 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -242,4 +242,18 @@ public function onlyGuzzle5() $this->markTestSkipped('Guzzle 5 only'); } } + + protected function getGuzzle5ResponseMock() + { + $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); + $response->getStatusCode() + ->willReturn(200); + + $response->getHeaders()->willReturn([]); + $response->getBody()->willReturn(''); + $response->getProtocolVersion()->willReturn(''); + $response->getReasonPhrase()->willReturn(''); + + return $response; + } } diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index 099b9bcd7..26461da38 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -1,6 +1,6 @@ onlyGuzzle5(); - - $accessToken = 'ACCESS_TOKEN'; - $refreshToken = 'REFRESH_TOKEN'; - $token = ''; - - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->exactly(3)) - ->method('getStatusCode') - ->will($this->returnValue(200)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly(3)) - ->method('send') - ->will($this->returnCallback( - function ($request) use (&$token, $response) { - parse_str((string) $request->getBody(), $fields); - $token = isset($fields['token']) ? $fields['token'] : null; - - return $response; - } - )); - - $requestToken = null; - $request = $this->getMock('GuzzleHttp\Message\RequestInterface'); - $request->expects($this->exactly(3)) - ->method('getBody') - ->will($this->returnCallback( - function () use (&$requestToken) { - return 'token='.$requestToken; - })); - $http->expects($this->exactly(3)) - ->method('createRequest') - ->will($this->returnCallback( - function ($method, $url, $params) use (&$requestToken, $request) { - parse_str((string) $params['body'], $fields); - $requestToken = isset($fields['token']) ? $fields['token'] : null; - - return $request; - } - )); - - $t = array( - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ); - - // Test with access token. - $revoke = new Google_AccessToken_Revoke($http); - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - - // Test with refresh token. - $revoke = new Google_AccessToken_Revoke($http); - $t = array( - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ); - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($refreshToken, $token); - - // Test with token string. - $revoke = new Google_AccessToken_Revoke($http); - $t = $accessToken; - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - } - - public function testRevokeAccessGuzzle6() - { - $this->onlyGuzzle6(); - - $accessToken = 'ACCESS_TOKEN'; - $refreshToken = 'REFRESH_TOKEN'; - $token = ''; - - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); - $response->expects($this->exactly(3)) - ->method('getStatusCode') - ->will($this->returnValue(200)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly(3)) - ->method('send') - ->will($this->returnCallback( - function ($request) use (&$token, $response) { - parse_str((string) $request->getBody(), $fields); - $token = isset($fields['token']) ? $fields['token'] : null; - - return $response; - } - )); - - $t = array( - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ); - - // Test with access token. - $revoke = new Google_AccessToken_Revoke($http); - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - - // Test with refresh token. - $revoke = new Google_AccessToken_Revoke($http); - $t = array( - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ); - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($refreshToken, $token); - - // Test with token string. - $revoke = new Google_AccessToken_Revoke($http); - $t = $accessToken; - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - } + public function testRevokeAccessGuzzle5() + { + $this->onlyGuzzle5(); + + $accessToken = 'ACCESS_TOKEN'; + $refreshToken = 'REFRESH_TOKEN'; + $token = ''; + + $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); + $response->getStatusCode() + ->shouldBeCalledTimes(3) + ->willReturn(200); + + $response->getHeaders()->willReturn([]); + $response->getBody()->willReturn(''); + $response->getProtocolVersion()->willReturn(''); + $response->getReasonPhrase()->willReturn(''); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + $http->send(Argument::type('GuzzleHttp\Message\RequestInterface')) + ->shouldBeCalledTimes(3) + ->will(function ($args) use (&$token, $response) { + $request = $args[0]; + parse_str((string) $request->getBody(), $fields); + $token = isset($fields['token']) ? $fields['token'] : null; + + return $response->reveal(); + }); + + $requestToken = null; + $request = $this->prophesize('GuzzleHttp\Message\RequestInterface'); + $request->getBody() + ->shouldBeCalledTimes(3) + ->will(function () use (&$requestToken) { + return 'token='.$requestToken; + }); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->shouldBeCalledTimes(3) + ->will(function ($args) use (&$requestToken, $request) { + $params = $args[2]; + parse_str((string) $params['body'], $fields); + $requestToken = isset($fields['token']) ? $fields['token'] : null; + + return $request; + }); + + $t = [ + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ]; + + // Test with access token. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + + // Test with refresh token. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $t = [ + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ]; + + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($refreshToken, $token); + + // Test with token string. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $t = $accessToken; + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + } + + public function testRevokeAccessGuzzle6() + { + $this->onlyGuzzle6(); + + $accessToken = 'ACCESS_TOKEN'; + $refreshToken = 'REFRESH_TOKEN'; + $token = ''; + + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + $response->getStatusCode() + ->shouldBeCalledTimes(3) + ->willReturn(200); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(3) + ->will(function ($args) use (&$token, $response) { + parse_str((string) $args[0]->getBody(), $fields); + $token = isset($fields['token']) ? $fields['token'] : null; + + return $response->reveal(); + }); + + $t = [ + 'access_token' => $accessToken, + 'created' => time(), + 'expires_in' => '3600' + ]; + + // Test with access token. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + + // Test with refresh token. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $t = [ + 'access_token' => $accessToken, + 'refresh_token' => $refreshToken, + 'created' => time(), + 'expires_in' => '3600' + ]; + + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($refreshToken, $token); + + // Test with token string. + $revoke = new Google_AccessToken_Revoke($http->reveal()); + $t = $accessToken; + $this->assertTrue($revoke->revokeToken($t)); + $this->assertEquals($accessToken, $token); + } } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index e72c14897..bce9501b4 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -1,7 +1,5 @@ createAuthUrl() ); - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($this->getMock('Psr\Http\Message\StreamInterface'))); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + $stream = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $stream->__toString()->willReturn(''); - if ($this->isGuzzle5()) { - $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/'); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($guzzle5Request)); - } + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + $response->getBody() + ->shouldBeCalledTimes(1) + ->willReturn($stream->reveal()); + + $response->getStatusCode()->willReturn(200); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $dr_service = new Google_Service_Drive($client); $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); } @@ -284,8 +284,10 @@ public function testSettersGetters() $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); - $client->setCache($this->getMock('Psr\Cache\CacheItemPoolInterface')); - $this->assertEquals('object', gettype($client->getCache())); + + $cache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $client->setCache($cache->reveal()); + $this->assertInstanceOf('Psr\Cache\CacheItemPoolInterface', $client->getCache()); try { $client->setAccessToken(null); @@ -437,39 +439,49 @@ public function testApplicationDefaultCredentialsWithSubject() */ public function testRefreshTokenSetsValues() { - $token = json_encode(array( + $token = json_encode([ 'access_token' => 'xyz', 'id_token' => 'ID_TOKEN', - )); - $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); - $postBody->expects($this->once()) - ->method('__toString') - ->will($this->returnValue($token)); + ]); + $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $postBody->__toString() + ->shouldBeCalledTimes(1) + ->willReturn($token); + if ($this->isGuzzle5()) { - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('getStatusCode') - ->will($this->returnValue(200)); + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->shouldBeCalledTimes(1) + ->willReturn(200); } else { - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); } - $response->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($postBody)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + + $response->getBody() + ->shouldBeCalledTimes(1) + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($guzzle5Request)); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->shouldBeCalledTimes(1) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); } $client = $this->getClient(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); $token = $client->getAccessToken(); $this->assertEquals("ID_TOKEN", $token['id_token']); @@ -485,35 +497,44 @@ public function testRefreshTokenIsSetOnRefresh() 'access_token' => 'xyz', 'id_token' => 'ID_TOKEN', )); - $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); - $postBody->expects($this->once()) - ->method('__toString') - ->will($this->returnValue($token)); + $postBody = $this->prophesize('Psr\Http\Message\StreamInterface'); + $postBody->__toString() + ->shouldBeCalledTimes(1) + ->willReturn($token); + if ($this->isGuzzle5()) { - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('getStatusCode') - ->will($this->returnValue(200)); + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->shouldBeCalledTimes(1) + ->willReturn(200); } else { - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); } - $response->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($postBody)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + + $response->getBody() + ->shouldBeCalledTimes(1) + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($guzzle5Request)); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); } $client = $this->getClient(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $client->fetchAccessTokenWithRefreshToken($refreshToken); $token = $client->getAccessToken(); $this->assertEquals($refreshToken, $token['refresh_token']); @@ -530,35 +551,41 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() 'id_token' => 'ID_TOKEN', 'refresh_token' => 'NEW_REFRESH_TOKEN' )); - $postBody = $this->getMock('Psr\Http\Message\StreamInterface'); - $postBody->expects($this->once()) - ->method('__toString') - ->will($this->returnValue($token)); + + $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $postBody->__toString() + ->wilLReturn($token); + if ($this->isGuzzle5()) { - $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); - $response->expects($this->once()) - ->method('getStatusCode') - ->will($this->returnValue(200)); + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->willReturn(200); } else { - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); } - $response->expects($this->once()) - ->method('getBody') - ->will($this->returnValue($postBody)); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + + $response->getBody() + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue($guzzle5Request)); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); } $client = $this->getClient(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $client->fetchAccessTokenWithRefreshToken($refreshToken); $token = $client->getAccessToken(); $this->assertEquals('NEW_REFRESH_TOKEN', $token['refresh_token']); @@ -695,14 +722,15 @@ public function testExecuteWithFormat() 'api_format_v2' => true ]); - $guzzle = $this->getMock('GuzzleHttp\Client'); - $guzzle->expects($this->once()) - ->method('send') - ->with($this->callback(function (RequestInterface $request) { - return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; - }))->will($this->returnValue(new Response(200, [], null))); + $guzzle = $this->prophesize('GuzzleHttp\Client'); + $guzzle->send(Argument::allOf( + Argument::type('Psr\Http\Message\RequestInterface'), + Argument::that(function (RequestInterface $request) { + return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; + }) + ), [])->willReturn(new Response(200, [], null)); - $client->setHttpClient($guzzle); + $client->setHttpClient($guzzle->reveal()); $request = new Request('POST', 'http://foo.bar/'); $client->execute($request); @@ -713,37 +741,32 @@ public function testExecuteSetsCorrectHeaders() $this->onlyGuzzle6(); $client = new Google_Client(); - $guzzle = $this->getMock('GuzzleHttp\Client'); - $guzzle->expects($this->once()) - ->method('send') - ->with( - $this->callback( - function (RequestInterface $request) { - $userAgent = sprintf( - '%s%s', - Google_Client::USER_AGENT_SUFFIX, - Google_Client::LIBVER - ); - $xGoogApiClient = sprintf( - 'gl-php/%s gdcl/%s', - phpversion(), - Google_Client::LIBVER - ); - - if ($request->getHeaderLine('User-Agent') !== $userAgent) { - return false; - } - - if ($request->getHeaderLine('x-goog-api-client') !== $xGoogApiClient) { - return false; - } - - return true; - } - ) - )->will($this->returnValue(new Response(200, [], null))); - - $client->setHttpClient($guzzle); + + $guzzle = $this->prophesize('GuzzleHttp\Client'); + $guzzle->send(Argument::that(function (RequestInterface $request) { + $userAgent = sprintf( + '%s%s', + Google_Client::USER_AGENT_SUFFIX, + Google_Client::LIBVER + ); + $xGoogApiClient = sprintf( + 'gl-php/%s gdcl/%s', + phpversion(), + Google_Client::LIBVER + ); + + if ($request->getHeaderLine('User-Agent') !== $userAgent) { + return false; + } + + if ($request->getHeaderLine('x-goog-api-client') !== $xGoogApiClient) { + return false; + } + + return true; + }), [])->shouldBeCalledTimes(1)->willReturn(new Response(200, [], null)); + + $client->setHttpClient($guzzle->reveal()); $request = new Request('POST', 'http://foo.bar/'); $client->execute($request); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 9401bd6c9..df08569df 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -18,12 +18,13 @@ * under the License. */ +use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Stream; -use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Stream\Stream as Guzzle5Stream; +use Prophecy\Argument; class Test_Google_Service extends Google_Service { @@ -53,27 +54,24 @@ class Google_Service_ResourceTest extends BaseTest { private $client; private $service; - private $logger; public function setUp() { - $this->client = $this->getMockBuilder("Google_Client") - ->disableOriginalConstructor() - ->getMock(); + $this->client = $this->prophesize("Google_Client"); + $logger = $this->prophesize("Monolog\Logger"); - $this->logger = $logger->reveal(); - $this->client->expects($this->any()) - ->method("getLogger") - ->will($this->returnValue($this->logger)); - $this->client->expects($this->any()) - ->method("shouldDefer") - ->will($this->returnValue(true)); - $this->client->expects($this->any()) - ->method("getHttpClient") - ->will($this->returnValue(new GuzzleHttp\Client())); - $this->service = new Test_Google_Service($this->client); + + $this->client->getLogger()->willReturn($logger->reveal()); + $this->client->shouldDefer()->willReturn(true); + $this->client->getHttpClient()->willReturn(new GuzzleHttp\Client()); + + $this->service = new Test_Google_Service($this->client->reveal()); } + /** + * @expectedException Google_Exception + * @expectedExceptionMessage Unknown function: test->testResource->someothermethod() + */ public function testCallFailure() { $resource = new Google_Service_Resource( @@ -90,10 +88,6 @@ public function testCallFailure() ) ) ); - $this->setExpectedException( - "Google_Exception", - "Unknown function: test->testResource->someothermethod()" - ); $resource->call("someothermethod", array()); } @@ -170,7 +164,7 @@ public function testCreateRequestUriForASelfDefinedServicePath() public function testCreateRequestUri() { $restPath = "plus/{u}"; - $service = new Google_Service($this->client); + $service = new Google_Service($this->client->reveal()); $service->servicePath = "http://localhost/"; $resource = new Google_Service_Resource($service, 'test', 'testResource', array()); @@ -216,29 +210,30 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + if ($this->isGuzzle5()) { $body = Guzzle5Stream::factory('thisisnotvalidjson'); $response = new Guzzle5Response(200, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); } else { $body = Psr7\stream_for('thisisnotvalidjson'); $response = new Response(200, [], $body); - } - $http = $this->getMockBuilder("GuzzleHttp\Client") - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - - if ($this->isGuzzle5()) { - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); } $client = new Google_Client(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $service = new Test_Google_Service($client); // set up mock objects @@ -268,29 +263,30 @@ public function testNoExpectedClassForAltMediaWithHttpFail() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + if ($this->isGuzzle5()) { $body = Guzzle5Stream::factory('thisisnotvalidjson'); $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); } else { $body = Psr7\stream_for('thisisnotvalidjson'); $response = new Response(400, [], $body); - } - - $http = $this->getMockBuilder("GuzzleHttp\Client") - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - if ($this->isGuzzle5()) { - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); } $client = new Google_Client(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $service = new Test_Google_Service($client); // set up mock objects @@ -324,29 +320,30 @@ public function testErrorResponseWithVeryLongBody() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + if ($this->isGuzzle5()) { $body = Guzzle5Stream::factory('this will be pulled into memory'); $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); } else { $body = Psr7\stream_for('this will be pulled into memory'); $response = new Response(400, [], $body); - } - - $http = $this->getMockBuilder("GuzzleHttp\Client") - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - if ($this->isGuzzle5()) { - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); } $client = new Google_Client(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $service = new Test_Google_Service($client); // set up mock objects @@ -386,15 +383,13 @@ public function testSuccessResponseWithVeryLongBody() $stream = new Test_MediaType_Stream($resource); $response = new Response(200, [], $stream); - $http = $this->getMockBuilder("GuzzleHttp\Client") - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); + $http = $this->prophesize("GuzzleHttp\Client"); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); $client = new Google_Client(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $service = new Test_Google_Service($client); // set up mock objects @@ -430,29 +425,30 @@ public function testExceptionMessage() 'errors' => $errors ] ]); + + $http = $this->prophesize("GuzzleHttp\Client"); + if ($this->isGuzzle5()) { $body = Guzzle5Stream::factory($content); $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); } else { $body = Psr7\stream_for($content); $response = new Response(400, [], $body); - } - $http = $this->getMockBuilder("GuzzleHttp\Client") - ->disableOriginalConstructor() - ->getMock(); - $http->expects($this->once()) - ->method('send') - ->will($this->returnValue($response)); - - if ($this->isGuzzle5()) { - $http->expects($this->once()) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/?alt=media'))); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); } $client = new Google_Client(); - $client->setHttpClient($http); + $client->setHttpClient($http->reveal()); $service = new Test_Google_Service($client); // set up mock objects diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index ba5cc0831..ec89bb011 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -19,6 +19,7 @@ */ use PHPUnit\Framework\TestCase; +use Prophecy\Argument; class TestModel extends Google_Model { @@ -42,17 +43,20 @@ class Google_ServiceTest extends TestCase { public function testCreateBatch() { - $response = $this->getMock('Psr\Http\Message\ResponseInterface'); - $client = $this->getMock('Google_Client'); - $client - ->expects($this->once()) - ->method('execute') - ->with($this->callback(function ($request) { + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + $client = $this->prophesize('Google_Client'); + + $client->execute(Argument::allOf( + Argument::type('Psr\Http\Message\RequestInterface'), + Argument::that(function ($request) { $this->assertEquals('/batch/test', $request->getRequestTarget()); return $request; - })) - ->will($this->returnValue($response)); - $model = new TestService($client); + }) + ), Argument::any())->willReturn($response->reveal()); + + $client->getConfig('base_path')->willReturn(''); + + $model = new TestService($client->reveal()); $batch = $model->createBatch(); $this->assertInstanceOf('Google_Http_Batch', $batch); $batch->execute(); diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 08f3dcefa..1dd93a0ec 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -15,11 +15,12 @@ * limitations under the License. */ +use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; -use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Stream\Stream as Guzzle5Stream; +use Prophecy\Argument; class Google_Task_RunnerTest extends BaseTest { @@ -628,18 +629,23 @@ private function setNextResponseThrows($message, $code) private function makeRequest() { $request = new Request('GET', '/test'); - $http = $this->getMock('GuzzleHttp\ClientInterface'); - $http->expects($this->exactly($this->mockedCallsCount)) - ->method('send') - ->will($this->returnCallback(array($this, 'getNextMockedCall'))); + $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { - $http->expects($this->exactly($this->mockedCallsCount)) - ->method('createRequest') - ->will($this->returnValue(new GuzzleHttp\Message\Request('GET', '/test'))); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->willReturn(new GuzzleHttp\Message\Request('GET', '/test')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->will([$this, 'getNextMockedCall']); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->will([$this, 'getNextMockedCall']); } - return Google_Http_REST::execute($http, $request, '', $this->retryConfig, $this->retryMap); + return Google_Http_REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); } /** @@ -728,19 +734,15 @@ private function runTask() $task->setRetryMap($this->retryMap); } - $exception = $this->getMockBuilder('Google_Service_Exception') - // HHVM blows up unless this is set - // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/207 - ->setMethods(array('setTraceOptions')) - ->disableOriginalConstructor() - ->getMock(); + $exception = $this->prophesize('Google_Service_Exception'); + $exceptionCount = 0; $exceptionCalls = array(); for ($i = 0; $i < $this->mockedCallsCount; $i++) { if (is_int($this->mockedCalls[$i])) { $exceptionCalls[$exceptionCount++] = $this->mockedCalls[$i]; - $this->mockedCalls[$i] = $exception; + $this->mockedCalls[$i] = $exception->reveal(); } } From afd3b55207efd691564c6e8e8b9e9bb39f6ce4f4 Mon Sep 17 00:00:00 2001 From: Levi Durfee Date: Mon, 27 Jan 2020 10:26:57 -0500 Subject: [PATCH 1088/1274] Update readme.md (#1779) --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index b7ad418c4..c97236175 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# Google API Client LIbrary for PHP Docs +# Google API Client Library for PHP Docs The Google API Client Library for PHP offers simple, flexible access to many Google APIs. @@ -12,4 +12,4 @@ The Google API Client Library for PHP offers simple, flexible access to many Goo - [OAuth Server](oauth-server.md) - [OAuth Web](oauth-web.md) - [Pagination](pagination.md) -- [Parameters](parameters.md) \ No newline at end of file +- [Parameters](parameters.md) From 2be3b2fe17ec6fdca8a2dc671613acd5a0731dd0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 16 Mar 2020 08:46:46 -0700 Subject: [PATCH 1089/1274] fix: change setApprovalPrompt to setPrompt (#1796) --- docs/oauth-web.md | 90 +++++++++++++++++++++++------------------------ 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/docs/oauth-web.md b/docs/oauth-web.md index 96314a76a..699dc3220 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -22,10 +22,10 @@ Any application that uses OAuth 2.0 to access Google APIs must have authorizatio 1. Open the [Credentials page](https://console.developers.google.com/apis/credentials) in the API Console. 2. Click **Create credentials > OAuth client ID**. -3. Complete the form. Set the application type to `Web application`. Applications that use languages and frameworks like PHP, Java, Python, Ruby, and .NET must specify authorized **redirect URIs**. The redirect URIs are the endpoints to which the OAuth 2.0 server can send responses. - - For testing, you can specify URIs that refer to the local machine, such as `http://localhost:8080`. With that in mind, please note that all of the examples in this document use `http://localhost:8080` as the redirect URI. - +3. Complete the form. Set the application type to `Web application`. Applications that use languages and frameworks like PHP, Java, Python, Ruby, and .NET must specify authorized **redirect URIs**. The redirect URIs are the endpoints to which the OAuth 2.0 server can send responses. + + For testing, you can specify URIs that refer to the local machine, such as `http://localhost:8080`. With that in mind, please note that all of the examples in this document use `http://localhost:8080` as the redirect URI. + We recommend that you design your app's auth endpoints so that your application does not expose authorization codes to other resources on the page. After creating your credentials, download the **client_secret.json** file from the API Console. Securely store the file in a location that only your application can access. @@ -56,7 +56,7 @@ To run the PHP code samples in this document, you'll need: ```sh php composer.phar require google/apiclient:^2.0 ``` - + ## Obtaining OAuth 2.0 access tokens The following steps show how your application interacts with Google's OAuth 2.0 server to obtain a user's consent to perform an API request on the user's behalf. Your application must have that consent before it can execute a Google API request that requires user authorization. @@ -103,8 +103,8 @@ $client->setAuthConfig('client_secret.json'); ##### `redirect_uri` -**Required**. Determines where the API server redirects the user after the user completes the authorization flow. The value must exactly match one of the authorized redirect URIs for the OAuth 2.0 client, which you configured in the [API Console](https://console.developers.google.com/). If this value doesn't match an authorized URI, you will get a 'redirect_uri_mismatch' error. Note that the `http` or `https` scheme, case, and trailing slash ('`/`') must all match. - +**Required**. Determines where the API server redirects the user after the user completes the authorization flow. The value must exactly match one of the authorized redirect URIs for the OAuth 2.0 client, which you configured in the [API Console](https://console.developers.google.com/). If this value doesn't match an authorized URI, you will get a 'redirect_uri_mismatch' error. Note that the `http` or `https` scheme, case, and trailing slash ('`/`') must all match. + To set this value in PHP, call the `setRedirectUri` function. Note that you must specify a valid redirect URI for your API Console project. ```php @@ -113,24 +113,24 @@ $client->setRedirectUri('http://localhost:8080/oauth2callback.php'); ##### `scope` -**Required**. A space-delimited list of scopes that identify the resources that your application could access on the user's behalf. These values inform the consent screen that Google displays to the user. - +**Required**. A space-delimited list of scopes that identify the resources that your application could access on the user's behalf. These values inform the consent screen that Google displays to the user. + Scopes enable your application to only request access to the resources that it needs while also enabling users to control the amount of access that they grant to your application. Thus, there is an inverse relationship between the number of scopes requested and the likelihood of obtaining user consent. To set this value in PHP, call the `addScope` function: ```php $client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); ``` -The [OAuth 2.0 API Scopes](https://developers.google.com/identity/protocols/googlescopes) document provides a full list of scopes that you might use to access Google APIs. - +The [OAuth 2.0 API Scopes](https://developers.google.com/identity/protocols/googlescopes) document provides a full list of scopes that you might use to access Google APIs. + We recommend that your application request access to authorization scopes in context whenever possible. By requesting access to user data in context, via [incremental authorization](#Incremental-authorization), you help users to more easily understand why your application needs the access it is requesting. ##### `access_type` -**Recommended**. Indicates whether your application can refresh access tokens when the user is not present at the browser. Valid parameter values are `online`, which is the default value, and `offline`. - -Set the value to `offline` if your application needs to refresh access tokens when the user is not present at the browser. This is the method of refreshing access tokens described later in this document. This value instructs the Google authorization server to return a refresh token _and_ an access token the first time that your application exchanges an authorization code for tokens. - +**Recommended**. Indicates whether your application can refresh access tokens when the user is not present at the browser. Valid parameter values are `online`, which is the default value, and `offline`. + +Set the value to `offline` if your application needs to refresh access tokens when the user is not present at the browser. This is the method of refreshing access tokens described later in this document. This value instructs the Google authorization server to return a refresh token _and_ an access token the first time that your application exchanges an authorization code for tokens. + To set this value in PHP, call the `setAccessType` function: ```php @@ -139,10 +139,10 @@ $client->setAccessType('offline'); ##### `state` -**Recommended**. Specifies any string value that your application uses to maintain state between your authorization request and the authorization server's response. The server returns the exact value that you send as a `name=value` pair in the hash (`#`) fragment of the `redirect_uri` after the user consents to or denies your application's access request. - -You can use this parameter for several purposes, such as directing the user to the correct resource in your application, sending nonces, and mitigating cross-site request forgery. Since your `redirect_uri` can be guessed, using a `state` value can increase your assurance that an incoming connection is the result of an authentication request. If you generate a random string or encode the hash of a cookie or another value that captures the client's state, you can validate the response to additionally ensure that the request and response originated in the same browser, providing protection against attacks such as cross-site request forgery. See the [OpenID Connect](https://developers.google.com/identity/protocols/OpenIDConnect#createxsrftoken) documentation for an example of how to create and confirm a `state` token. - +**Recommended**. Specifies any string value that your application uses to maintain state between your authorization request and the authorization server's response. The server returns the exact value that you send as a `name=value` pair in the hash (`#`) fragment of the `redirect_uri` after the user consents to or denies your application's access request. + +You can use this parameter for several purposes, such as directing the user to the correct resource in your application, sending nonces, and mitigating cross-site request forgery. Since your `redirect_uri` can be guessed, using a `state` value can increase your assurance that an incoming connection is the result of an authentication request. If you generate a random string or encode the hash of a cookie or another value that captures the client's state, you can validate the response to additionally ensure that the request and response originated in the same browser, providing protection against attacks such as cross-site request forgery. See the [OpenID Connect](https://developers.google.com/identity/protocols/OpenIDConnect#createxsrftoken) documentation for an example of how to create and confirm a `state` token. + To set this value in PHP, call the `setState` function: ```php @@ -151,8 +151,8 @@ $client->setState($sample_passthrough_value); ##### `include_granted_scopes` -**Optional**. Enables applications to use incremental authorization to request access to additional scopes in context. If you set this parameter's value to `true` and the authorization request is granted, then the new access token will also cover any scopes to which the user previously granted the application access. See the [incremental authorization](#Incremental-authorization) section for examples. - +**Optional**. Enables applications to use incremental authorization to request access to additional scopes in context. If you set this parameter's value to `true` and the authorization request is granted, then the new access token will also cover any scopes to which the user previously granted the application access. See the [incremental authorization](#Incremental-authorization) section for examples. + To set this value in PHP, call the `setIncludeGrantedScopes` function: ```php @@ -161,10 +161,10 @@ $client->setIncludeGrantedScopes(true); ##### `login_hint` -**Optional**. If your application knows which user is trying to authenticate, it can use this parameter to provide a hint to the Google Authentication Server. The server uses the hint to simplify the login flow either by prefilling the email field in the sign-in form or by selecting the appropriate multi-login session. - -Set the parameter value to an email address or `sub` identifier, which is equivalent to the user's Google ID. - +**Optional**. If your application knows which user is trying to authenticate, it can use this parameter to provide a hint to the Google Authentication Server. The server uses the hint to simplify the login flow either by prefilling the email field in the sign-in form or by selecting the appropriate multi-login session. + +Set the parameter value to an email address or `sub` identifier, which is equivalent to the user's Google ID. + To set this value in PHP, call the `setLoginHint` function: ```php @@ -173,12 +173,12 @@ $client->setLoginHint('timmerman@google.com'); ##### `prompt` -**Optional**. A space-delimited, case-sensitive list of prompts to present the user. If you don't specify this parameter, the user will be prompted only the first time your app requests access. - +**Optional**. A space-delimited, case-sensitive list of prompts to present the user. If you don't specify this parameter, the user will be prompted only the first time your app requests access. + To set this value in PHP, call the `setApprovalPrompt` function: ```php -$client->setApprovalPrompt('consent'); +$client->setPrompt('consent'); ``` Possible values are: @@ -200,16 +200,16 @@ Prompt the user to select an account. Redirect the user to Google's OAuth 2.0 server to initiate the authentication and authorization process. Typically, this occurs when your application first needs to access the user's data. In the case of [incremental authorization](#incremental-authorization), this step also occurs when your application first needs to access additional resources that it does not yet have permission to access. 1. Generate a URL to request access from Google's OAuth 2.0 server: - + ```php $auth_url = $client->createAuthUrl(); ``` - + 2. Redirect the user to `$auth_url`: - + ```php header('Location: ' . filter_var($auth_url, FILTER_SANITIZE_URL)); - ``` + ``` Google's OAuth 2.0 server authenticates the user and obtains consent from the user for your application to access the requested scopes. The response is sent back to your application using the redirect URL you specified. @@ -233,7 +233,7 @@ An authorization code response: https://oauth2.example.com/auth?code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7 -> **Important**: If your response endpoint renders an HTML page, any resources on that page will be able to see the authorization code in the URL. Scripts can read the URL directly, and the URL in the `Referer` HTTP header may be sent to any or all resources on the page. +> **Important**: If your response endpoint renders an HTML page, any resources on that page will be able to see the authorization code in the URL. Scripts can read the URL directly, and the URL in the `Referer` HTTP header may be sent to any or all resources on the page. > > Carefully consider whether you want to send authorization credentials to all resources on that page (especially third-party scripts such as social plugins and analytics). To avoid this issue, we recommend that the server first handle the request, then redirect to another URL that doesn't include the response parameters. @@ -276,22 +276,22 @@ $access_token = $client->getAccessToken(); Use the access token to call Google APIs by completing the following steps: 1. If you need to apply an access token to a new `Google_Client` object—for example, if you stored the access token in a user session—use the `setAccessToken` method: - + ```php $client->setAccessToken($access_token); ``` - + 2. Build a service object for the API that you want to call. You build a a service object by providing an authorized `Google_Client` object to the constructor for the API you want to call. For example, to call the Drive API: - + ```php $drive = new Google_Service_Drive($client); ``` - + 3. Make requests to the API service using the [interface provided by the service object](start.md). For example, to list the files in the authenticated user's Google Drive: - + ```php $files = $drive->files->listFiles(array())->getItems(); - ``` + ``` [](#top_of_page)Complete example -------------------------------- @@ -302,24 +302,24 @@ To run this example: 1. In the API Console, add the URL of the local machine to the list of redirect URLs. For example, add `http://localhost:8080`. 2. Create a new directory and change to it. For example: - + ```sh mkdir ~/php-oauth2-example cd ~/php-oauth2-example ``` - + 3. Install the [Google API Client Library](https://github.com/google/google-api-php-client) for PHP using [Composer](https://getcomposer.org): - + ```sh composer require google/apiclient:^2.0 ``` - + 4. Create the files `index.php` and `oauth2callback.php` with the content below. 5. Run the example with a web server configured to serve PHP. If you use PHP 5.4 or newer, you can use PHP's built-in test web server: - + ```sh php -S localhost:8080 ~/php-oauth2-example - ``` + ``` #### index.php From e95b0c362f0374116dce8c10922bf07b897dcf34 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Wed, 25 Mar 2020 11:36:10 -0700 Subject: [PATCH 1090/1274] =?UTF-8?q?docs:=20use=20explicit=20getter=20in?= =?UTF-8?q?=20sample=20over=20iterator=20interface=20met=E2=80=A6=20(#1783?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: use explicit getter in sample over iterator interface methods * trigger travis Co-authored-by: John Pedrie --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index faa17a03b..c7327b69b 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ $service = new Google_Service_Books($client); $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); -foreach ($results as $item) { +foreach ($results->getItems() as $item) { echo $item['volumeInfo']['title'], "
      \n"; } ``` From 1fdfe942f9aaf3064e621834a5e3047fccb3a6da Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 26 Mar 2020 11:30:32 -0400 Subject: [PATCH 1091/1274] Prepare v2.4.1 (#1808) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 5785ac1f5..6f1fcfd3a 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.4.0"; + const LIBVER = "2.4.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 64d1b33d67abe2a1e1b9071c61775e93aa4266a7 Mon Sep 17 00:00:00 2001 From: Ivan Soshin <1255458+inogo@users.noreply.github.com> Date: Tue, 21 Apr 2020 19:50:05 +0300 Subject: [PATCH 1092/1274] docs: change setApprovalPrompt to setPrompt in oauth-web.md (#1822) --- docs/oauth-web.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/oauth-web.md b/docs/oauth-web.md index 699dc3220..84222e9ab 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -175,7 +175,7 @@ $client->setLoginHint('timmerman@google.com'); **Optional**. A space-delimited, case-sensitive list of prompts to present the user. If you don't specify this parameter, the user will be prompted only the first time your app requests access. -To set this value in PHP, call the `setApprovalPrompt` function: +To set this value in PHP, call the `setPrompt` function: ```php $client->setPrompt('consent'); From 19c033ff3cc3c1b55f6a920d16f894d3fe31f9fd Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 4 May 2020 15:26:55 -0400 Subject: [PATCH 1093/1274] docs: update readme with info on services repo (#1823) * docs: update readme with info on services repo * fix replace * update --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c7327b69b..9a33f3563 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ Finally, be sure to include the autoloader: require_once '/path/to/your-project/vendor/autoload.php'; ``` +This library relies on `google/apiclient-services`. That library provides up-to-date API wrappers for a large number of Google APIs. In order that users may make use of the latest API clients, this library does not pin to a specific version of `google/apiclient-services`. **In order to prevent the accidental installation of API wrappers with breaking changes**, it is highly recommended that you pin to the latest version yourself prior to using this library in production. + ### Download the Release If you prefer not to use composer, you can download the package in its entirety. The [Releases](https://github.com/googleapis/google-api-php-client/releases) page lists all stable versions. Download any file @@ -242,6 +244,8 @@ The method used is a matter of preference, but *it will be very difficult to use If Google Authentication is desired for external applications, or a Google API is not available yet in this library, HTTP requests can be made directly. +If you are installing this client only to authenticate your own HTTP client requests, you should use [`google/auth`](https://github.com/googleapis/google-auth-library-php#call-the-apis) instead. + The `authorize` method returns an authorized [Guzzle Client](http://docs.guzzlephp.org/), so any request made using the client will contain the corresponding authorization. ```php From 290ad568ff125d630fdb8c2e74c86d40503f593f Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 14 May 2020 07:49:53 -0700 Subject: [PATCH 1094/1274] docs: add link to google/apiclient-services release page (#1830) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a33f3563..737aa57aa 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Finally, be sure to include the autoloader: require_once '/path/to/your-project/vendor/autoload.php'; ``` -This library relies on `google/apiclient-services`. That library provides up-to-date API wrappers for a large number of Google APIs. In order that users may make use of the latest API clients, this library does not pin to a specific version of `google/apiclient-services`. **In order to prevent the accidental installation of API wrappers with breaking changes**, it is highly recommended that you pin to the latest version yourself prior to using this library in production. +This library relies on `google/apiclient-services`. That library provides up-to-date API wrappers for a large number of Google APIs. In order that users may make use of the latest API clients, this library does not pin to a specific version of `google/apiclient-services`. **In order to prevent the accidental installation of API wrappers with breaking changes**, it is highly recommended that you pin to the [latest version](https://github.com/googleapis/google-api-php-client-services/releases) yourself prior to using this library in production. ### Download the Release From 019012e9f69d59922cb8e6358160ff8c604e7a89 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 14 May 2020 15:01:25 -0400 Subject: [PATCH 1095/1274] docs: fix upgrade guide cache note (#1834) --- UPGRADING.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 230297000..853088e2e 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -308,20 +308,23 @@ setting the Guzzle `GuzzleHttp\ClientInterface` object. 1. Automatically refreshes access tokens if one is set and the access token is expired - Removed `Google_Config` - Removed `Google_Utils` - - [`Google\Auth\CacheInterface`][Google Auth CacheInterface] is used for all caching. As a result: + - [`PSR-6`][PSR 6] cache is used for all caching. As a result: 1. Removed `Google_Cache_Abstract` 1. Classes `Google_Cache_Apc`, `Google_Cache_File`, `Google_Cache_Memcache`, and `Google_Cache_Null` now implement `Google\Auth\CacheInterface`. + 1. Google Auth provides simple [caching utilities][Google Auth Cache] which + are used by default unless you provide alternatives. - Removed `$boundary` constructor argument for `Google_Http_MediaFileUpload` -[PSR 3]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md +[PSR 3]: https://www.php-fig.org/psr/psr-3/ +[PSR 6]: https://www.php-fig.org/psr/psr-6/ [Guzzle 5]: https://github.com/guzzle/guzzle [Guzzle 6]: http://docs.guzzlephp.org/en/latest/psr7.html [Monolog]: https://github.com/Seldaek/monolog [Google Auth]: https://github.com/google/google-auth-library-php +[Google Auth Cache]: https://github.com/googleapis/google-auth-library-php/tree/master/src/Cache [Google Auth GCE]: https://github.com/google/google-auth-library-php/blob/master/src/GCECredentials.php [Google Auth OAuth2]: https://github.com/google/google-auth-library-php/blob/master/src/OAuth2.php [Google Auth Simple]: https://github.com/google/google-auth-library-php/blob/master/src/Simple.php [Google Auth AppIdentity]: https://github.com/google/google-auth-library-php/blob/master/src/AppIdentityCredentials.php -[Google Auth CacheInterface]: https://github.com/google/google-auth-library-php/blob/master/src/CacheInterface.php [Firebase JWT]: https://github.com/firebase/php-jwt From 1fd764531784f6f32aa226560c88d41fefc48276 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 18 May 2020 10:54:50 -0700 Subject: [PATCH 1096/1274] feat: adds new client options (#1829) --- composer.json | 2 +- src/Google/Client.php | 34 +++++++++++++++++++++++++-- tests/Google/ClientTest.php | 46 +++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 19f0e2f8d..fdf119578 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "^1.0", + "google/auth": "^1.9", "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", diff --git a/src/Google/Client.php b/src/Google/Client.php index 6f1fcfd3a..27435f101 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -102,6 +102,16 @@ public function __construct(array $config = array()) // https://developers.google.com/console 'client_id' => '', 'client_secret' => '', + + // Path to JSON credentials or an array representing those credentials + // @see Google_Client::setAuthConfig + 'credentials' => null, + // @see Google_Client::setScopes + 'scopes' => null, + // Sets X-Goog-User-Project, which specifies a user project to bill + // for access charges associated with the request + 'quota_project' => null, + 'redirect_uri' => null, 'state' => null, @@ -149,6 +159,16 @@ public function __construct(array $config = array()) ], $config ); + + if (!is_null($this->config['credentials'])) { + $this->setAuthConfig($this->config['credentials']); + unset($this->config['credentials']); + } + + if (!is_null($this->config['scopes'])) { + $this->setScopes($this->config['scopes']); + unset($this->config['scopes']); + } } /** @@ -1138,10 +1158,20 @@ private function createApplicationDefaultCredentials() 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', + 'quota_project' => $this->config['quota_project'], + ); + $credentials = CredentialsLoader::makeCredentials( + $scopes, + $serviceAccountCredentials ); - $credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); } else { - $credentials = ApplicationDefaultCredentials::getCredentials($scopes); + $credentials = ApplicationDefaultCredentials::getCredentials( + $scopes, + null, + null, + null, + $this->config['quota_project'] + ); } // for service account domain-wide authority (impersonating a user) diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 14fcd207b..ab8b56838 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -771,4 +771,50 @@ public function testExecuteSetsCorrectHeaders() $request = new Request('POST', 'http://foo.bar/'); $client->execute($request); } + + public function testClientOptions() + { + // Test credential file + $tmpCreds = [ + 'type' => 'service_account', + 'client_id' => 'foo', + 'client_email' => '', + 'private_key' => '' + ]; + $tmpCredFile = tempnam(sys_get_temp_dir(), 'creds') . '.json'; + file_put_contents($tmpCredFile, json_encode($tmpCreds)); + $client = new Google_Client([ + 'credentials' => $tmpCredFile + ]); + $this->assertEquals('foo', $client->getClientId()); + + // Test credentials array + $client = new Google_Client([ + 'credentials' => $tmpCredFile + ]); + $this->assertEquals('foo', $client->getClientId()); + + // Test singular scope + $client = new Google_Client([ + 'scopes' => 'a-scope' + ]); + $this->assertEquals(['a-scope'], $client->getScopes()); + + // Test multiple scopes + $client = new Google_Client([ + 'scopes' => ['one-scope', 'two-scope'] + ]); + $this->assertEquals(['one-scope', 'two-scope'], $client->getScopes()); + + // Test quota project + $client = new Google_Client([ + 'quota_project' => 'some-quota-project' + ]); + $this->assertEquals('some-quota-project', $client->getConfig('quota_project')); + // Test quota project in google/auth dependency + $method = new ReflectionMethod($client, 'createApplicationDefaultCredentials'); + $method->setAccessible(true); + $credentials = $method->invoke($client); + $this->assertEquals('some-quota-project', $credentials->getQuotaProject()); + } } From 9ab9cc07f66e2c7274ea2753f102ae24d1271410 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 26 May 2020 15:29:38 -0700 Subject: [PATCH 1097/1274] Prepare v2.5.0 (#1841) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 27435f101..99dfde4a7 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.4.1"; + const LIBVER = "2.5.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 8e03c1ebd632b3a02a2c42744bf405a2ba414f4f Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Mon, 8 Jun 2020 19:26:18 +0200 Subject: [PATCH 1098/1274] chore: update ignored files for exporting package (#1848) This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See https://github.com/Codeception/Codeception/pull/5527 for more info. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitattributes b/.gitattributes index 68a0191a5..c8e4a6fca 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,8 @@ /.github export-ignore /.gitignore export-ignore /.travis.yml export-ignore +/CODE_OF_CONDUCT.md +/docs export-ignore /examples export-ignore /phpunit.xml.dist export-ignore /phpcs.xml.dist export-ignore From c7f965f0f2a3d12089a0ee1fa5911c39324e1ec8 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 18 Jun 2020 13:54:38 -0400 Subject: [PATCH 1099/1274] chore: automate asset release (#1852) --- .github/workflows/asset-release.yml | 66 +++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/asset-release.yml diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml new file mode 100644 index 000000000..9a1c1c73b --- /dev/null +++ b/.github/workflows/asset-release.yml @@ -0,0 +1,66 @@ +name: Add Release Assets + +on: + release: + types: [published] + +jobs: + asset: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php: [ "5.4", "5.6", "7.0", "7.4" ] + + name: Upload Release Assets + steps: + - uses: olegtarasov/get-tag@v2 + id: tagName + + - uses: octokit/request-action@v2.x + id: getLatestRelease + with: + route: GET /repos/:repository/releases/tags/:tag + repository: ${{ github.repository }} + tag: ${{ steps.tagName.outputs.tag }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer remove --dev cache/filesystem-adapter && composer install --no-dev --prefer-dist + + - name: Create Archive + run: | + zip -r ${fileName} . && + zip -d ${fileName} ".git*" && + zip -d ${fileName} "tests*" && + zip -d ${fileName} "docs*" && + zip -d ${fileName} ".travis.yml" && + zip -d ${fileName} "phpcs.xml.dist" && + zip -d ${fileName} "phpunit.xml.dist" && + zip -d ${fileName} "tests*" && + zip -d ${fileName} "examples*" + env: + fileName: google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip + + - name: Upload Release Archive + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + upload_url: ${{ fromJson(steps.getLatestRelease.outputs.data).upload_url }} + asset_path: ./google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip + asset_name: google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip + asset_content_type: application/zip From b1f0964528446dac8e979b6b3babf8a185fa538a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 9 Jul 2020 11:04:21 -0700 Subject: [PATCH 1100/1274] feat: Guzzle 7 support (#1868) --- composer.json | 4 ++-- src/Google/AuthHandler/AuthHandlerFactory.php | 15 ++++++++---- src/Google/AuthHandler/Guzzle6AuthHandler.php | 2 +- src/Google/AuthHandler/Guzzle7AuthHandler.php | 23 +++++++++++++++++++ src/Google/Client.php | 19 ++++++++++----- tests/BaseTest.php | 18 ++++++++++++++- tests/Google/ClientTest.php | 4 ++-- 7 files changed, 69 insertions(+), 16 deletions(-) create mode 100644 src/Google/AuthHandler/Guzzle7AuthHandler.php diff --git a/composer.json b/composer.json index fdf119578..fa912c4f6 100644 --- a/composer.json +++ b/composer.json @@ -7,12 +7,12 @@ "license": "Apache-2.0", "require": { "php": ">=5.4", - "google/auth": "^1.9", + "google/auth": "^1.10", "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", "phpseclib/phpseclib": "~0.3.10||~2.0", - "guzzlehttp/guzzle": "~5.3.1||~6.0", + "guzzlehttp/guzzle": "~5.3.1||~6.0||~7.0", "guzzlehttp/psr7": "^1.2" }, "require-dev": { diff --git a/src/Google/AuthHandler/AuthHandlerFactory.php b/src/Google/AuthHandler/AuthHandlerFactory.php index f1a3229ae..1a15f7a89 100644 --- a/src/Google/AuthHandler/AuthHandlerFactory.php +++ b/src/Google/AuthHandler/AuthHandlerFactory.php @@ -28,13 +28,20 @@ class Google_AuthHandler_AuthHandlerFactory */ public static function build($cache = null, array $cacheConfig = []) { - $version = ClientInterface::VERSION; + $guzzleVersion = null; + if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + $guzzleVersion = ClientInterface::MAJOR_VERSION; + } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); + } - switch ($version[0]) { - case '5': + switch ($guzzleVersion) { + case 5: return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig); - case '6': + case 6: return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig); + case 7: + return new Google_AuthHandler_Guzzle7AuthHandler($cache, $cacheConfig); default: throw new Exception('Version not supported'); } diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php index fcdfb3b03..d1c16e6fc 100644 --- a/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -11,7 +11,7 @@ use Psr\Cache\CacheItemPoolInterface; /** -* +* This supports Guzzle 6 */ class Google_AuthHandler_Guzzle6AuthHandler { diff --git a/src/Google/AuthHandler/Guzzle7AuthHandler.php b/src/Google/AuthHandler/Guzzle7AuthHandler.php new file mode 100644 index 000000000..6f8d04d60 --- /dev/null +++ b/src/Google/AuthHandler/Guzzle7AuthHandler.php @@ -0,0 +1,23 @@ + false]; + $guzzleVersion = null; + if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + $guzzleVersion = ClientInterface::MAJOR_VERSION; + } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); + } - $version = ClientInterface::VERSION; - if ('5' === $version[0]) { + $options = ['exceptions' => false]; + if (5 === $guzzleVersion) { $options = [ 'base_url' => $this->config['base_path'], 'defaults' => $options, ]; if ($this->isAppEngine()) { // set StreamHandler on AppEngine by default - $options['handler'] = new StreamHandler(); + $options['handler'] = new StreamHandler(); $options['defaults']['verify'] = '/etc/ca-certificates.crt'; } - } else { - // guzzle 6 + } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { + // guzzle 6 or 7 $options['base_uri'] = $this->config['base_path']; + } else { + throw new LogicException('Could not find supported version of Guzzle.'); } return new Client($options); diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 4c0afec55..650ae9ebb 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -59,7 +59,7 @@ private function createClient() } // adjust constructor depending on guzzle version - if (!$this->isGuzzle6()) { + if ($this->isGuzzle5()) { $options = ['defaults' => $options]; } @@ -208,8 +208,20 @@ protected function loadExample($example) return false; } + protected function isGuzzle7() + { + if (!defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + return false; + } + + return (7 === ClientInterface::MAJOR_VERSION); + } + protected function isGuzzle6() { + if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { + return false; + } $version = ClientInterface::VERSION; return ('6' === $version[0]); @@ -217,6 +229,10 @@ protected function isGuzzle6() protected function isGuzzle5() { + if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { + return false; + } + $version = ClientInterface::VERSION; return ('5' === $version[0]); diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index ab8b56838..11d3a46a5 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -44,7 +44,7 @@ public function testSignAppKey() private function checkAuthHandler($http, $className) { - if ($this->isGuzzle6()) { + if ($this->isGuzzle6() || $this->isGuzzle7()) { $stack = $http->getConfig('handler'); $class = new ReflectionClass(get_class($stack)); $property = $class->getProperty('stack'); @@ -75,7 +75,7 @@ private function checkAuthHandler($http, $className) private function checkCredentials($http, $fetcherClass, $sub = null) { - if ($this->isGuzzle6()) { + if ($this->isGuzzle6() || $this->isGuzzle7()) { $stack = $http->getConfig('handler'); $class = new ReflectionClass(get_class($stack)); $property = $class->getProperty('stack'); From 217399617868465ed7e1f43de9962ee0beaf2f09 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 9 Jul 2020 12:40:41 -0700 Subject: [PATCH 1101/1274] chore: Move from Travis to GitHub Actions (#1836) --- .github/actions/unittest/entrypoint.sh | 21 +++++++ .github/actions/unittest/retry.php | 24 ++++++++ .github/workflows/tests.yml | 79 ++++++++++++++++++++++++++ .travis.yml | 43 -------------- README.md | 2 +- composer.json | 2 +- tests/Google/ClientTest.php | 4 ++ 7 files changed, 130 insertions(+), 45 deletions(-) create mode 100755 .github/actions/unittest/entrypoint.sh create mode 100644 .github/actions/unittest/retry.php create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/actions/unittest/entrypoint.sh b/.github/actions/unittest/entrypoint.sh new file mode 100755 index 000000000..e66f52674 --- /dev/null +++ b/.github/actions/unittest/entrypoint.sh @@ -0,0 +1,21 @@ +#!/bin/sh -l + +apt-get update && \ +apt-get install -y --no-install-recommends \ + git \ + zip \ + curl \ + unzip \ + wget + +curl --silent --show-error https://getcomposer.org/installer | php +php composer.phar self-update + +echo "---Installing dependencies ---" +echo "Removing cache/filesystem-adapter for PHP 5.4" +bash -c "if [[ $(php -r 'echo PHP_VERSION;') =~ \"5.4\" ]]; then php composer.phar remove --dev cache/filesystem-adapter; fi" +echo ${composerargs} +php $(dirname $0)/retry.php "php composer.phar update $composerargs" + +echo "---Running unit tests ---" +vendor/bin/phpunit diff --git a/.github/actions/unittest/retry.php b/.github/actions/unittest/retry.php new file mode 100644 index 000000000..c6525abe8 --- /dev/null +++ b/.github/actions/unittest/retry.php @@ -0,0 +1,24 @@ + 0) { + sleep($delay); + return retry($f, $delay, $retries - 1); + } else { + throw $e; + } + } +} + +retry(function () { + global $argv; + passthru($argv[1], $ret); + + if ($ret != 0) { + throw new \Exception('err'); + } +}, 1); diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..ba68dfd2b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,79 @@ +name: Test Suite +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ${{matrix.operating-system}} + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" ] + name: PHP ${{matrix.php }} Unit Test + steps: + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer install + - name: Run Script + run: vendor/bin/phpunit + # use dockerfiles for oooooolllllldddd versions of php, setup-php times out for those. + test_php55: + name: "PHP 5.5 Unit Test" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run Unit Tests + uses: docker://php:5.5-cli + with: + entrypoint: ./.github/actions/unittest/entrypoint.sh + test_php54: + name: "PHP 5.4 Unit Test" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run Unit Tests + uses: docker://php:5.4-cli + with: + entrypoint: ./.github/actions/unittest/entrypoint.sh + test_php54_lowest: + name: "PHP 5.4 Unit Test Prefer Lowest" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run Unit Tests + uses: docker://php:5.4-cli + env: + composerargs: "--prefer-lowest" + with: + entrypoint: ./.github/actions/unittest/entrypoint.sh + style: + runs-on: ubuntu-latest + name: PHP Style Check + steps: + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "7.4" + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer install + - name: Run Script + run: vendor/bin/phpcs src --standard=phpcs.xml.dist -np diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f09f4137..000000000 --- a/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -language: php -dist: trusty - -services: - - memcached - -env: - global: - - MEMCACHE_HOST=127.0.0.1 - - MEMCACHE_PORT=11211 - - COMPOSER_CMD="composer install" - -cache: - directories: - - $HOME/.composer/cache - -php: - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - -# Test lowest dependencies on PHP 5.4 -# (Guzzle 5.2, phpseclib 0.3) -matrix: - include: - - php: 5.4 - env: COMPOSER_CMD="composer update phpseclib/phpseclib guzzlehttp/guzzle guzzlehttp/psr7 --prefer-lowest" RUN_PHP_CS=true - -before_install: - - composer self-update - -install: - - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then composer remove --dev cache/filesystem-adapter; fi - - $(echo $COMPOSER_CMD) - -script: - - vendor/bin/phpunit - - if [[ "$RUN_PHP_CS" == "true" ]]; then vendor/bin/phpcs src -np; fi diff --git a/README.md b/README.md index 737aa57aa..0cc92f599 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/googleapis/google-api-php-client.svg?branch=master)](https://travis-ci.org/googleapis/google-api-php-client) +![](https://github.com/googleapis/google-api-php-client/workflows/.github/workflows/tests.yml/badge.svg) # Google APIs Client Library for PHP # diff --git a/composer.json b/composer.json index fa912c4f6..e75ac4255 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "^4.8|^5.0", + "phpunit/phpunit": "^4.8.36|^5.0", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 11d3a46a5..62f630adf 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -772,6 +772,9 @@ public function testExecuteSetsCorrectHeaders() $client->execute($request); } + /** + * @runInSeparateProcess + */ public function testClientOptions() { // Test credential file @@ -812,6 +815,7 @@ public function testClientOptions() ]); $this->assertEquals('some-quota-project', $client->getConfig('quota_project')); // Test quota project in google/auth dependency + putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpCredFile); $method = new ReflectionMethod($client, 'createApplicationDefaultCredentials'); $method->setAccessible(true); $credentials = $method->invoke($client); From 8c991eb8df594c29ddd15a9a990806decf515130 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Fri, 10 Jul 2020 00:33:41 +0200 Subject: [PATCH 1102/1274] fix: add missing export-ignore (#1873) --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index c8e4a6fca..e98a4d1b3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,7 +2,7 @@ /.github export-ignore /.gitignore export-ignore /.travis.yml export-ignore -/CODE_OF_CONDUCT.md +/CODE_OF_CONDUCT.md export-ignore /docs export-ignore /examples export-ignore /phpunit.xml.dist export-ignore From 8e9215910703f72b29f50d3aa7f67545f4c56ff4 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 10 Jul 2020 09:32:24 -0700 Subject: [PATCH 1103/1274] feat: add docs generation action and fix docs (#1872) --- .github/actions/docs/entrypoint.sh | 21 +++++++++++++++++++++ .github/actions/docs/sami.php | 29 +++++++++++++++++++++++++++++ .github/actions/docs/sami.php.dist | 29 +++++++++++++++++++++++++++++ .github/workflows/docs.yml | 28 ++++++++++++++++++++++++++++ .gitignore | 1 + src/Google/AccessToken/Verify.php | 3 ++- src/Google/Client.php | 8 ++++++-- src/Google/Http/MediaFileUpload.php | 4 ++-- src/Google/Http/REST.php | 5 +++++ src/Google/Service/Exception.php | 1 - 10 files changed, 123 insertions(+), 6 deletions(-) create mode 100755 .github/actions/docs/entrypoint.sh create mode 100644 .github/actions/docs/sami.php create mode 100644 .github/actions/docs/sami.php.dist create mode 100644 .github/workflows/docs.yml diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh new file mode 100755 index 000000000..af8227fd3 --- /dev/null +++ b/.github/actions/docs/entrypoint.sh @@ -0,0 +1,21 @@ +#!/bin/sh -l + +apt-get update +apt-get install -y git +git reset --hard HEAD + +# Required so sami.php is available for previous versions +cp .github/actions/docs/sami.php.dist .github/actions/docs/sami.php + +# Run the docs generation command +php vendor/bin/sami.php update .github/actions/docs/sami.php + +cd ./.docs + +git init +git config user.name "GitHub Actions" +git config user.email "actions@github.com" + +git add . +git commit -m "Updating docs" +git push -q https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY} HEAD:gh-pages --force diff --git a/.github/actions/docs/sami.php b/.github/actions/docs/sami.php new file mode 100644 index 000000000..bf44e3ee8 --- /dev/null +++ b/.github/actions/docs/sami.php @@ -0,0 +1,29 @@ +files() + ->name('*.php') + ->exclude('vendor') + ->exclude('tests') + ->in($projectRoot); + +$versions = GitVersionCollection::create($projectRoot) + ->addFromTags(function($tag) { + return 0 === strpos($tag, 'v2.') && false === strpos($tag, 'RC'); + }) + ->add('master', 'master branch'); + +return new Sami($iterator, [ + 'title' => 'Google APIs Client Library for PHP API Reference', + 'build_dir' => $projectRoot . '/.docs/%version%', + 'cache_dir' => $projectRoot . '/.cache/%version%', + 'remote_repository' => new GitHubRemoteRepository('googleapis/google-api-php-client', $projectRoot), + 'versions' => $versions +]); diff --git a/.github/actions/docs/sami.php.dist b/.github/actions/docs/sami.php.dist new file mode 100644 index 000000000..bf44e3ee8 --- /dev/null +++ b/.github/actions/docs/sami.php.dist @@ -0,0 +1,29 @@ +files() + ->name('*.php') + ->exclude('vendor') + ->exclude('tests') + ->in($projectRoot); + +$versions = GitVersionCollection::create($projectRoot) + ->addFromTags(function($tag) { + return 0 === strpos($tag, 'v2.') && false === strpos($tag, 'RC'); + }) + ->add('master', 'master branch'); + +return new Sami($iterator, [ + 'title' => 'Google APIs Client Library for PHP API Reference', + 'build_dir' => $projectRoot . '/.docs/%version%', + 'cache_dir' => $projectRoot . '/.cache/%version%', + 'remote_repository' => new GitHubRemoteRepository('googleapis/google-api-php-client', $projectRoot), + 'versions' => $versions +]); diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..cf3f13e46 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,28 @@ +name: Generate Documentation +on: + push: + branches: + - master + tags: + - "*" + +jobs: + docs: + name: "Generate Project Documentation" + runs-on: ubuntu-16.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer config repositories.sami vcs https://${{ secrets.GITHUB_TOKEN }}@github.com/jdpedrie/sami.git && composer require sami/sami:dev-master && git reset --hard HEAD + - name: Generate and Push Documentation + uses: docker://php:7.3-cli + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + entrypoint: ./.github/actions/docs/entrypoint.sh diff --git a/.gitignore b/.gitignore index 9b429eae6..837e0b5be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.github/actions/docs/sami.php phpunit.xml phpcs.xml composer.lock diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index bc0afcb39..e8067c5a1 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -73,7 +73,8 @@ public function __construct( * The audience parameter can be used to control which id tokens are * accepted. By default, the id token must have been issued to this OAuth2 client. * - * @param $audience + * @param string $idToken the ID token in JWT format + * @param string $audience Optional. The audience to verify against JWt "aud" * @return array the token payload, if successful */ public function verifyIdToken($idToken, $audience = null) diff --git a/src/Google/Client.php b/src/Google/Client.php index 532cdfc7d..763e474e4 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -765,8 +765,11 @@ public function verifyIdToken($idToken = null) /** * Set the scopes to be requested. Must be called before createAuthUrl(). * Will remove any previously configured scopes. - * @param string|array $scope_or_scopes, ie: array('https://www.googleapis.com/auth/plus.login', - * 'https://www.googleapis.com/auth/moderator') + * @param string|array $scope_or_scopes, ie: + * array( + * 'https://www.googleapis.com/auth/plus.login', + * 'https://www.googleapis.com/auth/moderator' + * ); */ public function setScopes($scope_or_scopes) { @@ -819,6 +822,7 @@ public function prepareScopes() * Helper method to execute deferred HTTP requests. * * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch + * @param string $expectedClass * @throws Google_Exception * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. */ diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index f4ee97683..7a0f4e0bb 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -114,8 +114,8 @@ public function getProgress() /** * Send the next part of the file to upload. - * @param [$chunk] the next set of bytes to send. If false will used $data passed - * at construct time. + * @param bool $chunk Optional. The next set of bytes to send. If false will + * use $data passed at construct time. */ public function nextChunk($chunk = false) { diff --git a/src/Google/Http/REST.php b/src/Google/Http/REST.php index c2156a2e8..c495ed9fe 100644 --- a/src/Google/Http/REST.php +++ b/src/Google/Http/REST.php @@ -33,6 +33,9 @@ class Google_Http_REST * * @param Google_Client $client * @param Psr\Http\Message\RequestInterface $req + * @param string $expectedClass + * @param array $config + * @param array $retryMap * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) @@ -63,6 +66,7 @@ public static function execute( * * @param Google_Client $client * @param Psr\Http\Message\RequestInterface $request + * @param string $expectedClass * @return array decoded result * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) @@ -100,6 +104,7 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ * @throws Google_Service_Exception * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. * @param Psr\Http\Message\ResponseInterface $response + * @param string $expectedClass * @return mixed|null */ public static function decodeHttpResponse( diff --git a/src/Google/Service/Exception.php b/src/Google/Service/Exception.php index abfd3f7f1..3ab28aed3 100644 --- a/src/Google/Service/Exception.php +++ b/src/Google/Service/Exception.php @@ -31,7 +31,6 @@ class Google_Service_Exception extends Google_Exception * @param Exception|null $previous * @param [{string, string}] errors List of errors returned in an HTTP * response. Defaults to []. - * @param array|null $retryMap Map of errors with retry counts. */ public function __construct( $message, From 326e37fde5145079b74f1ce7249d242739d53cbc Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 10 Jul 2020 10:05:22 -0700 Subject: [PATCH 1104/1274] fix: examples and tests (#1871) --- examples/batch.php | 8 +- examples/service-account.php | 7 +- examples/simple-query.php | 14 +- tests/BaseTest.php | 33 +- tests/Google/ClientTest.php | 12 +- tests/Google/Http/BatchTest.php | 17 + tests/Google/Service/AdSenseTest.php | 487 ------------------- tests/Google/Service/PagespeedonlineTest.php | 5 - tests/Google/Service/PlusTest.php | 69 --- tests/Google/Service/UrlshortenerTest.php | 44 -- tests/examples/batchTest.php | 2 +- tests/examples/serviceAccountTest.php | 2 +- 12 files changed, 59 insertions(+), 641 deletions(-) delete mode 100644 tests/Google/Service/AdSenseTest.php delete mode 100644 tests/Google/Service/PlusTest.php delete mode 100644 tests/Google/Service/UrlshortenerTest.php diff --git a/examples/batch.php b/examples/batch.php index ac9ebbae7..23cf9856f 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -58,11 +58,13 @@ want to execute with keys of our choice - these keys will be reflected in the returned array. ************************************************/ -$batch = $service->createBatch(); +$batch = new Google_Http_Batch($client); $optParams = array('filter' => 'free-ebooks'); -$req1 = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$optParams['q'] = 'Henry David Thoreau'; +$req1 = $service->volumes->listVolumes($optParams); $batch->add($req1, "thoreau"); -$req2 = $service->volumes->listVolumes('George Bernard Shaw', $optParams); +$optParams['q'] = 'George Bernard Shaw'; +$req2 = $service->volumes->listVolumes($optParams); $batch->add($req2, "shaw"); /************************************************ diff --git a/examples/service-account.php b/examples/service-account.php index 6c23f0d52..2d723a1f9 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -59,8 +59,11 @@ We're just going to make the same call as in the simple query as an example. ************************************************/ -$optParams = array('filter' => 'free-ebooks'); -$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$optParams = array( + 'q' => 'Henry David Thoreau', + 'filter' => 'free-ebooks', +); +$results = $service->volumes->listVolumes($optParams); ?>

      Results Of Call:

      diff --git a/examples/simple-query.php b/examples/simple-query.php index 3242be5e8..5358b5045 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -47,15 +47,21 @@ (the query), and an array of named optional parameters. ************************************************/ -$optParams = array('filter' => 'free-ebooks'); -$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$optParams = array( + 'q' => 'Henry David Thoreau', + 'filter' => 'free-ebooks', +); +$results = $service->volumes->listVolumes($optParams); /************************************************ This is an example of deferring a call. ***********************************************/ $client->setDefer(true); -$optParams = array('filter' => 'free-ebooks'); -$request = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$optParams = array( + 'q' => 'Henry David Thoreau', + 'filter' => 'free-ebooks', +); +$request = $service->volumes->listVolumes($optParams); $resultsDeferred = $client->execute($request); /************************************************ diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 650ae9ebb..36d613b75 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -26,7 +26,6 @@ class BaseTest extends TestCase { private $key; private $client; - protected $testDir = __DIR__; public function getClient() { @@ -140,21 +139,21 @@ public function tryToGetAnAccessToken(Google_Client $client) private function getClientIdAndSecret() { - $clientId = getenv('GCLOUD_CLIENT_ID') ?: null; - $clientSecret = getenv('GCLOUD_CLIENT_SECRET') ?: null; + $clientId = getenv('GOOGLE_CLIENT_ID') ?: null; + $clientSecret = getenv('GOOGLE_CLIENT_SECRET') ?: null; return array($clientId, $clientSecret); } - public function checkClientCredentials() + protected function checkClientCredentials() { list($clientId, $clientSecret) = $this->getClientIdAndSecret(); if (!($clientId && $clientSecret)) { - $this->markTestSkipped("Test requires GCLOUD_CLIENT_ID and GCLOUD_CLIENT_SECRET to be set"); + $this->markTestSkipped("Test requires GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to be set"); } } - public function checkServiceAccountCredentials() + protected function checkServiceAccountCredentials() { if (!$f = getenv('GOOGLE_APPLICATION_CREDENTIALS')) { $skip = "This test requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set\n" @@ -171,21 +170,17 @@ public function checkServiceAccountCredentials() return true; } - public function checkKey() + protected function checkKey() { - $this->key = $this->loadKey(); - - if (!strlen($this->key)) { - $this->markTestSkipped("Test requires api key\nYou can create one in your developer console"); - return false; - } - } - - public function loadKey() - { - if (file_exists($f = __DIR__ . DIRECTORY_SEPARATOR . '.apiKey')) { - return file_get_contents($f); + if (file_exists($apiKeyFile = __DIR__ . DIRECTORY_SEPARATOR . '.apiKey')) { + $apiKey = file_get_contents($apiKeyFile); + } elseif (!$apiKey = getenv('GOOGLE_API_KEY')) { + $this->markTestSkipped( + "Test requires api key\nYou can create one in your developer console" + ); + file_put_contents($apiKeyFile, $apiKey); } + $this->key = $apiKey; } protected function loadExample($example) diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 62f630adf..870510f65 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -373,7 +373,7 @@ public function testJsonConfig() public function testIniConfig() { - $config = parse_ini_file($this->testDir . "/config/test.ini"); + $config = parse_ini_file(__DIR__ . '/../config/test.ini'); $client = new Google_Client($config); $this->assertEquals('My Test application', $client->getConfig('application_name')); @@ -663,7 +663,7 @@ public function testBadSubjectThrowsException() $this->fail('no exception thrown'); } catch (GuzzleHttp\Exception\ClientException $e) { $response = $e->getResponse(); - $this->assertContains('Invalid impersonation prn email address', (string) $response->getBody()); + $this->assertContains('Invalid impersonation', (string) $response->getBody()); } } @@ -690,13 +690,13 @@ public function testTokenCallback() $phpunit = $this; $called = false; $callback = function ($key, $value) use ($client, $cache, $phpunit, &$called) { - // go back to the previous cache - $client->setCache($cache); - // assert the expected keys and values - $phpunit->assertContains('https---www.googleapis.com-auth-', $key); + $phpunit->assertNotNull($key); $phpunit->assertNotNull($value); $called = true; + + // go back to the previous cache + $client->setCache($cache); }; // set the token callback to the client diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 4ca7d18f2..8445a21ea 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -59,6 +59,23 @@ public function testBatchRequest() $this->assertArrayHasKey('response-key3', $result); } + public function testBatchRequestWithBooksApi() + { + $client = $this->getClient(); + $batch = new Google_Http_Batch($client); + $plus = new Google_Service_Plus($client); + + $client->setUseBatch(true); + $batch->add($plus->people->get('+LarryPage'), 'key1'); + $batch->add($plus->people->get('+LarryPage'), 'key2'); + $batch->add($plus->people->get('+LarryPage'), 'key3'); + + $result = $batch->execute(); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + $this->assertArrayHasKey('response-key3', $result); + } + public function testBatchRequestWithPostBody() { $this->checkToken(); diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php deleted file mode 100644 index 14dbb3b1e..000000000 --- a/tests/Google/Service/AdSenseTest.php +++ /dev/null @@ -1,487 +0,0 @@ -checkToken(); - $this->adsense = new Google_Service_AdSense($this->getClient()); - } - - public function testAccountsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - $this->assertArrayHasKey('kind', $accounts); - $this->assertEquals($accounts['kind'], 'adsense#accounts'); - $account = $this->getRandomElementFromArray($accounts['items']); - $this->checkAccountElement($account); - } - - /** - * @depends testAccountsList - */ - public function testAccountsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - $account = $this->getRandomElementFromArray($accounts['items']); - $retrievedAccount = $this->adsense->accounts->get($account['id']); - $this->checkAccountElement($retrievedAccount); - } - - /** - * @depends testAccountsList - */ - public function testAccountsReportGenerate() - { - $startDate = '2011-01-01'; - $endDate = '2011-01-31'; - $optParams = $this->getReportOptParams(); - $accounts = $this->adsense->accounts->listAccounts(); - $accountId = $accounts['items'][0]['id']; - $report = $this->adsense->accounts_reports->generate( - $accountId, - $startDate, - $endDate, - $optParams - ); - $this->checkReport($report); - } - - /** - * @depends testAccountsList - */ - public function testAccountsAdClientsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - $account = $this->getRandomElementFromArray($accounts['items']); - $adClients = - $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - $this->checkAdClientsCollection($adClients); - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsAdUnitsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( - $account['id'], - $adClient['id'] - ); - $this->checkAdUnitsCollection($adUnits); - break 2; - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsAdUnitsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $adUnits)) { - $adUnit = $this->getRandomElementFromArray($adUnits['items']); - $this->checkAdUnitElement($adUnit); - break 2; - } - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsCustomChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->accounts_customchannels - ->listAccountsCustomchannels($account['id'], $adClient['id']); - $this->checkCustomChannelsCollection($customChannels); - break 2; - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsCustomChannelsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->accounts_customchannels->listAccountsCustomchannels( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $customChannels)) { - $customChannel = - $this->getRandomElementFromArray($customChannels['items']); - $this->checkCustomChannelElement($customChannel); - break 2; - } - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsUrlChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $urlChannels = - $this->adsense->accounts_urlchannels->listAccountsUrlchannels( - $account['id'], - $adClient['id'] - ); - $this->checkUrlChannelsCollection($urlChannels); - break 2; - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - * @depends testAccountsAdUnitsList - */ - public function testAccountsAdUnitsCustomChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = - $this->adsense->accounts_adunits->listAccountsAdunits($account['id'], $adClient['id']); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $customChannels = - $this->adsense->accounts_adunits_customchannels->listAccountsAdunitsCustomchannels( - $account['id'], - $adClient['id'], - $adUnit['id'] - ); - $this->checkCustomChannelsCollection($customChannels); - // it's too expensive to go through each, if one is correct good - break 3; - } - } - } - } - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - * @depends testAccountsCustomChannelsList - */ - public function testAccountsCustomChannelsAdUnitsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = - $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->accounts_customchannels->listAccountsCustomchannels( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $adUnits = - $this->adsense->accounts_customchannels_adunits->listAccountsCustomchannelsAdunits( - $account['id'], - $adClient['id'], - $customChannel['id'] - ); - $this->checkAdUnitsCollection($adUnits); - // it's too expensive to go through each, if one is correct good - break 3; - } - } - } - } - } - - public function testAdClientsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - $this->checkAdClientsCollection($adClients); - } - - /** - * @depends testAdClientsList - */ - public function testAdUnitsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - $this->checkAdUnitsCollection($adUnits); - } - } - - /** - * @depends testAdClientsList - */ - public function testAdUnitsGet() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if (array_key_exists('items', $adUnits)) { - $adUnit = $this->getRandomElementFromArray($adUnits['items']); - $this->checkAdUnitElement($adUnit); - break 1; - } - } - } - - /** - * @depends testAdClientsList - * @depends testAdUnitsList - */ - public function testAdUnitsCustomChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $customChannels = - $this->adsense->adunits_customchannels->listAdunitsCustomchannels( - $adClient['id'], - $adUnit['id'] - ); - $this->checkCustomChannelsCollection($customChannels); - break 2; - } - } - } - } - - /** - * @depends testAdClientsList - */ - public function testCustomChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->customchannels->listCustomchannels($adClient['id']); - $this->checkCustomChannelsCollection($customChannels); - } - } - - /** - * @depends testAdClientsList - */ - public function testCustomChannelsGet() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); - if (array_key_exists('items', $customChannels)) { - $customChannel = $this->getRandomElementFromArray($customChannels['items']); - $this->checkCustomChannelElement($customChannel); - break 1; - } - } - } - - /** - * @depends testAdClientsList - * @depends testCustomChannelsList - */ - public function testCustomChannelsAdUnitsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $adUnits = - $this->adsense->customchannels_adunits->listCustomchannelsAdunits( - $adClient['id'], - $customChannel['id'] - ); - $this->checkAdUnitsCollection($adUnits); - break 2; - } - } - } - } - - /** - * @depends testAdClientsList - */ - public function testUrlChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $urlChannels = $this->adsense->urlchannels->listUrlchannels($adClient['id']); - $this->checkUrlChannelsCollection($urlChannels); - } - } - - public function testReportsGenerate() - { - if (!$this->checkToken()) { - return; - } - $startDate = '2011-01-01'; - $endDate = '2011-01-31'; - $optParams = $this->getReportOptParams(); - $report = $this->adsense->reports->generate($startDate, $endDate, $optParams); - $this->checkReport($report); - } - - private function checkAccountElement($account) - { - $this->assertArrayHasKey('kind', $account); - $this->assertArrayHasKey('id', $account); - $this->assertArrayHasKey('name', $account); - } - - private function checkAdClientsCollection($adClients) - { - $this->assertArrayHasKey('kind', $adClients); - $this->assertEquals($adClients['kind'], 'adsense#adClients'); - foreach ($adClients['items'] as $adClient) { - $this->assertArrayHasKey('id', $adClient); - $this->assertArrayHasKey('kind', $adClient); - $this->assertArrayHasKey('productCode', $adClient); - $this->assertArrayHasKey('supportsReporting', $adClient); - } - } - - private function checkAdUnitsCollection($adUnits) - { - $this->assertArrayHasKey('kind', $adUnits); - $this->assertEquals($adUnits['kind'], 'adsense#adUnits'); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $this->checkAdUnitElement($adUnit); - } - } - } - - private function checkAdUnitElement($adUnit) - { - $this->assertArrayHasKey('code', $adUnit); - $this->assertArrayHasKey('id', $adUnit); - $this->assertArrayHasKey('kind', $adUnit); - $this->assertArrayHasKey('name', $adUnit); - $this->assertArrayHasKey('status', $adUnit); - } - - private function checkCustomChannelsCollection($customChannels) - { - $this->assertArrayHasKey('kind', $customChannels); - $this->assertEquals($customChannels['kind'], 'adsense#customChannels'); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $this->checkCustomChannelElement($customChannel); - } - } - } - - private function checkCustomChannelElement($customChannel) - { - $this->assertArrayHasKey('kind', $customChannel); - $this->assertArrayHasKey('id', $customChannel); - $this->assertArrayHasKey('code', $customChannel); - $this->assertArrayHasKey('name', $customChannel); - } - - private function checkUrlChannelsCollection($urlChannels) - { - $this->assertArrayHasKey('kind', $urlChannels); - $this->assertEquals($urlChannels['kind'], 'adsense#urlChannels'); - if (array_key_exists('items', $urlChannels)) { - foreach ($urlChannels['items'] as $urlChannel) { - $this->assertArrayHasKey('kind', $urlChannel); - $this->assertArrayHasKey('id', $urlChannel); - $this->assertArrayHasKey('urlPattern', $urlChannel); - } - } - } - - private function getReportOptParams() - { - return array( - 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), - 'dimension' => array ('DATE', 'AD_CLIENT_ID'), - 'sort' => array('DATE'), - 'filter' => array('COUNTRY_NAME==United States'), - ); - } - - private function checkReport($report) - { - $this->assertArrayHasKey('kind', $report); - $this->assertEquals($report['kind'], 'adsense#report'); - $this->assertArrayHasKey('totalMatchedRows', $report); - $this->assertGreaterThan(0, count($report->headers)); - foreach ($report['headers'] as $header) { - $this->assertArrayHasKey('name', $header); - $this->assertArrayHasKey('type', $header); - } - if (array_key_exists('items', $report)) { - foreach ($report['items'] as $row) { - $this->assertCount(4, $row); - } - } - $this->assertArrayHasKey('totals', $report); - $this->assertArrayHasKey('averages', $report); - } - - private function getRandomElementFromArray($array) - { - $elementKey = array_rand($array); - return $array[$elementKey]; - } -} diff --git a/tests/Google/Service/PagespeedonlineTest.php b/tests/Google/Service/PagespeedonlineTest.php index e63a8780c..4ebc1837a 100644 --- a/tests/Google/Service/PagespeedonlineTest.php +++ b/tests/Google/Service/PagespeedonlineTest.php @@ -25,10 +25,5 @@ public function testPageSpeed() $result = $psapi->runpagespeed('http://code.google.com'); $this->assertArrayHasKey('kind', $result); $this->assertArrayHasKey('id', $result); - $this->assertArrayHasKey('responseCode', $result); - $this->assertArrayHasKey('title', $result); - $this->assertArrayHasKey('score', $result->ruleGroups['SPEED']); - $this->assertInstanceOf('Google_Service_Pagespeedonline_ResultPageStats', $result->pageStats); - $this->assertArrayHasKey('minor', $result['version']); } } diff --git a/tests/Google/Service/PlusTest.php b/tests/Google/Service/PlusTest.php deleted file mode 100644 index c3e62a249..000000000 --- a/tests/Google/Service/PlusTest.php +++ /dev/null @@ -1,69 +0,0 @@ -checkToken(); - $this->plus = new Google_Service_Plus($this->getClient()); - } - - public function testGetPerson() - { - $person = $this->plus->people->get("118051310819094153327"); - $this->assertArrayHasKey('kind', $person); - $this->assertArrayHasKey('displayName', $person); - $this->assertArrayHasKey('gender', $person); - $this->assertArrayHasKey('id', $person); - } - - public function testListActivities() - { - $activities = $this->plus->activities - ->listActivities("118051310819094153327", "public"); - - $this->assertArrayHasKey('kind', $activities); - $this->assertGreaterThan(0, count($activities)); - - // Test a variety of access methods. - $this->assertItem($activities['items'][0]); - $this->assertItem($activities[0]); - foreach ($activities as $item) { - $this->assertItem($item); - break; - } - - // Test deeper type transformations - $this->assertGreaterThan(0, strlen($activities[0]->actor->displayName)); - } - - public function assertItem($item) - { - // assertArrayHasKey uses array_key_exists, which is not great: - // it doesn't understand SPL ArrayAccess - $this->assertArrayHasKey('actor', $item); - $this->assertInstanceOf('Google_Service_Plus_ActivityActor', $item->actor); - $this->assertTrue(isset($item['actor']['displayName'])); - $this->assertTrue(isset($item['actor']->url)); - $this->assertArrayHasKey('object', $item); - $this->assertArrayHasKey('access', $item); - $this->assertArrayHasKey('provider', $item); - } -} diff --git a/tests/Google/Service/UrlshortenerTest.php b/tests/Google/Service/UrlshortenerTest.php deleted file mode 100644 index 9eacd0e35..000000000 --- a/tests/Google/Service/UrlshortenerTest.php +++ /dev/null @@ -1,44 +0,0 @@ -checkKey(); - - $service = new Google_Service_Urlshortener($this->getClient()); - $url = new Google_Service_Urlshortener_Url(); - $url->longUrl = "http://google.com"; - - $shortUrl = $service->url->insert($url); - $this->assertEquals('urlshortener#url', $shortUrl['kind']); - $this->assertEquals('http://google.com/', $shortUrl['longUrl']); - } - - public function testEmptyJsonResponse() - { - $this->checkKey(); - - $service = new Google_Service_Urlshortener($this->getClient()); - - $optParams = array('fields' => ''); - $resp = $service->url->get('http://goo.gl/KkHq8', $optParams); - - $this->assertEquals("", $resp->longUrl); - } -} diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index 1db795925..212defdf7 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -29,7 +29,7 @@ public function testBatch() $nodes = $crawler->filter('br'); $this->assertCount(20, $nodes); - $this->assertContains('Life of Henry David Thoreau', $crawler->text()); + $this->assertContains('Walden', $crawler->text()); $this->assertContains('George Bernard Shaw His Life and Works', $crawler->text()); } } diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php index 261059d8a..81521c149 100644 --- a/tests/examples/serviceAccountTest.php +++ b/tests/examples/serviceAccountTest.php @@ -29,6 +29,6 @@ public function testServiceAccount() $nodes = $crawler->filter('br'); $this->assertCount(10, $nodes); - $this->assertContains('Life of Henry David Thoreau', $crawler->text()); + $this->assertContains('Walden', $crawler->text()); } } From 71ce14ec3389e415b72867c8a15619a741956c14 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 23 Jul 2020 14:06:33 -0400 Subject: [PATCH 1105/1274] test: fix batch tests (#1889) --- tests/Google/Http/BatchTest.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 8445a21ea..ed3f25f63 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -44,11 +44,11 @@ public function testBatchRequestWithAuth() public function testBatchRequest() { + $this->checkKey(); $client = $this->getClient(); - $batch = new Google_Http_Batch($client); $plus = new Google_Service_Plus($client); + $batch = $plus->createBatch(); - $client->setUseBatch(true); $batch->add($plus->people->get('+LarryPage'), 'key1'); $batch->add($plus->people->get('+LarryPage'), 'key2'); $batch->add($plus->people->get('+LarryPage'), 'key3'); @@ -61,11 +61,11 @@ public function testBatchRequest() public function testBatchRequestWithBooksApi() { + $this->checkKey(); $client = $this->getClient(); - $batch = new Google_Http_Batch($client); $plus = new Google_Service_Plus($client); + $batch = $plus->createBatch(); - $client->setUseBatch(true); $batch->add($plus->people->get('+LarryPage'), 'key1'); $batch->add($plus->people->get('+LarryPage'), 'key2'); $batch->add($plus->people->get('+LarryPage'), 'key3'); @@ -81,8 +81,9 @@ public function testBatchRequestWithPostBody() $this->checkToken(); $client = $this->getClient(); - $batch = new Google_Http_Batch($client); $shortener = new Google_Service_Urlshortener($client); + $batch = $shortener->createBatch(); + $url1 = new Google_Service_Urlshortener_Url; $url2 = new Google_Service_Urlshortener_Url; $url3 = new Google_Service_Urlshortener_Url; @@ -90,7 +91,6 @@ public function testBatchRequestWithPostBody() $url2->setLongUrl('http://morehazards.com'); $url3->setLongUrl('http://github.com/bshaffer'); - $client->setUseBatch(true); $batch->add($shortener->url->insert($url1), 'key1'); $batch->add($shortener->url->insert($url2), 'key2'); $batch->add($shortener->url->insert($url3), 'key3'); @@ -103,11 +103,12 @@ public function testBatchRequestWithPostBody() public function testInvalidBatchRequest() { + $this->checkKey(); $client = $this->getClient(); - $batch = new Google_Http_Batch($client); $plus = new Google_Service_Plus($client); - $client->setUseBatch(true); + $batch = $plus->createBatch(); + $batch->add($plus->people->get('123456789987654321'), 'key1'); $batch->add($plus->people->get('+LarryPage'), 'key2'); From 4a2591197dd9da23ac20cca0aad61dd0f3a6079c Mon Sep 17 00:00:00 2001 From: davidbrnovjak <36956973+davidbrnovjak@users.noreply.github.com> Date: Thu, 23 Jul 2020 20:11:07 +0200 Subject: [PATCH 1106/1274] docs: fix invalid parameter type-hint for nextChunk (#1888) Co-authored-by: John Pedrie --- src/Google/Http/MediaFileUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Http/MediaFileUpload.php b/src/Google/Http/MediaFileUpload.php index 7a0f4e0bb..d868a9986 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Google/Http/MediaFileUpload.php @@ -114,7 +114,7 @@ public function getProgress() /** * Send the next part of the file to upload. - * @param bool $chunk Optional. The next set of bytes to send. If false will + * @param string|bool $chunk Optional. The next set of bytes to send. If false will * use $data passed at construct time. */ public function nextChunk($chunk = false) From 173923ba0e94257dfa73491ca0a1b8ddc949dd09 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 23 Jul 2020 15:27:17 -0400 Subject: [PATCH 1107/1274] chore: update test matrix (#1890) --- .github/actions/unittest/entrypoint.sh | 21 -------- .github/actions/unittest/retry.php | 24 --------- .github/workflows/tests.yml | 74 +++++++++++++++++--------- 3 files changed, 50 insertions(+), 69 deletions(-) delete mode 100755 .github/actions/unittest/entrypoint.sh delete mode 100644 .github/actions/unittest/retry.php diff --git a/.github/actions/unittest/entrypoint.sh b/.github/actions/unittest/entrypoint.sh deleted file mode 100755 index e66f52674..000000000 --- a/.github/actions/unittest/entrypoint.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -l - -apt-get update && \ -apt-get install -y --no-install-recommends \ - git \ - zip \ - curl \ - unzip \ - wget - -curl --silent --show-error https://getcomposer.org/installer | php -php composer.phar self-update - -echo "---Installing dependencies ---" -echo "Removing cache/filesystem-adapter for PHP 5.4" -bash -c "if [[ $(php -r 'echo PHP_VERSION;') =~ \"5.4\" ]]; then php composer.phar remove --dev cache/filesystem-adapter; fi" -echo ${composerargs} -php $(dirname $0)/retry.php "php composer.phar update $composerargs" - -echo "---Running unit tests ---" -vendor/bin/phpunit diff --git a/.github/actions/unittest/retry.php b/.github/actions/unittest/retry.php deleted file mode 100644 index c6525abe8..000000000 --- a/.github/actions/unittest/retry.php +++ /dev/null @@ -1,24 +0,0 @@ - 0) { - sleep($delay); - return retry($f, $delay, $retries - 1); - } else { - throw $e; - } - } -} - -retry(function () { - global $argv; - passthru($argv[1], $ret); - - if ($ret != 0) { - throw new \Exception('err'); - } -}, 1); diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba68dfd2b..cbd2c316b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,39 +27,65 @@ jobs: command: composer install - name: Run Script run: vendor/bin/phpunit - # use dockerfiles for oooooolllllldddd versions of php, setup-php times out for those. + test_php55: - name: "PHP 5.5 Unit Test" runs-on: ubuntu-latest + name: PHP 5.5 Unit Test steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Run Unit Tests - uses: docker://php:5.5-cli - with: - entrypoint: ./.github/actions/unittest/entrypoint.sh + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 5.5 + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer install + - name: Run Script + run: vendor/bin/phpunit + test_php54: - name: "PHP 5.4 Unit Test" runs-on: ubuntu-latest + name: PHP 5.4 Unit Test steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Run Unit Tests - uses: docker://php:5.4-cli - with: - entrypoint: ./.github/actions/unittest/entrypoint.sh + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 5.4 + - name: Remove cache library + run: composer remove --dev cache/filesystem-adapter + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer update + - name: Run Script + run: vendor/bin/phpunit + test_php54_lowest: - name: "PHP 5.4 Unit Test Prefer Lowest" runs-on: ubuntu-latest + name: "PHP 5.4 Unit Test (with `--prefer-lowest`)" steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Run Unit Tests - uses: docker://php:5.4-cli - env: - composerargs: "--prefer-lowest" - with: - entrypoint: ./.github/actions/unittest/entrypoint.sh + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 5.4 + - name: Remove cache library + run: composer remove --dev cache/filesystem-adapter + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer update --prefer-lowest + - name: Run Script + run: vendor/bin/phpunit + style: runs-on: ubuntu-latest name: PHP Style Check From 7b57cd74d54896d8f65600c43c0d057d25eff822 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 23 Jul 2020 12:33:43 -0700 Subject: [PATCH 1108/1274] feat: composer cleanup task (#1877) --- README.md | 55 +++++++- composer.json | 3 +- src/Google/Task/Composer.php | 104 +++++++++++++++ tests/Google/Task/ComposerTest.php | 206 +++++++++++++++++++++++++++++ 4 files changed, 366 insertions(+), 2 deletions(-) create mode 100644 src/Google/Task/Composer.php create mode 100644 tests/Google/Task/ComposerTest.php diff --git a/README.md b/README.md index 0cc92f599..a26a0f41b 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:"^2.0" +composer require google/apiclient:"^2.7" ``` Finally, be sure to include the autoloader: @@ -43,6 +43,59 @@ require_once '/path/to/your-project/vendor/autoload.php'; This library relies on `google/apiclient-services`. That library provides up-to-date API wrappers for a large number of Google APIs. In order that users may make use of the latest API clients, this library does not pin to a specific version of `google/apiclient-services`. **In order to prevent the accidental installation of API wrappers with breaking changes**, it is highly recommended that you pin to the [latest version](https://github.com/googleapis/google-api-php-client-services/releases) yourself prior to using this library in production. +#### Cleaning up unused services + +There are over 200 Google API services. The chances are good that you will not +want them all. In order to avoid shipping these dependencies with your code, +you can run the `Google_Task_Composer::cleanup` task and specify the services +you want to keep in `composer.json`: + +```json +{ + "require": { + "google/apiclient": "^2.7" + }, + "scripts": { + "post-update-cmd": "Google_Task_Composer::cleanup" + }, + "extra": { + "google/apiclient-services": [ + "Drive", + "YouTube" + ] + } +} +``` + +This example will remove all services other than "Drive" and "YouTube" when +`composer update` or a fresh `composer install` is run. + +**IMPORTANT**: If you add any services back in `composer.json`, you will need to +remove the `vendor/google/apiclient-services` directory explicity for the +change you made to have effect: + +```sh +rm -r vendor/google/apiclient-services +composer update +``` + +**NOTE**: This command performs an exact match on the service name, so to keep +`YouTubeReporting` and `YouTubeAnalytics` as well, you'd need to add each of +them explicitly: + +```json +{ + "extra": { + "google/apiclient-services": [ + "Drive", + "YouTube", + "YouTubeAnalytics", + "YouTubeReporting" + ] + } +} +``` + ### Download the Release If you prefer not to use composer, you can download the package in its entirety. The [Releases](https://github.com/googleapis/google-api-php-client/releases) page lists all stable versions. Download any file diff --git a/composer.json b/composer.json index e75ac4255..e0caa3113 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^0.3.2", "phpcompatibility/php-compatibility": "^9.2", - "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0" + "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", + "composer/composer": "^1.10" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" diff --git a/src/Google/Task/Composer.php b/src/Google/Task/Composer.php new file mode 100644 index 000000000..865fc7af4 --- /dev/null +++ b/src/Google/Task/Composer.php @@ -0,0 +1,104 @@ +getComposer(); + $extra = $composer->getPackage()->getExtra(); + $servicesToKeep = isset($extra['google/apiclient-services']) ? + $extra['google/apiclient-services'] : []; + if ($servicesToKeep) { + $serviceDir = sprintf( + '%s/google/apiclient-services/src/Google/Service', + $composer->getConfig()->get('vendor-dir') + ); + self::verifyServicesToKeep($serviceDir, $servicesToKeep); + $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); + $filesystem = $filesystem ?: new Filesystem(); + if (0 !== $count = count($finder)) { + $event->getIO()->write( + sprintf( + 'Removing %s google services', + $count + ) + ); + foreach ($finder as $file) { + $realpath = $file->getRealPath(); + $filesystem->remove($realpath); + $filesystem->remove($realpath . '.php'); + } + } + } + } + + /** + * @throws InvalidArgumentException when the service doesn't exist + */ + private static function verifyServicesToKeep( + $serviceDir, + array $servicesToKeep + ) { + $finder = (new Finder()) + ->directories() + ->depth('== 0'); + + foreach ($servicesToKeep as $service) { + if (!preg_match('/^[a-zA-Z0-9]*$/', $service)) { + throw new \InvalidArgumentException( + sprintf( + 'Invalid Google service name "%s"', + $service + ) + ); + } + try { + $finder->in($serviceDir . '/' . $service); + } catch (\InvalidArgumentException $e) { + throw new \InvalidArgumentException( + sprintf( + 'Google service "%s" does not exist or was removed previously', + $service + ) + ); + } + } + } + + private static function getServicesToRemove( + $serviceDir, + array $servicesToKeep + ) { + // find all files in the current directory + return (new Finder()) + ->directories() + ->depth('== 0') + ->in($serviceDir) + ->exclude($servicesToKeep); + } +} diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php new file mode 100644 index 000000000..63b36e1bd --- /dev/null +++ b/tests/Google/Task/ComposerTest.php @@ -0,0 +1,206 @@ +createMockEvent(['Foo'])); + } + + /** + * @expectedException InvalidArgumentException + * @expectedExceptionMessage Invalid Google service name "../YouTube" + */ + public function testRelatePathServiceName() + { + Google_Task_Composer::cleanup($this->createMockEvent(['../YouTube'])); + } + + /** + * @expectedException InvalidArgumentException + * @expectedExceptionMessage Google service "" does not exist + */ + public function testEmptyServiceName() + { + Google_Task_Composer::cleanup($this->createMockEvent([''])); + } + + /** + * @expectedException InvalidArgumentException + * @expectedExceptionMessage Invalid Google service name "YouTube*" + */ + public function testWildcardServiceName() + { + Google_Task_Composer::cleanup($this->createMockEvent(['YouTube*'])); + } + + public function testRemoveServices() + { + $vendorDir = sys_get_temp_dir() . '/rand-' . rand(); + $serviceDir = sprintf( + '%s/google/apiclient-services/src/Google/Service/', + $vendorDir + ); + $dirs = [ + 'ServiceToKeep', + 'ServiceToDelete1', + 'ServiceToDelete2', + ]; + $files = [ + 'ServiceToKeep/ServiceFoo.php', + 'ServiceToKeep.php', + 'SomeRandomFile.txt', + 'ServiceToDelete1/ServiceFoo.php', + 'ServiceToDelete1.php', + 'ServiceToDelete2/ServiceFoo.php', + 'ServiceToDelete2.php', + ]; + foreach ($dirs as $dir) { + @mkdir($serviceDir . $dir, 0777, true); + } + foreach ($files as $file) { + touch($serviceDir . $file); + } + $print = 'Removing 2 google services'; + Google_Task_Composer::cleanup( + $this->createMockEvent(['ServiceToKeep'], $vendorDir, $print), + $this->createMockFilesystem([ + 'ServiceToDelete2', + 'ServiceToDelete2.php', + 'ServiceToDelete1', + 'ServiceToDelete1.php', + ], $serviceDir) + ); + } + + private function createMockFilesystem(array $files, $serviceDir) + { + $mockFilesystem = $this->prophesize('Symfony\Component\Filesystem\Filesystem'); + foreach ($files as $filename) { + $file = new \SplFileInfo($serviceDir . $filename); + $mockFilesystem->remove($file->getRealPath()) + ->shouldBeCalledTimes(1); + } + + return $mockFilesystem->reveal(); + } + + private function createMockEvent( + array $servicesToKeep, + $vendorDir = '', + $print = null + ) { + $mockPackage = $this->prophesize('Composer\Package\RootPackage'); + $mockPackage->getExtra() + ->shouldBeCalledTimes(1) + ->willReturn(['google/apiclient-services' => $servicesToKeep]); + + $mockConfig = $this->prophesize('Composer\Config'); + $mockConfig->get('vendor-dir') + ->shouldBeCalledTimes(1) + ->willReturn($vendorDir); + + $mockComposer = $this->prophesize('Composer\Composer'); + $mockComposer->getPackage() + ->shouldBeCalledTimes(1) + ->willReturn($mockPackage->reveal()); + $mockComposer->getConfig() + ->shouldBeCalledTimes(1) + ->willReturn($mockConfig->reveal()); + + $mockEvent = $this->prophesize('Composer\Script\Event'); + $mockEvent->getComposer() + ->shouldBeCalledTimes(1) + ->willReturn($mockComposer); + + if ($print) { + $mockIO = $this->prophesize('Composer\IO\ConsoleIO'); + $mockIO->write($print) + ->shouldBeCalledTimes(1); + + $mockEvent->getIO() + ->shouldBeCalledTimes(1) + ->willReturn($mockIO->reveal()); + } + + return $mockEvent->reveal(); + } + + public function testE2E() + { + $composerJson = json_encode([ + 'require' => [ + 'google/apiclient' => 'dev-add-composer-cleanup' + ], + 'scripts' => [ + 'post-update-cmd' => 'Google_Task_Composer::cleanup' + ], + 'extra' => [ + 'google/apiclient-services' => [ + 'Drive', + 'YouTube' + ] + ] + ]); + + $tmpDir = sys_get_temp_dir() . '/test-' . rand(); + $serviceDir = $tmpDir . '/vendor/google/apiclient-services/src/Google/Service'; + + mkdir($tmpDir); + file_put_contents($tmpDir . '/composer.json', $composerJson); + passthru('composer install -d ' . $tmpDir); + + $this->assertFileExists($serviceDir . '/Drive.php'); + $this->assertFileExists($serviceDir . '/Drive'); + $this->assertFileExists($serviceDir . '/YouTube.php'); + $this->assertFileExists($serviceDir . '/YouTube'); + $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); + $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); + + $composerJson = json_encode([ + 'require' => [ + 'google/apiclient' => 'dev-add-composer-cleanup' + ], + 'scripts' => [ + 'post-update-cmd' => 'Google_Task_Composer::cleanup' + ], + 'extra' => [ + 'google/apiclient-services' => [ + 'Drive', + 'YouTube', + 'YouTubeReporting', + ] + ] + ]); + + file_put_contents($tmpDir . '/composer.json', $composerJson); + passthru('rm -r ' . $tmpDir . '/vendor/google/apiclient-services'); + passthru('composer update -d ' . $tmpDir); + + $this->assertFileExists($serviceDir . '/Drive.php'); + $this->assertFileExists($serviceDir . '/Drive'); + $this->assertFileExists($serviceDir . '/YouTube.php'); + $this->assertFileExists($serviceDir . '/YouTube'); + $this->assertFileExists($serviceDir . '/YouTubeReporting.php'); + $this->assertFileExists($serviceDir . '/YouTubeReporting'); + } +} From e03170a37fbe05612d0ef4c90e9637cb1bc696fa Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Thu, 23 Jul 2020 15:41:33 -0400 Subject: [PATCH 1109/1274] chore: fix release asset generator (#1886) --- .github/workflows/asset-release.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index 9a1c1c73b..b4efbcbf7 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -44,14 +44,13 @@ jobs: - name: Create Archive run: | zip -r ${fileName} . && - zip -d ${fileName} ".git*" && - zip -d ${fileName} "tests*" && - zip -d ${fileName} "docs*" && - zip -d ${fileName} ".travis.yml" && - zip -d ${fileName} "phpcs.xml.dist" && - zip -d ${fileName} "phpunit.xml.dist" && - zip -d ${fileName} "tests*" && - zip -d ${fileName} "examples*" + zip -d ${fileName} ".git*" || true && + zip -d ${fileName} "tests*" || true && + zip -d ${fileName} "docs*" || true && + zip -d ${fileName} "phpcs.xml.dist" || true && + zip -d ${fileName} "phpunit.xml.dist" || true && + zip -d ${fileName} "tests*" || true && + zip -d ${fileName} "examples*" || true env: fileName: google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip From 5e7f50d15eae697aaf803a54d0ca6c7e4c5ddf0d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 23 Jul 2020 14:19:32 -0700 Subject: [PATCH 1110/1274] test: add adsense test back (#1876) --- tests/Google/Service/AdSenseTest.php | 487 +++++++++++++++++++++++++++ 1 file changed, 487 insertions(+) create mode 100644 tests/Google/Service/AdSenseTest.php diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php new file mode 100644 index 000000000..14dbb3b1e --- /dev/null +++ b/tests/Google/Service/AdSenseTest.php @@ -0,0 +1,487 @@ +checkToken(); + $this->adsense = new Google_Service_AdSense($this->getClient()); + } + + public function testAccountsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + $this->assertArrayHasKey('kind', $accounts); + $this->assertEquals($accounts['kind'], 'adsense#accounts'); + $account = $this->getRandomElementFromArray($accounts['items']); + $this->checkAccountElement($account); + } + + /** + * @depends testAccountsList + */ + public function testAccountsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + $account = $this->getRandomElementFromArray($accounts['items']); + $retrievedAccount = $this->adsense->accounts->get($account['id']); + $this->checkAccountElement($retrievedAccount); + } + + /** + * @depends testAccountsList + */ + public function testAccountsReportGenerate() + { + $startDate = '2011-01-01'; + $endDate = '2011-01-31'; + $optParams = $this->getReportOptParams(); + $accounts = $this->adsense->accounts->listAccounts(); + $accountId = $accounts['items'][0]['id']; + $report = $this->adsense->accounts_reports->generate( + $accountId, + $startDate, + $endDate, + $optParams + ); + $this->checkReport($report); + } + + /** + * @depends testAccountsList + */ + public function testAccountsAdClientsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + $account = $this->getRandomElementFromArray($accounts['items']); + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + $this->checkAdClientsCollection($adClients); + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsAdUnitsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( + $account['id'], + $adClient['id'] + ); + $this->checkAdUnitsCollection($adUnits); + break 2; + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsAdUnitsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $adUnits)) { + $adUnit = $this->getRandomElementFromArray($adUnits['items']); + $this->checkAdUnitElement($adUnit); + break 2; + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsCustomChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->accounts_customchannels + ->listAccountsCustomchannels($account['id'], $adClient['id']); + $this->checkCustomChannelsCollection($customChannels); + break 2; + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsCustomChannelsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + $customChannel = + $this->getRandomElementFromArray($customChannels['items']); + $this->checkCustomChannelElement($customChannel); + break 2; + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsUrlChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $urlChannels = + $this->adsense->accounts_urlchannels->listAccountsUrlchannels( + $account['id'], + $adClient['id'] + ); + $this->checkUrlChannelsCollection($urlChannels); + break 2; + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + * @depends testAccountsAdUnitsList + */ + public function testAccountsAdUnitsCustomChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = + $this->adsense->accounts_adunits->listAccountsAdunits($account['id'], $adClient['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->accounts_adunits_customchannels->listAccountsAdunitsCustomchannels( + $account['id'], + $adClient['id'], + $adUnit['id'] + ); + $this->checkCustomChannelsCollection($customChannels); + // it's too expensive to go through each, if one is correct good + break 3; + } + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + * @depends testAccountsCustomChannelsList + */ + public function testAccountsCustomChannelsAdUnitsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->accounts_customchannels_adunits->listAccountsCustomchannelsAdunits( + $account['id'], + $adClient['id'], + $customChannel['id'] + ); + $this->checkAdUnitsCollection($adUnits); + // it's too expensive to go through each, if one is correct good + break 3; + } + } + } + } + } + + public function testAdClientsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + $this->checkAdClientsCollection($adClients); + } + + /** + * @depends testAdClientsList + */ + public function testAdUnitsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + $this->checkAdUnitsCollection($adUnits); + } + } + + /** + * @depends testAdClientsList + */ + public function testAdUnitsGet() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + if (array_key_exists('items', $adUnits)) { + $adUnit = $this->getRandomElementFromArray($adUnits['items']); + $this->checkAdUnitElement($adUnit); + break 1; + } + } + } + + /** + * @depends testAdClientsList + * @depends testAdUnitsList + */ + public function testAdUnitsCustomChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->adunits_customchannels->listAdunitsCustomchannels( + $adClient['id'], + $adUnit['id'] + ); + $this->checkCustomChannelsCollection($customChannels); + break 2; + } + } + } + } + + /** + * @depends testAdClientsList + */ + public function testCustomChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->customchannels->listCustomchannels($adClient['id']); + $this->checkCustomChannelsCollection($customChannels); + } + } + + /** + * @depends testAdClientsList + */ + public function testCustomChannelsGet() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + $customChannel = $this->getRandomElementFromArray($customChannels['items']); + $this->checkCustomChannelElement($customChannel); + break 1; + } + } + } + + /** + * @depends testAdClientsList + * @depends testCustomChannelsList + */ + public function testCustomChannelsAdUnitsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->customchannels_adunits->listCustomchannelsAdunits( + $adClient['id'], + $customChannel['id'] + ); + $this->checkAdUnitsCollection($adUnits); + break 2; + } + } + } + } + + /** + * @depends testAdClientsList + */ + public function testUrlChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $urlChannels = $this->adsense->urlchannels->listUrlchannels($adClient['id']); + $this->checkUrlChannelsCollection($urlChannels); + } + } + + public function testReportsGenerate() + { + if (!$this->checkToken()) { + return; + } + $startDate = '2011-01-01'; + $endDate = '2011-01-31'; + $optParams = $this->getReportOptParams(); + $report = $this->adsense->reports->generate($startDate, $endDate, $optParams); + $this->checkReport($report); + } + + private function checkAccountElement($account) + { + $this->assertArrayHasKey('kind', $account); + $this->assertArrayHasKey('id', $account); + $this->assertArrayHasKey('name', $account); + } + + private function checkAdClientsCollection($adClients) + { + $this->assertArrayHasKey('kind', $adClients); + $this->assertEquals($adClients['kind'], 'adsense#adClients'); + foreach ($adClients['items'] as $adClient) { + $this->assertArrayHasKey('id', $adClient); + $this->assertArrayHasKey('kind', $adClient); + $this->assertArrayHasKey('productCode', $adClient); + $this->assertArrayHasKey('supportsReporting', $adClient); + } + } + + private function checkAdUnitsCollection($adUnits) + { + $this->assertArrayHasKey('kind', $adUnits); + $this->assertEquals($adUnits['kind'], 'adsense#adUnits'); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $this->checkAdUnitElement($adUnit); + } + } + } + + private function checkAdUnitElement($adUnit) + { + $this->assertArrayHasKey('code', $adUnit); + $this->assertArrayHasKey('id', $adUnit); + $this->assertArrayHasKey('kind', $adUnit); + $this->assertArrayHasKey('name', $adUnit); + $this->assertArrayHasKey('status', $adUnit); + } + + private function checkCustomChannelsCollection($customChannels) + { + $this->assertArrayHasKey('kind', $customChannels); + $this->assertEquals($customChannels['kind'], 'adsense#customChannels'); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $this->checkCustomChannelElement($customChannel); + } + } + } + + private function checkCustomChannelElement($customChannel) + { + $this->assertArrayHasKey('kind', $customChannel); + $this->assertArrayHasKey('id', $customChannel); + $this->assertArrayHasKey('code', $customChannel); + $this->assertArrayHasKey('name', $customChannel); + } + + private function checkUrlChannelsCollection($urlChannels) + { + $this->assertArrayHasKey('kind', $urlChannels); + $this->assertEquals($urlChannels['kind'], 'adsense#urlChannels'); + if (array_key_exists('items', $urlChannels)) { + foreach ($urlChannels['items'] as $urlChannel) { + $this->assertArrayHasKey('kind', $urlChannel); + $this->assertArrayHasKey('id', $urlChannel); + $this->assertArrayHasKey('urlPattern', $urlChannel); + } + } + } + + private function getReportOptParams() + { + return array( + 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), + 'dimension' => array ('DATE', 'AD_CLIENT_ID'), + 'sort' => array('DATE'), + 'filter' => array('COUNTRY_NAME==United States'), + ); + } + + private function checkReport($report) + { + $this->assertArrayHasKey('kind', $report); + $this->assertEquals($report['kind'], 'adsense#report'); + $this->assertArrayHasKey('totalMatchedRows', $report); + $this->assertGreaterThan(0, count($report->headers)); + foreach ($report['headers'] as $header) { + $this->assertArrayHasKey('name', $header); + $this->assertArrayHasKey('type', $header); + } + if (array_key_exists('items', $report)) { + foreach ($report['items'] as $row) { + $this->assertCount(4, $row); + } + } + $this->assertArrayHasKey('totals', $report); + $this->assertArrayHasKey('averages', $report); + } + + private function getRandomElementFromArray($array) + { + $elementKey = array_rand($array); + return $array[$elementKey]; + } +} From 074daa249365e2401164cadb4f88a25fa65db063 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 23 Jul 2020 14:30:24 -0700 Subject: [PATCH 1111/1274] chore: add comment for batching example (#1891) --- examples/batch.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/batch.php b/examples/batch.php index 23cf9856f..ea663d8c3 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -58,7 +58,11 @@ want to execute with keys of our choice - these keys will be reflected in the returned array. ************************************************/ + +// NOTE: Some services use `$service->createBatch();` instead of +// `new Google_Http_Batch($client);` $batch = new Google_Http_Batch($client); + $optParams = array('filter' => 'free-ebooks'); $optParams['q'] = 'Henry David Thoreau'; $req1 = $service->volumes->listVolumes($optParams); From 48ec94577b51bde415270116118b07a294e07c43 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 23 Jul 2020 14:37:43 -0700 Subject: [PATCH 1112/1274] chore: increment LIBVER constant (#1892) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index 763e474e4..b687805e1 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.5.0"; + const LIBVER = "2.7.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From e959a9d66d1eb9d88c4c35eac6ea367699e94574 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Thu, 20 Aug 2020 16:51:46 -0400 Subject: [PATCH 1113/1274] docs: update example (#1897) --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a26a0f41b..d732797d2 100644 --- a/README.md +++ b/README.md @@ -131,8 +131,11 @@ $client->setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); $service = new Google_Service_Books($client); -$optParams = array('filter' => 'free-ebooks'); -$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); +$optParams = array( + 'filter' => 'free-ebooks', + 'q' => 'Henry David Thoreau' +); +$results = $service->volumes->listVolumes($optParams); foreach ($results->getItems() as $item) { echo $item['volumeInfo']['title'], "
      \n"; From 5546728695cd0ee0ad23acca653f73ccd6c680d8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 27 Aug 2020 11:51:28 -0600 Subject: [PATCH 1114/1274] test: composer cleanup task branch (#1921) --- tests/Google/Task/ComposerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index 63b36e1bd..2c37f3194 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -149,7 +149,7 @@ public function testE2E() { $composerJson = json_encode([ 'require' => [ - 'google/apiclient' => 'dev-add-composer-cleanup' + 'google/apiclient' => 'dev-master' ], 'scripts' => [ 'post-update-cmd' => 'Google_Task_Composer::cleanup' @@ -178,7 +178,7 @@ public function testE2E() $composerJson = json_encode([ 'require' => [ - 'google/apiclient' => 'dev-add-composer-cleanup' + 'google/apiclient' => 'dev-master' ], 'scripts' => [ 'post-update-cmd' => 'Google_Task_Composer::cleanup' From 9ffad2ab8f97bc66d6e2db2b013b909e8e9fa207 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Thu, 3 Sep 2020 08:29:24 -0700 Subject: [PATCH 1115/1274] fix: use quota_project_id over quota_project (#1914) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index b687805e1..573669fe8 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -1169,7 +1169,7 @@ private function createApplicationDefaultCredentials() 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', - 'quota_project' => $this->config['quota_project'], + 'quota_project_id' => $this->config['quota_project'], ); $credentials = CredentialsLoader::makeCredentials( $scopes, From 6686ee7b7b99ae453859e4f7c1d09872865bf4ac Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 3 Sep 2020 14:45:38 -0600 Subject: [PATCH 1116/1274] fix: ensure in-memory access token is updated when refresh token is used (#1926) --- src/Google/Client.php | 12 ++++++++++++ tests/Google/ClientTest.php | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/src/Google/Client.php b/src/Google/Client.php index 573669fe8..be4af2390 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -169,6 +169,18 @@ public function __construct(array $config = array()) $this->setScopes($this->config['scopes']); unset($this->config['scopes']); } + + // Set a default token callback to update the in-memory access token + if (is_null($this->config['token_callback'])) { + $this->config['token_callback'] = function ($cacheKey, $newAccessToken) { + $this->setAccessToken( + [ + 'access_token' => $newAccessToken, + 'created' => time(), + ] + ); + }; + } } /** diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 870510f65..fa489f90f 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -714,6 +714,36 @@ public function testTokenCallback() $this->assertTrue($called); } + public function testDefaultTokenCallback() + { + $this->onlyPhp55AndAbove(); + $this->checkToken(); + + $client = $this->getClient(); + $accessToken = $client->getAccessToken(); + + if (!isset($accessToken['refresh_token'])) { + $this->markTestSkipped('Refresh Token required'); + } + + // make the auth library think the token is expired + $accessToken['expires_in'] = 0; + $client->setAccessToken($accessToken); + + // make a silly request to obtain a new token (it's ok if it fails) + $http = $client->authorize(); + try { + $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + } catch (Exception $e) {} + + // Assert the in-memory token has been updated + $newToken = $client->getAccessToken(); + $this->assertNotEquals( + $accessToken['access_token'], + $newToken['access_token'] + ); + } + public function testExecuteWithFormat() { $this->onlyGuzzle6(); From e748d1d5a51166754f13809d35f1fa162cbec530 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 8 Sep 2020 10:38:08 -0600 Subject: [PATCH 1117/1274] chore: prepare v2.7.1 (#1927) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index be4af2390..f33558f77 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.7.0"; + const LIBVER = "2.7.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From c33e4e8b3ce6d8219b6ea3b34536213bca3c82fe Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 11 Sep 2020 15:33:42 -0600 Subject: [PATCH 1118/1274] fix: create dirs for docs generator (#1930) --- .github/actions/docs/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index af8227fd3..6f9895c2b 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -7,6 +7,10 @@ git reset --hard HEAD # Required so sami.php is available for previous versions cp .github/actions/docs/sami.php.dist .github/actions/docs/sami.php +# Create the directories +mkdir .docs +mkdir .cache + # Run the docs generation command php vendor/bin/sami.php update .github/actions/docs/sami.php From 8ad15a898e26017520e31f396a020244d0b82b50 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 14 Sep 2020 15:28:19 -0600 Subject: [PATCH 1119/1274] tests: allow guzzle7 (#1939) --- tests/BaseTest.php | 7 +++++++ tests/Google/AccessToken/RevokeTest.php | 4 ++-- tests/Google/ClientTest.php | 6 +++--- tests/Google/Service/ResourceTest.php | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 36d613b75..4e51e8bb4 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -254,6 +254,13 @@ public function onlyGuzzle5() } } + public function onlyGuzzle6Or7() + { + if (!$this->isGuzzle6() && !$this->isGuzzle7()) { + $this->markTestSkipped('Guzzle 6 or 7 only'); + } + } + protected function getGuzzle5ResponseMock() { $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index 26461da38..b2972ee74 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -100,9 +100,9 @@ public function testRevokeAccessGuzzle5() $this->assertEquals($accessToken, $token); } - public function testRevokeAccessGuzzle6() + public function testRevokeAccessGuzzle6Or7() { - $this->onlyGuzzle6(); + $this->onlyGuzzle6Or7(); $accessToken = 'ACCESS_TOKEN'; $refreshToken = 'REFRESH_TOKEN'; diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index fa489f90f..3440102a3 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -194,7 +194,7 @@ public function testNoAuthIsNull() public function testPrepareService() { - $this->onlyGuzzle6(); + $this->onlyGuzzle6Or7(); $client = new Google_Client(); $client->setScopes(array("scope1", "scope2")); @@ -746,7 +746,7 @@ public function testDefaultTokenCallback() public function testExecuteWithFormat() { - $this->onlyGuzzle6(); + $this->onlyGuzzle6Or7(); $client = new Google_Client([ 'api_format_v2' => true @@ -768,7 +768,7 @@ public function testExecuteWithFormat() public function testExecuteSetsCorrectHeaders() { - $this->onlyGuzzle6(); + $this->onlyGuzzle6Or7(); $client = new Google_Client(); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index df08569df..74cdc711d 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -374,7 +374,7 @@ public function testErrorResponseWithVeryLongBody() public function testSuccessResponseWithVeryLongBody() { - $this->onlyGuzzle6(); + $this->onlyGuzzle6Or7(); // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; From 215f8da53b06c520ad46ea8c903ecf305f418358 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 14 Sep 2020 15:39:02 -0600 Subject: [PATCH 1120/1274] fix: removes old autoload warning from v1 (#1938) --- src/Google/Collection.php | 4 ---- src/Google/autoload.php | 21 --------------------- 2 files changed, 25 deletions(-) delete mode 100644 src/Google/autoload.php diff --git a/src/Google/Collection.php b/src/Google/Collection.php index df8d444d3..ce8a2aa3d 100644 --- a/src/Google/Collection.php +++ b/src/Google/Collection.php @@ -1,9 +1,5 @@ Date: Tue, 15 Sep 2020 13:22:27 -0600 Subject: [PATCH 1121/1274] fix: make docs generation identical to google/auth, which works (#1933) --- .github/actions/docs/entrypoint.sh | 13 ------------- .github/actions/docs/sami.php | 2 +- .github/actions/docs/sami.php.dist | 29 ----------------------------- .github/workflows/docs.yml | 6 ++++++ .gitignore | 1 - 5 files changed, 7 insertions(+), 44 deletions(-) delete mode 100644 .github/actions/docs/sami.php.dist diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 6f9895c2b..4d9c79fb4 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -4,22 +4,9 @@ apt-get update apt-get install -y git git reset --hard HEAD -# Required so sami.php is available for previous versions -cp .github/actions/docs/sami.php.dist .github/actions/docs/sami.php - # Create the directories mkdir .docs mkdir .cache # Run the docs generation command php vendor/bin/sami.php update .github/actions/docs/sami.php - -cd ./.docs - -git init -git config user.name "GitHub Actions" -git config user.email "actions@github.com" - -git add . -git commit -m "Updating docs" -git push -q https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY} HEAD:gh-pages --force diff --git a/.github/actions/docs/sami.php b/.github/actions/docs/sami.php index bf44e3ee8..b607837df 100644 --- a/.github/actions/docs/sami.php +++ b/.github/actions/docs/sami.php @@ -5,7 +5,7 @@ use Sami\Version\GitVersionCollection; use Symfony\Component\Finder\Finder; -$projectRoot = __DIR__ . '/../../..'; +$projectRoot = realpath(__DIR__ . '/../../..'); $iterator = Finder::create() ->files() diff --git a/.github/actions/docs/sami.php.dist b/.github/actions/docs/sami.php.dist deleted file mode 100644 index bf44e3ee8..000000000 --- a/.github/actions/docs/sami.php.dist +++ /dev/null @@ -1,29 +0,0 @@ -files() - ->name('*.php') - ->exclude('vendor') - ->exclude('tests') - ->in($projectRoot); - -$versions = GitVersionCollection::create($projectRoot) - ->addFromTags(function($tag) { - return 0 === strpos($tag, 'v2.') && false === strpos($tag, 'RC'); - }) - ->add('master', 'master branch'); - -return new Sami($iterator, [ - 'title' => 'Google APIs Client Library for PHP API Reference', - 'build_dir' => $projectRoot . '/.docs/%version%', - 'cache_dir' => $projectRoot . '/.cache/%version%', - 'remote_repository' => new GitHubRemoteRepository('googleapis/google-api-php-client', $projectRoot), - 'versions' => $versions -]); diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cf3f13e46..8992af044 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,3 +26,9 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: entrypoint: ./.github/actions/docs/entrypoint.sh + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: .docs diff --git a/.gitignore b/.gitignore index 837e0b5be..9b429eae6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .DS_Store -.github/actions/docs/sami.php phpunit.xml phpcs.xml composer.lock From 752850bdd9f6595e7b520a23030e97d52bbc4b13 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 16 Sep 2020 07:52:03 -0600 Subject: [PATCH 1122/1274] docs: adds reference docs link (#1941) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d732797d2..1274cdf2e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ # Google APIs Client Library for PHP # +
      +
      Reference Docs
      https://googleapis.github.io/google-api-php-client/master/
      +
      License
      Apache 2.0
      +
      + The Google API Client Library enables you to work with Google APIs such as Gmail, Drive or YouTube on your server. These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. From f441bcf0315ba8d81ed233eec6927e397240ee81 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 18 Sep 2020 13:46:26 -0600 Subject: [PATCH 1123/1274] fix: add expires_in to default token callback (#1932) --- src/Google/Client.php | 1 + tests/Google/ClientTest.php | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index f33558f77..ee70dd48b 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -176,6 +176,7 @@ public function __construct(array $config = array()) $this->setAccessToken( [ 'access_token' => $newAccessToken, + 'expires_in' => 3600, // Google default 'created' => time(), ] ); diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 3440102a3..3652b3ca6 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -702,9 +702,11 @@ public function testTokenCallback() // set the token callback to the client $client->setTokenCallback($callback); - // make a silly request to obtain a new token + // make a silly request to obtain a new token (it's ok if it fails) $http = $client->authorize(); - $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + try { + $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + } catch (Exception $e) {} $newToken = $client->getAccessToken(); // go back to the previous cache @@ -742,6 +744,8 @@ public function testDefaultTokenCallback() $accessToken['access_token'], $newToken['access_token'] ); + + $this->assertFalse($client->isAccessTokenExpired()); } public function testExecuteWithFormat() From 9df720d72c59456b5466e3f66e1e78cfe422a5ba Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 18 Sep 2020 14:02:04 -0600 Subject: [PATCH 1124/1274] chore: prepare v2.7.2 (#1946) --- src/Google/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Client.php b/src/Google/Client.php index ee70dd48b..2e3d48a79 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -38,7 +38,7 @@ */ class Google_Client { - const LIBVER = "2.7.1"; + const LIBVER = "2.7.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 61517efe678b3c20fe806e76d506204261ca2863 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 23 Sep 2020 11:45:23 -0600 Subject: [PATCH 1125/1274] feat: allow array/null config constructors for services (#1929) --- src/Google/Service.php | 17 +++++++++-- tests/Google/ServiceTest.php | 56 ++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/src/Google/Service.php b/src/Google/Service.php index d3fd3b49d..43979428b 100644 --- a/src/Google/Service.php +++ b/src/Google/Service.php @@ -25,9 +25,22 @@ class Google_Service public $resource; private $client; - public function __construct(Google_Client $client) + /** + * @param Google_Client|array $clientOrConfig Optional + */ + public function __construct($clientOrConfig = []) { - $this->client = $client; + if ($clientOrConfig instanceof Google_Client) { + $this->client = $clientOrConfig; + } elseif (is_array($clientOrConfig)) { + $this->client = new Google_Client($clientOrConfig ?: []); + } else { + $errorMessage = 'constructor must be array or instance of Google_Client'; + if (class_exists('TypeError')) { + throw new TypeError($errorMessage); + } + trigger_error($errorMessage, E_USER_ERROR); + } } /** diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index ec89bb011..b1130b65f 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -121,4 +121,60 @@ public function serviceProvider() return $classes; } + + public function testConfigConstructor() + { + $clientId = 'test-client-id'; + $service = new TestService(['client_id' => $clientId]); + $this->assertEquals($clientId, $service->getClient()->getClientId()); + } + + public function testNoConstructor() + { + $service = new TestService(); + $this->assertInstanceOf('Google_Client', $service->getClient()); + } + + public function testInvalidConstructorPhp7Plus() + { + if (!class_exists('TypeError')) { + $this->markTestSkipped('PHP 7+ only'); + } + + try { + $service = new TestService('foo'); + } catch (TypeError $e) {} + + $this->assertInstanceOf('TypeError', $e); + $this->assertEquals( + 'constructor must be array or instance of Google_Client', + $e->getMessage() + ); + } + + private static $errorMessage; + + /** @runInSeparateProcess */ + public function testInvalidConstructorPhp5() + { + if (class_exists('TypeError')) { + $this->markTestSkipped('PHP 5 only'); + } + + set_error_handler('Google_ServiceTest::handlePhp5Error'); + + $service = new TestService('foo'); + + $this->assertEquals( + 'constructor must be array or instance of Google_Client', + self::$errorMessage + ); + } + + public static function handlePhp5Error($errno, $errstr, $errfile, $errline) + { + self::assertEquals(E_USER_ERROR, $errno); + self::$errorMessage = $errstr; + return true; + } } From d0dcc7054faad3cdda5844e15103a59984969744 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 30 Sep 2020 10:19:56 -0700 Subject: [PATCH 1126/1274] chore: add CODEOWNERS and repo settings config (#1956) --- .github/CODEOWNERS | 7 +++++++ .github/sync-repo-settings.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/sync-repo-settings.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..c20bc3167 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,7 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. +# +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + +* @googleapis/yoshi-php diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml new file mode 100644 index 000000000..c2b2689b5 --- /dev/null +++ b/.github/sync-repo-settings.yaml @@ -0,0 +1,26 @@ +rebaseMergeAllowed: true +squashMergeAllowed: true +mergeCommitAllowed: false +branchProtectionRules: +- pattern: master + isAdminEnforced: true + requiredStatusCheckContexts: + - 'PHP 5.4 Unit Test' + - 'PHP 5.4 Unit Test (with `--prefer-lowest`)' + - 'PHP 5.5 Unit Test' + - 'PHP 5.6 Unit Test' + - 'PHP 7.0 Unit Test' + - 'PHP 7.1 Unit Test' + - 'PHP 7.2 Unit Test' + - 'PHP 7.3 Unit Test' + - 'PHP 7.4 Unit Test' + - 'PHP Style Check' + - 'cla/google' + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: true +permissionRules: + - team: yoshi-php-admins + permission: admin + - team: yoshi-php + permission: push From e6d64bef20317adfbb0a8bf8a09352b8d87a2e09 Mon Sep 17 00:00:00 2001 From: sylvain-msl <56234755+sylvain-msl@users.noreply.github.com> Date: Tue, 20 Oct 2020 22:06:44 +0200 Subject: [PATCH 1127/1274] fix: exception option fallback is http_errors on guzzle 6 and 7 (#1966) --- src/Google/AuthHandler/Guzzle6AuthHandler.php | 2 +- src/Google/Client.php | 8 +++++--- tests/Google/ClientTest.php | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/Google/AuthHandler/Guzzle6AuthHandler.php b/src/Google/AuthHandler/Guzzle6AuthHandler.php index d1c16e6fc..43e213896 100644 --- a/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ b/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -97,7 +97,7 @@ private function createAuthHttp(ClientInterface $http) return new Client( [ 'base_uri' => $http->getConfig('base_uri'), - 'exceptions' => true, + 'http_errors' => true, 'verify' => $http->getConfig('verify'), 'proxy' => $http->getConfig('proxy'), ] diff --git a/src/Google/Client.php b/src/Google/Client.php index 2e3d48a79..d7f4848f4 100644 --- a/src/Google/Client.php +++ b/src/Google/Client.php @@ -1148,11 +1148,10 @@ protected function createDefaultHttpClient() $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); } - $options = ['exceptions' => false]; if (5 === $guzzleVersion) { $options = [ 'base_url' => $this->config['base_path'], - 'defaults' => $options, + 'defaults' => ['exceptions' => false], ]; if ($this->isAppEngine()) { // set StreamHandler on AppEngine by default @@ -1161,7 +1160,10 @@ protected function createDefaultHttpClient() } } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { // guzzle 6 or 7 - $options['base_uri'] = $this->config['base_path']; + $options = [ + 'base_uri' => $this->config['base_path'], + 'http_errors' => false, + ]; } else { throw new LogicException('Could not find supported version of Guzzle.'); } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 3652b3ca6..fe3b69c51 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -301,6 +301,21 @@ public function testSettersGetters() $this->assertEquals($token, $client->getAccessToken()); } + public function testDefaultConfigOptions() + { + $client = new Google_Client(); + if ($this->isGuzzle6() || $this->isGuzzle7()) { + $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); + $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); + $this->assertFalse($client->getHttpClient()->getConfig()['http_errors']); + } + if ($this->isGuzzle5()) { + $this->assertArrayHasKey('exceptions', $client->getHttpClient()->getDefaultOption()); + $this->assertArrayNotHasKey('http_errors', $client->getHttpClient()->getDefaultOption()); + $this->assertFalse($client->getHttpClient()->getDefaultOption()['exceptions']); + } + } + public function testAppEngineStreamHandlerConfig() { $this->onlyGuzzle5(); From 4d3932ecaef5329ebf6eb952334669317d187079 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 20 Oct 2020 13:27:37 -0700 Subject: [PATCH 1128/1274] feat: rename namespaces and provide aliases (#1937) --- composer.json | 8 ++-- src/{Google => }/AccessToken/Revoke.php | 7 ++- src/{Google => }/AccessToken/Verify.php | 18 ++++++-- .../AuthHandler/AuthHandlerFactory.php | 11 +++-- .../AuthHandler/Guzzle5AuthHandler.php | 4 +- .../AuthHandler/Guzzle6AuthHandler.php | 4 +- .../AuthHandler/Guzzle7AuthHandler.php | 4 +- src/{Google => }/Client.php | 46 +++++++++++-------- src/{Google => }/Collection.php | 6 ++- src/{Google => }/Exception.php | 6 ++- src/{Google => }/Http/Batch.php | 19 +++++--- src/{Google => }/Http/MediaFileUpload.php | 19 +++++--- src/{Google => }/Http/REST.php | 21 +++++---- src/{Google => }/Model.php | 17 +++++-- src/{Google => }/Service.php | 22 +++++---- src/{Google => }/Service/Exception.php | 6 ++- src/{Google => }/Service/README.md | 0 src/{Google => }/Service/Resource.php | 26 +++++++---- src/{Google => }/Task/Composer.php | 11 +++-- src/{Google => }/Task/Exception.php | 6 ++- src/{Google => }/Task/Retryable.php | 4 +- src/{Google => }/Task/Runner.php | 25 ++++++---- src/{Google => }/Utils/UriTemplate.php | 4 +- src/aliases.php | 29 ++++++++++++ tests/Google/ServiceTest.php | 26 +---------- tests/examples/batchTest.php | 2 +- 26 files changed, 221 insertions(+), 130 deletions(-) rename src/{Google => }/AccessToken/Revoke.php (95%) rename src/{Google => }/AccessToken/Verify.php (95%) rename src/{Google => }/AuthHandler/AuthHandlerFactory.php (83%) rename src/{Google => }/AuthHandler/Guzzle5AuthHandler.php (97%) rename src/{Google => }/AuthHandler/Guzzle6AuthHandler.php (98%) rename src/{Google => }/AuthHandler/Guzzle7AuthHandler.php (87%) rename src/{Google => }/Client.php (97%) rename src/{Google => }/Collection.php (93%) rename src/{Google => }/Exception.php (87%) rename src/{Google => }/Http/Batch.php (94%) rename src/{Google => }/Http/MediaFileUpload.php (96%) rename src/{Google => }/Http/REST.php (91%) rename src/{Google => }/Model.php (96%) rename src/{Google => }/Service.php (81%) rename src/{Google => }/Service/Exception.php (94%) rename src/{Google => }/Service/README.md (100%) rename src/{Google => }/Service/Resource.php (93%) rename src/{Google => }/Task/Composer.php (93%) rename src/{Google => }/Task/Exception.php (85%) rename src/{Google => }/Task/Retryable.php (94%) rename src/{Google => }/Task/Runner.php (92%) rename src/{Google => }/Utils/UriTemplate.php (99%) create mode 100644 src/aliases.php diff --git a/composer.json b/composer.json index e0caa3113..43a8ac01f 100644 --- a/composer.json +++ b/composer.json @@ -29,11 +29,11 @@ "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" }, "autoload": { - "psr-0": { - "Google_": "src/" + "psr-4": { + "Google\\": "src/" }, - "classmap": [ - "src/Google/Service/" + "files": [ + "src/aliases.php" ] }, "extra": { diff --git a/src/Google/AccessToken/Revoke.php b/src/AccessToken/Revoke.php similarity index 95% rename from src/Google/AccessToken/Revoke.php rename to src/AccessToken/Revoke.php index 29eb3fb36..d2d272454 100644 --- a/src/Google/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -16,7 +16,10 @@ * limitations under the License. */ +namespace Google\AccessToken; + use Google\Auth\HttpHandler\HttpHandlerFactory; +use Google\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; @@ -25,7 +28,7 @@ * Wrapper around Google Access Tokens which provides convenience functions * */ -class Google_AccessToken_Revoke +class Revoke { /** * @var GuzzleHttp\ClientInterface The http client @@ -61,7 +64,7 @@ public function revokeToken($token) $body = Psr7\stream_for(http_build_query(array('token' => $token))); $request = new Request( 'POST', - Google_Client::OAUTH2_REVOKE_URI, + Client::OAUTH2_REVOKE_URI, [ 'Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded', diff --git a/src/Google/AccessToken/Verify.php b/src/AccessToken/Verify.php similarity index 95% rename from src/Google/AccessToken/Verify.php rename to src/AccessToken/Verify.php index e8067c5a1..c9ddf8541 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -16,20 +16,28 @@ * limitations under the License. */ +namespace Google\AccessToken; + use Firebase\JWT\ExpiredException as ExpiredExceptionV3; use Firebase\JWT\SignatureInvalidException; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use Psr\Cache\CacheItemPoolInterface; use Google\Auth\Cache\MemoryCacheItemPool; +use Google\Exception as GoogleException; use Stash\Driver\FileSystem; use Stash\Pool; +use DateTime; +use DomainException; +use Exception; +use ExpiredException; // Firebase v2 +use LogicException; /** * Wrapper around Google Access Tokens which provides convenience functions * */ -class Google_AccessToken_Verify +class Verify { const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; const OAUTH2_ISSUER = 'accounts.google.com'; @@ -141,7 +149,7 @@ private function getCache() * Retrieve and cache a certificates file. * * @param $url string location - * @throws Google_Exception + * @throws GoogleException * @return array certificates */ private function retrieveCertsFromLocation($url) @@ -149,7 +157,7 @@ private function retrieveCertsFromLocation($url) // If we're retrieving a local file, just grab it. if (0 !== strpos($url, 'http')) { if (!$file = file_get_contents($url)) { - throw new Google_Exception( + throw new GoogleException( "Failed to retrieve verification certificates: '" . $url . "'." ); @@ -163,7 +171,7 @@ private function retrieveCertsFromLocation($url) if ($response->getStatusCode() == 200) { return json_decode((string) $response->getBody(), true); } - throw new Google_Exception( + throw new GoogleException( sprintf( 'Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents() @@ -249,7 +257,7 @@ private function getOpenSslConstant() return 'CRYPT_RSA_MODE_OPENSSL'; } - throw new \Exception('Cannot find RSA class'); + throw new Exception('Cannot find RSA class'); } /** diff --git a/src/Google/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php similarity index 83% rename from src/Google/AuthHandler/AuthHandlerFactory.php rename to src/AuthHandler/AuthHandlerFactory.php index 1a15f7a89..1ae9d8a9e 100644 --- a/src/Google/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -15,10 +15,13 @@ * limitations under the License. */ +namespace Google\AuthHandler; + use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; +use Exception; -class Google_AuthHandler_AuthHandlerFactory +class AuthHandlerFactory { /** * Builds out a default http handler for the installed version of guzzle. @@ -37,11 +40,11 @@ public static function build($cache = null, array $cacheConfig = []) switch ($guzzleVersion) { case 5: - return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig); + return new Guzzle5AuthHandler($cache, $cacheConfig); case 6: - return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig); + return new Guzzle6AuthHandler($cache, $cacheConfig); case 7: - return new Google_AuthHandler_Guzzle7AuthHandler($cache, $cacheConfig); + return new Guzzle7AuthHandler($cache, $cacheConfig); default: throw new Exception('Version not supported'); } diff --git a/src/Google/AuthHandler/Guzzle5AuthHandler.php b/src/AuthHandler/Guzzle5AuthHandler.php similarity index 97% rename from src/Google/AuthHandler/Guzzle5AuthHandler.php rename to src/AuthHandler/Guzzle5AuthHandler.php index 4e4a8d68f..92d226821 100644 --- a/src/Google/AuthHandler/Guzzle5AuthHandler.php +++ b/src/AuthHandler/Guzzle5AuthHandler.php @@ -1,5 +1,7 @@ '', // Path to JSON credentials or an array representing those credentials - // @see Google_Client::setAuthConfig + // @see Google\Client::setAuthConfig 'credentials' => null, - // @see Google_Client::setScopes + // @see Google\Client::setScopes 'scopes' => null, // Sets X-Goog-User-Project, which specifies a user project to bill // for access charges associated with the request @@ -138,7 +148,7 @@ public function __construct(array $config = array()) 'approval_prompt' => 'auto', // Task Runner retry configuration - // @see Google_Task_Runner + // @see Google\Task\Runner 'retry' => array(), 'retry_map' => null, @@ -149,7 +159,7 @@ public function __construct(array $config = array()) // follows the signature function ($cacheKey, $accessToken) 'token_callback' => null, - // Service class used in Google_Client::verifyIdToken. + // Service class used in Google\Client::verifyIdToken. // Explicitly pass this in to avoid setting JWT::$leeway 'jwt' => null, @@ -256,9 +266,9 @@ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) if (!$this->isUsingApplicationDefaultCredentials()) { throw new DomainException( 'set the JSON service account credentials using' - . ' Google_Client::setAuthConfig or set the path to your JSON file' + . ' Google\Client::setAuthConfig or set the path to your JSON file' . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' - . ' and call Google_Client::useApplicationDefaultCredentials to' + . ' and call Google\Client::useApplicationDefaultCredentials to' . ' refresh a token with assertion.' ); } @@ -734,9 +744,7 @@ public function setTokenCallback(callable $tokenCallback) */ public function revokeToken($token = null) { - $tokenRevoker = new Google_AccessToken_Revoke( - $this->getHttpClient() - ); + $tokenRevoker = new Revoke($this->getHttpClient()); return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); } @@ -753,7 +761,7 @@ public function revokeToken($token = null) */ public function verifyIdToken($idToken = null) { - $tokenVerifier = new Google_AccessToken_Verify( + $tokenVerifier = new Verify( $this->getHttpClient(), $this->getCache(), $this->config['jwt'] @@ -834,9 +842,9 @@ public function prepareScopes() /** * Helper method to execute deferred HTTP requests. * - * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch + * @param $request Psr\Http\Message\RequestInterface|Google\Http\Batch * @param string $expectedClass - * @throws Google_Exception + * @throws Google\Exception * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. */ public function execute(RequestInterface $request, $expectedClass = null) @@ -871,7 +879,7 @@ public function execute(RequestInterface $request, $expectedClass = null) // this is where most of the grunt work is done $http = $this->authorize(); - return Google_Http_REST::execute( + return REST::execute( $http, $request, $expectedClass, @@ -918,7 +926,7 @@ public function getConfig($name, $default = null) * alias for setAuthConfig * * @param string $file the configuration file - * @throws Google_Exception + * @throws Google\Exception * @deprecated */ public function setAuthConfigFile($file) @@ -932,7 +940,7 @@ public function setAuthConfigFile($file) * the "Download JSON" button on in the Google Developer * Console. * @param string|array $config the configuration json - * @throws Google_Exception + * @throws Google\Exception */ public function setAuthConfig($config) { @@ -1168,7 +1176,7 @@ protected function createDefaultHttpClient() throw new LogicException('Could not find supported version of Guzzle.'); } - return new Client($options); + return new GuzzleClient($options); } private function createApplicationDefaultCredentials() @@ -1220,7 +1228,7 @@ protected function getAuthHandler() // sessions. // // @see https://github.com/google/google-api-php-client/issues/821 - return Google_AuthHandler_AuthHandlerFactory::build( + return AuthHandlerFactory::build( $this->getCache(), $this->config['cache_config'] ); diff --git a/src/Google/Collection.php b/src/Collection.php similarity index 93% rename from src/Google/Collection.php rename to src/Collection.php index ce8a2aa3d..3d61bea80 100644 --- a/src/Google/Collection.php +++ b/src/Collection.php @@ -1,11 +1,13 @@ requests as $key => $request) { $firstLine = sprintf( '%s %s HTTP/%s', @@ -176,8 +181,8 @@ public function parseResponse(ResponseInterface $response, $classes = array()) $key = $headers['content-id']; try { - $response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]); - } catch (Google_Service_Exception $e) { + $response = REST::decodeHttpResponse($response, $requests[$i-1]); + } catch (GoogleServiceException $e) { // Store the exception as the response, so successful responses // can be processed. $response = $e; diff --git a/src/Google/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php similarity index 96% rename from src/Google/Http/MediaFileUpload.php rename to src/Http/MediaFileUpload.php index d868a9986..c98169d18 100644 --- a/src/Google/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -15,6 +15,11 @@ * limitations under the License. */ +namespace Google\Http; + +use Google\Client; +use Google\Http\REST; +use Google\Exception as GoogleException; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Uri; @@ -24,7 +29,7 @@ * Manage large file uploads, which may be media but can be any type * of sizable data. */ -class Google_Http_MediaFileUpload +class MediaFileUpload { const UPLOAD_MEDIA_TYPE = 'media'; const UPLOAD_MULTIPART_TYPE = 'multipart'; @@ -51,7 +56,7 @@ class Google_Http_MediaFileUpload /** @var int $progress */ private $progress; - /** @var Google_Client */ + /** @var Google\Client */ private $client; /** @var Psr\Http\Message\RequestInterface */ @@ -67,7 +72,7 @@ class Google_Http_MediaFileUpload private $httpResultCode; /** - * @param Google_Client $client + * @param Client $client * @param RequestInterface $request * @param string $mimeType * @param string $data The bytes you want to upload. @@ -76,7 +81,7 @@ class Google_Http_MediaFileUpload * only used if resumable=True */ public function __construct( - Google_Client $client, + Client $client, RequestInterface $request, $mimeType, $data, @@ -155,7 +160,7 @@ public function getHttpResultCode() * Sends a PUT-Request to google drive and parses the response, * setting the appropiate variables from the response() * - * @param Google_Http_Request $httpRequest the Reuqest which will be send + * @param Google\Http\Request $httpRequest the Reuqest which will be send * * @return false|mixed false when the upload is unfinished or the decoded http response * @@ -183,7 +188,7 @@ private function makePutRequest(RequestInterface $request) return false; } - return Google_Http_REST::decodeHttpResponse($response, $this->request); + return REST::decodeHttpResponse($response, $this->request); } /** @@ -327,7 +332,7 @@ private function fetchResumeUri() $error = "Failed to start the resumable upload (HTTP {$message})"; $this->client->getLogger()->error($error); - throw new Google_Exception($error); + throw new GoogleException($error); } private function transformToUploadUrl() diff --git a/src/Google/Http/REST.php b/src/Http/REST.php similarity index 91% rename from src/Google/Http/REST.php rename to src/Http/REST.php index c495ed9fe..014932809 100644 --- a/src/Google/Http/REST.php +++ b/src/Http/REST.php @@ -15,7 +15,12 @@ * limitations under the License. */ +namespace Google\Http; + use Google\Auth\HttpHandler\HttpHandlerFactory; +use Google\Client; +use Google\Task\Runner; +use Google\Service\Exception as GoogleServiceException; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\Response; @@ -25,19 +30,19 @@ /** * This class implements the RESTful transport of apiServiceRequest()'s */ -class Google_Http_REST +class REST { /** * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * - * @param Google_Client $client + * @param Google\Client $client * @param Psr\Http\Message\RequestInterface $req * @param string $expectedClass * @param array $config * @param array $retryMap * @return array decoded result - * @throws Google_Service_Exception on server side error (ie: not authenticated, + * @throws Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function execute( @@ -47,7 +52,7 @@ public static function execute( $config = array(), $retryMap = null ) { - $runner = new Google_Task_Runner( + $runner = new Runner( $config, sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), array(get_class(), 'doExecute'), @@ -64,11 +69,11 @@ public static function execute( /** * Executes a Psr\Http\Message\RequestInterface * - * @param Google_Client $client + * @param Google\Client $client * @param Psr\Http\Message\RequestInterface $request * @param string $expectedClass * @return array decoded result - * @throws Google_Service_Exception on server side error (ie: not authenticated, + * @throws Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) @@ -101,7 +106,7 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ /** * Decode an HTTP Response. * @static - * @throws Google_Service_Exception + * @throws Google\Service\Exception * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. * @param Psr\Http\Message\ResponseInterface $response * @param string $expectedClass @@ -120,7 +125,7 @@ public static function decodeHttpResponse( $body = (string) $response->getBody(); // Check if we received errors, and add those to the Exception for convenience - throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body)); + throw new GoogleServiceException($body, $code, null, self::getResponseErrors($body)); } // Ensure we only pull the entire body into memory if the request is not diff --git a/src/Google/Model.php b/src/Model.php similarity index 96% rename from src/Google/Model.php rename to src/Model.php index 18262608b..667899fe4 100644 --- a/src/Google/Model.php +++ b/src/Model.php @@ -15,16 +15,23 @@ * limitations under the License. */ +namespace Google; + +use Google\Exception as GoogleException; +use ReflectionObject; +use ReflectionProperty; +use stdClass; + /** * This class defines attributes, valid values, and usage which is generated * from a given json schema. * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5 * */ -class Google_Model implements ArrayAccess +class Model implements \ArrayAccess { /** - * If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE + * If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE * instead - it will be replaced when converting to JSON with a real null. */ const NULL_VALUE = "{}gapi-php-null"; @@ -174,7 +181,7 @@ public function toSimpleObject() */ private function getSimpleValue($value) { - if ($value instanceof Google_Model) { + if ($value instanceof Model) { return $value->toSimpleObject(); } else if (is_array($value)) { $return = array(); @@ -233,14 +240,14 @@ protected function isAssociativeArray($array) /** * Verify if $obj is an array. - * @throws Google_Exception Thrown if $obj isn't an array. + * @throws Google\Exception Thrown if $obj isn't an array. * @param array $obj Items that should be validated. * @param string $method Method expecting an array as an argument. */ public function assertIsArray($obj, $method) { if ($obj && !is_array($obj)) { - throw new Google_Exception( + throw new GoogleException( "Incorrect parameter type passed to $method(). Expected an array." ); } diff --git a/src/Google/Service.php b/src/Service.php similarity index 81% rename from src/Google/Service.php rename to src/Service.php index 43979428b..d967f4cc3 100644 --- a/src/Google/Service.php +++ b/src/Service.php @@ -15,7 +15,12 @@ * limitations under the License. */ -class Google_Service +namespace Google; + +use Google\Http\Batch; +use TypeError; + +class Service { public $batchPath; public $rootUrl; @@ -25,17 +30,14 @@ class Google_Service public $resource; private $client; - /** - * @param Google_Client|array $clientOrConfig Optional - */ public function __construct($clientOrConfig = []) { - if ($clientOrConfig instanceof Google_Client) { + if ($clientOrConfig instanceof Client) { $this->client = $clientOrConfig; } elseif (is_array($clientOrConfig)) { - $this->client = new Google_Client($clientOrConfig ?: []); + $this->client = new Client($clientOrConfig ?: []); } else { - $errorMessage = 'constructor must be array or instance of Google_Client'; + $errorMessage = 'constructor must be array or instance of Google\Client'; if (class_exists('TypeError')) { throw new TypeError($errorMessage); } @@ -44,8 +46,8 @@ public function __construct($clientOrConfig = []) } /** - * Return the associated Google_Client class. - * @return Google_Client + * Return the associated Google\Client class. + * @return Google\Client */ public function getClient() { @@ -59,7 +61,7 @@ public function getClient() */ public function createBatch() { - return new Google_Http_Batch( + return new Batch( $this->client, false, $this->rootUrl, diff --git a/src/Google/Service/Exception.php b/src/Service/Exception.php similarity index 94% rename from src/Google/Service/Exception.php rename to src/Service/Exception.php index 3ab28aed3..12464d4af 100644 --- a/src/Google/Service/Exception.php +++ b/src/Service/Exception.php @@ -15,7 +15,11 @@ * limitations under the License. */ -class Google_Service_Exception extends Google_Exception +namespace Google\Service; + +use Google\Exception as GoogleException; + +class Exception extends GoogleException { /** * Optional list of errors returned in a JSON body of an HTTP error response. diff --git a/src/Google/Service/README.md b/src/Service/README.md similarity index 100% rename from src/Google/Service/README.md rename to src/Service/README.md diff --git a/src/Google/Service/Resource.php b/src/Service/Resource.php similarity index 93% rename from src/Google/Service/Resource.php rename to src/Service/Resource.php index 77070fc41..8d1ea8bc0 100644 --- a/src/Google/Service/Resource.php +++ b/src/Service/Resource.php @@ -15,6 +15,12 @@ * limitations under the License. */ +namespace Google\Service; + +use Google\Model; +use Google\Http\MediaFileUpload; +use Google\Exception as GoogleException; +use Google\Utils\UriTemplate; use GuzzleHttp\Psr7\Request; /** @@ -23,7 +29,7 @@ * is available in this service, and if so construct an apiHttpRequest representing it. * */ -class Google_Service_Resource +class Resource { // Valid query parameters that work, but don't appear in discovery. private $stackParameters = array( @@ -42,7 +48,7 @@ class Google_Service_Resource /** @var string $rootUrl */ private $rootUrl; - /** @var Google_Client $client */ + /** @var Google\Client $client */ private $client; /** @var string $serviceName */ @@ -74,8 +80,8 @@ public function __construct($service, $serviceName, $resourceName, $resource) * @param $name * @param $arguments * @param $expectedClass - optional, the expected class name - * @return Google_Http_Request|expectedClass - * @throws Google_Exception + * @return Google\Http\Request|expectedClass + * @throws Google\Exception */ public function call($name, $arguments, $expectedClass = null) { @@ -89,7 +95,7 @@ public function call($name, $arguments, $expectedClass = null) ) ); - throw new Google_Exception( + throw new GoogleException( "Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()" ); @@ -101,7 +107,7 @@ public function call($name, $arguments, $expectedClass = null) // document as parameter, but we abuse the param entry for storing it. $postBody = null; if (isset($parameters['postBody'])) { - if ($parameters['postBody'] instanceof Google_Model) { + if ($parameters['postBody'] instanceof Model) { // In the cases the post body is an existing object, we want // to use the smart method to create a simple object for // for JSONification. @@ -144,7 +150,7 @@ public function call($name, $arguments, $expectedClass = null) 'parameter' => $key ) ); - throw new Google_Exception("($name) unknown parameter: '$key'"); + throw new GoogleException("($name) unknown parameter: '$key'"); } } @@ -162,7 +168,7 @@ public function call($name, $arguments, $expectedClass = null) 'parameter' => $paramName ) ); - throw new Google_Exception("($name) missing required param: '$paramName'"); + throw new GoogleException("($name) missing required param: '$paramName'"); } if (isset($parameters[$paramName])) { $value = $parameters[$paramName]; @@ -207,7 +213,7 @@ public function call($name, $arguments, $expectedClass = null) ? $parameters['mimeType']['value'] : 'application/octet-stream'; $data = $parameters['data']['value']; - $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); + $upload = new MediaFileUpload($this->client, $request, $mimeType, $data); // pull down the modified request $request = $upload->getRequest(); @@ -289,7 +295,7 @@ public function createRequestUri($restPath, $params) } if (count($uriTemplateVars)) { - $uriTemplateParser = new Google_Utils_UriTemplate(); + $uriTemplateParser = new UriTemplate(); $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); } diff --git a/src/Google/Task/Composer.php b/src/Task/Composer.php similarity index 93% rename from src/Google/Task/Composer.php rename to src/Task/Composer.php index 865fc7af4..32ca2de75 100644 --- a/src/Google/Task/Composer.php +++ b/src/Task/Composer.php @@ -15,11 +15,14 @@ * the License. */ +namespace Google\Task; + use Composer\Script\Event; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; +use InvalidArgumentException; -class Google_Task_Composer +class Composer { /** * @param Event $event Composer event passed in for any script method @@ -70,7 +73,7 @@ private static function verifyServicesToKeep( foreach ($servicesToKeep as $service) { if (!preg_match('/^[a-zA-Z0-9]*$/', $service)) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( sprintf( 'Invalid Google service name "%s"', $service @@ -79,8 +82,8 @@ private static function verifyServicesToKeep( } try { $finder->in($serviceDir . '/' . $service); - } catch (\InvalidArgumentException $e) { - throw new \InvalidArgumentException( + } catch (InvalidArgumentException $e) { + throw new InvalidArgumentException( sprintf( 'Google service "%s" does not exist or was removed previously', $service diff --git a/src/Google/Task/Exception.php b/src/Task/Exception.php similarity index 85% rename from src/Google/Task/Exception.php rename to src/Task/Exception.php index 5422e6fc4..9e0d436b5 100644 --- a/src/Google/Task/Exception.php +++ b/src/Task/Exception.php @@ -15,6 +15,10 @@ * limitations under the License. */ -class Google_Task_Exception extends Google_Exception +namespace Google\Task; + +use Google\Exception as GoogleException; + +class Exception extends GoogleException { } diff --git a/src/Google/Task/Retryable.php b/src/Task/Retryable.php similarity index 94% rename from src/Google/Task/Retryable.php rename to src/Task/Retryable.php index 19aa4ddc2..5f67af8ac 100644 --- a/src/Google/Task/Retryable.php +++ b/src/Task/Retryable.php @@ -15,10 +15,12 @@ * limitations under the License. */ +namespace Google\Task; + /** * Interface for checking how many times a given task can be retried following * a failure. */ -interface Google_Task_Retryable +interface Retryable { } diff --git a/src/Google/Task/Runner.php b/src/Task/Runner.php similarity index 92% rename from src/Google/Task/Runner.php rename to src/Task/Runner.php index 2f25e990e..ad1c56ab1 100644 --- a/src/Google/Task/Runner.php +++ b/src/Task/Runner.php @@ -15,12 +15,17 @@ * limitations under the License. */ +namespace Google\Task; + +use Google\Service\Exception as GoogleServiceException; +use Google\Task\Exception as GoogleTaskException; + /** * A task runner with exponential backoff support. * * @see https://developers.google.com/drive/web/handle-errors#implementing_exponential_backoff */ -class Google_Task_Runner +class Runner { const TASK_RETRY_NEVER = 0; const TASK_RETRY_ONCE = 1; @@ -86,7 +91,7 @@ class Google_Task_Runner * @param string $name The name of the current task (used for logging) * @param callable $action The task to run and possibly retry * @param array $arguments The task arguments - * @throws Google_Task_Exception when misconfigured + * @throws Google\Task\Exception when misconfigured */ public function __construct( $config, @@ -96,7 +101,7 @@ public function __construct( ) { if (isset($config['initial_delay'])) { if ($config['initial_delay'] < 0) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task configuration `initial_delay` must not be negative.' ); } @@ -106,7 +111,7 @@ public function __construct( if (isset($config['max_delay'])) { if ($config['max_delay'] <= 0) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task configuration `max_delay` must be greater than 0.' ); } @@ -116,7 +121,7 @@ public function __construct( if (isset($config['factor'])) { if ($config['factor'] <= 0) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task configuration `factor` must be greater than 0.' ); } @@ -126,7 +131,7 @@ public function __construct( if (isset($config['jitter'])) { if ($config['jitter'] <= 0) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task configuration `jitter` must be greater than 0.' ); } @@ -136,7 +141,7 @@ public function __construct( if (isset($config['retries'])) { if ($config['retries'] < 0) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task configuration `retries` must not be negative.' ); } @@ -144,7 +149,7 @@ public function __construct( } if (!is_callable($action)) { - throw new Google_Task_Exception( + throw new GoogleTaskException( 'Task argument `$action` must be a valid callable.' ); } @@ -167,14 +172,14 @@ public function canAttempt() * Runs the task and (if applicable) automatically retries when errors occur. * * @return mixed - * @throws Google_Task_Retryable on failure when no retries are available. + * @throws Google\Task\Retryable on failure when no retries are available. */ public function run() { while ($this->attempt()) { try { return call_user_func_array($this->action, $this->arguments); - } catch (Google_Service_Exception $exception) { + } catch (GoogleServiceException $exception) { $allowedRetries = $this->allowedRetries( $exception->getCode(), $exception->getErrors() diff --git a/src/Google/Utils/UriTemplate.php b/src/Utils/UriTemplate.php similarity index 99% rename from src/Google/Utils/UriTemplate.php rename to src/Utils/UriTemplate.php index e59fe9f21..1f0c6b31d 100644 --- a/src/Google/Utils/UriTemplate.php +++ b/src/Utils/UriTemplate.php @@ -15,11 +15,13 @@ * limitations under the License. */ +namespace Google\Utils; + /** * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ -class Google_Utils_UriTemplate +class UriTemplate { const TYPE_MAP = "1"; const TYPE_LIST = "2"; diff --git a/src/aliases.php b/src/aliases.php new file mode 100644 index 000000000..6e9c01ee9 --- /dev/null +++ b/src/aliases.php @@ -0,0 +1,29 @@ + 'Google_Client', + 'Google\\Service' => 'Google_Service', + 'Google\\AccessToken\\Revoke' => 'Google_AccessToken_Revoke', + 'Google\\AccessToken\\Verify' => 'Google_AccessToken_Verify', + 'Google\\Model' => 'Google_Model', + 'Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate', + 'Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler', + 'Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler', + 'Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google_AuthHandler_Guzzle5AuthHandler', + 'Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory', + 'Google\\Http\\Batch' => 'Google_Http_Batch', + 'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload', + 'Google\\Http\\REST' => 'Google_Http_REST', + 'Google\\Task\\Composer' => 'Google_Task_Composer', + 'Google\\Task\\Retryable' => 'Google_Task_Retryable', + 'Google\\Task\\Exception' => 'Google_Task_Exception', + 'Google\\Task\\Runner' => 'Google_Task_Runner', + 'Google\\Collection' => 'Google_Collection', + 'Google\\Service\\Exception' => 'Google_Service_Exception', + 'Google\\Service\\Resource' => 'Google_Service_Resource', + 'Google\\Exception' => 'Google_Exception', +]; + +foreach ($classMap as $class => $alias) { + class_alias($class, $alias); +} diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index b1130b65f..72b9a10d2 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -100,28 +100,6 @@ public function testModel() $this->assertTrue($model->isAssociativeArray(array("a", "b" => 2))); } - /** - * @dataProvider serviceProvider - */ - public function testIncludes($class) - { - $this->assertTrue( - class_exists($class), - sprintf('Failed asserting class %s exists.', $class) - ); - } - - public function serviceProvider() - { - $classes = array(); - $path = dirname(dirname(__DIR__)) . '/src/Google/Service'; - foreach (glob($path . "/*.php") as $file) { - $classes[] = array('Google_Service_' . basename($file, '.php')); - } - - return $classes; - } - public function testConfigConstructor() { $clientId = 'test-client-id'; @@ -147,7 +125,7 @@ public function testInvalidConstructorPhp7Plus() $this->assertInstanceOf('TypeError', $e); $this->assertEquals( - 'constructor must be array or instance of Google_Client', + 'constructor must be array or instance of Google\Client', $e->getMessage() ); } @@ -166,7 +144,7 @@ public function testInvalidConstructorPhp5() $service = new TestService('foo'); $this->assertEquals( - 'constructor must be array or instance of Google_Client', + 'constructor must be array or instance of Google\Client', self::$errorMessage ); } diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index 212defdf7..425d9de2e 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -30,6 +30,6 @@ public function testBatch() $nodes = $crawler->filter('br'); $this->assertCount(20, $nodes); $this->assertContains('Walden', $crawler->text()); - $this->assertContains('George Bernard Shaw His Life and Works', $crawler->text()); + $this->assertContains('George Bernard Shaw', $crawler->text()); } } From 2ab61398fa6c7e319f3665fbf0c01df6f1f683ec Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 22 Oct 2020 10:18:24 -0700 Subject: [PATCH 1129/1274] docs: update readme with namespaced class names (#1968) --- README.md | 22 +++++++++---------- composer.json | 2 +- docs/api-keys.md | 2 +- docs/media.md | 4 ++-- docs/oauth-server.md | 26 +++++++++++----------- docs/oauth-web.md | 14 ++++++------ docs/start.md | 30 +++++++++++++------------- examples/batch.php | 6 +++--- examples/idtoken.php | 4 ++-- examples/large-file-download.php | 4 ++-- examples/large-file-upload.php | 6 +++--- examples/multi-api.php | 4 ++-- examples/service-account.php | 2 +- examples/simple-file-upload.php | 4 ++-- examples/simple-query.php | 2 +- src/AuthHandler/AuthHandlerFactory.php | 2 +- src/Service.php | 2 +- tests/Google/Task/ComposerTest.php | 4 ++-- 18 files changed, 70 insertions(+), 70 deletions(-) diff --git a/README.md b/README.md index 1274cdf2e..2d9df6d78 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ This library relies on `google/apiclient-services`. That library provides up-to- There are over 200 Google API services. The chances are good that you will not want them all. In order to avoid shipping these dependencies with your code, -you can run the `Google_Task_Composer::cleanup` task and specify the services +you can run the `Google\Task\Composer::cleanup` task and specify the services you want to keep in `composer.json`: ```json @@ -61,7 +61,7 @@ you want to keep in `composer.json`: "google/apiclient": "^2.7" }, "scripts": { - "post-update-cmd": "Google_Task_Composer::cleanup" + "post-update-cmd": "Google\\Task\\Composer::cleanup" }, "extra": { "google/apiclient-services": [ @@ -131,7 +131,7 @@ And then browsing to the host and port you specified // include your composer dependencies require_once 'vendor/autoload.php'; -$client = new Google_Client(); +$client = new Google\Client(); $client->setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); @@ -153,10 +153,10 @@ foreach ($results->getItems() as $item) { 1. Follow the instructions to [Create Web Application Credentials](docs/oauth-web.md#create-authorization-credentials) 1. Download the JSON credentials -1. Set the path to these credentials using `Google_Client::setAuthConfig`: +1. Set the path to these credentials using `Google\Client::setAuthConfig`: ```php - $client = new Google_Client(); + $client = new Google\Client(); $client->setAuthConfig('/path/to/client_credentials.json'); ``` @@ -203,7 +203,7 @@ calls return unexpected 401 or 403 errors. 1. Tell the Google client to use your service account credentials to authenticate: ```php - $client = new Google_Client(); + $client = new Google\Client(); $client->useApplicationDefaultCredentials(); ``` @@ -311,7 +311,7 @@ The `authorize` method returns an authorized [Guzzle Client](http://docs.guzzlep ```php // create the Google client -$client = new Google_Client(); +$client = new Google\Client(); /** * Set your method for authentication. Depending on the API, This could be @@ -355,7 +355,7 @@ composer require cache/filesystem-adapter When using [Refresh Tokens](https://developers.google.com/identity/protocols/OAuth2InstalledApp#offline) or [Service Account Credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview), it may be useful to perform some action when a new access token is granted. To do this, pass a callable to the `setTokenCallback` method on the client: ```php -$logger = new Monolog\Logger; +$logger = new Monolog\Logger(); $tokenCallback = function ($cacheKey, $accessToken) use ($logger) { $logger->debug(sprintf('new access token received at cache key %s', $cacheKey)); }; @@ -373,7 +373,7 @@ $httpClient = new GuzzleHttp\Client([ 'verify' => false, // otherwise HTTPS requests will fail. ]); -$client = new Google_Client(); +$client = new Google\Client(); $client->setHttpClient($httpClient); ``` @@ -396,7 +396,7 @@ $httpClient = new Client([ ] ]); -$client = new Google_Client(); +$client = new Google\Client(); $client->setHttpClient($httpClient); ``` @@ -438,7 +438,7 @@ $opt_params = array( ### How do I set a field to null? ### -The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google_Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. +The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google\Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. ## Code Quality ## diff --git a/composer.json b/composer.json index 43a8ac01f..14654d5b5 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "composer/composer": "^1.10" }, "suggest": { - "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" + "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" }, "autoload": { "psr-4": { diff --git a/docs/api-keys.md b/docs/api-keys.md index 7828651f7..2e7d771e5 100644 --- a/docs/api-keys.md +++ b/docs/api-keys.md @@ -6,7 +6,7 @@ When calling APIs that do not access private user data, you can use simple API k ## Using API Keys -To use API keys, call the `setDeveloperKey()` method of the `Google_Client` object before making any API calls. For example: +To use API keys, call the `setDeveloperKey()` method of the `Google\Client` object before making any API calls. For example: ```php $client->setDeveloperKey($api_key); diff --git a/docs/media.md b/docs/media.md index 783e632bc..66148c387 100644 --- a/docs/media.md +++ b/docs/media.md @@ -26,7 +26,7 @@ $result = $service->files->insert($file, array( 'data' => file_get_contents("path/to/file"), 'mimeType' => 'application/octet-stream', 'uploadType' => 'multipart' -)); +)); ``` ## Resumable File Upload @@ -43,7 +43,7 @@ $client->setDefer(true); $request = $service->files->insert($file); // Create a media file upload to represent our upload process. -$media = new Google_Http_MediaFileUpload( +$media = new Google\Http\MediaFileUpload( $client, $request, 'text/plain', diff --git a/docs/oauth-server.md b/docs/oauth-server.md index 906fd082f..ad57b0c78 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -68,7 +68,7 @@ putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); Call the `useApplicationDefaultCredentials` to use your service account credentials to authenticate: ```php -$client = new Google_Client(); +$client = new Google\Client(); $client->useApplicationDefaultCredentials(); ``` @@ -78,20 +78,20 @@ If you have delegated domain-wide access to the service account and you want to $client->setSubject($user_to_impersonate); ``` -Use the authorized `Google_Client` object to call Google APIs in your application. +Use the authorized `Google\Client` object to call Google APIs in your application. ## Calling Google APIs -Use the authorized `Google_Client` object to call Google APIs by completing the following steps: +Use the authorized `Google\Client` object to call Google APIs by completing the following steps: + +1. Build a service object for the API that you want to call, providing the authorized `Google\Client` object. For example, to call the Cloud SQL Administration API: -1. Build a service object for the API that you want to call, providing the authorized `Google_Client` object. For example, to call the Cloud SQL Administration API: - ```php $sqladmin = new Google_Service_SQLAdmin($client); ``` - + 2. Make requests to the API service using the [interface provided by the service object](https://github.com/googleapis/google-api-php-client/blob/master/docs/start.md#build-the-service-object). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: - + ```php $response = $sqladmin->instances->listInstances('examinable-example-123')->getItems(); ``` @@ -103,21 +103,21 @@ The following example prints a JSON-formatted list of Cloud SQL instances in a p To run this example: 1. Create a new directory and change to it. For example: - + ```sh mkdir ~/php-oauth2-example cd ~/php-oauth2-example ``` - + 2. Install the [Google API Client Library](https://github.com/google/google-api-php-client) for PHP using [Composer](https://getcomposer.org): - + ```sh composer require google/apiclient:^2.0 ``` - + 3. Create the file sqlinstances.php with the content below. 4. Run the example from the command line: - + ``` php ~/php-oauth2-example/sqlinstances.php ``` @@ -130,7 +130,7 @@ To run this example: require_once __DIR__.'/vendor/autoload.php'; putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); -$client = new Google_Client(); +$client = new Google\Client(); $client->useApplicationDefaultCredentials(); $sqladmin = new Google_Service_SQLAdmin($client); diff --git a/docs/oauth-web.md b/docs/oauth-web.md index 84222e9ab..3fef5edef 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -73,14 +73,14 @@ The list below quickly summarizes these steps: Your first step is to create the authorization request. That request sets parameters that identify your application and define the permissions that the user will be asked to grant to your application. -The code snippet below creates a `Google_Client()` object, which defines the parameters in the authorization request. +The code snippet below creates a `Google\Client()` object, which defines the parameters in the authorization request. That object uses information from your **client_secret.json** file to identify your application. The object also identifies the scopes that your application is requesting permission to access and the URL to your application's auth endpoint, which will handle the response from Google's OAuth 2.0 server. Finally, the code sets the optional access_type and include_granted_scopes parameters. For example, this code requests read-only, offline access to a user's Google Drive: ```php -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig('client_secret.json'); $client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); $client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); @@ -97,7 +97,7 @@ The request specifies the following information: **Required**. The client ID for your application. You can find this value in the [API Console](https://console.developers.google.com/). In PHP, call the `setAuthConfig` function to load authorization credentials from a **client_secret.json** file. ```php -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig('client_secret.json'); ``` @@ -275,13 +275,13 @@ $access_token = $client->getAccessToken(); Use the access token to call Google APIs by completing the following steps: -1. If you need to apply an access token to a new `Google_Client` object—for example, if you stored the access token in a user session—use the `setAccessToken` method: +1. If you need to apply an access token to a new `Google\Client` object—for example, if you stored the access token in a user session—use the `setAccessToken` method: ```php $client->setAccessToken($access_token); ``` -2. Build a service object for the API that you want to call. You build a a service object by providing an authorized `Google_Client` object to the constructor for the API you want to call. For example, to call the Drive API: +2. Build a service object for the API that you want to call. You build a a service object by providing an authorized `Google\Client` object to the constructor for the API you want to call. For example, to call the Drive API: ```php $drive = new Google_Service_Drive($client); @@ -329,7 +329,7 @@ require_once __DIR__.'/vendor/autoload.php'; session_start(); -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig('client_secrets.json'); $client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); @@ -352,7 +352,7 @@ require_once __DIR__.'/vendor/autoload.php'; session_start(); -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfigFile('client_secrets.json'); $client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); $client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); diff --git a/docs/start.md b/docs/start.md index a315d665e..d22b49d0c 100644 --- a/docs/start.md +++ b/docs/start.md @@ -21,9 +21,9 @@ These API calls do not access any private user data. Your application must authe #### Important concepts * **API key**: To authenticate your application, use an [API key](https://cloud.google.com/docs/authentication/api-keys) for your Google Cloud Console project. Every simple access call your application makes must include this key. - + > **Warning**: Keep your API key private. If someone obtains your key, they could use it to consume your quota or incur charges against your Google Cloud project. - + ### 2. Authorized API access (OAuth 2.0) @@ -33,17 +33,17 @@ These API calls access private user data. Before you can call them, the user tha * **Scope**: Each API defines one or more scopes that declare a set of operations permitted. For example, an API might have read-only and read-write scopes. When your application requests access to user data, the request must include one or more scopes. The user needs to approve the scope of access your application is requesting. * **Refresh and access tokens**: When a user grants your application access, the OAuth 2.0 authorization server provides your application with refresh and access tokens. These tokens are only valid for the scope requested. Your application uses access tokens to authorize API calls. Access tokens expire, but refresh tokens do not. Your application can use a refresh token to acquire a new access token. - + > **Warning**: Keep refresh and access tokens private. If someone obtains your tokens, they could use them to access private user data. - + * **Client ID and client secret**: These strings uniquely identify your application and are used to acquire tokens. They are created for your Google Cloud project on the [API Access pane](https://code.google.com/apis/console#:access) of the Google Cloud. There are three types of client IDs, so be sure to get the correct type for your application: - + * Web application client IDs * Installed application client IDs * [Service Account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) client IDs - + > **Warning**: Keep your client secret private. If someone obtains your client secret, they could use it to consume your quota, incur charges against your Google Cloud project, and request access to user data. - + ## Building and calling a service @@ -54,16 +54,16 @@ This section described how to build an API-specific service object, make calls t The client object is the primary container for classes and configuration in the library. ```php -$client = new Google_Client(); +$client = new Google\Client(); $client->setApplicationName("My Application"); $client->setDeveloperKey("MY_SIMPLE_API_KEY"); -``` +``` ### Build the service object -Services are called through queries to service specific objects. These are created by constructing the service object, and passing an instance of `Google_Client` to it. `Google_Client` contains the IO, authentication and other classes required by the service to function, and the service informs the client which scopes it uses to provide a default when authenticating a user. +Services are called through queries to service specific objects. These are created by constructing the service object, and passing an instance of `Google\Client` to it. `Google\Client` contains the IO, authentication and other classes required by the service to function, and the service informs the client which scopes it uses to provide a default when authenticating a user. -```php +```php $service = new Google_Service_Books($client); ``` @@ -71,20 +71,20 @@ $service = new Google_Service_Books($client); Each API provides resources and methods, usually in a chain. These can be accessed from the service object in the form `$service->resource->method(args)`. Most method require some arguments, then accept a final parameter of an array containing optional parameters. For example, with the Google Books API, we can make a call to list volumes matching a certain string, and add an optional _filter_ parameter. -```php +```php $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); -``` +``` ### Handling the result There are two main types of response - items and collections of items. Each can be accessed either as an object or as an array. Collections implement the `Iterator` interface so can be used in foreach and other constructs. -```php +```php foreach ($results as $item) { echo $item['volumeInfo']['title'], "
      \n"; } -``` +``` ## Google App Engine support diff --git a/examples/batch.php b/examples/batch.php index ea663d8c3..2285e5dd3 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -32,7 +32,7 @@ setDeveloperKey, the request may still succeed using the anonymous quota. ************************************************/ -$client = new Google_Client(); +$client = new Google\Client(); $client->setApplicationName("Client_Library_Examples"); // Warn if the API key isn't set. @@ -60,8 +60,8 @@ ************************************************/ // NOTE: Some services use `$service->createBatch();` instead of -// `new Google_Http_Batch($client);` -$batch = new Google_Http_Batch($client); +// `new Google\Http\Batch($client);` +$batch = new Google\Http\Batch($client); $optParams = array('filter' => 'free-ebooks'); $optParams['q'] = 'Henry David Thoreau'; diff --git a/examples/idtoken.php b/examples/idtoken.php index 74bf7ae64..988bd6e9c 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -35,7 +35,7 @@ ************************************************/ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->setScopes('email'); @@ -52,7 +52,7 @@ /************************************************ * If we have a code back from the OAuth 2.0 flow, * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() + * Google\Client::fetchAccessTokenWithAuthCode() * function. We store the resultant access token * bundle in the session, and redirect to ourself. ************************************************/ diff --git a/examples/large-file-download.php b/examples/large-file-download.php index 51cf8b0bc..1ab30e735 100644 --- a/examples/large-file-download.php +++ b/examples/large-file-download.php @@ -34,7 +34,7 @@ ************************************************/ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); @@ -43,7 +43,7 @@ /************************************************ * If we have a code back from the OAuth 2.0 flow, * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() + * Google\Client::fetchAccessTokenWithAuthCode() * function. We store the resultant access token * bundle in the session, and redirect to ourself. ************************************************/ diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index 0d966f020..ba4a96589 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -34,7 +34,7 @@ ************************************************/ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); @@ -48,7 +48,7 @@ /************************************************ * If we have a code back from the OAuth 2.0 flow, * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() + * Google\Client::fetchAccessTokenWithAuthCode() * function. We store the resultant access token * bundle in the session, and redirect to ourself. ************************************************/ @@ -98,7 +98,7 @@ $request = $service->files->create($file); // Create a media file upload to represent our upload process. - $media = new Google_Http_MediaFileUpload( + $media = new Google\Http\MediaFileUpload( $client, $request, 'text/plain', diff --git a/examples/multi-api.php b/examples/multi-api.php index 97c33135b..573e6bc8f 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -35,7 +35,7 @@ ************************************************/ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); @@ -49,7 +49,7 @@ /************************************************ * If we have a code back from the OAuth 2.0 flow, * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() + * Google\Client::fetchAccessTokenWithAuthCode() * function. We store the resultant access token * bundle in the session, and redirect to ourself. ************************************************/ diff --git a/examples/service-account.php b/examples/service-account.php index 2d723a1f9..c86300116 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -25,7 +25,7 @@ account. ************************************************/ -$client = new Google_Client(); +$client = new Google\Client(); /************************************************ ATTENTION: Fill in these values, or make sure you diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index 21cb50f28..6e666a9cb 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -34,7 +34,7 @@ ************************************************/ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; -$client = new Google_Client(); +$client = new Google\Client(); $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); @@ -48,7 +48,7 @@ /************************************************ * If we have a code back from the OAuth 2.0 flow, * we need to exchange that with the - * Google_Client::fetchAccessTokenWithAuthCode() + * Google\Client::fetchAccessTokenWithAuthCode() * function. We store the resultant access token * bundle in the session, and redirect to ourself. ************************************************/ diff --git a/examples/simple-query.php b/examples/simple-query.php index 5358b5045..bf49581b1 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -26,7 +26,7 @@ setDeveloperKey, the request may still succeed using the anonymous quota. ************************************************/ -$client = new Google_Client(); +$client = new Google\Client(); $client->setApplicationName("Client_Library_Examples"); // Warn if the API key isn't set. diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index 1ae9d8a9e..dced77a17 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -26,7 +26,7 @@ class AuthHandlerFactory /** * Builds out a default http handler for the installed version of guzzle. * - * @return Google_AuthHandler_Guzzle5AuthHandler|Google_AuthHandler_Guzzle6AuthHandler + * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler * @throws Exception */ public static function build($cache = null, array $cacheConfig = []) diff --git a/src/Service.php b/src/Service.php index d967f4cc3..0257abd43 100644 --- a/src/Service.php +++ b/src/Service.php @@ -57,7 +57,7 @@ public function getClient() /** * Create a new HTTP Batch handler for this service * - * @return Google_Http_Batch + * @return Google\Http\Batch */ public function createBatch() { diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index 2c37f3194..bb1cfbde9 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -152,7 +152,7 @@ public function testE2E() 'google/apiclient' => 'dev-master' ], 'scripts' => [ - 'post-update-cmd' => 'Google_Task_Composer::cleanup' + 'post-update-cmd' => 'Google\Task\Composer::cleanup' ], 'extra' => [ 'google/apiclient-services' => [ @@ -181,7 +181,7 @@ public function testE2E() 'google/apiclient' => 'dev-master' ], 'scripts' => [ - 'post-update-cmd' => 'Google_Task_Composer::cleanup' + 'post-update-cmd' => 'Google\Task\Composer::cleanup' ], 'extra' => [ 'google/apiclient-services' => [ From b39ee320efbfb4096b4c4771a9b43d9d14d11746 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Oct 2020 10:46:44 -0700 Subject: [PATCH 1130/1274] feat: add caching for GCE and access tokens by default (#1935) --- src/AuthHandler/Guzzle5AuthHandler.php | 9 ++++ src/AuthHandler/Guzzle6AuthHandler.php | 9 ++++ src/Client.php | 53 +++++++++++++++------ tests/Google/ClientTest.php | 65 ++++++++++++++++++++++++++ 4 files changed, 122 insertions(+), 14 deletions(-) diff --git a/src/AuthHandler/Guzzle5AuthHandler.php b/src/AuthHandler/Guzzle5AuthHandler.php index 92d226821..bf7440df1 100644 --- a/src/AuthHandler/Guzzle5AuthHandler.php +++ b/src/AuthHandler/Guzzle5AuthHandler.php @@ -39,6 +39,15 @@ public function attachCredentials( $this->cache ); } + + return $this->attachCredentialsCache($http, $credentials, $tokenCallback); + } + + public function attachCredentialsCache( + ClientInterface $http, + FetchAuthTokenCache $credentials, + callable $tokenCallback = null + ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index c1f2c3b51..35de17ce7 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -39,6 +39,15 @@ public function attachCredentials( $this->cache ); } + + return $this->attachCredentialsCache($http, $credentials, $tokenCallback); + } + + public function attachCredentialsCache( + ClientInterface $http, + FetchAuthTokenCache $credentials, + callable $tokenCallback = null + ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. diff --git a/src/Client.php b/src/Client.php index 550fb311f..9871e5ff2 100644 --- a/src/Client.php +++ b/src/Client.php @@ -22,6 +22,7 @@ use Google\Auth\ApplicationDefaultCredentials; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Auth\CredentialsLoader; +use Google\Auth\FetchAuthTokenCache; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; use Google\Auth\Credentials\ServiceAccountCredentials; @@ -152,6 +153,9 @@ public function __construct(array $config = array()) 'retry' => array(), 'retry_map' => null, + // Cache class implementing Psr\Cache\CacheItemPoolInterface. + // Defaults to Google\Auth\Cache\MemoryCacheItemPool. + 'cache' => null, // cache config for downstream auth caching 'cache_config' => [], @@ -192,6 +196,11 @@ public function __construct(array $config = array()) ); }; } + + if (!is_null($this->config['cache'])) { + $this->setCache($this->config['cache']); + unset($this->config['cache']); + } } /** @@ -399,9 +408,8 @@ public function authorize(ClientInterface $http = null) $credentials = null; $token = null; $scopes = null; - if (null === $http) { - $http = $this->getHttpClient(); - } + $http = $http ?: $this->getHttpClient(); + $authHandler = $this->getAuthHandler(); // These conditionals represent the decision tree for authentication // 1. Check for Application Default Credentials @@ -410,6 +418,11 @@ public function authorize(ClientInterface $http = null) // 3b. If access token exists but is expired, try to refresh it if ($this->isUsingApplicationDefaultCredentials()) { $credentials = $this->createApplicationDefaultCredentials(); + $http = $authHandler->attachCredentialsCache( + $http, + $credentials, + $this->config['token_callback'] + ); } elseif ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token @@ -418,16 +431,14 @@ public function authorize(ClientInterface $http = null) $scopes, $token['refresh_token'] ); + $http = $authHandler->attachCredentials( + $http, + $credentials, + $this->config['token_callback'] + ); + } else { + $http = $authHandler->attachToken($http, $token, (array) $scopes); } - } - - $authHandler = $this->getAuthHandler(); - - if ($credentials) { - $callback = $this->config['token_callback']; - $http = $authHandler->attachCredentials($http, $credentials, $callback); - } elseif ($token) { - $http = $authHandler->attachToken($http, $token, (array) $scopes); } elseif ($key = $this->config['developer_key']) { $http = $authHandler->attachKey($http, $key); } @@ -1179,6 +1190,9 @@ protected function createDefaultHttpClient() return new GuzzleClient($options); } + /** + * @return FetchAuthTokenCache + */ private function createApplicationDefaultCredentials() { $scopes = $this->prepareScopes(); @@ -1199,11 +1213,14 @@ private function createApplicationDefaultCredentials() $serviceAccountCredentials ); } else { + // When $sub is provided, we cannot pass cache classes to ::getCredentials + // because FetchAuthTokenCache::setSub does not exist. + // The result is when $sub is provided, calls to ::onGce are not cached. $credentials = ApplicationDefaultCredentials::getCredentials( $scopes, null, - null, - null, + $sub ? null : $this->config['cache_config'], + $sub ? null : $this->getCache(), $this->config['quota_project'] ); } @@ -1218,6 +1235,14 @@ private function createApplicationDefaultCredentials() $credentials->setSub($sub); } + // If we are not using FetchAuthTokenCache yet, create it now + if (!$credentials instanceof FetchAuthTokenCache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->config['cache_config'], + $this->getCache() + ); + } return $credentials; } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index fe3b69c51..b53a0a397 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -763,6 +763,71 @@ public function testDefaultTokenCallback() $this->assertFalse($client->isAccessTokenExpired()); } + /** @runInSeparateProcess */ + public function testOnGceCacheAndCacheOptions() + { + if (!class_exists('Google\Auth\GCECache')) { + $this->markTestSkipped('Requires google/auth >= 1.12'); + } + + putenv('HOME='); + putenv('GOOGLE_APPLICATION_CREDENTIALS='); + $prefix = 'test_prefix_'; + $cacheConfig = ['gce_prefix' => $prefix]; + + $mockCacheItem = $this->prophesize('Psr\Cache\CacheItemInterface'); + $mockCacheItem->isHit() + ->willReturn(true); + $mockCacheItem->get() + ->shouldBeCalledTimes(1) + ->willReturn(true); + + $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $mockCache->getItem($prefix . Google\Auth\GCECache::GCE_CACHE_KEY) + ->shouldBeCalledTimes(1) + ->willReturn($mockCacheItem->reveal()); + + $client = new Google_Client(['cache_config' => $cacheConfig]); + $client->setCache($mockCache->reveal()); + $client->useApplicationDefaultCredentials(); + $client->authorize(); + } + + /** @runInSeparateProcess */ + public function testFetchAccessTokenWithAssertionCache() + { + $this->checkServiceAccountCredentials(); + $cachedValue = ['access_token' => '2/abcdef1234567890']; + $mockCacheItem = $this->prophesize('Psr\Cache\CacheItemInterface'); + $mockCacheItem->isHit() + ->shouldBeCalledTimes(1) + ->willReturn(true); + $mockCacheItem->get() + ->shouldBeCalledTimes(1) + ->willReturn($cachedValue); + + $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $mockCache->getItem(Argument::any()) + ->shouldBeCalledTimes(1) + ->willReturn($mockCacheItem->reveal()); + + $client = new Google_Client(); + $client->setCache($mockCache->reveal()); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + $this->assertArrayHasKey('access_token', $token); + $this->assertEquals($cachedValue['access_token'], $token['access_token']); + } + + public function testCacheClientOption() + { + $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $client = new Google_Client([ + 'cache' => $mockCache->reveal() + ]); + $this->assertEquals($mockCache->reveal(), $client->getCache()); + } + public function testExecuteWithFormat() { $this->onlyGuzzle6Or7(); From 2cad956f29f6587302d2dbed555d808253c8ced0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Oct 2020 11:41:58 -0700 Subject: [PATCH 1131/1274] fix: preserve BC for using Google_Task_Cleanup in composer.json (#1973) --- composer.json | 3 +++ src/aliases.php | 9 ++++++++- tests/Google/Task/ComposerTest.php | 25 +++++++++++++++---------- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 14654d5b5..da143edb2 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,9 @@ }, "files": [ "src/aliases.php" + ], + "classmap": [ + "src/aliases.php" ] }, "extra": { diff --git a/src/aliases.php b/src/aliases.php index 6e9c01ee9..a3a49aa53 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -14,7 +14,6 @@ 'Google\\Http\\Batch' => 'Google_Http_Batch', 'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload', 'Google\\Http\\REST' => 'Google_Http_REST', - 'Google\\Task\\Composer' => 'Google_Task_Composer', 'Google\\Task\\Retryable' => 'Google_Task_Retryable', 'Google\\Task\\Exception' => 'Google_Task_Exception', 'Google\\Task\\Runner' => 'Google_Task_Runner', @@ -27,3 +26,11 @@ foreach ($classMap as $class => $alias) { class_alias($class, $alias); } + +/** + * This class needs to be defined explicitly as scripts must be recognized by + * the autoloader. + */ +class Google_Task_Composer extends \Google\Task\Composer +{ +} diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index bb1cfbde9..d080aed32 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -147,13 +147,25 @@ private function createMockEvent( public function testE2E() { - $composerJson = json_encode([ + $composer = [ + 'repositories' => [ + [ + 'type' => 'path', + 'url' => __DIR__ . '/../../..', + 'options' => [ + 'symlink' => false + ] + ] + ], 'require' => [ 'google/apiclient' => 'dev-master' ], 'scripts' => [ 'post-update-cmd' => 'Google\Task\Composer::cleanup' ], + ]; + + $composerJson = json_encode($composer + [ 'extra' => [ 'google/apiclient-services' => [ 'Drive', @@ -163,12 +175,11 @@ public function testE2E() ]); $tmpDir = sys_get_temp_dir() . '/test-' . rand(); - $serviceDir = $tmpDir . '/vendor/google/apiclient-services/src/Google/Service'; - mkdir($tmpDir); file_put_contents($tmpDir . '/composer.json', $composerJson); passthru('composer install -d ' . $tmpDir); + $serviceDir = $tmpDir . '/vendor/google/apiclient-services/src/Google/Service'; $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); $this->assertFileExists($serviceDir . '/YouTube.php'); @@ -176,13 +187,7 @@ public function testE2E() $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); - $composerJson = json_encode([ - 'require' => [ - 'google/apiclient' => 'dev-master' - ], - 'scripts' => [ - 'post-update-cmd' => 'Google\Task\Composer::cleanup' - ], + $composerJson = json_encode($composer + [ 'extra' => [ 'google/apiclient-services' => [ 'Drive', From b2bf3609a746e58a99b70638005757eb78a47e24 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Oct 2020 13:00:58 -0700 Subject: [PATCH 1132/1274] chore: add composer task test case (#1974) --- tests/Google/Task/ComposerTest.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index d080aed32..985120d4b 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -207,5 +207,26 @@ public function testE2E() $this->assertFileExists($serviceDir . '/YouTube'); $this->assertFileExists($serviceDir . '/YouTubeReporting.php'); $this->assertFileExists($serviceDir . '/YouTubeReporting'); + + // Test BC Task name + $composer['scripts']['post-update-cmd'] = 'Google_Task_Composer::cleanup'; + $composerJson = json_encode($composer + [ + 'extra' => [ + 'google/apiclient-services' => [ + 'Drive', + ] + ] + ]); + + file_put_contents($tmpDir . '/composer.json', $composerJson); + passthru('rm -r ' . $tmpDir . '/vendor/google/apiclient-services'); + passthru('composer update -d ' . $tmpDir); + + $this->assertFileExists($serviceDir . '/Drive.php'); + $this->assertFileExists($serviceDir . '/Drive'); + $this->assertFileNotExists($serviceDir . '/YouTube.php'); + $this->assertFileNotExists($serviceDir . '/YouTube'); + $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); + $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); } } From cf9a070f9da78cd207a69b2a94832d381c8c4163 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Oct 2020 13:29:29 -0700 Subject: [PATCH 1133/1274] chore: prepare v2.8.0 (#1972) --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 9871e5ff2..9353c921e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.7.2"; + const LIBVER = "2.8.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From d4eb15d8a2eee321fe8963db6f3c98e14cb19c32 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2020 13:12:54 -0700 Subject: [PATCH 1134/1274] chore: GH actions fixes for composer 2 (#1979) --- .github/workflows/tests.yml | 6 +++--- composer.json | 2 +- tests/Google/Task/ComposerTest.php | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cbd2c316b..141fcd774 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,7 +56,7 @@ jobs: with: php-version: 5.4 - name: Remove cache library - run: composer remove --dev cache/filesystem-adapter + run: composer remove --dev --no-update cache/filesystem-adapter - name: Install Dependencies uses: nick-invision/retry@v1 with: @@ -76,7 +76,7 @@ jobs: with: php-version: 5.4 - name: Remove cache library - run: composer remove --dev cache/filesystem-adapter + run: composer remove --dev --no-update cache/filesystem-adapter - name: Install Dependencies uses: nick-invision/retry@v1 with: @@ -94,7 +94,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "7.4" + php-version: "7.3" - name: Install Dependencies uses: nick-invision/retry@v1 with: diff --git a/composer.json b/composer.json index da143edb2..3f058bbc6 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^0.3.2", "phpcompatibility/php-compatibility": "^9.2", - "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "composer/composer": "^1.10" }, "suggest": { diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index 985120d4b..faf9f32dc 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -158,11 +158,12 @@ public function testE2E() ] ], 'require' => [ - 'google/apiclient' => 'dev-master' + 'google/apiclient' => '*' ], 'scripts' => [ 'post-update-cmd' => 'Google\Task\Composer::cleanup' ], + 'minimum-stability' => 'dev', ]; $composerJson = json_encode($composer + [ From 9ee25612858b9d8b1524469a5c4eeb37bc0ee805 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2020 13:17:48 -0700 Subject: [PATCH 1135/1274] fix: preload error with aliases.php (#1978) --- src/aliases.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aliases.php b/src/aliases.php index a3a49aa53..c5f34755c 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -1,5 +1,11 @@ 'Google_Client', 'Google\\Service' => 'Google_Service', From 80fa4c919e407d4851eb5f65097b2b650a64b4c3 Mon Sep 17 00:00:00 2001 From: Dmitry Khaperets Date: Tue, 27 Oct 2020 22:58:34 +0200 Subject: [PATCH 1136/1274] chore: updated phpdoc classnames (#1977) --- src/Client.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Client.php b/src/Client.php index 9353c921e..efc1d1240 100644 --- a/src/Client.php +++ b/src/Client.php @@ -57,17 +57,17 @@ class Client const API_BASE_PATH = 'https://www.googleapis.com'; /** - * @var Google\Auth\OAuth2 $auth + * @var OAuth2 $auth */ private $auth; /** - * @var GuzzleHttp\ClientInterface $http + * @var ClientInterface $http */ private $http; /** - * @var Psr\Cache\CacheItemPoolInterface $cache + * @var CacheItemPoolInterface $cache */ private $cache; @@ -82,7 +82,7 @@ class Client private $config; /** - * @var Psr\Log\LoggerInterface $logger + * @var LoggerInterface $logger */ private $logger; @@ -400,8 +400,8 @@ public function createAuthUrl($scope = null) * Adds auth listeners to the HTTP client based on the credentials * set in the Google API Client object * - * @param GuzzleHttp\ClientInterface $http the http client object. - * @return GuzzleHttp\ClientInterface the http client object + * @param ClientInterface $http the http client object. + * @return ClientInterface the http client object */ public function authorize(ClientInterface $http = null) { @@ -853,9 +853,9 @@ public function prepareScopes() /** * Helper method to execute deferred HTTP requests. * - * @param $request Psr\Http\Message\RequestInterface|Google\Http\Batch + * @param $request RequestInterface|\Google\Http\Batch * @param string $expectedClass - * @throws Google\Exception + * @throws \Google\Exception * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. */ public function execute(RequestInterface $request, $expectedClass = null) @@ -1025,7 +1025,7 @@ public function shouldDefer() } /** - * @return Google\Auth\OAuth2 implementation + * @return OAuth2 implementation */ public function getOAuth2Service() { @@ -1059,7 +1059,7 @@ protected function createOAuth2Service() /** * Set the Cache object - * @param Psr\Cache\CacheItemPoolInterface $cache + * @param CacheItemPoolInterface $cache */ public function setCache(CacheItemPoolInterface $cache) { @@ -1067,7 +1067,7 @@ public function setCache(CacheItemPoolInterface $cache) } /** - * @return Psr\Cache\CacheItemPoolInterface Cache implementation + * @return CacheItemPoolInterface Cache implementation */ public function getCache() { @@ -1088,7 +1088,7 @@ public function setCacheConfig(array $cacheConfig) /** * Set the Logger object - * @param Psr\Log\LoggerInterface $logger + * @param LoggerInterface $logger */ public function setLogger(LoggerInterface $logger) { @@ -1096,7 +1096,7 @@ public function setLogger(LoggerInterface $logger) } /** - * @return Psr\Log\LoggerInterface implementation + * @return LoggerInterface implementation */ public function getLogger() { @@ -1127,7 +1127,7 @@ protected function createDefaultCache() /** * Set the Http Client object - * @param GuzzleHttp\ClientInterface $http + * @param ClientInterface $http */ public function setHttpClient(ClientInterface $http) { @@ -1135,7 +1135,7 @@ public function setHttpClient(ClientInterface $http) } /** - * @return GuzzleHttp\ClientInterface implementation + * @return ClientInterface implementation */ public function getHttpClient() { From fa3641c1a6e3e8832d70e70e93b42327c4efab78 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2020 14:53:18 -0700 Subject: [PATCH 1137/1274] chore: fix docblock namespaced references (#1980) --- src/AccessToken/Revoke.php | 2 +- src/AccessToken/Verify.php | 6 +++--- src/Client.php | 10 +++++----- src/Http/Batch.php | 2 +- src/Http/MediaFileUpload.php | 8 ++++---- src/Http/REST.php | 18 +++++++++--------- src/Model.php | 2 +- src/Service.php | 4 ++-- src/Service/Exception.php | 2 +- src/Service/Resource.php | 6 +++--- src/Task/Composer.php | 2 +- src/Task/Runner.php | 4 ++-- 12 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/AccessToken/Revoke.php b/src/AccessToken/Revoke.php index d2d272454..45b60548e 100644 --- a/src/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -31,7 +31,7 @@ class Revoke { /** - * @var GuzzleHttp\ClientInterface The http client + * @var ClientInterface The http client */ private $http; diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index c9ddf8541..96fabdefd 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -44,12 +44,12 @@ class Verify const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; /** - * @var GuzzleHttp\ClientInterface The http client + * @var ClientInterface The http client */ private $http; /** - * @var Psr\Cache\CacheItemPoolInterface cache class + * @var CacheItemPoolInterface cache class */ private $cache; @@ -149,7 +149,7 @@ private function getCache() * Retrieve and cache a certificates file. * * @param $url string location - * @throws GoogleException + * @throws \Google\Exception * @return array certificates */ private function retrieveCertsFromLocation($url) diff --git a/src/Client.php b/src/Client.php index efc1d1240..00fda3fa1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -937,7 +937,7 @@ public function getConfig($name, $default = null) * alias for setAuthConfig * * @param string $file the configuration file - * @throws Google\Exception + * @throws \Google\Exception * @deprecated */ public function setAuthConfigFile($file) @@ -951,7 +951,7 @@ public function setAuthConfigFile($file) * the "Download JSON" button on in the Google Developer * Console. * @param string|array $config the configuration json - * @throws Google\Exception + * @throws \Google\Exception */ public function setAuthConfig($config) { @@ -1067,7 +1067,7 @@ public function setCache(CacheItemPoolInterface $cache) } /** - * @return CacheItemPoolInterface Cache implementation + * @return CacheItemPoolInterface */ public function getCache() { @@ -1096,7 +1096,7 @@ public function setLogger(LoggerInterface $logger) } /** - * @return LoggerInterface implementation + * @return LoggerInterface */ public function getLogger() { @@ -1135,7 +1135,7 @@ public function setHttpClient(ClientInterface $http) } /** - * @return ClientInterface implementation + * @return ClientInterface */ public function getHttpClient() { diff --git a/src/Http/Batch.php b/src/Http/Batch.php index 391ea457a..a4607586e 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -93,7 +93,7 @@ public function execute() EOF; - /** @var Google\Http\Request $req */ + /** @var RequestInterface $req */ foreach ($this->requests as $key => $request) { $firstLine = sprintf( '%s %s HTTP/%s', diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index c98169d18..82a051abf 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -56,10 +56,10 @@ class MediaFileUpload /** @var int $progress */ private $progress; - /** @var Google\Client */ + /** @var Client */ private $client; - /** @var Psr\Http\Message\RequestInterface */ + /** @var RequestInterface */ private $request; /** @var string */ @@ -160,7 +160,7 @@ public function getHttpResultCode() * Sends a PUT-Request to google drive and parses the response, * setting the appropiate variables from the response() * - * @param Google\Http\Request $httpRequest the Reuqest which will be send + * @param RequestInterface $request the Request which will be send * * @return false|mixed false when the upload is unfinished or the decoded http response * @@ -212,7 +212,7 @@ public function resume($resumeUri) } /** - * @return Psr\Http\Message\RequestInterface $request + * @return RequestInterface * @visible for testing */ private function process() diff --git a/src/Http/REST.php b/src/Http/REST.php index 014932809..691982271 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -36,13 +36,13 @@ class REST * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * - * @param Google\Client $client - * @param Psr\Http\Message\RequestInterface $req + * @param Client $client + * @param RequestInterface $req * @param string $expectedClass * @param array $config * @param array $retryMap * @return array decoded result - * @throws Google\Service\Exception on server side error (ie: not authenticated, + * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function execute( @@ -69,11 +69,11 @@ public static function execute( /** * Executes a Psr\Http\Message\RequestInterface * - * @param Google\Client $client - * @param Psr\Http\Message\RequestInterface $request + * @param Client $client + * @param RequestInterface $request * @param string $expectedClass * @return array decoded result - * @throws Google\Service\Exception on server side error (ie: not authenticated, + * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) @@ -106,9 +106,9 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ /** * Decode an HTTP Response. * @static - * @throws Google\Service\Exception - * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. - * @param Psr\Http\Message\ResponseInterface $response + * @throws \Google\Service\Exception + * @param RequestInterface $response The http response to be decoded. + * @param ResponseInterface $response * @param string $expectedClass * @return mixed|null */ diff --git a/src/Model.php b/src/Model.php index 667899fe4..18f8917b0 100644 --- a/src/Model.php +++ b/src/Model.php @@ -240,7 +240,7 @@ protected function isAssociativeArray($array) /** * Verify if $obj is an array. - * @throws Google\Exception Thrown if $obj isn't an array. + * @throws \Google\Exception Thrown if $obj isn't an array. * @param array $obj Items that should be validated. * @param string $method Method expecting an array as an argument. */ diff --git a/src/Service.php b/src/Service.php index 0257abd43..7d3052499 100644 --- a/src/Service.php +++ b/src/Service.php @@ -47,7 +47,7 @@ public function __construct($clientOrConfig = []) /** * Return the associated Google\Client class. - * @return Google\Client + * @return \Google\Client */ public function getClient() { @@ -57,7 +57,7 @@ public function getClient() /** * Create a new HTTP Batch handler for this service * - * @return Google\Http\Batch + * @return Batch */ public function createBatch() { diff --git a/src/Service/Exception.php b/src/Service/Exception.php index 12464d4af..3270ad7f3 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -32,7 +32,7 @@ class Exception extends GoogleException * * @param string $message * @param int $code - * @param Exception|null $previous + * @param \Exception|null $previous * @param [{string, string}] errors List of errors returned in an HTTP * response. Defaults to []. */ diff --git a/src/Service/Resource.php b/src/Service/Resource.php index 8d1ea8bc0..be0014532 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -48,7 +48,7 @@ class Resource /** @var string $rootUrl */ private $rootUrl; - /** @var Google\Client $client */ + /** @var \Google\Client $client */ private $client; /** @var string $serviceName */ @@ -80,8 +80,8 @@ public function __construct($service, $serviceName, $resourceName, $resource) * @param $name * @param $arguments * @param $expectedClass - optional, the expected class name - * @return Google\Http\Request|expectedClass - * @throws Google\Exception + * @return Request|$expectedClass + * @throws \Google\Exception */ public function call($name, $arguments, $expectedClass = null) { diff --git a/src/Task/Composer.php b/src/Task/Composer.php index 32ca2de75..8fcf13b5b 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -26,7 +26,7 @@ class Composer { /** * @param Event $event Composer event passed in for any script method - * @param FilesystemInterface $filesystem Optional. Used for testing. + * @param Filesystem $filesystem Optional. Used for testing. */ public static function cleanup( Event $event, diff --git a/src/Task/Runner.php b/src/Task/Runner.php index ad1c56ab1..34fe37835 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -91,7 +91,7 @@ class Runner * @param string $name The name of the current task (used for logging) * @param callable $action The task to run and possibly retry * @param array $arguments The task arguments - * @throws Google\Task\Exception when misconfigured + * @throws \Google\Task\Exception when misconfigured */ public function __construct( $config, @@ -172,7 +172,7 @@ public function canAttempt() * Runs the task and (if applicable) automatically retries when errors occur. * * @return mixed - * @throws Google\Task\Retryable on failure when no retries are available. + * @throws \Google\Service\Exception on failure when no retries are available. */ public function run() { From c8f6d09f50f859fa9457104bb0fb72c893804ede Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Oct 2020 16:20:13 -0700 Subject: [PATCH 1138/1274] chore: prepare v2.8.1 (#1981) --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 00fda3fa1..57087134e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.8.0"; + const LIBVER = "2.8.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 7a92d4d825ee0520428586198c16885eb3a4681c Mon Sep 17 00:00:00 2001 From: Illia Hai Date: Wed, 11 Nov 2020 07:24:05 +0200 Subject: [PATCH 1139/1274] fix: avoid autoload in aliases.php (#1991) --- src/aliases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliases.php b/src/aliases.php index c5f34755c..6949209cc 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -1,6 +1,6 @@ Date: Wed, 11 Nov 2020 06:41:16 -0800 Subject: [PATCH 1140/1274] ci: fix github actions asset release for composer 2 (#1993) --- .github/workflows/asset-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index b4efbcbf7..6124ac21f 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -39,7 +39,7 @@ jobs: with: timeout_minutes: 10 max_attempts: 3 - command: composer remove --dev cache/filesystem-adapter && composer install --no-dev --prefer-dist + command: composer remove --no-update --dev cache/filesystem-adapter && composer install --no-dev --prefer-dist - name: Create Archive run: | From 24f3ec0c79567a08c31f8271b61d79b050b25b0a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 11 Nov 2020 09:07:53 -0800 Subject: [PATCH 1141/1274] chore: prepare v2.8.2 (#1992) --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 57087134e..5f5b6acc7 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.8.1"; + const LIBVER = "2.8.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 48bec521727fea207f545f33022aeed1fc605b92 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 17 Nov 2020 09:10:45 -0800 Subject: [PATCH 1142/1274] fix: add classes in aliases.php to fix IDE error (#1995) --- phpcs.xml.dist | 8 ++++++-- src/aliases.php | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 4e4306986..926146867 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -89,7 +89,9 @@ - + + src/aliases\.php + - - - - - diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index b090fdd77..9f28cc269 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -26,7 +26,7 @@ class Google_HTTP_RESTTest extends BaseTest */ private $rest; - public function setUp() + public function setUp(): void { $this->rest = new Google_Http_REST(); $this->request = new Request('GET', '/'); diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 14dbb3b1e..42268c75f 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -18,7 +18,7 @@ class Google_Service_AdSenseTest extends BaseTest { public $adsense; - public function setUp() + public function setUp(): void { $this->checkToken(); $this->adsense = new Google_Service_AdSense($this->getClient()); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 74cdc711d..8da5a7aa6 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -55,7 +55,7 @@ class Google_Service_ResourceTest extends BaseTest private $client; private $service; - public function setUp() + public function setUp(): void { $this->client = $this->prophesize("Google_Client"); diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 0cae03732..87361bcd0 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -20,7 +20,7 @@ class Google_Service_TasksTest extends BaseTest /** @var Google_TasksService */ public $taskService; - public function setUp() + public function setUp(): void { $this->checkToken(); $this->taskService = new Google_Service_Tasks($this->getClient()); diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index b7745f8ae..2a9381a61 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -19,7 +19,7 @@ class Google_Service_YouTubeTest extends BaseTest { /** @var Google_Service_YouTube */ public $youtube; - public function setUp() + public function setUp(): void { $this->checkToken(); $this->youtube = new Google_Service_YouTube($this->getClient()); diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 1dd93a0ec..3d421328b 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -32,7 +32,7 @@ class Google_Task_RunnerTest extends BaseTest private $retryMap; private $retryConfig; - protected function setUp() + protected function setUp(): void { $this->client = new Google_Client(); } @@ -288,7 +288,8 @@ public function testCurlTimeouts($config, $minTime) */ public function testBadTaskConfig($config, $message) { - $this->setExpectedException('Google_Task_Exception', $message); + $this->expectException('Google_Task_Exception'); + $this->expectExceptionMessage($message); $this->setRetryConfig($config); new Google_Task_Runner( From 791f2b26a73ef6954e41e110bfc6053daa277163 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 22 Dec 2020 13:18:03 -0800 Subject: [PATCH 1145/1274] chore: add prefer-lowest actions to unit test matrix (#2021) --- .github/sync-repo-settings.yaml | 2 ++ .github/workflows/tests.yml | 22 +++++++++++++++++----- composer.json | 6 +++--- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 74cb44ff2..6e411b4c9 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -6,12 +6,14 @@ branchProtectionRules: isAdminEnforced: true requiredStatusCheckContexts: - 'PHP 5.6 Unit Test' + - 'PHP 5.6 --prefer-lowest Unit Test' - 'PHP 7.0 Unit Test' - 'PHP 7.1 Unit Test' - 'PHP 7.2 Unit Test' - 'PHP 7.3 Unit Test' - 'PHP 7.4 Unit Test' - 'PHP 8.0 Unit Test' + - 'PHP 8.0 --prefer-lowest Unit Test' - 'PHP Style Check' - 'cla/google' requiredApprovingReviewCount: 1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6dc9a1233..3ff647cbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,15 +1,24 @@ name: Test Suite -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: test: - runs-on: ${{ matrix.operating-system }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - operating-system: [ ubuntu-latest ] php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ] - name: PHP ${{ matrix.php }} Unit Test + composer-flags: [""] + include: + - php: "5.6" + composer-flags: "--prefer-lowest" + - php: "8.0" + composer-flags: "--prefer-lowest" + name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }} Unit Test steps: - uses: actions/checkout@v2 - name: Setup PHP @@ -21,7 +30,10 @@ jobs: with: timeout_minutes: 10 max_attempts: 3 - command: composer install + command: composer update ${{ matrix.composer-flags }} + - if: ${{ matrix.php == '8.0' || matrix.composer-flags == '--prefer-lowest' }} + name: Update guzzlehttp/ringphp dependency + run: composer update guzzlehttp/ringphp - if: ${{ matrix.php == '5.6' || matrix.php == '7.0' || matrix.php == '7.1' }} name: Run PHPUnit Patches run: sh .github/apply-phpunit-patches.sh diff --git a/composer.json b/composer.json index 6455f5ef4..016fe6bcb 100644 --- a/composer.json +++ b/composer.json @@ -11,12 +11,12 @@ "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", - "phpseclib/phpseclib": "~0.3.10||~2.0", - "guzzlehttp/guzzle": "~5.3.1||~6.0||~7.0", + "phpseclib/phpseclib": "~2.0", + "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "^5.0||^8.5", + "phpunit/phpunit": "^5.7||^8.5.13", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", From 120c695f6a2a564a3e2d83a4846d2d627637fca1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 28 Dec 2020 11:01:22 -0700 Subject: [PATCH 1146/1274] fix: ensure names match sync repo settings (#2022) --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ff647cbb..d758fa9c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,10 +15,10 @@ jobs: composer-flags: [""] include: - php: "5.6" - composer-flags: "--prefer-lowest" + composer-flags: "--prefer-lowest " - php: "8.0" - composer-flags: "--prefer-lowest" - name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }} Unit Test + composer-flags: "--prefer-lowest " + name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: - uses: actions/checkout@v2 - name: Setup PHP From 8ed1dc8709caa0ecf9ad0a4b517b83b97d38c3b5 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 28 Dec 2020 13:14:55 -0500 Subject: [PATCH 1147/1274] chore: fix asset release action (#2015) --- .github/workflows/asset-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index 02a224c8b..dd79db3d2 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -14,8 +14,9 @@ jobs: name: Upload Release Assets steps: - - uses: olegtarasov/get-tag@v2 - id: tagName + - id: getTag + name: Get Tag + run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - uses: octokit/request-action@v2.x id: getLatestRelease From e0753f9fb61e514b821108fcde665a10e1cce51c Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 28 Dec 2020 19:40:46 +0100 Subject: [PATCH 1148/1274] feat: support phpseclib3 (#2019) --- composer.json | 2 +- src/AccessToken/Verify.php | 45 ++++++++++++++++++++----- tests/Google/AccessToken/VerifyTest.php | 4 +++ 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 016fe6bcb..c29adc2c3 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "google/apiclient-services": "~0.13", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", - "phpseclib/phpseclib": "~2.0", + "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.2" }, diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 96fabdefd..fa997f211 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -22,6 +22,8 @@ use Firebase\JWT\SignatureInvalidException; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; +use phpseclib3\Crypt\PublicKeyLoader; +use phpseclib3\Crypt\RSA\PublicKey; use Psr\Cache\CacheItemPoolInterface; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Exception as GoogleException; @@ -97,18 +99,10 @@ public function verifyIdToken($idToken, $audience = null) // Check signature $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { - $bigIntClass = $this->getBigIntClass(); - $rsaClass = $this->getRsaClass(); - $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - - $rsa = new $rsaClass(); - $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); - try { $payload = $this->jwt->decode( $idToken, - $rsa->getPublicKey(), + $this->getPublicKey($cert), array('RS256') ); @@ -229,8 +223,33 @@ private function getJwtService() return new $jwtClass; } + private function getPublicKey($cert) + { + $bigIntClass = $this->getBigIntClass(); + $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); + $component = array('n' => $modulus, 'e' => $exponent); + + if (class_exists('phpseclib3\Crypt\RSA\PublicKey')) { + /** @var PublicKey $loader */ + $loader = PublicKeyLoader::load($component); + + return $loader->toString('PKCS8'); + } + + $rsaClass = $this->getRsaClass(); + $rsa = new $rsaClass(); + $rsa->loadKey($component); + + return $rsa->getPublicKey(); + } + private function getRsaClass() { + if (class_exists('phpseclib3\Crypt\RSA')) { + return 'phpseclib3\Crypt\RSA'; + } + if (class_exists('phpseclib\Crypt\RSA')) { return 'phpseclib\Crypt\RSA'; } @@ -240,6 +259,10 @@ private function getRsaClass() private function getBigIntClass() { + if (class_exists('phpseclib3\Math\BigInteger')) { + return 'phpseclib3\Math\BigInteger'; + } + if (class_exists('phpseclib\Math\BigInteger')) { return 'phpseclib\Math\BigInteger'; } @@ -249,6 +272,10 @@ private function getBigIntClass() private function getOpenSslConstant() { + if (class_exists('phpseclib3\Crypt\AES')) { + return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; + } + if (class_exists('phpseclib\Crypt\RSA')) { return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index bce9501b4..dbcaa6f33 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -139,6 +139,10 @@ private function getJwtService() private function getOpenSslConstant() { + if (class_exists('phpseclib3\Crypt\AES')) { + return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; + } + if (class_exists('phpseclib\Crypt\RSA')) { return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; } From 09028dc17e2ee95f1ffc382bdef2e1c54a551d87 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Tue, 19 Jan 2021 07:54:28 -0700 Subject: [PATCH 1149/1274] fix: exclude PageSpeed Insights API errors from retries. (#2010) --- src/Task/Runner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Task/Runner.php b/src/Task/Runner.php index 34fe37835..c081dc591 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -81,7 +81,8 @@ class Runner 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR - 52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING + 52 => self::TASK_RETRY_ALWAYS, // CURLE_GOT_NOTHING + 'lighthouseError' => self::TASK_RETRY_NEVER ]; /** From 2fa15d9db4ce653dbb128bd6b08eff9e6c0702ae Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 19 Jan 2021 10:19:03 -0500 Subject: [PATCH 1150/1274] chore: prepare v2.9.0 (#2029) Co-authored-by: Brent Shaffer --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 269b0140a..e53e88e73 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.8.3"; + const LIBVER = "2.9.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 7a09507beff1048cc9a29417f78a98284f06214f Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 19 Jan 2021 12:31:44 -0500 Subject: [PATCH 1151/1274] chore: fix release and documentation actions (#2030) --- .github/actions/docs/entrypoint.sh | 7 +++++-- .github/workflows/asset-release.yml | 11 ++++------- .github/workflows/docs.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 4d9c79fb4..203f98e62 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -1,12 +1,15 @@ #!/bin/sh -l apt-get update -apt-get install -y git +apt-get install -y git wget git reset --hard HEAD # Create the directories mkdir .docs mkdir .cache +wget https://github.com/jdpedrie/Sami/releases/download/v4.3.0/sami.phar + # Run the docs generation command -php vendor/bin/sami.php update .github/actions/docs/sami.php +php sami.phar update .github/actions/docs/sami.php +chmod -R 0777 . diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index dd79db3d2..6f86fdecf 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -18,12 +18,9 @@ jobs: name: Get Tag run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - - uses: octokit/request-action@v2.x - id: getLatestRelease - with: - route: GET /repos/:repository/releases/tags/:tag - repository: ${{ github.repository }} - tag: ${{ steps.tagName.outputs.tag }} + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.2.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -60,7 +57,7 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - upload_url: ${{ fromJson(steps.getLatestRelease.outputs.data).upload_url }} + upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: ./google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip asset_name: google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip asset_content_type: application/zip diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8992af044..63244a80a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,7 +19,7 @@ jobs: with: timeout_minutes: 10 max_attempts: 3 - command: composer config repositories.sami vcs https://${{ secrets.GITHUB_TOKEN }}@github.com/jdpedrie/sami.git && composer require sami/sami:dev-master && git reset --hard HEAD + command: composer install - name: Generate and Push Documentation uses: docker://php:7.3-cli env: From 2fb6e702aca5d68203fa737f89f6f774022494c6 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 19 Jan 2021 12:48:59 -0500 Subject: [PATCH 1152/1274] chore: prepare v2.9.1 (#2031) --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index e53e88e73..d0cffa44b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.9.0"; + const LIBVER = "2.9.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From fa4b989470cd69035fe3f32f9f6a006e867f8721 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Jan 2021 09:27:36 -0700 Subject: [PATCH 1153/1274] chore: remove recommendation of v1-master branch (#2032) --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 784cb4da9..1b4db41f0 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ The Google API Client Library enables you to work with Google APIs such as Gmail These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. -**NOTE** The actively maintained (v2) version of this client requires PHP 5.6 or above. If you require support for PHP 5.2 or 5.3, use the v1 branch. - ## Google Cloud Platform For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/googleapis/google-cloud-php) which is under active development. From ed5ea0cd8f30a9c98c2678448a7a8ccc95784099 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 28 Jan 2021 08:51:24 -0800 Subject: [PATCH 1154/1274] fix: ensure Google_Task_Retryable is an interface (#2034) --- src/aliases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliases.php b/src/aliases.php index baa0b49ab..7bf883730 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -59,7 +59,7 @@ class Google_Service extends \Google\Service {} class Google_Service_Exception extends \Google\Service\Exception {} class Google_Service_Resource extends \Google\Service\Resource {} class Google_Task_Exception extends \Google\Task\Exception {} - class Google_Task_Retryable extends \Google\Task\Retryable {} + interface Google_Task_Retryable extends \Google\Task\Retryable {} class Google_Task_Runner extends \Google\Task\Runner {} class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate {} } From 16c78c5f1a65e88e6efcc314ece9312031018d64 Mon Sep 17 00:00:00 2001 From: Nana YAMANE Date: Wed, 10 Mar 2021 06:12:31 +0900 Subject: [PATCH 1155/1274] docs: update readme (how to use a specific JSON key) (#2057) --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 1b4db41f0..f4f23d3ef 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,19 @@ calls return unexpected 401 or 403 errors. $client->setSubject($user_to_impersonate); ``` +#### How to use a specific JSON key + +If you want to a specific JSON key instead of using `GOOGLE_APPLICATION_CREDENTIALS` environment variable, you can do this: + +```php +$jsonKey = [ + 'type' => 'service_account', + // ... +]; +$client = new Google\Client(); +$client->setAuthConfig($jsonKey); +``` + ### Making Requests ### The classes used to call the API in [google-api-php-client-services](https://github.com/googleapis/google-api-php-client-services) are autogenerated. They map directly to the JSON requests and responses found in the [APIs Explorer](https://developers.google.com/apis-explorer/#p/). From c925552c84ca5cf02e36b83e72b5371ec3bea391 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 17 Mar 2021 09:47:13 -0700 Subject: [PATCH 1156/1274] chore: update README.md (#2061) --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4f23d3ef..70812ed67 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,12 @@ These client libraries are officially supported by Google. However, the librari ## Google Cloud Platform -For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/googleapis/google-cloud-php) which is under active development. +For Google Cloud Platform APIs such as [Datastore][cloud-datastore], [Cloud Storage][cloud-storage], [Pub/Sub][cloud-pubsub], and [Compute Engine][cloud-compute], we recommend using the Google Cloud client libraries. For a complete list of supported Google Cloud client libraries, see [googleapis/google-cloud-php](https://github.com/googleapis/google-cloud-php). + +[cloud-datastore]: https://github.com/googleapis/google-cloud-php-datastore +[cloud-pubsub]: https://github.com/googleapis/google-cloud-php-pubsub +[cloud-storage]: https://github.com/googleapis/google-cloud-php-storage +[cloud-compute]: https://github.com/googleapis/google-cloud-php-compute ## Requirements ## * [PHP 5.6.0 or higher](https://www.php.net/) From db46cd4cd642302fae4af77c1b954a8737526c25 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Tue, 18 May 2021 09:45:16 -0700 Subject: [PATCH 1157/1274] chore: require patched version of composer (#2076) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c29adc2c3..2eae20354 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "cache/filesystem-adapter": "^0.3.2|^1.1", "phpcompatibility/php-compatibility": "^9.2", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "composer/composer": "^1.10" + "composer/composer": "^1.10.22" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" From e07b3a1c92d08b0a55e604cf61472a9affaa5d0d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 9 Jun 2021 17:03:32 -0500 Subject: [PATCH 1158/1274] fix: ensure composer cleanup works for upcoming service namespaces (#2084) --- src/Task/Composer.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Task/Composer.php b/src/Task/Composer.php index 8fcf13b5b..892573b9c 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -37,10 +37,18 @@ public static function cleanup( $servicesToKeep = isset($extra['google/apiclient-services']) ? $extra['google/apiclient-services'] : []; if ($servicesToKeep) { + $vendorDir = $composer->getConfig()->get('vendor-dir'); $serviceDir = sprintf( '%s/google/apiclient-services/src/Google/Service', - $composer->getConfig()->get('vendor-dir') + $vendorDir ); + if (!is_dir($serviceDir)) { + // path for google/apiclient-services >= 0.200.0 + $serviceDir = sprintf( + '%s/google/apiclient-services/src', + $vendorDir + ); + } self::verifyServicesToKeep($serviceDir, $servicesToKeep); $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); $filesystem = $filesystem ?: new Filesystem(); From 1003c933d2c934a9d08db7be7f82abd82c70ef01 Mon Sep 17 00:00:00 2001 From: "google-cloud-policy-bot[bot]" <80869356+google-cloud-policy-bot[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 22:10:09 +0000 Subject: [PATCH 1159/1274] chore: add SECURITY.md (#2074) add a security policy --- SECURITY.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..8b58ae9c0 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. From 33b28ac4594bd04fffdee4b58d14af2dbae6caaa Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 9 Jun 2021 17:11:07 -0500 Subject: [PATCH 1160/1274] chore(docs): bump version in readme (#2062) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70812ed67..631c4c5d1 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:"^2.7" +composer require google/apiclient:"^2.9" ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.7" + "google/apiclient": "^2.9" }, "scripts": { "post-update-cmd": "Google\\Task\\Composer::cleanup" From e9ef4c26a044b8d39a46bcf296be795fe24a1849 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 9 Jun 2021 17:15:08 -0500 Subject: [PATCH 1161/1274] chore: recommend 'pre-autoload-dump' for cleanup command so it works with 'optimize-autoloader' (#2063) --- README.md | 2 +- tests/Google/Task/ComposerTest.php | 110 +++++++++++++++++++---------- 2 files changed, 72 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 631c4c5d1..1e892d2ee 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ you want to keep in `composer.json`: "google/apiclient": "^2.9" }, "scripts": { - "post-update-cmd": "Google\\Task\\Composer::cleanup" + "pre-autoload-dump": "Google\\Task\\Composer::cleanup" }, "extra": { "google/apiclient-services": [ diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index faf9f32dc..c2b81ca48 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -17,6 +17,25 @@ class Google_Task_ComposerTest extends BaseTest { + private static $composerBaseConfig = [ + 'repositories' => [ + [ + 'type' => 'path', + 'url' => __DIR__ . '/../../..', + 'options' => [ + 'symlink' => false + ] + ] + ], + 'require' => [ + 'google/apiclient' => '*' + ], + 'scripts' => [ + 'pre-autoload-dump' => 'Google\Task\Composer::cleanup' + ], + 'minimum-stability' => 'dev', + ]; + /** * @expectedException InvalidArgumentException * @expectedExceptionMessage Google service "Foo" does not exist @@ -147,26 +166,7 @@ private function createMockEvent( public function testE2E() { - $composer = [ - 'repositories' => [ - [ - 'type' => 'path', - 'url' => __DIR__ . '/../../..', - 'options' => [ - 'symlink' => false - ] - ] - ], - 'require' => [ - 'google/apiclient' => '*' - ], - 'scripts' => [ - 'post-update-cmd' => 'Google\Task\Composer::cleanup' - ], - 'minimum-stability' => 'dev', - ]; - - $composerJson = json_encode($composer + [ + $dir = $this->runComposerInstall(self::$composerBaseConfig + [ 'extra' => [ 'google/apiclient-services' => [ 'Drive', @@ -175,12 +175,7 @@ public function testE2E() ] ]); - $tmpDir = sys_get_temp_dir() . '/test-' . rand(); - mkdir($tmpDir); - file_put_contents($tmpDir . '/composer.json', $composerJson); - passthru('composer install -d ' . $tmpDir); - - $serviceDir = $tmpDir . '/vendor/google/apiclient-services/src/Google/Service'; + $serviceDir = $dir . '/vendor/google/apiclient-services/src/Google/Service'; $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); $this->assertFileExists($serviceDir . '/YouTube.php'); @@ -188,7 +183,11 @@ public function testE2E() $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); - $composerJson = json_encode($composer + [ + // Remove the "apiclient-services" directory, which is required to + // update the cleanup command. + passthru('rm -r ' . $dir . '/vendor/google/apiclient-services'); + + $this->runComposerInstall(self::$composerBaseConfig + [ 'extra' => [ 'google/apiclient-services' => [ 'Drive', @@ -196,11 +195,7 @@ public function testE2E() 'YouTubeReporting', ] ] - ]); - - file_put_contents($tmpDir . '/composer.json', $composerJson); - passthru('rm -r ' . $tmpDir . '/vendor/google/apiclient-services'); - passthru('composer update -d ' . $tmpDir); + ], $dir); $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); @@ -208,20 +203,22 @@ public function testE2E() $this->assertFileExists($serviceDir . '/YouTube'); $this->assertFileExists($serviceDir . '/YouTubeReporting.php'); $this->assertFileExists($serviceDir . '/YouTubeReporting'); + } - // Test BC Task name - $composer['scripts']['post-update-cmd'] = 'Google_Task_Composer::cleanup'; - $composerJson = json_encode($composer + [ + public function testE2EBCTaskName() + { + $composerConfig = self::$composerBaseConfig + [ 'extra' => [ 'google/apiclient-services' => [ 'Drive', ] ] - ]); + ]; + // Test BC Task name + $composerConfig['scripts']['pre-autoload-dump'] = 'Google_Task_Composer::cleanup'; - file_put_contents($tmpDir . '/composer.json', $composerJson); - passthru('rm -r ' . $tmpDir . '/vendor/google/apiclient-services'); - passthru('composer update -d ' . $tmpDir); + $dir = $this->runComposerInstall($composerConfig); + $serviceDir = $dir . '/vendor/google/apiclient-services/src/Google/Service'; $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); @@ -230,4 +227,39 @@ public function testE2E() $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); } + + public function testE2EOptimized() + { + $dir = $this->runComposerInstall(self::$composerBaseConfig + [ + 'config' => [ + 'optimize-autoloader' => true, + ], + 'extra' => [ + 'google/apiclient-services' => [ + 'Drive' + ] + ] + ]); + + $classmap = require_once $dir . '/vendor/composer/autoload_classmap.php'; + + // Verify removed services do not show up in the classmap + $this->assertArrayHasKey('Google_Service_Drive', $classmap); + $this->assertArrayNotHasKey('Google_Service_YouTube', $classmap); + } + + private function runComposerInstall(array $composerConfig, $dir = null) + { + $composerJson = json_encode($composerConfig); + + if (is_null($dir)) { + $dir = sys_get_temp_dir() . '/test-' . rand(); + mkdir($dir); + } + + file_put_contents($dir . '/composer.json', $composerJson); + passthru('composer install -d ' . $dir); + + return $dir; + } } From 62f57e7682fa649f955010f9124e4892ced0717d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 10 Jun 2021 13:56:25 -0500 Subject: [PATCH 1162/1274] chore: update examples for latest apiary (#2087) --- examples/batch.php | 14 +++++++------- examples/service-account.php | 4 ++-- examples/simple-query.php | 8 ++++---- tests/examples/largeFileDownloadTest.php | 3 +++ tests/examples/largeFileUploadTest.php | 3 +++ tests/examples/simpleFileUploadTest.php | 3 +++ 6 files changed, 22 insertions(+), 13 deletions(-) diff --git a/examples/batch.php b/examples/batch.php index 2285e5dd3..bb2ba4e02 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -59,22 +59,22 @@ keys will be reflected in the returned array. ************************************************/ -// NOTE: Some services use `$service->createBatch();` instead of -// `new Google\Http\Batch($client);` -$batch = new Google\Http\Batch($client); +// NOTE: Some services use `new Google\Http\Batch($client);` instead +$batch = $service->createBatch(); +$query = 'Henry David Thoreau'; $optParams = array('filter' => 'free-ebooks'); -$optParams['q'] = 'Henry David Thoreau'; -$req1 = $service->volumes->listVolumes($optParams); +$req1 = $service->volumes->listVolumes($query, $optParams); $batch->add($req1, "thoreau"); -$optParams['q'] = 'George Bernard Shaw'; -$req2 = $service->volumes->listVolumes($optParams); +$query = 'George Bernard Shaw'; +$req2 = $service->volumes->listVolumes($query, $optParams); $batch->add($req2, "shaw"); /************************************************ Executing the batch will send all requests off at once. ************************************************/ + $results = $batch->execute(); ?> diff --git a/examples/service-account.php b/examples/service-account.php index c86300116..e8b948918 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -59,11 +59,11 @@ We're just going to make the same call as in the simple query as an example. ************************************************/ +$query = 'Henry David Thoreau'; $optParams = array( - 'q' => 'Henry David Thoreau', 'filter' => 'free-ebooks', ); -$results = $service->volumes->listVolumes($optParams); +$results = $service->volumes->listVolumes($query, $optParams); ?>

      Results Of Call:

      diff --git a/examples/simple-query.php b/examples/simple-query.php index bf49581b1..7ff68c9ed 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -47,21 +47,21 @@ (the query), and an array of named optional parameters. ************************************************/ +$query = 'Henry David Thoreau'; $optParams = array( - 'q' => 'Henry David Thoreau', 'filter' => 'free-ebooks', ); -$results = $service->volumes->listVolumes($optParams); +$results = $service->volumes->listVolumes($query, $optParams); /************************************************ This is an example of deferring a call. ***********************************************/ $client->setDefer(true); +$query = 'Henry David Thoreau'; $optParams = array( - 'q' => 'Henry David Thoreau', 'filter' => 'free-ebooks', ); -$request = $service->volumes->listVolumes($optParams); +$request = $service->volumes->listVolumes($query, $optParams); $resultsDeferred = $client->execute($request); /************************************************ diff --git a/tests/examples/largeFileDownloadTest.php b/tests/examples/largeFileDownloadTest.php index 538b3ff70..e16e9d5d4 100644 --- a/tests/examples/largeFileDownloadTest.php +++ b/tests/examples/largeFileDownloadTest.php @@ -20,6 +20,9 @@ class examples_largeFileDownloadTest extends BaseTest { + /** + * @runInSeparateProcess + */ public function testSimpleFileDownloadNoToken() { $this->checkServiceAccountCredentials(); diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php index ca9848879..a927309f8 100644 --- a/tests/examples/largeFileUploadTest.php +++ b/tests/examples/largeFileUploadTest.php @@ -21,6 +21,9 @@ class examples_largeFileUploadTest extends BaseTest { + /** + * @runInSeparateProcess + */ public function testLargeFileUpload() { $this->checkServiceAccountCredentials(); diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php index 54dce650a..8b0298ba2 100644 --- a/tests/examples/simpleFileUploadTest.php +++ b/tests/examples/simpleFileUploadTest.php @@ -21,6 +21,9 @@ class examples_simpleFileUploadTest extends BaseTest { + /** + * @runInSeparateProcess + */ public function testSimpleFileUploadNoToken() { $this->checkServiceAccountCredentials(); From a1f05ce3b5733dd45fa4d45e41b76ecdbd229fee Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 18 Jun 2021 13:58:28 -0500 Subject: [PATCH 1163/1274] chore: fix tests in preparation of google/apiclient-services:v0.200.0 release (#2086) --- README.md | 38 +++--- UPGRADING.md | 47 +++++++ composer.json | 2 +- docs/media.md | 6 +- docs/oauth-server.md | 4 +- docs/oauth-web.md | 12 +- docs/parameters.md | 2 +- docs/start.md | 2 +- examples/batch.php | 2 +- examples/large-file-download.php | 2 +- examples/large-file-upload.php | 4 +- examples/multi-api.php | 4 +- examples/service-account.php | 2 +- examples/simple-file-upload.php | 6 +- examples/simple-query.php | 4 +- phpunit.xml.dist | 2 +- tests/BaseTest.php | 12 +- tests/Google/AccessToken/RevokeTest.php | 22 ++-- tests/Google/AccessToken/VerifyTest.php | 20 ++- tests/Google/CacheTest.php | 24 ++-- tests/Google/ClientTest.php | 129 +++++++++++-------- tests/Google/Http/BatchTest.php | 99 ++++---------- tests/Google/Http/MediaFileUploadTest.php | 49 +++---- tests/Google/Http/RESTTest.php | 30 ++--- tests/Google/ModelTest.php | 68 +++++----- tests/Google/Service/AdSenseTest.php | 10 +- tests/Google/Service/PagespeedonlineTest.php | 29 ----- tests/Google/Service/ResourceTest.php | 91 +++++++------ tests/Google/Service/TasksTest.php | 15 ++- tests/Google/Service/YouTubeTest.php | 29 +++-- tests/Google/ServiceTest.php | 32 +++-- tests/Google/Task/ComposerTest.php | 59 +++++---- tests/Google/Task/RunnerTest.php | 104 ++++++++------- tests/Google/Utils/UriTemplateTest.php | 21 +-- tests/examples/batchTest.php | 6 +- tests/examples/idTokenTest.php | 6 +- tests/examples/indexTest.php | 6 +- tests/examples/largeFileDownloadTest.php | 6 +- tests/examples/largeFileUploadTest.php | 6 +- tests/examples/multiApiTest.php | 6 +- tests/examples/serviceAccountTest.php | 6 +- tests/examples/simpleFileUploadTest.php | 6 +- tests/examples/simpleQueryTest.php | 6 +- 43 files changed, 568 insertions(+), 468 deletions(-) delete mode 100644 tests/Google/Service/PagespeedonlineTest.php diff --git a/README.md b/README.md index 1e892d2ee..7346110da 100644 --- a/README.md +++ b/README.md @@ -138,12 +138,12 @@ $client = new Google\Client(); $client->setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); -$service = new Google_Service_Books($client); -$optParams = array( +$service = new Google\Service\Books($client); +$query = 'Henry David Thoreau'; +$optParams = [ 'filter' => 'free-ebooks', - 'q' => 'Henry David Thoreau' -); -$results = $service->volumes->listVolumes($optParams); +]; +$results = $service->volumes->listVolumes($query, $optParams); foreach ($results->getItems() as $item) { echo $item['volumeInfo']['title'], "
      \n"; @@ -166,7 +166,7 @@ foreach ($results->getItems() as $item) { 1. Set the scopes required for the API you are going to call ```php - $client->addScope(Google_Service_Drive::DRIVE); + $client->addScope(Google\Service\Drive::DRIVE); ``` 1. Set your application's redirect URI @@ -213,7 +213,7 @@ calls return unexpected 401 or 403 errors. 1. Set the scopes required for the API you are going to call ```php - $client->addScope(Google_Service_Drive::DRIVE); + $client->addScope(Google\Service\Drive::DRIVE); ``` 1. If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method setSubject: @@ -264,10 +264,10 @@ Using this library, the same call would look something like this: ```php // create the datastore service class -$datastore = new Google_Service_Datastore($client); +$datastore = new Google\Service\Datastore($client); // build the query - this maps directly to the JSON -$query = new Google_Service_Datastore_Query([ +$query = new Google\Service\Datastore\Query([ 'kind' => [ [ 'name' => 'Book', @@ -283,7 +283,7 @@ $query = new Google_Service_Datastore_Query([ ]); // build the request and response -$request = new Google_Service_Datastore_RunQueryRequest(['query' => $query]); +$request = new Google\Service\Datastore\RunQueryRequest(['query' => $query]); $response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request); ``` @@ -291,20 +291,20 @@ However, as each property of the JSON API has a corresponding generated class, t ```php // create the datastore service class -$datastore = new Google_Service_Datastore($client); +$datastore = new Google\Service\Datastore($client); // build the query -$request = new Google_Service_Datastore_RunQueryRequest(); -$query = new Google_Service_Datastore_Query(); +$request = new Google\Service\Datastore_RunQueryRequest(); +$query = new Google\Service\Datastore\Query(); // - set the order -$order = new Google_Service_Datastore_PropertyOrder(); +$order = new Google\Service\Datastore_PropertyOrder(); $order->setDirection('descending'); -$property = new Google_Service_Datastore_PropertyReference(); +$property = new Google\Service\Datastore\PropertyReference(); $property->setName('title'); $order->setProperty($property); $query->setOrder([$order]); // - set the kinds -$kind = new Google_Service_Datastore_KindExpression(); +$kind = new Google\Service\Datastore\KindExpression(); $kind->setName('Book'); $query->setKinds([$kind]); // - set the limit @@ -335,7 +335,7 @@ $client = new Google\Client(); * Application Default Credentials. */ $client->useApplicationDefaultCredentials(); -$client->addScope(Google_Service_Plus::PLUS_ME); +$client->addScope(Google\Service\Plus::PLUS_ME); // returns a Guzzle HTTP Client $httpClient = $client->authorize(); @@ -438,9 +438,9 @@ If there is a specific bug with the library, please [file an issue](https://gith If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! -### Why does Google_..._Service have weird names? ### +### Why do some Google\Service classes have weird names? ### -The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. +The _Google\Service_ classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes. ### How do I deal with non-JSON response types? ### diff --git a/UPGRADING.md b/UPGRADING.md index f07a24436..ef939e943 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -1,6 +1,53 @@ Google API Client Upgrade Guide =============================== +2.x to 2.10.0 +------------- + +### Namespaces + +The Google API Client for PHP now uses namespaces for all classes. Code using +the legacy classnames will continue to work, but it is advised to upgrade to the +underspaced names, as the legacy classnames will be deprecated some time in the +future. + +**Before** + +```php +$client = new Google_Client(); +$service = new Google_Service_Books($client); +``` + +**After** +```php +$client = new Google\Client(); +$service = new Google\Service\Books($client); +``` + +### Service class constructors + +Service class constructors now accept an optional `Google\Client|array` parameter +as their first argument, rather than requiring an instance of `Google\Client`. + +**Before** + +```php +$client = new Google_Client(); +$client->setApplicationName("Client_Library_Examples"); +$client->setDeveloperKey("YOUR_APP_KEY"); + +$service = new Google_Service_Books($client); +``` + +**After** + +```php +$service = new Google\Service\Books([ + 'application_name' => "Client_Library_Examples", + 'developer_key' => "YOUR_APP_KEY", +]); +``` + 1.0 to 2.0 ---------- diff --git a/composer.json b/composer.json index 2eae20354..cce3c93a1 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": "^5.6|^7.0|^8.0", "google/auth": "^1.10", - "google/apiclient-services": "~0.13", + "google/apiclient-services": "^0.200.0", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", diff --git a/docs/media.md b/docs/media.md index 66148c387..6e35bb2cf 100644 --- a/docs/media.md +++ b/docs/media.md @@ -7,7 +7,7 @@ The PHP client library allows for uploading large files for use with APIs such a In the simple upload case, the data is passed as the body of the request made to the server. This limits the ability to specify metadata, but is very easy to use. ```php -$file = new Google_Service_Drive_DriveFile(); +$file = new Google\Service\Drive\DriveFile(); $result = $service->files->insert($file, array( 'data' => file_get_contents("path/to/file"), 'mimeType' => 'application/octet-stream', @@ -20,7 +20,7 @@ $result = $service->files->insert($file, array( With multipart file uploads, the uploaded file is sent as one part of a multipart form post. This allows metadata about the file object to be sent as part of the post as well. This is triggered by specifying the _multipart_ uploadType. ```php -$file = new Google_Service_Drive_DriveFile(); +$file = new Google\Service\Drive\DriveFile(); $file->setTitle("Hello World!"); $result = $service->files->insert($file, array( 'data' => file_get_contents("path/to/file"), @@ -34,7 +34,7 @@ $result = $service->files->insert($file, array( It is also possible to split the upload across multiple requests. This is convenient for larger files, and allows resumption of the upload if there is a problem. Resumable uploads can be sent with separate metadata. ```php -$file = new Google_Service_Drive_DriveFile(); +$file = new Google\Service\Drive\DriveFile(); $file->title = "Big File"; $chunkSizeBytes = 1 * 1024 * 1024; diff --git a/docs/oauth-server.md b/docs/oauth-server.md index ad57b0c78..eb0707a18 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -87,7 +87,7 @@ Use the authorized `Google\Client` object to call Google APIs by completing the 1. Build a service object for the API that you want to call, providing the authorized `Google\Client` object. For example, to call the Cloud SQL Administration API: ```php - $sqladmin = new Google_Service_SQLAdmin($client); + $sqladmin = new Google\Service\SQLAdmin($client); ``` 2. Make requests to the API service using the [interface provided by the service object](https://github.com/googleapis/google-api-php-client/blob/master/docs/start.md#build-the-service-object). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: @@ -133,7 +133,7 @@ putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); $client = new Google\Client(); $client->useApplicationDefaultCredentials(); -$sqladmin = new Google_Service_SQLAdmin($client); +$sqladmin = new Google\Service\SQLAdmin($client); $response = $sqladmin->instances ->listInstances('examinable-example-123')->getItems(); echo json_encode($response) . "\n"; diff --git a/docs/oauth-web.md b/docs/oauth-web.md index dfc16f911..904745ed5 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -82,7 +82,7 @@ For example, this code requests read-only, offline access to a user's Google Dri ```php $client = new Google\Client(); $client->setAuthConfig('client_secret.json'); -$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +$client->addScope(Google\Service\Drive::DRIVE_METADATA_READONLY); $client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); $client->setAccessType('offline'); // offline access $client->setIncludeGrantedScopes(true); // incremental auth @@ -118,7 +118,7 @@ $client->setRedirectUri('http://localhost:8080/oauth2callback.php'); Scopes enable your application to only request access to the resources that it needs while also enabling users to control the amount of access that they grant to your application. Thus, there is an inverse relationship between the number of scopes requested and the likelihood of obtaining user consent. To set this value in PHP, call the `addScope` function: ```php -$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +$client->addScope(Google\Service\Drive::DRIVE_METADATA_READONLY); ``` The [OAuth 2.0 API Scopes](https://developers.google.com/identity/protocols/googlescopes) document provides a full list of scopes that you might use to access Google APIs. @@ -284,7 +284,7 @@ Use the access token to call Google APIs by completing the following steps: 2. Build a service object for the API that you want to call. You build a a service object by providing an authorized `Google\Client` object to the constructor for the API you want to call. For example, to call the Drive API: ```php - $drive = new Google_Service_Drive($client); + $drive = new Google\Service\Drive($client); ``` 3. Make requests to the API service using the [interface provided by the service object](start.md). For example, to list the files in the authenticated user's Google Drive: @@ -331,11 +331,11 @@ session_start(); $client = new Google\Client(); $client->setAuthConfig('client_secrets.json'); -$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +$client->addScope(Google\Service\Drive::DRIVE_METADATA_READONLY); if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { $client->setAccessToken($_SESSION['access_token']); - $drive = new Google_Service_Drive($client); + $drive = new Google\Service\Drive($client); $files = $drive->files->listFiles(array())->getItems(); echo json_encode($files); } else { @@ -355,7 +355,7 @@ session_start(); $client = new Google\Client(); $client->setAuthConfigFile('client_secrets.json'); $client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); -$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY); +$client->addScope(Google\Service\Drive::DRIVE_METADATA_READONLY); if (! isset($_GET['code'])) { $auth_url = $client->createAuthUrl(); diff --git a/docs/parameters.md b/docs/parameters.md index 029ebe4ec..183a0c298 100644 --- a/docs/parameters.md +++ b/docs/parameters.md @@ -1,6 +1,6 @@ # Standard Parameters -Many API methods include support for certain optional parameters. In addition to these there are several standard parameters that can be applied to any API call. These are defined in the `Google_Service_Resource` class. +Many API methods include support for certain optional parameters. In addition to these there are several standard parameters that can be applied to any API call. These are defined in the `Google\Service\Resource` class. ## Parameters diff --git a/docs/start.md b/docs/start.md index d22b49d0c..fd3c53f72 100644 --- a/docs/start.md +++ b/docs/start.md @@ -64,7 +64,7 @@ $client->setDeveloperKey("MY_SIMPLE_API_KEY"); Services are called through queries to service specific objects. These are created by constructing the service object, and passing an instance of `Google\Client` to it. `Google\Client` contains the IO, authentication and other classes required by the service to function, and the service informs the client which scopes it uses to provide a default when authenticating a user. ```php -$service = new Google_Service_Books($client); +$service = new Google\Service\Books($client); ``` ### Calling an API diff --git a/examples/batch.php b/examples/batch.php index bb2ba4e02..9df665059 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -42,7 +42,7 @@ } $client->setDeveloperKey($apiKey); -$service = new Google_Service_Books($client); +$service = new Google\Service\Books($client); /************************************************ To actually make the batch call we need to diff --git a/examples/large-file-download.php b/examples/large-file-download.php index 1ab30e735..f5978ed1a 100644 --- a/examples/large-file-download.php +++ b/examples/large-file-download.php @@ -38,7 +38,7 @@ $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); -$service = new Google_Service_Drive($client); +$service = new Google\Service\Drive($client); /************************************************ * If we have a code back from the OAuth 2.0 flow, diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index ba4a96589..00eb93d1d 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -38,7 +38,7 @@ $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); -$service = new Google_Service_Drive($client); +$service = new Google\Service\Drive($client); // add "?logout" to the URL to remove a token from the session if (isset($_REQUEST['logout'])) { @@ -89,7 +89,7 @@ fclose($fh); } - $file = new Google_Service_Drive_DriveFile(); + $file = new Google\Service\Drive\DriveFile(); $file->name = "Big File"; $chunkSizeBytes = 1 * 1024 * 1024; diff --git a/examples/multi-api.php b/examples/multi-api.php index 573e6bc8f..74b860f73 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -78,8 +78,8 @@ We are going to create both YouTube and Drive services, and query both. ************************************************/ -$yt_service = new Google_Service_YouTube($client); -$dr_service = new Google_Service_Drive($client); +$yt_service = new Google\Service\YouTube($client); +$dr_service = new Google\Service\Drive($client); /************************************************ If we're signed in, retrieve channels from YouTube diff --git a/examples/service-account.php b/examples/service-account.php index e8b948918..d00272719 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -53,7 +53,7 @@ $client->setApplicationName("Client_Library_Examples"); $client->setScopes(['https://www.googleapis.com/auth/books']); -$service = new Google_Service_Books($client); +$service = new Google\Service\Books($client); /************************************************ We're just going to make the same call as in the diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index 6e666a9cb..dc18fab2d 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -38,7 +38,7 @@ $client->setAuthConfig($oauth_credentials); $client->setRedirectUri($redirect_uri); $client->addScope("https://www.googleapis.com/auth/drive"); -$service = new Google_Service_Drive($client); +$service = new Google\Service\Drive($client); // add "?logout" to the URL to remove a token from the session if (isset($_REQUEST['logout'])) { @@ -88,7 +88,7 @@ } // This is uploading a file directly, with no metadata associated. - $file = new Google_Service_Drive_DriveFile(); + $file = new Google\Service\Drive\DriveFile(); $result = $service->files->create( $file, array( @@ -99,7 +99,7 @@ ); // Now lets try and send the metadata as well using multipart! - $file = new Google_Service_Drive_DriveFile(); + $file = new Google\Service\Drive\DriveFile(); $file->setName("Hello World!"); $result2 = $service->files->create( $file, diff --git a/examples/simple-query.php b/examples/simple-query.php index 7ff68c9ed..9b967029e 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -36,7 +36,7 @@ } $client->setDeveloperKey($apiKey); -$service = new Google_Service_Books($client); +$service = new Google\Service\Books($client); /************************************************ We make a call to our service, which will @@ -70,7 +70,7 @@ array. Some calls will return a single item which we can immediately use. The individual responses - are typed as Google_Service_Books_Volume, but + are typed as Google\Service\Books_Volume, but can be treated as an array. ************************************************/ ?> diff --git a/phpunit.xml.dist b/phpunit.xml.dist index da9664ea9..2acef56c2 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -13,7 +13,7 @@ - ./src/Google + ./src diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 4e51e8bb4..c7377395f 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -15,6 +15,10 @@ * limitations under the License. */ +namespace Google\Tests; + +use Google\Client; +use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\ClientInterface; use Symfony\Component\DomCrawler\Crawler; use League\Flysystem\Adapter\Local; @@ -62,14 +66,12 @@ private function createClient() $options = ['defaults' => $options]; } - $httpClient = new GuzzleHttp\Client($options); + $httpClient = new GuzzleClient($options); - $client = new Google_Client(); + $client = new Client(); $client->setApplicationName('google-api-php-client-tests'); $client->setHttpClient($httpClient); $client->setScopes([ - "https://www.googleapis.com/auth/plus.me", - "https://www.googleapis.com/auth/urlshortener", "https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/youtube", @@ -115,7 +117,7 @@ public function checkToken() return true; } - public function tryToGetAnAccessToken(Google_Client $client) + public function tryToGetAnAccessToken(Client $client) { $this->checkClientCredentials(); diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index b2972ee74..1db83fa41 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -1,7 +1,5 @@ reveal()); + $revoke = new Revoke($http->reveal()); $this->assertTrue($revoke->revokeToken($t)); $this->assertEquals($accessToken, $token); // Test with refresh token. - $revoke = new Google_AccessToken_Revoke($http->reveal()); + $revoke = new Revoke($http->reveal()); $t = [ 'access_token' => $accessToken, 'refresh_token' => $refreshToken, @@ -94,7 +98,7 @@ public function testRevokeAccessGuzzle5() $this->assertEquals($refreshToken, $token); // Test with token string. - $revoke = new Google_AccessToken_Revoke($http->reveal()); + $revoke = new Revoke($http->reveal()); $t = $accessToken; $this->assertTrue($revoke->revokeToken($t)); $this->assertEquals($accessToken, $token); @@ -130,12 +134,12 @@ public function testRevokeAccessGuzzle6Or7() ]; // Test with access token. - $revoke = new Google_AccessToken_Revoke($http->reveal()); + $revoke = new Revoke($http->reveal()); $this->assertTrue($revoke->revokeToken($t)); $this->assertEquals($accessToken, $token); // Test with refresh token. - $revoke = new Google_AccessToken_Revoke($http->reveal()); + $revoke = new Revoke($http->reveal()); $t = [ 'access_token' => $accessToken, 'refresh_token' => $refreshToken, @@ -147,7 +151,7 @@ public function testRevokeAccessGuzzle6Or7() $this->assertEquals($refreshToken, $token); // Test with token string. - $revoke = new Google_AccessToken_Revoke($http->reveal()); + $revoke = new Revoke($http->reveal()); $t = $accessToken; $this->assertTrue($revoke->revokeToken($t)); $this->assertEquals($accessToken, $token); diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index dbcaa6f33..f9c75fb5c 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -19,7 +19,13 @@ * under the License. */ -class Google_AccessToken_VerifyTest extends BaseTest +namespace Google\Tests\AccessToken; + +use Google\AccessToken\Verify; +use Google\Tests\BaseTest; +use ReflectionMethod; + +class VerifyTest extends BaseTest { /** * This test needs to run before the other verify tests, @@ -28,7 +34,7 @@ class Google_AccessToken_VerifyTest extends BaseTest public function testPhpsecConstants() { $client = $this->getClient(); - $verify = new Google_AccessToken_Verify($client->getHttpClient()); + $verify = new Verify($client->getHttpClient()); // set these to values that will be changed if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED') || defined('CRYPT_RSA_MODE')) { @@ -68,7 +74,7 @@ public function testValidateIdToken() $this->assertCount(3, $segments); // Extract the client ID in this case as it wont be set on the test client. $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Google_AccessToken_Verify($http); + $verify = new Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertArrayHasKey('sub', $payload); $this->assertGreaterThan(0, strlen($payload['sub'])); @@ -79,7 +85,7 @@ public function testValidateIdToken() $client = $this->getClient(); $http = $client->getHttpClient(); $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Google_AccessToken_Verify($http); + $verify = new Verify($http); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); $this->assertArrayHasKey('sub', $payload); $this->assertGreaterThan(0, strlen($payload['sub'])); @@ -106,7 +112,7 @@ public function testLeewayIsUnchangedWhenPassingInJwt() $this->assertCount(3, $segments); // Extract the client ID in this case as it wont be set on the test client. $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Google_AccessToken_Verify($client->getHttpClient(), null, $jwt); + $verify = new Verify($client->getHttpClient(), null, $jwt); $payload = $verify->verifyIdToken($token['id_token'], $data->aud); // verify the leeway is set as it was $this->assertEquals($leeway, $jwt::$leeway); @@ -115,12 +121,12 @@ public function testLeewayIsUnchangedWhenPassingInJwt() public function testRetrieveCertsFromLocation() { $client = $this->getClient(); - $verify = new Google_AccessToken_Verify($client->getHttpClient()); + $verify = new Verify($client->getHttpClient()); // make this method public for testing purposes $method = new ReflectionMethod($verify, 'retrieveCertsFromLocation'); $method->setAccessible(true); - $certs = $method->invoke($verify, Google_AccessToken_Verify::FEDERATED_SIGNON_CERT_URL); + $certs = $method->invoke($verify, Verify::FEDERATED_SIGNON_CERT_URL); $this->assertArrayHasKey('keys', $certs); $this->assertGreaterThan(1, count($certs['keys'])); diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index f15c05935..2c1af30e4 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -18,10 +18,14 @@ * under the License. */ -use GuzzleHttp\Client; +namespace Google\Tests; + +use Google\Client; use Google\Auth\Cache\MemoryCacheItemPool; +use Google\Service\Drive; +use DateTime; -class Google_CacheTest extends BaseTest +class CacheTest extends BaseTest { public function testInMemoryCache() { @@ -39,7 +43,7 @@ public function testInMemoryCache() } /* Make a service call */ - $service = new Google_Service_Drive($client); + $service = new Drive($client); $files = $service->files->listFiles(); $this->assertInstanceOf('Google_Service_Drive_FileList', $files); } @@ -49,7 +53,7 @@ public function testFileCache() $this->onlyPhp55AndAbove(); $this->checkServiceAccountCredentials(); - $client = new Google_Client(); + $client = new Client(); $client->useApplicationDefaultCredentials(); $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); // filecache with new cache dir @@ -73,14 +77,14 @@ public function testFileCache() } /* Make a service call */ - $service = new Google_Service_Drive($client); + $service = new Drive($client); $files = $service->files->listFiles(); - $this->assertInstanceOf('Google_Service_Drive_FileList', $files); + $this->assertInstanceOf(Drive\FileList::class, $files); - sleep(1); + sleep(2); // make sure the token expires - $client = new Google_Client(); + $client = new Client(); $client->useApplicationDefaultCredentials(); $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); $client->setCache($cache); @@ -90,9 +94,9 @@ public function testFileCache() }); /* Make another service call */ - $service = new Google_Service_Drive($client); + $service = new Drive($client); $files = $service->files->listFiles(); - $this->assertInstanceOf('Google_Service_Drive_FileList', $files); + $this->assertInstanceOf(Drive\FileList::class, $files); $this->assertNotEquals($token1, $token2); } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index b53a0a397..a7b6bd9f4 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -18,17 +18,31 @@ * under the License. */ -use GuzzleHttp\Client; +namespace Google\Tests; + +use Google\Client; +use Google\Service\Drive; +use Google\AuthHandler\AuthHandlerFactory; +use Google\Auth\FetchAuthTokenCache; +use Google\Auth\GCECache; +use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; +use GuzzleHttp\Exception\ClientException; use Prophecy\Argument; use Psr\Http\Message\RequestInterface; - -class Google_ClientTest extends BaseTest +use Psr\Cache\CacheItemInterface; +use Psr\Cache\CacheItemPoolInterface; +use ReflectionClass; +use ReflectionMethod; +use InvalidArgumentException; +use Exception; + +class ClientTest extends BaseTest { public function testClientConstructor() { - $this->assertInstanceOf('Google_Client', $this->getClient()); + $this->assertInstanceOf(Client::class, $this->getClient()); } public function testSignAppKey() @@ -36,7 +50,7 @@ public function testSignAppKey() $client = $this->getClient(); $client->setDeveloperKey('devKey'); - $http = new Client(); + $http = new GuzzleClient(); $client->authorize($http); $this->checkAuthHandler($http, 'Simple'); @@ -93,7 +107,7 @@ private function checkCredentials($http, $fetcherClass, $sub = null) $property = $class->getProperty('fetcher'); $property->setAccessible(true); $cacheFetcher = $property->getValue($auth); - $this->assertInstanceOf('Google\Auth\FetchAuthTokenCache', $cacheFetcher); + $this->assertInstanceOf(FetchAuthTokenCache::class, $cacheFetcher); $class = new ReflectionClass(get_class($cacheFetcher)); $property = $class->getProperty('fetcher'); @@ -116,7 +130,7 @@ public function testSignAccessToken() { $client = $this->getClient(); - $http = new Client(); + $http = new GuzzleClient(); $client->setAccessToken([ 'access_token' => 'test_token', 'expires_in' => 3600, @@ -179,7 +193,7 @@ public function testCreateAuthUrl() public function testPrepareNoScopes() { - $client = new Google_Client(); + $client = new Client(); $scopes = $client->prepareScopes(); $this->assertNull($scopes); @@ -187,7 +201,7 @@ public function testPrepareNoScopes() public function testNoAuthIsNull() { - $client = new Google_Client(); + $client = new Client(); $this->assertNull($client->getAccessToken()); } @@ -196,7 +210,7 @@ public function testPrepareService() { $this->onlyGuzzle6Or7(); - $client = new Google_Client(); + $client = new Client(); $client->setScopes(array("scope1", "scope2")); $scopes = $client->prepareScopes(); $this->assertEquals("scope1 scope2", $scopes); @@ -248,13 +262,13 @@ public function testPrepareService() ->willReturn($response->reveal()); $client->setHttpClient($http->reveal()); - $dr_service = new Google_Service_Drive($client); - $this->assertInstanceOf('Google_Model', $dr_service->files->listFiles()); + $dr_service = new Drive($client); + $this->assertInstanceOf('Google\Model', $dr_service->files->listFiles()); } public function testDefaultLogger() { - $client = new Google_Client(); + $client = new Client(); $logger = $client->getLogger(); $this->assertInstanceOf('Monolog\Logger', $logger); $handler = $logger->popHandler(); @@ -264,7 +278,7 @@ public function testDefaultLogger() public function testDefaultLoggerAppEngine() { $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Google_Client(); + $client = new Client(); $logger = $client->getLogger(); $handler = $logger->popHandler(); unset($_SERVER['SERVER_SOFTWARE']); @@ -275,7 +289,7 @@ public function testDefaultLoggerAppEngine() public function testSettersGetters() { - $client = new Google_Client(); + $client = new Client(); $client->setClientId("client1"); $client->setClientSecret('client1secret'); $client->setState('1'); @@ -285,9 +299,9 @@ public function testSettersGetters() $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); - $cache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $cache = $this->prophesize(CacheItemPoolInterface::class); $client->setCache($cache->reveal()); - $this->assertInstanceOf('Psr\Cache\CacheItemPoolInterface', $client->getCache()); + $this->assertInstanceOf(CacheItemPoolInterface::class, $client->getCache()); try { $client->setAccessToken(null); @@ -303,7 +317,7 @@ public function testSettersGetters() public function testDefaultConfigOptions() { - $client = new Google_Client(); + $client = new Client(); if ($this->isGuzzle6() || $this->isGuzzle7()) { $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); @@ -321,7 +335,7 @@ public function testAppEngineStreamHandlerConfig() $this->onlyGuzzle5(); $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Google_Client(); + $client = new Client(); // check Stream Handler is used $http = $client->getHttpClient(); @@ -345,7 +359,7 @@ public function testAppEngineVerifyConfig() $this->onlyGuzzle5(); $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Google_Client(); + $client = new Client(); $this->assertEquals( '/etc/ca-certificates.crt', @@ -358,7 +372,7 @@ public function testAppEngineVerifyConfig() public function testJsonConfig() { // Device config - $client = new Google_Client(); + $client = new Client(); $device = '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://oauth2.googleapis.com/token",'. @@ -372,7 +386,7 @@ public function testJsonConfig() $this->assertEquals($client->getRedirectUri(), $dObj['installed']['redirect_uris'][0]); // Web config - $client = new Google_Client(); + $client = new Client(); $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://oauth2.googleapis.com/token"' . ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. @@ -389,7 +403,7 @@ public function testJsonConfig() public function testIniConfig() { $config = parse_ini_file(__DIR__ . '/../config/test.ini'); - $client = new Google_Client($config); + $client = new Client($config); $this->assertEquals('My Test application', $client->getConfig('application_name')); $this->assertEquals( @@ -401,7 +415,7 @@ public function testIniConfig() public function testNoAuth() { /** @var $noAuth Google_Auth_Simple */ - $client = new Google_Client(); + $client = new Client(); $client->setDeveloperKey(null); // unset application credentials @@ -409,7 +423,7 @@ public function testNoAuth() $HOME = getenv('HOME'); putenv('GOOGLE_APPLICATION_CREDENTIALS='); putenv('HOME='.sys_get_temp_dir()); - $http = new Client(); + $http = new GuzzleClient(); $client->authorize($http); putenv("GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"); @@ -422,10 +436,10 @@ public function testApplicationDefaultCredentials() $this->checkServiceAccountCredentials(); $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - $client = new Google_Client(); + $client = new Client(); $client->setAuthConfig($credentialsFile); - $http = new Client(); + $http = new GuzzleClient(); $client->authorize($http); $this->checkAuthHandler($http, 'AuthToken'); @@ -438,11 +452,11 @@ public function testApplicationDefaultCredentialsWithSubject() $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); $sub = 'sub123'; - $client = new Google_Client(); + $client = new Client(); $client->setAuthConfig($credentialsFile); $client->setSubject($sub); - $http = new Client(); + $http = new GuzzleClient(); $client->authorize($http); $this->checkAuthHandler($http, 'AuthToken'); @@ -481,7 +495,7 @@ public function testRefreshTokenSetsValues() $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { - $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) ->shouldBeCalledTimes(1) ->willReturn($guzzle5Request); @@ -535,7 +549,7 @@ public function testRefreshTokenIsSetOnRefresh() $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { - $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) ->willReturn($guzzle5Request); @@ -587,7 +601,7 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() $http = $this->prophesize('GuzzleHttp\ClientInterface'); if ($this->isGuzzle5()) { - $guzzle5Request = new GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) ->willReturn($guzzle5Request); @@ -666,7 +680,7 @@ public function testBadSubjectThrowsException() $client->useApplicationDefaultCredentials(); $client->setSubject('bad-subject'); - $authHandler = Google_AuthHandler_AuthHandlerFactory::build(); + $authHandler = AuthHandlerFactory::build(); // make this method public for testing purposes $method = new ReflectionMethod($authHandler, 'createAuthHttp'); @@ -676,7 +690,7 @@ public function testBadSubjectThrowsException() try { $token = $client->fetchAccessTokenWithAssertion($authHttp); $this->fail('no exception thrown'); - } catch (GuzzleHttp\Exception\ClientException $e) { + } catch (ClientException $e) { $response = $e->getResponse(); $this->assertContains('Invalid impersonation', (string) $response->getBody()); } @@ -766,7 +780,7 @@ public function testDefaultTokenCallback() /** @runInSeparateProcess */ public function testOnGceCacheAndCacheOptions() { - if (!class_exists('Google\Auth\GCECache')) { + if (!class_exists(GCECache::class)) { $this->markTestSkipped('Requires google/auth >= 1.12'); } @@ -775,19 +789,19 @@ public function testOnGceCacheAndCacheOptions() $prefix = 'test_prefix_'; $cacheConfig = ['gce_prefix' => $prefix]; - $mockCacheItem = $this->prophesize('Psr\Cache\CacheItemInterface'); + $mockCacheItem = $this->prophesize(CacheItemInterface::class); $mockCacheItem->isHit() ->willReturn(true); $mockCacheItem->get() ->shouldBeCalledTimes(1) ->willReturn(true); - $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); - $mockCache->getItem($prefix . Google\Auth\GCECache::GCE_CACHE_KEY) + $mockCache = $this->prophesize(CacheItemPoolInterface::class); + $mockCache->getItem($prefix . GCECache::GCE_CACHE_KEY) ->shouldBeCalledTimes(1) ->willReturn($mockCacheItem->reveal()); - $client = new Google_Client(['cache_config' => $cacheConfig]); + $client = new Client(['cache_config' => $cacheConfig]); $client->setCache($mockCache->reveal()); $client->useApplicationDefaultCredentials(); $client->authorize(); @@ -798,7 +812,7 @@ public function testFetchAccessTokenWithAssertionCache() { $this->checkServiceAccountCredentials(); $cachedValue = ['access_token' => '2/abcdef1234567890']; - $mockCacheItem = $this->prophesize('Psr\Cache\CacheItemInterface'); + $mockCacheItem = $this->prophesize(CacheItemInterface::class); $mockCacheItem->isHit() ->shouldBeCalledTimes(1) ->willReturn(true); @@ -806,12 +820,12 @@ public function testFetchAccessTokenWithAssertionCache() ->shouldBeCalledTimes(1) ->willReturn($cachedValue); - $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); + $mockCache = $this->prophesize(CacheItemPoolInterface::class); $mockCache->getItem(Argument::any()) ->shouldBeCalledTimes(1) ->willReturn($mockCacheItem->reveal()); - $client = new Google_Client(); + $client = new Client(); $client->setCache($mockCache->reveal()); $client->useApplicationDefaultCredentials(); $token = $client->fetchAccessTokenWithAssertion(); @@ -821,8 +835,8 @@ public function testFetchAccessTokenWithAssertionCache() public function testCacheClientOption() { - $mockCache = $this->prophesize('Psr\Cache\CacheItemPoolInterface'); - $client = new Google_Client([ + $mockCache = $this->prophesize(CacheItemPoolInterface::class); + $client = new Client([ 'cache' => $mockCache->reveal() ]); $this->assertEquals($mockCache->reveal(), $client->getCache()); @@ -832,17 +846,20 @@ public function testExecuteWithFormat() { $this->onlyGuzzle6Or7(); - $client = new Google_Client([ + $client = new Client([ 'api_format_v2' => true ]); $guzzle = $this->prophesize('GuzzleHttp\Client'); - $guzzle->send(Argument::allOf( + $guzzle + ->send(Argument::allOf( Argument::type('Psr\Http\Message\RequestInterface'), Argument::that(function (RequestInterface $request) { return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; }) - ), [])->willReturn(new Response(200, [], null)); + ), []) + ->shouldBeCalled() + ->willReturn(new Response(200, [], null)); $client->setHttpClient($guzzle->reveal()); @@ -854,19 +871,19 @@ public function testExecuteSetsCorrectHeaders() { $this->onlyGuzzle6Or7(); - $client = new Google_Client(); + $client = new Client(); $guzzle = $this->prophesize('GuzzleHttp\Client'); $guzzle->send(Argument::that(function (RequestInterface $request) { $userAgent = sprintf( '%s%s', - Google_Client::USER_AGENT_SUFFIX, - Google_Client::LIBVER + Client::USER_AGENT_SUFFIX, + Client::LIBVER ); $xGoogApiClient = sprintf( 'gl-php/%s gdcl/%s', phpversion(), - Google_Client::LIBVER + Client::LIBVER ); if ($request->getHeaderLine('User-Agent') !== $userAgent) { @@ -900,31 +917,31 @@ public function testClientOptions() ]; $tmpCredFile = tempnam(sys_get_temp_dir(), 'creds') . '.json'; file_put_contents($tmpCredFile, json_encode($tmpCreds)); - $client = new Google_Client([ + $client = new Client([ 'credentials' => $tmpCredFile ]); $this->assertEquals('foo', $client->getClientId()); // Test credentials array - $client = new Google_Client([ + $client = new Client([ 'credentials' => $tmpCredFile ]); $this->assertEquals('foo', $client->getClientId()); // Test singular scope - $client = new Google_Client([ + $client = new Client([ 'scopes' => 'a-scope' ]); $this->assertEquals(['a-scope'], $client->getScopes()); // Test multiple scopes - $client = new Google_Client([ + $client = new Client([ 'scopes' => ['one-scope', 'two-scope'] ]); $this->assertEquals(['one-scope', 'two-scope'], $client->getScopes()); // Test quota project - $client = new Google_Client([ + $client = new Client([ 'quota_project' => 'some-quota-project' ]); $this->assertEquals('some-quota-project', $client->getConfig('quota_project')); diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index ed3f25f63..021cad2c1 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -18,104 +18,49 @@ * under the License. */ +namespace Google\Tests\Http; + +use Google\Tests\BaseTest; +use Google\Http\Batch; +use Google\Service\Books; +use Google\Service\Storage; +use Google\Service\Exception as ServiceException; use GuzzleHttp\Psr7; -class Google_Http_BatchTest extends BaseTest +class BatchTest extends BaseTest { - public function testBatchRequestWithAuth() - { - $this->checkToken(); - - $client = $this->getClient(); - $batch = new Google_Http_Batch($client); - $plus = new Google_Service_Plus($client); - - $client->setUseBatch(true); - $batch->add($plus->people->get('me'), 'key1'); - $batch->add($plus->people->get('me'), 'key2'); - $batch->add($plus->people->get('me'), 'key3'); - - $result = $batch->execute(); - $this->assertArrayHasKey('response-key1', $result); - $this->assertArrayHasKey('response-key2', $result); - $this->assertArrayHasKey('response-key3', $result); - - } - public function testBatchRequest() { $this->checkKey(); $client = $this->getClient(); - $plus = new Google_Service_Plus($client); - $batch = $plus->createBatch(); - - $batch->add($plus->people->get('+LarryPage'), 'key1'); - $batch->add($plus->people->get('+LarryPage'), 'key2'); - $batch->add($plus->people->get('+LarryPage'), 'key3'); - - $result = $batch->execute(); - $this->assertArrayHasKey('response-key1', $result); - $this->assertArrayHasKey('response-key2', $result); - $this->assertArrayHasKey('response-key3', $result); - } - - public function testBatchRequestWithBooksApi() - { - $this->checkKey(); - $client = $this->getClient(); - $plus = new Google_Service_Plus($client); - $batch = $plus->createBatch(); - - $batch->add($plus->people->get('+LarryPage'), 'key1'); - $batch->add($plus->people->get('+LarryPage'), 'key2'); - $batch->add($plus->people->get('+LarryPage'), 'key3'); - - $result = $batch->execute(); - $this->assertArrayHasKey('response-key1', $result); - $this->assertArrayHasKey('response-key2', $result); - $this->assertArrayHasKey('response-key3', $result); - } - - public function testBatchRequestWithPostBody() - { - $this->checkToken(); - - $client = $this->getClient(); - $shortener = new Google_Service_Urlshortener($client); - $batch = $shortener->createBatch(); - - $url1 = new Google_Service_Urlshortener_Url; - $url2 = new Google_Service_Urlshortener_Url; - $url3 = new Google_Service_Urlshortener_Url; - $url1->setLongUrl('http://brentertainment.com'); - $url2->setLongUrl('http://morehazards.com'); - $url3->setLongUrl('http://github.com/bshaffer'); + $client->setUseBatch(true); + $books = new Books($client); + $batch = $books->createBatch(); - $batch->add($shortener->url->insert($url1), 'key1'); - $batch->add($shortener->url->insert($url2), 'key2'); - $batch->add($shortener->url->insert($url3), 'key3'); + $batch->add($books->volumes->listVolumes('Henry David Thoreau'), 'key1'); + $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); $result = $batch->execute(); $this->assertArrayHasKey('response-key1', $result); $this->assertArrayHasKey('response-key2', $result); - $this->assertArrayHasKey('response-key3', $result); } public function testInvalidBatchRequest() { $this->checkKey(); $client = $this->getClient(); - $plus = new Google_Service_Plus($client); - - $batch = $plus->createBatch(); + $client->setUseBatch(true); + $books = new Books($client); + $batch = $books->createBatch(); - $batch->add($plus->people->get('123456789987654321'), 'key1'); - $batch->add($plus->people->get('+LarryPage'), 'key2'); + $batch->add($books->volumes->listVolumes(false), 'key1'); + $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); $result = $batch->execute(); + $this->assertArrayHasKey('response-key1', $result); $this->assertArrayHasKey('response-key2', $result); $this->assertInstanceOf( - 'Google_Service_Exception', + ServiceException::class, $result['response-key1'] ); } @@ -123,7 +68,7 @@ public function testInvalidBatchRequest() public function testMediaFileBatch() { $client = $this->getClient(); - $storage = new Google_Service_Storage($client); + $storage = new Storage($client); $bucket = 'testbucket'; $stream = Psr7\stream_for("testbucket-text"); $params = [ @@ -132,7 +77,7 @@ public function testMediaFileBatch() ]; // Metadata object for new Google Cloud Storage object - $obj = new Google_Service_Storage_StorageObject(); + $obj = new Storage\StorageObject(); $obj->contentType = "text/plain"; // Batch Upload diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index 911424ad8..f04f6ea12 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -1,8 +1,5 @@ getClient(); $request = new Request('POST', 'http://www.example.com'); - $media = new Google_Http_MediaFileUpload( + $media = new MediaFileUpload( $client, $request, 'image/png', @@ -46,15 +51,15 @@ public function testGetUploadType() $request = new Request('POST', 'http://www.example.com'); // Test resumable upload - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', true); + $media = new MediaFileUpload($client, $request, 'image/png', 'a', true); $this->assertEquals('resumable', $media->getUploadType(null)); // Test data *only* uploads - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); + $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); $this->assertEquals('media', $media->getUploadType(null)); // Test multipart uploads - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', 'a', false); + $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); } @@ -65,7 +70,7 @@ public function testProcess() // Test data *only* uploads. $request = new Request('POST', 'http://www.example.com'); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); + $media = new MediaFileUpload($client, $request, 'image/png', $data, false); $request = $media->getRequest(); $this->assertEquals($data, (string) $request->getBody()); @@ -73,7 +78,7 @@ public function testProcess() $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); $request = $request->withBody(Psr7\stream_for($reqData)); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, true); + $media = new MediaFileUpload($client, $request, 'image/png', $data, true); $request = $media->getRequest(); $this->assertEquals(json_decode($reqData), (string) $request->getBody()); @@ -81,7 +86,7 @@ public function testProcess() $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); $request = $request->withBody(Psr7\stream_for($reqData)); - $media = new Google_Http_MediaFileUpload($client, $request, 'image/png', $data, false); + $media = new MediaFileUpload($client, $request, 'image/png', $data, false); $request = $media->getRequest(); $this->assertContains($reqData, (string) $request->getBody()); $this->assertContains(base64_encode($data), (string) $request->getBody()); @@ -93,8 +98,8 @@ public function testGetResumeUri() $client = $this->getClient(); $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Google_Service_Drive($client); - $file = new Google_Service_Drive_DriveFile(); + $service = new Drive($client); + $file = new Drive\DriveFile(); $file->name = 'TESTFILE-testGetResumeUri'; $chunkSizeBytes = 1 * 1024 * 1024; @@ -103,7 +108,7 @@ public function testGetResumeUri() $request = $service->files->create($file); // Create a media file upload to represent our upload process. - $media = new Google_Http_MediaFileUpload( + $media = new MediaFileUpload( $client, $request, 'text/plain', @@ -114,7 +119,7 @@ public function testGetResumeUri() // request the resumable url $uri = $media->getResumeUri(); - $this->assertInternalType('string', $uri); + $this->assertIsString($uri); // parse the URL $parts = parse_url($uri); @@ -133,10 +138,10 @@ public function testNextChunk() $client = $this->getClient(); $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Google_Service_Drive($client); + $service = new Drive($client); $data = 'foo'; - $file = new Google_Service_Drive_DriveFile(); + $file = new Drive\DriveFile(); $file->name = $name = 'TESTFILE-testNextChunk'; // Call the API with the media upload, defer so it doesn't immediately return. @@ -144,7 +149,7 @@ public function testNextChunk() $request = $service->files->create($file); // Create a media file upload to represent our upload process. - $media = new Google_Http_MediaFileUpload( + $media = new MediaFileUpload( $client, $request, 'text/plain', @@ -155,7 +160,7 @@ public function testNextChunk() // upload the file $file = $media->nextChunk($data); - $this->assertInstanceOf('Google_Service_Drive_DriveFile', $file); + $this->assertInstanceOf(Drive\DriveFile::class, $file); $this->assertEquals($name, $file->name); // remove the file @@ -170,11 +175,11 @@ public function testNextChunkWithMoreRemaining() $client = $this->getClient(); $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Google_Service_Drive($client); + $service = new Drive($client); $chunkSizeBytes = 262144; // smallest chunk size allowed by APIs $data = str_repeat('.', $chunkSizeBytes+1); - $file = new Google_Service_Drive_DriveFile(); + $file = new Drive\DriveFile(); $file->name = $name = 'TESTFILE-testNextChunkWithMoreRemaining'; // Call the API with the media upload, defer so it doesn't immediately return. @@ -182,7 +187,7 @@ public function testNextChunkWithMoreRemaining() $request = $service->files->create($file); // Create a media file upload to represent our upload process. - $media = new Google_Http_MediaFileUpload( + $media = new MediaFileUpload( $client, $request, 'text/plain', diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 9f28cc269..6df7d3bc7 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -15,20 +15,26 @@ * limitations under the License. */ +namespace Google\Tests\Http; + +use Google\Http\REST; +use Google\Service\Exception as ServiceException; +use Google\Tests\BaseTest; +use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; -class Google_HTTP_RESTTest extends BaseTest +class RESTTest extends BaseTest { /** - * @var Google_Http_REST $rest + * @var REST $rest */ private $rest; public function setUp(): void { - $this->rest = new Google_Http_REST(); + $this->rest = new REST(); $this->request = new Request('GET', '/'); } @@ -63,17 +69,17 @@ public function testDecodeMediaResponse() } - /** @expectedException Google_Service_Exception */ public function testDecode500ResponseThrowsException() { + $this->expectException(ServiceException::class); $response = new Response(500); $this->rest->decodeHttpResponse($response, $this->request); } - /** @expectedException Google_Service_Exception */ public function testExceptionResponse() { - $http = new GuzzleHttp\Client(); + $this->expectException(ServiceException::class); + $http = new GuzzleClient(); $request = new Request('GET', 'http://httpbin.org/status/500'); $response = $this->rest->doExecute($http, $request); @@ -87,11 +93,9 @@ public function testDecodeEmptyResponse() $this->assertEquals('{}', (string) $decoded->getBody()); } - /** - * @expectedException Google_Service_Exception - */ public function testBadErrorFormatting() { + $this->expectException(ServiceException::class); $stream = Psr7\stream_for( '{ "error": { @@ -104,11 +108,9 @@ public function testBadErrorFormatting() $this->rest->decodeHttpResponse($response, $this->request); } - /** - * @expectedException Google_Service_Exception - */ public function tesProperErrorFormatting() { + $this->expectException(ServiceException::class); $stream = Psr7\stream_for( '{ error: { @@ -129,11 +131,9 @@ public function tesProperErrorFormatting() $this->rest->decodeHttpResponse($response, $this->request); } - /** - * @expectedException Google_Service_Exception - */ public function testNotJson404Error() { + $this->expectException(ServiceException::class); $stream = Psr7\stream_for('Not Found'); $response = new Response(404, array(), $stream); $this->rest->decodeHttpResponse($response, $this->request); diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index d1480868b..240faabcc 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -18,7 +18,15 @@ * under the License. */ -class Google_ModelTest extends BaseTest +namespace Google\Tests; + +use Google\Model; +use Google\Service\AdExchangeBuyer; +use Google\Service\Calendar; +use Google\Service\Dfareporting; +use Google\Service\Drive; + +class ModelTest extends BaseTest { private $calendarData = '{ "kind": "calendar#event", @@ -56,12 +64,12 @@ class Google_ModelTest extends BaseTest public function testIntentionalNulls() { $data = json_decode($this->calendarData, true); - $event = new Google_Service_Calendar_Event($data); + $event = new Calendar\Event($data); $obj = json_decode(json_encode($event->toSimpleObject()), true); $this->assertArrayHasKey('date', $obj['start']); $this->assertArrayNotHasKey('dateTime', $obj['start']); - $date = new Google_Service_Calendar_EventDateTime(); - $date->setDate(Google_Model::NULL_VALUE); + $date = new Calendar\EventDateTime(); + $date->setDate(Model::NULL_VALUE); $event->setStart($date); $obj = json_decode(json_encode($event->toSimpleObject()), true); $this->assertNull($obj['start']['date']); @@ -71,8 +79,8 @@ public function testIntentionalNulls() public function testModelMutation() { $data = json_decode($this->calendarData, true); - $event = new Google_Service_Calendar_Event($data); - $date = new Google_Service_Calendar_EventDateTime(); + $event = new Calendar\Event($data); + $date = new Calendar\EventDateTime(); date_default_timezone_set('UTC'); $dateString = Date("c"); $summary = "hello"; @@ -85,14 +93,14 @@ public function testModelMutation() $this->assertEquals($dateString, $simpleEvent->end->date); $this->assertEquals($summary, $simpleEvent->summary); - $event2 = new Google_Service_Calendar_Event(); + $event2 = new Calendar\Event(); $this->assertNull($event2->getStart()); } public function testVariantTypes() { - $file = new Google_Service_Drive_DriveFile(); - $metadata = new Google_Service_Drive_DriveFileImageMediaMetadata(); + $file = new Drive\DriveFile(); + $metadata = new Drive\DriveFileImageMediaMetadata(); $metadata->setCameraMake('Pokémon Snap'); $file->setImageMediaMetadata($metadata); $data = json_decode(json_encode($file->toSimpleObject()), true); @@ -101,7 +109,7 @@ public function testVariantTypes() public function testOddMappingNames() { - $creative = new Google_Service_AdExchangeBuyer_Creative(); + $creative = new AdExchangeBuyer\Creative(); $creative->setAccountId('12345'); $creative->setBuyerCreativeId('12345'); $creative->setAdvertiserName('Hi'); @@ -118,13 +126,13 @@ public function testOddMappingNames() public function testJsonStructure() { - $model = new Google_Model(); + $model = new Model(); $model->publicA = "This is a string"; - $model2 = new Google_Model(); + $model2 = new Model(); $model2->publicC = 12345; $model2->publicD = null; $model->publicB = $model2; - $model3 = new Google_Model(); + $model3 = new Model(); $model3->publicE = 54321; $model3->publicF = null; $model->publicG = array($model3, "hello", false); @@ -146,14 +154,14 @@ public function testJsonStructure() public function testIssetPropertyOnModel() { - $model = new Google_Model(); + $model = new Model(); $model['foo'] = 'bar'; $this->assertTrue(isset($model->foo)); } public function testUnsetPropertyOnModel() { - $model = new Google_Model(); + $model = new Model(); $model['foo'] = 'bar'; unset($model->foo); $this->assertFalse(isset($model->foo)); @@ -176,7 +184,7 @@ public function testCollectionWithItemsFromConstructor() }', true ); - $collection = new Google_Service_Calendar_Events($data); + $collection = new Calendar\Events($data); $this->assertCount(4, $collection); $count = 0; foreach ($collection as $col) { @@ -197,12 +205,12 @@ public function testCollectionWithItemsFromSetter() }', true ); - $collection = new Google_Service_Calendar_Events($data); + $collection = new Calendar\Events($data); $collection->setItems([ - new Google_Service_Calendar_Event(['id' => 1]), - new Google_Service_Calendar_Event(['id' => 2]), - new Google_Service_Calendar_Event(['id' => 3]), - new Google_Service_Calendar_Event(['id' => 4]), + new Calendar\Event(['id' => 1]), + new Calendar\Event(['id' => 2]), + new Calendar\Event(['id' => 3]), + new Calendar\Event(['id' => 4]), ]); $this->assertCount(4, $collection); $count = 0; @@ -224,30 +232,30 @@ public function testMapDataType() }', true ); - $collection = new Google_Service_Calendar_Colors($data); + $collection = new Calendar\Colors($data); $this->assertCount(2, $collection->calendar); $this->assertTrue(isset($collection->calendar['regular'])); $this->assertTrue(isset($collection->calendar['inverted'])); - $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); + $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); } public function testPassingInstanceInConstructor() { - $creator = new Google_Service_Calendar_EventCreator(); + $creator = new Calendar\EventCreator(); $creator->setDisplayName('Brent Shaffer'); $data = [ "creator" => $creator ]; - $event = new Google_Service_Calendar_Event($data); - $this->assertInstanceOf('Google_Service_Calendar_EventCreator', $event->getCreator()); + $event = new Calendar\Event($data); + $this->assertInstanceOf(Calendar\EventCreator::class, $event->getCreator()); $this->assertEquals('Brent Shaffer', $event->creator->getDisplayName()); } public function testPassingInstanceInConstructorForMap() { - $regular = new Google_Service_Calendar_ColorDefinition(); + $regular = new Calendar\ColorDefinition(); $regular->setBackground('#FFF'); $regular->setForeground('#000'); $data = [ @@ -256,11 +264,11 @@ public function testPassingInstanceInConstructorForMap() "inverted" => [ "background" => "#000", "foreground" => "#FFF" ], ] ]; - $collection = new Google_Service_Calendar_Colors($data); + $collection = new Calendar\Colors($data); $this->assertCount(2, $collection->calendar); $this->assertTrue(isset($collection->calendar['regular'])); $this->assertTrue(isset($collection->calendar['inverted'])); - $this->assertInstanceOf('Google_Service_Calendar_ColorDefinition', $collection->calendar['regular']); + $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); } @@ -274,7 +282,7 @@ public function testKeyTypePropertyConflict() "duration" => 0, "durationType" => "unknown", ]; - $creativeAsset = new Google_Service_Dfareporting_CreativeAsset($data); + $creativeAsset = new Dfareporting\CreativeAsset($data); $this->assertEquals(0, $creativeAsset->getDuration()); $this->assertEquals('unknown', $creativeAsset->getDurationType()); } diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 42268c75f..5fa69830f 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -15,13 +15,19 @@ * limitations under the License. */ -class Google_Service_AdSenseTest extends BaseTest +namespace Google\Tests\Service; + +use Google\Service\AdSense; +use Google\Tests\BaseTest; + +class AdSenseTest extends BaseTest { public $adsense; public function setUp(): void { + $this->markTestSkipped('Thesse tests need to be fixed'); $this->checkToken(); - $this->adsense = new Google_Service_AdSense($this->getClient()); + $this->adsense = new AdSense($this->getClient()); } public function testAccountsList() diff --git a/tests/Google/Service/PagespeedonlineTest.php b/tests/Google/Service/PagespeedonlineTest.php deleted file mode 100644 index 4ebc1837a..000000000 --- a/tests/Google/Service/PagespeedonlineTest.php +++ /dev/null @@ -1,29 +0,0 @@ -checkToken(); - $service = new Google_Service_Pagespeedonline($this->getClient()); - $psapi = $service->pagespeedapi; - $result = $psapi->runpagespeed('http://code.google.com'); - $this->assertArrayHasKey('kind', $result); - $this->assertArrayHasKey('id', $result); - } -} diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 8da5a7aa6..ca2b58f9c 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -18,17 +18,26 @@ * under the License. */ +namespace Google\Tests\Service; + +use Google\Client; +use Google\Tests\BaseTest; +use Google\Service as GoogleService; +use Google\Service\Exception as ServiceException; +use Google\Service\Resource as GoogleResource; +use Google\Exception as GoogleException; use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; +use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Stream; use GuzzleHttp\Stream\Stream as Guzzle5Stream; use Prophecy\Argument; -class Test_Google_Service extends Google_Service +class TestService extends \Google\Service { - public function __construct(Google_Client $client) + public function __construct(Client $client) { parent::__construct($client); $this->rootUrl = "https://test.example.com"; @@ -38,7 +47,7 @@ public function __construct(Google_Client $client) } } -class Test_MediaType_Stream extends Stream +class TestMediaTypeStream extends Stream { public $toStringCalled = false; @@ -50,31 +59,29 @@ public function __toString() } } -class Google_Service_ResourceTest extends BaseTest +class ResourceTest extends BaseTest { private $client; private $service; public function setUp(): void { - $this->client = $this->prophesize("Google_Client"); + $this->client = $this->prophesize(Client::class); $logger = $this->prophesize("Monolog\Logger"); $this->client->getLogger()->willReturn($logger->reveal()); $this->client->shouldDefer()->willReturn(true); - $this->client->getHttpClient()->willReturn(new GuzzleHttp\Client()); + $this->client->getHttpClient()->willReturn(new GuzzleClient()); - $this->service = new Test_Google_Service($this->client->reveal()); + $this->service = new TestService($this->client->reveal()); } - /** - * @expectedException Google_Exception - * @expectedExceptionMessage Unknown function: test->testResource->someothermethod() - */ public function testCallFailure() { - $resource = new Google_Service_Resource( + $this->expectException(GoogleException::class); + $this->expectExceptionMessage('Unknown function: test->testResource->someothermethod()'); + $resource = new GoogleResource( $this->service, "test", "testResource", @@ -93,7 +100,7 @@ public function testCallFailure() public function testCall() { - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $this->service, "test", "testResource", @@ -115,7 +122,7 @@ public function testCall() public function testCallServiceDefinedRoot() { $this->service->rootUrl = "https://sample.example.com"; - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $this->service, "test", "testResource", @@ -135,15 +142,15 @@ public function testCallServiceDefinedRoot() } /** - * Some Google Service (Google_Service_Directory_Resource_Channels and - * Google_Service_Reports_Resource_Channels) use a different servicePath value + * Some Google Service (Google\Service\Directory\Resource\Channels and + * Google\Service\Reports\Resource\Channels) use a different servicePath value * that should override the default servicePath value, it's represented by a / * before the resource path. All other Services have no / before the path */ public function testCreateRequestUriForASelfDefinedServicePath() { $this->service->servicePath = '/admin/directory/v1/'; - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $this->service, 'test', 'testResource', @@ -164,9 +171,9 @@ public function testCreateRequestUriForASelfDefinedServicePath() public function testCreateRequestUri() { $restPath = "plus/{u}"; - $service = new Google_Service($this->client->reveal()); + $service = new GoogleService($this->client->reveal()); $service->servicePath = "http://localhost/"; - $resource = new Google_Service_Resource($service, 'test', 'testResource', array()); + $resource = new GoogleResource($service, 'test', 'testResource', array()); // Test Path $params = array(); @@ -218,7 +225,7 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() $response = new Guzzle5Response(200, [], $body); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); $http->send(Argument::type('GuzzleHttp\Message\Request')) ->shouldBeCalledTimes(1) @@ -232,12 +239,12 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() ->willReturn($response); } - $client = new Google_Client(); + $client = new Client(); $client->setHttpClient($http->reveal()); - $service = new Test_Google_Service($client); + $service = new TestService($client); // set up mock objects - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $service, "test", "testResource", @@ -271,7 +278,7 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $response = new Guzzle5Response(400, [], $body); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); $http->send(Argument::type('GuzzleHttp\Message\Request')) ->shouldBeCalledTimes(1) @@ -285,12 +292,12 @@ public function testNoExpectedClassForAltMediaWithHttpFail() ->willReturn($response); } - $client = new Google_Client(); + $client = new Client(); $client->setHttpClient($http->reveal()); - $service = new Test_Google_Service($client); + $service = new TestService($client); // set up mock objects - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $service, "test", "testResource", @@ -309,7 +316,7 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $expectedClass = 'ThisShouldBeIgnored'; $decoded = $resource->call('testMethod', $arguments, $expectedClass); $this->fail('should have thrown exception'); - } catch (Google_Service_Exception $e) { + } catch (ServiceException $e) { // Alt Media on error should return a safe error $this->assertEquals('thisisnotvalidjson', $e->getMessage()); } @@ -328,7 +335,7 @@ public function testErrorResponseWithVeryLongBody() $response = new Guzzle5Response(400, [], $body); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); $http->send(Argument::type('GuzzleHttp\Message\Request')) ->shouldBeCalledTimes(1) @@ -342,12 +349,12 @@ public function testErrorResponseWithVeryLongBody() ->willReturn($response); } - $client = new Google_Client(); + $client = new Client(); $client->setHttpClient($http->reveal()); - $service = new Test_Google_Service($client); + $service = new TestService($client); // set up mock objects - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $service, "test", "testResource", @@ -366,7 +373,7 @@ public function testErrorResponseWithVeryLongBody() $expectedClass = 'ThisShouldBeIgnored'; $decoded = $resource->call('testMethod', $arguments, $expectedClass); $this->fail('should have thrown exception'); - } catch (Google_Service_Exception $e) { + } catch (ServiceException $e) { // empty message - alt=media means no message $this->assertEquals('this will be pulled into memory', $e->getMessage()); } @@ -380,7 +387,7 @@ public function testSuccessResponseWithVeryLongBody() $arguments = [['alt' => 'media']]; $request = new Request('GET', '/?alt=media'); $resource = fopen('php://temp', 'r+'); - $stream = new Test_MediaType_Stream($resource); + $stream = new TestMediaTypeStream($resource); $response = new Response(200, [], $stream); $http = $this->prophesize("GuzzleHttp\Client"); @@ -388,12 +395,12 @@ public function testSuccessResponseWithVeryLongBody() ->shouldBeCalledTimes(1) ->willReturn($response); - $client = new Google_Client(); + $client = new Client(); $client->setHttpClient($http->reveal()); - $service = new Test_Google_Service($client); + $service = new TestService($client); // set up mock objects - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $service, "test", "testResource", @@ -433,7 +440,7 @@ public function testExceptionMessage() $response = new Guzzle5Response(400, [], $body); $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new GuzzleHttp\Message\Request('GET', '/?alt=media')); + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); $http->send(Argument::type('GuzzleHttp\Message\Request')) ->shouldBeCalledTimes(1) @@ -447,12 +454,12 @@ public function testExceptionMessage() ->willReturn($response); } - $client = new Google_Client(); + $client = new Client(); $client->setHttpClient($http->reveal()); - $service = new Test_Google_Service($client); + $service = new TestService($client); // set up mock objects - $resource = new Google_Service_Resource( + $resource = new GoogleResource( $service, "test", "testResource", @@ -471,7 +478,7 @@ public function testExceptionMessage() $decoded = $resource->call('testMethod', array(array())); $this->fail('should have thrown exception'); - } catch (Google_Service_Exception $e) { + } catch (ServiceException $e) { $this->assertEquals($errors, $e->getErrors()); } } diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 87361bcd0..862509418 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -15,15 +15,20 @@ * limitations under the License. */ -class Google_Service_TasksTest extends BaseTest +namespace Google\Tests\Service; + +use Google\Service\Tasks; +use Google\Tests\BaseTest; + +class TasksTest extends BaseTest { - /** @var Google_TasksService */ + /** @var Tasks */ public $taskService; public function setUp(): void { $this->checkToken(); - $this->taskService = new Google_Service_Tasks($this->getClient()); + $this->taskService = new Tasks($this->getClient()); } public function testInsertTask() @@ -67,7 +72,7 @@ public function testListTask() private function createTaskList($name) { - $list = new Google_Service_Tasks_TaskList(); + $list = new Tasks\TaskList(); $list->title = $name; return $this->taskService->tasklists->insert($list); } @@ -75,7 +80,7 @@ private function createTaskList($name) private function createTask($title, $listId) { $tasks = $this->taskService->tasks; - $task = new Google_Service_Tasks_Task(); + $task = new Tasks\Task(); $task->title = $title; return $tasks->insert($listId, $task); } diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index 2a9381a61..d40fd0a4c 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -15,14 +15,19 @@ * limitations under the License. */ -class Google_Service_YouTubeTest extends BaseTest +namespace Google\Tests\Service; + +use Google\Service\YouTube; +use Google\Tests\BaseTest; + +class YouTubeTest extends BaseTest { - /** @var Google_Service_YouTube */ + /** @var YouTube */ public $youtube; public function setUp(): void { $this->checkToken(); - $this->youtube = new Google_Service_YouTube($this->getClient()); + $this->youtube = new YouTube($this->getClient()); } public function testMissingFieldsAreNull() @@ -31,7 +36,7 @@ public function testMissingFieldsAreNull() $opts = array("mine" => true); $channels = $this->youtube->channels->listChannels($parts, $opts); - $newChannel = new Google_Service_YouTube_Channel(); + $newChannel = new YouTube\Channel(); $newChannel->setId( $channels[0]->getId()); $newChannel->setBrandingSettings($channels[0]->getBrandingSettings()); @@ -41,35 +46,35 @@ public function testMissingFieldsAreNull() $this->assertObjectHasAttribute('etag', $simpleOriginal); $this->assertObjectNotHasAttribute('etag', $simpleNew); - $owner_details = new Google_Service_YouTube_ChannelContentOwnerDetails(); + $owner_details = new YouTube\ChannelContentOwnerDetails(); $owner_details->setTimeLinked("123456789"); - $o_channel = new Google_Service_YouTube_Channel(); + $o_channel = new YouTube\Channel(); $o_channel->setContentOwnerDetails($owner_details); $simpleManual = $o_channel->toSimpleObject(); $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $owner_details = new Google_Service_YouTube_ChannelContentOwnerDetails(); + $owner_details = new YouTube\ChannelContentOwnerDetails(); $owner_details->timeLinked = "123456789"; - $o_channel = new Google_Service_YouTube_Channel(); + $o_channel = new YouTube\Channel(); $o_channel->setContentOwnerDetails($owner_details); $simpleManual = $o_channel->toSimpleObject(); $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $owner_details = new Google_Service_YouTube_ChannelContentOwnerDetails(); + $owner_details = new YouTube\ChannelContentOwnerDetails(); $owner_details['timeLinked'] = "123456789"; - $o_channel = new Google_Service_YouTube_Channel(); + $o_channel = new YouTube\Channel(); $o_channel->setContentOwnerDetails($owner_details); $simpleManual = $o_channel->toSimpleObject(); $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $ping = new Google_Service_YouTube_ChannelConversionPing(); + $ping = new YouTube\ChannelConversionPing(); $ping->setContext("hello"); - $pings = new Google_Service_YouTube_ChannelConversionPings(); + $pings = new YouTube\ChannelConversionPings(); $pings->setPings(array($ping)); $simplePings = $pings->toSimpleObject(); $this->assertObjectHasAttribute('context', $simplePings->pings[0]); diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 72b9a10d2..cf4bd20c0 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -18,10 +18,18 @@ * under the License. */ +namespace Google\Tests; + +use Google\Client; +use Google\Model; +use Google\Service; +use Google\Http\Batch; use PHPUnit\Framework\TestCase; use Prophecy\Argument; +use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; -class TestModel extends Google_Model +class TestModel extends Model { public function mapTypes($array) { @@ -34,20 +42,22 @@ public function isAssociativeArray($array) } } -class TestService extends Google_Service +class TestService extends Service { public $batchPath = 'batch/test'; } -class Google_ServiceTest extends TestCase +class ServiceTest extends TestCase { + private static $errorMessage; + public function testCreateBatch() { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - $client = $this->prophesize('Google_Client'); + $response = $this->prophesize(ResponseInterface::class); + $client = $this->prophesize(Client::class); $client->execute(Argument::allOf( - Argument::type('Psr\Http\Message\RequestInterface'), + Argument::type(RequestInterface::class), Argument::that(function ($request) { $this->assertEquals('/batch/test', $request->getRequestTarget()); return $request; @@ -58,7 +68,7 @@ public function testCreateBatch() $model = new TestService($client->reveal()); $batch = $model->createBatch(); - $this->assertInstanceOf('Google_Http_Batch', $batch); + $this->assertInstanceOf(Batch::class, $batch); $batch->execute(); } @@ -110,7 +120,7 @@ public function testConfigConstructor() public function testNoConstructor() { $service = new TestService(); - $this->assertInstanceOf('Google_Client', $service->getClient()); + $this->assertInstanceOf(Client::class, $service->getClient()); } public function testInvalidConstructorPhp7Plus() @@ -121,7 +131,7 @@ public function testInvalidConstructorPhp7Plus() try { $service = new TestService('foo'); - } catch (TypeError $e) {} + } catch (\TypeError $e) {} $this->assertInstanceOf('TypeError', $e); $this->assertEquals( @@ -130,8 +140,6 @@ public function testInvalidConstructorPhp7Plus() ); } - private static $errorMessage; - /** @runInSeparateProcess */ public function testInvalidConstructorPhp5() { @@ -139,7 +147,7 @@ public function testInvalidConstructorPhp5() $this->markTestSkipped('PHP 5 only'); } - set_error_handler('Google_ServiceTest::handlePhp5Error'); + set_error_handler('Google\Tests\ServiceTest::handlePhp5Error'); $service = new TestService('foo'); diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index c2b81ca48..f4ff96a02 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -15,7 +15,14 @@ * limitations under the License. */ -class Google_Task_ComposerTest extends BaseTest +namespace Google\Tests\Task; + +use Google\Tests\BaseTest; +use Google\Task\Composer; +use Symfony\Component\Filesystem\Filesystem; +use InvalidArgumentException; + +class ComposerTest extends BaseTest { private static $composerBaseConfig = [ 'repositories' => [ @@ -36,47 +43,43 @@ class Google_Task_ComposerTest extends BaseTest 'minimum-stability' => 'dev', ]; - /** - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Google service "Foo" does not exist - */ public function testInvalidServiceName() { - Google_Task_Composer::cleanup($this->createMockEvent(['Foo'])); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Google service "Foo" does not exist'); + + Composer::cleanup($this->createMockEvent(['Foo'])); } - /** - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Invalid Google service name "../YouTube" - */ public function testRelatePathServiceName() { - Google_Task_Composer::cleanup($this->createMockEvent(['../YouTube'])); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid Google service name "../YouTube"'); + + Composer::cleanup($this->createMockEvent(['../YouTube'])); } - /** - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Google service "" does not exist - */ public function testEmptyServiceName() { - Google_Task_Composer::cleanup($this->createMockEvent([''])); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Google service "" does not exist'); + + Composer::cleanup($this->createMockEvent([''])); } - /** - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Invalid Google service name "YouTube*" - */ public function testWildcardServiceName() { - Google_Task_Composer::cleanup($this->createMockEvent(['YouTube*'])); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid Google service name "YouTube*"'); + + Composer::cleanup($this->createMockEvent(['YouTube*'])); } public function testRemoveServices() { $vendorDir = sys_get_temp_dir() . '/rand-' . rand(); $serviceDir = sprintf( - '%s/google/apiclient-services/src/Google/Service/', + '%s/google/apiclient-services/src/', $vendorDir ); $dirs = [ @@ -100,7 +103,7 @@ public function testRemoveServices() touch($serviceDir . $file); } $print = 'Removing 2 google services'; - Google_Task_Composer::cleanup( + Composer::cleanup( $this->createMockEvent(['ServiceToKeep'], $vendorDir, $print), $this->createMockFilesystem([ 'ServiceToDelete2', @@ -113,7 +116,7 @@ public function testRemoveServices() private function createMockFilesystem(array $files, $serviceDir) { - $mockFilesystem = $this->prophesize('Symfony\Component\Filesystem\Filesystem'); + $mockFilesystem = $this->prophesize(Filesystem::class); foreach ($files as $filename) { $file = new \SplFileInfo($serviceDir . $filename); $mockFilesystem->remove($file->getRealPath()) @@ -175,7 +178,7 @@ public function testE2E() ] ]); - $serviceDir = $dir . '/vendor/google/apiclient-services/src/Google/Service'; + $serviceDir = $dir . '/vendor/google/apiclient-services/src'; $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); $this->assertFileExists($serviceDir . '/YouTube.php'); @@ -218,7 +221,7 @@ public function testE2EBCTaskName() $composerConfig['scripts']['pre-autoload-dump'] = 'Google_Task_Composer::cleanup'; $dir = $this->runComposerInstall($composerConfig); - $serviceDir = $dir . '/vendor/google/apiclient-services/src/Google/Service'; + $serviceDir = $dir . '/vendor/google/apiclient-services/src'; $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); @@ -244,8 +247,8 @@ public function testE2EOptimized() $classmap = require_once $dir . '/vendor/composer/autoload_classmap.php'; // Verify removed services do not show up in the classmap - $this->assertArrayHasKey('Google_Service_Drive', $classmap); - $this->assertArrayNotHasKey('Google_Service_YouTube', $classmap); + $this->assertArrayHasKey('Google\Service\Drive', $classmap); + $this->assertArrayNotHasKey('Google\Service\YouTube', $classmap); } private function runComposerInstall(array $composerConfig, $dir = null) diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 3d421328b..c138484c2 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -15,14 +15,24 @@ * limitations under the License. */ +namespace Google\Tests\Task; + +use Google\Client; +use Google\Task\Runner; +use Google\Tests\BaseTest; +use Google\Http\Request as GoogleRequest; +use Google\Http\REST; +use Google\Service\Exception as ServiceException; +use Google\Task\Exception as TaskException; use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Stream\Stream as Guzzle5Stream; use Prophecy\Argument; +use Exception; -class Google_Task_RunnerTest extends BaseTest +class RunnerTest extends BaseTest { private $client; @@ -34,36 +44,37 @@ class Google_Task_RunnerTest extends BaseTest protected function setUp(): void { - $this->client = new Google_Client(); + $this->client = new Client(); } /** * @dataProvider defaultRestErrorProvider - * @expectedException Google_Service_Exception */ public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') { + $this->expectException(ServiceException::class); $this->setNextResponse($errorCode, $errorBody)->makeRequest(); } /** * @dataProvider defaultRestErrorProvider - * @expectedException Google_Service_Exception */ public function testOneRestRetryWithError($errorCode, $errorBody = '{}') { + $this->expectException(ServiceException::class); $this->setRetryConfig(array('retries' => 1)); $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); } /** * @dataProvider defaultRestErrorProvider - * @expectedException Google_Service_Exception */ public function testMultipleRestRetriesWithErrors( $errorCode, $errorBody = '{}' ) { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); } @@ -98,12 +109,13 @@ public function testMultipleRestRetriesWithSuccess( /** * @dataProvider defaultRestErrorProvider - * @expectedException Google_Service_Exception */ public function testCustomRestRetryMapReplacesDefaults( $errorCode, $errorBody = '{}' ) { + $this->expectException(ServiceException::class); + $this->setRetryMap(array()); $this->setRetryConfig(array('retries' => 5)); @@ -113,7 +125,7 @@ public function testCustomRestRetryMapReplacesDefaults( public function testCustomRestRetryMapAddsNewHandlers() { $this->setRetryMap( - array('403' => Google_Task_Runner::TASK_RETRY_ALWAYS) + array('403' => Runner::TASK_RETRY_ALWAYS) ); $this->setRetryConfig(array('retries' => 5)); @@ -125,11 +137,12 @@ public function testCustomRestRetryMapAddsNewHandlers() } /** - * @expectedException Google_Service_Exception * @dataProvider customLimitsProvider */ public function testCustomRestRetryMapWithCustomLimits($limit) { + $this->expectException(ServiceException::class); + $this->setRetryMap( array('403' => $limit) ); @@ -157,20 +170,22 @@ public function testRestTimeouts($config, $minTime) /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_Service_Exception */ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') { + $this->expectException(ServiceException::class); + $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); } /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_Service_Exception */ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 1)); $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); } @@ -178,12 +193,13 @@ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_Service_Exception */ public function testMultipleCurlRetriesWithErrors( $errorCode, $errorMessage = '' ) { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 5)); $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); } @@ -221,12 +237,13 @@ public function testMultipleCurlRetriesWithSuccess( /** * @requires extension curl * @dataProvider defaultCurlErrorProvider - * @expectedException Google_Service_Exception */ public function testCustomCurlRetryMapReplacesDefaults( $errorCode, $errorMessage = '' ) { + $this->expectException(ServiceException::class); + $this->setRetryMap(array()); $this->setRetryConfig(array('retries' => 5)); @@ -239,7 +256,7 @@ public function testCustomCurlRetryMapReplacesDefaults( public function testCustomCurlRetryMapAddsNewHandlers() { $this->setRetryMap( - array(CURLE_COULDNT_RESOLVE_PROXY => Google_Task_Runner::TASK_RETRY_ALWAYS) + array(CURLE_COULDNT_RESOLVE_PROXY => Runner::TASK_RETRY_ALWAYS) ); $this->setRetryConfig(array('retries' => 5)); @@ -252,11 +269,12 @@ public function testCustomCurlRetryMapAddsNewHandlers() /** * @requires extension curl - * @expectedException Google_Service_Exception * @dataProvider customLimitsProvider */ public function testCustomCurlRetryMapWithCustomLimits($limit) { + $this->expectException(ServiceException::class); + $this->setRetryMap( array(CURLE_COULDNT_RESOLVE_PROXY => $limit) ); @@ -288,11 +306,11 @@ public function testCurlTimeouts($config, $minTime) */ public function testBadTaskConfig($config, $message) { - $this->expectException('Google_Task_Exception'); + $this->expectException(TaskException::class); $this->expectExceptionMessage($message); $this->setRetryConfig($config); - new Google_Task_Runner( + new Runner( $this->retryConfig, '', array($this, 'testBadTaskConfig') @@ -300,48 +318,45 @@ public function testBadTaskConfig($config, $message) } /** - * @expectedException Google_Task_Exception * @expectedExceptionMessage must be a valid callable */ public function testBadTaskCallback() { + $this->expectException(TaskException::class); $config = []; - new Google_Task_Runner($config, '', 5); + new Runner($config, '', 5); } - /** - * @expectedException Google_Service_Exception - */ public function testTaskRetryOffByDefault() { - $this->setNextTaskAllowedRetries(Google_Task_Runner::TASK_RETRY_ALWAYS) + $this->expectException(ServiceException::class); + + $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) ->runTask(); } - /** - * @expectedException Google_Service_Exception - */ public function testOneTaskRetryWithError() { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 1)); - $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) + $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->runTask(); } - /** - * @expectedException Google_Service_Exception - */ public function testMultipleTaskRetriesWithErrors() { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 5)); - $this->setNextTasksAllowedRetries(6, Google_Task_Runner::TASK_RETRY_ALWAYS) + $this->setNextTasksAllowedRetries(6, Runner::TASK_RETRY_ALWAYS) ->runTask(); } public function testOneTaskRetryWithSuccess() { $this->setRetryConfig(array('retries' => 1)); - $result = $this->setNextTaskAllowedRetries(Google_Task_Runner::TASK_RETRY_ALWAYS) + $result = $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -351,7 +366,7 @@ public function testOneTaskRetryWithSuccess() public function testMultipleTaskRetriesWithSuccess() { $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS) + $result = $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -359,11 +374,12 @@ public function testMultipleTaskRetriesWithSuccess() } /** - * @expectedException Google_Service_Exception * @dataProvider customLimitsProvider */ public function testTaskRetryWithCustomLimits($limit) { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 5)); $this->setNextTasksAllowedRetries($limit + 1, $limit) ->runTask(); @@ -388,9 +404,9 @@ public function testTaskTimeouts($config, $minTime) public function testTaskWithManualRetries() { $this->setRetryConfig(array('retries' => 2)); - $this->setNextTasksAllowedRetries(2, Google_Task_Runner::TASK_RETRY_ALWAYS); + $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS); - $task = new Google_Task_Runner( + $task = new Runner( $this->retryConfig, '', array($this, 'runNextTask') @@ -435,8 +451,8 @@ public function timeoutProvider() public function customLimitsProvider() { return array( - array(Google_Task_Runner::TASK_RETRY_NEVER), - array(Google_Task_Runner::TASK_RETRY_ONCE), + array(Runner::TASK_RETRY_NEVER), + array(Runner::TASK_RETRY_ONCE), ); } @@ -612,7 +628,7 @@ private function setNextResponsesThrow($count, $message, $code) */ private function setNextResponseThrows($message, $code) { - $this->mockedCalls[$this->mockedCallsCount++] = new Google_Service_Exception( + $this->mockedCalls[$this->mockedCallsCount++] = new ServiceException( $message, $code, null, @@ -635,7 +651,7 @@ private function makeRequest() if ($this->isGuzzle5()) { $http->createRequest(Argument::any(), Argument::any(), Argument::any()) ->shouldBeCalledTimes($this->mockedCallsCount) - ->willReturn(new GuzzleHttp\Message\Request('GET', '/test')); + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/test')); $http->send(Argument::type('GuzzleHttp\Message\Request')) ->shouldBeCalledTimes($this->mockedCallsCount) @@ -646,15 +662,15 @@ private function makeRequest() ->will([$this, 'getNextMockedCall']); } - return Google_Http_REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); + return REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); } /** * Gets the next mocked response. * - * @param Google_Http_Request $request The mocked request + * @param GoogleRequest $request The mocked request * - * @return Google_Http_Request + * @return GoogleRequest */ public function getNextMockedCall($request) { @@ -725,7 +741,7 @@ private function setNextTasksAllowedRetries($count, $allowedRetries) */ private function runTask() { - $task = new Google_Task_Runner( + $task = new Runner( $this->retryConfig, '', array($this, 'runNextTask') @@ -735,7 +751,7 @@ private function runTask() $task->setRetryMap($this->retryMap); } - $exception = $this->prophesize('Google_Service_Exception'); + $exception = $this->prophesize(ServiceException::class); $exceptionCount = 0; $exceptionCalls = array(); diff --git a/tests/Google/Utils/UriTemplateTest.php b/tests/Google/Utils/UriTemplateTest.php index ba5dc3f3b..8a98ea8c9 100644 --- a/tests/Google/Utils/UriTemplateTest.php +++ b/tests/Google/Utils/UriTemplateTest.php @@ -18,14 +18,19 @@ * under the License. */ -class Google_Utils_UriTemplateTest extends BaseTest +namespace Google\Tests\Utils; + +use Google\Tests\BaseTest; +use Google\Utils\UriTemplate; + +class UriTemplateTest extends BaseTest { public function testLevelOne() { $var = "value"; $hello = "Hello World!"; - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); $this->assertEquals( "value", $urit->parse("{var}", array("var" => $var)) @@ -42,7 +47,7 @@ public function testLevelTwo() $hello = "Hello World!"; $path = "/foo/bar"; - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); $this->assertEquals( "value", $urit->parse("{+var}", array("var" => $var)) @@ -78,7 +83,7 @@ public function testLevelThree() $x = "1024"; $y = "768"; - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); $this->assertEquals( "map?1024,768", $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) @@ -219,7 +224,7 @@ public function testLevelFour() ); - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); foreach ($tests as $input => $output) { $this->assertEquals($output, $urit->parse($input, $values), $input . " failed"); @@ -230,7 +235,7 @@ public function testMultipleAnnotations() { $var = "value"; $hello = "Hello World!"; - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); $this->assertEquals( "http://www.google.com/Hello%20World!?var=value", $urit->parse( @@ -264,9 +269,9 @@ public function testMultipleAnnotations() */ public function testAgainstStandardTests() { - $location = "../../uritemplate-test/*.json"; + $location = __DIR__ . "/../../uritemplate-test/*.json"; - $urit = new Google_Utils_UriTemplate(); + $urit = new UriTemplate(); foreach (glob($location) as $file) { $test = json_decode(file_get_contents($file), true); foreach ($test as $title => $testsets) { diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index 425d9de2e..3628a11cb 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_batchTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class batchTest extends BaseTest { public function testBatch() { diff --git a/tests/examples/idTokenTest.php b/tests/examples/idTokenTest.php index acc9fd1d8..3f1b38834 100644 --- a/tests/examples/idTokenTest.php +++ b/tests/examples/idTokenTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_idTokenTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class idTokenTest extends BaseTest { public function testIdToken() { diff --git a/tests/examples/indexTest.php b/tests/examples/indexTest.php index a62bbe2cb..0ef4f4d4e 100644 --- a/tests/examples/indexTest.php +++ b/tests/examples/indexTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_indexTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class indexTest extends BaseTest { public function testIndex() { diff --git a/tests/examples/largeFileDownloadTest.php b/tests/examples/largeFileDownloadTest.php index e16e9d5d4..71286d9ac 100644 --- a/tests/examples/largeFileDownloadTest.php +++ b/tests/examples/largeFileDownloadTest.php @@ -18,7 +18,11 @@ * under the License. */ -class examples_largeFileDownloadTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class largeFileDownloadTest extends BaseTest { /** * @runInSeparateProcess diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php index a927309f8..31e8f80d4 100644 --- a/tests/examples/largeFileUploadTest.php +++ b/tests/examples/largeFileUploadTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_largeFileUploadTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class largeFileUploadTest extends BaseTest { /** * @runInSeparateProcess diff --git a/tests/examples/multiApiTest.php b/tests/examples/multiApiTest.php index 51e0a9b2b..569bb21d9 100644 --- a/tests/examples/multiApiTest.php +++ b/tests/examples/multiApiTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_multiApiTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class multiApiTest extends BaseTest { public function testMultiApi() { diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php index 81521c149..60aeb0212 100644 --- a/tests/examples/serviceAccountTest.php +++ b/tests/examples/serviceAccountTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_serviceAccountTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class serviceAccountTest extends BaseTest { public function testServiceAccount() { diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php index 8b0298ba2..192977ab7 100644 --- a/tests/examples/simpleFileUploadTest.php +++ b/tests/examples/simpleFileUploadTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_simpleFileUploadTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class simpleFileUploadTest extends BaseTest { /** * @runInSeparateProcess diff --git a/tests/examples/simpleQueryTest.php b/tests/examples/simpleQueryTest.php index 274332aca..cbb49fd9d 100644 --- a/tests/examples/simpleQueryTest.php +++ b/tests/examples/simpleQueryTest.php @@ -19,7 +19,11 @@ * under the License. */ -class examples_simpleQueryTest extends BaseTest +namespace Google\Tests\Examples; + +use Google\Tests\BaseTest; + +class simpleQueryTest extends BaseTest { public function testSimpleQuery() { From b86b0c974bc998499e080f3d3178aaab06d07ee3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 23 Jun 2021 13:16:21 -0500 Subject: [PATCH 1164/1274] chore: prepare v2.10.0 (#2090) --- README.md | 4 ++-- src/Client.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7346110da..235e05f2b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:"^2.9" +composer require google/apiclient:^2.10 ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.9" + "google/apiclient": "^2.10" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" diff --git a/src/Client.php b/src/Client.php index d0cffa44b..174c5b333 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.9.1"; + const LIBVER = "2.10.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From f37538ecf176477876b26b4e3339a13f61b760d1 Mon Sep 17 00:00:00 2001 From: Thibault Vlacich Date: Thu, 24 Jun 2021 16:48:40 +0200 Subject: [PATCH 1165/1274] fix: composer requirement (#2093) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cce3c93a1..b9d61ce64 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": "^5.6|^7.0|^8.0", "google/auth": "^1.10", - "google/apiclient-services": "^0.200.0", + "google/apiclient-services": "~0.200", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "monolog/monolog": "^1.17|^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", From 11871e94006ce7a419bb6124d51b6f9ace3f679b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 25 Jun 2021 09:25:44 -0500 Subject: [PATCH 1166/1274] chore: prepare v2.10.1 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 174c5b333..7750efa31 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.10.0"; + const LIBVER = "2.10.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 3a981757c0e6f89931dbe6a895f4e0f7610f50b5 Mon Sep 17 00:00:00 2001 From: Adam Mackiewicz Date: Fri, 27 Aug 2021 23:57:39 +0700 Subject: [PATCH 1167/1274] docs: fix phpdoc for some method return types (#2113) --- .gitignore | 1 + src/Client.php | 2 +- src/Http/REST.php | 2 +- src/Service/Resource.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9b429eae6..812c3a3be 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ vendor examples/testfile-small.txt examples/testfile.txt tests/.apiKey +.idea/ diff --git a/src/Client.php b/src/Client.php index 7750efa31..7924ece36 100644 --- a/src/Client.php +++ b/src/Client.php @@ -856,7 +856,7 @@ public function prepareScopes() * @param $request RequestInterface|\Google\Http\Batch * @param string $expectedClass * @throws \Google\Exception - * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. + * @return mixed|$expectedClass|ResponseInterface */ public function execute(RequestInterface $request, $expectedClass = null) { diff --git a/src/Http/REST.php b/src/Http/REST.php index 691982271..4329e4d1b 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -41,7 +41,7 @@ class REST * @param string $expectedClass * @param array $config * @param array $retryMap - * @return array decoded result + * @return mixed decoded result * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ diff --git a/src/Service/Resource.php b/src/Service/Resource.php index be0014532..09ebaa089 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -80,7 +80,7 @@ public function __construct($service, $serviceName, $resourceName, $resource) * @param $name * @param $arguments * @param $expectedClass - optional, the expected class name - * @return Request|$expectedClass + * @return mixed|$expectedClass|ResponseInterface|RequestInterface * @throws \Google\Exception */ public function call($name, $arguments, $expectedClass = null) From 0285bc1a8f12f3aa22e9de65f59c357d00973ff4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 20 Sep 2021 17:13:36 +0200 Subject: [PATCH 1168/1274] chore: improve test suite (#2115) --- .github/apply-phpunit-patches.sh | 17 --------- .github/workflows/tests.yml | 16 ++++++-- .gitignore | 1 + composer.json | 6 ++- phpunit.xml.dist | 2 +- src/Collection.php | 14 ++++++- tests/BaseTest.php | 23 ++++++++++-- tests/Google/Http/BatchTest.php | 6 +-- tests/Google/Http/MediaFileUploadTest.php | 4 +- tests/Google/Http/RESTTest.php | 2 +- tests/Google/Service/AdSenseTest.php | 2 +- tests/Google/Service/ResourceTest.php | 2 +- tests/Google/Service/TasksTest.php | 2 +- tests/Google/Service/YouTubeTest.php | 2 +- tests/Google/ServiceTest.php | 46 ++++++++++++++++------- tests/Google/Task/ComposerTest.php | 12 +++--- tests/Google/Task/RunnerTest.php | 2 +- tests/Google/Utils/UriTemplateTest.php | 7 +++- 18 files changed, 105 insertions(+), 61 deletions(-) delete mode 100644 .github/apply-phpunit-patches.sh diff --git a/.github/apply-phpunit-patches.sh b/.github/apply-phpunit-patches.sh deleted file mode 100644 index 2584fd243..000000000 --- a/.github/apply-phpunit-patches.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# Script used from php-webdriver/php-webdriver - -# All commands below must no fail -set -e - -# Be in the root dir -cd "$(dirname "$0")/../" - -find tests/ -type f -print0 | xargs -0 sed -i 's/function setUp(): void/function setUp()/g'; - -# Drop the listener from the config file -sed -i '//,+2d' phpunit.xml.dist; - -# Return back to original dir -cd - > /dev/null diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d758fa9c4..6334cdaaa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,6 +18,10 @@ jobs: composer-flags: "--prefer-lowest " - php: "8.0" composer-flags: "--prefer-lowest " + - php: "8.1" + composer-flags: "--ignore-platform-reqs " + - php: "8.1" + composer-flags: "--ignore-platform-reqs --prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: - uses: actions/checkout@v2 @@ -31,13 +35,17 @@ jobs: timeout_minutes: 10 max_attempts: 3 command: composer update ${{ matrix.composer-flags }} - - if: ${{ matrix.php == '8.0' || matrix.composer-flags == '--prefer-lowest' }} + - if: ${{ matrix.php == '8.0' || ( matrix.composer-flags == '--prefer-lowest' && matrix.php != '8.1' ) }} name: Update guzzlehttp/ringphp dependency run: composer update guzzlehttp/ringphp - - if: ${{ matrix.php == '5.6' || matrix.php == '7.0' || matrix.php == '7.1' }} - name: Run PHPUnit Patches - run: sh .github/apply-phpunit-patches.sh + - if: ${{ matrix.php == '8.1' }} + name: Update guzzlehttp/ringphp dependency + run: composer update guzzlehttp/ringphp --ignore-platform-reqs + - if: ${{ matrix.php == '8.1' }} + name: Update phpunit/phpunit dependency + run: composer update phpunit/phpunit phpspec/prophecy-phpunit --with-dependencies --ignore-platform-reqs - name: Run Script + continue-on-error: ${{ matrix.php == '8.1' }} run: vendor/bin/phpunit style: diff --git a/.gitignore b/.gitignore index 812c3a3be..fc8518be0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ vendor examples/testfile-small.txt examples/testfile.txt tests/.apiKey +.phpunit.result.cache .idea/ diff --git a/composer.json b/composer.json index b9d61ce64..cc20a8b30 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,16 @@ "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "^5.7||^8.5.13", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^0.3.2|^1.1", "phpcompatibility/php-compatibility": "^9.2", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "composer/composer": "^1.10.22" + "composer/composer": "^1.10.22", + "yoast/phpunit-polyfills": "^1.0", + "phpspec/prophecy-phpunit": "^1.1||^2.0", + "phpunit/phpunit": "^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2acef56c2..0063e91f1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ diff --git a/src/Collection.php b/src/Collection.php index 3d61bea80..f3154e67d 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -11,6 +11,7 @@ class Collection extends Model implements \Iterator, \Countable { protected $collection_key = 'items'; + #[ReturnTypeWillChange] public function rewind() { if (isset($this->{$this->collection_key}) @@ -19,6 +20,7 @@ public function rewind() } } + #[ReturnTypeWillChange] public function current() { $this->coerceType($this->key()); @@ -27,6 +29,7 @@ public function current() } } + #[ReturnTypeWillChange] public function key() { if (isset($this->{$this->collection_key}) @@ -35,17 +38,20 @@ public function key() } } + #[ReturnTypeWillChange] public function next() { return next($this->{$this->collection_key}); } + #[ReturnTypeWillChange] public function valid() { $key = $this->key(); return $key !== null && $key !== false; } + #[ReturnTypeWillChange] public function count() { if (!isset($this->{$this->collection_key})) { @@ -54,6 +60,7 @@ public function count() return count($this->{$this->collection_key}); } + #[ReturnTypeWillChange] public function offsetExists($offset) { if (!is_numeric($offset)) { @@ -62,6 +69,7 @@ public function offsetExists($offset) return isset($this->{$this->collection_key}[$offset]); } + #[ReturnTypeWillChange] public function offsetGet($offset) { if (!is_numeric($offset)) { @@ -71,18 +79,20 @@ public function offsetGet($offset) return $this->{$this->collection_key}[$offset]; } + #[ReturnTypeWillChange] public function offsetSet($offset, $value) { if (!is_numeric($offset)) { - return parent::offsetSet($offset, $value); + parent::offsetSet($offset, $value); } $this->{$this->collection_key}[$offset] = $value; } + #[ReturnTypeWillChange] public function offsetUnset($offset) { if (!is_numeric($offset)) { - return parent::offsetUnset($offset); + parent::offsetUnset($offset); } unset($this->{$this->collection_key}[$offset]); } diff --git a/tests/BaseTest.php b/tests/BaseTest.php index c7377395f..0eaa34aba 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -24,13 +24,26 @@ use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; use Cache\Adapter\Filesystem\FilesystemCachePool; -use PHPUnit\Framework\TestCase; +use Yoast\PHPUnitPolyfills\TestCases\TestCase; + +if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { + trait BaseTestTrait + { + use \Prophecy\PhpUnit\ProphecyTrait; + } +} else { + trait BaseTestTrait + { + } +} class BaseTest extends TestCase { private $key; private $client; + use BaseTestTrait; + public function getClient() { if (!$this->client) { @@ -71,12 +84,14 @@ private function createClient() $client = new Client(); $client->setApplicationName('google-api-php-client-tests'); $client->setHttpClient($httpClient); - $client->setScopes([ + $client->setScopes( + [ "https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/drive", - ]); + ] + ); if ($this->key) { $client->setDeveloperKey($this->key); @@ -178,7 +193,7 @@ protected function checkKey() $apiKey = file_get_contents($apiKeyFile); } elseif (!$apiKey = getenv('GOOGLE_API_KEY')) { $this->markTestSkipped( - "Test requires api key\nYou can create one in your developer console" + "Test requires api key\nYou can create one in your developer console" ); file_put_contents($apiKeyFile, $apiKey); } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 021cad2c1..14cc9c2d9 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -86,8 +86,8 @@ public function testMediaFileBatch() /** @var \GuzzleHttp\Psr7\Request $request */ $request = $storage->objects->insert($bucket, $obj, $params); - $this->assertContains('multipart/related', $request->getHeaderLine('content-type')); - $this->assertContains('/upload/', $request->getUri()->getPath()); - $this->assertContains('uploadType=multipart', $request->getUri()->getQuery()); + $this->assertStringContainsString('multipart/related', $request->getHeaderLine('content-type')); + $this->assertStringContainsString('/upload/', $request->getUri()->getPath()); + $this->assertStringContainsString('uploadType=multipart', $request->getUri()->getQuery()); } } diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index f04f6ea12..16c8777c0 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -88,8 +88,8 @@ public function testProcess() $request = $request->withBody(Psr7\stream_for($reqData)); $media = new MediaFileUpload($client, $request, 'image/png', $data, false); $request = $media->getRequest(); - $this->assertContains($reqData, (string) $request->getBody()); - $this->assertContains(base64_encode($data), (string) $request->getBody()); + $this->assertStringContainsString($reqData, (string) $request->getBody()); + $this->assertStringContainsString(base64_encode($data), (string) $request->getBody()); } public function testGetResumeUri() diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 6df7d3bc7..bf10bf936 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -32,7 +32,7 @@ class RESTTest extends BaseTest */ private $rest; - public function setUp(): void + public function set_up() { $this->rest = new REST(); $this->request = new Request('GET', '/'); diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 5fa69830f..658c46a3c 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -23,7 +23,7 @@ class AdSenseTest extends BaseTest { public $adsense; - public function setUp(): void + public function set_up() { $this->markTestSkipped('Thesse tests need to be fixed'); $this->checkToken(); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index ca2b58f9c..4ee768f6b 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -64,7 +64,7 @@ class ResourceTest extends BaseTest private $client; private $service; - public function setUp(): void + public function set_up() { $this->client = $this->prophesize(Client::class); diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 862509418..d34eb55f1 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -25,7 +25,7 @@ class TasksTest extends BaseTest /** @var Tasks */ public $taskService; - public function setUp(): void + public function set_up() { $this->checkToken(); $this->taskService = new Tasks($this->getClient()); diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index d40fd0a4c..89d5520df 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -24,7 +24,7 @@ class YouTubeTest extends BaseTest { /** @var YouTube */ public $youtube; - public function setUp(): void + public function set_up() { $this->checkToken(); $this->youtube = new YouTube($this->getClient()); diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index cf4bd20c0..28a51325c 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -24,7 +24,7 @@ use Google\Model; use Google\Service; use Google\Http\Batch; -use PHPUnit\Framework\TestCase; +use Yoast\PHPUnitPolyfills\TestCases\TestCase; use Prophecy\Argument; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; @@ -47,22 +47,40 @@ class TestService extends Service public $batchPath = 'batch/test'; } +if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { + trait ServiceTestTrait + { + use \Prophecy\PhpUnit\ProphecyTrait; + } +} else { + trait ServiceTestTrait + { + } +} + class ServiceTest extends TestCase { private static $errorMessage; + use ServiceTestTrait; + public function testCreateBatch() { $response = $this->prophesize(ResponseInterface::class); $client = $this->prophesize(Client::class); - $client->execute(Argument::allOf( - Argument::type(RequestInterface::class), - Argument::that(function ($request) { - $this->assertEquals('/batch/test', $request->getRequestTarget()); - return $request; - }) - ), Argument::any())->willReturn($response->reveal()); + $client->execute( + Argument::allOf( + Argument::type(RequestInterface::class), + Argument::that( + function ($request) { + $this->assertEquals('/batch/test', $request->getRequestTarget()); + return $request; + } + ) + ), + Argument::any() + )->willReturn($response->reveal()); $client->getConfig('base_path')->willReturn(''); @@ -131,12 +149,14 @@ public function testInvalidConstructorPhp7Plus() try { $service = new TestService('foo'); - } catch (\TypeError $e) {} + } catch (\TypeError $e) { + + } $this->assertInstanceOf('TypeError', $e); $this->assertEquals( - 'constructor must be array or instance of Google\Client', - $e->getMessage() + 'constructor must be array or instance of Google\Client', + $e->getMessage() ); } @@ -152,8 +172,8 @@ public function testInvalidConstructorPhp5() $service = new TestService('foo'); $this->assertEquals( - 'constructor must be array or instance of Google\Client', - self::$errorMessage + 'constructor must be array or instance of Google\Client', + self::$errorMessage ); } diff --git a/tests/Google/Task/ComposerTest.php b/tests/Google/Task/ComposerTest.php index f4ff96a02..2976eabd8 100644 --- a/tests/Google/Task/ComposerTest.php +++ b/tests/Google/Task/ComposerTest.php @@ -183,8 +183,8 @@ public function testE2E() $this->assertFileExists($serviceDir . '/Drive'); $this->assertFileExists($serviceDir . '/YouTube.php'); $this->assertFileExists($serviceDir . '/YouTube'); - $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); - $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); + $this->assertFileDoesNotExist($serviceDir . '/YouTubeReporting.php'); + $this->assertFileDoesNotExist($serviceDir . '/YouTubeReporting'); // Remove the "apiclient-services" directory, which is required to // update the cleanup command. @@ -225,10 +225,10 @@ public function testE2EBCTaskName() $this->assertFileExists($serviceDir . '/Drive.php'); $this->assertFileExists($serviceDir . '/Drive'); - $this->assertFileNotExists($serviceDir . '/YouTube.php'); - $this->assertFileNotExists($serviceDir . '/YouTube'); - $this->assertFileNotExists($serviceDir . '/YouTubeReporting.php'); - $this->assertFileNotExists($serviceDir . '/YouTubeReporting'); + $this->assertFileDoesNotExist($serviceDir . '/YouTube.php'); + $this->assertFileDoesNotExist($serviceDir . '/YouTube'); + $this->assertFileDoesNotExist($serviceDir . '/YouTubeReporting.php'); + $this->assertFileDoesNotExist($serviceDir . '/YouTubeReporting'); } public function testE2EOptimized() diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index c138484c2..b11a3e367 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -42,7 +42,7 @@ class RunnerTest extends BaseTest private $retryMap; private $retryConfig; - protected function setUp(): void + protected function set_up() { $this->client = new Client(); } diff --git a/tests/Google/Utils/UriTemplateTest.php b/tests/Google/Utils/UriTemplateTest.php index 8a98ea8c9..09ecb6b0b 100644 --- a/tests/Google/Utils/UriTemplateTest.php +++ b/tests/Google/Utils/UriTemplateTest.php @@ -270,9 +270,14 @@ public function testMultipleAnnotations() public function testAgainstStandardTests() { $location = __DIR__ . "/../../uritemplate-test/*.json"; + $files = glob($location); + + if (!$files) { + $this->markTestSkipped('No JSON files provided'); + } $urit = new UriTemplate(); - foreach (glob($location) as $file) { + foreach ($files as $file) { $test = json_decode(file_get_contents($file), true); foreach ($test as $title => $testsets) { foreach ($testsets['testcases'] as $cases) { From be74b9aa8857021b0094bed1e491f42bf09d6fbb Mon Sep 17 00:00:00 2001 From: n00dl3 Date: Mon, 20 Sep 2021 17:29:19 +0200 Subject: [PATCH 1169/1274] feat: allow guzzlehttp/psr7 v2 (#2128) --- composer.json | 2 +- src/AccessToken/Revoke.php | 2 +- src/Http/Batch.php | 2 +- src/Http/MediaFileUpload.php | 4 +-- tests/Google/Http/BatchTest.php | 2 +- tests/Google/Http/MediaFileUploadTest.php | 4 +-- tests/Google/Http/RESTTest.php | 12 ++++----- tests/Google/Service/ResourceTest.php | 30 +++++++---------------- tests/Google/Task/RunnerTest.php | 2 +- 9 files changed, 24 insertions(+), 36 deletions(-) diff --git a/composer.json b/composer.json index cc20a8b30..ef4ac07a9 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "monolog/monolog": "^1.17|^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", - "guzzlehttp/psr7": "^1.2" + "guzzlehttp/psr7": "^1.7||^2.0.0" }, "require-dev": { "squizlabs/php_codesniffer": "~2.3", diff --git a/src/AccessToken/Revoke.php b/src/AccessToken/Revoke.php index 45b60548e..d86cc6e32 100644 --- a/src/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -61,7 +61,7 @@ public function revokeToken($token) } } - $body = Psr7\stream_for(http_build_query(array('token' => $token))); + $body = Psr7\Utils::streamFor(http_build_query(array('token' => $token))); $request = new Request( 'POST', Client::OAUTH2_REVOKE_URI, diff --git a/src/Http/Batch.php b/src/Http/Batch.php index a4607586e..a657bacd4 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -174,7 +174,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) $response = new Response( $status, $partHeaders, - Psr7\stream_for($partBody) + Psr7\Utils::streamFor($partBody) ); // Need content id. diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index 82a051abf..15529bca7 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -141,7 +141,7 @@ public function nextChunk($chunk = false) 'PUT', $resumeUri, $headers, - Psr7\stream_for($chunk) + Psr7\Utils::streamFor($chunk) ); return $this->makePutRequest($request); @@ -255,7 +255,7 @@ private function process() $postBody = $related; } - $request = $request->withBody(Psr7\stream_for($postBody)); + $request = $request->withBody(Psr7\Utils::streamFor($postBody)); if (isset($contentType) && $contentType) { $request = $request->withHeader('content-type', $contentType); diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 14cc9c2d9..49046d4c1 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -70,7 +70,7 @@ public function testMediaFileBatch() $client = $this->getClient(); $storage = new Storage($client); $bucket = 'testbucket'; - $stream = Psr7\stream_for("testbucket-text"); + $stream = Psr7\Utils::streamFor("testbucket-text"); $params = [ 'data' => $stream, 'mimeType' => 'text/plain', diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index 16c8777c0..d8d3a2a08 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -77,7 +77,7 @@ public function testProcess() // Test resumable (meta data) - we want to send the metadata, not the app data. $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); - $request = $request->withBody(Psr7\stream_for($reqData)); + $request = $request->withBody(Psr7\Utils::streamFor($reqData)); $media = new MediaFileUpload($client, $request, 'image/png', $data, true); $request = $media->getRequest(); $this->assertEquals(json_decode($reqData), (string) $request->getBody()); @@ -85,7 +85,7 @@ public function testProcess() // Test multipart - we are sending encoded meta data and post data $request = new Request('POST', 'http://www.example.com'); $reqData = json_encode("hello"); - $request = $request->withBody(Psr7\stream_for($reqData)); + $request = $request->withBody(Psr7\Utils::streamFor($reqData)); $media = new MediaFileUpload($client, $request, 'image/png', $data, false); $request = $media->getRequest(); $this->assertStringContainsString($reqData, (string) $request->getBody()); diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index bf10bf936..fb15ac238 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -47,7 +47,7 @@ public function testDecodeResponse() foreach (array(200, 201) as $code) { $headers = array('foo', 'bar'); - $stream = Psr7\stream_for('{"a": 1}'); + $stream = Psr7\Utils::streamFor('{"a": 1}'); $response = new Response($code, $headers, $stream); $decoded = $this->rest->decodeHttpResponse($response, $this->request); @@ -61,7 +61,7 @@ public function testDecodeMediaResponse() $request = new Request('GET', 'http://www.example.com?alt=media'); $headers = array(); - $stream = Psr7\stream_for('thisisnotvalidjson'); + $stream = Psr7\Utils::streamFor('thisisnotvalidjson'); $response = new Response(200, $headers, $stream); $decoded = $this->rest->decodeHttpResponse($response, $request); @@ -87,7 +87,7 @@ public function testExceptionResponse() public function testDecodeEmptyResponse() { - $stream = Psr7\stream_for('{}'); + $stream = Psr7\Utils::streamFor('{}'); $response = new Response(200, array(), $stream); $decoded = $this->rest->decodeHttpResponse($response, $this->request); $this->assertEquals('{}', (string) $decoded->getBody()); @@ -96,7 +96,7 @@ public function testDecodeEmptyResponse() public function testBadErrorFormatting() { $this->expectException(ServiceException::class); - $stream = Psr7\stream_for( + $stream = Psr7\Utils::streamFor( '{ "error": { "code": 500, @@ -111,7 +111,7 @@ public function testBadErrorFormatting() public function tesProperErrorFormatting() { $this->expectException(ServiceException::class); - $stream = Psr7\stream_for( + $stream = Psr7\Utils::streamFor( '{ error: { errors: [ @@ -134,7 +134,7 @@ public function tesProperErrorFormatting() public function testNotJson404Error() { $this->expectException(ServiceException::class); - $stream = Psr7\stream_for('Not Found'); + $stream = Psr7\Utils::streamFor('Not Found'); $response = new Response(404, array(), $stream); $this->rest->decodeHttpResponse($response, $this->request); } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 4ee768f6b..312db72a3 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -47,18 +47,6 @@ public function __construct(Client $client) } } -class TestMediaTypeStream extends Stream -{ - public $toStringCalled = false; - - public function __toString() - { - $this->toStringCalled = true; - - return parent::__toString(); - } -} - class ResourceTest extends BaseTest { private $client; @@ -231,7 +219,7 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() ->shouldBeCalledTimes(1) ->willReturn($response); } else { - $body = Psr7\stream_for('thisisnotvalidjson'); + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); $response = new Response(200, [], $body); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) @@ -284,7 +272,7 @@ public function testNoExpectedClassForAltMediaWithHttpFail() ->shouldBeCalledTimes(1) ->willReturn($response); } else { - $body = Psr7\stream_for('thisisnotvalidjson'); + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); $response = new Response(400, [], $body); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) @@ -341,7 +329,7 @@ public function testErrorResponseWithVeryLongBody() ->shouldBeCalledTimes(1) ->willReturn($response); } else { - $body = Psr7\stream_for('this will be pulled into memory'); + $body = Psr7\Utils::streamFor('this will be pulled into memory'); $response = new Response(400, [], $body); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) @@ -385,10 +373,10 @@ public function testSuccessResponseWithVeryLongBody() // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; - $request = new Request('GET', '/?alt=media'); - $resource = fopen('php://temp', 'r+'); - $stream = new TestMediaTypeStream($resource); - $response = new Response(200, [], $stream); + $stream = $this->prophesize(Stream::class); + $stream->__toString() + ->shouldNotBeCalled(); + $response = new Response(200, [], $stream->reveal()); $http = $this->prophesize("GuzzleHttp\Client"); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) @@ -419,7 +407,7 @@ public function testSuccessResponseWithVeryLongBody() $response = $resource->call('testMethod', $arguments, $expectedClass); $this->assertEquals(200, $response->getStatusCode()); - $this->assertFalse($stream->toStringCalled); + // $this->assertFalse($stream->toStringCalled); } public function testExceptionMessage() @@ -446,7 +434,7 @@ public function testExceptionMessage() ->shouldBeCalledTimes(1) ->willReturn($response); } else { - $body = Psr7\stream_for($content); + $body = Psr7\Utils::streamFor($content); $response = new Response(400, [], $body); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index b11a3e367..85354e4ba 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -684,7 +684,7 @@ public function getNextMockedCall($request) $stream = Guzzle5Stream::factory($current['body']); $response = new Guzzle5Response($current['code'], $current['headers'], $stream); } else { - $stream = Psr7\stream_for($current['body']); + $stream = Psr7\Utils::streamFor($current['body']); $response = new Response($current['code'], $current['headers'], $stream); } From 3cbf59fc96237d6098d5886e820dd25ed9a9bca4 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 20 Sep 2021 14:39:28 -0600 Subject: [PATCH 1170/1274] chore: fix php 8.1 warnings and tests (#2131) --- .github/workflows/tests.yml | 7 ++----- src/Collection.php | 16 ++++++---------- src/Model.php | 4 ++++ 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6334cdaaa..398d5dec8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ] + php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" ] composer-flags: [""] include: - php: "5.6" @@ -19,9 +19,7 @@ jobs: - php: "8.0" composer-flags: "--prefer-lowest " - php: "8.1" - composer-flags: "--ignore-platform-reqs " - - php: "8.1" - composer-flags: "--ignore-platform-reqs --prefer-lowest " + composer-flags: "--prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: - uses: actions/checkout@v2 @@ -45,7 +43,6 @@ jobs: name: Update phpunit/phpunit dependency run: composer update phpunit/phpunit phpspec/prophecy-phpunit --with-dependencies --ignore-platform-reqs - name: Run Script - continue-on-error: ${{ matrix.php == '8.1' }} run: vendor/bin/phpunit style: diff --git a/src/Collection.php b/src/Collection.php index f3154e67d..0417dbc9a 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -11,7 +11,7 @@ class Collection extends Model implements \Iterator, \Countable { protected $collection_key = 'items'; - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function rewind() { if (isset($this->{$this->collection_key}) @@ -20,7 +20,7 @@ public function rewind() } } - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function current() { $this->coerceType($this->key()); @@ -29,7 +29,7 @@ public function current() } } - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function key() { if (isset($this->{$this->collection_key}) @@ -38,20 +38,20 @@ public function key() } } - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function next() { return next($this->{$this->collection_key}); } - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function valid() { $key = $this->key(); return $key !== null && $key !== false; } - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function count() { if (!isset($this->{$this->collection_key})) { @@ -60,7 +60,6 @@ public function count() return count($this->{$this->collection_key}); } - #[ReturnTypeWillChange] public function offsetExists($offset) { if (!is_numeric($offset)) { @@ -69,7 +68,6 @@ public function offsetExists($offset) return isset($this->{$this->collection_key}[$offset]); } - #[ReturnTypeWillChange] public function offsetGet($offset) { if (!is_numeric($offset)) { @@ -79,7 +77,6 @@ public function offsetGet($offset) return $this->{$this->collection_key}[$offset]; } - #[ReturnTypeWillChange] public function offsetSet($offset, $value) { if (!is_numeric($offset)) { @@ -88,7 +85,6 @@ public function offsetSet($offset, $value) $this->{$this->collection_key}[$offset] = $value; } - #[ReturnTypeWillChange] public function offsetUnset($offset) { if (!is_numeric($offset)) { diff --git a/src/Model.php b/src/Model.php index 18f8917b0..25ea40381 100644 --- a/src/Model.php +++ b/src/Model.php @@ -253,11 +253,13 @@ public function assertIsArray($obj, $method) } } + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->$offset) || isset($this->modelData[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->$offset) ? @@ -265,6 +267,7 @@ public function offsetGet($offset) $this->__get($offset); } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (property_exists($this, $offset)) { @@ -275,6 +278,7 @@ public function offsetSet($offset, $value) } } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->modelData[$offset]); From b757168e435752ab8172e20087e0db971ed8df4c Mon Sep 17 00:00:00 2001 From: Mohammad Sadegh Maleki Date: Tue, 21 Sep 2021 00:46:15 +0400 Subject: [PATCH 1171/1274] chore: consistent monolog/monolog requirement (#2111) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ef4ac07a9..046090389 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "google/auth": "^1.10", "google/apiclient-services": "~0.200", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", - "monolog/monolog": "^1.17|^2.0", + "monolog/monolog": "^1.17||^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.7||^2.0.0" From 7db9eb40c8ba887e81c0fe84f2888a967396cdfb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 20 Sep 2021 15:15:55 -0600 Subject: [PATCH 1172/1274] chore: prepare v2.11.0 (#2132) --- README.md | 4 ++-- src/Client.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 235e05f2b..97dec0ddd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.10 +composer require google/apiclient:^2.11 ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.10" + "google/apiclient": "^2.11" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" diff --git a/src/Client.php b/src/Client.php index 7924ece36..c0e3ebcad 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.10.1"; + const LIBVER = "2.11.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From c9995b71e2f43f0430e353470973a1541907745c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 30 Nov 2021 15:41:24 -0500 Subject: [PATCH 1173/1274] feat: allow credentials object (#2153) --- src/Client.php | 57 +++++++++++++++++++++++++++---------- tests/Google/ClientTest.php | 50 ++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 15 deletions(-) diff --git a/src/Client.php b/src/Client.php index c0e3ebcad..8aa6a52dd 100644 --- a/src/Client.php +++ b/src/Client.php @@ -86,6 +86,11 @@ class Client */ private $logger; + /** + * @var CredentialsLoader $credentials + */ + private $credentials; + /** * @var boolean $deferExecution */ @@ -114,8 +119,9 @@ public function __construct(array $config = array()) 'client_id' => '', 'client_secret' => '', - // Path to JSON credentials or an array representing those credentials - // @see Google\Client::setAuthConfig + // Can be a path to JSON credentials or an array representing those + // credentials (@see Google\Client::setAuthConfig), or an instance of + // Google\Auth\CredentialsLoader. 'credentials' => null, // @see Google\Client::setScopes 'scopes' => null, @@ -175,7 +181,11 @@ public function __construct(array $config = array()) ); if (!is_null($this->config['credentials'])) { - $this->setAuthConfig($this->config['credentials']); + if ($this->config['credentials'] instanceof CredentialsLoader) { + $this->credentials = $this->config['credentials']; + } else { + $this->setAuthConfig($this->config['credentials']); + } unset($this->config['credentials']); } @@ -405,25 +415,33 @@ public function createAuthUrl($scope = null) */ public function authorize(ClientInterface $http = null) { - $credentials = null; - $token = null; - $scopes = null; $http = $http ?: $this->getHttpClient(); $authHandler = $this->getAuthHandler(); // These conditionals represent the decision tree for authentication - // 1. Check for Application Default Credentials - // 2. Check for API Key + // 1. Check if a Google\Auth\CredentialsLoader instance has been supplied via the "credentials" option + // 2. Check for Application Default Credentials // 3a. Check for an Access Token // 3b. If access token exists but is expired, try to refresh it + // 4. Check for API Key + if ($this->credentials) { + return $authHandler->attachCredentials( + $http, + $this->credentials, + $this->config['token_callback'] + ); + } + if ($this->isUsingApplicationDefaultCredentials()) { $credentials = $this->createApplicationDefaultCredentials(); - $http = $authHandler->attachCredentialsCache( + return $authHandler->attachCredentialsCache( $http, $credentials, $this->config['token_callback'] ); - } elseif ($token = $this->getAccessToken()) { + } + + if ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { @@ -431,16 +449,18 @@ public function authorize(ClientInterface $http = null) $scopes, $token['refresh_token'] ); - $http = $authHandler->attachCredentials( + return $authHandler->attachCredentials( $http, $credentials, $this->config['token_callback'] ); - } else { - $http = $authHandler->attachToken($http, $token, (array) $scopes); } - } elseif ($key = $this->config['developer_key']) { - $http = $authHandler->attachKey($http, $key); + + return $authHandler->attachToken($http, $token, (array) $scopes); + } + + if ($key = $this->config['developer_key']) { + return $authHandler->attachKey($http, $key); } return $http; @@ -1235,6 +1255,13 @@ private function createApplicationDefaultCredentials() $credentials->setSub($sub); } + if ($credentials instanceof ServiceAccountCredentials && $this->isUsingJwtWithScope()) { + // tell the credentials to sign scopes into Self-Signed JWTs instead of + // calling the OAuth2 token endpoint + // @see https://google.aip.dev/auth/4111#scope-vs-audience + $credentials->useJwtAccessWithScope(); + } + // If we are not using FetchAuthTokenCache yet, create it now if (!$credentials instanceof FetchAuthTokenCache) { $credentials = new FetchAuthTokenCache( diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index a7b6bd9f4..1286e7436 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -952,4 +952,54 @@ public function testClientOptions() $credentials = $method->invoke($client); $this->assertEquals('some-quota-project', $credentials->getQuotaProject()); } + + public function testCredentialsOptionWithCredentialsLoader() + { + $this->onlyGuzzle6Or7(); + + $request = null; + $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); + $credentials->getCacheKey() + ->willReturn('cache-key'); + + // Ensure the access token provided by our credentials loader is used + $credentials->fetchAuthToken(Argument::any()) + ->shouldBeCalledOnce() + ->willReturn(['access_token' => 'abc']); + + $client = new Client(['credentials' => $credentials->reveal()]); + + $handler = $this->prophesize('GuzzleHttp\HandlerStack'); + $handler->remove('google_auth') + ->shouldBeCalledOnce(); + $handler->push(Argument::any(), 'google_auth') + ->shouldBeCalledOnce() + ->will(function($args) use (&$request) { + $middleware = $args[0]; + $callable = $middleware(function ($req, $res) use (&$request) { + $request = $req; // test later + }); + $callable(new Request('GET', '/fake-uri'), ['auth' => 'google_auth']); + }); + + $httpClient = $this->prophesize('GuzzleHttp\ClientInterface'); + $httpClient->getConfig() + ->shouldBeCalledOnce() + ->willReturn(['handler' => $handler->reveal()]); + $httpClient->getConfig('base_uri') + ->shouldBeCalledOnce(); + $httpClient->getConfig('verify') + ->shouldBeCalledOnce(); + $httpClient->getConfig('proxy') + ->shouldBeCalledOnce(); + $httpClient->send(Argument::any(), Argument::any()) + ->shouldNotBeCalled(); + + $http = $client->authorize($httpClient->reveal()); + + $this->assertNotNull($request); + $authHeader = $request->getHeaderLine('authorization'); + $this->assertNotNull($authHeader); + $this->assertEquals('Bearer abc', $authHeader); + } } From 5205105b9973766455d0eb83445f68c9efda16d1 Mon Sep 17 00:00:00 2001 From: Ilhan Yumer Date: Tue, 30 Nov 2021 22:57:20 +0200 Subject: [PATCH 1174/1274] docs: README code fence highlighting (#2150) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97dec0ddd..0f9e0cde0 100644 --- a/README.md +++ b/README.md @@ -446,7 +446,7 @@ The _Google\Service_ classes are generally automatically generated from the API Some services return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call: -``` +```php $opt_params = array( 'alt' => "json" ); From f235719d369805d99114677a82cff320ecc7c322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edson=20Hor=C3=A1cio=20Junior?= Date: Tue, 30 Nov 2021 19:18:32 -0300 Subject: [PATCH 1175/1274] docs: add paragraph regarding null properties in the response (#2130) --- docs/start.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/start.md b/docs/start.md index fd3c53f72..9c97991b7 100644 --- a/docs/start.md +++ b/docs/start.md @@ -86,6 +86,8 @@ foreach ($results as $item) { } ``` +**Properties are hydrated according to the value in the Response. If a property is not present in the Response it will be set to null. Some fields won't be in the Response if you didn't ask for them in the Request using the `fields` property. Therefore, watchout for null properties, maybe they have a value already but are null because they're not present in the Response.** + ## Google App Engine support -This library works well with Google App Engine applications. The Memcache class is automatically used for caching, and the file IO is implemented with the use of the Streams API. \ No newline at end of file +This library works well with Google App Engine applications. The Memcache class is automatically used for caching, and the file IO is implemented with the use of the Streams API. From c72e04523bd60f460c1db0a951f7f72454c58425 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 12:55:09 -0500 Subject: [PATCH 1176/1274] chore: prepare v2.12 (#2158) --- README.md | 4 ++-- src/Client.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f9e0cde0..698775ebc 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.11 +composer require google/apiclient:^2.12 ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.11" + "google/apiclient": "^2.12" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" diff --git a/src/Client.php b/src/Client.php index 8aa6a52dd..873671c7a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.11.0"; + const LIBVER = "2.12.0"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 74a218e15aa16e2ddbc95cb9a3b0e36dfa478feb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 13:03:17 -0500 Subject: [PATCH 1177/1274] chore: switch to main (#2159) --- .github/workflows/docs.yml | 2 +- README.md | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 63244a80a..abf518785 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,7 +2,7 @@ name: Generate Documentation on: push: branches: - - master + - main tags: - "*" diff --git a/README.md b/README.md index 698775ebc..b7f9dae8a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Google APIs Client Library for PHP #
      -
      Reference Docs
      https://googleapis.github.io/google-api-php-client/master/
      +
      Reference Docs
      https://googleapis.github.io/google-api-php-client/main/
      License
      Apache 2.0
      diff --git a/composer.json b/composer.json index 046090389..8b712c5bd 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-main": "2.x-dev" } } } From 8865cab2efbd63b40f88552886865f31bd7f3edd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 13:14:35 -0500 Subject: [PATCH 1178/1274] chore: fix ubuntu version for docs generation (#2160) --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index abf518785..09199fd23 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,7 +9,7 @@ on: jobs: docs: name: "Generate Project Documentation" - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 From 392c5c740811d707dc2563c11055d89c5dd0523b Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 13:50:02 -0500 Subject: [PATCH 1179/1274] chore: fix main branch doc generation (#2161) --- .github/actions/docs/sami.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/docs/sami.php b/.github/actions/docs/sami.php index b607837df..b3d3da8f7 100644 --- a/.github/actions/docs/sami.php +++ b/.github/actions/docs/sami.php @@ -18,7 +18,7 @@ ->addFromTags(function($tag) { return 0 === strpos($tag, 'v2.') && false === strpos($tag, 'RC'); }) - ->add('master', 'master branch'); + ->add('main', 'main branch'); return new Sami($iterator, [ 'title' => 'Google APIs Client Library for PHP API Reference', From 1530583a711f4414407112c4068464bcbace1c71 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 22:34:25 -0500 Subject: [PATCH 1180/1274] fix: remove error block of code (#2163) --- README.md | 4 ++-- src/Client.php | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b7f9dae8a..b3149928d 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.12 +composer require google/apiclient:^2.12.1 ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.12" + "google/apiclient": "^2.12.1" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" diff --git a/src/Client.php b/src/Client.php index 873671c7a..70e8e82d6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.12.0"; + const LIBVER = "2.12.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; @@ -1255,13 +1255,6 @@ private function createApplicationDefaultCredentials() $credentials->setSub($sub); } - if ($credentials instanceof ServiceAccountCredentials && $this->isUsingJwtWithScope()) { - // tell the credentials to sign scopes into Self-Signed JWTs instead of - // calling the OAuth2 token endpoint - // @see https://google.aip.dev/auth/4111#scope-vs-audience - $credentials->useJwtAccessWithScope(); - } - // If we are not using FetchAuthTokenCache yet, create it now if (!$credentials instanceof FetchAuthTokenCache) { $credentials = new FetchAuthTokenCache( From c15fb919429e0a5acffc6c01b34dcb752c0d7c52 Mon Sep 17 00:00:00 2001 From: Robert Currall Date: Mon, 7 Feb 2022 09:06:50 -0500 Subject: [PATCH 1181/1274] chore: add explicit return types to address Symfony deprecations (#2200) --- src/Collection.php | 10 ++++++++++ src/Model.php | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/Collection.php b/src/Collection.php index 0417dbc9a..1d653c80d 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -11,6 +11,7 @@ class Collection extends Model implements \Iterator, \Countable { protected $collection_key = 'items'; + /** @return void */ #[\ReturnTypeWillChange] public function rewind() { @@ -20,6 +21,7 @@ public function rewind() } } + /** @return mixed */ #[\ReturnTypeWillChange] public function current() { @@ -29,6 +31,7 @@ public function current() } } + /** @return mixed */ #[\ReturnTypeWillChange] public function key() { @@ -38,12 +41,14 @@ public function key() } } + /** @return void */ #[\ReturnTypeWillChange] public function next() { return next($this->{$this->collection_key}); } + /** @return bool */ #[\ReturnTypeWillChange] public function valid() { @@ -51,6 +56,7 @@ public function valid() return $key !== null && $key !== false; } + /** @return int */ #[\ReturnTypeWillChange] public function count() { @@ -60,6 +66,7 @@ public function count() return count($this->{$this->collection_key}); } + /** @return bool */ public function offsetExists($offset) { if (!is_numeric($offset)) { @@ -68,6 +75,7 @@ public function offsetExists($offset) return isset($this->{$this->collection_key}[$offset]); } + /** @return mixed */ public function offsetGet($offset) { if (!is_numeric($offset)) { @@ -77,6 +85,7 @@ public function offsetGet($offset) return $this->{$this->collection_key}[$offset]; } + /** @return void */ public function offsetSet($offset, $value) { if (!is_numeric($offset)) { @@ -85,6 +94,7 @@ public function offsetSet($offset, $value) $this->{$this->collection_key}[$offset] = $value; } + /** @return void */ public function offsetUnset($offset) { if (!is_numeric($offset)) { diff --git a/src/Model.php b/src/Model.php index 25ea40381..590984ef0 100644 --- a/src/Model.php +++ b/src/Model.php @@ -253,12 +253,14 @@ public function assertIsArray($obj, $method) } } + /** @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->$offset) || isset($this->modelData[$offset]); } + /** @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($offset) { @@ -267,6 +269,7 @@ public function offsetGet($offset) $this->__get($offset); } + /** @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { @@ -278,6 +281,7 @@ public function offsetSet($offset, $value) } } + /** @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { From 0d1a2567fd8fad18af35443eea4263be037461d2 Mon Sep 17 00:00:00 2001 From: Sebastian Fuss Date: Mon, 7 Feb 2022 15:08:03 +0100 Subject: [PATCH 1182/1274] chore: update README.md (#2197) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3149928d..ac5d4ef48 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ This example will remove all services other than "Drive" and "YouTube" when `composer update` or a fresh `composer install` is run. **IMPORTANT**: If you add any services back in `composer.json`, you will need to -remove the `vendor/google/apiclient-services` directory explicity for the +remove the `vendor/google/apiclient-services` directory explicitly for the change you made to have effect: ```sh @@ -454,7 +454,7 @@ $opt_params = array( ### How do I set a field to null? ### -The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google\Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. +The library strips out nulls from the objects sent to the Google APIs as it is the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google\Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire. ## Code Quality ## From c0ae314e055219978e6cd419087523fefc5c759f Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 7 Feb 2022 06:09:56 -0800 Subject: [PATCH 1183/1274] chore: clean up workflows (#2190) --- .github/workflows/tests.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 398d5dec8..318d026bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,8 +18,6 @@ jobs: composer-flags: "--prefer-lowest " - php: "8.0" composer-flags: "--prefer-lowest " - - php: "8.1" - composer-flags: "--prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: - uses: actions/checkout@v2 @@ -33,15 +31,9 @@ jobs: timeout_minutes: 10 max_attempts: 3 command: composer update ${{ matrix.composer-flags }} - - if: ${{ matrix.php == '8.0' || ( matrix.composer-flags == '--prefer-lowest' && matrix.php != '8.1' ) }} + - if: ${{ matrix.php == '8.0' && matrix.composer-flags == '--prefer-lowest ' }} name: Update guzzlehttp/ringphp dependency run: composer update guzzlehttp/ringphp - - if: ${{ matrix.php == '8.1' }} - name: Update guzzlehttp/ringphp dependency - run: composer update guzzlehttp/ringphp --ignore-platform-reqs - - if: ${{ matrix.php == '8.1' }} - name: Update phpunit/phpunit dependency - run: composer update phpunit/phpunit phpspec/prophecy-phpunit --with-dependencies --ignore-platform-reqs - name: Run Script run: vendor/bin/phpunit From 0735218971c34c37ccbf3f1e6c42f14e4e7492a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20L=C3=A9v=C3=AAque?= <5123888+Legenyes@users.noreply.github.com> Date: Tue, 5 Apr 2022 18:10:05 +0200 Subject: [PATCH 1184/1274] chore: add support for firebase/php-jwt v6.0 for CVE-2021-46743 (#2235) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8b712c5bd..ae6b32efc 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "php": "^5.6|^7.0|^8.0", "google/auth": "^1.10", "google/apiclient-services": "~0.200", - "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", + "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0||~6.0", "monolog/monolog": "^1.17||^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", From f7640911534cb4682f1683392e4aab73012648ec Mon Sep 17 00:00:00 2001 From: Felipe Hertzer Date: Wed, 6 Apr 2022 02:17:18 +1000 Subject: [PATCH 1185/1274] fix: batch header concatenation (#2233) --- src/Http/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Batch.php b/src/Http/Batch.php index a657bacd4..d27d5cd85 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -207,7 +207,7 @@ private function parseRawHeaders($rawHeaders) list($header, $value) = explode(': ', $headerLine, 2); $header = strtolower($header); if (isset($headers[$header])) { - $headers[$header] .= "\n" . $value; + $headers[$header] = array_merge((array)$headers[$header], (array)$value); } else { $headers[$header] = $value; } From a18b0e1ef5618523c607c01a41ec137c7f9af3b1 Mon Sep 17 00:00:00 2001 From: CyberFlame Date: Wed, 6 Apr 2022 04:19:05 +1200 Subject: [PATCH 1186/1274] chore: update psr7 for CVE-2022-24775 (#2234) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ae6b32efc..c2579f7d6 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "monolog/monolog": "^1.17||^2.0", "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", - "guzzlehttp/psr7": "^1.7||^2.0.0" + "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { "squizlabs/php_codesniffer": "~2.3", From e96471b6264ec8b0d22ceeaf12271f568aeb81b1 Mon Sep 17 00:00:00 2001 From: Alexander Dmitryuk Date: Wed, 6 Apr 2022 21:55:40 +0700 Subject: [PATCH 1187/1274] fix: check token expires_in attribute (#2218) --- src/Client.php | 4 ++++ tests/Google/ClientTest.php | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/Client.php b/src/Client.php index 70e8e82d6..c119e1ce3 100644 --- a/src/Client.php +++ b/src/Client.php @@ -569,6 +569,10 @@ public function isAccessTokenExpired() } } } + if (!isset($this->token['expires_in'])) { + // if the token does not have an "expires_in", then it's considered expired + return true; + } // If the token is set to expire in the next 30 seconds. return ($created + ($this->token['expires_in'] - 30)) < time(); diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 1286e7436..8968c14a7 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -315,6 +315,16 @@ public function testSettersGetters() $this->assertEquals($token, $client->getAccessToken()); } + public function testSetAccessTokenValidation() + { + $client = new Client(); + $client->setAccessToken([ + 'access_token' => 'token', + 'created' => time() + ]); + self::assertEquals(true, $client->isAccessTokenExpired()); + } + public function testDefaultConfigOptions() { $client = new Client(); From cb5250c68a3d08c4c1f1ac79170edd78f8214712 Mon Sep 17 00:00:00 2001 From: Alexander Dmitryuk Date: Mon, 11 Apr 2022 23:56:32 +0700 Subject: [PATCH 1188/1274] fix: missing import InvalidArgumentException (#2240) --- src/AccessToken/Verify.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index fa997f211..6952bb81b 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -22,13 +22,12 @@ use Firebase\JWT\SignatureInvalidException; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; +use InvalidArgumentException; use phpseclib3\Crypt\PublicKeyLoader; use phpseclib3\Crypt\RSA\PublicKey; use Psr\Cache\CacheItemPoolInterface; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Exception as GoogleException; -use Stash\Driver\FileSystem; -use Stash\Pool; use DateTime; use DomainException; use Exception; From 506c488cb22c960022adf515bf0acc1d266e81db Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 18 Apr 2022 11:01:04 -0500 Subject: [PATCH 1189/1274] fix: bad firebase call (#2245) --- src/AccessToken/Verify.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 6952bb81b..cba784fbd 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -20,6 +20,7 @@ use Firebase\JWT\ExpiredException as ExpiredExceptionV3; use Firebase\JWT\SignatureInvalidException; +use Firebase\JWT\Key; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use InvalidArgumentException; @@ -99,11 +100,15 @@ public function verifyIdToken($idToken, $audience = null) $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { try { - $payload = $this->jwt->decode( - $idToken, - $this->getPublicKey($cert), - array('RS256') - ); + $args = [$idToken]; + $publicKey = $this->getPublicKey($cert); + if (class_exists(Key::class)) { + $args[] = new Key($publicKey, 'RS256'); + } else { + $args[] = $publicKey; + $args[] = ['RS256']; + } + $payload = \call_user_func_array([$this->jwt, 'decode'], $args); if (property_exists($payload, 'aud')) { if ($audience && $payload->aud != $audience) { From 702eed9ae7022ba20dc7118c8161060cb50ee9f8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 20 Apr 2022 10:44:03 -0600 Subject: [PATCH 1190/1274] chore: attempt to fix doc generation on tag (#2249) --- .github/actions/docs/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 203f98e62..8498f777d 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -2,6 +2,7 @@ apt-get update apt-get install -y git wget +git checkout main git reset --hard HEAD # Create the directories From 51c617957671d09fe3cd47aab976af4902c5136c Mon Sep 17 00:00:00 2001 From: Anton Belyaev Date: Wed, 20 Apr 2022 20:15:04 +0300 Subject: [PATCH 1191/1274] chore: fix class reference in docblock (#2248) Co-authored-by: Brent Shaffer --- src/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.php b/src/Client.php index c119e1ce3..2ad61be26 100644 --- a/src/Client.php +++ b/src/Client.php @@ -34,6 +34,7 @@ use GuzzleHttp\Ring\Client\StreamHandler; use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; use Monolog\Logger; use Monolog\Handler\StreamHandler as MonologStreamHandler; From 1f1b62144ecb8247c838703c005f8bd278fca9b5 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Apr 2022 08:26:25 -0600 Subject: [PATCH 1192/1274] chore: remove docs generation on tag (#2250) --- .github/actions/docs/entrypoint.sh | 1 - .github/workflows/docs.yml | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 8498f777d..203f98e62 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -2,7 +2,6 @@ apt-get update apt-get install -y git wget -git checkout main git reset --hard HEAD # Create the directories diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 09199fd23..0c6125ad8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,10 +1,7 @@ name: Generate Documentation on: push: - branches: - - main - tags: - - "*" + branches: [main] jobs: docs: From c6d5a7bd348ac5cb15053bb4552bdeb5f6e597c8 Mon Sep 17 00:00:00 2001 From: Elvis Morales Date: Thu, 21 Apr 2022 07:30:24 -0700 Subject: [PATCH 1193/1274] chore: update service accounts URL in README (#2210) --- docs/oauth-server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/oauth-server.md b/docs/oauth-server.md index eb0707a18..a4c403eb0 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -28,7 +28,7 @@ If your application runs on Google App Engine, a service account is set up autom If your application doesn't run on Google App Engine or Google Compute Engine, you must obtain these credentials in the Google Developers Console. To generate service-account credentials, or to view the public credentials that you've already generated, do the following: -1. Open the [**Service accounts** section](https://console.developers.google.com/permissions/serviceaccounts?project=_) of the Developers Console's **Permissions** page. +1. Open the [**Service accounts** section](https://console.cloud.google.com/iam-admin/serviceaccounts) of the Developers Console's **IAM & Admin** page. 2. Click **Create service account**. 3. In the **Create service account** window, type a name for the service account and select **Furnish a new private key**. If you want to [grant G Suite domain-wide authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to the service account, also select **Enable G Suite Domain-wide Delegation**. Then, click **Create**. From b567d092b2d5480fa08645bd84e3c999ba283e25 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Apr 2022 11:30:15 -0600 Subject: [PATCH 1194/1274] chore: make whitespace consistent with our other libraries (#2251) --- .github/workflows/tests.yml | 3 +- composer.json | 3 +- examples/batch.php | 14 +- examples/idtoken.php | 30 +- examples/index.php | 24 +- examples/large-file-download.php | 128 +- examples/large-file-upload.php | 145 +- examples/multi-api.php | 62 +- examples/service-account.php | 20 +- examples/simple-file-upload.php | 94 +- examples/simple-query.php | 18 +- examples/templates/base.php | 106 +- phpcs.xml.dist | 22 +- src/AccessToken/Revoke.php | 84 +- src/AccessToken/Verify.php | 430 ++-- src/AuthHandler/AuthHandlerFactory.php | 48 +- src/AuthHandler/Guzzle5AuthHandler.php | 178 +- src/AuthHandler/Guzzle6AuthHandler.php | 192 +- src/AuthHandler/Guzzle7AuthHandler.php | 4 +- src/Client.php | 2461 ++++++++++----------- src/Collection.php | 168 +- src/Http/Batch.php | 381 ++-- src/Http/MediaFileUpload.php | 569 +++-- src/Http/REST.php | 274 +-- src/Model.php | 506 ++--- src/Service.php | 70 +- src/Service/Exception.php | 88 +- src/Service/Resource.php | 484 ++-- src/Task/Composer.php | 162 +- src/Task/Runner.php | 471 ++-- src/Utils/UriTemplate.php | 536 ++--- src/aliases.php | 40 +- tests/BaseTest.php | 422 ++-- tests/Google/AccessToken/VerifyTest.php | 238 +- tests/Google/CacheTest.php | 140 +- tests/Google/ClientTest.php | 1865 ++++++++-------- tests/Google/Http/BatchTest.php | 104 +- tests/Google/Http/MediaFileUploadTest.php | 346 +-- tests/Google/Http/RESTTest.php | 217 +- tests/Google/ModelTest.php | 424 ++-- tests/Google/Service/AdSenseTest.php | 816 +++---- tests/Google/Service/ResourceTest.php | 824 +++---- tests/Google/Service/TasksTest.php | 118 +- tests/Google/Service/YouTubeTest.php | 96 +- tests/Google/ServiceTest.php | 253 ++- tests/Google/Task/RunnerTest.php | 886 ++++---- tests/Google/Utils/UriTemplateTest.php | 507 +++-- tests/examples/batchTest.php | 18 +- tests/examples/idTokenTest.php | 24 +- tests/examples/indexTest.php | 14 +- tests/examples/largeFileDownloadTest.php | 48 +- tests/examples/largeFileUploadTest.php | 26 +- tests/examples/multiApiTest.php | 18 +- tests/examples/serviceAccountTest.php | 16 +- tests/examples/simpleFileUploadTest.php | 48 +- tests/examples/simpleQueryTest.php | 20 +- 56 files changed, 7650 insertions(+), 7653 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 318d026bf..58cd04d21 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,4 +53,5 @@ jobs: max_attempts: 3 command: composer install - name: Run Script - run: vendor/bin/phpcs src --standard=phpcs.xml.dist -np + run: vendor/bin/phpcs src tests examples --standard=phpcs.xml.dist -nps + diff --git a/composer.json b/composer.json index c2579f7d6..04d65f650 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +16,11 @@ "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { - "squizlabs/php_codesniffer": "~2.3", + "squizlabs/php_codesniffer": "^3.0", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^0.3.2|^1.1", "phpcompatibility/php-compatibility": "^9.2", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "composer/composer": "^1.10.22", "yoast/phpunit-polyfills": "^1.0", "phpspec/prophecy-phpunit": "^1.1||^2.0", diff --git a/examples/batch.php b/examples/batch.php index 9df665059..a8377b584 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -37,8 +37,8 @@ // Warn if the API key isn't set. if (!$apiKey = getApiKey()) { - echo missingApiKeyWarning(); - return; + echo missingApiKeyWarning(); + return; } $client->setDeveloperKey($apiKey); @@ -79,15 +79,15 @@ ?>

      Results Of Call 1:

      - - + +

      Results Of Call 2:

      - - + +
      - +fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); - // store in the session also - $_SESSION['id_token_token'] = $token; + // store in the session also + $_SESSION['id_token_token'] = $token; - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); - return; + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + return; } /************************************************ @@ -75,9 +75,9 @@ !empty($_SESSION['id_token_token']) && isset($_SESSION['id_token_token']['id_token']) ) { - $client->setAccessToken($_SESSION['id_token_token']); + $client->setAccessToken($_SESSION['id_token_token']); } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } /************************************************ @@ -89,16 +89,16 @@ and that can be cached. ************************************************/ if ($client->getAccessToken()) { - $token_data = $client->verifyIdToken(); + $token_data = $client->verifyIdToken(); } ?>
      - + - +

      Here is the data from your Id Token:

      @@ -106,4 +106,4 @@
      - + - - To view this example, run the following command from the root directory of this repository: + + To view this example, run the following command from the root directory of this repository: - php -S localhost:8080 -t examples/ + php -S localhost:8080 -t examples/ - And then browse to "localhost:8080" in your web browser - + And then browse to "localhost:8080" in your web browser + - - - - API Key set! - + + + + API Key set! + - +
      You have not entered your API key
      " method="POST"> @@ -40,4 +40,4 @@
    • An example of using multiple APIs.
    - +fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); - // store in the session also - $_SESSION['upload_token'] = $token; + // store in the session also + $_SESSION['upload_token'] = $token; - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } // set the access token as part of the client if (!empty($_SESSION['upload_token'])) { - $client->setAccessToken($_SESSION['upload_token']); - if ($client->isAccessTokenExpired()) { - unset($_SESSION['upload_token']); - } + $client->setAccessToken($_SESSION['upload_token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['upload_token']); + } } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } /************************************************ @@ -73,77 +73,77 @@ * file. ************************************************/ if ($client->getAccessToken()) { - // Check for "Big File" and include the file ID and size - $files = $service->files->listFiles([ - 'q' => "name='Big File'", - 'fields' => 'files(id,size)' - ]); - - if (count($files) == 0) { - echo " + // Check for "Big File" and include the file ID and size + $files = $service->files->listFiles([ + 'q' => "name='Big File'", + 'fields' => 'files(id,size)' + ]); + + if (count($files) == 0) { + echo "

    Before you can use this sample, you need to upload a large file to Drive.

    "; - return; - } - - // If this is a POST, download the file - if ($_SERVER['REQUEST_METHOD'] == 'POST') { - // Determine the file's size and ID - $fileId = $files[0]->id; - $fileSize = intval($files[0]->size); - - // Get the authorized Guzzle HTTP client - $http = $client->authorize(); - - // Open a file for writing - $fp = fopen('Big File (downloaded)', 'w'); - - // Download in 1 MB chunks - $chunkSizeBytes = 1 * 1024 * 1024; - $chunkStart = 0; - - // Iterate over each chunk and write it to our file - while ($chunkStart < $fileSize) { - $chunkEnd = $chunkStart + $chunkSizeBytes; - $response = $http->request( - 'GET', - sprintf('/drive/v3/files/%s', $fileId), - [ - 'query' => ['alt' => 'media'], - 'headers' => [ - 'Range' => sprintf('bytes=%s-%s', $chunkStart, $chunkEnd) - ] - ] - ); - $chunkStart = $chunkEnd + 1; - fwrite($fp, $response->getBody()->getContents()); + return; } - // close the file pointer - fclose($fp); - // redirect back to this example - header('Location: ' . filter_var($redirect_uri . '?downloaded', FILTER_SANITIZE_URL)); - } + // If this is a POST, download the file + if ($_SERVER['REQUEST_METHOD'] == 'POST') { + // Determine the file's size and ID + $fileId = $files[0]->id; + $fileSize = intval($files[0]->size); + + // Get the authorized Guzzle HTTP client + $http = $client->authorize(); + + // Open a file for writing + $fp = fopen('Big File (downloaded)', 'w'); + + // Download in 1 MB chunks + $chunkSizeBytes = 1 * 1024 * 1024; + $chunkStart = 0; + + // Iterate over each chunk and write it to our file + while ($chunkStart < $fileSize) { + $chunkEnd = $chunkStart + $chunkSizeBytes; + $response = $http->request( + 'GET', + sprintf('/drive/v3/files/%s', $fileId), + [ + 'query' => ['alt' => 'media'], + 'headers' => [ + 'Range' => sprintf('bytes=%s-%s', $chunkStart, $chunkEnd) + ] + ] + ); + $chunkStart = $chunkEnd + 1; + fwrite($fp, $response->getBody()->getContents()); + } + // close the file pointer + fclose($fp); + + // redirect back to this example + header('Location: ' . filter_var($redirect_uri . '?downloaded', FILTER_SANITIZE_URL)); + } } ?>
    - + - +

    Your call was successful! Check your filesystem for the file:

    Big File (downloaded)

    - +
    - +fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); - // store in the session also - $_SESSION['upload_token'] = $token; + // store in the session also + $_SESSION['upload_token'] = $token; - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } // set the access token as part of the client if (!empty($_SESSION['upload_token'])) { - $client->setAccessToken($_SESSION['upload_token']); - if ($client->isAccessTokenExpired()) { - unset($_SESSION['upload_token']); - } + $client->setAccessToken($_SESSION['upload_token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['upload_token']); + } } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } /************************************************ @@ -78,69 +78,70 @@ * file. ************************************************/ if ($_SERVER['REQUEST_METHOD'] == 'POST' && $client->getAccessToken()) { - /************************************************ - * We'll setup an empty 20MB file to upload. - ************************************************/ - DEFINE("TESTFILE", 'testfile.txt'); - if (!file_exists(TESTFILE)) { - $fh = fopen(TESTFILE, 'w'); - fseek($fh, 1024*1024*20); - fwrite($fh, "!", 1); - fclose($fh); - } - - $file = new Google\Service\Drive\DriveFile(); - $file->name = "Big File"; - $chunkSizeBytes = 1 * 1024 * 1024; - - // Call the API with the media upload, defer so it doesn't immediately return. - $client->setDefer(true); - $request = $service->files->create($file); - - // Create a media file upload to represent our upload process. - $media = new Google\Http\MediaFileUpload( - $client, - $request, - 'text/plain', - null, - true, - $chunkSizeBytes - ); - $media->setFileSize(filesize(TESTFILE)); - - // Upload the various chunks. $status will be false until the process is - // complete. - $status = false; - $handle = fopen(TESTFILE, "rb"); - while (!$status && !feof($handle)) { - // read until you get $chunkSizeBytes from TESTFILE - // fread will never return more than 8192 bytes if the stream is read buffered and it does not represent a plain file - // An example of a read buffered file is when reading from a URL - $chunk = readVideoChunk($handle, $chunkSizeBytes); - $status = $media->nextChunk($chunk); - } - - // The final value of $status will be the data from the API for the object - // that has been uploaded. - $result = false; - if ($status != false) { - $result = $status; - } - - fclose($handle); + /************************************************ + * We'll setup an empty 20MB file to upload. + ************************************************/ + DEFINE("TESTFILE", 'testfile.txt'); + if (!file_exists(TESTFILE)) { + $fh = fopen(TESTFILE, 'w'); + fseek($fh, 1024*1024*20); + fwrite($fh, "!", 1); + fclose($fh); + } + + $file = new Google\Service\Drive\DriveFile(); + $file->name = "Big File"; + $chunkSizeBytes = 1 * 1024 * 1024; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->create($file); + + // Create a media file upload to represent our upload process. + $media = new Google\Http\MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true, + $chunkSizeBytes + ); + $media->setFileSize(filesize(TESTFILE)); + + // Upload the various chunks. $status will be false until the process is + // complete. + $status = false; + $handle = fopen(TESTFILE, "rb"); + while (!$status && !feof($handle)) { + // read until you get $chunkSizeBytes from TESTFILE + // fread will never return more than 8192 bytes if the stream is read + // buffered and it does not represent a plain file + // An example of a read buffered file is when reading from a URL + $chunk = readVideoChunk($handle, $chunkSizeBytes); + $status = $media->nextChunk($chunk); + } + + // The final value of $status will be the data from the API for the object + // that has been uploaded. + $result = false; + if ($status != false) { + $result = $status; + } + + fclose($handle); } -function readVideoChunk ($handle, $chunkSize) +function readVideoChunk($handle, $chunkSize) { $byteCount = 0; $giantChunk = ""; while (!feof($handle)) { - // fread will never return more than 8192 bytes if the stream is read buffered and it does not represent a plain file + // fread will never return more than 8192 bytes if the stream is read + // buffered and it does not represent a plain file $chunk = fread($handle, 8192); $byteCount += strlen($chunk); $giantChunk .= $chunk; - if ($byteCount >= $chunkSize) - { + if ($byteCount >= $chunkSize) { return $giantChunk; } } @@ -149,21 +150,21 @@ function readVideoChunk ($handle, $chunkSize) ?>
    - + - +

    Your call was successful! Check your drive for this file:

    name ?>

    Now try downloading a large file from Drive.

    - +
    - +fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); - // store in the session also - $_SESSION['multi-api-token'] = $token; + // store in the session also + $_SESSION['multi-api-token'] = $token; - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } // set the access token as part of the client if (!empty($_SESSION['multi-api-token'])) { - $client->setAccessToken($_SESSION['multi-api-token']); - if ($client->isAccessTokenExpired()) { - unset($_SESSION['multi-api-token']); - } + $client->setAccessToken($_SESSION['multi-api-token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['multi-api-token']); + } } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } /************************************************ @@ -86,35 +86,35 @@ and a list of files from Drive. ************************************************/ if ($client->getAccessToken()) { - $_SESSION['multi-api-token'] = $client->getAccessToken(); + $_SESSION['multi-api-token'] = $client->getAccessToken(); - $dr_results = $dr_service->files->listFiles(array('pageSize' => 10)); + $dr_results = $dr_service->files->listFiles(array('pageSize' => 10)); - $yt_channels = $yt_service->channels->listChannels('contentDetails', array("mine" => true)); - $likePlaylist = $yt_channels[0]->contentDetails->relatedPlaylists->likes; - $yt_results = $yt_service->playlistItems->listPlaylistItems( - "snippet", - array("playlistId" => $likePlaylist) - ); + $yt_channels = $yt_service->channels->listChannels('contentDetails', array("mine" => true)); + $likePlaylist = $yt_channels[0]->contentDetails->relatedPlaylists->likes; + $yt_results = $yt_service->playlistItems->listPlaylistItems( + "snippet", + array("playlistId" => $likePlaylist) + ); } ?>
    - + - +

    Results Of Drive List:

    - - name ?>
    - + + name ?>
    +

    Results Of YouTube Likes:

    - -
    - + +
    +
    - +setAuthConfig($credentials_file); + // set the location manually + $client->setAuthConfig($credentials_file); } elseif (getenv('GOOGLE_APPLICATION_CREDENTIALS')) { - // use the application default credentials - $client->useApplicationDefaultCredentials(); + // use the application default credentials + $client->useApplicationDefaultCredentials(); } else { - echo missingServiceAccountDetailsWarning(); - return; + echo missingServiceAccountDetailsWarning(); + return; } $client->setApplicationName("Client_Library_Examples"); @@ -61,15 +61,15 @@ ************************************************/ $query = 'Henry David Thoreau'; $optParams = array( - 'filter' => 'free-ebooks', + 'filter' => 'free-ebooks', ); $results = $service->volumes->listVolumes($query, $optParams); ?>

    Results Of Call:

    - - + +
    - +fetchAccessTokenWithAuthCode($_GET['code']); - $client->setAccessToken($token); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $client->setAccessToken($token); - // store in the session also - $_SESSION['upload_token'] = $token; + // store in the session also + $_SESSION['upload_token'] = $token; - // redirect back to the example - header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); + // redirect back to the example + header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL)); } // set the access token as part of the client if (!empty($_SESSION['upload_token'])) { - $client->setAccessToken($_SESSION['upload_token']); - if ($client->isAccessTokenExpired()) { - unset($_SESSION['upload_token']); - } + $client->setAccessToken($_SESSION['upload_token']); + if ($client->isAccessTokenExpired()) { + unset($_SESSION['upload_token']); + } } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } /************************************************ @@ -78,46 +78,46 @@ * file. For larger files, see fileupload.php. ************************************************/ if ($_SERVER['REQUEST_METHOD'] == 'POST' && $client->getAccessToken()) { - // We'll setup an empty 1MB file to upload. - DEFINE("TESTFILE", 'testfile-small.txt'); - if (!file_exists(TESTFILE)) { - $fh = fopen(TESTFILE, 'w'); - fseek($fh, 1024 * 1024); - fwrite($fh, "!", 1); - fclose($fh); - } + // We'll setup an empty 1MB file to upload. + DEFINE("TESTFILE", 'testfile-small.txt'); + if (!file_exists(TESTFILE)) { + $fh = fopen(TESTFILE, 'w'); + fseek($fh, 1024 * 1024); + fwrite($fh, "!", 1); + fclose($fh); + } - // This is uploading a file directly, with no metadata associated. - $file = new Google\Service\Drive\DriveFile(); - $result = $service->files->create( - $file, - array( - 'data' => file_get_contents(TESTFILE), - 'mimeType' => 'application/octet-stream', - 'uploadType' => 'media' - ) - ); + // This is uploading a file directly, with no metadata associated. + $file = new Google\Service\Drive\DriveFile(); + $result = $service->files->create( + $file, + array( + 'data' => file_get_contents(TESTFILE), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'media' + ) + ); - // Now lets try and send the metadata as well using multipart! - $file = new Google\Service\Drive\DriveFile(); - $file->setName("Hello World!"); - $result2 = $service->files->create( - $file, - array( - 'data' => file_get_contents(TESTFILE), - 'mimeType' => 'application/octet-stream', - 'uploadType' => 'multipart' - ) - ); + // Now lets try and send the metadata as well using multipart! + $file = new Google\Service\Drive\DriveFile(); + $file->setName("Hello World!"); + $result2 = $service->files->create( + $file, + array( + 'data' => file_get_contents(TESTFILE), + 'mimeType' => 'application/octet-stream', + 'uploadType' => 'multipart' + ) + ); } ?>
    - + - +

    Your call was successful! Check your drive for the following files:

    - +
    - +setDeveloperKey($apiKey); @@ -49,7 +49,7 @@ ************************************************/ $query = 'Henry David Thoreau'; $optParams = array( - 'filter' => 'free-ebooks', + 'filter' => 'free-ebooks', ); $results = $service->volumes->listVolumes($query, $optParams); @@ -59,7 +59,7 @@ $client->setDefer(true); $query = 'Henry David Thoreau'; $optParams = array( - 'filter' => 'free-ebooks', + 'filter' => 'free-ebooks', ); $request = $service->volumes->listVolumes($query, $optParams); $resultsDeferred = $client->execute($request); @@ -76,15 +76,15 @@ ?>

    Results Of Call:

    - - + +

    Results Of Deferred Call:

    - - + +
    - + + $ret = " " . $title . " \n"; - if ($_SERVER['PHP_SELF'] != "/index.php") { - $ret .= "

    Back

    "; - } - $ret .= "

    " . $title . "

    "; + if ($_SERVER['PHP_SELF'] != "/index.php") { + $ret .= "

    Back

    "; + } + $ret .= "

    " . $title . "

    "; - // Start the session (for storing access tokens and things) - if (!headers_sent()) { - session_start(); - } + // Start the session (for storing access tokens and things) + if (!headers_sent()) { + session_start(); + } - return $ret; + return $ret; } function pageFooter($file = null) { - $ret = ""; - if ($file) { - $ret .= "

    Code:

    "; - $ret .= "
    ";
    -    $ret .= htmlspecialchars(file_get_contents($file));
    -    $ret .= "
    "; - } - $ret .= ""; - - return $ret; + $ret = ""; + if ($file) { + $ret .= "

    Code:

    "; + $ret .= "
    ";
    +        $ret .= htmlspecialchars(file_get_contents($file));
    +        $ret .= "
    "; + } + $ret .= ""; + + return $ret; } function missingApiKeyWarning() { - $ret = " + $ret = "

    Warning: You need to set a Simple API Access key from the Google API console

    "; - return $ret; + return $ret; } function missingClientSecretsWarning() { - $ret = " + $ret = "

    Warning: You need to set Client ID, Client Secret and Redirect URI from the Google API console

    "; - return $ret; + return $ret; } function missingServiceAccountDetailsWarning() { - $ret = " + $ret = "

    Warning: You need download your Service Account Credentials JSON from the Google API console. @@ -81,12 +81,12 @@ function missingServiceAccountDetailsWarning() as the path to this file, but in the context of this example we will do this for you.

    "; - return $ret; + return $ret; } function missingOAuth2CredentialsWarning() { - $ret = " + $ret = "

    Warning: You need to set the location of your OAuth2 Client Credentials from the Google API console. @@ -96,72 +96,72 @@ function missingOAuth2CredentialsWarning() rename them 'oauth-credentials.json'.

    "; - return $ret; + return $ret; } function invalidCsrfTokenWarning() { - $ret = " + $ret = "

    The CSRF token is invalid, your session probably expired. Please refresh the page.

    "; - return $ret; + return $ret; } function checkServiceAccountCredentialsFile() { - // service account creds - $application_creds = __DIR__ . '/../../service-account-credentials.json'; + // service account creds + $application_creds = __DIR__ . '/../../service-account-credentials.json'; - return file_exists($application_creds) ? $application_creds : false; + return file_exists($application_creds) ? $application_creds : false; } function getCsrfToken() { - if (!isset($_SESSION['csrf_token'])) { - $_SESSION['csrf_token'] = bin2hex(openssl_random_pseudo_bytes(32)); - } + if (!isset($_SESSION['csrf_token'])) { + $_SESSION['csrf_token'] = bin2hex(openssl_random_pseudo_bytes(32)); + } - return $_SESSION['csrf_token']; + return $_SESSION['csrf_token']; } function validateCsrfToken() { - return isset($_REQUEST['csrf_token']) + return isset($_REQUEST['csrf_token']) && isset($_SESSION['csrf_token']) && $_REQUEST['csrf_token'] === $_SESSION['csrf_token']; } function getOAuthCredentialsFile() { - // oauth2 creds - $oauth_creds = __DIR__ . '/../../oauth-credentials.json'; + // oauth2 creds + $oauth_creds = __DIR__ . '/../../oauth-credentials.json'; - if (file_exists($oauth_creds)) { - return $oauth_creds; - } + if (file_exists($oauth_creds)) { + return $oauth_creds; + } - return false; + return false; } function setClientCredentialsFile($apiKey) { - $file = __DIR__ . '/../../tests/.apiKey'; - file_put_contents($file, $apiKey); + $file = __DIR__ . '/../../tests/.apiKey'; + file_put_contents($file, $apiKey); } function getApiKey() { - $file = __DIR__ . '/../../tests/.apiKey'; - if (file_exists($file)) { - return file_get_contents($file); - } + $file = __DIR__ . '/../../tests/.apiKey'; + if (file_exists($file)) { + return file_get_contents($file); + } } function setApiKey($apiKey) { - $file = __DIR__ . '/../../tests/.apiKey'; - file_put_contents($file, $apiKey); + $file = __DIR__ . '/../../tests/.apiKey'; + file_put_contents($file, $apiKey); } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 3f58a6ba6..c18eadccd 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -21,8 +21,8 @@ - - Service/*.php + + *Test.php @@ -67,10 +67,10 @@ - + - + @@ -128,9 +128,15 @@ - + + + 0 + + + 0 + - - - - - + diff --git a/src/AccessToken/Revoke.php b/src/AccessToken/Revoke.php index d86cc6e32..bcccc9b47 100644 --- a/src/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -30,52 +30,52 @@ */ class Revoke { - /** - * @var ClientInterface The http client - */ - private $http; + /** + * @var ClientInterface The http client + */ + private $http; - /** - * Instantiates the class, but does not initiate the login flow, leaving it - * to the discretion of the caller. - */ - public function __construct(ClientInterface $http = null) - { - $this->http = $http; - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token) - { - if (is_array($token)) { - if (isset($token['refresh_token'])) { - $token = $token['refresh_token']; - } else { - $token = $token['access_token']; - } + /** + * Instantiates the class, but does not initiate the login flow, leaving it + * to the discretion of the caller. + */ + public function __construct(ClientInterface $http = null) + { + $this->http = $http; } - $body = Psr7\Utils::streamFor(http_build_query(array('token' => $token))); - $request = new Request( - 'POST', - Client::OAUTH2_REVOKE_URI, - [ - 'Cache-Control' => 'no-store', - 'Content-Type' => 'application/x-www-form-urlencoded', - ], - $body - ); + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * + * @param string|array $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken($token) + { + if (is_array($token)) { + if (isset($token['refresh_token'])) { + $token = $token['refresh_token']; + } else { + $token = $token['access_token']; + } + } + + $body = Psr7\Utils::streamFor(http_build_query(array('token' => $token))); + $request = new Request( + 'POST', + Client::OAUTH2_REVOKE_URI, + [ + 'Cache-Control' => 'no-store', + 'Content-Type' => 'application/x-www-form-urlencoded', + ], + $body + ); - $httpHandler = HttpHandlerFactory::build($this->http); + $httpHandler = HttpHandlerFactory::build($this->http); - $response = $httpHandler($request); + $response = $httpHandler($request); - return $response->getStatusCode() == 200; - } + return $response->getStatusCode() == 200; + } } diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index cba784fbd..6542ab23e 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -41,257 +41,257 @@ */ class Verify { - const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; - const OAUTH2_ISSUER = 'accounts.google.com'; - const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; - - /** - * @var ClientInterface The http client - */ - private $http; - - /** - * @var CacheItemPoolInterface cache class - */ - private $cache; - - /** - * Instantiates the class, but does not initiate the login flow, leaving it - * to the discretion of the caller. - */ - public function __construct( - ClientInterface $http = null, - CacheItemPoolInterface $cache = null, - $jwt = null - ) { - if (null === $http) { - $http = new Client(); - } - - if (null === $cache) { - $cache = new MemoryCacheItemPool; - } + const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; + const OAUTH2_ISSUER = 'accounts.google.com'; + const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; + + /** + * @var ClientInterface The http client + */ + private $http; + + /** + * @var CacheItemPoolInterface cache class + */ + private $cache; + + /** + * Instantiates the class, but does not initiate the login flow, leaving it + * to the discretion of the caller. + */ + public function __construct( + ClientInterface $http = null, + CacheItemPoolInterface $cache = null, + $jwt = null + ) { + if (null === $http) { + $http = new Client(); + } - $this->http = $http; - $this->cache = $cache; - $this->jwt = $jwt ?: $this->getJwtService(); - } + if (null === $cache) { + $cache = new MemoryCacheItemPool; + } - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param string $idToken the ID token in JWT format - * @param string $audience Optional. The audience to verify against JWt "aud" - * @return array the token payload, if successful - */ - public function verifyIdToken($idToken, $audience = null) - { - if (empty($idToken)) { - throw new LogicException('id_token cannot be null'); + $this->http = $http; + $this->cache = $cache; + $this->jwt = $jwt ?: $this->getJwtService(); } - // set phpseclib constants if applicable - $this->setPhpsecConstants(); - - // Check signature - $certs = $this->getFederatedSignOnCerts(); - foreach ($certs as $cert) { - try { - $args = [$idToken]; - $publicKey = $this->getPublicKey($cert); - if (class_exists(Key::class)) { - $args[] = new Key($publicKey, 'RS256'); - } else { - $args[] = $publicKey; - $args[] = ['RS256']; - } - $payload = \call_user_func_array([$this->jwt, 'decode'], $args); - - if (property_exists($payload, 'aud')) { - if ($audience && $payload->aud != $audience) { - return false; - } + /** + * Verifies an id token and returns the authenticated apiLoginTicket. + * Throws an exception if the id token is not valid. + * The audience parameter can be used to control which id tokens are + * accepted. By default, the id token must have been issued to this OAuth2 client. + * + * @param string $idToken the ID token in JWT format + * @param string $audience Optional. The audience to verify against JWt "aud" + * @return array the token payload, if successful + */ + public function verifyIdToken($idToken, $audience = null) + { + if (empty($idToken)) { + throw new LogicException('id_token cannot be null'); } - // support HTTP and HTTPS issuers - // @see https://developers.google.com/identity/sign-in/web/backend-auth - $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); - if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { - return false; + // set phpseclib constants if applicable + $this->setPhpsecConstants(); + + // Check signature + $certs = $this->getFederatedSignOnCerts(); + foreach ($certs as $cert) { + try { + $args = [$idToken]; + $publicKey = $this->getPublicKey($cert); + if (class_exists(Key::class)) { + $args[] = new Key($publicKey, 'RS256'); + } else { + $args[] = $publicKey; + $args[] = ['RS256']; + } + $payload = \call_user_func_array([$this->jwt, 'decode'], $args); + + if (property_exists($payload, 'aud')) { + if ($audience && $payload->aud != $audience) { + return false; + } + } + + // support HTTP and HTTPS issuers + // @see https://developers.google.com/identity/sign-in/web/backend-auth + $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); + if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { + return false; + } + + return (array) $payload; + } catch (ExpiredException $e) { + return false; + } catch (ExpiredExceptionV3 $e) { + return false; + } catch (SignatureInvalidException $e) { + // continue + } catch (DomainException $e) { + // continue + } } - return (array) $payload; - } catch (ExpiredException $e) { return false; - } catch (ExpiredExceptionV3 $e) { - return false; - } catch (SignatureInvalidException $e) { - // continue - } catch (DomainException $e) { - // continue - } } - return false; - } + private function getCache() + { + return $this->cache; + } + + /** + * Retrieve and cache a certificates file. + * + * @param $url string location + * @throws \Google\Exception + * @return array certificates + */ + private function retrieveCertsFromLocation($url) + { + // If we're retrieving a local file, just grab it. + if (0 !== strpos($url, 'http')) { + if (!$file = file_get_contents($url)) { + throw new GoogleException( + "Failed to retrieve verification certificates: '" . + $url . "'." + ); + } + + return json_decode($file, true); + } - private function getCache() - { - return $this->cache; - } + $response = $this->http->get($url); - /** - * Retrieve and cache a certificates file. - * - * @param $url string location - * @throws \Google\Exception - * @return array certificates - */ - private function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if (0 !== strpos($url, 'http')) { - if (!$file = file_get_contents($url)) { + if ($response->getStatusCode() == 200) { + return json_decode((string) $response->getBody(), true); + } throw new GoogleException( - "Failed to retrieve verification certificates: '" . - $url . "'." + sprintf( + 'Failed to retrieve verification certificates: "%s".', + $response->getBody()->getContents() + ), + $response->getStatusCode() ); - } - - return json_decode($file, true); } - $response = $this->http->get($url); + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() + { + $certs = null; + if ($cache = $this->getCache()) { + $cacheItem = $cache->getItem('federated_signon_certs_v3'); + $certs = $cacheItem->get(); + } + - if ($response->getStatusCode() == 200) { - return json_decode((string) $response->getBody(), true); - } - throw new GoogleException( - sprintf( - 'Failed to retrieve verification certificates: "%s".', - $response->getBody()->getContents() - ), - $response->getStatusCode() - ); - } - - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - $certs = null; - if ($cache = $this->getCache()) { - $cacheItem = $cache->getItem('federated_signon_certs_v3'); - $certs = $cacheItem->get(); - } + if (!$certs) { + $certs = $this->retrieveCertsFromLocation( + self::FEDERATED_SIGNON_CERT_URL + ); + if ($cache) { + $cacheItem->expiresAt(new DateTime('+1 hour')); + $cacheItem->set($certs); + $cache->save($cacheItem); + } + } - if (!$certs) { - $certs = $this->retrieveCertsFromLocation( - self::FEDERATED_SIGNON_CERT_URL - ); + if (!isset($certs['keys'])) { + throw new InvalidArgumentException( + 'federated sign-on certs expects "keys" to be set' + ); + } - if ($cache) { - $cacheItem->expiresAt(new DateTime('+1 hour')); - $cacheItem->set($certs); - $cache->save($cacheItem); - } + return $certs['keys']; } - if (!isset($certs['keys'])) { - throw new InvalidArgumentException( - 'federated sign-on certs expects "keys" to be set' - ); - } + private function getJwtService() + { + $jwtClass = 'JWT'; + if (class_exists('\Firebase\JWT\JWT')) { + $jwtClass = 'Firebase\JWT\JWT'; + } - return $certs['keys']; - } + if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + // Ensures JWT leeway is at least 1 + // @see https://github.com/google/google-api-php-client/issues/827 + $jwtClass::$leeway = 1; + } - private function getJwtService() - { - $jwtClass = 'JWT'; - if (class_exists('\Firebase\JWT\JWT')) { - $jwtClass = 'Firebase\JWT\JWT'; + return new $jwtClass; } - if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { - // Ensures JWT leeway is at least 1 - // @see https://github.com/google/google-api-php-client/issues/827 - $jwtClass::$leeway = 1; - } + private function getPublicKey($cert) + { + $bigIntClass = $this->getBigIntClass(); + $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); + $component = array('n' => $modulus, 'e' => $exponent); - return new $jwtClass; - } + if (class_exists('phpseclib3\Crypt\RSA\PublicKey')) { + /** @var PublicKey $loader */ + $loader = PublicKeyLoader::load($component); - private function getPublicKey($cert) - { - $bigIntClass = $this->getBigIntClass(); - $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - $component = array('n' => $modulus, 'e' => $exponent); + return $loader->toString('PKCS8'); + } - if (class_exists('phpseclib3\Crypt\RSA\PublicKey')) { - /** @var PublicKey $loader */ - $loader = PublicKeyLoader::load($component); + $rsaClass = $this->getRsaClass(); + $rsa = new $rsaClass(); + $rsa->loadKey($component); - return $loader->toString('PKCS8'); + return $rsa->getPublicKey(); } - $rsaClass = $this->getRsaClass(); - $rsa = new $rsaClass(); - $rsa->loadKey($component); - - return $rsa->getPublicKey(); - } + private function getRsaClass() + { + if (class_exists('phpseclib3\Crypt\RSA')) { + return 'phpseclib3\Crypt\RSA'; + } - private function getRsaClass() - { - if (class_exists('phpseclib3\Crypt\RSA')) { - return 'phpseclib3\Crypt\RSA'; - } + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA'; + } - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA'; + return 'Crypt_RSA'; } - return 'Crypt_RSA'; - } + private function getBigIntClass() + { + if (class_exists('phpseclib3\Math\BigInteger')) { + return 'phpseclib3\Math\BigInteger'; + } - private function getBigIntClass() - { - if (class_exists('phpseclib3\Math\BigInteger')) { - return 'phpseclib3\Math\BigInteger'; - } + if (class_exists('phpseclib\Math\BigInteger')) { + return 'phpseclib\Math\BigInteger'; + } - if (class_exists('phpseclib\Math\BigInteger')) { - return 'phpseclib\Math\BigInteger'; + return 'Math_BigInteger'; } - return 'Math_BigInteger'; - } + private function getOpenSslConstant() + { + if (class_exists('phpseclib3\Crypt\AES')) { + return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; + } - private function getOpenSslConstant() - { - if (class_exists('phpseclib3\Crypt\AES')) { - return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; - } + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; + } - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; - } + if (class_exists('Crypt_RSA')) { + return 'CRYPT_RSA_MODE_OPENSSL'; + } - if (class_exists('Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; + throw new Exception('Cannot find RSA class'); } - throw new Exception('Cannot find RSA class'); - } - - /** + /** * phpseclib calls "phpinfo" by default, which requires special * whitelisting in the AppEngine VM environment. This function * sets constants to bypass the need for phpseclib to check phpinfo @@ -299,15 +299,15 @@ private function getOpenSslConstant() * @see phpseclib/Math/BigInteger * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 */ - private function setPhpsecConstants() - { - if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { - if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { - define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); - } - if (!defined('CRYPT_RSA_MODE')) { - define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant())); - } + private function setPhpsecConstants() + { + if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { + if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { + define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); + } + if (!defined('CRYPT_RSA_MODE')) { + define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant())); + } + } } - } } diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index dced77a17..65510440f 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -23,30 +23,30 @@ class AuthHandlerFactory { - /** - * Builds out a default http handler for the installed version of guzzle. - * - * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler - * @throws Exception - */ - public static function build($cache = null, array $cacheConfig = []) - { - $guzzleVersion = null; - if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { - $guzzleVersion = ClientInterface::MAJOR_VERSION; - } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { - $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); - } + /** + * Builds out a default http handler for the installed version of guzzle. + * + * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler + * @throws Exception + */ + public static function build($cache = null, array $cacheConfig = []) + { + $guzzleVersion = null; + if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + $guzzleVersion = ClientInterface::MAJOR_VERSION; + } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); + } - switch ($guzzleVersion) { - case 5: - return new Guzzle5AuthHandler($cache, $cacheConfig); - case 6: - return new Guzzle6AuthHandler($cache, $cacheConfig); - case 7: - return new Guzzle7AuthHandler($cache, $cacheConfig); - default: - throw new Exception('Version not supported'); + switch ($guzzleVersion) { + case 5: + return new Guzzle5AuthHandler($cache, $cacheConfig); + case 6: + return new Guzzle6AuthHandler($cache, $cacheConfig); + case 7: + return new Guzzle7AuthHandler($cache, $cacheConfig); + default: + throw new Exception('Version not supported'); + } } - } } diff --git a/src/AuthHandler/Guzzle5AuthHandler.php b/src/AuthHandler/Guzzle5AuthHandler.php index bf7440df1..f2767036f 100644 --- a/src/AuthHandler/Guzzle5AuthHandler.php +++ b/src/AuthHandler/Guzzle5AuthHandler.php @@ -13,98 +13,96 @@ use Psr\Cache\CacheItemPoolInterface; /** -* -*/ + * This supports Guzzle 5 + */ class Guzzle5AuthHandler { - protected $cache; - protected $cacheConfig; - - public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = []) - { - $this->cache = $cache; - $this->cacheConfig = $cacheConfig; - } - - public function attachCredentials( - ClientInterface $http, - CredentialsLoader $credentials, - callable $tokenCallback = null - ) { - // use the provided cache - if ($this->cache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->cacheConfig, - $this->cache - ); + protected $cache; + protected $cacheConfig; + + public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = []) + { + $this->cache = $cache; + $this->cacheConfig = $cacheConfig; + } + + public function attachCredentials( + ClientInterface $http, + CredentialsLoader $credentials, + callable $tokenCallback = null + ) { + // use the provided cache + if ($this->cache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->cacheConfig, + $this->cache + ); + } + + return $this->attachCredentialsCache($http, $credentials, $tokenCallback); + } + + public function attachCredentialsCache( + ClientInterface $http, + FetchAuthTokenCache $credentials, + callable $tokenCallback = null + ) { + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = HttpHandlerFactory::build($authHttp); + $subscriber = new AuthTokenSubscriber( + $credentials, + $authHttpHandler, + $tokenCallback + ); + + $http->setDefaultOption('auth', 'google_auth'); + $http->getEmitter()->attach($subscriber); + + return $http; } - return $this->attachCredentialsCache($http, $credentials, $tokenCallback); - } - - public function attachCredentialsCache( - ClientInterface $http, - FetchAuthTokenCache $credentials, - callable $tokenCallback = null - ) { - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = HttpHandlerFactory::build($authHttp); - $subscriber = new AuthTokenSubscriber( - $credentials, - $authHttpHandler, - $tokenCallback - ); - - $http->setDefaultOption('auth', 'google_auth'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachToken(ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use ($token) { - return $token['access_token']; - }; - - $subscriber = new ScopedAccessTokenSubscriber( - $tokenFunc, - $scopes, - $this->cacheConfig, - $this->cache - ); - - $http->setDefaultOption('auth', 'scoped'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachKey(ClientInterface $http, $key) - { - $subscriber = new SimpleSubscriber(['key' => $key]); - - $http->setDefaultOption('auth', 'simple'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - private function createAuthHttp(ClientInterface $http) - { - return new Client( - [ - 'base_url' => $http->getBaseUrl(), - 'defaults' => [ - 'exceptions' => true, - 'verify' => $http->getDefaultOption('verify'), - 'proxy' => $http->getDefaultOption('proxy'), - ] - ] - ); - } + public function attachToken(ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use ($token) { + return $token['access_token']; + }; + + $subscriber = new ScopedAccessTokenSubscriber( + $tokenFunc, + $scopes, + $this->cacheConfig, + $this->cache + ); + + $http->setDefaultOption('auth', 'scoped'); + $http->getEmitter()->attach($subscriber); + + return $http; + } + + public function attachKey(ClientInterface $http, $key) + { + $subscriber = new SimpleSubscriber(['key' => $key]); + + $http->setDefaultOption('auth', 'simple'); + $http->getEmitter()->attach($subscriber); + + return $http; + } + + private function createAuthHttp(ClientInterface $http) + { + return new Client([ + 'base_url' => $http->getBaseUrl(), + 'defaults' => [ + 'exceptions' => true, + 'verify' => $http->getDefaultOption('verify'), + 'proxy' => $http->getDefaultOption('proxy'), + ] + ]); + } } diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 35de17ce7..560070724 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -13,105 +13,103 @@ use Psr\Cache\CacheItemPoolInterface; /** -* This supports Guzzle 6 -*/ + * This supports Guzzle 6 + */ class Guzzle6AuthHandler { - protected $cache; - protected $cacheConfig; - - public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = []) - { - $this->cache = $cache; - $this->cacheConfig = $cacheConfig; - } - - public function attachCredentials( - ClientInterface $http, - CredentialsLoader $credentials, - callable $tokenCallback = null - ) { - // use the provided cache - if ($this->cache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->cacheConfig, - $this->cache - ); + protected $cache; + protected $cacheConfig; + + public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = []) + { + $this->cache = $cache; + $this->cacheConfig = $cacheConfig; + } + + public function attachCredentials( + ClientInterface $http, + CredentialsLoader $credentials, + callable $tokenCallback = null + ) { + // use the provided cache + if ($this->cache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->cacheConfig, + $this->cache + ); + } + + return $this->attachCredentialsCache($http, $credentials, $tokenCallback); + } + + public function attachCredentialsCache( + ClientInterface $http, + FetchAuthTokenCache $credentials, + callable $tokenCallback = null + ) { + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = HttpHandlerFactory::build($authHttp); + $middleware = new AuthTokenMiddleware( + $credentials, + $authHttpHandler, + $tokenCallback + ); + + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'google_auth'; + $http = new Client($config); + + return $http; + } + + public function attachToken(ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use ($token) { + return $token['access_token']; + }; + + $middleware = new ScopedAccessTokenMiddleware( + $tokenFunc, + $scopes, + $this->cacheConfig, + $this->cache + ); + + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'scoped'; + $http = new Client($config); + + return $http; + } + + public function attachKey(ClientInterface $http, $key) + { + $middleware = new SimpleMiddleware(['key' => $key]); + + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'simple'; + $http = new Client($config); + + return $http; } - return $this->attachCredentialsCache($http, $credentials, $tokenCallback); - } - - public function attachCredentialsCache( - ClientInterface $http, - FetchAuthTokenCache $credentials, - callable $tokenCallback = null - ) { - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = HttpHandlerFactory::build($authHttp); - $middleware = new AuthTokenMiddleware( - $credentials, - $authHttpHandler, - $tokenCallback - ); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'google_auth'; - $http = new Client($config); - - return $http; - } - - public function attachToken(ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use ($token) { - return $token['access_token']; - }; - - $middleware = new ScopedAccessTokenMiddleware( - $tokenFunc, - $scopes, - $this->cacheConfig, - $this->cache - ); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'scoped'; - $http = new Client($config); - - return $http; - } - - public function attachKey(ClientInterface $http, $key) - { - $middleware = new SimpleMiddleware(['key' => $key]); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'simple'; - $http = new Client($config); - - return $http; - } - - private function createAuthHttp(ClientInterface $http) - { - return new Client( - [ - 'base_uri' => $http->getConfig('base_uri'), - 'http_errors' => true, - 'verify' => $http->getConfig('verify'), - 'proxy' => $http->getConfig('proxy'), - ] - ); - } + private function createAuthHttp(ClientInterface $http) + { + return new Client([ + 'base_uri' => $http->getConfig('base_uri'), + 'http_errors' => true, + 'verify' => $http->getConfig('verify'), + 'proxy' => $http->getConfig('proxy'), + ]); + } } diff --git a/src/AuthHandler/Guzzle7AuthHandler.php b/src/AuthHandler/Guzzle7AuthHandler.php index 6804f75cb..310f8b12c 100644 --- a/src/AuthHandler/Guzzle7AuthHandler.php +++ b/src/AuthHandler/Guzzle7AuthHandler.php @@ -18,8 +18,8 @@ namespace Google\AuthHandler; /** -* This supports Guzzle 7 -*/ + * This supports Guzzle 7 + */ class Guzzle7AuthHandler extends Guzzle6AuthHandler { } diff --git a/src/Client.php b/src/Client.php index 2ad61be26..0e95260e9 100644 --- a/src/Client.php +++ b/src/Client.php @@ -50,1250 +50,1243 @@ */ class Client { - const LIBVER = "2.12.1"; - const USER_AGENT_SUFFIX = "google-api-php-client/"; - const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; - const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; - const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; - const API_BASE_PATH = 'https://www.googleapis.com'; - - /** - * @var OAuth2 $auth - */ - private $auth; - - /** - * @var ClientInterface $http - */ - private $http; - - /** - * @var CacheItemPoolInterface $cache - */ - private $cache; - - /** - * @var array access token - */ - private $token; - - /** - * @var array $config - */ - private $config; - - /** - * @var LoggerInterface $logger - */ - private $logger; - - /** - * @var CredentialsLoader $credentials - */ - private $credentials; - - /** - * @var boolean $deferExecution - */ - private $deferExecution = false; - - /** @var array $scopes */ - // Scopes requested by the client - protected $requestedScopes = []; - - /** - * Construct the Google Client. - * - * @param array $config - */ - public function __construct(array $config = array()) - { - $this->config = array_merge( - [ - 'application_name' => '', - - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => self::API_BASE_PATH, - - // https://developers.google.com/console - 'client_id' => '', - 'client_secret' => '', - - // Can be a path to JSON credentials or an array representing those - // credentials (@see Google\Client::setAuthConfig), or an instance of - // Google\Auth\CredentialsLoader. - 'credentials' => null, - // @see Google\Client::setScopes - 'scopes' => null, - // Sets X-Goog-User-Project, which specifies a user project to bill - // for access charges associated with the request - 'quota_project' => null, - - 'redirect_uri' => null, - 'state' => null, - - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', - - // For use with Google Cloud Platform - // fetch the ApplicationDefaultCredentials, if applicable - // @see https://developers.google.com/identity/protocols/application-default-credentials - 'use_application_default_credentials' => false, - 'signing_key' => null, - 'signing_algorithm' => null, - 'subject' => null, - - // Other OAuth2 parameters. - 'hd' => '', - 'prompt' => '', - 'openid.realm' => '', - 'include_granted_scopes' => null, - 'login_hint' => '', - 'request_visible_actions' => '', - 'access_type' => 'online', - 'approval_prompt' => 'auto', - - // Task Runner retry configuration - // @see Google\Task\Runner - 'retry' => array(), - 'retry_map' => null, - - // Cache class implementing Psr\Cache\CacheItemPoolInterface. - // Defaults to Google\Auth\Cache\MemoryCacheItemPool. - 'cache' => null, - // cache config for downstream auth caching - 'cache_config' => [], - - // function to be called when an access token is fetched - // follows the signature function ($cacheKey, $accessToken) - 'token_callback' => null, - - // Service class used in Google\Client::verifyIdToken. - // Explicitly pass this in to avoid setting JWT::$leeway - 'jwt' => null, - - // Setting api_format_v2 will return more detailed error messages - // from certain APIs. - 'api_format_v2' => false - ], - $config - ); - - if (!is_null($this->config['credentials'])) { - if ($this->config['credentials'] instanceof CredentialsLoader) { - $this->credentials = $this->config['credentials']; - } else { - $this->setAuthConfig($this->config['credentials']); - } - unset($this->config['credentials']); - } - - if (!is_null($this->config['scopes'])) { - $this->setScopes($this->config['scopes']); - unset($this->config['scopes']); - } - - // Set a default token callback to update the in-memory access token - if (is_null($this->config['token_callback'])) { - $this->config['token_callback'] = function ($cacheKey, $newAccessToken) { - $this->setAccessToken( - [ - 'access_token' => $newAccessToken, - 'expires_in' => 3600, // Google default - 'created' => time(), - ] - ); - }; - } - - if (!is_null($this->config['cache'])) { - $this->setCache($this->config['cache']); - unset($this->config['cache']); - } - } - - /** - * Get a string containing the version of the library. - * - * @return string - */ - public function getLibraryVersion() - { - return self::LIBVER; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAuthCode - * - * @param $code string code from accounts.google.com - * @return array access token - * @deprecated - */ - public function authenticate($code) - { - return $this->fetchAccessTokenWithAuthCode($code); - } - - /** - * Attempt to exchange a code for an valid authentication token. - * Helper wrapped around the OAuth 2.0 implementation. - * - * @param $code string code from accounts.google.com - * @return array access token - */ - public function fetchAccessTokenWithAuthCode($code) - { - if (strlen($code) == 0) { - throw new InvalidArgumentException("Invalid code"); - } - - $auth = $this->getOAuth2Service(); - $auth->setCode($code); - $auth->setRedirectUri($this->getRedirectUri()); - - $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAssertion - * - * @return array access token - * @deprecated - */ - public function refreshTokenWithAssertion() - { - return $this->fetchAccessTokenWithAssertion(); - } - - /** - * Fetches a fresh access token with a given assertion token. - * @param ClientInterface $authHttp optional. - * @return array access token - */ - public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) - { - if (!$this->isUsingApplicationDefaultCredentials()) { - throw new DomainException( - 'set the JSON service account credentials using' - . ' Google\Client::setAuthConfig or set the path to your JSON file' - . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' - . ' and call Google\Client::useApplicationDefaultCredentials to' - . ' refresh a token with assertion.' - ); - } - - $this->getLogger()->log( - 'info', - 'OAuth2 access token refresh with Signed JWT assertion grants.' - ); - - $credentials = $this->createApplicationDefaultCredentials(); - - $httpHandler = HttpHandlerFactory::build($authHttp); - $creds = $credentials->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithRefreshToken - * - * @param string $refreshToken - * @return array access token - */ - public function refreshToken($refreshToken) - { - return $this->fetchAccessTokenWithRefreshToken($refreshToken); - } - - /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. - * @param string $refreshToken - * @return array access token - */ - public function fetchAccessTokenWithRefreshToken($refreshToken = null) - { - if (null === $refreshToken) { - if (!isset($this->token['refresh_token'])) { - throw new LogicException( - 'refresh token must be passed in or set as part of setAccessToken' + const LIBVER = "2.12.1"; + const USER_AGENT_SUFFIX = "google-api-php-client/"; + const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; + const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; + const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; + const API_BASE_PATH = 'https://www.googleapis.com'; + + /** + * @var OAuth2 $auth + */ + private $auth; + + /** + * @var ClientInterface $http + */ + private $http; + + /** + * @var CacheItemPoolInterface $cache + */ + private $cache; + + /** + * @var array access token + */ + private $token; + + /** + * @var array $config + */ + private $config; + + /** + * @var LoggerInterface $logger + */ + private $logger; + + /** + * @var CredentialsLoader $credentials + */ + private $credentials; + + /** + * @var boolean $deferExecution + */ + private $deferExecution = false; + + /** @var array $scopes */ + // Scopes requested by the client + protected $requestedScopes = []; + + /** + * Construct the Google Client. + * + * @param array $config + */ + public function __construct(array $config = array()) + { + $this->config = array_merge([ + 'application_name' => '', + + // Don't change these unless you're working against a special development + // or testing environment. + 'base_path' => self::API_BASE_PATH, + + // https://developers.google.com/console + 'client_id' => '', + 'client_secret' => '', + + // Can be a path to JSON credentials or an array representing those + // credentials (@see Google\Client::setAuthConfig), or an instance of + // Google\Auth\CredentialsLoader. + 'credentials' => null, + // @see Google\Client::setScopes + 'scopes' => null, + // Sets X-Goog-User-Project, which specifies a user project to bill + // for access charges associated with the request + 'quota_project' => null, + + 'redirect_uri' => null, + 'state' => null, + + // Simple API access key, also from the API console. Ensure you get + // a Server key, and not a Browser key. + 'developer_key' => '', + + // For use with Google Cloud Platform + // fetch the ApplicationDefaultCredentials, if applicable + // @see https://developers.google.com/identity/protocols/application-default-credentials + 'use_application_default_credentials' => false, + 'signing_key' => null, + 'signing_algorithm' => null, + 'subject' => null, + + // Other OAuth2 parameters. + 'hd' => '', + 'prompt' => '', + 'openid.realm' => '', + 'include_granted_scopes' => null, + 'login_hint' => '', + 'request_visible_actions' => '', + 'access_type' => 'online', + 'approval_prompt' => 'auto', + + // Task Runner retry configuration + // @see Google\Task\Runner + 'retry' => array(), + 'retry_map' => null, + + // Cache class implementing Psr\Cache\CacheItemPoolInterface. + // Defaults to Google\Auth\Cache\MemoryCacheItemPool. + 'cache' => null, + // cache config for downstream auth caching + 'cache_config' => [], + + // function to be called when an access token is fetched + // follows the signature function ($cacheKey, $accessToken) + 'token_callback' => null, + + // Service class used in Google\Client::verifyIdToken. + // Explicitly pass this in to avoid setting JWT::$leeway + 'jwt' => null, + + // Setting api_format_v2 will return more detailed error messages + // from certain APIs. + 'api_format_v2' => false + ], $config); + + if (!is_null($this->config['credentials'])) { + if ($this->config['credentials'] instanceof CredentialsLoader) { + $this->credentials = $this->config['credentials']; + } else { + $this->setAuthConfig($this->config['credentials']); + } + unset($this->config['credentials']); + } + + if (!is_null($this->config['scopes'])) { + $this->setScopes($this->config['scopes']); + unset($this->config['scopes']); + } + + // Set a default token callback to update the in-memory access token + if (is_null($this->config['token_callback'])) { + $this->config['token_callback'] = function ($cacheKey, $newAccessToken) { + $this->setAccessToken( + [ + 'access_token' => $newAccessToken, + 'expires_in' => 3600, // Google default + 'created' => time(), + ] + ); + }; + } + + if (!is_null($this->config['cache'])) { + $this->setCache($this->config['cache']); + unset($this->config['cache']); + } + } + + /** + * Get a string containing the version of the library. + * + * @return string + */ + public function getLibraryVersion() + { + return self::LIBVER; + } + + /** + * For backwards compatibility + * alias for fetchAccessTokenWithAuthCode + * + * @param $code string code from accounts.google.com + * @return array access token + * @deprecated + */ + public function authenticate($code) + { + return $this->fetchAccessTokenWithAuthCode($code); + } + + /** + * Attempt to exchange a code for an valid authentication token. + * Helper wrapped around the OAuth 2.0 implementation. + * + * @param $code string code from accounts.google.com + * @return array access token + */ + public function fetchAccessTokenWithAuthCode($code) + { + if (strlen($code) == 0) { + throw new InvalidArgumentException("Invalid code"); + } + + $auth = $this->getOAuth2Service(); + $auth->setCode($code); + $auth->setRedirectUri($this->getRedirectUri()); + + $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); + $this->setAccessToken($creds); + } + + return $creds; + } + + /** + * For backwards compatibility + * alias for fetchAccessTokenWithAssertion + * + * @return array access token + * @deprecated + */ + public function refreshTokenWithAssertion() + { + return $this->fetchAccessTokenWithAssertion(); + } + + /** + * Fetches a fresh access token with a given assertion token. + * @param ClientInterface $authHttp optional. + * @return array access token + */ + public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) + { + if (!$this->isUsingApplicationDefaultCredentials()) { + throw new DomainException( + 'set the JSON service account credentials using' + . ' Google\Client::setAuthConfig or set the path to your JSON file' + . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' + . ' and call Google\Client::useApplicationDefaultCredentials to' + . ' refresh a token with assertion.' + ); + } + + $this->getLogger()->log( + 'info', + 'OAuth2 access token refresh with Signed JWT assertion grants.' ); - } - $refreshToken = $this->token['refresh_token']; - } - $this->getLogger()->info('OAuth2 access token refresh'); - $auth = $this->getOAuth2Service(); - $auth->setRefreshToken($refreshToken); - - $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - if (!isset($creds['refresh_token'])) { - $creds['refresh_token'] = $refreshToken; - } - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. - * @return string - */ - public function createAuthUrl($scope = null) - { - if (empty($scope)) { - $scope = $this->prepareScopes(); - } - if (is_array($scope)) { - $scope = implode(' ', $scope); - } - - // only accept one of prompt or approval_prompt - $approvalPrompt = $this->config['prompt'] - ? null - : $this->config['approval_prompt']; - - // include_granted_scopes should be string "true", string "false", or null - $includeGrantedScopes = $this->config['include_granted_scopes'] === null - ? null - : var_export($this->config['include_granted_scopes'], true); - - $params = array_filter( - [ - 'access_type' => $this->config['access_type'], - 'approval_prompt' => $approvalPrompt, - 'hd' => $this->config['hd'], - 'include_granted_scopes' => $includeGrantedScopes, - 'login_hint' => $this->config['login_hint'], - 'openid.realm' => $this->config['openid.realm'], - 'prompt' => $this->config['prompt'], - 'response_type' => 'code', - 'scope' => $scope, - 'state' => $this->config['state'], - ] - ); - - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->config['request_visible_actions']; - if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { - $params['request_visible_actions'] = $rva; - } - - $auth = $this->getOAuth2Service(); - - return (string) $auth->buildFullAuthorizationUri($params); - } - - /** - * Adds auth listeners to the HTTP client based on the credentials - * set in the Google API Client object - * - * @param ClientInterface $http the http client object. - * @return ClientInterface the http client object - */ - public function authorize(ClientInterface $http = null) - { - $http = $http ?: $this->getHttpClient(); - $authHandler = $this->getAuthHandler(); - - // These conditionals represent the decision tree for authentication - // 1. Check if a Google\Auth\CredentialsLoader instance has been supplied via the "credentials" option - // 2. Check for Application Default Credentials - // 3a. Check for an Access Token - // 3b. If access token exists but is expired, try to refresh it - // 4. Check for API Key - if ($this->credentials) { - return $authHandler->attachCredentials( - $http, - $this->credentials, - $this->config['token_callback'] - ); - } - - if ($this->isUsingApplicationDefaultCredentials()) { - $credentials = $this->createApplicationDefaultCredentials(); - return $authHandler->attachCredentialsCache( - $http, - $credentials, - $this->config['token_callback'] - ); - } - - if ($token = $this->getAccessToken()) { - $scopes = $this->prepareScopes(); - // add refresh subscriber to request a new token - if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { - $credentials = $this->createUserRefreshCredentials( - $scopes, - $token['refresh_token'] + + $credentials = $this->createApplicationDefaultCredentials(); + + $httpHandler = HttpHandlerFactory::build($authHttp); + $creds = $credentials->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); + $this->setAccessToken($creds); + } + + return $creds; + } + + /** + * For backwards compatibility + * alias for fetchAccessTokenWithRefreshToken + * + * @param string $refreshToken + * @return array access token + */ + public function refreshToken($refreshToken) + { + return $this->fetchAccessTokenWithRefreshToken($refreshToken); + } + + /** + * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * @param string $refreshToken + * @return array access token + */ + public function fetchAccessTokenWithRefreshToken($refreshToken = null) + { + if (null === $refreshToken) { + if (!isset($this->token['refresh_token'])) { + throw new LogicException( + 'refresh token must be passed in or set as part of setAccessToken' + ); + } + $refreshToken = $this->token['refresh_token']; + } + $this->getLogger()->info('OAuth2 access token refresh'); + $auth = $this->getOAuth2Service(); + $auth->setRefreshToken($refreshToken); + + $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = time(); + if (!isset($creds['refresh_token'])) { + $creds['refresh_token'] = $refreshToken; + } + $this->setAccessToken($creds); + } + + return $creds; + } + + /** + * Create a URL to obtain user authorization. + * The authorization endpoint allows the user to first + * authenticate, and then grant/deny the access request. + * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. + * @return string + */ + public function createAuthUrl($scope = null) + { + if (empty($scope)) { + $scope = $this->prepareScopes(); + } + if (is_array($scope)) { + $scope = implode(' ', $scope); + } + + // only accept one of prompt or approval_prompt + $approvalPrompt = $this->config['prompt'] + ? null + : $this->config['approval_prompt']; + + // include_granted_scopes should be string "true", string "false", or null + $includeGrantedScopes = $this->config['include_granted_scopes'] === null + ? null + : var_export($this->config['include_granted_scopes'], true); + + $params = array_filter([ + 'access_type' => $this->config['access_type'], + 'approval_prompt' => $approvalPrompt, + 'hd' => $this->config['hd'], + 'include_granted_scopes' => $includeGrantedScopes, + 'login_hint' => $this->config['login_hint'], + 'openid.realm' => $this->config['openid.realm'], + 'prompt' => $this->config['prompt'], + 'response_type' => 'code', + 'scope' => $scope, + 'state' => $this->config['state'], + ]); + + // If the list of scopes contains plus.login, add request_visible_actions + // to auth URL. + $rva = $this->config['request_visible_actions']; + if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { + $params['request_visible_actions'] = $rva; + } + + $auth = $this->getOAuth2Service(); + + return (string) $auth->buildFullAuthorizationUri($params); + } + + /** + * Adds auth listeners to the HTTP client based on the credentials + * set in the Google API Client object + * + * @param ClientInterface $http the http client object. + * @return ClientInterface the http client object + */ + public function authorize(ClientInterface $http = null) + { + $http = $http ?: $this->getHttpClient(); + $authHandler = $this->getAuthHandler(); + + // These conditionals represent the decision tree for authentication + // 1. Check if a Google\Auth\CredentialsLoader instance has been supplied via the "credentials" option + // 2. Check for Application Default Credentials + // 3a. Check for an Access Token + // 3b. If access token exists but is expired, try to refresh it + // 4. Check for API Key + if ($this->credentials) { + return $authHandler->attachCredentials( + $http, + $this->credentials, + $this->config['token_callback'] + ); + } + + if ($this->isUsingApplicationDefaultCredentials()) { + $credentials = $this->createApplicationDefaultCredentials(); + return $authHandler->attachCredentialsCache( + $http, + $credentials, + $this->config['token_callback'] + ); + } + + if ($token = $this->getAccessToken()) { + $scopes = $this->prepareScopes(); + // add refresh subscriber to request a new token + if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { + $credentials = $this->createUserRefreshCredentials( + $scopes, + $token['refresh_token'] + ); + return $authHandler->attachCredentials( + $http, + $credentials, + $this->config['token_callback'] + ); + } + + return $authHandler->attachToken($http, $token, (array) $scopes); + } + + if ($key = $this->config['developer_key']) { + return $authHandler->attachKey($http, $key); + } + + return $http; + } + + /** + * Set the configuration to use application default credentials for + * authentication + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + * @param boolean $useAppCreds + */ + public function useApplicationDefaultCredentials($useAppCreds = true) + { + $this->config['use_application_default_credentials'] = $useAppCreds; + } + + /** + * To prevent useApplicationDefaultCredentials from inappropriately being + * called in a conditional + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + */ + public function isUsingApplicationDefaultCredentials() + { + return $this->config['use_application_default_credentials']; + } + + /** + * Set the access token used for requests. + * + * Note that at the time requests are sent, tokens are cached. A token will be + * cached for each combination of service and authentication scopes. If a + * cache pool is not provided, creating a new instance of the client will + * allow modification of access tokens. If a persistent cache pool is + * provided, in order to change the access token, you must clear the cached + * token by calling `$client->getCache()->clear()`. (Use caution in this case, + * as calling `clear()` will remove all cache items, including any items not + * related to Google API PHP Client.) + * + * @param string|array $token + * @throws InvalidArgumentException + */ + public function setAccessToken($token) + { + if (is_string($token)) { + if ($json = json_decode($token, true)) { + $token = $json; + } else { + // assume $token is just the token string + $token = array( + 'access_token' => $token, + ); + } + } + if ($token == null) { + throw new InvalidArgumentException('invalid json token'); + } + if (!isset($token['access_token'])) { + throw new InvalidArgumentException("Invalid token format"); + } + $this->token = $token; + } + + public function getAccessToken() + { + return $this->token; + } + + /** + * @return string|null + */ + public function getRefreshToken() + { + if (isset($this->token['refresh_token'])) { + return $this->token['refresh_token']; + } + + return null; + } + + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() + { + if (!$this->token) { + return true; + } + + $created = 0; + if (isset($this->token['created'])) { + $created = $this->token['created']; + } elseif (isset($this->token['id_token'])) { + // check the ID token for "iat" + // signature verification is not required here, as we are just + // using this for convenience to save a round trip request + // to the Google API server + $idToken = $this->token['id_token']; + if (substr_count($idToken, '.') == 2) { + $parts = explode('.', $idToken); + $payload = json_decode(base64_decode($parts[1]), true); + if ($payload && isset($payload['iat'])) { + $created = $payload['iat']; + } + } + } + if (!isset($this->token['expires_in'])) { + // if the token does not have an "expires_in", then it's considered expired + return true; + } + + // If the token is set to expire in the next 30 seconds. + return ($created + ($this->token['expires_in'] - 30)) < time(); + } + + /** + * @deprecated See UPGRADING.md for more information + */ + public function getAuth() + { + throw new BadMethodCallException( + 'This function no longer exists. See UPGRADING.md for more information' ); - return $authHandler->attachCredentials( - $http, - $credentials, - $this->config['token_callback'] + } + + /** + * @deprecated See UPGRADING.md for more information + */ + public function setAuth($auth) + { + throw new BadMethodCallException( + 'This function no longer exists. See UPGRADING.md for more information' ); - } - - return $authHandler->attachToken($http, $token, (array) $scopes); - } - - if ($key = $this->config['developer_key']) { - return $authHandler->attachKey($http, $key); - } - - return $http; - } - - /** - * Set the configuration to use application default credentials for - * authentication - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - * @param boolean $useAppCreds - */ - public function useApplicationDefaultCredentials($useAppCreds = true) - { - $this->config['use_application_default_credentials'] = $useAppCreds; - } - - /** - * To prevent useApplicationDefaultCredentials from inappropriately being - * called in a conditional - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - */ - public function isUsingApplicationDefaultCredentials() - { - return $this->config['use_application_default_credentials']; - } - - /** - * Set the access token used for requests. - * - * Note that at the time requests are sent, tokens are cached. A token will be - * cached for each combination of service and authentication scopes. If a - * cache pool is not provided, creating a new instance of the client will - * allow modification of access tokens. If a persistent cache pool is - * provided, in order to change the access token, you must clear the cached - * token by calling `$client->getCache()->clear()`. (Use caution in this case, - * as calling `clear()` will remove all cache items, including any items not - * related to Google API PHP Client.) - * - * @param string|array $token - * @throws InvalidArgumentException - */ - public function setAccessToken($token) - { - if (is_string($token)) { - if ($json = json_decode($token, true)) { - $token = $json; - } else { - // assume $token is just the token string - $token = array( - 'access_token' => $token, + } + + /** + * Set the OAuth 2.0 Client ID. + * @param string $clientId + */ + public function setClientId($clientId) + { + $this->config['client_id'] = $clientId; + } + + public function getClientId() + { + return $this->config['client_id']; + } + + /** + * Set the OAuth 2.0 Client Secret. + * @param string $clientSecret + */ + public function setClientSecret($clientSecret) + { + $this->config['client_secret'] = $clientSecret; + } + + public function getClientSecret() + { + return $this->config['client_secret']; + } + + /** + * Set the OAuth 2.0 Redirect URI. + * @param string $redirectUri + */ + public function setRedirectUri($redirectUri) + { + $this->config['redirect_uri'] = $redirectUri; + } + + public function getRedirectUri() + { + return $this->config['redirect_uri']; + } + + /** + * Set OAuth 2.0 "state" parameter to achieve per-request customization. + * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 + * @param string $state + */ + public function setState($state) + { + $this->config['state'] = $state; + } + + /** + * @param string $accessType Possible values for access_type include: + * {@code "offline"} to request offline access from the user. + * {@code "online"} to request online access from the user. + */ + public function setAccessType($accessType) + { + $this->config['access_type'] = $accessType; + } + + /** + * @param string $approvalPrompt Possible values for approval_prompt include: + * {@code "force"} to force the approval UI to appear. + * {@code "auto"} to request auto-approval when possible. (This is the default value) + */ + public function setApprovalPrompt($approvalPrompt) + { + $this->config['approval_prompt'] = $approvalPrompt; + } + + /** + * Set the login hint, email address or sub id. + * @param string $loginHint + */ + public function setLoginHint($loginHint) + { + $this->config['login_hint'] = $loginHint; + } + + /** + * Set the application name, this is included in the User-Agent HTTP header. + * @param string $applicationName + */ + public function setApplicationName($applicationName) + { + $this->config['application_name'] = $applicationName; + } + + /** + * If 'plus.login' is included in the list of requested scopes, you can use + * this method to define types of app activities that your app will write. + * You can find a list of available types here: + * @link https://developers.google.com/+/api/moment-types + * + * @param array $requestVisibleActions Array of app activity types + */ + public function setRequestVisibleActions($requestVisibleActions) + { + if (is_array($requestVisibleActions)) { + $requestVisibleActions = implode(" ", $requestVisibleActions); + } + $this->config['request_visible_actions'] = $requestVisibleActions; + } + + /** + * Set the developer key to use, these are obtained through the API Console. + * @see http://code.google.com/apis/console-help/#generatingdevkeys + * @param string $developerKey + */ + public function setDeveloperKey($developerKey) + { + $this->config['developer_key'] = $developerKey; + } + + /** + * Set the hd (hosted domain) parameter streamlines the login process for + * Google Apps hosted accounts. By including the domain of the user, you + * restrict sign-in to accounts at that domain. + * @param $hd string - the domain to use. + */ + public function setHostedDomain($hd) + { + $this->config['hd'] = $hd; + } + + /** + * Set the prompt hint. Valid values are none, consent and select_account. + * If no value is specified and the user has not previously authorized + * access, then the user is shown a consent screen. + * @param $prompt string + * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. + * {@code "consent"} Prompt the user for consent. + * {@code "select_account"} Prompt the user to select an account. + */ + public function setPrompt($prompt) + { + $this->config['prompt'] = $prompt; + } + + /** + * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth + * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which + * an authentication request is valid. + * @param $realm string - the URL-space to use. + */ + public function setOpenidRealm($realm) + { + $this->config['openid.realm'] = $realm; + } + + /** + * If this is provided with the value true, and the authorization request is + * granted, the authorization will include any previous authorizations + * granted to this user/application combination for other scopes. + * @param $include boolean - the URL-space to use. + */ + public function setIncludeGrantedScopes($include) + { + $this->config['include_granted_scopes'] = $include; + } + + /** + * sets function to be called when an access token is fetched + * @param callable $tokenCallback - function ($cacheKey, $accessToken) + */ + public function setTokenCallback(callable $tokenCallback) + { + $this->config['token_callback'] = $tokenCallback; + } + + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * + * @param string|array|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken($token = null) + { + $tokenRevoker = new Revoke($this->getHttpClient()); + + return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); + } + + /** + * Verify an id_token. This method will verify the current id_token, if one + * isn't provided. + * + * @throws LogicException If no token was provided and no token was set using `setAccessToken`. + * @throws UnexpectedValueException If the token is not a valid JWT. + * @param string|null $idToken The token (id_token) that should be verified. + * @return array|false Returns the token payload as an array if the verification was + * successful, false otherwise. + */ + public function verifyIdToken($idToken = null) + { + $tokenVerifier = new Verify( + $this->getHttpClient(), + $this->getCache(), + $this->config['jwt'] ); - } - } - if ($token == null) { - throw new InvalidArgumentException('invalid json token'); - } - if (!isset($token['access_token'])) { - throw new InvalidArgumentException("Invalid token format"); - } - $this->token = $token; - } - - public function getAccessToken() - { - return $this->token; - } - - /** - * @return string|null - */ - public function getRefreshToken() - { - if (isset($this->token['refresh_token'])) { - return $this->token['refresh_token']; - } - - return null; - } - - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token) { - return true; - } - - $created = 0; - if (isset($this->token['created'])) { - $created = $this->token['created']; - } elseif (isset($this->token['id_token'])) { - // check the ID token for "iat" - // signature verification is not required here, as we are just - // using this for convenience to save a round trip request - // to the Google API server - $idToken = $this->token['id_token']; - if (substr_count($idToken, '.') == 2) { - $parts = explode('.', $idToken); - $payload = json_decode(base64_decode($parts[1]), true); - if ($payload && isset($payload['iat'])) { - $created = $payload['iat']; + + if (null === $idToken) { + $token = $this->getAccessToken(); + if (!isset($token['id_token'])) { + throw new LogicException( + 'id_token must be passed in or set as part of setAccessToken' + ); + } + $idToken = $token['id_token']; } - } - } - if (!isset($this->token['expires_in'])) { - // if the token does not have an "expires_in", then it's considered expired - return true; - } - - // If the token is set to expire in the next 30 seconds. - return ($created + ($this->token['expires_in'] - 30)) < time(); - } - - /** - * @deprecated See UPGRADING.md for more information - */ - public function getAuth() - { - throw new BadMethodCallException( - 'This function no longer exists. See UPGRADING.md for more information' - ); - } - - /** - * @deprecated See UPGRADING.md for more information - */ - public function setAuth($auth) - { - throw new BadMethodCallException( - 'This function no longer exists. See UPGRADING.md for more information' - ); - } - - /** - * Set the OAuth 2.0 Client ID. - * @param string $clientId - */ - public function setClientId($clientId) - { - $this->config['client_id'] = $clientId; - } - - public function getClientId() - { - return $this->config['client_id']; - } - - /** - * Set the OAuth 2.0 Client Secret. - * @param string $clientSecret - */ - public function setClientSecret($clientSecret) - { - $this->config['client_secret'] = $clientSecret; - } - - public function getClientSecret() - { - return $this->config['client_secret']; - } - - /** - * Set the OAuth 2.0 Redirect URI. - * @param string $redirectUri - */ - public function setRedirectUri($redirectUri) - { - $this->config['redirect_uri'] = $redirectUri; - } - - public function getRedirectUri() - { - return $this->config['redirect_uri']; - } - - /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state - */ - public function setState($state) - { - $this->config['state'] = $state; - } - - /** - * @param string $accessType Possible values for access_type include: - * {@code "offline"} to request offline access from the user. - * {@code "online"} to request online access from the user. - */ - public function setAccessType($accessType) - { - $this->config['access_type'] = $accessType; - } - - /** - * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. - * {@code "auto"} to request auto-approval when possible. (This is the default value) - */ - public function setApprovalPrompt($approvalPrompt) - { - $this->config['approval_prompt'] = $approvalPrompt; - } - - /** - * Set the login hint, email address or sub id. - * @param string $loginHint - */ - public function setLoginHint($loginHint) - { - $this->config['login_hint'] = $loginHint; - } - - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $applicationName - */ - public function setApplicationName($applicationName) - { - $this->config['application_name'] = $applicationName; - } - - /** - * If 'plus.login' is included in the list of requested scopes, you can use - * this method to define types of app activities that your app will write. - * You can find a list of available types here: - * @link https://developers.google.com/+/api/moment-types - * - * @param array $requestVisibleActions Array of app activity types - */ - public function setRequestVisibleActions($requestVisibleActions) - { - if (is_array($requestVisibleActions)) { - $requestVisibleActions = implode(" ", $requestVisibleActions); - } - $this->config['request_visible_actions'] = $requestVisibleActions; - } - - /** - * Set the developer key to use, these are obtained through the API Console. - * @see http://code.google.com/apis/console-help/#generatingdevkeys - * @param string $developerKey - */ - public function setDeveloperKey($developerKey) - { - $this->config['developer_key'] = $developerKey; - } - - /** - * Set the hd (hosted domain) parameter streamlines the login process for - * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * @param $hd string - the domain to use. - */ - public function setHostedDomain($hd) - { - $this->config['hd'] = $hd; - } - - /** - * Set the prompt hint. Valid values are none, consent and select_account. - * If no value is specified and the user has not previously authorized - * access, then the user is shown a consent screen. - * @param $prompt string - * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. - * {@code "consent"} Prompt the user for consent. - * {@code "select_account"} Prompt the user to select an account. - */ - public function setPrompt($prompt) - { - $this->config['prompt'] = $prompt; - } - - /** - * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth - * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which - * an authentication request is valid. - * @param $realm string - the URL-space to use. - */ - public function setOpenidRealm($realm) - { - $this->config['openid.realm'] = $realm; - } - - /** - * If this is provided with the value true, and the authorization request is - * granted, the authorization will include any previous authorizations - * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. - */ - public function setIncludeGrantedScopes($include) - { - $this->config['include_granted_scopes'] = $include; - } - - /** - * sets function to be called when an access token is fetched - * @param callable $tokenCallback - function ($cacheKey, $accessToken) - */ - public function setTokenCallback(callable $tokenCallback) - { - $this->config['token_callback'] = $tokenCallback; - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - $tokenRevoker = new Revoke($this->getHttpClient()); - - return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); - } - - /** - * Verify an id_token. This method will verify the current id_token, if one - * isn't provided. - * - * @throws LogicException If no token was provided and no token was set using `setAccessToken`. - * @throws UnexpectedValueException If the token is not a valid JWT. - * @param string|null $idToken The token (id_token) that should be verified. - * @return array|false Returns the token payload as an array if the verification was - * successful, false otherwise. - */ - public function verifyIdToken($idToken = null) - { - $tokenVerifier = new Verify( - $this->getHttpClient(), - $this->getCache(), - $this->config['jwt'] - ); - - if (null === $idToken) { - $token = $this->getAccessToken(); - if (!isset($token['id_token'])) { - throw new LogicException( - 'id_token must be passed in or set as part of setAccessToken' + + return $tokenVerifier->verifyIdToken( + $idToken, + $this->getClientId() ); - } - $idToken = $token['id_token']; - } - - return $tokenVerifier->verifyIdToken( - $idToken, - $this->getClientId() - ); - } - - /** - * Set the scopes to be requested. Must be called before createAuthUrl(). - * Will remove any previously configured scopes. - * @param string|array $scope_or_scopes, ie: - * array( - * 'https://www.googleapis.com/auth/plus.login', - * 'https://www.googleapis.com/auth/moderator' - * ); - */ - public function setScopes($scope_or_scopes) - { - $this->requestedScopes = array(); - $this->addScope($scope_or_scopes); - } - - /** - * This functions adds a scope to be requested as part of the OAuth2.0 flow. - * Will append any scopes not previously requested to the scope parameter. - * A single string will be treated as a scope to request. An array of strings - * will each be appended. - * @param $scope_or_scopes string|array e.g. "profile" - */ - public function addScope($scope_or_scopes) - { - if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) { - $this->requestedScopes[] = $scope_or_scopes; - } else if (is_array($scope_or_scopes)) { - foreach ($scope_or_scopes as $scope) { - $this->addScope($scope); - } - } - } - - /** - * Returns the list of scopes requested by the client - * @return array the list of scopes - * - */ - public function getScopes() - { - return $this->requestedScopes; - } - - /** - * @return string|null - * @visible For Testing - */ - public function prepareScopes() - { - if (empty($this->requestedScopes)) { - return null; - } - - return implode(' ', $this->requestedScopes); - } - - /** - * Helper method to execute deferred HTTP requests. - * - * @param $request RequestInterface|\Google\Http\Batch - * @param string $expectedClass - * @throws \Google\Exception - * @return mixed|$expectedClass|ResponseInterface - */ - public function execute(RequestInterface $request, $expectedClass = null) - { - $request = $request - ->withHeader( - 'User-Agent', - sprintf( - '%s %s%s', - $this->config['application_name'], - self::USER_AGENT_SUFFIX, - $this->getLibraryVersion() - ) - ) - ->withHeader( - 'x-goog-api-client', - sprintf( - 'gl-php/%s gdcl/%s', - phpversion(), - $this->getLibraryVersion() + } + + /** + * Set the scopes to be requested. Must be called before createAuthUrl(). + * Will remove any previously configured scopes. + * @param string|array $scope_or_scopes, ie: + * array( + * 'https://www.googleapis.com/auth/plus.login', + * 'https://www.googleapis.com/auth/moderator' + * ); + */ + public function setScopes($scope_or_scopes) + { + $this->requestedScopes = array(); + $this->addScope($scope_or_scopes); + } + + /** + * This functions adds a scope to be requested as part of the OAuth2.0 flow. + * Will append any scopes not previously requested to the scope parameter. + * A single string will be treated as a scope to request. An array of strings + * will each be appended. + * @param $scope_or_scopes string|array e.g. "profile" + */ + public function addScope($scope_or_scopes) + { + if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) { + $this->requestedScopes[] = $scope_or_scopes; + } elseif (is_array($scope_or_scopes)) { + foreach ($scope_or_scopes as $scope) { + $this->addScope($scope); + } + } + } + + /** + * Returns the list of scopes requested by the client + * @return array the list of scopes + * + */ + public function getScopes() + { + return $this->requestedScopes; + } + + /** + * @return string|null + * @visible For Testing + */ + public function prepareScopes() + { + if (empty($this->requestedScopes)) { + return null; + } + + return implode(' ', $this->requestedScopes); + } + + /** + * Helper method to execute deferred HTTP requests. + * + * @param $request RequestInterface|\Google\Http\Batch + * @param string $expectedClass + * @throws \Google\Exception + * @return mixed|$expectedClass|ResponseInterface + */ + public function execute(RequestInterface $request, $expectedClass = null) + { + $request = $request + ->withHeader( + 'User-Agent', + sprintf( + '%s %s%s', + $this->config['application_name'], + self::USER_AGENT_SUFFIX, + $this->getLibraryVersion() + ) ) + ->withHeader( + 'x-goog-api-client', + sprintf( + 'gl-php/%s gdcl/%s', + phpversion(), + $this->getLibraryVersion() + ) + ); + + if ($this->config['api_format_v2']) { + $request = $request->withHeader( + 'X-GOOG-API-FORMAT-VERSION', + 2 + ); + } + + // call the authorize method + // this is where most of the grunt work is done + $http = $this->authorize(); + + return REST::execute( + $http, + $request, + $expectedClass, + $this->config['retry'], + $this->config['retry_map'] ); + } + + /** + * Declare whether batch calls should be used. This may increase throughput + * by making multiple requests in one connection. + * + * @param boolean $useBatch True if the batch support should + * be enabled. Defaults to False. + */ + public function setUseBatch($useBatch) + { + // This is actually an alias for setDefer. + $this->setDefer($useBatch); + } + + /** + * Are we running in Google AppEngine? + * return bool + */ + public function isAppEngine() + { + return (isset($_SERVER['SERVER_SOFTWARE']) && + strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); + } + + public function setConfig($name, $value) + { + $this->config[$name] = $value; + } + + public function getConfig($name, $default = null) + { + return isset($this->config[$name]) ? $this->config[$name] : $default; + } + + /** + * For backwards compatibility + * alias for setAuthConfig + * + * @param string $file the configuration file + * @throws \Google\Exception + * @deprecated + */ + public function setAuthConfigFile($file) + { + $this->setAuthConfig($file); + } + + /** + * Set the auth config from new or deprecated JSON config. + * This structure should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string|array $config the configuration json + * @throws \Google\Exception + */ + public function setAuthConfig($config) + { + if (is_string($config)) { + if (!file_exists($config)) { + throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config)); + } + + $json = file_get_contents($config); + + if (!$config = json_decode($json, true)) { + throw new LogicException('invalid json for auth config'); + } + } + + $key = isset($config['installed']) ? 'installed' : 'web'; + if (isset($config['type']) && $config['type'] == 'service_account') { + // application default credentials + $this->useApplicationDefaultCredentials(); + + // set the information from the config + $this->setClientId($config['client_id']); + $this->config['client_email'] = $config['client_email']; + $this->config['signing_key'] = $config['private_key']; + $this->config['signing_algorithm'] = 'HS256'; + } elseif (isset($config[$key])) { + // old-style + $this->setClientId($config[$key]['client_id']); + $this->setClientSecret($config[$key]['client_secret']); + if (isset($config[$key]['redirect_uris'])) { + $this->setRedirectUri($config[$key]['redirect_uris'][0]); + } + } else { + // new-style + $this->setClientId($config['client_id']); + $this->setClientSecret($config['client_secret']); + if (isset($config['redirect_uris'])) { + $this->setRedirectUri($config['redirect_uris'][0]); + } + } + } + + /** + * Use when the service account has been delegated domain wide access. + * + * @param string $subject an email address account to impersonate + */ + public function setSubject($subject) + { + $this->config['subject'] = $subject; + } + + /** + * Declare whether making API calls should make the call immediately, or + * return a request which can be called with ->execute(); + * + * @param boolean $defer True if calls should not be executed right away. + */ + public function setDefer($defer) + { + $this->deferExecution = $defer; + } - if ($this->config['api_format_v2']) { - $request = $request->withHeader( - 'X-GOOG-API-FORMAT-VERSION', - 2 + /** + * Whether or not to return raw requests + * @return boolean + */ + public function shouldDefer() + { + return $this->deferExecution; + } + + /** + * @return OAuth2 implementation + */ + public function getOAuth2Service() + { + if (!isset($this->auth)) { + $this->auth = $this->createOAuth2Service(); + } + + return $this->auth; + } + + /** + * create a default google auth object + */ + protected function createOAuth2Service() + { + $auth = new OAuth2([ + 'clientId' => $this->getClientId(), + 'clientSecret' => $this->getClientSecret(), + 'authorizationUri' => self::OAUTH2_AUTH_URL, + 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, + 'redirectUri' => $this->getRedirectUri(), + 'issuer' => $this->config['client_id'], + 'signingKey' => $this->config['signing_key'], + 'signingAlgorithm' => $this->config['signing_algorithm'], + ]); + + return $auth; + } + + /** + * Set the Cache object + * @param CacheItemPoolInterface $cache + */ + public function setCache(CacheItemPoolInterface $cache) + { + $this->cache = $cache; + } + + /** + * @return CacheItemPoolInterface + */ + public function getCache() + { + if (!$this->cache) { + $this->cache = $this->createDefaultCache(); + } + + return $this->cache; + } + + /** + * @param array $cacheConfig + */ + public function setCacheConfig(array $cacheConfig) + { + $this->config['cache_config'] = $cacheConfig; + } + + /** + * Set the Logger object + * @param LoggerInterface $logger + */ + public function setLogger(LoggerInterface $logger) + { + $this->logger = $logger; + } + + /** + * @return LoggerInterface + */ + public function getLogger() + { + if (!isset($this->logger)) { + $this->logger = $this->createDefaultLogger(); + } + + return $this->logger; + } + + protected function createDefaultLogger() + { + $logger = new Logger('google-api-php-client'); + if ($this->isAppEngine()) { + $handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE); + } else { + $handler = new MonologStreamHandler('php://stderr', Logger::NOTICE); + } + $logger->pushHandler($handler); + + return $logger; + } + + protected function createDefaultCache() + { + return new MemoryCacheItemPool; + } + + /** + * Set the Http Client object + * @param ClientInterface $http + */ + public function setHttpClient(ClientInterface $http) + { + $this->http = $http; + } + + /** + * @return ClientInterface + */ + public function getHttpClient() + { + if (null === $this->http) { + $this->http = $this->createDefaultHttpClient(); + } + + return $this->http; + } + + /** + * Set the API format version. + * + * `true` will use V2, which may return more useful error messages. + * + * @param bool $value + */ + public function setApiFormatV2($value) + { + $this->config['api_format_v2'] = (bool) $value; + } + + protected function createDefaultHttpClient() + { + $guzzleVersion = null; + if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + $guzzleVersion = ClientInterface::MAJOR_VERSION; + } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); + } + + if (5 === $guzzleVersion) { + $options = [ + 'base_url' => $this->config['base_path'], + 'defaults' => ['exceptions' => false], + ]; + if ($this->isAppEngine()) { + // set StreamHandler on AppEngine by default + $options['handler'] = new StreamHandler(); + $options['defaults']['verify'] = '/etc/ca-certificates.crt'; + } + } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { + // guzzle 6 or 7 + $options = [ + 'base_uri' => $this->config['base_path'], + 'http_errors' => false, + ]; + } else { + throw new LogicException('Could not find supported version of Guzzle.'); + } + + return new GuzzleClient($options); + } + + /** + * @return FetchAuthTokenCache + */ + private function createApplicationDefaultCredentials() + { + $scopes = $this->prepareScopes(); + $sub = $this->config['subject']; + $signingKey = $this->config['signing_key']; + + // create credentials using values supplied in setAuthConfig + if ($signingKey) { + $serviceAccountCredentials = array( + 'client_id' => $this->config['client_id'], + 'client_email' => $this->config['client_email'], + 'private_key' => $signingKey, + 'type' => 'service_account', + 'quota_project_id' => $this->config['quota_project'], + ); + $credentials = CredentialsLoader::makeCredentials( + $scopes, + $serviceAccountCredentials + ); + } else { + // When $sub is provided, we cannot pass cache classes to ::getCredentials + // because FetchAuthTokenCache::setSub does not exist. + // The result is when $sub is provided, calls to ::onGce are not cached. + $credentials = ApplicationDefaultCredentials::getCredentials( + $scopes, + null, + $sub ? null : $this->config['cache_config'], + $sub ? null : $this->getCache(), + $this->config['quota_project'] + ); + } + + // for service account domain-wide authority (impersonating a user) + // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + if ($sub) { + if (!$credentials instanceof ServiceAccountCredentials) { + throw new DomainException('domain-wide authority requires service account credentials'); + } + + $credentials->setSub($sub); + } + + // If we are not using FetchAuthTokenCache yet, create it now + if (!$credentials instanceof FetchAuthTokenCache) { + $credentials = new FetchAuthTokenCache( + $credentials, + $this->config['cache_config'], + $this->getCache() + ); + } + return $credentials; + } + + protected function getAuthHandler() + { + // Be very careful using the cache, as the underlying auth library's cache + // implementation is naive, and the cache keys do not account for user + // sessions. + // + // @see https://github.com/google/google-api-php-client/issues/821 + return AuthHandlerFactory::build( + $this->getCache(), + $this->config['cache_config'] ); } - // call the authorize method - // this is where most of the grunt work is done - $http = $this->authorize(); - - return REST::execute( - $http, - $request, - $expectedClass, - $this->config['retry'], - $this->config['retry_map'] - ); - } - - /** - * Declare whether batch calls should be used. This may increase throughput - * by making multiple requests in one connection. - * - * @param boolean $useBatch True if the batch support should - * be enabled. Defaults to False. - */ - public function setUseBatch($useBatch) - { - // This is actually an alias for setDefer. - $this->setDefer($useBatch); - } - - /** - * Are we running in Google AppEngine? - * return bool - */ - public function isAppEngine() - { - return (isset($_SERVER['SERVER_SOFTWARE']) && - strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); - } - - public function setConfig($name, $value) - { - $this->config[$name] = $value; - } - - public function getConfig($name, $default = null) - { - return isset($this->config[$name]) ? $this->config[$name] : $default; - } - - /** - * For backwards compatibility - * alias for setAuthConfig - * - * @param string $file the configuration file - * @throws \Google\Exception - * @deprecated - */ - public function setAuthConfigFile($file) - { - $this->setAuthConfig($file); - } - - /** - * Set the auth config from new or deprecated JSON config. - * This structure should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string|array $config the configuration json - * @throws \Google\Exception - */ - public function setAuthConfig($config) - { - if (is_string($config)) { - if (!file_exists($config)) { - throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config)); - } - - $json = file_get_contents($config); - - if (!$config = json_decode($json, true)) { - throw new LogicException('invalid json for auth config'); - } - } - - $key = isset($config['installed']) ? 'installed' : 'web'; - if (isset($config['type']) && $config['type'] == 'service_account') { - // application default credentials - $this->useApplicationDefaultCredentials(); - - // set the information from the config - $this->setClientId($config['client_id']); - $this->config['client_email'] = $config['client_email']; - $this->config['signing_key'] = $config['private_key']; - $this->config['signing_algorithm'] = 'HS256'; - } elseif (isset($config[$key])) { - // old-style - $this->setClientId($config[$key]['client_id']); - $this->setClientSecret($config[$key]['client_secret']); - if (isset($config[$key]['redirect_uris'])) { - $this->setRedirectUri($config[$key]['redirect_uris'][0]); - } - } else { - // new-style - $this->setClientId($config['client_id']); - $this->setClientSecret($config['client_secret']); - if (isset($config['redirect_uris'])) { - $this->setRedirectUri($config['redirect_uris'][0]); - } - } - } - - /** - * Use when the service account has been delegated domain wide access. - * - * @param string $subject an email address account to impersonate - */ - public function setSubject($subject) - { - $this->config['subject'] = $subject; - } - - /** - * Declare whether making API calls should make the call immediately, or - * return a request which can be called with ->execute(); - * - * @param boolean $defer True if calls should not be executed right away. - */ - public function setDefer($defer) - { - $this->deferExecution = $defer; - } - - /** - * Whether or not to return raw requests - * @return boolean - */ - public function shouldDefer() - { - return $this->deferExecution; - } - - /** - * @return OAuth2 implementation - */ - public function getOAuth2Service() - { - if (!isset($this->auth)) { - $this->auth = $this->createOAuth2Service(); - } - - return $this->auth; - } - - /** - * create a default google auth object - */ - protected function createOAuth2Service() - { - $auth = new OAuth2( - [ - 'clientId' => $this->getClientId(), - 'clientSecret' => $this->getClientSecret(), - 'authorizationUri' => self::OAUTH2_AUTH_URL, - 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, - 'redirectUri' => $this->getRedirectUri(), - 'issuer' => $this->config['client_id'], - 'signingKey' => $this->config['signing_key'], - 'signingAlgorithm' => $this->config['signing_algorithm'], - ] - ); - - return $auth; - } - - /** - * Set the Cache object - * @param CacheItemPoolInterface $cache - */ - public function setCache(CacheItemPoolInterface $cache) - { - $this->cache = $cache; - } - - /** - * @return CacheItemPoolInterface - */ - public function getCache() - { - if (!$this->cache) { - $this->cache = $this->createDefaultCache(); - } - - return $this->cache; - } - - /** - * @param array $cacheConfig - */ - public function setCacheConfig(array $cacheConfig) - { - $this->config['cache_config'] = $cacheConfig; - } - - /** - * Set the Logger object - * @param LoggerInterface $logger - */ - public function setLogger(LoggerInterface $logger) - { - $this->logger = $logger; - } - - /** - * @return LoggerInterface - */ - public function getLogger() - { - if (!isset($this->logger)) { - $this->logger = $this->createDefaultLogger(); - } - - return $this->logger; - } - - protected function createDefaultLogger() - { - $logger = new Logger('google-api-php-client'); - if ($this->isAppEngine()) { - $handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE); - } else { - $handler = new MonologStreamHandler('php://stderr', Logger::NOTICE); - } - $logger->pushHandler($handler); - - return $logger; - } - - protected function createDefaultCache() - { - return new MemoryCacheItemPool; - } - - /** - * Set the Http Client object - * @param ClientInterface $http - */ - public function setHttpClient(ClientInterface $http) - { - $this->http = $http; - } - - /** - * @return ClientInterface - */ - public function getHttpClient() - { - if (null === $this->http) { - $this->http = $this->createDefaultHttpClient(); - } - - return $this->http; - } - - /** - * Set the API format version. - * - * `true` will use V2, which may return more useful error messages. - * - * @param bool $value - */ - public function setApiFormatV2($value) - { - $this->config['api_format_v2'] = (bool) $value; - } - - protected function createDefaultHttpClient() - { - $guzzleVersion = null; - if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { - $guzzleVersion = ClientInterface::MAJOR_VERSION; - } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { - $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); - } - - if (5 === $guzzleVersion) { - $options = [ - 'base_url' => $this->config['base_path'], - 'defaults' => ['exceptions' => false], - ]; - if ($this->isAppEngine()) { - // set StreamHandler on AppEngine by default - $options['handler'] = new StreamHandler(); - $options['defaults']['verify'] = '/etc/ca-certificates.crt'; - } - } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { - // guzzle 6 or 7 - $options = [ - 'base_uri' => $this->config['base_path'], - 'http_errors' => false, - ]; - } else { - throw new LogicException('Could not find supported version of Guzzle.'); - } - - return new GuzzleClient($options); - } - - /** - * @return FetchAuthTokenCache - */ - private function createApplicationDefaultCredentials() - { - $scopes = $this->prepareScopes(); - $sub = $this->config['subject']; - $signingKey = $this->config['signing_key']; - - // create credentials using values supplied in setAuthConfig - if ($signingKey) { - $serviceAccountCredentials = array( - 'client_id' => $this->config['client_id'], - 'client_email' => $this->config['client_email'], - 'private_key' => $signingKey, - 'type' => 'service_account', - 'quota_project_id' => $this->config['quota_project'], - ); - $credentials = CredentialsLoader::makeCredentials( - $scopes, - $serviceAccountCredentials - ); - } else { - // When $sub is provided, we cannot pass cache classes to ::getCredentials - // because FetchAuthTokenCache::setSub does not exist. - // The result is when $sub is provided, calls to ::onGce are not cached. - $credentials = ApplicationDefaultCredentials::getCredentials( - $scopes, - null, - $sub ? null : $this->config['cache_config'], - $sub ? null : $this->getCache(), - $this->config['quota_project'] - ); - } - - // for service account domain-wide authority (impersonating a user) - // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount - if ($sub) { - if (!$credentials instanceof ServiceAccountCredentials) { - throw new DomainException('domain-wide authority requires service account credentials'); - } - - $credentials->setSub($sub); - } - - // If we are not using FetchAuthTokenCache yet, create it now - if (!$credentials instanceof FetchAuthTokenCache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->config['cache_config'], - $this->getCache() - ); - } - return $credentials; - } - - protected function getAuthHandler() - { - // Be very careful using the cache, as the underlying auth library's cache - // implementation is naive, and the cache keys do not account for user - // sessions. - // - // @see https://github.com/google/google-api-php-client/issues/821 - return AuthHandlerFactory::build( - $this->getCache(), - $this->config['cache_config'] - ); - } - - private function createUserRefreshCredentials($scope, $refreshToken) - { - $creds = array_filter( - array( - 'client_id' => $this->getClientId(), - 'client_secret' => $this->getClientSecret(), - 'refresh_token' => $refreshToken, - ) - ); - - return new UserRefreshCredentials($scope, $creds); - } + private function createUserRefreshCredentials($scope, $refreshToken) + { + $creds = array_filter( + array( + 'client_id' => $this->getClientId(), + 'client_secret' => $this->getClientSecret(), + 'refresh_token' => $refreshToken, + ) + ); + + return new UserRefreshCredentials($scope, $creds); + } } diff --git a/src/Collection.php b/src/Collection.php index 1d653c80d..39ebccaa7 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -9,106 +9,110 @@ */ class Collection extends Model implements \Iterator, \Countable { - protected $collection_key = 'items'; + protected $collection_key = 'items'; - /** @return void */ - #[\ReturnTypeWillChange] - public function rewind() - { - if (isset($this->{$this->collection_key}) - && is_array($this->{$this->collection_key})) { - reset($this->{$this->collection_key}); + /** @return void */ + #[\ReturnTypeWillChange] + public function rewind() + { + if ( + isset($this->{$this->collection_key}) + && is_array($this->{$this->collection_key}) + ) { + reset($this->{$this->collection_key}); + } } - } - /** @return mixed */ - #[\ReturnTypeWillChange] - public function current() - { - $this->coerceType($this->key()); - if (is_array($this->{$this->collection_key})) { - return current($this->{$this->collection_key}); + /** @return mixed */ + #[\ReturnTypeWillChange] + public function current() + { + $this->coerceType($this->key()); + if (is_array($this->{$this->collection_key})) { + return current($this->{$this->collection_key}); + } } - } - /** @return mixed */ - #[\ReturnTypeWillChange] - public function key() - { - if (isset($this->{$this->collection_key}) - && is_array($this->{$this->collection_key})) { - return key($this->{$this->collection_key}); + /** @return mixed */ + #[\ReturnTypeWillChange] + public function key() + { + if ( + isset($this->{$this->collection_key}) + && is_array($this->{$this->collection_key}) + ) { + return key($this->{$this->collection_key}); + } } - } - /** @return void */ - #[\ReturnTypeWillChange] - public function next() - { - return next($this->{$this->collection_key}); - } + /** @return void */ + #[\ReturnTypeWillChange] + public function next() + { + return next($this->{$this->collection_key}); + } - /** @return bool */ - #[\ReturnTypeWillChange] - public function valid() - { - $key = $this->key(); - return $key !== null && $key !== false; - } + /** @return bool */ + #[\ReturnTypeWillChange] + public function valid() + { + $key = $this->key(); + return $key !== null && $key !== false; + } - /** @return int */ - #[\ReturnTypeWillChange] - public function count() - { - if (!isset($this->{$this->collection_key})) { - return 0; + /** @return int */ + #[\ReturnTypeWillChange] + public function count() + { + if (!isset($this->{$this->collection_key})) { + return 0; + } + return count($this->{$this->collection_key}); } - return count($this->{$this->collection_key}); - } - /** @return bool */ - public function offsetExists($offset) - { - if (!is_numeric($offset)) { - return parent::offsetExists($offset); + /** @return bool */ + public function offsetExists($offset) + { + if (!is_numeric($offset)) { + return parent::offsetExists($offset); + } + return isset($this->{$this->collection_key}[$offset]); } - return isset($this->{$this->collection_key}[$offset]); - } - /** @return mixed */ - public function offsetGet($offset) - { - if (!is_numeric($offset)) { - return parent::offsetGet($offset); + /** @return mixed */ + public function offsetGet($offset) + { + if (!is_numeric($offset)) { + return parent::offsetGet($offset); + } + $this->coerceType($offset); + return $this->{$this->collection_key}[$offset]; } - $this->coerceType($offset); - return $this->{$this->collection_key}[$offset]; - } - /** @return void */ - public function offsetSet($offset, $value) - { - if (!is_numeric($offset)) { - parent::offsetSet($offset, $value); + /** @return void */ + public function offsetSet($offset, $value) + { + if (!is_numeric($offset)) { + parent::offsetSet($offset, $value); + } + $this->{$this->collection_key}[$offset] = $value; } - $this->{$this->collection_key}[$offset] = $value; - } - /** @return void */ - public function offsetUnset($offset) - { - if (!is_numeric($offset)) { - parent::offsetUnset($offset); + /** @return void */ + public function offsetUnset($offset) + { + if (!is_numeric($offset)) { + parent::offsetUnset($offset); + } + unset($this->{$this->collection_key}[$offset]); } - unset($this->{$this->collection_key}[$offset]); - } - private function coerceType($offset) - { - $keyType = $this->keyType($this->collection_key); - if ($keyType && !is_object($this->{$this->collection_key}[$offset])) { - $this->{$this->collection_key}[$offset] = - new $keyType($this->{$this->collection_key}[$offset]); + private function coerceType($offset) + { + $keyType = $this->keyType($this->collection_key); + if ($keyType && !is_object($this->{$this->collection_key}[$offset])) { + $this->{$this->collection_key}[$offset] = + new $keyType($this->{$this->collection_key}[$offset]); + } } - } } diff --git a/src/Http/Batch.php b/src/Http/Batch.php index d27d5cd85..eb797582e 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -35,52 +35,52 @@ */ class Batch { - const BATCH_PATH = 'batch'; - - private static $CONNECTION_ESTABLISHED_HEADERS = array( - "HTTP/1.0 200 Connection established\r\n\r\n", - "HTTP/1.1 200 Connection established\r\n\r\n", - ); - - /** @var string Multipart Boundary. */ - private $boundary; - - /** @var array service requests to be executed. */ - private $requests = array(); - - /** @var Client */ - private $client; - - private $rootUrl; - - private $batchPath; - - public function __construct( - Client $client, - $boundary = false, - $rootUrl = null, - $batchPath = null - ) { - $this->client = $client; - $this->boundary = $boundary ?: mt_rand(); - $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); - $this->batchPath = $batchPath ?: self::BATCH_PATH; - } - - public function add(RequestInterface $request, $key = false) - { - if (false == $key) { - $key = mt_rand(); + const BATCH_PATH = 'batch'; + + private static $CONNECTION_ESTABLISHED_HEADERS = array( + "HTTP/1.0 200 Connection established\r\n\r\n", + "HTTP/1.1 200 Connection established\r\n\r\n", + ); + + /** @var string Multipart Boundary. */ + private $boundary; + + /** @var array service requests to be executed. */ + private $requests = array(); + + /** @var Client */ + private $client; + + private $rootUrl; + + private $batchPath; + + public function __construct( + Client $client, + $boundary = false, + $rootUrl = null, + $batchPath = null + ) { + $this->client = $client; + $this->boundary = $boundary ?: mt_rand(); + $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); + $this->batchPath = $batchPath ?: self::BATCH_PATH; } - $this->requests[$key] = $request; - } + public function add(RequestInterface $request, $key = false) + { + if (false == $key) { + $key = mt_rand(); + } + + $this->requests[$key] = $request; + } - public function execute() - { - $body = ''; - $classes = array(); - $batchHttpTemplate = <<requests as $key => $request) { - $firstLine = sprintf( - '%s %s HTTP/%s', - $request->getMethod(), - $request->getRequestTarget(), - $request->getProtocolVersion() - ); - - $content = (string) $request->getBody(); - - $headers = ''; - foreach ($request->getHeaders() as $name => $values) { - $headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values)); - } - - $body .= sprintf( - $batchHttpTemplate, - $this->boundary, - $key, - $firstLine, - $headers, - $content ? "\n".$content : '' - ); - - $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); - } + /** @var RequestInterface $req */ + foreach ($this->requests as $key => $request) { + $firstLine = sprintf( + '%s %s HTTP/%s', + $request->getMethod(), + $request->getRequestTarget(), + $request->getProtocolVersion() + ); + + $content = (string) $request->getBody(); + + $headers = ''; + foreach ($request->getHeaders() as $name => $values) { + $headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values)); + } + + $body .= sprintf( + $batchHttpTemplate, + $this->boundary, + $key, + $firstLine, + $headers, + $content ? "\n".$content : '' + ); + + $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); + } - $body .= "--{$this->boundary}--"; - $body = trim($body); - $url = $this->rootUrl . '/' . $this->batchPath; - $headers = array( - 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), - 'Content-Length' => strlen($body), - ); + $body .= "--{$this->boundary}--"; + $body = trim($body); + $url = $this->rootUrl . '/' . $this->batchPath; + $headers = array( + 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), + 'Content-Length' => strlen($body), + ); - $request = new Request( - 'POST', - $url, - $headers, - $body - ); + $request = new Request( + 'POST', + $url, + $headers, + $body + ); - $response = $this->client->execute($request); - - return $this->parseResponse($response, $classes); - } - - public function parseResponse(ResponseInterface $response, $classes = array()) - { - $contentType = $response->getHeaderLine('content-type'); - $contentType = explode(';', $contentType); - $boundary = false; - foreach ($contentType as $part) { - $part = explode('=', $part, 2); - if (isset($part[0]) && 'boundary' == trim($part[0])) { - $boundary = $part[1]; - } + $response = $this->client->execute($request); + + return $this->parseResponse($response, $classes); } - $body = (string) $response->getBody(); - if (!empty($body)) { - $body = str_replace("--$boundary--", "--$boundary", $body); - $parts = explode("--$boundary", $body); - $responses = array(); - $requests = array_values($this->requests); - - foreach ($parts as $i => $part) { - $part = trim($part); - if (!empty($part)) { - list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2); - $headers = $this->parseRawHeaders($rawHeaders); - - $status = substr($part, 0, strpos($part, "\n")); - $status = explode(" ", $status); - $status = $status[1]; - - list($partHeaders, $partBody) = $this->parseHttpResponse($part, false); - $response = new Response( - $status, - $partHeaders, - Psr7\Utils::streamFor($partBody) - ); - - // Need content id. - $key = $headers['content-id']; - - try { - $response = REST::decodeHttpResponse($response, $requests[$i-1]); - } catch (GoogleServiceException $e) { - // Store the exception as the response, so successful responses - // can be processed. - $response = $e; - } - - $responses[$key] = $response; + public function parseResponse(ResponseInterface $response, $classes = array()) + { + $contentType = $response->getHeaderLine('content-type'); + $contentType = explode(';', $contentType); + $boundary = false; + foreach ($contentType as $part) { + $part = explode('=', $part, 2); + if (isset($part[0]) && 'boundary' == trim($part[0])) { + $boundary = $part[1]; + } } - } - return $responses; + $body = (string) $response->getBody(); + if (!empty($body)) { + $body = str_replace("--$boundary--", "--$boundary", $body); + $parts = explode("--$boundary", $body); + $responses = array(); + $requests = array_values($this->requests); + + foreach ($parts as $i => $part) { + $part = trim($part); + if (!empty($part)) { + list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2); + $headers = $this->parseRawHeaders($rawHeaders); + + $status = substr($part, 0, strpos($part, "\n")); + $status = explode(" ", $status); + $status = $status[1]; + + list($partHeaders, $partBody) = $this->parseHttpResponse($part, false); + $response = new Response( + $status, + $partHeaders, + Psr7\Utils::streamFor($partBody) + ); + + // Need content id. + $key = $headers['content-id']; + + try { + $response = REST::decodeHttpResponse($response, $requests[$i-1]); + } catch (GoogleServiceException $e) { + // Store the exception as the response, so successful responses + // can be processed. + $response = $e; + } + + $responses[$key] = $response; + } + } + + return $responses; + } + + return null; } - return null; - } - - private function parseRawHeaders($rawHeaders) - { - $headers = array(); - $responseHeaderLines = explode("\r\n", $rawHeaders); - foreach ($responseHeaderLines as $headerLine) { - if ($headerLine && strpos($headerLine, ':') !== false) { - list($header, $value) = explode(': ', $headerLine, 2); - $header = strtolower($header); - if (isset($headers[$header])) { - $headers[$header] = array_merge((array)$headers[$header], (array)$value); - } else { - $headers[$header] = $value; + private function parseRawHeaders($rawHeaders) + { + $headers = array(); + $responseHeaderLines = explode("\r\n", $rawHeaders); + foreach ($responseHeaderLines as $headerLine) { + if ($headerLine && strpos($headerLine, ':') !== false) { + list($header, $value) = explode(': ', $headerLine, 2); + $header = strtolower($header); + if (isset($headers[$header])) { + $headers[$header] = array_merge((array)$headers[$header], (array)$value); + } else { + $headers[$header] = $value; + } + } } - } - } - return $headers; - } - - /** - * Used by the IO lib and also the batch processing. - * - * @param $respData - * @param $headerSize - * @return array - */ - private function parseHttpResponse($respData, $headerSize) - { - // check proxy header - foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { - if (stripos($respData, $established_header) !== false) { - // existed, remove it - $respData = str_ireplace($established_header, '', $respData); - // Subtract the proxy header size unless the cURL bug prior to 7.30.0 - // is present which prevented the proxy header size from being taken into - // account. - // @TODO look into this - // if (!$this->needsQuirk()) { - // $headerSize -= strlen($established_header); - // } - break; - } + return $headers; } - if ($headerSize) { - $responseBody = substr($respData, $headerSize); - $responseHeaders = substr($respData, 0, $headerSize); - } else { - $responseSegments = explode("\r\n\r\n", $respData, 2); - $responseHeaders = $responseSegments[0]; - $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : - null; - } + /** + * Used by the IO lib and also the batch processing. + * + * @param $respData + * @param $headerSize + * @return array + */ + private function parseHttpResponse($respData, $headerSize) + { + // check proxy header + foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { + if (stripos($respData, $established_header) !== false) { + // existed, remove it + $respData = str_ireplace($established_header, '', $respData); + // Subtract the proxy header size unless the cURL bug prior to 7.30.0 + // is present which prevented the proxy header size from being taken into + // account. + // @TODO look into this + // if (!$this->needsQuirk()) { + // $headerSize -= strlen($established_header); + // } + break; + } + } + + if ($headerSize) { + $responseBody = substr($respData, $headerSize); + $responseHeaders = substr($respData, 0, $headerSize); + } else { + $responseSegments = explode("\r\n\r\n", $respData, 2); + $responseHeaders = $responseSegments[0]; + $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : null; + } - $responseHeaders = $this->parseRawHeaders($responseHeaders); + $responseHeaders = $this->parseRawHeaders($responseHeaders); - return array($responseHeaders, $responseBody); - } + return array($responseHeaders, $responseBody); + } } diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index 15529bca7..edb73ab93 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -31,328 +31,327 @@ */ class MediaFileUpload { - const UPLOAD_MEDIA_TYPE = 'media'; - const UPLOAD_MULTIPART_TYPE = 'multipart'; - const UPLOAD_RESUMABLE_TYPE = 'resumable'; + const UPLOAD_MEDIA_TYPE = 'media'; + const UPLOAD_MULTIPART_TYPE = 'multipart'; + const UPLOAD_RESUMABLE_TYPE = 'resumable'; - /** @var string $mimeType */ - private $mimeType; + /** @var string $mimeType */ + private $mimeType; - /** @var string $data */ - private $data; + /** @var string $data */ + private $data; - /** @var bool $resumable */ - private $resumable; + /** @var bool $resumable */ + private $resumable; - /** @var int $chunkSize */ - private $chunkSize; + /** @var int $chunkSize */ + private $chunkSize; - /** @var int $size */ - private $size; + /** @var int $size */ + private $size; - /** @var string $resumeUri */ - private $resumeUri; + /** @var string $resumeUri */ + private $resumeUri; - /** @var int $progress */ - private $progress; + /** @var int $progress */ + private $progress; - /** @var Client */ - private $client; + /** @var Client */ + private $client; - /** @var RequestInterface */ - private $request; + /** @var RequestInterface */ + private $request; - /** @var string */ - private $boundary; + /** @var string */ + private $boundary; - /** + /** * Result code from last HTTP call * @var int */ - private $httpResultCode; - - /** - * @param Client $client - * @param RequestInterface $request - * @param string $mimeType - * @param string $data The bytes you want to upload. - * @param bool $resumable - * @param bool $chunkSize File will be uploaded in chunks of this many bytes. - * only used if resumable=True - */ - public function __construct( - Client $client, - RequestInterface $request, - $mimeType, - $data, - $resumable = false, - $chunkSize = false - ) { - $this->client = $client; - $this->request = $request; - $this->mimeType = $mimeType; - $this->data = $data; - $this->resumable = $resumable; - $this->chunkSize = $chunkSize; - $this->progress = 0; - - $this->process(); - } - - /** - * Set the size of the file that is being uploaded. - * @param $size - int file size in bytes - */ - public function setFileSize($size) - { - $this->size = $size; - } - - /** - * Return the progress on the upload - * @return int progress in bytes uploaded. - */ - public function getProgress() - { - return $this->progress; - } - - /** - * Send the next part of the file to upload. - * @param string|bool $chunk Optional. The next set of bytes to send. If false will - * use $data passed at construct time. - */ - public function nextChunk($chunk = false) - { - $resumeUri = $this->getResumeUri(); - - if (false == $chunk) { - $chunk = substr($this->data, $this->progress, $this->chunkSize); + private $httpResultCode; + + /** + * @param Client $client + * @param RequestInterface $request + * @param string $mimeType + * @param string $data The bytes you want to upload. + * @param bool $resumable + * @param bool $chunkSize File will be uploaded in chunks of this many bytes. + * only used if resumable=True + */ + public function __construct( + Client $client, + RequestInterface $request, + $mimeType, + $data, + $resumable = false, + $chunkSize = false + ) { + $this->client = $client; + $this->request = $request; + $this->mimeType = $mimeType; + $this->data = $data; + $this->resumable = $resumable; + $this->chunkSize = $chunkSize; + $this->progress = 0; + + $this->process(); } - $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( - 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-length' => strlen($chunk), - 'expect' => '', - ); - - $request = new Request( - 'PUT', - $resumeUri, - $headers, - Psr7\Utils::streamFor($chunk) - ); - - return $this->makePutRequest($request); - } - - /** - * Return the HTTP result code from the last call made. - * @return int code - */ - public function getHttpResultCode() - { - return $this->httpResultCode; - } - - /** - * Sends a PUT-Request to google drive and parses the response, - * setting the appropiate variables from the response() - * - * @param RequestInterface $request the Request which will be send - * - * @return false|mixed false when the upload is unfinished or the decoded http response - * - */ - private function makePutRequest(RequestInterface $request) - { - $response = $this->client->execute($request); - $this->httpResultCode = $response->getStatusCode(); - - if (308 == $this->httpResultCode) { - // Track the amount uploaded. - $range = $response->getHeaderLine('range'); - if ($range) { - $range_array = explode('-', $range); - $this->progress = $range_array[1] + 1; - } - - // Allow for changing upload URLs. - $location = $response->getHeaderLine('location'); - if ($location) { - $this->resumeUri = $location; - } - - // No problems, but upload not complete. - return false; + /** + * Set the size of the file that is being uploaded. + * @param $size - int file size in bytes + */ + public function setFileSize($size) + { + $this->size = $size; } - return REST::decodeHttpResponse($response, $this->request); - } - - /** - * Resume a previously unfinished upload - * @param $resumeUri the resume-URI of the unfinished, resumable upload. - */ - public function resume($resumeUri) - { - $this->resumeUri = $resumeUri; - $headers = array( - 'content-range' => "bytes */$this->size", - 'content-length' => 0, - ); - $httpRequest = new Request( - 'PUT', - $this->resumeUri, - $headers - ); - - return $this->makePutRequest($httpRequest); - } - - /** - * @return RequestInterface - * @visible for testing - */ - private function process() - { - $this->transformToUploadUrl(); - $request = $this->request; - - $postBody = ''; - $contentType = false; - - $meta = (string) $request->getBody(); - $meta = is_string($meta) ? json_decode($meta, true) : $meta; - - $uploadType = $this->getUploadType($meta); - $request = $request->withUri( - Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType) - ); - - $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); - - if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = is_string($meta) ? $meta : json_encode($meta); - } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = $this->data; - } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { - // This is a multipart/related upload. - $boundary = $this->boundary ?: mt_rand(); - $boundary = str_replace('"', '', $boundary); - $contentType = 'multipart/related; boundary=' . $boundary; - $related = "--$boundary\r\n"; - $related .= "Content-Type: application/json; charset=UTF-8\r\n"; - $related .= "\r\n" . json_encode($meta) . "\r\n"; - $related .= "--$boundary\r\n"; - $related .= "Content-Type: $mimeType\r\n"; - $related .= "Content-Transfer-Encoding: base64\r\n"; - $related .= "\r\n" . base64_encode($this->data) . "\r\n"; - $related .= "--$boundary--"; - $postBody = $related; + /** + * Return the progress on the upload + * @return int progress in bytes uploaded. + */ + public function getProgress() + { + return $this->progress; } - $request = $request->withBody(Psr7\Utils::streamFor($postBody)); - - if (isset($contentType) && $contentType) { - $request = $request->withHeader('content-type', $contentType); + /** + * Send the next part of the file to upload. + * @param string|bool $chunk Optional. The next set of bytes to send. If false will + * use $data passed at construct time. + */ + public function nextChunk($chunk = false) + { + $resumeUri = $this->getResumeUri(); + + if (false == $chunk) { + $chunk = substr($this->data, $this->progress, $this->chunkSize); + } + + $lastBytePos = $this->progress + strlen($chunk) - 1; + $headers = array( + 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", + 'content-length' => strlen($chunk), + 'expect' => '', + ); + + $request = new Request( + 'PUT', + $resumeUri, + $headers, + Psr7\Utils::streamFor($chunk) + ); + + return $this->makePutRequest($request); } - return $this->request = $request; - } - - /** - * Valid upload types: - * - resumable (UPLOAD_RESUMABLE_TYPE) - * - media (UPLOAD_MEDIA_TYPE) - * - multipart (UPLOAD_MULTIPART_TYPE) - * @param $meta - * @return string - * @visible for testing - */ - public function getUploadType($meta) - { - if ($this->resumable) { - return self::UPLOAD_RESUMABLE_TYPE; + /** + * Return the HTTP result code from the last call made. + * @return int code + */ + public function getHttpResultCode() + { + return $this->httpResultCode; } - if (false == $meta && $this->data) { - return self::UPLOAD_MEDIA_TYPE; + /** + * Sends a PUT-Request to google drive and parses the response, + * setting the appropiate variables from the response() + * + * @param RequestInterface $request the Request which will be send + * + * @return false|mixed false when the upload is unfinished or the decoded http response + * + */ + private function makePutRequest(RequestInterface $request) + { + $response = $this->client->execute($request); + $this->httpResultCode = $response->getStatusCode(); + + if (308 == $this->httpResultCode) { + // Track the amount uploaded. + $range = $response->getHeaderLine('range'); + if ($range) { + $range_array = explode('-', $range); + $this->progress = $range_array[1] + 1; + } + + // Allow for changing upload URLs. + $location = $response->getHeaderLine('location'); + if ($location) { + $this->resumeUri = $location; + } + + // No problems, but upload not complete. + return false; + } + + return REST::decodeHttpResponse($response, $this->request); } - return self::UPLOAD_MULTIPART_TYPE; - } + /** + * Resume a previously unfinished upload + * @param $resumeUri the resume-URI of the unfinished, resumable upload. + */ + public function resume($resumeUri) + { + $this->resumeUri = $resumeUri; + $headers = array( + 'content-range' => "bytes */$this->size", + 'content-length' => 0, + ); + $httpRequest = new Request( + 'PUT', + $this->resumeUri, + $headers + ); + return $this->makePutRequest($httpRequest); + } - public function getResumeUri() - { - if (null === $this->resumeUri) { - $this->resumeUri = $this->fetchResumeUri(); + /** + * @return RequestInterface + * @visible for testing + */ + private function process() + { + $this->transformToUploadUrl(); + $request = $this->request; + + $postBody = ''; + $contentType = false; + + $meta = (string) $request->getBody(); + $meta = is_string($meta) ? json_decode($meta, true) : $meta; + + $uploadType = $this->getUploadType($meta); + $request = $request->withUri( + Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType) + ); + + $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); + + if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = is_string($meta) ? $meta : json_encode($meta); + } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = $this->data; + } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { + // This is a multipart/related upload. + $boundary = $this->boundary ?: mt_rand(); + $boundary = str_replace('"', '', $boundary); + $contentType = 'multipart/related; boundary=' . $boundary; + $related = "--$boundary\r\n"; + $related .= "Content-Type: application/json; charset=UTF-8\r\n"; + $related .= "\r\n" . json_encode($meta) . "\r\n"; + $related .= "--$boundary\r\n"; + $related .= "Content-Type: $mimeType\r\n"; + $related .= "Content-Transfer-Encoding: base64\r\n"; + $related .= "\r\n" . base64_encode($this->data) . "\r\n"; + $related .= "--$boundary--"; + $postBody = $related; + } + + $request = $request->withBody(Psr7\Utils::streamFor($postBody)); + + if (isset($contentType) && $contentType) { + $request = $request->withHeader('content-type', $contentType); + } + + return $this->request = $request; } - return $this->resumeUri; - } - - private function fetchResumeUri() - { - $body = $this->request->getBody(); - if ($body) { - $headers = array( - 'content-type' => 'application/json; charset=UTF-8', - 'content-length' => $body->getSize(), - 'x-upload-content-type' => $this->mimeType, - 'x-upload-content-length' => $this->size, - 'expect' => '', - ); - foreach ($headers as $key => $value) { - $this->request = $this->request->withHeader($key, $value); - } + /** + * Valid upload types: + * - resumable (UPLOAD_RESUMABLE_TYPE) + * - media (UPLOAD_MEDIA_TYPE) + * - multipart (UPLOAD_MULTIPART_TYPE) + * @param $meta + * @return string + * @visible for testing + */ + public function getUploadType($meta) + { + if ($this->resumable) { + return self::UPLOAD_RESUMABLE_TYPE; + } + + if (false == $meta && $this->data) { + return self::UPLOAD_MEDIA_TYPE; + } + + return self::UPLOAD_MULTIPART_TYPE; } - $response = $this->client->execute($this->request, false); - $location = $response->getHeaderLine('location'); - $code = $response->getStatusCode(); + public function getResumeUri() + { + if (null === $this->resumeUri) { + $this->resumeUri = $this->fetchResumeUri(); + } - if (200 == $code && true == $location) { - return $location; + return $this->resumeUri; } - $message = $code; - $body = json_decode((string) $this->request->getBody(), true); - if (isset($body['error']['errors'])) { - $message .= ': '; - foreach ($body['error']['errors'] as $error) { - $message .= "{$error['domain']}, {$error['message']};"; - } - $message = rtrim($message, ';'); + private function fetchResumeUri() + { + $body = $this->request->getBody(); + if ($body) { + $headers = array( + 'content-type' => 'application/json; charset=UTF-8', + 'content-length' => $body->getSize(), + 'x-upload-content-type' => $this->mimeType, + 'x-upload-content-length' => $this->size, + 'expect' => '', + ); + foreach ($headers as $key => $value) { + $this->request = $this->request->withHeader($key, $value); + } + } + + $response = $this->client->execute($this->request, false); + $location = $response->getHeaderLine('location'); + $code = $response->getStatusCode(); + + if (200 == $code && true == $location) { + return $location; + } + + $message = $code; + $body = json_decode((string) $this->request->getBody(), true); + if (isset($body['error']['errors'])) { + $message .= ': '; + foreach ($body['error']['errors'] as $error) { + $message .= "{$error['domain']}, {$error['message']};"; + } + $message = rtrim($message, ';'); + } + + $error = "Failed to start the resumable upload (HTTP {$message})"; + $this->client->getLogger()->error($error); + + throw new GoogleException($error); } - $error = "Failed to start the resumable upload (HTTP {$message})"; - $this->client->getLogger()->error($error); + private function transformToUploadUrl() + { + $parts = parse_url((string) $this->request->getUri()); + if (!isset($parts['path'])) { + $parts['path'] = ''; + } + $parts['path'] = '/upload' . $parts['path']; + $uri = Uri::fromParts($parts); + $this->request = $this->request->withUri($uri); + } - throw new GoogleException($error); - } + public function setChunkSize($chunkSize) + { + $this->chunkSize = $chunkSize; + } - private function transformToUploadUrl() - { - $parts = parse_url((string) $this->request->getUri()); - if (!isset($parts['path'])) { - $parts['path'] = ''; + public function getRequest() + { + return $this->request; } - $parts['path'] = '/upload' . $parts['path']; - $uri = Uri::fromParts($parts); - $this->request = $this->request->withUri($uri); - } - - public function setChunkSize($chunkSize) - { - $this->chunkSize = $chunkSize; - } - - public function getRequest() - { - return $this->request; - } } diff --git a/src/Http/REST.php b/src/Http/REST.php index 4329e4d1b..908481689 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -32,161 +32,161 @@ */ class REST { - /** - * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries - * when errors occur. - * - * @param Client $client - * @param RequestInterface $req - * @param string $expectedClass - * @param array $config - * @param array $retryMap - * @return mixed decoded result - * @throws \Google\Service\Exception on server side error (ie: not authenticated, - * invalid or malformed post body, invalid url) - */ - public static function execute( - ClientInterface $client, - RequestInterface $request, - $expectedClass = null, - $config = array(), - $retryMap = null - ) { - $runner = new Runner( - $config, - sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), - array(get_class(), 'doExecute'), - array($client, $request, $expectedClass) - ); - - if (null !== $retryMap) { - $runner->setRetryMap($retryMap); - } - - return $runner->run(); - } - - /** - * Executes a Psr\Http\Message\RequestInterface - * - * @param Client $client - * @param RequestInterface $request - * @param string $expectedClass - * @return array decoded result - * @throws \Google\Service\Exception on server side error (ie: not authenticated, - * invalid or malformed post body, invalid url) - */ - public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) - { - try { - $httpHandler = HttpHandlerFactory::build($client); - $response = $httpHandler($request); - } catch (RequestException $e) { - // if Guzzle throws an exception, catch it and handle the response - if (!$e->hasResponse()) { - throw $e; - } - - $response = $e->getResponse(); - // specific checking for Guzzle 5: convert to PSR7 response - if ($response instanceof \GuzzleHttp\Message\ResponseInterface) { - $response = new Response( - $response->getStatusCode(), - $response->getHeaders() ?: [], - $response->getBody(), - $response->getProtocolVersion(), - $response->getReasonPhrase() + /** + * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries + * when errors occur. + * + * @param Client $client + * @param RequestInterface $req + * @param string $expectedClass + * @param array $config + * @param array $retryMap + * @return mixed decoded result + * @throws \Google\Service\Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function execute( + ClientInterface $client, + RequestInterface $request, + $expectedClass = null, + $config = array(), + $retryMap = null + ) { + $runner = new Runner( + $config, + sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), + array(get_class(), 'doExecute'), + array($client, $request, $expectedClass) ); - } - } - return self::decodeHttpResponse($response, $request, $expectedClass); - } - - /** - * Decode an HTTP Response. - * @static - * @throws \Google\Service\Exception - * @param RequestInterface $response The http response to be decoded. - * @param ResponseInterface $response - * @param string $expectedClass - * @return mixed|null - */ - public static function decodeHttpResponse( - ResponseInterface $response, - RequestInterface $request = null, - $expectedClass = null - ) { - $code = $response->getStatusCode(); - - // retry strategy - if (intVal($code) >= 400) { - // if we errored out, it should be safe to grab the response body - $body = (string) $response->getBody(); - - // Check if we received errors, and add those to the Exception for convenience - throw new GoogleServiceException($body, $code, null, self::getResponseErrors($body)); - } + if (null !== $retryMap) { + $runner->setRetryMap($retryMap); + } - // Ensure we only pull the entire body into memory if the request is not - // of media type - $body = self::decodeBody($response, $request); + return $runner->run(); + } - if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { - $json = json_decode($body, true); + /** + * Executes a Psr\Http\Message\RequestInterface + * + * @param Client $client + * @param RequestInterface $request + * @param string $expectedClass + * @return array decoded result + * @throws \Google\Service\Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) + { + try { + $httpHandler = HttpHandlerFactory::build($client); + $response = $httpHandler($request); + } catch (RequestException $e) { + // if Guzzle throws an exception, catch it and handle the response + if (!$e->hasResponse()) { + throw $e; + } + + $response = $e->getResponse(); + // specific checking for Guzzle 5: convert to PSR7 response + if ($response instanceof \GuzzleHttp\Message\ResponseInterface) { + $response = new Response( + $response->getStatusCode(), + $response->getHeaders() ?: [], + $response->getBody(), + $response->getProtocolVersion(), + $response->getReasonPhrase() + ); + } + } + + return self::decodeHttpResponse($response, $request, $expectedClass); + } - return new $expectedClass($json); + /** + * Decode an HTTP Response. + * @static + * @throws \Google\Service\Exception + * @param RequestInterface $response The http response to be decoded. + * @param ResponseInterface $response + * @param string $expectedClass + * @return mixed|null + */ + public static function decodeHttpResponse( + ResponseInterface $response, + RequestInterface $request = null, + $expectedClass = null + ) { + $code = $response->getStatusCode(); + + // retry strategy + if (intVal($code) >= 400) { + // if we errored out, it should be safe to grab the response body + $body = (string) $response->getBody(); + + // Check if we received errors, and add those to the Exception for convenience + throw new GoogleServiceException($body, $code, null, self::getResponseErrors($body)); + } + + // Ensure we only pull the entire body into memory if the request is not + // of media type + $body = self::decodeBody($response, $request); + + if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { + $json = json_decode($body, true); + + return new $expectedClass($json); + } + + return $response; } - return $response; - } + private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) + { + if (self::isAltMedia($request)) { + // don't decode the body, it's probably a really long string + return ''; + } - private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) - { - if (self::isAltMedia($request)) { - // don't decode the body, it's probably a really long string - return ''; + return (string) $response->getBody(); } - return (string) $response->getBody(); - } + private static function determineExpectedClass($expectedClass, RequestInterface $request = null) + { + // "false" is used to explicitly prevent an expected class from being returned + if (false === $expectedClass) { + return null; + } - private static function determineExpectedClass($expectedClass, RequestInterface $request = null) - { - // "false" is used to explicitly prevent an expected class from being returned - if (false === $expectedClass) { - return null; - } + // if we don't have a request, we just use what's passed in + if (null === $request) { + return $expectedClass; + } - // if we don't have a request, we just use what's passed in - if (null === $request) { - return $expectedClass; + // return what we have in the request header if one was not supplied + return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); } - // return what we have in the request header if one was not supplied - return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); - } + private static function getResponseErrors($body) + { + $json = json_decode($body, true); - private static function getResponseErrors($body) - { - $json = json_decode($body, true); + if (isset($json['error']['errors'])) { + return $json['error']['errors']; + } - if (isset($json['error']['errors'])) { - return $json['error']['errors']; + return null; } - return null; - } + private static function isAltMedia(RequestInterface $request = null) + { + if ($request && $qs = $request->getUri()->getQuery()) { + parse_str($qs, $query); + if (isset($query['alt']) && $query['alt'] == 'media') { + return true; + } + } - private static function isAltMedia(RequestInterface $request = null) - { - if ($request && $qs = $request->getUri()->getQuery()) { - parse_str($qs, $query); - if (isset($query['alt']) && $query['alt'] == 'media') { - return true; - } + return false; } - - return false; - } } diff --git a/src/Model.php b/src/Model.php index 590984ef0..4d0e8dbca 100644 --- a/src/Model.php +++ b/src/Model.php @@ -30,303 +30,303 @@ */ class Model implements \ArrayAccess { - /** - * If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE - * instead - it will be replaced when converting to JSON with a real null. - */ - const NULL_VALUE = "{}gapi-php-null"; - protected $internal_gapi_mappings = array(); - protected $modelData = array(); - protected $processed = array(); + /** + * If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE + * instead - it will be replaced when converting to JSON with a real null. + */ + const NULL_VALUE = "{}gapi-php-null"; + protected $internal_gapi_mappings = array(); + protected $modelData = array(); + protected $processed = array(); - /** - * Polymorphic - accepts a variable number of arguments dependent - * on the type of the model subclass. - */ - final public function __construct() - { - if (func_num_args() == 1 && is_array(func_get_arg(0))) { - // Initialize the model with the array's contents. - $array = func_get_arg(0); - $this->mapTypes($array); + /** + * Polymorphic - accepts a variable number of arguments dependent + * on the type of the model subclass. + */ + final public function __construct() + { + if (func_num_args() == 1 && is_array(func_get_arg(0))) { + // Initialize the model with the array's contents. + $array = func_get_arg(0); + $this->mapTypes($array); + } + $this->gapiInit(); } - $this->gapiInit(); - } - /** - * Getter that handles passthrough access to the data array, and lazy object creation. - * @param string $key Property name. - * @return mixed The value if any, or null. - */ - public function __get($key) - { - $keyType = $this->keyType($key); - $keyDataType = $this->dataType($key); - if ($keyType && !isset($this->processed[$key])) { - if (isset($this->modelData[$key])) { - $val = $this->modelData[$key]; - } elseif ($keyDataType == 'array' || $keyDataType == 'map') { - $val = array(); - } else { - $val = null; - } + /** + * Getter that handles passthrough access to the data array, and lazy object creation. + * @param string $key Property name. + * @return mixed The value if any, or null. + */ + public function __get($key) + { + $keyType = $this->keyType($key); + $keyDataType = $this->dataType($key); + if ($keyType && !isset($this->processed[$key])) { + if (isset($this->modelData[$key])) { + $val = $this->modelData[$key]; + } elseif ($keyDataType == 'array' || $keyDataType == 'map') { + $val = array(); + } else { + $val = null; + } - if ($this->isAssociativeArray($val)) { - if ($keyDataType && 'map' == $keyDataType) { - foreach ($val as $arrayKey => $arrayItem) { - $this->modelData[$key][$arrayKey] = - new $keyType($arrayItem); - } - } else { - $this->modelData[$key] = new $keyType($val); - } - } else if (is_array($val)) { - $arrayObject = array(); - foreach ($val as $arrayIndex => $arrayItem) { - $arrayObject[$arrayIndex] = new $keyType($arrayItem); + if ($this->isAssociativeArray($val)) { + if ($keyDataType && 'map' == $keyDataType) { + foreach ($val as $arrayKey => $arrayItem) { + $this->modelData[$key][$arrayKey] = + new $keyType($arrayItem); + } + } else { + $this->modelData[$key] = new $keyType($val); + } + } else if (is_array($val)) { + $arrayObject = array(); + foreach ($val as $arrayIndex => $arrayItem) { + $arrayObject[$arrayIndex] = new $keyType($arrayItem); + } + $this->modelData[$key] = $arrayObject; + } + $this->processed[$key] = true; } - $this->modelData[$key] = $arrayObject; - } - $this->processed[$key] = true; - } - return isset($this->modelData[$key]) ? $this->modelData[$key] : null; - } + return isset($this->modelData[$key]) ? $this->modelData[$key] : null; + } - /** - * Initialize this object's properties from an array. - * - * @param array $array Used to seed this object's properties. - * @return void - */ - protected function mapTypes($array) - { - // Hard initialise simple types, lazy load more complex ones. - foreach ($array as $key => $val) { - if ($keyType = $this->keyType($key)) { - $dataType = $this->dataType($key); - if ($dataType == 'array' || $dataType == 'map') { - $this->$key = array(); - foreach ($val as $itemKey => $itemVal) { - if ($itemVal instanceof $keyType) { - $this->{$key}[$itemKey] = $itemVal; - } else { - $this->{$key}[$itemKey] = new $keyType($itemVal); + /** + * Initialize this object's properties from an array. + * + * @param array $array Used to seed this object's properties. + * @return void + */ + protected function mapTypes($array) + { + // Hard initialise simple types, lazy load more complex ones. + foreach ($array as $key => $val) { + if ($keyType = $this->keyType($key)) { + $dataType = $this->dataType($key); + if ($dataType == 'array' || $dataType == 'map') { + $this->$key = array(); + foreach ($val as $itemKey => $itemVal) { + if ($itemVal instanceof $keyType) { + $this->{$key}[$itemKey] = $itemVal; + } else { + $this->{$key}[$itemKey] = new $keyType($itemVal); + } + } + } elseif ($val instanceof $keyType) { + $this->$key = $val; + } else { + $this->$key = new $keyType($val); + } + unset($array[$key]); + } elseif (property_exists($this, $key)) { + $this->$key = $val; + unset($array[$key]); + } elseif (property_exists($this, $camelKey = $this->camelCase($key))) { + // This checks if property exists as camelCase, leaving it in array as snake_case + // in case of backwards compatibility issues. + $this->$camelKey = $val; } - } - } elseif ($val instanceof $keyType) { - $this->$key = $val; - } else { - $this->$key = new $keyType($val); } - unset($array[$key]); - } elseif (property_exists($this, $key)) { - $this->$key = $val; - unset($array[$key]); - } elseif (property_exists($this, $camelKey = $this->camelCase($key))) { - // This checks if property exists as camelCase, leaving it in array as snake_case - // in case of backwards compatibility issues. - $this->$camelKey = $val; - } + $this->modelData = $array; } - $this->modelData = $array; - } - - /** - * Blank initialiser to be used in subclasses to do post-construction initialisation - this - * avoids the need for subclasses to have to implement the variadics handling in their - * constructors. - */ - protected function gapiInit() - { - return; - } - - /** - * Create a simplified object suitable for straightforward - * conversion to JSON. This is relatively expensive - * due to the usage of reflection, but shouldn't be called - * a whole lot, and is the most straightforward way to filter. - */ - public function toSimpleObject() - { - $object = new stdClass(); - // Process all other data. - foreach ($this->modelData as $key => $val) { - $result = $this->getSimpleValue($val); - if ($result !== null) { - $object->$key = $this->nullPlaceholderCheck($result); - } + /** + * Blank initialiser to be used in subclasses to do post-construction initialisation - this + * avoids the need for subclasses to have to implement the variadics handling in their + * constructors. + */ + protected function gapiInit() + { + return; } - // Process all public properties. - $reflect = new ReflectionObject($this); - $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC); - foreach ($props as $member) { - $name = $member->getName(); - $result = $this->getSimpleValue($this->$name); - if ($result !== null) { - $name = $this->getMappedName($name); - $object->$name = $this->nullPlaceholderCheck($result); - } - } + /** + * Create a simplified object suitable for straightforward + * conversion to JSON. This is relatively expensive + * due to the usage of reflection, but shouldn't be called + * a whole lot, and is the most straightforward way to filter. + */ + public function toSimpleObject() + { + $object = new stdClass(); - return $object; - } + // Process all other data. + foreach ($this->modelData as $key => $val) { + $result = $this->getSimpleValue($val); + if ($result !== null) { + $object->$key = $this->nullPlaceholderCheck($result); + } + } - /** - * Handle different types of values, primarily - * other objects and map and array data types. - */ - private function getSimpleValue($value) - { - if ($value instanceof Model) { - return $value->toSimpleObject(); - } else if (is_array($value)) { - $return = array(); - foreach ($value as $key => $a_value) { - $a_value = $this->getSimpleValue($a_value); - if ($a_value !== null) { - $key = $this->getMappedName($key); - $return[$key] = $this->nullPlaceholderCheck($a_value); + // Process all public properties. + $reflect = new ReflectionObject($this); + $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC); + foreach ($props as $member) { + $name = $member->getName(); + $result = $this->getSimpleValue($this->$name); + if ($result !== null) { + $name = $this->getMappedName($name); + $object->$name = $this->nullPlaceholderCheck($result); + } } - } - return $return; + + return $object; } - return $value; - } - /** - * Check whether the value is the null placeholder and return true null. - */ - private function nullPlaceholderCheck($value) - { - if ($value === self::NULL_VALUE) { - return null; + /** + * Handle different types of values, primarily + * other objects and map and array data types. + */ + private function getSimpleValue($value) + { + if ($value instanceof Model) { + return $value->toSimpleObject(); + } else if (is_array($value)) { + $return = array(); + foreach ($value as $key => $a_value) { + $a_value = $this->getSimpleValue($a_value); + if ($a_value !== null) { + $key = $this->getMappedName($key); + $return[$key] = $this->nullPlaceholderCheck($a_value); + } + } + return $return; + } + return $value; } - return $value; - } - /** - * If there is an internal name mapping, use that. - */ - private function getMappedName($key) - { - if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { - $key = $this->internal_gapi_mappings[$key]; + /** + * Check whether the value is the null placeholder and return true null. + */ + private function nullPlaceholderCheck($value) + { + if ($value === self::NULL_VALUE) { + return null; + } + return $value; } - return $key; - } - /** - * Returns true only if the array is associative. - * @param array $array - * @return bool True if the array is associative. - */ - protected function isAssociativeArray($array) - { - if (!is_array($array)) { - return false; + /** + * If there is an internal name mapping, use that. + */ + private function getMappedName($key) + { + if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { + $key = $this->internal_gapi_mappings[$key]; + } + return $key; } - $keys = array_keys($array); - foreach ($keys as $key) { - if (is_string($key)) { - return true; - } + + /** + * Returns true only if the array is associative. + * @param array $array + * @return bool True if the array is associative. + */ + protected function isAssociativeArray($array) + { + if (!is_array($array)) { + return false; + } + $keys = array_keys($array); + foreach ($keys as $key) { + if (is_string($key)) { + return true; + } + } + return false; } - return false; - } - /** - * Verify if $obj is an array. - * @throws \Google\Exception Thrown if $obj isn't an array. - * @param array $obj Items that should be validated. - * @param string $method Method expecting an array as an argument. - */ - public function assertIsArray($obj, $method) - { - if ($obj && !is_array($obj)) { - throw new GoogleException( - "Incorrect parameter type passed to $method(). Expected an array." - ); + /** + * Verify if $obj is an array. + * @throws \Google\Exception Thrown if $obj isn't an array. + * @param array $obj Items that should be validated. + * @param string $method Method expecting an array as an argument. + */ + public function assertIsArray($obj, $method) + { + if ($obj && !is_array($obj)) { + throw new GoogleException( + "Incorrect parameter type passed to $method(). Expected an array." + ); + } } - } - /** @return bool */ - #[\ReturnTypeWillChange] - public function offsetExists($offset) - { - return isset($this->$offset) || isset($this->modelData[$offset]); - } + /** @return bool */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->$offset) || isset($this->modelData[$offset]); + } - /** @return mixed */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return isset($this->$offset) ? + /** @return mixed */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->$offset) ? $this->$offset : $this->__get($offset); - } + } - /** @return void */ - #[\ReturnTypeWillChange] - public function offsetSet($offset, $value) - { - if (property_exists($this, $offset)) { - $this->$offset = $value; - } else { - $this->modelData[$offset] = $value; - $this->processed[$offset] = true; + /** @return void */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (property_exists($this, $offset)) { + $this->$offset = $value; + } else { + $this->modelData[$offset] = $value; + $this->processed[$offset] = true; + } } - } - /** @return void */ - #[\ReturnTypeWillChange] - public function offsetUnset($offset) - { - unset($this->modelData[$offset]); - } + /** @return void */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->modelData[$offset]); + } - protected function keyType($key) - { - $keyType = $key . "Type"; + protected function keyType($key) + { + $keyType = $key . "Type"; - // ensure keyType is a valid class - if (property_exists($this, $keyType) && class_exists($this->$keyType)) { - return $this->$keyType; + // ensure keyType is a valid class + if (property_exists($this, $keyType) && class_exists($this->$keyType)) { + return $this->$keyType; + } } - } - protected function dataType($key) - { - $dataType = $key . "DataType"; + protected function dataType($key) + { + $dataType = $key . "DataType"; - if (property_exists($this, $dataType)) { - return $this->$dataType; + if (property_exists($this, $dataType)) { + return $this->$dataType; + } } - } - public function __isset($key) - { - return isset($this->modelData[$key]); - } + public function __isset($key) + { + return isset($this->modelData[$key]); + } - public function __unset($key) - { - unset($this->modelData[$key]); - } + public function __unset($key) + { + unset($this->modelData[$key]); + } - /** + /** * Convert a string to camelCase * @param string $value * @return string */ - private function camelCase($value) - { - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); - $value = str_replace(' ', '', $value); - $value[0] = strtolower($value[0]); - return $value; - } + private function camelCase($value) + { + $value = ucwords(str_replace(array('-', '_'), ' ', $value)); + $value = str_replace(' ', '', $value); + $value[0] = strtolower($value[0]); + return $value; + } } diff --git a/src/Service.php b/src/Service.php index 7d3052499..923e7caef 100644 --- a/src/Service.php +++ b/src/Service.php @@ -22,50 +22,50 @@ class Service { - public $batchPath; - public $rootUrl; - public $version; - public $servicePath; - public $availableScopes; - public $resource; - private $client; + public $batchPath; + public $rootUrl; + public $version; + public $servicePath; + public $availableScopes; + public $resource; + private $client; - public function __construct($clientOrConfig = []) - { - if ($clientOrConfig instanceof Client) { - $this->client = $clientOrConfig; - } elseif (is_array($clientOrConfig)) { - $this->client = new Client($clientOrConfig ?: []); - } else { - $errorMessage = 'constructor must be array or instance of Google\Client'; - if (class_exists('TypeError')) { - throw new TypeError($errorMessage); - } - trigger_error($errorMessage, E_USER_ERROR); + public function __construct($clientOrConfig = []) + { + if ($clientOrConfig instanceof Client) { + $this->client = $clientOrConfig; + } elseif (is_array($clientOrConfig)) { + $this->client = new Client($clientOrConfig ?: []); + } else { + $errorMessage = 'constructor must be array or instance of Google\Client'; + if (class_exists('TypeError')) { + throw new TypeError($errorMessage); + } + trigger_error($errorMessage, E_USER_ERROR); + } } - } - /** + /** * Return the associated Google\Client class. * @return \Google\Client */ - public function getClient() - { - return $this->client; - } + public function getClient() + { + return $this->client; + } - /** + /** * Create a new HTTP Batch handler for this service * * @return Batch */ - public function createBatch() - { - return new Batch( - $this->client, - false, - $this->rootUrl, - $this->batchPath - ); - } + public function createBatch() + { + return new Batch( + $this->client, + false, + $this->rootUrl, + $this->batchPath + ); + } } diff --git a/src/Service/Exception.php b/src/Service/Exception.php index 3270ad7f3..bffdeaca9 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -21,51 +21,51 @@ class Exception extends GoogleException { - /** - * Optional list of errors returned in a JSON body of an HTTP error response. - */ - protected $errors = array(); + /** + * Optional list of errors returned in a JSON body of an HTTP error response. + */ + protected $errors = array(); - /** - * Override default constructor to add the ability to set $errors and a retry - * map. - * - * @param string $message - * @param int $code - * @param \Exception|null $previous - * @param [{string, string}] errors List of errors returned in an HTTP - * response. Defaults to []. - */ - public function __construct( - $message, - $code = 0, - Exception $previous = null, - $errors = array() - ) { - if (version_compare(PHP_VERSION, '5.3.0') >= 0) { - parent::__construct($message, $code, $previous); - } else { - parent::__construct($message, $code); - } + /** + * Override default constructor to add the ability to set $errors and a retry + * map. + * + * @param string $message + * @param int $code + * @param \Exception|null $previous + * @param [{string, string}] errors List of errors returned in an HTTP + * response. Defaults to []. + */ + public function __construct( + $message, + $code = 0, + Exception $previous = null, + $errors = array() + ) { + if (version_compare(PHP_VERSION, '5.3.0') >= 0) { + parent::__construct($message, $code, $previous); + } else { + parent::__construct($message, $code); + } - $this->errors = $errors; - } + $this->errors = $errors; + } - /** - * An example of the possible errors returned. - * - * { - * "domain": "global", - * "reason": "authError", - * "message": "Invalid Credentials", - * "locationType": "header", - * "location": "Authorization", - * } - * - * @return [{string, string}] List of errors return in an HTTP response or []. - */ - public function getErrors() - { - return $this->errors; - } + /** + * An example of the possible errors returned. + * + * { + * "domain": "global", + * "reason": "authError", + * "message": "Invalid Credentials", + * "locationType": "header", + * "location": "Authorization", + * } + * + * @return [{string, string}] List of errors return in an HTTP response or []. + */ + public function getErrors() + { + return $this->errors; + } } diff --git a/src/Service/Resource.php b/src/Service/Resource.php index 09ebaa089..c255a2f5a 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -31,278 +31,276 @@ */ class Resource { - // Valid query parameters that work, but don't appear in discovery. - private $stackParameters = array( - 'alt' => array('type' => 'string', 'location' => 'query'), - 'fields' => array('type' => 'string', 'location' => 'query'), - 'trace' => array('type' => 'string', 'location' => 'query'), - 'userIp' => array('type' => 'string', 'location' => 'query'), - 'quotaUser' => array('type' => 'string', 'location' => 'query'), - 'data' => array('type' => 'string', 'location' => 'body'), - 'mimeType' => array('type' => 'string', 'location' => 'header'), - 'uploadType' => array('type' => 'string', 'location' => 'query'), - 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), - 'prettyPrint' => array('type' => 'string', 'location' => 'query'), - ); - - /** @var string $rootUrl */ - private $rootUrl; - - /** @var \Google\Client $client */ - private $client; - - /** @var string $serviceName */ - private $serviceName; - - /** @var string $servicePath */ - private $servicePath; - - /** @var string $resourceName */ - private $resourceName; - - /** @var array $methods */ - private $methods; - - public function __construct($service, $serviceName, $resourceName, $resource) - { - $this->rootUrl = $service->rootUrl; - $this->client = $service->getClient(); - $this->servicePath = $service->servicePath; - $this->serviceName = $serviceName; - $this->resourceName = $resourceName; - $this->methods = is_array($resource) && isset($resource['methods']) ? + // Valid query parameters that work, but don't appear in discovery. + private $stackParameters = array( + 'alt' => array('type' => 'string', 'location' => 'query'), + 'fields' => array('type' => 'string', 'location' => 'query'), + 'trace' => array('type' => 'string', 'location' => 'query'), + 'userIp' => array('type' => 'string', 'location' => 'query'), + 'quotaUser' => array('type' => 'string', 'location' => 'query'), + 'data' => array('type' => 'string', 'location' => 'body'), + 'mimeType' => array('type' => 'string', 'location' => 'header'), + 'uploadType' => array('type' => 'string', 'location' => 'query'), + 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), + 'prettyPrint' => array('type' => 'string', 'location' => 'query'), + ); + + /** @var string $rootUrl */ + private $rootUrl; + + /** @var \Google\Client $client */ + private $client; + + /** @var string $serviceName */ + private $serviceName; + + /** @var string $servicePath */ + private $servicePath; + + /** @var string $resourceName */ + private $resourceName; + + /** @var array $methods */ + private $methods; + + public function __construct($service, $serviceName, $resourceName, $resource) + { + $this->rootUrl = $service->rootUrl; + $this->client = $service->getClient(); + $this->servicePath = $service->servicePath; + $this->serviceName = $serviceName; + $this->resourceName = $resourceName; + $this->methods = is_array($resource) && isset($resource['methods']) ? $resource['methods'] : array($resourceName => $resource); - } - - /** - * TODO: This function needs simplifying. - * @param $name - * @param $arguments - * @param $expectedClass - optional, the expected class name - * @return mixed|$expectedClass|ResponseInterface|RequestInterface - * @throws \Google\Exception - */ - public function call($name, $arguments, $expectedClass = null) - { - if (! isset($this->methods[$name])) { - $this->client->getLogger()->error( - 'Service method unknown', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name - ) - ); - - throw new GoogleException( - "Unknown function: " . - "{$this->serviceName}->{$this->resourceName}->{$name}()" - ); - } - $method = $this->methods[$name]; - $parameters = $arguments[0]; - - // postBody is a special case since it's not defined in the discovery - // document as parameter, but we abuse the param entry for storing it. - $postBody = null; - if (isset($parameters['postBody'])) { - if ($parameters['postBody'] instanceof Model) { - // In the cases the post body is an existing object, we want - // to use the smart method to create a simple object for - // for JSONification. - $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); - } else if (is_object($parameters['postBody'])) { - // If the post body is another kind of object, we will try and - // wrangle it into a sensible format. - $parameters['postBody'] = - $this->convertToArrayAndStripNulls($parameters['postBody']); - } - $postBody = (array) $parameters['postBody']; - unset($parameters['postBody']); } - // TODO: optParams here probably should have been - // handled already - this may well be redundant code. - if (isset($parameters['optParams'])) { - $optParams = $parameters['optParams']; - unset($parameters['optParams']); - $parameters = array_merge($parameters, $optParams); - } + /** + * TODO: This function needs simplifying. + * @param $name + * @param $arguments + * @param $expectedClass - optional, the expected class name + * @return mixed|$expectedClass|ResponseInterface|RequestInterface + * @throws \Google\Exception + */ + public function call($name, $arguments, $expectedClass = null) + { + if (! isset($this->methods[$name])) { + $this->client->getLogger()->error( + 'Service method unknown', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name + ) + ); + + throw new GoogleException( + "Unknown function: " . + "{$this->serviceName}->{$this->resourceName}->{$name}()" + ); + } + $method = $this->methods[$name]; + $parameters = $arguments[0]; + + // postBody is a special case since it's not defined in the discovery + // document as parameter, but we abuse the param entry for storing it. + $postBody = null; + if (isset($parameters['postBody'])) { + if ($parameters['postBody'] instanceof Model) { + // In the cases the post body is an existing object, we want + // to use the smart method to create a simple object for + // for JSONification. + $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); + } else if (is_object($parameters['postBody'])) { + // If the post body is another kind of object, we will try and + // wrangle it into a sensible format. + $parameters['postBody'] = + $this->convertToArrayAndStripNulls($parameters['postBody']); + } + $postBody = (array) $parameters['postBody']; + unset($parameters['postBody']); + } - if (!isset($method['parameters'])) { - $method['parameters'] = array(); - } + // TODO: optParams here probably should have been + // handled already - this may well be redundant code. + if (isset($parameters['optParams'])) { + $optParams = $parameters['optParams']; + unset($parameters['optParams']); + $parameters = array_merge($parameters, $optParams); + } - $method['parameters'] = array_merge( - $this->stackParameters, - $method['parameters'] - ); + if (!isset($method['parameters'])) { + $method['parameters'] = array(); + } - foreach ($parameters as $key => $val) { - if ($key != 'postBody' && ! isset($method['parameters'][$key])) { - $this->client->getLogger()->error( - 'Service parameter unknown', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name, - 'parameter' => $key - ) + $method['parameters'] = array_merge( + $this->stackParameters, + $method['parameters'] ); - throw new GoogleException("($name) unknown parameter: '$key'"); - } - } - foreach ($method['parameters'] as $paramName => $paramSpec) { - if (isset($paramSpec['required']) && - $paramSpec['required'] && - ! isset($parameters[$paramName]) - ) { - $this->client->getLogger()->error( - 'Service parameter missing', + foreach ($parameters as $key => $val) { + if ($key != 'postBody' && !isset($method['parameters'][$key])) { + $this->client->getLogger()->error( + 'Service parameter unknown', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name, + 'parameter' => $key + ) + ); + throw new GoogleException("($name) unknown parameter: '$key'"); + } + } + + foreach ($method['parameters'] as $paramName => $paramSpec) { + if ( + isset($paramSpec['required']) && + $paramSpec['required'] && + ! isset($parameters[$paramName]) + ) { + $this->client->getLogger()->error( + 'Service parameter missing', + array( + 'service' => $this->serviceName, + 'resource' => $this->resourceName, + 'method' => $name, + 'parameter' => $paramName + ) + ); + throw new GoogleException("($name) missing required param: '$paramName'"); + } + if (isset($parameters[$paramName])) { + $value = $parameters[$paramName]; + $parameters[$paramName] = $paramSpec; + $parameters[$paramName]['value'] = $value; + unset($parameters[$paramName]['required']); + } else { + // Ensure we don't pass nulls. + unset($parameters[$paramName]); + } + } + + $this->client->getLogger()->info( + 'Service Call', array( 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, - 'parameter' => $paramName + 'arguments' => $parameters, ) ); - throw new GoogleException("($name) missing required param: '$paramName'"); - } - if (isset($parameters[$paramName])) { - $value = $parameters[$paramName]; - $parameters[$paramName] = $paramSpec; - $parameters[$paramName]['value'] = $value; - unset($parameters[$paramName]['required']); - } else { - // Ensure we don't pass nulls. - unset($parameters[$paramName]); - } - } - - $this->client->getLogger()->info( - 'Service Call', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name, - 'arguments' => $parameters, - ) - ); - // build the service uri - $url = $this->createRequestUri( - $method['path'], - $parameters - ); + // build the service uri + $url = $this->createRequestUri($method['path'], $parameters); + + // NOTE: because we're creating the request by hand, + // and because the service has a rootUrl property + // the "base_uri" of the Http Client is not accounted for + $request = new Request( + $method['httpMethod'], + $url, + ['content-type' => 'application/json'], + $postBody ? json_encode($postBody) : '' + ); - // NOTE: because we're creating the request by hand, - // and because the service has a rootUrl property - // the "base_uri" of the Http Client is not accounted for - $request = new Request( - $method['httpMethod'], - $url, - ['content-type' => 'application/json'], - $postBody ? json_encode($postBody) : '' - ); + // support uploads + if (isset($parameters['data'])) { + $mimeType = isset($parameters['mimeType']) + ? $parameters['mimeType']['value'] + : 'application/octet-stream'; + $data = $parameters['data']['value']; + $upload = new MediaFileUpload($this->client, $request, $mimeType, $data); - // support uploads - if (isset($parameters['data'])) { - $mimeType = isset($parameters['mimeType']) - ? $parameters['mimeType']['value'] - : 'application/octet-stream'; - $data = $parameters['data']['value']; - $upload = new MediaFileUpload($this->client, $request, $mimeType, $data); + // pull down the modified request + $request = $upload->getRequest(); + } - // pull down the modified request - $request = $upload->getRequest(); - } + // if this is a media type, we will return the raw response + // rather than using an expected class + if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { + $expectedClass = null; + } - // if this is a media type, we will return the raw response - // rather than using an expected class - if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { - $expectedClass = null; - } + // if the client is marked for deferring, rather than + // execute the request, return the response + if ($this->client->shouldDefer()) { + // @TODO find a better way to do this + $request = $request + ->withHeader('X-Php-Expected-Class', $expectedClass); - // if the client is marked for deferring, rather than - // execute the request, return the response - if ($this->client->shouldDefer()) { - // @TODO find a better way to do this - $request = $request - ->withHeader('X-Php-Expected-Class', $expectedClass); + return $request; + } - return $request; + return $this->client->execute($request, $expectedClass); } - return $this->client->execute($request, $expectedClass); - } - - protected function convertToArrayAndStripNulls($o) - { - $o = (array) $o; - foreach ($o as $k => $v) { - if ($v === null) { - unset($o[$k]); - } elseif (is_object($v) || is_array($v)) { - $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); - } - } - return $o; - } - - /** - * Parse/expand request parameters and create a fully qualified - * request uri. - * @static - * @param string $restPath - * @param array $params - * @return string $requestUrl - */ - public function createRequestUri($restPath, $params) - { - // Override the default servicePath address if the $restPath use a / - if ('/' == substr($restPath, 0, 1)) { - $requestUrl = substr($restPath, 1); - } else { - $requestUrl = $this->servicePath . $restPath; + protected function convertToArrayAndStripNulls($o) + { + $o = (array) $o; + foreach ($o as $k => $v) { + if ($v === null) { + unset($o[$k]); + } elseif (is_object($v) || is_array($v)) { + $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); + } + } + return $o; } - // code for leading slash - if ($this->rootUrl) { - if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { - $requestUrl = '/' . $requestUrl; - } - $requestUrl = $this->rootUrl . $requestUrl; - } - $uriTemplateVars = array(); - $queryVars = array(); - foreach ($params as $paramName => $paramSpec) { - if ($paramSpec['type'] == 'boolean') { - $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; - } - if ($paramSpec['location'] == 'path') { - $uriTemplateVars[$paramName] = $paramSpec['value']; - } else if ($paramSpec['location'] == 'query') { - if (is_array($paramSpec['value'])) { - foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); - } + /** + * Parse/expand request parameters and create a fully qualified + * request uri. + * @static + * @param string $restPath + * @param array $params + * @return string $requestUrl + */ + public function createRequestUri($restPath, $params) + { + // Override the default servicePath address if the $restPath use a / + if ('/' == substr($restPath, 0, 1)) { + $requestUrl = substr($restPath, 1); } else { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); + $requestUrl = $this->servicePath . $restPath; } - } - } - if (count($uriTemplateVars)) { - $uriTemplateParser = new UriTemplate(); - $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); - } + // code for leading slash + if ($this->rootUrl) { + if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { + $requestUrl = '/' . $requestUrl; + } + $requestUrl = $this->rootUrl . $requestUrl; + } + $uriTemplateVars = array(); + $queryVars = array(); + foreach ($params as $paramName => $paramSpec) { + if ($paramSpec['type'] == 'boolean') { + $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; + } + if ($paramSpec['location'] == 'path') { + $uriTemplateVars[$paramName] = $paramSpec['value']; + } else if ($paramSpec['location'] == 'query') { + if (is_array($paramSpec['value'])) { + foreach ($paramSpec['value'] as $value) { + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); + } + } else { + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); + } + } + } - if (count($queryVars)) { - $requestUrl .= '?' . implode('&', $queryVars); - } + if (count($uriTemplateVars)) { + $uriTemplateParser = new UriTemplate(); + $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); + } - return $requestUrl; - } + if (count($queryVars)) { + $requestUrl .= '?' . implode('&', $queryVars); + } + + return $requestUrl; + } } diff --git a/src/Task/Composer.php b/src/Task/Composer.php index 892573b9c..1c3a1b5ee 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -24,92 +24,90 @@ class Composer { - /** - * @param Event $event Composer event passed in for any script method - * @param Filesystem $filesystem Optional. Used for testing. - */ - public static function cleanup( - Event $event, - Filesystem $filesystem = null - ) { - $composer = $event->getComposer(); - $extra = $composer->getPackage()->getExtra(); - $servicesToKeep = isset($extra['google/apiclient-services']) ? - $extra['google/apiclient-services'] : []; - if ($servicesToKeep) { - $vendorDir = $composer->getConfig()->get('vendor-dir'); - $serviceDir = sprintf( - '%s/google/apiclient-services/src/Google/Service', - $vendorDir - ); - if (!is_dir($serviceDir)) { - // path for google/apiclient-services >= 0.200.0 - $serviceDir = sprintf( - '%s/google/apiclient-services/src', - $vendorDir - ); - } - self::verifyServicesToKeep($serviceDir, $servicesToKeep); - $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); - $filesystem = $filesystem ?: new Filesystem(); - if (0 !== $count = count($finder)) { - $event->getIO()->write( - sprintf( - 'Removing %s google services', - $count - ) - ); - foreach ($finder as $file) { - $realpath = $file->getRealPath(); - $filesystem->remove($realpath); - $filesystem->remove($realpath . '.php'); + /** + * @param Event $event Composer event passed in for any script method + * @param Filesystem $filesystem Optional. Used for testing. + */ + public static function cleanup( + Event $event, + Filesystem $filesystem = null + ) { + $composer = $event->getComposer(); + $extra = $composer->getPackage()->getExtra(); + $servicesToKeep = isset($extra['google/apiclient-services']) + ? $extra['google/apiclient-services'] + : []; + if ($servicesToKeep) { + $vendorDir = $composer->getConfig()->get('vendor-dir'); + $serviceDir = sprintf( + '%s/google/apiclient-services/src/Google/Service', + $vendorDir + ); + if (!is_dir($serviceDir)) { + // path for google/apiclient-services >= 0.200.0 + $serviceDir = sprintf( + '%s/google/apiclient-services/src', + $vendorDir + ); + } + self::verifyServicesToKeep($serviceDir, $servicesToKeep); + $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); + $filesystem = $filesystem ?: new Filesystem(); + if (0 !== $count = count($finder)) { + $event->getIO()->write( + sprintf('Removing %s google services', $count) + ); + foreach ($finder as $file) { + $realpath = $file->getRealPath(); + $filesystem->remove($realpath); + $filesystem->remove($realpath . '.php'); + } + } } - } } - } - /** - * @throws InvalidArgumentException when the service doesn't exist - */ - private static function verifyServicesToKeep( - $serviceDir, - array $servicesToKeep - ) { - $finder = (new Finder()) - ->directories() - ->depth('== 0'); + /** + * @throws InvalidArgumentException when the service doesn't exist + */ + private static function verifyServicesToKeep( + $serviceDir, + array $servicesToKeep + ) { + $finder = (new Finder()) + ->directories() + ->depth('== 0'); - foreach ($servicesToKeep as $service) { - if (!preg_match('/^[a-zA-Z0-9]*$/', $service)) { - throw new InvalidArgumentException( - sprintf( - 'Invalid Google service name "%s"', - $service - ) - ); - } - try { - $finder->in($serviceDir . '/' . $service); - } catch (InvalidArgumentException $e) { - throw new InvalidArgumentException( - sprintf( - 'Google service "%s" does not exist or was removed previously', - $service - ) - ); - } + foreach ($servicesToKeep as $service) { + if (!preg_match('/^[a-zA-Z0-9]*$/', $service)) { + throw new InvalidArgumentException( + sprintf( + 'Invalid Google service name "%s"', + $service + ) + ); + } + try { + $finder->in($serviceDir . '/' . $service); + } catch (InvalidArgumentException $e) { + throw new InvalidArgumentException( + sprintf( + 'Google service "%s" does not exist or was removed previously', + $service + ) + ); + } + } } - } - private static function getServicesToRemove( - $serviceDir, - array $servicesToKeep - ) { - // find all files in the current directory - return (new Finder()) - ->directories() - ->depth('== 0') - ->in($serviceDir) - ->exclude($servicesToKeep); - } + private static function getServicesToRemove( + $serviceDir, + array $servicesToKeep + ) { + // find all files in the current directory + return (new Finder()) + ->directories() + ->depth('== 0') + ->in($serviceDir) + ->exclude($servicesToKeep); + } } diff --git a/src/Task/Runner.php b/src/Task/Runner.php index c081dc591..becc78b08 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -27,261 +27,266 @@ */ class Runner { - const TASK_RETRY_NEVER = 0; - const TASK_RETRY_ONCE = 1; - const TASK_RETRY_ALWAYS = -1; - - /** - * @var integer $maxDelay The max time (in seconds) to wait before a retry. - */ - private $maxDelay = 60; - /** - * @var integer $delay The previous delay from which the next is calculated. - */ - private $delay = 1; - - /** - * @var integer $factor The base number for the exponential back off. - */ - private $factor = 2; - /** - * @var float $jitter A random number between -$jitter and $jitter will be - * added to $factor on each iteration to allow for a better distribution of - * retries. - */ - private $jitter = 0.5; - - /** - * @var integer $attempts The number of attempts that have been tried so far. - */ - private $attempts = 0; - /** - * @var integer $maxAttempts The max number of attempts allowed. - */ - private $maxAttempts = 1; - - /** - * @var callable $action The task to run and possibly retry. - */ - private $action; - /** - * @var array $arguments The task arguments. - */ - private $arguments; - - /** - * @var array $retryMap Map of errors with retry counts. - */ - protected $retryMap = [ - '500' => self::TASK_RETRY_ALWAYS, - '503' => self::TASK_RETRY_ALWAYS, - 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST - 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT - 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED - 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR - 52 => self::TASK_RETRY_ALWAYS, // CURLE_GOT_NOTHING - 'lighthouseError' => self::TASK_RETRY_NEVER - ]; - - /** - * Creates a new task runner with exponential backoff support. - * - * @param array $config The task runner config - * @param string $name The name of the current task (used for logging) - * @param callable $action The task to run and possibly retry - * @param array $arguments The task arguments - * @throws \Google\Task\Exception when misconfigured - */ - public function __construct( - $config, - $name, - $action, - array $arguments = array() - ) { - if (isset($config['initial_delay'])) { - if ($config['initial_delay'] < 0) { - throw new GoogleTaskException( - 'Task configuration `initial_delay` must not be negative.' - ); - } - - $this->delay = $config['initial_delay']; - } + const TASK_RETRY_NEVER = 0; + const TASK_RETRY_ONCE = 1; + const TASK_RETRY_ALWAYS = -1; + + /** + * @var integer $maxDelay The max time (in seconds) to wait before a retry. + */ + private $maxDelay = 60; + + /** + * @var integer $delay The previous delay from which the next is calculated. + */ + private $delay = 1; + + /** + * @var integer $factor The base number for the exponential back off. + */ + private $factor = 2; + + /** + * @var float $jitter A random number between -$jitter and $jitter will be + * added to $factor on each iteration to allow for a better distribution of + * retries. + */ + private $jitter = 0.5; + + /** + * @var integer $attempts The number of attempts that have been tried so far. + */ + private $attempts = 0; + + /** + * @var integer $maxAttempts The max number of attempts allowed. + */ + private $maxAttempts = 1; + + /** + * @var callable $action The task to run and possibly retry. + */ + private $action; + + /** + * @var array $arguments The task arguments. + */ + private $arguments; + + /** + * @var array $retryMap Map of errors with retry counts. + */ + protected $retryMap = [ + '500' => self::TASK_RETRY_ALWAYS, + '503' => self::TASK_RETRY_ALWAYS, + 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST + 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT + 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED + 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR + 52 => self::TASK_RETRY_ALWAYS, // CURLE_GOT_NOTHING + 'lighthouseError' => self::TASK_RETRY_NEVER + ]; + + /** + * Creates a new task runner with exponential backoff support. + * + * @param array $config The task runner config + * @param string $name The name of the current task (used for logging) + * @param callable $action The task to run and possibly retry + * @param array $arguments The task arguments + * @throws \Google\Task\Exception when misconfigured + */ + public function __construct( + $config, + $name, + $action, + array $arguments = array() + ) { + if (isset($config['initial_delay'])) { + if ($config['initial_delay'] < 0) { + throw new GoogleTaskException( + 'Task configuration `initial_delay` must not be negative.' + ); + } + + $this->delay = $config['initial_delay']; + } - if (isset($config['max_delay'])) { - if ($config['max_delay'] <= 0) { - throw new GoogleTaskException( - 'Task configuration `max_delay` must be greater than 0.' - ); - } + if (isset($config['max_delay'])) { + if ($config['max_delay'] <= 0) { + throw new GoogleTaskException( + 'Task configuration `max_delay` must be greater than 0.' + ); + } - $this->maxDelay = $config['max_delay']; - } + $this->maxDelay = $config['max_delay']; + } - if (isset($config['factor'])) { - if ($config['factor'] <= 0) { - throw new GoogleTaskException( - 'Task configuration `factor` must be greater than 0.' - ); - } + if (isset($config['factor'])) { + if ($config['factor'] <= 0) { + throw new GoogleTaskException( + 'Task configuration `factor` must be greater than 0.' + ); + } - $this->factor = $config['factor']; - } + $this->factor = $config['factor']; + } - if (isset($config['jitter'])) { - if ($config['jitter'] <= 0) { - throw new GoogleTaskException( - 'Task configuration `jitter` must be greater than 0.' - ); - } + if (isset($config['jitter'])) { + if ($config['jitter'] <= 0) { + throw new GoogleTaskException( + 'Task configuration `jitter` must be greater than 0.' + ); + } + + $this->jitter = $config['jitter']; + } + + if (isset($config['retries'])) { + if ($config['retries'] < 0) { + throw new GoogleTaskException( + 'Task configuration `retries` must not be negative.' + ); + } + $this->maxAttempts += $config['retries']; + } + + if (!is_callable($action)) { + throw new GoogleTaskException( + 'Task argument `$action` must be a valid callable.' + ); + } - $this->jitter = $config['jitter']; + $this->action = $action; + $this->arguments = $arguments; } - if (isset($config['retries'])) { - if ($config['retries'] < 0) { - throw new GoogleTaskException( - 'Task configuration `retries` must not be negative.' - ); - } - $this->maxAttempts += $config['retries']; + /** + * Checks if a retry can be attempted. + * + * @return boolean + */ + public function canAttempt() + { + return $this->attempts < $this->maxAttempts; } - if (!is_callable($action)) { - throw new GoogleTaskException( - 'Task argument `$action` must be a valid callable.' - ); + /** + * Runs the task and (if applicable) automatically retries when errors occur. + * + * @return mixed + * @throws \Google\Service\Exception on failure when no retries are available. + */ + public function run() + { + while ($this->attempt()) { + try { + return call_user_func_array($this->action, $this->arguments); + } catch (GoogleServiceException $exception) { + $allowedRetries = $this->allowedRetries( + $exception->getCode(), + $exception->getErrors() + ); + + if (!$this->canAttempt() || !$allowedRetries) { + throw $exception; + } + + if ($allowedRetries > 0) { + $this->maxAttempts = min( + $this->maxAttempts, + $this->attempts + $allowedRetries + ); + } + } + } } - $this->action = $action; - $this->arguments = $arguments; - } - - /** - * Checks if a retry can be attempted. - * - * @return boolean - */ - public function canAttempt() - { - return $this->attempts < $this->maxAttempts; - } - - /** - * Runs the task and (if applicable) automatically retries when errors occur. - * - * @return mixed - * @throws \Google\Service\Exception on failure when no retries are available. - */ - public function run() - { - while ($this->attempt()) { - try { - return call_user_func_array($this->action, $this->arguments); - } catch (GoogleServiceException $exception) { - $allowedRetries = $this->allowedRetries( - $exception->getCode(), - $exception->getErrors() - ); - - if (!$this->canAttempt() || !$allowedRetries) { - throw $exception; + /** + * Runs a task once, if possible. This is useful for bypassing the `run()` + * loop. + * + * NOTE: If this is not the first attempt, this function will sleep in + * accordance to the backoff configurations before running the task. + * + * @return boolean + */ + public function attempt() + { + if (!$this->canAttempt()) { + return false; } - if ($allowedRetries > 0) { - $this->maxAttempts = min( - $this->maxAttempts, - $this->attempts + $allowedRetries - ); + if ($this->attempts > 0) { + $this->backOff(); } - } - } - } - - /** - * Runs a task once, if possible. This is useful for bypassing the `run()` - * loop. - * - * NOTE: If this is not the first attempt, this function will sleep in - * accordance to the backoff configurations before running the task. - * - * @return boolean - */ - public function attempt() - { - if (!$this->canAttempt()) { - return false; + + $this->attempts++; + + return true; } - if ($this->attempts > 0) { - $this->backOff(); + /** + * Sleeps in accordance to the backoff configurations. + */ + private function backOff() + { + $delay = $this->getDelay(); + + usleep($delay * 1000000); } - $this->attempts++; - return true; - } - - /** - * Sleeps in accordance to the backoff configurations. - */ - private function backOff() - { - $delay = $this->getDelay(); - - usleep($delay * 1000000); - } - - /** - * Gets the delay (in seconds) for the current backoff period. - * - * @return float - */ - private function getDelay() - { - $jitter = $this->getJitter(); - $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter); - - return $this->delay = min($this->maxDelay, $this->delay * $factor); - } - - /** - * Gets the current jitter (random number between -$this->jitter and - * $this->jitter). - * - * @return float - */ - private function getJitter() - { - return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; - } - - /** - * Gets the number of times the associated task can be retried. - * - * NOTE: -1 is returned if the task can be retried indefinitely - * - * @return integer - */ - public function allowedRetries($code, $errors = array()) - { - if (isset($this->retryMap[$code])) { - return $this->retryMap[$code]; + /** + * Gets the delay (in seconds) for the current backoff period. + * + * @return float + */ + private function getDelay() + { + $jitter = $this->getJitter(); + $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter); + + return $this->delay = min($this->maxDelay, $this->delay * $factor); } - if ( - !empty($errors) && - isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']]) - ) { - return $this->retryMap[$errors[0]['reason']]; + /** + * Gets the current jitter (random number between -$this->jitter and + * $this->jitter). + * + * @return float + */ + private function getJitter() + { + return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; } - return 0; - } + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries($code, $errors = array()) + { + if (isset($this->retryMap[$code])) { + return $this->retryMap[$code]; + } + + if ( + !empty($errors) && + isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']]) + ) { + return $this->retryMap[$errors[0]['reason']]; + } - public function setRetryMap($retryMap) - { - $this->retryMap = $retryMap; - } + return 0; + } + + public function setRetryMap($retryMap) + { + $this->retryMap = $retryMap; + } } diff --git a/src/Utils/UriTemplate.php b/src/Utils/UriTemplate.php index 1f0c6b31d..c74814d25 100644 --- a/src/Utils/UriTemplate.php +++ b/src/Utils/UriTemplate.php @@ -23,17 +23,17 @@ */ class UriTemplate { - const TYPE_MAP = "1"; - const TYPE_LIST = "2"; - const TYPE_SCALAR = "4"; + const TYPE_MAP = "1"; + const TYPE_LIST = "2"; + const TYPE_SCALAR = "4"; - /** - * @var $operators array - * These are valid at the start of a template block to - * modify the way in which the variables inside are - * processed. - */ - private $operators = array( + /** + * @var $operators array + * These are valid at the start of a template block to + * modify the way in which the variables inside are + * processed. + */ + private $operators = array( "+" => "reserved", "/" => "segments", "." => "dotprefix", @@ -41,295 +41,295 @@ class UriTemplate ";" => "semicolon", "?" => "form", "&" => "continuation" - ); + ); - /** - * @var reserved array - * These are the characters which should not be URL encoded in reserved - * strings. - */ - private $reserved = array( + /** + * @var reserved array + * These are the characters which should not be URL encoded in reserved + * strings. + */ + private $reserved = array( "=", ",", "!", "@", "|", ":", "/", "?", "#", "[", "]",'$', "&", "'", "(", ")", "*", "+", ";" - ); - private $reservedEncoded = array( + ); + private $reservedEncoded = array( "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", "%2A", "%2B", "%3B" - ); + ); - public function parse($string, array $parameters) - { - return $this->resolveNextSection($string, $parameters); - } - - /** - * This function finds the first matching {...} block and - * executes the replacement. It then calls itself to find - * subsequent blocks, if any. - */ - private function resolveNextSection($string, $parameters) - { - $start = strpos($string, "{"); - if ($start === false) { - return $string; + public function parse($string, array $parameters) + { + return $this->resolveNextSection($string, $parameters); } - $end = strpos($string, "}"); - if ($end === false) { - return $string; + + /** + * This function finds the first matching {...} block and + * executes the replacement. It then calls itself to find + * subsequent blocks, if any. + */ + private function resolveNextSection($string, $parameters) + { + $start = strpos($string, "{"); + if ($start === false) { + return $string; + } + $end = strpos($string, "}"); + if ($end === false) { + return $string; + } + $string = $this->replace($string, $start, $end, $parameters); + return $this->resolveNextSection($string, $parameters); } - $string = $this->replace($string, $start, $end, $parameters); - return $this->resolveNextSection($string, $parameters); - } - private function replace($string, $start, $end, $parameters) - { - // We know a data block will have {} round it, so we can strip that. - $data = substr($string, $start + 1, $end - $start - 1); + private function replace($string, $start, $end, $parameters) + { + // We know a data block will have {} round it, so we can strip that. + $data = substr($string, $start + 1, $end - $start - 1); - // If the first character is one of the reserved operators, it effects - // the processing of the stream. - if (isset($this->operators[$data[0]])) { - $op = $this->operators[$data[0]]; - $data = substr($data, 1); - $prefix = ""; - $prefix_on_missing = false; + // If the first character is one of the reserved operators, it effects + // the processing of the stream. + if (isset($this->operators[$data[0]])) { + $op = $this->operators[$data[0]]; + $data = substr($data, 1); + $prefix = ""; + $prefix_on_missing = false; - switch ($op) { - case "reserved": - // Reserved means certain characters should not be URL encoded - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "fragment": - // Comma separated with fragment prefix. Bare values only. - $prefix = "#"; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "segments": - // Slash separated data. Bare values only. - $prefix = "/"; - $data =$this->replaceVars($data, $parameters, "/"); - break; - case "dotprefix": - // Dot separated data. Bare values only. - $prefix = "."; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, "."); - break; - case "semicolon": - // Semicolon prefixed and separated. Uses the key name - $prefix = ";"; - $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false); - break; - case "form": - // Standard URL format. Uses the key name - $prefix = "?"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - case "continuation": - // Standard URL, but with leading ampersand. Uses key name. - $prefix = "&"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - } + switch ($op) { + case "reserved": + // Reserved means certain characters should not be URL encoded + $data = $this->replaceVars($data, $parameters, ",", null, true); + break; + case "fragment": + // Comma separated with fragment prefix. Bare values only. + $prefix = "#"; + $prefix_on_missing = true; + $data = $this->replaceVars($data, $parameters, ",", null, true); + break; + case "segments": + // Slash separated data. Bare values only. + $prefix = "/"; + $data =$this->replaceVars($data, $parameters, "/"); + break; + case "dotprefix": + // Dot separated data. Bare values only. + $prefix = "."; + $prefix_on_missing = true; + $data = $this->replaceVars($data, $parameters, "."); + break; + case "semicolon": + // Semicolon prefixed and separated. Uses the key name + $prefix = ";"; + $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false); + break; + case "form": + // Standard URL format. Uses the key name + $prefix = "?"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; + case "continuation": + // Standard URL, but with leading ampersand. Uses key name. + $prefix = "&"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; + } - // Add the initial prefix character if data is valid. - if ($data || ($data !== false && $prefix_on_missing)) { - $data = $prefix . $data; - } + // Add the initial prefix character if data is valid. + if ($data || ($data !== false && $prefix_on_missing)) { + $data = $prefix . $data; + } - } else { - // If no operator we replace with the defaults. - $data = $this->replaceVars($data, $parameters); + } else { + // If no operator we replace with the defaults. + $data = $this->replaceVars($data, $parameters); + } + // This is chops out the {...} and replaces with the new section. + return substr($string, 0, $start) . $data . substr($string, $end + 1); } - // This is chops out the {...} and replaces with the new section. - return substr($string, 0, $start) . $data . substr($string, $end + 1); - } - private function replaceVars( - $section, - $parameters, - $sep = ",", - $combine = null, - $reserved = false, - $tag_empty = false, - $combine_on_empty = true - ) { - if (strpos($section, ",") === false) { - // If we only have a single value, we can immediately process. - return $this->combine( - $section, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - } else { - // If we have multiple values, we need to split and loop over them. - // Each is treated individually, then glued together with the - // separator character. - $vars = explode(",", $section); - return $this->combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - false, // Never emit empty strings in multi-param replacements - $combine_on_empty - ); + private function replaceVars( + $section, + $parameters, + $sep = ",", + $combine = null, + $reserved = false, + $tag_empty = false, + $combine_on_empty = true + ) { + if (strpos($section, ",") === false) { + // If we only have a single value, we can immediately process. + return $this->combine( + $section, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ); + } else { + // If we have multiple values, we need to split and loop over them. + // Each is treated individually, then glued together with the + // separator character. + $vars = explode(",", $section); + return $this->combineList( + $vars, + $sep, + $parameters, + $combine, + $reserved, + false, // Never emit empty strings in multi-param replacements + $combine_on_empty + ); + } } - } - public function combine( - $key, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $length = false; - $explode = false; - $skip_final_combine = false; - $value = false; + public function combine( + $key, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ) { + $length = false; + $explode = false; + $skip_final_combine = false; + $value = false; - // Check for length restriction. - if (strpos($key, ":") !== false) { - list($key, $length) = explode(":", $key); - } + // Check for length restriction. + if (strpos($key, ":") !== false) { + list($key, $length) = explode(":", $key); + } - // Check for explode parameter. - if ($key[strlen($key) - 1] == "*") { - $explode = true; - $key = substr($key, 0, -1); - $skip_final_combine = true; - } + // Check for explode parameter. + if ($key[strlen($key) - 1] == "*") { + $explode = true; + $key = substr($key, 0, -1); + $skip_final_combine = true; + } - // Define the list separator. - $list_sep = $explode ? $sep : ","; + // Define the list separator. + $list_sep = $explode ? $sep : ","; - if (isset($parameters[$key])) { - $data_type = $this->getDataType($parameters[$key]); - switch ($data_type) { - case self::TYPE_SCALAR: - $value = $this->getValue($parameters[$key], $length); - break; - case self::TYPE_LIST: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($combine && $explode) { - $values[$pkey] = $key . $combine . $pvalue; - } else { - $values[$pkey] = $pvalue; - } - } - $value = implode($list_sep, $values); - if ($value == '') { - return ''; - } - break; - case self::TYPE_MAP: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($explode) { - $pkey = $this->getValue($pkey, $length); - $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. - } else { - $values[] = $pkey; - $values[] = $pvalue; + if (isset($parameters[$key])) { + $data_type = $this->getDataType($parameters[$key]); + switch ($data_type) { + case self::TYPE_SCALAR: + $value = $this->getValue($parameters[$key], $length); + break; + case self::TYPE_LIST: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($combine && $explode) { + $values[$pkey] = $key . $combine . $pvalue; + } else { + $values[$pkey] = $pvalue; + } + } + $value = implode($list_sep, $values); + if ($value == '') { + return ''; + } + break; + case self::TYPE_MAP: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($explode) { + $pkey = $this->getValue($pkey, $length); + $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. + } else { + $values[] = $pkey; + $values[] = $pvalue; + } + } + $value = implode($list_sep, $values); + if ($value == '') { + return false; + } + break; } - } - $value = implode($list_sep, $values); - if ($value == '') { + } else if ($tag_empty) { + // If we are just indicating empty values with their key name, return that. + return $key; + } else { + // Otherwise we can skip this variable due to not being defined. return false; - } - break; - } - } else if ($tag_empty) { - // If we are just indicating empty values with their key name, return that. - return $key; - } else { - // Otherwise we can skip this variable due to not being defined. - return false; - } + } - if ($reserved) { - $value = str_replace($this->reservedEncoded, $this->reserved, $value); - } + if ($reserved) { + $value = str_replace($this->reservedEncoded, $this->reserved, $value); + } - // If we do not need to include the key name, we just return the raw - // value. - if (!$combine || $skip_final_combine) { - return $value; - } + // If we do not need to include the key name, we just return the raw + // value. + if (!$combine || $skip_final_combine) { + return $value; + } - // Else we combine the key name: foo=bar, if value is not the empty string. - return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); - } + // Else we combine the key name: foo=bar, if value is not the empty string. + return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); + } - /** - * Return the type of a passed in value - */ - private function getDataType($data) - { - if (is_array($data)) { - reset($data); - if (key($data) !== 0) { - return self::TYPE_MAP; - } - return self::TYPE_LIST; + /** + * Return the type of a passed in value + */ + private function getDataType($data) + { + if (is_array($data)) { + reset($data); + if (key($data) !== 0) { + return self::TYPE_MAP; + } + return self::TYPE_LIST; + } + return self::TYPE_SCALAR; } - return self::TYPE_SCALAR; - } - /** - * Utility function that merges multiple combine calls - * for multi-key templates. - */ - private function combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $ret = array(); - foreach ($vars as $var) { - $response = $this->combine( - $var, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - if ($response === false) { - continue; - } - $ret[] = $response; + /** + * Utility function that merges multiple combine calls + * for multi-key templates. + */ + private function combineList( + $vars, + $sep, + $parameters, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ) { + $ret = array(); + foreach ($vars as $var) { + $response = $this->combine( + $var, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ); + if ($response === false) { + continue; + } + $ret[] = $response; + } + return implode($sep, $ret); } - return implode($sep, $ret); - } - /** - * Utility function to encode and trim values - */ - private function getValue($value, $length) - { - if ($length) { - $value = substr($value, 0, $length); + /** + * Utility function to encode and trim values + */ + private function getValue($value, $length) + { + if ($length) { + $value = substr($value, 0, $length); + } + $value = rawurlencode($value); + return $value; } - $value = rawurlencode($value); - return $value; - } } diff --git a/src/aliases.php b/src/aliases.php index 7bf883730..04154743c 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -42,24 +42,24 @@ class Google_Task_Composer extends \Google\Task\Composer } if (\false) { - class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke {} - class Google_AccessToken_Verify extends \Google\AccessToken\Verify {} - class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory {} - class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler {} - class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler {} - class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler {} - class Google_Client extends \Google\Client {} - class Google_Collection extends \Google\Collection {} - class Google_Exception extends \Google\Exception {} - class Google_Http_Batch extends \Google\Http\Batch {} - class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload {} - class Google_Http_REST extends \Google\Http\REST {} - class Google_Model extends \Google\Model {} - class Google_Service extends \Google\Service {} - class Google_Service_Exception extends \Google\Service\Exception {} - class Google_Service_Resource extends \Google\Service\Resource {} - class Google_Task_Exception extends \Google\Task\Exception {} - interface Google_Task_Retryable extends \Google\Task\Retryable {} - class Google_Task_Runner extends \Google\Task\Runner {} - class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate {} + class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke {} + class Google_AccessToken_Verify extends \Google\AccessToken\Verify {} + class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory {} + class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler {} + class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler {} + class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler {} + class Google_Client extends \Google\Client {} + class Google_Collection extends \Google\Collection {} + class Google_Exception extends \Google\Exception {} + class Google_Http_Batch extends \Google\Http\Batch {} + class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload {} + class Google_Http_REST extends \Google\Http\REST {} + class Google_Model extends \Google\Model {} + class Google_Service extends \Google\Service {} + class Google_Service_Exception extends \Google\Service\Exception {} + class Google_Service_Resource extends \Google\Service\Resource {} + class Google_Task_Exception extends \Google\Task\Exception {} + interface Google_Task_Retryable extends \Google\Task\Retryable {} + class Google_Task_Runner extends \Google\Task\Runner {} + class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate {} } diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 0eaa34aba..84457cb3b 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -27,268 +27,268 @@ use Yoast\PHPUnitPolyfills\TestCases\TestCase; if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { - trait BaseTestTrait + trait BaseTestTrait { - use \Prophecy\PhpUnit\ProphecyTrait; - } + use \Prophecy\PhpUnit\ProphecyTrait; + } } else { - trait BaseTestTrait + trait BaseTestTrait { - } + } } class BaseTest extends TestCase { - private $key; - private $client; - - use BaseTestTrait; - - public function getClient() - { - if (!$this->client) { - $this->client = $this->createClient(); - } + private $key; + private $client; - return $this->client; - } + use BaseTestTrait; - public function getCache($path = null) - { - $path = $path ?: sys_get_temp_dir().'/google-api-php-client-tests/'; - $filesystemAdapter = new Local($path); - $filesystem = new Filesystem($filesystemAdapter); - - return new FilesystemCachePool($filesystem); - } - - private function createClient() - { - $options = [ - 'auth' => 'google_auth', - 'exceptions' => false, - ]; + public function getClient() + { + if (!$this->client) { + $this->client = $this->createClient(); + } - if ($proxy = getenv('HTTP_PROXY')) { - $options['proxy'] = $proxy; - $options['verify'] = false; + return $this->client; } - // adjust constructor depending on guzzle version - if ($this->isGuzzle5()) { - $options = ['defaults' => $options]; + public function getCache($path = null) + { + $path = $path ?: sys_get_temp_dir().'/google-api-php-client-tests/'; + $filesystemAdapter = new Local($path); + $filesystem = new Filesystem($filesystemAdapter); + + return new FilesystemCachePool($filesystem); } - $httpClient = new GuzzleClient($options); - - $client = new Client(); - $client->setApplicationName('google-api-php-client-tests'); - $client->setHttpClient($httpClient); - $client->setScopes( - [ - "https://www.googleapis.com/auth/tasks", - "https://www.googleapis.com/auth/adsense", - "https://www.googleapis.com/auth/youtube", - "https://www.googleapis.com/auth/drive", - ] - ); - - if ($this->key) { - $client->setDeveloperKey($this->key); + private function createClient() + { + $options = [ + 'auth' => 'google_auth', + 'exceptions' => false, + ]; + + if ($proxy = getenv('HTTP_PROXY')) { + $options['proxy'] = $proxy; + $options['verify'] = false; + } + + // adjust constructor depending on guzzle version + if ($this->isGuzzle5()) { + $options = ['defaults' => $options]; + } + + $httpClient = new GuzzleClient($options); + + $client = new Client(); + $client->setApplicationName('google-api-php-client-tests'); + $client->setHttpClient($httpClient); + $client->setScopes( + [ + "https://www.googleapis.com/auth/tasks", + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/youtube", + "https://www.googleapis.com/auth/drive", + ] + ); + + if ($this->key) { + $client->setDeveloperKey($this->key); + } + + list($clientId, $clientSecret) = $this->getClientIdAndSecret(); + $client->setClientId($clientId); + $client->setClientSecret($clientSecret); + if (version_compare(PHP_VERSION, '5.5', '>=')) { + $client->setCache($this->getCache()); + } + + return $client; } - list($clientId, $clientSecret) = $this->getClientIdAndSecret(); - $client->setClientId($clientId); - $client->setClientSecret($clientSecret); - if (version_compare(PHP_VERSION, '5.5', '>=')) { - $client->setCache($this->getCache()); + public function checkToken() + { + $client = $this->getClient(); + $cache = $client->getCache(); + $cacheItem = $cache->getItem('access_token'); + + if (!$token = $cacheItem->get()) { + if (!$token = $this->tryToGetAnAccessToken($client)) { + return $this->markTestSkipped("Test requires access token"); + } + $cacheItem->set($token); + $cache->save($cacheItem); + } + + $client->setAccessToken($token); + + if ($client->isAccessTokenExpired()) { + // as long as we have client credentials, even if its expired + // our access token will automatically be refreshed + $this->checkClientCredentials(); + } + + return true; } - return $client; - } - - public function checkToken() - { - $client = $this->getClient(); - $cache = $client->getCache(); - $cacheItem = $cache->getItem('access_token'); - - if (!$token = $cacheItem->get()) { - if (!$token = $this->tryToGetAnAccessToken($client)) { - return $this->markTestSkipped("Test requires access token"); - } - $cacheItem->set($token); - $cache->save($cacheItem); + public function tryToGetAnAccessToken(Client $client) + { + $this->checkClientCredentials(); + + $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); + $client->setConfig('access_type', 'offline'); + $authUrl = $client->createAuthUrl(); + echo "\nGo to: $authUrl\n"; + echo "\nPlease enter the auth code:\n"; + ob_flush(); + `open '$authUrl'`; + $authCode = trim(fgets(STDIN)); + + if ($accessToken = $client->fetchAccessTokenWithAuthCode($authCode)) { + if (isset($accessToken['access_token'])) { + return $accessToken; + } + } + + return false; } - $client->setAccessToken($token); + private function getClientIdAndSecret() + { + $clientId = getenv('GOOGLE_CLIENT_ID') ?: null; + $clientSecret = getenv('GOOGLE_CLIENT_SECRET') ?: null; - if ($client->isAccessTokenExpired()) { - // as long as we have client credentials, even if its expired - // our access token will automatically be refreshed - $this->checkClientCredentials(); + return array($clientId, $clientSecret); } - return true; - } - - public function tryToGetAnAccessToken(Client $client) - { - $this->checkClientCredentials(); - - $client->setRedirectUri("urn:ietf:wg:oauth:2.0:oob"); - $client->setConfig('access_type', 'offline'); - $authUrl = $client->createAuthUrl(); - echo "\nGo to: $authUrl\n"; - echo "\nPlease enter the auth code:\n"; - ob_flush(); - `open '$authUrl'`; - $authCode = trim(fgets(STDIN)); - - if ($accessToken = $client->fetchAccessTokenWithAuthCode($authCode)) { - if (isset($accessToken['access_token'])) { - return $accessToken; - } + protected function checkClientCredentials() + { + list($clientId, $clientSecret) = $this->getClientIdAndSecret(); + if (!($clientId && $clientSecret)) { + $this->markTestSkipped("Test requires GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to be set"); + } } - return false; - } - - private function getClientIdAndSecret() - { - $clientId = getenv('GOOGLE_CLIENT_ID') ?: null; - $clientSecret = getenv('GOOGLE_CLIENT_SECRET') ?: null; - - return array($clientId, $clientSecret); - } + protected function checkServiceAccountCredentials() + { + if (!$f = getenv('GOOGLE_APPLICATION_CREDENTIALS')) { + $skip = "This test requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set\n" + . "see https://developers.google.com/accounts/docs/application-default-credentials"; + $this->markTestSkipped($skip); - protected function checkClientCredentials() - { - list($clientId, $clientSecret) = $this->getClientIdAndSecret(); - if (!($clientId && $clientSecret)) { - $this->markTestSkipped("Test requires GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to be set"); - } - } + return false; + } - protected function checkServiceAccountCredentials() - { - if (!$f = getenv('GOOGLE_APPLICATION_CREDENTIALS')) { - $skip = "This test requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set\n" - . "see https://developers.google.com/accounts/docs/application-default-credentials"; - $this->markTestSkipped($skip); + if (!file_exists($f)) { + $this->markTestSkipped('invalid path for GOOGLE_APPLICATION_CREDENTIALS'); + } - return false; + return true; } - if (!file_exists($f)) { - $this->markTestSkipped('invalid path for GOOGLE_APPLICATION_CREDENTIALS'); + protected function checkKey() + { + if (file_exists($apiKeyFile = __DIR__ . DIRECTORY_SEPARATOR . '.apiKey')) { + $apiKey = file_get_contents($apiKeyFile); + } elseif (!$apiKey = getenv('GOOGLE_API_KEY')) { + $this->markTestSkipped( + "Test requires api key\nYou can create one in your developer console" + ); + file_put_contents($apiKeyFile, $apiKey); + } + $this->key = $apiKey; } - return true; - } - - protected function checkKey() - { - if (file_exists($apiKeyFile = __DIR__ . DIRECTORY_SEPARATOR . '.apiKey')) { - $apiKey = file_get_contents($apiKeyFile); - } elseif (!$apiKey = getenv('GOOGLE_API_KEY')) { - $this->markTestSkipped( - "Test requires api key\nYou can create one in your developer console" - ); - file_put_contents($apiKeyFile, $apiKey); - } - $this->key = $apiKey; - } - - protected function loadExample($example) - { - // trick app into thinking we are a web server - $_SERVER['HTTP_USER_AGENT'] = 'google-api-php-client-tests'; - $_SERVER['HTTP_HOST'] = 'localhost'; - $_SERVER['REQUEST_METHOD'] = 'GET'; - - // include the file and return an HTML crawler - $file = __DIR__ . '/../examples/' . $example; - if (is_file($file)) { - ob_start(); - include $file; - $html = ob_get_clean(); - - return new Crawler($html); + protected function loadExample($example) + { + // trick app into thinking we are a web server + $_SERVER['HTTP_USER_AGENT'] = 'google-api-php-client-tests'; + $_SERVER['HTTP_HOST'] = 'localhost'; + $_SERVER['REQUEST_METHOD'] = 'GET'; + + // include the file and return an HTML crawler + $file = __DIR__ . '/../examples/' . $example; + if (is_file($file)) { + ob_start(); + include $file; + $html = ob_get_clean(); + + return new Crawler($html); + } + + return false; } - return false; - } + protected function isGuzzle7() + { + if (!defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { + return false; + } - protected function isGuzzle7() - { - if (!defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { - return false; + return (7 === ClientInterface::MAJOR_VERSION); } - return (7 === ClientInterface::MAJOR_VERSION); - } + protected function isGuzzle6() + { + if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { + return false; + } + $version = ClientInterface::VERSION; - protected function isGuzzle6() - { - if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { - return false; + return ('6' === $version[0]); } - $version = ClientInterface::VERSION; - return ('6' === $version[0]); - } - - protected function isGuzzle5() - { - if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { - return false; - } + protected function isGuzzle5() + { + if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { + return false; + } - $version = ClientInterface::VERSION; + $version = ClientInterface::VERSION; - return ('5' === $version[0]); - } + return ('5' === $version[0]); + } - public function onlyGuzzle6() - { - if (!$this->isGuzzle6()) { - $this->markTestSkipped('Guzzle 6 only'); + public function onlyGuzzle6() + { + if (!$this->isGuzzle6()) { + $this->markTestSkipped('Guzzle 6 only'); + } } - } - public function onlyPhp55AndAbove() - { - if (version_compare(PHP_VERSION, '5.5', '<')) { - $this->markTestSkipped('PHP 5.5 and above only'); + public function onlyPhp55AndAbove() + { + if (version_compare(PHP_VERSION, '5.5', '<')) { + $this->markTestSkipped('PHP 5.5 and above only'); + } } - } - public function onlyGuzzle5() - { - if (!$this->isGuzzle5()) { - $this->markTestSkipped('Guzzle 5 only'); + public function onlyGuzzle5() + { + if (!$this->isGuzzle5()) { + $this->markTestSkipped('Guzzle 5 only'); + } } - } - public function onlyGuzzle6Or7() - { - if (!$this->isGuzzle6() && !$this->isGuzzle7()) { - $this->markTestSkipped('Guzzle 6 or 7 only'); + public function onlyGuzzle6Or7() + { + if (!$this->isGuzzle6() && !$this->isGuzzle7()) { + $this->markTestSkipped('Guzzle 6 or 7 only'); + } } - } - protected function getGuzzle5ResponseMock() - { - $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); - $response->getStatusCode() - ->willReturn(200); + protected function getGuzzle5ResponseMock() + { + $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); + $response->getStatusCode() + ->willReturn(200); - $response->getHeaders()->willReturn([]); - $response->getBody()->willReturn(''); - $response->getProtocolVersion()->willReturn(''); - $response->getReasonPhrase()->willReturn(''); + $response->getHeaders()->willReturn([]); + $response->getBody()->willReturn(''); + $response->getProtocolVersion()->willReturn(''); + $response->getReasonPhrase()->willReturn(''); - return $response; - } + return $response; + } } diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index f9c75fb5c..25a7224b2 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -27,134 +27,134 @@ class VerifyTest extends BaseTest { - /** - * This test needs to run before the other verify tests, - * to ensure the constants are not defined. - */ - public function testPhpsecConstants() - { - $client = $this->getClient(); - $verify = new Verify($client->getHttpClient()); - - // set these to values that will be changed - if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED') || defined('CRYPT_RSA_MODE')) { - $this->markTestSkipped('Cannot run test - constants already defined'); + /** + * This test needs to run before the other verify tests, + * to ensure the constants are not defined. + */ + public function testPhpsecConstants() + { + $client = $this->getClient(); + $verify = new Verify($client->getHttpClient()); + + // set these to values that will be changed + if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED') || defined('CRYPT_RSA_MODE')) { + $this->markTestSkipped('Cannot run test - constants already defined'); + } + + // Pretend we are on App Engine VMs + putenv('GAE_VM=1'); + + $verify->verifyIdToken('a.b.c'); + + putenv('GAE_VM=0'); + + $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); + $rsaMode = constant('CRYPT_RSA_MODE'); + $this->assertTrue($openSslEnable); + $this->assertEquals(constant($this->getOpenSslConstant()), $rsaMode); } - // Pretend we are on App Engine VMs - putenv('GAE_VM=1'); - - $verify->verifyIdToken('a.b.c'); - - putenv('GAE_VM=0'); - - $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); - $rsaMode = constant('CRYPT_RSA_MODE'); - $this->assertTrue($openSslEnable); - $this->assertEquals(constant($this->getOpenSslConstant()), $rsaMode); - } - - /** - * Most of the logic for ID token validation is in AuthTest - - * this is just a general check to ensure we verify a valid - * id token if one exists. - */ - public function testValidateIdToken() - { - $this->checkToken(); - - $jwt = $this->getJwtService(); - $client = $this->getClient(); - $http = $client->getHttpClient(); - $token = $client->getAccessToken(); - if ($client->isAccessTokenExpired()) { - $token = $client->fetchAccessTokenWithRefreshToken(); + /** + * Most of the logic for ID token validation is in AuthTest - + * this is just a general check to ensure we verify a valid + * id token if one exists. + */ + public function testValidateIdToken() + { + $this->checkToken(); + + $jwt = $this->getJwtService(); + $client = $this->getClient(); + $http = $client->getHttpClient(); + $token = $client->getAccessToken(); + if ($client->isAccessTokenExpired()) { + $token = $client->fetchAccessTokenWithRefreshToken(); + } + $segments = explode('.', $token['id_token']); + $this->assertCount(3, $segments); + // Extract the client ID in this case as it wont be set on the test client. + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); + $verify = new Verify($http); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + $this->assertArrayHasKey('sub', $payload); + $this->assertGreaterThan(0, strlen($payload['sub'])); + + // TODO: Need to be smart about testing/disabling the + // caching for this test to make sense. Not sure how to do that + // at the moment. + $client = $this->getClient(); + $http = $client->getHttpClient(); + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); + $verify = new Verify($http); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + $this->assertArrayHasKey('sub', $payload); + $this->assertGreaterThan(0, strlen($payload['sub'])); } - $segments = explode('.', $token['id_token']); - $this->assertCount(3, $segments); - // Extract the client ID in this case as it wont be set on the test client. - $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Verify($http); - $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertArrayHasKey('sub', $payload); - $this->assertGreaterThan(0, strlen($payload['sub'])); - - // TODO: Need to be smart about testing/disabling the - // caching for this test to make sense. Not sure how to do that - // at the moment. - $client = $this->getClient(); - $http = $client->getHttpClient(); - $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Verify($http); - $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - $this->assertArrayHasKey('sub', $payload); - $this->assertGreaterThan(0, strlen($payload['sub'])); - } - - /** - * Most of the logic for ID token validation is in AuthTest - - * this is just a general check to ensure we verify a valid - * id token if one exists. - */ - public function testLeewayIsUnchangedWhenPassingInJwt() - { - $this->checkToken(); - - $jwt = $this->getJwtService(); - // set arbitrary leeway so we can check this later - $jwt::$leeway = $leeway = 1.5; - $client = $this->getClient(); - $token = $client->getAccessToken(); - if ($client->isAccessTokenExpired()) { - $token = $client->fetchAccessTokenWithRefreshToken(); - } - $segments = explode('.', $token['id_token']); - $this->assertCount(3, $segments); - // Extract the client ID in this case as it wont be set on the test client. - $data = json_decode($jwt->urlSafeB64Decode($segments[1])); - $verify = new Verify($client->getHttpClient(), null, $jwt); - $payload = $verify->verifyIdToken($token['id_token'], $data->aud); - // verify the leeway is set as it was - $this->assertEquals($leeway, $jwt::$leeway); - } - - public function testRetrieveCertsFromLocation() - { - $client = $this->getClient(); - $verify = new Verify($client->getHttpClient()); - - // make this method public for testing purposes - $method = new ReflectionMethod($verify, 'retrieveCertsFromLocation'); - $method->setAccessible(true); - $certs = $method->invoke($verify, Verify::FEDERATED_SIGNON_CERT_URL); - - $this->assertArrayHasKey('keys', $certs); - $this->assertGreaterThan(1, count($certs['keys'])); - $this->assertArrayHasKey('alg', $certs['keys'][0]); - $this->assertEquals('RS256', $certs['keys'][0]['alg']); - } - - private function getJwtService() - { - if (class_exists('\Firebase\JWT\JWT')) { - return new \Firebase\JWT\JWT; + + /** + * Most of the logic for ID token validation is in AuthTest - + * this is just a general check to ensure we verify a valid + * id token if one exists. + */ + public function testLeewayIsUnchangedWhenPassingInJwt() + { + $this->checkToken(); + + $jwt = $this->getJwtService(); + // set arbitrary leeway so we can check this later + $jwt::$leeway = $leeway = 1.5; + $client = $this->getClient(); + $token = $client->getAccessToken(); + if ($client->isAccessTokenExpired()) { + $token = $client->fetchAccessTokenWithRefreshToken(); + } + $segments = explode('.', $token['id_token']); + $this->assertCount(3, $segments); + // Extract the client ID in this case as it wont be set on the test client. + $data = json_decode($jwt->urlSafeB64Decode($segments[1])); + $verify = new Verify($client->getHttpClient(), null, $jwt); + $payload = $verify->verifyIdToken($token['id_token'], $data->aud); + // verify the leeway is set as it was + $this->assertEquals($leeway, $jwt::$leeway); } - return new \JWT; - } + public function testRetrieveCertsFromLocation() + { + $client = $this->getClient(); + $verify = new Verify($client->getHttpClient()); + + // make this method public for testing purposes + $method = new ReflectionMethod($verify, 'retrieveCertsFromLocation'); + $method->setAccessible(true); + $certs = $method->invoke($verify, Verify::FEDERATED_SIGNON_CERT_URL); - private function getOpenSslConstant() - { - if (class_exists('phpseclib3\Crypt\AES')) { - return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; + $this->assertArrayHasKey('keys', $certs); + $this->assertGreaterThan(1, count($certs['keys'])); + $this->assertArrayHasKey('alg', $certs['keys'][0]); + $this->assertEquals('RS256', $certs['keys'][0]['alg']); } - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; + private function getJwtService() + { + if (class_exists('\Firebase\JWT\JWT')) { + return new \Firebase\JWT\JWT; + } + + return new \JWT; } - if (class_exists('Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; + private function getOpenSslConstant() + { + if (class_exists('phpseclib3\Crypt\AES')) { + return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; + } + + if (class_exists('phpseclib\Crypt\RSA')) { + return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; + } + + if (class_exists('Crypt_RSA')) { + return 'CRYPT_RSA_MODE_OPENSSL'; + } } - } } diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index 2c1af30e4..e6743a45c 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -27,77 +27,77 @@ class CacheTest extends BaseTest { - public function testInMemoryCache() - { - $this->checkServiceAccountCredentials(); - - $client = $this->getClient(); - $client->useApplicationDefaultCredentials(); - $client->setAccessType('offline'); - $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); - $client->setCache(new MemoryCacheItemPool); - - /* Refresh token when expired */ - if ($client->isAccessTokenExpired()) { - $client->refreshTokenWithAssertion(); + public function testInMemoryCache() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $client->setAccessType('offline'); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + $client->setCache(new MemoryCacheItemPool); + + /* Refresh token when expired */ + if ($client->isAccessTokenExpired()) { + $client->refreshTokenWithAssertion(); + } + + /* Make a service call */ + $service = new Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf('Google_Service_Drive_FileList', $files); } - /* Make a service call */ - $service = new Drive($client); - $files = $service->files->listFiles(); - $this->assertInstanceOf('Google_Service_Drive_FileList', $files); - } - - public function testFileCache() - { - $this->onlyPhp55AndAbove(); - $this->checkServiceAccountCredentials(); - - $client = new Client(); - $client->useApplicationDefaultCredentials(); - $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); - // filecache with new cache dir - $cache = $this->getCache(sys_get_temp_dir() . '/cloud-samples-tests-php-cache-test/'); - $client->setCache($cache); - - $token1 = null; - $client->setTokenCallback(function($cacheKey, $accessToken) use ($cache, &$token1) { - $token1 = $accessToken; - $cacheItem = $cache->getItem($cacheKey); - // expire the item - $cacheItem->expiresAt(new DateTime('now -1 second')); - $cache->save($cacheItem); - - $cacheItem2 = $cache->getItem($cacheKey); - }); - - /* Refresh token when expired */ - if ($client->isAccessTokenExpired()) { - $client->refreshTokenWithAssertion(); + public function testFileCache() + { + $this->onlyPhp55AndAbove(); + $this->checkServiceAccountCredentials(); + + $client = new Client(); + $client->useApplicationDefaultCredentials(); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + // filecache with new cache dir + $cache = $this->getCache(sys_get_temp_dir() . '/cloud-samples-tests-php-cache-test/'); + $client->setCache($cache); + + $token1 = null; + $client->setTokenCallback(function ($cacheKey, $accessToken) use ($cache, &$token1) { + $token1 = $accessToken; + $cacheItem = $cache->getItem($cacheKey); + // expire the item + $cacheItem->expiresAt(new DateTime('now -1 second')); + $cache->save($cacheItem); + + $cacheItem2 = $cache->getItem($cacheKey); + }); + + /* Refresh token when expired */ + if ($client->isAccessTokenExpired()) { + $client->refreshTokenWithAssertion(); + } + + /* Make a service call */ + $service = new Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf(Drive\FileList::class, $files); + + sleep(2); + + // make sure the token expires + $client = new Client(); + $client->useApplicationDefaultCredentials(); + $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); + $client->setCache($cache); + $token2 = null; + $client->setTokenCallback(function ($cacheKey, $accessToken) use (&$token2) { + $token2 = $accessToken; + }); + + /* Make another service call */ + $service = new Drive($client); + $files = $service->files->listFiles(); + $this->assertInstanceOf(Drive\FileList::class, $files); + + $this->assertNotEquals($token1, $token2); } - - /* Make a service call */ - $service = new Drive($client); - $files = $service->files->listFiles(); - $this->assertInstanceOf(Drive\FileList::class, $files); - - sleep(2); - - // make sure the token expires - $client = new Client(); - $client->useApplicationDefaultCredentials(); - $client->setScopes(['https://www.googleapis.com/auth/drive.readonly']); - $client->setCache($cache); - $token2 = null; - $client->setTokenCallback(function($cacheKey, $accessToken) use (&$token2) { - $token2 = $accessToken; - }); - - /* Make another service call */ - $service = new Drive($client); - $files = $service->files->listFiles(); - $this->assertInstanceOf(Drive\FileList::class, $files); - - $this->assertNotEquals($token1, $token2); - } } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 8968c14a7..3e604b510 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -40,976 +40,979 @@ class ClientTest extends BaseTest { - public function testClientConstructor() - { - $this->assertInstanceOf(Client::class, $this->getClient()); - } - - public function testSignAppKey() - { - $client = $this->getClient(); - $client->setDeveloperKey('devKey'); - - $http = new GuzzleClient(); - $client->authorize($http); - - $this->checkAuthHandler($http, 'Simple'); - } - - private function checkAuthHandler($http, $className) - { - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $stack = $http->getConfig('handler'); - $class = new ReflectionClass(get_class($stack)); - $property = $class->getProperty('stack'); - $property->setAccessible(true); - $middlewares = $property->getValue($stack); - $middleware = array_pop($middlewares); - - if (null === $className) { - // only the default middlewares have been added - $this->assertCount(3, $middlewares); - } else { - $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); - $this->assertInstanceOf($authClass, $middleware[0]); - } - } else { - $listeners = $http->getEmitter()->listeners('before'); - - if (null === $className) { - $this->assertCount(0, $listeners); - } else { - $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); - $this->assertCount(1, $listeners); - $this->assertCount(2, $listeners[0]); - $this->assertInstanceOf($authClass, $listeners[0][0]); - } - } - } - - private function checkCredentials($http, $fetcherClass, $sub = null) - { - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $stack = $http->getConfig('handler'); - $class = new ReflectionClass(get_class($stack)); - $property = $class->getProperty('stack'); - $property->setAccessible(true); - $middlewares = $property->getValue($stack); // Works - $middleware = array_pop($middlewares); - $auth = $middleware[0]; - } else { - // access the protected $fetcher property - $listeners = $http->getEmitter()->listeners('before'); - $auth = $listeners[0][0]; - } - - $class = new ReflectionClass(get_class($auth)); - $property = $class->getProperty('fetcher'); - $property->setAccessible(true); - $cacheFetcher = $property->getValue($auth); - $this->assertInstanceOf(FetchAuthTokenCache::class, $cacheFetcher); - - $class = new ReflectionClass(get_class($cacheFetcher)); - $property = $class->getProperty('fetcher'); - $property->setAccessible(true); - $fetcher = $property->getValue($cacheFetcher); - $this->assertInstanceOf($fetcherClass, $fetcher); - - if ($sub) { - // access the protected $auth property - $class = new ReflectionClass(get_class($fetcher)); - $property = $class->getProperty('auth'); - $property->setAccessible(true); - $auth = $property->getValue($fetcher); - - $this->assertEquals($sub, $auth->getSub()); - } - } - - public function testSignAccessToken() - { - $client = $this->getClient(); - - $http = new GuzzleClient(); - $client->setAccessToken([ - 'access_token' => 'test_token', - 'expires_in' => 3600, - 'created' => time(), - ]); - $client->setScopes('test_scope'); - $client->authorize($http); - - $this->checkAuthHandler($http, 'ScopedAccessToken'); - } - - public function testCreateAuthUrl() - { - $client = $this->getClient(); - - $client->setClientId('clientId1'); - $client->setClientSecret('clientSecret1'); - $client->setRedirectUri('http://localhost'); - $client->setDeveloperKey('devKey'); - $client->setState('xyz'); - $client->setAccessType('offline'); - $client->setApprovalPrompt('force'); - $client->setRequestVisibleActions('http://foo'); - $client->setLoginHint('bob@example.org'); - - $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" - . "?response_type=code" - . "&access_type=offline" - . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost" - . "&state=xyz" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&approval_prompt=force" - . "&login_hint=bob%40example.org"; - - $this->assertEquals($expected, $authUrl); - - // Again with a blank login hint (should remove all traces from authUrl) - $client->setLoginHint(''); - $client->setHostedDomain('example.com'); - $client->setOpenIdRealm('example.com'); - $client->setPrompt('select_account'); - $client->setIncludeGrantedScopes(true); - $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" - . "?response_type=code" - . "&access_type=offline" - . "&client_id=clientId1" - . "&redirect_uri=http%3A%2F%2Flocalhost" - . "&state=xyz" - . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" - . "&hd=example.com" - . "&include_granted_scopes=true" - . "&openid.realm=example.com" - . "&prompt=select_account"; - - $this->assertEquals($expected, $authUrl); - } - - public function testPrepareNoScopes() - { - $client = new Client(); - - $scopes = $client->prepareScopes(); - $this->assertNull($scopes); - } - - public function testNoAuthIsNull() - { - $client = new Client(); - - $this->assertNull($client->getAccessToken()); - } - - public function testPrepareService() - { - $this->onlyGuzzle6Or7(); - - $client = new Client(); - $client->setScopes(array("scope1", "scope2")); - $scopes = $client->prepareScopes(); - $this->assertEquals("scope1 scope2", $scopes); - - $client->setScopes(array("", "scope2")); - $scopes = $client->prepareScopes(); - $this->assertEquals(" scope2", $scopes); - - $client->setScopes("scope2"); - $client->addScope("scope3"); - $client->addScope(array("scope4", "scope5")); - $scopes = $client->prepareScopes(); - $this->assertEquals("scope2 scope3 scope4 scope5", $scopes); - - $client->setClientId('test1'); - $client->setRedirectUri('http://localhost/'); - $client->setState('xyz'); - $client->setScopes(array("http://test.com", "scope2")); - $scopes = $client->prepareScopes(); - $this->assertEquals("http://test.com scope2", $scopes); - $this->assertEquals( - '' - . 'https://accounts.google.com/o/oauth2/auth' - . '?response_type=code' - . '&access_type=online' - . '&client_id=test1' - . '&redirect_uri=http%3A%2F%2Flocalhost%2F' - . '&state=xyz' - . '&scope=http%3A%2F%2Ftest.com%20scope2' - . '&approval_prompt=auto', - - $client->createAuthUrl() - ); - - $stream = $this->prophesize('GuzzleHttp\Psr7\Stream'); - $stream->__toString()->willReturn(''); - - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - $response->getBody() + public function testClientConstructor() + { + $this->assertInstanceOf(Client::class, $this->getClient()); + } + + public function testSignAppKey() + { + $client = $this->getClient(); + $client->setDeveloperKey('devKey'); + + $http = new GuzzleClient(); + $client->authorize($http); + + $this->checkAuthHandler($http, 'Simple'); + } + + private function checkAuthHandler($http, $className) + { + if ($this->isGuzzle6() || $this->isGuzzle7()) { + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); + $middleware = array_pop($middlewares); + + if (null === $className) { + // only the default middlewares have been added + $this->assertCount(3, $middlewares); + } else { + $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); + $this->assertInstanceOf($authClass, $middleware[0]); + } + } else { + $listeners = $http->getEmitter()->listeners('before'); + + if (null === $className) { + $this->assertCount(0, $listeners); + } else { + $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); + $this->assertCount(1, $listeners); + $this->assertCount(2, $listeners[0]); + $this->assertInstanceOf($authClass, $listeners[0][0]); + } + } + } + + private function checkCredentials($http, $fetcherClass, $sub = null) + { + if ($this->isGuzzle6() || $this->isGuzzle7()) { + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); // Works + $middleware = array_pop($middlewares); + $auth = $middleware[0]; + } else { + // access the protected $fetcher property + $listeners = $http->getEmitter()->listeners('before'); + $auth = $listeners[0][0]; + } + + $class = new ReflectionClass(get_class($auth)); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $cacheFetcher = $property->getValue($auth); + $this->assertInstanceOf(FetchAuthTokenCache::class, $cacheFetcher); + + $class = new ReflectionClass(get_class($cacheFetcher)); + $property = $class->getProperty('fetcher'); + $property->setAccessible(true); + $fetcher = $property->getValue($cacheFetcher); + $this->assertInstanceOf($fetcherClass, $fetcher); + + if ($sub) { + // access the protected $auth property + $class = new ReflectionClass(get_class($fetcher)); + $property = $class->getProperty('auth'); + $property->setAccessible(true); + $auth = $property->getValue($fetcher); + + $this->assertEquals($sub, $auth->getSub()); + } + } + + public function testSignAccessToken() + { + $client = $this->getClient(); + + $http = new GuzzleClient(); + $client->setAccessToken([ + 'access_token' => 'test_token', + 'expires_in' => 3600, + 'created' => time(), + ]); + $client->setScopes('test_scope'); + $client->authorize($http); + + $this->checkAuthHandler($http, 'ScopedAccessToken'); + } + + public function testCreateAuthUrl() + { + $client = $this->getClient(); + + $client->setClientId('clientId1'); + $client->setClientSecret('clientSecret1'); + $client->setRedirectUri('http://localhost'); + $client->setDeveloperKey('devKey'); + $client->setState('xyz'); + $client->setAccessType('offline'); + $client->setApprovalPrompt('force'); + $client->setRequestVisibleActions('http://foo'); + $client->setLoginHint('bob@example.org'); + + $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); + $expected = "https://accounts.google.com/o/oauth2/auth" + . "?response_type=code" + . "&access_type=offline" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost" + . "&state=xyz" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&approval_prompt=force" + . "&login_hint=bob%40example.org"; + + $this->assertEquals($expected, $authUrl); + + // Again with a blank login hint (should remove all traces from authUrl) + $client->setLoginHint(''); + $client->setHostedDomain('example.com'); + $client->setOpenIdRealm('example.com'); + $client->setPrompt('select_account'); + $client->setIncludeGrantedScopes(true); + $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); + $expected = "https://accounts.google.com/o/oauth2/auth" + . "?response_type=code" + . "&access_type=offline" + . "&client_id=clientId1" + . "&redirect_uri=http%3A%2F%2Flocalhost" + . "&state=xyz" + . "&scope=http%3A%2F%2Fgoogleapis.com%2Fscope%2Ffoo" + . "&hd=example.com" + . "&include_granted_scopes=true" + . "&openid.realm=example.com" + . "&prompt=select_account"; + + $this->assertEquals($expected, $authUrl); + } + + public function testPrepareNoScopes() + { + $client = new Client(); + + $scopes = $client->prepareScopes(); + $this->assertNull($scopes); + } + + public function testNoAuthIsNull() + { + $client = new Client(); + + $this->assertNull($client->getAccessToken()); + } + + public function testPrepareService() + { + $this->onlyGuzzle6Or7(); + + $client = new Client(); + $client->setScopes(array("scope1", "scope2")); + $scopes = $client->prepareScopes(); + $this->assertEquals("scope1 scope2", $scopes); + + $client->setScopes(array("", "scope2")); + $scopes = $client->prepareScopes(); + $this->assertEquals(" scope2", $scopes); + + $client->setScopes("scope2"); + $client->addScope("scope3"); + $client->addScope(array("scope4", "scope5")); + $scopes = $client->prepareScopes(); + $this->assertEquals("scope2 scope3 scope4 scope5", $scopes); + + $client->setClientId('test1'); + $client->setRedirectUri('http://localhost/'); + $client->setState('xyz'); + $client->setScopes(array("http://test.com", "scope2")); + $scopes = $client->prepareScopes(); + $this->assertEquals("http://test.com scope2", $scopes); + $this->assertEquals( + '' + . 'https://accounts.google.com/o/oauth2/auth' + . '?response_type=code' + . '&access_type=online' + . '&client_id=test1' + . '&redirect_uri=http%3A%2F%2Flocalhost%2F' + . '&state=xyz' + . '&scope=http%3A%2F%2Ftest.com%20scope2' + . '&approval_prompt=auto', + $client->createAuthUrl() + ); + + $stream = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $stream->__toString()->willReturn(''); + + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + $response->getBody() ->shouldBeCalledTimes(1) ->willReturn($stream->reveal()); - $response->getStatusCode()->willReturn(200); + $response->getStatusCode()->willReturn(200); - $http = $this->prophesize('GuzzleHttp\ClientInterface'); + $http = $this->prophesize('GuzzleHttp\ClientInterface'); - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) ->shouldBeCalledTimes(1) ->willReturn($response->reveal()); - $client->setHttpClient($http->reveal()); - $dr_service = new Drive($client); - $this->assertInstanceOf('Google\Model', $dr_service->files->listFiles()); - } - - public function testDefaultLogger() - { - $client = new Client(); - $logger = $client->getLogger(); - $this->assertInstanceOf('Monolog\Logger', $logger); - $handler = $logger->popHandler(); - $this->assertInstanceOf('Monolog\Handler\StreamHandler', $handler); - } - - public function testDefaultLoggerAppEngine() - { - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Client(); - $logger = $client->getLogger(); - $handler = $logger->popHandler(); - unset($_SERVER['SERVER_SOFTWARE']); - - $this->assertInstanceOf('Monolog\Logger', $logger); - $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler); - } - - public function testSettersGetters() - { - $client = new Client(); - $client->setClientId("client1"); - $client->setClientSecret('client1secret'); - $client->setState('1'); - $client->setApprovalPrompt('force'); - $client->setAccessType('offline'); - - $client->setRedirectUri('localhost'); - $client->setConfig('application_name', 'me'); - - $cache = $this->prophesize(CacheItemPoolInterface::class); - $client->setCache($cache->reveal()); - $this->assertInstanceOf(CacheItemPoolInterface::class, $client->getCache()); - - try { - $client->setAccessToken(null); - $this->fail('Should have thrown an Exception.'); - } catch (InvalidArgumentException $e) { - $this->assertEquals('invalid json token', $e->getMessage()); - } - - $token = array('access_token' => 'token'); - $client->setAccessToken($token); - $this->assertEquals($token, $client->getAccessToken()); - } - - public function testSetAccessTokenValidation() - { - $client = new Client(); - $client->setAccessToken([ - 'access_token' => 'token', - 'created' => time() - ]); - self::assertEquals(true, $client->isAccessTokenExpired()); - } - - public function testDefaultConfigOptions() - { - $client = new Client(); - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); - $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); - $this->assertFalse($client->getHttpClient()->getConfig()['http_errors']); - } - if ($this->isGuzzle5()) { - $this->assertArrayHasKey('exceptions', $client->getHttpClient()->getDefaultOption()); - $this->assertArrayNotHasKey('http_errors', $client->getHttpClient()->getDefaultOption()); - $this->assertFalse($client->getHttpClient()->getDefaultOption()['exceptions']); - } - } - - public function testAppEngineStreamHandlerConfig() - { - $this->onlyGuzzle5(); - - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Client(); - - // check Stream Handler is used - $http = $client->getHttpClient(); - $class = new ReflectionClass(get_class($http)); - $property = $class->getProperty('fsm'); - $property->setAccessible(true); - $fsm = $property->getValue($http); - - $class = new ReflectionClass(get_class($fsm)); - $property = $class->getProperty('handler'); - $property->setAccessible(true); - $handler = $property->getValue($fsm); - - $this->assertInstanceOf('GuzzleHttp\Ring\Client\StreamHandler', $handler); - - unset($_SERVER['SERVER_SOFTWARE']); - } - - public function testAppEngineVerifyConfig() - { - $this->onlyGuzzle5(); - - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Client(); - - $this->assertEquals( - '/etc/ca-certificates.crt', - $client->getHttpClient()->getDefaultOption('verify') - ); - - unset($_SERVER['SERVER_SOFTWARE']); - } - - public function testJsonConfig() - { - // Device config - $client = new Client(); - $device = - '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. - ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://oauth2.googleapis.com/token",'. - '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. - ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. - '"https://www.googleapis.com/oauth2/v1/certs"}}'; - $dObj = json_decode($device, true); - $client->setAuthConfig($dObj); - $this->assertEquals($client->getClientId(), $dObj['installed']['client_id']); - $this->assertEquals($client->getClientSecret(), $dObj['installed']['client_secret']); - $this->assertEquals($client->getRedirectUri(), $dObj['installed']['redirect_uris'][0]); - - // Web config - $client = new Client(); - $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . - ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://oauth2.googleapis.com/token"' . - ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. - '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. - ',"client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. - '"https://www.googleapis.com/oauth2/v1/certs"}}'; - $wObj = json_decode($web, true); - $client->setAuthConfig($wObj); - $this->assertEquals($client->getClientId(), $wObj['web']['client_id']); - $this->assertEquals($client->getClientSecret(), $wObj['web']['client_secret']); - $this->assertEquals($client->getRedirectUri(), ''); - } - - public function testIniConfig() - { - $config = parse_ini_file(__DIR__ . '/../config/test.ini'); - $client = new Client($config); - - $this->assertEquals('My Test application', $client->getConfig('application_name')); - $this->assertEquals( - 'gjfiwnGinpena3', - $client->getClientSecret() - ); - } - - public function testNoAuth() - { - /** @var $noAuth Google_Auth_Simple */ - $client = new Client(); - $client->setDeveloperKey(null); - - // unset application credentials - $GOOGLE_APPLICATION_CREDENTIALS = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - $HOME = getenv('HOME'); - putenv('GOOGLE_APPLICATION_CREDENTIALS='); - putenv('HOME='.sys_get_temp_dir()); - $http = new GuzzleClient(); - $client->authorize($http); - - putenv("GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"); - putenv("HOME=$HOME"); - $this->checkAuthHandler($http, null); - } - - public function testApplicationDefaultCredentials() - { - $this->checkServiceAccountCredentials(); - $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - - $client = new Client(); - $client->setAuthConfig($credentialsFile); - - $http = new GuzzleClient(); - $client->authorize($http); - - $this->checkAuthHandler($http, 'AuthToken'); - $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials'); - } - - public function testApplicationDefaultCredentialsWithSubject() - { - $this->checkServiceAccountCredentials(); - $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - - $sub = 'sub123'; - $client = new Client(); - $client->setAuthConfig($credentialsFile); - $client->setSubject($sub); - - $http = new GuzzleClient(); - $client->authorize($http); - - $this->checkAuthHandler($http, 'AuthToken'); - $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials', $sub); - } - - /** - * Test that the ID token is properly refreshed. - */ - public function testRefreshTokenSetsValues() - { - $token = json_encode([ - 'access_token' => 'xyz', - 'id_token' => 'ID_TOKEN', - ]); - $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); - $postBody->__toString() - ->shouldBeCalledTimes(1) - ->willReturn($token); + $client->setHttpClient($http->reveal()); + $dr_service = new Drive($client); + $this->assertInstanceOf('Google\Model', $dr_service->files->listFiles()); + } - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->shouldBeCalledTimes(1) - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + public function testDefaultLogger() + { + $client = new Client(); + $logger = $client->getLogger(); + $this->assertInstanceOf('Monolog\Logger', $logger); + $handler = $logger->popHandler(); + $this->assertInstanceOf('Monolog\Handler\StreamHandler', $handler); } - $response->getBody() - ->shouldBeCalledTimes(1) - ->willReturn($postBody->reveal()); + public function testDefaultLoggerAppEngine() + { + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Client(); + $logger = $client->getLogger(); + $handler = $logger->popHandler(); + unset($_SERVER['SERVER_SOFTWARE']); - $response->hasHeader('Content-Type')->willReturn(false); + $this->assertInstanceOf('Monolog\Logger', $logger); + $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler); + } - $http = $this->prophesize('GuzzleHttp\ClientInterface'); + public function testSettersGetters() + { + $client = new Client(); + $client->setClientId("client1"); + $client->setClientSecret('client1secret'); + $client->setState('1'); + $client->setApprovalPrompt('force'); + $client->setAccessType('offline'); + + $client->setRedirectUri('localhost'); + $client->setConfig('application_name', 'me'); + + $cache = $this->prophesize(CacheItemPoolInterface::class); + $client->setCache($cache->reveal()); + $this->assertInstanceOf(CacheItemPoolInterface::class, $client->getCache()); + + try { + $client->setAccessToken(null); + $this->fail('Should have thrown an Exception.'); + } catch (InvalidArgumentException $e) { + $this->assertEquals('invalid json token', $e->getMessage()); + } + + $token = array('access_token' => 'token'); + $client->setAccessToken($token); + $this->assertEquals($token, $client->getAccessToken()); + } - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->shouldBeCalledTimes(1) - ->willReturn($guzzle5Request); + public function testSetAccessTokenValidation() + { + $client = new Client(); + $client->setAccessToken([ + 'access_token' => 'token', + 'created' => time() + ]); + self::assertEquals(true, $client->isAccessTokenExpired()); + } - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); + public function testDefaultConfigOptions() + { + $client = new Client(); + if ($this->isGuzzle6() || $this->isGuzzle7()) { + $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); + $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); + $this->assertFalse($client->getHttpClient()->getConfig()['http_errors']); + } + if ($this->isGuzzle5()) { + $this->assertArrayHasKey('exceptions', $client->getHttpClient()->getDefaultOption()); + $this->assertArrayNotHasKey('http_errors', $client->getHttpClient()->getDefaultOption()); + $this->assertFalse($client->getHttpClient()->getDefaultOption()['exceptions']); + } } - $client = $this->getClient(); - $client->setHttpClient($http->reveal()); - $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); - $token = $client->getAccessToken(); - $this->assertEquals("ID_TOKEN", $token['id_token']); - } + public function testAppEngineStreamHandlerConfig() + { + $this->onlyGuzzle5(); - /** - * Test that the Refresh Token is set when refreshed. - */ - public function testRefreshTokenIsSetOnRefresh() - { - $refreshToken = 'REFRESH_TOKEN'; - $token = json_encode(array( - 'access_token' => 'xyz', - 'id_token' => 'ID_TOKEN', - )); - $postBody = $this->prophesize('Psr\Http\Message\StreamInterface'); - $postBody->__toString() - ->shouldBeCalledTimes(1) - ->willReturn($token); + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Client(); + + // check Stream Handler is used + $http = $client->getHttpClient(); + $class = new ReflectionClass(get_class($http)); + $property = $class->getProperty('fsm'); + $property->setAccessible(true); + $fsm = $property->getValue($http); - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->shouldBeCalledTimes(1) - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + $class = new ReflectionClass(get_class($fsm)); + $property = $class->getProperty('handler'); + $property->setAccessible(true); + $handler = $property->getValue($fsm); + + $this->assertInstanceOf('GuzzleHttp\Ring\Client\StreamHandler', $handler); + + unset($_SERVER['SERVER_SOFTWARE']); } - $response->getBody() - ->shouldBeCalledTimes(1) - ->willReturn($postBody->reveal()); + public function testAppEngineVerifyConfig() + { + $this->onlyGuzzle5(); - $response->hasHeader('Content-Type')->willReturn(false); + $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; + $client = new Client(); - $http = $this->prophesize('GuzzleHttp\ClientInterface'); + $this->assertEquals( + '/etc/ca-certificates.crt', + $client->getHttpClient()->getDefaultOption('verify') + ); - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn($guzzle5Request); + unset($_SERVER['SERVER_SOFTWARE']); + } - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); + public function testJsonConfig() + { + // Device config + $client = new Client(); + $device = + '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. + ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://oauth2.googleapis.com/token",'. + '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. + ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. + '"https://www.googleapis.com/oauth2/v1/certs"}}'; + $dObj = json_decode($device, true); + $client->setAuthConfig($dObj); + $this->assertEquals($client->getClientId(), $dObj['installed']['client_id']); + $this->assertEquals($client->getClientSecret(), $dObj['installed']['client_secret']); + $this->assertEquals($client->getRedirectUri(), $dObj['installed']['redirect_uris'][0]); + + // Web config + $client = new Client(); + $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . + ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://oauth2.googleapis.com/token"' . + ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. + '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. + ',"client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. + '"https://www.googleapis.com/oauth2/v1/certs"}}'; + $wObj = json_decode($web, true); + $client->setAuthConfig($wObj); + $this->assertEquals($client->getClientId(), $wObj['web']['client_id']); + $this->assertEquals($client->getClientSecret(), $wObj['web']['client_secret']); + $this->assertEquals($client->getRedirectUri(), ''); } - $client = $this->getClient(); - $client->setHttpClient($http->reveal()); - $client->fetchAccessTokenWithRefreshToken($refreshToken); - $token = $client->getAccessToken(); - $this->assertEquals($refreshToken, $token['refresh_token']); - } + public function testIniConfig() + { + $config = parse_ini_file(__DIR__ . '/../config/test.ini'); + $client = new Client($config); - /** - * Test that the Refresh Token is not set when a new refresh token is returned. - */ - public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() - { - $refreshToken = 'REFRESH_TOKEN'; - $token = json_encode(array( - 'access_token' => 'xyz', - 'id_token' => 'ID_TOKEN', - 'refresh_token' => 'NEW_REFRESH_TOKEN' - )); - - $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); - $postBody->__toString() - ->wilLReturn($token); - - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - } - - $response->getBody() - ->willReturn($postBody->reveal()); - - $response->hasHeader('Content-Type')->willReturn(false); - - $http = $this->prophesize('GuzzleHttp\ClientInterface'); - - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn($guzzle5Request); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } - - $client = $this->getClient(); - $client->setHttpClient($http->reveal()); - $client->fetchAccessTokenWithRefreshToken($refreshToken); - $token = $client->getAccessToken(); - $this->assertEquals('NEW_REFRESH_TOKEN', $token['refresh_token']); - } - - /** - * Test fetching an access token with assertion credentials - * using "useApplicationDefaultCredentials" - */ - public function testFetchAccessTokenWithAssertionFromEnv() - { - $this->checkServiceAccountCredentials(); + $this->assertEquals('My Test application', $client->getConfig('application_name')); + $this->assertEquals( + 'gjfiwnGinpena3', + $client->getClientSecret() + ); + } - $client = $this->getClient(); - $client->useApplicationDefaultCredentials(); - $token = $client->fetchAccessTokenWithAssertion(); + public function testNoAuth() + { + /** @var $noAuth Google_Auth_Simple */ + $client = new Client(); + $client->setDeveloperKey(null); + + // unset application credentials + $GOOGLE_APPLICATION_CREDENTIALS = getenv('GOOGLE_APPLICATION_CREDENTIALS'); + $HOME = getenv('HOME'); + putenv('GOOGLE_APPLICATION_CREDENTIALS='); + putenv('HOME='.sys_get_temp_dir()); + $http = new GuzzleClient(); + $client->authorize($http); + + putenv("GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"); + putenv("HOME=$HOME"); + $this->checkAuthHandler($http, null); + } - $this->assertNotNull($token); - $this->assertArrayHasKey('access_token', $token); - } + public function testApplicationDefaultCredentials() + { + $this->checkServiceAccountCredentials(); + $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - /** - * Test fetching an access token with assertion credentials - * using "setAuthConfig" - */ - public function testFetchAccessTokenWithAssertionFromFile() - { - $this->checkServiceAccountCredentials(); + $client = new Client(); + $client->setAuthConfig($credentialsFile); - $client = $this->getClient(); - $client->setAuthConfig(getenv('GOOGLE_APPLICATION_CREDENTIALS')); - $token = $client->fetchAccessTokenWithAssertion(); + $http = new GuzzleClient(); + $client->authorize($http); - $this->assertNotNull($token); - $this->assertArrayHasKey('access_token', $token); - } + $this->checkAuthHandler($http, 'AuthToken'); + $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials'); + } - /** - * Test fetching an access token with assertion credentials - * populates the "created" field - */ - public function testFetchAccessTokenWithAssertionAddsCreated() - { - $this->checkServiceAccountCredentials(); + public function testApplicationDefaultCredentialsWithSubject() + { + $this->checkServiceAccountCredentials(); + $credentialsFile = getenv('GOOGLE_APPLICATION_CREDENTIALS'); - $client = $this->getClient(); - $client->useApplicationDefaultCredentials(); - $token = $client->fetchAccessTokenWithAssertion(); + $sub = 'sub123'; + $client = new Client(); + $client->setAuthConfig($credentialsFile); + $client->setSubject($sub); - $this->assertNotNull($token); - $this->assertArrayHasKey('created', $token); - } + $http = new GuzzleClient(); + $client->authorize($http); - /** - * Test fetching an access token with assertion credentials - * using "setAuthConfig" and "setSubject" but with user credentials - */ - public function testBadSubjectThrowsException() - { - $this->checkServiceAccountCredentials(); - - $client = $this->getClient(); - $client->useApplicationDefaultCredentials(); - $client->setSubject('bad-subject'); - - $authHandler = AuthHandlerFactory::build(); - - // make this method public for testing purposes - $method = new ReflectionMethod($authHandler, 'createAuthHttp'); - $method->setAccessible(true); - $authHttp = $method->invoke($authHandler, $client->getHttpClient()); - - try { - $token = $client->fetchAccessTokenWithAssertion($authHttp); - $this->fail('no exception thrown'); - } catch (ClientException $e) { - $response = $e->getResponse(); - $this->assertContains('Invalid impersonation', (string) $response->getBody()); - } - } - - public function testTokenCallback() - { - $this->onlyPhp55AndAbove(); - $this->checkToken(); - - $client = $this->getClient(); - $accessToken = $client->getAccessToken(); - - if (!isset($accessToken['refresh_token'])) { - $this->markTestSkipped('Refresh Token required'); - } - - // make the auth library think the token is expired - $accessToken['expires_in'] = 0; - $cache = $client->getCache(); - $path = sys_get_temp_dir().'/google-api-php-client-tests-'.time(); - $client->setCache($this->getCache($path)); - $client->setAccessToken($accessToken); - - // create the callback function - $phpunit = $this; - $called = false; - $callback = function ($key, $value) use ($client, $cache, $phpunit, &$called) { - // assert the expected keys and values - $phpunit->assertNotNull($key); - $phpunit->assertNotNull($value); - $called = true; - - // go back to the previous cache - $client->setCache($cache); - }; - - // set the token callback to the client - $client->setTokenCallback($callback); - - // make a silly request to obtain a new token (it's ok if it fails) - $http = $client->authorize(); - try { - $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); - } catch (Exception $e) {} - $newToken = $client->getAccessToken(); - - // go back to the previous cache - // (in case callback wasn't called) - $client->setCache($cache); - - $this->assertTrue($called); - } - - public function testDefaultTokenCallback() - { - $this->onlyPhp55AndAbove(); - $this->checkToken(); - - $client = $this->getClient(); - $accessToken = $client->getAccessToken(); - - if (!isset($accessToken['refresh_token'])) { - $this->markTestSkipped('Refresh Token required'); - } - - // make the auth library think the token is expired - $accessToken['expires_in'] = 0; - $client->setAccessToken($accessToken); - - // make a silly request to obtain a new token (it's ok if it fails) - $http = $client->authorize(); - try { - $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); - } catch (Exception $e) {} - - // Assert the in-memory token has been updated - $newToken = $client->getAccessToken(); - $this->assertNotEquals( - $accessToken['access_token'], - $newToken['access_token'] - ); - - $this->assertFalse($client->isAccessTokenExpired()); - } - - /** @runInSeparateProcess */ - public function testOnGceCacheAndCacheOptions() - { - if (!class_exists(GCECache::class)) { - $this->markTestSkipped('Requires google/auth >= 1.12'); - } - - putenv('HOME='); - putenv('GOOGLE_APPLICATION_CREDENTIALS='); - $prefix = 'test_prefix_'; - $cacheConfig = ['gce_prefix' => $prefix]; - - $mockCacheItem = $this->prophesize(CacheItemInterface::class); - $mockCacheItem->isHit() - ->willReturn(true); - $mockCacheItem->get() - ->shouldBeCalledTimes(1) - ->willReturn(true); + $this->checkAuthHandler($http, 'AuthToken'); + $this->checkCredentials($http, 'Google\Auth\Credentials\ServiceAccountCredentials', $sub); + } - $mockCache = $this->prophesize(CacheItemPoolInterface::class); - $mockCache->getItem($prefix . GCECache::GCE_CACHE_KEY) - ->shouldBeCalledTimes(1) - ->willReturn($mockCacheItem->reveal()); - - $client = new Client(['cache_config' => $cacheConfig]); - $client->setCache($mockCache->reveal()); - $client->useApplicationDefaultCredentials(); - $client->authorize(); - } - - /** @runInSeparateProcess */ - public function testFetchAccessTokenWithAssertionCache() - { - $this->checkServiceAccountCredentials(); - $cachedValue = ['access_token' => '2/abcdef1234567890']; - $mockCacheItem = $this->prophesize(CacheItemInterface::class); - $mockCacheItem->isHit() - ->shouldBeCalledTimes(1) - ->willReturn(true); - $mockCacheItem->get() - ->shouldBeCalledTimes(1) - ->willReturn($cachedValue); + /** + * Test that the ID token is properly refreshed. + */ + public function testRefreshTokenSetsValues() + { + $token = json_encode([ + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + ]); + $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $postBody->__toString() + ->shouldBeCalledTimes(1) + ->willReturn($token); + + if ($this->isGuzzle5()) { + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->shouldBeCalledTimes(1) + ->willReturn(200); + } else { + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + } + + $response->getBody() + ->shouldBeCalledTimes(1) + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + + if ($this->isGuzzle5()) { + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->shouldBeCalledTimes(1) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } + + $client = $this->getClient(); + $client->setHttpClient($http->reveal()); + $client->fetchAccessTokenWithRefreshToken("REFRESH_TOKEN"); + $token = $client->getAccessToken(); + $this->assertEquals("ID_TOKEN", $token['id_token']); + } - $mockCache = $this->prophesize(CacheItemPoolInterface::class); - $mockCache->getItem(Argument::any()) - ->shouldBeCalledTimes(1) - ->willReturn($mockCacheItem->reveal()); - - $client = new Client(); - $client->setCache($mockCache->reveal()); - $client->useApplicationDefaultCredentials(); - $token = $client->fetchAccessTokenWithAssertion(); - $this->assertArrayHasKey('access_token', $token); - $this->assertEquals($cachedValue['access_token'], $token['access_token']); - } - - public function testCacheClientOption() - { - $mockCache = $this->prophesize(CacheItemPoolInterface::class); - $client = new Client([ - 'cache' => $mockCache->reveal() - ]); - $this->assertEquals($mockCache->reveal(), $client->getCache()); - } - - public function testExecuteWithFormat() - { - $this->onlyGuzzle6Or7(); - - $client = new Client([ - 'api_format_v2' => true - ]); - - $guzzle = $this->prophesize('GuzzleHttp\Client'); - $guzzle - ->send(Argument::allOf( - Argument::type('Psr\Http\Message\RequestInterface'), - Argument::that(function (RequestInterface $request) { - return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; - }) - ), []) - ->shouldBeCalled() - ->willReturn(new Response(200, [], null)); - - $client->setHttpClient($guzzle->reveal()); - - $request = new Request('POST', 'http://foo.bar/'); - $client->execute($request); - } - - public function testExecuteSetsCorrectHeaders() - { - $this->onlyGuzzle6Or7(); - - $client = new Client(); - - $guzzle = $this->prophesize('GuzzleHttp\Client'); - $guzzle->send(Argument::that(function (RequestInterface $request) { - $userAgent = sprintf( - '%s%s', - Client::USER_AGENT_SUFFIX, - Client::LIBVER - ); - $xGoogApiClient = sprintf( - 'gl-php/%s gdcl/%s', - phpversion(), - Client::LIBVER - ); - - if ($request->getHeaderLine('User-Agent') !== $userAgent) { - return false; - } - - if ($request->getHeaderLine('x-goog-api-client') !== $xGoogApiClient) { - return false; - } - - return true; - }), [])->shouldBeCalledTimes(1)->willReturn(new Response(200, [], null)); - - $client->setHttpClient($guzzle->reveal()); - - $request = new Request('POST', 'http://foo.bar/'); - $client->execute($request); - } - - /** + /** + * Test that the Refresh Token is set when refreshed. + */ + public function testRefreshTokenIsSetOnRefresh() + { + $refreshToken = 'REFRESH_TOKEN'; + $token = json_encode(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + )); + $postBody = $this->prophesize('Psr\Http\Message\StreamInterface'); + $postBody->__toString() + ->shouldBeCalledTimes(1) + ->willReturn($token); + + if ($this->isGuzzle5()) { + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->shouldBeCalledTimes(1) + ->willReturn(200); + } else { + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + } + + $response->getBody() + ->shouldBeCalledTimes(1) + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + + if ($this->isGuzzle5()) { + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } + + $client = $this->getClient(); + $client->setHttpClient($http->reveal()); + $client->fetchAccessTokenWithRefreshToken($refreshToken); + $token = $client->getAccessToken(); + $this->assertEquals($refreshToken, $token['refresh_token']); + } + + /** + * Test that the Refresh Token is not set when a new refresh token is returned. + */ + public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() + { + $refreshToken = 'REFRESH_TOKEN'; + $token = json_encode(array( + 'access_token' => 'xyz', + 'id_token' => 'ID_TOKEN', + 'refresh_token' => 'NEW_REFRESH_TOKEN' + )); + + $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); + $postBody->__toString() + ->wilLReturn($token); + + if ($this->isGuzzle5()) { + $response = $this->getGuzzle5ResponseMock(); + $response->getStatusCode() + ->willReturn(200); + } else { + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); + } + + $response->getBody() + ->willReturn($postBody->reveal()); + + $response->hasHeader('Content-Type')->willReturn(false); + + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + + if ($this->isGuzzle5()) { + $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn($guzzle5Request); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->willReturn($response->reveal()); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); + } + + $client = $this->getClient(); + $client->setHttpClient($http->reveal()); + $client->fetchAccessTokenWithRefreshToken($refreshToken); + $token = $client->getAccessToken(); + $this->assertEquals('NEW_REFRESH_TOKEN', $token['refresh_token']); + } + + /** + * Test fetching an access token with assertion credentials + * using "useApplicationDefaultCredentials" + */ + public function testFetchAccessTokenWithAssertionFromEnv() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('access_token', $token); + } + + /** + * Test fetching an access token with assertion credentials + * using "setAuthConfig" + */ + public function testFetchAccessTokenWithAssertionFromFile() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->setAuthConfig(getenv('GOOGLE_APPLICATION_CREDENTIALS')); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('access_token', $token); + } + + /** + * Test fetching an access token with assertion credentials + * populates the "created" field + */ + public function testFetchAccessTokenWithAssertionAddsCreated() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + + $this->assertNotNull($token); + $this->assertArrayHasKey('created', $token); + } + + /** + * Test fetching an access token with assertion credentials + * using "setAuthConfig" and "setSubject" but with user credentials + */ + public function testBadSubjectThrowsException() + { + $this->checkServiceAccountCredentials(); + + $client = $this->getClient(); + $client->useApplicationDefaultCredentials(); + $client->setSubject('bad-subject'); + + $authHandler = AuthHandlerFactory::build(); + + // make this method public for testing purposes + $method = new ReflectionMethod($authHandler, 'createAuthHttp'); + $method->setAccessible(true); + $authHttp = $method->invoke($authHandler, $client->getHttpClient()); + + try { + $token = $client->fetchAccessTokenWithAssertion($authHttp); + $this->fail('no exception thrown'); + } catch (ClientException $e) { + $response = $e->getResponse(); + $this->assertContains('Invalid impersonation', (string) $response->getBody()); + } + } + + public function testTokenCallback() + { + $this->onlyPhp55AndAbove(); + $this->checkToken(); + + $client = $this->getClient(); + $accessToken = $client->getAccessToken(); + + if (!isset($accessToken['refresh_token'])) { + $this->markTestSkipped('Refresh Token required'); + } + + // make the auth library think the token is expired + $accessToken['expires_in'] = 0; + $cache = $client->getCache(); + $path = sys_get_temp_dir().'/google-api-php-client-tests-'.time(); + $client->setCache($this->getCache($path)); + $client->setAccessToken($accessToken); + + // create the callback function + $phpunit = $this; + $called = false; + $callback = function ($key, $value) use ($client, $cache, $phpunit, &$called) { + // assert the expected keys and values + $phpunit->assertNotNull($key); + $phpunit->assertNotNull($value); + $called = true; + + // go back to the previous cache + $client->setCache($cache); + }; + + // set the token callback to the client + $client->setTokenCallback($callback); + + // make a silly request to obtain a new token (it's ok if it fails) + $http = $client->authorize(); + try { + $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + } catch (Exception $e) { + + } + $newToken = $client->getAccessToken(); + + // go back to the previous cache + // (in case callback wasn't called) + $client->setCache($cache); + + $this->assertTrue($called); + } + + public function testDefaultTokenCallback() + { + $this->onlyPhp55AndAbove(); + $this->checkToken(); + + $client = $this->getClient(); + $accessToken = $client->getAccessToken(); + + if (!isset($accessToken['refresh_token'])) { + $this->markTestSkipped('Refresh Token required'); + } + + // make the auth library think the token is expired + $accessToken['expires_in'] = 0; + $client->setAccessToken($accessToken); + + // make a silly request to obtain a new token (it's ok if it fails) + $http = $client->authorize(); + try { + $http->get('https://www.googleapis.com/books/v1/volumes?q=Voltaire'); + } catch (Exception $e) { + + } + + // Assert the in-memory token has been updated + $newToken = $client->getAccessToken(); + $this->assertNotEquals( + $accessToken['access_token'], + $newToken['access_token'] + ); + + $this->assertFalse($client->isAccessTokenExpired()); + } + + /** @runInSeparateProcess */ + public function testOnGceCacheAndCacheOptions() + { + if (!class_exists(GCECache::class)) { + $this->markTestSkipped('Requires google/auth >= 1.12'); + } + + putenv('HOME='); + putenv('GOOGLE_APPLICATION_CREDENTIALS='); + $prefix = 'test_prefix_'; + $cacheConfig = ['gce_prefix' => $prefix]; + + $mockCacheItem = $this->prophesize(CacheItemInterface::class); + $mockCacheItem->isHit() + ->willReturn(true); + $mockCacheItem->get() + ->shouldBeCalledTimes(1) + ->willReturn(true); + + $mockCache = $this->prophesize(CacheItemPoolInterface::class); + $mockCache->getItem($prefix . GCECache::GCE_CACHE_KEY) + ->shouldBeCalledTimes(1) + ->willReturn($mockCacheItem->reveal()); + + $client = new Client(['cache_config' => $cacheConfig]); + $client->setCache($mockCache->reveal()); + $client->useApplicationDefaultCredentials(); + $client->authorize(); + } + + /** @runInSeparateProcess */ + public function testFetchAccessTokenWithAssertionCache() + { + $this->checkServiceAccountCredentials(); + $cachedValue = ['access_token' => '2/abcdef1234567890']; + $mockCacheItem = $this->prophesize(CacheItemInterface::class); + $mockCacheItem->isHit() + ->shouldBeCalledTimes(1) + ->willReturn(true); + $mockCacheItem->get() + ->shouldBeCalledTimes(1) + ->willReturn($cachedValue); + + $mockCache = $this->prophesize(CacheItemPoolInterface::class); + $mockCache->getItem(Argument::any()) + ->shouldBeCalledTimes(1) + ->willReturn($mockCacheItem->reveal()); + + $client = new Client(); + $client->setCache($mockCache->reveal()); + $client->useApplicationDefaultCredentials(); + $token = $client->fetchAccessTokenWithAssertion(); + $this->assertArrayHasKey('access_token', $token); + $this->assertEquals($cachedValue['access_token'], $token['access_token']); + } + + public function testCacheClientOption() + { + $mockCache = $this->prophesize(CacheItemPoolInterface::class); + $client = new Client([ + 'cache' => $mockCache->reveal() + ]); + $this->assertEquals($mockCache->reveal(), $client->getCache()); + } + + public function testExecuteWithFormat() + { + $this->onlyGuzzle6Or7(); + + $client = new Client([ + 'api_format_v2' => true + ]); + + $guzzle = $this->prophesize('GuzzleHttp\Client'); + $guzzle + ->send(Argument::allOf( + Argument::type('Psr\Http\Message\RequestInterface'), + Argument::that(function (RequestInterface $request) { + return $request->getHeaderLine('X-GOOG-API-FORMAT-VERSION') === '2'; + }) + ), []) + ->shouldBeCalled() + ->willReturn(new Response(200, [], null)); + + $client->setHttpClient($guzzle->reveal()); + + $request = new Request('POST', 'http://foo.bar/'); + $client->execute($request); + } + + public function testExecuteSetsCorrectHeaders() + { + $this->onlyGuzzle6Or7(); + + $client = new Client(); + + $guzzle = $this->prophesize('GuzzleHttp\Client'); + $guzzle->send(Argument::that(function (RequestInterface $request) { + $userAgent = sprintf( + '%s%s', + Client::USER_AGENT_SUFFIX, + Client::LIBVER + ); + $xGoogApiClient = sprintf( + 'gl-php/%s gdcl/%s', + phpversion(), + Client::LIBVER + ); + + if ($request->getHeaderLine('User-Agent') !== $userAgent) { + return false; + } + + if ($request->getHeaderLine('x-goog-api-client') !== $xGoogApiClient) { + return false; + } + + return true; + }), [])->shouldBeCalledTimes(1)->willReturn(new Response(200, [], null)); + + $client->setHttpClient($guzzle->reveal()); + + $request = new Request('POST', 'http://foo.bar/'); + $client->execute($request); + } + + /** * @runInSeparateProcess */ - public function testClientOptions() - { - // Test credential file - $tmpCreds = [ - 'type' => 'service_account', - 'client_id' => 'foo', - 'client_email' => '', - 'private_key' => '' - ]; - $tmpCredFile = tempnam(sys_get_temp_dir(), 'creds') . '.json'; - file_put_contents($tmpCredFile, json_encode($tmpCreds)); - $client = new Client([ - 'credentials' => $tmpCredFile - ]); - $this->assertEquals('foo', $client->getClientId()); - - // Test credentials array - $client = new Client([ - 'credentials' => $tmpCredFile - ]); - $this->assertEquals('foo', $client->getClientId()); - - // Test singular scope - $client = new Client([ - 'scopes' => 'a-scope' - ]); - $this->assertEquals(['a-scope'], $client->getScopes()); - - // Test multiple scopes - $client = new Client([ - 'scopes' => ['one-scope', 'two-scope'] - ]); - $this->assertEquals(['one-scope', 'two-scope'], $client->getScopes()); - - // Test quota project - $client = new Client([ - 'quota_project' => 'some-quota-project' - ]); - $this->assertEquals('some-quota-project', $client->getConfig('quota_project')); - // Test quota project in google/auth dependency - putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpCredFile); - $method = new ReflectionMethod($client, 'createApplicationDefaultCredentials'); - $method->setAccessible(true); - $credentials = $method->invoke($client); - $this->assertEquals('some-quota-project', $credentials->getQuotaProject()); - } - - public function testCredentialsOptionWithCredentialsLoader() - { - $this->onlyGuzzle6Or7(); - - $request = null; - $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); - $credentials->getCacheKey() - ->willReturn('cache-key'); - - // Ensure the access token provided by our credentials loader is used - $credentials->fetchAuthToken(Argument::any()) - ->shouldBeCalledOnce() - ->willReturn(['access_token' => 'abc']); - - $client = new Client(['credentials' => $credentials->reveal()]); - - $handler = $this->prophesize('GuzzleHttp\HandlerStack'); - $handler->remove('google_auth') - ->shouldBeCalledOnce(); - $handler->push(Argument::any(), 'google_auth') - ->shouldBeCalledOnce() - ->will(function($args) use (&$request) { - $middleware = $args[0]; - $callable = $middleware(function ($req, $res) use (&$request) { - $request = $req; // test later - }); - $callable(new Request('GET', '/fake-uri'), ['auth' => 'google_auth']); - }); - - $httpClient = $this->prophesize('GuzzleHttp\ClientInterface'); - $httpClient->getConfig() - ->shouldBeCalledOnce() - ->willReturn(['handler' => $handler->reveal()]); - $httpClient->getConfig('base_uri') - ->shouldBeCalledOnce(); - $httpClient->getConfig('verify') - ->shouldBeCalledOnce(); - $httpClient->getConfig('proxy') - ->shouldBeCalledOnce(); - $httpClient->send(Argument::any(), Argument::any()) - ->shouldNotBeCalled(); - - $http = $client->authorize($httpClient->reveal()); - - $this->assertNotNull($request); - $authHeader = $request->getHeaderLine('authorization'); - $this->assertNotNull($authHeader); - $this->assertEquals('Bearer abc', $authHeader); - } + public function testClientOptions() + { + // Test credential file + $tmpCreds = [ + 'type' => 'service_account', + 'client_id' => 'foo', + 'client_email' => '', + 'private_key' => '' + ]; + $tmpCredFile = tempnam(sys_get_temp_dir(), 'creds') . '.json'; + file_put_contents($tmpCredFile, json_encode($tmpCreds)); + $client = new Client([ + 'credentials' => $tmpCredFile + ]); + $this->assertEquals('foo', $client->getClientId()); + + // Test credentials array + $client = new Client([ + 'credentials' => $tmpCredFile + ]); + $this->assertEquals('foo', $client->getClientId()); + + // Test singular scope + $client = new Client([ + 'scopes' => 'a-scope' + ]); + $this->assertEquals(['a-scope'], $client->getScopes()); + + // Test multiple scopes + $client = new Client([ + 'scopes' => ['one-scope', 'two-scope'] + ]); + $this->assertEquals(['one-scope', 'two-scope'], $client->getScopes()); + + // Test quota project + $client = new Client([ + 'quota_project' => 'some-quota-project' + ]); + $this->assertEquals('some-quota-project', $client->getConfig('quota_project')); + // Test quota project in google/auth dependency + putenv('GOOGLE_APPLICATION_CREDENTIALS='.$tmpCredFile); + $method = new ReflectionMethod($client, 'createApplicationDefaultCredentials'); + $method->setAccessible(true); + $credentials = $method->invoke($client); + $this->assertEquals('some-quota-project', $credentials->getQuotaProject()); + } + + public function testCredentialsOptionWithCredentialsLoader() + { + $this->onlyGuzzle6Or7(); + + $request = null; + $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); + $credentials->getCacheKey() + ->willReturn('cache-key'); + + // Ensure the access token provided by our credentials loader is used + $credentials->fetchAuthToken(Argument::any()) + ->shouldBeCalledOnce() + ->willReturn(['access_token' => 'abc']); + + $client = new Client(['credentials' => $credentials->reveal()]); + + $handler = $this->prophesize('GuzzleHttp\HandlerStack'); + $handler->remove('google_auth') + ->shouldBeCalledOnce(); + $handler->push(Argument::any(), 'google_auth') + ->shouldBeCalledOnce() + ->will(function ($args) use (&$request) { + $middleware = $args[0]; + $callable = $middleware(function ($req, $res) use (&$request) { + $request = $req; // test later + }); + $callable(new Request('GET', '/fake-uri'), ['auth' => 'google_auth']); + }); + + $httpClient = $this->prophesize('GuzzleHttp\ClientInterface'); + $httpClient->getConfig() + ->shouldBeCalledOnce() + ->willReturn(['handler' => $handler->reveal()]); + $httpClient->getConfig('base_uri') + ->shouldBeCalledOnce(); + $httpClient->getConfig('verify') + ->shouldBeCalledOnce(); + $httpClient->getConfig('proxy') + ->shouldBeCalledOnce(); + $httpClient->send(Argument::any(), Argument::any()) + ->shouldNotBeCalled(); + + $http = $client->authorize($httpClient->reveal()); + + $this->assertNotNull($request); + $authHeader = $request->getHeaderLine('authorization'); + $this->assertNotNull($authHeader); + $this->assertEquals('Bearer abc', $authHeader); + } } diff --git a/tests/Google/Http/BatchTest.php b/tests/Google/Http/BatchTest.php index 49046d4c1..e60421a06 100644 --- a/tests/Google/Http/BatchTest.php +++ b/tests/Google/Http/BatchTest.php @@ -29,65 +29,65 @@ class BatchTest extends BaseTest { - public function testBatchRequest() - { - $this->checkKey(); - $client = $this->getClient(); - $client->setUseBatch(true); - $books = new Books($client); - $batch = $books->createBatch(); + public function testBatchRequest() + { + $this->checkKey(); + $client = $this->getClient(); + $client->setUseBatch(true); + $books = new Books($client); + $batch = $books->createBatch(); - $batch->add($books->volumes->listVolumes('Henry David Thoreau'), 'key1'); - $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); + $batch->add($books->volumes->listVolumes('Henry David Thoreau'), 'key1'); + $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); - $result = $batch->execute(); - $this->assertArrayHasKey('response-key1', $result); - $this->assertArrayHasKey('response-key2', $result); - } + $result = $batch->execute(); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + } - public function testInvalidBatchRequest() - { - $this->checkKey(); - $client = $this->getClient(); - $client->setUseBatch(true); - $books = new Books($client); - $batch = $books->createBatch(); + public function testInvalidBatchRequest() + { + $this->checkKey(); + $client = $this->getClient(); + $client->setUseBatch(true); + $books = new Books($client); + $batch = $books->createBatch(); - $batch->add($books->volumes->listVolumes(false), 'key1'); - $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); + $batch->add($books->volumes->listVolumes(false), 'key1'); + $batch->add($books->volumes->listVolumes('Edgar Allen Poe'), 'key2'); - $result = $batch->execute(); - $this->assertArrayHasKey('response-key1', $result); - $this->assertArrayHasKey('response-key2', $result); - $this->assertInstanceOf( - ServiceException::class, - $result['response-key1'] - ); - } + $result = $batch->execute(); + $this->assertArrayHasKey('response-key1', $result); + $this->assertArrayHasKey('response-key2', $result); + $this->assertInstanceOf( + ServiceException::class, + $result['response-key1'] + ); + } - public function testMediaFileBatch() - { - $client = $this->getClient(); - $storage = new Storage($client); - $bucket = 'testbucket'; - $stream = Psr7\Utils::streamFor("testbucket-text"); - $params = [ - 'data' => $stream, - 'mimeType' => 'text/plain', - ]; + public function testMediaFileBatch() + { + $client = $this->getClient(); + $storage = new Storage($client); + $bucket = 'testbucket'; + $stream = Psr7\Utils::streamFor("testbucket-text"); + $params = [ + 'data' => $stream, + 'mimeType' => 'text/plain', + ]; - // Metadata object for new Google Cloud Storage object - $obj = new Storage\StorageObject(); - $obj->contentType = "text/plain"; + // Metadata object for new Google Cloud Storage object + $obj = new Storage\StorageObject(); + $obj->contentType = "text/plain"; - // Batch Upload - $client->setUseBatch(true); - $obj->name = "batch"; - /** @var \GuzzleHttp\Psr7\Request $request */ - $request = $storage->objects->insert($bucket, $obj, $params); + // Batch Upload + $client->setUseBatch(true); + $obj->name = "batch"; + /** @var \GuzzleHttp\Psr7\Request $request */ + $request = $storage->objects->insert($bucket, $obj, $params); - $this->assertStringContainsString('multipart/related', $request->getHeaderLine('content-type')); - $this->assertStringContainsString('/upload/', $request->getUri()->getPath()); - $this->assertStringContainsString('uploadType=multipart', $request->getUri()->getQuery()); - } + $this->assertStringContainsString('multipart/related', $request->getHeaderLine('content-type')); + $this->assertStringContainsString('/upload/', $request->getUri()->getPath()); + $this->assertStringContainsString('uploadType=multipart', $request->getUri()->getQuery()); + } } diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index d8d3a2a08..bfb824169 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -29,177 +29,177 @@ class MediaFileUploadTest extends BaseTest { - public function testMediaFile() - { - $client = $this->getClient(); - $request = new Request('POST', 'http://www.example.com'); - $media = new MediaFileUpload( - $client, - $request, - 'image/png', - base64_decode('data:image/png;base64,a') - ); - $request = $media->getRequest(); - - $this->assertEquals(0, $media->getProgress()); - $this->assertGreaterThan(0, strlen($request->getBody())); - } - - public function testGetUploadType() - { - $client = $this->getClient(); - $request = new Request('POST', 'http://www.example.com'); - - // Test resumable upload - $media = new MediaFileUpload($client, $request, 'image/png', 'a', true); - $this->assertEquals('resumable', $media->getUploadType(null)); - - // Test data *only* uploads - $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); - $this->assertEquals('media', $media->getUploadType(null)); - - // Test multipart uploads - $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); - $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); - } - - public function testProcess() - { - $client = $this->getClient(); - $data = 'foo'; - - // Test data *only* uploads. - $request = new Request('POST', 'http://www.example.com'); - $media = new MediaFileUpload($client, $request, 'image/png', $data, false); - $request = $media->getRequest(); - $this->assertEquals($data, (string) $request->getBody()); - - // Test resumable (meta data) - we want to send the metadata, not the app data. - $request = new Request('POST', 'http://www.example.com'); - $reqData = json_encode("hello"); - $request = $request->withBody(Psr7\Utils::streamFor($reqData)); - $media = new MediaFileUpload($client, $request, 'image/png', $data, true); - $request = $media->getRequest(); - $this->assertEquals(json_decode($reqData), (string) $request->getBody()); - - // Test multipart - we are sending encoded meta data and post data - $request = new Request('POST', 'http://www.example.com'); - $reqData = json_encode("hello"); - $request = $request->withBody(Psr7\Utils::streamFor($reqData)); - $media = new MediaFileUpload($client, $request, 'image/png', $data, false); - $request = $media->getRequest(); - $this->assertStringContainsString($reqData, (string) $request->getBody()); - $this->assertStringContainsString(base64_encode($data), (string) $request->getBody()); - } - - public function testGetResumeUri() - { - $this->checkToken(); - - $client = $this->getClient(); - $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Drive($client); - $file = new Drive\DriveFile(); - $file->name = 'TESTFILE-testGetResumeUri'; - $chunkSizeBytes = 1 * 1024 * 1024; - - // Call the API with the media upload, defer so it doesn't immediately return. - $client->setDefer(true); - $request = $service->files->create($file); - - // Create a media file upload to represent our upload process. - $media = new MediaFileUpload( - $client, - $request, - 'text/plain', - null, - true, - $chunkSizeBytes - ); - - // request the resumable url - $uri = $media->getResumeUri(); - $this->assertIsString($uri); - - // parse the URL - $parts = parse_url($uri); - $this->assertArrayHasKey('query', $parts); - - // parse the querystring - parse_str($parts['query'], $query); - $this->assertArrayHasKey('uploadType', $query); - $this->assertArrayHasKey('upload_id', $query); - $this->assertEquals('resumable', $query['uploadType']); - } - - public function testNextChunk() - { - $this->checkToken(); - - $client = $this->getClient(); - $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Drive($client); - - $data = 'foo'; - $file = new Drive\DriveFile(); - $file->name = $name = 'TESTFILE-testNextChunk'; - - // Call the API with the media upload, defer so it doesn't immediately return. - $client->setDefer(true); - $request = $service->files->create($file); - - // Create a media file upload to represent our upload process. - $media = new MediaFileUpload( - $client, - $request, - 'text/plain', - null, - true - ); - $media->setFileSize(strlen($data)); - - // upload the file - $file = $media->nextChunk($data); - $this->assertInstanceOf(Drive\DriveFile::class, $file); - $this->assertEquals($name, $file->name); - - // remove the file - $client->setDefer(false); - $response = $service->files->delete($file->id); - $this->assertEquals(204, $response->getStatusCode()); - } - - public function testNextChunkWithMoreRemaining() - { - $this->checkToken(); - - $client = $this->getClient(); - $client->addScope("https://www.googleapis.com/auth/drive"); - $service = new Drive($client); - - $chunkSizeBytes = 262144; // smallest chunk size allowed by APIs - $data = str_repeat('.', $chunkSizeBytes+1); - $file = new Drive\DriveFile(); - $file->name = $name = 'TESTFILE-testNextChunkWithMoreRemaining'; - - // Call the API with the media upload, defer so it doesn't immediately return. - $client->setDefer(true); - $request = $service->files->create($file); - - // Create a media file upload to represent our upload process. - $media = new MediaFileUpload( - $client, - $request, - 'text/plain', - $data, - true, - $chunkSizeBytes - ); - $media->setFileSize(strlen($data)); - - // upload the file - $file = $media->nextChunk(); - // false means we aren't done uploading, which is exactly what we expect! - $this->assertFalse($file); - } + public function testMediaFile() + { + $client = $this->getClient(); + $request = new Request('POST', 'http://www.example.com'); + $media = new MediaFileUpload( + $client, + $request, + 'image/png', + base64_decode('data:image/png;base64,a') + ); + $request = $media->getRequest(); + + $this->assertEquals(0, $media->getProgress()); + $this->assertGreaterThan(0, strlen($request->getBody())); + } + + public function testGetUploadType() + { + $client = $this->getClient(); + $request = new Request('POST', 'http://www.example.com'); + + // Test resumable upload + $media = new MediaFileUpload($client, $request, 'image/png', 'a', true); + $this->assertEquals('resumable', $media->getUploadType(null)); + + // Test data *only* uploads + $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); + $this->assertEquals('media', $media->getUploadType(null)); + + // Test multipart uploads + $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); + $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); + } + + public function testProcess() + { + $client = $this->getClient(); + $data = 'foo'; + + // Test data *only* uploads. + $request = new Request('POST', 'http://www.example.com'); + $media = new MediaFileUpload($client, $request, 'image/png', $data, false); + $request = $media->getRequest(); + $this->assertEquals($data, (string) $request->getBody()); + + // Test resumable (meta data) - we want to send the metadata, not the app data. + $request = new Request('POST', 'http://www.example.com'); + $reqData = json_encode("hello"); + $request = $request->withBody(Psr7\Utils::streamFor($reqData)); + $media = new MediaFileUpload($client, $request, 'image/png', $data, true); + $request = $media->getRequest(); + $this->assertEquals(json_decode($reqData), (string) $request->getBody()); + + // Test multipart - we are sending encoded meta data and post data + $request = new Request('POST', 'http://www.example.com'); + $reqData = json_encode("hello"); + $request = $request->withBody(Psr7\Utils::streamFor($reqData)); + $media = new MediaFileUpload($client, $request, 'image/png', $data, false); + $request = $media->getRequest(); + $this->assertStringContainsString($reqData, (string) $request->getBody()); + $this->assertStringContainsString(base64_encode($data), (string) $request->getBody()); + } + + public function testGetResumeUri() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Drive($client); + $file = new Drive\DriveFile(); + $file->name = 'TESTFILE-testGetResumeUri'; + $chunkSizeBytes = 1 * 1024 * 1024; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->create($file); + + // Create a media file upload to represent our upload process. + $media = new MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true, + $chunkSizeBytes + ); + + // request the resumable url + $uri = $media->getResumeUri(); + $this->assertIsString($uri); + + // parse the URL + $parts = parse_url($uri); + $this->assertArrayHasKey('query', $parts); + + // parse the querystring + parse_str($parts['query'], $query); + $this->assertArrayHasKey('uploadType', $query); + $this->assertArrayHasKey('upload_id', $query); + $this->assertEquals('resumable', $query['uploadType']); + } + + public function testNextChunk() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Drive($client); + + $data = 'foo'; + $file = new Drive\DriveFile(); + $file->name = $name = 'TESTFILE-testNextChunk'; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->create($file); + + // Create a media file upload to represent our upload process. + $media = new MediaFileUpload( + $client, + $request, + 'text/plain', + null, + true + ); + $media->setFileSize(strlen($data)); + + // upload the file + $file = $media->nextChunk($data); + $this->assertInstanceOf(Drive\DriveFile::class, $file); + $this->assertEquals($name, $file->name); + + // remove the file + $client->setDefer(false); + $response = $service->files->delete($file->id); + $this->assertEquals(204, $response->getStatusCode()); + } + + public function testNextChunkWithMoreRemaining() + { + $this->checkToken(); + + $client = $this->getClient(); + $client->addScope("https://www.googleapis.com/auth/drive"); + $service = new Drive($client); + + $chunkSizeBytes = 262144; // smallest chunk size allowed by APIs + $data = str_repeat('.', $chunkSizeBytes+1); + $file = new Drive\DriveFile(); + $file->name = $name = 'TESTFILE-testNextChunkWithMoreRemaining'; + + // Call the API with the media upload, defer so it doesn't immediately return. + $client->setDefer(true); + $request = $service->files->create($file); + + // Create a media file upload to represent our upload process. + $media = new MediaFileUpload( + $client, + $request, + 'text/plain', + $data, + true, + $chunkSizeBytes + ); + $media->setFileSize(strlen($data)); + + // upload the file + $file = $media->nextChunk(); + // false means we aren't done uploading, which is exactly what we expect! + $this->assertFalse($file); + } } diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index fb15ac238..2c8bb2136 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -27,115 +27,116 @@ class RESTTest extends BaseTest { - /** + /** * @var REST $rest */ - private $rest; - - public function set_up() - { - $this->rest = new REST(); - $this->request = new Request('GET', '/'); - } - - public function testDecodeResponse() - { - $client = $this->getClient(); - $response = new Response(204); - $decoded = $this->rest->decodeHttpResponse($response, $this->request); - $this->assertEquals($response, $decoded); - - foreach (array(200, 201) as $code) { - $headers = array('foo', 'bar'); - $stream = Psr7\Utils::streamFor('{"a": 1}'); - $response = new Response($code, $headers, $stream); - - $decoded = $this->rest->decodeHttpResponse($response, $this->request); - $this->assertEquals('{"a": 1}', (string) $decoded->getBody()); + private $rest; + + public function set_up() + { + $this->rest = new REST(); + $this->request = new Request('GET', '/'); + } + + public function testDecodeResponse() + { + $client = $this->getClient(); + $response = new Response(204); + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals($response, $decoded); + + foreach (array(200, 201) as $code) { + $headers = array('foo', 'bar'); + $stream = Psr7\Utils::streamFor('{"a": 1}'); + $response = new Response($code, $headers, $stream); + + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals('{"a": 1}', (string) $decoded->getBody()); + } + } + + public function testDecodeMediaResponse() + { + $client = $this->getClient(); + + $request = new Request('GET', 'http://www.example.com?alt=media'); + $headers = array(); + $stream = Psr7\Utils::streamFor('thisisnotvalidjson'); + $response = new Response(200, $headers, $stream); + + $decoded = $this->rest->decodeHttpResponse($response, $request); + $this->assertEquals('thisisnotvalidjson', (string) $decoded->getBody()); + } + + + public function testDecode500ResponseThrowsException() + { + $this->expectException(ServiceException::class); + $response = new Response(500); + $this->rest->decodeHttpResponse($response, $this->request); + } + + public function testExceptionResponse() + { + $this->expectException(ServiceException::class); + $http = new GuzzleClient(); + + $request = new Request('GET', 'http://httpbin.org/status/500'); + $response = $this->rest->doExecute($http, $request); + } + + public function testDecodeEmptyResponse() + { + $stream = Psr7\Utils::streamFor('{}'); + $response = new Response(200, array(), $stream); + $decoded = $this->rest->decodeHttpResponse($response, $this->request); + $this->assertEquals('{}', (string) $decoded->getBody()); + } + + public function testBadErrorFormatting() + { + $this->expectException(ServiceException::class); + $stream = Psr7\Utils::streamFor( + '{ + "error": { + "code": 500, + "message": null + } + }' + ); + $response = new Response(500, array(), $stream); + $this->rest->decodeHttpResponse($response, $this->request); + } + + public function tesProperErrorFormatting() + { + $this->expectException(ServiceException::class); + $stream = Psr7\Utils::streamFor( + '{ + error: { + errors: [ + { + "domain": "global", + "reason": "authError", + "message": "Invalid Credentials", + "locationType": "header", + "location": "Authorization", + } + ], + "code": 401, + "message": "Invalid Credentials" + } + }' + ); + $response = new Response(401, array(), $stream); + $this->rest->decodeHttpResponse($response, $this->request); + } + + public function testNotJson404Error() + { + $this->expectException(ServiceException::class); + $stream = Psr7\Utils::streamFor('Not Found'); + $response = new Response(404, array(), $stream); + $this->rest->decodeHttpResponse($response, $this->request); } - } - - public function testDecodeMediaResponse() - { - $client = $this->getClient(); - - $request = new Request('GET', 'http://www.example.com?alt=media'); - $headers = array(); - $stream = Psr7\Utils::streamFor('thisisnotvalidjson'); - $response = new Response(200, $headers, $stream); - - $decoded = $this->rest->decodeHttpResponse($response, $request); - $this->assertEquals('thisisnotvalidjson', (string) $decoded->getBody()); - } - - - public function testDecode500ResponseThrowsException() - { - $this->expectException(ServiceException::class); - $response = new Response(500); - $this->rest->decodeHttpResponse($response, $this->request); - } - - public function testExceptionResponse() - { - $this->expectException(ServiceException::class); - $http = new GuzzleClient(); - - $request = new Request('GET', 'http://httpbin.org/status/500'); - $response = $this->rest->doExecute($http, $request); - } - - public function testDecodeEmptyResponse() - { - $stream = Psr7\Utils::streamFor('{}'); - $response = new Response(200, array(), $stream); - $decoded = $this->rest->decodeHttpResponse($response, $this->request); - $this->assertEquals('{}', (string) $decoded->getBody()); - } - - public function testBadErrorFormatting() - { - $this->expectException(ServiceException::class); - $stream = Psr7\Utils::streamFor( - '{ - "error": { - "code": 500, - "message": null - } - }' - ); - $response = new Response(500, array(), $stream); - $this->rest->decodeHttpResponse($response, $this->request); - } - - public function tesProperErrorFormatting() - { - $this->expectException(ServiceException::class); - $stream = Psr7\Utils::streamFor( - '{ - error: { - errors: [ - { - "domain": "global", - "reason": "authError", - "message": "Invalid Credentials", - "locationType": "header", - "location": "Authorization", - } - ], - "code": 401, - "message": "Invalid Credentials" - }' - ); - $response = new Response(401, array(), $stream); - $this->rest->decodeHttpResponse($response, $this->request); - } - - public function testNotJson404Error() - { - $this->expectException(ServiceException::class); - $stream = Psr7\Utils::streamFor('Not Found'); - $response = new Response(404, array(), $stream); - $this->rest->decodeHttpResponse($response, $this->request); - } } diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index 240faabcc..35abcd310 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -28,7 +28,7 @@ class ModelTest extends BaseTest { - private $calendarData = '{ + private $calendarData = '{ "kind": "calendar#event", "etag": "\"-kteSF26GsdKQ5bfmcd4H3_-u3g/MTE0NTUyNTAxOTk0MjAwMA\"", "id": "1234566", @@ -61,229 +61,229 @@ class ModelTest extends BaseTest } }'; - public function testIntentionalNulls() - { - $data = json_decode($this->calendarData, true); - $event = new Calendar\Event($data); - $obj = json_decode(json_encode($event->toSimpleObject()), true); - $this->assertArrayHasKey('date', $obj['start']); - $this->assertArrayNotHasKey('dateTime', $obj['start']); - $date = new Calendar\EventDateTime(); - $date->setDate(Model::NULL_VALUE); - $event->setStart($date); - $obj = json_decode(json_encode($event->toSimpleObject()), true); - $this->assertNull($obj['start']['date']); - $this->assertArrayHasKey('date', $obj['start']); - $this->assertArrayNotHasKey('dateTime', $obj['start']); - } - public function testModelMutation() - { - $data = json_decode($this->calendarData, true); - $event = new Calendar\Event($data); - $date = new Calendar\EventDateTime(); - date_default_timezone_set('UTC'); - $dateString = Date("c"); - $summary = "hello"; - $date->setDate($dateString); - $event->setStart($date); - $event->setEnd($date); - $event->setSummary($summary); - $simpleEvent = $event->toSimpleObject(); - $this->assertEquals($dateString, $simpleEvent->start->date); - $this->assertEquals($dateString, $simpleEvent->end->date); - $this->assertEquals($summary, $simpleEvent->summary); + public function testIntentionalNulls() + { + $data = json_decode($this->calendarData, true); + $event = new Calendar\Event($data); + $obj = json_decode(json_encode($event->toSimpleObject()), true); + $this->assertArrayHasKey('date', $obj['start']); + $this->assertArrayNotHasKey('dateTime', $obj['start']); + $date = new Calendar\EventDateTime(); + $date->setDate(Model::NULL_VALUE); + $event->setStart($date); + $obj = json_decode(json_encode($event->toSimpleObject()), true); + $this->assertNull($obj['start']['date']); + $this->assertArrayHasKey('date', $obj['start']); + $this->assertArrayNotHasKey('dateTime', $obj['start']); + } + public function testModelMutation() + { + $data = json_decode($this->calendarData, true); + $event = new Calendar\Event($data); + $date = new Calendar\EventDateTime(); + date_default_timezone_set('UTC'); + $dateString = Date("c"); + $summary = "hello"; + $date->setDate($dateString); + $event->setStart($date); + $event->setEnd($date); + $event->setSummary($summary); + $simpleEvent = $event->toSimpleObject(); + $this->assertEquals($dateString, $simpleEvent->start->date); + $this->assertEquals($dateString, $simpleEvent->end->date); + $this->assertEquals($summary, $simpleEvent->summary); - $event2 = new Calendar\Event(); - $this->assertNull($event2->getStart()); - } + $event2 = new Calendar\Event(); + $this->assertNull($event2->getStart()); + } - public function testVariantTypes() - { - $file = new Drive\DriveFile(); - $metadata = new Drive\DriveFileImageMediaMetadata(); - $metadata->setCameraMake('Pokémon Snap'); - $file->setImageMediaMetadata($metadata); - $data = json_decode(json_encode($file->toSimpleObject()), true); - $this->assertEquals('Pokémon Snap', $data['imageMediaMetadata']['cameraMake']); - } + public function testVariantTypes() + { + $file = new Drive\DriveFile(); + $metadata = new Drive\DriveFileImageMediaMetadata(); + $metadata->setCameraMake('Pokémon Snap'); + $file->setImageMediaMetadata($metadata); + $data = json_decode(json_encode($file->toSimpleObject()), true); + $this->assertEquals('Pokémon Snap', $data['imageMediaMetadata']['cameraMake']); + } - public function testOddMappingNames() - { - $creative = new AdExchangeBuyer\Creative(); - $creative->setAccountId('12345'); - $creative->setBuyerCreativeId('12345'); - $creative->setAdvertiserName('Hi'); - $creative->setHTMLSnippet("

    Foo!

    "); - $creative->setClickThroughUrl(array('http://somedomain.com')); - $creative->setWidth(100); - $creative->setHeight(100); - $data = json_decode(json_encode($creative->toSimpleObject()), true); - $this->assertEquals($data['HTMLSnippet'], "

    Foo!

    "); - $this->assertEquals($data['width'], 100); - $this->assertEquals($data['height'], 100); - $this->assertEquals($data['accountId'], "12345"); - } + public function testOddMappingNames() + { + $creative = new AdExchangeBuyer\Creative(); + $creative->setAccountId('12345'); + $creative->setBuyerCreativeId('12345'); + $creative->setAdvertiserName('Hi'); + $creative->setHTMLSnippet("

    Foo!

    "); + $creative->setClickThroughUrl(array('http://somedomain.com')); + $creative->setWidth(100); + $creative->setHeight(100); + $data = json_decode(json_encode($creative->toSimpleObject()), true); + $this->assertEquals($data['HTMLSnippet'], "

    Foo!

    "); + $this->assertEquals($data['width'], 100); + $this->assertEquals($data['height'], 100); + $this->assertEquals($data['accountId'], "12345"); + } - public function testJsonStructure() - { - $model = new Model(); - $model->publicA = "This is a string"; - $model2 = new Model(); - $model2->publicC = 12345; - $model2->publicD = null; - $model->publicB = $model2; - $model3 = new Model(); - $model3->publicE = 54321; - $model3->publicF = null; - $model->publicG = array($model3, "hello", false); - $model->publicH = false; - $model->publicI = 0; - $string = json_encode($model->toSimpleObject()); - $data = json_decode($string, true); - $this->assertEquals(12345, $data['publicB']['publicC']); - $this->assertEquals("This is a string", $data['publicA']); - $this->assertArrayNotHasKey("publicD", $data['publicB']); - $this->assertArrayHasKey("publicE", $data['publicG'][0]); - $this->assertArrayNotHasKey("publicF", $data['publicG'][0]); - $this->assertEquals("hello", $data['publicG'][1]); - $this->assertFalse($data['publicG'][2]); - $this->assertArrayNotHasKey("data", $data); - $this->assertFalse($data['publicH']); - $this->assertEquals(0, $data['publicI']); - } + public function testJsonStructure() + { + $model = new Model(); + $model->publicA = "This is a string"; + $model2 = new Model(); + $model2->publicC = 12345; + $model2->publicD = null; + $model->publicB = $model2; + $model3 = new Model(); + $model3->publicE = 54321; + $model3->publicF = null; + $model->publicG = array($model3, "hello", false); + $model->publicH = false; + $model->publicI = 0; + $string = json_encode($model->toSimpleObject()); + $data = json_decode($string, true); + $this->assertEquals(12345, $data['publicB']['publicC']); + $this->assertEquals("This is a string", $data['publicA']); + $this->assertArrayNotHasKey("publicD", $data['publicB']); + $this->assertArrayHasKey("publicE", $data['publicG'][0]); + $this->assertArrayNotHasKey("publicF", $data['publicG'][0]); + $this->assertEquals("hello", $data['publicG'][1]); + $this->assertFalse($data['publicG'][2]); + $this->assertArrayNotHasKey("data", $data); + $this->assertFalse($data['publicH']); + $this->assertEquals(0, $data['publicI']); + } - public function testIssetPropertyOnModel() - { - $model = new Model(); - $model['foo'] = 'bar'; - $this->assertTrue(isset($model->foo)); - } + public function testIssetPropertyOnModel() + { + $model = new Model(); + $model['foo'] = 'bar'; + $this->assertTrue(isset($model->foo)); + } - public function testUnsetPropertyOnModel() - { - $model = new Model(); - $model['foo'] = 'bar'; - unset($model->foo); - $this->assertFalse(isset($model->foo)); - } + public function testUnsetPropertyOnModel() + { + $model = new Model(); + $model['foo'] = 'bar'; + unset($model->foo); + $this->assertFalse(isset($model->foo)); + } - public function testCollectionWithItemsFromConstructor() - { - $data = json_decode( - '{ - "kind": "calendar#events", - "id": "1234566", - "etag": "abcdef", - "totalItems": 4, - "items": [ - {"id": 1}, - {"id": 2}, - {"id": 3}, - {"id": 4} - ] - }', - true - ); - $collection = new Calendar\Events($data); - $this->assertCount(4, $collection); - $count = 0; - foreach ($collection as $col) { - $count++; + public function testCollectionWithItemsFromConstructor() + { + $data = json_decode( + '{ + "kind": "calendar#events", + "id": "1234566", + "etag": "abcdef", + "totalItems": 4, + "items": [ + {"id": 1}, + {"id": 2}, + {"id": 3}, + {"id": 4} + ] + }', + true + ); + $collection = new Calendar\Events($data); + $this->assertCount(4, $collection); + $count = 0; + foreach ($collection as $col) { + $count++; + } + $this->assertEquals(4, $count); + $this->assertEquals(1, $collection[0]->id); } - $this->assertEquals(4, $count); - $this->assertEquals(1, $collection[0]->id); - } - public function testCollectionWithItemsFromSetter() - { - $data = json_decode( - '{ - "kind": "calendar#events", - "id": "1234566", - "etag": "abcdef", - "totalItems": 4 - }', - true - ); - $collection = new Calendar\Events($data); - $collection->setItems([ - new Calendar\Event(['id' => 1]), - new Calendar\Event(['id' => 2]), - new Calendar\Event(['id' => 3]), - new Calendar\Event(['id' => 4]), - ]); - $this->assertCount(4, $collection); - $count = 0; - foreach ($collection as $col) { - $count++; + public function testCollectionWithItemsFromSetter() + { + $data = json_decode( + '{ + "kind": "calendar#events", + "id": "1234566", + "etag": "abcdef", + "totalItems": 4 + }', + true + ); + $collection = new Calendar\Events($data); + $collection->setItems([ + new Calendar\Event(['id' => 1]), + new Calendar\Event(['id' => 2]), + new Calendar\Event(['id' => 3]), + new Calendar\Event(['id' => 4]), + ]); + $this->assertCount(4, $collection); + $count = 0; + foreach ($collection as $col) { + $count++; + } + $this->assertEquals(4, $count); + $this->assertEquals(1, $collection[0]->id); } - $this->assertEquals(4, $count); - $this->assertEquals(1, $collection[0]->id); - } - public function testMapDataType() - { - $data = json_decode( - '{ - "calendar": { - "regular": { "background": "#FFF", "foreground": "#000" }, - "inverted": { "background": "#000", "foreground": "#FFF" } - } - }', - true - ); - $collection = new Calendar\Colors($data); - $this->assertCount(2, $collection->calendar); - $this->assertTrue(isset($collection->calendar['regular'])); - $this->assertTrue(isset($collection->calendar['inverted'])); - $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); - $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); - $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); - } + public function testMapDataType() + { + $data = json_decode( + '{ + "calendar": { + "regular": { "background": "#FFF", "foreground": "#000" }, + "inverted": { "background": "#000", "foreground": "#FFF" } + } + }', + true + ); + $collection = new Calendar\Colors($data); + $this->assertCount(2, $collection->calendar); + $this->assertTrue(isset($collection->calendar['regular'])); + $this->assertTrue(isset($collection->calendar['inverted'])); + $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); + $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); + $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); + } - public function testPassingInstanceInConstructor() - { - $creator = new Calendar\EventCreator(); - $creator->setDisplayName('Brent Shaffer'); - $data = [ - "creator" => $creator - ]; - $event = new Calendar\Event($data); - $this->assertInstanceOf(Calendar\EventCreator::class, $event->getCreator()); - $this->assertEquals('Brent Shaffer', $event->creator->getDisplayName()); - } + public function testPassingInstanceInConstructor() + { + $creator = new Calendar\EventCreator(); + $creator->setDisplayName('Brent Shaffer'); + $data = [ + "creator" => $creator + ]; + $event = new Calendar\Event($data); + $this->assertInstanceOf(Calendar\EventCreator::class, $event->getCreator()); + $this->assertEquals('Brent Shaffer', $event->creator->getDisplayName()); + } - public function testPassingInstanceInConstructorForMap() - { - $regular = new Calendar\ColorDefinition(); - $regular->setBackground('#FFF'); - $regular->setForeground('#000'); - $data = [ - "calendar" => [ - "regular" => $regular, - "inverted" => [ "background" => "#000", "foreground" => "#FFF" ], - ] - ]; - $collection = new Calendar\Colors($data); - $this->assertCount(2, $collection->calendar); - $this->assertTrue(isset($collection->calendar['regular'])); - $this->assertTrue(isset($collection->calendar['inverted'])); - $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); - $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); - $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); - } + public function testPassingInstanceInConstructorForMap() + { + $regular = new Calendar\ColorDefinition(); + $regular->setBackground('#FFF'); + $regular->setForeground('#000'); + $data = [ + "calendar" => [ + "regular" => $regular, + "inverted" => [ "background" => "#000", "foreground" => "#FFF" ], + ] + ]; + $collection = new Calendar\Colors($data); + $this->assertCount(2, $collection->calendar); + $this->assertTrue(isset($collection->calendar['regular'])); + $this->assertTrue(isset($collection->calendar['inverted'])); + $this->assertInstanceOf(Calendar\ColorDefinition::class, $collection->calendar['regular']); + $this->assertEquals('#FFF', $collection->calendar['regular']->getBackground()); + $this->assertEquals('#FFF', $collection->calendar['inverted']->getForeground()); + } - /** - * @see https://github.com/google/google-api-php-client/issues/1308 - */ - public function testKeyTypePropertyConflict() - { - $data = [ - "duration" => 0, - "durationType" => "unknown", - ]; - $creativeAsset = new Dfareporting\CreativeAsset($data); - $this->assertEquals(0, $creativeAsset->getDuration()); - $this->assertEquals('unknown', $creativeAsset->getDurationType()); - } + /** + * @see https://github.com/google/google-api-php-client/issues/1308 + */ + public function testKeyTypePropertyConflict() + { + $data = [ + "duration" => 0, + "durationType" => "unknown", + ]; + $creativeAsset = new Dfareporting\CreativeAsset($data); + $this->assertEquals(0, $creativeAsset->getDuration()); + $this->assertEquals('unknown', $creativeAsset->getDurationType()); + } } diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 658c46a3c..3599f7abc 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -22,472 +22,472 @@ class AdSenseTest extends BaseTest { - public $adsense; - public function set_up() - { - $this->markTestSkipped('Thesse tests need to be fixed'); - $this->checkToken(); - $this->adsense = new AdSense($this->getClient()); - } - - public function testAccountsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - $this->assertArrayHasKey('kind', $accounts); - $this->assertEquals($accounts['kind'], 'adsense#accounts'); - $account = $this->getRandomElementFromArray($accounts['items']); - $this->checkAccountElement($account); - } - - /** - * @depends testAccountsList - */ - public function testAccountsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - $account = $this->getRandomElementFromArray($accounts['items']); - $retrievedAccount = $this->adsense->accounts->get($account['id']); - $this->checkAccountElement($retrievedAccount); - } - - /** - * @depends testAccountsList - */ - public function testAccountsReportGenerate() - { - $startDate = '2011-01-01'; - $endDate = '2011-01-31'; - $optParams = $this->getReportOptParams(); - $accounts = $this->adsense->accounts->listAccounts(); - $accountId = $accounts['items'][0]['id']; - $report = $this->adsense->accounts_reports->generate( - $accountId, - $startDate, - $endDate, - $optParams - ); - $this->checkReport($report); - } - - /** - * @depends testAccountsList - */ - public function testAccountsAdClientsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - $account = $this->getRandomElementFromArray($accounts['items']); - $adClients = - $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - $this->checkAdClientsCollection($adClients); - } - - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsAdUnitsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( - $account['id'], - $adClient['id'] - ); - $this->checkAdUnitsCollection($adUnits); - break 2; - } + public $adsense; + public function set_up() + { + $this->markTestSkipped('Thesse tests need to be fixed'); + $this->checkToken(); + $this->adsense = new AdSense($this->getClient()); } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsAdUnitsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $adUnits)) { - $adUnit = $this->getRandomElementFromArray($adUnits['items']); - $this->checkAdUnitElement($adUnit); - break 2; - } - } + public function testAccountsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + $this->assertArrayHasKey('kind', $accounts); + $this->assertEquals($accounts['kind'], 'adsense#accounts'); + $account = $this->getRandomElementFromArray($accounts['items']); + $this->checkAccountElement($account); } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsCustomChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->accounts_customchannels - ->listAccountsCustomchannels($account['id'], $adClient['id']); - $this->checkCustomChannelsCollection($customChannels); - break 2; - } + /** + * @depends testAccountsList + */ + public function testAccountsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + $account = $this->getRandomElementFromArray($accounts['items']); + $retrievedAccount = $this->adsense->accounts->get($account['id']); + $this->checkAccountElement($retrievedAccount); } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsCustomChannelsGet() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->accounts_customchannels->listAccountsCustomchannels( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $customChannels)) { - $customChannel = - $this->getRandomElementFromArray($customChannels['items']); - $this->checkCustomChannelElement($customChannel); - break 2; - } - } + /** + * @depends testAccountsList + */ + public function testAccountsReportGenerate() + { + $startDate = '2011-01-01'; + $endDate = '2011-01-31'; + $optParams = $this->getReportOptParams(); + $accounts = $this->adsense->accounts->listAccounts(); + $accountId = $accounts['items'][0]['id']; + $report = $this->adsense->accounts_reports->generate( + $accountId, + $startDate, + $endDate, + $optParams + ); + $this->checkReport($report); } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - */ - public function testAccountsUrlChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $urlChannels = - $this->adsense->accounts_urlchannels->listAccountsUrlchannels( - $account['id'], - $adClient['id'] - ); - $this->checkUrlChannelsCollection($urlChannels); - break 2; - } + /** + * @depends testAccountsList + */ + public function testAccountsAdClientsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + $account = $this->getRandomElementFromArray($accounts['items']); + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + $this->checkAdClientsCollection($adClients); } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - * @depends testAccountsAdUnitsList - */ - public function testAccountsAdUnitsCustomChannelsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $adUnits = - $this->adsense->accounts_adunits->listAccountsAdunits($account['id'], $adClient['id']); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $customChannels = - $this->adsense->accounts_adunits_customchannels->listAccountsAdunitsCustomchannels( + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsAdUnitsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( $account['id'], - $adClient['id'], - $adUnit['id'] + $adClient['id'] ); - $this->checkCustomChannelsCollection($customChannels); - // it's too expensive to go through each, if one is correct good - break 3; - } + $this->checkAdUnitsCollection($adUnits); + break 2; + } } - } } - } - /** - * @depends testAccountsList - * @depends testAccountsAdClientsList - * @depends testAccountsCustomChannelsList - */ - public function testAccountsCustomChannelsAdUnitsList() - { - $accounts = $this->adsense->accounts->listAccounts(); - foreach ($accounts['items'] as $account) { - $adClients = - $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->accounts_customchannels->listAccountsCustomchannels( - $account['id'], - $adClient['id'] - ); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $adUnits = - $this->adsense->accounts_customchannels_adunits->listAccountsCustomchannelsAdunits( + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsAdUnitsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->accounts_adunits->listAccountsAdunits( $account['id'], - $adClient['id'], - $customChannel['id'] + $adClient['id'] ); - $this->checkAdUnitsCollection($adUnits); - // it's too expensive to go through each, if one is correct good - break 3; - } + if (array_key_exists('items', $adUnits)) { + $adUnit = $this->getRandomElementFromArray($adUnits['items']); + $this->checkAdUnitElement($adUnit); + break 2; + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsCustomChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->accounts_customchannels + ->listAccountsCustomchannels($account['id'], $adClient['id']); + $this->checkCustomChannelsCollection($customChannels); + break 2; + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsCustomChannelsGet() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + $customChannel = + $this->getRandomElementFromArray($customChannels['items']); + $this->checkCustomChannelElement($customChannel); + break 2; + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + */ + public function testAccountsUrlChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $urlChannels = + $this->adsense->accounts_urlchannels->listAccountsUrlchannels( + $account['id'], + $adClient['id'] + ); + $this->checkUrlChannelsCollection($urlChannels); + break 2; + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + * @depends testAccountsAdUnitsList + */ + public function testAccountsAdUnitsCustomChannelsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $adUnits = + $this->adsense->accounts_adunits->listAccountsAdunits($account['id'], $adClient['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->accounts_adunits_customchannels->listAccountsAdunitsCustomchannels( + $account['id'], + $adClient['id'], + $adUnit['id'] + ); + $this->checkCustomChannelsCollection($customChannels); + // it's too expensive to go through each, if one is correct good + break 3; + } + } + } + } + } + + /** + * @depends testAccountsList + * @depends testAccountsAdClientsList + * @depends testAccountsCustomChannelsList + */ + public function testAccountsCustomChannelsAdUnitsList() + { + $accounts = $this->adsense->accounts->listAccounts(); + foreach ($accounts['items'] as $account) { + $adClients = + $this->adsense->accounts_adclients->listAccountsAdclients($account['id']); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->accounts_customchannels->listAccountsCustomchannels( + $account['id'], + $adClient['id'] + ); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->accounts_customchannels_adunits->listAccountsCustomchannelsAdunits( + $account['id'], + $adClient['id'], + $customChannel['id'] + ); + $this->checkAdUnitsCollection($adUnits); + // it's too expensive to go through each, if one is correct good + break 3; + } + } + } } - } } - } - public function testAdClientsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - $this->checkAdClientsCollection($adClients); - } + public function testAdClientsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + $this->checkAdClientsCollection($adClients); + } - /** + /** * @depends testAdClientsList */ - public function testAdUnitsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - $this->checkAdUnitsCollection($adUnits); + public function testAdUnitsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + $this->checkAdUnitsCollection($adUnits); + } } - } - /** + /** * @depends testAdClientsList */ - public function testAdUnitsGet() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if (array_key_exists('items', $adUnits)) { - $adUnit = $this->getRandomElementFromArray($adUnits['items']); - $this->checkAdUnitElement($adUnit); - break 1; - } + public function testAdUnitsGet() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + if (array_key_exists('items', $adUnits)) { + $adUnit = $this->getRandomElementFromArray($adUnits['items']); + $this->checkAdUnitElement($adUnit); + break 1; + } + } } - } - /** + /** * @depends testAdClientsList * @depends testAdUnitsList */ - public function testAdUnitsCustomChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $customChannels = - $this->adsense->adunits_customchannels->listAdunitsCustomchannels( - $adClient['id'], - $adUnit['id'] - ); - $this->checkCustomChannelsCollection($customChannels); - break 2; + public function testAdUnitsCustomChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $adUnits = $this->adsense->adunits->listAdunits($adClient['id']); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $customChannels = + $this->adsense->adunits_customchannels->listAdunitsCustomchannels( + $adClient['id'], + $adUnit['id'] + ); + $this->checkCustomChannelsCollection($customChannels); + break 2; + } + } } - } } - } - /** + /** * @depends testAdClientsList */ - public function testCustomChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = - $this->adsense->customchannels->listCustomchannels($adClient['id']); - $this->checkCustomChannelsCollection($customChannels); + public function testCustomChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = + $this->adsense->customchannels->listCustomchannels($adClient['id']); + $this->checkCustomChannelsCollection($customChannels); + } } - } - /** + /** * @depends testAdClientsList */ - public function testCustomChannelsGet() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); - if (array_key_exists('items', $customChannels)) { - $customChannel = $this->getRandomElementFromArray($customChannels['items']); - $this->checkCustomChannelElement($customChannel); - break 1; - } + public function testCustomChannelsGet() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + $customChannel = $this->getRandomElementFromArray($customChannels['items']); + $this->checkCustomChannelElement($customChannel); + break 1; + } + } } - } - /** + /** * @depends testAdClientsList * @depends testCustomChannelsList */ - public function testCustomChannelsAdUnitsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $adUnits = - $this->adsense->customchannels_adunits->listCustomchannelsAdunits( - $adClient['id'], - $customChannel['id'] - ); - $this->checkAdUnitsCollection($adUnits); - break 2; + public function testCustomChannelsAdUnitsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $customChannels = $this->adsense->customchannels->listCustomchannels($adClient['id']); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $adUnits = + $this->adsense->customchannels_adunits->listCustomchannelsAdunits( + $adClient['id'], + $customChannel['id'] + ); + $this->checkAdUnitsCollection($adUnits); + break 2; + } + } } - } } - } - /** + /** * @depends testAdClientsList */ - public function testUrlChannelsList() - { - $adClients = $this->adsense->adclients->listAdclients(); - foreach ($adClients['items'] as $adClient) { - $urlChannels = $this->adsense->urlchannels->listUrlchannels($adClient['id']); - $this->checkUrlChannelsCollection($urlChannels); + public function testUrlChannelsList() + { + $adClients = $this->adsense->adclients->listAdclients(); + foreach ($adClients['items'] as $adClient) { + $urlChannels = $this->adsense->urlchannels->listUrlchannels($adClient['id']); + $this->checkUrlChannelsCollection($urlChannels); + } } - } - public function testReportsGenerate() - { - if (!$this->checkToken()) { - return; + public function testReportsGenerate() + { + if (!$this->checkToken()) { + return; + } + $startDate = '2011-01-01'; + $endDate = '2011-01-31'; + $optParams = $this->getReportOptParams(); + $report = $this->adsense->reports->generate($startDate, $endDate, $optParams); + $this->checkReport($report); } - $startDate = '2011-01-01'; - $endDate = '2011-01-31'; - $optParams = $this->getReportOptParams(); - $report = $this->adsense->reports->generate($startDate, $endDate, $optParams); - $this->checkReport($report); - } - - private function checkAccountElement($account) - { - $this->assertArrayHasKey('kind', $account); - $this->assertArrayHasKey('id', $account); - $this->assertArrayHasKey('name', $account); - } - - private function checkAdClientsCollection($adClients) - { - $this->assertArrayHasKey('kind', $adClients); - $this->assertEquals($adClients['kind'], 'adsense#adClients'); - foreach ($adClients['items'] as $adClient) { - $this->assertArrayHasKey('id', $adClient); - $this->assertArrayHasKey('kind', $adClient); - $this->assertArrayHasKey('productCode', $adClient); - $this->assertArrayHasKey('supportsReporting', $adClient); + + private function checkAccountElement($account) + { + $this->assertArrayHasKey('kind', $account); + $this->assertArrayHasKey('id', $account); + $this->assertArrayHasKey('name', $account); } - } - - private function checkAdUnitsCollection($adUnits) - { - $this->assertArrayHasKey('kind', $adUnits); - $this->assertEquals($adUnits['kind'], 'adsense#adUnits'); - if (array_key_exists('items', $adUnits)) { - foreach ($adUnits['items'] as $adUnit) { - $this->checkAdUnitElement($adUnit); - } + + private function checkAdClientsCollection($adClients) + { + $this->assertArrayHasKey('kind', $adClients); + $this->assertEquals($adClients['kind'], 'adsense#adClients'); + foreach ($adClients['items'] as $adClient) { + $this->assertArrayHasKey('id', $adClient); + $this->assertArrayHasKey('kind', $adClient); + $this->assertArrayHasKey('productCode', $adClient); + $this->assertArrayHasKey('supportsReporting', $adClient); + } } - } - - private function checkAdUnitElement($adUnit) - { - $this->assertArrayHasKey('code', $adUnit); - $this->assertArrayHasKey('id', $adUnit); - $this->assertArrayHasKey('kind', $adUnit); - $this->assertArrayHasKey('name', $adUnit); - $this->assertArrayHasKey('status', $adUnit); - } - - private function checkCustomChannelsCollection($customChannels) - { - $this->assertArrayHasKey('kind', $customChannels); - $this->assertEquals($customChannels['kind'], 'adsense#customChannels'); - if (array_key_exists('items', $customChannels)) { - foreach ($customChannels['items'] as $customChannel) { - $this->checkCustomChannelElement($customChannel); - } + + private function checkAdUnitsCollection($adUnits) + { + $this->assertArrayHasKey('kind', $adUnits); + $this->assertEquals($adUnits['kind'], 'adsense#adUnits'); + if (array_key_exists('items', $adUnits)) { + foreach ($adUnits['items'] as $adUnit) { + $this->checkAdUnitElement($adUnit); + } + } } - } - - private function checkCustomChannelElement($customChannel) - { - $this->assertArrayHasKey('kind', $customChannel); - $this->assertArrayHasKey('id', $customChannel); - $this->assertArrayHasKey('code', $customChannel); - $this->assertArrayHasKey('name', $customChannel); - } - - private function checkUrlChannelsCollection($urlChannels) - { - $this->assertArrayHasKey('kind', $urlChannels); - $this->assertEquals($urlChannels['kind'], 'adsense#urlChannels'); - if (array_key_exists('items', $urlChannels)) { - foreach ($urlChannels['items'] as $urlChannel) { - $this->assertArrayHasKey('kind', $urlChannel); - $this->assertArrayHasKey('id', $urlChannel); - $this->assertArrayHasKey('urlPattern', $urlChannel); - } + + private function checkAdUnitElement($adUnit) + { + $this->assertArrayHasKey('code', $adUnit); + $this->assertArrayHasKey('id', $adUnit); + $this->assertArrayHasKey('kind', $adUnit); + $this->assertArrayHasKey('name', $adUnit); + $this->assertArrayHasKey('status', $adUnit); + } + + private function checkCustomChannelsCollection($customChannels) + { + $this->assertArrayHasKey('kind', $customChannels); + $this->assertEquals($customChannels['kind'], 'adsense#customChannels'); + if (array_key_exists('items', $customChannels)) { + foreach ($customChannels['items'] as $customChannel) { + $this->checkCustomChannelElement($customChannel); + } + } } - } - - private function getReportOptParams() - { - return array( - 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), - 'dimension' => array ('DATE', 'AD_CLIENT_ID'), - 'sort' => array('DATE'), - 'filter' => array('COUNTRY_NAME==United States'), - ); - } - - private function checkReport($report) - { - $this->assertArrayHasKey('kind', $report); - $this->assertEquals($report['kind'], 'adsense#report'); - $this->assertArrayHasKey('totalMatchedRows', $report); - $this->assertGreaterThan(0, count($report->headers)); - foreach ($report['headers'] as $header) { - $this->assertArrayHasKey('name', $header); - $this->assertArrayHasKey('type', $header); + + private function checkCustomChannelElement($customChannel) + { + $this->assertArrayHasKey('kind', $customChannel); + $this->assertArrayHasKey('id', $customChannel); + $this->assertArrayHasKey('code', $customChannel); + $this->assertArrayHasKey('name', $customChannel); + } + + private function checkUrlChannelsCollection($urlChannels) + { + $this->assertArrayHasKey('kind', $urlChannels); + $this->assertEquals($urlChannels['kind'], 'adsense#urlChannels'); + if (array_key_exists('items', $urlChannels)) { + foreach ($urlChannels['items'] as $urlChannel) { + $this->assertArrayHasKey('kind', $urlChannel); + $this->assertArrayHasKey('id', $urlChannel); + $this->assertArrayHasKey('urlPattern', $urlChannel); + } + } } - if (array_key_exists('items', $report)) { - foreach ($report['items'] as $row) { - $this->assertCount(4, $row); - } + + private function getReportOptParams() + { + return array( + 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), + 'dimension' => array ('DATE', 'AD_CLIENT_ID'), + 'sort' => array('DATE'), + 'filter' => array('COUNTRY_NAME==United States'), + ); + } + + private function checkReport($report) + { + $this->assertArrayHasKey('kind', $report); + $this->assertEquals($report['kind'], 'adsense#report'); + $this->assertArrayHasKey('totalMatchedRows', $report); + $this->assertGreaterThan(0, count($report->headers)); + foreach ($report['headers'] as $header) { + $this->assertArrayHasKey('name', $header); + $this->assertArrayHasKey('type', $header); + } + if (array_key_exists('items', $report)) { + foreach ($report['items'] as $row) { + $this->assertCount(4, $row); + } + } + $this->assertArrayHasKey('totals', $report); + $this->assertArrayHasKey('averages', $report); + } + + private function getRandomElementFromArray($array) + { + $elementKey = array_rand($array); + return $array[$elementKey]; } - $this->assertArrayHasKey('totals', $report); - $this->assertArrayHasKey('averages', $report); - } - - private function getRandomElementFromArray($array) - { - $elementKey = array_rand($array); - return $array[$elementKey]; - } } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 312db72a3..51e7e25cd 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -37,437 +37,437 @@ class TestService extends \Google\Service { - public function __construct(Client $client) - { - parent::__construct($client); - $this->rootUrl = "https://test.example.com"; - $this->servicePath = ""; - $this->version = "v1beta1"; - $this->serviceName = "test"; - } + public function __construct(Client $client) + { + parent::__construct($client); + $this->rootUrl = "https://test.example.com"; + $this->servicePath = ""; + $this->version = "v1beta1"; + $this->serviceName = "test"; + } } class ResourceTest extends BaseTest { - private $client; - private $service; - - public function set_up() - { - $this->client = $this->prophesize(Client::class); - - $logger = $this->prophesize("Monolog\Logger"); - - $this->client->getLogger()->willReturn($logger->reveal()); - $this->client->shouldDefer()->willReturn(true); - $this->client->getHttpClient()->willReturn(new GuzzleClient()); - - $this->service = new TestService($this->client->reveal()); - } - - public function testCallFailure() - { - $this->expectException(GoogleException::class); - $this->expectExceptionMessage('Unknown function: test->testResource->someothermethod()'); - $resource = new GoogleResource( - $this->service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - $resource->call("someothermethod", array()); - } - - public function testCall() - { - $resource = new GoogleResource( - $this->service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); - $this->assertEquals("POST", $request->getMethod()); - } - - public function testCallServiceDefinedRoot() - { - $this->service->rootUrl = "https://sample.example.com"; - $resource = new GoogleResource( - $this->service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - $request = $resource->call("testMethod", array(array())); - $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); - $this->assertEquals("POST", $request->getMethod()); - } - - /** + private $client; + private $service; + + public function set_up() + { + $this->client = $this->prophesize(Client::class); + + $logger = $this->prophesize("Monolog\Logger"); + + $this->client->getLogger()->willReturn($logger->reveal()); + $this->client->shouldDefer()->willReturn(true); + $this->client->getHttpClient()->willReturn(new GuzzleClient()); + + $this->service = new TestService($this->client->reveal()); + } + + public function testCallFailure() + { + $this->expectException(GoogleException::class); + $this->expectExceptionMessage('Unknown function: test->testResource->someothermethod()'); + $resource = new GoogleResource( + $this->service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $resource->call("someothermethod", array()); + } + + public function testCall() + { + $resource = new GoogleResource( + $this->service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $request = $resource->call("testMethod", array(array())); + $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); + $this->assertEquals("POST", $request->getMethod()); + } + + public function testCallServiceDefinedRoot() + { + $this->service->rootUrl = "https://sample.example.com"; + $resource = new GoogleResource( + $this->service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + $request = $resource->call("testMethod", array(array())); + $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); + $this->assertEquals("POST", $request->getMethod()); + } + + /** * Some Google Service (Google\Service\Directory\Resource\Channels and * Google\Service\Reports\Resource\Channels) use a different servicePath value * that should override the default servicePath value, it's represented by a / * before the resource path. All other Services have no / before the path */ - public function testCreateRequestUriForASelfDefinedServicePath() - { - $this->service->servicePath = '/admin/directory/v1/'; - $resource = new GoogleResource( - $this->service, - 'test', - 'testResource', - array("methods" => - array( - 'testMethod' => array( - 'parameters' => array(), - 'path' => '/admin/directory_v1/watch/stop', - 'httpMethod' => 'POST', - ) - ) - ) - ); - $request = $resource->call('testMethod', array(array())); - $this->assertEquals('https://test.example.com/admin/directory_v1/watch/stop', (string) $request->getUri()); - } - - public function testCreateRequestUri() - { - $restPath = "plus/{u}"; - $service = new GoogleService($this->client->reveal()); - $service->servicePath = "http://localhost/"; - $resource = new GoogleResource($service, 'test', 'testResource', array()); - - // Test Path - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'path'; - $params['u']['value'] = 'me'; - $value = $resource->createRequestUri($restPath, $params); - $this->assertEquals("http://localhost/plus/me", $value); - - // Test Query - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'query'; - $params['u']['value'] = 'me'; - $value = $resource->createRequestUri('plus', $params); - $this->assertEquals("http://localhost/plus?u=me", $value); - - // Test Booleans - $params = array(); - $params['u']['type'] = 'boolean'; - $params['u']['location'] = 'path'; - $params['u']['value'] = '1'; - $value = $resource->createRequestUri($restPath, $params); - $this->assertEquals("http://localhost/plus/true", $value); - - $params['u']['location'] = 'query'; - $value = $resource->createRequestUri('plus', $params); - $this->assertEquals("http://localhost/plus?u=true", $value); - - // Test encoding - $params = array(); - $params['u']['type'] = 'string'; - $params['u']['location'] = 'query'; - $params['u']['value'] = '@me/'; - $value = $resource->createRequestUri('plus', $params); - $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); - } - - public function testNoExpectedClassForAltMediaWithHttpSuccess() - { - // set the "alt" parameter to "media" - $arguments = [['alt' => 'media']]; - $request = new Request('GET', '/?alt=media'); - - $http = $this->prophesize("GuzzleHttp\Client"); - - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('thisisnotvalidjson'); - $response = new Guzzle5Response(200, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('thisisnotvalidjson'); - $response = new Response(200, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); + public function testCreateRequestUriForASelfDefinedServicePath() + { + $this->service->servicePath = '/admin/directory/v1/'; + $resource = new GoogleResource( + $this->service, + 'test', + 'testResource', + array( + "methods" => array( + 'testMethod' => array( + 'parameters' => array(), + 'path' => '/admin/directory_v1/watch/stop', + 'httpMethod' => 'POST', + ) + ) + ) + ); + $request = $resource->call('testMethod', array(array())); + $this->assertEquals('https://test.example.com/admin/directory_v1/watch/stop', (string) $request->getUri()); } - $client = new Client(); - $client->setHttpClient($http->reveal()); - $service = new TestService($client); - - // set up mock objects - $resource = new GoogleResource( - $service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - - $expectedClass = 'ThisShouldBeIgnored'; - $response = $resource->call('testMethod', $arguments, $expectedClass); - $this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response); - $this->assertEquals('thisisnotvalidjson', (string) $response->getBody()); - } - - public function testNoExpectedClassForAltMediaWithHttpFail() - { - // set the "alt" parameter to "media" - $arguments = [['alt' => 'media']]; - $request = new Request('GET', '/?alt=media'); - - $http = $this->prophesize("GuzzleHttp\Client"); - - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('thisisnotvalidjson'); - $response = new Guzzle5Response(400, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('thisisnotvalidjson'); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); + public function testCreateRequestUri() + { + $restPath = "plus/{u}"; + $service = new GoogleService($this->client->reveal()); + $service->servicePath = "http://localhost/"; + $resource = new GoogleResource($service, 'test', 'testResource', array()); + + // Test Path + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'path'; + $params['u']['value'] = 'me'; + $value = $resource->createRequestUri($restPath, $params); + $this->assertEquals("http://localhost/plus/me", $value); + + // Test Query + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'query'; + $params['u']['value'] = 'me'; + $value = $resource->createRequestUri('plus', $params); + $this->assertEquals("http://localhost/plus?u=me", $value); + + // Test Booleans + $params = array(); + $params['u']['type'] = 'boolean'; + $params['u']['location'] = 'path'; + $params['u']['value'] = '1'; + $value = $resource->createRequestUri($restPath, $params); + $this->assertEquals("http://localhost/plus/true", $value); + + $params['u']['location'] = 'query'; + $value = $resource->createRequestUri('plus', $params); + $this->assertEquals("http://localhost/plus?u=true", $value); + + // Test encoding + $params = array(); + $params['u']['type'] = 'string'; + $params['u']['location'] = 'query'; + $params['u']['value'] = '@me/'; + $value = $resource->createRequestUri('plus', $params); + $this->assertEquals("http://localhost/plus?u=%40me%2F", $value); } - $client = new Client(); - $client->setHttpClient($http->reveal()); - $service = new TestService($client); - - // set up mock objects - $resource = new GoogleResource( - $service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - - try { - $expectedClass = 'ThisShouldBeIgnored'; - $decoded = $resource->call('testMethod', $arguments, $expectedClass); - $this->fail('should have thrown exception'); - } catch (ServiceException $e) { - // Alt Media on error should return a safe error - $this->assertEquals('thisisnotvalidjson', $e->getMessage()); + public function testNoExpectedClassForAltMediaWithHttpSuccess() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('thisisnotvalidjson'); + $response = new Guzzle5Response(200, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } else { + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); + $response = new Response(200, [], $body); + + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } + + $client = new Client(); + $client->setHttpClient($http->reveal()); + $service = new TestService($client); + + // set up mock objects + $resource = new GoogleResource( + $service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + $expectedClass = 'ThisShouldBeIgnored'; + $response = $resource->call('testMethod', $arguments, $expectedClass); + $this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response); + $this->assertEquals('thisisnotvalidjson', (string) $response->getBody()); } - } - - public function testErrorResponseWithVeryLongBody() - { - // set the "alt" parameter to "media" - $arguments = [['alt' => 'media']]; - $request = new Request('GET', '/?alt=media'); - - $http = $this->prophesize("GuzzleHttp\Client"); - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('this will be pulled into memory'); - $response = new Guzzle5Response(400, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('this will be pulled into memory'); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); + public function testNoExpectedClassForAltMediaWithHttpFail() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('thisisnotvalidjson'); + $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } else { + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); + $response = new Response(400, [], $body); + + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } + + $client = new Client(); + $client->setHttpClient($http->reveal()); + $service = new TestService($client); + + // set up mock objects + $resource = new GoogleResource( + $service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + $expectedClass = 'ThisShouldBeIgnored'; + $decoded = $resource->call('testMethod', $arguments, $expectedClass); + $this->fail('should have thrown exception'); + } catch (ServiceException $e) { + // Alt Media on error should return a safe error + $this->assertEquals('thisisnotvalidjson', $e->getMessage()); + } } - $client = new Client(); - $client->setHttpClient($http->reveal()); - $service = new TestService($client); - - // set up mock objects - $resource = new GoogleResource( - $service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - - try { - $expectedClass = 'ThisShouldBeIgnored'; - $decoded = $resource->call('testMethod', $arguments, $expectedClass); - $this->fail('should have thrown exception'); - } catch (ServiceException $e) { - // empty message - alt=media means no message - $this->assertEquals('this will be pulled into memory', $e->getMessage()); + public function testErrorResponseWithVeryLongBody() + { + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $request = new Request('GET', '/?alt=media'); + + $http = $this->prophesize("GuzzleHttp\Client"); + + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory('this will be pulled into memory'); + $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } else { + $body = Psr7\Utils::streamFor('this will be pulled into memory'); + $response = new Response(400, [], $body); + + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } + + $client = new Client(); + $client->setHttpClient($http->reveal()); + $service = new TestService($client); + + // set up mock objects + $resource = new GoogleResource( + $service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + $expectedClass = 'ThisShouldBeIgnored'; + $decoded = $resource->call('testMethod', $arguments, $expectedClass); + $this->fail('should have thrown exception'); + } catch (ServiceException $e) { + // empty message - alt=media means no message + $this->assertEquals('this will be pulled into memory', $e->getMessage()); + } } - } - - public function testSuccessResponseWithVeryLongBody() - { - $this->onlyGuzzle6Or7(); - - // set the "alt" parameter to "media" - $arguments = [['alt' => 'media']]; - $stream = $this->prophesize(Stream::class); - $stream->__toString() - ->shouldNotBeCalled(); - $response = new Response(200, [], $stream->reveal()); - - $http = $this->prophesize("GuzzleHttp\Client"); - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); - - $client = new Client(); - $client->setHttpClient($http->reveal()); - $service = new TestService($client); - - // set up mock objects - $resource = new GoogleResource( - $service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - - $expectedClass = 'ThisShouldBeIgnored'; - $response = $resource->call('testMethod', $arguments, $expectedClass); - - $this->assertEquals(200, $response->getStatusCode()); - // $this->assertFalse($stream->toStringCalled); - } - - public function testExceptionMessage() - { - // set the "alt" parameter to "media" - $request = new Request('GET', '/'); - $errors = [ ["domain" => "foo"] ]; - $content = json_encode([ - 'error' => [ - 'errors' => $errors - ] - ]); - - $http = $this->prophesize("GuzzleHttp\Client"); - - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory($content); - $response = new Guzzle5Response(400, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor($content); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); + + public function testSuccessResponseWithVeryLongBody() + { + $this->onlyGuzzle6Or7(); + + // set the "alt" parameter to "media" + $arguments = [['alt' => 'media']]; + $stream = $this->prophesize(Stream::class); + $stream->__toString() + ->shouldNotBeCalled(); + $response = new Response(200, [], $stream->reveal()); + + $http = $this->prophesize("GuzzleHttp\Client"); + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); + + $client = new Client(); + $client->setHttpClient($http->reveal()); + $service = new TestService($client); + + // set up mock objects + $resource = new GoogleResource( + $service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + $expectedClass = 'ThisShouldBeIgnored'; + $response = $resource->call('testMethod', $arguments, $expectedClass); + + $this->assertEquals(200, $response->getStatusCode()); + // $this->assertFalse($stream->toStringCalled); } - $client = new Client(); - $client->setHttpClient($http->reveal()); - $service = new TestService($client); - - // set up mock objects - $resource = new GoogleResource( - $service, - "test", - "testResource", - array("methods" => - array( - "testMethod" => array( - "parameters" => array(), - "path" => "method/path", - "httpMethod" => "POST", - ) - ) - ) - ); - - try { - - $decoded = $resource->call('testMethod', array(array())); - $this->fail('should have thrown exception'); - } catch (ServiceException $e) { - $this->assertEquals($errors, $e->getErrors()); + public function testExceptionMessage() + { + // set the "alt" parameter to "media" + $request = new Request('GET', '/'); + $errors = [ ["domain" => "foo"] ]; + $content = json_encode([ + 'error' => [ + 'errors' => $errors + ] + ]); + + $http = $this->prophesize("GuzzleHttp\Client"); + + if ($this->isGuzzle5()) { + $body = Guzzle5Stream::factory($content); + $response = new Guzzle5Response(400, [], $body); + + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } else { + $body = Psr7\Utils::streamFor($content); + $response = new Response(400, [], $body); + + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); + } + + $client = new Client(); + $client->setHttpClient($http->reveal()); + $service = new TestService($client); + + // set up mock objects + $resource = new GoogleResource( + $service, + "test", + "testResource", + array( + "methods" => array( + "testMethod" => array( + "parameters" => array(), + "path" => "method/path", + "httpMethod" => "POST", + ) + ) + ) + ); + + try { + + $decoded = $resource->call('testMethod', array(array())); + $this->fail('should have thrown exception'); + } catch (ServiceException $e) { + $this->assertEquals($errors, $e->getErrors()); + } } - } } diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index d34eb55f1..341b0e7ff 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -22,74 +22,74 @@ class TasksTest extends BaseTest { - /** @var Tasks */ - public $taskService; + /** @var Tasks */ + public $taskService; - public function set_up() - { - $this->checkToken(); - $this->taskService = new Tasks($this->getClient()); - } + public function set_up() + { + $this->checkToken(); + $this->taskService = new Tasks($this->getClient()); + } - public function testInsertTask() - { - $list = $this->createTaskList('List: ' . __METHOD__); - $task = $this->createTask('Task: '.__METHOD__, $list->id); - $this->assertIsTask($task); - } + public function testInsertTask() + { + $list = $this->createTaskList('List: ' . __METHOD__); + $task = $this->createTask('Task: '.__METHOD__, $list->id); + $this->assertIsTask($task); + } - /** - * @depends testInsertTask - */ - public function testGetTask() - { - $tasks = $this->taskService->tasks; - $list = $this->createTaskList('List: ' . __METHOD__); - $task = $this->createTask('Task: '. __METHOD__, $list['id']); + /** + * @depends testInsertTask + */ + public function testGetTask() + { + $tasks = $this->taskService->tasks; + $list = $this->createTaskList('List: ' . __METHOD__); + $task = $this->createTask('Task: '. __METHOD__, $list['id']); - $task = $tasks->get($list['id'], $task['id']); - $this->assertIsTask($task); - } + $task = $tasks->get($list['id'], $task['id']); + $this->assertIsTask($task); + } - /** - * @depends testInsertTask - */ - public function testListTask() - { - $tasks = $this->taskService->tasks; - $list = $this->createTaskList('List: ' . __METHOD__); + /** + * @depends testInsertTask + */ + public function testListTask() + { + $tasks = $this->taskService->tasks; + $list = $this->createTaskList('List: ' . __METHOD__); - for ($i=0; $i<4; $i++) { - $this->createTask("Task: $i ".__METHOD__, $list['id']); - } + for ($i=0; $i<4; $i++) { + $this->createTask("Task: $i ".__METHOD__, $list['id']); + } - $tasksArray = $tasks->listTasks($list['id']); - $this->assertGreaterThan(1, count($tasksArray)); - foreach ($tasksArray['items'] as $task) { - $this->assertIsTask($task); + $tasksArray = $tasks->listTasks($list['id']); + $this->assertGreaterThan(1, count($tasksArray)); + foreach ($tasksArray['items'] as $task) { + $this->assertIsTask($task); + } } - } - private function createTaskList($name) - { - $list = new Tasks\TaskList(); - $list->title = $name; - return $this->taskService->tasklists->insert($list); - } + private function createTaskList($name) + { + $list = new Tasks\TaskList(); + $list->title = $name; + return $this->taskService->tasklists->insert($list); + } - private function createTask($title, $listId) - { - $tasks = $this->taskService->tasks; - $task = new Tasks\Task(); - $task->title = $title; - return $tasks->insert($listId, $task); - } + private function createTask($title, $listId) + { + $tasks = $this->taskService->tasks; + $task = new Tasks\Task(); + $task->title = $title; + return $tasks->insert($listId, $task); + } - private function assertIsTask($task) - { - $this->assertArrayHasKey('title', $task); - $this->assertArrayHasKey('kind', $task); - $this->assertArrayHasKey('id', $task); - $this->assertArrayHasKey('position', $task); - } + private function assertIsTask($task) + { + $this->assertArrayHasKey('title', $task); + $this->assertArrayHasKey('kind', $task); + $this->assertArrayHasKey('id', $task); + $this->assertArrayHasKey('position', $task); + } } diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index 89d5520df..8cc0b34f9 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -22,62 +22,62 @@ class YouTubeTest extends BaseTest { - /** @var YouTube */ - public $youtube; - public function set_up() - { - $this->checkToken(); - $this->youtube = new YouTube($this->getClient()); - } + /** @var YouTube */ + public $youtube; + public function set_up() + { + $this->checkToken(); + $this->youtube = new YouTube($this->getClient()); + } - public function testMissingFieldsAreNull() - { - $parts = "id,brandingSettings"; - $opts = array("mine" => true); - $channels = $this->youtube->channels->listChannels($parts, $opts); + public function testMissingFieldsAreNull() + { + $parts = "id,brandingSettings"; + $opts = array("mine" => true); + $channels = $this->youtube->channels->listChannels($parts, $opts); - $newChannel = new YouTube\Channel(); - $newChannel->setId( $channels[0]->getId()); - $newChannel->setBrandingSettings($channels[0]->getBrandingSettings()); + $newChannel = new YouTube\Channel(); + $newChannel->setId($channels[0]->getId()); + $newChannel->setBrandingSettings($channels[0]->getBrandingSettings()); - $simpleOriginal = $channels[0]->toSimpleObject(); - $simpleNew = $newChannel->toSimpleObject(); + $simpleOriginal = $channels[0]->toSimpleObject(); + $simpleNew = $newChannel->toSimpleObject(); - $this->assertObjectHasAttribute('etag', $simpleOriginal); - $this->assertObjectNotHasAttribute('etag', $simpleNew); + $this->assertObjectHasAttribute('etag', $simpleOriginal); + $this->assertObjectNotHasAttribute('etag', $simpleNew); - $owner_details = new YouTube\ChannelContentOwnerDetails(); - $owner_details->setTimeLinked("123456789"); - $o_channel = new YouTube\Channel(); - $o_channel->setContentOwnerDetails($owner_details); - $simpleManual = $o_channel->toSimpleObject(); - $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); - $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); + $owner_details = new YouTube\ChannelContentOwnerDetails(); + $owner_details->setTimeLinked("123456789"); + $o_channel = new YouTube\Channel(); + $o_channel->setContentOwnerDetails($owner_details); + $simpleManual = $o_channel->toSimpleObject(); + $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); + $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $owner_details = new YouTube\ChannelContentOwnerDetails(); - $owner_details->timeLinked = "123456789"; - $o_channel = new YouTube\Channel(); - $o_channel->setContentOwnerDetails($owner_details); - $simpleManual = $o_channel->toSimpleObject(); + $owner_details = new YouTube\ChannelContentOwnerDetails(); + $owner_details->timeLinked = "123456789"; + $o_channel = new YouTube\Channel(); + $o_channel->setContentOwnerDetails($owner_details); + $simpleManual = $o_channel->toSimpleObject(); - $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); - $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); + $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); + $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $owner_details = new YouTube\ChannelContentOwnerDetails(); - $owner_details['timeLinked'] = "123456789"; - $o_channel = new YouTube\Channel(); - $o_channel->setContentOwnerDetails($owner_details); - $simpleManual = $o_channel->toSimpleObject(); + $owner_details = new YouTube\ChannelContentOwnerDetails(); + $owner_details['timeLinked'] = "123456789"; + $o_channel = new YouTube\Channel(); + $o_channel->setContentOwnerDetails($owner_details); + $simpleManual = $o_channel->toSimpleObject(); - $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); - $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); + $this->assertObjectHasAttribute('timeLinked', $simpleManual->contentOwnerDetails); + $this->assertObjectNotHasAttribute('contentOwner', $simpleManual->contentOwnerDetails); - $ping = new YouTube\ChannelConversionPing(); - $ping->setContext("hello"); - $pings = new YouTube\ChannelConversionPings(); - $pings->setPings(array($ping)); - $simplePings = $pings->toSimpleObject(); - $this->assertObjectHasAttribute('context', $simplePings->pings[0]); - $this->assertObjectNotHasAttribute('conversionUrl', $simplePings->pings[0]); - } + $ping = new YouTube\ChannelConversionPing(); + $ping->setContext("hello"); + $pings = new YouTube\ChannelConversionPings(); + $pings->setPings(array($ping)); + $simplePings = $pings->toSimpleObject(); + $this->assertObjectHasAttribute('context', $simplePings->pings[0]); + $this->assertObjectNotHasAttribute('conversionUrl', $simplePings->pings[0]); + } } diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 28a51325c..07da91a3f 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -31,156 +31,155 @@ class TestModel extends Model { - public function mapTypes($array) - { - return parent::mapTypes($array); - } - - public function isAssociativeArray($array) - { - return parent::isAssociativeArray($array); - } + public function mapTypes($array) + { + return parent::mapTypes($array); + } + + public function isAssociativeArray($array) + { + return parent::isAssociativeArray($array); + } } class TestService extends Service { - public $batchPath = 'batch/test'; + public $batchPath = 'batch/test'; } if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { - trait ServiceTestTrait + trait ServiceTestTrait { - use \Prophecy\PhpUnit\ProphecyTrait; - } + use \Prophecy\PhpUnit\ProphecyTrait; + } } else { - trait ServiceTestTrait + trait ServiceTestTrait { - } + } } class ServiceTest extends TestCase { - private static $errorMessage; - - use ServiceTestTrait; - - public function testCreateBatch() - { - $response = $this->prophesize(ResponseInterface::class); - $client = $this->prophesize(Client::class); - - $client->execute( - Argument::allOf( - Argument::type(RequestInterface::class), - Argument::that( - function ($request) { - $this->assertEquals('/batch/test', $request->getRequestTarget()); - return $request; - } + private static $errorMessage; + + use ServiceTestTrait; + + public function testCreateBatch() + { + $response = $this->prophesize(ResponseInterface::class); + $client = $this->prophesize(Client::class); + + $client->execute( + Argument::allOf( + Argument::type(RequestInterface::class), + Argument::that( + function ($request) { + $this->assertEquals('/batch/test', $request->getRequestTarget()); + return $request; + } + ) + ), + Argument::any() + )->willReturn($response->reveal()); + + $client->getConfig('base_path')->willReturn(''); + + $model = new TestService($client->reveal()); + $batch = $model->createBatch(); + $this->assertInstanceOf(Batch::class, $batch); + $batch->execute(); + } + + public function testModel() + { + $model = new TestModel(); + + $model->mapTypes( + array( + 'name' => 'asdf', + 'gender' => 'z', + ) + ); + $this->assertEquals('asdf', $model->name); + $this->assertEquals('z', $model->gender); + $model->mapTypes( + array( + '__infoType' => 'Google_Model', + '__infoDataType' => 'map', + 'info' => array ( + 'location' => 'mars', + 'timezone' => 'mst', + ), + 'name' => 'asdf', + 'gender' => 'z', ) - ), - Argument::any() - )->willReturn($response->reveal()); - - $client->getConfig('base_path')->willReturn(''); - - $model = new TestService($client->reveal()); - $batch = $model->createBatch(); - $this->assertInstanceOf(Batch::class, $batch); - $batch->execute(); - } - - public function testModel() - { - $model = new TestModel(); - - $model->mapTypes( - array( - 'name' => 'asdf', - 'gender' => 'z', - ) - ); - $this->assertEquals('asdf', $model->name); - $this->assertEquals('z', $model->gender); - $model->mapTypes( - array( - '__infoType' => 'Google_Model', - '__infoDataType' => 'map', - 'info' => array ( - 'location' => 'mars', - 'timezone' => 'mst', - ), - 'name' => 'asdf', - 'gender' => 'z', - ) - ); - $this->assertEquals('asdf', $model->name); - $this->assertEquals('z', $model->gender); - - $this->assertFalse($model->isAssociativeArray("")); - $this->assertFalse($model->isAssociativeArray(false)); - $this->assertFalse($model->isAssociativeArray(null)); - $this->assertFalse($model->isAssociativeArray(array())); - $this->assertFalse($model->isAssociativeArray(array(1, 2))); - $this->assertFalse($model->isAssociativeArray(array(1 => 2))); - - $this->assertTrue($model->isAssociativeArray(array('test' => 'a'))); - $this->assertTrue($model->isAssociativeArray(array("a", "b" => 2))); - } - - public function testConfigConstructor() - { - $clientId = 'test-client-id'; - $service = new TestService(['client_id' => $clientId]); - $this->assertEquals($clientId, $service->getClient()->getClientId()); - } - - public function testNoConstructor() - { - $service = new TestService(); - $this->assertInstanceOf(Client::class, $service->getClient()); - } - - public function testInvalidConstructorPhp7Plus() - { - if (!class_exists('TypeError')) { - $this->markTestSkipped('PHP 7+ only'); + ); + $this->assertEquals('asdf', $model->name); + $this->assertEquals('z', $model->gender); + + $this->assertFalse($model->isAssociativeArray("")); + $this->assertFalse($model->isAssociativeArray(false)); + $this->assertFalse($model->isAssociativeArray(null)); + $this->assertFalse($model->isAssociativeArray(array())); + $this->assertFalse($model->isAssociativeArray(array(1, 2))); + $this->assertFalse($model->isAssociativeArray(array(1 => 2))); + + $this->assertTrue($model->isAssociativeArray(array('test' => 'a'))); + $this->assertTrue($model->isAssociativeArray(array("a", "b" => 2))); } - try { - $service = new TestService('foo'); - } catch (\TypeError $e) { + public function testConfigConstructor() + { + $clientId = 'test-client-id'; + $service = new TestService(['client_id' => $clientId]); + $this->assertEquals($clientId, $service->getClient()->getClientId()); + } + public function testNoConstructor() + { + $service = new TestService(); + $this->assertInstanceOf(Client::class, $service->getClient()); } - $this->assertInstanceOf('TypeError', $e); - $this->assertEquals( - 'constructor must be array or instance of Google\Client', - $e->getMessage() - ); - } - - /** @runInSeparateProcess */ - public function testInvalidConstructorPhp5() - { - if (class_exists('TypeError')) { - $this->markTestSkipped('PHP 5 only'); + public function testInvalidConstructorPhp7Plus() + { + if (!class_exists('TypeError')) { + $this->markTestSkipped('PHP 7+ only'); + } + + try { + $service = new TestService('foo'); + } catch (\TypeError $e) { + } + + $this->assertInstanceOf('TypeError', $e); + $this->assertEquals( + 'constructor must be array or instance of Google\Client', + $e->getMessage() + ); } - set_error_handler('Google\Tests\ServiceTest::handlePhp5Error'); + /** @runInSeparateProcess */ + public function testInvalidConstructorPhp5() + { + if (class_exists('TypeError')) { + $this->markTestSkipped('PHP 5 only'); + } + + set_error_handler('Google\Tests\ServiceTest::handlePhp5Error'); - $service = new TestService('foo'); + $service = new TestService('foo'); - $this->assertEquals( - 'constructor must be array or instance of Google\Client', - self::$errorMessage - ); - } + $this->assertEquals( + 'constructor must be array or instance of Google\Client', + self::$errorMessage + ); + } - public static function handlePhp5Error($errno, $errstr, $errfile, $errline) - { - self::assertEquals(E_USER_ERROR, $errno); - self::$errorMessage = $errstr; - return true; - } + public static function handlePhp5Error($errno, $errstr, $errfile, $errline) + { + self::assertEquals(E_USER_ERROR, $errno); + self::$errorMessage = $errstr; + return true; + } } diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 85354e4ba..dd3cc80e5 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -34,476 +34,476 @@ class RunnerTest extends BaseTest { - private $client; + private $client; - private $mockedCallsCount = 0; - private $currentMockedCall = 0; - private $mockedCalls = array(); - private $retryMap; - private $retryConfig; + private $mockedCallsCount = 0; + private $currentMockedCall = 0; + private $mockedCalls = array(); + private $retryMap; + private $retryConfig; - protected function set_up() - { - $this->client = new Client(); - } + protected function set_up() + { + $this->client = new Client(); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') - { - $this->expectException(ServiceException::class); - $this->setNextResponse($errorCode, $errorBody)->makeRequest(); - } + public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') + { + $this->expectException(ServiceException::class); + $this->setNextResponse($errorCode, $errorBody)->makeRequest(); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testOneRestRetryWithError($errorCode, $errorBody = '{}') - { - $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); - $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); - } + public function testOneRestRetryWithError($errorCode, $errorBody = '{}') + { + $this->expectException(ServiceException::class); + $this->setRetryConfig(array('retries' => 1)); + $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testMultipleRestRetriesWithErrors( - $errorCode, - $errorBody = '{}' - ) { - $this->expectException(ServiceException::class); + public function testMultipleRestRetriesWithErrors( + $errorCode, + $errorBody = '{}' + ) { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') - { - $this->setRetryConfig(array('retries' => 1)); - $result = $this->setNextResponse($errorCode, $errorBody) + public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') + { + $this->setRetryConfig(array('retries' => 1)); + $result = $this->setNextResponse($errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testMultipleRestRetriesWithSuccess( - $errorCode, - $errorBody = '{}' - ) { - $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextResponses(2, $errorCode, $errorBody) + public function testMultipleRestRetriesWithSuccess( + $errorCode, + $errorBody = '{}' + ) { + $this->setRetryConfig(array('retries' => 5)); + $result = $this->setNextResponses(2, $errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @dataProvider defaultRestErrorProvider */ - public function testCustomRestRetryMapReplacesDefaults( - $errorCode, - $errorBody = '{}' - ) { - $this->expectException(ServiceException::class); + public function testCustomRestRetryMapReplacesDefaults( + $errorCode, + $errorBody = '{}' + ) { + $this->expectException(ServiceException::class); - $this->setRetryMap(array()); + $this->setRetryMap(array()); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponse($errorCode, $errorBody)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponse($errorCode, $errorBody)->makeRequest(); + } - public function testCustomRestRetryMapAddsNewHandlers() - { - $this->setRetryMap( - array('403' => Runner::TASK_RETRY_ALWAYS) - ); + public function testCustomRestRetryMapAddsNewHandlers() + { + $this->setRetryMap( + array('403' => Runner::TASK_RETRY_ALWAYS) + ); - $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextResponses(2, 403) + $this->setRetryConfig(array('retries' => 5)); + $result = $this->setNextResponses(2, 403) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @dataProvider customLimitsProvider */ - public function testCustomRestRetryMapWithCustomLimits($limit) - { - $this->expectException(ServiceException::class); + public function testCustomRestRetryMapWithCustomLimits($limit) + { + $this->expectException(ServiceException::class); - $this->setRetryMap( - array('403' => $limit) - ); + $this->setRetryMap( + array('403' => $limit) + ); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponses($limit + 1, 403)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponses($limit + 1, 403)->makeRequest(); + } - /** + /** * @dataProvider timeoutProvider */ - public function testRestTimeouts($config, $minTime) - { - $this->setRetryConfig($config); - $this->setNextResponses($config['retries'], 500) + public function testRestTimeouts($config, $minTime) + { + $this->setRetryConfig($config); + $this->setNextResponses($config['retries'], 500) ->setNextResponse(200, '{"success": true}'); - $this->assertTaskTimeGreaterThanOrEqual( - $minTime, - array($this, 'makeRequest'), - $config['initial_delay'] / 10 - ); - } + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'makeRequest'), + $config['initial_delay'] / 10 + ); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') - { - $this->expectException(ServiceException::class); + public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') + { + $this->expectException(ServiceException::class); - $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); - } + $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testOneCurlRetryWithError($errorCode, $errorMessage = '') - { - $this->expectException(ServiceException::class); + public function testOneCurlRetryWithError($errorCode, $errorMessage = '') + { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); - $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 1)); + $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testMultipleCurlRetriesWithErrors( - $errorCode, - $errorMessage = '' - ) { - $this->expectException(ServiceException::class); + public function testMultipleCurlRetriesWithErrors( + $errorCode, + $errorMessage = '' + ) { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') - { - $this->setRetryConfig(array('retries' => 1)); - $result = $this->setNextResponseThrows($errorMessage, $errorCode) + public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') + { + $this->setRetryConfig(array('retries' => 1)); + $result = $this->setNextResponseThrows($errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testMultipleCurlRetriesWithSuccess( - $errorCode, - $errorMessage = '' - ) { - $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextResponsesThrow(2, $errorMessage, $errorCode) + public function testMultipleCurlRetriesWithSuccess( + $errorCode, + $errorMessage = '' + ) { + $this->setRetryConfig(array('retries' => 5)); + $result = $this->setNextResponsesThrow(2, $errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @requires extension curl * @dataProvider defaultCurlErrorProvider */ - public function testCustomCurlRetryMapReplacesDefaults( - $errorCode, - $errorMessage = '' - ) { - $this->expectException(ServiceException::class); + public function testCustomCurlRetryMapReplacesDefaults( + $errorCode, + $errorMessage = '' + ) { + $this->expectException(ServiceException::class); - $this->setRetryMap(array()); + $this->setRetryMap(array()); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); - } + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); + } - /** + /** * @requires extension curl */ - public function testCustomCurlRetryMapAddsNewHandlers() - { - $this->setRetryMap( - array(CURLE_COULDNT_RESOLVE_PROXY => Runner::TASK_RETRY_ALWAYS) - ); + public function testCustomCurlRetryMapAddsNewHandlers() + { + $this->setRetryMap( + array(CURLE_COULDNT_RESOLVE_PROXY => Runner::TASK_RETRY_ALWAYS) + ); - $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextResponsesThrow(2, '', CURLE_COULDNT_RESOLVE_PROXY) + $this->setRetryConfig(array('retries' => 5)); + $result = $this->setNextResponsesThrow(2, '', CURLE_COULDNT_RESOLVE_PROXY) ->setNextResponse(200, '{"success": true}') ->makeRequest(); - $this->assertEquals('{"success": true}', (string) $result->getBody()); - } + $this->assertEquals('{"success": true}', (string) $result->getBody()); + } - /** + /** * @requires extension curl * @dataProvider customLimitsProvider */ - public function testCustomCurlRetryMapWithCustomLimits($limit) - { - $this->expectException(ServiceException::class); + public function testCustomCurlRetryMapWithCustomLimits($limit) + { + $this->expectException(ServiceException::class); - $this->setRetryMap( - array(CURLE_COULDNT_RESOLVE_PROXY => $limit) - ); + $this->setRetryMap( + array(CURLE_COULDNT_RESOLVE_PROXY => $limit) + ); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextResponsesThrow($limit + 1, '', CURLE_COULDNT_RESOLVE_PROXY) + $this->setRetryConfig(array('retries' => 5)); + $this->setNextResponsesThrow($limit + 1, '', CURLE_COULDNT_RESOLVE_PROXY) ->makeRequest(); - } + } - /** + /** * @requires extension curl * @dataProvider timeoutProvider */ - public function testCurlTimeouts($config, $minTime) - { - $this->setRetryConfig($config); - $this->setNextResponsesThrow($config['retries'], '', CURLE_GOT_NOTHING) + public function testCurlTimeouts($config, $minTime) + { + $this->setRetryConfig($config); + $this->setNextResponsesThrow($config['retries'], '', CURLE_GOT_NOTHING) ->setNextResponse(200, '{"success": true}'); - $this->assertTaskTimeGreaterThanOrEqual( - $minTime, - array($this, 'makeRequest'), - $config['initial_delay'] / 10 - ); - } + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'makeRequest'), + $config['initial_delay'] / 10 + ); + } - /** + /** * @dataProvider badTaskConfigProvider */ - public function testBadTaskConfig($config, $message) - { - $this->expectException(TaskException::class); - $this->expectExceptionMessage($message); - $this->setRetryConfig($config); - - new Runner( - $this->retryConfig, - '', - array($this, 'testBadTaskConfig') - ); - } + public function testBadTaskConfig($config, $message) + { + $this->expectException(TaskException::class); + $this->expectExceptionMessage($message); + $this->setRetryConfig($config); + + new Runner( + $this->retryConfig, + '', + array($this, 'testBadTaskConfig') + ); + } - /** + /** * @expectedExceptionMessage must be a valid callable */ - public function testBadTaskCallback() - { - $this->expectException(TaskException::class); - $config = []; - new Runner($config, '', 5); - } + public function testBadTaskCallback() + { + $this->expectException(TaskException::class); + $config = []; + new Runner($config, '', 5); + } - public function testTaskRetryOffByDefault() - { - $this->expectException(ServiceException::class); + public function testTaskRetryOffByDefault() + { + $this->expectException(ServiceException::class); - $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) + $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) ->runTask(); - } + } - public function testOneTaskRetryWithError() - { - $this->expectException(ServiceException::class); + public function testOneTaskRetryWithError() + { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); - $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) + $this->setRetryConfig(array('retries' => 1)); + $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->runTask(); - } + } - public function testMultipleTaskRetriesWithErrors() - { - $this->expectException(ServiceException::class); + public function testMultipleTaskRetriesWithErrors() + { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextTasksAllowedRetries(6, Runner::TASK_RETRY_ALWAYS) + $this->setRetryConfig(array('retries' => 5)); + $this->setNextTasksAllowedRetries(6, Runner::TASK_RETRY_ALWAYS) ->runTask(); - } + } - public function testOneTaskRetryWithSuccess() - { - $this->setRetryConfig(array('retries' => 1)); - $result = $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) + public function testOneTaskRetryWithSuccess() + { + $this->setRetryConfig(array('retries' => 1)); + $result = $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); - $this->assertEquals('success', $result); - } + $this->assertEquals('success', $result); + } - public function testMultipleTaskRetriesWithSuccess() - { - $this->setRetryConfig(array('retries' => 5)); - $result = $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) + public function testMultipleTaskRetriesWithSuccess() + { + $this->setRetryConfig(array('retries' => 5)); + $result = $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); - $this->assertEquals('success', $result); - } + $this->assertEquals('success', $result); + } - /** + /** * @dataProvider customLimitsProvider */ - public function testTaskRetryWithCustomLimits($limit) - { - $this->expectException(ServiceException::class); + public function testTaskRetryWithCustomLimits($limit) + { + $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); - $this->setNextTasksAllowedRetries($limit + 1, $limit) + $this->setRetryConfig(array('retries' => 5)); + $this->setNextTasksAllowedRetries($limit + 1, $limit) ->runTask(); - } + } - /** + /** * @dataProvider timeoutProvider */ - public function testTaskTimeouts($config, $minTime) - { - $this->setRetryConfig($config); - $this->setNextTasksAllowedRetries($config['retries'], $config['retries'] + 1) + public function testTaskTimeouts($config, $minTime) + { + $this->setRetryConfig($config); + $this->setNextTasksAllowedRetries($config['retries'], $config['retries'] + 1) ->setNextTaskReturnValue('success'); - $this->assertTaskTimeGreaterThanOrEqual( - $minTime, - array($this, 'runTask'), - $config['initial_delay'] / 10 - ); - } + $this->assertTaskTimeGreaterThanOrEqual( + $minTime, + array($this, 'runTask'), + $config['initial_delay'] / 10 + ); + } - public function testTaskWithManualRetries() - { - $this->setRetryConfig(array('retries' => 2)); - $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS); + public function testTaskWithManualRetries() + { + $this->setRetryConfig(array('retries' => 2)); + $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS); - $task = new Runner( - $this->retryConfig, - '', - array($this, 'runNextTask') - ); + $task = new Runner( + $this->retryConfig, + '', + array($this, 'runNextTask') + ); - $this->assertTrue($task->canAttempt()); - $this->assertTrue($task->attempt()); + $this->assertTrue($task->canAttempt()); + $this->assertTrue($task->attempt()); - $this->assertTrue($task->canAttempt()); - $this->assertTrue($task->attempt()); + $this->assertTrue($task->canAttempt()); + $this->assertTrue($task->attempt()); - $this->assertTrue($task->canAttempt()); - $this->assertTrue($task->attempt()); + $this->assertTrue($task->canAttempt()); + $this->assertTrue($task->attempt()); - $this->assertFalse($task->canAttempt()); - $this->assertFalse($task->attempt()); - } + $this->assertFalse($task->canAttempt()); + $this->assertFalse($task->attempt()); + } - /** + /** * Provider for backoff configurations and expected minimum runtimes. * * @return array */ - public function timeoutProvider() - { - $config = array('initial_delay' => .001, 'max_delay' => .01); + public function timeoutProvider() + { + $config = array('initial_delay' => .001, 'max_delay' => .01); - return array( + return array( array(array_merge($config, array('retries' => 1)), .001), array(array_merge($config, array('retries' => 2)), .0015), array(array_merge($config, array('retries' => 3)), .00225), array(array_merge($config, array('retries' => 4)), .00375), array(array_merge($config, array('retries' => 5)), .005625) - ); - } + ); + } - /** + /** * Provider for custom retry limits. * * @return array */ - public function customLimitsProvider() - { - return array( + public function customLimitsProvider() + { + return array( array(Runner::TASK_RETRY_NEVER), array(Runner::TASK_RETRY_ONCE), - ); - } + ); + } - /** + /** * Provider for invalid task configurations. * * @return array */ - public function badTaskConfigProvider() - { - return array( + public function badTaskConfigProvider() + { + return array( array(array('initial_delay' => -1), 'must not be negative'), array(array('max_delay' => 0), 'must be greater than 0'), array(array('factor' => 0), 'must be greater than 0'), array(array('jitter' => 0), 'must be greater than 0'), array(array('retries' => -1), 'must not be negative') - ); - } + ); + } - /** + /** * Provider for the default REST errors. * * @return array */ - public function defaultRestErrorProvider() - { - return array( + public function defaultRestErrorProvider() + { + return array( array(500), array(503), array(403, '{"error":{"errors":[{"reason":"rateLimitExceeded"}]}}'), array(403, '{"error":{"errors":[{"reason":"userRateLimitExceeded"}]}}'), - ); - } + ); + } - /** + /** * Provider for the default cURL errors. * * @return array */ - public function defaultCurlErrorProvider() - { - return array( + public function defaultCurlErrorProvider() + { + return array( array(6), // CURLE_COULDNT_RESOLVE_HOST array(7), // CURLE_COULDNT_CONNECT array(28), // CURLE_OPERATION_TIMEOUTED array(35), // CURLE_SSL_CONNECT_ERROR array(52), // CURLE_GOT_NOTHING - ); - } + ); + } - /** + /** * Assert the minimum amount of time required to run a task. * * NOTE: Intentionally crude for brevity. @@ -514,47 +514,47 @@ public function defaultCurlErrorProvider() * * @throws PHPUnit_Framework_ExpectationFailedException */ - public static function assertTaskTimeGreaterThanOrEqual( - $expected, - $callback, - $delta = 0.0 - ) { - $time = microtime(true); - - call_user_func($callback); - - self::assertThat( - microtime(true) - $time, - self::logicalOr( - self::greaterThan($expected), - self::equalTo($expected, $delta) - ) - ); - } - - /** + public static function assertTaskTimeGreaterThanOrEqual( + $expected, + $callback, + $delta = 0.0 + ) { + $time = microtime(true); + + call_user_func($callback); + + self::assertThat( + microtime(true) - $time, + self::logicalOr( + self::greaterThan($expected), + self::equalTo($expected, $delta) + ) + ); + } + + /** * Sets the task runner configurations. * * @param array $config The task runner configurations */ - private function setRetryConfig(array $config) - { - $config += array( + private function setRetryConfig(array $config) + { + $config += array( 'initial_delay' => .0001, 'max_delay' => .001, 'factor' => 2, 'jitter' => .5, 'retries' => 1 - ); - $this->retryConfig = $config; - } + ); + $this->retryConfig = $config; + } - private function setRetryMap(array $retryMap) - { - $this->retryMap = $retryMap; - } + private function setRetryMap(array $retryMap) + { + $this->retryMap = $retryMap; + } - /** + /** * Sets the next responses. * * @param integer $count The number of responses @@ -564,20 +564,20 @@ private function setRetryMap(array $retryMap) * * @return TaskTest */ - private function setNextResponses( - $count, - $code = '200', - $body = '{}', - array $headers = array() - ) { - while ($count-- > 0) { - $this->setNextResponse($code, $body, $headers); + private function setNextResponses( + $count, + $code = '200', + $body = '{}', + array $headers = array() + ) { + while ($count-- > 0) { + $this->setNextResponse($code, $body, $headers); + } + + return $this; } - return $this; - } - - /** + /** * Sets the next response. * * @param string $code The response code @@ -586,21 +586,21 @@ private function setNextResponses( * * @return TaskTest */ - private function setNextResponse( - $code = '200', - $body = '{}', - array $headers = array() - ) { - $this->mockedCalls[$this->mockedCallsCount++] = array( + private function setNextResponse( + $code = '200', + $body = '{}', + array $headers = array() + ) { + $this->mockedCalls[$this->mockedCallsCount++] = array( 'code' => (string) $code, 'headers' => $headers, 'body' => is_string($body) ? $body : json_encode($body) - ); + ); - return $this; - } + return $this; + } - /** + /** * Forces the next responses to throw an IO exception. * * @param integer $count The number of responses @@ -609,16 +609,16 @@ private function setNextResponse( * * @return TaskTest */ - private function setNextResponsesThrow($count, $message, $code) - { - while ($count-- > 0) { - $this->setNextResponseThrows($message, $code); - } + private function setNextResponsesThrow($count, $message, $code) + { + while ($count-- > 0) { + $this->setNextResponseThrows($message, $code); + } - return $this; - } + return $this; + } - /** + /** * Forces the next response to throw an IO exception. * * @param string $message The exception messages @@ -626,98 +626,98 @@ private function setNextResponsesThrow($count, $message, $code) * * @return TaskTest */ - private function setNextResponseThrows($message, $code) - { - $this->mockedCalls[$this->mockedCallsCount++] = new ServiceException( - $message, - $code, - null, - array() - ); + private function setNextResponseThrows($message, $code) + { + $this->mockedCalls[$this->mockedCallsCount++] = new ServiceException( + $message, + $code, + null, + array() + ); - return $this; - } + return $this; + } - /** + /** * Runs the defined request. * * @return array */ - private function makeRequest() - { - $request = new Request('GET', '/test'); - $http = $this->prophesize('GuzzleHttp\ClientInterface'); - - if ($this->isGuzzle5()) { - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/test')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->will([$this, 'getNextMockedCall']); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->will([$this, 'getNextMockedCall']); + private function makeRequest() + { + $request = new Request('GET', '/test'); + $http = $this->prophesize('GuzzleHttp\ClientInterface'); + + if ($this->isGuzzle5()) { + $http->createRequest(Argument::any(), Argument::any(), Argument::any()) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->willReturn(new \GuzzleHttp\Message\Request('GET', '/test')); + + $http->send(Argument::type('GuzzleHttp\Message\Request')) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->will([$this, 'getNextMockedCall']); + } else { + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->will([$this, 'getNextMockedCall']); + } + + return REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); } - return REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); - } - - /** + /** * Gets the next mocked response. * * @param GoogleRequest $request The mocked request * * @return GoogleRequest */ - public function getNextMockedCall($request) - { - $current = $this->mockedCalls[$this->currentMockedCall++]; + public function getNextMockedCall($request) + { + $current = $this->mockedCalls[$this->currentMockedCall++]; - if ($current instanceof Exception) { - throw $current; - } + if ($current instanceof Exception) { + throw $current; + } - if ($this->isGuzzle5()) { - $stream = Guzzle5Stream::factory($current['body']); - $response = new Guzzle5Response($current['code'], $current['headers'], $stream); - } else { - $stream = Psr7\Utils::streamFor($current['body']); - $response = new Response($current['code'], $current['headers'], $stream); - } + if ($this->isGuzzle5()) { + $stream = Guzzle5Stream::factory($current['body']); + $response = new Guzzle5Response($current['code'], $current['headers'], $stream); + } else { + $stream = Psr7\Utils::streamFor($current['body']); + $response = new Response($current['code'], $current['headers'], $stream); + } - return $response; - } + return $response; + } - /** + /** * Sets the next task return value. * * @param mixed $value The next return value * * @return TaskTest */ - private function setNextTaskReturnValue($value) - { - $this->mockedCalls[$this->mockedCallsCount++] = $value; - return $this; - } + private function setNextTaskReturnValue($value) + { + $this->mockedCalls[$this->mockedCallsCount++] = $value; + return $this; + } - /** + /** * Sets the next exception `allowedRetries()` return value. * * @param boolean $allowedRetries The next `allowedRetries()` return value. * * @return TaskTest */ - private function setNextTaskAllowedRetries($allowedRetries) - { - $this->mockedCalls[$this->mockedCallsCount++] = $allowedRetries; - return $this; - } + private function setNextTaskAllowedRetries($allowedRetries) + { + $this->mockedCalls[$this->mockedCallsCount++] = $allowedRetries; + return $this; + } - /** + /** * Sets multiple exception `allowedRetries()` return value. * * @param integer $count The number of `allowedRetries()` return values. @@ -725,62 +725,62 @@ private function setNextTaskAllowedRetries($allowedRetries) * * @return TaskTest */ - private function setNextTasksAllowedRetries($count, $allowedRetries) - { - while ($count-- > 0) { - $this->setNextTaskAllowedRetries($allowedRetries); - } + private function setNextTasksAllowedRetries($count, $allowedRetries) + { + while ($count-- > 0) { + $this->setNextTaskAllowedRetries($allowedRetries); + } - return $this; - } + return $this; + } - /** + /** * Runs the defined task. * * @return mixed */ - private function runTask() - { - $task = new Runner( - $this->retryConfig, - '', - array($this, 'runNextTask') - ); + private function runTask() + { + $task = new Runner( + $this->retryConfig, + '', + array($this, 'runNextTask') + ); - if (null !== $this->retryMap) { - $task->setRetryMap($this->retryMap); - } + if (null !== $this->retryMap) { + $task->setRetryMap($this->retryMap); + } - $exception = $this->prophesize(ServiceException::class); + $exception = $this->prophesize(ServiceException::class); - $exceptionCount = 0; - $exceptionCalls = array(); + $exceptionCount = 0; + $exceptionCalls = array(); - for ($i = 0; $i < $this->mockedCallsCount; $i++) { - if (is_int($this->mockedCalls[$i])) { - $exceptionCalls[$exceptionCount++] = $this->mockedCalls[$i]; - $this->mockedCalls[$i] = $exception->reveal(); - } - } + for ($i = 0; $i < $this->mockedCallsCount; $i++) { + if (is_int($this->mockedCalls[$i])) { + $exceptionCalls[$exceptionCount++] = $this->mockedCalls[$i]; + $this->mockedCalls[$i] = $exception->reveal(); + } + } - $task->setRetryMap($exceptionCalls); + $task->setRetryMap($exceptionCalls); - return $task->run(); - } + return $task->run(); + } - /** + /** * Gets the next task return value. * * @return mixed */ - public function runNextTask() - { - $current = $this->mockedCalls[$this->currentMockedCall++]; + public function runNextTask() + { + $current = $this->mockedCalls[$this->currentMockedCall++]; - if ($current instanceof Exception) { - throw $current; - } + if ($current instanceof Exception) { + throw $current; + } - return $current; - } + return $current; + } } diff --git a/tests/Google/Utils/UriTemplateTest.php b/tests/Google/Utils/UriTemplateTest.php index 09ecb6b0b..5e3e2d414 100644 --- a/tests/Google/Utils/UriTemplateTest.php +++ b/tests/Google/Utils/UriTemplateTest.php @@ -25,282 +25,281 @@ class UriTemplateTest extends BaseTest { - public function testLevelOne() - { - $var = "value"; - $hello = "Hello World!"; + public function testLevelOne() + { + $var = "value"; + $hello = "Hello World!"; - $urit = new UriTemplate(); - $this->assertEquals( - "value", - $urit->parse("{var}", array("var" => $var)) - ); - $this->assertEquals( - "Hello%20World%21", - $urit->parse("{hello}", array("hello" => $hello)) - ); - } - - public function testLevelTwo() - { - $var = "value"; - $hello = "Hello World!"; - $path = "/foo/bar"; + $urit = new UriTemplate(); + $this->assertEquals( + "value", + $urit->parse("{var}", array("var" => $var)) + ); + $this->assertEquals( + "Hello%20World%21", + $urit->parse("{hello}", array("hello" => $hello)) + ); + } - $urit = new UriTemplate(); - $this->assertEquals( - "value", - $urit->parse("{+var}", array("var" => $var)) - ); - $this->assertEquals( - "Hello%20World!", - $urit->parse("{+hello}", array("hello" => $hello)) - ); - $this->assertEquals( - "/foo/bar/here", - $urit->parse("{+path}/here", array("path" => $path)) - ); - $this->assertEquals( - "here?ref=/foo/bar", - $urit->parse("here?ref={+path}", array("path" => $path)) - ); - $this->assertEquals( - "X#value", - $urit->parse("X{#var}", array("var" => $var)) - ); - $this->assertEquals( - "X#Hello%20World!", - $urit->parse("X{#hello}", array("hello" => $hello)) - ); - } + public function testLevelTwo() + { + $var = "value"; + $hello = "Hello World!"; + $path = "/foo/bar"; - public function testLevelThree() - { - $var = "value"; - $hello = "Hello World!"; - $empty = ''; - $path = "/foo/bar"; - $x = "1024"; - $y = "768"; + $urit = new UriTemplate(); + $this->assertEquals( + "value", + $urit->parse("{+var}", array("var" => $var)) + ); + $this->assertEquals( + "Hello%20World!", + $urit->parse("{+hello}", array("hello" => $hello)) + ); + $this->assertEquals( + "/foo/bar/here", + $urit->parse("{+path}/here", array("path" => $path)) + ); + $this->assertEquals( + "here?ref=/foo/bar", + $urit->parse("here?ref={+path}", array("path" => $path)) + ); + $this->assertEquals( + "X#value", + $urit->parse("X{#var}", array("var" => $var)) + ); + $this->assertEquals( + "X#Hello%20World!", + $urit->parse("X{#hello}", array("hello" => $hello)) + ); + } - $urit = new UriTemplate(); - $this->assertEquals( - "map?1024,768", - $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) - ); - $this->assertEquals( - "1024,Hello%20World%21,768", - $urit->parse("{x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) - ); + public function testLevelThree() + { + $var = "value"; + $hello = "Hello World!"; + $empty = ''; + $path = "/foo/bar"; + $x = "1024"; + $y = "768"; - $this->assertEquals( - "1024,Hello%20World!,768", - $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) - ); - $this->assertEquals( - "/foo/bar,1024/here", - $urit->parse("{+path,x}/here", array("x" => $x, "path" => $path)) - ); + $urit = new UriTemplate(); + $this->assertEquals( + "map?1024,768", + $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "1024,Hello%20World%21,768", + $urit->parse("{x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); - $this->assertEquals( - "#1024,Hello%20World!,768", - $urit->parse("{#x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) - ); - $this->assertEquals( - "#/foo/bar,1024/here", - $urit->parse("{#path,x}/here", array("x" => $x, "path" => $path)) - ); + $this->assertEquals( + "1024,Hello%20World!,768", + $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); + $this->assertEquals( + "/foo/bar,1024/here", + $urit->parse("{+path,x}/here", array("x" => $x, "path" => $path)) + ); - $this->assertEquals( - "X.value", - $urit->parse("X{.var}", array("var" => $var)) - ); - $this->assertEquals( - "X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) - ); + $this->assertEquals( + "#1024,Hello%20World!,768", + $urit->parse("{#x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + ); + $this->assertEquals( + "#/foo/bar,1024/here", + $urit->parse("{#path,x}/here", array("x" => $x, "path" => $path)) + ); - $this->assertEquals( - "X.value", - $urit->parse("X{.var}", array("var" => $var)) - ); - $this->assertEquals( - "X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) - ); + $this->assertEquals( + "X.value", + $urit->parse("X{.var}", array("var" => $var)) + ); + $this->assertEquals( + "X.1024.768", + $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + ); - $this->assertEquals( - "/value", - $urit->parse("{/var}", array("var" => $var)) - ); - $this->assertEquals( - "/value/1024/here", - $urit->parse("{/var,x}/here", array("x" => $x, "var" => $var)) - ); + $this->assertEquals( + "X.value", + $urit->parse("X{.var}", array("var" => $var)) + ); + $this->assertEquals( + "X.1024.768", + $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + ); - $this->assertEquals( - ";x=1024;y=768", - $urit->parse("{;x,y}", array("x" => $x, "y" => $y)) - ); - $this->assertEquals( - ";x=1024;y=768;empty", - $urit->parse("{;x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) - ); + $this->assertEquals( + "/value", + $urit->parse("{/var}", array("var" => $var)) + ); + $this->assertEquals( + "/value/1024/here", + $urit->parse("{/var,x}/here", array("x" => $x, "var" => $var)) + ); - $this->assertEquals( - "?x=1024&y=768", - $urit->parse("{?x,y}", array("x" => $x, "y" => $y)) - ); - $this->assertEquals( - "?x=1024&y=768&empty=", - $urit->parse("{?x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) - ); + $this->assertEquals( + ";x=1024;y=768", + $urit->parse("{;x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + ";x=1024;y=768;empty", + $urit->parse("{;x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); - $this->assertEquals( - "?fixed=yes&x=1024", - $urit->parse("?fixed=yes{&x}", array("x" => $x, "y" => $y)) - ); - $this->assertEquals( - "&x=1024&y=768&empty=", - $urit->parse("{&x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) - ); - } + $this->assertEquals( + "?x=1024&y=768", + $urit->parse("{?x,y}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "?x=1024&y=768&empty=", + $urit->parse("{?x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); - public function testLevelFour() - { - $values = array( - 'var' => "value", - 'hello' => "Hello World!", - 'path' => "/foo/bar", - 'list' => array("red", "green", "blue"), - 'keys' => array("semi" => ";", "dot" => ".", "comma" => ","), - ); + $this->assertEquals( + "?fixed=yes&x=1024", + $urit->parse("?fixed=yes{&x}", array("x" => $x, "y" => $y)) + ); + $this->assertEquals( + "&x=1024&y=768&empty=", + $urit->parse("{&x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + ); + } - $tests = array( - "{var:3}" => "val", - "{var:30}" => "value", - "{list}" => "red,green,blue", - "{list*}" => "red,green,blue", - "{keys}" => "semi,%3B,dot,.,comma,%2C", - "{keys*}" => "semi=%3B,dot=.,comma=%2C", - "{+path:6}/here" => "/foo/b/here", - "{+list}" => "red,green,blue", - "{+list*}" => "red,green,blue", - "{+keys}" => "semi,;,dot,.,comma,,", - "{+keys*}" => "semi=;,dot=.,comma=,", - "{#path:6}/here" => "#/foo/b/here", - "{#list}" => "#red,green,blue", - "{#list*}" => "#red,green,blue", - "{#keys}" => "#semi,;,dot,.,comma,,", - "{#keys*}" => "#semi=;,dot=.,comma=,", - "X{.var:3}" => "X.val", - "X{.list}" => "X.red,green,blue", - "X{.list*}" => "X.red.green.blue", - "X{.keys}" => "X.semi,%3B,dot,.,comma,%2C", - "X{.keys*}" => "X.semi=%3B.dot=..comma=%2C", - "{/var:1,var}" => "/v/value", - "{/list}" => "/red,green,blue", - "{/list*}" => "/red/green/blue", - "{/list*,path:4}" => "/red/green/blue/%2Ffoo", - "{/keys}" => "/semi,%3B,dot,.,comma,%2C", - "{/keys*}" => "/semi=%3B/dot=./comma=%2C", - "{;hello:5}" => ";hello=Hello", - "{;list}" => ";list=red,green,blue", - "{;list*}" => ";list=red;list=green;list=blue", - "{;keys}" => ";keys=semi,%3B,dot,.,comma,%2C", - "{;keys*}" => ";semi=%3B;dot=.;comma=%2C", - "{?var:3}" => "?var=val", - "{?list}" => "?list=red,green,blue", - "{?list*}" => "?list=red&list=green&list=blue", - "{?keys}" => "?keys=semi,%3B,dot,.,comma,%2C", - "{?keys*}" => "?semi=%3B&dot=.&comma=%2C", - "{&var:3}" => "&var=val", - "{&list}" => "&list=red,green,blue", - "{&list*}" => "&list=red&list=green&list=blue", - "{&keys}" => "&keys=semi,%3B,dot,.,comma,%2C", - "{&keys*}" => "&semi=%3B&dot=.&comma=%2C", - "find{?list*}" => "find?list=red&list=green&list=blue", - "www{.list*}" => "www.red.green.blue" + public function testLevelFour() + { + $values = array( + 'var' => "value", + 'hello' => "Hello World!", + 'path' => "/foo/bar", + 'list' => array("red", "green", "blue"), + 'keys' => array("semi" => ";", "dot" => ".", "comma" => ","), + ); - ); + $tests = array( + "{var:3}" => "val", + "{var:30}" => "value", + "{list}" => "red,green,blue", + "{list*}" => "red,green,blue", + "{keys}" => "semi,%3B,dot,.,comma,%2C", + "{keys*}" => "semi=%3B,dot=.,comma=%2C", + "{+path:6}/here" => "/foo/b/here", + "{+list}" => "red,green,blue", + "{+list*}" => "red,green,blue", + "{+keys}" => "semi,;,dot,.,comma,,", + "{+keys*}" => "semi=;,dot=.,comma=,", + "{#path:6}/here" => "#/foo/b/here", + "{#list}" => "#red,green,blue", + "{#list*}" => "#red,green,blue", + "{#keys}" => "#semi,;,dot,.,comma,,", + "{#keys*}" => "#semi=;,dot=.,comma=,", + "X{.var:3}" => "X.val", + "X{.list}" => "X.red,green,blue", + "X{.list*}" => "X.red.green.blue", + "X{.keys}" => "X.semi,%3B,dot,.,comma,%2C", + "X{.keys*}" => "X.semi=%3B.dot=..comma=%2C", + "{/var:1,var}" => "/v/value", + "{/list}" => "/red,green,blue", + "{/list*}" => "/red/green/blue", + "{/list*,path:4}" => "/red/green/blue/%2Ffoo", + "{/keys}" => "/semi,%3B,dot,.,comma,%2C", + "{/keys*}" => "/semi=%3B/dot=./comma=%2C", + "{;hello:5}" => ";hello=Hello", + "{;list}" => ";list=red,green,blue", + "{;list*}" => ";list=red;list=green;list=blue", + "{;keys}" => ";keys=semi,%3B,dot,.,comma,%2C", + "{;keys*}" => ";semi=%3B;dot=.;comma=%2C", + "{?var:3}" => "?var=val", + "{?list}" => "?list=red,green,blue", + "{?list*}" => "?list=red&list=green&list=blue", + "{?keys}" => "?keys=semi,%3B,dot,.,comma,%2C", + "{?keys*}" => "?semi=%3B&dot=.&comma=%2C", + "{&var:3}" => "&var=val", + "{&list}" => "&list=red,green,blue", + "{&list*}" => "&list=red&list=green&list=blue", + "{&keys}" => "&keys=semi,%3B,dot,.,comma,%2C", + "{&keys*}" => "&semi=%3B&dot=.&comma=%2C", + "find{?list*}" => "find?list=red&list=green&list=blue", + "www{.list*}" => "www.red.green.blue" + ); - $urit = new UriTemplate(); + $urit = new UriTemplate(); - foreach ($tests as $input => $output) { - $this->assertEquals($output, $urit->parse($input, $values), $input . " failed"); + foreach ($tests as $input => $output) { + $this->assertEquals($output, $urit->parse($input, $values), $input . " failed"); + } } - } - public function testMultipleAnnotations() - { - $var = "value"; - $hello = "Hello World!"; - $urit = new UriTemplate(); - $this->assertEquals( - "http://www.google.com/Hello%20World!?var=value", - $urit->parse( - "http://www.google.com/{+hello}{?var}", - array("var" => $var, "hello" => $hello) - ) - ); - $params = array( - "playerId" => "me", - "leaderboardId" => "CgkIhcG1jYEbEAIQAw", - "timeSpan" => "ALL_TIME", - "other" => "irrelevant" - ); - $this->assertEquals( - "players/me/leaderboards/CgkIhcG1jYEbEAIQAw/scores/ALL_TIME", - $urit->parse( - "players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}", - $params - ) - ); - } + public function testMultipleAnnotations() + { + $var = "value"; + $hello = "Hello World!"; + $urit = new UriTemplate(); + $this->assertEquals( + "http://www.google.com/Hello%20World!?var=value", + $urit->parse( + "http://www.google.com/{+hello}{?var}", + array("var" => $var, "hello" => $hello) + ) + ); + $params = array( + "playerId" => "me", + "leaderboardId" => "CgkIhcG1jYEbEAIQAw", + "timeSpan" => "ALL_TIME", + "other" => "irrelevant" + ); + $this->assertEquals( + "players/me/leaderboards/CgkIhcG1jYEbEAIQAw/scores/ALL_TIME", + $urit->parse( + "players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}", + $params + ) + ); + } - /** - * This test test against the JSON files defined in - * https://github.com/uri-templates/uritemplate-test - * - * We don't ship these tests with it, so they'll just silently - * skip unless provided - this is mainly for use when - * making specific URI template changes and wanting - * to do a full regression check. - */ - public function testAgainstStandardTests() - { - $location = __DIR__ . "/../../uritemplate-test/*.json"; - $files = glob($location); + /** + * This test test against the JSON files defined in + * https://github.com/uri-templates/uritemplate-test + * + * We don't ship these tests with it, so they'll just silently + * skip unless provided - this is mainly for use when + * making specific URI template changes and wanting + * to do a full regression check. + */ + public function testAgainstStandardTests() + { + $location = __DIR__ . "/../../uritemplate-test/*.json"; + $files = glob($location); - if (!$files) { - $this->markTestSkipped('No JSON files provided'); - } + if (!$files) { + $this->markTestSkipped('No JSON files provided'); + } - $urit = new UriTemplate(); - foreach ($files as $file) { - $test = json_decode(file_get_contents($file), true); - foreach ($test as $title => $testsets) { - foreach ($testsets['testcases'] as $cases) { - $input = $cases[0]; - $output = $cases[1]; - if ($output == false) { - continue; // skipping negative tests for now - } else if (is_array($output)) { - $response = $urit->parse($input, $testsets['variables']); - $this->assertContains( - $response, - $output, - $input . " failed from " . $title - ); - } else { - $this->assertEquals( - $output, - $urit->parse($input, $testsets['variables']), - $input . " failed." - ); - } + $urit = new UriTemplate(); + foreach ($files as $file) { + $test = json_decode(file_get_contents($file), true); + foreach ($test as $title => $testsets) { + foreach ($testsets['testcases'] as $cases) { + $input = $cases[0]; + $output = $cases[1]; + if ($output == false) { + continue; // skipping negative tests for now + } else if (is_array($output)) { + $response = $urit->parse($input, $testsets['variables']); + $this->assertContains( + $response, + $output, + $input . " failed from " . $title + ); + } else { + $this->assertEquals( + $output, + $urit->parse($input, $testsets['variables']), + $input . " failed." + ); + } + } + } } - } } - } } diff --git a/tests/examples/batchTest.php b/tests/examples/batchTest.php index 3628a11cb..bf2e5a53b 100644 --- a/tests/examples/batchTest.php +++ b/tests/examples/batchTest.php @@ -25,15 +25,15 @@ class batchTest extends BaseTest { - public function testBatch() - { - $this->checkKey(); + public function testBatch() + { + $this->checkKey(); - $crawler = $this->loadExample('batch.php'); + $crawler = $this->loadExample('batch.php'); - $nodes = $crawler->filter('br'); - $this->assertCount(20, $nodes); - $this->assertContains('Walden', $crawler->text()); - $this->assertContains('George Bernard Shaw', $crawler->text()); - } + $nodes = $crawler->filter('br'); + $this->assertCount(20, $nodes); + $this->assertContains('Walden', $crawler->text()); + $this->assertContains('George Bernard Shaw', $crawler->text()); + } } diff --git a/tests/examples/idTokenTest.php b/tests/examples/idTokenTest.php index 3f1b38834..b40531e8c 100644 --- a/tests/examples/idTokenTest.php +++ b/tests/examples/idTokenTest.php @@ -25,18 +25,18 @@ class idTokenTest extends BaseTest { - public function testIdToken() - { - $this->checkServiceAccountCredentials(); + public function testIdToken() + { + $this->checkServiceAccountCredentials(); - $crawler = $this->loadExample('idtoken.php'); + $crawler = $this->loadExample('idtoken.php'); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('Retrieving An Id Token', $nodes->first()->text()); + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('Retrieving An Id Token', $nodes->first()->text()); - $nodes = $crawler->filter('a.login'); - $this->assertCount(1, $nodes); - $this->assertEquals('Connect Me!', $nodes->first()->text()); - } -} \ No newline at end of file + $nodes = $crawler->filter('a.login'); + $this->assertCount(1, $nodes); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } +} diff --git a/tests/examples/indexTest.php b/tests/examples/indexTest.php index 0ef4f4d4e..6b2e65a44 100644 --- a/tests/examples/indexTest.php +++ b/tests/examples/indexTest.php @@ -25,12 +25,12 @@ class indexTest extends BaseTest { - public function testIndex() - { - $crawler = $this->loadExample('index.php'); + public function testIndex() + { + $crawler = $this->loadExample('index.php'); - $nodes = $crawler->filter('li'); - $this->assertCount(8, $nodes); - $this->assertEquals('A query using simple API access', $nodes->first()->text()); - } + $nodes = $crawler->filter('li'); + $this->assertCount(8, $nodes); + $this->assertEquals('A query using simple API access', $nodes->first()->text()); + } } diff --git a/tests/examples/largeFileDownloadTest.php b/tests/examples/largeFileDownloadTest.php index 71286d9ac..49e3bba9a 100644 --- a/tests/examples/largeFileDownloadTest.php +++ b/tests/examples/largeFileDownloadTest.php @@ -24,36 +24,36 @@ class largeFileDownloadTest extends BaseTest { - /** + /** * @runInSeparateProcess */ - public function testSimpleFileDownloadNoToken() - { - $this->checkServiceAccountCredentials(); + public function testSimpleFileDownloadNoToken() + { + $this->checkServiceAccountCredentials(); - $crawler = $this->loadExample('large-file-download.php'); + $crawler = $this->loadExample('large-file-download.php'); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('File Download - Downloading a large file', $nodes->first()->text()); + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('File Download - Downloading a large file', $nodes->first()->text()); - $nodes = $crawler->filter('a.login'); - $this->assertCount(1, $nodes); - $this->assertEquals('Connect Me!', $nodes->first()->text()); - } + $nodes = $crawler->filter('a.login'); + $this->assertCount(1, $nodes); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } - public function testSimpleFileDownloadWithToken() - { - $this->checkToken(); + public function testSimpleFileDownloadWithToken() + { + $this->checkToken(); - global $_SESSION; - $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); + global $_SESSION; + $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); - $crawler = $this->loadExample('large-file-download.php'); + $crawler = $this->loadExample('large-file-download.php'); - $buttonText = 'Click here to download a large (20MB) test file'; - $nodes = $crawler->filter('input'); - $this->assertCount(1, $nodes); - $this->assertEquals($buttonText, $nodes->first()->attr('value')); - } -} \ No newline at end of file + $buttonText = 'Click here to download a large (20MB) test file'; + $nodes = $crawler->filter('input'); + $this->assertCount(1, $nodes); + $this->assertEquals($buttonText, $nodes->first()->attr('value')); + } +} diff --git a/tests/examples/largeFileUploadTest.php b/tests/examples/largeFileUploadTest.php index 31e8f80d4..f1c8af4cb 100644 --- a/tests/examples/largeFileUploadTest.php +++ b/tests/examples/largeFileUploadTest.php @@ -25,21 +25,21 @@ class largeFileUploadTest extends BaseTest { - /** + /** * @runInSeparateProcess */ - public function testLargeFileUpload() - { - $this->checkServiceAccountCredentials(); + public function testLargeFileUpload() + { + $this->checkServiceAccountCredentials(); - $crawler = $this->loadExample('large-file-upload.php'); + $crawler = $this->loadExample('large-file-upload.php'); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('File Upload - Uploading a large file', $nodes->first()->text()); + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('File Upload - Uploading a large file', $nodes->first()->text()); - $nodes = $crawler->filter('a.login'); - $this->assertCount(1, $nodes); - $this->assertEquals('Connect Me!', $nodes->first()->text()); - } -} \ No newline at end of file + $nodes = $crawler->filter('a.login'); + $this->assertCount(1, $nodes); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } +} diff --git a/tests/examples/multiApiTest.php b/tests/examples/multiApiTest.php index 569bb21d9..b572c31ee 100644 --- a/tests/examples/multiApiTest.php +++ b/tests/examples/multiApiTest.php @@ -25,14 +25,14 @@ class multiApiTest extends BaseTest { - public function testMultiApi() - { - $this->checkKey(); + public function testMultiApi() + { + $this->checkKey(); - $crawler = $this->loadExample('multi-api.php'); + $crawler = $this->loadExample('multi-api.php'); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('User Query - Multiple APIs', $nodes->first()->text()); - } -} \ No newline at end of file + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('User Query - Multiple APIs', $nodes->first()->text()); + } +} diff --git a/tests/examples/serviceAccountTest.php b/tests/examples/serviceAccountTest.php index 60aeb0212..719057bf5 100644 --- a/tests/examples/serviceAccountTest.php +++ b/tests/examples/serviceAccountTest.php @@ -25,14 +25,14 @@ class serviceAccountTest extends BaseTest { - public function testServiceAccount() - { - $this->checkServiceAccountCredentials(); + public function testServiceAccount() + { + $this->checkServiceAccountCredentials(); - $crawler = $this->loadExample('service-account.php'); + $crawler = $this->loadExample('service-account.php'); - $nodes = $crawler->filter('br'); - $this->assertCount(10, $nodes); - $this->assertContains('Walden', $crawler->text()); - } + $nodes = $crawler->filter('br'); + $this->assertCount(10, $nodes); + $this->assertContains('Walden', $crawler->text()); + } } diff --git a/tests/examples/simpleFileUploadTest.php b/tests/examples/simpleFileUploadTest.php index 192977ab7..1942586bb 100644 --- a/tests/examples/simpleFileUploadTest.php +++ b/tests/examples/simpleFileUploadTest.php @@ -25,36 +25,36 @@ class simpleFileUploadTest extends BaseTest { - /** + /** * @runInSeparateProcess */ - public function testSimpleFileUploadNoToken() - { - $this->checkServiceAccountCredentials(); + public function testSimpleFileUploadNoToken() + { + $this->checkServiceAccountCredentials(); - $crawler = $this->loadExample('simple-file-upload.php'); + $crawler = $this->loadExample('simple-file-upload.php'); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('File Upload - Uploading a simple file', $nodes->first()->text()); + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('File Upload - Uploading a simple file', $nodes->first()->text()); - $nodes = $crawler->filter('a.login'); - $this->assertCount(1, $nodes); - $this->assertEquals('Connect Me!', $nodes->first()->text()); - } + $nodes = $crawler->filter('a.login'); + $this->assertCount(1, $nodes); + $this->assertEquals('Connect Me!', $nodes->first()->text()); + } - public function testSimpleFileUploadWithToken() - { - $this->checkToken(); + public function testSimpleFileUploadWithToken() + { + $this->checkToken(); - global $_SESSION; - $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); + global $_SESSION; + $_SESSION['upload_token'] = $this->getClient()->getAccessToken(); - $crawler = $this->loadExample('simple-file-upload.php'); + $crawler = $this->loadExample('simple-file-upload.php'); - $buttonText = 'Click here to upload two small (1MB) test files'; - $nodes = $crawler->filter('input'); - $this->assertCount(1, $nodes); - $this->assertEquals($buttonText, $nodes->first()->attr('value')); - } -} \ No newline at end of file + $buttonText = 'Click here to upload two small (1MB) test files'; + $nodes = $crawler->filter('input'); + $this->assertCount(1, $nodes); + $this->assertEquals($buttonText, $nodes->first()->attr('value')); + } +} diff --git a/tests/examples/simpleQueryTest.php b/tests/examples/simpleQueryTest.php index cbb49fd9d..8bc7eac7d 100644 --- a/tests/examples/simpleQueryTest.php +++ b/tests/examples/simpleQueryTest.php @@ -25,17 +25,17 @@ class simpleQueryTest extends BaseTest { - public function testSimpleQuery() - { - $this->checkKey(); + public function testSimpleQuery() + { + $this->checkKey(); - $crawler = $this->loadExample('simple-query.php'); + $crawler = $this->loadExample('simple-query.php'); - $nodes = $crawler->filter('br'); - $this->assertCount(20, $nodes); + $nodes = $crawler->filter('br'); + $this->assertCount(20, $nodes); - $nodes = $crawler->filter('h1'); - $this->assertCount(1, $nodes); - $this->assertEquals('Simple API Access', $nodes->first()->text()); - } + $nodes = $crawler->filter('h1'); + $this->assertCount(1, $nodes); + $this->assertEquals('Simple API Access', $nodes->first()->text()); + } } From 8be21867aaa245b691ca763aaf7f657edffb4d7a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Apr 2022 13:12:10 -0600 Subject: [PATCH 1195/1274] chore: add phpstan and fix resulting issues (#2252) --- .github/workflows/tests.yml | 14 ++++++++ phpstan.neon.dist | 8 +++++ src/AccessToken/Verify.php | 13 ++++++-- src/AuthHandler/AuthHandlerFactory.php | 1 + src/Client.php | 41 ++++++++++++----------- src/Collection.php | 5 ++- src/Http/Batch.php | 12 +++---- src/Http/MediaFileUpload.php | 45 ++++++++++++-------------- src/Http/REST.php | 11 ++++--- src/Service/Exception.php | 6 ++-- src/Service/Resource.php | 10 +++--- src/Task/Runner.php | 4 +-- src/Utils/UriTemplate.php | 4 +-- src/aliases.php | 1 + 14 files changed, 108 insertions(+), 67 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58cd04d21..4a2b8fced 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,4 +54,18 @@ jobs: command: composer install - name: Run Script run: vendor/bin/phpcs src tests examples --standard=phpcs.xml.dist -nps + staticanalysis: + runs-on: ubuntu-latest + name: PHPStan Static Analysis + steps: + - uses: actions/checkout@v2 + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + - name: Run Script + run: | + composer install + composer global require phpstan/phpstan + ~/.composer/vendor/bin/phpstan analyse diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 000000000..a70dd0e9a --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,8 @@ +parameters: + treatPhpDocTypesAsCertain: false + level: 5 + paths: + - src + excludePaths: + - src/AuthHandler/Guzzle5AuthHandler.php + diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 6542ab23e..388a57318 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -55,6 +55,11 @@ class Verify */ private $cache; + /** + * @var \Firebase\JWT\JWT + */ + public $jwt; + /** * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. @@ -85,7 +90,7 @@ public function __construct( * * @param string $idToken the ID token in JWT format * @param string $audience Optional. The audience to verify against JWt "aud" - * @return array the token payload, if successful + * @return array|false the token payload, if successful */ public function verifyIdToken($idToken, $audience = null) { @@ -124,7 +129,7 @@ public function verifyIdToken($idToken, $audience = null) } return (array) $payload; - } catch (ExpiredException $e) { + } catch (ExpiredException $e) { // @phpstan-ignore-line return false; } catch (ExpiredExceptionV3 $e) { return false; @@ -146,7 +151,7 @@ private function getCache() /** * Retrieve and cache a certificates file. * - * @param $url string location + * @param string $url location * @throws \Google\Exception * @return array certificates */ @@ -164,6 +169,7 @@ private function retrieveCertsFromLocation($url) return json_decode($file, true); } + // @phpstan-ignore-next-line $response = $this->http->get($url); if ($response->getStatusCode() == 200) { @@ -224,6 +230,7 @@ private function getJwtService() $jwtClass::$leeway = 1; } + // @phpstan-ignore-next-line return new $jwtClass; } diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index 65510440f..6bb6328d3 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -35,6 +35,7 @@ public static function build($cache = null, array $cacheConfig = []) if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = ClientInterface::MAJOR_VERSION; } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + // @phpstan-ignore-next-line $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); } diff --git a/src/Client.php b/src/Client.php index 0e95260e9..bfe023049 100644 --- a/src/Client.php +++ b/src/Client.php @@ -43,6 +43,7 @@ use DomainException; use InvalidArgumentException; use LogicException; +use UnexpectedValueException; /** * The Google API Client @@ -58,7 +59,7 @@ class Client const API_BASE_PATH = 'https://www.googleapis.com'; /** - * @var OAuth2 $auth + * @var ?OAuth2 $auth */ private $auth; @@ -68,7 +69,7 @@ class Client private $http; /** - * @var CacheItemPoolInterface $cache + * @var ?CacheItemPoolInterface $cache */ private $cache; @@ -83,12 +84,12 @@ class Client private $config; /** - * @var LoggerInterface $logger + * @var ?LoggerInterface $logger */ private $logger; /** - * @var CredentialsLoader $credentials + * @var ?CredentialsLoader $credentials */ private $credentials; @@ -225,7 +226,7 @@ public function getLibraryVersion() * For backwards compatibility * alias for fetchAccessTokenWithAuthCode * - * @param $code string code from accounts.google.com + * @param string $code string code from accounts.google.com * @return array access token * @deprecated */ @@ -238,7 +239,7 @@ public function authenticate($code) * Attempt to exchange a code for an valid authentication token. * Helper wrapped around the OAuth 2.0 implementation. * - * @param $code string code from accounts.google.com + * @param string $code code from accounts.google.com * @return array access token */ public function fetchAccessTokenWithAuthCode($code) @@ -714,7 +715,7 @@ public function setDeveloperKey($developerKey) * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you * restrict sign-in to accounts at that domain. - * @param $hd string - the domain to use. + * @param string $hd the domain to use. */ public function setHostedDomain($hd) { @@ -725,7 +726,7 @@ public function setHostedDomain($hd) * Set the prompt hint. Valid values are none, consent and select_account. * If no value is specified and the user has not previously authorized * access, then the user is shown a consent screen. - * @param $prompt string + * @param string $prompt * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. * {@code "consent"} Prompt the user for consent. * {@code "select_account"} Prompt the user to select an account. @@ -739,7 +740,7 @@ public function setPrompt($prompt) * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which * an authentication request is valid. - * @param $realm string - the URL-space to use. + * @param string $realm the URL-space to use. */ public function setOpenidRealm($realm) { @@ -750,7 +751,7 @@ public function setOpenidRealm($realm) * If this is provided with the value true, and the authorization request is * granted, the authorization will include any previous authorizations * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. + * @param bool $include the URL-space to use. */ public function setIncludeGrantedScopes($include) { @@ -834,7 +835,7 @@ public function setScopes($scope_or_scopes) * Will append any scopes not previously requested to the scope parameter. * A single string will be treated as a scope to request. An array of strings * will each be appended. - * @param $scope_or_scopes string|array e.g. "profile" + * @param string|string[] $scope_or_scopes e.g. "profile" */ public function addScope($scope_or_scopes) { @@ -873,10 +874,11 @@ public function prepareScopes() /** * Helper method to execute deferred HTTP requests. * - * @param $request RequestInterface|\Google\Http\Batch - * @param string $expectedClass + * @template T + * @param RequestInterface $request + * @param class-string $expectedClass * @throws \Google\Exception - * @return mixed|$expectedClass|ResponseInterface + * @return mixed|T|ResponseInterface */ public function execute(RequestInterface $request, $expectedClass = null) { @@ -902,7 +904,7 @@ public function execute(RequestInterface $request, $expectedClass = null) if ($this->config['api_format_v2']) { $request = $request->withHeader( 'X-GOOG-API-FORMAT-VERSION', - 2 + '2' ); } @@ -1182,6 +1184,7 @@ protected function createDefaultHttpClient() if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = ClientInterface::MAJOR_VERSION; } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { + // @phpstan-ignore-next-line $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); } @@ -1191,9 +1194,11 @@ protected function createDefaultHttpClient() 'defaults' => ['exceptions' => false], ]; if ($this->isAppEngine()) { - // set StreamHandler on AppEngine by default - $options['handler'] = new StreamHandler(); - $options['defaults']['verify'] = '/etc/ca-certificates.crt'; + if (class_exists(StreamHandler::class)) { + // set StreamHandler on AppEngine by default + $options['handler'] = new StreamHandler(); + $options['defaults']['verify'] = '/etc/ca-certificates.crt'; + } } } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { // guzzle 6 or 7 diff --git a/src/Collection.php b/src/Collection.php index 39ebccaa7..c164c12a2 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -45,7 +45,7 @@ public function key() } } - /** @return void */ + /** @return mixed */ #[\ReturnTypeWillChange] public function next() { @@ -71,6 +71,7 @@ public function count() } /** @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { if (!is_numeric($offset)) { @@ -90,6 +91,7 @@ public function offsetGet($offset) } /** @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (!is_numeric($offset)) { @@ -99,6 +101,7 @@ public function offsetSet($offset, $value) } /** @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { if (!is_numeric($offset)) { diff --git a/src/Http/Batch.php b/src/Http/Batch.php index eb797582e..954e84dfe 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -93,7 +93,7 @@ public function execute() EOF; - /** @var RequestInterface $req */ + /** @var RequestInterface $request */ foreach ($this->requests as $key => $request) { $firstLine = sprintf( '%s %s HTTP/%s', @@ -126,7 +126,7 @@ public function execute() $url = $this->rootUrl . '/' . $this->batchPath; $headers = array( 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), - 'Content-Length' => strlen($body), + 'Content-Length' => (string) strlen($body), ); $request = new Request( @@ -170,9 +170,9 @@ public function parseResponse(ResponseInterface $response, $classes = array()) $status = explode(" ", $status); $status = $status[1]; - list($partHeaders, $partBody) = $this->parseHttpResponse($part, false); + list($partHeaders, $partBody) = $this->parseHttpResponse($part, 0); $response = new Response( - $status, + (int) $status, $partHeaders, Psr7\Utils::streamFor($partBody) ); @@ -219,8 +219,8 @@ private function parseRawHeaders($rawHeaders) /** * Used by the IO lib and also the batch processing. * - * @param $respData - * @param $headerSize + * @param string $respData + * @param int $headerSize * @return array */ private function parseHttpResponse($respData, $headerSize) diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index edb73ab93..de1a40895 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -63,7 +63,7 @@ class MediaFileUpload private $request; /** @var string */ - private $boundary; + private $boundary; // @phpstan-ignore-line /** * Result code from last HTTP call @@ -77,7 +77,7 @@ class MediaFileUpload * @param string $mimeType * @param string $data The bytes you want to upload. * @param bool $resumable - * @param bool $chunkSize File will be uploaded in chunks of this many bytes. + * @param int $chunkSize File will be uploaded in chunks of this many bytes. * only used if resumable=True */ public function __construct( @@ -86,7 +86,7 @@ public function __construct( $mimeType, $data, $resumable = false, - $chunkSize = false + $chunkSize = 0 ) { $this->client = $client; $this->request = $request; @@ -101,7 +101,7 @@ public function __construct( /** * Set the size of the file that is being uploaded. - * @param $size - int file size in bytes + * @param int $size - int file size in bytes */ public function setFileSize($size) { @@ -133,7 +133,7 @@ public function nextChunk($chunk = false) $lastBytePos = $this->progress + strlen($chunk) - 1; $headers = array( 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-length' => strlen($chunk), + 'content-length' => (string) strlen($chunk), 'expect' => '', ); @@ -175,7 +175,7 @@ private function makePutRequest(RequestInterface $request) $range = $response->getHeaderLine('range'); if ($range) { $range_array = explode('-', $range); - $this->progress = $range_array[1] + 1; + $this->progress = ((int) $range_array[1]) + 1; } // Allow for changing upload URLs. @@ -193,14 +193,14 @@ private function makePutRequest(RequestInterface $request) /** * Resume a previously unfinished upload - * @param $resumeUri the resume-URI of the unfinished, resumable upload. + * @param string $resumeUri the resume-URI of the unfinished, resumable upload. */ public function resume($resumeUri) { $this->resumeUri = $resumeUri; $headers = array( 'content-range' => "bytes */$this->size", - 'content-length' => 0, + 'content-length' => '0', ); $httpRequest = new Request( 'PUT', @@ -222,8 +222,7 @@ private function process() $postBody = ''; $contentType = false; - $meta = (string) $request->getBody(); - $meta = is_string($meta) ? json_decode($meta, true) : $meta; + $meta = json_decode((string) $request->getBody(), true); $uploadType = $this->getUploadType($meta); $request = $request->withUri( @@ -256,7 +255,7 @@ private function process() $request = $request->withBody(Psr7\Utils::streamFor($postBody)); - if (isset($contentType) && $contentType) { + if ($contentType) { $request = $request->withHeader('content-type', $contentType); } @@ -268,7 +267,7 @@ private function process() * - resumable (UPLOAD_RESUMABLE_TYPE) * - media (UPLOAD_MEDIA_TYPE) * - multipart (UPLOAD_MULTIPART_TYPE) - * @param $meta + * @param string|false $meta * @return string * @visible for testing */ @@ -297,20 +296,18 @@ public function getResumeUri() private function fetchResumeUri() { $body = $this->request->getBody(); - if ($body) { - $headers = array( - 'content-type' => 'application/json; charset=UTF-8', - 'content-length' => $body->getSize(), - 'x-upload-content-type' => $this->mimeType, - 'x-upload-content-length' => $this->size, - 'expect' => '', - ); - foreach ($headers as $key => $value) { - $this->request = $this->request->withHeader($key, $value); - } + $headers = array( + 'content-type' => 'application/json; charset=UTF-8', + 'content-length' => $body->getSize(), + 'x-upload-content-type' => $this->mimeType, + 'x-upload-content-length' => $this->size, + 'expect' => '', + ); + foreach ($headers as $key => $value) { + $this->request = $this->request->withHeader($key, $value); } - $response = $this->client->execute($this->request, false); + $response = $this->client->execute($this->request, null); $location = $response->getHeaderLine('location'); $code = $response->getStatusCode(); diff --git a/src/Http/REST.php b/src/Http/REST.php index 908481689..0bcead157 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -36,8 +36,8 @@ class REST * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * - * @param Client $client - * @param RequestInterface $req + * @param ClientInterface $client + * @param RequestInterface $request * @param string $expectedClass * @param array $config * @param array $retryMap @@ -69,7 +69,7 @@ public static function execute( /** * Executes a Psr\Http\Message\RequestInterface * - * @param Client $client + * @param ClientInterface $client * @param RequestInterface $request * @param string $expectedClass * @return array decoded result @@ -89,7 +89,10 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ $response = $e->getResponse(); // specific checking for Guzzle 5: convert to PSR7 response - if ($response instanceof \GuzzleHttp\Message\ResponseInterface) { + if ( + interface_exists('\GuzzleHttp\Message\ResponseInterface') + && $response instanceof \GuzzleHttp\Message\ResponseInterface + ) { $response = new Response( $response->getStatusCode(), $response->getHeaders() ?: [], diff --git a/src/Service/Exception.php b/src/Service/Exception.php index bffdeaca9..caec08c07 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -32,8 +32,8 @@ class Exception extends GoogleException * * @param string $message * @param int $code - * @param \Exception|null $previous - * @param [{string, string}] errors List of errors returned in an HTTP + * @param Exception|null $previous + * @param array $errors List of errors returned in an HTTP * response. Defaults to []. */ public function __construct( @@ -62,7 +62,7 @@ public function __construct( * "location": "Authorization", * } * - * @return [{string, string}] List of errors return in an HTTP response or []. + * @return array List of errors return in an HTTP response or []. */ public function getErrors() { diff --git a/src/Service/Resource.php b/src/Service/Resource.php index c255a2f5a..3afe957ae 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -77,10 +77,12 @@ public function __construct($service, $serviceName, $resourceName, $resource) /** * TODO: This function needs simplifying. - * @param $name - * @param $arguments - * @param $expectedClass - optional, the expected class name - * @return mixed|$expectedClass|ResponseInterface|RequestInterface + * + * @template T + * @param string $name + * @param array $arguments + * @param class-string $expectedClass - optional, the expected class name + * @return mixed|T|ResponseInterface|RequestInterface * @throws \Google\Exception */ public function call($name, $arguments, $expectedClass = null) diff --git a/src/Task/Runner.php b/src/Task/Runner.php index becc78b08..8f74559dc 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -98,7 +98,7 @@ class Runner * @param array $arguments The task arguments * @throws \Google\Task\Exception when misconfigured */ - public function __construct( + public function __construct( // @phpstan-ignore-line $config, $name, $action, @@ -241,7 +241,7 @@ private function backOff() /** * Gets the delay (in seconds) for the current backoff period. * - * @return float + * @return int */ private function getDelay() { diff --git a/src/Utils/UriTemplate.php b/src/Utils/UriTemplate.php index c74814d25..da82d3fd2 100644 --- a/src/Utils/UriTemplate.php +++ b/src/Utils/UriTemplate.php @@ -28,7 +28,7 @@ class UriTemplate const TYPE_SCALAR = "4"; /** - * @var $operators array + * @var array $operators * These are valid at the start of a template block to * modify the way in which the variables inside are * processed. @@ -44,7 +44,7 @@ class UriTemplate ); /** - * @var reserved array + * @var array * These are the characters which should not be URL encoded in reserved * strings. */ diff --git a/src/aliases.php b/src/aliases.php index 04154743c..525d09164 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -41,6 +41,7 @@ class Google_Task_Composer extends \Google\Task\Composer { } +/** @phpstan-ignore-next-line */ if (\false) { class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke {} class Google_AccessToken_Verify extends \Google\AccessToken\Verify {} From ea2d79cc006ed19dc7a148792b978bc16d1622d1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 22 Apr 2022 13:24:34 -0600 Subject: [PATCH 1196/1274] chore: misc code style fixes (#2253) --- examples/batch.php | 2 +- examples/multi-api.php | 6 +- examples/service-account.php | 4 +- examples/simple-file-upload.php | 8 +- examples/simple-query.php | 8 +- phpcs.xml.dist | 3 + src/AccessToken/Revoke.php | 2 +- src/AccessToken/Verify.php | 26 ++-- src/AuthHandler/AuthHandlerFactory.php | 3 +- src/AuthHandler/Guzzle5AuthHandler.php | 2 +- src/AuthHandler/Guzzle6AuthHandler.php | 2 +- src/Client.php | 52 ++++--- src/Http/Batch.php | 23 ++- src/Http/MediaFileUpload.php | 17 ++- src/Http/REST.php | 9 +- src/Model.php | 20 +-- src/Service/Exception.php | 4 +- src/Service/Resource.php | 56 ++++---- src/Task/Composer.php | 2 +- src/Task/Runner.php | 7 +- src/Utils/UriTemplate.php | 47 +++---- src/aliases.php | 80 ++++++++--- tests/BaseTest.php | 2 +- tests/Google/ClientTest.php | 18 +-- tests/Google/Http/MediaFileUploadTest.php | 2 +- tests/Google/Http/RESTTest.php | 14 +- tests/Google/ModelTest.php | 4 +- tests/Google/Service/AdSenseTest.php | 12 +- tests/Google/Service/ResourceTest.php | 146 +++++++++---------- tests/Google/Service/YouTubeTest.php | 4 +- tests/Google/ServiceTest.php | 38 +++-- tests/Google/Task/RunnerTest.php | 162 +++++++++++----------- tests/Google/Utils/UriTemplateTest.php | 70 +++++----- 33 files changed, 444 insertions(+), 411 deletions(-) diff --git a/examples/batch.php b/examples/batch.php index a8377b584..d9b359c35 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -63,7 +63,7 @@ $batch = $service->createBatch(); $query = 'Henry David Thoreau'; -$optParams = array('filter' => 'free-ebooks'); +$optParams = ['filter' => 'free-ebooks']; $req1 = $service->volumes->listVolumes($query, $optParams); $batch->add($req1, "thoreau"); $query = 'George Bernard Shaw'; diff --git a/examples/multi-api.php b/examples/multi-api.php index a877f7ffc..4c15bdcf5 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -88,13 +88,13 @@ if ($client->getAccessToken()) { $_SESSION['multi-api-token'] = $client->getAccessToken(); - $dr_results = $dr_service->files->listFiles(array('pageSize' => 10)); + $dr_results = $dr_service->files->listFiles(['pageSize' => 10]); - $yt_channels = $yt_service->channels->listChannels('contentDetails', array("mine" => true)); + $yt_channels = $yt_service->channels->listChannels('contentDetails', ["mine" => true]); $likePlaylist = $yt_channels[0]->contentDetails->relatedPlaylists->likes; $yt_results = $yt_service->playlistItems->listPlaylistItems( "snippet", - array("playlistId" => $likePlaylist) + ["playlistId" => $likePlaylist] ); } ?> diff --git a/examples/service-account.php b/examples/service-account.php index 6cbe0bbf6..6134ae7d0 100644 --- a/examples/service-account.php +++ b/examples/service-account.php @@ -60,9 +60,9 @@ simple query as an example. ************************************************/ $query = 'Henry David Thoreau'; -$optParams = array( +$optParams = [ 'filter' => 'free-ebooks', -); +]; $results = $service->volumes->listVolumes($query, $optParams); ?> diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index cca5efd7e..a66027270 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -91,11 +91,11 @@ $file = new Google\Service\Drive\DriveFile(); $result = $service->files->create( $file, - array( + [ 'data' => file_get_contents(TESTFILE), 'mimeType' => 'application/octet-stream', 'uploadType' => 'media' - ) + ] ); // Now lets try and send the metadata as well using multipart! @@ -103,11 +103,11 @@ $file->setName("Hello World!"); $result2 = $service->files->create( $file, - array( + [ 'data' => file_get_contents(TESTFILE), 'mimeType' => 'application/octet-stream', 'uploadType' => 'multipart' - ) + ] ); } ?> diff --git a/examples/simple-query.php b/examples/simple-query.php index 4195e5b12..8112cc32c 100644 --- a/examples/simple-query.php +++ b/examples/simple-query.php @@ -48,9 +48,9 @@ parameters. ************************************************/ $query = 'Henry David Thoreau'; -$optParams = array( +$optParams = [ 'filter' => 'free-ebooks', -); +]; $results = $service->volumes->listVolumes($query, $optParams); /************************************************ @@ -58,9 +58,9 @@ ***********************************************/ $client->setDefer(true); $query = 'Henry David Thoreau'; -$optParams = array( +$optParams = [ 'filter' => 'free-ebooks', -); +]; $request = $service->volumes->listVolumes($query, $optParams); $resultsDeferred = $client->execute($request); diff --git a/phpcs.xml.dist b/phpcs.xml.dist index c18eadccd..c508de9c9 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -64,6 +64,9 @@ 0
    + + + diff --git a/src/AccessToken/Revoke.php b/src/AccessToken/Revoke.php index bcccc9b47..dd94fe0f2 100644 --- a/src/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -61,7 +61,7 @@ public function revokeToken($token) } } - $body = Psr7\Utils::streamFor(http_build_query(array('token' => $token))); + $body = Psr7\Utils::streamFor(http_build_query(['token' => $token])); $request = new Request( 'POST', Client::OAUTH2_REVOKE_URI, diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 388a57318..8b46ab1c8 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -18,22 +18,22 @@ namespace Google\AccessToken; +use DateTime; +use DomainException; +use Exception; +use ExpiredException; use Firebase\JWT\ExpiredException as ExpiredExceptionV3; -use Firebase\JWT\SignatureInvalidException; use Firebase\JWT\Key; +use Firebase\JWT\SignatureInvalidException; +use Google\Auth\Cache\MemoryCacheItemPool; +use Google\Exception as GoogleException; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use InvalidArgumentException; +use LogicException; use phpseclib3\Crypt\PublicKeyLoader; -use phpseclib3\Crypt\RSA\PublicKey; +use phpseclib3\Crypt\RSA\PublicKey; // Firebase v2 use Psr\Cache\CacheItemPoolInterface; -use Google\Auth\Cache\MemoryCacheItemPool; -use Google\Exception as GoogleException; -use DateTime; -use DomainException; -use Exception; -use ExpiredException; // Firebase v2 -use LogicException; /** * Wrapper around Google Access Tokens which provides convenience functions @@ -74,7 +74,7 @@ public function __construct( } if (null === $cache) { - $cache = new MemoryCacheItemPool; + $cache = new MemoryCacheItemPool(); } $this->http = $http; @@ -123,7 +123,7 @@ public function verifyIdToken($idToken, $audience = null) // support HTTP and HTTPS issuers // @see https://developers.google.com/identity/sign-in/web/backend-auth - $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); + $issuers = [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS]; if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { return false; } @@ -231,7 +231,7 @@ private function getJwtService() } // @phpstan-ignore-next-line - return new $jwtClass; + return new $jwtClass(); } private function getPublicKey($cert) @@ -239,7 +239,7 @@ private function getPublicKey($cert) $bigIntClass = $this->getBigIntClass(); $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - $component = array('n' => $modulus, 'e' => $exponent); + $component = ['n' => $modulus, 'e' => $exponent]; if (class_exists('phpseclib3\Crypt\RSA\PublicKey')) { /** @var PublicKey $loader */ diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index 6bb6328d3..67f6fc145 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -17,9 +17,8 @@ namespace Google\AuthHandler; -use GuzzleHttp\Client; -use GuzzleHttp\ClientInterface; use Exception; +use GuzzleHttp\ClientInterface; class AuthHandlerFactory { diff --git a/src/AuthHandler/Guzzle5AuthHandler.php b/src/AuthHandler/Guzzle5AuthHandler.php index f2767036f..f8a76f0aa 100644 --- a/src/AuthHandler/Guzzle5AuthHandler.php +++ b/src/AuthHandler/Guzzle5AuthHandler.php @@ -3,8 +3,8 @@ namespace Google\AuthHandler; use Google\Auth\CredentialsLoader; -use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\Subscriber\AuthTokenSubscriber; use Google\Auth\Subscriber\ScopedAccessTokenSubscriber; use Google\Auth\Subscriber\SimpleSubscriber; diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 560070724..13f9ee59d 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -3,8 +3,8 @@ namespace Google\AuthHandler; use Google\Auth\CredentialsLoader; -use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\Middleware\AuthTokenMiddleware; use Google\Auth\Middleware\ScopedAccessTokenMiddleware; use Google\Auth\Middleware\SimpleMiddleware; diff --git a/src/Client.php b/src/Client.php index bfe023049..20f70044f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -17,32 +17,32 @@ namespace Google; +use BadMethodCallException; +use DomainException; use Google\AccessToken\Revoke; use Google\AccessToken\Verify; use Google\Auth\ApplicationDefaultCredentials; use Google\Auth\Cache\MemoryCacheItemPool; +use Google\Auth\Credentials\ServiceAccountCredentials; +use Google\Auth\Credentials\UserRefreshCredentials; use Google\Auth\CredentialsLoader; use Google\Auth\FetchAuthTokenCache; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; -use Google\Auth\Credentials\ServiceAccountCredentials; -use Google\Auth\Credentials\UserRefreshCredentials; use Google\AuthHandler\AuthHandlerFactory; use Google\Http\REST; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\ClientInterface; use GuzzleHttp\Ring\Client\StreamHandler; +use InvalidArgumentException; +use LogicException; +use Monolog\Handler\StreamHandler as MonologStreamHandler; +use Monolog\Handler\SyslogHandler as MonologSyslogHandler; +use Monolog\Logger; use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; -use Monolog\Logger; -use Monolog\Handler\StreamHandler as MonologStreamHandler; -use Monolog\Handler\SyslogHandler as MonologSyslogHandler; -use BadMethodCallException; -use DomainException; -use InvalidArgumentException; -use LogicException; use UnexpectedValueException; /** @@ -107,7 +107,7 @@ class Client * * @param array $config */ - public function __construct(array $config = array()) + public function __construct(array $config = []) { $this->config = array_merge([ 'application_name' => '', @@ -157,7 +157,7 @@ public function __construct(array $config = array()) // Task Runner retry configuration // @see Google\Task\Runner - 'retry' => array(), + 'retry' => [], 'retry_map' => null, // Cache class implementing Psr\Cache\CacheItemPoolInterface. @@ -185,7 +185,7 @@ public function __construct(array $config = array()) } else { $this->setAuthConfig($this->config['credentials']); } - unset($this->config['credentials']); + unset($this->config['credentials']); } if (!is_null($this->config['scopes'])) { @@ -446,11 +446,11 @@ public function authorize(ClientInterface $http = null) $scopes, $token['refresh_token'] ); - return $authHandler->attachCredentials( - $http, - $credentials, - $this->config['token_callback'] - ); + return $authHandler->attachCredentials( + $http, + $credentials, + $this->config['token_callback'] + ); } return $authHandler->attachToken($http, $token, (array) $scopes); @@ -508,9 +508,9 @@ public function setAccessToken($token) $token = $json; } else { // assume $token is just the token string - $token = array( + $token = [ 'access_token' => $token, - ); + ]; } } if ($token == null) { @@ -826,7 +826,7 @@ public function verifyIdToken($idToken = null) */ public function setScopes($scope_or_scopes) { - $this->requestedScopes = array(); + $this->requestedScopes = []; $this->addScope($scope_or_scopes); } @@ -1142,7 +1142,7 @@ protected function createDefaultLogger() protected function createDefaultCache() { - return new MemoryCacheItemPool; + return new MemoryCacheItemPool(); } /** @@ -1224,13 +1224,13 @@ private function createApplicationDefaultCredentials() // create credentials using values supplied in setAuthConfig if ($signingKey) { - $serviceAccountCredentials = array( + $serviceAccountCredentials = [ 'client_id' => $this->config['client_id'], 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', 'quota_project_id' => $this->config['quota_project'], - ); + ]; $credentials = CredentialsLoader::makeCredentials( $scopes, $serviceAccountCredentials @@ -1284,13 +1284,11 @@ protected function getAuthHandler() private function createUserRefreshCredentials($scope, $refreshToken) { - $creds = array_filter( - array( + $creds = array_filter([ 'client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), 'refresh_token' => $refreshToken, - ) - ); + ]); return new UserRefreshCredentials($scope, $creds); } diff --git a/src/Http/Batch.php b/src/Http/Batch.php index 954e84dfe..f37045c01 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -18,7 +18,6 @@ namespace Google\Http; use Google\Client; -use Google\Http\REST; use Google\Service\Exception as GoogleServiceException; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; @@ -37,16 +36,16 @@ class Batch { const BATCH_PATH = 'batch'; - private static $CONNECTION_ESTABLISHED_HEADERS = array( + private static $CONNECTION_ESTABLISHED_HEADERS = [ "HTTP/1.0 200 Connection established\r\n\r\n", "HTTP/1.1 200 Connection established\r\n\r\n", - ); + ]; /** @var string Multipart Boundary. */ private $boundary; /** @var array service requests to be executed. */ - private $requests = array(); + private $requests = []; /** @var Client */ private $client; @@ -79,7 +78,7 @@ public function add(RequestInterface $request, $key = false) public function execute() { $body = ''; - $classes = array(); + $classes = []; $batchHttpTemplate = <<getHeaderLine('X-Php-Expected-Class'); @@ -124,10 +123,10 @@ public function execute() $body .= "--{$this->boundary}--"; $body = trim($body); $url = $this->rootUrl . '/' . $this->batchPath; - $headers = array( + $headers = [ 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => (string) strlen($body), - ); + ]; $request = new Request( 'POST', @@ -141,7 +140,7 @@ public function execute() return $this->parseResponse($response, $classes); } - public function parseResponse(ResponseInterface $response, $classes = array()) + public function parseResponse(ResponseInterface $response, $classes = []) { $contentType = $response->getHeaderLine('content-type'); $contentType = explode(';', $contentType); @@ -157,7 +156,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) if (!empty($body)) { $body = str_replace("--$boundary--", "--$boundary", $body); $parts = explode("--$boundary", $body); - $responses = array(); + $responses = []; $requests = array_values($this->requests); foreach ($parts as $i => $part) { @@ -200,7 +199,7 @@ public function parseResponse(ResponseInterface $response, $classes = array()) private function parseRawHeaders($rawHeaders) { - $headers = array(); + $headers = []; $responseHeaderLines = explode("\r\n", $rawHeaders); foreach ($responseHeaderLines as $headerLine) { if ($headerLine && strpos($headerLine, ':') !== false) { @@ -252,6 +251,6 @@ private function parseHttpResponse($respData, $headerSize) $responseHeaders = $this->parseRawHeaders($responseHeaders); - return array($responseHeaders, $responseBody); + return [$responseHeaders, $responseBody]; } } diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index de1a40895..25c98938b 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -18,7 +18,6 @@ namespace Google\Http; use Google\Client; -use Google\Http\REST; use Google\Exception as GoogleException; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; @@ -131,11 +130,11 @@ public function nextChunk($chunk = false) } $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( + $headers = [ 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", 'content-length' => (string) strlen($chunk), 'expect' => '', - ); + ]; $request = new Request( 'PUT', @@ -198,10 +197,10 @@ private function makePutRequest(RequestInterface $request) public function resume($resumeUri) { $this->resumeUri = $resumeUri; - $headers = array( + $headers = [ 'content-range' => "bytes */$this->size", 'content-length' => '0', - ); + ]; $httpRequest = new Request( 'PUT', $this->resumeUri, @@ -234,10 +233,10 @@ private function process() if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { $contentType = $mimeType; $postBody = is_string($meta) ? $meta : json_encode($meta); - } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) { + } elseif (self::UPLOAD_MEDIA_TYPE == $uploadType) { $contentType = $mimeType; $postBody = $this->data; - } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { + } elseif (self::UPLOAD_MULTIPART_TYPE == $uploadType) { // This is a multipart/related upload. $boundary = $this->boundary ?: mt_rand(); $boundary = str_replace('"', '', $boundary); @@ -296,13 +295,13 @@ public function getResumeUri() private function fetchResumeUri() { $body = $this->request->getBody(); - $headers = array( + $headers = [ 'content-type' => 'application/json; charset=UTF-8', 'content-length' => $body->getSize(), 'x-upload-content-type' => $this->mimeType, 'x-upload-content-length' => $this->size, 'expect' => '', - ); + ]; foreach ($headers as $key => $value) { $this->request = $this->request->withHeader($key, $value); } diff --git a/src/Http/REST.php b/src/Http/REST.php index 0bcead157..0e7c11e5d 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -18,9 +18,8 @@ namespace Google\Http; use Google\Auth\HttpHandler\HttpHandlerFactory; -use Google\Client; -use Google\Task\Runner; use Google\Service\Exception as GoogleServiceException; +use Google\Task\Runner; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\Response; @@ -49,14 +48,14 @@ public static function execute( ClientInterface $client, RequestInterface $request, $expectedClass = null, - $config = array(), + $config = [], $retryMap = null ) { $runner = new Runner( $config, sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), - array(get_class(), 'doExecute'), - array($client, $request, $expectedClass) + [get_class(), 'doExecute'], + [$client, $request, $expectedClass] ); if (null !== $retryMap) { diff --git a/src/Model.php b/src/Model.php index 4d0e8dbca..6dea45523 100644 --- a/src/Model.php +++ b/src/Model.php @@ -35,9 +35,9 @@ class Model implements \ArrayAccess * instead - it will be replaced when converting to JSON with a real null. */ const NULL_VALUE = "{}gapi-php-null"; - protected $internal_gapi_mappings = array(); - protected $modelData = array(); - protected $processed = array(); + protected $internal_gapi_mappings = []; + protected $modelData = []; + protected $processed = []; /** * Polymorphic - accepts a variable number of arguments dependent @@ -66,7 +66,7 @@ public function __get($key) if (isset($this->modelData[$key])) { $val = $this->modelData[$key]; } elseif ($keyDataType == 'array' || $keyDataType == 'map') { - $val = array(); + $val = []; } else { $val = null; } @@ -80,8 +80,8 @@ public function __get($key) } else { $this->modelData[$key] = new $keyType($val); } - } else if (is_array($val)) { - $arrayObject = array(); + } elseif (is_array($val)) { + $arrayObject = []; foreach ($val as $arrayIndex => $arrayItem) { $arrayObject[$arrayIndex] = new $keyType($arrayItem); } @@ -106,7 +106,7 @@ protected function mapTypes($array) if ($keyType = $this->keyType($key)) { $dataType = $this->dataType($key); if ($dataType == 'array' || $dataType == 'map') { - $this->$key = array(); + $this->$key = []; foreach ($val as $itemKey => $itemVal) { if ($itemVal instanceof $keyType) { $this->{$key}[$itemKey] = $itemVal; @@ -183,8 +183,8 @@ private function getSimpleValue($value) { if ($value instanceof Model) { return $value->toSimpleObject(); - } else if (is_array($value)) { - $return = array(); + } elseif (is_array($value)) { + $return = []; foreach ($value as $key => $a_value) { $a_value = $this->getSimpleValue($a_value); if ($a_value !== null) { @@ -324,7 +324,7 @@ public function __unset($key) */ private function camelCase($value) { - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); + $value = ucwords(str_replace(['-', '_'], ' ', $value)); $value = str_replace(' ', '', $value); $value[0] = strtolower($value[0]); return $value; diff --git a/src/Service/Exception.php b/src/Service/Exception.php index caec08c07..3212611a6 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -24,7 +24,7 @@ class Exception extends GoogleException /** * Optional list of errors returned in a JSON body of an HTTP error response. */ - protected $errors = array(); + protected $errors = []; /** * Override default constructor to add the ability to set $errors and a retry @@ -40,7 +40,7 @@ public function __construct( $message, $code = 0, Exception $previous = null, - $errors = array() + $errors = [] ) { if (version_compare(PHP_VERSION, '5.3.0') >= 0) { parent::__construct($message, $code, $previous); diff --git a/src/Service/Resource.php b/src/Service/Resource.php index 3afe957ae..b8b08d3cd 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -17,9 +17,9 @@ namespace Google\Service; -use Google\Model; -use Google\Http\MediaFileUpload; use Google\Exception as GoogleException; +use Google\Http\MediaFileUpload; +use Google\Model; use Google\Utils\UriTemplate; use GuzzleHttp\Psr7\Request; @@ -32,18 +32,18 @@ class Resource { // Valid query parameters that work, but don't appear in discovery. - private $stackParameters = array( - 'alt' => array('type' => 'string', 'location' => 'query'), - 'fields' => array('type' => 'string', 'location' => 'query'), - 'trace' => array('type' => 'string', 'location' => 'query'), - 'userIp' => array('type' => 'string', 'location' => 'query'), - 'quotaUser' => array('type' => 'string', 'location' => 'query'), - 'data' => array('type' => 'string', 'location' => 'body'), - 'mimeType' => array('type' => 'string', 'location' => 'header'), - 'uploadType' => array('type' => 'string', 'location' => 'query'), - 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), - 'prettyPrint' => array('type' => 'string', 'location' => 'query'), - ); + private $stackParameters = [ + 'alt' => ['type' => 'string', 'location' => 'query'], + 'fields' => ['type' => 'string', 'location' => 'query'], + 'trace' => ['type' => 'string', 'location' => 'query'], + 'userIp' => ['type' => 'string', 'location' => 'query'], + 'quotaUser' => ['type' => 'string', 'location' => 'query'], + 'data' => ['type' => 'string', 'location' => 'body'], + 'mimeType' => ['type' => 'string', 'location' => 'header'], + 'uploadType' => ['type' => 'string', 'location' => 'query'], + 'mediaUpload' => ['type' => 'complex', 'location' => 'query'], + 'prettyPrint' => ['type' => 'string', 'location' => 'query'], + ]; /** @var string $rootUrl */ private $rootUrl; @@ -72,7 +72,7 @@ public function __construct($service, $serviceName, $resourceName, $resource) $this->resourceName = $resourceName; $this->methods = is_array($resource) && isset($resource['methods']) ? $resource['methods'] : - array($resourceName => $resource); + [$resourceName => $resource]; } /** @@ -90,11 +90,11 @@ public function call($name, $arguments, $expectedClass = null) if (! isset($this->methods[$name])) { $this->client->getLogger()->error( 'Service method unknown', - array( + [ 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name - ) + ] ); throw new GoogleException( @@ -114,7 +114,7 @@ public function call($name, $arguments, $expectedClass = null) // to use the smart method to create a simple object for // for JSONification. $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); - } else if (is_object($parameters['postBody'])) { + } elseif (is_object($parameters['postBody'])) { // If the post body is another kind of object, we will try and // wrangle it into a sensible format. $parameters['postBody'] = @@ -133,7 +133,7 @@ public function call($name, $arguments, $expectedClass = null) } if (!isset($method['parameters'])) { - $method['parameters'] = array(); + $method['parameters'] = []; } $method['parameters'] = array_merge( @@ -145,12 +145,12 @@ public function call($name, $arguments, $expectedClass = null) if ($key != 'postBody' && !isset($method['parameters'][$key])) { $this->client->getLogger()->error( 'Service parameter unknown', - array( + [ 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $key - ) + ] ); throw new GoogleException("($name) unknown parameter: '$key'"); } @@ -164,12 +164,12 @@ public function call($name, $arguments, $expectedClass = null) ) { $this->client->getLogger()->error( 'Service parameter missing', - array( + [ 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $paramName - ) + ] ); throw new GoogleException("($name) missing required param: '$paramName'"); } @@ -186,12 +186,12 @@ public function call($name, $arguments, $expectedClass = null) $this->client->getLogger()->info( 'Service Call', - array( + [ 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'arguments' => $parameters, - ) + ] ); // build the service uri @@ -275,15 +275,15 @@ public function createRequestUri($restPath, $params) } $requestUrl = $this->rootUrl . $requestUrl; } - $uriTemplateVars = array(); - $queryVars = array(); + $uriTemplateVars = []; + $queryVars = []; foreach ($params as $paramName => $paramSpec) { if ($paramSpec['type'] == 'boolean') { $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; } if ($paramSpec['location'] == 'path') { $uriTemplateVars[$paramName] = $paramSpec['value']; - } else if ($paramSpec['location'] == 'query') { + } elseif ($paramSpec['location'] == 'query') { if (is_array($paramSpec['value'])) { foreach ($paramSpec['value'] as $value) { $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); diff --git a/src/Task/Composer.php b/src/Task/Composer.php index 1c3a1b5ee..04969f207 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -18,9 +18,9 @@ namespace Google\Task; use Composer\Script\Event; +use InvalidArgumentException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; -use InvalidArgumentException; class Composer { diff --git a/src/Task/Runner.php b/src/Task/Runner.php index 8f74559dc..8494f8c9e 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -98,11 +98,12 @@ class Runner * @param array $arguments The task arguments * @throws \Google\Task\Exception when misconfigured */ - public function __construct( // @phpstan-ignore-line + // @phpstan-ignore-next-line + public function __construct( $config, $name, $action, - array $arguments = array() + array $arguments = [] ) { if (isset($config['initial_delay'])) { if ($config['initial_delay'] < 0) { @@ -269,7 +270,7 @@ private function getJitter() * * @return integer */ - public function allowedRetries($code, $errors = array()) + public function allowedRetries($code, $errors = []) { if (isset($this->retryMap[$code])) { return $this->retryMap[$code]; diff --git a/src/Utils/UriTemplate.php b/src/Utils/UriTemplate.php index da82d3fd2..d4691e02c 100644 --- a/src/Utils/UriTemplate.php +++ b/src/Utils/UriTemplate.php @@ -33,30 +33,30 @@ class UriTemplate * modify the way in which the variables inside are * processed. */ - private $operators = array( - "+" => "reserved", - "/" => "segments", - "." => "dotprefix", - "#" => "fragment", - ";" => "semicolon", - "?" => "form", - "&" => "continuation" - ); + private $operators = [ + "+" => "reserved", + "/" => "segments", + "." => "dotprefix", + "#" => "fragment", + ";" => "semicolon", + "?" => "form", + "&" => "continuation" + ]; /** * @var array * These are the characters which should not be URL encoded in reserved * strings. */ - private $reserved = array( - "=", ",", "!", "@", "|", ":", "/", "?", "#", - "[", "]",'$', "&", "'", "(", ")", "*", "+", ";" - ); - private $reservedEncoded = array( - "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", - "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", - "%2A", "%2B", "%3B" - ); + private $reserved = [ + "=", ",", "!", "@", "|", ":", "/", "?", "#", + "[", "]", '$', "&", "'", "(", ")", "*", "+", ";" + ]; + private $reservedEncoded = [ + "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", + "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", + "%2A", "%2B", "%3B" + ]; public function parse($string, array $parameters) { @@ -138,7 +138,6 @@ private function replace($string, $start, $end, $parameters) if ($data || ($data !== false && $prefix_on_missing)) { $data = $prefix . $data; } - } else { // If no operator we replace with the defaults. $data = $this->replaceVars($data, $parameters); @@ -220,7 +219,7 @@ public function combine( $value = $this->getValue($parameters[$key], $length); break; case self::TYPE_LIST: - $values = array(); + $values = []; foreach ($parameters[$key] as $pkey => $pvalue) { $pvalue = $this->getValue($pvalue, $length); if ($combine && $explode) { @@ -235,7 +234,7 @@ public function combine( } break; case self::TYPE_MAP: - $values = array(); + $values = []; foreach ($parameters[$key] as $pkey => $pvalue) { $pvalue = $this->getValue($pvalue, $length); if ($explode) { @@ -252,7 +251,7 @@ public function combine( } break; } - } else if ($tag_empty) { + } elseif ($tag_empty) { // If we are just indicating empty values with their key name, return that. return $key; } else { @@ -302,7 +301,7 @@ private function combineList( $tag_empty, $combine_on_empty ) { - $ret = array(); + $ret = []; foreach ($vars as $var) { $response = $this->combine( $var, @@ -314,7 +313,7 @@ private function combineList( $combine_on_empty ); if ($response === false) { - continue; + continue; } $ret[] = $response; } diff --git a/src/aliases.php b/src/aliases.php index 525d09164..4419ba7e3 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -43,24 +43,64 @@ class Google_Task_Composer extends \Google\Task\Composer /** @phpstan-ignore-next-line */ if (\false) { - class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke {} - class Google_AccessToken_Verify extends \Google\AccessToken\Verify {} - class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory {} - class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler {} - class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler {} - class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler {} - class Google_Client extends \Google\Client {} - class Google_Collection extends \Google\Collection {} - class Google_Exception extends \Google\Exception {} - class Google_Http_Batch extends \Google\Http\Batch {} - class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload {} - class Google_Http_REST extends \Google\Http\REST {} - class Google_Model extends \Google\Model {} - class Google_Service extends \Google\Service {} - class Google_Service_Exception extends \Google\Service\Exception {} - class Google_Service_Resource extends \Google\Service\Resource {} - class Google_Task_Exception extends \Google\Task\Exception {} - interface Google_Task_Retryable extends \Google\Task\Retryable {} - class Google_Task_Runner extends \Google\Task\Runner {} - class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate {} + class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke + { + } + class Google_AccessToken_Verify extends \Google\AccessToken\Verify + { + } + class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory + { + } + class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler + { + } + class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler + { + } + class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler + { + } + class Google_Client extends \Google\Client + { + } + class Google_Collection extends \Google\Collection + { + } + class Google_Exception extends \Google\Exception + { + } + class Google_Http_Batch extends \Google\Http\Batch + { + } + class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload + { + } + class Google_Http_REST extends \Google\Http\REST + { + } + class Google_Model extends \Google\Model + { + } + class Google_Service extends \Google\Service + { + } + class Google_Service_Exception extends \Google\Service\Exception + { + } + class Google_Service_Resource extends \Google\Service\Resource + { + } + class Google_Task_Exception extends \Google\Task\Exception + { + } + interface Google_Task_Retryable extends \Google\Task\Retryable + { + } + class Google_Task_Runner extends \Google\Task\Runner + { + } + class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate + { + } } diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 84457cb3b..66df1bd4b 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -159,7 +159,7 @@ private function getClientIdAndSecret() $clientId = getenv('GOOGLE_CLIENT_ID') ?: null; $clientSecret = getenv('GOOGLE_CLIENT_SECRET') ?: null; - return array($clientId, $clientSecret); + return [$clientId, $clientSecret]; } protected function checkClientCredentials() diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 3e604b510..0f1dcc56c 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -211,24 +211,24 @@ public function testPrepareService() $this->onlyGuzzle6Or7(); $client = new Client(); - $client->setScopes(array("scope1", "scope2")); + $client->setScopes(["scope1", "scope2"]); $scopes = $client->prepareScopes(); $this->assertEquals("scope1 scope2", $scopes); - $client->setScopes(array("", "scope2")); + $client->setScopes(["", "scope2"]); $scopes = $client->prepareScopes(); $this->assertEquals(" scope2", $scopes); $client->setScopes("scope2"); $client->addScope("scope3"); - $client->addScope(array("scope4", "scope5")); + $client->addScope(["scope4", "scope5"]); $scopes = $client->prepareScopes(); $this->assertEquals("scope2 scope3 scope4 scope5", $scopes); $client->setClientId('test1'); $client->setRedirectUri('http://localhost/'); $client->setState('xyz'); - $client->setScopes(array("http://test.com", "scope2")); + $client->setScopes(["http://test.com", "scope2"]); $scopes = $client->prepareScopes(); $this->assertEquals("http://test.com scope2", $scopes); $this->assertEquals( @@ -309,7 +309,7 @@ public function testSettersGetters() $this->assertEquals('invalid json token', $e->getMessage()); } - $token = array('access_token' => 'token'); + $token = ['access_token' => 'token']; $client->setAccessToken($token); $this->assertEquals($token, $client->getAccessToken()); } @@ -531,10 +531,10 @@ public function testRefreshTokenSetsValues() public function testRefreshTokenIsSetOnRefresh() { $refreshToken = 'REFRESH_TOKEN'; - $token = json_encode(array( + $token = json_encode([ 'access_token' => 'xyz', 'id_token' => 'ID_TOKEN', - )); + ]); $postBody = $this->prophesize('Psr\Http\Message\StreamInterface'); $postBody->__toString() ->shouldBeCalledTimes(1) @@ -584,11 +584,11 @@ public function testRefreshTokenIsSetOnRefresh() public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() { $refreshToken = 'REFRESH_TOKEN'; - $token = json_encode(array( + $token = json_encode([ 'access_token' => 'xyz', 'id_token' => 'ID_TOKEN', 'refresh_token' => 'NEW_REFRESH_TOKEN' - )); + ]); $postBody = $this->prophesize('GuzzleHttp\Psr7\Stream'); $postBody->__toString() diff --git a/tests/Google/Http/MediaFileUploadTest.php b/tests/Google/Http/MediaFileUploadTest.php index bfb824169..ae7bffedf 100644 --- a/tests/Google/Http/MediaFileUploadTest.php +++ b/tests/Google/Http/MediaFileUploadTest.php @@ -60,7 +60,7 @@ public function testGetUploadType() // Test multipart uploads $media = new MediaFileUpload($client, $request, 'image/png', 'a', false); - $this->assertEquals('multipart', $media->getUploadType(array('a' => 'b'))); + $this->assertEquals('multipart', $media->getUploadType(['a' => 'b'])); } public function testProcess() diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 2c8bb2136..1d09c0261 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -45,8 +45,8 @@ public function testDecodeResponse() $decoded = $this->rest->decodeHttpResponse($response, $this->request); $this->assertEquals($response, $decoded); - foreach (array(200, 201) as $code) { - $headers = array('foo', 'bar'); + foreach ([200, 201] as $code) { + $headers = ['foo', 'bar']; $stream = Psr7\Utils::streamFor('{"a": 1}'); $response = new Response($code, $headers, $stream); @@ -60,7 +60,7 @@ public function testDecodeMediaResponse() $client = $this->getClient(); $request = new Request('GET', 'http://www.example.com?alt=media'); - $headers = array(); + $headers = []; $stream = Psr7\Utils::streamFor('thisisnotvalidjson'); $response = new Response(200, $headers, $stream); @@ -88,7 +88,7 @@ public function testExceptionResponse() public function testDecodeEmptyResponse() { $stream = Psr7\Utils::streamFor('{}'); - $response = new Response(200, array(), $stream); + $response = new Response(200, [], $stream); $decoded = $this->rest->decodeHttpResponse($response, $this->request); $this->assertEquals('{}', (string) $decoded->getBody()); } @@ -104,7 +104,7 @@ public function testBadErrorFormatting() } }' ); - $response = new Response(500, array(), $stream); + $response = new Response(500, [], $stream); $this->rest->decodeHttpResponse($response, $this->request); } @@ -128,7 +128,7 @@ public function tesProperErrorFormatting() } }' ); - $response = new Response(401, array(), $stream); + $response = new Response(401, [], $stream); $this->rest->decodeHttpResponse($response, $this->request); } @@ -136,7 +136,7 @@ public function testNotJson404Error() { $this->expectException(ServiceException::class); $stream = Psr7\Utils::streamFor('Not Found'); - $response = new Response(404, array(), $stream); + $response = new Response(404, [], $stream); $this->rest->decodeHttpResponse($response, $this->request); } } diff --git a/tests/Google/ModelTest.php b/tests/Google/ModelTest.php index 35abcd310..77d35e09e 100644 --- a/tests/Google/ModelTest.php +++ b/tests/Google/ModelTest.php @@ -114,7 +114,7 @@ public function testOddMappingNames() $creative->setBuyerCreativeId('12345'); $creative->setAdvertiserName('Hi'); $creative->setHTMLSnippet("

    Foo!

    "); - $creative->setClickThroughUrl(array('http://somedomain.com')); + $creative->setClickThroughUrl(['http://somedomain.com']); $creative->setWidth(100); $creative->setHeight(100); $data = json_decode(json_encode($creative->toSimpleObject()), true); @@ -135,7 +135,7 @@ public function testJsonStructure() $model3 = new Model(); $model3->publicE = 54321; $model3->publicF = null; - $model->publicG = array($model3, "hello", false); + $model->publicG = [$model3, "hello", false]; $model->publicH = false; $model->publicI = 0; $string = json_encode($model->toSimpleObject()); diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 3599f7abc..453908ced 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -458,12 +458,12 @@ private function checkUrlChannelsCollection($urlChannels) private function getReportOptParams() { - return array( - 'metric' => array('PAGE_VIEWS', 'AD_REQUESTS'), - 'dimension' => array ('DATE', 'AD_CLIENT_ID'), - 'sort' => array('DATE'), - 'filter' => array('COUNTRY_NAME==United States'), - ); + return [ + 'metric' => ['PAGE_VIEWS', 'AD_REQUESTS'], + 'dimension' => ['DATE', 'AD_CLIENT_ID'], + 'sort' => ['DATE'], + 'filter' => ['COUNTRY_NAME==United States'], + ]; } private function checkReport($report) diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 51e7e25cd..870286608 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -73,17 +73,17 @@ public function testCallFailure() $this->service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); - $resource->call("someothermethod", array()); + $resource->call("someothermethod", []); } public function testCall() @@ -92,17 +92,17 @@ public function testCall() $this->service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); - $request = $resource->call("testMethod", array(array())); + $request = $resource->call("testMethod", [[]]); $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } @@ -114,17 +114,17 @@ public function testCallServiceDefinedRoot() $this->service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); - $request = $resource->call("testMethod", array(array())); + $request = $resource->call("testMethod", [[]]); $this->assertEquals("https://sample.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); } @@ -142,17 +142,17 @@ public function testCreateRequestUriForASelfDefinedServicePath() $this->service, 'test', 'testResource', - array( - "methods" => array( - 'testMethod' => array( - 'parameters' => array(), + [ + "methods" => [ + 'testMethod' => [ + 'parameters' => [], 'path' => '/admin/directory_v1/watch/stop', 'httpMethod' => 'POST', - ) - ) - ) + ] + ] + ] ); - $request = $resource->call('testMethod', array(array())); + $request = $resource->call('testMethod', [[]]); $this->assertEquals('https://test.example.com/admin/directory_v1/watch/stop', (string) $request->getUri()); } @@ -161,10 +161,10 @@ public function testCreateRequestUri() $restPath = "plus/{u}"; $service = new GoogleService($this->client->reveal()); $service->servicePath = "http://localhost/"; - $resource = new GoogleResource($service, 'test', 'testResource', array()); + $resource = new GoogleResource($service, 'test', 'testResource', []); // Test Path - $params = array(); + $params = []; $params['u']['type'] = 'string'; $params['u']['location'] = 'path'; $params['u']['value'] = 'me'; @@ -172,7 +172,7 @@ public function testCreateRequestUri() $this->assertEquals("http://localhost/plus/me", $value); // Test Query - $params = array(); + $params = []; $params['u']['type'] = 'string'; $params['u']['location'] = 'query'; $params['u']['value'] = 'me'; @@ -180,7 +180,7 @@ public function testCreateRequestUri() $this->assertEquals("http://localhost/plus?u=me", $value); // Test Booleans - $params = array(); + $params = []; $params['u']['type'] = 'boolean'; $params['u']['location'] = 'path'; $params['u']['value'] = '1'; @@ -192,7 +192,7 @@ public function testCreateRequestUri() $this->assertEquals("http://localhost/plus?u=true", $value); // Test encoding - $params = array(); + $params = []; $params['u']['type'] = 'string'; $params['u']['location'] = 'query'; $params['u']['value'] = '@me/'; @@ -236,15 +236,15 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() $service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); $expectedClass = 'ThisShouldBeIgnored'; @@ -289,15 +289,15 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); try { @@ -346,15 +346,15 @@ public function testErrorResponseWithVeryLongBody() $service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); try { @@ -392,15 +392,15 @@ public function testSuccessResponseWithVeryLongBody() $service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); $expectedClass = 'ThisShouldBeIgnored'; @@ -451,20 +451,20 @@ public function testExceptionMessage() $service, "test", "testResource", - array( - "methods" => array( - "testMethod" => array( - "parameters" => array(), + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], "path" => "method/path", "httpMethod" => "POST", - ) - ) - ) + ] + ] + ] ); try { - $decoded = $resource->call('testMethod', array(array())); + $decoded = $resource->call('testMethod', [[]]); $this->fail('should have thrown exception'); } catch (ServiceException $e) { $this->assertEquals($errors, $e->getErrors()); diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index 8cc0b34f9..c6e4032ee 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -33,7 +33,7 @@ public function set_up() public function testMissingFieldsAreNull() { $parts = "id,brandingSettings"; - $opts = array("mine" => true); + $opts = ["mine" => true]; $channels = $this->youtube->channels->listChannels($parts, $opts); $newChannel = new YouTube\Channel(); @@ -75,7 +75,7 @@ public function testMissingFieldsAreNull() $ping = new YouTube\ChannelConversionPing(); $ping->setContext("hello"); $pings = new YouTube\ChannelConversionPings(); - $pings->setPings(array($ping)); + $pings->setPings([$ping]); $simplePings = $pings->toSimpleObject(); $this->assertObjectHasAttribute('context', $simplePings->pings[0]); $this->assertObjectNotHasAttribute('conversionUrl', $simplePings->pings[0]); diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 07da91a3f..75d49bfbe 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -94,38 +94,34 @@ public function testModel() { $model = new TestModel(); - $model->mapTypes( - array( + $model->mapTypes([ 'name' => 'asdf', 'gender' => 'z', - ) - ); + ]); $this->assertEquals('asdf', $model->name); $this->assertEquals('z', $model->gender); - $model->mapTypes( - array( - '__infoType' => 'Google_Model', - '__infoDataType' => 'map', - 'info' => array ( - 'location' => 'mars', - 'timezone' => 'mst', - ), - 'name' => 'asdf', - 'gender' => 'z', - ) - ); + $model->mapTypes([ + '__infoType' => 'Google_Model', + '__infoDataType' => 'map', + 'info' => [ + 'location' => 'mars', + 'timezone' => 'mst', + ], + 'name' => 'asdf', + 'gender' => 'z', + ]); $this->assertEquals('asdf', $model->name); $this->assertEquals('z', $model->gender); $this->assertFalse($model->isAssociativeArray("")); $this->assertFalse($model->isAssociativeArray(false)); $this->assertFalse($model->isAssociativeArray(null)); - $this->assertFalse($model->isAssociativeArray(array())); - $this->assertFalse($model->isAssociativeArray(array(1, 2))); - $this->assertFalse($model->isAssociativeArray(array(1 => 2))); + $this->assertFalse($model->isAssociativeArray([])); + $this->assertFalse($model->isAssociativeArray([1, 2])); + $this->assertFalse($model->isAssociativeArray([1 => 2])); - $this->assertTrue($model->isAssociativeArray(array('test' => 'a'))); - $this->assertTrue($model->isAssociativeArray(array("a", "b" => 2))); + $this->assertTrue($model->isAssociativeArray(['test' => 'a'])); + $this->assertTrue($model->isAssociativeArray(["a", "b" => 2])); } public function testConfigConstructor() diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index dd3cc80e5..62d5a987d 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -38,7 +38,7 @@ class RunnerTest extends BaseTest private $mockedCallsCount = 0; private $currentMockedCall = 0; - private $mockedCalls = array(); + private $mockedCalls = []; private $retryMap; private $retryConfig; @@ -62,7 +62,7 @@ public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') public function testOneRestRetryWithError($errorCode, $errorBody = '{}') { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $this->setNextResponses(2, $errorCode, $errorBody)->makeRequest(); } @@ -75,7 +75,7 @@ public function testMultipleRestRetriesWithErrors( ) { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponses(6, $errorCode, $errorBody)->makeRequest(); } @@ -84,7 +84,7 @@ public function testMultipleRestRetriesWithErrors( */ public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') { - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $result = $this->setNextResponse($errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -99,7 +99,7 @@ public function testMultipleRestRetriesWithSuccess( $errorCode, $errorBody = '{}' ) { - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $result = $this->setNextResponses(2, $errorCode, $errorBody) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -116,19 +116,19 @@ public function testCustomRestRetryMapReplacesDefaults( ) { $this->expectException(ServiceException::class); - $this->setRetryMap(array()); + $this->setRetryMap([]); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponse($errorCode, $errorBody)->makeRequest(); } public function testCustomRestRetryMapAddsNewHandlers() { $this->setRetryMap( - array('403' => Runner::TASK_RETRY_ALWAYS) + ['403' => Runner::TASK_RETRY_ALWAYS] ); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $result = $this->setNextResponses(2, 403) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -144,10 +144,10 @@ public function testCustomRestRetryMapWithCustomLimits($limit) $this->expectException(ServiceException::class); $this->setRetryMap( - array('403' => $limit) + ['403' => $limit] ); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponses($limit + 1, 403)->makeRequest(); } @@ -162,7 +162,7 @@ public function testRestTimeouts($config, $minTime) $this->assertTaskTimeGreaterThanOrEqual( $minTime, - array($this, 'makeRequest'), + [$this, 'makeRequest'], $config['initial_delay'] / 10 ); } @@ -186,7 +186,7 @@ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $this->setNextResponsesThrow(2, $errorMessage, $errorCode)->makeRequest(); } @@ -200,7 +200,7 @@ public function testMultipleCurlRetriesWithErrors( ) { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponsesThrow(6, $errorMessage, $errorCode)->makeRequest(); } @@ -210,7 +210,7 @@ public function testMultipleCurlRetriesWithErrors( */ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') { - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $result = $this->setNextResponseThrows($errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -226,7 +226,7 @@ public function testMultipleCurlRetriesWithSuccess( $errorCode, $errorMessage = '' ) { - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $result = $this->setNextResponsesThrow(2, $errorMessage, $errorCode) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -244,9 +244,9 @@ public function testCustomCurlRetryMapReplacesDefaults( ) { $this->expectException(ServiceException::class); - $this->setRetryMap(array()); + $this->setRetryMap([]); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponseThrows($errorMessage, $errorCode)->makeRequest(); } @@ -256,10 +256,10 @@ public function testCustomCurlRetryMapReplacesDefaults( public function testCustomCurlRetryMapAddsNewHandlers() { $this->setRetryMap( - array(CURLE_COULDNT_RESOLVE_PROXY => Runner::TASK_RETRY_ALWAYS) + [CURLE_COULDNT_RESOLVE_PROXY => Runner::TASK_RETRY_ALWAYS] ); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $result = $this->setNextResponsesThrow(2, '', CURLE_COULDNT_RESOLVE_PROXY) ->setNextResponse(200, '{"success": true}') ->makeRequest(); @@ -276,10 +276,10 @@ public function testCustomCurlRetryMapWithCustomLimits($limit) $this->expectException(ServiceException::class); $this->setRetryMap( - array(CURLE_COULDNT_RESOLVE_PROXY => $limit) + [CURLE_COULDNT_RESOLVE_PROXY => $limit] ); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextResponsesThrow($limit + 1, '', CURLE_COULDNT_RESOLVE_PROXY) ->makeRequest(); } @@ -296,7 +296,7 @@ public function testCurlTimeouts($config, $minTime) $this->assertTaskTimeGreaterThanOrEqual( $minTime, - array($this, 'makeRequest'), + [$this, 'makeRequest'], $config['initial_delay'] / 10 ); } @@ -313,7 +313,7 @@ public function testBadTaskConfig($config, $message) new Runner( $this->retryConfig, '', - array($this, 'testBadTaskConfig') + [$this, 'testBadTaskConfig'] ); } @@ -339,7 +339,7 @@ public function testOneTaskRetryWithError() { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->runTask(); } @@ -348,14 +348,14 @@ public function testMultipleTaskRetriesWithErrors() { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextTasksAllowedRetries(6, Runner::TASK_RETRY_ALWAYS) ->runTask(); } public function testOneTaskRetryWithSuccess() { - $this->setRetryConfig(array('retries' => 1)); + $this->setRetryConfig(['retries' => 1]); $result = $this->setNextTaskAllowedRetries(Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -365,7 +365,7 @@ public function testOneTaskRetryWithSuccess() public function testMultipleTaskRetriesWithSuccess() { - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $result = $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS) ->setNextTaskReturnValue('success') ->runTask(); @@ -380,7 +380,7 @@ public function testTaskRetryWithCustomLimits($limit) { $this->expectException(ServiceException::class); - $this->setRetryConfig(array('retries' => 5)); + $this->setRetryConfig(['retries' => 5]); $this->setNextTasksAllowedRetries($limit + 1, $limit) ->runTask(); } @@ -396,20 +396,20 @@ public function testTaskTimeouts($config, $minTime) $this->assertTaskTimeGreaterThanOrEqual( $minTime, - array($this, 'runTask'), + [$this, 'runTask'], $config['initial_delay'] / 10 ); } public function testTaskWithManualRetries() { - $this->setRetryConfig(array('retries' => 2)); + $this->setRetryConfig(['retries' => 2]); $this->setNextTasksAllowedRetries(2, Runner::TASK_RETRY_ALWAYS); $task = new Runner( $this->retryConfig, '', - array($this, 'runNextTask') + [$this, 'runNextTask'] ); $this->assertTrue($task->canAttempt()); @@ -432,15 +432,15 @@ public function testTaskWithManualRetries() */ public function timeoutProvider() { - $config = array('initial_delay' => .001, 'max_delay' => .01); + $config = ['initial_delay' => .001, 'max_delay' => .01]; - return array( - array(array_merge($config, array('retries' => 1)), .001), - array(array_merge($config, array('retries' => 2)), .0015), - array(array_merge($config, array('retries' => 3)), .00225), - array(array_merge($config, array('retries' => 4)), .00375), - array(array_merge($config, array('retries' => 5)), .005625) - ); + return [ + [array_merge($config, ['retries' => 1]), .001], + [array_merge($config, ['retries' => 2]), .0015], + [array_merge($config, ['retries' => 3]), .00225], + [array_merge($config, ['retries' => 4]), .00375], + [array_merge($config, ['retries' => 5]), .005625] + ]; } /** @@ -450,10 +450,10 @@ public function timeoutProvider() */ public function customLimitsProvider() { - return array( - array(Runner::TASK_RETRY_NEVER), - array(Runner::TASK_RETRY_ONCE), - ); + return [ + [Runner::TASK_RETRY_NEVER], + [Runner::TASK_RETRY_ONCE], + ]; } /** @@ -463,13 +463,13 @@ public function customLimitsProvider() */ public function badTaskConfigProvider() { - return array( - array(array('initial_delay' => -1), 'must not be negative'), - array(array('max_delay' => 0), 'must be greater than 0'), - array(array('factor' => 0), 'must be greater than 0'), - array(array('jitter' => 0), 'must be greater than 0'), - array(array('retries' => -1), 'must not be negative') - ); + return [ + [['initial_delay' => -1], 'must not be negative'], + [['max_delay' => 0], 'must be greater than 0'], + [['factor' => 0], 'must be greater than 0'], + [['jitter' => 0], 'must be greater than 0'], + [['retries' => -1], 'must not be negative'] + ]; } /** @@ -479,12 +479,12 @@ public function badTaskConfigProvider() */ public function defaultRestErrorProvider() { - return array( - array(500), - array(503), - array(403, '{"error":{"errors":[{"reason":"rateLimitExceeded"}]}}'), - array(403, '{"error":{"errors":[{"reason":"userRateLimitExceeded"}]}}'), - ); + return [ + [500], + [503], + [403, '{"error":{"errors":[{"reason":"rateLimitExceeded"}]}}'], + [403, '{"error":{"errors":[{"reason":"userRateLimitExceeded"}]}}'], + ]; } /** @@ -494,13 +494,13 @@ public function defaultRestErrorProvider() */ public function defaultCurlErrorProvider() { - return array( - array(6), // CURLE_COULDNT_RESOLVE_HOST - array(7), // CURLE_COULDNT_CONNECT - array(28), // CURLE_OPERATION_TIMEOUTED - array(35), // CURLE_SSL_CONNECT_ERROR - array(52), // CURLE_GOT_NOTHING - ); + return [ + [6], // CURLE_COULDNT_RESOLVE_HOST + [7], // CURLE_COULDNT_CONNECT + [28], // CURLE_OPERATION_TIMEOUTED + [35], // CURLE_SSL_CONNECT_ERROR + [52], // CURLE_GOT_NOTHING + ]; } /** @@ -539,13 +539,13 @@ public static function assertTaskTimeGreaterThanOrEqual( */ private function setRetryConfig(array $config) { - $config += array( - 'initial_delay' => .0001, - 'max_delay' => .001, - 'factor' => 2, - 'jitter' => .5, - 'retries' => 1 - ); + $config += [ + 'initial_delay' => .0001, + 'max_delay' => .001, + 'factor' => 2, + 'jitter' => .5, + 'retries' => 1 + ]; $this->retryConfig = $config; } @@ -568,7 +568,7 @@ private function setNextResponses( $count, $code = '200', $body = '{}', - array $headers = array() + array $headers = [] ) { while ($count-- > 0) { $this->setNextResponse($code, $body, $headers); @@ -589,13 +589,13 @@ private function setNextResponses( private function setNextResponse( $code = '200', $body = '{}', - array $headers = array() + array $headers = [] ) { - $this->mockedCalls[$this->mockedCallsCount++] = array( - 'code' => (string) $code, - 'headers' => $headers, - 'body' => is_string($body) ? $body : json_encode($body) - ); + $this->mockedCalls[$this->mockedCallsCount++] = [ + 'code' => (string) $code, + 'headers' => $headers, + 'body' => is_string($body) ? $body : json_encode($body) + ]; return $this; } @@ -632,7 +632,7 @@ private function setNextResponseThrows($message, $code) $message, $code, null, - array() + [] ); return $this; @@ -744,7 +744,7 @@ private function runTask() $task = new Runner( $this->retryConfig, '', - array($this, 'runNextTask') + [$this, 'runNextTask'] ); if (null !== $this->retryMap) { @@ -754,7 +754,7 @@ private function runTask() $exception = $this->prophesize(ServiceException::class); $exceptionCount = 0; - $exceptionCalls = array(); + $exceptionCalls = []; for ($i = 0; $i < $this->mockedCallsCount; $i++) { if (is_int($this->mockedCalls[$i])) { diff --git a/tests/Google/Utils/UriTemplateTest.php b/tests/Google/Utils/UriTemplateTest.php index 5e3e2d414..8c366435d 100644 --- a/tests/Google/Utils/UriTemplateTest.php +++ b/tests/Google/Utils/UriTemplateTest.php @@ -33,11 +33,11 @@ public function testLevelOne() $urit = new UriTemplate(); $this->assertEquals( "value", - $urit->parse("{var}", array("var" => $var)) + $urit->parse("{var}", ["var" => $var]) ); $this->assertEquals( "Hello%20World%21", - $urit->parse("{hello}", array("hello" => $hello)) + $urit->parse("{hello}", ["hello" => $hello]) ); } @@ -50,27 +50,27 @@ public function testLevelTwo() $urit = new UriTemplate(); $this->assertEquals( "value", - $urit->parse("{+var}", array("var" => $var)) + $urit->parse("{+var}", ["var" => $var]) ); $this->assertEquals( "Hello%20World!", - $urit->parse("{+hello}", array("hello" => $hello)) + $urit->parse("{+hello}", ["hello" => $hello]) ); $this->assertEquals( "/foo/bar/here", - $urit->parse("{+path}/here", array("path" => $path)) + $urit->parse("{+path}/here", ["path" => $path]) ); $this->assertEquals( "here?ref=/foo/bar", - $urit->parse("here?ref={+path}", array("path" => $path)) + $urit->parse("here?ref={+path}", ["path" => $path]) ); $this->assertEquals( "X#value", - $urit->parse("X{#var}", array("var" => $var)) + $urit->parse("X{#var}", ["var" => $var]) ); $this->assertEquals( "X#Hello%20World!", - $urit->parse("X{#hello}", array("hello" => $hello)) + $urit->parse("X{#hello}", ["hello" => $hello]) ); } @@ -86,97 +86,97 @@ public function testLevelThree() $urit = new UriTemplate(); $this->assertEquals( "map?1024,768", - $urit->parse("map?{x,y}", array("x" => $x, "y" => $y)) + $urit->parse("map?{x,y}", ["x" => $x, "y" => $y]) ); $this->assertEquals( "1024,Hello%20World%21,768", - $urit->parse("{x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + $urit->parse("{x,hello,y}", ["x" => $x, "y" => $y, "hello" => $hello]) ); $this->assertEquals( "1024,Hello%20World!,768", - $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + $urit->parse("{+x,hello,y}", ["x" => $x, "y" => $y, "hello" => $hello]) ); $this->assertEquals( "/foo/bar,1024/here", - $urit->parse("{+path,x}/here", array("x" => $x, "path" => $path)) + $urit->parse("{+path,x}/here", ["x" => $x, "path" => $path]) ); $this->assertEquals( "#1024,Hello%20World!,768", - $urit->parse("{#x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) + $urit->parse("{#x,hello,y}", ["x" => $x, "y" => $y, "hello" => $hello]) ); $this->assertEquals( "#/foo/bar,1024/here", - $urit->parse("{#path,x}/here", array("x" => $x, "path" => $path)) + $urit->parse("{#path,x}/here", ["x" => $x, "path" => $path]) ); $this->assertEquals( "X.value", - $urit->parse("X{.var}", array("var" => $var)) + $urit->parse("X{.var}", ["var" => $var]) ); $this->assertEquals( "X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + $urit->parse("X{.x,y}", ["x" => $x, "y" => $y]) ); $this->assertEquals( "X.value", - $urit->parse("X{.var}", array("var" => $var)) + $urit->parse("X{.var}", ["var" => $var]) ); $this->assertEquals( "X.1024.768", - $urit->parse("X{.x,y}", array("x" => $x, "y" => $y)) + $urit->parse("X{.x,y}", ["x" => $x, "y" => $y]) ); $this->assertEquals( "/value", - $urit->parse("{/var}", array("var" => $var)) + $urit->parse("{/var}", ["var" => $var]) ); $this->assertEquals( "/value/1024/here", - $urit->parse("{/var,x}/here", array("x" => $x, "var" => $var)) + $urit->parse("{/var,x}/here", ["x" => $x, "var" => $var]) ); $this->assertEquals( ";x=1024;y=768", - $urit->parse("{;x,y}", array("x" => $x, "y" => $y)) + $urit->parse("{;x,y}", ["x" => $x, "y" => $y]) ); $this->assertEquals( ";x=1024;y=768;empty", - $urit->parse("{;x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + $urit->parse("{;x,y,empty}", ["x" => $x, "y" => $y, "empty" => $empty]) ); $this->assertEquals( "?x=1024&y=768", - $urit->parse("{?x,y}", array("x" => $x, "y" => $y)) + $urit->parse("{?x,y}", ["x" => $x, "y" => $y]) ); $this->assertEquals( "?x=1024&y=768&empty=", - $urit->parse("{?x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + $urit->parse("{?x,y,empty}", ["x" => $x, "y" => $y, "empty" => $empty]) ); $this->assertEquals( "?fixed=yes&x=1024", - $urit->parse("?fixed=yes{&x}", array("x" => $x, "y" => $y)) + $urit->parse("?fixed=yes{&x}", ["x" => $x, "y" => $y]) ); $this->assertEquals( "&x=1024&y=768&empty=", - $urit->parse("{&x,y,empty}", array("x" => $x, "y" => $y, "empty" => $empty)) + $urit->parse("{&x,y,empty}", ["x" => $x, "y" => $y, "empty" => $empty]) ); } public function testLevelFour() { - $values = array( + $values = [ 'var' => "value", 'hello' => "Hello World!", 'path' => "/foo/bar", - 'list' => array("red", "green", "blue"), - 'keys' => array("semi" => ";", "dot" => ".", "comma" => ","), - ); + 'list' => ["red", "green", "blue"], + 'keys' => ["semi" => ";", "dot" => ".", "comma" => ","], + ]; - $tests = array( + $tests = [ "{var:3}" => "val", "{var:30}" => "value", "{list}" => "red,green,blue", @@ -221,7 +221,7 @@ public function testLevelFour() "{&keys*}" => "&semi=%3B&dot=.&comma=%2C", "find{?list*}" => "find?list=red&list=green&list=blue", "www{.list*}" => "www.red.green.blue" - ); + ]; $urit = new UriTemplate(); @@ -239,15 +239,15 @@ public function testMultipleAnnotations() "http://www.google.com/Hello%20World!?var=value", $urit->parse( "http://www.google.com/{+hello}{?var}", - array("var" => $var, "hello" => $hello) + ["var" => $var, "hello" => $hello] ) ); - $params = array( + $params = [ "playerId" => "me", "leaderboardId" => "CgkIhcG1jYEbEAIQAw", "timeSpan" => "ALL_TIME", "other" => "irrelevant" - ); + ]; $this->assertEquals( "players/me/leaderboards/CgkIhcG1jYEbEAIQAw/scores/ALL_TIME", $urit->parse( From a9a27c25d625a95133f790f3b4a1036ad5b4e9eb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 25 Apr 2022 08:56:53 -0600 Subject: [PATCH 1197/1274] fix: add missing public var used by subclasses (#2254) --- src/Service.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Service.php b/src/Service.php index 923e7caef..c97ee9d4f 100644 --- a/src/Service.php +++ b/src/Service.php @@ -26,6 +26,7 @@ class Service public $rootUrl; public $version; public $servicePath; + public $serviceName; public $availableScopes; public $resource; private $client; From 56d4365eda623cab569ec647e7ed76af55ea88c3 Mon Sep 17 00:00:00 2001 From: Stephan Vierkant Date: Fri, 27 May 2022 18:05:25 +0200 Subject: [PATCH 1198/1274] chore: support for monolog 3 (#2268) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 04d65f650..9c3b7d233 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "google/auth": "^1.10", "google/apiclient-services": "~0.200", "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0||~6.0", - "monolog/monolog": "^1.17||^2.0", + "monolog/monolog": "^1.17||^2.0||^3.0", "phpseclib/phpseclib": "~2.0||^3.0.2", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.8.4||^2.2.1" From 097b82b82b054691013ff12425e69e8f9cbd09af Mon Sep 17 00:00:00 2001 From: Steffen Weber Date: Tue, 31 May 2022 16:37:26 +0200 Subject: [PATCH 1199/1274] fix: PHP 8.1 compatibility for Task\Runner::backOff (#2259) --- src/Task/Runner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Task/Runner.php b/src/Task/Runner.php index 8494f8c9e..1047f1f01 100644 --- a/src/Task/Runner.php +++ b/src/Task/Runner.php @@ -236,7 +236,7 @@ private function backOff() { $delay = $this->getDelay(); - usleep($delay * 1000000); + usleep((int) ($delay * 1000000)); } /** From eb10f733eb0ebec058776cda206009d01af9f9e3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 31 May 2022 07:44:17 -0700 Subject: [PATCH 1200/1274] chore: unimportant whitespace fixes (#2269) --- tests/Google/ClientTest.php | 8 +- tests/Google/Http/RESTTest.php | 4 +- tests/Google/Task/RunnerTest.php | 306 +++++++++++++++---------------- 3 files changed, 159 insertions(+), 159 deletions(-) diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 0f1dcc56c..23eebd562 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -249,16 +249,16 @@ public function testPrepareService() $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); $response->getBody() - ->shouldBeCalledTimes(1) - ->willReturn($stream->reveal()); + ->shouldBeCalledTimes(1) + ->willReturn($stream->reveal()); $response->getStatusCode()->willReturn(200); $http = $this->prophesize('GuzzleHttp\ClientInterface'); $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); $client->setHttpClient($http->reveal()); $dr_service = new Drive($client); diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 1d09c0261..2c73dceb6 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -28,8 +28,8 @@ class RESTTest extends BaseTest { /** - * @var REST $rest - */ + * @var REST $rest + */ private $rest; public function set_up() diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index 62d5a987d..ce868158d 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -48,8 +48,8 @@ protected function set_up() } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') { $this->expectException(ServiceException::class); @@ -57,8 +57,8 @@ public function testRestRetryOffByDefault($errorCode, $errorBody = '{}') } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testOneRestRetryWithError($errorCode, $errorBody = '{}') { $this->expectException(ServiceException::class); @@ -67,8 +67,8 @@ public function testOneRestRetryWithError($errorCode, $errorBody = '{}') } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testMultipleRestRetriesWithErrors( $errorCode, $errorBody = '{}' @@ -80,8 +80,8 @@ public function testMultipleRestRetriesWithErrors( } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') { $this->setRetryConfig(['retries' => 1]); @@ -93,8 +93,8 @@ public function testOneRestRetryWithSuccess($errorCode, $errorBody = '{}') } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testMultipleRestRetriesWithSuccess( $errorCode, $errorBody = '{}' @@ -108,8 +108,8 @@ public function testMultipleRestRetriesWithSuccess( } /** - * @dataProvider defaultRestErrorProvider - */ + * @dataProvider defaultRestErrorProvider + */ public function testCustomRestRetryMapReplacesDefaults( $errorCode, $errorBody = '{}' @@ -137,8 +137,8 @@ public function testCustomRestRetryMapAddsNewHandlers() } /** - * @dataProvider customLimitsProvider - */ + * @dataProvider customLimitsProvider + */ public function testCustomRestRetryMapWithCustomLimits($limit) { $this->expectException(ServiceException::class); @@ -152,8 +152,8 @@ public function testCustomRestRetryMapWithCustomLimits($limit) } /** - * @dataProvider timeoutProvider - */ + * @dataProvider timeoutProvider + */ public function testRestTimeouts($config, $minTime) { $this->setRetryConfig($config); @@ -168,9 +168,9 @@ public function testRestTimeouts($config, $minTime) } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') { $this->expectException(ServiceException::class); @@ -179,9 +179,9 @@ public function testCurlRetryOffByDefault($errorCode, $errorMessage = '') } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') { $this->expectException(ServiceException::class); @@ -191,9 +191,9 @@ public function testOneCurlRetryWithError($errorCode, $errorMessage = '') } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testMultipleCurlRetriesWithErrors( $errorCode, $errorMessage = '' @@ -205,9 +205,9 @@ public function testMultipleCurlRetriesWithErrors( } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') { $this->setRetryConfig(['retries' => 1]); @@ -219,9 +219,9 @@ public function testOneCurlRetryWithSuccess($errorCode, $errorMessage = '') } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testMultipleCurlRetriesWithSuccess( $errorCode, $errorMessage = '' @@ -235,9 +235,9 @@ public function testMultipleCurlRetriesWithSuccess( } /** - * @requires extension curl - * @dataProvider defaultCurlErrorProvider - */ + * @requires extension curl + * @dataProvider defaultCurlErrorProvider + */ public function testCustomCurlRetryMapReplacesDefaults( $errorCode, $errorMessage = '' @@ -251,8 +251,8 @@ public function testCustomCurlRetryMapReplacesDefaults( } /** - * @requires extension curl - */ + * @requires extension curl + */ public function testCustomCurlRetryMapAddsNewHandlers() { $this->setRetryMap( @@ -268,9 +268,9 @@ public function testCustomCurlRetryMapAddsNewHandlers() } /** - * @requires extension curl - * @dataProvider customLimitsProvider - */ + * @requires extension curl + * @dataProvider customLimitsProvider + */ public function testCustomCurlRetryMapWithCustomLimits($limit) { $this->expectException(ServiceException::class); @@ -285,9 +285,9 @@ public function testCustomCurlRetryMapWithCustomLimits($limit) } /** - * @requires extension curl - * @dataProvider timeoutProvider - */ + * @requires extension curl + * @dataProvider timeoutProvider + */ public function testCurlTimeouts($config, $minTime) { $this->setRetryConfig($config); @@ -302,8 +302,8 @@ public function testCurlTimeouts($config, $minTime) } /** - * @dataProvider badTaskConfigProvider - */ + * @dataProvider badTaskConfigProvider + */ public function testBadTaskConfig($config, $message) { $this->expectException(TaskException::class); @@ -318,8 +318,8 @@ public function testBadTaskConfig($config, $message) } /** - * @expectedExceptionMessage must be a valid callable - */ + * @expectedExceptionMessage must be a valid callable + */ public function testBadTaskCallback() { $this->expectException(TaskException::class); @@ -374,8 +374,8 @@ public function testMultipleTaskRetriesWithSuccess() } /** - * @dataProvider customLimitsProvider - */ + * @dataProvider customLimitsProvider + */ public function testTaskRetryWithCustomLimits($limit) { $this->expectException(ServiceException::class); @@ -386,8 +386,8 @@ public function testTaskRetryWithCustomLimits($limit) } /** - * @dataProvider timeoutProvider - */ + * @dataProvider timeoutProvider + */ public function testTaskTimeouts($config, $minTime) { $this->setRetryConfig($config); @@ -426,10 +426,10 @@ public function testTaskWithManualRetries() } /** - * Provider for backoff configurations and expected minimum runtimes. - * - * @return array - */ + * Provider for backoff configurations and expected minimum runtimes. + * + * @return array + */ public function timeoutProvider() { $config = ['initial_delay' => .001, 'max_delay' => .01]; @@ -444,10 +444,10 @@ public function timeoutProvider() } /** - * Provider for custom retry limits. - * - * @return array - */ + * Provider for custom retry limits. + * + * @return array + */ public function customLimitsProvider() { return [ @@ -457,10 +457,10 @@ public function customLimitsProvider() } /** - * Provider for invalid task configurations. - * - * @return array - */ + * Provider for invalid task configurations. + * + * @return array + */ public function badTaskConfigProvider() { return [ @@ -473,10 +473,10 @@ public function badTaskConfigProvider() } /** - * Provider for the default REST errors. - * - * @return array - */ + * Provider for the default REST errors. + * + * @return array + */ public function defaultRestErrorProvider() { return [ @@ -488,10 +488,10 @@ public function defaultRestErrorProvider() } /** - * Provider for the default cURL errors. - * - * @return array - */ + * Provider for the default cURL errors. + * + * @return array + */ public function defaultCurlErrorProvider() { return [ @@ -504,16 +504,16 @@ public function defaultCurlErrorProvider() } /** - * Assert the minimum amount of time required to run a task. - * - * NOTE: Intentionally crude for brevity. - * - * @param float $expected The expected minimum execution time - * @param callable $callback The task to time - * @param float $delta Allowable relative error - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ + * Assert the minimum amount of time required to run a task. + * + * NOTE: Intentionally crude for brevity. + * + * @param float $expected The expected minimum execution time + * @param callable $callback The task to time + * @param float $delta Allowable relative error + * + * @throws PHPUnit_Framework_ExpectationFailedException + */ public static function assertTaskTimeGreaterThanOrEqual( $expected, $callback, @@ -533,10 +533,10 @@ public static function assertTaskTimeGreaterThanOrEqual( } /** - * Sets the task runner configurations. - * - * @param array $config The task runner configurations - */ + * Sets the task runner configurations. + * + * @param array $config The task runner configurations + */ private function setRetryConfig(array $config) { $config += [ @@ -555,15 +555,15 @@ private function setRetryMap(array $retryMap) } /** - * Sets the next responses. - * - * @param integer $count The number of responses - * @param string $code The response code - * @param string $body The response body - * @param array $headers The response headers - * - * @return TaskTest - */ + * Sets the next responses. + * + * @param integer $count The number of responses + * @param string $code The response code + * @param string $body The response body + * @param array $headers The response headers + * + * @return TaskTest + */ private function setNextResponses( $count, $code = '200', @@ -578,14 +578,14 @@ private function setNextResponses( } /** - * Sets the next response. - * - * @param string $code The response code - * @param string $body The response body - * @param array $headers The response headers - * - * @return TaskTest - */ + * Sets the next response. + * + * @param string $code The response code + * @param string $body The response body + * @param array $headers The response headers + * + * @return TaskTest + */ private function setNextResponse( $code = '200', $body = '{}', @@ -601,14 +601,14 @@ private function setNextResponse( } /** - * Forces the next responses to throw an IO exception. - * - * @param integer $count The number of responses - * @param string $message The exception messages - * @param string $code The exception code - * - * @return TaskTest - */ + * Forces the next responses to throw an IO exception. + * + * @param integer $count The number of responses + * @param string $message The exception messages + * @param string $code The exception code + * + * @return TaskTest + */ private function setNextResponsesThrow($count, $message, $code) { while ($count-- > 0) { @@ -619,13 +619,13 @@ private function setNextResponsesThrow($count, $message, $code) } /** - * Forces the next response to throw an IO exception. - * - * @param string $message The exception messages - * @param string $code The exception code - * - * @return TaskTest - */ + * Forces the next response to throw an IO exception. + * + * @param string $message The exception messages + * @param string $code The exception code + * + * @return TaskTest + */ private function setNextResponseThrows($message, $code) { $this->mockedCalls[$this->mockedCallsCount++] = new ServiceException( @@ -639,10 +639,10 @@ private function setNextResponseThrows($message, $code) } /** - * Runs the defined request. - * - * @return array - */ + * Runs the defined request. + * + * @return array + */ private function makeRequest() { $request = new Request('GET', '/test'); @@ -666,12 +666,12 @@ private function makeRequest() } /** - * Gets the next mocked response. - * - * @param GoogleRequest $request The mocked request - * - * @return GoogleRequest - */ + * Gets the next mocked response. + * + * @param GoogleRequest $request The mocked request + * + * @return GoogleRequest + */ public function getNextMockedCall($request) { $current = $this->mockedCalls[$this->currentMockedCall++]; @@ -692,12 +692,12 @@ public function getNextMockedCall($request) } /** - * Sets the next task return value. - * - * @param mixed $value The next return value - * - * @return TaskTest - */ + * Sets the next task return value. + * + * @param mixed $value The next return value + * + * @return TaskTest + */ private function setNextTaskReturnValue($value) { $this->mockedCalls[$this->mockedCallsCount++] = $value; @@ -705,12 +705,12 @@ private function setNextTaskReturnValue($value) } /** - * Sets the next exception `allowedRetries()` return value. - * - * @param boolean $allowedRetries The next `allowedRetries()` return value. - * - * @return TaskTest - */ + * Sets the next exception `allowedRetries()` return value. + * + * @param boolean $allowedRetries The next `allowedRetries()` return value. + * + * @return TaskTest + */ private function setNextTaskAllowedRetries($allowedRetries) { $this->mockedCalls[$this->mockedCallsCount++] = $allowedRetries; @@ -718,13 +718,13 @@ private function setNextTaskAllowedRetries($allowedRetries) } /** - * Sets multiple exception `allowedRetries()` return value. - * - * @param integer $count The number of `allowedRetries()` return values. - * @param boolean $allowedRetries The `allowedRetries()` return value. - * - * @return TaskTest - */ + * Sets multiple exception `allowedRetries()` return value. + * + * @param integer $count The number of `allowedRetries()` return values. + * @param boolean $allowedRetries The `allowedRetries()` return value. + * + * @return TaskTest + */ private function setNextTasksAllowedRetries($count, $allowedRetries) { while ($count-- > 0) { @@ -735,10 +735,10 @@ private function setNextTasksAllowedRetries($count, $allowedRetries) } /** - * Runs the defined task. - * - * @return mixed - */ + * Runs the defined task. + * + * @return mixed + */ private function runTask() { $task = new Runner( @@ -769,10 +769,10 @@ private function runTask() } /** - * Gets the next task return value. - * - * @return mixed - */ + * Gets the next task return value. + * + * @return mixed + */ public function runNextTask() { $current = $this->mockedCalls[$this->currentMockedCall++]; From 94e1964a7e0fd848eafdb1b485e0b68b9b5f08f1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 31 May 2022 07:46:57 -0700 Subject: [PATCH 1201/1274] chore: increment VERSION constant --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 20f70044f..8998da321 100644 --- a/src/Client.php +++ b/src/Client.php @@ -51,7 +51,7 @@ */ class Client { - const LIBVER = "2.12.1"; + const LIBVER = "2.12.5"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 8ec5b5f8d821fb1470b1ba1f41783d429d606475 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 6 Jun 2022 15:59:38 -0400 Subject: [PATCH 1202/1274] fix: MediaFileUpload fatal error (#2274) --- src/Client.php | 2 +- src/Http/MediaFileUpload.php | 2 +- src/Http/REST.php | 18 +++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Client.php b/src/Client.php index 8998da321..d86dc44d6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -876,7 +876,7 @@ public function prepareScopes() * * @template T * @param RequestInterface $request - * @param class-string $expectedClass + * @param class-string|false|null $expectedClass * @throws \Google\Exception * @return mixed|T|ResponseInterface */ diff --git a/src/Http/MediaFileUpload.php b/src/Http/MediaFileUpload.php index 25c98938b..2713ea415 100644 --- a/src/Http/MediaFileUpload.php +++ b/src/Http/MediaFileUpload.php @@ -306,7 +306,7 @@ private function fetchResumeUri() $this->request = $this->request->withHeader($key, $value); } - $response = $this->client->execute($this->request, null); + $response = $this->client->execute($this->request, false); $location = $response->getHeaderLine('location'); $code = $response->getStatusCode(); diff --git a/src/Http/REST.php b/src/Http/REST.php index 0e7c11e5d..1519f60da 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -35,12 +35,13 @@ class REST * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * + * @template T * @param ClientInterface $client * @param RequestInterface $request - * @param string $expectedClass + * @param class-string|false|null $expectedClass * @param array $config * @param array $retryMap - * @return mixed decoded result + * @return mixed|T|null * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ @@ -68,10 +69,11 @@ public static function execute( /** * Executes a Psr\Http\Message\RequestInterface * + * @template T * @param ClientInterface $client * @param RequestInterface $request - * @param string $expectedClass - * @return array decoded result + * @param class-string|false|null $expectedClass + * @return mixed|T|null * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ @@ -108,11 +110,13 @@ interface_exists('\GuzzleHttp\Message\ResponseInterface') /** * Decode an HTTP Response. * @static - * @throws \Google\Service\Exception + * + * @template T * @param RequestInterface $response The http response to be decoded. * @param ResponseInterface $response - * @param string $expectedClass - * @return mixed|null + * @param class-string|false|null $expectedClass + * @return mixed|T|null + * @throws \Google\Service\Exception */ public static function decodeHttpResponse( ResponseInterface $response, From f92aa126903a9e2da5bd41a280d9633cb249e79e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 6 Jun 2022 13:00:19 -0700 Subject: [PATCH 1203/1274] chore: increment client version to 2.12.6 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index d86dc44d6..0b44dfae3 100644 --- a/src/Client.php +++ b/src/Client.php @@ -51,7 +51,7 @@ */ class Client { - const LIBVER = "2.12.5"; + const LIBVER = "2.12.6"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; From 5738766b3f5150f88916395784d22f70abf80f07 Mon Sep 17 00:00:00 2001 From: Michiel Devriese Date: Tue, 7 Jun 2022 22:12:27 +0200 Subject: [PATCH 1204/1274] chore: correct phpdoc types for Exception::getErrors (#2271) --- src/Service/Exception.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Service/Exception.php b/src/Service/Exception.php index 3212611a6..45e72d7b8 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -33,7 +33,7 @@ class Exception extends GoogleException * @param string $message * @param int $code * @param Exception|null $previous - * @param array $errors List of errors returned in an HTTP + * @param array> $errors List of errors returned in an HTTP * response. Defaults to []. */ public function __construct( @@ -54,15 +54,17 @@ public function __construct( /** * An example of the possible errors returned. * - * { - * "domain": "global", - * "reason": "authError", - * "message": "Invalid Credentials", - * "locationType": "header", - * "location": "Authorization", - * } + * [ + * { + * "domain": "global", + * "reason": "authError", + * "message": "Invalid Credentials", + * "locationType": "header", + * "location": "Authorization", + * } + * ] * - * @return array List of errors return in an HTTP response or []. + * @return array> List of errors return in an HTTP response or []. */ public function getErrors() { From 5602ba6f004eabc235c51f2d7151b9276c4eeb87 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Wed, 15 Jun 2022 14:44:56 -0500 Subject: [PATCH 1205/1274] chore: phpstan.neon.dist export-ignore (#2281) --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index e98a4d1b3..63ede231b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,3 +10,4 @@ /style export-ignore /tests export-ignore /UPGRADING.md export-ignore +/phpstan.neon.dist export-ignore From a69131b6488735d112a529a278cfc8b875e18647 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 16 Jun 2022 18:25:50 -0400 Subject: [PATCH 1206/1274] fix: ensure new redirect_uri propogates to OAuth2 class (#2282) --- src/Client.php | 1 + tests/Google/ClientTest.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/Client.php b/src/Client.php index 0b44dfae3..cfb59bbb4 100644 --- a/src/Client.php +++ b/src/Client.php @@ -386,6 +386,7 @@ public function createAuthUrl($scope = null) 'login_hint' => $this->config['login_hint'], 'openid.realm' => $this->config['openid.realm'], 'prompt' => $this->config['prompt'], + 'redirect_uri' => $this->config['redirect_uri'], 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state'], diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 23eebd562..5046f38bf 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -1015,4 +1015,20 @@ public function testCredentialsOptionWithCredentialsLoader() $this->assertNotNull($authHeader); $this->assertEquals('Bearer abc', $authHeader); } + + public function testSetNewRedirectUri() + { + $client = new Client(); + $redirectUri1 = 'https://foo.com/test1'; + $client->setRedirectUri($redirectUri1); + + $authUrl1 = $client->createAuthUrl(); + $this->assertStringContainsString(urlencode($redirectUri1), $authUrl1); + + $redirectUri2 = 'https://foo.com/test2'; + $client->setRedirectUri($redirectUri2); + + $authUrl2 = $client->createAuthUrl(); + $this->assertStringContainsString(urlencode($redirectUri2), $authUrl2); + } } From 654c0e29ab78aba8bfef52fd3d06a3b2b39c4e0d Mon Sep 17 00:00:00 2001 From: Konstantin Kopachev Date: Mon, 18 Jul 2022 15:23:54 -0700 Subject: [PATCH 1207/1274] fix: don't send content-type header if no post body exists (#2288) --- src/Service/Resource.php | 2 +- tests/Google/Service/ResourceTest.php | 39 +++++++++++++++++++++------ 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/src/Service/Resource.php b/src/Service/Resource.php index b8b08d3cd..ecf402b18 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -203,7 +203,7 @@ public function call($name, $arguments, $expectedClass = null) $request = new Request( $method['httpMethod'], $url, - ['content-type' => 'application/json'], + $postBody ? ['content-type' => 'application/json'] : [], $postBody ? json_encode($postBody) : '' ); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 870286608..c2c814d4e 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -96,15 +96,38 @@ public function testCall() "methods" => [ "testMethod" => [ "parameters" => [], - "path" => "method/path", - "httpMethod" => "POST", - ] + "path" => "method/path", + "httpMethod" => "POST", + ] ] ] ); $request = $resource->call("testMethod", [[]]); $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); + $this->assertFalse($request->hasHeader('Content-Type')); + } + + public function testCallWithPostBody() + { + $resource = new GoogleResource( + $this->service, + "test", + "testResource", + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], + "path" => "method/path", + "httpMethod" => "POST", + ] + ] + ] + ); + $request = $resource->call("testMethod", [['postBody' => ['foo' => 'bar']]]); + $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); + $this->assertEquals("POST", $request->getMethod()); + $this->assertTrue($request->hasHeader('Content-Type')); } public function testCallServiceDefinedRoot() @@ -130,11 +153,11 @@ public function testCallServiceDefinedRoot() } /** - * Some Google Service (Google\Service\Directory\Resource\Channels and - * Google\Service\Reports\Resource\Channels) use a different servicePath value - * that should override the default servicePath value, it's represented by a / - * before the resource path. All other Services have no / before the path - */ + * Some Google Service (Google\Service\Directory\Resource\Channels and + * Google\Service\Reports\Resource\Channels) use a different servicePath value + * that should override the default servicePath value, it's represented by a / + * before the resource path. All other Services have no / before the path + */ public function testCreateRequestUriForASelfDefinedServicePath() { $this->service->servicePath = '/admin/directory/v1/'; From 59ee192d7989d58db9bdc5b0b047584df20a1935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tinjo=20Sch=C3=B6ni?= <32767367+tscni@users.noreply.github.com> Date: Tue, 23 Aug 2022 16:52:34 +0200 Subject: [PATCH 1208/1274] chore(docs): add null type to Service\Exception errors (#2309) --- src/Service/Exception.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/Exception.php b/src/Service/Exception.php index 45e72d7b8..6e88169c2 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -33,8 +33,8 @@ class Exception extends GoogleException * @param string $message * @param int $code * @param Exception|null $previous - * @param array> $errors List of errors returned in an HTTP - * response. Defaults to []. + * @param array>|null $errors List of errors returned in an HTTP + * response or null. Defaults to []. */ public function __construct( $message, @@ -64,7 +64,7 @@ public function __construct( * } * ] * - * @return array> List of errors return in an HTTP response or []. + * @return array>|null List of errors returned in an HTTP response or null. */ public function getErrors() { From 88cc63c38b0cf88629f66fdf8ba6006f6c6d5a2c Mon Sep 17 00:00:00 2001 From: Vishwaraj Anand Date: Thu, 15 Sep 2022 15:05:21 +0530 Subject: [PATCH 1209/1274] fix: lint errors (#2315) --- README.md | 2 +- examples/batch.php | 2 +- examples/idtoken.php | 2 +- examples/large-file-download.php | 2 +- examples/large-file-upload.php | 2 +- examples/multi-api.php | 2 +- examples/simple-file-upload.php | 2 +- examples/simple-query.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ac5d4ef48..2feb44bdc 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Google API Client Library enables you to work with Google APIs such as Gmail, Drive or YouTube on your server. -These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. +These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. ## Google Cloud Platform diff --git a/examples/batch.php b/examples/batch.php index d9b359c35..3fea6085f 100644 --- a/examples/batch.php +++ b/examples/batch.php @@ -90,4 +90,4 @@
    - - - - - - - Date: Thu, 27 Oct 2022 13:20:32 -0400 Subject: [PATCH 1210/1274] fix: update accounts.google.com authorization URI (#2275) --- src/Client.php | 2 +- tests/Google/ClientTest.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Client.php b/src/Client.php index cfb59bbb4..ba9963d6d 100644 --- a/src/Client.php +++ b/src/Client.php @@ -55,7 +55,7 @@ class Client const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; - const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; + const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/v2/auth'; const API_BASE_PATH = 'https://www.googleapis.com'; /** diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 5046f38bf..391678423 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -157,7 +157,7 @@ public function testCreateAuthUrl() $client->setLoginHint('bob@example.org'); $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" + $expected = "https://accounts.google.com/o/oauth2/v2/auth" . "?response_type=code" . "&access_type=offline" . "&client_id=clientId1" @@ -176,7 +176,7 @@ public function testCreateAuthUrl() $client->setPrompt('select_account'); $client->setIncludeGrantedScopes(true); $authUrl = $client->createAuthUrl("http://googleapis.com/scope/foo"); - $expected = "https://accounts.google.com/o/oauth2/auth" + $expected = "https://accounts.google.com/o/oauth2/v2/auth" . "?response_type=code" . "&access_type=offline" . "&client_id=clientId1" @@ -233,7 +233,7 @@ public function testPrepareService() $this->assertEquals("http://test.com scope2", $scopes); $this->assertEquals( '' - . 'https://accounts.google.com/o/oauth2/auth' + . 'https://accounts.google.com/o/oauth2/v2/auth' . '?response_type=code' . '&access_type=online' . '&client_id=test1' @@ -383,7 +383,7 @@ public function testJsonConfig() // Device config $client = new Client(); $device = - '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"'. + '{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/v2/auth","client_secret"'. ':"N0aHCBT1qX1VAcF5J1pJAn6S","token_uri":"https://oauth2.googleapis.com/token",'. '"client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url"'. ':"","client_id":"123456789.apps.googleusercontent.com","auth_provider_x509_cert_url":'. @@ -396,7 +396,7 @@ public function testJsonConfig() // Web config $client = new Client(); - $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret"' . + $web = '{"web":{"auth_uri":"https://accounts.google.com/o/oauth2/v2/auth","client_secret"' . ':"lpoubuib8bj-Fmke_YhhyHGgXc","token_uri":"https://oauth2.googleapis.com/token"' . ',"client_email":"123456789@developer.gserviceaccount.com","client_x509_cert_url":'. '"https://www.googleapis.com/robot/v1/metadata/x509/123456789@developer.gserviceaccount.com"'. From 2640250c7bab479f378972733dcc0a3e9b2e14f8 Mon Sep 17 00:00:00 2001 From: geoffrey-brier Date: Mon, 19 Dec 2022 22:05:34 +0100 Subject: [PATCH 1211/1274] feat: make auth http client config extends from default client config (#2348) Co-authored-by: Brent Shaffer --- src/AuthHandler/Guzzle6AuthHandler.php | 7 +------ tests/Google/ClientTest.php | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 13f9ee59d..7e8a815c2 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -105,11 +105,6 @@ public function attachKey(ClientInterface $http, $key) private function createAuthHttp(ClientInterface $http) { - return new Client([ - 'base_uri' => $http->getConfig('base_uri'), - 'http_errors' => true, - 'verify' => $http->getConfig('verify'), - 'proxy' => $http->getConfig('proxy'), - ]); + return new Client(['http_errors' => true] + $http->getConfig()); } } diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 391678423..963ea071b 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -997,14 +997,8 @@ public function testCredentialsOptionWithCredentialsLoader() $httpClient = $this->prophesize('GuzzleHttp\ClientInterface'); $httpClient->getConfig() - ->shouldBeCalledOnce() + ->shouldBeCalled() ->willReturn(['handler' => $handler->reveal()]); - $httpClient->getConfig('base_uri') - ->shouldBeCalledOnce(); - $httpClient->getConfig('verify') - ->shouldBeCalledOnce(); - $httpClient->getConfig('proxy') - ->shouldBeCalledOnce(); $httpClient->send(Argument::any(), Argument::any()) ->shouldNotBeCalled(); From 1a611945593a09841a57beaddeeba6625402582d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 19 Dec 2022 13:14:19 -0800 Subject: [PATCH 1212/1274] chore: remove ignore lines where phpztan now works as expected --- src/AuthHandler/AuthHandlerFactory.php | 1 - src/Client.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index 67f6fc145..63c266165 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -34,7 +34,6 @@ public static function build($cache = null, array $cacheConfig = []) if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = ClientInterface::MAJOR_VERSION; } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { - // @phpstan-ignore-next-line $guzzleVersion = (int) substr(ClientInterface::VERSION, 0, 1); } diff --git a/src/Client.php b/src/Client.php index ba9963d6d..3366899f7 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1185,7 +1185,6 @@ protected function createDefaultHttpClient() if (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = ClientInterface::MAJOR_VERSION; } elseif (defined('\GuzzleHttp\ClientInterface::VERSION')) { - // @phpstan-ignore-next-line $guzzleVersion = (int)substr(ClientInterface::VERSION, 0, 1); } From af40e9e9b6e42bc03e5259b52685fc3cac9dba79 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 19 Dec 2022 13:18:47 -0800 Subject: [PATCH 1213/1274] chore: run github actions workflow on main --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4a2b8fced..84d9eddd4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,7 @@ name: Test Suite on: push: branches: - - master + - main pull_request: jobs: From b0940748cab3c6af9ce6be8764c6d58a2520c9e0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 19 Dec 2022 13:41:18 -0800 Subject: [PATCH 1214/1274] chore: add release-please for release management --- .github/release-please.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/release-please.yml diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 000000000..0a6e0cc27 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,3 @@ +releaseType: simple +handleGHRelease: true +primaryBranch: main From b653a338c5a658adf6df4bb2f44c2cc02fe7eb1d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 19 Dec 2022 14:17:11 -0800 Subject: [PATCH 1215/1274] chore(main): release 2.13.0 (#2349) --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..c2e28f7c1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +# Changelog + +## [2.13.0](https://github.com/googleapis/google-api-php-client/compare/v2.12.6...v2.13.0) (2022-12-19) + + +### Features + +* Make auth http client config extends from default client config ([#2348](https://github.com/googleapis/google-api-php-client/issues/2348)) ([2640250](https://github.com/googleapis/google-api-php-client/commit/2640250c7bab479f378972733dcc0a3e9b2e14f8)) + + +### Bug Fixes + +* Don't send content-type header if no post body exists ([#2288](https://github.com/googleapis/google-api-php-client/issues/2288)) ([654c0e2](https://github.com/googleapis/google-api-php-client/commit/654c0e29ab78aba8bfef52fd3d06a3b2b39c4e0d)) +* Ensure new redirect_uri propogates to OAuth2 class ([#2282](https://github.com/googleapis/google-api-php-client/issues/2282)) ([a69131b](https://github.com/googleapis/google-api-php-client/commit/a69131b6488735d112a529a278cfc8b875e18647)) +* Lint errors ([#2315](https://github.com/googleapis/google-api-php-client/issues/2315)) ([88cc63c](https://github.com/googleapis/google-api-php-client/commit/88cc63c38b0cf88629f66fdf8ba6006f6c6d5a2c)) +* Update accounts.google.com authorization URI ([#2275](https://github.com/googleapis/google-api-php-client/issues/2275)) ([b2624d2](https://github.com/googleapis/google-api-php-client/commit/b2624d21fce894126b9975a872cf5cda8038b254)) From f2791c27235b9306895d7ce3244cb2b690f6b5c8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 9 Jan 2023 14:25:32 -0800 Subject: [PATCH 1216/1274] feat: add support for PHP 8.2 (#2350) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 84d9eddd4..3e81e73b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" ] + php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2" ] composer-flags: [""] include: - php: "5.6" From cabac122ddbe19298913ed2da4e086dad41e31dd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 15 Feb 2023 14:06:48 -0500 Subject: [PATCH 1217/1274] chore: add link to ref docs in README (#2384) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2feb44bdc..0e623c0c7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ # Google APIs Client Library for PHP # +**NOTE**: please check to see if the package you'd like to install is available in our +list of [Google cloud packages](https://cloud.google.com/php/docs/reference) first, as +these are the recommended libraries. +
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    License
    Apache 2.0
    From 11080d5e85a040751a13aca8131f93c7d910db11 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 13 Mar 2023 14:04:24 -0600 Subject: [PATCH 1218/1274] fix: allow dynamic properties on model classes (#2408) --- src/Model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model.php b/src/Model.php index 6dea45523..95328f5d3 100644 --- a/src/Model.php +++ b/src/Model.php @@ -28,6 +28,7 @@ * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5 * */ +#[\AllowDynamicProperties] class Model implements \ArrayAccess { /** From 895749dd4f14c349ca0b4aad020ff973f961e519 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:38:21 -0700 Subject: [PATCH 1219/1274] chore(main): release 2.13.1 (#2367) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e28f7c1..e5e516a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.13.1](https://github.com/googleapis/google-api-php-client/compare/v2.13.0...v2.13.1) (2023-03-13) + + +### Bug Fixes + +* Allow dynamic properties on model classes ([#2408](https://github.com/googleapis/google-api-php-client/issues/2408)) ([11080d5](https://github.com/googleapis/google-api-php-client/commit/11080d5e85a040751a13aca8131f93c7d910db11)) + ## [2.13.0](https://github.com/googleapis/google-api-php-client/compare/v2.12.6...v2.13.0) (2022-12-19) From 5ed4edc9315110a715e9763d27ee6761e1aaa00a Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Fri, 17 Mar 2023 12:15:09 +0100 Subject: [PATCH 1220/1274] fix: calling class_exists with null in Google\Model (#2405) --- src/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.php b/src/Model.php index 95328f5d3..87f437d66 100644 --- a/src/Model.php +++ b/src/Model.php @@ -294,7 +294,7 @@ protected function keyType($key) $keyType = $key . "Type"; // ensure keyType is a valid class - if (property_exists($this, $keyType) && class_exists($this->$keyType)) { + if (property_exists($this, $keyType) && $this->$keyType !== null && class_exists($this->$keyType)) { return $this->$keyType; } } From 7bac7a5b8710962e05c376a40b8216393ce2fe6d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 22 Mar 2023 17:01:45 -0700 Subject: [PATCH 1221/1274] chore(docs): ensure doc generation fails on error --- .github/actions/docs/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 203f98e62..08d50b049 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh -l +set -e + apt-get update apt-get install -y git wget git reset --hard HEAD From bd7b138bbc1c5016b7e85ff85f0533ae3684b9ed Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 22 Mar 2023 17:09:12 -0700 Subject: [PATCH 1222/1274] chore(docs): attempt to fix github "detected dubious ownership" error --- .github/actions/docs/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh index 08d50b049..7ac74e427 100755 --- a/.github/actions/docs/entrypoint.sh +++ b/.github/actions/docs/entrypoint.sh @@ -4,6 +4,10 @@ set -e apt-get update apt-get install -y git wget + +# Fix github "detected dubious ownership" error +git config --global --add safe.directory /github/workspace + git reset --hard HEAD # Create the directories From 53c3168fd1836ec21d28a768f78a8c0e44046ec4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 6 Apr 2023 07:59:47 -0700 Subject: [PATCH 1223/1274] chore(main): release 2.13.2 (#2412) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5e516a65..f484d6fc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.13.2](https://github.com/googleapis/google-api-php-client/compare/v2.13.1...v2.13.2) (2023-03-23) + + +### Bug Fixes + +* Calling class_exists with null in Google\Model ([#2405](https://github.com/googleapis/google-api-php-client/issues/2405)) ([5ed4edc](https://github.com/googleapis/google-api-php-client/commit/5ed4edc9315110a715e9763d27ee6761e1aaa00a)) + ## [2.13.1](https://github.com/googleapis/google-api-php-client/compare/v2.13.0...v2.13.1) (2023-03-13) From 74a7d7b838acb08afc02b449f338fbe6577cb03c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 11 May 2023 12:45:54 -0700 Subject: [PATCH 1224/1274] feat: user-supplied query params for auth url (#2432) --- README.md | 22 ++++++++++++++++++++++ src/Client.php | 5 +++-- tests/Google/ClientTest.php | 10 ++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e623c0c7..d9c653ae1 100644 --- a/README.md +++ b/README.md @@ -422,6 +422,28 @@ $client->setHttpClient($httpClient); Other Guzzle features such as [Handlers and Middleware](http://docs.guzzlephp.org/en/stable/handlers-and-middleware.html) offer even more control. +### Partial Consent and Granted Scopes + +When using OAuth2 3LO (e.g. you're a client requesting credentials from a 3rd +party, such as in the [simple file upload example](examples/simple-file-upload.php)), +you may want to take advantage of Partial Consent. + +To allow clients to only grant certain scopes in the OAuth2 screen, pass the +querystring parameter for `enable_serial_consent` when generating the +authorization URL: + +```php +$authUrl = $client->createAuthUrl($scope, ['enable_serial_consent' => 'true']); +``` + +Once the flow is completed, you can see which scopes were granted by calling +`getGrantedScope` on the OAuth2 object: + +```php +// Space-separated string of granted scopes if it exists, otherwise null. +echo $client->getOAuth2Service()->getGrantedScope(); +``` + ### Service Specific Examples ### YouTube: https://github.com/youtube/api-samples/tree/master/php diff --git a/src/Client.php b/src/Client.php index 3366899f7..383726160 100644 --- a/src/Client.php +++ b/src/Client.php @@ -357,9 +357,10 @@ public function fetchAccessTokenWithRefreshToken($refreshToken = null) * The authorization endpoint allows the user to first * authenticate, and then grant/deny the access request. * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. + * @param array $queryParams Querystring params to add to the authorization URL. * @return string */ - public function createAuthUrl($scope = null) + public function createAuthUrl($scope = null, array $queryParams = []) { if (empty($scope)) { $scope = $this->prepareScopes(); @@ -390,7 +391,7 @@ public function createAuthUrl($scope = null) 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state'], - ]); + ]) + $queryParams; // If the list of scopes contains plus.login, add request_visible_actions // to auth URL. diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 963ea071b..04da74ef9 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -1025,4 +1025,14 @@ public function testSetNewRedirectUri() $authUrl2 = $client->createAuthUrl(); $this->assertStringContainsString(urlencode($redirectUri2), $authUrl2); } + + public function testQueryParamsForAuthUrl() + { + $client = new Client(); + $client->setRedirectUri('https://example.com'); + $authUrl1 = $client->createAuthUrl(null, [ + 'enable_serial_consent' => 'true' + ]); + $this->assertStringContainsString('&enable_serial_consent=true', $authUrl1); + } } From 8a0c1cc8b564bf9a8c02c8bb2fd817b8e9f72d7d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 11 May 2023 14:48:31 -0700 Subject: [PATCH 1225/1274] chore: fix tests for mock updates --- tests/Google/ServiceTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 75d49bfbe..a6f40539e 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -28,6 +28,7 @@ use Prophecy\Argument; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; class TestModel extends Model { @@ -66,7 +67,13 @@ class ServiceTest extends TestCase public function testCreateBatch() { + $body = $this->prophesize(StreamInterface::class); + $body->__toString()->willReturn(''); $response = $this->prophesize(ResponseInterface::class); + $response->getHeaderLine('content-type') + ->willReturn(''); + $response->getBody() + ->willReturn($body->reveal()); $client = $this->prophesize(Client::class); $client->execute( From 789c8b07cad97f420ac0467c782036f955a2ad89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 May 2023 14:54:55 -0700 Subject: [PATCH 1226/1274] chore(main): release 2.14.0 (#2441) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f484d6fc1..b24515ba3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.14.0](https://github.com/googleapis/google-api-php-client/compare/v2.13.2...v2.14.0) (2023-05-11) + + +### Features + +* User-supplied query params for auth url ([#2432](https://github.com/googleapis/google-api-php-client/issues/2432)) ([74a7d7b](https://github.com/googleapis/google-api-php-client/commit/74a7d7b838acb08afc02b449f338fbe6577cb03c)) + ## [2.13.2](https://github.com/googleapis/google-api-php-client/compare/v2.13.1...v2.13.2) (2023-03-23) From c765b379e95ab272b6a87aa802d9f5507eaeb2e7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 16 May 2023 14:14:58 -0600 Subject: [PATCH 1227/1274] feat: drop support for 7.3 and below (#2431) Release-As: v2.15.0 --- .github/sync-repo-settings.yaml | 11 +- .github/workflows/asset-release.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/tests.yml | 15 +- README.md | 2 +- composer.json | 19 ++- phpstan.neon.dist | 3 - phpunit.xml.dist | 31 ++-- src/AccessToken/Verify.php | 94 +++--------- src/AuthHandler/AuthHandlerFactory.php | 4 +- src/AuthHandler/Guzzle5AuthHandler.php | 108 ------------- src/Collection.php | 1 + src/aliases.php | 4 - tests/BaseTest.php | 95 +----------- tests/Google/AccessToken/RevokeTest.php | 81 +--------- tests/Google/AccessToken/VerifyTest.php | 32 +--- tests/Google/CacheTest.php | 1 - tests/Google/ClientTest.php | 193 +++++------------------- tests/Google/Http/RESTTest.php | 2 +- tests/Google/Service/AdSenseTest.php | 2 +- tests/Google/Service/ResourceTest.php | 94 +++--------- tests/Google/Service/TasksTest.php | 2 +- tests/Google/Service/YouTubeTest.php | 2 +- tests/Google/ServiceTest.php | 16 +- tests/Google/Task/RunnerTest.php | 29 +--- 25 files changed, 135 insertions(+), 710 deletions(-) delete mode 100644 src/AuthHandler/Guzzle5AuthHandler.php diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6e411b4c9..1fa17b12f 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -5,15 +5,12 @@ branchProtectionRules: - pattern: master isAdminEnforced: true requiredStatusCheckContexts: - - 'PHP 5.6 Unit Test' - - 'PHP 5.6 --prefer-lowest Unit Test' - - 'PHP 7.0 Unit Test' - - 'PHP 7.1 Unit Test' - - 'PHP 7.2 Unit Test' - - 'PHP 7.3 Unit Test' - 'PHP 7.4 Unit Test' + - 'PHP 7.4 --prefer-lowest Unit Test' - 'PHP 8.0 Unit Test' - - 'PHP 8.0 --prefer-lowest Unit Test' + - 'PHP 8.1 Unit Test' + - 'PHP 8.2 Unit Test' + - 'PHP 8.2 --prefer-lowest Unit Test' - 'PHP Style Check' - 'cla/google' requiredApprovingReviewCount: 1 diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index 6f86fdecf..59d5cdd56 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php: [ "5.6", "7.0", "7.4", "8.0" ] + php: [ "7.4", "8.0", "8.2" ] name: Upload Release Assets steps: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0c6125ad8..02d757bc1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,7 +18,7 @@ jobs: max_attempts: 3 command: composer install - name: Generate and Push Documentation - uses: docker://php:7.3-cli + uses: docker://php:7.4-cli env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e81e73b4..df9f1565a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: false matrix: - php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2" ] + php: [ "7.4", "8.0", "8.1", "8.2" ] composer-flags: [""] include: - - php: "5.6" + - php: "7.4" composer-flags: "--prefer-lowest " - - php: "8.0" + - php: "8.2" composer-flags: "--prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: @@ -26,14 +26,11 @@ jobs: with: php-version: ${{ matrix.php }} - name: Install Dependencies - uses: nick-invision/retry@v1 + uses: nick-invision/retry@v2 with: timeout_minutes: 10 max_attempts: 3 command: composer update ${{ matrix.composer-flags }} - - if: ${{ matrix.php == '8.0' && matrix.composer-flags == '--prefer-lowest ' }} - name: Update guzzlehttp/ringphp dependency - run: composer update guzzlehttp/ringphp - name: Run Script run: vendor/bin/phpunit @@ -45,9 +42,9 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "7.3" + php-version: "7.4" - name: Install Dependencies - uses: nick-invision/retry@v1 + uses: nick-invision/retry@v2 with: timeout_minutes: 10 max_attempts: 3 diff --git a/README.md b/README.md index d9c653ae1..1beb6c88d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ For Google Cloud Platform APIs such as [Datastore][cloud-datastore], [Cloud Stor [cloud-compute]: https://github.com/googleapis/google-cloud-php-compute ## Requirements ## -* [PHP 5.6.0 or higher](https://www.php.net/) +* [PHP 7.4 or higher](https://www.php.net/) ## Developer Documentation ## diff --git a/composer.json b/composer.json index 9c3b7d233..70ca62945 100644 --- a/composer.json +++ b/composer.json @@ -6,25 +6,24 @@ "homepage": "http://developers.google.com/api-client-library/php", "license": "Apache-2.0", "require": { - "php": "^5.6|^7.0|^8.0", - "google/auth": "^1.10", + "php": "^7.4|^8.0", + "google/auth": "^1.26", "google/apiclient-services": "~0.200", - "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0||~6.0", - "monolog/monolog": "^1.17||^2.0||^3.0", - "phpseclib/phpseclib": "~2.0||^3.0.2", - "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", + "firebase/php-jwt": "~6.0", + "monolog/monolog": "^2.9||^3.0", + "phpseclib/phpseclib": "^3.0.2", + "guzzlehttp/guzzle": "~6.5||~7.0", "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { "squizlabs/php_codesniffer": "^3.0", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", - "cache/filesystem-adapter": "^0.3.2|^1.1", + "cache/filesystem-adapter": "^1.1", "phpcompatibility/php-compatibility": "^9.2", "composer/composer": "^1.10.22", - "yoast/phpunit-polyfills": "^1.0", - "phpspec/prophecy-phpunit": "^1.1||^2.0", - "phpunit/phpunit": "^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a70dd0e9a..dcef11342 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -3,6 +3,3 @@ parameters: level: 5 paths: - src - excludePaths: - - src/AuthHandler/Guzzle5AuthHandler.php - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0063e91f1..1e07db961 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,19 +1,16 @@ - - - - tests/Google - - - tests/examples - - - - - ./src - - + + + + ./src + + + + + tests/Google + + + tests/examples + + diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 8b46ab1c8..d957908ba 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -23,6 +23,7 @@ use Exception; use ExpiredException; use Firebase\JWT\ExpiredException as ExpiredExceptionV3; +use Firebase\JWT\JWT; use Firebase\JWT\Key; use Firebase\JWT\SignatureInvalidException; use Google\Auth\Cache\MemoryCacheItemPool; @@ -31,8 +32,9 @@ use GuzzleHttp\ClientInterface; use InvalidArgumentException; use LogicException; +use phpseclib3\Crypt\AES; use phpseclib3\Crypt\PublicKeyLoader; -use phpseclib3\Crypt\RSA\PublicKey; // Firebase v2 +use phpseclib3\Math\BigInteger; use Psr\Cache\CacheItemPoolInterface; /** @@ -219,93 +221,35 @@ private function getFederatedSignOnCerts() private function getJwtService() { - $jwtClass = 'JWT'; - if (class_exists('\Firebase\JWT\JWT')) { - $jwtClass = 'Firebase\JWT\JWT'; - } - - if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + $jwt = new JWT(); + if ($jwt::$leeway < 1) { // Ensures JWT leeway is at least 1 // @see https://github.com/google/google-api-php-client/issues/827 - $jwtClass::$leeway = 1; + $jwt::$leeway = 1; } - // @phpstan-ignore-next-line - return new $jwtClass(); + return $jwt; } private function getPublicKey($cert) { - $bigIntClass = $this->getBigIntClass(); - $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); + $modulus = new BigInteger($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new BigInteger($this->jwt->urlsafeB64Decode($cert['e']), 256); $component = ['n' => $modulus, 'e' => $exponent]; - if (class_exists('phpseclib3\Crypt\RSA\PublicKey')) { - /** @var PublicKey $loader */ - $loader = PublicKeyLoader::load($component); - - return $loader->toString('PKCS8'); - } - - $rsaClass = $this->getRsaClass(); - $rsa = new $rsaClass(); - $rsa->loadKey($component); - - return $rsa->getPublicKey(); - } - - private function getRsaClass() - { - if (class_exists('phpseclib3\Crypt\RSA')) { - return 'phpseclib3\Crypt\RSA'; - } - - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA'; - } + $loader = PublicKeyLoader::load($component); - return 'Crypt_RSA'; - } - - private function getBigIntClass() - { - if (class_exists('phpseclib3\Math\BigInteger')) { - return 'phpseclib3\Math\BigInteger'; - } - - if (class_exists('phpseclib\Math\BigInteger')) { - return 'phpseclib\Math\BigInteger'; - } - - return 'Math_BigInteger'; - } - - private function getOpenSslConstant() - { - if (class_exists('phpseclib3\Crypt\AES')) { - return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; - } - - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; - } - - if (class_exists('Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; - } - - throw new Exception('Cannot find RSA class'); + return $loader->toString('PKCS8'); } /** - * phpseclib calls "phpinfo" by default, which requires special - * whitelisting in the AppEngine VM environment. This function - * sets constants to bypass the need for phpseclib to check phpinfo - * - * @see phpseclib/Math/BigInteger - * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 - */ + * phpseclib calls "phpinfo" by default, which requires special + * whitelisting in the AppEngine VM environment. This function + * sets constants to bypass the need for phpseclib to check phpinfo + * + * @see phpseclib/Math/BigInteger + * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 + */ private function setPhpsecConstants() { if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { @@ -313,7 +257,7 @@ private function setPhpsecConstants() define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); } if (!defined('CRYPT_RSA_MODE')) { - define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant())); + define('CRYPT_RSA_MODE', AES::ENGINE_OPENSSL); } } } diff --git a/src/AuthHandler/AuthHandlerFactory.php b/src/AuthHandler/AuthHandlerFactory.php index 63c266165..98a0ab166 100644 --- a/src/AuthHandler/AuthHandlerFactory.php +++ b/src/AuthHandler/AuthHandlerFactory.php @@ -25,7 +25,7 @@ class AuthHandlerFactory /** * Builds out a default http handler for the installed version of guzzle. * - * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler + * @return Guzzle6AuthHandler|Guzzle7AuthHandler * @throws Exception */ public static function build($cache = null, array $cacheConfig = []) @@ -38,8 +38,6 @@ public static function build($cache = null, array $cacheConfig = []) } switch ($guzzleVersion) { - case 5: - return new Guzzle5AuthHandler($cache, $cacheConfig); case 6: return new Guzzle6AuthHandler($cache, $cacheConfig); case 7: diff --git a/src/AuthHandler/Guzzle5AuthHandler.php b/src/AuthHandler/Guzzle5AuthHandler.php deleted file mode 100644 index f8a76f0aa..000000000 --- a/src/AuthHandler/Guzzle5AuthHandler.php +++ /dev/null @@ -1,108 +0,0 @@ -cache = $cache; - $this->cacheConfig = $cacheConfig; - } - - public function attachCredentials( - ClientInterface $http, - CredentialsLoader $credentials, - callable $tokenCallback = null - ) { - // use the provided cache - if ($this->cache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->cacheConfig, - $this->cache - ); - } - - return $this->attachCredentialsCache($http, $credentials, $tokenCallback); - } - - public function attachCredentialsCache( - ClientInterface $http, - FetchAuthTokenCache $credentials, - callable $tokenCallback = null - ) { - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = HttpHandlerFactory::build($authHttp); - $subscriber = new AuthTokenSubscriber( - $credentials, - $authHttpHandler, - $tokenCallback - ); - - $http->setDefaultOption('auth', 'google_auth'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachToken(ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use ($token) { - return $token['access_token']; - }; - - $subscriber = new ScopedAccessTokenSubscriber( - $tokenFunc, - $scopes, - $this->cacheConfig, - $this->cache - ); - - $http->setDefaultOption('auth', 'scoped'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachKey(ClientInterface $http, $key) - { - $subscriber = new SimpleSubscriber(['key' => $key]); - - $http->setDefaultOption('auth', 'simple'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - private function createAuthHttp(ClientInterface $http) - { - return new Client([ - 'base_url' => $http->getBaseUrl(), - 'defaults' => [ - 'exceptions' => true, - 'verify' => $http->getDefaultOption('verify'), - 'proxy' => $http->getDefaultOption('proxy'), - ] - ]); - } -} diff --git a/src/Collection.php b/src/Collection.php index c164c12a2..fe2c62fec 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -81,6 +81,7 @@ public function offsetExists($offset) } /** @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { if (!is_numeric($offset)) { diff --git a/src/aliases.php b/src/aliases.php index 4419ba7e3..3224a030f 100644 --- a/src/aliases.php +++ b/src/aliases.php @@ -15,7 +15,6 @@ 'Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate', 'Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler', 'Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler', - 'Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google_AuthHandler_Guzzle5AuthHandler', 'Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory', 'Google\\Http\\Batch' => 'Google_Http_Batch', 'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload', @@ -52,9 +51,6 @@ class Google_AccessToken_Verify extends \Google\AccessToken\Verify class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory { } - class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler - { - } class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler { } diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 66df1bd4b..144c7d789 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -24,26 +24,16 @@ use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; use Cache\Adapter\Filesystem\FilesystemCachePool; -use Yoast\PHPUnitPolyfills\TestCases\TestCase; - -if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { - trait BaseTestTrait - { - use \Prophecy\PhpUnit\ProphecyTrait; - } -} else { - trait BaseTestTrait - { - } -} +use PHPUnit\Framework\TestCase; +use Prophecy\PhpUnit\ProphecyTrait; class BaseTest extends TestCase { + use ProphecyTrait; + private $key; private $client; - use BaseTestTrait; - public function getClient() { if (!$this->client) { @@ -74,11 +64,6 @@ private function createClient() $options['verify'] = false; } - // adjust constructor depending on guzzle version - if ($this->isGuzzle5()) { - $options = ['defaults' => $options]; - } - $httpClient = new GuzzleClient($options); $client = new Client(); @@ -219,76 +204,4 @@ protected function loadExample($example) return false; } - - protected function isGuzzle7() - { - if (!defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { - return false; - } - - return (7 === ClientInterface::MAJOR_VERSION); - } - - protected function isGuzzle6() - { - if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { - return false; - } - $version = ClientInterface::VERSION; - - return ('6' === $version[0]); - } - - protected function isGuzzle5() - { - if (!defined('\GuzzleHttp\ClientInterface::VERSION')) { - return false; - } - - $version = ClientInterface::VERSION; - - return ('5' === $version[0]); - } - - public function onlyGuzzle6() - { - if (!$this->isGuzzle6()) { - $this->markTestSkipped('Guzzle 6 only'); - } - } - - public function onlyPhp55AndAbove() - { - if (version_compare(PHP_VERSION, '5.5', '<')) { - $this->markTestSkipped('PHP 5.5 and above only'); - } - } - - public function onlyGuzzle5() - { - if (!$this->isGuzzle5()) { - $this->markTestSkipped('Guzzle 5 only'); - } - } - - public function onlyGuzzle6Or7() - { - if (!$this->isGuzzle6() && !$this->isGuzzle7()) { - $this->markTestSkipped('Guzzle 6 or 7 only'); - } - } - - protected function getGuzzle5ResponseMock() - { - $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); - $response->getStatusCode() - ->willReturn(200); - - $response->getHeaders()->willReturn([]); - $response->getBody()->willReturn(''); - $response->getProtocolVersion()->willReturn(''); - $response->getReasonPhrase()->willReturn(''); - - return $response; - } } diff --git a/tests/Google/AccessToken/RevokeTest.php b/tests/Google/AccessToken/RevokeTest.php index 1db83fa41..c6dd714f7 100644 --- a/tests/Google/AccessToken/RevokeTest.php +++ b/tests/Google/AccessToken/RevokeTest.php @@ -27,87 +27,8 @@ class RevokeTest extends BaseTest { - public function testRevokeAccessGuzzle5() + public function testRevokeAccess() { - $this->onlyGuzzle5(); - - $accessToken = 'ACCESS_TOKEN'; - $refreshToken = 'REFRESH_TOKEN'; - $token = ''; - - $response = $this->prophesize('GuzzleHttp\Message\ResponseInterface'); - $response->getStatusCode() - ->shouldBeCalledTimes(3) - ->willReturn(200); - - $response->getHeaders()->willReturn([]); - $response->getBody()->willReturn(''); - $response->getProtocolVersion()->willReturn(''); - $response->getReasonPhrase()->willReturn(''); - - $http = $this->prophesize('GuzzleHttp\ClientInterface'); - $http->send(Argument::type('GuzzleHttp\Message\RequestInterface')) - ->shouldBeCalledTimes(3) - ->will(function ($args) use (&$token, $response) { - $request = $args[0]; - parse_str((string) $request->getBody(), $fields); - $token = isset($fields['token']) ? $fields['token'] : null; - - return $response->reveal(); - }); - - $requestToken = null; - $request = $this->prophesize('GuzzleHttp\Message\RequestInterface'); - $request->getBody() - ->shouldBeCalledTimes(3) - ->will(function () use (&$requestToken) { - return 'token='.$requestToken; - }); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->shouldBeCalledTimes(3) - ->will(function ($args) use (&$requestToken, $request) { - $params = $args[2]; - parse_str((string) $params['body'], $fields); - $requestToken = isset($fields['token']) ? $fields['token'] : null; - - return $request; - }); - - $t = [ - 'access_token' => $accessToken, - 'created' => time(), - 'expires_in' => '3600' - ]; - - // Test with access token. - $revoke = new Revoke($http->reveal()); - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - - // Test with refresh token. - $revoke = new Revoke($http->reveal()); - $t = [ - 'access_token' => $accessToken, - 'refresh_token' => $refreshToken, - 'created' => time(), - 'expires_in' => '3600' - ]; - - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($refreshToken, $token); - - // Test with token string. - $revoke = new Revoke($http->reveal()); - $t = $accessToken; - $this->assertTrue($revoke->revokeToken($t)); - $this->assertEquals($accessToken, $token); - } - - public function testRevokeAccessGuzzle6Or7() - { - $this->onlyGuzzle6Or7(); - $accessToken = 'ACCESS_TOKEN'; $refreshToken = 'REFRESH_TOKEN'; $token = ''; diff --git a/tests/Google/AccessToken/VerifyTest.php b/tests/Google/AccessToken/VerifyTest.php index 25a7224b2..7d37209e4 100644 --- a/tests/Google/AccessToken/VerifyTest.php +++ b/tests/Google/AccessToken/VerifyTest.php @@ -21,9 +21,11 @@ namespace Google\Tests\AccessToken; +use Firebase\JWT\JWT; use Google\AccessToken\Verify; use Google\Tests\BaseTest; use ReflectionMethod; +use phpseclib3\Crypt\AES; class VerifyTest extends BaseTest { @@ -51,7 +53,7 @@ public function testPhpsecConstants() $openSslEnable = constant('MATH_BIGINTEGER_OPENSSL_ENABLED'); $rsaMode = constant('CRYPT_RSA_MODE'); $this->assertTrue($openSslEnable); - $this->assertEquals(constant($this->getOpenSslConstant()), $rsaMode); + $this->assertEquals(AES::ENGINE_OPENSSL, $rsaMode); } /** @@ -63,7 +65,7 @@ public function testValidateIdToken() { $this->checkToken(); - $jwt = $this->getJwtService(); + $jwt = new JWT(); $client = $this->getClient(); $http = $client->getHttpClient(); $token = $client->getAccessToken(); @@ -100,7 +102,7 @@ public function testLeewayIsUnchangedWhenPassingInJwt() { $this->checkToken(); - $jwt = $this->getJwtService(); + $jwt = new JWT(); // set arbitrary leeway so we can check this later $jwt::$leeway = $leeway = 1.5; $client = $this->getClient(); @@ -133,28 +135,4 @@ public function testRetrieveCertsFromLocation() $this->assertArrayHasKey('alg', $certs['keys'][0]); $this->assertEquals('RS256', $certs['keys'][0]['alg']); } - - private function getJwtService() - { - if (class_exists('\Firebase\JWT\JWT')) { - return new \Firebase\JWT\JWT; - } - - return new \JWT; - } - - private function getOpenSslConstant() - { - if (class_exists('phpseclib3\Crypt\AES')) { - return 'phpseclib3\Crypt\AES::ENGINE_OPENSSL'; - } - - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; - } - - if (class_exists('Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; - } - } } diff --git a/tests/Google/CacheTest.php b/tests/Google/CacheTest.php index e6743a45c..153b2669c 100644 --- a/tests/Google/CacheTest.php +++ b/tests/Google/CacheTest.php @@ -50,7 +50,6 @@ public function testInMemoryCache() public function testFileCache() { - $this->onlyPhp55AndAbove(); $this->checkServiceAccountCredentials(); $client = new Client(); diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 04da74ef9..2a9f4a0e2 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -58,50 +58,31 @@ public function testSignAppKey() private function checkAuthHandler($http, $className) { - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $stack = $http->getConfig('handler'); - $class = new ReflectionClass(get_class($stack)); - $property = $class->getProperty('stack'); - $property->setAccessible(true); - $middlewares = $property->getValue($stack); - $middleware = array_pop($middlewares); - - if (null === $className) { - // only the default middlewares have been added - $this->assertCount(3, $middlewares); - } else { - $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); - $this->assertInstanceOf($authClass, $middleware[0]); - } + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); + $middleware = array_pop($middlewares); + + if (null === $className) { + // only the default middlewares have been added + $this->assertCount(3, $middlewares); } else { - $listeners = $http->getEmitter()->listeners('before'); - - if (null === $className) { - $this->assertCount(0, $listeners); - } else { - $authClass = sprintf('Google\Auth\Subscriber\%sSubscriber', $className); - $this->assertCount(1, $listeners); - $this->assertCount(2, $listeners[0]); - $this->assertInstanceOf($authClass, $listeners[0][0]); - } + $authClass = sprintf('Google\Auth\Middleware\%sMiddleware', $className); + $this->assertInstanceOf($authClass, $middleware[0]); } } private function checkCredentials($http, $fetcherClass, $sub = null) { - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $stack = $http->getConfig('handler'); - $class = new ReflectionClass(get_class($stack)); - $property = $class->getProperty('stack'); - $property->setAccessible(true); - $middlewares = $property->getValue($stack); // Works - $middleware = array_pop($middlewares); - $auth = $middleware[0]; - } else { - // access the protected $fetcher property - $listeners = $http->getEmitter()->listeners('before'); - $auth = $listeners[0][0]; - } + $stack = $http->getConfig('handler'); + $class = new ReflectionClass(get_class($stack)); + $property = $class->getProperty('stack'); + $property->setAccessible(true); + $middlewares = $property->getValue($stack); // Works + $middleware = array_pop($middlewares); + $auth = $middleware[0]; $class = new ReflectionClass(get_class($auth)); $property = $class->getProperty('fetcher'); @@ -208,8 +189,6 @@ public function testNoAuthIsNull() public function testPrepareService() { - $this->onlyGuzzle6Or7(); - $client = new Client(); $client->setScopes(["scope1", "scope2"]); $scopes = $client->prepareScopes(); @@ -327,55 +306,9 @@ public function testSetAccessTokenValidation() public function testDefaultConfigOptions() { $client = new Client(); - if ($this->isGuzzle6() || $this->isGuzzle7()) { - $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); - $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); - $this->assertFalse($client->getHttpClient()->getConfig()['http_errors']); - } - if ($this->isGuzzle5()) { - $this->assertArrayHasKey('exceptions', $client->getHttpClient()->getDefaultOption()); - $this->assertArrayNotHasKey('http_errors', $client->getHttpClient()->getDefaultOption()); - $this->assertFalse($client->getHttpClient()->getDefaultOption()['exceptions']); - } - } - - public function testAppEngineStreamHandlerConfig() - { - $this->onlyGuzzle5(); - - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Client(); - - // check Stream Handler is used - $http = $client->getHttpClient(); - $class = new ReflectionClass(get_class($http)); - $property = $class->getProperty('fsm'); - $property->setAccessible(true); - $fsm = $property->getValue($http); - - $class = new ReflectionClass(get_class($fsm)); - $property = $class->getProperty('handler'); - $property->setAccessible(true); - $handler = $property->getValue($fsm); - - $this->assertInstanceOf('GuzzleHttp\Ring\Client\StreamHandler', $handler); - - unset($_SERVER['SERVER_SOFTWARE']); - } - - public function testAppEngineVerifyConfig() - { - $this->onlyGuzzle5(); - - $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine'; - $client = new Client(); - - $this->assertEquals( - '/etc/ca-certificates.crt', - $client->getHttpClient()->getDefaultOption('verify') - ); - - unset($_SERVER['SERVER_SOFTWARE']); + $this->assertArrayHasKey('http_errors', $client->getHttpClient()->getConfig()); + $this->assertArrayNotHasKey('exceptions', $client->getHttpClient()->getConfig()); + $this->assertFalse($client->getHttpClient()->getConfig()['http_errors']); } public function testJsonConfig() @@ -486,14 +419,7 @@ public function testRefreshTokenSetsValues() ->shouldBeCalledTimes(1) ->willReturn($token); - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->shouldBeCalledTimes(1) - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - } + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); $response->getBody() ->shouldBeCalledTimes(1) @@ -503,20 +429,9 @@ public function testRefreshTokenSetsValues() $http = $this->prophesize('GuzzleHttp\ClientInterface'); - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->shouldBeCalledTimes(1) - ->willReturn($guzzle5Request); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); $client = $this->getClient(); $client->setHttpClient($http->reveal()); @@ -540,14 +455,7 @@ public function testRefreshTokenIsSetOnRefresh() ->shouldBeCalledTimes(1) ->willReturn($token); - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->shouldBeCalledTimes(1) - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - } + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); $response->getBody() ->shouldBeCalledTimes(1) @@ -557,19 +465,9 @@ public function testRefreshTokenIsSetOnRefresh() $http = $this->prophesize('GuzzleHttp\ClientInterface'); - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn($guzzle5Request); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); $client = $this->getClient(); $client->setHttpClient($http->reveal()); @@ -594,13 +492,7 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() $postBody->__toString() ->wilLReturn($token); - if ($this->isGuzzle5()) { - $response = $this->getGuzzle5ResponseMock(); - $response->getStatusCode() - ->willReturn(200); - } else { - $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); - } + $response = $this->prophesize('Psr\Http\Message\ResponseInterface'); $response->getBody() ->willReturn($postBody->reveal()); @@ -609,18 +501,9 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() $http = $this->prophesize('GuzzleHttp\ClientInterface'); - if ($this->isGuzzle5()) { - $guzzle5Request = new \GuzzleHttp\Message\Request('POST', '/', ['body' => $token]); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn($guzzle5Request); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->willReturn($response->reveal()); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response->reveal()); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response->reveal()); $client = $this->getClient(); $client->setHttpClient($http->reveal()); @@ -707,7 +590,6 @@ public function testBadSubjectThrowsException() public function testTokenCallback() { - $this->onlyPhp55AndAbove(); $this->checkToken(); $client = $this->getClient(); @@ -758,7 +640,6 @@ public function testTokenCallback() public function testDefaultTokenCallback() { - $this->onlyPhp55AndAbove(); $this->checkToken(); $client = $this->getClient(); @@ -857,8 +738,6 @@ public function testCacheClientOption() public function testExecuteWithFormat() { - $this->onlyGuzzle6Or7(); - $client = new Client([ 'api_format_v2' => true ]); @@ -882,8 +761,6 @@ public function testExecuteWithFormat() public function testExecuteSetsCorrectHeaders() { - $this->onlyGuzzle6Or7(); - $client = new Client(); $guzzle = $this->prophesize('GuzzleHttp\Client'); @@ -968,8 +845,6 @@ public function testClientOptions() public function testCredentialsOptionWithCredentialsLoader() { - $this->onlyGuzzle6Or7(); - $request = null; $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); $credentials->getCacheKey() diff --git a/tests/Google/Http/RESTTest.php b/tests/Google/Http/RESTTest.php index 2c73dceb6..ef44ed0a2 100644 --- a/tests/Google/Http/RESTTest.php +++ b/tests/Google/Http/RESTTest.php @@ -32,7 +32,7 @@ class RESTTest extends BaseTest */ private $rest; - public function set_up() + public function setUp(): void { $this->rest = new REST(); $this->request = new Request('GET', '/'); diff --git a/tests/Google/Service/AdSenseTest.php b/tests/Google/Service/AdSenseTest.php index 453908ced..234075aea 100644 --- a/tests/Google/Service/AdSenseTest.php +++ b/tests/Google/Service/AdSenseTest.php @@ -23,7 +23,7 @@ class AdSenseTest extends BaseTest { public $adsense; - public function set_up() + public function setUp(): void { $this->markTestSkipped('Thesse tests need to be fixed'); $this->checkToken(); diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index c2c814d4e..17000880a 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -26,13 +26,11 @@ use Google\Service\Exception as ServiceException; use Google\Service\Resource as GoogleResource; use Google\Exception as GoogleException; -use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Stream; -use GuzzleHttp\Stream\Stream as Guzzle5Stream; use Prophecy\Argument; class TestService extends \Google\Service @@ -52,7 +50,7 @@ class ResourceTest extends BaseTest private $client; private $service; - public function set_up() + public function setUp(): void { $this->client = $this->prophesize(Client::class); @@ -231,24 +229,12 @@ public function testNoExpectedClassForAltMediaWithHttpSuccess() $http = $this->prophesize("GuzzleHttp\Client"); - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('thisisnotvalidjson'); - $response = new Guzzle5Response(200, [], $body); + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); + $response = new Response(200, [], $body); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('thisisnotvalidjson'); - $response = new Response(200, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); $client = new Client(); $client->setHttpClient($http->reveal()); @@ -284,24 +270,12 @@ public function testNoExpectedClassForAltMediaWithHttpFail() $http = $this->prophesize("GuzzleHttp\Client"); - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('thisisnotvalidjson'); - $response = new Guzzle5Response(400, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + $body = Psr7\Utils::streamFor('thisisnotvalidjson'); + $response = new Response(400, [], $body); - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('thisisnotvalidjson'); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); $client = new Client(); $client->setHttpClient($http->reveal()); @@ -341,24 +315,12 @@ public function testErrorResponseWithVeryLongBody() $http = $this->prophesize("GuzzleHttp\Client"); - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory('this will be pulled into memory'); - $response = new Guzzle5Response(400, [], $body); - - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); + $body = Psr7\Utils::streamFor('this will be pulled into memory'); + $response = new Response(400, [], $body); - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor('this will be pulled into memory'); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); $client = new Client(); $client->setHttpClient($http->reveal()); @@ -392,8 +354,6 @@ public function testErrorResponseWithVeryLongBody() public function testSuccessResponseWithVeryLongBody() { - $this->onlyGuzzle6Or7(); - // set the "alt" parameter to "media" $arguments = [['alt' => 'media']]; $stream = $this->prophesize(Stream::class); @@ -446,24 +406,12 @@ public function testExceptionMessage() $http = $this->prophesize("GuzzleHttp\Client"); - if ($this->isGuzzle5()) { - $body = Guzzle5Stream::factory($content); - $response = new Guzzle5Response(400, [], $body); + $body = Psr7\Utils::streamFor($content); + $response = new Response(400, [], $body); - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/?alt=media')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } else { - $body = Psr7\Utils::streamFor($content); - $response = new Response(400, [], $body); - - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes(1) - ->willReturn($response); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes(1) + ->willReturn($response); $client = new Client(); $client->setHttpClient($http->reveal()); diff --git a/tests/Google/Service/TasksTest.php b/tests/Google/Service/TasksTest.php index 341b0e7ff..7e035fd57 100644 --- a/tests/Google/Service/TasksTest.php +++ b/tests/Google/Service/TasksTest.php @@ -25,7 +25,7 @@ class TasksTest extends BaseTest /** @var Tasks */ public $taskService; - public function set_up() + public function setUp(): void { $this->checkToken(); $this->taskService = new Tasks($this->getClient()); diff --git a/tests/Google/Service/YouTubeTest.php b/tests/Google/Service/YouTubeTest.php index c6e4032ee..2b08035f1 100644 --- a/tests/Google/Service/YouTubeTest.php +++ b/tests/Google/Service/YouTubeTest.php @@ -24,7 +24,7 @@ class YouTubeTest extends BaseTest { /** @var YouTube */ public $youtube; - public function set_up() + public function setUp(): void { $this->checkToken(); $this->youtube = new YouTube($this->getClient()); diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index a6f40539e..82abeb423 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -24,11 +24,12 @@ use Google\Model; use Google\Service; use Google\Http\Batch; -use Yoast\PHPUnitPolyfills\TestCases\TestCase; +use PHPUnit\Framework\TestCase; use Prophecy\Argument; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; +use Prophecy\PhpUnit\ProphecyTrait; class TestModel extends Model { @@ -48,22 +49,11 @@ class TestService extends Service public $batchPath = 'batch/test'; } -if (trait_exists('\Prophecy\PhpUnit\ProphecyTrait')) { - trait ServiceTestTrait - { - use \Prophecy\PhpUnit\ProphecyTrait; - } -} else { - trait ServiceTestTrait - { - } -} - class ServiceTest extends TestCase { private static $errorMessage; - use ServiceTestTrait; + use ProphecyTrait; public function testCreateBatch() { diff --git a/tests/Google/Task/RunnerTest.php b/tests/Google/Task/RunnerTest.php index ce868158d..650ef5c75 100644 --- a/tests/Google/Task/RunnerTest.php +++ b/tests/Google/Task/RunnerTest.php @@ -24,11 +24,9 @@ use Google\Http\REST; use Google\Service\Exception as ServiceException; use Google\Task\Exception as TaskException; -use GuzzleHttp\Message\Response as Guzzle5Response; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; -use GuzzleHttp\Stream\Stream as Guzzle5Stream; use Prophecy\Argument; use Exception; @@ -42,7 +40,7 @@ class RunnerTest extends BaseTest private $retryMap; private $retryConfig; - protected function set_up() + public function setUp(): void { $this->client = new Client(); } @@ -648,19 +646,9 @@ private function makeRequest() $request = new Request('GET', '/test'); $http = $this->prophesize('GuzzleHttp\ClientInterface'); - if ($this->isGuzzle5()) { - $http->createRequest(Argument::any(), Argument::any(), Argument::any()) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->willReturn(new \GuzzleHttp\Message\Request('GET', '/test')); - - $http->send(Argument::type('GuzzleHttp\Message\Request')) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->will([$this, 'getNextMockedCall']); - } else { - $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) - ->shouldBeCalledTimes($this->mockedCallsCount) - ->will([$this, 'getNextMockedCall']); - } + $http->send(Argument::type('Psr\Http\Message\RequestInterface'), []) + ->shouldBeCalledTimes($this->mockedCallsCount) + ->will([$this, 'getNextMockedCall']); return REST::execute($http->reveal(), $request, '', $this->retryConfig, $this->retryMap); } @@ -680,13 +668,8 @@ public function getNextMockedCall($request) throw $current; } - if ($this->isGuzzle5()) { - $stream = Guzzle5Stream::factory($current['body']); - $response = new Guzzle5Response($current['code'], $current['headers'], $stream); - } else { - $stream = Psr7\Utils::streamFor($current['body']); - $response = new Response($current['code'], $current['headers'], $stream); - } + $stream = Psr7\Utils::streamFor($current['body']); + $response = new Response($current['code'], $current['headers'], $stream); return $response; } From bded223ece445a6130cde82417b20180b1d6698a Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 18 May 2023 05:59:44 -0600 Subject: [PATCH 1228/1274] feat: add pkce support and upgrade examples (#2438) --- composer.json | 2 +- examples/idtoken.php | 3 ++- examples/large-file-download.php | 3 ++- examples/large-file-upload.php | 3 ++- examples/multi-api.php | 3 ++- examples/simple-file-upload.php | 3 ++- src/Client.php | 6 +++++- 7 files changed, 16 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 70ca62945..e557bb465 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": "^7.4|^8.0", - "google/auth": "^1.26", + "google/auth": "^1.28", "google/apiclient-services": "~0.200", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", diff --git a/examples/idtoken.php b/examples/idtoken.php index f592d7ae5..1c628d958 100644 --- a/examples/idtoken.php +++ b/examples/idtoken.php @@ -57,7 +57,7 @@ * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code'], $_SESSION['code_verifier']); // store in the session also $_SESSION['id_token_token'] = $token; @@ -77,6 +77,7 @@ ) { $client->setAccessToken($_SESSION['id_token_token']); } else { + $_SESSION['code_verifier'] = $client->getOAuth2Service()->generateCodeVerifier(); $authUrl = $client->createAuthUrl(); } diff --git a/examples/large-file-download.php b/examples/large-file-download.php index 72bf7ff6f..a3c99d0e2 100644 --- a/examples/large-file-download.php +++ b/examples/large-file-download.php @@ -48,7 +48,7 @@ * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code'], $_SESSION['code_verifier']); $client->setAccessToken($token); // store in the session also @@ -65,6 +65,7 @@ unset($_SESSION['upload_token']); } } else { + $_SESSION['code_verifier'] = $client->getOAuth2Service()->generateCodeVerifier(); $authUrl = $client->createAuthUrl(); } diff --git a/examples/large-file-upload.php b/examples/large-file-upload.php index a45743f62..17abdad72 100644 --- a/examples/large-file-upload.php +++ b/examples/large-file-upload.php @@ -53,7 +53,7 @@ * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code'], $_SESSION['code_verifier']); $client->setAccessToken($token); // store in the session also @@ -70,6 +70,7 @@ unset($_SESSION['upload_token']); } } else { + $_SESSION['code_verifier'] = $client->getOAuth2Service()->generateCodeVerifier(); $authUrl = $client->createAuthUrl(); } diff --git a/examples/multi-api.php b/examples/multi-api.php index 78aa0ecf4..e247e4139 100644 --- a/examples/multi-api.php +++ b/examples/multi-api.php @@ -54,7 +54,7 @@ * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code'], $_SESSION['code_verifier']); $client->setAccessToken($token); // store in the session also @@ -71,6 +71,7 @@ unset($_SESSION['multi-api-token']); } } else { + $_SESSION['code_verifier'] = $client->getOAuth2Service()->generateCodeVerifier(); $authUrl = $client->createAuthUrl(); } diff --git a/examples/simple-file-upload.php b/examples/simple-file-upload.php index 20bcdf9a8..b85a7a96f 100644 --- a/examples/simple-file-upload.php +++ b/examples/simple-file-upload.php @@ -53,7 +53,7 @@ * bundle in the session, and redirect to ourself. ************************************************/ if (isset($_GET['code'])) { - $token = $client->fetchAccessTokenWithAuthCode($_GET['code']); + $token = $client->fetchAccessTokenWithAuthCode($_GET['code'], $_SESSION['code_verifier']); $client->setAccessToken($token); // store in the session also @@ -70,6 +70,7 @@ unset($_SESSION['upload_token']); } } else { + $_SESSION['code_verifier'] = $client->getOAuth2Service()->generateCodeVerifier(); $authUrl = $client->createAuthUrl(); } diff --git a/src/Client.php b/src/Client.php index 383726160..31b3f1d5f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -240,9 +240,10 @@ public function authenticate($code) * Helper wrapped around the OAuth 2.0 implementation. * * @param string $code code from accounts.google.com + * @param string $codeVerifier the code verifier used for PKCE (if applicable) * @return array access token */ - public function fetchAccessTokenWithAuthCode($code) + public function fetchAccessTokenWithAuthCode($code, $codeVerifier = null) { if (strlen($code) == 0) { throw new InvalidArgumentException("Invalid code"); @@ -251,6 +252,9 @@ public function fetchAccessTokenWithAuthCode($code) $auth = $this->getOAuth2Service(); $auth->setCode($code); $auth->setRedirectUri($this->getRedirectUri()); + if ($codeVerifier) { + $auth->setCodeVerifier($codeVerifier); + } $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); $creds = $auth->fetchAuthToken($httpHandler); From 49787fa30b8d8313146a61efbf77ed1fede723c2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 18 May 2023 06:51:33 -0700 Subject: [PATCH 1229/1274] chore(main): release 2.15.0 (#2442) --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b24515ba3..79305bb5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.15.0](https://github.com/googleapis/google-api-php-client/compare/v2.14.0...v2.15.0) (2023-05-18) + + +### Features + +* Add pkce support and upgrade examples ([#2438](https://github.com/googleapis/google-api-php-client/issues/2438)) ([bded223](https://github.com/googleapis/google-api-php-client/commit/bded223ece445a6130cde82417b20180b1d6698a)) +* Drop support for 7.3 and below ([#2431](https://github.com/googleapis/google-api-php-client/issues/2431)) ([c765b37](https://github.com/googleapis/google-api-php-client/commit/c765b379e95ab272b6a87aa802d9f5507eaeb2e7)) + ## [2.14.0](https://github.com/googleapis/google-api-php-client/compare/v2.13.2...v2.14.0) (2023-05-11) From c73bdc5734425455f748c134b53598a34e9a4735 Mon Sep 17 00:00:00 2001 From: Diptanshu Mittal <43611881+diptanshumittal@users.noreply.github.com> Date: Thu, 20 Jul 2023 17:14:13 +0000 Subject: [PATCH 1230/1274] chore(main): Enable release trigger (#2478) --- .github/release-trigger.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/release-trigger.yml diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml new file mode 100644 index 000000000..ed17d0705 --- /dev/null +++ b/.github/release-trigger.yml @@ -0,0 +1,2 @@ +enabled: true +multiScmName: google-api-php-client From 21cb9449d6cc9cd3398a0c93230377fe0c01afda Mon Sep 17 00:00:00 2001 From: Abhishek jain <15982920+abhij89@users.noreply.github.com> Date: Tue, 15 Aug 2023 23:19:47 +0530 Subject: [PATCH 1231/1274] docs: update readme.md to use latest version of the package (#2486) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1beb6c88d..73bc73de5 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.12.1 +composer require google/apiclient:^2.15.0 ``` Finally, be sure to include the autoloader: @@ -65,7 +65,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.12.1" + "google/apiclient": "^2.15.0" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" From e48449e1c06e46e46267e09dd12d6b921c6a1bf0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 8 Sep 2023 09:11:54 -0700 Subject: [PATCH 1232/1274] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73bc73de5..b82f44f14 100644 --- a/README.md +++ b/README.md @@ -245,9 +245,10 @@ The classes used to call the API in [google-api-php-client-services](https://git A JSON request to the [Datastore API](https://developers.google.com/apis-explorer/#p/datastore/v1beta3/datastore.projects.runQuery) would look like this: -```json +``` POST https://datastore.googleapis.com/v1beta3/projects/YOUR_PROJECT_ID:runQuery?key=YOUR_API_KEY - +``` +```json { "query": { "kind": [{ From 8e7fae2b79cfc1b72026347abf6314d91442a018 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 12 Sep 2023 09:01:06 -0700 Subject: [PATCH 1233/1274] fix: upgrade min phpseclib version (#2499) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e557bb465..d483f34ea 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "google/apiclient-services": "~0.200", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", - "phpseclib/phpseclib": "^3.0.2", + "phpseclib/phpseclib": "^3.0.19", "guzzlehttp/guzzle": "~6.5||~7.0", "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, From 7a95ed29e4b6c6859d2d22300c5455a92e2622ad Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:46:39 -0700 Subject: [PATCH 1234/1274] chore(main): release 2.15.1 (#2500) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79305bb5a..b6d29393c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.15.1](https://github.com/googleapis/google-api-php-client/compare/v2.15.0...v2.15.1) (2023-09-12) + + +### Bug Fixes + +* Upgrade min phpseclib version ([#2499](https://github.com/googleapis/google-api-php-client/issues/2499)) ([8e7fae2](https://github.com/googleapis/google-api-php-client/commit/8e7fae2b79cfc1b72026347abf6314d91442a018)) + ## [2.15.0](https://github.com/googleapis/google-api-php-client/compare/v2.14.0...v2.15.0) (2023-05-18) From a206b70348a32a14b5c1e914238c44f9db9c057a Mon Sep 17 00:00:00 2001 From: Saransh Dhingra Date: Sat, 16 Dec 2023 01:09:06 +0530 Subject: [PATCH 1235/1274] docs: Update readme to add timeout fix for composer (#2504) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index b82f44f14..34960da0d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,15 @@ Once composer is installed, execute the following command in your project root t composer require google/apiclient:^2.15.0 ``` +If you're facing a timeout error then either increase the timeout for composer by adding the env flag as `COMPOSER_PROCESS_TIMEOUT=600 composer install` or you can put this in the `config` section of the composer schema: +``` +{ + "config": { + "process-timeout": 600 + } +} +``` + Finally, be sure to include the autoloader: ```php From a6408fe1da10d0262e3116499e7ab2ac191b7315 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 15 Dec 2023 16:20:56 -0600 Subject: [PATCH 1236/1274] chore: fix tests for google/auth v1.33 (#2531) --- composer.json | 4 ++-- phpcs.xml.dist | 6 +----- tests/Google/ClientTest.php | 7 +++++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index d483f34ea..e1f9498a0 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "Apache-2.0", "require": { "php": "^7.4|^8.0", - "google/auth": "^1.28", + "google/auth": "^1.33", "google/apiclient-services": "~0.200", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", @@ -16,7 +16,7 @@ "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { - "squizlabs/php_codesniffer": "^3.0", + "squizlabs/php_codesniffer": "^3.8", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^1.1", diff --git a/phpcs.xml.dist b/phpcs.xml.dist index c508de9c9..5bd578a07 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -148,11 +148,7 @@ There MUST be one space between the closing parenthesis and the opening brace The structure body MUST be indented once The closing brace MUST be on the next line after the body --> - - - - - + src/aliases\.php diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 2a9f4a0e2..94ce8b876 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -851,9 +851,12 @@ public function testCredentialsOptionWithCredentialsLoader() ->willReturn('cache-key'); // Ensure the access token provided by our credentials loader is used - $credentials->fetchAuthToken(Argument::any()) + $credentials->updateMetadata([], null, Argument::any()) ->shouldBeCalledOnce() - ->willReturn(['access_token' => 'abc']); + ->willReturn(['authorization' => 'Bearer abc']); + $credentials->getLastReceivedToken() + ->shouldBeCalledTimes(2) + ->willReturn(null); $client = new Client(['credentials' => $credentials->reveal()]); From 8c6602119b631e1a9da4dbe219af18d51c8dab8e Mon Sep 17 00:00:00 2001 From: Seyed AmirHossein Adhami Mirhosseini Date: Fri, 15 Dec 2023 14:22:44 -0800 Subject: [PATCH 1237/1274] fix: php 8.3 deprecated get_class method call without argument (#2509) --- src/Http/REST.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/REST.php b/src/Http/REST.php index 1519f60da..70e48e4b8 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -55,7 +55,7 @@ public static function execute( $runner = new Runner( $config, sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), - [get_class(), 'doExecute'], + [self::class, 'doExecute'], [$client, $request, $expectedClass] ); From e7147523f0d14e00c8a9e3809e53523d5629fa87 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 20 Dec 2023 13:52:19 -0600 Subject: [PATCH 1238/1274] chore(ci): add php 8.3, upgrade EOL PHP versions to 8.1 (#2534) --- .github/sync-repo-settings.yaml | 3 ++- .github/workflows/tests.yml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 1fa17b12f..7a538ecaf 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -10,7 +10,8 @@ branchProtectionRules: - 'PHP 8.0 Unit Test' - 'PHP 8.1 Unit Test' - 'PHP 8.2 Unit Test' - - 'PHP 8.2 --prefer-lowest Unit Test' + - 'PHP 8.3 Unit Test' + - 'PHP 8.3 --prefer-lowest Unit Test' - 'PHP Style Check' - 'cla/google' requiredApprovingReviewCount: 1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df9f1565a..614045f13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: false matrix: - php: [ "7.4", "8.0", "8.1", "8.2" ] + php: [ "7.4", "8.0", "8.1", "8.2", "8.3" ] composer-flags: [""] include: - php: "7.4" composer-flags: "--prefer-lowest " - - php: "8.2" + - php: "8.3" composer-flags: "--prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: @@ -42,7 +42,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "7.4" + php-version: "8.1" - name: Install Dependencies uses: nick-invision/retry@v2 with: @@ -59,7 +59,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' - name: Run Script run: | composer install From d1830ede17114a4951ab9e60b3b9bcd9393b8668 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 26 Dec 2023 10:01:17 -0700 Subject: [PATCH 1239/1274] fix: disallow vulnerable guzzle versions (#2536) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e1f9498a0..2a930f398 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", "phpseclib/phpseclib": "^3.0.19", - "guzzlehttp/guzzle": "~6.5||~7.0", + "guzzlehttp/guzzle": "~6.5.8||~7.4.5", "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { From 73705c2a65bfc01fa6d7717b7f401b8288fe0587 Mon Sep 17 00:00:00 2001 From: Yoeri Boven Date: Wed, 3 Jan 2024 18:24:46 +0100 Subject: [PATCH 1240/1274] fix: phpseclib security vulnerability (#2524) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2a930f398..687c2ed24 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "google/apiclient-services": "~0.200", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", - "phpseclib/phpseclib": "^3.0.19", + "phpseclib/phpseclib": "^3.0.34", "guzzlehttp/guzzle": "~6.5.8||~7.4.5", "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, From 9c98945c49ad4bb46c4971b0863b60fa9680fd0c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 17:27:58 +0000 Subject: [PATCH 1241/1274] chore(main): release 2.15.2 (#2533) --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d29393c..dfb009aa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [2.15.2](https://github.com/googleapis/google-api-php-client/compare/v2.15.1...v2.15.2) (2024-01-03) + + +### Bug Fixes + +* Disallow vulnerable guzzle versions ([#2536](https://github.com/googleapis/google-api-php-client/issues/2536)) ([d1830ed](https://github.com/googleapis/google-api-php-client/commit/d1830ede17114a4951ab9e60b3b9bcd9393b8668)) +* Php 8.3 deprecated get_class method call without argument ([#2509](https://github.com/googleapis/google-api-php-client/issues/2509)) ([8c66021](https://github.com/googleapis/google-api-php-client/commit/8c6602119b631e1a9da4dbe219af18d51c8dab8e)) +* Phpseclib security vulnerability ([#2524](https://github.com/googleapis/google-api-php-client/issues/2524)) ([73705c2](https://github.com/googleapis/google-api-php-client/commit/73705c2a65bfc01fa6d7717b7f401b8288fe0587)) + ## [2.15.1](https://github.com/googleapis/google-api-php-client/compare/v2.15.0...v2.15.1) (2023-09-12) From c270f28b00594a151a887edd3cfd205594a1256a Mon Sep 17 00:00:00 2001 From: Vojta Svoboda Date: Thu, 4 Jan 2024 20:11:32 +0100 Subject: [PATCH 1242/1274] fix: guzzle dependency version (#2546) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 687c2ed24..981421845 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", "phpseclib/phpseclib": "^3.0.34", - "guzzlehttp/guzzle": "~6.5.8||~7.4.5", + "guzzlehttp/guzzle": "^6.5.8||^7.4.5", "guzzlehttp/psr7": "^1.8.4||^2.2.1" }, "require-dev": { From e70273c06d18824de77e114247ae3102f8aec64d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:15:22 -0800 Subject: [PATCH 1243/1274] chore(main): release 2.15.3 (#2547) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfb009aa6..7813e2ba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.15.3](https://github.com/googleapis/google-api-php-client/compare/v2.15.2...v2.15.3) (2024-01-04) + + +### Bug Fixes + +* Guzzle dependency version ([#2546](https://github.com/googleapis/google-api-php-client/issues/2546)) ([c270f28](https://github.com/googleapis/google-api-php-client/commit/c270f28b00594a151a887edd3cfd205594a1256a)) + ## [2.15.2](https://github.com/googleapis/google-api-php-client/compare/v2.15.1...v2.15.2) (2024-01-03) From 36a2454bcd8e79ac61020a8cceb32eb234ca9ceb Mon Sep 17 00:00:00 2001 From: Yash Sahu <54198301+yash30201@users.noreply.github.com> Date: Thu, 18 Jan 2024 03:44:55 +0530 Subject: [PATCH 1244/1274] chore: increase minimum supported version for guzzle psr7 (#2554) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 981421845..867674e5e 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "monolog/monolog": "^2.9||^3.0", "phpseclib/phpseclib": "^3.0.34", "guzzlehttp/guzzle": "^6.5.8||^7.4.5", - "guzzlehttp/psr7": "^1.8.4||^2.2.1" + "guzzlehttp/psr7": "^1.9.1||^2.2.1" }, "require-dev": { "squizlabs/php_codesniffer": "^3.8", From ab9bfc33eda876968a45ef6c56e906c79469a56c Mon Sep 17 00:00:00 2001 From: Yash Sahu <54198301+yash30201@users.noreply.github.com> Date: Thu, 18 Jan 2024 03:47:03 +0530 Subject: [PATCH 1245/1274] chore: update minimum composer version (#2553) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 867674e5e..8d8aa95fc 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "symfony/css-selector": "~2.1", "cache/filesystem-adapter": "^1.1", "phpcompatibility/php-compatibility": "^9.2", - "composer/composer": "^1.10.22", + "composer/composer": "^1.10.23", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5" }, From 9a5fa994273c7b59207f47a954dada0c7d9f4c1c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 23 Feb 2024 17:53:27 -0600 Subject: [PATCH 1246/1274] chore: fix client phpdoc (#2568) --- src/Client.php | 99 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 60 insertions(+), 39 deletions(-) diff --git a/src/Client.php b/src/Client.php index 31b3f1d5f..046670551 100644 --- a/src/Client.php +++ b/src/Client.php @@ -105,47 +105,84 @@ class Client /** * Construct the Google Client. * - * @param array $config + * @param array $config { + * An array of required and optional arguments. + * + * @type string $application_name + * The name of your application + * @type string $base_path + * The base URL for the service. This is only accounted for when calling + * {@see Client::authorize()} directly. + * @type string $client_id + * Your Google Cloud client ID found in https://developers.google.com/console + * @type string $client_secret + * Your Google Cloud client secret found in https://developers.google.com/console + * @type string|array|CredentialsLoader $credentials + * Can be a path to JSON credentials or an array representing those + * credentials (@see Google\Client::setAuthConfig), or an instance of + * {@see CredentialsLoader}. + * @type string|array $scopes + * {@see Google\Client::setScopes} + * @type string $quota_project + * Sets X-Goog-User-Project, which specifies a user project to bill + * for access charges associated with the request. + * @type string $redirect_uri + * @type string $state + * @type string $developer_key + * Simple API access key, also from the API console. Ensure you get + * a Server key, and not a Browser key. + * @type bool $use_application_default_credentials + * For use with Google Cloud Platform + * fetch the ApplicationDefaultCredentials, if applicable + * {@see https://developers.google.com/identity/protocols/application-default-credentials} + * @type string $signing_key + * @type string $signing_algorithm + * @type string $subject + * @type string $hd + * @type string $prompt + * @type string $openid + * @type bool $include_granted_scopes + * @type string $login_hint + * @type string $request_visible_actions + * @type string $access_type + * @type string $approval_prompt + * @type array $retry + * Task Runner retry configuration + * {@see \Google\Task\Runner} + * @type array $retry_map + * @type CacheItemPoolInterface $cache + * Cache class implementing {@see CacheItemPoolInterface}. Defaults + * to {@see MemoryCacheItemPool}. + * @type array $cache_config + * Cache config for downstream auth caching. + * @type callable $token_callback + * Function to be called when an access token is fetched. Follows + * the signature `function (string $cacheKey, string $accessToken)`. + * @type \Firebase\JWT $jwt + * Service class used in {@see Client::verifyIdToken()}. Explicitly + * pass this in to avoid setting {@see \Firebase\JWT::$leeway} + * @type bool $api_format_v2 + * Setting api_format_v2 will return more detailed error messages + * from certain APIs. + * } */ public function __construct(array $config = []) { $this->config = array_merge([ 'application_name' => '', - - // Don't change these unless you're working against a special development - // or testing environment. 'base_path' => self::API_BASE_PATH, - - // https://developers.google.com/console 'client_id' => '', 'client_secret' => '', - - // Can be a path to JSON credentials or an array representing those - // credentials (@see Google\Client::setAuthConfig), or an instance of - // Google\Auth\CredentialsLoader. 'credentials' => null, - // @see Google\Client::setScopes 'scopes' => null, - // Sets X-Goog-User-Project, which specifies a user project to bill - // for access charges associated with the request 'quota_project' => null, - 'redirect_uri' => null, 'state' => null, - - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. 'developer_key' => '', - - // For use with Google Cloud Platform - // fetch the ApplicationDefaultCredentials, if applicable - // @see https://developers.google.com/identity/protocols/application-default-credentials 'use_application_default_credentials' => false, 'signing_key' => null, 'signing_algorithm' => null, 'subject' => null, - - // Other OAuth2 parameters. 'hd' => '', 'prompt' => '', 'openid.realm' => '', @@ -154,28 +191,12 @@ public function __construct(array $config = []) 'request_visible_actions' => '', 'access_type' => 'online', 'approval_prompt' => 'auto', - - // Task Runner retry configuration - // @see Google\Task\Runner 'retry' => [], 'retry_map' => null, - - // Cache class implementing Psr\Cache\CacheItemPoolInterface. - // Defaults to Google\Auth\Cache\MemoryCacheItemPool. 'cache' => null, - // cache config for downstream auth caching 'cache_config' => [], - - // function to be called when an access token is fetched - // follows the signature function ($cacheKey, $accessToken) 'token_callback' => null, - - // Service class used in Google\Client::verifyIdToken. - // Explicitly pass this in to avoid setting JWT::$leeway 'jwt' => null, - - // Setting api_format_v2 will return more detailed error messages - // from certain APIs. 'api_format_v2' => false ], $config); From 633d41f1b65fdb71a83bf747f7a3ad9857f6d02a Mon Sep 17 00:00:00 2001 From: Yoeri Boven Date: Wed, 6 Mar 2024 08:18:29 +0100 Subject: [PATCH 1247/1274] fix: updates phpseclib because of a security issue (#2574) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8d8aa95fc..8cb8b941d 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "google/apiclient-services": "~0.200", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", - "phpseclib/phpseclib": "^3.0.34", + "phpseclib/phpseclib": "^3.0.36", "guzzlehttp/guzzle": "^6.5.8||^7.4.5", "guzzlehttp/psr7": "^1.9.1||^2.2.1" }, From 73fa9cf8d8886db7269bcda0457d0a251a02cfd9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:56:12 -0700 Subject: [PATCH 1248/1274] chore(main): release 2.15.4 (#2576) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7813e2ba4..e8f4dccc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.15.4](https://github.com/googleapis/google-api-php-client/compare/v2.15.3...v2.15.4) (2024-03-06) + + +### Bug Fixes + +* Updates phpseclib because of a security issue ([#2574](https://github.com/googleapis/google-api-php-client/issues/2574)) ([633d41f](https://github.com/googleapis/google-api-php-client/commit/633d41f1b65fdb71a83bf747f7a3ad9857f6d02a)) + ## [2.15.3](https://github.com/googleapis/google-api-php-client/compare/v2.15.2...v2.15.3) (2024-01-04) From 35895ded90b507074b3430a94a5790ddd01f39f0 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 23 Apr 2024 17:57:59 -0700 Subject: [PATCH 1249/1274] feat: add universe domain support (#2563) --- composer.json | 4 +-- src/Client.php | 40 +++++++++++++++++++++++++- src/Http/Batch.php | 7 ++++- src/Service.php | 6 +++- src/Service/Resource.php | 16 ++++++----- tests/Google/ClientTest.php | 31 ++++++++++++++++++++ tests/Google/Service/ResourceTest.php | 41 ++++++++++++++++++++++++--- tests/Google/ServiceTest.php | 1 + 8 files changed, 130 insertions(+), 16 deletions(-) diff --git a/composer.json b/composer.json index 8cb8b941d..14c5d4207 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "license": "Apache-2.0", "require": { "php": "^7.4|^8.0", - "google/auth": "^1.33", - "google/apiclient-services": "~0.200", + "google/auth": "^1.37", + "google/apiclient-services": "~0.350", "firebase/php-jwt": "~6.0", "monolog/monolog": "^2.9||^3.0", "phpseclib/phpseclib": "^3.0.36", diff --git a/src/Client.php b/src/Client.php index 046670551..c7724bd08 100644 --- a/src/Client.php +++ b/src/Client.php @@ -27,6 +27,7 @@ use Google\Auth\Credentials\UserRefreshCredentials; use Google\Auth\CredentialsLoader; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\GetUniverseDomainInterface; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; use Google\AuthHandler\AuthHandlerFactory; @@ -131,6 +132,10 @@ class Client * @type string $developer_key * Simple API access key, also from the API console. Ensure you get * a Server key, and not a Browser key. + * **NOTE:** The universe domain is assumed to be "googleapis.com" unless + * explicitly set. When setting an API ley directly via this option, there + * is no way to verify the universe domain. Be sure to set the + * "universe_domain" option if "googleapis.com" is not intended. * @type bool $use_application_default_credentials * For use with Google Cloud Platform * fetch the ApplicationDefaultCredentials, if applicable @@ -164,6 +169,10 @@ class Client * @type bool $api_format_v2 * Setting api_format_v2 will return more detailed error messages * from certain APIs. + * @type string $universe_domain + * Setting the universe domain will change the default rootUrl of the service. + * If not set explicitly, the universe domain will be the value provided in the + *. "GOOGLE_CLOUD_UNIVERSE_DOMAIN" environment variable, or "googleapis.com". * } */ public function __construct(array $config = []) @@ -197,7 +206,9 @@ public function __construct(array $config = []) 'cache_config' => [], 'token_callback' => null, 'jwt' => null, - 'api_format_v2' => false + 'api_format_v2' => false, + 'universe_domain' => getenv('GOOGLE_CLOUD_UNIVERSE_DOMAIN') + ?: GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN, ], $config); if (!is_null($this->config['credentials'])) { @@ -449,6 +460,7 @@ public function authorize(ClientInterface $http = null) // 3b. If access token exists but is expired, try to refresh it // 4. Check for API Key if ($this->credentials) { + $this->checkUniverseDomain($this->credentials); return $authHandler->attachCredentials( $http, $this->credentials, @@ -458,6 +470,7 @@ public function authorize(ClientInterface $http = null) if ($this->isUsingApplicationDefaultCredentials()) { $credentials = $this->createApplicationDefaultCredentials(); + $this->checkUniverseDomain($credentials); return $authHandler->attachCredentialsCache( $http, $credentials, @@ -473,6 +486,7 @@ public function authorize(ClientInterface $http = null) $scopes, $token['refresh_token'] ); + $this->checkUniverseDomain($credentials); return $authHandler->attachCredentials( $http, $credentials, @@ -525,6 +539,11 @@ public function isUsingApplicationDefaultCredentials() * as calling `clear()` will remove all cache items, including any items not * related to Google API PHP Client.) * + * **NOTE:** The universe domain is assumed to be "googleapis.com" unless + * explicitly set. When setting an access token directly via this method, there + * is no way to verify the universe domain. Be sure to set the "universe_domain" + * option if "googleapis.com" is not intended. + * * @param string|array $token * @throws InvalidArgumentException */ @@ -1318,4 +1337,23 @@ private function createUserRefreshCredentials($scope, $refreshToken) return new UserRefreshCredentials($scope, $creds); } + + private function checkUniverseDomain($credentials) + { + $credentialsUniverse = $credentials instanceof GetUniverseDomainInterface + ? $credentials->getUniverseDomain() + : GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN; + if ($credentialsUniverse !== $this->getUniverseDomain()) { + throw new DomainException(sprintf( + 'The configured universe domain (%s) does not match the credential universe domain (%s)', + $this->getUniverseDomain(), + $credentialsUniverse + )); + } + } + + public function getUniverseDomain() + { + return $this->config['universe_domain']; + } } diff --git a/src/Http/Batch.php b/src/Http/Batch.php index f37045c01..d16708f20 100644 --- a/src/Http/Batch.php +++ b/src/Http/Batch.php @@ -62,7 +62,12 @@ public function __construct( ) { $this->client = $client; $this->boundary = $boundary ?: mt_rand(); - $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); + $rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); + $this->rootUrl = str_replace( + 'UNIVERSE_DOMAIN', + $this->client->getUniverseDomain(), + $rootUrl + ); $this->batchPath = $batchPath ?: self::BATCH_PATH; } diff --git a/src/Service.php b/src/Service.php index c97ee9d4f..8c8fe5fa7 100644 --- a/src/Service.php +++ b/src/Service.php @@ -23,7 +23,11 @@ class Service { public $batchPath; + /** + * Only used in getBatch + */ public $rootUrl; + public $rootUrlTemplate; public $version; public $servicePath; public $serviceName; @@ -65,7 +69,7 @@ public function createBatch() return new Batch( $this->client, false, - $this->rootUrl, + $this->rootUrlTemplate ?? $this->rootUrl, $this->batchPath ); } diff --git a/src/Service/Resource.php b/src/Service/Resource.php index ecf402b18..edc3a36ee 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -45,8 +45,8 @@ class Resource 'prettyPrint' => ['type' => 'string', 'location' => 'query'], ]; - /** @var string $rootUrl */ - private $rootUrl; + /** @var string $rootUrlTemplate */ + private $rootUrlTemplate; /** @var \Google\Client $client */ private $client; @@ -65,7 +65,7 @@ class Resource public function __construct($service, $serviceName, $resourceName, $resource) { - $this->rootUrl = $service->rootUrl; + $this->rootUrlTemplate = $service->rootUrlTemplate ?? $service->rootUrl; $this->client = $service->getClient(); $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; @@ -268,12 +268,14 @@ public function createRequestUri($restPath, $params) $requestUrl = $this->servicePath . $restPath; } - // code for leading slash - if ($this->rootUrl) { - if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { + if ($this->rootUrlTemplate) { + // code for universe domain + $rootUrl = str_replace('UNIVERSE_DOMAIN', $this->client->getUniverseDomain(), $this->rootUrlTemplate); + // code for leading slash + if ('/' !== substr($rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { $requestUrl = '/' . $requestUrl; } - $requestUrl = $this->rootUrl . $requestUrl; + $requestUrl = $rootUrl . $requestUrl; } $uriTemplateVars = []; $queryVars = []; diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 94ce8b876..81ea7525e 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -24,7 +24,9 @@ use Google\Service\Drive; use Google\AuthHandler\AuthHandlerFactory; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\CredentialsLoader; use Google\Auth\GCECache; +use Google\Auth\Credentials\GCECredentials; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; @@ -37,6 +39,7 @@ use ReflectionMethod; use InvalidArgumentException; use Exception; +use DomainException; class ClientTest extends BaseTest { @@ -689,11 +692,20 @@ public function testOnGceCacheAndCacheOptions() $mockCacheItem->get() ->shouldBeCalledTimes(1) ->willReturn(true); + $mockUniverseDomainCacheItem = $this->prophesize(CacheItemInterface::class); + $mockUniverseDomainCacheItem->isHit() + ->willReturn(true); + $mockUniverseDomainCacheItem->get() + ->shouldBeCalledTimes(1) + ->willReturn('googleapis.com'); $mockCache = $this->prophesize(CacheItemPoolInterface::class); $mockCache->getItem($prefix . GCECache::GCE_CACHE_KEY) ->shouldBeCalledTimes(1) ->willReturn($mockCacheItem->reveal()); + $mockCache->getItem(GCECredentials::cacheKey . 'universe_domain') + ->shouldBeCalledTimes(1) + ->willReturn($mockUniverseDomainCacheItem->reveal()); $client = new Client(['cache_config' => $cacheConfig]); $client->setCache($mockCache->reveal()); @@ -849,6 +861,8 @@ public function testCredentialsOptionWithCredentialsLoader() $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); $credentials->getCacheKey() ->willReturn('cache-key'); + $credentials->getUniverseDomain() + ->willReturn('googleapis.com'); // Ensure the access token provided by our credentials loader is used $credentials->updateMetadata([], null, Argument::any()) @@ -913,4 +927,21 @@ public function testQueryParamsForAuthUrl() ]); $this->assertStringContainsString('&enable_serial_consent=true', $authUrl1); } + public function testUniverseDomainMismatch() + { + $this->expectException(DomainException::class); + $this->expectExceptionMessage( + 'The configured universe domain (example.com) does not match the credential universe domain (foo.com)' + ); + + $credentials = $this->prophesize(CredentialsLoader::class); + $credentials->getUniverseDomain() + ->shouldBeCalledOnce() + ->willReturn('foo.com'); + $client = new Client([ + 'universe_domain' => 'example.com', + 'credentials' => $credentials->reveal(), + ]); + $client->authorize(); + } } diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 17000880a..86e0bef24 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -35,10 +35,11 @@ class TestService extends \Google\Service { - public function __construct(Client $client) + public function __construct(Client $client, $rootUrl = null) { parent::__construct($client); - $this->rootUrl = "https://test.example.com"; + $this->rootUrl = $rootUrl ?: "https://test.example.com"; + $this->rootUrlTemplate = $rootUrl ?: "https://test.UNIVERSE_DOMAIN"; $this->servicePath = ""; $this->version = "v1beta1"; $this->serviceName = "test"; @@ -59,6 +60,7 @@ public function setUp(): void $this->client->getLogger()->willReturn($logger->reveal()); $this->client->shouldDefer()->willReturn(true); $this->client->getHttpClient()->willReturn(new GuzzleClient()); + $this->client->getUniverseDomain()->willReturn('example.com'); $this->service = new TestService($this->client->reveal()); } @@ -106,6 +108,37 @@ public function testCall() $this->assertFalse($request->hasHeader('Content-Type')); } + public function testCallWithUniverseDomainTemplate() + { + $client = $this->prophesize(Client::class); + $logger = $this->prophesize("Monolog\Logger"); + $this->client->getLogger()->willReturn($logger->reveal()); + $this->client->shouldDefer()->willReturn(true); + $this->client->getHttpClient()->willReturn(new GuzzleClient()); + $this->client->getUniverseDomain()->willReturn('example-universe-domain.com'); + + $this->service = new TestService($this->client->reveal()); + + $resource = new GoogleResource( + $this->service, + "test", + "testResource", + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], + "path" => "method/path", + "httpMethod" => "POST", + ] + ] + ] + ); + $request = $resource->call("testMethod", [[]]); + $this->assertEquals("https://test.example-universe-domain.com/method/path", (string) $request->getUri()); + $this->assertEquals("POST", $request->getMethod()); + $this->assertFalse($request->hasHeader('Content-Type')); + } + public function testCallWithPostBody() { $resource = new GoogleResource( @@ -130,9 +163,9 @@ public function testCallWithPostBody() public function testCallServiceDefinedRoot() { - $this->service->rootUrl = "https://sample.example.com"; + $service = new TestService($this->client->reveal(), "https://sample.example.com"); $resource = new GoogleResource( - $this->service, + $service, "test", "testResource", [ diff --git a/tests/Google/ServiceTest.php b/tests/Google/ServiceTest.php index 82abeb423..10bb44c7d 100644 --- a/tests/Google/ServiceTest.php +++ b/tests/Google/ServiceTest.php @@ -80,6 +80,7 @@ function ($request) { )->willReturn($response->reveal()); $client->getConfig('base_path')->willReturn(''); + $client->getUniverseDomain()->willReturn(''); $model = new TestService($client->reveal()); $batch = $model->createBatch(); From 017400f609c1fb71ab5ad824c50eabd4c3eaf779 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 00:59:47 +0000 Subject: [PATCH 1250/1274] chore(main): release 2.16.0 (#2589) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8f4dccc6..800b01c16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.16.0](https://github.com/googleapis/google-api-php-client/compare/v2.15.4...v2.16.0) (2024-04-24) + + +### Features + +* Add universe domain support ([#2563](https://github.com/googleapis/google-api-php-client/issues/2563)) ([35895de](https://github.com/googleapis/google-api-php-client/commit/35895ded90b507074b3430a94a5790ddd01f39f0)) + ## [2.15.4](https://github.com/googleapis/google-api-php-client/compare/v2.15.3...v2.15.4) (2024-03-06) From 7e79f3d7be4811f760e19cc4a2c558e04196ec1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Mendoza?= Date: Thu, 2 May 2024 12:34:51 -0400 Subject: [PATCH 1251/1274] feat: add the protected apiVersion property (#2588) --- src/Service/Resource.php | 10 +++++++++ tests/Google/Service/ResourceTest.php | 29 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/src/Service/Resource.php b/src/Service/Resource.php index edc3a36ee..693aaa781 100644 --- a/src/Service/Resource.php +++ b/src/Service/Resource.php @@ -48,6 +48,9 @@ class Resource /** @var string $rootUrlTemplate */ private $rootUrlTemplate; + /** @var string $apiVersion */ + protected $apiVersion; + /** @var \Google\Client $client */ private $client; @@ -225,6 +228,13 @@ public function call($name, $arguments, $expectedClass = null) $expectedClass = null; } + // If the class which is extending from this one contains + // an Api Version, add it to the header + if ($this->apiVersion) { + $request = $request + ->withHeader('X-Goog-Api-Version', $this->apiVersion); + } + // if the client is marked for deferring, rather than // execute the request, return the response if ($this->client->shouldDefer()) { diff --git a/tests/Google/Service/ResourceTest.php b/tests/Google/Service/ResourceTest.php index 86e0bef24..ccf29a7f7 100644 --- a/tests/Google/Service/ResourceTest.php +++ b/tests/Google/Service/ResourceTest.php @@ -106,6 +106,7 @@ public function testCall() $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); $this->assertEquals("POST", $request->getMethod()); $this->assertFalse($request->hasHeader('Content-Type')); + $this->assertFalse($request->hasHeader('X-Goog-Api-Version')); } public function testCallWithUniverseDomainTemplate() @@ -474,4 +475,32 @@ public function testExceptionMessage() $this->assertEquals($errors, $e->getErrors()); } } + + public function testVersionedResource() + { + $resource = new VersionedResource( + $this->service, + "test", + "testResource", + [ + "methods" => [ + "testMethod" => [ + "parameters" => [], + "path" => "method/path", + "httpMethod" => "POST", + ] + ] + ] + ); + $request = $resource->call("testMethod", [['postBody' => ['foo' => 'bar']]]); + $this->assertEquals("https://test.example.com/method/path", (string) $request->getUri()); + $this->assertEquals("POST", $request->getMethod()); + $this->assertTrue($request->hasHeader('X-Goog-Api-Version')); + $this->assertEquals('v1_20240101', $request->getHeaderLine('X-Goog-Api-Version')); + } +} + +class VersionedResource extends GoogleResource +{ + protected $apiVersion = 'v1_20240101'; } From dae35dfc3118d3a752c9ef08635fd0fefe84417d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 17 May 2024 11:31:11 -0600 Subject: [PATCH 1252/1274] chore: drop support for PHP 7.4 (#2562) --- .github/sync-repo-settings.yaml | 3 +-- .github/workflows/asset-release.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/tests.yml | 4 ++-- README.md | 4 ++-- composer.json | 12 ++++++------ 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 7a538ecaf..c4543198e 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -5,9 +5,8 @@ branchProtectionRules: - pattern: master isAdminEnforced: true requiredStatusCheckContexts: - - 'PHP 7.4 Unit Test' - - 'PHP 7.4 --prefer-lowest Unit Test' - 'PHP 8.0 Unit Test' + - 'PHP 8.0 --prefer-lowest Unit Test' - 'PHP 8.1 Unit Test' - 'PHP 8.2 Unit Test' - 'PHP 8.3 Unit Test' diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index 59d5cdd56..bc4b2bf8d 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php: [ "7.4", "8.0", "8.2" ] + php: [ "8.0", "8.3" ] name: Upload Release Assets steps: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02d757bc1..ae9bf2ed0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,7 +18,7 @@ jobs: max_attempts: 3 command: composer install - name: Generate and Push Documentation - uses: docker://php:7.4-cli + uses: docker://php:8.1-cli env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 614045f13..8f833c134 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,10 +11,10 @@ jobs: strategy: fail-fast: false matrix: - php: [ "7.4", "8.0", "8.1", "8.2", "8.3" ] + php: [ "8.0", "8.1", "8.2", "8.3" ] composer-flags: [""] include: - - php: "7.4" + - php: "8.0" composer-flags: "--prefer-lowest " - php: "8.3" composer-flags: "--prefer-lowest " diff --git a/README.md b/README.md index 34960da0d..abd64f123 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ list of [Google cloud packages](https://cloud.google.com/php/docs/reference) fir these are the recommended libraries.
    -
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    +
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    License
    Apache 2.0
    @@ -25,7 +25,7 @@ For Google Cloud Platform APIs such as [Datastore][cloud-datastore], [Cloud Stor [cloud-compute]: https://github.com/googleapis/google-cloud-php-compute ## Requirements ## -* [PHP 7.4 or higher](https://www.php.net/) +* [PHP 8.0 or higher](https://www.php.net/) ## Developer Documentation ## diff --git a/composer.json b/composer.json index 14c5d4207..abacbe84b 100644 --- a/composer.json +++ b/composer.json @@ -6,14 +6,14 @@ "homepage": "http://developers.google.com/api-client-library/php", "license": "Apache-2.0", "require": { - "php": "^7.4|^8.0", + "php": "^8.0", "google/auth": "^1.37", "google/apiclient-services": "~0.350", - "firebase/php-jwt": "~6.0", + "firebase/php-jwt": "^6.0", "monolog/monolog": "^2.9||^3.0", "phpseclib/phpseclib": "^3.0.36", - "guzzlehttp/guzzle": "^6.5.8||^7.4.5", - "guzzlehttp/psr7": "^1.9.1||^2.2.1" + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.6" }, "require-dev": { "squizlabs/php_codesniffer": "^3.8", @@ -22,8 +22,8 @@ "cache/filesystem-adapter": "^1.1", "phpcompatibility/php-compatibility": "^9.2", "composer/composer": "^1.10.23", - "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.5" + "phpspec/prophecy-phpunit": "^2.1", + "phpunit/phpunit": "^9.6" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" From 71579b70a11f1d57ee85b89ac8c9c1d27a6aec27 Mon Sep 17 00:00:00 2001 From: Adrian Kirchner <149483+adriankirchner@users.noreply.github.com> Date: Wed, 22 May 2024 17:07:21 +0200 Subject: [PATCH 1253/1274] docs: fix link to github hosted reference docs (#2598) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abd64f123..95150d9f1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ list of [Google cloud packages](https://cloud.google.com/php/docs/reference) fir these are the recommended libraries.
    -
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    +
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    License
    Apache 2.0
    From 1f4713329d71111a317cda8ef8603fa1bdc88858 Mon Sep 17 00:00:00 2001 From: Razvan Grigore Date: Wed, 10 Jul 2024 17:56:12 +0300 Subject: [PATCH 1254/1274] feat: add logger to client constructor config (#2606) --- src/Client.php | 6 ++++++ tests/Google/ClientTest.php | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/Client.php b/src/Client.php index c7724bd08..330e8ac6b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -196,6 +196,7 @@ public function __construct(array $config = []) 'prompt' => '', 'openid.realm' => '', 'include_granted_scopes' => null, + 'logger' => null, 'login_hint' => '', 'request_visible_actions' => '', 'access_type' => 'online', @@ -242,6 +243,11 @@ public function __construct(array $config = []) $this->setCache($this->config['cache']); unset($this->config['cache']); } + + if (!is_null($this->config['logger'])) { + $this->setLogger($this->config['logger']); + unset($this->config['logger']); + } } /** diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 81ea7525e..7aea7e9ef 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -268,6 +268,16 @@ public function testDefaultLoggerAppEngine() $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler); } + public function testLoggerFromConstructor() + { + $logger1 = new \Monolog\Logger('unit-test'); + $client = new Client(['logger' => $logger1]); + $logger2 = $client->getLogger(); + $this->assertInstanceOf('Monolog\Logger', $logger2); + $this->assertEquals('unit-test', $logger2->getName()); + $this->assertSame($logger1, $logger2); + } + public function testSettersGetters() { $client = new Client(); @@ -279,6 +289,7 @@ public function testSettersGetters() $client->setRedirectUri('localhost'); $client->setConfig('application_name', 'me'); + $client->setLogger(new \Monolog\Logger('test')); $cache = $this->prophesize(CacheItemPoolInterface::class); $client->setCache($cache->reveal()); From b1f63d72c44307ec8ef7bf18f1012de35d8944ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:57:54 +0000 Subject: [PATCH 1255/1274] chore(main): release 2.17.0 (#2590) --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 800b01c16..a43c59d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.17.0](https://github.com/googleapis/google-api-php-client/compare/v2.16.0...v2.17.0) (2024-07-10) + + +### Features + +* Add logger to client constructor config ([#2606](https://github.com/googleapis/google-api-php-client/issues/2606)) ([1f47133](https://github.com/googleapis/google-api-php-client/commit/1f4713329d71111a317cda8ef8603fa1bdc88858)) +* Add the protected apiVersion property ([#2588](https://github.com/googleapis/google-api-php-client/issues/2588)) ([7e79f3d](https://github.com/googleapis/google-api-php-client/commit/7e79f3d7be4811f760e19cc4a2c558e04196ec1d)) + ## [2.16.0](https://github.com/googleapis/google-api-php-client/compare/v2.15.4...v2.16.0) (2024-04-24) From 242e2cb09ad5b25b047a862b4d521037e74cae29 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 26 Aug 2024 09:47:56 -0700 Subject: [PATCH 1256/1274] feat(docs): use doctum shared workflow for reference docs (#2618) --- .github/actions/docs/entrypoint.sh | 21 -------------- .github/actions/docs/sami.php | 29 ------------------- .github/workflows/docs.yml | 45 +++++++++++++----------------- README.md | 2 +- src/Client.php | 3 +- tests/Google/ClientTest.php | 6 ++-- 6 files changed, 27 insertions(+), 79 deletions(-) delete mode 100755 .github/actions/docs/entrypoint.sh delete mode 100644 .github/actions/docs/sami.php diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh deleted file mode 100755 index 7ac74e427..000000000 --- a/.github/actions/docs/entrypoint.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -l - -set -e - -apt-get update -apt-get install -y git wget - -# Fix github "detected dubious ownership" error -git config --global --add safe.directory /github/workspace - -git reset --hard HEAD - -# Create the directories -mkdir .docs -mkdir .cache - -wget https://github.com/jdpedrie/Sami/releases/download/v4.3.0/sami.phar - -# Run the docs generation command -php sami.phar update .github/actions/docs/sami.php -chmod -R 0777 . diff --git a/.github/actions/docs/sami.php b/.github/actions/docs/sami.php deleted file mode 100644 index b3d3da8f7..000000000 --- a/.github/actions/docs/sami.php +++ /dev/null @@ -1,29 +0,0 @@ -files() - ->name('*.php') - ->exclude('vendor') - ->exclude('tests') - ->in($projectRoot); - -$versions = GitVersionCollection::create($projectRoot) - ->addFromTags(function($tag) { - return 0 === strpos($tag, 'v2.') && false === strpos($tag, 'RC'); - }) - ->add('main', 'main branch'); - -return new Sami($iterator, [ - 'title' => 'Google APIs Client Library for PHP API Reference', - 'build_dir' => $projectRoot . '/.docs/%version%', - 'cache_dir' => $projectRoot . '/.cache/%version%', - 'remote_repository' => new GitHubRemoteRepository('googleapis/google-api-php-client', $projectRoot), - 'versions' => $versions -]); diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ae9bf2ed0..b9de0cfb9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,31 +1,26 @@ name: Generate Documentation on: push: - branches: [main] + tags: + - "*" + workflow_dispatch: + inputs: + tag: + description: 'Tag to generate documentation for' + required: false + pull_request: + +permissions: + contents: write jobs: docs: - name: "Generate Project Documentation" - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - name: Install Dependencies - uses: nick-invision/retry@v1 - with: - timeout_minutes: 10 - max_attempts: 3 - command: composer install - - name: Generate and Push Documentation - uses: docker://php:8.1-cli - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - entrypoint: ./.github/actions/docs/entrypoint.sh - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@releases/v3 - with: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BRANCH: gh-pages - FOLDER: .docs + name: "Generate and Deploy Documentation" + uses: GoogleCloudPlatform/php-tools/.github/workflows/doctum.yml@main + with: + title: "Google Cloud PHP Client" + default_version: ${{ inputs.tag || github.ref_name }} + exclude_file: aliases.php + tag_pattern: "v2.*" + dry_run: ${{ github.event_name == 'pull_request' }} + diff --git a/README.md b/README.md index 95150d9f1..93b52cacb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ list of [Google cloud packages](https://cloud.google.com/php/docs/reference) fir these are the recommended libraries.
    -
    Reference Docs
    https://googleapis.github.io/google-api-php-client/main/
    +
    Reference Docs
    https://googleapis.github.io/google-api-php-client/
    License
    Apache 2.0
    diff --git a/src/Client.php b/src/Client.php index 330e8ac6b..1285c49a7 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1043,7 +1043,8 @@ public function setAuthConfig($config) $key = isset($config['installed']) ? 'installed' : 'web'; if (isset($config['type']) && $config['type'] == 'service_account') { - // application default credentials + // @TODO(v3): Remove this, as it isn't accurate. ADC applies only to determining + // credentials based on the user's environment. $this->useApplicationDefaultCredentials(); // set the information from the config diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 7aea7e9ef..4e53e34b4 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -714,8 +714,10 @@ public function testOnGceCacheAndCacheOptions() $mockCache->getItem($prefix . GCECache::GCE_CACHE_KEY) ->shouldBeCalledTimes(1) ->willReturn($mockCacheItem->reveal()); - $mockCache->getItem(GCECredentials::cacheKey . 'universe_domain') - ->shouldBeCalledTimes(1) + // cache key from GCECredentials::getTokenUri() . 'universe_domain' + $mockCache->getItem('cc685e3a0717258b6a4cefcb020e96de6bcf904e76fd9fc1647669f42deff9bf') // google/auth < 1.41.0 + ->willReturn($mockUniverseDomainCacheItem->reveal()); + $mockCache->getItem(GCECredentials::cacheKey . 'universe_domain') // google/auth >= 1.41.0 ->willReturn($mockUniverseDomainCacheItem->reveal()); $client = new Client(['cache_config' => $cacheConfig]); From 76c312e2696575d315f56aba31f8979d06da06ff Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 26 Aug 2024 09:50:03 -0700 Subject: [PATCH 1257/1274] chore: fix docs dry-run job --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b9de0cfb9..5d09dabb0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,7 +19,7 @@ jobs: uses: GoogleCloudPlatform/php-tools/.github/workflows/doctum.yml@main with: title: "Google Cloud PHP Client" - default_version: ${{ inputs.tag || github.ref_name }} + default_version: ${{ inputs.tag || github.head_ref || github.ref_name }} exclude_file: aliases.php tag_pattern: "v2.*" dry_run: ${{ github.event_name == 'pull_request' }} From dc13e5e3f517148d3c66d151a5ab133b7840d8fb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 16 Oct 2024 14:41:17 -0600 Subject: [PATCH 1258/1274] fix: explicit token caching issue (#2358) --- src/AuthHandler/Guzzle6AuthHandler.php | 10 ++- tests/Google/AuthHandler/AuthHandlerTest.php | 82 ++++++++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 tests/Google/AuthHandler/AuthHandlerTest.php diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 7e8a815c2..0c4d12852 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -74,10 +74,18 @@ public function attachToken(ClientInterface $http, array $token, array $scopes) return $token['access_token']; }; + // Derive a cache prefix from the token, to ensure setting a new token + // results in a cache-miss. + // Note: Supplying a custom "prefix" will bust this behavior. + $cacheConfig = $this->cacheConfig; + if (!isset($cacheConfig['prefix']) && isset($token['access_token'])) { + $cacheConfig['prefix'] = substr(sha1($token['access_token']), -10); + } + $middleware = new ScopedAccessTokenMiddleware( $tokenFunc, $scopes, - $this->cacheConfig, + $cacheConfig, $this->cache ); diff --git a/tests/Google/AuthHandler/AuthHandlerTest.php b/tests/Google/AuthHandler/AuthHandlerTest.php new file mode 100644 index 000000000..0bc34aa82 --- /dev/null +++ b/tests/Google/AuthHandler/AuthHandlerTest.php @@ -0,0 +1,82 @@ +attachToken( + $client, + ['access_token' => '1234'], + $scopes + ); + + // Call our middleware and verify the token is set + $scopedMiddleware = $this->getGoogleAuthMiddleware($http1); + $request = $scopedMiddleware(new Request('GET', '/'), ['auth' => 'scoped']); + $this->assertEquals(['Bearer 1234'], $request->getHeader('Authorization')); + + // Attach a new token to the HTTP client + $http2 = $authHandler->attachToken( + $client, + ['access_token' => '5678'], + $scopes + ); + + // Call our middleware and verify the NEW token is set + $scopedMiddleware = $this->getGoogleAuthMiddleware($http2); + $request = $scopedMiddleware(new Request('GET', '/'), ['auth' => 'scoped']); + $this->assertEquals(['Bearer 5678'], $request->getHeader('Authorization')); + } + + private function getGoogleAuthMiddleware(Client $http) + { + // All sorts of horrible reflection to get at our middleware + $handler = $http->getConfig()['handler']; + $reflectionMethod = new \ReflectionMethod($handler, 'findByName'); + $reflectionMethod->setAccessible(true); + $authMiddlewareIdx = $reflectionMethod->invoke($handler, 'google_auth'); + + $reflectionProperty = new \ReflectionProperty($handler, 'stack'); + $reflectionProperty->setAccessible(true); + $stack = $reflectionProperty->getValue($handler); + + $callable = $stack[$authMiddlewareIdx][0]; + return $callable(function ($request) { + return $request; + }); + } +} From 846f149c9f879449145326dad99ef00bf1d879f3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:58:58 -0700 Subject: [PATCH 1259/1274] chore(main): release 2.18.0 (#2621) --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a43c59d90..68cb72f1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [2.18.0](https://github.com/googleapis/google-api-php-client/compare/v2.17.0...v2.18.0) (2024-10-16) + + +### Features + +* **docs:** Use doctum shared workflow for reference docs ([#2618](https://github.com/googleapis/google-api-php-client/issues/2618)) ([242e2cb](https://github.com/googleapis/google-api-php-client/commit/242e2cb09ad5b25b047a862b4d521037e74cae29)) + + +### Bug Fixes + +* Explicit token caching issue ([#2358](https://github.com/googleapis/google-api-php-client/issues/2358)) ([dc13e5e](https://github.com/googleapis/google-api-php-client/commit/dc13e5e3f517148d3c66d151a5ab133b7840d8fb)) + ## [2.17.0](https://github.com/googleapis/google-api-php-client/compare/v2.16.0...v2.17.0) (2024-07-10) From de57db2fdc0d56de1abbf778b28b77c3347eb3fd Mon Sep 17 00:00:00 2001 From: Feroz Date: Sun, 24 Nov 2024 19:18:35 +0600 Subject: [PATCH 1260/1274] fix: Implicitly marking parameter as nullable is deprecated (#2638) --- src/AccessToken/Revoke.php | 2 +- src/AccessToken/Verify.php | 18 +++++++++--------- src/AuthHandler/Guzzle6AuthHandler.php | 6 +++--- src/Client.php | 4 ++-- src/Http/REST.php | 14 +++++++------- src/Service/Exception.php | 2 +- src/Task/Composer.php | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/AccessToken/Revoke.php b/src/AccessToken/Revoke.php index dd94fe0f2..dc8b0c351 100644 --- a/src/AccessToken/Revoke.php +++ b/src/AccessToken/Revoke.php @@ -39,7 +39,7 @@ class Revoke * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. */ - public function __construct(ClientInterface $http = null) + public function __construct(?ClientInterface $http = null) { $this->http = $http; } diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index d957908ba..714b5d12d 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -59,7 +59,7 @@ class Verify /** * @var \Firebase\JWT\JWT - */ + */ public $jwt; /** @@ -67,9 +67,9 @@ class Verify * to the discretion of the caller. */ public function __construct( - ClientInterface $http = null, - CacheItemPoolInterface $cache = null, - $jwt = null + ?ClientInterface $http = null, + ?CacheItemPoolInterface $cache = null, + ?string $jwt = null ) { if (null === $http) { $http = new Client(); @@ -130,7 +130,7 @@ public function verifyIdToken($idToken, $audience = null) return false; } - return (array) $payload; + return (array)$payload; } catch (ExpiredException $e) { // @phpstan-ignore-line return false; } catch (ExpiredExceptionV3 $e) { @@ -154,8 +154,8 @@ private function getCache() * Retrieve and cache a certificates file. * * @param string $url location - * @throws \Google\Exception * @return array certificates + * @throws \Google\Exception */ private function retrieveCertsFromLocation($url) { @@ -163,8 +163,8 @@ private function retrieveCertsFromLocation($url) if (0 !== strpos($url, 'http')) { if (!$file = file_get_contents($url)) { throw new GoogleException( - "Failed to retrieve verification certificates: '" . - $url . "'." + "Failed to retrieve verification certificates: '". + $url."'." ); } @@ -175,7 +175,7 @@ private function retrieveCertsFromLocation($url) $response = $this->http->get($url); if ($response->getStatusCode() == 200) { - return json_decode((string) $response->getBody(), true); + return json_decode((string)$response->getBody(), true); } throw new GoogleException( sprintf( diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 0c4d12852..352cf915c 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -20,7 +20,7 @@ class Guzzle6AuthHandler protected $cache; protected $cacheConfig; - public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = []) + public function __construct(?CacheItemPoolInterface $cache = null, array $cacheConfig = []) { $this->cache = $cache; $this->cacheConfig = $cacheConfig; @@ -29,7 +29,7 @@ public function __construct(CacheItemPoolInterface $cache = null, array $cacheCo public function attachCredentials( ClientInterface $http, CredentialsLoader $credentials, - callable $tokenCallback = null + ?callable $tokenCallback = null ) { // use the provided cache if ($this->cache) { @@ -46,7 +46,7 @@ public function attachCredentials( public function attachCredentialsCache( ClientInterface $http, FetchAuthTokenCache $credentials, - callable $tokenCallback = null + ?callable $tokenCallback = null ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error diff --git a/src/Client.php b/src/Client.php index 1285c49a7..edfb1f83e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -321,7 +321,7 @@ public function refreshTokenWithAssertion() * @param ClientInterface $authHttp optional. * @return array access token */ - public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) + public function fetchAccessTokenWithAssertion(?ClientInterface $authHttp = null) { if (!$this->isUsingApplicationDefaultCredentials()) { throw new DomainException( @@ -454,7 +454,7 @@ public function createAuthUrl($scope = null, array $queryParams = []) * @param ClientInterface $http the http client object. * @return ClientInterface the http client object */ - public function authorize(ClientInterface $http = null) + public function authorize(?ClientInterface $http = null) { $http = $http ?: $this->getHttpClient(); $authHandler = $this->getAuthHandler(); diff --git a/src/Http/REST.php b/src/Http/REST.php index 70e48e4b8..c3d3270db 100644 --- a/src/Http/REST.php +++ b/src/Http/REST.php @@ -54,7 +54,7 @@ public static function execute( ) { $runner = new Runner( $config, - sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), + sprintf('%s %s', $request->getMethod(), (string)$request->getUri()), [self::class, 'doExecute'], [$client, $request, $expectedClass] ); @@ -120,7 +120,7 @@ interface_exists('\GuzzleHttp\Message\ResponseInterface') */ public static function decodeHttpResponse( ResponseInterface $response, - RequestInterface $request = null, + ?RequestInterface $request = null, $expectedClass = null ) { $code = $response->getStatusCode(); @@ -128,7 +128,7 @@ public static function decodeHttpResponse( // retry strategy if (intVal($code) >= 400) { // if we errored out, it should be safe to grab the response body - $body = (string) $response->getBody(); + $body = (string)$response->getBody(); // Check if we received errors, and add those to the Exception for convenience throw new GoogleServiceException($body, $code, null, self::getResponseErrors($body)); @@ -147,17 +147,17 @@ public static function decodeHttpResponse( return $response; } - private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) + private static function decodeBody(ResponseInterface $response, ?RequestInterface $request = null) { if (self::isAltMedia($request)) { // don't decode the body, it's probably a really long string return ''; } - return (string) $response->getBody(); + return (string)$response->getBody(); } - private static function determineExpectedClass($expectedClass, RequestInterface $request = null) + private static function determineExpectedClass($expectedClass, ?RequestInterface $request = null) { // "false" is used to explicitly prevent an expected class from being returned if (false === $expectedClass) { @@ -184,7 +184,7 @@ private static function getResponseErrors($body) return null; } - private static function isAltMedia(RequestInterface $request = null) + private static function isAltMedia(?RequestInterface $request = null) { if ($request && $qs = $request->getUri()->getQuery()) { parse_str($qs, $query); diff --git a/src/Service/Exception.php b/src/Service/Exception.php index 6e88169c2..d79a2e75d 100644 --- a/src/Service/Exception.php +++ b/src/Service/Exception.php @@ -39,7 +39,7 @@ class Exception extends GoogleException public function __construct( $message, $code = 0, - Exception $previous = null, + ?Exception $previous = null, $errors = [] ) { if (version_compare(PHP_VERSION, '5.3.0') >= 0) { diff --git a/src/Task/Composer.php b/src/Task/Composer.php index 04969f207..fcad6bd13 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -30,7 +30,7 @@ class Composer */ public static function cleanup( Event $event, - Filesystem $filesystem = null + ?Filesystem $filesystem = null ) { $composer = $event->getComposer(); $extra = $composer->getPackage()->getExtra(); From 3f6cb1a970fe2d210823a79de8d5dbae405a9616 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:21:03 +0000 Subject: [PATCH 1261/1274] chore(main): release 2.18.1 (#2639) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68cb72f1b..ecb2406b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.18.1](https://github.com/googleapis/google-api-php-client/compare/v2.18.0...v2.18.1) (2024-11-24) + + +### Bug Fixes + +* Implicitly marking parameter as nullable is deprecated ([#2638](https://github.com/googleapis/google-api-php-client/issues/2638)) ([de57db2](https://github.com/googleapis/google-api-php-client/commit/de57db2fdc0d56de1abbf778b28b77c3347eb3fd)) + ## [2.18.0](https://github.com/googleapis/google-api-php-client/compare/v2.17.0...v2.18.0) (2024-10-16) From 8142a3e523299b999aa4833235a07f0f5fe24c82 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 4 Dec 2024 09:23:09 -0600 Subject: [PATCH 1262/1274] chore: add php 8.4 to test matrix (#2643) --- .github/sync-repo-settings.yaml | 3 ++- .github/workflows/tests.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index c4543198e..a4444366a 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -10,7 +10,8 @@ branchProtectionRules: - 'PHP 8.1 Unit Test' - 'PHP 8.2 Unit Test' - 'PHP 8.3 Unit Test' - - 'PHP 8.3 --prefer-lowest Unit Test' + - 'PHP 8.4' + - 'PHP 8.4 --prefer-lowest Unit Test' - 'PHP Style Check' - 'cla/google' requiredApprovingReviewCount: 1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f833c134..9f86e493a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: false matrix: - php: [ "8.0", "8.1", "8.2", "8.3" ] + php: [ "8.0", "8.1", "8.2", "8.3", "8.4" ] composer-flags: [""] include: - php: "8.0" composer-flags: "--prefer-lowest " - - php: "8.3" + - php: "8.4" composer-flags: "--prefer-lowest " name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test steps: From 31a9861af02a8e9070b395f05caed7ffce0ef8be Mon Sep 17 00:00:00 2001 From: Jose Ochoa Date: Mon, 16 Dec 2024 16:50:30 -0600 Subject: [PATCH 1263/1274] fix: correct type for jwt constructor arg (#2648) Co-authored-by: Brent Shaffer --- src/AccessToken/Verify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AccessToken/Verify.php b/src/AccessToken/Verify.php index 714b5d12d..5529450e5 100644 --- a/src/AccessToken/Verify.php +++ b/src/AccessToken/Verify.php @@ -69,7 +69,7 @@ class Verify public function __construct( ?ClientInterface $http = null, ?CacheItemPoolInterface $cache = null, - ?string $jwt = null + ?JWT $jwt = null ) { if (null === $http) { $http = new Client(); From d8d201ba8a189a3cd7fb34e4da569f2ed440eee7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:52:40 -0800 Subject: [PATCH 1264/1274] chore(main): release 2.18.2 (#2649) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb2406b2..00f046fb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.18.2](https://github.com/googleapis/google-api-php-client/compare/v2.18.1...v2.18.2) (2024-12-16) + + +### Bug Fixes + +* Correct type for jwt constructor arg ([#2648](https://github.com/googleapis/google-api-php-client/issues/2648)) ([31a9861](https://github.com/googleapis/google-api-php-client/commit/31a9861af02a8e9070b395f05caed7ffce0ef8be)) + ## [2.18.1](https://github.com/googleapis/google-api-php-client/compare/v2.18.0...v2.18.1) (2024-11-24) From a0da60ef45caffbc75d44c08b85fa32c4d41f691 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 27 Dec 2024 10:27:51 -0800 Subject: [PATCH 1265/1274] docs: update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93b52cacb..7bac1824f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.15.0 +composer require google/apiclient ``` If you're facing a timeout error then either increase the timeout for composer by adding the env flag as `COMPOSER_PROCESS_TIMEOUT=600 composer install` or you can put this in the `config` section of the composer schema: From 058b9fb6b7f2f92acfe050ce2b3168bf190af5e4 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 12 Feb 2025 10:57:25 -0800 Subject: [PATCH 1266/1274] docs: update examples README.md --- examples/README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/README.md b/examples/README.md index e62da9cf2..b3f62d4cb 100644 --- a/examples/README.md +++ b/examples/README.md @@ -10,10 +10,3 @@ ``` 1. Point your browser to the host and port you specified, i.e `http://localhost:8000`. - -## G Suite OAuth Samples - -G Suite APIs such as Slides, Sheets, and Drive use 3-legged OAuth authentification. -Samples using OAuth can be found here: - -https://github.com/gsuitedevs/php-samples From c6994051af1568359c97d267d9ef34ccbda31387 Mon Sep 17 00:00:00 2001 From: ilyaplot Date: Tue, 8 Apr 2025 14:58:04 -0700 Subject: [PATCH 1267/1274] fix: convert Finder lazy iterator to array before deletion (#2663) Co-authored-by: Ilya Plotnikov --- src/Task/Composer.php | 54 ++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/Task/Composer.php b/src/Task/Composer.php index fcad6bd13..fff4de22d 100644 --- a/src/Task/Composer.php +++ b/src/Task/Composer.php @@ -34,35 +34,37 @@ public static function cleanup( ) { $composer = $event->getComposer(); $extra = $composer->getPackage()->getExtra(); - $servicesToKeep = isset($extra['google/apiclient-services']) - ? $extra['google/apiclient-services'] - : []; - if ($servicesToKeep) { - $vendorDir = $composer->getConfig()->get('vendor-dir'); + $servicesToKeep = $extra['google/apiclient-services'] ?? []; + if (empty($servicesToKeep)) { + return; + } + $vendorDir = $composer->getConfig()->get('vendor-dir'); + $serviceDir = sprintf( + '%s/google/apiclient-services/src/Google/Service', + $vendorDir + ); + if (!is_dir($serviceDir)) { + // path for google/apiclient-services >= 0.200.0 $serviceDir = sprintf( - '%s/google/apiclient-services/src/Google/Service', + '%s/google/apiclient-services/src', $vendorDir ); - if (!is_dir($serviceDir)) { - // path for google/apiclient-services >= 0.200.0 - $serviceDir = sprintf( - '%s/google/apiclient-services/src', - $vendorDir - ); - } - self::verifyServicesToKeep($serviceDir, $servicesToKeep); - $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); - $filesystem = $filesystem ?: new Filesystem(); - if (0 !== $count = count($finder)) { - $event->getIO()->write( - sprintf('Removing %s google services', $count) - ); - foreach ($finder as $file) { - $realpath = $file->getRealPath(); - $filesystem->remove($realpath); - $filesystem->remove($realpath . '.php'); - } - } + } + self::verifyServicesToKeep($serviceDir, $servicesToKeep); + $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); + $filesystem = $filesystem ?: new Filesystem(); + $servicesToRemoveCount = $finder->count(); + if (0 === $servicesToRemoveCount) { + return; + } + $event->getIO()->write( + sprintf('Removing %d google services', $servicesToRemoveCount) + ); + $pathsToRemove = iterator_to_array($finder); + foreach ($pathsToRemove as $pathToRemove) { + $realpath = $pathToRemove->getRealPath(); + $filesystem->remove($realpath); + $filesystem->remove($realpath . '.php'); } } From 4eee42d201eff054428a4836ec132944d271f051 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Apr 2025 21:59:36 +0000 Subject: [PATCH 1268/1274] chore(main): release 2.18.3 (#2664) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00f046fb5..9fd015477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.18.3](https://github.com/googleapis/google-api-php-client/compare/v2.18.2...v2.18.3) (2025-04-08) + + +### Bug Fixes + +* Convert Finder lazy iterator to array before deletion ([#2663](https://github.com/googleapis/google-api-php-client/issues/2663)) ([c699405](https://github.com/googleapis/google-api-php-client/commit/c6994051af1568359c97d267d9ef34ccbda31387)) + ## [2.18.2](https://github.com/googleapis/google-api-php-client/compare/v2.18.1...v2.18.2) (2024-12-16) From e009e9c1345b40481d981167e0858bee391d627c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 7 May 2025 10:49:42 -0700 Subject: [PATCH 1269/1274] chore: add workflow dispatch trigger to asset-release --- .github/workflows/asset-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index bc4b2bf8d..1f553fbb9 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -3,6 +3,7 @@ name: Add Release Assets on: release: types: [published] + workflow_dispatch: jobs: asset: From 3507706f6dea90e93866ebecf507ccaedaa0dd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Mendoza?= Date: Thu, 11 Sep 2025 14:23:28 -0400 Subject: [PATCH 1270/1274] docs: Update OAUTH documentation to reflect a deprecation of a method (#2683) --- docs/oauth-web.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/oauth-web.md b/docs/oauth-web.md index 904745ed5..18bc5e32b 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -353,7 +353,7 @@ require_once __DIR__.'/vendor/autoload.php'; session_start(); $client = new Google\Client(); -$client->setAuthConfigFile('client_secrets.json'); +$client->setAuthConfig('client_secrets.json'); $client->setRedirectUri('http://' . $_SERVER['HTTP_HOST'] . '/oauth2callback.php'); $client->addScope(Google\Service\Drive::DRIVE_METADATA_READONLY); @@ -421,4 +421,4 @@ $client->revokeToken(); **Note:** Following a successful revocation response, it might take some time before the revocation has full effect. -Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see our [Site Policies](https://developers.google.com/terms/site-policies). Java is a registered trademark of Oracle and/or its affiliates. \ No newline at end of file +Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see our [Site Policies](https://developers.google.com/terms/site-policies). Java is a registered trademark of Oracle and/or its affiliates. From 6530c6ba1b1c3bd4311c354c12948a48b46b15a3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 11 Sep 2025 13:09:59 -0700 Subject: [PATCH 1271/1274] chore: drop PHP 8.0 (#2682) --- .github/workflows/asset-release.yml | 2 +- .github/workflows/tests.yml | 4 ++-- composer.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/asset-release.yml b/.github/workflows/asset-release.yml index 1f553fbb9..24a459254 100644 --- a/.github/workflows/asset-release.yml +++ b/.github/workflows/asset-release.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php: [ "8.0", "8.3" ] + php: [ "8.1", "8.3" ] name: Upload Release Assets steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9f86e493a..ade84792a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,10 +11,10 @@ jobs: strategy: fail-fast: false matrix: - php: [ "8.0", "8.1", "8.2", "8.3", "8.4" ] + php: [ "8.1", "8.2", "8.3", "8.4" ] composer-flags: [""] include: - - php: "8.0" + - php: "8.1" composer-flags: "--prefer-lowest " - php: "8.4" composer-flags: "--prefer-lowest " diff --git a/composer.json b/composer.json index abacbe84b..240f9d1c8 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "homepage": "http://developers.google.com/api-client-library/php", "license": "Apache-2.0", "require": { - "php": "^8.0", + "php": "^8.1", "google/auth": "^1.37", "google/apiclient-services": "~0.350", "firebase/php-jwt": "^6.0", From ed70802cc4886ef1f513a2c0b56a8a972db5e7ab Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 29 Sep 2025 09:20:16 -0700 Subject: [PATCH 1272/1274] fix: ensure credentials can be of type FetchAuthTokenInterface (#2684) --- src/AuthHandler/Guzzle6AuthHandler.php | 18 ++++++++++++------ src/Client.php | 12 +++++++----- tests/Google/ClientTest.php | 13 +++++++++---- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/AuthHandler/Guzzle6AuthHandler.php b/src/AuthHandler/Guzzle6AuthHandler.php index 352cf915c..05fe1b2b9 100644 --- a/src/AuthHandler/Guzzle6AuthHandler.php +++ b/src/AuthHandler/Guzzle6AuthHandler.php @@ -2,8 +2,8 @@ namespace Google\AuthHandler; -use Google\Auth\CredentialsLoader; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\FetchAuthTokenInterface; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\Middleware\AuthTokenMiddleware; use Google\Auth\Middleware\ScopedAccessTokenMiddleware; @@ -28,7 +28,7 @@ public function __construct(?CacheItemPoolInterface $cache = null, array $cacheC public function attachCredentials( ClientInterface $http, - CredentialsLoader $credentials, + FetchAuthTokenInterface $credentials, ?callable $tokenCallback = null ) { // use the provided cache @@ -40,13 +40,21 @@ public function attachCredentials( ); } - return $this->attachCredentialsCache($http, $credentials, $tokenCallback); + return $this->attachToHttp($http, $credentials, $tokenCallback); } public function attachCredentialsCache( ClientInterface $http, FetchAuthTokenCache $credentials, ?callable $tokenCallback = null + ) { + return $this->attachToHttp($http, $credentials, $tokenCallback); + } + + private function attachToHttp( + ClientInterface $http, + FetchAuthTokenInterface $credentials, + ?callable $tokenCallback = null ) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error @@ -63,9 +71,7 @@ public function attachCredentialsCache( $config['handler']->remove('google_auth'); $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'google_auth'; - $http = new Client($config); - - return $http; + return new Client($config); } public function attachToken(ClientInterface $http, array $token, array $scopes) diff --git a/src/Client.php b/src/Client.php index edfb1f83e..33147925f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -27,6 +27,7 @@ use Google\Auth\Credentials\UserRefreshCredentials; use Google\Auth\CredentialsLoader; use Google\Auth\FetchAuthTokenCache; +use Google\Auth\FetchAuthTokenInterface; use Google\Auth\GetUniverseDomainInterface; use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\OAuth2; @@ -90,7 +91,7 @@ class Client private $logger; /** - * @var ?CredentialsLoader $credentials + * @var ?FetchAuthTokenInterface $credentials */ private $credentials; @@ -118,10 +119,10 @@ class Client * Your Google Cloud client ID found in https://developers.google.com/console * @type string $client_secret * Your Google Cloud client secret found in https://developers.google.com/console - * @type string|array|CredentialsLoader $credentials + * @type string|array|FetchAuthTokenInterface $credentials * Can be a path to JSON credentials or an array representing those * credentials (@see Google\Client::setAuthConfig), or an instance of - * {@see CredentialsLoader}. + * {@see FetchAuthTokenInterface}. * @type string|array $scopes * {@see Google\Client::setScopes} * @type string $quota_project @@ -213,7 +214,7 @@ public function __construct(array $config = []) ], $config); if (!is_null($this->config['credentials'])) { - if ($this->config['credentials'] instanceof CredentialsLoader) { + if ($this->config['credentials'] instanceof FetchAuthTokenInterface) { $this->credentials = $this->config['credentials']; } else { $this->setAuthConfig($this->config['credentials']); @@ -460,7 +461,8 @@ public function authorize(?ClientInterface $http = null) $authHandler = $this->getAuthHandler(); // These conditionals represent the decision tree for authentication - // 1. Check if a Google\Auth\CredentialsLoader instance has been supplied via the "credentials" option + // 1. Check if an instance of Google\Auth\FetchAuthTokenInterface has + // been supplied via the "credentials" option // 2. Check for Application Default Credentials // 3a. Check for an Access Token // 3b. If access token exists but is expired, try to refresh it diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 4e53e34b4..4a336705d 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -24,7 +24,7 @@ use Google\Service\Drive; use Google\AuthHandler\AuthHandlerFactory; use Google\Auth\FetchAuthTokenCache; -use Google\Auth\CredentialsLoader; +use Google\Auth\FetchAuthTokenInterface; use Google\Auth\GCECache; use Google\Auth\Credentials\GCECredentials; use GuzzleHttp\Client as GuzzleClient; @@ -40,6 +40,8 @@ use InvalidArgumentException; use Exception; use DomainException; +use Google\Auth\GetUniverseDomainInterface; +use Google\Auth\UpdateMetadataInterface; class ClientTest extends BaseTest { @@ -868,10 +870,12 @@ public function testClientOptions() $this->assertEquals('some-quota-project', $credentials->getQuotaProject()); } - public function testCredentialsOptionWithCredentialsLoader() + public function testCredentialsOptionWithFetchAuthTokenInterface() { $request = null; - $credentials = $this->prophesize('Google\Auth\CredentialsLoader'); + $credentials = $this->prophesize(FetchAuthTokenInterface::class) + ->willImplement(GetUniverseDomainInterface::class) + ->willImplement(UpdateMetadataInterface::class); $credentials->getCacheKey() ->willReturn('cache-key'); $credentials->getUniverseDomain() @@ -947,7 +951,8 @@ public function testUniverseDomainMismatch() 'The configured universe domain (example.com) does not match the credential universe domain (foo.com)' ); - $credentials = $this->prophesize(CredentialsLoader::class); + $credentials = $this->prophesize(FetchAuthTokenInterface::class) + ->willImplement(GetUniverseDomainInterface::class); $credentials->getUniverseDomain() ->shouldBeCalledOnce() ->willReturn('foo.com'); From 5b51fdb2cbd2a96088e3dfc6f565bdf6fb0af94b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 21:23:07 -0700 Subject: [PATCH 1273/1274] chore(main): release 2.18.4 (#2689) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd015477..a0418c111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.18.4](https://github.com/googleapis/google-api-php-client/compare/v2.18.3...v2.18.4) (2025-09-29) + + +### Bug Fixes + +* Ensure credentials can be of type FetchAuthTokenInterface ([#2684](https://github.com/googleapis/google-api-php-client/issues/2684)) ([ed70802](https://github.com/googleapis/google-api-php-client/commit/ed70802cc4886ef1f513a2c0b56a8a972db5e7ab)) + ## [2.18.3](https://github.com/googleapis/google-api-php-client/compare/v2.18.2...v2.18.3) (2025-04-08) From 3003f8b8ea878b18660ba338aafabfc4dc57d71b Mon Sep 17 00:00:00 2001 From: Kasumi Date: Sat, 25 Oct 2025 02:33:42 +0200 Subject: [PATCH 1274/1274] docs: Updated OAuth Web Doc to be up-to-date (#2685) --- docs/oauth-web.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/oauth-web.md b/docs/oauth-web.md index 18bc5e32b..7d21b5620 100644 --- a/docs/oauth-web.md +++ b/docs/oauth-web.md @@ -258,10 +258,10 @@ After completing the OAuth 2.0 flow, you should be redirected to `http://localho After the web server receives the authorization code, it can exchange the authorization code for an access token. -To exchange an authorization code for an access token, use the `authenticate` method: +To exchange an authorization code for an access token, use the `fetchAccessTokenWithAuthCode` method: ```php -$client->authenticate($_GET['code']); +$client->fetchAccessTokenWithAuthCode($_GET['code']); ``` You can retrieve the access token with the `getAccessToken` method: @@ -361,7 +361,7 @@ if (! isset($_GET['code'])) { $auth_url = $client->createAuthUrl(); header('Location: ' . filter_var($auth_url, FILTER_SANITIZE_URL)); } else { - $client->authenticate($_GET['code']); + $client->fetchAccessTokenWithAuthCode($_GET['code']); $_SESSION['access_token'] = $client->getAccessToken(); $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . '/'; header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL));